✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
feat: simplify toolbar, allow other formats in import
AykutSarac7d9b7dc5164a
diff --git a/package.json b/package.jsonindex dd728da3..711f31a8 100644--- a/package.json+++ b/package.json@@ -14,17 +14,18 @@"analyze": "ANALYZE=true npm run build"},"dependencies": {- "@mantine/code-highlight": "^7.4.2",- "@mantine/core": "^7.4.2",- "@mantine/hooks": "^7.4.2",+ "@mantine/code-highlight": "^7.5.1",+ "@mantine/core": "^7.5.1",+ "@mantine/dropzone": "^7.5.1",+ "@mantine/hooks": "^7.5.1","@monaco-editor/react": "^4.6.0",- "@sentry/nextjs": "^7.94.1",- "@supabase/auth-helpers-nextjs": "^0.8.7",+ "@sentry/nextjs": "^7.99.0",+ "@supabase/auth-helpers-nextjs": "^0.9.0","@supabase/auth-helpers-react": "^0.4.2","@supabase/supabase-js": "^2.39.3","@tanstack/react-query": "^4.36.1","allotment": "^1.20.0",- "axios": "^1.6.5",+ "axios": "^1.6.7","dayjs": "^1.11.10","gofmt.js": "^0.0.2","html-to-image": "^1.11.11",@@ -42,7 +43,7 @@"lodash.unset": "^4.5.2","lodash.update": "^4.10.2","maketypes": "^1.1.2",- "million": "^2.6.4",+ "million": "^3.0.2","next": "14.1.0","pako": "^2.1.0","react": "^18.2.0",@@ -71,9 +72,9 @@"@types/lodash.set": "^4.3.9","@types/lodash.unset": "^4.5.9","@types/lodash.update": "^4.10.9",- "@types/node": "^20.11.5",+ "@types/node": "^20.11.16","@types/pako": "^2.0.3",- "@types/react": "18.2.48",+ "@types/react": "18.2.51","@types/react-dom": "^18.2.18","eslint": "8.56.0","eslint-config-next": "14.1.0",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 1f6671bc..ade8ea01 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -6,23 +6,26 @@ settings:dependencies:'@mantine/code-highlight':- specifier: ^7.4.2- version: 7.4.2(@mantine/[email protected])(@mantine/[email protected])([email protected])([email protected])+ specifier: ^7.5.1+ version: 7.5.1(@mantine/[email protected])(@mantine/[email protected])([email protected])([email protected])'@mantine/core':- specifier: ^7.4.2- version: 7.4.2(@mantine/[email protected])(@types/[email protected])([email protected])([email protected])+ specifier: ^7.5.1+ version: 7.5.1(@mantine/[email protected])(@types/[email protected])([email protected])([email protected])+ '@mantine/dropzone':+ specifier: ^7.5.1+ version: 7.5.1(@mantine/[email protected])(@mantine/[email protected])([email protected])([email protected])'@mantine/hooks':- specifier: ^7.4.2- version: 7.4.2([email protected])+ specifier: ^7.5.1+ version: 7.5.1([email protected])'@monaco-editor/react':specifier: ^4.6.0'@sentry/nextjs':- specifier: ^7.94.1- version: 7.94.1([email protected])([email protected])+ specifier: ^7.99.0+ version: 7.99.0([email protected])([email protected])'@supabase/auth-helpers-nextjs':- specifier: ^0.8.7- version: 0.8.7(@supabase/[email protected])+ specifier: ^0.9.0+ version: 0.9.0(@supabase/[email protected])'@supabase/auth-helpers-react':specifier: ^0.4.2version: 0.4.2(@supabase/[email protected])@@ -36,8 +39,8 @@ dependencies:specifier: ^1.20.0version: 1.20.0([email protected])([email protected])axios:- specifier: ^1.6.5- version: 1.6.5+ specifier: ^1.6.7+ version: 1.6.7dayjs:specifier: ^1.11.10version: 1.11.10@@ -90,11 +93,11 @@ dependencies:specifier: ^1.1.2version: 1.1.2million:- specifier: ^2.6.4- version: 2.6.4+ specifier: ^3.0.2+ version: 3.0.2next:specifier: 14.1.0pako:specifier: ^2.1.0version: 2.1.0@@ -115,7 +118,7 @@ dependencies:version: 5.0.1([email protected])react-json-tree:specifier: ^0.18.0- version: 0.18.0(@types/[email protected])([email protected])+ version: 0.18.0(@types/[email protected])([email protected])react-linkify-it:specifier: ^1.0.8version: 1.0.8([email protected])@@ -139,7 +142,7 @@ dependencies:version: 3.2.0([email protected])zustand:specifier: ^4.5.0- version: 4.5.0(@types/[email protected])([email protected])+ version: 4.5.0(@types/[email protected])([email protected])devDependencies:'@next/bundle-analyzer':@@ -173,14 +176,14 @@ devDependencies:specifier: ^4.10.9version: 4.10.9'@types/node':- specifier: ^20.11.5- version: 20.11.5+ specifier: ^20.11.16+ version: 20.11.16'@types/pako':specifier: ^2.0.3version: 2.0.3'@types/react':- specifier: 18.2.48- version: 18.2.48+ specifier: 18.2.51+ version: 18.2.51'@types/react-dom':specifier: ^18.2.18version: 18.2.18@@ -204,7 +207,7 @@ devDependencies:version: 3.2.4ts-node:specifier: ^10.9.2- version: 10.9.2(@types/[email protected])([email protected])+ version: 10.9.2(@types/[email protected])([email protected])typescript:specifier: 5.3.3version: 5.3.3@@ -221,7 +224,7 @@ packages:engines: {node: '>=6.0.0'}dependencies:'@jridgewell/gen-mapping': 0.3.3- '@jridgewell/trace-mapping': 0.3.20+ '@jridgewell/trace-mapping': 0.3.22dev: false/@babel/[email protected]:@@ -236,20 +239,20 @@ packages:engines: {node: '>=6.9.0'}dev: false- /@babel/[email protected]:- resolution: {integrity: sha512-+UpDgowcmqe36d4NwqvKsyPMlOLNGMsfMmQ5WGCu+siCe3t3dfe9njrzGfdN4qq+bcNUt0+Vw6haRxBOycs4dw==}+ /@babel/[email protected]:+ resolution: {integrity: sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw==}engines: {node: '>=6.9.0'}dependencies:'@ampproject/remapping': 2.2.1'@babel/code-frame': 7.23.5'@babel/generator': 7.23.6'@babel/helper-compilation-targets': 7.23.6- '@babel/helper-module-transforms': 7.23.3(@babel/[email protected])- '@babel/helpers': 7.23.7- '@babel/parser': 7.23.6- '@babel/template': 7.22.15- '@babel/traverse': 7.23.7- '@babel/types': 7.23.6+ '@babel/helper-module-transforms': 7.23.3(@babel/[email protected])+ '@babel/helpers': 7.23.9+ '@babel/parser': 7.23.9+ '@babel/template': 7.23.9+ '@babel/traverse': 7.23.9+ '@babel/types': 7.23.9convert-source-map: 2.0.0debug: 4.3.4gensync: 1.0.0-beta.2@@ -283,7 +286,7 @@ packages:dependencies:'@babel/compat-data': 7.23.5'@babel/helper-validator-option': 7.23.5- browserslist: 4.22.2+ browserslist: 4.22.3lru-cache: 5.1.1semver: 6.3.1dev: false@@ -309,16 +312,16 @@ packages:resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==}engines: {node: '>=6.9.0'}dependencies:- '@babel/types': 7.23.6+ '@babel/types': 7.23.9dev: false- /@babel/[email protected](@babel/[email protected]):+ /@babel/[email protected](@babel/[email protected]):resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==}engines: {node: '>=6.9.0'}peerDependencies:'@babel/core': ^7.0.0dependencies:- '@babel/core': 7.23.7+ '@babel/core': 7.23.9'@babel/helper-environment-visitor': 7.22.20'@babel/helper-module-imports': 7.22.15'@babel/helper-simple-access': 7.22.5@@ -326,16 +329,11 @@ packages:'@babel/helper-validator-identifier': 7.22.20dev: false- /@babel/[email protected]:- resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==}- engines: {node: '>=6.9.0'}- dev: false-/@babel/[email protected]:resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==}engines: {node: '>=6.9.0'}dependencies:- '@babel/types': 7.23.6+ '@babel/types': 7.23.9dev: false/@babel/[email protected]:@@ -357,13 +355,13 @@ packages:engines: {node: '>=6.9.0'}dev: false- /@babel/[email protected]:- resolution: {integrity: sha512-6AMnjCoC8wjqBzDHkuqpa7jAKwvMo4dC+lr/TFBz+ucfulO1XMpDnwWPGBNwClOKZ8h6xn5N81W/R5OrcKtCbQ==}+ /@babel/[email protected]:+ resolution: {integrity: sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ==}engines: {node: '>=6.9.0'}dependencies:- '@babel/template': 7.22.15- '@babel/traverse': 7.23.7- '@babel/types': 7.23.6+ '@babel/template': 7.23.9+ '@babel/traverse': 7.23.9+ '@babel/types': 7.23.9transitivePeerDependencies:- supports-colordev: false@@ -383,24 +381,12 @@ packages:dependencies:'@babel/types': 7.17.0- /@babel/[email protected](@babel/[email protected]):- resolution: {integrity: sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==}- engines: {node: '>=6.9.0'}- peerDependencies:- '@babel/core': ^7.0.0-0- dependencies:- '@babel/core': 7.23.7- '@babel/helper-plugin-utils': 7.22.5- dev: false-- /@babel/[email protected](@babel/[email protected]):- resolution: {integrity: sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==}- engines: {node: '>=6.9.0'}- peerDependencies:- '@babel/core': ^7.0.0-0+ /@babel/[email protected]:+ resolution: {integrity: sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA==}+ engines: {node: '>=6.0.0'}+ hasBin: truedependencies:- '@babel/core': 7.23.7- '@babel/helper-plugin-utils': 7.22.5+ '@babel/types': 7.23.9dev: false/@babel/[email protected]:@@ -417,6 +403,13 @@ packages:regenerator-runtime: 0.14.1dev: true+ /@babel/[email protected]:+ resolution: {integrity: sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==}+ engines: {node: '>=6.9.0'}+ dependencies:+ regenerator-runtime: 0.14.1+ dev: false+/@babel/[email protected]:resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==}engines: {node: '>=6.9.0'}@@ -425,6 +418,15 @@ packages:'@babel/parser': 7.23.6'@babel/types': 7.23.6+ /@babel/[email protected]:+ resolution: {integrity: sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/code-frame': 7.23.5+ '@babel/parser': 7.23.9+ '@babel/types': 7.23.9+ dev: false+/@babel/[email protected]:resolution: {integrity: sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==}engines: {node: '>=6.9.0'}@@ -443,8 +445,8 @@ packages:- supports-colordev: true- /@babel/[email protected]:- resolution: {integrity: sha512-tY3mM8rH9jM0YHFGyfC0/xf+SB5eKUu7HPj7/k3fpi9dAlsMc5YbQvDi0Sh2QTPXqMhyaAtzAr807TIyfQrmyg==}+ /@babel/[email protected]:+ resolution: {integrity: sha512-I/4UJ9vs90OkBtY6iiiTORVMyIhJ4kAVmsKo9KFc8UOxMeUfi2hvtIBsET5u9GizXE6/GFSuKCTNfgCswuEjRg==}engines: {node: '>=6.9.0'}dependencies:'@babel/code-frame': 7.23.5@@ -453,8 +455,8 @@ packages:'@babel/helper-function-name': 7.23.0'@babel/helper-hoist-variables': 7.22.5'@babel/helper-split-export-declaration': 7.22.6- '@babel/parser': 7.23.6- '@babel/types': 7.23.6+ '@babel/parser': 7.23.9+ '@babel/types': 7.23.9debug: 4.3.4globals: 11.12.0transitivePeerDependencies:@@ -476,6 +478,15 @@ packages:'@babel/helper-validator-identifier': 7.22.20to-fast-properties: 2.0.0+ /@babel/[email protected]:+ resolution: {integrity: sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==}+ engines: {node: '>=6.9.0'}+ dependencies:+ '@babel/helper-string-parser': 7.23.4+ '@babel/helper-validator-identifier': 7.22.20+ to-fast-properties: 2.0.0+ dev: false+/@cspotcode/[email protected]:resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==}engines: {node: '>=12'}@@ -553,26 +564,31 @@ packages:engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}dev: true- /@floating-ui/[email protected]:- resolution: {integrity: sha512-Ii3MrfY/GAIN3OhXNzpCKaLxHQfJF9qvwq/kEJYdqDxeIHa01K8sldugal6TmeeXl+WMvhv9cnVzUTaFFJF09A==}+ /@fastify/[email protected]:+ resolution: {integrity: sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==}+ engines: {node: '>=14'}+ dev: false++ /@floating-ui/[email protected]:+ resolution: {integrity: sha512-PcF++MykgmTj3CIyOQbKA/hDzOAiqI3mhuoN44WRCopIs1sgoDoU4oty4Jtqaj/y3oDU6fnVSm4QG0a3t5i0+g==}dependencies:- '@floating-ui/utils': 0.1.6+ '@floating-ui/utils': 0.2.1dev: false- /@floating-ui/[email protected]:- resolution: {integrity: sha512-ClAbQnEqJAKCJOEbbLo5IUlZHkNszqhuxS4fHAVxRPXPya6Ysf2G8KypnYcOTpx6I8xcgF9bbHb6g/2KpbV8qA==}+ /@floating-ui/[email protected]:+ resolution: {integrity: sha512-iA8qE43/H5iGozC3W0YSnVSW42Vh522yyM1gj+BqRwVsTNOyr231PsXDaV04yT39PsO0QL2QpbI/M0ZaLUQgRQ==}dependencies:- '@floating-ui/core': 1.5.2- '@floating-ui/utils': 0.1.6+ '@floating-ui/core': 1.6.0+ '@floating-ui/utils': 0.2.1dev: false- resolution: {integrity: sha512-CF8k2rgKeh/49UrnIBs4BdxPUV6vize/Db1d/YbCLyp9GiVZ0BEwf5AiDSxJRCr6yOkGqTFHtmrULxkEfYZ7dQ==}+ resolution: {integrity: sha512-HOdqOt3R3OGeTKidaLvJKcgg75S6tibQ3Tif4eyd91QnIJWr0NLvoXFpJA/j8HqkFSL68GDca9AuyWEHlhyClw==}peerDependencies:react: '>=16.8.0'react-dom: '>=16.8.0'dependencies:- '@floating-ui/dom': 1.5.3+ '@floating-ui/dom': 1.6.1react: 18.2.0react-dom: 18.2.0([email protected])dev: false@@ -583,15 +599,15 @@ packages:react: '>=16.8.0'react-dom: '>=16.8.0'dependencies:- '@floating-ui/react-dom': 2.0.4([email protected])([email protected])+ '@floating-ui/react-dom': 2.0.8([email protected])([email protected])aria-hidden: 1.2.3react: 18.2.0react-dom: 18.2.0([email protected])tabbable: 6.2.0dev: false- /@floating-ui/[email protected]:- resolution: {integrity: sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A==}+ /@floating-ui/[email protected]:+ resolution: {integrity: sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==}dev: false/@humanwhocodes/[email protected]:@@ -651,6 +667,13 @@ packages:'@jridgewell/resolve-uri': 3.1.1'@jridgewell/sourcemap-codec': 1.4.15+ /@jridgewell/[email protected]:+ resolution: {integrity: sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==}+ dependencies:+ '@jridgewell/resolve-uri': 3.1.1+ '@jridgewell/sourcemap-codec': 1.4.15+ dev: false+/@jridgewell/[email protected]:resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==}dependencies:@@ -676,44 +699,59 @@ packages:call-bind: 1.0.5dev: false- /@mantine/[email protected](@mantine/[email protected])(@mantine/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-CVo3gMOWW+hjDQg2S63BZNmXHGRFYtugtWDIwC8fv7U6P2acs1OuxuXUrGkHkm8s3jJNTWB4kF2vd+7x5Z8GpQ==}+ /@mantine/[email protected](@mantine/[email protected])(@mantine/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-zCdJ911r7WacTC8aQb66oB299jhcnQCQ8uS1kXYioUvJ/lOc0aiFh659KokmUvIL6ZdowCvffwaodiUFDZcqBw==}peerDependencies:- '@mantine/core': 7.4.2- '@mantine/hooks': 7.4.2+ '@mantine/core': 7.5.1+ '@mantine/hooks': 7.5.1react: ^18.2.0react-dom: ^18.2.0dependencies:- '@mantine/core': 7.4.2(@mantine/[email protected])(@types/[email protected])([email protected])([email protected])- '@mantine/hooks': 7.4.2([email protected])+ '@mantine/core': 7.5.1(@mantine/[email protected])(@types/[email protected])([email protected])([email protected])+ '@mantine/hooks': 7.5.1([email protected])clsx: 2.0.0highlight.js: 11.9.0react: 18.2.0react-dom: 18.2.0([email protected])dev: false- /@mantine/[email protected](@mantine/[email protected])(@types/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-kXmq7NjSd1AsOIzqPwQhA7SeZS9hrbARRqhRwr4LLR3NKps9hLmVto441DnpHH/D27eL9gGLSl4GRIdogjX6mg==}+ /@mantine/[email protected](@mantine/[email protected])(@types/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-V7apuQuRubqxTRXb1uxOM43K7tkLRzpbb1ONJ/sj8QRp/26bShkdYp7EVuSKyrQ8DQ5EGYyBBGyzBOQARh41gA==}peerDependencies:- '@mantine/hooks': 7.4.2+ '@mantine/hooks': 7.5.1react: ^18.2.0react-dom: ^18.2.0dependencies:'@floating-ui/react': 0.24.8([email protected])([email protected])- '@mantine/hooks': 7.4.2([email protected])+ '@mantine/hooks': 7.5.1([email protected])clsx: 2.0.0react: 18.2.0react-dom: 18.2.0([email protected])react-number-format: 5.3.1([email protected])([email protected])- react-remove-scroll: 2.5.7(@types/[email protected])([email protected])- react-textarea-autosize: 8.5.3(@types/[email protected])([email protected])+ react-remove-scroll: 2.5.7(@types/[email protected])([email protected])+ react-textarea-autosize: 8.5.3(@types/[email protected])([email protected])type-fest: 3.13.1transitivePeerDependencies:- '@types/react'dev: false- /@mantine/[email protected]([email protected]):- resolution: {integrity: sha512-tNtn/SNOtSmjLQmIk4S5nsTJjV84Oj0AUYRrAN78HHw3bfWp6bdWbgYPtPEH9e6iFJfdxiX0hrLfWqROalAsbQ==}+ /@mantine/[email protected](@mantine/[email protected])(@mantine/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-pUQt7EwhDkTWbj4OLCbsvbkbp1vCXS6nGm8Y4pTrca1vR9S4+hilR6oULEY0UbQgHq+hfsWKDtnlhLkf45tJXA==}+ peerDependencies:+ '@mantine/core': 7.5.1+ '@mantine/hooks': 7.5.1+ react: ^18.2.0+ react-dom: ^18.2.0+ dependencies:+ '@mantine/core': 7.5.1(@mantine/[email protected])(@types/[email protected])([email protected])([email protected])+ '@mantine/hooks': 7.5.1([email protected])+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ react-dropzone-esm: 15.0.1([email protected])+ dev: false++ /@mantine/[email protected]([email protected]):+ resolution: {integrity: sha512-LfrEOkX8U2KbkYAU5BMA7FPbMva/TSd65c45W35wHSx3iqYMsoPN9+Ll1zc/HT0XNFp73jGet9cU7VREbAl0/A==}peerDependencies:react: ^18.2.0dependencies:@@ -923,48 +961,49 @@ packages:resolution: {integrity: sha512-Jh4t/593gxs0lJZ/z3NnasKlplXT2f+4y/LZYuaKZW5KAaiVFL/fThhs+17EbUd53jUVJ0QudYCBGbN/psvaqg==}dev: true- /@sentry-internal/[email protected]:- resolution: {integrity: sha512-NlJn/TEX1MOPfY4bb6FU0Equ6YuaewZ+lIAqYt3HuEoYI7nYApeRGaPuVLkkezN0cmI7oU/+pJ7v83PtYXCFZw==}+ /@sentry-internal/[email protected]:+ resolution: {integrity: sha512-exIO1o+bE0MW4z30FxC0cYzJ4ZHSMlDPMHCBDPzU+MWGQc/fb8s58QUrx5Dnm6HTh9G3H+YlroCxIo9u0GSwGQ==}engines: {node: '>=12'}dependencies:- '@sentry/core': 7.94.1- '@sentry/types': 7.94.1- '@sentry/utils': 7.94.1+ '@sentry/core': 7.99.0+ '@sentry/types': 7.99.0+ '@sentry/utils': 7.99.0dev: false- /@sentry-internal/[email protected]:- resolution: {integrity: sha512-kCFxdIJTbo2z8wnAQ3IqNVI8y2lSOtaSSZeBgeqiertro8Pe/DS8AXUnhXnAQkluM2i2koA+AgUo6/4bUeZXuQ==}+ /@sentry-internal/[email protected]:+ resolution: {integrity: sha512-PoIkfusToDq0snfl2M6HJx/1KJYtXxYhQplrn11kYadO04SdG0XGXf4h7wBTMEQ7LDEAtQyvsOu4nEQtTO3YjQ==}engines: {node: '>=12'}dependencies:- '@sentry/core': 7.94.1- '@sentry/replay': 7.94.1- '@sentry/types': 7.94.1+ '@sentry/core': 7.99.0+ '@sentry/replay': 7.99.0+ '@sentry/types': 7.99.0+ '@sentry/utils': 7.99.0dev: false- /@sentry-internal/[email protected]:- resolution: {integrity: sha512-znxCdrz7tPXm9Bwoe46PW72Zr0Iv7bXT6+b2LNg5fxWiCQVBbQFrMuVvtXEmHxeRRJVEgTh/4TdulB7wrtQIUQ==}+ /@sentry-internal/[email protected]:+ resolution: {integrity: sha512-z3JQhHjoM1KdM20qrHwRClKJrNLr2CcKtCluq7xevLtXHJWNAQQbafnWD+Aoj85EWXBzKt9yJMv2ltcXJ+at+w==}engines: {node: '>=8'}dependencies:- '@sentry/core': 7.94.1- '@sentry/types': 7.94.1- '@sentry/utils': 7.94.1+ '@sentry/core': 7.99.0+ '@sentry/types': 7.99.0+ '@sentry/utils': 7.99.0dev: false- /@sentry/[email protected]:- resolution: {integrity: sha512-IUR8B/AEPEzLijZ4Uo5qJsgmIBnCudBqAWd3zAiuk3TWYYOQUEvleddFxffN3n6pFhGx3ArksB+AIQBruttLGA==}+ /@sentry/[email protected]:+ resolution: {integrity: sha512-bgfoUv3wkwwLgN5YUOe0ibB3y268ZCnamZh6nLFqnY/UBKC1+FXWFdvzVON/XKUm62LF8wlpCybOf08ebNj2yg==}engines: {node: '>=8'}dependencies:- '@sentry-internal/feedback': 7.94.1- '@sentry-internal/replay-canvas': 7.94.1- '@sentry-internal/tracing': 7.94.1- '@sentry/core': 7.94.1- '@sentry/replay': 7.94.1- '@sentry/types': 7.94.1- '@sentry/utils': 7.94.1+ '@sentry-internal/feedback': 7.99.0+ '@sentry-internal/replay-canvas': 7.99.0+ '@sentry-internal/tracing': 7.99.0+ '@sentry/core': 7.99.0+ '@sentry/replay': 7.99.0+ '@sentry/types': 7.99.0+ '@sentry/utils': 7.99.0dev: false- /@sentry/[email protected]:- resolution: {integrity: sha512-OtJ7U9LeuPUAY/xow9wwcjM9w42IJIpDtClTKI/RliE685vd/OJUIpiAvebHNthDYpQynvwb/0iuF4fonh+CKw==}+ /@sentry/[email protected]:+ resolution: {integrity: sha512-c3eDqcDRmy4TFz2bFU5Y6QatlpoBPPa8cxBooaS4aMQpnIdLYPF1xhyyiW0LQlDUNc3rRjNF7oN5qKoaRoMTQQ==}engines: {node: '>= 8'}hasBin: truerequiresBuild: true@@ -980,26 +1019,26 @@ packages:- supports-colordev: false- /@sentry/[email protected]:- resolution: {integrity: sha512-4sjiMnkbGpv9O98YHVZe7fHNwwdYl+zLoCOoEOadtrJ1EYYvnK/MSixN2HJF7g/0s22xd4xY958QyNIRVR+Iiw==}+ /@sentry/[email protected]:+ resolution: {integrity: sha512-vOAtzcAXEUtS/oW7wi3wMkZ3hsb5Ch96gKyrrj/mXdOp2zrcwdNV6N9/pawq2E9P/7Pw8AXw4CeDZztZrjQLuA==}engines: {node: '>=8'}dependencies:- '@sentry/types': 7.94.1- '@sentry/utils': 7.94.1+ '@sentry/types': 7.99.0+ '@sentry/utils': 7.99.0dev: false- /@sentry/[email protected]:- resolution: {integrity: sha512-Fw7OxLlGkrVAVO9WtBJezrb5IxxItCTuefv2IfKku+A5EhHtH1AhXYjQynmt0TLLYIUlyBWiatpOngBzS2wSxw==}+ /@sentry/[email protected]:+ resolution: {integrity: sha512-q4Nwpc27DTWlR7nDerd1o6KHlT/0usK+3xfBTZ1feVIAHCxt6ohCyZdoQ97+4kQiJJdX47MEmJYsXUlj62yZNg==}engines: {node: '>=8'}dependencies:- '@sentry/core': 7.94.1- '@sentry/types': 7.94.1- '@sentry/utils': 7.94.1+ '@sentry/core': 7.99.0+ '@sentry/types': 7.99.0+ '@sentry/utils': 7.99.0localforage: 1.10.0dev: false- resolution: {integrity: sha512-OOQP/UW82NHnICsUxiVe3tAVfDdvzipxw8F2tZEpqR5Dq6CQ5EGNHMfuGln6wIQFpIdTuLgNwZBRFttHEJ4y8w==}+ resolution: {integrity: sha512-8eeEPFJjRBiCp2sFUhDLQFdWFagQ2yBvmALZIOIuoMei69N+clYVSxz84beeztbLal0zvRadJO5LAkBCb6d66Q==}engines: {node: '>=8'}peerDependencies:next: ^10.0.8 || ^11.0 || ^12.0 || ^13.0 || ^14.0@@ -1010,16 +1049,16 @@ packages:optional: truedependencies:'@rollup/plugin-commonjs': 24.0.0([email protected])- '@sentry/core': 7.94.1- '@sentry/integrations': 7.94.1- '@sentry/node': 7.94.1- '@sentry/react': 7.94.1([email protected])- '@sentry/types': 7.94.1- '@sentry/utils': 7.94.1- '@sentry/vercel-edge': 7.94.1+ '@sentry/core': 7.99.0+ '@sentry/integrations': 7.99.0+ '@sentry/node': 7.99.0+ '@sentry/react': 7.99.0([email protected])+ '@sentry/types': 7.99.0+ '@sentry/utils': 7.99.0+ '@sentry/vercel-edge': 7.99.0'@sentry/webpack-plugin': 1.21.0chalk: 3.0.0react: 18.2.0resolve: 1.22.8rollup: 2.78.0@@ -1029,75 +1068,75 @@ packages:- supports-colordev: false- /@sentry/[email protected]:- resolution: {integrity: sha512-30nyrfVbY1vNoWg5ptGW+soykU532VvKLuXiKty3SKEXjp5bv23JrCcVtuwp9KrW4josHOJbxZUqeNni85YplQ==}+ /@sentry/[email protected]:+ resolution: {integrity: sha512-34wYtLddnPcQ8qvKq62AfxowaMFw+GMUZGv7fIs9FxeBqqqn6Ckl0gFCTADudIIBQ3rSbmN7sHJIXdyiQv+pcw==}engines: {node: '>=8'}dependencies:- '@sentry-internal/tracing': 7.94.1- '@sentry/core': 7.94.1- '@sentry/types': 7.94.1- '@sentry/utils': 7.94.1+ '@sentry-internal/tracing': 7.99.0+ '@sentry/core': 7.99.0+ '@sentry/types': 7.99.0+ '@sentry/utils': 7.99.0dev: false- /@sentry/[email protected]([email protected]):- resolution: {integrity: sha512-7uzmsssy4Y/syIxVDrSWBWoukSsqR+/BqUO98A78NCWZsG9gxDXvD+l7D/o1u6TVkZo6i1z0NNybb1CtB73hug==}+ /@sentry/[email protected]([email protected]):+ resolution: {integrity: sha512-RtHwgzMHJhzJfSQpVG0SDPQYMTGDX3Q37/YWI59S4ALMbSW4/F6n/eQAvGVYZKbh2UCSqgFuRWaXOYkSZT17wA==}engines: {node: '>=8'}peerDependencies:react: 15.x || 16.x || 17.x || 18.xdependencies:- '@sentry/browser': 7.94.1- '@sentry/core': 7.94.1- '@sentry/types': 7.94.1- '@sentry/utils': 7.94.1+ '@sentry/browser': 7.99.0+ '@sentry/core': 7.99.0+ '@sentry/types': 7.99.0+ '@sentry/utils': 7.99.0hoist-non-react-statics: 3.3.2react: 18.2.0dev: false- /@sentry/[email protected]:- resolution: {integrity: sha512-4wf3CZ1LR2Neh9IiZD0rY8AORS5Dc5HlKfMug026f8KM2aeoDyneM2JFBnPT/ulRnbD2gNciV+kdZiRd5K5jiw==}+ /@sentry/[email protected]:+ resolution: {integrity: sha512-gyN/I2WpQrLAZDT+rScB/0jnFL2knEVBo8U8/OVt8gNP20Pq8T/rDZKO/TG0cBfvULDUbJj2P4CJryn2p/O2rA==}engines: {node: '>=12'}dependencies:- '@sentry-internal/tracing': 7.94.1- '@sentry/core': 7.94.1- '@sentry/types': 7.94.1- '@sentry/utils': 7.94.1+ '@sentry-internal/tracing': 7.99.0+ '@sentry/core': 7.99.0+ '@sentry/types': 7.99.0+ '@sentry/utils': 7.99.0dev: false- /@sentry/[email protected]:- resolution: {integrity: sha512-A7CdEXFSgGyWv2BT2p9cAvJfb+dypvOtsY8ZvZvdPLUa7kqCV7ndhURUqKjvMBzsL2GParHn3ehDTl2eVc7pvA==}+ /@sentry/[email protected]:+ resolution: {integrity: sha512-94qwOw4w40sAs5mCmzcGyj8ZUu/KhnWnuMZARRq96k+SjRW/tHFAOlIdnFSrt3BLPvSOK7R3bVAskZQ0N4FTmA==}engines: {node: '>=8'}dev: false- /@sentry/[email protected]:- resolution: {integrity: sha512-gQ2EaMpUU1gGH3S+iqpog9gkXbCo8tlhGYA9a5FUtEtER3D3OAlp8dGFwClwzWDAwzjdLT1+X55zmEptU1cP/A==}+ /@sentry/[email protected]:+ resolution: {integrity: sha512-cYZy5WNTkWs5GgggGnjfGqC44CWir0pAv4GVVSx0fsup4D4pMKBJPrtub15f9uC+QkUf3vVkqwpBqeFxtmJQTQ==}engines: {node: '>=8'}dependencies:- '@sentry/types': 7.94.1+ '@sentry/types': 7.99.0dev: false- /@sentry/[email protected]:- resolution: {integrity: sha512-W+ICIbDuky/Oj0IB17PtBBBj89XGS9a/tiH0Ldoy9peem3Ug4ucgfPxkdjF28hhmY1dA8rDp+aGRCv51/Ydcbg==}+ /@sentry/[email protected]:+ resolution: {integrity: sha512-9Uw3Iuy8KMlcv71ifnaguwndb1NkHeOAbYcBEeq9W+n0f5ocFZvMlnwszSlVNAL3cK+hlpcBhelXNAO/mBWCfg==}engines: {node: '>=8'}dependencies:- '@sentry-internal/tracing': 7.94.1- '@sentry/core': 7.94.1- '@sentry/types': 7.94.1- '@sentry/utils': 7.94.1+ '@sentry-internal/tracing': 7.99.0+ '@sentry/core': 7.99.0+ '@sentry/types': 7.99.0+ '@sentry/utils': 7.99.0dev: false/@sentry/[email protected]:resolution: {integrity: sha512-x0PYIMWcsTauqxgl7vWUY6sANl+XGKtx7DCVnnY7aOIIlIna0jChTAPANTfA2QrK+VK+4I/4JxatCEZBnXh3Og==}engines: {node: '>= 8'}dependencies:- '@sentry/cli': 1.77.1+ '@sentry/cli': 1.77.3webpack-sources: 3.2.3transitivePeerDependencies:- encoding- supports-colordev: false- /@supabase/[email protected](@supabase/[email protected]):- resolution: {integrity: sha512-iYdOjFo0GkRvha340l8JdCiBiyXQuG9v8jnq7qMJ/2fakrskRgHTCOt7ryWbip1T6BExcWKC8SoJrhCzPOxhhg==}+ /@supabase/[email protected](@supabase/[email protected]):+ resolution: {integrity: sha512-V+UKFngSCkzAucX3Zi5D4TRiJZUUx0RDme7W217nIkwhCTvJY7Ih2L1cgnAMihQost2YYgTzJ7DrUzz4mm8i8A==}peerDependencies:'@supabase/supabase-js': ^2.19.0dependencies:@@ -1263,7 +1302,7 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-VRLSGzik+Unrup6BsouBeHsf4d1hOEgYWTm/7Nmw1sXoN1+tRly/Gy/po3yeahnP4jfnQWWAhQAqcNfH7ngOkA==}dependencies:- '@types/node': 20.11.5+ '@types/node': 20.11.16dev: true/@types/[email protected]:@@ -1303,8 +1342,8 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==}- /@types/[email protected]:- resolution: {integrity: sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w==}+ /@types/[email protected]:+ resolution: {integrity: sha512-gKb0enTmRCzXSSUJDq6/sPcqrfCv2mkkG6Jt/clpn5eiCbKTY+SgZUxo+p8ZKMof5dCp9vHQUAB7wOUTod22wQ==}dependencies:undici-types: 5.26.5@@ -1322,11 +1361,11 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-TJxDm6OfAX2KJWJdMEVTwWke5Sc/E/RlnPGvGfS0W7+6ocy2xhDVQVh/KvC2Uf7kACs+gDytdusDSdWfWkaNzw==}dependencies:- '@types/react': 18.2.48+ '@types/react': 18.2.51dev: true- /@types/[email protected]:- resolution: {integrity: sha512-qboRCl6Ie70DQQG9hhNREz81jqC1cs9EVNcjQ1AU+jH6NFfSAhVVbrrY/+nSF+Bsk4AOwm9Qa61InvMCyV+H3w==}+ /@types/[email protected]:+ resolution: {integrity: sha512-XeoMaU4CzyjdRr3c4IQQtiH7Rpo18V07rYZUucEZQwOUEtGgTXv7e6igQiQ+xnV6MbMe1qjEmKdgMNnfppnXfg==}dependencies:'@types/prop-types': 15.7.11'@types/scheduler': 0.16.8@@ -1342,7 +1381,7 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==}dependencies:- '@types/node': 20.11.5+ '@types/node': 20.11.16dev: false@@ -1435,12 +1474,12 @@ packages:resolution: {integrity: sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==}engines: {node: '>=0.4.0'}hasBin: true+ dev: trueresolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==}engines: {node: '>=0.4.0'}hasBin: true- dev: trueresolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}@@ -1634,8 +1673,8 @@ packages:engines: {node: '>=4'}dev: true- resolution: {integrity: sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==}+ resolution: {integrity: sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==}dependencies:follow-redirects: 1.15.5form-data: 4.0.0@@ -1695,15 +1734,15 @@ packages:dependencies:fill-range: 7.0.1- resolution: {integrity: sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==}+ resolution: {integrity: sha512-UAp55yfwNv0klWNapjs/ktHoguxuQNGnOzxYmfnXIS+8AsRDZkSDxg7R1AX3GKzn078SBI5dzwzj/Yx0Or0e3A==}engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}hasBin: truedependencies:- caniuse-lite: 1.0.30001571- electron-to-chromium: 1.4.623+ caniuse-lite: 1.0.30001583+ electron-to-chromium: 1.4.655node-releases: 2.0.14- update-browserslist-db: 1.0.13([email protected])+ update-browserslist-db: 1.0.13([email protected])dev: false@@ -1749,14 +1788,14 @@ packages:resolution: {integrity: sha512-dU+Tx2fsypxTgtLoE36npi3UqcjSSMNYfkqgmoEhtZrraP5VWq0K7FkWVTYa8eMPtnU/G2txVsfdCJTn9uzpuQ==}dev: false- resolution: {integrity: sha512-tYq/6MoXhdezDLFZuCO/TKboTzuQ/xR5cFdgXPfDtM7/kchBO3b4VWghE/OAi/DV7tTdhmLjZiZBZi1fA/GheQ==}- dev: false-resolution: {integrity: sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA==}dev: false+ resolution: {integrity: sha512-acWTYaha8xfhA/Du/z4sNZjHUWjkiuoAi2LM+T/aL+kemKQgPT1xBb/YKjlQ0Qo8gvbHsGNplrEJ+9G3gL7i4Q==}+ dev: false+resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}engines: {node: '>=4'}@@ -2101,8 +2140,8 @@ packages:safe-buffer: 5.2.1dev: false- resolution: {integrity: sha512-lKoz10iCYlP1WtRYdh5MvocQPWVRoI7ysp6qf18bmeBgR8abE6+I2CsfyNKztRDZvhdWc+krKT6wS7Neg8sw3A==}+ resolution: {integrity: sha512-2yszojF7vIZ68adIOvzV4bku8OZad9w5H9xF3ZAMZjPuOjBarlflUkjN6DggdV+L71WZuKUfKUhov/34+G5QHg==}dev: false@@ -3622,19 +3661,18 @@ packages:picomatch: 2.3.1dev: true- resolution: {integrity: sha512-voUkdd/jHWrG+7NS+mX49Pat+POKdgGW78V7pYMSrTaOjUitR6ySEcAci8hn17Rsx1IMI3+5w41dkADM1J1ZEg==}+ resolution: {integrity: sha512-qOYPx2M+zxDn3oq4oVubiRtD9KL9cMad/f6Vs8V03FfocKfV6AV8fIYzD8I2vvNc2h9jIbVnUIU7QspbYrzTsw==}hasBin: truedependencies:- '@babel/core': 7.23.7- '@babel/generator': 7.23.6- '@babel/plugin-syntax-jsx': 7.23.3(@babel/[email protected])- '@babel/plugin-syntax-typescript': 7.23.3(@babel/[email protected])- '@babel/types': 7.23.6+ '@babel/core': 7.23.9+ '@babel/types': 7.23.9+ '@rollup/pluginutils': 5.1.0([email protected])kleur: 4.1.5- rollup: 3.29.4+ undici: 6.6.0unplugin: 1.6.0transitivePeerDependencies:+ - rollup- supports-colordev: false@@ -3735,7 +3773,7 @@ packages:resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}dev: trueresolution: {integrity: sha512-wlzrsbfeSU48YQBjZhDzOwhWhGsy+uQycR8bHAOt1LY1bn3zZEcDyHQOEoN3aWzQ8LHCAJ1nqrWCc9XF2+O45Q==}engines: {node: '>=18.17.0'}hasBin: true@@ -3758,7 +3796,7 @@ packages:postcss: 8.4.31react: 18.2.0react-dom: 18.2.0([email protected])- styled-jsx: 5.1.1(@babel/[email protected])([email protected])+ styled-jsx: 5.1.1(@babel/[email protected])([email protected])optionalDependencies:'@next/swc-darwin-arm64': 14.1.0'@next/swc-darwin-x64': 14.1.0@@ -4168,6 +4206,16 @@ packages:scheduler: 0.23.0dev: false+ resolution: {integrity: sha512-RdeGpqwHnoV/IlDFpQji7t7pTtlC2O1i/Br0LWkRZ9hYtLyce814S71h5NolnCZXsIN5wrZId6+8eQj2EBnEzg==}+ engines: {node: '>= 10.13'}+ peerDependencies:+ react: '>= 16.8 || 18.0.0'+ dependencies:+ prop-types: 15.8.1+ react: 18.2.0+ dev: false+resolution: {integrity: sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==}dev: false@@ -4201,7 +4249,7 @@ packages:resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}resolution: {integrity: sha512-Qe6HKSXrr++n9Y31nkRJ3XvQMATISpqigH1vEKhLwB56+nk5thTP0ITThpjxY6ZG/ubpVq/aEHIcyLP/OPHxeA==}peerDependencies:'@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0@@ -4209,7 +4257,7 @@ packages:dependencies:'@babel/runtime': 7.23.6'@types/lodash': 4.14.202- '@types/react': 18.2.48+ '@types/react': 18.2.51react: 18.2.0react-base16-styling: 0.9.1dev: false@@ -4233,7 +4281,7 @@ packages:react-dom: 18.2.0([email protected])dev: falseresolution: {integrity: sha512-63C4YQBUt0m6ALadE9XV56hV8BgJWDmmTPY758iIJjfQKt2nYwoUrPk0LXRXcB/yIj82T1/Ixfdpdk68LwIB0A==}engines: {node: '>=10'}peerDependencies:@@ -4243,13 +4291,13 @@ packages:'@types/react':optional: truedependencies:- '@types/react': 18.2.48+ '@types/react': 18.2.51react: 18.2.0- react-style-singleton: 2.2.1(@types/[email protected])([email protected])+ react-style-singleton: 2.2.1(@types/[email protected])([email protected])tslib: 2.6.2dev: falseresolution: {integrity: sha512-FnrTWO4L7/Bhhf3CYBNArEG/yROV0tKmTv7/3h9QCFvH6sndeFf1wPqOcbFVu5VAulS5dV1wGT3GZZ/1GawqiA==}engines: {node: '>=10'}peerDependencies:@@ -4259,13 +4307,13 @@ packages:'@types/react':optional: truedependencies:- '@types/react': 18.2.48+ '@types/react': 18.2.51react: 18.2.0- react-remove-scroll-bar: 2.3.4(@types/[email protected])([email protected])- react-style-singleton: 2.2.1(@types/[email protected])([email protected])+ react-remove-scroll-bar: 2.3.4(@types/[email protected])([email protected])+ react-style-singleton: 2.2.1(@types/[email protected])([email protected])tslib: 2.6.2- use-callback-ref: 1.3.0(@types/[email protected])([email protected])- use-sidecar: 1.1.2(@types/[email protected])([email protected])+ use-callback-ref: 1.3.1(@types/[email protected])([email protected])+ use-sidecar: 1.1.2(@types/[email protected])([email protected])dev: false@@ -4279,7 +4327,7 @@ packages:react-dom: 18.2.0([email protected])dev: falseresolution: {integrity: sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==}engines: {node: '>=10'}peerDependencies:@@ -4289,23 +4337,23 @@ packages:'@types/react':optional: truedependencies:- '@types/react': 18.2.48+ '@types/react': 18.2.51get-nonce: 1.0.1invariant: 2.2.4react: 18.2.0tslib: 2.6.2dev: falseresolution: {integrity: sha512-XT1024o2pqCuZSuBt9FwHlaDeNtVrtCXu0Rnz88t1jUGheCLa3PhjE1GH8Ctm2axEtvdCl5SUHYschyQ0L5QHQ==}engines: {node: '>=10'}peerDependencies:react: ^16.8.0 || ^17.0.0 || ^18.0.0dependencies:- '@babel/runtime': 7.23.6+ '@babel/runtime': 7.23.9react: 18.2.0use-composed-ref: 1.3.0([email protected])- use-latest: 1.2.1(@types/[email protected])([email protected])+ use-latest: 1.2.1(@types/[email protected])([email protected])transitivePeerDependencies:- '@types/react'dev: false@@ -4475,14 +4523,6 @@ packages:fsevents: 2.3.3dev: false- resolution: {integrity: sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==}- engines: {node: '>=14.18.0', npm: '>=8.0.0'}- hasBin: true- optionalDependencies:- fsevents: 2.3.3- dev: false-resolution: {integrity: sha512-XcT5rBksx1QdIhlFOCtgZkB99ZEouFZ1E2Kc2LHqNW13U3/74YGdkQRmThTwxy4QIyookibDKYZOPqX//6BlAg==}engines: {node: '>=12'}@@ -4804,7 +4844,7 @@ packages:tslib: 2.5.0dev: falseresolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==}engines: {node: '>= 12.0.0'}peerDependencies:@@ -4817,7 +4857,7 @@ packages:babel-plugin-macros:optional: truedependencies:- '@babel/core': 7.23.7+ '@babel/core': 7.23.9client-only: 0.0.1react: 18.2.0dev: false@@ -4929,7 +4969,7 @@ packages:tslib: 2.6.2dev: falseresolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==}hasBin: truepeerDependencies:@@ -4948,7 +4988,7 @@ packages:'@tsconfig/node12': 1.0.11'@tsconfig/node14': 1.0.3'@tsconfig/node16': 1.0.4- '@types/node': 20.11.5+ '@types/node': 20.11.16acorn: 8.11.2acorn-walk: 8.3.1arg: 4.1.3@@ -5049,6 +5089,13 @@ packages:resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==}+ resolution: {integrity: sha512-p8VvLAgnx6g9pydV0GG/kciSx3ZCq5PLeEU4yefjoZCc1HSeiMxbrFzYIZlgSMrX3l0CoTJ37C6edu13acE40A==}+ engines: {node: '>=18.0'}+ dependencies:+ '@fastify/busboy': 2.1.0+ dev: false+resolution: {integrity: sha512-SPlDcde+AUHoFKeVlH2uBJxqVkw658I4WR2rPoygC1eRCzm3GeoP8S6xXZVJeBVOQQid8X2xUBW0N4tOvvHH3Q==}dependencies:@@ -5059,7 +5106,7 @@ packages:resolution: {integrity: sha512-BfJEpWBu3aE/AyHx8VaNE/WgouoQxgH9baAiH82JjX8cqVyi3uJQstqwD5J+SZxIK326SZIhsSZlALXVBCknTQ==}dependencies:- acorn: 8.11.2+ acorn: 8.11.3chokidar: 3.5.3webpack-sources: 3.2.3webpack-virtual-modules: 0.6.1@@ -5070,13 +5117,13 @@ packages:engines: {node: '>=8'}dev: trueresolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==}hasBin: truepeerDependencies:browserslist: '>= 4.21.0'dependencies:- browserslist: 4.22.2+ browserslist: 4.22.3escalade: 3.1.1picocolors: 1.0.0dev: false@@ -5087,8 +5134,8 @@ packages:punycode: 2.3.1dev: true- resolution: {integrity: sha512-3FT9PRuRdbB9HfXhEq35u4oZkvpJ5kuYbpqhCfmiZyReuRgpnhDlbr2ZEnnuS0RrJAPn6l23xjFg9kpDM+Ms7w==}+ resolution: {integrity: sha512-Lg4Vx1XZQauB42Hw3kK7JM6yjVjgFmFC5/Ab797s79aARomD2nEErc4mCgM8EZrARLmmbWpi5DGCadmK50DcAQ==}engines: {node: '>=10'}peerDependencies:'@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0@@ -5097,7 +5144,7 @@ packages:'@types/react':optional: truedependencies:- '@types/react': 18.2.48+ '@types/react': 18.2.51react: 18.2.0tslib: 2.6.2dev: false@@ -5110,7 +5157,7 @@ packages:react: 18.2.0dev: falseresolution: {integrity: sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==}peerDependencies:'@types/react': '*'@@ -5119,11 +5166,11 @@ packages:'@types/react':optional: truedependencies:- '@types/react': 18.2.48+ '@types/react': 18.2.51react: 18.2.0dev: falseresolution: {integrity: sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==}peerDependencies:'@types/react': '*'@@ -5132,9 +5179,9 @@ packages:'@types/react':optional: truedependencies:- '@types/react': 18.2.48+ '@types/react': 18.2.51react: 18.2.0- use-isomorphic-layout-effect: 1.1.2(@types/[email protected])([email protected])+ use-isomorphic-layout-effect: 1.1.2(@types/[email protected])([email protected])dev: false@@ -5156,7 +5203,7 @@ packages:react-dom: 18.2.0([email protected])dev: falseresolution: {integrity: sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==}engines: {node: '>=10'}peerDependencies:@@ -5166,7 +5213,7 @@ packages:'@types/react':optional: truedependencies:- '@types/react': 18.2.48+ '@types/react': 18.2.51detect-node-es: 1.1.0react: 18.2.0tslib: 2.6.2@@ -5397,7 +5444,7 @@ packages:engines: {node: '>=10'}dev: trueresolution: {integrity: sha512-zlVFqS5TQ21nwijjhJlx4f9iGrXSL0o/+Dpy4txAP22miJ8Ti6c1Ol1RLNN98BMib83lmDH/2KmLwaNXpjrO1A==}engines: {node: '>=12.7.0'}peerDependencies:@@ -5412,7 +5459,7 @@ packages:react:optional: truedependencies:- '@types/react': 18.2.48+ '@types/react': 18.2.51react: 18.2.0use-sync-external-store: 1.2.0([email protected])dev: falsediff --git a/src/components/PromptInput/index.tsx b/src/components/PromptInput/index.tsxindex 778193d1..821835f9 100644--- a/src/components/PromptInput/index.tsx+++ b/src/components/PromptInput/index.tsx@@ -48,7 +48,7 @@ const StyledPromptInput = styled(TextInput)`}::placeholder {- color: ${({ theme }) => theme.PROMPT_PLACEHOLDER_COLOR};+ color: ${({ theme }) => theme.PROMPT_PLACEHOLDER_COLOR} !important;}`;diff --git a/src/containers/Modals/ImportModal/index.tsx b/src/containers/Modals/ImportModal/index.tsxindex 3da9465f..7847adb0 100644--- a/src/containers/Modals/ImportModal/index.tsx+++ b/src/containers/Modals/ImportModal/index.tsx@@ -1,61 +1,37 @@import React from "react";-import { Modal, Group, Button, TextInput, Stack, Divider, ModalProps } from "@mantine/core";+import {+ Modal,+ Group,+ Button,+ TextInput,+ Stack,+ Divider,+ ModalProps,+ Paper,+ Text,+} from "@mantine/core";+import { Dropzone } from "@mantine/dropzone";import styled from "styled-components";import toast from "react-hot-toast";import { AiOutlineUpload } from "react-icons/ai";+import { FileFormat } from "src/enums/file.enum";import useFile from "src/store/useFile";-const StyledUploadWrapper = styled.label`- display: flex;- flex-direction: column;- justify-content: center;- align-items: center;- background: ${({ theme }) => theme.GRID_BG_COLOR};- border: 2px dashed ${({ theme }) => theme.BACKGROUND_TERTIARY};- border-radius: 5px;- min-height: 200px;- padding: 16px;- cursor: pointer;-- input[type="file"] {- display: none;- }-`;-const StyledFileName = styled.span`padding-top: 14px;color: ${({ theme }) => theme.INTERACTIVE_NORMAL};`;-const StyledUploadMessage = styled.h3`- color: ${({ theme }) => theme.INTERACTIVE_ACTIVE};- margin-bottom: 0;-`;-export const ImportModal: React.FC<ModalProps> = ({ opened, onClose }) => {- const setContents = useFile(state => state.setContents);const [url, setURL] = React.useState("");- const [jsonFile, setJsonFile] = React.useState<File | null>(null);-- const handleFileChange = (e: React.ChangeEvent<HTMLInputElement>) => {- if (e.target.files) setJsonFile(e.target.files?.item(0));- };+ const [file, setFile] = React.useState<File | null>(null);- const handleFileDrag = (e: React.DragEvent<HTMLLabelElement>) => {- e.preventDefault();-- if (e.type === "drop" && e.dataTransfer.files.length) {- if (e.dataTransfer.files[0].type === "application/json") {- setJsonFile(e.dataTransfer.files[0]);- } else {- toast.error("Please upload JSON file!");- }- }- };+ const setContents = useFile(state => state.setContents);+ const setFormat = useFile(state => state.setFormat);const handleImportFile = () => {if (url) {- setJsonFile(null);+ setFile(null);toast.loading("Loading...", { id: "toastFetch" });return fetch(url)@@ -66,21 +42,31 @@ export const ImportModal: React.FC<ModalProps> = ({ opened, onClose }) => {}).catch(() => toast.error("Failed to fetch JSON!")).finally(() => toast.dismiss("toastFetch"));- }-- if (jsonFile) {- const reader = new FileReader();+ } else if (file) {+ const lastIndex = file.name.lastIndexOf(".");+ const format = file.name.substring(lastIndex + 1);+ setFormat(format as FileFormat);- reader.readAsText(jsonFile, "UTF-8");- reader.onload = function (data) {- if (typeof data.target?.result === "string") setContents({ contents: data.target?.result });+ file.text().then(text => {+ setContents({ contents: text });+ setFile(null);+ setURL("");onClose();- };+ });}};return (- <Modal title="Import JSON" opened={opened} onClose={onClose} centered>+ <Modal+ title="Import File"+ opened={opened}+ onClose={() => {+ setFile(null);+ setURL("");+ onClose();+ }}+ centered+ ><Stack py="sm"><TextInputvalue={url}@@ -89,21 +75,37 @@ export const ImportModal: React.FC<ModalProps> = ({ opened, onClose }) => {placeholder="URL of JSON to fetch"data-autofocus/>- <StyledUploadWrapper onDrop={handleFileDrag} onDragOver={handleFileDrag}>- <input- key={jsonFile?.name}- onChange={handleFileChange}- type="file"- accept="application/JSON"- />- <AiOutlineUpload size={48} />- <StyledUploadMessage>Click Here to Upload JSON</StyledUploadMessage>- <StyledFileName>{jsonFile?.name ?? "None"}</StyledFileName>- </StyledUploadWrapper>+ <Paper bg="dark" radius="md" style={{ cursor: "pointer" }}>+ <Dropzone+ onDrop={files => setFile(files[0])}+ onReject={files => toast.error(`Unable to load file ${files[0].file.name}`)}+ maxSize={500 * 1024}+ maxFiles={1}+ p="md"+ accept={[+ "application/json",+ "application/x-yaml",+ "text/csv",+ "application/xml",+ "application/toml",+ ]}+ >+ <Stack justify="center" align="center" gap="sm" mih={220}>+ <AiOutlineUpload size={48} />+ <Text fw="bold">Drop here or click to upload files</Text>+ <Text c="dimmed" fz="xs">+ (Max 500 Kb)+ </Text>+ <Text c="dimmed" fz="sm">+ {file?.name ?? "None"}+ </Text>+ </Stack>+ </Dropzone>+ </Paper></Stack><Divider my="xs" /><Group justify="right">- <Button onClick={handleImportFile} disabled={!(jsonFile || url)}>+ <Button onClick={handleImportFile} disabled={!(file || url)}>Import</Button></Group>diff --git a/src/containers/Modals/JWTModal/index.tsx b/src/containers/Modals/JWTModal/index.tsxindex 78236642..420f91bb 100644--- a/src/containers/Modals/JWTModal/index.tsx+++ b/src/containers/Modals/JWTModal/index.tsx@@ -1,5 +1,5 @@import React from "react";-import { Modal, Button, ModalProps, Textarea, Divider } from "@mantine/core";+import { Modal, Button, ModalProps, Textarea, Divider, Group } from "@mantine/core";import { decode } from "jsonwebtoken";import useFile from "src/store/useFile";@@ -23,13 +23,13 @@ export const JWTModal: React.FC<ModalProps> = ({ opened, onClose }) => {value={token}onChange={e => setToken(e.target.value)}autosize- minRows={4}+ minRows={5}data-autofocus/>- <Divider my="xs" />- <Button onClick={resolve} fullWidth>- Resolve- </Button>+ <Divider my="md" />+ <Group justify="right">+ <Button onClick={resolve}>Resolve</Button>+ </Group></Modal>);};diff --git a/src/containers/Modals/ReviewModal/index.tsx b/src/containers/Modals/ReviewModal/index.tsxindex b4116914..d5f2e559 100644--- a/src/containers/Modals/ReviewModal/index.tsx+++ b/src/containers/Modals/ReviewModal/index.tsx@@ -41,6 +41,8 @@ export const ReviewModal: React.FC<ModalProps> = ({ opened, onClose }) => {minLength={10}maxLength={500}minRows={5}+ maxRows={10}+ autosize/><Text fz={12} c="dimmed" style={{ textAlign: "right" }}>500/{review.length}diff --git a/src/containers/Toolbar/FileMenu.tsx b/src/containers/Toolbar/FileMenu.tsxnew file mode 100644index 00000000..550bfe65--- /dev/null+++ b/src/containers/Toolbar/FileMenu.tsx@@ -0,0 +1,42 @@+import React from "react";+import { Flex, Menu } from "@mantine/core";+import { CgChevronDown } from "react-icons/cg";+import useFile from "src/store/useFile";+import useModal from "src/store/useModal";+import * as Styles from "./styles";++export const FileMenu = () => {+ const setVisible = useModal(state => state.setVisible);+ const getContents = useFile(state => state.getContents);+ const getFormat = useFile(state => state.getFormat);++ const handleSave = () => {+ const a = document.createElement("a");+ const file = new Blob([getContents()], { type: "text/plain" });++ a.href = window.URL.createObjectURL(file);+ a.download = `jsoncrack.${getFormat()}`;+ a.click();+ };++ return (+ <Menu shadow="md" withArrow>+ <Menu.Target>+ <Styles.StyledToolElement title="File">+ <Flex align="center" gap={3}>+ File+ <CgChevronDown />+ </Flex>+ </Styles.StyledToolElement>+ </Menu.Target>+ <Menu.Dropdown>+ <Menu.Item fz={12} onClick={() => setVisible("import")(true)}>+ Import+ </Menu.Item>+ <Menu.Item fz={12} onClick={handleSave}>+ Export+ </Menu.Item>+ </Menu.Dropdown>+ </Menu>+ );+};diff --git a/src/containers/Toolbar/OptionsMenu.tsx b/src/containers/Toolbar/OptionsMenu.tsxindex 95310503..0a828e96 100644--- a/src/containers/Toolbar/OptionsMenu.tsx+++ b/src/containers/Toolbar/OptionsMenu.tsx@@ -72,12 +72,12 @@ export const OptionsMenu = () => {leftSection={<BsCheck2 opacity={aiEnabled ? 100 : 0} />}onClick={() => toggleAI(!aiEnabled)}>- <Text size="xs">- JSON Crack AI{" "}+ <Flex align="center" gap={2}>+ <Text size="xs">JSON Crack AI</Text><Badge ml={2} size="xs" variant="light" radius={2}>Alpha</Badge>- </Text>+ </Flex></Menu.Item></Menu.Dropdown></Menu>diff --git a/src/containers/Toolbar/ViewMenu.tsx b/src/containers/Toolbar/ViewMenu.tsxindex bde24c9a..04667cc6 100644--- a/src/containers/Toolbar/ViewMenu.tsx+++ b/src/containers/Toolbar/ViewMenu.tsx@@ -1,12 +1,14 @@import React from "react";-import { Menu, Flex, Text } from "@mantine/core";+import { Menu, Flex, Text, SegmentedControl } from "@mantine/core";import { useHotkeys } from "@mantine/hooks";import ReactGA from "react-ga4";import toast from "react-hot-toast";-import { CgChevronDown, CgArrowsShrinkH, CgArrowsMergeAltH } from "react-icons/cg";+import { CgChevronDown } from "react-icons/cg";import { VscExpandAll, VscCollapseAll, VscTarget } from "react-icons/vsc";+import { ViewMode } from "src/enums/viewMode.enum";import useToggleHide from "src/hooks/useToggleHide";import { getNextDirection } from "src/lib/utils/graph/getNextDirection";+import useConfig from "src/store/useConfig";import useGraph from "src/store/useGraph";import * as Styles from "./styles";@@ -20,19 +22,14 @@ function rotateLayout(direction: "LEFT" | "RIGHT" | "DOWN" | "UP") {export const ViewMenu = () => {const { validateHiddenNodes } = useToggleHide();const [coreKey, setCoreKey] = React.useState("CTRL");- const toggleFold = useGraph(state => state.toggleFold);const setDirection = useGraph(state => state.setDirection);const direction = useGraph(state => state.direction);const expandGraph = useGraph(state => state.expandGraph);const collapseGraph = useGraph(state => state.collapseGraph);const focusFirstNode = useGraph(state => state.focusFirstNode);- const foldNodes = useGraph(state => state.foldNodes);const graphCollapsed = useGraph(state => state.graphCollapsed);-- const toggleFoldNodes = () => {- toggleFold(!foldNodes);- toast(`${foldNodes ? "Unfolded" : "Folded"} nodes`);- };+ const viewMode = useConfig(state => state.viewMode);+ const setViewMode = useConfig(state => state.setViewMode);const toggleDirection = () => {const nextDirection = getNextDirection(direction || "RIGHT");@@ -49,7 +46,6 @@ export const ViewMenu = () => {useHotkeys([["mod+shift+d", toggleDirection],- ["mod+shift+f", toggleFoldNodes],["mod+shift+c", toggleExpandCollapseGraph],["mod+f",@@ -76,66 +72,63 @@ export const ViewMenu = () => {</Styles.StyledToolElement></Menu.Target><Menu.Dropdown>- <Menu.Item- fz={12}- onClick={() => {- toggleDirection();- ReactGA.event({- action: "toggle_layout_direction",- category: "User",- label: "Tools",- });- }}- leftSection={<Styles.StyledFlowIcon rotate={rotateLayout(direction || "RIGHT")} />}- rightSection={- <Text ml="md" fz={10} c="dimmed">- {coreKey} Shift D- </Text>- }- >- Rotate Layout- </Menu.Item>- <Menu.Item- fz={12}- onClick={() => {- toggleFoldNodes();- ReactGA.event({- action: "toggle_fold_nodes",- category: "User",- label: "Tools",- });- }}- leftSection={foldNodes ? <CgArrowsShrinkH /> : <CgArrowsMergeAltH />}- rightSection={- <Text ml="md" fz={10} c="dimmed">- {coreKey} Shift F- </Text>- }- >- {foldNodes ? "Unfold" : "Fold"} Nodes- </Menu.Item>- <Menu.Item- fz={12}- onClick={() => {- toggleExpandCollapseGraph();- ReactGA.event({- action: "toggle_collapse_nodes",- category: "User",- label: "Tools",- });- }}- leftSection={graphCollapsed ? <VscExpandAll /> : <VscCollapseAll />}- rightSection={- <Text ml="md" fz={10} c="dimmed">- {coreKey} Shift C- </Text>- }- >- {graphCollapsed ? "Expand" : "Collapse"} Nodes- </Menu.Item>- <Menu.Item fz={12} onClick={focusFirstNode} leftSection={<VscTarget />}>- Focus to First Node- </Menu.Item>+ <SegmentedControl+ miw={205}+ size="xs"+ value={viewMode}+ onChange={e => setViewMode(e as ViewMode)}+ data={[+ { value: ViewMode.Graph, label: "Graph" },+ { value: ViewMode.Tree, label: "Tree" },+ ]}+ fullWidth+ />+ {viewMode === ViewMode.Graph && (+ <>+ <Menu.Item+ mt="xs"+ fz={12}+ onClick={() => {+ toggleDirection();+ ReactGA.event({+ action: "toggle_layout_direction",+ category: "User",+ label: "Tools",+ });+ }}+ leftSection={<Styles.StyledFlowIcon rotate={rotateLayout(direction || "RIGHT")} />}+ rightSection={+ <Text ml="md" fz={10} c="dimmed">+ {coreKey} Shift D+ </Text>+ }+ >+ Rotate Layout+ </Menu.Item>+ <Menu.Item+ fz={12}+ onClick={() => {+ toggleExpandCollapseGraph();+ ReactGA.event({+ action: "toggle_collapse_nodes",+ category: "User",+ label: "Tools",+ });+ }}+ leftSection={graphCollapsed ? <VscExpandAll /> : <VscCollapseAll />}+ rightSection={+ <Text ml="md" fz={10} c="dimmed">+ {coreKey} Shift C+ </Text>+ }+ >+ {graphCollapsed ? "Expand" : "Collapse"} Nodes+ </Menu.Item>+ <Menu.Item fz={12} onClick={focusFirstNode} leftSection={<VscTarget />}>+ Focus to First Node+ </Menu.Item>+ </>+ )}</Menu.Dropdown></Menu>);diff --git a/src/containers/Toolbar/ViewModeMenu.tsx b/src/containers/Toolbar/ViewModeMenu.tsxdeleted file mode 100644index 43294c54..00000000--- a/src/containers/Toolbar/ViewModeMenu.tsx+++ /dev/null@@ -1,33 +0,0 @@-import React from "react";-import { Menu, Flex, SegmentedControl } from "@mantine/core";-import { CgChevronDown } from "react-icons/cg";-import { ViewMode } from "src/enums/viewMode.enum";-import useConfig from "src/store/useConfig";-import * as Styles from "./styles";--export const ViewModeMenu = () => {- const viewMode = useConfig(state => state.viewMode);- const setViewMode = useConfig(state => state.setViewMode);-- return (- <Menu trigger="click" shadow="md" withArrow>- <Menu.Target>- <Styles.StyledToolElement title="View Mode">- <Flex align="center" gap={3}>- View Mode <CgChevronDown />- </Flex>- </Styles.StyledToolElement>- </Menu.Target>- <Menu.Dropdown>- <SegmentedControl- value={viewMode}- onChange={e => setViewMode(e as ViewMode)}- data={[- { value: ViewMode.Graph, label: "Graph" },- { value: ViewMode.Tree, label: "Tree" },- ]}- />- </Menu.Dropdown>- </Menu>- );-};diff --git a/src/containers/Toolbar/index.tsx b/src/containers/Toolbar/index.tsxindex 36c65d6e..267775a4 100644--- a/src/containers/Toolbar/index.tsx+++ b/src/containers/Toolbar/index.tsx@@ -8,15 +8,14 @@ import { SearchInput } from "src/components/SearchInput";import { FileFormat } from "src/enums/file.enum";import { JSONCrackLogo } from "src/layout/JsonCrackLogo";import useFile from "src/store/useFile";-import useJson from "src/store/useJson";import useModal from "src/store/useModal";import useUser from "src/store/useUser";import { AccountMenu } from "./AccountMenu";+import { FileMenu } from "./FileMenu";import { Logo } from "./Logo";import { OptionsMenu } from "./OptionsMenu";import { ToolsMenu } from "./ToolsMenu";import { ViewMenu } from "./ViewMenu";-import { ViewModeMenu } from "./ViewModeMenu";import { ZoomMenu } from "./ZoomMenu";import * as Styles from "./styles";@@ -31,22 +30,11 @@ function fullscreenBrowser() {}export const Toolbar: React.FC<{ isWidget?: boolean }> = ({ isWidget = false }) => {- const getJson = useJson(state => state.getJson);const setVisible = useModal(state => state.setVisible);-const setFormat = useFile(state => state.setFormat);const format = useFile(state => state.format);const premium = useUser(state => state.premium);- const handleSave = () => {- const a = document.createElement("a");- const file = new Blob([getJson()], { type: "text/plain" });-- a.href = window.URL.createObjectURL(file);- a.download = "jsoncrack.json";- a.click();- };-return (<Styles.StyledTools>{isWidget && <Logo />}@@ -74,18 +62,12 @@ export const Toolbar: React.FC<{ isWidget?: boolean }> = ({ isWidget = false })]}/>- <ViewModeMenu />- <Styles.StyledToolElement title="Import File" onClick={() => setVisible("import")(true)}>- Import- </Styles.StyledToolElement>+ <FileMenu /><ViewMenu /><ToolsMenu /><Styles.StyledToolElement title="Cloud" onClick={() => setVisible("cloud")(true)}>Cloud</Styles.StyledToolElement>- <Styles.StyledToolElement title="Download as File" onClick={handleSave}>- Download- </Styles.StyledToolElement></Group>)}<Group gap="xs" justify="right" w="100%" style={{ flexWrap: "nowrap" }}>diff --git a/src/lib/utils/data/encode.ts b/src/lib/utils/data/encode.tsnew file mode 100644index 00000000..66f0e9b7--- /dev/null+++ b/src/lib/utils/data/encode.ts@@ -0,0 +1,89 @@+import { deflate, inflate } from "pako";++// fast, Buffer-compatible implem+export const toByteString = (data: string | Uint8Array | ArrayBuffer): Promise<string> => {+ return new Promise((resolve, reject) => {+ const blob =+ typeof data === "string"+ ? new Blob([new TextEncoder().encode(data)])+ : new Blob([data instanceof Uint8Array ? data : new Uint8Array(data)]);+ const reader = new FileReader();+ reader.onload = event => {+ if (!event.target || typeof event.target.result !== "string") {+ return reject(new Error("couldn't convert to byte string"));+ }+ resolve(event.target.result);+ };+ reader.readAsBinaryString(blob);+ });+};++type EncodedData = {+ encoded: string;+ encoding: "bstring";+ /** whether text is compressed (zlib) */+ compressed: boolean;+ /** version for potential migration purposes */+ version?: string;+};++/**+ * Encodes (and potentially compresses via zlib) text to byte string+ */+export const encode = async ({+ text,+ compress,+}: {+ text: string;+ /** defaults to `true`. If compression fails, falls back to bstring alone. */+ compress?: boolean;+}): Promise<EncodedData> => {+ let deflated!: string;+ if (compress !== false) {+ try {+ deflated = await toByteString(deflate(text));+ } catch (error: any) {+ console.error("encode: cannot deflate", error);+ }+ }+ return {+ version: "1",+ encoding: "bstring",+ compressed: !!deflated,+ encoded: deflated || (await toByteString(text)),+ };+};++const byteStringToArrayBuffer = (byteString: string) => {+ const buffer = new ArrayBuffer(byteString.length);+ const bufferView = new Uint8Array(buffer);+ for (let i = 0, len = byteString.length; i < len; i++) {+ bufferView[i] = byteString.charCodeAt(i);+ }+ return buffer;+};++const byteStringToString = (byteString: string) => {+ return new TextDecoder("utf-8").decode(byteStringToArrayBuffer(byteString));+};++export const decode = async (data: EncodedData): Promise<string> => {+ let decoded: string;++ switch (data.encoding) {+ case "bstring":+ // if compressed, do not double decode the bstring+ decoded = data.compressed ? data.encoded : await byteStringToString(data.encoded);+ break;+ default:+ throw new Error(`decode: unknown encoding "${data.encoding}"`);+ }++ if (data.compressed) {+ return inflate(new Uint8Array(byteStringToArrayBuffer(decoded)), {+ to: "string",+ });+ }++ return decoded;+};diff --git a/src/lib/utils/graph/calculateNodeSize.ts b/src/lib/utils/graph/calculateNodeSize.tsindex a7b30184..181ab8df 100644--- a/src/lib/utils/graph/calculateNodeSize.ts+++ b/src/lib/utils/graph/calculateNodeSize.ts@@ -1,6 +1,5 @@import { firaMono } from "src/constants/fonts";import useConfig from "src/store/useConfig";-import useGraph from "src/store/useGraph";type Text = string | [string, string][];type Size = { width: number; height: number };@@ -53,11 +52,10 @@ const sizeCache = new Map<Text, Size>();setInterval(() => sizeCache.clear(), 120_000);export const calculateNodeSize = (text: Text, isParent = false) => {- const { foldNodes } = useGraph.getState();const { imagePreviewEnabled } = useConfig.getState();const isImage = isContentImage(text) && imagePreviewEnabled;- const cacheKey = [text, isParent, foldNodes].toString();+ const cacheKey = [text, isParent].toString();// check cache if data already existsif (sizeCache.has(cacheKey)) {@@ -74,8 +72,6 @@ export const calculateNodeSize = (text: Text, isParent = false) => {sizes.height = 80;}- if (foldNodes) sizes.width = 300;- if (isParent && foldNodes) sizes.width = 170;if (isParent) sizes.width += 100;if (sizes.width > 700) sizes.width = 700;diff --git a/src/pages/pricing.tsx b/src/pages/pricing.tsxindex 9028a9a4..0ad10a57 100644--- a/src/pages/pricing.tsx+++ b/src/pages/pricing.tsx@@ -209,11 +209,11 @@ const Pricing = () => {</Text></List.Item><List.Item>- <Text c="blue" fz="sm">- Join alpha test of JC AI{" "}+ <Text fw="bold" c="indigo" fz="sm">+ Join alpha test of AI{" "}<Tooltip label="You will receive 10 credits per day."><ThemeIcon size="xs" variant="transparent" style={{ verticalAlign: "middle" }}>- <VscInfo />+ <VscInfo strokeWidth={0.7} /></ThemeIcon></Tooltip></Text>diff --git a/src/store/useGraph.ts b/src/store/useGraph.tsindex da8f043f..075744f9 100644--- a/src/store/useGraph.ts+++ b/src/store/useGraph.ts@@ -12,7 +12,6 @@ export interface Graph {direction: CanvasDirection;loading: boolean;graphCollapsed: boolean;- foldNodes: boolean;fullscreen: boolean;collapseAll: boolean;nodes: NodeData[];@@ -29,7 +28,6 @@ const initialStates: Graph = {direction: "RIGHT",loading: true,graphCollapsed: false,- foldNodes: false,fullscreen: false,collapseAll: false,nodes: [],@@ -54,7 +52,6 @@ interface GraphActions {collapseGraph: () => void;getCollapsedNodeIds: () => string[];getCollapsedEdgeIds: () => string[];- toggleFold: (value: boolean) => void;toggleFullscreen: (value: boolean) => void;toggleCollapseAll: (value: boolean) => void;zoomIn: () => void;@@ -215,10 +212,6 @@ const useGraph = create<Graph & GraphActions>((set, get) => ({viewPort?.camera?.centerFitElementIntoView(canvas);}},- toggleFold: foldNodes => {- set({ foldNodes });- get().setGraph();- },toggleFullscreen: fullscreen => set({ fullscreen }),setViewPort: viewPort => set({ viewPort }),}));