diff --git a/README.md b/README.md index b32f0684f..7c5302d1b 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ To maintain consistency and efficiency, follow these steps when working on the p 2. Adding New UI with Content: - Define the Sanity schema for new content types. - - Implement the corresponding interface and payload structure in src/lib/payloads. + - Implement the corresponding interface and payload structure in src/lib/interfaces. - Fetch the necessary data and create the UI component. - Document and test the UI component in Storybook, using mock data for isolated development. diff --git a/package-lock.json b/package-lock.json index 6abe4c668..758e77e3e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "react": "^18", "react-dom": "^18", "react-focus-on": "^3.9.3", - "sanity": "^3.50.0" + "sanity": "^3.57.3" }, "devDependencies": { "@storybook/addon-a11y": "^8.2.9", @@ -4851,28 +4851,26 @@ } }, "node_modules/@sanity/block-tools": { - "version": "3.57.1", - "resolved": "https://registry.npmjs.org/@sanity/block-tools/-/block-tools-3.57.1.tgz", - "integrity": "sha512-qGfc1nuwuZdthf2DQVEbMJyU97FXrWh/69FOc3pVmmLMXQDbuGHGq6TClnhcKBxBCd3y7GAB/J0cuy5h04b4vA==", - "license": "MIT", + "version": "3.57.3", + "resolved": "https://registry.npmjs.org/@sanity/block-tools/-/block-tools-3.57.3.tgz", + "integrity": "sha512-QM0wTENEcGyMNE9rfd33xXciCqmrYF4GJ9eLc0nkyOCjwLXuCvaN7HpenqsMY4JDRSvRH4LjTt9Ypqs4g5AqsA==", "dependencies": { - "@sanity/types": "3.57.1", - "@types/react": "^18.3.3", + "@sanity/types": "3.57.3", + "@types/react": "^18.3.5", "get-random-values-esm": "1.0.2", "lodash": "^4.17.21" } }, "node_modules/@sanity/cli": { - "version": "3.57.1", - "resolved": "https://registry.npmjs.org/@sanity/cli/-/cli-3.57.1.tgz", - "integrity": "sha512-nXlbHwUxL+K21Zie4ycrImKW8BpzIY6v5RFs9fGM3dCMUUkdFvd4d1qs8u2q/n6ONdr3yQS8TlT8VfHX1pFYFg==", - "license": "MIT", + "version": "3.57.3", + "resolved": "https://registry.npmjs.org/@sanity/cli/-/cli-3.57.3.tgz", + "integrity": "sha512-KXhQ/K/OZLi7Wznd9PhB5lmhBFSNyW7J8spKNhEd9qJPIet8ObQfKYjy43tHskMSrC9mlCIcKde7+k64emks/g==", "dependencies": { "@babel/traverse": "^7.23.5", - "@sanity/client": "^6.21.2", - "@sanity/codegen": "3.57.1", + "@sanity/client": "^6.21.3", + "@sanity/codegen": "3.57.3", "@sanity/telemetry": "^0.7.7", - "@sanity/util": "3.57.1", + "@sanity/util": "3.57.3", "chalk": "^4.1.2", "debug": "^4.3.4", "decompress": "^4.2.0", @@ -4898,7 +4896,6 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -4913,7 +4910,6 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -4929,7 +4925,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "license": "MIT", "engines": { "node": ">=8" } @@ -4938,7 +4933,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-5.0.0.tgz", "integrity": "sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA==", - "license": "MIT", "dependencies": { "find-up": "^5.0.0" }, @@ -4950,7 +4944,6 @@ "version": "7.6.3", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -4962,7 +4955,6 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -4985,10 +4977,9 @@ } }, "node_modules/@sanity/codegen": { - "version": "3.57.1", - "resolved": "https://registry.npmjs.org/@sanity/codegen/-/codegen-3.57.1.tgz", - "integrity": "sha512-47j7xxluLP2pmwFHKEzxWwIw6V8Xgx4s0IsewZ8g1MEoIv0DDSqxyBxKFo1ieC4Fh6oHz8JISXKclq2LzSjbzQ==", - "license": "MIT", + "version": "3.57.3", + "resolved": "https://registry.npmjs.org/@sanity/codegen/-/codegen-3.57.3.tgz", + "integrity": "sha512-z62d8UA0r9rFs2l1wD+I4BwsvpfKdEGoiewpEJKnFHraxHpKgDZN6nb9tNXosu04kkFvuydtRRcMLIwLitlgcw==", "dependencies": { "@babel/core": "^7.23.9", "@babel/generator": "^7.23.6", @@ -5000,7 +4991,7 @@ "@babel/types": "^7.23.9", "debug": "^4.3.4", "globby": "^10.0.0", - "groq": "3.57.1", + "groq": "3.57.3", "groq-js": "^1.13.0", "json5": "^2.2.3", "tsconfig-paths": "^4.2.0", @@ -5015,7 +5006,6 @@ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "deprecated": "Glob versions prior to v9 are no longer supported", - "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -5035,7 +5025,6 @@ "version": "10.0.2", "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz", "integrity": "sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==", - "license": "MIT", "dependencies": { "@types/glob": "^7.1.1", "array-union": "^2.1.0", @@ -5072,10 +5061,9 @@ } }, "node_modules/@sanity/diff": { - "version": "3.57.1", - "resolved": "https://registry.npmjs.org/@sanity/diff/-/diff-3.57.1.tgz", - "integrity": "sha512-uGRtwCQwsLkujiJ/KrXEQrYPWVQ34t5t7QWrqzGSyiTnASc3pjfiWwFSVwSKkCyO9AiLT+/ynCBuKsAhnYWAwQ==", - "license": "MIT", + "version": "3.57.3", + "resolved": "https://registry.npmjs.org/@sanity/diff/-/diff-3.57.3.tgz", + "integrity": "sha512-4RRwAR01sdYHbTqvt6zHpYlPTxonjHj4Y2i8ZtzZB/fFmKej7cBB+ZlKKlLNXnT8qtIy6SZghF2dluXywGviWA==", "dependencies": { "@sanity/diff-match-patch": "^3.1.1" }, @@ -5336,38 +5324,6 @@ "react": "^16.9 || ^17 || ^18" } }, - "node_modules/@sanity/insert-menu": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@sanity/insert-menu/-/insert-menu-1.0.8.tgz", - "integrity": "sha512-H2xEvhnbYcS8yUWRap9KjzfS9ATv0pZkyRsSovDIGRnQ8BW4HGxb3f1i8ZHgl5s6ERIFyS0PHKuCWUTZacRn4Q==", - "license": "MIT", - "dependencies": { - "@sanity/icons": "^3.3.1", - "@sanity/ui": "^2.8.8", - "lodash.startcase": "^4.4.0" - }, - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "@sanity/types": "^3.53.0", - "react": "^18.3 || >=19.0.0-rc", - "react-dom": "^18.3 || >=19.0.0-rc", - "react-is": "^18.3 || >=19.0.0-rc" - } - }, - "node_modules/@sanity/insert-menu/node_modules/@sanity/icons": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/@sanity/icons/-/icons-3.4.0.tgz", - "integrity": "sha512-X8BMM68w3y5cuCLpPwV7jGhVNGgAL/FA3UI6JaRCsyVOahA6aBOeKdjFs5MHtKi8cmrKwq1a98h/HbrK56kszA==", - "license": "MIT", - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "react": "^18.3 || >=19.0.0-rc" - } - }, "node_modules/@sanity/language-filter": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@sanity/language-filter/-/language-filter-4.0.2.tgz", @@ -5405,15 +5361,14 @@ } }, "node_modules/@sanity/migrate": { - "version": "3.57.1", - "resolved": "https://registry.npmjs.org/@sanity/migrate/-/migrate-3.57.1.tgz", - "integrity": "sha512-zYGyxfrJLsshcOtycD4VXt9BjIdY8z/DfZ4jEzV0s76yjD2g92ZEAdRQ40QcXVnll4UO+Pl9Ae31srIzo4N/AQ==", - "license": "MIT", - "dependencies": { - "@sanity/client": "^6.21.2", - "@sanity/mutate": "^0.8.0", - "@sanity/types": "3.57.1", - "@sanity/util": "3.57.1", + "version": "3.57.3", + "resolved": "https://registry.npmjs.org/@sanity/migrate/-/migrate-3.57.3.tgz", + "integrity": "sha512-VhkpuXZNNmRMs7pXpTrlLjTe8DO04fs6xrxR3acNCoLpfOIRg9vQ5Dl8RQLDqGtbNtU1Hq0cud98DvLLXcVumg==", + "dependencies": { + "@sanity/client": "^6.21.3", + "@sanity/mutate": "^0.10.0", + "@sanity/types": "3.57.3", + "@sanity/util": "3.57.3", "arrify": "^2.0.1", "debug": "^4.3.4", "fast-fifo": "^1.3.2", @@ -5428,7 +5383,6 @@ "version": "7.0.2", "resolved": "https://registry.npmjs.org/p-map/-/p-map-7.0.2.tgz", "integrity": "sha512-z4cYYMMdKHzw4O5UkWJImbZynVIo0lSGTXc7bzB1e/rrDqkgGUNysK/o4bTr+0+xKvvLoTyGqYC4Fgljy9qe1Q==", - "license": "MIT", "engines": { "node": ">=18" }, @@ -5437,10 +5391,9 @@ } }, "node_modules/@sanity/mutate": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@sanity/mutate/-/mutate-0.8.0.tgz", - "integrity": "sha512-70tVQD2HjRx9O273BZbqOT8llFAsQFjYUz3lLvbybo8nvcxu/of2PHyTTHe3QIqkB63FHEQ5T7UBrWxlccCX8Q==", - "license": "MIT", + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/@sanity/mutate/-/mutate-0.10.0.tgz", + "integrity": "sha512-kgBY8EZ/i+5KQkDlMizr/KQMwF/E2ExYWPsogFuDoGdQ3MhD+5jwP7X/WpttAZh8F8dupBzslgvv5f9DUeKx3Q==", "dependencies": { "@sanity/client": "^6.21.1", "@sanity/diff-match-patch": "^3.1.1", @@ -5457,7 +5410,6 @@ "version": "3.0.7", "resolved": "https://registry.npmjs.org/mendoza/-/mendoza-3.0.7.tgz", "integrity": "sha512-KtLgsCl5dFjRPUVSVV9KxpUr2BfZgLv8uqxg/hCsI7JIWsesHABSbl0MQwxNHAg24KtzSQ6vrPsgeNnoq4UImg==", - "license": "MIT", "engines": { "node": ">=14.18" } @@ -5472,7 +5424,6 @@ "url": "https://github.com/sponsors/ai" } ], - "license": "MIT", "bin": { "nanoid": "bin/nanoid.js" }, @@ -5481,27 +5432,25 @@ } }, "node_modules/@sanity/mutator": { - "version": "3.57.1", - "resolved": "https://registry.npmjs.org/@sanity/mutator/-/mutator-3.57.1.tgz", - "integrity": "sha512-G9blglmLkv+lsyTxnoDc2Tr/R8J2W9ZpAGFhwJo+Xg0ZcFQOOGg9hptJqCCzlQFo1pppKK0oDdLjwSzDNH6HhQ==", - "license": "MIT", + "version": "3.57.3", + "resolved": "https://registry.npmjs.org/@sanity/mutator/-/mutator-3.57.3.tgz", + "integrity": "sha512-ZKKF5/CgBdxw1XqylFpZfJXLpZmlRDyh9q8A50qQqtdUovCqK+zs3rfNWXU/w++o6iAC7Z+YC3a9pR7GEltPTg==", "dependencies": { "@sanity/diff-match-patch": "^3.1.1", - "@sanity/types": "3.57.1", + "@sanity/types": "3.57.3", "@sanity/uuid": "^3.0.1", "debug": "^4.3.4", "lodash": "^4.17.21" } }, "node_modules/@sanity/presentation": { - "version": "1.16.4", - "resolved": "https://registry.npmjs.org/@sanity/presentation/-/presentation-1.16.4.tgz", - "integrity": "sha512-NuphMX/XW3TpCfmVRevuna7ExjpvKZu4dXBu6sZKcE09JZh4wRvBDySfWUm/a1qwN8elm05TC24kEwv8RHxRrQ==", - "license": "MIT", + "version": "1.16.5", + "resolved": "https://registry.npmjs.org/@sanity/presentation/-/presentation-1.16.5.tgz", + "integrity": "sha512-Srs/22A/eaUZ9skeiYnd7J5lUP8gYX6tqfxtQfYJN6M97iOO1TN5a6r2GE8leatX17gY5VLVdFsZAqtFPTf8YA==", "dependencies": { - "@sanity/icons": "^3.3.1", - "@sanity/preview-url-secret": "^1.6.20", - "@sanity/ui": "^2.8.8", + "@sanity/icons": "^3.4.0", + "@sanity/preview-url-secret": "^1.6.21", + "@sanity/ui": "^2.8.9", "@sanity/uuid": "3.0.2", "@types/lodash.isequal": "^4.5.8", "fast-deep-equal": "3.1.3", @@ -5518,14 +5467,13 @@ "node": ">=16.14" }, "peerDependencies": { - "@sanity/client": "^6.21.2" + "@sanity/client": "^6.21.3" } }, "node_modules/@sanity/presentation/node_modules/@sanity/icons": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/@sanity/icons/-/icons-3.4.0.tgz", "integrity": "sha512-X8BMM68w3y5cuCLpPwV7jGhVNGgAL/FA3UI6JaRCsyVOahA6aBOeKdjFs5MHtKi8cmrKwq1a98h/HbrK56kszA==", - "license": "MIT", "engines": { "node": ">=14.0.0" }, @@ -5537,16 +5485,14 @@ "version": "3.0.7", "resolved": "https://registry.npmjs.org/mendoza/-/mendoza-3.0.7.tgz", "integrity": "sha512-KtLgsCl5dFjRPUVSVV9KxpUr2BfZgLv8uqxg/hCsI7JIWsesHABSbl0MQwxNHAg24KtzSQ6vrPsgeNnoq4UImg==", - "license": "MIT", "engines": { "node": ">=14.18" } }, "node_modules/@sanity/presentation/node_modules/path-to-regexp": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.2.tgz", - "integrity": "sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw==", - "license": "MIT" + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz", + "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==" }, "node_modules/@sanity/preview-kit": { "version": "5.0.20", @@ -5597,10 +5543,9 @@ } }, "node_modules/@sanity/preview-url-secret": { - "version": "1.6.20", - "resolved": "https://registry.npmjs.org/@sanity/preview-url-secret/-/preview-url-secret-1.6.20.tgz", - "integrity": "sha512-+UB02o1it0Dg7r73ewe+gyDAX/McmyJYcbEQYaEvwOi8VAxXUSyugyjJVKDIlljiyEkG8K4g3DV1tz2SL3N+tw==", - "license": "MIT", + "version": "1.6.21", + "resolved": "https://registry.npmjs.org/@sanity/preview-url-secret/-/preview-url-secret-1.6.21.tgz", + "integrity": "sha512-ZAIT4I5Nrsax+RBQVhSBY4PnnHgaI+eybSd5aHhjZi97+ziMTtTLnL1Hsg+ViLtPqJWwX0GiB0l8nSfGAt7+QA==", "dependencies": { "@sanity/uuid": "3.0.2" }, @@ -5608,7 +5553,7 @@ "node": ">=18" }, "peerDependencies": { - "@sanity/client": "^6.21.2" + "@sanity/client": "^6.21.3" } }, "node_modules/@sanity/react-loader": { @@ -5628,13 +5573,12 @@ } }, "node_modules/@sanity/schema": { - "version": "3.57.1", - "resolved": "https://registry.npmjs.org/@sanity/schema/-/schema-3.57.1.tgz", - "integrity": "sha512-gbuZW0QPgp4ZSDsCV0L0esDXGPokSfZRXo7DV3D1qT5QiBu1qImaDqqXIoL5+qn4MEcwcEGrdXgmXpcw3p5+iw==", - "license": "MIT", + "version": "3.57.3", + "resolved": "https://registry.npmjs.org/@sanity/schema/-/schema-3.57.3.tgz", + "integrity": "sha512-htgRntAe/guhpp+7BVEF6f1ypT02/VD9dL//fAziH7m9L/9hylLEc36KAxjC0mmM8h6s372dU72+k+ko0vajVA==", "dependencies": { "@sanity/generate-help-url": "^3.0.0", - "@sanity/types": "3.57.1", + "@sanity/types": "3.57.3", "arrify": "^1.0.1", "groq-js": "^1.13.0", "humanize-list": "^1.0.1", @@ -5656,7 +5600,6 @@ "version": "0.7.9", "resolved": "https://registry.npmjs.org/@sanity/telemetry/-/telemetry-0.7.9.tgz", "integrity": "sha512-TBBRK2SUwiNND+ZJPwdWSu8tbEjdIz7UjagmCCBBWcfXtDKXXlWawC/DOEWuI4Q+WcA5OWLDjboxZT4ApWjVbw==", - "license": "MIT", "dependencies": { "lodash": "^4.17.21", "rxjs": "^7.8.1", @@ -5670,24 +5613,22 @@ } }, "node_modules/@sanity/types": { - "version": "3.57.1", - "resolved": "https://registry.npmjs.org/@sanity/types/-/types-3.57.1.tgz", - "integrity": "sha512-zozN7U0xdaT9c1VzYP58N6geyQFMDksYL5J2g3l4VRne2BzfjXAO+1H/q9FbdazOe6j2UMXwJRKPjiMLEiN1kg==", - "license": "MIT", + "version": "3.57.3", + "resolved": "https://registry.npmjs.org/@sanity/types/-/types-3.57.3.tgz", + "integrity": "sha512-v/dN/783lhq79jmp8UAnXyxkc11/+1e3Q7IfYfcjweBcrwGXRI+9qcYgDzJ2DaiBbWAUe2c1L4GO7H4123ylGQ==", "dependencies": { - "@sanity/client": "^6.21.2", - "@types/react": "^18.3.3" + "@sanity/client": "^6.21.3", + "@types/react": "^18.3.5" } }, "node_modules/@sanity/ui": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/@sanity/ui/-/ui-2.8.8.tgz", - "integrity": "sha512-LeYpcng9fakvwgCtAV4b/2koCsm7TTDQNwK+r2MnVghH23ln0iblvBdO4+T1Q10E+m2Vr2dcy3+HErdTu8f8Ag==", - "license": "MIT", + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/@sanity/ui/-/ui-2.8.9.tgz", + "integrity": "sha512-ii5pa3HSA5DonhY+IRb5FHpS5rIM3gyMGTfX+HjaPqRy1itSNs1EqetI9oMVsheCYWEQTdZFzIpIX2mEsGVKKw==", "dependencies": { "@floating-ui/react-dom": "^2.1.1", "@sanity/color": "^3.0.6", - "@sanity/icons": "^3.3.1", + "@sanity/icons": "^3.4.0", "csstype": "^3.1.3", "framer-motion": "11.0.8", "react-refractor": "^2.2.0", @@ -5716,13 +5657,12 @@ } }, "node_modules/@sanity/util": { - "version": "3.57.1", - "resolved": "https://registry.npmjs.org/@sanity/util/-/util-3.57.1.tgz", - "integrity": "sha512-OFK1kd9rS81953K8eBG4mizF1Iz/yC9zzLFKL+OJ71uunxjf8bpuY4bBuybnFc3xhJ54V9IGDg/Jy19QrNWi1Q==", - "license": "MIT", + "version": "3.57.3", + "resolved": "https://registry.npmjs.org/@sanity/util/-/util-3.57.3.tgz", + "integrity": "sha512-L9OFXgoMJnN0Ipq+znbTe0wP2TBLB/mI88R1vHBJGDF0nnoD8xEu05HzExeQtS32YCo5KIqXTBmqZ1gTXH4BoA==", "dependencies": { - "@sanity/client": "^6.21.2", - "@sanity/types": "3.57.1", + "@sanity/client": "^6.21.3", + "@sanity/types": "3.57.3", "get-random-values-esm": "1.0.2", "moment": "^2.29.4", "rxjs": "^7.8.1" @@ -7891,7 +7831,6 @@ "version": "4.5.8", "resolved": "https://registry.npmjs.org/@types/lodash.isequal/-/lodash.isequal-4.5.8.tgz", "integrity": "sha512-uput6pg4E/tj2LGxCZo9+y27JNyB2OZuuI/T5F+ylVDYuqICLG2/ktjxx0v6GvVntAf8TvEzeQLcV0ffRirXuA==", - "license": "MIT", "dependencies": { "@types/lodash": "*" } @@ -7980,10 +7919,9 @@ "license": "MIT" }, "node_modules/@types/react": { - "version": "18.3.4", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.4.tgz", - "integrity": "sha512-J7W30FTdfCxDDjmfRM+/JqLHBIyl7xUIp9kwK637FGmY7+mkSFSe6L4jpZzhj5QMfLssSDP4/i75AKkrdC7/Jw==", - "license": "MIT", + "version": "18.3.6", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.6.tgz", + "integrity": "sha512-CnGaRYNu2iZlkGXGrOYtdg5mLK8neySj0woZ4e2wF/eli2E6Sazmq5X+Nrj6OBrrFVQfJWTUFeqAzoRhWQXYvg==", "dependencies": { "@types/prop-types": "*", "csstype": "^3.0.2" @@ -10328,7 +10266,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", - "license": "MIT", "dependencies": { "buffer-alloc-unsafe": "^1.1.0", "buffer-fill": "^1.0.0" @@ -10337,8 +10274,7 @@ "node_modules/buffer-alloc-unsafe": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", - "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", - "license": "MIT" + "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==" }, "node_modules/buffer-crc32": { "version": "1.0.0", @@ -10358,8 +10294,7 @@ "node_modules/buffer-fill": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", - "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==", - "license": "MIT" + "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==" }, "node_modules/buffer-from": { "version": "1.1.2", @@ -10384,8 +10319,7 @@ "node_modules/builtins": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz", - "integrity": "sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==", - "license": "MIT" + "integrity": "sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==" }, "node_modules/busboy": { "version": "1.6.0", @@ -11962,7 +11896,6 @@ "version": "4.2.1", "resolved": "https://registry.npmjs.org/decompress/-/decompress-4.2.1.tgz", "integrity": "sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ==", - "license": "MIT", "dependencies": { "decompress-tar": "^4.0.0", "decompress-tarbz2": "^4.0.0", @@ -11996,7 +11929,6 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/decompress-tar/-/decompress-tar-4.1.1.tgz", "integrity": "sha512-JdJMaCrGpB5fESVyxwpCx4Jdj2AagLmv3y58Qy4GE6HMVjWz1FeVQk1Ct4Kye7PftcdOo/7U7UKzYBJgqnGeUQ==", - "license": "MIT", "dependencies": { "file-type": "^5.2.0", "is-stream": "^1.1.0", @@ -12010,7 +11942,6 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz", "integrity": "sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==", - "license": "MIT", "dependencies": { "readable-stream": "^2.3.5", "safe-buffer": "^5.1.1" @@ -12020,7 +11951,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -12028,14 +11958,12 @@ "node_modules/decompress-tar/node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "license": "MIT" + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" }, "node_modules/decompress-tar/node_modules/readable-stream": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "license": "MIT", "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -12049,14 +11977,12 @@ "node_modules/decompress-tar/node_modules/safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "license": "MIT" + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "node_modules/decompress-tar/node_modules/string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "license": "MIT", "dependencies": { "safe-buffer": "~5.1.0" } @@ -12065,7 +11991,6 @@ "version": "1.6.2", "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", - "license": "MIT", "dependencies": { "bl": "^1.0.0", "buffer-alloc": "^1.2.0", @@ -12083,7 +12008,6 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz", "integrity": "sha512-s88xLzf1r81ICXLAVQVzaN6ZmX4A6U4z2nMbOwobxkLoIIfjVMBg7TeguTUXkKeXni795B6y5rnvDw7rxhAq9A==", - "license": "MIT", "dependencies": { "decompress-tar": "^4.1.0", "file-type": "^6.1.0", @@ -12099,7 +12023,6 @@ "version": "6.2.0", "resolved": "https://registry.npmjs.org/file-type/-/file-type-6.2.0.tgz", "integrity": "sha512-YPcTBDV+2Tm0VqjybVd32MHdlEGAtuxS3VAYsumFokDSMG+ROT5wawGlnHDoz7bfMcMDt9hxuXvXwoKUx2fkOg==", - "license": "MIT", "engines": { "node": ">=4" } @@ -12108,7 +12031,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -12117,7 +12039,6 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/decompress-targz/-/decompress-targz-4.1.1.tgz", "integrity": "sha512-4z81Znfr6chWnRDNfFNqLwPvm4db3WuZkqV+UgXQzSngG3CEKdBkw5jrv3axjjL96glyiiKjsxJG3X6WBZwX3w==", - "license": "MIT", "dependencies": { "decompress-tar": "^4.1.1", "file-type": "^5.2.0", @@ -12131,7 +12052,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -12140,7 +12060,6 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/decompress-unzip/-/decompress-unzip-4.0.1.tgz", "integrity": "sha512-1fqeluvxgnn86MOh66u8FjbtJpAFv5wgCT9Iw8rcBqQcCo5tO8eiJw7NNTrvt9n4CRBVq7CstiS922oPgyGLrw==", - "license": "MIT", "dependencies": { "file-type": "^3.8.0", "get-stream": "^2.2.0", @@ -12155,7 +12074,6 @@ "version": "3.9.0", "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz", "integrity": "sha512-RLoqTXE8/vPmMuTI88DAzhMYC99I8BWv7zYP4A1puo5HIjEJ5EX48ighy4ZyKMG9EDXxBgW6e++cn7d1xuFghA==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -12164,7 +12082,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-2.3.1.tgz", "integrity": "sha512-AUGhbbemXxrZJRD5cDvKtQxLuYaIbNtDTK8YqupCI393Q2KSTreEsLUN3ZxAWFGiKTzL6nKuzfcIvieflUX9qA==", - "license": "MIT", "dependencies": { "object-assign": "^4.0.1", "pinkie-promise": "^2.0.0" @@ -12177,7 +12094,6 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", - "license": "MIT", "dependencies": { "pify": "^3.0.0" }, @@ -12189,7 +12105,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", - "license": "MIT", "engines": { "node": ">=4" } @@ -14146,7 +14061,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", - "license": "MIT", "dependencies": { "pend": "~1.2.0" } @@ -14168,7 +14082,6 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz", "integrity": "sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ==", - "license": "MIT", "engines": { "node": ">=4" } @@ -15512,10 +15425,9 @@ "license": "MIT" }, "node_modules/groq": { - "version": "3.57.1", - "resolved": "https://registry.npmjs.org/groq/-/groq-3.57.1.tgz", - "integrity": "sha512-V/g54pJotZ+mS50kqw2hjde3STD4w1XtKNE//pbUXdR1DzqRCAkMhxr2tao8nU1r5DeA9OTAqsIHX53XyKOFKQ==", - "license": "MIT", + "version": "3.57.3", + "resolved": "https://registry.npmjs.org/groq/-/groq-3.57.3.tgz", + "integrity": "sha512-MTbNCDyY2T+QwZjLedQBm8FlVMgjmLuCFUsKlbNhNb3tMlCKTwPbBKJIJetixQcD21TMixXZ9Duv1yVLnk03mw==", "engines": { "node": ">=18" } @@ -15923,8 +15835,7 @@ "node_modules/hotscript": { "version": "1.0.13", "resolved": "https://registry.npmjs.org/hotscript/-/hotscript-1.0.13.tgz", - "integrity": "sha512-C++tTF1GqkGYecL+2S1wJTfoH6APGAsbb7PAWQ3iVIwgG/EFseAfEVOKFgAFq4yK3+6j1EjUD4UQ9dRJHX/sSQ==", - "license": "ISC" + "integrity": "sha512-C++tTF1GqkGYecL+2S1wJTfoH6APGAsbb7PAWQ3iVIwgG/EFseAfEVOKFgAFq4yK3+6j1EjUD4UQ9dRJHX/sSQ==" }, "node_modules/html-encoding-sniffer": { "version": "4.0.0", @@ -16727,8 +16638,7 @@ "node_modules/is-natural-number": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/is-natural-number/-/is-natural-number-4.0.1.tgz", - "integrity": "sha512-Y4LTamMe0DDQIIAlaer9eKebAlDSV6huy+TWhJVPlzZh2o4tRP5SQWFlLn5N0To4mDD22/qdOq+veo1cSISLgQ==", - "license": "MIT" + "integrity": "sha512-Y4LTamMe0DDQIIAlaer9eKebAlDSV6huy+TWhJVPlzZh2o4tRP5SQWFlLn5N0To4mDD22/qdOq+veo1cSISLgQ==" }, "node_modules/is-negative-zero": { "version": "2.0.3", @@ -19792,14 +19702,12 @@ "node_modules/lodash.get": { "version": "4.4.2", "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", - "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==", - "license": "MIT" + "integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==" }, "node_modules/lodash.isequal": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", - "license": "MIT" + "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==" }, "node_modules/lodash.merge": { "version": "4.6.2", @@ -19817,8 +19725,7 @@ "node_modules/lodash.startcase": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.startcase/-/lodash.startcase-4.4.0.tgz", - "integrity": "sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==", - "license": "MIT" + "integrity": "sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==" }, "node_modules/log-symbols": { "version": "2.2.0", @@ -20375,7 +20282,6 @@ "version": "0.39.8", "resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.39.8.tgz", "integrity": "sha512-vyWo2K3fjrUw8YeeZ1zF0fy6Mu59RHokURlld8ymdUPjMlD9EC9ov1/YPqTgqRvUN9nTr3Gqfz29LYAmu0PHPQ==", - "license": "MIT", "dependencies": { "obliterator": "^2.0.1" } @@ -20731,8 +20637,7 @@ "node_modules/node-machine-id": { "version": "1.1.12", "resolved": "https://registry.npmjs.org/node-machine-id/-/node-machine-id-1.1.12.tgz", - "integrity": "sha512-QNABxbrPa3qEIfrE6GOJ7BYIuignnJw7iQ2YPbc3Nla1HzRJjXzZOiikfF8m7eAMfichLt3M4VgLOetqgDmgGQ==", - "license": "MIT" + "integrity": "sha512-QNABxbrPa3qEIfrE6GOJ7BYIuignnJw7iQ2YPbc3Nla1HzRJjXzZOiikfF8m7eAMfichLt3M4VgLOetqgDmgGQ==" }, "node_modules/node-polyfill-webpack-plugin": { "version": "2.0.1", @@ -21459,8 +21364,7 @@ "node_modules/obliterator": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/obliterator/-/obliterator-2.0.4.tgz", - "integrity": "sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ==", - "license": "MIT" + "integrity": "sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ==" }, "node_modules/observable-callback": { "version": "1.0.3", @@ -22134,8 +22038,7 @@ "node_modules/pend": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", - "license": "MIT" + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==" }, "node_modules/performance-now": { "version": "2.1.0", @@ -22165,7 +22068,6 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -22174,7 +22076,6 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==", - "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -22183,7 +22084,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==", - "license": "MIT", "dependencies": { "pinkie": "^2.0.0" }, @@ -24361,10 +24261,9 @@ "license": "MIT" }, "node_modules/sanity": { - "version": "3.57.1", - "resolved": "https://registry.npmjs.org/sanity/-/sanity-3.57.1.tgz", - "integrity": "sha512-C6YMsJAV0Dep9da/TKF2eWXne6/HfvNfMqFYGk7OsoXbYMBBzSAzkgHeZMsz9rmjp9PUK03ktdFvP0u2ts+8hQ==", - "license": "MIT", + "version": "3.57.3", + "resolved": "https://registry.npmjs.org/sanity/-/sanity-3.57.3.tgz", + "integrity": "sha512-xArMbyJtMtA6TADoxbb5gf7vCRr34USH6p0bjRqKVO4H5gNInKKrB1b1yHdTwme1spivfAVAt/jlmQofiy5UxQ==", "dependencies": { "@dnd-kit/core": "^6.0.5", "@dnd-kit/modifiers": "^6.0.0", @@ -24376,33 +24275,33 @@ "@rexxars/react-json-inspector": "^8.0.1", "@sanity/asset-utils": "^1.2.5", "@sanity/bifur-client": "^0.4.1", - "@sanity/block-tools": "3.57.1", - "@sanity/cli": "3.57.1", - "@sanity/client": "^6.21.2", + "@sanity/block-tools": "3.57.3", + "@sanity/cli": "3.57.3", + "@sanity/client": "^6.21.3", "@sanity/color": "^3.0.0", - "@sanity/diff": "3.57.1", + "@sanity/diff": "3.57.3", "@sanity/diff-match-patch": "^3.1.1", "@sanity/eventsource": "^5.0.0", "@sanity/export": "^3.41.0", "@sanity/icons": "^3.4.0", "@sanity/image-url": "^1.0.2", "@sanity/import": "^3.37.3", - "@sanity/insert-menu": "1.0.8", + "@sanity/insert-menu": "1.0.9", "@sanity/logos": "^2.1.4", - "@sanity/migrate": "3.57.1", - "@sanity/mutator": "3.57.1", - "@sanity/presentation": "1.16.4", - "@sanity/schema": "3.57.1", + "@sanity/migrate": "3.57.3", + "@sanity/mutator": "3.57.3", + "@sanity/presentation": "1.16.5", + "@sanity/schema": "3.57.3", "@sanity/telemetry": "^0.7.7", - "@sanity/types": "3.57.1", - "@sanity/ui": "^2.8.8", - "@sanity/util": "3.57.1", + "@sanity/types": "3.57.3", + "@sanity/ui": "^2.8.9", + "@sanity/util": "3.57.3", "@sanity/uuid": "^3.0.1", "@sentry/react": "^8.7.0", "@tanstack/react-table": "^8.16.0", "@tanstack/react-virtual": "3.0.0-beta.54", "@types/react-copy-to-clipboard": "^5.0.2", - "@types/react-is": "^18.2.0", + "@types/react-is": "^18.3.0", "@types/shallow-equals": "^1.0.0", "@types/speakingurl": "^13.0.3", "@types/tar-stream": "^3.1.3", @@ -24567,6 +24466,25 @@ "react": "^18.3 || >=19.0.0-rc" } }, + "node_modules/sanity/node_modules/@sanity/insert-menu": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@sanity/insert-menu/-/insert-menu-1.0.9.tgz", + "integrity": "sha512-NP/CaBPS5qwUJ/nSmgDSmDME5a6PVq9DhaEOKC2ux8Jhuab5tRXx8y2Nbrcw3muZdwmSY4HpkLNVoTdtmpgBcg==", + "dependencies": { + "@sanity/icons": "^3.4.0", + "@sanity/ui": "^2.8.9", + "lodash.startcase": "^4.4.0" + }, + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "@sanity/types": "^3.57.2", + "react": "^18.3 || >=19.0.0-rc", + "react-dom": "^18.3 || >=19.0.0-rc", + "react-is": "^18.3 || >=19.0.0-rc" + } + }, "node_modules/sanity/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", @@ -24858,7 +24776,6 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.6.tgz", "integrity": "sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ==", - "license": "MIT", "dependencies": { "commander": "^2.8.1" }, @@ -24870,8 +24787,7 @@ "node_modules/seek-bzip/node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "license": "MIT" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" }, "node_modules/semver": { "version": "6.3.1", @@ -25995,7 +25911,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-2.1.0.tgz", "integrity": "sha512-JOCxOeKLm2CAS73y/U4ZeZPTkE+gNVCzKt7Eox84Iej1LT/2pTWYpZKJuxwQpvX1LiZb1xokNR7RLfuBAa7T3g==", - "license": "MIT", "dependencies": { "is-natural-number": "^4.0.1" } @@ -26750,8 +26665,7 @@ "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", - "license": "MIT" + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" }, "node_modules/through2": { "version": "2.0.5", @@ -26845,8 +26759,7 @@ "node_modules/to-buffer": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", - "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==", - "license": "MIT" + "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==" }, "node_modules/to-fast-properties": { "version": "2.0.0", @@ -27267,7 +27180,6 @@ "version": "0.3.0", "resolved": "https://registry.npmjs.org/typeid-js/-/typeid-js-0.3.0.tgz", "integrity": "sha512-A1EmvIWG6xwYRfHuYUjPltHqteZ1EiDG+HOmbIYXeHUVztmnGrPIfU9KIK1QC30x59ko0r4JsMlwzsALCyiB3Q==", - "license": "Apache-2.0", "dependencies": { "uuidv7": "^0.4.4" } @@ -27313,7 +27225,6 @@ "version": "1.4.3", "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", - "license": "MIT", "dependencies": { "buffer": "^5.2.1", "through": "^2.3.8" @@ -27337,7 +27248,6 @@ "url": "https://feross.org/support" } ], - "license": "MIT", "dependencies": { "base64-js": "^1.3.1", "ieee754": "^1.1.13" @@ -27764,7 +27674,6 @@ "version": "0.4.4", "resolved": "https://registry.npmjs.org/uuidv7/-/uuidv7-0.4.4.tgz", "integrity": "sha512-jjRGChg03uGp9f6wQYSO8qXkweJwRbA5WRuEQE8xLIiehIzIIi23qZSzsyvZPCPoFqkeLtZuz7Plt1LGukAInA==", - "license": "Apache-2.0", "bin": { "uuidv7": "cli.js" } @@ -27798,7 +27707,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-3.0.0.tgz", "integrity": "sha512-M6w37eVCMMouJ9V/sdPGnC5H4uDr73/+xdq0FBLO3TFFX1+7wiUY6Es328NN+y43tmY+doUdN9g9J21vqB7iLw==", - "license": "ISC", "dependencies": { "builtins": "^1.0.3" } @@ -29018,7 +28926,6 @@ "version": "2.10.0", "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", - "license": "MIT", "dependencies": { "buffer-crc32": "~0.2.3", "fd-slicer": "~1.1.0" @@ -29028,7 +28935,6 @@ "version": "0.2.13", "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "license": "MIT", "engines": { "node": "*" } @@ -29079,7 +28985,6 @@ "version": "3.23.8", "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz", "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==", - "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/package.json b/package.json index a5b83f240..91ae622dc 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "react": "^18", "react-dom": "^18", "react-focus-on": "^3.9.3", - "sanity": "^3.50.0" + "sanity": "^3.57.3" }, "devDependencies": { "@storybook/addon-a11y": "^8.2.9", diff --git a/src/app/(main)/[slug]/[id]/page.tsx b/src/app/(main)/[slug]/[id]/page.tsx index f08192812..9e4f682b8 100644 --- a/src/app/(main)/[slug]/[id]/page.tsx +++ b/src/app/(main)/[slug]/[id]/page.tsx @@ -4,7 +4,7 @@ import PostPage from "src/post/PostPage"; import PostPagePreview from "src/post/PostPagePreview"; import { getDraftModeInfo } from "src/utils/draftmode"; import { fetchPostSeoData, generateMetadataFromSeo } from "src/utils/seo"; -import { BlogPage, Post } from "studio/lib/payloads/pages"; +import { BlogPage, Post } from "studio/lib/interfaces/pages"; import { BLOG_PAGE_QUERY, MORE_POST_PREVIEW, diff --git a/src/app/(main)/[slug]/page.tsx b/src/app/(main)/[slug]/page.tsx index dfe51b3cf..404981307 100644 --- a/src/app/(main)/[slug]/page.tsx +++ b/src/app/(main)/[slug]/page.tsx @@ -5,8 +5,8 @@ import Compensations from "src/compensations/Compensations"; import { getDraftModeInfo } from "src/utils/draftmode"; import SectionRenderer from "src/utils/renderSection"; import { fetchSeoData, generateMetadataFromSeo } from "src/utils/seo"; -import { BlogPage, PageBuilder, Post } from "studio/lib/payloads/pages"; -import { CompensationsPage } from "studio/lib/payloads/compensations"; +import { BlogPage, PageBuilder, Post } from "studio/lib/interfaces/pages"; +import { CompensationsPage } from "studio/lib/interfaces/compensations"; import { BLOG_PAGE_QUERY, POSTS_QUERY, @@ -18,7 +18,7 @@ import { loadQuery } from "studio/lib/store"; import CompensationsPreview from "src/compensations/CompensationsPreview"; import { homeLink } from "../../../blog/components/utils/linkTypes"; import CustomErrorMessage from "../../../blog/components/customErrorMessage/CustomErrorMessage"; -import { CompanyLocation } from "studio/lib/payloads/companyDetails"; +import { CompanyLocation } from "studio/lib/interfaces/companyDetails"; import { COMPANY_LOCATIONS_QUERY } from "studio/lib/queries/companyDetails"; export const dynamic = "force-dynamic"; diff --git a/src/app/(main)/layout.tsx b/src/app/(main)/layout.tsx index 2d185883b..9aaec3ac7 100644 --- a/src/app/(main)/layout.tsx +++ b/src/app/(main)/layout.tsx @@ -2,20 +2,20 @@ import Footer from "src/components/navigation/footer/Footer"; import { NAV_QUERY } from "studio/lib/queries/navigation"; import { COMPANY_INFO_QUERY } from "studio/lib/queries/companyDetails"; import { Header } from "src/components/navigation/header/Header"; -import { Navigation } from "studio/lib/payloads/navigation"; -import { CompanyInfo } from "studio/lib/payloads/companyDetails"; +import { Navigation } from "studio/lib/interfaces/navigation"; +import { CompanyInfo } from "studio/lib/interfaces/companyDetails"; import { loadQuery } from "studio/lib/store"; import HeaderPreview from "src/components/navigation/header/HeaderPreview"; import FooterPreview from "src/components/navigation/footer/FooterPreview"; import { SOMEPROFILES_QUERY } from "studio/lib/queries/socialMediaProfiles"; -import { SocialMediaProfiles } from "studio/lib/payloads/socialMedia"; +import { SocialMediaProfiles } from "studio/lib/interfaces/socialMedia"; import { getDraftModeInfo } from "src/utils/draftmode"; import SkipToMain from "src/components/skipToMain/SkipToMain"; import { LEGAL_DOCUMENTS_QUERY } from "studio/lib/queries/legalDocuments"; -import { LegalDocument } from "studio/lib/payloads/legalDocuments"; +import { LegalDocument } from "studio/lib/interfaces/legalDocuments"; import styles from "./layout.module.css"; import { BRAND_ASSETS_QUERY } from "../../../studio/lib/queries/brandAssets"; -import { BrandAssets } from "../../../studio/lib/payloads/brandAssets"; +import { BrandAssets } from "../../../studio/lib/interfaces/brandAssets"; const hasValidData = (data: any) => data && Object.keys(data).length > 0; diff --git a/src/app/(main)/legal/[id]/page.tsx b/src/app/(main)/legal/[id]/page.tsx index 4929a0321..e512ea7a0 100644 --- a/src/app/(main)/legal/[id]/page.tsx +++ b/src/app/(main)/legal/[id]/page.tsx @@ -1,7 +1,7 @@ import Legal from "src/blog/components/legal/Legal"; import LegalPreview from "src/blog/components/legal/LegalPreview"; import { getDraftModeInfo } from "src/utils/draftmode"; -import { LegalDocument } from "studio/lib/payloads/legalDocuments"; +import { LegalDocument } from "studio/lib/interfaces/legalDocuments"; import { LEGAL_DOCUMENT_SLUG_QUERY } from "studio/lib/queries/legalDocuments"; import { loadQuery } from "studio/lib/store"; diff --git a/src/app/(main)/page.tsx b/src/app/(main)/page.tsx index 91537a58b..dd98034ba 100644 --- a/src/app/(main)/page.tsx +++ b/src/app/(main)/page.tsx @@ -1,13 +1,13 @@ import { getDraftModeInfo } from "src/utils/draftmode"; import { LANDING_QUERY } from "studio/lib/queries/navigation"; import { PAGE_QUERY, SEO_PAGE_QUERY } from "studio/lib/queries/pages"; -import { PageBuilder } from "studio/lib/payloads/pages"; +import { PageBuilder } from "studio/lib/interfaces/pages"; import SectionRenderer from "src/utils/renderSection"; import { loadQuery } from "studio/lib/store"; import { Metadata } from "next"; import { fetchSeoData, generateMetadataFromSeo } from "src/utils/seo"; import InformationSection from "src/blog/components/informationSection/InformationSection"; -import { LinkType } from "studio/lib/payloads/navigation"; +import { LinkType } from "studio/lib/interfaces/navigation"; export async function generateMetadata(): Promise { const { data: landingId } = await loadQuery(LANDING_QUERY); diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts index 680c50c15..2f4cb1240 100644 --- a/src/app/sitemap.ts +++ b/src/app/sitemap.ts @@ -1,6 +1,6 @@ import type { MetadataRoute } from "next"; import { client } from "../../studio/lib/client"; -import { Slug } from "../../studio/lib/payloads/global"; +import { Slug } from "../../studio/lib/interfaces/global"; import { token } from "../../studio/lib/token"; interface SitemapDocument { diff --git a/src/blog/Blog.tsx b/src/blog/Blog.tsx index 125ce695c..d6dc23c04 100644 --- a/src/blog/Blog.tsx +++ b/src/blog/Blog.tsx @@ -1,7 +1,7 @@ "use client"; import { useEffect, useCallback } from "react"; import useTabs from "src/utils/hooks/useTabs"; -import { BlogPage, Post } from "studio/lib/payloads/pages"; +import { BlogPage, Post } from "studio/lib/interfaces/pages"; import styles from "./blog.module.css"; import { useFetchPosts } from "src/utils/hooks/useFetchPosts"; import BlogHero from "./components/hero/BlogHero"; diff --git a/src/blog/BlogPreview.tsx b/src/blog/BlogPreview.tsx index a16e8e7ec..aa1eb7345 100644 --- a/src/blog/BlogPreview.tsx +++ b/src/blog/BlogPreview.tsx @@ -1,6 +1,6 @@ "use client"; import { QueryResponseInitial, useQuery } from "@sanity/react-loader"; -import { BlogPage, Post } from "studio/lib/payloads/pages"; +import { BlogPage, Post } from "studio/lib/interfaces/pages"; import { BLOG_PAGE_QUERY } from "studio/lib/queries/pages"; import { Suspense } from "react"; import { Blog } from "./Blog"; diff --git a/src/blog/components/customErrorMessage/CustomErrorMessage.tsx b/src/blog/components/customErrorMessage/CustomErrorMessage.tsx index 2c3883102..adf820ab1 100644 --- a/src/blog/components/customErrorMessage/CustomErrorMessage.tsx +++ b/src/blog/components/customErrorMessage/CustomErrorMessage.tsx @@ -1,7 +1,7 @@ import Button from "src/components/buttons/Button"; import LinkButton from "src/components/linkButton/LinkButton"; import Text from "src/components/text/Text"; -import { ILink } from "studio/lib/payloads/navigation"; +import { ILink } from "studio/lib/interfaces/navigation"; import styles from "./customErrorMessage.module.css"; interface CustomErrorMessageProps { diff --git a/src/blog/components/hero/BlogHero.tsx b/src/blog/components/hero/BlogHero.tsx index 184568255..e7ed50425 100644 --- a/src/blog/components/hero/BlogHero.tsx +++ b/src/blog/components/hero/BlogHero.tsx @@ -1,6 +1,6 @@ import Text from "src/components/text/Text"; import styles from "./blogHero.module.css"; -import { Category } from "studio/lib/payloads/pages"; +import { Category } from "studio/lib/interfaces/pages"; import { LegacyRef } from "react"; const BlogHero = ({ diff --git a/src/blog/components/informationSection/InformationSection.tsx b/src/blog/components/informationSection/InformationSection.tsx index ca63836cb..112cce3a8 100644 --- a/src/blog/components/informationSection/InformationSection.tsx +++ b/src/blog/components/informationSection/InformationSection.tsx @@ -1,6 +1,6 @@ import LinkButton from "src/components/linkButton/LinkButton"; import Text from "src/components/text/Text"; -import { ILink } from "studio/lib/payloads/navigation"; +import { ILink } from "studio/lib/interfaces/navigation"; import styles from "./informationSection.module.css"; import React from "react"; diff --git a/src/blog/components/legal/Legal.tsx b/src/blog/components/legal/Legal.tsx index 652812257..25b866275 100644 --- a/src/blog/components/legal/Legal.tsx +++ b/src/blog/components/legal/Legal.tsx @@ -1,6 +1,6 @@ import Text from "src/components/text/Text"; import styles from "./legal.module.css"; -import { LegalDocument } from "studio/lib/payloads/legalDocuments"; +import { LegalDocument } from "studio/lib/interfaces/legalDocuments"; import { RichText, PortableTextBlock } from "src/components/richText/RichText"; import Link from "next/link"; diff --git a/src/blog/components/legal/LegalPreview.tsx b/src/blog/components/legal/LegalPreview.tsx index a1b8c11ec..4dd469101 100644 --- a/src/blog/components/legal/LegalPreview.tsx +++ b/src/blog/components/legal/LegalPreview.tsx @@ -1,7 +1,7 @@ "use client"; import { QueryResponseInitial, useQuery } from "@sanity/react-loader"; import { NAV_QUERY } from "studio/lib/queries/navigation"; -import { LegalDocument } from "studio/lib/payloads/legalDocuments"; +import { LegalDocument } from "studio/lib/interfaces/legalDocuments"; import Legal from "./Legal"; export default function LegalPreview({ diff --git a/src/blog/components/postCard/PostCard.tsx b/src/blog/components/postCard/PostCard.tsx index 95bc6b74f..77c78fa70 100644 --- a/src/blog/components/postCard/PostCard.tsx +++ b/src/blog/components/postCard/PostCard.tsx @@ -1,7 +1,7 @@ "use client"; import Text from "src/components/text/Text"; import { useConvertSanityImageToNextImage } from "src/utils/hooks/useConvertImage"; -import { Post } from "studio/lib/payloads/pages"; +import { Post } from "studio/lib/interfaces/pages"; import styles from "./postCard.module.css"; export const PostCard = ({ diff --git a/src/blog/components/postPreview/PostPreview.tsx b/src/blog/components/postPreview/PostPreview.tsx index c2436b3f3..5b61b7c84 100644 --- a/src/blog/components/postPreview/PostPreview.tsx +++ b/src/blog/components/postPreview/PostPreview.tsx @@ -1,10 +1,10 @@ "use client"; import { RichText, PortableTextBlock } from "src/components/richText/RichText"; import Text from "src/components/text/Text"; -import { Post } from "studio/lib/payloads/pages"; +import { Post } from "studio/lib/interfaces/pages"; import styles from "./postPreview.module.css"; import CustomLink from "src/components/link/CustomLink"; -import { LinkType } from "studio/lib/payloads/navigation"; +import { LinkType } from "studio/lib/interfaces/navigation"; import { useConvertSanityImageToNextImage } from "src/utils/hooks/useConvertImage"; export interface PostPreviewProps { diff --git a/src/blog/components/postPreviewGrid/PostPreviewGrid.tsx b/src/blog/components/postPreviewGrid/PostPreviewGrid.tsx index bbc2950d7..fb3b223bc 100644 --- a/src/blog/components/postPreviewGrid/PostPreviewGrid.tsx +++ b/src/blog/components/postPreviewGrid/PostPreviewGrid.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useRef, useState, useCallback } from "react"; import Text from "src/components/text/Text"; -import { Post } from "studio/lib/payloads/pages"; +import { Post } from "studio/lib/interfaces/pages"; import styles from "./postPreviewGrid.module.css"; import Button from "src/components/buttons/Button"; import { PostCard } from "../postCard/PostCard"; diff --git a/src/blog/components/utils/linkTypes.ts b/src/blog/components/utils/linkTypes.ts index 9c26c81ce..e5623d261 100644 --- a/src/blog/components/utils/linkTypes.ts +++ b/src/blog/components/utils/linkTypes.ts @@ -1,4 +1,4 @@ -import { LinkType } from "studio/lib/payloads/navigation"; +import { LinkType } from "studio/lib/interfaces/navigation"; export const homeLink = { _key: "return-home", diff --git a/src/compensations/Compensations.tsx b/src/compensations/Compensations.tsx index a2256c751..9daedd7df 100644 --- a/src/compensations/Compensations.tsx +++ b/src/compensations/Compensations.tsx @@ -1,7 +1,7 @@ "use client"; import styles from "./compensations.module.css"; import Text from "src/components/text/Text"; -import { CompensationsPage } from "studio/lib/payloads/compensations"; +import { CompensationsPage } from "studio/lib/interfaces/compensations"; import SalaryCalculator, { Degree, } from "./components/salaryCalculator/SalaryCalculator"; @@ -13,7 +13,7 @@ import { minSalariesExaminationYear, salariesFromLocation, } from "./utils/salary"; -import { CompanyLocation } from "studio/lib/payloads/companyDetails"; +import { CompanyLocation } from "studio/lib/interfaces/companyDetails"; import { IOption, RadioButtonGroup, diff --git a/src/compensations/CompensationsPreview.tsx b/src/compensations/CompensationsPreview.tsx index 5a592e6d3..43e0eeac4 100644 --- a/src/compensations/CompensationsPreview.tsx +++ b/src/compensations/CompensationsPreview.tsx @@ -2,8 +2,8 @@ import { Suspense } from "react"; import Compensations from "./Compensations"; import { QueryResponseInitial, useQuery } from "@sanity/react-loader"; -import { CompensationsPage } from "studio/lib/payloads/compensations"; -import { CompanyLocation } from "studio/lib/payloads/companyDetails"; +import { CompensationsPage } from "studio/lib/interfaces/compensations"; +import { CompanyLocation } from "studio/lib/interfaces/companyDetails"; import { COMPANY_LOCATIONS_QUERY } from "studio/lib/queries/companyDetails"; import { COMPENSATIONS_PAGE_QUERY } from "studio/lib/queries/pages"; diff --git a/src/compensations/components/benefitsByLocation/BenefitsByLocation.tsx b/src/compensations/components/benefitsByLocation/BenefitsByLocation.tsx index b1d862dd4..b2d1b1517 100644 --- a/src/compensations/components/benefitsByLocation/BenefitsByLocation.tsx +++ b/src/compensations/components/benefitsByLocation/BenefitsByLocation.tsx @@ -1,7 +1,7 @@ import Text from "src/components/text/Text"; import { RichText } from "src/components/richText/RichText"; import styles from "./benefitsByLocation.module.css"; -import { Benefit } from "studio/lib/payloads/compensations"; +import { Benefit } from "studio/lib/interfaces/compensations"; interface BenefitsByLocationProps { benefits: Benefit[]; diff --git a/src/compensations/components/yearlyBonuses/YearlyBonuses.tsx b/src/compensations/components/yearlyBonuses/YearlyBonuses.tsx index 78c65167f..25904a668 100644 --- a/src/compensations/components/yearlyBonuses/YearlyBonuses.tsx +++ b/src/compensations/components/yearlyBonuses/YearlyBonuses.tsx @@ -1,4 +1,4 @@ -import { BonusPage } from "studio/lib/payloads/compensations"; +import { BonusPage } from "studio/lib/interfaces/compensations"; import Text from "../../../components/text/Text"; import styles from "./yearlyBonuses.module.css"; diff --git a/src/compensations/utils/salary.ts b/src/compensations/utils/salary.ts index 92c6d3e9d..0259eb3ff 100644 --- a/src/compensations/utils/salary.ts +++ b/src/compensations/utils/salary.ts @@ -2,7 +2,7 @@ import { isSalariesType, Salaries, } from "studio/components/salariesInput/utils/parseSalaries"; -import { SalariesByLocation } from "../../../studio/lib/payloads/compensations"; +import { SalariesByLocation } from "../../../studio/lib/interfaces/compensations"; import { Result, ResultError, ResultOk } from "../../../studio/utils/result"; export function calculateSalary( diff --git a/src/components/link/CustomLink.stories.tsx b/src/components/link/CustomLink.stories.tsx index 856cf24a7..078971359 100644 --- a/src/components/link/CustomLink.stories.tsx +++ b/src/components/link/CustomLink.stories.tsx @@ -1,6 +1,6 @@ import type { Meta, StoryObj } from "@storybook/react"; import CustomLink from "./CustomLink"; -import { LinkType } from "studio/lib/payloads/navigation"; +import { LinkType } from "studio/lib/interfaces/navigation"; const meta: Meta = { title: "Components/Links/CustomLink", diff --git a/src/components/link/CustomLink.tsx b/src/components/link/CustomLink.tsx index 1ed4bf2bd..1c9724706 100644 --- a/src/components/link/CustomLink.tsx +++ b/src/components/link/CustomLink.tsx @@ -1,7 +1,7 @@ import React from "react"; import styles from "./link.module.css"; import Link from "next/link"; -import { ILink } from "studio/lib/payloads/navigation"; +import { ILink } from "studio/lib/interfaces/navigation"; import { getHref } from "src/utils/get"; type ComponentLinkType = "link" | "headerLink" | "footerLink"; diff --git a/src/components/link/SoMeLink.tsx b/src/components/link/SoMeLink.tsx index 266d70f4e..57dbc6be5 100644 --- a/src/components/link/SoMeLink.tsx +++ b/src/components/link/SoMeLink.tsx @@ -1,7 +1,7 @@ import React from "react"; import styles from "./link.module.css"; import Link from "next/link"; -import { SocialMediaLink } from "studio/lib/payloads/socialMedia"; +import { SocialMediaLink } from "studio/lib/interfaces/socialMedia"; interface ISoMeLink { link: SocialMediaLink; diff --git a/src/components/linkButton/LinkButton.stories.tsx b/src/components/linkButton/LinkButton.stories.tsx index a86f887ee..396855742 100644 --- a/src/components/linkButton/LinkButton.stories.tsx +++ b/src/components/linkButton/LinkButton.stories.tsx @@ -1,6 +1,6 @@ import type { Meta, StoryObj } from "@storybook/react"; import LinkButton from "./LinkButton"; -import { LinkType } from "studio/lib/payloads/navigation"; +import { LinkType } from "studio/lib/interfaces/navigation"; const meta: Meta = { title: "Components/Links/LinkButton", diff --git a/src/components/linkButton/LinkButton.tsx b/src/components/linkButton/LinkButton.tsx index 2641991be..bec0c3742 100644 --- a/src/components/linkButton/LinkButton.tsx +++ b/src/components/linkButton/LinkButton.tsx @@ -1,6 +1,6 @@ import React from "react"; import styles from "./linkButton.module.css"; -import { ILink } from "studio/lib/payloads/navigation"; +import { ILink } from "studio/lib/interfaces/navigation"; import { getHref } from "src/utils/get"; type LinkButtonType = "primary" | "secondary"; diff --git a/src/components/navigation/footer/Footer.tsx b/src/components/navigation/footer/Footer.tsx index 49f46d997..9bdebf0f9 100644 --- a/src/components/navigation/footer/Footer.tsx +++ b/src/components/navigation/footer/Footer.tsx @@ -1,19 +1,19 @@ "use client"; -import { ILink, LinkType, Navigation } from "studio/lib/payloads/navigation"; -import { CompanyInfo } from "studio/lib/payloads/companyDetails"; +import { ILink, LinkType, Navigation } from "studio/lib/interfaces/navigation"; +import { CompanyInfo } from "studio/lib/interfaces/companyDetails"; import { useConvertSanityImageToNextImage } from "src/utils/hooks/useConvertImage"; import styles from "./footer.module.css"; import CustomLink from "../../link/CustomLink"; import { SocialMediaLink, SocialMediaProfiles, -} from "studio/lib/payloads/socialMedia"; +} from "studio/lib/interfaces/socialMedia"; import SoMeLink from "src/components/link/SoMeLink"; import { ReactNode } from "react"; import Text from "src/components/text/Text"; -import { LegalDocument } from "studio/lib/payloads/legalDocuments"; -import { BrandAssets } from "studio/lib/payloads/brandAssets"; +import { LegalDocument } from "studio/lib/interfaces/legalDocuments"; +import { BrandAssets } from "studio/lib/interfaces/brandAssets"; export interface IFooter { navigationData: Navigation; diff --git a/src/components/navigation/footer/FooterPreview.tsx b/src/components/navigation/footer/FooterPreview.tsx index d66d56210..dbb2cf0e1 100644 --- a/src/components/navigation/footer/FooterPreview.tsx +++ b/src/components/navigation/footer/FooterPreview.tsx @@ -1,13 +1,13 @@ "use client"; import { QueryResponseInitial, useQuery } from "@sanity/react-loader"; import { NAV_QUERY } from "studio/lib/queries/navigation"; -import { Navigation } from "studio/lib/payloads/navigation"; -import { CompanyInfo } from "studio/lib/payloads/companyDetails"; +import { Navigation } from "studio/lib/interfaces/navigation"; +import { CompanyInfo } from "studio/lib/interfaces/companyDetails"; import { COMPANY_INFO_QUERY } from "studio/lib/queries/companyDetails"; import Footer from "./Footer"; -import { SocialMediaProfiles } from "studio/lib/payloads/socialMedia"; +import { SocialMediaProfiles } from "studio/lib/interfaces/socialMedia"; import { SOMEPROFILES_QUERY } from "studio/lib/queries/socialMediaProfiles"; -import { BrandAssets } from "studio/lib/payloads/brandAssets"; +import { BrandAssets } from "studio/lib/interfaces/brandAssets"; import { BRAND_ASSETS_QUERY } from "studio/lib/queries/brandAssets"; function useInitialData( diff --git a/src/components/navigation/header/Header.tsx b/src/components/navigation/header/Header.tsx index 1ca917720..8de72979d 100644 --- a/src/components/navigation/header/Header.tsx +++ b/src/components/navigation/header/Header.tsx @@ -2,7 +2,7 @@ import { useState, useEffect } from "react"; import { FocusOn } from "react-focus-on"; -import { ILink, Navigation } from "studio/lib/payloads/navigation"; +import { ILink, Navigation } from "studio/lib/interfaces/navigation"; import styles from "./header.module.css"; import { useConvertSanityImageToNextImage } from "src/utils/hooks/useConvertImage"; import { linkID } from "studio/schemas/objects/link"; @@ -12,7 +12,7 @@ import LinkButton from "src/components/linkButton/LinkButton"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { getHref } from "src/utils/get"; -import { BrandAssets } from "../../../../studio/lib/payloads/brandAssets"; +import { BrandAssets } from "../../../../studio/lib/interfaces/brandAssets"; export interface IHeader { data: Navigation; diff --git a/src/components/navigation/header/HeaderPreview.tsx b/src/components/navigation/header/HeaderPreview.tsx index b32ab3d23..7248c7fac 100644 --- a/src/components/navigation/header/HeaderPreview.tsx +++ b/src/components/navigation/header/HeaderPreview.tsx @@ -1,9 +1,9 @@ "use client"; import { QueryResponseInitial, useQuery } from "@sanity/react-loader"; import { NAV_QUERY } from "studio/lib/queries/navigation"; -import { Navigation } from "studio/lib/payloads/navigation"; +import { Navigation } from "studio/lib/interfaces/navigation"; import { Header } from "./Header"; -import { BrandAssets } from "../../../../studio/lib/payloads/brandAssets"; +import { BrandAssets } from "../../../../studio/lib/interfaces/brandAssets"; import { BRAND_ASSETS_QUERY } from "../../../../studio/lib/queries/brandAssets"; export default function HeaderPreview({ diff --git a/src/components/navigation/mockData.ts b/src/components/navigation/mockData.ts index a97e767e5..4b1fbb2fd 100644 --- a/src/components/navigation/mockData.ts +++ b/src/components/navigation/mockData.ts @@ -2,12 +2,12 @@ import { Navigation, LinkType, SectionType, -} from "studio/lib/payloads/navigation"; +} from "studio/lib/interfaces/navigation"; import { callToActionFieldID } from "studio/schemas/fields/callToActionFields"; import { linkID } from "studio/schemas/objects/link"; import primaryLogoFile from "../../stories/assets/energiai-primary-logo.svg"; import secondaryLogoFile from "../../stories/assets/energiai-secondary-logo.svg"; -import { SocialMediaProfiles } from "studio/lib/payloads/socialMedia"; +import { SocialMediaProfiles } from "studio/lib/interfaces/socialMedia"; // Mock Navigation Data export const mockNavigation: Navigation = { diff --git a/src/components/sections/article/Article.tsx b/src/components/sections/article/Article.tsx index 737019034..e8956f887 100644 --- a/src/components/sections/article/Article.tsx +++ b/src/components/sections/article/Article.tsx @@ -1,7 +1,7 @@ "use client"; import { RichText } from "src/components/richText/RichText"; import Text from "src/components/text/Text"; -import { ArticleSection } from "studio/lib/payloads/pages"; +import { ArticleSection } from "studio/lib/interfaces/pages"; import styles from "./article.module.css"; import { useConvertSanityImageToNextImage } from "src/utils/hooks/useConvertImage"; import CustomLink from "src/components/link/CustomLink"; diff --git a/src/components/sections/article/ArticlePreview.tsx b/src/components/sections/article/ArticlePreview.tsx index 4daf7f247..255a9bdc5 100644 --- a/src/components/sections/article/ArticlePreview.tsx +++ b/src/components/sections/article/ArticlePreview.tsx @@ -2,7 +2,7 @@ import { useQuery } from "@sanity/react-loader"; import Article from "./Article"; -import { PageBuilder, ArticleSection } from "studio/lib/payloads/pages"; +import { PageBuilder, ArticleSection } from "studio/lib/interfaces/pages"; import { PAGE_QUERY } from "studio/lib/queries/pages"; import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; diff --git a/src/components/sections/article/mockData.ts b/src/components/sections/article/mockData.ts index 126fbd5dc..0b6e2cede 100644 --- a/src/components/sections/article/mockData.ts +++ b/src/components/sections/article/mockData.ts @@ -1,5 +1,5 @@ -import { LinkType } from "studio/lib/payloads/navigation"; -import { ArticleSection } from "studio/lib/payloads/pages"; +import { LinkType } from "studio/lib/interfaces/navigation"; +import { ArticleSection } from "studio/lib/interfaces/pages"; import { ImageAlignment } from "studio/schemas/fields/media"; import placeholder from "../../../stories/assets/image-placeholder.png"; import { PortableTextBlock } from "src/components/richText/RichText"; diff --git a/src/components/sections/callToAction/CallToAction.tsx b/src/components/sections/callToAction/CallToAction.tsx index 4c0ca80bc..e635ebc2a 100644 --- a/src/components/sections/callToAction/CallToAction.tsx +++ b/src/components/sections/callToAction/CallToAction.tsx @@ -1,6 +1,6 @@ import Text from "src/components/text/Text"; import LinkButton from "src/components/linkButton/LinkButton"; -import { CallToActionSection } from "studio/lib/payloads/pages"; +import { CallToActionSection } from "studio/lib/interfaces/pages"; import styles from "./callToAction.module.css"; interface CallToActionProps { diff --git a/src/components/sections/callToAction/CallToActionPreview.tsx b/src/components/sections/callToAction/CallToActionPreview.tsx index c4fa1b1a4..2b9e25b7f 100644 --- a/src/components/sections/callToAction/CallToActionPreview.tsx +++ b/src/components/sections/callToAction/CallToActionPreview.tsx @@ -2,7 +2,7 @@ import { useQuery } from "@sanity/react-loader"; import CallToAction from "./CallToAction"; -import { PageBuilder, CallToActionSection } from "studio/lib/payloads/pages"; +import { PageBuilder, CallToActionSection } from "studio/lib/interfaces/pages"; import { PAGE_QUERY } from "studio/lib/queries/pages"; import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; diff --git a/src/components/sections/callToAction/mockData.ts b/src/components/sections/callToAction/mockData.ts index fe8da4720..88dd2ed22 100644 --- a/src/components/sections/callToAction/mockData.ts +++ b/src/components/sections/callToAction/mockData.ts @@ -1,4 +1,4 @@ -import { LinkType } from "studio/lib/payloads/navigation"; +import { LinkType } from "studio/lib/interfaces/navigation"; export const ctaMockData = { _key: "9410f9860a00", diff --git a/src/components/sections/callout/Callout.tsx b/src/components/sections/callout/Callout.tsx index 88e61dfe7..a3d34f429 100644 --- a/src/components/sections/callout/Callout.tsx +++ b/src/components/sections/callout/Callout.tsx @@ -1,5 +1,5 @@ import CustomLink from "src/components/link/CustomLink"; -import { CalloutSection } from "studio/lib/payloads/pages"; +import { CalloutSection } from "studio/lib/interfaces/pages"; import styles from "./callout.module.css"; import { PortableText } from "@portabletext/react"; import Text from "src/components/text/Text"; diff --git a/src/components/sections/callout/CalloutPreview.tsx b/src/components/sections/callout/CalloutPreview.tsx index cf6aafdab..bde6a6255 100644 --- a/src/components/sections/callout/CalloutPreview.tsx +++ b/src/components/sections/callout/CalloutPreview.tsx @@ -2,7 +2,7 @@ import { useQuery } from "@sanity/react-loader"; import Callout from "./Callout"; -import { PageBuilder, CalloutSection } from "studio/lib/payloads/pages"; +import { PageBuilder, CalloutSection } from "studio/lib/interfaces/pages"; import { PAGE_QUERY } from "studio/lib/queries/pages"; import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; diff --git a/src/components/sections/callout/mockData.ts b/src/components/sections/callout/mockData.ts index 704ae3f1e..dae8799f5 100644 --- a/src/components/sections/callout/mockData.ts +++ b/src/components/sections/callout/mockData.ts @@ -1,5 +1,5 @@ import { PortableTextBlock } from "src/components/richText/RichText"; -import { LinkType } from "studio/lib/payloads/navigation"; +import { LinkType } from "studio/lib/interfaces/navigation"; const RichTextMock: PortableTextBlock[] = [ { diff --git a/src/components/sections/contactForm/ContactForm.tsx b/src/components/sections/contactForm/ContactForm.tsx index e962aae57..d4d1a8f2d 100644 --- a/src/components/sections/contactForm/ContactForm.tsx +++ b/src/components/sections/contactForm/ContactForm.tsx @@ -2,7 +2,7 @@ import React, { useState, ChangeEvent, FormEvent } from "react"; import Text from "src/components/text/Text"; -import { ContactFormSection } from "studio/lib/payloads/pages"; +import { ContactFormSection } from "studio/lib/interfaces/pages"; import styles from "./contactForm.module.css"; import InputField from "src/components/forms/inputField/InputField"; import Button from "src/components/buttons/Button"; diff --git a/src/components/sections/grid/Grid.tsx b/src/components/sections/grid/Grid.tsx index 7b1be0c2d..20e9eddd9 100644 --- a/src/components/sections/grid/Grid.tsx +++ b/src/components/sections/grid/Grid.tsx @@ -1,11 +1,11 @@ "use client"; import Text from "src/components/text/Text"; -import { GridSection } from "studio/lib/payloads/pages"; +import { GridSection } from "studio/lib/interfaces/pages"; import styles from "./grid.module.css"; import { useConvertSanityImageToNextImage } from "src/utils/hooks/useConvertImage"; import { PortableText } from "@portabletext/react"; import { PortableTextBlock } from "src/components/richText/RichText"; -import { IImage } from "studio/lib/payloads/media"; +import { IImage } from "studio/lib/interfaces/media"; const Grid = ({ grid }: { grid: GridSection }) => { return ( diff --git a/src/components/sections/grid/GridPreview.tsx b/src/components/sections/grid/GridPreview.tsx index 830593398..31beb31ba 100644 --- a/src/components/sections/grid/GridPreview.tsx +++ b/src/components/sections/grid/GridPreview.tsx @@ -1,7 +1,7 @@ "use client"; import { useQuery } from "@sanity/react-loader"; -import { PageBuilder, GridSection } from "studio/lib/payloads/pages"; +import { PageBuilder, GridSection } from "studio/lib/interfaces/pages"; import { PAGE_QUERY } from "studio/lib/queries/pages"; import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; diff --git a/src/components/sections/hero/Hero.tsx b/src/components/sections/hero/Hero.tsx index 1ad592dcb..6dbf04ef9 100644 --- a/src/components/sections/hero/Hero.tsx +++ b/src/components/sections/hero/Hero.tsx @@ -1,8 +1,8 @@ import Text from "src/components/text/Text"; import LinkButton from "src/components/linkButton/LinkButton"; -import { HeroSection } from "studio/lib/payloads/pages"; +import { HeroSection } from "studio/lib/interfaces/pages"; import styles from "./hero.module.css"; -import { ILink } from "studio/lib/payloads/navigation"; +import { ILink } from "studio/lib/interfaces/navigation"; interface HeroProps { hero: HeroSection; diff --git a/src/components/sections/hero/HeroPreview.tsx b/src/components/sections/hero/HeroPreview.tsx index 3b4dd472a..7565fef26 100644 --- a/src/components/sections/hero/HeroPreview.tsx +++ b/src/components/sections/hero/HeroPreview.tsx @@ -2,7 +2,7 @@ import { useQuery } from "@sanity/react-loader"; import { Hero } from "./Hero"; -import { PageBuilder, HeroSection } from "studio/lib/payloads/pages"; +import { PageBuilder, HeroSection } from "studio/lib/interfaces/pages"; import { PAGE_QUERY } from "studio/lib/queries/pages"; import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; diff --git a/src/components/sections/hero/mockData.ts b/src/components/sections/hero/mockData.ts index fee10ef9e..21980ffab 100644 --- a/src/components/sections/hero/mockData.ts +++ b/src/components/sections/hero/mockData.ts @@ -1,5 +1,5 @@ -import { HeroSection } from "studio/lib/payloads/pages"; -import { LinkType } from "studio/lib/payloads/navigation"; +import { HeroSection } from "studio/lib/interfaces/pages"; +import { LinkType } from "studio/lib/interfaces/navigation"; export const mockHeroSection: HeroSection = { _key: "", diff --git a/src/components/sections/imageSection/ImageSectionComponent.tsx b/src/components/sections/imageSection/ImageSectionComponent.tsx index 7d5cd813a..027500c12 100644 --- a/src/components/sections/imageSection/ImageSectionComponent.tsx +++ b/src/components/sections/imageSection/ImageSectionComponent.tsx @@ -1,7 +1,7 @@ "use client"; import Text from "src/components/text/Text"; import { useConvertSanityImageToNextImage } from "src/utils/hooks/useConvertImage"; -import { ImageSection } from "studio/lib/payloads/pages"; +import { ImageSection } from "studio/lib/interfaces/pages"; import styles from "./imageSectionComponent.module.css"; const ImageSectionComponent = ({ section }: { section: ImageSection }) => { diff --git a/src/components/sections/imageSection/ImageSectionComponentPreview.tsx b/src/components/sections/imageSection/ImageSectionComponentPreview.tsx index 9eda15c2d..c31049459 100644 --- a/src/components/sections/imageSection/ImageSectionComponentPreview.tsx +++ b/src/components/sections/imageSection/ImageSectionComponentPreview.tsx @@ -4,7 +4,7 @@ import { ImageSection, PageBuilder, TestimonialsSection, -} from "studio/lib/payloads/pages"; +} from "studio/lib/interfaces/pages"; import { PAGE_QUERY } from "studio/lib/queries/pages"; import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; diff --git a/src/components/sections/logoSalad/LogoRender.tsx b/src/components/sections/logoSalad/LogoRender.tsx index 6e9b8f25b..86f7e6db5 100644 --- a/src/components/sections/logoSalad/LogoRender.tsx +++ b/src/components/sections/logoSalad/LogoRender.tsx @@ -1,6 +1,6 @@ "use client"; import { useConvertSanityImageToNextImage } from "src/utils/hooks/useConvertImage"; -import { IImage } from "studio/lib/payloads/media"; +import { IImage } from "studio/lib/interfaces/media"; export const RenderLogo = ({ asset }: { asset: IImage }) => { const renderedLogo = useConvertSanityImageToNextImage(asset); diff --git a/src/components/sections/logoSalad/LogoSalad.tsx b/src/components/sections/logoSalad/LogoSalad.tsx index ae9a0bae2..0d0b5b81b 100644 --- a/src/components/sections/logoSalad/LogoSalad.tsx +++ b/src/components/sections/logoSalad/LogoSalad.tsx @@ -1,5 +1,5 @@ import Text from "src/components/text/Text"; -import { LogoSaladSection } from "studio/lib/payloads/pages"; +import { LogoSaladSection } from "studio/lib/interfaces/pages"; import styles from "./logoSalad.module.css"; import { RenderLogo } from "./LogoRender"; import { PortableText } from "@portabletext/react"; diff --git a/src/components/sections/logoSalad/LogoSaladPreview.tsx b/src/components/sections/logoSalad/LogoSaladPreview.tsx index d09d4fb27..a67c22201 100644 --- a/src/components/sections/logoSalad/LogoSaladPreview.tsx +++ b/src/components/sections/logoSalad/LogoSaladPreview.tsx @@ -2,7 +2,7 @@ import { QueryResponseInitial, useQuery } from "@sanity/react-loader"; import { LogoSalad } from "./LogoSalad"; -import { PageBuilder, LogoSaladSection } from "studio/lib/payloads/pages"; +import { PageBuilder, LogoSaladSection } from "studio/lib/interfaces/pages"; import { PAGE_QUERY } from "studio/lib/queries/pages"; import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; diff --git a/src/components/sections/logoSalad/mockData.ts b/src/components/sections/logoSalad/mockData.ts index ee9eada19..7296724f2 100644 --- a/src/components/sections/logoSalad/mockData.ts +++ b/src/components/sections/logoSalad/mockData.ts @@ -1,4 +1,4 @@ -import { LogoSaladSection } from "studio/lib/payloads/pages"; +import { LogoSaladSection } from "studio/lib/interfaces/pages"; import sparebanknord from "../../../stories/assets/logoSalad/sparebank1-nord-norge.png"; import sevenoffice from "../../../stories/assets/logoSalad/24sevenoffice.png"; import credoPartners from "../../../stories/assets/logoSalad/credo-partners.png"; diff --git a/src/components/sections/testimonials/RenderAvatar.tsx b/src/components/sections/testimonials/RenderAvatar.tsx index 37757ec9f..39e393294 100644 --- a/src/components/sections/testimonials/RenderAvatar.tsx +++ b/src/components/sections/testimonials/RenderAvatar.tsx @@ -1,7 +1,7 @@ "use client"; import { useConvertSanityImageToNextImage } from "src/utils/hooks/useConvertImage"; -import { IImage } from "studio/lib/payloads/media"; +import { IImage } from "studio/lib/interfaces/media"; export const RenderImage = ({ image }: { image: IImage }) => { const renderedImage = useConvertSanityImageToNextImage(image); diff --git a/src/components/sections/testimonials/Testimonials.tsx b/src/components/sections/testimonials/Testimonials.tsx index ed1d02d0b..29297b40a 100644 --- a/src/components/sections/testimonials/Testimonials.tsx +++ b/src/components/sections/testimonials/Testimonials.tsx @@ -1,6 +1,6 @@ "use client"; import Text from "src/components/text/Text"; -import { TestimonialsSection } from "studio/lib/payloads/pages"; +import { TestimonialsSection } from "studio/lib/interfaces/pages"; import styles from "./testimonials.module.css"; import { RenderImage } from "./RenderAvatar"; import { RichText } from "src/components/richText/RichText"; diff --git a/src/components/sections/testimonials/TestimonialsPreview.tsx b/src/components/sections/testimonials/TestimonialsPreview.tsx index cb14ab394..2d8ee8aaf 100644 --- a/src/components/sections/testimonials/TestimonialsPreview.tsx +++ b/src/components/sections/testimonials/TestimonialsPreview.tsx @@ -2,7 +2,7 @@ import { useQuery } from "@sanity/react-loader"; import { Testimonials } from "./Testimonials"; -import { PageBuilder, TestimonialsSection } from "studio/lib/payloads/pages"; +import { PageBuilder, TestimonialsSection } from "studio/lib/interfaces/pages"; import { PAGE_QUERY } from "studio/lib/queries/pages"; import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; diff --git a/src/components/sections/testimonials/mockData.ts b/src/components/sections/testimonials/mockData.ts index 4205f2fb7..8d2355e11 100644 --- a/src/components/sections/testimonials/mockData.ts +++ b/src/components/sections/testimonials/mockData.ts @@ -1,4 +1,4 @@ -import { TestimonialsSection } from "studio/lib/payloads/pages"; +import { TestimonialsSection } from "studio/lib/interfaces/pages"; import alex from "../../../stories/assets/alex.jpg"; import mika from "../../../stories/assets/mika.jpg"; import vince from "../../../stories/assets/vince.jpg"; diff --git a/src/middleware.ts b/src/middleware.ts index f3f973917..5c59a585b 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from "next/server"; import { HTTP_STATUSES } from "./utils/http"; -import { RedirectDestinationSlugPage } from "studio/lib/payloads/redirect"; +import { RedirectDestinationSlugPage } from "studio/lib/interfaces/redirect"; import { REDIRECT_BY_SOURCE_SLUG_QUERY } from "../studio/lib/queries/redirects"; export async function middleware(request: NextRequest) { diff --git a/src/post/PostPage.tsx b/src/post/PostPage.tsx index ae137054b..abc33b362 100644 --- a/src/post/PostPage.tsx +++ b/src/post/PostPage.tsx @@ -1,4 +1,4 @@ -import { BlogPage, Post } from "studio/lib/payloads/pages"; +import { BlogPage, Post } from "studio/lib/interfaces/pages"; import PostHero from "./hero/PostHero"; import Lead from "./lead/Lead"; import styles from "./post.module.css"; diff --git a/src/post/PostPagePreview.tsx b/src/post/PostPagePreview.tsx index d5e9b8464..3df118c4e 100644 --- a/src/post/PostPagePreview.tsx +++ b/src/post/PostPagePreview.tsx @@ -1,6 +1,6 @@ "use client"; import { QueryResponseInitial, useQuery } from "@sanity/react-loader"; -import { BlogPage, Post } from "studio/lib/payloads/pages"; +import { BlogPage, Post } from "studio/lib/interfaces/pages"; import { POST_SLUG_QUERY } from "studio/lib/queries/pages"; import { Suspense } from "react"; import PostPage from "./PostPage"; diff --git a/src/post/lead/Lead.tsx b/src/post/lead/Lead.tsx index 4a6e84e09..0072fcf3c 100644 --- a/src/post/lead/Lead.tsx +++ b/src/post/lead/Lead.tsx @@ -1,7 +1,7 @@ "use client"; import { PortableTextBlock } from "src/components/richText/RichText"; import { useConvertSanityImageToNextImage } from "src/utils/hooks/useConvertImage"; -import { IImage } from "studio/lib/payloads/media"; +import { IImage } from "studio/lib/interfaces/media"; import styles from "./lead.module.css"; import { PortableText } from "@portabletext/react"; import Text from "src/components/text/Text"; diff --git a/src/post/morePostsGrid/MorePostsGrid.tsx b/src/post/morePostsGrid/MorePostsGrid.tsx index c47f099ff..1791c172f 100644 --- a/src/post/morePostsGrid/MorePostsGrid.tsx +++ b/src/post/morePostsGrid/MorePostsGrid.tsx @@ -1,5 +1,5 @@ import Text from "src/components/text/Text"; -import { Post } from "studio/lib/payloads/pages"; +import { Post } from "studio/lib/interfaces/pages"; import styles from "./morePostsGrid.module.css"; import BackButton from "src/components/buttons/BackButton"; import { PostCard } from "src/blog/components/postCard/PostCard"; diff --git a/src/post/morePostsGrid/mockdata.ts b/src/post/morePostsGrid/mockdata.ts index 3d492f413..096aa20d5 100644 --- a/src/post/morePostsGrid/mockdata.ts +++ b/src/post/morePostsGrid/mockdata.ts @@ -1,4 +1,4 @@ -import { Post } from "studio/lib/payloads/pages"; +import { Post } from "studio/lib/interfaces/pages"; import placeholder from "../../stories/assets/image-placeholder.png"; export const mockPosts: Post[] = [ diff --git a/src/types/preview.ts b/src/types/preview.ts index 683aafc77..ae0b6e408 100644 --- a/src/types/preview.ts +++ b/src/types/preview.ts @@ -1,5 +1,5 @@ import { QueryResponseInitial } from "@sanity/react-loader"; -import { PageBuilder } from "studio/lib/payloads/pages"; +import { PageBuilder } from "studio/lib/interfaces/pages"; export interface PreviewProps { initialData: QueryResponseInitial; diff --git a/src/utils/api.ts b/src/utils/api.ts index 9f44e87fe..5b27f4dd8 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -3,7 +3,7 @@ import { CATEGORIZED_POSTS_QUERY, COUNT_POSTS_QUERY, } from "studio/lib/queries/pages"; -import { Post } from "studio/lib/payloads/pages"; +import { Post } from "studio/lib/interfaces/pages"; interface FetchResult { data: Post[]; diff --git a/src/utils/get.tsx b/src/utils/get.tsx index 34388b510..443661d77 100644 --- a/src/utils/get.tsx +++ b/src/utils/get.tsx @@ -1,4 +1,4 @@ -import { ILink, LinkType } from "studio/lib/payloads/navigation"; +import { ILink, LinkType } from "studio/lib/interfaces/navigation"; const hash = "#"; diff --git a/src/utils/hooks/useConvertImage.tsx b/src/utils/hooks/useConvertImage.tsx index 817d7eb12..bc5e9624f 100644 --- a/src/utils/hooks/useConvertImage.tsx +++ b/src/utils/hooks/useConvertImage.tsx @@ -1,7 +1,7 @@ import { useNextSanityImage } from "next-sanity-image"; // TODO: add support for sharedClient import { client } from "studio/lib/client"; -import { IImage } from "studio/lib/payloads/media"; +import { IImage } from "studio/lib/interfaces/media"; import Image from "next/image"; import { JSX } from "react"; diff --git a/src/utils/hooks/useFetchPosts.ts b/src/utils/hooks/useFetchPosts.ts index 93019d6d4..7b7f497d0 100644 --- a/src/utils/hooks/useFetchPosts.ts +++ b/src/utils/hooks/useFetchPosts.ts @@ -1,5 +1,5 @@ import { useCallback, useState } from "react"; -import { Category, Post } from "studio/lib/payloads/pages"; +import { Category, Post } from "studio/lib/interfaces/pages"; import { fetchCategorizedPosts, fetchPostCount } from "../api"; interface FetchState { diff --git a/src/utils/renderSection.tsx b/src/utils/renderSection.tsx index 09371a6b6..8123c5ffd 100644 --- a/src/utils/renderSection.tsx +++ b/src/utils/renderSection.tsx @@ -19,7 +19,7 @@ import { ImageSection, GridSection, ContactFormSection, -} from "studio/lib/payloads/pages"; +} from "studio/lib/interfaces/pages"; import CalloutPreview from "src/components/sections/callout/CalloutPreview"; import CallToAction from "src/components/sections/callToAction/CallToAction"; import CallToActionPreview from "src/components/sections/callToAction/CallToActionPreview"; diff --git a/src/utils/seo.ts b/src/utils/seo.ts index f092329b0..f26cc73bc 100644 --- a/src/utils/seo.ts +++ b/src/utils/seo.ts @@ -5,10 +5,10 @@ import { COMPANY_INFO_QUERY } from "studio/lib/queries/companyDetails"; import { loadQuery } from "studio/lib/store"; import { PortableTextBlock } from "src/components/richText/RichText"; import { DEFAULT_SEO_QUERY } from "../../studio/lib/queries/seo"; -import { DefaultSeo } from "../../studio/lib/payloads/defaultSeo"; -import { BrandAssets } from "../../studio/lib/payloads/brandAssets"; +import { DefaultSeo } from "../../studio/lib/interfaces/defaultSeo"; +import { BrandAssets } from "../../studio/lib/interfaces/brandAssets"; import { BRAND_ASSETS_QUERY } from "../../studio/lib/queries/brandAssets"; -import { CompanyInfo } from "../../studio/lib/payloads/companyDetails"; +import { CompanyInfo } from "../../studio/lib/interfaces/companyDetails"; type SeoData = { title: string; diff --git a/studio/components/PrefixedSlugInput.tsx b/studio/components/slug/PrefixedSlugInput.tsx similarity index 100% rename from studio/components/PrefixedSlugInput.tsx rename to studio/components/slug/PrefixedSlugInput.tsx diff --git a/studio/components/ReferenceSlugInput.tsx b/studio/components/slug/ReferenceSlugInput.tsx similarity index 100% rename from studio/components/ReferenceSlugInput.tsx rename to studio/components/slug/ReferenceSlugInput.tsx diff --git a/studio/components/prefixedSlugInput.module.css b/studio/components/slug/prefixedSlugInput.module.css similarity index 100% rename from studio/components/prefixedSlugInput.module.css rename to studio/components/slug/prefixedSlugInput.module.css diff --git a/studio/components/toolMenuLinkButton/ToolMenuLinkButton.tsx b/studio/components/toolMenuLinkButton/ToolMenuLinkButton.tsx deleted file mode 100644 index 601f29fc5..000000000 --- a/studio/components/toolMenuLinkButton/ToolMenuLinkButton.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import styles from "./toolMenuLinkButton.module.css"; -import { useTheme } from "@sanity/ui"; - -interface LinkButtonProps { - label: string; - value?: string; - context: "topbar" | "sidebar"; -} - -export const ToolMenuLinkButton = ({ - label, - value, - context, -}: LinkButtonProps) => { - const theme = useTheme(); - const prefersDark = theme.sanity.v2?.color._dark ?? false; - return ( - - {label} - - ); -}; diff --git a/studio/components/toolMenuLinkButton/toolMenuLinkButton.module.css b/studio/components/toolMenuLinkButton/toolMenuLinkButton.module.css deleted file mode 100644 index e25e9450c..000000000 --- a/studio/components/toolMenuLinkButton/toolMenuLinkButton.module.css +++ /dev/null @@ -1,50 +0,0 @@ -.wrapper { - align-items: center; - display: block; - list-style: none; - text-decoration: none; - white-space: nowrap; - border-radius: 3px; - padding: 0.2rem 0.5rem; -} - -.wrapper.inSidebar { - padding: 0.5rem 0.75rem; -} - -.wrapper:hover { - background: #f5f5f7; -} - -.darkTheme.wrapper:hover { - background: #191a24; -} - -.text { - display: flex; - align-items: center; - text-decoration: block; - font-weight: 500; - color: #323545; - letter-spacing: 0; - gap: 0.2rem; - font-size: 0.8125rem; - line-height: calc(19 / 13); - - &::after { - content: ""; - width: 1rem; - height: 1rem; - -webkit-mask: url("/arrow-right.svg") no-repeat; - -webkit-mask-size: contain; - background-color: #323545; - } -} - -.darkTheme .text { - color: #bec0cd; - - &::after { - background-color: #bec0cd; - } -} diff --git a/studio/lib/payloads/brandAssets.ts b/studio/lib/interfaces/brandAssets.ts similarity index 100% rename from studio/lib/payloads/brandAssets.ts rename to studio/lib/interfaces/brandAssets.ts diff --git a/studio/lib/payloads/companyDetails.ts b/studio/lib/interfaces/companyDetails.ts similarity index 100% rename from studio/lib/payloads/companyDetails.ts rename to studio/lib/interfaces/companyDetails.ts diff --git a/studio/lib/payloads/compensations.ts b/studio/lib/interfaces/compensations.ts similarity index 100% rename from studio/lib/payloads/compensations.ts rename to studio/lib/interfaces/compensations.ts diff --git a/studio/lib/payloads/defaultSeo.ts b/studio/lib/interfaces/defaultSeo.ts similarity index 100% rename from studio/lib/payloads/defaultSeo.ts rename to studio/lib/interfaces/defaultSeo.ts diff --git a/studio/lib/payloads/global.ts b/studio/lib/interfaces/global.ts similarity index 100% rename from studio/lib/payloads/global.ts rename to studio/lib/interfaces/global.ts diff --git a/studio/lib/payloads/languages.ts b/studio/lib/interfaces/languages.ts similarity index 100% rename from studio/lib/payloads/languages.ts rename to studio/lib/interfaces/languages.ts diff --git a/studio/lib/payloads/legalDocuments.ts b/studio/lib/interfaces/legalDocuments.ts similarity index 100% rename from studio/lib/payloads/legalDocuments.ts rename to studio/lib/interfaces/legalDocuments.ts diff --git a/studio/lib/payloads/media.ts b/studio/lib/interfaces/media.ts similarity index 100% rename from studio/lib/payloads/media.ts rename to studio/lib/interfaces/media.ts diff --git a/studio/lib/payloads/navigation.ts b/studio/lib/interfaces/navigation.ts similarity index 100% rename from studio/lib/payloads/navigation.ts rename to studio/lib/interfaces/navigation.ts diff --git a/studio/lib/payloads/pages.ts b/studio/lib/interfaces/pages.ts similarity index 100% rename from studio/lib/payloads/pages.ts rename to studio/lib/interfaces/pages.ts diff --git a/studio/lib/payloads/redirect.ts b/studio/lib/interfaces/redirect.ts similarity index 100% rename from studio/lib/payloads/redirect.ts rename to studio/lib/interfaces/redirect.ts diff --git a/studio/lib/payloads/socialMedia.ts b/studio/lib/interfaces/socialMedia.ts similarity index 100% rename from studio/lib/payloads/socialMedia.ts rename to studio/lib/interfaces/socialMedia.ts diff --git a/studio/schemas/documents/redirect.ts b/studio/schemas/documents/redirect.ts index 969643d6b..e3843c83a 100644 --- a/studio/schemas/documents/redirect.ts +++ b/studio/schemas/documents/redirect.ts @@ -3,7 +3,7 @@ import { SanityDocument, SlugRule } from "@sanity/types"; import { pageBuilderID } from "../builders/pageBuilder"; import { blogId } from "./blog"; import { compensationsId } from "./compensations"; -import PrefixedSlugInput from "../../components/PrefixedSlugInput"; +import PrefixedSlugInput from "../../components/slug/PrefixedSlugInput"; const slugRequired = (rule: SlugRule) => rule.required().custom((value: Slug | undefined) => { diff --git a/studio/schemas/objects/compensations/bonusesByLocation.ts b/studio/schemas/objects/compensations/bonusesByLocation.ts index 4228f917d..7e0d93b03 100644 --- a/studio/schemas/objects/compensations/bonusesByLocation.ts +++ b/studio/schemas/objects/compensations/bonusesByLocation.ts @@ -5,7 +5,7 @@ import { DocumentWithLocation, checkForDuplicateLocations, } from "./utils/validation"; -import { BonusPage } from "../../../lib/payloads/compensations"; +import { BonusPage } from "../../../lib/interfaces/compensations"; export const bonusesByLocation = defineField({ name: "bonusesByLocation", diff --git a/studio/schemas/objects/compensations/salariesByLocation.ts b/studio/schemas/objects/compensations/salariesByLocation.ts index 6afc974c1..5ef04bbbd 100644 --- a/studio/schemas/objects/compensations/salariesByLocation.ts +++ b/studio/schemas/objects/compensations/salariesByLocation.ts @@ -6,7 +6,7 @@ import { } from "./utils/validation"; import { companyLocationNameID } from "../../documents/companyLocation"; import { SalariesInput } from "../../../components/salariesInput/SalariesInput"; -import { SalariesPage } from "../../../lib/payloads/compensations"; +import { SalariesPage } from "../../../lib/interfaces/compensations"; export const salariesByLocation = defineField({ name: "salariesByLocation",