diff --git a/apps/gnocchi/hub/package.json b/apps/gnocchi/hub/package.json index 591c9a72..62e962e6 100644 --- a/apps/gnocchi/hub/package.json +++ b/apps/gnocchi/hub/package.json @@ -20,7 +20,7 @@ "typecheck": "tsc --build tsconfig.json" }, "dependencies": { - "@a-type/ui": "^0.8.18", + "@a-type/ui": "^0.8.19", "@a-type/utils": "^1.0.8", "@tiptap/core": "^2.2.4", "@tiptap/extension-document": "^2.2.4", diff --git a/apps/gnocchi/web/package.json b/apps/gnocchi/web/package.json index 9a97e2fe..37689742 100644 --- a/apps/gnocchi/web/package.json +++ b/apps/gnocchi/web/package.json @@ -14,7 +14,7 @@ "typecheck": "tsc --build tsconfig.json" }, "dependencies": { - "@a-type/ui": "^0.8.18", + "@a-type/ui": "^0.8.19", "@a-type/utils": "^1.0.8", "@biscuits/client": "workspace:*", "@biscuits/error": "workspace:*", diff --git a/apps/marginalia/web/package.json b/apps/marginalia/web/package.json index 095042ab..3417549b 100644 --- a/apps/marginalia/web/package.json +++ b/apps/marginalia/web/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "@a-type/ui": "0.8.18", + "@a-type/ui": "0.8.19", "@a-type/utils": "1.1.0", "@biscuits/client": "workspace:*", "@marginalia.biscuits/verdant": "workspace:*", diff --git a/apps/shopping/web/package.json b/apps/shopping/web/package.json index bca51011..dda10284 100644 --- a/apps/shopping/web/package.json +++ b/apps/shopping/web/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "@a-type/ui": "^0.8.18", + "@a-type/ui": "^0.8.19", "@a-type/utils": "^1.0.8", "@biscuits/client": "workspace:*", "@react-spring/web": "^9.7.3", diff --git a/apps/star-chart/web/package.json b/apps/star-chart/web/package.json index 47903c86..95745eb9 100644 --- a/apps/star-chart/web/package.json +++ b/apps/star-chart/web/package.json @@ -9,7 +9,7 @@ "preview": "vite preview" }, "dependencies": { - "@a-type/ui": "0.8.18", + "@a-type/ui": "0.8.19", "@a-type/utils": "1.1.2", "@biscuits/client": "workspace:*", "@react-spring/web": "^9.7.3", diff --git a/apps/star-chart/web/src/components/project/TaskNode.tsx b/apps/star-chart/web/src/components/project/TaskNode.tsx index 0704ef5e..4ea9ea9e 100644 --- a/apps/star-chart/web/src/components/project/TaskNode.tsx +++ b/apps/star-chart/web/src/components/project/TaskNode.tsx @@ -81,8 +81,8 @@ export function TaskNode({ task }: TaskNodeProps) { !selected && pendingSelect && 'layer-variants:border-primary-light', !!completedAt && (downstreamUncompleted - ? 'opacity-[calc(var(--zoom,1)*var(--zoom,1))]' - : 'opacity-[calc(var(--zoom,1)*var(--zoom,1)*0.5)]'), + ? 'opacity-[var(--zoom,1)]' + : 'opacity-[calc(var(--zoom,1)*var(--zoom,1))] sm:opacity-[calc(var(--zoom,1)*var(--zoom,1)*0.5)]'), activeConnectionTarget === id && 'bg-accent-light border-accent', )} style={style} @@ -136,6 +136,11 @@ function TaskFullContent({ [client, id, projectId], ); + const canvas = useCanvas(); + const commitAndEndEditing = () => { + canvas.selections.remove(id); + }; + return (
{exclusive ? ( task.set('content', v)} autoSelect autoFocus + textArea + onKeyDown={(ev) => { + if (ev.key === 'Enter') { + ev.preventDefault(); + task.set('content', content); + commitAndEndEditing(); + } + + const isModifiedKeypress = ev.metaKey || ev.ctrlKey; + if (!isModifiedKeypress) { + // capture all keypresses that aren't modified + ev.stopPropagation(); + } + }} /> ) : (
=13.7} + hasBin: true + dependencies: + caniuse-lite: 1.0.30001629 + electron-to-chromium: 1.4.796 + node-releases: 2.0.14 + update-browserslist-db: 1.0.16(browserslist@4.23.1) + dev: true + /buffer-equal-constant-time@1.0.1: resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} @@ -13827,6 +13838,10 @@ packages: /caniuse-lite@1.0.30001593: resolution: {integrity: sha512-UWM1zlo3cZfkpBysd7AS+z+v007q9G1+fLTUU42rQnY6t2axoogPW/xol6T7juU5EUoOhML4WgBIdG+9yYqAjQ==} + /caniuse-lite@1.0.30001629: + resolution: {integrity: sha512-c3dl911slnQhmxUIT4HhYzT7wnBK/XYpGnYLOj4nJBaRiw52Ibe7YxlDaAeRECvA786zCuExhxIUJ2K7nHMrBw==} + dev: true + /capital-case@1.0.4: resolution: {integrity: sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==} dependencies: @@ -14249,7 +14264,7 @@ packages: /core-js-compat@3.37.1: resolution: {integrity: sha512-9TNiImhKvQqSUkOvk/mMRZzOANTiEVC7WaBNhHcKM7x+/5E1l5NvsysR19zuDQScE8k+kfQXWRN3AtS/eOSHpg==} dependencies: - browserslist: 4.23.0 + browserslist: 4.23.1 dev: true /core-util-is@1.0.3: @@ -14771,6 +14786,10 @@ packages: /electron-to-chromium@1.4.690: resolution: {integrity: sha512-+2OAGjUx68xElQhydpcbqH50hE8Vs2K6TkAeLhICYfndb67CVH0UsZaijmRUE3rHlIxU1u0jxwhgVe6fK3YANA==} + /electron-to-chromium@1.4.796: + resolution: {integrity: sha512-NglN/xprcM+SHD2XCli4oC6bWe6kHoytcyLKCWXmRL854F0qhPhaYgUswUsglnPxYaNQIg2uMY4BvaomIf3kLA==} + dev: true + /emmet@2.4.7: resolution: {integrity: sha512-O5O5QNqtdlnQM2bmKHtJgyChcrFMgQuulI+WdiOw2NArzprUqqxUW6bgYtKvzKgrsYpuLWalOkdhNP+1jluhCA==} dependencies: @@ -21897,7 +21916,7 @@ packages: - supports-color dev: true - /unocss@0.59.4(postcss@8.4.38)(vite@5.2.12): + /unocss@0.59.4(postcss@8.4.38)(vite@5.2.13): resolution: {integrity: sha512-QmCVjRObvVu/gsGrJGVt0NnrdhFFn314BUZn2WQyXV9rIvHLRmG5bIu0j5vibJkj7ZhFchTrnTM1pTFXP1xt5g==} engines: {node: '>=14'} peerDependencies: @@ -21909,7 +21928,7 @@ packages: vite: optional: true dependencies: - '@unocss/astro': 0.59.4(vite@5.2.12) + '@unocss/astro': 0.59.4(vite@5.2.13) '@unocss/cli': 0.59.4 '@unocss/core': 0.59.4 '@unocss/extractor-arbitrary-variants': 0.59.4 @@ -21928,8 +21947,8 @@ packages: '@unocss/transformer-compile-class': 0.59.4 '@unocss/transformer-directives': 0.59.4 '@unocss/transformer-variant-group': 0.59.4 - '@unocss/vite': 0.59.4(vite@5.2.12) - vite: 5.2.12 + '@unocss/vite': 0.59.4(vite@5.2.13) + vite: 5.2.13 transitivePeerDependencies: - postcss - rollup @@ -21995,6 +22014,17 @@ packages: escalade: 3.1.2 picocolors: 1.0.1 + /update-browserslist-db@1.0.16(browserslist@4.23.1): + resolution: {integrity: sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + dependencies: + browserslist: 4.23.1 + escalade: 3.1.2 + picocolors: 1.0.1 + dev: true + /upper-case-first@2.0.2: resolution: {integrity: sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==} dependencies: @@ -22310,7 +22340,7 @@ packages: - supports-color dev: true - /vite-plugin-pwa@0.19.2(vite@5.2.12)(workbox-build@7.1.1)(workbox-window@7.1.0): + /vite-plugin-pwa@0.19.2(vite@5.2.13)(workbox-build@7.1.1)(workbox-window@7.1.0): resolution: {integrity: sha512-LSQJFPxCAQYbRuSyc9EbRLRqLpaBA9onIZuQFomfUYjWSgHuQLonahetDlPSC9zsxmkSEhQH8dXZN8yL978h3w==} engines: {node: '>=16.0.0'} peerDependencies: @@ -22325,7 +22355,7 @@ packages: debug: 4.3.4 fast-glob: 3.3.2 pretty-bytes: 6.1.1 - vite: 5.2.12 + vite: 5.2.13 workbox-build: 7.1.1 workbox-window: 7.1.0 transitivePeerDependencies: @@ -22573,8 +22603,8 @@ packages: fsevents: 2.3.3 dev: true - /vite@5.2.12: - resolution: {integrity: sha512-/gC8GxzxMK5ntBwb48pR32GGhENnjtY30G4A0jemunsBkiEZFw60s8InGpN8gkhHEkjnRK1aSAxeQgwvFhUHAA==} + /vite@5.2.13: + resolution: {integrity: sha512-SSq1noJfY9pR3I1TUENL3rQYDQCFqgD+lM6fTRAM8Nv6Lsg5hDLaXkjETVeBt+7vZBCMoibD+6IWnT2mJ+Zb/A==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: diff --git a/web/package.json b/web/package.json index 0de5c2b4..9b8bc904 100644 --- a/web/package.json +++ b/web/package.json @@ -9,7 +9,7 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@a-type/ui": "^0.8.18", + "@a-type/ui": "^0.8.19", "@biscuits/apps": "workspace:*", "@biscuits/client": "workspace:*", "@biscuits/error": "workspace:*",