From 92a4cc92db4c27f927f90ef9297076d87994da1c Mon Sep 17 00:00:00 2001 From: Dulaj Deshan Ariyaratne <38158937+Dulajdeshan@users.noreply.github.com> Date: Sun, 11 Feb 2024 21:03:55 +0530 Subject: [PATCH] Drop support for node 16 (#135) --- .github/workflows/lint.yml | 6 +- .github/workflows/publish.yml | 5 +- .github/workflows/test.yml | 6 +- README.md | 68 ++++++----- package.json | 12 +- yarn.lock | 217 ++++++++++++++++++---------------- 6 files changed, 171 insertions(+), 143 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fa9783d..5d3fa25 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,10 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Use Node.js/16 + - name: Use Node.js/18 uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT @@ -28,4 +28,4 @@ jobs: - name: Install dependencies run: yarn - name: Lint - run: yarn lint \ No newline at end of file + run: yarn lint diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 801f34c..a169118 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,3 @@ - name: Publish on: release: @@ -10,8 +9,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '16.x' - registry-url: 'https://registry.npmjs.org' + node-version: "18.x" + registry-url: "https://registry.npmjs.org" - run: yarn - run: yarn publish env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7224323..704c312 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,10 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Use Node.js/16 + - name: Use Node.js/18 uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT @@ -28,4 +28,4 @@ jobs: - name: Install dependencies run: yarn - name: Test - run: yarn test \ No newline at end of file + run: yarn test diff --git a/README.md b/README.md index e10d1fb..8066104 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,8 @@ UI preview -A plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides an integration with powerful -[mathjs](https://mathjs.org/) library. +A plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides an integration with powerful +[mathjs](https://mathjs.org/) library. ## Table of Contents @@ -35,12 +35,13 @@ A plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provid - [💕Special Thanks](#-special-thanks) ## ✨ Features + - [Strapi Custom Field](https://docs.strapi.io/dev-docs/custom-fields) for calculating the provided formula. - [mathjs](https://mathjs.org/) integration. - - Supports numbers, big numbers, complex numbers, fractions, units, strings, arrays, and matrices. - - Is compatible with JavaScript’s built-in Math library. - - Contains a flexible expression parser. - - Does symbolic computation. + - Supports numbers, big numbers, complex numbers, fractions, units, strings, arrays, and matrices. + - Is compatible with JavaScript’s built-in Math library. + - Contains a flexible expression parser. + - Does symbolic computation. - Comes with a large set of built-in functions and constants. - Calculating the `formula` with the provided `scope` using the powerful `mathjs.evaluate` method. [Read More.](https://mathjs.org/docs/expressions/parsing.html#evaluate) @@ -52,63 +53,73 @@ Complete installation requirements are exact the same as for Strapi itself and c documentation](https://docs.strapi.io/dev-docs/quick-start). > Before installing Strapi, the following requirements must be installed on your computer: -> - Node.js: Only Maintenance and LTS versions are supported (v16, v18, and v20). +> +> - Node.js: Only Maintenance and LTS versions are supported (v18, and v20). > - Node v18.x is recommended for Strapi v4.3.9 and above -> - Node v16.x is recommended for Strapi v4.0.x to v4.3.8. > - Your preferred Node.js package manager: > - npm (v6 and above) > - yarn ## 🦾 Installation + ```shell yarn add strapi-plugin-field-formula@latest ``` + **OR** + ```shell npm install strapi-plugin-field-formula@latest ``` + After successful installation you could re-build the Strapi instance. You could use the next commands (default) inside your Strapi project: + ```shell yarn build yarn develop ``` ## ⚙️ Configuration + As a next step you must configure the plugin following the [official Strapi documentation](https://docs.strapi.io/dev-docs/plugins/documentation#configuration). -We need to enable the plugin by adding it to the Strapi plugin config file located in `./config/plugins.js` of your Strapi +We need to enable the plugin by adding it to the Strapi plugin config file located in `./config/plugins.js` of your Strapi project. If this file does not exist yer, you have to create it manually. Copy and paste the following config into you `./config/plugins.js` file: + ```javascript // ./config/plugins.js` module.exports = { // ... - 'field-formula': { - enabled: true + "field-formula": { + enabled: true, }, -//... -} + //... +}; ``` + My congratulation 😄! You have successfully installed and configured the **Strapi Plugin Field Formula**. ## ♾️ Usage -> Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support -for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated -solution to work with different data types like numbers, big numbers, complex numbers, fractions, units, and matrices. -Powerful and easy to use. -Here is some examples, but to use this plugin on the full 100%, you have to read the official [Mathjs](https://mathjs.org/examples/index.html) -documentation, and especially the [expressions](https://mathjs.org/examples/expressions.js.html) part as `formula` is +> Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support +> for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated +> solution to work with different data types like numbers, big numbers, complex numbers, fractions, units, and matrices. +> Powerful and easy to use. + +Here is some examples, but to use this plugin on the full 100%, you have to read the official [Mathjs](https://mathjs.org/examples/index.html) +documentation, and especially the [expressions](https://mathjs.org/examples/expressions.js.html) part as `formula` is the same thing as `mathjs.evaluate` method 🤫 > Function `evaluate` accepts a single **(in our case)** `expression` or an array with expressions as the first argument -and has an optional second argument containing a `scope` with variables and functions. The scope can be a regular -JavaScript Object, or Map **(JSON in our case)**. The scope will be used to resolve symbols, and to write assigned -variables or function. +> and has an optional second argument containing a `scope` with variables and functions. The scope can be a regular +> JavaScript Object, or Map **(JSON in our case)**. The scope will be used to resolve symbols, and to write assigned +> variables or function. ### Example 1 + ``` formula: sqrt(x^y + r^k) scope: { @@ -121,6 +132,7 @@ result: 32.12475680841802 ``` ### Example 2 + ``` formula: cos(x deg) scope: { "x": 45 } @@ -128,19 +140,19 @@ result: 0.7071067811865476 ``` ## 🛠️ Contributing -See the [CONTRIBUTING.md](https://github.com/BorysShulyak/strapi-plugin-field-formula/blob/main/CONTRIBUTING.md) + +See the [CONTRIBUTING.md](https://github.com/BorysShulyak/strapi-plugin-field-formula/blob/main/CONTRIBUTING.md) document. ## 🗺️ Roadmap + - Object response to unleash more difficult expressions. ## ❤️ Support or Donate -If you are enjoying this plugin and feel extra appreciative, you could [buy me a book](https://bmc.link/borisshulyak) + +If you are enjoying this plugin and feel extra appreciative, you could [buy me a book](https://bmc.link/borisshulyak) 📖 or 3 📖📖📖. ## 💕 Special Thanks -- I want to say thank you to **my wife Diana** for her love, daily support, motivation and inspiration. - - - +- I want to say thank you to **my wife Diana** for her love, daily support, motivation and inspiration. diff --git a/package.json b/package.json index f171177..d9f6a26 100644 --- a/package.json +++ b/package.json @@ -16,10 +16,10 @@ "test": "jest --testPathPattern='\\/__tests__\\/.*\\.(?:test|spec)\\.js$' --ci 2>&1" }, "dependencies": { - "@strapi/design-system": "^1.6.3", - "@strapi/helper-plugin": "^4.12.5", - "@strapi/icons": "^1.11.0", - "prop-types": "^15.7.2", + "@strapi/design-system": "^1.14.1", + "@strapi/helper-plugin": "^4.20.0", + "@strapi/icons": "^1.14.1", + "prop-types": "^15.8.1", "axios": "1.6.0", "mathjs": "11.11.1" }, @@ -49,14 +49,14 @@ "styled-components": "^5.3.6" }, "peerDependencies": { - "@strapi/strapi": "^4.4.0", + "@strapi/strapi": "^4.20.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-router-dom": "^5.3.4", "styled-components": "^5.3.6" }, "engines": { - "node": ">=14.19.1 <=18.x.x", + "node": ">=18.0.0 <=20.x.x", "npm": ">=6.0.0" }, "repository": { diff --git a/yarn.lock b/yarn.lock index 861aaa6..d13a7d4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -786,6 +786,13 @@ dependencies: "@floating-ui/utils" "^0.1.1" +"@floating-ui/core@^1.6.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-1.6.0.tgz#fa41b87812a16bf123122bf945946bae3fdf7fc1" + integrity sha512-PcF++MykgmTj3CIyOQbKA/hDzOAiqI3mhuoN44WRCopIs1sgoDoU4oty4Jtqaj/y3oDU6fnVSm4QG0a3t5i0+g== + dependencies: + "@floating-ui/utils" "^0.2.1" + "@floating-ui/dom@^1.0.1", "@floating-ui/dom@^1.3.0": version "1.5.1" resolved "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.1.tgz" @@ -794,18 +801,38 @@ "@floating-ui/core" "^1.4.1" "@floating-ui/utils" "^0.1.1" -"@floating-ui/react-dom@^2.0.0", "@floating-ui/react-dom@^2.0.1": +"@floating-ui/dom@^1.6.1": + version "1.6.1" + resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-1.6.1.tgz#d552e8444f77f2d88534372369b3771dc3a2fa5d" + integrity sha512-iA8qE43/H5iGozC3W0YSnVSW42Vh522yyM1gj+BqRwVsTNOyr231PsXDaV04yT39PsO0QL2QpbI/M0ZaLUQgRQ== + dependencies: + "@floating-ui/core" "^1.6.0" + "@floating-ui/utils" "^0.2.1" + +"@floating-ui/react-dom@^2.0.0": version "2.0.1" resolved "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.0.1.tgz" integrity sha512-rZtAmSht4Lry6gdhAJDrCp/6rKN7++JnL1/Anbr/DdeyYXQPxvg/ivrbYvJulbRf4vL8b212suwMM2lxbv+RQA== dependencies: "@floating-ui/dom" "^1.3.0" +"@floating-ui/react-dom@^2.0.5": + version "2.0.8" + resolved "https://registry.yarnpkg.com/@floating-ui/react-dom/-/react-dom-2.0.8.tgz#afc24f9756d1b433e1fe0d047c24bd4d9cefaa5d" + integrity sha512-HOdqOt3R3OGeTKidaLvJKcgg75S6tibQ3Tif4eyd91QnIJWr0NLvoXFpJA/j8HqkFSL68GDca9AuyWEHlhyClw== + dependencies: + "@floating-ui/dom" "^1.6.1" + "@floating-ui/utils@^0.1.1": version "0.1.1" resolved "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.1.tgz" integrity sha512-m0G6wlnhm/AX0H12IOWtK8gASEMffnX08RtKkCgTdHb9JpHKGloI7icFfLg9ZmQeavcvR0PKmzxClyuFPSjKWw== +"@floating-ui/utils@^0.2.1": + version "0.2.1" + resolved "https://registry.yarnpkg.com/@floating-ui/utils/-/utils-0.2.1.tgz#16308cea045f0fc777b6ff20a9f25474dd8293d2" + integrity sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q== + "@formatjs/ecma402-abstract@1.14.3": version "1.14.3" resolved "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-1.14.3.tgz" @@ -895,17 +922,17 @@ resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz" integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== -"@internationalized/date@^3.3.0": - version "3.3.0" - resolved "https://registry.npmjs.org/@internationalized/date/-/date-3.3.0.tgz" - integrity sha512-qfRd7jCIgUjabI8RxeAsxhLDRS1u8eUPX96GB5uBp1Tpm6YY6dVveE7YwsTEV6L4QOp5LKFirFHHGsL/XQwJIA== +"@internationalized/date@^3.5.1": + version "3.5.1" + resolved "https://registry.yarnpkg.com/@internationalized/date/-/date-3.5.1.tgz#14401139f70c1ef14b845d3cac8912e82e82adcc" + integrity sha512-LUQIfwU9e+Fmutc/DpRTGXSdgYZLBegi4wygCWDSVmUdLTaMHsQyASDiJtREwanwKuQLq0hY76fCJ9J/9I2xOQ== dependencies: "@swc/helpers" "^0.5.0" -"@internationalized/number@^3.2.1": - version "3.2.1" - resolved "https://registry.npmjs.org/@internationalized/number/-/number-3.2.1.tgz" - integrity sha512-hK30sfBlmB1aIe3/OwAPg9Ey0DjjXvHEiGVhNaOiBJl31G0B6wMaX8BN3ibzdlpyRNE9p7X+3EBONmxtJO9Yfg== +"@internationalized/number@^3.5.0": + version "3.5.0" + resolved "https://registry.yarnpkg.com/@internationalized/number/-/number-3.5.0.tgz#9de6018424b441a6545f209afa286ad7df4a2906" + integrity sha512-ZY1BW8HT9WKYvaubbuqXbbDdHhOUMfE2zHHFJeTppid0S+pc8HtdIxFxaYMsGjCb4UsF+MEJ4n2TfU7iHnUK8w== dependencies: "@swc/helpers" "^0.5.0" @@ -1281,10 +1308,10 @@ dependencies: "@babel/runtime" "^7.13.10" -"@radix-ui/react-dismissable-layer@1.0.4", "@radix-ui/react-dismissable-layer@^1.0.4": - version "1.0.4" - resolved "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.4.tgz" - integrity sha512-7UpBa/RKMoHJYjie1gkF1DlK8l1fdU/VKDpoS3rCCo8YBJR294GwcEHyxHw72yvphJ7ld0AXEcSLAzY2F/WyCg== +"@radix-ui/react-dismissable-layer@1.0.5", "@radix-ui/react-dismissable-layer@^1.0.5": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.5.tgz#3f98425b82b9068dfbab5db5fff3df6ebf48b9d4" + integrity sha512-aJeDjQhywg9LBu2t/At58hCvr7pEm0o2Ke1x33B+MhjNmmZ17sy4KImo0KPLgsnc/zN7GPdce8Cnn0SWvwZO7g== dependencies: "@babel/runtime" "^7.13.10" "@radix-ui/primitive" "1.0.1" @@ -1293,17 +1320,17 @@ "@radix-ui/react-use-callback-ref" "1.0.1" "@radix-ui/react-use-escape-keydown" "1.0.3" -"@radix-ui/react-dropdown-menu@^2.0.5": - version "2.0.5" - resolved "https://registry.npmjs.org/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.0.5.tgz" - integrity sha512-xdOrZzOTocqqkCkYo8yRPCib5OkTkqN7lqNCdxwPOdE466DOaNl4N8PkUIlsXthQvW5Wwkd+aEmWpfWlBoDPEw== +"@radix-ui/react-dropdown-menu@^2.0.6": + version "2.0.6" + resolved "https://registry.yarnpkg.com/@radix-ui/react-dropdown-menu/-/react-dropdown-menu-2.0.6.tgz#cdf13c956c5e263afe4e5f3587b3071a25755b63" + integrity sha512-i6TuFOoWmLWq+M/eCLGd/bQ2HfAX1RJgvrBQ6AQLmzfvsLdefxbWu8G9zczcPFfcSPehz9GcpF6K9QYreFV8hA== dependencies: "@babel/runtime" "^7.13.10" "@radix-ui/primitive" "1.0.1" "@radix-ui/react-compose-refs" "1.0.1" "@radix-ui/react-context" "1.0.1" "@radix-ui/react-id" "1.0.1" - "@radix-ui/react-menu" "2.0.5" + "@radix-ui/react-menu" "2.0.6" "@radix-ui/react-primitive" "1.0.3" "@radix-ui/react-use-controllable-state" "1.0.1" @@ -1314,10 +1341,10 @@ dependencies: "@babel/runtime" "^7.13.10" -"@radix-ui/react-focus-scope@1.0.3": - version "1.0.3" - resolved "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.0.3.tgz" - integrity sha512-upXdPfqI4islj2CslyfUBNlaJCPybbqRHAi1KER7Isel9Q2AtSJ0zRBZv8mWQiFXD2nyAJ4BhC3yXgZ6kMBSrQ== +"@radix-ui/react-focus-scope@1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@radix-ui/react-focus-scope/-/react-focus-scope-1.0.4.tgz#2ac45fce8c5bb33eb18419cdc1905ef4f1906525" + integrity sha512-sL04Mgvf+FmyvZeYfNu1EPAaaxD+aw7cYeIB9L9Fvq8+urhltTRaEo5ysKOpHuKPclsZcSUMKlN05x4u+CINpA== dependencies: "@babel/runtime" "^7.13.10" "@radix-ui/react-compose-refs" "1.0.1" @@ -1332,10 +1359,10 @@ "@babel/runtime" "^7.13.10" "@radix-ui/react-use-layout-effect" "1.0.1" -"@radix-ui/react-menu@2.0.5": - version "2.0.5" - resolved "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.0.5.tgz" - integrity sha512-Gw4f9pwdH+w5w+49k0gLjN0PfRDHvxmAgG16AbyJZ7zhwZ6PBHKtWohvnSwfusfnK3L68dpBREHpVkj8wEM7ZA== +"@radix-ui/react-menu@2.0.6": + version "2.0.6" + resolved "https://registry.yarnpkg.com/@radix-ui/react-menu/-/react-menu-2.0.6.tgz#2c9e093c1a5d5daa87304b2a2f884e32288ae79e" + integrity sha512-BVkFLS+bUC8HcImkRKPSiVumA1VPOOEC5WBMiT+QAVsPzW1FJzI9KnqgGxVDPBcql5xXrHkD3JOVoXWEXD8SYA== dependencies: "@babel/runtime" "^7.13.10" "@radix-ui/primitive" "1.0.1" @@ -1343,12 +1370,12 @@ "@radix-ui/react-compose-refs" "1.0.1" "@radix-ui/react-context" "1.0.1" "@radix-ui/react-direction" "1.0.1" - "@radix-ui/react-dismissable-layer" "1.0.4" + "@radix-ui/react-dismissable-layer" "1.0.5" "@radix-ui/react-focus-guards" "1.0.1" - "@radix-ui/react-focus-scope" "1.0.3" + "@radix-ui/react-focus-scope" "1.0.4" "@radix-ui/react-id" "1.0.1" - "@radix-ui/react-popper" "1.1.2" - "@radix-ui/react-portal" "1.0.3" + "@radix-ui/react-popper" "1.1.3" + "@radix-ui/react-portal" "1.0.4" "@radix-ui/react-presence" "1.0.1" "@radix-ui/react-primitive" "1.0.3" "@radix-ui/react-roving-focus" "1.0.4" @@ -1357,10 +1384,10 @@ aria-hidden "^1.1.1" react-remove-scroll "2.5.5" -"@radix-ui/react-popper@1.1.2", "@radix-ui/react-popper@^1.1.2": - version "1.1.2" - resolved "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.1.2.tgz" - integrity sha512-1CnGGfFi/bbqtJZZ0P/NQY20xdG3E0LALJaLUEoKwPLwl6PPPfbeiCqMVQnhoFRAxjJj4RpBRJzDmUgsex2tSg== +"@radix-ui/react-popper@1.1.3", "@radix-ui/react-popper@^1.1.3": + version "1.1.3" + resolved "https://registry.yarnpkg.com/@radix-ui/react-popper/-/react-popper-1.1.3.tgz#24c03f527e7ac348fabf18c89795d85d21b00b42" + integrity sha512-cKpopj/5RHZWjrbF2846jBNacjQVwkP068DfmgrNJXpvVWrOvlAmE9xSiy5OqeE+Gi8D9fP+oDhUnPqNMY8/5w== dependencies: "@babel/runtime" "^7.13.10" "@floating-ui/react-dom" "^2.0.0" @@ -1374,10 +1401,10 @@ "@radix-ui/react-use-size" "1.0.1" "@radix-ui/rect" "1.0.1" -"@radix-ui/react-portal@1.0.3", "@radix-ui/react-portal@^1.0.3": - version "1.0.3" - resolved "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.0.3.tgz" - integrity sha512-xLYZeHrWoPmA5mEKEfZZevoVRK/Q43GfzRXkWV6qawIWWK8t6ifIiLQdd7rmQ4Vk1bmI21XhqF9BN3jWf+phpA== +"@radix-ui/react-portal@1.0.4", "@radix-ui/react-portal@^1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@radix-ui/react-portal/-/react-portal-1.0.4.tgz#df4bfd353db3b1e84e639e9c63a5f2565fb00e15" + integrity sha512-Qki+C/EuGUVCQTOTD5vzJzJuMUlewbzuKyUy+/iHM2uwGiru9gZeBJtHAPKAEkB5KWGi9mP/CHKcY0wt1aW45Q== dependencies: "@babel/runtime" "^7.13.10" "@radix-ui/react-primitive" "1.0.3" @@ -1510,51 +1537,50 @@ dependencies: "@sinonjs/commons" "^3.0.0" -"@strapi/design-system@^1.6.3": - version "1.8.2" - resolved "https://registry.npmjs.org/@strapi/design-system/-/design-system-1.8.2.tgz" - integrity sha512-PBS/F9bCiNbM4hr6AY4QOR+QhxajLvtoJKLIhPfmmPCkPorT46DzvggTveJku/1bWiJmkVHhqytsKEhrvMsjHQ== +"@strapi/design-system@^1.14.1": + version "1.14.1" + resolved "https://registry.yarnpkg.com/@strapi/design-system/-/design-system-1.14.1.tgz#cac587cc3859e34c385b3f3e9072434ef0ec1e4b" + integrity sha512-BHWX0f8l4JNhds4c4S2Vop60eF+wK2c0dLoq+8fKB3rZOftS5deO1BuFWo7XzZHF4MFbGT5mYWys9J5ANVBA6A== dependencies: "@codemirror/lang-json" "^6.0.1" - "@floating-ui/react-dom" "^2.0.1" - "@internationalized/date" "^3.3.0" - "@internationalized/number" "^3.2.1" - "@radix-ui/react-dismissable-layer" "^1.0.4" - "@radix-ui/react-dropdown-menu" "^2.0.5" - "@radix-ui/react-focus-scope" "1.0.3" - "@strapi/ui-primitives" "^1.8.2" - "@uiw/react-codemirror" "^4.21.7" + "@floating-ui/react-dom" "^2.0.5" + "@internationalized/date" "^3.5.1" + "@internationalized/number" "^3.5.0" + "@radix-ui/react-dismissable-layer" "^1.0.5" + "@radix-ui/react-dropdown-menu" "^2.0.6" + "@radix-ui/react-focus-scope" "1.0.4" + "@strapi/ui-primitives" "^1.14.1" + "@uiw/react-codemirror" "^4.21.21" aria-hidden "^1.2.3" - compute-scroll-into-view "^3.0.3" + compute-scroll-into-view "^3.1.0" prop-types "^15.8.1" - react-remove-scroll "^2.5.6" + react-remove-scroll "^2.5.7" -"@strapi/helper-plugin@^4.12.5": - version "4.12.5" - resolved "https://registry.yarnpkg.com/@strapi/helper-plugin/-/helper-plugin-4.12.5.tgz#e20aead6de4c3ab8dfd870d0ddf9b314f2c08f65" - integrity sha512-sNC2dg+Mribpj/95DBG7bcCFqlhEwVz5c5wdbWOXp+MT1XkuSArjzGw+hqDf8ZHDpegFyYe2cnZT/xgpC6Zfvw== +"@strapi/helper-plugin@^4.20.0": + version "4.20.0" + resolved "https://registry.yarnpkg.com/@strapi/helper-plugin/-/helper-plugin-4.20.0.tgz#c08c499ee8a2ccffc34dbea1eb1eca10bc623206" + integrity sha512-pEqrKorP/McLtTK4+QeUNAeI+M3+Q8K/RJcJFKX/k8VgjcBSnefaH6PcnuB2SwXGQ10DIoJ8XcvE7IDopEk0KQ== dependencies: - axios "1.4.0" + axios "1.6.0" date-fns "2.30.0" formik "2.4.0" immer "9.0.19" lodash "4.17.21" - prop-types "^15.8.1" qs "6.11.1" - react-helmet "^6.1.0" + react-helmet "6.1.0" react-intl "6.4.1" react-query "3.39.3" react-select "5.7.0" -"@strapi/icons@^1.11.0": - version "1.11.0" - resolved "https://registry.yarnpkg.com/@strapi/icons/-/icons-1.11.0.tgz#8615a83d50e4258408f087653d7cb9d661a6b898" - integrity sha512-f609vYHoKPWg5OBMFNN40j8ow11oWZgZYzX1KvjncXs/c5qkCeoMyN289e1XSaDTPrDAiPzLgKLshWpJVpZBxw== +"@strapi/icons@^1.14.1": + version "1.14.1" + resolved "https://registry.yarnpkg.com/@strapi/icons/-/icons-1.14.1.tgz#8f820512d0c9a8b75570f7a96ea42c969f65263b" + integrity sha512-ja3et1QIo+6kTfk/mzeSiLTtZ6pCC6mwvUlp8qGyBTQ5BJvMacgxEdXBnYRn6fbYt6fl7gAKCORRQpnHNQfwjg== -"@strapi/ui-primitives@^1.8.2": - version "1.8.2" - resolved "https://registry.npmjs.org/@strapi/ui-primitives/-/ui-primitives-1.8.2.tgz" - integrity sha512-33GDdBXyH8BtBNyjUNiiZVoZ0R9BPtcKhCIb9VtR6RoyR/OVoAOgA3cOO9isxrwh8LZFP2BgofKW62ew3Y801w== +"@strapi/ui-primitives@^1.14.1": + version "1.14.1" + resolved "https://registry.yarnpkg.com/@strapi/ui-primitives/-/ui-primitives-1.14.1.tgz#f4100f68874754088322bdb6da98a206fa9fbc2d" + integrity sha512-AmwyfZuazN7J1AgVf7i7oly+zwcJdWFqh/UCd3uPtoonnPmdCIRjkK8aBWlU9M+k3277FGIaCHOwNHiMSiBbbA== dependencies: "@radix-ui/number" "^1.0.1" "@radix-ui/primitive" "^1.0.1" @@ -1562,12 +1588,12 @@ "@radix-ui/react-compose-refs" "^1.0.1" "@radix-ui/react-context" "^1.0.1" "@radix-ui/react-direction" "1.0.1" - "@radix-ui/react-dismissable-layer" "^1.0.4" + "@radix-ui/react-dismissable-layer" "^1.0.5" "@radix-ui/react-focus-guards" "1.0.1" - "@radix-ui/react-focus-scope" "1.0.3" + "@radix-ui/react-focus-scope" "1.0.4" "@radix-ui/react-id" "^1.0.1" - "@radix-ui/react-popper" "^1.1.2" - "@radix-ui/react-portal" "^1.0.3" + "@radix-ui/react-popper" "^1.1.3" + "@radix-ui/react-portal" "^1.0.4" "@radix-ui/react-primitive" "^1.0.3" "@radix-ui/react-slot" "^1.0.2" "@radix-ui/react-use-callback-ref" "^1.0.1" @@ -1576,7 +1602,7 @@ "@radix-ui/react-use-previous" "^1.0.1" "@radix-ui/react-visually-hidden" "^1.0.3" aria-hidden "^1.2.3" - react-remove-scroll "^2.5.6" + react-remove-scroll "^2.5.7" "@swc/helpers@^0.5.0": version "0.5.1" @@ -1798,10 +1824,10 @@ "@typescript-eslint/types" "5.62.0" eslint-visitor-keys "^3.3.0" -"@uiw/codemirror-extensions-basic-setup@4.21.9": - version "4.21.9" - resolved "https://registry.npmjs.org/@uiw/codemirror-extensions-basic-setup/-/codemirror-extensions-basic-setup-4.21.9.tgz" - integrity sha512-TQT6aF8brxZpFnk/K4fm/K/9k9eF3PMav/KKjHlYrGUT8BTNk/qL+ximLtIzvTUhmBFchjM1lrqSJdvpVom7/w== +"@uiw/codemirror-extensions-basic-setup@4.21.21": + version "4.21.21" + resolved "https://registry.yarnpkg.com/@uiw/codemirror-extensions-basic-setup/-/codemirror-extensions-basic-setup-4.21.21.tgz#243ef309cb53253b14187649a7abc0d996420a20" + integrity sha512-+0i9dPrRSa8Mf0CvyrMvnAhajnqwsP3IMRRlaHDRgsSGL8igc4z7MhvUPn+7cWFAAqWzQRhMdMSWzo6/TEa3EA== dependencies: "@codemirror/autocomplete" "^6.0.0" "@codemirror/commands" "^6.0.0" @@ -1811,16 +1837,16 @@ "@codemirror/state" "^6.0.0" "@codemirror/view" "^6.0.0" -"@uiw/react-codemirror@^4.21.7": - version "4.21.9" - resolved "https://registry.npmjs.org/@uiw/react-codemirror/-/react-codemirror-4.21.9.tgz" - integrity sha512-aeLegPz2iCvqJjhzXp2WUMqpMZDqxsTnF3rX9kGRlfY6vQLsrjoctj0cQ29uxEtFYJChOVjtCOtnQUlyIuNAHQ== +"@uiw/react-codemirror@^4.21.21": + version "4.21.21" + resolved "https://registry.yarnpkg.com/@uiw/react-codemirror/-/react-codemirror-4.21.21.tgz#986b18dbd6dc69aa470fc3d4e47b89b504af6778" + integrity sha512-PaxBMarufMWoR0qc5zuvBSt76rJ9POm9qoOaJbqRmnNL2viaF+d+Paf2blPSlm1JSnqn7hlRjio+40nZJ9TKzw== dependencies: "@babel/runtime" "^7.18.6" "@codemirror/commands" "^6.1.0" "@codemirror/state" "^6.1.1" "@codemirror/theme-one-dark" "^6.0.0" - "@uiw/codemirror-extensions-basic-setup" "4.21.9" + "@uiw/codemirror-extensions-basic-setup" "4.21.21" codemirror "^6.0.0" JSONStream@^1.3.5: @@ -2066,15 +2092,6 @@ axe-core@^4.6.2: resolved "https://registry.npmjs.org/axe-core/-/axe-core-4.7.2.tgz" integrity sha512-zIURGIS1E1Q4pcrMjp+nnEh+16G56eG/MUllJH8yEvw7asDo7Ac9uhC9KIH5jzpITueEZolfYglnCGIuSBz39g== -axios@1.4.0: - version "1.4.0" - resolved "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz" - integrity sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA== - dependencies: - follow-redirects "^1.15.0" - form-data "^4.0.0" - proxy-from-env "^1.1.0" - axios@1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.0.tgz#f1e5292f26b2fd5c2e66876adc5b06cdbd7d2102" @@ -2413,10 +2430,10 @@ complex.js@^2.1.1: resolved "https://registry.npmjs.org/complex.js/-/complex.js-2.1.1.tgz" integrity sha512-8njCHOTtFFLtegk6zQo0kkVX1rngygb/KQI6z1qZxlFI3scluC+LVTCFbrkWjBv4vvLlbQ9t88IPMC6k95VTTg== -compute-scroll-into-view@^3.0.3: - version "3.0.3" - resolved "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-3.0.3.tgz" - integrity sha512-nadqwNxghAGTamwIqQSG433W6OADZx2vCo3UXHNrzTRHK/htu+7+L0zhjEoaeaQVNAi3YgqWDv8+tzf0hRfR+A== +compute-scroll-into-view@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/compute-scroll-into-view/-/compute-scroll-into-view-3.1.0.tgz#753f11d972596558d8fe7c6bcbc8497690ab4c87" + integrity sha512-rj8l8pD4bJ1nx+dAkMhV1xB5RuZEyVysfxJqB1pRchh1KVvwOv9b7CGB8ZfjTImVv2oF+sYMUkMZq6Na5Ftmbg== concat-map@0.0.1: version "0.0.1" @@ -5155,9 +5172,9 @@ react-fast-compare@^3.1.1: resolved "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz" integrity sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ== -react-helmet@^6.1.0: +react-helmet@6.1.0: version "6.1.0" - resolved "https://registry.npmjs.org/react-helmet/-/react-helmet-6.1.0.tgz" + resolved "https://registry.yarnpkg.com/react-helmet/-/react-helmet-6.1.0.tgz#a750d5165cb13cf213e44747502652e794468726" integrity sha512-4uMzEY9nlDlgxr61NL3XbKRy1hEkXmKNXhjbAIOVw5vcFrsdYbH2FEwcNyWvWinl103nXgzYNlns9ca+8kFiWw== dependencies: object-assign "^4.1.1" @@ -5219,10 +5236,10 @@ react-remove-scroll@2.5.5: use-callback-ref "^1.3.0" use-sidecar "^1.1.2" -react-remove-scroll@^2.5.6: - version "2.5.6" - resolved "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.6.tgz" - integrity sha512-bO856ad1uDYLefgArk559IzUNeQ6SWH4QnrevIUjH+GczV56giDfl3h0Idptf2oIKxQmd1p9BN25jleKodTALg== +react-remove-scroll@^2.5.7: + version "2.5.7" + resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.5.7.tgz#15a1fd038e8497f65a695bf26a4a57970cac1ccb" + integrity sha512-FnrTWO4L7/Bhhf3CYBNArEG/yROV0tKmTv7/3h9QCFvH6sndeFf1wPqOcbFVu5VAulS5dV1wGT3GZZ/1GawqiA== dependencies: react-remove-scroll-bar "^2.3.4" react-style-singleton "^2.2.1"