From 536a0c0022619ab7443dca14154f2d1bee09b19f Mon Sep 17 00:00:00 2001 From: Lina Ebeid Date: Wed, 7 Aug 2024 16:05:41 +0200 Subject: [PATCH] feat: trigger un/collapse action (#829) * feat: trigger un/collapse action * feat: update packages --- package.json | 4 +- src/modules/item/Item.tsx | 74 +++++++- yarn.lock | 385 +++----------------------------------- 3 files changed, 91 insertions(+), 372 deletions(-) diff --git a/package.json b/package.json index d6dbbdbd..0cedeb56 100644 --- a/package.json +++ b/package.json @@ -38,9 +38,9 @@ "@emotion/styled": "11.13.0", "@graasp/chatbox": "3.1.0", "@graasp/query-client": "3.16.0", - "@graasp/sdk": "4.20.0", + "@graasp/sdk": "4.23.0", "@graasp/translations": "1.32.0", - "@graasp/ui": "4.21.0", + "@graasp/ui": "4.24.0", "@mui/icons-material": "5.16.4", "@mui/lab": "5.0.0-alpha.172", "@mui/material": "5.16.4", diff --git a/src/modules/item/Item.tsx b/src/modules/item/Item.tsx index a95660c0..a2d6cdd3 100644 --- a/src/modules/item/Item.tsx +++ b/src/modules/item/Item.tsx @@ -133,6 +133,15 @@ const FileContent = ({ item }: FileContentProps) => { } = useFileContentUrl(item.id); const { mutate: triggerAction } = mutations.usePostItemAction(); + const onCollapse = (c: boolean) => { + triggerAction({ + itemId: item.id, + payload: { + type: c ? ActionTriggers.CollapseItem : ActionTriggers.UnCollapseItem, + }, + }); + }; + const onDownloadClick = useCallback(() => { triggerAction({ itemId: item.id, @@ -168,6 +177,7 @@ const FileContent = ({ item }: FileContentProps) => { showCollapse={item.settings?.isCollapsible} pdfViewerLink={PDF_VIEWER_LINK} onClick={onDownloadClick} + onCollapse={onCollapse} /> ); }; @@ -184,6 +194,15 @@ const LinkContent = ({ item }: { item: LinkItemType }): JSX.Element => { }); }; + const onCollapse = (c: boolean) => { + triggerAction({ + itemId: item.id, + payload: { + type: c ? ActionTriggers.CollapseItem : ActionTriggers.UnCollapseItem, + }, + }); + }; + return ( { showIframe={item.settings?.showLinkIframe} showCollapse={item.settings?.isCollapsible} onClick={handleLinkClick} + onCollapse={onCollapse} /> ); }; -const DocumentContent = ({ item }: { item: DocumentItemType }): JSX.Element => ( - -); +const DocumentContent = ({ item }: { item: DocumentItemType }): JSX.Element => { + const { mutate: triggerAction } = mutations.usePostItemAction(); + + const onCollapse = (c: boolean) => { + triggerAction({ + itemId: item.id, + payload: { + type: c ? ActionTriggers.CollapseItem : ActionTriggers.UnCollapseItem, + }, + }); + }; + return ( + + ); +}; const AppContent = ({ item }: { item: AppItemType }): JSX.Element => { const { @@ -219,7 +252,16 @@ const AppContent = ({ item }: { item: AppItemType }): JSX.Element => { isSuccess: isSuccessMember, } = useCurrentMemberContext(); const { t: translateMessage } = useMessagesTranslation(); + const { mutate: triggerAction } = mutations.usePostItemAction(); + const onCollapse = (c: boolean) => { + triggerAction({ + itemId: item.id, + payload: { + type: c ? ActionTriggers.CollapseItem : ActionTriggers.UnCollapseItem, + }, + }); + }; if (member || isSuccessMember) return ( { itemId: item.id, }} showCollapse={item.settings?.isCollapsible} + onCollapse={onCollapse} /> ); @@ -258,6 +301,8 @@ const AppContent = ({ item }: { item: AppItemType }): JSX.Element => { const H5PContent = ({ item }: { item: H5PItemType }): JSX.Element => { const { t: translateMessage } = useMessagesTranslation(); + const { mutate: triggerAction } = mutations.usePostItemAction(); + const contentId = item?.extra?.h5p?.contentId; if (!contentId) { return ( @@ -266,6 +311,14 @@ const H5PContent = ({ item }: { item: H5PItemType }): JSX.Element => { ); } + const onCollapse = (c: boolean) => { + triggerAction({ + itemId: item.id, + payload: { + type: c ? ActionTriggers.CollapseItem : ActionTriggers.UnCollapseItem, + }, + }); + }; return ( { contentId={contentId} integrationUrl={H5P_INTEGRATION_URL} showCollapse={item.settings?.isCollapsible} + onCollapse={onCollapse} /> ); }; diff --git a/yarn.lock b/yarn.lock index c19e58b3..85b56b61 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1539,9 +1539,9 @@ __metadata: languageName: node linkType: hard -"@graasp/sdk@npm:4.20.0": - version: 4.20.0 - resolution: "@graasp/sdk@npm:4.20.0" +"@graasp/sdk@npm:4.23.0": + version: 4.23.0 + resolution: "@graasp/sdk@npm:4.23.0" dependencies: "@faker-js/faker": "npm:8.4.1" filesize: "npm:10.1.4" @@ -1550,7 +1550,7 @@ __metadata: peerDependencies: date-fns: ^3 uuid: ^9 || ^10.0.0 - checksum: 10/81e336d68094bcd234b4983217ce9f05d41501032fac00810bf927b8289ef933e18cdfb0e1b0275df6af5a7683b54a8ebf509134aa95b4c7ecfce4a5f313752d + checksum: 10/56d5f8a4899b1a8b8e4aa33bb9d7473b60c0b1a10eb298a798ea0390203d42f44d5c19568df785230fe40ab3bf565db879573d868e14ad388cfe9a6eec201b5b languageName: node linkType: hard @@ -1563,9 +1563,9 @@ __metadata: languageName: node linkType: hard -"@graasp/ui@npm:4.21.0": - version: 4.21.0 - resolution: "@graasp/ui@npm:4.21.0" +"@graasp/ui@npm:4.24.0": + version: 4.24.0 + resolution: "@graasp/ui@npm:4.24.0" dependencies: "@ag-grid-community/client-side-row-model": "npm:31.3.2" "@ag-grid-community/react": "npm:^31.3.2" @@ -1575,18 +1575,18 @@ __metadata: interweave: "npm:13.1.0" katex: "npm:0.16.11" lodash.truncate: "npm:4.4.2" - lucide-react: "npm:0.402.0" + lucide-react: "npm:0.408.0" react-cookie-consent: "npm:9.0.0" react-dnd: "npm:16.0.1" react-dnd-html5-backend: "npm:16.0.1" react-quill: "npm:2.0.0" react-rnd: "npm:10.4.11" uuid: "npm:10.0.0" - vitest: "npm:1.6.0" + vitest: "npm:2.0.4" peerDependencies: - "@emotion/cache": ~11.10.7 || ~11.11.0 - "@emotion/react": ~11.10.6 || ~11.11.0 - "@emotion/styled": ~11.10.6 || ~11.11.0 + "@emotion/cache": ~11.10.7 || ~11.11.0 || ~11.13.0 + "@emotion/react": ~11.10.6 || ~11.11.0 || ~11.13.0 + "@emotion/styled": ~11.10.6 || ~11.11.0 || ~11.13.0 "@graasp/sdk": ^4.14.0 "@graasp/translations": ^1.23.0 "@mui/icons-material": ~5.14.0 || ~5.15.0 || ~5.16.0 @@ -1595,11 +1595,11 @@ __metadata: i18next: ^22.4.15 || ^23.0.0 react: ^18.0.0 react-dom: ^18.0.0 - react-i18next: ^13.0.0 || ^14.0.0 + react-i18next: ^13.0.0 || ^14.0.0 || ^15.0.0 react-router-dom: ^6.11.0 stylis: ^4.1.3 stylis-plugin-rtl: ^2.1.1 - checksum: 10/6a8778ae27ebb534204a44e1f97b08fdba6d7524fe3417fd7eaab8f4cf66e19800a38812f0b10c8796c885d6cabc5823bed137aebfbf36f29308ac7f04525314 + checksum: 10/22c9ef1a65edc074576c1c9c80de7ef6456e8f21149489932ca31ca37effa7bd776fb9b9197eddde176da893a11b5bf968709d4e1146cba7c5af641d4e623446 languageName: node linkType: hard @@ -1662,15 +1662,6 @@ __metadata: languageName: node linkType: hard -"@jest/schemas@npm:^29.6.3": - version: 29.6.3 - resolution: "@jest/schemas@npm:29.6.3" - dependencies: - "@sinclair/typebox": "npm:^0.27.8" - checksum: 10/910040425f0fc93cd13e68c750b7885590b8839066dfa0cd78e7def07bbb708ad869381f725945d66f2284de5663bbecf63e8fdd856e2ae6e261ba30b1687e93 - languageName: node - linkType: hard - "@joshwooding/vite-plugin-react-docgen-typescript@npm:0.3.1": version: 0.3.1 resolution: "@joshwooding/vite-plugin-react-docgen-typescript@npm:0.3.1" @@ -2299,13 +2290,6 @@ __metadata: languageName: node linkType: hard -"@sinclair/typebox@npm:^0.27.8": - version: 0.27.8 - resolution: "@sinclair/typebox@npm:0.27.8" - checksum: 10/297f95ff77c82c54de8c9907f186076e715ff2621c5222ba50b8d40a170661c0c5242c763cba2a4791f0f91cb1d8ffa53ea1d7294570cf8cd4694c0e383e484d - languageName: node - linkType: hard - "@storybook/builder-vite@npm:8.1.11": version: 8.1.11 resolution: "@storybook/builder-vite@npm:8.1.11" @@ -3238,17 +3222,6 @@ __metadata: languageName: node linkType: hard -"@vitest/expect@npm:1.6.0": - version: 1.6.0 - resolution: "@vitest/expect@npm:1.6.0" - dependencies: - "@vitest/spy": "npm:1.6.0" - "@vitest/utils": "npm:1.6.0" - chai: "npm:^4.3.10" - checksum: 10/e82304a12e22b98c1ccea81e8f33c838561deb878588eac463164cc4f8fc0c401ace3a9e6758d9e3a6bcc01313e845e8478aaefb7548eaded04b8de12c1928f6 - languageName: node - linkType: hard - "@vitest/expect@npm:2.0.4": version: 2.0.4 resolution: "@vitest/expect@npm:2.0.4" @@ -3270,17 +3243,6 @@ __metadata: languageName: node linkType: hard -"@vitest/runner@npm:1.6.0": - version: 1.6.0 - resolution: "@vitest/runner@npm:1.6.0" - dependencies: - "@vitest/utils": "npm:1.6.0" - p-limit: "npm:^5.0.0" - pathe: "npm:^1.1.1" - checksum: 10/d83a608be36dace77f91a9d15ab7753f9c5923281188a8d9cb5ccec770df9cc9ba80e5e1e3465328c7605977be0f0708610855abf5f4af037a4ede5f51a83e47 - languageName: node - linkType: hard - "@vitest/runner@npm:2.0.4": version: 2.0.4 resolution: "@vitest/runner@npm:2.0.4" @@ -3291,17 +3253,6 @@ __metadata: languageName: node linkType: hard -"@vitest/snapshot@npm:1.6.0": - version: 1.6.0 - resolution: "@vitest/snapshot@npm:1.6.0" - dependencies: - magic-string: "npm:^0.30.5" - pathe: "npm:^1.1.1" - pretty-format: "npm:^29.7.0" - checksum: 10/0bfc26a48b45814604ff0f7276d73a047b79f3618e0b620ff54ea2de548e9603a9770963ba6ebb19f7ea1ed51001cbca58d74aa0271651d4f8e88c6233885eba - languageName: node - linkType: hard - "@vitest/snapshot@npm:2.0.4": version: 2.0.4 resolution: "@vitest/snapshot@npm:2.0.4" @@ -3313,15 +3264,6 @@ __metadata: languageName: node linkType: hard -"@vitest/spy@npm:1.6.0": - version: 1.6.0 - resolution: "@vitest/spy@npm:1.6.0" - dependencies: - tinyspy: "npm:^2.2.0" - checksum: 10/1c9698272a58aa47708bb8a1672d655fcec3285b02067cc3f70bfe76f4eda7a756eb379f8c945ccbe61677f5189aeb5ba93c2737a9d7db2de8c4e7bbdffcd372 - languageName: node - linkType: hard - "@vitest/spy@npm:2.0.4": version: 2.0.4 resolution: "@vitest/spy@npm:2.0.4" @@ -3331,18 +3273,6 @@ __metadata: languageName: node linkType: hard -"@vitest/utils@npm:1.6.0": - version: 1.6.0 - resolution: "@vitest/utils@npm:1.6.0" - dependencies: - diff-sequences: "npm:^29.6.3" - estree-walker: "npm:^3.0.3" - loupe: "npm:^2.3.7" - pretty-format: "npm:^29.7.0" - checksum: 10/5c5d7295ac13fcea1da039232bcc7c3fc6f070070fe12ba2ad152456af6e216e48a3ae169016cfcd5055706a00dc567b8f62e4a9b1914f069f52b8f0a3c25e60 - languageName: node - linkType: hard - "@vitest/utils@npm:2.0.4": version: 2.0.4 resolution: "@vitest/utils@npm:2.0.4" @@ -3420,13 +3350,6 @@ __metadata: languageName: node linkType: hard -"acorn-walk@npm:^8.3.2": - version: 8.3.2 - resolution: "acorn-walk@npm:8.3.2" - checksum: 10/57dbe2fd8cf744f562431775741c5c087196cd7a65ce4ccb3f3981cdfad25cd24ad2bad404997b88464ac01e789a0a61e5e355b2a84876f13deef39fb39686ca - languageName: node - linkType: hard - "acorn@npm:^7.4.1": version: 7.4.1 resolution: "acorn@npm:7.4.1" @@ -3536,13 +3459,6 @@ __metadata: languageName: node linkType: hard -"ansi-styles@npm:^5.0.0": - version: 5.2.0 - resolution: "ansi-styles@npm:5.2.0" - checksum: 10/d7f4e97ce0623aea6bc0d90dcd28881ee04cba06c570b97fd3391bd7a268eedfd9d5e2dd4fdcbdd82b8105df5faf6f24aaedc08eaf3da898e702db5948f63469 - languageName: node - linkType: hard - "ansi-styles@npm:^6.1.0": version: 6.2.1 resolution: "ansi-styles@npm:6.2.1" @@ -3770,13 +3686,6 @@ __metadata: languageName: node linkType: hard -"assertion-error@npm:^1.1.0": - version: 1.1.0 - resolution: "assertion-error@npm:1.1.0" - checksum: 10/fd9429d3a3d4fd61782eb3962ae76b6d08aa7383123fca0596020013b3ebd6647891a85b05ce821c47d1471ed1271f00b0545cf6a4326cf2fc91efcc3b0fbecf - languageName: node - linkType: hard - "assertion-error@npm:^2.0.1": version: 2.0.1 resolution: "assertion-error@npm:2.0.1" @@ -4134,21 +4043,6 @@ __metadata: languageName: node linkType: hard -"chai@npm:^4.3.10": - version: 4.4.1 - resolution: "chai@npm:4.4.1" - dependencies: - assertion-error: "npm:^1.1.0" - check-error: "npm:^1.0.3" - deep-eql: "npm:^4.1.3" - get-func-name: "npm:^2.0.2" - loupe: "npm:^2.3.6" - pathval: "npm:^1.1.1" - type-detect: "npm:^4.0.8" - checksum: 10/c6d7aba913a67529c68dbec3673f94eb9c586c5474cc5142bd0b587c9c9ec9e5fbaa937e038ecaa6475aea31433752d5fabdd033b9248bde6ae53befcde774ae - languageName: node - linkType: hard - "chai@npm:^5.1.1": version: 5.1.1 resolution: "chai@npm:5.1.1" @@ -4218,15 +4112,6 @@ __metadata: languageName: node linkType: hard -"check-error@npm:^1.0.3": - version: 1.0.3 - resolution: "check-error@npm:1.0.3" - dependencies: - get-func-name: "npm:^2.0.2" - checksum: 10/e2131025cf059b21080f4813e55b3c480419256914601750b0fee3bd9b2b8315b531e551ef12560419b8b6d92a3636511322752b1ce905703239e7cc451b6399 - languageName: node - linkType: hard - "check-error@npm:^2.1.1": version: 2.1.1 resolution: "check-error@npm:2.1.1" @@ -4902,15 +4787,6 @@ __metadata: languageName: node linkType: hard -"deep-eql@npm:^4.1.3": - version: 4.1.3 - resolution: "deep-eql@npm:4.1.3" - dependencies: - type-detect: "npm:^4.0.0" - checksum: 10/12ce93ae63de187e77b076d3d51bfc28b11f98910a22c18714cce112791195e86a94f97788180994614b14562a86c9763f67c69f785e4586f806b5df39bf9301 - languageName: node - linkType: hard - "deep-eql@npm:^5.0.1": version: 5.0.2 resolution: "deep-eql@npm:5.0.2" @@ -5040,13 +4916,6 @@ __metadata: languageName: node linkType: hard -"diff-sequences@npm:^29.6.3": - version: 29.6.3 - resolution: "diff-sequences@npm:29.6.3" - checksum: 10/179daf9d2f9af5c57ad66d97cb902a538bcf8ed64963fa7aa0c329b3de3665ce2eb6ffdc2f69f29d445fa4af2517e5e55e5b6e00c00a9ae4f43645f97f7078cb - languageName: node - linkType: hard - "dir-glob@npm:^3.0.1": version: 3.0.1 resolution: "dir-glob@npm:3.0.1" @@ -6520,7 +6389,7 @@ __metadata: languageName: node linkType: hard -"get-func-name@npm:^2.0.1, get-func-name@npm:^2.0.2": +"get-func-name@npm:^2.0.1": version: 2.0.2 resolution: "get-func-name@npm:2.0.2" checksum: 10/3f62f4c23647de9d46e6f76d2b3eafe58933a9b3830c60669e4180d6c601ce1b4aa310ba8366143f55e52b139f992087a9f0647274e8745621fa2af7e0acf13b @@ -6756,9 +6625,9 @@ __metadata: "@emotion/styled": "npm:11.13.0" "@graasp/chatbox": "npm:3.1.0" "@graasp/query-client": "npm:3.16.0" - "@graasp/sdk": "npm:4.20.0" + "@graasp/sdk": "npm:4.23.0" "@graasp/translations": "npm:1.32.0" - "@graasp/ui": "npm:4.21.0" + "@graasp/ui": "npm:4.24.0" "@mui/icons-material": "npm:5.16.4" "@mui/lab": "npm:5.0.0-alpha.172" "@mui/material": "npm:5.16.4" @@ -7843,13 +7712,6 @@ __metadata: languageName: node linkType: hard -"js-tokens@npm:^9.0.0": - version: 9.0.0 - resolution: "js-tokens@npm:9.0.0" - checksum: 10/65e7a55a1a18d61f1cf94bfd7704da870b74337fa08d4c58118e69a8b10225b5ad887ff3ae595d720301b0924811a9b0594c679621a85ecbac6e3aac8533c53b - languageName: node - linkType: hard - "js-yaml@npm:4.1.0, js-yaml@npm:^4.1.0": version: 4.1.0 resolution: "js-yaml@npm:4.1.0" @@ -7965,13 +7827,6 @@ __metadata: languageName: node linkType: hard -"jsonc-parser@npm:^3.2.0": - version: 3.2.1 - resolution: "jsonc-parser@npm:3.2.1" - checksum: 10/fe2df6f39e21653781d52cae20c5b9e0ab62461918d97f9430b216cea9b6500efc1d8b42c6584cc0a7548b4c996055e9cdc39f09b9782fa6957af2f45306c530 - languageName: node - linkType: hard - "jsonfile@npm:^6.0.1": version: 6.1.0 resolution: "jsonfile@npm:6.1.0" @@ -8117,16 +7972,6 @@ __metadata: languageName: node linkType: hard -"local-pkg@npm:^0.5.0": - version: 0.5.0 - resolution: "local-pkg@npm:0.5.0" - dependencies: - mlly: "npm:^1.4.2" - pkg-types: "npm:^1.0.3" - checksum: 10/20f4caba50dc6fb00ffcc1a78bc94b5acb33995e0aadf4d4edcdeab257e891aa08f50afddf02f3240b2c3d02432bc2078f2a916a280ed716b64753a3d250db70 - languageName: node - linkType: hard - "localforage@npm:^1.8.1": version: 1.10.0 resolution: "localforage@npm:1.10.0" @@ -8308,15 +8153,6 @@ __metadata: languageName: node linkType: hard -"loupe@npm:^2.3.6, loupe@npm:^2.3.7": - version: 2.3.7 - resolution: "loupe@npm:2.3.7" - dependencies: - get-func-name: "npm:^2.0.1" - checksum: 10/635c8f0914c2ce7ecfe4e239fbaf0ce1d2c00e4246fafcc4ed000bfdb1b8f89d05db1a220054175cca631ebf3894872a26fffba0124477fcb562f78762848fb1 - languageName: node - linkType: hard - "loupe@npm:^3.1.0, loupe@npm:^3.1.1": version: 3.1.1 resolution: "loupe@npm:3.1.1" @@ -8351,12 +8187,12 @@ __metadata: languageName: node linkType: hard -"lucide-react@npm:0.402.0": - version: 0.402.0 - resolution: "lucide-react@npm:0.402.0" +"lucide-react@npm:0.408.0": + version: 0.408.0 + resolution: "lucide-react@npm:0.408.0" peerDependencies: react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0 - checksum: 10/fe8a7d5b65e469ee9f376e65942a1cb66aa39fc650265be4153e0f0235a0a5b09cdb03e8f51ed1f2319bdf91e1ae0859c61fe3a25c68e08ecb289a692bf52a17 + checksum: 10/3849f76a3aec5a60008606d661ba8b540f2769b117a797c4c5300f303f18971a725b9de0410f278b89004bff99d1596e3669acb46c6452aa9bd7b029acd1c758 languageName: node linkType: hard @@ -8378,7 +8214,7 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.30.0, magic-string@npm:^0.30.5": +"magic-string@npm:^0.30.0": version: 0.30.9 resolution: "magic-string@npm:0.30.9" dependencies: @@ -9221,18 +9057,6 @@ __metadata: languageName: node linkType: hard -"mlly@npm:^1.2.0, mlly@npm:^1.4.2": - version: 1.6.1 - resolution: "mlly@npm:1.6.1" - dependencies: - acorn: "npm:^8.11.3" - pathe: "npm:^1.1.2" - pkg-types: "npm:^1.0.3" - ufo: "npm:^1.3.2" - checksum: 10/00b4c355236eb3d0294106f208718db486f6e34e28bbb7f6965bd9d6237db338e566f2e13489fbf8bfa9b1337c0f2568d4aeac1840f9963054c91881acc974a9 - languageName: node - linkType: hard - "ms@npm:2.0.0": version: 2.0.0 resolution: "ms@npm:2.0.0" @@ -9590,15 +9414,6 @@ __metadata: languageName: node linkType: hard -"p-limit@npm:^5.0.0": - version: 5.0.0 - resolution: "p-limit@npm:5.0.0" - dependencies: - yocto-queue: "npm:^1.0.0" - checksum: 10/87bf5837dee6942f0dbeff318436179931d9a97848d1b07dbd86140a477a5d2e6b90d9701b210b4e21fe7beaea2979dfde366e4f576fa644a59bd4d6a6371da7 - languageName: node - linkType: hard - "p-locate@npm:^4.1.0": version: 4.1.0 resolution: "p-locate@npm:4.1.0" @@ -9780,20 +9595,13 @@ __metadata: languageName: node linkType: hard -"pathe@npm:^1.1.0, pathe@npm:^1.1.1, pathe@npm:^1.1.2": +"pathe@npm:^1.1.2": version: 1.1.2 resolution: "pathe@npm:1.1.2" checksum: 10/f201d796351bf7433d147b92c20eb154a4e0ea83512017bf4ec4e492a5d6e738fb45798be4259a61aa81270179fce11026f6ff0d3fa04173041de044defe9d80 languageName: node linkType: hard -"pathval@npm:^1.1.1": - version: 1.1.1 - resolution: "pathval@npm:1.1.1" - checksum: 10/b50a4751068aa3a5428f5a0b480deecedc6f537666a3630a0c2ae2d5e7c0f4bf0ee77b48404441ec1220bef0c91625e6030b3d3cf5a32ab0d9764018d1d9dbb6 - languageName: node - linkType: hard - "pathval@npm:^2.0.0": version: 2.0.0 resolution: "pathval@npm:2.0.0" @@ -9861,17 +9669,6 @@ __metadata: languageName: node linkType: hard -"pkg-types@npm:^1.0.3": - version: 1.0.3 - resolution: "pkg-types@npm:1.0.3" - dependencies: - jsonc-parser: "npm:^3.2.0" - mlly: "npm:^1.2.0" - pathe: "npm:^1.1.0" - checksum: 10/e17e1819ce579c9ea390e4c41a9ed9701d8cff14b463f9577cc4f94688da8917c66dabc40feacd47a21eb3de9b532756a78becd882b76add97053af307c1240a - languageName: node - linkType: hard - "possible-typed-array-names@npm:^1.0.0": version: 1.0.0 resolution: "possible-typed-array-names@npm:1.0.0" @@ -9933,17 +9730,6 @@ __metadata: languageName: node linkType: hard -"pretty-format@npm:^29.7.0": - version: 29.7.0 - resolution: "pretty-format@npm:29.7.0" - dependencies: - "@jest/schemas": "npm:^29.6.3" - ansi-styles: "npm:^5.0.0" - react-is: "npm:^18.0.0" - checksum: 10/dea96bc83c83cd91b2bfc55757b6b2747edcaac45b568e46de29deee80742f17bc76fe8898135a70d904f4928eafd8bb693cd1da4896e8bdd3c5e82cadf1d2bb - languageName: node - linkType: hard - "pretty-hrtime@npm:^1.0.3": version: 1.0.3 resolution: "pretty-hrtime@npm:1.0.3" @@ -10367,7 +10153,7 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^18.0.0, react-is@npm:^18.2.0": +"react-is@npm:^18.2.0": version: 18.2.0 resolution: "react-is@npm:18.2.0" checksum: 10/200cd65bf2e0be7ba6055f647091b725a45dd2a6abef03bf2380ce701fd5edccee40b49b9d15edab7ac08a762bf83cb4081e31ec2673a5bfb549a36ba21570df @@ -11304,7 +11090,7 @@ __metadata: languageName: node linkType: hard -"std-env@npm:^3.5.0, std-env@npm:^3.7.0": +"std-env@npm:^3.7.0": version: 3.7.0 resolution: "std-env@npm:3.7.0" checksum: 10/6ee0cca1add3fd84656b0002cfbc5bfa20340389d9ba4720569840f1caa34bce74322aef4c93f046391583e50649d0cf81a5f8fe1d411e50b659571690a45f12 @@ -11488,15 +11274,6 @@ __metadata: languageName: node linkType: hard -"strip-literal@npm:^2.0.0": - version: 2.1.0 - resolution: "strip-literal@npm:2.1.0" - dependencies: - js-tokens: "npm:^9.0.0" - checksum: 10/21c813aa1e669944e7e2318c8c927939fb90b0c52f53f57282bfc3dd6e19d53f70004f1f1693e33e5e790ad5ef102b0fce2b243808229d1ce07ae71f326c0e82 - languageName: node - linkType: hard - "style-to-object@npm:^1.0.0": version: 1.0.6 resolution: "style-to-object@npm:1.0.6" @@ -11681,13 +11458,6 @@ __metadata: languageName: node linkType: hard -"tinybench@npm:^2.5.1": - version: 2.7.0 - resolution: "tinybench@npm:2.7.0" - checksum: 10/8baa1d514f7df8c7edf3739639007b4094a91e8a398b87aca64cb31bdae4b6f53ff84975b6e4e4288cf0089148cdfff5183413ec7e0606e108720e203747162b - languageName: node - linkType: hard - "tinybench@npm:^2.8.0": version: 2.8.0 resolution: "tinybench@npm:2.8.0" @@ -11695,13 +11465,6 @@ __metadata: languageName: node linkType: hard -"tinypool@npm:^0.8.3": - version: 0.8.4 - resolution: "tinypool@npm:0.8.4" - checksum: 10/7365944c2532f240111443e7012be31a634faf1a02db08a91db3aa07361c26a374d0be00a0f2ea052c4bee39c107ba67f1f814c108d9d51dfc725c559c1a9c03 - languageName: node - linkType: hard - "tinypool@npm:^1.0.0": version: 1.0.0 resolution: "tinypool@npm:1.0.0" @@ -11716,13 +11479,6 @@ __metadata: languageName: node linkType: hard -"tinyspy@npm:^2.2.0": - version: 2.2.1 - resolution: "tinyspy@npm:2.2.1" - checksum: 10/170d6232e87f9044f537b50b406a38fbfd6f79a261cd12b92879947bd340939a833a678632ce4f5c4a6feab4477e9c21cd43faac3b90b68b77dd0536c4149736 - languageName: node - linkType: hard - "tinyspy@npm:^3.0.0": version: 3.0.0 resolution: "tinyspy@npm:3.0.0" @@ -11880,13 +11636,6 @@ __metadata: languageName: node linkType: hard -"type-detect@npm:^4.0.0, type-detect@npm:^4.0.8": - version: 4.0.8 - resolution: "type-detect@npm:4.0.8" - checksum: 10/5179e3b8ebc51fce1b13efb75fdea4595484433f9683bbc2dca6d99789dba4e602ab7922d2656f2ce8383987467f7770131d4a7f06a26287db0615d2f4c4ce7d - languageName: node - linkType: hard - "type-fest@npm:^0.20.2": version: 0.20.2 resolution: "type-fest@npm:0.20.2" @@ -12013,13 +11762,6 @@ __metadata: languageName: node linkType: hard -"ufo@npm:^1.3.2": - version: 1.5.3 - resolution: "ufo@npm:1.5.3" - checksum: 10/2b30dddd873c643efecdb58cfe457183cd4d95937ccdacca6942c697b87a2c578232c25a5149fda85436696bf0fdbc213bf2b220874712bc3e58c0fb00a2c950 - languageName: node - linkType: hard - "uglify-js@npm:^3.1.4": version: 3.17.4 resolution: "uglify-js@npm:3.17.4" @@ -12328,21 +12070,6 @@ __metadata: languageName: node linkType: hard -"vite-node@npm:1.6.0": - version: 1.6.0 - resolution: "vite-node@npm:1.6.0" - dependencies: - cac: "npm:^6.7.14" - debug: "npm:^4.3.4" - pathe: "npm:^1.1.1" - picocolors: "npm:^1.0.0" - vite: "npm:^5.0.0" - bin: - vite-node: vite-node.mjs - checksum: 10/40230598c3c285cf65f407ac50b1c7753ab2dfa960de76ec1a95a0ce0ff963919d065c29ba538d9fb2fba3e0703a051d49d1ad6486001ba2f90616cc706ddc3d - languageName: node - linkType: hard - "vite-node@npm:2.0.4": version: 2.0.4 resolution: "vite-node@npm:2.0.4" @@ -12506,56 +12233,6 @@ __metadata: languageName: node linkType: hard -"vitest@npm:1.6.0": - version: 1.6.0 - resolution: "vitest@npm:1.6.0" - dependencies: - "@vitest/expect": "npm:1.6.0" - "@vitest/runner": "npm:1.6.0" - "@vitest/snapshot": "npm:1.6.0" - "@vitest/spy": "npm:1.6.0" - "@vitest/utils": "npm:1.6.0" - acorn-walk: "npm:^8.3.2" - chai: "npm:^4.3.10" - debug: "npm:^4.3.4" - execa: "npm:^8.0.1" - local-pkg: "npm:^0.5.0" - magic-string: "npm:^0.30.5" - pathe: "npm:^1.1.1" - picocolors: "npm:^1.0.0" - std-env: "npm:^3.5.0" - strip-literal: "npm:^2.0.0" - tinybench: "npm:^2.5.1" - tinypool: "npm:^0.8.3" - vite: "npm:^5.0.0" - vite-node: "npm:1.6.0" - why-is-node-running: "npm:^2.2.2" - peerDependencies: - "@edge-runtime/vm": "*" - "@types/node": ^18.0.0 || >=20.0.0 - "@vitest/browser": 1.6.0 - "@vitest/ui": 1.6.0 - happy-dom: "*" - jsdom: "*" - peerDependenciesMeta: - "@edge-runtime/vm": - optional: true - "@types/node": - optional: true - "@vitest/browser": - optional: true - "@vitest/ui": - optional: true - happy-dom: - optional: true - jsdom: - optional: true - bin: - vitest: vitest.mjs - checksum: 10/ad921a723ac9438636d37111f0b2ea5afd0ba4a7813fb75382b9f75574e10d533cf950573ebb9332a595ce197cb83593737a6b55a3b6e6eb00bddbcd0920a03e - languageName: node - linkType: hard - "vitest@npm:2.0.4": version: 2.0.4 resolution: "vitest@npm:2.0.4" @@ -12790,18 +12467,6 @@ __metadata: languageName: node linkType: hard -"why-is-node-running@npm:^2.2.2": - version: 2.2.2 - resolution: "why-is-node-running@npm:2.2.2" - dependencies: - siginfo: "npm:^2.0.0" - stackback: "npm:0.0.2" - bin: - why-is-node-running: cli.js - checksum: 10/f3582e0337f4b25537d492b1d40f00b978ce04b1d1eeea8f310bfa8aae8a7d11d118d672e2f0760c164ce3753a620a70aa29ff3620e340197624940cf9c08615 - languageName: node - linkType: hard - "why-is-node-running@npm:^2.3.0": version: 2.3.0 resolution: "why-is-node-running@npm:2.3.0"