diff --git a/examples/nextjs-app-router/package.json b/examples/nextjs-app-router/package.json index c426f22..d756adf 100644 --- a/examples/nextjs-app-router/package.json +++ b/examples/nextjs-app-router/package.json @@ -13,7 +13,7 @@ "autoprefixer": "10.4.14", "eslint": "8.40.0", "eslint-config-next": "13.4.1", - "next": "13.4.1", + "next": "14.0.4", "postcss": "8.4.23", "react": "18.2.0", "react-dom": "18.2.0", @@ -22,3 +22,4 @@ "use-shopping-cart": "workspace:3.2.0-alpha.1" } } + diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 729eb43..4372e5e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,10 +45,10 @@ importers: dependencies: '@docusaurus/core': specifier: 2.3.1 - version: 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) + version: 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) '@docusaurus/preset-classic': specifier: 2.3.1 - version: 2.3.1(@algolia/client-search@4.20.0)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(search-insights@2.11.0)(typescript@5.3.2) + version: 2.3.1(@algolia/client-search@4.20.0)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(search-insights@2.11.0)(typescript@4.9.5) '@mdx-js/react': specifier: ^1.6.22 version: 1.6.22(react@17.0.2) @@ -112,10 +112,10 @@ importers: version: 8.40.0 eslint-config-next: specifier: 13.4.1 - version: 13.4.1(eslint@8.40.0)(typescript@5.3.2) + version: 13.4.1(eslint@8.40.0)(typescript@4.9.5) next: - specifier: 13.4.1 - version: 13.4.1(react-dom@18.2.0)(react@18.2.0) + specifier: 14.0.4 + version: 14.0.4(react-dom@18.2.0)(react@18.2.0) postcss: specifier: 8.4.23 version: 8.4.23 @@ -3444,7 +3444,7 @@ packages: - '@algolia/client-search' dev: false - /@docusaurus/core@2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2): + /@docusaurus/core@2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5): resolution: {integrity: sha512-0Jd4jtizqnRAr7svWaBbbrCCN8mzBNd2xFLoT/IM7bGfFie5y58oz97KzXliwiLY3zWjqMXjQcuP1a5VgCv2JA==} engines: {node: '>=16.14'} hasBin: true @@ -3500,10 +3500,10 @@ packages: lodash: 4.17.21 mini-css-extract-plugin: 2.7.6(webpack@5.89.0) postcss: 8.4.31 - postcss-loader: 7.3.3(postcss@8.4.31)(typescript@5.3.2)(webpack@5.89.0) + postcss-loader: 7.3.3(postcss@8.4.31)(typescript@4.9.5)(webpack@5.89.0) prompts: 2.4.2 react: 17.0.2 - react-dev-utils: 12.0.1(eslint@8.54.0)(typescript@5.3.2)(webpack@5.89.0) + react-dev-utils: 12.0.1(eslint@8.54.0)(typescript@4.9.5)(webpack@5.89.0) react-dom: 17.0.2(react@17.0.2) react-helmet-async: 1.3.0(react-dom@17.0.2)(react@17.0.2) react-loadable: /@docusaurus/react-loadable@5.5.2(react@17.0.2) @@ -3620,14 +3620,14 @@ packages: - webpack-cli dev: false - /@docusaurus/plugin-content-blog@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2): + /@docusaurus/plugin-content-blog@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5): resolution: {integrity: sha512-f5LjqX+9WkiLyGiQ41x/KGSJ/9bOjSD8lsVhPvYeUYHCtYpuiDKfhZE07O4EqpHkBx4NQdtQDbp+aptgHSTuiw==} engines: {node: '>=16.14'} peerDependencies: react: ^16.8.4 || ^17.0.0 react-dom: ^16.8.4 || ^17.0.0 dependencies: - '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) + '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) '@docusaurus/logger': 2.3.1 '@docusaurus/mdx-loader': 2.3.1(@docusaurus/types@2.3.1)(react-dom@17.0.2)(react@17.0.2) '@docusaurus/types': 2.3.1(react-dom@17.0.2)(react@17.0.2) @@ -3663,14 +3663,14 @@ packages: - webpack-cli dev: false - /@docusaurus/plugin-content-docs@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2): + /@docusaurus/plugin-content-docs@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5): resolution: {integrity: sha512-DxztTOBEruv7qFxqUtbsqXeNcHqcVEIEe+NQoI1oi2DBmKBhW/o0MIal8lt+9gvmpx3oYtlwmLOOGepxZgJGkw==} engines: {node: '>=16.14'} peerDependencies: react: ^16.8.4 || ^17.0.0 react-dom: ^16.8.4 || ^17.0.0 dependencies: - '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) + '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) '@docusaurus/logger': 2.3.1 '@docusaurus/mdx-loader': 2.3.1(@docusaurus/types@2.3.1)(react-dom@17.0.2)(react@17.0.2) '@docusaurus/module-type-aliases': 2.3.1(react-dom@17.0.2)(react@17.0.2) @@ -3706,14 +3706,14 @@ packages: - webpack-cli dev: false - /@docusaurus/plugin-content-pages@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2): + /@docusaurus/plugin-content-pages@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5): resolution: {integrity: sha512-E80UL6hvKm5VVw8Ka8YaVDtO6kWWDVUK4fffGvkpQ/AJQDOg99LwOXKujPoICC22nUFTsZ2Hp70XvpezCsFQaA==} engines: {node: '>=16.14'} peerDependencies: react: ^16.8.4 || ^17.0.0 react-dom: ^16.8.4 || ^17.0.0 dependencies: - '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) + '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) '@docusaurus/mdx-loader': 2.3.1(@docusaurus/types@2.3.1)(react-dom@17.0.2)(react@17.0.2) '@docusaurus/types': 2.3.1(react-dom@17.0.2)(react@17.0.2) '@docusaurus/utils': 2.3.1(@docusaurus/types@2.3.1) @@ -3741,14 +3741,14 @@ packages: - webpack-cli dev: false - /@docusaurus/plugin-debug@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2): + /@docusaurus/plugin-debug@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5): resolution: {integrity: sha512-Ujpml1Ppg4geB/2hyu2diWnO49az9U2bxM9Shen7b6qVcyFisNJTkVG2ocvLC7wM1efTJcUhBO6zAku2vKJGMw==} engines: {node: '>=16.14'} peerDependencies: react: ^16.8.4 || ^17.0.0 react-dom: ^16.8.4 || ^17.0.0 dependencies: - '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) + '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) '@docusaurus/types': 2.3.1(react-dom@17.0.2)(react@17.0.2) '@docusaurus/utils': 2.3.1(@docusaurus/types@2.3.1) fs-extra: 10.1.0 @@ -3776,14 +3776,14 @@ packages: - webpack-cli dev: false - /@docusaurus/plugin-google-analytics@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2): + /@docusaurus/plugin-google-analytics@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5): resolution: {integrity: sha512-OHip0GQxKOFU8n7gkt3TM4HOYTXPCFDjqKbMClDD3KaDnyTuMp/Zvd9HSr770lLEscgPWIvzhJByRAClqsUWiQ==} engines: {node: '>=16.14'} peerDependencies: react: ^16.8.4 || ^17.0.0 react-dom: ^16.8.4 || ^17.0.0 dependencies: - '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) + '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) '@docusaurus/types': 2.3.1(react-dom@17.0.2)(react@17.0.2) '@docusaurus/utils-validation': 2.3.1(@docusaurus/types@2.3.1) react: 17.0.2 @@ -3807,14 +3807,14 @@ packages: - webpack-cli dev: false - /@docusaurus/plugin-google-gtag@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2): + /@docusaurus/plugin-google-gtag@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5): resolution: {integrity: sha512-uXtDhfu4+Hm+oqWUySr3DNI5cWC/rmP6XJyAk83Heor3dFjZqDwCbkX8yWPywkRiWev3Dk/rVF8lEn0vIGVocA==} engines: {node: '>=16.14'} peerDependencies: react: ^16.8.4 || ^17.0.0 react-dom: ^16.8.4 || ^17.0.0 dependencies: - '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) + '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) '@docusaurus/types': 2.3.1(react-dom@17.0.2)(react@17.0.2) '@docusaurus/utils-validation': 2.3.1(@docusaurus/types@2.3.1) react: 17.0.2 @@ -3838,14 +3838,14 @@ packages: - webpack-cli dev: false - /@docusaurus/plugin-google-tag-manager@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2): + /@docusaurus/plugin-google-tag-manager@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5): resolution: {integrity: sha512-Ww2BPEYSqg8q8tJdLYPFFM3FMDBCVhEM4UUqKzJaiRMx3NEoly3qqDRAoRDGdIhlC//Rf0iJV9cWAoq2m6k3sw==} engines: {node: '>=16.14'} peerDependencies: react: ^16.8.4 || ^17.0.0 react-dom: ^16.8.4 || ^17.0.0 dependencies: - '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) + '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) '@docusaurus/types': 2.3.1(react-dom@17.0.2)(react@17.0.2) '@docusaurus/utils-validation': 2.3.1(@docusaurus/types@2.3.1) react: 17.0.2 @@ -3869,14 +3869,14 @@ packages: - webpack-cli dev: false - /@docusaurus/plugin-sitemap@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2): + /@docusaurus/plugin-sitemap@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5): resolution: {integrity: sha512-8Yxile/v6QGYV9vgFiYL+8d2N4z4Er3pSHsrD08c5XI8bUXxTppMwjarDUTH/TRTfgAWotRbhJ6WZLyajLpozA==} engines: {node: '>=16.14'} peerDependencies: react: ^16.8.4 || ^17.0.0 react-dom: ^16.8.4 || ^17.0.0 dependencies: - '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) + '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) '@docusaurus/logger': 2.3.1 '@docusaurus/types': 2.3.1(react-dom@17.0.2)(react@17.0.2) '@docusaurus/utils': 2.3.1(@docusaurus/types@2.3.1) @@ -3905,25 +3905,25 @@ packages: - webpack-cli dev: false - /@docusaurus/preset-classic@2.3.1(@algolia/client-search@4.20.0)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(search-insights@2.11.0)(typescript@5.3.2): + /@docusaurus/preset-classic@2.3.1(@algolia/client-search@4.20.0)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(search-insights@2.11.0)(typescript@4.9.5): resolution: {integrity: sha512-OQ5W0AHyfdUk0IldwJ3BlnZ1EqoJuu2L2BMhqLbqwNWdkmzmSUvlFLH1Pe7CZSQgB2YUUC/DnmjbPKk/qQD0lQ==} engines: {node: '>=16.14'} peerDependencies: react: ^16.8.4 || ^17.0.0 react-dom: ^16.8.4 || ^17.0.0 dependencies: - '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/plugin-content-blog': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/plugin-content-docs': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/plugin-content-pages': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/plugin-debug': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/plugin-google-analytics': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/plugin-google-gtag': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/plugin-google-tag-manager': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/plugin-sitemap': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/theme-classic': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/theme-common': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/theme-search-algolia': 2.3.1(@algolia/client-search@4.20.0)(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(search-insights@2.11.0)(typescript@5.3.2) + '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/plugin-content-blog': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/plugin-content-docs': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/plugin-content-pages': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/plugin-debug': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/plugin-google-analytics': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/plugin-google-gtag': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/plugin-google-tag-manager': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/plugin-sitemap': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/theme-classic': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/theme-common': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/theme-search-algolia': 2.3.1(@algolia/client-search@4.20.0)(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(search-insights@2.11.0)(typescript@4.9.5) '@docusaurus/types': 2.3.1(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 react-dom: 17.0.2(react@17.0.2) @@ -3959,20 +3959,20 @@ packages: react: 17.0.2 dev: false - /@docusaurus/theme-classic@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2): + /@docusaurus/theme-classic@2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5): resolution: {integrity: sha512-SelSIDvyttb7ZYHj8vEUhqykhAqfOPKk+uP0z85jH72IMC58e7O8DIlcAeBv+CWsLbNIl9/Hcg71X0jazuxJug==} engines: {node: '>=16.14'} peerDependencies: react: ^16.8.4 || ^17.0.0 react-dom: ^16.8.4 || ^17.0.0 dependencies: - '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) + '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) '@docusaurus/mdx-loader': 2.3.1(@docusaurus/types@2.3.1)(react-dom@17.0.2)(react@17.0.2) '@docusaurus/module-type-aliases': 2.3.1(react-dom@17.0.2)(react@17.0.2) - '@docusaurus/plugin-content-blog': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/plugin-content-docs': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/plugin-content-pages': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/theme-common': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) + '@docusaurus/plugin-content-blog': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/plugin-content-docs': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/plugin-content-pages': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/theme-common': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) '@docusaurus/theme-translations': 2.3.1 '@docusaurus/types': 2.3.1(react-dom@17.0.2)(react@17.0.2) '@docusaurus/utils': 2.3.1(@docusaurus/types@2.3.1) @@ -4011,7 +4011,7 @@ packages: - webpack-cli dev: false - /@docusaurus/theme-common@2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2): + /@docusaurus/theme-common@2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5): resolution: {integrity: sha512-RYmYl2OR2biO+yhmW1aS5FyEvnrItPINa+0U2dMxcHpah8reSCjQ9eJGRmAgkZFchV1+aIQzXOI1K7LCW38O0g==} engines: {node: '>=16.14'} peerDependencies: @@ -4020,9 +4020,9 @@ packages: dependencies: '@docusaurus/mdx-loader': 2.3.1(@docusaurus/types@2.3.1)(react-dom@17.0.2)(react@17.0.2) '@docusaurus/module-type-aliases': 2.3.1(react-dom@17.0.2)(react@17.0.2) - '@docusaurus/plugin-content-blog': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/plugin-content-docs': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/plugin-content-pages': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) + '@docusaurus/plugin-content-blog': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/plugin-content-docs': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/plugin-content-pages': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) '@docusaurus/utils': 2.3.1(@docusaurus/types@2.3.1) '@types/history': 4.7.11 '@types/react': 18.2.39 @@ -4054,7 +4054,7 @@ packages: - webpack-cli dev: false - /@docusaurus/theme-search-algolia@2.3.1(@algolia/client-search@4.20.0)(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(search-insights@2.11.0)(typescript@5.3.2): + /@docusaurus/theme-search-algolia@2.3.1(@algolia/client-search@4.20.0)(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(search-insights@2.11.0)(typescript@4.9.5): resolution: {integrity: sha512-JdHaRqRuH1X++g5fEMLnq7OtULSGQdrs9AbhcWRQ428ZB8/HOiaN6mj3hzHvcD3DFgu7koIVtWPQnvnN7iwzHA==} engines: {node: '>=16.14'} peerDependencies: @@ -4062,10 +4062,10 @@ packages: react-dom: ^16.8.4 || ^17.0.0 dependencies: '@docsearch/react': 3.5.2(@algolia/client-search@4.20.0)(react-dom@17.0.2)(react@17.0.2)(search-insights@2.11.0) - '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) + '@docusaurus/core': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) '@docusaurus/logger': 2.3.1 - '@docusaurus/plugin-content-docs': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) - '@docusaurus/theme-common': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@5.3.2) + '@docusaurus/plugin-content-docs': 2.3.1(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) + '@docusaurus/theme-common': 2.3.1(@docusaurus/types@2.3.1)(eslint@8.54.0)(react-dom@17.0.2)(react@17.0.2)(typescript@4.9.5) '@docusaurus/theme-translations': 2.3.1 '@docusaurus/utils': 2.3.1(@docusaurus/types@2.3.1) '@docusaurus/utils-validation': 2.3.1(@docusaurus/types@2.3.1) @@ -5561,8 +5561,8 @@ packages: resolution: {integrity: sha512-s+W9Fdqh5MFk6ECrbnVmmAOwxKQuhGMT7xXHrkYIBMBcTiOqNWhv5KbJIboKR5STXxNXl32hllnvKaffzFaWQg==} dev: false - /@next/env@13.4.1: - resolution: {integrity: sha512-eD6WCBMFjLFooLM19SIhSkWBHtaFrZFfg2Cxnyl3vS3DAdFRfnx5TY2RxlkuKXdIRCC0ySbtK9JXXt8qLCqzZg==} + /@next/env@14.0.4: + resolution: {integrity: sha512-irQnbMLbUNQpP1wcE5NstJtbuA/69kRfzBrpAD7Gsn8zm/CY6YQYc3HQBz8QPxwISG26tIm5afvvVbu508oBeQ==} dev: false /@next/eslint-plugin-next@13.4.1: @@ -5602,8 +5602,8 @@ packages: dev: false optional: true - /@next/swc-darwin-arm64@13.4.1: - resolution: {integrity: sha512-eF8ARHtYfnoYtDa6xFHriUKA/Mfj/cCbmKb3NofeKhMccs65G6/loZ15a6wYCCx4rPAd6x4t1WmVYtri7EdeBg==} + /@next/swc-darwin-arm64@14.0.4: + resolution: {integrity: sha512-mF05E/5uPthWzyYDyptcwHptucf/jj09i2SXBPwNzbgBNc+XnwzrL0U6BmPjQeOL+FiB+iG1gwBeq7mlDjSRPg==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] @@ -5620,8 +5620,8 @@ packages: dev: false optional: true - /@next/swc-darwin-x64@13.4.1: - resolution: {integrity: sha512-7cmDgF9tGWTgn5Gw+vP17miJbH4wcraMHDCOHTYWkO/VeKT73dUWG23TNRLfgtCNSPgH4V5B4uLHoZTanx9bAw==} + /@next/swc-darwin-x64@14.0.4: + resolution: {integrity: sha512-IZQ3C7Bx0k2rYtrZZxKKiusMTM9WWcK5ajyhOZkYYTCc8xytmwSzR1skU7qLgVT/EY9xtXDG0WhY6fyujnI3rw==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] @@ -5656,8 +5656,8 @@ packages: dev: false optional: true - /@next/swc-linux-arm64-gnu@13.4.1: - resolution: {integrity: sha512-qwJqmCri2ie8aTtE5gjTSr8S6O8B67KCYgVZhv9gKH44yvc/zXbAY8u23QGULsYOyh1islWE5sWfQNLOj9iryg==} + /@next/swc-linux-arm64-gnu@14.0.4: + resolution: {integrity: sha512-VwwZKrBQo/MGb1VOrxJ6LrKvbpo7UbROuyMRvQKTFKhNaXjUmKTu7wxVkIuCARAfiI8JpaWAnKR+D6tzpCcM4w==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -5674,8 +5674,8 @@ packages: dev: false optional: true - /@next/swc-linux-arm64-musl@13.4.1: - resolution: {integrity: sha512-qcC54tWNGDv/VVIFkazxhqH1Bnagjfs4enzELVRlUOoJPD2BGJTPI7z08pQPbbgxLtRiu8gl2mXvpB8WlOkMeA==} + /@next/swc-linux-arm64-musl@14.0.4: + resolution: {integrity: sha512-8QftwPEW37XxXoAwsn+nXlodKWHfpMaSvt81W43Wh8dv0gkheD+30ezWMcFGHLI71KiWmHK5PSQbTQGUiidvLQ==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -5692,8 +5692,8 @@ packages: dev: false optional: true - /@next/swc-linux-x64-gnu@13.4.1: - resolution: {integrity: sha512-9TeWFlpLsBosZ+tsm/rWBaMwt5It9tPH8m3nawZqFUUrZyGRfGcI67js774vtx0k3rL9qbyY6+3pw9BCVpaYUA==} + /@next/swc-linux-x64-gnu@14.0.4: + resolution: {integrity: sha512-/s/Pme3VKfZAfISlYVq2hzFS8AcAIOTnoKupc/j4WlvF6GQ0VouS2Q2KEgPuO1eMBwakWPB1aYFIA4VNVh667A==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -5710,8 +5710,8 @@ packages: dev: false optional: true - /@next/swc-linux-x64-musl@13.4.1: - resolution: {integrity: sha512-sNDGaWmSqTS4QRUzw61wl4mVPeSqNIr1OOjLlQTRuyInxMxtqImRqdvzDvFTlDfdeUMU/DZhWGYoHrXLlZXe6A==} + /@next/swc-linux-x64-musl@14.0.4: + resolution: {integrity: sha512-m8z/6Fyal4L9Bnlxde5g2Mfa1Z7dasMQyhEhskDATpqr+Y0mjOBZcXQ7G5U+vgL22cI4T7MfvgtrM2jdopqWaw==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -5728,8 +5728,8 @@ packages: dev: false optional: true - /@next/swc-win32-arm64-msvc@13.4.1: - resolution: {integrity: sha512-+CXZC7u1iXdLRudecoUYbhbsXpglYv8KFYsFxKBPn7kg+bk7eJo738wAA4jXIl8grTF2mPdmO93JOQym+BlYGA==} + /@next/swc-win32-arm64-msvc@14.0.4: + resolution: {integrity: sha512-7Wv4PRiWIAWbm5XrGz3D8HUkCVDMMz9igffZG4NB1p4u1KoItwx9qjATHz88kwCEal/HXmbShucaslXCQXUM5w==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] @@ -5746,8 +5746,8 @@ packages: dev: false optional: true - /@next/swc-win32-ia32-msvc@13.4.1: - resolution: {integrity: sha512-vIoXVVc7UYO68VwVMDKwJC2+HqAZQtCYiVlApyKEeIPIQpz2gpufzGxk1z3/gwrJt/kJ5CDZjlhYDCzd3hdz+g==} + /@next/swc-win32-ia32-msvc@14.0.4: + resolution: {integrity: sha512-zLeNEAPULsl0phfGb4kdzF/cAVIfaC7hY+kt0/d+y9mzcZHsMS3hAS829WbJ31DkSlVKQeHEjZHIdhN+Pg7Gyg==} engines: {node: '>= 10'} cpu: [ia32] os: [win32] @@ -5764,8 +5764,8 @@ packages: dev: false optional: true - /@next/swc-win32-x64-msvc@13.4.1: - resolution: {integrity: sha512-n8V5ImLQZibKTu10UUdI3nIeTLkliEXe628qxqW9v8My3BAH2a7H0SaCqkV2OgqFnn8sG1wxKYw9/SNJ632kSA==} + /@next/swc-win32-x64-msvc@14.0.4: + resolution: {integrity: sha512-yEh2+R8qDlDCjxVpzOTEpBLQTEFAcP2A8fUFLaWNap9GitYKkKv1//y2S6XY6zsR4rCOPRpU7plYDR+az2n30A==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -6837,8 +6837,8 @@ packages: tslib: 2.6.2 dev: false - /@swc/helpers@0.5.1: - resolution: {integrity: sha512-sJ902EfIzn1Fa+qYmjdQqh8tPsoxyBz+8yBKC2HKUxyezKJFwPGOn7pv4WY6QuQW//ySQi5lJjA/ZT9sNWWNTg==} + /@swc/helpers@0.5.2: + resolution: {integrity: sha512-E4KcWTpoLHqwPHLxidpOqQbcrZVgi0rsmmZXUle1jXmJfuIf/UWpczUJ7MZZ5tlxytgJXyp0w4PGkkeLiuIdZw==} dependencies: tslib: 2.6.2 dev: false @@ -7594,7 +7594,7 @@ packages: transitivePeerDependencies: - supports-color - /@typescript-eslint/parser@5.62.0(eslint@8.40.0)(typescript@5.3.2): + /@typescript-eslint/parser@5.62.0(eslint@8.40.0)(typescript@4.9.5): resolution: {integrity: sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -7606,10 +7606,10 @@ packages: dependencies: '@typescript-eslint/scope-manager': 5.62.0 '@typescript-eslint/types': 5.62.0 - '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.3.2) + '@typescript-eslint/typescript-estree': 5.62.0(typescript@4.9.5) debug: 4.3.4(supports-color@8.1.1) eslint: 8.40.0 - typescript: 5.3.2 + typescript: 4.9.5 transitivePeerDependencies: - supports-color dev: false @@ -7746,7 +7746,7 @@ packages: transitivePeerDependencies: - supports-color - /@typescript-eslint/typescript-estree@5.62.0(typescript@5.3.2): + /@typescript-eslint/typescript-estree@5.62.0(typescript@4.9.5): resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: @@ -7761,8 +7761,8 @@ packages: globby: 11.1.0 is-glob: 4.0.3 semver: 7.5.4 - tsutils: 3.21.0(typescript@5.3.2) - typescript: 5.3.2 + tsutils: 3.21.0(typescript@4.9.5) + typescript: 4.9.5 transitivePeerDependencies: - supports-color dev: false @@ -10727,7 +10727,7 @@ packages: path-type: 4.0.0 yaml: 1.10.2 - /cosmiconfig@8.3.6(typescript@5.3.2): + /cosmiconfig@8.3.6(typescript@4.9.5): resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==} engines: {node: '>=14'} peerDependencies: @@ -10740,7 +10740,7 @@ packages: js-yaml: 4.1.0 parse-json: 5.2.0 path-type: 4.0.0 - typescript: 5.3.2 + typescript: 4.9.5 dev: false /cp-file@6.2.0: @@ -12523,7 +12523,7 @@ packages: optionalDependencies: source-map: 0.6.1 - /eslint-config-next@13.4.1(eslint@8.40.0)(typescript@5.3.2): + /eslint-config-next@13.4.1(eslint@8.40.0)(typescript@4.9.5): resolution: {integrity: sha512-ajuxjCkW1hvirr0EQZb3/B/bFH52Z7CT89uCtTcICFL9l30i5c8hN4p0LXvTjdOXNPV5fEDcxBgGHgXdzTj1/A==} peerDependencies: eslint: ^7.23.0 || ^8.0.0 @@ -12534,7 +12534,7 @@ packages: dependencies: '@next/eslint-plugin-next': 13.4.1 '@rushstack/eslint-patch': 1.6.0 - '@typescript-eslint/parser': 5.62.0(eslint@8.40.0)(typescript@5.3.2) + '@typescript-eslint/parser': 5.62.0(eslint@8.40.0)(typescript@4.9.5) eslint: 8.40.0 eslint-import-resolver-node: 0.3.9 eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/parser@5.62.0)(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.29.0)(eslint@8.40.0) @@ -12542,7 +12542,7 @@ packages: eslint-plugin-jsx-a11y: 6.8.0(eslint@8.40.0) eslint-plugin-react: 7.33.2(eslint@8.40.0) eslint-plugin-react-hooks: 4.6.0(eslint@8.40.0) - typescript: 5.3.2 + typescript: 4.9.5 transitivePeerDependencies: - eslint-import-resolver-webpack - supports-color @@ -12704,7 +12704,7 @@ packages: eslint-import-resolver-webpack: optional: true dependencies: - '@typescript-eslint/parser': 5.62.0(eslint@8.40.0)(typescript@5.3.2) + '@typescript-eslint/parser': 5.62.0(eslint@8.40.0)(typescript@4.9.5) debug: 3.2.7(supports-color@7.2.0) eslint: 8.40.0 eslint-import-resolver-node: 0.3.9 @@ -12778,7 +12778,7 @@ packages: '@typescript-eslint/parser': optional: true dependencies: - '@typescript-eslint/parser': 5.62.0(eslint@8.40.0)(typescript@5.3.2) + '@typescript-eslint/parser': 5.62.0(eslint@8.40.0)(typescript@4.9.5) array-includes: 3.1.7 array.prototype.findlastindex: 1.2.3 array.prototype.flat: 1.3.2 @@ -14035,7 +14035,7 @@ packages: transitivePeerDependencies: - supports-color - /fork-ts-checker-webpack-plugin@6.5.3(eslint@8.54.0)(typescript@5.3.2)(webpack@5.89.0): + /fork-ts-checker-webpack-plugin@6.5.3(eslint@8.54.0)(typescript@4.9.5)(webpack@5.89.0): resolution: {integrity: sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ==} engines: {node: '>=10', yarn: '>=1.0.0'} peerDependencies: @@ -14063,7 +14063,7 @@ packages: schema-utils: 2.7.0 semver: 7.5.4 tapable: 1.1.3 - typescript: 5.3.2 + typescript: 4.9.5 webpack: 5.89.0 dev: false @@ -18394,46 +18394,41 @@ packages: - babel-plugin-macros dev: false - /next@13.4.1(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-JBw2kAIyhKDpjhEWvNVoFeIzNp9xNxg8wrthDOtMctfn3EpqGCmW0FSviNyGgOSOSn6zDaX48pmvbdf6X2W9xA==} - engines: {node: '>=16.8.0'} + /next@14.0.4(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-qbwypnM7327SadwFtxXnQdGiKpkuhaRLE2uq62/nRul9cj9KhQ5LhHmlziTNqUidZotw/Q1I9OjirBROdUJNgA==} + engines: {node: '>=18.17.0'} hasBin: true peerDependencies: '@opentelemetry/api': ^1.1.0 - fibers: '>= 3.1.0' - node-sass: ^6.0.0 || ^7.0.0 react: ^18.2.0 react-dom: ^18.2.0 sass: ^1.3.0 peerDependenciesMeta: '@opentelemetry/api': optional: true - fibers: - optional: true - node-sass: - optional: true sass: optional: true dependencies: - '@next/env': 13.4.1 - '@swc/helpers': 0.5.1 + '@next/env': 14.0.4 + '@swc/helpers': 0.5.2 busboy: 1.6.0 caniuse-lite: 1.0.30001565 - postcss: 8.4.14 + graceful-fs: 4.2.11 + postcss: 8.4.31 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) styled-jsx: 5.1.1(react@18.2.0) - zod: 3.21.4 + watchpack: 2.4.0 optionalDependencies: - '@next/swc-darwin-arm64': 13.4.1 - '@next/swc-darwin-x64': 13.4.1 - '@next/swc-linux-arm64-gnu': 13.4.1 - '@next/swc-linux-arm64-musl': 13.4.1 - '@next/swc-linux-x64-gnu': 13.4.1 - '@next/swc-linux-x64-musl': 13.4.1 - '@next/swc-win32-arm64-msvc': 13.4.1 - '@next/swc-win32-ia32-msvc': 13.4.1 - '@next/swc-win32-x64-msvc': 13.4.1 + '@next/swc-darwin-arm64': 14.0.4 + '@next/swc-darwin-x64': 14.0.4 + '@next/swc-linux-arm64-gnu': 14.0.4 + '@next/swc-linux-arm64-musl': 14.0.4 + '@next/swc-linux-x64-gnu': 14.0.4 + '@next/swc-linux-x64-musl': 14.0.4 + '@next/swc-win32-arm64-msvc': 14.0.4 + '@next/swc-win32-ia32-msvc': 14.0.4 + '@next/swc-win32-x64-msvc': 14.0.4 transitivePeerDependencies: - '@babel/core' - babel-plugin-macros @@ -19796,14 +19791,14 @@ packages: postcss-load-config: 2.1.2 schema-utils: 1.0.0 - /postcss-loader@7.3.3(postcss@8.4.31)(typescript@5.3.2)(webpack@5.89.0): + /postcss-loader@7.3.3(postcss@8.4.31)(typescript@4.9.5)(webpack@5.89.0): resolution: {integrity: sha512-YgO/yhtevGO/vJePCQmTxiaEwER94LABZN0ZMT4A0vsak9TpO+RvKRs7EmJ8peIlB9xfXCsS7M8LjqncsUZ5HA==} engines: {node: '>= 14.15.0'} peerDependencies: postcss: ^7.0.0 || ^8.0.1 webpack: ^5.0.0 dependencies: - cosmiconfig: 8.3.6(typescript@5.3.2) + cosmiconfig: 8.3.6(typescript@4.9.5) jiti: 1.21.0 postcss: 8.4.31 semver: 7.5.4 @@ -21029,7 +21024,7 @@ packages: - supports-color - vue-template-compiler - /react-dev-utils@12.0.1(eslint@8.54.0)(typescript@5.3.2)(webpack@5.89.0): + /react-dev-utils@12.0.1(eslint@8.54.0)(typescript@4.9.5)(webpack@5.89.0): resolution: {integrity: sha512-84Ivxmr17KjUupyqzFode6xKhjwuEJDROWKJy/BthkL7Wn6NJ8h4WE6k/exAv6ImS+0oZLRRW5j/aINMHyeGeQ==} engines: {node: '>=14'} peerDependencies: @@ -21048,7 +21043,7 @@ packages: escape-string-regexp: 4.0.0 filesize: 8.0.7 find-up: 5.0.0 - fork-ts-checker-webpack-plugin: 6.5.3(eslint@8.54.0)(typescript@5.3.2)(webpack@5.89.0) + fork-ts-checker-webpack-plugin: 6.5.3(eslint@8.54.0)(typescript@4.9.5)(webpack@5.89.0) global-modules: 2.0.0 globby: 11.1.0 gzip-size: 6.0.0 @@ -21063,7 +21058,7 @@ packages: shell-quote: 1.8.1 strip-ansi: 6.0.1 text-table: 0.2.0 - typescript: 5.3.2 + typescript: 4.9.5 webpack: 5.89.0 transitivePeerDependencies: - eslint @@ -24064,16 +24059,6 @@ packages: tslib: 1.14.1 typescript: 4.9.5 - /tsutils@3.21.0(typescript@5.3.2): - resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} - 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' - dependencies: - tslib: 1.14.1 - typescript: 5.3.2 - dev: false - /tty-browserify@0.0.0: resolution: {integrity: sha512-JVa5ijo+j/sOoHGjw0sxw734b1LhBkQ3bvUGNdxnVXDCX81Yx7TFgnZygxrIIWn23hbfTaMYLwRmAxFyDuFmIw==} @@ -24199,12 +24184,6 @@ packages: engines: {node: '>=4.2.0'} hasBin: true - /typescript@5.3.2: - resolution: {integrity: sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==} - engines: {node: '>=14.17'} - hasBin: true - dev: false - /ua-parser-js@1.0.37: resolution: {integrity: sha512-bhTyI94tZofjo+Dn8SN6Zv8nBDvyXTymAdM3LDI/0IboIUwTu1rEhW7v2TfiVsoYWgkQ4kOVqnI8APUFbIQIFQ==} dev: false @@ -25840,10 +25819,6 @@ packages: readable-stream: 3.6.2 dev: true - /zod@3.21.4: - resolution: {integrity: sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==} - dev: false - /zwitch@1.0.5: resolution: {integrity: sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==} dev: false diff --git a/use-shopping-cart/core/index.d.ts b/use-shopping-cart/core/index.d.ts index c3a5975..68b8b41 100644 --- a/use-shopping-cart/core/index.d.ts +++ b/use-shopping-cart/core/index.d.ts @@ -116,6 +116,10 @@ interface CartEntryAttributes extends ProductAttributes { * Currency formatted version of `value` */ readonly formattedValue: string + /** + * Timestamp of when entry was added to cart + */ + readonly timestamp: string } export type CartEntry = { id: string } & CartEntryAttributes diff --git a/use-shopping-cart/react/index.js b/use-shopping-cart/react/index.js index 242f411..2d4afc6 100644 --- a/use-shopping-cart/react/index.js +++ b/use-shopping-cart/react/index.js @@ -18,22 +18,26 @@ export const useSelector = createSelectorHook(CartContext) export const useDispatch = createDispatchHook(CartContext) export function CartProvider({ loading = null, children, ...props }) { + const [isClient, setIsClient] = React.useState(false) + + React.useEffect(() => { + setIsClient(true) + }, []) + const store = React.useMemo(() => createShoppingCartStore(props), [props]) - if (!props.shouldPersist) { + if (props.shouldPersist && isClient) { + const persistor = persistStore(store) + return ( - {children} + {() => children} ) - } - - if (props.shouldPersist) { - const persistor = persistStore(store) - + } else { return ( - {() => children} + {children} ) }