A full-featured CRM built with React, shadcn/ui, and Supabase.
Use shadcn-admin-kit instead of react-admin, update configuration.
Matthieu Hochlander1a092a803808
diff --git a/.eslintrc.json b/.eslintrc.jsondeleted file mode 100644index 4d73b972..00000000--- a/.eslintrc.json+++ /dev/null@@ -1,44 +0,0 @@-{- "parser": "@typescript-eslint/parser",- "parserOptions": {- "warnOnUnsupportedTypeScriptVersion": false- },- "extends": ["react-app", "plugin:prettier/recommended"],- "plugins": [- "@typescript-eslint",- "import",- "jsx-a11y",- "prettier",- "react",- "react-hooks"- ],- "rules": {- "no-use-before-define": "off",- "prettier/prettier": "error",- "no-restricted-imports": [- "error",- {- "paths": [- {- "name": "@mui/material",- "importNames": ["makeStyles", "createMuiTheme"],- "message": "Please import from @mui/material/styles instead. See https://material-ui.com/guides/minimizing-bundle-size/#option-2 for more information"- }- ]- }- ],- "no-redeclare": "off",- "import/no-anonymous-default-export": "off",- "@typescript-eslint/no-redeclare": "error",- "no-unused-vars": "off",- "@typescript-eslint/no-unused-vars": [- "warn", // or "error"- {- "argsIgnorePattern": "^_",- "varsIgnorePattern": "^_",- "caughtErrorsIgnorePattern": "^_",- "ignoreRestSiblings": true- }- ]- }-}diff --git a/.nvmrc b/.nvmrcindex 9a2a0e21..53d1c14d 100644--- a/.nvmrc+++ b/.nvmrc@@ -1 +1 @@-v20+v22diff --git a/eslint.config.js b/eslint.config.jsnew file mode 100644index 00000000..4cca04ba--- /dev/null+++ b/eslint.config.js@@ -0,0 +1,40 @@+// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format+import storybook from "eslint-plugin-storybook";++import js from "@eslint/js";+import reactHooks from "eslint-plugin-react-hooks";+import reactRefresh from "eslint-plugin-react-refresh";+import globals from "globals";+import tseslint from "typescript-eslint";++export default tseslint.config(+ { ignores: ["dist"] },+ {+ extends: [js.configs.recommended, ...tseslint.configs.recommended],+ files: ["**/*.{ts,tsx}"],+ languageOptions: {+ ecmaVersion: 2020,+ globals: globals.browser,+ },+ plugins: {+ "react-hooks": reactHooks,+ "react-refresh": reactRefresh,+ },+ rules: {+ ...reactHooks.configs.recommended.rules,+ "react-refresh/only-export-components": [+ "warn",+ { allowConstantExport: true },+ ],+ "@typescript-eslint/no-unused-vars": [+ "error",+ {+ varsIgnorePattern: "^_",+ argsIgnorePattern: "^_",+ },+ ],+ "@typescript-eslint/no-explicit-any": "off",+ },+ },+ storybook.configs["flat/recommended"]+);diff --git a/index.html b/index.htmlindex c5141a49..612e1bee 100644--- a/index.html+++ b/index.html@@ -1,125 +1,116 @@<!doctype html><html lang="en">- <head>- <meta charset="utf-8" />- <meta+<head>+ <meta charset="utf-8"/>+ <metaname="viewport"content="minimum-scale=1, initial-scale=1, width=device-width, shrink-to-fit=no"- />- <meta name="theme-color" content="#000000" />- <link rel="manifest" href="./manifest.json" />- <link rel="shortcut icon" href="./favicon.ico" />- <title>Atomic CRM</title>- <style>- body {- margin: 0;- padding: 0;- font-family: sans-serif;- }+ />+ <meta name="theme-color" content="#000000"/>+ <link rel="manifest" href="./manifest.json"/>+ <link rel="shortcut icon" href="./favicon.ico"/>+ <title>Atomic CRM</title>- .loader-container {- display: flex;- align-items: center;- justify-content: center;- flex-direction: column;- position: absolute;- top: 0;- bottom: 0;- left: 0;- right: 0;- background-color: #fafafa;- }+ <style>+ body {+ margin: 0;+ padding: 0;+ font-family: sans-serif;+ }- /* CSS Spinner from https://projects.lukehaas.me/css-loaders/ */+ .loader-container {+ display: flex;+ align-items: center;+ justify-content: center;+ flex-direction: column;+ position: absolute;+ top: 0;+ bottom: 0;+ left: 0;+ right: 0;+ background-color: #fafafa;+ }- .loader,- .loader:before,- .loader:after {- border-radius: 50%;- }+ /* CSS Spinner from https://projects.lukehaas.me/css-loaders/ */- .loader {- color: #283593;- font-size: 11px;- text-indent: -99999em;- margin: 55px auto;- position: relative;- width: 10em;- height: 10em;- box-shadow: inset 0 0 0 1em;- -webkit-transform: translateZ(0);- -ms-transform: translateZ(0);- transform: translateZ(0);- }+ .loader,+ .loader:before,+ .loader:after {+ border-radius: 50%;+ }- .loader:before,- .loader:after {- position: absolute;- content: '';- }+ .loader {+ color: #283593;+ font-size: 11px;+ text-indent: -99999em;+ margin: 55px auto;+ position: relative;+ width: 10em;+ height: 10em;+ box-shadow: inset 0 0 0 1em;+ -webkit-transform: translateZ(0);+ -ms-transform: translateZ(0);+ transform: translateZ(0);+ }- .loader:before {- width: 5.2em;- height: 10.2em;- background: #fafafa;- border-radius: 10.2em 0 0 10.2em;- top: -0.1em;- left: -0.1em;- -webkit-transform-origin: 5.2em 5.1em;- transform-origin: 5.2em 5.1em;- -webkit-animation: load2 2s infinite ease 1.5s;- animation: load2 2s infinite ease 1.5s;- }+ .loader:before,+ .loader:after {+ position: absolute;+ content: "";+ }- .loader:after {- width: 5.2em;- height: 10.2em;- background: #fafafa;- border-radius: 0 10.2em 10.2em 0;- top: -0.1em;- left: 5.1em;- -webkit-transform-origin: 0px 5.1em;- transform-origin: 0px 5.1em;- -webkit-animation: load2 2s infinite ease;- animation: load2 2s infinite ease;- }+ .loader:before {+ width: 5.2em;+ height: 10.2em;+ background: #fafafa;+ border-radius: 10.2em 0 0 10.2em;+ top: -0.1em;+ left: -0.1em;+ -webkit-transform-origin: 5.2em 5.1em;+ transform-origin: 5.2em 5.1em;+ -webkit-animation: load2 2s infinite ease 1.5s;+ animation: load2 2s infinite ease 1.5s;+ }- @-webkit-keyframes load2 {- 0% {- -webkit-transform: rotate(0deg);- transform: rotate(0deg);- }- 100% {- -webkit-transform: rotate(360deg);- transform: rotate(360deg);- }- }+ .loader:after {+ width: 5.2em;+ height: 10.2em;+ background: #fafafa;+ border-radius: 0 10.2em 10.2em 0;+ top: -0.1em;+ left: 5.1em;+ -webkit-transform-origin: 0px 5.1em;+ transform-origin: 0px 5.1em;+ -webkit-animation: load2 2s infinite ease;+ animation: load2 2s infinite ease;+ }- @keyframes load2 {- 0% {- -webkit-transform: rotate(0deg);- transform: rotate(0deg);- }- 100% {- -webkit-transform: rotate(360deg);- transform: rotate(360deg);- }+ @-webkit-keyframes load2 {+ 0% {+ -webkit-transform: rotate(0deg);+ transform: rotate(0deg);+ }+ 100% {+ -webkit-transform: rotate(360deg);+ transform: rotate(360deg);}- </style>- <link rel="preconnect" href="https://fonts.gstatic.com" />- <link- href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"- rel="stylesheet"- />- </head>+ }- <body>- <noscript> You need to enable JavaScript to run this app. </noscript>- <div id="root">- <div class="loader-container">- <div class="loader">Loading...</div>- </div>- </div>- </body>- <script type="module" src="/src/script.tsx"></script>+ @keyframes load2 {+ 0% {+ -webkit-transform: rotate(0deg);+ transform: rotate(0deg);+ }+ 100% {+ -webkit-transform: rotate(360deg);+ transform: rotate(360deg);+ }+ }+ </style>+</head>+<body>+<div id="root"></div>+<noscript>You need to enable JavaScript to run this app.</noscript>+<script type="module" src="/src/main.tsx"></script>+</body></html>diff --git a/makefile b/makefileindex ad596b07..2e1a99eb 100644--- a/makefile+++ b/makefile@@ -23,6 +23,12 @@ start-app: ## start the app locallystart: start-supabase start-app ## start the stack locally+start-demo: ## start the app locally in demo mode+ VITE_IS_DEMO=true npm run dev++start-dev: ## start the app locally in dev mode (with fakerest and demo data)+ VITE_USE_FAKEREST=true npm run dev+stop-supabase: ## stop local supabasenpx supabase stopdiff --git a/package-lock.json b/package-lock.jsonindex 6108cd07..620fd28d 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,117 +1,95 @@{"name": "atomic-crm",- "version": "0.0.2",+ "version": "0.1.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "atomic-crm",- "version": "0.0.2",+ "version": "0.1.0","dependencies": {"@hello-pangea/dnd": "^18.0.1",- "@mui/icons-material": "^5.17.1",- "@mui/material": "^5.17.1",- "@nivo/bar": "^0.88.0",- "@nivo/core": "^0.88.0",- "@supabase/supabase-js": "^2.49.1",- "@types/jsonexport": "^3.0.5",- "clsx": "^2.1.0",- "date-fns": "^3.6.0",- "dotenv": "^16.4.7",- "faker": "5.5.3",- "lodash": "~4.17.5",- "papaparse": "^5.4.1",- "prop-types": "^15.8.1",- "ra-data-fakerest": "^5.4.0",- "ra-supabase": "^3.3.1",- "react": "^18.2.0",- "react-admin": "^5.4.0",+ "@hookform/resolvers": "^5.1.1",+ "@nivo/bar": "^0.99.0",+ "@radix-ui/react-accordion": "^1.2.11",+ "@radix-ui/react-avatar": "^1.1.10",+ "@radix-ui/react-checkbox": "^1.3.2",+ "@radix-ui/react-dialog": "^1.1.14",+ "@radix-ui/react-dropdown-menu": "^2.1.15",+ "@radix-ui/react-label": "^2.1.7",+ "@radix-ui/react-navigation-menu": "^1.2.13",+ "@radix-ui/react-popover": "^1.1.14",+ "@radix-ui/react-progress": "^1.1.7",+ "@radix-ui/react-radio-group": "^1.3.7",+ "@radix-ui/react-select": "^2.2.5",+ "@radix-ui/react-separator": "^1.1.7",+ "@radix-ui/react-slot": "^1.2.3",+ "@radix-ui/react-switch": "^1.2.5",+ "@radix-ui/react-tabs": "^1.1.12",+ "@radix-ui/react-tooltip": "^1.2.7",+ "@tailwindcss/vite": "^4.1.11",+ "@tanstack/react-query": "^5.83.0",+ "class-variance-authority": "^0.7.1",+ "cmdk": "^1.1.1",+ "diacritic": "^0.0.2",+ "faker": "^5.5.3",+ "inflection": "^3.0.2",+ "jsonexport": "^3.2.0",+ "lodash": "^4.17.21",+ "lucide-react": "^0.525.0",+ "next-themes": "^0.4.6",+ "papaparse": "^5.5.3",+ "ra-core": "^5.10.0",+ "ra-data-fakerest": "^5.10.0",+ "ra-i18n-polyglot": "^5.10.0",+ "ra-language-english": "^5.10.0",+ "ra-supabase-core": "^3.5.1",+ "ra-supabase-language-english": "^3.5.0",+ "react": "^19.1.0","react-cropper": "^2.3.3",- "react-dom": "^18.2.0",- "react-error-boundary": "^5.0.0",- "react-router": "^7.4.0",- "react-router-dom": "^7.4.0",- "serve": "^14.2.3"+ "react-dom": "^19.1.0",+ "react-dropzone": "^14.3.8",+ "react-error-boundary": "^6.0.0",+ "react-hook-form": "^7.60.0",+ "react-router": "^7.7.0",+ "rollup-plugin-visualizer": "^6.0.3",+ "sonner": "^2.0.6",+ "tailwind-merge": "^3.3.1",+ "tailwindcss": "^4.1.11",+ "vaul": "^1.1.2",+ "zod": "^4.0.5"},"devDependencies": {- "@chromatic-com/storybook": "^3.2.6",- "@inquirer/prompts": "^7.4.0",- "@storybook/addon-essentials": "^8.6.7",- "@storybook/addon-interactions": "^8.6.7",- "@storybook/addon-links": "^8.6.7",- "@storybook/addon-onboarding": "^8.6.7",- "@storybook/blocks": "^8.6.7",- "@storybook/react": "^8.6.7",- "@storybook/react-vite": "^8.6.7",- "@storybook/test": "^8.6.7",+ "@eslint/js": "^9.22.0","@testing-library/jest-dom": "^6.6.3",- "@testing-library/react": "^16.2.0",- "@testing-library/user-event": "^14.6.1","@types/faker": "^5.5.9",- "@types/jest": "^29.5.14","@types/jsonexport": "^3.0.5",- "@types/lodash": "^4.17.16",- "@types/papaparse": "^ 5.3.15",- "@types/pg": "^8.11.11",- "@types/react": "^19.0.12",- "@types/react-dom": "^19.0.4",- "@vitejs/plugin-react": "^4.2.1",- "eslint": "^8.57.1",- "eslint-config-prettier": "^9.1.0",- "eslint-config-react-app": "^7.0.1",- "eslint-plugin-prettier": "^5.1.3",- "eslint-plugin-storybook": "^0.11.6",- "eslint-plugin-testing-library": "^5.11.0",- "execa": "git+https://github.com/sindresorhus/execa",- "gh-pages": "^6.1.1",- "ink": "^5.0.1",- "lint-staged": "^15.5.0",- "pg": "^8.11.3",- "prettier": "~3.5.3",- "rollup-plugin-visualizer": "^5.12.0",- "storybook": "^8.6.7",- "supabase": "^2.19.7",- "typescript": "^5.3.3",- "vite": "^6.2.2",- "vite-plugin-dts": "^4.5.3 ",- "vitest": "^3.0.9",- "web-vitals": "^4.2.4"+ "@types/lodash": "^4.17.20",+ "@types/node": "^22.16.5",+ "@types/papaparse": "^5.3.16",+ "@types/react": "^19.1.8",+ "@types/react-dom": "^19.1.6",+ "@vitejs/plugin-react": "^4.6.0",+ "eslint": "^9.22.0",+ "eslint-plugin-react-hooks": "^5.2.0",+ "eslint-plugin-react-refresh": "^0.4.19",+ "eslint-plugin-storybook": "^9.0.13",+ "globals": "^16.3.0",+ "prettier": "^3.6.2",+ "tw-animate-css": "^1.3.5",+ "typescript": "~5.8.3",+ "typescript-eslint": "^8.35.1",+ "vite": "^7.0.4",+ "vitest": "^3.2.4"}},"node_modules/@adobe/css-tools": {- "version": "4.4.2",- "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.4.2.tgz",- "integrity": "sha512-baYZExFpsdkBNuvGKTKWCwKH57HRZLVtycZS05WTQNVOiXVSeAki3nU35zlRbToeMW8aHlJfyS+1C4BOv27q0A==",+ "version": "4.4.4",+ "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.4.4.tgz",+ "integrity": "sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg==","dev": true,"license": "MIT"},- "node_modules/@alcalzone/ansi-tokenize": {- "version": "0.1.3",- "resolved": "https://registry.npmjs.org/@alcalzone/ansi-tokenize/-/ansi-tokenize-0.1.3.tgz",- "integrity": "sha512-3yWxPTq3UQ/FY9p1ErPxIyfT64elWaMvM9lIHnaqpyft63tkxodF5aUElYHrdisWve5cETkh1+KBw1yJuW0aRw==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^6.2.1",- "is-fullwidth-code-point": "^4.0.0"- },- "engines": {- "node": ">=14.13.1"- }- },- "node_modules/@alcalzone/ansi-tokenize/node_modules/ansi-styles": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",- "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },"node_modules/@ampproject/remapping": {"version": "2.3.0","resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz",@@ -127,23 +105,24 @@}},"node_modules/@babel/code-frame": {- "version": "7.26.2",- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz",- "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==",+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",+ "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==",+ "dev": true,"license": "MIT","dependencies": {- "@babel/helper-validator-identifier": "^7.25.9",+ "@babel/helper-validator-identifier": "^7.27.1","js-tokens": "^4.0.0",- "picocolors": "^1.0.0"+ "picocolors": "^1.1.1"},"engines": {"node": ">=6.9.0"}},"node_modules/@babel/compat-data": {- "version": "7.26.8",- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.8.tgz",- "integrity": "sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ==",+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.0.tgz",+ "integrity": "sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==","dev": true,"license": "MIT","engines": {@@ -151,22 +130,22 @@}},"node_modules/@babel/core": {- "version": "7.26.10",- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.10.tgz",- "integrity": "sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ==",+ "version": "7.28.3",+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.3.tgz",+ "integrity": "sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ==","dev": true,"license": "MIT","dependencies": {"@ampproject/remapping": "^2.2.0",- "@babel/code-frame": "^7.26.2",- "@babel/generator": "^7.26.10",- "@babel/helper-compilation-targets": "^7.26.5",- "@babel/helper-module-transforms": "^7.26.0",- "@babel/helpers": "^7.26.10",- "@babel/parser": "^7.26.10",- "@babel/template": "^7.26.9",- "@babel/traverse": "^7.26.10",- "@babel/types": "^7.26.10",+ "@babel/code-frame": "^7.27.1",+ "@babel/generator": "^7.28.3",+ "@babel/helper-compilation-targets": "^7.27.2",+ "@babel/helper-module-transforms": "^7.28.3",+ "@babel/helpers": "^7.28.3",+ "@babel/parser": "^7.28.3",+ "@babel/template": "^7.27.2",+ "@babel/traverse": "^7.28.3",+ "@babel/types": "^7.28.2","convert-source-map": "^2.0.0","debug": "^4.1.0","gensync": "^1.0.0-beta.2",@@ -181,73 +160,32 @@"url": "https://opencollective.com/babel"}},- "node_modules/@babel/eslint-parser": {- "version": "7.26.10",- "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.26.10.tgz",- "integrity": "sha512-QsfQZr4AiLpKqn7fz+j7SN+f43z2DZCgGyYbNJ2vJOqKfG4E6MZer1+jqGZqKJaxq/gdO2DC/nUu45+pOL5p2Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1",- "eslint-visitor-keys": "^2.1.0",- "semver": "^6.3.1"- },- "engines": {- "node": "^10.13.0 || ^12.13.0 || >=14.0.0"- },- "peerDependencies": {- "@babel/core": "^7.11.0",- "eslint": "^7.5.0 || ^8.0.0 || ^9.0.0"- }- },- "node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz",- "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=10"- }- },"node_modules/@babel/generator": {- "version": "7.26.10",- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.10.tgz",- "integrity": "sha512-rRHT8siFIXQrAYOYqZQVsAr8vJ+cBNqcVAY6m5V8/4QqzaPl+zDBe6cLEPRDuNOUf3ww8RfJVlOyQMoSI+5Ang==",- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.26.10",- "@babel/types": "^7.26.10",- "@jridgewell/gen-mapping": "^0.3.5",- "@jridgewell/trace-mapping": "^0.3.25",- "jsesc": "^3.0.2"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-annotate-as-pure": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.9.tgz",- "integrity": "sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==",+ "version": "7.28.3",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.3.tgz",+ "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==","dev": true,"license": "MIT","dependencies": {- "@babel/types": "^7.25.9"+ "@babel/parser": "^7.28.3",+ "@babel/types": "^7.28.2",+ "@jridgewell/gen-mapping": "^0.3.12",+ "@jridgewell/trace-mapping": "^0.3.28",+ "jsesc": "^3.0.2"},"engines": {"node": ">=6.9.0"}},"node_modules/@babel/helper-compilation-targets": {- "version": "7.26.5",- "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.26.5.tgz",- "integrity": "sha512-IXuyn5EkouFJscIDuFF5EsiSolseme1s0CZB+QxVugqJLYmKdxI1VfIBOst0SUu4rnk2Z7kqTwmoO1lp3HIfnA==",+ "version": "7.27.2",+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz",+ "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==","dev": true,"license": "MIT","dependencies": {- "@babel/compat-data": "^7.26.5",- "@babel/helper-validator-option": "^7.25.9",+ "@babel/compat-data": "^7.27.2",+ "@babel/helper-validator-option": "^7.27.1","browserslist": "^4.24.0","lru-cache": "^5.1.1","semver": "^6.3.1"@@ -256,100 +194,40 @@"node": ">=6.9.0"}},- "node_modules/@babel/helper-create-class-features-plugin": {- "version": "7.26.9",- "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.26.9.tgz",- "integrity": "sha512-ubbUqCofvxPRurw5L8WTsCLSkQiVpov4Qx0WMA+jUN+nXBK8ADPlJO1grkFw5CWKC5+sZSOfuGMdX1aI1iT9Sg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-annotate-as-pure": "^7.25.9",- "@babel/helper-member-expression-to-functions": "^7.25.9",- "@babel/helper-optimise-call-expression": "^7.25.9",- "@babel/helper-replace-supers": "^7.26.5",- "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9",- "@babel/traverse": "^7.26.9",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/helper-create-regexp-features-plugin": {- "version": "7.26.3",- "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.26.3.tgz",- "integrity": "sha512-G7ZRb40uUgdKOQqPLjfD12ZmGA54PzqDFUv2BKImnC9QIfGhIHKvVML0oN8IUiDq4iRqpq74ABpvOaerfWdong==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-annotate-as-pure": "^7.25.9",- "regexpu-core": "^6.2.0",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/helper-define-polyfill-provider": {- "version": "0.6.4",- "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.4.tgz",- "integrity": "sha512-jljfR1rGnXXNWnmQg2K3+bvhkxB51Rl32QRaOTuwwjviGrHzIbSc8+x9CpraDtbT7mfyjXObULP4w/adunNwAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-compilation-targets": "^7.22.6",- "@babel/helper-plugin-utils": "^7.22.5",- "debug": "^4.1.1",- "lodash.debounce": "^4.0.8",- "resolve": "^1.14.2"- },- "peerDependencies": {- "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"- }- },- "node_modules/@babel/helper-member-expression-to-functions": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.9.tgz",- "integrity": "sha512-wbfdZ9w5vk0C0oyHqAJbc62+vet5prjj01jjJ8sKn3j9h3MQQlflEdXYvuqRWjHnM12coDEqiC1IRCi0U/EKwQ==",+ "node_modules/@babel/helper-globals": {+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",+ "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==","dev": true,"license": "MIT",- "dependencies": {- "@babel/traverse": "^7.25.9",- "@babel/types": "^7.25.9"- },"engines": {"node": ">=6.9.0"}},"node_modules/@babel/helper-module-imports": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz",- "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==",+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz",+ "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==",+ "dev": true,"license": "MIT","dependencies": {- "@babel/traverse": "^7.25.9",- "@babel/types": "^7.25.9"+ "@babel/traverse": "^7.27.1",+ "@babel/types": "^7.27.1"},"engines": {"node": ">=6.9.0"}},"node_modules/@babel/helper-module-transforms": {- "version": "7.26.0",- "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz",- "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==",+ "version": "7.28.3",+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz",+ "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==","dev": true,"license": "MIT","dependencies": {- "@babel/helper-module-imports": "^7.25.9",- "@babel/helper-validator-identifier": "^7.25.9",- "@babel/traverse": "^7.25.9"+ "@babel/helper-module-imports": "^7.27.1",+ "@babel/helper-validator-identifier": "^7.27.1",+ "@babel/traverse": "^7.28.3"},"engines": {"node": ">=6.9.0"@@ -358,143 +236,68 @@"@babel/core": "^7.0.0"}},- "node_modules/@babel/helper-optimise-call-expression": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.9.tgz",- "integrity": "sha512-FIpuNaz5ow8VyrYcnXQTDRGvV6tTjkNtCK/RYNDXGSLlUD6cBuQTSw43CShGxjvfBTfcUA/r6UhUCbtYqkhcuQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"- }- },"node_modules/@babel/helper-plugin-utils": {- "version": "7.26.5",- "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz",- "integrity": "sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-remap-async-to-generator": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.9.tgz",- "integrity": "sha512-IZtukuUeBbhgOcaW2s06OXTzVNJR0ybm4W5xC1opWFFJMZbwRj5LCk+ByYH7WdZPZTt8KnFwA8pvjN2yqcPlgw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-annotate-as-pure": "^7.25.9",- "@babel/helper-wrap-function": "^7.25.9",- "@babel/traverse": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/helper-replace-supers": {- "version": "7.26.5",- "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.26.5.tgz",- "integrity": "sha512-bJ6iIVdYX1YooY2X7w1q6VITt+LnUILtNk7zT78ykuwStx8BauCzxvFqFaHjOpW1bVnSUM1PN1f0p5P21wHxvg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-member-expression-to-functions": "^7.25.9",- "@babel/helper-optimise-call-expression": "^7.25.9",- "@babel/traverse": "^7.26.5"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/helper-skip-transparent-expression-wrappers": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.9.tgz",- "integrity": "sha512-K4Du3BFa3gvyhzgPcntrkDgZzQaq6uozzcpGbOO1OEJaI+EJdqWIMTLgFgQf6lrfiDFo5FU+BxKepI9RmZqahA==",+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz",+ "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==","dev": true,"license": "MIT",- "dependencies": {- "@babel/traverse": "^7.25.9",- "@babel/types": "^7.25.9"- },"engines": {"node": ">=6.9.0"}},"node_modules/@babel/helper-string-parser": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz",- "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==",+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",+ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",+ "dev": true,"license": "MIT","engines": {"node": ">=6.9.0"}},"node_modules/@babel/helper-validator-identifier": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz",- "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==",- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-validator-option": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz",- "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==",+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz",+ "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==","dev": true,"license": "MIT","engines": {"node": ">=6.9.0"}},- "node_modules/@babel/helper-wrap-function": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.25.9.tgz",- "integrity": "sha512-ETzz9UTjQSTmw39GboatdymDq4XIQbR8ySgVrylRhPOFpsd+JrKHIuF0de7GCWmem+T4uC5z7EZguod7Wj4A4g==",+ "node_modules/@babel/helper-validator-option": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",+ "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==","dev": true,"license": "MIT",- "dependencies": {- "@babel/template": "^7.25.9",- "@babel/traverse": "^7.25.9",- "@babel/types": "^7.25.9"- },"engines": {"node": ">=6.9.0"}},"node_modules/@babel/helpers": {- "version": "7.26.10",- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.10.tgz",- "integrity": "sha512-UPYc3SauzZ3JGgj87GgZ89JVdC5dj0AoetR5Bw6wj4niittNyFh6+eOGonYvJ1ao6B8lEa3Q3klS7ADZ53bc5g==",+ "version": "7.28.3",+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.3.tgz",+ "integrity": "sha512-PTNtvUQihsAsDHMOP5pfobP8C6CM4JWXmP8DrEIt46c3r2bf87Ua1zoqevsMo9g+tWDwgWrFP5EIxuBx5RudAw==","dev": true,"license": "MIT","dependencies": {- "@babel/template": "^7.26.9",- "@babel/types": "^7.26.10"+ "@babel/template": "^7.27.2",+ "@babel/types": "^7.28.2"},"engines": {"node": ">=6.9.0"}},"node_modules/@babel/parser": {- "version": "7.26.10",- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.10.tgz",- "integrity": "sha512-6aQR2zGE/QFi8JpDLjUZEPYOs7+mhKXm86VaKFiLP35JQwQb6bwUE+XbvkH0EptsYhbNBSUGaUBLKqxH1xSgsA==",+ "version": "7.28.3",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.3.tgz",+ "integrity": "sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA==",+ "dev": true,"license": "MIT","dependencies": {- "@babel/types": "^7.26.10"+ "@babel/types": "^7.28.2"},"bin": {"parser": "bin/babel-parser.js"@@ -503,10570 +306,3857 @@"node": ">=6.0.0"}},- "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.9.tgz",- "integrity": "sha512-ZkRyVkThtxQ/J6nv3JFYv1RYY+JT5BvU0y3k5bWrmuG4woXypRa4PXmm9RhOwodRkYFWqC0C0cqcJ4OqR7kW+g==",+ "node_modules/@babel/plugin-transform-react-jsx-self": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz",+ "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==","dev": true,"license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/traverse": "^7.25.9"+ "@babel/helper-plugin-utils": "^7.27.1"},"engines": {"node": ">=6.9.0"},"peerDependencies": {- "@babel/core": "^7.0.0"+ "@babel/core": "^7.0.0-0"}},- "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.9.tgz",- "integrity": "sha512-MrGRLZxLD/Zjj0gdU15dfs+HH/OXvnw/U4jJD8vpcP2CJQapPEv1IWwjc/qMg7ItBlPwSv1hRBbb7LeuANdcnw==",+ "node_modules/@babel/plugin-transform-react-jsx-source": {+ "version": "7.27.1",+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz",+ "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==","dev": true,"license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"+ "@babel/helper-plugin-utils": "^7.27.1"},"engines": {"node": ">=6.9.0"},"peerDependencies": {- "@babel/core": "^7.0.0"+ "@babel/core": "^7.0.0-0"}},- "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.9.tgz",- "integrity": "sha512-2qUwwfAFpJLZqxd02YW9btUCZHl+RFvdDkNfZwaIJrvB8Tesjsk8pEQkTvGwZXLqXUx/2oyY3ySRhm6HOXuCug==",- "dev": true,+ "node_modules/@babel/runtime": {+ "version": "7.28.3",+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.3.tgz",+ "integrity": "sha512-9uIQ10o0WGdpP6GDhXcdOJPJuDgFtIDtN/9+ArJQ2NAfAmiuhTQdzkaTGR33v43GYS2UrSA0eX2pPPHoFVvpxA==","license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },"engines": {"node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"}},- "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.25.9.tgz",- "integrity": "sha512-6xWgLZTJXwilVjlnV7ospI3xi+sl8lN8rXXbBD6vYn3UYDlGsag8wrZkKcSI8G6KgqKP7vNFaDgeDnfAABq61g==",+ "node_modules/@babel/template": {+ "version": "7.27.2",+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz",+ "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==","dev": true,"license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9",- "@babel/plugin-transform-optional-chaining": "^7.25.9"+ "@babel/code-frame": "^7.27.1",+ "@babel/parser": "^7.27.2",+ "@babel/types": "^7.27.1"},"engines": {"node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.13.0"}},- "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.9.tgz",- "integrity": "sha512-aLnMXYPnzwwqhYSCyXfKkIkYgJ8zv9RK+roo9DkTXz38ynIhd9XCbN08s3MGvqL2MYGVUGdRQLL/JqBIeJhJBg==",+ "node_modules/@babel/traverse": {+ "version": "7.28.3",+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.3.tgz",+ "integrity": "sha512-7w4kZYHneL3A6NP2nxzHvT3HCZ7puDZZjFMqDpBPECub79sTtSO5CGXDkKrTQq8ksAwfD/XI2MRFX23njdDaIQ==","dev": true,"license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/traverse": "^7.25.9"+ "@babel/code-frame": "^7.27.1",+ "@babel/generator": "^7.28.3",+ "@babel/helper-globals": "^7.28.0",+ "@babel/parser": "^7.28.3",+ "@babel/template": "^7.27.2",+ "@babel/types": "^7.28.2",+ "debug": "^4.3.1"},"engines": {"node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"}},- "node_modules/@babel/plugin-proposal-class-properties": {- "version": "7.18.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz",- "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==",- "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.",+ "node_modules/@babel/types": {+ "version": "7.28.2",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.2.tgz",+ "integrity": "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==","dev": true,"license": "MIT","dependencies": {- "@babel/helper-create-class-features-plugin": "^7.18.6",- "@babel/helper-plugin-utils": "^7.18.6"+ "@babel/helper-string-parser": "^7.27.1",+ "@babel/helper-validator-identifier": "^7.27.1"},"engines": {"node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"}},- "node_modules/@babel/plugin-proposal-decorators": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.25.9.tgz",- "integrity": "sha512-smkNLL/O1ezy9Nhy4CNosc4Va+1wo5w4gzSZeLe6y6dM4mmHfYOCPolXQPHQxonZCF+ZyebxN9vqOolkYrSn5g==",- "dev": true,+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.9.tgz",+ "integrity": "sha512-OaGtL73Jck6pBKjNIe24BnFE6agGl+6KxDtTfHhy1HmhthfKouEcOhqpSL64K4/0WCtbKFLOdzD/44cJ4k9opA==",+ "cpu": [+ "ppc64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-create-class-features-plugin": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/plugin-syntax-decorators": "^7.25.9"- },+ "optional": true,+ "os": [+ "aix"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": {- "version": "7.18.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz",- "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==",- "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.",- "dev": true,+ "node_modules/@esbuild/android-arm": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.9.tgz",+ "integrity": "sha512-5WNI1DaMtxQ7t7B6xa572XMXpHAaI/9Hnhk8lcxF4zVN4xstUgTlvuGDorBguKEnZO70qwEcLpfifMLoxiPqHQ==",+ "cpu": [+ "arm"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.18.6",- "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3"- },+ "optional": true,+ "os": [+ "android"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-proposal-numeric-separator": {- "version": "7.18.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz",- "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==",- "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.",- "dev": true,+ "node_modules/@esbuild/android-arm64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.9.tgz",+ "integrity": "sha512-IDrddSmpSv51ftWslJMvl3Q2ZT98fUSL2/rlUXuVqRXHCs5EUF1/f+jbjF5+NG9UffUDMCiTyh8iec7u8RlTLg==",+ "cpu": [+ "arm64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.18.6",- "@babel/plugin-syntax-numeric-separator": "^7.10.4"- },+ "optional": true,+ "os": [+ "android"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-proposal-optional-chaining": {- "version": "7.21.0",- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz",- "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==",- "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.",- "dev": true,+ "node_modules/@esbuild/android-x64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.9.tgz",+ "integrity": "sha512-I853iMZ1hWZdNllhVZKm34f4wErd4lMyeV7BLzEExGEIZYsOzqDWDf+y082izYUE8gtJnYHdeDpN/6tUdwvfiw==",+ "cpu": [+ "x64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.20.2",- "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0",- "@babel/plugin-syntax-optional-chaining": "^7.8.3"- },+ "optional": true,+ "os": [+ "android"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-proposal-private-methods": {- "version": "7.18.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz",- "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==",- "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.",- "dev": true,+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.9.tgz",+ "integrity": "sha512-XIpIDMAjOELi/9PB30vEbVMs3GV1v2zkkPnuyRRURbhqjyzIINwj+nbQATh4H9GxUgH1kFsEyQMxwiLFKUS6Rg==",+ "cpu": [+ "arm64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-create-class-features-plugin": "^7.18.6",- "@babel/helper-plugin-utils": "^7.18.6"- },+ "optional": true,+ "os": [+ "darwin"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-proposal-private-property-in-object": {- "version": "7.21.11",- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.11.tgz",- "integrity": "sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==",- "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.",- "dev": true,+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.9.tgz",+ "integrity": "sha512-jhHfBzjYTA1IQu8VyrjCX4ApJDnH+ez+IYVEoJHeqJm9VhG9Dh2BYaJritkYK3vMaXrf7Ogr/0MQ8/MeIefsPQ==",+ "cpu": [+ "x64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-annotate-as-pure": "^7.18.6",- "@babel/helper-create-class-features-plugin": "^7.21.0",- "@babel/helper-plugin-utils": "^7.20.2",- "@babel/plugin-syntax-private-property-in-object": "^7.14.5"- },+ "optional": true,+ "os": [+ "darwin"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-syntax-decorators": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.25.9.tgz",- "integrity": "sha512-ryzI0McXUPJnRCvMo4lumIKZUzhYUO/ScI+Mz4YVaTLt04DHNSjEUjKVvbzQjZFLuod/cYEc07mJWhzl6v4DPg==",- "dev": true,+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.9.tgz",+ "integrity": "sha512-z93DmbnY6fX9+KdD4Ue/H6sYs+bhFQJNCPZsi4XWJoYblUqT06MQUdBCpcSfuiN72AbqeBFu5LVQTjfXDE2A6Q==",+ "cpu": [+ "arm64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },+ "optional": true,+ "os": [+ "freebsd"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-syntax-flow": {- "version": "7.26.0",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.26.0.tgz",- "integrity": "sha512-B+O2DnPc0iG+YXFqOxv2WNuNU97ToWjOomUQ78DouOENWUaM5sVrmet9mcomUGQFwpJd//gvUagXBSdzO1fRKg==",- "dev": true,+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.9.tgz",+ "integrity": "sha512-mrKX6H/vOyo5v71YfXWJxLVxgy1kyt1MQaD8wZJgJfG4gq4DpQGpgTB74e5yBeQdyMTbgxp0YtNj7NuHN0PoZg==",+ "cpu": [+ "x64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },+ "optional": true,+ "os": [+ "freebsd"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-syntax-import-assertions": {- "version": "7.26.0",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.26.0.tgz",- "integrity": "sha512-QCWT5Hh830hK5EQa7XzuqIkQU9tT/whqbDz7kuaZMHFl1inRRg7JnuAEOQ0Ur0QUl0NufCk1msK2BeY79Aj/eg==",- "dev": true,+ "node_modules/@esbuild/linux-arm": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.9.tgz",+ "integrity": "sha512-HBU2Xv78SMgaydBmdor38lg8YDnFKSARg1Q6AT0/y2ezUAKiZvc211RDFHlEZRFNRVhcMamiToo7bDx3VEOYQw==",+ "cpu": [+ "arm"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-syntax-import-attributes": {- "version": "7.26.0",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.26.0.tgz",- "integrity": "sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==",- "dev": true,+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.9.tgz",+ "integrity": "sha512-BlB7bIcLT3G26urh5Dmse7fiLmLXnRlopw4s8DalgZ8ef79Jj4aUcYbk90g8iCa2467HX8SAIidbL7gsqXHdRw==",+ "cpu": [+ "arm64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-syntax-jsx": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.9.tgz",- "integrity": "sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==",- "dev": true,+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.9.tgz",+ "integrity": "sha512-e7S3MOJPZGp2QW6AK6+Ly81rC7oOSerQ+P8L0ta4FhVi+/j/v2yZzx5CqqDaWjtPFfYz21Vi1S0auHrap3Ma3A==",+ "cpu": [+ "ia32"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": {- "version": "7.8.3",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz",- "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==",- "dev": true,+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.9.tgz",+ "integrity": "sha512-Sbe10Bnn0oUAB2AalYztvGcK+o6YFFA/9829PhOCUS9vkJElXGdphz0A3DbMdP8gmKkqPmPcMJmJOrI3VYB1JQ==",+ "cpu": [+ "loong64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.8.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/@babel/plugin-syntax-numeric-separator": {- "version": "7.10.4",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz",- "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==",- "dev": true,+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.9.tgz",+ "integrity": "sha512-YcM5br0mVyZw2jcQeLIkhWtKPeVfAerES5PvOzaDxVtIyZ2NUBZKNLjC5z3/fUlDgT6w89VsxP2qzNipOaaDyA==",+ "cpu": [+ "mips64el"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.10.4"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/@babel/plugin-syntax-optional-chaining": {- "version": "7.8.3",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz",- "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==",- "dev": true,+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.9.tgz",+ "integrity": "sha512-++0HQvasdo20JytyDpFvQtNrEsAgNG2CY1CLMwGXfFTKGBGQT3bOeLSYE2l1fYdvML5KUuwn9Z8L1EWe2tzs1w==",+ "cpu": [+ "ppc64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.8.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/@babel/plugin-syntax-private-property-in-object": {- "version": "7.14.5",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz",- "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==",- "dev": true,+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.9.tgz",+ "integrity": "sha512-uNIBa279Y3fkjV+2cUjx36xkx7eSjb8IvnL01eXUKXez/CBHNRw5ekCGMPM0BcmqBxBcdgUWuUXmVWwm4CH9kg==",+ "cpu": [+ "riscv64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.14.5"- },+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-syntax-typescript": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.9.tgz",- "integrity": "sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ==",- "dev": true,+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.9.tgz",+ "integrity": "sha512-Mfiphvp3MjC/lctb+7D287Xw1DGzqJPb/J2aHHcHxflUo+8tmN/6d4k6I2yFR7BVo5/g7x2Monq4+Yew0EHRIA==",+ "cpu": [+ "s390x"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-syntax-unicode-sets-regex": {- "version": "7.18.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz",- "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==",- "dev": true,+ "node_modules/@esbuild/linux-x64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.9.tgz",+ "integrity": "sha512-iSwByxzRe48YVkmpbgoxVzn76BXjlYFXC7NvLYq+b+kDjyyk30J0JY47DIn8z1MO3K0oSl9fZoRmZPQI4Hklzg==",+ "cpu": [+ "x64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.18.6",- "@babel/helper-plugin-utils": "^7.18.6"- },+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"+ "node": ">=18"}},- "node_modules/@babel/plugin-transform-arrow-functions": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.25.9.tgz",- "integrity": "sha512-6jmooXYIwn9ca5/RylZADJ+EnSxVUS5sjeJ9UPk6RWRzXCmOJCy6dqItPJFpw2cuCangPK4OYr5uhGKcmrm5Qg==",- "dev": true,+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.9.tgz",+ "integrity": "sha512-9jNJl6FqaUG+COdQMjSCGW4QiMHH88xWbvZ+kRVblZsWrkXlABuGdFJ1E9L7HK+T0Yqd4akKNa/lO0+jDxQD4Q==",+ "cpu": [+ "arm64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },+ "optional": true,+ "os": [+ "netbsd"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-transform-async-generator-functions": {- "version": "7.26.8",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.26.8.tgz",- "integrity": "sha512-He9Ej2X7tNf2zdKMAGOsmg2MrFc+hfoAhd3po4cWfo/NWjzEAKa0oQruj1ROVUdl0e6fb6/kE/G3SSxE0lRJOg==",- "dev": true,+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.9.tgz",+ "integrity": "sha512-RLLdkflmqRG8KanPGOU7Rpg829ZHu8nFy5Pqdi9U01VYtG9Y0zOG6Vr2z4/S+/3zIyOxiK6cCeYNWOFR9QP87g==",+ "cpu": [+ "x64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.26.5",- "@babel/helper-remap-async-to-generator": "^7.25.9",- "@babel/traverse": "^7.26.8"- },+ "optional": true,+ "os": [+ "netbsd"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-transform-async-to-generator": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.25.9.tgz",- "integrity": "sha512-NT7Ejn7Z/LjUH0Gv5KsBCxh7BH3fbLTV0ptHvpeMvrt3cPThHfJfst9Wrb7S8EvJ7vRTFI7z+VAvFVEQn/m5zQ==",- "dev": true,+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.9.tgz",+ "integrity": "sha512-YaFBlPGeDasft5IIM+CQAhJAqS3St3nJzDEgsgFixcfZeyGPCd6eJBWzke5piZuZ7CtL656eOSYKk4Ls2C0FRQ==",+ "cpu": [+ "arm64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-module-imports": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/helper-remap-async-to-generator": "^7.25.9"- },+ "optional": true,+ "os": [+ "openbsd"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-transform-block-scoped-functions": {- "version": "7.26.5",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.26.5.tgz",- "integrity": "sha512-chuTSY+hq09+/f5lMj8ZSYgCFpppV2CbYrhNFJ1BFoXpiWPnnAb7R0MqrafCpN8E1+YRrtM1MXZHJdIx8B6rMQ==",- "dev": true,+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.9.tgz",+ "integrity": "sha512-1MkgTCuvMGWuqVtAvkpkXFmtL8XhWy+j4jaSO2wxfJtilVCi0ZE37b8uOdMItIHz4I6z1bWWtEX4CJwcKYLcuA==",+ "cpu": [+ "x64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.26.5"- },+ "optional": true,+ "os": [+ "openbsd"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-transform-block-scoping": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.9.tgz",- "integrity": "sha512-1F05O7AYjymAtqbsFETboN1NvBdcnzMerO+zlMyJBEz6WkMdejvGWw9p05iTSjC85RLlBseHHQpYaM4gzJkBGg==",- "dev": true,+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.9.tgz",+ "integrity": "sha512-4Xd0xNiMVXKh6Fa7HEJQbrpP3m3DDn43jKxMjxLLRjWnRsfxjORYJlXPO4JNcXtOyfajXorRKY9NkOpTHptErg==",+ "cpu": [+ "arm64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },+ "optional": true,+ "os": [+ "openharmony"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-transform-class-properties": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.9.tgz",- "integrity": "sha512-bbMAII8GRSkcd0h0b4X+36GksxuheLFjP65ul9w6C3KgAamI3JqErNgSrosX6ZPj+Mpim5VvEbawXxJCyEUV3Q==",- "dev": true,+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.9.tgz",+ "integrity": "sha512-WjH4s6hzo00nNezhp3wFIAfmGZ8U7KtrJNlFMRKxiI9mxEK1scOMAaa9i4crUtu+tBr+0IN6JCuAcSBJZfnphw==",+ "cpu": [+ "x64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-create-class-features-plugin": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9"- },+ "optional": true,+ "os": [+ "sunos"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-transform-class-static-block": {- "version": "7.26.0",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.26.0.tgz",- "integrity": "sha512-6J2APTs7BDDm+UMqP1useWqhcRAXo0WIoVj26N7kPFB6S73Lgvyka4KTZYIxtgYXiN5HTyRObA72N2iu628iTQ==",- "dev": true,+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.9.tgz",+ "integrity": "sha512-mGFrVJHmZiRqmP8xFOc6b84/7xa5y5YvR1x8djzXpJBSv/UsNK6aqec+6JDjConTgvvQefdGhFDAs2DLAds6gQ==",+ "cpu": [+ "arm64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-create-class-features-plugin": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9"- },+ "optional": true,+ "os": [+ "win32"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.12.0"+ "node": ">=18"}},- "node_modules/@babel/plugin-transform-classes": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.9.tgz",- "integrity": "sha512-mD8APIXmseE7oZvZgGABDyM34GUmK45Um2TXiBUt7PnuAxrgoSVf123qUzPxEr/+/BHrRn5NMZCdE2m/1F8DGg==",- "dev": true,+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.9.tgz",+ "integrity": "sha512-b33gLVU2k11nVx1OhX3C8QQP6UHQK4ZtN56oFWvVXvz2VkDoe6fbG8TOgHFxEvqeqohmRnIHe5A1+HADk4OQww==",+ "cpu": [+ "ia32"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-annotate-as-pure": "^7.25.9",- "@babel/helper-compilation-targets": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/helper-replace-supers": "^7.25.9",- "@babel/traverse": "^7.25.9",- "globals": "^11.1.0"- },+ "optional": true,+ "os": [+ "win32"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-transform-computed-properties": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.25.9.tgz",- "integrity": "sha512-HnBegGqXZR12xbcTHlJ9HGxw1OniltT26J5YpfruGqtUHlz/xKf/G2ak9e+t0rVqrjXa9WOhvYPz1ERfMj23AA==",- "dev": true,+ "node_modules/@esbuild/win32-x64": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.9.tgz",+ "integrity": "sha512-PPOl1mi6lpLNQxnGoyAfschAodRFYXJ+9fs6WHXz7CSWKbOqiMZsubC+BQsVKuul+3vKLuwTHsS2c2y9EoKwxQ==",+ "cpu": [+ "x64"+ ],"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/template": "^7.25.9"- },+ "optional": true,+ "os": [+ "win32"+ ],"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18"}},- "node_modules/@babel/plugin-transform-destructuring": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.25.9.tgz",- "integrity": "sha512-WkCGb/3ZxXepmMiX101nnGiU+1CAdut8oHyEOHxkKuS1qKpU2SMXE2uSvfz8PBuLd49V6LEsbtyPhWC7fnkgvQ==",+ "node_modules/@eslint-community/eslint-utils": {+ "version": "4.7.0",+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz",+ "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==","dev": true,"license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"+ "eslint-visitor-keys": "^3.4.3"},"engines": {- "node": ">=6.9.0"+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"}},- "node_modules/@babel/plugin-transform-dotall-regex": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.25.9.tgz",- "integrity": "sha512-t7ZQ7g5trIgSRYhI9pIJtRl64KHotutUJsh4Eze5l7olJv+mRSg4/MmbZ0tv1eeqRbdvo/+trvJD/Oc5DmW2cA==",+ "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {+ "version": "3.4.3",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",+ "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==","dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9"- },+ "license": "Apache-2.0","engines": {- "node": ">=6.9.0"+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"},- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "funding": {+ "url": "https://opencollective.com/eslint"}},- "node_modules/@babel/plugin-transform-duplicate-keys": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.25.9.tgz",- "integrity": "sha512-LZxhJ6dvBb/f3x8xwWIuyiAHy56nrRG3PeYTpBkkzkYRRQ6tJLu68lEF5VIqMUZiAV7a8+Tb78nEoMCMcqjXBw==",+ "node_modules/@eslint-community/regexpp": {+ "version": "4.12.1",+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz",+ "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==","dev": true,"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"}},- "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.9.tgz",- "integrity": "sha512-0UfuJS0EsXbRvKnwcLjFtJy/Sxc5J5jhLHnFhy7u4zih97Hz6tJkLU+O+FMMrNZrosUPxDi6sYxJ/EA8jDiAog==",+ "node_modules/@eslint/config-array": {+ "version": "0.21.0",+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.0.tgz",+ "integrity": "sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==","dev": true,- "license": "MIT",+ "license": "Apache-2.0","dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9"+ "@eslint/object-schema": "^2.1.6",+ "debug": "^4.3.1",+ "minimatch": "^3.1.2"},"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"}},- "node_modules/@babel/plugin-transform-dynamic-import": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.25.9.tgz",- "integrity": "sha512-GCggjexbmSLaFhqsojeugBpeaRIgWNTcgKVq/0qIteFEqY2A+b9QidYadrWlnbWQUrW5fn+mCvf3tr7OeBFTyg==",+ "node_modules/@eslint/config-helpers": {+ "version": "0.3.1",+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.3.1.tgz",+ "integrity": "sha512-xR93k9WhrDYpXHORXpxVL5oHj3Era7wo6k/Wd8/IsQNnZUTzkGS29lyn3nAT05v6ltUuTFVCCYDEGfy2Or/sPA==","dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },+ "license": "Apache-2.0","engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"}},- "node_modules/@babel/plugin-transform-exponentiation-operator": {- "version": "7.26.3",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.26.3.tgz",- "integrity": "sha512-7CAHcQ58z2chuXPWblnn1K6rLDnDWieghSOEmqQsrBenH0P9InCUtOJYD89pvngljmZlJcz3fcmgYsXFNGa1ZQ==",+ "node_modules/@eslint/core": {+ "version": "0.15.2",+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.15.2.tgz",+ "integrity": "sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg==","dev": true,- "license": "MIT",+ "license": "Apache-2.0","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"+ "@types/json-schema": "^7.0.15"},"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"}},- "node_modules/@babel/plugin-transform-export-namespace-from": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.25.9.tgz",- "integrity": "sha512-2NsEz+CxzJIVOPx2o9UsW1rXLqtChtLoVnwYHHiB04wS5sgn7mrV45fWMBX0Kk+ub9uXytVYfNP2HjbVbCB3Ww==",+ "node_modules/@eslint/eslintrc": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz",+ "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==","dev": true,"license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"+ "ajv": "^6.12.4",+ "debug": "^4.3.2",+ "espree": "^10.0.1",+ "globals": "^14.0.0",+ "ignore": "^5.2.0",+ "import-fresh": "^3.2.1",+ "js-yaml": "^4.1.0",+ "minimatch": "^3.1.2",+ "strip-json-comments": "^3.1.1"},"engines": {- "node": ">=6.9.0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "funding": {+ "url": "https://opencollective.com/eslint"}},- "node_modules/@babel/plugin-transform-flow-strip-types": {- "version": "7.26.5",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.26.5.tgz",- "integrity": "sha512-eGK26RsbIkYUns3Y8qKl362juDDYK+wEdPGHGrhzUl6CewZFo55VZ7hg+CyMFU4dd5QQakBN86nBMpRsFpRvbQ==",+ "node_modules/@eslint/eslintrc/node_modules/globals": {+ "version": "14.0.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",+ "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==","dev": true,"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.26.5",- "@babel/plugin-syntax-flow": "^7.26.0"- },"engines": {- "node": ">=6.9.0"+ "node": ">=18"},- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/@babel/plugin-transform-for-of": {- "version": "7.26.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.26.9.tgz",- "integrity": "sha512-Hry8AusVm8LW5BVFgiyUReuoGzPUpdHQQqJY5bZnbbf+ngOHWuCuYFKw/BqaaWlvEUrF91HMhDtEaI1hZzNbLg==",+ "node_modules/@eslint/js": {+ "version": "9.34.0",+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.34.0.tgz",+ "integrity": "sha512-EoyvqQnBNsV1CWaEJ559rxXL4c8V92gxirbawSmVUOWXlsRxxQXl6LmCpdUblgxgSkDIqKnhzba2SjRTI/A5Rw==","dev": true,"license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.26.5",- "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9"- },"engines": {- "node": ">=6.9.0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "funding": {+ "url": "https://eslint.org/donate"}},- "node_modules/@babel/plugin-transform-function-name": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.9.tgz",- "integrity": "sha512-8lP+Yxjv14Vc5MuWBpJsoUCd3hD6V9DgBon2FVYL4jJgbnVQ9fTgYmonchzZJOVNgzEgbxp4OwAf6xz6M/14XA==",+ "node_modules/@eslint/object-schema": {+ "version": "2.1.6",+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz",+ "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==","dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-compilation-targets": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/traverse": "^7.25.9"- },+ "license": "Apache-2.0","engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"}},- "node_modules/@babel/plugin-transform-json-strings": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.25.9.tgz",- "integrity": "sha512-xoTMk0WXceiiIvsaquQQUaLLXSW1KJ159KP87VilruQm0LNNGxWzahxSS6T6i4Zg3ezp4vA4zuwiNUR53qmQAw==",+ "node_modules/@eslint/plugin-kit": {+ "version": "0.3.5",+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.5.tgz",+ "integrity": "sha512-Z5kJ+wU3oA7MMIqVR9tyZRtjYPr4OC004Q4Rw7pgOKUOKkJfZ3O24nz3WYfGRpMDNmcOi3TwQOmgm7B7Tpii0w==","dev": true,- "license": "MIT",+ "license": "Apache-2.0","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"+ "@eslint/core": "^0.15.2",+ "levn": "^0.4.1"},"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"}},- "node_modules/@babel/plugin-transform-literals": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.9.tgz",- "integrity": "sha512-9N7+2lFziW8W9pBl2TzaNht3+pgMIRP74zizeCSrtnSKVdUl8mAjjOP2OOVQAfZ881P2cNjDj1uAMEdeD50nuQ==",- "dev": true,+ "node_modules/@floating-ui/core": {+ "version": "1.7.3",+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.7.3.tgz",+ "integrity": "sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@floating-ui/utils": "^0.2.10"}},- "node_modules/@babel/plugin-transform-logical-assignment-operators": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.25.9.tgz",- "integrity": "sha512-wI4wRAzGko551Y8eVf6iOY9EouIDTtPb0ByZx+ktDGHwv6bHFimrgJM/2T021txPZ2s4c7bqvHbd+vXG6K948Q==",- "dev": true,+ "node_modules/@floating-ui/dom": {+ "version": "1.7.4",+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.4.tgz",+ "integrity": "sha512-OOchDgh4F2CchOX94cRVqhvy7b3AFb+/rQXyswmzmGakRfkMgoWVjfnLWkRirfLEfuD4ysVW16eXzwt3jHIzKA==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@floating-ui/core": "^1.7.3",+ "@floating-ui/utils": "^0.2.10"}},- "node_modules/@babel/plugin-transform-member-expression-literals": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.25.9.tgz",- "integrity": "sha512-PYazBVfofCQkkMzh2P6IdIUaCEWni3iYEerAsRWuVd8+jlM1S9S9cz1dF9hIzyoZ8IA3+OwVYIp9v9e+GbgZhA==",- "dev": true,+ "node_modules/@floating-ui/react-dom": {+ "version": "2.1.6",+ "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.6.tgz",+ "integrity": "sha512-4JX6rEatQEvlmgU80wZyq9RT96HZJa88q8hp0pBd+LrczeDI4o6uA2M+uvxngVHo4Ihr8uibXxH6+70zhAFrVw==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@floating-ui/dom": "^1.7.4"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"}},- "node_modules/@babel/plugin-transform-modules-amd": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.25.9.tgz",- "integrity": "sha512-g5T11tnI36jVClQlMlt4qKDLlWnG5pP9CSM4GhdRciTNMRgkfpo5cR6b4rGIOYPgRRuFAvwjPQ/Yk+ql4dyhbw==",- "dev": true,- "license": "MIT",+ "node_modules/@floating-ui/utils": {+ "version": "0.2.10",+ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.10.tgz",+ "integrity": "sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==",+ "license": "MIT"+ },+ "node_modules/@hello-pangea/dnd": {+ "version": "18.0.1",+ "resolved": "https://registry.npmjs.org/@hello-pangea/dnd/-/dnd-18.0.1.tgz",+ "integrity": "sha512-xojVWG8s/TGrKT1fC8K2tIWeejJYTAeJuj36zM//yEm/ZrnZUSFGS15BpO+jGZT1ybWvyXmeDJwPYb4dhWlbZQ==",+ "license": "Apache-2.0","dependencies": {- "@babel/helper-module-transforms": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@babel/runtime": "^7.26.7",+ "css-box-model": "^1.2.1",+ "raf-schd": "^4.0.3",+ "react-redux": "^9.2.0",+ "redux": "^5.0.1"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "react": "^18.0.0 || ^19.0.0",+ "react-dom": "^18.0.0 || ^19.0.0"}},- "node_modules/@babel/plugin-transform-modules-commonjs": {- "version": "7.26.3",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.26.3.tgz",- "integrity": "sha512-MgR55l4q9KddUDITEzEFYn5ZsGDXMSsU9E+kh7fjRXTIC3RHqfCo8RPRbyReYJh44HQ/yomFkqbOFohXvDCiIQ==",- "dev": true,+ "node_modules/@hookform/resolvers": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-5.2.1.tgz",+ "integrity": "sha512-u0+6X58gkjMcxur1wRWokA7XsiiBJ6aK17aPZxhkoYiK5J+HcTx0Vhu9ovXe6H+dVpO6cjrn2FkJTryXEMlryQ==","license": "MIT","dependencies": {- "@babel/helper-module-transforms": "^7.26.0",- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@standard-schema/utils": "^0.3.0"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "react-hook-form": "^7.55.0"}},- "node_modules/@babel/plugin-transform-modules-systemjs": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.9.tgz",- "integrity": "sha512-hyss7iIlH/zLHaehT+xwiymtPOpsiwIIRlCAOwBB04ta5Tt+lNItADdlXw3jAWZ96VJ2jlhl/c+PNIQPKNfvcA==",+ "node_modules/@humanfs/core": {+ "version": "0.19.1",+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",+ "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==","dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-module-transforms": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/helper-validator-identifier": "^7.25.9",- "@babel/traverse": "^7.25.9"- },+ "license": "Apache-2.0","engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18.18.0"}},- "node_modules/@babel/plugin-transform-modules-umd": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.25.9.tgz",- "integrity": "sha512-bS9MVObUgE7ww36HEfwe6g9WakQ0KF07mQF74uuXdkoziUPfKyu/nIm663kz//e5O1nPInPFx36z7WJmJ4yNEw==",+ "node_modules/@humanfs/node": {+ "version": "0.16.6",+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz",+ "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==","dev": true,- "license": "MIT",+ "license": "Apache-2.0","dependencies": {- "@babel/helper-module-transforms": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9"+ "@humanfs/core": "^0.19.1",+ "@humanwhocodes/retry": "^0.3.0"},"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18.18.0"}},- "node_modules/@babel/plugin-transform-named-capturing-groups-regex": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.25.9.tgz",- "integrity": "sha512-oqB6WHdKTGl3q/ItQhpLSnWWOpjUJLsOCLVyeFgeTktkBSCiurvPOsyt93gibI9CmuKvTUEtWmG5VhZD+5T/KA==",+ "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": {+ "version": "0.3.1",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz",+ "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==","dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9"- },+ "license": "Apache-2.0","engines": {- "node": ">=6.9.0"+ "node": ">=18.18"},- "peerDependencies": {- "@babel/core": "^7.0.0"+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"}},- "node_modules/@babel/plugin-transform-new-target": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.25.9.tgz",- "integrity": "sha512-U/3p8X1yCSoKyUj2eOBIx3FOn6pElFOKvAAGf8HTtItuPyB+ZeOqfn+mvTtg9ZlOAjsPdK3ayQEjqHjU/yLeVQ==",+ "node_modules/@humanwhocodes/module-importer": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",+ "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==","dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },+ "license": "Apache-2.0","engines": {- "node": ">=6.9.0"+ "node": ">=12.22"},- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"}},- "node_modules/@babel/plugin-transform-nullish-coalescing-operator": {- "version": "7.26.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.26.6.tgz",- "integrity": "sha512-CKW8Vu+uUZneQCPtXmSBUC6NCAUdya26hWCElAWh5mVSlSRsmiCPUUDKb3Z0szng1hiAJa098Hkhg9o4SE35Qw==",+ "node_modules/@humanwhocodes/retry": {+ "version": "0.4.3",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==","dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.26.5"- },+ "license": "Apache-2.0","engines": {- "node": ">=6.9.0"+ "node": ">=18.18"},- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"}},- "node_modules/@babel/plugin-transform-numeric-separator": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.25.9.tgz",- "integrity": "sha512-TlprrJ1GBZ3r6s96Yq8gEQv82s8/5HnCVHtEJScUj90thHQbwe+E5MLhi2bbNHBEJuzrvltXSru+BUxHDoog7Q==",- "dev": true,- "license": "MIT",+ "node_modules/@isaacs/fs-minipass": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz",+ "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==",+ "license": "ISC","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"+ "minipass": "^7.0.4"},"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=18.0.0"}},- "node_modules/@babel/plugin-transform-object-rest-spread": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.25.9.tgz",- "integrity": "sha512-fSaXafEE9CVHPweLYw4J0emp1t8zYTXyzN3UuG+lylqkvYd7RMrsOQ8TYx5RF231be0vqtFC6jnx3UmpJmKBYg==",- "dev": true,+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==","license": "MIT","dependencies": {- "@babel/helper-compilation-targets": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/plugin-transform-parameters": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"}},- "node_modules/@babel/plugin-transform-object-super": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.25.9.tgz",- "integrity": "sha512-Kj/Gh+Rw2RNLbCK1VAWj2U48yxxqL2x0k10nPtSdRa0O2xnHXalD0s+o1A6a0W43gJ00ANo38jxkQreckOzv5A==",- "dev": true,+ "node_modules/@jridgewell/remapping": {+ "version": "2.3.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/helper-replace-supers": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"}},- "node_modules/@babel/plugin-transform-optional-catch-binding": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.25.9.tgz",- "integrity": "sha512-qM/6m6hQZzDcZF3onzIhZeDHDO43bkNNlOX0i8n3lR6zLbu0GN2d8qfM/IERJZYauhAHSLHy39NF0Ctdvcid7g==",- "dev": true,+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==","license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">=6.0.0"}},- "node_modules/@babel/plugin-transform-optional-chaining": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.25.9.tgz",- "integrity": "sha512-6AvV0FsLULbpnXeBjrY4dmWF8F7gf8QnvTEoO/wX/5xm/xE1Xo8oPuD3MPS+KS9f9XBEAWN7X1aWr4z9HdOr7A==",- "dev": true,+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.30",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz",+ "integrity": "sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"}},- "node_modules/@babel/plugin-transform-parameters": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.25.9.tgz",- "integrity": "sha512-wzz6MKwpnshBAiRmn4jR8LYz/g8Ksg0o80XmwZDlordjwEk9SxBzTWC7F5ef1jhbrbOW2DJ5J6ayRukrJmnr0g==",- "dev": true,+ "node_modules/@nivo/annotations": {+ "version": "0.99.0",+ "resolved": "https://registry.npmjs.org/@nivo/annotations/-/annotations-0.99.0.tgz",+ "integrity": "sha512-jCuuXPbvpaqaz4xF7k5dv0OT2ubn5Nt0gWryuTe/8oVsC/9bzSuK8bM9vBty60m9tfO+X8vUYliuaCDwGksC2g==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@nivo/colors": "0.99.0",+ "@nivo/core": "0.99.0",+ "@nivo/theming": "0.99.0",+ "@react-spring/web": "9.4.5 || ^9.7.2 || ^10.0",+ "lodash": "^4.17.21"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "react": "^16.14 || ^17.0 || ^18.0 || ^19.0"}},- "node_modules/@babel/plugin-transform-private-methods": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.9.tgz",- "integrity": "sha512-D/JUozNpQLAPUVusvqMxyvjzllRaF8/nSrP1s2YGQT/W4LHK4xxsMcHjhOGTS01mp9Hda8nswb+FblLdJornQw==",- "dev": true,+ "node_modules/@nivo/axes": {+ "version": "0.99.0",+ "resolved": "https://registry.npmjs.org/@nivo/axes/-/axes-0.99.0.tgz",+ "integrity": "sha512-3KschnmEL0acRoa7INSSOSEFwJLm54aZwSev7/r8XxXlkgRBriu6ReZy/FG0wfN+ljZ4GMvx+XyIIf6kxzvrZg==","license": "MIT","dependencies": {- "@babel/helper-create-class-features-plugin": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@nivo/core": "0.99.0",+ "@nivo/scales": "0.99.0",+ "@nivo/text": "0.99.0",+ "@nivo/theming": "0.99.0",+ "@react-spring/web": "9.4.5 || ^9.7.2 || ^10.0",+ "@types/d3-format": "^1.4.1",+ "@types/d3-time-format": "^2.3.1",+ "d3-format": "^1.4.4",+ "d3-time-format": "^3.0.0"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "react": "^16.14 || ^17.0 || ^18.0 || ^19.0"}},- "node_modules/@babel/plugin-transform-private-property-in-object": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.25.9.tgz",- "integrity": "sha512-Evf3kcMqzXA3xfYJmZ9Pg1OvKdtqsDMSWBDzZOPLvHiTt36E75jLDQo5w1gtRU95Q4E5PDttrTf25Fw8d/uWLw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-annotate-as-pure": "^7.25.9",- "@babel/helper-create-class-features-plugin": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "node_modules/@nivo/bar": {+ "version": "0.99.0",+ "resolved": "https://registry.npmjs.org/@nivo/bar/-/bar-0.99.0.tgz",+ "integrity": "sha512-9yfMn7H6UF/TqtCwVZ/vihVAXUff9wWvSaeF2Z1DCfgr5S07qs31Qb2p0LZA+YgCWpaU7zqkeb3VZ4WCpZbrDA==",+ "license": "MIT",+ "dependencies": {+ "@nivo/annotations": "0.99.0",+ "@nivo/axes": "0.99.0",+ "@nivo/canvas": "0.99.0",+ "@nivo/colors": "0.99.0",+ "@nivo/core": "0.99.0",+ "@nivo/legends": "0.99.0",+ "@nivo/scales": "0.99.0",+ "@nivo/text": "0.99.0",+ "@nivo/theming": "0.99.0",+ "@nivo/tooltip": "0.99.0",+ "@react-spring/web": "9.4.5 || ^9.7.2 || ^10.0",+ "@types/d3-scale": "^4.0.8",+ "@types/d3-shape": "^3.1.6",+ "d3-scale": "^4.0.2",+ "d3-shape": "^3.2.0",+ "lodash": "^4.17.21"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "react": "^16.14 || ^17.0 || ^18.0 || ^19.0"}},- "node_modules/@babel/plugin-transform-property-literals": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.25.9.tgz",- "integrity": "sha512-IvIUeV5KrS/VPavfSM/Iu+RE6llrHrYIKY1yfCzyO/lMXHQ+p7uGhonmGVisv6tSBSVgWzMBohTcvkC9vQcQFA==",- "dev": true,+ "node_modules/@nivo/canvas": {+ "version": "0.99.0",+ "resolved": "https://registry.npmjs.org/@nivo/canvas/-/canvas-0.99.0.tgz",+ "integrity": "sha512-UxA8zb+NPwqmNm81hoyUZSMAikgjU1ukLf4KybVNyV8ejcJM+BUFXsb8DxTcLdt4nmCFHqM56GaJQv2hnAHmzg==",+ "license": "MIT"+ },+ "node_modules/@nivo/colors": {+ "version": "0.99.0",+ "resolved": "https://registry.npmjs.org/@nivo/colors/-/colors-0.99.0.tgz",+ "integrity": "sha512-hyYt4lEFIfXOUmQ6k3HXm3KwhcgoJpocmoGzLUqzk7DzuhQYJo+4d5jIGGU0N/a70+9XbHIdpKNSblHAIASD3w==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@nivo/core": "0.99.0",+ "@nivo/theming": "0.99.0",+ "@types/d3-color": "^3.0.0",+ "@types/d3-scale": "^4.0.8",+ "@types/d3-scale-chromatic": "^3.0.0",+ "d3-color": "^3.1.0",+ "d3-scale": "^4.0.2",+ "d3-scale-chromatic": "^3.0.0",+ "lodash": "^4.17.21"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "react": "^16.14 || ^17.0 || ^18.0 || ^19.0"}},- "node_modules/@babel/plugin-transform-react-display-name": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.25.9.tgz",- "integrity": "sha512-KJfMlYIUxQB1CJfO3e0+h0ZHWOTLCPP115Awhaz8U0Zpq36Gl/cXlpoyMRnUWlhNUBAzldnCiAZNvCDj7CrKxQ==",- "dev": true,+ "node_modules/@nivo/core": {+ "version": "0.99.0",+ "resolved": "https://registry.npmjs.org/@nivo/core/-/core-0.99.0.tgz",+ "integrity": "sha512-olCItqhPG3xHL5ei+vg52aB6o+6S+xR2idpkd9RormTTUniZb8U2rOdcQojOojPY5i9kVeQyLFBpV4YfM7OZ9g==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"+ "@nivo/theming": "0.99.0",+ "@nivo/tooltip": "0.99.0",+ "@react-spring/web": "9.4.5 || ^9.7.2 || ^10.0",+ "@types/d3-shape": "^3.1.6",+ "d3-color": "^3.1.0",+ "d3-format": "^1.4.4",+ "d3-interpolate": "^3.0.1",+ "d3-scale": "^4.0.2",+ "d3-scale-chromatic": "^3.0.0",+ "d3-shape": "^3.2.0",+ "d3-time-format": "^3.0.0",+ "lodash": "^4.17.21",+ "react-virtualized-auto-sizer": "^1.0.26",+ "use-debounce": "^10.0.4"},- "engines": {- "node": ">=6.9.0"+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/nivo/donate"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "react": "^16.14 || ^17.0 || ^18.0 || ^19.0"}},- "node_modules/@babel/plugin-transform-react-jsx": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.25.9.tgz",- "integrity": "sha512-s5XwpQYCqGerXl+Pu6VDL3x0j2d82eiV77UJ8a2mDHAW7j9SWRqQ2y1fNo1Z74CdcYipl5Z41zvjj4Nfzq36rw==",- "dev": true,+ "node_modules/@nivo/legends": {+ "version": "0.99.0",+ "resolved": "https://registry.npmjs.org/@nivo/legends/-/legends-0.99.0.tgz",+ "integrity": "sha512-P16FjFqNceuTTZphINAh5p0RF0opu3cCKoWppe2aRD9IuVkvRm/wS5K1YwMCxDzKyKh5v0AuTlu9K6o3/hk8hA==","license": "MIT","dependencies": {- "@babel/helper-annotate-as-pure": "^7.25.9",- "@babel/helper-module-imports": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/plugin-syntax-jsx": "^7.25.9",- "@babel/types": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@nivo/colors": "0.99.0",+ "@nivo/core": "0.99.0",+ "@nivo/text": "0.99.0",+ "@nivo/theming": "0.99.0",+ "@types/d3-scale": "^4.0.8",+ "d3-scale": "^4.0.2"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "react": "^16.14 || ^17.0 || ^18.0 || ^19.0"}},- "node_modules/@babel/plugin-transform-react-jsx-development": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.25.9.tgz",- "integrity": "sha512-9mj6rm7XVYs4mdLIpbZnHOYdpW42uoiBCTVowg7sP1thUOiANgMb4UtpRivR0pp5iL+ocvUv7X4mZgFRpJEzGw==",- "dev": true,+ "node_modules/@nivo/scales": {+ "version": "0.99.0",+ "resolved": "https://registry.npmjs.org/@nivo/scales/-/scales-0.99.0.tgz",+ "integrity": "sha512-g/2K4L6L8si6E2BWAHtFVGahtDKbUcO6xHJtlIZMwdzaJc7yB16EpWLK8AfI/A42KadLhJSJqBK3mty+c7YZ+w==","license": "MIT","dependencies": {- "@babel/plugin-transform-react-jsx": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@types/d3-interpolate": "^3.0.4",+ "@types/d3-scale": "^4.0.8",+ "@types/d3-time": "^1.1.1",+ "@types/d3-time-format": "^3.0.0",+ "d3-interpolate": "^3.0.1",+ "d3-scale": "^4.0.2",+ "d3-time": "^1.0.11",+ "d3-time-format": "^3.0.0",+ "lodash": "^4.17.21"}},- "node_modules/@babel/plugin-transform-react-jsx-self": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.25.9.tgz",- "integrity": "sha512-y8quW6p0WHkEhmErnfe58r7x0A70uKphQm8Sp8cV7tjNQwK56sNVK0M73LK3WuYmsuyrftut4xAkjjgU0twaMg==",- "dev": true,+ "node_modules/@nivo/scales/node_modules/@types/d3-time-format": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-3.0.4.tgz",+ "integrity": "sha512-or9DiDnYI1h38J9hxKEsw513+KVuFbEVhl7qdxcaudoiqWWepapUen+2vAriFGexr6W5+P4l9+HJrB39GG+oRg==",+ "license": "MIT"+ },+ "node_modules/@nivo/text": {+ "version": "0.99.0",+ "resolved": "https://registry.npmjs.org/@nivo/text/-/text-0.99.0.tgz",+ "integrity": "sha512-ho3oZpAZApsJNjsIL5WJSAdg/wjzTBcwo1KiHBlRGUmD+yUWO8qp7V+mnYRhJchwygtRVALlPgZ/rlcW2Xr/MQ==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@nivo/core": "0.99.0",+ "@nivo/theming": "0.99.0",+ "@react-spring/web": "9.4.5 || ^9.7.2 || ^10.0"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "react": "^16.14 || ^17.0 || ^18.0 || ^19.0"}},- "node_modules/@babel/plugin-transform-react-jsx-source": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.25.9.tgz",- "integrity": "sha512-+iqjT8xmXhhYv4/uiYd8FNQsraMFZIfxVSqxxVSZP0WbbSAWvBXAul0m/zu+7Vv4O/3WtApy9pmaTMiumEZgfg==",- "dev": true,+ "node_modules/@nivo/theming": {+ "version": "0.99.0",+ "resolved": "https://registry.npmjs.org/@nivo/theming/-/theming-0.99.0.tgz",+ "integrity": "sha512-KvXlf0nqBzh/g2hAIV9bzscYvpq1uuO3TnFN3RDXGI72CrbbZFTGzprPju3sy/myVsauv+Bb+V4f5TZ0jkYKRg==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "lodash": "^4.17.21"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "react": "^16.14 || ^17.0 || ^18.0 || ^19.0"}},- "node_modules/@babel/plugin-transform-react-pure-annotations": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.25.9.tgz",- "integrity": "sha512-KQ/Takk3T8Qzj5TppkS1be588lkbTp5uj7w6a0LeQaTMSckU/wK0oJ/pih+T690tkgI5jfmg2TqDJvd41Sj1Cg==",- "dev": true,+ "node_modules/@nivo/tooltip": {+ "version": "0.99.0",+ "resolved": "https://registry.npmjs.org/@nivo/tooltip/-/tooltip-0.99.0.tgz",+ "integrity": "sha512-weoEGR3xAetV4k2P6k96cdamGzKQ5F2Pq+uyDaHr1P3HYArM879Pl+x+TkU0aWjP6wgUZPx/GOBiV1Hb1JxIqg==","license": "MIT","dependencies": {- "@babel/helper-annotate-as-pure": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@nivo/core": "0.99.0",+ "@nivo/theming": "0.99.0",+ "@react-spring/web": "9.4.5 || ^9.7.2 || ^10.0"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "react": "^16.14 || ^17.0 || ^18.0 || ^19.0"}},- "node_modules/@babel/plugin-transform-regenerator": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.25.9.tgz",- "integrity": "sha512-vwDcDNsgMPDGP0nMqzahDWE5/MLcX8sv96+wfX7as7LoF/kr97Bo/7fI00lXY4wUXYfVmwIIyG80fGZ1uvt2qg==",+ "node_modules/@nodelib/fs.scandir": {+ "version": "2.1.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==","dev": true,"license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9",- "regenerator-transform": "^0.15.2"+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"},"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">= 8"}},- "node_modules/@babel/plugin-transform-regexp-modifiers": {- "version": "7.26.0",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.26.0.tgz",- "integrity": "sha512-vN6saax7lrA2yA/Pak3sCxuD6F5InBjn9IcrIKQPjpsLvuHYLVroTxjdlVRHjjBWxKOqIwpTXDkOssYT4BFdRw==",+ "node_modules/@nodelib/fs.stat": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==","dev": true,"license": "MIT",- "dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9"- },"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"+ "node": ">= 8"}},- "node_modules/@babel/plugin-transform-reserved-words": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.25.9.tgz",- "integrity": "sha512-7DL7DKYjn5Su++4RXu8puKZm2XBPHyjWLUidaPEkCUBbE7IPcsrkRHggAOOKydH1dASWdcUBxrkOGNxUv5P3Jg==",+ "node_modules/@nodelib/fs.walk": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==","dev": true,"license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"},"engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "node": ">= 8"}},- "node_modules/@babel/plugin-transform-runtime": {- "version": "7.26.10",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.26.10.tgz",- "integrity": "sha512-NWaL2qG6HRpONTnj4JvDU6th4jYeZOJgu3QhmFTCihib0ermtOJqktA5BduGm3suhhVe9EMP9c9+mfJ/I9slqw==",- "dev": true,+ "node_modules/@radix-ui/number": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.1.tgz",+ "integrity": "sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==",+ "license": "MIT"+ },+ "node_modules/@radix-ui/primitive": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.3.tgz",+ "integrity": "sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==",+ "license": "MIT"+ },+ "node_modules/@radix-ui/react-accordion": {+ "version": "1.2.12",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-accordion/-/react-accordion-1.2.12.tgz",+ "integrity": "sha512-T4nygeh9YE9dLRPhAHSeOZi7HBXo+0kYIPJXayZfvWOWA0+n3dESrZbjfDPUABkUNym6Hd+f2IR113To8D2GPA==","license": "MIT","dependencies": {- "@babel/helper-module-imports": "^7.25.9",- "@babel/helper-plugin-utils": "^7.26.5",- "babel-plugin-polyfill-corejs2": "^0.4.10",- "babel-plugin-polyfill-corejs3": "^0.11.0",- "babel-plugin-polyfill-regenerator": "^0.6.1",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-collapsible": "1.1.12",+ "@radix-ui/react-collection": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-controllable-state": "1.2.2"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@babel/plugin-transform-shorthand-properties": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.25.9.tgz",- "integrity": "sha512-MUv6t0FhO5qHnS/W8XCbHmiRWOphNufpE1IVxhK5kuN3Td9FT1x4rx4K42s3RYdMXCXpfWkGSbCSd0Z64xA7Ng==",- "dev": true,+ "node_modules/@radix-ui/react-arrow": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-arrow/-/react-arrow-1.1.7.tgz",+ "integrity": "sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@radix-ui/react-primitive": "2.1.3"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@babel/plugin-transform-spread": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.25.9.tgz",- "integrity": "sha512-oNknIB0TbURU5pqJFVbOOFspVlrpVwo2H1+HUIsVDvp5VauGGDP1ZEvO8Nn5xyMEs3dakajOxlmkNW7kNgSm6A==",- "dev": true,+ "node_modules/@radix-ui/react-avatar": {+ "version": "1.1.10",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.1.10.tgz",+ "integrity": "sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-is-hydrated": "0.1.0",+ "@radix-ui/react-use-layout-effect": "1.1.1"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@babel/plugin-transform-sticky-regex": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.25.9.tgz",- "integrity": "sha512-WqBUSgeVwucYDP9U/xNRQam7xV8W5Zf+6Eo7T2SRVUFlhRiMNFdFz58u0KZmCVVqs2i7SHgpRnAhzRNmKfi2uA==",- "dev": true,+ "node_modules/@radix-ui/react-checkbox": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-checkbox/-/react-checkbox-1.3.3.tgz",+ "integrity": "sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-presence": "1.1.5",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-previous": "1.1.1",+ "@radix-ui/react-use-size": "1.1.1"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@babel/plugin-transform-template-literals": {- "version": "7.26.8",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.26.8.tgz",- "integrity": "sha512-OmGDL5/J0CJPJZTHZbi2XpO0tyT2Ia7fzpW5GURwdtp2X3fMmN8au/ej6peC/T33/+CRiIpA8Krse8hFGVmT5Q==",- "dev": true,+ "node_modules/@radix-ui/react-collapsible": {+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collapsible/-/react-collapsible-1.1.12.tgz",+ "integrity": "sha512-Uu+mSh4agx2ib1uIGPP4/CKNULyajb3p92LsVXmH2EHVMTfZWpll88XJ0j4W0z3f8NK1eYl1+Mf/szHPmcHzyA==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.26.5"- },- "engines": {- "node": ">=6.9.0"+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-presence": "1.1.5",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@babel/plugin-transform-typeof-symbol": {- "version": "7.26.7",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.26.7.tgz",- "integrity": "sha512-jfoTXXZTgGg36BmhqT3cAYK5qkmqvJpvNrPhaK/52Vgjhw4Rq29s9UqpWWV0D6yuRmgiFH/BUVlkl96zJWqnaw==",- "dev": true,+ "node_modules/@radix-ui/react-collection": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.7.tgz",+ "integrity": "sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.26.5"- },- "engines": {- "node": ">=6.9.0"+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-slot": "1.2.3"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@babel/plugin-transform-typescript": {- "version": "7.26.8",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.26.8.tgz",- "integrity": "sha512-bME5J9AC8ChwA7aEPJ6zym3w7aObZULHhbNLU0bKUhKsAkylkzUdq+0kdymh9rzi8nlNFl2bmldFBCKNJBUpuw==",- "dev": true,+ "node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz",+ "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==","license": "MIT",- "dependencies": {- "@babel/helper-annotate-as-pure": "^7.25.9",- "@babel/helper-create-class-features-plugin": "^7.25.9",- "@babel/helper-plugin-utils": "^7.26.5",- "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9",- "@babel/plugin-syntax-typescript": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"- },"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@babel/plugin-transform-unicode-escapes": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.25.9.tgz",- "integrity": "sha512-s5EDrE6bW97LtxOcGj1Khcx5AaXwiMmi4toFWRDP9/y0Woo6pXC+iyPu/KuhKtfSrNFd7jJB+/fkOtZy6aIC6Q==",- "dev": true,+ "node_modules/@radix-ui/react-context": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz",+ "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==","license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"- },"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@babel/plugin-transform-unicode-property-regex": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.25.9.tgz",- "integrity": "sha512-Jt2d8Ga+QwRluxRQ307Vlxa6dMrYEMZCgGxoPR8V52rxPyldHu3hdlHspxaqYmE7oID5+kB+UKUB/eWS+DkkWg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "node_modules/@radix-ui/react-dialog": {+ "version": "1.1.15",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.15.tgz",+ "integrity": "sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-dismissable-layer": "1.1.11",+ "@radix-ui/react-focus-guards": "1.1.3",+ "@radix-ui/react-focus-scope": "1.1.7",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-portal": "1.1.9",+ "@radix-ui/react-presence": "1.1.5",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-slot": "1.2.3",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "aria-hidden": "^1.2.4",+ "react-remove-scroll": "^2.6.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"},- "peerDependencies": {- "@babel/core": "^7.0.0-0"+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@babel/plugin-transform-unicode-regex": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.25.9.tgz",- "integrity": "sha512-yoxstj7Rg9dlNn9UQxzk4fcNivwv4nUYz7fYXBaKxvw/lnmPuOm/ikoELygbYq68Bls3D/D+NBPHiLwZdZZ4HA==",- "dev": true,+ "node_modules/@radix-ui/react-direction": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.1.tgz",+ "integrity": "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==","license": "MIT",- "dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"- },"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@babel/plugin-transform-unicode-sets-regex": {- "version": "7.25.9",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.25.9.tgz",- "integrity": "sha512-8BYqO3GeVNHtx69fdPshN3fnzUNLrWdHhk/icSwigksJGczKSizZ+Z6SBCxTs723Fr5VSNorTIK7a+R2tISvwQ==",- "dev": true,+ "node_modules/@radix-ui/react-dismissable-layer": {+ "version": "1.1.11",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.11.tgz",+ "integrity": "sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg==","license": "MIT","dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.25.9",- "@babel/helper-plugin-utils": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-escape-keydown": "1.1.1"},"peerDependencies": {- "@babel/core": "^7.0.0"+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@babel/preset-env": {- "version": "7.26.9",- "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.26.9.tgz",- "integrity": "sha512-vX3qPGE8sEKEAZCWk05k3cpTAE3/nOYca++JA+Rd0z2NCNzabmYvEiSShKzm10zdquOIAVXsy2Ei/DTW34KlKQ==",- "dev": true,+ "node_modules/@radix-ui/react-dropdown-menu": {+ "version": "2.1.16",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.1.16.tgz",+ "integrity": "sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw==","license": "MIT","dependencies": {- "@babel/compat-data": "^7.26.8",- "@babel/helper-compilation-targets": "^7.26.5",- "@babel/helper-plugin-utils": "^7.26.5",- "@babel/helper-validator-option": "^7.25.9",- "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.9",- "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.9",- "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.9",- "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.25.9",- "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.9",- "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2",- "@babel/plugin-syntax-import-assertions": "^7.26.0",- "@babel/plugin-syntax-import-attributes": "^7.26.0",- "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6",- "@babel/plugin-transform-arrow-functions": "^7.25.9",- "@babel/plugin-transform-async-generator-functions": "^7.26.8",- "@babel/plugin-transform-async-to-generator": "^7.25.9",- "@babel/plugin-transform-block-scoped-functions": "^7.26.5",- "@babel/plugin-transform-block-scoping": "^7.25.9",- "@babel/plugin-transform-class-properties": "^7.25.9",- "@babel/plugin-transform-class-static-block": "^7.26.0",- "@babel/plugin-transform-classes": "^7.25.9",- "@babel/plugin-transform-computed-properties": "^7.25.9",- "@babel/plugin-transform-destructuring": "^7.25.9",- "@babel/plugin-transform-dotall-regex": "^7.25.9",- "@babel/plugin-transform-duplicate-keys": "^7.25.9",- "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.9",- "@babel/plugin-transform-dynamic-import": "^7.25.9",- "@babel/plugin-transform-exponentiation-operator": "^7.26.3",- "@babel/plugin-transform-export-namespace-from": "^7.25.9",- "@babel/plugin-transform-for-of": "^7.26.9",- "@babel/plugin-transform-function-name": "^7.25.9",- "@babel/plugin-transform-json-strings": "^7.25.9",- "@babel/plugin-transform-literals": "^7.25.9",- "@babel/plugin-transform-logical-assignment-operators": "^7.25.9",- "@babel/plugin-transform-member-expression-literals": "^7.25.9",- "@babel/plugin-transform-modules-amd": "^7.25.9",- "@babel/plugin-transform-modules-commonjs": "^7.26.3",- "@babel/plugin-transform-modules-systemjs": "^7.25.9",- "@babel/plugin-transform-modules-umd": "^7.25.9",- "@babel/plugin-transform-named-capturing-groups-regex": "^7.25.9",- "@babel/plugin-transform-new-target": "^7.25.9",- "@babel/plugin-transform-nullish-coalescing-operator": "^7.26.6",- "@babel/plugin-transform-numeric-separator": "^7.25.9",- "@babel/plugin-transform-object-rest-spread": "^7.25.9",- "@babel/plugin-transform-object-super": "^7.25.9",- "@babel/plugin-transform-optional-catch-binding": "^7.25.9",- "@babel/plugin-transform-optional-chaining": "^7.25.9",- "@babel/plugin-transform-parameters": "^7.25.9",- "@babel/plugin-transform-private-methods": "^7.25.9",- "@babel/plugin-transform-private-property-in-object": "^7.25.9",- "@babel/plugin-transform-property-literals": "^7.25.9",- "@babel/plugin-transform-regenerator": "^7.25.9",- "@babel/plugin-transform-regexp-modifiers": "^7.26.0",- "@babel/plugin-transform-reserved-words": "^7.25.9",- "@babel/plugin-transform-shorthand-properties": "^7.25.9",- "@babel/plugin-transform-spread": "^7.25.9",- "@babel/plugin-transform-sticky-regex": "^7.25.9",- "@babel/plugin-transform-template-literals": "^7.26.8",- "@babel/plugin-transform-typeof-symbol": "^7.26.7",- "@babel/plugin-transform-unicode-escapes": "^7.25.9",- "@babel/plugin-transform-unicode-property-regex": "^7.25.9",- "@babel/plugin-transform-unicode-regex": "^7.25.9",- "@babel/plugin-transform-unicode-sets-regex": "^7.25.9",- "@babel/preset-modules": "0.1.6-no-external-plugins",- "babel-plugin-polyfill-corejs2": "^0.4.10",- "babel-plugin-polyfill-corejs3": "^0.11.0",- "babel-plugin-polyfill-regenerator": "^0.6.1",- "core-js-compat": "^3.40.0",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-menu": "2.1.16",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-controllable-state": "1.2.2"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@babel/preset-env/node_modules/@babel/plugin-proposal-private-property-in-object": {- "version": "7.21.0-placeholder-for-preset-env.2",- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz",- "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==",- "dev": true,+ "node_modules/@radix-ui/react-focus-guards": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.3.tgz",+ "integrity": "sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw==","license": "MIT",- "engines": {- "node": ">=6.9.0"- },"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@babel/preset-modules": {- "version": "0.1.6-no-external-plugins",- "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz",- "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==",- "dev": true,+ "node_modules/@radix-ui/react-focus-scope": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.7.tgz",+ "integrity": "sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.0.0",- "@babel/types": "^7.4.4",- "esutils": "^2.0.2"+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1"},"peerDependencies": {- "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0"+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@babel/preset-react": {- "version": "7.26.3",- "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.26.3.tgz",- "integrity": "sha512-Nl03d6T9ky516DGK2YMxrTqvnpUW63TnJMOMonj+Zae0JiPC5BC9xPMSL6L8fiSpA5vP88qfygavVQvnLp+6Cw==",- "dev": true,+ "node_modules/@radix-ui/react-id": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz",+ "integrity": "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/helper-validator-option": "^7.25.9",- "@babel/plugin-transform-react-display-name": "^7.25.9",- "@babel/plugin-transform-react-jsx": "^7.25.9",- "@babel/plugin-transform-react-jsx-development": "^7.25.9",- "@babel/plugin-transform-react-pure-annotations": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@radix-ui/react-use-layout-effect": "1.1.1"},"peerDependencies": {- "@babel/core": "^7.0.0-0"+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@babel/preset-typescript": {- "version": "7.26.0",- "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.26.0.tgz",- "integrity": "sha512-NMk1IGZ5I/oHhoXEElcm+xUnL/szL6xflkFZmoEU9xj1qSJXpiS7rsspYo92B4DRCDvZn2erT5LdsCeXAKNCkg==",- "dev": true,+ "node_modules/@radix-ui/react-label": {+ "version": "2.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.1.7.tgz",+ "integrity": "sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ==","license": "MIT","dependencies": {- "@babel/helper-plugin-utils": "^7.25.9",- "@babel/helper-validator-option": "^7.25.9",- "@babel/plugin-syntax-jsx": "^7.25.9",- "@babel/plugin-transform-modules-commonjs": "^7.25.9",- "@babel/plugin-transform-typescript": "^7.25.9"- },- "engines": {- "node": ">=6.9.0"+ "@radix-ui/react-primitive": "2.1.3"},"peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/runtime": {- "version": "7.26.10",- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.10.tgz",- "integrity": "sha512-2WJMeRQPHKSPemqk/awGrAiuFfzBmOIPXKizAsVhWH9YJqLZ0H+HS4c8loHGgW6utJ3E/ejXQUsiGaQy2NZ9Fw==",- "license": "MIT",- "dependencies": {- "regenerator-runtime": "^0.14.0"+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"},- "engines": {- "node": ">=6.9.0"+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@babel/template": {- "version": "7.26.9",- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.26.9.tgz",- "integrity": "sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA==",- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.26.2",- "@babel/parser": "^7.26.9",- "@babel/types": "^7.26.9"+ "node_modules/@radix-ui/react-menu": {+ "version": "2.1.16",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.1.16.tgz",+ "integrity": "sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-collection": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-dismissable-layer": "1.1.11",+ "@radix-ui/react-focus-guards": "1.1.3",+ "@radix-ui/react-focus-scope": "1.1.7",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-popper": "1.2.8",+ "@radix-ui/react-portal": "1.1.9",+ "@radix-ui/react-presence": "1.1.5",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-roving-focus": "1.1.11",+ "@radix-ui/react-slot": "1.2.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "aria-hidden": "^1.2.4",+ "react-remove-scroll": "^2.6.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"},- "engines": {- "node": ">=6.9.0"+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@babel/traverse": {- "version": "7.26.10",- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.26.10.tgz",- "integrity": "sha512-k8NuDrxr0WrPH5Aupqb2LCVURP/S0vBEn5mK6iH+GIYob66U5EtoZvcdudR2jQ4cmTwhEwW1DLB+Yyas9zjF6A==",+ "node_modules/@radix-ui/react-navigation-menu": {+ "version": "1.2.14",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-navigation-menu/-/react-navigation-menu-1.2.14.tgz",+ "integrity": "sha512-YB9mTFQvCOAQMHU+C/jVl96WmuWeltyUEpRJJky51huhds5W2FQr1J8D/16sQlf0ozxkPK8uF3niQMdUwZPv5w==","license": "MIT","dependencies": {- "@babel/code-frame": "^7.26.2",- "@babel/generator": "^7.26.10",- "@babel/parser": "^7.26.10",- "@babel/template": "^7.26.9",- "@babel/types": "^7.26.10",- "debug": "^4.3.1",- "globals": "^11.1.0"+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-collection": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-dismissable-layer": "1.1.11",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-presence": "1.1.5",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-layout-effect": "1.1.1",+ "@radix-ui/react-use-previous": "1.1.1",+ "@radix-ui/react-visually-hidden": "1.2.3"},- "engines": {- "node": ">=6.9.0"+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@babel/types": {- "version": "7.26.10",- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.10.tgz",- "integrity": "sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ==",- "license": "MIT",- "dependencies": {- "@babel/helper-string-parser": "^7.25.9",- "@babel/helper-validator-identifier": "^7.25.9"+ "node_modules/@radix-ui/react-popover": {+ "version": "1.1.15",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-popover/-/react-popover-1.1.15.tgz",+ "integrity": "sha512-kr0X2+6Yy/vJzLYJUPCZEc8SfQcf+1COFoAqauJm74umQhta9M7lNJHP7QQS3vkvcGLQUbWpMzwrXYwrYztHKA==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-dismissable-layer": "1.1.11",+ "@radix-ui/react-focus-guards": "1.1.3",+ "@radix-ui/react-focus-scope": "1.1.7",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-popper": "1.2.8",+ "@radix-ui/react-portal": "1.1.9",+ "@radix-ui/react-presence": "1.1.5",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-slot": "1.2.3",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "aria-hidden": "^1.2.4",+ "react-remove-scroll": "^2.6.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"},- "engines": {- "node": ">=6.9.0"+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@chromatic-com/storybook": {- "version": "3.2.6",- "resolved": "https://registry.npmjs.org/@chromatic-com/storybook/-/storybook-3.2.6.tgz",- "integrity": "sha512-FDmn5Ry2DzQdik+eq2sp/kJMMT36Ewe7ONXUXM2Izd97c7r6R/QyGli8eyh/F0iyqVvbLveNYFyF0dBOJNwLqw==",- "dev": true,+ "node_modules/@radix-ui/react-popper": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.2.8.tgz",+ "integrity": "sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==","license": "MIT","dependencies": {- "chromatic": "^11.15.0",- "filesize": "^10.0.12",- "jsonfile": "^6.1.0",- "react-confetti": "^6.1.0",- "strip-ansi": "^7.1.0"- },- "engines": {- "node": ">=16.0.0",- "yarn": ">=1.22.18"+ "@floating-ui/react-dom": "^2.0.0",+ "@radix-ui/react-arrow": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-layout-effect": "1.1.1",+ "@radix-ui/react-use-rect": "1.1.1",+ "@radix-ui/react-use-size": "1.1.1",+ "@radix-ui/rect": "1.1.1"},"peerDependencies": {- "storybook": "^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0"- }- },- "node_modules/@emotion/babel-plugin": {- "version": "11.13.5",- "resolved": "https://registry.npmjs.org/@emotion/babel-plugin/-/babel-plugin-11.13.5.tgz",- "integrity": "sha512-pxHCpT2ex+0q+HH91/zsdHkw/lXd468DIN2zvfvLtPKLLMo6gQj7oLObq8PhkrxOZb/gGCq03S3Z7PDhS8pduQ==",- "license": "MIT",- "dependencies": {- "@babel/helper-module-imports": "^7.16.7",- "@babel/runtime": "^7.18.3",- "@emotion/hash": "^0.9.2",- "@emotion/memoize": "^0.9.0",- "@emotion/serialize": "^1.3.3",- "babel-plugin-macros": "^3.1.0",- "convert-source-map": "^1.5.0",- "escape-string-regexp": "^4.0.0",- "find-root": "^1.1.0",- "source-map": "^0.5.7",- "stylis": "4.2.0"- }- },- "node_modules/@emotion/babel-plugin/node_modules/convert-source-map": {- "version": "1.9.0",- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",- "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==",- "license": "MIT"- },- "node_modules/@emotion/cache": {- "version": "11.14.0",- "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.14.0.tgz",- "integrity": "sha512-L/B1lc/TViYk4DcpGxtAVbx0ZyiKM5ktoIyafGkH6zg/tj+mA+NE//aPYKG0k8kCHSHVJrpLpcAlOBEXQ3SavA==",- "license": "MIT",- "dependencies": {- "@emotion/memoize": "^0.9.0",- "@emotion/sheet": "^1.4.0",- "@emotion/utils": "^1.4.2",- "@emotion/weak-memoize": "^0.4.0",- "stylis": "4.2.0"- }- },- "node_modules/@emotion/hash": {- "version": "0.9.2",- "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.2.tgz",- "integrity": "sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==",- "license": "MIT"- },- "node_modules/@emotion/is-prop-valid": {- "version": "1.3.1",- "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-1.3.1.tgz",- "integrity": "sha512-/ACwoqx7XQi9knQs/G0qKvv5teDMhD7bXYns9N/wM8ah8iNb8jZ2uNO0YOgiq2o2poIvVtJS2YALasQuMSQ7Kw==",- "license": "MIT",- "dependencies": {- "@emotion/memoize": "^0.9.0"+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@emotion/memoize": {- "version": "0.9.0",- "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.9.0.tgz",- "integrity": "sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==",- "license": "MIT"- },- "node_modules/@emotion/react": {- "version": "11.14.0",- "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.14.0.tgz",- "integrity": "sha512-O000MLDBDdk/EohJPFUqvnp4qnHeYkVP5B0xEG0D/L7cOKP9kefu2DXn8dj74cQfsEzUqh+sr1RzFqiL1o+PpA==",+ "node_modules/@radix-ui/react-portal": {+ "version": "1.1.9",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.9.tgz",+ "integrity": "sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==","license": "MIT","dependencies": {- "@babel/runtime": "^7.18.3",- "@emotion/babel-plugin": "^11.13.5",- "@emotion/cache": "^11.14.0",- "@emotion/serialize": "^1.3.3",- "@emotion/use-insertion-effect-with-fallbacks": "^1.2.0",- "@emotion/utils": "^1.4.2",- "@emotion/weak-memoize": "^0.4.0",- "hoist-non-react-statics": "^3.3.1"+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-layout-effect": "1.1.1"},"peerDependencies": {- "react": ">=16.8.0"+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"},"peerDependenciesMeta": {"@types/react": {"optional": true+ },+ "@types/react-dom": {+ "optional": true}}},- "node_modules/@emotion/serialize": {- "version": "1.3.3",- "resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-1.3.3.tgz",- "integrity": "sha512-EISGqt7sSNWHGI76hC7x1CksiXPahbxEOrC5RjmFRJTqLyEK9/9hZvBbiYn70dw4wuwMKiEMCUlR6ZXTSWQqxA==",- "license": "MIT",- "dependencies": {- "@emotion/hash": "^0.9.2",- "@emotion/memoize": "^0.9.0",- "@emotion/unitless": "^0.10.0",- "@emotion/utils": "^1.4.2",- "csstype": "^3.0.2"- }- },- "node_modules/@emotion/sheet": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-1.4.0.tgz",- "integrity": "sha512-fTBW9/8r2w3dXWYM4HCB1Rdp8NLibOw2+XELH5m5+AkWiL/KqYX6dc0kKYlaYyKjrQ6ds33MCdMPEwgs2z1rqg==",- "license": "MIT"- },- "node_modules/@emotion/styled": {- "version": "11.14.0",- "resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-11.14.0.tgz",- "integrity": "sha512-XxfOnXFffatap2IyCeJyNov3kiDQWoR08gPUQxvbL7fxKryGBKUZUkG6Hz48DZwVrJSVh9sJboyV1Ds4OW6SgA==",+ "node_modules/@radix-ui/react-presence": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.5.tgz",+ "integrity": "sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==","license": "MIT","dependencies": {- "@babel/runtime": "^7.18.3",- "@emotion/babel-plugin": "^11.13.5",- "@emotion/is-prop-valid": "^1.3.0",- "@emotion/serialize": "^1.3.3",- "@emotion/use-insertion-effect-with-fallbacks": "^1.2.0",- "@emotion/utils": "^1.4.2"+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"},"peerDependencies": {- "@emotion/react": "^11.0.0-rc.0",- "react": ">=16.8.0"+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"},"peerDependenciesMeta": {"@types/react": {"optional": true+ },+ "@types/react-dom": {+ "optional": true}}},- "node_modules/@emotion/unitless": {- "version": "0.10.0",- "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.10.0.tgz",- "integrity": "sha512-dFoMUuQA20zvtVTuxZww6OHoJYgrzfKM1t52mVySDJnMSEa08ruEvdYQbhvyu6soU+NeLVd3yKfTfT0NeV6qGg==",- "license": "MIT"- },- "node_modules/@emotion/use-insertion-effect-with-fallbacks": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.2.0.tgz",- "integrity": "sha512-yJMtVdH59sxi/aVJBpk9FQq+OR8ll5GT8oWd57UpeaKEVGab41JWaCFA7FRLoMLloOZF/c/wsPoe+bfGmRKgDg==",+ "node_modules/@radix-ui/react-primitive": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.3.tgz",+ "integrity": "sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==","license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "1.2.3"+ },"peerDependencies": {- "react": ">=16.8.0"+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@emotion/utils": {- "version": "1.4.2",- "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-1.4.2.tgz",- "integrity": "sha512-3vLclRofFziIa3J2wDh9jjbkUz9qk5Vi3IZ/FSTKViB0k+ef0fPV7dYrUIugbgupYDx7v9ud/SjrtEP8Y4xLoA==",- "license": "MIT"- },- "node_modules/@emotion/weak-memoize": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz",- "integrity": "sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==",- "license": "MIT"- },- "node_modules/@esbuild/aix-ppc64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.1.tgz",- "integrity": "sha512-kfYGy8IdzTGy+z0vFGvExZtxkFlA4zAxgKEahG9KE1ScBjpQnFsNOX8KTU5ojNru5ed5CVoJYXFtoxaq5nFbjQ==",- "cpu": [- "ppc64"- ],- "dev": true,+ "node_modules/@radix-ui/react-progress": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-progress/-/react-progress-1.1.7.tgz",+ "integrity": "sha512-vPdg/tF6YC/ynuBIJlk1mm7Le0VgW6ub6J2UWnTQ7/D23KXcPI1qy+0vBkgKgd38RCMJavBXpB83HPNFMTb0Fg==","license": "MIT",- "optional": true,- "os": [- "aix"- ],- "engines": {- "node": ">=18"+ "dependencies": {+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@esbuild/android-arm": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.1.tgz",- "integrity": "sha512-dp+MshLYux6j/JjdqVLnMglQlFu+MuVeNrmT5nk6q07wNhCdSnB7QZj+7G8VMUGh1q+vj2Bq8kRsuyA00I/k+Q==",- "cpu": [- "arm"- ],- "dev": true,+ "node_modules/@radix-ui/react-radio-group": {+ "version": "1.3.8",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-radio-group/-/react-radio-group-1.3.8.tgz",+ "integrity": "sha512-VBKYIYImA5zsxACdisNQ3BjCBfmbGH3kQlnFVqlWU4tXwjy7cGX8ta80BcrO+WJXIn5iBylEH3K6ZTlee//lgQ==","license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-presence": "1.1.5",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-roving-focus": "1.1.11",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-previous": "1.1.1",+ "@radix-ui/react-use-size": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@esbuild/android-arm64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.1.tgz",- "integrity": "sha512-50tM0zCJW5kGqgG7fQ7IHvQOcAn9TKiVRuQ/lN0xR+T2lzEFvAi1ZcS8DiksFcEpf1t/GYOeOfCAgDHFpkiSmA==",- "cpu": [- "arm64"- ],- "dev": true,+ "node_modules/@radix-ui/react-roving-focus": {+ "version": "1.1.11",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-roving-focus/-/react-roving-focus-1.1.11.tgz",+ "integrity": "sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==","license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-collection": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-controllable-state": "1.2.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@esbuild/android-x64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.1.tgz",- "integrity": "sha512-GCj6WfUtNldqUzYkN/ITtlhwQqGWu9S45vUXs7EIYf+7rCiiqH9bCloatO9VhxsL0Pji+PF4Lz2XXCES+Q8hDw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"+ "node_modules/@radix-ui/react-select": {+ "version": "2.2.6",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-select/-/react-select-2.2.6.tgz",+ "integrity": "sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/number": "1.1.1",+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-collection": "1.1.7",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-dismissable-layer": "1.1.11",+ "@radix-ui/react-focus-guards": "1.1.3",+ "@radix-ui/react-focus-scope": "1.1.7",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-popper": "1.2.8",+ "@radix-ui/react-portal": "1.1.9",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-slot": "1.2.3",+ "@radix-ui/react-use-callback-ref": "1.1.1",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-layout-effect": "1.1.1",+ "@radix-ui/react-use-previous": "1.1.1",+ "@radix-ui/react-visually-hidden": "1.2.3",+ "aria-hidden": "^1.2.4",+ "react-remove-scroll": "^2.6.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@esbuild/darwin-arm64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.1.tgz",- "integrity": "sha512-5hEZKPf+nQjYoSr/elb62U19/l1mZDdqidGfmFutVUjjUZrOazAtwK+Kr+3y0C/oeJfLlxo9fXb1w7L+P7E4FQ==",- "cpu": [- "arm64"- ],- "dev": true,+ "node_modules/@radix-ui/react-separator": {+ "version": "1.1.7",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.7.tgz",+ "integrity": "sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==","license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=18"+ "dependencies": {+ "@radix-ui/react-primitive": "2.1.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@esbuild/darwin-x64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.1.tgz",- "integrity": "sha512-hxVnwL2Dqs3fM1IWq8Iezh0cX7ZGdVhbTfnOy5uURtao5OIVCEyj9xIzemDi7sRvKsuSdtCAhMKarxqtlyVyfA==",- "cpu": [- "x64"- ],- "dev": true,+ "node_modules/@radix-ui/react-slot": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.3.tgz",+ "integrity": "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==","license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=18"+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@esbuild/freebsd-arm64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.1.tgz",- "integrity": "sha512-1MrCZs0fZa2g8E+FUo2ipw6jw5qqQiH+tERoS5fAfKnRx6NXH31tXBKI3VpmLijLH6yriMZsxJtaXUyFt/8Y4A==",- "cpu": [- "arm64"- ],- "dev": true,+ "node_modules/@radix-ui/react-switch": {+ "version": "1.2.6",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.2.6.tgz",+ "integrity": "sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ==","license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=18"+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-use-previous": "1.1.1",+ "@radix-ui/react-use-size": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@esbuild/freebsd-x64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.1.tgz",- "integrity": "sha512-0IZWLiTyz7nm0xuIs0q1Y3QWJC52R8aSXxe40VUxm6BB1RNmkODtW6LHvWRrGiICulcX7ZvyH6h5fqdLu4gkww==",- "cpu": [- "x64"- ],- "dev": true,+ "node_modules/@radix-ui/react-tabs": {+ "version": "1.1.13",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.1.13.tgz",+ "integrity": "sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A==","license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=18"+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-direction": "1.1.1",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-presence": "1.1.5",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-roving-focus": "1.1.11",+ "@radix-ui/react-use-controllable-state": "1.2.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@esbuild/linux-arm": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.1.tgz",- "integrity": "sha512-NdKOhS4u7JhDKw9G3cY6sWqFcnLITn6SqivVArbzIaf3cemShqfLGHYMx8Xlm/lBit3/5d7kXvriTUGa5YViuQ==",- "cpu": [- "arm"- ],- "dev": true,+ "node_modules/@radix-ui/react-tooltip": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.2.8.tgz",+ "integrity": "sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg==","license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"+ "dependencies": {+ "@radix-ui/primitive": "1.1.3",+ "@radix-ui/react-compose-refs": "1.1.2",+ "@radix-ui/react-context": "1.1.2",+ "@radix-ui/react-dismissable-layer": "1.1.11",+ "@radix-ui/react-id": "1.1.1",+ "@radix-ui/react-popper": "1.2.8",+ "@radix-ui/react-portal": "1.1.9",+ "@radix-ui/react-presence": "1.1.5",+ "@radix-ui/react-primitive": "2.1.3",+ "@radix-ui/react-slot": "1.2.3",+ "@radix-ui/react-use-controllable-state": "1.2.2",+ "@radix-ui/react-visually-hidden": "1.2.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }}},- "node_modules/@esbuild/linux-arm64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.1.tgz",- "integrity": "sha512-jaN3dHi0/DDPelk0nLcXRm1q7DNJpjXy7yWaWvbfkPvI+7XNSc/lDOnCLN7gzsyzgu6qSAmgSvP9oXAhP973uQ==",- "cpu": [- "arm64"- ],- "dev": true,+ "node_modules/@radix-ui/react-use-callback-ref": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.1.tgz",+ "integrity": "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==","license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@esbuild/linux-ia32": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.1.tgz",- "integrity": "sha512-OJykPaF4v8JidKNGz8c/q1lBO44sQNUQtq1KktJXdBLn1hPod5rE/Hko5ugKKZd+D2+o1a9MFGUEIUwO2YfgkQ==",- "cpu": [- "ia32"- ],- "dev": true,+ "node_modules/@radix-ui/react-use-controllable-state": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.2.2.tgz",+ "integrity": "sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==","license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"+ "dependencies": {+ "@radix-ui/react-use-effect-event": "0.0.2",+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@esbuild/linux-loong64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.1.tgz",- "integrity": "sha512-nGfornQj4dzcq5Vp835oM/o21UMlXzn79KobKlcs3Wz9smwiifknLy4xDCLUU0BWp7b/houtdrgUz7nOGnfIYg==",- "cpu": [- "loong64"- ],- "dev": true,+ "node_modules/@radix-ui/react-use-effect-event": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-effect-event/-/react-use-effect-event-0.0.2.tgz",+ "integrity": "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==","license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@esbuild/linux-mips64el": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.1.tgz",- "integrity": "sha512-1osBbPEFYwIE5IVB/0g2X6i1qInZa1aIoj1TdL4AaAb55xIIgbg8Doq6a5BzYWgr+tEcDzYH67XVnTmUzL+nXg==",- "cpu": [- "mips64el"- ],- "dev": true,+ "node_modules/@radix-ui/react-use-escape-keydown": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.1.tgz",+ "integrity": "sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==","license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"+ "dependencies": {+ "@radix-ui/react-use-callback-ref": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@esbuild/linux-ppc64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.1.tgz",- "integrity": "sha512-/6VBJOwUf3TdTvJZ82qF3tbLuWsscd7/1w+D9LH0W/SqUgM5/JJD0lrJ1fVIfZsqB6RFmLCe0Xz3fmZc3WtyVg==",- "cpu": [- "ppc64"- ],- "dev": true,+ "node_modules/@radix-ui/react-use-is-hydrated": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-is-hydrated/-/react-use-is-hydrated-0.1.0.tgz",+ "integrity": "sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA==","license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"+ "dependencies": {+ "use-sync-external-store": "^1.5.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@esbuild/linux-riscv64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.1.tgz",- "integrity": "sha512-nSut/Mx5gnilhcq2yIMLMe3Wl4FK5wx/o0QuuCLMtmJn+WeWYoEGDN1ipcN72g1WHsnIbxGXd4i/MF0gTcuAjQ==",- "cpu": [- "riscv64"- ],- "dev": true,+ "node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz",+ "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==","license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/@esbuild/linux-s390x": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.1.tgz",- "integrity": "sha512-cEECeLlJNfT8kZHqLarDBQso9a27o2Zd2AQ8USAEoGtejOrCYHNtKP8XQhMDJMtthdF4GBmjR2au3x1udADQQQ==",+ "node_modules/@radix-ui/react-use-previous": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.1.tgz",+ "integrity": "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-rect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-rect/-/react-use-rect-1.1.1.tgz",+ "integrity": "sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/rect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-size": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.1.tgz",+ "integrity": "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-visually-hidden": {+ "version": "1.2.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.2.3.tgz",+ "integrity": "sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.1.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/rect": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/rect/-/rect-1.1.1.tgz",+ "integrity": "sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==",+ "license": "MIT"+ },+ "node_modules/@raphiniert/ra-data-postgrest": {+ "version": "2.5.1",+ "resolved": "https://registry.npmjs.org/@raphiniert/ra-data-postgrest/-/ra-data-postgrest-2.5.1.tgz",+ "integrity": "sha512-wErg4OkqcpCm1JLT4x7eMPlPUVPazwy0wvZyVFMc4f0BepK4oFXv4a9PctlXRA+fylqm0r86FZ4izRo6Islg3g==",+ "license": "MIT",+ "dependencies": {+ "dequal": "^2.0.3",+ "qs": "^6.14.0"+ },+ "peerDependencies": {+ "ra-core": "^5.7.3"+ }+ },+ "node_modules/@react-spring/animated": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-10.0.1.tgz",+ "integrity": "sha512-BGL3hA66Y8Qm3KmRZUlfG/mFbDPYajgil2/jOP0VXf2+o2WPVmcDps/eEgdDqgf5Pv9eBbyj7LschLMuSjlW3Q==",+ "license": "MIT",+ "dependencies": {+ "@react-spring/shared": "~10.0.1",+ "@react-spring/types": "~10.0.1"+ },+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/@react-spring/core": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-10.0.1.tgz",+ "integrity": "sha512-KaMMsN1qHuVTsFpg/5ajAVye7OEqhYbCq0g4aKM9bnSZlDBBYpO7Uf+9eixyXN8YEbF+YXaYj9eoWDs+npZ+sA==",+ "license": "MIT",+ "dependencies": {+ "@react-spring/animated": "~10.0.1",+ "@react-spring/shared": "~10.0.1",+ "@react-spring/types": "~10.0.1"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/react-spring/donate"+ },+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/@react-spring/rafz": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/@react-spring/rafz/-/rafz-10.0.1.tgz",+ "integrity": "sha512-UrzG/d6Is+9i0aCAjsjWRqIlFFiC4lFqFHrH63zK935z2YDU95TOFio4VKGISJ5SG0xq4ULy7c1V3KU+XvL+Yg==",+ "license": "MIT"+ },+ "node_modules/@react-spring/shared": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-10.0.1.tgz",+ "integrity": "sha512-KR2tmjDShPruI/GGPfAZOOLvDgkhFseabjvxzZFFggJMPkyICLjO0J6mCIoGtdJSuHywZyc4Mmlgi+C88lS00g==",+ "license": "MIT",+ "dependencies": {+ "@react-spring/rafz": "~10.0.1",+ "@react-spring/types": "~10.0.1"+ },+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/@react-spring/types": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-10.0.1.tgz",+ "integrity": "sha512-Fk1wYVAKL+ZTYK+4YFDpHf3Slsy59pfFFvnnTfRjQQFGlyIo4VejPtDs3CbDiuBjM135YztRyZjIH2VbycB+ZQ==",+ "license": "MIT"+ },+ "node_modules/@react-spring/web": {+ "version": "10.0.1",+ "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-10.0.1.tgz",+ "integrity": "sha512-FgQk02OqFrYyJBTTnBTWAU0WPzkHkKXauc6aeexcvATvLapUxwnfGuLlsLYF8BYjEVfkivPT04ziAue6zyRBtQ==",+ "license": "MIT",+ "dependencies": {+ "@react-spring/animated": "~10.0.1",+ "@react-spring/core": "~10.0.1",+ "@react-spring/shared": "~10.0.1",+ "@react-spring/types": "~10.0.1"+ },+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/@rolldown/pluginutils": {+ "version": "1.0.0-beta.27",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",+ "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.50.0.tgz",+ "integrity": "sha512-lVgpeQyy4fWN5QYebtW4buT/4kn4p4IJ+kDNB4uYNT5b8c8DLJDg6titg20NIg7E8RWwdWZORW6vUFfrLyG3KQ==","cpu": [- "s390x"+ "arm"],- "dev": true,"license": "MIT","optional": true,"os": [- "linux"- ],- "engines": {- "node": ">=18"- }+ "android"+ ]},- "node_modules/@esbuild/linux-x64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.1.tgz",- "integrity": "sha512-xbfUhu/gnvSEg+EGovRc+kjBAkrvtk38RlerAzQxvMzlB4fXpCFCeUAYzJvrnhFtdeyVCDANSjJvOvGYoeKzFA==",+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.50.0.tgz",+ "integrity": "sha512-2O73dR4Dc9bp+wSYhviP6sDziurB5/HCym7xILKifWdE9UsOe2FtNcM+I4xZjKrfLJnq5UR8k9riB87gauiQtw==","cpu": [- "x64"+ "arm64"],- "dev": true,"license": "MIT","optional": true,"os": [- "linux"- ],- "engines": {- "node": ">=18"- }+ "android"+ ]},- "node_modules/@esbuild/netbsd-arm64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.1.tgz",- "integrity": "sha512-O96poM2XGhLtpTh+s4+nP7YCCAfb4tJNRVZHfIE7dgmax+yMP2WgMd2OecBuaATHKTHsLWHQeuaxMRnCsH8+5g==",+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.50.0.tgz",+ "integrity": "sha512-vwSXQN8T4sKf1RHr1F0s98Pf8UPz7pS6P3LG9NSmuw0TVh7EmaE+5Ny7hJOZ0M2yuTctEsHHRTMi2wuHkdS6Hg==","cpu": ["arm64"],- "dev": true,"license": "MIT","optional": true,"os": [- "netbsd"- ],- "engines": {- "node": ">=18"- }+ "darwin"+ ]},- "node_modules/@esbuild/netbsd-x64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.1.tgz",- "integrity": "sha512-X53z6uXip6KFXBQ+Krbx25XHV/NCbzryM6ehOAeAil7X7oa4XIq+394PWGnwaSQ2WRA0KI6PUO6hTO5zeF5ijA==",+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.50.0.tgz",+ "integrity": "sha512-cQp/WG8HE7BCGyFVuzUg0FNmupxC+EPZEwWu2FCGGw5WDT1o2/YlENbm5e9SMvfDFR6FRhVCBePLqj0o8MN7Vw==","cpu": ["x64"],- "dev": true,"license": "MIT","optional": true,"os": [- "netbsd"- ],- "engines": {- "node": ">=18"- }+ "darwin"+ ]},- "node_modules/@esbuild/openbsd-arm64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.1.tgz",- "integrity": "sha512-Na9T3szbXezdzM/Kfs3GcRQNjHzM6GzFBeU1/6IV/npKP5ORtp9zbQjvkDJ47s6BCgaAZnnnu/cY1x342+MvZg==",+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.50.0.tgz",+ "integrity": "sha512-UR1uTJFU/p801DvvBbtDD7z9mQL8J80xB0bR7DqW7UGQHRm/OaKzp4is7sQSdbt2pjjSS72eAtRh43hNduTnnQ==","cpu": ["arm64"],- "dev": true,"license": "MIT","optional": true,"os": [- "openbsd"- ],- "engines": {- "node": ">=18"- }+ "freebsd"+ ]},- "node_modules/@esbuild/openbsd-x64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.1.tgz",- "integrity": "sha512-T3H78X2h1tszfRSf+txbt5aOp/e7TAz3ptVKu9Oyir3IAOFPGV6O9c2naym5TOriy1l0nNf6a4X5UXRZSGX/dw==",+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.50.0.tgz",+ "integrity": "sha512-G/DKyS6PK0dD0+VEzH/6n/hWDNPDZSMBmqsElWnCRGrYOb2jC0VSupp7UAHHQ4+QILwkxSMaYIbQ72dktp8pKA==","cpu": ["x64"],- "dev": true,"license": "MIT","optional": true,"os": [- "openbsd"- ],- "engines": {- "node": ">=18"- }+ "freebsd"+ ]},- "node_modules/@esbuild/sunos-x64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.1.tgz",- "integrity": "sha512-2H3RUvcmULO7dIE5EWJH8eubZAI4xw54H1ilJnRNZdeo8dTADEZ21w6J22XBkXqGJbe0+wnNJtw3UXRoLJnFEg==",+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.50.0.tgz",+ "integrity": "sha512-u72Mzc6jyJwKjJbZZcIYmd9bumJu7KNmHYdue43vT1rXPm2rITwmPWF0mmPzLm9/vJWxIRbao/jrQmxTO0Sm9w==","cpu": [- "x64"+ "arm"],- "dev": true,"license": "MIT","optional": true,"os": [- "sunos"- ],- "engines": {- "node": ">=18"- }+ "linux"+ ]},- "node_modules/@esbuild/win32-arm64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.1.tgz",- "integrity": "sha512-GE7XvrdOzrb+yVKB9KsRMq+7a2U/K5Cf/8grVFRAGJmfADr/e/ODQ134RK2/eeHqYV5eQRFxb1hY7Nr15fv1NQ==",+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.50.0.tgz",+ "integrity": "sha512-S4UefYdV0tnynDJV1mdkNawp0E5Qm2MtSs330IyHgaccOFrwqsvgigUD29uT+B/70PDY1eQ3t40+xf6wIvXJyg==","cpu": [- "arm64"+ "arm"],- "dev": true,"license": "MIT","optional": true,"os": [- "win32"- ],- "engines": {- "node": ">=18"- }+ "linux"+ ]},- "node_modules/@esbuild/win32-ia32": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.1.tgz",- "integrity": "sha512-uOxSJCIcavSiT6UnBhBzE8wy3n0hOkJsBOzy7HDAuTDE++1DJMRRVCPGisULScHL+a/ZwdXPpXD3IyFKjA7K8A==",+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.50.0.tgz",+ "integrity": "sha512-1EhkSvUQXJsIhk4msxP5nNAUWoB4MFDHhtc4gAYvnqoHlaL9V3F37pNHabndawsfy/Tp7BPiy/aSa6XBYbaD1g==","cpu": [- "ia32"+ "arm64"],- "dev": true,"license": "MIT","optional": true,"os": [- "win32"- ],- "engines": {- "node": ">=18"- }+ "linux"+ ]},- "node_modules/@esbuild/win32-x64": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.1.tgz",- "integrity": "sha512-Y1EQdcfwMSeQN/ujR5VayLOJ1BHaK+ssyk0AEzPjC+t1lITgsnccPqFjb6V+LsTp/9Iov4ysfjxLaGJ9RPtkVg==",+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.50.0.tgz",+ "integrity": "sha512-EtBDIZuDtVg75xIPIK1l5vCXNNCIRM0OBPUG+tbApDuJAy9mKago6QxX+tfMzbCI6tXEhMuZuN1+CU8iDW+0UQ==","cpu": [- "x64"+ "arm64"],- "dev": true,"license": "MIT","optional": true,"os": [- "win32"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@eslint-community/eslint-utils": {- "version": "4.5.1",- "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.5.1.tgz",- "integrity": "sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w==",- "dev": true,- "license": "MIT",- "dependencies": {- "eslint-visitor-keys": "^3.4.3"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- },- "peerDependencies": {- "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"- }- },- "node_modules/@eslint-community/regexpp": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz",- "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^12.0.0 || ^14.0.0 || >=16.0.0"- }- },- "node_modules/@eslint/eslintrc": {- "version": "2.1.4",- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz",- "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "ajv": "^6.12.4",- "debug": "^4.3.2",- "espree": "^9.6.0",- "globals": "^13.19.0",- "ignore": "^5.2.0",- "import-fresh": "^3.2.1",- "js-yaml": "^4.1.0",- "minimatch": "^3.1.2",- "strip-json-comments": "^3.1.1"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }+ "linux"+ ]},- "node_modules/@eslint/eslintrc/node_modules/globals": {- "version": "13.24.0",- "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",- "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",- "dev": true,+ "node_modules/@rollup/rollup-linux-loongarch64-gnu": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.50.0.tgz",+ "integrity": "sha512-BGYSwJdMP0hT5CCmljuSNx7+k+0upweM2M4YGfFBjnFSZMHOLYR0gEEj/dxyYJ6Zc6AiSeaBY8dWOa11GF/ppQ==",+ "cpu": [+ "loong64"+ ],"license": "MIT",- "dependencies": {- "type-fest": "^0.20.2"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/@eslint/eslintrc/node_modules/type-fest": {- "version": "0.20.2",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",- "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",- "dev": true,- "license": "(MIT OR CC0-1.0)",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }+ "optional": true,+ "os": [+ "linux"+ ]},- "node_modules/@eslint/js": {- "version": "8.57.1",- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz",- "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==",- "dev": true,+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.50.0.tgz",+ "integrity": "sha512-I1gSMzkVe1KzAxKAroCJL30hA4DqSi+wGc5gviD0y3IL/VkvcnAqwBf4RHXHyvH66YVHxpKO8ojrgc4SrWAnLg==",+ "cpu": [+ "ppc64"+ ],"license": "MIT",- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- }- },- "node_modules/@hello-pangea/dnd": {- "version": "18.0.1",- "resolved": "https://registry.npmjs.org/@hello-pangea/dnd/-/dnd-18.0.1.tgz",- "integrity": "sha512-xojVWG8s/TGrKT1fC8K2tIWeejJYTAeJuj36zM//yEm/ZrnZUSFGS15BpO+jGZT1ybWvyXmeDJwPYb4dhWlbZQ==",- "license": "Apache-2.0",- "dependencies": {- "@babel/runtime": "^7.26.7",- "css-box-model": "^1.2.1",- "raf-schd": "^4.0.3",- "react-redux": "^9.2.0",- "redux": "^5.0.1"- },- "peerDependencies": {- "react": "^18.0.0 || ^19.0.0",- "react-dom": "^18.0.0 || ^19.0.0"- }- },- "node_modules/@humanwhocodes/config-array": {- "version": "0.13.0",- "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz",- "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==",- "deprecated": "Use @eslint/config-array instead",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@humanwhocodes/object-schema": "^2.0.3",- "debug": "^4.3.1",- "minimatch": "^3.0.5"- },- "engines": {- "node": ">=10.10.0"- }- },- "node_modules/@humanwhocodes/module-importer": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",- "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=12.22"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/nzakas"- }- },- "node_modules/@humanwhocodes/object-schema": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz",- "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==",- "deprecated": "Use @eslint/object-schema instead",- "dev": true,- "license": "BSD-3-Clause"+ "optional": true,+ "os": [+ "linux"+ ]},- "node_modules/@inquirer/checkbox": {- "version": "4.1.4",- "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.1.4.tgz",- "integrity": "sha512-d30576EZdApjAMceijXA5jDzRQHT/MygbC+J8I7EqA6f/FRpYxlRtRJbHF8gHeWYeSdOuTEJqonn7QLB1ELezA==",- "dev": true,+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.50.0.tgz",+ "integrity": "sha512-bSbWlY3jZo7molh4tc5dKfeSxkqnf48UsLqYbUhnkdnfgZjgufLS/NTA8PcP/dnvct5CCdNkABJ56CbclMRYCA==",+ "cpu": [+ "riscv64"+ ],"license": "MIT",- "dependencies": {- "@inquirer/core": "^10.1.9",- "@inquirer/figures": "^1.0.11",- "@inquirer/type": "^3.0.5",- "ansi-escapes": "^4.3.2",- "yoctocolors-cjs": "^2.1.2"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }+ "optional": true,+ "os": [+ "linux"+ ]},- "node_modules/@inquirer/confirm": {- "version": "5.1.8",- "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.8.tgz",- "integrity": "sha512-dNLWCYZvXDjO3rnQfk2iuJNL4Ivwz/T2+C3+WnNfJKsNGSuOs3wAo2F6e0p946gtSAk31nZMfW+MRmYaplPKsg==",- "dev": true,+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.50.0.tgz",+ "integrity": "sha512-LSXSGumSURzEQLT2e4sFqFOv3LWZsEF8FK7AAv9zHZNDdMnUPYH3t8ZlaeYYZyTXnsob3htwTKeWtBIkPV27iQ==",+ "cpu": [+ "riscv64"+ ],"license": "MIT",- "dependencies": {- "@inquirer/core": "^10.1.9",- "@inquirer/type": "^3.0.5"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }+ "optional": true,+ "os": [+ "linux"+ ]},- "node_modules/@inquirer/core": {- "version": "10.1.9",- "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.9.tgz",- "integrity": "sha512-sXhVB8n20NYkUBfDYgizGHlpRVaCRjtuzNZA6xpALIUbkgfd2Hjz+DfEN6+h1BRnuxw0/P4jCIMjMsEOAMwAJw==",- "dev": true,+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.50.0.tgz",+ "integrity": "sha512-CxRKyakfDrsLXiCyucVfVWVoaPA4oFSpPpDwlMcDFQvrv3XY6KEzMtMZrA+e/goC8xxp2WSOxHQubP8fPmmjOQ==",+ "cpu": [+ "s390x"+ ],"license": "MIT",- "dependencies": {- "@inquirer/figures": "^1.0.11",- "@inquirer/type": "^3.0.5",- "ansi-escapes": "^4.3.2",- "cli-width": "^4.1.0",- "mute-stream": "^2.0.0",- "signal-exit": "^4.1.0",- "wrap-ansi": "^6.2.0",- "yoctocolors-cjs": "^2.1.2"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }+ "optional": true,+ "os": [+ "linux"+ ]},- "node_modules/@inquirer/editor": {- "version": "4.2.9",- "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.9.tgz",- "integrity": "sha512-8HjOppAxO7O4wV1ETUlJFg6NDjp/W2NP5FB9ZPAcinAlNT4ZIWOLe2pUVwmmPRSV0NMdI5r/+lflN55AwZOKSw==",- "dev": true,+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.50.0.tgz",+ "integrity": "sha512-8PrJJA7/VU8ToHVEPu14FzuSAqVKyo5gg/J8xUerMbyNkWkO9j2ExBho/68RnJsMGNJq4zH114iAttgm7BZVkA==",+ "cpu": [+ "x64"+ ],"license": "MIT",- "dependencies": {- "@inquirer/core": "^10.1.9",- "@inquirer/type": "^3.0.5",- "external-editor": "^3.1.0"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }+ "optional": true,+ "os": [+ "linux"+ ]},- "node_modules/@inquirer/expand": {- "version": "4.0.11",- "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.11.tgz",- "integrity": "sha512-OZSUW4hFMW2TYvX/Sv+NnOZgO8CHT2TU1roUCUIF2T+wfw60XFRRp9MRUPCT06cRnKL+aemt2YmTWwt7rOrNEA==",- "dev": true,+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.50.0.tgz",+ "integrity": "sha512-SkE6YQp+CzpyOrbw7Oc4MgXFvTw2UIBElvAvLCo230pyxOLmYwRPwZ/L5lBe/VW/qT1ZgND9wJfOsdy0XptRvw==",+ "cpu": [+ "x64"+ ],"license": "MIT",- "dependencies": {- "@inquirer/core": "^10.1.9",- "@inquirer/type": "^3.0.5",- "yoctocolors-cjs": "^2.1.2"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }- },- "node_modules/@inquirer/figures": {- "version": "1.0.11",- "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.11.tgz",- "integrity": "sha512-eOg92lvrn/aRUqbxRyvpEWnrvRuTYRifixHkYVpJiygTgVSBIHDqLh0SrMQXkafvULg3ck11V7xvR+zcgvpHFw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- }- },- "node_modules/@inquirer/input": {- "version": "4.1.8",- "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.8.tgz",- "integrity": "sha512-WXJI16oOZ3/LiENCAxe8joniNp8MQxF6Wi5V+EBbVA0ZIOpFcL4I9e7f7cXse0HJeIPCWO8Lcgnk98juItCi7Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@inquirer/core": "^10.1.9",- "@inquirer/type": "^3.0.5"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }- },- "node_modules/@inquirer/number": {- "version": "3.0.11",- "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.11.tgz",- "integrity": "sha512-pQK68CsKOgwvU2eA53AG/4npRTH2pvs/pZ2bFvzpBhrznh8Mcwt19c+nMO7LHRr3Vreu1KPhNBF3vQAKrjIulw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@inquirer/core": "^10.1.9",- "@inquirer/type": "^3.0.5"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }- },- "node_modules/@inquirer/password": {- "version": "4.0.11",- "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.11.tgz",- "integrity": "sha512-dH6zLdv+HEv1nBs96Case6eppkRggMe8LoOTl30+Gq5Wf27AO/vHFgStTVz4aoevLdNXqwE23++IXGw4eiOXTg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@inquirer/core": "^10.1.9",- "@inquirer/type": "^3.0.5",- "ansi-escapes": "^4.3.2"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }- },- "node_modules/@inquirer/prompts": {- "version": "7.4.0",- "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.4.0.tgz",- "integrity": "sha512-EZiJidQOT4O5PYtqnu1JbF0clv36oW2CviR66c7ma4LsupmmQlUwmdReGKRp456OWPWMz3PdrPiYg3aCk3op2w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@inquirer/checkbox": "^4.1.4",- "@inquirer/confirm": "^5.1.8",- "@inquirer/editor": "^4.2.9",- "@inquirer/expand": "^4.0.11",- "@inquirer/input": "^4.1.8",- "@inquirer/number": "^3.0.11",- "@inquirer/password": "^4.0.11",- "@inquirer/rawlist": "^4.0.11",- "@inquirer/search": "^3.0.11",- "@inquirer/select": "^4.1.0"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }- },- "node_modules/@inquirer/rawlist": {- "version": "4.0.11",- "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.0.11.tgz",- "integrity": "sha512-uAYtTx0IF/PqUAvsRrF3xvnxJV516wmR6YVONOmCWJbbt87HcDHLfL9wmBQFbNJRv5kCjdYKrZcavDkH3sVJPg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@inquirer/core": "^10.1.9",- "@inquirer/type": "^3.0.5",- "yoctocolors-cjs": "^2.1.2"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }- },- "node_modules/@inquirer/search": {- "version": "3.0.11",- "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.0.11.tgz",- "integrity": "sha512-9CWQT0ikYcg6Ls3TOa7jljsD7PgjcsYEM0bYE+Gkz+uoW9u8eaJCRHJKkucpRE5+xKtaaDbrND+nPDoxzjYyew==",- "dev": true,- "license": "MIT",- "dependencies": {- "@inquirer/core": "^10.1.9",- "@inquirer/figures": "^1.0.11",- "@inquirer/type": "^3.0.5",- "yoctocolors-cjs": "^2.1.2"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }- },- "node_modules/@inquirer/select": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.1.0.tgz",- "integrity": "sha512-z0a2fmgTSRN+YBuiK1ROfJ2Nvrpij5lVN3gPDkQGhavdvIVGHGW29LwYZfM/j42Ai2hUghTI/uoBuTbrJk42bA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@inquirer/core": "^10.1.9",- "@inquirer/figures": "^1.0.11",- "@inquirer/type": "^3.0.5",- "ansi-escapes": "^4.3.2",- "yoctocolors-cjs": "^2.1.2"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }- },- "node_modules/@inquirer/type": {- "version": "3.0.5",- "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.5.tgz",- "integrity": "sha512-ZJpeIYYueOz/i/ONzrfof8g89kNdO2hjGuvULROo3O8rlB2CRtSseE5KeirnyE4t/thAn/EwvS/vuQeJCn+NZg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@types/node": ">=18"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }- },- "node_modules/@isaacs/cliui": {- "version": "8.0.2",- "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",- "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",- "dev": true,- "license": "ISC",- "dependencies": {- "string-width": "^5.1.2",- "string-width-cjs": "npm:string-width@^4.2.0",- "strip-ansi": "^7.0.1",- "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",- "wrap-ansi": "^8.1.0",- "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/@isaacs/cliui/node_modules/ansi-styles": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",- "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/@isaacs/cliui/node_modules/string-width": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",- "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",- "dev": true,- "license": "MIT",- "dependencies": {- "eastasianwidth": "^0.2.0",- "emoji-regex": "^9.2.2",- "strip-ansi": "^7.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/@isaacs/cliui/node_modules/wrap-ansi": {- "version": "8.1.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",- "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^6.1.0",- "string-width": "^5.0.1",- "strip-ansi": "^7.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"- }- },- "node_modules/@isaacs/fs-minipass": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz",- "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==",- "dev": true,- "license": "ISC",- "dependencies": {- "minipass": "^7.0.4"- },- "engines": {- "node": ">=18.0.0"- }- },- "node_modules/@jest/expect-utils": {- "version": "29.7.0",- "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz",- "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==",- "dev": true,- "license": "MIT",- "dependencies": {- "jest-get-type": "^29.6.3"- },- "engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"- }- },- "node_modules/@jest/schemas": {- "version": "29.6.3",- "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz",- "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@sinclair/typebox": "^0.27.8"- },- "engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"- }- },- "node_modules/@jest/types": {- "version": "29.6.3",- "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz",- "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/schemas": "^29.6.3",- "@types/istanbul-lib-coverage": "^2.0.0",- "@types/istanbul-reports": "^3.0.0",- "@types/node": "*",- "@types/yargs": "^17.0.8",- "chalk": "^4.0.0"- },- "engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"- }- },- "node_modules/@joshwooding/vite-plugin-react-docgen-typescript": {- "version": "0.5.0",- "resolved": "https://registry.npmjs.org/@joshwooding/vite-plugin-react-docgen-typescript/-/vite-plugin-react-docgen-typescript-0.5.0.tgz",- "integrity": "sha512-qYDdL7fPwLRI+bJNurVcis+tNgJmvWjH4YTBGXTA8xMuxFrnAz6E5o35iyzyKbq5J5Lr8mJGfrR5GXl+WGwhgQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "glob": "^10.0.0",- "magic-string": "^0.27.0",- "react-docgen-typescript": "^2.2.2"- },- "peerDependencies": {- "typescript": ">= 4.3.x",- "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- }- }- },- "node_modules/@joshwooding/vite-plugin-react-docgen-typescript/node_modules/magic-string": {- "version": "0.27.0",- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz",- "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/sourcemap-codec": "^1.4.13"- },- "engines": {- "node": ">=12"- }- },- "node_modules/@jridgewell/gen-mapping": {- "version": "0.3.8",- "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz",- "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==",- "license": "MIT",- "dependencies": {- "@jridgewell/set-array": "^1.2.1",- "@jridgewell/sourcemap-codec": "^1.4.10",- "@jridgewell/trace-mapping": "^0.3.24"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@jridgewell/resolve-uri": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",- "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",- "license": "MIT",- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@jridgewell/set-array": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz",- "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",- "license": "MIT",- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@jridgewell/sourcemap-codec": {- "version": "1.5.0",- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",- "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",- "license": "MIT"- },- "node_modules/@jridgewell/trace-mapping": {- "version": "0.3.25",- "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",- "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",- "license": "MIT",- "dependencies": {- "@jridgewell/resolve-uri": "^3.1.0",- "@jridgewell/sourcemap-codec": "^1.4.14"- }- },- "node_modules/@mdx-js/react": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/@mdx-js/react/-/react-3.1.0.tgz",- "integrity": "sha512-QjHtSaoameoalGnKDT3FoIl4+9RwyTmo9ZJGBdLOks/YOiWHoRDI3PUwEzOE7kEmGcV3AFcp9K6dYu9rEuKLAQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/mdx": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- },- "peerDependencies": {- "@types/react": ">=16",- "react": ">=16"- }- },- "node_modules/@microsoft/api-extractor": {- "version": "7.52.1",- "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.52.1.tgz",- "integrity": "sha512-m3I5uAwE05orsu3D1AGyisX5KxsgVXB+U4bWOOaX/Z7Ftp/2Cy41qsNhO6LPvSxHBaapyser5dVorF1t5M6tig==",- "dev": true,- "license": "MIT",- "dependencies": {- "@microsoft/api-extractor-model": "7.30.4",- "@microsoft/tsdoc": "~0.15.1",- "@microsoft/tsdoc-config": "~0.17.1",- "@rushstack/node-core-library": "5.12.0",- "@rushstack/rig-package": "0.5.3",- "@rushstack/terminal": "0.15.1",- "@rushstack/ts-command-line": "4.23.6",- "lodash": "~4.17.15",- "minimatch": "~3.0.3",- "resolve": "~1.22.1",- "semver": "~7.5.4",- "source-map": "~0.6.1",- "typescript": "5.8.2"- },- "bin": {- "api-extractor": "bin/api-extractor"- }- },- "node_modules/@microsoft/api-extractor-model": {- "version": "7.30.4",- "resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.30.4.tgz",- "integrity": "sha512-RobC0gyVYsd2Fao9MTKOfTdBm41P/bCMUmzS5mQ7/MoAKEqy0FOBph3JOYdq4X4BsEnMEiSHc+0NUNmdzxCpjA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@microsoft/tsdoc": "~0.15.1",- "@microsoft/tsdoc-config": "~0.17.1",- "@rushstack/node-core-library": "5.12.0"- }- },- "node_modules/@microsoft/api-extractor/node_modules/lru-cache": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",- "dev": true,- "license": "ISC",- "dependencies": {- "yallist": "^4.0.0"- },- "engines": {- "node": ">=10"- }- },- "node_modules/@microsoft/api-extractor/node_modules/minimatch": {- "version": "3.0.8",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.8.tgz",- "integrity": "sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==",- "dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^1.1.7"- },- "engines": {- "node": "*"- }- },- "node_modules/@microsoft/api-extractor/node_modules/semver": {- "version": "7.5.4",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",- "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",- "dev": true,- "license": "ISC",- "dependencies": {- "lru-cache": "^6.0.0"- },- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/@microsoft/api-extractor/node_modules/source-map": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/@microsoft/api-extractor/node_modules/yallist": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",- "dev": true,- "license": "ISC"- },- "node_modules/@microsoft/tsdoc": {- "version": "0.15.1",- "resolved": "https://registry.npmjs.org/@microsoft/tsdoc/-/tsdoc-0.15.1.tgz",- "integrity": "sha512-4aErSrCR/On/e5G2hDP0wjooqDdauzEbIq8hIkIe5pXV0rtWJZvdCEKL0ykZxex+IxIwBp0eGeV48hQN07dXtw==",- "dev": true,- "license": "MIT"- },- "node_modules/@microsoft/tsdoc-config": {- "version": "0.17.1",- "resolved": "https://registry.npmjs.org/@microsoft/tsdoc-config/-/tsdoc-config-0.17.1.tgz",- "integrity": "sha512-UtjIFe0C6oYgTnad4q1QP4qXwLhe6tIpNTRStJ2RZEPIkqQPREAwE5spzVxsdn9UaEMUqhh0AqSx3X4nWAKXWw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@microsoft/tsdoc": "0.15.1",- "ajv": "~8.12.0",- "jju": "~1.4.0",- "resolve": "~1.22.2"- }- },- "node_modules/@microsoft/tsdoc-config/node_modules/ajv": {- "version": "8.12.0",- "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",- "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",- "dev": true,- "license": "MIT",- "dependencies": {- "fast-deep-equal": "^3.1.1",- "json-schema-traverse": "^1.0.0",- "require-from-string": "^2.0.2",- "uri-js": "^4.2.2"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/epoberezkin"- }- },- "node_modules/@microsoft/tsdoc-config/node_modules/json-schema-traverse": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",- "dev": true,- "license": "MIT"- },- "node_modules/@mui/core-downloads-tracker": {- "version": "5.17.1",- "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-5.17.1.tgz",- "integrity": "sha512-OcZj+cs6EfUD39IoPBOgN61zf1XFVY+imsGoBDwXeSq2UHJZE3N59zzBOVjclck91Ne3e9gudONOeILvHCIhUA==",- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- }- },- "node_modules/@mui/icons-material": {- "version": "5.17.1",- "resolved": "https://registry.npmjs.org/@mui/icons-material/-/icons-material-5.17.1.tgz",- "integrity": "sha512-CN86LocjkunFGG0yPlO4bgqHkNGgaEOEc3X/jG5Bzm401qYw79/SaLrofA7yAKCCXAGdIGnLoMHohc3+ubs95A==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.23.9"- },- "engines": {- "node": ">=12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@mui/material": "^5.0.0",- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/material": {- "version": "5.17.1",- "resolved": "https://registry.npmjs.org/@mui/material/-/material-5.17.1.tgz",- "integrity": "sha512-2B33kQf+GmPnrvXXweWAx+crbiUEsxCdCN979QDYnlH9ox4pd+0/IBriWLV+l6ORoBF60w39cWjFnJYGFdzXcw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.23.9",- "@mui/core-downloads-tracker": "^5.17.1",- "@mui/system": "^5.17.1",- "@mui/types": "~7.2.15",- "@mui/utils": "^5.17.1",- "@popperjs/core": "^2.11.8",- "@types/react-transition-group": "^4.4.10",- "clsx": "^2.1.0",- "csstype": "^3.1.3",- "prop-types": "^15.8.1",- "react-is": "^19.0.0",- "react-transition-group": "^4.4.5"- },- "engines": {- "node": ">=12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@emotion/react": "^11.5.0",- "@emotion/styled": "^11.3.0",- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@emotion/react": {- "optional": true- },- "@emotion/styled": {- "optional": true- },- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/private-theming": {- "version": "5.17.1",- "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.17.1.tgz",- "integrity": "sha512-XMxU0NTYcKqdsG8LRmSoxERPXwMbp16sIXPcLVgLGII/bVNagX0xaheWAwFv8+zDK7tI3ajllkuD3GZZE++ICQ==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.23.9",- "@mui/utils": "^5.17.1",- "prop-types": "^15.8.1"- },- "engines": {- "node": ">=12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/styled-engine": {- "version": "5.16.14",- "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.16.14.tgz",- "integrity": "sha512-UAiMPZABZ7p8mUW4akDV6O7N3+4DatStpXMZwPlt+H/dA0lt67qawN021MNND+4QTpjaiMYxbhKZeQcyWCbuKw==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.23.9",- "@emotion/cache": "^11.13.5",- "csstype": "^3.1.3",- "prop-types": "^15.8.1"- },- "engines": {- "node": ">=12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@emotion/react": "^11.4.1",- "@emotion/styled": "^11.3.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@emotion/react": {- "optional": true- },- "@emotion/styled": {- "optional": true- }- }- },- "node_modules/@mui/system": {- "version": "5.17.1",- "resolved": "https://registry.npmjs.org/@mui/system/-/system-5.17.1.tgz",- "integrity": "sha512-aJrmGfQpyF0U4D4xYwA6ueVtQcEMebET43CUmKMP7e7iFh3sMIF3sBR0l8Urb4pqx1CBjHAaWgB0ojpND4Q3Jg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.23.9",- "@mui/private-theming": "^5.17.1",- "@mui/styled-engine": "^5.16.14",- "@mui/types": "~7.2.15",- "@mui/utils": "^5.17.1",- "clsx": "^2.1.0",- "csstype": "^3.1.3",- "prop-types": "^15.8.1"- },- "engines": {- "node": ">=12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@emotion/react": "^11.5.0",- "@emotion/styled": "^11.3.0",- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@emotion/react": {- "optional": true- },- "@emotion/styled": {- "optional": true- },- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/types": {- "version": "7.2.24",- "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.24.tgz",- "integrity": "sha512-3c8tRt/CbWZ+pEg7QpSwbdxOk36EfmhbKf6AGZsD1EcLDLTSZoxxJ86FVtcjxvjuhdyBiWKSTGZFaXCnidO2kw==",- "license": "MIT",- "peerDependencies": {- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@mui/utils": {- "version": "5.17.1",- "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.17.1.tgz",- "integrity": "sha512-jEZ8FTqInt2WzxDV8bhImWBqeQRD99c/id/fq83H0ER9tFl+sfZlaAoCdznGvbSQQ9ividMxqSV2c7cC1vBcQg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.23.9",- "@mui/types": "~7.2.15",- "@types/prop-types": "^15.7.12",- "clsx": "^2.1.1",- "prop-types": "^15.8.1",- "react-is": "^19.0.0"- },- "engines": {- "node": ">=12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/mui-org"- },- "peerDependencies": {- "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",- "react": "^17.0.0 || ^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- }- }- },- "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": {- "version": "5.1.1-v1",- "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz",- "integrity": "sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==",- "dev": true,- "license": "MIT",- "dependencies": {- "eslint-scope": "5.1.1"- }- },- "node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",- "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "esrecurse": "^4.3.0",- "estraverse": "^4.1.1"- },- "engines": {- "node": ">=8.0.0"- }- },- "node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/estraverse": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",- "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=4.0"- }- },- "node_modules/@nivo/annotations": {- "version": "0.88.0",- "resolved": "https://registry.npmjs.org/@nivo/annotations/-/annotations-0.88.0.tgz",- "integrity": "sha512-NXE+1oIUn+EGWMQpnpeRMLgi2wyuzhGDoJQY4OUHissCUiNotid2oNQ/PXJwN0toiu+/j9SyhzI32xr70OPi7Q==",- "license": "MIT",- "dependencies": {- "@nivo/colors": "0.88.0",- "@nivo/core": "0.88.0",- "@react-spring/web": "9.4.5 || ^9.7.2",- "lodash": "^4.17.21"- },- "peerDependencies": {- "react": ">= 16.14.0 < 19.0.0"- }- },- "node_modules/@nivo/axes": {- "version": "0.88.0",- "resolved": "https://registry.npmjs.org/@nivo/axes/-/axes-0.88.0.tgz",- "integrity": "sha512-jF7aIxzTNayV5cI1J/b9Q1FfpMBxTXGk3OwSigXMSfYWlliskDn2u0qGRLiYhuXFdQAWIp4oXsO1GcAQ0eRVdg==",- "license": "MIT",- "dependencies": {- "@nivo/core": "0.88.0",- "@nivo/scales": "0.88.0",- "@react-spring/web": "9.4.5 || ^9.7.2",- "@types/d3-format": "^1.4.1",- "@types/d3-time-format": "^2.3.1",- "d3-format": "^1.4.4",- "d3-time-format": "^3.0.0"- },- "peerDependencies": {- "react": ">= 16.14.0 < 19.0.0"- }- },- "node_modules/@nivo/bar": {- "version": "0.88.0",- "resolved": "https://registry.npmjs.org/@nivo/bar/-/bar-0.88.0.tgz",- "integrity": "sha512-wckwuHWeCikxGvvdRfGL+dVFsUD9uHk1r9s7bWUfOD+p8BWhxtYqfXpHolEfgGg3UyPaHtpGA7P4zgE5vgo7gQ==",- "license": "MIT",- "dependencies": {- "@nivo/annotations": "0.88.0",- "@nivo/axes": "0.88.0",- "@nivo/colors": "0.88.0",- "@nivo/core": "0.88.0",- "@nivo/legends": "0.88.0",- "@nivo/scales": "0.88.0",- "@nivo/tooltip": "0.88.0",- "@react-spring/web": "9.4.5 || ^9.7.2",- "@types/d3-scale": "^4.0.8",- "@types/d3-shape": "^3.1.6",- "d3-scale": "^4.0.2",- "d3-shape": "^3.2.0",- "lodash": "^4.17.21"- },- "peerDependencies": {- "react": ">= 16.14.0 < 19.0.0"- }- },- "node_modules/@nivo/colors": {- "version": "0.88.0",- "resolved": "https://registry.npmjs.org/@nivo/colors/-/colors-0.88.0.tgz",- "integrity": "sha512-IZ+leYIqAlo7dyLHmsQwujanfRgXyoQ5H7PU3RWLEn1PP0zxDKLgEjFEDADpDauuslh2Tx0L81GNkWR6QSP0Mw==",- "license": "MIT",- "dependencies": {- "@nivo/core": "0.88.0",- "@types/d3-color": "^3.0.0",- "@types/d3-scale": "^4.0.8",- "@types/d3-scale-chromatic": "^3.0.0",- "@types/prop-types": "^15.7.2",- "d3-color": "^3.1.0",- "d3-scale": "^4.0.2",- "d3-scale-chromatic": "^3.0.0",- "lodash": "^4.17.21",- "prop-types": "^15.7.2"- },- "peerDependencies": {- "react": ">= 16.14.0 < 19.0.0"- }- },- "node_modules/@nivo/core": {- "version": "0.88.0",- "resolved": "https://registry.npmjs.org/@nivo/core/-/core-0.88.0.tgz",- "integrity": "sha512-XjUkA5MmwjLP38bdrJwn36Gj7T5SYMKD55LYQp/1nIJPdxqJ38dUfE4XyBDfIEgfP6yrHOihw3C63cUdnUBoiw==",- "license": "MIT",- "dependencies": {- "@nivo/tooltip": "0.88.0",- "@react-spring/web": "9.4.5 || ^9.7.2",- "@types/d3-shape": "^3.1.6",- "d3-color": "^3.1.0",- "d3-format": "^1.4.4",- "d3-interpolate": "^3.0.1",- "d3-scale": "^4.0.2",- "d3-scale-chromatic": "^3.0.0",- "d3-shape": "^3.2.0",- "d3-time-format": "^3.0.0",- "lodash": "^4.17.21",- "prop-types": "^15.7.2"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/nivo/donate"- },- "peerDependencies": {- "react": ">= 16.14.0 < 19.0.0"- }- },- "node_modules/@nivo/legends": {- "version": "0.88.0",- "resolved": "https://registry.npmjs.org/@nivo/legends/-/legends-0.88.0.tgz",- "integrity": "sha512-d4DF9pHbD8LmGJlp/Gp1cF4e8y2wfQTcw3jVhbZj9zkb7ZWB7JfeF60VHRfbXNux9bjQ9U78/SssQqueVDPEmg==",- "license": "MIT",- "dependencies": {- "@nivo/colors": "0.88.0",- "@nivo/core": "0.88.0",- "@types/d3-scale": "^4.0.8",- "d3-scale": "^4.0.2"- },- "peerDependencies": {- "react": ">= 16.14.0 < 19.0.0"- }- },- "node_modules/@nivo/scales": {- "version": "0.88.0",- "resolved": "https://registry.npmjs.org/@nivo/scales/-/scales-0.88.0.tgz",- "integrity": "sha512-HbpxkQp6tHCltZ1yDGeqdLcaJl5ze54NPjurfGtx/Uq+H5IQoBd4Tln49bUar5CsFAMsXw8yF1HQvASr7I1SIA==",- "license": "MIT",- "dependencies": {- "@types/d3-scale": "^4.0.8",- "@types/d3-time": "^1.1.1",- "@types/d3-time-format": "^3.0.0",- "d3-scale": "^4.0.2",- "d3-time": "^1.0.11",- "d3-time-format": "^3.0.0",- "lodash": "^4.17.21"- }- },- "node_modules/@nivo/scales/node_modules/@types/d3-time-format": {- "version": "3.0.4",- "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-3.0.4.tgz",- "integrity": "sha512-or9DiDnYI1h38J9hxKEsw513+KVuFbEVhl7qdxcaudoiqWWepapUen+2vAriFGexr6W5+P4l9+HJrB39GG+oRg==",- "license": "MIT"- },- "node_modules/@nivo/tooltip": {- "version": "0.88.0",- "resolved": "https://registry.npmjs.org/@nivo/tooltip/-/tooltip-0.88.0.tgz",- "integrity": "sha512-iEjVfQA8gumAzg/yUinjTwswygCkE5Iwuo8opwnrbpNIqMrleBV+EAKIgB0PrzepIoW8CFG/SJhoiRfbU8jhOw==",- "license": "MIT",- "dependencies": {- "@nivo/core": "0.88.0",- "@react-spring/web": "9.4.5 || ^9.7.2"- },- "peerDependencies": {- "react": ">= 16.14.0 < 19.0.0"- }- },- "node_modules/@nodelib/fs.scandir": {- "version": "2.1.5",- "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",- "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@nodelib/fs.stat": "2.0.5",- "run-parallel": "^1.1.9"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/@nodelib/fs.stat": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",- "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 8"- }- },- "node_modules/@nodelib/fs.walk": {- "version": "1.2.8",- "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",- "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@nodelib/fs.scandir": "2.1.5",- "fastq": "^1.6.0"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/@pkgjs/parseargs": {- "version": "0.11.0",- "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",- "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",- "dev": true,- "license": "MIT",- "optional": true,- "engines": {- "node": ">=14"- }- },- "node_modules/@pkgr/core": {- "version": "0.1.1",- "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz",- "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^12.20.0 || ^14.18.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/unts"- }- },- "node_modules/@popperjs/core": {- "version": "2.11.8",- "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",- "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/popperjs"- }- },- "node_modules/@raphiniert/ra-data-postgrest": {- "version": "2.4.1",- "resolved": "https://registry.npmjs.org/@raphiniert/ra-data-postgrest/-/ra-data-postgrest-2.4.1.tgz",- "integrity": "sha512-2v4XE/9wy7dTfafJuDFDb3u0ZvyBpURZ0hNv3uc0TcnxLR+sXHYeOv3WNzIMKLKN2dsDllU3qytQE63/Z8SmLA==",- "license": "MIT",- "dependencies": {- "lodash.isequal": "^4.5.0",- "qs": "^6.12.1"- },- "peerDependencies": {- "ra-core": "^3.0.0 || ^4.1.0 || ^5.0.1"- }- },- "node_modules/@react-spring/animated": {- "version": "9.7.5",- "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.7.5.tgz",- "integrity": "sha512-Tqrwz7pIlsSDITzxoLS3n/v/YCUHQdOIKtOJf4yL6kYVSDTSmVK1LI1Q3M/uu2Sx4X3pIWF3xLUhlsA6SPNTNg==",- "license": "MIT",- "dependencies": {- "@react-spring/shared": "~9.7.5",- "@react-spring/types": "~9.7.5"- },- "peerDependencies": {- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"- }- },- "node_modules/@react-spring/core": {- "version": "9.7.5",- "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.7.5.tgz",- "integrity": "sha512-rmEqcxRcu7dWh7MnCcMXLvrf6/SDlSokLaLTxiPlAYi11nN3B5oiCUAblO72o+9z/87j2uzxa2Inm8UbLjXA+w==",- "license": "MIT",- "dependencies": {- "@react-spring/animated": "~9.7.5",- "@react-spring/shared": "~9.7.5",- "@react-spring/types": "~9.7.5"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/react-spring/donate"- },- "peerDependencies": {- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"- }- },- "node_modules/@react-spring/rafz": {- "version": "9.7.5",- "resolved": "https://registry.npmjs.org/@react-spring/rafz/-/rafz-9.7.5.tgz",- "integrity": "sha512-5ZenDQMC48wjUzPAm1EtwQ5Ot3bLIAwwqP2w2owG5KoNdNHpEJV263nGhCeKKmuA3vG2zLLOdu3or6kuDjA6Aw==",- "license": "MIT"- },- "node_modules/@react-spring/shared": {- "version": "9.7.5",- "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.7.5.tgz",- "integrity": "sha512-wdtoJrhUeeyD/PP/zo+np2s1Z820Ohr/BbuVYv+3dVLW7WctoiN7std8rISoYoHpUXtbkpesSKuPIw/6U1w1Pw==",- "license": "MIT",- "dependencies": {- "@react-spring/rafz": "~9.7.5",- "@react-spring/types": "~9.7.5"- },- "peerDependencies": {- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"- }- },- "node_modules/@react-spring/types": {- "version": "9.7.5",- "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.7.5.tgz",- "integrity": "sha512-HVj7LrZ4ReHWBimBvu2SKND3cDVUPWKLqRTmWe/fNY6o1owGOX0cAHbdPDTMelgBlVbrTKrre6lFkhqGZErK/g==",- "license": "MIT"- },- "node_modules/@react-spring/web": {- "version": "9.7.5",- "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.7.5.tgz",- "integrity": "sha512-lmvqGwpe+CSttsWNZVr+Dg62adtKhauGwLyGE/RRyZ8AAMLgb9x3NDMA5RMElXo+IMyTkPp7nxTB8ZQlmhb6JQ==",- "license": "MIT",- "dependencies": {- "@react-spring/animated": "~9.7.5",- "@react-spring/core": "~9.7.5",- "@react-spring/shared": "~9.7.5",- "@react-spring/types": "~9.7.5"- },- "peerDependencies": {- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"- }- },- "node_modules/@rollup/pluginutils": {- "version": "5.1.4",- "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.1.4.tgz",- "integrity": "sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/estree": "^1.0.0",- "estree-walker": "^2.0.2",- "picomatch": "^4.0.2"- },- "engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0"- },- "peerDependenciesMeta": {- "rollup": {- "optional": true- }- }- },- "node_modules/@rollup/rollup-android-arm-eabi": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.36.0.tgz",- "integrity": "sha512-jgrXjjcEwN6XpZXL0HUeOVGfjXhPyxAbbhD0BlXUB+abTOpbPiN5Wb3kOT7yb+uEtATNYF5x5gIfwutmuBA26w==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-android-arm64": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.36.0.tgz",- "integrity": "sha512-NyfuLvdPdNUfUNeYKUwPwKsE5SXa2J6bCt2LdB/N+AxShnkpiczi3tcLJrm5mA+eqpy0HmaIY9F6XCa32N5yzg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-darwin-arm64": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.36.0.tgz",- "integrity": "sha512-JQ1Jk5G4bGrD4pWJQzWsD8I1n1mgPXq33+/vP4sk8j/z/C2siRuxZtaUA7yMTf71TCZTZl/4e1bfzwUmFb3+rw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-darwin-x64": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.36.0.tgz",- "integrity": "sha512-6c6wMZa1lrtiRsbDziCmjE53YbTkxMYhhnWnSW8R/yqsM7a6mSJ3uAVT0t8Y/DGt7gxUWYuFM4bwWk9XCJrFKA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-freebsd-arm64": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.36.0.tgz",- "integrity": "sha512-KXVsijKeJXOl8QzXTsA+sHVDsFOmMCdBRgFmBb+mfEb/7geR7+C8ypAml4fquUt14ZyVXaw2o1FWhqAfOvA4sg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-freebsd-x64": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.36.0.tgz",- "integrity": "sha512-dVeWq1ebbvByI+ndz4IJcD4a09RJgRYmLccwlQ8bPd4olz3Y213uf1iwvc7ZaxNn2ab7bjc08PrtBgMu6nb4pQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-linux-arm-gnueabihf": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.36.0.tgz",- "integrity": "sha512-bvXVU42mOVcF4le6XSjscdXjqx8okv4n5vmwgzcmtvFdifQ5U4dXFYaCB87namDRKlUL9ybVtLQ9ztnawaSzvg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm-musleabihf": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.36.0.tgz",- "integrity": "sha512-JFIQrDJYrxOnyDQGYkqnNBtjDwTgbasdbUiQvcU8JmGDfValfH1lNpng+4FWlhaVIR4KPkeddYjsVVbmJYvDcg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-gnu": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.36.0.tgz",- "integrity": "sha512-KqjYVh3oM1bj//5X7k79PSCZ6CvaVzb7Qs7VMWS+SlWB5M8p3FqufLP9VNp4CazJ0CsPDLwVD9r3vX7Ci4J56A==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-musl": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.36.0.tgz",- "integrity": "sha512-QiGnhScND+mAAtfHqeT+cB1S9yFnNQ/EwCg5yE3MzoaZZnIV0RV9O5alJAoJKX/sBONVKeZdMfO8QSaWEygMhw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-loongarch64-gnu": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.36.0.tgz",- "integrity": "sha512-1ZPyEDWF8phd4FQtTzMh8FQwqzvIjLsl6/84gzUxnMNFBtExBtpL51H67mV9xipuxl1AEAerRBgBwFNpkw8+Lg==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-powerpc64le-gnu": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.36.0.tgz",- "integrity": "sha512-VMPMEIUpPFKpPI9GZMhJrtu8rxnp6mJR3ZzQPykq4xc2GmdHj3Q4cA+7avMyegXy4n1v+Qynr9fR88BmyO74tg==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-gnu": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.36.0.tgz",- "integrity": "sha512-ttE6ayb/kHwNRJGYLpuAvB7SMtOeQnVXEIpMtAvx3kepFQeowVED0n1K9nAdraHUPJ5hydEMxBpIR7o4nrm8uA==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-s390x-gnu": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.36.0.tgz",- "integrity": "sha512-4a5gf2jpS0AIe7uBjxDeUMNcFmaRTbNv7NxI5xOCs4lhzsVyGR/0qBXduPnoWf6dGC365saTiwag8hP1imTgag==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-gnu": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.36.0.tgz",- "integrity": "sha512-5KtoW8UWmwFKQ96aQL3LlRXX16IMwyzMq/jSSVIIyAANiE1doaQsx/KRyhAvpHlPjPiSU/AYX/8m+lQ9VToxFQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-musl": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.36.0.tgz",- "integrity": "sha512-sycrYZPrv2ag4OCvaN5js+f01eoZ2U+RmT5as8vhxiFz+kxwlHrsxOwKPSA8WyS+Wc6Epid9QeI/IkQ9NkgYyQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-win32-arm64-msvc": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.36.0.tgz",- "integrity": "sha512-qbqt4N7tokFwwSVlWDsjfoHgviS3n/vZ8LK0h1uLG9TYIRuUTJC88E1xb3LM2iqZ/WTqNQjYrtmtGmrmmawB6A==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-ia32-msvc": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.36.0.tgz",- "integrity": "sha512-t+RY0JuRamIocMuQcfwYSOkmdX9dtkr1PbhKW42AMvaDQa+jOdpUYysroTF/nuPpAaQMWp7ye+ndlmmthieJrQ==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-msvc": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.36.0.tgz",- "integrity": "sha512-aRXd7tRZkWLqGbChgcMMDEHjOKudo1kChb1Jt1IfR8cY/KIpgNviLeJy5FUb9IpSuQj8dU2fAYNMPW/hLKOSTw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rtsao/scc": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/@rtsao/scc/-/scc-1.1.0.tgz",- "integrity": "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==",- "dev": true,- "license": "MIT"- },- "node_modules/@rushstack/eslint-patch": {- "version": "1.11.0",- "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.11.0.tgz",- "integrity": "sha512-zxnHvoMQVqewTJr/W4pKjF0bMGiKJv1WX7bSrkl46Hg0QjESbzBROWK0Wg4RphzSOS5Jiy7eFimmM3UgMrMZbQ==",- "dev": true,- "license": "MIT"- },- "node_modules/@rushstack/node-core-library": {- "version": "5.12.0",- "resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-5.12.0.tgz",- "integrity": "sha512-QSwwzgzWoil1SCQse+yCHwlhRxNv2dX9siPnAb9zR/UmMhac4mjMrlMZpk64BlCeOFi1kJKgXRkihSwRMbboAQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "ajv": "~8.13.0",- "ajv-draft-04": "~1.0.0",- "ajv-formats": "~3.0.1",- "fs-extra": "~11.3.0",- "import-lazy": "~4.0.0",- "jju": "~1.4.0",- "resolve": "~1.22.1",- "semver": "~7.5.4"- },- "peerDependencies": {- "@types/node": "*"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }- },- "node_modules/@rushstack/node-core-library/node_modules/ajv": {- "version": "8.13.0",- "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.13.0.tgz",- "integrity": "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA==",- "dev": true,- "license": "MIT",- "dependencies": {- "fast-deep-equal": "^3.1.3",- "json-schema-traverse": "^1.0.0",- "require-from-string": "^2.0.2",- "uri-js": "^4.4.1"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/epoberezkin"- }- },- "node_modules/@rushstack/node-core-library/node_modules/ajv-draft-04": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz",- "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "ajv": "^8.5.0"- },- "peerDependenciesMeta": {- "ajv": {- "optional": true- }- }- },- "node_modules/@rushstack/node-core-library/node_modules/json-schema-traverse": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",- "dev": true,- "license": "MIT"- },- "node_modules/@rushstack/node-core-library/node_modules/lru-cache": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",- "dev": true,- "license": "ISC",- "dependencies": {- "yallist": "^4.0.0"- },- "engines": {- "node": ">=10"- }- },- "node_modules/@rushstack/node-core-library/node_modules/semver": {- "version": "7.5.4",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",- "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",- "dev": true,- "license": "ISC",- "dependencies": {- "lru-cache": "^6.0.0"- },- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/@rushstack/node-core-library/node_modules/yallist": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",- "dev": true,- "license": "ISC"- },- "node_modules/@rushstack/rig-package": {- "version": "0.5.3",- "resolved": "https://registry.npmjs.org/@rushstack/rig-package/-/rig-package-0.5.3.tgz",- "integrity": "sha512-olzSSjYrvCNxUFZowevC3uz8gvKr3WTpHQ7BkpjtRpA3wK+T0ybep/SRUMfr195gBzJm5gaXw0ZMgjIyHqJUow==",- "dev": true,- "license": "MIT",- "dependencies": {- "resolve": "~1.22.1",- "strip-json-comments": "~3.1.1"- }- },- "node_modules/@rushstack/terminal": {- "version": "0.15.1",- "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.15.1.tgz",- "integrity": "sha512-3vgJYwumcjoDOXU3IxZfd616lqOdmr8Ezj4OWgJZfhmiBK4Nh7eWcv8sU8N/HdzXcuHDXCRGn/6O2Q75QvaZMA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@rushstack/node-core-library": "5.12.0",- "supports-color": "~8.1.1"- },- "peerDependencies": {- "@types/node": "*"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- }- }- },- "node_modules/@rushstack/terminal/node_modules/supports-color": {- "version": "8.1.1",- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",- "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "has-flag": "^4.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/supports-color?sponsor=1"- }- },- "node_modules/@rushstack/ts-command-line": {- "version": "4.23.6",- "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-4.23.6.tgz",- "integrity": "sha512-7WepygaF3YPEoToh4MAL/mmHkiIImQq3/uAkQX46kVoKTNOOlCtFGyNnze6OYuWw2o9rxsyrHVfIBKxq/am2RA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@rushstack/terminal": "0.15.1",- "@types/argparse": "1.0.38",- "argparse": "~1.0.9",- "string-argv": "~0.3.1"- }- },- "node_modules/@rushstack/ts-command-line/node_modules/argparse": {- "version": "1.0.10",- "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",- "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",- "dev": true,- "license": "MIT",- "dependencies": {- "sprintf-js": "~1.0.2"- }- },- "node_modules/@sec-ant/readable-stream": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/@sec-ant/readable-stream/-/readable-stream-0.4.1.tgz",- "integrity": "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==",- "dev": true,- "license": "MIT"- },- "node_modules/@sinclair/typebox": {- "version": "0.27.8",- "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz",- "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==",- "dev": true,- "license": "MIT"- },- "node_modules/@sindresorhus/merge-streams": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-4.0.0.tgz",- "integrity": "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/@storybook/addon-actions": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/addon-actions/-/addon-actions-8.6.7.tgz",- "integrity": "sha512-XgZCwIcZGThEyD7e2q7rN/jzg7ZHUxn/ln403eex04jWAGBBbtC2IVuowwCWV8HwDihnhpCZEP6HlgjakOYZbQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/global": "^5.0.0",- "@types/uuid": "^9.0.1",- "dequal": "^2.0.2",- "polished": "^4.2.2",- "uuid": "^9.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/addon-backgrounds": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/addon-backgrounds/-/addon-backgrounds-8.6.7.tgz",- "integrity": "sha512-aDFzi83gDhYn0+FGjRYbY5TfBtoG/UgVr9Abi7s5ceabZRhPrYikMyFX0o8V3Z8COl6wUmWmF1luYE4MfXgN2g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/global": "^5.0.0",- "memoizerific": "^1.11.3",- "ts-dedent": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/addon-controls": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/addon-controls/-/addon-controls-8.6.7.tgz",- "integrity": "sha512-6ReB1Sc1qlqvAM7NUmtw2K1cKCgGBs8zYRgL44Q2ti+r55a2ownhm6WUm/kZs2ixSkV9ehm1osiqbGBfAn0Isw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/global": "^5.0.0",- "dequal": "^2.0.2",- "ts-dedent": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/addon-docs": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/addon-docs/-/addon-docs-8.6.7.tgz",- "integrity": "sha512-kgNPEVuLGNJE8EdVQi5Tg2DYgR66/gut07jvhqnJfNqUkj6UpBHad0JR1uwrd7xS3kJs29Fs7UyU87RJnSlwcg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@mdx-js/react": "^3.0.0",- "@storybook/blocks": "8.6.7",- "@storybook/csf-plugin": "8.6.7",- "@storybook/react-dom-shim": "8.6.7",- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",- "ts-dedent": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/addon-essentials": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/addon-essentials/-/addon-essentials-8.6.7.tgz",- "integrity": "sha512-PFT62xuknk4wD1hTZEnYbGP1mJFPlhk7zVVlMjoldMUhmbHsFRhdWCpo93Vu9E3BWVxFxL3Jj+UwSwH4uVmekQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/addon-actions": "8.6.7",- "@storybook/addon-backgrounds": "8.6.7",- "@storybook/addon-controls": "8.6.7",- "@storybook/addon-docs": "8.6.7",- "@storybook/addon-highlight": "8.6.7",- "@storybook/addon-measure": "8.6.7",- "@storybook/addon-outline": "8.6.7",- "@storybook/addon-toolbars": "8.6.7",- "@storybook/addon-viewport": "8.6.7",- "ts-dedent": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/addon-highlight": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/addon-highlight/-/addon-highlight-8.6.7.tgz",- "integrity": "sha512-4KE1RF4XfqII7XrJPgf/1W0t0EWRKmik5Rrpb6WofXfgZ2QYzLFnyESjf67/g2TMgDnle2drfa/pt5tGV4+I2Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/global": "^5.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/addon-interactions": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/addon-interactions/-/addon-interactions-8.6.7.tgz",- "integrity": "sha512-FbEWWxCl/5DJDyEGTJqtTJ5XbxM2rOUGCPy+3CkPSpI9yvz3zprRTJRHPFrh7hUqQ4Qkqfjm7JCO29+0CmeE0g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/global": "^5.0.0",- "@storybook/instrumenter": "8.6.7",- "@storybook/test": "8.6.7",- "polished": "^4.2.2",- "ts-dedent": "^2.2.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/addon-links": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/addon-links/-/addon-links-8.6.7.tgz",- "integrity": "sha512-fIiXlaOa9Bv2tbBshQbh/BjzGOilXVx+6nrX9VkLOg7UvzAvivtSraRmPWjgdtsChAHC8Xac42KUCNGQ/rkf5w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/global": "^5.0.0",- "ts-dedent": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",- "storybook": "^8.6.7"- },- "peerDependenciesMeta": {- "react": {- "optional": true- }- }- },- "node_modules/@storybook/addon-measure": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/addon-measure/-/addon-measure-8.6.7.tgz",- "integrity": "sha512-4dkkCltjKRcJH+ZMv5nbNT0LBQfcXIydVfN9mAvhDsiPFD5eZcHbN4XVfUslECWgrkaa/a6FE1W9PNEUBjCJaA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/global": "^5.0.0",- "tiny-invariant": "^1.3.1"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/addon-onboarding": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/addon-onboarding/-/addon-onboarding-8.6.7.tgz",- "integrity": "sha512-40D1O9abhriKI/i4SQ7iyOMLusO8xFkyoMIBdx1iz4lfwO4cKhR5ymE4slAm+pYLc6+voD0EESCIHyXTEHDJxQ==",- "dev": true,- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/addon-outline": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/addon-outline/-/addon-outline-8.6.7.tgz",- "integrity": "sha512-atCpCi2CqAWQwL1nu1l5VpIA4fRMnbD4RZMsEiib1suUfNyJv0RdsSgZhp/f+e9sUS0TtMdwhzWT36eEA7VxhQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/global": "^5.0.0",- "ts-dedent": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/addon-toolbars": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/addon-toolbars/-/addon-toolbars-8.6.7.tgz",- "integrity": "sha512-gR+mRs+Cc5GINZdKgE7afJLFCSMHkz40+zzdrPu6yY2P4B3UOvuQpt+zC/Er5YQ31EEjIvM6/XMQTM0i2db8AA==",- "dev": true,- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/addon-viewport": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/addon-viewport/-/addon-viewport-8.6.7.tgz",- "integrity": "sha512-kTrt6ByCbBIbqoRqQO9watDl5nSIKCC+R0/EmpEl6ZtzBV3l8trZHdvCHhIqOyv7nfaa7pIeTTG1GD6Gdrxk3w==",- "dev": true,- "license": "MIT",- "dependencies": {- "memoizerific": "^1.11.3"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/blocks": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/blocks/-/blocks-8.6.7.tgz",- "integrity": "sha512-IFhIKO7R1UPpnoG/5tZH0FgC79oYgXNf+7aGUwq29M/CQWy6p/Pvp0y4P962btY1UZRol+SsU//33nH8o6yNRw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/icons": "^1.2.12",- "ts-dedent": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",- "storybook": "^8.6.7"- },- "peerDependenciesMeta": {- "react": {- "optional": true- },- "react-dom": {- "optional": true- }- }- },- "node_modules/@storybook/builder-vite": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/builder-vite/-/builder-vite-8.6.7.tgz",- "integrity": "sha512-hgYnVu2cy8clrmDwidu4XjvFMTEi9WiblLH5cPI3LWQjVajIQmDpcWVp6kbD063sIOphh9zYP7cVKGO7ktMB/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/csf-plugin": "8.6.7",- "browser-assert": "^1.2.1",- "ts-dedent": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7",- "vite": "^4.0.0 || ^5.0.0 || ^6.0.0"- }- },- "node_modules/@storybook/components": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/components/-/components-8.6.7.tgz",- "integrity": "sha512-8pnjH1w7PZ/Iiuve1/BJY7EO/kmu0qdE34X1ZM8DyHzuy33EL/PfUuhxNkrL4ayMXrEDp/EJMHx2bqO1RdRV6A==",- "dev": true,- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0"- }- },- "node_modules/@storybook/core": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/core/-/core-8.6.7.tgz",- "integrity": "sha512-FcvLFA+Qn3+D6LgQkk0MOXA5FBz8DGc0UZmZuVbIwIUV4MV4ywCMwtKdG0cyhtzQg0YNyfiIYWJr7lZ4jLLhYg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/theming": "8.6.7",- "better-opn": "^3.0.2",- "browser-assert": "^1.2.1",- "esbuild": "^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0 || ^0.25.0",- "esbuild-register": "^3.5.0",- "jsdoc-type-pratt-parser": "^4.0.0",- "process": "^0.11.10",- "recast": "^0.23.5",- "semver": "^7.6.2",- "util": "^0.12.5",- "ws": "^8.2.3"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "prettier": "^2 || ^3"- },- "peerDependenciesMeta": {- "prettier": {- "optional": true- }- }- },- "node_modules/@storybook/core/node_modules/semver": {- "version": "7.7.1",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",- "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/@storybook/csf": {- "version": "0.1.13",- "resolved": "https://registry.npmjs.org/@storybook/csf/-/csf-0.1.13.tgz",- "integrity": "sha512-7xOOwCLGB3ebM87eemep89MYRFTko+D8qE7EdAAq74lgdqRR5cOUtYWJLjO2dLtP94nqoOdHJo6MdLLKzg412Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "type-fest": "^2.19.0"- }- },- "node_modules/@storybook/csf-plugin": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/csf-plugin/-/csf-plugin-8.6.7.tgz",- "integrity": "sha512-HK7yQD4kFu04JOKnUwoFeR58r5WY6ucF0D8zfW4Gx+r8hBJ5K4t3z6k2dlIlRQF1X5+2vNkQOwD8liHjckuZ8Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "unplugin": "^1.3.1"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/csf/node_modules/type-fest": {- "version": "2.19.0",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz",- "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==",- "dev": true,- "license": "(MIT OR CC0-1.0)",- "engines": {- "node": ">=12.20"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/@storybook/global": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/@storybook/global/-/global-5.0.0.tgz",- "integrity": "sha512-FcOqPAXACP0I3oJ/ws6/rrPT9WGhu915Cg8D02a9YxLo0DE9zI+a9A5gRGvmQ09fiWPukqI8ZAEoQEdWUKMQdQ==",- "dev": true,- "license": "MIT"- },- "node_modules/@storybook/icons": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/@storybook/icons/-/icons-1.4.0.tgz",- "integrity": "sha512-Td73IeJxOyalzvjQL+JXx72jlIYHgs+REaHiREOqfpo3A2AYYG71AUbcv+lg7mEDIweKVCxsMQ0UKo634c8XeA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta"- }- },- "node_modules/@storybook/instrumenter": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/instrumenter/-/instrumenter-8.6.7.tgz",- "integrity": "sha512-FeQiV0g5crCWs0P1wKY4xZzb4PxAYNcrm2+9LLGVqwnC7qzrSCPf0p10MlveVfwsen1m6Wbqfe+wl21c31Hfmg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/global": "^5.0.0",- "@vitest/utils": "^2.1.1"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/manager-api": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/manager-api/-/manager-api-8.6.7.tgz",- "integrity": "sha512-BA8RxaLP07WGF660LWo7qB3Jomr/+MPuCZmuKPqXxPhfIovqYjr0hnugxJBjEah0ic31aNX4NucNfDRuV7F5sA==",- "dev": true,- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0"- }- },- "node_modules/@storybook/preview-api": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/preview-api/-/preview-api-8.6.7.tgz",- "integrity": "sha512-Rz83Nx43v3Dn9/SjhIsorkcx1gPmlclueuzf6YywJTqE1E/L4dgoe2mOA9MfF0jr0bh3TwEA2J3ii0Jstg1Orw==",- "dev": true,- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0"- }- },- "node_modules/@storybook/react": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/react/-/react-8.6.7.tgz",- "integrity": "sha512-6R8znSm7kzsoAJyRbEiDWE+5xjeAIzwEcfT60fqx+uMdd0vDFM7f2uT4fYy+CijWas1oFWcNV/LMd3EqSkBGsQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/components": "8.6.7",- "@storybook/global": "^5.0.0",- "@storybook/manager-api": "8.6.7",- "@storybook/preview-api": "8.6.7",- "@storybook/react-dom-shim": "8.6.7",- "@storybook/theming": "8.6.7"- },- "engines": {- "node": ">=18.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "@storybook/test": "8.6.7",- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",- "storybook": "^8.6.7",- "typescript": ">= 4.2.x"- },- "peerDependenciesMeta": {- "@storybook/test": {- "optional": true- },- "typescript": {- "optional": true- }- }- },- "node_modules/@storybook/react-dom-shim": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/react-dom-shim/-/react-dom-shim-8.6.7.tgz",- "integrity": "sha512-+JH7gbRI6NRbt9o0l1rY4wFdeVt8wGRddm0b55OBlwBGlFo2nvGVOH73J4AGphXVhfY7z33I3TXIjXQ561UdEQ==",- "dev": true,- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/react-vite": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/react-vite/-/react-vite-8.6.7.tgz",- "integrity": "sha512-KiTeYaZ+AUQ1AFHSItP8dhUbd2v7Qy8+BB7w64VxQMw/dw5n0Z38lo4Tzdlkn22q2smW2ce4QwAzh2pfTz3b8g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@joshwooding/vite-plugin-react-docgen-typescript": "0.5.0",- "@rollup/pluginutils": "^5.0.2",- "@storybook/builder-vite": "8.6.7",- "@storybook/react": "8.6.7",- "find-up": "^5.0.0",- "magic-string": "^0.30.0",- "react-docgen": "^7.0.0",- "resolve": "^1.22.8",- "tsconfig-paths": "^4.2.0"- },- "engines": {- "node": ">=18.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "@storybook/test": "8.6.7",- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",- "storybook": "^8.6.7",- "vite": "^4.0.0 || ^5.0.0 || ^6.0.0"- },- "peerDependenciesMeta": {- "@storybook/test": {- "optional": true- }- }- },- "node_modules/@storybook/test": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/test/-/test-8.6.7.tgz",- "integrity": "sha512-uF1JbBtdT7tuiXfEtHsUShBHIhm2vc0C39nKVJaTWyK9CybajXaj2Ny3IRa3oY9NKnklwGgN+kZ/Z9YiIOc4MQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/global": "^5.0.0",- "@storybook/instrumenter": "8.6.7",- "@testing-library/dom": "10.4.0",- "@testing-library/jest-dom": "6.5.0",- "@testing-library/user-event": "14.5.2",- "@vitest/expect": "2.0.5",- "@vitest/spy": "2.0.5"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.6.7"- }- },- "node_modules/@storybook/test/node_modules/@testing-library/jest-dom": {- "version": "6.5.0",- "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.5.0.tgz",- "integrity": "sha512-xGGHpBXYSHUUr6XsKBfs85TWlYKpTc37cSBBVrXcib2MkHLboWlkClhWF37JKlDb9KEq3dHs+f2xR7XJEWGBxA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@adobe/css-tools": "^4.4.0",- "aria-query": "^5.0.0",- "chalk": "^3.0.0",- "css.escape": "^1.5.1",- "dom-accessibility-api": "^0.6.3",- "lodash": "^4.17.21",- "redent": "^3.0.0"- },- "engines": {- "node": ">=14",- "npm": ">=6",- "yarn": ">=1"- }- },- "node_modules/@storybook/test/node_modules/@testing-library/user-event": {- "version": "14.5.2",- "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.5.2.tgz",- "integrity": "sha512-YAh82Wh4TIrxYLmfGcixwD18oIjyC1pFQC2Y01F2lzV2HTMiYrI0nze0FD0ocB//CKS/7jIUgae+adPqxK5yCQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12",- "npm": ">=6"- },- "peerDependencies": {- "@testing-library/dom": ">=7.21.4"- }- },- "node_modules/@storybook/test/node_modules/chalk": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/@storybook/test/node_modules/dom-accessibility-api": {- "version": "0.6.3",- "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz",- "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==",- "dev": true,- "license": "MIT"- },- "node_modules/@storybook/theming": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/@storybook/theming/-/theming-8.6.7.tgz",- "integrity": "sha512-F/i4XS5bew9dvtNiHvDJF0mko1IUbPM9PUjTYPaw6cK8ytS0kdec703MsJ/GUA7seeEWBeGdZjV3ua0pys650A==",- "dev": true,- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/storybook"- },- "peerDependencies": {- "storybook": "^8.2.0 || ^8.3.0-0 || ^8.4.0-0 || ^8.5.0-0 || ^8.6.0-0"- }- },- "node_modules/@supabase/auth-js": {- "version": "2.68.0",- "resolved": "https://registry.npmjs.org/@supabase/auth-js/-/auth-js-2.68.0.tgz",- "integrity": "sha512-odG7nb7aOmZPUXk6SwL2JchSsn36Ppx11i2yWMIc/meUO2B2HK9YwZHPK06utD9Ql9ke7JKDbwGin/8prHKxxQ==",- "license": "MIT",- "dependencies": {- "@supabase/node-fetch": "^2.6.14"- }- },- "node_modules/@supabase/functions-js": {- "version": "2.4.4",- "resolved": "https://registry.npmjs.org/@supabase/functions-js/-/functions-js-2.4.4.tgz",- "integrity": "sha512-WL2p6r4AXNGwop7iwvul2BvOtuJ1YQy8EbOd0dhG1oN1q8el/BIRSFCFnWAMM/vJJlHWLi4ad22sKbKr9mvjoA==",- "license": "MIT",- "dependencies": {- "@supabase/node-fetch": "^2.6.14"- }- },- "node_modules/@supabase/node-fetch": {- "version": "2.6.15",- "resolved": "https://registry.npmjs.org/@supabase/node-fetch/-/node-fetch-2.6.15.tgz",- "integrity": "sha512-1ibVeYUacxWYi9i0cf5efil6adJ9WRyZBLivgjs+AUpewx1F3xPi7gLgaASI2SmIQxPoCEjAsLAzKPgMJVgOUQ==",- "license": "MIT",- "dependencies": {- "whatwg-url": "^5.0.0"- },- "engines": {- "node": "4.x || >=6.0.0"- }- },- "node_modules/@supabase/postgrest-js": {- "version": "1.19.2",- "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.19.2.tgz",- "integrity": "sha512-MXRbk4wpwhWl9IN6rIY1mR8uZCCG4MZAEji942ve6nMwIqnBgBnZhZlON6zTTs6fgveMnoCILpZv1+K91jN+ow==",- "license": "MIT",- "dependencies": {- "@supabase/node-fetch": "^2.6.14"- }- },- "node_modules/@supabase/realtime-js": {- "version": "2.11.2",- "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.11.2.tgz",- "integrity": "sha512-u/XeuL2Y0QEhXSoIPZZwR6wMXgB+RQbJzG9VErA3VghVt7uRfSVsjeqd7m5GhX3JR6dM/WRmLbVR8URpDWG4+w==",- "license": "MIT",- "dependencies": {- "@supabase/node-fetch": "^2.6.14",- "@types/phoenix": "^1.5.4",- "@types/ws": "^8.5.10",- "ws": "^8.18.0"- }- },- "node_modules/@supabase/storage-js": {- "version": "2.7.1",- "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-2.7.1.tgz",- "integrity": "sha512-asYHcyDR1fKqrMpytAS1zjyEfvxuOIp1CIXX7ji4lHHcJKqyk+sLl/Vxgm4sN6u8zvuUtae9e4kDxQP2qrwWBA==",- "license": "MIT",- "dependencies": {- "@supabase/node-fetch": "^2.6.14"- }- },- "node_modules/@supabase/supabase-js": {- "version": "2.49.1",- "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.49.1.tgz",- "integrity": "sha512-lKaptKQB5/juEF5+jzmBeZlz69MdHZuxf+0f50NwhL+IE//m4ZnOeWlsKRjjsM0fVayZiQKqLvYdBn0RLkhGiQ==",- "license": "MIT",- "dependencies": {- "@supabase/auth-js": "2.68.0",- "@supabase/functions-js": "2.4.4",- "@supabase/node-fetch": "2.6.15",- "@supabase/postgrest-js": "1.19.2",- "@supabase/realtime-js": "2.11.2",- "@supabase/storage-js": "2.7.1"- }- },- "node_modules/@tanstack/query-core": {- "version": "5.69.0",- "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.69.0.tgz",- "integrity": "sha512-Kn410jq6vs1P8Nm+ZsRj9H+U3C0kjuEkYLxbiCyn3MDEiYor1j2DGVULqAz62SLZtUZ/e9Xt6xMXiJ3NJ65WyQ==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/tannerlinsley"- }- },- "node_modules/@tanstack/react-query": {- "version": "5.69.0",- "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.69.0.tgz",- "integrity": "sha512-Ift3IUNQqTcaFa1AiIQ7WCb/PPy8aexZdq9pZWLXhfLcLxH0+PZqJ2xFImxCpdDZrFRZhLJrh76geevS5xjRhA==",- "license": "MIT",- "dependencies": {- "@tanstack/query-core": "5.69.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/tannerlinsley"- },- "peerDependencies": {- "react": "^18 || ^19"- }- },- "node_modules/@testing-library/dom": {- "version": "10.4.0",- "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.0.tgz",- "integrity": "sha512-pemlzrSESWbdAloYml3bAJMEfNh1Z7EduzqPKprCH5S341frlpYnUEW0H72dLxa6IsYr+mPno20GiSm+h9dEdQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.10.4",- "@babel/runtime": "^7.12.5",- "@types/aria-query": "^5.0.1",- "aria-query": "5.3.0",- "chalk": "^4.1.0",- "dom-accessibility-api": "^0.5.9",- "lz-string": "^1.5.0",- "pretty-format": "^27.0.2"- },- "engines": {- "node": ">=18"- }- },- "node_modules/@testing-library/jest-dom": {- "version": "6.6.3",- "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.6.3.tgz",- "integrity": "sha512-IteBhl4XqYNkM54f4ejhLRJiZNqcSCoXUOG2CPK7qbD322KjQozM4kHQOfkG2oln9b9HTYqs+Sae8vBATubxxA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@adobe/css-tools": "^4.4.0",- "aria-query": "^5.0.0",- "chalk": "^3.0.0",- "css.escape": "^1.5.1",- "dom-accessibility-api": "^0.6.3",- "lodash": "^4.17.21",- "redent": "^3.0.0"- },- "engines": {- "node": ">=14",- "npm": ">=6",- "yarn": ">=1"- }- },- "node_modules/@testing-library/jest-dom/node_modules/chalk": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",- "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api": {- "version": "0.6.3",- "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz",- "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==",- "dev": true,- "license": "MIT"- },- "node_modules/@testing-library/react": {- "version": "16.2.0",- "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.2.0.tgz",- "integrity": "sha512-2cSskAvA1QNtKc8Y9VJQRv0tm3hLVgxRGDB+KYhIaPQJ1I+RHbhIXcM+zClKXzMes/wshsMVzf4B9vS4IZpqDQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.12.5"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "@testing-library/dom": "^10.0.0",- "@types/react": "^18.0.0 || ^19.0.0",- "@types/react-dom": "^18.0.0 || ^19.0.0",- "react": "^18.0.0 || ^19.0.0",- "react-dom": "^18.0.0 || ^19.0.0"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- },- "@types/react-dom": {- "optional": true- }- }- },- "node_modules/@testing-library/user-event": {- "version": "14.6.1",- "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.6.1.tgz",- "integrity": "sha512-vq7fv0rnt+QTXgPxr5Hjc210p6YKq2kmdziLgnsZGgLJ9e6VAShx1pACLuRjd/AS/sr7phAR58OIIpf0LlmQNw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12",- "npm": ">=6"- },- "peerDependencies": {- "@testing-library/dom": ">=7.21.4"- }- },- "node_modules/@types/argparse": {- "version": "1.0.38",- "resolved": "https://registry.npmjs.org/@types/argparse/-/argparse-1.0.38.tgz",- "integrity": "sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/aria-query": {- "version": "5.0.4",- "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz",- "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/babel__core": {- "version": "7.20.5",- "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",- "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.20.7",- "@babel/types": "^7.20.7",- "@types/babel__generator": "*",- "@types/babel__template": "*",- "@types/babel__traverse": "*"- }- },- "node_modules/@types/babel__generator": {- "version": "7.6.8",- "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz",- "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.0.0"- }- },- "node_modules/@types/babel__template": {- "version": "7.4.4",- "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",- "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.1.0",- "@babel/types": "^7.0.0"- }- },- "node_modules/@types/babel__traverse": {- "version": "7.20.6",- "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz",- "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.20.7"- }- },- "node_modules/@types/cookie": {- "version": "0.6.0",- "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.6.0.tgz",- "integrity": "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==",- "license": "MIT"- },- "node_modules/@types/d3-color": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz",- "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==",- "license": "MIT"- },- "node_modules/@types/d3-format": {- "version": "1.4.5",- "resolved": "https://registry.npmjs.org/@types/d3-format/-/d3-format-1.4.5.tgz",- "integrity": "sha512-mLxrC1MSWupOSncXN/HOlWUAAIffAEBaI4+PKy2uMPsKe4FNZlk7qrbTjmzJXITQQqBHivaks4Td18azgqnotA==",- "license": "MIT"- },- "node_modules/@types/d3-path": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz",- "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==",- "license": "MIT"- },- "node_modules/@types/d3-scale": {- "version": "4.0.9",- "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz",- "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==",- "license": "MIT",- "dependencies": {- "@types/d3-time": "*"- }- },- "node_modules/@types/d3-scale-chromatic": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz",- "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==",- "license": "MIT"- },- "node_modules/@types/d3-shape": {- "version": "3.1.7",- "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.7.tgz",- "integrity": "sha512-VLvUQ33C+3J+8p+Daf+nYSOsjB4GXp19/S/aGo60m9h1v6XaxjiT82lKVWJCfzhtuZ3yD7i/TPeC/fuKLLOSmg==",- "license": "MIT",- "dependencies": {- "@types/d3-path": "*"- }- },- "node_modules/@types/d3-time": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-1.1.4.tgz",- "integrity": "sha512-JIvy2HjRInE+TXOmIGN5LCmeO0hkFZx5f9FZ7kiN+D+YTcc8pptsiLiuHsvwxwC7VVKmJ2ExHUgNlAiV7vQM9g==",- "license": "MIT"- },- "node_modules/@types/d3-time-format": {- "version": "2.3.4",- "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-2.3.4.tgz",- "integrity": "sha512-xdDXbpVO74EvadI3UDxjxTdR6QIxm1FKzEA/+F8tL4GWWUg/hgvBqf6chql64U5A9ZUGWo7pEu4eNlyLwbKdhg==",- "license": "MIT"- },- "node_modules/@types/doctrine": {- "version": "0.0.9",- "resolved": "https://registry.npmjs.org/@types/doctrine/-/doctrine-0.0.9.tgz",- "integrity": "sha512-eOIHzCUSH7SMfonMG1LsC2f8vxBFtho6NGBznK41R84YzPuvSBzrhEps33IsQiOW9+VL6NQ9DbjQJznk/S4uRA==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/estree": {- "version": "1.0.6",- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",- "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/faker": {- "version": "5.5.9",- "resolved": "https://registry.npmjs.org/@types/faker/-/faker-5.5.9.tgz",- "integrity": "sha512-uCx6mP3UY5SIO14XlspxsGjgaemrxpssJI0Ol+GfhxtcKpv9pgRZYsS4eeKeHVLje6Qtc8lGszuBI461+gVZBA==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/istanbul-lib-coverage": {- "version": "2.0.6",- "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz",- "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/istanbul-lib-report": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz",- "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/istanbul-lib-coverage": "*"- }- },- "node_modules/@types/istanbul-reports": {- "version": "3.0.4",- "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz",- "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/istanbul-lib-report": "*"- }- },- "node_modules/@types/jest": {- "version": "29.5.14",- "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz",- "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "expect": "^29.0.0",- "pretty-format": "^29.0.0"- }- },- "node_modules/@types/jest/node_modules/ansi-styles": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",- "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/@types/jest/node_modules/pretty-format": {- "version": "29.7.0",- "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",- "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/schemas": "^29.6.3",- "ansi-styles": "^5.0.0",- "react-is": "^18.0.0"- },- "engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"- }- },- "node_modules/@types/jest/node_modules/react-is": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",- "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/json-schema": {- "version": "7.0.15",- "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",- "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/json5": {- "version": "0.0.29",- "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",- "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/jsonexport": {- "version": "3.0.5",- "resolved": "https://registry.npmjs.org/@types/jsonexport/-/jsonexport-3.0.5.tgz",- "integrity": "sha512-+zDVaDqNguePOU11YNEsuf/ZRS1ciHeKVYGjfvDFmgG6aCy/s4W4Wy1MiXJIbiyMJLuakGLENCndvmGZpVTV1w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/node": "*"- }- },- "node_modules/@types/lodash": {- "version": "4.17.16",- "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.16.tgz",- "integrity": "sha512-HX7Em5NYQAXKW+1T+FiuG27NGwzJfCX3s1GjOa7ujxZa52kjJLOr4FUxT+giF6Tgxv1e+/czV/iTtBw27WTU9g==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/mdx": {- "version": "2.0.13",- "resolved": "https://registry.npmjs.org/@types/mdx/-/mdx-2.0.13.tgz",- "integrity": "sha512-+OWZQfAYyio6YkJb3HLxDrvnx6SWWDbC0zVPfBRzUk0/nqoDyf6dNxQi3eArPe8rJ473nobTMQ/8Zk+LxJ+Yuw==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/node": {- "version": "22.13.10",- "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz",- "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==",- "license": "MIT",- "dependencies": {- "undici-types": "~6.20.0"- }- },- "node_modules/@types/papaparse": {- "version": "5.3.15",- "resolved": "https://registry.npmjs.org/@types/papaparse/-/papaparse-5.3.15.tgz",- "integrity": "sha512-JHe6vF6x/8Z85nCX4yFdDslN11d+1pr12E526X8WAfhadOeaOTx5AuIkvDKIBopfvlzpzkdMx4YyvSKCM9oqtw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/node": "*"- }- },- "node_modules/@types/parse-json": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz",- "integrity": "sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==",- "license": "MIT"- },- "node_modules/@types/pg": {- "version": "8.11.11",- "resolved": "https://registry.npmjs.org/@types/pg/-/pg-8.11.11.tgz",- "integrity": "sha512-kGT1qKM8wJQ5qlawUrEkXgvMSXoV213KfMGXcwfDwUIfUHXqXYXOfS1nE1LINRJVVVx5wCm70XnFlMHaIcQAfw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/node": "*",- "pg-protocol": "*",- "pg-types": "^4.0.1"- }- },- "node_modules/@types/phoenix": {- "version": "1.6.6",- "resolved": "https://registry.npmjs.org/@types/phoenix/-/phoenix-1.6.6.tgz",- "integrity": "sha512-PIzZZlEppgrpoT2QgbnDU+MMzuR6BbCjllj0bM70lWoejMeNJAxCchxnv7J3XFkI8MpygtRpzXrIlmWUBclP5A==",- "license": "MIT"- },- "node_modules/@types/prop-types": {- "version": "15.7.14",- "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.14.tgz",- "integrity": "sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==",- "license": "MIT"- },- "node_modules/@types/react": {- "version": "19.0.12",- "resolved": "https://registry.npmjs.org/@types/react/-/react-19.0.12.tgz",- "integrity": "sha512-V6Ar115dBDrjbtXSrS+/Oruobc+qVbbUxDFC1RSbRqLt5SYvxxyIDrSC85RWml54g+jfNeEMZhEj7wW07ONQhA==",- "license": "MIT",- "dependencies": {- "csstype": "^3.0.2"- }- },- "node_modules/@types/react-dom": {- "version": "19.0.4",- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.0.4.tgz",- "integrity": "sha512-4fSQ8vWFkg+TGhePfUzVmat3eC14TXYSsiiDSLI0dVLsrm9gZFABjPy/Qu6TKgl1tq1Bu1yDsuQgY3A3DOjCcg==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "@types/react": "^19.0.0"- }- },- "node_modules/@types/react-transition-group": {- "version": "4.4.12",- "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.12.tgz",- "integrity": "sha512-8TV6R3h2j7a91c+1DXdJi3Syo69zzIZbz7Lg5tORM5LEJG7X/E6a1V3drRyBRZq7/utz7A+c4OgYLiLcYGHG6w==",- "license": "MIT",- "peerDependencies": {- "@types/react": "*"- }- },- "node_modules/@types/resolve": {- "version": "1.20.6",- "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.20.6.tgz",- "integrity": "sha512-A4STmOXPhMUtHH+S6ymgE2GiBSMqf4oTvcQZMcHzokuTLVYzXTB8ttjcgxOVaAp2lGwEdzZ0J+cRbbeevQj1UQ==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/semver": {- "version": "7.5.8",- "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz",- "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/stack-utils": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz",- "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/trusted-types": {- "version": "2.0.7",- "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz",- "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==",- "license": "MIT",- "optional": true- },- "node_modules/@types/use-sync-external-store": {- "version": "0.0.6",- "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz",- "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==",- "license": "MIT"- },- "node_modules/@types/uuid": {- "version": "9.0.8",- "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz",- "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/ws": {- "version": "8.18.0",- "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.0.tgz",- "integrity": "sha512-8svvI3hMyvN0kKCJMvTJP/x6Y/EoQbepff882wL+Sn5QsXb3etnamgrJq4isrBxSJj5L2AuXcI0+bgkoAXGUJw==",- "license": "MIT",- "dependencies": {- "@types/node": "*"- }- },- "node_modules/@types/yargs": {- "version": "17.0.33",- "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz",- "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/yargs-parser": "*"- }- },- "node_modules/@types/yargs-parser": {- "version": "21.0.3",- "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz",- "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==",- "dev": true,- "license": "MIT"- },- "node_modules/@typescript-eslint/eslint-plugin": {- "version": "5.62.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz",- "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/regexpp": "^4.4.0",- "@typescript-eslint/scope-manager": "5.62.0",- "@typescript-eslint/type-utils": "5.62.0",- "@typescript-eslint/utils": "5.62.0",- "debug": "^4.3.4",- "graphemer": "^1.4.0",- "ignore": "^5.2.0",- "natural-compare-lite": "^1.4.0",- "semver": "^7.3.7",- "tsutils": "^3.21.0"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "@typescript-eslint/parser": "^5.0.0",- "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- }- }- },- "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": {- "version": "7.7.1",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",- "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/@typescript-eslint/experimental-utils": {- "version": "5.62.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.62.0.tgz",- "integrity": "sha512-RTXpeB3eMkpoclG3ZHft6vG/Z30azNHuqY6wKPBHlVMZFuEvrtlEDe8gMqDb+SO+9hjC/pLekeSCryf9vMZlCw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/utils": "5.62.0"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"- }- },- "node_modules/@typescript-eslint/parser": {- "version": "5.62.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz",- "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "@typescript-eslint/scope-manager": "5.62.0",- "@typescript-eslint/types": "5.62.0",- "@typescript-eslint/typescript-estree": "5.62.0",- "debug": "^4.3.4"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- }- }- },- "node_modules/@typescript-eslint/scope-manager": {- "version": "5.62.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz",- "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "5.62.0",- "@typescript-eslint/visitor-keys": "5.62.0"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@typescript-eslint/type-utils": {- "version": "5.62.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz",- "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/typescript-estree": "5.62.0",- "@typescript-eslint/utils": "5.62.0",- "debug": "^4.3.4",- "tsutils": "^3.21.0"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "*"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- }- }- },- "node_modules/@typescript-eslint/types": {- "version": "5.62.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz",- "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@typescript-eslint/typescript-estree": {- "version": "5.62.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz",- "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "@typescript-eslint/types": "5.62.0",- "@typescript-eslint/visitor-keys": "5.62.0",- "debug": "^4.3.4",- "globby": "^11.1.0",- "is-glob": "^4.0.3",- "semver": "^7.3.7",- "tsutils": "^3.21.0"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- }- }- },- "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {- "version": "7.7.1",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",- "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/@typescript-eslint/utils": {- "version": "5.62.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz",- "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/eslint-utils": "^4.2.0",- "@types/json-schema": "^7.0.9",- "@types/semver": "^7.3.12",- "@typescript-eslint/scope-manager": "5.62.0",- "@typescript-eslint/types": "5.62.0",- "@typescript-eslint/typescript-estree": "5.62.0",- "eslint-scope": "^5.1.1",- "semver": "^7.3.7"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"- }- },- "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",- "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "esrecurse": "^4.3.0",- "estraverse": "^4.1.1"- },- "engines": {- "node": ">=8.0.0"- }- },- "node_modules/@typescript-eslint/utils/node_modules/estraverse": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",- "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=4.0"- }- },- "node_modules/@typescript-eslint/utils/node_modules/semver": {- "version": "7.7.1",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",- "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/@typescript-eslint/visitor-keys": {- "version": "5.62.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz",- "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "5.62.0",- "eslint-visitor-keys": "^3.3.0"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@ungap/structured-clone": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz",- "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==",- "dev": true,- "license": "ISC"- },- "node_modules/@vitejs/plugin-react": {- "version": "4.3.4",- "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.3.4.tgz",- "integrity": "sha512-SCCPBJtYLdE8PX/7ZQAs1QAZ8Jqwih+0VBLum1EGqmCCQal+MIUqLCzj3ZUy8ufbC0cAM4LRlSTm7IQJwWT4ug==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/core": "^7.26.0",- "@babel/plugin-transform-react-jsx-self": "^7.25.9",- "@babel/plugin-transform-react-jsx-source": "^7.25.9",- "@types/babel__core": "^7.20.5",- "react-refresh": "^0.14.2"- },- "engines": {- "node": "^14.18.0 || >=16.0.0"- },- "peerDependencies": {- "vite": "^4.2.0 || ^5.0.0 || ^6.0.0"- }- },- "node_modules/@vitest/expect": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.0.5.tgz",- "integrity": "sha512-yHZtwuP7JZivj65Gxoi8upUN2OzHTi3zVfjwdpu2WrvCZPLwsJ2Ey5ILIPccoW23dd/zQBlJ4/dhi7DWNyXCpA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/spy": "2.0.5",- "@vitest/utils": "2.0.5",- "chai": "^5.1.1",- "tinyrainbow": "^1.2.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/expect/node_modules/@vitest/pretty-format": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.0.5.tgz",- "integrity": "sha512-h8k+1oWHfwTkyTkb9egzwNMfJAEx4veaPSnMeKbVSjp4euqGSbQlm5+6VHwTr7u4FJslVVsUG5nopCaAYdOmSQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "tinyrainbow": "^1.2.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/expect/node_modules/@vitest/utils": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.0.5.tgz",- "integrity": "sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/pretty-format": "2.0.5",- "estree-walker": "^3.0.3",- "loupe": "^3.1.1",- "tinyrainbow": "^1.2.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/expect/node_modules/estree-walker": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",- "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/estree": "^1.0.0"- }- },- "node_modules/@vitest/mocker": {- "version": "3.0.9",- "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.0.9.tgz",- "integrity": "sha512-ryERPIBOnvevAkTq+L1lD+DTFBRcjueL9lOUfXsLfwP92h4e+Heb+PjiqS3/OURWPtywfafK0kj++yDFjWUmrA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/spy": "3.0.9",- "estree-walker": "^3.0.3",- "magic-string": "^0.30.17"- },- "funding": {- "url": "https://opencollective.com/vitest"- },- "peerDependencies": {- "msw": "^2.4.9",- "vite": "^5.0.0 || ^6.0.0"- },- "peerDependenciesMeta": {- "msw": {- "optional": true- },- "vite": {- "optional": true- }- }- },- "node_modules/@vitest/mocker/node_modules/@vitest/spy": {- "version": "3.0.9",- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.0.9.tgz",- "integrity": "sha512-/CcK2UDl0aQ2wtkp3YVWldrpLRNCfVcIOFGlVGKO4R5eajsH393Z1yiXLVQ7vWsj26JOEjeZI0x5sm5P4OGUNQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "tinyspy": "^3.0.2"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/mocker/node_modules/estree-walker": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",- "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/estree": "^1.0.0"- }- },- "node_modules/@vitest/pretty-format": {- "version": "2.1.9",- "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.9.tgz",- "integrity": "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "tinyrainbow": "^1.2.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/runner": {- "version": "3.0.9",- "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.0.9.tgz",- "integrity": "sha512-NX9oUXgF9HPfJSwl8tUZCMP1oGx2+Sf+ru6d05QjzQz4OwWg0psEzwY6VexP2tTHWdOkhKHUIZH+fS6nA7jfOw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/utils": "3.0.9",- "pathe": "^2.0.3"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/runner/node_modules/@vitest/pretty-format": {- "version": "3.0.9",- "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.0.9.tgz",- "integrity": "sha512-OW9F8t2J3AwFEwENg3yMyKWweF7oRJlMyHOMIhO5F3n0+cgQAJZBjNgrF8dLwFTEXl5jUqBLXd9QyyKv8zEcmA==",- "dev": true,- "license": "MIT",- "dependencies": {- "tinyrainbow": "^2.0.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/runner/node_modules/@vitest/utils": {- "version": "3.0.9",- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.0.9.tgz",- "integrity": "sha512-ilHM5fHhZ89MCp5aAaM9uhfl1c2JdxVxl3McqsdVyVNN6JffnEen8UMCdRTzOhGXNQGo5GNL9QugHrz727Wnng==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/pretty-format": "3.0.9",- "loupe": "^3.1.3",- "tinyrainbow": "^2.0.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/runner/node_modules/tinyrainbow": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz",- "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@vitest/snapshot": {- "version": "3.0.9",- "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.0.9.tgz",- "integrity": "sha512-AiLUiuZ0FuA+/8i19mTYd+re5jqjEc2jZbgJ2up0VY0Ddyyxg/uUtBDpIFAy4uzKaQxOW8gMgBdAJJ2ydhu39A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/pretty-format": "3.0.9",- "magic-string": "^0.30.17",- "pathe": "^2.0.3"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/snapshot/node_modules/@vitest/pretty-format": {- "version": "3.0.9",- "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.0.9.tgz",- "integrity": "sha512-OW9F8t2J3AwFEwENg3yMyKWweF7oRJlMyHOMIhO5F3n0+cgQAJZBjNgrF8dLwFTEXl5jUqBLXd9QyyKv8zEcmA==",- "dev": true,- "license": "MIT",- "dependencies": {- "tinyrainbow": "^2.0.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/snapshot/node_modules/tinyrainbow": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz",- "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@vitest/spy": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.0.5.tgz",- "integrity": "sha512-c/jdthAhvJdpfVuaexSrnawxZz6pywlTPe84LUB2m/4t3rl2fTo9NFGBG4oWgaD+FTgDDV8hJ/nibT7IfH3JfA==",- "dev": true,- "license": "MIT",- "dependencies": {- "tinyspy": "^3.0.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/utils": {- "version": "2.1.9",- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.9.tgz",- "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/pretty-format": "2.1.9",- "loupe": "^3.1.2",- "tinyrainbow": "^1.2.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@volar/language-core": {- "version": "2.4.12",- "resolved": "https://registry.npmjs.org/@volar/language-core/-/language-core-2.4.12.tgz",- "integrity": "sha512-RLrFdXEaQBWfSnYGVxvR2WrO6Bub0unkdHYIdC31HzIEqATIuuhRRzYu76iGPZ6OtA4Au1SnW0ZwIqPP217YhA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@volar/source-map": "2.4.12"- }- },- "node_modules/@volar/source-map": {- "version": "2.4.12",- "resolved": "https://registry.npmjs.org/@volar/source-map/-/source-map-2.4.12.tgz",- "integrity": "sha512-bUFIKvn2U0AWojOaqf63ER0N/iHIBYZPpNGogfLPQ68F5Eet6FnLlyho7BS0y2HJ1jFhSif7AcuTx1TqsCzRzw==",- "dev": true,- "license": "MIT"- },- "node_modules/@volar/typescript": {- "version": "2.4.12",- "resolved": "https://registry.npmjs.org/@volar/typescript/-/typescript-2.4.12.tgz",- "integrity": "sha512-HJB73OTJDgPc80K30wxi3if4fSsZZAOScbj2fcicMuOPoOkcf9NNAINb33o+DzhBdF9xTKC1gnPmIRDous5S0g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@volar/language-core": "2.4.12",- "path-browserify": "^1.0.1",- "vscode-uri": "^3.0.8"- }- },- "node_modules/@vue/compiler-core": {- "version": "3.5.13",- "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.13.tgz",- "integrity": "sha512-oOdAkwqUfW1WqpwSYJce06wvt6HljgY3fGeM9NcVA1HaYOij3mZG9Rkysn0OHuyUAGMbEbARIpsG+LPVlBJ5/Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.25.3",- "@vue/shared": "3.5.13",- "entities": "^4.5.0",- "estree-walker": "^2.0.2",- "source-map-js": "^1.2.0"- }- },- "node_modules/@vue/compiler-dom": {- "version": "3.5.13",- "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.13.tgz",- "integrity": "sha512-ZOJ46sMOKUjO3e94wPdCzQ6P1Lx/vhp2RSvfaab88Ajexs0AHeV0uasYhi99WPaogmBlRHNRuly8xV75cNTMDA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vue/compiler-core": "3.5.13",- "@vue/shared": "3.5.13"- }- },- "node_modules/@vue/compiler-vue2": {- "version": "2.7.16",- "resolved": "https://registry.npmjs.org/@vue/compiler-vue2/-/compiler-vue2-2.7.16.tgz",- "integrity": "sha512-qYC3Psj9S/mfu9uVi5WvNZIzq+xnXMhOwbTFKKDD7b1lhpnn71jXSFdTQ+WsIEk0ONCd7VV2IMm7ONl6tbQ86A==",- "dev": true,- "license": "MIT",- "dependencies": {- "de-indent": "^1.0.2",- "he": "^1.2.0"- }- },- "node_modules/@vue/language-core": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/@vue/language-core/-/language-core-2.2.0.tgz",- "integrity": "sha512-O1ZZFaaBGkKbsRfnVH1ifOK1/1BUkyK+3SQsfnh6PmMmD4qJcTU8godCeA96jjDRTL6zgnK7YzCHfaUlH2r0Mw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@volar/language-core": "~2.4.11",- "@vue/compiler-dom": "^3.5.0",- "@vue/compiler-vue2": "^2.7.16",- "@vue/shared": "^3.5.0",- "alien-signals": "^0.4.9",- "minimatch": "^9.0.3",- "muggle-string": "^0.4.1",- "path-browserify": "^1.0.1"- },- "peerDependencies": {- "typescript": "*"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- }- }- },- "node_modules/@vue/language-core/node_modules/brace-expansion": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0"- }- },- "node_modules/@vue/language-core/node_modules/minimatch": {- "version": "9.0.5",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",- "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",- "dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^2.0.1"- },- "engines": {- "node": ">=16 || 14 >=14.17"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/@vue/shared": {- "version": "3.5.13",- "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.13.tgz",- "integrity": "sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ==",- "dev": true,- "license": "MIT"- },- "node_modules/@zeit/schemas": {- "version": "2.36.0",- "resolved": "https://registry.npmjs.org/@zeit/schemas/-/schemas-2.36.0.tgz",- "integrity": "sha512-7kjMwcChYEzMKjeex9ZFXkt1AyNov9R5HZtjBKVsmVpw7pa7ZtlCGvCBC2vnnXctaYN+aRI61HjIqeetZW5ROg==",- "license": "MIT"- },- "node_modules/accepts": {- "version": "1.3.8",- "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",- "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",- "license": "MIT",- "dependencies": {- "mime-types": "~2.1.34",- "negotiator": "0.6.3"- },- "engines": {- "node": ">= 0.6"- }- },- "node_modules/acorn": {- "version": "8.14.1",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz",- "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==",- "dev": true,- "license": "MIT",- "bin": {- "acorn": "bin/acorn"- },- "engines": {- "node": ">=0.4.0"- }- },- "node_modules/acorn-jsx": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",- "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"- }- },- "node_modules/agent-base": {- "version": "7.1.3",- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",- "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 14"- }- },- "node_modules/ajv": {- "version": "6.12.6",- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",- "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",- "dev": true,- "license": "MIT",- "dependencies": {- "fast-deep-equal": "^3.1.1",- "fast-json-stable-stringify": "^2.0.0",- "json-schema-traverse": "^0.4.1",- "uri-js": "^4.2.2"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/epoberezkin"- }- },- "node_modules/ajv-formats": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz",- "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "ajv": "^8.0.0"- },- "peerDependencies": {- "ajv": "^8.0.0"- },- "peerDependenciesMeta": {- "ajv": {- "optional": true- }- }- },- "node_modules/ajv-formats/node_modules/ajv": {- "version": "8.17.1",- "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",- "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",- "dev": true,- "license": "MIT",- "dependencies": {- "fast-deep-equal": "^3.1.3",- "fast-uri": "^3.0.1",- "json-schema-traverse": "^1.0.0",- "require-from-string": "^2.0.2"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/epoberezkin"- }- },- "node_modules/ajv-formats/node_modules/json-schema-traverse": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",- "dev": true,- "license": "MIT"- },- "node_modules/alien-signals": {- "version": "0.4.14",- "resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-0.4.14.tgz",- "integrity": "sha512-itUAVzhczTmP2U5yX67xVpsbbOiquusbWVyA9N+sy6+r6YVbFkahXvNCeEPWEOMhwDYwbVbGHFkVL03N9I5g+Q==",- "dev": true,- "license": "MIT"- },- "node_modules/ansi-align": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz",- "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==",- "license": "ISC",- "dependencies": {- "string-width": "^4.1.0"- }- },- "node_modules/ansi-align/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",- "license": "MIT"- },- "node_modules/ansi-align/node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/ansi-align/node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/ansi-align/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/ansi-escapes": {- "version": "4.3.2",- "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",- "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "type-fest": "^0.21.3"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/ansi-styles": {- "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"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/arch": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/arch/-/arch-2.2.0.tgz",- "integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==",- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"- },- {- "type": "consulting",- "url": "https://feross.org/support"- }- ],- "license": "MIT"- },- "node_modules/arg": {- "version": "5.0.2",- "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",- "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",- "license": "MIT"- },- "node_modules/argparse": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",- "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",- "dev": true,- "license": "Python-2.0"- },- "node_modules/aria-query": {- "version": "5.3.0",- "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",- "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "dequal": "^2.0.3"- }- },- "node_modules/array-buffer-byte-length": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz",- "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bound": "^1.0.3",- "is-array-buffer": "^3.0.5"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/array-includes": {- "version": "3.1.8",- "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.8.tgz",- "integrity": "sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.7",- "define-properties": "^1.2.1",- "es-abstract": "^1.23.2",- "es-object-atoms": "^1.0.0",- "get-intrinsic": "^1.2.4",- "is-string": "^1.0.7"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/array-union": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",- "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/array.prototype.findlast": {- "version": "1.2.5",- "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz",- "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.7",- "define-properties": "^1.2.1",- "es-abstract": "^1.23.2",- "es-errors": "^1.3.0",- "es-object-atoms": "^1.0.0",- "es-shim-unscopables": "^1.0.2"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/array.prototype.findlastindex": {- "version": "1.2.6",- "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.6.tgz",- "integrity": "sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.8",- "call-bound": "^1.0.4",- "define-properties": "^1.2.1",- "es-abstract": "^1.23.9",- "es-errors": "^1.3.0",- "es-object-atoms": "^1.1.1",- "es-shim-unscopables": "^1.1.0"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/array.prototype.flat": {- "version": "1.3.3",- "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.3.tgz",- "integrity": "sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.8",- "define-properties": "^1.2.1",- "es-abstract": "^1.23.5",- "es-shim-unscopables": "^1.0.2"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/array.prototype.flatmap": {- "version": "1.3.3",- "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.3.tgz",- "integrity": "sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.8",- "define-properties": "^1.2.1",- "es-abstract": "^1.23.5",- "es-shim-unscopables": "^1.0.2"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/array.prototype.tosorted": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/array.prototype.tosorted/-/array.prototype.tosorted-1.1.4.tgz",- "integrity": "sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.7",- "define-properties": "^1.2.1",- "es-abstract": "^1.23.3",- "es-errors": "^1.3.0",- "es-shim-unscopables": "^1.0.2"- },- "engines": {- "node": ">= 0.4"- }- },- "node_modules/arraybuffer.prototype.slice": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz",- "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "array-buffer-byte-length": "^1.0.1",- "call-bind": "^1.0.8",- "define-properties": "^1.2.1",- "es-abstract": "^1.23.5",- "es-errors": "^1.3.0",- "get-intrinsic": "^1.2.6",- "is-array-buffer": "^3.0.4"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/assertion-error": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",- "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- }- },- "node_modules/ast-types": {- "version": "0.16.1",- "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.16.1.tgz",- "integrity": "sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==",- "dev": true,- "license": "MIT",- "dependencies": {- "tslib": "^2.0.1"- },- "engines": {- "node": ">=4"- }- },- "node_modules/ast-types-flow": {- "version": "0.0.8",- "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz",- "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==",- "dev": true,- "license": "MIT"- },- "node_modules/async": {- "version": "3.2.6",- "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz",- "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",- "dev": true,- "license": "MIT"- },- "node_modules/async-function": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz",- "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.4"- }- },- "node_modules/attr-accept": {- "version": "2.2.5",- "resolved": "https://registry.npmjs.org/attr-accept/-/attr-accept-2.2.5.tgz",- "integrity": "sha512-0bDNnY/u6pPwHDMoF0FieU354oBi0a8rD9FcsLwzcGWbc8KS8KPIi7y+s13OlVY+gMWc/9xEMUgNE6Qm8ZllYQ==",- "license": "MIT",- "engines": {- "node": ">=4"- }- },- "node_modules/auto-bind": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-5.0.1.tgz",- "integrity": "sha512-ooviqdwwgfIfNmDwo94wlshcdzfO64XV0Cg6oDsDYBJfITDz1EngD2z7DkbvCWn+XIMsIqW27sEVF6qcpJrRcg==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/autosuggest-highlight": {- "version": "3.3.4",- "resolved": "https://registry.npmjs.org/autosuggest-highlight/-/autosuggest-highlight-3.3.4.tgz",- "integrity": "sha512-j6RETBD2xYnrVcoV1S5R4t3WxOlWZKyDQjkwnggDPSjF5L4jV98ZltBpvPvbkM1HtoSe5o+bNrTHyjPbieGeYA==",- "license": "MIT",- "dependencies": {- "remove-accents": "^0.4.2"- }- },- "node_modules/available-typed-arrays": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz",- "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "possible-typed-array-names": "^1.0.0"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/axe-core": {- "version": "4.10.3",- "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.10.3.tgz",- "integrity": "sha512-Xm7bpRXnDSX2YE2YFfBk2FnF0ep6tmG7xPh8iHee8MIcrgq762Nkce856dYtJYLkuIoYZvGfTs/PbZhideTcEg==",- "dev": true,- "license": "MPL-2.0",- "engines": {- "node": ">=4"- }- },- "node_modules/axobject-query": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",- "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">= 0.4"- }- },- "node_modules/babel-plugin-macros": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz",- "integrity": "sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.12.5",- "cosmiconfig": "^7.0.0",- "resolve": "^1.19.0"- },- "engines": {- "node": ">=10",- "npm": ">=6"- }- },- "node_modules/babel-plugin-polyfill-corejs2": {- "version": "0.4.13",- "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.13.tgz",- "integrity": "sha512-3sX/eOms8kd3q2KZ6DAhKPc0dgm525Gqq5NtWKZ7QYYZEv57OQ54KtblzJzH1lQF/eQxO8KjWGIK9IPUJNus5g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/compat-data": "^7.22.6",- "@babel/helper-define-polyfill-provider": "^0.6.4",- "semver": "^6.3.1"- },- "peerDependencies": {- "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"- }- },- "node_modules/babel-plugin-polyfill-corejs3": {- "version": "0.11.1",- "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.11.1.tgz",- "integrity": "sha512-yGCqvBT4rwMczo28xkH/noxJ6MZ4nJfkVYdoDaC/utLtWrXxv27HVrzAeSbqR8SxDsp46n0YF47EbHoixy6rXQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-define-polyfill-provider": "^0.6.3",- "core-js-compat": "^3.40.0"- },- "peerDependencies": {- "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"- }- },- "node_modules/babel-plugin-polyfill-regenerator": {- "version": "0.6.4",- "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.4.tgz",- "integrity": "sha512-7gD3pRadPrbjhjLyxebmx/WrFYcuSjZ0XbdUujQMZ/fcE9oeewk2U/7PCvez84UeuK3oSjmPZ0Ch0dlupQvGzw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-define-polyfill-provider": "^0.6.4"- },- "peerDependencies": {- "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"- }- },- "node_modules/babel-plugin-transform-react-remove-prop-types": {- "version": "0.4.24",- "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz",- "integrity": "sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA==",- "dev": true,- "license": "MIT"- },- "node_modules/babel-preset-react-app": {- "version": "10.1.0",- "resolved": "https://registry.npmjs.org/babel-preset-react-app/-/babel-preset-react-app-10.1.0.tgz",- "integrity": "sha512-f9B1xMdnkCIqe+2dHrJsoQFRz7reChaAHE/65SdaykPklQqhme2WaC08oD3is77x9ff98/9EazAKFDZv5rFEQg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/core": "^7.16.0",- "@babel/plugin-proposal-class-properties": "^7.16.0",- "@babel/plugin-proposal-decorators": "^7.16.4",- "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",- "@babel/plugin-proposal-numeric-separator": "^7.16.0",- "@babel/plugin-proposal-optional-chaining": "^7.16.0",- "@babel/plugin-proposal-private-methods": "^7.16.0",- "@babel/plugin-proposal-private-property-in-object": "^7.16.7",- "@babel/plugin-transform-flow-strip-types": "^7.16.0",- "@babel/plugin-transform-react-display-name": "^7.16.0",- "@babel/plugin-transform-runtime": "^7.16.4",- "@babel/preset-env": "^7.16.4",- "@babel/preset-react": "^7.16.0",- "@babel/preset-typescript": "^7.16.0",- "@babel/runtime": "^7.16.3",- "babel-plugin-macros": "^3.1.0",- "babel-plugin-transform-react-remove-prop-types": "^0.4.24"- }- },- "node_modules/balanced-match": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",- "license": "MIT"- },- "node_modules/better-opn": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/better-opn/-/better-opn-3.0.2.tgz",- "integrity": "sha512-aVNobHnJqLiUelTaHat9DZ1qM2w0C0Eym4LPI/3JxOnSokGVdsl1T1kN7TFvsEAD8G47A6VKQ0TVHqbBnYMJlQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "open": "^8.0.4"- },- "engines": {- "node": ">=12.0.0"- }- },- "node_modules/bin-links": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/bin-links/-/bin-links-5.0.0.tgz",- "integrity": "sha512-sdleLVfCjBtgO5cNjA2HVRvWBJAHs4zwenaCPMNJAJU0yNxpzj80IpjOIimkpkr+mhlA+how5poQtt53PygbHA==",- "dev": true,- "license": "ISC",- "dependencies": {- "cmd-shim": "^7.0.0",- "npm-normalize-package-bin": "^4.0.0",- "proc-log": "^5.0.0",- "read-cmd-shim": "^5.0.0",- "write-file-atomic": "^6.0.0"- },- "engines": {- "node": "^18.17.0 || >=20.5.0"- }- },- "node_modules/boxen": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/boxen/-/boxen-7.0.0.tgz",- "integrity": "sha512-j//dBVuyacJbvW+tvZ9HuH03fZ46QcaKvvhZickZqtB271DxJ7SNRSNxrV/dZX0085m7hISRZWbzWlJvx/rHSg==",- "license": "MIT",- "dependencies": {- "ansi-align": "^3.0.1",- "camelcase": "^7.0.0",- "chalk": "^5.0.1",- "cli-boxes": "^3.0.0",- "string-width": "^5.1.2",- "type-fest": "^2.13.0",- "widest-line": "^4.0.1",- "wrap-ansi": "^8.0.1"- },- "engines": {- "node": ">=14.16"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/boxen/node_modules/ansi-styles": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",- "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/boxen/node_modules/chalk": {- "version": "5.4.1",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",- "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",- "license": "MIT",- "engines": {- "node": "^12.17.0 || ^14.13 || >=16.0.0"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/boxen/node_modules/string-width": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",- "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",- "license": "MIT",- "dependencies": {- "eastasianwidth": "^0.2.0",- "emoji-regex": "^9.2.2",- "strip-ansi": "^7.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/boxen/node_modules/type-fest": {- "version": "2.19.0",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz",- "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==",- "license": "(MIT OR CC0-1.0)",- "engines": {- "node": ">=12.20"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/boxen/node_modules/widest-line": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-4.0.1.tgz",- "integrity": "sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig==",- "license": "MIT",- "dependencies": {- "string-width": "^5.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/boxen/node_modules/wrap-ansi": {- "version": "8.1.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",- "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",- "license": "MIT",- "dependencies": {- "ansi-styles": "^6.1.0",- "string-width": "^5.0.1",- "strip-ansi": "^7.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"- }- },- "node_modules/brace-expansion": {- "version": "1.1.11",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0",- "concat-map": "0.0.1"- }- },- "node_modules/braces": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",- "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",- "dev": true,- "license": "MIT",- "dependencies": {- "fill-range": "^7.1.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/browser-assert": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/browser-assert/-/browser-assert-1.2.1.tgz",- "integrity": "sha512-nfulgvOR6S4gt9UKCeGJOuSGBPGiFT6oQ/2UBnvTY/5aQ1PnksW72fhZkM30DzoRRv2WpwZf1vHHEr3mtuXIWQ==",- "dev": true- },- "node_modules/browserslist": {- "version": "4.24.4",- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz",- "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/browserslist"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "caniuse-lite": "^1.0.30001688",- "electron-to-chromium": "^1.5.73",- "node-releases": "^2.0.19",- "update-browserslist-db": "^1.1.1"- },- "bin": {- "browserslist": "cli.js"- },- "engines": {- "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"- }- },- "node_modules/bytes": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz",- "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==",- "license": "MIT",- "engines": {- "node": ">= 0.8"- }- },- "node_modules/cac": {- "version": "6.7.14",- "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",- "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/call-bind": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz",- "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==",- "license": "MIT",- "dependencies": {- "call-bind-apply-helpers": "^1.0.0",- "es-define-property": "^1.0.0",- "get-intrinsic": "^1.2.4",- "set-function-length": "^1.2.2"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/call-bind-apply-helpers": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",- "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",- "license": "MIT",- "dependencies": {- "es-errors": "^1.3.0",- "function-bind": "^1.1.2"- },- "engines": {- "node": ">= 0.4"- }- },- "node_modules/call-bound": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",- "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",- "license": "MIT",- "dependencies": {- "call-bind-apply-helpers": "^1.0.2",- "get-intrinsic": "^1.3.0"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/callsites": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",- "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/camelcase": {- "version": "7.0.1",- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-7.0.1.tgz",- "integrity": "sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==",- "license": "MIT",- "engines": {- "node": ">=14.16"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/caniuse-lite": {- "version": "1.0.30001706",- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001706.tgz",- "integrity": "sha512-3ZczoTApMAZwPKYWmwVbQMFpXBDds3/0VciVoUwPUbldlYyVLmRVuRs/PcUZtHpbLRpzzDvrvnFuREsGt6lUug==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/caniuse-lite"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "CC-BY-4.0"- },- "node_modules/chai": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/chai/-/chai-5.2.0.tgz",- "integrity": "sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw==",- "dev": true,- "license": "MIT",- "dependencies": {- "assertion-error": "^2.0.1",- "check-error": "^2.1.1",- "deep-eql": "^5.0.1",- "loupe": "^3.1.0",- "pathval": "^2.0.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/chalk": {- "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"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/chalk-template": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/chalk-template/-/chalk-template-0.4.0.tgz",- "integrity": "sha512-/ghrgmhfY8RaSdeo43hNXxpoHAtxdbskUHjPpfqUWGttFgycUhYPGx3YZBCnUCvOa7Doivn1IZec3DEGFoMgLg==",- "license": "MIT",- "dependencies": {- "chalk": "^4.1.2"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/chalk-template?sponsor=1"- }- },- "node_modules/chardet": {- "version": "0.7.0",- "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz",- "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==",- "dev": true,- "license": "MIT"- },- "node_modules/check-error": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz",- "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 16"- }- },- "node_modules/chownr": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz",- "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==",- "dev": true,- "license": "BlueOak-1.0.0",- "engines": {- "node": ">=18"- }- },- "node_modules/chromatic": {- "version": "11.27.0",- "resolved": "https://registry.npmjs.org/chromatic/-/chromatic-11.27.0.tgz",- "integrity": "sha512-jQ2ufjS+ePpg+NtcPI9B2eOi+pAzlRd2nhd1LgNMsVCC9Bzf5t8mJtyd8v2AUuJS0LdX0QVBgkOnlNv9xviHzA==",- "dev": true,- "license": "MIT",- "bin": {- "chroma": "dist/bin.js",- "chromatic": "dist/bin.js",- "chromatic-cli": "dist/bin.js"- },- "peerDependencies": {- "@chromatic-com/cypress": "^0.*.* || ^1.0.0",- "@chromatic-com/playwright": "^0.*.* || ^1.0.0"- },- "peerDependenciesMeta": {- "@chromatic-com/cypress": {- "optional": true- },- "@chromatic-com/playwright": {- "optional": true- }- }- },- "node_modules/ci-info": {- "version": "3.9.0",- "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",- "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/sibiraj-s"- }- ],- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/cli-boxes": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-3.0.0.tgz",- "integrity": "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==",- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/cli-cursor": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-4.0.0.tgz",- "integrity": "sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==",- "dev": true,- "license": "MIT",- "dependencies": {- "restore-cursor": "^4.0.0"- },- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/cli-truncate": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz",- "integrity": "sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==",- "dev": true,- "license": "MIT",- "dependencies": {- "slice-ansi": "^5.0.0",- "string-width": "^7.0.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/cli-truncate/node_modules/ansi-styles": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",- "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/cli-truncate/node_modules/slice-ansi": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-5.0.0.tgz",- "integrity": "sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^6.0.0",- "is-fullwidth-code-point": "^4.0.0"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/slice-ansi?sponsor=1"- }- },- "node_modules/cli-width": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz",- "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==",- "dev": true,- "license": "ISC",- "engines": {- "node": ">= 12"- }- },- "node_modules/clipboardy": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/clipboardy/-/clipboardy-3.0.0.tgz",- "integrity": "sha512-Su+uU5sr1jkUy1sGRpLKjKrvEOVXgSgiSInwa/qeID6aJ07yh+5NWc3h2QfjHjBnfX4LhtFcuAWKUsJ3r+fjbg==",- "license": "MIT",- "dependencies": {- "arch": "^2.2.0",- "execa": "^5.1.1",- "is-wsl": "^2.2.0"- },- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/clipboardy/node_modules/execa": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",- "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",- "license": "MIT",- "dependencies": {- "cross-spawn": "^7.0.3",- "get-stream": "^6.0.0",- "human-signals": "^2.1.0",- "is-stream": "^2.0.0",- "merge-stream": "^2.0.0",- "npm-run-path": "^4.0.1",- "onetime": "^5.1.2",- "signal-exit": "^3.0.3",- "strip-final-newline": "^2.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sindresorhus/execa?sponsor=1"- }- },- "node_modules/clipboardy/node_modules/get-stream": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",- "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/clipboardy/node_modules/human-signals": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",- "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",- "license": "Apache-2.0",- "engines": {- "node": ">=10.17.0"- }- },- "node_modules/clipboardy/node_modules/is-stream": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",- "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",- "license": "MIT",- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/clipboardy/node_modules/npm-run-path": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",- "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",- "license": "MIT",- "dependencies": {- "path-key": "^3.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/clipboardy/node_modules/signal-exit": {- "version": "3.0.7",- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",- "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",- "license": "ISC"- },- "node_modules/clipboardy/node_modules/strip-final-newline": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",- "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/cliui": {- "version": "8.0.1",- "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",- "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",- "dev": true,- "license": "ISC",- "dependencies": {- "string-width": "^4.2.0",- "strip-ansi": "^6.0.1",- "wrap-ansi": "^7.0.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/cliui/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",- "dev": true,- "license": "MIT"- },- "node_modules/cliui/node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/cliui/node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/cliui/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/cliui/node_modules/wrap-ansi": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^4.0.0",- "string-width": "^4.1.0",- "strip-ansi": "^6.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"- }- },- "node_modules/clsx": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",- "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/cmd-shim": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/cmd-shim/-/cmd-shim-7.0.0.tgz",- "integrity": "sha512-rtpaCbr164TPPh+zFdkWpCyZuKkjpAzODfaZCf/SVJZzJN+4bHQb/LP3Jzq5/+84um3XXY8r548XiWKSborwVw==",- "dev": true,- "license": "ISC",- "engines": {- "node": "^18.17.0 || >=20.5.0"- }- },- "node_modules/code-excerpt": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-4.0.0.tgz",- "integrity": "sha512-xxodCmBen3iy2i0WtAK8FlFNrRzjUqjRsMfho58xT/wvZU1YTM3fCnRjcy1gJPMepaRlgm/0e6w8SpWHpn3/cA==",- "dev": true,- "license": "MIT",- "dependencies": {- "convert-to-spaces": "^2.0.1"- },- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- }- },- "node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "license": "MIT",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",- "license": "MIT"- },- "node_modules/colorette": {- "version": "2.0.20",- "resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz",- "integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==",- "dev": true,- "license": "MIT"- },- "node_modules/commander": {- "version": "13.1.0",- "resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",- "integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- }- },- "node_modules/commondir": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",- "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==",- "dev": true,- "license": "MIT"- },- "node_modules/compare-versions": {- "version": "6.1.1",- "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.1.tgz",- "integrity": "sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==",- "dev": true,- "license": "MIT"- },- "node_modules/compressible": {- "version": "2.0.18",- "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.18.tgz",- "integrity": "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==",- "license": "MIT",- "dependencies": {- "mime-db": ">= 1.43.0 < 2"- },- "engines": {- "node": ">= 0.6"- }- },- "node_modules/compression": {- "version": "1.7.4",- "resolved": "https://registry.npmjs.org/compression/-/compression-1.7.4.tgz",- "integrity": "sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ==",- "license": "MIT",- "dependencies": {- "accepts": "~1.3.5",- "bytes": "3.0.0",- "compressible": "~2.0.16",- "debug": "2.6.9",- "on-headers": "~1.0.2",- "safe-buffer": "5.1.2",- "vary": "~1.1.2"- },- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/compression/node_modules/debug": {- "version": "2.6.9",- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",- "license": "MIT",- "dependencies": {- "ms": "2.0.0"- }- },- "node_modules/compression/node_modules/ms": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",- "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",- "license": "MIT"- },- "node_modules/concat-map": {- "version": "0.0.1",- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",- "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",- "license": "MIT"- },- "node_modules/confbox": {- "version": "0.2.1",- "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.1.tgz",- "integrity": "sha512-hkT3yDPFbs95mNCy1+7qNKC6Pro+/ibzYxtM2iqEigpf0sVw+bg4Zh9/snjsBcf990vfIsg5+1U7VyiyBb3etg==",- "dev": true,- "license": "MIT"- },- "node_modules/confusing-browser-globals": {- "version": "1.0.11",- "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz",- "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==",- "dev": true,- "license": "MIT"- },- "node_modules/content-disposition": {- "version": "0.5.2",- "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz",- "integrity": "sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA==",- "license": "MIT",- "engines": {- "node": ">= 0.6"- }- },- "node_modules/convert-source-map": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",- "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",- "dev": true,- "license": "MIT"- },- "node_modules/convert-to-spaces": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/convert-to-spaces/-/convert-to-spaces-2.0.1.tgz",- "integrity": "sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- }- },- "node_modules/cookie": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.0.2.tgz",- "integrity": "sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA==",- "license": "MIT",- "engines": {- "node": ">=18"- }- },- "node_modules/core-js-compat": {- "version": "3.41.0",- "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.41.0.tgz",- "integrity": "sha512-RFsU9LySVue9RTwdDVX/T0e2Y6jRYWXERKElIjpuEOEnxaXffI0X7RUwVzfYLfzuLXSNJDYoRYUAmRUcyln20A==",- "dev": true,- "license": "MIT",- "dependencies": {- "browserslist": "^4.24.4"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/core-js"- }- },- "node_modules/cosmiconfig": {- "version": "7.1.0",- "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz",- "integrity": "sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==",- "license": "MIT",- "dependencies": {- "@types/parse-json": "^4.0.0",- "import-fresh": "^3.2.1",- "parse-json": "^5.0.0",- "path-type": "^4.0.0",- "yaml": "^1.10.0"- },- "engines": {- "node": ">=10"- }- },- "node_modules/cosmiconfig/node_modules/yaml": {- "version": "1.10.2",- "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",- "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",- "license": "ISC",- "engines": {- "node": ">= 6"- }- },- "node_modules/cropperjs": {- "version": "1.6.2",- "resolved": "https://registry.npmjs.org/cropperjs/-/cropperjs-1.6.2.tgz",- "integrity": "sha512-nhymn9GdnV3CqiEHJVai54TULFAE3VshJTXSqSJKa8yXAKyBKDWdhHarnlIPrshJ0WMFTGuFvG02YjLXfPiuOA==",- "license": "MIT"- },- "node_modules/cross-spawn": {- "version": "7.0.6",- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",- "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",- "license": "MIT",- "dependencies": {- "path-key": "^3.1.0",- "shebang-command": "^2.0.0",- "which": "^2.0.1"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/css-box-model": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/css-box-model/-/css-box-model-1.2.1.tgz",- "integrity": "sha512-a7Vr4Q/kd/aw96bnJG332W9V9LkJO69JRcaCYDUqjp6/z0w6VcZjgAcTbgFxEPfBgdnAwlh3iwu+hLopa+flJw==",- "license": "MIT",- "dependencies": {- "tiny-invariant": "^1.0.6"- }- },- "node_modules/css-mediaquery": {- "version": "0.1.2",- "resolved": "https://registry.npmjs.org/css-mediaquery/-/css-mediaquery-0.1.2.tgz",- "integrity": "sha512-COtn4EROW5dBGlE/4PiKnh6rZpAPxDeFLaEEwt4i10jpDMFt2EhQGS79QmmrO+iKCHv0PU/HrOWEhijFd1x99Q==",- "license": "BSD"- },- "node_modules/css.escape": {- "version": "1.5.1",- "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz",- "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==",- "dev": true,- "license": "MIT"- },- "node_modules/csstype": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",- "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",- "license": "MIT"- },- "node_modules/d3-array": {- "version": "3.2.4",- "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz",- "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==",- "license": "ISC",- "dependencies": {- "internmap": "1 - 2"- },- "engines": {- "node": ">=12"- }- },- "node_modules/d3-color": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz",- "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==",- "license": "ISC",- "engines": {- "node": ">=12"- }- },- "node_modules/d3-format": {- "version": "1.4.5",- "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-1.4.5.tgz",- "integrity": "sha512-J0piedu6Z8iB6TbIGfZgDzfXxUFN3qQRMofy2oPdXzQibYGqPB/9iMcxr/TGalU+2RsyDO+U4f33id8tbnSRMQ==",- "license": "BSD-3-Clause"- },- "node_modules/d3-interpolate": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz",- "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==",- "license": "ISC",- "dependencies": {- "d3-color": "1 - 3"- },- "engines": {- "node": ">=12"- }- },- "node_modules/d3-path": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz",- "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==",- "license": "ISC",- "engines": {- "node": ">=12"- }- },- "node_modules/d3-scale": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz",- "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==",- "license": "ISC",- "dependencies": {- "d3-array": "2.10.0 - 3",- "d3-format": "1 - 3",- "d3-interpolate": "1.2.0 - 3",- "d3-time": "2.1.1 - 3",- "d3-time-format": "2 - 4"- },- "engines": {- "node": ">=12"- }- },- "node_modules/d3-scale-chromatic": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz",- "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==",- "license": "ISC",- "dependencies": {- "d3-color": "1 - 3",- "d3-interpolate": "1 - 3"- },- "engines": {- "node": ">=12"- }- },- "node_modules/d3-scale/node_modules/d3-time": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz",- "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==",- "license": "ISC",- "dependencies": {- "d3-array": "2 - 3"- },- "engines": {- "node": ">=12"- }- },- "node_modules/d3-shape": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz",- "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==",- "license": "ISC",- "dependencies": {- "d3-path": "^3.1.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/d3-time": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-1.1.0.tgz",- "integrity": "sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA==",- "license": "BSD-3-Clause"- },- "node_modules/d3-time-format": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-3.0.0.tgz",- "integrity": "sha512-UXJh6EKsHBTjopVqZBhFysQcoXSv/5yLONZvkQ5Kk3qbwiUYkdX17Xa1PT6U1ZWXGGfB1ey5L8dKMlFq2DO0Ag==",- "license": "BSD-3-Clause",- "dependencies": {- "d3-time": "1 - 2"- }- },- "node_modules/damerau-levenshtein": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz",- "integrity": "sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==",- "dev": true,- "license": "BSD-2-Clause"- },- "node_modules/data-uri-to-buffer": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz",- "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 12"- }- },- "node_modules/data-view-buffer": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz",- "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bound": "^1.0.3",- "es-errors": "^1.3.0",- "is-data-view": "^1.0.2"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/data-view-byte-length": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz",- "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bound": "^1.0.3",- "es-errors": "^1.3.0",- "is-data-view": "^1.0.2"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/inspect-js"- }- },- "node_modules/data-view-byte-offset": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz",- "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bound": "^1.0.2",- "es-errors": "^1.3.0",- "is-data-view": "^1.0.1"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/date-fns": {- "version": "3.6.0",- "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.6.0.tgz",- "integrity": "sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/kossnocorp"- }- },- "node_modules/de-indent": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",- "integrity": "sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==",- "dev": true,- "license": "MIT"- },- "node_modules/debug": {- "version": "4.4.0",- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",- "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",- "license": "MIT",- "dependencies": {- "ms": "^2.1.3"- },- "engines": {- "node": ">=6.0"- },- "peerDependenciesMeta": {- "supports-color": {- "optional": true- }- }- },- "node_modules/decode-uri-component": {- "version": "0.2.2",- "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz",- "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==",- "license": "MIT",- "engines": {- "node": ">=0.10"- }- },- "node_modules/deep-eql": {- "version": "5.0.2",- "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz",- "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/deep-extend": {- "version": "0.6.0",- "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",- "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",- "license": "MIT",- "engines": {- "node": ">=4.0.0"- }- },- "node_modules/deep-is": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",- "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",- "dev": true,- "license": "MIT"- },- "node_modules/define-data-property": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",- "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",- "license": "MIT",- "dependencies": {- "es-define-property": "^1.0.0",- "es-errors": "^1.3.0",- "gopd": "^1.0.1"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/define-lazy-prop": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",- "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/define-properties": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",- "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",- "license": "MIT",- "dependencies": {- "define-data-property": "^1.0.1",- "has-property-descriptors": "^1.0.0",- "object-keys": "^1.1.1"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/dequal": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",- "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/diff-sequences": {- "version": "29.6.3",- "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz",- "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"- }- },- "node_modules/dir-glob": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",- "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",- "dev": true,- "license": "MIT",- "dependencies": {- "path-type": "^4.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/doctrine": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",- "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "esutils": "^2.0.2"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/dom-accessibility-api": {- "version": "0.5.16",- "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz",- "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==",- "dev": true,- "license": "MIT"- },- "node_modules/dom-helpers": {- "version": "5.2.1",- "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz",- "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.8.7",- "csstype": "^3.0.2"- }- },- "node_modules/dompurify": {- "version": "3.2.4",- "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.4.tgz",- "integrity": "sha512-ysFSFEDVduQpyhzAob/kkuJjf5zWkZD8/A9ywSp1byueyuCfHamrCBa14/Oc2iiB0e51B+NpxSl5gmzn+Ms/mg==",- "license": "(MPL-2.0 OR Apache-2.0)",- "optionalDependencies": {- "@types/trusted-types": "^2.0.7"- }- },- "node_modules/dotenv": {- "version": "16.4.7",- "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz",- "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==",- "license": "BSD-2-Clause",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://dotenvx.com"- }- },- "node_modules/dunder-proto": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",- "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",- "license": "MIT",- "dependencies": {- "call-bind-apply-helpers": "^1.0.1",- "es-errors": "^1.3.0",- "gopd": "^1.2.0"- },- "engines": {- "node": ">= 0.4"- }- },- "node_modules/eastasianwidth": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",- "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",- "license": "MIT"- },- "node_modules/electron-to-chromium": {- "version": "1.5.120",- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.120.tgz",- "integrity": "sha512-oTUp3gfX1gZI+xfD2djr2rzQdHCwHzPQrrK0CD7WpTdF0nPdQ/INcRVjWgLdCT4a9W3jFObR9DAfsuyFQnI8CQ==",- "dev": true,- "license": "ISC"- },- "node_modules/email-addresses": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/email-addresses/-/email-addresses-5.0.0.tgz",- "integrity": "sha512-4OIPYlA6JXqtVn8zpHpGiI7vE6EQOAg16aGnDMIAlZVinnoZ8208tW1hAbjWydgN/4PLTT9q+O1K6AH/vALJGw==",- "dev": true,- "license": "MIT"- },- "node_modules/emoji-regex": {- "version": "9.2.2",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",- "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",- "license": "MIT"- },- "node_modules/entities": {- "version": "4.5.0",- "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",- "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=0.12"- },- "funding": {- "url": "https://github.com/fb55/entities?sponsor=1"- }- },- "node_modules/environment": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/environment/-/environment-1.1.0.tgz",- "integrity": "sha512-xUtoPkMggbz0MPyPiIWr1Kp4aeWJjDZ6SMvURhimjdZgsRuDplF5/s9hcgGhyXMhs+6vpnuoiZ2kFiu3FMnS8Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/error-ex": {- "version": "1.3.2",- "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",- "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",- "license": "MIT",- "dependencies": {- "is-arrayish": "^0.2.1"- }- },- "node_modules/es-abstract": {- "version": "1.23.9",- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.9.tgz",- "integrity": "sha512-py07lI0wjxAC/DcfK1S6G7iANonniZwTISvdPzk9hzeH0IZIshbuuFxLIU96OyF89Yb9hiqWn8M/bY83KY5vzA==",- "dev": true,- "license": "MIT",- "dependencies": {- "array-buffer-byte-length": "^1.0.2",- "arraybuffer.prototype.slice": "^1.0.4",- "available-typed-arrays": "^1.0.7",- "call-bind": "^1.0.8",- "call-bound": "^1.0.3",- "data-view-buffer": "^1.0.2",- "data-view-byte-length": "^1.0.2",- "data-view-byte-offset": "^1.0.1",- "es-define-property": "^1.0.1",- "es-errors": "^1.3.0",- "es-object-atoms": "^1.0.0",- "es-set-tostringtag": "^2.1.0",- "es-to-primitive": "^1.3.0",- "function.prototype.name": "^1.1.8",- "get-intrinsic": "^1.2.7",- "get-proto": "^1.0.0",- "get-symbol-description": "^1.1.0",- "globalthis": "^1.0.4",- "gopd": "^1.2.0",- "has-property-descriptors": "^1.0.2",- "has-proto": "^1.2.0",- "has-symbols": "^1.1.0",- "hasown": "^2.0.2",- "internal-slot": "^1.1.0",- "is-array-buffer": "^3.0.5",- "is-callable": "^1.2.7",- "is-data-view": "^1.0.2",- "is-regex": "^1.2.1",- "is-shared-array-buffer": "^1.0.4",- "is-string": "^1.1.1",- "is-typed-array": "^1.1.15",- "is-weakref": "^1.1.0",- "math-intrinsics": "^1.1.0",- "object-inspect": "^1.13.3",- "object-keys": "^1.1.1",- "object.assign": "^4.1.7",- "own-keys": "^1.0.1",- "regexp.prototype.flags": "^1.5.3",- "safe-array-concat": "^1.1.3",- "safe-push-apply": "^1.0.0",- "safe-regex-test": "^1.1.0",- "set-proto": "^1.0.0",- "string.prototype.trim": "^1.2.10",- "string.prototype.trimend": "^1.0.9",- "string.prototype.trimstart": "^1.0.8",- "typed-array-buffer": "^1.0.3",- "typed-array-byte-length": "^1.0.3",- "typed-array-byte-offset": "^1.0.4",- "typed-array-length": "^1.0.7",- "unbox-primitive": "^1.1.0",- "which-typed-array": "^1.1.18"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/es-define-property": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",- "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",- "license": "MIT",- "engines": {- "node": ">= 0.4"- }- },- "node_modules/es-errors": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",- "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",- "license": "MIT",- "engines": {- "node": ">= 0.4"- }- },- "node_modules/es-iterator-helpers": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/es-iterator-helpers/-/es-iterator-helpers-1.2.1.tgz",- "integrity": "sha512-uDn+FE1yrDzyC0pCo961B2IHbdM8y/ACZsKD4dG6WqrjV53BADjwa7D+1aom2rsNVfLyDgU/eigvlJGJ08OQ4w==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.8",- "call-bound": "^1.0.3",- "define-properties": "^1.2.1",- "es-abstract": "^1.23.6",- "es-errors": "^1.3.0",- "es-set-tostringtag": "^2.0.3",- "function-bind": "^1.1.2",- "get-intrinsic": "^1.2.6",- "globalthis": "^1.0.4",- "gopd": "^1.2.0",- "has-property-descriptors": "^1.0.2",- "has-proto": "^1.2.0",- "has-symbols": "^1.1.0",- "internal-slot": "^1.1.0",- "iterator.prototype": "^1.1.4",- "safe-array-concat": "^1.1.3"- },- "engines": {- "node": ">= 0.4"- }- },- "node_modules/es-module-lexer": {- "version": "1.6.0",- "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.6.0.tgz",- "integrity": "sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ==",- "dev": true,- "license": "MIT"- },- "node_modules/es-object-atoms": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",- "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",- "license": "MIT",- "dependencies": {- "es-errors": "^1.3.0"- },- "engines": {- "node": ">= 0.4"- }- },- "node_modules/es-set-tostringtag": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",- "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",- "dev": true,- "license": "MIT",- "dependencies": {- "es-errors": "^1.3.0",- "get-intrinsic": "^1.2.6",- "has-tostringtag": "^1.0.2",- "hasown": "^2.0.2"- },- "engines": {- "node": ">= 0.4"- }- },- "node_modules/es-shim-unscopables": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.1.0.tgz",- "integrity": "sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==",- "dev": true,- "license": "MIT",- "dependencies": {- "hasown": "^2.0.2"- },- "engines": {- "node": ">= 0.4"- }- },- "node_modules/es-to-primitive": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz",- "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-callable": "^1.2.7",- "is-date-object": "^1.0.5",- "is-symbol": "^1.0.4"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/es-toolkit": {- "version": "1.33.0",- "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.33.0.tgz",- "integrity": "sha512-X13Q/ZSc+vsO1q600bvNK4bxgXMkHcf//RxCmYDaRY5DAcT+eoXjY5hoAPGMdRnWQjvyLEcyauG3b6hz76LNqg==",- "dev": true,- "license": "MIT",- "workspaces": [- "docs",- "benchmarks"- ]- },- "node_modules/esbuild": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.1.tgz",- "integrity": "sha512-BGO5LtrGC7vxnqucAe/rmvKdJllfGaYWdyABvyMoXQlfYMb2bbRuReWR5tEGE//4LcNJj9XrkovTqNYRFZHAMQ==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "bin": {- "esbuild": "bin/esbuild"- },- "engines": {- "node": ">=18"- },- "optionalDependencies": {- "@esbuild/aix-ppc64": "0.25.1",- "@esbuild/android-arm": "0.25.1",- "@esbuild/android-arm64": "0.25.1",- "@esbuild/android-x64": "0.25.1",- "@esbuild/darwin-arm64": "0.25.1",- "@esbuild/darwin-x64": "0.25.1",- "@esbuild/freebsd-arm64": "0.25.1",- "@esbuild/freebsd-x64": "0.25.1",- "@esbuild/linux-arm": "0.25.1",- "@esbuild/linux-arm64": "0.25.1",- "@esbuild/linux-ia32": "0.25.1",- "@esbuild/linux-loong64": "0.25.1",- "@esbuild/linux-mips64el": "0.25.1",- "@esbuild/linux-ppc64": "0.25.1",- "@esbuild/linux-riscv64": "0.25.1",- "@esbuild/linux-s390x": "0.25.1",- "@esbuild/linux-x64": "0.25.1",- "@esbuild/netbsd-arm64": "0.25.1",- "@esbuild/netbsd-x64": "0.25.1",- "@esbuild/openbsd-arm64": "0.25.1",- "@esbuild/openbsd-x64": "0.25.1",- "@esbuild/sunos-x64": "0.25.1",- "@esbuild/win32-arm64": "0.25.1",- "@esbuild/win32-ia32": "0.25.1",- "@esbuild/win32-x64": "0.25.1"- }- },- "node_modules/esbuild-register": {- "version": "3.6.0",- "resolved": "https://registry.npmjs.org/esbuild-register/-/esbuild-register-3.6.0.tgz",- "integrity": "sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg==",- "dev": true,- "license": "MIT",- "dependencies": {- "debug": "^4.3.4"- },- "peerDependencies": {- "esbuild": ">=0.12 <1"- }- },- "node_modules/escalade": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",- "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/escape-string-regexp": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",- "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/eslint": {- "version": "8.57.1",- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz",- "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==",- "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/eslint-utils": "^4.2.0",- "@eslint-community/regexpp": "^4.6.1",- "@eslint/eslintrc": "^2.1.4",- "@eslint/js": "8.57.1",- "@humanwhocodes/config-array": "^0.13.0",- "@humanwhocodes/module-importer": "^1.0.1",- "@nodelib/fs.walk": "^1.2.8",- "@ungap/structured-clone": "^1.2.0",- "ajv": "^6.12.4",- "chalk": "^4.0.0",- "cross-spawn": "^7.0.2",- "debug": "^4.3.2",- "doctrine": "^3.0.0",- "escape-string-regexp": "^4.0.0",- "eslint-scope": "^7.2.2",- "eslint-visitor-keys": "^3.4.3",- "espree": "^9.6.1",- "esquery": "^1.4.2",- "esutils": "^2.0.2",- "fast-deep-equal": "^3.1.3",- "file-entry-cache": "^6.0.1",- "find-up": "^5.0.0",- "glob-parent": "^6.0.2",- "globals": "^13.19.0",- "graphemer": "^1.4.0",- "ignore": "^5.2.0",- "imurmurhash": "^0.1.4",- "is-glob": "^4.0.0",- "is-path-inside": "^3.0.3",- "js-yaml": "^4.1.0",- "json-stable-stringify-without-jsonify": "^1.0.1",- "levn": "^0.4.1",- "lodash.merge": "^4.6.2",- "minimatch": "^3.1.2",- "natural-compare": "^1.4.0",- "optionator": "^0.9.3",- "strip-ansi": "^6.0.1",- "text-table": "^0.2.0"- },- "bin": {- "eslint": "bin/eslint.js"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/eslint-config-prettier": {- "version": "9.1.0",- "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz",- "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==",- "dev": true,- "license": "MIT",- "bin": {- "eslint-config-prettier": "bin/cli.js"- },- "peerDependencies": {- "eslint": ">=7.0.0"- }- },- "node_modules/eslint-config-react-app": {- "version": "7.0.1",- "resolved": "https://registry.npmjs.org/eslint-config-react-app/-/eslint-config-react-app-7.0.1.tgz",- "integrity": "sha512-K6rNzvkIeHaTd8m/QEh1Zko0KI7BACWkkneSs6s9cKZC/J27X3eZR6Upt1jkmZ/4FK+XUOPPxMEN7+lbUXfSlA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/core": "^7.16.0",- "@babel/eslint-parser": "^7.16.3",- "@rushstack/eslint-patch": "^1.1.0",- "@typescript-eslint/eslint-plugin": "^5.5.0",- "@typescript-eslint/parser": "^5.5.0",- "babel-preset-react-app": "^10.0.1",- "confusing-browser-globals": "^1.0.11",- "eslint-plugin-flowtype": "^8.0.3",- "eslint-plugin-import": "^2.25.3",- "eslint-plugin-jest": "^25.3.0",- "eslint-plugin-jsx-a11y": "^6.5.1",- "eslint-plugin-react": "^7.27.1",- "eslint-plugin-react-hooks": "^4.3.0",- "eslint-plugin-testing-library": "^5.0.1"- },- "engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "eslint": "^8.0.0"- }- },- "node_modules/eslint-import-resolver-node": {- "version": "0.3.9",- "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz",- "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==",- "dev": true,- "license": "MIT",- "dependencies": {- "debug": "^3.2.7",- "is-core-module": "^2.13.0",- "resolve": "^1.22.4"- }- },- "node_modules/eslint-import-resolver-node/node_modules/debug": {- "version": "3.2.7",- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",- "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "ms": "^2.1.1"- }- },- "node_modules/eslint-module-utils": {- "version": "2.12.0",- "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.12.0.tgz",- "integrity": "sha512-wALZ0HFoytlyh/1+4wuZ9FJCD/leWHQzzrxJ8+rebyReSLk7LApMyd3WJaLVoN+D5+WIdJyDK1c6JnE65V4Zyg==",- "dev": true,- "license": "MIT",- "dependencies": {- "debug": "^3.2.7"- },- "engines": {- "node": ">=4"- },- "peerDependenciesMeta": {- "eslint": {- "optional": true- }- }- },- "node_modules/eslint-module-utils/node_modules/debug": {- "version": "3.2.7",- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",- "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "ms": "^2.1.1"- }- },- "node_modules/eslint-plugin-flowtype": {- "version": "8.0.3",- "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-8.0.3.tgz",- "integrity": "sha512-dX8l6qUL6O+fYPtpNRideCFSpmWOUVx5QcaGLVqe/vlDiBSe4vYljDWDETwnyFzpl7By/WVIu6rcrniCgH9BqQ==",- "dev": true,- "license": "BSD-3-Clause",- "dependencies": {- "lodash": "^4.17.21",- "string-natural-compare": "^3.0.1"- },- "engines": {- "node": ">=12.0.0"- },- "peerDependencies": {- "@babel/plugin-syntax-flow": "^7.14.5",- "@babel/plugin-transform-react-jsx": "^7.14.9",- "eslint": "^8.1.0"- }- },- "node_modules/eslint-plugin-import": {- "version": "2.31.0",- "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.31.0.tgz",- "integrity": "sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@rtsao/scc": "^1.1.0",- "array-includes": "^3.1.8",- "array.prototype.findlastindex": "^1.2.5",- "array.prototype.flat": "^1.3.2",- "array.prototype.flatmap": "^1.3.2",- "debug": "^3.2.7",- "doctrine": "^2.1.0",- "eslint-import-resolver-node": "^0.3.9",- "eslint-module-utils": "^2.12.0",- "hasown": "^2.0.2",- "is-core-module": "^2.15.1",- "is-glob": "^4.0.3",- "minimatch": "^3.1.2",- "object.fromentries": "^2.0.8",- "object.groupby": "^1.0.3",- "object.values": "^1.2.0",- "semver": "^6.3.1",- "string.prototype.trimend": "^1.0.8",- "tsconfig-paths": "^3.15.0"- },- "engines": {- "node": ">=4"- },- "peerDependencies": {- "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9"- }- },- "node_modules/eslint-plugin-import/node_modules/debug": {- "version": "3.2.7",- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",- "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "ms": "^2.1.1"- }- },- "node_modules/eslint-plugin-import/node_modules/doctrine": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz",- "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "esutils": "^2.0.2"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/eslint-plugin-import/node_modules/json5": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",- "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",- "dev": true,- "license": "MIT",- "dependencies": {- "minimist": "^1.2.0"- },- "bin": {- "json5": "lib/cli.js"- }- },- "node_modules/eslint-plugin-import/node_modules/tsconfig-paths": {- "version": "3.15.0",- "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz",- "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/json5": "^0.0.29",- "json5": "^1.0.2",- "minimist": "^1.2.6",- "strip-bom": "^3.0.0"- }- },- "node_modules/eslint-plugin-jest": {- "version": "25.7.0",- "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-25.7.0.tgz",- "integrity": "sha512-PWLUEXeeF7C9QGKqvdSbzLOiLTx+bno7/HC9eefePfEb257QFHg7ye3dh80AZVkaa/RQsBB1Q/ORQvg2X7F0NQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/experimental-utils": "^5.0.0"- },- "engines": {- "node": "^12.13.0 || ^14.15.0 || >=16.0.0"- },- "peerDependencies": {- "@typescript-eslint/eslint-plugin": "^4.0.0 || ^5.0.0",- "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"- },- "peerDependenciesMeta": {- "@typescript-eslint/eslint-plugin": {- "optional": true- },- "jest": {- "optional": true- }- }- },- "node_modules/eslint-plugin-jsx-a11y": {- "version": "6.10.2",- "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.10.2.tgz",- "integrity": "sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "aria-query": "^5.3.2",- "array-includes": "^3.1.8",- "array.prototype.flatmap": "^1.3.2",- "ast-types-flow": "^0.0.8",- "axe-core": "^4.10.0",- "axobject-query": "^4.1.0",- "damerau-levenshtein": "^1.0.8",- "emoji-regex": "^9.2.2",- "hasown": "^2.0.2",- "jsx-ast-utils": "^3.3.5",- "language-tags": "^1.0.9",- "minimatch": "^3.1.2",- "object.fromentries": "^2.0.8",- "safe-regex-test": "^1.0.3",- "string.prototype.includes": "^2.0.1"- },- "engines": {- "node": ">=4.0"- },- "peerDependencies": {- "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9"- }- },- "node_modules/eslint-plugin-jsx-a11y/node_modules/aria-query": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz",- "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">= 0.4"- }- },- "node_modules/eslint-plugin-prettier": {- "version": "5.2.3",- "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.3.tgz",- "integrity": "sha512-qJ+y0FfCp/mQYQ/vWQ3s7eUlFEL4PyKfAJxsnYTJ4YT73nsJBWqmEpFryxV9OeUiqmsTsYJ5Y+KDNaeP31wrRw==",- "dev": true,- "license": "MIT",- "dependencies": {- "prettier-linter-helpers": "^1.0.0",- "synckit": "^0.9.1"- },- "engines": {- "node": "^14.18.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint-plugin-prettier"- },- "peerDependencies": {- "@types/eslint": ">=8.0.0",- "eslint": ">=8.0.0",- "eslint-config-prettier": "*",- "prettier": ">=3.0.0"- },- "peerDependenciesMeta": {- "@types/eslint": {- "optional": true- },- "eslint-config-prettier": {- "optional": true- }- }- },- "node_modules/eslint-plugin-react": {- "version": "7.37.4",- "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.37.4.tgz",- "integrity": "sha512-BGP0jRmfYyvOyvMoRX/uoUeW+GqNj9y16bPQzqAHf3AYII/tDs+jMN0dBVkl88/OZwNGwrVFxE7riHsXVfy/LQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "array-includes": "^3.1.8",- "array.prototype.findlast": "^1.2.5",- "array.prototype.flatmap": "^1.3.3",- "array.prototype.tosorted": "^1.1.4",- "doctrine": "^2.1.0",- "es-iterator-helpers": "^1.2.1",- "estraverse": "^5.3.0",- "hasown": "^2.0.2",- "jsx-ast-utils": "^2.4.1 || ^3.0.0",- "minimatch": "^3.1.2",- "object.entries": "^1.1.8",- "object.fromentries": "^2.0.8",- "object.values": "^1.2.1",- "prop-types": "^15.8.1",- "resolve": "^2.0.0-next.5",- "semver": "^6.3.1",- "string.prototype.matchall": "^4.0.12",- "string.prototype.repeat": "^1.0.0"- },- "engines": {- "node": ">=4"- },- "peerDependencies": {- "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7"- }- },- "node_modules/eslint-plugin-react-hooks": {- "version": "4.6.2",- "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz",- "integrity": "sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "peerDependencies": {- "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0"- }- },- "node_modules/eslint-plugin-react/node_modules/doctrine": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz",- "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "esutils": "^2.0.2"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/eslint-plugin-react/node_modules/resolve": {- "version": "2.0.0-next.5",- "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.5.tgz",- "integrity": "sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-core-module": "^2.13.0",- "path-parse": "^1.0.7",- "supports-preserve-symlinks-flag": "^1.0.0"- },- "bin": {- "resolve": "bin/resolve"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/eslint-plugin-storybook": {- "version": "0.11.6",- "resolved": "https://registry.npmjs.org/eslint-plugin-storybook/-/eslint-plugin-storybook-0.11.6.tgz",- "integrity": "sha512-3WodYD6Bs9ACqnB+TP2TuLh774c/nacAjxSKOP9bHJ2c8rf+nrhocxjjeAWNmO9IPkFIzTKlcl0vNXI2yYpVOw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@storybook/csf": "^0.1.11",- "@typescript-eslint/utils": "^8.8.1",- "ts-dedent": "^2.2.0"- },- "engines": {- "node": ">= 18"- },- "peerDependencies": {- "eslint": ">=8"- }- },- "node_modules/eslint-plugin-storybook/node_modules/@typescript-eslint/scope-manager": {- "version": "8.26.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.26.1.tgz",- "integrity": "sha512-6EIvbE5cNER8sqBu6V7+KeMZIC1664d2Yjt+B9EWUXrsyWpxx4lEZrmvxgSKRC6gX+efDL/UY9OpPZ267io3mg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "8.26.1",- "@typescript-eslint/visitor-keys": "8.26.1"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/eslint-plugin-storybook/node_modules/@typescript-eslint/types": {- "version": "8.26.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.26.1.tgz",- "integrity": "sha512-n4THUQW27VmQMx+3P+B0Yptl7ydfceUj4ON/AQILAASwgYdZ/2dhfymRMh5egRUrvK5lSmaOm77Ry+lmXPOgBQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/eslint-plugin-storybook/node_modules/@typescript-eslint/typescript-estree": {- "version": "8.26.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.26.1.tgz",- "integrity": "sha512-yUwPpUHDgdrv1QJ7YQal3cMVBGWfnuCdKbXw1yyjArax3353rEJP1ZA+4F8nOlQ3RfS2hUN/wze3nlY+ZOhvoA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "8.26.1",- "@typescript-eslint/visitor-keys": "8.26.1",- "debug": "^4.3.4",- "fast-glob": "^3.3.2",- "is-glob": "^4.0.3",- "minimatch": "^9.0.4",- "semver": "^7.6.0",- "ts-api-utils": "^2.0.1"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "typescript": ">=4.8.4 <5.9.0"- }- },- "node_modules/eslint-plugin-storybook/node_modules/@typescript-eslint/utils": {- "version": "8.26.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.26.1.tgz",- "integrity": "sha512-V4Urxa/XtSUroUrnI7q6yUTD3hDtfJ2jzVfeT3VK0ciizfK2q/zGC0iDh1lFMUZR8cImRrep6/q0xd/1ZGPQpg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/eslint-utils": "^4.4.0",- "@typescript-eslint/scope-manager": "8.26.1",- "@typescript-eslint/types": "8.26.1",- "@typescript-eslint/typescript-estree": "8.26.1"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0",- "typescript": ">=4.8.4 <5.9.0"- }- },- "node_modules/eslint-plugin-storybook/node_modules/@typescript-eslint/visitor-keys": {- "version": "8.26.1",- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.26.1.tgz",- "integrity": "sha512-AjOC3zfnxd6S4Eiy3jwktJPclqhFHNyd8L6Gycf9WUPoKZpgM5PjkxY1X7uSy61xVpiJDhhk7XT2NVsN3ALTWg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "8.26.1",- "eslint-visitor-keys": "^4.2.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/eslint-plugin-storybook/node_modules/brace-expansion": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0"- }- },- "node_modules/eslint-plugin-storybook/node_modules/eslint-visitor-keys": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz",- "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/eslint-plugin-storybook/node_modules/minimatch": {- "version": "9.0.5",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",- "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",- "dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^2.0.1"- },- "engines": {- "node": ">=16 || 14 >=14.17"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/eslint-plugin-storybook/node_modules/semver": {- "version": "7.7.1",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",- "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/eslint-plugin-testing-library": {- "version": "5.11.1",- "resolved": "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-5.11.1.tgz",- "integrity": "sha512-5eX9e1Kc2PqVRed3taaLnAAqPZGEX75C+M/rXzUAI3wIg/ZxzUm1OVAwfe/O+vE+6YXOLetSe9g5GKD2ecXipw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/utils": "^5.58.0"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0",- "npm": ">=6"- },- "peerDependencies": {- "eslint": "^7.5.0 || ^8.0.0"- }- },- "node_modules/eslint-scope": {- "version": "7.2.2",- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",- "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "esrecurse": "^4.3.0",- "estraverse": "^5.2.0"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/eslint-visitor-keys": {- "version": "3.4.3",- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",- "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/eslint/node_modules/globals": {- "version": "13.24.0",- "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",- "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "type-fest": "^0.20.2"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/eslint/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/eslint/node_modules/type-fest": {- "version": "0.20.2",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",- "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",- "dev": true,- "license": "(MIT OR CC0-1.0)",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/espree": {- "version": "9.6.1",- "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",- "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "acorn": "^8.9.0",- "acorn-jsx": "^5.3.2",- "eslint-visitor-keys": "^3.4.1"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/esprima": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",- "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",- "dev": true,- "license": "BSD-2-Clause",- "bin": {- "esparse": "bin/esparse.js",- "esvalidate": "bin/esvalidate.js"- },- "engines": {- "node": ">=4"- }- },- "node_modules/esquery": {- "version": "1.6.0",- "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz",- "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==",- "dev": true,- "license": "BSD-3-Clause",- "dependencies": {- "estraverse": "^5.1.0"- },- "engines": {- "node": ">=0.10"- }- },- "node_modules/esrecurse": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",- "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "estraverse": "^5.2.0"- },- "engines": {- "node": ">=4.0"- }- },- "node_modules/estraverse": {- "version": "5.3.0",- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",- "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=4.0"- }- },- "node_modules/estree-walker": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",- "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",- "dev": true,- "license": "MIT"- },- "node_modules/esutils": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",- "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/eventemitter3": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz",- "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==",- "license": "MIT"- },- "node_modules/execa": {- "version": "9.5.2",- "resolved": "git+ssh://[email protected]/sindresorhus/execa.git#99d1741d2525eca71b986282148bbf2983356428",- "dev": true,- "license": "MIT",- "dependencies": {- "@sindresorhus/merge-streams": "^4.0.0",- "cross-spawn": "^7.0.3",- "figures": "^6.1.0",- "get-stream": "^9.0.0",- "human-signals": "^8.0.0",- "is-plain-obj": "^4.1.0",- "is-stream": "^4.0.1",- "npm-run-path": "^6.0.0",- "pretty-ms": "^9.0.0",- "signal-exit": "^4.1.0",- "strip-final-newline": "^4.0.0",- "yoctocolors": "^2.0.0"- },- "engines": {- "node": "^18.19.0 || >=20.5.0"- },- "funding": {- "url": "https://github.com/sindresorhus/execa?sponsor=1"- }- },- "node_modules/expect": {- "version": "29.7.0",- "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz",- "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/expect-utils": "^29.7.0",- "jest-get-type": "^29.6.3",- "jest-matcher-utils": "^29.7.0",- "jest-message-util": "^29.7.0",- "jest-util": "^29.7.0"- },- "engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"- }- },- "node_modules/expect-type": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.2.0.tgz",- "integrity": "sha512-80F22aiJ3GLyVnS/B3HzgR6RelZVumzj9jkL0Rhz4h0xYbNW9PjlQz5h3J/SShErbXBc295vseR4/MIbVmUbeA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=12.0.0"- }- },- "node_modules/exsolve": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.4.tgz",- "integrity": "sha512-xsZH6PXaER4XoV+NiT7JHp1bJodJVT+cxeSH1G0f0tlT0lJqYuHUP3bUx2HtfTDvOagMINYp8rsqusxud3RXhw==",- "dev": true,- "license": "MIT"- },- "node_modules/external-editor": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz",- "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==",- "dev": true,- "license": "MIT",- "dependencies": {- "chardet": "^0.7.0",- "iconv-lite": "^0.4.24",- "tmp": "^0.0.33"- },- "engines": {- "node": ">=4"- }- },- "node_modules/faker": {- "version": "5.5.3",- "resolved": "https://registry.npmjs.org/faker/-/faker-5.5.3.tgz",- "integrity": "sha512-wLTv2a28wjUyWkbnX7u/ABZBkUkIF2fCd73V6P2oFqEGEktDfzWx4UxrSqtPRw0xPRAcjeAOIiJWqZm3pP4u3g==",- "license": "MIT"- },- "node_modules/fakerest": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/fakerest/-/fakerest-4.1.2.tgz",- "integrity": "sha512-Dct66xRpUGgUJYJl2YTNRD+2bLhpTSCiIfm2i/Vm5S3HOOOtTjW89z7NMeY+dByCdQTGPvMxbWMKjUIJWsHZoA==",- "license": "MIT",- "dependencies": {- "lodash": "^4.17.21"- }- },- "node_modules/fast-deep-equal": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",- "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",- "license": "MIT"- },- "node_modules/fast-diff": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz",- "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==",- "dev": true,- "license": "Apache-2.0"- },- "node_modules/fast-glob": {- "version": "3.3.3",- "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",- "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@nodelib/fs.stat": "^2.0.2",- "@nodelib/fs.walk": "^1.2.3",- "glob-parent": "^5.1.2",- "merge2": "^1.3.0",- "micromatch": "^4.0.8"- },- "engines": {- "node": ">=8.6.0"- }- },- "node_modules/fast-glob/node_modules/glob-parent": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",- "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",- "dev": true,- "license": "ISC",- "dependencies": {- "is-glob": "^4.0.1"- },- "engines": {- "node": ">= 6"- }- },- "node_modules/fast-json-stable-stringify": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",- "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",- "dev": true,- "license": "MIT"- },- "node_modules/fast-levenshtein": {- "version": "2.0.6",- "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",- "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",- "dev": true,- "license": "MIT"- },- "node_modules/fast-uri": {- "version": "3.0.6",- "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.6.tgz",- "integrity": "sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/fastify"- },- {- "type": "opencollective",- "url": "https://opencollective.com/fastify"- }- ],- "license": "BSD-3-Clause"- },- "node_modules/fastq": {- "version": "1.19.1",- "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",- "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",- "dev": true,- "license": "ISC",- "dependencies": {- "reusify": "^1.0.4"- }- },- "node_modules/fetch-blob": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",- "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/jimmywarting"- },- {- "type": "paypal",- "url": "https://paypal.me/jimmywarting"- }+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.50.0.tgz",+ "integrity": "sha512-PZkNLPfvXeIOgJWA804zjSFH7fARBBCpCXxgkGDRjjAhRLOR8o0IGS01ykh5GYfod4c2yiiREuDM8iZ+pVsT+Q==",+ "cpu": [+ "arm64"],"license": "MIT",- "dependencies": {- "node-domexception": "^1.0.0",- "web-streams-polyfill": "^3.0.3"- },- "engines": {- "node": "^12.20 || >= 14.13"- }+ "optional": true,+ "os": [+ "openharmony"+ ]},- "node_modules/figures": {- "version": "6.1.0",- "resolved": "https://registry.npmjs.org/figures/-/figures-6.1.0.tgz",- "integrity": "sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==",- "dev": true,+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.50.0.tgz",+ "integrity": "sha512-q7cIIdFvWQoaCbLDUyUc8YfR3Jh2xx3unO8Dn6/TTogKjfwrax9SyfmGGK6cQhKtjePI7jRfd7iRYcxYs93esg==",+ "cpu": [+ "arm64"+ ],"license": "MIT",- "dependencies": {- "is-unicode-supported": "^2.0.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }+ "optional": true,+ "os": [+ "win32"+ ]},- "node_modules/file-entry-cache": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",- "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",- "dev": true,+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.50.0.tgz",+ "integrity": "sha512-XzNOVg/YnDOmFdDKcxxK410PrcbcqZkBmz+0FicpW5jtjKQxcW1BZJEQOF0NJa6JO7CZhett8GEtRN/wYLYJuw==",+ "cpu": [+ "ia32"+ ],"license": "MIT",- "dependencies": {- "flat-cache": "^3.0.4"- },- "engines": {- "node": "^10.12.0 || >=12.0.0"- }+ "optional": true,+ "os": [+ "win32"+ ]},- "node_modules/file-selector": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/file-selector/-/file-selector-2.1.2.tgz",- "integrity": "sha512-QgXo+mXTe8ljeqUFaX3QVHc5osSItJ/Km+xpocx0aSqWGMSCf6qYs/VnzZgS864Pjn5iceMRFigeAV7AfTlaig==",+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.50.0.tgz",+ "integrity": "sha512-xMmiWRR8sp72Zqwjgtf3QbZfF1wdh8X2ABu3EaozvZcyHJeU0r+XAnXdKgs4cCAp6ORoYoCygipYP1mjmbjrsg==",+ "cpu": [+ "x64"+ ],"license": "MIT",- "dependencies": {- "tslib": "^2.7.0"- },- "engines": {- "node": ">= 12"- }+ "optional": true,+ "os": [+ "win32"+ ]},- "node_modules/filename-reserved-regex": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz",- "integrity": "sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ==",+ "node_modules/@standard-schema/utils": {+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/@standard-schema/utils/-/utils-0.3.0.tgz",+ "integrity": "sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==",+ "license": "MIT"+ },+ "node_modules/@storybook/global": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/@storybook/global/-/global-5.0.0.tgz",+ "integrity": "sha512-FcOqPAXACP0I3oJ/ws6/rrPT9WGhu915Cg8D02a9YxLo0DE9zI+a9A5gRGvmQ09fiWPukqI8ZAEoQEdWUKMQdQ==","dev": true,"license": "MIT",- "engines": {- "node": ">=4"- }+ "peer": true},- "node_modules/filenamify": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-4.3.0.tgz",- "integrity": "sha512-hcFKyUG57yWGAzu1CMt/dPzYZuv+jAJUT85bL8mrXvNe6hWj6yEHEc4EdcgiA6Z3oi1/9wXJdZPXF2dZNgwgOg==",- "dev": true,+ "node_modules/@supabase/auth-js": {+ "version": "2.71.1",+ "resolved": "https://registry.npmjs.org/@supabase/auth-js/-/auth-js-2.71.1.tgz",+ "integrity": "sha512-mMIQHBRc+SKpZFRB2qtupuzulaUhFYupNyxqDj5Jp/LyPvcWvjaJzZzObv6URtL/O6lPxkanASnotGtNpS3H2Q==","license": "MIT","dependencies": {- "filename-reserved-regex": "^2.0.0",- "strip-outer": "^1.0.1",- "trim-repeated": "^1.0.0"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "@supabase/node-fetch": "^2.6.14"}},- "node_modules/filesize": {- "version": "10.1.6",- "resolved": "https://registry.npmjs.org/filesize/-/filesize-10.1.6.tgz",- "integrity": "sha512-sJslQKU2uM33qH5nqewAwVB2QgR6w1aMNsYUp3aN5rMRyXEwJGmZvaWzeJFNTOXWlHQyBFCWrdj3fV/fsTOX8w==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">= 10.4.0"+ "node_modules/@supabase/functions-js": {+ "version": "2.4.5",+ "resolved": "https://registry.npmjs.org/@supabase/functions-js/-/functions-js-2.4.5.tgz",+ "integrity": "sha512-v5GSqb9zbosquTo6gBwIiq7W9eQ7rE5QazsK/ezNiQXdCbY+bH8D9qEaBIkhVvX4ZRW5rP03gEfw5yw9tiq4EQ==",+ "license": "MIT",+ "dependencies": {+ "@supabase/node-fetch": "^2.6.14"}},- "node_modules/fill-range": {- "version": "7.1.1",- "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",- "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",- "dev": true,+ "node_modules/@supabase/node-fetch": {+ "version": "2.6.15",+ "resolved": "https://registry.npmjs.org/@supabase/node-fetch/-/node-fetch-2.6.15.tgz",+ "integrity": "sha512-1ibVeYUacxWYi9i0cf5efil6adJ9WRyZBLivgjs+AUpewx1F3xPi7gLgaASI2SmIQxPoCEjAsLAzKPgMJVgOUQ==","license": "MIT","dependencies": {- "to-regex-range": "^5.0.1"+ "whatwg-url": "^5.0.0"},"engines": {- "node": ">=8"+ "node": "4.x || >=6.0.0"}},- "node_modules/filter-obj": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz",- "integrity": "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==",+ "node_modules/@supabase/postgrest-js": {+ "version": "1.21.3",+ "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.21.3.tgz",+ "integrity": "sha512-rg3DmmZQKEVCreXq6Am29hMVe1CzemXyIWVYyyua69y6XubfP+DzGfLxME/1uvdgwqdoaPbtjBDpEBhqxq1ZwA==","license": "MIT",- "engines": {- "node": ">=0.10.0"+ "dependencies": {+ "@supabase/node-fetch": "^2.6.14"}},- "node_modules/find-cache-dir": {- "version": "3.3.2",- "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz",- "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==",- "dev": true,+ "node_modules/@supabase/realtime-js": {+ "version": "2.15.4",+ "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.15.4.tgz",+ "integrity": "sha512-e/FYIWjvQJHOCNACWehnKvg26zosju3694k0NMUNb+JGLdvHJzEa29ZVVLmawd2kvx4hdbv8mxSqfttRnH3+DA==","license": "MIT","dependencies": {- "commondir": "^1.0.1",- "make-dir": "^3.0.2",- "pkg-dir": "^4.1.0"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/avajs/find-cache-dir?sponsor=1"+ "@supabase/node-fetch": "^2.6.13",+ "@types/phoenix": "^1.6.6",+ "@types/ws": "^8.18.1",+ "ws": "^8.18.2"}},- "node_modules/find-root": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz",- "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==",- "license": "MIT"- },- "node_modules/find-up": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",- "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",- "dev": true,+ "node_modules/@supabase/storage-js": {+ "version": "2.11.0",+ "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-2.11.0.tgz",+ "integrity": "sha512-Y+kx/wDgd4oasAgoAq0bsbQojwQ+ejIif8uczZ9qufRHWFLMU5cODT+ApHsSrDufqUcVKt+eyxtOXSkeh2v9ww==","license": "MIT","dependencies": {- "locate-path": "^6.0.0",- "path-exists": "^4.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "@supabase/node-fetch": "^2.6.14"}},- "node_modules/flat-cache": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz",- "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==",- "dev": true,+ "node_modules/@supabase/supabase-js": {+ "version": "2.56.1",+ "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.56.1.tgz",+ "integrity": "sha512-cb/kS0d6G/qbcmUFItkqVrQbxQHWXzfRZuoiSDv/QiU6RbGNTn73XjjvmbBCZ4MMHs+5teihjhpEVluqbXISEg==","license": "MIT","dependencies": {- "flatted": "^3.2.9",- "keyv": "^4.5.3",- "rimraf": "^3.0.2"- },- "engines": {- "node": "^10.12.0 || >=12.0.0"+ "@supabase/auth-js": "2.71.1",+ "@supabase/functions-js": "2.4.5",+ "@supabase/node-fetch": "2.6.15",+ "@supabase/postgrest-js": "1.21.3",+ "@supabase/realtime-js": "2.15.4",+ "@supabase/storage-js": "^2.10.4"}},- "node_modules/flatted": {- "version": "3.3.3",- "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz",- "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==",- "dev": true,- "license": "ISC"- },- "node_modules/for-each": {- "version": "0.3.5",- "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz",- "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==",- "dev": true,+ "node_modules/@tailwindcss/node": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.12.tgz",+ "integrity": "sha512-3hm9brwvQkZFe++SBt+oLjo4OLDtkvlE8q2WalaD/7QWaeM7KEJbAiY/LJZUaCs7Xa8aUu4xy3uoyX4q54UVdQ==","license": "MIT","dependencies": {- "is-callable": "^1.2.7"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "@jridgewell/remapping": "^2.3.4",+ "enhanced-resolve": "^5.18.3",+ "jiti": "^2.5.1",+ "lightningcss": "1.30.1",+ "magic-string": "^0.30.17",+ "source-map-js": "^1.2.1",+ "tailwindcss": "4.1.12"}},- "node_modules/foreground-child": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",- "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",- "dev": true,- "license": "ISC",+ "node_modules/@tailwindcss/oxide": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.12.tgz",+ "integrity": "sha512-gM5EoKHW/ukmlEtphNwaGx45fGoEmP10v51t9unv55voWh6WrOL19hfuIdo2FjxIaZzw776/BUQg7Pck++cIVw==",+ "hasInstallScript": true,+ "license": "MIT","dependencies": {- "cross-spawn": "^7.0.6",- "signal-exit": "^4.0.1"+ "detect-libc": "^2.0.4",+ "tar": "^7.4.3"},"engines": {- "node": ">=14"+ "node": ">= 10"},- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/formdata-polyfill": {- "version": "4.0.10",- "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz",- "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==",- "dev": true,+ "optionalDependencies": {+ "@tailwindcss/oxide-android-arm64": "4.1.12",+ "@tailwindcss/oxide-darwin-arm64": "4.1.12",+ "@tailwindcss/oxide-darwin-x64": "4.1.12",+ "@tailwindcss/oxide-freebsd-x64": "4.1.12",+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.12",+ "@tailwindcss/oxide-linux-arm64-gnu": "4.1.12",+ "@tailwindcss/oxide-linux-arm64-musl": "4.1.12",+ "@tailwindcss/oxide-linux-x64-gnu": "4.1.12",+ "@tailwindcss/oxide-linux-x64-musl": "4.1.12",+ "@tailwindcss/oxide-wasm32-wasi": "4.1.12",+ "@tailwindcss/oxide-win32-arm64-msvc": "4.1.12",+ "@tailwindcss/oxide-win32-x64-msvc": "4.1.12"+ }+ },+ "node_modules/@tailwindcss/oxide-android-arm64": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.12.tgz",+ "integrity": "sha512-oNY5pq+1gc4T6QVTsZKwZaGpBb2N1H1fsc1GD4o7yinFySqIuRZ2E4NvGasWc6PhYJwGK2+5YT1f9Tp80zUQZQ==",+ "cpu": [+ "arm64"+ ],"license": "MIT",- "dependencies": {- "fetch-blob": "^3.1.2"- },+ "optional": true,+ "os": [+ "android"+ ],"engines": {- "node": ">=12.20.0"+ "node": ">= 10"}},- "node_modules/fs-extra": {- "version": "11.3.0",- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.0.tgz",- "integrity": "sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew==",- "dev": true,+ "node_modules/@tailwindcss/oxide-darwin-arm64": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.12.tgz",+ "integrity": "sha512-cq1qmq2HEtDV9HvZlTtrj671mCdGB93bVY6J29mwCyaMYCP/JaUBXxrQQQm7Qn33AXXASPUb2HFZlWiiHWFytw==",+ "cpu": [+ "arm64"+ ],"license": "MIT",- "dependencies": {- "graceful-fs": "^4.2.0",- "jsonfile": "^6.0.1",- "universalify": "^2.0.0"- },+ "optional": true,+ "os": [+ "darwin"+ ],"engines": {- "node": ">=14.14"+ "node": ">= 10"}},- "node_modules/fs.realpath": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",- "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",- "dev": true,- "license": "ISC"- },- "node_modules/fsevents": {- "version": "2.3.3",- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",- "dev": true,- "hasInstallScript": true,+ "node_modules/@tailwindcss/oxide-darwin-x64": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.12.tgz",+ "integrity": "sha512-6UCsIeFUcBfpangqlXay9Ffty9XhFH1QuUFn0WV83W8lGdX8cD5/+2ONLluALJD5+yJ7k8mVtwy3zMZmzEfbLg==",+ "cpu": [+ "x64"+ ],"license": "MIT","optional": true,"os": ["darwin"],"engines": {- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ "node": ">= 10"}},- "node_modules/function-bind": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "node_modules/@tailwindcss/oxide-freebsd-x64": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.12.tgz",+ "integrity": "sha512-JOH/f7j6+nYXIrHobRYCtoArJdMJh5zy5lr0FV0Qu47MID/vqJAY3r/OElPzx1C/wdT1uS7cPq+xdYYelny1ww==",+ "cpu": [+ "x64"+ ],"license": "MIT",- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 10"}},- "node_modules/function.prototype.name": {- "version": "1.1.8",- "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz",- "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==",- "dev": true,+ "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.12.tgz",+ "integrity": "sha512-v4Ghvi9AU1SYgGr3/j38PD8PEe6bRfTnNSUE3YCMIRrrNigCFtHZ2TCm8142X8fcSqHBZBceDx+JlFJEfNg5zQ==",+ "cpu": [+ "arm"+ ],"license": "MIT",- "dependencies": {- "call-bind": "^1.0.8",- "call-bound": "^1.0.3",- "define-properties": "^1.2.1",- "functions-have-names": "^1.2.3",- "hasown": "^2.0.2",- "is-callable": "^1.2.7"- },+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node": ">= 10"}},- "node_modules/functions-have-names": {- "version": "1.2.3",- "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz",- "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==",- "dev": true,+ "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.12.tgz",+ "integrity": "sha512-YP5s1LmetL9UsvVAKusHSyPlzSRqYyRB0f+Kl/xcYQSPLEw/BvGfxzbH+ihUciePDjiXwHh+p+qbSP3SlJw+6g==",+ "cpu": [+ "arm64"+ ],"license": "MIT",- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"}- },- "node_modules/gensync": {- "version": "1.0.0-beta.2",- "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",- "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",- "dev": true,+ },+ "node_modules/@tailwindcss/oxide-linux-arm64-musl": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.12.tgz",+ "integrity": "sha512-V8pAM3s8gsrXcCv6kCHSuwyb/gPsd863iT+v1PGXC4fSL/OJqsKhfK//v8P+w9ThKIoqNbEnsZqNy+WDnwQqCA==",+ "cpu": [+ "arm64"+ ],"license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=6.9.0"+ "node": ">= 10"}},- "node_modules/get-caller-file": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",- "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",- "dev": true,- "license": "ISC",+ "node_modules/@tailwindcss/oxide-linux-x64-gnu": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.12.tgz",+ "integrity": "sha512-xYfqYLjvm2UQ3TZggTGrwxjYaLB62b1Wiysw/YE3Yqbh86sOMoTn0feF98PonP7LtjsWOWcXEbGqDL7zv0uW8Q==",+ "cpu": [+ "x64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": "6.* || 8.* || >= 10.*"+ "node": ">= 10"}},- "node_modules/get-east-asian-width": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz",- "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==",- "dev": true,+ "node_modules/@tailwindcss/oxide-linux-x64-musl": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.12.tgz",+ "integrity": "sha512-ha0pHPamN+fWZY7GCzz5rKunlv9L5R8kdh+YNvP5awe3LtuXb5nRi/H27GeL2U+TdhDOptU7T6Is7mdwh5Ar3A==",+ "cpu": [+ "x64"+ ],"license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">= 10"}},- "node_modules/get-intrinsic": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",- "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",+ "node_modules/@tailwindcss/oxide-wasm32-wasi": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.12.tgz",+ "integrity": "sha512-4tSyu3dW+ktzdEpuk6g49KdEangu3eCYoqPhWNsZgUhyegEda3M9rG0/j1GV/JjVVsj+lG7jWAyrTlLzd/WEBg==",+ "bundleDependencies": [+ "@napi-rs/wasm-runtime",+ "@emnapi/core",+ "@emnapi/runtime",+ "@tybys/wasm-util",+ "@emnapi/wasi-threads",+ "tslib"+ ],+ "cpu": [+ "wasm32"+ ],"license": "MIT",+ "optional": true,"dependencies": {- "call-bind-apply-helpers": "^1.0.2",- "es-define-property": "^1.0.1",- "es-errors": "^1.3.0",- "es-object-atoms": "^1.1.1",- "function-bind": "^1.1.2",- "get-proto": "^1.0.1",- "gopd": "^1.2.0",- "has-symbols": "^1.1.0",- "hasown": "^2.0.2",- "math-intrinsics": "^1.1.0"+ "@emnapi/core": "^1.4.5",+ "@emnapi/runtime": "^1.4.5",+ "@emnapi/wasi-threads": "^1.0.4",+ "@napi-rs/wasm-runtime": "^0.2.12",+ "@tybys/wasm-util": "^0.10.0",+ "tslib": "^2.8.0"},"engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node": ">=14.0.0"}},- "node_modules/get-proto": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",- "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.12.tgz",+ "integrity": "sha512-iGLyD/cVP724+FGtMWslhcFyg4xyYyM+5F4hGvKA7eifPkXHRAUDFaimu53fpNg9X8dfP75pXx/zFt/jlNF+lg==",+ "cpu": [+ "arm64"+ ],"license": "MIT",- "dependencies": {- "dunder-proto": "^1.0.1",- "es-object-atoms": "^1.0.0"- },+ "optional": true,+ "os": [+ "win32"+ ],"engines": {- "node": ">= 0.4"+ "node": ">= 10"}},- "node_modules/get-stream": {- "version": "9.0.1",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-9.0.1.tgz",- "integrity": "sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==",- "dev": true,+ "node_modules/@tailwindcss/oxide-win32-x64-msvc": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.12.tgz",+ "integrity": "sha512-NKIh5rzw6CpEodv/++r0hGLlfgT/gFN+5WNdZtvh6wpU2BpGNgdjvj6H2oFc8nCM839QM1YOhjpgbAONUb4IxA==",+ "cpu": [+ "x64"+ ],"license": "MIT",- "dependencies": {- "@sec-ant/readable-stream": "^0.4.1",- "is-stream": "^4.0.1"- },+ "optional": true,+ "os": [+ "win32"+ ],"engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">= 10"}},- "node_modules/get-symbol-description": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz",- "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==",- "dev": true,+ "node_modules/@tailwindcss/vite": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.1.12.tgz",+ "integrity": "sha512-4pt0AMFDx7gzIrAOIYgYP0KCBuKWqyW8ayrdiLEjoJTT4pKTjrzG/e4uzWtTLDziC+66R9wbUqZBccJalSE5vQ==","license": "MIT","dependencies": {- "call-bound": "^1.0.3",- "es-errors": "^1.3.0",- "get-intrinsic": "^1.2.6"- },- "engines": {- "node": ">= 0.4"+ "@tailwindcss/node": "4.1.12",+ "@tailwindcss/oxide": "4.1.12",+ "tailwindcss": "4.1.12"},- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "peerDependencies": {+ "vite": "^5.2.0 || ^6 || ^7"}},- "node_modules/gh-pages": {- "version": "6.3.0",- "resolved": "https://registry.npmjs.org/gh-pages/-/gh-pages-6.3.0.tgz",- "integrity": "sha512-Ot5lU6jK0Eb+sszG8pciXdjMXdBJ5wODvgjR+imihTqsUWF2K6dJ9HST55lgqcs8wWcw6o6wAsUzfcYRhJPXbA==",- "dev": true,+ "node_modules/@tanstack/query-core": {+ "version": "5.85.7",+ "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.85.7.tgz",+ "integrity": "sha512-FLT3EtuTbXBmOrDku4bI80Eivmjn/o/Zc1lVEd/6yzR8UAUSnDwYiwghCZvLqHyGSN5mO35ux1yPGMFYBFRSwA==","license": "MIT",- "dependencies": {- "async": "^3.2.4",- "commander": "^13.0.0",- "email-addresses": "^5.0.0",- "filenamify": "^4.3.0",- "find-cache-dir": "^3.3.1",- "fs-extra": "^11.1.1",- "globby": "^11.1.0"- },- "bin": {- "gh-pages": "bin/gh-pages.js",- "gh-pages-clean": "bin/gh-pages-clean.js"- },- "engines": {- "node": ">=10"+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/tannerlinsley"}},- "node_modules/glob": {- "version": "10.4.5",- "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz",- "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==",- "dev": true,- "license": "ISC",+ "node_modules/@tanstack/react-query": {+ "version": "5.85.8",+ "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.85.8.tgz",+ "integrity": "sha512-r3rW55STAO03EJg5mrCVIJvaEK3oeHme5u7QovuRFIKRbEgTzTv2DPdenX46X+x56LsU3ree1N4rzI/+gJ7KEA==",+ "license": "MIT","dependencies": {- "foreground-child": "^3.1.0",- "jackspeak": "^3.1.2",- "minimatch": "^9.0.4",- "minipass": "^7.1.2",- "package-json-from-dist": "^1.0.0",- "path-scurry": "^1.11.1"- },- "bin": {- "glob": "dist/esm/bin.mjs"+ "@tanstack/query-core": "5.85.7"},"funding": {- "url": "https://github.com/sponsors/isaacs"+ "type": "github",+ "url": "https://github.com/sponsors/tannerlinsley"+ },+ "peerDependencies": {+ "react": "^18 || ^19"}},- "node_modules/glob-parent": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",- "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",+ "node_modules/@testing-library/dom": {+ "version": "10.4.1",+ "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.1.tgz",+ "integrity": "sha512-o4PXJQidqJl82ckFaXUeoAW+XysPLauYI43Abki5hABd853iMhitooc6znOnczgbTYmEP6U6/y1ZyKAIsvMKGg==","dev": true,- "license": "ISC",+ "license": "MIT",+ "peer": true,"dependencies": {- "is-glob": "^4.0.3"+ "@babel/code-frame": "^7.10.4",+ "@babel/runtime": "^7.12.5",+ "@types/aria-query": "^5.0.1",+ "aria-query": "5.3.0",+ "dom-accessibility-api": "^0.5.9",+ "lz-string": "^1.5.0",+ "picocolors": "1.1.1",+ "pretty-format": "^27.0.2"},"engines": {- "node": ">=10.13.0"+ "node": ">=18"}},- "node_modules/glob/node_modules/brace-expansion": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",+ "node_modules/@testing-library/dom/node_modules/aria-query": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",+ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==","dev": true,- "license": "MIT",+ "license": "Apache-2.0",+ "peer": true,"dependencies": {- "balanced-match": "^1.0.0"+ "dequal": "^2.0.3"}},- "node_modules/glob/node_modules/minimatch": {- "version": "9.0.5",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",- "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",+ "node_modules/@testing-library/dom/node_modules/dom-accessibility-api": {+ "version": "0.5.16",+ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz",+ "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==","dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^2.0.1"- },- "engines": {- "node": ">=16 || 14 >=14.17"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/globals": {- "version": "11.12.0",- "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",- "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==","license": "MIT",- "engines": {- "node": ">=4"- }+ "peer": true},- "node_modules/globalthis": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz",- "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==",+ "node_modules/@testing-library/jest-dom": {+ "version": "6.8.0",+ "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.8.0.tgz",+ "integrity": "sha512-WgXcWzVM6idy5JaftTVC8Vs83NKRmGJz4Hqs4oyOuO2J4r/y79vvKZsb+CaGyCSEbUPI6OsewfPd0G1A0/TUZQ==","dev": true,"license": "MIT","dependencies": {- "define-properties": "^1.2.1",- "gopd": "^1.0.1"+ "@adobe/css-tools": "^4.4.0",+ "aria-query": "^5.0.0",+ "css.escape": "^1.5.1",+ "dom-accessibility-api": "^0.6.3",+ "picocolors": "^1.1.1",+ "redent": "^3.0.0"},"engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node": ">=14",+ "npm": ">=6",+ "yarn": ">=1"}},- "node_modules/globby": {- "version": "11.1.0",- "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",- "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",+ "node_modules/@testing-library/user-event": {+ "version": "14.6.1",+ "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.6.1.tgz",+ "integrity": "sha512-vq7fv0rnt+QTXgPxr5Hjc210p6YKq2kmdziLgnsZGgLJ9e6VAShx1pACLuRjd/AS/sr7phAR58OIIpf0LlmQNw==","dev": true,"license": "MIT",- "dependencies": {- "array-union": "^2.1.0",- "dir-glob": "^3.0.1",- "fast-glob": "^3.2.9",- "ignore": "^5.2.0",- "merge2": "^1.4.1",- "slash": "^3.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/gopd": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",- "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",- "license": "MIT",+ "peer": true,"engines": {- "node": ">= 0.4"+ "node": ">=12",+ "npm": ">=6"},- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "peerDependencies": {+ "@testing-library/dom": ">=7.21.4"}},- "node_modules/graceful-fs": {- "version": "4.2.11",- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",- "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",- "dev": true,- "license": "ISC"- },- "node_modules/graphemer": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",- "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",- "dev": true,- "license": "MIT"- },- "node_modules/has-bigints": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz",- "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==",+ "node_modules/@types/aria-query": {+ "version": "5.0.4",+ "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz",+ "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==","dev": true,"license": "MIT",- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }+ "peer": true},- "node_modules/has-flag": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",+ "node_modules/@types/babel__core": {+ "version": "7.20.5",+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",+ "dev": true,"license": "MIT",- "engines": {- "node": ">=8"+ "dependencies": {+ "@babel/parser": "^7.20.7",+ "@babel/types": "^7.20.7",+ "@types/babel__generator": "*",+ "@types/babel__template": "*",+ "@types/babel__traverse": "*"}},- "node_modules/has-property-descriptors": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",- "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",+ "node_modules/@types/babel__generator": {+ "version": "7.27.0",+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",+ "dev": true,"license": "MIT","dependencies": {- "es-define-property": "^1.0.0"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "@babel/types": "^7.0.0"}},- "node_modules/has-proto": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz",- "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==",+ "node_modules/@types/babel__template": {+ "version": "7.4.4",+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==","dev": true,"license": "MIT","dependencies": {- "dunder-proto": "^1.0.0"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "@babel/parser": "^7.1.0",+ "@babel/types": "^7.0.0"}},- "node_modules/has-symbols": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",- "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",+ "node_modules/@types/babel__traverse": {+ "version": "7.28.0",+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",+ "dev": true,"license": "MIT",- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "dependencies": {+ "@babel/types": "^7.28.2"}},- "node_modules/has-tostringtag": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",- "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",+ "node_modules/@types/chai": {+ "version": "5.2.2",+ "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.2.tgz",+ "integrity": "sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==","dev": true,"license": "MIT","dependencies": {- "has-symbols": "^1.0.3"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "@types/deep-eql": "*"}},- "node_modules/hasown": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",- "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",+ "node_modules/@types/d3-color": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-3.1.3.tgz",+ "integrity": "sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==",+ "license": "MIT"+ },+ "node_modules/@types/d3-format": {+ "version": "1.4.5",+ "resolved": "https://registry.npmjs.org/@types/d3-format/-/d3-format-1.4.5.tgz",+ "integrity": "sha512-mLxrC1MSWupOSncXN/HOlWUAAIffAEBaI4+PKy2uMPsKe4FNZlk7qrbTjmzJXITQQqBHivaks4Td18azgqnotA==",+ "license": "MIT"+ },+ "node_modules/@types/d3-interpolate": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/@types/d3-interpolate/-/d3-interpolate-3.0.4.tgz",+ "integrity": "sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==","license": "MIT","dependencies": {- "function-bind": "^1.1.2"- },- "engines": {- "node": ">= 0.4"+ "@types/d3-color": "*"}},- "node_modules/he": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",- "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",- "dev": true,+ "node_modules/@types/d3-path": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-3.1.1.tgz",+ "integrity": "sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==",+ "license": "MIT"+ },+ "node_modules/@types/d3-scale": {+ "version": "4.0.9",+ "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.9.tgz",+ "integrity": "sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==","license": "MIT",- "bin": {- "he": "bin/he"+ "dependencies": {+ "@types/d3-time": "*"}},- "node_modules/hoist-non-react-statics": {- "version": "3.3.2",- "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",- "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==",- "license": "BSD-3-Clause",+ "node_modules/@types/d3-scale-chromatic": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz",+ "integrity": "sha512-iWMJgwkK7yTRmWqRB5plb1kadXyQ5Sj8V/zYlFGMUBbIPKQScw+Dku9cAAMgJG+z5GYDoMjWGLVOvjghDEFnKQ==",+ "license": "MIT"+ },+ "node_modules/@types/d3-shape": {+ "version": "3.1.7",+ "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-3.1.7.tgz",+ "integrity": "sha512-VLvUQ33C+3J+8p+Daf+nYSOsjB4GXp19/S/aGo60m9h1v6XaxjiT82lKVWJCfzhtuZ3yD7i/TPeC/fuKLLOSmg==",+ "license": "MIT","dependencies": {- "react-is": "^16.7.0"+ "@types/d3-path": "*"}},- "node_modules/hoist-non-react-statics/node_modules/react-is": {- "version": "16.13.1",- "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",- "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",+ "node_modules/@types/d3-time": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@types/d3-time/-/d3-time-1.1.4.tgz",+ "integrity": "sha512-JIvy2HjRInE+TXOmIGN5LCmeO0hkFZx5f9FZ7kiN+D+YTcc8pptsiLiuHsvwxwC7VVKmJ2ExHUgNlAiV7vQM9g==","license": "MIT"},- "node_modules/https-proxy-agent": {- "version": "7.0.6",- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",- "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "node_modules/@types/d3-time-format": {+ "version": "2.3.4",+ "resolved": "https://registry.npmjs.org/@types/d3-time-format/-/d3-time-format-2.3.4.tgz",+ "integrity": "sha512-xdDXbpVO74EvadI3UDxjxTdR6QIxm1FKzEA/+F8tL4GWWUg/hgvBqf6chql64U5A9ZUGWo7pEu4eNlyLwbKdhg==",+ "license": "MIT"+ },+ "node_modules/@types/deep-eql": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",+ "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/estree": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",+ "license": "MIT"+ },+ "node_modules/@types/faker": {+ "version": "5.5.9",+ "resolved": "https://registry.npmjs.org/@types/faker/-/faker-5.5.9.tgz",+ "integrity": "sha512-uCx6mP3UY5SIO14XlspxsGjgaemrxpssJI0Ol+GfhxtcKpv9pgRZYsS4eeKeHVLje6Qtc8lGszuBI461+gVZBA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/json-schema": {+ "version": "7.0.15",+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/jsonexport": {+ "version": "3.0.5",+ "resolved": "https://registry.npmjs.org/@types/jsonexport/-/jsonexport-3.0.5.tgz",+ "integrity": "sha512-+zDVaDqNguePOU11YNEsuf/ZRS1ciHeKVYGjfvDFmgG6aCy/s4W4Wy1MiXJIbiyMJLuakGLENCndvmGZpVTV1w==","dev": true,"license": "MIT","dependencies": {- "agent-base": "^7.1.2",- "debug": "4"- },- "engines": {- "node": ">= 14"+ "@types/node": "*"}},- "node_modules/human-signals": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-8.0.0.tgz",- "integrity": "sha512-/1/GPCpDUCCYwlERiYjxoczfP0zfvZMU/OWgQPMya9AbAE24vseigFdhAMObpc8Q4lc/kjutPfUddDYyAmejnA==",+ "node_modules/@types/lodash": {+ "version": "4.17.20",+ "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.20.tgz",+ "integrity": "sha512-H3MHACvFUEiujabxhaI/ImO6gUrd8oOurg7LQtS7mbwIXA/cUqWrvBsaeJ23aZEPk1TAYkurjfMbSELfoCXlGA==","dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=18.18.0"- }+ "license": "MIT"},- "node_modules/iconv-lite": {- "version": "0.4.24",- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",- "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",- "dev": true,+ "node_modules/@types/node": {+ "version": "22.18.0",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.0.tgz",+ "integrity": "sha512-m5ObIqwsUp6BZzyiy4RdZpzWGub9bqLJMvZDD0QMXhxjqMHMENlj+SqF5QxoUwaQNFe+8kz8XM8ZQhqkQPTgMQ==","license": "MIT","dependencies": {- "safer-buffer": ">= 2.1.2 < 3"- },- "engines": {- "node": ">=0.10.0"+ "undici-types": "~6.21.0"}},- "node_modules/ignore": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",- "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",+ "node_modules/@types/papaparse": {+ "version": "5.3.16",+ "resolved": "https://registry.npmjs.org/@types/papaparse/-/papaparse-5.3.16.tgz",+ "integrity": "sha512-T3VuKMC2H0lgsjI9buTB3uuKj3EMD2eap1MOuEQuBQ44EnDx/IkGhU6EwiTf9zG3za4SKlmwKAImdDKdNnCsXg==","dev": true,"license": "MIT",- "engines": {- "node": ">= 4"+ "dependencies": {+ "@types/node": "*"}},- "node_modules/import-fresh": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",- "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",+ "node_modules/@types/phoenix": {+ "version": "1.6.6",+ "resolved": "https://registry.npmjs.org/@types/phoenix/-/phoenix-1.6.6.tgz",+ "integrity": "sha512-PIzZZlEppgrpoT2QgbnDU+MMzuR6BbCjllj0bM70lWoejMeNJAxCchxnv7J3XFkI8MpygtRpzXrIlmWUBclP5A==",+ "license": "MIT"+ },+ "node_modules/@types/react": {+ "version": "19.1.12",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.12.tgz",+ "integrity": "sha512-cMoR+FoAf/Jyq6+Df2/Z41jISvGZZ2eTlnsaJRptmZ76Caldwy1odD4xTr/gNV9VLj0AWgg/nmkevIyUfIIq5w==",+ "devOptional": true,"license": "MIT","dependencies": {- "parent-module": "^1.0.0",- "resolve-from": "^4.0.0"- },- "engines": {- "node": ">=6"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "csstype": "^3.0.2"}},- "node_modules/import-lazy": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-4.0.0.tgz",- "integrity": "sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw==",- "dev": true,+ "node_modules/@types/react-dom": {+ "version": "19.1.9",+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.1.9.tgz",+ "integrity": "sha512-qXRuZaOsAdXKFyOhRBg6Lqqc0yay13vN7KrIg4L7N4aaHN68ma9OK3NE1BoDFgFOTfM7zg+3/8+2n8rLUH3OKQ==",+ "devOptional": true,"license": "MIT",- "engines": {- "node": ">=8"+ "peerDependencies": {+ "@types/react": "^19.0.0"}},- "node_modules/imurmurhash": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",- "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",- "dev": true,+ "node_modules/@types/use-sync-external-store": {+ "version": "0.0.6",+ "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.6.tgz",+ "integrity": "sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==",+ "license": "MIT"+ },+ "node_modules/@types/ws": {+ "version": "8.18.1",+ "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz",+ "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==","license": "MIT",- "engines": {- "node": ">=0.8.19"+ "dependencies": {+ "@types/node": "*"}},- "node_modules/indent-string": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz",- "integrity": "sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg==",+ "node_modules/@typescript-eslint/eslint-plugin": {+ "version": "8.41.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.41.0.tgz",+ "integrity": "sha512-8fz6oa6wEKZrhXWro/S3n2eRJqlRcIa6SlDh59FXJ5Wp5XRZ8B9ixpJDcjadHq47hMx0u+HW6SNa6LjJQ6NLtw==","dev": true,"license": "MIT",+ "dependencies": {+ "@eslint-community/regexpp": "^4.10.0",+ "@typescript-eslint/scope-manager": "8.41.0",+ "@typescript-eslint/type-utils": "8.41.0",+ "@typescript-eslint/utils": "8.41.0",+ "@typescript-eslint/visitor-keys": "8.41.0",+ "graphemer": "^1.4.0",+ "ignore": "^7.0.0",+ "natural-compare": "^1.4.0",+ "ts-api-utils": "^2.1.0"+ },"engines": {- "node": ">=12"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "@typescript-eslint/parser": "^8.41.0",+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <6.0.0"}},- "node_modules/inflection": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/inflection/-/inflection-3.0.2.tgz",- "integrity": "sha512-+Bg3+kg+J6JUWn8J6bzFmOWkTQ6L/NHfDRSYU+EVvuKHDxUDHAXgqixHfVlzuBQaPOTac8hn43aPhMNk6rMe3g==",+ "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {+ "version": "7.0.5",+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz",+ "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==",+ "dev": true,"license": "MIT","engines": {- "node": ">=18.0.0"+ "node": ">= 4"}},- "node_modules/inflight": {- "version": "1.0.6",- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",- "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",- "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",+ "node_modules/@typescript-eslint/parser": {+ "version": "8.41.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.41.0.tgz",+ "integrity": "sha512-gTtSdWX9xiMPA/7MV9STjJOOYtWwIJIYxkQxnSV1U3xcE+mnJSH3f6zI0RYP+ew66WSlZ5ed+h0VCxsvdC1jJg==","dev": true,- "license": "ISC",+ "license": "MIT","dependencies": {- "once": "^1.3.0",- "wrappy": "1"+ "@typescript-eslint/scope-manager": "8.41.0",+ "@typescript-eslint/types": "8.41.0",+ "@typescript-eslint/typescript-estree": "8.41.0",+ "@typescript-eslint/visitor-keys": "8.41.0",+ "debug": "^4.3.4"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <6.0.0"}},- "node_modules/inherits": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",- "dev": true,- "license": "ISC"- },- "node_modules/ini": {- "version": "1.3.8",- "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",- "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",- "license": "ISC"- },- "node_modules/ink": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/ink/-/ink-5.2.0.tgz",- "integrity": "sha512-gHzSBBvsh/1ZYuGi+aKzU7RwnYIr6PSz56or9T90i4DDS99euhN7nYKOMR3OTev0dKIB6Zod3vSapYzqoilQcg==",+ "node_modules/@typescript-eslint/project-service": {+ "version": "8.41.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.41.0.tgz",+ "integrity": "sha512-b8V9SdGBQzQdjJ/IO3eDifGpDBJfvrNTp2QD9P2BeqWTGrRibgfgIlBSw6z3b6R7dPzg752tOs4u/7yCLxksSQ==","dev": true,"license": "MIT","dependencies": {- "@alcalzone/ansi-tokenize": "^0.1.3",- "ansi-escapes": "^7.0.0",- "ansi-styles": "^6.2.1",- "auto-bind": "^5.0.1",- "chalk": "^5.3.0",- "cli-boxes": "^3.0.0",- "cli-cursor": "^4.0.0",- "cli-truncate": "^4.0.0",- "code-excerpt": "^4.0.0",- "es-toolkit": "^1.22.0",- "indent-string": "^5.0.0",- "is-in-ci": "^1.0.0",- "patch-console": "^2.0.0",- "react-reconciler": "^0.29.0",- "scheduler": "^0.23.0",- "signal-exit": "^3.0.7",- "slice-ansi": "^7.1.0",- "stack-utils": "^2.0.6",- "string-width": "^7.2.0",- "type-fest": "^4.27.0",- "widest-line": "^5.0.0",- "wrap-ansi": "^9.0.0",- "ws": "^8.18.0",- "yoga-layout": "~3.2.1"+ "@typescript-eslint/tsconfig-utils": "^8.41.0",+ "@typescript-eslint/types": "^8.41.0",+ "debug": "^4.3.4"},"engines": {- "node": ">=18"- },- "peerDependencies": {- "@types/react": ">=18.0.0",- "react": ">=18.0.0",- "react-devtools-core": "^4.19.1"- },- "peerDependenciesMeta": {- "@types/react": {- "optional": true- },- "react-devtools-core": {- "optional": true- }+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4 <6.0.0"}},- "node_modules/ink/node_modules/ansi-escapes": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.0.0.tgz",- "integrity": "sha512-GdYO7a61mR0fOlAsvC9/rIHf7L96sBc6dEWzeOu+KAea5bZyQRPIpojrVoI4AXGJS/ycu/fBTdLrUkA4ODrvjw==",+ "node_modules/@typescript-eslint/scope-manager": {+ "version": "8.41.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.41.0.tgz",+ "integrity": "sha512-n6m05bXn/Cd6DZDGyrpXrELCPVaTnLdPToyhBoFkLIMznRUQUEQdSp96s/pcWSQdqOhrgR1mzJ+yItK7T+WPMQ==","dev": true,"license": "MIT","dependencies": {- "environment": "^1.0.0"+ "@typescript-eslint/types": "8.41.0",+ "@typescript-eslint/visitor-keys": "8.41.0"},"engines": {- "node": ">=18"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"}},- "node_modules/ink/node_modules/ansi-styles": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",- "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",+ "node_modules/@typescript-eslint/tsconfig-utils": {+ "version": "8.41.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.41.0.tgz",+ "integrity": "sha512-TDhxYFPUYRFxFhuU5hTIJk+auzM/wKvWgoNYOPcOf6i4ReYlOoYN8q1dV5kOTjNQNJgzWN3TUUQMtlLOcUgdUw==","dev": true,"license": "MIT","engines": {- "node": ">=12"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4 <6.0.0"}},- "node_modules/ink/node_modules/chalk": {- "version": "5.4.1",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",- "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",+ "node_modules/@typescript-eslint/type-utils": {+ "version": "8.41.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.41.0.tgz",+ "integrity": "sha512-63qt1h91vg3KsjVVonFJWjgSK7pZHSQFKH6uwqxAH9bBrsyRhO6ONoKyXxyVBzG1lJnFAJcKAcxLS54N1ee1OQ==","dev": true,"license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "8.41.0",+ "@typescript-eslint/typescript-estree": "8.41.0",+ "@typescript-eslint/utils": "8.41.0",+ "debug": "^4.3.4",+ "ts-api-utils": "^2.1.0"+ },"engines": {- "node": "^12.17.0 || ^14.13 || >=16.0.0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <6.0.0"}},- "node_modules/ink/node_modules/signal-exit": {- "version": "3.0.7",- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",- "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",- "dev": true,- "license": "ISC"- },- "node_modules/ink/node_modules/type-fest": {- "version": "4.37.0",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.37.0.tgz",- "integrity": "sha512-S/5/0kFftkq27FPNye0XM1e2NsnoD/3FS+pBmbjmmtLT6I+i344KoOf7pvXreaFsDamWeaJX55nczA1m5PsBDg==",+ "node_modules/@typescript-eslint/types": {+ "version": "8.41.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.41.0.tgz",+ "integrity": "sha512-9EwxsWdVqh42afLbHP90n2VdHaWU/oWgbH2P0CfcNfdKL7CuKpwMQGjwev56vWu9cSKU7FWSu6r9zck6CVfnag==","dev": true,- "license": "(MIT OR CC0-1.0)",+ "license": "MIT","engines": {- "node": ">=16"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"}},- "node_modules/ink/node_modules/wrap-ansi": {- "version": "9.0.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz",- "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==",+ "node_modules/@typescript-eslint/typescript-estree": {+ "version": "8.41.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.41.0.tgz",+ "integrity": "sha512-D43UwUYJmGhuwHfY7MtNKRZMmfd8+p/eNSfFe6tH5mbVDto+VQCayeAt35rOx3Cs6wxD16DQtIKw/YXxt5E0UQ==","dev": true,"license": "MIT","dependencies": {- "ansi-styles": "^6.2.1",- "string-width": "^7.0.0",- "strip-ansi": "^7.1.0"+ "@typescript-eslint/project-service": "8.41.0",+ "@typescript-eslint/tsconfig-utils": "8.41.0",+ "@typescript-eslint/types": "8.41.0",+ "@typescript-eslint/visitor-keys": "8.41.0",+ "debug": "^4.3.4",+ "fast-glob": "^3.3.2",+ "is-glob": "^4.0.3",+ "minimatch": "^9.0.4",+ "semver": "^7.6.0",+ "ts-api-utils": "^2.1.0"},"engines": {- "node": ">=18"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4 <6.0.0"}},- "node_modules/internal-slot": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz",- "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==",+ "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==","dev": true,"license": "MIT","dependencies": {- "es-errors": "^1.3.0",- "hasown": "^2.0.2",- "side-channel": "^1.1.0"+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {+ "version": "9.0.5",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",+ "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"},"engines": {- "node": ">= 0.4"+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"}},- "node_modules/internmap": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz",- "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==",+ "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {+ "version": "7.7.2",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",+ "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",+ "dev": true,"license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },"engines": {- "node": ">=12"+ "node": ">=10"}},- "node_modules/is-arguments": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.2.0.tgz",- "integrity": "sha512-7bVbi0huj/wrIAOzb8U1aszg9kdi3KN/CyU19CTI7tAoZYEZoL9yCDXpbXN+uPsuWnP02cyug1gleqq+TU+YCA==",+ "node_modules/@typescript-eslint/utils": {+ "version": "8.41.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.41.0.tgz",+ "integrity": "sha512-udbCVstxZ5jiPIXrdH+BZWnPatjlYwJuJkDA4Tbo3WyYLh8NvB+h/bKeSZHDOFKfphsZYJQqaFtLeXEqurQn1A==","dev": true,"license": "MIT","dependencies": {- "call-bound": "^1.0.2",- "has-tostringtag": "^1.0.2"+ "@eslint-community/eslint-utils": "^4.7.0",+ "@typescript-eslint/scope-manager": "8.41.0",+ "@typescript-eslint/types": "8.41.0",+ "@typescript-eslint/typescript-estree": "8.41.0"},"engines": {- "node": ">= 0.4"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "url": "https://github.com/sponsors/ljharb"+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <6.0.0"}},- "node_modules/is-array-buffer": {- "version": "3.0.5",- "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz",- "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==",+ "node_modules/@typescript-eslint/visitor-keys": {+ "version": "8.41.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.41.0.tgz",+ "integrity": "sha512-+GeGMebMCy0elMNg67LRNoVnUFPIm37iu5CmHESVx56/9Jsfdpsvbv605DQ81Pi/x11IdKUsS5nzgTYbCQU9fg==","dev": true,"license": "MIT","dependencies": {- "call-bind": "^1.0.8",- "call-bound": "^1.0.3",- "get-intrinsic": "^1.2.6"+ "@typescript-eslint/types": "8.41.0",+ "eslint-visitor-keys": "^4.2.1"},"engines": {- "node": ">= 0.4"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "url": "https://github.com/sponsors/ljharb"+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"}},- "node_modules/is-arrayish": {- "version": "0.2.1",- "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",- "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",- "license": "MIT"- },- "node_modules/is-async-function": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz",- "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==",+ "node_modules/@vitejs/plugin-react": {+ "version": "4.7.0",+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",+ "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==","dev": true,"license": "MIT","dependencies": {- "async-function": "^1.0.0",- "call-bound": "^1.0.3",- "get-proto": "^1.0.1",- "has-tostringtag": "^1.0.2",- "safe-regex-test": "^1.1.0"+ "@babel/core": "^7.28.0",+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",+ "@rolldown/pluginutils": "1.0.0-beta.27",+ "@types/babel__core": "^7.20.5",+ "react-refresh": "^0.17.0"},"engines": {- "node": ">= 0.4"+ "node": "^14.18.0 || >=16.0.0"},- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "peerDependencies": {+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"}},- "node_modules/is-bigint": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz",- "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==",+ "node_modules/@vitest/expect": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.4.tgz",+ "integrity": "sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==","dev": true,"license": "MIT","dependencies": {- "has-bigints": "^1.0.2"- },- "engines": {- "node": ">= 0.4"+ "@types/chai": "^5.2.2",+ "@vitest/spy": "3.2.4",+ "@vitest/utils": "3.2.4",+ "chai": "^5.2.0",+ "tinyrainbow": "^2.0.0"},"funding": {- "url": "https://github.com/sponsors/ljharb"+ "url": "https://opencollective.com/vitest"}},- "node_modules/is-boolean-object": {- "version": "1.2.2",- "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz",- "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==",+ "node_modules/@vitest/mocker": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.4.tgz",+ "integrity": "sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==","dev": true,"license": "MIT","dependencies": {- "call-bound": "^1.0.3",- "has-tostringtag": "^1.0.2"- },- "engines": {- "node": ">= 0.4"+ "@vitest/spy": "3.2.4",+ "estree-walker": "^3.0.3",+ "magic-string": "^0.30.17"},"funding": {- "url": "https://github.com/sponsors/ljharb"+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "msw": "^2.4.9",+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0"+ },+ "peerDependenciesMeta": {+ "msw": {+ "optional": true+ },+ "vite": {+ "optional": true+ }}},- "node_modules/is-callable": {- "version": "1.2.7",- "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz",- "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==",+ "node_modules/@vitest/pretty-format": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.4.tgz",+ "integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==","dev": true,"license": "MIT",- "engines": {- "node": ">= 0.4"+ "dependencies": {+ "tinyrainbow": "^2.0.0"},"funding": {- "url": "https://github.com/sponsors/ljharb"+ "url": "https://opencollective.com/vitest"}},- "node_modules/is-core-module": {- "version": "2.16.1",- "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",- "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",+ "node_modules/@vitest/runner": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.4.tgz",+ "integrity": "sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==",+ "dev": true,"license": "MIT","dependencies": {- "hasown": "^2.0.2"- },- "engines": {- "node": ">= 0.4"+ "@vitest/utils": "3.2.4",+ "pathe": "^2.0.3",+ "strip-literal": "^3.0.0"},"funding": {- "url": "https://github.com/sponsors/ljharb"+ "url": "https://opencollective.com/vitest"}},- "node_modules/is-data-view": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz",- "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==",+ "node_modules/@vitest/snapshot": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.4.tgz",+ "integrity": "sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==","dev": true,"license": "MIT","dependencies": {- "call-bound": "^1.0.2",- "get-intrinsic": "^1.2.6",- "is-typed-array": "^1.1.13"+ "@vitest/pretty-format": "3.2.4",+ "magic-string": "^0.30.17",+ "pathe": "^2.0.3"},- "engines": {- "node": ">= 0.4"+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/spy": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz",+ "integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyspy": "^4.0.3"},"funding": {- "url": "https://github.com/sponsors/ljharb"+ "url": "https://opencollective.com/vitest"}},- "node_modules/is-date-object": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz",- "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==",+ "node_modules/@vitest/utils": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.4.tgz",+ "integrity": "sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==","dev": true,"license": "MIT","dependencies": {- "call-bound": "^1.0.2",- "has-tostringtag": "^1.0.2"+ "@vitest/pretty-format": "3.2.4",+ "loupe": "^3.1.4",+ "tinyrainbow": "^2.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/acorn": {+ "version": "8.15.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",+ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "acorn": "bin/acorn"},"engines": {- "node": ">= 0.4"+ "node": ">=0.4.0"+ }+ },+ "node_modules/acorn-jsx": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",+ "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"+ }+ },+ "node_modules/ajv": {+ "version": "6.12.6",+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",+ "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fast-deep-equal": "^3.1.1",+ "fast-json-stable-stringify": "^2.0.0",+ "json-schema-traverse": "^0.4.1",+ "uri-js": "^4.2.2"},"funding": {- "url": "https://github.com/sponsors/ljharb"+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"}},- "node_modules/is-docker": {- "version": "2.2.1",- "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",- "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==","license": "MIT",- "bin": {- "is-docker": "cli.js"+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-styles": {+ "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"},"engines": {"node": ">=8"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"}},- "node_modules/is-extglob": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",- "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",+ "node_modules/argparse": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==","dev": true,+ "license": "Python-2.0"+ },+ "node_modules/aria-hidden": {+ "version": "1.2.6",+ "resolved": "https://registry.npmjs.org/aria-hidden/-/aria-hidden-1.2.6.tgz",+ "integrity": "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==","license": "MIT",+ "dependencies": {+ "tslib": "^2.0.0"+ },"engines": {- "node": ">=0.10.0"+ "node": ">=10"}},- "node_modules/is-finalizationregistry": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz",- "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==",+ "node_modules/aria-query": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.2.tgz",+ "integrity": "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==","dev": true,- "license": "MIT",- "dependencies": {- "call-bound": "^1.0.3"- },+ "license": "Apache-2.0","engines": {"node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"}},- "node_modules/is-fullwidth-code-point": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz",- "integrity": "sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==",+ "node_modules/assertion-error": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==","dev": true,"license": "MIT","engines": {"node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/is-generator-function": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.0.tgz",- "integrity": "sha512-nPUB5km40q9e8UfN/Zc24eLlzdSf9OfKByBw9CIdw4H1giPMeA0OIJvbchsCu4npfI2QcMVBsGEBHKZ7wLTWmQ==",+ "node_modules/ast-types": {+ "version": "0.16.1",+ "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.16.1.tgz",+ "integrity": "sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {- "call-bound": "^1.0.3",- "get-proto": "^1.0.0",- "has-tostringtag": "^1.0.2",- "safe-regex-test": "^1.1.0"+ "tslib": "^2.0.1"},"engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node": ">=4"}},- "node_modules/is-glob": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",- "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",- "dev": true,+ "node_modules/attr-accept": {+ "version": "2.2.5",+ "resolved": "https://registry.npmjs.org/attr-accept/-/attr-accept-2.2.5.tgz",+ "integrity": "sha512-0bDNnY/u6pPwHDMoF0FieU354oBi0a8rD9FcsLwzcGWbc8KS8KPIi7y+s13OlVY+gMWc/9xEMUgNE6Qm8ZllYQ==","license": "MIT",- "dependencies": {- "is-extglob": "^2.1.1"- },"engines": {- "node": ">=0.10.0"+ "node": ">=4"}},- "node_modules/is-in-ci": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/is-in-ci/-/is-in-ci-1.0.0.tgz",- "integrity": "sha512-eUuAjybVTHMYWm/U+vBO1sY/JOCgoPCXRxzdju0K+K0BiGW0SChEL1MLC0PoCIR1OlPo5YAp8HuQoUlsWEICwg==",+ "node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/better-opn": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/better-opn/-/better-opn-3.0.2.tgz",+ "integrity": "sha512-aVNobHnJqLiUelTaHat9DZ1qM2w0C0Eym4LPI/3JxOnSokGVdsl1T1kN7TFvsEAD8G47A6VKQ0TVHqbBnYMJlQ==","dev": true,"license": "MIT",- "bin": {- "is-in-ci": "cli.js"+ "peer": true,+ "dependencies": {+ "open": "^8.0.4"},"engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=12.0.0"}},- "node_modules/is-map": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz",- "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==",+ "node_modules/brace-expansion": {+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==","dev": true,"license": "MIT",- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"}},- "node_modules/is-number": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",- "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",+ "node_modules/braces": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==","dev": true,"license": "MIT",+ "dependencies": {+ "fill-range": "^7.1.1"+ },"engines": {- "node": ">=0.12.0"+ "node": ">=8"}},- "node_modules/is-number-object": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz",- "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==",+ "node_modules/browserslist": {+ "version": "4.25.4",+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.4.tgz",+ "integrity": "sha512-4jYpcjabC606xJ3kw2QwGEZKX0Aw7sgQdZCvIK9dhVSPh76BKo+C+btT1RRofH7B+8iNpEbgGNVWiLki5q93yg==","dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/browserslist"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],"license": "MIT","dependencies": {- "call-bound": "^1.0.3",- "has-tostringtag": "^1.0.2"+ "caniuse-lite": "^1.0.30001737",+ "electron-to-chromium": "^1.5.211",+ "node-releases": "^2.0.19",+ "update-browserslist-db": "^1.1.3"},- "engines": {- "node": ">= 0.4"+ "bin": {+ "browserslist": "cli.js"},- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "engines": {+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"}},- "node_modules/is-path-inside": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",- "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",+ "node_modules/cac": {+ "version": "6.7.14",+ "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",+ "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==","dev": true,"license": "MIT","engines": {"node": ">=8"}},- "node_modules/is-plain-obj": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",- "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",- "dev": true,+ "node_modules/call-bind": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz",+ "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==","license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.0",+ "es-define-property": "^1.0.0",+ "get-intrinsic": "^1.2.4",+ "set-function-length": "^1.2.2"+ },"engines": {- "node": ">=12"+ "node": ">= 0.4"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/is-port-reachable": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/is-port-reachable/-/is-port-reachable-4.0.0.tgz",- "integrity": "sha512-9UoipoxYmSk6Xy7QFgRv2HDyaysmgSG75TFQs6S+3pDM7ZhKTF/bskZV+0UlABHzKjNVhPjYCLfeZUEg1wXxig==",+ "node_modules/call-bind-apply-helpers": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==","license": "MIT",- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"},- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "engines": {+ "node": ">= 0.4"}},- "node_modules/is-regex": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz",- "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==",- "dev": true,+ "node_modules/call-bound": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==","license": "MIT","dependencies": {- "call-bound": "^1.0.2",- "gopd": "^1.2.0",- "has-tostringtag": "^1.0.2",- "hasown": "^2.0.2"+ "call-bind-apply-helpers": "^1.0.2",+ "get-intrinsic": "^1.3.0"},"engines": {"node": ">= 0.4"@@ -11075,1734 +4165,1697 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/is-set": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz",- "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==",+ "node_modules/callsites": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",+ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==","dev": true,"license": "MIT","engines": {- "node": ">= 0.4"+ "node": ">=6"+ }+ },+ "node_modules/caniuse-lite": {+ "version": "1.0.30001739",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001739.tgz",+ "integrity": "sha512-y+j60d6ulelrNSwpPyrHdl+9mJnQzHBr08xm48Qno0nSk4h3Qojh+ziv2qE6rXf4k3tadF4o1J/1tAbVm1NtnA==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "CC-BY-4.0"+ },+ "node_modules/chai": {+ "version": "5.3.3",+ "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz",+ "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "assertion-error": "^2.0.1",+ "check-error": "^2.1.1",+ "deep-eql": "^5.0.1",+ "loupe": "^3.1.0",+ "pathval": "^2.0.0"},- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "engines": {+ "node": ">=18"}},- "node_modules/is-shared-array-buffer": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz",- "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==",+ "node_modules/chalk": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==","dev": true,"license": "MIT","dependencies": {- "call-bound": "^1.0.3"+ "ansi-styles": "^4.1.0",+ "supports-color": "^7.1.0"},"engines": {- "node": ">= 0.4"+ "node": ">=10"},"funding": {- "url": "https://github.com/sponsors/ljharb"+ "url": "https://github.com/chalk/chalk?sponsor=1"}},- "node_modules/is-stream": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-4.0.1.tgz",- "integrity": "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==",+ "node_modules/check-error": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz",+ "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==","dev": true,"license": "MIT",+ "engines": {+ "node": ">= 16"+ }+ },+ "node_modules/chownr": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz",+ "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==",+ "license": "BlueOak-1.0.0","engines": {"node": ">=18"+ }+ },+ "node_modules/class-variance-authority": {+ "version": "0.7.1",+ "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz",+ "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==",+ "license": "Apache-2.0",+ "dependencies": {+ "clsx": "^2.1.1"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "url": "https://polar.sh/cva"}},- "node_modules/is-string": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz",- "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==",- "dev": true,- "license": "MIT",+ "node_modules/cliui": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",+ "license": "ISC","dependencies": {- "call-bound": "^1.0.3",- "has-tostringtag": "^1.0.2"+ "string-width": "^4.2.0",+ "strip-ansi": "^6.0.1",+ "wrap-ansi": "^7.0.0"},"engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node": ">=12"+ }+ },+ "node_modules/clsx": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",+ "license": "MIT",+ "engines": {+ "node": ">=6"}},- "node_modules/is-symbol": {+ "node_modules/cmdk": {"version": "1.1.1",- "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz",- "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==",- "dev": true,+ "resolved": "https://registry.npmjs.org/cmdk/-/cmdk-1.1.1.tgz",+ "integrity": "sha512-Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg==","license": "MIT","dependencies": {- "call-bound": "^1.0.2",- "has-symbols": "^1.1.0",- "safe-regex-test": "^1.1.0"- },- "engines": {- "node": ">= 0.4"+ "@radix-ui/react-compose-refs": "^1.1.1",+ "@radix-ui/react-dialog": "^1.1.6",+ "@radix-ui/react-id": "^1.1.0",+ "@radix-ui/react-primitive": "^2.0.2"},- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "peerDependencies": {+ "react": "^18 || ^19 || ^19.0.0-rc",+ "react-dom": "^18 || ^19 || ^19.0.0-rc"}},- "node_modules/is-typed-array": {- "version": "1.1.15",- "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz",- "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==",- "dev": true,+ "node_modules/color-convert": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==","license": "MIT","dependencies": {- "which-typed-array": "^1.1.16"+ "color-name": "~1.1.4"},"engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node": ">=7.0.0"}},- "node_modules/is-unicode-supported": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz",- "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }+ "node_modules/color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",+ "license": "MIT"},- "node_modules/is-weakmap": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz",- "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==",+ "node_modules/concat-map": {+ "version": "0.0.1",+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==","dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }+ "license": "MIT"},- "node_modules/is-weakref": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz",- "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==",+ "node_modules/convert-source-map": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==","dev": true,+ "license": "MIT"+ },+ "node_modules/cookie": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.0.2.tgz",+ "integrity": "sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA==","license": "MIT",- "dependencies": {- "call-bound": "^1.0.3"- },"engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node": ">=18"}},- "node_modules/is-weakset": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz",- "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==",+ "node_modules/cropperjs": {+ "version": "1.6.2",+ "resolved": "https://registry.npmjs.org/cropperjs/-/cropperjs-1.6.2.tgz",+ "integrity": "sha512-nhymn9GdnV3CqiEHJVai54TULFAE3VshJTXSqSJKa8yXAKyBKDWdhHarnlIPrshJ0WMFTGuFvG02YjLXfPiuOA==",+ "license": "MIT"+ },+ "node_modules/cross-spawn": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==","dev": true,"license": "MIT","dependencies": {- "call-bound": "^1.0.3",- "get-intrinsic": "^1.2.6"+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"},"engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node": ">= 8"}},- "node_modules/is-wsl": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",- "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",+ "node_modules/css-box-model": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/css-box-model/-/css-box-model-1.2.1.tgz",+ "integrity": "sha512-a7Vr4Q/kd/aw96bnJG332W9V9LkJO69JRcaCYDUqjp6/z0w6VcZjgAcTbgFxEPfBgdnAwlh3iwu+hLopa+flJw==","license": "MIT","dependencies": {- "is-docker": "^2.0.0"- },- "engines": {- "node": ">=8"+ "tiny-invariant": "^1.0.6"}},- "node_modules/isarray": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",- "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==",+ "node_modules/css.escape": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz",+ "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==","dev": true,"license": "MIT"},- "node_modules/isexe": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",- "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",- "license": "ISC"+ "node_modules/csstype": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",+ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",+ "devOptional": true,+ "license": "MIT"},- "node_modules/iterator.prototype": {- "version": "1.1.5",- "resolved": "https://registry.npmjs.org/iterator.prototype/-/iterator.prototype-1.1.5.tgz",- "integrity": "sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==",- "dev": true,- "license": "MIT",+ "node_modules/d3-array": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz",+ "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==",+ "license": "ISC","dependencies": {- "define-data-property": "^1.1.4",- "es-object-atoms": "^1.0.0",- "get-intrinsic": "^1.2.6",- "get-proto": "^1.0.0",- "has-symbols": "^1.1.0",- "set-function-name": "^2.0.2"+ "internmap": "1 - 2"},"engines": {- "node": ">= 0.4"+ "node": ">=12"}},- "node_modules/jackspeak": {- "version": "3.4.3",- "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",- "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",- "dev": true,- "license": "BlueOak-1.0.0",- "dependencies": {- "@isaacs/cliui": "^8.0.2"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- },- "optionalDependencies": {- "@pkgjs/parseargs": "^0.11.0"+ "node_modules/d3-color": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/d3-color/-/d3-color-3.1.0.tgz",+ "integrity": "sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==",+ "license": "ISC",+ "engines": {+ "node": ">=12"}},- "node_modules/jest-diff": {- "version": "29.7.0",- "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz",- "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==",- "dev": true,- "license": "MIT",+ "node_modules/d3-format": {+ "version": "1.4.5",+ "resolved": "https://registry.npmjs.org/d3-format/-/d3-format-1.4.5.tgz",+ "integrity": "sha512-J0piedu6Z8iB6TbIGfZgDzfXxUFN3qQRMofy2oPdXzQibYGqPB/9iMcxr/TGalU+2RsyDO+U4f33id8tbnSRMQ==",+ "license": "BSD-3-Clause"+ },+ "node_modules/d3-interpolate": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/d3-interpolate/-/d3-interpolate-3.0.1.tgz",+ "integrity": "sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==",+ "license": "ISC","dependencies": {- "chalk": "^4.0.0",- "diff-sequences": "^29.6.3",- "jest-get-type": "^29.6.3",- "pretty-format": "^29.7.0"+ "d3-color": "1 - 3"},"engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ "node": ">=12"}},- "node_modules/jest-diff/node_modules/ansi-styles": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",- "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",- "dev": true,- "license": "MIT",+ "node_modules/d3-path": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/d3-path/-/d3-path-3.1.0.tgz",+ "integrity": "sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==",+ "license": "ISC","engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "node": ">=12"}},- "node_modules/jest-diff/node_modules/pretty-format": {- "version": "29.7.0",- "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",- "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==",- "dev": true,- "license": "MIT",+ "node_modules/d3-scale": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/d3-scale/-/d3-scale-4.0.2.tgz",+ "integrity": "sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==",+ "license": "ISC","dependencies": {- "@jest/schemas": "^29.6.3",- "ansi-styles": "^5.0.0",- "react-is": "^18.0.0"+ "d3-array": "2.10.0 - 3",+ "d3-format": "1 - 3",+ "d3-interpolate": "1.2.0 - 3",+ "d3-time": "2.1.1 - 3",+ "d3-time-format": "2 - 4"},"engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ "node": ">=12"}},- "node_modules/jest-diff/node_modules/react-is": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",- "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",- "dev": true,- "license": "MIT"- },- "node_modules/jest-get-type": {- "version": "29.6.3",- "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz",- "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==",- "dev": true,- "license": "MIT",+ "node_modules/d3-scale-chromatic": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/d3-scale-chromatic/-/d3-scale-chromatic-3.1.0.tgz",+ "integrity": "sha512-A3s5PWiZ9YCXFye1o246KoscMWqf8BsD9eRiJ3He7C9OBaxKhAd5TFCdEx/7VbKtxxTsu//1mMJFrEt572cEyQ==",+ "license": "ISC",+ "dependencies": {+ "d3-color": "1 - 3",+ "d3-interpolate": "1 - 3"+ },"engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ "node": ">=12"}},- "node_modules/jest-matcher-utils": {- "version": "29.7.0",- "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz",- "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==",- "dev": true,- "license": "MIT",+ "node_modules/d3-scale/node_modules/d3-time": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-3.1.0.tgz",+ "integrity": "sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==",+ "license": "ISC","dependencies": {- "chalk": "^4.0.0",- "jest-diff": "^29.7.0",- "jest-get-type": "^29.6.3",- "pretty-format": "^29.7.0"+ "d3-array": "2 - 3"},"engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ "node": ">=12"}},- "node_modules/jest-matcher-utils/node_modules/ansi-styles": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",- "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"+ "node_modules/d3-shape": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/d3-shape/-/d3-shape-3.2.0.tgz",+ "integrity": "sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==",+ "license": "ISC",+ "dependencies": {+ "d3-path": "^3.1.0"},- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "engines": {+ "node": ">=12"}},- "node_modules/jest-matcher-utils/node_modules/pretty-format": {- "version": "29.7.0",- "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",- "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==",- "dev": true,- "license": "MIT",+ "node_modules/d3-time": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/d3-time/-/d3-time-1.1.0.tgz",+ "integrity": "sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA==",+ "license": "BSD-3-Clause"+ },+ "node_modules/d3-time-format": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/d3-time-format/-/d3-time-format-3.0.0.tgz",+ "integrity": "sha512-UXJh6EKsHBTjopVqZBhFysQcoXSv/5yLONZvkQ5Kk3qbwiUYkdX17Xa1PT6U1ZWXGGfB1ey5L8dKMlFq2DO0Ag==",+ "license": "BSD-3-Clause","dependencies": {- "@jest/schemas": "^29.6.3",- "ansi-styles": "^5.0.0",- "react-is": "^18.0.0"- },- "engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ "d3-time": "1 - 2"+ }+ },+ "node_modules/date-fns": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.6.0.tgz",+ "integrity": "sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/kossnocorp"}},- "node_modules/jest-matcher-utils/node_modules/react-is": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",- "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",- "dev": true,- "license": "MIT"- },- "node_modules/jest-message-util": {- "version": "29.7.0",- "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz",- "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==",+ "node_modules/debug": {+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz",+ "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==","dev": true,"license": "MIT","dependencies": {- "@babel/code-frame": "^7.12.13",- "@jest/types": "^29.6.3",- "@types/stack-utils": "^2.0.0",- "chalk": "^4.0.0",- "graceful-fs": "^4.2.9",- "micromatch": "^4.0.4",- "pretty-format": "^29.7.0",- "slash": "^3.0.0",- "stack-utils": "^2.0.3"+ "ms": "^2.1.3"},"engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }}},- "node_modules/jest-message-util/node_modules/ansi-styles": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",- "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",- "dev": true,+ "node_modules/decode-uri-component": {+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz",+ "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==","license": "MIT","engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "node": ">=0.10"}},- "node_modules/jest-message-util/node_modules/pretty-format": {- "version": "29.7.0",- "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz",- "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==",+ "node_modules/deep-eql": {+ "version": "5.0.2",+ "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz",+ "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==","dev": true,"license": "MIT",- "dependencies": {- "@jest/schemas": "^29.6.3",- "ansi-styles": "^5.0.0",- "react-is": "^18.0.0"- },"engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ "node": ">=6"}},- "node_modules/jest-message-util/node_modules/react-is": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",- "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",+ "node_modules/deep-is": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",+ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==","dev": true,"license": "MIT"},- "node_modules/jest-util": {- "version": "29.7.0",- "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz",- "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==",- "dev": true,+ "node_modules/define-data-property": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==","license": "MIT","dependencies": {- "@jest/types": "^29.6.3",- "@types/node": "*",- "chalk": "^4.0.0",- "ci-info": "^3.2.0",- "graceful-fs": "^4.2.9",- "picomatch": "^2.2.3"+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "gopd": "^1.0.1"},"engines": {- "node": "^14.15.0 || ^16.10.0 || >=18.0.0"+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/jest-util/node_modules/picomatch": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",- "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",- "dev": true,+ "node_modules/define-lazy-prop": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",+ "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==","license": "MIT","engines": {- "node": ">=8.6"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"+ "node": ">=8"}},- "node_modules/jju": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz",- "integrity": "sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==",- "dev": true,- "license": "MIT"- },- "node_modules/js-tokens": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",- "license": "MIT"- },- "node_modules/js-yaml": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",- "dev": true,+ "node_modules/define-properties": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",+ "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==","license": "MIT","dependencies": {- "argparse": "^2.0.1"+ "define-data-property": "^1.0.1",+ "has-property-descriptors": "^1.0.0",+ "object-keys": "^1.1.1"},- "bin": {- "js-yaml": "bin/js-yaml.js"+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/jsdoc-type-pratt-parser": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-4.1.0.tgz",- "integrity": "sha512-Hicd6JK5Njt2QB6XYFS7ok9e37O8AYk3jTcppG4YVQnYjOemymvTcmc7OWsmq/Qqj5TdRFO5/x/tIPmBeRtGHg==",- "dev": true,+ "node_modules/dequal": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",+ "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==","license": "MIT","engines": {- "node": ">=12.0.0"+ "node": ">=6"}},- "node_modules/jsesc": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",- "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",- "license": "MIT",- "bin": {- "jsesc": "bin/jsesc"- },+ "node_modules/detect-libc": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.4.tgz",+ "integrity": "sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==",+ "license": "Apache-2.0","engines": {- "node": ">=6"+ "node": ">=8"}},- "node_modules/json-buffer": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",- "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",- "dev": true,+ "node_modules/detect-node-es": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",+ "integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==","license": "MIT"},- "node_modules/json-parse-even-better-errors": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",- "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",+ "node_modules/diacritic": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/diacritic/-/diacritic-0.0.2.tgz",+ "integrity": "sha512-iQCeDkSPwkfwWPr+HZZ49WRrM2FSI9097Q9w7agyRCdLcF9Eh2Ek0sHKcmMWx2oZVBjRBE/sziGFjZu0uf1Jbg==","license": "MIT"},- "node_modules/json-schema-traverse": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",+ "node_modules/dom-accessibility-api": {+ "version": "0.6.3",+ "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz",+ "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==","dev": true,"license": "MIT"},- "node_modules/json-stable-stringify-without-jsonify": {+ "node_modules/dunder-proto": {"version": "1.0.1",- "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",- "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",- "dev": true,- "license": "MIT"- },- "node_modules/json5": {- "version": "2.2.3",- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",- "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",- "dev": true,+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==","license": "MIT",- "bin": {- "json5": "lib/cli.js"+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"},"engines": {- "node": ">=6"- }- },- "node_modules/jsonexport": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/jsonexport/-/jsonexport-3.2.0.tgz",- "integrity": "sha512-GbO9ugb0YTZatPd/hqCGR0FSwbr82H6OzG04yzdrG7XOe4QZ0jhQ+kOsB29zqkzoYJLmLxbbrFiuwbQu891XnQ==",- "license": "Apache-2.0",- "bin": {- "jsonexport": "bin/jsonexport.js"+ "node": ">= 0.4"}},- "node_modules/jsonfile": {- "version": "6.1.0",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",- "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",+ "node_modules/electron-to-chromium": {+ "version": "1.5.211",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.211.tgz",+ "integrity": "sha512-IGBvimJkotaLzFnwIVgW9/UD/AOJ2tByUmeOrtqBfACSbAw5b1G0XpvdaieKyc7ULmbwXVx+4e4Be8pOPBrYkw==","dev": true,+ "license": "ISC"+ },+ "node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "license": "MIT"+ },+ "node_modules/enhanced-resolve": {+ "version": "5.18.3",+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.3.tgz",+ "integrity": "sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww==","license": "MIT","dependencies": {- "universalify": "^2.0.0"+ "graceful-fs": "^4.2.4",+ "tapable": "^2.2.0"},- "optionalDependencies": {- "graceful-fs": "^4.1.6"+ "engines": {+ "node": ">=10.13.0"}},- "node_modules/jsx-ast-utils": {- "version": "3.3.5",- "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.5.tgz",- "integrity": "sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==",- "dev": true,+ "node_modules/es-define-property": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==","license": "MIT",- "dependencies": {- "array-includes": "^3.1.6",- "array.prototype.flat": "^1.3.1",- "object.assign": "^4.1.4",- "object.values": "^1.1.6"- },"engines": {- "node": ">=4.0"+ "node": ">= 0.4"}},- "node_modules/keyv": {- "version": "4.5.4",- "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",- "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",- "dev": true,+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==","license": "MIT",- "dependencies": {- "json-buffer": "3.0.1"+ "engines": {+ "node": ">= 0.4"}},- "node_modules/kolorist": {- "version": "1.8.0",- "resolved": "https://registry.npmjs.org/kolorist/-/kolorist-1.8.0.tgz",- "integrity": "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==",+ "node_modules/es-module-lexer": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz",+ "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==","dev": true,"license": "MIT"},- "node_modules/language-subtag-registry": {- "version": "0.3.23",- "resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.23.tgz",- "integrity": "sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==",- "dev": true,- "license": "CC0-1.0"- },- "node_modules/language-tags": {- "version": "1.0.9",- "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz",- "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==",- "dev": true,+ "node_modules/es-object-atoms": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==","license": "MIT","dependencies": {- "language-subtag-registry": "^0.3.20"+ "es-errors": "^1.3.0"},"engines": {- "node": ">=0.10"+ "node": ">= 0.4"}},- "node_modules/levn": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",- "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",+ "node_modules/esbuild": {+ "version": "0.25.9",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.9.tgz",+ "integrity": "sha512-CRbODhYyQx3qp7ZEwzxOk4JBqmD/seJrzPa/cGjY1VtIn5E09Oi9/dB4JwctnfZ8Q8iT7rioVv5k/FNT/uf54g==",+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.25.9",+ "@esbuild/android-arm": "0.25.9",+ "@esbuild/android-arm64": "0.25.9",+ "@esbuild/android-x64": "0.25.9",+ "@esbuild/darwin-arm64": "0.25.9",+ "@esbuild/darwin-x64": "0.25.9",+ "@esbuild/freebsd-arm64": "0.25.9",+ "@esbuild/freebsd-x64": "0.25.9",+ "@esbuild/linux-arm": "0.25.9",+ "@esbuild/linux-arm64": "0.25.9",+ "@esbuild/linux-ia32": "0.25.9",+ "@esbuild/linux-loong64": "0.25.9",+ "@esbuild/linux-mips64el": "0.25.9",+ "@esbuild/linux-ppc64": "0.25.9",+ "@esbuild/linux-riscv64": "0.25.9",+ "@esbuild/linux-s390x": "0.25.9",+ "@esbuild/linux-x64": "0.25.9",+ "@esbuild/netbsd-arm64": "0.25.9",+ "@esbuild/netbsd-x64": "0.25.9",+ "@esbuild/openbsd-arm64": "0.25.9",+ "@esbuild/openbsd-x64": "0.25.9",+ "@esbuild/openharmony-arm64": "0.25.9",+ "@esbuild/sunos-x64": "0.25.9",+ "@esbuild/win32-arm64": "0.25.9",+ "@esbuild/win32-ia32": "0.25.9",+ "@esbuild/win32-x64": "0.25.9"+ }+ },+ "node_modules/esbuild-register": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/esbuild-register/-/esbuild-register-3.6.0.tgz",+ "integrity": "sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {- "prelude-ls": "^1.2.1",- "type-check": "~0.4.0"+ "debug": "^4.3.4"},+ "peerDependencies": {+ "esbuild": ">=0.12 <1"+ }+ },+ "node_modules/escalade": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",+ "license": "MIT","engines": {- "node": ">= 0.8.0"+ "node": ">=6"}},- "node_modules/lilconfig": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",- "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",+ "node_modules/escape-string-regexp": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==","dev": true,"license": "MIT","engines": {- "node": ">=14"+ "node": ">=10"},"funding": {- "url": "https://github.com/sponsors/antonk52"- }- },- "node_modules/lines-and-columns": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",- "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",- "license": "MIT"+ "url": "https://github.com/sponsors/sindresorhus"+ }},- "node_modules/lint-staged": {- "version": "15.5.0",- "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-15.5.0.tgz",- "integrity": "sha512-WyCzSbfYGhK7cU+UuDDkzUiytbfbi0ZdPy2orwtM75P3WTtQBzmG40cCxIa8Ii2+XjfxzLH6Be46tUfWS85Xfg==",+ "node_modules/eslint": {+ "version": "9.34.0",+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.34.0.tgz",+ "integrity": "sha512-RNCHRX5EwdrESy3Jc9o8ie8Bog+PeYvvSR8sDGoZxNFTvZ4dlxUB3WzQ3bQMztFrSRODGrLLj8g6OFuGY/aiQg==","dev": true,"license": "MIT","dependencies": {- "chalk": "^5.4.1",- "commander": "^13.1.0",- "debug": "^4.4.0",- "execa": "^8.0.1",- "lilconfig": "^3.1.3",- "listr2": "^8.2.5",- "micromatch": "^4.0.8",- "pidtree": "^0.6.0",- "string-argv": "^0.3.2",- "yaml": "^2.7.0"+ "@eslint-community/eslint-utils": "^4.2.0",+ "@eslint-community/regexpp": "^4.12.1",+ "@eslint/config-array": "^0.21.0",+ "@eslint/config-helpers": "^0.3.1",+ "@eslint/core": "^0.15.2",+ "@eslint/eslintrc": "^3.3.1",+ "@eslint/js": "9.34.0",+ "@eslint/plugin-kit": "^0.3.5",+ "@humanfs/node": "^0.16.6",+ "@humanwhocodes/module-importer": "^1.0.1",+ "@humanwhocodes/retry": "^0.4.2",+ "@types/estree": "^1.0.6",+ "@types/json-schema": "^7.0.15",+ "ajv": "^6.12.4",+ "chalk": "^4.0.0",+ "cross-spawn": "^7.0.6",+ "debug": "^4.3.2",+ "escape-string-regexp": "^4.0.0",+ "eslint-scope": "^8.4.0",+ "eslint-visitor-keys": "^4.2.1",+ "espree": "^10.4.0",+ "esquery": "^1.5.0",+ "esutils": "^2.0.2",+ "fast-deep-equal": "^3.1.3",+ "file-entry-cache": "^8.0.0",+ "find-up": "^5.0.0",+ "glob-parent": "^6.0.2",+ "ignore": "^5.2.0",+ "imurmurhash": "^0.1.4",+ "is-glob": "^4.0.0",+ "json-stable-stringify-without-jsonify": "^1.0.1",+ "lodash.merge": "^4.6.2",+ "minimatch": "^3.1.2",+ "natural-compare": "^1.4.0",+ "optionator": "^0.9.3"},"bin": {- "lint-staged": "bin/lint-staged.js"+ "eslint": "bin/eslint.js"},"engines": {- "node": ">=18.12.0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "url": "https://opencollective.com/lint-staged"+ "url": "https://eslint.org/donate"+ },+ "peerDependencies": {+ "jiti": "*"+ },+ "peerDependenciesMeta": {+ "jiti": {+ "optional": true+ }}},- "node_modules/lint-staged/node_modules/chalk": {- "version": "5.4.1",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz",- "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==",+ "node_modules/eslint-plugin-react-hooks": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz",+ "integrity": "sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==","dev": true,"license": "MIT","engines": {- "node": "^12.17.0 || ^14.13 || >=16.0.0"+ "node": ">=10"},- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"+ "peerDependencies": {+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0"}},- "node_modules/lint-staged/node_modules/execa": {- "version": "8.0.1",- "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz",- "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==",+ "node_modules/eslint-plugin-react-refresh": {+ "version": "0.4.20",+ "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.20.tgz",+ "integrity": "sha512-XpbHQ2q5gUF8BGOX4dHe+71qoirYMhApEPZ7sfhF/dNnOF1UXnCMGZf79SFTBO7Bz5YEIT4TMieSlJBWhP9WBA==",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "eslint": ">=8.40"+ }+ },+ "node_modules/eslint-plugin-storybook": {+ "version": "9.1.3",+ "resolved": "https://registry.npmjs.org/eslint-plugin-storybook/-/eslint-plugin-storybook-9.1.3.tgz",+ "integrity": "sha512-CR576JrlvxLY2ebJIyR6z/YWy6+iyVsB7ORjPrwM3a9SshlRnAntdEn6hyMYbQmFoPIv7kYcRiDznDXBQ/jitA==","dev": true,"license": "MIT","dependencies": {- "cross-spawn": "^7.0.3",- "get-stream": "^8.0.1",- "human-signals": "^5.0.0",- "is-stream": "^3.0.0",- "merge-stream": "^2.0.0",- "npm-run-path": "^5.1.0",- "onetime": "^6.0.0",- "signal-exit": "^4.1.0",- "strip-final-newline": "^3.0.0"+ "@typescript-eslint/utils": "^8.8.1"},"engines": {- "node": ">=16.17"+ "node": ">=20.0.0"},- "funding": {- "url": "https://github.com/sindresorhus/execa?sponsor=1"+ "peerDependencies": {+ "eslint": ">=8",+ "storybook": "^9.1.3"}},- "node_modules/lint-staged/node_modules/get-stream": {- "version": "8.0.1",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz",- "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==",+ "node_modules/eslint-scope": {+ "version": "8.4.0",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz",+ "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==","dev": true,- "license": "MIT",+ "license": "BSD-2-Clause",+ "dependencies": {+ "esrecurse": "^4.3.0",+ "estraverse": "^5.2.0"+ },"engines": {- "node": ">=16"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "url": "https://opencollective.com/eslint"}},- "node_modules/lint-staged/node_modules/human-signals": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz",- "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==",+ "node_modules/eslint-visitor-keys": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",+ "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==","dev": true,"license": "Apache-2.0","engines": {- "node": ">=16.17.0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"}},- "node_modules/lint-staged/node_modules/is-stream": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz",- "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==",+ "node_modules/espree": {+ "version": "10.4.0",+ "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz",+ "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==","dev": true,- "license": "MIT",+ "license": "BSD-2-Clause",+ "dependencies": {+ "acorn": "^8.15.0",+ "acorn-jsx": "^5.3.2",+ "eslint-visitor-keys": "^4.2.1"+ },"engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "url": "https://opencollective.com/eslint"}},- "node_modules/lint-staged/node_modules/mimic-fn": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",- "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==",+ "node_modules/esprima": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==","dev": true,- "license": "MIT",- "engines": {- "node": ">=12"+ "license": "BSD-2-Clause",+ "peer": true,+ "bin": {+ "esparse": "bin/esparse.js",+ "esvalidate": "bin/esvalidate.js"},- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "engines": {+ "node": ">=4"}},- "node_modules/lint-staged/node_modules/npm-run-path": {- "version": "5.3.0",- "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz",- "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==",+ "node_modules/esquery": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz",+ "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==","dev": true,- "license": "MIT",+ "license": "BSD-3-Clause","dependencies": {- "path-key": "^4.0.0"+ "estraverse": "^5.1.0"},"engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=0.10"}},- "node_modules/lint-staged/node_modules/onetime": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz",- "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==",+ "node_modules/esrecurse": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",+ "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==","dev": true,- "license": "MIT",+ "license": "BSD-2-Clause","dependencies": {- "mimic-fn": "^4.0.0"+ "estraverse": "^5.2.0"},"engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=4.0"}},- "node_modules/lint-staged/node_modules/path-key": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz",- "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==",+ "node_modules/estraverse": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",+ "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==","dev": true,- "license": "MIT",+ "license": "BSD-2-Clause","engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=4.0"}},- "node_modules/lint-staged/node_modules/strip-final-newline": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz",- "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==",+ "node_modules/estree-walker": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==","dev": true,"license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "dependencies": {+ "@types/estree": "^1.0.0"}},- "node_modules/listr2": {- "version": "8.2.5",- "resolved": "https://registry.npmjs.org/listr2/-/listr2-8.2.5.tgz",- "integrity": "sha512-iyAZCeyD+c1gPyE9qpFu8af0Y+MRtmKOncdGoA2S5EY8iFq99dmmvkNnHiWo+pj0s7yH7l3KPIgee77tKpXPWQ==",+ "node_modules/esutils": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",+ "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==","dev": true,- "license": "MIT",- "dependencies": {- "cli-truncate": "^4.0.0",- "colorette": "^2.0.20",- "eventemitter3": "^5.0.1",- "log-update": "^6.1.0",- "rfdc": "^1.4.1",- "wrap-ansi": "^9.0.0"- },+ "license": "BSD-2-Clause","engines": {- "node": ">=18.0.0"+ "node": ">=0.10.0"}},- "node_modules/listr2/node_modules/ansi-styles": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",- "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",+ "node_modules/eventemitter3": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz",+ "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==",+ "license": "MIT"+ },+ "node_modules/expect-type": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.2.2.tgz",+ "integrity": "sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA==","dev": true,- "license": "MIT",+ "license": "Apache-2.0","engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "node": ">=12.0.0"}},- "node_modules/listr2/node_modules/wrap-ansi": {- "version": "9.0.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz",- "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==",- "dev": true,+ "node_modules/faker": {+ "version": "5.5.3",+ "resolved": "https://registry.npmjs.org/faker/-/faker-5.5.3.tgz",+ "integrity": "sha512-wLTv2a28wjUyWkbnX7u/ABZBkUkIF2fCd73V6P2oFqEGEktDfzWx4UxrSqtPRw0xPRAcjeAOIiJWqZm3pP4u3g==",+ "license": "MIT"+ },+ "node_modules/fakerest": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/fakerest/-/fakerest-4.2.0.tgz",+ "integrity": "sha512-qJtQO0r2iirV20XTqGrYDnueb4xEreOZISRWL5u8iFDCHELVl6AElaqn6z4z+/88bI0Hia357K6YTzTVwHFLjQ==","license": "MIT","dependencies": {- "ansi-styles": "^6.2.1",- "string-width": "^7.0.0",- "strip-ansi": "^7.1.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ "lodash": "^4.17.21"}},- "node_modules/local-pkg": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.1.1.tgz",- "integrity": "sha512-WunYko2W1NcdfAFpuLUoucsgULmgDBRkdxHxWQ7mK0cQqwPiy8E1enjuRBrhLtZkB5iScJ1XIPdhVEFK8aOLSg==",+ "node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fast-glob": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==","dev": true,"license": "MIT","dependencies": {- "mlly": "^1.7.4",- "pkg-types": "^2.0.1",- "quansync": "^0.2.8"+ "@nodelib/fs.stat": "^2.0.2",+ "@nodelib/fs.walk": "^1.2.3",+ "glob-parent": "^5.1.2",+ "merge2": "^1.3.0",+ "micromatch": "^4.0.8"},"engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/antfu"+ "node": ">=8.6.0"}},- "node_modules/locate-path": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",- "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",+ "node_modules/fast-glob/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==","dev": true,- "license": "MIT",+ "license": "ISC","dependencies": {- "p-locate": "^5.0.0"+ "is-glob": "^4.0.1"},"engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">= 6"}},- "node_modules/lodash": {- "version": "4.17.21",- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",- "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",+ "node_modules/fast-json-stable-stringify": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",+ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",+ "dev": true,"license": "MIT"},- "node_modules/lodash.debounce": {- "version": "4.0.8",- "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",- "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==",+ "node_modules/fast-levenshtein": {+ "version": "2.0.6",+ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",+ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==","dev": true,"license": "MIT"},- "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==",- "deprecated": "This package is deprecated. Use require('node:util').isDeepStrictEqual instead.",- "license": "MIT"+ "node_modules/fastq": {+ "version": "1.19.1",+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",+ "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "reusify": "^1.0.4"+ }},- "node_modules/lodash.merge": {- "version": "4.6.2",- "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",- "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",+ "node_modules/file-entry-cache": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==","dev": true,- "license": "MIT"+ "license": "MIT",+ "dependencies": {+ "flat-cache": "^4.0.0"+ },+ "engines": {+ "node": ">=16.0.0"+ }},- "node_modules/log-update": {- "version": "6.1.0",- "resolved": "https://registry.npmjs.org/log-update/-/log-update-6.1.0.tgz",- "integrity": "sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==",- "dev": true,+ "node_modules/file-selector": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/file-selector/-/file-selector-2.1.2.tgz",+ "integrity": "sha512-QgXo+mXTe8ljeqUFaX3QVHc5osSItJ/Km+xpocx0aSqWGMSCf6qYs/VnzZgS864Pjn5iceMRFigeAV7AfTlaig==","license": "MIT","dependencies": {- "ansi-escapes": "^7.0.0",- "cli-cursor": "^5.0.0",- "slice-ansi": "^7.1.0",- "strip-ansi": "^7.1.0",- "wrap-ansi": "^9.0.0"+ "tslib": "^2.7.0"},"engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">= 12"}},- "node_modules/log-update/node_modules/ansi-escapes": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.0.0.tgz",- "integrity": "sha512-GdYO7a61mR0fOlAsvC9/rIHf7L96sBc6dEWzeOu+KAea5bZyQRPIpojrVoI4AXGJS/ycu/fBTdLrUkA4ODrvjw==",+ "node_modules/fill-range": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==","dev": true,"license": "MIT","dependencies": {- "environment": "^1.0.0"+ "to-regex-range": "^5.0.1"},"engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=8"}},- "node_modules/log-update/node_modules/ansi-styles": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",- "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",- "dev": true,+ "node_modules/filter-obj": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz",+ "integrity": "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==","license": "MIT","engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "node": ">=0.10.0"}},- "node_modules/log-update/node_modules/cli-cursor": {+ "node_modules/find-up": {"version": "5.0.0",- "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz",- "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==",+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",+ "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==","dev": true,"license": "MIT","dependencies": {- "restore-cursor": "^5.0.0"+ "locate-path": "^6.0.0",+ "path-exists": "^4.0.0"},"engines": {- "node": ">=18"+ "node": ">=10"},"funding": {"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/log-update/node_modules/onetime": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz",- "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==",+ "node_modules/flat-cache": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",+ "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==","dev": true,"license": "MIT","dependencies": {- "mimic-function": "^5.0.0"+ "flatted": "^3.2.9",+ "keyv": "^4.5.4"},"engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=16"}},- "node_modules/log-update/node_modules/restore-cursor": {- "version": "5.1.0",- "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz",- "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==",+ "node_modules/flatted": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz",+ "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==","dev": true,+ "license": "ISC"+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "hasInstallScript": true,"license": "MIT",- "dependencies": {- "onetime": "^7.0.0",- "signal-exit": "^4.1.0"- },+ "optional": true,+ "os": [+ "darwin"+ ],"engines": {- "node": ">=18"- },+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "license": "MIT","funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/log-update/node_modules/wrap-ansi": {- "version": "9.0.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz",- "integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==",+ "node_modules/gensync": {+ "version": "1.0.0-beta.2",+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==","dev": true,"license": "MIT",- "dependencies": {- "ansi-styles": "^6.2.1",- "string-width": "^7.0.0",- "strip-ansi": "^7.1.0"- },"engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ "node": ">=6.9.0"}},- "node_modules/loose-envify": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",- "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",+ "node_modules/get-caller-file": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",+ "license": "ISC",+ "engines": {+ "node": "6.* || 8.* || >= 10.*"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==","license": "MIT","dependencies": {- "js-tokens": "^3.0.0 || ^4.0.0"+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"},- "bin": {- "loose-envify": "cli.js"+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/loupe": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.3.tgz",- "integrity": "sha512-kkIp7XSkP78ZxJEsSxW3712C6teJVoeHHwgo9zJ380de7IYyJ2ISlxojcH2pC5OFLewESmnRi/+XCDIEEVyoug==",- "dev": true,- "license": "MIT"- },- "node_modules/lru-cache": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",- "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",- "dev": true,- "license": "ISC",- "dependencies": {- "yallist": "^3.0.2"+ "node_modules/get-nonce": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",+ "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==",+ "license": "MIT",+ "engines": {+ "node": ">=6"}},- "node_modules/lz-string": {- "version": "1.5.0",- "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz",- "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==",- "dev": true,+ "node_modules/get-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==","license": "MIT",- "bin": {- "lz-string": "bin/bin.js"+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"}},- "node_modules/magic-string": {- "version": "0.30.17",- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz",- "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==",+ "node_modules/glob-parent": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==","dev": true,- "license": "MIT",+ "license": "ISC","dependencies": {- "@jridgewell/sourcemap-codec": "^1.5.0"+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"}},- "node_modules/make-dir": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",- "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",+ "node_modules/globals": {+ "version": "16.3.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-16.3.0.tgz",+ "integrity": "sha512-bqWEnJ1Nt3neqx2q5SFfGS8r/ahumIakg3HcwtNlrVlwXIeNumWn/c7Pn/wKzGhf6SaW6H6uWXLqC30STCMchQ==","dev": true,"license": "MIT",- "dependencies": {- "semver": "^6.0.0"- },"engines": {- "node": ">=8"+ "node": ">=18"},"funding": {"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/map-or-similar": {- "version": "1.5.0",- "resolved": "https://registry.npmjs.org/map-or-similar/-/map-or-similar-1.5.0.tgz",- "integrity": "sha512-0aF7ZmVon1igznGI4VS30yugpduQW3y3GkcgGJOp7d8x8QrizhigUxjI/m2UojsXXto+jLAH3KSz+xOJTiORjg==",- "dev": true,- "license": "MIT"- },- "node_modules/math-intrinsics": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",- "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "node_modules/gopd": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==","license": "MIT","engines": {"node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/memoizerific": {- "version": "1.11.3",- "resolved": "https://registry.npmjs.org/memoizerific/-/memoizerific-1.11.3.tgz",- "integrity": "sha512-/EuHYwAPdLtXwAwSZkh/Gutery6pD2KYd44oQLhAvQp/50mpyduZh8Q7PYHXTCJ+wuXxt7oij2LXyIJOOYFPog==",- "dev": true,- "license": "MIT",- "dependencies": {- "map-or-similar": "^1.5.0"- }+ "node_modules/graceful-fs": {+ "version": "4.2.11",+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",+ "license": "ISC"},- "node_modules/merge-stream": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",- "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",+ "node_modules/graphemer": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",+ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",+ "dev": true,"license": "MIT"},- "node_modules/merge2": {- "version": "1.4.1",- "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",- "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "node_modules/has-flag": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==","dev": true,"license": "MIT","engines": {- "node": ">= 8"+ "node": ">=8"}},- "node_modules/micromatch": {- "version": "4.0.8",- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",- "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",- "dev": true,+ "node_modules/has-property-descriptors": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==","license": "MIT","dependencies": {- "braces": "^3.0.3",- "picomatch": "^2.3.1"+ "es-define-property": "^1.0.0"},- "engines": {- "node": ">=8.6"+ "funding": {+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/micromatch/node_modules/picomatch": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",- "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",- "dev": true,+ "node_modules/has-symbols": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==","license": "MIT","engines": {- "node": ">=8.6"+ "node": ">= 0.4"},"funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },- "node_modules/mime-db": {- "version": "1.54.0",- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",- "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",- "license": "MIT",- "engines": {- "node": ">= 0.6"+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/mime-types": {- "version": "2.1.35",- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",+ "node_modules/hasown": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==","license": "MIT","dependencies": {- "mime-db": "1.52.0"+ "function-bind": "^1.1.2"},"engines": {- "node": ">= 0.6"- }- },- "node_modules/mime-types/node_modules/mime-db": {- "version": "1.52.0",- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",- "license": "MIT",- "engines": {- "node": ">= 0.6"+ "node": ">= 0.4"}},- "node_modules/mimic-fn": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",- "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",+ "node_modules/ignore": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",+ "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",+ "dev": true,"license": "MIT","engines": {- "node": ">=6"+ "node": ">= 4"}},- "node_modules/mimic-function": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz",- "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==",+ "node_modules/import-fresh": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==","dev": true,"license": "MIT",+ "dependencies": {+ "parent-module": "^1.0.0",+ "resolve-from": "^4.0.0"+ },"engines": {- "node": ">=18"+ "node": ">=6"},"funding": {"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/min-indent": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",- "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==",+ "node_modules/imurmurhash": {+ "version": "0.1.4",+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",+ "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==","dev": true,"license": "MIT","engines": {- "node": ">=4"+ "node": ">=0.8.19"}},- "node_modules/minimatch": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",- "license": "ISC",- "dependencies": {- "brace-expansion": "^1.1.7"- },+ "node_modules/indent-string": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",+ "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",+ "dev": true,+ "license": "MIT","engines": {- "node": "*"+ "node": ">=8"}},- "node_modules/minimist": {- "version": "1.2.8",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",- "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",+ "node_modules/inflection": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/inflection/-/inflection-3.0.2.tgz",+ "integrity": "sha512-+Bg3+kg+J6JUWn8J6bzFmOWkTQ6L/NHfDRSYU+EVvuKHDxUDHAXgqixHfVlzuBQaPOTac8hn43aPhMNk6rMe3g==","license": "MIT",- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "engines": {+ "node": ">=18.0.0"}},- "node_modules/minipass": {- "version": "7.1.2",- "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",- "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",- "dev": true,+ "node_modules/internmap": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz",+ "integrity": "sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==","license": "ISC","engines": {- "node": ">=16 || 14 >=14.17"+ "node": ">=12"}},- "node_modules/minizlib": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.1.tgz",- "integrity": "sha512-umcy022ILvb5/3Djuu8LWeqUa8D68JaBzlttKeMWen48SjabqS3iY5w/vzeMzMUNhLDifyhbOwKDSznB1vvrwg==",- "dev": true,+ "node_modules/is-docker": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==","license": "MIT",- "dependencies": {- "minipass": "^7.0.4",- "rimraf": "^5.0.5"+ "bin": {+ "is-docker": "cli.js"},"engines": {- "node": ">= 18"- }- },- "node_modules/minizlib/node_modules/rimraf": {- "version": "5.0.10",- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz",- "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==",- "dev": true,- "license": "ISC",- "dependencies": {- "glob": "^10.3.7"- },- "bin": {- "rimraf": "dist/esm/bin.mjs"+ "node": ">=8"},"funding": {- "url": "https://github.com/sponsors/isaacs"+ "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/mkdirp": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz",- "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==",+ "node_modules/is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==","dev": true,"license": "MIT",- "bin": {- "mkdirp": "dist/cjs/src/bin.js"- },"engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"+ "node": ">=0.10.0"}},- "node_modules/mlly": {- "version": "1.7.4",- "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.7.4.tgz",- "integrity": "sha512-qmdSIPC4bDJXgZTCR7XosJiNKySV7O215tsPtDN9iEO/7q/76b/ijtgRu/+epFXSJhijtTCCGp3DWS549P3xKw==",- "dev": true,+ "node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==","license": "MIT",- "dependencies": {- "acorn": "^8.14.0",- "pathe": "^2.0.1",- "pkg-types": "^1.3.0",- "ufo": "^1.5.4"+ "engines": {+ "node": ">=8"}},- "node_modules/mlly/node_modules/confbox": {- "version": "0.1.8",- "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz",- "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==",- "dev": true,- "license": "MIT"- },- "node_modules/mlly/node_modules/pkg-types": {- "version": "1.3.1",- "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz",- "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==",+ "node_modules/is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==","dev": true,"license": "MIT","dependencies": {- "confbox": "^0.1.8",- "mlly": "^1.7.4",- "pathe": "^2.0.1"+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"}},- "node_modules/ms": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",- "license": "MIT"- },- "node_modules/muggle-string": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz",- "integrity": "sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==",- "dev": true,- "license": "MIT"- },- "node_modules/mute-stream": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz",- "integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==",+ "node_modules/is-number": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==","dev": true,- "license": "ISC",+ "license": "MIT","engines": {- "node": "^18.17.0 || >=20.5.0"+ "node": ">=0.12.0"}},- "node_modules/nanoid": {- "version": "3.3.11",- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",- "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],+ "node_modules/is-wsl": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==","license": "MIT",- "bin": {- "nanoid": "bin/nanoid.cjs"+ "dependencies": {+ "is-docker": "^2.0.0"},"engines": {- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ "node": ">=8"}},- "node_modules/natural-compare": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",- "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",- "dev": true,- "license": "MIT"- },- "node_modules/natural-compare-lite": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz",- "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==",+ "node_modules/isexe": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==","dev": true,- "license": "MIT"+ "license": "ISC"},- "node_modules/negotiator": {- "version": "0.6.3",- "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",- "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",+ "node_modules/jiti": {+ "version": "2.5.1",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.5.1.tgz",+ "integrity": "sha512-twQoecYPiVA5K/h6SxtORw/Bs3ar+mLUtoPSc7iMXzQzK8d7eJ/R09wmTwAjiamETn1cXYPGfNnu7DMoHgu12w==","license": "MIT",- "engines": {- "node": ">= 0.6"+ "bin": {+ "jiti": "lib/jiti-cli.mjs"}},- "node_modules/node-domexception": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",- "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/jimmywarting"- },- {- "type": "github",- "url": "https://paypal.me/jimmywarting"- }- ],- "license": "MIT",- "engines": {- "node": ">=10.5.0"- }+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "license": "MIT"},- "node_modules/node-fetch": {- "version": "3.3.2",- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz",- "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",+ "node_modules/js-yaml": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",+ "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==","dev": true,"license": "MIT","dependencies": {- "data-uri-to-buffer": "^4.0.0",- "fetch-blob": "^3.1.4",- "formdata-polyfill": "^4.0.10"- },- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ "argparse": "^2.0.1"},- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/node-fetch"+ "bin": {+ "js-yaml": "bin/js-yaml.js"}},- "node_modules/node-polyglot": {- "version": "2.6.0",- "resolved": "https://registry.npmjs.org/node-polyglot/-/node-polyglot-2.6.0.tgz",- "integrity": "sha512-ZZFkaYzIfGfBvSM6QhA9dM8EEaUJOVewzGSRcXWbJELXDj0lajAtKaENCYxvF5yE+TgHg6NQb0CmgYMsMdcNJQ==",- "license": "BSD-2-Clause",- "dependencies": {- "hasown": "^2.0.2",- "object.entries": "^1.1.8",- "warning": "^4.0.3"+ "node_modules/jsesc": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jsesc": "bin/jsesc"},"engines": {- "node": ">= 0.4"+ "node": ">=6"}},- "node_modules/node-releases": {- "version": "2.0.19",- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz",- "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==",+ "node_modules/json-buffer": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==","dev": true,"license": "MIT"},- "node_modules/npm-normalize-package-bin": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-4.0.0.tgz",- "integrity": "sha512-TZKxPvItzai9kN9H/TkmCtx/ZN/hvr3vUycjlfmH0ootY9yFBzNOpiXAdIn1Iteqsvk4lQn6B5PTrt+n6h8k/w==",+ "node_modules/json-schema-traverse": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",+ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==","dev": true,- "license": "ISC",- "engines": {- "node": "^18.17.0 || >=20.5.0"- }+ "license": "MIT"},- "node_modules/npm-run-path": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-6.0.0.tgz",- "integrity": "sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==",- "dev": true,- "license": "MIT",- "dependencies": {- "path-key": "^4.0.0",- "unicorn-magic": "^0.3.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }+ "node_modules/json-stable-stringify-without-jsonify": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",+ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",+ "dev": true,+ "license": "MIT"},- "node_modules/npm-run-path/node_modules/path-key": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz",- "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==",+ "node_modules/json5": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==","dev": true,"license": "MIT",- "engines": {- "node": ">=12"+ "bin": {+ "json5": "lib/cli.js"},- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/object-assign": {- "version": "4.1.1",- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/object-inspect": {- "version": "1.13.4",- "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",- "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",- "license": "MIT","engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node": ">=6"}},- "node_modules/object-keys": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",- "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",- "license": "MIT",- "engines": {- "node": ">= 0.4"+ "node_modules/jsonexport": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/jsonexport/-/jsonexport-3.2.0.tgz",+ "integrity": "sha512-GbO9ugb0YTZatPd/hqCGR0FSwbr82H6OzG04yzdrG7XOe4QZ0jhQ+kOsB29zqkzoYJLmLxbbrFiuwbQu891XnQ==",+ "license": "Apache-2.0",+ "bin": {+ "jsonexport": "bin/jsonexport.js"}},- "node_modules/object.assign": {- "version": "4.1.7",- "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz",- "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==",+ "node_modules/keyv": {+ "version": "4.5.4",+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==","dev": true,"license": "MIT","dependencies": {- "call-bind": "^1.0.8",- "call-bound": "^1.0.3",- "define-properties": "^1.2.1",- "es-object-atoms": "^1.0.0",- "has-symbols": "^1.1.0",- "object-keys": "^1.1.1"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "json-buffer": "3.0.1"}},- "node_modules/object.entries": {- "version": "1.1.9",- "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.9.tgz",- "integrity": "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==",+ "node_modules/levn": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",+ "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",+ "dev": true,"license": "MIT","dependencies": {- "call-bind": "^1.0.8",- "call-bound": "^1.0.4",- "define-properties": "^1.2.1",- "es-object-atoms": "^1.1.1"+ "prelude-ls": "^1.2.1",+ "type-check": "~0.4.0"},"engines": {- "node": ">= 0.4"+ "node": ">= 0.8.0"}},- "node_modules/object.fromentries": {- "version": "2.0.8",- "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.8.tgz",- "integrity": "sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==",- "dev": true,- "license": "MIT",+ "node_modules/lightningcss": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.30.1.tgz",+ "integrity": "sha512-xi6IyHML+c9+Q3W0S4fCQJOym42pyurFiJUHEcEyHS0CeKzia4yZDEsLlqOFykxOdHpNy0NmvVO31vcSqAxJCg==",+ "license": "MPL-2.0","dependencies": {- "call-bind": "^1.0.7",- "define-properties": "^1.2.1",- "es-abstract": "^1.23.2",- "es-object-atoms": "^1.0.0"+ "detect-libc": "^2.0.3"},"engines": {- "node": ">= 0.4"+ "node": ">= 12.0.0"},"funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/object.groupby": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.3.tgz",- "integrity": "sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.7",- "define-properties": "^1.2.1",- "es-abstract": "^1.23.2"+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"},+ "optionalDependencies": {+ "lightningcss-darwin-arm64": "1.30.1",+ "lightningcss-darwin-x64": "1.30.1",+ "lightningcss-freebsd-x64": "1.30.1",+ "lightningcss-linux-arm-gnueabihf": "1.30.1",+ "lightningcss-linux-arm64-gnu": "1.30.1",+ "lightningcss-linux-arm64-musl": "1.30.1",+ "lightningcss-linux-x64-gnu": "1.30.1",+ "lightningcss-linux-x64-musl": "1.30.1",+ "lightningcss-win32-arm64-msvc": "1.30.1",+ "lightningcss-win32-x64-msvc": "1.30.1"+ }+ },+ "node_modules/lightningcss-darwin-arm64": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.30.1.tgz",+ "integrity": "sha512-c8JK7hyE65X1MHMN+Viq9n11RRC7hgin3HhYKhrMyaXflk5GVplZ60IxyoVtzILeKr+xAJwg6zK6sjTBJ0FKYQ==",+ "cpu": [+ "arm64"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],"engines": {- "node": ">= 0.4"+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/object.values": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.2.1.tgz",- "integrity": "sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.8",- "call-bound": "^1.0.3",- "define-properties": "^1.2.1",- "es-object-atoms": "^1.0.0"- },+ "node_modules/lightningcss-darwin-x64": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.30.1.tgz",+ "integrity": "sha512-k1EvjakfumAQoTfcXUcHQZhSpLlkAuEkdMBsI/ivWw9hL+7FtilQc0Cy3hrx0AAQrVtQAbMI7YjCgYgvn37PzA==",+ "cpu": [+ "x64"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],"engines": {- "node": ">= 0.4"+ "node": ">= 12.0.0"},"funding": {- "url": "https://github.com/sponsors/ljharb"+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/obuf": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz",- "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==",- "dev": true,- "license": "MIT"- },- "node_modules/on-headers": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz",- "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==",- "license": "MIT",+ "node_modules/lightningcss-freebsd-x64": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.30.1.tgz",+ "integrity": "sha512-kmW6UGCGg2PcyUE59K5r0kWfKPAVy4SltVeut+umLCFoJ53RdCUWxcRDzO1eTaxf/7Q2H7LTquFHPL5R+Gjyig==",+ "cpu": [+ "x64"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "freebsd"+ ],"engines": {- "node": ">= 0.8"+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/once": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",- "dev": true,- "license": "ISC",- "dependencies": {- "wrappy": "1"+ "node_modules/lightningcss-linux-arm-gnueabihf": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.30.1.tgz",+ "integrity": "sha512-MjxUShl1v8pit+6D/zSPq9S9dQ2NPFSQwGvxBCYaBYLPlCWuPh9/t1MRS8iUaR8i+a6w7aps+B4N0S1TYP/R+Q==",+ "cpu": [+ "arm"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/onetime": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",- "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",- "license": "MIT",- "dependencies": {- "mimic-fn": "^2.1.0"- },+ "node_modules/lightningcss-linux-arm64-gnu": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.30.1.tgz",+ "integrity": "sha512-gB72maP8rmrKsnKYy8XUuXi/4OctJiuQjcuqWNlJQ6jZiWqtPvqFziskH3hnajfvKB27ynbVCucKSm2rkQp4Bw==",+ "cpu": [+ "arm64"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=6"+ "node": ">= 12.0.0"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/open": {- "version": "8.4.2",- "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz",- "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "define-lazy-prop": "^2.0.0",- "is-docker": "^2.1.1",- "is-wsl": "^2.2.0"- },+ "node_modules/lightningcss-linux-arm64-musl": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.30.1.tgz",+ "integrity": "sha512-jmUQVx4331m6LIX+0wUhBbmMX7TCfjF5FoOH6SD1CttzuYlGNVpA7QnrmLxrsub43ClTINfGSYyHe2HWeLl5CQ==",+ "cpu": [+ "arm64"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=12"+ "node": ">= 12.0.0"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/openapi-types": {- "version": "12.1.3",- "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.1.3.tgz",- "integrity": "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==",- "license": "MIT"- },- "node_modules/optionator": {- "version": "0.9.4",- "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",- "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",- "dev": true,- "license": "MIT",- "dependencies": {- "deep-is": "^0.1.3",- "fast-levenshtein": "^2.0.6",- "levn": "^0.4.1",- "prelude-ls": "^1.2.1",- "type-check": "^0.4.0",- "word-wrap": "^1.2.5"- },+ "node_modules/lightningcss-linux-x64-gnu": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.30.1.tgz",+ "integrity": "sha512-piWx3z4wN8J8z3+O5kO74+yr6ze/dKmPnI7vLqfSqI8bccaTGY5xiSGVIJBDd5K5BHlvVLpUB3S2YCfelyJ1bw==",+ "cpu": [+ "x64"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">= 0.8.0"+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/os-tmpdir": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",- "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==",- "dev": true,- "license": "MIT",+ "node_modules/lightningcss-linux-x64-musl": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.30.1.tgz",+ "integrity": "sha512-rRomAK7eIkL+tHY0YPxbc5Dra2gXlI63HL+v1Pdi1a3sC+tJTcFrHX+E86sulgAXeI7rSzDYhPSeHHjqFhqfeQ==",+ "cpu": [+ "x64"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=0.10.0"+ "node": ">= 12.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/own-keys": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz",- "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==",- "dev": true,- "license": "MIT",- "dependencies": {- "get-intrinsic": "^1.2.6",- "object-keys": "^1.1.1",- "safe-push-apply": "^1.0.0"- },+ "node_modules/lightningcss-win32-arm64-msvc": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.30.1.tgz",+ "integrity": "sha512-mSL4rqPi4iXq5YVqzSsJgMVFENoa4nGTT/GjO2c0Yl9OuQfPsIfncvLrEW6RbbB24WtZ3xP/2CCmI3tNkNV4oA==",+ "cpu": [+ "arm64"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],"engines": {- "node": ">= 0.4"+ "node": ">= 12.0.0"},"funding": {- "url": "https://github.com/sponsors/ljharb"+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/p-limit": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",- "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "yocto-queue": "^0.1.0"- },+ "node_modules/lightningcss-win32-x64-msvc": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.30.1.tgz",+ "integrity": "sha512-PVqXh48wh4T53F/1CCu8PIPCxLzWyCnn/9T5W1Jpmdy5h9Cwd+0YQS6/LwhHXSafuc61/xg9Lv5OrCby6a++jg==",+ "cpu": [+ "x64"+ ],+ "license": "MPL-2.0",+ "optional": true,+ "os": [+ "win32"+ ],"engines": {- "node": ">=10"+ "node": ">= 12.0.0"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "type": "opencollective",+ "url": "https://opencollective.com/parcel"}},- "node_modules/p-locate": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",- "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",+ "node_modules/locate-path": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",+ "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==","dev": true,"license": "MIT","dependencies": {- "p-limit": "^3.0.2"+ "p-locate": "^5.0.0"},"engines": {"node": ">=10"@@ -12811,496 +5864,429 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/p-try": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",- "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }+ "node_modules/lodash": {+ "version": "4.17.21",+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",+ "license": "MIT"},- "node_modules/package-json-from-dist": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",- "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",+ "node_modules/lodash.merge": {+ "version": "4.6.2",+ "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",+ "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==","dev": true,- "license": "BlueOak-1.0.0"- },- "node_modules/papaparse": {- "version": "5.5.2",- "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.5.2.tgz",- "integrity": "sha512-PZXg8UuAc4PcVwLosEEDYjPyfWnTEhOrUfdv+3Bx+NuAb+5NhDmXzg5fHWmdCh1mP5p7JAZfFr3IMQfcntNAdA==","license": "MIT"},- "node_modules/parent-module": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",- "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",+ "node_modules/loose-envify": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",+ "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==","license": "MIT","dependencies": {- "callsites": "^3.0.0"+ "js-tokens": "^3.0.0 || ^4.0.0"},- "engines": {- "node": ">=6"+ "bin": {+ "loose-envify": "cli.js"}},- "node_modules/parse-json": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",- "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",- "license": "MIT",+ "node_modules/loupe": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz",+ "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lru-cache": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",+ "dev": true,+ "license": "ISC","dependencies": {- "@babel/code-frame": "^7.0.0",- "error-ex": "^1.3.1",- "json-parse-even-better-errors": "^2.3.0",- "lines-and-columns": "^1.1.6"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "yallist": "^3.0.2"}},- "node_modules/parse-ms": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-4.0.0.tgz",- "integrity": "sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node_modules/lucide-react": {+ "version": "0.525.0",+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.525.0.tgz",+ "integrity": "sha512-Tm1txJ2OkymCGkvwoHt33Y2JpN5xucVq1slHcgE6Lk0WjDfjgKWor5CdVER8U6DvcfMwh4M8XxmpTiyzfmfDYQ==",+ "license": "ISC",+ "peerDependencies": {+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"}},- "node_modules/patch-console": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/patch-console/-/patch-console-2.0.0.tgz",- "integrity": "sha512-0YNdUceMdaQwoKce1gatDScmMo5pu/tfABfnzEqeG0gtTmd7mh/WcwgUjtAeOU7N8nFFlbQBnFK2gXW5fGvmMA==",+ "node_modules/lz-string": {+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz",+ "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==","dev": true,"license": "MIT",- "engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ "peer": true,+ "bin": {+ "lz-string": "bin/bin.js"}},- "node_modules/path-browserify": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-1.0.1.tgz",- "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==",- "dev": true,- "license": "MIT"- },- "node_modules/path-exists": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",- "dev": true,+ "node_modules/magic-string": {+ "version": "0.30.18",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.18.tgz",+ "integrity": "sha512-yi8swmWbO17qHhwIBNeeZxTceJMeBvWJaId6dyvTSOwTipqeHhMhOrz6513r1sOKnpvQ7zkhlG8tPrpilwTxHQ==","license": "MIT",- "engines": {- "node": ">=8"+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.5"}},- "node_modules/path-is-absolute": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",- "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",- "dev": true,+ "node_modules/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==","license": "MIT","engines": {- "node": ">=0.10.0"+ "node": ">= 0.4"}},- "node_modules/path-is-inside": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz",- "integrity": "sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==",- "license": "(WTFPL OR MIT)"- },- "node_modules/path-key": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",+ "node_modules/merge2": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "dev": true,"license": "MIT","engines": {- "node": ">=8"+ "node": ">= 8"}},- "node_modules/path-parse": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",- "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",- "license": "MIT"- },- "node_modules/path-scurry": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",- "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",+ "node_modules/micromatch": {+ "version": "4.0.8",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==","dev": true,- "license": "BlueOak-1.0.0",+ "license": "MIT","dependencies": {- "lru-cache": "^10.2.0",- "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"+ "braces": "^3.0.3",+ "picomatch": "^2.3.1"},"engines": {- "node": ">=16 || 14 >=14.18"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"+ "node": ">=8.6"}},- "node_modules/path-scurry/node_modules/lru-cache": {- "version": "10.4.3",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",- "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",+ "node_modules/min-indent": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz",+ "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==","dev": true,- "license": "ISC"- },- "node_modules/path-to-regexp": {- "version": "3.3.0",- "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-3.3.0.tgz",- "integrity": "sha512-qyCH421YQPS2WFDxDjftfc1ZR5WKQzVzqsp4n9M2kQhVOo/ByahFoUNJfl58kOcEGfQ//7weFTDhm+ss8Ecxgw==",- "license": "MIT"- },- "node_modules/path-type": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",- "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==","license": "MIT","engines": {- "node": ">=8"+ "node": ">=4"}},- "node_modules/pathe": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",- "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",+ "node_modules/minimatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==","dev": true,- "license": "MIT"+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }},- "node_modules/pathval": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz",- "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==",- "dev": true,- "license": "MIT",+ "node_modules/minipass": {+ "version": "7.1.2",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",+ "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",+ "license": "ISC","engines": {- "node": ">= 14.16"+ "node": ">=16 || 14 >=14.17"}},- "node_modules/pg": {- "version": "8.14.1",- "resolved": "https://registry.npmjs.org/pg/-/pg-8.14.1.tgz",- "integrity": "sha512-0TdbqfjwIun9Fm/r89oB7RFQ0bLgduAhiIqIXOsyKoiC/L54DbuAAzIEN/9Op0f1Po9X7iCPXGoa/Ah+2aI8Xw==",- "dev": true,+ "node_modules/minizlib": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.2.tgz",+ "integrity": "sha512-oG62iEk+CYt5Xj2YqI5Xi9xWUeZhDI8jjQmC5oThVH5JGCTgIjr7ciJDzC7MBzYd//WvR1OTmP5Q38Q8ShQtVA==","license": "MIT","dependencies": {- "pg-connection-string": "^2.7.0",- "pg-pool": "^3.8.0",- "pg-protocol": "^1.8.0",- "pg-types": "^2.1.0",- "pgpass": "1.x"+ "minipass": "^7.1.2"},"engines": {- "node": ">= 8.0.0"- },- "optionalDependencies": {- "pg-cloudflare": "^1.1.1"- },- "peerDependencies": {- "pg-native": ">=3.0.1"- },- "peerDependenciesMeta": {- "pg-native": {- "optional": true- }+ "node": ">= 18"}},- "node_modules/pg-cloudflare": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.1.1.tgz",- "integrity": "sha512-xWPagP/4B6BgFO+EKz3JONXv3YDgvkbVrGw2mTo3D6tVDQRh1e7cqVGvyR3BE+eQgAvx1XhW/iEASj4/jCWl3Q==",- "dev": true,+ "node_modules/mkdirp": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz",+ "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==","license": "MIT",- "optional": true- },- "node_modules/pg-connection-string": {- "version": "2.7.0",- "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.7.0.tgz",- "integrity": "sha512-PI2W9mv53rXJQEOb8xNR8lH7Hr+EKa6oJa38zsK0S/ky2er16ios1wLKhZyxzD7jUReiWokc9WK5nxSnC7W1TA==",- "dev": true,- "license": "MIT"- },- "node_modules/pg-int8": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz",- "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==",- "dev": true,- "license": "ISC",+ "bin": {+ "mkdirp": "dist/cjs/src/bin.js"+ },"engines": {- "node": ">=4.0.0"+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"}},- "node_modules/pg-numeric": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/pg-numeric/-/pg-numeric-1.0.2.tgz",- "integrity": "sha512-BM/Thnrw5jm2kKLE5uJkXqqExRUY/toLHda65XgFTBTFYZyopbKjBe29Ii3RbkvlsMoFwD+tHeGaCjjv0gHlyw==",+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==","dev": true,- "license": "ISC",- "engines": {- "node": ">=4"- }+ "license": "MIT"},- "node_modules/pg-pool": {- "version": "3.8.0",- "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.8.0.tgz",- "integrity": "sha512-VBw3jiVm6ZOdLBTIcXLNdSotb6Iy3uOCwDGFAksZCXmi10nyRvnP2v3jl4d+IsLYRyXf6o9hIm/ZtUzlByNUdw==",- "dev": true,+ "node_modules/nanoid": {+ "version": "3.3.11",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],"license": "MIT",- "peerDependencies": {- "pg": ">=8.0"+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"}},- "node_modules/pg-protocol": {- "version": "1.8.0",- "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.8.0.tgz",- "integrity": "sha512-jvuYlEkL03NRvOoyoRktBK7+qU5kOvlAwvmrH8sr3wbLrOdVWsRxQfz8mMy9sZFsqJ1hEWNfdWKI4SAmoL+j7g==",+ "node_modules/natural-compare": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",+ "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==","dev": true,"license": "MIT"},- "node_modules/pg-types": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-4.0.2.tgz",- "integrity": "sha512-cRL3JpS3lKMGsKaWndugWQoLOCoP+Cic8oseVcbr0qhPzYD5DWXK+RZ9LY9wxRf7RQia4SCwQlXk0q6FCPrVng==",- "dev": true,+ "node_modules/next-themes": {+ "version": "0.4.6",+ "resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz",+ "integrity": "sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA==","license": "MIT",- "dependencies": {- "pg-int8": "1.0.1",- "pg-numeric": "1.0.2",- "postgres-array": "~3.0.1",- "postgres-bytea": "~3.0.0",- "postgres-date": "~2.1.0",- "postgres-interval": "^3.0.0",- "postgres-range": "^1.1.1"- },- "engines": {- "node": ">=10"+ "peerDependencies": {+ "react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc"}},- "node_modules/pg/node_modules/pg-types": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz",- "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==",- "dev": true,- "license": "MIT",+ "node_modules/node-polyglot": {+ "version": "2.6.0",+ "resolved": "https://registry.npmjs.org/node-polyglot/-/node-polyglot-2.6.0.tgz",+ "integrity": "sha512-ZZFkaYzIfGfBvSM6QhA9dM8EEaUJOVewzGSRcXWbJELXDj0lajAtKaENCYxvF5yE+TgHg6NQb0CmgYMsMdcNJQ==",+ "license": "BSD-2-Clause","dependencies": {- "pg-int8": "1.0.1",- "postgres-array": "~2.0.0",- "postgres-bytea": "~1.0.0",- "postgres-date": "~1.0.4",- "postgres-interval": "^1.1.0"+ "hasown": "^2.0.2",+ "object.entries": "^1.1.8",+ "warning": "^4.0.3"},"engines": {- "node": ">=4"+ "node": ">= 0.4"}},- "node_modules/pg/node_modules/postgres-array": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz",- "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==",+ "node_modules/node-releases": {+ "version": "2.0.19",+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz",+ "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==","dev": true,+ "license": "MIT"+ },+ "node_modules/object-assign": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==","license": "MIT","engines": {- "node": ">=4"+ "node": ">=0.10.0"}},- "node_modules/pg/node_modules/postgres-bytea": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.0.tgz",- "integrity": "sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==",- "dev": true,+ "node_modules/object-inspect": {+ "version": "1.13.4",+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==","license": "MIT","engines": {- "node": ">=0.10.0"+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/pg/node_modules/postgres-date": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz",- "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==",- "dev": true,+ "node_modules/object-keys": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==","license": "MIT","engines": {- "node": ">=0.10.0"+ "node": ">= 0.4"}},- "node_modules/pg/node_modules/postgres-interval": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz",- "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==",- "dev": true,+ "node_modules/object.entries": {+ "version": "1.1.9",+ "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.9.tgz",+ "integrity": "sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==","license": "MIT","dependencies": {- "xtend": "^4.0.0"+ "call-bind": "^1.0.8",+ "call-bound": "^1.0.4",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.1.1"},"engines": {- "node": ">=0.10.0"+ "node": ">= 0.4"}},- "node_modules/pgpass": {- "version": "1.0.5",- "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz",- "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==",- "dev": true,+ "node_modules/open": {+ "version": "8.4.2",+ "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz",+ "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==","license": "MIT","dependencies": {- "split2": "^4.1.0"- }- },- "node_modules/picocolors": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",- "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",- "license": "ISC"- },- "node_modules/picomatch": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz",- "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",- "dev": true,- "license": "MIT",+ "define-lazy-prop": "^2.0.0",+ "is-docker": "^2.1.1",+ "is-wsl": "^2.2.0"+ },"engines": {"node": ">=12"},"funding": {- "url": "https://github.com/sponsors/jonschlinkert"+ "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/pidtree": {- "version": "0.6.0",- "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz",- "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==",- "dev": true,- "license": "MIT",- "bin": {- "pidtree": "bin/pidtree.js"- },- "engines": {- "node": ">=0.10"- }+ "node_modules/openapi-types": {+ "version": "12.1.3",+ "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.1.3.tgz",+ "integrity": "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==",+ "license": "MIT"},- "node_modules/pkg-dir": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",- "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",+ "node_modules/optionator": {+ "version": "0.9.4",+ "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",+ "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==","dev": true,"license": "MIT","dependencies": {- "find-up": "^4.0.0"+ "deep-is": "^0.1.3",+ "fast-levenshtein": "^2.0.6",+ "levn": "^0.4.1",+ "prelude-ls": "^1.2.1",+ "type-check": "^0.4.0",+ "word-wrap": "^1.2.5"},"engines": {- "node": ">=8"+ "node": ">= 0.8.0"}},- "node_modules/pkg-dir/node_modules/find-up": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",- "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",+ "node_modules/p-limit": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==","dev": true,"license": "MIT","dependencies": {- "locate-path": "^5.0.0",- "path-exists": "^4.0.0"+ "yocto-queue": "^0.1.0"},"engines": {- "node": ">=8"+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/pkg-dir/node_modules/locate-path": {+ "node_modules/p-locate": {"version": "5.0.0",- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",- "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",+ "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==","dev": true,"license": "MIT","dependencies": {- "p-locate": "^4.1.0"+ "p-limit": "^3.0.2"},"engines": {- "node": ">=8"+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/pkg-dir/node_modules/p-limit": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",- "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",+ "node_modules/papaparse": {+ "version": "5.5.3",+ "resolved": "https://registry.npmjs.org/papaparse/-/papaparse-5.5.3.tgz",+ "integrity": "sha512-5QvjGxYVjxO59MGU2lHVYpRWBBtKHnlIAcSe1uNFCkkptUh63NFRj0FJQm7nR67puEruUci/ZkjmEFrjCAyP4A==",+ "license": "MIT"+ },+ "node_modules/parent-module": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",+ "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==","dev": true,"license": "MIT","dependencies": {- "p-try": "^2.0.0"+ "callsites": "^3.0.0"},"engines": {"node": ">=6"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/pkg-dir/node_modules/p-locate": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",- "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",+ "node_modules/path-exists": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==","dev": true,"license": "MIT",- "dependencies": {- "p-limit": "^2.2.0"- },"engines": {"node": ">=8"}},- "node_modules/pkg-types": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.1.0.tgz",- "integrity": "sha512-wmJwA+8ihJixSoHKxZJRBQG1oY8Yr9pGLzRmSsNms0iNWyHHAlZCa7mmKiFR10YPZuz/2k169JiS/inOjBCZ2A==",+ "node_modules/path-key": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==","dev": true,"license": "MIT",- "dependencies": {- "confbox": "^0.2.1",- "exsolve": "^1.0.1",- "pathe": "^2.0.3"+ "engines": {+ "node": ">=8"}},- "node_modules/polished": {- "version": "4.3.1",- "resolved": "https://registry.npmjs.org/polished/-/polished-4.3.1.tgz",- "integrity": "sha512-OBatVyC/N7SCW/FaDHrSd+vn0o5cS855TOmYi4OkdWUMSJCET/xip//ch8xGUvtr3i44X9LVyWwQlRMTN3pwSA==",+ "node_modules/pathe": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/pathval": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz",+ "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==","dev": true,"license": "MIT",- "dependencies": {- "@babel/runtime": "^7.17.8"- },"engines": {- "node": ">=10"+ "node": ">= 14.16"}},- "node_modules/possible-typed-array-names": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz",- "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==",+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "license": "ISC"+ },+ "node_modules/picomatch": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==","dev": true,"license": "MIT","engines": {- "node": ">= 0.4"+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"}},"node_modules/postcss": {- "version": "8.5.3",- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.3.tgz",- "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==",- "dev": true,+ "version": "8.5.6",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",+ "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==","funding": [{"type": "opencollective",@@ -13317,7 +6303,7 @@],"license": "MIT","dependencies": {- "nanoid": "^3.3.8",+ "nanoid": "^3.3.11","picocolors": "^1.1.1","source-map-js": "^1.2.1"},@@ -13325,56 +6311,6 @@"node": "^10 || ^12 || >=14"}},- "node_modules/postgres-array": {- "version": "3.0.4",- "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-3.0.4.tgz",- "integrity": "sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- }- },- "node_modules/postgres-bytea": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-3.0.0.tgz",- "integrity": "sha512-CNd4jim9RFPkObHSjVHlVrxoVQXz7quwNFpz7RY1okNNme49+sVyiTvTRobiLV548Hx/hb1BG+iE7h9493WzFw==",- "dev": true,- "license": "MIT",- "dependencies": {- "obuf": "~1.1.2"- },- "engines": {- "node": ">= 6"- }- },- "node_modules/postgres-date": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-2.1.0.tgz",- "integrity": "sha512-K7Juri8gtgXVcDfZttFKVmhglp7epKb1K4pgrkLxehjqkrgPhfG6OO8LHLkfaqkbpjNRnra018XwAr1yQFWGcA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- }- },- "node_modules/postgres-interval": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-3.0.0.tgz",- "integrity": "sha512-BSNDnbyZCXSxgA+1f5UU2GmwhoI0aU5yMxRGO8CdFEcY2BQF9xm/7MqKnYoM1nJDk8nONNWDk9WeSmePFhQdlw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- }- },- "node_modules/postgres-range": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/postgres-range/-/postgres-range-1.1.4.tgz",- "integrity": "sha512-i/hbxIE9803Alj/6ytL7UHQxRvZkI9O4Sy+J3HGc4F4oo/2eQAjTSNJ0bfxyse3bH0nuVesCk+3IRLaMtG3H6w==",- "dev": true,- "license": "MIT"- },"node_modules/prelude-ls": {"version": "1.2.1","resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",@@ -13386,9 +6322,9 @@}},"node_modules/prettier": {- "version": "3.5.3",- "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz",- "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==",+ "version": "3.6.2",+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz",+ "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==","dev": true,"license": "MIT","bin": {@@ -13401,25 +6337,13 @@"url": "https://github.com/prettier/prettier?sponsor=1"}},- "node_modules/prettier-linter-helpers": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz",- "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==",- "dev": true,- "license": "MIT",- "dependencies": {- "fast-diff": "^1.1.2"- },- "engines": {- "node": ">=6.0.0"- }- },"node_modules/pretty-format": {"version": "27.5.1","resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz","integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {"ansi-regex": "^5.0.1","ansi-styles": "^5.0.0",@@ -13435,6 +6359,7 @@"integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==","dev": true,"license": "MIT",+ "peer": true,"engines": {"node": ">=10"},@@ -13443,47 +6368,12 @@}},"node_modules/pretty-format/node_modules/react-is": {- "version": "17.0.2",- "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",- "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",- "dev": true,- "license": "MIT"- },- "node_modules/pretty-ms": {- "version": "9.2.0",- "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-9.2.0.tgz",- "integrity": "sha512-4yf0QO/sllf/1zbZWYnvWw3NxCQwLXKzIj0G849LSufP15BXKM0rbD2Z3wVnkMfjdn/CB0Dpp444gYAACdsplg==",- "dev": true,- "license": "MIT",- "dependencies": {- "parse-ms": "^4.0.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/proc-log": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-5.0.0.tgz",- "integrity": "sha512-Azwzvl90HaF0aCz1JrDdXQykFakSSNPaPoiZ9fm5qJIMHioDZEi7OAdRwSm6rSoPtY3Qutnm3L7ogmg3dc+wbQ==",- "dev": true,- "license": "ISC",- "engines": {- "node": "^18.17.0 || >=20.5.0"- }- },- "node_modules/process": {- "version": "0.11.10",- "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",- "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==",+ "version": "17.0.2",+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",+ "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==","dev": true,"license": "MIT",- "engines": {- "node": ">= 0.6.0"- }+ "peer": true},"node_modules/prop-types": {"version": "15.8.1",@@ -13506,6 +6396,7 @@"version": "2.3.1","resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz","integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",+ "dev": true,"license": "MIT","engines": {"node": ">=6"@@ -13526,23 +6417,6 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/quansync": {- "version": "0.2.10",- "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.10.tgz",- "integrity": "sha512-t41VRkMYbkHyCYmOvx/6URnN80H7k4X0lLdBMGsz+maAwrJQYB1djpV6vHrQIBE0WBSGqhtEHrK9U3DWWH8v7A==",- "dev": true,- "funding": [- {- "type": "individual",- "url": "https://github.com/sponsors/antfu"- },- {- "type": "individual",- "url": "https://github.com/sponsors/sxzz"- }- ],- "license": "MIT"- },"node_modules/query-string": {"version": "7.1.3","resolved": "https://registry.npmjs.org/query-string/-/query-string-7.1.3.tgz",@@ -13583,13 +6457,12 @@"license": "MIT"},"node_modules/ra-core": {- "version": "5.6.3",- "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.6.3.tgz",- "integrity": "sha512-Z22rKk+CXnTFvCIeKzCf6ic9I48WQotx4EzX16PS47IgrD/Wq/PH+J8YLlTzakoGyEqyxnp+KI/SveLx0QBmww==",+ "version": "5.10.2",+ "resolved": "https://registry.npmjs.org/ra-core/-/ra-core-5.10.2.tgz",+ "integrity": "sha512-QsaXd7jViOHTJPlbYeCRNMCA5Wv9sxsP0op7tDYGVp/gbcFnas/gRFv6gvs55k2SSv3anG3kwU+U0D6xuLjPiQ==","license": "MIT","dependencies": {- "@tanstack/react-query": "^5.21.7",- "clsx": "^2.1.1",+ "@tanstack/react-query": "^5.83.0","date-fns": "^3.6.0","eventemitter3": "^5.0.1","inflection": "^3.0.0",@@ -13620,9 +6493,9 @@}},"node_modules/ra-data-fakerest": {- "version": "5.6.3",- "resolved": "https://registry.npmjs.org/ra-data-fakerest/-/ra-data-fakerest-5.6.3.tgz",- "integrity": "sha512-oGQKZp6qkxLfixuUDMbYDE7KGydAvt/WasAOkWpFP5CBgWgi4zp5rBplfrvjXb1KsxsvIH357/4Qxn75Ygfwug==",+ "version": "5.10.2",+ "resolved": "https://registry.npmjs.org/ra-data-fakerest/-/ra-data-fakerest-5.10.2.tgz",+ "integrity": "sha512-VPzcRjYahLn1K/D4CHHKAkMLu4bdXqL3WtzMI8Zbc6CQ7bd4c6XC2HHOwoVhpLRVQluvLoGyK1Lkw2hH48pYfQ==","license": "MIT","dependencies": {"fakerest": "^4.0.1"@@ -13632,39 +6505,28 @@}},"node_modules/ra-i18n-polyglot": {- "version": "5.6.3",- "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.6.3.tgz",- "integrity": "sha512-tuzq//7wVA6+A1gsQB+WXhVCNS622YdkHDGNEFjp9sXezFhNdeak1zh7vWGuny6ssrbiWn2ItgjEGgw9dItYRQ==",+ "version": "5.10.2",+ "resolved": "https://registry.npmjs.org/ra-i18n-polyglot/-/ra-i18n-polyglot-5.10.2.tgz",+ "integrity": "sha512-xDInpubcj7uceIKR3GcuFx7hlyIQFJ/YI+XuPAgSXeU0EWhG9v9m4duqnYn1zno/UrYf8tBu/WPOTZn5knNfGQ==","license": "MIT","dependencies": {"node-polyglot": "^2.2.2",- "ra-core": "^5.6.3"+ "ra-core": "^5.10.2"}},"node_modules/ra-language-english": {- "version": "5.6.3",- "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.6.3.tgz",- "integrity": "sha512-pmtcOP94QS61QuXVLF4uusBe08h47Td4rQbcEiJ7o/ZoUG/VHcY52nJBXheURFyKM7LXwV4mbIBeyoT58x7MdQ==",+ "version": "5.10.2",+ "resolved": "https://registry.npmjs.org/ra-language-english/-/ra-language-english-5.10.2.tgz",+ "integrity": "sha512-OEmvKrfqr3tFzrWHsZJcVw2Vx2UU7bQtXnd85U9YWIiVg0AK2hOJaah2py3uh7EI+4mrGobQYgvYrkk1vgyX1A==","license": "MIT","dependencies": {- "ra-core": "^5.6.3"- }- },- "node_modules/ra-supabase": {- "version": "3.4.0",- "resolved": "https://registry.npmjs.org/ra-supabase/-/ra-supabase-3.4.0.tgz",- "integrity": "sha512-HhdRlt+RMPrtScmDH5QQqC9RvlkCJ4e7ywCcsN196VOBtaMdnvdqXsU13aYseGUYHVekCcOKKTrEnl8SfzkD3w==",- "license": "MIT",- "dependencies": {- "ra-supabase-core": "^3.4.0",- "ra-supabase-language-english": "^3.4.0",- "ra-supabase-ui-materialui": "^3.4.0"+ "ra-core": "^5.10.2"}},"node_modules/ra-supabase-core": {- "version": "3.4.0",- "resolved": "https://registry.npmjs.org/ra-supabase-core/-/ra-supabase-core-3.4.0.tgz",- "integrity": "sha512-Bn2Rtkz3s4B0JovIz7U4oj9XeQOC2IWjdtdQvIaV+0G3yeTFQogd67fIQpO/dLdeeG1gplFhvHcIWa/y1+DFqA==",+ "version": "3.5.1",+ "resolved": "https://registry.npmjs.org/ra-supabase-core/-/ra-supabase-core-3.5.1.tgz",+ "integrity": "sha512-YfcoiK6BZmF/tC36NehNWybxQXYLZ7s3lJ5I63VnPQiX3bVDunZt/aTJ52UeOMukl2Byha0qC93TFYJWE4+8wQ==","license": "MIT","dependencies": {"@raphiniert/ra-data-postgrest": "^2.4.1",@@ -13672,168 +6534,30 @@"openapi-types": "^12.1.3"},"peerDependencies": {- "ra-core": "^5.5.3"+ "ra-core": "^5.8.0"}},"node_modules/ra-supabase-language-english": {- "version": "3.4.0",- "resolved": "https://registry.npmjs.org/ra-supabase-language-english/-/ra-supabase-language-english-3.4.0.tgz",- "integrity": "sha512-OPf+8YwtI7eFHVS/1khs6N15T+K5WzsvghyPB5kblWWiHfU9WfpGkrV1LQHWELGEy3qSfv88MvcDDln+Sg4c3A==",+ "version": "3.5.0",+ "resolved": "https://registry.npmjs.org/ra-supabase-language-english/-/ra-supabase-language-english-3.5.0.tgz",+ "integrity": "sha512-4NTPYFD9skhFK1iKft61zjM5ok2P3ngQw6Mysu1lgG/RzEWlXFzpEX2MFdvzaF3LkrIbz2jG4OxhDOnKBmqRTQ==","license": "MIT"},- "node_modules/ra-supabase-ui-materialui": {- "version": "3.4.0",- "resolved": "https://registry.npmjs.org/ra-supabase-ui-materialui/-/ra-supabase-ui-materialui-3.4.0.tgz",- "integrity": "sha512-m18vjKvDkNVr8L1u+VPdGYFN6KvkJUWmQa94AplUPJ4nidRUSOWj7gcx1F1aOVP9dqcrr8olMmTEKEkrWgsL5g==",- "license": "MIT",- "dependencies": {- "ra-supabase-core": "^3.4.0"- },- "peerDependencies": {- "@mui/icons-material": "^5.16.12 || ^6.0.0",- "@mui/material": "^5.16.12 || ^6.0.0",- "@supabase/supabase-js": "^2.48.1",- "ra-core": "^5.5.3",- "ra-ui-materialui": "^5.5.3",- "react": "^18.0.0 || ^19.0.0",- "react-dom": "^18.0.0 || ^19.0.0",- "react-router": "^6.28.1 || ^7.1.1"- }- },- "node_modules/ra-ui-materialui": {- "version": "5.6.3",- "resolved": "https://registry.npmjs.org/ra-ui-materialui/-/ra-ui-materialui-5.6.3.tgz",- "integrity": "sha512-3KOCo0JWBJ5BeqVb8g1cdnw00+GMnpI7jlX1VqX7YIyDT3TwDbFx1sDGUOvNiLrN7qZA5dIrZWfdYlutjZT/2Q==",- "license": "MIT",- "dependencies": {- "@tanstack/react-query": "^5.21.7",- "autosuggest-highlight": "^3.1.1",- "clsx": "^2.1.1",- "css-mediaquery": "^0.1.2",- "dompurify": "^3.2.4",- "inflection": "^3.0.0",- "jsonexport": "^3.2.0",- "lodash": "~4.17.5",- "query-string": "^7.1.3",- "react-dropzone": "^14.2.3",- "react-error-boundary": "^4.0.13",- "react-transition-group": "^4.4.5"- },- "peerDependencies": {- "@mui/icons-material": "^5.16.12 || ^6.0.0",- "@mui/material": "^5.16.12 || ^6.0.0",- "@mui/utils": "^5.15.20 || ^6.0.0",- "ra-core": "^5.0.0",- "react": "^18.0.0 || ^19.0.0",- "react-dom": "^18.0.0 || ^19.0.0",- "react-hook-form": "*",- "react-is": "^18.0.0 || ^19.0.0",- "react-router": "^6.28.1 || ^7.1.1",- "react-router-dom": "^6.28.1 || ^7.1.1"- }- },- "node_modules/ra-ui-materialui/node_modules/react-error-boundary": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-4.1.2.tgz",- "integrity": "sha512-GQDxZ5Jd+Aq/qUxbCm1UtzmL/s++V7zKgE8yMktJiCQXCCFZnMZh9ng+6/Ne6PjNSXH0L9CjeOEREfRnq6Duag==",- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.12.5"- },- "peerDependencies": {- "react": ">=16.13.1"- }- },"node_modules/raf-schd": {"version": "4.0.3","resolved": "https://registry.npmjs.org/raf-schd/-/raf-schd-4.0.3.tgz","integrity": "sha512-tQkJl2GRWh83ui2DiPTJz9wEiMN20syf+5oKfB03yYP7ioZcJwsIK8FjrtLwH1m7C7e+Tt2yYBlrOpdT+dyeIQ==","license": "MIT"},- "node_modules/range-parser": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz",- "integrity": "sha512-kA5WQoNVo4t9lNx2kQNFCxKeBl5IbbSNBl1M/tLkw9WCn+hxNBAW5Qh8gdhs63CJnhjJ2zQWFoqPJP2sK1AV5A==",- "license": "MIT",- "engines": {- "node": ">= 0.6"- }- },- "node_modules/rc": {- "version": "1.2.8",- "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",- "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",- "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",- "dependencies": {- "deep-extend": "^0.6.0",- "ini": "~1.3.0",- "minimist": "^1.2.0",- "strip-json-comments": "~2.0.1"- },- "bin": {- "rc": "cli.js"- }- },- "node_modules/rc/node_modules/strip-json-comments": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",- "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },"node_modules/react": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",- "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",+ "version": "19.1.1",+ "resolved": "https://registry.npmjs.org/react/-/react-19.1.1.tgz",+ "integrity": "sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==","license": "MIT",- "dependencies": {- "loose-envify": "^1.1.0"- },"engines": {"node": ">=0.10.0"}},- "node_modules/react-admin": {- "version": "5.6.3",- "resolved": "https://registry.npmjs.org/react-admin/-/react-admin-5.6.3.tgz",- "integrity": "sha512-nZAlX1uRKgQKAQcOxMwugkjbDL7CPuU799lxoaxLK59O7AbkQl161uVqWLNUo4eaZRCpXCVqIe2an4lGlxs10g==",- "license": "MIT",- "dependencies": {- "@emotion/react": "^11.14.0",- "@emotion/styled": "^11.14.0",- "@mui/icons-material": "^5.16.12 || ^6.0.0",- "@mui/material": "^5.16.12 || ^6.0.0",- "ra-core": "^5.6.3",- "ra-i18n-polyglot": "^5.6.3",- "ra-language-english": "^5.6.3",- "ra-ui-materialui": "^5.6.3",- "react-hook-form": "^7.53.0",- "react-router": "^6.28.1 || ^7.1.1",- "react-router-dom": "^6.28.1 || ^7.1.1"- },- "peerDependencies": {- "react": "^18.0.0 || ^19.0.0",- "react-dom": "^18.0.0 || ^19.0.0"- }- },- "node_modules/react-confetti": {- "version": "6.4.0",- "resolved": "https://registry.npmjs.org/react-confetti/-/react-confetti-6.4.0.tgz",- "integrity": "sha512-5MdGUcqxrTU26I2EU7ltkWPwxvucQTuqMm8dUz72z2YMqTD6s9vMcDUysk7n9jnC+lXuCPeJJ7Knf98VEYE9Rg==",- "dev": true,- "license": "MIT",- "dependencies": {- "tween-functions": "^1.2.0"- },- "engines": {- "node": ">=16"- },- "peerDependencies": {- "react": "^16.3.0 || ^17.0.1 || ^18.0.0 || ^19.0.0"- }- },"node_modules/react-cropper": {"version": "2.3.3","resolved": "https://registry.npmjs.org/react-cropper/-/react-cropper-2.3.3.tgz",@@ -13846,49 +6570,16 @@"react": ">=17.0.2"}},- "node_modules/react-docgen": {- "version": "7.1.1",- "resolved": "https://registry.npmjs.org/react-docgen/-/react-docgen-7.1.1.tgz",- "integrity": "sha512-hlSJDQ2synMPKFZOsKo9Hi8WWZTC7POR8EmWvTSjow+VDgKzkmjQvFm2fk0tmRw+f0vTOIYKlarR0iL4996pdg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/core": "^7.18.9",- "@babel/traverse": "^7.18.9",- "@babel/types": "^7.18.9",- "@types/babel__core": "^7.18.0",- "@types/babel__traverse": "^7.18.0",- "@types/doctrine": "^0.0.9",- "@types/resolve": "^1.20.2",- "doctrine": "^3.0.0",- "resolve": "^1.22.1",- "strip-indent": "^4.0.0"- },- "engines": {- "node": ">=16.14.0"- }- },- "node_modules/react-docgen-typescript": {- "version": "2.2.2",- "resolved": "https://registry.npmjs.org/react-docgen-typescript/-/react-docgen-typescript-2.2.2.tgz",- "integrity": "sha512-tvg2ZtOpOi6QDwsb3GZhOjDkkX0h8Z2gipvTg6OVMUyoYoURhEiRNePT8NZItTVCDh39JJHnLdfCOkzoLbFnTg==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "typescript": ">= 4.3.x"- }- },"node_modules/react-dom": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",- "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",+ "version": "19.1.1",+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.1.tgz",+ "integrity": "sha512-Dlq/5LAZgF0Gaz6yiqZCf6VCcZs1ghAJyrsu84Q/GT0gV+mCxbfmKNoGRKBYMJ8IEdGPqu49YWXD02GCknEDkw==","license": "MIT","dependencies": {- "loose-envify": "^1.1.0",- "scheduler": "^0.23.2"+ "scheduler": "^0.26.0"},"peerDependencies": {- "react": "^18.3.1"+ "react": "^19.1.1"}},"node_modules/react-dropzone": {@@ -13909,9 +6600,9 @@}},"node_modules/react-error-boundary": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-5.0.0.tgz",- "integrity": "sha512-tnjAxG+IkpLephNcePNA7v6F/QpWLH8He65+DmedchDwg162JZqx4NmbXj0mlAYVVEd81OW7aFhmbsScYfiAFQ==",+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-6.0.0.tgz",+ "integrity": "sha512-gdlJjD7NWr0IfkPlaREN2d9uUZUlksrfOx7SX62VRerwXbMY6ftGCIZua1VG1aXFNOimhISsTq+Owp725b9SiA==","license": "MIT","dependencies": {"@babel/runtime": "^7.12.5"@@ -13921,9 +6612,9 @@}},"node_modules/react-hook-form": {- "version": "7.54.2",- "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.54.2.tgz",- "integrity": "sha512-eHpAUgUjWbZocoQYUHposymRb4ZP6d0uwUnooL2uOybA9/3tPUvoAKqEWK1WaSiTxxOfTpffNZP7QwlnM3/gEg==",+ "version": "7.62.0",+ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.62.0.tgz",+ "integrity": "sha512-7KWFejc98xqG/F4bAxpL41NB3o1nnvQO1RWZT3TqRZYL8RryQETGfEdVnJN2fy1crCiBLLjkRBVK05j24FxJGA==","license": "MIT","engines": {"node": ">=18.0.0"@@ -13937,28 +6628,11 @@}},"node_modules/react-is": {- "version": "19.0.0",- "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.0.0.tgz",- "integrity": "sha512-H91OHcwjZsbq3ClIDHMzBShc1rotbfACdWENsmEf0IFvZ3FgGPtdHMcsv45bQ1hAbgdfiA8SnxTKfDS+x/8m2g==",+ "version": "19.1.1",+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.1.1.tgz",+ "integrity": "sha512-tr41fA15Vn8p4X9ntI+yCyeGSf1TlYaY5vlTZfQmeLBrFo3psOPX6HhTDnFNL9uj3EhP0KAQ80cugCl4b4BERA==","license": "MIT"},- "node_modules/react-reconciler": {- "version": "0.29.2",- "resolved": "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.29.2.tgz",- "integrity": "sha512-zZQqIiYgDCTP/f1N/mAR10nJGrPD2ZR+jDSEsKWJHYC7Cm2wodlwbR3upZRdC3cjIjSlTLNVyO7Iu0Yy7t2AYg==",- "dev": true,- "license": "MIT",- "dependencies": {- "loose-envify": "^1.1.0",- "scheduler": "^0.23.2"- },- "engines": {- "node": ">=0.10.0"- },- "peerDependencies": {- "react": "^18.3.1"- }- },"node_modules/react-redux": {"version": "9.2.0","resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.2.0.tgz",@@ -13983,382 +6657,190 @@}},"node_modules/react-refresh": {- "version": "0.14.2",- "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.14.2.tgz",- "integrity": "sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==",+ "version": "0.17.0",+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",+ "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==","dev": true,"license": "MIT","engines": {"node": ">=0.10.0"}},- "node_modules/react-router": {- "version": "7.4.0",- "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.4.0.tgz",- "integrity": "sha512-Y2g5ObjkvX3VFeVt+0CIPuYd9PpgqCslG7ASSIdN73LwA1nNWzcMLaoMRJfP3prZFI92svxFwbn7XkLJ+UPQ6A==",- "license": "MIT",- "dependencies": {- "@types/cookie": "^0.6.0",- "cookie": "^1.0.1",- "set-cookie-parser": "^2.6.0",- "turbo-stream": "2.4.0"- },- "engines": {- "node": ">=20.0.0"- },- "peerDependencies": {- "react": ">=18",- "react-dom": ">=18"- },- "peerDependenciesMeta": {- "react-dom": {- "optional": true- }- }- },- "node_modules/react-router-dom": {- "version": "7.4.0",- "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.4.0.tgz",- "integrity": "sha512-VlksBPf3n2bijPvnA7nkTsXxMAKOj+bWp4R9c3i+bnwlSOFAGOkJkKhzy/OsRkWaBMICqcAl1JDzh9ZSOze9CA==",+ "node_modules/react-remove-scroll": {+ "version": "2.7.1",+ "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.7.1.tgz",+ "integrity": "sha512-HpMh8+oahmIdOuS5aFKKY6Pyog+FNaZV/XyJOq7b4YFwsFHe5yYfdbIalI4k3vU2nSDql7YskmUseHsRrJqIPA==","license": "MIT","dependencies": {- "react-router": "7.4.0"+ "react-remove-scroll-bar": "^2.3.7",+ "react-style-singleton": "^2.2.3",+ "tslib": "^2.1.0",+ "use-callback-ref": "^1.3.3",+ "use-sidecar": "^1.1.3"},"engines": {- "node": ">=20.0.0"- },- "peerDependencies": {- "react": ">=18",- "react-dom": ">=18"- }- },- "node_modules/react-transition-group": {- "version": "4.4.5",- "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz",- "integrity": "sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==",- "license": "BSD-3-Clause",- "dependencies": {- "@babel/runtime": "^7.5.5",- "dom-helpers": "^5.0.1",- "loose-envify": "^1.4.0",- "prop-types": "^15.6.2"+ "node": ">=10"},"peerDependencies": {- "react": ">=16.6.0",- "react-dom": ">=16.6.0"- }- },- "node_modules/read-cmd-shim": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/read-cmd-shim/-/read-cmd-shim-5.0.0.tgz",- "integrity": "sha512-SEbJV7tohp3DAAILbEMPXavBjAnMN0tVnh4+9G8ihV4Pq3HYF9h8QNez9zkJ1ILkv9G2BjdzwctznGZXgu/HGw==",- "dev": true,- "license": "ISC",- "engines": {- "node": "^18.17.0 || >=20.5.0"- }- },- "node_modules/recast": {- "version": "0.23.11",- "resolved": "https://registry.npmjs.org/recast/-/recast-0.23.11.tgz",- "integrity": "sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ast-types": "^0.16.1",- "esprima": "~4.0.0",- "source-map": "~0.6.1",- "tiny-invariant": "^1.3.3",- "tslib": "^2.0.1"- },- "engines": {- "node": ">= 4"- }- },- "node_modules/recast/node_modules/source-map": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/redent": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz",- "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==",- "dev": true,- "license": "MIT",- "dependencies": {- "indent-string": "^4.0.0",- "strip-indent": "^3.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/redent/node_modules/indent-string": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",- "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/redent/node_modules/strip-indent": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz",- "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "min-indent": "^1.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/redux": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz",- "integrity": "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==",- "license": "MIT"- },- "node_modules/reflect.getprototypeof": {- "version": "1.0.10",- "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz",- "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.8",- "define-properties": "^1.2.1",- "es-abstract": "^1.23.9",- "es-errors": "^1.3.0",- "es-object-atoms": "^1.0.0",- "get-intrinsic": "^1.2.7",- "get-proto": "^1.0.1",- "which-builtin-type": "^1.2.1"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/regenerate": {- "version": "1.4.2",- "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz",- "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==",- "dev": true,- "license": "MIT"- },- "node_modules/regenerate-unicode-properties": {- "version": "10.2.0",- "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz",- "integrity": "sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA==",- "dev": true,- "license": "MIT",- "dependencies": {- "regenerate": "^1.4.2"+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"},- "engines": {- "node": ">=4"- }- },- "node_modules/regenerator-runtime": {- "version": "0.14.1",- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",- "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",- "license": "MIT"- },- "node_modules/regenerator-transform": {- "version": "0.15.2",- "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz",- "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/runtime": "^7.8.4"+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/regexp.prototype.flags": {- "version": "1.5.4",- "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz",- "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==",- "dev": true,+ "node_modules/react-remove-scroll-bar": {+ "version": "2.3.8",+ "resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.8.tgz",+ "integrity": "sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==","license": "MIT","dependencies": {- "call-bind": "^1.0.8",- "define-properties": "^1.2.1",- "es-errors": "^1.3.0",- "get-proto": "^1.0.1",- "gopd": "^1.2.0",- "set-function-name": "^2.0.2"+ "react-style-singleton": "^2.2.2",+ "tslib": "^2.0.0"},"engines": {- "node": ">= 0.4"+ "node": ">=10"},- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/regexpu-core": {- "version": "6.2.0",- "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.2.0.tgz",- "integrity": "sha512-H66BPQMrv+V16t8xtmq+UC0CBpiTBA60V8ibS1QVReIp8T1z8hwFxqcGzm9K6lgsN7sB5edVH8a+ze6Fqm4weA==",- "dev": true,+ "node_modules/react-router": {+ "version": "7.8.2",+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.8.2.tgz",+ "integrity": "sha512-7M2fR1JbIZ/jFWqelpvSZx+7vd7UlBTfdZqf6OSdF9g6+sfdqJDAWcak6ervbHph200ePlu+7G8LdoiC3ReyAQ==","license": "MIT","dependencies": {- "regenerate": "^1.4.2",- "regenerate-unicode-properties": "^10.2.0",- "regjsgen": "^0.8.0",- "regjsparser": "^0.12.0",- "unicode-match-property-ecmascript": "^2.0.0",- "unicode-match-property-value-ecmascript": "^2.1.0"+ "cookie": "^1.0.1",+ "set-cookie-parser": "^2.6.0"},"engines": {- "node": ">=4"+ "node": ">=20.0.0"+ },+ "peerDependencies": {+ "react": ">=18",+ "react-dom": ">=18"+ },+ "peerDependenciesMeta": {+ "react-dom": {+ "optional": true+ }}},- "node_modules/registry-auth-token": {- "version": "3.3.2",- "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.2.tgz",- "integrity": "sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ==",+ "node_modules/react-router-dom": {+ "version": "7.8.2",+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.8.2.tgz",+ "integrity": "sha512-Z4VM5mKDipal2jQ385H6UBhiiEDlnJPx6jyWsTYoZQdl5TrjxEV2a9yl3Fi60NBJxYzOTGTTHXPi0pdizvTwow==","license": "MIT",+ "peer": true,"dependencies": {- "rc": "^1.1.6",- "safe-buffer": "^5.0.1"+ "react-router": "7.8.2"+ },+ "engines": {+ "node": ">=20.0.0"+ },+ "peerDependencies": {+ "react": ">=18",+ "react-dom": ">=18"}},- "node_modules/registry-url": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz",- "integrity": "sha512-ZbgR5aZEdf4UKZVBPYIgaglBmSF2Hi94s2PcIHhRGFjKYu+chjJdYfHn4rt3hB6eCKLJ8giVIIfgMa1ehDfZKA==",+ "node_modules/react-style-singleton": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.3.tgz",+ "integrity": "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==","license": "MIT","dependencies": {- "rc": "^1.0.1"+ "get-nonce": "^1.0.0",+ "tslib": "^2.0.0"},"engines": {- "node": ">=0.10.0"+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/regjsgen": {- "version": "0.8.0",- "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz",- "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==",- "dev": true,- "license": "MIT"+ "node_modules/react-virtualized-auto-sizer": {+ "version": "1.0.26",+ "resolved": "https://registry.npmjs.org/react-virtualized-auto-sizer/-/react-virtualized-auto-sizer-1.0.26.tgz",+ "integrity": "sha512-CblNyiNVw2o+hsa5/49NH2ogGxZ+t+3aweRvNSq7TVjDIlwk7ir4lencEg5HxHeSzwNarSkNkiu0qJSOXtxm5A==",+ "license": "MIT",+ "peerDependencies": {+ "react": "^15.3.0 || ^16.0.0-alpha || ^17.0.0 || ^18.0.0 || ^19.0.0",+ "react-dom": "^15.3.0 || ^16.0.0-alpha || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }},- "node_modules/regjsparser": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.12.0.tgz",- "integrity": "sha512-cnE+y8bz4NhMjISKbgeVJtqNbtf5QpjZP+Bslo+UqkIt9QPnX9q095eiRRASJG1/tz6dlNr6Z5NsBiWYokp6EQ==",+ "node_modules/recast": {+ "version": "0.23.11",+ "resolved": "https://registry.npmjs.org/recast/-/recast-0.23.11.tgz",+ "integrity": "sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA==","dev": true,- "license": "BSD-2-Clause",+ "license": "MIT",+ "peer": true,"dependencies": {- "jsesc": "~3.0.2"+ "ast-types": "^0.16.1",+ "esprima": "~4.0.0",+ "source-map": "~0.6.1",+ "tiny-invariant": "^1.3.3",+ "tslib": "^2.0.1"},- "bin": {- "regjsparser": "bin/parser"+ "engines": {+ "node": ">= 4"}},- "node_modules/regjsparser/node_modules/jsesc": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz",- "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==",+ "node_modules/redent": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz",+ "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==","dev": true,"license": "MIT",- "bin": {- "jsesc": "bin/jsesc"+ "dependencies": {+ "indent-string": "^4.0.0",+ "strip-indent": "^3.0.0"},"engines": {- "node": ">=6"+ "node": ">=8"}},- "node_modules/remove-accents": {- "version": "0.4.4",- "resolved": "https://registry.npmjs.org/remove-accents/-/remove-accents-0.4.4.tgz",- "integrity": "sha512-EpFcOa/ISetVHEXqu+VwI96KZBmq+a8LJnGkaeFw45epGlxIZz5dhEEnNZMsQXgORu3qaMoLX4qJCzOik6ytAg==",+ "node_modules/redux": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/redux/-/redux-5.0.1.tgz",+ "integrity": "sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==","license": "MIT"},"node_modules/require-directory": {"version": "2.1.1","resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz","integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/require-from-string": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",- "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==","license": "MIT","engines": {"node": ">=0.10.0"}},- "node_modules/resolve": {- "version": "1.22.10",- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",- "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==",- "license": "MIT",- "dependencies": {- "is-core-module": "^2.16.0",- "path-parse": "^1.0.7",- "supports-preserve-symlinks-flag": "^1.0.0"- },- "bin": {- "resolve": "bin/resolve"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },"node_modules/resolve-from": {"version": "4.0.0","resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz","integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",- "license": "MIT",- "engines": {- "node": ">=4"- }- },- "node_modules/restore-cursor": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz",- "integrity": "sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==","dev": true,"license": "MIT",- "dependencies": {- "onetime": "^5.1.0",- "signal-exit": "^3.0.2"- },"engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=4"}},- "node_modules/restore-cursor/node_modules/signal-exit": {- "version": "3.0.7",- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",- "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",- "dev": true,- "license": "ISC"- },"node_modules/reusify": {"version": "1.1.0","resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",@@ -14370,60 +6852,13 @@"node": ">=0.10.0"}},- "node_modules/rfdc": {- "version": "1.4.1",- "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz",- "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==",- "dev": true,- "license": "MIT"- },- "node_modules/rimraf": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",- "deprecated": "Rimraf versions prior to v4 are no longer supported",- "dev": true,- "license": "ISC",- "dependencies": {- "glob": "^7.1.3"- },- "bin": {- "rimraf": "bin.js"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/rimraf/node_modules/glob": {- "version": "7.2.3",- "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",- "dev": true,- "license": "ISC",- "dependencies": {- "fs.realpath": "^1.0.0",- "inflight": "^1.0.4",- "inherits": "2",- "minimatch": "^3.1.1",- "once": "^1.3.0",- "path-is-absolute": "^1.0.0"- },- "engines": {- "node": "*"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },"node_modules/rollup": {- "version": "4.36.0",- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.36.0.tgz",- "integrity": "sha512-zwATAXNQxUcd40zgtQG0ZafcRK4g004WtEl7kbuhTWPvf07PsfohXl39jVUvPF7jvNAIkKPQ2XrsDlWuxBd++Q==",- "dev": true,+ "version": "4.50.0",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.50.0.tgz",+ "integrity": "sha512-/Zl4D8zPifNmyGzJS+3kVoyXeDeT/GrsJM94sACNg9RtUE0hrHa1bNPtRSrfHTMH5HjRzce6K7rlTh3Khiw+pw==","license": "MIT","dependencies": {- "@types/estree": "1.0.6"+ "@types/estree": "1.0.8"},"bin": {"rollup": "dist/bin/rollup"@@ -14433,36 +6868,37 @@"npm": ">=8.0.0"},"optionalDependencies": {- "@rollup/rollup-android-arm-eabi": "4.36.0",- "@rollup/rollup-android-arm64": "4.36.0",- "@rollup/rollup-darwin-arm64": "4.36.0",- "@rollup/rollup-darwin-x64": "4.36.0",- "@rollup/rollup-freebsd-arm64": "4.36.0",- "@rollup/rollup-freebsd-x64": "4.36.0",- "@rollup/rollup-linux-arm-gnueabihf": "4.36.0",- "@rollup/rollup-linux-arm-musleabihf": "4.36.0",- "@rollup/rollup-linux-arm64-gnu": "4.36.0",- "@rollup/rollup-linux-arm64-musl": "4.36.0",- "@rollup/rollup-linux-loongarch64-gnu": "4.36.0",- "@rollup/rollup-linux-powerpc64le-gnu": "4.36.0",- "@rollup/rollup-linux-riscv64-gnu": "4.36.0",- "@rollup/rollup-linux-s390x-gnu": "4.36.0",- "@rollup/rollup-linux-x64-gnu": "4.36.0",- "@rollup/rollup-linux-x64-musl": "4.36.0",- "@rollup/rollup-win32-arm64-msvc": "4.36.0",- "@rollup/rollup-win32-ia32-msvc": "4.36.0",- "@rollup/rollup-win32-x64-msvc": "4.36.0",+ "@rollup/rollup-android-arm-eabi": "4.50.0",+ "@rollup/rollup-android-arm64": "4.50.0",+ "@rollup/rollup-darwin-arm64": "4.50.0",+ "@rollup/rollup-darwin-x64": "4.50.0",+ "@rollup/rollup-freebsd-arm64": "4.50.0",+ "@rollup/rollup-freebsd-x64": "4.50.0",+ "@rollup/rollup-linux-arm-gnueabihf": "4.50.0",+ "@rollup/rollup-linux-arm-musleabihf": "4.50.0",+ "@rollup/rollup-linux-arm64-gnu": "4.50.0",+ "@rollup/rollup-linux-arm64-musl": "4.50.0",+ "@rollup/rollup-linux-loongarch64-gnu": "4.50.0",+ "@rollup/rollup-linux-ppc64-gnu": "4.50.0",+ "@rollup/rollup-linux-riscv64-gnu": "4.50.0",+ "@rollup/rollup-linux-riscv64-musl": "4.50.0",+ "@rollup/rollup-linux-s390x-gnu": "4.50.0",+ "@rollup/rollup-linux-x64-gnu": "4.50.0",+ "@rollup/rollup-linux-x64-musl": "4.50.0",+ "@rollup/rollup-openharmony-arm64": "4.50.0",+ "@rollup/rollup-win32-arm64-msvc": "4.50.0",+ "@rollup/rollup-win32-ia32-msvc": "4.50.0",+ "@rollup/rollup-win32-x64-msvc": "4.50.0","fsevents": "~2.3.2"}},"node_modules/rollup-plugin-visualizer": {- "version": "5.14.0",- "resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.14.0.tgz",- "integrity": "sha512-VlDXneTDaKsHIw8yzJAFWtrzguoJ/LnQ+lMpoVfYJ3jJF4Ihe5oYLAqLklIK/35lgUY+1yEzCkHyZ1j4A5w5fA==",- "dev": true,+ "version": "6.0.3",+ "resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-6.0.3.tgz",+ "integrity": "sha512-ZU41GwrkDcCpVoffviuM9Clwjy5fcUxlz0oMoTXTYsK+tcIFzbdacnrr2n8TXcHxbGKKXtOdjxM2HUS4HjkwIw==","license": "MIT","dependencies": {- "open": "^8.4.0",+ "open": "^8.0.0","picomatch": "^4.0.2","source-map": "^0.7.4","yargs": "^17.5.1"@@ -14474,7 +6910,7 @@"node": ">=18"},"peerDependencies": {- "rolldown": "1.x",+ "rolldown": "1.x || ^1.0.0-beta","rollup": "2.x || 3.x || 4.x"},"peerDependenciesMeta": {@@ -14486,14 +6922,25 @@}}},+ "node_modules/rollup-plugin-visualizer/node_modules/picomatch": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },"node_modules/rollup-plugin-visualizer/node_modules/source-map": {- "version": "0.7.4",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz",- "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==",- "dev": true,+ "version": "0.7.6",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz",+ "integrity": "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==","license": "BSD-3-Clause","engines": {- "node": ">= 8"+ "node": ">= 12"}},"node_modules/run-parallel": {@@ -14520,82 +6967,11 @@"queue-microtask": "^1.2.2"}},- "node_modules/safe-array-concat": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz",- "integrity": "sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.8",- "call-bound": "^1.0.2",- "get-intrinsic": "^1.2.6",- "has-symbols": "^1.1.0",- "isarray": "^2.0.5"- },- "engines": {- "node": ">=0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "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"- },- "node_modules/safe-push-apply": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz",- "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==",- "dev": true,- "license": "MIT",- "dependencies": {- "es-errors": "^1.3.0",- "isarray": "^2.0.5"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/safe-regex-test": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz",- "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bound": "^1.0.2",- "es-errors": "^1.3.0",- "is-regex": "^1.2.1"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/safer-buffer": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",- "dev": true,- "license": "MIT"- },"node_modules/scheduler": {- "version": "0.23.2",- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",- "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",- "license": "MIT",- "dependencies": {- "loose-envify": "^1.1.0"- }+ "version": "0.26.0",+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz",+ "integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==",+ "license": "MIT"},"node_modules/semver": {"version": "6.3.1",@@ -14604,104 +6980,9 @@"dev": true,"license": "ISC","bin": {- "semver": "bin/semver.js"- }- },- "node_modules/serve": {- "version": "14.2.4",- "resolved": "https://registry.npmjs.org/serve/-/serve-14.2.4.tgz",- "integrity": "sha512-qy1S34PJ/fcY8gjVGszDB3EXiPSk5FKhUa7tQe0UPRddxRidc2V6cNHPNewbE1D7MAkgLuWEt3Vw56vYy73tzQ==",- "license": "MIT",- "dependencies": {- "@zeit/schemas": "2.36.0",- "ajv": "8.12.0",- "arg": "5.0.2",- "boxen": "7.0.0",- "chalk": "5.0.1",- "chalk-template": "0.4.0",- "clipboardy": "3.0.0",- "compression": "1.7.4",- "is-port-reachable": "4.0.0",- "serve-handler": "6.1.6",- "update-check": "1.5.4"- },- "bin": {- "serve": "build/main.js"- },- "engines": {- "node": ">= 14"- }- },- "node_modules/serve-handler": {- "version": "6.1.6",- "resolved": "https://registry.npmjs.org/serve-handler/-/serve-handler-6.1.6.tgz",- "integrity": "sha512-x5RL9Y2p5+Sh3D38Fh9i/iQ5ZK+e4xuXRd/pGbM4D13tgo/MGwbttUk8emytcr1YYzBYs+apnUngBDFYfpjPuQ==",- "license": "MIT",- "dependencies": {- "bytes": "3.0.0",- "content-disposition": "0.5.2",- "mime-types": "2.1.18",- "minimatch": "3.1.2",- "path-is-inside": "1.0.2",- "path-to-regexp": "3.3.0",- "range-parser": "1.2.0"- }- },- "node_modules/serve-handler/node_modules/mime-db": {- "version": "1.33.0",- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz",- "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==",- "license": "MIT",- "engines": {- "node": ">= 0.6"- }- },- "node_modules/serve-handler/node_modules/mime-types": {- "version": "2.1.18",- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz",- "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==",- "license": "MIT",- "dependencies": {- "mime-db": "~1.33.0"- },- "engines": {- "node": ">= 0.6"- }- },- "node_modules/serve/node_modules/ajv": {- "version": "8.12.0",- "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz",- "integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==",- "license": "MIT",- "dependencies": {- "fast-deep-equal": "^3.1.1",- "json-schema-traverse": "^1.0.0",- "require-from-string": "^2.0.2",- "uri-js": "^4.2.2"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/epoberezkin"- }- },- "node_modules/serve/node_modules/chalk": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.1.tgz",- "integrity": "sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==",- "license": "MIT",- "engines": {- "node": "^12.17.0 || ^14.13 || >=16.0.0"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"+ "semver": "bin/semver.js"}},- "node_modules/serve/node_modules/json-schema-traverse": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",- "license": "MIT"- },"node_modules/set-cookie-parser": {"version": "2.7.1","resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.1.tgz",@@ -14725,41 +7006,11 @@"node": ">= 0.4"}},- "node_modules/set-function-name": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz",- "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "define-data-property": "^1.1.4",- "es-errors": "^1.3.0",- "functions-have-names": "^1.2.3",- "has-property-descriptors": "^1.0.2"- },- "engines": {- "node": ">= 0.4"- }- },- "node_modules/set-proto": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz",- "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==",- "dev": true,- "license": "MIT",- "dependencies": {- "dunder-proto": "^1.0.1",- "es-errors": "^1.3.0",- "es-object-atoms": "^1.0.0"- },- "engines": {- "node": ">= 0.4"- }- },"node_modules/shebang-command": {"version": "2.0.0","resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz","integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",+ "dev": true,"license": "MIT","dependencies": {"shebang-regex": "^3.0.0"@@ -14772,6 +7023,7 @@"version": "3.0.0","resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz","integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",+ "dev": true,"license": "MIT","engines": {"node": ">=8"@@ -14856,80 +7108,23 @@"dev": true,"license": "ISC"},- "node_modules/signal-exit": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",- "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",- "dev": true,- "license": "ISC",- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/slash": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",- "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/slice-ansi": {- "version": "7.1.0",- "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.0.tgz",- "integrity": "sha512-bSiSngZ/jWeX93BqeIAbImyTbEihizcwNjFoRUIY/T1wWQsfsm2Vw1agPKylXvQTU7iASGdHhyqRlqQzfz+Htg==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^6.2.1",- "is-fullwidth-code-point": "^5.0.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/chalk/slice-ansi?sponsor=1"- }- },- "node_modules/slice-ansi/node_modules/ansi-styles": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",- "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/slice-ansi/node_modules/is-fullwidth-code-point": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-5.0.0.tgz",- "integrity": "sha512-OVa3u9kkBbw7b8Xw5F9P+D/T9X+Z4+JruYVNapTjPYZYUznQ5YfWeFkOj606XYYW8yugTfC8Pj0hYqvi4ryAhA==",- "dev": true,+ "node_modules/sonner": {+ "version": "2.0.7",+ "resolved": "https://registry.npmjs.org/sonner/-/sonner-2.0.7.tgz",+ "integrity": "sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w==","license": "MIT",- "dependencies": {- "get-east-asian-width": "^1.0.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "peerDependencies": {+ "react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc",+ "react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-rc"}},"node_modules/source-map": {- "version": "0.5.7",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",- "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==",+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "dev": true,"license": "BSD-3-Clause",+ "peer": true,"engines": {"node": ">=0.10.0"}@@ -14938,7 +7133,6 @@"version": "1.2.1","resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz","integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",- "dev": true,"license": "BSD-3-Clause","engines": {"node": ">=0.10.0"@@ -14953,46 +7147,6 @@"node": ">=6"}},- "node_modules/split2": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz",- "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==",- "dev": true,- "license": "ISC",- "engines": {- "node": ">= 10.x"- }- },- "node_modules/sprintf-js": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",- "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",- "dev": true,- "license": "BSD-3-Clause"- },- "node_modules/stack-utils": {- "version": "2.0.6",- "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz",- "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "escape-string-regexp": "^2.0.0"- },- "engines": {- "node": ">=10"- }- },- "node_modules/stack-utils/node_modules/escape-string-regexp": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",- "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },"node_modules/stackback": {"version": "0.0.2","resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",@@ -15001,24 +7155,34 @@"license": "MIT"},"node_modules/std-env": {- "version": "3.8.1",- "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.8.1.tgz",- "integrity": "sha512-vj5lIj3Mwf9D79hBkltk5qmkFI+biIKWS2IBxEyEU3AX1tUf7AoL8nSazCOiiqQsGKIq01SClsKEzweu34uwvA==",+ "version": "3.9.0",+ "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.9.0.tgz",+ "integrity": "sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==","dev": true,"license": "MIT"},"node_modules/storybook": {- "version": "8.6.7",- "resolved": "https://registry.npmjs.org/storybook/-/storybook-8.6.7.tgz",- "integrity": "sha512-9gktoFMQDSCINNGQH869d/sar9rVtAhr0HchcvDA6bssAqgQJvTphY4qC9lH54SxfTJm/7Sy+BKEngMK+dziJg==",+ "version": "9.1.3",+ "resolved": "https://registry.npmjs.org/storybook/-/storybook-9.1.3.tgz",+ "integrity": "sha512-Sm+qP3iGb/QKx/jTYdfE0mIeTmA2HF+5k9fD70S9oOJq3F9UdW8MLgs+5PE+E/xAfDjZU4OWAKEOyA6EYIvQHg==","dev": true,"license": "MIT",+ "peer": true,"dependencies": {- "@storybook/core": "8.6.7"+ "@storybook/global": "^5.0.0",+ "@testing-library/jest-dom": "^6.6.3",+ "@testing-library/user-event": "^14.6.1",+ "@vitest/expect": "3.2.4",+ "@vitest/mocker": "3.2.4",+ "@vitest/spy": "3.2.4",+ "better-opn": "^3.0.2",+ "esbuild": "^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0 || ^0.25.0",+ "esbuild-register": "^3.5.0",+ "recast": "^0.23.5",+ "semver": "^7.6.2",+ "ws": "^8.18.0"},"bin": {- "getstorybook": "bin/index.cjs",- "sb": "bin/index.cjs","storybook": "bin/index.cjs"},"funding": {@@ -15034,237 +7198,47 @@}}},- "node_modules/strict-uri-encode": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz",- "integrity": "sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==",- "license": "MIT",- "engines": {- "node": ">=4"- }- },- "node_modules/string-argv": {- "version": "0.3.2",- "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz",- "integrity": "sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.6.19"- }- },- "node_modules/string-natural-compare": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/string-natural-compare/-/string-natural-compare-3.0.1.tgz",- "integrity": "sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==",- "dev": true,- "license": "MIT"- },- "node_modules/string-width": {- "version": "7.2.0",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",- "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "emoji-regex": "^10.3.0",- "get-east-asian-width": "^1.0.0",- "strip-ansi": "^7.1.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/string-width-cjs": {- "name": "string-width",- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/string-width-cjs/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",- "dev": true,- "license": "MIT"- },- "node_modules/string-width-cjs/node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/string-width-cjs/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/string-width/node_modules/emoji-regex": {- "version": "10.4.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz",- "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==",- "dev": true,- "license": "MIT"- },- "node_modules/string.prototype.includes": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/string.prototype.includes/-/string.prototype.includes-2.0.1.tgz",- "integrity": "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.7",- "define-properties": "^1.2.1",- "es-abstract": "^1.23.3"- },- "engines": {- "node": ">= 0.4"- }- },- "node_modules/string.prototype.matchall": {- "version": "4.0.12",- "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.12.tgz",- "integrity": "sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.8",- "call-bound": "^1.0.3",- "define-properties": "^1.2.1",- "es-abstract": "^1.23.6",- "es-errors": "^1.3.0",- "es-object-atoms": "^1.0.0",- "get-intrinsic": "^1.2.6",- "gopd": "^1.2.0",- "has-symbols": "^1.1.0",- "internal-slot": "^1.1.0",- "regexp.prototype.flags": "^1.5.3",- "set-function-name": "^2.0.2",- "side-channel": "^1.1.0"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/string.prototype.repeat": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-1.0.0.tgz",- "integrity": "sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==",- "dev": true,- "license": "MIT",- "dependencies": {- "define-properties": "^1.1.3",- "es-abstract": "^1.17.5"- }- },- "node_modules/string.prototype.trim": {- "version": "1.2.10",- "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz",- "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.8",- "call-bound": "^1.0.2",- "define-data-property": "^1.1.4",- "define-properties": "^1.2.1",- "es-abstract": "^1.23.5",- "es-object-atoms": "^1.0.0",- "has-property-descriptors": "^1.0.2"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/string.prototype.trimend": {- "version": "1.0.9",- "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz",- "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==",+ "node_modules/storybook/node_modules/semver": {+ "version": "7.7.2",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",+ "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==","dev": true,- "license": "MIT",- "dependencies": {- "call-bind": "^1.0.8",- "call-bound": "^1.0.2",- "define-properties": "^1.2.1",- "es-object-atoms": "^1.0.0"+ "license": "ISC",+ "peer": true,+ "bin": {+ "semver": "bin/semver.js"},"engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node": ">=10"}},- "node_modules/string.prototype.trimstart": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz",- "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==",- "dev": true,+ "node_modules/strict-uri-encode": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz",+ "integrity": "sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==","license": "MIT",- "dependencies": {- "call-bind": "^1.0.7",- "define-properties": "^1.2.1",- "es-object-atoms": "^1.0.0"- },"engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node": ">=4"}},- "node_modules/strip-ansi": {- "version": "7.1.0",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",- "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",+ "node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==","license": "MIT","dependencies": {- "ansi-regex": "^6.0.1"+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"},"engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ "node": ">=8"}},- "node_modules/strip-ansi-cjs": {- "name": "strip-ansi",+ "node_modules/strip-ansi": {"version": "6.0.1","resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz","integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,"license": "MIT","dependencies": {"ansi-regex": "^5.0.1"@@ -15273,55 +7247,17 @@"node": ">=8"}},- "node_modules/strip-ansi/node_modules/ansi-regex": {- "version": "6.1.0",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz",- "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==",- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-regex?sponsor=1"- }- },- "node_modules/strip-bom": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",- "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=4"- }- },- "node_modules/strip-final-newline": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-4.0.0.tgz",- "integrity": "sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/strip-indent": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-4.0.0.tgz",- "integrity": "sha512-mnVSV2l+Zv6BLpSD/8V87CW/y9EmmbYzGCIavsnsI6/nwn26DwffM/yztm30Z/I2DY9wdS3vXVCMnHDgZaVNoA==",+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz",+ "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==","dev": true,"license": "MIT","dependencies": {- "min-indent": "^1.0.1"+ "min-indent": "^1.0.0"},"engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=8"}},"node_modules/strip-json-comments": {@@ -15337,59 +7273,31 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/strip-outer": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz",- "integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==",+ "node_modules/strip-literal": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.0.0.tgz",+ "integrity": "sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==","dev": true,"license": "MIT","dependencies": {- "escape-string-regexp": "^1.0.2"+ "js-tokens": "^9.0.1"},- "engines": {- "node": ">=0.10.0"+ "funding": {+ "url": "https://github.com/sponsors/antfu"}},- "node_modules/strip-outer/node_modules/escape-string-regexp": {- "version": "1.0.5",- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",- "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",+ "node_modules/strip-literal/node_modules/js-tokens": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz",+ "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==","dev": true,- "license": "MIT",- "engines": {- "node": ">=0.8.0"- }- },- "node_modules/stylis": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz",- "integrity": "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw==","license": "MIT"},- "node_modules/supabase": {- "version": "2.19.7",- "resolved": "https://registry.npmjs.org/supabase/-/supabase-2.19.7.tgz",- "integrity": "sha512-+Qu5xHvk/CnAHb5iDpCWCX0SdwFR5smpTG6VUSTw/T8WxCDDQsIb2mui2pu18wqKOZ0NLs/ZTDDb2+yPejTRBQ==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "dependencies": {- "bin-links": "^5.0.0",- "https-proxy-agent": "^7.0.2",- "node-fetch": "^3.3.2",- "tar": "7.4.3"- },- "bin": {- "supabase": "bin/supabase"- },- "engines": {- "npm": ">=8"- }- },"node_modules/supports-color": {"version": "7.2.0","resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz","integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",+ "dev": true,"license": "MIT","dependencies": {"has-flag": "^4.0.0"@@ -15398,40 +7306,39 @@"node": ">=8"}},- "node_modules/supports-preserve-symlinks-flag": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",- "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "node_modules/tailwind-merge": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.3.1.tgz",+ "integrity": "sha512-gBXpgUm/3rp1lMZZrM/w7D8GKqshif0zAymAhbCyIt8KMe+0v9DQ7cdYLR4FHH/cKpdTXb+A/tKKU3eolfsI+g==","license": "MIT",- "engines": {- "node": ">= 0.4"- },"funding": {- "url": "https://github.com/sponsors/ljharb"+ "type": "github",+ "url": "https://github.com/sponsors/dcastil"}},- "node_modules/synckit": {- "version": "0.9.2",- "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.2.tgz",- "integrity": "sha512-vrozgXDQwYO72vHjUb/HnFbQx1exDjoKzqx23aXEg2a9VIg2TSFZ8FmeZpTjUCFMYw7mpX4BE2SFu8wI7asYsw==",- "dev": true,+ "node_modules/tailwindcss": {+ "version": "4.1.12",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.12.tgz",+ "integrity": "sha512-DzFtxOi+7NsFf7DBtI3BJsynR+0Yp6etH+nRPTbpWnS2pZBaSksv/JGctNwSWzbFjp0vxSqknaUylseZqMDGrA==",+ "license": "MIT"+ },+ "node_modules/tapable": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.3.tgz",+ "integrity": "sha512-ZL6DDuAlRlLGghwcfmSn9sK3Hr6ArtyudlSAiCqQ6IfE+b+HHbydbYDIG15IfS5do+7XQQBdBiubF/cV2dnDzg==","license": "MIT",- "dependencies": {- "@pkgr/core": "^0.1.0",- "tslib": "^2.6.2"- },"engines": {- "node": "^14.18.0 || >=16.0.0"+ "node": ">=6"},"funding": {- "url": "https://opencollective.com/unts"+ "type": "opencollective",+ "url": "https://opencollective.com/webpack"}},"node_modules/tar": {"version": "7.4.3","resolved": "https://registry.npmjs.org/tar/-/tar-7.4.3.tgz","integrity": "sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==",- "dev": true,"license": "ISC","dependencies": {"@isaacs/fs-minipass": "^4.0.0",@@ -15449,19 +7356,11 @@"version": "5.0.0","resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz","integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==",- "dev": true,"license": "BlueOak-1.0.0","engines": {"node": ">=18"}},- "node_modules/text-table": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",- "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",- "dev": true,- "license": "MIT"- },"node_modules/tiny-invariant": {"version": "1.3.3","resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",@@ -15482,402 +7381,186 @@"dev": true,"license": "MIT"},- "node_modules/tinypool": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.0.2.tgz",- "integrity": "sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^18.0.0 || >=20.0.0"- }- },- "node_modules/tinyrainbow": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz",- "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/tinyspy": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz",- "integrity": "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/tmp": {- "version": "0.0.33",- "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",- "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",- "dev": true,- "license": "MIT",- "dependencies": {- "os-tmpdir": "~1.0.2"- },- "engines": {- "node": ">=0.6.0"- }- },- "node_modules/to-regex-range": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",- "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-number": "^7.0.0"- },- "engines": {- "node": ">=8.0"- }- },- "node_modules/tr46": {- "version": "0.0.3",- "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",- "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",- "license": "MIT"- },- "node_modules/trim-repeated": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz",- "integrity": "sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==",- "dev": true,- "license": "MIT",- "dependencies": {- "escape-string-regexp": "^1.0.2"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/trim-repeated/node_modules/escape-string-regexp": {- "version": "1.0.5",- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",- "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.8.0"- }- },- "node_modules/ts-api-utils": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.1.tgz",- "integrity": "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18.12"- },- "peerDependencies": {- "typescript": ">=4.8.4"- }- },- "node_modules/ts-dedent": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/ts-dedent/-/ts-dedent-2.2.0.tgz",- "integrity": "sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.10"- }- },- "node_modules/tsconfig-paths": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz",- "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==",- "dev": true,- "license": "MIT",- "dependencies": {- "json5": "^2.2.2",- "minimist": "^1.2.6",- "strip-bom": "^3.0.0"- },- "engines": {- "node": ">=6"- }- },- "node_modules/tslib": {- "version": "2.8.1",- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",- "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",- "license": "0BSD"- },- "node_modules/tsutils": {- "version": "3.21.0",- "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",- "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",- "dev": true,- "license": "MIT",- "dependencies": {- "tslib": "^1.8.1"- },- "engines": {- "node": ">= 6"- },- "peerDependencies": {- "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"- }- },- "node_modules/tsutils/node_modules/tslib": {- "version": "1.14.1",- "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",- "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",- "dev": true,- "license": "0BSD"- },- "node_modules/turbo-stream": {- "version": "2.4.0",- "resolved": "https://registry.npmjs.org/turbo-stream/-/turbo-stream-2.4.0.tgz",- "integrity": "sha512-FHncC10WpBd2eOmGwpmQsWLDoK4cqsA/UT/GqNoaKOQnT8uzhtCbg3EoUDMvqpOSAI0S26mr0rkjzbOO6S3v1g==",- "license": "ISC"- },- "node_modules/tween-functions": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/tween-functions/-/tween-functions-1.2.0.tgz",- "integrity": "sha512-PZBtLYcCLtEcjL14Fzb1gSxPBeL7nWvGhO5ZFPGqziCcr8uvHp0NDmdjBchp6KHL+tExcg0m3NISmKxhU394dA==",- "dev": true,- "license": "BSD"- },- "node_modules/type-check": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",- "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",- "dev": true,- "license": "MIT",- "dependencies": {- "prelude-ls": "^1.2.1"- },- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/type-fest": {- "version": "0.21.3",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",- "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",- "dev": true,- "license": "(MIT OR CC0-1.0)",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/typed-array-buffer": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz",- "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bound": "^1.0.3",- "es-errors": "^1.3.0",- "is-typed-array": "^1.1.14"- },- "engines": {- "node": ">= 0.4"- }- },- "node_modules/typed-array-byte-length": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz",- "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==",- "dev": true,+ "node_modules/tinyglobby": {+ "version": "0.2.14",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz",+ "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==","license": "MIT","dependencies": {- "call-bind": "^1.0.8",- "for-each": "^0.3.3",- "gopd": "^1.2.0",- "has-proto": "^1.2.0",- "is-typed-array": "^1.1.14"+ "fdir": "^6.4.4",+ "picomatch": "^4.0.2"},"engines": {- "node": ">= 0.4"+ "node": ">=12.0.0"},"funding": {- "url": "https://github.com/sponsors/ljharb"+ "url": "https://github.com/sponsors/SuperchupuDev"}},- "node_modules/typed-array-byte-offset": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.4.tgz",- "integrity": "sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==",- "dev": true,+ "node_modules/tinyglobby/node_modules/fdir": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==","license": "MIT",- "dependencies": {- "available-typed-arrays": "^1.0.7",- "call-bind": "^1.0.8",- "for-each": "^0.3.3",- "gopd": "^1.2.0",- "has-proto": "^1.2.0",- "is-typed-array": "^1.1.15",- "reflect.getprototypeof": "^1.0.9"- },"engines": {- "node": ">= 0.4"+ "node": ">=12.0.0"},- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }}},- "node_modules/typed-array-length": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.7.tgz",- "integrity": "sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==",- "dev": true,+ "node_modules/tinyglobby/node_modules/picomatch": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==","license": "MIT",- "dependencies": {- "call-bind": "^1.0.7",- "for-each": "^0.3.3",- "gopd": "^1.0.1",- "is-typed-array": "^1.1.13",- "possible-typed-array-names": "^1.0.0",- "reflect.getprototypeof": "^1.0.6"- },"engines": {- "node": ">= 0.4"+ "node": ">=12"},"funding": {- "url": "https://github.com/sponsors/ljharb"+ "url": "https://github.com/sponsors/jonschlinkert"}},- "node_modules/typescript": {- "version": "5.8.2",- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz",- "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==",+ "node_modules/tinypool": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz",+ "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==","dev": true,- "license": "Apache-2.0",- "bin": {- "tsc": "bin/tsc",- "tsserver": "bin/tsserver"- },+ "license": "MIT","engines": {- "node": ">=14.17"+ "node": "^18.0.0 || >=20.0.0"}},- "node_modules/ufo": {- "version": "1.5.4",- "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz",- "integrity": "sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==",- "dev": true,- "license": "MIT"- },- "node_modules/unbox-primitive": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz",- "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==",+ "node_modules/tinyrainbow": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz",+ "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==","dev": true,"license": "MIT",- "dependencies": {- "call-bound": "^1.0.3",- "has-bigints": "^1.0.2",- "has-symbols": "^1.1.0",- "which-boxed-primitive": "^1.1.1"- },"engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node": ">=14.0.0"}},- "node_modules/undici-types": {- "version": "6.20.0",- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",- "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==",- "license": "MIT"- },- "node_modules/unicode-canonical-property-names-ecmascript": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz",- "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==",+ "node_modules/tinyspy": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.3.tgz",+ "integrity": "sha512-t2T/WLB2WRgZ9EpE4jgPJ9w+i66UZfDc8wHh0xrwiRNN+UwH98GIJkTeZqX9rg0i0ptwzqW+uYeIF0T4F8LR7A==","dev": true,"license": "MIT","engines": {- "node": ">=4"+ "node": ">=14.0.0"}},- "node_modules/unicode-match-property-ecmascript": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz",- "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==",+ "node_modules/to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==","dev": true,"license": "MIT","dependencies": {- "unicode-canonical-property-names-ecmascript": "^2.0.0",- "unicode-property-aliases-ecmascript": "^2.0.0"+ "is-number": "^7.0.0"},"engines": {- "node": ">=4"+ "node": ">=8.0"}},- "node_modules/unicode-match-property-value-ecmascript": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.0.tgz",- "integrity": "sha512-4IehN3V/+kkr5YeSSDDQG8QLqO26XpL2XP3GQtqwlT/QYSECAwFztxVHjlbh0+gjJ3XmNLS0zDsbgs9jWKExLg==",+ "node_modules/tr46": {+ "version": "0.0.3",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",+ "license": "MIT"+ },+ "node_modules/ts-api-utils": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",+ "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==","dev": true,"license": "MIT","engines": {- "node": ">=4"+ "node": ">=18.12"+ },+ "peerDependencies": {+ "typescript": ">=4.8.4"}},- "node_modules/unicode-property-aliases-ecmascript": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz",- "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==",+ "node_modules/tslib": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",+ "license": "0BSD"+ },+ "node_modules/tw-animate-css": {+ "version": "1.3.7",+ "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.3.7.tgz",+ "integrity": "sha512-lvLb3hTIpB5oGsk8JmLoAjeCHV58nKa2zHYn8yWOoG5JJusH3bhJlF2DLAZ/5NmJ+jyH3ssiAx/2KmbhavJy/A==","dev": true,"license": "MIT",- "engines": {- "node": ">=4"+ "funding": {+ "url": "https://github.com/sponsors/Wombosvideo"}},- "node_modules/unicorn-magic": {- "version": "0.3.0",- "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz",- "integrity": "sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==",+ "node_modules/type-check": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",+ "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==","dev": true,"license": "MIT",- "engines": {- "node": ">=18"+ "dependencies": {+ "prelude-ls": "^1.2.1"},- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "engines": {+ "node": ">= 0.8.0"}},- "node_modules/universalify": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",+ "node_modules/typescript": {+ "version": "5.8.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",+ "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==","dev": true,- "license": "MIT",+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },"engines": {- "node": ">= 10.0.0"+ "node": ">=14.17"}},- "node_modules/unplugin": {- "version": "1.16.1",- "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-1.16.1.tgz",- "integrity": "sha512-4/u/j4FrCKdi17jaxuJA0jClGxB1AvU2hw/IuayPc4ay1XGaJs/rbb4v5WKwAjNifjmXK9PIFyuPiaK8azyR9w==",+ "node_modules/typescript-eslint": {+ "version": "8.41.0",+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.41.0.tgz",+ "integrity": "sha512-n66rzs5OBXW3SFSnZHr2T685q1i4ODm2nulFJhMZBotaTavsS8TrI3d7bDlRSs9yWo7HmyWrN9qDu14Qv7Y0Dw==","dev": true,"license": "MIT","dependencies": {- "acorn": "^8.14.0",- "webpack-virtual-modules": "^0.6.2"+ "@typescript-eslint/eslint-plugin": "8.41.0",+ "@typescript-eslint/parser": "8.41.0",+ "@typescript-eslint/typescript-estree": "8.41.0",+ "@typescript-eslint/utils": "8.41.0"},"engines": {- "node": ">=14.0.0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.57.0 || ^9.0.0",+ "typescript": ">=4.8.4 <6.0.0"}},+ "node_modules/undici-types": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",+ "license": "MIT"+ },"node_modules/update-browserslist-db": {"version": "1.1.3","resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz",@@ -15909,87 +7592,111 @@"browserslist": ">= 4.21.0"}},- "node_modules/update-check": {- "version": "1.5.4",- "resolved": "https://registry.npmjs.org/update-check/-/update-check-1.5.4.tgz",- "integrity": "sha512-5YHsflzHP4t1G+8WGPlvKbJEbAJGCgw+Em+dGR1KmBUbr1J36SJBqlHLjR7oob7sco5hWHGQVcr9B2poIVDDTQ==",- "license": "MIT",- "dependencies": {- "registry-auth-token": "3.3.2",- "registry-url": "3.1.0"- }- },"node_modules/uri-js": {"version": "4.4.1","resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz","integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",+ "dev": true,"license": "BSD-2-Clause","dependencies": {"punycode": "^2.1.0"}},- "node_modules/use-sync-external-store": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.4.0.tgz",- "integrity": "sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw==",+ "node_modules/use-callback-ref": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.3.tgz",+ "integrity": "sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==","license": "MIT",+ "dependencies": {+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },"peerDependencies": {- "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/util": {- "version": "0.12.5",- "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz",- "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==",- "dev": true,+ "node_modules/use-debounce": {+ "version": "10.0.6",+ "resolved": "https://registry.npmjs.org/use-debounce/-/use-debounce-10.0.6.tgz",+ "integrity": "sha512-C5OtPyhAZgVoteO9heXMTdW7v/IbFI+8bSVKYCJrSmiWWCLsbUxiBSp4t9v0hNBTGY97bT72ydDIDyGSFWfwXg==",+ "license": "MIT",+ "engines": {+ "node": ">= 16.0.0"+ },+ "peerDependencies": {+ "react": "*"+ }+ },+ "node_modules/use-sidecar": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/use-sidecar/-/use-sidecar-1.1.3.tgz",+ "integrity": "sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==","license": "MIT","dependencies": {- "inherits": "^2.0.3",- "is-arguments": "^1.0.4",- "is-generator-function": "^1.0.7",- "is-typed-array": "^1.1.3",- "which-typed-array": "^1.1.2"+ "detect-node-es": "^1.1.0",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }}},- "node_modules/uuid": {- "version": "9.0.1",- "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",- "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",- "dev": true,- "funding": [- "https://github.com/sponsors/broofa",- "https://github.com/sponsors/ctavan"- ],+ "node_modules/use-sync-external-store": {+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.5.0.tgz",+ "integrity": "sha512-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A==","license": "MIT",- "bin": {- "uuid": "dist/bin/uuid"+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"}},- "node_modules/vary": {+ "node_modules/vaul": {"version": "1.1.2",- "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",- "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",+ "resolved": "https://registry.npmjs.org/vaul/-/vaul-1.1.2.tgz",+ "integrity": "sha512-ZFkClGpWyI2WUQjdLJ/BaGuV6AVQiJ3uELGk3OYtP+B6yCO7Cmn9vPFXVJkRaGkOJu3m8bQMgtyzNHixULceQA==","license": "MIT",- "engines": {- "node": ">= 0.8"+ "dependencies": {+ "@radix-ui/react-dialog": "^1.1.1"+ },+ "peerDependencies": {+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc"}},"node_modules/vite": {- "version": "6.2.2",- "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.2.tgz",- "integrity": "sha512-yW7PeMM+LkDzc7CgJuRLMW2Jz0FxMOsVJ8Lv3gpgW9WLcb9cTW+121UEr1hvmfR7w3SegR5ItvYyzVz1vxNJgQ==",- "dev": true,+ "version": "7.1.4",+ "resolved": "https://registry.npmjs.org/vite/-/vite-7.1.4.tgz",+ "integrity": "sha512-X5QFK4SGynAeeIt+A7ZWnApdUyHYm+pzv/8/A57LqSGcI88U6R6ipOs3uCesdc6yl7nl+zNO0t8LmqAdXcQihw==","license": "MIT","dependencies": {"esbuild": "^0.25.0",- "postcss": "^8.5.3",- "rollup": "^4.30.1"+ "fdir": "^6.5.0",+ "picomatch": "^4.0.3",+ "postcss": "^8.5.6",+ "rollup": "^4.43.0",+ "tinyglobby": "^0.2.14"},"bin": {"vite": "bin/vite.js"},"engines": {- "node": "^18.0.0 || ^20.0.0 || >=22.0.0"+ "node": "^20.19.0 || >=22.12.0"},"funding": {"url": "https://github.com/vitejs/vite?sponsor=1"@@ -15998,14 +7705,14 @@"fsevents": "~2.3.3"},"peerDependencies": {- "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",+ "@types/node": "^20.19.0 || >=22.12.0","jiti": ">=1.21.0",- "less": "*",+ "less": "^4.0.0","lightningcss": "^1.21.0",- "sass": "*",- "sass-embedded": "*",- "stylus": "*",- "sugarss": "*",+ "sass": "^1.70.0",+ "sass-embedded": "^1.70.0",+ "stylus": ">=0.54.8",+ "sugarss": "^5.0.0","terser": "^5.16.0","tsx": "^4.8.1","yaml": "^2.4.2"@@ -16047,17 +7754,17 @@}},"node_modules/vite-node": {- "version": "3.0.9",- "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.0.9.tgz",- "integrity": "sha512-w3Gdx7jDcuT9cNn9jExXgOyKmf5UOTb6WMHz8LGAm54eS1Elf5OuBhCxl6zJxGhEeIkgsE1WbHuoL0mj/UXqXg==",+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz",+ "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==","dev": true,"license": "MIT","dependencies": {"cac": "^6.7.14",- "debug": "^4.4.0",- "es-module-lexer": "^1.6.0",+ "debug": "^4.4.1",+ "es-module-lexer": "^1.7.0","pathe": "^2.0.3",- "vite": "^5.0.0 || ^6.0.0"+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0"},"bin": {"vite-node": "vite-node.mjs"@@ -16069,59 +7776,64 @@"url": "https://opencollective.com/vitest"}},- "node_modules/vite-plugin-dts": {- "version": "4.5.3",- "resolved": "https://registry.npmjs.org/vite-plugin-dts/-/vite-plugin-dts-4.5.3.tgz",- "integrity": "sha512-P64VnD00dR+e8S26ESoFELqc17+w7pKkwlBpgXteOljFyT0zDwD8hH4zXp49M/kciy//7ZbVXIwQCekBJjfWzA==",- "dev": true,+ "node_modules/vite/node_modules/fdir": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==","license": "MIT",- "dependencies": {- "@microsoft/api-extractor": "^7.50.1",- "@rollup/pluginutils": "^5.1.4",- "@volar/typescript": "^2.4.11",- "@vue/language-core": "2.2.0",- "compare-versions": "^6.1.1",- "debug": "^4.4.0",- "kolorist": "^1.8.0",- "local-pkg": "^1.0.0",- "magic-string": "^0.30.17"+ "engines": {+ "node": ">=12.0.0"},"peerDependencies": {- "typescript": "*",- "vite": "*"+ "picomatch": "^3 || ^4"},"peerDependenciesMeta": {- "vite": {+ "picomatch": {"optional": true}}},+ "node_modules/vite/node_modules/picomatch": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },"node_modules/vitest": {- "version": "3.0.9",- "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.0.9.tgz",- "integrity": "sha512-BbcFDqNyBlfSpATmTtXOAOj71RNKDDvjBM/uPfnxxVGrG+FSH2RQIwgeEngTaTkuU/h0ScFvf+tRcKfYXzBybQ==",+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.4.tgz",+ "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==","dev": true,"license": "MIT","dependencies": {- "@vitest/expect": "3.0.9",- "@vitest/mocker": "3.0.9",- "@vitest/pretty-format": "^3.0.9",- "@vitest/runner": "3.0.9",- "@vitest/snapshot": "3.0.9",- "@vitest/spy": "3.0.9",- "@vitest/utils": "3.0.9",+ "@types/chai": "^5.2.2",+ "@vitest/expect": "3.2.4",+ "@vitest/mocker": "3.2.4",+ "@vitest/pretty-format": "^3.2.4",+ "@vitest/runner": "3.2.4",+ "@vitest/snapshot": "3.2.4",+ "@vitest/spy": "3.2.4",+ "@vitest/utils": "3.2.4","chai": "^5.2.0",- "debug": "^4.4.0",- "expect-type": "^1.1.0",+ "debug": "^4.4.1",+ "expect-type": "^1.2.1","magic-string": "^0.30.17","pathe": "^2.0.3",- "std-env": "^3.8.0",+ "picomatch": "^4.0.2",+ "std-env": "^3.9.0","tinybench": "^2.9.0","tinyexec": "^0.3.2",- "tinypool": "^1.0.2",+ "tinyglobby": "^0.2.14",+ "tinypool": "^1.1.1","tinyrainbow": "^2.0.0",- "vite": "^5.0.0 || ^6.0.0",- "vite-node": "3.0.9",+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0",+ "vite-node": "3.2.4","why-is-node-running": "^2.3.0"},"bin": {@@ -16137,8 +7849,8 @@"@edge-runtime/vm": "*","@types/debug": "^4.1.12","@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",- "@vitest/browser": "3.0.9",- "@vitest/ui": "3.0.9",+ "@vitest/browser": "3.2.4",+ "@vitest/ui": "3.2.4","happy-dom": "*","jsdom": "*"},@@ -16166,119 +7878,34 @@}}},- "node_modules/vitest/node_modules/@vitest/expect": {- "version": "3.0.9",- "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.0.9.tgz",- "integrity": "sha512-5eCqRItYgIML7NNVgJj6TVCmdzE7ZVgJhruW0ziSQV4V7PvLkDL1bBkBdcTs/VuIz0IxPb5da1IDSqc1TR9eig==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/spy": "3.0.9",- "@vitest/utils": "3.0.9",- "chai": "^5.2.0",- "tinyrainbow": "^2.0.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/vitest/node_modules/@vitest/pretty-format": {- "version": "3.0.9",- "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.0.9.tgz",- "integrity": "sha512-OW9F8t2J3AwFEwENg3yMyKWweF7oRJlMyHOMIhO5F3n0+cgQAJZBjNgrF8dLwFTEXl5jUqBLXd9QyyKv8zEcmA==",- "dev": true,- "license": "MIT",- "dependencies": {- "tinyrainbow": "^2.0.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/vitest/node_modules/@vitest/spy": {- "version": "3.0.9",- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.0.9.tgz",- "integrity": "sha512-/CcK2UDl0aQ2wtkp3YVWldrpLRNCfVcIOFGlVGKO4R5eajsH393Z1yiXLVQ7vWsj26JOEjeZI0x5sm5P4OGUNQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "tinyspy": "^3.0.2"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/vitest/node_modules/@vitest/utils": {- "version": "3.0.9",- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.0.9.tgz",- "integrity": "sha512-ilHM5fHhZ89MCp5aAaM9uhfl1c2JdxVxl3McqsdVyVNN6JffnEen8UMCdRTzOhGXNQGo5GNL9QugHrz727Wnng==",+ "node_modules/vitest/node_modules/picomatch": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==","dev": true,"license": "MIT",- "dependencies": {- "@vitest/pretty-format": "3.0.9",- "loupe": "^3.1.3",- "tinyrainbow": "^2.0.0"+ "engines": {+ "node": ">=12"},"funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/vitest/node_modules/tinyrainbow": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz",- "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14.0.0"+ "url": "https://github.com/sponsors/jonschlinkert"}},- "node_modules/vscode-uri": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.1.0.tgz",- "integrity": "sha512-/BpdSx+yCQGnCvecbyXdxHDkuk55/G3xwnC0GqY4gmQ3j+A+g8kzzgB4Nk/SINjqn6+waqw3EgbVF2QKExkRxQ==",- "dev": true,- "license": "MIT"- },"node_modules/warning": {"version": "4.0.3","resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz","integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==","license": "MIT","dependencies": {- "loose-envify": "^1.0.0"- }- },- "node_modules/web-streams-polyfill": {- "version": "3.3.3",- "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",- "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 8"+ "loose-envify": "^1.0.0"}},- "node_modules/web-vitals": {- "version": "4.2.4",- "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-4.2.4.tgz",- "integrity": "sha512-r4DIlprAGwJ7YM11VZp4R884m0Vmgr6EAKe3P+kO0PPj3Unqyvv59rczf6UiGcb9Z8QxZVcqKNwv/g0WNdWwsw==",- "dev": true,- "license": "Apache-2.0"- },"node_modules/webidl-conversions": {"version": "3.0.1","resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz","integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==","license": "BSD-2-Clause"},- "node_modules/webpack-virtual-modules": {- "version": "0.6.2",- "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz",- "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==",- "dev": true,- "license": "MIT"- },"node_modules/whatwg-url": {"version": "5.0.0","resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",@@ -16293,6 +7920,7 @@"version": "2.0.2","resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz","integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",+ "dev": true,"license": "ISC","dependencies": {"isexe": "^2.0.0"@@ -16304,95 +7932,6 @@"node": ">= 8"}},- "node_modules/which-boxed-primitive": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz",- "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-bigint": "^1.1.0",- "is-boolean-object": "^1.2.1",- "is-number-object": "^1.1.1",- "is-string": "^1.1.1",- "is-symbol": "^1.1.1"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/which-builtin-type": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz",- "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "call-bound": "^1.0.2",- "function.prototype.name": "^1.1.6",- "has-tostringtag": "^1.0.2",- "is-async-function": "^2.0.0",- "is-date-object": "^1.1.0",- "is-finalizationregistry": "^1.1.0",- "is-generator-function": "^1.0.10",- "is-regex": "^1.2.1",- "is-weakref": "^1.0.2",- "isarray": "^2.0.5",- "which-boxed-primitive": "^1.1.0",- "which-collection": "^1.0.2",- "which-typed-array": "^1.1.16"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/which-collection": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz",- "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-map": "^2.0.3",- "is-set": "^2.0.3",- "is-weakmap": "^2.0.2",- "is-weakset": "^2.0.3"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/which-typed-array": {- "version": "1.1.19",- "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz",- "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==",- "dev": true,- "license": "MIT",- "dependencies": {- "available-typed-arrays": "^1.0.7",- "call-bind": "^1.0.8",- "call-bound": "^1.0.4",- "for-each": "^0.3.5",- "get-proto": "^1.0.1",- "gopd": "^1.2.0",- "has-tostringtag": "^1.0.2"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },"node_modules/why-is-node-running": {"version": "2.3.0","resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",@@ -16410,22 +7949,6 @@"node": ">=8"}},- "node_modules/widest-line": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-5.0.0.tgz",- "integrity": "sha512-c9bZp7b5YtRj2wOe6dlj32MK+Bx/M/d+9VB2SHM1OtsUHR0aV0tdP6DWh/iMt0kWi1t5g1Iudu6hQRNd1A4PVA==",- "dev": true,- "license": "MIT",- "dependencies": {- "string-width": "^7.0.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/word-wrap": {"version": "1.2.5","resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",@@ -16437,26 +7960,9 @@}},"node_modules/wrap-ansi": {- "version": "6.2.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",- "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^4.0.0",- "string-width": "^4.1.0",- "strip-ansi": "^6.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/wrap-ansi-cjs": {- "name": "wrap-ansi","version": "7.0.0","resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz","integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",- "dev": true,"license": "MIT","dependencies": {"ansi-styles": "^4.0.0",@@ -16470,121 +7976,10 @@"url": "https://github.com/chalk/wrap-ansi?sponsor=1"}},- "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",- "dev": true,- "license": "MIT"- },- "node_modules/wrap-ansi-cjs/node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/wrap-ansi-cjs/node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/wrap-ansi/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",- "dev": true,- "license": "MIT"- },- "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/wrap-ansi/node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/wrap-ansi/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/wrappy": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",- "dev": true,- "license": "ISC"- },- "node_modules/write-file-atomic": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-6.0.0.tgz",- "integrity": "sha512-GmqrO8WJ1NuzJ2DrziEI2o57jKAVIQNf8a18W3nCYU3H7PNWqCCVTeH6/NQE93CIllIgQS98rrmVkYgTX9fFJQ==",- "dev": true,- "license": "ISC",- "dependencies": {- "imurmurhash": "^0.1.4",- "signal-exit": "^4.0.1"- },- "engines": {- "node": "^18.17.0 || >=20.5.0"- }- },"node_modules/ws": {- "version": "8.18.1",- "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.1.tgz",- "integrity": "sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w==",+ "version": "8.18.3",+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz",+ "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==","license": "MIT","engines": {"node": ">=10.0.0"@@ -16602,21 +7997,10 @@}}},- "node_modules/xtend": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",- "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.4"- }- },"node_modules/y18n": {"version": "5.0.8","resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz","integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",- "dev": true,"license": "ISC","engines": {"node": ">=10"@@ -16629,24 +8013,10 @@"dev": true,"license": "ISC"},- "node_modules/yaml": {- "version": "2.7.0",- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz",- "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==",- "dev": true,- "license": "ISC",- "bin": {- "yaml": "bin.mjs"- },- "engines": {- "node": ">= 14"- }- },"node_modules/yargs": {"version": "17.7.2","resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz","integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",- "dev": true,"license": "MIT","dependencies": {"cliui": "^8.0.1",@@ -16665,57 +8035,11 @@"version": "21.1.1","resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz","integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",- "dev": true,"license": "ISC","engines": {"node": ">=12"}},- "node_modules/yargs/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",- "dev": true,- "license": "MIT"- },- "node_modules/yargs/node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/yargs/node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/yargs/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },"node_modules/yocto-queue": {"version": "0.1.0","resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",@@ -16729,38 +8053,14 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/yoctocolors": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/yoctocolors/-/yoctocolors-2.1.1.tgz",- "integrity": "sha512-GQHQqAopRhwU8Kt1DDM8NjibDXHC8eoh1erhGAJPEyveY9qqVeXvVikNKrDz69sHowPMorbPUrH/mx8c50eiBQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/yoctocolors-cjs": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.2.tgz",- "integrity": "sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==",- "dev": true,+ "node_modules/zod": {+ "version": "4.1.5",+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.1.5.tgz",+ "integrity": "sha512-rcUUZqlLJgBC33IT3PNMgsCq6TzLQEG/Ei/KTCU0PedSWRMAXoOUN+4t/0H+Q8bdnLPdqUYnvboJT0bn/229qg==","license": "MIT",- "engines": {- "node": ">=18"- },"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "url": "https://github.com/sponsors/colinhacks"}- },- "node_modules/yoga-layout": {- "version": "3.2.1",- "resolved": "https://registry.npmjs.org/yoga-layout/-/yoga-layout-3.2.1.tgz",- "integrity": "sha512-0LPOt3AxKqMdFBZA3HBAt/t/8vIKq7VaQYbuA8WxCgung+p9TVyKRYdpvCb80HcdTN2NkbIKbhNwKUfm3tQywQ==",- "dev": true,- "license": "MIT"}}}diff --git a/package.json b/package.jsonindex 1f3fc8a5..e5cdb9e3 100644--- a/package.json+++ b/package.json@@ -1,98 +1,92 @@{"name": "atomic-crm",- "version": "0.0.2",+ "version": "0.1.0","type": "module",- "types": "./lib/types",- "module": "./lib/index.js",- "main": "./lib/index.cjs",- "files": [- "lib",- "README.md",- "src"- ],- "dependencies": {- "@hello-pangea/dnd": "^18.0.1",- "@mui/icons-material": "^5.17.1",- "@mui/material": "^5.17.1",- "@nivo/bar": "^0.88.0",- "@nivo/core": "^0.88.0",- "@supabase/supabase-js": "^2.49.1",- "@types/jsonexport": "^3.0.5",- "clsx": "^2.1.0",- "date-fns": "^3.6.0",- "dotenv": "^16.4.7",- "faker": "5.5.3",- "lodash": "~4.17.5",- "papaparse": "^5.4.1",- "prop-types": "^15.8.1",- "ra-data-fakerest": "^5.4.0",- "ra-supabase": "^3.3.1",- "react": "^18.2.0",- "react-admin": "^5.4.0",- "react-cropper": "^2.3.3",- "react-dom": "^18.2.0",- "react-error-boundary": "^5.0.0",- "react-router": "^7.4.0",- "react-router-dom": "^7.4.0",- "serve": "^14.2.3"- },- "devDependencies": {- "@chromatic-com/storybook": "^3.2.6",- "@inquirer/prompts": "^7.4.0",- "@storybook/addon-essentials": "^8.6.7",- "@storybook/addon-interactions": "^8.6.7",- "@storybook/addon-links": "^8.6.7",- "@storybook/addon-onboarding": "^8.6.7",- "@storybook/blocks": "^8.6.7",- "@storybook/react": "^8.6.7",- "@storybook/react-vite": "^8.6.7",- "@storybook/test": "^8.6.7",- "@testing-library/jest-dom": "^6.6.3",- "@testing-library/react": "^16.2.0",- "@testing-library/user-event": "^14.6.1",- "@types/faker": "^5.5.9",- "@types/jest": "^29.5.14",- "@types/jsonexport": "^3.0.5",- "@types/lodash": "^4.17.16",- "@types/papaparse": "^ 5.3.15",- "@types/pg": "^8.11.11",- "@types/react": "^19.0.12",- "@types/react-dom": "^19.0.4",- "@vitejs/plugin-react": "^4.2.1",- "eslint": "^8.57.1",- "eslint-config-prettier": "^9.1.0",- "eslint-config-react-app": "^7.0.1",- "eslint-plugin-prettier": "^5.1.3",- "eslint-plugin-storybook": "^0.11.6",- "eslint-plugin-testing-library": "^5.11.0",- "execa": "git+https://github.com/sindresorhus/execa",- "gh-pages": "^6.1.1",- "ink": "^5.0.1",- "lint-staged": "^15.5.0",- "pg": "^8.11.3",- "prettier": "~3.5.3",- "rollup-plugin-visualizer": "^5.12.0",- "storybook": "^8.6.7",- "supabase": "^2.19.7",- "typescript": "^5.3.3",- "vite": "^6.2.2",- "vite-plugin-dts": "^4.5.3 ",- "vitest": "^3.0.9",- "web-vitals": "^4.2.4"- },"scripts": {"test": "vitest","dev": "vite --force","build": "tsc && vite build",- "build-lib": "tsc && vite build --config vite.lib.config","preview": "vite preview","lint:apply": "eslint **/*.{mjs,ts,tsx} --fix","lint:check": "eslint **/*.{mjs,ts,tsx}","prettier:apply": "prettier --config ./.prettierrc.mjs --write --list-different \"**/*.{js,json,ts,tsx,css,md,html}\"","prettier:check": "prettier --config ./.prettierrc.mjs --check \"**/*.{js,json,ts,tsx,css,md,html}\"","ghpages:deploy": "node ./scripts/ghpages-deploy.mjs",- "supabase:remote:init": "node ./scripts/supabase-remote-init.mjs",- "storybook": "storybook dev -p 6006",- "build-storybook": "storybook build"+ "supabase:remote:init": "node ./scripts/supabase-remote-init.mjs"+ },+ "dependencies": {+ "@hello-pangea/dnd": "^18.0.1",+ "@hookform/resolvers": "^5.1.1",+ "@nivo/bar": "^0.99.0",+ "@radix-ui/react-accordion": "^1.2.11",+ "@radix-ui/react-avatar": "^1.1.10",+ "@radix-ui/react-checkbox": "^1.3.2",+ "@radix-ui/react-dialog": "^1.1.14",+ "@radix-ui/react-dropdown-menu": "^2.1.15",+ "@radix-ui/react-label": "^2.1.7",+ "@radix-ui/react-navigation-menu": "^1.2.13",+ "@radix-ui/react-popover": "^1.1.14",+ "@radix-ui/react-progress": "^1.1.7",+ "@radix-ui/react-radio-group": "^1.3.7",+ "@radix-ui/react-select": "^2.2.5",+ "@radix-ui/react-separator": "^1.1.7",+ "@radix-ui/react-slot": "^1.2.3",+ "@radix-ui/react-switch": "^1.2.5",+ "@radix-ui/react-tabs": "^1.1.12",+ "@radix-ui/react-tooltip": "^1.2.7",+ "@tailwindcss/vite": "^4.1.11",+ "@tanstack/react-query": "^5.83.0",+ "class-variance-authority": "^0.7.1",+ "cmdk": "^1.1.1",+ "diacritic": "^0.0.2",+ "faker": "^5.5.3",+ "inflection": "^3.0.2",+ "jsonexport": "^3.2.0",+ "lodash": "^4.17.21",+ "lucide-react": "^0.525.0",+ "next-themes": "^0.4.6",+ "papaparse": "^5.5.3",+ "ra-core": "^5.10.0",+ "ra-data-fakerest": "^5.10.0",+ "ra-i18n-polyglot": "^5.10.0",+ "ra-language-english": "^5.10.0",+ "ra-supabase-core": "^3.5.1",+ "ra-supabase-language-english": "^3.5.0",+ "react": "^19.1.0",+ "react-cropper": "^2.3.3",+ "react-dom": "^19.1.0",+ "react-dropzone": "^14.3.8",+ "react-error-boundary": "^6.0.0",+ "react-hook-form": "^7.60.0",+ "react-router": "^7.7.0",+ "rollup-plugin-visualizer": "^6.0.3",+ "sonner": "^2.0.6",+ "tailwind-merge": "^3.3.1",+ "tailwindcss": "^4.1.11",+ "vaul": "^1.1.2",+ "zod": "^4.0.5"+ },+ "devDependencies": {+ "@eslint/js": "^9.22.0",+ "@testing-library/jest-dom": "^6.6.3",+ "@types/faker": "^5.5.9",+ "@types/jsonexport": "^3.0.5",+ "@types/lodash": "^4.17.20",+ "@types/node": "^22.16.5",+ "@types/papaparse": "^5.3.16",+ "@types/react": "^19.1.8",+ "@types/react-dom": "^19.1.6",+ "@vitejs/plugin-react": "^4.6.0",+ "eslint": "^9.22.0",+ "eslint-plugin-react-hooks": "^5.2.0",+ "eslint-plugin-react-refresh": "^0.4.19",+ "eslint-plugin-storybook": "^9.0.13",+ "globals": "^16.3.0",+ "prettier": "^3.6.2",+ "tw-animate-css": "^1.3.5",+ "typescript": "~5.8.3",+ "typescript-eslint": "^8.35.1",+ "vite": "^7.0.4",+ "vitest": "^3.2.4"}}diff --git a/src/App.css b/src/App.cssnew file mode 100644index 00000000..b9d355df--- /dev/null+++ b/src/App.css@@ -0,0 +1,42 @@+#root {+ max-width: 1280px;+ margin: 0 auto;+ padding: 2rem;+ text-align: center;+}++.logo {+ height: 6em;+ padding: 1.5em;+ will-change: filter;+ transition: filter 300ms;+}+.logo:hover {+ filter: drop-shadow(0 0 2em #646cffaa);+}+.logo.react:hover {+ filter: drop-shadow(0 0 2em #61dafbaa);+}++@keyframes logo-spin {+ from {+ transform: rotate(0deg);+ }+ to {+ transform: rotate(360deg);+ }+}++@media (prefers-reduced-motion: no-preference) {+ a:nth-of-type(2) .logo {+ animation: logo-spin infinite 20s linear;+ }+}++.card {+ padding: 2em;+}++.read-the-docs {+ color: #888;+}diff --git a/src/App.tsx b/src/App.tsxindex 728df5c6..6cea8f5b 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -1,30 +1,12 @@-import { CRM } from './root/CRM';+import { CRM } from "@/atomic-crm/root/CRM";+import { authProvider, dataProvider } from "@/atomic-crm/providers/fakerest";-/**- * Application entry point- *- * Customize Atomic CRM by passing props to the CRM component:- * - contactGender- * - companySectors- * - darkTheme- * - dealCategories- * - dealPipelineStatuses- * - dealStages- * - lightTheme- * - logo- * - noteStatuses- * - taskTypes- * - title- * ... as well as all the props accepted by react-admin's <Admin> component.- *- * @example- * const App = () => (- * <CRM- * logo="./img/logo.png"- * title="Acme CRM"- * />- * );- */-const App = () => <CRM />;+const useFakeRest =+ import.meta.env.VITE_USE_FAKEREST === "true" ||+ import.meta.env.VITE_IS_DEMO === "true";++const App = useFakeRest+ ? () => <CRM dataProvider={dataProvider} authProvider={authProvider} />+ : () => <CRM />;export default App;diff --git a/src/activity/ActivityLog.tsx b/src/activity/ActivityLog.tsxdeleted file mode 100644index 7a47a86d..00000000--- a/src/activity/ActivityLog.tsx+++ /dev/null@@ -1,60 +0,0 @@-import { Alert, Divider, Skeleton, Stack } from '@mui/material';-import { useQuery } from '@tanstack/react-query';-import { Identifier, useDataProvider } from 'react-admin';--import { CrmDataProvider } from '../providers/types';-import { ActivityLogContext } from './ActivityLogContext';-import { ActivityLogIterator } from './ActivityLogIterator';--type ActivityLogProps = {- companyId?: Identifier;- pageSize?: number;- context?: 'company' | 'contact' | 'deal' | 'all';-};--export function ActivityLog({- companyId,- pageSize = 20,- context = 'all',-}: ActivityLogProps) {- const dataProvider = useDataProvider<CrmDataProvider>();- const { data, isPending, error } = useQuery({- queryKey: ['activityLog', companyId],- queryFn: () => dataProvider.getActivityLog(companyId),- });-- if (isPending) {- return (- <Stack mt={0.5}>- {Array.from({ length: 5 }).map((_, index) => (- <Stack spacing={2} sx={{ mt: 1 }} key={index}>- <Stack- direction="row"- spacing={2}- sx={{ alignItems: 'center' }}- >- <Skeleton- variant="circular"- width={20}- height={20}- />- <Skeleton width="100%" />- </Stack>- <Skeleton variant="rectangular" height={50} />- <Divider />- </Stack>- ))}- </Stack>- );- }-- if (error) {- return <Alert severity="error">Failed to load activity log</Alert>;- }-- return (- <ActivityLogContext.Provider value={context}>- <ActivityLogIterator activities={data} pageSize={pageSize} />- </ActivityLogContext.Provider>- );-}diff --git a/src/activity/ActivityLogCompanyCreated.tsx b/src/activity/ActivityLogCompanyCreated.tsxdeleted file mode 100644index 57a51a2e..00000000--- a/src/activity/ActivityLogCompanyCreated.tsx+++ /dev/null@@ -1,60 +0,0 @@-import { ListItem, Stack, Typography } from '@mui/material';-import { Link, ReferenceField } from 'react-admin';--import { CompanyAvatar } from '../companies/CompanyAvatar';-import { SaleName } from '../sales/SaleName';-import type { ActivityCompanyCreated } from '../types';-import { RelativeDate } from '../misc/RelativeDate';-import { useActivityLogContext } from './ActivityLogContext';--type ActivityLogCompanyCreatedProps = {- activity: ActivityCompanyCreated;-};--export function ActivityLogCompanyCreated({- activity,-}: ActivityLogCompanyCreatedProps) {- const context = useActivityLogContext();- const { company } = activity;- return (- <ListItem disableGutters>- <Stack direction="row" spacing={1} alignItems="center" width="100%">- <CompanyAvatar width={20} height={20} record={company} />- <Typography- component="p"- variant="body2"- color="text.secondary"- flexGrow={1}- >- <ReferenceField- source="sales_id"- reference="sales"- record={activity}- link={false}- >- <SaleName />- </ReferenceField>{' '}- added company{' '}- <Link to={`/companies/${company.id}/show`}>- {company.name}- </Link>- {context === 'all' && (- <>- {' '}- <RelativeDate date={activity.date} />- </>- )}- </Typography>- {context === 'company' && (- <Typography- color="textSecondary"- variant="body2"- component="span"- >- <RelativeDate date={activity.date} />- </Typography>- )}- </Stack>- </ListItem>- );-}diff --git a/src/activity/ActivityLogContactCreated.tsx b/src/activity/ActivityLogContactCreated.tsxdeleted file mode 100644index f60a02b0..00000000--- a/src/activity/ActivityLogContactCreated.tsx+++ /dev/null@@ -1,66 +0,0 @@-import { ListItem, Stack, Typography } from '@mui/material';-import { Link, ReferenceField } from 'react-admin';--import { Avatar } from '../contacts/Avatar';-import type { ActivityContactCreated } from '../types';-import { SaleName } from '../sales/SaleName';-import { RelativeDate } from '../misc/RelativeDate';-import { useActivityLogContext } from './ActivityLogContext';--type ActivityLogContactCreatedProps = {- activity: ActivityContactCreated;-};--export function ActivityLogContactCreated({- activity,-}: ActivityLogContactCreatedProps) {- const context = useActivityLogContext();- const { contact } = activity;- return (- <ListItem disableGutters>- <Stack direction="row" spacing={1} alignItems="center" width="100%">- <Avatar width={20} height={20} record={contact} />- <Typography- component="p"- variant="body2"- color="text.secondary"- flexGrow={1}- >- <ReferenceField- source="sales_id"- reference="sales"- record={activity}- link={false}- >- <SaleName />- </ReferenceField>{' '}- added{' '}- <Link to={`/contacts/${contact.id}/show`}>- {contact.first_name} {contact.last_name}- </Link>{' '}- {context !== 'company' && (- <>- to{' '}- <ReferenceField- source="company_id"- reference="companies"- record={activity}- link="show"- />{' '}- <RelativeDate date={activity.date} />- </>- )}- </Typography>- {context === 'company' && (- <Typography- color="textSecondary"- variant="body2"- component="span"- >- <RelativeDate date={activity.date} />- </Typography>- )}- </Stack>- </ListItem>- );-}diff --git a/src/activity/ActivityLogContactNoteCreated.tsx b/src/activity/ActivityLogContactNoteCreated.tsxdeleted file mode 100644index 325f8a1c..00000000--- a/src/activity/ActivityLogContactNoteCreated.tsx+++ /dev/null@@ -1,85 +0,0 @@-import { Typography } from '@mui/material';-import { ReferenceField } from 'react-admin';--import { Avatar } from '../contacts/Avatar';-import type { ActivityContactNoteCreated } from '../types';-import { SaleName } from '../sales/SaleName';-import { ActivityLogNote } from './ActivityLogNote';-import { RelativeDate } from '../misc/RelativeDate';-import { useActivityLogContext } from './ActivityLogContext';--type ActivityLogContactNoteCreatedProps = {- activity: ActivityContactNoteCreated;-};--export function ActivityLogContactNoteCreated({- activity,-}: ActivityLogContactNoteCreatedProps) {- const context = useActivityLogContext();- const { contactNote } = activity;- return (- <ActivityLogNote- header={- <>- <ReferenceField- source="contact_id"- reference="contacts"- record={contactNote}- link={false}- >- <Avatar width={20} height={20} />- </ReferenceField>- <Typography- component="p"- variant="body2"- color="text.secondary"- flexGrow={1}- >- <ReferenceField- source="sales_id"- reference="sales"- record={activity}- link={false}- >- <SaleName />- </ReferenceField>{' '}- added a note about{' '}- <ReferenceField- source="contact_id"- reference="contacts"- record={contactNote}- />- {context !== 'company' && (- <>- {' from '}- <ReferenceField- source="contact_id"- reference="contacts"- record={contactNote}- link={false}- >- <ReferenceField- source="company_id"- reference="companies"- link="show"- />- </ReferenceField>{' '}- <RelativeDate date={activity.date} />- </>- )}- </Typography>- {context === 'company' && (- <Typography- color="textSecondary"- variant="body2"- component="span"- >- <RelativeDate date={activity.date} />- </Typography>- )}- </>- }- text={contactNote.text}- />- );-}diff --git a/src/activity/ActivityLogDealCreated.tsx b/src/activity/ActivityLogDealCreated.tsxdeleted file mode 100644index e5fc9cba..00000000--- a/src/activity/ActivityLogDealCreated.tsx+++ /dev/null@@ -1,71 +0,0 @@-import { ListItem, Stack, Typography } from '@mui/material';-import { Link, ReferenceField } from 'react-admin';--import { CompanyAvatar } from '../companies/CompanyAvatar';-import type { ActivityDealCreated } from '../types';-import { SaleName } from '../sales/SaleName';-import { RelativeDate } from '../misc/RelativeDate';-import { useActivityLogContext } from './ActivityLogContext';--type ActivityLogDealCreatedProps = {- activity: ActivityDealCreated;-};--export function ActivityLogDealCreated({- activity,-}: ActivityLogDealCreatedProps) {- const context = useActivityLogContext();- const { deal } = activity;- return (- <ListItem disableGutters>- <Stack direction="row" spacing={1} alignItems="center" width="100%">- <ReferenceField- source="company_id"- reference="companies"- record={activity}- link={false}- >- <CompanyAvatar width={20} height={20} />- </ReferenceField>- <Typography- component="p"- variant="body2"- color="text.secondary"- flexGrow={1}- >- <ReferenceField- source="sales_id"- reference="sales"- record={activity}- link={false}- >- <SaleName />- </ReferenceField>{' '}- added deal{' '}- <Link to={`/deals/${deal.id}/show`}>{deal.name}</Link>{' '}- {context !== 'company' && (- <>- to company{' '}- <ReferenceField- source="company_id"- reference="companies"- record={activity}- link="show"- />{' '}- <RelativeDate date={activity.date} />- </>- )}- </Typography>- {context === 'company' && (- <Typography- color="textSecondary"- variant="body2"- component="span"- >- <RelativeDate date={activity.date} />- </Typography>- )}- </Stack>- </ListItem>- );-}diff --git a/src/activity/ActivityLogDealNoteCreated.tsx b/src/activity/ActivityLogDealNoteCreated.tsxdeleted file mode 100644index 3c567379..00000000--- a/src/activity/ActivityLogDealNoteCreated.tsx+++ /dev/null@@ -1,92 +0,0 @@-import Typography from '@mui/material/Typography';-import { ReferenceField } from 'react-admin';--import { CompanyAvatar } from '../companies/CompanyAvatar';-import type { ActivityDealNoteCreated } from '../types';-import { SaleName } from '../sales/SaleName';-import { RelativeDate } from '../misc/RelativeDate';-import { ActivityLogNote } from './ActivityLogNote';-import { useActivityLogContext } from './ActivityLogContext';--type ActivityLogDealNoteCreatedProps = {- activity: ActivityDealNoteCreated;-};--export function ActivityLogDealNoteCreated({- activity,-}: ActivityLogDealNoteCreatedProps) {- const context = useActivityLogContext();- const { dealNote } = activity;- return (- <ActivityLogNote- header={- <>- <ReferenceField- source="deal_id"- reference="deals"- record={dealNote}- link={false}- >- <ReferenceField- source="company_id"- reference="companies"- link={false}- >- <CompanyAvatar width={20} height={20} />- </ReferenceField>- </ReferenceField>- <Typography- component="p"- variant="body2"- color="text.secondary"- flexGrow={1}- >- <ReferenceField- source="sales_id"- reference="sales"- record={activity}- link={false}- >- <SaleName />- </ReferenceField>{' '}- added a note about deal{' '}- <ReferenceField- source="deal_id"- reference="deals"- record={dealNote}- link="show"- />- {context !== 'company' && (- <>- {' at '}- <ReferenceField- source="deal_id"- reference="deals"- record={dealNote}- link={false}- >- <ReferenceField- source="company_id"- reference="companies"- link="show"- />- </ReferenceField>{' '}- <RelativeDate date={activity.date} />- </>- )}- </Typography>- {context === 'company' && (- <Typography- color="textSecondary"- variant="body2"- component="span"- >- <RelativeDate date={activity.date} />- </Typography>- )}- </>- }- text={dealNote.text}- />- );-}diff --git a/src/activity/ActivityLogIterator.tsx b/src/activity/ActivityLogIterator.tsxdeleted file mode 100644index f0654561..00000000--- a/src/activity/ActivityLogIterator.tsx+++ /dev/null@@ -1,88 +0,0 @@-import { Button, Divider, List } from '@mui/material';-import { useState, Fragment } from 'react';-import {- COMPANY_CREATED,- CONTACT_CREATED,- CONTACT_NOTE_CREATED,- DEAL_CREATED,- DEAL_NOTE_CREATED,-} from '../consts';-import { Activity } from '../types';-import { ActivityLogCompanyCreated } from './ActivityLogCompanyCreated';-import { ActivityLogContactCreated } from './ActivityLogContactCreated';-import { ActivityLogContactNoteCreated } from './ActivityLogContactNoteCreated';-import { ActivityLogDealCreated } from './ActivityLogDealCreated';-import { ActivityLogDealNoteCreated } from './ActivityLogDealNoteCreated';--type ActivityLogIteratorProps = {- activities: Activity[];- pageSize: number;-};--export function ActivityLogIterator({- activities,- pageSize,-}: ActivityLogIteratorProps) {- const [activitiesDisplayed, setActivityDisplayed] = useState(pageSize);-- const filteredActivities = activities.slice(0, activitiesDisplayed);-- return (- <List- sx={{- '& .MuiListItem-root': {- marginTop: 0,- marginBottom: 1,- },- '& .MuiListItem-root:not(:first-of-type)': {- marginTop: 1,- },- }}- >- {filteredActivities.map((activity, index) => (- <Fragment key={index}>- <ActivityItem key={activity.id} activity={activity} />- <Divider />- </Fragment>- ))}-- {activitiesDisplayed < activities.length && (- <Button- onClick={() =>- setActivityDisplayed(- activitiesDisplayed =>- activitiesDisplayed + pageSize- )- }- fullWidth- >- Load more activity- </Button>- )}- </List>- );-}--function ActivityItem({ activity }: { activity: Activity }) {- if (activity.type === COMPANY_CREATED) {- return <ActivityLogCompanyCreated activity={activity} />;- }-- if (activity.type === CONTACT_CREATED) {- return <ActivityLogContactCreated activity={activity} />;- }-- if (activity.type === CONTACT_NOTE_CREATED) {- return <ActivityLogContactNoteCreated activity={activity} />;- }-- if (activity.type === DEAL_CREATED) {- return <ActivityLogDealCreated activity={activity} />;- }-- if (activity.type === DEAL_NOTE_CREATED) {- return <ActivityLogDealNoteCreated activity={activity} />;- }-- return null;-}diff --git a/src/activity/ActivityLogNote.tsx b/src/activity/ActivityLogNote.tsxdeleted file mode 100644index d1afba8e..00000000--- a/src/activity/ActivityLogNote.tsx+++ /dev/null@@ -1,50 +0,0 @@-import { ListItem, Stack, Typography } from '@mui/material';-import { ReactNode, Fragment } from 'react';--type ActivityLogContactNoteCreatedProps = {- header: ReactNode;- text: string;-};--export function ActivityLogNote({- header,- text,-}: ActivityLogContactNoteCreatedProps) {- if (!text) {- return null;- }- const paragraphs = text.split('\n');-- return (- <ListItem disableGutters>- <Stack direction="column" spacing={2} sx={{ width: '100%' }}>- <Stack- direction="row"- spacing={1}- alignItems="flex-start"- width="100%"- >- {header}- </Stack>- <div>- <Typography- variant="body2"- sx={{- display: '-webkit-box',- WebkitLineClamp: '3',- WebkitBoxOrient: 'vertical',- overflow: 'hidden',- }}- >- {paragraphs.map((paragraph: string, index: number) => (- <Fragment key={index}>- {paragraph}- {index < paragraphs.length - 1 && <br />}- </Fragment>- ))}- </Typography>- </div>- </Stack>- </ListItem>- );-}diff --git a/src/assets/react.svg b/src/assets/react.svgnew file mode 100644index 00000000..6c87de9b--- /dev/null+++ b/src/assets/react.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>\ No newline at end of filediff --git a/src/atomic-crm/activity/ActivityLog.tsx b/src/atomic-crm/activity/ActivityLog.tsxnew file mode 100644index 00000000..7727a98b--- /dev/null+++ b/src/atomic-crm/activity/ActivityLog.tsx@@ -0,0 +1,54 @@+import { Alert } from "@/components/ui/alert";+import { Separator } from "@/components/ui/separator";+import { Skeleton } from "@/components/ui/skeleton";+import { useQuery } from "@tanstack/react-query";+import { Identifier, useDataProvider } from "ra-core";++import { CrmDataProvider } from "../providers/types";+import { ActivityLogContext } from "./ActivityLogContext";+import { ActivityLogIterator } from "./ActivityLogIterator";++type ActivityLogProps = {+ companyId?: Identifier;+ pageSize?: number;+ context?: "company" | "contact" | "deal" | "all";+};++export function ActivityLog({+ companyId,+ pageSize = 20,+ context = "all",+}: ActivityLogProps) {+ const dataProvider = useDataProvider<CrmDataProvider>();+ const { data, isPending, error } = useQuery({+ queryKey: ["activityLog", companyId],+ queryFn: () => dataProvider.getActivityLog(companyId),+ });++ if (isPending) {+ return (+ <div className="mt-1">+ {Array.from({ length: 5 }).map((_, index) => (+ <div className="space-y-2 mt-1" key={index}>+ <div className="flex flex-row space-x-2 items-center">+ <Skeleton className="w-5 h-5 rounded-full" />+ <Skeleton className="w-full h-4" />+ </div>+ <Skeleton className="w-full h-12" />+ <Separator />+ </div>+ ))}+ </div>+ );+ }++ if (error) {+ return <Alert>Failed to load activity log</Alert>;+ }++ return (+ <ActivityLogContext.Provider value={context}>+ <ActivityLogIterator activities={data} pageSize={pageSize} />+ </ActivityLogContext.Provider>+ );+}diff --git a/src/atomic-crm/activity/ActivityLogCompanyCreated.tsx b/src/atomic-crm/activity/ActivityLogCompanyCreated.tsxnew file mode 100644index 00000000..6ac8010e--- /dev/null+++ b/src/atomic-crm/activity/ActivityLogCompanyCreated.tsx@@ -0,0 +1,50 @@+import { Link } from "react-router";++import { ReferenceField } from "@/components/admin";+import { CompanyAvatar } from "../companies/CompanyAvatar";+import { RelativeDate } from "../misc/RelativeDate";+import { SaleName } from "../sales/SaleName";+import type { ActivityCompanyCreated } from "../types";+import { useActivityLogContext } from "./ActivityLogContext";++type ActivityLogCompanyCreatedProps = {+ activity: ActivityCompanyCreated;+};++export function ActivityLogCompanyCreated({+ activity,+}: ActivityLogCompanyCreatedProps) {+ const context = useActivityLogContext();+ const { company } = activity;+ return (+ <div className="p-0">+ <div className="flex flex-row space-x-1 items-center w-full">+ <CompanyAvatar width={20} height={20} record={company} />++ <div className="text-sm text-muted-foreground flex-grow">+ <span className="text-muted-foreground text-sm inline-flex">+ <ReferenceField+ source="sales_id"+ reference="sales"+ record={activity}+ >+ <SaleName />+ </ReferenceField>+ </span>+ added company + <Link to={`/companies/${company.id}/show`}>{company.name}</Link>+ {context === "all" && (+ <>+ <RelativeDate date={activity.date} />+ </>+ )}+ </div>+ {context === "company" && (+ <span className="text-muted-foreground text-sm">+ <RelativeDate date={activity.date} />+ </span>+ )}+ </div>+ </div>+ );+}diff --git a/src/atomic-crm/activity/ActivityLogContactCreated.tsx b/src/atomic-crm/activity/ActivityLogContactCreated.tsxnew file mode 100644index 00000000..22498efd--- /dev/null+++ b/src/atomic-crm/activity/ActivityLogContactCreated.tsx@@ -0,0 +1,42 @@+import { Link } from "react-router";++import { ReferenceField } from "@/components/admin";+import { Avatar } from "../contacts/Avatar";+import { RelativeDate } from "../misc/RelativeDate";+import { SaleName } from "../sales/SaleName";+import type { ActivityContactCreated } from "../types";+import { useActivityLogContext } from "./ActivityLogContext";++type ActivityLogContactCreatedProps = {+ activity: ActivityContactCreated;+};++export function ActivityLogContactCreated({+ activity,+}: ActivityLogContactCreatedProps) {+ const context = useActivityLogContext();+ const { contact } = activity;+ return (+ <div className="p-0">+ <div className="flex flex-row gap-2 items-center w-full">+ <Avatar width={20} height={20} record={contact} />+ <span className="text-muted-foreground text-sm inline-flex flex-grow">+ <ReferenceField source="sales_id" reference="sales" record={activity}>+ <SaleName />+ </ReferenceField>+ added + <Link to={`/contacts/${contact.id}/show`}>+ {contact.first_name} {contact.last_name}+ </Link>+ + {context !== "company" && <>to company {activity.company_id}</>}+ </span>+ {context === "company" && (+ <span className="text-muted-foreground text-sm">+ <RelativeDate date={activity.date} />+ </span>+ )}+ </div>+ </div>+ );+}diff --git a/src/atomic-crm/activity/ActivityLogContactNoteCreated.tsx b/src/atomic-crm/activity/ActivityLogContactNoteCreated.tsxnew file mode 100644index 00000000..67dbd62a--- /dev/null+++ b/src/atomic-crm/activity/ActivityLogContactNoteCreated.tsx@@ -0,0 +1,69 @@+import { ReferenceField, TextField } from "@/components/admin";+import { useRecordContext } from "ra-core";+import { Avatar } from "../contacts/Avatar";+import { RelativeDate } from "../misc/RelativeDate";+import { SaleName } from "../sales/SaleName";+import type { ActivityContactNoteCreated, Contact } from "../types";+import { useActivityLogContext } from "./ActivityLogContext";+import { ActivityLogNote } from "./ActivityLogNote";++type ActivityLogContactNoteCreatedProps = {+ activity: ActivityContactNoteCreated;+};++function ContactAvatar() {+ const record = useRecordContext<Contact>();+ return <Avatar width={20} height={20} record={record} />;+}++export function ActivityLogContactNoteCreated({+ activity,+}: ActivityLogContactNoteCreatedProps) {+ const context = useActivityLogContext();+ const { contactNote } = activity;+ return (+ <ActivityLogNote+ header={+ <div className="flex items-center gap-2 w-full">+ <ReferenceField+ source="contact_id"+ reference="contacts"+ record={activity.contactNote}+ >+ <ContactAvatar />+ </ReferenceField>++ <div className="flex flex-row flex-grow">+ <div className="text-sm text-muted-foreground flex-grow">+ <span className="text-muted-foreground text-sm inline-flex">+ <ReferenceField+ source="sales_id"+ reference="sales"+ record={activity}+ >+ <SaleName />+ </ReferenceField>+ <ReferenceField+ source="contact_id"+ reference="contacts"+ record={activity.contactNote}+ >+ added a note about <TextField source="first_name" />+ + <TextField source="last_name" />+ </ReferenceField>+ </span>+ </div>++ {context === "company" && (+ <span className="text-muted-foreground text-sm">+ <RelativeDate date={activity.date} />+ </span>+ )}+ </div>+ </div>+ }+ text={contactNote.text}+ />+ );+}diff --git a/src/activity/ActivityLogContext.tsx b/src/atomic-crm/activity/ActivityLogContext.tsxsimilarity index 100%rename from src/activity/ActivityLogContext.tsxrename to src/atomic-crm/activity/ActivityLogContext.tsxdiff --git a/src/atomic-crm/activity/ActivityLogDealCreated.tsx b/src/atomic-crm/activity/ActivityLogDealCreated.tsxnew file mode 100644index 00000000..129b1342--- /dev/null+++ b/src/atomic-crm/activity/ActivityLogDealCreated.tsx@@ -0,0 +1,41 @@+import { Link } from "react-router";++import { RaRecord } from "ra-core";+import { RelativeDate } from "../misc/RelativeDate";+import type { ActivityDealCreated } from "../types";+import { useActivityLogContext } from "./ActivityLogContext";++type ActivityLogDealCreatedProps = {+ activity: RaRecord & ActivityDealCreated;+};++export function ActivityLogDealCreated({+ activity,+}: ActivityLogDealCreatedProps) {+ const context = useActivityLogContext();+ const { deal } = activity;+ return (+ <div className="p-0">+ <div className="flex flex-row space-x-1 items-center w-full">+ <div className="w-5 h-5 bg-gray-300 rounded-full" />+ <div className="text-sm text-muted-foreground flex-grow">+ <span className="text-muted-foreground text-sm">+ Sales ID: {activity.sales_id}+ </span>{" "}+ added deal <Link to={`/deals/${deal.id}/show`}>{deal.name}</Link>{" "}+ {context !== "company" && (+ <>+ to company {activity.company_id}{" "}+ <RelativeDate date={activity.date} />+ </>+ )}+ </div>+ {context === "company" && (+ <span className="text-muted-foreground text-sm">+ <RelativeDate date={activity.date} />+ </span>+ )}+ </div>+ </div>+ );+}diff --git a/src/atomic-crm/activity/ActivityLogDealNoteCreated.tsx b/src/atomic-crm/activity/ActivityLogDealNoteCreated.tsxnew file mode 100644index 00000000..27a9a0c1--- /dev/null+++ b/src/atomic-crm/activity/ActivityLogDealNoteCreated.tsx@@ -0,0 +1,84 @@+import { ReferenceField } from "@/components/admin";++import { RaRecord } from "ra-core";+import { CompanyAvatar } from "../companies/CompanyAvatar";+import { RelativeDate } from "../misc/RelativeDate";+import { SaleName } from "../sales/SaleName";+import type { ActivityDealNoteCreated } from "../types";+import { useActivityLogContext } from "./ActivityLogContext";+import { ActivityLogNote } from "./ActivityLogNote";++type ActivityLogDealNoteCreatedProps = {+ activity: RaRecord & ActivityDealNoteCreated;+};++export function ActivityLogDealNoteCreated({+ activity,+}: ActivityLogDealNoteCreatedProps) {+ const context = useActivityLogContext();+ const { dealNote } = activity;+ return (+ <ActivityLogNote+ header={+ <div className="flex flex-row items-center gap-2 flex-grow">+ <ReferenceField+ source="deal_id"+ reference="deals"+ record={dealNote}+ link={false}+ >+ <ReferenceField+ source="company_id"+ reference="companies"+ link={false}+ >+ <CompanyAvatar width={20} height={20} />+ </ReferenceField>+ </ReferenceField>++ <span className="text-sm text-muted-foreground flex-grow inline-flex">+ <ReferenceField+ source="sales_id"+ reference="sales"+ record={activity}+ link={false}+ >+ <SaleName />+ </ReferenceField>+ added a note about deal + <ReferenceField+ source="deal_id"+ reference="deals"+ record={dealNote}+ link="show"+ />+ {context !== "company" && (+ <>+ {" at "}+ <ReferenceField+ source="deal_id"+ reference="deals"+ record={dealNote}+ link={false}+ >+ <ReferenceField+ source="company_id"+ reference="companies"+ link="show"+ />+ </ReferenceField>{" "}+ </>+ )}+ </span>++ {context === "company" && (+ <span className="text-muted-foreground text-sm">+ <RelativeDate date={activity.date} />+ </span>+ )}+ </div>+ }+ text={dealNote.text}+ />+ );+}diff --git a/src/atomic-crm/activity/ActivityLogIterator.tsx b/src/atomic-crm/activity/ActivityLogIterator.tsxnew file mode 100644index 00000000..eb7c1878--- /dev/null+++ b/src/atomic-crm/activity/ActivityLogIterator.tsx@@ -0,0 +1,79 @@+import { Separator } from "@/components/ui/separator";+import { Fragment, useState } from "react";+import {+ COMPANY_CREATED,+ CONTACT_CREATED,+ CONTACT_NOTE_CREATED,+ DEAL_CREATED,+ DEAL_NOTE_CREATED,+} from "../consts";+import { Activity } from "../types";+import { ActivityLogCompanyCreated } from "./ActivityLogCompanyCreated";+import { ActivityLogContactCreated } from "./ActivityLogContactCreated";+import { ActivityLogContactNoteCreated } from "./ActivityLogContactNoteCreated";+import { ActivityLogDealCreated } from "./ActivityLogDealCreated";+import { ActivityLogDealNoteCreated } from "./ActivityLogDealNoteCreated";++type ActivityLogIteratorProps = {+ activities: Activity[];+ pageSize: number;+};++export function ActivityLogIterator({+ activities,+ pageSize,+}: ActivityLogIteratorProps) {+ const [activitiesDisplayed, setActivityDisplayed] = useState(pageSize);++ const filteredActivities = activities.slice(0, activitiesDisplayed);++ return (+ <div className="space-y-2">+ {filteredActivities.map((activity, index) => (+ <Fragment key={index}>+ <ActivityItem key={activity.id} activity={activity} />+ <Separator />+ </Fragment>+ ))}++ {activitiesDisplayed < activities.length && (+ <a+ href="#"+ onClick={(e) => {+ e.preventDefault();+ setActivityDisplayed(+ (activitiesDisplayed) => activitiesDisplayed + pageSize+ );+ }}+ className="flex w-full justify-center text-sm underline hover:no-underline"+ >+ Load more activity+ </a>+ )}+ </div>+ );+}++function ActivityItem({ activity }: { activity: Activity }) {+ if (activity.type === COMPANY_CREATED) {+ return <ActivityLogCompanyCreated activity={activity} />;+ }++ if (activity.type === CONTACT_CREATED) {+ return <ActivityLogContactCreated activity={activity} />;+ }++ if (activity.type === CONTACT_NOTE_CREATED) {+ return <ActivityLogContactNoteCreated activity={activity} />;+ }++ if (activity.type === DEAL_CREATED) {+ return <ActivityLogDealCreated activity={activity} />;+ }++ if (activity.type === DEAL_NOTE_CREATED) {+ return <ActivityLogDealNoteCreated activity={activity} />;+ }++ return null;+}diff --git a/src/atomic-crm/activity/ActivityLogNote.tsx b/src/atomic-crm/activity/ActivityLogNote.tsxnew file mode 100644index 00000000..b1ee90fa--- /dev/null+++ b/src/atomic-crm/activity/ActivityLogNote.tsx@@ -0,0 +1,36 @@+import { Fragment, ReactNode } from "react";++type ActivityLogContactNoteCreatedProps = {+ header: ReactNode;+ text: string;+};++export function ActivityLogNote({+ header,+ text,+}: ActivityLogContactNoteCreatedProps) {+ if (!text) {+ return null;+ }+ const paragraphs = text.split("\n");++ return (+ <div className="p-0">+ <div className="flex flex-col space-y-2 w-full">+ <div className="flex flex-row space-x-1 items-center w-full">+ {header}+ </div>+ <div>+ <div className="text-sm line-clamp-3 overflow-hidden">+ {paragraphs.map((paragraph: string, index: number) => (+ <Fragment key={index}>+ {paragraph}+ {index < paragraphs.length - 1 && <br />}+ </Fragment>+ ))}+ </div>+ </div>+ </div>+ </div>+ );+}diff --git a/src/atomic-crm/companies/CompanyAside.tsx b/src/atomic-crm/companies/CompanyAside.tsxnew file mode 100644index 00000000..db11b941--- /dev/null+++ b/src/atomic-crm/companies/CompanyAside.tsx@@ -0,0 +1,198 @@+import {+ EditButton,+ ReferenceField,+ ShowButton,+ TextField,+ DateField,+ UrlField,+ SelectField,+} from "@/components/admin";+import { Globe, Linkedin, Phone } from "lucide-react";+import { useRecordContext } from "ra-core";+import { AsideSection } from "../misc/AsideSection";+import { SaleName } from "../sales/SaleName";+import { Company } from "../types";+import { sizes } from "./sizes";++interface CompanyAsideProps {+ link?: string;+}++export const CompanyAside = ({ link = "edit" }: CompanyAsideProps) => {+ const record = useRecordContext<Company>();+ if (!record) return null;++ return (+ <div className="ml-4 w-[250px] min-w-[250px] space-y-4">+ <div className="flex flex-row space-x-1">+ {link === "edit" ? (+ <EditButton label="Edit Company" />+ ) : (+ <ShowButton label="Show Company" />+ )}+ </div>++ <CompanyInfo record={record} />++ <AddressInfo record={record} />++ <ContextInfo record={record} />++ <AdditionalInfo record={record} />+ </div>+ );+};++const CompanyInfo = ({ record }: { record: Company }) => {+ if (!record.website && !record.linkedin_url && !record.phone_number) {+ return null;+ }++ return (+ <AsideSection title="Company Info">+ {record.website && (+ <div className="flex flex-row items-center gap-1 min-h-[24px]">+ <Globe className="w-4 h-4" />+ <UrlField+ source="website"+ target="_blank"+ rel="noopener"+ content={record.website+ .replace("http://", "")+ .replace("https://", "")}+ />+ </div>+ )}+ {record.linkedin_url && (+ <div className="flex flex-row items-center gap-1 min-h-[24px]">+ <Linkedin className="w-4 h-4" />+ <a+ className="underline hover:no-underline"+ href={record.linkedin_url}+ target="_blank"+ rel="noopener noreferrer"+ title={record.linkedin_url}+ >+ </a>+ </div>+ )}+ {record.phone_number && (+ <div className="flex flex-row items-center gap-1 min-h-[24px]">+ <Phone className="w-4 h-4" />+ <TextField source="phone_number" />+ </div>+ )}+ </AsideSection>+ );+};++const ContextInfo = ({ record }: { record: Company }) => {+ if (!record.revenue && !record.id) {+ return null;+ }++ return (+ <AsideSection title="Context">+ {record.sector && (+ <span>+ Sector: <TextField source="sector" />+ </span>+ )}+ {record.size && (+ <span>+ Size: <SelectField source="size" choices={sizes} />+ </span>+ )}+ {record.revenue && (+ <span>+ Revenue: <TextField source="revenue" />+ </span>+ )}+ {record.tax_identifier && (+ <span>+ Tax Identifier: <TextField source="tax_identifier" />+ </span>+ )}+ </AsideSection>+ );+};++const AddressInfo = ({ record }: { record: Company }) => {+ if (!record.address && !record.city && !record.zipcode && !record.stateAbbr) {+ return null;+ }++ return (+ <AsideSection title="Main Address" noGap>+ <TextField source="address" />+ <TextField source="city" />+ <TextField source="zipcode" />+ <TextField source="stateAbbr" />+ <TextField source="country" />+ </AsideSection>+ );+};++const AdditionalInfo = ({ record }: { record: Company }) => {+ if (+ !record.created_at &&+ !record.sales_id &&+ !record.description &&+ !record.context_links+ ) {+ return null;+ }+ const getBaseURL = (url: string) => {+ const urlObject = new URL(url.startsWith("http") ? url : `https://${url}`);+ return urlObject.hostname;+ };++ return (+ <AsideSection title="Additional Info">+ {record.description && (+ <p className="text-sm mb-1">{record.description}</p>+ )}+ {record.context_links && (+ <div className="flex flex-col">+ {record.context_links.map((link, index) =>+ link ? (+ <a+ key={index}+ className="text-sm underline hover:no-underline mb-1"+ href={link.startsWith("http") ? link : `https://${link}`}+ target="_blank"+ rel="noopener noreferrer"+ title={link}+ >+ {getBaseURL(link)}+ </a>+ ) : null,+ )}+ </div>+ )}+ {record.sales_id !== null && (+ <div className="inline-flex text-sm text-muted-foreground mb-1">+ Followed by + <ReferenceField source="sales_id" reference="sales" record={record}>+ <SaleName />+ </ReferenceField>+ </div>+ )}+ {record.created_at && (+ <p className="text-sm text-muted-foreground mb-1">+ Added on{" "}+ <DateField+ source="created_at"+ record={record}+ options={{+ year: "numeric",+ month: "long",+ day: "numeric",+ }}+ />+ </p>+ )}+ </AsideSection>+ );+};diff --git a/src/atomic-crm/companies/CompanyAvatar.tsx b/src/atomic-crm/companies/CompanyAvatar.tsxnew file mode 100644index 00000000..b2a7f4d3--- /dev/null+++ b/src/atomic-crm/companies/CompanyAvatar.tsx@@ -0,0 +1,29 @@+import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";+import { useRecordContext } from "ra-core";++import { Company } from "../types";++export const CompanyAvatar = (props: {+ record?: Company;+ width?: 20 | 40;+ height?: 20 | 40;+}) => {+ const { width = 40 } = props;+ const record = useRecordContext<Company>(props);+ if (!record) return null;++ const sizeClass = width !== 40 ? `w-[20px] h-[20px]` : "w-10 h-10";++ return (+ <Avatar className={sizeClass}>+ <AvatarImage+ src={record.logo?.src}+ alt={record.name}+ className="object-contain"+ />+ <AvatarFallback className={width !== 40 ? "text-xs" : "text-sm"}>+ {record.name.charAt(0)}+ </AvatarFallback>+ </Avatar>+ );+};diff --git a/src/atomic-crm/companies/CompanyCard.tsx b/src/atomic-crm/companies/CompanyCard.tsxnew file mode 100644index 00000000..fb5fbe88--- /dev/null+++ b/src/atomic-crm/companies/CompanyCard.tsx@@ -0,0 +1,88 @@+import { ReferenceManyField } from "@/components/admin";+import { Card } from "@/components/ui/card";+import { DollarSign } from "lucide-react";+import { useCreatePath, useListContext, useRecordContext } from "ra-core";+import { Link } from "react-router";++import { Avatar as ContactAvatar } from "../contacts/Avatar";+import { Company } from "../types";+import { CompanyAvatar } from "./CompanyAvatar";++export const CompanyCard = (props: { record?: Company }) => {+ const createPath = useCreatePath();+ const record = useRecordContext<Company>(props);+ if (!record) return null;++ return (+ <Link+ to={createPath({+ resource: "companies",+ id: record.id,+ type: "show",+ })}+ className="no-underline"+ >+ <Card className="h-[200px] flex flex-col justify-between p-4 transition-shadow shadow hover:bg-muted">+ <div className="flex flex-col items-center gap-1">+ <CompanyAvatar />+ <div className="text-center mt-1">+ <h6 className="text-sm font-medium">{record.name}</h6>+ <p className="text-xs text-muted-foreground">{record.sector}</p>+ </div>+ </div>+ <div className="flex flex-row w-full justify-between gap-2">+ <div className="flex items-center">+ {record.nb_contacts ? (+ <ReferenceManyField reference="contacts" target="company_id">+ <AvatarGroupIterator />+ </ReferenceManyField>+ ) : null}+ </div>+ {record.nb_deals ? (+ <div className="flex items-center ml-2 gap-0.5">+ <DollarSign className="w-4 h-4 text-muted-foreground" />+ <span className="text-sm font-medium">{record.nb_deals}</span>+ <span className="text-xs text-muted-foreground">+ {record.nb_deals+ ? record.nb_deals > 1+ ? "deals"+ : "deal"+ : "deal"}+ </span>+ </div>+ ) : null}+ </div>+ </Card>+ </Link>+ );+};++const AvatarGroupIterator = () => {+ const { data, total, error, isPending } = useListContext();+ if (isPending || error) return null;++ const MAX_AVATARS = 3;+ return (+ <div className="*:data-[slot=avatar]:ring-background flex -space-x-0.5 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:grayscale">+ {data.slice(0, MAX_AVATARS).map((record: any) => (+ <ContactAvatar+ key={record.id}+ record={record}+ width={25}+ height={25}+ title={`${record.first_name} ${record.last_name}`}+ />+ ))}+ {total > MAX_AVATARS && (+ <span+ className="relative flex size-8 shrink-0 overflow-hidden rounded-full w-[25px] h-[25px]"+ data-slot="avatar"+ >+ <span className="bg-muted flex size-full items-center justify-center rounded-full text-[10px]">+ +{total - MAX_AVATARS}+ </span>+ </span>+ )}+ </div>+ );+};diff --git a/src/atomic-crm/companies/CompanyCreate.tsx b/src/atomic-crm/companies/CompanyCreate.tsxnew file mode 100644index 00000000..f7df031a--- /dev/null+++ b/src/atomic-crm/companies/CompanyCreate.tsx@@ -0,0 +1,29 @@+import { Form, useGetIdentity } from "ra-core";++import { Create } from "@/components/admin";+import { SaveButton } from "@/components/admin";+import { FormToolbar } from "@/components/admin";+import { CompanyInputs } from "./CompanyInputs";++export const CompanyCreate = () => {+ const { identity } = useGetIdentity();+ return (+ <Create+ redirect="show"+ transform={(values) => {+ // add https:// before website if not present+ if (values.website && !values.website.startsWith("http")) {+ values.website = `https://${values.website}`;+ }+ return values;+ }}+ >+ <Form defaultValues={{ sales_id: identity?.id }}>+ <CompanyInputs />+ <FormToolbar>+ <SaveButton label="Create Company" />+ </FormToolbar>+ </Form>+ </Create>+ );+};diff --git a/src/atomic-crm/companies/CompanyEdit.tsx b/src/atomic-crm/companies/CompanyEdit.tsxnew file mode 100644index 00000000..7afd1ccd--- /dev/null+++ b/src/atomic-crm/companies/CompanyEdit.tsx@@ -0,0 +1,34 @@+import { EditBase, Form } from "ra-core";++import { CompanyInputs } from "./CompanyInputs";++import { Card, CardContent } from "@/components/ui/card";+import { CompanyAside } from "./CompanyAside";+import { FormToolbar } from "../layout/FormToolbar";++export const CompanyEdit = () => (+ <EditBase+ actions={false}+ redirect="show"+ transform={(values) => {+ // add https:// before website if not present+ if (values.website && !values.website.startsWith("http")) {+ values.website = `https://${values.website}`;+ }+ return values;+ }}+ >+ <div className="flex">+ <Form className="flex flex-1 flex-col gap-4 pb-2">+ <Card>+ <CardContent>+ <CompanyInputs />+ <FormToolbar />+ </CardContent>+ </Card>+ </Form>++ <CompanyAside link="show" />+ </div>+ </EditBase>+);diff --git a/src/atomic-crm/companies/CompanyEmpty.tsx b/src/atomic-crm/companies/CompanyEmpty.tsxnew file mode 100644index 00000000..1e8e7c06--- /dev/null+++ b/src/atomic-crm/companies/CompanyEmpty.tsx@@ -0,0 +1,25 @@+import { CreateButton } from "@/components/admin";+import useAppBarHeight from "../misc/useAppBarHeight";++export const CompanyEmpty = () => {+ const appbarHeight = useAppBarHeight();+ return (+ <div+ className="flex flex-col justify-center items-center gap-6"+ style={{+ height: `calc(100dvh - ${appbarHeight}px)`,+ }}+ >+ <img src="./img/empty.svg" alt="No companies found" />+ <div className="flex flex-col gap-0 items-center">+ <h6 className="text-lg font-bold">No companies found</h6>+ <p className="text-sm text-center text-muted-foreground mb-4">+ It seems your company list is empty.+ </p>+ </div>+ <div className="flex space-x-2">+ <CreateButton label="Create Company" />+ </div>+ </div>+ );+};diff --git a/src/atomic-crm/companies/CompanyInputs.tsx b/src/atomic-crm/companies/CompanyInputs.tsxnew file mode 100644index 00000000..fefacb70--- /dev/null+++ b/src/atomic-crm/companies/CompanyInputs.tsx@@ -0,0 +1,161 @@+import {+ ReferenceInput,+ TextInput,+ SelectInput,+ ArrayInput,+ SimpleFormIterator,+} from "@/components/admin";+import { Separator } from "@/components/ui/separator";+import { useIsMobile } from "@/hooks/use-mobile";+import { required, useRecordContext } from "ra-core";+import ImageEditorField from "../misc/ImageEditorField";+import { isLinkedinUrl } from "../misc/isLinkedInUrl";+import { useConfigurationContext } from "../root/ConfigurationContext";+import { Company, Sale } from "../types";+import { sizes } from "./sizes";++const isUrl = (url: string) => {+ if (!url) return;+ const UrlRegex = new RegExp(+ /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i,+ );+ if (!UrlRegex.test(url)) {+ return "Must be a valid URL";+ }+};++export const CompanyInputs = () => {+ const isMobile = useIsMobile();++ return (+ <div className="flex flex-col gap-4 p-1">+ <CompanyDisplayInputs />+ <div className={`flex gap-4 ${isMobile ? "flex-col" : "flex-row"}`}>+ <div className="flex flex-col gap-8 flex-1">+ <CompanyContactInputs />+ <CompanyContextInputs />+ </div>+ <Separator orientation={isMobile ? "horizontal" : "vertical"} />+ <div className="flex flex-col gap-8 flex-1">+ <CompanyAddressInputs />+ <CompanyAdditionalInformationInputs />+ <CompanyAccountManagerInput />+ </div>+ </div>+ </div>+ );+};++const CompanyDisplayInputs = () => {+ const record = useRecordContext<Company>();+ return (+ <div className="flex gap-4 flex-1 flex-row">+ <ImageEditorField+ source="logo"+ type="avatar"+ width={60}+ height={60}+ emptyText={record?.name.charAt(0)}+ linkPosition="bottom"+ />+ <TextInput+ source="name"+ className="w-full"+ validate={required()}+ helperText={false}+ label={false}+ />+ </div>+ );+};++const CompanyContactInputs = () => {+ return (+ <div className="flex flex-col gap-4">+ <h6 className="text-lg font-semibold">Contact</h6>+ <TextInput source="website" helperText={false} validate={isUrl} />+ <TextInput+ source="linkedin_url"+ helperText={false}+ validate={isLinkedinUrl}+ />+ <TextInput source="phone_number" helperText={false} />+ </div>+ );+};++const CompanyContextInputs = () => {+ const { companySectors } = useConfigurationContext();+ return (+ <div className="flex flex-col gap-4">+ <h6 className="text-lg font-semibold">Context</h6>+ <SelectInput+ source="sector"+ choices={companySectors.map((sector) => ({+ id: sector,+ name: sector,+ }))}+ helperText={false}+ />+ <SelectInput source="size" choices={sizes} helperText={false} />+ <TextInput source="revenue" helperText={false} />+ <TextInput source="tax_identifier" helperText={false} />+ </div>+ );+};++const CompanyAddressInputs = () => {+ return (+ <div className="flex flex-col gap-4">+ <h6 className="text-lg font-semibold">Address</h6>+ <TextInput source="address" helperText={false} />+ <TextInput source="city" helperText={false} />+ <TextInput source="zipcode" helperText={false} />+ <TextInput source="stateAbbr" helperText={false} />+ <TextInput source="country" helperText={false} />+ </div>+ );+};++const CompanyAdditionalInformationInputs = () => {+ return (+ <div className="flex flex-col gap-4">+ <h6 className="text-lg font-semibold">Additional information</h6>+ <TextInput source="description" multiline helperText={false} />+ <ArrayInput source="context_links" helperText={false}>+ <SimpleFormIterator disableReordering fullWidth getItemLabel={false}>+ <TextInput+ source=""+ label={false}+ helperText={false}+ validate={isUrl}+ />+ </SimpleFormIterator>+ </ArrayInput>+ </div>+ );+};++const CompanyAccountManagerInput = () => {+ return (+ <div className="flex flex-col gap-4">+ <h6 className="text-lg font-semibold">Account manager</h6>+ <ReferenceInput+ source="sales_id"+ reference="sales"+ filter={{+ "disabled@neq": true,+ }}+ >+ <SelectInput+ label="Account manager"+ helperText={false}+ optionText={saleOptionRenderer}+ />+ </ReferenceInput>+ </div>+ );+};++const saleOptionRenderer = (choice: Sale) =>+ `${choice.first_name} ${choice.last_name}`;diff --git a/src/atomic-crm/companies/CompanyList.tsx b/src/atomic-crm/companies/CompanyList.tsxnew file mode 100644index 00000000..01ad8e2b--- /dev/null+++ b/src/atomic-crm/companies/CompanyList.tsx@@ -0,0 +1,56 @@+import { useGetIdentity, useListContext } from "ra-core";++import {+ CreateButton,+ ExportButton,+ List,+ ListPagination,+ SortButton,+} from "@/components/admin";+import { TopToolbar } from "../layout/TopToolbar";+import { CompanyEmpty } from "./CompanyEmpty";+import { CompanyListFilter } from "./CompanyListFilter";+import { ImageList } from "./GridList";++export const CompanyList = () => {+ const { identity } = useGetIdentity();+ if (!identity) return null;+ return (+ <List+ title={false}+ perPage={25}+ sort={{ field: "name", order: "ASC" }}+ actions={<CompanyListActions />}+ pagination={<ListPagination rowsPerPageOptions={[10, 25, 50, 100]} />}+ >+ <CompanyListLayout />+ </List>+ );+};++const CompanyListLayout = () => {+ const { data, isPending, filterValues } = useListContext();+ const hasFilters = filterValues && Object.keys(filterValues).length > 0;++ if (isPending) return null;+ if (!data?.length && !hasFilters) return <CompanyEmpty />;++ return (+ <div className="w-full flex flex-row gap-8">+ <CompanyListFilter />+ <div className="flex flex-col flex-1 gap-4">+ <ImageList />+ </div>+ </div>+ );+};++const CompanyListActions = () => {+ return (+ <TopToolbar>+ <SortButton fields={["name", "created_at", "nb_contacts"]} />+ <ExportButton />+ <CreateButton label="New Company" />+ </TopToolbar>+ );+};diff --git a/src/atomic-crm/companies/CompanyListFilter.tsx b/src/atomic-crm/companies/CompanyListFilter.tsxnew file mode 100644index 00000000..3e030fc6--- /dev/null+++ b/src/atomic-crm/companies/CompanyListFilter.tsx@@ -0,0 +1,45 @@+import { Building, Truck, Users } from "lucide-react";+import { FilterLiveForm, useGetIdentity } from "ra-core";++import { ToggleFilterButton, SearchInput } from "@/components/admin";+import { FilterCategory } from "../filters/FilterCategory";+import { useConfigurationContext } from "../root/ConfigurationContext";+import { sizes } from "./sizes";++export const CompanyListFilter = () => {+ const { identity } = useGetIdentity();+ const { companySectors } = useConfigurationContext();+ const sectors = companySectors.map((sector) => ({+ id: sector,+ name: sector,+ }));+ return (+ <div className="w-52 min-w-52 flex flex-col gap-8">+ <FilterLiveForm>+ <SearchInput source="q" />+ </FilterLiveForm>++ <FilterCategory icon={<Building className="h-4 w-4" />} label="Size">+ {sizes.map((size) => (+ <ToggleFilterButton label={size.name} value={{ size: size.id }} />+ ))}+ </FilterCategory>++ <FilterCategory icon={<Truck className="h-4 w-4" />} label="Sector">+ {sectors.map((sector) => (+ <ToggleFilterButton+ label={sector.name}+ value={{ sector: sector.id }}+ />+ ))}+ </FilterCategory>++ <FilterCategory+ icon={<Users className="h-4 w-4" />}+ label="Account Manager"+ >+ <ToggleFilterButton label={"Me"} value={{ sales_id: identity?.id }} />+ </FilterCategory>+ </div>+ );+};diff --git a/src/atomic-crm/companies/CompanyShow.tsx b/src/atomic-crm/companies/CompanyShow.tsxnew file mode 100644index 00000000..90117d68--- /dev/null+++ b/src/atomic-crm/companies/CompanyShow.tsx@@ -0,0 +1,240 @@+import { Button } from "@/components/ui/button";+import { Card, CardContent } from "@/components/ui/card";+import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs";+import { formatDistance } from "date-fns";+import { UserPlus } from "lucide-react";+import {+ RecordContextProvider,+ ShowBase,+ useListContext,+ useRecordContext,+ useShowContext,+} from "ra-core";+import {+ Link as RouterLink,+ useLocation,+ useMatch,+ useNavigate,+} from "react-router-dom";+import { ReferenceManyField, SortButton } from "@/components/admin";++import { ActivityLog } from "../activity/ActivityLog";+import { Avatar } from "../contacts/Avatar";+import { TagsList } from "../contacts/TagsList";+import { findDealLabel } from "../deals/deal";+import { Status } from "../misc/Status";+import { useConfigurationContext } from "../root/ConfigurationContext";+import { Company, Contact, Deal } from "../types";+import { CompanyAside } from "./CompanyAside";+import { CompanyAvatar } from "./CompanyAvatar";++export const CompanyShow = () => (+ <ShowBase>+ <CompanyShowContent />+ </ShowBase>+);++const CompanyShowContent = () => {+ const { record, isPending } = useShowContext<Company>();+ const navigate = useNavigate();++ // Get tab from URL or default to "activity"+ const tabMatch = useMatch("/companies/:id/show/:tab");+ const currentTab = tabMatch?.params?.tab || "activity";++ const handleTabChange = (value: string) => {+ if (value === currentTab) return;+ if (value === "activity") {+ navigate(`/companies/${record?.id}/show`);+ return;+ }+ navigate(`/companies/${record?.id}/show/${value}`);+ };++ if (isPending || !record) return null;++ return (+ <div className="flex pb-2">+ <div className="flex-1">+ <Card>+ <CardContent>+ <div className="flex mb-3">+ <CompanyAvatar />+ <h5 className="text-xl ml-2 flex-1">{record.name}</h5>+ </div>+ <Tabs defaultValue={currentTab} onValueChange={handleTabChange}>+ <TabsList className="grid w-full grid-cols-3">+ <TabsTrigger value="activity">Activity</TabsTrigger>+ <TabsTrigger value="contacts">+ {record.nb_contacts+ ? record.nb_contacts === 1+ ? "1 Contact"+ : `${record.nb_contacts} Contacts`+ : "No Contacts"}+ </TabsTrigger>+ {record.nb_deals ? (+ <TabsTrigger value="deals">+ {record.nb_deals === 1+ ? "1 deal"+ : `${record.nb_deals} deals`}+ </TabsTrigger>+ ) : null}+ </TabsList>+ <TabsContent value="activity" className="pt-2">+ <ActivityLog companyId={record.id} context="company" />+ </TabsContent>+ <TabsContent value="contacts">+ {record.nb_contacts ? (+ <ReferenceManyField+ reference="contacts_summary"+ target="company_id"+ sort={{ field: "last_name", order: "ASC" }}+ >+ <div className="flex flex-col gap-4">+ <div className="flex flex-row justify-end space-x-2 mt-1">+ {!!record.nb_contacts && (+ <SortButton+ fields={["last_name", "first_name", "last_seen"]}+ />+ )}+ <CreateRelatedContactButton />+ </div>+ <ContactsIterator />+ </div>+ </ReferenceManyField>+ ) : (+ <div className="flex flex-col gap-4">+ <div className="flex flex-row justify-end space-x-2 mt-1">+ <CreateRelatedContactButton />+ </div>+ </div>+ )}+ </TabsContent>+ <TabsContent value="deals">+ {record.nb_deals ? (+ <ReferenceManyField+ reference="deals"+ target="company_id"+ sort={{ field: "name", order: "ASC" }}+ >+ <DealsIterator />+ </ReferenceManyField>+ ) : null}+ </TabsContent>+ </Tabs>+ </CardContent>+ </Card>+ </div>+ <CompanyAside />+ </div>+ );+};++const ContactsIterator = () => {+ const location = useLocation();+ const { data: contacts, error, isPending } = useListContext<Contact>();++ if (isPending || error) return null;++ const now = Date.now();+ return (+ <div className="pt-0">+ {contacts.map((contact) => (+ <RecordContextProvider key={contact.id} value={contact}>+ <div className="p-0 text-sm">+ <RouterLink+ to={`/contacts/${contact.id}/show`}+ state={{ from: location.pathname }}+ className="flex items-center justify-between hover:bg-muted py-2 px-4 transition-colors"+ >+ <div className="mr-4">+ <Avatar />+ </div>+ <div className="flex-1 min-w-0">+ <div className="font-medium">+ {`${contact.first_name} ${contact.last_name}`}+ </div>+ <div className="text-sm text-muted-foreground">+ {contact.title}+ {contact.nb_tasks+ ? ` - ${contact.nb_tasks} task${+ contact.nb_tasks > 1 ? "s" : ""+ }`+ : ""}+ + <TagsList />+ </div>+ </div>+ {contact.last_seen && (+ <div className="text-right">+ <div className="text-sm text-muted-foreground">+ last activity {formatDistance(contact.last_seen, now)} ago{" "}+ <Status status={contact.status} />+ </div>+ </div>+ )}+ </RouterLink>+ </div>+ </RecordContextProvider>+ ))}+ </div>+ );+};++const CreateRelatedContactButton = () => {+ const company = useRecordContext<Company>();+ return (+ <Button variant="outline" asChild size="sm" className="h-9">+ <RouterLink+ to="/contacts/create"+ state={company ? { record: { company_id: company.id } } : undefined}+ className="flex items-center gap-2"+ >+ <UserPlus className="h-4 w-4" />+ Add contact+ </RouterLink>+ </Button>+ );+};++const DealsIterator = () => {+ const { data: deals, error, isPending } = useListContext<Deal>();+ const { dealStages } = useConfigurationContext();+ if (isPending || error) return null;++ const now = Date.now();+ return (+ <div>+ <div>+ {deals.map((deal) => (+ <div key={deal.id} className="p-0 text-sm">+ <RouterLink+ to={`/deals/${deal.id}/show`}+ className="flex items-center justify-between hover:bg-muted py-2 px-4 transition-colors"+ >+ <div className="flex-1 min-w-0">+ <div className="font-medium">{deal.name}</div>+ <div className="text-sm text-muted-foreground">+ {findDealLabel(dealStages, deal.stage)},{" "}+ {deal.amount.toLocaleString("en-US", {+ notation: "compact",+ style: "currency",+ currency: "USD",+ currencyDisplay: "narrowSymbol",+ minimumSignificantDigits: 3,+ })}+ {deal.category ? `, ${deal.category}` : ""}+ </div>+ </div>+ <div className="text-right">+ <div className="text-sm text-muted-foreground">+ last activity {formatDistance(deal.updated_at, now)} ago{" "}+ </div>+ </div>+ </RouterLink>+ </div>+ ))}+ </div>+ </div>+ );+};diff --git a/src/atomic-crm/companies/GridList.tsx b/src/atomic-crm/companies/GridList.tsxnew file mode 100644index 00000000..3502c8bd--- /dev/null+++ b/src/atomic-crm/companies/GridList.tsx@@ -0,0 +1,46 @@+import { RecordContextProvider, useListContext } from "ra-core";++import { Company } from "../types";+import { CompanyCard } from "./CompanyCard";++const times = (nbChildren: number, fn: (key: number) => any) =>+ Array.from({ length: nbChildren }, (_, key) => fn(key));++const LoadingGridList = () => (+ <div className="flex flex-wrap w-[1008px] gap-1">+ {times(15, (key) => (+ <div+ className="h-[200px] w-[194px] flex flex-col bg-gray-200"+ key={key}+ />+ ))}+ </div>+);++const LoadedGridList = () => {+ const { data, error, isPending } = useListContext<Company>();++ if (isPending || error) return null;++ return (+ <div+ className="w-full gap-2 grid"+ style={{+ gridTemplateColumns: "repeat(5, minmax(180px, 1fr))",+ }}+ >+ {data.map((record) => (+ <RecordContextProvider key={record.id} value={record}>+ <CompanyCard />+ </RecordContextProvider>+ ))}++ {data.length === 0 && <div className="p-2">No companies found</div>}+ </div>+ );+};++export const ImageList = () => {+ const { isPending } = useListContext();+ return isPending ? <LoadingGridList /> : <LoadedGridList />;+};diff --git a/src/atomic-crm/companies/index.ts b/src/atomic-crm/companies/index.tsnew file mode 100644index 00000000..d751e1f3--- /dev/null+++ b/src/atomic-crm/companies/index.ts@@ -0,0 +1,11 @@+import { CompanyList } from "./CompanyList";+import { CompanyCreate } from "./CompanyCreate";+import { CompanyShow } from "./CompanyShow";+import { CompanyEdit } from "./CompanyEdit";++export default {+ list: CompanyList,+ create: CompanyCreate,+ edit: CompanyEdit,+ show: CompanyShow,+};diff --git a/src/companies/sizes.ts b/src/atomic-crm/companies/sizes.tssimilarity index 100%rename from src/companies/sizes.tsrename to src/atomic-crm/companies/sizes.tsdiff --git a/src/consts.ts b/src/atomic-crm/consts.tssimilarity index 100%rename from src/consts.tsrename to src/atomic-crm/consts.tsdiff --git a/src/atomic-crm/contacts/Avatar.tsx b/src/atomic-crm/contacts/Avatar.tsxnew file mode 100644index 00000000..6c709653--- /dev/null+++ b/src/atomic-crm/contacts/Avatar.tsx@@ -0,0 +1,40 @@+import {+ AvatarFallback,+ AvatarImage,+ Avatar as ShadcnAvatar,+} from "@/components/ui/avatar";+import { useRecordContext } from "ra-core";++import { Contact } from "../types";++export const Avatar = (props: {+ record?: Contact;+ width?: 20 | 25 | 40;+ height?: 20 | 25 | 40;+ title?: string;+}) => {+ const record = useRecordContext<Contact>(props);+ // If we come from company page, the record is defined (to pass the company as a prop),+ // but neither of those fields are and this lead to an error when creating contact.+ if (!record?.avatar && !record?.first_name && !record?.last_name) {+ return null;+ }++ const size = props.width || props.height;+ const sizeClass =+ props.width === 20+ ? `w-[20px] h-[20px]`+ : props.width === 25+ ? "w-[25px] h-[25px]"+ : "w-10 h-10";++ return (+ <ShadcnAvatar className={sizeClass} title={props.title}>+ <AvatarImage src={record.avatar?.src ?? undefined} />+ <AvatarFallback className={size && size < 40 ? "text-[10px]" : "text-sm"}>+ {record.first_name?.charAt(0).toUpperCase()}+ {record.last_name?.charAt(0).toUpperCase()}+ </AvatarFallback>+ </ShadcnAvatar>+ );+};diff --git a/src/atomic-crm/contacts/ContactAside.tsx b/src/atomic-crm/contacts/ContactAside.tsxnew file mode 100644index 00000000..0a4c379f--- /dev/null+++ b/src/atomic-crm/contacts/ContactAside.tsx@@ -0,0 +1,170 @@+import { Linkedin, Mail, Phone } from "lucide-react";+import { useRecordContext, WithRecord } from "ra-core";+import { AddTask } from "../tasks/AddTask";+import { TasksIterator } from "../tasks/TasksIterator";+import { TagsListEdit } from "./TagsListEdit";++import {+ ArrayField,+ EditButton,+ ReferenceField,+ ReferenceManyField,+ ShowButton,+ SingleFieldList,+ TextField,+ DateField,+ EmailField,+} from "@/components/admin";+import { ReactNode } from "react";+import { AsideSection } from "../misc/AsideSection";+import { useConfigurationContext } from "../root/ConfigurationContext";+import { SaleName } from "../sales/SaleName";+import { Contact } from "../types";++export const ContactAside = ({ link = "edit" }: { link?: "edit" | "show" }) => {+ const { contactGender } = useConfigurationContext();+ const record = useRecordContext<Contact>();+ if (!record) return null;+ return (+ <div className="ml-4 w-64 min-w-64 text-sm">+ <div className="mb-4 -ml-1">+ {link === "edit" ? (+ <EditButton label="Edit Contact" />+ ) : (+ <ShowButton label="Show Contact" />+ )}+ </div>++ <AsideSection title="Personal info">+ <ArrayField source="email_jsonb">+ <SingleFieldList className="flex-col">+ <PersonalInfoRow+ icon={<Mail className="w-4 h-4 text-muted-foreground" />}+ primary={<EmailField source="email" />}+ />+ </SingleFieldList>+ </ArrayField>++ {record.has_newsletter && (+ <p className="pl-6 text-sm text-muted-foreground">+ Subscribed to newsletter+ </p>+ )}++ {record.linkedin_url && (+ <PersonalInfoRow+ icon={<Linkedin className="w-4 h-4 text-muted-foreground" />}+ primary={+ <a+ className="underline hover:no-underline text-sm text-muted-foreground"+ href={record.linkedin_url}+ target="_blank"+ rel="noopener noreferrer"+ title={record.linkedin_url}+ >+ </a>+ }+ />+ )}+ <ArrayField source="phone_jsonb">+ <SingleFieldList className="flex-col">+ <PersonalInfoRow+ icon={<Phone className="w-4 h-4 text-muted-foreground" />}+ primary={<TextField source="number" />}+ showType+ />+ </SingleFieldList>+ </ArrayField>+ {contactGender+ .map((genderOption) => {+ if (record.gender === genderOption.value) {+ return (+ <PersonalInfoRow+ key={genderOption.value}+ icon={+ <genderOption.icon className="w-4 h-4 text-muted-foreground" />+ }+ primary={<span>{genderOption.label}</span>}+ />+ );+ }+ return null;+ })+ .filter(Boolean)}+ </AsideSection>+ <AsideSection title="Background info">+ <WithRecord<Contact>+ render={(record) =>+ record?.background ? (+ <TextField source="background" record={record} className="pb-2" />+ ) : null+ }+ />+ <div className="text-muted-foreground">+ <span className="text-sm">Added on</span>{" "}+ <DateField+ source="first_seen"+ options={{ year: "numeric", month: "long", day: "numeric" }}+ />+ </div>++ <div className="text-muted-foreground">+ <span className="text-sm">Last activity on</span>{" "}+ <DateField+ source="last_seen"+ options={{ year: "numeric", month: "long", day: "numeric" }}+ />+ </div>++ <div className="inline-flex text-muted-foreground">+ Followed by + <ReferenceField source="sales_id" reference="sales">+ <SaleName />+ </ReferenceField>+ </div>+ </AsideSection>++ <AsideSection title="Tags">+ <TagsListEdit />+ </AsideSection>++ <AsideSection title="Tasks">+ <ReferenceManyField+ target="contact_id"+ reference="tasks"+ sort={{ field: "due_date", order: "ASC" }}+ >+ <TasksIterator />+ </ReferenceManyField>+ <AddTask />+ </AsideSection>+ </div>+ );+};++const PersonalInfoRow = ({+ icon,+ primary,+ showType,+}: {+ icon: ReactNode;+ primary: ReactNode;+ showType?: boolean;+}) => (+ <div className="flex flex-row items-center gap-2 min-h-6">+ {icon}+ <div className="flex flex-wrap gap-x-2 gap-y-0">+ {primary}+ {showType ? (+ <WithRecord+ render={(row) =>+ row.type !== "Other" && (+ <TextField source="type" className="text-muted-foreground" />+ )+ }+ />+ ) : null}+ </div>+ </div>+);diff --git a/src/atomic-crm/contacts/ContactCreate.tsx b/src/atomic-crm/contacts/ContactCreate.tsxnew file mode 100644index 00000000..a2909b24--- /dev/null+++ b/src/atomic-crm/contacts/ContactCreate.tsx@@ -0,0 +1,34 @@+import { Card, CardContent } from "@/components/ui/card";+import { CreateBase, Form, useGetIdentity } from "ra-core";++import { FormToolbar } from "@/components/admin";+import { Contact } from "../types";+import { ContactInputs } from "./ContactInputs";++export const ContactCreate = () => {+ const { identity } = useGetIdentity();+ return (+ <CreateBase+ redirect="show"+ transform={(data: Contact) => ({+ ...data,+ first_seen: new Date().toISOString(),+ last_seen: new Date().toISOString(),+ tags: [],+ })}+ >+ <div className="mt-2 flex">+ <div className="flex-1">+ <Form defaultValues={{ sales_id: identity?.id }}>+ <Card>+ <CardContent>+ <ContactInputs />+ <FormToolbar />+ </CardContent>+ </Card>+ </Form>+ </div>+ </div>+ </CreateBase>+ );+};diff --git a/src/atomic-crm/contacts/ContactEdit.tsx b/src/atomic-crm/contacts/ContactEdit.tsxnew file mode 100644index 00000000..c4b43676--- /dev/null+++ b/src/atomic-crm/contacts/ContactEdit.tsx@@ -0,0 +1,32 @@+import { Card, CardContent } from "@/components/ui/card";+import { EditBase, Form, useEditContext } from "ra-core";++import { Contact } from "../types";+import { ContactAside } from "./ContactAside";+import { ContactInputs } from "./ContactInputs";+import { FormToolbar } from "../layout/FormToolbar";++export const ContactEdit = () => (+ <EditBase redirect="show">+ <ContactEditContent />+ </EditBase>+);++const ContactEditContent = () => {+ const { isPending, record } = useEditContext<Contact>();+ if (isPending || !record) return null;+ return (+ <div className="mt-2 flex">+ <Form className="flex flex-1 flex-col gap-4">+ <Card>+ <CardContent>+ <ContactInputs />+ <FormToolbar />+ </CardContent>+ </Card>+ </Form>++ <ContactAside link="show" />+ </div>+ );+};diff --git a/src/atomic-crm/contacts/ContactEmpty.tsx b/src/atomic-crm/contacts/ContactEmpty.tsxnew file mode 100644index 00000000..c1157c40--- /dev/null+++ b/src/atomic-crm/contacts/ContactEmpty.tsx@@ -0,0 +1,27 @@+import { CreateButton } from "@/components/admin";+import useAppBarHeight from "../misc/useAppBarHeight";+import { ContactImportButton } from "./ContactImportButton";++export const ContactEmpty = () => {+ const appbarHeight = useAppBarHeight();+ return (+ <div+ className="flex flex-col justify-center items-center gap-3"+ style={{+ height: `calc(100dvh - ${appbarHeight}px)`,+ }}+ >+ <img src="./img/empty.svg" alt="No contacts found" />+ <div className="flex flex-col gap-0 items-center">+ <h6 className="text-lg font-bold">No contacts found</h6>+ <p className="text-sm text-muted-foreground text-center mb-4">+ It seems your contact list is empty.+ </p>+ </div>+ <div className="flex flex-row gap-2">+ <CreateButton label="New Contact" />+ <ContactImportButton />+ </div>+ </div>+ );+};diff --git a/src/atomic-crm/contacts/ContactImportButton.tsx b/src/atomic-crm/contacts/ContactImportButton.tsxnew file mode 100644index 00000000..06dd93c3--- /dev/null+++ b/src/atomic-crm/contacts/ContactImportButton.tsx@@ -0,0 +1,29 @@+import { Button } from "@/components/ui/button";+import { Upload } from "lucide-react";+import { useState } from "react";+import { ContactImportDialog } from "./ContactImportDialog";++export const ContactImportButton = () => {+ const [modalOpen, setModalOpen] = useState(false);++ const handleOpenModal = () => {+ setModalOpen(true);+ };++ const handleCloseModal = () => {+ setModalOpen(false);+ };++ return (+ <>+ <Button+ variant="outline"+ onClick={handleOpenModal}+ className="flex items-center gap-2 cursor-pointer"+ >+ <Upload /> Import+ </Button>+ <ContactImportDialog open={modalOpen} onClose={handleCloseModal} />+ </>+ );+};diff --git a/src/atomic-crm/contacts/ContactImportDialog.tsx b/src/atomic-crm/contacts/ContactImportDialog.tsxnew file mode 100644index 00000000..443c4180--- /dev/null+++ b/src/atomic-crm/contacts/ContactImportDialog.tsx@@ -0,0 +1,185 @@+import { Alert, AlertDescription } from "@/components/ui/alert";+import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { Loader2 } from "lucide-react";+import { Form, useRefresh } from "ra-core";+import { Link } from "react-router";+import { usePapaParse } from "../misc/usePapaParse";+import { ContactImportSchema, useContactImport } from "./useContactImport";++import { FormToolbar, FileInput, FileField } from "@/components/admin";+import * as React from "react";+import { useEffect, useState } from "react";+import * as sampleCsv from "./contacts_export.csv?raw";++const SAMPLE_URL = `data:text/csv;name=crm_contacts_sample.csv;charset=utf-8,${encodeURIComponent(+ sampleCsv.default,+)}`;++type ContactImportModalProps = {+ open: boolean;+ onClose(): void;+};++export function ContactImportDialog({+ open,+ onClose,+}: ContactImportModalProps) {+ const refresh = useRefresh();+ const processBatch = useContactImport();+ const { importer, parseCsv, reset } = usePapaParse<ContactImportSchema>({+ batchSize: 10,+ processBatch,+ });++ const [file, setFile] = useState<File | null>(null);++ useEffect(() => {+ if (importer.state === "complete") {+ refresh();+ }+ }, [importer.state, refresh]);++ const handleFileChange = (file: File | null) => {+ setFile(file);+ };++ const startImport = () => {+ if (!file) return;+ parseCsv(file);+ };++ const handleClose = () => {+ reset();+ onClose();+ };++ const handleReset = (e: React.MouseEvent<HTMLButtonElement>) => {+ e.preventDefault();+ reset();+ };++ return (+ <Dialog open={open} onOpenChange={handleClose}>+ <DialogContent className="max-w-2xl">+ <Form className="flex flex-col gap-4">+ <DialogHeader>+ <DialogTitle>Import</DialogTitle>+ </DialogHeader>++ <div className="flex flex-col space-y-2">+ {importer.state === "running" && (+ <div className="flex flex-col gap-2">+ <Alert>+ <AlertDescription className="flex flex-row gap-4">+ <Loader2 className="h-5 w-5 animate-spin" />+ The import is running, please do not close this tab.+ </AlertDescription>+ </Alert>++ <div className="text-sm">+ Imported{" "}+ <strong>+ {importer.importCount} / {importer.rowCount}+ </strong>{" "}+ contacts, with <strong>{importer.errorCount}</strong> errors.+ {importer.remainingTime !== null && (+ <>+ {" "}+ Estimated remaining time:{" "}+ <strong>+ {millisecondsToTime(importer.remainingTime)}+ </strong>+ .{" "}+ <button+ onClick={handleReset}+ className="text-red-600 underline hover:text-red-800"+ >+ Stop import+ </button>+ </>+ )}+ </div>+ </div>+ )}++ {importer.state === "error" && (+ <Alert variant="destructive">+ <AlertDescription>+ Failed to import this file, please make sure your provided a+ valid CSV file.+ </AlertDescription>+ </Alert>+ )}++ {importer.state === "complete" && (+ <Alert>+ <AlertDescription>+ Contacts import complete. Imported {importer.importCount}{" "}+ contacts, with {importer.errorCount} errors+ </AlertDescription>+ </Alert>+ )}++ {importer.state === "idle" && (+ <>+ <Alert>+ <AlertDescription className="flex flex-col gap-4">+ Here is a sample CSV file you can use as a template+ <Button asChild variant="outline" size="sm">+ <Link+ to={SAMPLE_URL}+ download={"crm_contacts_sample.csv"}+ >+ Download CSV sample+ </Link>+ </Button>{" "}+ </AlertDescription>+ </Alert>++ <FileInput+ source="csv"+ label="CSV File"+ accept={{ "text/csv": [".csv"] }}+ onChange={handleFileChange}+ >+ <FileField source="src" title="title" target="_blank" />+ </FileInput>+ </>+ )}+ </div>+ </Form>++ <div className="flex justify-start pt-6">+ <FormToolbar>+ {importer.state === "idle" ? (+ <Button onClick={startImport} disabled={!file}>+ Import+ </Button>+ ) : (+ <Button+ variant="outline"+ onClick={handleClose}+ disabled={importer.state === "running"}+ >+ Close+ </Button>+ )}+ </FormToolbar>+ </div>+ </DialogContent>+ </Dialog>+ );+}++function millisecondsToTime(ms: number) {+ const seconds = Math.floor((ms / 1000) % 60);+ const minutes = Math.floor((ms / (60 * 1000)) % 60);++ return `${minutes}m ${seconds}s`;+}diff --git a/src/atomic-crm/contacts/ContactInputs.tsx b/src/atomic-crm/contacts/ContactInputs.tsxnew file mode 100644index 00000000..72b9854f--- /dev/null+++ b/src/atomic-crm/contacts/ContactInputs.tsx@@ -0,0 +1,190 @@+import { Separator } from "@/components/ui/separator";+import { useIsMobile } from "@/hooks/use-mobile";+import { email, required } from "ra-core";+import * as React from "react";+import { useFormContext } from "react-hook-form";++import {+ AutocompleteInput,+ BooleanInput,+ ReferenceInput,+ TextInput,+ RadioButtonGroupInput,+ SelectInput,+ ArrayInput,+} from "@/components/admin";+import { SimpleFormIterator } from "@/components/admin";+import { isLinkedinUrl } from "../misc/isLinkedInUrl";+import { useConfigurationContext } from "../root/ConfigurationContext";+import { Sale } from "../types";+import { Avatar } from "./Avatar";++export const ContactInputs = () => {+ const isMobile = useIsMobile();++ return (+ <div className="flex flex-col gap-2 p-1">+ <Avatar />+ <div className={`flex gap-4 ${isMobile ? "flex-col" : "flex-row"}`}>+ <div className="flex flex-col gap-6 flex-1">+ <ContactIdentityInputs />+ <ContactPositionInputs />+ </div>+ <Separator+ orientation={isMobile ? "horizontal" : "vertical"}+ className="flex-shrink-0"+ />+ <div className="flex flex-col gap-4 flex-1">+ <ContactPersonalInformationInputs />+ <ContactMiscInputs />+ </div>+ </div>+ </div>+ );+};++const ContactIdentityInputs = () => {+ const { contactGender } = useConfigurationContext();+ return (+ <div className="flex flex-col gap-4">+ <h6 className="text-lg font-semibold">Identity</h6>+ <RadioButtonGroupInput+ label={false}+ source="gender"+ choices={contactGender}+ helperText={false}+ optionText="label"+ optionValue="value"+ defaultValue={contactGender[0].value}+ />+ <TextInput source="first_name" validate={required()} helperText={false} />+ <TextInput source="last_name" validate={required()} helperText={false} />+ </div>+ );+};++const ContactPositionInputs = () => {+ return (+ <div className="flex flex-col gap-4">+ <h6 className="text-lg font-semibold">Position</h6>+ <TextInput source="title" helperText={false} />+ <ReferenceInput source="company_id" reference="companies">+ <AutocompleteInput optionText="name" helperText={false} />+ </ReferenceInput>+ </div>+ );+};++const ContactPersonalInformationInputs = () => {+ const { getValues, setValue } = useFormContext();++ // set first and last name based on email+ const handleEmailChange = (email: string) => {+ const { first_name, last_name } = getValues();+ if (first_name || last_name || !email) return;+ const [first, last] = email.split("@")[0].split(".");+ setValue("first_name", first.charAt(0).toUpperCase() + first.slice(1));+ setValue(+ "last_name",+ last ? last.charAt(0).toUpperCase() + last.slice(1) : "",+ );+ };++ const handleEmailPaste: React.ClipboardEventHandler<+ HTMLTextAreaElement | HTMLInputElement+ > = (e) => {+ const email = e.clipboardData?.getData("text/plain");+ handleEmailChange(email);+ };++ const handleEmailBlur = (+ e: React.FocusEvent<HTMLTextAreaElement | HTMLInputElement>,+ ) => {+ const email = e.target.value;+ handleEmailChange(email);+ };++ return (+ <div className="flex flex-col gap-4">+ <h6 className="text-lg font-semibold">Personal info</h6>+ <ArrayInput+ source="email_jsonb"+ label="Email addresses"+ helperText={false}+ >+ <SimpleFormIterator inline disableReordering>+ <TextInput+ source="email"+ className="w-full"+ helperText={false}+ validate={email()}+ onPaste={handleEmailPaste}+ onBlur={handleEmailBlur}+ />+ <SelectInput+ source="type"+ helperText={false}+ optionText="id"+ choices={personalInfoTypes}+ defaultValue="Work"+ className="w-24 min-w-24"+ />+ </SimpleFormIterator>+ </ArrayInput>+ <ArrayInput source="phone_jsonb" label="Phone numbers" helperText={false}>+ <SimpleFormIterator inline disableReordering>+ <TextInput source="number" className="w-full" helperText={false} />+ <SelectInput+ source="type"+ helperText={false}+ optionText="id"+ choices={personalInfoTypes}+ defaultValue="Work"+ className="w-24 min-w-24"+ />+ </SimpleFormIterator>+ </ArrayInput>+ <TextInput+ source="linkedin_url"+ label="Linkedin URL"+ helperText={false}+ validate={isLinkedinUrl}+ />+ </div>+ );+};++const personalInfoTypes = [{ id: "Work" }, { id: "Home" }, { id: "Other" }];++const ContactMiscInputs = () => {+ return (+ <div className="flex flex-col gap-4">+ <h6 className="text-lg font-semibold">Misc</h6>+ <TextInput+ source="background"+ label="Background info (bio, how you met, etc)"+ multiline+ helperText={false}+ />+ <BooleanInput source="has_newsletter" helperText={false} />+ <ReferenceInput+ reference="sales"+ source="sales_id"+ sort={{ field: "last_name", order: "ASC" }}+ filter={{+ "disabled@neq": true,+ }}+ >+ <SelectInput+ helperText={false}+ label="Account manager"+ optionText={saleOptionRenderer}+ validate={required()}+ />+ </ReferenceInput>+ </div>+ );+};++const saleOptionRenderer = (choice: Sale) =>+ `${choice.first_name} ${choice.last_name}`;diff --git a/src/atomic-crm/contacts/ContactList.tsx b/src/atomic-crm/contacts/ContactList.tsxnew file mode 100644index 00000000..75c97303--- /dev/null+++ b/src/atomic-crm/contacts/ContactList.tsx@@ -0,0 +1,112 @@+import jsonExport from "jsonexport/dist";+import type { Exporter } from "ra-core";+import { downloadCSV, useGetIdentity, useListContext } from "ra-core";++import {+ CreateButton,+ ExportButton,+ List,+ SortButton,+} from "@/components/admin";+import { Card } from "@/components/ui/card";+import { Company, Contact, Sale, Tag } from "../types";+import { ContactEmpty } from "./ContactEmpty";+import { ContactImportButton } from "./ContactImportButton";+import { ContactListContent } from "./ContactListContent";+import { ContactListFilter } from "./ContactListFilter";+import { TopToolbar } from "../layout/TopToolbar";++export const ContactList = () => {+ const { identity } = useGetIdentity();++ if (!identity) return null;++ return (+ <List+ title={false}+ actions={<ContactListActions />}+ perPage={25}+ sort={{ field: "last_seen", order: "DESC" }}+ exporter={exporter}+ >+ <ContactListLayout />+ </List>+ );+};++const ContactListLayout = () => {+ const { data, isPending, filterValues } = useListContext();+ const { identity } = useGetIdentity();++ const hasFilters = filterValues && Object.keys(filterValues).length > 0;++ if (!identity || isPending) return null;++ if (!data?.length && !hasFilters) return <ContactEmpty />;++ return (+ <div className="flex flex-row gap-8">+ <ContactListFilter />+ <div className="w-full flex flex-col gap-4">+ <Card className="py-0">+ <ContactListContent />+ </Card>+ </div>+ </div>+ );+};++const ContactListActions = () => (+ <TopToolbar>+ <SortButton fields={["first_name", "last_name", "last_seen"]} />+ <ContactImportButton />+ <ExportButton exporter={exporter} />+ <CreateButton />+ </TopToolbar>+);++const exporter: Exporter<Contact> = async (records, fetchRelatedRecords) => {+ const companies = await fetchRelatedRecords<Company>(+ records,+ "company_id",+ "companies",+ );+ const sales = await fetchRelatedRecords<Sale>(records, "sales_id", "sales");+ const tags = await fetchRelatedRecords<Tag>(records, "tags", "tags");++ const contacts = records.map((contact) => {+ const exportedContact = {+ ...contact,+ company:+ contact.company_id != null+ ? companies[contact.company_id].name+ : undefined,+ sales: `${sales[contact.sales_id].first_name} ${+ sales[contact.sales_id].last_name+ }`,+ tags: contact.tags.map((tagId) => tags[tagId].name).join(", "),+ email_work: contact.email_jsonb?.find((email) => email.type === "Work")+ ?.email,+ email_home: contact.email_jsonb?.find((email) => email.type === "Home")+ ?.email,+ email_other: contact.email_jsonb?.find((email) => email.type === "Other")+ ?.email,+ email_jsonb: JSON.stringify(contact.email_jsonb),+ email_fts: undefined,+ phone_work: contact.phone_jsonb?.find((phone) => phone.type === "Work")+ ?.number,+ phone_home: contact.phone_jsonb?.find((phone) => phone.type === "Home")+ ?.number,+ phone_other: contact.phone_jsonb?.find((phone) => phone.type === "Other")+ ?.number,+ phone_jsonb: JSON.stringify(contact.phone_jsonb),+ phone_fts: undefined,+ };+ delete exportedContact.email_fts;+ delete exportedContact.phone_fts;+ return exportedContact;+ });+ return jsonExport(contacts, {}, (_err: any, csv: string) => {+ downloadCSV(csv, "contacts");+ });+};diff --git a/src/atomic-crm/contacts/ContactListContent.tsx b/src/atomic-crm/contacts/ContactListContent.tsxnew file mode 100644index 00000000..74fb8411--- /dev/null+++ b/src/atomic-crm/contacts/ContactListContent.tsx@@ -0,0 +1,106 @@+import { Checkbox } from "@/components/ui/checkbox";+import { useIsMobile } from "@/hooks/use-mobile";+import { formatRelative } from "date-fns";+import { RecordContextProvider, useListContext } from "ra-core";+import { Link } from "react-router";++import { ReferenceField, TextField } from "@/components/admin";+import { Skeleton } from "@/components/ui/skeleton";+import { MouseEvent, useCallback } from "react";+import { Status } from "../misc/Status";+import { Contact } from "../types";+import { Avatar } from "./Avatar";+import { TagsList } from "./TagsList";++export const ContactListContent = () => {+ const {+ data: contacts,+ error,+ isPending,+ onToggleItem,+ selectedIds,+ } = useListContext<Contact>();+ const isSmall = useIsMobile();++ // StopPropagation does not work for some reason on Checkbox, this handler is a workaround+ const handleLinkClick = useCallback(function handleLinkClick(+ e: MouseEvent<HTMLAnchorElement>+ ) {+ if (e.target instanceof HTMLButtonElement) {+ e.preventDefault();+ }+ }, []);++ if (isPending) {+ return <Skeleton className="w-full h-9" />;+ }++ if (error) {+ return null;+ }+ const now = Date.now();++ return (+ <div className="divide-y">+ {contacts.map((contact) => (+ <RecordContextProvider key={contact.id} value={contact}>+ <Link+ to={`/contacts/${contact.id}/show`}+ className="flex flex-row gap-4 items-center px-4 py-2 hover:bg-muted transition-colors first:rounded-t-xl last:rounded-b-xl"+ onClick={handleLinkClick}+ >+ <Checkbox+ className="cursor-pointer"+ checked={selectedIds.includes(contact.id)}+ onCheckedChange={() => onToggleItem(contact.id)}+ />+ <Avatar />+ <div className="flex-1 min-w-0">+ <div className="font-medium">+ {`${contact.first_name} ${contact.last_name ?? ""}`}+ </div>+ <div className="text-sm text-muted-foreground">+ {contact.title}+ {contact.title && contact.company_id != null && " at "}+ {contact.company_id != null && (+ <ReferenceField+ source="company_id"+ reference="companies"+ link={false}+ >+ <TextField source="name" />+ </ReferenceField>+ )}+ {contact.nb_tasks+ ? ` - ${contact.nb_tasks} task${+ contact.nb_tasks > 1 ? "s" : ""+ }`+ : ""}+ + <TagsList />+ </div>+ </div>+ {contact.last_seen && (+ <div className="text-right ml-4">+ <div+ className="text-sm text-muted-foreground"+ title={contact.last_seen}+ >+ {!isSmall && "last activity "}+ {formatRelative(contact.last_seen, now)}{" "}+ <Status status={contact.status} />+ </div>+ </div>+ )}+ </Link>+ </RecordContextProvider>+ ))}++ {contacts.length === 0 && (+ <div className="p-4">+ <div className="text-muted-foreground">No contacts found</div>+ </div>+ )}+ </div>+ );+};diff --git a/src/atomic-crm/contacts/ContactListFilter.tsx b/src/atomic-crm/contacts/ContactListFilter.tsxnew file mode 100644index 00000000..dc7997b3--- /dev/null+++ b/src/atomic-crm/contacts/ContactListFilter.tsx@@ -0,0 +1,117 @@+import { Badge } from "@/components/ui/badge";+import { endOfYesterday, startOfMonth, startOfWeek, subMonths } from "date-fns";+import { CheckSquare, Clock, Tag, TrendingUp, Users } from "lucide-react";+import { FilterLiveForm, useGetIdentity, useGetList } from "ra-core";++import { ToggleFilterButton, SearchInput } from "@/components/admin";+import { FilterCategory } from "../filters/FilterCategory";+import { Status } from "../misc/Status";+import { useConfigurationContext } from "../root/ConfigurationContext";++export const ContactListFilter = () => {+ const { noteStatuses } = useConfigurationContext();+ const { identity } = useGetIdentity();+ const { data } = useGetList("tags", {+ pagination: { page: 1, perPage: 10 },+ sort: { field: "name", order: "ASC" },+ });++ return (+ <div className="w-52 min-w-52 order-first pt-0.75 flex flex-col gap-4">+ <FilterLiveForm>+ <SearchInput source="q" placeholder="Search name, company..." />+ </FilterLiveForm>++ <FilterCategory label="Last activity" icon={<Clock />}>+ <ToggleFilterButton+ label="Today"+ value={{+ "last_seen@gte": endOfYesterday().toISOString(),+ "last_seen@lte": undefined,+ }}+ />+ <ToggleFilterButton+ label="This week"+ value={{+ "last_seen@gte": startOfWeek(new Date()).toISOString(),+ "last_seen@lte": undefined,+ }}+ />+ <ToggleFilterButton+ label="Before this week"+ value={{+ "last_seen@gte": undefined,+ "last_seen@lte": startOfWeek(new Date()).toISOString(),+ }}+ />+ <ToggleFilterButton+ label="Before this month"+ value={{+ "last_seen@gte": undefined,+ "last_seen@lte": startOfMonth(new Date()).toISOString(),+ }}+ />+ <ToggleFilterButton+ label="Before last month"+ value={{+ "last_seen@gte": undefined,+ "last_seen@lte": subMonths(+ startOfMonth(new Date()),+ 1,+ ).toISOString(),+ }}+ />+ </FilterCategory>++ <FilterCategory label="Status" icon={<TrendingUp />}>+ {noteStatuses.map((status) => (+ <ToggleFilterButton+ key={status.value}+ label={+ <>+ {status.label} <Status status={status.value} />+ </>+ }+ value={{ status: status.value }}+ />+ ))}+ </FilterCategory>++ <FilterCategory label="Tags" icon={<Tag />}>+ {data &&+ data.map((record) => (+ <ToggleFilterButton+ key={record.id}+ label={+ <Badge+ variant="secondary"+ className="text-xs cursor-pointer"+ style={{+ backgroundColor: record?.color,+ color: "white",+ }}+ >+ {record?.name}+ </Badge>+ }+ value={{ "tags@cs": `{${record.id}}` }}+ />+ ))}+ </FilterCategory>++ <FilterCategory icon={<CheckSquare className="h-4 w-4" />} label="Tasks">+ <ToggleFilterButton+ label={"With pending tasks"}+ value={{ "nb_tasks@gt": 0 }}+ />+ </FilterCategory>++ <FilterCategory+ icon={<Users className="h-4 w-4" />}+ label="Account Manager"+ >+ <ToggleFilterButton label={"Me"} value={{ sales_id: identity?.id }} />+ </FilterCategory>+ </div>+ );+};diff --git a/src/atomic-crm/contacts/ContactShow.tsx b/src/atomic-crm/contacts/ContactShow.tsxnew file mode 100644index 00000000..b943ee13--- /dev/null+++ b/src/atomic-crm/contacts/ContactShow.tsx@@ -0,0 +1,75 @@+import {+ ReferenceField,+ ReferenceManyField,+ TextField,+} from "@/components/admin";+import { Card, CardContent } from "@/components/ui/card";+import { ShowBase, useShowContext } from "ra-core";+import { CompanyAvatar } from "../companies/CompanyAvatar";+import { NoteCreate, NotesIterator } from "../notes";+import { Contact } from "../types";+import { Avatar } from "./Avatar";+import { ContactAside } from "./ContactAside";++export const ContactShow = () => (+ <ShowBase>+ <ContactShowContent />+ </ShowBase>+);++const ContactShowContent = () => {+ const { record, isPending } = useShowContext<Contact>();+ if (isPending || !record) return null;++ return (+ <div className="mt-2 mb-2 flex">+ <div className="flex-1">+ <Card>+ <CardContent>+ <div className="flex">+ <Avatar />+ <div className="ml-2 flex-1">+ <h5 className="text-xl font-semibold">+ {record.first_name} {record.last_name}+ </h5>+ <div className="inline-flex text-sm text-muted-foreground">+ {record.title} + {record.title && record.company_id != null && "at"}+ {record.company_id != null && (+ <ReferenceField+ source="company_id"+ reference="companies"+ link="show"+ >+ + <TextField source="name" />+ </ReferenceField>+ )}+ </div>+ </div>+ <div>+ <ReferenceField+ source="company_id"+ reference="companies"+ link="show"+ className="no-underline"+ >+ <CompanyAvatar />+ </ReferenceField>+ </div>+ </div>+ <ReferenceManyField+ target="contact_id"+ reference="contactNotes"+ sort={{ field: "date", order: "DESC" }}+ empty={<NoteCreate reference={"contacts"} />}+ >+ <NotesIterator reference="contacts" />+ </ReferenceManyField>+ </CardContent>+ </Card>+ </div>+ <ContactAside />+ </div>+ );+};diff --git a/src/atomic-crm/contacts/TagsList.tsx b/src/atomic-crm/contacts/TagsList.tsxnew file mode 100644index 00000000..d886add3--- /dev/null+++ b/src/atomic-crm/contacts/TagsList.tsx@@ -0,0 +1,32 @@+import { ReferenceArrayField, SingleFieldList } from "@/components/admin";+import { Badge } from "@/components/ui/badge";+import { cn } from "@/lib/utils";+import { useRecordContext } from "ra-core";++const ColoredBadge = (props: any) => {+ const record = useRecordContext();+ if (!record) return null;+ return (+ <Badge+ {...props}+ style={{ backgroundColor: record.color, border: 0 }}+ variant="outline"+ className={cn("text-white", props.className)}+ >+ {record.name}+ </Badge>+ );+};++export const TagsList = () => (+ <ReferenceArrayField+ className="inline-block"+ resource="contacts"+ source="tags"+ reference="tags"+ >+ <SingleFieldList>+ <ColoredBadge source="name" />+ </SingleFieldList>+ </ReferenceArrayField>+);diff --git a/src/atomic-crm/contacts/TagsListEdit.tsx b/src/atomic-crm/contacts/TagsListEdit.tsxnew file mode 100644index 00000000..d1c37770--- /dev/null+++ b/src/atomic-crm/contacts/TagsListEdit.tsx@@ -0,0 +1,157 @@+import { Badge } from "@/components/ui/badge";+import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { Edit, Plus } from "lucide-react";+import {+ Identifier,+ useGetList,+ useGetMany,+ useRecordContext,+ useUpdate,+} from "ra-core";+import * as React from "react";+import { useState } from "react";++import { TagChip } from "../tags/TagChip";+import { TagCreateModal } from "../tags/TagCreateModal";+import { Contact, Tag } from "../types";++export const TagsListEdit = () => {+ const record = useRecordContext<Contact>();+ const [open, setOpen] = useState(false);++ const { data: allTags, isPending: isPendingAllTags } = useGetList<Tag>(+ "tags",+ {+ pagination: { page: 1, perPage: 10 },+ sort: { field: "name", order: "ASC" },+ }+ );+ const { data: tags, isPending: isPendingRecordTags } = useGetMany<Tag>(+ "tags",+ { ids: record?.tags },+ { enabled: record && record.tags && record.tags.length > 0 }+ );+ const [update] = useUpdate<Contact>();++ const unselectedTags =+ allTags && record && allTags.filter((tag) => !record.tags.includes(tag.id));++ const handleTagAdd = (id: Identifier) => {+ if (!record) {+ throw new Error("No contact record found");+ }+ const tags = [...record.tags, id];+ update("contacts", {+ id: record.id,+ data: { tags },+ previousData: record,+ });+ };++ const handleTagDelete = async (id: Identifier) => {+ if (!record) {+ throw new Error("No contact record found");+ }+ const tags = record.tags.filter((tagId) => tagId !== id);+ await update("contacts", {+ id: record.id,+ data: { tags },+ previousData: record,+ });+ };++ const openTagCreateDialog = () => {+ setOpen(true);+ };++ const handleTagCreateClose = () => {+ setOpen(false);+ };++ const handleTagCreated = React.useCallback(+ async (tag: Tag) => {+ if (!record) {+ throw new Error("No contact record found");+ }++ await update(+ "contacts",+ {+ id: record.id,+ data: { tags: [...record.tags, tag.id] },+ previousData: record,+ },+ {+ onSuccess: () => {+ setOpen(false);+ },+ }+ );+ },+ [update, record]+ );++ if (isPendingRecordTags || isPendingAllTags) return null;++ return (+ <div className="flex flex-wrap gap-2">+ {tags?.map((tag) => (+ <div key={tag.id} className="mt-1 mb-1">+ <TagChip tag={tag} onUnlink={() => handleTagDelete(tag.id)} />+ </div>+ ))}++ <div className="mt-1">+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button variant="outline" size="sm" className="h-6 cursor-pointer">+ <Plus className="h-3 w-3 mr-1" />+ Add tag+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent>+ {unselectedTags?.map((tag) => (+ <DropdownMenuItem+ key={tag.id}+ onClick={() => handleTagAdd(tag.id)}+ >+ <Badge+ variant="secondary"+ className="text-xs"+ style={{+ backgroundColor: tag.color,+ color: "white",+ }}+ >+ {tag.name}+ </Badge>+ </DropdownMenuItem>+ ))}+ <DropdownMenuItem onClick={openTagCreateDialog}>+ <Button+ variant="ghost"+ size="sm"+ className="w-full justify-start p-0 cursor-pointer"+ >+ <Edit className="h-3 w-3 mr-2" />+ Create new tag+ </Button>+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>++ <TagCreateModal+ open={open}+ onClose={handleTagCreateClose}+ onSuccess={handleTagCreated}+ />+ </div>+ );+};diff --git a/src/contacts/contacts_export.csv b/src/atomic-crm/contacts/contacts_export.csvsimilarity index 100%rename from src/contacts/contacts_export.csvrename to src/atomic-crm/contacts/contacts_export.csvdiff --git a/src/atomic-crm/contacts/index.tsx b/src/atomic-crm/contacts/index.tsxnew file mode 100644index 00000000..53d11f0e--- /dev/null+++ b/src/atomic-crm/contacts/index.tsx@@ -0,0 +1,14 @@+import { Contact } from "../types";+import { ContactCreate } from "./ContactCreate";+import { ContactEdit } from "./ContactEdit";+import { ContactList } from "./ContactList";+import { ContactShow } from "./ContactShow";++export default {+ list: ContactList,+ show: ContactShow,+ edit: ContactEdit,+ create: ContactCreate,+ recordRepresentation: (record: Contact) =>+ record?.first_name + " " + record?.last_name,+};diff --git a/src/atomic-crm/contacts/useContactImport.tsx b/src/atomic-crm/contacts/useContactImport.tsxnew file mode 100644index 00000000..fee35a0a--- /dev/null+++ b/src/atomic-crm/contacts/useContactImport.tsx@@ -0,0 +1,204 @@+import type { DataProvider } from "ra-core";+import { useDataProvider, useGetIdentity } from "ra-core";+import { useCallback, useMemo } from "react";+import type { Company, Tag } from "../types";++export type ContactImportSchema = {+ first_name: string;+ last_name: string;+ gender: string;+ title: string;+ company: string;+ email_work: string;+ email_home: string;+ email_other: string;+ phone_work: string;+ phone_home: string;+ phone_other: string;+ background: string;+ avatar: string;+ first_seen: string;+ last_seen: string;+ has_newsletter: string;+ status: string;+ tags: string;+ linkedin_url: string;+};++export function useContactImport() {+ const today = new Date().toISOString();+ const user = useGetIdentity();+ const dataProvider = useDataProvider();++ // company cache to avoid creating the same company multiple times and costly roundtrips+ // Cache is dependent of dataProvider, so it's safe to use it as a dependency+ const companiesCache = useMemo(+ () => new Map<string, Company>(),+ // eslint-disable-next-line react-hooks/exhaustive-deps+ [dataProvider]+ );+ const getCompanies = useCallback(+ async (names: string[]) =>+ fetchRecordsWithCache<Company>(+ "companies",+ companiesCache,+ names,+ (name) => ({+ name,+ created_at: new Date().toISOString(),+ sales_id: user?.identity?.id,+ }),+ dataProvider+ ),+ [companiesCache, user?.identity?.id, dataProvider]+ );++ // Tags cache to avoid creating the same tag multiple times and costly roundtrips+ // Cache is dependent of dataProvider, so it's safe to use it as a dependency+ // eslint-disable-next-line react-hooks/exhaustive-deps+ const tagsCache = useMemo(() => new Map<string, Tag>(), [dataProvider]);+ const getTags = useCallback(+ async (names: string[]) =>+ fetchRecordsWithCache<Tag>(+ "tags",+ tagsCache,+ names,+ (name) => ({+ name,+ color: "#f9f9f9",+ }),+ dataProvider+ ),+ [tagsCache, dataProvider]+ );++ const processBatch = useCallback(+ async (batch: ContactImportSchema[]) => {+ const [companies, tags] = await Promise.all([+ getCompanies(+ batch.map((contact) => contact.company?.trim()).filter((name) => name)+ ),+ getTags(batch.flatMap((batch) => parseTags(batch.tags))),+ ]);++ await Promise.all(+ batch.map(+ async ({+ first_name,+ last_name,+ gender,+ title,+ email_work,+ email_home,+ email_other,+ phone_work,+ phone_home,+ phone_other,+ background,+ first_seen,+ last_seen,+ has_newsletter,+ status,+ company: companyName,+ tags: tagNames,+ linkedin_url,+ }) => {+ const email_jsonb = [+ { email: email_work, type: "Work" },+ { email: email_home, type: "Home" },+ { email: email_other, type: "Other" },+ ].filter(({ email }) => email);+ const phone_jsonb = [+ { number: phone_work, type: "Work" },+ { number: phone_home, type: "Home" },+ { number: phone_other, type: "Other" },+ ].filter(({ number }) => number);+ const company = companyName?.trim()+ ? companies.get(companyName.trim())+ : undefined;+ const tagList = parseTags(tagNames)+ .map((name) => tags.get(name))+ .filter((tag): tag is Tag => !!tag);++ return dataProvider.create("contacts", {+ data: {+ first_name,+ last_name,+ gender,+ title,+ email_jsonb,+ phone_jsonb,+ background,+ first_seen: first_seen+ ? new Date(first_seen).toISOString()+ : today,+ last_seen: last_seen+ ? new Date(last_seen).toISOString()+ : today,+ has_newsletter,+ status,+ company_id: company?.id,+ tags: tagList.map((tag) => tag.id),+ sales_id: user?.identity?.id,+ linkedin_url,+ },+ });+ }+ )+ );+ },+ [dataProvider, getCompanies, getTags, user?.identity?.id, today]+ );++ return processBatch;+}++const fetchRecordsWithCache = async function <T>(+ resource: string,+ cache: Map<string, T>,+ names: string[],+ getCreateData: (name: string) => Partial<T>,+ dataProvider: DataProvider+) {+ const trimmedNames = [...new Set(names.map((name) => name.trim()))];+ const uncachedRecordNames = trimmedNames.filter((name) => !cache.has(name));++ // check the backend for existing records+ if (uncachedRecordNames.length > 0) {+ const response = await dataProvider.getList(resource, {+ filter: {+ "name@in": `(${uncachedRecordNames+ .map((name) => `"${name}"`)+ .join(",")})`,+ },+ pagination: { page: 1, perPage: trimmedNames.length },+ sort: { field: "id", order: "ASC" },+ });+ for (const record of response.data) {+ cache.set(record.name.trim(), record);+ }+ }++ // create missing records in parallel+ await Promise.all(+ uncachedRecordNames.map(async (name) => {+ if (cache.has(name)) return;+ const response = await dataProvider.create(resource, {+ data: getCreateData(name),+ });+ cache.set(name, response.data);+ })+ );++ // now all records are in cache, return a map of all records+ return trimmedNames.reduce((acc, name) => {+ acc.set(name, cache.get(name) as T);+ return acc;+ }, new Map<string, T>());+};++const parseTags = (tags: string) =>+ tags+ ?.split(",")+ ?.map((tag: string) => tag.trim())+ ?.filter((tag: string) => tag) ?? [];diff --git a/src/atomic-crm/dashboard/Dashboard.tsx b/src/atomic-crm/dashboard/Dashboard.tsxnew file mode 100644index 00000000..1547814d--- /dev/null+++ b/src/atomic-crm/dashboard/Dashboard.tsx@@ -0,0 +1,65 @@+import { useGetList } from "ra-core";+import { Contact, ContactNote } from "../types";+import { DashboardActivityLog } from "./DashboardActivityLog";+import { DashboardStepper } from "./DashboardStepper";+import { DealsChart } from "./DealsChart";+import { HotContacts } from "./HotContacts";+import { TasksList } from "./TasksList";+import { Welcome } from "./Welcome";++export const Dashboard = () => {+ const {+ data: dataContact,+ total: totalContact,+ isPending: isPendingContact,+ } = useGetList<Contact>("contacts", {+ pagination: { page: 1, perPage: 1 },+ });++ const { total: totalContactNotes, isPending: isPendingContactNotes } =+ useGetList<ContactNote>("contactNotes", {+ pagination: { page: 1, perPage: 1 },+ });++ const { total: totalDeal, isPending: isPendingDeal } = useGetList<Contact>(+ "deals",+ {+ pagination: { page: 1, perPage: 1 },+ }+ );++ const isPending = isPendingContact || isPendingContactNotes || isPendingDeal;++ if (isPending) {+ return null;+ }++ if (!totalContact) {+ return <DashboardStepper step={1} />;+ }++ if (!totalContactNotes) {+ return <DashboardStepper step={2} contactId={dataContact?.[0]?.id} />;+ }++ return (+ <div className="grid grid-cols-1 md:grid-cols-12 gap-6 mt-1">+ <div className="md:col-span-3">+ <div className="flex flex-col gap-4">+ {import.meta.env.VITE_IS_DEMO === "true" ? <Welcome /> : null}+ <HotContacts />+ </div>+ </div>+ <div className="md:col-span-6">+ <div className="flex flex-col gap-6">+ {totalDeal ? <DealsChart /> : null}+ <DashboardActivityLog />+ </div>+ </div>++ <div className="md:col-span-3">+ <TasksList />+ </div>+ </div>+ );+};diff --git a/src/atomic-crm/dashboard/DashboardActivityLog.tsx b/src/atomic-crm/dashboard/DashboardActivityLog.tsxnew file mode 100644index 00000000..7171289d--- /dev/null+++ b/src/atomic-crm/dashboard/DashboardActivityLog.tsx@@ -0,0 +1,21 @@+import { Card } from "@/components/ui/card";+import { Clock } from "lucide-react";+import { ActivityLog } from "../activity/ActivityLog";++export function DashboardActivityLog() {+ return (+ <div className="flex flex-col">+ <div className="flex items-center mb-2">+ <div className="mr-3 flex">+ <Clock className="text-muted-foreground w-6 h-6" />+ </div>+ <h2 className="text-xl font-semibold text-muted-foreground">+ Latest Activity+ </h2>+ </div>+ <Card className="mb-2 p-4">+ <ActivityLog pageSize={10} />+ </Card>+ </div>+ );+}diff --git a/src/atomic-crm/dashboard/DashboardStepper.tsx b/src/atomic-crm/dashboard/DashboardStepper.tsxnew file mode 100644index 00000000..23b318e1--- /dev/null+++ b/src/atomic-crm/dashboard/DashboardStepper.tsx@@ -0,0 +1,71 @@+import { CreateButton } from "@/components/admin";+import { Button } from "@/components/ui/button";+import { Card, CardContent } from "@/components/ui/card";+import { Progress } from "@/components/ui/progress";+import { CheckCircle, Circle } from "lucide-react";+import { Identifier } from "ra-core";+import { Link } from "react-router";+import { ContactImportButton } from "../contacts/ContactImportButton";+import useAppBarHeight from "../misc/useAppBarHeight";++export const DashboardStepper = ({+ step,+ contactId,+}: {+ step: number;+ contactId?: Identifier;+}) => {+ const appbarHeight = useAppBarHeight();+ return (+ <div+ className="flex justify-center items-center"+ style={{+ height: `calc(100dvh - ${appbarHeight}px)`,+ }}+ >+ <Card className="w-full max-w-[600px]">+ <CardContent className="p-6">+ <div className="flex items-center justify-between mb-8">+ <h3 className="text-lg font-bold">What's next?</h3>+ <div className="w-[150px]">+ <Progress value={(step / 3) * 100} className="mb-2" />+ <div className="text-right text-sm">{step}/3 done</div>+ </div>+ </div>+ <div className="flex flex-col gap-12">+ <div className="flex gap-8 items-center">+ <CheckCircle className="text-green-600 w-5 h-5" />+ <h4 className="font-bold">Install Atomic CRM</h4>+ </div>+ <div className="flex gap-8 items-start">+ {step > 1 ? (+ <CheckCircle className="text-green-600 w-5 h-5 mt-1" />+ ) : (+ <Circle className="text-muted-foreground w-5 h-5 mt-1" />+ )}++ <div className="flex flex-col gap-4">+ <h4 className="font-bold">Add your first contact</h4>++ <div className="flex gap-8">+ <CreateButton label="New Contact" resource="contacts" />+ <ContactImportButton />+ </div>+ </div>+ </div>+ <div className="flex gap-8 items-start">+ <Circle className="text-muted-foreground w-5 h-5 mt-1" />+ <div className="flex flex-col gap-4">+ <h4 className="font-bold">Add your first note</h4>+ <p>Go to a contact page and add a note</p>+ <Button asChild disabled={step < 2} className="w-[100px]">+ <Link to={`/contacts/${contactId}/show`}>Add note</Link>+ </Button>+ </div>+ </div>+ </div>+ </CardContent>+ </Card>+ </div>+ );+};diff --git a/src/atomic-crm/dashboard/DealsChart.tsx b/src/atomic-crm/dashboard/DealsChart.tsxnew file mode 100644index 00000000..f44e83af--- /dev/null+++ b/src/atomic-crm/dashboard/DealsChart.tsx@@ -0,0 +1,202 @@+import { ResponsiveBar } from "@nivo/bar";+import { format, startOfMonth } from "date-fns";+import { DollarSign } from "lucide-react";+import { useGetList } from "ra-core";+import { memo, useMemo } from "react";++import { Deal } from "../types";++const multiplier = {+ opportunity: 0.2,+ "proposal-sent": 0.5,+ "in-negociation": 0.8,+ delayed: 0.3,+};++const threeMonthsAgo = new Date(+ new Date().setMonth(new Date().getMonth() - 6)+).toISOString();++const DEFAULT_LOCALE = "en-US";+const CURRENCY = "USD";++export const DealsChart = memo(() => {+ const acceptedLanguages = navigator+ ? navigator.languages || [navigator.language]+ : [DEFAULT_LOCALE];++ const { data, isPending } = useGetList<Deal>("deals", {+ pagination: { perPage: 100, page: 1 },+ sort: {+ field: "created_at",+ order: "ASC",+ },+ filter: {+ "created_at@gte": threeMonthsAgo,+ },+ });+ const months = useMemo(() => {+ if (!data) return [];+ const dealsByMonth = data.reduce((acc, deal) => {+ const month = startOfMonth(deal.created_at ?? new Date()).toISOString();+ if (!acc[month]) {+ acc[month] = [];+ }+ acc[month].push(deal);+ return acc;+ }, {} as any);++ const amountByMonth = Object.keys(dealsByMonth).map((month) => {+ return {+ date: format(month, "MMM"),+ won: dealsByMonth[month]+ .filter((deal: Deal) => deal.stage === "won")+ .reduce((acc: number, deal: Deal) => {+ acc += deal.amount;+ return acc;+ }, 0),+ pending: dealsByMonth[month]+ .filter((deal: Deal) => !["won", "lost"].includes(deal.stage))+ .reduce((acc: number, deal: Deal) => {+ // @ts-expect-error - multiplier type issue+ acc += deal.amount * multiplier[deal.stage];+ return acc;+ }, 0),+ lost: dealsByMonth[month]+ .filter((deal: Deal) => deal.stage === "lost")+ .reduce((acc: number, deal: Deal) => {+ acc -= deal.amount;+ return acc;+ }, 0),+ };+ });++ return amountByMonth;+ }, [data]);++ if (isPending) return null; // FIXME return skeleton instead+ const range = months.reduce(+ (acc, month) => {+ acc.min = Math.min(acc.min, month.lost);+ acc.max = Math.max(acc.max, month.won + month.pending);+ return acc;+ },+ { min: 0, max: 0 }+ );+ return (+ <div className="flex flex-col">+ <div className="flex items-center mb-4">+ <div className="mr-3 flex">+ <DollarSign className="text-muted-foreground w-6 h-6" />+ </div>+ <h2 className="text-xl font-semibold text-muted-foreground">+ Upcoming Deal Revenue+ </h2>+ </div>+ <div className="h-[400px]">+ <ResponsiveBar+ data={months}+ indexBy="date"+ keys={["won", "pending", "lost"]}+ colors={["#61cdbb", "#97e3d5", "#e25c3b"]}+ margin={{ top: 30, right: 50, bottom: 30, left: 0 }}+ padding={0.3}+ valueScale={{+ type: "linear",+ min: range.min * 1.2,+ max: range.max * 1.2,+ }}+ indexScale={{ type: "band", round: true }}+ enableGridX={true}+ enableGridY={false}+ enableLabel={false}+ tooltip={({ value, indexValue }) => (+ <div className="p-2 bg-secondary rounded shadow inline-flex items-center gap-1 text-secondary-foreground">+ <strong>{indexValue}: </strong> {value > 0 ? "+" : ""}+ {value.toLocaleString(acceptedLanguages.at(0) ?? DEFAULT_LOCALE, {+ style: "currency",+ currency: CURRENCY,+ })}+ </div>+ )}+ axisTop={{+ tickSize: 0,+ tickPadding: 12,+ style: {+ ticks: {+ text: {+ fill: "var(--color-muted-foreground)",+ },+ },+ legend: {+ text: {+ fill: "var(--color-muted-foreground)",+ },+ },+ },+ }}+ axisBottom={{+ legendPosition: "middle",+ legendOffset: 50,+ tickSize: 0,+ tickPadding: 12,+ style: {+ ticks: {+ text: {+ fill: "var(--color-muted-foreground)",+ },+ },+ legend: {+ text: {+ fill: "var(--color-muted-foreground)",+ },+ },+ },+ }}+ axisLeft={null}+ axisRight={{+ format: (v: any) => `${Math.abs(v / 1000)}k`,+ tickValues: 8,+ style: {+ ticks: {+ text: {+ fill: "var(--color-muted-foreground)",+ },+ },+ legend: {+ text: {+ fill: "var(--color-muted-foreground)",+ },+ },+ },+ }}+ markers={+ [+ {+ axis: "y",+ value: 0,+ lineStyle: { strokeOpacity: 0 },+ textStyle: { fill: "#2ebca6" },+ legend: "Won",+ legendPosition: "top-left",+ legendOrientation: "vertical",+ },+ {+ axis: "y",+ value: 0,+ lineStyle: {+ stroke: "#f47560",+ strokeWidth: 1,+ },+ textStyle: { fill: "#e25c3b" },+ legend: "Lost",+ legendPosition: "bottom-left",+ legendOrientation: "vertical",+ },+ ] as any+ }+ />+ </div>+ </div>+ );+});diff --git a/src/atomic-crm/dashboard/DealsPipeline.tsx b/src/atomic-crm/dashboard/DealsPipeline.tsxnew file mode 100644index 00000000..0e0daf6a--- /dev/null+++ b/src/atomic-crm/dashboard/DealsPipeline.tsx@@ -0,0 +1,91 @@+/**+ * This component displays the deals pipeline for the current user.+ * It's currently not used in the application but can be added to the dashboard.+ */++import { Card } from "@/components/ui/card";+import { DollarSign } from "lucide-react";+import { useGetIdentity, useGetList } from "ra-core";++import { ReferenceField } from "@/components/admin";+import { Link } from "react-router";+import { SimpleList } from "../simple-list/SimpleList";+import { CompanyAvatar } from "../companies/CompanyAvatar";+import { findDealLabel } from "../deals/deal";+import { useConfigurationContext } from "../root/ConfigurationContext";+import { Deal } from "../types";++export const DealsPipeline = () => {+ const { identity } = useGetIdentity();+ const { dealStages, dealPipelineStatuses } = useConfigurationContext();+ const { data, total, isPending } = useGetList<Deal>(+ "deals",+ {+ pagination: { page: 1, perPage: 10 },+ sort: { field: "last_seen", order: "DESC" },+ filter: { "stage@neq": "lost", sales_id: identity?.id },+ },+ { enabled: Number.isInteger(identity?.id) },+ );++ const getOrderedDeals = (data?: Deal[]): Deal[] | undefined => {+ if (!data) {+ return;+ }+ const deals: Deal[] = [];+ dealStages+ .filter((stage) => !dealPipelineStatuses.includes(stage.value))+ .forEach((stage) =>+ data+ .filter((deal) => deal.stage === stage.value)+ .forEach((deal) => deals.push(deal)),+ );+ return deals;+ };++ return (+ <>+ <div className="flex items-center mb-4">+ <div className="ml-8 mr-8 flex">+ <DollarSign className="text-muted-foreground w-6 h-6" />+ </div>+ <Link+ className="text-xl font-semibold text-muted-foreground hover:underline"+ to="/deals"+ >+ Deals Pipeline+ </Link>+ </div>+ <Card>+ <SimpleList<Deal>+ resource="deals"+ linkType="show"+ data={getOrderedDeals(data)}+ total={total}+ isPending={isPending}+ primaryText={(deal) => deal.name}+ secondaryText={(deal) =>+ `${deal.amount.toLocaleString("en-US", {+ notation: "compact",+ style: "currency",+ currency: "USD",+ currencyDisplay: "narrowSymbol",+ minimumSignificantDigits: 3,+ })} , ${findDealLabel(dealStages, deal.stage)}`+ }+ leftAvatar={(deal) => (+ <ReferenceField+ source="company_id"+ record={deal}+ reference="companies"+ resource="deals"+ link={false}+ >+ <CompanyAvatar width={20} height={20} />+ </ReferenceField>+ )}+ />+ </Card>+ </>+ );+};diff --git a/src/atomic-crm/dashboard/HotContacts.tsx b/src/atomic-crm/dashboard/HotContacts.tsxnew file mode 100644index 00000000..33ae9b26--- /dev/null+++ b/src/atomic-crm/dashboard/HotContacts.tsx@@ -0,0 +1,92 @@+import { Button } from "@/components/ui/button";+import { Card } from "@/components/ui/card";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { Plus, Users } from "lucide-react";+import { useGetIdentity, useGetList } from "ra-core";+import { Link } from "react-router";++import { SimpleList } from "../simple-list/SimpleList";+import { Avatar } from "../contacts/Avatar";+import { Contact } from "../types";++export const HotContacts = () => {+ const { identity } = useGetIdentity();+ const {+ data: contactData,+ total: contactTotal,+ isPending: contactsLoading,+ } = useGetList<Contact>(+ "contacts",+ {+ pagination: { page: 1, perPage: 10 },+ sort: { field: "last_seen", order: "DESC" },+ filter: { status: "hot", sales_id: identity?.id },+ },+ { enabled: Number.isInteger(identity?.id) },+ );++ return (+ <div className="flex flex-col gap-2">+ <div className="flex items-center">+ <div className="mr-3 flex">+ <Users className="text-muted-foreground w-6 h-6" />+ </div>+ <h2 className="text-xl font-semibold text-muted-foreground">+ Hot Contacts+ </h2>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ variant="ghost"+ size="sm"+ className="ml-auto text-muted-foreground"+ asChild+ >+ <Link to="/contacts/create">+ <Plus className="w-4 h-4 text-primary" />+ </Link>+ </Button>+ </TooltipTrigger>+ <TooltipContent>Create contact</TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ <Card className="py-0">+ <SimpleList<Contact>+ linkType="show"+ data={contactData}+ total={contactTotal}+ isPending={contactsLoading}+ resource="contacts"+ className="[&>li:first-child>a]:rounded-t-xl [&>li:last-child>a]:rounded-b-xl"+ primaryText={(contact) =>+ `${contact.first_name} ${contact.last_name}`+ }+ secondaryText={(contact) => (+ <>+ {contact.title} at {contact.company_name}+ </>+ )}+ leftAvatar={(contact) => <Avatar record={contact} />}+ empty={+ <div className="p-8">+ <p className="text-sm">+ Contacts with a "hot" status will appear here.+ </p>+ <p className="text-sm">+ Change the status of a contact by adding a note to that contact+ and clicking on "show options".+ </p>+ </div>+ }+ />+ </Card>+ </div>+ );+};diff --git a/src/atomic-crm/dashboard/LatestNotes.tsx b/src/atomic-crm/dashboard/LatestNotes.tsxnew file mode 100644index 00000000..11836fd6--- /dev/null+++ b/src/atomic-crm/dashboard/LatestNotes.tsx@@ -0,0 +1,115 @@+import { Card, CardContent } from "@/components/ui/card";+import { formatDistance } from "date-fns";+import { FileText } from "lucide-react";+import { useGetIdentity, useGetList } from "ra-core";++import { ReferenceField, TextField } from "@/components/admin";+import type { Contact, ContactNote } from "../types";++export const LatestNotes = () => {+ const { identity } = useGetIdentity();+ const { data: contactNotesData, isPending: contactNotesLoading } = useGetList(+ "contactNotes",+ {+ pagination: { page: 1, perPage: 5 },+ sort: { field: "date", order: "DESC" },+ filter: { sales_id: identity?.id },+ },+ { enabled: Number.isInteger(identity?.id) }+ );+ const { data: dealNotesData, isPending: dealNotesLoading } = useGetList(+ "dealNotes",+ {+ pagination: { page: 1, perPage: 5 },+ sort: { field: "date", order: "DESC" },+ filter: { sales_id: identity?.id },+ },+ { enabled: Number.isInteger(identity?.id) }+ );+ if (contactNotesLoading || dealNotesLoading) {+ return null;+ }+ // TypeScript guards+ if (!contactNotesData || !dealNotesData) {+ return null;+ }++ const allNotes = ([] as any[])+ .concat(+ contactNotesData.map((note) => ({+ ...note,+ type: "contactNote",+ })),+ dealNotesData.map((note) => ({ ...note, type: "dealNote" }))+ )+ .sort((a, b) => new Date(b.date).valueOf() - new Date(a.date).valueOf())+ .slice(0, 5);++ return (+ <div>+ <div className="flex items-center mb-4">+ <div className="ml-8 mr-8 flex">+ <FileText className="text-muted-foreground w-6 h-6" />+ </div>+ <h2 className="text-xl font-semibold text-muted-foreground">+ My Latest Notes+ </h2>+ </div>+ <Card>+ <CardContent>+ {allNotes.map((note) => (+ <div+ id={`${note.type}_${note.id}`}+ key={`${note.type}_${note.id}`}+ className="mb-8"+ >+ <div className="text-sm text-muted-foreground">+ on{" "}+ {note.type === "dealNote" ? (+ <Deal note={note} />+ ) : (+ <Contact note={note} />+ )}+ , added{" "}+ {formatDistance(note.date, new Date(), {+ addSuffix: true,+ })}+ </div>+ <div>+ <p className="text-sm line-clamp-3 overflow-hidden">+ {note.text}+ </p>+ </div>+ </div>+ ))}+ </CardContent>+ </Card>+ </div>+ );+};++const Deal = ({ note }: any) => (+ <>+ Deal{" "}+ <ReferenceField+ record={note}+ source="deal_id"+ reference="deals"+ link="show"+ >+ <TextField source="name" />+ </ReferenceField>+ </>+);++const Contact = ({ note }: any) => (+ <>+ Contact{" "}+ <ReferenceField<ContactNote, Contact>+ record={note}+ source="contact_id"+ reference="contacts"+ link="show"+ />+ </>+);diff --git a/src/atomic-crm/dashboard/TasksList.tsx b/src/atomic-crm/dashboard/TasksList.tsxnew file mode 100644index 00000000..df9b76dc--- /dev/null+++ b/src/atomic-crm/dashboard/TasksList.tsx@@ -0,0 +1,68 @@+import { Card } from "@/components/ui/card";+import {+ endOfToday,+ endOfTomorrow,+ endOfWeek,+ getDay,+ startOfToday,+} from "date-fns";+import { CheckSquare } from "lucide-react";+import { AddTask } from "../tasks/AddTask";+import { TasksListEmpty } from "./TasksListEmpty";+import { TasksListFilter } from "./TasksListFilter";++const today = new Date();+const todayDayOfWeek = getDay(today);+const isBeforeFriday = todayDayOfWeek < 5; // Friday is represented by 5+const startOfTodayDateISO = startOfToday().toISOString();+const endOfTodayDateISO = endOfToday().toISOString();+const endOfTomorrowDateISO = endOfTomorrow().toISOString();+const endOfWeekDateISO = endOfWeek(today, { weekStartsOn: 0 }).toISOString();++const taskFilters = {+ overdue: { "done_date@is": null, "due_date@lt": startOfTodayDateISO },+ today: {+ "done_date@is": null,+ "due_date@gte": startOfTodayDateISO,+ "due_date@lte": endOfTodayDateISO,+ },+ tomorrow: {+ "done_date@is": null,+ "due_date@gt": endOfTodayDateISO,+ "due_date@lt": endOfTomorrowDateISO,+ },+ thisWeek: {+ "done_date@is": null,+ "due_date@gte": endOfTomorrowDateISO,+ "due_date@lte": endOfWeekDateISO,+ },+ later: { "done_date@is": null, "due_date@gt": endOfWeekDateISO },+};++export const TasksList = () => {+ return (+ <div className="flex flex-col gap-2">+ <div className="flex items-center">+ <div className="mr-3 flex">+ <CheckSquare className="text-muted-foreground w-6 h-6" />+ </div>+ <h2 className="text-xl font-semibold text-muted-foreground flex-1">+ Upcoming Tasks+ </h2>+ <AddTask display="icon" selectContact />+ </div>+ <Card className="p-4 mb-2">+ <div className="flex flex-col gap-4">+ <TasksListEmpty />+ <TasksListFilter title="Overdue" filter={taskFilters.overdue} />+ <TasksListFilter title="Today" filter={taskFilters.today} />+ <TasksListFilter title="Tomorrow" filter={taskFilters.tomorrow} />+ {isBeforeFriday && (+ <TasksListFilter title="This week" filter={taskFilters.thisWeek} />+ )}+ <TasksListFilter title="Later" filter={taskFilters.later} />+ </div>+ </Card>+ </div>+ );+};diff --git a/src/atomic-crm/dashboard/TasksListEmpty.tsx b/src/atomic-crm/dashboard/TasksListEmpty.tsxnew file mode 100644index 00000000..ccd41fa8--- /dev/null+++ b/src/atomic-crm/dashboard/TasksListEmpty.tsx@@ -0,0 +1,22 @@+import { useGetIdentity, useGetList } from "ra-core";++export const TasksListEmpty = () => {+ const { identity } = useGetIdentity();++ const { total } = useGetList(+ "tasks",+ {+ pagination: { page: 1, perPage: 1 },+ filter: {+ sales_id: identity?.id,+ },+ },+ { enabled: !!identity }+ );++ if (total) return null;++ return (+ <p className="text-sm">Tasks added to your contacts will appear here.</p>+ );+};diff --git a/src/atomic-crm/dashboard/TasksListFilter.tsx b/src/atomic-crm/dashboard/TasksListFilter.tsxnew file mode 100644index 00000000..aee1a953--- /dev/null+++ b/src/atomic-crm/dashboard/TasksListFilter.tsx@@ -0,0 +1,72 @@+import {+ ListContextProvider,+ ResourceContextProvider,+ useGetIdentity,+ useGetList,+ useList,+} from "ra-core";++import { TasksIterator } from "../tasks/TasksIterator";++export const TasksListFilter = ({+ title,+ filter,+}: {+ title: string;+ filter: any;+}) => {+ const { identity } = useGetIdentity();++ const {+ data: tasks,+ total,+ isPending,+ } = useGetList(+ "tasks",+ {+ pagination: { page: 1, perPage: 100 },+ sort: { field: "due_date", order: "ASC" },+ filter: {+ ...filter,+ sales_id: identity?.id,+ },+ },+ { enabled: !!identity }+ );++ const listContext = useList({+ data: tasks,+ isPending,+ resource: "tasks",+ perPage: 5,+ });++ if (isPending || !tasks || !total) return null;++ return (+ <div className="flex flex-col gap-2">+ <p className="text-xs uppercase tracking-wider text-muted-foreground font-medium mb-2">+ {title}+ </p>+ <ResourceContextProvider value="tasks">+ <ListContextProvider value={listContext}>+ <TasksIterator showContact />+ </ListContextProvider>+ </ResourceContextProvider>+ {total > listContext.perPage && (+ <div className="flex justify-center">+ <a+ href="#"+ onClick={(e) => {+ listContext.setPerPage(listContext.perPage + 10);+ e.preventDefault();+ }}+ className="text-sm underline hover:no-underline"+ >+ Load more+ </a>+ </div>+ )}+ </div>+ );+};diff --git a/src/atomic-crm/dashboard/Welcome.tsx b/src/atomic-crm/dashboard/Welcome.tsxnew file mode 100644index 00000000..ecadb143--- /dev/null+++ b/src/atomic-crm/dashboard/Welcome.tsx@@ -0,0 +1,41 @@+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";++export const Welcome = () => (+ <Card>+ <CardHeader className="px-4">+ <CardTitle>Your CRM Starter Kit</CardTitle>+ </CardHeader>+ <CardContent className="px-4">+ <p className="text-sm mb-4">+ <a+ href="https://marmelab.com/atomic-crm"+ className="underline hover:no-underline"+ >+ Atomic CRM+ </a>{" "}+ is a template designed to help you quickly build your own CRM.+ </p>+ <p className="text-sm mb-4">+ This demo runs on a mock API, so you can explore and modify the data. It+ resets on reload. The full version uses Supabase for the backend.+ </p>+ <p className="text-sm">+ Powered by{" "}+ <a+ href="https://marmelab.com/shadcn-admin-kit"+ className="underline hover:no-underline"+ >+ shadcn-admin-kit+ </a>+ , Atomic CRM is fully open-source. You can find the code at{" "}+ <a+ href="https://github.com/marmelab/atomic-crm"+ className="underline hover:no-underline"+ >+ marmelab/atomic-crm+ </a>+ .+ </p>+ </CardContent>+ </Card>+);diff --git a/src/atomic-crm/deals/ContactList.tsx b/src/atomic-crm/deals/ContactList.tsxnew file mode 100644index 00000000..4d23be9a--- /dev/null+++ b/src/atomic-crm/deals/ContactList.tsx@@ -0,0 +1,30 @@+import { useListContext } from "ra-core";+import { Link as RouterLink } from "react-router";+import { Avatar } from "../contacts/Avatar";++export const ContactList = () => {+ const { data, error, isPending } = useListContext();+ if (isPending || error) return <div className="h-8" />;+ return (+ <div className="flex flex-row flex-wrap gap-4 mt-4">+ {data.map((contact) => (+ <div className="flex flex-row gap-4 items-center" key={contact.id}>+ <Avatar record={contact} />+ <div className="flex flex-col">+ <RouterLink+ to={`/contacts/${contact.id}/show`}+ className="text-sm hover:underline"+ >+ {contact.first_name} {contact.last_name}+ </RouterLink>+ <span className="text-xs text-muted-foreground">+ {contact.title}+ {contact.title && contact.company_name && " at "}+ {contact.company_name}+ </span>+ </div>+ </div>+ ))}+ </div>+ );+};diff --git a/src/atomic-crm/deals/DealArchivedList.tsx b/src/atomic-crm/deals/DealArchivedList.tsxnew file mode 100644index 00000000..3aa7b5bd--- /dev/null+++ b/src/atomic-crm/deals/DealArchivedList.tsx@@ -0,0 +1,104 @@+/* eslint-disable react-refresh/only-export-components */+import { Button } from "@/components/ui/button";+import { Dialog, DialogContent, DialogTitle } from "@/components/ui/dialog";+import { useGetIdentity, useGetList } from "ra-core";+import { useEffect, useState } from "react";+import { Deal } from "../types";+import { DealCardContent } from "./DealCard";++export const DealArchivedList = () => {+ const { identity } = useGetIdentity();+ const {+ data: archivedLists,+ total,+ isPending,+ } = useGetList("deals", {+ pagination: { page: 1, perPage: 1000 },+ sort: { field: "archived_at", order: "DESC" },+ filter: { "[email protected]": null },+ });+ const [openDialog, setOpenDialog] = useState(false);++ useEffect(() => {+ if (!isPending && total === 0) {+ setOpenDialog(false);+ }+ }, [isPending, total]);++ useEffect(() => {+ setOpenDialog(false);+ }, [archivedLists]);++ if (!identity || isPending || !total || !archivedLists) return null;++ // Group archived lists by date+ const archivedListsByDate: { [date: string]: Deal[] } = archivedLists.reduce(+ (acc, deal) => {+ const date = new Date(deal.archived_at).toDateString();+ if (!acc[date]) {+ acc[date] = [];+ }+ acc[date].push(deal);+ return acc;+ },+ {} as { [date: string]: Deal[] }+ );++ return (+ <div className="w-full flex flex-row items-center justify-center">+ <Button+ variant="ghost"+ onClick={() => setOpenDialog(true)}+ className="my-4"+ >+ View archived deals+ </Button>+ <Dialog open={openDialog} onOpenChange={() => setOpenDialog(false)}>+ <DialogContent className="lg:max-w-4xl overflow-y-auto max-h-9/10 top-1/20 translate-y-0">+ <DialogTitle>Archived Deals</DialogTitle>+ <div className="flex flex-col gap-8">+ {Object.entries(archivedListsByDate).map(([date, deals]) => (+ <div key={date} className="flex flex-col gap-4">+ <h4 className="font-bold">{getRelativeTimeString(date)}</h4>+ <div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-8">+ {deals.map((deal: Deal) => (+ <div key={deal.id}>+ <DealCardContent deal={deal} />+ </div>+ ))}+ </div>+ </div>+ ))}+ </div>+ </DialogContent>+ </Dialog>+ </div>+ );+};++export function getRelativeTimeString(dateString: string): string {+ const date = new Date(dateString);+ date.setHours(0, 0, 0, 0);++ const today = new Date();+ today.setHours(0, 0, 0, 0);++ const diff = date.getTime() - today.getTime();+ const unitDiff = Math.round(diff / (1000 * 60 * 60 * 24));++ // Check if the date is more than one week old+ if (Math.abs(unitDiff) > 7) {+ return new Intl.DateTimeFormat(undefined, {+ day: "numeric",+ month: "long",+ }).format(date);+ }++ // Intl.RelativeTimeFormat for dates within the last week+ const rtf = new Intl.RelativeTimeFormat(undefined, { numeric: "auto" });+ return ucFirst(rtf.format(unitDiff, "day"));+}++function ucFirst(str: string): string {+ return str.charAt(0).toUpperCase() + str.slice(1);+}diff --git a/src/atomic-crm/deals/DealCard.tsx b/src/atomic-crm/deals/DealCard.tsxnew file mode 100644index 00000000..b9860ac1--- /dev/null+++ b/src/atomic-crm/deals/DealCard.tsx@@ -0,0 +1,77 @@+import { ReferenceField } from "@/components/admin";+import { Card, CardContent } from "@/components/ui/card";+import { Draggable } from "@hello-pangea/dnd";+import { useRedirect } from "ra-core";+import { CompanyAvatar } from "../companies/CompanyAvatar";+import { Deal } from "../types";++export const DealCard = ({ deal, index }: { deal: Deal; index: number }) => {+ if (!deal) return null;++ return (+ <Draggable draggableId={String(deal.id)} index={index}>+ {(provided, snapshot) => (+ <DealCardContent provided={provided} snapshot={snapshot} deal={deal} />+ )}+ </Draggable>+ );+};++export const DealCardContent = ({+ provided,+ snapshot,+ deal,+}: {+ provided?: any;+ snapshot?: any;+ deal: Deal;+}) => {+ const redirect = useRedirect();+ const handleClick = () => {+ redirect(`/deals/${deal.id}/show`, undefined, undefined, undefined, {+ _scrollToTop: false,+ });+ };++ return (+ <div+ className="cursor-pointer"+ {...provided?.draggableProps}+ {...provided?.dragHandleProps}+ ref={provided?.innerRef}+ onClick={handleClick}+ >+ <Card+ className={`py-4 transition-all duration-200 ${+ snapshot?.isDragging+ ? "opacity-90 transform rotate-1 shadow-lg"+ : "shadow-sm hover:shadow-md"+ }`}+ >+ <CardContent className="px-4 flex">+ <ReferenceField+ source="company_id"+ record={deal}+ reference="companies"+ link={false}+ >+ <CompanyAvatar width={20} height={20} />+ </ReferenceField>+ <div className="ml-3">+ <p className="text-sm font-medium mb-2">{deal.name}</p>+ <p className="text-xs text-muted-foreground">+ {deal.amount.toLocaleString("en-US", {+ notation: "compact",+ style: "currency",+ currency: "USD",+ currencyDisplay: "narrowSymbol",+ minimumSignificantDigits: 3,+ })}+ {deal.category ? `, ${deal.category}` : ""}+ </p>+ </div>+ </CardContent>+ </Card>+ </div>+ );+};diff --git a/src/atomic-crm/deals/DealColumn.tsx b/src/atomic-crm/deals/DealColumn.tsxnew file mode 100644index 00000000..e7bddc1a--- /dev/null+++ b/src/atomic-crm/deals/DealColumn.tsx@@ -0,0 +1,52 @@+import { Droppable } from "@hello-pangea/dnd";++import { useConfigurationContext } from "../root/ConfigurationContext";+import { Deal } from "../types";+import { findDealLabel } from "./deal";+import { DealCard } from "./DealCard";++export const DealColumn = ({+ stage,+ deals,+}: {+ stage: string;+ deals: Deal[];+}) => {+ const totalAmount = deals.reduce((sum, deal) => sum + deal.amount, 0);++ const { dealStages } = useConfigurationContext();+ return (+ <div className="flex-1 pb-8">+ <div className="flex flex-col items-center">+ <h3 className="text-base font-medium">+ {findDealLabel(dealStages, stage)}+ </h3>+ <p className="text-sm text-muted-foreground">+ {totalAmount.toLocaleString("en-US", {+ notation: "compact",+ style: "currency",+ currency: "USD",+ currencyDisplay: "narrowSymbol",+ minimumSignificantDigits: 3,+ })}+ </p>+ </div>+ <Droppable droppableId={stage}>+ {(droppableProvided, snapshot) => (+ <div+ ref={droppableProvided.innerRef}+ {...droppableProvided.droppableProps}+ className={`flex flex-col rounded-2xl mt-2 gap-2 ${+ snapshot.isDraggingOver ? "bg-muted" : ""+ }`}+ >+ {deals.map((deal, index) => (+ <DealCard key={deal.id} deal={deal} index={index} />+ ))}+ {droppableProvided.placeholder}+ </div>+ )}+ </Droppable>+ </div>+ );+};diff --git a/src/atomic-crm/deals/DealCreate.tsx b/src/atomic-crm/deals/DealCreate.tsxnew file mode 100644index 00000000..3d6dc183--- /dev/null+++ b/src/atomic-crm/deals/DealCreate.tsx@@ -0,0 +1,94 @@+import { Create } from "@/components/admin";+import { SaveButton } from "@/components/admin";+import { FormToolbar } from "@/components/admin";+import { Dialog, DialogContent } from "@/components/ui/dialog";+import { useQueryClient } from "@tanstack/react-query";+import {+ Form,+ GetListResult,+ useDataProvider,+ useGetIdentity,+ useListContext,+ useRedirect,+} from "ra-core";+import { Deal } from "../types";+import { DealInputs } from "./DealInputs";++export const DealCreate = ({ open }: { open: boolean }) => {+ const redirect = useRedirect();+ const dataProvider = useDataProvider();+ const { data: allDeals } = useListContext<Deal>();++ const handleClose = () => {+ redirect("/deals");+ };++ const queryClient = useQueryClient();++ const onSuccess = async (deal: Deal) => {+ if (!allDeals) {+ redirect("/deals");+ return;+ }+ // increase the index of all deals in the same stage as the new deal+ // first, get the list of deals in the same stage+ const deals = allDeals.filter(+ (d: Deal) => d.stage === deal.stage && d.id !== deal.id,+ );+ // update the actual deals in the database+ await Promise.all(+ deals.map(async (oldDeal) =>+ dataProvider.update("deals", {+ id: oldDeal.id,+ data: { index: oldDeal.index + 1 },+ previousData: oldDeal,+ }),+ ),+ );+ // refresh the list of deals in the cache as we used dataProvider.update(),+ // which does not update the cache+ const dealsById = deals.reduce(+ (acc, d) => ({+ ...acc,+ [d.id]: { ...d, index: d.index + 1 },+ }),+ {} as { [key: string]: Deal },+ );+ const now = Date.now();+ queryClient.setQueriesData<GetListResult | undefined>(+ { queryKey: ["deals", "getList"] },+ (res) => {+ if (!res) return res;+ return {+ ...res,+ data: res.data.map((d: Deal) => dealsById[d.id] || d),+ };+ },+ { updatedAt: now },+ );+ redirect("/deals");+ };++ const { identity } = useGetIdentity();++ return (+ <Dialog open={open} onOpenChange={() => handleClose()}>+ <DialogContent className="lg:max-w-4xl overflow-y-auto max-h-9/10 top-1/20 translate-y-0">+ <Create resource="deals" mutationOptions={{ onSuccess }}>+ <Form+ defaultValues={{+ sales_id: identity?.id,+ contact_ids: [],+ index: 0,+ }}+ >+ <DealInputs />+ <FormToolbar>+ <SaveButton />+ </FormToolbar>+ </Form>+ </Create>+ </DialogContent>+ </Dialog>+ );+};diff --git a/src/atomic-crm/deals/DealEdit.tsx b/src/atomic-crm/deals/DealEdit.tsxnew file mode 100644index 00000000..38888beb--- /dev/null+++ b/src/atomic-crm/deals/DealEdit.tsx@@ -0,0 +1,91 @@+import { DeleteButton, ReferenceField } from "@/components/admin";+import { SaveButton } from "@/components/admin";+import { FormToolbar } from "@/components/admin";+import { Button } from "@/components/ui/button";+import { Dialog, DialogContent, DialogTitle } from "@/components/ui/dialog";+import {+ EditBase,+ Form,+ useNotify,+ useRecordContext,+ useRedirect,+} from "ra-core";+import { Link } from "react-router";+import { CompanyAvatar } from "../companies/CompanyAvatar";+import { Deal } from "../types";+import { DealInputs } from "./DealInputs";++export const DealEdit = ({ open, id }: { open: boolean; id?: string }) => {+ const redirect = useRedirect();+ const notify = useNotify();++ const handleClose = () => {+ redirect("/deals", undefined, undefined, undefined, {+ _scrollToTop: false,+ });+ };++ return (+ <Dialog open={open} onOpenChange={() => handleClose()}>+ <DialogContent className="lg:max-w-4xl overflow-y-auto max-h-9/10 top-1/20 translate-y-0">+ {id ? (+ <EditBase+ id={id}+ mutationMode="pessimistic"+ mutationOptions={{+ onSuccess: () => {+ notify("Deal updated");+ redirect(`/deals/${id}/show`, undefined, undefined, undefined, {+ _scrollToTop: false,+ });+ },+ }}+ >+ <EditHeader />+ <Form>+ <DealInputs />+ <EditToolbar />+ </Form>+ </EditBase>+ ) : null}+ </DialogContent>+ </Dialog>+ );+};++function EditHeader() {+ const deal = useRecordContext<Deal>();+ if (!deal) {+ return null;+ }++ return (+ <DialogTitle className="pb-0">+ <div className="flex items-center justify-between space-x-4">+ <div className="flex items-center gap-8">+ <ReferenceField source="company_id" reference="companies" link="show">+ <CompanyAvatar />+ </ReferenceField>+ <h3 className="text-lg font-semibold">Edit {deal.name} deal</h3>+ </div>++ <div className="flex space-x-4 pr-12">+ <Button asChild variant="outline" className="h-9">+ <Link to={`/deals/${deal.id}/show`}>Back to deal</Link>+ </Button>+ </div>+ </div>+ </DialogTitle>+ );+}++function EditToolbar() {+ return (+ <FormToolbar>+ <div className="flex-1 flex justify-between">+ <DeleteButton />+ <SaveButton />+ </div>+ </FormToolbar>+ );+}diff --git a/src/atomic-crm/deals/DealEmpty.tsx b/src/atomic-crm/deals/DealEmpty.tsxnew file mode 100644index 00000000..d9427437--- /dev/null+++ b/src/atomic-crm/deals/DealEmpty.tsx@@ -0,0 +1,62 @@+import { CreateButton } from "@/components/admin";+import { Progress } from "@/components/ui/progress";+import { useGetList } from "ra-core";+import { matchPath, useLocation } from "react-router";+import { Link } from "react-router";+import useAppBarHeight from "../misc/useAppBarHeight";+import { Contact } from "../types";+import { DealCreate } from "./DealCreate";++export const DealEmpty = ({ children }: { children?: React.ReactNode }) => {+ const location = useLocation();+ const matchCreate = matchPath("/deals/create", location.pathname);+ const appbarHeight = useAppBarHeight();++ // get Contact data+ const { data: contacts, isPending: contactsLoading } = useGetList<Contact>(+ "contacts",+ {+ pagination: { page: 1, perPage: 1 },+ }+ );++ if (contactsLoading) return <Progress value={50} />;++ return (+ <div+ className="flex flex-col justify-center items-center gap-12"+ style={{+ height: `calc(100dvh - ${appbarHeight}px)`,+ }}+ >+ <img src="./img/empty.svg" alt="No deals found" />+ {contacts && contacts.length > 0 ? (+ <>+ <div className="flex flex-col items-center gap-0">+ <h3 className="text-lg font-bold">No deals found</h3>+ <p className="text-sm text-center text-muted-foreground mb-4">+ It seems your deal list is empty.+ </p>+ </div>+ <div className="flex space-x-8">+ <CreateButton label="Create deal" />+ </div>+ <DealCreate open={!!matchCreate} />+ {children}+ </>+ ) : (+ <div className="flex flex-col items-center gap-0">+ <h3 className="text-lg font-bold">No deals found</h3>+ <p className="text-sm text-center text-muted-foreground mb-4">+ It seems your contact list is empty.+ <br />+ <Link to="/contacts/create" className="hover:underline">+ Add your first contact+ </Link>{" "}+ before creating a deal.+ </p>+ </div>+ )}+ </div>+ );+};diff --git a/src/atomic-crm/deals/DealInputs.tsx b/src/atomic-crm/deals/DealInputs.tsxnew file mode 100644index 00000000..09895d08--- /dev/null+++ b/src/atomic-crm/deals/DealInputs.tsx@@ -0,0 +1,109 @@+import {+ AutocompleteArrayInput,+ AutocompleteInput,+ ReferenceArrayInput,+ ReferenceInput,+ TextInput,+ NumberInput,+ SelectInput,+} from "@/components/admin";+import { Separator } from "@/components/ui/separator";+import { useIsMobile } from "@/hooks/use-mobile";+import { required } from "ra-core";+import { contactOptionText } from "../misc/ContactOption";+import { useConfigurationContext } from "../root/ConfigurationContext";++export const DealInputs = () => {+ const isMobile = useIsMobile();+ return (+ <div className="flex flex-col gap-8">+ <DealInfoInputs />++ <div className={`flex gap-6 ${isMobile ? "flex-col" : "flex-row"}`}>+ <DealLinkedToInputs />+ <Separator orientation={isMobile ? "horizontal" : "vertical"} />+ <DealMiscInputs />+ </div>+ </div>+ );+};++const DealInfoInputs = () => {+ return (+ <div className="flex flex-col gap-4 flex-1">+ <TextInput+ source="name"+ label="Deal name"+ validate={required()}+ helperText={false}+ />+ <TextInput source="description" multiline rows={3} helperText={false} />+ </div>+ );+};++const DealLinkedToInputs = () => {+ return (+ <div className="flex flex-col gap-4 flex-1">+ <h3 className="text-base font-medium">Linked to</h3>+ <ReferenceInput source="company_id" reference="companies">+ <AutocompleteInput+ optionText="name"+ validate={required()}+ helperText={false}+ />+ </ReferenceInput>++ <ReferenceArrayInput source="contact_ids" reference="contacts_summary">+ <AutocompleteArrayInput+ label="Contacts"+ optionText={contactOptionText}+ helperText={false}+ validate={required()}+ />+ </ReferenceArrayInput>+ </div>+ );+};++const DealMiscInputs = () => {+ const { dealStages, dealCategories } = useConfigurationContext();+ return (+ <div className="flex flex-col gap-4 flex-1">+ <h3 className="text-base font-medium">Misc</h3>++ <SelectInput+ source="category"+ label="Category"+ choices={dealCategories.map((type) => ({+ id: type,+ name: type,+ }))}+ helperText={false}+ />+ <NumberInput+ source="amount"+ defaultValue={0}+ helperText={false}+ validate={required()}+ />+ <TextInput+ validate={required()}+ source="expected_closing_date"+ helperText={false}+ type="date"+ defaultValue={new Date().toISOString().split("T")[0]}+ />+ <SelectInput+ source="stage"+ choices={dealStages.map((stage) => ({+ id: stage.value,+ name: stage.label,+ }))}+ defaultValue="opportunity"+ helperText={false}+ validate={required()}+ />+ </div>+ );+};diff --git a/src/atomic-crm/deals/DealList.tsx b/src/atomic-crm/deals/DealList.tsxnew file mode 100644index 00000000..9b4df02b--- /dev/null+++ b/src/atomic-crm/deals/DealList.tsx@@ -0,0 +1,118 @@+import {+ AutocompleteInput,+ CreateButton,+ ExportButton,+ List,+ ReferenceInput,+ FilterButton,+ SearchInput,+ SelectInput,+ Breadcrumb,+ BreadcrumbItem,+ BreadcrumbPage,+} from "@/components/admin";+import {+ Translate,+ useGetIdentity,+ useListContext,+ useGetResourceLabel,+} from "ra-core";+import { Link, matchPath, useLocation } from "react-router";++import { useConfigurationContext } from "../root/ConfigurationContext";+import { TopToolbar } from "../layout/TopToolbar";+import { DealArchivedList } from "./DealArchivedList";+import { DealCreate } from "./DealCreate";+import { DealEdit } from "./DealEdit";+import { DealEmpty } from "./DealEmpty";+import { DealListContent } from "./DealListContent";+import { DealShow } from "./DealShow";+import { OnlyMineInput } from "./OnlyMineInput";++const DealList = () => {+ const { identity } = useGetIdentity();+ const getResourceLabel = useGetResourceLabel();+ const resourceLabel = getResourceLabel("deals", 2);+ const { dealCategories } = useConfigurationContext();++ if (!identity) return null;++ const dealFilters = [+ <SearchInput source="q" alwaysOn />,+ <ReferenceInput source="company_id" reference="companies">+ <AutocompleteInput label={false} placeholder="Company" />+ </ReferenceInput>,+ <SelectInput+ source="category"+ emptyText="Category"+ choices={dealCategories.map((type) => ({ id: type, name: type }))}+ />,+ <OnlyMineInput source="sales_id" alwaysOn />,+ ];++ return (+ <List+ perPage={100}+ filter={{+ "archived_at@is": null,+ }}+ title={false}+ sort={{ field: "index", order: "DESC" }}+ filters={dealFilters}+ actions={<DealActions />}+ >+ <Breadcrumb>+ <BreadcrumbItem>+ <Link to="/">+ <Translate i18nKey="ra.page.dashboard">Home</Translate>+ </Link>+ </BreadcrumbItem>+ <BreadcrumbPage>{resourceLabel}</BreadcrumbPage>+ </Breadcrumb>+ <DealLayout />+ </List>+ );+};++const DealLayout = () => {+ const location = useLocation();+ const matchCreate = matchPath("/deals/create", location.pathname);+ const matchShow = matchPath("/deals/:id/show", location.pathname);+ const matchEdit = matchPath("/deals/:id", location.pathname);++ const { data, isPending, filterValues } = useListContext();+ const hasFilters = filterValues && Object.keys(filterValues).length > 0;++ if (isPending) return null;+ if (!data?.length && !hasFilters)+ return (+ <>+ <DealEmpty>+ <DealShow open={!!matchShow} id={matchShow?.params.id} />+ <DealArchivedList />+ </DealEmpty>+ </>+ );++ return (+ <div className="w-full">+ <DealListContent />+ <DealArchivedList />+ <DealCreate open={!!matchCreate} />+ <DealEdit open={!!matchEdit && !matchCreate} id={matchEdit?.params.id} />+ <DealShow open={!!matchShow} id={matchShow?.params.id} />+ </div>+ );+};++const DealActions = () => {+ return (+ <TopToolbar>+ <FilterButton />+ <ExportButton />+ <CreateButton label="New Deal" />+ </TopToolbar>+ );+};++export default DealList;diff --git a/src/atomic-crm/deals/DealListContent.tsx b/src/atomic-crm/deals/DealListContent.tsxnew file mode 100644index 00000000..91014c1c--- /dev/null+++ b/src/atomic-crm/deals/DealListContent.tsx@@ -0,0 +1,244 @@+import { DragDropContext, OnDragEndResponder } from "@hello-pangea/dnd";+import isEqual from "lodash/isEqual";+import { DataProvider, useDataProvider, useListContext } from "ra-core";+import { useEffect, useState } from "react";++import { useConfigurationContext } from "../root/ConfigurationContext";+import { Deal } from "../types";+import { DealColumn } from "./DealColumn";+import { DealsByStage, getDealsByStage } from "./stages";++export const DealListContent = () => {+ const { dealStages } = useConfigurationContext();+ const { data: unorderedDeals, isPending, refetch } = useListContext<Deal>();+ const dataProvider = useDataProvider();++ const [dealsByStage, setDealsByStage] = useState<DealsByStage>(+ getDealsByStage([], dealStages)+ );++ useEffect(() => {+ if (unorderedDeals) {+ const newDealsByStage = getDealsByStage(unorderedDeals, dealStages);+ if (!isEqual(newDealsByStage, dealsByStage)) {+ setDealsByStage(newDealsByStage);+ }+ }+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [unorderedDeals]);++ if (isPending) return null;++ const onDragEnd: OnDragEndResponder = (result) => {+ const { destination, source } = result;++ if (!destination) {+ return;+ }++ if (+ destination.droppableId === source.droppableId &&+ destination.index === source.index+ ) {+ return;+ }++ const sourceStage = source.droppableId;+ const destinationStage = destination.droppableId;+ const sourceDeal = dealsByStage[sourceStage][source.index]!;+ const destinationDeal = dealsByStage[destinationStage][+ destination.index+ ] ?? {+ stage: destinationStage,+ index: undefined, // undefined if dropped after the last item+ };++ // compute local state change synchronously+ setDealsByStage(+ updateDealStageLocal(+ sourceDeal,+ { stage: sourceStage, index: source.index },+ { stage: destinationStage, index: destination.index },+ dealsByStage+ )+ );++ // persist the changes+ updateDealStage(sourceDeal, destinationDeal, dataProvider).then(() => {+ refetch();+ });+ };++ return (+ <DragDropContext onDragEnd={onDragEnd}>+ <div className="flex gap-4">+ {dealStages.map((stage) => (+ <DealColumn+ stage={stage.value}+ deals={dealsByStage[stage.value]}+ key={stage.value}+ />+ ))}+ </div>+ </DragDropContext>+ );+};++const updateDealStageLocal = (+ sourceDeal: Deal,+ source: { stage: string; index: number },+ destination: {+ stage: string;+ index?: number; // undefined if dropped after the last item+ },+ dealsByStage: DealsByStage+) => {+ if (source.stage === destination.stage) {+ // moving deal inside the same column+ const column = dealsByStage[source.stage];+ column.splice(source.index, 1);+ column.splice(destination.index ?? column.length + 1, 0, sourceDeal);+ return {+ ...dealsByStage,+ [destination.stage]: column,+ };+ } else {+ // moving deal across columns+ const sourceColumn = dealsByStage[source.stage];+ const destinationColumn = dealsByStage[destination.stage];+ sourceColumn.splice(source.index, 1);+ destinationColumn.splice(+ destination.index ?? destinationColumn.length + 1,+ 0,+ sourceDeal+ );+ return {+ ...dealsByStage,+ [source.stage]: sourceColumn,+ [destination.stage]: destinationColumn,+ };+ }+};++const updateDealStage = async (+ source: Deal,+ destination: {+ stage: string;+ index?: number; // undefined if dropped after the last item+ },+ dataProvider: DataProvider+) => {+ if (source.stage === destination.stage) {+ // moving deal inside the same column+ // Fetch all the deals in this stage (because the list may be filtered, but we need to update even non-filtered deals)+ const { data: columnDeals } = await dataProvider.getList("deals", {+ sort: { field: "index", order: "ASC" },+ pagination: { page: 1, perPage: 100 },+ filter: { stage: source.stage },+ });+ const destinationIndex = destination.index ?? columnDeals.length + 1;++ if (source.index > destinationIndex) {+ // deal moved up, eg+ // dest src+ // <------+ // [4, 7, 23, 5]+ await Promise.all([+ // for all deals between destinationIndex and source.index, increase the index+ ...columnDeals+ .filter(+ (deal) =>+ deal.index >= destinationIndex && deal.index < source.index+ )+ .map((deal) =>+ dataProvider.update("deals", {+ id: deal.id,+ data: { index: deal.index + 1 },+ previousData: deal,+ })+ ),+ // for the deal that was moved, update its index+ dataProvider.update("deals", {+ id: source.id,+ data: { index: destinationIndex },+ previousData: source,+ }),+ ]);+ } else {+ // deal moved down, e.g+ // src dest+ // ------>+ // [4, 7, 23, 5]+ await Promise.all([+ // for all deals between source.index and destinationIndex, decrease the index+ ...columnDeals+ .filter(+ (deal) =>+ deal.index <= destinationIndex && deal.index > source.index+ )+ .map((deal) =>+ dataProvider.update("deals", {+ id: deal.id,+ data: { index: deal.index - 1 },+ previousData: deal,+ })+ ),+ // for the deal that was moved, update its index+ dataProvider.update("deals", {+ id: source.id,+ data: { index: destinationIndex },+ previousData: source,+ }),+ ]);+ }+ } else {+ // moving deal across columns+ // Fetch all the deals in both stages (because the list may be filtered, but we need to update even non-filtered deals)+ const [{ data: sourceDeals }, { data: destinationDeals }] =+ await Promise.all([+ dataProvider.getList("deals", {+ sort: { field: "index", order: "ASC" },+ pagination: { page: 1, perPage: 100 },+ filter: { stage: source.stage },+ }),+ dataProvider.getList("deals", {+ sort: { field: "index", order: "ASC" },+ pagination: { page: 1, perPage: 100 },+ filter: { stage: destination.stage },+ }),+ ]);+ const destinationIndex = destination.index ?? destinationDeals.length + 1;++ await Promise.all([+ // decrease index on the deals after the source index in the source columns+ ...sourceDeals+ .filter((deal) => deal.index > source.index)+ .map((deal) =>+ dataProvider.update("deals", {+ id: deal.id,+ data: { index: deal.index - 1 },+ previousData: deal,+ })+ ),+ // increase index on the deals after the destination index in the destination columns+ ...destinationDeals+ .filter((deal) => deal.index >= destinationIndex)+ .map((deal) =>+ dataProvider.update("deals", {+ id: deal.id,+ data: { index: deal.index + 1 },+ previousData: deal,+ })+ ),+ // change the dragged deal to take the destination index and column+ dataProvider.update("deals", {+ id: source.id,+ data: {+ index: destinationIndex,+ stage: destination.stage,+ },+ previousData: source,+ }),+ ]);+ }+};diff --git a/src/atomic-crm/deals/DealShow.tsx b/src/atomic-crm/deals/DealShow.tsxnew file mode 100644index 00000000..2bc2fa68--- /dev/null+++ b/src/atomic-crm/deals/DealShow.tsx@@ -0,0 +1,264 @@+import { useMutation } from "@tanstack/react-query";+import { format, isValid } from "date-fns";+import { Archive, ArchiveRestore } from "lucide-react";+import {+ ShowBase,+ useDataProvider,+ useNotify,+ useRecordContext,+ useRedirect,+ useRefresh,+ useUpdate,+} from "ra-core";++import {+ DeleteButton,+ EditButton,+ ReferenceArrayField,+ ReferenceField,+ ReferenceManyField,+} from "@/components/admin";+import { Badge } from "@/components/ui/badge";+import { Button } from "@/components/ui/button";+import { Dialog, DialogContent } from "@/components/ui/dialog";+import { Separator } from "@/components/ui/separator";+import { CompanyAvatar } from "../companies/CompanyAvatar";+import { NotesIterator } from "../notes";+import { useConfigurationContext } from "../root/ConfigurationContext";+import { Deal } from "../types";+import { ContactList } from "./ContactList";+import { findDealLabel } from "./deal";++export const DealShow = ({ open, id }: { open: boolean; id?: string }) => {+ const redirect = useRedirect();+ const handleClose = () => {+ redirect("list", "deals");+ };++ return (+ <Dialog open={open} onOpenChange={(open) => !open && handleClose()}>+ <DialogContent className="lg:max-w-4xl p-0 overflow-y-auto max-h-9/10 top-1/20 translate-y-0">+ {id ? (+ <ShowBase id={id}>+ <DealShowContent />+ </ShowBase>+ ) : null}+ </DialogContent>+ </Dialog>+ );+};++const DealShowContent = () => {+ const { dealStages } = useConfigurationContext();+ const record = useRecordContext<Deal>();+ if (!record) return null;++ return (+ <>+ <div className="space-y-2">+ {record.archived_at ? <ArchivedTitle /> : null}+ <div className="flex p-4">+ <div className="flex-1">+ <div className="flex justify-between items-start mb-8">+ <div className="flex items-center gap-4">+ <ReferenceField+ source="company_id"+ reference="companies"+ link="show"+ >+ <CompanyAvatar />+ </ReferenceField>+ <h2 className="text-2xl font-semibold">{record.name}</h2>+ </div>+ <div+ className={`flex gap-2 ${record.archived_at ? "" : "pr-12"}`}+ >+ {record.archived_at ? (+ <>+ <UnarchiveButton record={record} />+ <DeleteButton />+ </>+ ) : (+ <>+ <ArchiveButton record={record} />+ <EditButton />+ </>+ )}+ </div>+ </div>++ <div className="flex gap-8 m-4">+ <div className="flex flex-col mr-10">+ <span className="text-xs text-muted-foreground tracking-wide">+ Expected closing date+ </span>+ <div className="flex items-center gap-2">+ <span className="text-sm">+ {isValid(new Date(record.expected_closing_date))+ ? format(new Date(record.expected_closing_date), "PP")+ : "Invalid date"}+ </span>+ {new Date(record.expected_closing_date) < new Date() ? (+ <Badge variant="destructive">Past</Badge>+ ) : null}+ </div>+ </div>++ <div className="flex flex-col mr-10">+ <span className="text-xs text-muted-foreground tracking-wide">+ Budget+ </span>+ <span className="text-sm">+ {record.amount.toLocaleString("en-US", {+ notation: "compact",+ style: "currency",+ currency: "USD",+ currencyDisplay: "narrowSymbol",+ minimumSignificantDigits: 3,+ })}+ </span>+ </div>++ {record.category && (+ <div className="flex flex-col mr-10">+ <span className="text-xs text-muted-foreground tracking-wide">+ Category+ </span>+ <span className="text-sm">{record.category}</span>+ </div>+ )}++ <div className="flex flex-col mr-10">+ <span className="text-xs text-muted-foreground tracking-wide">+ Stage+ </span>+ <span className="text-sm">+ {findDealLabel(dealStages, record.stage)}+ </span>+ </div>+ </div>++ {!!record.contact_ids?.length && (+ <div className="m-4">+ <div className="flex flex-col min-h-12 mr-10">+ <span className="text-xs text-muted-foreground tracking-wide">+ Contacts+ </span>+ <ReferenceArrayField+ source="contact_ids"+ reference="contacts_summary"+ >+ <ContactList />+ </ReferenceArrayField>+ </div>+ </div>+ )}++ {record.description && (+ <div className="m-4 whitespace-pre-line">+ <span className="text-xs text-muted-foreground tracking-wide">+ Description+ </span>+ <p className="text-sm leading-6">{record.description}</p>+ </div>+ )}++ <div className="m-4">+ <Separator />+ <ReferenceManyField+ target="deal_id"+ reference="dealNotes"+ sort={{ field: "date", order: "DESC" }}+ >+ <NotesIterator reference="deals" />+ </ReferenceManyField>+ </div>+ </div>+ </div>+ </div>+ </>+ );+};++const ArchivedTitle = () => (+ <div className="bg-orange-500 px-6 py-4">+ <h3 className="text-lg font-bold text-white">Archived Deal</h3>+ </div>+);++const ArchiveButton = ({ record }: { record: Deal }) => {+ const [update] = useUpdate();+ const redirect = useRedirect();+ const notify = useNotify();+ const refresh = useRefresh();+ const handleClick = () => {+ update(+ "deals",+ {+ id: record.id,+ data: { archived_at: new Date().toISOString() },+ previousData: record,+ },+ {+ onSuccess: () => {+ redirect("list", "deals");+ notify("Deal archived", { type: "info", undoable: false });+ refresh();+ },+ onError: () => {+ notify("Error: deal not archived", { type: "error" });+ },+ },+ );+ };++ return (+ <Button+ onClick={handleClick}+ size="sm"+ variant="outline"+ className="flex items-center gap-2 h-9"+ >+ <Archive className="w-4 h-4" />+ Archive+ </Button>+ );+};++const UnarchiveButton = ({ record }: { record: Deal }) => {+ const dataProvider = useDataProvider();+ const redirect = useRedirect();+ const notify = useNotify();+ const refresh = useRefresh();++ const { mutate } = useMutation({+ mutationFn: () => dataProvider.unarchiveDeal(record),+ onSuccess: () => {+ redirect("list", "deals");+ notify("Deal unarchived", {+ type: "info",+ undoable: false,+ });+ refresh();+ },+ onError: () => {+ notify("Error: deal not unarchived", { type: "error" });+ },+ });++ const handleClick = () => {+ mutate();+ };++ return (+ <Button+ onClick={handleClick}+ size="sm"+ variant="outline"+ className="flex items-center gap-2 h-9"+ >+ <ArchiveRestore className="w-4 h-4" />+ Send back to the board+ </Button>+ );+};diff --git a/src/atomic-crm/deals/OnlyMineInput.tsx b/src/atomic-crm/deals/OnlyMineInput.tsxnew file mode 100644index 00000000..384a950f--- /dev/null+++ b/src/atomic-crm/deals/OnlyMineInput.tsx@@ -0,0 +1,30 @@+import { Label } from "@/components/ui/label";+import { Switch } from "@/components/ui/switch";+import { useGetIdentity, useListFilterContext } from "ra-core";++export const OnlyMineInput = (_: { alwaysOn: boolean; source: string }) => {+ const { filterValues, displayedFilters, setFilters } = useListFilterContext();+ const { identity } = useGetIdentity();++ const handleChange = () => {+ const newFilterValues = { ...filterValues };+ if (typeof filterValues.sales_id !== "undefined") {+ delete newFilterValues.sales_id;+ } else {+ newFilterValues.sales_id = identity && identity?.id;+ }+ setFilters(newFilterValues, displayedFilters);+ };+ return (+ <div className="mt-auto pb-2.25">+ <div className="flex items-center space-x-2">+ <Switch+ id="only-mine"+ checked={typeof filterValues.sales_id !== "undefined"}+ onCheckedChange={handleChange}+ />+ <Label htmlFor="only-mine">Only companies I manage</Label>+ </div>+ </div>+ );+};diff --git a/src/deals/deal.ts b/src/atomic-crm/deals/deal.tssimilarity index 100%rename from src/deals/deal.tsrename to src/atomic-crm/deals/deal.tsdiff --git a/src/atomic-crm/deals/dealUtils.ts b/src/atomic-crm/deals/dealUtils.tsnew file mode 100644index 00000000..2371f8ef--- /dev/null+++ b/src/atomic-crm/deals/dealUtils.ts@@ -0,0 +1,26 @@+export function getRelativeTimeString(dateString: string): string {+ const date = new Date(dateString);+ date.setHours(0, 0, 0, 0);++ const today = new Date();+ today.setHours(0, 0, 0, 0);++ const diff = date.getTime() - today.getTime();+ const unitDiff = Math.round(diff / (1000 * 60 * 60 * 24));++ // Check if the date is more than one week old+ if (Math.abs(unitDiff) > 7) {+ return new Intl.DateTimeFormat(undefined, {+ day: "numeric",+ month: "long",+ }).format(date);+ }++ // Intl.RelativeTimeFormat for dates within the last week+ const rtf = new Intl.RelativeTimeFormat(undefined, { numeric: "auto" });+ return ucFirst(rtf.format(unitDiff, "day"));+}++function ucFirst(str: string): string {+ return str.charAt(0).toUpperCase() + str.slice(1);+}diff --git a/src/atomic-crm/deals/index.ts b/src/atomic-crm/deals/index.tsnew file mode 100644index 00000000..82086f28--- /dev/null+++ b/src/atomic-crm/deals/index.ts@@ -0,0 +1,6 @@+import * as React from "react";+const DealList = React.lazy(() => import("./DealList"));++export default {+ list: DealList,+};diff --git a/src/deals/stages.ts b/src/atomic-crm/deals/stages.tssimilarity index 100%rename from src/deals/stages.tsrename to src/atomic-crm/deals/stages.tsdiff --git a/src/atomic-crm/filters/FilterCategory.tsx b/src/atomic-crm/filters/FilterCategory.tsxnew file mode 100644index 00000000..83eac149--- /dev/null+++ b/src/atomic-crm/filters/FilterCategory.tsx@@ -0,0 +1,20 @@+import { Translate } from "ra-core";+import { ReactNode } from "react";++export const FilterCategory = ({+ icon,+ label,+ children,+}: {+ icon: ReactNode;+ label: string;+ children?: ReactNode;+}) => (+ <div className="flex flex-col gap-2">+ <h3 className="flex flex-row items-center gap-2 font-bold text-sm">+ {icon}+ <Translate i18nKey={label} />+ </h3>+ <div className="flex flex-col items-start pl-4">{children}</div>+ </div>+);diff --git a/src/atomic-crm/layout/FormToolbar.tsx b/src/atomic-crm/layout/FormToolbar.tsxnew file mode 100644index 00000000..21a75341--- /dev/null+++ b/src/atomic-crm/layout/FormToolbar.tsx@@ -0,0 +1,17 @@+import {+ CancelButton,+ DeleteButton,+ SaveButton,+ FormToolbar as KitFormToolbar,+} from "@/components/admin";++export const FormToolbar = () => (+ <KitFormToolbar className="flex md:flex flex-row justify-between gap-2">+ <DeleteButton />++ <div className="flex flex-row gap-2 justify-end">+ <CancelButton />+ <SaveButton />+ </div>+ </KitFormToolbar>+);diff --git a/src/atomic-crm/layout/Header.tsx b/src/atomic-crm/layout/Header.tsxnew file mode 100644index 00000000..5061050d--- /dev/null+++ b/src/atomic-crm/layout/Header.tsx@@ -0,0 +1,131 @@+import { RefreshButton, ThemeModeToggle, UserMenu } from "@/components/admin";+import { useUserMenu } from "@/hooks/user-menu-context";+import { DropdownMenuItem } from "@/components/ui/dropdown-menu";+import { Settings, User } from "lucide-react";+import { CanAccess } from "ra-core";+import { Link, matchPath, useLocation } from "react-router";+import { useConfigurationContext } from "../root/ConfigurationContext";++const Header = () => {+ const { darkModeLogo, lightModeLogo, title } = useConfigurationContext();+ const location = useLocation();++ let currentPath: string | boolean = "/";+ if (matchPath("/", location.pathname)) {+ currentPath = "/";+ } else if (matchPath("/contacts/*", location.pathname)) {+ currentPath = "/contacts";+ } else if (matchPath("/companies/*", location.pathname)) {+ currentPath = "/companies";+ } else if (matchPath("/deals/*", location.pathname)) {+ currentPath = "/deals";+ } else {+ currentPath = false;+ }++ return (+ <nav className="flex-grow">+ <header className="bg-secondary">+ <div className="px-4">+ <div className="flex justify-between items-center flex-1">+ <Link+ to="/"+ className="flex items-center gap-2 text-secondary-foreground no-underline"+ >+ <img+ className="[.light_&]:hidden h-6"+ src={darkModeLogo}+ alt={title}+ />+ <img+ className="[.dark_&]:hidden h-6"+ src={lightModeLogo}+ alt={title}+ />+ <h1 className="text-xl font-semibold">{title}</h1>+ </Link>+ <div>+ <nav className="flex">+ <NavigationTab+ label="Dashboard"+ to="/"+ isActive={currentPath === "/"}+ />+ <NavigationTab+ label="Contacts"+ to="/contacts"+ isActive={currentPath === "/contacts"}+ />+ <NavigationTab+ label="Companies"+ to="/companies"+ isActive={currentPath === "/companies"}+ />+ <NavigationTab+ label="Deals"+ to="/deals"+ isActive={currentPath === "/deals"}+ />+ </nav>+ </div>+ <div className="flex items-center">+ <ThemeModeToggle />+ <RefreshButton />+ <UserMenu>+ <ConfigurationMenu />+ <CanAccess resource="sales" action="list">+ <UsersMenu />+ </CanAccess>+ </UserMenu>+ </div>+ </div>+ </div>+ </header>+ </nav>+ );+};++const NavigationTab = ({+ label,+ to,+ isActive,+}: {+ label: string;+ to: string;+ isActive: boolean;+}) => (+ <Link+ to={to}+ className={`px-6 py-3 text-sm font-medium transition-colors border-b-2 ${+ isActive+ ? "text-secondary-foreground border-secondary-foreground"+ : "text-secondary-foreground/70 border-transparent hover:text-secondary-foreground/80"+ }`}+ >+ {label}+ </Link>+);++const UsersMenu = () => {+ const { onClose } = useUserMenu() ?? {};+ return (+ <DropdownMenuItem asChild onClick={onClose}>+ <Link to="/sales" className="flex items-center gap-2">+ <User /> Users+ </Link>+ </DropdownMenuItem>+ );+};++const ConfigurationMenu = () => {+ const { onClose } = useUserMenu() ?? {};+ return (+ <DropdownMenuItem asChild onClick={onClose}>+ <Link to="/settings" className="flex items-center gap-2">+ <Settings />+ My info+ </Link>+ </DropdownMenuItem>+ );+};+export default Header;diff --git a/src/atomic-crm/layout/Layout.tsx b/src/atomic-crm/layout/Layout.tsxnew file mode 100644index 00000000..bded5602--- /dev/null+++ b/src/atomic-crm/layout/Layout.tsx@@ -0,0 +1,21 @@+import { Notification, Error } from "@/components/admin";+import { Skeleton } from "@/components/ui/skeleton";+import { ReactNode, Suspense } from "react";+import { ErrorBoundary } from "react-error-boundary";+import Header from "./Header";++export const Layout = ({ children }: { children: ReactNode }) => (+ <>+ <Header />+ <div className="max-w-screen-xl mx-auto pt-4 px-4">+ <main id="main-content">+ <ErrorBoundary FallbackComponent={Error}>+ <Suspense fallback={<Skeleton className="h-12 w-12 rounded-full" />}>+ {children}+ </Suspense>+ </ErrorBoundary>+ </main>+ </div>+ <Notification />+ </>+);diff --git a/src/atomic-crm/layout/TopToolbar.tsx b/src/atomic-crm/layout/TopToolbar.tsxnew file mode 100644index 00000000..6b2bbd6b--- /dev/null+++ b/src/atomic-crm/layout/TopToolbar.tsx@@ -0,0 +1,24 @@+import * as React from "react";+import { cn } from "@/lib/utils.ts";++export interface TopToolbarProps extends React.HTMLAttributes<HTMLDivElement> {+ children?: React.ReactNode;+}++export const TopToolbar = (inProps: TopToolbarProps) => {+ const { className, children, ...props } = inProps;++ return (+ <div+ className={cn(+ "flex flex-auto justify-end items-end gap-2 whitespace-nowrap -mt-2",+ className,+ )}+ {...props}+ >+ {children}+ </div>+ );+};++export default TopToolbar;diff --git a/src/atomic-crm/login/LoginSkeleton.tsx b/src/atomic-crm/login/LoginSkeleton.tsxnew file mode 100644index 00000000..18826281--- /dev/null+++ b/src/atomic-crm/login/LoginSkeleton.tsx@@ -0,0 +1,18 @@+import { Skeleton } from "@/components/ui/skeleton";++export const LoginSkeleton = () => {+ return (+ <div className="max-w-screen-xl mx-auto h-screen pt-8">+ <div className="h-full">+ <div className="max-w-sm mx-auto h-full flex flex-col justify-center gap-8">+ <Skeleton className="w-full h-[100px]" />+ <Skeleton className="w-4/5 h-[50px]" />+ <Skeleton className="w-full h-9" />+ <Skeleton className="w-full h-9" />+ <Skeleton className="w-full h-9" />+ <Skeleton className="w-2/5 h-9" />+ </div>+ </div>+ </div>+ );+};diff --git a/src/atomic-crm/login/SignupPage.tsx b/src/atomic-crm/login/SignupPage.tsxnew file mode 100644index 00000000..9fb44cf1--- /dev/null+++ b/src/atomic-crm/login/SignupPage.tsx@@ -0,0 +1,149 @@+import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";+import { Loader2 } from "lucide-react";+import { useDataProvider, useLogin, useNotify } from "ra-core";+import { SubmitHandler, useForm } from "react-hook-form";+import { Navigate } from "react-router";+import { CrmDataProvider } from "../providers/types";+import { useConfigurationContext } from "../root/ConfigurationContext";+import { SignUpData } from "../types";+import { LoginSkeleton } from "./LoginSkeleton";++export const SignupPage = () => {+ const queryClient = useQueryClient();+ const dataProvider = useDataProvider<CrmDataProvider>();+ const { darkModeLogo: logo, title } = useConfigurationContext();+ const { data: isInitialized, isPending } = useQuery({+ queryKey: ["init"],+ queryFn: async () => {+ return dataProvider.isInitialized();+ },+ });++ const { isPending: isSignUpPending, mutate } = useMutation({+ mutationKey: ["signup"],+ mutationFn: async (data: SignUpData) => {+ return dataProvider.signUp(data);+ },+ onSuccess: (data) => {+ login({+ email: data.email,+ password: data.password,+ redirectTo: "/contacts",+ }).then(() => {+ notify("Initial user successfully created");+ // FIXME: We should probably provide a hook for that in the ra-core package+ queryClient.invalidateQueries({+ queryKey: ["auth", "canAccess"],+ });+ });+ },+ onError: () => {+ notify("An error occurred. Please try again.");+ },+ });++ const login = useLogin();+ const notify = useNotify();++ const {+ register,+ handleSubmit,+ formState: { isValid },+ } = useForm<SignUpData>({+ mode: "onChange",+ });++ if (isPending) {+ return <LoginSkeleton />;+ }++ // For the moment, we only allow one user to sign up. Other users must be created by the administrator.+ if (isInitialized) {+ return <Navigate to="/login" />;+ }++ const onSubmit: SubmitHandler<SignUpData> = async (data) => {+ mutate(data);+ };++ return (+ <div className="h-screen p-8">+ <div className="flex items-center gap-4">+ <img+ src={logo}+ alt={title}+ width={24}+ className="filter brightness-0 invert"+ />+ <h1 className="text-xl font-semibold">{title}</h1>+ </div>+ <div className="h-full">+ <div className="max-w-sm mx-auto h-full flex flex-col justify-center gap-4">+ <h1 className="text-2xl font-bold mb-4">Welcome to Atomic CRM</h1>+ <p className="text-base mb-4">+ Create the first user account to complete the setup.+ </p>+ <form onSubmit={handleSubmit(onSubmit)} className="space-y-4">+ <div className="flex flex-col gap-2">+ <Label htmlFor="first_name">First name</Label>+ <Input+ {...register("first_name", { required: true })}+ id="first_name"+ type="text"+ required+ />+ </div>+ <div className="flex flex-col gap-2">+ <Label htmlFor="last_name">Last name</Label>+ <Input+ {...register("last_name", { required: true })}+ id="last_name"+ type="text"+ required+ />+ </div>+ <div className="flex flex-col gap-2">+ <Label htmlFor="email">Email</Label>+ <Input+ {...register("email", { required: true })}+ id="email"+ type="email"+ required+ />+ </div>+ <div className="flex flex-col gap-2">+ <Label htmlFor="password">Password</Label>+ <Input+ {...register("password", { required: true })}+ id="password"+ type="password"+ required+ />+ </div>+ <div className="flex justify-between items-center mt-8">+ <Button+ type="submit"+ disabled={!isValid || isSignUpPending}+ className="w-full"+ >+ {isSignUpPending ? (+ <>+ <Loader2 className="w-4 h-4 animate-spin mr-2" />+ Creating...+ </>+ ) : (+ "Create account"+ )}+ </Button>+ </div>+ </form>+ </div>+ </div>+ </div>+ );+};++SignupPage.path = "/sign-up";diff --git a/src/atomic-crm/login/StartPage.tsx b/src/atomic-crm/login/StartPage.tsxnew file mode 100644index 00000000..cebcb9cd--- /dev/null+++ b/src/atomic-crm/login/StartPage.tsx@@ -0,0 +1,26 @@+import { useDataProvider } from "ra-core";+import { useQuery } from "@tanstack/react-query";+import { Navigate } from "react-router-dom";+import { LoginPage } from "@/components/admin";+import { CrmDataProvider } from "../providers/types";+import { LoginSkeleton } from "./LoginSkeleton";++export const StartPage = () => {+ const dataProvider = useDataProvider<CrmDataProvider>();+ const {+ data: isInitialized,+ error,+ isPending,+ } = useQuery({+ queryKey: ["init"],+ queryFn: async () => {+ return dataProvider.isInitialized();+ },+ });++ if (isPending) return <LoginSkeleton />;+ if (error) return <LoginPage />;+ if (isInitialized) return <LoginPage />;++ return <Navigate to="/sign-up" />;+};diff --git a/src/atomic-crm/misc/AsideSection.tsx b/src/atomic-crm/misc/AsideSection.tsxnew file mode 100644index 00000000..de0d8822--- /dev/null+++ b/src/atomic-crm/misc/AsideSection.tsx@@ -0,0 +1,21 @@+import { Separator } from "@/components/ui/separator";+import { cn } from "@/lib/utils";+import { ReactNode } from "react";++export type AsideSectionProps = {+ title: string;+ children?: ReactNode;+ noGap?: boolean;+};++export function AsideSection({ title, children, noGap }: AsideSectionProps) {+ return (+ <div className="mb-6 text-sm">+ <h3 className="font-medium pb-1">{title}</h3>+ <Separator />+ <div className={cn("pt-2 flex flex-col", { "gap-1": !noGap })}>+ {children}+ </div>+ </div>+ );+}diff --git a/src/atomic-crm/misc/ContactOption.tsx b/src/atomic-crm/misc/ContactOption.tsxnew file mode 100644index 00000000..26ef05de--- /dev/null+++ b/src/atomic-crm/misc/ContactOption.tsx@@ -0,0 +1,25 @@+import { useRecordContext } from "ra-core";+import { Avatar } from "../contacts/Avatar";+import { Contact } from "../types";++// eslint-disable-next-line react-refresh/only-export-components+const ContactOptionRender = () => {+ const record: Contact | undefined = useRecordContext();+ if (!record) return null;+ return (+ <div className="flex flex-row gap-4 items-center justify-start">+ <Avatar height={40} width={40} record={record} />+ <div className="flex flex-col items-start gap-1">+ <span>+ {record.first_name} {record.last_name}+ </span>+ <span className="text-xs text-muted-foreground">+ {record.title}+ {record.title && record.company_name && " at "}+ {record.company_name}+ </span>+ </div>+ </div>+ );+};+export const contactOptionText = <ContactOptionRender />;diff --git a/src/atomic-crm/misc/DialogCloseButton.tsx b/src/atomic-crm/misc/DialogCloseButton.tsxnew file mode 100644index 00000000..e69de29bdiff --git a/src/atomic-crm/misc/ImageEditorField.tsx b/src/atomic-crm/misc/ImageEditorField.tsxnew file mode 100644index 00000000..c43c5a45--- /dev/null+++ b/src/atomic-crm/misc/ImageEditorField.tsx@@ -0,0 +1,204 @@+import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";+import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import "cropperjs/dist/cropper.css";+import { useFieldValue } from "ra-core";+import { createRef, useCallback, useState } from "react";+import { Cropper, ReactCropperElement } from "react-cropper";+import { useDropzone } from "react-dropzone";+import { useFormContext } from "react-hook-form";++const ImageEditorField = (props: ImageEditorFieldProps) => {+ const { getValues } = useFormContext();+ const source = getValues(props.source);+ const imageUrl = source?.src;+ const [isDialogOpen, setIsDialogOpen] = useState(false);++ const { type = "image", emptyText, linkPosition = "none" } = props;++ const commonProps = {+ src: imageUrl,+ onClick: () => setIsDialogOpen(true),+ style: { cursor: "pointer" },+ className: `${props.className || ""}`,+ };++ const width = props.width || (type === "avatar" ? 50 : 200);+ const height = props.height || (type === "avatar" ? 50 : 200);++ return (+ <>+ <div+ className={`flex ${+ linkPosition === "right" ? "flex-row" : "flex-col"+ } items-center ${+ linkPosition === "right" ? "gap-2" : "gap-1"+ } rounded p-${props.backgroundImageColor ? "4" : "0"}`}+ style={{+ backgroundColor: props.backgroundImageColor || "transparent",+ }}+ >+ {props.type === "avatar" ? (+ <Avatar+ {...commonProps}+ className={`cursor-pointer`}+ style={{ width, height }}+ >+ <AvatarImage src={imageUrl} />+ <AvatarFallback>{emptyText}</AvatarFallback>+ </Avatar>+ ) : (+ <img+ {...commonProps}+ className="cursor-pointer object-cover"+ style={{ width, height }}+ alt="Editable content"+ />+ )}+ {linkPosition !== "none" && (+ <button+ type="button"+ onClick={() => setIsDialogOpen(true)}+ className="text-xs underline hover:no-underline cursor-pointer text-center"+ >+ Change+ </button>+ )}+ </div>+ <ImageEditorDialog+ open={isDialogOpen}+ onClose={() => setIsDialogOpen(false)}+ {...props}+ />+ </>+ );+};++const ImageEditorDialog = (props: ImageEditorDialogProps) => {+ const { setValue, handleSubmit } = useFormContext();+ const cropperRef = createRef<ReactCropperElement>();+ const initialValue = useFieldValue({ source: props.source });+ const [file, setFile] = useState<File | undefined>();+ const [imageSrc, setImageSrc] = useState<string | undefined>(+ initialValue?.src+ );+ const onDrop = useCallback((files: File[]) => {+ const preview = URL.createObjectURL(files[0]);+ setFile(files[0]);+ setImageSrc(preview);+ }, []);++ const updateImage = () => {+ const cropper = cropperRef.current?.cropper;+ const croppedImage = cropper?.getCroppedCanvas().toDataURL();+ if (croppedImage) {+ setImageSrc(croppedImage);++ const newFile = file ?? new File([], initialValue?.src);+ setValue(+ props.source,+ {+ src: croppedImage,+ title: newFile.name,+ rawFile: newFile,+ },+ { shouldDirty: true }+ );+ props.onClose();++ if (props.onSave) {+ handleSubmit(props.onSave)();+ }+ }+ };++ const deleteImage = () => {+ setValue(props.source, null, { shouldDirty: true });+ if (props.onSave) {+ handleSubmit(props.onSave)();+ }+ setImageSrc(undefined);+ props.onClose();+ };++ const { getRootProps, getInputProps } = useDropzone({+ accept: { "image/jpeg": [".jpeg", ".png"] },+ onDrop,+ maxFiles: 1,+ });++ return (+ <Dialog open={props.open} onOpenChange={props.onClose}>+ {props.type === "avatar" && (+ <style>+ {`+ .cropper-crop-box,+ .cropper-view-box {+ border-radius: 50%;+ }+ `}+ </style>+ )}+ <DialogContent>+ <DialogHeader>+ <DialogTitle>Upload and resize image</DialogTitle>+ </DialogHeader>+ <div className="flex flex-col gap-2 justify-center">+ <div+ className="flex flex-row justify-center bg-gray-50 cursor-pointer p-4 border-2 border-dashed border-gray-300 rounded-lg hover:bg-gray-100 transition-colors"+ {...getRootProps()}+ >+ <input {...getInputProps()} />+ <p className="text-gray-600">+ Drop a file to upload, or click to select it.+ </p>+ </div>++ {imageSrc && (+ <Cropper+ ref={cropperRef}+ src={imageSrc}+ aspectRatio={1}+ guides={false}+ cropBoxResizable={false}+ />+ )}+ </div>++ <DialogFooter className="flex justify-between w-full">+ <Button type="button" onClick={updateImage}>+ Update Image+ </Button>+ <Button type="button" variant="destructive" onClick={deleteImage}>+ Delete+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+};++export default ImageEditorField;++export interface ImageEditorFieldProps {+ source: string;+ width?: number;+ height?: number;+ type?: "avatar" | "image";+ onSave?: any;+ linkPosition?: "right" | "bottom" | "none";+ backgroundImageColor?: string;+ className?: string;+ emptyText?: string;+}++export interface ImageEditorDialogProps extends ImageEditorFieldProps {+ open: boolean;+ onClose: () => void;+}diff --git a/src/misc/RelativeDate.tsx b/src/atomic-crm/misc/RelativeDate.tsxsimilarity index 100%rename from src/misc/RelativeDate.tsxrename to src/atomic-crm/misc/RelativeDate.tsxdiff --git a/src/atomic-crm/misc/Status.tsx b/src/atomic-crm/misc/Status.tsxnew file mode 100644index 00000000..b416466c--- /dev/null+++ b/src/atomic-crm/misc/Status.tsx@@ -0,0 +1,20 @@+import { useConfigurationContext } from "../root/ConfigurationContext";++export const Status = ({ status }: { status: string }) => {+ const { noteStatuses } = useConfigurationContext();+ if (!status || !noteStatuses) return null;+ const statusObject = noteStatuses.find((s: any) => s.value === status);++ if (!statusObject) return null;+ return (+ <div className="group relative inline-block ml-2">+ <span+ className="inline-block w-2.5 h-2.5 rounded-full"+ style={{ backgroundColor: statusObject.color }}+ />+ <div className="absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 text-xs text-white bg-gray-800 rounded opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none whitespace-nowrap z-10">+ {statusObject.label}+ </div>+ </div>+ );+};diff --git a/src/misc/fetchWithTimeout.ts b/src/atomic-crm/misc/fetchWithTimeout.tssimilarity index 100%rename from src/misc/fetchWithTimeout.tsrename to src/atomic-crm/misc/fetchWithTimeout.tsdiff --git a/src/atomic-crm/misc/isLinkedInUrl.ts b/src/atomic-crm/misc/isLinkedInUrl.tsnew file mode 100644index 00000000..60ab5024--- /dev/null+++ b/src/atomic-crm/misc/isLinkedInUrl.ts@@ -0,0 +1,15 @@+const LINKEDIN_URL_REGEX = /^http(?:s)?:\/\/(?:www\.)?linkedin.com\//;++export const isLinkedinUrl = (url: string) => {+ if (!url) return;+ try {+ // Parse the URL to ensure it is valid+ const parsedUrl = new URL(url);+ if (!parsedUrl.href.match(LINKEDIN_URL_REGEX)) {+ return "URL must be from linkedin.com";+ }+ } catch {+ // If URL parsing fails, return false+ return "Must be a valid URL";+ }+};diff --git a/src/misc/unsupportedDomains.const.ts b/src/atomic-crm/misc/unsupportedDomains.const.tssimilarity index 100%rename from src/misc/unsupportedDomains.const.tsrename to src/atomic-crm/misc/unsupportedDomains.const.tsdiff --git a/src/atomic-crm/misc/useAppBarHeight.ts b/src/atomic-crm/misc/useAppBarHeight.tsnew file mode 100644index 00000000..0f3f3a62--- /dev/null+++ b/src/atomic-crm/misc/useAppBarHeight.ts@@ -0,0 +1,9 @@+import { useIsMobile } from "@/hooks/use-mobile";++const DENSE_NAVBAR_HEIGHT = 48;+const DENSE_NAVBAR_HEIGHT_MOBILE = 64;++export default function useAppBarHeight(): number {+ const isMobile = useIsMobile();+ return isMobile ? DENSE_NAVBAR_HEIGHT_MOBILE : DENSE_NAVBAR_HEIGHT;+}diff --git a/src/misc/usePapaParse.tsx b/src/atomic-crm/misc/usePapaParse.tsxsimilarity index 100%rename from src/misc/usePapaParse.tsxrename to src/atomic-crm/misc/usePapaParse.tsxdiff --git a/src/atomic-crm/notes/Note.tsx b/src/atomic-crm/notes/Note.tsxnew file mode 100644index 00000000..1832a624--- /dev/null+++ b/src/atomic-crm/notes/Note.tsx@@ -0,0 +1,186 @@+import { Button } from "@/components/ui/button";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { CircleX, Edit, Save, Trash2 } from "lucide-react";+import {+ Form,+ useDelete,+ useNotify,+ useResourceContext,+ useUpdate,+ WithRecord,+} from "ra-core";+import { useState } from "react";+import { FieldValues, SubmitHandler } from "react-hook-form";++import { ReferenceField } from "@/components/admin";+import { CompanyAvatar } from "../companies/CompanyAvatar";+import { Avatar } from "../contacts/Avatar";+import { RelativeDate } from "../misc/RelativeDate";+import { Status } from "../misc/Status";+import { SaleName } from "../sales/SaleName";+import { ContactNote, DealNote } from "../types";+import { NoteAttachments } from "./NoteAttachments";+import { NoteInputs } from "./NoteInputs";++export const Note = ({+ showStatus,+ note,+}: {+ showStatus?: boolean;+ note: DealNote | ContactNote;+ isLast: boolean;+}) => {+ const [isHover, setHover] = useState(false);+ const [isEditing, setEditing] = useState(false);+ const resource = useResourceContext();+ const notify = useNotify();++ const [update, { isPending }] = useUpdate();++ const [deleteNote] = useDelete(+ resource,+ { id: note.id, previousData: note },+ {+ mutationMode: "undoable",+ onSuccess: () => {+ notify("Note deleted", { type: "info", undoable: true });+ },+ }+ );++ const handleDelete = () => {+ deleteNote();+ };++ const handleEnterEditMode = () => {+ setEditing(!isEditing);+ };++ const handleCancelEdit = () => {+ setEditing(false);+ setHover(false);+ };++ const handleNoteUpdate: SubmitHandler<FieldValues> = (values) => {+ update(+ resource,+ { id: note.id, data: values, previousData: note },+ {+ onSuccess: () => {+ setEditing(false);+ setHover(false);+ },+ }+ );+ };++ return (+ <div+ onMouseEnter={() => setHover(true)}+ onMouseLeave={() => setHover(false)}+ >+ <div className="flex items-center space-x-4 w-full">+ {resource === "contactNote" ? (+ <Avatar width={20} height={20} />+ ) : (+ <ReferenceField source="company_id" reference="companies" link="show">+ <CompanyAvatar width={20} height={20} />+ </ReferenceField>+ )}+ <div className="inline-flex h-full items-center text-sm text-muted-foreground">+ <ReferenceField+ record={note}+ resource={resource}+ source="sales_id"+ reference="sales"+ link={false}+ >+ <WithRecord render={(record) => <SaleName sale={record} />} />+ </ReferenceField>{" "}+ added a note{" "}+ {showStatus && note.status && <Status status={note.status} />}+ </div>+ <span className={`${isHover ? "visible" : "invisible"}`}>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ variant="ghost"+ size="sm"+ onClick={handleEnterEditMode}+ className="p-1 h-auto cursor-pointer"+ >+ <Edit className="w-4 h-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>Edit note</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ variant="ghost"+ size="sm"+ onClick={handleDelete}+ className="p-1 h-auto cursor-pointer"+ >+ <Trash2 className="w-4 h-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>Delete note</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </span>+ <div className="flex-1"></div>+ <span className="text-sm text-muted-foreground">+ <RelativeDate date={note.date} />+ </span>+ </div>+ {isEditing ? (+ <Form onSubmit={handleNoteUpdate} record={note}>+ <NoteInputs showStatus={showStatus} />+ <div className="flex justify-end mt-4 space-x-4">+ <Button+ variant="ghost"+ onClick={handleCancelEdit}+ type="button"+ className="cursor-pointer"+ >+ <CircleX className="w-4 h-4" />+ Cancel+ </Button>+ <Button+ type="submit"+ variant="outline"+ disabled={isPending}+ className="flex items-center gap-2 cursor-pointer"+ >+ <Save className="w-4 h-4" />+ Update Note+ </Button>+ </div>+ </Form>+ ) : (+ <div className="pt-2 [&_p:empty]:min-h-[0.75em]">+ {note.text?.split("\n").map((paragraph: string, index: number) => (+ <p className="text-sm leading-6 m-0" key={index}>+ {paragraph}+ </p>+ ))}++ {note.attachments && <NoteAttachments note={note} />}+ </div>+ )}+ </div>+ );+};diff --git a/src/atomic-crm/notes/NoteAttachments.tsx b/src/atomic-crm/notes/NoteAttachments.tsxnew file mode 100644index 00000000..67c0ac6f--- /dev/null+++ b/src/atomic-crm/notes/NoteAttachments.tsx@@ -0,0 +1,55 @@+import { Paperclip } from "lucide-react";+import { AttachmentNote, ContactNote, DealNote } from "../types";++export const NoteAttachments = ({ note }: { note: ContactNote | DealNote }) => {+ if (!note.attachments || note.attachments.length === 0) {+ return null;+ }++ const imageAttachments = note.attachments.filter(+ (attachment: AttachmentNote) => isImageMimeType(attachment.type)+ );+ const otherAttachments = note.attachments.filter(+ (attachment: AttachmentNote) => !isImageMimeType(attachment.type)+ );++ return (+ <div className="flex flex-col">+ {imageAttachments.length > 0 && (+ <div className="grid grid-cols-4 gap-8">+ {imageAttachments.map((attachment: AttachmentNote, index: number) => (+ <div key={index}>+ <img+ src={attachment.src}+ alt={attachment.title}+ className="w-[200px] h-[100px] object-cover cursor-pointer object-left border border-border"+ onClick={() => window.open(attachment.src, "_blank")}+ />+ </div>+ ))}+ </div>+ )}+ {otherAttachments.length > 0 &&+ otherAttachments.map((attachment: AttachmentNote, index: number) => (+ <div key={index} className="flex items-center gap-2">+ <Paperclip className="w-4 h-4" />+ <a+ href={attachment.src}+ target="_blank"+ rel="noopener noreferrer"+ className="underline hover:no-underline"+ >+ {attachment.title}+ </a>+ </div>+ ))}+ </div>+ );+};++const isImageMimeType = (mimeType?: string): boolean => {+ if (!mimeType) {+ return false;+ }+ return mimeType.startsWith("image/");+};diff --git a/src/atomic-crm/notes/NoteCreate.tsx b/src/atomic-crm/notes/NoteCreate.tsxnew file mode 100644index 00000000..89decf5b--- /dev/null+++ b/src/atomic-crm/notes/NoteCreate.tsx@@ -0,0 +1,107 @@+import {+ CreateBase,+ Form,+ Identifier,+ RaRecord,+ useGetIdentity,+ useListContext,+ useNotify,+ useRecordContext,+ useResourceContext,+ useUpdate,+} from "ra-core";+import { useFormContext } from "react-hook-form";++import { SaveButton } from "@/components/admin";+import { NoteInputs } from "./NoteInputs";+import { getCurrentDate } from "./utils";++const foreignKeyMapping = {+ contacts: "contact_id",+ deals: "deal_id",+};++export const NoteCreate = ({+ reference,+}: {+ reference: "contacts" | "deals";+}) => {+ const resource = useResourceContext();+ const record = useRecordContext();+ const { identity } = useGetIdentity();++ if (!record || !identity) return null;++ return (+ <CreateBase resource={resource} redirect={false}>+ <Form>+ <div className="space-y-3">+ <NoteInputs />+ <NoteCreateButton reference={reference} record={record} />+ </div>+ </Form>+ </CreateBase>+ );+};++const NoteCreateButton = ({+ reference,+ record,+}: {+ reference: "contacts" | "deals";+ record: RaRecord<Identifier>;+}) => {+ const [update] = useUpdate();+ const notify = useNotify();+ const { identity } = useGetIdentity();+ const { reset } = useFormContext();+ const { refetch } = useListContext();++ if (!record || !identity) return null;++ const resetValues: {+ date: string;+ text: null;+ attachments: null;+ status?: string;+ } = {+ date: getCurrentDate(),+ text: null,+ attachments: null,+ };++ if (reference === "contacts") {+ resetValues.status = "warm";+ }++ const handleSuccess = (data: any) => {+ reset(resetValues, { keepValues: false });+ refetch();+ update(reference, {+ id: (record && record.id) as unknown as Identifier,+ data: { last_seen: new Date().toISOString(), status: data.status },+ previousData: record,+ });+ notify("Note added");+ };++ return (+ <div className="flex justify-end">+ <SaveButton+ type="button"+ label="Add this note"+ transform={(data) => ({+ ...data,+ [foreignKeyMapping[reference]]: record.id,+ sales_id: identity.id,+ date: data.date || getCurrentDate(),+ })}+ mutationOptions={{+ onSuccess: handleSuccess,+ }}+ >+ Add this note+ </SaveButton>+ </div>+ );+};diff --git a/src/atomic-crm/notes/NoteInputs.tsx b/src/atomic-crm/notes/NoteInputs.tsxnew file mode 100644index 00000000..c1296827--- /dev/null+++ b/src/atomic-crm/notes/NoteInputs.tsx@@ -0,0 +1,89 @@+import { useState } from "react";+import { useFormContext } from "react-hook-form";++import {+ TextInput,+ FileInput,+ FileField,+ SelectInput,+} from "@/components/admin";+import { Button } from "@/components/ui/button";+import { Status } from "../misc/Status";+import { useConfigurationContext } from "../root/ConfigurationContext";+import { getCurrentDate } from "./utils";++export const NoteInputs = ({ showStatus }: { showStatus?: boolean }) => {+ const { noteStatuses } = useConfigurationContext();+ const { setValue } = useFormContext();+ const [displayMore, setDisplayMore] = useState(false);++ return (+ <div className="space-y-2">+ <TextInput+ source="text"+ label={false}+ multiline+ helperText={false}+ placeholder="Add a note"+ />++ {!displayMore && (+ <div className="flex justify-end items-center gap-2">+ <Button+ variant="link"+ size="sm"+ onClick={() => {+ setDisplayMore(!displayMore);+ setValue("date", getCurrentDate());+ }}+ className="text-sm text-muted-foreground underline hover:no-underline p-0 h-auto cursor-pointer"+ >+ Show options+ </Button>+ <span className="text-sm text-muted-foreground">+ (attach files, or change details)+ </span>+ </div>+ )}++ {displayMore && (+ <div className="space-y-3 mt-3">+ <div className="flex gap-4">+ {showStatus && (+ <SelectInput+ source="status"+ choices={noteStatuses.map((status) => ({+ id: status.value,+ name: status.label,+ value: status.value,+ }))}+ optionText={optionRenderer}+ defaultValue={"warm"}+ helperText={false}+ />+ )}+ <TextInput+ source="date"+ label="Date"+ helperText={false}+ type="datetime-local"+ className="text-primary"+ defaultValue={new Date().toISOString().slice(0, 16)}+ />+ </div>+ <FileInput source="attachments" multiple>+ <FileField source="src" title="title" target="_blank" />+ </FileInput>+ </div>+ )}+ </div>+ );+};++const optionRenderer = (choice: any) => {+ return (+ <div>+ {choice.name} <Status status={choice.value} />+ </div>+ );+};diff --git a/src/atomic-crm/notes/NotesIterator.tsx b/src/atomic-crm/notes/NotesIterator.tsxnew file mode 100644index 00000000..c7508e5f--- /dev/null+++ b/src/atomic-crm/notes/NotesIterator.tsx@@ -0,0 +1,34 @@+import { useListContext } from "ra-core";+import * as React from "react";++import { Separator } from "@/components/ui/separator";+import { Note } from "./Note";+import { NoteCreate } from "./NoteCreate";++export const NotesIterator = ({+ reference,+}: {+ reference: "contacts" | "deals";+}) => {+ const { data, error, isPending } = useListContext();+ if (isPending || error) return null;+ return (+ <div className="mt-4">+ <NoteCreate reference={reference} />+ {data && (+ <div className="mt-4 space-y-4">+ {data.map((note, index) => (+ <React.Fragment key={index}>+ <Note+ note={note}+ isLast={index === data.length - 1}+ key={index}+ />+ {index < data.length - 1 && <Separator />}+ </React.Fragment>+ ))}+ </div>+ )}+ </div>+ );+};diff --git a/src/atomic-crm/notes/StatusSelector.tsx b/src/atomic-crm/notes/StatusSelector.tsxnew file mode 100644index 00000000..f7b86700--- /dev/null+++ b/src/atomic-crm/notes/StatusSelector.tsx@@ -0,0 +1,38 @@+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import { Status } from "../misc/Status";+import { useConfigurationContext } from "../root/ConfigurationContext";++export const StatusSelector = ({ status, setStatus }: any) => {+ const { noteStatuses } = useConfigurationContext();++ const currentStatus = noteStatuses.find((s) => s.value === status);++ return (+ <Select value={status} onValueChange={setStatus}>+ <SelectTrigger className="w-32">+ <SelectValue>+ {currentStatus && (+ <div className="flex items-center gap-2">+ {currentStatus.label} <Status status={currentStatus.value} />+ </div>+ )}+ </SelectValue>+ </SelectTrigger>+ <SelectContent>+ {noteStatuses.map((statusOption) => (+ <SelectItem key={statusOption.value} value={statusOption.value}>+ <div className="flex items-center gap-2">+ {statusOption.label} <Status status={statusOption.value} />+ </div>+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ );+};diff --git a/src/notes/index.ts b/src/atomic-crm/notes/index.tssimilarity index 100%rename from src/notes/index.tsrename to src/atomic-crm/notes/index.tsdiff --git a/src/notes/utils.ts b/src/atomic-crm/notes/utils.tssimilarity index 100%rename from src/notes/utils.tsrename to src/atomic-crm/notes/utils.tsdiff --git a/src/atomic-crm/providers/commons/activity.ts b/src/atomic-crm/providers/commons/activity.tsnew file mode 100644index 00000000..8ef6a7d6--- /dev/null+++ b/src/atomic-crm/providers/commons/activity.ts@@ -0,0 +1,173 @@+import { DataProvider, Identifier } from "ra-core";+import {+ COMPANY_CREATED,+ CONTACT_CREATED,+ CONTACT_NOTE_CREATED,+ DEAL_CREATED,+ DEAL_NOTE_CREATED,+} from "../../consts";+import {+ Activity,+ Company,+ Contact,+ ContactNote,+ Deal,+ DealNote,+} from "../../types";++// FIXME: Requires 5 large queries to get the latest activities.+// Replace with a server-side view or a custom API endpoint.+export async function getActivityLog(+ dataProvider: DataProvider,+ companyId?: Identifier,+ salesId?: Identifier+) {+ const companyFilter = {} as any;+ if (companyId) {+ companyFilter.id = companyId;+ } else if (salesId) {+ companyFilter["sales_id@in"] = `(${salesId})`;+ }++ const filter = {} as any;+ if (companyId) {+ filter.company_id = companyId;+ } else if (salesId) {+ filter["sales_id@in"] = `(${salesId})`;+ }++ const [newCompanies, newContactsAndNotes, newDealsAndNotes] =+ await Promise.all([+ getNewCompanies(dataProvider, companyFilter),+ getNewContactsAndNotes(dataProvider, filter),+ getNewDealsAndNotes(dataProvider, filter),+ ]);+ return (+ [...newCompanies, ...newContactsAndNotes, ...newDealsAndNotes]+ // sort by date desc+ .sort((a, b) =>+ a.date && b.date ? a.date.localeCompare(b.date) * -1 : 0+ )+ // limit to 250 activities+ .slice(0, 250)+ );+}++const getNewCompanies = async (+ dataProvider: DataProvider,+ filter: any+): Promise<Activity[]> => {+ const { data: companies } = await dataProvider.getList<Company>("companies", {+ filter,+ pagination: { page: 1, perPage: 250 },+ sort: { field: "created_at", order: "DESC" },+ });+ return companies.map((company) => ({+ id: `company.${company.id}.created`,+ type: COMPANY_CREATED,+ company_id: company.id,+ company,+ sales_id: company.sales_id,+ date: company.created_at,+ }));+};++async function getNewContactsAndNotes(+ dataProvider: DataProvider,+ filter: any+): Promise<Activity[]> {+ const { data: contacts } = await dataProvider.getList<Contact>("contacts", {+ filter,+ pagination: { page: 1, perPage: 250 },+ sort: { field: "first_seen", order: "DESC" },+ });++ const recentContactNotesFilter = {} as any;+ if (filter.sales_id) {+ recentContactNotesFilter.sales_id = filter.sales_id;+ }+ if (filter.company_id) {+ // No company_id field in contactNote, filtering by related contacts instead.+ // This filter is only valid if a company has less than 250 contact.+ const contactIds = contacts.map((contact) => contact.id).join(",");+ recentContactNotesFilter["contact_id@in"] = `(${contactIds})`;+ }++ const { data: contactNotes } = await dataProvider.getList<ContactNote>(+ "contactNotes",+ {+ filter: recentContactNotesFilter,+ pagination: { page: 1, perPage: 250 },+ sort: { field: "date", order: "DESC" },+ }+ );++ const newContacts = contacts.map((contact) => ({+ id: `contact.${contact.id}.created`,+ type: CONTACT_CREATED,+ company_id: contact.company_id,+ sales_id: contact.sales_id,+ contact,+ date: contact.first_seen,+ }));++ const newContactNotes = contactNotes.map((contactNote) => ({+ id: `contactNote.${contactNote.id}.created`,+ type: CONTACT_NOTE_CREATED,+ sales_id: contactNote.sales_id,+ contactNote,+ date: contactNote.date,+ }));++ return [...newContacts, ...newContactNotes];+}++async function getNewDealsAndNotes(+ dataProvider: DataProvider,+ filter: any+): Promise<Activity[]> {+ const { data: deals } = await dataProvider.getList<Deal>("deals", {+ filter,+ pagination: { page: 1, perPage: 250 },+ sort: { field: "created_at", order: "DESC" },+ });++ const recentDealNotesFilter = {} as any;+ if (filter.sales_id) {+ recentDealNotesFilter.sales_id = filter.sales_id;+ }+ if (filter.company_id) {+ // No company_id field in dealNote, filtering by related deals instead.+ // This filter is only valid if a deal has less than 250 notes.+ const dealIds = deals.map((deal) => deal.id).join(",");+ recentDealNotesFilter["deal_id@in"] = `(${dealIds})`;+ }++ const { data: dealNotes } = await dataProvider.getList<DealNote>(+ "dealNotes",+ {+ filter: recentDealNotesFilter,+ pagination: { page: 1, perPage: 250 },+ sort: { field: "date", order: "DESC" },+ }+ );++ const newDeals = deals.map((deal) => ({+ id: `deal.${deal.id}.created`,+ type: DEAL_CREATED,+ company_id: deal.company_id,+ sales_id: deal.sales_id,+ deal,+ date: deal.created_at,+ }));++ const newDealNotes = dealNotes.map((dealNote) => ({+ id: `dealNote.${dealNote.id}.created`,+ type: DEAL_NOTE_CREATED,+ sales_id: dealNote.sales_id,+ dealNote,+ date: dealNote.date,+ }));++ return [...newDeals, ...newDealNotes];+}diff --git a/src/providers/commons/canAccess.ts b/src/atomic-crm/providers/commons/canAccess.tssimilarity index 100%rename from src/providers/commons/canAccess.tsrename to src/atomic-crm/providers/commons/canAccess.tsdiff --git a/src/atomic-crm/providers/commons/getCompanyAvatar.spec.ts b/src/atomic-crm/providers/commons/getCompanyAvatar.spec.tsnew file mode 100644index 00000000..b8bebccb--- /dev/null+++ b/src/atomic-crm/providers/commons/getCompanyAvatar.spec.ts@@ -0,0 +1,24 @@+/**+ * @jest-environment node+ */++import { Company } from "../../types";+import { getCompanyAvatar } from "./getCompanyAvatar";++it("should return favicon URL if website url exist", async () => {+ const website = "https://gravatar.com";+ const record: Partial<Company> = { website };++ const avatarUrl = await getCompanyAvatar(record);+ expect(avatarUrl).toStrictEqual({+ src: "https://gravatar.com/favicon.ico",+ title: "Company favicon",+ });+});++it("should return null if no website is provided", async () => {+ const record: Partial<Company> = {};++ const avatarUrl = await getCompanyAvatar(record);+ expect(avatarUrl).toBeNull();+});diff --git a/src/atomic-crm/providers/commons/getCompanyAvatar.ts b/src/atomic-crm/providers/commons/getCompanyAvatar.tsnew file mode 100644index 00000000..b515c433--- /dev/null+++ b/src/atomic-crm/providers/commons/getCompanyAvatar.ts@@ -0,0 +1,42 @@+import { fetchWithTimeout } from "../../misc/fetchWithTimeout";+import type { Company } from "../../types";++// Helper function to get the favicon URL+async function getFaviconUrl(website: string): Promise<string | null> {+ try {+ // get favicon from domain+ const url = new URL(website);+ const domain = url.origin;+ const faviconUrl = `${domain}/favicon.ico`;+ const response = await fetchWithTimeout(faviconUrl);+ if (response.ok) {+ return faviconUrl;+ }+ } catch {+ return null;+ }+ return null;+}++// Main function to get the avatar URL+export async function getCompanyAvatar(record: Partial<Company>): Promise<{+ src: string;+ title: string;+} | null> {+ if (!record.website) {+ return null;+ }++ // Step 1: Try to get favicon from website domain+ const faviconUrl = await getFaviconUrl(record.website);+ if (faviconUrl) {+ return {+ src: faviconUrl,+ title: "Company favicon",+ };+ }++ // TODO: Step 2: Try to get image from LinkedIn.++ return null;+}diff --git a/src/atomic-crm/providers/commons/getContactAvatar.spec.ts b/src/atomic-crm/providers/commons/getContactAvatar.spec.tsnew file mode 100644index 00000000..5a6e7851--- /dev/null+++ b/src/atomic-crm/providers/commons/getContactAvatar.spec.ts@@ -0,0 +1,87 @@+/**+ * @jest-environment node+ */++// This test file uses the node environment because the getContactAvatar uses the TextEncoder API. This API is not available in the version of JSDOM used by Jest in CI.+// As CI uses Node18 and not the latest LTS, the crypto module is not available in the global scope.++import { Contact, EmailAndType } from "../../types";+import { getContactAvatar, hash } from "./getContactAvatar";++import { webcrypto } from "node:crypto";++Object.defineProperty(globalThis, "crypto", {+ value: webcrypto,+});++it("should return gravatar URL for [email protected]", async () => {+ const email: EmailAndType[] = [+ { email: "[email protected]", type: "Work" },+ ];+ const record: Partial<Contact> = { email_jsonb: email };++ const avatarUrl = await getContactAvatar(record);+ const hashedEmail = await hash(email[0].email);+ expect(avatarUrl).toBe(+ `https://www.gravatar.com/avatar/${hashedEmail}?d=404`+ );+});++it("should return favicon URL if gravatar does not exist", async () => {+ const email: EmailAndType[] = [+ { email: "[email protected]", type: "Work" },+ ];+ const record: Partial<Contact> = { email_jsonb: email };++ const avatarUrl = await getContactAvatar(record);+ expect(avatarUrl).toBe("https://gravatar.com/favicon.ico");+});++it("should not return favicon URL if not domain not allowed", async () => {+ const email: EmailAndType[] = [+ { email: "[email protected]", type: "Work" },+ ];+ const record: Partial<Contact> = { email_jsonb: email };++ const avatarUrl = await getContactAvatar(record);+ expect(avatarUrl).toBeNull();+});++it("should return null if no email is provided", async () => {+ const record: Partial<Contact> = {};++ const avatarUrl = await getContactAvatar(record);+ expect(avatarUrl).toBeNull();+});++it("should return null if an empty array is provided", async () => {+ const email: EmailAndType[] = [];+ const record: Partial<Contact> = { email_jsonb: email };++ const avatarUrl = await getContactAvatar(record);+ expect(avatarUrl).toBeNull();+});++it("should return null if email has no gravatar or validate domain", async () => {+ const email: EmailAndType[] = [+ { email: "[email protected]", type: "Work" },+ ];+ const record: Partial<Contact> = { email_jsonb: email };++ const avatarUrl = await getContactAvatar(record);+ expect(avatarUrl).toBeNull();+});++it("should return gravatar URL for 2nd email if 1st email has no gravatar nor valid domain", async () => {+ const email: EmailAndType[] = [+ { email: "[email protected]", type: "Work" },+ { email: "[email protected]", type: "Work" },+ ];+ const record: Partial<Contact> = { email_jsonb: email };++ const avatarUrl = await getContactAvatar(record);+ const hashedEmail = await hash(email[1].email);+ expect(avatarUrl).toBe(+ `https://www.gravatar.com/avatar/${hashedEmail}?d=404`+ );+});diff --git a/src/atomic-crm/providers/commons/getContactAvatar.ts b/src/atomic-crm/providers/commons/getContactAvatar.tsnew file mode 100644index 00000000..fa57cf07--- /dev/null+++ b/src/atomic-crm/providers/commons/getContactAvatar.ts@@ -0,0 +1,70 @@+import { fetchWithTimeout } from "../../misc/fetchWithTimeout";+import { DOMAINS_NOT_SUPPORTING_FAVICON } from "../../misc/unsupportedDomains.const";+import { Contact } from "../../types";++export async function hash(string: string) {+ const utf8 = new TextEncoder().encode(string);+ const hashBuffer = await crypto.subtle.digest("SHA-256", utf8);+ const hashArray = Array.from(new Uint8Array(hashBuffer));+ const hashHex = hashArray+ .map((bytes) => bytes.toString(16).padStart(2, "0"))+ .join("");+ return hashHex;+}++// Helper function to get the Gravatar URL+async function getGravatarUrl(email: string): Promise<string> {+ const hashEmail = await hash(email);+ return `https://www.gravatar.com/avatar/${hashEmail}?d=404`;+}++// Helper function to get the favicon URL+async function getFaviconUrl(domain: string): Promise<string | null> {+ if (DOMAINS_NOT_SUPPORTING_FAVICON.includes(domain)) {+ return null;+ }++ try {+ const faviconUrl = `https://${domain}/favicon.ico`;+ const response = await fetchWithTimeout(faviconUrl);+ if (response.ok) {+ return faviconUrl;+ }+ } catch {+ return null;+ }+ return null;+}++// Main function to get the avatar URL+export async function getContactAvatar(+ record: Partial<Contact>+): Promise<string | null> {+ if (!record.email_jsonb || !record.email_jsonb.length) {+ return null;+ }++ for (const { email } of record.email_jsonb) {+ // Step 1: Try to get Gravatar image+ const gravatarUrl = await getGravatarUrl(email);+ try {+ const gravatarResponse = await fetch(gravatarUrl);+ if (gravatarResponse.ok) {+ return gravatarUrl;+ }+ } catch {+ // Gravatar not found+ }++ // Step 2: Try to get favicon from email domain+ const domain = email.split("@")[1];+ const faviconUrl = await getFaviconUrl(domain);+ if (faviconUrl) {+ return faviconUrl;+ }++ // TODO: Step 3: Try to get image from LinkedIn.+ }++ return null;+}diff --git a/src/atomic-crm/providers/fakerest/authProvider.ts b/src/atomic-crm/providers/fakerest/authProvider.tsnew file mode 100644index 00000000..4843f58a--- /dev/null+++ b/src/atomic-crm/providers/fakerest/authProvider.ts@@ -0,0 +1,73 @@+import { AuthProvider } from "ra-core";+import { Sale } from "../../types";+import { canAccess } from "../commons/canAccess";+import { dataProvider } from "./dataProvider";++export const DEFAULT_USER = {+ id: 0,+ first_name: "Jane",+ last_name: "Doe",+ email: "[email protected]",+ password: "demo",+ administrator: true,+ avatar: {+ src: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4gKgSUNDX1BST0ZJTEUAAQEAAAKQbGNtcwQwAABtbnRyUkdCIFhZWiAH3wAIABMAEgAWADFhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtkZXNjAAABCAAAADhjcHJ0AAABQAAAAE53dHB0AAABkAAAABRjaGFkAAABpAAAACxyWFlaAAAB0AAAABRiWFlaAAAB5AAAABRnWFlaAAAB+AAAABRyVFJDAAACDAAAACBnVFJDAAACLAAAACBiVFJDAAACTAAAACBjaHJtAAACbAAAACRtbHVjAAAAAAAAAAEAAAAMZW5VUwAAABwAAAAcAHMAUgBHAEIAIABiAHUAaQBsAHQALQBpAG4AAG1sdWMAAAAAAAAAAQAAAAxlblVTAAAAMgAAABwATgBvACAAYwBvAHAAeQByAGkAZwBoAHQALAAgAHUAcwBlACAAZgByAGUAZQBsAHkAAAAAWFlaIAAAAAAAAPbWAAEAAAAA0y1zZjMyAAAAAAABDEoAAAXj///zKgAAB5sAAP2H///7ov///aMAAAPYAADAlFhZWiAAAAAAAABvlAAAOO4AAAOQWFlaIAAAAAAAACSdAAAPgwAAtr5YWVogAAAAAAAAYqUAALeQAAAY3nBhcmEAAAAAAAMAAAACZmYAAPKnAAANWQAAE9AAAApbcGFyYQAAAAAAAwAAAAJmZgAA8qcAAA1ZAAAT0AAACltwYXJhAAAAAAADAAAAAmZmAADypwAADVkAABPQAAAKW2Nocm0AAAAAAAMAAAAAo9cAAFR7AABMzQAAmZoAACZmAAAPXP/bAEMACAYGBwYFCAcHBwkJCAoMFA0MCwsMGRITDxQdGh8eHRocHCAkLicgIiwjHBwoNyksMDE0NDQfJzk9ODI8LjM0Mv/bAEMBCQkJDAsMGA0NGDIhHCEyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMv/AABEIAIAAgAMBIgACEQEDEQH/xAAcAAABBAMBAAAAAAAAAAAAAAABAAUGBwIDBAj/xAA2EAABAwMBBgMHAwQDAQAAAAABAAIDBAUREgYTITFBUSJxgRQyYZGxwdEHQqEkUmLhFRYjkv/EABoBAAIDAQEAAAAAAAAAAAAAAAIDAAEEBQb/xAAkEQACAgIDAAEEAwAAAAAAAAAAAQIRAyEEEjETBSJRcTJBYf/aAAwDAQACEQMRAD8AuIIoIogAooIqygorB72xsc97g1rRkk9FFrlfnVD3Rwu0Qj5uQyko+hRi5eEjlr6aEkOlBI6N4rSbpCG6j4R0zzPoFEIpZpn+Ahv+TuJ9E9Qtipodc0haD15ud5BI+Vsb8aXoq/a6GgJ1UsrgBknTj6rgp/1JtEkgjnbNTk9Xxkt/+m5Cbrvbam9sc2XeU9G0jTFry6Q9M/hddk/T6kpId7UwNmqJCOBOGxjoD3KLvIroiX0VxprhCJaeVr2njlpyutR+k2dlttQZ4KwMZpwIGjwD5lbI785leaSppZWHmJG+JpHfKYppgOLQ9pIAhwBHIpIwBJFJBQhgiEAiFRYQkgmzaCuNDaZHsOJHeBvmVG6VkSt0Me0l93spoqY5Y0+N3Qn8JgjdrcA3xOPU9f8AS485Jy4c8ucep/CzirNBIh4D9zz1WGU7dmyMElRIIXspeBw+fGeJ4N8/wtsEstTUtHFzz1Pb7BNVHvJQA0EAnOo83fH/AGpBR7qniw14yfekz9+qFMNxHiljYwjhqc3kTxPxwnaIZA+6ZoJWDGhjnZ68gnaEvewftHw4BOixTVGc2GsOdI4c3KFXmSuq75Rw0kQ3EWZKieQaQG8g0D4n7KauaGgiNu8eeJJPBN89JLUN8btWg5HDAL++OwUZSMbTWxV9vZNFqxyIcMEELuTdTBtNUbiP3A0D5BOC0QdozzVMWUksoIwTBFBIKEMlFdtJSIKaMHHEuKlKg+3Ly6rgizhugl3wHVLyv7WMxK5Ih8k2+IAJEecNGeLvj5LvoossDsZHl9E2x6ZZNTvDGPp2WFde45P6WlqI4tPAZIGT6rAb0vwSiOox4RgA+84nn6ruiuAhLdA1n+5x5Kt6SsrYagtqqkyuJ8Jxj+FLpIql9qM0b9GW8Ceioaoa2TigrXStDsMb8SOKeYtUgGpxLe5+wVQ2eouftIabs52T7ugHPqrOtNNX7gb+r3zSPE1zNJPljknQaehGSFDo6piax5Em7iZ78h+gXJV1OId7lzIgzIYOePyue4QvxGGs8OsAN6D/ACPfH1QinirgZmODoi4Mb5BFYlqjfSsc58kjxgkN4dua61wWWqFbb2VGCDM4uAPMN6LsJ4p+LwRlM8pZWGUU0UBFYhFUWFV/t0S67xR8muhGT8MqwFDNvKJz4IqxgyWjQ49uyXl3EbidSKxrp31VWaKnJaxoySO6aX7INZG9swlcHuD3OyMkjlxKdLWA2uqJH/3NH8KRVNWz2XJ7LCm1tHSUIyWyL0NvdC6CnBeQHjRqOSB2VwVdnd/1YwRt/wDQx8Pkq4sX9XdoXubpZrGCeo7q7i3eW0OjbqLW8B3RRjdkm+tJHn6usdbV1JY6rnpmBww5jT4QPLn6q09jLdcKBsRgv0lZSFgaaaoYXBuBza4kuB7g5HwCa6y50tRWvi3ZjeHYc1wwQVMdm42NaC3lhXBu6JkikuzHS4QuNuqCPf3biPPCqj9OdonubHa6txLyXkPJ65JH1x6K27tKYrXVPAyRE/A7nBVE7OUEtJtDSs0k6JwHO8zghMemZ6bjZcdqjZT0jo2DAY4tC68rVBHuosY4klx81sWnGqiYcjuRkllAIhGCBFBFUWFc9dSR11FLTyDLXtI8l0BJUXZRt4tNRZ7hPFI3Trw5p6HHBcEk0jgwO93l6q3tsrJ/y1oL4WZqYTqZ8R1H0VRVEDKqikgkaQRkdiCsOWHWR0+Pk7RFRzVNHXQmNwc1pHAHBVq2m+19QIzTgMhaMFsjclx+ap2wW6gn3dNXvqIpA7G+DstcB9CrVtVqsVDa4Zpa2eUmPIDS4knIzgD4FUou9Dvtqpe/oZ9qrfUR1Elw3ZDy7UeGAVKtibgKi3skzwPDj0KiV7ornc6xk8EtdTW+QhraSZ+S49SW8cAeamWzlsFupBG39ztXkotSKl/CmO21N3pbLs7U3GtL/Z4tOsMGScuAwB6qK7JUrbs1t6ex+5kOuESBoceJ4uDeGfJP+1NpO0NLSWyRgNE6cS1Rzza3iGjzOPknKCnipadkEEbY4o2hrWtGAAFojj7O2YJ5eq6oyKCywlhaTIBEJJKEMQigEVRYUViioQJAIIPVVrtzYW0FY2507cQVLtMoH7X9/X6hWVlcl0pKWvtlRTVuPZ3sOs5xpxx1A9COaDJDtGhuKbhKyjW2uT2newSuZq544g+in2ytGYpGzTPMj28WgNAwofRV0cFU6F7w5oOGudw1DoVPbRdKCBrdU0eojg1pyT6BYbr+zsd5dKRIvZN6/ey4yPhyXRTx+PDeXfssaZz6wBzssj6N6nzTiyJrAABgI1vaMrdaZp06SQTniktkvv5WtbIO4o5+RVJgwkikjAAkigVCGsJZWuSaOGMySvaxg5uccAJiqtqqeNxbSxOmP9x8I/KCU4x9DjCUvESIJuvG0Fp2fp2zXWvhpWPzo3h4uxzwBxKi1XtTcJGnS5sDe7Bx+ZVD7WX+p2gvs1TNM+VkZ3cOp2fCD9+amOayPReTG4LZaF2/XVjKmRlotTZIG5DZal5Bce+kch5lcLNqL5erSJrhXPd7SNRiYA2No6AAKocHGOqs21NJs1K3HERgfwg5T6xSQzixTk2zAtEziCn6wwbmoa4DHHoE1tgO9BA9FJLfTua0ODeK5sjpw0WFaagua0Ek+akAcC3KiNnbI0AkKTsfiLJTsb0IyrZue3U3yULuW39stV+fbKlkmmMAPmZ4sPPTCeNoL9HZbPUVbiCWN8I7novPE9TLVVktTM4ukkLnuJ6kldPg4fkk2/DncyfSKr09C2zaizXZzI6SvidM/lE7wv8AkU7rznsdUvG1Nvbk5FWz6r0O2XuPkj5EYYpJJ+isPfIm6NqCQcDySSk0/A2mvStrpepLtWu0kimYcRt+5+K1sZlqa6LmMp13ga1cuUnJ2zrQioqkM21VULfs7VzA4foLWeZ4fdUnjAHmrI/Uiv8A6OmpQffeXkfAD8lVyBlkY75K6XDhWO/yc7ly++vwGMZljGM5I+qvWlpab2eMNiDQGjgAqNb4J2EftwR6cV6Et0Daihp5WjwyRtcPUIebGkhnCabZjTWykmOHsHDkU7U9BHF7ucLXFTljuSc4W8srnUb26OmmeI2Dgt7qzIw44C1BgwmLaq7w2a0S1Dj4sYYM8S7oEyKb0hcmvWRD9S9pI6qaCz0rsiM7ydw79B6c/kq/Mni7cM/RYmd9XUyVEpJe4l7s9StD3nWT105+y9NxsXw4lE8/nyfLkch32Lk07X21zjw3+r5L0HHUa25yvPWxzc7YW9nYk/wVdrKgsAHRcn6lKpx/R0+BG4N/6P8AFL4hxTg2IvZkc1HqSoy8EqUUUgfGFjxt3o0ZUq2f/9k=",+ },+} as const;++export const USER_STORAGE_KEY = "user";++localStorage.setItem(USER_STORAGE_KEY, JSON.stringify({ ...DEFAULT_USER }));++async function getUser(email: string) {+ const sales = await dataProvider.getList("sales", {+ pagination: { page: 1, perPage: 200 },+ sort: { field: "name", order: "ASC" },+ });++ if (!sales.data.length) {+ return { ...DEFAULT_USER };+ }++ const user = sales.data.find((sale) => sale.email === email);+ if (!user || user.disabled) {+ return { ...DEFAULT_USER };+ }+ return user;+}++export const authProvider: AuthProvider = {+ login: async ({ email }) => {+ const user = await getUser(email);+ localStorage.setItem(USER_STORAGE_KEY, JSON.stringify(user));+ return Promise.resolve();+ },+ logout: () => {+ localStorage.removeItem(USER_STORAGE_KEY);+ return Promise.resolve();+ },+ checkError: () => Promise.resolve(),+ checkAuth: () =>+ localStorage.getItem(USER_STORAGE_KEY)+ ? Promise.resolve()+ : Promise.reject(),+ canAccess: async ({ signal: _signal, ...params }) => {+ // Get the current user+ const userItem = localStorage.getItem(USER_STORAGE_KEY);+ const localUser = userItem ? (JSON.parse(userItem) as Sale) : null;+ if (!localUser) return false;++ // Compute access rights from the sale role+ const role = localUser.administrator ? "admin" : "user";+ return canAccess(role, params);+ },+ getIdentity: () => {+ const userItem = localStorage.getItem(USER_STORAGE_KEY);+ const user = userItem ? (JSON.parse(userItem) as Sale) : null;+ return Promise.resolve({+ id: user?.id ?? 0,+ fullName: user ? `${user.first_name} ${user.last_name}` : "Jane Doe",+ avatar: user?.avatar?.src,+ });+ },+};diff --git a/src/atomic-crm/providers/fakerest/dataGenerator/companies.ts b/src/atomic-crm/providers/fakerest/dataGenerator/companies.tsnew file mode 100644index 00000000..4208ea2c--- /dev/null+++ b/src/atomic-crm/providers/fakerest/dataGenerator/companies.ts@@ -0,0 +1,53 @@+import {+ address,+ company,+ datatype,+ internet,+ lorem,+ phone,+ random,+} from "faker/locale/en_US";+import { randomDate } from "./utils";++import { defaultCompanySectors } from "../../../root/defaultConfiguration";+import { Company, RAFile } from "../../../types";+import { Db } from "./types";++const sizes = [1, 10, 50, 250, 500];++const regex = /\W+/;++export const generateCompanies = (db: Db, size = 55): Required<Company>[] => {+ return Array.from(Array(size).keys()).map((id) => {+ const name = company.companyName();+ return {+ id,+ name: name,+ logo: {+ title: lorem.text(1),+ src: `./logos/${id}.png`,+ } as RAFile,+ sector: random.arrayElement(defaultCompanySectors),+ size: random.arrayElement(sizes) as 1 | 10 | 50 | 250 | 500,+ linkedin_url: `https://www.linkedin.com/company/${name+ .toLowerCase()+ .replace(regex, "_")}`,+ website: internet.url(),+ phone_number: phone.phoneNumber(),+ address: address.streetAddress(),+ zipcode: address.zipCode(),+ city: address.city(),+ stateAbbr: address.stateAbbr(),+ nb_contacts: 0,+ nb_deals: 0,+ // at least 1/3rd of companies for Jane Doe+ sales_id: datatype.number(2) === 0 ? 0 : random.arrayElement(db.sales).id,+ created_at: randomDate().toISOString(),+ description: lorem.paragraph(),+ revenue: random.arrayElement(["$1M", "$10M", "$100M", "$1B"]),+ tax_identifier: random.alphaNumeric(10),+ country: random.arrayElement(["USA", "France", "UK"]),+ context_links: [],+ };+ });+};diff --git a/src/atomic-crm/providers/fakerest/dataGenerator/contactNotes.ts b/src/atomic-crm/providers/fakerest/dataGenerator/contactNotes.tsnew file mode 100644index 00000000..3b94c102--- /dev/null+++ b/src/atomic-crm/providers/fakerest/dataGenerator/contactNotes.ts@@ -0,0 +1,25 @@+import { datatype, lorem, random } from "faker/locale/en_US";++import { defaultNoteStatuses } from "../../../root/defaultConfiguration";+import { ContactNote } from "../../../types";+import { Db } from "./types";+import { randomDate } from "./utils";++export const generateContactNotes = (db: Db): ContactNote[] => {+ return Array.from(Array(1200).keys()).map((id) => {+ const contact = random.arrayElement(db.contacts);+ const date = randomDate(new Date(contact.first_seen));+ contact.last_seen =+ date > new Date(contact.last_seen)+ ? date.toISOString()+ : contact.last_seen;+ return {+ id,+ contact_id: contact.id,+ text: lorem.paragraphs(datatype.number({ min: 1, max: 4 })),+ date: date.toISOString(),+ sales_id: contact.sales_id,+ status: random.arrayElement(defaultNoteStatuses).value,+ };+ });+};diff --git a/src/atomic-crm/providers/fakerest/dataGenerator/contacts.ts b/src/atomic-crm/providers/fakerest/dataGenerator/contacts.tsnew file mode 100644index 00000000..68fc7bd5--- /dev/null+++ b/src/atomic-crm/providers/fakerest/dataGenerator/contacts.ts@@ -0,0 +1,103 @@+import {+ company as fakerCompany,+ internet,+ lorem,+ name,+ phone,+ random,+} from "faker/locale/en_US";++import {+ defaultContactGender,+ defaultNoteStatuses,+} from "../../../root/defaultConfiguration";+import { Company, Contact } from "../../../types";+import { Db } from "./types";+import { randomDate, weightedBoolean } from "./utils";++const maxContacts = {+ 1: 1,+ 10: 4,+ 50: 12,+ 250: 25,+ 500: 50,+};++const getRandomContactDetailsType = () =>+ random.arrayElement(["Work", "Home", "Other"]) as "Work" | "Home" | "Other";++export const generateContacts = (db: Db, size = 500): Required<Contact>[] => {+ const nbAvailblePictures = 223;+ let numberOfContacts = 0;++ return Array.from(Array(size).keys()).map((id) => {+ const has_avatar =+ weightedBoolean(25) && numberOfContacts < nbAvailblePictures;+ const gender = random.arrayElement(defaultContactGender).value;+ const first_name = name.firstName(gender as any);+ const last_name = name.lastName();+ const email_jsonb = [+ {+ email: internet.email(first_name, last_name),+ type: getRandomContactDetailsType(),+ },+ ];+ const phone_jsonb = [+ {+ number: phone.phoneNumber(),+ type: getRandomContactDetailsType(),+ },+ {+ number: phone.phoneNumber(),+ type: getRandomContactDetailsType(),+ },+ ];+ const avatar = {+ src: has_avatar+ ? "https://marmelab.com/posters/avatar-" ++ (223 - numberOfContacts) ++ ".jpeg"+ : undefined,+ };+ const title = fakerCompany.bsAdjective();++ if (has_avatar) {+ numberOfContacts++;+ }++ // choose company with people left to know+ let company: Required<Company>;+ do {+ company = random.arrayElement(db.companies);+ } while (company.nb_contacts >= maxContacts[company.size]);+ company.nb_contacts++;++ const first_seen = randomDate(new Date(company.created_at)).toISOString();+ const last_seen = first_seen;++ return {+ id,+ first_name,+ last_name,+ gender,+ title: title.charAt(0).toUpperCase() + title.substr(1),+ company_id: company.id,+ company_name: company.name,+ email_jsonb,+ phone_jsonb,+ background: lorem.sentence(),+ acquisition: random.arrayElement(["inbound", "outbound"]),+ avatar,+ first_seen: first_seen,+ last_seen: last_seen,+ has_newsletter: weightedBoolean(30),+ status: random.arrayElement(defaultNoteStatuses).value,+ tags: random+ .arrayElements(db.tags, random.arrayElement([0, 0, 0, 1, 1, 2]))+ .map((tag) => tag.id), // finalize+ sales_id: company.sales_id,+ nb_tasks: 0,+ linkedin_url: null,+ };+ });+};diff --git a/src/atomic-crm/providers/fakerest/dataGenerator/dealNotes.ts b/src/atomic-crm/providers/fakerest/dataGenerator/dealNotes.tsnew file mode 100644index 00000000..9c4092a7--- /dev/null+++ b/src/atomic-crm/providers/fakerest/dataGenerator/dealNotes.ts@@ -0,0 +1,19 @@+import { datatype, lorem, random } from "faker/locale/en_US";++import { Db } from "./types";+import { randomDate } from "./utils";++export const generateDealNotes = (db: Db) => {+ return Array.from(Array(300).keys()).map((id) => {+ const deal = random.arrayElement(db.deals);+ return {+ id,+ deal_id: deal.id,+ text: lorem.paragraphs(datatype.number({ min: 1, max: 4 })),+ date: randomDate(+ new Date(db.deals[deal.id as number].created_at)+ ).toISOString(),+ sales_id: deal.sales_id,+ };+ });+};diff --git a/src/atomic-crm/providers/fakerest/dataGenerator/deals.ts b/src/atomic-crm/providers/fakerest/dataGenerator/deals.tsnew file mode 100644index 00000000..c51cde9d--- /dev/null+++ b/src/atomic-crm/providers/fakerest/dataGenerator/deals.ts@@ -0,0 +1,53 @@+import { add } from "date-fns";+import { datatype, lorem, random } from "faker/locale/en_US";++import {+ defaultDealCategories,+ defaultDealStages,+} from "../../../root/defaultConfiguration";+import { Deal } from "../../../types";+import { Db } from "./types";+import { randomDate } from "./utils";++export const generateDeals = (db: Db): Deal[] => {+ const deals = Array.from(Array(50).keys()).map((id) => {+ const company = random.arrayElement(db.companies);+ company.nb_deals++;+ const contacts = random.arrayElements(+ db.contacts.filter((contact) => contact.company_id === company.id),+ datatype.number({ min: 1, max: 3 })+ );+ const lowercaseName = lorem.words();+ const created_at = randomDate(new Date(company.created_at)).toISOString();++ const expected_closing_date = randomDate(+ new Date(created_at),+ add(new Date(created_at), { months: 6 })+ ).toISOString();++ return {+ id,+ name: lowercaseName[0].toUpperCase() + lowercaseName.slice(1),+ company_id: company.id,+ contact_ids: contacts.map((contact) => contact.id),+ category: random.arrayElement(defaultDealCategories),+ stage: random.arrayElement(defaultDealStages).value,+ description: lorem.paragraphs(datatype.number({ min: 1, max: 4 })),+ amount: datatype.number(1000) * 100,+ created_at,+ updated_at: randomDate(new Date(created_at)).toISOString(),+ expected_closing_date,+ sales_id: company.sales_id,+ index: 0,+ };+ });+ // compute index based on stage+ defaultDealStages.forEach((stage) => {+ deals+ .filter((deal) => deal.stage === stage.value)+ .forEach((deal, index) => {+ deals[deal.id].index = index;+ });+ });+ return deals;+};diff --git a/src/providers/fakerest/dataGenerator/finalize.ts b/src/atomic-crm/providers/fakerest/dataGenerator/finalize.tssimilarity index 100%rename from src/providers/fakerest/dataGenerator/finalize.tsrename to src/atomic-crm/providers/fakerest/dataGenerator/finalize.tsdiff --git a/src/atomic-crm/providers/fakerest/dataGenerator/index.ts b/src/atomic-crm/providers/fakerest/dataGenerator/index.tsnew file mode 100644index 00000000..59abaf48--- /dev/null+++ b/src/atomic-crm/providers/fakerest/dataGenerator/index.ts@@ -0,0 +1,25 @@+import { generateCompanies } from "./companies";+import { generateContactNotes } from "./contactNotes";+import { generateContacts } from "./contacts";+import { generateDealNotes } from "./dealNotes";+import { generateDeals } from "./deals";+import { finalize } from "./finalize";+import { generateSales } from "./sales";+import { generateTags } from "./tags";+import { generateTasks } from "./tasks";+import { Db } from "./types";++export default (): Db => {+ const db = {} as Db;+ db.sales = generateSales(db);+ db.tags = generateTags(db);+ db.companies = generateCompanies(db);+ db.contacts = generateContacts(db);+ db.contactNotes = generateContactNotes(db);+ db.deals = generateDeals(db);+ db.dealNotes = generateDealNotes(db);+ db.tasks = generateTasks(db);+ finalize(db);++ return db;+};diff --git a/src/providers/fakerest/authProvider.ts b/src/atomic-crm/providers/fakerest/dataGenerator/sales.tssimilarity index 66%rename from src/providers/fakerest/authProvider.tsrename to src/atomic-crm/providers/fakerest/dataGenerator/sales.tsindex fe4c5afa..7dea3d3e 100644--- a/src/providers/fakerest/authProvider.ts+++ b/src/atomic-crm/providers/fakerest/dataGenerator/sales.ts@@ -1,75 +1,37 @@-import { AuthProvider } from 'react-admin';-import { Sale } from '../../types';-import { dataProvider } from './dataProvider';-import { canAccess } from '../commons/canAccess';--export const DEFAULT_USER = {- id: 0,- first_name: 'Jane',- last_name: 'Doe',- email: '[email protected]',- password: 'demo',- administrator: true,- avatar: {- src: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4gKgSUNDX1BST0ZJTEUAAQEAAAKQbGNtcwQwAABtbnRyUkdCIFhZWiAH3wAIABMAEgAWADFhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtkZXNjAAABCAAAADhjcHJ0AAABQAAAAE53dHB0AAABkAAAABRjaGFkAAABpAAAACxyWFlaAAAB0AAAABRiWFlaAAAB5AAAABRnWFlaAAAB+AAAABRyVFJDAAACDAAAACBnVFJDAAACLAAAACBiVFJDAAACTAAAACBjaHJtAAACbAAAACRtbHVjAAAAAAAAAAEAAAAMZW5VUwAAABwAAAAcAHMAUgBHAEIAIABiAHUAaQBsAHQALQBpAG4AAG1sdWMAAAAAAAAAAQAAAAxlblVTAAAAMgAAABwATgBvACAAYwBvAHAAeQByAGkAZwBoAHQALAAgAHUAcwBlACAAZgByAGUAZQBsAHkAAAAAWFlaIAAAAAAAAPbWAAEAAAAA0y1zZjMyAAAAAAABDEoAAAXj///zKgAAB5sAAP2H///7ov///aMAAAPYAADAlFhZWiAAAAAAAABvlAAAOO4AAAOQWFlaIAAAAAAAACSdAAAPgwAAtr5YWVogAAAAAAAAYqUAALeQAAAY3nBhcmEAAAAAAAMAAAACZmYAAPKnAAANWQAAE9AAAApbcGFyYQAAAAAAAwAAAAJmZgAA8qcAAA1ZAAAT0AAACltwYXJhAAAAAAADAAAAAmZmAADypwAADVkAABPQAAAKW2Nocm0AAAAAAAMAAAAAo9cAAFR7AABMzQAAmZoAACZmAAAPXP/bAEMACAYGBwYFCAcHBwkJCAoMFA0MCwsMGRITDxQdGh8eHRocHCAkLicgIiwjHBwoNyksMDE0NDQfJzk9ODI8LjM0Mv/bAEMBCQkJDAsMGA0NGDIhHCEyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMv/AABEIAIAAgAMBIgACEQEDEQH/xAAcAAABBAMBAAAAAAAAAAAAAAABAAUGBwIDBAj/xAA2EAABAwMBBgMHAwQDAQAAAAABAAIDBAUREgYTITFBUSJxgRQyYZGxwdEHQqEkUmLhFRYjkv/EABoBAAIDAQEAAAAAAAAAAAAAAAIDAAEEBQb/xAAkEQACAgIDAAEEAwAAAAAAAAAAAQIRAyEEEjETBSJRcTJBYf/aAAwDAQACEQMRAD8AuIIoIogAooIqygorB72xsc97g1rRkk9FFrlfnVD3Rwu0Qj5uQyko+hRi5eEjlr6aEkOlBI6N4rSbpCG6j4R0zzPoFEIpZpn+Ahv+TuJ9E9Qtipodc0haD15ud5BI+Vsb8aXoq/a6GgJ1UsrgBknTj6rgp/1JtEkgjnbNTk9Xxkt/+m5Cbrvbam9sc2XeU9G0jTFry6Q9M/hddk/T6kpId7UwNmqJCOBOGxjoD3KLvIroiX0VxprhCJaeVr2njlpyutR+k2dlttQZ4KwMZpwIGjwD5lbI785leaSppZWHmJG+JpHfKYppgOLQ9pIAhwBHIpIwBJFJBQhgiEAiFRYQkgmzaCuNDaZHsOJHeBvmVG6VkSt0Me0l93spoqY5Y0+N3Qn8JgjdrcA3xOPU9f8AS485Jy4c8ucep/CzirNBIh4D9zz1WGU7dmyMElRIIXspeBw+fGeJ4N8/wtsEstTUtHFzz1Pb7BNVHvJQA0EAnOo83fH/AGpBR7qniw14yfekz9+qFMNxHiljYwjhqc3kTxPxwnaIZA+6ZoJWDGhjnZ68gnaEvewftHw4BOixTVGc2GsOdI4c3KFXmSuq75Rw0kQ3EWZKieQaQG8g0D4n7KauaGgiNu8eeJJPBN89JLUN8btWg5HDAL++OwUZSMbTWxV9vZNFqxyIcMEELuTdTBtNUbiP3A0D5BOC0QdozzVMWUksoIwTBFBIKEMlFdtJSIKaMHHEuKlKg+3Ly6rgizhugl3wHVLyv7WMxK5Ih8k2+IAJEecNGeLvj5LvoossDsZHl9E2x6ZZNTvDGPp2WFde45P6WlqI4tPAZIGT6rAb0vwSiOox4RgA+84nn6ruiuAhLdA1n+5x5Kt6SsrYagtqqkyuJ8Jxj+FLpIql9qM0b9GW8Ceioaoa2TigrXStDsMb8SOKeYtUgGpxLe5+wVQ2eouftIabs52T7ugHPqrOtNNX7gb+r3zSPE1zNJPljknQaehGSFDo6piax5Em7iZ78h+gXJV1OId7lzIgzIYOePyue4QvxGGs8OsAN6D/ACPfH1QinirgZmODoi4Mb5BFYlqjfSsc58kjxgkN4dua61wWWqFbb2VGCDM4uAPMN6LsJ4p+LwRlM8pZWGUU0UBFYhFUWFV/t0S67xR8muhGT8MqwFDNvKJz4IqxgyWjQ49uyXl3EbidSKxrp31VWaKnJaxoySO6aX7INZG9swlcHuD3OyMkjlxKdLWA2uqJH/3NH8KRVNWz2XJ7LCm1tHSUIyWyL0NvdC6CnBeQHjRqOSB2VwVdnd/1YwRt/wDQx8Pkq4sX9XdoXubpZrGCeo7q7i3eW0OjbqLW8B3RRjdkm+tJHn6usdbV1JY6rnpmBww5jT4QPLn6q09jLdcKBsRgv0lZSFgaaaoYXBuBza4kuB7g5HwCa6y50tRWvi3ZjeHYc1wwQVMdm42NaC3lhXBu6JkikuzHS4QuNuqCPf3biPPCqj9OdonubHa6txLyXkPJ65JH1x6K27tKYrXVPAyRE/A7nBVE7OUEtJtDSs0k6JwHO8zghMemZ6bjZcdqjZT0jo2DAY4tC68rVBHuosY4klx81sWnGqiYcjuRkllAIhGCBFBFUWFc9dSR11FLTyDLXtI8l0BJUXZRt4tNRZ7hPFI3Trw5p6HHBcEk0jgwO93l6q3tsrJ/y1oL4WZqYTqZ8R1H0VRVEDKqikgkaQRkdiCsOWHWR0+Pk7RFRzVNHXQmNwc1pHAHBVq2m+19QIzTgMhaMFsjclx+ap2wW6gn3dNXvqIpA7G+DstcB9CrVtVqsVDa4Zpa2eUmPIDS4knIzgD4FUou9Dvtqpe/oZ9qrfUR1Elw3ZDy7UeGAVKtibgKi3skzwPDj0KiV7ornc6xk8EtdTW+QhraSZ+S49SW8cAeamWzlsFupBG39ztXkotSKl/CmO21N3pbLs7U3GtL/Z4tOsMGScuAwB6qK7JUrbs1t6ex+5kOuESBoceJ4uDeGfJP+1NpO0NLSWyRgNE6cS1Rzza3iGjzOPknKCnipadkEEbY4o2hrWtGAAFojj7O2YJ5eq6oyKCywlhaTIBEJJKEMQigEVRYUViioQJAIIPVVrtzYW0FY2507cQVLtMoH7X9/X6hWVlcl0pKWvtlRTVuPZ3sOs5xpxx1A9COaDJDtGhuKbhKyjW2uT2newSuZq544g+in2ytGYpGzTPMj28WgNAwofRV0cFU6F7w5oOGudw1DoVPbRdKCBrdU0eojg1pyT6BYbr+zsd5dKRIvZN6/ey4yPhyXRTx+PDeXfssaZz6wBzssj6N6nzTiyJrAABgI1vaMrdaZp06SQTniktkvv5WtbIO4o5+RVJgwkikjAAkigVCGsJZWuSaOGMySvaxg5uccAJiqtqqeNxbSxOmP9x8I/KCU4x9DjCUvESIJuvG0Fp2fp2zXWvhpWPzo3h4uxzwBxKi1XtTcJGnS5sDe7Bx+ZVD7WX+p2gvs1TNM+VkZ3cOp2fCD9+amOayPReTG4LZaF2/XVjKmRlotTZIG5DZal5Bce+kch5lcLNqL5erSJrhXPd7SNRiYA2No6AAKocHGOqs21NJs1K3HERgfwg5T6xSQzixTk2zAtEziCn6wwbmoa4DHHoE1tgO9BA9FJLfTua0ODeK5sjpw0WFaagua0Ek+akAcC3KiNnbI0AkKTsfiLJTsb0IyrZue3U3yULuW39stV+fbKlkmmMAPmZ4sPPTCeNoL9HZbPUVbiCWN8I7novPE9TLVVktTM4ukkLnuJ6kldPg4fkk2/DncyfSKr09C2zaizXZzI6SvidM/lE7wv8AkU7rznsdUvG1Nvbk5FWz6r0O2XuPkj5EYYpJJ+isPfIm6NqCQcDySSk0/A2mvStrpepLtWu0kimYcRt+5+K1sZlqa6LmMp13ga1cuUnJ2zrQioqkM21VULfs7VzA4foLWeZ4fdUnjAHmrI/Uiv8A6OmpQffeXkfAD8lVyBlkY75K6XDhWO/yc7ly++vwGMZljGM5I+qvWlpab2eMNiDQGjgAqNb4J2EftwR6cV6Et0Daihp5WjwyRtcPUIebGkhnCabZjTWykmOHsHDkU7U9BHF7ucLXFTljuSc4W8srnUb26OmmeI2Dgt7qzIw44C1BgwmLaq7w2a0S1Dj4sYYM8S7oEyKb0hcmvWRD9S9pI6qaCz0rsiM7ydw79B6c/kq/Mni7cM/RYmd9XUyVEpJe4l7s9StD3nWT105+y9NxsXw4lE8/nyfLkch32Lk07X21zjw3+r5L0HHUa25yvPWxzc7YW9nYk/wVdrKgsAHRcn6lKpx/R0+BG4N/6P8AFL4hxTg2IvZkc1HqSoy8EqUUUgfGFjxt3o0ZUq2f/9k=',- },-} as const;--export const USER_STORAGE_KEY = 'user';--localStorage.setItem(USER_STORAGE_KEY, JSON.stringify({ ...DEFAULT_USER }));--async function getUser(email: string) {- const sales = await dataProvider.getList('sales', {- pagination: { page: 1, perPage: 200 },- sort: { field: 'name', order: 'ASC' },- });-- if (!sales.data.length) {- return { ...DEFAULT_USER };- }-- const user = sales.data.find(sale => sale.email === email);- if (!user || user.disabled) {- return { ...DEFAULT_USER };- }- return user;-}--export const authProvider: AuthProvider = {- login: async ({ email }) => {- const user = await getUser(email);- localStorage.setItem(USER_STORAGE_KEY, JSON.stringify(user));- return Promise.resolve();- },- logout: () => {- localStorage.removeItem(USER_STORAGE_KEY);- return Promise.resolve();- },- checkError: () => Promise.resolve(),- checkAuth: () =>- localStorage.getItem(USER_STORAGE_KEY)- ? Promise.resolve()- : Promise.reject(),- canAccess: async ({ signal, ...params }) => {- // Get the current user- const userItem = localStorage.getItem(USER_STORAGE_KEY);- const localUser = userItem ? (JSON.parse(userItem) as Sale) : null;- if (!localUser) return false;-- // Compute access rights from the sale role- const role = localUser.administrator ? 'admin' : 'user';- return canAccess(role, params);- },- getIdentity: () => {- const userItem = localStorage.getItem(USER_STORAGE_KEY);- const user = userItem ? (JSON.parse(userItem) as Sale) : null;- return Promise.resolve({- id: user?.id ?? 0,- fullName: user- ? `${user.first_name} ${user.last_name}`- : 'Jane Doe',- avatar: user?.avatar?.src,- });+import { internet, name } from "faker/locale/en_US";++import { RAFile, Sale } from "../../../types";+import { Db } from "./types";++export const generateSales = (_: Db): Sale[] => {+ const randomSales = Array.from(Array(5).keys()).map((id) => {+ const first_name = name.firstName();+ const last_name = name.lastName();+ const email = internet.email(first_name, last_name);++ return {+ id: id + 1,+ user_id: `${id + 1}`,+ first_name,+ last_name,+ email,+ password: "demo",+ administrator: false,+ };+ });+ return [+ {+ id: 0,+ user_id: "0",+ first_name: "Jane",+ last_name: "Doe",+ email: "[email protected]",+ password: "demo",+ administrator: true,+ avatar: {+ src: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4gKgSUNDX1BST0ZJTEUAAQEAAAKQbGNtcwQwAABtbnRyUkdCIFhZWiAH3wAIABMAEgAWADFhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtkZXNjAAABCAAAADhjcHJ0AAABQAAAAE53dHB0AAABkAAAABRjaGFkAAABpAAAACxyWFlaAAAB0AAAABRiWFlaAAAB5AAAABRnWFlaAAAB+AAAABRyVFJDAAACDAAAACBnVFJDAAACLAAAACBiVFJDAAACTAAAACBjaHJtAAACbAAAACRtbHVjAAAAAAAAAAEAAAAMZW5VUwAAABwAAAAcAHMAUgBHAEIAIABiAHUAaQBsAHQALQBpAG4AAG1sdWMAAAAAAAAAAQAAAAxlblVTAAAAMgAAABwATgBvACAAYwBvAHAAeQByAGkAZwBoAHQALAAgAHUAcwBlACAAZgByAGUAZQBsAHkAAAAAWFlaIAAAAAAAAPbWAAEAAAAA0y1zZjMyAAAAAAABDEoAAAXj///zKgAAB5sAAP2H///7ov///aMAAAPYAADAlFhZWiAAAAAAAABvlAAAOO4AAAOQWFlaIAAAAAAAACSdAAAPgwAAtr5YWVogAAAAAAAAYqUAALeQAAAY3nBhcmEAAAAAAAMAAAACZmYAAPKnAAANWQAAE9AAAApbcGFyYQAAAAAAAwAAAAJmZgAA8qcAAA1ZAAAT0AAACltwYXJhAAAAAAADAAAAAmZmAADypwAADVkAABPQAAAKW2Nocm0AAAAAAAMAAAAAo9cAAFR7AABMzQAAmZoAACZmAAAPXP/bAEMACAYGBwYFCAcHBwkJCAoMFA0MCwsMGRITDxQdGh8eHRocHCAkLicgIiwjHBwoNyksMDE0NDQfJzk9ODI8LjM0Mv/bAEMBCQkJDAsMGA0NGDIhHCEyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMv/AABEIAIAAgAMBIgACEQEDEQH/xAAcAAABBAMBAAAAAAAAAAAAAAABAAUGBwIDBAj/xAA2EAABAwMBBgMHAwQDAQAAAAABAAIDBAUREgYTITFBUSJxgRQyYZGxwdEHQqEkUmLhFRYjkv/EABoBAAIDAQEAAAAAAAAAAAAAAAIDAAEEBQb/xAAkEQACAgIDAAEEAwAAAAAAAAAAAQIRAyEEEjETBSJRcTJBYf/aAAwDAQACEQMRAD8AuIIoIogAooIqygorB72xsc97g1rRkk9FFrlfnVD3Rwu0Qj5uQyko+hRi5eEjlr6aEkOlBI6N4rSbpCG6j4R0zzPoFEIpZpn+Ahv+TuJ9E9Qtipodc0haD15ud5BI+Vsb8aXoq/a6GgJ1UsrgBknTj6rgp/1JtEkgjnbNTk9Xxkt/+m5Cbrvbam9sc2XeU9G0jTFry6Q9M/hddk/T6kpId7UwNmqJCOBOGxjoD3KLvIroiX0VxprhCJaeVr2njlpyutR+k2dlttQZ4KwMZpwIGjwD5lbI785leaSppZWHmJG+JpHfKYppgOLQ9pIAhwBHIpIwBJFJBQhgiEAiFRYQkgmzaCuNDaZHsOJHeBvmVG6VkSt0Me0l93spoqY5Y0+N3Qn8JgjdrcA3xOPU9f8AS485Jy4c8ucep/CzirNBIh4D9zz1WGU7dmyMElRIIXspeBw+fGeJ4N8/wtsEstTUtHFzz1Pb7BNVHvJQA0EAnOo83fH/AGpBR7qniw14yfekz9+qFMNxHiljYwjhqc3kTxPxwnaIZA+6ZoJWDGhjnZ68gnaEvewftHw4BOixTVGc2GsOdI4c3KFXmSuq75Rw0kQ3EWZKieQaQG8g0D4n7KauaGgiNu8eeJJPBN89JLUN8btWg5HDAL++OwUZSMbTWxV9vZNFqxyIcMEELuTdTBtNUbiP3A0D5BOC0QdozzVMWUksoIwTBFBIKEMlFdtJSIKaMHHEuKlKg+3Ly6rgizhugl3wHVLyv7WMxK5Ih8k2+IAJEecNGeLvj5LvoossDsZHl9E2x6ZZNTvDGPp2WFde45P6WlqI4tPAZIGT6rAb0vwSiOox4RgA+84nn6ruiuAhLdA1n+5x5Kt6SsrYagtqqkyuJ8Jxj+FLpIql9qM0b9GW8Ceioaoa2TigrXStDsMb8SOKeYtUgGpxLe5+wVQ2eouftIabs52T7ugHPqrOtNNX7gb+r3zSPE1zNJPljknQaehGSFDo6piax5Em7iZ78h+gXJV1OId7lzIgzIYOePyue4QvxGGs8OsAN6D/ACPfH1QinirgZmODoi4Mb5BFYlqjfSsc58kjxgkN4dua61wWWqFbb2VGCDM4uAPMN6LsJ4p+LwRlM8pZWGUU0UBFYhFUWFV/t0S67xR8muhGT8MqwFDNvKJz4IqxgyWjQ49uyXl3EbidSKxrp31VWaKnJaxoySO6aX7INZG9swlcHuD3OyMkjlxKdLWA2uqJH/3NH8KRVNWz2XJ7LCm1tHSUIyWyL0NvdC6CnBeQHjRqOSB2VwVdnd/1YwRt/wDQx8Pkq4sX9XdoXubpZrGCeo7q7i3eW0OjbqLW8B3RRjdkm+tJHn6usdbV1JY6rnpmBww5jT4QPLn6q09jLdcKBsRgv0lZSFgaaaoYXBuBza4kuB7g5HwCa6y50tRWvi3ZjeHYc1wwQVMdm42NaC3lhXBu6JkikuzHS4QuNuqCPf3biPPCqj9OdonubHa6txLyXkPJ65JH1x6K27tKYrXVPAyRE/A7nBVE7OUEtJtDSs0k6JwHO8zghMemZ6bjZcdqjZT0jo2DAY4tC68rVBHuosY4klx81sWnGqiYcjuRkllAIhGCBFBFUWFc9dSR11FLTyDLXtI8l0BJUXZRt4tNRZ7hPFI3Trw5p6HHBcEk0jgwO93l6q3tsrJ/y1oL4WZqYTqZ8R1H0VRVEDKqikgkaQRkdiCsOWHWR0+Pk7RFRzVNHXQmNwc1pHAHBVq2m+19QIzTgMhaMFsjclx+ap2wW6gn3dNXvqIpA7G+DstcB9CrVtVqsVDa4Zpa2eUmPIDS4knIzgD4FUou9Dvtqpe/oZ9qrfUR1Elw3ZDy7UeGAVKtibgKi3skzwPDj0KiV7ornc6xk8EtdTW+QhraSZ+S49SW8cAeamWzlsFupBG39ztXkotSKl/CmO21N3pbLs7U3GtL/Z4tOsMGScuAwB6qK7JUrbs1t6ex+5kOuESBoceJ4uDeGfJP+1NpO0NLSWyRgNE6cS1Rzza3iGjzOPknKCnipadkEEbY4o2hrWtGAAFojj7O2YJ5eq6oyKCywlhaTIBEJJKEMQigEVRYUViioQJAIIPVVrtzYW0FY2507cQVLtMoH7X9/X6hWVlcl0pKWvtlRTVuPZ3sOs5xpxx1A9COaDJDtGhuKbhKyjW2uT2newSuZq544g+in2ytGYpGzTPMj28WgNAwofRV0cFU6F7w5oOGudw1DoVPbRdKCBrdU0eojg1pyT6BYbr+zsd5dKRIvZN6/ey4yPhyXRTx+PDeXfssaZz6wBzssj6N6nzTiyJrAABgI1vaMrdaZp06SQTniktkvv5WtbIO4o5+RVJgwkikjAAkigVCGsJZWuSaOGMySvaxg5uccAJiqtqqeNxbSxOmP9x8I/KCU4x9DjCUvESIJuvG0Fp2fp2zXWvhpWPzo3h4uxzwBxKi1XtTcJGnS5sDe7Bx+ZVD7WX+p2gvs1TNM+VkZ3cOp2fCD9+amOayPReTG4LZaF2/XVjKmRlotTZIG5DZal5Bce+kch5lcLNqL5erSJrhXPd7SNRiYA2No6AAKocHGOqs21NJs1K3HERgfwg5T6xSQzixTk2zAtEziCn6wwbmoa4DHHoE1tgO9BA9FJLfTua0ODeK5sjpw0WFaagua0Ek+akAcC3KiNnbI0AkKTsfiLJTsb0IyrZue3U3yULuW39stV+fbKlkmmMAPmZ4sPPTCeNoL9HZbPUVbiCWN8I7novPE9TLVVktTM4ukkLnuJ6kldPg4fkk2/DncyfSKr09C2zaizXZzI6SvidM/lE7wv8AkU7rznsdUvG1Nvbk5FWz6r0O2XuPkj5EYYpJJ+isPfIm6NqCQcDySSk0/A2mvStrpepLtWu0kimYcRt+5+K1sZlqa6LmMp13ga1cuUnJ2zrQioqkM21VULfs7VzA4foLWeZ4fdUnjAHmrI/Uiv8A6OmpQffeXkfAD8lVyBlkY75K6XDhWO/yc7ly++vwGMZljGM5I+qvWlpab2eMNiDQGjgAqNb4J2EftwR6cV6Et0Daihp5WjwyRtcPUIebGkhnCabZjTWykmOHsHDkU7U9BHF7ucLXFTljuSc4W8srnUb26OmmeI2Dgt7qzIw44C1BgwmLaq7w2a0S1Dj4sYYM8S7oEyKb0hcmvWRD9S9pI6qaCz0rsiM7ydw79B6c/kq/Mni7cM/RYmd9XUyVEpJe4l7s9StD3nWT105+y9NxsXw4lE8/nyfLkch32Lk07X21zjw3+r5L0HHUa25yvPWxzc7YW9nYk/wVdrKgsAHRcn6lKpx/R0+BG4N/6P8AFL4hxTg2IvZkc1HqSoy8EqUUUgfGFjxt3o0ZUq2f/9k=",+ } as RAFile,},+ ...randomSales,+ ];};diff --git a/src/atomic-crm/providers/fakerest/dataGenerator/tags.ts b/src/atomic-crm/providers/fakerest/dataGenerator/tags.tsnew file mode 100644index 00000000..77ef635c--- /dev/null+++ b/src/atomic-crm/providers/fakerest/dataGenerator/tags.ts@@ -0,0 +1,14 @@+import { Db } from "./types";++const tags = [+ { id: 0, name: "football-fan", color: "#424D5B" },+ { id: 1, name: "holiday-card", color: "#535F7D" },+ { id: 2, name: "influencer", color: "#C1050D" },+ { id: 3, name: "manager", color: "#6C5B61" },+ { id: 4, name: "musician", color: "#494582" },+ { id: 5, name: "vip", color: "#765A3A" },+];++export const generateTags = (_: Db) => {+ return [...tags];+};diff --git a/src/atomic-crm/providers/fakerest/dataGenerator/tasks.ts b/src/atomic-crm/providers/fakerest/dataGenerator/tasks.tsnew file mode 100644index 00000000..2eab7adc--- /dev/null+++ b/src/atomic-crm/providers/fakerest/dataGenerator/tasks.ts@@ -0,0 +1,55 @@+import { datatype, lorem, random } from "faker/locale/en_US";++import { defaultTaskTypes } from "../../../root/defaultConfiguration";+import { Task } from "../../../types";+import { Db } from "./types";+import { randomDate } from "./utils";++type TaskType = (typeof defaultTaskTypes)[number];++export const type: TaskType[] = [+ "Email",+ "Email",+ "Email",+ "Email",+ "Email",+ "Email",+ "Call",+ "Call",+ "Call",+ "Call",+ "Call",+ "Call",+ "Call",+ "Call",+ "Call",+ "Call",+ "Call",+ "Demo",+ "Lunch",+ "Meeting",+ "Follow-up",+ "Follow-up",+ "Thank you",+ "Ship",+ "None",+];++export const generateTasks = (db: Db) => {+ return Array.from(Array(400).keys()).map<Task>((id) => {+ const contact = random.arrayElement(db.contacts);+ contact.nb_tasks++;+ return {+ id,+ contact_id: contact.id,+ type: random.arrayElement(defaultTaskTypes),+ text: lorem.sentence(),+ due_date: randomDate(+ datatype.boolean() ? new Date() : new Date(contact.first_seen),+ new Date(Date.now() + 100 * 24 * 60 * 60 * 1000)+ ).toISOString(),+ done_date: undefined,+ sales_id: 0,+ };+ });+};diff --git a/src/atomic-crm/providers/fakerest/dataGenerator/types.ts b/src/atomic-crm/providers/fakerest/dataGenerator/types.tsnew file mode 100644index 00000000..4b59d965--- /dev/null+++ b/src/atomic-crm/providers/fakerest/dataGenerator/types.ts@@ -0,0 +1,21 @@+import {+ Company,+ Contact,+ ContactNote,+ Deal,+ DealNote,+ Sale,+ Tag,+ Task,+} from "../../../types";++export interface Db {+ companies: Required<Company>[];+ contacts: Required<Contact>[];+ contactNotes: ContactNote[];+ deals: Deal[];+ dealNotes: DealNote[];+ sales: Sale[];+ tags: Tag[];+ tasks: Task[];+}diff --git a/src/atomic-crm/providers/fakerest/dataGenerator/utils.ts b/src/atomic-crm/providers/fakerest/dataGenerator/utils.tsnew file mode 100644index 00000000..34e7301e--- /dev/null+++ b/src/atomic-crm/providers/fakerest/dataGenerator/utils.ts@@ -0,0 +1,28 @@+import faker from "faker/locale/en";++export const weightedArrayElement = (values: any[], weights: any) =>+ faker.random.arrayElement(+ values.reduce(+ (acc, value, index) => acc.concat(new Array(weights[index]).fill(value)),+ []+ )+ );++export const weightedBoolean = (likelyhood: number) =>+ faker.datatype.number(99) < likelyhood;++export const randomDate = (minDate?: Date, maxDate?: Date) => {+ const minTs =+ minDate instanceof Date+ ? minDate.getTime()+ : Date.now() - 5 * 365 * 24 * 60 * 60 * 1000; // 5 years+ const maxTs = maxDate instanceof Date ? maxDate.getTime() : Date.now();+ const range = maxTs - minTs;+ const randomRange = faker.datatype.number({ max: range });+ // move it more towards today to account for traffic increase+ const ts = Math.sqrt(randomRange / range) * range;+ return new Date(minTs + ts);+};++export const randomFloat = (min: number, max: number) =>+ parseFloat(faker.datatype.number({ min, max, precision: 0.01 }).toFixed(2));diff --git a/src/atomic-crm/providers/fakerest/dataProvider.ts b/src/atomic-crm/providers/fakerest/dataProvider.tsnew file mode 100644index 00000000..52abecce--- /dev/null+++ b/src/atomic-crm/providers/fakerest/dataProvider.ts@@ -0,0 +1,513 @@+import {+ CreateParams,+ DataProvider,+ Identifier,+ ResourceCallbacks,+ UpdateParams,+ withLifecycleCallbacks,+} from "ra-core";+import fakeRestDataProvider from "ra-data-fakerest";+import {+ Company,+ Contact,+ Deal,+ Sale,+ SalesFormData,+ SignUpData,+ Task,+} from "../../types";+import { getActivityLog } from "../commons/activity";+import { getCompanyAvatar } from "../commons/getCompanyAvatar";+import { getContactAvatar } from "../commons/getContactAvatar";+import { CrmDataProvider } from "../types";+import { authProvider, USER_STORAGE_KEY } from "./authProvider";+import generateData from "./dataGenerator";+import { withSupabaseFilterAdapter } from "./internal/supabaseAdapter";++const baseDataProvider = fakeRestDataProvider(generateData(), true, 300);++const TASK_MARKED_AS_DONE = "TASK_MARKED_AS_DONE";+const TASK_MARKED_AS_UNDONE = "TASK_MARKED_AS_UNDONE";+const TASK_DONE_NOT_CHANGED = "TASK_DONE_NOT_CHANGED";+let taskUpdateType = TASK_DONE_NOT_CHANGED;++const processCompanyLogo = async (params: any) => {+ let logo = params.data.logo;++ if (typeof logo !== "object" || logo === null || !logo.src) {+ logo = await getCompanyAvatar(params.data);+ } else if (logo.rawFile instanceof File) {+ const base64Logo = await convertFileToBase64(logo);+ logo = { src: base64Logo, title: logo.title };+ }++ return {+ ...params,+ data: {+ ...params.data,+ logo,+ },+ };+};++async function processContactAvatar(+ params: UpdateParams<Contact>+): Promise<UpdateParams<Contact>>;++async function processContactAvatar(+ params: CreateParams<Contact>+): Promise<CreateParams<Contact>>;++async function processContactAvatar(+ params: CreateParams<Contact> | UpdateParams<Contact>+): Promise<CreateParams<Contact> | UpdateParams<Contact>> {+ const { data } = params;+ if (data.avatar?.src || !data.email_jsonb || !data.email_jsonb.length) {+ return params;+ }+ const avatarUrl = await getContactAvatar(data);++ // Clone the data and modify the clone+ const newData = { ...data, avatar: { src: avatarUrl || undefined } };++ return { ...params, data: newData };+}++async function fetchAndUpdateCompanyData(+ params: UpdateParams<Contact>,+ dataProvider: DataProvider+): Promise<UpdateParams<Contact>>;++async function fetchAndUpdateCompanyData(+ params: CreateParams<Contact>,+ dataProvider: DataProvider+): Promise<CreateParams<Contact>>;++async function fetchAndUpdateCompanyData(+ params: CreateParams<Contact> | UpdateParams<Contact>,+ dataProvider: DataProvider+): Promise<CreateParams<Contact> | UpdateParams<Contact>> {+ const { data } = params;+ const newData = { ...data };++ if (!newData.company_id) {+ return params;+ }++ const { data: company } = await dataProvider.getOne("companies", {+ id: newData.company_id,+ });++ if (!company) {+ return params;+ }++ newData.company_name = company.name;+ return { ...params, data: newData };+}++const dataProviderWithCustomMethod: CrmDataProvider = {+ ...baseDataProvider,+ unarchiveDeal: async (deal: Deal) => {+ // get all deals where stage is the same as the deal to unarchive+ const { data: deals } = await baseDataProvider.getList<Deal>("deals", {+ filter: { stage: deal.stage },+ pagination: { page: 1, perPage: 1000 },+ sort: { field: "index", order: "ASC" },+ });++ // set index for each deal starting from 1, if the deal to unarchive is found, set its index to the last one+ const updatedDeals = deals.map((d, index) => ({+ ...d,+ index: d.id === deal.id ? 0 : index + 1,+ archived_at: d.id === deal.id ? null : d.archived_at,+ }));++ return await Promise.all(+ updatedDeals.map((updatedDeal) =>+ dataProvider.update("deals", {+ id: updatedDeal.id,+ data: updatedDeal,+ previousData: deals.find((d) => d.id === updatedDeal.id),+ })+ )+ );+ },+ // We simulate a remote endpoint that is in charge of returning activity log+ getActivityLog: async (companyId?: Identifier) => {+ return getActivityLog(dataProvider, companyId);+ },+ async signUp({+ email,+ password,+ first_name,+ last_name,+ }: SignUpData): Promise<{ id: string; email: string; password: string }> {+ const user = await baseDataProvider.create("sales", {+ data: {+ email,+ first_name,+ last_name,+ },+ });++ return {+ ...user.data,+ password,+ };+ },+ async salesCreate({ ...data }: SalesFormData): Promise<Sale> {+ const user = await dataProvider.create("sales", {+ data: {+ ...data,+ password: "new_password",+ },+ });++ return {+ ...user.data,+ };+ },+ async salesUpdate(+ id: Identifier,+ data: Partial<Omit<SalesFormData, "password">>+ ): Promise<Partial<Omit<SalesFormData, "password">>> {+ const { data: previousData } = await dataProvider.getOne<Sale>("sales", {+ id,+ });++ if (!previousData) {+ throw new Error("User not found");+ }++ const { data: sale } = await dataProvider.update("sales", {+ id,+ data,+ previousData,+ });+ return sale;+ },+ async isInitialized(): Promise<boolean> {+ const sales = await dataProvider.getList<Sale>("sales", {+ filter: {},+ pagination: { page: 1, perPage: 1 },+ sort: { field: "id", order: "ASC" },+ });+ if (sales.data.length === 0) {+ return false;+ }+ return true;+ },+ updatePassword: async (id: Identifier): Promise<true> => {+ const currentUser = await authProvider.getIdentity?.();+ if (!currentUser) {+ throw new Error("User not found");+ }+ const { data: previousData } = await dataProvider.getOne<Sale>("sales", {+ id: currentUser.id,+ });++ if (!previousData) {+ throw new Error("User not found");+ }++ await dataProvider.update("sales", {+ id,+ data: {+ password: "demo_newPassword",+ },+ previousData,+ });++ return true;+ },+};++async function updateCompany(+ companyId: Identifier,+ updateFn: (company: Company) => Partial<Company>+) {+ const { data: company } = await dataProvider.getOne<Company>("companies", {+ id: companyId,+ });++ return await dataProvider.update("companies", {+ id: companyId,+ data: {+ ...updateFn(company),+ },+ previousData: company,+ });+}++export const dataProvider = withLifecycleCallbacks(+ withSupabaseFilterAdapter(dataProviderWithCustomMethod),+ [+ {+ resource: "sales",+ beforeCreate: async (params) => {+ const { data } = params;+ // If administrator role is not set, we simply set it to false+ if (data.administrator == null) {+ data.administrator = false;+ }+ return params;+ },+ afterSave: async (data) => {+ // Since the current user is stored in localStorage in fakerest authProvider+ // we need to update it to keep information up to date in the UI+ const currentUser = await authProvider.getIdentity?.();+ if (currentUser?.id === data.id) {+ localStorage.setItem(USER_STORAGE_KEY, JSON.stringify(data));+ }+ return data;+ },+ beforeDelete: async (params) => {+ if (params.meta?.identity?.id == null) {+ throw new Error("Identity MUST be set in meta");+ }++ const newSaleId = params.meta.identity.id as Identifier;++ const [companies, contacts, contactNotes, deals] = await Promise.all([+ dataProvider.getList("companies", {+ filter: { sales_id: params.id },+ pagination: {+ page: 1,+ perPage: 10_000,+ },+ sort: { field: "id", order: "ASC" },+ }),+ dataProvider.getList("contacts", {+ filter: { sales_id: params.id },+ pagination: {+ page: 1,+ perPage: 10_000,+ },+ sort: { field: "id", order: "ASC" },+ }),+ dataProvider.getList("contactNotes", {+ filter: { sales_id: params.id },+ pagination: {+ page: 1,+ perPage: 10_000,+ },+ sort: { field: "id", order: "ASC" },+ }),+ dataProvider.getList("deals", {+ filter: { sales_id: params.id },+ pagination: {+ page: 1,+ perPage: 10_000,+ },+ sort: { field: "id", order: "ASC" },+ }),+ ]);++ await Promise.all([+ dataProvider.updateMany("companies", {+ ids: companies.data.map((company) => company.id),+ data: {+ sales_id: newSaleId,+ },+ }),+ dataProvider.updateMany("contacts", {+ ids: contacts.data.map((company) => company.id),+ data: {+ sales_id: newSaleId,+ },+ }),+ dataProvider.updateMany("contactNotes", {+ ids: contactNotes.data.map((company) => company.id),+ data: {+ sales_id: newSaleId,+ },+ }),+ dataProvider.updateMany("deals", {+ ids: deals.data.map((company) => company.id),+ data: {+ sales_id: newSaleId,+ },+ }),+ ]);++ return params;+ },+ } satisfies ResourceCallbacks<Sale>,+ {+ resource: "contacts",+ beforeCreate: async (params, dataProvider) => {+ const newParams = await processContactAvatar(params);+ return fetchAndUpdateCompanyData(newParams, dataProvider);+ },+ afterCreate: async (result) => {+ if (result.data.company_id != null) {+ await updateCompany(result.data.company_id, (company) => ({+ nb_contacts: (company.nb_contacts ?? 0) + 1,+ }));+ }++ return result;+ },+ beforeUpdate: async (params) => {+ const newParams = await processContactAvatar(params);+ return fetchAndUpdateCompanyData(newParams, dataProvider);+ },+ afterDelete: async (result) => {+ if (result.data.company_id != null) {+ await updateCompany(result.data.company_id, (company) => ({+ nb_contacts: (company.nb_contacts ?? 1) - 1,+ }));+ }++ return result;+ },+ } satisfies ResourceCallbacks<Contact>,+ {+ resource: "tasks",+ afterCreate: async (result, dataProvider) => {+ // update the task count in the related contact+ const { contact_id } = result.data;+ const { data: contact } = await dataProvider.getOne("contacts", {+ id: contact_id,+ });+ await dataProvider.update("contacts", {+ id: contact_id,+ data: {+ nb_tasks: (contact.nb_tasks ?? 0) + 1,+ },+ previousData: contact,+ });+ return result;+ },+ beforeUpdate: async (params) => {+ const { data, previousData } = params;+ if (previousData.done_date !== data.done_date) {+ taskUpdateType = data.done_date+ ? TASK_MARKED_AS_DONE+ : TASK_MARKED_AS_UNDONE;+ } else {+ taskUpdateType = TASK_DONE_NOT_CHANGED;+ }+ return params;+ },+ afterUpdate: async (result, dataProvider) => {+ // update the contact: if the task is done, decrement the nb tasks, otherwise increment it+ const { contact_id } = result.data;+ const { data: contact } = await dataProvider.getOne("contacts", {+ id: contact_id,+ });+ if (taskUpdateType !== TASK_DONE_NOT_CHANGED) {+ await dataProvider.update("contacts", {+ id: contact_id,+ data: {+ nb_tasks:+ taskUpdateType === TASK_MARKED_AS_DONE+ ? (contact.nb_tasks ?? 0) - 1+ : (contact.nb_tasks ?? 0) + 1,+ },+ previousData: contact,+ });+ }+ return result;+ },+ afterDelete: async (result, dataProvider) => {+ // update the task count in the related contact+ const { contact_id } = result.data;+ const { data: contact } = await dataProvider.getOne("contacts", {+ id: contact_id,+ });+ await dataProvider.update("contacts", {+ id: contact_id,+ data: {+ nb_tasks: (contact.nb_tasks ?? 0) - 1,+ },+ previousData: contact,+ });+ return result;+ },+ } satisfies ResourceCallbacks<Task>,+ {+ resource: "companies",+ beforeCreate: async (params) => {+ const createParams = await processCompanyLogo(params);++ return {+ ...createParams,+ data: {+ ...createParams.data,+ created_at: new Date().toISOString(),+ },+ };+ },+ beforeUpdate: async (params) => {+ return await processCompanyLogo(params);+ },+ afterUpdate: async (result, dataProvider) => {+ // get all contacts of the company and for each contact, update the company_name+ const { id, name } = result.data;+ const { data: contacts } = await dataProvider.getList("contacts", {+ filter: { company_id: id },+ pagination: { page: 1, perPage: 1000 },+ sort: { field: "id", order: "ASC" },+ });++ const contactIds = contacts.map((contact) => contact.id);+ await dataProvider.updateMany("contacts", {+ ids: contactIds,+ data: { company_name: name },+ });+ return result;+ },+ } satisfies ResourceCallbacks<Company>,+ {+ resource: "deals",+ beforeCreate: async (params) => {+ return {+ ...params,+ data: {+ ...params.data,+ created_at: new Date().toISOString(),+ updated_at: new Date().toISOString(),+ },+ };+ },+ afterCreate: async (result) => {+ await updateCompany(result.data.company_id, (company) => ({+ nb_deals: (company.nb_deals ?? 0) + 1,+ }));++ return result;+ },+ beforeUpdate: async (params) => {+ return {+ ...params,+ data: {+ ...params.data,+ updated_at: new Date().toISOString(),+ },+ };+ },+ afterDelete: async (result) => {+ await updateCompany(result.data.company_id, (company) => ({+ nb_deals: (company.nb_deals ?? 1) - 1,+ }));++ return result;+ },+ } satisfies ResourceCallbacks<Deal>,+ ]+);++/**+ * Convert a `File` object returned by the upload input into a base 64 string.+ * That's not the most optimized way to store images in production, but it's+ * enough to illustrate the idea of dataprovider decoration.+ */+const convertFileToBase64 = (file: { rawFile: Blob }) =>+ new Promise((resolve, reject) => {+ const reader = new FileReader();+ reader.onload = () => resolve(reader.result);+ reader.onerror = reject;+ reader.readAsDataURL(file.rawFile);+ });diff --git a/src/providers/fakerest/index.ts b/src/atomic-crm/providers/fakerest/index.tssimilarity index 100%rename from src/providers/fakerest/index.tsrename to src/atomic-crm/providers/fakerest/index.tsdiff --git a/src/providers/fakerest/internal/listParser.ts b/src/atomic-crm/providers/fakerest/internal/listParser.tssimilarity index 100%rename from src/providers/fakerest/internal/listParser.tsrename to src/atomic-crm/providers/fakerest/internal/listParser.tsdiff --git a/src/atomic-crm/providers/fakerest/internal/supabaseAdapter.spec.ts b/src/atomic-crm/providers/fakerest/internal/supabaseAdapter.spec.tsnew file mode 100644index 00000000..b86f697b--- /dev/null+++ b/src/atomic-crm/providers/fakerest/internal/supabaseAdapter.spec.ts@@ -0,0 +1,721 @@+import { DataProvider } from "ra-core";+import { withSupabaseFilterAdapter } from "./supabaseAdapter";++describe("getList", () => {+ it("should transform '@eq'", () => {+ const getList = vi.fn();+ const mockDataProvider = {+ getList,+ } as unknown as DataProvider;++ getList.mockResolvedValueOnce([{ id: 1 }]);++ const { getList: getListAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getListAdapter("resource", { filter: { "a@id@eq": "1" } })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getList).toHaveBeenCalledWith("resource", {+ filter: { "a@id_eq": "1" },+ });+ });++ it("should transform '@neq'", () => {+ const getList = vi.fn();+ const mockDataProvider = {+ getList,+ } as unknown as DataProvider;++ getList.mockResolvedValueOnce([{ id: 1 }]);++ const { getList: getListAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getListAdapter("resource", { filter: { "a@id@neq": "1" } })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getList).toHaveBeenCalledWith("resource", {+ filter: { "a@id_neq": "1" },+ });+ });++ it("should transform '@eq'", () => {+ const getList = vi.fn();+ const mockDataProvider = {+ getList,+ } as unknown as DataProvider;++ getList.mockResolvedValueOnce([{ id: 1 }]);++ const { getList: getListAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getListAdapter("resource", { filter: { "a@id@eq": "1" } })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getList).toHaveBeenCalledWith("resource", {+ filter: { "a@id_eq": "1" },+ });+ });++ it("should transform '@neq'", () => {+ const getList = vi.fn();+ const mockDataProvider = {+ getList,+ } as unknown as DataProvider;++ getList.mockResolvedValueOnce([{ id: 1 }]);++ const { getList: getListAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getListAdapter("resource", { filter: { "a@id@neq": "1" } })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getList).toHaveBeenCalledWith("resource", {+ filter: { "a@id_neq": "1" },+ });+ });++ it("should transform '@is'", () => {+ const getList = vi.fn();+ const mockDataProvider = {+ getList,+ } as unknown as DataProvider;++ getList.mockResolvedValueOnce([{ id: 1 }]);++ const { getList: getListAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getListAdapter("resource", { filter: { "id@is": null } })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getList).toHaveBeenCalledWith("resource", {+ filter: { id_eq: null },+ });+ });++ it("should transform '@not.is'", () => {+ const getList = vi.fn();+ const mockDataProvider = {+ getList,+ } as unknown as DataProvider;++ getList.mockResolvedValueOnce([{ id: 1 }]);++ const { getList: getListAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getListAdapter("resource", { filter: { "[email protected]": null } })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getList).toHaveBeenCalledWith("resource", {+ filter: { id_neq: null },+ });+ });++ it("should transform '@lt'", () => {+ const getList = vi.fn();+ const mockDataProvider = {+ getList,+ } as unknown as DataProvider;++ getList.mockResolvedValueOnce([{ id: 1 }]);++ const { getList: getListAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getListAdapter("resource", { filter: { "a@id@lt": "1" } })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getList).toHaveBeenCalledWith("resource", {+ filter: { "a@id_lt": "1" },+ });+ });++ it("should transform '@lte'", () => {+ const getList = vi.fn();+ const mockDataProvider = {+ getList,+ } as unknown as DataProvider;++ getList.mockResolvedValueOnce([{ id: 1 }]);++ const { getList: getListAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getListAdapter("resource", { filter: { "a@id@lte": "1" } })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getList).toHaveBeenCalledWith("resource", {+ filter: { "a@id_lte": "1" },+ });+ });++ it("should transform '@gt'", () => {+ const getList = vi.fn();+ const mockDataProvider = {+ getList,+ } as unknown as DataProvider;++ getList.mockResolvedValueOnce([{ id: 1 }]);++ const { getList: getListAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getListAdapter("resource", { filter: { "a@id@gt": "1" } })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getList).toHaveBeenCalledWith("resource", {+ filter: { "a@id_gt": "1" },+ });+ });++ it("should transform '@gte'", () => {+ const getList = vi.fn();+ const mockDataProvider = {+ getList,+ } as unknown as DataProvider;++ getList.mockResolvedValueOnce([{ id: 1 }]);++ const { getList: getListAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getListAdapter("resource", { filter: { "a@id@gte": "1" } })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getList).toHaveBeenCalledWith("resource", {+ filter: { "a@id_gte": "1" },+ });+ });++ it("should transform '@in'", () => {+ const getList = vi.fn();+ const mockDataProvider = {+ getList,+ } as unknown as DataProvider;++ getList.mockResolvedValueOnce([{ id: 1 }]);++ const { getList: getListAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getListAdapter("resource", { filter: { "id@in": "(1,2,a)" } })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getList).toHaveBeenCalledWith("resource", {+ filter: { id_eq_any: [1, 2, "a"] },+ });+ });++ it("should transform '@cs'", () => {+ const getList = vi.fn();+ const mockDataProvider = {+ getList,+ } as unknown as DataProvider;++ getList.mockResolvedValueOnce([{ id: 1 }]);++ const { getList: getListAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getListAdapter("resource", { filter: { "tags@cs": "{1,2,a}" } })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getList).toHaveBeenCalledWith("resource", {+ filter: { tags: [1, 2, "a"] },+ });+ });++ it("should transform '@or'", () => {+ const getList = vi.fn();+ const mockDataProvider = {+ getList,+ } as unknown as DataProvider;++ getList.mockResolvedValueOnce([{ id: 1 }]);++ const { getList: getListAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getListAdapter("resource", {+ filter: { "@or": { last_name: "one" } },+ })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getList).toHaveBeenCalledWith("resource", {+ filter: { q: "one" },+ });+ });++ it("should not transform a filter without operator", () => {+ const getList = vi.fn();+ const mockDataProvider = {+ getList,+ } as unknown as DataProvider;++ getList.mockResolvedValueOnce([{ id: 1 }]);++ const { getList: getListAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(getListAdapter("resource", { filter: { id: 1 } })).resolves.toEqual([+ { id: 1 },+ ]);++ expect(getList).toHaveBeenCalledWith("resource", {+ filter: { id: 1 },+ });+ });+});++describe("getManyReference", () => {+ it("should transform @eq", () => {+ const getManyReference = vi.fn();+ const mockDataProvider = {+ getManyReference,+ } as unknown as DataProvider;++ getManyReference.mockResolvedValueOnce([{ id: 1 }]);++ const { getManyReference: getManyReferenceAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getManyReferenceAdapter("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "a@id@eq": "2" },+ })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getManyReference).toHaveBeenCalledWith("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "a@id_eq": "2" },+ });+ });++ it("should transform @neq", () => {+ const getManyReference = vi.fn();+ const mockDataProvider = {+ getManyReference,+ } as unknown as DataProvider;++ getManyReference.mockResolvedValueOnce([{ id: 1 }]);++ const { getManyReference: getManyReferenceAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getManyReferenceAdapter("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "a@id@neq": "2" },+ })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getManyReference).toHaveBeenCalledWith("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "a@id_neq": "2" },+ });+ });++ it("should transform @is", () => {+ const getManyReference = vi.fn();+ const mockDataProvider = {+ getManyReference,+ } as unknown as DataProvider;++ getManyReference.mockResolvedValueOnce([{ id: 1 }]);++ const { getManyReference: getManyReferenceAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getManyReferenceAdapter("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "id@is": null },+ })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getManyReference).toHaveBeenCalledWith("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { id_eq: null },+ });+ });++ it("should transform @not.is", () => {+ const getManyReference = vi.fn();+ const mockDataProvider = {+ getManyReference,+ } as unknown as DataProvider;++ getManyReference.mockResolvedValueOnce([{ id: 1 }]);++ const { getManyReference: getManyReferenceAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getManyReferenceAdapter("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "[email protected]": null },+ })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getManyReference).toHaveBeenCalledWith("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { id_neq: null },+ });+ });++ it("should transform @lt", () => {+ const getManyReference = vi.fn();+ const mockDataProvider = {+ getManyReference,+ } as unknown as DataProvider;++ getManyReference.mockResolvedValueOnce([{ id: 1 }]);++ const { getManyReference: getManyReferenceAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getManyReferenceAdapter("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "a@id@lt": "2" },+ })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getManyReference).toHaveBeenCalledWith("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "a@id_lt": "2" },+ });+ });++ it("should transform @lte", () => {+ const getManyReference = vi.fn();+ const mockDataProvider = {+ getManyReference,+ } as unknown as DataProvider;++ getManyReference.mockResolvedValueOnce([{ id: 1 }]);++ const { getManyReference: getManyReferenceAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getManyReferenceAdapter("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "a@id@lte": "2" },+ })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getManyReference).toHaveBeenCalledWith("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "a@id_lte": "2" },+ });+ });++ it("should transform @gt", () => {+ const getManyReference = vi.fn();+ const mockDataProvider = {+ getManyReference,+ } as unknown as DataProvider;++ getManyReference.mockResolvedValueOnce([{ id: 1 }]);++ const { getManyReference: getManyReferenceAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getManyReferenceAdapter("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "a@id@gt": "2" },+ })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getManyReference).toHaveBeenCalledWith("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "a@id_gt": "2" },+ });+ });++ it("should transform @gte", () => {+ const getManyReference = vi.fn();+ const mockDataProvider = {+ getManyReference,+ } as unknown as DataProvider;++ getManyReference.mockResolvedValueOnce([{ id: 1 }]);++ const { getManyReference: getManyReferenceAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getManyReferenceAdapter("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "a@id@gte": "2" },+ })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getManyReference).toHaveBeenCalledWith("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "a@id_gte": "2" },+ });+ });++ it("should transform '@in'", () => {+ const getManyReference = vi.fn();+ const mockDataProvider = {+ getManyReference,+ } as unknown as DataProvider;++ getManyReference.mockResolvedValueOnce([{ id: 1 }]);++ const { getManyReference: getManyReferenceAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getManyReferenceAdapter("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "id@in": "(1,2,a)" },+ })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getManyReference).toHaveBeenCalledWith("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { id_eq_any: [1, 2, "a"] },+ });+ });++ it("should transform '@cs'", () => {+ const getManyReference = vi.fn();+ const mockDataProvider = {+ getManyReference,+ } as unknown as DataProvider;++ getManyReference.mockResolvedValueOnce([{ id: 1 }]);++ const { getManyReference: getManyReferenceAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getManyReferenceAdapter("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "tags@cs": "{1,2,a}" },+ })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getManyReference).toHaveBeenCalledWith("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { tags: [1, 2, "a"] },+ });+ });++ it("should transform '@or'", () => {+ const getManyReference = vi.fn();+ const mockDataProvider = {+ getManyReference,+ } as unknown as DataProvider;++ getManyReference.mockResolvedValueOnce([{ id: 1 }]);++ const { getManyReference: getManyReferenceAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getManyReferenceAdapter("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { "@or": { last_name: "one" } },+ })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getManyReference).toHaveBeenCalledWith("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { q: "one" },+ });+ });++ it("should not transform a filter without operator", () => {+ const getManyReference = vi.fn();+ const mockDataProvider = {+ getManyReference,+ } as unknown as DataProvider;++ getManyReference.mockResolvedValueOnce([{ id: 1 }]);++ const { getManyReference: getManyReferenceAdapter } =+ withSupabaseFilterAdapter(mockDataProvider);++ expect(+ getManyReferenceAdapter("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { id: 2 },+ })+ ).resolves.toEqual([{ id: 1 }]);++ expect(getManyReference).toHaveBeenCalledWith("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: { id: 2 },+ });+ });+});++it("should remove summary suffix", () => {+ const getOne = vi.fn();+ const getList = vi.fn();+ const getMany = vi.fn();+ const getManyReference = vi.fn();+ const create = vi.fn();+ const del = vi.fn();+ const deleteMany = vi.fn();+ const update = vi.fn();+ const updateMany = vi.fn();++ const dataProvider: DataProvider = withSupabaseFilterAdapter({+ getOne,+ getList,+ getMany,+ getManyReference,+ create,+ delete: del,+ deleteMany,+ update,+ updateMany,+ });++ expect(+ Promise.all([+ dataProvider.getOne("resource_summary", { id: 1 }),+ dataProvider.getList("resource_summary", {+ pagination: { page: 1, perPage: 10 },+ }),+ dataProvider.getMany("resource_summary", { ids: [1] }),+ dataProvider.getManyReference("resource_summary", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: {},+ }),+ dataProvider.create("resource_summary", { data: {} }),+ dataProvider.delete("resource_summary", { id: 1 }),+ dataProvider.deleteMany("resource_summary", { ids: [1] }),+ dataProvider.update("resource_summary", {+ id: 1,+ data: {},+ previousData: {},+ }),+ dataProvider.updateMany("resource_summary", { ids: [1], data: {} }),+ ])+ ).resolves.toHaveLength(9);++ expect(getOne).toHaveBeenCalledWith("resource", { id: 1 });+ expect(getList).toHaveBeenCalledWith("resource", {+ pagination: { page: 1, perPage: 10 },+ filter: undefined,+ });+ expect(getMany).toHaveBeenCalledWith("resource", { ids: [1] });+ expect(getManyReference).toHaveBeenCalledWith("resource", {+ id: 1,+ target: "target",+ pagination: { page: 1, perPage: 10 },+ sort: { field: "id", order: "ASC" },+ filter: {},+ });+ expect(create).toHaveBeenCalledWith("resource", { data: {} });+ expect(del).toHaveBeenCalledWith("resource", { id: 1 });+ expect(deleteMany).toHaveBeenCalledWith("resource", { ids: [1] });+ expect(update).toHaveBeenCalledWith("resource", {+ id: 1,+ data: {},+ previousData: {},+ });+ expect(updateMany).toHaveBeenCalledWith("resource", { ids: [1], data: {} });+});diff --git a/src/atomic-crm/providers/fakerest/internal/supabaseAdapter.ts b/src/atomic-crm/providers/fakerest/internal/supabaseAdapter.tsnew file mode 100644index 00000000..0666dfce--- /dev/null+++ b/src/atomic-crm/providers/fakerest/internal/supabaseAdapter.ts@@ -0,0 +1,49 @@+import { DataProvider } from "ra-core";+import { transformFilter } from "./transformFilter";++function removeSummarySuffix(resource: string) {+ return resource.endsWith("_summary")+ ? resource.replace("_summary", "")+ : resource;+}++export function withSupabaseFilterAdapter<T extends DataProvider>(+ dataProvider: T+): T {+ return {+ ...dataProvider,+ getOne(resource, params) {+ return dataProvider.getOne(removeSummarySuffix(resource), params);+ },+ getList(resource, params) {+ return dataProvider.getList(removeSummarySuffix(resource), {+ ...params,+ filter: transformFilter(params.filter),+ });+ },+ getMany(resource, params) {+ return dataProvider.getMany(removeSummarySuffix(resource), params);+ },+ getManyReference(resource, params) {+ return dataProvider.getManyReference(removeSummarySuffix(resource), {+ ...params,+ filter: transformFilter(params.filter),+ });+ },+ create(resource, params) {+ return dataProvider.create(removeSummarySuffix(resource), params);+ },+ delete(resource, params) {+ return dataProvider.delete(removeSummarySuffix(resource), params);+ },+ deleteMany(resource, params) {+ return dataProvider.deleteMany(removeSummarySuffix(resource), params);+ },+ update(resource, params) {+ return dataProvider.update(removeSummarySuffix(resource), params);+ },+ updateMany(resource, params) {+ return dataProvider.updateMany(removeSummarySuffix(resource), params);+ },+ };+}diff --git a/src/providers/fakerest/internal/transformContainsFilter.spec.ts b/src/atomic-crm/providers/fakerest/internal/transformContainsFilter.spec.tssimilarity index 100%rename from src/providers/fakerest/internal/transformContainsFilter.spec.tsrename to src/atomic-crm/providers/fakerest/internal/transformContainsFilter.spec.tsdiff --git a/src/providers/fakerest/internal/transformContainsFilter.ts b/src/atomic-crm/providers/fakerest/internal/transformContainsFilter.tssimilarity index 100%rename from src/providers/fakerest/internal/transformContainsFilter.tsrename to src/atomic-crm/providers/fakerest/internal/transformContainsFilter.tsdiff --git a/src/providers/fakerest/internal/transformFilter.ts b/src/atomic-crm/providers/fakerest/internal/transformFilter.tssimilarity index 100%rename from src/providers/fakerest/internal/transformFilter.tsrename to src/atomic-crm/providers/fakerest/internal/transformFilter.tsdiff --git a/src/providers/fakerest/internal/transformInFilter.spec.ts b/src/atomic-crm/providers/fakerest/internal/transformInFilter.spec.tssimilarity index 100%rename from src/providers/fakerest/internal/transformInFilter.spec.tsrename to src/atomic-crm/providers/fakerest/internal/transformInFilter.spec.tsdiff --git a/src/providers/fakerest/internal/transformInFilter.ts b/src/atomic-crm/providers/fakerest/internal/transformInFilter.tssimilarity index 100%rename from src/providers/fakerest/internal/transformInFilter.tsrename to src/atomic-crm/providers/fakerest/internal/transformInFilter.tsdiff --git a/src/providers/fakerest/internal/transformOrFilter.spec.ts b/src/atomic-crm/providers/fakerest/internal/transformOrFilter.spec.tssimilarity index 100%rename from src/providers/fakerest/internal/transformOrFilter.spec.tsrename to src/atomic-crm/providers/fakerest/internal/transformOrFilter.spec.tsdiff --git a/src/providers/fakerest/internal/transformOrFilter.ts b/src/atomic-crm/providers/fakerest/internal/transformOrFilter.tssimilarity index 100%rename from src/providers/fakerest/internal/transformOrFilter.tsrename to src/atomic-crm/providers/fakerest/internal/transformOrFilter.tsdiff --git a/src/atomic-crm/providers/supabase/authProvider.ts b/src/atomic-crm/providers/supabase/authProvider.tsnew file mode 100644index 00000000..a17f157f--- /dev/null+++ b/src/atomic-crm/providers/supabase/authProvider.ts@@ -0,0 +1,120 @@+/* eslint-disable no-var */+/* eslint-disable @typescript-eslint/no-namespace */+import { AuthProvider } from "ra-core";+import { supabaseAuthProvider } from "ra-supabase-core";+import { canAccess } from "../commons/canAccess";+import { supabase } from "./supabase";++const baseAuthProvider = supabaseAuthProvider(supabase, {+ getIdentity: async () => {+ const sale = await getSaleFromCache();++ if (sale == null) {+ throw new Error();+ }++ return {+ id: sale.id,+ fullName: `${sale.first_name} ${sale.last_name}`,+ avatar: sale.avatar?.src,+ };+ },+});++export async function getIsInitialized() {+ if (getIsInitialized._is_initialized_cache == null) {+ const { data } = await supabase.from("init_state").select("is_initialized");++ getIsInitialized._is_initialized_cache = data?.at(0)?.is_initialized > 0;+ }++ return getIsInitialized._is_initialized_cache;+}++export namespace getIsInitialized {+ export var _is_initialized_cache: boolean | null = null;+}++export const authProvider: AuthProvider = {+ ...baseAuthProvider,+ login: async (params) => {+ const result = await baseAuthProvider.login(params);+ // clear cached sale+ cachedSale = undefined;+ return result;+ },+ checkAuth: async (params) => {+ // Users are on the set-password page, nothing to do+ if (+ window.location.pathname === "/set-password" ||+ window.location.hash.includes("#/set-password")+ ) {+ return;+ }+ // Users are on the forgot-password page, nothing to do+ if (+ window.location.pathname === "/forgot-password" ||+ window.location.hash.includes("#/forgot-password")+ ) {+ return;+ }+ // Users are on the sign-up page, nothing to do+ if (+ window.location.pathname === "/sign-up" ||+ window.location.hash.includes("#/sign-up")+ ) {+ return;+ }++ const isInitialized = await getIsInitialized();++ if (!isInitialized) {+ await supabase.auth.signOut();+ throw {+ redirectTo: "/sign-up",+ message: false,+ };+ }++ return baseAuthProvider.checkAuth(params);+ },+ canAccess: async (params) => {+ const isInitialized = await getIsInitialized();+ if (!isInitialized) return false;++ // Get the current user+ const sale = await getSaleFromCache();+ if (sale == null) return false;++ // Compute access rights from the sale role+ const role = sale.administrator ? "admin" : "user";+ return canAccess(role, params);+ },+};++let cachedSale: any;+const getSaleFromCache = async () => {+ if (cachedSale != null) return cachedSale;++ const { data: dataSession, error: errorSession } =+ await supabase.auth.getSession();++ // Shouldn't happen after login but just in case+ if (dataSession?.session?.user == null || errorSession) {+ return undefined;+ }++ const { data: dataSale, error: errorSale } = await supabase+ .from("sales")+ .select("id, first_name, last_name, avatar, administrator")+ .match({ user_id: dataSession?.session?.user.id })+ .single();++ // Shouldn't happen either as all users are sales but just in case+ if (dataSale == null || errorSale) {+ return undefined;+ }++ cachedSale = dataSale;+ return dataSale;+};diff --git a/src/atomic-crm/providers/supabase/dataProvider.ts b/src/atomic-crm/providers/supabase/dataProvider.tsnew file mode 100644index 00000000..cd5c1622--- /dev/null+++ b/src/atomic-crm/providers/supabase/dataProvider.ts@@ -0,0 +1,392 @@+import { supabaseDataProvider } from "ra-supabase-core";++import {+ CreateParams,+ DataProvider,+ GetListParams,+ Identifier,+ UpdateParams,+ withLifecycleCallbacks,+} from "ra-core";+import {+ Contact,+ ContactNote,+ Deal,+ DealNote,+ RAFile,+ Sale,+ SalesFormData,+ SignUpData,+} from "../../types";+import { getActivityLog } from "../commons/activity";+import { getCompanyAvatar } from "../commons/getCompanyAvatar";+import { getContactAvatar } from "../commons/getContactAvatar";+import { getIsInitialized } from "./authProvider";+import { supabase } from "./supabase";++if (import.meta.env.VITE_SUPABASE_URL === undefined) {+ throw new Error("Please set the VITE_SUPABASE_URL environment variable");+}+if (import.meta.env.VITE_SUPABASE_ANON_KEY === undefined) {+ throw new Error("Please set the VITE_SUPABASE_ANON_KEY environment variable");+}++const baseDataProvider = supabaseDataProvider({+ instanceUrl: import.meta.env.VITE_SUPABASE_URL,+ apiKey: import.meta.env.VITE_SUPABASE_ANON_KEY,+ supabaseClient: supabase,+ sortOrder: "asc,desc.nullslast" as any,+});++const processCompanyLogo = async (params: any) => {+ let logo = params.data.logo;++ if (typeof logo !== "object" || logo === null || !logo.src) {+ logo = await getCompanyAvatar(params.data);+ } else if (logo.rawFile instanceof File) {+ await uploadToBucket(logo);+ }++ return {+ ...params,+ data: {+ ...params.data,+ logo,+ },+ };+};++async function processContactAvatar(+ params: UpdateParams<Contact>+): Promise<UpdateParams<Contact>>;++async function processContactAvatar(+ params: CreateParams<Contact>+): Promise<CreateParams<Contact>>;++async function processContactAvatar(+ params: CreateParams<Contact> | UpdateParams<Contact>+): Promise<CreateParams<Contact> | UpdateParams<Contact>> {+ const { data } = params;+ if (data.avatar?.src || !data.email_jsonb || !data.email_jsonb.length) {+ return params;+ }+ const avatarUrl = await getContactAvatar(data);++ // Clone the data and modify the clone+ const newData = { ...data, avatar: { src: avatarUrl || undefined } };++ return { ...params, data: newData };+}++const dataProviderWithCustomMethods = {+ ...baseDataProvider,+ async getList(resource: string, params: GetListParams) {+ if (resource === "companies") {+ return baseDataProvider.getList("companies_summary", params);+ }+ if (resource === "contacts") {+ return baseDataProvider.getList("contacts_summary", params);+ }++ return baseDataProvider.getList(resource, params);+ },+ async getOne(resource: string, params: any) {+ if (resource === "companies") {+ return baseDataProvider.getOne("companies_summary", params);+ }+ if (resource === "contacts") {+ return baseDataProvider.getOne("contacts_summary", params);+ }++ return baseDataProvider.getOne(resource, params);+ },++ async signUp({ email, password, first_name, last_name }: SignUpData) {+ const response = await supabase.auth.signUp({+ email,+ password,+ options: {+ data: {+ first_name,+ last_name,+ },+ },+ });++ if (!response.data?.user || response.error) {+ console.error("signUp.error", response.error);+ throw new Error("Failed to create account");+ }++ // Update the is initialized cache+ getIsInitialized._is_initialized_cache = true;++ return {+ id: response.data.user.id,+ email,+ password,+ };+ },+ async salesCreate(body: SalesFormData) {+ const { data, error } = await supabase.functions.invoke<Sale>("users", {+ method: "POST",+ body,+ });++ if (!data || error) {+ console.error("salesCreate.error", error);+ throw new Error("Failed to create account manager");+ }++ return data;+ },+ async salesUpdate(+ id: Identifier,+ data: Partial<Omit<SalesFormData, "password">>+ ) {+ const { email, first_name, last_name, administrator, avatar, disabled } =+ data;++ const { data: sale, error } = await supabase.functions.invoke<Sale>(+ "users",+ {+ method: "PATCH",+ body: {+ sales_id: id,+ email,+ first_name,+ last_name,+ administrator,+ disabled,+ avatar,+ },+ }+ );++ if (!sale || error) {+ console.error("salesCreate.error", error);+ throw new Error("Failed to update account manager");+ }++ return data;+ },+ async updatePassword(id: Identifier) {+ const { data: passwordUpdated, error } =+ await supabase.functions.invoke<boolean>("updatePassword", {+ method: "PATCH",+ body: {+ sales_id: id,+ },+ });++ if (!passwordUpdated || error) {+ console.error("passwordUpdate.error", error);+ throw new Error("Failed to update password");+ }++ return passwordUpdated;+ },+ async unarchiveDeal(deal: Deal) {+ // get all deals where stage is the same as the deal to unarchive+ const { data: deals } = await baseDataProvider.getList<Deal>("deals", {+ filter: { stage: deal.stage },+ pagination: { page: 1, perPage: 1000 },+ sort: { field: "index", order: "ASC" },+ });++ // set index for each deal starting from 1, if the deal to unarchive is found, set its index to the last one+ const updatedDeals = deals.map((d, index) => ({+ ...d,+ index: d.id === deal.id ? 0 : index + 1,+ archived_at: d.id === deal.id ? null : d.archived_at,+ }));++ return await Promise.all(+ updatedDeals.map((updatedDeal) =>+ baseDataProvider.update("deals", {+ id: updatedDeal.id,+ data: updatedDeal,+ previousData: deals.find((d) => d.id === updatedDeal.id),+ })+ )+ );+ },+ async getActivityLog(companyId?: Identifier) {+ return getActivityLog(baseDataProvider, companyId);+ },+ async isInitialized() {+ return getIsInitialized();+ },+} satisfies DataProvider;++export type CrmDataProvider = typeof dataProviderWithCustomMethods;++export const dataProvider = withLifecycleCallbacks(+ dataProviderWithCustomMethods,+ [+ {+ resource: "contactNotes",+ beforeSave: async (data: ContactNote, _, __) => {+ if (data.attachments) {+ for (const fi of data.attachments) {+ await uploadToBucket(fi);+ }+ }+ return data;+ },+ },+ {+ resource: "dealNotes",+ beforeSave: async (data: DealNote, _, __) => {+ if (data.attachments) {+ for (const fi of data.attachments) {+ await uploadToBucket(fi);+ }+ }+ return data;+ },+ },+ {+ resource: "sales",+ beforeSave: async (data: Sale, _, __) => {+ if (data.avatar) {+ await uploadToBucket(data.avatar);+ }+ return data;+ },+ },+ {+ resource: "contacts",+ beforeCreate: async (params) => {+ return processContactAvatar(params);+ },+ beforeUpdate: async (params) => {+ return processContactAvatar(params);+ },+ beforeGetList: async (params) => {+ return applyFullTextSearch([+ "first_name",+ "last_name",+ "company_name",+ "title",+ "email",+ "phone",+ "background",+ ])(params);+ },+ },+ {+ resource: "companies",+ beforeGetList: async (params) => {+ return applyFullTextSearch([+ "name",+ "phone_number",+ "website",+ "zipcode",+ "city",+ "stateAbbr",+ ])(params);+ },+ beforeCreate: async (params) => {+ const createParams = await processCompanyLogo(params);++ return {+ ...createParams,+ data: {+ ...createParams.data,+ created_at: new Date().toISOString(),+ },+ };+ },+ beforeUpdate: async (params) => {+ return await processCompanyLogo(params);+ },+ },+ {+ resource: "contacts_summary",+ beforeGetList: async (params) => {+ return applyFullTextSearch(["first_name", "last_name"])(params);+ },+ },+ {+ resource: "deals",+ beforeGetList: async (params) => {+ return applyFullTextSearch(["name", "type", "description"])(params);+ },+ },+ ]+);++const applyFullTextSearch = (columns: string[]) => (params: GetListParams) => {+ if (!params.filter?.q) {+ return params;+ }+ const { q, ...filter } = params.filter;+ return {+ ...params,+ filter: {+ ...filter,+ "@or": columns.reduce((acc, column) => {+ if (column === "email")+ return {+ ...acc,+ [`email_fts@ilike`]: q,+ };+ if (column === "phone")+ return {+ ...acc,+ [`phone_fts@ilike`]: q,+ };+ else+ return {+ ...acc,+ [`${column}@ilike`]: q,+ };+ }, {}),+ },+ };+};++const uploadToBucket = async (fi: RAFile) => {+ if (!fi.src.startsWith("blob:") && !fi.src.startsWith("data:")) {+ // Sign URL check if path exists in the bucket+ if (fi.path) {+ const { error } = await supabase.storage+ .from("attachments")+ .createSignedUrl(fi.path, 60);++ if (!error) {+ return;+ }+ }+ }++ const dataContent = fi.src+ ? await fetch(fi.src).then((res) => res.blob())+ : fi.rawFile;++ const file = fi.rawFile;+ const fileExt = file.name.split(".").pop();+ const fileName = `${Math.random()}.${fileExt}`;+ const filePath = `${fileName}`;+ const { error: uploadError } = await supabase.storage+ .from("attachments")+ .upload(filePath, dataContent);++ if (uploadError) {+ console.error("uploadError", uploadError);+ throw new Error("Failed to upload attachment");+ }++ const { data } = supabase.storage.from("attachments").getPublicUrl(filePath);++ fi.path = filePath;+ fi.src = data.publicUrl;++ // save MIME type+ const mimeType = file.type;+ fi.type = mimeType;++ return fi;+};diff --git a/src/providers/supabase/index.ts b/src/atomic-crm/providers/supabase/index.tssimilarity index 100%rename from src/providers/supabase/index.tsrename to src/atomic-crm/providers/supabase/index.tsdiff --git a/src/providers/supabase/supabase.ts b/src/atomic-crm/providers/supabase/supabase.tssimilarity index 100%rename from src/providers/supabase/supabase.tsrename to src/atomic-crm/providers/supabase/supabase.tsdiff --git a/src/providers/types.ts b/src/atomic-crm/providers/types.tssimilarity index 100%rename from src/providers/types.tsrename to src/atomic-crm/providers/types.tsdiff --git a/src/atomic-crm/root/CRM.tsx b/src/atomic-crm/root/CRM.tsxnew file mode 100644index 00000000..6ee81118--- /dev/null+++ b/src/atomic-crm/root/CRM.tsx@@ -0,0 +1,168 @@+import { Admin } from "@/components/admin";+import { ForgotPasswordPage } from "@/components/supabase/forgot-password-page";+import { SetPasswordPage } from "@/components/supabase/set-password-page";+import {+ AuthProvider,+ CustomRoutes,+ DataProvider,+ localStorageStore,+ Resource,+} from "ra-core";+import { useEffect } from "react";+import { Route } from "react-router";+import companies from "../companies";+import contacts from "../contacts";+import { Dashboard } from "../dashboard/Dashboard";+import deals from "../deals";+import { Layout } from "../layout/Layout";+import { SignupPage } from "../login/SignupPage";+import {+ authProvider as defaultAuthProvider,+ dataProvider as defaultDataProvider,+} from "../providers/supabase";+import sales from "../sales";+import { SettingsPage } from "../settings/SettingsPage";+import {+ ConfigurationContextValue,+ ConfigurationProvider,+} from "./ConfigurationContext";+import {+ defaultCompanySectors,+ defaultContactGender,+ defaultDarkModeLogo,+ defaultDealCategories,+ defaultDealPipelineStatuses,+ defaultDealStages,+ defaultLightModeLogo,+ defaultNoteStatuses,+ defaultTaskTypes,+ defaultTitle,+} from "./defaultConfiguration";+import { i18nProvider } from "./i18nProvider";+import { StartPage } from "@/atomic-crm/login/StartPage.tsx";++export type CRMProps = {+ dataProvider?: DataProvider;+ authProvider?: AuthProvider;+ disableTelemetry?: boolean;+} & Partial<ConfigurationContextValue>;++/**+ * CRM Component+ *+ * This component sets up and renders the main CRM application using `ra-core`. It provides+ * default configurations and themes but allows for customization through props. The component+ * wraps the application with a `ConfigurationProvider` to provide configuration values via context.+ *+ * @param {Array<ContactGender>} contactGender - The gender options for contacts used in the application.+ * @param {string[]} companySectors - The list of company sectors used in the application.+ * @param {RaThemeOptions} darkTheme - The theme to use when the application is in dark mode.+ * @param {string[]} dealCategories - The categories of deals used in the application.+ * @param {string[]} dealPipelineStatuses - The statuses of deals in the pipeline used in the application.+ * @param {DealStage[]} dealStages - The stages of deals used in the application.+ * @param {RaThemeOptions} lightTheme - The theme to use when the application is in light mode.+ * @param {string} logo - The logo used in the CRM application.+ * @param {NoteStatus[]} noteStatuses - The statuses of notes used in the application.+ * @param {string[]} taskTypes - The types of tasks used in the application.+ * @param {string} title - The title of the CRM application.+ *+ * @returns {JSX.Element} The rendered CRM application.+ *+ * @example+ * // Basic usage of the CRM component+ * import { CRM } from './CRM';+ *+ * const App = () => (+ * <CRM+ * logo="/path/to/logo.png"+ * title="My Custom CRM"+ * lightTheme={{+ * ...defaultTheme,+ * palette: {+ * primary: { main: '#0000ff' },+ * },+ * }}+ * />+ * );+ *+ * export default App;+ */+export const CRM = ({+ contactGender = defaultContactGender,+ companySectors = defaultCompanySectors,+ dealCategories = defaultDealCategories,+ dealPipelineStatuses = defaultDealPipelineStatuses,+ dealStages = defaultDealStages,+ darkModeLogo = defaultDarkModeLogo,+ lightModeLogo = defaultLightModeLogo,+ noteStatuses = defaultNoteStatuses,+ taskTypes = defaultTaskTypes,+ title = defaultTitle,+ dataProvider = defaultDataProvider,+ authProvider = defaultAuthProvider,+ disableTelemetry,+ ...rest+}: CRMProps) => {+ useEffect(() => {+ if (+ disableTelemetry ||+ process.env.NODE_ENV !== "production" ||+ typeof window === "undefined" ||+ typeof window.location === "undefined" ||+ typeof Image === "undefined"+ ) {+ return;+ }+ const img = new Image();+ img.src = `https://atomic-crm-telemetry.marmelab.com/atomic-crm-telemetry?domain=${window.location.hostname}`;+ }, [disableTelemetry]);++ return (+ <ConfigurationProvider+ contactGender={contactGender}+ companySectors={companySectors}+ dealCategories={dealCategories}+ dealPipelineStatuses={dealPipelineStatuses}+ dealStages={dealStages}+ darkModeLogo={darkModeLogo}+ lightModeLogo={lightModeLogo}+ noteStatuses={noteStatuses}+ taskTypes={taskTypes}+ title={title}+ >+ <Admin+ dataProvider={dataProvider}+ authProvider={authProvider}+ store={localStorageStore(undefined, "CRM")}+ layout={Layout}+ loginPage={StartPage}+ i18nProvider={i18nProvider}+ dashboard={Dashboard}+ requireAuth+ disableTelemetry+ {...rest}+ >+ <CustomRoutes noLayout>+ <Route path={SignupPage.path} element={<SignupPage />} />+ <Route path={SetPasswordPage.path} element={<SetPasswordPage />} />+ <Route+ path={ForgotPasswordPage.path}+ element={<ForgotPasswordPage />}+ />+ </CustomRoutes>++ <CustomRoutes>+ <Route path={SettingsPage.path} element={<SettingsPage />} />+ </CustomRoutes>+ <Resource name="deals" {...deals} />+ <Resource name="contacts" {...contacts} />+ <Resource name="companies" {...companies} />+ <Resource name="contactNotes" />+ <Resource name="dealNotes" />+ <Resource name="tasks" />+ <Resource name="sales" {...sales} />+ <Resource name="tags" />+ </Admin>+ </ConfigurationProvider>+ );+};diff --git a/src/atomic-crm/root/ConfigurationContext.tsx b/src/atomic-crm/root/ConfigurationContext.tsxnew file mode 100644index 00000000..9d94ac5a--- /dev/null+++ b/src/atomic-crm/root/ConfigurationContext.tsx@@ -0,0 +1,80 @@+/* eslint-disable react-refresh/only-export-components */+import { createContext, ReactNode, useContext } from "react";+import { ContactGender, DealStage, NoteStatus } from "../types";+import {+ defaultCompanySectors,+ defaultContactGender,+ defaultDarkModeLogo,+ defaultDealCategories,+ defaultDealPipelineStatuses,+ defaultDealStages,+ defaultLightModeLogo,+ defaultNoteStatuses,+ defaultTaskTypes,+ defaultTitle,+} from "./defaultConfiguration";++// Define types for the context value+export interface ConfigurationContextValue {+ companySectors: string[];+ dealCategories: string[];+ dealPipelineStatuses: string[];+ dealStages: DealStage[];+ noteStatuses: NoteStatus[];+ taskTypes: string[];+ title: string;+ darkModeLogo: string;+ lightModeLogo: string;+ contactGender: ContactGender[];+}++export interface ConfigurationProviderProps extends ConfigurationContextValue {+ children: ReactNode;+}++// Create context with default value+export const ConfigurationContext = createContext<ConfigurationContextValue>({+ companySectors: defaultCompanySectors,+ dealCategories: defaultDealCategories,+ dealPipelineStatuses: defaultDealPipelineStatuses,+ dealStages: defaultDealStages,+ noteStatuses: defaultNoteStatuses,+ taskTypes: defaultTaskTypes,+ title: defaultTitle,+ darkModeLogo: defaultDarkModeLogo,+ lightModeLogo: defaultLightModeLogo,+ contactGender: defaultContactGender,+});++export const ConfigurationProvider = ({+ children,+ companySectors,+ dealCategories,+ dealPipelineStatuses,+ dealStages,+ darkModeLogo,+ lightModeLogo,+ noteStatuses,+ taskTypes,+ title,+ contactGender,+}: ConfigurationProviderProps) => (+ <ConfigurationContext.Provider+ value={{+ companySectors,+ dealCategories,+ dealPipelineStatuses,+ dealStages,+ darkModeLogo,+ lightModeLogo,+ noteStatuses,+ title,+ taskTypes,+ contactGender,+ }}+ >+ {children}+ </ConfigurationContext.Provider>+);++export const useConfigurationContext = () => useContext(ConfigurationContext);diff --git a/src/atomic-crm/root/defaultConfiguration.ts b/src/atomic-crm/root/defaultConfiguration.tsnew file mode 100644index 00000000..dda6f16a--- /dev/null+++ b/src/atomic-crm/root/defaultConfiguration.ts@@ -0,0 +1,64 @@+import { Mars, NonBinary, Venus } from "lucide-react";++export const defaultDarkModeLogo = "./logos/logo_atomic_crm_dark.svg";+export const defaultLightModeLogo = "./logos/logo_atomic_crm_light.svg";++export const defaultTitle = "Atomic CRM";++export const defaultCompanySectors = [+ "Communication Services",+ "Consumer Discretionary",+ "Consumer Staples",+ "Energy",+ "Financials",+ "Health Care",+ "Industrials",+ "Information Technology",+ "Materials",+ "Real Estate",+ "Utilities",+];++export const defaultDealStages = [+ { value: "opportunity", label: "Opportunity" },+ { value: "proposal-sent", label: "Proposal Sent" },+ { value: "in-negociation", label: "In Negotiation" },+ { value: "won", label: "Won" },+ { value: "lost", label: "Lost" },+ { value: "delayed", label: "Delayed" },+];++export const defaultDealPipelineStatuses = ["won"];++export const defaultDealCategories = [+ "Other",+ "Copywriting",+ "Print project",+ "UI Design",+ "Website design",+];++export const defaultNoteStatuses = [+ { value: "cold", label: "Cold", color: "#7dbde8" },+ { value: "warm", label: "Warm", color: "#e8cb7d" },+ { value: "hot", label: "Hot", color: "#e88b7d" },+ { value: "in-contract", label: "In Contract", color: "#a4e87d" },+];++export const defaultTaskTypes = [+ "None",+ "Email",+ "Demo",+ "Lunch",+ "Meeting",+ "Follow-up",+ "Thank you",+ "Ship",+ "Call",+];++export const defaultContactGender = [+ { value: "male", label: "He/Him", icon: Mars },+ { value: "female", label: "She/Her", icon: Venus },+ { value: "nonbinary", label: "They/Them", icon: NonBinary },+];diff --git a/src/atomic-crm/root/i18nProvider.tsx b/src/atomic-crm/root/i18nProvider.tsxnew file mode 100644index 00000000..6d6372de--- /dev/null+++ b/src/atomic-crm/root/i18nProvider.tsx@@ -0,0 +1,25 @@+import { mergeTranslations } from "ra-core";+import polyglotI18nProvider from "ra-i18n-polyglot";+import englishMessages from "ra-language-english";+import { raSupabaseEnglishMessages } from "ra-supabase-language-english";++const raSupabaseEnglishMessagesOverride = {+ "ra-supabase": {+ auth: {+ password_reset: "Check your emails for a Reset Password message.",+ },+ },+};++export const i18nProvider = polyglotI18nProvider(+ () => {+ return mergeTranslations(+ englishMessages,+ raSupabaseEnglishMessages,+ raSupabaseEnglishMessagesOverride+ );+ },+ "en",+ [{ locale: "en", name: "English" }],+ { allowMissing: true }+);diff --git a/src/atomic-crm/sales/SaleName.tsx b/src/atomic-crm/sales/SaleName.tsxnew file mode 100644index 00000000..bc7fa8a4--- /dev/null+++ b/src/atomic-crm/sales/SaleName.tsx@@ -0,0 +1,12 @@+import { useGetIdentity, useRecordContext } from "ra-core";+import { Sale } from "../types";++export const SaleName = ({ sale }: { sale?: Sale }) => {+ const { identity, isPending } = useGetIdentity();+ const saleFromContext = useRecordContext<Sale>();+ const finalSale = sale || saleFromContext;+ if (isPending || !finalSale) return null;+ return finalSale.id === identity?.id+ ? "You"+ : `${finalSale.first_name} ${finalSale.last_name}`;+};diff --git a/src/atomic-crm/sales/SalesCreate.tsx b/src/atomic-crm/sales/SalesCreate.tsxnew file mode 100644index 00000000..faefddf5--- /dev/null+++ b/src/atomic-crm/sales/SalesCreate.tsx@@ -0,0 +1,50 @@+import { SimpleForm } from "@/components/admin";+import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";+import { useMutation } from "@tanstack/react-query";+import { useDataProvider, useNotify, useRedirect } from "ra-core";+import { SubmitHandler } from "react-hook-form";+import { CrmDataProvider } from "../providers/types";+import { SalesFormData } from "../types";+import { SalesInputs } from "./SalesInputs";++export function SalesCreate() {+ const dataProvider = useDataProvider<CrmDataProvider>();+ const notify = useNotify();+ const redirect = useRedirect();++ const { mutate } = useMutation({+ mutationKey: ["signup"],+ mutationFn: async (data: SalesFormData) => {+ return dataProvider.salesCreate(data);+ },+ onSuccess: () => {+ notify(+ "User created. They will soon receive an email to set their password."+ );+ redirect("/sales");+ },+ onError: () => {+ notify("An error occurred while creating the user.", {+ type: "error",+ });+ },+ });+ const onSubmit: SubmitHandler<SalesFormData> = async (data) => {+ mutate(data);+ };++ return (+ <div className="max-w-lg w-full mx-auto mt-8">+ <Card>+ <CardHeader>+ <CardTitle>Create a new user</CardTitle>+ </CardHeader>+ <CardContent>+ <SimpleForm onSubmit={onSubmit as SubmitHandler<any>}>+ <SalesInputs />+ </SimpleForm>+ </CardContent>+ </Card>+ </div>+ );+}diff --git a/src/atomic-crm/sales/SalesEdit.tsx b/src/atomic-crm/sales/SalesEdit.tsxnew file mode 100644index 00000000..2bfb1fa0--- /dev/null+++ b/src/atomic-crm/sales/SalesEdit.tsx@@ -0,0 +1,81 @@+import { SimpleForm } from "@/components/admin";+import { CancelButton } from "@/components/admin";+import { SaveButton } from "@/components/admin";+import { Card, CardContent } from "@/components/ui/card";+import { useMutation } from "@tanstack/react-query";+import {+ useDataProvider,+ useEditController,+ useNotify,+ useRecordContext,+ useRedirect,+} from "ra-core";+import { SubmitHandler } from "react-hook-form";+import { CrmDataProvider } from "../providers/types";+import { Sale, SalesFormData } from "../types";+import { SalesInputs } from "./SalesInputs";++function EditToolbar() {+ return (+ <div className="flex justify-end gap-4">+ <CancelButton />+ <SaveButton />+ </div>+ );+}++export function SalesEdit() {+ const { record } = useEditController();++ const dataProvider = useDataProvider<CrmDataProvider>();+ const notify = useNotify();+ const redirect = useRedirect();++ const { mutate } = useMutation({+ mutationKey: ["signup"],+ mutationFn: async (data: SalesFormData) => {+ if (!record) {+ throw new Error("Record not found");+ }+ return dataProvider.salesUpdate(record.id, data);+ },+ onSuccess: () => {+ redirect("/sales");+ notify("User updated successfully");+ },+ onError: () => {+ notify("An error occurred. Please try again.");+ },+ });++ const onSubmit: SubmitHandler<SalesFormData> = async (data) => {+ mutate(data);+ };++ return (+ <div className="max-w-lg w-full mx-auto mt-8">+ <Card>+ <CardContent>+ <SimpleForm+ toolbar={<EditToolbar />}+ onSubmit={onSubmit as SubmitHandler<any>}+ record={record}+ >+ <SaleEditTitle />+ <SalesInputs />+ </SimpleForm>+ </CardContent>+ </Card>+ </div>+ );+}++const SaleEditTitle = () => {+ const record = useRecordContext<Sale>();+ if (!record) return null;+ return (+ <h2 className="text-lg font-semibold mb-4">+ Edit {record?.first_name} {record?.last_name}+ </h2>+ );+};diff --git a/src/atomic-crm/sales/SalesInputs.tsx b/src/atomic-crm/sales/SalesInputs.tsxnew file mode 100644index 00000000..b2a897c6--- /dev/null+++ b/src/atomic-crm/sales/SalesInputs.tsx@@ -0,0 +1,29 @@+import { BooleanInput, TextInput } from "@/components/admin";+import { email, required, useGetIdentity, useRecordContext } from "ra-core";+import { Sale } from "../types";++export function SalesInputs() {+ const { identity } = useGetIdentity();+ const record = useRecordContext<Sale>();+ return (+ <div className="space-y-4 w-full">+ <TextInput source="first_name" validate={required()} helperText={false} />+ <TextInput source="last_name" validate={required()} helperText={false} />+ <TextInput+ source="email"+ validate={[required(), email()]}+ helperText={false}+ />+ <BooleanInput+ source="administrator"+ readOnly={record?.id === identity?.id}+ helperText={false}+ />+ <BooleanInput+ source="disabled"+ readOnly={record?.id === identity?.id}+ helperText={false}+ />+ </div>+ );+}diff --git a/src/atomic-crm/sales/SalesList.tsx b/src/atomic-crm/sales/SalesList.tsxnew file mode 100644index 00000000..ef9101de--- /dev/null+++ b/src/atomic-crm/sales/SalesList.tsx@@ -0,0 +1,63 @@+import {+ CreateButton,+ DataTable,+ ExportButton,+ List,+ SearchInput,+} from "@/components/admin";+import { Badge } from "@/components/ui/badge";+import { useRecordContext } from "ra-core";+import { TopToolbar } from "../layout/TopToolbar";++const SalesListActions = () => (+ <TopToolbar>+ <ExportButton />+ <CreateButton label="New user" />+ </TopToolbar>+);++const filters = [<SearchInput source="q" alwaysOn />];++const OptionsField = (_props: { label?: string | boolean }) => {+ const record = useRecordContext();+ if (!record) return null;+ return (+ <div className="flex flex-row gap-1">+ {record.administrator && (+ <Badge+ variant="outline"+ className="border-blue-300 dark:border-blue-700"+ >+ Admin+ </Badge>+ )}+ {record.disabled && (+ <Badge+ variant="outline"+ className="border-orange-300 dark:border-orange-700"+ >+ Disabled+ </Badge>+ )}+ </div>+ );+};++export function SalesList() {+ return (+ <List+ filters={filters}+ actions={<SalesListActions />}+ sort={{ field: "first_name", order: "ASC" }}+ >+ <DataTable>+ <DataTable.Col source="first_name" />+ <DataTable.Col source="last_name" />+ <DataTable.Col source="email" />+ <DataTable.Col label={false}>+ <OptionsField />+ </DataTable.Col>+ </DataTable>+ </List>+ );+}diff --git a/src/atomic-crm/sales/index.ts b/src/atomic-crm/sales/index.tsnew file mode 100644index 00000000..3423d321--- /dev/null+++ b/src/atomic-crm/sales/index.ts@@ -0,0 +1,12 @@+import { Sale } from "../types";+import { SalesCreate } from "./SalesCreate";+import { SalesEdit } from "./SalesEdit";+import { SalesList } from "./SalesList";++export default {+ list: SalesList,+ create: SalesCreate,+ edit: SalesEdit,+ recordRepresentation: (record: Sale) =>+ `${record.first_name} ${record.last_name}`,+};diff --git a/src/atomic-crm/settings/SettingsPage.tsx b/src/atomic-crm/settings/SettingsPage.tsxnew file mode 100644index 00000000..5726e290--- /dev/null+++ b/src/atomic-crm/settings/SettingsPage.tsx@@ -0,0 +1,250 @@+import { RecordField, TextInput } from "@/components/admin";+import { Button } from "@/components/ui/button";+import { Card, CardContent } from "@/components/ui/card";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { useMutation } from "@tanstack/react-query";+import { CircleX, Copy, Pencil, Save } from "lucide-react";+import {+ Form,+ useDataProvider,+ useGetIdentity,+ useGetOne,+ useNotify,+ useRecordContext,+} from "ra-core";+import { useState } from "react";+import { useFormState } from "react-hook-form";+import ImageEditorField from "../misc/ImageEditorField";+import { CrmDataProvider } from "../providers/types";+import { Sale, SalesFormData } from "../types";++export const SettingsPage = () => {+ const [isEditMode, setEditMode] = useState(false);+ const { identity, refetch: refetchIdentity } = useGetIdentity();+ const { data, refetch: refetchUser } = useGetOne("sales", {+ id: identity?.id,+ });+ const notify = useNotify();+ const dataProvider = useDataProvider<CrmDataProvider>();++ const { mutate } = useMutation({+ mutationKey: ["signup"],+ mutationFn: async (data: SalesFormData) => {+ if (!identity) {+ throw new Error("Record not found");+ }+ return dataProvider.salesUpdate(identity.id, data);+ },+ onSuccess: () => {+ refetchIdentity();+ refetchUser();+ setEditMode(false);+ notify("Your profile has been updated");+ },+ onError: (_) => {+ notify("An error occurred. Please try again", {+ type: "error",+ });+ },+ });++ if (!identity) return null;++ const handleOnSubmit = async (values: any) => {+ mutate(values);+ };++ return (+ <div className="max-w-md mx-auto mt-8">+ <Form onSubmit={handleOnSubmit} record={data}>+ <SettingsForm isEditMode={isEditMode} setEditMode={setEditMode} />+ </Form>+ </div>+ );+};++const SettingsForm = ({+ isEditMode,+ setEditMode,+}: {+ isEditMode: boolean;+ setEditMode: (value: boolean) => void;+}) => {+ const notify = useNotify();+ const record = useRecordContext<Sale>();+ const { identity, refetch } = useGetIdentity();+ const { isDirty } = useFormState();+ const dataProvider = useDataProvider<CrmDataProvider>();++ const { mutate: updatePassword } = useMutation({+ mutationKey: ["updatePassword"],+ mutationFn: async () => {+ if (!identity) {+ throw new Error("Record not found");+ }+ return dataProvider.updatePassword(identity.id);+ },+ onSuccess: () => {+ notify("A reset password email has been sent to your email address");+ },+ onError: (e) => {+ notify(`${e}`, {+ type: "error",+ });+ },+ });++ const { mutate: mutateSale } = useMutation({+ mutationKey: ["signup"],+ mutationFn: async (data: SalesFormData) => {+ if (!record) {+ throw new Error("Record not found");+ }+ return dataProvider.salesUpdate(record.id, data);+ },+ onSuccess: () => {+ refetch();+ notify("Your profile has been updated");+ },+ onError: () => {+ notify("An error occurred. Please try again.");+ },+ });+ if (!identity) return null;++ const handleClickOpenPasswordChange = () => {+ updatePassword();+ };++ const handleAvatarUpdate = async (values: any) => {+ mutateSale(values);+ };++ return (+ <div className="space-y-4">+ <Card>+ <CardContent>+ <div className="mb-4 flex flex-row justify-between">+ <h2 className="text-xl font-semibold text-muted-foreground">+ My info+ </h2>+ </div>++ <div className="space-y-4 mb-4">+ <ImageEditorField+ source="avatar"+ type="avatar"+ onSave={handleAvatarUpdate}+ linkPosition="right"+ />+ <TextRender source="first_name" isEditMode={isEditMode} />+ <TextRender source="last_name" isEditMode={isEditMode} />+ <TextRender source="email" isEditMode={isEditMode} />+ </div>++ <div className="flex flex-row justify-end gap-2">+ {!isEditMode && (+ <>+ <Button+ variant="outline"+ onClick={handleClickOpenPasswordChange}+ >+ Change password+ </Button>+ </>+ )}++ <Button+ type="button"+ variant={isEditMode ? "ghost" : "outline"}+ onClick={() => setEditMode(!isEditMode)}+ className="flex items-center"+ >+ {isEditMode ? <CircleX /> : <Pencil />}+ {isEditMode ? "Cancel" : "Edit"}+ </Button>++ {isEditMode && (+ <Button type="submit" disabled={!isDirty} variant="outline">+ <Save />+ Save+ </Button>+ )}+ </div>+ </CardContent>+ </Card>+ {import.meta.env.VITE_INBOUND_EMAIL && (+ <Card>+ <CardContent>+ <div className="space-y-4 justify-between">+ <h2 className="text-xl font-semibold text-muted-foreground">+ Inbound email+ </h2>+ <p className="text-sm text-muted-foreground">+ You can start sending emails to your server's inbound email+ address, e.g. by adding it to the+ <b> Cc: </b> field. Atomic CRM will process the emails and add+ notes to the corresponding contacts.+ </p>+ <CopyPaste />+ </div>+ </CardContent>+ </Card>+ )}+ </div>+ );+};++const TextRender = ({+ source,+ isEditMode,+}: {+ source: string;+ isEditMode: boolean;+}) => {+ if (isEditMode) {+ return <TextInput source={source} helperText={false} />;+ }+ return (+ <div className="m-2">+ <RecordField source={source} />+ </div>+ );+};++const CopyPaste = () => {+ const [copied, setCopied] = useState(false);+ const handleCopy = () => {+ setCopied(true);+ navigator.clipboard.writeText(import.meta.env.VITE_INBOUND_EMAIL);+ setTimeout(() => {+ setCopied(false);+ }, 1500);+ };+ return (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ onClick={handleCopy}+ variant="outline"+ className="normal-case justify-between w-full"+ >+ {import.meta.env.VITE_INBOUND_EMAIL}+ <Copy className="h-4 w-4 ml-2" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>{copied ? "Copied!" : "Copy"}</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ );+};++SettingsPage.path = "/settings";diff --git a/src/atomic-crm/simple-list/ListNoResults.tsx b/src/atomic-crm/simple-list/ListNoResults.tsxnew file mode 100644index 00000000..c3cdef78--- /dev/null+++ b/src/atomic-crm/simple-list/ListNoResults.tsx@@ -0,0 +1,53 @@+import {+ useGetResourceLabel,+ useListContextWithProps,+ useResourceContext,+ useTranslate,+} from "ra-core";+import { Button } from "@/components/ui/button.tsx";++export const ListNoResults = (props: ListNoResultsProps) => {+ const translate = useTranslate();+ const resource = useResourceContext(props);+ const { filterValues, setFilters } = useListContextWithProps(props);+ const getResourceLabel = useGetResourceLabel();+ if (!resource) {+ throw new Error("<ListNoResults> must be used inside a <List> component");+ }+ return (+ <div className="p-6">+ <p className="text-sm text-muted-foreground">+ {filterValues && setFilters && Object.keys(filterValues).length > 0 ? (+ <>+ {translate("ra.navigation.no_filtered_results", {+ resource,+ name: getResourceLabel(resource, 0),+ _: "No results found with the current filters.",+ })}{" "}+ <Button+ variant="outline"+ size="sm"+ onClick={() => setFilters({}, [])}+ >+ {translate("ra.navigation.clear_filters", {+ _: "Clear filters",+ })}+ </Button>+ </>+ ) : (+ translate("ra.navigation.no_results", {+ resource,+ name: getResourceLabel(resource, 0),+ _: "No results found.",+ })+ )}+ </p>+ </div>+ );+};++export interface ListNoResultsProps {+ resource?: string;+ filterValues?: any;+ setFilters?: (filters: any, filterTypes?: string[]) => void;+}diff --git a/src/atomic-crm/simple-list/ListPlaceholder.tsx b/src/atomic-crm/simple-list/ListPlaceholder.tsxnew file mode 100644index 00000000..c96c5f95--- /dev/null+++ b/src/atomic-crm/simple-list/ListPlaceholder.tsx@@ -0,0 +1,9 @@+import { cn } from "@/lib/utils.ts";++interface ListPlaceholderProps {+ className?: string;+}++export const ListPlaceholder = ({ className }: ListPlaceholderProps) => {+ return <span className={cn("bg-gray-300 flex", className)}> </span>;+};diff --git a/src/atomic-crm/simple-list/SimpleList.tsx b/src/atomic-crm/simple-list/SimpleList.tsxnew file mode 100644index 00000000..4a6c2738--- /dev/null+++ b/src/atomic-crm/simple-list/SimpleList.tsx@@ -0,0 +1,245 @@+import {+ ListIterator,+ type RaRecord,+ sanitizeListRestProps,+ useGetRecordRepresentation,+ useListContextWithProps,+ useRecordContext,+ useResourceContext,+ useTranslate,+} from "ra-core";+import { isValidElement, type ReactElement } from "react";++import { ListNoResults } from "./ListNoResults.tsx";+import {+ FunctionToElement,+ type SimpleListBaseProps,+ SimpleListItem,+ type SimpleListItemProps,+} from "./SimpleListItem.tsx";+import { SimpleListLoading } from "./SimpleListLoading.tsx";++/**+ * The <SimpleList> component renders a list of records as a Material UI <List>.+ * It is usually used as a child of react-admin's <List> and <ReferenceManyField> components.+ *+ * Also widely used on Mobile.+ *+ * Props:+ * - primaryText: function returning a React element (or some text) based on the record+ * - secondaryText: same+ * - tertiaryText: same+ * - leftAvatar: function returning a React element based on the record+ * - leftIcon: same+ * - rightAvatar: same+ * - rightIcon: same+ * - linkType: deprecated - 'edit' or 'show', or a function returning 'edit' or 'show' based on the record+ * - rowClick: The action to trigger when the user clicks on a row.+ * - rowStyle: function returning a style object based on (record, index)+ * - rowSx: function returning a sx object based on (record, index)+ *+ * @example // Display all posts as a List+ * const postRowSx = (record, index) => ({+ * backgroundColor: record.views >= 500 ? '#efe' : 'white',+ * });+ * export const PostList = () => (+ * <List>+ * <SimpleList+ * primaryText={record => record.title}+ * secondaryText={record => `${record.views} views`}+ * tertiaryText={record =>+ * new Date(record.published_at).toLocaleDateString()+ * }+ * rowSx={postRowSx}+ * />+ * </List>+ * );+ */+export const SimpleList = <RecordType extends RaRecord = any>(+ props: SimpleListProps<RecordType>,+) => {+ const {+ className,+ empty = DefaultEmpty,+ leftAvatar,+ leftIcon,+ linkType,+ rowClick,+ primaryText,+ rightAvatar,+ rightIcon,+ secondaryText,+ tertiaryText,+ resource,+ ...rest+ } = props;+ const { data, isPending, total } = useListContextWithProps<RecordType>(props);++ if (isPending === true) {+ return (+ <SimpleListLoading+ className={className}+ hasLeftAvatarOrIcon={!!leftIcon || !!leftAvatar}+ hasRightAvatarOrIcon={!!rightIcon || !!rightAvatar}+ hasSecondaryText={!!secondaryText}+ hasTertiaryText={!!tertiaryText}+ />+ );+ }++ if (data == null || data.length === 0 || total === 0) {+ if (empty) {+ return empty;+ }++ return null;+ }++ return (+ <ul className={className} {...sanitizeListRestProps(rest)}>+ <ListIterator<RecordType>+ data={data}+ total={total}+ render={(record, rowIndex) => (+ <SimpleListItem+ key={record.id}+ rowIndex={rowIndex}+ linkType={linkType}+ rowClick={rowClick}+ resource={resource}+ >+ <SimpleListItemContent+ leftAvatar={leftAvatar}+ leftIcon={leftIcon}+ primaryText={primaryText}+ rightAvatar={rightAvatar}+ rightIcon={rightIcon}+ secondaryText={secondaryText}+ tertiaryText={tertiaryText}+ rowIndex={rowIndex}+ />+ </SimpleListItem>+ )}+ />+ </ul>+ );+};++export interface SimpleListProps<RecordType extends RaRecord = any>+ extends SimpleListBaseProps<RecordType> {+ className?: string;+ empty?: ReactElement;+ // can be injected when using the component without context+ resource?: string;+ data?: RecordType[];+ isLoading?: boolean;+ isPending?: boolean;+ isLoaded?: boolean;+ total?: number;+}++const SimpleListItemContent = <RecordType extends RaRecord = any>(+ props: SimpleListItemProps<RecordType>,+) => {+ const {+ leftAvatar,+ leftIcon,+ primaryText,+ rightAvatar,+ rightIcon,+ secondaryText,+ tertiaryText,+ } = props;+ const resource = useResourceContext(props);+ const record = useRecordContext<RecordType>(props);+ const getRecordRepresentation = useGetRecordRepresentation(resource);+ const translate = useTranslate();++ const renderAvatar = (+ record: RecordType,+ avatarCallback: FunctionToElement<RecordType>,+ ) => {+ const avatarValue = avatarCallback(record, record.id);+ if (+ typeof avatarValue === "string" &&+ (avatarValue.startsWith("http") || avatarValue.startsWith("data:"))+ ) {+ return (+ <img+ src={avatarValue}+ alt=""+ className="w-10 h-10 rounded-full object-cover"+ />+ );+ } else {+ return (+ <div className="w-10 h-10 rounded-full flex items-center justify-center text-sm">+ {avatarValue}+ </div>+ );+ }+ };++ if (!record) return null;++ return (+ <div className="flex items-center space-x-3 p-3">+ {leftIcon && (+ <div className="flex-shrink-0">{leftIcon(record, record.id)}</div>+ )}+ {leftAvatar && (+ <div className="flex-shrink-0">{renderAvatar(record, leftAvatar)}</div>+ )}+ <div className="flex-1 min-w-0">+ <div className="flex items-center justify-between">+ <div className="text-sm font-medium truncate">+ {primaryText+ ? typeof primaryText === "string"+ ? translate(primaryText, {+ ...record,+ _: primaryText,+ })+ : isValidElement(primaryText)+ ? primaryText+ : primaryText(record, record.id)+ : getRecordRepresentation(record)}+ </div>++ {!!tertiaryText && (+ <div className="text-xs text-muted-foreground ml-2">+ {typeof tertiaryText === "string"+ ? translate(tertiaryText, {+ ...record,+ _: tertiaryText,+ })+ : isValidElement(tertiaryText)+ ? tertiaryText+ : tertiaryText(record, record.id)}+ </div>+ )}+ </div>++ {!!secondaryText && (+ <div className="text-sm text-muted-foreground truncate">+ {typeof secondaryText === "string"+ ? translate(secondaryText, {+ ...record,+ _: secondaryText,+ })+ : isValidElement(secondaryText)+ ? secondaryText+ : secondaryText(record, record.id)}+ </div>+ )}+ </div>+ {(rightAvatar || rightIcon) && (+ <div className="flex-shrink-0 flex items-center space-x-2">+ {rightAvatar && renderAvatar(record, rightAvatar)}+ {rightIcon && rightIcon(record, record.id)}+ </div>+ )}+ </div>+ );+};++const DefaultEmpty = <ListNoResults />;diff --git a/src/atomic-crm/simple-list/SimpleListItem.tsx b/src/atomic-crm/simple-list/SimpleListItem.tsxnew file mode 100644index 00000000..af8d6114--- /dev/null+++ b/src/atomic-crm/simple-list/SimpleListItem.tsx@@ -0,0 +1,138 @@+import {+ Identifier,+ LinkToType,+ RaRecord,+ useEvent,+ useGetPathForRecord,+ useGetPathForRecordCallback,+ useRecordContext,+ useResourceContext,+} from "ra-core";+import { ReactElement, ReactNode } from "react";+import { Link, useNavigate } from "react-router";++export const SimpleListItem = <RecordType extends RaRecord = any>(+ props: SimpleListItemProps<RecordType>,+) => {+ const { children, linkType, rowClick, style } = props;+ const resource = useResourceContext(props);+ const record = useRecordContext<RecordType>(props);+ const navigate = useNavigate();+ // If we don't have a function to get the path, we can compute the path immediately and set the href+ // on the Link correctly without onClick (better for accessibility)+ const isFunctionLink =+ typeof linkType === "function" || typeof rowClick === "function";+ const pathForRecord = useGetPathForRecord({+ link: isFunctionLink ? false : (linkType ?? rowClick),+ resource,+ });+ const getPathForRecord = useGetPathForRecordCallback();+ const handleClick = useEvent(async () => {+ // No need to handle non function linkType or rowClick+ if (!isFunctionLink) return;+ if (!record) return;++ const link: LinkToType =+ typeof linkType === "function"+ ? linkType(record, record.id)+ : typeof rowClick === "function"+ ? (record, resource) => rowClick(record.id, resource, record)+ : false;++ const path = await getPathForRecord({+ record,+ resource,+ link,+ });+ if (path === false || path == null) {+ return;+ }+ navigate(path);+ });++ if (!record) return null;++ if (isFunctionLink) {+ return (+ <li className="w-full">+ <button+ onClick={handleClick}+ style={style}+ className="w-full text-left hover:bg-muted focus: bg-muted focus:outline-none"+ >+ {children}+ </button>+ </li>+ );+ }++ if (pathForRecord) {+ return (+ <li className="w-full">+ <Link+ to={pathForRecord}+ style={style}+ className="block w-full hover:bg-muted focus:bg-muted focus:outline-none"+ >+ {children}+ </Link>+ </li>+ );+ }++ return <li className="w-full">{children}</li>;+};++export type FunctionToElement<RecordType extends RaRecord = any> = (+ record: RecordType,+ id: Identifier,+) => ReactNode;++export type FunctionLinkType = (record: RaRecord, id: Identifier) => string;++export interface SimpleListBaseProps<RecordType extends RaRecord = any> {+ leftAvatar?: FunctionToElement<RecordType>;+ leftIcon?: FunctionToElement<RecordType>;+ primaryText?: FunctionToElement<RecordType> | ReactElement | string;+ /**+ * @deprecated use rowClick instead+ */+ linkType?: string | FunctionLinkType | false;++ /**+ * The action to trigger when the user clicks on a row.+ *+ * @see https://marmelab.com/react-admin/Datagrid.html#rowclick+ * @example+ * import { List, Datagrid } from 'react-admin';+ *+ * export const PostList = () => (+ * <List>+ * <Datagrid rowClick="edit">+ * ...+ * </Datagrid> </ListItem>++ * </List>+ * );+ */+ rowClick?: string | RowClickFunction | false;+ rightAvatar?: FunctionToElement<RecordType>;+ rightIcon?: FunctionToElement<RecordType>;+ secondaryText?: FunctionToElement<RecordType> | ReactElement | string;+ tertiaryText?: FunctionToElement<RecordType> | ReactElement | string;+}++export interface SimpleListItemProps<RecordType extends RaRecord = any>+ extends SimpleListBaseProps<RecordType> {+ rowIndex: number;+ className?: string;+ style?: React.CSSProperties;+ children?: ReactNode;+ resource?: string;+}++export type RowClickFunction<RecordType extends RaRecord = RaRecord> = (+ id: Identifier,+ resource: string,+ record: RecordType,+) => string | false | Promise<string | false>;diff --git a/src/atomic-crm/simple-list/SimpleListLoading.tsx b/src/atomic-crm/simple-list/SimpleListLoading.tsxnew file mode 100644index 00000000..9b11dfaf--- /dev/null+++ b/src/atomic-crm/simple-list/SimpleListLoading.tsx@@ -0,0 +1,58 @@+import { useTimeout } from "ra-core";+import { ListPlaceholder } from "./ListPlaceholder.tsx";++export const SimpleListLoading = (props: SimpleListLoadingProps) => {+ const {+ className,+ hasLeftAvatarOrIcon,+ hasRightAvatarOrIcon,+ hasSecondaryText,+ hasTertiaryText,+ nbFakeLines = 5,+ ...rest+ } = props;++ const oneSecondHasPassed = useTimeout(1000);++ return oneSecondHasPassed ? (+ <ul className={className} {...rest}>+ {times(nbFakeLines, (key) => (+ <li key={key} className="flex items-center space-x-3 p-3">+ {hasLeftAvatarOrIcon && (+ <div className="w-10 h-10 bg-gray-300 rounded-full flex-shrink-0">+ + </div>+ )}+ <div className="flex-1 min-w-0">+ <div className="mb-1">+ <ListPlaceholder className="w-1/3 inline-block mb-1" />+ {hasTertiaryText && (+ <span className="float-right opacity-55 min-w-[10vw]">+ <ListPlaceholder />+ </span>+ )}+ </div>+ {hasSecondaryText && <ListPlaceholder className="w-1/4" />}+ </div>+ {hasRightAvatarOrIcon && (+ <div className="w-10 h-10 bg-gray-300 rounded-full flex-shrink-0">+ + </div>+ )}+ </li>+ ))}+ </ul>+ ) : null;+};++const times = (nbChildren: number, fn: (key: number) => React.ReactNode) =>+ Array.from({ length: nbChildren }, (_, key) => fn(key));++export interface SimpleListLoadingProps {+ className?: string;+ hasLeftAvatarOrIcon?: boolean;+ hasRightAvatarOrIcon?: boolean;+ hasSecondaryText?: boolean;+ hasTertiaryText?: boolean;+ nbFakeLines?: number;+}diff --git a/src/atomic-crm/tags/RoundButton.tsx b/src/atomic-crm/tags/RoundButton.tsxnew file mode 100644index 00000000..79bf2ca8--- /dev/null+++ b/src/atomic-crm/tags/RoundButton.tsx@@ -0,0 +1,10 @@+export const RoundButton = ({ color, handleClick, selected }: any) => (+ <button+ type="button"+ className={`w-8 h-8 rounded-full inline-block m-1 transition-all ${+ selected ? "ring-2 ring-gray-500 ring-offset-1" : ""+ }`}+ style={{ backgroundColor: color }}+ onClick={handleClick}+ />+);diff --git a/src/atomic-crm/tags/TagChip.tsx b/src/atomic-crm/tags/TagChip.tsxnew file mode 100644index 00000000..5d87c805--- /dev/null+++ b/src/atomic-crm/tags/TagChip.tsx@@ -0,0 +1,44 @@+import { X } from "lucide-react";+import { useState } from "react";+import { Tag } from "../types";+import { TagEditModal } from "./TagEditModal";++type TagChipProps = {+ tag: Tag;++ onUnlink: () => Promise<void>;+};++export function TagChip({ tag, onUnlink }: TagChipProps) {+ const [open, setOpen] = useState(false);++ const handleClose = () => {+ setOpen(false);+ };++ const handleClick = () => {+ setOpen(true);+ };++ return (+ <>+ <div+ className="text-white inline-flex items-center gap-1 px-2 py-1 text-xs rounded-md cursor-pointer hover:opacity-80 transition-opacity"+ style={{ backgroundColor: tag.color }}+ onClick={handleClick}+ >+ {tag.name}+ <button+ onClick={(e) => {+ e.stopPropagation();+ onUnlink();+ }}+ className="transition-colors p-0 ml-1 cursor-pointer"+ >+ <X className="w-3 h-3" />+ </button>+ </div>+ <TagEditModal tag={tag} open={open} onClose={handleClose} />+ </>+ );+}diff --git a/src/atomic-crm/tags/TagCreateModal.tsx b/src/atomic-crm/tags/TagCreateModal.tsxnew file mode 100644index 00000000..58e304f1--- /dev/null+++ b/src/atomic-crm/tags/TagCreateModal.tsx@@ -0,0 +1,38 @@+import { useCreate } from "ra-core";+import { Tag } from "../types";+import { TagDialog } from "./TagDialog";++type TagCreateModalProps = {+ open: boolean;+ onClose(): void;+ onSuccess?(tag: Tag): Promise<void>;+};++export function TagCreateModal({+ open,+ onClose,+ onSuccess,+}: TagCreateModalProps) {+ const [create] = useCreate<Tag>();++ const handleCreateTag = async (data: Pick<Tag, "name" | "color">) => {+ await create(+ "tags",+ { data },+ {+ onSuccess: async (tag) => {+ await onSuccess?.(tag);+ },+ }+ );+ };++ return (+ <TagDialog+ open={open}+ title="Create a new tag"+ onClose={onClose}+ onSubmit={handleCreateTag}+ />+ );+}diff --git a/src/atomic-crm/tags/TagDialog.tsx b/src/atomic-crm/tags/TagDialog.tsxnew file mode 100644index 00000000..108252a8--- /dev/null+++ b/src/atomic-crm/tags/TagDialog.tsx@@ -0,0 +1,119 @@+import { Button, buttonVariants } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { cn } from "@/lib/utils";+import { SaveIcon } from "lucide-react";+import { FormEvent, useEffect, useState } from "react";+import { Tag } from "../types";+import { colors } from "./colors";+import { RoundButton } from "./RoundButton";++type TagDialogProps = {+ open: boolean;+ tag?: Pick<Tag, "name" | "color">;+ title: string;+ onSubmit(tag: Pick<Tag, "name" | "color">): Promise<void>;+ onClose(): void;+};++export function TagDialog({+ open,+ tag,+ title,+ onClose,+ onSubmit,+}: TagDialogProps) {+ const [newTagName, setNewTagName] = useState("");+ const [newTagColor, setNewTagColor] = useState(colors[0]);+ const [disabled, setDisabled] = useState(false);++ const handleNewTagNameChange = (+ event: React.ChangeEvent<HTMLInputElement>+ ) => {+ setNewTagName(event.target.value);+ };++ const handleClose = () => {+ setDisabled(false);+ onClose();+ };++ const handleSubmit = async (event: FormEvent<HTMLFormElement>) => {+ event.preventDefault();++ await onSubmit({ name: newTagName, color: newTagColor });++ setDisabled(true);+ setNewTagName("");+ setNewTagColor(colors[0]);++ handleClose();+ };++ useEffect(() => {+ setNewTagName(tag?.name ?? "");+ setNewTagColor(tag?.color ?? colors[0]);+ }, [tag]);++ return (+ <Dialog open={open} onOpenChange={handleClose}>+ <DialogContent className="sm:max-w-lg">+ <form onSubmit={handleSubmit}>+ <DialogHeader>+ <DialogTitle>{title}</DialogTitle>+ </DialogHeader>++ <div className="space-y-4 py-4">+ <div className="space-y-2">+ <Label htmlFor="tag-name">Tag name</Label>+ <Input+ id="tag-name"+ autoFocus+ value={newTagName}+ onChange={handleNewTagNameChange}+ placeholder="Enter tag name"+ />+ </div>++ <div className="space-y-2">+ <Label>Color</Label>+ <div className="flex flex-wrap">+ {colors.map((color) => (+ <RoundButton+ key={color}+ color={color}+ selected={color === newTagColor}+ handleClick={() => {+ setNewTagColor(color);+ }}+ />+ ))}+ </div>+ </div>+ </div>++ <div className="flex justify-end pt-4">+ <Button+ variant="outline"+ disabled={disabled}+ className={cn(+ buttonVariants({ variant: "outline" }),+ "text-primary",+ disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"+ )}+ >+ <SaveIcon />+ Save+ </Button>+ </div>+ </form>+ </DialogContent>+ </Dialog>+ );+}diff --git a/src/atomic-crm/tags/TagEditModal.tsx b/src/atomic-crm/tags/TagEditModal.tsxnew file mode 100644index 00000000..d13d0690--- /dev/null+++ b/src/atomic-crm/tags/TagEditModal.tsx@@ -0,0 +1,41 @@+import { useUpdate } from "ra-core";+import { Tag } from "../types";+import { TagDialog } from "./TagDialog";++type TagEditModalProps = {+ tag: Tag;+ open: boolean;+ onClose(): void;+ onSuccess?(tag: Tag): Promise<void>;+};++export function TagEditModal({+ tag,+ open,+ onClose,+ onSuccess,+}: TagEditModalProps) {+ const [update] = useUpdate<Tag>();++ const handleEditTag = async (data: Pick<Tag, "name" | "color">) => {+ await update(+ "tags",+ { id: tag.id, data, previousData: tag },+ {+ onSuccess: async (tag) => {+ await onSuccess?.(tag);+ },+ }+ );+ };++ return (+ <TagDialog+ open={open}+ title="Edit tag"+ onClose={onClose}+ onSubmit={handleEditTag}+ tag={tag}+ />+ );+}diff --git a/src/atomic-crm/tags/colors.ts b/src/atomic-crm/tags/colors.tsnew file mode 100644index 00000000..b707d624--- /dev/null+++ b/src/atomic-crm/tags/colors.ts@@ -0,0 +1,12 @@+export const colors = [+ "#424D5B",+ "#535F7D",+ "#C1050D",+ "#6C5B61",+ "#494582",+ "#765A3A",+ "#006596",+ "#235726",+ "#60491B",+ "#7D372D",+];diff --git a/src/atomic-crm/tasks/AddTask.tsx b/src/atomic-crm/tasks/AddTask.tsxnew file mode 100644index 00000000..64caafa0--- /dev/null+++ b/src/atomic-crm/tasks/AddTask.tsx@@ -0,0 +1,192 @@+import {+ AutocompleteInput,+ ReferenceInput,+ TextInput,+ SelectInput,+ SaveButton,+} from "@/components/admin";+import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { Plus } from "lucide-react";+import {+ CreateBase,+ Form,+ RecordRepresentation,+ required,+ useDataProvider,+ useGetIdentity,+ useNotify,+ useRecordContext,+ useUpdate,+} from "ra-core";+import { useState } from "react";+import { contactOptionText } from "../misc/ContactOption";+import { useConfigurationContext } from "../root/ConfigurationContext";++export const AddTask = ({+ selectContact,+ display = "chip",+}: {+ selectContact?: boolean;+ display?: "chip" | "icon";+}) => {+ const { identity } = useGetIdentity();+ const dataProvider = useDataProvider();+ const [update] = useUpdate();+ const notify = useNotify();+ const { taskTypes } = useConfigurationContext();+ const contact = useRecordContext();+ const [open, setOpen] = useState(false);+ const handleOpen = () => {+ setOpen(true);+ };++ const handleSuccess = async (data: any) => {+ setOpen(false);+ const contact = await dataProvider.getOne("contacts", {+ id: data.contact_id,+ });+ if (!contact.data) return;++ await update("contacts", {+ id: contact.data.id,+ data: { last_seen: new Date().toISOString() },+ previousData: contact.data,+ });++ notify("Task added");+ };++ if (!identity) return null;++ return (+ <>+ {display === "icon" ? (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="sm"+ variant="ghost"+ className="p-2 cursor-pointer"+ onClick={handleOpen}+ >+ <Plus className="w-4 h-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>Create task</TooltipContent>+ </Tooltip>+ </TooltipProvider>+ ) : (+ <div className="my-2">+ <Button+ variant="outline"+ className="h-6 cursor-pointer"+ onClick={handleOpen}+ size="sm"+ >+ <Plus className="w-4 h-4" />+ Add task+ </Button>+ </div>+ )}++ <CreateBase+ resource="tasks"+ record={{+ type: "None",+ contact_id: contact?.id,+ due_date: new Date().toISOString().slice(0, 10),+ sales_id: identity.id,+ }}+ transform={(data) => {+ const dueDate = new Date(data.due_date);+ dueDate.setHours(0, 0, 0, 0);+ data.due_date = dueDate.toISOString();+ return {+ ...data,+ due_date: new Date(data.due_date).toISOString(),+ };+ }}+ mutationOptions={{ onSuccess: handleSuccess }}+ >+ <Dialog open={open} onOpenChange={() => setOpen(false)}>+ <DialogContent className="lg:max-w-xl overflow-y-auto max-h-9/10 top-1/20 translate-y-0">+ <Form className="flex flex-col gap-4">+ <DialogHeader>+ <DialogTitle>+ {!selectContact+ ? "Create a new task for "+ : "Create a new task"}+ {!selectContact && (+ <RecordRepresentation+ record={contact}+ resource="contacts"+ />+ )}+ </DialogTitle>+ </DialogHeader>+ <div className="flex flex-col gap-4">+ <TextInput+ autoFocus+ source="text"+ label="Description"+ validate={required()}+ multiline+ className="m-0"+ helperText={false}+ />+ {selectContact && (+ <ReferenceInput+ source="contact_id"+ reference="contacts_summary"+ >+ <AutocompleteInput+ label="Contact"+ optionText={contactOptionText}+ helperText={false}+ validate={required()}+ />+ </ReferenceInput>+ )}++ <div className="flex flex-row gap-4">+ <TextInput+ source="due_date"+ helperText={false}+ type="date"+ validate={required()}+ />+ <SelectInput+ source="type"+ validate={required()}+ choices={taskTypes.map((type) => ({+ id: type,+ name: type,+ }))}+ helperText={false}+ />+ </div>+ </div>+ <DialogFooter className="w-full justify-end">+ <SaveButton />+ </DialogFooter>+ </Form>+ </DialogContent>+ </Dialog>+ </CreateBase>+ </>+ );+};diff --git a/src/atomic-crm/tasks/Task.tsx b/src/atomic-crm/tasks/Task.tsxnew file mode 100644index 00000000..ddff396e--- /dev/null+++ b/src/atomic-crm/tasks/Task.tsx@@ -0,0 +1,182 @@+import { ReferenceField, DateField } from "@/components/admin";+import { Button } from "@/components/ui/button";+import { Checkbox } from "@/components/ui/checkbox";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { useQueryClient } from "@tanstack/react-query";+import { MoreVertical } from "lucide-react";+import { useDeleteWithUndoController, useNotify, useUpdate } from "ra-core";+import { useEffect, useState } from "react";+import { Contact, Task as TData } from "../types";+import { TaskEdit } from "./TaskEdit";++export const Task = ({+ task,+ showContact,+}: {+ task: TData;+ showContact?: boolean;+}) => {+ const notify = useNotify();+ const queryClient = useQueryClient();++ const [openEdit, setOpenEdit] = useState(false);++ const handleCloseEdit = () => {+ setOpenEdit(false);+ };++ const [update, { isPending: isUpdatePending, isSuccess, variables }] =+ useUpdate();+ const { handleDelete } = useDeleteWithUndoController({+ record: task,+ redirect: false,+ mutationOptions: {+ onSuccess() {+ notify("Task deleted successfully", { undoable: true });+ },+ },+ });++ const handleEdit = () => {+ setOpenEdit(true);+ };++ const handleCheck = () => () => {+ update("tasks", {+ id: task.id,+ data: {+ done_date: task.done_date ? null : new Date().toISOString(),+ },+ previousData: task,+ });+ };++ useEffect(() => {+ // We do not want to invalidate the query when a tack is checked or unchecked+ if (+ isUpdatePending ||+ !isSuccess ||+ variables?.data?.done_date != undefined+ ) {+ return;+ }++ queryClient.invalidateQueries({ queryKey: ["tasks", "getList"] });+ }, [queryClient, isUpdatePending, isSuccess, variables]);++ const labelId = `checkbox-list-label-${task.id}`;++ return (+ <>+ <div className="flex items-start justify-between">+ <div className="flex items-start gap-2 flex-1">+ <Checkbox+ id={labelId}+ checked={!!task.done_date}+ onCheckedChange={handleCheck()}+ disabled={isUpdatePending}+ className="mt-1"+ />+ <div className={`flex-grow ${task.done_date ? "line-through" : ""}`}>+ <div className="text-sm">+ {task.type && task.type !== "None" && (+ <>+ <span className="font-semibold text-sm">{task.type}</span>+ + </>+ )}+ {task.text}+ </div>+ <div className="text-sm text-muted-foreground">+ due + <DateField source="due_date" record={task} />+ {showContact && (+ <ReferenceField<TData, Contact>+ source="contact_id"+ reference="contacts"+ record={task}+ link="show"+ className="inline text-sm text-muted-foreground"+ render={({ referenceRecord }) => {+ if (!referenceRecord) return null;+ return (+ <>+ {" "}+ (Re: + {referenceRecord?.first_name}{" "}+ {referenceRecord?.last_name})+ </>+ );+ }}+ />+ )}+ </div>+ </div>+ </div>++ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button+ variant="ghost"+ size="sm"+ className="h-5 pr-0! cursor-pointer"+ aria-label="task actions"+ >+ <MoreVertical className="h-4 w-4" />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end">+ <DropdownMenuItem+ className="cursor-pointer"+ onClick={() => {+ update("tasks", {+ id: task.id,+ data: {+ due_date: new Date(Date.now() + 24 * 60 * 60 * 1000)+ .toISOString()+ .slice(0, 10),+ },+ previousData: task,+ });+ }}+ >+ Postpone to tomorrow+ </DropdownMenuItem>+ <DropdownMenuItem+ className="cursor-pointer"+ onClick={() => {+ update("tasks", {+ id: task.id,+ data: {+ due_date: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000)+ .toISOString()+ .slice(0, 10),+ },+ previousData: task,+ });+ }}+ >+ Postpone to next week+ </DropdownMenuItem>+ <DropdownMenuItem className="cursor-pointer" onClick={handleEdit}>+ Edit+ </DropdownMenuItem>+ <DropdownMenuItem className="cursor-pointer" onClick={handleDelete}>+ Delete+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>++ {/* This part is for editing the Task directly via a Dialog */}+ {openEdit && (+ <TaskEdit taskId={task.id} open={openEdit} close={handleCloseEdit} />+ )}+ </>+ );+};diff --git a/src/atomic-crm/tasks/TaskEdit.tsx b/src/atomic-crm/tasks/TaskEdit.tsxnew file mode 100644index 00000000..7e3a822e--- /dev/null+++ b/src/atomic-crm/tasks/TaskEdit.tsx@@ -0,0 +1,97 @@+import {+ DeleteButton,+ TextInput,+ SelectInput,+ SaveButton,+} from "@/components/admin";+import {+ Dialog,+ DialogContent,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { EditBase, Form, Identifier, required, useNotify } from "ra-core";+import { useConfigurationContext } from "../root/ConfigurationContext";++export const TaskEdit = ({+ open,+ close,+ taskId,+}: {+ taskId: Identifier;+ open: boolean;+ close: () => void;+}) => {+ const { taskTypes } = useConfigurationContext();+ const notify = useNotify();+ return (+ <Dialog open={open} onOpenChange={close}>+ {taskId && (+ <EditBase+ id={taskId}+ resource="tasks"+ className="mt-0"+ mutationOptions={{+ onSuccess: () => {+ close();+ notify("Task updated", {+ type: "info",+ undoable: true,+ });+ },+ }}+ redirect={false}+ >+ <DialogContent className="lg:max-w-xl overflow-y-auto max-h-9/10 top-1/20 translate-y-0">+ <Form className="flex flex-col gap-4">+ <DialogHeader>+ <DialogTitle>Edit task</DialogTitle>+ </DialogHeader>+ <TextInput+ autoFocus+ source="text"+ label="Description"+ validate={required()}+ multiline+ helperText={false}+ />+ <div className="flex flex-row gap-4">+ <TextInput+ source="due_date"+ helperText={false}+ type="date"+ validate={required()}+ />+ <SelectInput+ source="type"+ choices={taskTypes.map((type) => ({+ id: type,+ name: type,+ }))}+ helperText={false}+ validate={required()}+ />+ </div>+ <DialogFooter className="w-full sm:justify-between gap-4">+ <DeleteButton+ mutationOptions={{+ onSuccess: () => {+ close();+ notify("Task deleted", {+ type: "info",+ undoable: true,+ });+ },+ }}+ redirect={false}+ />+ <SaveButton label="Save" />+ </DialogFooter>+ </Form>+ </DialogContent>+ </EditBase>+ )}+ </Dialog>+ );+};diff --git a/src/atomic-crm/tasks/TasksIterator.tsx b/src/atomic-crm/tasks/TasksIterator.tsxnew file mode 100644index 00000000..792a1df5--- /dev/null+++ b/src/atomic-crm/tasks/TasksIterator.tsx@@ -0,0 +1,30 @@+import { isAfter } from "date-fns";+import { useListContext } from "ra-core";++import { Task } from "./Task";++export const TasksIterator = ({+ showContact,+ className,+}: {+ showContact?: boolean;+ className?: string;+}) => {+ const { data, error, isPending } = useListContext();+ if (isPending || error || data.length === 0) return null;++ // Keep only tasks that are not done or done less than 5 minutes ago+ const tasks = data.filter(+ (task) =>+ !task.done_date ||+ isAfter(new Date(task.done_date), new Date(Date.now() - 5 * 60 * 1000))+ );++ return (+ <div className={`space-y-1 ${className || ""}`}>+ {tasks.map((task) => (+ <Task task={task} showContact={showContact} key={task.id} />+ ))}+ </div>+ );+};diff --git a/src/atomic-crm/types.ts b/src/atomic-crm/types.tsnew file mode 100644index 00000000..b33b85db--- /dev/null+++ b/src/atomic-crm/types.ts@@ -0,0 +1,226 @@+import { Identifier, RaRecord } from "ra-core";+import { ComponentType } from "react";+import {+ COMPANY_CREATED,+ CONTACT_CREATED,+ CONTACT_NOTE_CREATED,+ DEAL_CREATED,+ DEAL_NOTE_CREATED,+} from "./consts";++export type SignUpData = {+ email: string;+ password: string;+ first_name: string;+ last_name: string;+};++export type SalesFormData = {+ avatar: string;+ email: string;+ password: string;+ first_name: string;+ last_name: string;+ administrator: boolean;+ disabled: boolean;+};++export type Sale = {+ first_name: string;+ last_name: string;+ administrator: boolean;+ avatar?: RAFile;+ disabled?: boolean;+ user_id: string;++ /**+ * This is a copy of the user's email, to make it easier to handle by react admin+ * DO NOT UPDATE this field directly, it should be updated by the backend+ */+ email: string;++ /**+ * This is used by the fake rest provider to store the password+ * DO NOT USE this field in your code besides the fake rest provider+ * @deprecated+ */+ password?: string;+} & Pick<RaRecord, "id">;++export type Company = {+ name: string;+ logo: RAFile;+ sector: string;+ size: 1 | 10 | 50 | 250 | 500;+ linkedin_url: string;+ website: string;+ phone_number: string;+ address: string;+ zipcode: string;+ city: string;+ stateAbbr: string;+ sales_id: Identifier;+ created_at: string;+ description: string;+ revenue: string;+ tax_identifier: string;+ country: string;+ context_links?: string[];+ nb_contacts?: number;+ nb_deals?: number;+} & Pick<RaRecord, "id">;++export type EmailAndType = {+ email: string;+ type: "Work" | "Home" | "Other";+};++export type PhoneNumberAndType = {+ number: string;+ type: "Work" | "Home" | "Other";+};++export type Contact = {+ first_name: string;+ last_name: string;+ title: string;+ company_id: Identifier;+ email_jsonb: EmailAndType[];+ avatar?: Partial<RAFile>;+ linkedin_url?: string | null;+ first_seen: string;+ last_seen: string;+ has_newsletter: boolean;+ tags: Identifier[];+ gender: string;+ sales_id: Identifier;+ status: string;+ background: string;+ phone_jsonb: PhoneNumberAndType[];++ nb_tasks?: number;+ company_name?: string;+} & Pick<RaRecord, "id">;++export type ContactNote = {+ contact_id: Identifier;+ text: string;+ date: string;+ sales_id: Identifier;+ status: string;+ attachments?: AttachmentNote[];+} & Pick<RaRecord, "id">;++export type Deal = {+ name: string;+ company_id: Identifier;+ contact_ids: Identifier[];+ category: string;+ stage: string;+ description: string;+ amount: number;+ created_at: string;+ updated_at: string;+ archived_at?: string;+ expected_closing_date: string;+ sales_id: Identifier;+ index: number;+} & Pick<RaRecord, "id">;++export type DealNote = {+ deal_id: Identifier;+ text: string;+ date: string;+ sales_id: Identifier;+ attachments?: AttachmentNote[];++ // This is defined for compatibility with `ContactNote`+ status?: undefined;+} & Pick<RaRecord, "id">;++export type Tag = {+ name: string;+ color: string;+} & Pick<RaRecord, "id">;++export type Task = {+ contact_id: Identifier;+ type: string;+ text: string;+ due_date: string;+ done_date?: string | null;+ sales_id?: Identifier;+} & Pick<RaRecord, "id">;++export type ActivityCompanyCreated = {+ type: typeof COMPANY_CREATED;+ company_id: Identifier;+ company: Company;+ sales_id: Identifier;+ date: string;+} & Pick<RaRecord, "id">;++export type ActivityContactCreated = {+ type: typeof CONTACT_CREATED;+ company_id: Identifier;+ sales_id?: Identifier;+ contact: Contact;+ date: string;+} & Pick<RaRecord, "id">;++export type ActivityContactNoteCreated = {+ type: typeof CONTACT_NOTE_CREATED;+ sales_id?: Identifier;+ contactNote: ContactNote;+ date: string;+} & Pick<RaRecord, "id">;++export type ActivityDealCreated = {+ type: typeof DEAL_CREATED;+ company_id: Identifier;+ sales_id?: Identifier;+ deal: Deal;+ date: string;+};++export type ActivityDealNoteCreated = {+ type: typeof DEAL_NOTE_CREATED;+ sales_id?: Identifier;+ dealNote: DealNote;+ date: string;+};++export type Activity = RaRecord &+ (+ | ActivityCompanyCreated+ | ActivityContactCreated+ | ActivityContactNoteCreated+ | ActivityDealCreated+ | ActivityDealNoteCreated+ );++export interface RAFile {+ src: string;+ title: string;+ path?: string;+ rawFile: File;+ type?: string;+}++export type AttachmentNote = RAFile;+export interface DealStage {+ value: string;+ label: string;+}++export interface NoteStatus {+ value: string;+ label: string;+ color: string;+}++export interface ContactGender {+ value: string;+ label: string;+ icon: ComponentType<{ className?: string }>;+}diff --git a/src/companies/CompanyAside.tsx b/src/companies/CompanyAside.tsxdeleted file mode 100644index e056dc0d..00000000--- a/src/companies/CompanyAside.tsx+++ /dev/null@@ -1,265 +0,0 @@-import LinkedInIcon from '@mui/icons-material/LinkedIn';-import PhoneIcon from '@mui/icons-material/Phone';-import PublicIcon from '@mui/icons-material/Public';-import { Divider, Link, Stack, Tooltip, Typography } from '@mui/material';-import {- DateField,- EditButton,- ReferenceField,- SelectField,- ShowButton,- TextField,- UrlField,- useRecordContext,-} from 'react-admin';--import { Company } from '../types';-import { sizes } from './sizes';--interface CompanyAsideProps {- link?: string;-}--export const CompanyAside = ({ link = 'edit' }: CompanyAsideProps) => {- const record = useRecordContext<Company>();- if (!record) return null;-- return (- <Stack ml={4} width={250} minWidth={250} spacing={2}>- <Stack direction="row" spacing={1}>- {link === 'edit' ? (- <EditButton label="Edit Company" />- ) : (- <ShowButton label="Show Company" />- )}- </Stack>-- <CompanyInfo record={record} />-- <AddressInfo record={record} />-- <ContextInfo record={record} />-- <AdditionalInfo record={record} />- </Stack>- );-};--const CompanyInfo = ({ record }: { record: Company }) => {- if (!record.website && !record.linkedin_url && !record.phone_number) {- return null;- }-- return (- <Stack>- <Typography variant="subtitle2">Company Info</Typography>- <Divider sx={{ mb: 1 }} />- {record.website && (- <Stack- direction="row"- alignItems="center"- gap={1}- minHeight={24}- >- <PublicIcon color="disabled" fontSize="small" />- <UrlField- source="website"- target="_blank"- rel="noopener"- content={record.website- .replace('http://', '')- .replace('https://', '')}- />- </Stack>- )}- {record.linkedin_url && (- <Stack- direction="row"- alignItems="center"- gap={1}- minHeight={24}- >- <LinkedInIcon color="disabled" fontSize="small" />- <Tooltip title={record.linkedin_url}>- <Typography- variant="body2"- component={Link}- href={record.linkedin_url}- target="_blank"- rel="noopener noreferrer"- >- </Typography>- </Tooltip>- </Stack>- )}- {record.phone_number && (- <Stack- direction="row"- alignItems="center"- gap={1}- minHeight={24}- >- <PhoneIcon color="disabled" fontSize="small" />- <TextField source="phone_number" color="textSecondary" />- </Stack>- )}- </Stack>- );-};--const ContextInfo = ({ record }: { record: Company }) => {- if (!record.revenue && !record.id) {- return null;- }-- return (- <Stack>- <Typography variant="subtitle2">Context</Typography>- <Divider sx={{ mb: 1 }} />- {record.sector && (- <Typography- component="span"- variant="body2"- color="textSecondary"- gutterBottom- >- Sector: <TextField source="sector" color="textPrimary" />- </Typography>- )}- {record.size && (- <Typography- component="span"- variant="body2"- color="textSecondary"- gutterBottom- >- Size:{' '}- <SelectField- source="size"- color="textPrimary"- choices={sizes}- />- </Typography>- )}- {record.revenue && (- <Typography- component="span"- variant="body2"- color="textSecondary"- gutterBottom- >- Revenue: <TextField source="revenue" color="textPrimary" />- </Typography>- )}- {record.tax_identifier && (- <Typography- component="span"- variant="body2"- color="textSecondary"- gutterBottom- >- Tax Identifier:{' '}- <TextField source="tax_identifier" color="textPrimary" />- </Typography>- )}- </Stack>- );-};--const AddressInfo = ({ record }: { record: Company }) => {- if (- !record.address &&- !record.city &&- !record.zipcode &&- !record.stateAbbr- ) {- return null;- }-- return (- <Stack>- <Typography variant="subtitle2">Main Address</Typography>- <Divider sx={{ mb: 1 }} />- <TextField source="address" color="textSecondary" />- <TextField source="city" color="textSecondary" />- <TextField source="zipcode" color="textSecondary" />- <TextField source="stateAbbr" color="textSecondary" />- <TextField source="country" color="textSecondary" />- </Stack>- );-};--const AdditionalInfo = ({ record }: { record: Company }) => {- if (- !record.created_at &&- !record.sales_id &&- !record.description &&- !record.context_links- ) {- return null;- }- const getBaseURL = (url: string) => {- const urlObject = new URL(url);- return urlObject.origin;- };-- return (- <Stack>- <Typography variant="subtitle2">Additional Info</Typography>- <Divider sx={{ mb: 1 }} />- {record.description && (- <Typography variant="body2" color="textSecondary" gutterBottom>- {record.description}- </Typography>- )}- {record.context_links && (- <Stack>- {record.context_links.map((link, index) =>- link ? (- <Tooltip title={link}>- <Typography- key={index}- variant="body2"- gutterBottom- component={Link}- href={link}- target="_blank"- rel="noopener noreferrer"- >- {getBaseURL(link)}- </Typography>- </Tooltip>- ) : null- )}- </Stack>- )}- {record.sales_id !== null && (- <Typography variant="body2" color="textSecondary" gutterBottom>- Followed by{' '}- <ReferenceField- source="sales_id"- reference="sales"- record={record}- />- </Typography>- )}- {record.created_at && (- <Typography variant="body2" color="textSecondary" gutterBottom>- Added on{' '}- <DateField- source="created_at"- record={record}- color="textPrimary"- options={{- year: 'numeric',- month: 'long',- day: 'numeric',- }}- />- </Typography>- )}- </Stack>- );-};-export default CompanyInfo;diff --git a/src/companies/CompanyAvatar.tsx b/src/companies/CompanyAvatar.tsxdeleted file mode 100644index 9d4777b0..00000000--- a/src/companies/CompanyAvatar.tsx+++ /dev/null@@ -1,32 +0,0 @@-import * as React from 'react';-import { Avatar } from '@mui/material';-import { useRecordContext } from 'react-admin';--import { Company } from '../types';--export const CompanyAvatar = (props: {- record?: Company;- width?: number;- height?: number;-}) => {- const { width = 40, height = 40 } = props;- const record = useRecordContext<Company>(props);- if (!record) return null;- return (- <Avatar- src={record.logo?.src}- alt={record.name}- sx={{- '& img': { objectFit: 'contain' },- width,- height,- fontSize: height !== 40 ? '0.6rem' : undefined,- '&.MuiAvatar-colorDefault': {- color: 'primary.contrastText',- },- }}- >- {record.name.charAt(0)}- </Avatar>- );-};diff --git a/src/companies/CompanyCard.tsx b/src/companies/CompanyCard.tsxdeleted file mode 100644index 27333b12..00000000--- a/src/companies/CompanyCard.tsx+++ /dev/null@@ -1,129 +0,0 @@-import * as React from 'react';-import { useState } from 'react';-import { AvatarGroup, Paper, Typography, Box } from '@mui/material';-import DealIcon from '@mui/icons-material/MonetizationOn';-import {- useCreatePath,- SelectField,- useRecordContext,- Link,- ReferenceManyField,- useListContext,-} from 'react-admin';--import { CompanyAvatar } from './CompanyAvatar';-import { Company } from '../types';-import { useConfigurationContext } from '../root/ConfigurationContext';-import { Avatar } from '../contacts/Avatar';--export const CompanyCard = (props: { record?: Company }) => {- const { companySectors } = useConfigurationContext();- const [elevation, setElevation] = useState(1);- const createPath = useCreatePath();- const record = useRecordContext<Company>(props);- if (!record) return null;-- return (- <Link- to={createPath({- resource: 'companies',- id: record.id,- type: 'show',- })}- underline="none"- onMouseEnter={() => setElevation(3)}- onMouseLeave={() => setElevation(1)}- >- <Paper- sx={{- height: 200,- display: 'flex',- flexDirection: 'column',- justifyContent: 'space-between',- padding: '1em',- }}- elevation={elevation}- >- <Box display="flex" flexDirection="column" alignItems="center">- <CompanyAvatar />- <Box textAlign="center" marginTop={1}>- <Typography variant="subtitle2">- {record.name}- </Typography>- <SelectField- color="textSecondary"- source="sector"- choices={companySectors.map(sector => ({- id: sector,- name: sector,- }))}- />- </Box>- </Box>- <Box display="flex" width="100%">- <Box display="flex" alignItems="center">- {record.nb_contacts ? (- <ReferenceManyField- reference="contacts"- target="company_id"- >- <AvatarGroupIterator />- </ReferenceManyField>- ) : null}- </Box>- {record.nb_deals ? (- <Box- sx={{- display: 'flex',- alignItems: 'center',- ml: 2,- gap: 0.5,- }}- >- <DealIcon color="disabled" />- <Typography variant="subtitle2">- {record.nb_deals}- </Typography>- <Typography variant="caption" color="textSecondary">- {record.nb_deals- ? record.nb_deals > 1- ? 'deals'- : 'deal'- : 'deal'}- </Typography>- </Box>- ) : null}- </Box>- </Paper>- </Link>- );-};--const AvatarGroupIterator = () => {- const { data, total, error, isPending } = useListContext();- if (isPending || error) return null;- return (- <AvatarGroup- max={4}- total={total}- spacing="medium"- sx={{- '& .MuiAvatar-circular': {- width: 20,- height: 20,- fontSize: '0.6rem',- },- }}- >- {data.map((record: any) => (- <Avatar- key={record.id}- record={record}- width={20}- height={20}- title={`${record.first_name} ${record.last_name}`}- />- ))}- </AvatarGroup>- );-};diff --git a/src/companies/CompanyCreate.tsx b/src/companies/CompanyCreate.tsxdeleted file mode 100644index 0cc2e5f2..00000000--- a/src/companies/CompanyCreate.tsx+++ /dev/null@@ -1,29 +0,0 @@-import * as React from 'react';-import { Create, Form, Toolbar, useGetIdentity } from 'react-admin';-import { CardContent } from '@mui/material';--import { CompanyInputs } from './CompanyInputs';--export const CompanyCreate = () => {- const { identity } = useGetIdentity();- return (- <Create- actions={false}- redirect="show"- transform={values => {- // add https:// before website if not present- if (values.website && !values.website.startsWith('http')) {- values.website = `https://${values.website}`;- }- return values;- }}- >- <Form defaultValues={{ sales_id: identity?.id }}>- <CardContent>- <CompanyInputs />- </CardContent>- <Toolbar />- </Form>- </Create>- );-};diff --git a/src/companies/CompanyEdit.tsx b/src/companies/CompanyEdit.tsxdeleted file mode 100644index c26bd1bf..00000000--- a/src/companies/CompanyEdit.tsx+++ /dev/null@@ -1,29 +0,0 @@-import * as React from 'react';-import { Edit, Form, Toolbar } from 'react-admin';-import { CardContent } from '@mui/material';--import { CompanyInputs } from './CompanyInputs';--import { CompanyAside } from './CompanyAside';--export const CompanyEdit = () => (- <Edit- aside={<CompanyAside link="show" />}- actions={false}- redirect="show"- transform={values => {- // add https:// before website if not present- if (values.website && !values.website.startsWith('http')) {- values.website = `https://${values.website}`;- }- return values;- }}- >- <Form>- <CardContent>- <CompanyInputs />- </CardContent>- <Toolbar />- </Form>- </Edit>-);diff --git a/src/companies/CompanyEmpty.tsx b/src/companies/CompanyEmpty.tsxdeleted file mode 100644index 397c078f..00000000--- a/src/companies/CompanyEmpty.tsx+++ /dev/null@@ -1,35 +0,0 @@-import { Stack, Typography } from '@mui/material';-import { CreateButton } from 'react-admin';-import useAppBarHeight from '../misc/useAppBarHeight';--export const CompanyEmpty = () => {- const appbarHeight = useAppBarHeight();- return (- <Stack- justifyContent="center"- alignItems="center"- gap={3}- sx={{- height: `calc(100dvh - ${appbarHeight}px)`,- }}- >- <img src="./img/empty.svg" alt="No companies found" />- <Stack gap={0} alignItems="center">- <Typography variant="h6" fontWeight="bold">- No companies found- </Typography>- <Typography- variant="body2"- align="center"- color="text.secondary"- gutterBottom- >- It seems your company list is empty.- </Typography>- </Stack>- <Stack spacing={2} direction="row">- <CreateButton variant="contained" label="Create Company" />- </Stack>- </Stack>- );-};diff --git a/src/companies/CompanyInputs.tsx b/src/companies/CompanyInputs.tsxdeleted file mode 100644index 2fa69dda..00000000--- a/src/companies/CompanyInputs.tsx+++ /dev/null@@ -1,180 +0,0 @@-import {- Divider,- Stack,- Typography,- useMediaQuery,- useTheme,-} from '@mui/material';-import {- ArrayInput,- ReferenceInput,- SelectInput,- SimpleFormIterator,- TextInput,- required,- useRecordContext,-} from 'react-admin';-import { isLinkedinUrl } from '../misc/isLinkedInUrl';-import { useConfigurationContext } from '../root/ConfigurationContext';-import { Company, Sale } from '../types';-import { sizes } from './sizes';-import ImageEditorField from '../misc/ImageEditorField';--const isUrl = (url: string) => {- if (!url) return;- const UrlRegex = new RegExp(- /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i- );- if (!UrlRegex.test(url)) {- return 'Must be a valid URL';- }-};--export const CompanyInputs = () => {- const theme = useTheme();- const isMobile = useMediaQuery(theme.breakpoints.down('md'));-- return (- <Stack gap={4} p={1}>- <CompanyDisplayInputs />- <Stack gap={4} direction={isMobile ? 'column' : 'row'}>- <Stack gap={4} flex={1}>- <CompanyContactInputs />- <CompanyContextInputs />- </Stack>- <Divider- orientation={isMobile ? 'horizontal' : 'vertical'}- flexItem- />- <Stack gap={4} flex={1}>- <CompanyAddressInputs />- <CompanyAdditionalInformationInputs />- <CompanyAccountManagerInput />- </Stack>- </Stack>- </Stack>- );-};--const CompanyDisplayInputs = () => {- const record = useRecordContext<Company>();- return (- <Stack gap={2} flex={1} direction="row">- <ImageEditorField- source="logo"- type="avatar"- width={60}- height={60}- emptyText={record?.name.charAt(0)}- linkPosition="bottom"- />- <TextInput- source="name"- validate={required()}- helperText={false}- sx={{- mt: 0,- }}- />- </Stack>- );-};--const CompanyContactInputs = () => {- return (- <Stack>- <Typography variant="h6">Contact</Typography>- <TextInput source="website" helperText={false} validate={isUrl} />- <TextInput- source="linkedin_url"- helperText={false}- validate={isLinkedinUrl}- />- <TextInput source="phone_number" helperText={false} />- </Stack>- );-};--const CompanyContextInputs = () => {- const { companySectors } = useConfigurationContext();- return (- <Stack>- <Typography variant="h6">Context</Typography>- <SelectInput- source="sector"- choices={companySectors.map(sector => ({- id: sector,- name: sector,- }))}- helperText={false}- />- <SelectInput source="size" choices={sizes} helperText={false} />- <TextInput source="revenue" helperText={false} />- <TextInput source="tax_identifier" helperText={false} />- </Stack>- );-};--const CompanyAddressInputs = () => {- return (- <Stack>- <Typography variant="h6">Address</Typography>- <TextInput source="address" helperText={false} />- <TextInput source="city" helperText={false} />- <TextInput source="zipcode" helperText={false} />- <TextInput source="stateAbbr" helperText={false} />- <TextInput source="country" helperText={false} />- </Stack>- );-};--const CompanyAdditionalInformationInputs = () => {- return (- <Stack>- <Typography variant="h6">Additional information</Typography>- <TextInput source="description" multiline helperText={false} />- <ArrayInput source="context_links" helperText={false}>- <SimpleFormIterator- disableReordering- fullWidth- getItemLabel={false}- sx={{- m: 0,- }}- >- <TextInput- source=""- hiddenLabel- helperText={false}- validate={isUrl}- />- </SimpleFormIterator>- </ArrayInput>- </Stack>- );-};--const CompanyAccountManagerInput = () => {- return (- <Stack>- <Typography variant="h6">Account manager</Typography>- <ReferenceInput- source="sales_id"- reference="sales"- filter={{- 'disabled@neq': true,- }}- >- <SelectInput- label="Account manager"- helperText={false}- optionText={saleOptionRenderer}- validate={required()}- />- </ReferenceInput>- </Stack>- );-};--const saleOptionRenderer = (choice: Sale) =>- `${choice.first_name} ${choice.last_name}`;diff --git a/src/companies/CompanyList.tsx b/src/companies/CompanyList.tsxdeleted file mode 100644index 9e4a32b2..00000000--- a/src/companies/CompanyList.tsx+++ /dev/null@@ -1,61 +0,0 @@-import {- TopToolbar,- ExportButton,- CreateButton,- Pagination,- useGetIdentity,- ListBase,- Title,- ListToolbar,- useListContext,- SortButton,-} from 'react-admin';--import { ImageList } from './GridList';-import { CompanyListFilter } from './CompanyListFilter';-import { Stack } from '@mui/material';-import { CompanyEmpty } from './CompanyEmpty';--export const CompanyList = () => {- const { identity } = useGetIdentity();- if (!identity) return null;- return (- <ListBase perPage={25} sort={{ field: 'name', order: 'ASC' }}>- <CompanyListLayout />- </ListBase>- );-};--const CompanyListLayout = () => {- const { data, isPending, filterValues } = useListContext();- const hasFilters = filterValues && Object.keys(filterValues).length > 0;-- if (isPending) return null;- if (!data?.length && !hasFilters) return <CompanyEmpty />;-- return (- <Stack direction="row" component="div">- <CompanyListFilter />- <Stack sx={{ width: '100%' }}>- <Title title={'Companies'} />- <ListToolbar actions={<CompanyListActions />} />- <ImageList />- <Pagination rowsPerPageOptions={[10, 25, 50, 100]} />- </Stack>- </Stack>- );-};--const CompanyListActions = () => {- return (- <TopToolbar>- <SortButton fields={['name', 'created_at', 'nb_contacts']} />- <ExportButton />- <CreateButton- variant="contained"- label="New Company"- sx={{ marginLeft: 2 }}- />- </TopToolbar>- );-};diff --git a/src/companies/CompanyListFilter.tsx b/src/companies/CompanyListFilter.tsxdeleted file mode 100644index 2b7d0273..00000000--- a/src/companies/CompanyListFilter.tsx+++ /dev/null@@ -1,61 +0,0 @@-/* eslint-disable import/no-anonymous-default-export */-import * as React from 'react';-import {- FilterList,- FilterLiveSearch,- FilterListItem,- useGetIdentity,-} from 'react-admin';-import { Box } from '@mui/material';-import BusinessIcon from '@mui/icons-material/Business';-import LocalShippingIcon from '@mui/icons-material/LocalShipping';-import SupervisorAccountIcon from '@mui/icons-material/SupervisorAccount';--import { sizes } from './sizes';-import { useConfigurationContext } from '../root/ConfigurationContext';--export const CompanyListFilter = () => {- const { identity } = useGetIdentity();- const { companySectors } = useConfigurationContext();- const sectors = companySectors.map(sector => ({- id: sector,- name: sector,- }));- return (- <Box width="13em" minWidth="13em" order={-1} mr={2} mt={5}>- <FilterLiveSearch hiddenLabel />-- <FilterList label="Size" icon={<BusinessIcon />}>- {sizes.map(size => (- <FilterListItem- key={size.id}- label={size.name}- value={{ size: size.id }}- />- ))}- </FilterList>-- <FilterList label="Sector" icon={<LocalShippingIcon />}>- {sectors.map(sector => (- <FilterListItem- key={sector.id}- label={sector.name}- value={{ sector: sector.id }}- />- ))}- </FilterList>-- <FilterList- label="Account manager"- icon={<SupervisorAccountIcon />}- >- <FilterListItem- label="Me"- value={{- sales_id: identity?.id,- }}- />- </FilterList>- </Box>- );-};diff --git a/src/companies/CompanyShow.tsx b/src/companies/CompanyShow.tsxdeleted file mode 100644index c411ed84..00000000--- a/src/companies/CompanyShow.tsx+++ /dev/null@@ -1,259 +0,0 @@-import PersonAddIcon from '@mui/icons-material/PersonAdd';-import {- Box,- Button,- Card,- CardContent,- List,- ListItem,- ListItemAvatar,- ListItemButton,- ListItemSecondaryAction,- ListItemText,- Stack,- Typography,-} from '@mui/material';-import { formatDistance } from 'date-fns';-import {- RecordContextProvider,- ReferenceManyField,- ShowBase,- SortButton,- TabbedShowLayout,- useListContext,- useRecordContext,- useShowContext,-} from 'react-admin';-import { Link as RouterLink, useLocation } from 'react-router-dom';--import { ActivityLog } from '../activity/ActivityLog';-import { Avatar } from '../contacts/Avatar';-import { TagsList } from '../contacts/TagsList';-import { findDealLabel } from '../deals/deal';-import { Status } from '../misc/Status';-import { useConfigurationContext } from '../root/ConfigurationContext';-import { Company, Contact, Deal } from '../types';-import { CompanyAside } from './CompanyAside';-import { CompanyAvatar } from './CompanyAvatar';--export const CompanyShow = () => (- <ShowBase>- <CompanyShowContent />- </ShowBase>-);--const CompanyShowContent = () => {- const { record, isPending } = useShowContext<Company>();-- if (isPending || !record) return null;-- return (- <Box mt={2} display="flex">- <Box flex="1">- <Card>- <CardContent>- <Box display="flex" mb={1}>- <CompanyAvatar />- <Typography variant="h5" ml={2} flex="1">- {record.name}- </Typography>- </Box>-- <TabbedShowLayout- sx={{- '& .RaTabbedShowLayout-content': { p: 0 },- }}- >- <TabbedShowLayout.Tab label="Activity">- <ActivityLog- companyId={record.id}- context="company"- />- </TabbedShowLayout.Tab>- <TabbedShowLayout.Tab- label={- !record.nb_contacts- ? 'No Contacts'- : record.nb_contacts === 1- ? '1 Contact'- : `${record.nb_contacts} Contacts`- }- path="contacts"- >- <ReferenceManyField- reference="contacts_summary"- target="company_id"- sort={{ field: 'last_name', order: 'ASC' }}- >- <Stack- direction="row"- justifyContent="flex-end"- spacing={2}- mt={1}- >- {!!record.nb_contacts && (- <SortButton- fields={[- 'last_name',- 'first_name',- 'last_seen',- ]}- />- )}- <CreateRelatedContactButton />- </Stack>- <ContactsIterator />- </ReferenceManyField>- </TabbedShowLayout.Tab>- {record.nb_deals ? (- <TabbedShowLayout.Tab- label={- record.nb_deals === 1- ? '1 deal'- : `${record.nb_deals} deals`- }- path="deals"- >- <ReferenceManyField- reference="deals"- target="company_id"- sort={{ field: 'name', order: 'ASC' }}- >- <DealsIterator />- </ReferenceManyField>- </TabbedShowLayout.Tab>- ) : null}- </TabbedShowLayout>- </CardContent>- </Card>- </Box>- <CompanyAside />- </Box>- );-};--const ContactsIterator = () => {- const location = useLocation();- const { data: contacts, error, isPending } = useListContext<Contact>();-- if (isPending || error) return null;-- const now = Date.now();- return (- <List dense sx={{ pt: 0 }}>- {contacts.map(contact => (- <RecordContextProvider key={contact.id} value={contact}>- <ListItem disablePadding>- <ListItemButton- component={RouterLink}- to={`/contacts/${contact.id}/show`}- state={{ from: location.pathname }}- >- <ListItemAvatar>- <Avatar />- </ListItemAvatar>- <ListItemText- primary={`${contact.first_name} ${contact.last_name}`}- secondary={- <>- {contact.title}- {contact.nb_tasks- ? ` - ${contact.nb_tasks} task${- contact.nb_tasks > 1- ? 's'- : ''- }`- : ''}- - <TagsList />- </>- }- />- {contact.last_seen && (- <ListItemSecondaryAction>- <Typography- variant="body2"- color="textSecondary"- component="span"- >- last activity{' '}- {formatDistance(contact.last_seen, now)}{' '}- ago <Status status={contact.status} />- </Typography>- </ListItemSecondaryAction>- )}- </ListItemButton>- </ListItem>- </RecordContextProvider>- ))}- </List>- );-};--const CreateRelatedContactButton = () => {- const company = useRecordContext<Company>();- return (- <Button- component={RouterLink}- to="/contacts/create"- state={company ? { record: { company_id: company.id } } : undefined}- color="primary"- size="small"- startIcon={<PersonAddIcon />}- >- Add contact- </Button>- );-};--const DealsIterator = () => {- const { data: deals, error, isPending } = useListContext<Deal>();- const { dealStages } = useConfigurationContext();- if (isPending || error) return null;-- const now = Date.now();- return (- <Box>- <List dense>- {deals.map(deal => (- <ListItem disablePadding key={deal.id}>- <ListItemButton- component={RouterLink}- to={`/deals/${deal.id}/show`}- >- <ListItemText- primary={deal.name}- secondary={- <>- {findDealLabel(dealStages, deal.stage)},{' '}- {deal.amount.toLocaleString('en-US', {- notation: 'compact',- style: 'currency',- currency: 'USD',- currencyDisplay: 'narrowSymbol',- minimumSignificantDigits: 3,- })}- {deal.category- ? `, ${deal.category}`- : ''}- </>- }- />- <ListItemSecondaryAction>- <Typography- variant="body2"- color="textSecondary"- component="span"- >- last activity{' '}- {formatDistance(deal.updated_at, now)}{' '}- ago{' '}- </Typography>- </ListItemSecondaryAction>- </ListItemButton>- </ListItem>- ))}- </List>- </Box>- );-};diff --git a/src/companies/GridList.tsx b/src/companies/GridList.tsxdeleted file mode 100644index 5a098f19..00000000--- a/src/companies/GridList.tsx+++ /dev/null@@ -1,56 +0,0 @@-import * as React from 'react';-import { Box, Paper, Typography } from '@mui/material';-import { RecordContextProvider, useListContext } from 'react-admin';--import { CompanyCard } from './CompanyCard';-import { Company } from '../types';--const times = (nbChildren: number, fn: (key: number) => any) =>- Array.from({ length: nbChildren }, (_, key) => fn(key));--const LoadingGridList = () => (- <Box display="flex" flexWrap="wrap" width={1008} gap={1}>- {times(15, key => (- <Paper- sx={{- height: 200,- width: 194,- display: 'flex',- flexDirection: 'column',- backgroundColor: 'grey[200]',- }}- key={key}- />- ))}- </Box>-);--const LoadedGridList = () => {- const { data, error, isPending } = useListContext<Company>();-- if (isPending || error) return null;-- return (- <Box- width="100%"- gap={1}- display="grid"- gridTemplateColumns="repeat(auto-fill, minmax(180px, 1fr))"- >- {data.map(record => (- <RecordContextProvider key={record.id} value={record}>- <CompanyCard />- </RecordContextProvider>- ))}-- {data.length === 0 && (- <Typography p={2}>No companies found</Typography>- )}- </Box>- );-};--export const ImageList = () => {- const { isPending } = useListContext();- return isPending ? <LoadingGridList /> : <LoadedGridList />;-};diff --git a/src/companies/index.ts b/src/companies/index.tsdeleted file mode 100644index 068b21a8..00000000--- a/src/companies/index.ts+++ /dev/null@@ -1,12 +0,0 @@-/* eslint-disable import/no-anonymous-default-export */-import { CompanyList } from './CompanyList';-import { CompanyCreate } from './CompanyCreate';-import { CompanyShow } from './CompanyShow';-import { CompanyEdit } from './CompanyEdit';--export default {- list: CompanyList,- create: CompanyCreate,- edit: CompanyEdit,- show: CompanyShow,-};diff --git a/src/components/admin/admin.tsx b/src/components/admin/admin.tsxnew file mode 100644index 00000000..0614d65d--- /dev/null+++ b/src/components/admin/admin.tsx@@ -0,0 +1,20 @@+import { CoreAdmin, CoreAdminProps } from "ra-core";+import { i18nProvider } from "@/lib/i18nProvider";+import { Layout } from "@/components/admin/layout";+import { LoginPage } from "@/components/admin/login-page";+import { Ready } from "@/components/admin/ready";+import { ThemeProvider } from "@/components/admin/theme-provider";++export const Admin = (props: CoreAdminProps) => {+ return (+ <ThemeProvider>+ <CoreAdmin+ i18nProvider={i18nProvider}+ layout={Layout}+ loginPage={LoginPage}+ ready={Ready}+ {...props}+ />+ </ThemeProvider>+ );+};diff --git a/src/components/admin/app-sidebar.tsx b/src/components/admin/app-sidebar.tsxnew file mode 100644index 00000000..9fe04696--- /dev/null+++ b/src/components/admin/app-sidebar.tsx@@ -0,0 +1,135 @@+import { createElement } from "react";+import {+ useCanAccess,+ useCreatePath,+ useGetResourceLabel,+ useHasDashboard,+ useResourceDefinitions,+ useTranslate,+} from "ra-core";+import { Link, useMatch } from "react-router";+import {+ Sidebar,+ SidebarContent,+ SidebarFooter,+ SidebarGroup,+ SidebarGroupContent,+ SidebarHeader,+ SidebarMenu,+ SidebarMenuButton,+ SidebarMenuItem,+ useSidebar,+} from "@/components/ui/sidebar";+import { Skeleton } from "@/components/ui/skeleton";+import { House, List, Shell } from "lucide-react";++export function AppSidebar() {+ const hasDashboard = useHasDashboard();+ const resources = useResourceDefinitions();+ const { openMobile, setOpenMobile } = useSidebar();+ const handleClick = () => {+ if (openMobile) {+ setOpenMobile(false);+ }+ };+ return (+ <Sidebar variant="floating" collapsible="icon">+ <SidebarHeader>+ <SidebarMenu>+ <SidebarMenuItem>+ <SidebarMenuButton+ asChild+ className="data-[slot=sidebar-menu-button]:!p-1.5"+ >+ <Link to="/">+ <Shell className="!size-5" />+ <span className="text-base font-semibold">Acme Inc.</span>+ </Link>+ </SidebarMenuButton>+ </SidebarMenuItem>+ </SidebarMenu>+ </SidebarHeader>+ <SidebarContent>+ <SidebarGroup>+ <SidebarGroupContent>+ <SidebarMenu>+ {hasDashboard ? (+ <DashboardMenuItem onClick={handleClick} />+ ) : null}+ {Object.keys(resources)+ .filter((name) => resources[name].hasList)+ .map((name) => (+ <ResourceMenuItem+ key={name}+ name={name}+ onClick={handleClick}+ />+ ))}+ </SidebarMenu>+ </SidebarGroupContent>+ </SidebarGroup>+ </SidebarContent>+ <SidebarFooter />+ </Sidebar>+ );+}++export const DashboardMenuItem = ({ onClick }: { onClick?: () => void }) => {+ const translate = useTranslate();+ const label = translate("ra.page.dashboard", {+ _: "Dashboard",+ });+ const match = useMatch({ path: "/", end: true });+ return (+ <SidebarMenuItem>+ <SidebarMenuButton asChild isActive={!!match}>+ <Link to="/" onClick={onClick}>+ <House />+ {label}+ </Link>+ </SidebarMenuButton>+ </SidebarMenuItem>+ );+};++export const ResourceMenuItem = ({+ name,+ onClick,+}: {+ name: string;+ onClick?: () => void;+}) => {+ const { canAccess, isPending } = useCanAccess({+ resource: name,+ action: "list",+ });+ const resources = useResourceDefinitions();+ const getResourceLabel = useGetResourceLabel();+ const createPath = useCreatePath();+ const to = createPath({+ resource: name,+ type: "list",+ });+ const match = useMatch({ path: to, end: false });++ if (isPending) {+ return <Skeleton className="h-8 w-full" />;+ }++ if (!resources || !resources[name] || !canAccess) return null;++ return (+ <SidebarMenuItem>+ <SidebarMenuButton asChild isActive={!!match}>+ <Link to={to} state={{ _scrollToTop: true }} onClick={onClick}>+ {resources[name].icon ? (+ createElement(resources[name].icon)+ ) : (+ <List />+ )}+ {getResourceLabel(name, 2)}+ </Link>+ </SidebarMenuButton>+ </SidebarMenuItem>+ );+};diff --git a/src/components/admin/array-field.tsx b/src/components/admin/array-field.tsxnew file mode 100644index 00000000..d0bd6229--- /dev/null+++ b/src/components/admin/array-field.tsx@@ -0,0 +1,31 @@+import { ReactNode } from "react";+import {+ ListContextProvider,+ useList,+ useFieldValue,+ RaRecord,+ UseListOptions,+ UseFieldValueOptions,+} from "ra-core";++export const ArrayField = <RecordType extends RaRecord = RaRecord>(+ props: ArrayFieldProps<RecordType>,+) => {+ const { children, resource, perPage, sort, filter } = props;+ const data = useFieldValue(props) || emptyArray;+ const listContext = useList({ data, resource, perPage, sort, filter });++ return (+ <ListContextProvider value={listContext}>{children}</ListContextProvider>+ );+};+export type ArrayFieldProps<+ RecordType extends RaRecord = RaRecord,+ ErrorType = Error,+> = UseListOptions<RecordType, ErrorType> &+ UseFieldValueOptions<RecordType> & {+ children?: ReactNode;+ };+++const emptyArray: any[] = [];diff --git a/src/components/admin/array-input.tsx b/src/components/admin/array-input.tsxnew file mode 100644index 00000000..57477eab--- /dev/null+++ b/src/components/admin/array-input.tsx@@ -0,0 +1,167 @@+import {+ FieldTitle,+ InputProps,+ OptionalResourceContextProvider,+ SourceContextProvider,+ type SourceContextValue,+ composeSyncValidators,+ isRequired,+ useApplyInputDefaultValues,+ useFormGroupContext,+ useFormGroups,+ useGetValidationErrorMessage,+ useSourceContext,+} from "ra-core";+import * as React from "react";+import { useEffect } from "react";+import { useFieldArray, useFormContext } from "react-hook-form";++import { Label } from "@/components/ui/label";+import { cn } from "@/lib/utils";+import { Skeleton } from "../ui/skeleton";+import { sanitizeInputRestProps } from "@/lib/sanitizeInputRestProps";+import { ArrayInputContext } from "@/hooks/array-input-context";+import { InputHelperText } from "@/components/admin/input-helper-text";+import { FormError, FormField } from "@/components/admin/form";++export const ArrayInput = (props: ArrayInputProps) => {+ const {+ className,+ defaultValue = [],+ label,+ isPending,+ children,+ helperText,+ resource: resourceFromProps,+ source: arraySource,+ validate,+ ...rest+ } = props;++ const formGroupName = useFormGroupContext();+ const formGroups = useFormGroups();+ const parentSourceContext = useSourceContext();+ const finalSource = parentSourceContext.getSource(arraySource);++ const sanitizedValidate = Array.isArray(validate)+ ? composeSyncValidators(validate)+ : validate;+ const getValidationErrorMessage = useGetValidationErrorMessage();++ const { getValues } = useFormContext();++ const fieldProps = useFieldArray({+ name: finalSource,+ rules: {+ validate: async (value) => {+ if (!sanitizedValidate) return true;+ const error = await sanitizedValidate(value, getValues(), props);++ if (!error) return true;+ return getValidationErrorMessage(error);+ },+ },+ });++ useEffect(() => {+ if (formGroups && formGroupName != null) {+ formGroups.registerField(finalSource, formGroupName);+ }++ return () => {+ if (formGroups && formGroupName != null) {+ formGroups.unregisterField(finalSource, formGroupName);+ }+ };+ }, [finalSource, formGroups, formGroupName]);++ useApplyInputDefaultValues({+ inputProps: { ...props, defaultValue },+ isArrayInput: true,+ fieldArrayInputControl: fieldProps,+ });++ // The SourceContext will be read by children of ArrayInput to compute their composed source and label+ //+ // <ArrayInput source="orders" /> => SourceContext is "orders"+ // <SimpleFormIterator> => SourceContext is "orders.0"+ // <DateInput source="date" /> => final source for this input will be "orders.0.date"+ // </SimpleFormIterator>+ // </ArrayInput>+ //+ const sourceContext = React.useMemo<SourceContextValue>(+ () => ({+ // source is the source of the ArrayInput child+ getSource: (source: string) => {+ if (!source) {+ // SimpleFormIterator calls getSource('') to get the arraySource+ return parentSourceContext.getSource(arraySource);+ }++ // We want to support nesting and composition with other inputs (e.g. TranslatableInputs, ReferenceOneInput, etc),+ // we must also take into account the parent SourceContext+ //+ // <ArrayInput source="orders" /> => SourceContext is "orders"+ // <SimpleFormIterator> => SourceContext is "orders.0"+ // <DateInput source="date" /> => final source for this input will be "orders.0.date"+ // <ArrayInput source="items" /> => SourceContext is "orders.0.items"+ // <SimpleFormIterator> => SourceContext is "orders.0.items.0"+ // <TextInput source="reference" /> => final source for this input will be "orders.0.items.0.reference"+ // </SimpleFormIterator>+ // </ArrayInput>+ // </SimpleFormIterator>+ // </ArrayInput>+ return parentSourceContext.getSource(`${arraySource}.${source}`);+ },+ // if Array source is items, and child source is name, .0.name => resources.orders.fields.items.name+ getLabel: (source: string) =>+ parentSourceContext.getLabel(`${arraySource}.${source}`),+ }),+ [parentSourceContext, arraySource],+ );++ if (isPending) {+ return <Skeleton className="w-full h-9" />;+ }++ return (+ <FormField+ className={cn(+ "ra-input",+ `ra-input-${finalSource}`,+ className,+ "w-full flex flex-col gap-2",+ )}+ name={finalSource}+ {...sanitizeInputRestProps(rest)}+ >+ <Label className="text-muted-foreground text-sm">+ <FieldTitle+ label={label}+ source={arraySource}+ resource={resourceFromProps}+ isRequired={isRequired(validate)}+ />+ </Label>+ <ArrayInputContext.Provider value={fieldProps}>+ <OptionalResourceContextProvider value={resourceFromProps}>+ <SourceContextProvider value={sourceContext}>+ {children}+ </SourceContextProvider>+ </OptionalResourceContextProvider>+ </ArrayInputContext.Provider>++ <InputHelperText helperText={helperText} />+ <FormError />+ </FormField>+ );+};++export interface ArrayInputProps+ extends Omit<InputProps, "disabled" | "readOnly"> {+ className?: string;+ children: React.ReactNode;+ isFetching?: boolean;+ isLoading?: boolean;+ isPending?: boolean;+}diff --git a/src/components/admin/autocomplete-array-input.tsx b/src/components/admin/autocomplete-array-input.tsxnew file mode 100644index 00000000..d7de1e63--- /dev/null+++ b/src/components/admin/autocomplete-array-input.tsx@@ -0,0 +1,222 @@++import * as React from "react";+import { X } from "lucide-react";+import { Badge } from "@/components/ui/badge";+import {+ Command,+ CommandGroup,+ CommandItem,+ CommandList,+} from "@/components/ui/command";+import {+ FormControl,+ FormError,+ FormField,+ FormLabel,+} from "@/components/admin/form";+import { Command as CommandPrimitive } from "cmdk";+import {+ ChoicesProps,+ InputProps,+ useChoices,+ useChoicesContext,+ useGetRecordRepresentation,+ useInput,+ useTranslate,+ FieldTitle,+ useEvent,+} from "ra-core";+import { InputHelperText } from "./input-helper-text";+import { useCallback } from "react";++export const AutocompleteArrayInput = (+ props: Omit<InputProps, "source"> &+ Partial<Pick<InputProps, "source">> &+ ChoicesProps & {+ className?: string;+ disableValue?: string;+ filterToQuery?: (searchText: string) => any;+ translateChoice?: boolean;+ placeholder?: string;+ inputText?:+ | React.ReactNode+ | ((option: any | undefined) => React.ReactNode);+ },+) => {+ const { filterToQuery = DefaultFilterToQuery, inputText } = props;+ const {+ allChoices = [],+ source,+ resource,+ isFromReference,+ setFilters,+ } = useChoicesContext(props);+ const { id, field, isRequired } = useInput({ ...props, source });+ const translate = useTranslate();+ const { placeholder = translate("ra.action.search", { _: "Search..." }) } =+ props;++ const getRecordRepresentation = useGetRecordRepresentation(resource);+ const { getChoiceText, getChoiceValue } = useChoices({+ optionText:+ props.optionText ?? (isFromReference ? getRecordRepresentation : "name"),+ optionValue: props.optionValue ?? "id",+ disableValue: props.disableValue,+ translateChoice: props.translateChoice ?? !isFromReference,+ });++ const inputRef = React.useRef<HTMLInputElement>(null);+ const [open, setOpen] = React.useState(false);++ const handleUnselect = useEvent((choice: any) => {+ field.onChange(+ field.value.filter((v: any) => v !== getChoiceValue(choice)),+ );+ });++ const handleKeyDown = useEvent((e: React.KeyboardEvent<HTMLDivElement>) => {+ const input = inputRef.current;+ if (input) {+ if (e.key === "Delete" || e.key === "Backspace") {+ if (input.value === "") {+ field.onChange(field.value.slice(0, -1));+ }+ }+ // This is not a default behavior of the <input /> field+ if (e.key === "Escape") {+ input.blur();+ }+ }+ });++ const availableChoices = allChoices.filter(+ (choice) => !field.value.includes(getChoiceValue(choice)),+ );+ const selectedChoices = allChoices.filter((choice) =>+ field.value.includes(getChoiceValue(choice)),+ );+ const [filterValue, setFilterValue] = React.useState("");++ const getInputText = useCallback(+ (selectedChoice: any) => {+ if (typeof inputText === "function") {+ return inputText(selectedChoice);+ }+ if (inputText !== undefined) {+ return inputText;+ }+ return getChoiceText(selectedChoice);+ },+ [inputText, getChoiceText],+ );++ return (+ <FormField className={props.className} id={id} name={field.name}>+ {props.label !== false && (+ <FormLabel>+ <FieldTitle+ label={props.label}+ source={props.source ?? source}+ resource={resource}+ isRequired={isRequired}+ />+ </FormLabel>+ )}+ <FormControl>+ <Command+ onKeyDown={handleKeyDown}+ shouldFilter={!isFromReference}+ className="overflow-visible bg-transparent"+ >+ <div className="group rounded-md bg-transparent dark:bg-input/30 border border-input px-3 py-1.75 text-sm transition-all ring-offset-background focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[3px]">+ <div className="flex flex-wrap gap-1">+ {selectedChoices.map((choice) => (+ <Badge key={getChoiceValue(choice)} variant="outline">+ {getInputText(choice)}+ <button+ className="ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2"+ onKeyDown={(e) => {+ if (e.key === "Enter") {+ handleUnselect(choice);+ }+ }}+ onMouseDown={(e) => {+ e.preventDefault();+ e.stopPropagation();+ }}+ onClick={(e) => {+ e.preventDefault();+ handleUnselect(choice);+ }}+ >+ <span className="sr-only">+ {translate("ra.action.remove", {+ _: "Remove",+ })}+ </span>+ <X className="h-3 w-3" />+ </button>+ </Badge>+ ))}+ {/* Avoid having the "Search" Icon by not using CommandInput */}+ <CommandPrimitive.Input+ ref={inputRef}+ value={filterValue}+ onValueChange={(filter) => {+ setFilterValue(filter);+ // We don't want the ChoicesContext to filter the choices if the input+ // is not from a reference as it would also filter out the selected values+ if (isFromReference) {+ setFilters(filterToQuery(filter), undefined, true);+ }+ }}+ onBlur={() => setOpen(false)}+ onFocus={() => setOpen(true)}+ placeholder={placeholder}+ className="ml-2 flex-1 bg-transparent outline-none placeholder:text-muted-foreground"+ />+ </div>+ </div>+ <div className="relative">+ <CommandList>+ {open && availableChoices.length > 0 ? (+ <div className="absolute top-2 z-10 w-full rounded-md border bg-popover text-popover-foreground shadow-md outline-none animate-in">+ <CommandGroup className="h-full overflow-auto">+ {availableChoices.map((choice) => {+ return (+ <CommandItem+ key={getChoiceValue(choice)}+ onMouseDown={(e) => {+ e.preventDefault();+ e.stopPropagation();+ }}+ onSelect={() => {+ setFilterValue("");+ if (isFromReference) {+ setFilters(filterToQuery(""));+ }+ field.onChange([+ ...field.value,+ getChoiceValue(choice),+ ]);+ }}+ className="cursor-pointer"+ >+ {getChoiceText(choice)}+ </CommandItem>+ );+ })}+ </CommandGroup>+ </div>+ ) : null}+ </CommandList>+ </div>+ </Command>+ </FormControl>+ <InputHelperText helperText={props.helperText} />+ <FormError />+ </FormField>+ );+};++const DefaultFilterToQuery = (searchText: string) => ({ q: searchText });diff --git a/src/components/admin/autocomplete-input.tsx b/src/components/admin/autocomplete-input.tsxnew file mode 100644index 00000000..21c05769--- /dev/null+++ b/src/components/admin/autocomplete-input.tsx@@ -0,0 +1,191 @@++import * as React from "react";+import { Check, ChevronsUpDown } from "lucide-react";+import { cn } from "@/lib/utils";+import { Button } from "@/components/ui/button";+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+} from "@/components/ui/command";+import {+ FormControl,+ FormError,+ FormField,+ FormLabel,+} from "@/components/admin/form";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import {+ ChoicesProps,+ InputProps,+ useChoices,+ useChoicesContext,+ useGetRecordRepresentation,+ useInput,+ useTranslate,+ FieldTitle,+ useEvent,+} from "ra-core";+import { InputHelperText } from "./input-helper-text";+import { useCallback } from "react";++export const AutocompleteInput = (+ props: Omit<InputProps, "source"> &+ Partial<Pick<InputProps, "source">> &+ ChoicesProps & {+ className?: string;+ disableValue?: string;+ filterToQuery?: (searchText: string) => any;+ translateChoice?: boolean;+ placeholder?: string;+ inputText?:+ | React.ReactNode+ | ((option: any | undefined) => React.ReactNode);+ },+) => {+ const { filterToQuery = DefaultFilterToQuery, inputText } = props;+ const {+ allChoices = [],+ source,+ resource,+ isFromReference,+ setFilters,+ } = useChoicesContext(props);+ const { id, field, isRequired } = useInput({ ...props, source });+ const translate = useTranslate();+ const { placeholder = translate("ra.action.search", { _: "Search..." }) } =+ props;++ const getRecordRepresentation = useGetRecordRepresentation(resource);+ const { getChoiceText, getChoiceValue } = useChoices({+ optionText:+ props.optionText ?? (isFromReference ? getRecordRepresentation : "name"),+ optionValue: props.optionValue ?? "id",+ disableValue: props.disableValue,+ translateChoice: props.translateChoice ?? !isFromReference,+ });++ const [filterValue, setFilterValue] = React.useState("");++ const [open, setOpen] = React.useState(false);+ const selectedChoice = allChoices.find(+ (choice) => getChoiceValue(choice) === field.value,+ );++ const getInputText = useCallback(+ (selectedChoice: any) => {+ if (typeof inputText === "function") {+ return inputText(selectedChoice);+ }+ if (inputText !== undefined) {+ return inputText;+ }+ return getChoiceText(selectedChoice);+ },+ [inputText, getChoiceText],+ );++ const handleOpenChange = useEvent((isOpen: boolean) => {+ setOpen(isOpen);+ // Reset the filter when the popover is closed+ if (!isOpen) {+ setFilters(filterToQuery(""));+ }+ });++ return (+ <FormField className={props.className} id={id} name={source}>+ {props.label !== false && (+ <FormLabel>+ <FieldTitle+ label={props.label}+ source={props.source ?? source}+ resource={resource}+ isRequired={isRequired}+ />+ </FormLabel>+ )}+ <FormControl>+ <Popover open={open} onOpenChange={handleOpenChange}>+ <PopoverTrigger asChild>+ <Button+ variant="outline"+ role="combobox"+ aria-expanded={open}+ className="w-full justify-between h-auto py-1.75 font-normal"+ >+ {selectedChoice ? (+ getInputText(selectedChoice)+ ) : (+ <span className="text-muted-foreground">{placeholder}</span>+ )}+ <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />+ </Button>+ </PopoverTrigger>+ <PopoverContent className="w-full p-0">+ {/* We handle the filtering ourselves */}+ <Command shouldFilter={!isFromReference}>+ <CommandInput+ placeholder="Search..."+ value={filterValue}+ onValueChange={(filter) => {+ setFilterValue(filter);+ // We don't want the ChoicesContext to filter the choices if the input+ // is not from a reference as it would also filter out the selected values+ if (isFromReference) {+ setFilters(filterToQuery(filter));+ }+ }}+ />+ <CommandEmpty>No matching item found.</CommandEmpty>+ <CommandGroup>+ {allChoices.map((choice) => (+ <CommandItem+ key={getChoiceValue(choice)}+ value={getChoiceValue(choice)}+ onSelect={() => {+ if (+ field.value === getChoiceValue(choice) &&+ !isRequired+ ) {+ field.onChange("");+ setFilterValue("");+ if (isFromReference) {+ setFilters(filterToQuery(""));+ }+ setOpen(false);+ return;+ }+ field.onChange(getChoiceValue(choice));+ setOpen(false);+ }}+ >+ <Check+ className={cn(+ "mr-2 h-4 w-4",+ field.value === getChoiceValue(choice)+ ? "opacity-100"+ : "opacity-0",+ )}+ />+ {getChoiceText(choice)}+ </CommandItem>+ ))}+ </CommandGroup>+ </Command>+ </PopoverContent>+ </Popover>+ </FormControl>+ <InputHelperText helperText={props.helperText} />+ <FormError />+ </FormField>+ );+};++const DefaultFilterToQuery = (searchText: string) => ({ q: searchText });diff --git a/src/components/admin/badge-field.tsx b/src/components/admin/badge-field.tsxnew file mode 100644index 00000000..5196952d--- /dev/null+++ b/src/components/admin/badge-field.tsx@@ -0,0 +1,37 @@+import * as React from "react";+import { RaRecord, useFieldValue, useTranslate } from "ra-core";+import { Badge } from "@/components/ui/badge";+import { FieldProps } from "@/lib/field.type.ts";++type BadgeProps = React.ComponentProps<typeof Badge>;++export const BadgeField = <RecordType extends RaRecord = RaRecord>({+ defaultValue,+ source,+ record,+ empty,+ resource: _,+ variant = "outline",+ ...rest+}: BadgeFieldProps<RecordType>) => {+ const value = useFieldValue({ defaultValue, source, record });+ const translate = useTranslate();++ if (value == null) {+ return empty && typeof empty === "string"+ ? translate(empty, { _: empty })+ : empty;+ }++ return (+ <Badge variant={variant} {...rest}>+ {typeof value !== "string" ? value.toString() : value}+ </Badge>+ );+};++export interface BadgeFieldProps<RecordType extends RaRecord = RaRecord>+ extends FieldProps<RecordType>,+ BadgeProps {+ variant?: "default" | "outline" | "secondary" | "destructive";+}diff --git a/src/components/admin/boolean-input.tsx b/src/components/admin/boolean-input.tsxnew file mode 100644index 00000000..3bea9155--- /dev/null+++ b/src/components/admin/boolean-input.tsx@@ -0,0 +1,89 @@++import React, { useCallback } from "react";+import { Switch } from "@/components/ui/switch";+import { FormError, FormField, FormLabel } from "@/components/admin/form";+import { useInput, FieldTitle } from "ra-core";+import { InputHelperText } from "./input-helper-text";++export const BooleanInput = (props: BooleanInputProps) => {+ const {+ className,+ defaultValue = false,+ format,+ label,+ helperText,+ onBlur,+ onChange,+ onFocus,+ readOnly,+ disabled,+ parse,+ resource,+ source,+ validate,+ ...rest+ } = props;+ const { id, field, isRequired } = useInput({+ defaultValue,+ format,+ parse,+ resource,+ source,+ onBlur,+ onChange,+ type: "checkbox",+ validate,+ disabled,+ readOnly,+ ...rest,+ });++ const handleChange = useCallback(+ (checked: boolean) => {+ field.onChange(checked);+ // Ensure field is considered as touched+ field.onBlur();+ },+ [field],+ );++ return (+ <FormField className={className} id={id} name={field.name}>+ <div className="flex items-center space-x-2">+ <Switch+ id={id}+ checked={Boolean(field.value)}+ onFocus={onFocus}+ onCheckedChange={handleChange}+ />+ <FormLabel htmlFor={id}>+ <FieldTitle+ label={label}+ source={source}+ resource={resource}+ isRequired={isRequired}+ />+ </FormLabel>+ </div>+ <InputHelperText helperText={helperText} />+ <FormError />+ </FormField>+ );+};++export interface BooleanInputProps {+ className?: string;+ defaultValue?: boolean;+ format?: (value: any) => any;+ helperText?: React.ReactNode;+ label?: string;+ onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;+ onChange?: (value: any) => void;+ onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;+ readOnly?: boolean;+ disabled?: boolean;+ parse?: (value: any) => any;+ resource?: string;+ source: string;+ validate?: any;+}diff --git a/src/components/admin/breadcrumb.tsx b/src/components/admin/breadcrumb.tsxnew file mode 100644index 00000000..49426762--- /dev/null+++ b/src/components/admin/breadcrumb.tsx@@ -0,0 +1,97 @@+import * as React from "react";+import { createPortal } from "react-dom";+import { Separator } from "@/components/ui/separator";+import {+ Breadcrumb as BaseBreadcrumb,+ BreadcrumbEllipsis,+ BreadcrumbItem,+ BreadcrumbPage,+ BreadcrumbList,+ BreadcrumbSeparator,+} from "@/components/ui/breadcrumb";+import { Button } from "@/components/ui/button";+import {+ Drawer,+ DrawerClose,+ DrawerContent,+ DrawerDescription,+ DrawerFooter,+ DrawerHeader,+ DrawerTitle,+ DrawerTrigger,+} from "@/components/ui/drawer";+import { useIsMobile } from "@/hooks/use-mobile";+import { Translate } from "ra-core";++export const Breadcrumb = ({ children, ref }: BreadcrumbProps) => {+ const breadcrumbPortal = document.getElementById("breadcrumb");+ const isMobile = useIsMobile();+ const [open, setOpen] = React.useState(false);+ if (!breadcrumbPortal) return null;+ return createPortal(+ <>+ <Separator+ decorative+ orientation="vertical"+ className="data-[orientation=vertical]:h-4 mr-4"+ />+ <BaseBreadcrumb ref={ref}>+ <BreadcrumbList>+ {isMobile && React.Children.count(children) > 2 ? (+ <React.Fragment>+ <BreadcrumbItem>+ <Drawer open={open} onOpenChange={setOpen}>+ <DrawerTrigger aria-label="Toggle Menu">+ <BreadcrumbEllipsis className="h-4 w-4" />+ </DrawerTrigger>+ <DrawerContent>+ <DrawerHeader className="text-left">+ <DrawerTitle>+ <Translate i18nKey="ra.navigation.breadcrumb_drawer_title">+ Navigate to+ </Translate>+ </DrawerTitle>+ <DrawerDescription>+ <Translate i18nKey="ra.navigation.breadcrumb_drawer_instructions">+ Select a page to navigate to.+ </Translate>+ </DrawerDescription>+ </DrawerHeader>+ <ol className="grid gap-1 px-4">+ {React.Children.toArray(children)+ .slice(0, -1)+ .map((item) => item)}+ </ol>+ <DrawerFooter className="pt-4">+ <DrawerClose asChild>+ <Button variant="outline">+ <Translate i18nKey="ra.action.close">Close</Translate>+ </Button>+ </DrawerClose>+ </DrawerFooter>+ </DrawerContent>+ </Drawer>+ </BreadcrumbItem>+ <BreadcrumbSeparator />+ {React.Children.toArray(children).slice(-1)}+ </React.Fragment>+ ) : (+ React.Children.map(children, (child, index) => (+ <React.Fragment key={index}>+ {child}+ {index < React.Children.count(children) - 1 ? (+ <BreadcrumbSeparator />+ ) : null}+ </React.Fragment>+ ))+ )}+ </BreadcrumbList>+ </BaseBreadcrumb>+ </>,+ breadcrumbPortal+ );+};++export { BreadcrumbItem, BreadcrumbPage };++export type BreadcrumbProps = React.ComponentProps<"nav">;diff --git a/src/components/admin/bulk-actions-toolbar.tsx b/src/components/admin/bulk-actions-toolbar.tsxnew file mode 100644index 00000000..32388e88--- /dev/null+++ b/src/components/admin/bulk-actions-toolbar.tsx@@ -0,0 +1,53 @@+import type { ReactNode } from "react";+import { useListContext, Translate } from "ra-core";+import { Card } from "@/components/ui/card";+import { Button } from "@/components/ui/button";+import { BulkDeleteButton } from "@/components/admin/bulk-delete-button";+import { X } from "lucide-react";+import { BulkExportButton } from "./bulk-export-button";++export function BulkActionsToolbarChildren() {+ return (+ <>+ <BulkExportButton />+ <BulkDeleteButton />+ </>+ );+}++export const BulkActionsToolbar = ({+ children = <BulkActionsToolbarChildren />,+}: {+ children?: ReactNode;+}) => {+ const { selectedIds, onUnselectItems } = useListContext();+ if (!selectedIds?.length) {+ return null;+ }+ const handleUnselectAll = (e: React.MouseEvent) => {+ e.stopPropagation();+ onUnselectItems();+ };+ return (+ <Card className="flex flex-col gap-2 md:gap-6 md:flex-row items-stretch sm:items-center p-2 px-4 w-[90%] sm:w-fit mx-auto fixed bottom-2 left-0 right-0 z-10 bg-zinc-100 dark:bg-zinc-900">+ <div className="flex items-center gap-2">+ <Button+ variant="ghost"+ className="has-[>svg]:px-0"+ onClick={handleUnselectAll}+ >+ <X />+ </Button>+ <span className="text-sm text-muted-foreground">+ <Translate+ i18nKey="ra.action.bulk_actions"+ options={{ smart_count: selectedIds.length }}+ >+ {selectedIds.length} rows selected+ </Translate>+ </span>+ </div>+ {children}+ </Card>+ );+};diff --git a/src/components/admin/bulk-delete-button.tsx b/src/components/admin/bulk-delete-button.tsxnew file mode 100644index 00000000..1e880579--- /dev/null+++ b/src/components/admin/bulk-delete-button.tsx@@ -0,0 +1,61 @@+import { Button } from "@/components/ui/button";+import { Trash } from "lucide-react";+import {+ Translate,+ useDeleteMany,+ useListContext,+ useNotify,+ useResourceContext,+ useTranslate,+ type MutationMode,+} from "ra-core";++export const BulkDeleteButton = ({+ mutationMode = "undoable",+}: {+ mutationMode?: MutationMode;+}) => {+ const resource = useResourceContext();+ const [deleteMany, { isPending }] = useDeleteMany();+ const { selectedIds, onUnselectItems } = useListContext();+ const notify = useNotify();+ const translate = useTranslate();+ const handleClick = (e: React.MouseEvent) => {+ stopPropagation(e);+ deleteMany(+ resource,+ { ids: selectedIds },+ {+ mutationMode,+ onSuccess: () => {+ onUnselectItems();+ notify(`resources.${resource}.notifications.deleted`, {+ messageArgs: {+ smart_count: selectedIds.length,+ _: translate("ra.notification.deleted", {+ smart_count: selectedIds.length,+ _: `${selectedIds.length} elements deleted`,+ }),+ },+ undoable: mutationMode === "undoable",+ });+ },+ }+ );+ };+ return (+ <Button+ variant="destructive"+ type="button"+ onClick={handleClick}+ disabled={isPending}+ className="h-9"+ >+ <Trash />+ <Translate i18nKey="ra.action.delete">Delete</Translate>+ </Button>+ );+};++// useful to prevent click bubbling in a datagrid with rowClick+const stopPropagation = (e: React.MouseEvent) => e.stopPropagation();diff --git a/src/components/admin/bulk-export-button.tsx b/src/components/admin/bulk-export-button.tsxnew file mode 100644index 00000000..fdf566e5--- /dev/null+++ b/src/components/admin/bulk-export-button.tsx@@ -0,0 +1,78 @@+import { Download } from "lucide-react";+import { Translate } from "ra-core";++import { Button } from "../ui/button";+import {+ ResourceInformation,+ useBulkExport,+ UseBulkExportProps,+} from "@/hooks/useBulkExport";++/**+ * Export the selected rows+ *+ * To be used inside the <DataTable bulkActionsButtons> prop.+ *+ * @example // basic usage+ * import { BulkDeleteButton, BulkExportButton, DataTable, List } from '@/components/admin';+ *+ * export const PostList = () => (+ * <List>+ * <DataTable+ * bulkActionsButtons={+ * <>+ * <BulkExportButton />+ * <BulkDeleteButton />+ * </>+ * }+ * >+ * ...+ * </DataTable>+ * </List>+ * );+ */+export const BulkExportButton = <T extends ResourceInformation>({+ icon = defaultIcon,+ label = "ra.action.export",+ onClick,+ ...props+}: BulkExportButtonProps<T>) => {+ const { bulkExport } = useBulkExport(props);++ const handleClick = (event: React.MouseEvent<HTMLButtonElement>) => {+ bulkExport();+ onClick?.(event);+ };++ return (+ <Button+ onClick={handleClick}+ role="button"+ variant="outline"+ size="sm"+ className="flex items-center gap-2 h-9"+ {...sanitizeRestProps(props)}+ >+ {icon}+ {label && <Translate i18nKey={label}>{label}</Translate>}+ </Button>+ );+};++const defaultIcon = <Download className="h-4 w-4" />;++export type BulkExportButtonProps<T extends ResourceInformation> =+ UseBulkExportProps<T> & {+ icon?: React.ReactNode;+ label?: string;+ } & React.ComponentProps<typeof Button>;++const sanitizeRestProps = <T extends ResourceInformation>({+ resource: _resource,+ exporter: _exporter,+ onClick: _onClick,+ label: _label,+ icon: _icon,+ meta: _meta,+ ...rest+}: BulkExportButtonProps<T>) => rest;diff --git a/src/components/admin/cancel-button.tsx b/src/components/admin/cancel-button.tsxnew file mode 100644index 00000000..93834e49--- /dev/null+++ b/src/components/admin/cancel-button.tsx@@ -0,0 +1,21 @@+import { CircleX } from "lucide-react";+import { Translate } from "ra-core";+import { useNavigate } from "react-router";++import { Button } from "../ui/button";++export function CancelButton(props: React.ComponentProps<"button">) {+ const navigate = useNavigate();+ return (+ <Button+ type="button"+ variant="ghost"+ onClick={() => navigate(-1)}+ className="cursor-pointer"+ {...props}+ >+ <CircleX />+ <Translate i18nKey="ra.action.cancel">Cancel</Translate>+ </Button>+ );+}diff --git a/src/components/admin/columns-button.tsx b/src/components/admin/columns-button.tsxnew file mode 100644index 00000000..dc84bd71--- /dev/null+++ b/src/components/admin/columns-button.tsx@@ -0,0 +1,340 @@+import {+ useState,+ useEffect,+ Children,+ type ComponentProps,+ type ReactNode,+} from "react";+import { createPortal } from "react-dom";+// eslint-disable-next-line @typescript-eslint/ban-ts-comment+// @ts-ignore+import * as diacritic from "diacritic";+import {+ useDataTableStoreContext,+ useStore,+ useTranslate,+ useResourceContext,+ useDataTableColumnRankContext,+ useDataTableColumnFilterContext,+ useTranslateLabel,+ DataTableColumnRankContext,+ DataTableColumnFilterContext,+ type RaRecord,+ type Identifier,+ type SortPayload,+ type HintedString,+ type ExtractRecordPaths,+} from "ra-core";+import { Columns, Search } from "lucide-react";+import * as PopoverPrimitive from "@radix-ui/react-popover";+import { useIsMobile } from "@/hooks/use-mobile";+import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";+import { FieldToggle } from "@/components/admin/field-toggle";+import {+ Tooltip,+ TooltipContent,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { Popover, PopoverTrigger } from "@/components/ui/popover";+import { cn } from "@/lib/utils";++/**+ * Renders a button that lets users show / hide columns in a DataTable+ *+ * @example+ * import { ColumnsButton, DataTable } from 'shadcn-admin-kit';+ *+ * const PostListActions = () => (+ * <div className="flex items-center gap-2">+ <ColumnsButton />+ <FilterButton />+ * </div>+ * );+ *+ * const PostList = () => (+ * <List actions={<PostListActions />}>+ * <DataTable>+ * <DataTable.Col source="title" />+ * <DataTable.Col source="author" />+ ...+ * </DataTable>+ * </List>+ * );+ */+export const ColumnsButton = (props: ColumnsButtonProps) => {+ const { className, ...rest } = props;+ const resource = useResourceContext(props);+ const storeKey = props.storeKey || `${resource}.datatable`;++ const [open, setOpen] = useState(false);+ const isMobile = useIsMobile();+ const translate = useTranslate();++ const title = translate("ra.action.select_columns", { _: "Columns" });++ return (+ <span className={cn("inline-flex", className)}>+ <Popover open={open} onOpenChange={setOpen}>+ <PopoverTrigger asChild>+ {isMobile ? (+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ variant="ghost"+ size="icon"+ aria-label={title}+ {...rest}+ >+ <Columns className="size-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>{title}</TooltipContent>+ </Tooltip>+ ) : (+ <Button variant="outline" className="cursor-pointer" {...rest}>+ <Columns />+ {title}+ </Button>+ )}+ </PopoverTrigger>+ <PopoverPrimitive.Portal forceMount>+ <div className={open ? "block" : "hidden"}>+ <PopoverPrimitive.Content+ data-slot="popover-content"+ sideOffset={4}+ align="start"+ className="bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border shadow-md outline-hidden p-0 min-w-[200px]"+ >+ <div id={`${storeKey}-columnsSelector`} className="p-2" />+ </PopoverPrimitive.Content>+ </div>+ </PopoverPrimitive.Portal>+ </Popover>+ </span>+ );+};++export interface ColumnsButtonProps extends ComponentProps<typeof Button> {+ resource?: string;+ storeKey?: string;+}++/**+ * Render DataTable.Col elements in the ColumnsButton selector using a React Portal.+ *+ * @see ColumnsButton+ */+export const ColumnsSelector = ({ children }: ColumnsSelectorProps) => {+ const translate = useTranslate();+ const { storeKey, defaultHiddenColumns } = useDataTableStoreContext();+ const [columnRanks, setColumnRanks] = useStore<number[] | undefined>(+ `${storeKey}_columnRanks`+ );+ const [_hiddenColumns, setHiddenColumns] = useStore<string[]>(+ storeKey,+ defaultHiddenColumns+ );+ const elementId = `${storeKey}-columnsSelector`;++ const [container, setContainer] = useState<HTMLElement | null>(() =>+ typeof document !== "undefined" ? document.getElementById(elementId) : null+ );++ // on first mount, we don't have the container yet, so we wait for it+ useEffect(() => {+ if (+ container &&+ typeof document !== "undefined" &&+ document.body.contains(container)+ )+ return;+ // look for the container in the DOM every 100ms+ const interval = setInterval(() => {+ const target = document.getElementById(elementId);+ if (target) setContainer(target);+ }, 100);+ // stop looking after 500ms+ const timeout = setTimeout(() => clearInterval(interval), 500);+ return () => {+ clearInterval(interval);+ clearTimeout(timeout);+ };+ }, [elementId, container]);++ const [columnFilter, setColumnFilter] = useState<string>("");++ if (!container) return null;++ const childrenArray = Children.toArray(children);+ const paddedColumnRanks = padRanks(columnRanks ?? [], childrenArray.length);+ const shouldDisplaySearchInput = childrenArray.length > 5;++ return createPortal(+ <ul className="max-h-[50vh] p-1 overflow-auto">+ {shouldDisplaySearchInput ? (+ <li className="pb-2" tabIndex={-1}>+ <div className="relative">+ <Input+ value={columnFilter}+ onChange={(e: React.ChangeEvent<HTMLInputElement>) => {+ setColumnFilter(e.target.value);+ }}+ placeholder={translate("ra.action.search_columns", {+ _: "Search columns",+ })}+ className="pr-8"+ />+ <Search className="absolute right-2 top-2 h-4 w-4 text-muted-foreground" />+ {columnFilter && (+ <button+ onClick={() => setColumnFilter("")}+ className="absolute right-8 top-2 h-4 w-4 text-muted-foreground"+ aria-label="Clear"+ >+ ×+ </button>+ )}+ </div>+ </li>+ ) : null}+ {paddedColumnRanks.map((position, index) => (+ <DataTableColumnRankContext.Provider value={position} key={index}>+ <DataTableColumnFilterContext.Provider+ value={columnFilter}+ key={index}+ >+ {childrenArray[position]}+ </DataTableColumnFilterContext.Provider>+ </DataTableColumnRankContext.Provider>+ ))}+ <li className="text-center mt-2 px-3">+ <Button+ variant="outline"+ size="sm"+ onClick={() => {+ setColumnRanks(undefined);+ setHiddenColumns(defaultHiddenColumns);+ }}+ >+ Reset+ </Button>+ </li>+ </ul>,+ container+ );+};++interface ColumnsSelectorProps {+ children?: React.ReactNode;+}++export const ColumnsSelectorItem = <+ RecordType extends RaRecord<Identifier> = RaRecord<Identifier>+>({+ source,+ label,+}: ColumnsSelectorItemProps<RecordType>) => {+ const resource = useResourceContext();+ const { storeKey, defaultHiddenColumns } = useDataTableStoreContext();+ const [hiddenColumns, setHiddenColumns] = useStore<string[]>(+ storeKey,+ defaultHiddenColumns+ );+ const columnRank = useDataTableColumnRankContext();+ const [columnRanks, setColumnRanks] = useStore<number[]>(+ `${storeKey}_columnRanks`+ );+ const columnFilter = useDataTableColumnFilterContext();+ const translateLabel = useTranslateLabel();+ if (!source && !label) return null;+ const fieldLabel = translateLabel({+ label: typeof label === "string" ? label : undefined,+ resource,+ source,+ }) as string;+ const isColumnHidden = hiddenColumns.includes(source!);+ const isColumnFiltered = fieldLabelMatchesFilter(fieldLabel, columnFilter);++ const handleMove = (+ index1: number | string,+ index2: number | string | null+ ) => {+ const colRanks = !columnRanks+ ? padRanks([], Math.max(Number(index1), Number(index2 || 0)) + 1)+ : Math.max(Number(index1), Number(index2 || 0)) > columnRanks.length - 1+ ? padRanks(columnRanks, Math.max(Number(index1), Number(index2 || 0)) + 1)+ : columnRanks;+ const index1Pos = colRanks.findIndex((index) => index == Number(index1));+ const index2Pos = colRanks.findIndex((index) => index == Number(index2));+ if (index1Pos === -1 || index2Pos === -1) {+ return;+ }+ let newColumnRanks;+ if (index1Pos > index2Pos) {+ newColumnRanks = [+ ...colRanks.slice(0, index2Pos),+ colRanks[index1Pos],+ ...colRanks.slice(index2Pos, index1Pos),+ ...colRanks.slice(index1Pos + 1),+ ];+ } else {+ newColumnRanks = [+ ...colRanks.slice(0, index1Pos),+ ...colRanks.slice(index1Pos + 1, index2Pos + 1),+ colRanks[index1Pos],+ ...colRanks.slice(index2Pos + 1),+ ];+ }+ setColumnRanks(newColumnRanks);+ };++ return isColumnFiltered ? (+ <FieldToggle+ key={columnRank}+ source={source!}+ label={fieldLabel}+ index={String(columnRank)}+ selected={!isColumnHidden}+ onToggle={() =>+ isColumnHidden+ ? setHiddenColumns(+ hiddenColumns.filter((column) => column !== source!)+ )+ : setHiddenColumns([...hiddenColumns, source!])+ }+ onMove={handleMove}+ />+ ) : null;+};++// this is the same interface as DataTableColumnProps+// but we copied it here to avoid circular dependencies with data-table+export interface ColumnsSelectorItemProps<+ RecordType extends RaRecord<Identifier> = RaRecord<Identifier>+> {+ className?: string;+ cellClassName?: string;+ headerClassName?: string;+ conditionalClassName?: (record: RecordType) => string | false | undefined;+ children?: ReactNode;+ render?: (record: RecordType) => React.ReactNode;+ field?: React.ElementType;+ source?: NoInfer<HintedString<ExtractRecordPaths<RecordType>>>;+ label?: React.ReactNode;+ disableSort?: boolean;+ sortByOrder?: SortPayload["order"];+}+// Function to help with column ranking+const padRanks = (ranks: number[], length: number) =>+ ranks.concat(+ Array.from({ length: length - ranks.length }, (_, i) => ranks.length + i)+ );++const fieldLabelMatchesFilter = (fieldLabel: string, columnFilter?: string) =>+ columnFilter+ ? diacritic+ .clean(fieldLabel)+ .toLowerCase()+ .includes(diacritic.clean(columnFilter).toLowerCase())+ : true;diff --git a/src/components/admin/confirm.tsx b/src/components/admin/confirm.tsxnew file mode 100644index 00000000..094c5350--- /dev/null+++ b/src/components/admin/confirm.tsx@@ -0,0 +1,114 @@+import { AlertCircle, CheckCircle } from "lucide-react";+import { useTranslate } from "ra-core";+import * as React from "react";+import { type ComponentType, type MouseEventHandler, useCallback } from "react";++import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";++export const Confirm = (props: ConfirmProps) => {+ const {+ className,+ isOpen = false,+ loading,+ title,+ content,+ cancel = "ra.action.cancel",+ confirm = "ra.action.confirm",+ confirmColor = "primary",+ ConfirmIcon = CheckCircle,+ CancelIcon = AlertCircle,+ onClose,+ onConfirm,+ translateOptions = {},+ titleTranslateOptions = translateOptions,+ contentTranslateOptions = translateOptions,+ ...rest+ } = props;++ const translate = useTranslate();++ const handleConfirm = useCallback(+ (e: React.MouseEvent<HTMLButtonElement>) => {+ e.stopPropagation();+ onConfirm(e);+ },+ [onConfirm],+ );++ const handleClick = useCallback((e: React.MouseEvent<HTMLDivElement>) => {+ e.stopPropagation();+ }, []);++ return (+ <Dialog open={isOpen} onOpenChange={() => onClose()}>+ <DialogContent className={className} onClick={handleClick} {...rest}>+ <DialogHeader>+ <DialogTitle>+ {typeof title === "string"+ ? translate(title, { _: title, ...titleTranslateOptions })+ : title}+ </DialogTitle>+ {typeof content === "string" ? (+ <DialogDescription>+ {translate(content, {+ _: content,+ ...contentTranslateOptions,+ })}+ </DialogDescription>+ ) : (+ content+ )}+ </DialogHeader>+ <DialogFooter>+ <Button+ variant="ghost"+ disabled={loading}+ onClick={onClose}+ className="gap-1"+ >+ <CancelIcon className="h-5 w-5" />+ {translate(cancel, { _: cancel })}+ </Button>+ <Button+ disabled={loading}+ onClick={handleConfirm}+ className="gap-1"+ variant={confirmColor === "warning" ? "destructive" : "default"}+ >+ <ConfirmIcon className="h-5 w-5" />+ {translate(confirm, { _: confirm })}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+};++export interface ConfirmProps {+ cancel?: string;+ className?: string;+ confirm?: string;+ confirmColor?: "primary" | "warning";+ ConfirmIcon?: ComponentType;+ CancelIcon?: ComponentType;+ content: React.ReactNode;+ isOpen?: boolean;+ loading?: boolean;+ onClose: () => void;+ onConfirm: MouseEventHandler;+ title: React.ReactNode;+ /**+ * @deprecated use `titleTranslateOptions` and `contentTranslateOptions` instead+ */+ translateOptions?: object;+ titleTranslateOptions?: object;+ contentTranslateOptions?: object;+}diff --git a/src/components/admin/count.tsx b/src/components/admin/count.tsxnew file mode 100644index 00000000..62519383--- /dev/null+++ b/src/components/admin/count.tsx@@ -0,0 +1,91 @@+import {+ useResourceContext,+ useGetList,+ useTimeout,+ useCreatePath,+ SortPayload,+} from "ra-core";+import { CircleX, LoaderCircle } from "lucide-react";++import { Link } from "react-router";++/**+ * Fetch and render the number of records of a given resource+ *+ * Relies on dataProvider.getList() returning a total property+ *+ * @example // Display the number of records in the current resource (based on ResourceContext)+ * <Count />+ *+ * @example // Display the number of posts+ * <Count resource="posts" />+ *+ * @example // Display the number of published posts+ * <Count resource="posts" filter={{ is_published: true }}/>+ *+ * @example // Display the number of posts, with a custom Typography variant+ * <Count resource="posts" variant="h1" />+ *+ * @see ReferenceManyCount for a similar component which fetches the number of records related to the current one+ */+export const Count = (props: CountProps) => {+ const {+ filter,+ sort,+ link,+ // eslint-disable-next-line @typescript-eslint/no-unused-vars+ resource: resourceFromProps,+ timeout = 1000,+ ...rest+ } = props;+ const resource = useResourceContext(props);+ if (!resource) {+ throw new Error(+ "The Count component must be used inside a ResourceContext or must be passed a resource prop."+ );+ }+ const oneSecondHasPassed = useTimeout(timeout);+ const createPath = useCreatePath();++ const { total, isPending, error } = useGetList(resource, {+ filter,+ sort,+ pagination: { perPage: 1, page: 1 },+ });++ const body = isPending ? (+ oneSecondHasPassed ? (+ <LoaderCircle className="animate-spin" />+ ) : (+ ""+ )+ ) : error ? (+ <CircleX color="error" />+ ) : (+ total+ );++ return link ? (+ <Link+ to={{+ pathname: createPath({ resource, type: "list" }),+ search: filter ? `filter=${JSON.stringify(filter)}` : undefined,+ }}+ onClick={(e) => e.stopPropagation()}+ {...rest}+ >+ {body}+ </Link>+ ) : (+ <span {...rest}>{body}</span>+ );+};++export interface CountProps {++ filter?: any;+ sort?: SortPayload;+ link?: boolean;+ resource?: string;+ timeout?: number;+}diff --git a/src/components/admin/create-button.tsx b/src/components/admin/create-button.tsxnew file mode 100644index 00000000..4d3621b8--- /dev/null+++ b/src/components/admin/create-button.tsx@@ -0,0 +1,37 @@+import React from "react";+import { buttonVariants } from "@/components/ui/button";+import { Plus } from "lucide-react";+import { Translate, useCreatePath, useResourceContext } from "ra-core";+import { Link } from "react-router";++export type CreateButtonProps = {+ label?: string;+ resource?: string;+};++export const CreateButton = ({+ label,+ resource: targetResource,+}: CreateButtonProps) => {+ const resource = useResourceContext();+ const createPath = useCreatePath();+ const link = createPath({+ resource: targetResource ?? resource,+ type: "create",+ });+ return (+ <Link+ className={buttonVariants({ variant: "outline" })}+ to={link}+ onClick={stopPropagation}+ >+ <Plus />+ <Translate i18nKey={label ?? "ra.action.create"}>+ {label ?? "Create"}+ </Translate>+ </Link>+ );+};++// useful to prevent click bubbling in a datagrid with rowClick+const stopPropagation = (e: React.MouseEvent) => e.stopPropagation();diff --git a/src/components/admin/create.tsx b/src/components/admin/create.tsxnew file mode 100644index 00000000..5b022ec4--- /dev/null+++ b/src/components/admin/create.tsx@@ -0,0 +1,75 @@+import {+ Breadcrumb,+ BreadcrumbItem,+ BreadcrumbPage,+} from "@/components/admin/breadcrumb";+import {+ CreateBase,+ type CreateBaseProps,+ Translate,+ useCreateContext,+ useCreatePath,+ useGetResourceLabel,+ useHasDashboard,+ useResourceContext,+} from "ra-core";+import { ReactNode } from "react";+import { Link } from "react-router";++export type CreateProps = CreateViewProps & CreateBaseProps;++export const Create = ({ title, children, ...rest }: CreateProps) => (+ <CreateBase {...rest}>+ <CreateView title={title}>{children}</CreateView>+ </CreateBase>+);++export type CreateViewProps = {+ title?: ReactNode | string | false;+ children: ReactNode;+};++export const CreateView = ({ title, children }: CreateViewProps) => {+ const context = useCreateContext();++ const resource = useResourceContext();+ if (!resource) {+ throw new Error(+ "The CreateView component must be used within a ResourceContextProvider",+ );+ }+ const getResourceLabel = useGetResourceLabel();+ const listLabel = getResourceLabel(resource, 2);+ const createPath = useCreatePath();+ const listLink = createPath({+ resource,+ type: "list",+ });+ const hasDashboard = useHasDashboard();++ return (+ <>+ <Breadcrumb>+ {hasDashboard && (+ <BreadcrumbItem>+ <Link to="/">+ <Translate i18nKey="ra.page.dashboard">Home</Translate>+ </Link>+ </BreadcrumbItem>+ )}+ <BreadcrumbItem>+ <Link to={listLink}>{listLabel}</Link>+ </BreadcrumbItem>+ <BreadcrumbPage>+ <Translate i18nKey="ra.action.create">Create</Translate>+ </BreadcrumbPage>+ </Breadcrumb>+ <div className="flex justify-between items-start flex-wrap gap-2 my-2">+ <h2 className="text-2xl font-bold tracking-tight">+ {title !== undefined ? title : context.defaultTitle}+ </h2>+ </div>+ <div className="my-2">{children}</div>+ </>+ );+};diff --git a/src/components/admin/data-table.tsx b/src/components/admin/data-table.tsxnew file mode 100644index 00000000..822153e5--- /dev/null+++ b/src/components/admin/data-table.tsx@@ -0,0 +1,497 @@+import {+ Children,+ createElement,+ isValidElement,+ useCallback,+ type ReactNode,+} from "react";+import {+ DataTableBase,+ DataTableBaseProps,+ DataTableRenderContext,+ ExtractRecordPaths,+ FieldTitle,+ HintedString,+ Identifier,+ RaRecord,+ RecordContextProvider,+ SortPayload,+ useDataTableCallbacksContext,+ useDataTableConfigContext,+ useDataTableDataContext,+ useDataTableRenderContext,+ useDataTableSelectedIdsContext,+ useDataTableSortContext,+ useDataTableStoreContext,+ useGetPathForRecordCallback,+ useRecordContext,+ useResourceContext,+ useStore,+ useTranslate,+ useTranslateLabel,+} from "ra-core";+import { useNavigate } from "react-router";+import { ArrowDownAZ, ArrowUpZA } from "lucide-react";+import get from "lodash/get";+import { cn } from "@/lib/utils";+import { Alert, AlertDescription } from "@/components/ui/alert";+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table";+import { Button } from "@/components/ui/button";+import { Checkbox } from "@/components/ui/checkbox";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import {+ ColumnsSelector,+ ColumnsSelectorItem,+} from "@/components/admin/columns-button";+import { NumberField } from "@/components/admin/number-field";+import {+ BulkActionsToolbar,+ BulkActionsToolbarChildren,+} from "@/components/admin/bulk-actions-toolbar";++const defaultBulkActionButtons = <BulkActionsToolbarChildren />;++export function DataTable<RecordType extends RaRecord = RaRecord>(+ props: DataTableProps<RecordType>+) {+ const {+ children,+ className,+ rowClassName,+ bulkActionButtons = defaultBulkActionButtons,+ bulkActionsToolbar,+ ...rest+ } = props;+ const hasBulkActions = !!bulkActionsToolbar || bulkActionButtons !== false;+ const resourceFromContext = useResourceContext(props);+ const storeKey = props.storeKey || `${resourceFromContext}.datatable`;+ const [columnRanks] = useStore<number[]>(`${storeKey}_columnRanks`);+ const columns = columnRanks+ ? reorderChildren(children, columnRanks)+ : children;++ return (+ <DataTableBase<RecordType>+ hasBulkActions={hasBulkActions}+ loading={null}+ empty={<DataTableEmpty />}+ {...rest}+ >+ <div className={cn("rounded-md border", className)}>+ <Table>+ <DataTableRenderContext.Provider value="header">+ <DataTableHead>{columns}</DataTableHead>+ </DataTableRenderContext.Provider>+ <DataTableBody<RecordType> rowClassName={rowClassName}>+ {columns}+ </DataTableBody>+ </Table>+ </div>+ {bulkActionsToolbar ??+ (bulkActionButtons !== false && (+ <BulkActionsToolbar>+ {isValidElement(bulkActionButtons)+ ? bulkActionButtons+ : defaultBulkActionButtons}+ </BulkActionsToolbar>+ ))}+ <DataTableRenderContext.Provider value="columnsSelector">+ <ColumnsSelector>{children}</ColumnsSelector>+ </DataTableRenderContext.Provider>+ </DataTableBase>+ );+}++DataTable.Col = DataTableColumn;+DataTable.NumberCol = DataTableNumberColumn;++const DataTableHead = ({ children }: { children: ReactNode }) => {+ const data = useDataTableDataContext();+ const { hasBulkActions = false } = useDataTableConfigContext();+ const { onSelect } = useDataTableCallbacksContext();+ const selectedIds = useDataTableSelectedIdsContext();+ const handleToggleSelectAll = (checked: boolean) => {+ if (!onSelect || !data || !selectedIds) return;+ onSelect(+ checked+ ? selectedIds.concat(+ data+ .filter((record) => !selectedIds.includes(record.id))+ .map((record) => record.id)+ )+ : []+ );+ };+ const selectableIds = Array.isArray(data)+ ? data.map((record) => record.id)+ : [];+ return (+ <TableHeader>+ <TableRow>+ {hasBulkActions ? (+ <TableHead className="w-8">+ <Checkbox+ onCheckedChange={handleToggleSelectAll}+ checked={+ selectedIds &&+ selectedIds.length > 0 &&+ selectableIds.length > 0 &&+ selectableIds.every((id) => selectedIds.includes(id))+ }+ className="mb-2"+ />+ </TableHead>+ ) : null}+ {children}+ </TableRow>+ </TableHeader>+ );+};++const DataTableBody = <RecordType extends RaRecord = RaRecord>({+ children,+ rowClassName,+}: {+ children: ReactNode;+ rowClassName?: (record: RecordType) => string | undefined;+}) => {+ const data = useDataTableDataContext();+ return (+ <TableBody>+ {data?.map((record, rowIndex) => (+ <RecordContextProvider+ value={record}+ key={record.id ?? `row${rowIndex}`}+ >+ <DataTableRow className={rowClassName?.(record)}>+ {children}+ </DataTableRow>+ </RecordContextProvider>+ ))}+ </TableBody>+ );+};++const DataTableRow = ({+ children,+ className,+}: {+ children: ReactNode;+ className?: string;+}) => {+ const { rowClick, handleToggleItem } = useDataTableCallbacksContext();+ const selectedIds = useDataTableSelectedIdsContext();+ const { hasBulkActions = false } = useDataTableConfigContext();++ const record = useRecordContext();+ if (!record) {+ throw new Error("DataTableRow can only be used within a RecordContext");+ }++ const resource = useResourceContext();+ if (!resource) {+ throw new Error("DataTableRow can only be used within a ResourceContext");+ }++ const navigate = useNavigate();+ const getPathForRecord = useGetPathForRecordCallback();++ const handleToggle = useCallback(+ (event: React.MouseEvent) => {+ event.stopPropagation();+ if (!handleToggleItem) return;+ handleToggleItem(record.id, event);+ },+ [handleToggleItem, record.id]+ );++ const handleClick = useCallback(async () => {+ const temporaryLink =+ typeof rowClick === "function"+ ? rowClick(record.id, resource, record)+ : rowClick;++ const link = isPromise(temporaryLink) ? await temporaryLink : temporaryLink;++ const path = await getPathForRecord({+ record,+ resource,+ link,+ });+ if (path === false || path == null) {+ return;+ }+ navigate(path, {+ state: { _scrollToTop: true },+ });+ }, [record, resource, rowClick, navigate, getPathForRecord]);++ return (+ <TableRow+ key={record.id}+ onClick={handleClick}+ className={cn(rowClick !== false && "cursor-pointer", className)}+ >+ {hasBulkActions ? (+ <TableCell className="flex w-8" onClick={handleToggle}>+ <Checkbox+ checked={selectedIds?.includes(record.id)}+ onClick={handleToggle}+ />+ </TableCell>+ ) : null}+ {children}+ </TableRow>+ );+};+++const isPromise = (value: any): value is Promise<any> =>+ value && typeof value.then === "function";++const DataTableEmpty = () => {+ return (+ <Alert>+ <AlertDescription>No results found.</AlertDescription>+ </Alert>+ );+};++export interface DataTableProps<RecordType extends RaRecord = RaRecord>+ extends Partial<DataTableBaseProps<RecordType>> {+ children: ReactNode;+ className?: string;+ rowClassName?: (record: RecordType) => string | undefined;+ bulkActionButtons?: ReactNode;+ bulkActionsToolbar?: ReactNode;+}++export function DataTableColumn<+ RecordType extends RaRecord<Identifier> = RaRecord<Identifier>+>(props: DataTableColumnProps<RecordType>) {+ const renderContext = useDataTableRenderContext();+ switch (renderContext) {+ case "columnsSelector":+ return <ColumnsSelectorItem<RecordType> {...props} />;+ case "header":+ return <DataTableHeadCell {...props} />;+ case "data":+ return <DataTableCell {...props} />;+ }+}++/**+ * Reorder children based on columnRanks+ *+ * Note that columnRanks may be shorter than the number of children+ */+const reorderChildren = (children: ReactNode, columnRanks: number[]) =>+ Children.toArray(children).reduce((acc: ReactNode[], child, index) => {+ const rank = columnRanks.indexOf(index);+ if (rank === -1) {+ // if the column is not in columnRanks, keep it at the same index+ acc[index] = child;+ } else {+ // if the column is in columnRanks, move it to the rank index+ acc[rank] = child;+ }+ return acc;+ }, []);++function DataTableHeadCell<+ RecordType extends RaRecord<Identifier> = RaRecord<Identifier>+>(props: DataTableColumnProps<RecordType>) {+ const {+ disableSort,+ source,+ label,+ sortByOrder,+ className,+ headerClassName,+ } = props;++ const sort = useDataTableSortContext();+ const { handleSort } = useDataTableCallbacksContext();+ const resource = useResourceContext();+ const translate = useTranslate();+ const translateLabel = useTranslateLabel();+ const { storeKey, defaultHiddenColumns } = useDataTableStoreContext();+ const [hiddenColumns] = useStore<string[]>(storeKey, defaultHiddenColumns);+ const isColumnHidden = hiddenColumns.includes(source!);+ if (isColumnHidden) return null;++ const nextSortOrder =+ sort && sort.field === source+ ? oppositeOrder[sort.order]+ : sortByOrder ?? "ASC";+ const fieldLabel = translateLabel({+ label: typeof label === "string" ? label : undefined,+ resource,+ source,+ });+ const sortLabel = translate("ra.sort.sort_by", {+ field: fieldLabel,+ field_lower_first:+ typeof fieldLabel === "string"+ ? fieldLabel.charAt(0).toLowerCase() + fieldLabel.slice(1)+ : undefined,+ order: translate(`ra.sort.${nextSortOrder}`),+ _: translate("ra.action.sort"),+ });++ return (+ <TableHead className={cn(className, headerClassName)}>+ {handleSort && sort && !disableSort && source ? (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ variant="ghost"+ size="sm"+ className="-ml-3 -mr-3 h-8 data-[state=open]:bg-accent cursor-pointer"+ data-field={source}+ onClick={handleSort}+ >+ {headerClassName?.includes("text-right") ? null : (+ <FieldTitle+ label={label}+ source={source}+ resource={resource}+ />+ )}+ {sort.field === source ? (+ sort.order === "ASC" ? (+ <ArrowDownAZ className="ml-2 h-6 w-6" />+ ) : (+ <ArrowUpZA className="ml-2 h-6 w-6" />+ )+ ) : null}+ {headerClassName?.includes("text-right") ? (+ <FieldTitle+ label={label}+ source={source}+ resource={resource}+ />+ ) : null}+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>{sortLabel}</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ ) : (+ <FieldTitle label={label} source={source} resource={resource} />+ )}+ </TableHead>+ );+}++const oppositeOrder: Record<SortPayload["order"], SortPayload["order"]> = {+ ASC: "DESC",+ DESC: "ASC",+};++function DataTableCell<+ RecordType extends RaRecord<Identifier> = RaRecord<Identifier>+>(props: DataTableColumnProps<RecordType>) {+ const {+ children,+ render,+ field,+ source,+ className,+ cellClassName,+ conditionalClassName,+ } = props;++ const { storeKey, defaultHiddenColumns } = useDataTableStoreContext();+ const [hiddenColumns] = useStore<string[]>(storeKey, defaultHiddenColumns);+ const record = useRecordContext<RecordType>();+ const isColumnHidden = hiddenColumns.includes(source!);+ if (isColumnHidden) return null;+ if (!render && !field && !children && !source) {+ throw new Error(+ "DataTableColumn: Missing at least one of the following props: render, field, children, or source"+ );+ }++ return (+ <TableCell+ className={cn(+ "py-1",+ className,+ cellClassName,+ record && conditionalClassName?.(record)+ )}+ >+ {children ??+ (render+ ? record && render(record)+ : field+ ? createElement(field, { source })+ : get(record, source!))}+ </TableCell>+ );+}++export interface DataTableColumnProps<+ RecordType extends RaRecord<Identifier> = RaRecord<Identifier>+> {+ className?: string;+ cellClassName?: string;+ headerClassName?: string;+ conditionalClassName?: (record: RecordType) => string | false | undefined;+ children?: ReactNode;+ render?: (record: RecordType) => React.ReactNode;+ field?: React.ElementType;+ source?: NoInfer<HintedString<ExtractRecordPaths<RecordType>>>;+ label?: React.ReactNode;+ disableSort?: boolean;+ sortByOrder?: SortPayload["order"];+}++export function DataTableNumberColumn<+ RecordType extends RaRecord<Identifier> = RaRecord<Identifier>+>(props: DataTableNumberColumnProps<RecordType>) {+ const {+ source,+ options,+ locales,+ className,+ headerClassName,+ cellClassName,+ ...rest+ } = props;+ return (+ <DataTableColumn+ source={source}+ {...rest}+ className={className}+ headerClassName={cn("text-right", headerClassName)}+ cellClassName={cn("text-right", cellClassName)}+ >+ <NumberField source={source} options={options} locales={locales} />+ </DataTableColumn>+ );+}++export interface DataTableNumberColumnProps<+ RecordType extends RaRecord<Identifier> = RaRecord<Identifier>+> extends DataTableColumnProps<RecordType> {+ source: NoInfer<HintedString<ExtractRecordPaths<RecordType>>>;+ locales?: string | string[];+ options?: Intl.NumberFormatOptions;+}diff --git a/src/components/admin/date-field.tsx b/src/components/admin/date-field.tsxnew file mode 100644index 00000000..80fed3b8--- /dev/null+++ b/src/components/admin/date-field.tsx@@ -0,0 +1,131 @@+import { HTMLAttributes } from "react";+import { useFieldValue, useTranslate } from "ra-core";++import { genericMemo } from "@/lib/genericMemo";+import { FieldProps } from "@/lib/field.type.ts";++/**+ * Display a date value as a locale string.+ *+ * Uses Intl.DateTimeFormat() if available, passing the locales and options props as arguments.+ * If Intl is not available, it outputs date as is (and ignores the locales and options props).+ *+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString+ * @example+ * <DateField source="published_at" />+ * // renders the record { id: 1234, published_at: new Date('2012-11-07') } as+ * <span>07/11/2012</span>+ *+ * <DateField source="published_at" className="red" />+ * // renders the record { id: 1234, new Date('2012-11-07') } as+ * <span class="red">07/11/2012</span>+ *+ * <DateField source="share" options={{ weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }} />+ * // renders the record { id: 1234, new Date('2012-11-07') } as+ * <span>Wednesday, November 7, 2012</span>+ *+ * <DateField source="price" locales="fr-FR" options={{ weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }} />+ * // renders the record { id: 1234, new Date('2012-11-07') } as+ * <span>mercredi 7 novembre 2012</span>+ */+const DateFieldImpl = <++ RecordType extends Record<string, any> = Record<string, any>,+>(+ inProps: DateFieldProps<RecordType>,+) => {+ const {+ empty,+ locales,+ options,+ showTime = false,+ showDate = true,+ transform = defaultTransform,+ source,+ record,+ resource: _,+ defaultValue,+ ...rest+ } = inProps;+ const translate = useTranslate();++ if (!showTime && !showDate) {+ throw new Error(+ "<DateField> cannot have showTime and showDate false at the same time",+ );+ }++ const value = useFieldValue({ source, record, defaultValue });+ if (value == null || value === "") {+ if (!empty) {+ return null;+ }++ return (+ <span {...rest}>+ {typeof empty === "string" ? translate(empty, { _: empty }) : empty}+ </span>+ );+ }++ const date = transform(value);++ let dateString = "";+ if (date) {+ if (showTime && showDate) {+ dateString = toLocaleStringSupportsLocales+ ? date.toLocaleString(locales, options)+ : date.toLocaleString();+ } else if (showDate) {+ // If input is a date string (e.g. '2022-02-15') without time and time zone,+ // force timezone to UTC to fix issue with people in negative time zones+ // who may see a different date when calling toLocaleDateString().+ const dateOptions =+ options ??+ (typeof value === "string" && value.length <= 10+ ? { timeZone: "UTC" }+ : undefined);+ dateString = toLocaleStringSupportsLocales+ ? date.toLocaleDateString(locales, dateOptions)+ : date.toLocaleDateString();+ } else if (showTime) {+ dateString = toLocaleStringSupportsLocales+ ? date.toLocaleTimeString(locales, options)+ : date.toLocaleTimeString();+ }+ }++ return <span {...rest}>{dateString}</span>;+};+DateFieldImpl.displayName = "DateFieldImpl";++export const DateField = genericMemo(DateFieldImpl);++export interface DateFieldProps<++ RecordType extends Record<string, any> = Record<string, any>,+> extends FieldProps<RecordType>,+ HTMLAttributes<HTMLSpanElement> {+ locales?: Intl.LocalesArgument;+ options?: Intl.DateTimeFormatOptions;+ showTime?: boolean;+ showDate?: boolean;+ transform?: (value: unknown) => Date;+}++const defaultTransform = (value: unknown) =>+ value instanceof Date+ ? value+ : typeof value === "string" || typeof value === "number"+ ? new Date(value)+ : undefined;++const toLocaleStringSupportsLocales = (() => {+ // from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString+ try {+ new Date().toLocaleString("i");+ } catch (error) {+ return error instanceof RangeError;+ }+ return false;+})();diff --git a/src/components/admin/delete-button.tsx b/src/components/admin/delete-button.tsxnew file mode 100644index 00000000..6d0de834--- /dev/null+++ b/src/components/admin/delete-button.tsx@@ -0,0 +1,97 @@+import * as React from "react";+import { Trash } from "lucide-react";+import { Button } from "@/components/ui/button";+import { humanize, singularize } from "inflection";+import {+ useDeleteWithUndoController,+ useGetRecordRepresentation,+ useResourceTranslation,+ useRecordContext,+ useResourceContext,+ useTranslate,+ type UseDeleteOptions,+ type RedirectionSideEffect,+} from "ra-core";++export type DeleteButtonProps = {+ label?: string;+ size?: "default" | "sm" | "lg" | "icon";+ onClick?: React.ReactEventHandler<HTMLButtonElement>;+ mutationOptions?: UseDeleteOptions;+ redirect?: RedirectionSideEffect;+ resource?: string;+ successMessage?: string;+ className?: string;+ variant?:+ | "default"+ | "destructive"+ | "outline"+ | "secondary"+ | "ghost"+ | "link";+};++export const DeleteButton = (props: DeleteButtonProps) => {+ const {+ label: labelProp,+ onClick,+ size,+ mutationOptions,+ redirect = "list",+ successMessage,+ variant = "outline",+ className = "cursor-pointer hover:bg-destructive/10! text-destructive! border-destructive! focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",+ } = props;+ const record = useRecordContext(props);+ const resource = useResourceContext(props);++ const { isPending, handleDelete } = useDeleteWithUndoController({+ record,+ resource,+ redirect,+ onClick,+ mutationOptions,+ successMessage,+ });+ const translate = useTranslate();+ const getRecordRepresentation = useGetRecordRepresentation(resource);+ let recordRepresentation = getRecordRepresentation(record);+ const resourceName = translate(`resources.${resource}.forcedCaseName`, {+ smart_count: 1,+ _: humanize(+ translate(`resources.${resource}.name`, {+ smart_count: 1,+ _: resource ? singularize(resource) : undefined,+ }),+ true,+ ),+ });+ // We don't support React elements for this+ if (React.isValidElement(recordRepresentation)) {+ recordRepresentation = `#${record?.id}`;+ }+ const label = useResourceTranslation({+ resourceI18nKey: `resources.${resource}.action.delete`,+ baseI18nKey: "ra.action.delete",+ options: {+ name: resourceName,+ recordRepresentation,+ },+ userText: labelProp,+ });++ return (+ <Button+ variant={variant}+ type="button"+ onClick={handleDelete}+ disabled={isPending}+ aria-label={typeof label === "string" ? label : undefined}+ size={size}+ className={className}+ >+ <Trash />+ {label}+ </Button>+ );+};diff --git a/src/components/admin/edit-button.tsx b/src/components/admin/edit-button.tsxnew file mode 100644index 00000000..5233ab73--- /dev/null+++ b/src/components/admin/edit-button.tsx@@ -0,0 +1,43 @@+import React from "react";+import { buttonVariants } from "@/components/ui/button";+import { Pencil } from "lucide-react";+import {+ useCreatePath,+ useRecordContext,+ useResourceContext,+ Translate,+ type RaRecord,+} from "ra-core";+import { Link } from "react-router";++export type EditButtonProps = {+ record?: RaRecord;+ resource?: string;+ label?: string;+};++export const EditButton = (props: EditButtonProps) => {+ const resource = useResourceContext(props);+ const record = useRecordContext(props);+ const createPath = useCreatePath();+ const link = createPath({+ resource,+ type: "edit",+ id: record?.id,+ });+ return (+ <Link+ className={buttonVariants({ variant: "outline" })}+ to={link}+ onClick={stopPropagation}+ >+ <Pencil />+ <Translate i18nKey={props.label ?? "ra.action.edit"}>+ {props.label ?? "Edit"}+ </Translate>+ </Link>+ );+};++// useful to prevent click bubbling in a datagrid with rowClick+const stopPropagation = (e: React.MouseEvent) => e.stopPropagation();diff --git a/src/components/admin/edit-guesser.tsx b/src/components/admin/edit-guesser.tsxnew file mode 100644index 00000000..780129a5--- /dev/null+++ b/src/components/admin/edit-guesser.tsx@@ -0,0 +1,137 @@++import { ReactNode, useEffect, useState } from "react";+import {+ EditBase,+ InferredElement,+ useResourceContext,+ useEditContext,+ getElementsFromRecords,+ InferredTypeMap,+} from "ra-core";+import { capitalize, singularize } from "inflection";+import { EditView } from "@/components/admin/edit";+import { SimpleForm } from "@/components/admin/simple-form";+import { TextInput } from "@/components/admin/text-input";+import { BooleanInput } from "@/components/admin/boolean-input";+import { ReferenceInput } from "@/components/admin/reference-input";+import { AutocompleteInput } from "@/components/admin/autocomplete-input";+import { ReferenceArrayInput } from "@/components/admin/reference-array-input";++export const EditGuesser = (props: { enableLog?: boolean }) => {+ return (+ <EditBase>+ <EditViewGuesser {...props} />+ </EditBase>+ );+};++const EditViewGuesser = (props: { enableLog?: boolean }) => {+ const resource = useResourceContext();++ if (!resource) {+ throw new Error(`Cannot use <EditGuesser> outside of a ResourceContext`);+ }++ const { record } = useEditContext();+ const [child, setChild] = useState<ReactNode>(null);+ const { enableLog = process.env.NODE_ENV === "development", ...rest } = props;++ useEffect(() => {+ setChild(null);+ }, [resource]);++ useEffect(() => {+ if (record && !child) {+ const inferredElements = getElementsFromRecords([record], editFieldTypes);+ const inferredChild = new InferredElement(+ editFieldTypes.form,+ null,+ inferredElements,+ );+ setChild(inferredChild.getElement());++ if (!enableLog) return;++ const representation = inferredChild.getRepresentation();++ const components = ["Edit"]+ .concat(+ Array.from(+ new Set(+ Array.from(representation.matchAll(/<([^/\s>]+)/g))+ .map((match) => match[1])+ .filter((component) => component !== "span"),+ ),+ ),+ )+ .sort();+++ console.log(+ `Guessed Edit:++${components+ .map(+ (component) =>+ `import { ${component} } from "@/components/admin/${kebabCase(+ component,+ )}";`,+ )+ .join("\n")}++export const ${capitalize(singularize(resource))}Edit = () => (+ <Edit>+${representation}+ </Edit>+);`,+ );+ }+ }, [record, child, resource, enableLog]);++ return <EditView {...rest}>{child}</EditView>;+};++const editFieldTypes: InferredTypeMap = {+ form: {+ component: (props: any) => <SimpleForm {...props} />,+ representation: (+ _props: any,+ children: { getRepresentation: () => string }[],+ ) => ` <SimpleForm>+${children+ .map((child) => ` ${child.getRepresentation()}`)+ .join("\n")}+ </SimpleForm>`,+ },+ reference: {+ component: (props: any) => (+ <ReferenceInput source={props.source} reference={props.reference}>+ <AutocompleteInput />+ </ReferenceInput>+ ),+ representation: (props: any) =>+ `<ReferenceInput source="${props.source}" reference="${props.reference}">+ <AutocompleteInput />+ </ReferenceInput>`,+ },+ referenceArray: {+ component: (props: any) => <ReferenceArrayInput {...props} />,+ representation: (props: any) =>+ `<ReferenceArrayInput source="${props.source}" reference="${props.reference}" />`,+ },+ boolean: {+ component: (props: any) => <BooleanInput {...props} />,+ representation: (props: any) => `<BooleanInput source="${props.source}" />`,+ },+ string: {+ component: (props: any) => <TextInput {...props} />,+ representation: (props: any) => `<TextInput source="${props.source}" />`,+ },+};++const kebabCase = (name: string) => {+ return name+ .replace(/([a-z])([A-Z])/g, "$1-$2")+ .replace(/([A-Z])([A-Z][a-z])/g, "$1-$2")+ .toLowerCase();+};diff --git a/src/components/admin/edit.tsx b/src/components/admin/edit.tsxnew file mode 100644index 00000000..025749fc--- /dev/null+++ b/src/components/admin/edit.tsx@@ -0,0 +1,95 @@+import {+ EditBase,+ EditBaseProps,+ Translate,+ useCreatePath,+ useEditContext,+ useGetRecordRepresentation,+ useGetResourceLabel,+ useHasDashboard,+ useResourceContext,+ useResourceDefinition,+} from "ra-core";+import { ReactNode } from "react";+import { Link } from "react-router";+import {+ Breadcrumb,+ BreadcrumbItem,+ BreadcrumbPage,+} from "@/components/admin/breadcrumb";+import { ShowButton } from "@/components/admin/show-button";+import { DeleteButton } from "./delete-button";++export interface EditProps extends EditViewProps, EditBaseProps {}++export const Edit = ({ title, children, actions, ...rest }: EditProps) => (+ <EditBase {...rest}>+ <EditView title={title} actions={actions}>+ {children}+ </EditView>+ </EditBase>+);++export interface EditViewProps {+ title?: ReactNode | string | false;+ actions?: ReactNode;+ children?: ReactNode;+}++export const EditView = ({ title, actions, children }: EditViewProps) => {+ const context = useEditContext();++ const resource = useResourceContext();+ if (!resource) {+ throw new Error(+ "The EditView component must be used within a ResourceContextProvider",+ );+ }+ const getResourceLabel = useGetResourceLabel();+ const listLabel = getResourceLabel(resource, 2);+ const createPath = useCreatePath();+ const listLink = createPath({+ resource,+ type: "list",+ });++ const getRecordRepresentation = useGetRecordRepresentation(resource);+ const recordRepresentation = getRecordRepresentation(context.record);++ const { hasShow } = useResourceDefinition({ resource });+ const hasDashboard = useHasDashboard();++ if (context.isLoading || !context.record) {+ return null;+ }++ return (+ <>+ <Breadcrumb>+ {hasDashboard && (+ <BreadcrumbItem>+ <Link to="/">+ <Translate i18nKey="ra.page.dashboard">Home</Translate>+ </Link>+ </BreadcrumbItem>+ )}+ <BreadcrumbItem>+ <Link to={listLink}>{listLabel}</Link>+ </BreadcrumbItem>+ <BreadcrumbPage>{recordRepresentation}</BreadcrumbPage>+ </Breadcrumb>+ <div className="flex justify-between items-start flex-wrap gap-2 my-2">+ <h2 className="text-2xl font-bold tracking-tight">+ {title !== undefined ? title : context.defaultTitle}+ </h2>+ {actions ?? (+ <div className="flex justify-end items-center">+ {hasShow ? <ShowButton /> : null}+ <DeleteButton />+ </div>+ )}+ </div>+ <div className="my-2">{children}</div>+ </>+ );+};diff --git a/src/components/admin/email-field.tsx b/src/components/admin/email-field.tsxnew file mode 100644index 00000000..8837a2f4--- /dev/null+++ b/src/components/admin/email-field.tsx@@ -0,0 +1,59 @@+import { useFieldValue, useTranslate } from "ra-core";+import React, { AnchorHTMLAttributes } from "react";++import { cn } from "@/lib/utils";+import { genericMemo } from "@/lib/genericMemo";+import { FieldProps } from "@/lib/field.type.ts";++const EmailFieldImpl = <++ RecordType extends Record<string, any> = Record<string, any>,+>(+ inProps: EmailFieldProps<RecordType>,+) => {+ const {+ className,+ empty,+ defaultValue,+ source,+ record,+ resource: _,+ ...rest+ } = inProps;+ const value = useFieldValue({ defaultValue, source, record });+ const translate = useTranslate();++ if (value == null) {+ return (+ <a className={className} {...rest}>+ {empty && typeof empty === "string"+ ? translate(empty, { _: empty })+ : empty}+ </a>+ );+ }++ return (+ <a+ className={cn("underline hover:no-underline", className)}+ href={`mailto:${value}`}+ onClick={stopPropagation}+ {...rest}+ >+ {value}+ </a>+ );+};+EmailFieldImpl.displayName = "EmailFieldImpl";++export const EmailField = genericMemo(EmailFieldImpl);++export interface EmailFieldProps<++ RecordType extends Record<string, any> = Record<string, any>,+> extends FieldProps<RecordType>,+ AnchorHTMLAttributes<HTMLAnchorElement> {}++// useful to prevent click bubbling in a DataTable with rowClick+const stopPropagation = (e: React.MouseEvent<HTMLAnchorElement>) =>+ e.stopPropagation();diff --git a/src/components/admin/error.tsx b/src/components/admin/error.tsxnew file mode 100644index 00000000..42e5e6fe--- /dev/null+++ b/src/components/admin/error.tsx@@ -0,0 +1,110 @@+import type { FallbackProps } from "react-error-boundary";++import {+ useDefaultTitle,+ useResetErrorBoundaryOnLocationChange,+ Translate,+} from "ra-core";+import { CircleAlert, History } from "lucide-react";+import {+ Accordion,+ AccordionContent,+ AccordionItem,+ AccordionTrigger,+} from "@/components/ui/accordion";+import { Button } from "@/components/ui/button";+import { HtmlHTMLAttributes } from "react";+import { ErrorInfo } from "react";++export const Error = (props: InternalErrorProps & {}) => {+ const { error, errorInfo, resetErrorBoundary, ...rest } = props;++ const title = useDefaultTitle();+ useResetErrorBoundaryOnLocationChange(resetErrorBoundary);++ return (+ <>+ {title && <span>{title}</span>}+ <div className="flex flex-col items-center p-20 gap-5" {...rest}>+ <h1 className="flex items-center text-3xl mt-5 mb-5 gap-3" role="alert">+ <CircleAlert className="w-2em h-2em" />+ <Translate i18nKey="ra.page.error" />+ </h1>+ <div>+ <Translate i18nKey="ra.message.error" />+ </div>+ {process.env.NODE_ENV !== "production" && (+ <>+ <Accordion type="multiple" className="mt-1 p-2 bg-secondary w-150">+ <AccordionItem value="error">+ <AccordionTrigger className="py-2">+ <Translate i18nKey={error.message}>{error.message}</Translate>+ </AccordionTrigger>+ <AccordionContent className="whitespace-pre-wrap pt-1">+ <p>{errorInfo?.componentStack}</p>+ </AccordionContent>+ </AccordionItem>+ </Accordion>++ <p className="text-center ">+ Need help with this error? Try the following:+ </p>+ <div>+ <ul className="list-disc">+ <li>+ Check the{" "}+ <a+ className="text-primary underline-offset-4 hover:underline"+ href="https://github.com/marmelab/shadcn-admin-kit/tree/main/docs"+ >+ shadcn-admin-kit documentation+ </a>+ </li>+ <li>+ Search on{" "}+ <a+ className="text-primary underline-offset-4 hover:underline"+ href="https://stackoverflow.com/questions/tagged/shadcn-admin-kit"+ >+ StackOverflow+ </a>{" "}+ for community answers+ </li>+ <li>+ Get help from the core team via{" "}+ <a+ className="text-primary underline-offset-4 hover:underline"+ href="https://marmelab.com/shadcn-admin-kit/"+ >+ Shadcn Enterprise Edition+ </a>+ </li>+ </ul>+ </div>+ </>+ )}+ <div className="mt-8">+ <Button onClick={goBack}>+ <History />+ <Translate i18nKey="ra.action.back" />+ </Button>+ </div>+ </div>+ </>+ );+};++interface InternalErrorProps+ extends Omit<HtmlHTMLAttributes<HTMLDivElement>, "title">,+ FallbackProps {+ className?: string;+ errorInfo?: ErrorInfo;+}++export interface ErrorProps extends Pick<FallbackProps, "error"> {+ errorInfo?: ErrorInfo;+}++function goBack() {+ window.history.go(-1);+}diff --git a/src/components/admin/export-button.tsx b/src/components/admin/export-button.tsxnew file mode 100644index 00000000..bfdf6eb1--- /dev/null+++ b/src/components/admin/export-button.tsx@@ -0,0 +1,101 @@+import * as React from "react";+import { useCallback } from "react";+import { Download } from "lucide-react";+import {+ fetchRelatedRecords,+ useDataProvider,+ useNotify,+ useListContext,+ Exporter,+ Translate,+} from "ra-core";+import { Button } from "@/components/ui/button";++export const ExportButton = (props: ExportButtonProps) => {+ const {+ maxResults = 1000,+ onClick,+ label = "ra.action.export",+ icon = defaultIcon,+ exporter: customExporter,+ meta,+ className = "cursor-pointer",+ } = props;+ const {+ filter,+ filterValues,+ resource,+ sort,+ exporter: exporterFromContext,+ total,+ } = useListContext();+ const exporter = customExporter || exporterFromContext;+ const dataProvider = useDataProvider();+ const notify = useNotify();+ const handleClick = useCallback(+ (event: React.MouseEvent<HTMLButtonElement>) => {+ dataProvider+ .getList(resource, {+ sort,+ filter: filter ? { ...filterValues, ...filter } : filterValues,+ pagination: { page: 1, perPage: maxResults },+ meta,+ })+ .then(+ ({ data }) =>+ exporter &&+ exporter(+ data,+ fetchRelatedRecords(dataProvider),+ dataProvider,+ resource,+ ),+ )+ .catch((error) => {+ console.error(error);+ notify("HTTP Error", { type: "error" });+ });+ if (typeof onClick === "function") {+ onClick(event);+ }+ },+ [+ dataProvider,+ exporter,+ filter,+ filterValues,+ maxResults,+ notify,+ onClick,+ resource,+ sort,+ meta,+ ],+ );++ return (+ <Button+ variant="outline"+ onClick={handleClick}+ disabled={total === 0}+ className={className}+ >+ {icon}+ <Translate i18nKey={label}>Export</Translate>+ </Button>+ );+};++const defaultIcon = <Download />;++export interface ExportButtonProps {+ className?: string;+ exporter?: Exporter;+ icon?: React.ReactNode;+ label?: string;+ maxResults?: number;+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;+ resource?: string;++ meta?: any;+}diff --git a/src/components/admin/field-toggle.tsx b/src/components/admin/field-toggle.tsxnew file mode 100644index 00000000..216791cd--- /dev/null+++ b/src/components/admin/field-toggle.tsx@@ -0,0 +1,162 @@+import * as React from "react";+import { FieldTitle, useResourceContext } from "ra-core";+import { GripVertical } from "lucide-react";+import { Switch } from "@/components/ui/switch";+import { cn } from "@/lib/utils";++/**+ * UI to enable/disable a field+ */+export const FieldToggle = (props: FieldToggleProps) => {+ const { selected, label, onToggle, onMove, source, index } = props;+ const resource = useResourceContext();+ const dropIndex = React.useRef<number | null>(null);+ const x = React.useRef<number | null>(null);+ const y = React.useRef<number | null>(null);++ const handleDocumentDragOver = React.useCallback((event: DragEvent) => {+ x.current = event.clientX;+ y.current = event.clientY;+ }, []);++ const handleDragStart = () => {+ document.addEventListener(+ "dragover",+ handleDocumentDragOver as EventListener+ );+ };++ const handleDrag = (event: React.DragEvent) => {+ // imperative DOM manipulations using the native Drag API+ const selectedItem = event.target as HTMLElement;+ selectedItem.dataset.dragActive = "true";+ const list = selectedItem.closest("ul");+ if (x.current == null || y.current == null) {+ return;+ }+ const elementAtDragCoordinates = document.elementFromPoint(+ x.current,+ y.current+ );+ let dropItem =+ elementAtDragCoordinates === null+ ? selectedItem+ : elementAtDragCoordinates.closest("li");++ if (!dropItem) {+ return;+ }+ if (dropItem.classList.contains("dragIcon")) {+ const parent = dropItem.parentNode;+ if (parent instanceof HTMLElement) {+ dropItem = parent;+ }+ }+ if (dropItem === selectedItem) {+ return;+ }+ const dropItemParent = dropItem.parentNode;+ if (+ list &&+ dropItemParent instanceof HTMLElement &&+ list === dropItemParent.closest("ul")+ ) {+ const dataIndex = dropItem.dataset.index;+ if (dataIndex) {+ dropIndex.current = parseInt(dataIndex, 10);+ }+ if (dropItem === selectedItem.nextSibling) {+ dropItem = dropItem.nextSibling as HTMLElement;+ }+ list.insertBefore(selectedItem, dropItem);+ }+ };++ const handleDragEnd = (event: React.DragEvent) => {+ const selectedItem = event.target as HTMLElement;+ const list = selectedItem.closest("ul");++ const elementFromPoint =+ x.current != null && y.current != null+ ? document.elementFromPoint(x.current, y.current)+ : null;++ let dropItem =+ x.current == null || y.current == null || elementFromPoint === null+ ? selectedItem+ : elementFromPoint.closest("li");++ if (y.current !== null && list && !dropItem) {+ const closestUL = selectedItem.closest("ul");+ if (closestUL && y.current > closestUL.getBoundingClientRect().bottom) {+ dropItem = list.lastChild as HTMLElement;+ } else {+ dropItem = list.firstChild as HTMLElement;+ }+ }++ if (dropItem && list && dropItem.closest("ul") === list) {+ if (onMove) onMove(selectedItem.dataset.index!, dropIndex.current!);+ } else {+ event.preventDefault();+ event.stopPropagation();+ }+ selectedItem.dataset.dragActive = "false";+ document.removeEventListener(+ "dragover",+ handleDocumentDragOver as EventListener+ );+ };++ const handleDragOver = (event: React.DragEvent) => {+ event.preventDefault();+ event.dataTransfer.dropEffect = "move";+ };++ return (+ <li+ key={source}+ role="option"+ draggable={onMove ? "true" : undefined}+ onDrag={onMove ? handleDrag : undefined}+ onDragStart={onMove ? handleDragStart : undefined}+ onDragEnd={onMove ? handleDragEnd : undefined}+ onDragOver={onMove ? handleDragOver : undefined}+ data-index={index}+ className={cn(+ "flex justify-between items-center py-1",+ "data-[drag-active=true]:bg-transparent data-[drag-active=true]:text-transparent data-[drag-active=true]:outline data-[drag-active=true]:outline-1 data-[drag-active=true]:outline-border"+ )}+ >+ <label+ htmlFor={`switch_${index}`}+ className="flex items-center gap-2 cursor-pointer"+ >+ <Switch+ id={`switch_${index}`}+ checked={selected}+ onCheckedChange={onToggle}+ name={`${index}`}+ />+ <span className="text-sm">+ <FieldTitle label={label} source={source} resource={resource} />+ </span>+ </label>+ {onMove && (+ <GripVertical className="cursor-move dragIcon w-4 h-4 text-muted-foreground" />+ )}+ </li>+ );+};++export interface FieldToggleProps {+ selected: boolean;+ label: React.ReactNode;+ onToggle?: (event: boolean) => void;+ onMove?: (+ dragIndex: string | number,+ dropIndex: string | number | null+ ) => void;+ source: string;+ index: number | string;+}diff --git a/src/components/admin/file-field.tsx b/src/components/admin/file-field.tsxnew file mode 100644index 00000000..6e634bc7--- /dev/null+++ b/src/components/admin/file-field.tsx@@ -0,0 +1,120 @@+import { HTMLAttributes } from "react";+import get from "lodash/get";+import {+ type ExtractRecordPaths,+ type HintedString,+ useFieldValue,+ useTranslate,+} from "ra-core";+import { cn } from "@/lib/utils";+import type { FieldProps } from "@/lib/field.type";++/**+ * Render a link to a file based on a path contained in a record field+ *+ * @example+ * import { FileField } from 'react-admin';+ *+ * <FileField source="url" title="title" />+ *+ * // renders the record { id: 123, url: 'doc.pdf', title: 'Presentation' } as+ * <div>+ * <a href="doc.pdf" title="Presentation">Presentation</a>+ * </div>+ */+export const FileField = <++ RecordType extends Record<string, any> = Record<string, any>,+>(+ props: FileFieldProps<RecordType>,+) => {+ const {+ className,+ empty,+ title,+ src,+ target,+ download,+ defaultValue,+ source,+ record,+ ...rest+ } = props;+ const sourceValue = useFieldValue({ defaultValue, source, record });+ const titleValue =+ useFieldValue({+ ...props,+ // @ts-expect-error We ignore here because title might be a custom label or undefined instead of a field name+ source: title,+ })?.toString() ?? title;+ const translate = useTranslate();++ if (!sourceValue) {+ if (empty) {+ return (+ <span className={className} {...rest}>+ {empty && typeof empty === "string"+ ? translate(empty, { _: empty })+ : empty}+ </span>+ );+ }++ return <div className={cn("inline-block", className)} {...rest} />;+ }++ if (Array.isArray(sourceValue)) {+ return (+ <ul className={cn("inline-block", className)} {...rest}>+ {sourceValue.map((file, index) => {+ const fileTitleValue = title ? get(file, title, title) : title;+ const srcValue = src ? get(file, src, title) : title;++ return (+ <li key={index}>+ <a+ href={srcValue}+ title={fileTitleValue}+ target={target}+ download={download}+ // useful to prevent click bubbling in a DataTable with rowClick+ onClick={(e) => e.stopPropagation()}+ >+ {fileTitleValue}+ </a>+ </li>+ );+ })}+ </ul>+ );+ }++ return (+ <div className={cn("inline-block", className)} {...rest}>+ <a+ href={sourceValue?.toString()}+ title={titleValue}+ target={target}+ download={download}+ // useful to prevent click bubbling in a DataTable with rowClick+ onClick={(e) => e.stopPropagation()}+ >+ {titleValue}+ </a>+ </div>+ );+};++export interface FileFieldProps<++ RecordType extends Record<string, any> = Record<string, any>,+> extends FieldProps<RecordType>,+ HTMLAttributes<HTMLElement> {+ /**+ * The source of the link to the file, for an array of files.+ */+ src?: string;+ title?: HintedString<ExtractRecordPaths<RecordType>>;+ target?: HTMLAnchorElement["target"];+ download?: HTMLAnchorElement["download"];+}diff --git a/src/components/admin/file-input.tsx b/src/components/admin/file-input.tsxnew file mode 100644index 00000000..de741448--- /dev/null+++ b/src/components/admin/file-input.tsx@@ -0,0 +1,328 @@+import * as React from "react";+import {+ Children,+ isValidElement,+ type ComponentType,+ type ReactElement,+ type ReactNode,+ useEffect,+ HTMLAttributes+} from "react";+import {+ FieldTitle,+ InputProps,+ RecordContextProvider,+ shallowEqual,+ useInput,+ useTranslate+} from "ra-core";+import {+ useDropzone,+ type DropzoneOptions,+ FileRejection,+ DropEvent,+ DropzoneInputProps+} from "react-dropzone";+import { XCircle } from "lucide-react";++import { cn } from "@/lib/utils";+import { FormError, FormField, FormLabel } from "@/components/admin/form";+import { InputHelperText } from "@/components/admin/input-helper-text";+import { Button } from "@/components/ui/button.tsx";++export const FileInput = (props: FileInputProps) => {+ const {+ alwaysOn,+ defaultValue,+ format,+ label,+ helperText,+ name: nameProp,+ onBlur: onBlurProp,+ onChange: onChangeProp,+ parse,+ resource,+ source,+ validate,+ readOnly,+ disabled,++ accept,+ maxSize,+ minSize,+ multiple = false,+ options = {},++ children,+ className,+ inputProps: inputPropsOptions,++ onRemove: onRemoveProp,+ validateFileRemoval,++ placeholder,+ labelMultiple = "ra.input.file.upload_several",+ labelSingle = "ra.input.file.upload_single",+ removeIcon,+ ...rest+ } = props;+ const { onDrop: onDropProp } = options;+ const translate = useTranslate();++ // turn a browser dropped file structure into expected structure+ const transformFile = (file: unknown) => {+ if (!(file instanceof File)) {+ return file;+ }++ const preview = URL.createObjectURL(file);+ const transformedFile: TransformedFile = {+ rawFile: file,+ src: preview,+ title: file.name+ };++ return transformedFile;+ };++ const transformFiles = (files: unknown[]) => {+ if (!files) {+ return multiple ? [] : null;+ }++ if (Array.isArray(files)) {+ return files.map(transformFile);+ }++ return transformFile(files);+ };++ const {+ id,+ field: { onChange, onBlur, value, name },+ isRequired+ } = useInput({+ alwaysOn,+ defaultValue,+ format: format || transformFiles,+ label,+ helperText,+ name: nameProp,+ onBlur: onBlurProp,+ onChange: onChangeProp,+ parse: parse || transformFiles,+ resource,+ source,+ validate,+ readOnly,+ disabled+ });+ const files = value ? (Array.isArray(value) ? value : [value]) : [];++ const onDrop = (++ newFiles: any[],+ rejectedFiles: FileRejection[],+ event: DropEvent+ ) => {+ const updatedFiles = multiple ? [...files, ...newFiles] : [...newFiles];++ if (multiple) {+ onChange(updatedFiles);+ onBlur();+ } else {+ onChange(updatedFiles[0]);+ onBlur();+ }++ if (onDropProp) {+ onDropProp(newFiles, rejectedFiles, event);+ }+ };+++ const onRemove = (file: any) => async () => {+ if (validateFileRemoval) {+ try {+ await validateFileRemoval(file);+ } catch {+ return;+ }+ }++ if (multiple) {+ const filteredFiles = files.filter(+ (stateFile) => !shallowEqual(stateFile, file)+ );+ onChange(filteredFiles);+ onBlur();+ } else {+ onChange(null);+ onBlur();+ }++ if (onRemoveProp) {+ onRemoveProp(file);+ }+ };++ const childrenElement =+ children && isValidElement(Children.only(children))+ ? (Children.only(children) as ReactElement)+ : undefined;++ const { getRootProps, getInputProps } = useDropzone({+ accept,+ maxSize,+ minSize,+ multiple,+ disabled: disabled || readOnly,+ ...options,+ onDrop+ });++ return (+ <FormField+ id={id}+ name={name}+ className={cn("w-full", className)}+ {...rest}+ >+ <FormLabel+ htmlFor={id}+ className={disabled || readOnly ? "cursor-default" : "cursor-pointer"}+ >+ <FieldTitle+ label={label}+ source={source}+ resource={resource}+ isRequired={isRequired}+ />+ </FormLabel>++ <div+ {...getRootProps({+ className: cn(+ "border-2 border-dashed border-muted rounded-lg p-6 text-center transition-colors",+ "hover:border-sidebar-ring focus:outline-none",+ disabled || readOnly+ ? "bg-muted cursor-not-allowed"+ : "bg-muted text-muted-foreground cursor-pointer"+ )+ })}+ >+ <input+ id={id}+ name={name}+ {...getInputProps({+ ...inputPropsOptions+ })}+ />++ {placeholder ? (+ placeholder+ ) : multiple ? (+ <p className="text-sm">{translate(labelMultiple)}</p>+ ) : (+ <p className="text-sm">{translate(labelSingle)}</p>+ )}+ </div>++ <InputHelperText helperText={helperText} />+ <FormError />++ {children && (+ <div className="previews space-y-2 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">+ {++ files.map((file: any, index: number) => (+ <FileInputPreview+ key={index}+ file={file}+ onRemove={onRemove(file)}+ removeIcon={removeIcon}+ >+ <RecordContextProvider value={file}>+ {childrenElement}+ </RecordContextProvider>+ </FileInputPreview>+ ))+ }+ </div>+ )}+ </FormField>+ );+};++export type FileInputProps = Omit<InputProps, "type"> & {+ accept?: DropzoneOptions["accept"];+ className?: string;+ children?: ReactNode;+ labelMultiple?: string;+ labelSingle?: string;+ maxSize?: DropzoneOptions["maxSize"];+ minSize?: DropzoneOptions["minSize"];+ multiple?: DropzoneOptions["multiple"];+ options?: DropzoneOptions;++ onRemove?: (file: any) => void;+ placeholder?: ReactNode;+ removeIcon?: ComponentType<{ className?: string }>;+ inputProps?: DropzoneInputProps & React.ComponentProps<"input">;++ validateFileRemoval?(file: any): boolean | Promise<boolean>;+};++export interface TransformedFile {+ rawFile: File;+ src: string;+ title: string;+}++export const FileInputPreview = (props: FileInputPreviewProps) => {+ const {+ className,+ children,++ file,+ onRemove,+ removeIcon: RemoveIcon = XCircle,++ ...rest+ } = props;++ const translate = useTranslate();++ useEffect(() => {+ return () => {+ const preview = file.rawFile ? file.rawFile.preview : file.preview;++ if (preview) {+ window.URL.revokeObjectURL(preview);+ }+ };+ }, [file]);++ return (+ <div className={cn("relative", className)} {...rest}>+ <Button+ variant="ghost"+ size="icon"+ className="absolute top-0 right-0 h-6 w-6 rounded-full shadow-sm cursor-pointer"+ onClick={onRemove}+ aria-label={translate("ra.action.delete")}+ title={translate("ra.action.delete")}+ >+ <RemoveIcon className="h-4 w-4" />+ </Button>+ {children}+ </div>+ );+};++export interface FileInputPreviewProps extends HTMLAttributes<HTMLDivElement> {++ file: any;+ onRemove: () => void;+ removeIcon?: React.ComponentType<{ className?: string }>;+}diff --git a/src/components/admin/filter-form.tsx b/src/components/admin/filter-form.tsxnew file mode 100644index 00000000..15bca545--- /dev/null+++ b/src/components/admin/filter-form.tsx@@ -0,0 +1,496 @@+import * as React from "react";+import {+ type HtmlHTMLAttributes,+ useCallback,+ useEffect,+ useState,+} from "react";+import get from "lodash/get";+import isEqual from "lodash/isEqual";+import queryString from "query-string";+import {+ FieldTitle,+ FilterLiveForm,+ useListContext,+ useResourceContext,+ useTranslate,+} from "ra-core";+import { useNavigate } from "react-router";+import {+ Bookmark,+ BookmarkMinus,+ BookmarkPlus,+ Check,+ Filter,+ MinusCircle,+ X,+} from "lucide-react";+import { cn } from "@/lib/utils";+import { FilterElementProps, useFilterContext } from "@/hooks/filter-context";+import {+ extractValidSavedQueries,+ SavedQuery,+ useSavedQueries,+} from "@/hooks/saved-queries.tsx";+import { Button } from "@/components/ui/button.tsx";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuSeparator,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import {+ AddSavedQueryDialog,+ RemoveSavedQueryDialog,+} from "@/components/admin/saved-queries.tsx";++export const FilterForm = (inProps: FilterFormProps) => {+ const { filters: filtersProps, ...rest } = inProps;+ const filters = useFilterContext() || filtersProps;++ return (+ <FilterLiveForm formComponent={StyledForm} {...sanitizeRestProps(rest)}>+ <FilterFormBase filters={filters} />+ </FilterLiveForm>+ );+};++// eslint-disable-next-line @typescript-eslint/no-empty-object-type+export interface FilterFormProps extends FilterFormBaseProps {}++/**+ * @deprecated Use FilterFormBase from `ra-core` once available.+ */+export const FilterFormBase = (props: FilterFormBaseProps) => {+ const { filters } = props;+ const resource = useResourceContext(props);+ const { displayedFilters = {}, filterValues, hideFilter } = useListContext();++ useEffect(() => {+ if (!filters) return;+ filters.forEach((filter) => {+ if (filter.props.alwaysOn && filter.props.defaultValue) {+ throw new Error(+ "Cannot use alwaysOn and defaultValue on a filter input. Please set the filterDefaultValues props on the <List> element instead.",+ );+ }+ });+ }, [filters]);++ const getShownFilters = () => {+ if (!filters) return [];+ const values = filterValues;+ return filters.filter((filterElement) => {+ const filterValue = get(values, filterElement.props.source);+ return (+ filterElement.props.alwaysOn ||+ displayedFilters[filterElement.props.source] ||+ !isEmptyValue(filterValue)+ );+ });+ };++ const handleHide = useCallback(+ (event: React.MouseEvent<HTMLElement>) =>+ hideFilter(event.currentTarget.dataset.key!),+ [hideFilter],+ );++ return (+ <>+ {getShownFilters().map((filterElement) => (+ <FilterFormInput+ key={filterElement.key || filterElement.props.source}+ filterElement={filterElement}+ handleHide={handleHide}+ resource={resource}+ />+ ))}+ </>+ );+};++const sanitizeRestProps = ({+ hasCreate: _hasCreate,+ resource: _resource,+ ...props+}: Partial<FilterFormBaseProps> & { hasCreate?: boolean }) => props;++export type FilterFormBaseProps = Omit<+ HtmlHTMLAttributes<HTMLFormElement>,+ "children"+> & {+ className?: string;+ resource?: string;+ filters?: React.ReactElement<FilterElementProps>[];+};++const StyledForm = (props: React.FormHTMLAttributes<HTMLFormElement>) => {+ return (+ <form+ {...props}+ className={cn(+ "flex flex-row justify-start items-end gap-x-2 gap-y-3 pointer-events-none flex-wrap",+ "[&_.form-helper-text]:hidden",+ props.className,+ )}+ />+ );+};+++const isEmptyValue = (filterValue: any): boolean => {+ if (filterValue === "" || filterValue == null) return true;++ // If one of the value leaf is not empty+ // the value is considered not empty+ if (typeof filterValue === "object") {+ return Object.keys(filterValue).every((key) =>+ isEmptyValue(filterValue[key]),+ );+ }++ return false;+};++export const FilterFormInput = (inProps: FilterFormInputProps) => {+ const { filterElement, handleHide, className } = inProps;+ const resource = useResourceContext(inProps);+ const translate = useTranslate();++ return (+ <div+ data-source={filterElement.props.source}+ className={cn(+ "filter-field flex flex-row pointer-events-auto gap-2 relative",+ className,+ )}+ >+ {React.cloneElement(filterElement, {+ resource,+ record: emptyRecord,+ size: filterElement.props.size ?? "small",+ helperText: false,+ // ignore defaultValue in Field because it was already set in Form (via mergedInitialValuesWithDefaultValues)+ defaultValue: undefined,+ label: false,+ })}+ {!filterElement.props.alwaysOn && (+ <Button+ type="button"+ variant="ghost"+ size="sm"+ className="hide-filter h-9 w-9 cursor-pointer mt-auto"+ onClick={handleHide}+ data-key={filterElement.props.source}+ title={translate("ra.action.remove_filter")}+ >+ <MinusCircle className="h-4 w-4" />+ </Button>+ )}+ </div>+ );+};++export interface FilterFormInputProps {+ filterElement: React.ReactElement<FilterElementProps>;+ handleHide: (event: React.MouseEvent<HTMLElement>) => void;+ className?: string;+ resource?: string;+}++const emptyRecord = {};++export const FilterButton = (props: FilterButtonProps) => {+ const {+ filters: filtersProp,+ className,+ disableSaveQuery,+ size,+ variant = "outline",+ ...rest+ } = props;+ const filters = useFilterContext() || filtersProp;+ const resource = useResourceContext(props);+ const translate = useTranslate();+ if (!resource && !disableSaveQuery) {+ throw new Error(+ "<FilterButton> must be called inside a ResourceContextProvider, or must provide a resource prop",+ );+ }+ const [savedQueries] = useSavedQueries(resource || "");+ const navigate = useNavigate();+ const {+ displayedFilters = {},+ filterValues,+ perPage,+ setFilters,+ showFilter,+ hideFilter,+ sort,+ } = useListContext();+ const hasFilterValues = !isEqual(filterValues, {});+ const validSavedQueries = extractValidSavedQueries(savedQueries);+ const hasSavedCurrentQuery = validSavedQueries.some((savedQuery) =>+ isEqual(savedQuery.value, {+ filter: filterValues,+ sort,+ perPage,+ displayedFilters,+ }),+ );+ const [open, setOpen] = useState(false);++ if (filters === undefined) {+ throw new Error(+ "The <FilterButton> component requires the <List filters> prop to be set",+ );+ }++ const allTogglableFilters = filters.filter(+ (filterElement: React.ReactElement<FilterElementProps>) =>+ !filterElement.props.alwaysOn,+ );++ const handleShow = useCallback(++ ({ source, defaultValue }: { source: string; defaultValue: any }) => {+ showFilter(source, defaultValue === "" ? undefined : defaultValue);+ // We have to fallback to imperative code because the new FilterFormInput+ // has no way of knowing it has just been displayed (and thus that it should focus its input)+ setTimeout(() => {+ const inputElement = document.querySelector(+ `input[name='${source}']`,+ ) as HTMLInputElement;+ if (inputElement) {+ inputElement.focus();+ }+ }, 50);+ setOpen(false);+ },+ [showFilter, setOpen],+ );++ const handleRemove = useCallback(+ ({ source }: { source: string }) => {+ hideFilter(source);+ setOpen(false);+ },+ [hideFilter, setOpen],+ );++ // add query dialog state+ const [addSavedQueryDialogOpen, setAddSavedQueryDialogOpen] = useState(false);+ const hideAddSavedQueryDialog = (): void => {+ setAddSavedQueryDialogOpen(false);+ };+ const showAddSavedQueryDialog = (): void => {+ setOpen(false);+ setAddSavedQueryDialogOpen(true);+ };++ // remove query dialog state+ const [removeSavedQueryDialogOpen, setRemoveSavedQueryDialogOpen] =+ useState(false);+ const hideRemoveSavedQueryDialog = (): void => {+ setRemoveSavedQueryDialogOpen(false);+ };+ const showRemoveSavedQueryDialog = (): void => {+ setOpen(false);+ setRemoveSavedQueryDialogOpen(true);+ };++ if (+ allTogglableFilters.length === 0 &&+ validSavedQueries.length === 0 &&+ !hasFilterValues+ ) {+ return null;+ }+ return (+ <div className={cn("inline-block", className)} {...rest}>+ <DropdownMenu open={open} onOpenChange={setOpen}>+ <DropdownMenuTrigger asChild>+ <Button+ type="button"+ className="add-filter"+ variant={variant}+ size={size}+ aria-haspopup="true"+ >+ <Filter className="h-4 w-4" />+ {translate("ra.action.add_filter")}+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start" className="w-56">+ {allTogglableFilters.map(+ (+ filterElement: React.ReactElement<FilterElementProps>,+ index: number,+ ) => (+ <FilterButtonMenuItem+ key={filterElement.props.source}+ filter={filterElement}+ displayed={!!displayedFilters[filterElement.props.source]}+ resource={resource}+ onShow={handleShow}+ onHide={handleRemove}+ autoFocus={index === 0}+ />+ ),+ )}+ {(hasFilterValues || validSavedQueries.length > 0) && (+ <DropdownMenuSeparator />+ )}+ {validSavedQueries.map((savedQuery: SavedQuery, index: number) =>+ isEqual(savedQuery.value, {+ filter: filterValues,+ sort,+ perPage,+ displayedFilters,+ }) ? (+ <DropdownMenuItem+ onClick={showRemoveSavedQueryDialog}+ key={index}+ >+ <BookmarkMinus className="h-4 w-4 mr-2" />+ {translate("ra.saved_queries.remove_label_with_name", {+ _: 'Remove query "%{name}"',+ name: savedQuery.label,+ })}+ </DropdownMenuItem>+ ) : (+ <DropdownMenuItem+ onClick={(): void => {+ navigate({+ search: queryString.stringify({+ filter: JSON.stringify(savedQuery.value.filter),+ sort: savedQuery.value.sort?.field,+ order: savedQuery.value.sort?.order,+ page: 1,+ perPage: savedQuery.value.perPage,+ displayedFilters: JSON.stringify(+ savedQuery.value.displayedFilters,+ ),+ }),+ });+ setOpen(false);+ }}+ key={index}+ >+ <Bookmark className="h-4 w-4 mr-2" />+ {savedQuery.label}+ </DropdownMenuItem>+ ),+ )}+ {hasFilterValues && !hasSavedCurrentQuery && !disableSaveQuery && (+ <DropdownMenuItem onClick={showAddSavedQueryDialog}>+ <BookmarkPlus className="h-4 w-4 mr-2" />+ {translate("ra.saved_queries.new_label", {+ _: "Save current query...",+ })}+ </DropdownMenuItem>+ )}+ {hasFilterValues && (+ <DropdownMenuItem+ onClick={() => {+ setFilters({}, {});+ setOpen(false);+ }}+ >+ <X className="h-4 w-4 mr-2" />+ {translate("ra.action.remove_all_filters", {+ _: "Remove all filters",+ })}+ </DropdownMenuItem>+ )}+ </DropdownMenuContent>+ </DropdownMenu>+ {!disableSaveQuery && (+ <>+ <AddSavedQueryDialog+ open={addSavedQueryDialogOpen}+ onClose={hideAddSavedQueryDialog}+ />+ <RemoveSavedQueryDialog+ open={removeSavedQueryDialogOpen}+ onClose={hideRemoveSavedQueryDialog}+ />+ </>+ )}+ </div>+ );+};++export interface FilterButtonProps extends HtmlHTMLAttributes<HTMLDivElement> {+ className?: string;+ disableSaveQuery?: boolean;+ filters?: React.ReactElement<FilterElementProps>[];+ resource?: string;+ variant?:+ | "default"+ | "destructive"+ | "outline"+ | "secondary"+ | "ghost"+ | "link";+ size?: "default" | "sm" | "lg" | "icon";+}++export const FilterButtonMenuItem = React.forwardRef<+ HTMLDivElement,+ FilterButtonMenuItemProps+>((props, ref) => {+ const { filter, onShow, onHide, displayed } = props;+ const resource = useResourceContext(props);+ const handleShow = useCallback(() => {+ onShow({+ source: filter.props.source,+ defaultValue: filter.props.defaultValue,+ });+ }, [filter.props.defaultValue, filter.props.source, onShow]);+ const handleHide = useCallback(() => {+ onHide({+ source: filter.props.source,+ });+ }, [filter.props.source, onHide]);++ return (+ <div+ className={cn(+ "new-filter-item flex items-center px-2 py-1.5 text-sm cursor-pointer hover:bg-accent rounded-sm",+ filter.props.disabled && "opacity-50 cursor-not-allowed",+ )}+ data-key={filter.props.source}+ data-default-value={filter.props.defaultValue}+ onClick={+ filter.props.disabled ? undefined : displayed ? handleHide : handleShow+ }+ ref={ref}+ role="menuitemcheckbox"+ aria-checked={displayed}+ >+ <div className="flex items-center justify-center w-4 h-4 mr-2">+ {displayed && <Check className="h-3 w-3" />}+ </div>+ <div>+ <FieldTitle+ label={filter.props.label}+ source={filter.props.source}+ resource={resource}+ />+ </div>+ </div>+ );+});++export interface FilterButtonMenuItemProps {+ filter: React.ReactElement<FilterElementProps>;+ displayed: boolean;++ onShow: (params: { source: string; defaultValue: any }) => void;+ onHide: (params: { source: string }) => void;+ resource?: string;+ autoFocus?: boolean;+}diff --git a/src/components/admin/form.tsx b/src/components/admin/form.tsxnew file mode 100644index 00000000..3b8bafce--- /dev/null+++ b/src/components/admin/form.tsx@@ -0,0 +1,296 @@+import * as React from "react";+import {+ createContext,+ type MouseEventHandler,+ useCallback,+ useContext,+ useMemo,+} from "react";+import {+ type CreateParams,+ type RaRecord,+ setSubmissionErrors,+ type TransformData,+ type UpdateParams,+ useRecordFromLocation,+ useSaveContext,+ useTranslate,+ ValidationError,+ warning,+} from "ra-core";+import { Loader2, Save } from "lucide-react";+import * as LabelPrimitive from "@radix-ui/react-label";+import { Slot } from "@radix-ui/react-slot";+import { FormProvider, useFormContext, useFormState } from "react-hook-form";+import type { UseMutationOptions } from "@tanstack/react-query";+import { cn } from "@/lib/utils";+import { Label } from "@/components/ui/label";+import { Button } from "@/components/ui/button.tsx";++const Form = FormProvider;++type FormItemContextValue = {+ id: string;+ name: string;+};++const FormItemContext = createContext<FormItemContextValue>(+ {} as FormItemContextValue,+);++const useFormField = () => {+ const { getFieldState, formState } = useFormContext();+ const { id, name } = useContext(FormItemContext);++ const fieldState = getFieldState(name, formState);++ return useMemo(+ () => ({+ formItemId: id,+ formDescriptionId: `${id}-description`,+ formMessageId: `${id}-message`,+ ...fieldState,+ }),+ [id, fieldState],+ );+};++function FormField({ className, id, name, ...props }: FormItemProps) {+ const contextValue: FormItemContextValue = useMemo(+ () => ({+ id,+ name,+ }),+ [id, name],+ );++ return (+ <FormItemContext.Provider value={contextValue}>+ <div+ data-slot="form-item"+ className={cn("grid gap-2", className)}+ role="group"+ {...props}+ />+ </FormItemContext.Provider>+ );+}++type FormItemProps = Omit<React.ComponentProps<"div">, "id"> & {+ id: string;+ name: string;+};++function FormLabel({+ className,+ ...props+}: React.ComponentProps<typeof LabelPrimitive.Root>) {+ const { error, formItemId } = useFormField();++ return (+ <Label+ data-slot="form-label"+ data-error={!!error}+ className={cn("data-[error=true]:text-destructive", className)}+ htmlFor={formItemId}+ {...props}+ />+ );+}++function FormControl({ ...props }: React.ComponentProps<typeof Slot>) {+ const { error, formItemId, formDescriptionId, formMessageId } =+ useFormField();++ return (+ <Slot+ data-slot="form-control"+ id={formItemId}+ aria-describedby={+ !error+ ? `${formDescriptionId}`+ : `${formDescriptionId} ${formMessageId}`+ }+ aria-invalid={!!error}+ {...props}+ />+ );+}++function FormDescription({ className, ...props }: React.ComponentProps<"p">) {+ const { formDescriptionId } = useFormField();++ return (+ <div+ data-slot="form-description"+ id={formDescriptionId}+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ );+}++const FormError = ({ className, ...props }: React.ComponentProps<"p">) => {+ const { invalid, error, formMessageId } = useFormField();++ const err = error?.root?.message ?? error?.message;+ if (!invalid || !err) {+ return null;+ }++ return (+ <p+ data-slot="form-message"+ id={formMessageId}+ className={cn("text-destructive text-sm", className)}+ {...props}+ >+ <ValidationError error={err} />+ </p>+ );+};++const SaveButton = <RecordType extends RaRecord = RaRecord>(+ props: SaveButtonProps<RecordType>,+) => {+ const {+ className,+ icon = defaultIcon,+ label = "ra.action.save",+ onClick,+ mutationOptions,+ disabled: disabledProp,+ type = "submit",+ transform,+ variant = "default",+ alwaysEnable = false,+ ...rest+ } = props;+ const translate = useTranslate();+ const form = useFormContext();+ const saveContext = useSaveContext();+ const { dirtyFields, isValidating, isSubmitting } = useFormState();+ // useFormState().isDirty might differ from useFormState().dirtyFields (https://github.com/react-hook-form/react-hook-form/issues/4740)+ const isDirty = Object.keys(dirtyFields).length > 0;+ // Use form isDirty, isValidating and form context saving to enable or disable the save button+ // if alwaysEnable is undefined and the form wasn't prefilled+ const recordFromLocation = useRecordFromLocation();+ const disabled = valueOrDefault(+ alwaysEnable === false || alwaysEnable === undefined+ ? undefined+ : !alwaysEnable,+ disabledProp ||+ (!isDirty && recordFromLocation == null) ||+ isValidating ||+ isSubmitting,+ );++ warning(+ type === "submit" &&+ ((mutationOptions &&+ (mutationOptions.onSuccess || mutationOptions.onError)) ||+ transform),+ 'Cannot use <SaveButton mutationOptions> props on a button of type "submit". To override the default mutation options on a particular save button, set the <SaveButton type="button"> prop, or set mutationOptions in the main view component (<Create> or <Edit>).',+ );++ const handleSubmit = useCallback(++ async (values: any) => {+ let errors;+ if (saveContext?.save) {+ errors = await saveContext.save(values, {+ ...mutationOptions,+ transform,+ });+ }+ if (errors != null) {+ setSubmissionErrors(errors, form.setError);+ }+ },+ [form.setError, saveContext, mutationOptions, transform],+ );++ const handleClick: MouseEventHandler<HTMLButtonElement> = useCallback(+ async (event) => {+ if (onClick) {+ onClick(event);+ }+ if (event.defaultPrevented) {+ return;+ }+ if (type === "button") {+ // this button doesn't submit the form, so it doesn't trigger useIsFormInvalid in <FormContent>+ // therefore we need to check for errors manually+ event.stopPropagation();+ await form.handleSubmit(handleSubmit)(event);+ }+ },+ [onClick, type, form, handleSubmit],+ );++ const displayedLabel = label && translate(label, { _: label });++ return (+ <Button+ variant={variant}+ type={type}+ disabled={disabled}+ onClick={handleClick}+ className={cn(+ disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer",+ className,+ )}+ {...rest}+ >+ {isSubmitting ? <Loader2 className="mr-2 h-4 w-4 animate-spin" /> : icon}+ {displayedLabel}+ </Button>+ );+};++const defaultIcon = <Save className="h-4 w-4" />;++interface Props<+ RecordType extends RaRecord = RaRecord,+ MutationOptionsError = unknown,+> {+ className?: string;+ disabled?: boolean;+ icon?: React.ReactNode;+ label?: string;+ mutationOptions?: UseMutationOptions<+ RecordType,+ MutationOptionsError,+ CreateParams<RecordType> | UpdateParams<RecordType>+ >;+ transform?: TransformData;+ variant?:+ | "default"+ | "destructive"+ | "outline"+ | "secondary"+ | "ghost"+ | "link";+}++export type SaveButtonProps<RecordType extends RaRecord = RaRecord> =+ Props<RecordType> &+ React.ComponentProps<"button"> & {+ alwaysEnable?: boolean;+ };+++const valueOrDefault = (value: any, defaultValue: any) =>+ typeof value === "undefined" ? defaultValue : value;++export {+ // eslint-disable-next-line react-refresh/only-export-components+ useFormField,+ Form,+ FormField,+ FormLabel,+ FormControl,+ FormDescription,+ FormError,+ SaveButton,+};diff --git a/src/components/admin/icon-button-with-tooltip.tsx b/src/components/admin/icon-button-with-tooltip.tsxnew file mode 100644index 00000000..0d33da95--- /dev/null+++ b/src/components/admin/icon-button-with-tooltip.tsx@@ -0,0 +1,77 @@+import { useTranslate } from "ra-core";+import * as React from "react";+import { MouseEvent } from "react";++import { Button } from "@/components/ui/button";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";++/**+ * A Button with a tooltip which ensures the tooltip is closed on click to avoid ghost tooltips+ * when the button position changes.+ */+export const IconButtonWithTooltip = ({+ label,+ onClick,+ children,+ disabled,+ ...props+}: IconButtonWithTooltipProps) => {+ const translate = useTranslate();+ const [open, setOpen] = React.useState(false);++ const handleClose = () => {+ setOpen(false);+ };++ const handleOpen = () => {+ setOpen(true);+ };++ let translatedLabel = label;+ if (typeof label === "string") {+ translatedLabel = translate(label, { _: label });+ }++ const handleClick = (event: MouseEvent<HTMLButtonElement>) => {+ handleClose();+ onClick?.(event);+ };++ return (+ <TooltipProvider>+ <Tooltip open={open} onOpenChange={setOpen}>+ <TooltipTrigger asChild>+ <Button+ type="button"+ variant="ghost"+ size="icon"+ aria-label={+ typeof translatedLabel === "string" ? translatedLabel : undefined+ }+ onClick={handleClick}+ disabled={disabled}+ onMouseEnter={handleOpen}+ onMouseLeave={handleClose}+ {...props}+ >+ {children}+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>{translatedLabel}</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ );+};++export interface IconButtonWithTooltipProps+ extends React.ComponentProps<"button"> {+ label: React.ReactNode;+ children: React.ReactNode;+}diff --git a/src/components/admin/index.ts b/src/components/admin/index.tsnew file mode 100644index 00000000..38a4ec79--- /dev/null+++ b/src/components/admin/index.ts@@ -0,0 +1,70 @@+export * from "./admin";+export * from "./app-sidebar";+export * from "./array-field";+export * from "./array-input";+export * from "./autocomplete-input";+export * from "./autocomplete-array-input";+export * from "./badge-field";+export * from "./boolean-input";+export * from "./breadcrumb";+export * from "./bulk-actions-toolbar";+export * from "./bulk-delete-button";+export * from "./bulk-export-button";+export * from "./cancel-button";+export * from "./columns-button";+export * from "./count";+export * from "./create-button";+export * from "./create";+export * from "./data-table";+export * from "./date-field";+export * from "./delete-button";+export * from "./edit-button";+export * from "./edit-guesser";+export * from "./edit";+export * from "./email-field";+export * from "./error";+export * from "./export-button";+export * from "./field-toggle";+export * from "./file-field";+export * from "./file-input";+export * from "./filter-form";+export * from "./form";+export * from "./layout";+export * from "./list-guesser";+export * from "./list-pagination";+export * from "./list";+export * from "./loading";+export * from "./locales-menu-button";+export * from "./login-page";+export * from "./notification";+export * from "./number-field";+export * from "./number-input";+export * from "./radio-button-group-input";+export * from "./ready";+export * from "./record-field";+export * from "./reference-array-input";+export * from "./reference-array-field";+export * from "./reference-field";+export * from "./reference-input";+export * from "./reference-many-count";+export * from "./reference-many-field";+export * from "./refresh-button";+export * from "./saved-queries";+export * from "./search-input";+export * from "./select-field";+export * from "./select-input";+export * from "./show-button";+export * from "./show-guesser";+export * from "./show";+export * from "./simple-form";+export * from "./simple-form-iterator";+export * from "./simple-show-layout";+export * from "./single-field-list";+export * from "./sort-button";+export * from "./text-field";+export * from "./text-input";+export * from "./toggle-filter-button";+export * from "./theme-mode-toggle";+export * from "./theme-provider";+export * from "./url-field";+export * from "./user-menu";diff --git a/src/components/admin/input-helper-text.tsx b/src/components/admin/input-helper-text.tsxnew file mode 100644index 00000000..68191cae--- /dev/null+++ b/src/components/admin/input-helper-text.tsx@@ -0,0 +1,23 @@+import { useTranslate } from "ra-core";+import { isValidElement, ReactNode } from "react";+import { FormDescription } from "@/components/admin/form";++export function InputHelperText({ helperText }: { helperText?: ReactNode }) {+ const translate = useTranslate();++ if (!helperText) {+ return null;+ }++ if (isValidElement(helperText)) {+ return helperText;+ }++ return (+ <FormDescription>+ {typeof helperText === "string"+ ? translate(helperText, { _: helperText })+ : helperText}+ </FormDescription>+ );+}diff --git a/src/components/admin/layout.tsx b/src/components/admin/layout.tsxnew file mode 100644index 00000000..29785445--- /dev/null+++ b/src/components/admin/layout.tsx@@ -0,0 +1,39 @@+import { cn } from "@/lib/utils";+import { CoreLayoutProps } from "ra-core";+import { SidebarProvider, SidebarTrigger } from "@/components/ui/sidebar";+import { UserMenu } from "@/components/admin/user-menu";+import { ThemeModeToggle } from "@/components/admin/theme-mode-toggle";+import { Notification } from "@/components/admin/notification";+import { AppSidebar } from "@/components/admin/app-sidebar";+import { RefreshButton } from "@/components/admin/refresh-button";+import { LocalesMenuButton } from "@/components/admin/locales-menu-button";++export const Layout = (props: CoreLayoutProps) => {+ return (+ <SidebarProvider>+ <AppSidebar />+ <main+ className={cn(+ "ml-auto w-full max-w-full",+ "peer-data-[state=collapsed]:w-[calc(100%-var(--sidebar-width-icon)-1rem)]",+ "peer-data-[state=expanded]:w-[calc(100%-var(--sidebar-width))]",+ "sm:transition-[width] sm:duration-200 sm:ease-linear",+ "flex h-svh flex-col",+ "group-data-[scroll-locked=1]/body:h-full",+ "has-[main.fixed-main]:group-data-[scroll-locked=1]/body:h-svh"+ )}+ >+ <header className="flex h-16 md:h-12 shrink-0 items-center gap-2 px-4">+ <SidebarTrigger className="scale-125 sm:scale-100" />+ <div className="flex-1 flex items-center" id="breadcrumb" />+ <LocalesMenuButton />+ <ThemeModeToggle />+ <RefreshButton />+ <UserMenu />+ </header>+ <div className="flex flex-1 flex-col px-4 ">{props.children}</div>+ </main>+ <Notification />+ </SidebarProvider>+ );+};diff --git a/src/components/admin/list-guesser.tsx b/src/components/admin/list-guesser.tsxnew file mode 100644index 00000000..7052650c--- /dev/null+++ b/src/components/admin/list-guesser.tsx@@ -0,0 +1,219 @@++import * as React from "react";+import { useState, useEffect } from "react";+import {+ ListBase,+ getElementsFromRecords,+ InferredElement,+ useListContext,+ usePrevious,+ useResourceContext,+ RaRecord,+} from "ra-core";+import { useLocation } from "react-router";+import { ListProps, ListView, ListViewProps } from "@/components/admin/list";+import { capitalize, singularize } from "inflection";+import { DataTable } from "@/components/admin/data-table";+import { ArrayField } from "@/components/admin/array-field";+import { BadgeField } from "@/components/admin/badge-field";+import { ReferenceField } from "@/components/admin/reference-field";+import { SingleFieldList } from "@/components/admin/single-field-list";+import { ReferenceArrayField } from "@/components/admin/reference-array-field";++export const ListGuesser = <RecordType extends RaRecord = RaRecord>(+ props: Omit<ListProps, "children"> & { enableLog?: boolean },+) => {+ const {+ debounce,+ disableAuthentication,+ disableSyncWithLocation,+ exporter,+ filter,+ filterDefaultValues,+ perPage,+ resource,+ sort,+ ...rest+ } = props;+ // force a rerender of this component when any list parameter changes+ // otherwise the ListBase won't be rerendered when the sort changes+ // and the following check won't be performed+ useLocation();+ // keep previous data, unless the resource changes+ const resourceFromContext = useResourceContext(props);+ const previousResource = usePrevious(resourceFromContext);+ const keepPreviousData = previousResource === resourceFromContext;+ return (+ <ListBase<RecordType>+ debounce={debounce}+ disableAuthentication={disableAuthentication}+ disableSyncWithLocation={disableSyncWithLocation}+ exporter={exporter}+ filter={filter}+ filterDefaultValues={filterDefaultValues}+ perPage={perPage}+ resource={resource}+ queryOptions={{+ placeholderData: (previousData) =>+ keepPreviousData ? previousData : undefined,+ }}+ sort={sort}+ >+ <ListViewGuesser {...rest} />+ </ListBase>+ );+};++const ListViewGuesser = (+ props: Omit<ListViewProps, "children"> & { enableLog?: boolean },+) => {+ const { data } = useListContext();+ const resource = useResourceContext();+ const [child, setChild] = useState<React.ReactElement | null>(null);+ const { enableLog = process.env.NODE_ENV === "development", ...rest } = props;++ useEffect(() => {+ setChild(null);+ }, [resource]);++ useEffect(() => {+ if (data && data.length > 0 && !child) {+ const inferredElements = getElementsFromRecords(data, listFieldTypes);+ const inferredChild = new InferredElement(+ listFieldTypes.table,+ null,+ inferredElements,+ );+ const inferredChildElement = inferredChild.getElement();+ const representation = inferredChild.getRepresentation();+ if (!resource) {+ throw new Error(+ "Cannot use <ListGuesser> outside of a ResourceContext",+ );+ }+ if (!inferredChildElement || !representation) {+ return;+ }++ setChild(inferredChildElement);++ const components = ["List"]+ .concat(+ Array.from(+ new Set(+ Array.from(representation.matchAll(/<([^/\s\\.>]+)/g))+ .map((match) => match[1])+ .filter((component) => component !== "span"),+ ),+ ),+ )+ .sort();++ if (enableLog) {++ console.log(+ `Guessed List:++${components+ .map(+ (component) =>+ `import { ${component} } from "@/components/admin/${kebabCase(+ component,+ )}";`,+ )+ .join("\n")}++export const ${capitalize(singularize(resource))}List = () => (+ <List>+${inferredChild.getRepresentation()}+ </List>+);`,+ );+ }+ }+ }, [data, child, resource, enableLog]);++ return <ListView {...rest}>{child}</ListView>;+};++const listFieldTypes = {+ table: {+ component: (props: any) => {+ return <DataTable {...props} />;+ },+ representation: (+ _props: any,+ children: { getRepresentation: () => string }[],+ ) =>+ ` <DataTable>+${children+ .map((child) => ` ${child.getRepresentation()}`)+ .join("\n")}+ </DataTable>`,+ },++ reference: {+ component: (props: any) => (+ <DataTable.Col source={props.source}>+ <ReferenceField source={props.source} reference={props.reference} />+ </DataTable.Col>+ ),+ representation: (props: any) =>+ `<DataTable.Col source="${props.source}">+ <ReferenceField source="${props.source}" reference="${props.reference}" />+ </DataTable.Col>`,+ },+ array: {+ component: ({ children, ...props }: any) => {+ const childrenArray = React.Children.toArray(children);+ return (+ <DataTable.Col source={props.source}>+ <ArrayField source={props.source}>+ <SingleFieldList>+ <BadgeField+ source={+ childrenArray.length > 0 &&+ React.isValidElement(childrenArray[0]) &&+ (childrenArray[0].props as any).source+ }+ />+ </SingleFieldList>+ </ArrayField>+ </DataTable.Col>+ );+ },+ representation: (props: any, children: any) =>+ `<DataTable.Col source="${props.source}">+ <ArrayField source="${props.source}">+ <SingleFieldList>+ <BadgeField source="${+ children.length > 0 && children[0].getProps().source+ }" />+ </SingleFieldList>+ </ArrayField>+ </DataTable.Col>`,+ },+ referenceArray: {+ component: (props: any) => (+ <DataTable.Col {...props}>+ <ReferenceArrayField {...props} />+ </DataTable.Col>+ ),+ representation: (props: any) =>+ `<DataTable.Col source="${props.source}">+ <ReferenceArrayField source="${props.source}" reference="${props.reference}" />+ </DataTable.Col>`,+ },+ string: {+ component: DataTable.Col,+ representation: (props: any) =>+ `<DataTable.Col source="${props.source}" />`,+ },+};++const kebabCase = (name: string) => {+ return name+ .replace(/([a-z])([A-Z])/g, "$1-$2")+ .replace(/([A-Z])([A-Z][a-z])/g, "$1-$2")+ .toLowerCase();+};diff --git a/src/components/admin/list-pagination.tsx b/src/components/admin/list-pagination.tsxnew file mode 100644index 00000000..da1794b6--- /dev/null+++ b/src/components/admin/list-pagination.tsx@@ -0,0 +1,226 @@+import { cn } from "@/lib/utils";+import {+ Pagination,+ PaginationContent,+ PaginationEllipsis,+ PaginationItem,+ PaginationLink,+} from "@/components/ui/pagination";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";+import { useListPaginationContext, Translate, useTranslate } from "ra-core";++export const ListPagination = ({+ rowsPerPageOptions = [5, 10, 25, 50],+ className,+}: {+ rowsPerPageOptions?: number[];+ className?: string;+}) => {+ const translate = useTranslate();+ const {+ hasPreviousPage,+ hasNextPage,+ page,+ perPage,+ setPerPage,+ total,+ setPage,+ } = useListPaginationContext();++ const pageStart = (page - 1) * perPage + 1;+ const pageEnd = hasNextPage ? page * perPage : total;++ const boundaryCount = 1;+ const siblingCount = 1;+ const count = total ? Math.ceil(total / perPage) : 1;++ const range = (start: number, end: number) => {+ const length = end - start + 1;+ return Array.from({ length }, (_, i) => start + i);+ };++ const startPages = range(1, Math.min(boundaryCount, count));+ const endPages = range(+ Math.max(count - boundaryCount + 1, boundaryCount + 1),+ count+ );++ const siblingsStart = Math.max(+ Math.min(+ // Natural start+ page - siblingCount,+ // Lower boundary when page is high+ count - boundaryCount - siblingCount * 2 - 1+ ),+ // Greater than startPages+ boundaryCount + 2+ );++ const siblingsEnd = Math.min(+ Math.max(+ // Natural end+ page + siblingCount,+ // Upper boundary when page is low+ boundaryCount + siblingCount * 2 + 2+ ),+ // Less than endPages+ count - boundaryCount - 1+ );++ const siblingPages = range(siblingsStart, siblingsEnd);++ const pageChangeHandler = (newPage: number) => {+ return (event: React.MouseEvent<HTMLAnchorElement>) => {+ event.preventDefault();+ setPage(newPage);+ };+ };++ return (+ <div+ className={`flex items-center justify-end space-x-2 gap-4 ${className}`}+ >+ <div className="hidden md:flex items-center space-x-2">+ <p className="text-sm font-medium">+ <Translate i18nKey="ra.navigation.page_rows_per_page">+ Rows per page+ </Translate>+ </p>+ <Select+ value={perPage.toString()}+ onValueChange={(value) => {+ setPerPage(Number(value));+ }}+ >+ <SelectTrigger className="h-8 w-[70px]">+ <SelectValue placeholder={perPage} />+ </SelectTrigger>+ <SelectContent side="top">+ {rowsPerPageOptions.map((pageSize) => (+ <SelectItem key={pageSize} value={`${pageSize}`}>+ {pageSize}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </div>+ <div className="text-sm text-muted-foreground">+ <Translate+ i18nKey="ra.navigation.page_range_info"+ options={{+ offsetBegin: pageStart,+ offsetEnd: pageEnd,+ total: total === -1 ? pageEnd : total,+ }}+ >+ {total != null+ ? `${pageStart}-${pageEnd} of ${total === -1 ? pageEnd : total}`+ : null}+ </Translate>+ </div>+ <Pagination className="-w-full -mx-auto">+ <PaginationContent>+ <PaginationItem>+ <PaginationLink+ href="#"+ onClick={pageChangeHandler(page - 1)}+ className={cn(+ "gap-1 px-2.5 sm:pr-2.5",+ !hasPreviousPage ? "opacity-50 cursor-not-allowed" : ""+ )}+ aria-label={translate("ra.navigation.previous", {+ _: "Previous",+ })}+ >+ <ChevronLeftIcon />+ </PaginationLink>+ </PaginationItem>+ {startPages.map((pageNumber) => (+ <PaginationItem key={pageNumber}>+ <PaginationLink+ href="#"+ onClick={pageChangeHandler(pageNumber)}+ isActive={pageNumber === page}+ >+ {pageNumber}+ </PaginationLink>+ </PaginationItem>+ ))}+ {siblingsStart > boundaryCount + 2 ? (+ <PaginationItem>+ <PaginationEllipsis />+ </PaginationItem>+ ) : boundaryCount + 1 < count - boundaryCount ? (+ <PaginationItem>+ <PaginationLink+ href="#"+ onClick={pageChangeHandler(boundaryCount + 1)}+ isActive={boundaryCount + 1 === page}+ >+ {boundaryCount + 1}+ </PaginationLink>+ </PaginationItem>+ ) : null}+ {siblingPages.map((pageNumber) => (+ <PaginationItem key={pageNumber}>+ <PaginationLink+ href="#"+ onClick={pageChangeHandler(pageNumber)}+ isActive={pageNumber === page}+ >+ {pageNumber}+ </PaginationLink>+ </PaginationItem>+ ))}+ {siblingsEnd < count - boundaryCount - 1 ? (+ <PaginationItem>+ <PaginationEllipsis />+ </PaginationItem>+ ) : count - boundaryCount > boundaryCount ? (+ <PaginationItem>+ <PaginationLink+ href="#"+ onClick={pageChangeHandler(count - boundaryCount)}+ isActive={count - boundaryCount === page}+ >+ {count - boundaryCount}+ </PaginationLink>+ </PaginationItem>+ ) : null}+ {endPages.map((pageNumber) => (+ <PaginationItem key={pageNumber}>+ <PaginationLink+ href="#"+ onClick={pageChangeHandler(pageNumber)}+ isActive={pageNumber === page}+ >+ {pageNumber}+ </PaginationLink>+ </PaginationItem>+ ))}+ <PaginationItem>+ <PaginationLink+ href="#"+ onClick={pageChangeHandler(page + 1)}+ size="default"+ className={cn(+ "gap-1 px-2.5 sm:pr-2.5",+ !hasNextPage ? "opacity-50 cursor-not-allowed" : ""+ )}+ aria-label={translate("ra.navigation.next", { _: "Next" })}+ >+ <ChevronRightIcon />+ </PaginationLink>+ </PaginationItem>+ </PaginationContent>+ </Pagination>+ </div>+ );+};diff --git a/src/components/admin/list.tsx b/src/components/admin/list.tsxnew file mode 100644index 00000000..bec4631a--- /dev/null+++ b/src/components/admin/list.tsx@@ -0,0 +1,146 @@+import {+ Breadcrumb,+ BreadcrumbItem,+ BreadcrumbPage,+} from "@/components/admin/breadcrumb";+import {+ ListBase,+ ListBaseProps,+ type ListControllerResult,+ RaRecord,+ Translate,+ useGetResourceLabel,+ useHasDashboard,+ useResourceContext,+ useResourceDefinition,+ useTranslate,+} from "ra-core";+import { ReactElement, ReactNode } from "react";+import { Link } from "react-router";+import { cn } from "@/lib/utils.ts";+import { FilterContext, FilterElementProps } from "@/hooks/filter-context.tsx";+import { CreateButton } from "@/components/admin/create-button";+import { ExportButton } from "@/components/admin/export-button";+import { ListPagination } from "@/components/admin/list-pagination";+import { FilterForm } from "@/components/admin/filter-form.tsx";++export const List = <RecordType extends RaRecord = RaRecord>(+ props: ListProps<RecordType>,+) => {+ const {+ debounce,+ disableAuthentication,+ disableSyncWithLocation,+ exporter,+ filter,+ filterDefaultValues,+ loading,+ perPage,+ queryOptions,+ resource,+ sort,+ storeKey,+ ...rest+ } = props;++ return (+ <ListBase<RecordType>+ debounce={debounce}+ disableAuthentication={disableAuthentication}+ disableSyncWithLocation={disableSyncWithLocation}+ exporter={exporter}+ filter={filter}+ filterDefaultValues={filterDefaultValues}+ loading={loading}+ perPage={perPage}+ queryOptions={queryOptions}+ resource={resource}+ sort={sort}+ storeKey={storeKey}+ >+ <ListView<RecordType> {...rest} />+ </ListBase>+ );+};++export interface ListProps<RecordType extends RaRecord = RaRecord>+ extends ListBaseProps<RecordType>,+ ListViewProps<RecordType> {}++export const ListView = <RecordType extends RaRecord = RaRecord>(+ props: ListViewProps<RecordType>,+) => {+ const {+ filters,+ pagination = defaultPagination,+ title,+ children,+ actions,+ } = props;+ const translate = useTranslate();+ const resource = useResourceContext();+ if (!resource) {+ throw new Error(+ "The ListView component must be used within a ResourceContextProvider",+ );+ }+ const getResourceLabel = useGetResourceLabel();+ const resourceLabel = getResourceLabel(resource, 2);+ const finalTitle =+ title !== undefined+ ? title+ : translate("ra.page.list", {+ name: resourceLabel,+ });+ const { hasCreate } = useResourceDefinition({ resource });+ const hasDashboard = useHasDashboard();++ return (+ <>+ <Breadcrumb>+ {hasDashboard && (+ <BreadcrumbItem>+ <Link to="/">+ <Translate i18nKey="ra.page.dashboard">Home</Translate>+ </Link>+ </BreadcrumbItem>+ )}+ <BreadcrumbPage>{resourceLabel}</BreadcrumbPage>+ </Breadcrumb>++ <FilterContext.Provider value={filters}>+ <div className="flex justify-between items-start flex-wrap gap-2 my-2">+ <h2 className="text-2xl font-bold tracking-tight mb-2">+ {finalTitle}+ </h2>+ {actions ?? (+ <div className="flex items-center gap-2">+ {hasCreate ? <CreateButton /> : null}+ {<ExportButton />}+ </div>+ )}+ </div>+ <FilterForm />++ <div className={cn("my-2", props.className)}>{children}</div>+ {pagination}+ </FilterContext.Provider>+ </>+ );+};++const defaultPagination = <ListPagination />;++export interface ListViewProps<RecordType extends RaRecord = RaRecord> {+ children?: ReactNode;+ render?: (props: ListControllerResult<RecordType, Error>) => ReactNode;+ actions?: ReactElement | false;+ filters?: ReactElement<FilterElementProps>[];+ pagination?: ReactNode;+ title?: ReactNode | string | false;+ className?: string;+}++export type FiltersType =+ | ReactElement<FilterElementProps>+ | ReactElement<FilterElementProps>[];diff --git a/src/components/admin/loading.tsx b/src/components/admin/loading.tsxnew file mode 100644index 00000000..5b625010--- /dev/null+++ b/src/components/admin/loading.tsx@@ -0,0 +1,34 @@+import { Translate, useTimeout } from "ra-core";+import { Spinner } from "./spinner";++export const Loading = (props: LoadingProps) => {+ const {+ loadingPrimary = "ra.page.loading",+ loadingSecondary = "ra.message.loading",+ delay = 1000,+ ...rest+ } = props;+ const oneSecondHasPassed = useTimeout(delay);+ return oneSecondHasPassed ? (+ <div+ className={"flex flex-col justify-center items-center h-full"}+ {...rest}+ >+ <div className={"text-center font-sans color-muted pt-1 pb-1"}>+ <Spinner size="large" className="width-9 height-9" />+ <h5 className="mt-3 text-2xl text-secondary-foreground">+ <Translate i18nKey={loadingPrimary}>{loadingPrimary}</Translate>+ </h5>+ <p className="text-primary">+ <Translate i18nKey={loadingSecondary}>{loadingSecondary}</Translate>+ </p>+ </div>+ </div>+ ) : null;+};++export interface LoadingProps {+ loadingPrimary?: string;+ loadingSecondary?: string;+ delay?: number;+}diff --git a/src/components/admin/locales-menu-button.tsx b/src/components/admin/locales-menu-button.tsxnew file mode 100644index 00000000..73413473--- /dev/null+++ b/src/components/admin/locales-menu-button.tsx@@ -0,0 +1,50 @@+import { Check } from "lucide-react";+import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { cn } from "@/lib/utils";+import { useLocales, useLocaleState } from "ra-core";++export function LocalesMenuButton() {+ const languages = useLocales();+ const [locale, setLocale] = useLocaleState();++ const getNameForLocale = (locale: string): string => {+ const language = languages.find((language) => language.locale === locale);+ return language ? language.name : "";+ };++ const changeLocale = (locale: string) => (): void => {+ setLocale(locale);+ };++ if (languages.length <= 1) {+ return null; // No need to render the dropdown if there's only one language+ }+ return (+ <DropdownMenu modal={false}>+ <DropdownMenuTrigger asChild>+ <Button variant="ghost" size="icon" className="hidden sm:inline-flex">+ {locale.toUpperCase()}+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end">+ {languages.map((language) => (+ <DropdownMenuItem+ key={language.locale}+ onClick={changeLocale(language.locale)}+ >+ {getNameForLocale(language.locale)}+ <Check+ className={cn("ml-auto", locale !== language.locale && "hidden")}+ />+ </DropdownMenuItem>+ ))}+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/src/components/admin/login-page.tsx b/src/components/admin/login-page.tsxnew file mode 100644index 00000000..35ddf1b3--- /dev/null+++ b/src/components/admin/login-page.tsx@@ -0,0 +1,109 @@+import { useState } from "react";+import { Form, required, useLogin, useNotify } from "ra-core";+import type { SubmitHandler, FieldValues } from "react-hook-form";+import { Button } from "@/components/ui/button";+import { TextInput } from "@/components/admin/text-input";+import { Notification } from "@/components/admin/notification";++export const LoginPage = (props: { redirectTo?: string }) => {+ const { redirectTo } = props;+ const [loading, setLoading] = useState(false);+ const login = useLogin();+ const notify = useNotify();++ const handleSubmit: SubmitHandler<FieldValues> = (values) => {+ setLoading(true);+ login(values, redirectTo)+ .then(() => {+ setLoading(false);+ })+ .catch((error) => {+ setLoading(false);+ notify(+ typeof error === "string"+ ? error+ : typeof error === "undefined" || !error.message+ ? "ra.auth.sign_in_error"+ : error.message,+ {+ type: "error",+ messageArgs: {+ _:+ typeof error === "string"+ ? error+ : error && error.message+ ? error.message+ : undefined,+ },+ }+ );+ });+ };++ return (+ <div className="min-h-screen flex">+ <div className="container relative grid flex-col items-center justify-center sm:max-w-none lg:grid-cols-2 lg:px-0">+ <div className="relative hidden h-full flex-col bg-muted p-10 text-white dark:border-r lg:flex">+ <div className="absolute inset-0 bg-zinc-900" />+ <div className="relative z-20 flex items-center text-lg font-medium">+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ className="mr-2 h-6 w-6"+ >+ <path d="M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3" />+ </svg>+ Acme Inc+ </div>+ <div className="relative z-20 mt-auto">+ <blockquote className="space-y-2">+ <p className="text-lg">+ “Shadcn Admin Kit has allowed us to quickly create and+ evolve a powerful tool that otherwise would have taken months of+ time and effort to develop.”+ </p>+ <footer className="text-sm">John Doe</footer>+ </blockquote>+ </div>+ </div>+ <div className="lg:p-8">+ <div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">+ <div className="flex flex-col space-y-2 text-center">+ <h1 className="text-2xl font-semibold tracking-tight">Sign in</h1>+ <p className="text-sm leading-none text-muted-foreground">+ Try [email protected] / password+ </p>+ </div>+ <Form className="space-y-8" onSubmit={handleSubmit}>+ <TextInput+ label="Email"+ source="email"+ type="email"+ validate={required()}+ />+ <TextInput+ label="Password"+ source="password"+ type="password"+ validate={required()}+ />+ <Button+ type="submit"+ className="cursor-pointer"+ disabled={loading}+ >+ Sign in+ </Button>+ </Form>+ </div>+ </div>+ </div>+ <Notification />+ </div>+ );+};diff --git a/src/components/admin/notification.tsx b/src/components/admin/notification.tsxnew file mode 100644index 00000000..15bd986a--- /dev/null+++ b/src/components/admin/notification.tsx@@ -0,0 +1,92 @@+import * as React from "react";+import { useCallback, useEffect } from "react";+import { Toaster, type ToasterProps, toast } from "sonner";+import { useTheme } from "@/components/admin/theme-provider";+import {+ CloseNotificationContext,+ useNotificationContext,+ useTakeUndoableMutation,+ useTranslate,+} from "ra-core";++export const Notification = (props: ToasterProps) => {+ const translate = useTranslate();+ const { notifications, takeNotification } = useNotificationContext();+ const takeMutation = useTakeUndoableMutation();+ const { theme } = useTheme();++ useEffect(() => {+ if (notifications.length) {+ const notification = takeNotification();+ if (notification) {+ const { message, type = "info", notificationOptions } = notification;+ const { messageArgs, undoable } = notificationOptions || {};++ const beforeunload = (e: BeforeUnloadEvent) => {+ e.preventDefault();+ const confirmationMessage = "";+ e.returnValue = confirmationMessage;+ return confirmationMessage;+ };++ if (undoable) {+ window.addEventListener("beforeunload", beforeunload);+ }++ const handleExited = () => {+ if (undoable) {+ const mutation = takeMutation();+ if (mutation) {+ mutation({ isUndo: false });+ }+ window.removeEventListener("beforeunload", beforeunload);+ }+ };++ const handleUndo = () => {+ const mutation = takeMutation();+ if (mutation) {+ mutation({ isUndo: true });+ }+ window.removeEventListener("beforeunload", beforeunload);+ };++ const finalMessage = message+ ? typeof message === "string"+ ? translate(message, messageArgs)+ : React.isValidElement(message)+ ? message+ : undefined+ : undefined;++ toast[type](finalMessage, {+ action: undoable+ ? {+ label: translate("ra.action.undo"),+ onClick: handleUndo,+ }+ : undefined,+ onDismiss: handleExited,+ onAutoClose: handleExited,+ });+ }+ }+ }, [notifications, takeMutation, takeNotification, translate]);++ const handleRequestClose = useCallback(() => {+ // Dismiss all toasts+ toast.dismiss();+ }, []);++ return (+ <CloseNotificationContext.Provider value={handleRequestClose}>+ <Toaster+ richColors+ theme={theme}+ closeButton+ position="bottom-center"+ {...props}+ />+ </CloseNotificationContext.Provider>+ );+};diff --git a/src/components/admin/number-field.tsx b/src/components/admin/number-field.tsxnew file mode 100644index 00000000..e663da16--- /dev/null+++ b/src/components/admin/number-field.tsx@@ -0,0 +1,54 @@++import { HTMLAttributes } from "react";+import { RaRecord, useFieldValue, useTranslate } from "ra-core";+import { FieldProps } from "@/lib/field.type.ts";++export const NumberField = <RecordType extends RaRecord = RaRecord>({+ defaultValue,+ source,+ record,+ empty,+ resource: _,+ transform = defaultTransform,+ locales,+ options,+ ...rest+}: NumberFieldProps<RecordType>) => {+ let value = useFieldValue({ defaultValue, source, record });+ const translate = useTranslate();++ if (value == null) {+ return empty && typeof empty === "string"+ ? translate(empty, { _: empty })+ : empty;+ }++ if (transform) {+ value = transform(value);+ }++ return (+ <span {...rest}>+ {hasNumberFormat && typeof value === "number"+ ? value.toLocaleString(locales, options)+ : value}+ </span>+ );+};++export interface NumberFieldProps<RecordType extends RaRecord = RaRecord>+ extends FieldProps<RecordType>,+ HTMLAttributes<HTMLSpanElement> {+ locales?: string | string[];+ options?: object;+ transform?: (value: any) => number;+}++const defaultTransform = (value: any) =>+ value && typeof value === "string" && !isNaN(value as any) ? +value : value;++const hasNumberFormat = !!(+ typeof Intl === "object" &&+ Intl &&+ typeof Intl.NumberFormat === "function"+);diff --git a/src/components/admin/number-input.tsx b/src/components/admin/number-input.tsxnew file mode 100644index 00000000..a7b2c37b--- /dev/null+++ b/src/components/admin/number-input.tsx@@ -0,0 +1,106 @@+import * as React from "react";+import { useEffect, useState } from "react";+import {+ FieldTitle,+ type InputProps,+ useInput,+ useResourceContext,+} from "ra-core";+import { FormControl, FormField, FormLabel } from "@/components/admin/form";+import { Input } from "@/components/ui/input";+import { FormError } from "@/components/admin/form";+import { InputHelperText } from "@/components/admin/input-helper-text";++export const NumberInput = (props: NumberInputProps) => {+ const {+ label,+ source,+ className,+ resource: resourceProp,+ validate: _validateProp,+ format: _formatProp,+ parse = convertStringToNumber,+ onFocus,+ ...rest+ } = props;+ const resource = useResourceContext({ resource: resourceProp });++ const { id, field, isRequired } = useInput(props);++ const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {+ const value = event.target.value;+ const numberValue = parse(value);++ setValue(value);+ field.onChange(numberValue ?? 0);+ };++ const [value, setValue] = useState<string | undefined>(+ field.value?.toString() ?? "",+ );++ const hasFocus = React.useRef(false);++ const handleFocus = (event: React.FocusEvent<HTMLInputElement>) => {+ onFocus?.(event);+ hasFocus.current = true;+ };++ const handleBlur = (event: React.FocusEvent<HTMLInputElement>) => {+ field.onBlur?.(event);+ hasFocus.current = false;+ setValue(field.value?.toString() ?? "");+ };++ useEffect(() => {+ if (!hasFocus.current) {+ setValue(field.value?.toString() ?? "");+ }+ }, [field.value]);++ return (+ <FormField id={id} className={className} name={field.name}>+ {label !== false && (+ <FormLabel>+ <FieldTitle+ label={label}+ source={source}+ resource={resource}+ isRequired={isRequired}+ />+ </FormLabel>+ )}+ <FormControl>+ <Input+ {...rest}+ {...field}+ type="number"+ value={value}+ onChange={handleChange}+ onFocus={handleFocus}+ onBlur={handleBlur}+ />+ </FormControl>+ <InputHelperText helperText={props.helperText} />+ <FormError />+ </FormField>+ );+};++export interface NumberInputProps+ extends InputProps,+ Omit<+ React.ComponentProps<"input">,+ "defaultValue" | "onBlur" | "onChange" | "type"+ > {+ parse?: (value: string) => number;+}++const convertStringToNumber = (value?: string | null) => {+ if (value == null || value === "") {+ return null;+ }+ const float = parseFloat(value);++ return isNaN(float) ? 0 : float;+};diff --git a/src/components/admin/radio-button-group-input.tsx b/src/components/admin/radio-button-group-input.tsxnew file mode 100644index 00000000..50044aa8--- /dev/null+++ b/src/components/admin/radio-button-group-input.tsx@@ -0,0 +1,162 @@+import * as React from "react";+import {+ type ChoicesProps,+ type InputProps,+ FieldTitle,+ useChoices,+ useChoicesContext,+ useInput,+} from "ra-core";+import { cn } from "@/lib/utils";+import {+ FormField,+ FormControl,+ FormLabel,+ FormError,+} from "@/components/admin";+import { Label } from "@/components/ui/label";+import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";+import { Skeleton } from "@/components/ui/skeleton";+import { InputHelperText } from "@/components/admin/input-helper-text";++export const RadioButtonGroupInput = (inProps: RadioButtonGroupInputProps) => {+ const {+ choices: choicesProp,+ isFetching: isFetchingProp,+ isLoading: isLoadingProp,+ isPending: isPendingProp,+ resource: resourceProp,+ source: sourceProp,++ format,+ onBlur,+ onChange,+ parse,+ validate,+ disabled,+ readOnly,++ optionText,+ optionValue = "id",+ translateChoice,+ disableValue = "disabled",++ className,+ helperText,+ label,+ row = true,+ ...rest+ } = inProps;++ const {+ allChoices,+ isPending,+ error: fetchError,+ resource,+ source,+ } = useChoicesContext({+ choices: choicesProp,+ isFetching: isFetchingProp,+ isLoading: isLoadingProp,+ isPending: isPendingProp,+ resource: resourceProp,+ source: sourceProp,+ });++ if (source === undefined) {+ throw new Error(+ `If you're not wrapping the RadioButtonGroupInput inside a ReferenceArrayInput, you must provide the source prop`,+ );+ }++ if (!isPending && !fetchError && allChoices === undefined) {+ throw new Error(+ `If you're not wrapping the RadioButtonGroupInput inside a ReferenceArrayInput, you must provide the choices prop`,+ );+ }++ const { id, field, isRequired } = useInput({+ format,+ onBlur,+ onChange,+ parse,+ resource,+ source,+ validate,+ disabled,+ readOnly,+ ...rest,+ });++ const { getChoiceText, getChoiceValue, getDisableValue } = useChoices({+ optionText,+ optionValue,+ translateChoice,+ disableValue,+ });++ if (isPending) {+ return <Skeleton className="w-full h-9" />;+ }++ return (+ <FormField id={id} className={className} name={field.name}>+ {label && (+ <FormLabel>+ <FieldTitle+ label={label}+ source={source}+ resource={resource}+ isRequired={isRequired}+ />+ </FormLabel>+ )}++ <FormControl>+ <RadioGroup+ {...rest}+ value={field.value || ""}+ onValueChange={field.onChange}+ className={cn("flex gap-4", row ? "flex-row" : "flex-col")}+ disabled={disabled || readOnly}+ >+ {allChoices?.map((choice) => {+ const value = getChoiceValue(choice);+ const isDisabled = disabled || readOnly || getDisableValue(choice);++ return (+ <div key={value} className="flex items-center space-x-2">+ <RadioGroupItem+ value={value}+ id={`${id}-${value}`}+ disabled={isDisabled}+ />+ <Label+ htmlFor={`${id}-${value}`}+ className={cn(+ "text-sm font-normal cursor-pointer",+ isDisabled && "opacity-50 cursor-not-allowed",+ )}+ >+ {getChoiceText(choice)}+ </Label>+ </div>+ );+ })}+ </RadioGroup>+ </FormControl>+ <InputHelperText helperText={helperText} />+ <FormError />+ </FormField>+ );+};++export interface RadioButtonGroupInputProps+ extends Partial<InputProps>,+ ChoicesProps,+ Omit<+ React.ComponentProps<typeof RadioGroup>,+ "defaultValue" | "onBlur" | "onChange" | "type"+ > {+ row?: boolean;+}diff --git a/src/components/admin/ready.tsx b/src/components/admin/ready.tsxnew file mode 100644index 00000000..1c746116--- /dev/null+++ b/src/components/admin/ready.tsx@@ -0,0 +1,47 @@+import {+ ScanFace,+ BookOpenText,+ ChevronsLeftRight,+ Github,+} from "lucide-react";++export const Ready = () => (+ <div className="flex flex-col h-screen">+ <div+ className="flex-1 flex flex-col color-white text-center justify-center items-center flex-1"+ style={{+ background:+ "linear-gradient(135deg, #00023b 0%, #00023b 50%, #313264 100%)",+ }}+ >+ <ScanFace className="w-32 h-32 mb-4" />+ <h1 className="text-3xl mb-4">Welcome to shadcn-admin-kit</h1>+ <div className="text-lg opacity-75">+ Your application is properly configured.+ <br />+ Now you can add a <Resource> as child of+ <Admin></Admin>+ </div>+ </div>+ <div className="flex h-[20vh] bg-zinc-100 text-black items-center justify-evenly">+ <div className="text-xl">+ <a href="https://github.com/marmelab/shadcn-admin-kit/tree/main/docs">+ <BookOpenText className="inline mr-4 w-10 h-10" />+ Documentation+ </a>+ </div>+ <div className="text-xl">+ <a href="http://marmelab.com/shadcn-admin-kit/demo">+ <ChevronsLeftRight className="inline mr-4 w-10 h-10" />+ Demo+ </a>+ </div>+ <div className="text-xl">+ <a href="https://github.com/marmelab/shadcn-admin-kit">+ <Github className="inline mr-4 w-10 h-10" />+ GitHub+ </a>+ </div>+ </div>+ </div>+);diff --git a/src/components/admin/record-field.tsx b/src/components/admin/record-field.tsxnew file mode 100644index 00000000..66f0a261--- /dev/null+++ b/src/components/admin/record-field.tsx@@ -0,0 +1,105 @@++import * as React from "react";+import { type ReactNode, type ElementType } from "react";+import {+ FieldTitle,+ useRecordContext,+ useResourceContext,+ useTranslate,+ type ExtractRecordPaths,+ type HintedString,+} from "ra-core";+import { cn } from "@/lib/utils";++import { TextField } from "@/components/admin/text-field";++export const RecordField = <+ RecordType extends Record<string, any> = Record<string, any>,+>(+ props: RecordFieldProps<RecordType>,+) => {+ const {+ children,+ className,+ empty,+ field,+ label,+ render,+ source,+ record: recordProp,+ variant,+ ...rest+ } = props;+ const resource = useResourceContext();+ const record = useRecordContext<RecordType>({ recordProp });+ const translate = useTranslate();+ if (!source && !label && !render) return null;+ return (+ <div+ className={cn(+ className,+ "flex",+ variant === "inline" ? "flex-row" : "flex-col",+ )}+ {...rest}+ >+ {label !== "" && label !== false ? (+ <div+ className={cn(+ variant === "inline" ? "block min-w-50" : "text-xs",+ "text-muted-foreground",+ )}+ >+ <FieldTitle+ label={label}+ source={source}+ resource={resource}+ isRequired={false}+ />+ </div>+ ) : null}+ {children ? (+ <span className="flex-1">{children}</span>+ ) : render ? (+ record && (+ <span className="flex-1">+ {render(record) ||+ (typeof empty === "string"+ ? translate(empty, { _: empty })+ : empty)}+ </span>+ )+ ) : field ? (+ React.createElement(field, {+ source,+ empty,+ className: "flex-1",+ })+ ) : source ? (+ <TextField+ source={source}+ empty={empty}+ resource={resource}+ className="flex-1"+ />+ ) : null}+ </div>+ );+};++// FIXME remove custom type when using TypeScript >= 5.4 as it is now native+type NoInfer<T> = T extends infer U ? U : never;++export interface RecordFieldProps<+ RecordType extends Record<string, any> = Record<string, any>,+> {+ children?: ReactNode;+ className?: string;+ empty?: ReactNode;+ field?: ElementType;+ label?: ReactNode;+ render?: (record: RecordType) => React.ReactNode;+ source?: NoInfer<HintedString<ExtractRecordPaths<RecordType>>>;+ record?: RecordType;+ variant?: "default" | "inline";+}diff --git a/src/components/admin/reference-array-field.tsx b/src/components/admin/reference-array-field.tsxnew file mode 100644index 00000000..5e8c28ce--- /dev/null+++ b/src/components/admin/reference-array-field.tsx@@ -0,0 +1,173 @@+import { memo, type ReactElement, type ReactNode } from "react";+import {+ useListContext,+ type SortPayload,+ type FilterPayload,+ ReferenceArrayFieldBase,+ type RaRecord,+ HintedString,+ ExtractRecordPaths,+} from "ra-core";+import type { UseQueryOptions } from "@tanstack/react-query";+import { SingleFieldList } from "@/components/admin/single-field-list";++/**+ * A container component that fetches records from another resource specified+ * by an array of *ids* in current record.+ *+ * You must define the fields to be passed to the iterator component as children.+ *+ * @example Display all the categories of the current product as a list of chips (the default)+ * // product = {+ * // id: 456,+ * // category_ids: [11, 22, 33],+ * // }+ * <ReferenceArrayField label="Categories" reference="categories" source="category_ids"/ >+ *+ * @example Display all the products of the current order as DataTable+ * // order = {+ * // id: 123,+ * // product_ids: [456, 457, 458],+ * // }+ * <ReferenceArrayField label="Products" reference="products" source="product_ids">+ * <DataTable>+ * <DataTable.Col source="id" />+ * <DataTable.Col source="description" />+ * <DataTable.NumberCol source="price" options={{ style: 'currency', currency: 'USD' }} />+ * <DataTable.Col><EditButton /></DataTable.Col>+ * </DataTable>+ * </ReferenceArrayField>+ *+ * By default, restricts the displayed values to 1000. You can extend this limit+ * by setting the `perPage` prop.+ *+ * @example+ * <ReferenceArrayField perPage={10} reference="categories" source="category_ids">+ * ...+ * </ReferenceArrayField>+ *+ * By default, the field displays the results in the order in which they are referenced+ * (i.e. in the order of the list of ids). You can change this order+ * by setting the `sort` prop (an object with `field` and `order` properties).+ *+ * @example+ * <ReferenceArrayField sort={{ field: 'name', order: 'ASC' }} reference="categories" source="category_ids">+ * ...+ * </ReferenceArrayField>+ *+ * Also, you can filter the results to display only a subset of values. Use the+ * `filter` prop for that.+ *+ * @example+ * <ReferenceArrayField filter={{ is_published: true }} reference="categories" source="category_ids">+ * ...+ * </ReferenceArrayField>+ */+export const ReferenceArrayField = <+ RecordType extends RaRecord = RaRecord,+ ReferenceRecordType extends RaRecord = RaRecord+>(+ props: ReferenceArrayFieldProps<RecordType, ReferenceRecordType>+) => {+ const {+ filter,+ page = 1,+ perPage,+ reference,+ resource,+ sort,+ source,+ queryOptions,+ ...rest+ } = props;+ return (+ <ReferenceArrayFieldBase+ filter={filter}+ page={page}+ perPage={perPage}+ reference={reference}+ resource={resource}+ sort={sort}+ source={source}+ queryOptions={queryOptions}+ >+ <PureReferenceArrayFieldView {...rest} />+ </ReferenceArrayFieldBase>+ );+};+export interface ReferenceArrayFieldProps<+ RecordType extends RaRecord = RaRecord,+ ReferenceRecordType extends RaRecord = RaRecord+> extends ReferenceArrayFieldViewProps {+ filter?: FilterPayload;+ page?: number;+ pagination?: ReactElement;+ perPage?: number;+ reference: string;+ resource?: string;+ source: NoInfer<HintedString<ExtractRecordPaths<RecordType>>>;+ sort?: SortPayload;+ queryOptions?: Omit<+ UseQueryOptions<ReferenceRecordType[], Error>,+ "queryFn" | "queryKey"+ >;+}++export interface ReferenceArrayFieldViewProps {+ children?: ReactNode;+ className?: string;+ empty?: ReactNode;+ error?: ReactNode;+ loading?: ReactNode;+ pagination?: ReactNode;+}++export const ReferenceArrayFieldView = (+ props: ReferenceArrayFieldViewProps+) => {+ const {+ children = defaultChildren,+ className,+ empty,+ error: errorElement,+ loading,+ pagination,+ } = props;+ const {+ isPending,+ error,+ total,+ hasPreviousPage,+ hasNextPage,+ data,+ filterValues,+ } = useListContext();++ return (+ <div className={className}>+ {isPending && loading !== false ? (+ loading+ ) : error && errorElement !== false ? (+ errorElement+ ) : (total === 0 ||+ (total == null &&+ hasPreviousPage === false &&+ hasNextPage === false &&+ // @ts-expect-error FIXME total may be undefined when using partial pagination but the ListControllerResult type is wrong about it+ data.length === 0 &&+ // the user didn't set any filters+ !Object.keys(filterValues).length)) &&+ empty !== false ? (+ empty+ ) : (+ <span>+ {children}+ {pagination && total !== undefined ? pagination : null}+ </span>+ )}+ </div>+ );+};++const defaultChildren = <SingleFieldList />;+const PureReferenceArrayFieldView = memo(ReferenceArrayFieldView);diff --git a/src/components/admin/reference-array-input.tsx b/src/components/admin/reference-array-input.tsxnew file mode 100644index 00000000..2dbdd399--- /dev/null+++ b/src/components/admin/reference-array-input.tsx@@ -0,0 +1,107 @@+import * as React from "react";+import { ReactElement } from "react";+import {+ InputProps,+ useReferenceArrayInputController,+ ResourceContextProvider,+ ChoicesContextProvider,+ UseReferenceArrayInputParams,+} from "ra-core";+import { AutocompleteArrayInput } from "@/components/admin/autocomplete-array-input";++/**+ * An Input component for fields containing a list of references to another resource.+ * Useful for 'hasMany' relationship.+ *+ * @example+ * The post object has many tags, so the post resource looks like:+ * {+ * id: 1234,+ * tag_ids: [ "1", "23", "4" ]+ * }+ *+ * ReferenceArrayInput component fetches the current resources (using+ * `dataProvider.getMany()`) as well as possible resources (using+ * `dataProvider.getList()`) in the reference endpoint. It then+ * delegates rendering to its child component, to which it makes the possible+ * choices available through the ChoicesContext.+ *+ * @example+ * export const PostEdit = () => (+ * <Edit>+ * <SimpleForm>+ * <ReferenceArrayInput source="tag_ids" reference="tags" />+ * </SimpleForm>+ * </Edit>+ * );+ *+ * By default, restricts the possible values to 25. You can extend this limit+ * by setting the `perPage` prop.+ *+ * @example+ * <ReferenceArrayInput+ * source="tag_ids"+ * reference="tags"+ * perPage={100}+ * />+ *+ * By default, orders the possible values by id desc. You can change this order+ * by setting the `sort` prop (an object with `field` and `order` properties).+ *+ * @example+ * <ReferenceArrayInput+ * source="tag_ids"+ * reference="tags"+ * sort={{ field: 'name', order: 'ASC' }}+ * />+ *+ * Also, you can filter the query used to populate the possible values. Use the+ * `filter` prop for that.+ *+ * @example+ * <ReferenceArrayInput+ * source="tag_ids"+ * reference="tags"+ * filter={{ is_public: true }}+ * />+ *+ * The enclosed component may filter results. ReferenceArrayInput create a ChoicesContext which provides+ * a `setFilters` function. You can call this function to filter the results.+ */+export const ReferenceArrayInput = (props: ReferenceArrayInputProps) => {+ const {+ children = defaultChildren,+ reference,+ sort,+ filter = defaultFilter,+ } = props;+ if (React.Children.count(children) !== 1) {+ throw new Error(+ "<ReferenceArrayInput> only accepts a single child (like <AutocompleteArrayInput>)"+ );+ }++ const controllerProps = useReferenceArrayInputController({+ ...props,+ sort,+ filter,+ });++ return (+ <ResourceContextProvider value={reference}>+ <ChoicesContextProvider value={controllerProps}>+ {children}+ </ChoicesContextProvider>+ </ResourceContextProvider>+ );+};++const defaultChildren = <AutocompleteArrayInput />;+const defaultFilter = {};++export interface ReferenceArrayInputProps+ extends InputProps,+ UseReferenceArrayInputParams {+ children?: ReactElement;+ label?: string;+}diff --git a/src/components/admin/reference-field.tsx b/src/components/admin/reference-field.tsxnew file mode 100644index 00000000..fe196663--- /dev/null+++ b/src/components/admin/reference-field.tsx@@ -0,0 +1,128 @@+import {+ LinkToType,+ RaRecord,+ ReferenceFieldBase,+ type UseReferenceFieldControllerResult,+ useFieldValue,+ useGetRecordRepresentation,+ useReferenceFieldContext,+ useTranslate,+ ExtractRecordPaths,+} from "ra-core";+import { MouseEvent, ReactNode } from "react";+import { Link } from "react-router";+import { UseQueryOptions } from "@tanstack/react-query";++export const ReferenceField = <+ RecordType extends RaRecord = RaRecord,+ ReferenceRecordType extends RaRecord = RaRecord+>(+ props: ReferenceFieldProps<RecordType, ReferenceRecordType>+) => {+ const { loading, error, empty, render, ...rest } = props;+ const id = useFieldValue<RecordType>(props);+ const translate = useTranslate();++ return id == null ? (+ typeof empty === "string" ? (+ <>{empty && translate(empty, { _: empty })}</>+ ) : (+ empty+ )+ ) : (+ <ReferenceFieldBase {...rest}>+ <ReferenceFieldView<ReferenceRecordType>+ render={render}+ loading={loading}+ error={error}+ {...rest}+ />+ </ReferenceFieldBase>+ );+};++export interface ReferenceFieldProps<+ RecordType extends RaRecord = RaRecord,+ ReferenceRecordType extends RaRecord = RaRecord+> extends Partial<ReferenceFieldViewProps<ReferenceRecordType>> {+ children?: ReactNode;+ queryOptions?: UseQueryOptions<RaRecord[], Error> & {++ meta?: any;+ };+ record?: RecordType;+ reference: string;+ translateChoice?: ((record: ReferenceRecordType) => string) | boolean;+ link?: LinkToType;+ source: ExtractRecordPaths<RecordType>;+}++// useful to prevent click bubbling in a datagrid with rowClick+const stopPropagation = (e: MouseEvent<HTMLAnchorElement>) =>+ e.stopPropagation();++export const ReferenceFieldView = <+ ReferenceRecordType extends RaRecord = RaRecord+>(+ props: ReferenceFieldViewProps<ReferenceRecordType>+) => {+ const {+ children,+ className,+ empty,+ error: errorElement,+ render,+ reference,+ loading,+ } = props;+ const referenceFieldContext = useReferenceFieldContext();+ const { error, link, isPending, referenceRecord } = referenceFieldContext;+ const getRecordRepresentation = useGetRecordRepresentation(reference);+ const translate = useTranslate();++ if (error && errorElement !== false) {+ return errorElement;+ }+ if (isPending && loading !== false) {+ return loading;+ }+ if (!referenceRecord && empty !== false) {+ return typeof empty === "string" ? (+ <>{empty && translate(empty, { _: empty })}</>+ ) : (+ empty+ );+ }++ const child = render+ ? render(referenceFieldContext)+ : children || <span>{getRecordRepresentation(referenceRecord)}</span>;++ if (link) {+ return (+ <div className={className}>+ <Link to={link} onClick={stopPropagation}>+ {child}+ </Link>+ </div>+ );+ }++ return <>{child}</>;+};++export interface ReferenceFieldViewProps<+ ReferenceRecordType extends RaRecord = RaRecord+> {+ children?: ReactNode;+ className?: string;+ empty?: ReactNode;+ loading?: ReactNode;+ render?: (props: UseReferenceFieldControllerResult) => ReactNode;+ reference: string;+ source: string;+ resource?: string;+ translateChoice?: ((record: ReferenceRecordType) => string) | boolean;+ resourceLinkPath?: LinkToType;+ error?: ReactNode;+}diff --git a/src/components/admin/reference-input.tsx b/src/components/admin/reference-input.tsxnew file mode 100644index 00000000..58600d4d--- /dev/null+++ b/src/components/admin/reference-input.tsx@@ -0,0 +1,23 @@+import { ReferenceInputBase, ReferenceInputBaseProps } from "ra-core";+import { AutocompleteInput } from "./autocomplete-input";++export const ReferenceInput = (props: ReferenceInputProps) => {+ const { children = defaultChildren, ...rest } = props;++ if (props.validate && process.env.NODE_ENV !== "production") {+ throw new Error(+ "<ReferenceInput> does not accept a validate prop. Set the validate prop on the child instead.",+ );+ }++ return <ReferenceInputBase {...rest}>{children}</ReferenceInputBase>;+};++const defaultChildren = <AutocompleteInput />;++export interface ReferenceInputProps extends ReferenceInputBaseProps {+ /**+ * Call validate on the child component instead+ */+ validate?: never;+}diff --git a/src/components/admin/reference-many-count.tsx b/src/components/admin/reference-many-count.tsxnew file mode 100644index 00000000..72c5e79e--- /dev/null+++ b/src/components/admin/reference-many-count.tsx@@ -0,0 +1,71 @@+import {+ RaRecord,+ SortPayload,+ useCreatePath,+ useRecordContext,+ useReferenceManyFieldController,+} from "ra-core";+import { Link } from "react-router";++export const ReferenceManyCount = <RecordType extends RaRecord = RaRecord>(+ props: ReferenceManyCountProps<RecordType>,+) => {+ const {+ reference,+ target,+ filter,+ sort,+ link,+ resource,+ source = "id",+ } = props;+ const record = useRecordContext<RecordType>(props);+ const createPath = useCreatePath();++ const { isLoading, error, total } =+ useReferenceManyFieldController<RecordType>({+ filter,+ sort,+ page: 1,+ perPage: 1,+ record,+ reference,+ resource,+ source,+ target,+ });++ const body = isLoading ? "" : error ? "error" : total;++ return link && record ? (+ <Link+ to={{+ pathname: createPath({ resource: reference, type: "list" }),+ search: `filter=${JSON.stringify({+ ...(filter || {}),+ [target]: record[source],+ })}`,+ }}+ onClick={(e) => e.stopPropagation()}+ >+ {body}+ </Link>+ ) : (+ <span>{body}</span>+ );+};++export interface ReferenceManyCountProps<+ RecordType extends RaRecord = RaRecord,+> {+ record?: RecordType;+ reference: string;+ resource?: string;+ target: string;+ source?: string;+ sort?: SortPayload;++ filter?: any;+ link?: boolean;+ timeout?: number;+}diff --git a/src/components/admin/reference-many-field.tsx b/src/components/admin/reference-many-field.tsxnew file mode 100644index 00000000..2f9b02ed--- /dev/null+++ b/src/components/admin/reference-many-field.tsx@@ -0,0 +1,105 @@+import { ReactNode } from "react";+import {+ ReferenceManyFieldBase,+ useListContext,+ RaRecord,+ UseReferenceManyFieldControllerParams,+ ListControllerResult,+} from "ra-core";++export const ReferenceManyField = <+ RecordType extends RaRecord = RaRecord,+ ReferenceRecordType extends RaRecord = RaRecord,+>(+ props: ReferenceManyFieldProps<RecordType, ReferenceRecordType>,+) => {+ const { children, empty, error, loading, pagination, render, ...rest } =+ props;++ return (+ <ReferenceManyFieldBase {...rest}>+ <ReferenceManyFieldView<ReferenceRecordType>+ empty={empty}+ error={error}+ loading={loading}+ pagination={pagination}+ render={render}+ >+ {children}+ </ReferenceManyFieldView>+ </ReferenceManyFieldBase>+ );+};++export interface ReferenceManyFieldProps<+ RecordType extends RaRecord = RaRecord,+ ReferenceRecordType extends RaRecord = RaRecord,+> extends UseReferenceManyFieldControllerParams<+ RecordType,+ ReferenceRecordType+ >,+ ReferenceManyFieldViewProps<ReferenceRecordType> {}++const ReferenceManyFieldView = <+ ReferenceRecordType extends RaRecord = RaRecord,+>(+ props: ReferenceManyFieldViewProps<ReferenceRecordType>,+) => {+ const {+ children,+ empty,+ error: errorElement,+ loading,+ pagination,+ render,+ } = props;+ const listContext = useListContext();+ const {+ isPending,+ error,+ total,+ hasPreviousPage,+ hasNextPage,+ data,+ filterValues,+ } = listContext;++ if (isPending && loading !== false) {+ return loading;+ }+ if (error && errorElement !== false) {+ return errorElement;+ }+ if (+ (total === 0 ||+ (total == null &&+ hasPreviousPage === false &&+ hasNextPage === false &&+ // @ts-expect-error FIXME total may be undefined when using partial pagination but the ListControllerResult type is wrong about it+ data.length === 0 &&+ // the user didn't set any filters+ !Object.keys(filterValues).length)) &&+ empty !== false+ ) {+ return empty;+ }++ return (+ <>+ {render && render(listContext)}+ {children}+ {pagination}+ </>+ );+};++export interface ReferenceManyFieldViewProps<+ ReferenceRecordType extends RaRecord = RaRecord,+> {+ children?: ReactNode;+ empty?: ReactNode;+ error?: ReactNode;+ loading?: ReactNode;+ pagination?: ReactNode;+ render?: (props: ListControllerResult<ReferenceRecordType>) => ReactNode;+}diff --git a/src/components/admin/refresh-button.tsx b/src/components/admin/refresh-button.tsxnew file mode 100644index 00000000..f45eceda--- /dev/null+++ b/src/components/admin/refresh-button.tsx@@ -0,0 +1,23 @@+import { useRefresh, useLoading } from "ra-core";+import { Button } from "@/components/ui/button";+import { LoaderCircle, RotateCw } from "lucide-react";++export const RefreshButton = () => {+ const refresh = useRefresh();+ const loading = useLoading();++ const handleRefresh = () => {+ refresh();+ };++ return (+ <Button+ onClick={handleRefresh}+ variant="ghost"+ size="icon"+ className="hidden sm:inline-flex"+ >+ {loading ? <LoaderCircle className="animate-spin" /> : <RotateCw />}+ </Button>+ );+};diff --git a/src/components/admin/saved-queries.tsx b/src/components/admin/saved-queries.tsxnew file mode 100644index 00000000..6d120ea7--- /dev/null+++ b/src/components/admin/saved-queries.tsx@@ -0,0 +1,161 @@+import { useListContext, useTranslate } from "ra-core";+import { ChangeEvent, FormEvent, ReactElement, useState } from "react";+import isEqual from "lodash/isEqual";++import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import {+ extractValidSavedQueries,+ useSavedQueries,+} from "@/hooks/saved-queries.tsx";++export const AddSavedQueryDialog = ({+ open,+ onClose,+}: AddSavedQueryDialogProps): ReactElement => {+ const translate = useTranslate();+ const { resource, filterValues, displayedFilters, sort, perPage } =+ useListContext();++ const [savedQueries, setSavedQueries] = useSavedQueries(resource);++ // input state+ const [queryName, setQueryName] = useState("");+ const handleQueryNameChange = (+ event: ChangeEvent<HTMLInputElement>,+ ): void => {+ setQueryName(event.target.value);+ };++ const handleFormSubmit = (e: FormEvent<HTMLFormElement>): void => {+ e.preventDefault();+ addQuery();+ };++ const addQuery = (): void => {+ const newSavedQuery = {+ label: queryName,+ value: {+ filter: filterValues,+ sort,+ perPage,+ displayedFilters,+ },+ };+ const newSavedQueries = extractValidSavedQueries(savedQueries);+ setSavedQueries(newSavedQueries.concat(newSavedQuery));+ setQueryName("");+ onClose();+ };++ return (+ <Dialog open={open} onOpenChange={onClose}>+ <DialogContent className="sm:max-w-[425px]">+ <DialogHeader>+ <DialogTitle>+ {translate("ra.saved_queries.new_dialog_title", {+ _: "Save current query as",+ })}+ </DialogTitle>+ </DialogHeader>+ <form onSubmit={handleFormSubmit} className="space-y-4">+ <div className="space-y-2">+ <Label htmlFor="name">+ {translate("ra.saved_queries.query_name", {+ _: "Query name",+ })}+ </Label>+ <Input+ id="name"+ value={queryName}+ onChange={handleQueryNameChange}+ autoFocus+ />+ </div>+ </form>+ <DialogFooter>+ <Button variant="outline" onClick={onClose}>+ {translate("ra.action.cancel")}+ </Button>+ <Button onClick={addQuery}>{translate("ra.action.save")}</Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+};++export interface AddSavedQueryDialogProps {+ open: boolean;+ onClose: () => void;+}++export const RemoveSavedQueryDialog = ({+ open,+ onClose,+}: RemoveSavedQueryDialogProps): ReactElement => {+ const translate = useTranslate();+ const { resource, filterValues, sort, perPage, displayedFilters } =+ useListContext();++ const [savedQueries, setSavedQueries] = useSavedQueries(resource);++ const removeQuery = (): void => {+ const savedQueryToRemove = {+ filter: filterValues,+ sort,+ perPage,+ displayedFilters,+ };++ const newSavedQueries = extractValidSavedQueries(savedQueries);+ const index = newSavedQueries.findIndex((savedFilter) =>+ isEqual(savedFilter.value, savedQueryToRemove),+ );+ setSavedQueries([+ ...newSavedQueries.slice(0, index),+ ...newSavedQueries.slice(index + 1),+ ]);+ onClose();+ };++ return (+ <Dialog open={open} onOpenChange={onClose}>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>+ {translate("ra.saved_queries.remove_dialog_title", {+ _: "Remove saved query?",+ })}+ </DialogTitle>+ <DialogDescription>+ {translate("ra.saved_queries.remove_message", {+ _: "Are you sure you want to remove that item from your list of saved queries?",+ })}+ </DialogDescription>+ </DialogHeader>+ <DialogFooter>+ <Button variant="outline" onClick={onClose}>+ {translate("ra.action.cancel")}+ </Button>+ <Button onClick={removeQuery} autoFocus>+ {translate("ra.action.confirm")}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+};++export interface RemoveSavedQueryDialogProps {+ open: boolean;+ onClose: () => void;+}diff --git a/src/components/admin/search-input.tsx b/src/components/admin/search-input.tsxnew file mode 100644index 00000000..3f63eacf--- /dev/null+++ b/src/components/admin/search-input.tsx@@ -0,0 +1,29 @@+import { useTranslate } from "ra-core";+import { Search } from "lucide-react";+import { TextInput, type TextInputProps } from "@/components/admin";++export const SearchInput = (inProps: SearchInputProps) => {+ const { label, ...rest } = inProps;++ const translate = useTranslate();++ if (label) {+ throw new Error(+ "<SearchInput> isn't designed to be used with a label prop. Use <TextInput> if you need a label.",+ );+ }++ return (+ <div className="flex flex-grow relative mt-auto w-fit">+ <TextInput+ label={false}+ helperText={false}+ placeholder={translate("ra.action.search")}+ {...rest}+ />+ <Search className="absolute right-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none" />+ </div>+ );+};++export type SearchInputProps = TextInputProps;diff --git a/src/components/admin/select-field.tsx b/src/components/admin/select-field.tsxnew file mode 100644index 00000000..ac82dde5--- /dev/null+++ b/src/components/admin/select-field.tsx@@ -0,0 +1,134 @@+import { HTMLAttributes } from "react";+import { ChoicesProps, useChoices, useFieldValue, useTranslate } from "ra-core";++import { FieldProps } from "@/lib/field.type.ts";+import { genericMemo } from "@/lib/genericMemo";++/**+ * Display a value in an enumeration+ *+ * Pass possible options as an array of objects in the 'choices' attribute.+ *+ * @example+ * const choices = [+ * { id: 'M', name: 'Male' },+ * { id: 'F', name: 'Female' },+ * ];+ * <SelectField source="gender" choices={choices} />+ *+ * By default, the text is built by+ * - finding a choice where the 'id' property equals the field value+ * - using the 'name' property as the option text+ *+ * You can also customize the properties to use for the value and text,+ * thanks to the 'optionValue' and 'optionText' attributes.+ *+ * @example+ * const choices = [+ * { _id: 123, full_name: 'Leo Tolstoi', sex: 'M' },+ * { _id: 456, full_name: 'Jane Austen', sex: 'F' },+ * ];+ * <SelectField source="author_id" choices={choices} optionText="full_name" optionValue="_id" />+ *+ * `optionText` also accepts a function, so you can shape the option text at will:+ * @example+ * const choices = [+ * { id: 123, first_name: 'Leo', last_name: 'Tolstoi' },+ * { id: 456, first_name: 'Jane', last_name: 'Austen' },+ * ];+ * const optionRenderer = choice => `${choice.first_name} ${choice.last_name}`;+ * <SelectField source="author_id" choices={choices} optionText={optionRenderer} />+ *+ * `optionText` also accepts a React Element, that can access+ * the related choice through the `useRecordContext` hook. You can use Field components there.+ * @example+ * const choices = [+ * { id: 123, first_name: 'Leo', last_name: 'Tolstoi' },+ * { id: 456, first_name: 'Jane', last_name: 'Austen' },+ * ];+ * const FullNameField = () => {+ * const record = useRecordContext();+ * return (<Chip>{record.first_name} {record.last_name}</Chip>)+ * };+ * <SelectField source="gender" choices={choices} optionText={<FullNameField />}/>+ *+ * The current choice is translated by default, so you can use translation identifiers as choices:+ * @example+ * const choices = [+ * { id: 'M', name: 'myroot.gender.male' },+ * { id: 'F', name: 'myroot.gender.female' },+ * ];+ *+ * However, in some cases (e.g. inside a `<ReferenceField>`), you may not want+ * the choice to be translated. In that case, set the `translateChoice` prop to false.+ * @example+ * <SelectField source="gender" choices={choices} translateChoice={false}/>+ *+ * **Tip**: <ReferenceField> sets `translateChoice` to false by default.+ */+const SelectFieldImpl = <++ RecordType extends Record<string, any> = Record<string, any>,+>(+ props: SelectFieldProps<RecordType>,+) => {+ const {+ className,+ empty,+ choices,+ defaultValue,+ source,+ record,+ optionValue = "id",+ optionText = "name",+ translateChoice = true,+ ...rest+ } = props;+ const value = useFieldValue({ defaultValue, source, record });++ const { getChoiceText, getChoiceValue } = useChoices({+ optionText,+ optionValue,+ translateChoice,+ });+ const translate = useTranslate();++ const choice = choices+ ?+ choices.find((choice: any) => getChoiceValue(choice) === value)+ : null;++ if (!choice) {+ if (!empty) {+ return null;+ }++ return (+ <span className={className} {...rest}>+ {typeof empty === "string" ? translate(empty, { _: empty }) : empty}+ </span>+ );+ }++ const choiceText = getChoiceText(choice);++ return (+ <span className={className} {...rest}>+ {choiceText}+ </span>+ );+};++SelectFieldImpl.displayName = "SelectFieldImpl";++export const SelectField = genericMemo(SelectFieldImpl);++export interface SelectFieldProps<++ RecordType extends Record<string, any> = Record<string, any>,+> extends Omit<+ ChoicesProps,+ "disableValue" | "createValue" | "createHintValue"+ >,+ FieldProps<RecordType>,+ HTMLAttributes<HTMLSpanElement> {}diff --git a/src/components/admin/select-input.tsx b/src/components/admin/select-input.tsxnew file mode 100644index 00000000..05c6b18b--- /dev/null+++ b/src/components/admin/select-input.tsx@@ -0,0 +1,301 @@+import {+ ComponentProps,+ useCallback,+ useEffect,+ type ReactElement,+} from "react";+import {+ FieldTitle,+ InputProps,+ useChoices,+ useChoicesContext,+ useGetRecordRepresentation,+ useInput,+ useTranslate,+ type ChoicesProps,+} from "ra-core";+import { X } from "lucide-react";++import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import { Skeleton } from "@/components/ui/skeleton";+import { cn } from "@/lib/utils";+import {+ SupportCreateSuggestionOptions,+ useSupportCreateSuggestion,+} from "@/hooks/useSupportCreateSuggestion";+import { FormField, FormLabel, FormError } from "@/components/admin/form";+import { InputHelperText } from "@/components/admin/input-helper-text";++export const SelectInput = (props: SelectInputProps) => {+ const {+ choices: choicesProp,+ isLoading: isLoadingProp,+ isFetching: isFetchingProp,+ isPending: isPendingProp,+ resource: resourceProp,+ source: sourceProp,++ optionText,+ optionValue,+ disableValue = "disabled",+ translateChoice,+ createValue,+ createHintValue,++ alwaysOn,+ defaultValue,+ format,+ label,+ helperText,+ name,+ onBlur,+ onChange,+ parse,+ validate,+ readOnly,+ disabled,++ className,+ emptyText = "",+ emptyValue = "",+ filter: _filter,+ create,+ createLabel,+ onCreate,++ ...rest+ } = props;+ const translate = useTranslate();++ useEffect(() => {+ if (emptyValue == null) {+ throw new Error(+ `emptyValue being set to null or undefined is not supported. Use parse to turn the empty string into null.`,+ );+ }+ }, [emptyValue]);++ const {+ allChoices,+ isPending,+ error: fetchError,+ source,+ resource,+ isFromReference,+ } = useChoicesContext({+ choices: choicesProp,+ isLoading: isLoadingProp,+ isFetching: isFetchingProp,+ isPending: isPendingProp,+ resource: resourceProp,+ source: sourceProp,+ });++ if (source === undefined) {+ throw new Error(+ `If you're not wrapping the SelectInput inside a ReferenceInput, you must provide the source prop`,+ );+ }++ if (!isPending && !fetchError && allChoices === undefined) {+ throw new Error(+ `If you're not wrapping the SelectInput inside a ReferenceInput, you must provide the choices prop`,+ );+ }++ const getRecordRepresentation = useGetRecordRepresentation(resource);+ const { getChoiceText, getChoiceValue, getDisableValue } = useChoices({+ optionText:+ optionText ?? (isFromReference ? getRecordRepresentation : undefined),+ optionValue,+ disableValue,+ translateChoice: translateChoice ?? !isFromReference,+ createValue,+ createHintValue,+ });+ const { id, field, isRequired } = useInput({+ alwaysOn,+ defaultValue,+ format,+ label,+ helperText,+ name,+ onBlur,+ onChange,+ parse,+ resource,+ source,+ validate,+ readOnly,+ disabled,+ });++ const renderEmptyItemOption = useCallback(() => {+ return typeof emptyText === "string"+ ? emptyText === ""+ ? " " // em space, forces the display of an empty line of normal height+ : translate(emptyText, { _: emptyText })+ : emptyText;+ }, [emptyText, translate]);++ const renderMenuItemOption = useCallback(++ (choice: any) => getChoiceText(choice),+ [getChoiceText],+ );++ const handleChange = useCallback(+ async (value: string) => {+ if (value === emptyValue) {+ field.onChange(emptyValue);+ } else {+ // Find the choice by value and pass it to field.onChange+ const choice = allChoices?.find(+ (choice) => getChoiceValue(choice) === value,+ );+ field.onChange(choice ? getChoiceValue(choice) : value);+ }+ },+ [field, getChoiceValue, emptyValue, allChoices],+ );++ const {+ getCreateItem,+ handleChange: handleChangeWithCreateSupport,+ createElement,+ } = useSupportCreateSuggestion({+ create,+ createLabel,+ createValue,+ createHintValue,+ onCreate,+ handleChange,+ optionText,+ });++ if (isPending) {+ return (+ <FormField+ id={id}+ name={field.name}+ className={cn("w-full min-w-20", className)}+ >+ {label !== "" && label !== false && (+ <FormLabel>+ <FieldTitle+ label={label}+ source={source}+ resource={resourceProp}+ isRequired={isRequired}+ />+ </FormLabel>+ )}+ <div className="relative">+ <Skeleton className="w-full h-9" />+ </div>+ <InputHelperText helperText={helperText} />+ <FormError />+ </FormField>+ );+ }++ const createItem = create || onCreate ? getCreateItem() : null;+ let finalChoices = fetchError ? [] : allChoices;+ if (create || onCreate) {+ finalChoices = [...finalChoices, createItem];+ }++ // Handle reset functionality+ const handleReset = (e: React.MouseEvent<HTMLDivElement>) => {+ e.stopPropagation();+ field.onChange(emptyValue);+ };++ return (+ <>+ <FormField+ id={id}+ name={field.name}+ className={cn("w-full min-w-20", className)}+ {...rest}+ >+ {label !== "" && label !== false && (+ <FormLabel>+ <FieldTitle+ label={label}+ source={source}+ resource={resourceProp}+ isRequired={isRequired}+ />+ </FormLabel>+ )}+ <div className="relative">+ <Select+ //FIXME https://github.com/radix-ui/primitives/issues/3135+ // Setting a key based on the value fixes an issue where onValueChange+ // was called with an empty string when the controlled value was changed.+ // See: https://github.com/radix-ui/primitives/issues/3135#issuecomment-2916908248+ key={`select:${field.value?.toString() ?? emptyValue}`}+ value={field.value?.toString() || emptyValue}+ onValueChange={handleChangeWithCreateSupport}+ >+ <SelectTrigger+ className={cn("w-full transition-all hover:bg-accent")}+ >+ <SelectValue placeholder={renderEmptyItemOption()} />++ {field.value && field.value !== emptyValue ? (+ <div+ role="button"+ className="p-0 ml-auto pointer-events-auto hover:bg-transparent text-muted-foreground opacity-50 hover:opacity-100"+ onClick={handleReset}+ >+ <X className="h-4 w-4" />+ </div>+ ) : null}+ </SelectTrigger>+ <SelectContent>+ {finalChoices?.map((choice) => {+ if (!choice) return null;+ const value = getChoiceValue(choice);+ const isDisabled = getDisableValue(choice);++ return (+ <SelectItem+ key={value}+ value={value?.toString()}+ disabled={isDisabled}+ >+ {renderMenuItemOption(+ !!createItem && choice?.id === createItem.id+ ? createItem+ : choice,+ )}+ </SelectItem>+ );+ })}+ </SelectContent>+ </Select>+ </div>+ <InputHelperText helperText={helperText} />+ </FormField>+ {createElement}+ </>+ );+};++export type SelectInputProps = ChoicesProps &+ // Source is optional as SelectInput can be used inside a ReferenceInput that already defines the source+ Partial<InputProps> &+ Omit<SupportCreateSuggestionOptions, "handleChange"> & {+ emptyText?: string | ReactElement;++ emptyValue?: any;+ onChange?: (value: string) => void;+ } & Omit<ComponentProps<typeof FormField>, "id" | "name" | "children">;diff --git a/src/components/admin/show-button.tsx b/src/components/admin/show-button.tsxnew file mode 100644index 00000000..e187eaf3--- /dev/null+++ b/src/components/admin/show-button.tsx@@ -0,0 +1,38 @@+import React from "react";+import { Link } from "react-router";+import { buttonVariants } from "@/components/ui/button";+import { Eye } from "lucide-react";+import {+ Translate,+ useCreatePath,+ useRecordContext,+ useResourceContext,+} from "ra-core";++export type ShowButtonProps = { label?: string };++export const ShowButton = (props: ShowButtonProps) => {+ const resource = useResourceContext();+ const record = useRecordContext();+ const createPath = useCreatePath();+ const link = createPath({+ resource,+ type: "show",+ id: record?.id,+ });+ return (+ <Link+ className={buttonVariants({ variant: "outline" })}+ to={link}+ onClick={stopPropagation}+ >+ <Eye />+ <Translate i18nKey={props.label ?? "ra.action.show"}>+ {props.label ?? "Show"}+ </Translate>+ </Link>+ );+};++// useful to prevent click bubbling in a datagrid with rowClick+const stopPropagation = (e: React.MouseEvent) => e.stopPropagation();diff --git a/src/components/admin/show-guesser.tsx b/src/components/admin/show-guesser.tsxnew file mode 100644index 00000000..46f94d49--- /dev/null+++ b/src/components/admin/show-guesser.tsx@@ -0,0 +1,173 @@++import {+ ReactNode,+ useEffect,+ useState,+ isValidElement,+ Children,+} from "react";+import {+ ShowBase,+ InferredElement,+ getElementsFromRecords,+ useResourceContext,+ useShowContext,+ InferredTypeMap,+} from "ra-core";+import { capitalize, singularize } from "inflection";+import { ShowView } from "@/components/admin/show";+import { SimpleShowLayout } from "@/components/admin/simple-show-layout";+import { RecordField } from "@/components/admin/record-field";+import { ReferenceField } from "@/components/admin/reference-field";+import { ArrayField } from "@/components/admin/array-field";+import { BadgeField } from "@/components/admin/badge-field";+import { SingleFieldList } from "@/components/admin/single-field-list";+import { ReferenceArrayField } from "@/components/admin/reference-array-field";++export const ShowGuesser = (props: { enableLog?: boolean }) => (+ <ShowBase>+ <ShowViewGuesser {...props} />+ </ShowBase>+);++const ShowViewGuesser = (props: { enableLog?: boolean }) => {+ const resource = useResourceContext();++ if (!resource) {+ throw new Error(`Cannot use <ShowGuesser> outside of a ResourceContext`);+ }++ const { record } = useShowContext();+ const [child, setChild] = useState<ReactNode>(null);+ const { enableLog = process.env.NODE_ENV === "development", ...rest } = props;++ useEffect(() => {+ setChild(null);+ }, [resource]);++ useEffect(() => {+ if (record && !child) {+ const inferredElements = getElementsFromRecords([record], showFieldTypes);+ const inferredChild = new InferredElement(+ showFieldTypes.show,+ null,+ inferredElements,+ );+ setChild(inferredChild.getElement());++ if (!enableLog) return;++ const representation = inferredChild.getRepresentation();+ const components = ["Show"]+ .concat(+ Array.from(+ new Set(+ Array.from(representation.matchAll(/<([^/\s>]+)/g))+ .map((match) => match[1])+ .filter((component) => component !== "span"),+ ),+ ),+ )+ .sort();+++ console.log(+ `Guessed Show:++${components+ .map(+ (component) =>+ `import { ${component} } from "@/components/admin/${kebabCase(+ component,+ )}";`,+ )+ .join("\n")}++export const ${capitalize(singularize(resource))}Show = () => (+ <Show>+${inferredChild.getRepresentation()}+ </Show>+);`,+ );+ }+ }, [record, child, resource, enableLog]);++ return <ShowView {...rest}>{child}</ShowView>;+};++const showFieldTypes: InferredTypeMap = {+ show: {+ component: (props: any) => <SimpleShowLayout {...props} />,+ representation: (+ _props: any,+ children: { getRepresentation: () => string }[],+ ) => ` <SimpleShowLayout>+${children+ .map((child) => ` ${child.getRepresentation()}`)+ .join("\n")}+ </SimpleShowLayout>`,+ },+ reference: {+ component: (props: any) => (+ <RecordField source={props.source}>+ <ReferenceField source={props.source} reference={props.reference} />+ </RecordField>+ ),+ representation: (props: any) =>+ `<RecordField source="${props.source}">+ <ReferenceField source="${props.source}" reference="${props.reference}" />+ </RecordField>`,+ },+ array: {+ component: ({ children, ...props }: any) => {+ const childrenArray = Children.toArray(children);+ return (+ <RecordField source={props.source}>+ <ArrayField source={props.source}>+ <SingleFieldList>+ <BadgeField+ source={+ childrenArray.length > 0 &&+ isValidElement(childrenArray[0]) &&+ (childrenArray[0].props as any).source+ }+ />+ </SingleFieldList>+ </ArrayField>+ </RecordField>+ );+ },+ representation: (props: any, children: any) =>+ `<RecordField source="${props.source}">+ <ArrayField source="${props.source}">+ <SingleFieldList>+ <BadgeField source="${+ children.length > 0 && children[0].getProps().source+ }" />+ </SingleFieldList>+ </ArrayField>+ </RecordField>`,+ },+ referenceArray: {+ component: (props: any) => (+ <RecordField source={props.source}>+ <ReferenceArrayField {...props} />+ </RecordField>+ ),+ representation: (props: any) =>+ `<RecordField source="${props.source}">+ <ReferenceArrayField source="${props.source}" reference="${props.reference}" />+ </RecordField>`,+ },+ string: {+ component: (props: any) => <RecordField source={props.source} />,+ representation: (props: any) => `<RecordField source="${props.source}" />`,+ },+};++const kebabCase = (name: string) => {+ return name+ .replace(/([a-z])([A-Z])/g, "$1-$2")+ .replace(/([A-Z])([A-Z][a-z])/g, "$1-$2")+ .toLowerCase();+};diff --git a/src/components/admin/show.tsx b/src/components/admin/show.tsxnew file mode 100644index 00000000..c453d955--- /dev/null+++ b/src/components/admin/show.tsx@@ -0,0 +1,100 @@+import {+ Breadcrumb,+ BreadcrumbItem,+ BreadcrumbPage,+} from "@/components/admin/breadcrumb";+import {+ ShowBase,+ Translate,+ useCreatePath,+ useHasDashboard,+ useShowContext,+ useGetRecordRepresentation,+ useGetResourceLabel,+ useResourceContext,+ useResourceDefinition,+} from "ra-core";+import { ReactNode } from "react";+import { Link } from "react-router";+import { EditButton } from "@/components/admin/edit-button";++export const Show = ({+ actions,+ title,+ children,+}: {+ actions?: ReactNode;+ title?: ReactNode | string | false;+ children: ReactNode;+}) => (+ <ShowBase>+ <ShowView title={title} actions={actions}>+ {children}+ </ShowView>+ </ShowBase>+);++export const ShowView = ({+ actions,+ title,+ children,+}: {+ actions?: ReactNode;+ title?: ReactNode | string | false;+ children: ReactNode;+}) => {+ const context = useShowContext();++ const resource = useResourceContext();+ if (!resource) {+ throw new Error(+ "The ShowView component must be used within a ResourceContextProvider",+ );+ }+ const getResourceLabel = useGetResourceLabel();+ const listLabel = getResourceLabel(resource, 2);+ const createPath = useCreatePath();+ const listLink = createPath({+ resource,+ type: "list",+ });++ const getRecordRepresentation = useGetRecordRepresentation(resource);+ const recordRepresentation = getRecordRepresentation(context.record);++ const { hasEdit } = useResourceDefinition({ resource });+ const hasDashboard = useHasDashboard();++ if (context.isLoading || !context.record) {+ return null;+ }++ return (+ <>+ <Breadcrumb>+ {hasDashboard && (+ <BreadcrumbItem>+ <Link to="/">+ <Translate i18nKey="ra.page.dashboard">Home</Translate>+ </Link>+ </BreadcrumbItem>+ )}+ <BreadcrumbItem>+ <Link to={listLink}>{listLabel}</Link>+ </BreadcrumbItem>+ <BreadcrumbPage>{recordRepresentation}</BreadcrumbPage>+ </Breadcrumb>+ <div className="flex justify-between items-start flex-wrap gap-2 my-2">+ <h2 className="text-2xl font-bold tracking-tight">+ {title !== undefined ? title : context.defaultTitle}+ </h2>+ {actions ?? (+ <div className="flex justify-end items-center">+ {hasEdit ? <EditButton /> : null}+ </div>+ )}+ </div>+ <div className="my-2">{children}</div>+ </>+ );+};diff --git a/src/components/admin/simple-form-iterator.tsx b/src/components/admin/simple-form-iterator.tsxnew file mode 100644index 00000000..a9535f25--- /dev/null+++ b/src/components/admin/simple-form-iterator.tsx@@ -0,0 +1,494 @@++import get from "lodash/get";+import {+ FormDataConsumer,+ type RaRecord,+ RecordContextProvider,+ SourceContextProvider,+ useRecordContext,+ useResourceContext,+ useSourceContext,+ useTranslate,+ useWrappedSource,+} from "ra-core";+import * as React from "react";+import {+ Children,+ type ReactElement,+ ReactNode,+ useCallback,+ useMemo,+ useRef,+ useState,+} from "react";+import { type UseFieldArrayReturn, useFormContext } from "react-hook-form";+import {+ ArrowDownCircle,+ ArrowUpCircle,+ PlusCircle,+ Trash,+ XCircle,+} from "lucide-react";+import { cn } from "@/lib/utils";+import { Button } from "@/components/ui/button";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import {+ ArrayInputContextValue,+ useArrayInput,+} from "@/hooks/array-input-context";+import {+ SimpleFormIteratorContext,+ useSimpleFormIterator,+ SimpleFormIteratorItemContext,+ SimpleFormIteratorItemContextValue,+ useSimpleFormIteratorItem,+} from "@/hooks/simple-form-iterator-context";+import { Confirm } from "@/components/admin/confirm";+import { IconButtonWithTooltip } from "@/components/admin/icon-button-with-tooltip.tsx";++type GetItemLabelFunc = (index: number) => string | ReactElement;++export const SimpleFormIterator = (props: SimpleFormIteratorProps) => {+ const {+ addButton = defaultAddItemButton,+ removeButton,+ reOrderButtons,+ children,+ className,+ resource,+ disabled,+ disableAdd = false,+ disableClear,+ disableRemove = false,+ disableReordering,+ inline,+ getItemLabel = false,+ } = props;++ const finalSource = useWrappedSource("");+ if (!finalSource) {+ throw new Error(+ "SimpleFormIterator can only be called within an iterator input like ArrayInput",+ );+ }++ const [confirmIsOpen, setConfirmIsOpen] = useState<boolean>(false);+ const { append, fields, move, remove, replace } = useArrayInput(props);+ const { trigger, getValues } = useFormContext();+ const translate = useTranslate();+ const record = useRecordContext(props);+ const initialDefaultValue = useRef({});++ const removeField = useCallback(+ (index: number) => {+ remove(index);+ const isScalarArray = getValues(finalSource).every(+ (value: any) => typeof value !== "object",+ );+ if (isScalarArray) {+ // Trigger validation on the Array to avoid ghost errors.+ // Otherwise, validation errors on removed fields might still be displayed+ trigger(finalSource);+ }+ },+ [remove, trigger, finalSource, getValues],+ );++ if (fields.length > 0) {+ const { id: _id, ...rest } = fields[0];+ initialDefaultValue.current = rest;+ for (const k in initialDefaultValue.current) {+ // @ts-expect-error: reset fields+ initialDefaultValue.current[k] = null;+ }+ }++ const addField = useCallback(+ (item: any = undefined) => {+ let defaultValue = item;+ if (item == null) {+ defaultValue = initialDefaultValue.current;+ if (+ Children.count(children) === 1 &&+ React.isValidElement(Children.only(children)) &&+ // @ts-expect-error: Check if the child has a source prop+ !Children.only(children).props.source &&+ // Make sure it's not a FormDataConsumer+ // @ts-expect-error: Check if the child is a FormDataConsumer+ Children.only(children).type !== FormDataConsumer+ ) {+ // ArrayInput used for an array of scalar values+ // (e.g. tags: ['foo', 'bar'])+ defaultValue = "";+ } else {+ // ArrayInput used for an array of objects+ // (e.g. authors: [{ firstName: 'John', lastName: 'Doe' }, { firstName: 'Jane', lastName: 'Doe' }])+ defaultValue = defaultValue || ({} as Record<string, unknown>);+ Children.forEach(children, (input) => {+ if (+ React.isValidElement(input) &&+ input.type !== FormDataConsumer &&+ // @ts-expect-error: Check if the child has a source prop+ input.props.source+ ) {+ // @ts-expect-error: Check if the child has a source prop+ defaultValue[input.props.source] =+ // @ts-expect-error: Check if the child has a source prop+ input.props.defaultValue ?? null;+ }+ });+ }+ }+ append(defaultValue);+ },+ [append, children],+ );++ const handleReorder = useCallback(+ (origin: number, destination: number) => {+ move(origin, destination);+ },+ [move],+ );++ const handleArrayClear = useCallback(() => {+ replace([]);+ setConfirmIsOpen(false);+ }, [replace]);++ const records = get(record, finalSource);++ const context = useMemo(+ () => ({+ total: fields.length,+ add: addField,+ remove: removeField,+ reOrder: handleReorder,+ source: finalSource,+ }),+ [addField, fields.length, handleReorder, removeField, finalSource],+ );+ return fields ? (+ <SimpleFormIteratorContext.Provider value={context}>+ <div className={cn("w-full", disabled && "disabled", className)}>+ <ul className="p-0 m-0 flex flex-col gap-2">+ {fields.map((member, index) => (+ <SimpleFormIteratorItem+ key={member.id}+ disabled={disabled}+ disableRemove={disableRemove}+ disableReordering={disableReordering}+ fields={fields}+ getItemLabel={getItemLabel}+ index={index}+ onRemoveField={removeField}+ onReorder={handleReorder}+ record={(records && records[index]) || {}}+ removeButton={removeButton}+ reOrderButtons={reOrderButtons}+ resource={resource}+ inline={inline}+ >+ {children}+ </SimpleFormIteratorItem>+ ))}+ </ul>+ {!disabled && !(disableAdd && (disableClear || disableRemove)) && (+ <div className="flex flex-row items-center gap-2">+ {!disableAdd && addButton}+ {fields.length > 0 && !disableClear && !disableRemove && (+ <>+ <Confirm+ isOpen={confirmIsOpen}+ title={translate("ra.action.clear_array_input")}+ content={translate("ra.message.clear_array_input")}+ onConfirm={handleArrayClear}+ onClose={() => setConfirmIsOpen(false)}+ />+ <ClearArrayButton onClick={() => setConfirmIsOpen(true)} />+ </>+ )}+ </div>+ )}+ </div>+ </SimpleFormIteratorContext.Provider>+ ) : null;+};++export interface SimpleFormIteratorProps extends Partial<UseFieldArrayReturn> {+ addButton?: ReactElement;+ children?: ReactElement | ReactElement[];+ className?: string;+ readOnly?: boolean;+ disabled?: boolean;+ disableAdd?: boolean;+ disableClear?: boolean;+ disableRemove?: boolean | DisableRemoveFunction;+ disableReordering?: boolean;+ fullWidth?: boolean;+ getItemLabel?: boolean | GetItemLabelFunc;+ inline?: boolean;+ meta?: {+ // the type defined in FieldArrayRenderProps says error is boolean, which is wrong.+ error?: any;+ submitFailed?: boolean;+ };+ record?: RaRecord;+ removeButton?: ReactElement;+ reOrderButtons?: ReactElement;+ resource?: string;+ source?: string;+}++export const SimpleFormIteratorItem = React.forwardRef(+ (+ props: SimpleFormIteratorItemProps,+ ref: React.ForwardedRef<HTMLLIElement>,+ ) => {+ const {+ children,+ disabled,+ disableReordering,+ disableRemove,+ getItemLabel,+ index,+ inline,+ record,+ removeButton = defaultRemoveItemButton,+ reOrderButtons = defaultReOrderButtons,+ } = props;+ const resource = useResourceContext(props);+ if (!resource) {+ throw new Error(+ "SimpleFormIteratorItem must be used in a ResourceContextProvider or be passed a resource prop.",+ );+ }+ const { total, reOrder, remove } = useSimpleFormIterator();+ // Returns a boolean to indicate whether to disable the remove button for certain fields.+ // If disableRemove is a function, then call the function with the current record to+ // determining if the button should be disabled. Otherwise, use a boolean property that+ // enables or disables the button for all of the fields.+ const disableRemoveField = (record: RaRecord) => {+ if (typeof disableRemove === "boolean") {+ return disableRemove;+ }+ return disableRemove && disableRemove(record);+ };++ const context = useMemo<SimpleFormIteratorItemContextValue>(+ () => ({+ index,+ total,+ reOrder: (newIndex) => reOrder(index, newIndex),+ remove: () => remove(index),+ }),+ [index, total, reOrder, remove],+ );++ const label =+ typeof getItemLabel === "function" ? getItemLabel(index) : getItemLabel;++ const parentSourceContext = useSourceContext();+ const sourceContext = useMemo(+ () => ({+ getSource: (source: string) => {+ if (!source) {+ // source can be empty for scalar values, e.g.+ // <ArrayInput source="tags" /> => SourceContext is "tags"+ // <SimpleFormIterator> => SourceContext is "tags.0"+ // <TextInput /> => use its parent's getSource so finalSource = "tags.0"+ // </SimpleFormIterator>+ // </ArrayInput>+ return parentSourceContext.getSource(`${index}`);+ } else {+ // Normal input with source, e.g.+ // <ArrayInput source="orders" /> => SourceContext is "orders"+ // <SimpleFormIterator> => SourceContext is "orders.0"+ // <DateInput source="date" /> => use its parent's getSource so finalSource = "orders.0.date"+ // </SimpleFormIterator>+ // </ArrayInput>+ return parentSourceContext.getSource(`${index}.${source}`);+ }+ },+ getLabel: (source: string) => {+ // <ArrayInput source="orders" /> => LabelContext is "orders"+ // <SimpleFormIterator> => LabelContext is ALSO "orders"+ // <DateInput source="date" /> => use its parent's getLabel so finalLabel = "orders.date"+ // </SimpleFormIterator>+ // </ArrayInput>+ //+ // we don't prefix with the index to avoid that translation keys contain it+ return parentSourceContext.getLabel(source);+ },+ }),+ [index, parentSourceContext],+ );++ return (+ <SimpleFormIteratorItemContext.Provider value={context}>+ <li+ ref={ref}+ className={cn(+ "flex flex-row items-start justify-between gap-2 pb-2 border-b border-border last:border-b-0",+ // Align the buttons with the input+ "[&:has(label)>.simple-form-iterator-item-actions]:pt-10",+ )}+ >+ {label != null && label !== false && (+ <p className="text-sm text-muted-foreground mb-2">{label}</p>+ )}+ <SourceContextProvider value={sourceContext}>+ <RecordContextProvider value={record}>+ <div+ className={cn(+ "flex flex-1 gap-2",+ inline ? "flex-col sm:flex-row gap-2" : "flex-col",+ )}+ >+ {children}+ </div>+ </RecordContextProvider>+ </SourceContextProvider>+ {!disabled && (+ <div className="simple-form-iterator-item-actions flex flex-row h-9 items-center gap-1">+ {!disableReordering && reOrderButtons}+ {!disableRemoveField(record) && removeButton}+ </div>+ )}+ </li>+ </SimpleFormIteratorItemContext.Provider>+ );+ },+);++export type DisableRemoveFunction = (record: RaRecord) => boolean;++export type SimpleFormIteratorItemProps = Partial<ArrayInputContextValue> & {+ children?: ReactNode;+ disabled?: boolean;+ disableRemove?: boolean | DisableRemoveFunction;+ disableReordering?: boolean;+ getItemLabel?: boolean | GetItemLabelFunc;+ index: number;+ inline?: boolean;+ onRemoveField: (index: number) => void;+ onReorder: (origin: number, destination: number) => void;+ record: RaRecord;+ removeButton?: ReactElement;+ reOrderButtons?: ReactElement;+ resource?: string;+ source?: string;+};++export const AddItemButton = (props: React.ComponentProps<"button">) => {+ const { add, source } = useSimpleFormIterator();+ const { className, ...rest } = props;+ const translate = useTranslate();+ return (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ type="button"+ variant="ghost"+ size="icon"+ onClick={() => add()}+ className={cn("button-add", `button-add-${source}`, className)}+ {...rest}+ >+ <PlusCircle className="h-5 w-5" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>{translate("ra.action.add")}</TooltipContent>+ </Tooltip>+ </TooltipProvider>+ );+};++export const ReOrderButtons = ({ className }: { className?: string }) => {+ const { index, total, reOrder } = useSimpleFormIteratorItem();+ const { source } = useSimpleFormIterator();++ return (+ <span+ className={cn(+ "button-reorder",+ `button-reorder-${source}-${index}`,+ className,+ )}+ >+ <IconButtonWithTooltip+ label="ra.action.move_up"+ onClick={() => reOrder(index - 1)}+ disabled={index <= 0}+ >+ <ArrowUpCircle className="h-4 w-4" />+ </IconButtonWithTooltip>+ <IconButtonWithTooltip+ label="ra.action.move_down"+ onClick={() => reOrder(index + 1)}+ disabled={total == null || index >= total - 1}+ >+ <ArrowDownCircle className="h-4 w-4" />+ </IconButtonWithTooltip>+ </span>+ );+};++export const ClearArrayButton = (props: React.ComponentProps<"button">) => {+ const translate = useTranslate();+ return (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button type="button" variant="ghost" size="icon" {...props}>+ <Trash className="h-5 w-5 text-red-500" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ {translate("ra.action.clear_array_input")}+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ );+};++export const RemoveItemButton = (props: React.ComponentProps<"button">) => {+ const { remove, index } = useSimpleFormIteratorItem();+ const { source } = useSimpleFormIterator();+ const { className, ...rest } = props;+ const translate = useTranslate();++ return (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ type="button"+ variant="ghost"+ size="icon"+ onClick={() => remove()}+ className={cn(+ "button-remove",+ `button-remove-${source}-${index}`,+ className,+ )}+ {...rest}+ >+ <XCircle className="h-5 w-5 text-red-500" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>{translate("ra.action.remove")}</TooltipContent>+ </Tooltip>+ </TooltipProvider>+ );+};++const defaultAddItemButton = <AddItemButton />;+const defaultRemoveItemButton = <RemoveItemButton />;+const defaultReOrderButtons = <ReOrderButtons />;diff --git a/src/components/admin/simple-form.tsx b/src/components/admin/simple-form.tsxnew file mode 100644index 00000000..c3c2c7ac--- /dev/null+++ b/src/components/admin/simple-form.tsx@@ -0,0 +1,55 @@+import * as React from "react";+import { Children, ReactNode } from "react";+import { Form, type FormProps } from "ra-core";+import { cn } from "@/lib/utils";+import { CancelButton, SaveButton } from "@/components/admin";++export const SimpleForm = ({+ children,+ className,+ toolbar = defaultFormToolbar,+ ...rest+}: {+ children: ReactNode;+ className?: string;+ toolbar?: ReactNode;+} & FormProps) => (+ <Form+ className={cn(`flex flex-col gap-4 w-full max-w-lg`, className)}+ {...rest}+ >+ {children}+ {toolbar}+ </Form>+);++export const FormToolbar = ({+ children,+ className,+ ...rest+}: FormToolbarProps) => (+ <div+ {...rest}+ className={cn(+ "sticky pt-4 pb-4 md:block md:pt-2 md:pb-0 bottom-0 bg-linear-to-b from-transparent to-background to-10%",+ className,+ )}+ role="toolbar"+ >+ {Children.count(children) === 0 ? (+ <div className="flex flex-row gap-2 justify-end">+ <CancelButton />+ <SaveButton />+ </div>+ ) : (+ children+ )}+ </div>+);++export interface FormToolbarProps extends React.HTMLAttributes<HTMLDivElement> {+ children?: ReactNode;+ className?: string;+}++const defaultFormToolbar = <FormToolbar />;diff --git a/src/components/admin/simple-show-layout.tsx b/src/components/admin/simple-show-layout.tsxnew file mode 100644index 00000000..660409ec--- /dev/null+++ b/src/components/admin/simple-show-layout.tsx@@ -0,0 +1,7 @@+import { ReactNode } from "react";++export const SimpleShowLayout = ({children}: {children: ReactNode}) => (+ <div className="flex flex-col gap-4">+ {children}+ </div>+)\ No newline at end of filediff --git a/src/components/admin/single-field-list.tsx b/src/components/admin/single-field-list.tsxnew file mode 100644index 00000000..608d043a--- /dev/null+++ b/src/components/admin/single-field-list.tsx@@ -0,0 +1,35 @@+import {+ RecordContextProvider,+ RecordRepresentation,+ useListContext,+} from "ra-core";+import { Badge } from "@/components/ui/badge";+++export const SingleFieldList = <RecordType = any,>({+ children,+ render,+ className,+}: {+ children?: React.ReactNode;+ render?: (record: RecordType, index: number) => React.ReactNode;+ className?: string;+}) => {+ const { data } = useListContext();++ return (+ <div className={`flex gap-2 ${className}`}>+ {data?.map((record, index) => (+ <RecordContextProvider key={index} value={record}>+ {render ? render(record, index) : children || <DefaultChildren />}+ </RecordContextProvider>+ ))}+ </div>+ );+};++const DefaultChildren = () => (+ <Badge variant="outline">+ <RecordRepresentation />+ </Badge>+);diff --git a/src/components/admin/sort-button.tsx b/src/components/admin/sort-button.tsxnew file mode 100644index 00000000..a29c3dbe--- /dev/null+++ b/src/components/admin/sort-button.tsx@@ -0,0 +1,129 @@+import * as React from "react";+import { memo } from "react";+import { ArrowUpDown, ChevronDown } from "lucide-react";+import {+ shallowEqual,+ useListSortContext,+ useTranslate,+ useTranslateLabel,+} from "ra-core";+import { useIsMobile } from "@/hooks/use-mobile";+import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";++type ButtonProps = React.ComponentProps<typeof Button>;++const SortButtonComponent = (props: SortButtonProps) => {+ const {+ fields,+ label = "ra.sort.sort_by",+ icon = defaultIcon,+ resource: resourceProp,+ ...rest+ } = props;+ const { resource: resourceFromContext, sort, setSort } = useListSortContext();+ const resource = resourceProp || resourceFromContext;+ const translate = useTranslate();+ const translateLabel = useTranslateLabel();+ const isMobile = useIsMobile();+ const [open, setOpen] = React.useState(false);++ const handleChangeSort = (field: string) => {+ setSort({+ field,+ order: field === sort.field ? inverseOrder(sort.order) : "ASC",+ });+ setOpen(false);+ };++ const fieldLabel = translateLabel({+ resource,+ source: sort.field,+ });+ const buttonLabel = translate(label, {+ field: fieldLabel,+ field_lower_first:+ typeof fieldLabel === "string"+ ? fieldLabel.charAt(0).toLowerCase() + fieldLabel.slice(1)+ : undefined,+ order: translate(`ra.sort.${sort.order}`),+ _: label,+ });++ return (+ <DropdownMenu open={open} onOpenChange={setOpen}>+ {isMobile ? (+ <TooltipProvider>+ <Tooltip>+ <DropdownMenuTrigger asChild>+ <TooltipTrigger asChild>+ <Button+ variant="outline"+ size="icon"+ aria-label={buttonLabel}+ {...rest}+ >+ {icon}+ </Button>+ </TooltipTrigger>+ </DropdownMenuTrigger>+ <TooltipContent>+ <p>{buttonLabel}</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ ) : (+ <DropdownMenuTrigger asChild>+ <Button variant="outline" size="sm" className="h-9" {...rest}>+ {icon}+ <span className="ml-2">{buttonLabel}</span>+ <ChevronDown className="ml-2 h-4 w-4" />+ </Button>+ </DropdownMenuTrigger>+ )}+ <DropdownMenuContent align="start">+ {fields.map((field) => (+ <DropdownMenuItem key={field} onClick={() => handleChangeSort(field)}>+ {translateLabel({+ resource,+ source: field,+ })}{" "}+ {translate(+ `ra.sort.${+ sort.field === field ? inverseOrder(sort.order) : "ASC"+ }`,+ )}+ </DropdownMenuItem>+ ))}+ </DropdownMenuContent>+ </DropdownMenu>+ );+};++const defaultIcon = <ArrowUpDown className="h-4 w-4" />;++const inverseOrder = (sort: string) => (sort === "ASC" ? "DESC" : "ASC");+++const arePropsEqual = (prevProps: any, nextProps: any) =>+ shallowEqual(prevProps.fields, nextProps.fields);++export interface SortButtonProps extends ButtonProps {+ fields: string[];+ icon?: React.ReactNode;+ label?: string;+ resource?: string;+}++export const SortButton = memo(SortButtonComponent, arePropsEqual);diff --git a/src/components/admin/spinner.tsx b/src/components/admin/spinner.tsxnew file mode 100644index 00000000..aa760a4f--- /dev/null+++ b/src/components/admin/spinner.tsx@@ -0,0 +1,42 @@+import { cn } from "@/lib/utils";+import { VariantProps, cva } from "class-variance-authority";+import { Loader2 } from "lucide-react";++const spinnerVariants = cva("flex-col items-center justify-center", {+ variants: {+ show: {+ true: "flex",+ false: "hidden",+ },+ },+ defaultVariants: {+ show: true,+ },+});++const loaderVariants = cva("animate-spin text-primary", {+ variants: {+ size: {+ small: "size-6",+ medium: "size-8",+ large: "size-12",+ },+ },+ defaultVariants: {+ size: "medium",+ },+});++interface SpinnerContentProps+ extends VariantProps<typeof spinnerVariants>,+ VariantProps<typeof loaderVariants> {+ className?: string;+}++export function Spinner({ size, show, className }: SpinnerContentProps) {+ return (+ <span className={spinnerVariants({ show })}>+ <Loader2 className={cn(loaderVariants({ size }), className)} />+ </span>+ );+}diff --git a/src/components/admin/text-field.tsx b/src/components/admin/text-field.tsxnew file mode 100644index 00000000..539f2698--- /dev/null+++ b/src/components/admin/text-field.tsx@@ -0,0 +1,29 @@+import { HTMLAttributes } from "react";+import { RaRecord, useFieldValue, useTranslate } from "ra-core";+import { FieldProps } from "@/lib/field.type.ts";++export const TextField = <RecordType extends RaRecord = RaRecord>({+ defaultValue,+ source,+ record,+ empty,+ resource: _,+ ...rest+}: TextFieldProps<RecordType>) => {+ const value = useFieldValue({ defaultValue, source, record });+ const translate = useTranslate();+ return (+ <span {...rest}>+ {value != null && typeof value !== "string"+ ? value.toString()+ : (value ??+ (empty && typeof empty === "string"+ ? translate(empty, { _: empty })+ : empty))}+ </span>+ );+};++export interface TextFieldProps<RecordType extends RaRecord = RaRecord>+ extends FieldProps<RecordType>,+ HTMLAttributes<HTMLSpanElement> {}diff --git a/src/components/admin/text-input.tsx b/src/components/admin/text-input.tsxnew file mode 100644index 00000000..b08e584a--- /dev/null+++ b/src/components/admin/text-input.tsx@@ -0,0 +1,59 @@+import {+ type InputProps,+ useInput,+ useResourceContext,+ FieldTitle,+} from "ra-core";+import {+ FormControl,+ FormError,+ FormField,+ FormLabel,+} from "@/components/admin/form";+import { cn } from "@/lib/utils.ts";+import { Input } from "@/components/ui/input";+import { Textarea } from "@/components/ui/textarea";+import { InputHelperText } from "@/components/admin/input-helper-text";++export type TextInputProps = InputProps & {+ multiline?: boolean;+} & React.ComponentProps<"textarea"> &+ React.ComponentProps<"input">;++export const TextInput = (props: TextInputProps) => {+ const resource = useResourceContext(props);+ const {+ label,+ source,+ multiline,+ className,+ validate: _validateProp,+ format: _formatProp,+ ...rest+ } = props;+ const { id, field, isRequired } = useInput(props);++ return (+ <FormField id={id} className={cn(className, "w-full")} name={field.name}>+ {label !== false && (+ <FormLabel>+ <FieldTitle+ label={label}+ source={source}+ resource={resource}+ isRequired={isRequired}+ />+ </FormLabel>+ )}+ <FormControl>+ {multiline ? (+ <Textarea {...rest} {...field} />+ ) : (+ <Input {...rest} {...field} />+ )}+ </FormControl>+ <InputHelperText helperText={props.helperText} />+ <FormError />+ </FormField>+ );+};diff --git a/src/components/admin/theme-mode-toggle.tsx b/src/components/admin/theme-mode-toggle.tsxnew file mode 100644index 00000000..bea6a7a6--- /dev/null+++ b/src/components/admin/theme-mode-toggle.tsx@@ -0,0 +1,40 @@+import { Check, Moon, Sun } from "lucide-react";+import { Button } from "@/components/ui/button";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { cn } from "@/lib/utils";+import { useTheme } from "@/components/admin/theme-provider";++export function ThemeModeToggle() {+ const { theme, setTheme } = useTheme();++ return (+ <DropdownMenu modal={false}>+ <DropdownMenuTrigger asChild>+ <Button variant="ghost" size="icon" className="hidden sm:inline-flex">+ <Sun className="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />+ <Moon className="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />+ <span className="sr-only">Toggle theme</span>+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end">+ <DropdownMenuItem onClick={() => setTheme("light")}>+ Light+ <Check className={cn("ml-auto", theme !== "light" && "hidden")} />+ </DropdownMenuItem>+ <DropdownMenuItem onClick={() => setTheme("dark")}>+ Dark+ <Check className={cn("ml-auto", theme !== "dark" && "hidden")} />+ </DropdownMenuItem>+ <DropdownMenuItem onClick={() => setTheme("system")}>+ System+ <Check className={cn("ml-auto", theme !== "system" && "hidden")} />+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ );+}diff --git a/src/components/admin/theme-provider.tsx b/src/components/admin/theme-provider.tsxnew file mode 100644index 00000000..b115b140--- /dev/null+++ b/src/components/admin/theme-provider.tsx@@ -0,0 +1,69 @@+import { createContext, useContext, useEffect } from "react";+import { useStore } from "ra-core";++type Theme = "dark" | "light" | "system";++type ThemeProviderProps = {+ children: React.ReactNode;+ defaultTheme?: Theme;+ storageKey?: string;+};++type ThemeProviderState = {+ theme: Theme;+ setTheme: (theme: Theme) => void;+};++const initialState: ThemeProviderState = {+ theme: "system",+ setTheme: () => null,+};++const ThemeProviderContext = createContext<ThemeProviderState>(initialState);++export function ThemeProvider({+ children,+ defaultTheme = "system",+ storageKey = "shadcn-admin-kit-theme",+ ...props+}: ThemeProviderProps) {+ const [theme, setTheme] = useStore<Theme>(storageKey, defaultTheme);++ useEffect(() => {+ const root = window.document.documentElement;++ root.classList.remove("light", "dark");++ if (theme === "system") {+ const systemTheme = window.matchMedia("(prefers-color-scheme: dark)")+ .matches+ ? "dark"+ : "light";++ root.classList.add(systemTheme);+ return;+ }++ root.classList.add(theme);+ }, [theme]);++ const value = {+ theme,+ setTheme,+ };++ return (+ <ThemeProviderContext.Provider {...props} value={value}>+ {children}+ </ThemeProviderContext.Provider>+ );+}++export const useTheme = () => {+ const context = useContext(ThemeProviderContext);++ if (context === undefined)+ throw new Error("useTheme must be used within a ThemeProvider");++ return context;+};diff --git a/src/components/admin/toggle-filter-button.tsx b/src/components/admin/toggle-filter-button.tsxnew file mode 100644index 00000000..d0fa773e--- /dev/null+++ b/src/components/admin/toggle-filter-button.tsx@@ -0,0 +1,60 @@++import React from "react";+import { cn } from "@/lib/utils";+import { Button } from "@/components/ui/button";+import { useListContext, useTranslate } from "ra-core";+import matches from "lodash/matches";+import pickBy from "lodash/pickBy";+import { CircleX } from "lucide-react";++export const ToggleFilterButton = ({+ label,+ size = "sm",+ value,+ className,+}: {+ label: React.ReactElement | string;+ value: any;+ className?: string;+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;+}) => {+ const { filterValues, setFilters } = useListContext();+ const translate = useTranslate();+ const isSelected = getIsSelected(value, filterValues);+ const handleClick = () => setFilters(toggleFilter(value, filterValues));+ return (+ <Button+ variant={isSelected ? "secondary" : "ghost"}+ onClick={handleClick}+ className={cn(+ "cursor-pointer",+ "flex flex-row items-center gap-2 px-2.5",+ className,+ )}+ size={size}+ >+ {typeof label === "string" ? translate(label, { _: label }) : label}+ {isSelected && <CircleX className="opacity-50" />}+ </Button>+ );+};++const toggleFilter = (value: any, filters: any) => {+ const isSelected = matches(+ pickBy(value, (val) => typeof val !== "undefined"),+ )(filters);++ if (isSelected) {+ const keysToRemove = Object.keys(value);+ return Object.keys(filters).reduce(+ (acc, key) =>+ keysToRemove.includes(key) ? acc : { ...acc, [key]: filters[key] },+ {},+ );+ }++ return { ...filters, ...value };+};++const getIsSelected = (value: any, filters: any) =>+ matches(pickBy(value, (val) => typeof val !== "undefined"))(filters);diff --git a/src/components/admin/url-field.tsx b/src/components/admin/url-field.tsxnew file mode 100644index 00000000..f0afed78--- /dev/null+++ b/src/components/admin/url-field.tsx@@ -0,0 +1,59 @@+import { useFieldValue, useTranslate } from "ra-core";+import React, { AnchorHTMLAttributes } from "react";++import { cn } from "@/lib/utils";+import { genericMemo } from "@/lib/genericMemo";+import { FieldProps } from "@/lib/field.type";++const UrlFieldImpl = <++ RecordType extends Record<string, any> = Record<string, any>,+>(+ inProps: UrlFieldProps<RecordType>,+) => {+ const {+ empty,+ className,+ defaultValue,+ source,+ record,+ resource: _,+ ...rest+ } = inProps;+ const value = useFieldValue({ defaultValue, source, record });+ const translate = useTranslate();++ if (value == null) {+ return (+ <span className={className} {...rest}>+ {empty && typeof empty === "string"+ ? translate(empty, { _: empty })+ : empty}+ </span>+ );+ }++ return (+ <a+ className={cn("underline hover:no-underline", className)}+ href={value}+ onClick={stopPropagation}+ {...rest}+ >+ {value}+ </a>+ );+};+UrlFieldImpl.displayName = "UrlFieldImpl";++export const UrlField = genericMemo(UrlFieldImpl);++export interface UrlFieldProps<++ RecordType extends Record<string, any> = Record<string, any>,+> extends FieldProps<RecordType>,+ AnchorHTMLAttributes<HTMLAnchorElement> {}++// useful to prevent click bubbling in a DataTable with rowClick+const stopPropagation = (e: React.MouseEvent<HTMLAnchorElement>) =>+ e.stopPropagation();diff --git a/src/components/admin/user-menu.tsx b/src/components/admin/user-menu.tsxnew file mode 100644index 00000000..081d4dfd--- /dev/null+++ b/src/components/admin/user-menu.tsx@@ -0,0 +1,70 @@+import { Children, useCallback, useState } from "react";+import { Translate, useAuthProvider, useGetIdentity, useLogout } from "ra-core";+import { LogOut } from "lucide-react";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuLabel,+ DropdownMenuSeparator,+ DropdownMenuTrigger,+} from "@/components/ui/dropdown-menu";+import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";+import { Button } from "@/components/ui/button";+import { UserMenuContext } from "@/hooks/user-menu-context.tsx";++export type UserMenuProps = {+ children?: React.ReactNode;+};++export function UserMenu({ children }: UserMenuProps) {+ const authProvider = useAuthProvider();+ const { data: identity } = useGetIdentity();+ const logout = useLogout();++ const [open, setOpen] = useState(false);++ const handleToggleOpen = useCallback(() => {+ setOpen((prevOpen) => !prevOpen);+ }, []);++ const handleClose = useCallback(() => {+ setOpen(false);+ }, []);++ if (!authProvider) return null;++ return (+ <UserMenuContext.Provider value={{ onClose: handleClose }}>+ <DropdownMenu open={open} onOpenChange={handleToggleOpen}>+ <DropdownMenuTrigger asChild>+ <Button+ variant="ghost"+ className="relative h-8 w-8 ml-2 rounded-full"+ >+ <Avatar className="h-8 w-8">+ <AvatarImage src={identity?.avatar} role="presentation" />+ <AvatarFallback>{identity?.fullName?.charAt(0)}</AvatarFallback>+ </Avatar>+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent className="w-56" align="end" forceMount>+ <DropdownMenuLabel className="font-normal">+ <div className="flex flex-col space-y-1">+ <p className="text-sm font-medium leading-none">+ {identity?.fullName}+ </p>+ </div>+ </DropdownMenuLabel>+ <DropdownMenuSeparator />+ {children}+ {Children.count(children) > 0 && <DropdownMenuSeparator />}+ <DropdownMenuItem onClick={() => logout()} className="cursor-pointer">+ <LogOut />+ <Translate i18nKey="ra.auth.logout">Log out</Translate>+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </UserMenuContext.Provider>+ );+}diff --git a/src/components/supabase/forgot-password-page.tsx b/src/components/supabase/forgot-password-page.tsxnew file mode 100644index 00000000..ef19e4eb--- /dev/null+++ b/src/components/supabase/forgot-password-page.tsx@@ -0,0 +1,5 @@+export function ForgotPasswordPage() {+ return null;+}++ForgotPasswordPage.path = "forgot-password";diff --git a/src/components/supabase/set-password-page.tsx b/src/components/supabase/set-password-page.tsxnew file mode 100644index 00000000..61cc2e0f--- /dev/null+++ b/src/components/supabase/set-password-page.tsx@@ -0,0 +1,5 @@+export function SetPasswordPage() {+ return null;+}++SetPasswordPage.path = "set-password";diff --git a/src/components/ui/accordion.tsx b/src/components/ui/accordion.tsxnew file mode 100644index 00000000..d21b65f7--- /dev/null+++ b/src/components/ui/accordion.tsx@@ -0,0 +1,64 @@+import * as React from "react"+import * as AccordionPrimitive from "@radix-ui/react-accordion"+import { ChevronDownIcon } from "lucide-react"++import { cn } from "@/lib/utils"++function Accordion({+ ...props+}: React.ComponentProps<typeof AccordionPrimitive.Root>) {+ return <AccordionPrimitive.Root data-slot="accordion" {...props} />+}++function AccordionItem({+ className,+ ...props+}: React.ComponentProps<typeof AccordionPrimitive.Item>) {+ return (+ <AccordionPrimitive.Item+ data-slot="accordion-item"+ className={cn("border-b last:border-b-0", className)}+ {...props}+ />+ )+}++function AccordionTrigger({+ className,+ children,+ ...props+}: React.ComponentProps<typeof AccordionPrimitive.Trigger>) {+ return (+ <AccordionPrimitive.Header className="flex">+ <AccordionPrimitive.Trigger+ data-slot="accordion-trigger"+ className={cn(+ "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",+ className+ )}+ {...props}+ >+ {children}+ <ChevronDownIcon className="text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" />+ </AccordionPrimitive.Trigger>+ </AccordionPrimitive.Header>+ )+}++function AccordionContent({+ className,+ children,+ ...props+}: React.ComponentProps<typeof AccordionPrimitive.Content>) {+ return (+ <AccordionPrimitive.Content+ data-slot="accordion-content"+ className="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"+ {...props}+ >+ <div className={cn("pt-0 pb-4", className)}>{children}</div>+ </AccordionPrimitive.Content>+ )+}++export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }diff --git a/src/components/ui/alert.tsx b/src/components/ui/alert.tsxnew file mode 100644index 00000000..14213546--- /dev/null+++ b/src/components/ui/alert.tsx@@ -0,0 +1,66 @@+import * as React from "react"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const alertVariants = cva(+ "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",+ {+ variants: {+ variant: {+ default: "bg-card text-card-foreground",+ destructive:+ "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ }+)++function Alert({+ className,+ variant,+ ...props+}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {+ return (+ <div+ data-slot="alert"+ role="alert"+ className={cn(alertVariants({ variant }), className)}+ {...props}+ />+ )+}++function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="alert-title"+ className={cn(+ "col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",+ className+ )}+ {...props}+ />+ )+}++function AlertDescription({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="alert-description"+ className={cn(+ "text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",+ className+ )}+ {...props}+ />+ )+}++export { Alert, AlertTitle, AlertDescription }diff --git a/src/components/ui/avatar.tsx b/src/components/ui/avatar.tsxnew file mode 100644index 00000000..71e428b4--- /dev/null+++ b/src/components/ui/avatar.tsx@@ -0,0 +1,53 @@+"use client"++import * as React from "react"+import * as AvatarPrimitive from "@radix-ui/react-avatar"++import { cn } from "@/lib/utils"++function Avatar({+ className,+ ...props+}: React.ComponentProps<typeof AvatarPrimitive.Root>) {+ return (+ <AvatarPrimitive.Root+ data-slot="avatar"+ className={cn(+ "relative flex size-8 shrink-0 overflow-hidden rounded-full",+ className+ )}+ {...props}+ />+ )+}++function AvatarImage({+ className,+ ...props+}: React.ComponentProps<typeof AvatarPrimitive.Image>) {+ return (+ <AvatarPrimitive.Image+ data-slot="avatar-image"+ className={cn("aspect-square size-full", className)}+ {...props}+ />+ )+}++function AvatarFallback({+ className,+ ...props+}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {+ return (+ <AvatarPrimitive.Fallback+ data-slot="avatar-fallback"+ className={cn(+ "bg-muted flex size-full items-center justify-center rounded-full",+ className+ )}+ {...props}+ />+ )+}++export { Avatar, AvatarImage, AvatarFallback }diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsxnew file mode 100644index 00000000..02054139--- /dev/null+++ b/src/components/ui/badge.tsx@@ -0,0 +1,46 @@+import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const badgeVariants = cva(+ "inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",+ {+ variants: {+ variant: {+ default:+ "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",+ secondary:+ "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",+ destructive:+ "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",+ outline:+ "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ }+)++function Badge({+ className,+ variant,+ asChild = false,+ ...props+}: React.ComponentProps<"span"> &+ VariantProps<typeof badgeVariants> & { asChild?: boolean }) {+ const Comp = asChild ? Slot : "span"++ return (+ <Comp+ data-slot="badge"+ className={cn(badgeVariants({ variant }), className)}+ {...props}+ />+ )+}++export { Badge, badgeVariants }diff --git a/src/components/ui/breadcrumb.tsx b/src/components/ui/breadcrumb.tsxnew file mode 100644index 00000000..eb88f321--- /dev/null+++ b/src/components/ui/breadcrumb.tsx@@ -0,0 +1,109 @@+import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { ChevronRight, MoreHorizontal } from "lucide-react"++import { cn } from "@/lib/utils"++function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {+ return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />+}++function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {+ return (+ <ol+ data-slot="breadcrumb-list"+ className={cn(+ "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",+ className+ )}+ {...props}+ />+ )+}++function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">) {+ return (+ <li+ data-slot="breadcrumb-item"+ className={cn("inline-flex items-center gap-1.5", className)}+ {...props}+ />+ )+}++function BreadcrumbLink({+ asChild,+ className,+ ...props+}: React.ComponentProps<"a"> & {+ asChild?: boolean+}) {+ const Comp = asChild ? Slot : "a"++ return (+ <Comp+ data-slot="breadcrumb-link"+ className={cn("hover:text-foreground transition-colors", className)}+ {...props}+ />+ )+}++function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {+ return (+ <span+ data-slot="breadcrumb-page"+ role="link"+ aria-disabled="true"+ aria-current="page"+ className={cn("text-foreground font-normal", className)}+ {...props}+ />+ )+}++function BreadcrumbSeparator({+ children,+ className,+ ...props+}: React.ComponentProps<"li">) {+ return (+ <li+ data-slot="breadcrumb-separator"+ role="presentation"+ aria-hidden="true"+ className={cn("[&>svg]:size-3.5", className)}+ {...props}+ >+ {children ?? <ChevronRight />}+ </li>+ )+}++function BreadcrumbEllipsis({+ className,+ ...props+}: React.ComponentProps<"span">) {+ return (+ <span+ data-slot="breadcrumb-ellipsis"+ role="presentation"+ aria-hidden="true"+ className={cn("flex size-9 items-center justify-center", className)}+ {...props}+ >+ <MoreHorizontal className="size-4" />+ <span className="sr-only">More</span>+ </span>+ )+}++export {+ Breadcrumb,+ BreadcrumbList,+ BreadcrumbItem,+ BreadcrumbLink,+ BreadcrumbPage,+ BreadcrumbSeparator,+ BreadcrumbEllipsis,+}diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsxnew file mode 100644index 00000000..a2df8dce--- /dev/null+++ b/src/components/ui/button.tsx@@ -0,0 +1,59 @@+import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const buttonVariants = cva(+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",+ {+ variants: {+ variant: {+ default:+ "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",+ destructive:+ "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",+ outline:+ "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",+ secondary:+ "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",+ ghost:+ "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",+ link: "text-primary underline-offset-4 hover:underline",+ },+ size: {+ default: "h-9 px-4 py-2 has-[>svg]:px-3",+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",+ icon: "size-9",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ }+)++function Button({+ className,+ variant,+ size,+ asChild = false,+ ...props+}: React.ComponentProps<"button"> &+ VariantProps<typeof buttonVariants> & {+ asChild?: boolean+ }) {+ const Comp = asChild ? Slot : "button"++ return (+ <Comp+ data-slot="button"+ className={cn(buttonVariants({ variant, size, className }))}+ {...props}+ />+ )+}++export { Button, buttonVariants }diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsxnew file mode 100644index 00000000..d05bbc6c--- /dev/null+++ b/src/components/ui/card.tsx@@ -0,0 +1,92 @@+import * as React from "react"++import { cn } from "@/lib/utils"++function Card({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card"+ className={cn(+ "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",+ className+ )}+ {...props}+ />+ )+}++function CardHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-header"+ className={cn(+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",+ className+ )}+ {...props}+ />+ )+}++function CardTitle({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-title"+ className={cn("leading-none font-semibold", className)}+ {...props}+ />+ )+}++function CardDescription({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-description"+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ )+}++function CardAction({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-action"+ className={cn(+ "col-start-2 row-span-2 row-start-1 self-start justify-self-end",+ className+ )}+ {...props}+ />+ )+}++function CardContent({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-content"+ className={cn("px-6", className)}+ {...props}+ />+ )+}++function CardFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="card-footer"+ className={cn("flex items-center px-6 [.border-t]:pt-6", className)}+ {...props}+ />+ )+}++export {+ Card,+ CardHeader,+ CardFooter,+ CardTitle,+ CardAction,+ CardDescription,+ CardContent,+}diff --git a/src/components/ui/checkbox.tsx b/src/components/ui/checkbox.tsxnew file mode 100644index 00000000..defeb01f--- /dev/null+++ b/src/components/ui/checkbox.tsx@@ -0,0 +1,30 @@+import * as React from "react"+import * as CheckboxPrimitive from "@radix-ui/react-checkbox"+import { CheckIcon } from "lucide-react"++import { cn } from "@/lib/utils"++function Checkbox({+ className,+ ...props+}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {+ return (+ <CheckboxPrimitive.Root+ data-slot="checkbox"+ className={cn(+ "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",+ className+ )}+ {...props}+ >+ <CheckboxPrimitive.Indicator+ data-slot="checkbox-indicator"+ className="flex items-center justify-center text-current transition-none"+ >+ <CheckIcon className="size-3.5" />+ </CheckboxPrimitive.Indicator>+ </CheckboxPrimitive.Root>+ )+}++export { Checkbox }diff --git a/src/components/ui/command.tsx b/src/components/ui/command.tsxnew file mode 100644index 00000000..8cb4ca7a--- /dev/null+++ b/src/components/ui/command.tsx@@ -0,0 +1,184 @@+"use client"++import * as React from "react"+import { Command as CommandPrimitive } from "cmdk"+import { SearchIcon } from "lucide-react"++import { cn } from "@/lib/utils"+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog"++function Command({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive>) {+ return (+ <CommandPrimitive+ data-slot="command"+ className={cn(+ "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",+ className+ )}+ {...props}+ />+ )+}++function CommandDialog({+ title = "Command Palette",+ description = "Search for a command to run...",+ children,+ className,+ showCloseButton = true,+ ...props+}: React.ComponentProps<typeof Dialog> & {+ title?: string+ description?: string+ className?: string+ showCloseButton?: boolean+}) {+ return (+ <Dialog {...props}>+ <DialogHeader className="sr-only">+ <DialogTitle>{title}</DialogTitle>+ <DialogDescription>{description}</DialogDescription>+ </DialogHeader>+ <DialogContent+ className={cn("overflow-hidden p-0", className)}+ showCloseButton={showCloseButton}+ >+ <Command className="[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">+ {children}+ </Command>+ </DialogContent>+ </Dialog>+ )+}++function CommandInput({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Input>) {+ return (+ <div+ data-slot="command-input-wrapper"+ className="flex h-9 items-center gap-2 border-b px-3"+ >+ <SearchIcon className="size-4 shrink-0 opacity-50" />+ <CommandPrimitive.Input+ data-slot="command-input"+ className={cn(+ "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",+ className+ )}+ {...props}+ />+ </div>+ )+}++function CommandList({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.List>) {+ return (+ <CommandPrimitive.List+ data-slot="command-list"+ className={cn(+ "max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",+ className+ )}+ {...props}+ />+ )+}++function CommandEmpty({+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Empty>) {+ return (+ <CommandPrimitive.Empty+ data-slot="command-empty"+ className="py-6 text-center text-sm"+ {...props}+ />+ )+}++function CommandGroup({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Group>) {+ return (+ <CommandPrimitive.Group+ data-slot="command-group"+ className={cn(+ "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",+ className+ )}+ {...props}+ />+ )+}++function CommandSeparator({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Separator>) {+ return (+ <CommandPrimitive.Separator+ data-slot="command-separator"+ className={cn("bg-border -mx-1 h-px", className)}+ {...props}+ />+ )+}++function CommandItem({+ className,+ ...props+}: React.ComponentProps<typeof CommandPrimitive.Item>) {+ return (+ <CommandPrimitive.Item+ data-slot="command-item"+ className={cn(+ "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className+ )}+ {...props}+ />+ )+}++function CommandShortcut({+ className,+ ...props+}: React.ComponentProps<"span">) {+ return (+ <span+ data-slot="command-shortcut"+ className={cn(+ "text-muted-foreground ml-auto text-xs tracking-widest",+ className+ )}+ {...props}+ />+ )+}++export {+ Command,+ CommandDialog,+ CommandInput,+ CommandList,+ CommandEmpty,+ CommandGroup,+ CommandItem,+ CommandShortcut,+ CommandSeparator,+}diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsxnew file mode 100644index 00000000..3ab11a54--- /dev/null+++ b/src/components/ui/dialog.tsx@@ -0,0 +1,151 @@+import * as DialogPrimitive from "@radix-ui/react-dialog";+import { XIcon } from "lucide-react";+import * as React from "react";++import { cn } from "@/lib/utils";++function Dialog({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Root>) {+ return <DialogPrimitive.Root data-slot="dialog" {...props} />;+}++function DialogTrigger({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Trigger>) {+ return <DialogPrimitive.Trigger data-slot="dialog-trigger" {...props} />;+}++function DialogPortal({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Portal>) {+ return <DialogPrimitive.Portal data-slot="dialog-portal" {...props} />;+}++function DialogClose({+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Close>) {+ return <DialogPrimitive.Close data-slot="dialog-close" {...props} />;+}++function DialogOverlay({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Overlay>) {+ return (+ <DialogPrimitive.Overlay+ data-slot="dialog-overlay"+ className={cn(+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",+ className+ )}+ {...props}+ />+ );+}++function DialogContent({+ className,+ children,+ showCloseButton = true,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Content> & {+ showCloseButton?: boolean;+}) {+ return (+ <DialogPortal data-slot="dialog-portal">+ <DialogOverlay />+ <DialogPrimitive.Content+ data-slot="dialog-content"+ className={cn(+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",+ className+ )}+ onPointerDownOutside={(e) => {+ if (+ e.target instanceof Element &&+ e.target.closest("[data-sonner-toast]")+ ) {+ e.preventDefault();+ }++ props?.onPointerDownOutside?.(e);+ }}+ {...props}+ >+ {children}+ {showCloseButton && (+ <DialogPrimitive.Close+ data-slot="dialog-close"+ className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"+ >+ <XIcon />+ <span className="sr-only">Close</span>+ </DialogPrimitive.Close>+ )}+ </DialogPrimitive.Content>+ </DialogPortal>+ );+}++function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-header"+ className={cn("flex flex-col gap-2 text-center sm:text-left", className)}+ {...props}+ />+ );+}++function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="dialog-footer"+ className={cn(+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",+ className+ )}+ {...props}+ />+ );+}++function DialogTitle({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Title>) {+ return (+ <DialogPrimitive.Title+ data-slot="dialog-title"+ className={cn("text-lg leading-none font-semibold", className)}+ {...props}+ />+ );+}++function DialogDescription({+ className,+ ...props+}: React.ComponentProps<typeof DialogPrimitive.Description>) {+ return (+ <DialogPrimitive.Description+ data-slot="dialog-description"+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ );+}++export {+ Dialog,+ DialogClose,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogOverlay,+ DialogPortal,+ DialogTitle,+ DialogTrigger,+};diff --git a/src/components/ui/drawer.tsx b/src/components/ui/drawer.tsxnew file mode 100644index 00000000..8aa69230--- /dev/null+++ b/src/components/ui/drawer.tsx@@ -0,0 +1,135 @@+"use client"++import * as React from "react"+import { Drawer as DrawerPrimitive } from "vaul"++import { cn } from "@/lib/utils"++function Drawer({+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Root>) {+ return <DrawerPrimitive.Root data-slot="drawer" {...props} />+}++function DrawerTrigger({+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {+ return <DrawerPrimitive.Trigger data-slot="drawer-trigger" {...props} />+}++function DrawerPortal({+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Portal>) {+ return <DrawerPrimitive.Portal data-slot="drawer-portal" {...props} />+}++function DrawerClose({+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Close>) {+ return <DrawerPrimitive.Close data-slot="drawer-close" {...props} />+}++function DrawerOverlay({+ className,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {+ return (+ <DrawerPrimitive.Overlay+ data-slot="drawer-overlay"+ className={cn(+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",+ className+ )}+ {...props}+ />+ )+}++function DrawerContent({+ className,+ children,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Content>) {+ return (+ <DrawerPortal data-slot="drawer-portal">+ <DrawerOverlay />+ <DrawerPrimitive.Content+ data-slot="drawer-content"+ className={cn(+ "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",+ "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",+ "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",+ "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",+ "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",+ className+ )}+ {...props}+ >+ <div className="bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" />+ {children}+ </DrawerPrimitive.Content>+ </DrawerPortal>+ )+}++function DrawerHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="drawer-header"+ className={cn(+ "flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",+ className+ )}+ {...props}+ />+ )+}++function DrawerFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="drawer-footer"+ className={cn("mt-auto flex flex-col gap-2 p-4", className)}+ {...props}+ />+ )+}++function DrawerTitle({+ className,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Title>) {+ return (+ <DrawerPrimitive.Title+ data-slot="drawer-title"+ className={cn("text-foreground font-semibold", className)}+ {...props}+ />+ )+}++function DrawerDescription({+ className,+ ...props+}: React.ComponentProps<typeof DrawerPrimitive.Description>) {+ return (+ <DrawerPrimitive.Description+ data-slot="drawer-description"+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ )+}++export {+ Drawer,+ DrawerPortal,+ DrawerOverlay,+ DrawerTrigger,+ DrawerClose,+ DrawerContent,+ DrawerHeader,+ DrawerFooter,+ DrawerTitle,+ DrawerDescription,+}diff --git a/src/components/ui/dropdown-menu.tsx b/src/components/ui/dropdown-menu.tsxnew file mode 100644index 00000000..0d6741b4--- /dev/null+++ b/src/components/ui/dropdown-menu.tsx@@ -0,0 +1,255 @@+import * as React from "react"+import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"+import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"++import { cn } from "@/lib/utils"++function DropdownMenu({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {+ return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />+}++function DropdownMenuPortal({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {+ return (+ <DropdownMenuPrimitive.Portal data-slot="dropdown-menu-portal" {...props} />+ )+}++function DropdownMenuTrigger({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {+ return (+ <DropdownMenuPrimitive.Trigger+ data-slot="dropdown-menu-trigger"+ {...props}+ />+ )+}++function DropdownMenuContent({+ className,+ sideOffset = 4,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {+ return (+ <DropdownMenuPrimitive.Portal>+ <DropdownMenuPrimitive.Content+ data-slot="dropdown-menu-content"+ sideOffset={sideOffset}+ className={cn(+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",+ className+ )}+ {...props}+ />+ </DropdownMenuPrimitive.Portal>+ )+}++function DropdownMenuGroup({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {+ return (+ <DropdownMenuPrimitive.Group data-slot="dropdown-menu-group" {...props} />+ )+}++function DropdownMenuItem({+ className,+ inset,+ variant = "default",+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {+ inset?: boolean+ variant?: "default" | "destructive"+}) {+ return (+ <DropdownMenuPrimitive.Item+ data-slot="dropdown-menu-item"+ data-inset={inset}+ data-variant={variant}+ className={cn(+ "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className+ )}+ {...props}+ />+ )+}++function DropdownMenuCheckboxItem({+ className,+ children,+ checked,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) {+ return (+ <DropdownMenuPrimitive.CheckboxItem+ data-slot="dropdown-menu-checkbox-item"+ className={cn(+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className+ )}+ checked={checked}+ {...props}+ >+ <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">+ <DropdownMenuPrimitive.ItemIndicator>+ <CheckIcon className="size-4" />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.CheckboxItem>+ )+}++function DropdownMenuRadioGroup({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {+ return (+ <DropdownMenuPrimitive.RadioGroup+ data-slot="dropdown-menu-radio-group"+ {...props}+ />+ )+}++function DropdownMenuRadioItem({+ className,+ children,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>) {+ return (+ <DropdownMenuPrimitive.RadioItem+ data-slot="dropdown-menu-radio-item"+ className={cn(+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className+ )}+ {...props}+ >+ <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">+ <DropdownMenuPrimitive.ItemIndicator>+ <CircleIcon className="size-2 fill-current" />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.RadioItem>+ )+}++function DropdownMenuLabel({+ className,+ inset,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {+ inset?: boolean+}) {+ return (+ <DropdownMenuPrimitive.Label+ data-slot="dropdown-menu-label"+ data-inset={inset}+ className={cn(+ "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",+ className+ )}+ {...props}+ />+ )+}++function DropdownMenuSeparator({+ className,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>) {+ return (+ <DropdownMenuPrimitive.Separator+ data-slot="dropdown-menu-separator"+ className={cn("bg-border -mx-1 my-1 h-px", className)}+ {...props}+ />+ )+}++function DropdownMenuShortcut({+ className,+ ...props+}: React.ComponentProps<"span">) {+ return (+ <span+ data-slot="dropdown-menu-shortcut"+ className={cn(+ "text-muted-foreground ml-auto text-xs tracking-widest",+ className+ )}+ {...props}+ />+ )+}++function DropdownMenuSub({+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {+ return <DropdownMenuPrimitive.Sub data-slot="dropdown-menu-sub" {...props} />+}++function DropdownMenuSubTrigger({+ className,+ inset,+ children,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {+ inset?: boolean+}) {+ return (+ <DropdownMenuPrimitive.SubTrigger+ data-slot="dropdown-menu-sub-trigger"+ data-inset={inset}+ className={cn(+ "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",+ className+ )}+ {...props}+ >+ {children}+ <ChevronRightIcon className="ml-auto size-4" />+ </DropdownMenuPrimitive.SubTrigger>+ )+}++function DropdownMenuSubContent({+ className,+ ...props+}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {+ return (+ <DropdownMenuPrimitive.SubContent+ data-slot="dropdown-menu-sub-content"+ className={cn(+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",+ className+ )}+ {...props}+ />+ )+}++export {+ DropdownMenu,+ DropdownMenuPortal,+ DropdownMenuTrigger,+ DropdownMenuContent,+ DropdownMenuGroup,+ DropdownMenuLabel,+ DropdownMenuItem,+ DropdownMenuCheckboxItem,+ DropdownMenuRadioGroup,+ DropdownMenuRadioItem,+ DropdownMenuSeparator,+ DropdownMenuShortcut,+ DropdownMenuSub,+ DropdownMenuSubTrigger,+ DropdownMenuSubContent,+}diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsxnew file mode 100644index 00000000..03295ca6--- /dev/null+++ b/src/components/ui/input.tsx@@ -0,0 +1,21 @@+import * as React from "react"++import { cn } from "@/lib/utils"++function Input({ className, type, ...props }: React.ComponentProps<"input">) {+ return (+ <input+ type={type}+ data-slot="input"+ className={cn(+ "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",+ className+ )}+ {...props}+ />+ )+}++export { Input }diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsxnew file mode 100644index 00000000..fb5fbc3e--- /dev/null+++ b/src/components/ui/label.tsx@@ -0,0 +1,24 @@+"use client"++import * as React from "react"+import * as LabelPrimitive from "@radix-ui/react-label"++import { cn } from "@/lib/utils"++function Label({+ className,+ ...props+}: React.ComponentProps<typeof LabelPrimitive.Root>) {+ return (+ <LabelPrimitive.Root+ data-slot="label"+ className={cn(+ "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",+ className+ )}+ {...props}+ />+ )+}++export { Label }diff --git a/src/components/ui/navigation-menu.tsx b/src/components/ui/navigation-menu.tsxnew file mode 100644index 00000000..1199945c--- /dev/null+++ b/src/components/ui/navigation-menu.tsx@@ -0,0 +1,168 @@+import * as React from "react"+import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu"+import { cva } from "class-variance-authority"+import { ChevronDownIcon } from "lucide-react"++import { cn } from "@/lib/utils"++function NavigationMenu({+ className,+ children,+ viewport = true,+ ...props+}: React.ComponentProps<typeof NavigationMenuPrimitive.Root> & {+ viewport?: boolean+}) {+ return (+ <NavigationMenuPrimitive.Root+ data-slot="navigation-menu"+ data-viewport={viewport}+ className={cn(+ "group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",+ className+ )}+ {...props}+ >+ {children}+ {viewport && <NavigationMenuViewport />}+ </NavigationMenuPrimitive.Root>+ )+}++function NavigationMenuList({+ className,+ ...props+}: React.ComponentProps<typeof NavigationMenuPrimitive.List>) {+ return (+ <NavigationMenuPrimitive.List+ data-slot="navigation-menu-list"+ className={cn(+ "group flex flex-1 list-none items-center justify-center gap-1",+ className+ )}+ {...props}+ />+ )+}++function NavigationMenuItem({+ className,+ ...props+}: React.ComponentProps<typeof NavigationMenuPrimitive.Item>) {+ return (+ <NavigationMenuPrimitive.Item+ data-slot="navigation-menu-item"+ className={cn("relative", className)}+ {...props}+ />+ )+}++const navigationMenuTriggerStyle = cva(+ "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"+)++function NavigationMenuTrigger({+ className,+ children,+ ...props+}: React.ComponentProps<typeof NavigationMenuPrimitive.Trigger>) {+ return (+ <NavigationMenuPrimitive.Trigger+ data-slot="navigation-menu-trigger"+ className={cn(navigationMenuTriggerStyle(), "group", className)}+ {...props}+ >+ {children}{" "}+ <ChevronDownIcon+ className="relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180"+ aria-hidden="true"+ />+ </NavigationMenuPrimitive.Trigger>+ )+}++function NavigationMenuContent({+ className,+ ...props+}: React.ComponentProps<typeof NavigationMenuPrimitive.Content>) {+ return (+ <NavigationMenuPrimitive.Content+ data-slot="navigation-menu-content"+ className={cn(+ "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",+ "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",+ className+ )}+ {...props}+ />+ )+}++function NavigationMenuViewport({+ className,+ ...props+}: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>) {+ return (+ <div+ className={cn(+ "absolute top-full left-0 isolate z-50 flex justify-center"+ )}+ >+ <NavigationMenuPrimitive.Viewport+ data-slot="navigation-menu-viewport"+ className={cn(+ "origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",+ className+ )}+ {...props}+ />+ </div>+ )+}++function NavigationMenuLink({+ className,+ ...props+}: React.ComponentProps<typeof NavigationMenuPrimitive.Link>) {+ return (+ <NavigationMenuPrimitive.Link+ data-slot="navigation-menu-link"+ className={cn(+ "data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",+ className+ )}+ {...props}+ />+ )+}++function NavigationMenuIndicator({+ className,+ ...props+}: React.ComponentProps<typeof NavigationMenuPrimitive.Indicator>) {+ return (+ <NavigationMenuPrimitive.Indicator+ data-slot="navigation-menu-indicator"+ className={cn(+ "data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",+ className+ )}+ {...props}+ >+ <div className="bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" />+ </NavigationMenuPrimitive.Indicator>+ )+}++export {+ NavigationMenu,+ NavigationMenuList,+ NavigationMenuItem,+ NavigationMenuContent,+ NavigationMenuTrigger,+ NavigationMenuLink,+ NavigationMenuIndicator,+ NavigationMenuViewport,+ navigationMenuTriggerStyle,+}diff --git a/src/components/ui/pagination.tsx b/src/components/ui/pagination.tsxnew file mode 100644index 00000000..0d185410--- /dev/null+++ b/src/components/ui/pagination.tsx@@ -0,0 +1,127 @@+import * as React from "react"+import {+ ChevronLeftIcon,+ ChevronRightIcon,+ MoreHorizontalIcon,+} from "lucide-react"++import { cn } from "@/lib/utils"+import { Button, buttonVariants } from "@/components/ui/button"++function Pagination({ className, ...props }: React.ComponentProps<"nav">) {+ return (+ <nav+ role="navigation"+ aria-label="pagination"+ data-slot="pagination"+ className={cn("mx-auto flex w-full justify-center", className)}+ {...props}+ />+ )+}++function PaginationContent({+ className,+ ...props+}: React.ComponentProps<"ul">) {+ return (+ <ul+ data-slot="pagination-content"+ className={cn("flex flex-row items-center gap-1", className)}+ {...props}+ />+ )+}++function PaginationItem({ ...props }: React.ComponentProps<"li">) {+ return <li data-slot="pagination-item" {...props} />+}++type PaginationLinkProps = {+ isActive?: boolean+} & Pick<React.ComponentProps<typeof Button>, "size"> &+ React.ComponentProps<"a">++function PaginationLink({+ className,+ isActive,+ size = "icon",+ ...props+}: PaginationLinkProps) {+ return (+ <a+ aria-current={isActive ? "page" : undefined}+ data-slot="pagination-link"+ data-active={isActive}+ className={cn(+ buttonVariants({+ variant: isActive ? "outline" : "ghost",+ size,+ }),+ className+ )}+ {...props}+ />+ )+}++function PaginationPrevious({+ className,+ ...props+}: React.ComponentProps<typeof PaginationLink>) {+ return (+ <PaginationLink+ aria-label="Go to previous page"+ size="default"+ className={cn("gap-1 px-2.5 sm:pl-2.5", className)}+ {...props}+ >+ <ChevronLeftIcon />+ <span className="hidden sm:block">Previous</span>+ </PaginationLink>+ )+}++function PaginationNext({+ className,+ ...props+}: React.ComponentProps<typeof PaginationLink>) {+ return (+ <PaginationLink+ aria-label="Go to next page"+ size="default"+ className={cn("gap-1 px-2.5 sm:pr-2.5", className)}+ {...props}+ >+ <span className="hidden sm:block">Next</span>+ <ChevronRightIcon />+ </PaginationLink>+ )+}++function PaginationEllipsis({+ className,+ ...props+}: React.ComponentProps<"span">) {+ return (+ <span+ aria-hidden+ data-slot="pagination-ellipsis"+ className={cn("flex size-9 items-center justify-center", className)}+ {...props}+ >+ <MoreHorizontalIcon className="size-4" />+ <span className="sr-only">More pages</span>+ </span>+ )+}++export {+ Pagination,+ PaginationContent,+ PaginationLink,+ PaginationItem,+ PaginationPrevious,+ PaginationNext,+ PaginationEllipsis,+}diff --git a/src/components/ui/popover.tsx b/src/components/ui/popover.tsxnew file mode 100644index 00000000..6d51b6ce--- /dev/null+++ b/src/components/ui/popover.tsx@@ -0,0 +1,46 @@+import * as React from "react"+import * as PopoverPrimitive from "@radix-ui/react-popover"++import { cn } from "@/lib/utils"++function Popover({+ ...props+}: React.ComponentProps<typeof PopoverPrimitive.Root>) {+ return <PopoverPrimitive.Root data-slot="popover" {...props} />+}++function PopoverTrigger({+ ...props+}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {+ return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />+}++function PopoverContent({+ className,+ align = "center",+ sideOffset = 4,+ ...props+}: React.ComponentProps<typeof PopoverPrimitive.Content>) {+ return (+ <PopoverPrimitive.Portal>+ <PopoverPrimitive.Content+ data-slot="popover-content"+ align={align}+ sideOffset={sideOffset}+ className={cn(+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",+ className+ )}+ {...props}+ />+ </PopoverPrimitive.Portal>+ )+}++function PopoverAnchor({+ ...props+}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {+ return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />+}++export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }diff --git a/src/components/ui/progress.tsx b/src/components/ui/progress.tsxnew file mode 100644index 00000000..10af7e63--- /dev/null+++ b/src/components/ui/progress.tsx@@ -0,0 +1,29 @@+import * as React from "react"+import * as ProgressPrimitive from "@radix-ui/react-progress"++import { cn } from "@/lib/utils"++function Progress({+ className,+ value,+ ...props+}: React.ComponentProps<typeof ProgressPrimitive.Root>) {+ return (+ <ProgressPrimitive.Root+ data-slot="progress"+ className={cn(+ "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",+ className+ )}+ {...props}+ >+ <ProgressPrimitive.Indicator+ data-slot="progress-indicator"+ className="bg-primary h-full w-full flex-1 transition-all"+ style={{ transform: `translateX(-${100 - (value || 0)}%)` }}+ />+ </ProgressPrimitive.Root>+ )+}++export { Progress }diff --git a/src/components/ui/radio-group.tsx b/src/components/ui/radio-group.tsxnew file mode 100644index 00000000..dc682eb9--- /dev/null+++ b/src/components/ui/radio-group.tsx@@ -0,0 +1,43 @@+import * as React from "react"+import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"+import { CircleIcon } from "lucide-react"++import { cn } from "@/lib/utils"++function RadioGroup({+ className,+ ...props+}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {+ return (+ <RadioGroupPrimitive.Root+ data-slot="radio-group"+ className={cn("grid gap-3", className)}+ {...props}+ />+ )+}++function RadioGroupItem({+ className,+ ...props+}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {+ return (+ <RadioGroupPrimitive.Item+ data-slot="radio-group-item"+ className={cn(+ "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",+ className+ )}+ {...props}+ >+ <RadioGroupPrimitive.Indicator+ data-slot="radio-group-indicator"+ className="relative flex items-center justify-center"+ >+ <CircleIcon className="fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" />+ </RadioGroupPrimitive.Indicator>+ </RadioGroupPrimitive.Item>+ )+}++export { RadioGroup, RadioGroupItem }diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsxnew file mode 100644index 00000000..dcbbc0ca--- /dev/null+++ b/src/components/ui/select.tsx@@ -0,0 +1,185 @@+"use client"++import * as React from "react"+import * as SelectPrimitive from "@radix-ui/react-select"+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"++import { cn } from "@/lib/utils"++function Select({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Root>) {+ return <SelectPrimitive.Root data-slot="select" {...props} />+}++function SelectGroup({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Group>) {+ return <SelectPrimitive.Group data-slot="select-group" {...props} />+}++function SelectValue({+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Value>) {+ return <SelectPrimitive.Value data-slot="select-value" {...props} />+}++function SelectTrigger({+ className,+ size = "default",+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {+ size?: "sm" | "default"+}) {+ return (+ <SelectPrimitive.Trigger+ data-slot="select-trigger"+ data-size={size}+ className={cn(+ "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className+ )}+ {...props}+ >+ {children}+ <SelectPrimitive.Icon asChild>+ <ChevronDownIcon className="size-4 opacity-50" />+ </SelectPrimitive.Icon>+ </SelectPrimitive.Trigger>+ )+}++function SelectContent({+ className,+ children,+ position = "popper",+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Content>) {+ return (+ <SelectPrimitive.Portal>+ <SelectPrimitive.Content+ data-slot="select-content"+ className={cn(+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",+ position === "popper" &&+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",+ className+ )}+ position={position}+ {...props}+ >+ <SelectScrollUpButton />+ <SelectPrimitive.Viewport+ className={cn(+ "p-1",+ position === "popper" &&+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"+ )}+ >+ {children}+ </SelectPrimitive.Viewport>+ <SelectScrollDownButton />+ </SelectPrimitive.Content>+ </SelectPrimitive.Portal>+ )+}++function SelectLabel({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Label>) {+ return (+ <SelectPrimitive.Label+ data-slot="select-label"+ className={cn("text-muted-foreground px-2 py-1.5 text-xs", className)}+ {...props}+ />+ )+}++function SelectItem({+ className,+ children,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Item>) {+ return (+ <SelectPrimitive.Item+ data-slot="select-item"+ className={cn(+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",+ className+ )}+ {...props}+ >+ <span className="absolute right-2 flex size-3.5 items-center justify-center">+ <SelectPrimitive.ItemIndicator>+ <CheckIcon className="size-4" />+ </SelectPrimitive.ItemIndicator>+ </span>+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>+ </SelectPrimitive.Item>+ )+}++function SelectSeparator({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.Separator>) {+ return (+ <SelectPrimitive.Separator+ data-slot="select-separator"+ className={cn("bg-border pointer-events-none -mx-1 my-1 h-px", className)}+ {...props}+ />+ )+}++function SelectScrollUpButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {+ return (+ <SelectPrimitive.ScrollUpButton+ data-slot="select-scroll-up-button"+ className={cn(+ "flex cursor-default items-center justify-center py-1",+ className+ )}+ {...props}+ >+ <ChevronUpIcon className="size-4" />+ </SelectPrimitive.ScrollUpButton>+ )+}++function SelectScrollDownButton({+ className,+ ...props+}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {+ return (+ <SelectPrimitive.ScrollDownButton+ data-slot="select-scroll-down-button"+ className={cn(+ "flex cursor-default items-center justify-center py-1",+ className+ )}+ {...props}+ >+ <ChevronDownIcon className="size-4" />+ </SelectPrimitive.ScrollDownButton>+ )+}++export {+ Select,+ SelectContent,+ SelectGroup,+ SelectItem,+ SelectLabel,+ SelectScrollDownButton,+ SelectScrollUpButton,+ SelectSeparator,+ SelectTrigger,+ SelectValue,+}diff --git a/src/components/ui/separator.tsx b/src/components/ui/separator.tsxnew file mode 100644index 00000000..bb3ad74c--- /dev/null+++ b/src/components/ui/separator.tsx@@ -0,0 +1,26 @@+import * as React from "react"+import * as SeparatorPrimitive from "@radix-ui/react-separator"++import { cn } from "@/lib/utils"++function Separator({+ className,+ orientation = "horizontal",+ decorative = true,+ ...props+}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {+ return (+ <SeparatorPrimitive.Root+ data-slot="separator"+ decorative={decorative}+ orientation={orientation}+ className={cn(+ "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",+ className+ )}+ {...props}+ />+ )+}++export { Separator }diff --git a/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsxnew file mode 100644index 00000000..84649ad0--- /dev/null+++ b/src/components/ui/sheet.tsx@@ -0,0 +1,139 @@+"use client"++import * as React from "react"+import * as SheetPrimitive from "@radix-ui/react-dialog"+import { XIcon } from "lucide-react"++import { cn } from "@/lib/utils"++function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {+ return <SheetPrimitive.Root data-slot="sheet" {...props} />+}++function SheetTrigger({+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {+ return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />+}++function SheetClose({+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Close>) {+ return <SheetPrimitive.Close data-slot="sheet-close" {...props} />+}++function SheetPortal({+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Portal>) {+ return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />+}++function SheetOverlay({+ className,+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {+ return (+ <SheetPrimitive.Overlay+ data-slot="sheet-overlay"+ className={cn(+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",+ className+ )}+ {...props}+ />+ )+}++function SheetContent({+ className,+ children,+ side = "right",+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Content> & {+ side?: "top" | "right" | "bottom" | "left"+}) {+ return (+ <SheetPortal>+ <SheetOverlay />+ <SheetPrimitive.Content+ data-slot="sheet-content"+ className={cn(+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",+ side === "right" &&+ "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",+ side === "left" &&+ "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",+ side === "top" &&+ "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",+ side === "bottom" &&+ "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",+ className+ )}+ {...props}+ >+ {children}+ <SheetPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">+ <XIcon className="size-4" />+ <span className="sr-only">Close</span>+ </SheetPrimitive.Close>+ </SheetPrimitive.Content>+ </SheetPortal>+ )+}++function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sheet-header"+ className={cn("flex flex-col gap-1.5 p-4", className)}+ {...props}+ />+ )+}++function SheetFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sheet-footer"+ className={cn("mt-auto flex flex-col gap-2 p-4", className)}+ {...props}+ />+ )+}++function SheetTitle({+ className,+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Title>) {+ return (+ <SheetPrimitive.Title+ data-slot="sheet-title"+ className={cn("text-foreground font-semibold", className)}+ {...props}+ />+ )+}++function SheetDescription({+ className,+ ...props+}: React.ComponentProps<typeof SheetPrimitive.Description>) {+ return (+ <SheetPrimitive.Description+ data-slot="sheet-description"+ className={cn("text-muted-foreground text-sm", className)}+ {...props}+ />+ )+}++export {+ Sheet,+ SheetTrigger,+ SheetClose,+ SheetContent,+ SheetHeader,+ SheetFooter,+ SheetTitle,+ SheetDescription,+}diff --git a/src/components/ui/sidebar.tsx b/src/components/ui/sidebar.tsxnew file mode 100644index 00000000..a674df58--- /dev/null+++ b/src/components/ui/sidebar.tsx@@ -0,0 +1,727 @@+"use client";++import { Slot } from "@radix-ui/react-slot";+import { cva, VariantProps } from "class-variance-authority";+import { PanelLeftIcon } from "lucide-react";+import * as React from "react";++import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";+import { Separator } from "@/components/ui/separator";+import {+ Sheet,+ SheetContent,+ SheetDescription,+ SheetHeader,+ SheetTitle,+} from "@/components/ui/sheet";+import { Skeleton } from "@/components/ui/skeleton";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { useIsMobile } from "@/hooks/use-mobile";+import { cn } from "@/lib/utils";++const SIDEBAR_COOKIE_NAME = "sidebar_state";+const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;+const SIDEBAR_WIDTH = "16rem";+const SIDEBAR_WIDTH_MOBILE = "18rem";+const SIDEBAR_WIDTH_ICON = "3rem";+const SIDEBAR_KEYBOARD_SHORTCUT = "b";++type SidebarContextProps = {+ state: "expanded" | "collapsed";+ open: boolean;+ setOpen: (open: boolean) => void;+ openMobile: boolean;+ setOpenMobile: (open: boolean) => void;+ isMobile: boolean;+ toggleSidebar: () => void;+};++const SidebarContext = React.createContext<SidebarContextProps | null>(null);++function useSidebar() {+ const context = React.useContext(SidebarContext);+ if (!context) {+ throw new Error("useSidebar must be used within a SidebarProvider.");+ }++ return context;+}++function SidebarProvider({+ defaultOpen = true,+ open: openProp,+ onOpenChange: setOpenProp,+ className,+ style,+ children,+ ...props+}: React.ComponentProps<"div"> & {+ defaultOpen?: boolean;+ open?: boolean;+ onOpenChange?: (open: boolean) => void;+}) {+ const isMobile = useIsMobile();+ const [openMobile, setOpenMobile] = React.useState(false);++ // This is the internal state of the sidebar.+ // We use openProp and setOpenProp for control from outside the component.+ const [_open, _setOpen] = React.useState(defaultOpen);+ const open = openProp ?? _open;+ const setOpen = React.useCallback(+ (value: boolean | ((value: boolean) => boolean)) => {+ const openState = typeof value === "function" ? value(open) : value;+ if (setOpenProp) {+ setOpenProp(openState);+ } else {+ _setOpen(openState);+ }++ // This sets the cookie to keep the sidebar state.+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;+ },+ [setOpenProp, open]+ );++ // Helper to toggle the sidebar.+ const toggleSidebar = React.useCallback(() => {+ return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);+ }, [isMobile, setOpen, setOpenMobile]);++ // Adds a keyboard shortcut to toggle the sidebar.+ React.useEffect(() => {+ const handleKeyDown = (event: KeyboardEvent) => {+ if (+ event.key === SIDEBAR_KEYBOARD_SHORTCUT &&+ (event.metaKey || event.ctrlKey)+ ) {+ event.preventDefault();+ toggleSidebar();+ }+ };++ window.addEventListener("keydown", handleKeyDown);+ return () => window.removeEventListener("keydown", handleKeyDown);+ }, [toggleSidebar]);++ // We add a state so that we can do data-state="expanded" or "collapsed".+ // This makes it easier to style the sidebar with Tailwind classes.+ const state = open ? "expanded" : "collapsed";++ const contextValue = React.useMemo<SidebarContextProps>(+ () => ({+ state,+ open,+ setOpen,+ isMobile,+ openMobile,+ setOpenMobile,+ toggleSidebar,+ }),+ [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]+ );++ return (+ <SidebarContext.Provider value={contextValue}>+ <TooltipProvider delayDuration={0}>+ <div+ data-slot="sidebar-wrapper"+ style={+ {+ "--sidebar-width": SIDEBAR_WIDTH,+ "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,+ ...style,+ } as React.CSSProperties+ }+ className={cn(+ "group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",+ className+ )}+ {...props}+ >+ {children}+ </div>+ </TooltipProvider>+ </SidebarContext.Provider>+ );+}++function Sidebar({+ side = "left",+ variant = "sidebar",+ collapsible = "offcanvas",+ className,+ children,+ ...props+}: React.ComponentProps<"div"> & {+ side?: "left" | "right";+ variant?: "sidebar" | "floating" | "inset";+ collapsible?: "offcanvas" | "icon" | "none";+}) {+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar();++ if (collapsible === "none") {+ return (+ <div+ data-slot="sidebar"+ className={cn(+ "bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",+ className+ )}+ {...props}+ >+ {children}+ </div>+ );+ }++ if (isMobile) {+ return (+ <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>+ <SheetContent+ data-sidebar="sidebar"+ data-slot="sidebar"+ data-mobile="true"+ className="bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden"+ style={+ {+ "--sidebar-width": SIDEBAR_WIDTH_MOBILE,+ } as React.CSSProperties+ }+ side={side}+ >+ <SheetHeader className="sr-only">+ <SheetTitle>Sidebar</SheetTitle>+ <SheetDescription>Displays the mobile sidebar.</SheetDescription>+ </SheetHeader>+ <div className="flex h-full w-full flex-col">{children}</div>+ </SheetContent>+ </Sheet>+ );+ }++ return (+ <div+ className="group peer text-sidebar-foreground hidden md:block"+ data-state={state}+ data-collapsible={state === "collapsed" ? collapsible : ""}+ data-variant={variant}+ data-side={side}+ data-slot="sidebar"+ >+ {/* This is what handles the sidebar gap on desktop */}+ <div+ data-slot="sidebar-gap"+ className={cn(+ "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",+ "group-data-[collapsible=offcanvas]:w-0",+ "group-data-[side=right]:rotate-180",+ variant === "floating" || variant === "inset"+ ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]"+ : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"+ )}+ />+ <div+ data-slot="sidebar-container"+ className={cn(+ "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",+ side === "left"+ ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"+ : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",+ // Adjust the padding for floating and inset variants.+ variant === "floating" || variant === "inset"+ ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]"+ : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",+ className+ )}+ {...props}+ >+ <div+ data-sidebar="sidebar"+ data-slot="sidebar-inner"+ className="bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"+ >+ {children}+ </div>+ </div>+ </div>+ );+}++function SidebarTrigger({+ className,+ onClick,+ ...props+}: React.ComponentProps<typeof Button>) {+ const { toggleSidebar } = useSidebar();++ return (+ <Button+ data-sidebar="trigger"+ data-slot="sidebar-trigger"+ variant="ghost"+ size="icon"+ className={cn("size-7", className)}+ onClick={(event) => {+ onClick?.(event);+ toggleSidebar();+ }}+ {...props}+ >+ <PanelLeftIcon />+ <span className="sr-only">Toggle Sidebar</span>+ </Button>+ );+}++function SidebarRail({ className, ...props }: React.ComponentProps<"button">) {+ const { toggleSidebar } = useSidebar();++ return (+ <button+ data-sidebar="rail"+ data-slot="sidebar-rail"+ aria-label="Toggle Sidebar"+ tabIndex={-1}+ onClick={toggleSidebar}+ title="Toggle Sidebar"+ className={cn(+ "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex",+ "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",+ "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",+ "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full",+ "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",+ "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",+ className+ )}+ {...props}+ />+ );+}++function SidebarInset({ className, ...props }: React.ComponentProps<"main">) {+ return (+ <main+ data-slot="sidebar-inset"+ className={cn(+ "bg-background relative flex w-full flex-1 flex-col",+ "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",+ className+ )}+ {...props}+ />+ );+}++function SidebarInput({+ className,+ ...props+}: React.ComponentProps<typeof Input>) {+ return (+ <Input+ data-slot="sidebar-input"+ data-sidebar="input"+ className={cn("bg-background h-8 w-full shadow-none", className)}+ {...props}+ />+ );+}++function SidebarHeader({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-header"+ data-sidebar="header"+ className={cn("flex flex-col gap-2 p-2", className)}+ {...props}+ />+ );+}++function SidebarFooter({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-footer"+ data-sidebar="footer"+ className={cn("flex flex-col gap-2 p-2", className)}+ {...props}+ />+ );+}++function SidebarSeparator({+ className,+ ...props+}: React.ComponentProps<typeof Separator>) {+ return (+ <Separator+ data-slot="sidebar-separator"+ data-sidebar="separator"+ className={cn("bg-sidebar-border mx-2 w-auto", className)}+ {...props}+ />+ );+}++function SidebarContent({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-content"+ data-sidebar="content"+ className={cn(+ "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",+ className+ )}+ {...props}+ />+ );+}++function SidebarGroup({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-group"+ data-sidebar="group"+ className={cn("relative flex w-full min-w-0 flex-col p-2", className)}+ {...props}+ />+ );+}++function SidebarGroupLabel({+ className,+ asChild = false,+ ...props+}: React.ComponentProps<"div"> & { asChild?: boolean }) {+ const Comp = asChild ? Slot : "div";++ return (+ <Comp+ data-slot="sidebar-group-label"+ data-sidebar="group-label"+ className={cn(+ "text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",+ "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",+ className+ )}+ {...props}+ />+ );+}++function SidebarGroupAction({+ className,+ asChild = false,+ ...props+}: React.ComponentProps<"button"> & { asChild?: boolean }) {+ const Comp = asChild ? Slot : "button";++ return (+ <Comp+ data-slot="sidebar-group-action"+ data-sidebar="group-action"+ className={cn(+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",+ // Increases the hit area of the button on mobile.+ "after:absolute after:-inset-2 md:after:hidden",+ "group-data-[collapsible=icon]:hidden",+ className+ )}+ {...props}+ />+ );+}++function SidebarGroupContent({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-group-content"+ data-sidebar="group-content"+ className={cn("w-full text-sm", className)}+ {...props}+ />+ );+}++function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">) {+ return (+ <ul+ data-slot="sidebar-menu"+ data-sidebar="menu"+ className={cn("flex w-full min-w-0 flex-col gap-1", className)}+ {...props}+ />+ );+}++function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">) {+ return (+ <li+ data-slot="sidebar-menu-item"+ data-sidebar="menu-item"+ className={cn("group/menu-item relative", className)}+ {...props}+ />+ );+}++const sidebarMenuButtonVariants = cva(+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",+ {+ variants: {+ variant: {+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",+ outline:+ "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",+ },+ size: {+ default: "h-8 text-sm",+ sm: "h-7 text-xs",+ lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ }+);++function SidebarMenuButton({+ asChild = false,+ isActive = false,+ variant = "default",+ size = "default",+ tooltip,+ className,+ ...props+}: React.ComponentProps<"button"> & {+ asChild?: boolean;+ isActive?: boolean;+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;+} & VariantProps<typeof sidebarMenuButtonVariants>) {+ const Comp = asChild ? Slot : "button";+ const { isMobile, state } = useSidebar();++ const button = (+ <Comp+ data-slot="sidebar-menu-button"+ data-sidebar="menu-button"+ data-size={size}+ data-active={isActive}+ className={cn(sidebarMenuButtonVariants({ variant, size }), className)}+ {...props}+ />+ );++ if (!tooltip) {+ return button;+ }++ if (typeof tooltip === "string") {+ tooltip = {+ children: tooltip,+ };+ }++ return (+ <Tooltip>+ <TooltipTrigger asChild>{button}</TooltipTrigger>+ <TooltipContent+ side="right"+ align="center"+ hidden={state !== "collapsed" || isMobile}+ {...tooltip}+ />+ </Tooltip>+ );+}++function SidebarMenuAction({+ className,+ asChild = false,+ showOnHover = false,+ ...props+}: React.ComponentProps<"button"> & {+ asChild?: boolean;+ showOnHover?: boolean;+}) {+ const Comp = asChild ? Slot : "button";++ return (+ <Comp+ data-slot="sidebar-menu-action"+ data-sidebar="menu-action"+ className={cn(+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",+ // Increases the hit area of the button on mobile.+ "after:absolute after:-inset-2 md:after:hidden",+ "peer-data-[size=sm]/menu-button:top-1",+ "peer-data-[size=default]/menu-button:top-1.5",+ "peer-data-[size=lg]/menu-button:top-2.5",+ "group-data-[collapsible=icon]:hidden",+ showOnHover &&+ "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",+ className+ )}+ {...props}+ />+ );+}++function SidebarMenuBadge({+ className,+ ...props+}: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="sidebar-menu-badge"+ data-sidebar="menu-badge"+ className={cn(+ "text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none",+ "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",+ "peer-data-[size=sm]/menu-button:top-1",+ "peer-data-[size=default]/menu-button:top-1.5",+ "peer-data-[size=lg]/menu-button:top-2.5",+ "group-data-[collapsible=icon]:hidden",+ className+ )}+ {...props}+ />+ );+}++function SidebarMenuSkeleton({+ className,+ showIcon = false,+ ...props+}: React.ComponentProps<"div"> & {+ showIcon?: boolean;+}) {+ // Random width between 50 to 90%.+ const width = React.useMemo(() => {+ return `${Math.floor(Math.random() * 40) + 50}%`;+ }, []);++ return (+ <div+ data-slot="sidebar-menu-skeleton"+ data-sidebar="menu-skeleton"+ className={cn("flex h-8 items-center gap-2 rounded-md px-2", className)}+ {...props}+ >+ {showIcon && (+ <Skeleton+ className="size-4 rounded-md"+ data-sidebar="menu-skeleton-icon"+ />+ )}+ <Skeleton+ className="h-4 max-w-(--skeleton-width) flex-1"+ data-sidebar="menu-skeleton-text"+ style={+ {+ "--skeleton-width": width,+ } as React.CSSProperties+ }+ />+ </div>+ );+}++function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">) {+ return (+ <ul+ data-slot="sidebar-menu-sub"+ data-sidebar="menu-sub"+ className={cn(+ "border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5",+ "group-data-[collapsible=icon]:hidden",+ className+ )}+ {...props}+ />+ );+}++function SidebarMenuSubItem({+ className,+ ...props+}: React.ComponentProps<"li">) {+ return (+ <li+ data-slot="sidebar-menu-sub-item"+ data-sidebar="menu-sub-item"+ className={cn("group/menu-sub-item relative", className)}+ {...props}+ />+ );+}++function SidebarMenuSubButton({+ asChild = false,+ size = "md",+ isActive = false,+ className,+ ...props+}: React.ComponentProps<"a"> & {+ asChild?: boolean;+ size?: "sm" | "md";+ isActive?: boolean;+}) {+ const Comp = asChild ? Slot : "a";++ return (+ <Comp+ data-slot="sidebar-menu-sub-button"+ data-sidebar="menu-sub-button"+ data-size={size}+ data-active={isActive}+ className={cn(+ "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",+ "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",+ size === "sm" && "text-xs",+ size === "md" && "text-sm",+ "group-data-[collapsible=icon]:hidden",+ className+ )}+ {...props}+ />+ );+}++export {+ Sidebar,+ SidebarContent,+ SidebarFooter,+ SidebarGroup,+ SidebarGroupAction,+ SidebarGroupContent,+ SidebarGroupLabel,+ SidebarHeader,+ SidebarInput,+ SidebarInset,+ SidebarMenu,+ SidebarMenuAction,+ SidebarMenuBadge,+ SidebarMenuButton,+ SidebarMenuItem,+ SidebarMenuSkeleton,+ SidebarMenuSub,+ SidebarMenuSubButton,+ SidebarMenuSubItem,+ SidebarProvider,+ SidebarRail,+ SidebarSeparator,+ SidebarTrigger,+ // eslint-disable-next-line react-refresh/only-export-components+ useSidebar,+};diff --git a/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsxnew file mode 100644index 00000000..32ea0ef7--- /dev/null+++ b/src/components/ui/skeleton.tsx@@ -0,0 +1,13 @@+import { cn } from "@/lib/utils"++function Skeleton({ className, ...props }: React.ComponentProps<"div">) {+ return (+ <div+ data-slot="skeleton"+ className={cn("bg-accent animate-pulse rounded-md", className)}+ {...props}+ />+ )+}++export { Skeleton }diff --git a/src/components/ui/sonner.tsx b/src/components/ui/sonner.tsxnew file mode 100644index 00000000..957524ed--- /dev/null+++ b/src/components/ui/sonner.tsx@@ -0,0 +1,25 @@+"use client"++import { useTheme } from "next-themes"+import { Toaster as Sonner, ToasterProps } from "sonner"++const Toaster = ({ ...props }: ToasterProps) => {+ const { theme = "system" } = useTheme()++ return (+ <Sonner+ theme={theme as ToasterProps["theme"]}+ className="toaster group"+ style={+ {+ "--normal-bg": "var(--popover)",+ "--normal-text": "var(--popover-foreground)",+ "--normal-border": "var(--border)",+ } as React.CSSProperties+ }+ {...props}+ />+ )+}++export { Toaster }diff --git a/src/components/ui/spinner.tsx b/src/components/ui/spinner.tsxnew file mode 100644index 00000000..47b265a7--- /dev/null+++ b/src/components/ui/spinner.tsx@@ -0,0 +1,50 @@+import { cn } from "@/lib/utils";+import { VariantProps, cva } from "class-variance-authority";+import { Loader2 } from "lucide-react";+import React from "react";++const spinnerVariants = cva("flex-col items-center justify-center", {+ variants: {+ show: {+ true: "flex",+ false: "hidden",+ },+ },+ defaultVariants: {+ show: true,+ },+});++const loaderVariants = cva("animate-spin text-primary", {+ variants: {+ size: {+ small: "size-6",+ medium: "size-8",+ large: "size-12",+ },+ },+ defaultVariants: {+ size: "medium",+ },+});++interface SpinnerContentProps+ extends VariantProps<typeof spinnerVariants>,+ VariantProps<typeof loaderVariants> {+ className?: string;+ children?: React.ReactNode;+}++export function Spinner({+ size,+ show,+ children,+ className,+}: SpinnerContentProps) {+ return (+ <span className={spinnerVariants({ show })}>+ <Loader2 className={cn(loaderVariants({ size }), className)} />+ {children}+ </span>+ );+}diff --git a/src/components/ui/switch.tsx b/src/components/ui/switch.tsxnew file mode 100644index 00000000..b0363e3f--- /dev/null+++ b/src/components/ui/switch.tsx@@ -0,0 +1,29 @@+import * as React from "react"+import * as SwitchPrimitive from "@radix-ui/react-switch"++import { cn } from "@/lib/utils"++function Switch({+ className,+ ...props+}: React.ComponentProps<typeof SwitchPrimitive.Root>) {+ return (+ <SwitchPrimitive.Root+ data-slot="switch"+ className={cn(+ "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",+ className+ )}+ {...props}+ >+ <SwitchPrimitive.Thumb+ data-slot="switch-thumb"+ className={cn(+ "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"+ )}+ />+ </SwitchPrimitive.Root>+ )+}++export { Switch }diff --git a/src/components/ui/table.tsx b/src/components/ui/table.tsxnew file mode 100644index 00000000..5a72bd97--- /dev/null+++ b/src/components/ui/table.tsx@@ -0,0 +1,113 @@+"use client";++import * as React from "react";++import { cn } from "@/lib/utils";++function Table({ className, ...props }: React.ComponentProps<"table">) {+ return (+ <div+ data-slot="table-container"+ className="relative w-full overflow-x-auto"+ >+ <table+ data-slot="table"+ className={cn("w-full caption-bottom text-sm", className)}+ {...props}+ />+ </div>+ );+}++function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {+ return (+ <thead+ data-slot="table-header"+ className={cn("[&_tr]:border-b", className)}+ {...props}+ />+ );+}++function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {+ return (+ <tbody+ data-slot="table-body"+ className={cn("[&_tr:last-child]:border-0", className)}+ {...props}+ />+ );+}++function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {+ return (+ <tfoot+ data-slot="table-footer"+ className={cn(+ "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",+ className+ )}+ {...props}+ />+ );+}++function TableRow({ className, ...props }: React.ComponentProps<"tr">) {+ return (+ <tr+ data-slot="table-row"+ className={cn(+ "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",+ className+ )}+ {...props}+ />+ );+}++function TableHead({ className, ...props }: React.ComponentProps<"th">) {+ return (+ <th+ data-slot="table-head"+ className={cn(+ "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",+ className+ )}+ {...props}+ />+ );+}++function TableCell({ className, ...props }: React.ComponentProps<"td">) {+ return (+ <td+ data-slot="table-cell"+ className={cn("p-2 align-middle whitespace-nowrap", className)}+ {...props}+ />+ );+}++function TableCaption({+ className,+ ...props+}: React.ComponentProps<"caption">) {+ return (+ <caption+ data-slot="table-caption"+ className={cn("text-muted-foreground mt-4 text-sm", className)}+ {...props}+ />+ );+}++export {+ Table,+ TableBody,+ TableCaption,+ TableCell,+ TableFooter,+ TableHead,+ TableHeader,+ TableRow,+};diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsxnew file mode 100644index 00000000..3d6f3acf--- /dev/null+++ b/src/components/ui/tabs.tsx@@ -0,0 +1,64 @@+import * as React from "react"+import * as TabsPrimitive from "@radix-ui/react-tabs"++import { cn } from "@/lib/utils"++function Tabs({+ className,+ ...props+}: React.ComponentProps<typeof TabsPrimitive.Root>) {+ return (+ <TabsPrimitive.Root+ data-slot="tabs"+ className={cn("flex flex-col gap-2", className)}+ {...props}+ />+ )+}++function TabsList({+ className,+ ...props+}: React.ComponentProps<typeof TabsPrimitive.List>) {+ return (+ <TabsPrimitive.List+ data-slot="tabs-list"+ className={cn(+ "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",+ className+ )}+ {...props}+ />+ )+}++function TabsTrigger({+ className,+ ...props+}: React.ComponentProps<typeof TabsPrimitive.Trigger>) {+ return (+ <TabsPrimitive.Trigger+ data-slot="tabs-trigger"+ className={cn(+ "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ className+ )}+ {...props}+ />+ )+}++function TabsContent({+ className,+ ...props+}: React.ComponentProps<typeof TabsPrimitive.Content>) {+ return (+ <TabsPrimitive.Content+ data-slot="tabs-content"+ className={cn("flex-1 outline-none", className)}+ {...props}+ />+ )+}++export { Tabs, TabsList, TabsTrigger, TabsContent }diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsxnew file mode 100644index 00000000..7f21b5e7--- /dev/null+++ b/src/components/ui/textarea.tsx@@ -0,0 +1,18 @@+import * as React from "react"++import { cn } from "@/lib/utils"++function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {+ return (+ <textarea+ data-slot="textarea"+ className={cn(+ "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",+ className+ )}+ {...props}+ />+ )+}++export { Textarea }diff --git a/src/components/ui/tooltip.tsx b/src/components/ui/tooltip.tsxnew file mode 100644index 00000000..4ee26b38--- /dev/null+++ b/src/components/ui/tooltip.tsx@@ -0,0 +1,61 @@+"use client"++import * as React from "react"+import * as TooltipPrimitive from "@radix-ui/react-tooltip"++import { cn } from "@/lib/utils"++function TooltipProvider({+ delayDuration = 0,+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {+ return (+ <TooltipPrimitive.Provider+ data-slot="tooltip-provider"+ delayDuration={delayDuration}+ {...props}+ />+ )+}++function Tooltip({+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Root>) {+ return (+ <TooltipProvider>+ <TooltipPrimitive.Root data-slot="tooltip" {...props} />+ </TooltipProvider>+ )+}++function TooltipTrigger({+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {+ return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />+}++function TooltipContent({+ className,+ sideOffset = 0,+ children,+ ...props+}: React.ComponentProps<typeof TooltipPrimitive.Content>) {+ return (+ <TooltipPrimitive.Portal>+ <TooltipPrimitive.Content+ data-slot="tooltip-content"+ sideOffset={sideOffset}+ className={cn(+ "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",+ className+ )}+ {...props}+ >+ {children}+ <TooltipPrimitive.Arrow className="bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" />+ </TooltipPrimitive.Content>+ </TooltipPrimitive.Portal>+ )+}++export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }diff --git a/src/contacts/Avatar.tsx b/src/contacts/Avatar.tsxdeleted file mode 100644index 65682a09..00000000--- a/src/contacts/Avatar.tsx+++ /dev/null@@ -1,33 +0,0 @@-import { Avatar as MuiAvatar } from '@mui/material';-import { useRecordContext } from 'react-admin';--import { Contact } from '../types';--export const Avatar = (props: {- record?: Contact;- width?: number;- height?: number;- title?: string;-}) => {- const record = useRecordContext<Contact>(props);- // If we come from company page, the record is defined (to pass the company as a prop),- // but neither of those fields are and this lead to an error when creating contact.- if (!record?.avatar && !record?.first_name && !record?.last_name) {- return null;- }-- return (- <MuiAvatar- src={record.avatar?.src ?? undefined}- sx={{- width: props.width,- height: props.height,- fontSize: props.height ? '0.6rem' : undefined,- }}- title={props.title}- >- {record.first_name?.charAt(0).toUpperCase()}- {record.last_name?.charAt(0).toUpperCase()}- </MuiAvatar>- );-};diff --git a/src/contacts/ContactAside.tsx b/src/contacts/ContactAside.tsxdeleted file mode 100644index f203609c..00000000--- a/src/contacts/ContactAside.tsx+++ /dev/null@@ -1,197 +0,0 @@-import EmailIcon from '@mui/icons-material/Email';-import LinkedInIcon from '@mui/icons-material/LinkedIn';-import PhoneIcon from '@mui/icons-material/Phone';-import { Box, Divider, Stack, SvgIcon, Typography } from '@mui/material';-import {- ArrayField,- DateField,- DeleteButton,- EditButton,- EmailField,- FunctionField,- ReferenceField,- ReferenceManyField,- SelectField,- ShowButton,- SingleFieldList,- TextField,- UrlField,- useRecordContext,- WithRecord,-} from 'react-admin';-import { AddTask } from '../tasks/AddTask';-import { TasksIterator } from '../tasks/TasksIterator';-import { TagsListEdit } from './TagsListEdit';--import { useLocation } from 'react-router';-import { useConfigurationContext } from '../root/ConfigurationContext';-import { Contact, Sale } from '../types';-import { ReactNode } from 'react';--export const ContactAside = ({ link = 'edit' }: { link?: 'edit' | 'show' }) => {- const location = useLocation();- const { contactGender } = useConfigurationContext();- const record = useRecordContext<Contact>();- if (!record) return null;- return (- <Box ml={4} width={250} minWidth={250}>- <Box mb={2} ml="-5px">- {link === 'edit' ? (- <EditButton label="Edit Contact" />- ) : (- <ShowButton label="Show Contact" />- )}- </Box>- <Typography variant="subtitle2">Personal info</Typography>- <Divider sx={{ mb: 2 }} />- <ArrayField source="email_jsonb">- <SingleFieldList linkType={false} gap={0} direction="column">- <PersonalInfoRow- icon={<EmailIcon color="disabled" fontSize="small" />}- primary={<EmailField source="email" />}- showType- />- </SingleFieldList>- </ArrayField>- {record.has_newsletter && (- <Typography variant="body2" color="textSecondary" pl={3.5}>- Subscribed to newsletter- </Typography>- )}-- {record.linkedin_url && (- <PersonalInfoRow- icon={<LinkedInIcon color="disabled" fontSize="small" />}- primary={- <UrlField- source="linkedin_url"- content="LinkedIn profile"- target="_blank"- rel="noopener"- />- }- />- )}- <ArrayField source="phone_jsonb">- <SingleFieldList linkType={false} gap={0} direction="column">- <PersonalInfoRow- icon={<PhoneIcon color="disabled" fontSize="small" />}- primary={<TextField source="number" />}- showType- />- </SingleFieldList>- </ArrayField>- <SelectField- source="gender"- choices={contactGender}- optionText={choice => (- <PersonalInfoRow- icon={- <SvgIcon- component={choice.icon}- color="disabled"- fontSize="small"- />- }- primary={<span>{choice.label}</span>}- />- )}- optionValue="value"- />- <Typography variant="subtitle2" mt={2}>- Background info- </Typography>- <Divider />- <Typography variant="body2" mt={2}>- {record && record.background}- </Typography>- <Box mt={1} mb={3}>- <Typography- component="span"- variant="body2"- color="textSecondary"- >- Added on- </Typography>{' '}- <DateField- source="first_seen"- options={{ year: 'numeric', month: 'long', day: 'numeric' }}- color="textSecondary"- />- <br />- <Typography- component="span"- variant="body2"- color="textSecondary"- >- Last activity on- </Typography>{' '}- <DateField- source="last_seen"- options={{ year: 'numeric', month: 'long', day: 'numeric' }}- color="textSecondary"- />- <br />- <Typography- component="span"- variant="body2"- color="textSecondary"- >- Followed by- </Typography>{' '}- <ReferenceField source="sales_id" reference="sales">- <FunctionField<Sale>- source="last_name"- render={record =>- `${record.first_name} ${record.last_name}`- }- />- </ReferenceField>- </Box>- <Box mb={3}>- <Typography variant="subtitle2">Tags</Typography>- <Divider />- <TagsListEdit />- </Box>- <Box mb={3}>- <Typography variant="subtitle2">Tasks</Typography>- <Divider />- <ReferenceManyField- target="contact_id"- reference="tasks"- sort={{ field: 'due_date', order: 'ASC' }}- >- <TasksIterator />- </ReferenceManyField>- <AddTask />- </Box>- <DeleteButton redirect={location.state?.from || undefined} />- </Box>- );-};--const PersonalInfoRow = ({- icon,- primary,- showType,-}: {- icon: ReactNode;- primary: ReactNode;- showType?: boolean;-}) => (- <Stack direction="row" alignItems="center" gap={1} minHeight={24}>- {icon}- <Box display="flex" flexWrap="wrap" columnGap={0.5} rowGap={0}>- {primary}- {showType ? (- <WithRecord- render={row =>- row.type !== 'Other' && (- <TextField source="type" color="textSecondary" />- )- }- />- ) : null}- </Box>- </Stack>-);diff --git a/src/contacts/ContactCreate.tsx b/src/contacts/ContactCreate.tsxdeleted file mode 100644index 5e549744..00000000--- a/src/contacts/ContactCreate.tsx+++ /dev/null@@ -1,34 +0,0 @@-import * as React from 'react';-import { CreateBase, Form, Toolbar, useGetIdentity } from 'react-admin';-import { Card, CardContent, Box } from '@mui/material';--import { ContactInputs } from './ContactInputs';-import { Contact } from '../types';--export const ContactCreate = () => {- const { identity } = useGetIdentity();- return (- <CreateBase- redirect="show"- transform={(data: Contact) => ({- ...data,- first_seen: new Date().toISOString(),- last_seen: new Date().toISOString(),- tags: [],- })}- >- <Box mt={2} display="flex">- <Box flex="1">- <Form defaultValues={{ sales_id: identity?.id }}>- <Card>- <CardContent>- <ContactInputs />- </CardContent>- <Toolbar />- </Card>- </Form>- </Box>- </Box>- </CreateBase>- );-};diff --git a/src/contacts/ContactEdit.tsx b/src/contacts/ContactEdit.tsxdeleted file mode 100644index 0cd9ec52..00000000--- a/src/contacts/ContactEdit.tsx+++ /dev/null@@ -1,41 +0,0 @@-import * as React from 'react';-import {- EditBase,- Form,- SaveButton,- Toolbar,- useEditContext,-} from 'react-admin';-import { Card, CardContent, Box } from '@mui/material';--import { ContactInputs } from './ContactInputs';-import { ContactAside } from './ContactAside';-import { Contact } from '../types';--export const ContactEdit = () => (- <EditBase redirect="show">- <ContactEditContent />- </EditBase>-);--const ContactEditContent = () => {- const { isPending, record } = useEditContext<Contact>();- if (isPending || !record) return null;- return (- <Box mt={2} display="flex">- <Box flex="1">- <Form>- <Card>- <CardContent>- <ContactInputs />- </CardContent>- <Toolbar>- <SaveButton />- </Toolbar>- </Card>- </Form>- </Box>- <ContactAside link="show" />- </Box>- );-};diff --git a/src/contacts/ContactEmpty.tsx b/src/contacts/ContactEmpty.tsxdeleted file mode 100644index 67408029..00000000--- a/src/contacts/ContactEmpty.tsx+++ /dev/null@@ -1,37 +0,0 @@-import { Stack, Typography } from '@mui/material';-import { CreateButton } from 'react-admin';-import useAppBarHeight from '../misc/useAppBarHeight';-import { ContactImportButton } from './ContactImportButton';--export const ContactEmpty = () => {- const appbarHeight = useAppBarHeight();- return (- <Stack- justifyContent="center"- alignItems="center"- gap={3}- sx={{- height: `calc(100dvh - ${appbarHeight}px)`,- }}- >- <img src="./img/empty.svg" alt="No contacts found" />- <Stack gap={0} alignItems="center">- <Typography variant="h6" fontWeight="bold">- No contacts found- </Typography>- <Typography- variant="body2"- align="center"- color="text.secondary"- gutterBottom- >- It seems your contact list is empty.- </Typography>- </Stack>- <Stack spacing={2} direction="row">- <CreateButton variant="contained" label="New Contact" />- <ContactImportButton />- </Stack>- </Stack>- );-};diff --git a/src/contacts/ContactImportButton.tsx b/src/contacts/ContactImportButton.tsxdeleted file mode 100644index ac96023b..00000000--- a/src/contacts/ContactImportButton.tsx+++ /dev/null@@ -1,27 +0,0 @@-import UploadIcon from '@mui/icons-material/Upload';-import { useState } from 'react';-import { Button } from 'react-admin';-import { ContactImportDialog } from './ContactImportDialog';--export const ContactImportButton = () => {- const [modalOpen, setModalOpen] = useState(false);-- const handleOpenModal = () => {- setModalOpen(true);- };-- const handleCloseModal = () => {- setModalOpen(false);- };-- return (- <>- <Button- startIcon={<UploadIcon />}- label="Import"- onClick={handleOpenModal}- />- <ContactImportDialog open={modalOpen} onClose={handleCloseModal} />- </>- );-};diff --git a/src/contacts/ContactImportDialog.tsx b/src/contacts/ContactImportDialog.tsxdeleted file mode 100644index bf1a29f2..00000000--- a/src/contacts/ContactImportDialog.tsx+++ /dev/null@@ -1,213 +0,0 @@-import { Box, CircularProgress, Stack, Typography } from '@mui/material';-import Alert from '@mui/material/Alert';-import Dialog from '@mui/material/Dialog';-import DialogActions from '@mui/material/DialogActions';-import DialogContent from '@mui/material/DialogContent';-import DialogTitle from '@mui/material/DialogTitle';-import MuiLink from '@mui/material/Link';-import {- Button,- FileField,- FileInput,- Form,- Toolbar,- useRefresh,-} from 'react-admin';-import { Link } from 'react-router-dom';-import { DialogCloseButton } from '../misc/DialogCloseButton';-import { usePapaParse } from '../misc/usePapaParse';-import { ContactImportSchema, useContactImport } from './useContactImport';--import { MouseEvent, useEffect, useState } from 'react';-import * as sampleCsv from './contacts_export.csv?raw';--const SAMPLE_URL = `data:text/csv;name=crm_contacts_sample.csv;charset=utf-8,${encodeURIComponent(sampleCsv.default)}`;--type ContactImportModalProps = {- open: boolean;- onClose(): void;-};--export function ContactImportDialog({- open,- onClose,-}: ContactImportModalProps) {- const refresh = useRefresh();- const processBatch = useContactImport();- const { importer, parseCsv, reset } = usePapaParse<ContactImportSchema>({- batchSize: 10,- processBatch,- });-- const [file, setFile] = useState<File | null>(null);-- useEffect(() => {- if (importer.state === 'complete') {- refresh();- }- }, [importer.state, refresh]);-- const handleFileChange = (file: File | null) => {- setFile(file);- };-- const startImport = () => {- if (!file) return;- parseCsv(file);- };-- const handleClose = () => {- reset();- onClose();- };-- const handleReset = (e: MouseEvent<HTMLAnchorElement>) => {- e.preventDefault();- reset();- };-- return (- <Dialog open={open} maxWidth="md" fullWidth>- <DialogCloseButton onClose={handleClose} />- <DialogTitle>Import</DialogTitle>- <DialogContent>- <Form>- <Stack spacing={2}>- {importer.state === 'running' && (- <Stack gap={2}>- <Alert- severity="info"- action={- <Box- sx={{- display: 'flex',- height: '100%',- alignItems: 'center',- padding: '0',- }}- >- <CircularProgress size={20} />- </Box>- }- sx={{- alignItems: 'center',- '& .MuiAlert-action': {- padding: 0,- marginRight: 0,- },- }}- >- The import is running, please do not close- this tab.- </Alert>- <Typography variant="body2">- Imported{' '}- <strong>- {importer.importCount} /{' '}- {importer.rowCount}- </strong>{' '}- contacts, with{' '}- <strong>{importer.errorCount}</strong>{' '}- errors.- {importer.remainingTime !== null && (- <>- {' '}- Estimated remaining time:{' '}- <strong>- {millisecondsToTime(- importer.remainingTime- )}- </strong>- .{' '}- <MuiLink- href="#"- onClick={handleReset}- color="error"- >- Stop import- </MuiLink>- </>- )}- </Typography>- </Stack>- )}-- {importer.state === 'error' && (- <Alert severity="error">- Failed to import this file, please make sure- your provided a valid CSV file.- </Alert>- )}-- {importer.state === 'complete' && (- <Alert severity="success">- Contacts import complete. Imported{' '}- {importer.importCount} contacts, with{' '}- {importer.errorCount} errors- </Alert>- )}-- {importer.state === 'idle' && (- <>- <Alert- severity="info"- action={- <Button- component={Link}- label="Download CSV sample"- color="info"- to={SAMPLE_URL}- download={'crm_contacts_sample.csv'}- />- }- >- Here is a sample CSV file you can use as a- template- </Alert>-- <FileInput- source="csv"- label="CSV File"- accept={{ 'text/csv': ['.csv'] }}- onChange={handleFileChange}- >- <FileField source="src" title="title" />- </FileInput>- </>- )}- </Stack>- </Form>- </DialogContent>- <DialogActions- sx={{- p: 0,- justifyContent: 'flex-start',- }}- >- <Toolbar sx={{ width: '100%' }}>- {importer.state === 'idle' ? (- <Button- label="Import"- variant="contained"- onClick={startImport}- disabled={!file}- />- ) : (- <Button- label="Close"- onClick={handleClose}- disabled={importer.state === 'running'}- />- )}- </Toolbar>- </DialogActions>- </Dialog>- );-}--function millisecondsToTime(ms: number) {- var seconds = Math.floor((ms / 1000) % 60);- var minutes = Math.floor((ms / (60 * 1000)) % 60);-- return `${minutes}m ${seconds}s`;-}diff --git a/src/contacts/ContactInputs.tsx b/src/contacts/ContactInputs.tsxdeleted file mode 100644index 6159835d..00000000--- a/src/contacts/ContactInputs.tsx+++ /dev/null@@ -1,238 +0,0 @@-import * as React from 'react';-import {- Divider,- Stack,- Typography,- useMediaQuery,- useTheme,-} from '@mui/material';-import {- ArrayInput,- AutocompleteInput,- BooleanInput,- RadioButtonGroupInput,- ReferenceInput,- SelectInput,- SimpleFormIterator,- TextInput,- email,- required,- useCreate,- useGetIdentity,- useNotify,-} from 'react-admin';-import { useFormContext } from 'react-hook-form';--import { isLinkedinUrl } from '../misc/isLinkedInUrl';-import { useConfigurationContext } from '../root/ConfigurationContext';-import { Sale } from '../types';-import { Avatar } from './Avatar';--export const ContactInputs = () => {- const theme = useTheme();- const isMobile = useMediaQuery(theme.breakpoints.down('md'));-- return (- <Stack gap={2} p={1}>- <Avatar />- <Stack gap={3} direction={isMobile ? 'column' : 'row'}>- <Stack gap={4} flex={4}>- <ContactIdentityInputs />- <ContactPositionInputs />- </Stack>- <Divider- orientation={isMobile ? 'horizontal' : 'vertical'}- flexItem- />- <Stack gap={4} flex={5}>- <ContactPersonalInformationInputs />- <ContactMiscInputs />- </Stack>- </Stack>- </Stack>- );-};--const ContactIdentityInputs = () => {- const { contactGender } = useConfigurationContext();- return (- <Stack>- <Typography variant="h6">Identity</Typography>- <RadioButtonGroupInput- label={false}- source="gender"- choices={contactGender}- helperText={false}- optionText="label"- optionValue="value"- sx={{ '& .MuiRadio-root': { paddingY: 0 } }}- defaultValue={contactGender[0].value}- />- <TextInput- source="first_name"- validate={required()}- helperText={false}- />- <TextInput- source="last_name"- validate={required()}- helperText={false}- />- </Stack>- );-};--const ContactPositionInputs = () => {- const [create] = useCreate();- const { identity } = useGetIdentity();- const notify = useNotify();- const handleCreateCompany = async (name?: string) => {- if (!name) return;- try {- const newCompany = await create(- 'companies',- {- data: {- name,- sales_id: identity?.id,- created_at: new Date().toISOString(),- },- },- { returnPromise: true }- );- return newCompany;- } catch (error) {- notify('An error occurred while creating the company', {- type: 'error',- });- }- };- return (- <Stack>- <Typography variant="h6">Position</Typography>- <TextInput source="title" helperText={false} />- <ReferenceInput source="company_id" reference="companies">- <AutocompleteInput- optionText="name"- onCreate={handleCreateCompany}- helperText={false}- />- </ReferenceInput>- </Stack>- );-};--const ContactPersonalInformationInputs = () => {- const { getValues, setValue } = useFormContext();-- // set first and last name based on email- const handleEmailChange = (email: string) => {- const { first_name, last_name } = getValues();- if (first_name || last_name || !email) return;- const [first, last] = email.split('@')[0].split('.');- setValue('first_name', first.charAt(0).toUpperCase() + first.slice(1));- setValue(- 'last_name',- last ? last.charAt(0).toUpperCase() + last.slice(1) : ''- );- };-- const handleEmailPaste: React.ClipboardEventHandler<HTMLDivElement> = e => {- const email = e.clipboardData?.getData('text/plain');- handleEmailChange(email);- };-- const handleEmailBlur = (e: React.FocusEvent<HTMLInputElement>) => {- const email = e.target.value;- handleEmailChange(email);- };-- return (- <Stack>- <Typography variant="h6">Personal info</Typography>- <ArrayInput- source="email_jsonb"- label="Email addresses"- helperText={false}- >- <SimpleFormIterator inline disableReordering>- <TextInput- source="email"- helperText={false}- validate={email()}- onPaste={handleEmailPaste}- onBlur={handleEmailBlur}- />- <SelectInput- source="type"- helperText={false}- optionText="id"- choices={personalInfoTypes}- defaultValue="Work"- fullWidth={false}- sx={{ width: 100, minWidth: 100 }}- />- </SimpleFormIterator>- </ArrayInput>- <ArrayInput- source="phone_jsonb"- label="Phone numbers"- helperText={false}- >- <SimpleFormIterator inline disableReordering>- <TextInput source="number" helperText={false} />- <SelectInput- source="type"- helperText={false}- optionText="id"- choices={personalInfoTypes}- defaultValue="Work"- fullWidth={false}- sx={{ width: 100, minWidth: 100 }}- />- </SimpleFormIterator>- </ArrayInput>- <TextInput- source="linkedin_url"- label="Linkedin URL"- helperText={false}- validate={isLinkedinUrl}- />- </Stack>- );-};--const personalInfoTypes = [{ id: 'Work' }, { id: 'Home' }, { id: 'Other' }];--const ContactMiscInputs = () => {- return (- <Stack>- <Typography variant="h6">Misc</Typography>- <TextInput- source="background"- label="Background info (bio, how you met, etc)"- multiline- helperText={false}- />- <BooleanInput source="has_newsletter" helperText={false} />- <ReferenceInput- reference="sales"- source="sales_id"- sort={{ field: 'last_name', order: 'ASC' }}- filter={{- 'disabled@neq': true,- }}- >- <SelectInput- helperText={false}- label="Account manager"- optionText={saleOptionRenderer}- validate={required()}- />- </ReferenceInput>- </Stack>- );-};--const saleOptionRenderer = (choice: Sale) =>- `${choice.first_name} ${choice.last_name}`;diff --git a/src/contacts/ContactList.tsx b/src/contacts/ContactList.tsxdeleted file mode 100644index dcd8f24e..00000000--- a/src/contacts/ContactList.tsx+++ /dev/null@@ -1,136 +0,0 @@-/* eslint-disable import/no-anonymous-default-export */-import { Card, Stack } from '@mui/material';-import jsonExport from 'jsonexport/dist';-import type { Exporter } from 'react-admin';-import {- BulkActionsToolbar,- BulkDeleteButton,- BulkExportButton,- CreateButton,- downloadCSV,- ExportButton,- ListBase,- ListToolbar,- Pagination,- SortButton,- Title,- TopToolbar,- useGetIdentity,- useListContext,-} from 'react-admin';--import { Company, Contact, Sale, Tag } from '../types';-import { ContactEmpty } from './ContactEmpty';-import { ContactImportButton } from './ContactImportButton';-import { ContactListContent } from './ContactListContent';-import { ContactListFilter } from './ContactListFilter';--export const ContactList = () => {- const { identity } = useGetIdentity();-- if (!identity) return null;-- return (- <ListBase- perPage={25}- sort={{ field: 'last_seen', order: 'DESC' }}- exporter={exporter}- >- <ContactListLayout />- </ListBase>- );-};--const ContactListLayout = () => {- const { data, isPending, filterValues } = useListContext();- const { identity } = useGetIdentity();-- const hasFilters = filterValues && Object.keys(filterValues).length > 0;-- if (!identity || isPending) return null;-- if (!data?.length && !hasFilters) return <ContactEmpty />;-- return (- <Stack direction="row">- <ContactListFilter />- <Stack sx={{ width: '100%' }}>- <Title title={'Contacts'} />- <ListToolbar actions={<ContactListActions />} />- <BulkActionsToolbar>- <BulkExportButton />- <BulkDeleteButton />- </BulkActionsToolbar>- <Card>- <ContactListContent />- </Card>- <Pagination rowsPerPageOptions={[10, 25, 50, 100]} />- </Stack>- </Stack>- );-};--const ContactListActions = () => (- <TopToolbar>- <SortButton fields={['last_name', 'first_name', 'last_seen']} />- <ContactImportButton />- <ExportButton />- <CreateButton- variant="contained"- label="New Contact"- sx={{ marginLeft: 2 }}- />- </TopToolbar>-);--const exporter: Exporter<Contact> = async (records, fetchRelatedRecords) => {- const companies = await fetchRelatedRecords<Company>(- records,- 'company_id',- 'companies'- );- const sales = await fetchRelatedRecords<Sale>(records, 'sales_id', 'sales');- const tags = await fetchRelatedRecords<Tag>(records, 'tags', 'tags');-- const contacts = records.map(contact => {- const exportedContact = {- ...contact,- company:- contact.company_id != null- ? companies[contact.company_id].name- : undefined,- sales: `${sales[contact.sales_id].first_name} ${- sales[contact.sales_id].last_name- }`,- tags: contact.tags.map(tagId => tags[tagId].name).join(', '),- email_work: contact.email_jsonb?.find(- email => email.type === 'Work'- )?.email,- email_home: contact.email_jsonb?.find(- email => email.type === 'Home'- )?.email,- email_other: contact.email_jsonb?.find(- email => email.type === 'Other'- )?.email,- email_jsonb: JSON.stringify(contact.email_jsonb),- email_fts: undefined,- phone_work: contact.phone_jsonb?.find(- phone => phone.type === 'Work'- )?.number,- phone_home: contact.phone_jsonb?.find(- phone => phone.type === 'Home'- )?.number,- phone_other: contact.phone_jsonb?.find(- phone => phone.type === 'Other'- )?.number,- phone_jsonb: JSON.stringify(contact.phone_jsonb),- phone_fts: undefined,- };- delete exportedContact.email_fts;- delete exportedContact.phone_fts;- return exportedContact;- });- return jsonExport(contacts, {}, (_err: any, csv: string) => {- downloadCSV(csv, 'contacts');- });-};diff --git a/src/contacts/ContactListContent.tsx b/src/contacts/ContactListContent.tsxdeleted file mode 100644index 127f772c..00000000--- a/src/contacts/ContactListContent.tsx+++ /dev/null@@ -1,139 +0,0 @@-/* eslint-disable import/no-anonymous-default-export */-import type { Theme } from '@mui/material';-import {- Checkbox,- List,- ListItem,- ListItemAvatar,- ListItemButton,- ListItemIcon,- ListItemSecondaryAction,- ListItemText,- Typography,- useMediaQuery,-} from '@mui/material';-import { formatRelative } from 'date-fns';-import {- RecordContextProvider,- ReferenceField,- SimpleListLoading,- TextField,- useListContext,-} from 'react-admin';-import { Link } from 'react-router-dom';--import { Status } from '../misc/Status';-import { Contact } from '../types';-import { Avatar } from './Avatar';-import { TagsList } from './TagsList';--export const ContactListContent = () => {- const {- data: contacts,- error,- isPending,- onToggleItem,- selectedIds,- } = useListContext<Contact>();- const isSmall = useMediaQuery((theme: Theme) =>- theme.breakpoints.down('md')- );- if (isPending) {- return <SimpleListLoading hasLeftAvatarOrIcon hasSecondaryText />;- }- if (error) {- return null;- }- const now = Date.now();-- return (- <>- <List dense>- {contacts.map(contact => (- <RecordContextProvider key={contact.id} value={contact}>- <ListItem disablePadding>- <ListItemButton- component={Link}- to={`/contacts/${contact.id}/show`}- >- <ListItemIcon sx={{ minWidth: '2.5em' }}>- <Checkbox- edge="start"- checked={selectedIds.includes(- contact.id- )}- tabIndex={-1}- disableRipple- onClick={e => {- e.stopPropagation();- onToggleItem(contact.id);- }}- />- </ListItemIcon>- <ListItemAvatar>- <Avatar />- </ListItemAvatar>- <ListItemText- primary={`${contact.first_name} ${contact.last_name ?? ''}`}- secondary={- <>- {contact.title}- {contact.title &&- contact.company_id != null &&- ' at '}- {contact.company_id != null && (- <ReferenceField- source="company_id"- reference="companies"- link={false}- >- <TextField source="name" />- </ReferenceField>- )}- {contact.nb_tasks- ? ` - ${contact.nb_tasks} task${- contact.nb_tasks > 1- ? 's'- : ''- }`- : ''}- - <TagsList />- </>- }- />- {contact.last_seen && (- <ListItemSecondaryAction- sx={{- top: '10px',- transform: 'none',- }}- >- <Typography- variant="body2"- color="textSecondary"- title={contact.last_seen}- >- {!isSmall && 'last activity '}- {formatRelative(- contact.last_seen,- now- )}{' '}- <Status status={contact.status} />- </Typography>- </ListItemSecondaryAction>- )}- </ListItemButton>- </ListItem>- </RecordContextProvider>- ))}-- {contacts.length === 0 && (- <ListItem>- <ListItemText primary="No contacts found" />- </ListItem>- )}- </List>- </>- );-};diff --git a/src/contacts/ContactListFilter.tsx b/src/contacts/ContactListFilter.tsxdeleted file mode 100644index 84ae4df0..00000000--- a/src/contacts/ContactListFilter.tsx+++ /dev/null@@ -1,125 +0,0 @@-/* eslint-disable import/no-anonymous-default-export */-import * as React from 'react';-import {- FilterList,- FilterLiveSearch,- FilterListItem,- useGetIdentity,- useGetList,-} from 'react-admin';-import { Box, Chip } from '@mui/material';-import AccessTimeIcon from '@mui/icons-material/AccessTime';-import TrendingUpIcon from '@mui/icons-material/TrendingUp';-import LocalOfferIcon from '@mui/icons-material/LocalOffer';-import AssignmentTurnedInIcon from '@mui/icons-material/AssignmentTurnedIn';-import SupervisorAccountIcon from '@mui/icons-material/SupervisorAccount';-import { endOfYesterday, startOfWeek, startOfMonth, subMonths } from 'date-fns';--import { Status } from '../misc/Status';-import { useConfigurationContext } from '../root/ConfigurationContext';--export const ContactListFilter = () => {- const { noteStatuses } = useConfigurationContext();- const { identity } = useGetIdentity();- const { data } = useGetList('tags', {- pagination: { page: 1, perPage: 10 },- sort: { field: 'name', order: 'ASC' },- });- return (- <Box width="13em" minWidth="13em" order={-1} mr={2} mt={5}>- <FilterLiveSearch- hiddenLabel- sx={{- display: 'block',- '& .MuiFilledInput-root': { width: '100%' },- }}- placeholder="Search name, company, etc."- />- <FilterList label="Last activity" icon={<AccessTimeIcon />}>- <FilterListItem- label="Today"- value={{- 'last_seen@gte': endOfYesterday().toISOString(),- 'last_seen@lte': undefined,- }}- />- <FilterListItem- label="This week"- value={{- 'last_seen@gte': startOfWeek(new Date()).toISOString(),- 'last_seen@lte': undefined,- }}- />- <FilterListItem- label="Before this week"- value={{- 'last_seen@gte': undefined,- 'last_seen@lte': startOfWeek(new Date()).toISOString(),- }}- />- <FilterListItem- label="Before this month"- value={{- 'last_seen@gte': undefined,- 'last_seen@lte': startOfMonth(new Date()).toISOString(),- }}- />- <FilterListItem- label="Before last month"- value={{- 'last_seen@gte': undefined,- 'last_seen@lte': subMonths(- startOfMonth(new Date()),- 1- ).toISOString(),- }}- />- </FilterList>- <FilterList label="Status" icon={<TrendingUpIcon />}>- {noteStatuses.map(status => (- <FilterListItem- key={status.value}- label={- <>- {status.label} <Status status={status.value} />- </>- }- value={{ status: status.value }}- />- ))}- </FilterList>- <FilterList label="Tags" icon={<LocalOfferIcon />}>- {data &&- data.map(record => (- <FilterListItem- key={record.id}- label={- <Chip- label={record?.name}- size="small"- style={{- backgroundColor: record?.color,- border: 0,- cursor: 'pointer',- }}- />- }- value={{ 'tags@cs': `{${record.id}}` }}- />- ))}- </FilterList>- <FilterList label="Tasks" icon={<AssignmentTurnedInIcon />}>- <FilterListItem- label="With pending tasks"- value={{ 'nb_tasks@gt': 0 }}- />- </FilterList>- <FilterList- label="Account manager"- icon={<SupervisorAccountIcon />}- >- <FilterListItem label="Me" value={{ sales_id: identity?.id }} />- </FilterList>- </Box>- );-};diff --git a/src/contacts/ContactShow.tsx b/src/contacts/ContactShow.tsxdeleted file mode 100644index 71adaf4d..00000000--- a/src/contacts/ContactShow.tsx+++ /dev/null@@ -1,78 +0,0 @@-import * as React from 'react';-import {- ShowBase,- TextField,- ReferenceField,- ReferenceManyField,- useShowContext,-} from 'react-admin';-import { Box, Card, CardContent, Typography } from '@mui/material';--import { Avatar } from './Avatar';-import { ContactAside } from './ContactAside';-import { NotesIterator } from '../notes';-import { Contact } from '../types';-import { CompanyAvatar } from '../companies/CompanyAvatar';--export const ContactShow = () => (- <ShowBase>- <ContactShowContent />- </ShowBase>-);--const ContactShowContent = () => {- const { record, isPending } = useShowContext<Contact>();- if (isPending || !record) return null;-- return (- <Box mt={2} mb={2} display="flex">- <Box flex="1">- <Card>- <CardContent>- <Box display="flex">- <Avatar />- <Box ml={2} flex="1">- <Typography variant="h5">- {record.first_name} {record.last_name}- </Typography>- <Typography variant="body2" component="div">- {record.title}- {record.title &&- record.company_id != null &&- ' at '}- {record.company_id != null && (- <ReferenceField- source="company_id"- reference="companies"- link="show"- >- <TextField source="name" />- </ReferenceField>- )}- </Typography>- </Box>- <Box>- <ReferenceField- source="company_id"- reference="companies"- link="show"- sx={{ '& a': { textDecoration: 'none' } }}- >- <CompanyAvatar />- </ReferenceField>- </Box>- </Box>- <ReferenceManyField- target="contact_id"- reference="contactNotes"- sort={{ field: 'date', order: 'DESC' }}- >- <NotesIterator showStatus reference="contacts" />- </ReferenceManyField>- </CardContent>- </Card>- </Box>- <ContactAside />- </Box>- );-};diff --git a/src/contacts/TagsList.stories.tsx b/src/contacts/TagsList.stories.tsxdeleted file mode 100644index 05ff2d81..00000000--- a/src/contacts/TagsList.stories.tsx+++ /dev/null@@ -1,46 +0,0 @@-import type { Meta, StoryObj } from '@storybook/react';-import { DataProviderContext, RecordContextProvider } from 'react-admin';-import { MemoryRouter } from 'react-router-dom';-import fakerestDataProvider from 'ra-data-fakerest';-import { QueryClient, QueryClientProvider } from '@tanstack/react-query';-import { random } from 'faker/locale/en_US';--import { TagsList } from './TagsList';-import { generateTags } from '../providers/fakerest/dataGenerator/tags';-import { generateCompanies } from '../providers/fakerest/dataGenerator/companies';-import { generateContacts } from '../providers/fakerest/dataGenerator/contacts';-import { Db } from '../providers/fakerest/dataGenerator/types';--const db = {} as Db;-db.tags = generateTags(db);-db.companies = generateCompanies(db, 1);-db.contacts = generateContacts(db, 1);-db.contacts[0].tags = random.arrayElements(db.tags, 3).map(tag => tag.id);--const meta: Meta<typeof TagsList> = {- component: TagsList,- decorators: [- Story => {- return (- <MemoryRouter>- <QueryClientProvider client={new QueryClient()}>- <DataProviderContext.Provider- value={fakerestDataProvider(db)}- >- <RecordContextProvider value={db.contacts[0]}>- <Story />- </RecordContextProvider>- </DataProviderContext.Provider>- </QueryClientProvider>- </MemoryRouter>- );- },- ],-};--export default meta;-type Story = StoryObj<typeof TagsList>;--export const Basic: Story = {- args: {},-};diff --git a/src/contacts/TagsList.tsx b/src/contacts/TagsList.tsxdeleted file mode 100644index e3fb5901..00000000--- a/src/contacts/TagsList.tsx+++ /dev/null@@ -1,33 +0,0 @@-import * as React from 'react';-import {- ReferenceArrayField,- SingleFieldList,- ChipField,- useRecordContext,-} from 'react-admin';--const ColoredChipField = (props: any) => {- const record = useRecordContext();- if (!record) return null;- return (- <ChipField- record={record}- {...props}- style={{ backgroundColor: record.color, border: 0 }}- component="span"- />- );-};--export const TagsList = () => (- <ReferenceArrayField- sx={{ display: 'inline-block' }}- resource="contacts"- source="tags"- reference="tags"- >- <SingleFieldList linkType={false} component="span">- <ColoredChipField source="name" variant="outlined" size="small" />- </SingleFieldList>- </ReferenceArrayField>-);diff --git a/src/contacts/TagsListEdit.tsx b/src/contacts/TagsListEdit.tsxdeleted file mode 100644index b1e1e953..00000000--- a/src/contacts/TagsListEdit.tsx+++ /dev/null@@ -1,166 +0,0 @@-import ControlPointIcon from '@mui/icons-material/ControlPoint';-import EditIcon from '@mui/icons-material/Edit';-import { Box, Chip, Menu, MenuItem } from '@mui/material';-import * as React from 'react';-import { useState } from 'react';-import {- Identifier,- useGetList,- useGetMany,- useRecordContext,- useUpdate,-} from 'react-admin';--import { TagChip } from '../tags/TagChip';-import { TagCreateModal } from '../tags/TagCreateModal';-import { Contact, Tag } from '../types';--export const TagsListEdit = () => {- const record = useRecordContext<Contact>();- const [open, setOpen] = useState(false);- const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);-- const { data: allTags, isPending: isPendingAllTags } = useGetList<Tag>(- 'tags',- {- pagination: { page: 1, perPage: 10 },- sort: { field: 'name', order: 'ASC' },- }- );- const { data: tags, isPending: isPendingRecordTags } = useGetMany<Tag>(- 'tags',- { ids: record?.tags },- { enabled: record && record.tags && record.tags.length > 0 }- );- const [update] = useUpdate<Contact>();-- const unselectedTags =- allTags &&- record &&- allTags.filter(tag => !record.tags.includes(tag.id));-- const handleMenuOpen = (event: React.MouseEvent<HTMLDivElement>) => {- setAnchorEl(event.currentTarget);- };-- const handleMenuClose = () => {- setAnchorEl(null);- };-- const handleTagAdd = (id: Identifier) => {- if (!record) {- throw new Error('No contact record found');- }- const tags = [...record.tags, id];- update('contacts', {- id: record.id,- data: { tags },- previousData: record,- });- setAnchorEl(null);- };-- const handleTagDelete = async (id: Identifier) => {- if (!record) {- throw new Error('No contact record found');- }- const tags = record.tags.filter(tagId => tagId !== id);- await update('contacts', {- id: record.id,- data: { tags },- previousData: record,- });- };-- const openTagCreateDialog = () => {- setOpen(true);- setAnchorEl(null);- };-- const handleTagCreateClose = () => {- setOpen(false);- };-- const handleTagCreated = React.useCallback(- async (tag: Tag) => {- if (!record) {- throw new Error('No contact record found');- }-- await update(- 'contacts',- {- id: record.id,- data: { tags: [...record.tags, tag.id] },- previousData: record,- },- {- onSuccess: () => {- setOpen(false);- },- }- );- },- [update, record]- );-- if (isPendingRecordTags || isPendingAllTags) return null;- return (- <>- {tags?.map(tag => (- <Box mt={1} mb={1} key={tag.id}>- <TagChip- tag={tag}- onUnlink={() => handleTagDelete(tag.id)}- key={tag.id}- />- </Box>- ))}- <Box mt={1}>- <Chip- icon={<ControlPointIcon />}- size="small"- variant="outlined"- onClick={handleMenuOpen}- label="Add tag"- color="primary"- />- </Box>- <Menu- open={Boolean(anchorEl)}- onClose={handleMenuClose}- anchorEl={anchorEl}- >- {unselectedTags?.map(tag => (- <MenuItem key={tag.id} onClick={() => handleTagAdd(tag.id)}>- <Chip- size="small"- variant="outlined"- label={tag.name}- style={{- backgroundColor: tag.color,- border: 0,- }}- onClick={() => handleTagAdd(tag.id)}- />- </MenuItem>- ))}- <MenuItem onClick={openTagCreateDialog}>- <Chip- icon={<EditIcon />}- size="small"- variant="outlined"- onClick={openTagCreateDialog}- color="primary"- label="Create new tag"- />- </MenuItem>- </Menu>- <TagCreateModal- open={open}- onClose={handleTagCreateClose}- onSuccess={handleTagCreated}- />- </>- );-};diff --git a/src/contacts/index.tsx b/src/contacts/index.tsxdeleted file mode 100644index 6486bffb..00000000--- a/src/contacts/index.tsx+++ /dev/null@@ -1,15 +0,0 @@-/* eslint-disable import/no-anonymous-default-export */-import { ContactShow } from './ContactShow';-import { ContactList } from './ContactList';-import { ContactEdit } from './ContactEdit';-import { ContactCreate } from './ContactCreate';-import { Contact } from '../types';--export default {- list: ContactList,- show: ContactShow,- edit: ContactEdit,- create: ContactCreate,- recordRepresentation: (record: Contact) =>- record?.first_name + ' ' + record?.last_name,-};diff --git a/src/contacts/useContactImport.tsx b/src/contacts/useContactImport.tsxdeleted file mode 100644index 13640e42..00000000--- a/src/contacts/useContactImport.tsx+++ /dev/null@@ -1,204 +0,0 @@-import { useCallback, useMemo } from 'react';-import { useDataProvider, useGetIdentity } from 'react-admin';-import type { DataProvider } from 'react-admin';-import type { Company, Tag } from '../types';--export type ContactImportSchema = {- first_name: string;- last_name: string;- gender: string;- title: string;- company: string;- email_work: string;- email_home: string;- email_other: string;- phone_work: string;- phone_home: string;- phone_other: string;- background: string;- avatar: string;- first_seen: string;- last_seen: string;- has_newsletter: string;- status: string;- tags: string;- linkedin_url: string;-};--export function useContactImport() {- const today = new Date().toISOString();- const user = useGetIdentity();- const dataProvider = useDataProvider();-- // company cache to avoid creating the same company multiple times and costly roundtrips- // Cache is dependent of dataProvider, so it's safe to use it as a dependency- const companiesCache = useMemo(- () => new Map<string, Company>(),- // eslint-disable-next-line react-hooks/exhaustive-deps- [dataProvider]- );- const getCompanies = useCallback(- async (names: string[]) =>- fetchRecordsWithCache<Company>(- 'companies',- companiesCache,- names,- name => ({- name,- created_at: new Date().toISOString(),- sales_id: user?.identity?.id,- }),- dataProvider- ),- [companiesCache, user?.identity?.id, dataProvider]- );-- // Tags cache to avoid creating the same tag multiple times and costly roundtrips- // Cache is dependent of dataProvider, so it's safe to use it as a dependency- // eslint-disable-next-line react-hooks/exhaustive-deps- const tagsCache = useMemo(() => new Map<string, Tag>(), [dataProvider]);- const getTags = useCallback(- async (names: string[]) =>- fetchRecordsWithCache<Tag>(- 'tags',- tagsCache,- names,- name => ({- name,- color: '#f9f9f9',- }),- dataProvider- ),- [tagsCache, dataProvider]- );-- const processBatch = useCallback(- async (batch: ContactImportSchema[]) => {- const [companies, tags] = await Promise.all([- getCompanies(- batch- .map(contact => contact.company?.trim())- .filter(name => name)- ),- getTags(batch.flatMap(batch => parseTags(batch.tags))),- ]);-- await Promise.all(- batch.map(- async ({- first_name,- last_name,- gender,- title,- email_work,- email_home,- email_other,- phone_work,- phone_home,- phone_other,- background,- first_seen,- last_seen,- has_newsletter,- status,- company: companyName,- tags: tagNames,- linkedin_url,- }) => {- const email_jsonb = [- { email: email_work, type: 'Work' },- { email: email_home, type: 'Home' },- { email: email_other, type: 'Other' },- ].filter(({ email }) => email);- const phone_jsonb = [- { number: phone_work, type: 'Work' },- { number: phone_home, type: 'Home' },- { number: phone_other, type: 'Other' },- ].filter(({ number }) => number);- const company = companyName?.trim()- ? companies.get(companyName.trim())- : undefined;- const tagList = parseTags(tagNames)- .map(name => tags.get(name))- .filter((tag): tag is Tag => !!tag);-- return dataProvider.create('contacts', {- data: {- first_name,- last_name,- gender,- title,- email_jsonb,- phone_jsonb,- background,- first_seen: first_seen- ? new Date(first_seen).toISOString()- : today,- last_seen: last_seen- ? new Date(last_seen).toISOString()- : today,- has_newsletter,- status,- company_id: company?.id,- tags: tagList.map(tag => tag.id),- sales_id: user?.identity?.id,- linkedin_url,- },- });- }- )- );- },- [dataProvider, getCompanies, getTags, user?.identity?.id, today]- );-- return processBatch;-}--const fetchRecordsWithCache = async function <T>(- resource: string,- cache: Map<string, T>,- names: string[],- getCreateData: (name: string) => Partial<T>,- dataProvider: DataProvider-) {- const trimmedNames = [...new Set(names.map(name => name.trim()))];- const uncachedRecordNames = trimmedNames.filter(name => !cache.has(name));-- // check the backend for existing records- if (uncachedRecordNames.length > 0) {- const response = await dataProvider.getList(resource, {- filter: {- 'name@in': `(${uncachedRecordNames.map(name => `"${name}"`).join(',')})`,- },- pagination: { page: 1, perPage: trimmedNames.length },- sort: { field: 'id', order: 'ASC' },- });- for (const record of response.data) {- cache.set(record.name.trim(), record);- }- }-- // create missing records in parallel- await Promise.all(- uncachedRecordNames.map(async name => {- if (cache.has(name)) return;- const response = await dataProvider.create(resource, {- data: getCreateData(name),- });- cache.set(name, response.data);- })- );-- // now all records are in cache, return a map of all records- return trimmedNames.reduce((acc, name) => {- acc.set(name, cache.get(name) as T);- return acc;- }, new Map<string, T>());-};--const parseTags = (tags: string) =>- tags- ?.split(',')- ?.map((tag: string) => tag.trim())- ?.filter((tag: string) => tag) ?? [];diff --git a/src/dashboard/Dashboard.tsx b/src/dashboard/Dashboard.tsxdeleted file mode 100644index 949fe7d0..00000000--- a/src/dashboard/Dashboard.tsx+++ /dev/null@@ -1,69 +0,0 @@-import { Grid, Stack } from '@mui/material';-import { DashboardActivityLog } from './DashboardActivityLog';-import { DealsChart } from './DealsChart';-import { HotContacts } from './HotContacts';-import { TasksList } from './TasksList';-import { Welcome } from './Welcome';-import { useGetList } from 'react-admin';-import { Contact, ContactNote } from '../types';-import { DashboardStepper } from './DashboardStepper';--export const Dashboard = () => {- const {- data: dataContact,- total: totalContact,- isPending: isPendingContact,- } = useGetList<Contact>('contacts', {- pagination: { page: 1, perPage: 1 },- });-- const { total: totalContactNotes, isPending: isPendingContactNotes } =- useGetList<ContactNote>('contactNotes', {- pagination: { page: 1, perPage: 1 },- });-- const { total: totalDeal, isPending: isPendingDeal } = useGetList<Contact>(- 'deals',- {- pagination: { page: 1, perPage: 1 },- }- );-- const isPending =- isPendingContact || isPendingContactNotes || isPendingDeal;-- if (isPending) {- return null;- }-- if (!totalContact) {- return <DashboardStepper step={1} />;- }-- if (!totalContactNotes) {- return <DashboardStepper step={2} contactId={dataContact?.[0]?.id} />;- }-- return (- <Grid container spacing={2} mt={1} rowGap={4}>- <Grid item xs={12} md={3}>- <Stack gap={4}>- {import.meta.env.VITE_IS_DEMO === 'true' ? (- <Welcome />- ) : null}- <HotContacts />- </Stack>- </Grid>- <Grid item xs={12} md={6}>- <Stack gap={4}>- {totalDeal ? <DealsChart /> : null}- <DashboardActivityLog />- </Stack>- </Grid>-- <Grid item xs={12} md={3}>- <TasksList />- </Grid>- </Grid>- );-};diff --git a/src/dashboard/DashboardActivityLog.tsx b/src/dashboard/DashboardActivityLog.tsxdeleted file mode 100644index 057820c3..00000000--- a/src/dashboard/DashboardActivityLog.tsx+++ /dev/null@@ -1,24 +0,0 @@-import AccessTimeIcon from '@mui/icons-material/AccessTime';-import Box from '@mui/material/Box';-import Card from '@mui/material/Card';-import Typography from '@mui/material/Typography';-import { ActivityLog } from '../activity/ActivityLog';-import { Stack } from '@mui/material';--export function DashboardActivityLog() {- return (- <Stack>- <Box display="flex" alignItems="center" mb={1}>- <Box mr={1} display="flex">- <AccessTimeIcon color="disabled" fontSize="medium" />- </Box>- <Typography variant="h5" color="textSecondary">- Latest Activity- </Typography>- </Box>- <Card sx={{ mb: 2, px: 2 }}>- <ActivityLog pageSize={10} />- </Card>- </Stack>- );-}diff --git a/src/dashboard/DashboardStepper.tsx b/src/dashboard/DashboardStepper.tsxdeleted file mode 100644index ebd4914b..00000000--- a/src/dashboard/DashboardStepper.tsx+++ /dev/null@@ -1,125 +0,0 @@-import {- Box,- Card,- CardContent,- LinearProgress,- Stack,- Typography,- Button,-} from '@mui/material';-import useAppBarHeight from '../misc/useAppBarHeight';-import CheckCircleIcon from '@mui/icons-material/CheckCircle';-import RadioButtonUncheckedOutlinedIcon from '@mui/icons-material/RadioButtonUncheckedOutlined';-import { CreateButton, Identifier } from 'react-admin';-import { ContactImportButton } from '../contacts/ContactImportButton';-import { Link } from 'react-router-dom';--export const DashboardStepper = ({- step,- contactId,-}: {- step: number;- contactId?: Identifier;-}) => {- const appbarHeight = useAppBarHeight();- return (- <Stack- justifyContent="center"- alignItems="center"- sx={{- height: `calc(100dvh - ${appbarHeight}px)`,- }}- >- <Card- sx={{- width: '100%',- maxWidth: '600px',- }}- >- <CardContent>- <Stack- direction="row"- alignItems="center"- justifyContent="space-between"- mb={2}- >- <Typography variant="h6" fontWeight="bold">- What's next?- </Typography>- <Box sx={{ width: '150px' }}>- <LinearProgress- variant="determinate"- value={(step / 3) * 100}- color="success"- />- <Typography align="right">{step}/3 done</Typography>- </Box>- </Stack>- <Stack gap={3}>- <Stack gap={2} direction="row">- <CheckCircleIcon color="success" fontSize="small" />- <Typography fontWeight="bold">- Install Atomic CRM- </Typography>- </Stack>- <Stack gap={2} direction="row">- {step > 1 ? (- <CheckCircleIcon- color="success"- fontSize="small"- />- ) : (- <RadioButtonUncheckedOutlinedIcon- color="disabled"- fontSize="small"- />- )}-- <Stack gap={1}>- <Typography fontWeight="bold">- Add your first contact- </Typography>-- <Stack spacing={2} direction="row">- <CreateButton- variant="contained"- label="New Contact"- resource="contacts"- size="small"- />- <ContactImportButton />- </Stack>- </Stack>- </Stack>- <Stack gap={2} direction="row">- <RadioButtonUncheckedOutlinedIcon- fontSize="small"- color="disabled"- />- <Stack gap={1}>- <Typography fontWeight="bold">- Add your first note- </Typography>- <Typography>- Go to a contact page and add a note- </Typography>- <Button- component={Link}- variant="contained"- size="small"- disabled={step < 2}- sx={{- width: '100px',- }}- to={`/contacts/${contactId}/show`}- >- Add note- </Button>- </Stack>- </Stack>- </Stack>- </CardContent>- </Card>- </Stack>- );-};diff --git a/src/dashboard/DealsChart.tsx b/src/dashboard/DealsChart.tsxdeleted file mode 100644index 04d57758..00000000--- a/src/dashboard/DealsChart.tsx+++ /dev/null@@ -1,155 +0,0 @@-import AttachMoneyIcon from '@mui/icons-material/AttachMoney';-import { Box, Stack, Typography } from '@mui/material';-import { ResponsiveBar } from '@nivo/bar';-import { format, startOfMonth } from 'date-fns';-import { useMemo } from 'react';-import { useGetList } from 'react-admin';--import { Deal } from '../types';--const multiplier = {- opportunity: 0.2,- 'proposal-sent': 0.5,- 'in-negociation': 0.8,- delayed: 0.3,-};--const threeMonthsAgo = new Date(- new Date().setMonth(new Date().getMonth() - 6)-).toISOString();--export const DealsChart = () => {- const { data, isPending } = useGetList<Deal>('deals', {- pagination: { perPage: 100, page: 1 },- sort: {- field: 'created_at',- order: 'ASC',- },- filter: {- 'created_at@gte': threeMonthsAgo,- },- });- const months = useMemo(() => {- if (!data) return [];- const dealsByMonth = data.reduce((acc, deal) => {- const month = startOfMonth(- deal.created_at ?? new Date()- ).toISOString();- if (!acc[month]) {- acc[month] = [];- }- acc[month].push(deal);- return acc;- }, {} as any);-- const amountByMonth = Object.keys(dealsByMonth).map(month => {- return {- date: format(month, 'MMM'),- won: dealsByMonth[month]- .filter((deal: Deal) => deal.stage === 'won')- .reduce((acc: number, deal: Deal) => {- acc += deal.amount;- return acc;- }, 0),- pending: dealsByMonth[month]- .filter(- (deal: Deal) => !['won', 'lost'].includes(deal.stage)- )- .reduce((acc: number, deal: Deal) => {- // @ts-ignore- acc += deal.amount * multiplier[deal.stage];- return acc;- }, 0),- lost: dealsByMonth[month]- .filter((deal: Deal) => deal.stage === 'lost')- .reduce((acc: number, deal: Deal) => {- acc -= deal.amount;- return acc;- }, 0),- };- });-- return amountByMonth;- }, [data]);-- if (isPending) return null; // FIXME return skeleton instead- const range = months.reduce(- (acc, month) => {- acc.min = Math.min(acc.min, month.lost);- acc.max = Math.max(acc.max, month.won + month.pending);- return acc;- },- { min: 0, max: 0 }- );- return (- <Stack>- <Box display="flex" alignItems="center" mb={1}>- <Box mr={1} display="flex">- <AttachMoneyIcon color="disabled" fontSize="medium" />- </Box>- <Typography variant="h5" color="textSecondary">- Upcoming Deal Revenue- </Typography>- </Box>- <Box height={400}>- <ResponsiveBar- data={months}- indexBy="date"- keys={['won', 'pending', 'lost']}- colors={['#61cdbb', '#97e3d5', '#e25c3b']}- margin={{ top: 30, right: 50, bottom: 30, left: 0 }}- padding={0.3}- valueScale={{- type: 'linear',- min: range.min * 1.2,- max: range.max * 1.2,- }}- indexScale={{ type: 'band', round: true }}- enableGridX={true}- enableGridY={false}- enableLabel={false}- axisTop={{- tickSize: 0,- tickPadding: 12,- }}- axisBottom={{- legendPosition: 'middle',- legendOffset: 50,- tickSize: 0,- tickPadding: 12,- }}- axisLeft={null}- axisRight={{- format: (v: any) => `${Math.abs(v / 1000)}k`,- tickValues: 8,- }}- markers={- [- {- axis: 'y',- value: 0,- lineStyle: { strokeOpacity: 0 },- textStyle: { fill: '#2ebca6' },- legend: 'Won',- legendPosition: 'top-left',- legendOrientation: 'vertical',- },- {- axis: 'y',- value: 0,- lineStyle: {- stroke: '#f47560',- strokeWidth: 1,- },- textStyle: { fill: '#e25c3b' },- legend: 'Lost',- legendPosition: 'bottom-left',- legendOrientation: 'vertical',- },- ] as any- }- />- </Box>- </Stack>- );-};diff --git a/src/dashboard/DealsPipeline.tsx b/src/dashboard/DealsPipeline.tsxdeleted file mode 100644index dc447f05..00000000--- a/src/dashboard/DealsPipeline.tsx+++ /dev/null@@ -1,97 +0,0 @@-/**- * This component displays the deals pipeline for the current user.- * It's currently not used in the application but can be added to the dashboard.- */--import * as React from 'react';-import { Card, Box } from '@mui/material';-import MonetizationOnIcon from '@mui/icons-material/MonetizationOn';-import {- useGetList,- SimpleList,- useGetIdentity,- Link,- ReferenceField,-} from 'react-admin';--import { CompanyAvatar } from '../companies/CompanyAvatar';-import { Deal } from '../types';-import { useConfigurationContext } from '../root/ConfigurationContext';-import { findDealLabel } from '../deals/deal';--export const DealsPipeline = () => {- const { identity } = useGetIdentity();- const { dealStages, dealPipelineStatuses } = useConfigurationContext();- const { data, total, isPending } = useGetList<Deal>(- 'deals',- {- pagination: { page: 1, perPage: 10 },- sort: { field: 'last_seen', order: 'DESC' },- filter: { 'stage@neq': 'lost', sales_id: identity?.id },- },- { enabled: Number.isInteger(identity?.id) }- );-- const getOrderedDeals = (data?: Deal[]): Deal[] | undefined => {- if (!data) {- return;- }- const deals: Deal[] = [];- dealStages- .filter(stage => !dealPipelineStatuses.includes(stage.value))- .forEach(stage =>- data- .filter(deal => deal.stage === stage.value)- .forEach(deal => deals.push(deal))- );- return deals;- };-- return (- <>- <Box display="flex" alignItems="center" marginBottom="1em">- <Box ml={2} mr={2} display="flex">- <MonetizationOnIcon color="disabled" fontSize="large" />- </Box>- <Link- underline="none"- variant="h5"- color="textSecondary"- to="/deals"- >- Deals Pipeline- </Link>- </Box>- <Card>- <SimpleList<Deal>- resource="deals"- linkType="show"- data={getOrderedDeals(data)}- total={total}- isPending={isPending}- primaryText={deal => deal.name}- secondaryText={deal =>- `${deal.amount.toLocaleString('en-US', {- notation: 'compact',- style: 'currency',- currency: 'USD',- currencyDisplay: 'narrowSymbol',- minimumSignificantDigits: 3,- })} , ${findDealLabel(dealStages, deal.stage)}`- }- leftAvatar={deal => (- <ReferenceField- source="company_id"- record={deal}- reference="companies"- resource="deals"- link={false}- >- <CompanyAvatar width={20} height={20} />- </ReferenceField>- )}- />- </Card>- </>- );-};diff --git a/src/dashboard/HotContacts.tsx b/src/dashboard/HotContacts.tsxdeleted file mode 100644index ce9c15ab..00000000--- a/src/dashboard/HotContacts.tsx+++ /dev/null@@ -1,95 +0,0 @@-import * as React from 'react';-import {- Card,- Box,- Stack,- Typography,- IconButton,- Tooltip,-} from '@mui/material';-import ContactsIcon from '@mui/icons-material/Contacts';-import { useGetList, SimpleList, useGetIdentity } from 'react-admin';--import { Avatar } from '../contacts/Avatar';-import { Contact } from '../types';-import ControlPointIcon from '@mui/icons-material/ControlPoint';-import { Link } from 'react-router-dom';--export const HotContacts = () => {- const { identity } = useGetIdentity();- const {- data: contactData,- total: contactTotal,- isPending: contactsLoading,- } = useGetList<Contact>(- 'contacts',- {- pagination: { page: 1, perPage: 10 },- sort: { field: 'last_seen', order: 'DESC' },- filter: { status: 'hot', sales_id: identity?.id },- },- { enabled: Number.isInteger(identity?.id) }- );-- return (- <Stack>- <Box display="flex" alignItems="center" mb={1}>- <Box mr={1} display="flex">- <ContactsIcon color="disabled" fontSize="medium" />- </Box>- <Typography variant="h5" color="textSecondary">- Hot Contacts- </Typography>- <Tooltip title="Create contact">- <IconButton- size="small"- sx={{- color: 'text.secondary',- ml: 'auto',- }}- component={Link}- to="/contacts/create"- >- <ControlPointIcon fontSize="inherit" color="primary" />- </IconButton>- </Tooltip>- </Box>- <Card- sx={{- '& .MuiCardContent-root': {- padding: '16px !important',- },- }}- >- <SimpleList<Contact>- linkType="show"- data={contactData}- total={contactTotal}- isPending={contactsLoading}- resource="contacts"- primaryText={contact =>- `${contact.first_name} ${contact.last_name}`- }- secondaryText={contact => (- <>- {contact.title} at {contact.company_name}- </>- )}- leftAvatar={contact => <Avatar record={contact} />}- dense- empty={- <Box p={2}>- <Typography variant="body2" gutterBottom>- Contacts with a "hot" status will appear here.- </Typography>- <Typography variant="body2">- Change the status of a contact by adding a note- to that contact and clicking on "show options".- </Typography>- </Box>- }- />- </Card>- </Stack>- );-};diff --git a/src/dashboard/LatestNotes.tsx b/src/dashboard/LatestNotes.tsxdeleted file mode 100644index f296533f..00000000--- a/src/dashboard/LatestNotes.tsx+++ /dev/null@@ -1,139 +0,0 @@-import * as React from 'react';-import { Card, CardContent, Typography, Box } from '@mui/material';-import NoteIcon from '@mui/icons-material/Note';-import {- useGetList,- useGetIdentity,- ReferenceField,- TextField,- FunctionField,-} from 'react-admin';-import { formatDistance } from 'date-fns';--import { Contact as ContactType } from '../types';--export const LatestNotes = () => {- const { identity } = useGetIdentity();- const { data: contactNotesData, isPending: contactNotesLoading } =- useGetList(- 'contactNotes',- {- pagination: { page: 1, perPage: 5 },- sort: { field: 'date', order: 'DESC' },- filter: { sales_id: identity?.id },- },- { enabled: Number.isInteger(identity?.id) }- );- const { data: dealNotesData, isPending: dealNotesLoading } = useGetList(- 'dealNotes',- {- pagination: { page: 1, perPage: 5 },- sort: { field: 'date', order: 'DESC' },- filter: { sales_id: identity?.id },- },- { enabled: Number.isInteger(identity?.id) }- );- if (contactNotesLoading || dealNotesLoading) {- return null;- }- // TypeScript guards- if (!contactNotesData || !dealNotesData) {- return null;- }-- const allNotes = ([] as any[])- .concat(- contactNotesData.map(note => ({- ...note,- type: 'contactNote',- })),- dealNotesData.map(note => ({ ...note, type: 'dealNote' }))- )- .sort((a, b) => new Date(b.date).valueOf() - new Date(a.date).valueOf())- .slice(0, 5);-- return (- <div>- <Box display="flex" alignItems="center" marginBottom="1em">- <Box ml={2} mr={2} display="flex">- <NoteIcon color="disabled" fontSize="large" />- </Box>- <Typography variant="h5" color="textSecondary">- My Latest Notes- </Typography>- </Box>- <Card>- <CardContent>- {allNotes.map(note => (- <Box- id={`${note.type}_${note.id}`}- key={`${note.type}_${note.id}`}- sx={{ marginBottom: 2 }}- >- <Typography- variant="body2"- color="textSecondary"- component="div"- >- on{' '}- {note.type === 'dealNote' ? (- <Deal note={note} />- ) : (- <Contact note={note} />- )}- , added{' '}- {formatDistance(note.date, new Date(), {- addSuffix: true,- })}- </Typography>- <div>- <Typography- variant="body2"- sx={{- display: '-webkit-box',- WebkitLineClamp: 3,- WebkitBoxOrient: 'vertical',- overflow: 'hidden',- }}- >- {note.text}- </Typography>- </div>- </Box>- ))}- </CardContent>- </Card>- </div>- );-};--const Deal = ({ note }: any) => (- <>- Deal{' '}- <ReferenceField- record={note}- source="deal_id"- reference="deals"- link="show"- >- <TextField source="name" variant="body2" />- </ReferenceField>- </>-);--const Contact = ({ note }: any) => (- <>- Contact{' '}- <ReferenceField- record={note}- source="contact_id"- reference="contacts"- link="show"- >- <FunctionField<ContactType>- variant="body2"- render={contact => `${contact.first_name} ${contact.last_name}`}- />- </ReferenceField>- </>-);diff --git a/src/dashboard/TasksList.tsx b/src/dashboard/TasksList.tsxdeleted file mode 100644index 2ee08113..00000000--- a/src/dashboard/TasksList.tsx+++ /dev/null@@ -1,81 +0,0 @@-import * as React from 'react';-import { Card, Box, Stack, Typography } from '@mui/material';-import AssignmentTurnedInIcon from '@mui/icons-material/AssignmentTurnedIn';-import { AddTask } from '../tasks/AddTask';-import {- startOfToday,- endOfToday,- endOfTomorrow,- endOfWeek,- getDay,-} from 'date-fns';-import { TasksListFilter } from './TasksListFilter';-import { TasksListEmpty } from './TasksListEmpty';--const today = new Date();-const todayDayOfWeek = getDay(today);-const isBeforeFriday = todayDayOfWeek < 5; // Friday is represented by 5-const startOfTodayDateISO = startOfToday().toISOString();-const endOfTodayDateISO = endOfToday().toISOString();-const endOfTomorrowDateISO = endOfTomorrow().toISOString();-const endOfWeekDateISO = endOfWeek(today, { weekStartsOn: 0 }).toISOString();--const taskFilters = {- overdue: { 'done_date@is': null, 'due_date@lt': startOfTodayDateISO },- today: {- 'done_date@is': null,- 'due_date@gte': startOfTodayDateISO,- 'due_date@lte': endOfTodayDateISO,- },- tomorrow: {- 'done_date@is': null,- 'due_date@gt': endOfTodayDateISO,- 'due_date@lt': endOfTomorrowDateISO,- },- thisWeek: {- 'done_date@is': null,- 'due_date@gte': endOfTomorrowDateISO,- 'due_date@lte': endOfWeekDateISO,- },- later: { 'done_date@is': null, 'due_date@gt': endOfWeekDateISO },-};--export const TasksList = () => {- return (- <Stack>- <Box display="flex" alignItems="center" mb={1}>- <Box mr={1} display="flex">- <AssignmentTurnedInIcon- color="disabled"- fontSize="medium"- />- </Box>- <Typography variant="h5" color="textSecondary">- Upcoming Tasks- </Typography>- <AddTask display="icon" selectContact />- </Box>- <Card sx={{ p: 2 }}>- <Stack>- <TasksListEmpty />- <TasksListFilter- title="Overdue"- filter={taskFilters.overdue}- />- <TasksListFilter title="Today" filter={taskFilters.today} />- <TasksListFilter- title="Tomorrow"- filter={taskFilters.tomorrow}- />- {isBeforeFriday && (- <TasksListFilter- title="This week"- filter={taskFilters.thisWeek}- />- )}- <TasksListFilter title="Later" filter={taskFilters.later} />- </Stack>- </Card>- </Stack>- );-};diff --git a/src/dashboard/TasksListEmpty.tsx b/src/dashboard/TasksListEmpty.tsxdeleted file mode 100644index 0b26290b..00000000--- a/src/dashboard/TasksListEmpty.tsx+++ /dev/null@@ -1,25 +0,0 @@-import { useGetIdentity, useGetList } from 'react-admin';-import { Typography } from '@mui/material';--export const TasksListEmpty = () => {- const { identity } = useGetIdentity();-- const { total } = useGetList(- 'tasks',- {- pagination: { page: 1, perPage: 1 },- filter: {- sales_id: identity?.id,- },- },- { enabled: !!identity }- );-- if (total) return null;-- return (- <Typography variant="body2">- Tasks added to your contacts will appear here.- </Typography>- );-};diff --git a/src/dashboard/TasksListFilter.tsx b/src/dashboard/TasksListFilter.tsxdeleted file mode 100644index e3ff966e..00000000--- a/src/dashboard/TasksListFilter.tsx+++ /dev/null@@ -1,71 +0,0 @@-import {- ListContextProvider,- ResourceContextProvider,- useGetIdentity,- useGetList,- useList,-} from 'react-admin';-import { Link, Stack, Typography } from '@mui/material';--import { TasksIterator } from '../tasks/TasksIterator';--export const TasksListFilter = ({- title,- filter,-}: {- title: string;- filter: any;-}) => {- const { identity } = useGetIdentity();-- const {- data: tasks,- total,- isPending,- } = useGetList(- 'tasks',- {- pagination: { page: 1, perPage: 100 },- sort: { field: 'due_date', order: 'ASC' },- filter: {- ...filter,- sales_id: identity?.id,- },- },- { enabled: !!identity }- );-- const listContext = useList({- data: tasks,- isPending,- resource: 'tasks',- perPage: 5,- });-- if (isPending || !tasks || !total) return null;-- return (- <Stack>- <Typography variant="overline">{title}</Typography>- <ResourceContextProvider value="tasks">- <ListContextProvider value={listContext}>- <TasksIterator showContact sx={{ pt: 0, pb: 0 }} />- </ListContextProvider>- </ResourceContextProvider>- {total > listContext.perPage && (- <Stack justifyContent="flex-end" direction="row">- <Link- href="#"- onClick={e => {- listContext.setPerPage(listContext.perPage + 10);- e.preventDefault();- }}- variant="body2"- >- Load more- </Link>- </Stack>- )}- </Stack>- );-};diff --git a/src/dashboard/Welcome.tsx b/src/dashboard/Welcome.tsxdeleted file mode 100644index 3b80ac4e..00000000--- a/src/dashboard/Welcome.tsx+++ /dev/null@@ -1,34 +0,0 @@-import { Card, CardContent, Link, Typography } from '@mui/material';--export const Welcome = () => (- <Card- sx={{- background: `#c5dedd`,- color: 'rgba(0, 0, 0, 0.87)',- }}- >- <CardContent>- <Typography variant="h6" gutterBottom>- Your CRM Starter Kit- </Typography>- <Typography variant="body2" gutterBottom>- <Link href="https://marmelab.com/atomic-crm">Atomic CRM</Link>{' '}- is a template designed to help you quickly build your own CRM.- </Typography>- <Typography variant="body2" gutterBottom>- This demo runs on a mock API, so you can explore and modify the- data. It resets on reload. The full version uses Supabase for- the backend.- </Typography>- <Typography variant="body2">- Powered by{' '}- <Link href="https://marmelab.com/react-admin">react-admin</Link>- , Atomic CRM is fully open-source. You can find the code at{' '}- <Link href="https://github.com/marmelab/atomic-crm">- marmelab/atomic-crm- </Link>- .- </Typography>- </CardContent>- </Card>-);diff --git a/src/deals/ContactList.stories.tsx b/src/deals/ContactList.stories.tsxdeleted file mode 100644index e5c3a8c3..00000000--- a/src/deals/ContactList.stories.tsx+++ /dev/null@@ -1,38 +0,0 @@-import type { Meta, StoryObj } from '@storybook/react';-import { ListContextProvider, useList } from 'react-admin';-import { MemoryRouter } from 'react-router-dom';--import { ContactList } from './ContactList';-import { generateCompanies } from '../providers/fakerest/dataGenerator/companies';-import { generateContacts } from '../providers/fakerest/dataGenerator/contacts';-import { Db } from '../providers/fakerest/dataGenerator/types';--const db = {} as Db;-db.companies = generateCompanies(db, 3);-db.contacts = generateContacts(db, 5);--const meta: Meta<typeof ContactList> = {- component: ContactList,- decorators: [- Story => {- const listContext = useList({- resource: 'contacts',- data: db.contacts,- });- return (- <MemoryRouter>- <ListContextProvider value={listContext}>- <Story />- </ListContextProvider>- </MemoryRouter>- );- },- ],-};--export default meta;-type Story = StoryObj<typeof ContactList>;--export const Basic: Story = {- args: {},-};diff --git a/src/deals/ContactList.tsx b/src/deals/ContactList.tsxdeleted file mode 100644index 5bd56c3f..00000000--- a/src/deals/ContactList.tsx+++ /dev/null@@ -1,32 +0,0 @@-import { Link, Stack, Typography } from '@mui/material';-import { useListContext } from 'react-admin';-import { Link as RouterLink } from 'react-router-dom';-import { Avatar } from '../contacts/Avatar';--export const ContactList = () => {- const { data, error, isPending } = useListContext();- if (isPending || error) return <div style={{ height: '2em' }} />;- return (- <Stack direction="row" flexWrap="wrap" gap={3} mt={1}>- {data.map(contact => (- <Stack direction="row" key={contact.id} gap={1}>- <Avatar record={contact} />- <Stack>- <Link- component={RouterLink}- to={`/contacts/${contact.id}/show`}- variant="body2"- >- {contact.first_name} {contact.last_name}- </Link>- <Typography variant="caption" color="text.secondary">- {contact.title}- {contact.title && contact.company_name && ' at '}- {contact.company_name}- </Typography>- </Stack>- </Stack>- ))}- </Stack>- );-};diff --git a/src/deals/DealArchivedList.tsx b/src/deals/DealArchivedList.tsxdeleted file mode 100644index c62f652d..00000000--- a/src/deals/DealArchivedList.tsx+++ /dev/null@@ -1,131 +0,0 @@-import {- Button,- Dialog,- DialogContent,- DialogTitle,- Grid,- Stack,- Typography,-} from '@mui/material';-import { useEffect, useState } from 'react';-import { useGetIdentity, useGetList } from 'react-admin';-import { DealCardContent } from './DealCard';-import { Deal } from '../types';-import { DialogCloseButton } from '../misc/DialogCloseButton';--export const DealArchivedList = () => {- const { identity } = useGetIdentity();- const {- data: archivedLists,- total,- isPending,- } = useGetList('deals', {- pagination: { page: 1, perPage: 1000 },- sort: { field: 'archived_at', order: 'DESC' },- filter: { '[email protected]': null },- });- const [openDialog, setOpenDialog] = useState(false);-- useEffect(() => {- if (!isPending && total === 0) {- setOpenDialog(false);- }- }, [isPending, total]);-- useEffect(() => {- setOpenDialog(false);- }, [archivedLists]);-- if (!identity || isPending || !total || !archivedLists) return null;-- // Group archived lists by date- const archivedListsByDate: { [date: string]: Deal[] } =- archivedLists.reduce(- (acc, deal) => {- const date = new Date(deal.archived_at).toDateString();- if (!acc[date]) {- acc[date] = [];- }- acc[date].push(deal);- return acc;- },- {} as { [date: string]: Deal[] }- );-- return (- <>- <Button- variant="text"- onClick={() => setOpenDialog(true)}- sx={{ my: 1 }}- >- View archived deals- </Button>- <Dialog- open={openDialog}- onClose={() => setOpenDialog(false)}- fullWidth- maxWidth="lg"- >- <DialogCloseButton onClose={() => setOpenDialog(false)} />- <DialogTitle>Archived Deals</DialogTitle>- <DialogContent>- <Stack gap={2}>- {Object.entries(archivedListsByDate).map(- ([date, deals]) => (- <Stack key={date} gap={1}>- <Typography- variant="body1"- fontWeight="bold"- >- {getRelativeTimeString(date)}- </Typography>- <Grid container spacing={2}>- {deals.map((deal: Deal) => (- <Grid- item- xs={12}- sm={6}- md={4}- key={deal.id}- >- <DealCardContent deal={deal} />- </Grid>- ))}- </Grid>- </Stack>- )- )}- </Stack>- </DialogContent>- </Dialog>- </>- );-};--export function getRelativeTimeString(dateString: string): string {- const date = new Date(dateString);- date.setHours(0, 0, 0, 0);-- const today = new Date();- today.setHours(0, 0, 0, 0);-- const diff = date.getTime() - today.getTime();- const unitDiff = Math.round(diff / (1000 * 60 * 60 * 24));-- // Check if the date is more than one week old- if (Math.abs(unitDiff) > 7) {- return new Intl.DateTimeFormat(undefined, {- day: 'numeric',- month: 'long',- }).format(date);- }-- // Intl.RelativeTimeFormat for dates within the last week- const rtf = new Intl.RelativeTimeFormat(undefined, { numeric: 'auto' });- return ucFirst(rtf.format(unitDiff, 'day'));-}--function ucFirst(str: string): string {- return str.charAt(0).toUpperCase() + str.slice(1);-}diff --git a/src/deals/DealCard.tsx b/src/deals/DealCard.tsxdeleted file mode 100644index 065668dd..00000000--- a/src/deals/DealCard.tsx+++ /dev/null@@ -1,82 +0,0 @@-import { Draggable } from '@hello-pangea/dnd';-import { Box, Card, Typography } from '@mui/material';-import { ReferenceField, useRedirect } from 'react-admin';-import { CompanyAvatar } from '../companies/CompanyAvatar';-import { Deal } from '../types';--export const DealCard = ({ deal, index }: { deal: Deal; index: number }) => {- if (!deal) return null;-- return (- <Draggable draggableId={String(deal.id)} index={index}>- {(provided, snapshot) => (- <DealCardContent- provided={provided}- snapshot={snapshot}- deal={deal}- />- )}- </Draggable>- );-};--export const DealCardContent = ({- provided,- snapshot,- deal,-}: {- provided?: any;- snapshot?: any;- deal: Deal;-}) => {- const redirect = useRedirect();- const handleClick = () => {- redirect(`/deals/${deal.id}/show`, undefined, undefined, undefined, {- _scrollToTop: false,- });- };-- return (- <Box- sx={{ marginBottom: 1, cursor: 'pointer' }}- {...provided?.draggableProps}- {...provided?.dragHandleProps}- ref={provided?.innerRef}- onClick={handleClick}- >- <Card- style={{- opacity: snapshot?.isDragging ? 0.9 : 1,- transform: snapshot?.isDragging ? 'rotate(-2deg)' : '',- }}- elevation={snapshot?.isDragging ? 3 : 1}- >- <Box padding={1} display="flex">- <ReferenceField- source="company_id"- record={deal}- reference="companies"- link={false}- >- <CompanyAvatar width={20} height={20} />- </ReferenceField>- <Box sx={{ marginLeft: 1 }}>- <Typography variant="body2" gutterBottom>- {deal.name}- </Typography>- <Typography variant="caption" color="textSecondary">- {deal.amount.toLocaleString('en-US', {- notation: 'compact',- style: 'currency',- currency: 'USD',- currencyDisplay: 'narrowSymbol',- minimumSignificantDigits: 3,- })}- {deal.category ? `, ${deal.category}` : ''}- </Typography>- </Box>- </Box>- </Card>- </Box>- );-};diff --git a/src/deals/DealColumn.tsx b/src/deals/DealColumn.tsxdeleted file mode 100644index d7a15860..00000000--- a/src/deals/DealColumn.tsx+++ /dev/null@@ -1,81 +0,0 @@-import { Droppable } from '@hello-pangea/dnd';-import { Box, Stack, Typography } from '@mui/material';--import { Deal } from '../types';-import { DealCard } from './DealCard';-import { useConfigurationContext } from '../root/ConfigurationContext';-import { findDealLabel } from './deal';--export const DealColumn = ({- stage,- deals,-}: {- stage: string;- deals: Deal[];-}) => {- const totalAmount = deals.reduce((sum, deal) => sum + deal.amount, 0);-- const { dealStages } = useConfigurationContext();- return (- <Box- sx={{- flex: 1,- paddingTop: '8px',- paddingBottom: '16px',- bgcolor: '#eaeaee',- '&:first-of-type': {- paddingLeft: '5px',- borderTopLeftRadius: 5,- },- '&:last-of-type': {- paddingRight: '5px',- borderTopRightRadius: 5,- },- }}- >- <Stack alignItems="center">- <Typography variant="subtitle1">- {findDealLabel(dealStages, stage)}- </Typography>- <Typography- variant="subtitle1"- color="text.secondary"- fontSize="small"- >- {totalAmount.toLocaleString('en-US', {- notation: 'compact',- style: 'currency',- currency: 'USD',- currencyDisplay: 'narrowSymbol',- minimumSignificantDigits: 3,- })}- </Typography>- </Stack>- <Droppable droppableId={stage}>- {(droppableProvided, snapshot) => (- <Box- ref={droppableProvided.innerRef}- {...droppableProvided.droppableProps}- className={- snapshot.isDraggingOver ? ' isDraggingOver' : ''- }- sx={{- display: 'flex',- flexDirection: 'column',- borderRadius: 1,- padding: '5px',- '&.isDraggingOver': {- bgcolor: '#dadadf',- },- }}- >- {deals.map((deal, index) => (- <DealCard key={deal.id} deal={deal} index={index} />- ))}- {droppableProvided.placeholder}- </Box>- )}- </Droppable>- </Box>- );-};diff --git a/src/deals/DealCreate.tsx b/src/deals/DealCreate.tsxdeleted file mode 100644index b5133ebb..00000000--- a/src/deals/DealCreate.tsx+++ /dev/null@@ -1,107 +0,0 @@-import { Dialog, DialogContent, DialogTitle } from '@mui/material';-import { useQueryClient } from '@tanstack/react-query';-import {- Create,- Form,- GetListResult,- SaveButton,- Toolbar,- useDataProvider,- useGetIdentity,- useListContext,- useRedirect,-} from 'react-admin';-import { DialogCloseButton } from '../misc/DialogCloseButton';-import { Deal } from '../types';-import { DealInputs } from './DealInputs';--export const DealCreate = ({ open }: { open: boolean }) => {- const redirect = useRedirect();- const dataProvider = useDataProvider();- const { data: allDeals } = useListContext<Deal>();-- const handleClose = () => {- redirect('/deals');- };-- const queryClient = useQueryClient();-- const onSuccess = async (deal: Deal) => {- if (!allDeals) {- redirect('/deals');- return;- }- // increase the index of all deals in the same stage as the new deal- // first, get the list of deals in the same stage- const deals = allDeals.filter(- (d: Deal) => d.stage === deal.stage && d.id !== deal.id- );- // update the actual deals in the database- await Promise.all(- deals.map(async oldDeal =>- dataProvider.update('deals', {- id: oldDeal.id,- data: { index: oldDeal.index + 1 },- previousData: oldDeal,- })- )- );- // refresh the list of deals in the cache as we used dataProvider.update(),- // which does not update the cache- const dealsById = deals.reduce(- (acc, d) => ({- ...acc,- [d.id]: { ...d, index: d.index + 1 },- }),- {} as { [key: string]: Deal }- );- const now = Date.now();- queryClient.setQueriesData<GetListResult | undefined>(- { queryKey: ['deals', 'getList'] },- res => {- if (!res) return res;- return {- ...res,- data: res.data.map((d: Deal) => dealsById[d.id] || d),- };- },- { updatedAt: now }- );- redirect('/deals');- };-- const { identity } = useGetIdentity();-- return (- <Dialog open={open} onClose={handleClose} fullWidth maxWidth="md">- <Create<Deal>- resource="deals"- mutationOptions={{ onSuccess }}- sx={{ '& .RaCreate-main': { mt: 0 } }}- >- <DialogCloseButton onClose={handleClose} />- <DialogTitle- sx={{- paddingBottom: 0,- }}- >- Create a new deal- </DialogTitle>- <Form- defaultValues={{- sales_id: identity?.id,- contact_ids: [],- index: 0,- }}- >- <DialogContent>- <DealInputs />- </DialogContent>- <Toolbar>- <SaveButton />- </Toolbar>- </Form>- </Create>- </Dialog>- );-};diff --git a/src/deals/DealEdit.tsx b/src/deals/DealEdit.tsxdeleted file mode 100644index 79b2f9bd..00000000--- a/src/deals/DealEdit.tsx+++ /dev/null@@ -1,127 +0,0 @@-import { Button, DialogContent, Stack } from '@mui/material';-import Dialog from '@mui/material/Dialog';-import DialogTitle from '@mui/material/DialogTitle';-import Typography from '@mui/material/Typography';-import {- DeleteButton,- EditBase,- Form,- ReferenceField,- SaveButton,- Toolbar,- useNotify,- useRecordContext,- useRedirect,-} from 'react-admin';-import { Link } from 'react-router-dom';-import { DialogCloseButton } from '../misc/DialogCloseButton';-import { Deal } from '../types';-import { DealInputs } from './DealInputs';-import { CompanyAvatar } from '../companies/CompanyAvatar';--export const DealEdit = ({ open, id }: { open: boolean; id?: string }) => {- const redirect = useRedirect();- const notify = useNotify();-- const handleClose = () => {- redirect('/deals', undefined, undefined, undefined, {- _scrollToTop: false,- });- };-- return (- <Dialog- open={open}- onClose={handleClose}- fullWidth- maxWidth="md"- sx={{- '& .MuiDialog-container': {- alignItems: 'flex-start',- },- }}- >- {!!id ? (- <EditBase- id={id}- mutationMode="pessimistic"- mutationOptions={{- onSuccess: () => {- notify('Deal updated');- redirect(- `/deals/${id}/show`,- undefined,- undefined,- undefined,- {- _scrollToTop: false,- }- );- },- }}- >- <DialogCloseButton onClose={handleClose} top={13} />- <EditHeader />- <Form>- <DialogContent>- <DealInputs />- </DialogContent>- <EditToolbar />- </Form>- </EditBase>- ) : null}- </Dialog>- );-};--function EditHeader() {- const deal = useRecordContext<Deal>();- if (!deal) {- return null;- }-- return (- <DialogTitle- sx={{- paddingBottom: 0,- }}- >- <Stack- direction="row"- alignItems="center"- justifyContent="space-between"- spacing={1}- >- <Stack direction="row" alignItems="center" gap={2}>- <ReferenceField- source="company_id"- reference="companies"- link="show"- >- <CompanyAvatar />- </ReferenceField>- <Typography variant="h6">Edit {deal.name} deal</Typography>- </Stack>-- <Stack direction="row" spacing={1} sx={{ pr: 3 }}>- <Button- component={Link}- to={`/deals/${deal.id}/show`}- size="small"- >- Back to deal- </Button>- </Stack>- </Stack>- </DialogTitle>- );-}--function EditToolbar() {- return (- <Toolbar sx={{ display: 'flex', justifyContent: 'space-between' }}>- <SaveButton />- <DeleteButton mutationMode="undoable" />- </Toolbar>- );-}diff --git a/src/deals/DealEmpty.tsx b/src/deals/DealEmpty.tsxdeleted file mode 100644index dd6a9242..00000000--- a/src/deals/DealEmpty.tsx+++ /dev/null@@ -1,77 +0,0 @@-import { LinearProgress, Stack, Typography } from '@mui/material';-import { CreateButton, useGetList } from 'react-admin';-import useAppBarHeight from '../misc/useAppBarHeight';-import { matchPath, useLocation } from 'react-router';-import { DealCreate } from './DealCreate';-import { Contact } from '../types';-import { Link } from 'react-router-dom';--export const DealEmpty = ({ children }: { children?: React.ReactNode }) => {- const location = useLocation();- const matchCreate = matchPath('/deals/create', location.pathname);- const appbarHeight = useAppBarHeight();-- // get Contact data- const { data: contacts, isPending: contactsLoading } = useGetList<Contact>(- 'contacts',- {- pagination: { page: 1, perPage: 1 },- }- );-- if (contactsLoading) return <LinearProgress />;-- return (- <Stack- justifyContent="center"- alignItems="center"- gap={3}- sx={{- height: `calc(100dvh - ${appbarHeight}px)`,- }}- >- <img src="./img/empty.svg" alt="No deals found" />- {contacts && contacts.length > 0 ? (- <>- <Stack gap={0} alignItems="center">- <Typography variant="h6" fontWeight="bold">- No deals found- </Typography>- <Typography- variant="body2"- align="center"- color="text.secondary"- gutterBottom- >- It seems your deal list is empty.- </Typography>- </Stack>- <Stack spacing={2} direction="row">- <CreateButton variant="contained" label="Create deal" />- </Stack>- <DealCreate open={!!matchCreate} />- {children}- </>- ) : (- <Stack gap={0} alignItems="center">- <Typography variant="h6" fontWeight="bold">- No deals found- </Typography>- <Typography- variant="body2"- align="center"- color="text.secondary"- gutterBottom- >- It seems your contact list is empty.- <br />- <Link to="/contacts/create">- Add your first contact- </Link>{' '}- before creating a deal.- </Typography>- </Stack>- )}- </Stack>- );-};diff --git a/src/deals/DealInputs.tsx b/src/deals/DealInputs.tsxdeleted file mode 100644index 993e3ccf..00000000--- a/src/deals/DealInputs.tsx+++ /dev/null@@ -1,159 +0,0 @@-import {- Divider,- Stack,- Typography,- useMediaQuery,- useTheme,-} from '@mui/material';-import {- AutocompleteArrayInput,- AutocompleteInput,- DateInput,- NumberInput,- ReferenceArrayInput,- ReferenceInput,- required,- SelectInput,- TextInput,- useCreate,- useGetIdentity,- useNotify,-} from 'react-admin';-import { useConfigurationContext } from '../root/ConfigurationContext';-import { contactInputText, contactOptionText } from '../misc/ContactOption';--const validateRequired = required();--export const DealInputs = () => {- const theme = useTheme();- const isMobile = useMediaQuery(theme.breakpoints.down('md'));- return (- <Stack gap={4} p={1}>- <DealInfoInputs />-- <Stack gap={4} flexDirection={isMobile ? 'column' : 'row'}>- <DealLinkedToInputs />- <Divider- orientation={isMobile ? 'horizontal' : 'vertical'}- flexItem- />- <DealMiscInputs />- </Stack>- </Stack>- );-};--const DealInfoInputs = () => {- return (- <Stack gap={1} flex={1}>- <TextInput- source="name"- label="Deal name"- validate={validateRequired}- helperText={false}- />- <TextInput- source="description"- multiline- rows={3}- helperText={false}- />- </Stack>- );-};--const DealLinkedToInputs = () => {- const [create] = useCreate();- const notify = useNotify();- const { identity } = useGetIdentity();-- const handleCreateCompany = async (name?: string) => {- if (!name) return;- try {- const newCompany = await create(- 'companies',- {- data: {- name,- sales_id: identity?.id,- created_at: new Date().toISOString(),- },- },- { returnPromise: true }- );- return newCompany;- } catch (error) {- notify('An error occurred while creating the company', {- type: 'error',- });- }- };- return (- <Stack gap={1} flex={1}>- <Typography variant="subtitle1">Linked to</Typography>- <ReferenceInput source="company_id" reference="companies">- <AutocompleteInput- optionText="name"- onCreate={handleCreateCompany}- validate={validateRequired}- helperText={false}- />- </ReferenceInput>-- <ReferenceArrayInput- source="contact_ids"- reference="contacts_summary"- >- <AutocompleteArrayInput- label="Contacts"- optionText={contactOptionText}- inputText={contactInputText}- helperText={false}- />- </ReferenceArrayInput>- </Stack>- );-};--const DealMiscInputs = () => {- const { dealStages, dealCategories } = useConfigurationContext();- return (- <Stack gap={1} flex={1}>- <Typography variant="subtitle1">Misc</Typography>-- <SelectInput- source="category"- label="Category"- choices={dealCategories.map(type => ({- id: type,- name: type,- }))}- helperText={false}- />- <NumberInput- source="amount"- defaultValue={0}- validate={validateRequired}- helperText={false}- />- <DateInput- source="expected_closing_date"- fullWidth- validate={[validateRequired]}- helperText={false}- inputProps={{ max: '9999-12-31' }}- defaultValue={new Date().toISOString().split('T')[0]}- />- <SelectInput- source="stage"- choices={dealStages.map(stage => ({- id: stage.value,- name: stage.label,- }))}- validate={validateRequired}- defaultValue="opportunity"- helperText={false}- />- </Stack>- );-};diff --git a/src/deals/DealList.tsx b/src/deals/DealList.tsxdeleted file mode 100644index 05546bad..00000000--- a/src/deals/DealList.tsx+++ /dev/null@@ -1,109 +0,0 @@-import {- CreateButton,- ExportButton,- FilterButton,- ListBase,- ListToolbar,- ReferenceInput,- SearchInput,- SelectInput,- Title,- TopToolbar,- useGetIdentity,- useListContext,-} from 'react-admin';-import { matchPath, useLocation } from 'react-router';--import { Card, Stack } from '@mui/material';-import { useConfigurationContext } from '../root/ConfigurationContext';-import { DealArchivedList } from './DealArchivedList';-import { DealCreate } from './DealCreate';-import { DealEdit } from './DealEdit';-import { DealEmpty } from './DealEmpty';-import { DealListContent } from './DealListContent';-import { DealShow } from './DealShow';-import { OnlyMineInput } from './OnlyMineInput';--const DealList = () => {- const { identity } = useGetIdentity();-- if (!identity) return null;- return (- <ListBase- perPage={100}- filter={{- 'archived_at@is': null,- }}- sort={{ field: 'index', order: 'DESC' }}- >- <DealLayout />- </ListBase>- );-};--const DealLayout = () => {- const location = useLocation();- const matchCreate = matchPath('/deals/create', location.pathname);- const matchShow = matchPath('/deals/:id/show', location.pathname);- const matchEdit = matchPath('/deals/:id', location.pathname);-- const { dealCategories } = useConfigurationContext();-- const dealFilters = [- <SearchInput source="q" alwaysOn />,- <ReferenceInput source="company_id" reference="companies" />,- <SelectInput- source="category"- label="Category"- choices={dealCategories.map(type => ({ id: type, name: type }))}- />,- <OnlyMineInput source="sales_id" alwaysOn />,- ];-- const { data, isPending, filterValues } = useListContext();- const hasFilters = filterValues && Object.keys(filterValues).length > 0;-- if (isPending) return null;- if (!data?.length && !hasFilters)- return (- <>- <DealEmpty>- <DealShow open={!!matchShow} id={matchShow?.params.id} />- <DealArchivedList />- </DealEmpty>- </>- );-- return (- <Stack component="div" sx={{ width: '100%' }}>- <Title title={'Deals'} />- <ListToolbar filters={dealFilters} actions={<DealActions />} />- <Card>- <DealListContent />- </Card>- <DealArchivedList />- <DealCreate open={!!matchCreate} />- <DealEdit- open={!!matchEdit && !matchCreate}- id={matchEdit?.params.id}- />- <DealShow open={!!matchShow} id={matchShow?.params.id} />- </Stack>- );-};--const DealActions = () => {- return (- <TopToolbar>- <FilterButton />- <ExportButton />- <CreateButton- variant="contained"- label="New Deal"- sx={{ marginLeft: 2 }}- />- </TopToolbar>- );-};--export default DealList;diff --git a/src/deals/DealListContent.tsx b/src/deals/DealListContent.tsxdeleted file mode 100644index 460fe370..00000000--- a/src/deals/DealListContent.tsx+++ /dev/null@@ -1,248 +0,0 @@-import { DragDropContext, OnDragEndResponder } from '@hello-pangea/dnd';-import { Box } from '@mui/material';-import isEqual from 'lodash/isEqual';-import { useEffect, useState } from 'react';-import { DataProvider, useDataProvider, useListContext } from 'react-admin';--import { Deal } from '../types';-import { DealColumn } from './DealColumn';-import { DealsByStage, getDealsByStage } from './stages';-import { useConfigurationContext } from '../root/ConfigurationContext';--export const DealListContent = () => {- const { dealStages } = useConfigurationContext();- const { data: unorderedDeals, isPending, refetch } = useListContext<Deal>();- const dataProvider = useDataProvider();-- const [dealsByStage, setDealsByStage] = useState<DealsByStage>(- getDealsByStage([], dealStages)- );-- useEffect(() => {- if (unorderedDeals) {- const newDealsByStage = getDealsByStage(unorderedDeals, dealStages);- if (!isEqual(newDealsByStage, dealsByStage)) {- setDealsByStage(newDealsByStage);- }- }- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [unorderedDeals]);-- if (isPending) return null;-- const onDragEnd: OnDragEndResponder = result => {- const { destination, source } = result;-- if (!destination) {- return;- }-- if (- destination.droppableId === source.droppableId &&- destination.index === source.index- ) {- return;- }-- const sourceStage = source.droppableId;- const destinationStage = destination.droppableId;- const sourceDeal = dealsByStage[sourceStage][source.index]!;- const destinationDeal = dealsByStage[destinationStage][- destination.index- ] ?? {- stage: destinationStage,- index: undefined, // undefined if dropped after the last item- };-- // compute local state change synchronously- setDealsByStage(- updateDealStageLocal(- sourceDeal,- { stage: sourceStage, index: source.index },- { stage: destinationStage, index: destination.index },- dealsByStage- )- );-- // persist the changes- updateDealStage(sourceDeal, destinationDeal, dataProvider).then(() => {- refetch();- });- };-- return (- <DragDropContext onDragEnd={onDragEnd}>- <Box display="flex">- {dealStages.map(stage => (- <DealColumn- stage={stage.value}- deals={dealsByStage[stage.value]}- key={stage.value}- />- ))}- </Box>- </DragDropContext>- );-};--const updateDealStageLocal = (- sourceDeal: Deal,- source: { stage: string; index: number },- destination: {- stage: string;- index?: number; // undefined if dropped after the last item- },- dealsByStage: DealsByStage-) => {- if (source.stage === destination.stage) {- // moving deal inside the same column- const column = dealsByStage[source.stage];- column.splice(source.index, 1);- column.splice(destination.index ?? column.length + 1, 0, sourceDeal);- return {- ...dealsByStage,- [destination.stage]: column,- };- } else {- // moving deal across columns- const sourceColumn = dealsByStage[source.stage];- const destinationColumn = dealsByStage[destination.stage];- sourceColumn.splice(source.index, 1);- destinationColumn.splice(- destination.index ?? destinationColumn.length + 1,- 0,- sourceDeal- );- return {- ...dealsByStage,- [source.stage]: sourceColumn,- [destination.stage]: destinationColumn,- };- }-};--const updateDealStage = async (- source: Deal,- destination: {- stage: string;- index?: number; // undefined if dropped after the last item- },- dataProvider: DataProvider-) => {- if (source.stage === destination.stage) {- // moving deal inside the same column- // Fetch all the deals in this stage (because the list may be filtered, but we need to update even non-filtered deals)- const { data: columnDeals } = await dataProvider.getList('deals', {- sort: { field: 'index', order: 'ASC' },- pagination: { page: 1, perPage: 100 },- filter: { stage: source.stage },- });- const destinationIndex = destination.index ?? columnDeals.length + 1;-- if (source.index > destinationIndex) {- // deal moved up, eg- // dest src- // <------- // [4, 7, 23, 5]- await Promise.all([- // for all deals between destinationIndex and source.index, increase the index- ...columnDeals- .filter(- deal =>- deal.index >= destinationIndex &&- deal.index < source.index- )- .map(deal =>- dataProvider.update('deals', {- id: deal.id,- data: { index: deal.index + 1 },- previousData: deal,- })- ),- // for the deal that was moved, update its index- dataProvider.update('deals', {- id: source.id,- data: { index: destinationIndex },- previousData: source,- }),- ]);- } else {- // deal moved down, e.g- // src dest- // ------>- // [4, 7, 23, 5]- await Promise.all([- // for all deals between source.index and destinationIndex, decrease the index- ...columnDeals- .filter(- deal =>- deal.index <= destinationIndex &&- deal.index > source.index- )- .map(deal =>- dataProvider.update('deals', {- id: deal.id,- data: { index: deal.index - 1 },- previousData: deal,- })- ),- // for the deal that was moved, update its index- dataProvider.update('deals', {- id: source.id,- data: { index: destinationIndex },- previousData: source,- }),- ]);- }- } else {- // moving deal across columns- // Fetch all the deals in both stages (because the list may be filtered, but we need to update even non-filtered deals)- const [{ data: sourceDeals }, { data: destinationDeals }] =- await Promise.all([- dataProvider.getList('deals', {- sort: { field: 'index', order: 'ASC' },- pagination: { page: 1, perPage: 100 },- filter: { stage: source.stage },- }),- dataProvider.getList('deals', {- sort: { field: 'index', order: 'ASC' },- pagination: { page: 1, perPage: 100 },- filter: { stage: destination.stage },- }),- ]);- const destinationIndex =- destination.index ?? destinationDeals.length + 1;-- await Promise.all([- // decrease index on the deals after the source index in the source columns- ...sourceDeals- .filter(deal => deal.index > source.index)- .map(deal =>- dataProvider.update('deals', {- id: deal.id,- data: { index: deal.index - 1 },- previousData: deal,- })- ),- // increase index on the deals after the destination index in the destination columns- ...destinationDeals- .filter(deal => deal.index >= destinationIndex)- .map(deal =>- dataProvider.update('deals', {- id: deal.id,- data: { index: deal.index + 1 },- previousData: deal,- })- ),- // change the dragged deal to take the destination index and column- dataProvider.update('deals', {- id: source.id,- data: {- index: destinationIndex,- stage: destination.stage,- },- previousData: source,- }),- ]);- }-};diff --git a/src/deals/DealShow.tsx b/src/deals/DealShow.tsxdeleted file mode 100644index 75c97487..00000000--- a/src/deals/DealShow.tsx+++ /dev/null@@ -1,351 +0,0 @@-import {- Box,- Button,- Chip,- Dialog,- DialogContent,- Divider,- Stack,- Typography,-} from '@mui/material';-import { useMutation } from '@tanstack/react-query';-import { format, isValid } from 'date-fns';-import {- DeleteButton,- EditButton,- ReferenceArrayField,- ReferenceField,- ReferenceManyField,- ShowBase,- useDataProvider,- useNotify,- useRecordContext,- useRedirect,- useRefresh,- useUpdate,-} from 'react-admin';--import ArchiveIcon from '@mui/icons-material/Archive';-import UnarchiveIcon from '@mui/icons-material/Unarchive';-import { CompanyAvatar } from '../companies/CompanyAvatar';-import { DialogCloseButton } from '../misc/DialogCloseButton';-import { NotesIterator } from '../notes';-import { useConfigurationContext } from '../root/ConfigurationContext';-import { Deal } from '../types';-import { ContactList } from './ContactList';-import { findDealLabel } from './deal';--export const DealShow = ({ open, id }: { open: boolean; id?: string }) => {- const redirect = useRedirect();- const handleClose = () => {- redirect('list', 'deals');- };-- return (- <Dialog- open={open}- onClose={handleClose}- fullWidth- maxWidth="md"- sx={{- '& .MuiDialog-container': {- alignItems: 'flex-start',- },- }}- >- <DialogContent sx={{ padding: 0 }}>- {!!id ? (- <ShowBase id={id}>- <DealShowContent handleClose={handleClose} />- </ShowBase>- ) : null}- </DialogContent>- </Dialog>- );-};--const CLOSE_TOP_WITH_ARCHIVED = 14;-const DealShowContent = ({ handleClose }: { handleClose: () => void }) => {- const { dealStages } = useConfigurationContext();- const record = useRecordContext<Deal>();- if (!record) return null;-- return (- <>- <DialogCloseButton- onClose={handleClose}- top={record.archived_at ? CLOSE_TOP_WITH_ARCHIVED : 16}- right={10}- color={record.archived_at ? 'white' : undefined}- />- <Stack gap={1}>- {record.archived_at ? <ArchivedTitle /> : null}- <Box display="flex" p={2}>- <Box flex="1">- <Stack- direction="row"- justifyContent="space-between"- mb={4}- >- <Stack direction="row" alignItems="center" gap={2}>- <ReferenceField- source="company_id"- reference="companies"- link="show"- sx={{ '& a': { textDecoration: 'none' } }}- >- <CompanyAvatar />- </ReferenceField>- <Typography variant="h5">- {record.name}- </Typography>- </Stack>- <Stack- gap={1}- direction="row"- pr={record.archived_at ? 0 : 6}- >- {record.archived_at ? (- <>- <UnarchiveButton record={record} />- <DeleteButton />- </>- ) : (- <>- <ArchiveButton record={record} />- <EditButton scrollToTop={false} />- </>- )}- </Stack>- </Stack>-- <Box display="flex" m={2}>- <Box display="flex" mr={5} flexDirection="column">- <Typography- color="textSecondary"- variant="caption"- >- Expected closing date- </Typography>- <Stack- direction="row"- alignItems="center"- gap={1}- >- <Typography variant="body2">- {isValid(- new Date(- record.expected_closing_date- )- )- ? format(- new Date(- record.expected_closing_date- ),- 'PP'- )- : 'Invalid date'}- </Typography>- {new Date(record.expected_closing_date) <- new Date() ? (- <Chip- label="Past"- color="error"- size="small"- />- ) : null}- </Stack>- </Box>-- <Box display="flex" mr={5} flexDirection="column">- <Typography- color="textSecondary"- variant="caption"- >- Budget- </Typography>- <Typography variant="body2">- {record.amount.toLocaleString('en-US', {- notation: 'compact',- style: 'currency',- currency: 'USD',- currencyDisplay: 'narrowSymbol',- minimumSignificantDigits: 3,- })}- </Typography>- </Box>-- {record.category && (- <Box- display="flex"- mr={5}- flexDirection="column"- >- <Typography- color="textSecondary"- variant="caption"- >- Category- </Typography>- <Typography variant="body2">- {record.category}- </Typography>- </Box>- )}-- <Box display="flex" mr={5} flexDirection="column">- <Typography- color="textSecondary"- variant="caption"- >- Stage- </Typography>- <Typography variant="body2">- {findDealLabel(dealStages, record.stage)}- </Typography>- </Box>- </Box>-- {!!record.contact_ids?.length && (- <Box m={2}>- <Box- display="flex"- mr={5}- flexDirection="column"- minHeight={48}- >- <Typography- color="textSecondary"- variant="caption"- >- Contacts- </Typography>- <ReferenceArrayField- source="contact_ids"- reference="contacts_summary"- >- <ContactList />- </ReferenceArrayField>- </Box>- </Box>- )}-- {record.description && (- <Box m={2} sx={{ whiteSpace: 'pre-line' }}>- <Typography- color="textSecondary"- variant="caption"- >- Description- </Typography>- <Typography variant="body2">- {record.description}- </Typography>- </Box>- )}-- <Box m={2}>- <Divider />- <ReferenceManyField- target="deal_id"- reference="dealNotes"- sort={{ field: 'date', order: 'DESC' }}- >- <NotesIterator reference="deals" />- </ReferenceManyField>- </Box>- </Box>- </Box>- </Stack>- </>- );-};--const ArchivedTitle = () => (- <Box- sx={{- background: theme => theme.palette.warning.main,- px: 3,- py: 2,- }}- >- <Typography- variant="h6"- fontWeight="bold"- sx={{- color: theme => theme.palette.warning.contrastText,- }}- >- Archived Deal- </Typography>- </Box>-);--const ArchiveButton = ({ record }: { record: Deal }) => {- const [update] = useUpdate();- const redirect = useRedirect();- const notify = useNotify();- const refresh = useRefresh();- const handleClick = () => {- update(- 'deals',- {- id: record.id,- data: { archived_at: new Date().toISOString() },- previousData: record,- },- {- onSuccess: () => {- redirect('list', 'deals');- notify('Deal archived', { type: 'info', undoable: false });- refresh();- },- onError: () => {- notify('Error: deal not archived', { type: 'error' });- },- }- );- };-- return (- <Button onClick={handleClick} startIcon={<ArchiveIcon />} size="small">- Archive- </Button>- );-};--const UnarchiveButton = ({ record }: { record: Deal }) => {- const dataProvider = useDataProvider();- const redirect = useRedirect();- const notify = useNotify();- const refresh = useRefresh();-- const { mutate } = useMutation({- mutationFn: () => dataProvider.unarchiveDeal(record),- onSuccess: () => {- redirect('list', 'deals');- notify('Deal unarchived', {- type: 'info',- undoable: false,- });- refresh();- },- onError: () => {- notify('Error: deal not unarchived', { type: 'error' });- },- });-- const handleClick = () => {- mutate();- };-- return (- <Button- onClick={handleClick}- startIcon={<UnarchiveIcon />}- size="small"- >- Send back to the board- </Button>- );-};diff --git a/src/deals/OnlyMineInput.tsx b/src/deals/OnlyMineInput.tsxdeleted file mode 100644index 029dbd19..00000000--- a/src/deals/OnlyMineInput.tsx+++ /dev/null@@ -1,34 +0,0 @@-import * as React from 'react';-import { useListFilterContext, useGetIdentity } from 'react-admin';-import { Box, Switch, FormControlLabel } from '@mui/material';--export const OnlyMineInput = (_: { alwaysOn: boolean; source: string }) => {- const { filterValues, displayedFilters, setFilters } =- useListFilterContext();- const { identity } = useGetIdentity();-- const handleChange = () => {- const newFilterValues = { ...filterValues };- if (typeof filterValues.sales_id !== 'undefined') {- delete newFilterValues.sales_id;- } else {- newFilterValues.sales_id = identity && identity?.id;- }- setFilters(newFilterValues, displayedFilters);- };- return (- <Box sx={{ marginBottom: 1, marginLeft: 1 }}>- <FormControlLabel- control={- <Switch- checked={typeof filterValues.sales_id !== 'undefined'}- onChange={handleChange}- color="primary"- name="checkedC"- />- }- label="Only companies I manage"- />- </Box>- );-};diff --git a/src/deals/index.ts b/src/deals/index.tsdeleted file mode 100644index 4a13f205..00000000--- a/src/deals/index.ts+++ /dev/null@@ -1,7 +0,0 @@-/* eslint-disable import/no-anonymous-default-export */-import * as React from 'react';-const DealList = React.lazy(() => import('./DealList'));--export default {- list: DealList,-};diff --git a/src/hooks/array-input-context.tsx b/src/hooks/array-input-context.tsxnew file mode 100644index 00000000..4ece31e6--- /dev/null+++ b/src/hooks/array-input-context.tsx@@ -0,0 +1,53 @@+import { createContext, useContext, useMemo } from "react";+import { UseFieldArrayReturn } from "react-hook-form";++/**+ * A React context that provides access to an ArrayInput methods as provided by react-hook-form+ * Useful to create custom array input iterators.+ * @deprecated Use ArrayInputContext from `ra-core` once available.+ * @see {ArrayInput}+ * @see {@link https://react-hook-form.com/docs/usefieldarray}+ */+export const ArrayInputContext = createContext<+ ArrayInputContextValue | undefined+>(undefined);++/**+ * @deprecated Use ArrayInputContextValue from `ra-core` once available.+ */+export type ArrayInputContextValue = UseFieldArrayReturn;++/**+ * @deprecated Use useArrayInput from `ra-core` once available.+ */+export const useArrayInput = (+ props?: Partial<ArrayInputContextValue>,+): ArrayInputContextValue => {+ const context = useContext(ArrayInputContext);+ const memo = useMemo(+ () =>+ ({+ append: props?.append,+ fields: props?.fields,+ insert: props?.insert,+ move: props?.move,+ prepend: props?.prepend,+ remove: props?.remove,+ replace: props?.replace,+ swap: props?.swap,+ update: props?.update,+ }) as ArrayInputContextValue,+ [props],+ );++ if (props?.fields) {+ return memo;+ }+ if (!context) {+ throw new Error(+ "useArrayInput must be used inside an ArrayInputContextProvider",+ );+ }++ return context;+};diff --git a/src/hooks/filter-context.tsx b/src/hooks/filter-context.tsxnew file mode 100644index 00000000..38dcc3fd--- /dev/null+++ b/src/hooks/filter-context.tsx@@ -0,0 +1,32 @@+import * as React from "react";+import { useContext } from "react";++export interface FilterElementProps {+ alwaysOn?: boolean;+ context?: string;++ defaultValue?: any;+ resource?: string;+ record?: object;+ source: string;+++ [key: string]: any; // Allow any other prop+}++export type FilterContextType =+ | React.ReactElement<FilterElementProps>[]+ | undefined;++/**+ * Make filters accessible to sub components+ * @deprecated Use FilterContext from `ra-core` once available.+ */+export const FilterContext = React.createContext<FilterContextType>(undefined);++/**+ * @deprecated Use useFilterContext from `ra-core` once available.+ */+export const useFilterContext = (): FilterContextType => {+ return useContext(FilterContext);+};diff --git a/src/hooks/saved-queries.tsx b/src/hooks/saved-queries.tsxnew file mode 100644index 00000000..7c93d3ec--- /dev/null+++ b/src/hooks/saved-queries.tsx@@ -0,0 +1,66 @@+import { SortPayload, useStore } from "ra-core";++/**+ * @deprecated Use useSavedQueries from `ra-core` once available.+ */+export const useSavedQueries = (resource: string) => {+ return useStore<SavedQuery[]>(`${resource}.savedQueries`, []);+};++/**+ * @deprecated Use SavedQuery from `ra-core` once available.+ */+export interface SavedQuery {+ label: string;+ value: {++ filter?: any;++ displayedFilters?: any[];+ sort?: SortPayload;+ perPage?: number;+ };+}++/**+ * @deprecated Use extractValidSavedQueries from `ra-core` once available.+ */+export const extractValidSavedQueries = (savedQueries: SavedQuery[]) => {+ if (Array.isArray(savedQueries)) {+ return savedQueries.filter((query) => isValidSavedQuery(query));+ }++ return [];+};++/**+ * @deprecated Use areValidSavedQueries from `ra-core` once available.+ */+export const areValidSavedQueries = (savedQueries: SavedQuery[]) => {+ if (+ Array.isArray(savedQueries) &&+ savedQueries.every((query) => isValidSavedQuery(query))+ ) {+ return true;+ }+};++/**+ * @deprecated Use isValidSavedQuery from `ra-core` once available.+ */+export const isValidSavedQuery = (savedQuery: SavedQuery) => {+ if (+ savedQuery.label &&+ typeof savedQuery.label === "string" &&+ savedQuery.value &&+ typeof Array.isArray(savedQuery.value.displayedFilters) &&+ typeof savedQuery.value.perPage === "number" &&+ typeof savedQuery.value.sort?.field === "string" &&+ typeof savedQuery.value.sort?.order === "string" &&+ typeof savedQuery.value.filter === "object"+ ) {+ return true;+ }++ return false;+};diff --git a/src/hooks/simple-form-iterator-context.tsx b/src/hooks/simple-form-iterator-context.tsxnew file mode 100644index 00000000..a761c284--- /dev/null+++ b/src/hooks/simple-form-iterator-context.tsx@@ -0,0 +1,71 @@+import { createContext, useContext } from "react";++/**+ * A React context that provides access to a SimpleFormIterator data (the total number of items) and mutators (add, reorder and remove).+ * Useful to create custom array input iterators.+ * @deprecated Use SimpleFormIteratorContext from `ra-core` once available.+ * @see {SimpleFormIterator}+ * @see {ArrayInput}+ */+export const SimpleFormIteratorContext = createContext<+ SimpleFormIteratorContextValue | undefined+>(undefined);++/**+ * @deprecated Use SimpleFormIteratorContextValue from `ra-core` once available.+ */+export type SimpleFormIteratorContextValue = {++ add: (item?: any) => void;+ remove: (index: number) => void;+ reOrder: (index: number, newIndex: number) => void;+ source: string;+ total: number;+};++/**+ * @deprecated Use useSimpleFormIterator from `ra-core` once available.+ */+export const useSimpleFormIterator = () => {+ const context = useContext(SimpleFormIteratorContext);+ if (!context) {+ throw new Error(+ "useSimpleFormIterator must be used inside a SimpleFormIterator",+ );+ }+ return context;+};++/**+ * A React context that provides access to a SimpleFormIterator item meta (its index and the total number of items) and mutators (reorder and remove this remove).+ * Useful to create custom array input iterators.+ * @deprecated Use SimpleFormIteratorItemContext from `ra-core` once available.+ * @see {SimpleFormIterator}+ * @see {ArrayInput}+ */+export const SimpleFormIteratorItemContext = createContext<+ SimpleFormIteratorItemContextValue | undefined+>(undefined);++/**+ * @deprecated Use SimpleFormIteratorItemContextValue from `ra-core` once available.+ */+export type SimpleFormIteratorItemContextValue = {+ index: number;+ total: number;+ remove: () => void;+ reOrder: (newIndex: number) => void;+};++/**+ * @deprecated Use useSimpleFormIteratorItem from `ra-core` once available.+ */+export const useSimpleFormIteratorItem = () => {+ const context = useContext(SimpleFormIteratorItemContext);+ if (!context) {+ throw new Error(+ "useSimpleFormIteratorItem must be used inside a SimpleFormIteratorItem",+ );+ }+ return context;+};diff --git a/src/hooks/use-mobile.ts b/src/hooks/use-mobile.tsnew file mode 100644index 00000000..48fab93c--- /dev/null+++ b/src/hooks/use-mobile.ts@@ -0,0 +1,21 @@+import * as React from "react";++const MOBILE_BREAKPOINT = 768;++export function useIsMobile() {+ const [isMobile, setIsMobile] = React.useState<boolean | undefined>(+ undefined+ );++ React.useEffect(() => {+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);+ const onChange = () => {+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);+ };+ mql.addEventListener("change", onChange);+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);+ return () => mql.removeEventListener("change", onChange);+ }, []);++ return !!isMobile;+}diff --git a/src/hooks/useBulkExport.tsx b/src/hooks/useBulkExport.tsxnew file mode 100644index 00000000..badef485--- /dev/null+++ b/src/hooks/useBulkExport.tsx@@ -0,0 +1,61 @@+import {+ Exporter,+ fetchRelatedRecords,+ useDataProvider,+ useListContext,+ useNotify,+ useResourceContext,+} from "ra-core";+import { useCallback, useMemo } from "react";++/**+ * This fill will be backported to 'ra-core' in the future.+ *+ * @deprecated Import from 'ra-core' instead.+ */+export function useBulkExport<+ ResourceInformationsType extends Partial<{ resource: string }>+>(props: UseBulkExportProps<ResourceInformationsType>) {+ const { exporter: customExporter, meta } = props;++ const resource = useResourceContext(props);+ const { exporter: exporterFromContext, selectedIds } = useListContext();+ const exporter = customExporter || exporterFromContext;+ const dataProvider = useDataProvider();+ const notify = useNotify();++ const bulkExport = useCallback(() => {+ if (exporter && resource) {+ dataProvider+ .getMany(resource, { ids: selectedIds, meta })+ .then(({ data }) =>+ exporter(+ data,+ fetchRelatedRecords(dataProvider),+ dataProvider,+ resource+ )+ )+ .catch((error) => {+ console.error(error);+ notify("ra.notification.http_error", {+ type: "error",+ });+ });+ }+ }, [dataProvider, exporter, notify, resource, selectedIds, meta]);++ return useMemo(() => {+ return {+ bulkExport,+ };+ }, [bulkExport]);+}++export type ResourceInformation = Partial<{ resource: string }>;++export type UseBulkExportProps<T extends ResourceInformation> = T & {+ exporter?: Exporter;++ meta?: any;+};diff --git a/src/hooks/useSupportCreateSuggestion.tsx b/src/hooks/useSupportCreateSuggestion.tsxnew file mode 100644index 00000000..d71fcc94--- /dev/null+++ b/src/hooks/useSupportCreateSuggestion.tsx@@ -0,0 +1,184 @@+import * as React from "react";+import {+ ChangeEvent,+ createContext,+ isValidElement,+ ReactElement,+ useContext,+ useRef,+ useState,+} from "react";+import { Identifier, OptionText, useTranslate } from "ra-core";+import set from "lodash/set";++/**+ * This hook provides support for suggestion creation in inputs which have choices.+ *+ * @deprecated Use `useSupportCreateSuggestion` from "ra-core" when available.+ *+ * @param options The hook option+ * @param {ReactElement} options.create A react element which will be rendered when users choose to create a new choice. This component must call the `useCreateSuggestionContext` hook which provides `onCancel`, `onCreate` and `filter`. See the examples.+ * @param {React.ReactNode|string} options.createLabel Optional. The label for the choice item allowing users to create a new choice. Can be a translation key. Defaults to `ra.action.create`.+ * @param {React.ReactNode|string} options.createItemLabel Optional. The label for the choice item allowing users to create a new choice when they already entered a filter. Can be a translation key. The function and ttranslation will receive an `item` parameter. Providing this option will turn the create label when there is no filter to be a hint (i.e. a disabled item).+ * @param {any} options.createValue Optional. The value for the choice item allowing users to create a new choice. Defaults to `@@ra-create`.+ * @param {any} options.createHintValue Optional. The value for the (disabled) item hinting users on how to create a new choice. Defaults to `@@ra-create-hint`.+ * @param {String} options.filter Optional. The filter users may have already entered. Useful for autocomplete inputs for example.+ * @param {OnCreateHandler} options.onCreate Optional. A function which will be called when users choose to create a new choice, if the `create` option wasn't provided.+ * @param {Function} options.handleChange A function to pass to the input. Receives the same parameter as the original event handler and an additional newItem parameter if a new item was create.+ *+ * @returns {UseSupportCreateValue} An object with the following properties:+ * - getCreateItem: a function which will return the label of the choice for create a new choice.+ * - handleChange: a function which should be called when the input value changes. It will call the `onCreate` function if the value is the createValue.+ * - createElement: a React element to render after the input. It will be rendered when users choose to create a new choice. It renders null otherwise.+ * - getOptionDisabled: a function which should be passed to the input to disable the create choice when the filter is empty (to make it a hint).+ */+export const useSupportCreateSuggestion = (+ options: SupportCreateSuggestionOptions,+): UseSupportCreateValue => {+ const {+ create,+ createLabel = "ra.action.create",+ createItemLabel,+ createValue = "@@ra-create",+ createHintValue = "@@ra-create-hint",+ optionText = "name",+ filter,+ handleChange,+ onCreate,+ } = options;++ const translate = useTranslate();+ const [renderOnCreate, setRenderOnCreate] = useState(false);+ const filterRef = useRef(filter);++ return {+ createId: createValue,+ createHintId: createHintValue,+ getCreateItem: (filter?: string) => {+ filterRef.current = filter;++ return set(+ {+ id: createItemLabel && !filter ? createHintValue : createValue,+ },+ typeof optionText === "string" ? optionText : "name",+ filter && createItemLabel+ ? typeof createItemLabel === "string"+ ? translate(createItemLabel, {+ item: filter,+ _: createItemLabel,+ })+ : createItemLabel(filter)+ : typeof createLabel === "string"+ ? translate(createLabel, { _: createLabel })+ : createLabel,+ );+ },+ handleChange: async (eventOrValue: MouseEvent | any) => {+ const value = eventOrValue?.target?.value || eventOrValue;+ const finalValue = Array.isArray(value) ? [...value].pop() : value;++ if (finalValue?.id === createValue || finalValue === createValue) {+ if (!isValidElement(create)) {+ if (!onCreate) {+ // this should never happen because the createValue is only added if a create function is provided+ // @see AutocompleteInput:filterOptions+ throw new Error(+ "To create a new option, you must pass an onCreate function or a create element.",+ );+ }+ const newSuggestion = await onCreate(filter);+ if (newSuggestion) {+ handleChange(newSuggestion);+ return;+ }+ } else {+ setRenderOnCreate(true);+ return;+ }+ }+ handleChange(eventOrValue);+ },+ createElement:+ renderOnCreate && isValidElement(create) ? (+ <CreateSuggestionContext.Provider+ value={{+ filter: filterRef.current,+ onCancel: () => setRenderOnCreate(false),+ onCreate: (item) => {+ setRenderOnCreate(false);+ handleChange(item);+ },+ }}+ >+ {create}+ </CreateSuggestionContext.Provider>+ ) : null,+ getOptionDisabled: (option) =>+ option?.id === createHintValue || option === createHintValue,+ };+};++/**+ * @deprecated Use `SupportCreateSuggestionOptions` from "ra-core" when available.+ */+export interface SupportCreateSuggestionOptions {+ create?: ReactElement;+ createValue?: string;+ createHintValue?: string;+ createLabel?: React.ReactNode;+ createItemLabel?: string | ((filter: string) => React.ReactNode);+ filter?: string;+ handleChange: (value: any) => void;+ onCreate?: OnCreateHandler;+ optionText?: OptionText;+}++/**+ * @deprecated Use `UseSupportCreateValue` from "ra-core" when available.+ */+export interface UseSupportCreateValue {+ createId: string;+ createHintId: string;+ getCreateItem: (filterValue?: string) => {+ id: Identifier;+ [key: string]: any;+ };+ handleChange: (eventOrValue: ChangeEvent | any) => Promise<void>;+ createElement: ReactElement | null;+ getOptionDisabled: (option: any) => boolean;+}++/**+ * @deprecated Use `CreateSuggestionContext` from "ra-core" when available.+ */+const CreateSuggestionContext = createContext<+ CreateSuggestionContextValue | undefined+>(undefined);++/**+ * @deprecated Use `CreateSuggestionContextValue` from "ra-core" when available.+ */+interface CreateSuggestionContextValue {+ filter?: string;+ onCreate: (choice: any) => void;+ onCancel: () => void;+}++/**+ * @deprecated Use `useCreateSuggestionContext` from "ra-core" when available.+ */+export const useCreateSuggestionContext = () => {+ const context = useContext(CreateSuggestionContext);+ if (!context) {+ throw new Error(+ "useCreateSuggestionContext must be used inside a CreateSuggestionContext.Provider",+ );+ }+ return context;+};++/**+ * @deprecated Use `OnCreateHandler` from "ra-core" when available.+ */+export type OnCreateHandler = (filter?: string) => any | Promise<any>;diff --git a/src/hooks/user-menu-context.tsx b/src/hooks/user-menu-context.tsxnew file mode 100644index 00000000..31246630--- /dev/null+++ b/src/hooks/user-menu-context.tsx@@ -0,0 +1,24 @@+import { createContext, useContext } from "react";++/**+ * @deprecated Use UserMenuContextValue from `ra-core` once available.+ */+export type UserMenuContextValue = {+ /**+ * Closes the user menu+ * @see UserMenu+ */+ onClose: () => void;+};++/**+ * @deprecated Use UserMenuContext from `ra-core` once available.+ */+export const UserMenuContext = createContext<UserMenuContextValue | undefined>(+ undefined,+);++/**+ * @deprecated Use useUserMenu from `ra-core` once available.+ */+export const useUserMenu = () => useContext(UserMenuContext);diff --git a/src/index.css b/src/index.cssnew file mode 100644index 00000000..0ff54bc9--- /dev/null+++ b/src/index.css@@ -0,0 +1,150 @@+@import "tailwindcss";+@import "tw-animate-css";++@custom-variant dark (&:is(.dark *));++@theme inline {+ --radius-sm: calc(var(--radius) - 4px);+ --radius-md: calc(var(--radius) - 2px);+ --radius-lg: var(--radius);+ --radius-xl: calc(var(--radius) + 4px);+ --color-background: var(--background);+ --color-foreground: var(--foreground);+ --color-card: var(--card);+ --color-card-foreground: var(--card-foreground);+ --color-popover: var(--popover);+ --color-popover-foreground: var(--popover-foreground);+ --color-primary: var(--primary);+ --color-primary-foreground: var(--primary-foreground);+ --color-secondary: var(--secondary);+ --color-secondary-foreground: var(--secondary-foreground);+ --color-muted: var(--muted);+ --color-muted-foreground: var(--muted-foreground);+ --color-accent: var(--accent);+ --color-accent-foreground: var(--accent-foreground);+ --color-destructive: var(--destructive);+ --color-border: var(--border);+ --color-input: var(--input);+ --color-ring: var(--ring);+ --color-chart-1: var(--chart-1);+ --color-chart-2: var(--chart-2);+ --color-chart-3: var(--chart-3);+ --color-chart-4: var(--chart-4);+ --color-chart-5: var(--chart-5);+ --color-sidebar: var(--sidebar);+ --color-sidebar-foreground: var(--sidebar-foreground);+ --color-sidebar-primary: var(--sidebar-primary);+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);+ --color-sidebar-accent: var(--sidebar-accent);+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);+ --color-sidebar-border: var(--sidebar-border);+ --color-sidebar-ring: var(--sidebar-ring);+}++:root {+ --radius: 0.625rem;+ --background: oklch(1 0 0);+ --foreground: oklch(0.145 0 0);+ --card: oklch(1 0 0);+ --card-foreground: oklch(0.145 0 0);+ --popover: oklch(1 0 0);+ --popover-foreground: oklch(0.145 0 0);+ --primary: oklch(0.205 0 0);+ --primary-foreground: oklch(0.985 0 0);+ --secondary: oklch(0.97 0 0);+ --secondary-foreground: oklch(0.205 0 0);+ --muted: oklch(0.97 0 0);+ --muted-foreground: oklch(0.556 0 0);+ --accent: oklch(0.97 0 0);+ --accent-foreground: oklch(0.205 0 0);+ --destructive: oklch(0.577 0.245 27.325);+ --border: oklch(0.922 0 0);+ --input: oklch(0.922 0 0);+ --ring: oklch(0.708 0 0);+ --chart-1: oklch(0.646 0.222 41.116);+ --chart-2: oklch(0.6 0.118 184.704);+ --chart-3: oklch(0.398 0.07 227.392);+ --chart-4: oklch(0.828 0.189 84.429);+ --chart-5: oklch(0.769 0.188 70.08);+ --sidebar: oklch(0.985 0 0);+ --sidebar-foreground: oklch(0.145 0 0);+ --sidebar-primary: oklch(0.205 0 0);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.97 0 0);+ --sidebar-accent-foreground: oklch(0.205 0 0);+ --sidebar-border: oklch(0.922 0 0);+ --sidebar-ring: oklch(0.708 0 0);+}++.dark {+ --background: oklch(0.145 0 0);+ --foreground: oklch(0.985 0 0);+ --card: oklch(0.205 0 0);+ --card-foreground: oklch(0.985 0 0);+ --popover: oklch(0.205 0 0);+ --popover-foreground: oklch(0.985 0 0);+ --primary: oklch(0.922 0 0);+ --primary-foreground: oklch(0.205 0 0);+ --secondary: oklch(0.269 0 0);+ --secondary-foreground: oklch(0.985 0 0);+ --muted: oklch(0.269 0 0);+ --muted-foreground: oklch(0.708 0 0);+ --accent: oklch(0.269 0 0);+ --accent-foreground: oklch(0.985 0 0);+ --destructive: oklch(0.704 0.191 22.216);+ --border: oklch(1 0 0 / 10%);+ --input: oklch(1 0 0 / 15%);+ --ring: oklch(0.556 0 0);+ --chart-1: oklch(0.488 0.243 264.376);+ --chart-2: oklch(0.696 0.17 162.48);+ --chart-3: oklch(0.769 0.188 70.08);+ --chart-4: oklch(0.627 0.265 303.9);+ --chart-5: oklch(0.645 0.246 16.439);+ --sidebar: oklch(0.205 0 0);+ --sidebar-foreground: oklch(0.985 0 0);+ --sidebar-primary: oklch(0.488 0.243 264.376);+ --sidebar-primary-foreground: oklch(0.985 0 0);+ --sidebar-accent: oklch(0.269 0 0);+ --sidebar-accent-foreground: oklch(0.985 0 0);+ --sidebar-border: oklch(1 0 0 / 10%);+ --sidebar-ring: oklch(0.556 0 0);+}++a,+button {+ cursor: pointer;+}++input {+ cursor: text;+}++a[aria-disabled="true"],+button[aria-disabled="true"],+button:disabled,+input[aria-disabled="true"],+input:disabled {+ cursor: not-allowed;+}++input[type="date"],+input[type="datetime-local"],+input[type="month"],+input[type="time"] {+ position: relative;+}++.dark ::-webkit-calendar-picker-indicator {+ filter: invert(1);+ position: absolute;+ right: 0.75rem;+}++@layer base {+ * {+ @apply border-border outline-ring/50;+ }+ body {+ @apply bg-background text-foreground;+ }+}diff --git a/src/index.tsx b/src/index.tsxdeleted file mode 100644index 1255cb19..00000000--- a/src/index.tsx+++ /dev/null@@ -1,17 +0,0 @@-import companies from './companies';-import contacts from './contacts';-import deals from './deals';-import sales from './sales';--export { ForgotPasswordPage, SetPasswordPage } from 'ra-supabase';--export { CRM } from './root/CRM';-export type { CRMProps } from './root/CRM';-export { i18nProvider } from './root/i18nProvider';-export { Layout } from './layout/Layout';-export { Dashboard } from './dashboard/Dashboard';-export { LoginPage } from './login/LoginPage';-export { SignupPage } from './login/SignupPage';-export { SettingsPage } from './settings/SettingsPage';--export { companies, contacts, deals, sales };diff --git a/src/layout/Header.tsx b/src/layout/Header.tsxdeleted file mode 100644index 8f299cfc..00000000--- a/src/layout/Header.tsx+++ /dev/null@@ -1,140 +0,0 @@-import PeopleIcon from '@mui/icons-material/People';-import SettingsIcon from '@mui/icons-material/Settings';-import {- AppBar,- Box,- ListItemIcon,- ListItemText,- MenuItem,- Tab,- Tabs,- Toolbar,- Typography,-} from '@mui/material';-import {- CanAccess,- LoadingIndicator,- Logout,- UserMenu,- useUserMenu,-} from 'react-admin';-import { Link, matchPath, useLocation } from 'react-router-dom';-import { useConfigurationContext } from '../root/ConfigurationContext';--const Header = () => {- const { logo, title } = useConfigurationContext();- const location = useLocation();-- let currentPath: string | boolean = '/';- if (!!matchPath('/', location.pathname)) {- currentPath = '/';- } else if (!!matchPath('/contacts/*', location.pathname)) {- currentPath = '/contacts';- } else if (!!matchPath('/companies/*', location.pathname)) {- currentPath = '/companies';- } else if (!!matchPath('/deals/*', location.pathname)) {- currentPath = '/deals';- } else {- currentPath = false;- }-- return (- <Box component="nav" sx={{ flexGrow: 1 }}>- <AppBar position="static" color="primary">- <Toolbar variant="dense">- <Box flex={1} display="flex" justifyContent="space-between">- <Box- display="flex"- alignItems="center"- component={Link}- to="/"- sx={{- color: 'inherit',- textDecoration: 'inherit',- }}- gap={1.5}- >- <Box- component="img"- sx={{ height: 24 }}- src={logo}- alt={title}- />- <Typography component="span" variant="h5">- {title}- </Typography>- </Box>- <Box>- <Tabs- value={currentPath}- aria-label="Navigation Tabs"- indicatorColor="secondary"- textColor="inherit"- >- <Tab- label={'Dashboard'}- component={Link}- to="/"- value="/"- />- <Tab- label={'Contacts'}- component={Link}- to="/contacts"- value="/contacts"- />- <Tab- label={'Companies'}- component={Link}- to="/companies"- value="/companies"- />- <Tab- label={'Deals'}- component={Link}- to="/deals"- value="/deals"- />- </Tabs>- </Box>- <Box display="flex" alignItems="center">- <LoadingIndicator />- <UserMenu>- <ConfigurationMenu />- <CanAccess resource="sales" action="list">- <UsersMenu />- </CanAccess>- <Logout />- </UserMenu>- </Box>- </Box>- </Toolbar>- </AppBar>- </Box>- );-};--const UsersMenu = () => {- const { onClose } = useUserMenu() ?? {};- return (- <MenuItem component={Link} to="/sales" onClick={onClose}>- <ListItemIcon>- <PeopleIcon fontSize="small" />- </ListItemIcon>- <ListItemText>Users</ListItemText>- </MenuItem>- );-};--const ConfigurationMenu = () => {- const { onClose } = useUserMenu() ?? {};- return (- <MenuItem component={Link} to="/settings" onClick={onClose}>- <ListItemIcon>- <SettingsIcon fontSize="small" />- </ListItemIcon>- <ListItemText>My info</ListItemText>- </MenuItem>- );-};-export default Header;diff --git a/src/layout/Layout.tsx b/src/layout/Layout.tsxdeleted file mode 100644index 1750cbe2..00000000--- a/src/layout/Layout.tsx+++ /dev/null@@ -1,21 +0,0 @@-import { Suspense, ReactNode } from 'react';-import { CssBaseline, Container } from '@mui/material';-import { Error, Loading, CheckForApplicationUpdate } from 'react-admin';-import { ErrorBoundary } from 'react-error-boundary';--import Header from './Header';--export const Layout = ({ children }: { children: ReactNode }) => (- <>- <CssBaseline />- <Header />- <Container sx={{ maxWidth: { xl: 1280 } }}>- <main id="main-content">- <ErrorBoundary FallbackComponent={Error}>- <Suspense fallback={<Loading />}>{children}</Suspense>- </ErrorBoundary>- </main>- </Container>- <CheckForApplicationUpdate interval={30 * 1000} />- </>-);diff --git a/src/login/LoginForm.tsx b/src/login/LoginForm.tsxdeleted file mode 100644index 0f356e5c..00000000--- a/src/login/LoginForm.tsx+++ /dev/null@@ -1,122 +0,0 @@-import * as React from 'react';-import { styled } from '@mui/material/styles';-import {- Button,- CardActions,- CardContent,- CircularProgress,- Typography,-} from '@mui/material';-import { Form, useLogin, useNotify, useSafeSetState } from 'ra-core';-import { Login, TextInput } from 'react-admin';-import { SubmitHandler } from 'react-hook-form';-import { Link } from 'react-router-dom';-import { ForgotPasswordPage } from 'ra-supabase';--const PREFIX = 'RaLoginForm';--export const LoginFormClasses = {- content: `${PREFIX}-content`,- button: `${PREFIX}-button`,- icon: `${PREFIX}-icon`,-};--const StyledForm = styled(Form, {- name: PREFIX,- overridesResolver: (props, styles) => styles.root,-})(({ theme }) => ({- [`& .${LoginFormClasses.content}`]: {- width: 300,- },- [`& .${LoginFormClasses.button}`]: {- marginTop: theme.spacing(2),- },- [`& .${LoginFormClasses.icon}`]: {- margin: theme.spacing(0.3),- },-}));--export const LoginForm = () => {- const [loading, setLoading] = useSafeSetState(false);- const login = useLogin();- const notify = useNotify();-- const submit: SubmitHandler<FieldValues> = values => {- setLoading(true);- login(values)- .then(() => {- setLoading(false);- })- .catch(error => {- setLoading(false);- notify(- typeof error === 'string'- ? error- : typeof error === 'undefined' || !error.message- ? 'ra.auth.sign_in_error'- : error.message,- {- type: 'error',- messageArgs: {- _:- typeof error === 'string'- ? error- : error && error.message- ? error.message- : undefined,- },- }- );- });- };-- return (- <Login>- <StyledForm onSubmit={submit} mode="onChange" noValidate>- <CardContent className={LoginFormClasses.content}>- <TextInput- autoFocus- source="email"- label="Email"- autoComplete="email"- />- <TextInput- source="password"- label="Password"- type="password"- autoComplete="current-password"- />- </CardContent>- <CardActions sx={{ flexDirection: 'column', gap: 1 }}>- <Button- variant="contained"- type="submit"- color="primary"- disabled={loading}- fullWidth- className={LoginFormClasses.button}- >- {loading ? (- <CircularProgress- className={LoginFormClasses.icon}- size={19}- thickness={3}- />- ) : (- 'Sign In'- )}- </Button>- <Typography- component={Link}- to={ForgotPasswordPage.path}- variant="caption"- >- Forgot your password?- </Typography>- </CardActions>- </StyledForm>- </Login>- );-};--type FieldValues = Record<string, any>;diff --git a/src/login/LoginPage.tsx b/src/login/LoginPage.tsxdeleted file mode 100644index f0cf8e0f..00000000--- a/src/login/LoginPage.tsx+++ /dev/null@@ -1,26 +0,0 @@-import { useQuery } from '@tanstack/react-query';-import { useDataProvider } from 'react-admin';-import { Navigate } from 'react-router-dom';-import { CrmDataProvider } from '../providers/types';-import { LoginForm } from './LoginForm';-import { LoginSkeleton } from './LoginSkeleton';--export const LoginPage = () => {- const dataProvider = useDataProvider<CrmDataProvider>();- const {- data: isInitialized,- error,- isPending,- } = useQuery({- queryKey: ['init'],- queryFn: async () => {- return dataProvider.isInitialized();- },- });-- if (isPending) return <LoginSkeleton />;- if (error) return <LoginForm />;- if (isInitialized) return <LoginForm />;-- return <Navigate to="/sign-up" />;-};diff --git a/src/login/LoginSkeleton.tsx b/src/login/LoginSkeleton.tsxdeleted file mode 100644index 96da0e92..00000000--- a/src/login/LoginSkeleton.tsx+++ /dev/null@@ -1,27 +0,0 @@-import { Container, Skeleton, Stack } from '@mui/material';--export const LoginSkeleton = () => {- return (- <Container maxWidth="xl" sx={{ height: '100dvh', pt: 2 }}>- <Stack sx={{ height: '100%' }}>- <Container- maxWidth="sm"- sx={{- height: '100%',- display: 'flex',- flexDirection: 'column',- justifyContent: 'center',- gap: 2,- }}- >- <Skeleton variant="rectangular" width="100%" height={100} />- <Skeleton variant="rectangular" width="80%" height={50} />- <Skeleton variant="rectangular" width="100%" height={36} />- <Skeleton variant="rectangular" width="100%" height={36} />- <Skeleton variant="rectangular" width="100%" height={36} />- <Skeleton variant="rectangular" width="40%" height={36} />- </Container>- </Stack>- </Container>- );-};diff --git a/src/login/SignupPage.tsx b/src/login/SignupPage.tsxdeleted file mode 100644index 62b6ecc7..00000000--- a/src/login/SignupPage.tsx+++ /dev/null@@ -1,159 +0,0 @@-import {- Button,- CircularProgress,- Container,- Stack,- TextField,- Typography,-} from '@mui/material';-import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';-import { useDataProvider, useLogin, useNotify } from 'react-admin';-import { SubmitHandler, useForm } from 'react-hook-form';-import { Navigate } from 'react-router';-import { CrmDataProvider } from '../providers/types';-import { useConfigurationContext } from '../root/ConfigurationContext';-import { SignUpData } from '../types';-import { LoginSkeleton } from './LoginSkeleton';--export const SignupPage = () => {- const queryClient = useQueryClient();- const dataProvider = useDataProvider<CrmDataProvider>();- const { logo, title } = useConfigurationContext();- const { data: isInitialized, isPending } = useQuery({- queryKey: ['init'],- queryFn: async () => {- return dataProvider.isInitialized();- },- });-- const { isPending: isSignUpPending, mutate } = useMutation({- mutationKey: ['signup'],- mutationFn: async (data: SignUpData) => {- return dataProvider.signUp(data);- },- onSuccess: data => {- login({- email: data.email,- password: data.password,- redirectTo: '/contacts',- }).then(() => {- notify('Initial user successfully created');- // FIXME: We should probably provide a hook for that in the ra-core package- queryClient.invalidateQueries({- queryKey: ['auth', 'canAccess'],- });- });- },- onError: () => {- notify('An error occurred. Please try again.');- },- });-- const login = useLogin();- const notify = useNotify();-- const {- register,- handleSubmit,- formState: { isValid },- } = useForm<SignUpData>({- mode: 'onChange',- });-- if (isPending) {- return <LoginSkeleton />;- }-- // For the moment, we only allow one user to sign up. Other users must be created by the administrator.- if (isInitialized) {- return <Navigate to="/login" />;- }-- const onSubmit: SubmitHandler<SignUpData> = async data => {- mutate(data);- };-- return (- <Stack sx={{ height: '100dvh', p: 2 }}>- <Stack direction="row" alignItems="center" gap={1}>- <img- src={logo}- alt={title}- width={24}- style={{ filter: 'invert(0.9)' }}- />- <Typography component="span" variant="h5">- {title}- </Typography>- </Stack>- <Stack sx={{ height: '100%' }}>- <Container- maxWidth="xs"- sx={{- height: '100%',- display: 'flex',- flexDirection: 'column',- justifyContent: 'center',- gap: 1,- }}- >- <Typography variant="h4" component="h1" gutterBottom>- Welcome to Atomic CRM- </Typography>- <Typography variant="body1" gutterBottom>- Create the first user account to complete the setup.- </Typography>- <form onSubmit={handleSubmit(onSubmit)}>- <TextField- {...register('first_name', { required: true })}- label="First name"- variant="outlined"- required- />- <TextField- {...register('last_name', { required: true })}- label="Last name"- variant="outlined"- required- />- <TextField- {...register('email', { required: true })}- label="Email"- type="email"- variant="outlined"- required- />- <TextField- {...register('password', { required: true })}- label="Password"- type="password"- variant="outlined"- required- />- <Stack- direction="row"- justifyContent="space-between"- alignItems="center"- mt={2}- >- <Button- type="submit"- variant="contained"- disabled={!isValid || isSignUpPending}- fullWidth- >- {isSignUpPending ? (- <CircularProgress />- ) : (- 'Create account'- )}- </Button>- </Stack>- </form>- </Container>- </Stack>- </Stack>- );-};--SignupPage.path = '/sign-up';diff --git a/src/logo.svg b/src/logo.svgdeleted file mode 100644index 9dfc1c05..00000000--- a/src/logo.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z"/><circle cx="420.9" cy="296.5" r="45.7"/><path d="M520.5 78.1z"/></g></svg>\ No newline at end of filediff --git a/src/main.tsx b/src/main.tsxnew file mode 100644index 00000000..84cb87b3--- /dev/null+++ b/src/main.tsx@@ -0,0 +1,11 @@+import { StrictMode } from "react";+import { createRoot } from "react-dom/client";+import "./index.css";+import App from "./App.tsx";++// biome-ignore lint/style/noNonNullAssertion: #root element is guaranteed to exist+createRoot(document.getElementById("root")!).render(+ <StrictMode>+ <App />+ </StrictMode>,+);diff --git a/src/misc/ContactOption.tsx b/src/misc/ContactOption.tsxdeleted file mode 100644index 34c5ec53..00000000--- a/src/misc/ContactOption.tsx+++ /dev/null@@ -1,27 +0,0 @@-import { Stack, Typography } from '@mui/material';-import { useRecordContext } from 'react-admin';-import { Avatar } from '../contacts/Avatar';-import { Contact } from '../types';--const ContactOptionRender = () => {- const record: Contact | undefined = useRecordContext();- if (!record) return null;- return (- <Stack direction="row" gap={1} alignItems="center">- <Avatar record={record} />- <Stack>- {record.first_name} {record.last_name}- <Typography variant="caption" color="text.secondary">- {record.title}- {record.title && record.company_name && ' at '}- {record.company_name}- </Typography>- </Stack>- </Stack>- );-};-export const contactOptionText = <ContactOptionRender />;-export const contactInputText = (choice: {- first_name: string;- last_name: string;-}) => `${choice.first_name} ${choice.last_name}`;diff --git a/src/misc/DialogCloseButton.tsx b/src/misc/DialogCloseButton.tsxdeleted file mode 100644index c68cc4a3..00000000--- a/src/misc/DialogCloseButton.tsx+++ /dev/null@@ -1,29 +0,0 @@-import { IconButton } from '@mui/material';-import CloseIcon from '@mui/icons-material/Close';--export const DialogCloseButton = ({- onClose,- top = 8,- right = 8,- color,-}: {- onClose: () => void;- top?: number;- right?: number;- color?: string;-}) => {- return (- <IconButton- aria-label="close"- onClick={onClose}- sx={{- position: 'absolute',- right,- top,- color: theme => (color ? color : theme.palette.grey[500]),- }}- >- <CloseIcon />- </IconButton>- );-};diff --git a/src/misc/ImageEditorField.tsx b/src/misc/ImageEditorField.tsxdeleted file mode 100644index 98be3c56..00000000--- a/src/misc/ImageEditorField.tsx+++ /dev/null@@ -1,208 +0,0 @@-import {- Avatar,- AvatarProps,- Box,- Button,- Dialog,- DialogActions,- DialogContent,- DialogTitle,- Link,- Stack,- Typography,-} from '@mui/material';-import 'cropperjs/dist/cropper.css';-import { useFieldValue } from 'ra-core';-import { createRef, useCallback, useState } from 'react';-import { FieldProps, Toolbar } from 'react-admin';-import { Cropper, ReactCropperElement } from 'react-cropper';-import { useDropzone } from 'react-dropzone';-import { useFormContext } from 'react-hook-form';-import { DialogCloseButton } from './DialogCloseButton';--const ImageEditorField = (props: ImageEditorFieldProps) => {- const { getValues } = useFormContext();- const source = getValues(props.source);- const imageUrl = source?.src;- const [isDialogOpen, setIsDialogOpen] = useState(false);-- const { type = 'image', emptyText, linkPosition = 'none' } = props;-- const commonProps = {- src: imageUrl,- onClick: () => setIsDialogOpen(true),- style: { cursor: 'pointer' },- sx: {- ...props.sx,- width: props.width || (type === 'avatar' ? 50 : 200),- height: props.height || (type === 'avatar' ? 50 : 200),- },- };-- return (- <>- <Stack- direction={linkPosition === 'right' ? 'row' : 'column'}- alignItems={'center'}- gap={linkPosition === 'right' ? 2 : 0.5}- borderRadius={1}- p={props.backgroundImageColor ? 1 : 0}- sx={{- backgroundColor:- props.backgroundImageColor || 'transparent',- }}- >- {props.type === 'avatar' ? (- <Avatar {...commonProps}>{emptyText}</Avatar>- ) : (- <Box component={'img'} {...commonProps} />- )}- {linkPosition !== 'none' && (- <Typography- component={Link}- variant="caption"- onClick={() => setIsDialogOpen(true)}- textAlign="center"- sx={{ display: 'inline', cursor: 'pointer' }}- >- Change- </Typography>- )}- </Stack>- <ImageEditorDialog- open={isDialogOpen}- onClose={() => setIsDialogOpen(false)}- {...props}- />- </>- );-};--const ImageEditorDialog = (props: ImageEditorDialogProps) => {- const { setValue, handleSubmit } = useFormContext();- const cropperRef = createRef<ReactCropperElement>();- const initialValue = useFieldValue(props);- const [file, setFile] = useState<File | undefined>();- const [imageSrc, setImageSrc] = useState<string | undefined>(- initialValue?.src- );- const onDrop = useCallback((files: File[]) => {- const preview = URL.createObjectURL(files[0]);- setFile(files[0]);- setImageSrc(preview);- }, []);-- const updateImage = () => {- const cropper = cropperRef.current?.cropper;- const croppedImage = cropper?.getCroppedCanvas().toDataURL();- if (croppedImage) {- setImageSrc(croppedImage);-- const newFile = file ?? new File([], initialValue?.src);- setValue(- props.source,- {- src: croppedImage,- title: newFile.name,- rawFile: newFile,- },- { shouldDirty: true }- );- props.onClose();-- if (props.onSave) {- handleSubmit(props.onSave)();- }- }- };-- const deleteImage = () => {- setValue(props.source, null, { shouldDirty: true });- if (props.onSave) {- handleSubmit(props.onSave)();- }- props.onClose();- };-- const { getRootProps, getInputProps } = useDropzone({- accept: { 'image/jpeg': ['.jpeg', '.png'] },- onDrop,- maxFiles: 1,- });-- return (- <Dialog- open={props.open}- onClose={props.onClose}- fullWidth- maxWidth="md"- >- {props.type === 'avatar' && (- <style>- {`- .cropper-crop-box,- .cropper-view-box {- border-radius: 50%;- }- `}- </style>- )}- <DialogCloseButton onClose={props.onClose} />- <DialogTitle>Upload and resize image</DialogTitle>- <DialogContent>- <Stack gap={2} justifyContent="center">- <Stack- direction="row"- justifyContent="center"- {...getRootProps()}- sx={{- backgroundColor: 'rgba(0, 0, 0, 0.05)',- cursor: 'pointer',- }}- >- <input {...getInputProps()} />- <p>Drop a file to upload, or click to select it.</p>- </Stack>- <Cropper- ref={cropperRef}- src={imageSrc}- aspectRatio={1}- guides={false}- cropBoxResizable={false}- />- </Stack>- </DialogContent>- <DialogActions sx={{ p: 0 }}>- <Toolbar- sx={{ width: '100%', justifyContent: 'space-between' }}- >- <Button variant="contained" onClick={updateImage}>- Update Image- </Button>- <Button variant="text" color="error" onClick={deleteImage}>- Delete- </Button>- </Toolbar>- </DialogActions>- </Dialog>- );-};--export default ImageEditorField;--export interface ImageEditorFieldProps<- RecordType extends Record<string, any> = Record<string, any>,-> extends FieldProps<RecordType>,- AvatarProps {- width?: number;- height?: number;- type?: 'avatar' | 'image';- onSave?: any;- linkPosition?: 'right' | 'bottom' | 'none';- backgroundImageColor?: string;-}--export interface ImageEditorDialogProps extends ImageEditorFieldProps {- open: boolean;- onClose: () => void;-}diff --git a/src/misc/Status.tsx b/src/misc/Status.tsxdeleted file mode 100644index 54792137..00000000--- a/src/misc/Status.tsx+++ /dev/null@@ -1,24 +0,0 @@-import * as React from 'react';-import { Box, Tooltip } from '@mui/material';-import { useConfigurationContext } from '../root/ConfigurationContext';--export const Status = ({ status }: { status: string }) => {- const { noteStatuses } = useConfigurationContext();- if (!status || !noteStatuses) return null;- const statusObject = noteStatuses.find((s: any) => s.value === status);-- if (!statusObject) return null;- return (- <Tooltip title={statusObject.label} placement="top">- <Box- marginLeft={0.5}- width={10}- height={10}- display="inline-block"- borderRadius="5px"- bgcolor={statusObject.color}- component="span"- />- </Tooltip>- );-};diff --git a/src/misc/isLinkedInUrl.ts b/src/misc/isLinkedInUrl.tsdeleted file mode 100644index 517b0734..00000000--- a/src/misc/isLinkedInUrl.ts+++ /dev/null@@ -1,15 +0,0 @@-const LINKEDIN_URL_REGEX = /^http(?:s)?:\/\/(?:www\.)?linkedin.com\//;--export const isLinkedinUrl = (url: string) => {- if (!url) return;- try {- // Parse the URL to ensure it is valid- const parsedUrl = new URL(url);- if (!parsedUrl.href.match(LINKEDIN_URL_REGEX)) {- return 'URL must be from linkedin.com';- }- } catch (e) {- // If URL parsing fails, return false- return 'Must be a valid URL';- }-};diff --git a/src/misc/useAppBarHeight.ts b/src/misc/useAppBarHeight.tsdeleted file mode 100644index 4c0d4fce..00000000--- a/src/misc/useAppBarHeight.ts+++ /dev/null@@ -1,12 +0,0 @@-import { useMediaQuery, useTheme } from '@mui/material';--const DENSE_NAVBAR_HEIGHT = 48;-const DENSE_NAVBAR_HEIGHT_MOBILE = 64;--export default function useAppBarHeight(): number {- const { breakpoints } = useTheme();- const queryDesktop = breakpoints.up('sm');- return useMediaQuery(queryDesktop)- ? DENSE_NAVBAR_HEIGHT- : DENSE_NAVBAR_HEIGHT_MOBILE;-}diff --git a/src/notes/Note.tsx b/src/notes/Note.tsxdeleted file mode 100644index 7eea0551..00000000--- a/src/notes/Note.tsx+++ /dev/null@@ -1,201 +0,0 @@-import TrashIcon from '@mui/icons-material/Delete';-import EditIcon from '@mui/icons-material/Edit';-import ContentSave from '@mui/icons-material/Save';-import {- Box,- Button,- IconButton,- Stack,- Tooltip,- Typography,-} from '@mui/material';-import { useState } from 'react';-import {- Form,- ReferenceField,- useDelete,- useNotify,- useResourceContext,- useUpdate,- WithRecord,-} from 'react-admin';-import { FieldValues, SubmitHandler } from 'react-hook-form';--import { CompanyAvatar } from '../companies/CompanyAvatar';-import { Avatar } from '../contacts/Avatar';-import { RelativeDate } from '../misc/RelativeDate';-import { Status } from '../misc/Status';-import { SaleName } from '../sales/SaleName';-import { ContactNote, DealNote } from '../types';-import { NoteAttachments } from './NoteAttachments';-import { NoteInputs } from './NoteInputs';--export const Note = ({- showStatus,- note,-}: {- showStatus?: boolean;- note: DealNote | ContactNote;- isLast: boolean;-}) => {- const [isHover, setHover] = useState(false);- const [isEditing, setEditing] = useState(false);- const resource = useResourceContext();- const notify = useNotify();-- const [update, { isPending }] = useUpdate();-- const [deleteNote] = useDelete(- resource,- { id: note.id, previousData: note },- {- mutationMode: 'undoable',- onSuccess: () => {- notify('Note deleted', { type: 'info', undoable: true });- },- }- );-- const handleDelete = () => {- deleteNote();- };-- const handleEnterEditMode = () => {- setEditing(!isEditing);- };-- const handleCancelEdit = () => {- setEditing(false);- setHover(false);- };-- const handleNoteUpdate: SubmitHandler<FieldValues> = values => {- update(- resource,- { id: note.id, data: values, previousData: note },- {- onSuccess: () => {- setEditing(false);- setHover(false);- },- }- );- };-- return (- <Box- onMouseEnter={() => setHover(true)}- onMouseLeave={() => setHover(false)}- pb={1}- >- <Stack direction="row" spacing={1} alignItems="center" width="100%">- {resource === 'contactNote' ? (- <Avatar width={20} height={20} />- ) : (- <ReferenceField- source="company_id"- reference="companies"- link="show"- >- <CompanyAvatar width={20} height={20} />- </ReferenceField>- )}- <Typography color="text.secondary" variant="body2">- <ReferenceField- record={note}- resource={resource}- source="sales_id"- reference="sales"- link={false}- >- <WithRecord- render={record => <SaleName sale={record} />}- />- </ReferenceField>{' '}- added a note{' '}- {showStatus && note.status && (- <Status status={note.status} />- )}- <Box- component="span"- sx={{- ml: 2,- visibility: isHover ? 'visible' : 'hidden',- }}- >- <Tooltip title="Edit note">- <IconButton- size="small"- onClick={handleEnterEditMode}- >- <EditIcon />- </IconButton>- </Tooltip>- <Tooltip title="Delete note">- <IconButton size="small" onClick={handleDelete}>- <TrashIcon />- </IconButton>- </Tooltip>- </Box>- </Typography>- <Box flex={1}></Box>- <Typography- color="textSecondary"- variant="body2"- component="span"- >- <RelativeDate date={note.date} />- </Typography>- </Stack>- {isEditing ? (- <Form onSubmit={handleNoteUpdate} record={note}>- <NoteInputs showStatus={showStatus} edition />- <Box display="flex" justifyContent="flex-start" mt={1}>- <Button- type="submit"- color="primary"- variant="contained"- disabled={isPending}- startIcon={<ContentSave />}- >- Update Note- </Button>- <Button- sx={{ ml: 1 }}- onClick={handleCancelEdit}- color="primary"- >- Cancel- </Button>- </Box>- </Form>- ) : (- <Stack- sx={{- paddingTop: '0.5em',- display: 'flex',- '& p:empty': {- minHeight: '0.75em',- },- }}- >- {note.text- ?.split('\n')- .map((paragraph: string, index: number) => (- <Typography- component="p"- variant="body2"- lineHeight={1.5}- margin={0}- key={index}- >- {paragraph}- </Typography>- ))}-- {note.attachments && <NoteAttachments note={note} />}- </Stack>- )}- </Box>- );-};diff --git a/src/notes/NoteAttachments.tsx b/src/notes/NoteAttachments.tsxdeleted file mode 100644index bc838a06..00000000--- a/src/notes/NoteAttachments.tsx+++ /dev/null@@ -1,68 +0,0 @@-import { ImageList, ImageListItem, Stack } from '@mui/material';-import { AttachmentNote, ContactNote, DealNote } from '../types';-import { FileField } from 'react-admin';-import AttachFileIcon from '@mui/icons-material/AttachFile';--export const NoteAttachments = ({ note }: { note: ContactNote | DealNote }) => {- if (!note.attachments || note.attachments.length === 0) {- return null;- }-- const imageAttachments = note.attachments.filter(- (attachment: AttachmentNote) => isImageMimeType(attachment.type)- );- const otherAttachments = note.attachments.filter(- (attachment: AttachmentNote) => !isImageMimeType(attachment.type)- );-- return (- <Stack direction="column">- {imageAttachments.length > 0 && (- <ImageList cols={4} gap={8}>- {imageAttachments.map(- (attachment: AttachmentNote, index: number) => (- <ImageListItem key={index}>- <img- src={attachment.src}- alt={attachment.title}- style={{- width: '200px',- height: '100px',- objectFit: 'cover',- cursor: 'pointer',- objectPosition: 'left',- border: '1px solid #e0e0e0',- }}- onClick={() =>- window.open(attachment.src, '_blank')- }- />- </ImageListItem>- )- )}- </ImageList>- )}- {otherAttachments.length > 0 &&- otherAttachments.map(- (attachment: AttachmentNote, index: number) => (- <Stack key={index} direction="row" alignItems="center">- <AttachFileIcon fontSize="small" />- <FileField- record={{ attachment }}- source="attachment.src"- title="attachment.title"- target="_blank"- />- </Stack>- )- )}- </Stack>- );-};--const isImageMimeType = (mimeType?: string): boolean => {- if (!mimeType) {- return false;- }- return mimeType.startsWith('image/');-};diff --git a/src/notes/NoteCreate.tsx b/src/notes/NoteCreate.tsxdeleted file mode 100644index ae1e7d78..00000000--- a/src/notes/NoteCreate.tsx+++ /dev/null@@ -1,105 +0,0 @@-import {- CreateBase,- Form,- Identifier,- RaRecord,- SaveButton,- useGetIdentity,- useListContext,- useNotify,- useRecordContext,- useResourceContext,- useUpdate,-} from 'react-admin';-import { useFormContext } from 'react-hook-form';--import { Stack } from '@mui/material';-import { NoteInputs } from './NoteInputs';-import { getCurrentDate } from './utils';--const foreignKeyMapping = {- contacts: 'contact_id',- deals: 'deal_id',-};--export const NoteCreate = ({- showStatus,- reference,-}: {- showStatus?: boolean;- reference: 'contacts' | 'deals';-}) => {- const resource = useResourceContext();- const record = useRecordContext();- const { identity } = useGetIdentity();-- if (!record || !identity) return null;- return (- <CreateBase resource={resource} redirect={false}>- <Form>- <NoteInputs showStatus={showStatus} />- <Stack direction="row">- <NoteCreateButton reference={reference} record={record} />- </Stack>- </Form>- </CreateBase>- );-};--const NoteCreateButton = ({- reference,- record,-}: {- reference: 'contacts' | 'deals';- record: RaRecord<Identifier>;-}) => {- const [update] = useUpdate();- const notify = useNotify();- const { identity } = useGetIdentity();- const { reset } = useFormContext();- const { refetch } = useListContext();-- if (!record || !identity) return null;-- const resetValues: {- date: string;- text: null;- attachments: null;- status?: string;- } = {- date: getCurrentDate(),- text: null,- attachments: null,- };-- if (reference === 'contacts') {- resetValues.status = 'warm';- }-- const handleSuccess = (data: any) => {- reset(resetValues, { keepValues: false });- refetch();- update(reference, {- id: (record && record.id) as unknown as Identifier,- data: { last_seen: new Date().toISOString(), status: data.status },- previousData: record,- });- notify('Note added');- };- return (- <SaveButton- type="button"- label="Add this note"- variant="contained"- transform={data => ({- ...data,- [foreignKeyMapping[reference]]: record.id,- sales_id: identity.id,- date: data.date || getCurrentDate(),- })}- mutationOptions={{- onSuccess: handleSuccess,- }}- />- );-};diff --git a/src/notes/NoteInputs.tsx b/src/notes/NoteInputs.tsxdeleted file mode 100644index f660fd9a..00000000--- a/src/notes/NoteInputs.tsx+++ /dev/null@@ -1,89 +0,0 @@-import { Collapse, Link, Stack, Typography } from '@mui/material';-import {- DateTimeInput,- FileField,- FileInput,- SelectInput,- TextInput,-} from 'react-admin';-import { useState } from 'react';-import { useFormContext } from 'react-hook-form';--import { useConfigurationContext } from '../root/ConfigurationContext';-import { formatNoteDate, getCurrentDate } from './utils';-import { Status } from '../misc/Status';--export const NoteInputs = ({- showStatus,- edition,-}: {- showStatus?: boolean;- edition?: boolean;-}) => {- const { noteStatuses } = useConfigurationContext();- const { setValue } = useFormContext();- const [displayMore, setDisplayMore] = useState(false);- return (- <>- <TextInput- source="text"- label={edition ? 'Edit note' : 'Add a note'}- variant="filled"- size="small"- multiline- minRows={3}- helperText={false}- />- {!displayMore && (- <Stack gap={0.5} direction="row" justifyContent="flex-end">- <Link- variant="caption"- href="#"- onClick={e => {- setDisplayMore(!displayMore);- setValue('date', getCurrentDate());- e.preventDefault();- }}- >- Show options- </Link>- <Typography variant="caption" color="textSecondary">- (attach files, or change details)- </Typography>- </Stack>- )}- <Collapse in={displayMore}>- <Stack gap={1} mt={1}>- <Stack direction="row" spacing={2}>- {showStatus && (- <SelectInput- source="status"- choices={noteStatuses}- optionValue="value"- optionText={optionRenderer}- isRequired- defaultValue={'warm'}- helperText={false}- />- )}- <DateTimeInput- source="date"- label="Date"- helperText={false}- parse={formatNoteDate}- />- </Stack>- <FileInput source="attachments" multiple>- <FileField source="src" title="title" />- </FileInput>- </Stack>- </Collapse>- </>- );-};--const optionRenderer = (choice: any) => (- <div>- {choice.label} <Status status={choice.value} />- </div>-);diff --git a/src/notes/NotesIterator.tsx b/src/notes/NotesIterator.tsxdeleted file mode 100644index 036855b9..00000000--- a/src/notes/NotesIterator.tsx+++ /dev/null@@ -1,37 +0,0 @@-import * as React from 'react';-import { Box, Divider, Stack } from '@mui/material';-import { useListContext } from 'react-admin';--import { Note } from './Note';-import { NoteCreate } from './NoteCreate';--export const NotesIterator = ({- showStatus,- reference,-}: {- showStatus?: boolean;- reference: 'contacts' | 'deals';-}) => {- const { data, error, isPending } = useListContext();- if (isPending || error) return null;- return (- <Box mt={2}>- <NoteCreate showStatus={showStatus} reference={reference} />- {data && (- <Stack mt={2} gap={1}>- {data.map((note, index) => (- <React.Fragment key={index}>- <Note- note={note}- isLast={index === data.length - 1}- showStatus={showStatus}- key={index}- />- {index < data.length - 1 && <Divider />}- </React.Fragment>- ))}- </Stack>- )}- </Box>- );-};diff --git a/src/notes/StatusSelector.tsx b/src/notes/StatusSelector.tsxdeleted file mode 100644index 5bba05a5..00000000--- a/src/notes/StatusSelector.tsx+++ /dev/null@@ -1,29 +0,0 @@-import * as React from 'react';-import { TextField, MenuItem } from '@mui/material';--import { Status } from '../misc/Status';-import { useConfigurationContext } from '../root/ConfigurationContext';--export const StatusSelector = ({ status, setStatus, sx }: any) => {- const { noteStatuses } = useConfigurationContext();- return (- <TextField- select- value={status}- onChange={(event: React.ChangeEvent<{ value: unknown }>) => {- setStatus(event.target.value);- }}- variant="filled"- label={false}- margin="none"- size="small"- sx={sx}- >- {noteStatuses.map(status => (- <MenuItem key={status.value} value={status.value}>- {status.label} <Status status={status.value} />- </MenuItem>- ))}- </TextField>- );-};diff --git a/src/providers/commons/activity.ts b/src/providers/commons/activity.tsdeleted file mode 100644index 9c868120..00000000--- a/src/providers/commons/activity.ts+++ /dev/null@@ -1,176 +0,0 @@-import { DataProvider, Identifier } from 'react-admin';-import {- COMPANY_CREATED,- CONTACT_CREATED,- CONTACT_NOTE_CREATED,- DEAL_CREATED,- DEAL_NOTE_CREATED,-} from '../../consts';-import {- Activity,- Company,- Contact,- ContactNote,- Deal,- DealNote,-} from '../../types';--// FIXME: Requires 5 large queries to get the latest activities.-// Replace with a server-side view or a custom API endpoint.-export async function getActivityLog(- dataProvider: DataProvider,- companyId?: Identifier,- salesId?: Identifier-) {- let companyFilter = {} as any;- if (companyId) {- companyFilter.id = companyId;- } else if (salesId) {- companyFilter['sales_id@in'] = `(${salesId})`;- }-- let filter = {} as any;- if (companyId) {- filter.company_id = companyId;- } else if (salesId) {- filter['sales_id@in'] = `(${salesId})`;- }-- const [newCompanies, newContactsAndNotes, newDealsAndNotes] =- await Promise.all([- getNewCompanies(dataProvider, companyFilter),- getNewContactsAndNotes(dataProvider, filter),- getNewDealsAndNotes(dataProvider, filter),- ]);- return (- [...newCompanies, ...newContactsAndNotes, ...newDealsAndNotes]- // sort by date desc- .sort((a, b) =>- a.date && b.date ? a.date.localeCompare(b.date) * -1 : 0- )- // limit to 250 activities- .slice(0, 250)- );-}--const getNewCompanies = async (- dataProvider: DataProvider,- filter: any-): Promise<Activity[]> => {- const { data: companies } = await dataProvider.getList<Company>(- 'companies',- {- filter,- pagination: { page: 1, perPage: 250 },- sort: { field: 'created_at', order: 'DESC' },- }- );- return companies.map(company => ({- id: `company.${company.id}.created`,- type: COMPANY_CREATED,- company_id: company.id,- company,- sales_id: company.sales_id,- date: company.created_at,- }));-};--async function getNewContactsAndNotes(- dataProvider: DataProvider,- filter: any-): Promise<Activity[]> {- const { data: contacts } = await dataProvider.getList<Contact>('contacts', {- filter,- pagination: { page: 1, perPage: 250 },- sort: { field: 'first_seen', order: 'DESC' },- });-- let recentContactNotesFilter = {} as any;- if (filter.sales_id) {- recentContactNotesFilter.sales_id = filter.sales_id;- }- if (filter.company_id) {- // No company_id field in contactNote, filtering by related contacts instead.- // This filter is only valid if a company has less than 250 contact.- const contactIds = contacts.map(contact => contact.id).join(',');- recentContactNotesFilter['contact_id@in'] = `(${contactIds})`;- }-- const { data: contactNotes } = await dataProvider.getList<ContactNote>(- 'contactNotes',- {- filter: recentContactNotesFilter,- pagination: { page: 1, perPage: 250 },- sort: { field: 'date', order: 'DESC' },- }- );-- const newContacts = contacts.map(contact => ({- id: `contact.${contact.id}.created`,- type: CONTACT_CREATED,- company_id: contact.company_id,- sales_id: contact.sales_id,- contact,- date: contact.first_seen,- }));-- const newContactNotes = contactNotes.map(contactNote => ({- id: `contactNote.${contactNote.id}.created`,- type: CONTACT_NOTE_CREATED,- sales_id: contactNote.sales_id,- contactNote,- date: contactNote.date,- }));-- return [...newContacts, ...newContactNotes];-}--async function getNewDealsAndNotes(- dataProvider: DataProvider,- filter: any-): Promise<Activity[]> {- const { data: deals } = await dataProvider.getList<Deal>('deals', {- filter,- pagination: { page: 1, perPage: 250 },- sort: { field: 'created_at', order: 'DESC' },- });-- let recentDealNotesFilter = {} as any;- if (filter.sales_id) {- recentDealNotesFilter.sales_id = filter.sales_id;- }- if (filter.company_id) {- // No company_id field in dealNote, filtering by related deals instead.- // This filter is only valid if a deal has less than 250 notes.- const dealIds = deals.map(deal => deal.id).join(',');- recentDealNotesFilter['deal_id@in'] = `(${dealIds})`;- }-- const { data: dealNotes } = await dataProvider.getList<DealNote>(- 'dealNotes',- {- filter: recentDealNotesFilter,- pagination: { page: 1, perPage: 250 },- sort: { field: 'date', order: 'DESC' },- }- );-- const newDeals = deals.map(deal => ({- id: `deal.${deal.id}.created`,- type: DEAL_CREATED,- company_id: deal.company_id,- sales_id: deal.sales_id,- deal,- date: deal.created_at,- }));-- const newDealNotes = dealNotes.map(dealNote => ({- id: `dealNote.${dealNote.id}.created`,- type: DEAL_NOTE_CREATED,- sales_id: dealNote.sales_id,- dealNote,- date: dealNote.date,- }));-- return [...newDeals, ...newDealNotes];-}diff --git a/src/providers/commons/getCompanyAvatar.spec.ts b/src/providers/commons/getCompanyAvatar.spec.tsdeleted file mode 100644index 05b6ecaa..00000000--- a/src/providers/commons/getCompanyAvatar.spec.ts+++ /dev/null@@ -1,24 +0,0 @@-/**- * @jest-environment node- */--import { Company } from '../../types';-import { getCompanyAvatar } from './getCompanyAvatar';--it('should return favicon URL if website url exist', async () => {- const website = 'https://gravatar.com';- const record: Partial<Company> = { website };-- const avatarUrl = await getCompanyAvatar(record);- expect(avatarUrl).toStrictEqual({- src: 'https://gravatar.com/favicon.ico',- title: 'Company favicon',- });-});--it('should return null if no website is provided', async () => {- const record: Partial<Company> = {};-- const avatarUrl = await getCompanyAvatar(record);- expect(avatarUrl).toBeNull();-});diff --git a/src/providers/commons/getCompanyAvatar.ts b/src/providers/commons/getCompanyAvatar.tsdeleted file mode 100644index 6545377b..00000000--- a/src/providers/commons/getCompanyAvatar.ts+++ /dev/null@@ -1,42 +0,0 @@-import type { Company } from '../../types';-import { fetchWithTimeout } from '../../misc/fetchWithTimeout';--// Helper function to get the favicon URL-async function getFaviconUrl(website: string): Promise<string | null> {- try {- // get favicon from domain- const url = new URL(website);- const domain = url.origin;- const faviconUrl = `${domain}/favicon.ico`;- const response = await fetchWithTimeout(faviconUrl);- if (response.ok) {- return faviconUrl;- }- } catch (error) {- return null;- }- return null;-}--// Main function to get the avatar URL-export async function getCompanyAvatar(record: Partial<Company>): Promise<{- src: string;- title: string;-} | null> {- if (!record.website) {- return null;- }-- // Step 1: Try to get favicon from website domain- const faviconUrl = await getFaviconUrl(record.website);- if (faviconUrl) {- return {- src: faviconUrl,- title: 'Company favicon',- };- }-- // TODO: Step 2: Try to get image from LinkedIn.-- return null;-}diff --git a/src/providers/commons/getContactAvatar.spec.ts b/src/providers/commons/getContactAvatar.spec.tsdeleted file mode 100644index 141480bd..00000000--- a/src/providers/commons/getContactAvatar.spec.ts+++ /dev/null@@ -1,88 +0,0 @@-/**- * @jest-environment node- */--// This test file uses the node environment because the getContactAvatar uses the TextEncoder API. This API is not available in the version of JSDOM used by Jest in CI.-// As CI uses Node18 and not the latest LTS, the crypto module is not available in the global scope.--import { Contact, EmailAndType } from '../../types';-import { getContactAvatar, hash } from './getContactAvatar';--// eslint-disable-next-line no-global-assign-import { webcrypto } from 'node:crypto';--Object.defineProperty(globalThis, 'crypto', {- value: webcrypto,-});--it('should return gravatar URL for [email protected]', async () => {- const email: EmailAndType[] = [- { email: '[email protected]', type: 'Work' },- ];- const record: Partial<Contact> = { email_jsonb: email };-- const avatarUrl = await getContactAvatar(record);- const hashedEmail = await hash(email[0].email);- expect(avatarUrl).toBe(- `https://www.gravatar.com/avatar/${hashedEmail}?d=404`- );-});--it('should return favicon URL if gravatar does not exist', async () => {- const email: EmailAndType[] = [- { email: '[email protected]', type: 'Work' },- ];- const record: Partial<Contact> = { email_jsonb: email };-- const avatarUrl = await getContactAvatar(record);- expect(avatarUrl).toBe('https://gravatar.com/favicon.ico');-});--it('should not return favicon URL if not domain not allowed', async () => {- const email: EmailAndType[] = [- { email: '[email protected]', type: 'Work' },- ];- const record: Partial<Contact> = { email_jsonb: email };-- const avatarUrl = await getContactAvatar(record);- expect(avatarUrl).toBeNull();-});--it('should return null if no email is provided', async () => {- const record: Partial<Contact> = {};-- const avatarUrl = await getContactAvatar(record);- expect(avatarUrl).toBeNull();-});--it('should return null if an empty array is provided', async () => {- const email: EmailAndType[] = [];- const record: Partial<Contact> = { email_jsonb: email };-- const avatarUrl = await getContactAvatar(record);- expect(avatarUrl).toBeNull();-});--it('should return null if email has no gravatar or validate domain', async () => {- const email: EmailAndType[] = [- { email: '[email protected]', type: 'Work' },- ];- const record: Partial<Contact> = { email_jsonb: email };-- const avatarUrl = await getContactAvatar(record);- expect(avatarUrl).toBeNull();-});--it('should return gravatar URL for 2nd email if 1st email has no gravatar nor valid domain', async () => {- const email: EmailAndType[] = [- { email: '[email protected]', type: 'Work' },- { email: '[email protected]', type: 'Work' },- ];- const record: Partial<Contact> = { email_jsonb: email };-- const avatarUrl = await getContactAvatar(record);- const hashedEmail = await hash(email[1].email);- expect(avatarUrl).toBe(- `https://www.gravatar.com/avatar/${hashedEmail}?d=404`- );-});diff --git a/src/providers/commons/getContactAvatar.ts b/src/providers/commons/getContactAvatar.tsdeleted file mode 100644index 417ba181..00000000--- a/src/providers/commons/getContactAvatar.ts+++ /dev/null@@ -1,70 +0,0 @@-import { DOMAINS_NOT_SUPPORTING_FAVICON } from '../../misc/unsupportedDomains.const';-import { fetchWithTimeout } from '../../misc/fetchWithTimeout';-import { Contact } from '../../types';--export async function hash(string: string) {- const utf8 = new TextEncoder().encode(string);- const hashBuffer = await crypto.subtle.digest('SHA-256', utf8);- const hashArray = Array.from(new Uint8Array(hashBuffer));- const hashHex = hashArray- .map(bytes => bytes.toString(16).padStart(2, '0'))- .join('');- return hashHex;-}--// Helper function to get the Gravatar URL-async function getGravatarUrl(email: string): Promise<string> {- const hashEmail = await hash(email);- return `https://www.gravatar.com/avatar/${hashEmail}?d=404`;-}--// Helper function to get the favicon URL-async function getFaviconUrl(domain: string): Promise<string | null> {- if (DOMAINS_NOT_SUPPORTING_FAVICON.includes(domain)) {- return null;- }-- try {- const faviconUrl = `https://${domain}/favicon.ico`;- const response = await fetchWithTimeout(faviconUrl);- if (response.ok) {- return faviconUrl;- }- } catch (error) {- return null;- }- return null;-}--// Main function to get the avatar URL-export async function getContactAvatar(- record: Partial<Contact>-): Promise<string | null> {- if (!record.email_jsonb || !record.email_jsonb.length) {- return null;- }-- for (const { email } of record.email_jsonb) {- // Step 1: Try to get Gravatar image- const gravatarUrl = await getGravatarUrl(email);- try {- const gravatarResponse = await fetch(gravatarUrl);- if (gravatarResponse.ok) {- return gravatarUrl;- }- } catch (error) {- // Gravatar not found- }-- // Step 2: Try to get favicon from email domain- const domain = email.split('@')[1];- const faviconUrl = await getFaviconUrl(domain);- if (faviconUrl) {- return faviconUrl;- }-- // TODO: Step 3: Try to get image from LinkedIn.- }-- return null;-}diff --git a/src/providers/fakerest/dataGenerator/companies.ts b/src/providers/fakerest/dataGenerator/companies.tsdeleted file mode 100644index f11cd77b..00000000--- a/src/providers/fakerest/dataGenerator/companies.ts+++ /dev/null@@ -1,53 +0,0 @@-import {- address,- company,- internet,- lorem,- phone,- random,-} from 'faker/locale/en_US';-import { randomDate } from './utils';--import { defaultCompanySectors } from '../../../root/defaultConfiguration';-import { Company, RAFile } from '../../../types';-import { Db } from './types';--const sizes = [1, 10, 50, 250, 500];--const regex = /\W+/;--export const generateCompanies = (db: Db, size = 55): Required<Company>[] => {- return Array.from(Array(size).keys()).map(id => {- const name = company.companyName();- return {- id,- name: name,- logo: {- title: lorem.text(1),- src: `./logos/${id}.png`,- } as RAFile,- sector: random.arrayElement(defaultCompanySectors),- size: random.arrayElement(sizes) as 1 | 10 | 50 | 250 | 500,- linkedin_url: `https://www.linkedin.com/company/${name- .toLowerCase()- .replace(regex, '_')}`,- website: internet.url(),- phone_number: phone.phoneNumber(),- address: address.streetAddress(),- zipcode: address.zipCode(),- city: address.city(),- stateAbbr: address.stateAbbr(),- nb_contacts: 0,- nb_deals: 0,- // at least 1/3rd of companies for Jane Doe- sales_id:- random.number(2) === 0 ? 0 : random.arrayElement(db.sales).id,- created_at: randomDate().toISOString(),- description: lorem.paragraph(),- revenue: random.arrayElement(['$1M', '$10M', '$100M', '$1B']),- tax_identifier: random.alphaNumeric(10),- country: random.arrayElement(['USA', 'France', 'UK']),- context_links: [],- };- });-};diff --git a/src/providers/fakerest/dataGenerator/contactNotes.ts b/src/providers/fakerest/dataGenerator/contactNotes.tsdeleted file mode 100644index 4ca68192..00000000--- a/src/providers/fakerest/dataGenerator/contactNotes.ts+++ /dev/null@@ -1,25 +0,0 @@-import { lorem, random } from 'faker/locale/en_US';--import { defaultNoteStatuses } from '../../../root/defaultConfiguration';-import { ContactNote } from '../../../types';-import { Db } from './types';-import { randomDate } from './utils';--export const generateContactNotes = (db: Db): ContactNote[] => {- return Array.from(Array(1200).keys()).map(id => {- const contact = random.arrayElement(db.contacts);- const date = randomDate(new Date(contact.first_seen));- contact.last_seen =- date > new Date(contact.last_seen)- ? date.toISOString()- : contact.last_seen;- return {- id,- contact_id: contact.id,- text: lorem.paragraphs(random.number({ min: 1, max: 4 })),- date: date.toISOString(),- sales_id: contact.sales_id,- status: random.arrayElement(defaultNoteStatuses).value,- };- });-};diff --git a/src/providers/fakerest/dataGenerator/contacts.ts b/src/providers/fakerest/dataGenerator/contacts.tsdeleted file mode 100644index 11ec24da..00000000--- a/src/providers/fakerest/dataGenerator/contacts.ts+++ /dev/null@@ -1,105 +0,0 @@-import {- company as fakerCompany,- internet,- lorem,- name,- phone,- random,-} from 'faker/locale/en_US';--import {- defaultContactGender,- defaultNoteStatuses,-} from '../../../root/defaultConfiguration';-import { Company, Contact } from '../../../types';-import { Db } from './types';-import { randomDate, weightedBoolean } from './utils';--const maxContacts = {- 1: 1,- 10: 4,- 50: 12,- 250: 25,- 500: 50,-};--const getRandomContactDetailsType = () =>- random.arrayElement(['Work', 'Home', 'Other']) as 'Work' | 'Home' | 'Other';--export const generateContacts = (db: Db, size = 500): Required<Contact>[] => {- const nbAvailblePictures = 223;- let numberOfContacts = 0;-- return Array.from(Array(size).keys()).map(id => {- const has_avatar =- weightedBoolean(25) && numberOfContacts < nbAvailblePictures;- const gender = random.arrayElement(defaultContactGender).value;- const first_name = name.firstName(gender as any);- const last_name = name.lastName();- const email_jsonb = [- {- email: internet.email(first_name, last_name),- type: getRandomContactDetailsType(),- },- ];- const phone_jsonb = [- {- number: phone.phoneNumber(),- type: getRandomContactDetailsType(),- },- {- number: phone.phoneNumber(),- type: getRandomContactDetailsType(),- },- ];- const avatar = {- src: has_avatar- ? 'https://marmelab.com/posters/avatar-' +- (223 - numberOfContacts) +- '.jpeg'- : undefined,- };- const title = fakerCompany.bsAdjective();-- if (has_avatar) {- numberOfContacts++;- }-- // choose company with people left to know- let company: Required<Company>;- do {- company = random.arrayElement(db.companies);- } while (company.nb_contacts >= maxContacts[company.size]);- company.nb_contacts++;-- const first_seen = randomDate(- new Date(company.created_at)- ).toISOString();- const last_seen = first_seen;-- return {- id,- first_name,- last_name,- gender,- title: title.charAt(0).toUpperCase() + title.substr(1),- company_id: company.id,- company_name: company.name,- email_jsonb,- phone_jsonb,- background: lorem.sentence(),- acquisition: random.arrayElement(['inbound', 'outbound']),- avatar,- first_seen: first_seen,- last_seen: last_seen,- has_newsletter: weightedBoolean(30),- status: random.arrayElement(defaultNoteStatuses).value,- tags: random- .arrayElements(db.tags, random.arrayElement([0, 0, 0, 1, 1, 2]))- .map(tag => tag.id), // finalize- sales_id: company.sales_id,- nb_tasks: 0,- linkedin_url: null,- };- });-};diff --git a/src/providers/fakerest/dataGenerator/dealNotes.ts b/src/providers/fakerest/dataGenerator/dealNotes.tsdeleted file mode 100644index 62ea7989..00000000--- a/src/providers/fakerest/dataGenerator/dealNotes.ts+++ /dev/null@@ -1,19 +0,0 @@-import { random, lorem } from 'faker/locale/en_US';--import { Db } from './types';-import { randomDate } from './utils';--export const generateDealNotes = (db: Db) => {- return Array.from(Array(300).keys()).map(id => {- const deal = random.arrayElement(db.deals);- return {- id,- deal_id: deal.id,- text: lorem.paragraphs(random.number({ min: 1, max: 4 })),- date: randomDate(- new Date(db.deals[deal.id as number].created_at)- ).toISOString(),- sales_id: deal.sales_id,- };- });-};diff --git a/src/providers/fakerest/dataGenerator/deals.ts b/src/providers/fakerest/dataGenerator/deals.tsdeleted file mode 100644index 6dc68725..00000000--- a/src/providers/fakerest/dataGenerator/deals.ts+++ /dev/null@@ -1,55 +0,0 @@-import { add } from 'date-fns';-import { lorem, random } from 'faker/locale/en_US';--import {- defaultDealCategories,- defaultDealStages,-} from '../../../root/defaultConfiguration';-import { Deal } from '../../../types';-import { Db } from './types';-import { randomDate } from './utils';--export const generateDeals = (db: Db): Deal[] => {- const deals = Array.from(Array(50).keys()).map(id => {- const company = random.arrayElement(db.companies);- company.nb_deals++;- const contacts = random.arrayElements(- db.contacts.filter(contact => contact.company_id === company.id),- random.number({ min: 1, max: 3 })- );- const lowercaseName = lorem.words();- const created_at = randomDate(- new Date(company.created_at)- ).toISOString();-- const expected_closing_date = randomDate(- new Date(created_at),- add(new Date(created_at), { months: 6 })- ).toISOString();-- return {- id,- name: lowercaseName[0].toUpperCase() + lowercaseName.slice(1),- company_id: company.id,- contact_ids: contacts.map(contact => contact.id),- category: random.arrayElement(defaultDealCategories),- stage: random.arrayElement(defaultDealStages).value,- description: lorem.paragraphs(random.number({ min: 1, max: 4 })),- amount: random.number(1000) * 100,- created_at,- updated_at: randomDate(new Date(created_at)).toISOString(),- expected_closing_date,- sales_id: company.sales_id,- index: 0,- };- });- // compute index based on stage- defaultDealStages.forEach(stage => {- deals- .filter(deal => deal.stage === stage.value)- .forEach((deal, index) => {- deals[deal.id].index = index;- });- });- return deals;-};diff --git a/src/providers/fakerest/dataGenerator/index.ts b/src/providers/fakerest/dataGenerator/index.tsdeleted file mode 100644index d0a41511..00000000--- a/src/providers/fakerest/dataGenerator/index.ts+++ /dev/null@@ -1,26 +0,0 @@-/* eslint-disable import/no-anonymous-default-export */-import { generateCompanies } from './companies';-import { generateContactNotes } from './contactNotes';-import { generateContacts } from './contacts';-import { generateDealNotes } from './dealNotes';-import { generateDeals } from './deals';-import { finalize } from './finalize';-import { generateSales } from './sales';-import { generateTags } from './tags';-import { generateTasks } from './tasks';-import { Db } from './types';--export default (): Db => {- const db = {} as Db;- db.sales = generateSales(db);- db.tags = generateTags(db);- db.companies = generateCompanies(db);- db.contacts = generateContacts(db);- db.contactNotes = generateContactNotes(db);- db.deals = generateDeals(db);- db.dealNotes = generateDealNotes(db);- db.tasks = generateTasks(db);- finalize(db);-- return db;-};diff --git a/src/providers/fakerest/dataGenerator/sales.ts b/src/providers/fakerest/dataGenerator/sales.tsdeleted file mode 100644index d51df94e..00000000--- a/src/providers/fakerest/dataGenerator/sales.ts+++ /dev/null@@ -1,37 +0,0 @@-import { internet, name } from 'faker/locale/en_US';--import { RAFile, Sale } from '../../../types';-import { Db } from './types';--export const generateSales = (_: Db): Sale[] => {- const randomSales = Array.from(Array(5).keys()).map(id => {- const first_name = name.firstName();- const last_name = name.lastName();- const email = internet.email(first_name, last_name);-- return {- id: id + 1,- user_id: `${id + 1}`,- first_name,- last_name,- email,- password: 'demo',- administrator: false,- };- });- return [- {- id: 0,- user_id: '0',- first_name: 'Jane',- last_name: 'Doe',- email: '[email protected]',- password: 'demo',- administrator: true,- avatar: {- src: 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4gKgSUNDX1BST0ZJTEUAAQEAAAKQbGNtcwQwAABtbnRyUkdCIFhZWiAH3wAIABMAEgAWADFhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtkZXNjAAABCAAAADhjcHJ0AAABQAAAAE53dHB0AAABkAAAABRjaGFkAAABpAAAACxyWFlaAAAB0AAAABRiWFlaAAAB5AAAABRnWFlaAAAB+AAAABRyVFJDAAACDAAAACBnVFJDAAACLAAAACBiVFJDAAACTAAAACBjaHJtAAACbAAAACRtbHVjAAAAAAAAAAEAAAAMZW5VUwAAABwAAAAcAHMAUgBHAEIAIABiAHUAaQBsAHQALQBpAG4AAG1sdWMAAAAAAAAAAQAAAAxlblVTAAAAMgAAABwATgBvACAAYwBvAHAAeQByAGkAZwBoAHQALAAgAHUAcwBlACAAZgByAGUAZQBsAHkAAAAAWFlaIAAAAAAAAPbWAAEAAAAA0y1zZjMyAAAAAAABDEoAAAXj///zKgAAB5sAAP2H///7ov///aMAAAPYAADAlFhZWiAAAAAAAABvlAAAOO4AAAOQWFlaIAAAAAAAACSdAAAPgwAAtr5YWVogAAAAAAAAYqUAALeQAAAY3nBhcmEAAAAAAAMAAAACZmYAAPKnAAANWQAAE9AAAApbcGFyYQAAAAAAAwAAAAJmZgAA8qcAAA1ZAAAT0AAACltwYXJhAAAAAAADAAAAAmZmAADypwAADVkAABPQAAAKW2Nocm0AAAAAAAMAAAAAo9cAAFR7AABMzQAAmZoAACZmAAAPXP/bAEMACAYGBwYFCAcHBwkJCAoMFA0MCwsMGRITDxQdGh8eHRocHCAkLicgIiwjHBwoNyksMDE0NDQfJzk9ODI8LjM0Mv/bAEMBCQkJDAsMGA0NGDIhHCEyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMv/AABEIAIAAgAMBIgACEQEDEQH/xAAcAAABBAMBAAAAAAAAAAAAAAABAAUGBwIDBAj/xAA2EAABAwMBBgMHAwQDAQAAAAABAAIDBAUREgYTITFBUSJxgRQyYZGxwdEHQqEkUmLhFRYjkv/EABoBAAIDAQEAAAAAAAAAAAAAAAIDAAEEBQb/xAAkEQACAgIDAAEEAwAAAAAAAAAAAQIRAyEEEjETBSJRcTJBYf/aAAwDAQACEQMRAD8AuIIoIogAooIqygorB72xsc97g1rRkk9FFrlfnVD3Rwu0Qj5uQyko+hRi5eEjlr6aEkOlBI6N4rSbpCG6j4R0zzPoFEIpZpn+Ahv+TuJ9E9Qtipodc0haD15ud5BI+Vsb8aXoq/a6GgJ1UsrgBknTj6rgp/1JtEkgjnbNTk9Xxkt/+m5Cbrvbam9sc2XeU9G0jTFry6Q9M/hddk/T6kpId7UwNmqJCOBOGxjoD3KLvIroiX0VxprhCJaeVr2njlpyutR+k2dlttQZ4KwMZpwIGjwD5lbI785leaSppZWHmJG+JpHfKYppgOLQ9pIAhwBHIpIwBJFJBQhgiEAiFRYQkgmzaCuNDaZHsOJHeBvmVG6VkSt0Me0l93spoqY5Y0+N3Qn8JgjdrcA3xOPU9f8AS485Jy4c8ucep/CzirNBIh4D9zz1WGU7dmyMElRIIXspeBw+fGeJ4N8/wtsEstTUtHFzz1Pb7BNVHvJQA0EAnOo83fH/AGpBR7qniw14yfekz9+qFMNxHiljYwjhqc3kTxPxwnaIZA+6ZoJWDGhjnZ68gnaEvewftHw4BOixTVGc2GsOdI4c3KFXmSuq75Rw0kQ3EWZKieQaQG8g0D4n7KauaGgiNu8eeJJPBN89JLUN8btWg5HDAL++OwUZSMbTWxV9vZNFqxyIcMEELuTdTBtNUbiP3A0D5BOC0QdozzVMWUksoIwTBFBIKEMlFdtJSIKaMHHEuKlKg+3Ly6rgizhugl3wHVLyv7WMxK5Ih8k2+IAJEecNGeLvj5LvoossDsZHl9E2x6ZZNTvDGPp2WFde45P6WlqI4tPAZIGT6rAb0vwSiOox4RgA+84nn6ruiuAhLdA1n+5x5Kt6SsrYagtqqkyuJ8Jxj+FLpIql9qM0b9GW8Ceioaoa2TigrXStDsMb8SOKeYtUgGpxLe5+wVQ2eouftIabs52T7ugHPqrOtNNX7gb+r3zSPE1zNJPljknQaehGSFDo6piax5Em7iZ78h+gXJV1OId7lzIgzIYOePyue4QvxGGs8OsAN6D/ACPfH1QinirgZmODoi4Mb5BFYlqjfSsc58kjxgkN4dua61wWWqFbb2VGCDM4uAPMN6LsJ4p+LwRlM8pZWGUU0UBFYhFUWFV/t0S67xR8muhGT8MqwFDNvKJz4IqxgyWjQ49uyXl3EbidSKxrp31VWaKnJaxoySO6aX7INZG9swlcHuD3OyMkjlxKdLWA2uqJH/3NH8KRVNWz2XJ7LCm1tHSUIyWyL0NvdC6CnBeQHjRqOSB2VwVdnd/1YwRt/wDQx8Pkq4sX9XdoXubpZrGCeo7q7i3eW0OjbqLW8B3RRjdkm+tJHn6usdbV1JY6rnpmBww5jT4QPLn6q09jLdcKBsRgv0lZSFgaaaoYXBuBza4kuB7g5HwCa6y50tRWvi3ZjeHYc1wwQVMdm42NaC3lhXBu6JkikuzHS4QuNuqCPf3biPPCqj9OdonubHa6txLyXkPJ65JH1x6K27tKYrXVPAyRE/A7nBVE7OUEtJtDSs0k6JwHO8zghMemZ6bjZcdqjZT0jo2DAY4tC68rVBHuosY4klx81sWnGqiYcjuRkllAIhGCBFBFUWFc9dSR11FLTyDLXtI8l0BJUXZRt4tNRZ7hPFI3Trw5p6HHBcEk0jgwO93l6q3tsrJ/y1oL4WZqYTqZ8R1H0VRVEDKqikgkaQRkdiCsOWHWR0+Pk7RFRzVNHXQmNwc1pHAHBVq2m+19QIzTgMhaMFsjclx+ap2wW6gn3dNXvqIpA7G+DstcB9CrVtVqsVDa4Zpa2eUmPIDS4knIzgD4FUou9Dvtqpe/oZ9qrfUR1Elw3ZDy7UeGAVKtibgKi3skzwPDj0KiV7ornc6xk8EtdTW+QhraSZ+S49SW8cAeamWzlsFupBG39ztXkotSKl/CmO21N3pbLs7U3GtL/Z4tOsMGScuAwB6qK7JUrbs1t6ex+5kOuESBoceJ4uDeGfJP+1NpO0NLSWyRgNE6cS1Rzza3iGjzOPknKCnipadkEEbY4o2hrWtGAAFojj7O2YJ5eq6oyKCywlhaTIBEJJKEMQigEVRYUViioQJAIIPVVrtzYW0FY2507cQVLtMoH7X9/X6hWVlcl0pKWvtlRTVuPZ3sOs5xpxx1A9COaDJDtGhuKbhKyjW2uT2newSuZq544g+in2ytGYpGzTPMj28WgNAwofRV0cFU6F7w5oOGudw1DoVPbRdKCBrdU0eojg1pyT6BYbr+zsd5dKRIvZN6/ey4yPhyXRTx+PDeXfssaZz6wBzssj6N6nzTiyJrAABgI1vaMrdaZp06SQTniktkvv5WtbIO4o5+RVJgwkikjAAkigVCGsJZWuSaOGMySvaxg5uccAJiqtqqeNxbSxOmP9x8I/KCU4x9DjCUvESIJuvG0Fp2fp2zXWvhpWPzo3h4uxzwBxKi1XtTcJGnS5sDe7Bx+ZVD7WX+p2gvs1TNM+VkZ3cOp2fCD9+amOayPReTG4LZaF2/XVjKmRlotTZIG5DZal5Bce+kch5lcLNqL5erSJrhXPd7SNRiYA2No6AAKocHGOqs21NJs1K3HERgfwg5T6xSQzixTk2zAtEziCn6wwbmoa4DHHoE1tgO9BA9FJLfTua0ODeK5sjpw0WFaagua0Ek+akAcC3KiNnbI0AkKTsfiLJTsb0IyrZue3U3yULuW39stV+fbKlkmmMAPmZ4sPPTCeNoL9HZbPUVbiCWN8I7novPE9TLVVktTM4ukkLnuJ6kldPg4fkk2/DncyfSKr09C2zaizXZzI6SvidM/lE7wv8AkU7rznsdUvG1Nvbk5FWz6r0O2XuPkj5EYYpJJ+isPfIm6NqCQcDySSk0/A2mvStrpepLtWu0kimYcRt+5+K1sZlqa6LmMp13ga1cuUnJ2zrQioqkM21VULfs7VzA4foLWeZ4fdUnjAHmrI/Uiv8A6OmpQffeXkfAD8lVyBlkY75K6XDhWO/yc7ly++vwGMZljGM5I+qvWlpab2eMNiDQGjgAqNb4J2EftwR6cV6Et0Daihp5WjwyRtcPUIebGkhnCabZjTWykmOHsHDkU7U9BHF7ucLXFTljuSc4W8srnUb26OmmeI2Dgt7qzIw44C1BgwmLaq7w2a0S1Dj4sYYM8S7oEyKb0hcmvWRD9S9pI6qaCz0rsiM7ydw79B6c/kq/Mni7cM/RYmd9XUyVEpJe4l7s9StD3nWT105+y9NxsXw4lE8/nyfLkch32Lk07X21zjw3+r5L0HHUa25yvPWxzc7YW9nYk/wVdrKgsAHRcn6lKpx/R0+BG4N/6P8AFL4hxTg2IvZkc1HqSoy8EqUUUgfGFjxt3o0ZUq2f/9k=',- } as RAFile,- },- ...randomSales,- ];-};diff --git a/src/providers/fakerest/dataGenerator/tags.ts b/src/providers/fakerest/dataGenerator/tags.tsdeleted file mode 100644index fd275acd..00000000--- a/src/providers/fakerest/dataGenerator/tags.ts+++ /dev/null@@ -1,25 +0,0 @@-import { Db } from './types';--// --champagne-pink: #eddcd2ff;-// --linen: #fff1e6ff;-// --pale-pink: #fde2e4ff;-// --mimi-pink: #fad2e1ff;-// --powder-blue: #c5deddff;-// --mint-cream: #dbe7e4ff;-// --isabelline: #f0efebff;-// --alice-blue: #d6e2e9ff;-// --beau-blue: #bcd4e6ff;-// --pale-cerulean: #99c1deff;--const tags = [- { id: 0, name: 'football-fan', color: '#eddcd2' },- { id: 1, name: 'holiday-card', color: '#fff1e6' },- { id: 2, name: 'influencer', color: '#fde2e4' },- { id: 3, name: 'manager', color: '#fad2e1' },- { id: 4, name: 'musician', color: '#c5dedd' },- { id: 5, name: 'vip', color: '#dbe7e4' },-];--export const generateTags = (_: Db) => {- return [...tags];-};diff --git a/src/providers/fakerest/dataGenerator/tasks.ts b/src/providers/fakerest/dataGenerator/tasks.tsdeleted file mode 100644index e7ce318a..00000000--- a/src/providers/fakerest/dataGenerator/tasks.ts+++ /dev/null@@ -1,55 +0,0 @@-import { lorem, random } from 'faker/locale/en_US';--import { defaultTaskTypes } from '../../../root/defaultConfiguration';-import { Task } from '../../../types';-import { Db } from './types';-import { randomDate } from './utils';--type TaskType = (typeof defaultTaskTypes)[number];--export const type: TaskType[] = [- 'Email',- 'Email',- 'Email',- 'Email',- 'Email',- 'Email',- 'Call',- 'Call',- 'Call',- 'Call',- 'Call',- 'Call',- 'Call',- 'Call',- 'Call',- 'Call',- 'Call',- 'Demo',- 'Lunch',- 'Meeting',- 'Follow-up',- 'Follow-up',- 'Thank you',- 'Ship',- 'None',-];--export const generateTasks = (db: Db) => {- return Array.from(Array(400).keys()).map<Task>(id => {- const contact = random.arrayElement(db.contacts);- contact.nb_tasks++;- return {- id,- contact_id: contact.id,- type: random.arrayElement(defaultTaskTypes),- text: lorem.sentence(),- due_date: randomDate(- random.boolean() ? new Date() : new Date(contact.first_seen),- new Date(Date.now() + 100 * 24 * 60 * 60 * 1000)- ).toISOString(),- done_date: undefined,- sales_id: 0,- };- });-};diff --git a/src/providers/fakerest/dataGenerator/types.ts b/src/providers/fakerest/dataGenerator/types.tsdeleted file mode 100644index 4540e072..00000000--- a/src/providers/fakerest/dataGenerator/types.ts+++ /dev/null@@ -1,21 +0,0 @@-import {- Company,- Contact,- ContactNote,- Deal,- DealNote,- Sale,- Tag,- Task,-} from '../../../types';--export interface Db {- companies: Required<Company>[];- contacts: Required<Contact>[];- contactNotes: ContactNote[];- deals: Deal[];- dealNotes: DealNote[];- sales: Sale[];- tags: Tag[];- tasks: Task[];-}diff --git a/src/providers/fakerest/dataGenerator/utils.ts b/src/providers/fakerest/dataGenerator/utils.tsdeleted file mode 100644index 41f5bdf1..00000000--- a/src/providers/fakerest/dataGenerator/utils.ts+++ /dev/null@@ -1,29 +0,0 @@-import faker from 'faker/locale/en';--export const weightedArrayElement = (values: any[], weights: any) =>- faker.random.arrayElement(- values.reduce(- (acc, value, index) =>- acc.concat(new Array(weights[index]).fill(value)),- []- )- );--export const weightedBoolean = (likelyhood: number) =>- faker.random.number(99) < likelyhood;--export const randomDate = (minDate?: Date, maxDate?: Date) => {- const minTs =- minDate instanceof Date- ? minDate.getTime()- : Date.now() - 5 * 365 * 24 * 60 * 60 * 1000; // 5 years- const maxTs = maxDate instanceof Date ? maxDate.getTime() : Date.now();- const range = maxTs - minTs;- const randomRange = faker.random.number({ max: range });- // move it more towards today to account for traffic increase- const ts = Math.sqrt(randomRange / range) * range;- return new Date(minTs + ts);-};--export const randomFloat = (min: number, max: number) =>- parseFloat(faker.random.number({ min, max, precision: 0.01 }).toFixed(2));diff --git a/src/providers/fakerest/dataProvider.ts b/src/providers/fakerest/dataProvider.tsdeleted file mode 100644index e66fe88d..00000000--- a/src/providers/fakerest/dataProvider.ts+++ /dev/null@@ -1,529 +0,0 @@-import fakeRestDataProvider from 'ra-data-fakerest';-import {- CreateParams,- DataProvider,- Identifier,- ResourceCallbacks,- UpdateParams,- withLifecycleCallbacks,-} from 'react-admin';-import {- Company,- Contact,- Deal,- Sale,- SalesFormData,- SignUpData,- Task,-} from '../../types';-import { getActivityLog } from '../commons/activity';-import { getCompanyAvatar } from '../commons/getCompanyAvatar';-import { getContactAvatar } from '../commons/getContactAvatar';-import { CrmDataProvider } from '../types';-import { authProvider, USER_STORAGE_KEY } from './authProvider';-import generateData from './dataGenerator';-import { withSupabaseFilterAdapter } from './internal/supabaseAdapter';--const baseDataProvider = fakeRestDataProvider(generateData(), true, 300);--const TASK_MARKED_AS_DONE = 'TASK_MARKED_AS_DONE';-const TASK_MARKED_AS_UNDONE = 'TASK_MARKED_AS_UNDONE';-const TASK_DONE_NOT_CHANGED = 'TASK_DONE_NOT_CHANGED';-let taskUpdateType = TASK_DONE_NOT_CHANGED;--const processCompanyLogo = async (params: any) => {- let logo = params.data.logo;-- if (typeof logo !== 'object' || logo === null || !logo.src) {- logo = await getCompanyAvatar(params.data);- } else if (logo.rawFile instanceof File) {- const base64Logo = await convertFileToBase64(logo);- logo = { src: base64Logo, title: logo.title };- }-- return {- ...params,- data: {- ...params.data,- logo,- },- };-};--async function processContactAvatar(- params: UpdateParams<Contact>-): Promise<UpdateParams<Contact>>;--async function processContactAvatar(- params: CreateParams<Contact>-): Promise<CreateParams<Contact>>;--async function processContactAvatar(- params: CreateParams<Contact> | UpdateParams<Contact>-): Promise<CreateParams<Contact> | UpdateParams<Contact>> {- const { data } = params;- if (data.avatar?.src || !data.email_jsonb || !data.email_jsonb.length) {- return params;- }- const avatarUrl = await getContactAvatar(data);-- // Clone the data and modify the clone- const newData = { ...data, avatar: { src: avatarUrl || undefined } };-- return { ...params, data: newData };-}--async function fetchAndUpdateCompanyData(- params: UpdateParams<Contact>,- dataProvider: DataProvider-): Promise<UpdateParams<Contact>>;--async function fetchAndUpdateCompanyData(- params: CreateParams<Contact>,- dataProvider: DataProvider-): Promise<CreateParams<Contact>>;--async function fetchAndUpdateCompanyData(- params: CreateParams<Contact> | UpdateParams<Contact>,- dataProvider: DataProvider-): Promise<CreateParams<Contact> | UpdateParams<Contact>> {- const { data } = params;- const newData = { ...data };-- if (!newData.company_id) {- return params;- }-- const { data: company } = await dataProvider.getOne('companies', {- id: newData.company_id,- });-- if (!company) {- return params;- }-- newData.company_name = company.name;- return { ...params, data: newData };-}--const dataProviderWithCustomMethod: CrmDataProvider = {- ...baseDataProvider,- unarchiveDeal: async (deal: Deal) => {- // get all deals where stage is the same as the deal to unarchive- const { data: deals } = await baseDataProvider.getList<Deal>('deals', {- filter: { stage: deal.stage },- pagination: { page: 1, perPage: 1000 },- sort: { field: 'index', order: 'ASC' },- });-- // set index for each deal starting from 1, if the deal to unarchive is found, set its index to the last one- const updatedDeals = deals.map((d, index) => ({- ...d,- index: d.id === deal.id ? 0 : index + 1,- archived_at: d.id === deal.id ? null : d.archived_at,- }));-- return await Promise.all(- updatedDeals.map(updatedDeal =>- dataProvider.update('deals', {- id: updatedDeal.id,- data: updatedDeal,- previousData: deals.find(d => d.id === updatedDeal.id),- })- )- );- },- // We simulate a remote endpoint that is in charge of returning activity log- getActivityLog: async (companyId?: Identifier) => {- return getActivityLog(dataProvider, companyId);- },- async signUp({- email,- password,- first_name,- last_name,- }: SignUpData): Promise<{ id: string; email: string; password: string }> {- const user = await baseDataProvider.create('sales', {- data: {- email,- first_name,- last_name,- },- });-- return {- ...user.data,- password,- };- },- async salesCreate({ ...data }: SalesFormData): Promise<Sale> {- const user = await dataProvider.create('sales', {- data: {- ...data,- password: 'new_password',- },- });-- return {- ...user.data,- };- },- async salesUpdate(- id: Identifier,- data: Partial<Omit<SalesFormData, 'password'>>- ): Promise<Partial<Omit<SalesFormData, 'password'>>> {- const { data: previousData } = await dataProvider.getOne<Sale>(- 'sales',- {- id,- }- );-- if (!previousData) {- throw new Error('User not found');- }-- const { data: sale } = await dataProvider.update('sales', {- id,- data,- previousData,- });- return sale;- },- async isInitialized(): Promise<boolean> {- const sales = await dataProvider.getList<Sale>('sales', {- filter: {},- pagination: { page: 1, perPage: 1 },- sort: { field: 'id', order: 'ASC' },- });- if (sales.data.length === 0) {- return false;- }- return true;- },- updatePassword: async (id: Identifier): Promise<true> => {- const currentUser = await authProvider.getIdentity?.();- if (!currentUser) {- throw new Error('User not found');- }- const { data: previousData } = await dataProvider.getOne<Sale>(- 'sales',- {- id: currentUser.id,- }- );-- if (!previousData) {- throw new Error('User not found');- }-- await dataProvider.update('sales', {- id,- data: {- password: 'demo_newPassword',- },- previousData,- });-- return true;- },-};--async function updateCompany(- companyId: Identifier,- updateFn: (company: Company) => Partial<Company>-) {- const { data: company } = await dataProvider.getOne<Company>('companies', {- id: companyId,- });-- return await dataProvider.update('companies', {- id: companyId,- data: {- ...updateFn(company),- },- previousData: company,- });-}--export const dataProvider = withLifecycleCallbacks(- withSupabaseFilterAdapter(dataProviderWithCustomMethod),- [- {- resource: 'sales',- beforeCreate: async params => {- const { data } = params;- // If administrator role is not set, we simply set it to false- if (data.administrator == null) {- data.administrator = false;- }- return params;- },- afterSave: async data => {- // Since the current user is stored in localStorage in fakerest authProvider- // we need to update it to keep information up to date in the UI- const currentUser = await authProvider.getIdentity?.();- if (currentUser?.id === data.id) {- localStorage.setItem(- USER_STORAGE_KEY,- JSON.stringify(data)- );- }- return data;- },- beforeDelete: async params => {- if (params.meta?.identity?.id == null) {- throw new Error('Identity MUST be set in meta');- }-- const newSaleId = params.meta.identity.id as Identifier;-- const [companies, contacts, contactNotes, deals] =- await Promise.all([- dataProvider.getList('companies', {- filter: { sales_id: params.id },- pagination: {- page: 1,- perPage: 10_000,- },- sort: { field: 'id', order: 'ASC' },- }),- dataProvider.getList('contacts', {- filter: { sales_id: params.id },- pagination: {- page: 1,- perPage: 10_000,- },- sort: { field: 'id', order: 'ASC' },- }),- dataProvider.getList('contactNotes', {- filter: { sales_id: params.id },- pagination: {- page: 1,- perPage: 10_000,- },- sort: { field: 'id', order: 'ASC' },- }),- dataProvider.getList('deals', {- filter: { sales_id: params.id },- pagination: {- page: 1,- perPage: 10_000,- },- sort: { field: 'id', order: 'ASC' },- }),- ]);-- await Promise.all([- dataProvider.updateMany('companies', {- ids: companies.data.map(company => company.id),- data: {- sales_id: newSaleId,- },- }),- dataProvider.updateMany('contacts', {- ids: contacts.data.map(company => company.id),- data: {- sales_id: newSaleId,- },- }),- dataProvider.updateMany('contactNotes', {- ids: contactNotes.data.map(company => company.id),- data: {- sales_id: newSaleId,- },- }),- dataProvider.updateMany('deals', {- ids: deals.data.map(company => company.id),- data: {- sales_id: newSaleId,- },- }),- ]);-- return params;- },- } satisfies ResourceCallbacks<Sale>,- {- resource: 'contacts',- beforeCreate: async (params, dataProvider) => {- const newParams = await processContactAvatar(params);- return fetchAndUpdateCompanyData(newParams, dataProvider);- },- afterCreate: async result => {- if (result.data.company_id != null) {- await updateCompany(result.data.company_id, company => ({- nb_contacts: (company.nb_contacts ?? 0) + 1,- }));- }-- return result;- },- beforeUpdate: async params => {- const newParams = await processContactAvatar(params);- return fetchAndUpdateCompanyData(newParams, dataProvider);- },- afterDelete: async result => {- if (result.data.company_id != null) {- await updateCompany(result.data.company_id, company => ({- nb_contacts: (company.nb_contacts ?? 1) - 1,- }));- }-- return result;- },- } satisfies ResourceCallbacks<Contact>,- {- resource: 'tasks',- afterCreate: async (result, dataProvider) => {- // update the task count in the related contact- const { contact_id } = result.data;- const { data: contact } = await dataProvider.getOne(- 'contacts',- { id: contact_id }- );- await dataProvider.update('contacts', {- id: contact_id,- data: {- nb_tasks: (contact.nb_tasks ?? 0) + 1,- },- previousData: contact,- });- return result;- },- beforeUpdate: async params => {- const { data, previousData } = params;- if (previousData.done_date !== data.done_date) {- taskUpdateType = data.done_date- ? TASK_MARKED_AS_DONE- : TASK_MARKED_AS_UNDONE;- } else {- taskUpdateType = TASK_DONE_NOT_CHANGED;- }- return params;- },- afterUpdate: async (result, dataProvider) => {- // update the contact: if the task is done, decrement the nb tasks, otherwise increment it- const { contact_id } = result.data;- const { data: contact } = await dataProvider.getOne(- 'contacts',- { id: contact_id }- );- if (taskUpdateType !== TASK_DONE_NOT_CHANGED) {- await dataProvider.update('contacts', {- id: contact_id,- data: {- nb_tasks:- taskUpdateType === TASK_MARKED_AS_DONE- ? (contact.nb_tasks ?? 0) - 1- : (contact.nb_tasks ?? 0) + 1,- },- previousData: contact,- });- }- return result;- },- afterDelete: async (result, dataProvider) => {- // update the task count in the related contact- const { contact_id } = result.data;- const { data: contact } = await dataProvider.getOne(- 'contacts',- { id: contact_id }- );- await dataProvider.update('contacts', {- id: contact_id,- data: {- nb_tasks: (contact.nb_tasks ?? 0) - 1,- },- previousData: contact,- });- return result;- },- } satisfies ResourceCallbacks<Task>,- {- resource: 'companies',- beforeCreate: async params => {- const createParams = await processCompanyLogo(params);-- return {- ...createParams,- data: {- ...createParams.data,- created_at: new Date().toISOString(),- },- };- },- beforeUpdate: async params => {- return await processCompanyLogo(params);- },- afterUpdate: async (result, dataProvider) => {- // get all contacts of the company and for each contact, update the company_name- const { id, name } = result.data;- const { data: contacts } = await dataProvider.getList(- 'contacts',- {- filter: { company_id: id },- pagination: { page: 1, perPage: 1000 },- sort: { field: 'id', order: 'ASC' },- }- );-- const contactIds = contacts.map(contact => contact.id);- await dataProvider.updateMany('contacts', {- ids: contactIds,- data: { company_name: name },- });- return result;- },- } satisfies ResourceCallbacks<Company>,- {- resource: 'deals',- beforeCreate: async params => {- return {- ...params,- data: {- ...params.data,- created_at: new Date().toISOString(),- updated_at: new Date().toISOString(),- },- };- },- afterCreate: async result => {- await updateCompany(result.data.company_id, company => ({- nb_deals: (company.nb_deals ?? 0) + 1,- }));-- return result;- },- beforeUpdate: async params => {- return {- ...params,- data: {- ...params.data,- updated_at: new Date().toISOString(),- },- };- },- afterDelete: async result => {- await updateCompany(result.data.company_id, company => ({- nb_deals: (company.nb_deals ?? 1) - 1,- }));-- return result;- },- } satisfies ResourceCallbacks<Deal>,- ]-);--/**- * Convert a `File` object returned by the upload input into a base 64 string.- * That's not the most optimized way to store images in production, but it's- * enough to illustrate the idea of dataprovider decoration.- */-const convertFileToBase64 = (file: { rawFile: Blob }) =>- new Promise((resolve, reject) => {- const reader = new FileReader();- reader.onload = () => resolve(reader.result);- reader.onerror = reject;- reader.readAsDataURL(file.rawFile);- });diff --git a/src/providers/fakerest/internal/supabaseAdapter.spec.ts b/src/providers/fakerest/internal/supabaseAdapter.spec.tsdeleted file mode 100644index 2f096fae..00000000--- a/src/providers/fakerest/internal/supabaseAdapter.spec.ts+++ /dev/null@@ -1,721 +0,0 @@-import { DataProvider } from 'react-admin';-import { withSupabaseFilterAdapter } from './supabaseAdapter';--describe('getList', () => {- it("should transform '@eq'", () => {- const getList = jest.fn();- const mockDataProvider = {- getList,- } as unknown as DataProvider;-- getList.mockResolvedValueOnce([{ id: 1 }]);-- const { getList: getListAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getListAdapter('resource', { filter: { 'a@id@eq': '1' } })- ).resolves.toEqual([{ id: 1 }]);-- expect(getList).toHaveBeenCalledWith('resource', {- filter: { 'a@id_eq': '1' },- });- });-- it("should transform '@neq'", () => {- const getList = jest.fn();- const mockDataProvider = {- getList,- } as unknown as DataProvider;-- getList.mockResolvedValueOnce([{ id: 1 }]);-- const { getList: getListAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getListAdapter('resource', { filter: { 'a@id@neq': '1' } })- ).resolves.toEqual([{ id: 1 }]);-- expect(getList).toHaveBeenCalledWith('resource', {- filter: { 'a@id_neq': '1' },- });- });-- it("should transform '@eq'", () => {- const getList = jest.fn();- const mockDataProvider = {- getList,- } as unknown as DataProvider;-- getList.mockResolvedValueOnce([{ id: 1 }]);-- const { getList: getListAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getListAdapter('resource', { filter: { 'a@id@eq': '1' } })- ).resolves.toEqual([{ id: 1 }]);-- expect(getList).toHaveBeenCalledWith('resource', {- filter: { 'a@id_eq': '1' },- });- });-- it("should transform '@neq'", () => {- const getList = jest.fn();- const mockDataProvider = {- getList,- } as unknown as DataProvider;-- getList.mockResolvedValueOnce([{ id: 1 }]);-- const { getList: getListAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getListAdapter('resource', { filter: { 'a@id@neq': '1' } })- ).resolves.toEqual([{ id: 1 }]);-- expect(getList).toHaveBeenCalledWith('resource', {- filter: { 'a@id_neq': '1' },- });- });-- it("should transform '@is'", () => {- const getList = jest.fn();- const mockDataProvider = {- getList,- } as unknown as DataProvider;-- getList.mockResolvedValueOnce([{ id: 1 }]);-- const { getList: getListAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getListAdapter('resource', { filter: { 'id@is': null } })- ).resolves.toEqual([{ id: 1 }]);-- expect(getList).toHaveBeenCalledWith('resource', {- filter: { id_eq: null },- });- });-- it("should transform '@not.is'", () => {- const getList = jest.fn();- const mockDataProvider = {- getList,- } as unknown as DataProvider;-- getList.mockResolvedValueOnce([{ id: 1 }]);-- const { getList: getListAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getListAdapter('resource', { filter: { '[email protected]': null } })- ).resolves.toEqual([{ id: 1 }]);-- expect(getList).toHaveBeenCalledWith('resource', {- filter: { id_neq: null },- });- });-- it("should transform '@lt'", () => {- const getList = jest.fn();- const mockDataProvider = {- getList,- } as unknown as DataProvider;-- getList.mockResolvedValueOnce([{ id: 1 }]);-- const { getList: getListAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getListAdapter('resource', { filter: { 'a@id@lt': '1' } })- ).resolves.toEqual([{ id: 1 }]);-- expect(getList).toHaveBeenCalledWith('resource', {- filter: { 'a@id_lt': '1' },- });- });-- it("should transform '@lte'", () => {- const getList = jest.fn();- const mockDataProvider = {- getList,- } as unknown as DataProvider;-- getList.mockResolvedValueOnce([{ id: 1 }]);-- const { getList: getListAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getListAdapter('resource', { filter: { 'a@id@lte': '1' } })- ).resolves.toEqual([{ id: 1 }]);-- expect(getList).toHaveBeenCalledWith('resource', {- filter: { 'a@id_lte': '1' },- });- });-- it("should transform '@gt'", () => {- const getList = jest.fn();- const mockDataProvider = {- getList,- } as unknown as DataProvider;-- getList.mockResolvedValueOnce([{ id: 1 }]);-- const { getList: getListAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getListAdapter('resource', { filter: { 'a@id@gt': '1' } })- ).resolves.toEqual([{ id: 1 }]);-- expect(getList).toHaveBeenCalledWith('resource', {- filter: { 'a@id_gt': '1' },- });- });-- it("should transform '@gte'", () => {- const getList = jest.fn();- const mockDataProvider = {- getList,- } as unknown as DataProvider;-- getList.mockResolvedValueOnce([{ id: 1 }]);-- const { getList: getListAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getListAdapter('resource', { filter: { 'a@id@gte': '1' } })- ).resolves.toEqual([{ id: 1 }]);-- expect(getList).toHaveBeenCalledWith('resource', {- filter: { 'a@id_gte': '1' },- });- });-- it("should transform '@in'", () => {- const getList = jest.fn();- const mockDataProvider = {- getList,- } as unknown as DataProvider;-- getList.mockResolvedValueOnce([{ id: 1 }]);-- const { getList: getListAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getListAdapter('resource', { filter: { 'id@in': '(1,2,a)' } })- ).resolves.toEqual([{ id: 1 }]);-- expect(getList).toHaveBeenCalledWith('resource', {- filter: { id_eq_any: [1, 2, 'a'] },- });- });-- it("should transform '@cs'", () => {- const getList = jest.fn();- const mockDataProvider = {- getList,- } as unknown as DataProvider;-- getList.mockResolvedValueOnce([{ id: 1 }]);-- const { getList: getListAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getListAdapter('resource', { filter: { 'tags@cs': '{1,2,a}' } })- ).resolves.toEqual([{ id: 1 }]);-- expect(getList).toHaveBeenCalledWith('resource', {- filter: { tags: [1, 2, 'a'] },- });- });-- it("should transform '@or'", () => {- const getList = jest.fn();- const mockDataProvider = {- getList,- } as unknown as DataProvider;-- getList.mockResolvedValueOnce([{ id: 1 }]);-- const { getList: getListAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getListAdapter('resource', {- filter: { '@or': { last_name: 'one' } },- })- ).resolves.toEqual([{ id: 1 }]);-- expect(getList).toHaveBeenCalledWith('resource', {- filter: { q: 'one' },- });- });-- it('should not transform a filter without operator', () => {- const getList = jest.fn();- const mockDataProvider = {- getList,- } as unknown as DataProvider;-- getList.mockResolvedValueOnce([{ id: 1 }]);-- const { getList: getListAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getListAdapter('resource', { filter: { id: 1 } })- ).resolves.toEqual([{ id: 1 }]);-- expect(getList).toHaveBeenCalledWith('resource', {- filter: { id: 1 },- });- });-});--describe('getManyReference', () => {- it('should transform @eq', () => {- const getManyReference = jest.fn();- const mockDataProvider = {- getManyReference,- } as unknown as DataProvider;-- getManyReference.mockResolvedValueOnce([{ id: 1 }]);-- const { getManyReference: getManyReferenceAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getManyReferenceAdapter('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'a@id@eq': '2' },- })- ).resolves.toEqual([{ id: 1 }]);-- expect(getManyReference).toHaveBeenCalledWith('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'a@id_eq': '2' },- });- });-- it('should transform @neq', () => {- const getManyReference = jest.fn();- const mockDataProvider = {- getManyReference,- } as unknown as DataProvider;-- getManyReference.mockResolvedValueOnce([{ id: 1 }]);-- const { getManyReference: getManyReferenceAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getManyReferenceAdapter('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'a@id@neq': '2' },- })- ).resolves.toEqual([{ id: 1 }]);-- expect(getManyReference).toHaveBeenCalledWith('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'a@id_neq': '2' },- });- });-- it('should transform @is', () => {- const getManyReference = jest.fn();- const mockDataProvider = {- getManyReference,- } as unknown as DataProvider;-- getManyReference.mockResolvedValueOnce([{ id: 1 }]);-- const { getManyReference: getManyReferenceAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getManyReferenceAdapter('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'id@is': null },- })- ).resolves.toEqual([{ id: 1 }]);-- expect(getManyReference).toHaveBeenCalledWith('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { id_eq: null },- });- });-- it('should transform @not.is', () => {- const getManyReference = jest.fn();- const mockDataProvider = {- getManyReference,- } as unknown as DataProvider;-- getManyReference.mockResolvedValueOnce([{ id: 1 }]);-- const { getManyReference: getManyReferenceAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getManyReferenceAdapter('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { '[email protected]': null },- })- ).resolves.toEqual([{ id: 1 }]);-- expect(getManyReference).toHaveBeenCalledWith('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { id_neq: null },- });- });-- it('should transform @lt', () => {- const getManyReference = jest.fn();- const mockDataProvider = {- getManyReference,- } as unknown as DataProvider;-- getManyReference.mockResolvedValueOnce([{ id: 1 }]);-- const { getManyReference: getManyReferenceAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getManyReferenceAdapter('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'a@id@lt': '2' },- })- ).resolves.toEqual([{ id: 1 }]);-- expect(getManyReference).toHaveBeenCalledWith('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'a@id_lt': '2' },- });- });-- it('should transform @lte', () => {- const getManyReference = jest.fn();- const mockDataProvider = {- getManyReference,- } as unknown as DataProvider;-- getManyReference.mockResolvedValueOnce([{ id: 1 }]);-- const { getManyReference: getManyReferenceAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getManyReferenceAdapter('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'a@id@lte': '2' },- })- ).resolves.toEqual([{ id: 1 }]);-- expect(getManyReference).toHaveBeenCalledWith('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'a@id_lte': '2' },- });- });-- it('should transform @gt', () => {- const getManyReference = jest.fn();- const mockDataProvider = {- getManyReference,- } as unknown as DataProvider;-- getManyReference.mockResolvedValueOnce([{ id: 1 }]);-- const { getManyReference: getManyReferenceAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getManyReferenceAdapter('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'a@id@gt': '2' },- })- ).resolves.toEqual([{ id: 1 }]);-- expect(getManyReference).toHaveBeenCalledWith('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'a@id_gt': '2' },- });- });-- it('should transform @gte', () => {- const getManyReference = jest.fn();- const mockDataProvider = {- getManyReference,- } as unknown as DataProvider;-- getManyReference.mockResolvedValueOnce([{ id: 1 }]);-- const { getManyReference: getManyReferenceAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getManyReferenceAdapter('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'a@id@gte': '2' },- })- ).resolves.toEqual([{ id: 1 }]);-- expect(getManyReference).toHaveBeenCalledWith('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'a@id_gte': '2' },- });- });-- it("should transform '@in'", () => {- const getManyReference = jest.fn();- const mockDataProvider = {- getManyReference,- } as unknown as DataProvider;-- getManyReference.mockResolvedValueOnce([{ id: 1 }]);-- const { getManyReference: getManyReferenceAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getManyReferenceAdapter('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'id@in': '(1,2,a)' },- })- ).resolves.toEqual([{ id: 1 }]);-- expect(getManyReference).toHaveBeenCalledWith('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { id_eq_any: [1, 2, 'a'] },- });- });-- it("should transform '@cs'", () => {- const getManyReference = jest.fn();- const mockDataProvider = {- getManyReference,- } as unknown as DataProvider;-- getManyReference.mockResolvedValueOnce([{ id: 1 }]);-- const { getManyReference: getManyReferenceAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getManyReferenceAdapter('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { 'tags@cs': '{1,2,a}' },- })- ).resolves.toEqual([{ id: 1 }]);-- expect(getManyReference).toHaveBeenCalledWith('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { tags: [1, 2, 'a'] },- });- });-- it("should transform '@or'", () => {- const getManyReference = jest.fn();- const mockDataProvider = {- getManyReference,- } as unknown as DataProvider;-- getManyReference.mockResolvedValueOnce([{ id: 1 }]);-- const { getManyReference: getManyReferenceAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getManyReferenceAdapter('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { '@or': { last_name: 'one' } },- })- ).resolves.toEqual([{ id: 1 }]);-- expect(getManyReference).toHaveBeenCalledWith('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { q: 'one' },- });- });-- it('should not transform a filter without operator', () => {- const getManyReference = jest.fn();- const mockDataProvider = {- getManyReference,- } as unknown as DataProvider;-- getManyReference.mockResolvedValueOnce([{ id: 1 }]);-- const { getManyReference: getManyReferenceAdapter } =- withSupabaseFilterAdapter(mockDataProvider);-- expect(- getManyReferenceAdapter('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { id: 2 },- })- ).resolves.toEqual([{ id: 1 }]);-- expect(getManyReference).toHaveBeenCalledWith('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: { id: 2 },- });- });-});--it('should remove summary suffix', () => {- const getOne = jest.fn();- const getList = jest.fn();- const getMany = jest.fn();- const getManyReference = jest.fn();- const create = jest.fn();- const del = jest.fn();- const deleteMany = jest.fn();- const update = jest.fn();- const updateMany = jest.fn();-- const dataProvider: DataProvider = withSupabaseFilterAdapter({- getOne,- getList,- getMany,- getManyReference,- create,- delete: del,- deleteMany,- update,- updateMany,- });-- expect(- Promise.all([- dataProvider.getOne('resource_summary', { id: 1 }),- dataProvider.getList('resource_summary', {- pagination: { page: 1, perPage: 10 },- }),- dataProvider.getMany('resource_summary', { ids: [1] }),- dataProvider.getManyReference('resource_summary', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: {},- }),- dataProvider.create('resource_summary', { data: {} }),- dataProvider.delete('resource_summary', { id: 1 }),- dataProvider.deleteMany('resource_summary', { ids: [1] }),- dataProvider.update('resource_summary', {- id: 1,- data: {},- previousData: {},- }),- dataProvider.updateMany('resource_summary', { ids: [1], data: {} }),- ])- ).resolves.toHaveLength(9);-- expect(getOne).toHaveBeenCalledWith('resource', { id: 1 });- expect(getList).toHaveBeenCalledWith('resource', {- pagination: { page: 1, perPage: 10 },- filter: undefined,- });- expect(getMany).toHaveBeenCalledWith('resource', { ids: [1] });- expect(getManyReference).toHaveBeenCalledWith('resource', {- id: 1,- target: 'target',- pagination: { page: 1, perPage: 10 },- sort: { field: 'id', order: 'ASC' },- filter: {},- });- expect(create).toHaveBeenCalledWith('resource', { data: {} });- expect(del).toHaveBeenCalledWith('resource', { id: 1 });- expect(deleteMany).toHaveBeenCalledWith('resource', { ids: [1] });- expect(update).toHaveBeenCalledWith('resource', {- id: 1,- data: {},- previousData: {},- });- expect(updateMany).toHaveBeenCalledWith('resource', { ids: [1], data: {} });-});diff --git a/src/providers/fakerest/internal/supabaseAdapter.ts b/src/providers/fakerest/internal/supabaseAdapter.tsdeleted file mode 100644index 7dd496b6..00000000--- a/src/providers/fakerest/internal/supabaseAdapter.ts+++ /dev/null@@ -1,58 +0,0 @@-import { DataProvider } from 'react-admin';-import { transformFilter } from './transformFilter';--function removeSummarySuffix(resource: string) {- return resource.endsWith('_summary')- ? resource.replace('_summary', '')- : resource;-}--export function withSupabaseFilterAdapter<T extends DataProvider>(- dataProvider: T-): T {- return {- ...dataProvider,- getOne(resource, params) {- return dataProvider.getOne(removeSummarySuffix(resource), params);- },- getList(resource, params) {- return dataProvider.getList(removeSummarySuffix(resource), {- ...params,- filter: transformFilter(params.filter),- });- },- getMany(resource, params) {- return dataProvider.getMany(removeSummarySuffix(resource), params);- },- getManyReference(resource, params) {- return dataProvider.getManyReference(- removeSummarySuffix(resource),- {- ...params,- filter: transformFilter(params.filter),- }- );- },- create(resource, params) {- return dataProvider.create(removeSummarySuffix(resource), params);- },- delete(resource, params) {- return dataProvider.delete(removeSummarySuffix(resource), params);- },- deleteMany(resource, params) {- return dataProvider.deleteMany(- removeSummarySuffix(resource),- params- );- },- update(resource, params) {- return dataProvider.update(removeSummarySuffix(resource), params);- },- updateMany(resource, params) {- return dataProvider.updateMany(- removeSummarySuffix(resource),- params- );- },- };-}diff --git a/src/providers/supabase/authProvider.ts b/src/providers/supabase/authProvider.tsdeleted file mode 100644index bc33ec96..00000000--- a/src/providers/supabase/authProvider.ts+++ /dev/null@@ -1,122 +0,0 @@-import { supabaseAuthProvider } from 'ra-supabase';-import { AuthProvider } from 'react-admin';-import { supabase } from './supabase';-import { canAccess } from '../commons/canAccess';--const baseAuthProvider = supabaseAuthProvider(supabase, {- getIdentity: async () => {- const sale = await getSaleFromCache();-- if (sale == null) {- throw new Error();- }-- return {- id: sale.id,- fullName: `${sale.first_name} ${sale.last_name}`,- avatar: sale.avatar?.src,- };- },-});--export async function getIsInitialized() {- if (getIsInitialized._is_initialized_cache == null) {- const { data } = await supabase- .from('init_state')- .select('is_initialized');-- getIsInitialized._is_initialized_cache =- data?.at(0)?.is_initialized > 0;- }-- return getIsInitialized._is_initialized_cache;-}--export namespace getIsInitialized {- export var _is_initialized_cache: boolean | null = null;-}--export const authProvider: AuthProvider = {- ...baseAuthProvider,- login: async params => {- const result = await baseAuthProvider.login(params);- // clear cached sale- cachedSale = undefined;- return result;- },- checkAuth: async params => {- // Users are on the set-password page, nothing to do- if (- window.location.pathname === '/set-password' ||- window.location.hash.includes('#/set-password')- ) {- return;- }- // Users are on the forgot-password page, nothing to do- if (- window.location.pathname === '/forgot-password' ||- window.location.hash.includes('#/forgot-password')- ) {- return;- }- // Users are on the sign-up page, nothing to do- if (- window.location.pathname === '/sign-up' ||- window.location.hash.includes('#/sign-up')- ) {- return;- }-- const isInitialized = await getIsInitialized();-- if (!isInitialized) {- await supabase.auth.signOut();- // eslint-disable-next-line no-throw-literal- throw {- redirectTo: '/sign-up',- message: false,- };- }-- return baseAuthProvider.checkAuth(params);- },- canAccess: async params => {- const isInitialized = await getIsInitialized();- if (!isInitialized) return false;-- // Get the current user- const sale = await getSaleFromCache();- if (sale == null) return false;-- // Compute access rights from the sale role- const role = sale.administrator ? 'admin' : 'user';- return canAccess(role, params);- },-};--let cachedSale: any;-const getSaleFromCache = async () => {- if (cachedSale != null) return cachedSale;-- const { data: dataSession, error: errorSession } =- await supabase.auth.getSession();-- // Shouldn't happen after login but just in case- if (dataSession?.session?.user == null || errorSession) {- return undefined;- }-- const { data: dataSale, error: errorSale } = await supabase- .from('sales')- .select('id, first_name, last_name, avatar, administrator')- .match({ user_id: dataSession?.session?.user.id })- .single();-- // Shouldn't happen either as all users are sales but just in case- if (dataSale == null || errorSale) {- return undefined;- }-- cachedSale = dataSale;- return dataSale;-};diff --git a/src/providers/supabase/dataProvider.ts b/src/providers/supabase/dataProvider.tsdeleted file mode 100644index 6e77fa8d..00000000--- a/src/providers/supabase/dataProvider.ts+++ /dev/null@@ -1,404 +0,0 @@-import { supabaseDataProvider } from 'ra-supabase';--import {- CreateParams,- DataProvider,- GetListParams,- Identifier,- UpdateParams,- withLifecycleCallbacks,-} from 'react-admin';-import {- Contact,- ContactNote,- Deal,- DealNote,- RAFile,- Sale,- SalesFormData,- SignUpData,-} from '../../types';-import { getActivityLog } from '../commons/activity';-import { getCompanyAvatar } from '../commons/getCompanyAvatar';-import { getContactAvatar } from '../commons/getContactAvatar';-import { getIsInitialized } from './authProvider';-import { supabase } from './supabase';--if (import.meta.env.VITE_SUPABASE_URL === undefined) {- throw new Error('Please set the VITE_SUPABASE_URL environment variable');-}-if (import.meta.env.VITE_SUPABASE_ANON_KEY === undefined) {- throw new Error(- 'Please set the VITE_SUPABASE_ANON_KEY environment variable'- );-}--const baseDataProvider = supabaseDataProvider({- instanceUrl: import.meta.env.VITE_SUPABASE_URL,- apiKey: import.meta.env.VITE_SUPABASE_ANON_KEY,- supabaseClient: supabase,- sortOrder: 'asc,desc.nullslast' as any,-});--const processCompanyLogo = async (params: any) => {- let logo = params.data.logo;-- if (typeof logo !== 'object' || logo === null || !logo.src) {- logo = await getCompanyAvatar(params.data);- } else if (logo.rawFile instanceof File) {- await uploadToBucket(logo);- }-- return {- ...params,- data: {- ...params.data,- logo,- },- };-};--async function processContactAvatar(- params: UpdateParams<Contact>-): Promise<UpdateParams<Contact>>;--async function processContactAvatar(- params: CreateParams<Contact>-): Promise<CreateParams<Contact>>;--async function processContactAvatar(- params: CreateParams<Contact> | UpdateParams<Contact>-): Promise<CreateParams<Contact> | UpdateParams<Contact>> {- const { data } = params;- if (data.avatar?.src || !data.email_jsonb || !data.email_jsonb.length) {- return params;- }- const avatarUrl = await getContactAvatar(data);-- // Clone the data and modify the clone- const newData = { ...data, avatar: { src: avatarUrl || undefined } };-- return { ...params, data: newData };-}--const dataProviderWithCustomMethods = {- ...baseDataProvider,- async getList(resource: string, params: GetListParams) {- if (resource === 'companies') {- return baseDataProvider.getList('companies_summary', params);- }- if (resource === 'contacts') {- return baseDataProvider.getList('contacts_summary', params);- }-- return baseDataProvider.getList(resource, params);- },- async getOne(resource: string, params: any) {- if (resource === 'companies') {- return baseDataProvider.getOne('companies_summary', params);- }- if (resource === 'contacts') {- return baseDataProvider.getOne('contacts_summary', params);- }-- return baseDataProvider.getOne(resource, params);- },-- async signUp({ email, password, first_name, last_name }: SignUpData) {- const response = await supabase.auth.signUp({- email,- password,- options: {- data: {- first_name,- last_name,- },- },- });-- if (!response.data?.user || response.error) {- console.error('signUp.error', response.error);- throw new Error('Failed to create account');- }-- // Update the is initialized cache- getIsInitialized._is_initialized_cache = true;-- return {- id: response.data.user.id,- email,- password,- };- },- async salesCreate(body: SalesFormData) {- const { data, error } = await supabase.functions.invoke<Sale>('users', {- method: 'POST',- body,- });-- if (!data || error) {- console.error('salesCreate.error', error);- throw new Error('Failed to create account manager');- }-- return data;- },- async salesUpdate(- id: Identifier,- data: Partial<Omit<SalesFormData, 'password'>>- ) {- const {- email,- first_name,- last_name,- administrator,- avatar,- disabled,- } = data;-- const { data: sale, error } = await supabase.functions.invoke<Sale>(- 'users',- {- method: 'PATCH',- body: {- sales_id: id,- email,- first_name,- last_name,- administrator,- disabled,- avatar,- },- }- );-- if (!sale || error) {- console.error('salesCreate.error', error);- throw new Error('Failed to update account manager');- }-- return data;- },- async updatePassword(id: Identifier) {- const { data: passwordUpdated, error } =- await supabase.functions.invoke<boolean>('updatePassword', {- method: 'PATCH',- body: {- sales_id: id,- },- });-- if (!passwordUpdated || error) {- console.error('passwordUpdate.error', error);- throw new Error('Failed to update password');- }-- return passwordUpdated;- },- async unarchiveDeal(deal: Deal) {- // get all deals where stage is the same as the deal to unarchive- const { data: deals } = await baseDataProvider.getList<Deal>('deals', {- filter: { stage: deal.stage },- pagination: { page: 1, perPage: 1000 },- sort: { field: 'index', order: 'ASC' },- });-- // set index for each deal starting from 1, if the deal to unarchive is found, set its index to the last one- const updatedDeals = deals.map((d, index) => ({- ...d,- index: d.id === deal.id ? 0 : index + 1,- archived_at: d.id === deal.id ? null : d.archived_at,- }));-- return await Promise.all(- updatedDeals.map(updatedDeal =>- baseDataProvider.update('deals', {- id: updatedDeal.id,- data: updatedDeal,- previousData: deals.find(d => d.id === updatedDeal.id),- })- )- );- },- async getActivityLog(companyId?: Identifier) {- return getActivityLog(baseDataProvider, companyId);- },- async isInitialized() {- return getIsInitialized();- },-} satisfies DataProvider;--export type CrmDataProvider = typeof dataProviderWithCustomMethods;--export const dataProvider = withLifecycleCallbacks(- dataProviderWithCustomMethods,- [- {- resource: 'contactNotes',- beforeSave: async (data: ContactNote, _, __) => {- if (data.attachments) {- for (const fi of data.attachments) {- await uploadToBucket(fi);- }- }- return data;- },- },- {- resource: 'dealNotes',- beforeSave: async (data: DealNote, _, __) => {- if (data.attachments) {- for (const fi of data.attachments) {- await uploadToBucket(fi);- }- }- return data;- },- },- {- resource: 'sales',- beforeSave: async (data: Sale, _, __) => {- if (data.avatar) {- await uploadToBucket(data.avatar);- }- return data;- },- },- {- resource: 'contacts',- beforeCreate: async params => {- return processContactAvatar(params);- },- beforeUpdate: async params => {- return processContactAvatar(params);- },- beforeGetList: async params => {- return applyFullTextSearch([- 'first_name',- 'last_name',- 'company_name',- 'title',- 'email',- 'phone',- 'background',- ])(params);- },- },- {- resource: 'companies',- beforeGetList: async params => {- return applyFullTextSearch([- 'name',- 'phone_number',- 'website',- 'zipcode',- 'city',- 'stateAbbr',- ])(params);- },- beforeCreate: async params => {- const createParams = await processCompanyLogo(params);-- return {- ...createParams,- data: {- ...createParams.data,- created_at: new Date().toISOString(),- },- };- },- beforeUpdate: async params => {- return await processCompanyLogo(params);- },- },- {- resource: 'contacts_summary',- beforeGetList: async params => {- return applyFullTextSearch(['first_name', 'last_name'])(params);- },- },- {- resource: 'deals',- beforeGetList: async params => {- return applyFullTextSearch(['name', 'type', 'description'])(- params- );- },- },- ]-);--const applyFullTextSearch = (columns: string[]) => (params: GetListParams) => {- if (!params.filter?.q) {- return params;- }- const { q, ...filter } = params.filter;- return {- ...params,- filter: {- ...filter,- '@or': columns.reduce((acc, column) => {- if (column === 'email')- return {- ...acc,- [`email_fts@ilike`]: q,- };- if (column === 'phone')- return {- ...acc,- [`phone_fts@ilike`]: q,- };- else- return {- ...acc,- [`${column}@ilike`]: q,- };- }, {}),- },- };-};--const uploadToBucket = async (fi: RAFile) => {- if (!fi.src.startsWith('blob:') && !fi.src.startsWith('data:')) {- // Sign URL check if path exists in the bucket- if (fi.path) {- const { error } = await supabase.storage- .from('attachments')- .createSignedUrl(fi.path, 60);-- if (!error) {- return;- }- }- }-- const dataContent = fi.src- ? await fetch(fi.src).then(res => res.blob())- : fi.rawFile;-- const file = fi.rawFile;- const fileExt = file.name.split('.').pop();- const fileName = `${Math.random()}.${fileExt}`;- const filePath = `${fileName}`;- const { error: uploadError } = await supabase.storage- .from('attachments')- .upload(filePath, dataContent);-- if (uploadError) {- console.error('uploadError', uploadError);- throw new Error('Failed to upload attachment');- }-- const { data } = supabase.storage- .from('attachments')- .getPublicUrl(filePath);-- fi.path = filePath;- fi.src = data.publicUrl;-- // save MIME type- const mimeType = file.type;- fi.type = mimeType;-- return fi;-};diff --git a/src/reportWebVitals.js b/src/reportWebVitals.jsdeleted file mode 100644index 4251e959..00000000--- a/src/reportWebVitals.js+++ /dev/null@@ -1,15 +0,0 @@-const reportWebVitals = onPerfEntry => {- if (onPerfEntry && onPerfEntry instanceof Function) {- import('web-vitals').then(- ({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {- getCLS(onPerfEntry);- getFID(onPerfEntry);- getFCP(onPerfEntry);- getLCP(onPerfEntry);- getTTFB(onPerfEntry);- }- );- }-};--export default reportWebVitals;diff --git a/src/root/CRM.stories.tsx b/src/root/CRM.stories.tsxdeleted file mode 100644index 594aaaaa..00000000--- a/src/root/CRM.stories.tsx+++ /dev/null@@ -1,26 +0,0 @@-import type { Meta, StoryObj } from '@storybook/react';--import { CRM } from './CRM';-import { dataProvider, authProvider } from '../providers/fakerest';--const meta: Meta<typeof CRM> = {- component: CRM,-};--export default meta;-type Story = StoryObj<typeof CRM>;--export const Basic: Story = {- args: {- dataProvider,- authProvider,- },-};--export const Layout: Story = {- args: {- dataProvider,- authProvider,- layout: ({ children }) => <div>{children}</div>,- },-};diff --git a/src/root/CRM.tsx b/src/root/CRM.tsxdeleted file mode 100644index 08d221b8..00000000--- a/src/root/CRM.tsx+++ /dev/null@@ -1,203 +0,0 @@-import { useEffect } from 'react';-import {- Admin,- CustomRoutes,- ListGuesser,- RaThemeOptions,- Resource,- defaultTheme,- localStorageStore,-} from 'react-admin';-import type { AdminProps, AuthProvider, DataProvider } from 'react-admin';-import { deepmerge } from '@mui/utils';-import { Route } from 'react-router';-import { ForgotPasswordPage, SetPasswordPage } from 'ra-supabase';--import { Layout } from '../layout/Layout';-import { i18nProvider } from './i18nProvider';-import companies from '../companies';-import contacts from '../contacts';-import { Dashboard } from '../dashboard/Dashboard';-import deals from '../deals';-import { LoginPage } from '../login/LoginPage';-import { SignupPage } from '../login/SignupPage';-import {- authProvider as defaultAuthProvider,- dataProvider as defaultDataProvider,-} from '../providers/supabase';-import sales from '../sales';-import { SettingsPage } from '../settings/SettingsPage';-import {- ConfigurationContextValue,- ConfigurationProvider,-} from './ConfigurationContext';-import {- defaultCompanySectors,- defaultContactGender,- defaultDealCategories,- defaultDealPipelineStatuses,- defaultDealStages,- defaultLogo,- defaultNoteStatuses,- defaultTaskTypes,- defaultTitle,-} from './defaultConfiguration';--// Define the interface for the CRM component props-export type CRMProps = {- dataProvider?: DataProvider;- authProvider?: AuthProvider;- lightTheme?: RaThemeOptions;- darkTheme?: RaThemeOptions;-} & Partial<ConfigurationContextValue> &- Partial<AdminProps>;--const defaultLightTheme = deepmerge(defaultTheme, {- palette: {- background: {- default: '#fafafb',- },- primary: {- main: '#2F68AC',- },- },- components: {- RaFileInput: {- styleOverrides: {- root: {- '& .RaFileInput-dropZone': {- backgroundColor: 'rgba(0, 0, 0, 0.04)',- },- },- },- },- },-});--/**- * CRM Component- *- * This component sets up and renders the main CRM application using `react-admin`. It provides- * default configurations and themes but allows for customization through props. The component- * wraps the application with a `ConfigurationProvider` to provide configuration values via context.- *- * @param {Array<ContactGender>} contactGender - The gender options for contacts used in the application.- * @param {string[]} companySectors - The list of company sectors used in the application.- * @param {RaThemeOptions} darkTheme - The theme to use when the application is in dark mode.- * @param {string[]} dealCategories - The categories of deals used in the application.- * @param {string[]} dealPipelineStatuses - The statuses of deals in the pipeline used in the application.- * @param {DealStage[]} dealStages - The stages of deals used in the application.- * @param {RaThemeOptions} lightTheme - The theme to use when the application is in light mode.- * @param {string} logo - The logo used in the CRM application.- * @param {NoteStatus[]} noteStatuses - The statuses of notes used in the application.- * @param {string[]} taskTypes - The types of tasks used in the application.- * @param {string} title - The title of the CRM application.- *- * @returns {JSX.Element} The rendered CRM application.- *- * @example- * // Basic usage of the CRM component- * import { CRM } from './CRM';- *- * const App = () => (- * <CRM- * logo="/path/to/logo.png"- * title="My Custom CRM"- * lightTheme={{- * ...defaultTheme,- * palette: {- * primary: { main: '#0000ff' },- * },- * }}- * />- * );- *- * export default App;- */-export const CRM = ({- contactGender = defaultContactGender,- companySectors = defaultCompanySectors,- darkTheme,- dealCategories = defaultDealCategories,- dealPipelineStatuses = defaultDealPipelineStatuses,- dealStages = defaultDealStages,- lightTheme = defaultLightTheme,- logo = defaultLogo,- noteStatuses = defaultNoteStatuses,- taskTypes = defaultTaskTypes,- title = defaultTitle,- dataProvider = defaultDataProvider,- authProvider = defaultAuthProvider,- disableTelemetry,- ...rest-}: CRMProps) => {- useEffect(() => {- if (- disableTelemetry ||- process.env.NODE_ENV !== 'production' ||- typeof window === 'undefined' ||- typeof window.location === 'undefined' ||- typeof Image === 'undefined'- ) {- return;- }- const img = new Image();- img.src = `https://atomic-crm-telemetry.marmelab.com/atomic-crm-telemetry?domain=${window.location.hostname}`;- }, [disableTelemetry]);-- return (- <ConfigurationProvider- contactGender={contactGender}- companySectors={companySectors}- dealCategories={dealCategories}- dealPipelineStatuses={dealPipelineStatuses}- dealStages={dealStages}- logo={logo}- noteStatuses={noteStatuses}- taskTypes={taskTypes}- title={title}- >- <Admin- dataProvider={dataProvider}- authProvider={authProvider}- store={localStorageStore(undefined, 'CRM')}- layout={Layout}- loginPage={LoginPage}- dashboard={Dashboard}- theme={lightTheme}- darkTheme={darkTheme || null}- i18nProvider={i18nProvider}- requireAuth- disableTelemetry- {...rest}- >- <CustomRoutes noLayout>- <Route path={SignupPage.path} element={<SignupPage />} />- <Route- path={SetPasswordPage.path}- element={<SetPasswordPage />}- />- <Route- path={ForgotPasswordPage.path}- element={<ForgotPasswordPage />}- />- </CustomRoutes>-- <CustomRoutes>- <Route- path={SettingsPage.path}- element={<SettingsPage />}- />- </CustomRoutes>- <Resource name="deals" {...deals} />- <Resource name="contacts" {...contacts} />- <Resource name="companies" {...companies} />- <Resource name="contactNotes" />- <Resource name="dealNotes" />- <Resource name="tasks" list={ListGuesser} />- <Resource name="sales" {...sales} />- <Resource name="tags" list={ListGuesser} />- </Admin>- </ConfigurationProvider>- );-};diff --git a/src/root/ConfigurationContext.tsx b/src/root/ConfigurationContext.tsxdeleted file mode 100644index e90e11ae..00000000--- a/src/root/ConfigurationContext.tsx+++ /dev/null@@ -1,74 +0,0 @@-import { createContext, ReactNode, useContext } from 'react';-import {- defaultCompanySectors,- defaultContactGender,- defaultDealCategories,- defaultDealPipelineStatuses,- defaultDealStages,- defaultLogo,- defaultNoteStatuses,- defaultTaskTypes,- defaultTitle,-} from './defaultConfiguration';-import { ContactGender, DealStage, NoteStatus } from '../types';--// Define types for the context value-export interface ConfigurationContextValue {- companySectors: string[];- dealCategories: string[];- dealPipelineStatuses: string[];- dealStages: DealStage[];- noteStatuses: NoteStatus[];- taskTypes: string[];- title: string;- logo: string;- contactGender: ContactGender[];-}--export interface ConfigurationProviderProps extends ConfigurationContextValue {- children: ReactNode;-}--// Create context with default value-export const ConfigurationContext = createContext<ConfigurationContextValue>({- companySectors: defaultCompanySectors,- dealCategories: defaultDealCategories,- dealPipelineStatuses: defaultDealPipelineStatuses,- dealStages: defaultDealStages,- noteStatuses: defaultNoteStatuses,- taskTypes: defaultTaskTypes,- title: defaultTitle,- logo: defaultLogo,- contactGender: defaultContactGender,-});--export const ConfigurationProvider = ({- children,- companySectors,- dealCategories,- dealPipelineStatuses,- dealStages,- logo,- noteStatuses,- taskTypes,- title,- contactGender,-}: ConfigurationProviderProps) => (- <ConfigurationContext.Provider- value={{- companySectors,- dealCategories,- dealPipelineStatuses,- dealStages,- logo,- noteStatuses,- title,- taskTypes,- contactGender,- }}- >- {children}- </ConfigurationContext.Provider>-);--export const useConfigurationContext = () => useContext(ConfigurationContext);diff --git a/src/root/defaultConfiguration.ts b/src/root/defaultConfiguration.tsdeleted file mode 100644index 9dc7707c..00000000--- a/src/root/defaultConfiguration.ts+++ /dev/null@@ -1,65 +0,0 @@-import Man2Icon from '@mui/icons-material/Man2';-import WcIcon from '@mui/icons-material/Wc';-import Woman2Icon from '@mui/icons-material/Woman2';--export const defaultLogo = './logos/logo_atomic_crm.svg';--export const defaultTitle = 'Atomic CRM';--export const defaultCompanySectors = [- 'Communication Services',- 'Consumer Discretionary',- 'Consumer Staples',- 'Energy',- 'Financials',- 'Health Care',- 'Industrials',- 'Information Technology',- 'Materials',- 'Real Estate',- 'Utilities',-];--export const defaultDealStages = [- { value: 'opportunity', label: 'Opportunity' },- { value: 'proposal-sent', label: 'Proposal Sent' },- { value: 'in-negociation', label: 'In Negotiation' },- { value: 'won', label: 'Won' },- { value: 'lost', label: 'Lost' },- { value: 'delayed', label: 'Delayed' },-];--export const defaultDealPipelineStatuses = ['won'];--export const defaultDealCategories = [- 'Other',- 'Copywriting',- 'Print project',- 'UI Design',- 'Website design',-];--export const defaultNoteStatuses = [- { value: 'cold', label: 'Cold', color: '#7dbde8' },- { value: 'warm', label: 'Warm', color: '#e8cb7d' },- { value: 'hot', label: 'Hot', color: '#e88b7d' },- { value: 'in-contract', label: 'In Contract', color: '#a4e87d' },-];--export const defaultTaskTypes = [- 'None',- 'Email',- 'Demo',- 'Lunch',- 'Meeting',- 'Follow-up',- 'Thank you',- 'Ship',- 'Call',-];--export const defaultContactGender = [- { value: 'male', label: 'He/Him', icon: Man2Icon },- { value: 'female', label: 'She/Her', icon: Woman2Icon },- { value: 'nonbinary', label: 'They/Them', icon: WcIcon },-];diff --git a/src/root/i18nProvider.tsx b/src/root/i18nProvider.tsxdeleted file mode 100644index 63af0aa2..00000000--- a/src/root/i18nProvider.tsx+++ /dev/null@@ -1,25 +0,0 @@-import { mergeTranslations } from 'react-admin';-import polyglotI18nProvider from 'ra-i18n-polyglot';-import englishMessages from 'ra-language-english';-import { raSupabaseEnglishMessages } from 'ra-supabase';--const raSupabaseEnglishMessagesOverride = {- 'ra-supabase': {- auth: {- password_reset: 'Check your emails for a Reset Password message.',- },- },-};--export const i18nProvider = polyglotI18nProvider(- () => {- return mergeTranslations(- englishMessages,- raSupabaseEnglishMessages,- raSupabaseEnglishMessagesOverride- );- },- 'en',- [{ locale: 'en', name: 'English' }],- { allowMissing: true }-);diff --git a/src/sales/SaleName.tsx b/src/sales/SaleName.tsxdeleted file mode 100644index fa3a2751..00000000--- a/src/sales/SaleName.tsx+++ /dev/null@@ -1,12 +0,0 @@-import { useGetIdentity, useRecordContext } from 'react-admin';-import { Sale } from '../types';--export const SaleName = ({ sale }: { sale?: Sale }) => {- const { identity, isPending } = useGetIdentity();- const saleFromContext = useRecordContext<Sale>();- const finalSale = sale || saleFromContext;- if (isPending || !finalSale) return null;- return finalSale.id === identity?.id- ? 'You'- : `${finalSale.first_name} ${finalSale.last_name}`;-};diff --git a/src/sales/SalesCreate.tsx b/src/sales/SalesCreate.tsxdeleted file mode 100644index 4216a094..00000000--- a/src/sales/SalesCreate.tsx+++ /dev/null@@ -1,50 +0,0 @@-import { Card, Container, Typography } from '@mui/material';-import { useMutation } from '@tanstack/react-query';-import {- SimpleForm,- useDataProvider,- useNotify,- useRedirect,-} from 'react-admin';-import { SubmitHandler } from 'react-hook-form';-import { CrmDataProvider } from '../providers/types';-import { SalesFormData } from '../types';-import { SalesInputs } from './SalesInputs';--export function SalesCreate() {- const dataProvider = useDataProvider<CrmDataProvider>();- const notify = useNotify();- const redirect = useRedirect();-- const { mutate } = useMutation({- mutationKey: ['signup'],- mutationFn: async (data: SalesFormData) => {- return dataProvider.salesCreate(data);- },- onSuccess: () => {- notify(- 'User created. They will soon receive an email to set their password.'- );- redirect('/sales');- },- onError: () => {- notify('An error occurred while creating the user.', {- type: 'error',- });- },- });- const onSubmit: SubmitHandler<SalesFormData> = async data => {- mutate(data);- };-- return (- <Container maxWidth="sm" sx={{ mt: 4 }}>- <Card>- <SimpleForm onSubmit={onSubmit as SubmitHandler<any>}>- <Typography variant="h6">Create a new user</Typography>- <SalesInputs />- </SimpleForm>- </Card>- </Container>- );-}diff --git a/src/sales/SalesEdit.tsx b/src/sales/SalesEdit.tsxdeleted file mode 100644index c3f5a0a8..00000000--- a/src/sales/SalesEdit.tsx+++ /dev/null@@ -1,77 +0,0 @@-import { Card, Container, Typography } from '@mui/material';-import { useMutation } from '@tanstack/react-query';-import {- SaveButton,- SimpleForm,- Toolbar,- useDataProvider,- useEditController,- useNotify,- useRecordContext,- useRedirect,-} from 'react-admin';-import { SubmitHandler } from 'react-hook-form';-import { CrmDataProvider } from '../providers/types';-import { Sale, SalesFormData } from '../types';-import { SalesInputs } from './SalesInputs';--function EditToolbar() {- return (- <Toolbar sx={{ display: 'flex', justifyContent: 'space-between' }}>- <SaveButton />- </Toolbar>- );-}--export function SalesEdit() {- const { record } = useEditController();-- const dataProvider = useDataProvider<CrmDataProvider>();- const notify = useNotify();- const redirect = useRedirect();-- const { mutate } = useMutation({- mutationKey: ['signup'],- mutationFn: async (data: SalesFormData) => {- if (!record) {- throw new Error('Record not found');- }- return dataProvider.salesUpdate(record.id, data);- },- onSuccess: () => {- redirect('/sales');- },- onError: () => {- notify('An error occurred. Please try again.');- },- });-- const onSubmit: SubmitHandler<SalesFormData> = async data => {- mutate(data);- };-- return (- <Container maxWidth="sm" sx={{ mt: 4 }}>- <Card>- <SimpleForm- toolbar={<EditToolbar />}- onSubmit={onSubmit as SubmitHandler<any>}- record={record}- >- <SaleEditTitle />- <SalesInputs />- </SimpleForm>- </Card>- </Container>- );-}--const SaleEditTitle = () => {- const record = useRecordContext<Sale>();- if (!record) return null;- return (- <Typography variant="h6">- Edit {record?.first_name} {record?.last_name}- </Typography>- );-};diff --git a/src/sales/SalesInputs.tsx b/src/sales/SalesInputs.tsxdeleted file mode 100644index c0440bf2..00000000--- a/src/sales/SalesInputs.tsx+++ /dev/null@@ -1,43 +0,0 @@-import {- BooleanInput,- required,- TextInput,- useGetIdentity,- useRecordContext,-} from 'react-admin';-import { Sale } from '../types';-import { Stack } from '@mui/material';--export function SalesInputs() {- const { identity } = useGetIdentity();- const record = useRecordContext<Sale>();- return (- <Stack gap={1} sx={{ width: '100%' }}>- <TextInput- source="first_name"- validate={required()}- helperText={false}- />- <TextInput- source="last_name"- validate={required()}- helperText={false}- />- <TextInput- source="email"- validate={required()}- helperText={false}- />- <BooleanInput- source="administrator"- readOnly={record?.id === identity?.id}- helperText={false}- />- <BooleanInput- source="disabled"- readOnly={record?.id === identity?.id}- helperText={false}- />- </Stack>- );-}diff --git a/src/sales/SalesList.tsx b/src/sales/SalesList.tsxdeleted file mode 100644index bb7032e0..00000000--- a/src/sales/SalesList.tsx+++ /dev/null@@ -1,64 +0,0 @@-import { Chip, Stack } from '@mui/material';-import {- CreateButton,- DatagridConfigurable,- ExportButton,- List,- SearchInput,- TextField,- TopToolbar,- useRecordContext,-} from 'react-admin';--const SalesListActions = () => (- <TopToolbar>- <ExportButton />- <CreateButton variant="contained" label="New user" />- </TopToolbar>-);--const filters = [<SearchInput source="q" alwaysOn />];--const OptionsField = (_props: { label?: string | boolean }) => {- const record = useRecordContext();- if (!record) return null;- return (- <Stack direction="row" gap={1}>- {record.administrator && (- <Chip- label="Admin"- size="small"- variant="outlined"- color="primary"- />- )}- {record.disabled && (- <Chip- label="Disabled"- size="small"- variant="outlined"- color="warning"- />- )}- </Stack>- );-};--export function SalesList() {- return (- <Stack gap={4}>- <List- filters={filters}- actions={<SalesListActions />}- sort={{ field: 'first_name', order: 'ASC' }}- >- <DatagridConfigurable rowClick="edit" bulkActionButtons={false}>- <TextField source="first_name" />- <TextField source="last_name" />- <TextField source="email" />- <OptionsField label={false} />- </DatagridConfigurable>- </List>- </Stack>- );-}diff --git a/src/sales/index.ts b/src/sales/index.tsdeleted file mode 100644index ab9bb353..00000000--- a/src/sales/index.ts+++ /dev/null@@ -1,13 +0,0 @@-/* eslint-disable import/no-anonymous-default-export */-import { Sale } from '../types';-import { SalesCreate } from './SalesCreate';-import { SalesEdit } from './SalesEdit';-import { SalesList } from './SalesList';--export default {- list: SalesList,- create: SalesCreate,- edit: SalesEdit,- recordRepresentation: (record: Sale) =>- `${record.first_name} ${record.last_name}`,-};diff --git a/src/script.tsx b/src/script.tsxdeleted file mode 100644index bbda3918..00000000--- a/src/script.tsx+++ /dev/null@@ -1,18 +0,0 @@-import React from 'react';-import { createRoot } from 'react-dom/client';-import App from './App';-import reportWebVitals from './reportWebVitals';--const container = document.getElementById('root');-const root = createRoot(container!);--root.render(- <React.StrictMode>- <App />- </React.StrictMode>-);--// If you want to start measuring performance in your app, pass a function-// to log results (for example: reportWebVitals(console.log))-// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals-reportWebVitals();diff --git a/src/settings/SettingsPage.tsx b/src/settings/SettingsPage.tsxdeleted file mode 100644index 908cd80f..00000000--- a/src/settings/SettingsPage.tsx+++ /dev/null@@ -1,277 +0,0 @@-import EditIcon from '@mui/icons-material/Edit';-import VisibilityIcon from '@mui/icons-material/Visibility';-import {- Button,- Card,- CardActions,- CardContent,- Container,- Stack,- Tooltip,- Typography,-} from '@mui/material';-import { useState } from 'react';-import {- Form,- Labeled,- TextField,- TextInput,- useDataProvider,- useGetIdentity,- useGetOne,- useNotify,- useRecordContext,-} from 'react-admin';-import { useFormState } from 'react-hook-form';-import ImageEditorField from '../misc/ImageEditorField';-import { CrmDataProvider } from '../providers/types';-import { Sale, SalesFormData } from '../types';-import { useMutation } from '@tanstack/react-query';-import ContentCopyIcon from '@mui/icons-material/ContentCopy';--export const SettingsPage = () => {- const [isEditMode, setEditMode] = useState(false);- const { identity, refetch: refetchIdentity } = useGetIdentity();- const { data, refetch: refetchUser } = useGetOne('sales', {- id: identity?.id,- });- const notify = useNotify();- const dataProvider = useDataProvider<CrmDataProvider>();-- const { mutate } = useMutation({- mutationKey: ['signup'],- mutationFn: async (data: SalesFormData) => {- if (!identity) {- throw new Error('Record not found');- }- return dataProvider.salesUpdate(identity.id, data);- },- onSuccess: () => {- refetchIdentity();- refetchUser();- setEditMode(false);- notify('Your profile has been updated');- },- onError: _ => {- notify('An error occurred. Please try again', {- type: 'error',- });- },- });-- if (!identity) return null;-- const handleOnSubmit = async (values: any) => {- mutate(values);- };-- return (- <Container maxWidth="sm" sx={{ mt: 4 }}>- <Form onSubmit={handleOnSubmit} record={data}>- <SettingsForm- isEditMode={isEditMode}- setEditMode={setEditMode}- />- </Form>- </Container>- );-};--const SettingsForm = ({- isEditMode,- setEditMode,-}: {- isEditMode: boolean;- setEditMode: (value: boolean) => void;-}) => {- const notify = useNotify();- const record = useRecordContext<Sale>();- const { identity, refetch } = useGetIdentity();- const { isDirty } = useFormState();- const dataProvider = useDataProvider<CrmDataProvider>();-- const { mutate: updatePassword } = useMutation({- mutationKey: ['updatePassword'],- mutationFn: async () => {- if (!identity) {- throw new Error('Record not found');- }- return dataProvider.updatePassword(identity.id);- },- onSuccess: () => {- notify(- 'A reset password email has been sent to your email address'- );- },- onError: e => {- notify(`${e}`, {- type: 'error',- });- },- });-- const { mutate: mutateSale } = useMutation({- mutationKey: ['signup'],- mutationFn: async (data: SalesFormData) => {- if (!record) {- throw new Error('Record not found');- }- return dataProvider.salesUpdate(record.id, data);- },- onSuccess: () => {- refetch();- notify('Your profile has been updated');- },- onError: () => {- notify('An error occurred. Please try again.');- },- });- if (!identity) return null;-- const handleClickOpenPasswordChange = () => {- updatePassword();- };-- const handleAvatarUpdate = async (values: any) => {- mutateSale(values);- };-- return (- <Stack gap={4}>- <Card>- <CardContent>- <Stack- mb={2}- direction="row"- justifyContent="space-between"- >- <Typography variant="h5" color="textSecondary">- My info- </Typography>- </Stack>- <Stack gap={2} mb={2}>- <ImageEditorField- source="avatar"- type="avatar"- onSave={handleAvatarUpdate}- linkPosition="right"- />- <TextRender- source="first_name"- isEditMode={isEditMode}- />- <TextRender- source="last_name"- isEditMode={isEditMode}- />- <TextRender source="email" isEditMode={isEditMode} />- </Stack>- {!isEditMode && (- <>- <Button- variant="outlined"- onClick={handleClickOpenPasswordChange}- >- Change password- </Button>- </>- )}- </CardContent>-- <CardActions- sx={{- paddingX: 2,- background: theme => theme.palette.background.default,- justifyContent: isEditMode- ? 'space-between'- : 'flex-end',- }}- >- {isEditMode && (- <Button- variant="contained"- type="submit"- disabled={!isDirty}- hidden={isEditMode}- >- Save- </Button>- )}- <Button- variant="text"- size="small"- startIcon={- isEditMode ? <VisibilityIcon /> : <EditIcon />- }- onClick={() => setEditMode(!isEditMode)}- >- {isEditMode ? 'Show' : 'Edit'}- </Button>- </CardActions>- </Card>- {import.meta.env.VITE_INBOUND_EMAIL && (- <Card>- <CardContent>- <Stack gap={2} justifyContent="space-between">- <Typography variant="h5" color="textSecondary">- Inbound email- </Typography>- <Typography variant="body2" color="textSecondary">- You can start sending emails to your server's- inbound email address, e.g. by adding it to the- <b> Cc: </b> field. Atomic CRM will process the- emails and add notes to the corresponding- contacts.- </Typography>- <CopyPaste />- </Stack>- </CardContent>- </Card>- )}- </Stack>- );-};--const TextRender = ({- source,- isEditMode,-}: {- source: string;- isEditMode: boolean;-}) => {- if (isEditMode) {- return <TextInput source={source} helperText={false} />;- }- return (- <Labeled sx={{ mb: 0 }}>- <TextField source={source} />- </Labeled>- );-};--const CopyPaste = () => {- const [copied, setCopied] = useState(false);- const handleCopy = () => {- setCopied(true);- navigator.clipboard.writeText(import.meta.env.VITE_INBOUND_EMAIL);- setTimeout(() => {- setCopied(false);- }, 1500);- };- return (- <Tooltip placement="top" title={copied ? 'Copied!' : 'Copy'}>- <Button- onClick={handleCopy}- sx={{- textTransform: 'none',- justifyContent: 'space-between',- }}- endIcon={<ContentCopyIcon />}- >- {import.meta.env.VITE_INBOUND_EMAIL}- </Button>- </Tooltip>- );-};--SettingsPage.path = '/settings';diff --git a/src/tags/RoundButton.tsx b/src/tags/RoundButton.tsxdeleted file mode 100644index ebb9020d..00000000--- a/src/tags/RoundButton.tsx+++ /dev/null@@ -1,18 +0,0 @@-import { Box } from '@mui/material';--export const RoundButton = ({ color, handleClick, selected }: any) => (- <Box- component="button"- type="button"- sx={{- bgcolor: color,- width: 30,- height: 30,- borderRadius: 15,- border: selected ? '2px solid grey' : 'none',- display: 'inline-block',- margin: 1,- }}- onClick={handleClick}- />-);diff --git a/src/tags/TagChip.tsx b/src/tags/TagChip.tsxdeleted file mode 100644index a0bf8b01..00000000--- a/src/tags/TagChip.tsx+++ /dev/null@@ -1,36 +0,0 @@-import { Chip } from '@mui/material';-import { useState } from 'react';-import { Tag } from '../types';-import { TagEditModal } from './TagEditModal';--type TagChipProps = {- tag: Tag;-- onUnlink: () => Promise<void>;-};--export function TagChip({ tag, onUnlink }: TagChipProps) {- const [open, setOpen] = useState(false);-- const handleClose = () => {- setOpen(false);- };-- const handleClick = () => {- setOpen(true);- };-- return (- <>- <Chip- size="small"- variant="outlined"- onDelete={onUnlink}- label={tag.name}- style={{ backgroundColor: tag.color, border: 0 }}- onClick={handleClick}- />- <TagEditModal tag={tag} open={open} onClose={handleClose} />- </>- );-}diff --git a/src/tags/TagCreateModal.tsx b/src/tags/TagCreateModal.tsxdeleted file mode 100644index d7a36b65..00000000--- a/src/tags/TagCreateModal.tsx+++ /dev/null@@ -1,38 +0,0 @@-import { useCreate } from 'react-admin';-import { Tag } from '../types';-import { TagDialog } from './TagDialog';--type TagCreateModalProps = {- open: boolean;- onClose(): void;- onSuccess?(tag: Tag): Promise<void>;-};--export function TagCreateModal({- open,- onClose,- onSuccess,-}: TagCreateModalProps) {- const [create] = useCreate<Tag>();-- const handleCreateTag = async (data: Pick<Tag, 'name' | 'color'>) => {- await create(- 'tags',- { data },- {- onSuccess: async tag => {- await onSuccess?.(tag);- },- }- );- };-- return (- <TagDialog- open={open}- title="Create a new tag"- onClose={onClose}- onSubmit={handleCreateTag}- />- );-}diff --git a/src/tags/TagDialog.tsx b/src/tags/TagDialog.tsxdeleted file mode 100644index eed8bb08..00000000--- a/src/tags/TagDialog.tsx+++ /dev/null@@ -1,120 +0,0 @@-import ContentSave from '@mui/icons-material/Save';-import {- Box,- Button,- Dialog,- DialogActions,- DialogContent,- DialogTitle,- TextField,-} from '@mui/material';-import { FormEvent, useEffect, useState } from 'react';-import { Toolbar } from 'react-admin';-import { DialogCloseButton } from '../misc/DialogCloseButton';-import { Tag } from '../types';-import { colors } from './colors';-import { RoundButton } from './RoundButton';--type TagDialogProps = {- open: boolean;- tag?: Pick<Tag, 'name' | 'color'>;- title: string;- onSubmit(tag: Pick<Tag, 'name' | 'color'>): Promise<void>;- onClose(): void;-};--export function TagDialog({- open,- tag,- title,- onClose,- onSubmit,-}: TagDialogProps) {- const [newTagName, setNewTagName] = useState('');- const [newTagColor, setNewTagColor] = useState(colors[0]);- const [disabled, setDisabled] = useState(false);-- const handleNewTagNameChange = (- event: React.ChangeEvent<HTMLInputElement>- ) => {- setNewTagName(event.target.value);- };-- const handleClose = () => {- setDisabled(false);- onClose();- };-- const handleSubmit = async (event: FormEvent<HTMLFormElement>) => {- event.preventDefault();-- await onSubmit({ name: newTagName, color: newTagColor });-- setDisabled(true);- setNewTagName('');- setNewTagColor(colors[0]);-- handleClose();- };-- useEffect(() => {- setNewTagName(tag?.name ?? '');- setNewTagColor(tag?.color ?? colors[0]);- }, [tag]);-- return (- <Dialog- open={open}- onClose={handleClose}- aria-labelledby="form-dialog-title"- >- <form onSubmit={handleSubmit}>- <DialogCloseButton onClose={handleClose} />- <DialogTitle id="form-dialog-title">{title}</DialogTitle>- <DialogContent>- <TextField- autoFocus- label="Tag name"- value={newTagName}- onChange={handleNewTagNameChange}- sx={{ mt: 1 }}- />- <Box display="flex" flexWrap="wrap" width={230} mt={2}>- {colors.map(color => (- <RoundButton- key={color}- color={color}- selected={color === newTagColor}- handleClick={() => {- setNewTagColor(color);- }}- />- ))}- </Box>- </DialogContent>- <DialogActions- sx={{- justifyContent: 'flex-start',- p: 0,- }}- >- <Toolbar- sx={{- width: '100%',- }}- >- <Button- type="submit"- color="primary"- disabled={disabled}- variant="contained"- startIcon={<ContentSave />}- >- Save- </Button>- </Toolbar>- </DialogActions>- </form>- </Dialog>- );-}diff --git a/src/tags/TagEditModal.tsx b/src/tags/TagEditModal.tsxdeleted file mode 100644index eb2ab465..00000000--- a/src/tags/TagEditModal.tsx+++ /dev/null@@ -1,41 +0,0 @@-import { useUpdate } from 'react-admin';-import { Tag } from '../types';-import { TagDialog } from './TagDialog';--type TagEditModalProps = {- tag: Tag;- open: boolean;- onClose(): void;- onSuccess?(tag: Tag): Promise<void>;-};--export function TagEditModal({- tag,- open,- onClose,- onSuccess,-}: TagEditModalProps) {- const [update] = useUpdate<Tag>();-- const handleEditTag = async (data: Pick<Tag, 'name' | 'color'>) => {- await update(- 'tags',- { id: tag.id, data, previousData: tag },- {- onSuccess: async tag => {- await onSuccess?.(tag);- },- }- );- };-- return (- <TagDialog- open={open}- title="Edit tag"- onClose={onClose}- onSubmit={handleEditTag}- tag={tag}- />- );-}diff --git a/src/tags/colors.ts b/src/tags/colors.tsdeleted file mode 100644index a43ebe66..00000000--- a/src/tags/colors.ts+++ /dev/null@@ -1,12 +0,0 @@-export const colors = [- '#eddcd2',- '#fff1e6',- '#fde2e4',- '#fad2e1',- '#c5dedd',- '#dbe7e4',- '#f0efeb',- '#d6e2e9',- '#bcd4e6',- '#99c1de',-];diff --git a/src/tasks/AddTask.tsx b/src/tasks/AddTask.tsxdeleted file mode 100644index 8f5aa71e..00000000--- a/src/tasks/AddTask.tsx+++ /dev/null@@ -1,200 +0,0 @@-import ControlPointIcon from '@mui/icons-material/ControlPoint';-import {- Box,- Chip,- Dialog,- DialogActions,- DialogContent,- DialogTitle,- IconButton,- Stack,- Tooltip,-} from '@mui/material';-import { useState } from 'react';-import {- AutocompleteInput,- CreateBase,- DateInput,- Form,- RecordRepresentation,- ReferenceInput,- SaveButton,- SelectInput,- TextInput,- Toolbar,- required,- useDataProvider,- useGetIdentity,- useNotify,- useRecordContext,- useUpdate,-} from 'react-admin';-import { Link } from 'react-router-dom';-import { contactInputText, contactOptionText } from '../misc/ContactOption';-import { DialogCloseButton } from '../misc/DialogCloseButton';-import { useConfigurationContext } from '../root/ConfigurationContext';--export const AddTask = ({- selectContact,- display = 'chip',-}: {- selectContact?: boolean;- display?: 'chip' | 'icon';-}) => {- const { identity } = useGetIdentity();- const dataProvider = useDataProvider();- const [update] = useUpdate();- const notify = useNotify();- const { taskTypes } = useConfigurationContext();- const contact = useRecordContext();- const [open, setOpen] = useState(false);- const handleOpen = () => {- setOpen(true);- };-- const handleSuccess = async (data: any) => {- setOpen(false);- const contact = await dataProvider.getOne('contacts', {- id: data.contact_id,- });- if (!contact.data) return;-- await update('contacts', {- id: contact.data.id,- data: { last_seen: new Date().toISOString() },- previousData: contact.data,- });-- notify('Task added');- };-- if (!identity) return null;-- return (- <>- {display === 'icon' ? (- <Tooltip title="Create task">- <IconButton- size="small"- sx={{- color: 'text.secondary',- ml: 'auto',- }}- component={Link}- to={'#'}- onClick={handleOpen}- >- <ControlPointIcon fontSize="inherit" color="primary" />- </IconButton>- </Tooltip>- ) : (- <Box mt={2} mb={2}>- <Chip- icon={<ControlPointIcon />}- size="small"- variant="outlined"- onClick={handleOpen}- label="Add task"- color="primary"- />- </Box>- )}-- <CreateBase- resource="tasks"- record={{- type: 'None',- contact_id: contact?.id,- due_date: new Date().toISOString().slice(0, 10),- sales_id: identity.id,- }}- transform={data => {- const dueDate = new Date(data.due_date);- dueDate.setHours(0, 0, 0, 0);- data.due_date = dueDate.toISOString();- return {- ...data,- due_date: new Date(data.due_date).toISOString(),- };- }}- mutationOptions={{ onSuccess: handleSuccess }}- >- <Dialog- open={open}- onClose={() => setOpen(false)}- aria-labelledby="form-dialog-title"- fullWidth- disableRestoreFocus- maxWidth="sm"- >- <Form>- <DialogCloseButton onClose={() => setOpen(false)} />- <DialogTitle id="form-dialog-title">- {!selectContact- ? 'Create a new task for '- : 'Create a new task'}- {!selectContact && (- <RecordRepresentation- record={contact}- resource="contacts"- />- )}- </DialogTitle>- <DialogContent>- <Stack gap={2}>- <TextInput- autoFocus- source="text"- label="Description"- validate={required()}- multiline- sx={{ margin: 0 }}- helperText={false}- />- {selectContact && (- <ReferenceInput- source="contact_id"- reference="contacts_summary"- >- <AutocompleteInput- label="Contact"- optionText={contactOptionText}- inputText={contactInputText}- helperText={false}- validate={required()}- TextFieldProps={{- margin: 'none',- }}- />- </ReferenceInput>- )}-- <Stack direction="row" spacing={1}>- <DateInput- source="due_date"- validate={required()}- helperText={false}- />- <SelectInput- source="type"- validate={required()}- choices={taskTypes.map(type => ({- id: type,- name: type,- }))}- helperText={false}- />- </Stack>- </Stack>- </DialogContent>- <DialogActions sx={{ p: 0 }}>- <Toolbar sx={{ width: '100%' }}>- <SaveButton />- </Toolbar>- </DialogActions>- </Form>- </Dialog>- </CreateBase>- </>- );-};diff --git a/src/tasks/Task.tsx b/src/tasks/Task.tsxdeleted file mode 100644index b1d14832..00000000--- a/src/tasks/Task.tsx+++ /dev/null@@ -1,209 +0,0 @@-import MoreVertIcon from '@mui/icons-material/MoreVert';-import {- Checkbox,- IconButton,- ListItem,- ListItemButton,- ListItemIcon,- ListItemText,- Menu,- MenuItem,- Typography,-} from '@mui/material';-import * as React from 'react';-import { MouseEvent, useState } from 'react';-import {- DateField,- ReferenceField,- useDeleteWithUndoController,- useUpdate,-} from 'react-admin';-import { TaskEdit } from './TaskEdit';--export const Task = ({- task,- showContact,-}: {- task: any;- showContact?: boolean;-}) => {- const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);- const [openEdit, setOpenEdit] = useState(false);-- const open = Boolean(anchorEl);- const handleClick = (event: MouseEvent<HTMLButtonElement>) => {- setAnchorEl(event.currentTarget);- };- const handleCloseMenu = () => {- setAnchorEl(null);- };-- const handleCloseEdit = () => {- setOpenEdit(false);- };-- const [update, { isPending: isUpdatePending }] = useUpdate();- const { handleDelete } = useDeleteWithUndoController({- record: task,- redirect: false,- });-- const handleEdit = () => {- setAnchorEl(null);- setOpenEdit(true);- };-- const handleCheck = () => () => {- update('tasks', {- id: task.id,- data: {- done_date: task.done_date ? null : new Date().toISOString(),- },- previousData: task,- });- };- const labelId = `checkbox-list-label-${task.id}`;- return (- <>- <ListItem- secondaryAction={- <>- <IconButton- edge="end"- aria-label="task actions"- aria-controls={- open ? `task-${task.id}-menu` : undefined- }- onClick={handleClick}- aria-haspopup="true"- aria-expanded={open ? 'true' : undefined}- size="small"- >- <MoreVertIcon />- </IconButton>- <Menu- id={`task-${task.id}-menu`}- anchorEl={anchorEl}- open={open}- onClose={handleCloseMenu}- MenuListProps={{- 'aria-labelledby': 'basic-button',- }}- >- <MenuItem- onClick={() => {- update('tasks', {- id: task.id,- data: {- due_date: new Date(- Date.now() + 24 * 60 * 60 * 1000- )- .toISOString()- .slice(0, 10),- },- previousData: task,- });- handleCloseMenu();- }}- >- Postpone to tomorrow- </MenuItem>- <MenuItem- onClick={() => {- update('tasks', {- id: task.id,- data: {- due_date: new Date(- Date.now() +- 7 * 24 * 60 * 60 * 1000- )- .toISOString()- .slice(0, 10),- },- previousData: task,- });- handleCloseMenu();- }}- >- Postpone to next week- </MenuItem>- <MenuItem onClick={handleEdit}>Edit</MenuItem>- <MenuItem onClick={handleDelete}>Delete</MenuItem>- </Menu>- </>- }- disableGutters- sx={{ pr: 3 }}- >- <ListItemButton- role={undefined}- onClick={handleCheck()}- dense- disabled={isUpdatePending}- sx={{- pl: 0,- pr: '0!important',- pt: 0,- pb: 0,- alignItems: 'flex-start',- }}- >- <ListItemIcon sx={{ minWidth: 'auto' }}>- <Checkbox- edge="start"- checked={!!task.done_date}- tabIndex={-1}- disableRipple- inputProps={{ 'aria-labelledby': labelId }}- sx={{ pt: 0.3 }}- />- </ListItemIcon>- <ListItemText- sx={{- textDecoration: !!task.done_date- ? 'line-through'- : 'none',- }}- id={labelId}- >- {task.type && task.type !== 'None' && (- <>- <Typography component="strong" variant="body2">- {task.type}- </Typography>- - </>- )}- {task.text}- <Typography- variant="body2"- color="textSecondary"- component="div"- >- due <DateField source="due_date" record={task} />- {showContact && (- <>- (Re:{' '}- <ReferenceField- source="contact_id"- reference="contacts"- record={task}- link="show"- />- )- </>- )}- </Typography>- </ListItemText>- </ListItemButton>- </ListItem>-- {/* This part is for editing the Task directly via a Dialog */}- <TaskEdit- taskId={task.id}- open={openEdit}- close={handleCloseEdit}- />- </>- );-};diff --git a/src/tasks/TaskEdit.tsx b/src/tasks/TaskEdit.tsxdeleted file mode 100644index 4108e0a5..00000000--- a/src/tasks/TaskEdit.tsx+++ /dev/null@@ -1,115 +0,0 @@-import {- Dialog,- DialogActions,- DialogContent,- DialogTitle,- Stack,-} from '@mui/material';-import * as React from 'react';-import {- DateInput,- DeleteButton,- EditBase,- Form,- required,- SaveButton,- SelectInput,- TextInput,- Toolbar,- useNotify,-} from 'react-admin';-import { useConfigurationContext } from '../root/ConfigurationContext';-import { DialogCloseButton } from '../misc/DialogCloseButton';--export const TaskEdit = ({- open,- close,- taskId,-}: {- taskId: string;- open: boolean;- close: () => void;-}) => {- const { taskTypes } = useConfigurationContext();- const notify = useNotify();- return (- <Dialog- open={open}- onClose={close}- fullWidth- disableRestoreFocus- maxWidth="sm"- >- <EditBase- id={taskId}- resource="tasks"- sx={{ '& .RaCreate-main': { mt: 0 } }}- mutationOptions={{- onSuccess: () => {- close();- notify('Task updated', {- type: 'info',- undoable: true,- });- },- }}- redirect={false}- >- <Form>- <DialogCloseButton onClose={close} />- <DialogTitle id="form-dialog-title">Edit task</DialogTitle>- <DialogContent>- <TextInput- autoFocus- source="text"- label="Description"- validate={required()}- multiline- helperText={false}- />- <Stack direction="row" spacing={1} mt={2}>- <DateInput- source="due_date"- validate={required()}- helperText={false}- />- <SelectInput- source="type"- validate={required()}- choices={taskTypes.map(type => ({- id: type,- name: type,- }))}- helperText={false}- />- </Stack>- </DialogContent>- <DialogActions sx={{ p: 0 }}>- <Toolbar- sx={{- width: '100%',- justifyContent: 'space-between',- gap: 1,- }}- >- <SaveButton label="Save" />- <DeleteButton- label="Delete"- mutationOptions={{- onSuccess: () => {- close();- notify('Task deleted', {- type: 'info',- undoable: true,- });- },- }}- redirect={false}- />- </Toolbar>- </DialogActions>- </Form>- </EditBase>- </Dialog>- );-};diff --git a/src/tasks/TasksIterator.tsx b/src/tasks/TasksIterator.tsxdeleted file mode 100644index 004baa77..00000000--- a/src/tasks/TasksIterator.tsx+++ /dev/null@@ -1,35 +0,0 @@-import * as React from 'react';-import { useListContext } from 'react-admin';-import { isAfter } from 'date-fns';-import { List, SxProps } from '@mui/material';--import { Task } from './Task';--export const TasksIterator = ({- showContact,- sx,-}: {- showContact?: boolean;- sx?: SxProps;-}) => {- const { data, error, isPending } = useListContext();- if (isPending || error || data.length === 0) return null;-- // Keep only tasks that are not done or done less than 5 minutes ago- const tasks = data.filter(- task =>- !task.done_date ||- isAfter(- new Date(task.done_date),- new Date(Date.now() - 5 * 60 * 1000)- )- );-- return (- <List dense sx={sx}>- {tasks.map(task => (- <Task task={task} showContact={showContact} key={task.id} />- ))}- </List>- );-};diff --git a/src/tests/supabase/functions/postmark.spec.ts b/src/tests/supabase/functions/postmark.spec.tsdeleted file mode 100644index 8b021444..00000000--- a/src/tests/supabase/functions/postmark.spec.ts+++ /dev/null@@ -1,176 +0,0 @@-import { extractMailContactData } from '../../../../supabase/functions/postmark/extractMailContactData.js';-import { getExpectedAuthorization } from '../../../../supabase/functions/postmark/getExpectedAuthorization.js';--describe('getExpectedAuthorization', () => {- it('should return the expected Authorization header from provided user and password', () => {- const result = getExpectedAuthorization('testuser', 'testpwd');- expect(result).toBe('Basic dGVzdHVzZXI6dGVzdHB3ZA==');- });-});--describe('extractMailContactData', () => {- it('should extract data from a single mail contact with a full name', () => {- const result = extractMailContactData([- {- Email: '[email protected]',- Name: 'Firstname Lastname',- },- ]);- expect(result).toEqual([- {- firstName: 'Firstname',- lastName: 'Lastname',- email: '[email protected]',- domain: 'marmelab.com',- },- ]);- });-- it('should support extra recipients', () => {- const result = extractMailContactData([- {- Email: '[email protected]',- Name: 'Firstname Lastname',- },- {- Email: '[email protected]',- Name: 'John Doe',- },- ]);- expect(result).toEqual([- {- firstName: 'Firstname',- lastName: 'Lastname',- email: '[email protected]',- domain: 'marmelab.com',- },- {- firstName: 'John',- lastName: 'Doe',- email: '[email protected]',- domain: 'marmelab.com',- },- ]);- });-- it('should use a single word name as last name', () => {- const result = extractMailContactData([- {- Email: '[email protected]',- Name: 'Name',- },- ]);- expect(result).toEqual([- {- firstName: '',- lastName: 'Name',- email: '[email protected]',- domain: 'marmelab.com',- },- ]);- });-- it('should support multi word last name', () => {- const result = extractMailContactData([- {- Email: '[email protected]',- Name: 'Multi Word Name',- },- ]);- expect(result).toEqual([- {- firstName: 'Multi',- lastName: 'Word Name',- email: '[email protected]',- domain: 'marmelab.com',- },- ]);- });-- it('should support multiple @ in email', () => {- // Because it is allowed by https://www.rfc-editor.org/rfc/rfc5322- const result = extractMailContactData([- {- Email: '"john@doe"@marmelab.com',- Name: 'John Doe',- },- ]);- expect(result).toEqual([- {- firstName: 'John',- lastName: 'Doe',- email: '"john@doe"@marmelab.com',- domain: 'marmelab.com',- },- ]);- });-- it('should use first part of email when Name is empty', () => {- const result = extractMailContactData([- {- Email: '[email protected]',- Name: '',- },- ]);- expect(result).toEqual([- {- firstName: 'john',- lastName: 'doe',- email: '[email protected]',- domain: 'marmelab.com',- },- ]);- });-- it('should use first part of email when Name is empty and support single word', () => {- const result = extractMailContactData([- {- Email: '[email protected]',- Name: '',- },- ]);- expect(result).toEqual([- {- firstName: '',- lastName: 'john',- email: '[email protected]',- domain: 'marmelab.com',- },- ]);- });-- it('should use first part of email when Name is empty and support multiple words', () => {- const result = extractMailContactData([- {- Email: '[email protected]',- Name: '',- },- ]);- expect(result).toEqual([- {- firstName: 'john',- lastName: 'doe multi',- email: '[email protected]',- domain: 'marmelab.com',- },- ]);- });-- it('should support empty Name and multiple @ in email', () => {- // Because it is allowed by https://www.rfc-editor.org/rfc/rfc5322- const result = extractMailContactData([- {- Email: '"john@doe"@marmelab.com',- Name: '',- },- ]);- expect(result).toEqual([- {- firstName: '"john',- lastName: 'doe"',- email: '"john@doe"@marmelab.com',- domain: 'marmelab.com',- },- ]);- });-});diff --git a/src/types.ts b/src/types.tsdeleted file mode 100644index 3d80739d..00000000--- a/src/types.ts+++ /dev/null@@ -1,226 +0,0 @@-import { SvgIconComponent } from '@mui/icons-material';-import { Identifier, RaRecord } from 'react-admin';-import {- COMPANY_CREATED,- CONTACT_CREATED,- CONTACT_NOTE_CREATED,- DEAL_CREATED,- DEAL_NOTE_CREATED,-} from './consts';--export type SignUpData = {- email: string;- password: string;- first_name: string;- last_name: string;-};--export type SalesFormData = {- avatar: string;- email: string;- password: string;- first_name: string;- last_name: string;- administrator: boolean;- disabled: boolean;-};--export type Sale = {- first_name: string;- last_name: string;- administrator: boolean;- avatar?: RAFile;- disabled?: boolean;- user_id: string;-- /**- * This is a copy of the user's email, to make it easier to handle by react admin- * DO NOT UPDATE this field directly, it should be updated by the backend- */- email: string;-- /**- * This is used by the fake rest provider to store the password- * DO NOT USE this field in your code besides the fake rest provider- * @deprecated- */- password?: string;-} & Pick<RaRecord, 'id'>;--export type Company = {- name: string;- logo: RAFile;- sector: string;- size: 1 | 10 | 50 | 250 | 500;- linkedin_url: string;- website: string;- phone_number: string;- address: string;- zipcode: string;- city: string;- stateAbbr: string;- sales_id: Identifier;- created_at: string;- description: string;- revenue: string;- tax_identifier: string;- country: string;- context_links?: string[];- nb_contacts?: number;- nb_deals?: number;-} & Pick<RaRecord, 'id'>;--export type EmailAndType = {- email: string;- type: 'Work' | 'Home' | 'Other';-};--export type PhoneNumberAndType = {- number: string;- type: 'Work' | 'Home' | 'Other';-};--export type Contact = {- first_name: string;- last_name: string;- title: string;- company_id: Identifier;- email_jsonb: EmailAndType[];- avatar?: Partial<RAFile>;- linkedin_url?: string | null;- first_seen: string;- last_seen: string;- has_newsletter: Boolean;- tags: Identifier[];- gender: string;- sales_id: Identifier;- status: string;- background: string;- phone_jsonb: PhoneNumberAndType[];-- nb_tasks?: number;- company_name?: string;-} & Pick<RaRecord, 'id'>;--export type ContactNote = {- contact_id: Identifier;- text: string;- date: string;- sales_id: Identifier;- status: string;- attachments?: AttachmentNote[];-} & Pick<RaRecord, 'id'>;--export type Deal = {- name: string;- company_id: Identifier;- contact_ids: Identifier[];- category: string;- stage: string;- description: string;- amount: number;- created_at: string;- updated_at: string;- archived_at?: string;- expected_closing_date: string;- sales_id: Identifier;- index: number;-} & Pick<RaRecord, 'id'>;--export type DealNote = {- deal_id: Identifier;- text: string;- date: string;- sales_id: Identifier;- attachments?: AttachmentNote[];-- // This is defined for compatibility with `ContactNote`- status?: undefined;-} & Pick<RaRecord, 'id'>;--export type Tag = {- name: string;- color: string;-} & Pick<RaRecord, 'id'>;--export type Task = {- contact_id: Identifier;- type: string;- text: string;- due_date: string;- done_date?: string | null;- sales_id?: Identifier;-} & Pick<RaRecord, 'id'>;--export type ActivityCompanyCreated = {- type: typeof COMPANY_CREATED;- company_id: Identifier;- company: Company;- sales_id: Identifier;- date: string;-};--export type ActivityContactCreated = {- type: typeof CONTACT_CREATED;- company_id: Identifier;- sales_id?: Identifier;- contact: Contact;- date: string;-};--export type ActivityContactNoteCreated = {- type: typeof CONTACT_NOTE_CREATED;- sales_id?: Identifier;- contactNote: ContactNote;- date: string;-};--export type ActivityDealCreated = {- type: typeof DEAL_CREATED;- company_id: Identifier;- sales_id?: Identifier;- deal: Deal;- date: string;-};--export type ActivityDealNoteCreated = {- type: typeof DEAL_NOTE_CREATED;- sales_id?: Identifier;- dealNote: DealNote;- date: string;-};--export type Activity = RaRecord &- (- | ActivityCompanyCreated- | ActivityContactCreated- | ActivityContactNoteCreated- | ActivityDealCreated- | ActivityDealNoteCreated- );--export interface RAFile {- src: string;- title: string;- path?: string;- rawFile: File;- type?: string;-}--export type AttachmentNote = RAFile;-export interface DealStage {- value: string;- label: string;-}--export interface NoteStatus {- value: string;- label: string;- color: string;-}--export interface ContactGender {- value: string;- label: string;- icon: SvgIconComponent;-}diff --git a/tsconfig.app.json b/tsconfig.app.jsonnew file mode 100644index 00000000..f1eb99be--- /dev/null+++ b/tsconfig.app.json@@ -0,0 +1,36 @@+{+ "compilerOptions": {+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",+ "target": "ES2022",+ "useDefineForClassFields": true,+ "lib": ["ES2022", "DOM", "DOM.Iterable"],+ "module": "ESNext",+ "skipLibCheck": true,++ /* Bundler mode */+ "esModuleInterop": true,+ "moduleResolution": "bundler",+ "allowImportingTsExtensions": true,+ "verbatimModuleSyntax": false,+ "moduleDetection": "force",+ "noEmit": true,+ "jsx": "react-jsx",++ /* Linting */+ "strict": true,+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "erasableSyntaxOnly": false,+ "noFallthroughCasesInSwitch": true,+ "noUncheckedSideEffectImports": true,++ "types": ["vitest/globals", "faker"],++ // Shadcn+ "baseUrl": ".",+ "paths": {+ "@/*": ["./src/*"]+ }+ },+ "include": ["src"]+}diff --git a/tsconfig.json b/tsconfig.jsonindex a226bfb5..e6e90f88 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -1,21 +1,15 @@{- "compilerOptions": {- "target": "ES2019",- "lib": ["dom", "dom.iterable", "esnext"],- "allowJs": true,- "skipLibCheck": true,- "esModuleInterop": true,- "allowSyntheticDefaultImports": true,- "strict": true,- "forceConsistentCasingInFileNames": true,- "noFallthroughCasesInSwitch": true,- "module": "esnext",- "moduleResolution": "node",- "resolveJsonModule": true,- "isolatedModules": true,- "noEmit": true,- "jsx": "react-jsx"- },- "include": ["src"],- "references": [{ "path": "./tsconfig.node.json" }]+ "files": [],+ "references": [+ { "path": "./tsconfig.app.json" },+ { "path": "./tsconfig.node.json" }+ ],+ "compilerOptions": {+ "esModuleInterop": true,+ // Shadcn+ "baseUrl": ".",+ "paths": {+ "@/*": ["./src/*"]+ }+ }}diff --git a/tsconfig.node.json b/tsconfig.node.jsonindex 93790432..9f91d30a 100644--- a/tsconfig.node.json+++ b/tsconfig.node.json@@ -1,10 +1,27 @@{- "compilerOptions": {- "composite": true,- "module": "ESNext",- "moduleResolution": "Node",- "allowSyntheticDefaultImports": true,- "types": ["vitest/globals"]- },- "include": ["vite.config.ts"]+ "compilerOptions": {+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",+ "target": "ES2023",+ "lib": ["ES2023"],+ "module": "nodenext",+ "skipLibCheck": true,++ /* Bundler mode */+ "moduleResolution": "nodenext",+ "allowImportingTsExtensions": true,+ "verbatimModuleSyntax": true,+ "moduleDetection": "force",+ "noEmit": true,++ /* Linting */+ "strict": true,+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "erasableSyntaxOnly": true,+ "noFallthroughCasesInSwitch": true,+ "noUncheckedSideEffectImports": true,++ "types": ["vitest/globals", "faker"]+ },+ "include": ["vite.config.ts"]}diff --git a/vite.config.ts b/vite.config.tsindex 01ab5658..7222239a 100644--- a/vite.config.ts+++ b/vite.config.ts@@ -1,85 +1,19 @@+import path from 'node:path';import { defineConfig } from 'vite';+import tailwindcss from '@tailwindcss/vite';import react from '@vitejs/plugin-react';import { visualizer } from 'rollup-plugin-visualizer';-import path from 'node:path';--const alias = [- {- find: 'react-admin',- replacement: path.resolve(__dirname, './node_modules/react-admin/src'),- },- {- find: 'ra-core',- replacement: path.resolve(__dirname, './node_modules/ra-core/src'),- },- {- find: 'ra-i18n-polyglot',- replacement: path.resolve(- __dirname,- './node_modules/ra-i18n-polyglot/src'- ),- },- {- find: 'ra-language-english',- replacement: path.resolve(- __dirname,- './node_modules/ra-language-english/src'- ),- },- {- find: 'ra-ui-materialui',- replacement: path.resolve(- __dirname,- './node_modules/ra-ui-materialui/src'- ),- },- {- find: 'ra-data-fakerest',- replacement: path.resolve(- __dirname,- './node_modules/ra-data-fakerest/src'- ),- },- {- find: 'ra-supabase-core',- replacement: path.resolve(- __dirname,- './node_modules/ra-supabase-core/src'- ),- },- {- find: 'ra-supabase-ui-materialui',- replacement: path.resolve(- __dirname,- './node_modules/ra-supabase-ui-materialui/src'- ),- },- {- find: 'ra-supabase-language-english',- replacement: path.resolve(- __dirname,- './node_modules/ra-supabase-language-english/src'- ),- },- {- find: 'ra-supabase',- replacement: path.resolve(__dirname, './node_modules/ra-supabase/src'),- },- // add any other react-admin packages you have-];// https://vitejs.dev/config/export default defineConfig({plugins: [react(),+ tailwindcss(),visualizer({open: process.env.NODE_ENV !== 'CI',filename: './dist/stats.html',}),],- define: {- 'process.env': process.env,- },base: './',esbuild: {keepNames: true,@@ -88,7 +22,9 @@ export default defineConfig({sourcemap: true,},resolve: {- alias,preserveSymlinks: true,+ alias: {+ '@': path.resolve(__dirname, './src'),+ },},});diff --git a/vite.lib.config.ts b/vite.lib.config.tsdeleted file mode 100644index d7ec5bf5..00000000--- a/vite.lib.config.ts+++ /dev/null@@ -1,34 +0,0 @@-import { defineConfig } from 'vite';-import react from '@vitejs/plugin-react';-import { visualizer } from 'rollup-plugin-visualizer';-import dts from 'vite-plugin-dts';--// https://vitejs.dev/config/-export default defineConfig({- plugins: [- react(),- visualizer({- open: process.env.NODE_ENV !== 'CI',- filename: './dist/stats.html',- }),- dts({ include: ['.'], entryRoot: '.', outDir: '../lib/types' }),- ],- define: {- 'process.env': process.env,- },- build: {- sourcemap: true,- outDir: '../lib',-- emptyOutDir: true,- lib: {- entry: './index.tsx',- fileName: 'index',- formats: ['es', 'cjs'],- },- },- resolve: {- preserveSymlinks: true,- },- root: './src',-});