From f497e48830166b8fd790eeb02cc64dccb8dd092a Mon Sep 17 00:00:00 2001 From: Ian Silva Date: Fri, 30 Aug 2024 08:26:59 -0300 Subject: [PATCH 1/3] fix: adjust pointer size and avoid background repetition no matter the size --- src/common/styles/global.css | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/common/styles/global.css b/src/common/styles/global.css index 46ce494f..08ce6b88 100644 --- a/src/common/styles/global.css +++ b/src/common/styles/global.css @@ -5,7 +5,8 @@ --sv-primary: 98, 16, 204; } -html, body { +html, +body { width: 100%; height: 100%; overflow: hidden; @@ -46,14 +47,14 @@ html, body { display: none; } - /* Presence Mouse */ .pointer-mouse { display: flex; - height: 17px; - width: 17px; + height: 15px; + width: 16px; background-image: url(https://production.cdn.superviz.com/static/pointers/0.svg); + background-repeat: no-repeat; } .mouse-user-name { @@ -76,4 +77,4 @@ html, body { display: block; z-index: 2; transition: all 150ms linear, opacity 100s ease-in; -} \ No newline at end of file +} From 69f6bbd293f52047e6f57b1ab97e74a0dce27565 Mon Sep 17 00:00:00 2001 From: Ian Silva Date: Fri, 30 Aug 2024 08:27:38 -0300 Subject: [PATCH 2/3] chore: build to the same directory as watch --- .esbuild/build.js | 4 ++-- tsconfig.json | 15 +++++---------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.esbuild/build.js b/.esbuild/build.js index 7a7e82d5..68fde21e 100644 --- a/.esbuild/build.js +++ b/.esbuild/build.js @@ -6,12 +6,12 @@ const esbuild = require('esbuild'); await Promise.all([ esbuild.build({ ...cjsConfig, - outfile: 'lib/index.cjs.js', + outfile: 'dist/index.cjs.js', }), esbuild.build({ ...esmConfig, - outdir: 'lib', + outdir: 'dist', }), ]); } catch (error) { diff --git a/tsconfig.json b/tsconfig.json index c2f8412e..219a0eb9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "rootDirs": ["./src", "."], "target": "ES2020", "module": "ES2020", - "outDir": "./lib", + "outDir": "./dist", "lib": ["ES2020", "DOM"], "preserveWatchOutput": true, "emitDeclarationOnly": true, @@ -12,13 +12,8 @@ "moduleResolution": "Node", "experimentalDecorators": true, "skipLibCheck": true, - "allowJs": true, + "allowJs": true }, - "include": [ - "./src" - ], - "exclude": [ - "./src/**/*.test.ts", - "node_modules" - ] -} \ No newline at end of file + "include": ["./src"], + "exclude": ["./src/**/*.test.ts", "node_modules"] +} From 21ef2e3e7f5c7c69d45c2fd0d260dc92032fdc1e Mon Sep 17 00:00:00 2001 From: Ian Silva Date: Fri, 30 Aug 2024 08:56:11 -0300 Subject: [PATCH 3/3] fix: point to dist in package.json instead of lib --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d930dc8b..22a0f058 100644 --- a/package.json +++ b/package.json @@ -2,14 +2,14 @@ "name": "@superviz/sdk", "version": "0.0.0-development", "description": "SuperViz SDK", - "main": "./lib/index.js", - "types": "./lib/index.d.ts", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - "import": "./lib/index.js", - "require": "./lib/index.cjs.js" + "import": "./dist/index.js", + "require": "./dist/index.cjs.js" }, "files": [ - "lib" + "dist" ], "scripts": { "prepare": "husky install",