@flipdish/portal-library 7.12.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -4
- package/dist/components/atoms/Tab/index.cjs.js +1 -1
- package/dist/components/atoms/Tab/index.cjs.js.map +1 -1
- package/dist/components/atoms/Tab/index.d.ts +4 -1
- package/dist/components/atoms/Tab/index.js +1 -1
- package/dist/components/atoms/Tab/index.js.map +1 -1
- package/dist/components/atoms/Tag/index.cjs.js +1 -1
- package/dist/components/atoms/Tag/index.cjs.js.map +1 -1
- package/dist/components/atoms/Tag/index.d.ts +3 -7
- package/dist/components/atoms/Tag/index.js +1 -1
- package/dist/components/atoms/Tag/index.js.map +1 -1
- package/dist/components/atoms/TextArea/index.cjs.js.map +1 -1
- package/dist/components/atoms/TextArea/index.d.ts +1 -1
- package/dist/components/atoms/TextArea/index.js.map +1 -1
- package/dist/components/atoms/TextField/index.cjs.js +1 -1
- package/dist/components/atoms/TextField/index.cjs.js.map +1 -1
- package/dist/components/atoms/TextField/index.d.ts +5 -22
- package/dist/components/atoms/TextField/index.js +1 -1
- package/dist/components/atoms/TextField/index.js.map +1 -1
- package/dist/components/molecules/AlertGlobal/index.cjs.js +1 -1
- package/dist/components/molecules/AlertGlobal/index.cjs.js.map +1 -1
- package/dist/components/molecules/AlertGlobal/index.d.ts +1 -8
- package/dist/components/molecules/AlertGlobal/index.js +1 -1
- package/dist/components/molecules/AlertGlobal/index.js.map +1 -1
- package/dist/components/molecules/Autocomplete/index.cjs.js +1 -1
- package/dist/components/molecules/Autocomplete/index.cjs.js.map +1 -1
- package/dist/components/molecules/Autocomplete/index.d.ts +1 -16
- package/dist/components/molecules/Autocomplete/index.js +1 -1
- package/dist/components/molecules/Autocomplete/index.js.map +1 -1
- package/dist/components/molecules/Pagination/index.cjs.js +1 -1
- package/dist/components/molecules/Pagination/index.cjs.js.map +1 -1
- package/dist/components/molecules/Pagination/index.d.ts +1 -12
- package/dist/components/molecules/Pagination/index.js +1 -1
- package/dist/components/molecules/Pagination/index.js.map +1 -1
- package/dist/components/molecules/QuantitySelector/index.cjs.js +1 -1
- package/dist/components/molecules/QuantitySelector/index.cjs.js.map +1 -1
- package/dist/components/molecules/QuantitySelector/index.d.ts +1 -7
- package/dist/components/molecules/QuantitySelector/index.js +1 -1
- package/dist/components/molecules/QuantitySelector/index.js.map +1 -1
- package/dist/components/molecules/Rating/index.cjs.js +1 -1
- package/dist/components/molecules/Rating/index.cjs.js.map +1 -1
- package/dist/components/molecules/Rating/index.d.ts +0 -15
- package/dist/components/molecules/Rating/index.js +1 -1
- package/dist/components/molecules/Rating/index.js.map +1 -1
- package/dist/components/molecules/SearchInput/index.cjs.js +1 -1
- package/dist/components/molecules/SearchInput/index.cjs.js.map +1 -1
- package/dist/components/molecules/SearchInput/index.d.ts +1 -5
- package/dist/components/molecules/SearchInput/index.js +1 -1
- package/dist/components/molecules/SearchInput/index.js.map +1 -1
- package/dist/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.cjs.js +2 -0
- package/dist/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.cjs.js.map +1 -0
- package/dist/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.d.ts +11 -0
- package/dist/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.js +2 -0
- package/dist/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.js.map +1 -0
- package/dist/components/organisms/AssetManager/LibraryTabContent/index.cjs.js +1 -1
- package/dist/components/organisms/AssetManager/LibraryTabContent/index.cjs.js.map +1 -1
- package/dist/components/organisms/AssetManager/LibraryTabContent/index.d.ts +10 -10
- package/dist/components/organisms/AssetManager/LibraryTabContent/index.js +1 -1
- package/dist/components/organisms/AssetManager/LibraryTabContent/index.js.map +1 -1
- package/dist/components/organisms/AssetManager/__mocks__/mockAssets.cjs.js +1 -1
- package/dist/components/organisms/AssetManager/__mocks__/mockAssets.cjs.js.map +1 -1
- package/dist/components/organisms/AssetManager/__mocks__/mockAssets.js +1 -1
- package/dist/components/organisms/AssetManager/__mocks__/mockAssets.js.map +1 -1
- package/dist/components/organisms/AssetManager/assets.queryKeys.cjs.js +2 -0
- package/dist/components/organisms/AssetManager/assets.queryKeys.cjs.js.map +1 -0
- package/dist/components/organisms/AssetManager/assets.queryKeys.d.ts +13 -0
- package/dist/components/organisms/AssetManager/assets.queryKeys.js +2 -0
- package/dist/components/organisms/AssetManager/assets.queryKeys.js.map +1 -0
- package/dist/components/organisms/AssetManager/hooks/useGetAssets.cjs.js +1 -1
- package/dist/components/organisms/AssetManager/hooks/useGetAssets.cjs.js.map +1 -1
- package/dist/components/organisms/AssetManager/hooks/useGetAssets.js +1 -1
- package/dist/components/organisms/AssetManager/hooks/useGetAssets.js.map +1 -1
- package/dist/components/organisms/AssetManager/hooks/useUploadAsset.cjs.js +1 -1
- package/dist/components/organisms/AssetManager/hooks/useUploadAsset.cjs.js.map +1 -1
- package/dist/components/organisms/AssetManager/hooks/useUploadAsset.d.ts +1 -1
- package/dist/components/organisms/AssetManager/hooks/useUploadAsset.js +1 -1
- package/dist/components/organisms/AssetManager/hooks/useUploadAsset.js.map +1 -1
- package/dist/components/organisms/AssetManager/index.cjs.js +1 -1
- package/dist/components/organisms/AssetManager/index.cjs.js.map +1 -1
- package/dist/components/organisms/AssetManager/index.js +1 -1
- package/dist/components/organisms/AssetManager/index.js.map +1 -1
- package/dist/components/organisms/AssetManager/services/asset.service.cjs.js +1 -1
- package/dist/components/organisms/AssetManager/services/asset.service.cjs.js.map +1 -1
- package/dist/components/organisms/AssetManager/services/asset.service.d.ts +1 -3
- package/dist/components/organisms/AssetManager/services/asset.service.js +1 -1
- package/dist/components/organisms/AssetManager/services/asset.service.js.map +1 -1
- package/dist/components/organisms/AssetManager/types/index.cjs.js.map +1 -1
- package/dist/components/organisms/AssetManager/types/index.d.ts +4 -9
- package/dist/components/organisms/AssetManager/types/index.js.map +1 -1
- package/dist/components/organisms/FileUpload/components/FileDropZone.cjs.js +1 -1
- package/dist/components/organisms/FileUpload/components/FileDropZone.cjs.js.map +1 -1
- package/dist/components/organisms/FileUpload/components/FileDropZone.js +1 -1
- package/dist/components/organisms/FileUpload/components/FileDropZone.js.map +1 -1
- package/dist/components/organisms/FileUpload/components/FileItem.cjs.js +1 -1
- package/dist/components/organisms/FileUpload/components/FileItem.cjs.js.map +1 -1
- package/dist/components/organisms/FileUpload/components/FileItem.js +1 -1
- package/dist/components/organisms/FileUpload/components/FileItem.js.map +1 -1
- package/dist/components/organisms/Heading/Heading.cjs.js +1 -1
- package/dist/components/organisms/Heading/Heading.cjs.js.map +1 -1
- package/dist/components/organisms/Heading/Heading.d.ts +0 -1
- package/dist/components/organisms/Heading/Heading.js +1 -1
- package/dist/components/organisms/Heading/Heading.js.map +1 -1
- package/dist/components/organisms/ImageUploadWidget/components/FlipdishFonts.cjs.js +2 -2
- package/dist/components/organisms/ImageUploadWidget/components/FlipdishFonts.cjs.js.map +1 -1
- package/dist/components/organisms/ImageUploadWidget/components/FlipdishFonts.js +2 -2
- package/dist/components/organisms/ImageUploadWidget/components/FlipdishFonts.js.map +1 -1
- package/dist/localization/de.json.cjs.js +1 -1
- package/dist/localization/de.json.js +1 -1
- package/dist/localization/dev-lang.json.cjs.js +1 -1
- package/dist/localization/dev-lang.json.js +1 -1
- package/dist/localization/en-US.json.cjs.js +1 -1
- package/dist/localization/en-US.json.js +1 -1
- package/dist/localization/en.json.cjs.js +1 -1
- package/dist/localization/en.json.d.ts +186 -1
- package/dist/localization/en.json.js +1 -1
- package/dist/localization/es-MX.json.cjs.js +1 -1
- package/dist/localization/es-MX.json.js +1 -1
- package/dist/localization/es.json.cjs.js +1 -1
- package/dist/localization/es.json.js +1 -1
- package/dist/localization/fr.json.cjs.js +1 -1
- package/dist/localization/fr.json.js +1 -1
- package/dist/localization/it.json.cjs.js +1 -1
- package/dist/localization/it.json.js +1 -1
- package/dist/localization/nl.json.cjs.js +1 -1
- package/dist/localization/nl.json.js +1 -1
- package/dist/localization/pt.json.cjs.js +1 -1
- package/dist/localization/pt.json.js +1 -1
- package/dist/mocks/msw/handlers.cjs.js +1 -1
- package/dist/mocks/msw/handlers.d.ts +1 -1
- package/dist/mocks/msw/handlers.js +1 -1
- package/dist/mocks/msw/server.cjs.js +1 -1
- package/dist/mocks/msw/server.d.ts +1 -1
- package/dist/mocks/msw/server.js +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse-DC89RDb7.d.d.ts → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse-CVs3ngx3.d.d.ts} +7 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.d.d.ts +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.d.d.ts +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/http.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js.map +1 -1
- package/dist/node_modules/.pnpm/msw@2.12.7_@types_node@20.19.27_typescript@5.4.5/node_modules/msw/lib/core/utils/handleRequest.cjs.js.map +1 -0
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5/node_modules/msw/lib/core/utils/handleRequest.cjs.js.map → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5/node_modules/msw/lib/core/utils/handleRequest.js.map} +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/node/index.d.d.ts +2 -2
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/node/index.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js.map +1 -1
- package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js.map +1 -1
- package/dist/providers/TranslationProvider.cjs.js.map +1 -1
- package/dist/providers/TranslationProvider.d.ts +6 -2
- package/dist/providers/TranslationProvider.js +1 -1
- package/dist/providers/TranslationProvider.js.map +1 -1
- package/dist/utilities/renderUtilities.cjs.js +1 -1
- package/dist/utilities/renderUtilities.cjs.js.map +1 -1
- package/dist/utilities/renderUtilities.d.ts +14 -1
- package/dist/utilities/renderUtilities.js +1 -1
- package/dist/utilities/renderUtilities.js.map +1 -1
- package/package.json +1 -1
- package/dist/node_modules/.pnpm/msw@2.12.4_@types_node@20.19.27_typescript@5.4.5/node_modules/msw/lib/core/utils/handleRequest.js.map +0 -1
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/http.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/index.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/sharedOptions.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/typeUtils.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/node/index.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js +0 -0
- /package/dist/node_modules/.pnpm/{msw@2.12.4_@types_node@20.19.27_typescript@5.4.5 → msw@2.12.7_@types_node@20.19.27_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/if.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/internal/object.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/internal/type.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/is-any.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/is-never.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/is-optional-key-of.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/merge.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/omit-index-signature.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/optional-keys-of.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/partial-deep.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/pick-index-signature.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/primitive.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/required-keys-of.d.d.ts +0 -0
- /package/dist/node_modules/.pnpm/{type-fest@5.3.0 → type-fest@5.3.1}/node_modules/type-fest/source/simplify.d.d.ts +0 -0
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import { RatingProps as RatingProps$1 } from '@mui/material/Rating';
|
|
2
2
|
|
|
3
|
-
interface RatingTranslations {
|
|
4
|
-
/** The text to read for the accessibility of the rating component
|
|
5
|
-
* Should be of format: {value} out of {max} {iconType}
|
|
6
|
-
* e.g. "4.5 out of 5 stars"
|
|
7
|
-
*/
|
|
8
|
-
accessibilityRatingText: string;
|
|
9
|
-
/** The text to display before the number of reviews */
|
|
10
|
-
fromText: string;
|
|
11
|
-
/** The text to display after the number of reviews */
|
|
12
|
-
reviewsText: string;
|
|
13
|
-
}
|
|
14
3
|
type BaseRatingProps = Omit<RatingProps$1, 'emptyIcon' | 'icon' | 'onChange' | 'precision' | 'readOnly' | 'value'> & {
|
|
15
4
|
/** The identifier for the rating component */
|
|
16
5
|
fdKey: string;
|
|
@@ -30,8 +19,6 @@ interface NonReviewRatingProps extends BaseRatingProps {
|
|
|
30
19
|
linkHref?: never;
|
|
31
20
|
/** The number of reviews */
|
|
32
21
|
reviews?: never;
|
|
33
|
-
/** The translations for the rating component */
|
|
34
|
-
translations?: never;
|
|
35
22
|
}
|
|
36
23
|
interface ReviewRatingProps extends BaseRatingProps {
|
|
37
24
|
/** The layout of the rating component */
|
|
@@ -42,8 +29,6 @@ interface ReviewRatingProps extends BaseRatingProps {
|
|
|
42
29
|
linkHref: string;
|
|
43
30
|
/** The number of reviews */
|
|
44
31
|
reviews: number;
|
|
45
|
-
/** The translations for the rating component */
|
|
46
|
-
translations: RatingTranslations;
|
|
47
32
|
}
|
|
48
33
|
/**
|
|
49
34
|
* The props for the Rating component.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t,jsxs as e}from"react/jsx-runtime";import a from"@mui/material/Rating";import{styled as i}from"@mui/material/styles";import r from"@mui/material/Box";import
|
|
1
|
+
import{jsx as t,jsxs as e}from"react/jsx-runtime";import a from"@mui/material/Rating";import{styled as i}from"@mui/material/styles";import r from"@mui/material/Box";import o from"@mui/material/Typography";import{useTranslation as n}from"../../../providers/TranslationProvider.js";import{Link as l}from"../../atoms/Link/index.js";import{StarFilledIcon as m,StarEmptyIcon as s,HeartFilledIcon as d,HeartEmptyIcon as p}from"./icons/index.js";const c=i(r,{shouldForwardProp:t=>"layout"!==t})((({theme:t,layout:e})=>({display:"flex",flexDirection:"horizontal"===e?"row":"column",gap:"horizontal"===e?t.spacing(1):t.spacing(.5),justifyContent:"center"}))),f=i(r)((({theme:t})=>({alignItems:"center",display:"flex",gap:t.spacing(1),justifyContent:"center"}))),h=i(r)((({theme:t})=>({alignItems:"center",display:"flex",gap:t.spacing(.5),justifyContent:"flex-start"}))),u=i(o)((({theme:t})=>({color:t.palette.semantic.text["text-strong"]}))),y=i(o)((({theme:t})=>({color:t.palette.semantic.text["text-weak"]}))),x={heart:{empty:t(p,{"data-testid":"heart-empty-icon"}),filled:t(d,{"data-testid":"heart-filled-icon"})},star:{empty:t(s,{"data-testid":"star-empty-icon"}),filled:t(m,{"data-testid":"star-filled-icon"})}},g=({fdKey:i,layout:r="horizontal",linkFdKey:o,linkHref:m,max:s=5,onChange:d,reviews:p=0,type:g="star",value:v,..._})=>{const{translate:j}=n(),w=x[g].empty,b=x[g].filled,k=p>0&&o&&m;return e(c,{layout:r,children:[e(f,{children:[t(a,{..._,"data-fd":i,emptyIcon:w,getLabelText:t=>j("heart"===g?"number_out_of_total_hearts":"number_out_of_total_stars",{number:t,total:s}),icon:b,max:s,name:i,onChange:(t,e)=>{d?.(t,null!==e?e:0)},precision:.5,readOnly:void 0===d,value:v}),t(u,{"aria-hidden":!0,variant:"b1Strong",children:v?.toFixed(1)})]}),k&&e(h,{children:["vertical"===r&&e(y,{variant:"captionWeak",children:[j("From")," "]}),t(l,{fdKey:o,href:m,size:"caption",tone:"Brand",children:1===p?j("one_review"):j("total_reviews",{total:p})})]})]})};export{g as Rating,g as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/molecules/Rating/index.tsx"],"sourcesContent":["import MuiRating, { type RatingProps as MuiRatingProps } from '@mui/material/Rating';\nimport { styled } from '@mui/material/styles';\n\nimport Box from '@fd/components/atoms/Box';\nimport Typography from '@fd/components/atoms/Typography';\n\nimport Link from '../../atoms/Link';\nimport { HeartEmptyIcon, HeartFilledIcon, StarEmptyIcon, StarFilledIcon } from './icons';\n\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/molecules/Rating/index.tsx"],"sourcesContent":["import MuiRating, { type RatingProps as MuiRatingProps } from '@mui/material/Rating';\nimport { styled } from '@mui/material/styles';\n\nimport Box from '@fd/components/atoms/Box';\nimport Typography from '@fd/components/atoms/Typography';\nimport { useTranslation } from '@fd/providers/TranslationProvider';\n\nimport Link from '../../atoms/Link';\nimport { HeartEmptyIcon, HeartFilledIcon, StarEmptyIcon, StarFilledIcon } from './icons';\n\ntype BaseRatingProps = Omit<\n MuiRatingProps,\n 'emptyIcon' | 'icon' | 'onChange' | 'precision' | 'readOnly' | 'value'\n> & {\n /** The identifier for the rating component */\n fdKey: string;\n /** The function to call when the rating value changes */\n onChange?: (event: React.SyntheticEvent, value: number) => void;\n /** The type of rating component to use */\n type?: 'heart' | 'star';\n /** The value of the rating component */\n value: number;\n};\n\ninterface NonReviewRatingProps extends BaseRatingProps {\n /** The layout of the rating component */\n layout?: 'horizontal' | undefined;\n /** The identifier for the link component */\n linkFdKey?: never;\n /** The href for the link component */\n linkHref?: never;\n /** The number of reviews */\n reviews?: never;\n}\n\ninterface ReviewRatingProps extends BaseRatingProps {\n /** The layout of the rating component */\n layout?: 'horizontal' | 'vertical';\n /** The identifier for the link component */\n linkFdKey: string;\n /** The href for the link component */\n linkHref: string;\n /** The number of reviews */\n reviews: number;\n}\n\n/**\n * The props for the Rating component.\n */\nexport type RatingProps = NonReviewRatingProps | ReviewRatingProps;\n\nconst StyledContainer = styled(Box, { shouldForwardProp: (prop) => prop !== 'layout' })<{\n layout: RatingProps['layout'];\n}>(({ theme, layout }) => ({\n display: 'flex',\n flexDirection: layout === 'horizontal' ? 'row' : 'column',\n gap: layout === 'horizontal' ? theme.spacing(1) : theme.spacing(0.5),\n justifyContent: 'center',\n}));\n\nconst StyledIconContainer = styled(Box)(({ theme }) => ({\n alignItems: 'center',\n display: 'flex',\n gap: theme.spacing(1),\n justifyContent: 'center',\n}));\n\nconst StyledReviewsContainer = styled(Box)(({ theme }) => ({\n alignItems: 'center',\n display: 'flex',\n gap: theme.spacing(0.5),\n justifyContent: 'flex-start',\n}));\n\nconst StyledValueText = styled(Typography)(({ theme }) => ({\n color: theme.palette.semantic.text['text-strong'],\n}));\n\nconst StyledReviewsText = styled(Typography)(({ theme }) => ({\n color: theme.palette.semantic.text['text-weak'],\n}));\n\nconst iconMap = {\n heart: {\n empty: <HeartEmptyIcon data-testid=\"heart-empty-icon\" />,\n filled: <HeartFilledIcon data-testid=\"heart-filled-icon\" />,\n },\n star: {\n empty: <StarEmptyIcon data-testid=\"star-empty-icon\" />,\n filled: <StarFilledIcon data-testid=\"star-filled-icon\" />,\n },\n};\n\n/**\n * Rating component allows users to provide feedback by rating items with stars.\n *\n * @param props - Additional props to pass to the underlying MUI Rating component\n * @returns A Rating component\n */\nexport const Rating: React.FC<RatingProps> = ({\n fdKey,\n layout = 'horizontal',\n linkFdKey,\n linkHref,\n max = 5,\n onChange,\n reviews = 0,\n type = 'star',\n value,\n ...props\n}) => {\n const { translate } = useTranslation();\n\n const emptyIcon = iconMap[type].empty;\n const icon = iconMap[type].filled;\n\n const isReview = reviews > 0 && linkFdKey && linkHref;\n\n const handleChange = (event: React.SyntheticEvent, value: number | null): void => {\n if (value !== null) onChange?.(event, value);\n else onChange?.(event, 0);\n };\n\n const getLabelText = (labelValue: number): string => {\n if (type === 'heart') {\n return translate('number_out_of_total_hearts', { number: labelValue, total: max });\n }\n return translate('number_out_of_total_stars', { number: labelValue, total: max });\n };\n\n return (\n <StyledContainer layout={layout}>\n <StyledIconContainer>\n <MuiRating\n {...props}\n data-fd={fdKey}\n emptyIcon={emptyIcon}\n getLabelText={getLabelText}\n icon={icon}\n max={max}\n name={fdKey}\n onChange={handleChange}\n precision={0.5}\n readOnly={onChange === undefined}\n value={value}\n />\n <StyledValueText aria-hidden variant=\"b1Strong\">\n {value?.toFixed(1)}\n </StyledValueText>\n </StyledIconContainer>\n {isReview && (\n <StyledReviewsContainer>\n {layout === 'vertical' && (\n <StyledReviewsText variant=\"captionWeak\">{translate('From')} </StyledReviewsText>\n )}\n <Link fdKey={linkFdKey} href={linkHref} size=\"caption\" tone=\"Brand\">\n {reviews === 1 ? translate('one_review') : translate('total_reviews', { total: reviews })}\n </Link>\n </StyledReviewsContainer>\n )}\n </StyledContainer>\n );\n};\n\nexport default Rating;\n"],"names":["StyledContainer","styled","Box","shouldForwardProp","prop","theme","layout","display","flexDirection","gap","spacing","justifyContent","StyledIconContainer","alignItems","StyledReviewsContainer","StyledValueText","Typography","color","palette","semantic","text","StyledReviewsText","iconMap","heart","empty","_jsx","HeartEmptyIcon","filled","HeartFilledIcon","star","StarEmptyIcon","StarFilledIcon","Rating","fdKey","linkFdKey","linkHref","max","onChange","reviews","type","value","props","translate","useTranslation","emptyIcon","icon","isReview","_jsxs","children","MuiRating","getLabelText","labelValue","number","total","name","event","precision","readOnly","undefined","variant","toFixed","Link","href","size","tone"],"mappings":"ubAmDA,MAAMA,EAAkBC,EAAOC,EAAK,CAAEC,kBAAoBC,GAAkB,WAATA,GAA3CH,EAErB,EAAGI,QAAOC,aAAQ,CACnBC,QAAS,OACTC,cAA0B,eAAXF,EAA0B,MAAQ,SACjDG,IAAgB,eAAXH,EAA0BD,EAAMK,QAAQ,GAAKL,EAAMK,QAAQ,IAChEC,eAAgB,aAGZC,EAAsBX,EAAOC,EAAPD,EAAY,EAAGI,YAAO,CAChDQ,WAAY,SACZN,QAAS,OACTE,IAAKJ,EAAMK,QAAQ,GACnBC,eAAgB,aAGZG,EAAyBb,EAAOC,EAAPD,EAAY,EAAGI,YAAO,CACnDQ,WAAY,SACZN,QAAS,OACTE,IAAKJ,EAAMK,QAAQ,IACnBC,eAAgB,iBAGZI,EAAkBd,EAAOe,EAAPf,EAAmB,EAAGI,YAAO,CACnDY,MAAOZ,EAAMa,QAAQC,SAASC,KAAK,mBAG/BC,EAAoBpB,EAAOe,EAAPf,EAAmB,EAAGI,YAAO,CACrDY,MAAOZ,EAAMa,QAAQC,SAASC,KAAK,iBAG/BE,EAAU,CACdC,MAAO,CACLC,MAAOC,EAACC,EAAc,CAAA,cAAa,qBACnCC,OAAQF,EAACG,EAAe,CAAA,cAAa,uBAEvCC,KAAM,CACJL,MAAOC,EAACK,EAAa,CAAA,cAAa,oBAClCH,OAAQF,EAACM,EAAc,CAAA,cAAa,uBAU3BC,EAAgC,EAC3CC,QACA3B,SAAS,aACT4B,YACAC,WACAC,MAAM,EACNC,WACAC,UAAU,EACVC,OAAO,OACPC,WACGC,MAEH,MAAMC,UAAEA,GAAcC,IAEhBC,EAAYtB,EAAQiB,GAAMf,MAC1BqB,EAAOvB,EAAQiB,GAAMZ,OAErBmB,EAAWR,EAAU,GAAKJ,GAAaC,EAc7C,OACEY,EAAC/C,EAAe,CAACM,OAAQA,EAAM0C,SAAA,CAC7BD,EAACnC,EAAmB,CAAAoC,SAAA,CAClBvB,EAACwB,MACKR,EAAK,UACAR,EACTW,UAAWA,EACXM,aAdcC,GAEXT,EADI,UAATH,EACe,6BAEF,4BAFgC,CAAEa,OAAQD,EAAYE,MAAOjB,IAaxES,KAAMA,EACNT,IAAKA,EACLkB,KAAMrB,EACNI,SAvBa,CAACkB,EAA6Bf,KAC7BH,IAAWkB,EAAjB,OAAVf,EAAkCA,EACf,IAsBjBgB,UAAW,GACXC,cAAuBC,IAAbrB,EACVG,MAAOA,IAETf,EAACV,oBAA4B4C,QAAQ,WAAUX,SAC5CR,GAAOoB,QAAQ,QAGnBd,GACCC,EAACjC,aACa,aAAXR,GACCyC,EAAC1B,EAAiB,CAACsC,QAAQ,cAAaX,SAAA,CAAEN,EAAU,QAAO,OAE7DjB,EAACoC,EAAI,CAAC5B,MAAOC,EAAW4B,KAAM3B,EAAU4B,KAAK,UAAUC,KAAK,QAAOhB,SACpD,IAAZV,EAAgBI,EAAU,cAAgBA,EAAU,gBAAiB,CAAEW,MAAOf"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../Autocomplete/index.cjs.js");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../Autocomplete/index.cjs.js");const r=({ariaLabel:r,onChange:a,...o})=>e.jsx(t.Autocomplete,{...o,ariaLabel:r,multiple:!1,onChange:()=>{},onInputChange:a,options:[],type:"search"});exports.SearchInput=r,exports.default=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../../../src/components/molecules/SearchInput/index.tsx"],"sourcesContent":["import Autocomplete, { type AutocompleteProps } from '../Autocomplete';\n\n/**\n * The props for the SearchInput component.\n */\nexport type SearchInputProps = Omit<\n AutocompleteProps,\n | 'errorText'\n | 'helperText'\n | 'label'\n | 'multiple'\n | 'onChange'\n | 'onInputChange'\n | 'options'\n | 'required'\n | 'translations'\n | 'type'\n> & {\n /** Aria-label for the search input. */\n ariaLabel: string;\n /**
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../../src/components/molecules/SearchInput/index.tsx"],"sourcesContent":["import Autocomplete, { type AutocompleteProps } from '../Autocomplete';\n\n/**\n * The props for the SearchInput component.\n */\nexport type SearchInputProps = Omit<\n AutocompleteProps,\n | 'errorText'\n | 'helperText'\n | 'label'\n | 'multiple'\n | 'onChange'\n | 'onInputChange'\n | 'options'\n | 'required'\n | 'translations'\n | 'type'\n> & {\n /** Aria-label for the search input. */\n ariaLabel: string;\n /** Called when the input text changes. */\n onChange: AutocompleteProps['onInputChange'];\n};\n\n/**\n * A SearchInput component.\n *\n * @param props - The component props\n * @returns The rendered SearchInput component\n */\nexport const SearchInput = ({ ariaLabel, onChange, ...props }: SearchInputProps): JSX.Element => {\n return (\n <Autocomplete\n {...props}\n ariaLabel={ariaLabel}\n multiple={false}\n onChange={() => {}}\n onInputChange={onChange}\n options={[]}\n type=\"search\"\n />\n );\n};\n\nexport default SearchInput;\n"],"names":["SearchInput","ariaLabel","onChange","props","_jsx","Autocomplete","multiple","onInputChange","options","type"],"mappings":"iJA8BO,MAAMA,EAAc,EAAGC,YAAWC,cAAaC,KAElDC,EAAAA,IAACC,EAAAA,aAAY,IACPF,EACJF,UAAWA,EACXK,UAAU,EACVJ,SAAU,OACVK,cAAeL,EACfM,QAAS,GACTC,KAAK"}
|
|
@@ -6,12 +6,8 @@ import { AutocompleteProps } from '../Autocomplete/index.js';
|
|
|
6
6
|
type SearchInputProps = Omit<AutocompleteProps, 'errorText' | 'helperText' | 'label' | 'multiple' | 'onChange' | 'onInputChange' | 'options' | 'required' | 'translations' | 'type'> & {
|
|
7
7
|
/** Aria-label for the search input. */
|
|
8
8
|
ariaLabel: string;
|
|
9
|
-
/** Aria-label for the clear button. */
|
|
10
|
-
clearTextAriaLabel: AutocompleteProps['translations']['clearTextAriaLabel'];
|
|
11
9
|
/** Called when the input text changes. */
|
|
12
10
|
onChange: AutocompleteProps['onInputChange'];
|
|
13
|
-
/** Screen reader hint describing the shortcut, e.g., "Press ⌘+K to focus search". */
|
|
14
|
-
shortcutHotkeyAriaDescription: AutocompleteProps['translations']['shortcutHotkeyAriaDescription'];
|
|
15
11
|
};
|
|
16
12
|
/**
|
|
17
13
|
* A SearchInput component.
|
|
@@ -19,7 +15,7 @@ type SearchInputProps = Omit<AutocompleteProps, 'errorText' | 'helperText' | 'la
|
|
|
19
15
|
* @param props - The component props
|
|
20
16
|
* @returns The rendered SearchInput component
|
|
21
17
|
*/
|
|
22
|
-
declare const SearchInput: ({ ariaLabel,
|
|
18
|
+
declare const SearchInput: ({ ariaLabel, onChange, ...props }: SearchInputProps) => JSX.Element;
|
|
23
19
|
|
|
24
20
|
export { SearchInput, SearchInput as default };
|
|
25
21
|
export type { SearchInputProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{Autocomplete as a}from"../Autocomplete/index.js";const
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{Autocomplete as a}from"../Autocomplete/index.js";const o=({ariaLabel:o,onChange:t,...n})=>e(a,{...n,ariaLabel:o,multiple:!1,onChange:()=>{},onInputChange:t,options:[],type:"search"});export{o as SearchInput,o as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/molecules/SearchInput/index.tsx"],"sourcesContent":["import Autocomplete, { type AutocompleteProps } from '../Autocomplete';\n\n/**\n * The props for the SearchInput component.\n */\nexport type SearchInputProps = Omit<\n AutocompleteProps,\n | 'errorText'\n | 'helperText'\n | 'label'\n | 'multiple'\n | 'onChange'\n | 'onInputChange'\n | 'options'\n | 'required'\n | 'translations'\n | 'type'\n> & {\n /** Aria-label for the search input. */\n ariaLabel: string;\n /**
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/molecules/SearchInput/index.tsx"],"sourcesContent":["import Autocomplete, { type AutocompleteProps } from '../Autocomplete';\n\n/**\n * The props for the SearchInput component.\n */\nexport type SearchInputProps = Omit<\n AutocompleteProps,\n | 'errorText'\n | 'helperText'\n | 'label'\n | 'multiple'\n | 'onChange'\n | 'onInputChange'\n | 'options'\n | 'required'\n | 'translations'\n | 'type'\n> & {\n /** Aria-label for the search input. */\n ariaLabel: string;\n /** Called when the input text changes. */\n onChange: AutocompleteProps['onInputChange'];\n};\n\n/**\n * A SearchInput component.\n *\n * @param props - The component props\n * @returns The rendered SearchInput component\n */\nexport const SearchInput = ({ ariaLabel, onChange, ...props }: SearchInputProps): JSX.Element => {\n return (\n <Autocomplete\n {...props}\n ariaLabel={ariaLabel}\n multiple={false}\n onChange={() => {}}\n onInputChange={onChange}\n options={[]}\n type=\"search\"\n />\n );\n};\n\nexport default SearchInput;\n"],"names":["SearchInput","ariaLabel","onChange","props","_jsx","Autocomplete","multiple","onInputChange","options","type"],"mappings":"gGA8BO,MAAMA,EAAc,EAAGC,YAAWC,cAAaC,KAElDC,EAACC,EAAY,IACPF,EACJF,UAAWA,EACXK,UAAU,EACVJ,SAAU,OACVK,cAAeL,EACfM,QAAS,GACTC,KAAK"}
|
package/dist/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.cjs.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime");require("react");var i=require("@mui/material/styles"),t=require("@mui/material/Box"),r=require("@mui/material/Grid2"),a=require("@mui/material/Skeleton");const s=i.styled(r)((()=>({listStyle:"none",margin:0,padding:0}))),n=i.styled(t)((({theme:e})=>({borderRadius:e.radius["radius-16"],border:`1px solid ${e.palette.semantic.stroke["stroke-weak"]}`,overflow:"hidden"}))),l=i.styled(t)((({theme:e})=>({padding:e.spacing(2)}))),o=["skeleton-1","skeleton-2","skeleton-3","skeleton-4","skeleton-5","skeleton-6"];module.exports=()=>e.jsx(s,{container:!0,"aria-busy":"true","aria-label":"Loading assets",component:"ul",spacing:1,children:o.map((i=>e.jsx(r,{component:"li",size:{widescreen:4,desktop:4,mobile:6,tablet:4},children:e.jsxs(n,{children:[e.jsx(a,{animation:"wave",height:204,variant:"rectangular"}),e.jsx(l,{children:e.jsx(a,{animation:"wave",height:20,variant:"text",width:"80%"})})]})},i)))});
|
|
2
|
+
//# sourceMappingURL=LibraryTabContentSkeleton.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LibraryTabContentSkeleton.cjs.js","sources":["../../../../../src/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.tsx"],"sourcesContent":["import React from 'react';\n\nimport { styled } from '@mui/material/styles';\n\nimport Box from '@fd/components/atoms/Box';\nimport Grid from '@fd/components/atoms/Grid';\nimport Skeleton from '@fd/components/atoms/Skeleton';\n\nconst StyledList = styled(Grid)<{ component: string }>(() => ({\n listStyle: 'none',\n margin: 0,\n padding: 0,\n}));\n\nconst StyledSkeletonCard = styled(Box)(({ theme }) => ({\n borderRadius: theme.radius['radius-16'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-weak']}`,\n overflow: 'hidden',\n}));\n\nconst StyledSkeletonContent = styled(Box)(({ theme }) => ({\n padding: theme.spacing(2),\n}));\n\nconst SKELETON_IDS = ['skeleton-1', 'skeleton-2', 'skeleton-3', 'skeleton-4', 'skeleton-5', 'skeleton-6'];\n\n/**\n * Skeleton loading state for the LibraryTabContent component.\n * Displays a grid of skeleton cards that match the layout of actual asset cards.\n *\n * @returns The skeleton loading grid\n */\nconst LibraryTabContentSkeleton: React.FC = () => {\n return (\n <StyledList container aria-busy=\"true\" aria-label=\"Loading assets\" component=\"ul\" spacing={1}>\n {SKELETON_IDS.map((skeletonId) => (\n <Grid key={skeletonId} component=\"li\" size={{ widescreen: 4, desktop: 4, mobile: 6, tablet: 4 }}>\n <StyledSkeletonCard>\n <Skeleton animation=\"wave\" height={204} variant=\"rectangular\" />\n <StyledSkeletonContent>\n <Skeleton animation=\"wave\" height={20} variant=\"text\" width=\"80%\" />\n </StyledSkeletonContent>\n </StyledSkeletonCard>\n </Grid>\n ))}\n </StyledList>\n );\n};\n\nexport default LibraryTabContentSkeleton;\n"],"names":["StyledList","styled","Grid","listStyle","margin","padding","StyledSkeletonCard","Box","theme","borderRadius","radius","border","palette","semantic","stroke","overflow","StyledSkeletonContent","spacing","SKELETON_IDS","_jsx","container","component","children","map","skeletonId","size","widescreen","desktop","mobile","tablet","_jsxs","Skeleton","animation","height","variant","width"],"mappings":"2MAQA,MAAMA,EAAaC,EAAAA,OAAOC,EAAPD,EAAoC,KAAA,CACrDE,UAAW,OACXC,OAAQ,EACRC,QAAS,MAGLC,EAAqBL,EAAAA,OAAOM,EAAPN,EAAY,EAAGO,YAAO,CAC/CC,aAAcD,EAAME,OAAO,aAC3BC,OAAQ,aAAaH,EAAMI,QAAQC,SAASC,OAAO,iBACnDC,SAAU,aAGNC,EAAwBf,EAAAA,OAAOM,EAAPN,EAAY,EAAGO,YAAO,CAClDH,QAASG,EAAMS,QAAQ,OAGnBC,EAAe,CAAC,aAAc,aAAc,aAAc,aAAc,aAAc,6BAQhD,IAExCC,EAAAA,IAACnB,EAAU,CAACoB,WAAS,EAAA,YAAW,OAAM,aAAY,iBAAiBC,UAAU,KAAKJ,QAAS,EAACK,SACzFJ,EAAaK,KAAKC,GACjBL,EAAAA,IAACjB,EAAI,CAAkBmB,UAAU,KAAKI,KAAM,CAAEC,WAAY,EAAGC,QAAS,EAAGC,OAAQ,EAAGC,OAAQ,GAAGP,SAC7FQ,EAAAA,KAACxB,EAAkB,CAAAgB,SAAA,CACjBH,EAAAA,IAACY,EAAQ,CAACC,UAAU,OAAOC,OAAQ,IAAKC,QAAQ,gBAChDf,EAAAA,IAACH,EAAqB,CAAAM,SACpBH,EAAAA,IAACY,GAASC,UAAU,OAAOC,OAAQ,GAAIC,QAAQ,OAAOC,MAAM,cAJvDX"}
|
package/dist/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import react__default from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Skeleton loading state for the LibraryTabContent component.
|
|
5
|
+
* Displays a grid of skeleton cards that match the layout of actual asset cards.
|
|
6
|
+
*
|
|
7
|
+
* @returns The skeleton loading grid
|
|
8
|
+
*/
|
|
9
|
+
declare const LibraryTabContentSkeleton: react__default.FC;
|
|
10
|
+
|
|
11
|
+
export { LibraryTabContentSkeleton as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import"react";import{styled as i}from"@mui/material/styles";import a from"@mui/material/Box";import r from"@mui/material/Grid2";import o from"@mui/material/Skeleton";const n=i(r)((()=>({listStyle:"none",margin:0,padding:0}))),m=i(a)((({theme:e})=>({borderRadius:e.radius["radius-16"],border:`1px solid ${e.palette.semantic.stroke["stroke-weak"]}`,overflow:"hidden"}))),l=i(a)((({theme:e})=>({padding:e.spacing(2)}))),s=["skeleton-1","skeleton-2","skeleton-3","skeleton-4","skeleton-5","skeleton-6"],d=()=>e(n,{container:!0,"aria-busy":"true","aria-label":"Loading assets",component:"ul",spacing:1,children:s.map((i=>e(r,{component:"li",size:{widescreen:4,desktop:4,mobile:6,tablet:4},children:t(m,{children:[e(o,{animation:"wave",height:204,variant:"rectangular"}),e(l,{children:e(o,{animation:"wave",height:20,variant:"text",width:"80%"})})]})},i)))});export{d as default};
|
|
2
|
+
//# sourceMappingURL=LibraryTabContentSkeleton.js.map
|
package/dist/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LibraryTabContentSkeleton.js","sources":["../../../../../src/components/organisms/AssetManager/LibraryTabContent/LibraryTabContentSkeleton.tsx"],"sourcesContent":["import React from 'react';\n\nimport { styled } from '@mui/material/styles';\n\nimport Box from '@fd/components/atoms/Box';\nimport Grid from '@fd/components/atoms/Grid';\nimport Skeleton from '@fd/components/atoms/Skeleton';\n\nconst StyledList = styled(Grid)<{ component: string }>(() => ({\n listStyle: 'none',\n margin: 0,\n padding: 0,\n}));\n\nconst StyledSkeletonCard = styled(Box)(({ theme }) => ({\n borderRadius: theme.radius['radius-16'],\n border: `1px solid ${theme.palette.semantic.stroke['stroke-weak']}`,\n overflow: 'hidden',\n}));\n\nconst StyledSkeletonContent = styled(Box)(({ theme }) => ({\n padding: theme.spacing(2),\n}));\n\nconst SKELETON_IDS = ['skeleton-1', 'skeleton-2', 'skeleton-3', 'skeleton-4', 'skeleton-5', 'skeleton-6'];\n\n/**\n * Skeleton loading state for the LibraryTabContent component.\n * Displays a grid of skeleton cards that match the layout of actual asset cards.\n *\n * @returns The skeleton loading grid\n */\nconst LibraryTabContentSkeleton: React.FC = () => {\n return (\n <StyledList container aria-busy=\"true\" aria-label=\"Loading assets\" component=\"ul\" spacing={1}>\n {SKELETON_IDS.map((skeletonId) => (\n <Grid key={skeletonId} component=\"li\" size={{ widescreen: 4, desktop: 4, mobile: 6, tablet: 4 }}>\n <StyledSkeletonCard>\n <Skeleton animation=\"wave\" height={204} variant=\"rectangular\" />\n <StyledSkeletonContent>\n <Skeleton animation=\"wave\" height={20} variant=\"text\" width=\"80%\" />\n </StyledSkeletonContent>\n </StyledSkeletonCard>\n </Grid>\n ))}\n </StyledList>\n );\n};\n\nexport default LibraryTabContentSkeleton;\n"],"names":["StyledList","styled","Grid","listStyle","margin","padding","StyledSkeletonCard","Box","theme","borderRadius","radius","border","palette","semantic","stroke","overflow","StyledSkeletonContent","spacing","SKELETON_IDS","LibraryTabContentSkeleton","_jsx","container","component","children","map","skeletonId","size","widescreen","desktop","mobile","tablet","_jsxs","Skeleton","animation","height","variant","width"],"mappings":"wNAQA,MAAMA,EAAaC,EAAOC,EAAPD,EAAoC,KAAA,CACrDE,UAAW,OACXC,OAAQ,EACRC,QAAS,MAGLC,EAAqBL,EAAOM,EAAPN,EAAY,EAAGO,YAAO,CAC/CC,aAAcD,EAAME,OAAO,aAC3BC,OAAQ,aAAaH,EAAMI,QAAQC,SAASC,OAAO,iBACnDC,SAAU,aAGNC,EAAwBf,EAAOM,EAAPN,EAAY,EAAGO,YAAO,CAClDH,QAASG,EAAMS,QAAQ,OAGnBC,EAAe,CAAC,aAAc,aAAc,aAAc,aAAc,aAAc,cAQtFC,EAAsC,IAExCC,EAACpB,EAAU,CAACqB,WAAS,EAAA,YAAW,OAAM,aAAY,iBAAiBC,UAAU,KAAKL,QAAS,EAACM,SACzFL,EAAaM,KAAKC,GACjBL,EAAClB,EAAI,CAAkBoB,UAAU,KAAKI,KAAM,CAAEC,WAAY,EAAGC,QAAS,EAAGC,OAAQ,EAAGC,OAAQ,GAAGP,SAC7FQ,EAACzB,EAAkB,CAAAiB,SAAA,CACjBH,EAACY,EAAQ,CAACC,UAAU,OAAOC,OAAQ,IAAKC,QAAQ,gBAChDf,EAACJ,EAAqB,CAAAO,SACpBH,EAACY,GAASC,UAAU,OAAOC,OAAQ,GAAIC,QAAQ,OAAOC,MAAM,cAJvDX"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime");require("react");var t=require("@mui/material/styles"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime");require("react");var t=require("@mui/material/styles"),r=require("@mui/material/Box"),s=require("../../../atoms/Card/index.cjs.js"),i=require("@mui/material/Grid2"),a=require("../../../molecules/EmptyState/index.cjs.js"),o=require("../../../../icons/CheckmarkCircleSolid/index.cjs.js"),l=require("../../../../providers/TranslationProvider.cjs.js"),n=require("./LibraryTabContentSkeleton.cjs.js");const d=t.styled(i)((()=>({listStyle:"none",margin:0,padding:0}))),c=t.styled(r,{shouldForwardProp:e=>"selected"!==e})((({theme:e,selected:t})=>({width:"100%",cursor:"pointer",position:"relative","& .MuiCard-root":{borderWidth:"2px",borderColor:t?e.palette.semantic.stroke["stroke-selected"]:"transparent",boxShadow:t?"none":`inset 0 0 0 1px ${e.palette.semantic.stroke["stroke-weak"]}`},"&:focus-visible .MuiCard-root":{borderColor:e.palette.semantic.stroke["stroke-selected"],boxShadow:"none"}}))),m=t.styled(o)((({theme:e})=>({position:"absolute",top:e.spacing(2),left:e.spacing(2),zIndex:1,color:e.palette.semantic.icon["icon-primary"],"& circle":{fill:e.palette.common.white}}))),p=t.styled(r)((({theme:e})=>({padding:e.spacing(4)})));module.exports=({assets:t,isLoading:r,error:o,selectedAssets:u,onAssetClick:x})=>{const{translate:j}=l.useTranslation();return r?e.jsx(n,{}):o?e.jsx(p,{children:e.jsx(a.EmptyState,{description:"Failed to load assets. Please try again later.",title:"Error loading assets"})}):t&&0!==t.length?e.jsx(d,{container:!0,component:"ul",spacing:1,children:t.map((t=>{const r=u.has(t.id);return e.jsx(i,{"aria-selected":r,component:"li",size:{widescreen:4,desktop:4,mobile:6,tablet:4},children:e.jsxs(c,{"aria-label":`${j("Select")} ${t.fileName}`,onClick:()=>x(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),x(t))},role:"button",selected:r,tabIndex:0,children:[r&&e.jsx(m,{size:"lg"}),e.jsx(s,{content:t.fileName,heading:"",imageAlt:t.metadata.altText,imageSrc:`${t.url}?h=203&fit=crop`})]})},t.id)}))}):e.jsx(p,{children:e.jsx(a.EmptyState,{description:"No assets available to display.",title:"No assets found"})})};
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../../../../src/components/organisms/AssetManager/LibraryTabContent/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport { styled } from '@mui/material/styles';\n\nimport Box from '@fd/components/atoms/Box';\nimport Card from '@fd/components/atoms/Card';\nimport
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../../../src/components/organisms/AssetManager/LibraryTabContent/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport { styled } from '@mui/material/styles';\n\nimport Box from '@fd/components/atoms/Box';\nimport Card from '@fd/components/atoms/Card';\nimport Grid from '@fd/components/atoms/Grid';\nimport EmptyState from '@fd/components/molecules/EmptyState';\nimport CheckmarkCircleSolidIcon from '@fd/icons/CheckmarkCircleSolid';\nimport { useTranslation } from '@fd/providers/TranslationProvider';\n\nimport type { Asset } from '../types';\nimport LibraryTabContentSkeleton from './LibraryTabContentSkeleton';\n\nconst StyledList = styled(Grid)<{ component: string }>(() => ({\n listStyle: 'none',\n margin: 0,\n padding: 0,\n}));\n\nconst StyledCardWrapper = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'selected',\n})<{ selected?: boolean }>(({ theme, selected }) => ({\n width: '100%',\n cursor: 'pointer',\n position: 'relative',\n '& .MuiCard-root': {\n // Always use 2px border to prevent layout shift\n borderWidth: '2px',\n borderColor: selected ? theme.palette.semantic.stroke['stroke-selected'] : 'transparent',\n // Use box-shadow to create the visual 1px border when not selected\n // This prevents layout shift while maintaining the visual appearance\n boxShadow: selected ? 'none' : `inset 0 0 0 1px ${theme.palette.semantic.stroke['stroke-weak']}`,\n },\n '&:focus-visible .MuiCard-root': {\n borderColor: theme.palette.semantic.stroke['stroke-selected'],\n boxShadow: 'none',\n },\n}));\n\nconst StyledCheckmarkIcon = styled(CheckmarkCircleSolidIcon)(({ theme }) => ({\n position: 'absolute',\n top: theme.spacing(2),\n left: theme.spacing(2),\n zIndex: 1,\n color: theme.palette.semantic.icon['icon-primary'],\n '& circle': {\n fill: theme.palette.common.white,\n },\n}));\n\nconst StyledErrorContainer = styled(Box)(({ theme }) => ({\n padding: theme.spacing(4),\n}));\n\n/**\n * Props for the LibraryTabContent component.\n * @param assets - Array of assets to display\n * @param isLoading - Whether the assets are being loaded\n * @param error - Error object if fetching assets failed\n * @param selectedAssets - Map of selected assets (id -> Asset) for O(1) lookup performance\n * @param onAssetClick - Callback when an asset is clicked\n */\nexport interface LibraryTabContentProps {\n /** Array of assets to display */\n assets?: Asset[];\n /** Whether the assets are being loaded */\n isLoading: boolean;\n /** Error object if fetching assets failed */\n error: Error | null;\n /** Map of selected assets (id -> Asset) for O(1) lookup performance */\n selectedAssets: Map<string, Asset>;\n /** Callback when an asset is clicked */\n onAssetClick: (asset: Asset) => void;\n}\n\n/**\n * LibraryTab component displays a grid of assets that can be selected.\n * Receives assets data from parent and displays loading/error states.\n *\n * @param props - The component props\n * @returns The library tab content\n */\nconst LibraryTabContent: React.FC<LibraryTabContentProps> = ({\n assets,\n isLoading,\n error,\n selectedAssets,\n onAssetClick,\n}) => {\n const { translate } = useTranslation();\n\n if (isLoading) {\n return <LibraryTabContentSkeleton />;\n }\n\n if (error) {\n return (\n // TODO: Update empty state when confirmed with design\n <StyledErrorContainer>\n <EmptyState\n description=\"Failed to load assets. Please try again later.\"\n title=\"Error loading assets\"\n />\n </StyledErrorContainer>\n );\n }\n\n if (!assets || assets.length === 0) {\n return (\n // TODO: Update empty state when confirmed with design\n <StyledErrorContainer>\n <EmptyState description=\"No assets available to display.\" title=\"No assets found\" />\n </StyledErrorContainer>\n );\n }\n\n return (\n <StyledList container component=\"ul\" spacing={1}>\n {assets.map((asset: Asset) => {\n const isSelected = selectedAssets.has(asset.id);\n return (\n <Grid\n key={asset.id}\n aria-selected={isSelected}\n component=\"li\"\n size={{ widescreen: 4, desktop: 4, mobile: 6, tablet: 4 }}\n >\n <StyledCardWrapper\n aria-label={`${translate('Select')} ${asset.fileName}`}\n onClick={() => onAssetClick(asset)}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onAssetClick(asset);\n }\n }}\n role=\"button\"\n selected={isSelected}\n tabIndex={0}\n >\n {isSelected && <StyledCheckmarkIcon size=\"lg\" />}\n <Card\n content={asset.fileName}\n heading=\"\"\n imageAlt={asset.metadata.altText}\n // Image source will be an imgix url, utilise params to render the image in the correct size and format\n imageSrc={`${asset.url}?h=203&fit=crop`}\n />\n </StyledCardWrapper>\n </Grid>\n );\n })}\n </StyledList>\n );\n};\n\nexport default LibraryTabContent;\n"],"names":["StyledList","styled","Grid","listStyle","margin","padding","StyledCardWrapper","Box","shouldForwardProp","prop","theme","selected","width","cursor","position","borderWidth","borderColor","palette","semantic","stroke","boxShadow","StyledCheckmarkIcon","CheckmarkCircleSolidIcon","top","spacing","left","zIndex","color","icon","fill","common","white","StyledErrorContainer","assets","isLoading","error","selectedAssets","onAssetClick","translate","useTranslation","_jsx","LibraryTabContentSkeleton","children","EmptyState","description","title","length","container","component","map","asset","isSelected","has","id","size","widescreen","desktop","mobile","tablet","_jsxs","fileName","onClick","onKeyDown","e","key","preventDefault","role","tabIndex","Card","content","heading","imageAlt","metadata","altText","imageSrc","url"],"mappings":"4bAcA,MAAMA,EAAaC,EAAAA,OAAOC,EAAPD,EAAoC,KAAA,CACrDE,UAAW,OACXC,OAAQ,EACRC,QAAS,MAGLC,EAAoBL,EAAAA,OAAOM,EAAK,CACpCC,kBAAoBC,GAAkB,aAATA,GADLR,EAEC,EAAGS,QAAOC,eAAU,CAC7CC,MAAO,OACPC,OAAQ,UACRC,SAAU,WACV,kBAAmB,CAEjBC,YAAa,MACbC,YAAaL,EAAWD,EAAMO,QAAQC,SAASC,OAAO,mBAAqB,cAG3EC,UAAWT,EAAW,OAAS,mBAAmBD,EAAMO,QAAQC,SAASC,OAAO,kBAElF,gCAAiC,CAC/BH,YAAaN,EAAMO,QAAQC,SAASC,OAAO,mBAC3CC,UAAW,YAITC,EAAsBpB,EAAAA,OAAOqB,EAAPrB,EAAiC,EAAGS,YAAO,CACrEI,SAAU,WACVS,IAAKb,EAAMc,QAAQ,GACnBC,KAAMf,EAAMc,QAAQ,GACpBE,OAAQ,EACRC,MAAOjB,EAAMO,QAAQC,SAASU,KAAK,gBACnC,WAAY,CACVC,KAAMnB,EAAMO,QAAQa,OAAOC,WAIzBC,EAAuB/B,EAAAA,OAAOM,EAAPN,EAAY,EAAGS,YAAO,CACjDL,QAASK,EAAMc,QAAQ,sBA+BmC,EAC1DS,SACAC,YACAC,QACAC,iBACAC,mBAEA,MAAMC,UAAEA,GAAcC,mBAEtB,OAAIL,EACKM,EAAAA,IAACC,EAAyB,IAG/BN,EAGAK,EAAAA,IAACR,EAAoB,CAAAU,SACnBF,EAAAA,IAACG,EAAAA,YACCC,YAAY,iDACZC,MAAM,2BAMTZ,GAA4B,IAAlBA,EAAOa,OAUpBN,EAAAA,IAACxC,EAAU,CAAC+C,WAAS,EAACC,UAAU,KAAKxB,QAAS,WAC3CS,EAAOgB,KAAKC,IACX,MAAMC,EAAaf,EAAegB,IAAIF,EAAMG,IAC5C,OACEb,EAAAA,IAACtC,EAAI,CAAA,gBAEYiD,EACfH,UAAU,KACVM,KAAM,CAAEC,WAAY,EAAGC,QAAS,EAAGC,OAAQ,EAAGC,OAAQ,GAAGhB,SAEzDiB,EAAAA,KAACrD,EAAiB,CAAA,aACJ,GAAGgC,EAAU,aAAaY,EAAMU,WAC5CC,QAAS,IAAMxB,EAAaa,GAC5BY,UAAYC,IACI,UAAVA,EAAEC,KAA6B,MAAVD,EAAEC,MACzBD,EAAEE,iBACF5B,EAAaa,KAGjBgB,KAAK,SACLvD,SAAUwC,EACVgB,SAAU,YAEThB,GAAcX,EAAAA,IAACnB,EAAmB,CAACiC,KAAK,OACzCd,EAAAA,IAAC4B,EAAI,CACHC,QAASnB,EAAMU,SACfU,QAAQ,GACRC,SAAUrB,EAAMsB,SAASC,QAEzBC,SAAU,GAAGxB,EAAMyB,2BAxBlBzB,EAAMG,SAZjBb,EAAAA,IAACR,EAAoB,CAAAU,SACnBF,EAAAA,IAACG,EAAAA,YAAWC,YAAY,kCAAkCC,MAAM"}
|
|
@@ -3,19 +3,19 @@ import { Asset } from '../types/index.js';
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Props for the LibraryTabContent component.
|
|
6
|
-
* @param
|
|
7
|
-
* @param
|
|
8
|
-
* @param
|
|
6
|
+
* @param assets - Array of assets to display
|
|
7
|
+
* @param isLoading - Whether the assets are being loaded
|
|
8
|
+
* @param error - Error object if fetching assets failed
|
|
9
9
|
* @param selectedAssets - Map of selected assets (id -> Asset) for O(1) lookup performance
|
|
10
10
|
* @param onAssetClick - Callback when an asset is clicked
|
|
11
11
|
*/
|
|
12
12
|
interface LibraryTabContentProps {
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
|
|
13
|
+
/** Array of assets to display */
|
|
14
|
+
assets?: Asset[];
|
|
15
|
+
/** Whether the assets are being loaded */
|
|
16
|
+
isLoading: boolean;
|
|
17
|
+
/** Error object if fetching assets failed */
|
|
18
|
+
error: Error | null;
|
|
19
19
|
/** Map of selected assets (id -> Asset) for O(1) lookup performance */
|
|
20
20
|
selectedAssets: Map<string, Asset>;
|
|
21
21
|
/** Callback when an asset is clicked */
|
|
@@ -23,7 +23,7 @@ interface LibraryTabContentProps {
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* LibraryTab component displays a grid of assets that can be selected.
|
|
26
|
-
*
|
|
26
|
+
* Receives assets data from parent and displays loading/error states.
|
|
27
27
|
*
|
|
28
28
|
* @param props - The component props
|
|
29
29
|
* @returns The library tab content
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import"react";import{styled as o}from"@mui/material/styles";import
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import"react";import{styled as o}from"@mui/material/styles";import r from"@mui/material/Box";import i from"../../../atoms/Card/index.js";import a from"@mui/material/Grid2";import{EmptyState as s}from"../../../molecules/EmptyState/index.js";import n from"../../../../icons/CheckmarkCircleSolid/index.js";import{useTranslation as l}from"../../../../providers/TranslationProvider.js";import d from"./LibraryTabContentSkeleton.js";const m=o(a)((()=>({listStyle:"none",margin:0,padding:0}))),c=o(r,{shouldForwardProp:e=>"selected"!==e})((({theme:e,selected:t})=>({width:"100%",cursor:"pointer",position:"relative","& .MuiCard-root":{borderWidth:"2px",borderColor:t?e.palette.semantic.stroke["stroke-selected"]:"transparent",boxShadow:t?"none":`inset 0 0 0 1px ${e.palette.semantic.stroke["stroke-weak"]}`},"&:focus-visible .MuiCard-root":{borderColor:e.palette.semantic.stroke["stroke-selected"],boxShadow:"none"}}))),p=o(n)((({theme:e})=>({position:"absolute",top:e.spacing(2),left:e.spacing(2),zIndex:1,color:e.palette.semantic.icon["icon-primary"],"& circle":{fill:e.palette.common.white}}))),h=o(r)((({theme:e})=>({padding:e.spacing(4)}))),u=({assets:o,isLoading:r,error:n,selectedAssets:u,onAssetClick:f})=>{const{translate:b}=l();return r?e(d,{}):n?e(h,{children:e(s,{description:"Failed to load assets. Please try again later.",title:"Error loading assets"})}):o&&0!==o.length?e(m,{container:!0,component:"ul",spacing:1,children:o.map((o=>{const r=u.has(o.id);return e(a,{"aria-selected":r,component:"li",size:{widescreen:4,desktop:4,mobile:6,tablet:4},children:t(c,{"aria-label":`${b("Select")} ${o.fileName}`,onClick:()=>f(o),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f(o))},role:"button",selected:r,tabIndex:0,children:[r&&e(p,{size:"lg"}),e(i,{content:o.fileName,heading:"",imageAlt:o.metadata.altText,imageSrc:`${o.url}?h=203&fit=crop`})]})},o.id)}))}):e(h,{children:e(s,{description:"No assets available to display.",title:"No assets found"})})};export{u as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/organisms/AssetManager/LibraryTabContent/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport { styled } from '@mui/material/styles';\n\nimport Box from '@fd/components/atoms/Box';\nimport Card from '@fd/components/atoms/Card';\nimport
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/organisms/AssetManager/LibraryTabContent/index.tsx"],"sourcesContent":["import React from 'react';\n\nimport { styled } from '@mui/material/styles';\n\nimport Box from '@fd/components/atoms/Box';\nimport Card from '@fd/components/atoms/Card';\nimport Grid from '@fd/components/atoms/Grid';\nimport EmptyState from '@fd/components/molecules/EmptyState';\nimport CheckmarkCircleSolidIcon from '@fd/icons/CheckmarkCircleSolid';\nimport { useTranslation } from '@fd/providers/TranslationProvider';\n\nimport type { Asset } from '../types';\nimport LibraryTabContentSkeleton from './LibraryTabContentSkeleton';\n\nconst StyledList = styled(Grid)<{ component: string }>(() => ({\n listStyle: 'none',\n margin: 0,\n padding: 0,\n}));\n\nconst StyledCardWrapper = styled(Box, {\n shouldForwardProp: (prop) => prop !== 'selected',\n})<{ selected?: boolean }>(({ theme, selected }) => ({\n width: '100%',\n cursor: 'pointer',\n position: 'relative',\n '& .MuiCard-root': {\n // Always use 2px border to prevent layout shift\n borderWidth: '2px',\n borderColor: selected ? theme.palette.semantic.stroke['stroke-selected'] : 'transparent',\n // Use box-shadow to create the visual 1px border when not selected\n // This prevents layout shift while maintaining the visual appearance\n boxShadow: selected ? 'none' : `inset 0 0 0 1px ${theme.palette.semantic.stroke['stroke-weak']}`,\n },\n '&:focus-visible .MuiCard-root': {\n borderColor: theme.palette.semantic.stroke['stroke-selected'],\n boxShadow: 'none',\n },\n}));\n\nconst StyledCheckmarkIcon = styled(CheckmarkCircleSolidIcon)(({ theme }) => ({\n position: 'absolute',\n top: theme.spacing(2),\n left: theme.spacing(2),\n zIndex: 1,\n color: theme.palette.semantic.icon['icon-primary'],\n '& circle': {\n fill: theme.palette.common.white,\n },\n}));\n\nconst StyledErrorContainer = styled(Box)(({ theme }) => ({\n padding: theme.spacing(4),\n}));\n\n/**\n * Props for the LibraryTabContent component.\n * @param assets - Array of assets to display\n * @param isLoading - Whether the assets are being loaded\n * @param error - Error object if fetching assets failed\n * @param selectedAssets - Map of selected assets (id -> Asset) for O(1) lookup performance\n * @param onAssetClick - Callback when an asset is clicked\n */\nexport interface LibraryTabContentProps {\n /** Array of assets to display */\n assets?: Asset[];\n /** Whether the assets are being loaded */\n isLoading: boolean;\n /** Error object if fetching assets failed */\n error: Error | null;\n /** Map of selected assets (id -> Asset) for O(1) lookup performance */\n selectedAssets: Map<string, Asset>;\n /** Callback when an asset is clicked */\n onAssetClick: (asset: Asset) => void;\n}\n\n/**\n * LibraryTab component displays a grid of assets that can be selected.\n * Receives assets data from parent and displays loading/error states.\n *\n * @param props - The component props\n * @returns The library tab content\n */\nconst LibraryTabContent: React.FC<LibraryTabContentProps> = ({\n assets,\n isLoading,\n error,\n selectedAssets,\n onAssetClick,\n}) => {\n const { translate } = useTranslation();\n\n if (isLoading) {\n return <LibraryTabContentSkeleton />;\n }\n\n if (error) {\n return (\n // TODO: Update empty state when confirmed with design\n <StyledErrorContainer>\n <EmptyState\n description=\"Failed to load assets. Please try again later.\"\n title=\"Error loading assets\"\n />\n </StyledErrorContainer>\n );\n }\n\n if (!assets || assets.length === 0) {\n return (\n // TODO: Update empty state when confirmed with design\n <StyledErrorContainer>\n <EmptyState description=\"No assets available to display.\" title=\"No assets found\" />\n </StyledErrorContainer>\n );\n }\n\n return (\n <StyledList container component=\"ul\" spacing={1}>\n {assets.map((asset: Asset) => {\n const isSelected = selectedAssets.has(asset.id);\n return (\n <Grid\n key={asset.id}\n aria-selected={isSelected}\n component=\"li\"\n size={{ widescreen: 4, desktop: 4, mobile: 6, tablet: 4 }}\n >\n <StyledCardWrapper\n aria-label={`${translate('Select')} ${asset.fileName}`}\n onClick={() => onAssetClick(asset)}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onAssetClick(asset);\n }\n }}\n role=\"button\"\n selected={isSelected}\n tabIndex={0}\n >\n {isSelected && <StyledCheckmarkIcon size=\"lg\" />}\n <Card\n content={asset.fileName}\n heading=\"\"\n imageAlt={asset.metadata.altText}\n // Image source will be an imgix url, utilise params to render the image in the correct size and format\n imageSrc={`${asset.url}?h=203&fit=crop`}\n />\n </StyledCardWrapper>\n </Grid>\n );\n })}\n </StyledList>\n );\n};\n\nexport default LibraryTabContent;\n"],"names":["StyledList","styled","Grid","listStyle","margin","padding","StyledCardWrapper","Box","shouldForwardProp","prop","theme","selected","width","cursor","position","borderWidth","borderColor","palette","semantic","stroke","boxShadow","StyledCheckmarkIcon","CheckmarkCircleSolidIcon","top","spacing","left","zIndex","color","icon","fill","common","white","StyledErrorContainer","LibraryTabContent","assets","isLoading","error","selectedAssets","onAssetClick","translate","useTranslation","_jsx","LibraryTabContentSkeleton","children","EmptyState","description","title","length","container","component","map","asset","isSelected","has","id","size","widescreen","desktop","mobile","tablet","_jsxs","fileName","onClick","onKeyDown","e","key","preventDefault","role","tabIndex","Card","content","heading","imageAlt","metadata","altText","imageSrc","url"],"mappings":"6dAcA,MAAMA,EAAaC,EAAOC,EAAPD,EAAoC,KAAA,CACrDE,UAAW,OACXC,OAAQ,EACRC,QAAS,MAGLC,EAAoBL,EAAOM,EAAK,CACpCC,kBAAoBC,GAAkB,aAATA,GADLR,EAEC,EAAGS,QAAOC,eAAU,CAC7CC,MAAO,OACPC,OAAQ,UACRC,SAAU,WACV,kBAAmB,CAEjBC,YAAa,MACbC,YAAaL,EAAWD,EAAMO,QAAQC,SAASC,OAAO,mBAAqB,cAG3EC,UAAWT,EAAW,OAAS,mBAAmBD,EAAMO,QAAQC,SAASC,OAAO,kBAElF,gCAAiC,CAC/BH,YAAaN,EAAMO,QAAQC,SAASC,OAAO,mBAC3CC,UAAW,YAITC,EAAsBpB,EAAOqB,EAAPrB,EAAiC,EAAGS,YAAO,CACrEI,SAAU,WACVS,IAAKb,EAAMc,QAAQ,GACnBC,KAAMf,EAAMc,QAAQ,GACpBE,OAAQ,EACRC,MAAOjB,EAAMO,QAAQC,SAASU,KAAK,gBACnC,WAAY,CACVC,KAAMnB,EAAMO,QAAQa,OAAOC,WAIzBC,EAAuB/B,EAAOM,EAAPN,EAAY,EAAGS,YAAO,CACjDL,QAASK,EAAMc,QAAQ,OA+BnBS,EAAsD,EAC1DC,SACAC,YACAC,QACAC,iBACAC,mBAEA,MAAMC,UAAEA,GAAcC,IAEtB,OAAIL,EACKM,EAACC,EAAyB,IAG/BN,EAGAK,EAACT,EAAoB,CAAAW,SACnBF,EAACG,GACCC,YAAY,iDACZC,MAAM,2BAMTZ,GAA4B,IAAlBA,EAAOa,OAUpBN,EAACzC,EAAU,CAACgD,WAAS,EAACC,UAAU,KAAKzB,QAAS,WAC3CU,EAAOgB,KAAKC,IACX,MAAMC,EAAaf,EAAegB,IAAIF,EAAMG,IAC5C,OACEb,EAACvC,EAAI,CAAA,gBAEYkD,EACfH,UAAU,KACVM,KAAM,CAAEC,WAAY,EAAGC,QAAS,EAAGC,OAAQ,EAAGC,OAAQ,GAAGhB,SAEzDiB,EAACtD,EAAiB,CAAA,aACJ,GAAGiC,EAAU,aAAaY,EAAMU,WAC5CC,QAAS,IAAMxB,EAAaa,GAC5BY,UAAYC,IACI,UAAVA,EAAEC,KAA6B,MAAVD,EAAEC,MACzBD,EAAEE,iBACF5B,EAAaa,KAGjBgB,KAAK,SACLxD,SAAUyC,EACVgB,SAAU,YAEThB,GAAcX,EAACpB,EAAmB,CAACkC,KAAK,OACzCd,EAAC4B,EAAI,CACHC,QAASnB,EAAMU,SACfU,QAAQ,GACRC,SAAUrB,EAAMsB,SAASC,QAEzBC,SAAU,GAAGxB,EAAMyB,2BAxBlBzB,EAAMG,SAZjBb,EAACT,EAAoB,CAAAW,SACnBF,EAACG,GAAWC,YAAY,kCAAkCC,MAAM"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("../types/index.cjs.js");const a=(a={})=>({...{id:"asset_e3454351fw5",fileName:"Mock Asset.jpg",contentType:"image/jpeg",url:"./images/pizza-horizontal.jpg",createdBy:"Mock User",updatedBy:"Mock User",updatedAt:(new Date).toISOString(),
|
|
1
|
+
"use strict";var e=require("../types/index.cjs.js");const a=(a={})=>({...{id:"asset_e3454351fw5",fileName:"Mock Asset.jpg",contentType:"image/jpeg",url:"./images/pizza-horizontal.jpg",fileSize:1e3,createdBy:"Mock User",updatedBy:"Mock User",updatedAt:(new Date).toISOString(),createdAt:(new Date).toISOString(),orgId:"org10121",brandId:"br1",type:e.AssetType.IMAGE,metadata:{tags:["mock"]}},...a}),t={data:[a({id:"asset_e3454351fw5",fileName:"Pizza Special.jpg",createdBy:"John Doe",updatedBy:"John Doe",metadata:{tags:["pizza","food"],altText:"Delicious pizza with toppings"}}),a({id:"asset_et351fw6",fileName:"Burger Combo.jpg",createdBy:"Jane Smith",updatedBy:"Jane Smith",metadata:{tags:["burger","food"],altText:"Juicy burger with fries"}}),a({id:"asset_f351fw7",fileName:"Salad Fresh.jpg",createdBy:"Bob Johnson",updatedBy:"Bob Johnson",metadata:{tags:["salad","healthy"],altText:"Fresh green salad"}}),a({id:"asset_g351fw8",fileName:"Pasta Delight.jpg",createdBy:"Alice Brown",updatedBy:"Alice Brown",metadata:{tags:["pasta","italian"]}}),a({id:"asset_h351fw9",fileName:"Dessert Special.jpg",createdBy:"Charlie Davis",updatedBy:"Charlie Davis",metadata:{tags:["dessert","sweet"]}})]};exports.createMockAsset=a,exports.createMockAssets=(e,t)=>Array.from({length:e},((e,s)=>{const i=t?.[s]||{};return a({id:(s+1).toString(),fileName:`Mock Asset ${s+1}.jpg`,...i})})),exports.mockAssets=t;
|
|
2
2
|
//# sourceMappingURL=mockAssets.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mockAssets.cjs.js","sources":["../../../../../src/components/organisms/AssetManager/__mocks__/mockAssets.ts"],"sourcesContent":["import { type Asset, type AssetResponse, AssetType } from '../types';\n\n/**\n * Factory function to create a mock asset with customizable properties\n * @param overrides - Partial asset properties to override defaults\n * @returns A complete mock asset\n */\nexport const createMockAsset = (overrides: Partial<Asset> = {}): Asset => {\n const defaultAsset: Asset = {\n id: 'asset_e3454351fw5',\n fileName: 'Mock Asset.jpg',\n contentType: 'image/jpeg',\n url: './images/pizza-horizontal.jpg',\n createdBy: 'Mock User',\n updatedBy: 'Mock User',\n updatedAt: new Date().toISOString(),\n
|
|
1
|
+
{"version":3,"file":"mockAssets.cjs.js","sources":["../../../../../src/components/organisms/AssetManager/__mocks__/mockAssets.ts"],"sourcesContent":["import { type Asset, type AssetResponse, AssetType } from '../types';\n\n/**\n * Factory function to create a mock asset with customizable properties\n * @param overrides - Partial asset properties to override defaults\n * @returns A complete mock asset\n */\nexport const createMockAsset = (overrides: Partial<Asset> = {}): Asset => {\n const defaultAsset: Asset = {\n id: 'asset_e3454351fw5',\n fileName: 'Mock Asset.jpg',\n contentType: 'image/jpeg',\n url: './images/pizza-horizontal.jpg',\n fileSize: 1000,\n createdBy: 'Mock User',\n updatedBy: 'Mock User',\n updatedAt: new Date().toISOString(),\n createdAt: new Date().toISOString(),\n orgId: 'org10121',\n brandId: 'br1',\n type: AssetType.IMAGE,\n metadata: { tags: ['mock'] },\n };\n\n return { ...defaultAsset, ...overrides };\n};\n\n/**\n * Generate multiple mock assets\n * @param count - Number of assets to generate\n * @param overridesArray - Optional array of overrides for each asset\n * @returns Array of mock assets\n */\nexport const createMockAssets = (count: number, overridesArray?: Array<Partial<Asset>>): Asset[] => {\n return Array.from({ length: count }, (_, index) => {\n const baseOverrides = overridesArray?.[index] || {};\n return createMockAsset({\n id: (index + 1).toString(),\n fileName: `Mock Asset ${index + 1}.jpg`,\n ...baseOverrides,\n });\n });\n};\n\n/**\n * Pre-defined mock assets for common testing scenarios\n */\nexport const mockAssets: AssetResponse = {\n data: [\n createMockAsset({\n id: 'asset_e3454351fw5',\n fileName: 'Pizza Special.jpg',\n createdBy: 'John Doe',\n updatedBy: 'John Doe',\n metadata: { tags: ['pizza', 'food'], altText: 'Delicious pizza with toppings' },\n }),\n createMockAsset({\n id: 'asset_et351fw6',\n fileName: 'Burger Combo.jpg',\n createdBy: 'Jane Smith',\n updatedBy: 'Jane Smith',\n metadata: { tags: ['burger', 'food'], altText: 'Juicy burger with fries' },\n }),\n createMockAsset({\n id: 'asset_f351fw7',\n fileName: 'Salad Fresh.jpg',\n createdBy: 'Bob Johnson',\n updatedBy: 'Bob Johnson',\n metadata: { tags: ['salad', 'healthy'], altText: 'Fresh green salad' },\n }),\n createMockAsset({\n id: 'asset_g351fw8',\n fileName: 'Pasta Delight.jpg',\n createdBy: 'Alice Brown',\n updatedBy: 'Alice Brown',\n metadata: { tags: ['pasta', 'italian'] },\n }),\n createMockAsset({\n id: 'asset_h351fw9',\n fileName: 'Dessert Special.jpg',\n createdBy: 'Charlie Davis',\n updatedBy: 'Charlie Davis',\n metadata: { tags: ['dessert', 'sweet'] },\n }),\n ],\n};\n"],"names":["createMockAsset","overrides","id","fileName","contentType","url","fileSize","createdBy","updatedBy","updatedAt","Date","toISOString","createdAt","orgId","brandId","type","AssetType","IMAGE","metadata","tags","mockAssets","data","altText","count","overridesArray","Array","from","length","_","index","baseOverrides","toString"],"mappings":"0DAOaA,EAAkB,CAACC,EAA4B,MAiBnD,IAhBqB,CAC1BC,GAAI,oBACJC,SAAU,iBACVC,YAAa,aACbC,IAAK,gCACLC,SAAU,IACVC,UAAW,YACXC,UAAW,YACXC,WAAW,IAAIC,MAAOC,cACtBC,WAAW,IAAIF,MAAOC,cACtBE,MAAO,WACPC,QAAS,MACTC,KAAMC,EAAAA,UAAUC,MAChBC,SAAU,CAAEC,KAAM,CAAC,aAGQlB,IAuBlBmB,EAA4B,CACvCC,KAAM,CACJrB,EAAgB,CACdE,GAAI,oBACJC,SAAU,oBACVI,UAAW,WACXC,UAAW,WACXU,SAAU,CAAEC,KAAM,CAAC,QAAS,QAASG,QAAS,mCAEhDtB,EAAgB,CACdE,GAAI,iBACJC,SAAU,mBACVI,UAAW,aACXC,UAAW,aACXU,SAAU,CAAEC,KAAM,CAAC,SAAU,QAASG,QAAS,6BAEjDtB,EAAgB,CACdE,GAAI,gBACJC,SAAU,kBACVI,UAAW,cACXC,UAAW,cACXU,SAAU,CAAEC,KAAM,CAAC,QAAS,WAAYG,QAAS,uBAEnDtB,EAAgB,CACdE,GAAI,gBACJC,SAAU,oBACVI,UAAW,cACXC,UAAW,cACXU,SAAU,CAAEC,KAAM,CAAC,QAAS,cAE9BnB,EAAgB,CACdE,GAAI,gBACJC,SAAU,sBACVI,UAAW,gBACXC,UAAW,gBACXU,SAAU,CAAEC,KAAM,CAAC,UAAW,iEAjDJ,CAACI,EAAeC,IACvCC,MAAMC,KAAK,CAAEC,OAAQJ,IAAS,CAACK,EAAGC,KACvC,MAAMC,EAAgBN,IAAiBK,IAAU,CAAA,EACjD,OAAO7B,EAAgB,CACrBE,IAAK2B,EAAQ,GAAGE,WAChB5B,SAAU,cAAc0B,EAAQ,WAC7BC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{AssetType as e}from"../types/index.js";const a=(a={})=>({...{id:"asset_e3454351fw5",fileName:"Mock Asset.jpg",contentType:"image/jpeg",url:"./images/pizza-horizontal.jpg",createdBy:"Mock User",updatedBy:"Mock User",updatedAt:(new Date).toISOString(),
|
|
1
|
+
import{AssetType as e}from"../types/index.js";const a=(a={})=>({...{id:"asset_e3454351fw5",fileName:"Mock Asset.jpg",contentType:"image/jpeg",url:"./images/pizza-horizontal.jpg",fileSize:1e3,createdBy:"Mock User",updatedBy:"Mock User",updatedAt:(new Date).toISOString(),createdAt:(new Date).toISOString(),orgId:"org10121",brandId:"br1",type:e.IMAGE,metadata:{tags:["mock"]}},...a}),t=(e,t)=>Array.from({length:e},((e,i)=>{const s=t?.[i]||{};return a({id:(i+1).toString(),fileName:`Mock Asset ${i+1}.jpg`,...s})})),i={data:[a({id:"asset_e3454351fw5",fileName:"Pizza Special.jpg",createdBy:"John Doe",updatedBy:"John Doe",metadata:{tags:["pizza","food"],altText:"Delicious pizza with toppings"}}),a({id:"asset_et351fw6",fileName:"Burger Combo.jpg",createdBy:"Jane Smith",updatedBy:"Jane Smith",metadata:{tags:["burger","food"],altText:"Juicy burger with fries"}}),a({id:"asset_f351fw7",fileName:"Salad Fresh.jpg",createdBy:"Bob Johnson",updatedBy:"Bob Johnson",metadata:{tags:["salad","healthy"],altText:"Fresh green salad"}}),a({id:"asset_g351fw8",fileName:"Pasta Delight.jpg",createdBy:"Alice Brown",updatedBy:"Alice Brown",metadata:{tags:["pasta","italian"]}}),a({id:"asset_h351fw9",fileName:"Dessert Special.jpg",createdBy:"Charlie Davis",updatedBy:"Charlie Davis",metadata:{tags:["dessert","sweet"]}})]};export{a as createMockAsset,t as createMockAssets,i as mockAssets};
|
|
2
2
|
//# sourceMappingURL=mockAssets.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mockAssets.js","sources":["../../../../../src/components/organisms/AssetManager/__mocks__/mockAssets.ts"],"sourcesContent":["import { type Asset, type AssetResponse, AssetType } from '../types';\n\n/**\n * Factory function to create a mock asset with customizable properties\n * @param overrides - Partial asset properties to override defaults\n * @returns A complete mock asset\n */\nexport const createMockAsset = (overrides: Partial<Asset> = {}): Asset => {\n const defaultAsset: Asset = {\n id: 'asset_e3454351fw5',\n fileName: 'Mock Asset.jpg',\n contentType: 'image/jpeg',\n url: './images/pizza-horizontal.jpg',\n createdBy: 'Mock User',\n updatedBy: 'Mock User',\n updatedAt: new Date().toISOString(),\n
|
|
1
|
+
{"version":3,"file":"mockAssets.js","sources":["../../../../../src/components/organisms/AssetManager/__mocks__/mockAssets.ts"],"sourcesContent":["import { type Asset, type AssetResponse, AssetType } from '../types';\n\n/**\n * Factory function to create a mock asset with customizable properties\n * @param overrides - Partial asset properties to override defaults\n * @returns A complete mock asset\n */\nexport const createMockAsset = (overrides: Partial<Asset> = {}): Asset => {\n const defaultAsset: Asset = {\n id: 'asset_e3454351fw5',\n fileName: 'Mock Asset.jpg',\n contentType: 'image/jpeg',\n url: './images/pizza-horizontal.jpg',\n fileSize: 1000,\n createdBy: 'Mock User',\n updatedBy: 'Mock User',\n updatedAt: new Date().toISOString(),\n createdAt: new Date().toISOString(),\n orgId: 'org10121',\n brandId: 'br1',\n type: AssetType.IMAGE,\n metadata: { tags: ['mock'] },\n };\n\n return { ...defaultAsset, ...overrides };\n};\n\n/**\n * Generate multiple mock assets\n * @param count - Number of assets to generate\n * @param overridesArray - Optional array of overrides for each asset\n * @returns Array of mock assets\n */\nexport const createMockAssets = (count: number, overridesArray?: Array<Partial<Asset>>): Asset[] => {\n return Array.from({ length: count }, (_, index) => {\n const baseOverrides = overridesArray?.[index] || {};\n return createMockAsset({\n id: (index + 1).toString(),\n fileName: `Mock Asset ${index + 1}.jpg`,\n ...baseOverrides,\n });\n });\n};\n\n/**\n * Pre-defined mock assets for common testing scenarios\n */\nexport const mockAssets: AssetResponse = {\n data: [\n createMockAsset({\n id: 'asset_e3454351fw5',\n fileName: 'Pizza Special.jpg',\n createdBy: 'John Doe',\n updatedBy: 'John Doe',\n metadata: { tags: ['pizza', 'food'], altText: 'Delicious pizza with toppings' },\n }),\n createMockAsset({\n id: 'asset_et351fw6',\n fileName: 'Burger Combo.jpg',\n createdBy: 'Jane Smith',\n updatedBy: 'Jane Smith',\n metadata: { tags: ['burger', 'food'], altText: 'Juicy burger with fries' },\n }),\n createMockAsset({\n id: 'asset_f351fw7',\n fileName: 'Salad Fresh.jpg',\n createdBy: 'Bob Johnson',\n updatedBy: 'Bob Johnson',\n metadata: { tags: ['salad', 'healthy'], altText: 'Fresh green salad' },\n }),\n createMockAsset({\n id: 'asset_g351fw8',\n fileName: 'Pasta Delight.jpg',\n createdBy: 'Alice Brown',\n updatedBy: 'Alice Brown',\n metadata: { tags: ['pasta', 'italian'] },\n }),\n createMockAsset({\n id: 'asset_h351fw9',\n fileName: 'Dessert Special.jpg',\n createdBy: 'Charlie Davis',\n updatedBy: 'Charlie Davis',\n metadata: { tags: ['dessert', 'sweet'] },\n }),\n ],\n};\n"],"names":["createMockAsset","overrides","id","fileName","contentType","url","fileSize","createdBy","updatedBy","updatedAt","Date","toISOString","createdAt","orgId","brandId","type","AssetType","IMAGE","metadata","tags","createMockAssets","count","overridesArray","Array","from","length","_","index","baseOverrides","toString","mockAssets","data","altText"],"mappings":"oDAOaA,EAAkB,CAACC,EAA4B,MAiBnD,IAhBqB,CAC1BC,GAAI,oBACJC,SAAU,iBACVC,YAAa,aACbC,IAAK,gCACLC,SAAU,IACVC,UAAW,YACXC,UAAW,YACXC,WAAW,IAAIC,MAAOC,cACtBC,WAAW,IAAIF,MAAOC,cACtBE,MAAO,WACPC,QAAS,MACTC,KAAMC,EAAUC,MAChBC,SAAU,CAAEC,KAAM,CAAC,aAGQlB,IASlBmB,EAAmB,CAACC,EAAeC,IACvCC,MAAMC,KAAK,CAAEC,OAAQJ,IAAS,CAACK,EAAGC,KACvC,MAAMC,EAAgBN,IAAiBK,IAAU,CAAA,EACjD,OAAO3B,EAAgB,CACrBE,IAAKyB,EAAQ,GAAGE,WAChB1B,SAAU,cAAcwB,EAAQ,WAC7BC,OAQIE,EAA4B,CACvCC,KAAM,CACJ/B,EAAgB,CACdE,GAAI,oBACJC,SAAU,oBACVI,UAAW,WACXC,UAAW,WACXU,SAAU,CAAEC,KAAM,CAAC,QAAS,QAASa,QAAS,mCAEhDhC,EAAgB,CACdE,GAAI,iBACJC,SAAU,mBACVI,UAAW,aACXC,UAAW,aACXU,SAAU,CAAEC,KAAM,CAAC,SAAU,QAASa,QAAS,6BAEjDhC,EAAgB,CACdE,GAAI,gBACJC,SAAU,kBACVI,UAAW,cACXC,UAAW,cACXU,SAAU,CAAEC,KAAM,CAAC,QAAS,WAAYa,QAAS,uBAEnDhC,EAAgB,CACdE,GAAI,gBACJC,SAAU,oBACVI,UAAW,cACXC,UAAW,cACXU,SAAU,CAAEC,KAAM,CAAC,QAAS,cAE9BnB,EAAgB,CACdE,GAAI,gBACJC,SAAU,sBACVI,UAAW,gBACXC,UAAW,gBACXU,SAAU,CAAEC,KAAM,CAAC,UAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.queryKeys.cjs.js","sources":["../../../../src/components/organisms/AssetManager/assets.queryKeys.ts"],"sourcesContent":["export const assetsKeys = {\n all: ['assets'] as const,\n list: (params: { orgId: string; brandId?: string }) => [...assetsKeys.all, 'list', params] as const,\n upload: ['assets', 'upload'] as const,\n};\n"],"names":["assetsKeys","all","list","params","upload"],"mappings":"aAAO,MAAMA,EAAa,CACxBC,IAAK,CAAC,UACNC,KAAOC,GAAgD,IAAIH,EAAWC,IAAK,OAAQE,GACnFC,OAAQ,CAAC,SAAU"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const assetsKeys: {
|
|
2
|
+
all: readonly ["assets"];
|
|
3
|
+
list: (params: {
|
|
4
|
+
orgId: string;
|
|
5
|
+
brandId?: string;
|
|
6
|
+
}) => readonly ["assets", "list", {
|
|
7
|
+
orgId: string;
|
|
8
|
+
brandId?: string | undefined;
|
|
9
|
+
}];
|
|
10
|
+
upload: readonly ["assets", "upload"];
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { assetsKeys };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.queryKeys.js","sources":["../../../../src/components/organisms/AssetManager/assets.queryKeys.ts"],"sourcesContent":["export const assetsKeys = {\n all: ['assets'] as const,\n list: (params: { orgId: string; brandId?: string }) => [...assetsKeys.all, 'list', params] as const,\n upload: ['assets', 'upload'] as const,\n};\n"],"names":["assetsKeys","all","list","params","upload"],"mappings":"AAAO,MAAMA,EAAa,CACxBC,IAAK,CAAC,UACNC,KAAOC,GAAgD,IAAIH,EAAWC,IAAK,OAAQE,GACnFC,OAAQ,CAAC,SAAU"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("../../../../utilities/timeUtilities.cjs.js"),s=require("@tanstack/react-query"),t=require("../services/asset.service.cjs.js");exports.useGetAssets=(
|
|
1
|
+
"use strict";var e=require("../../../../utilities/timeUtilities.cjs.js"),s=require("@tanstack/react-query"),r=require("../assets.queryKeys.cjs.js"),t=require("../services/asset.service.cjs.js");exports.useGetAssets=(i,u,a)=>s.useQuery({queryKey:r.assetsKeys.list({orgId:i,brandId:a}),queryFn:()=>t.getAssets(i,a),gcTime:e.TEN_MINUTES,enabled:u});
|
|
2
2
|
//# sourceMappingURL=useGetAssets.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetAssets.cjs.js","sources":["../../../../../src/components/organisms/AssetManager/hooks/useGetAssets.ts"],"sourcesContent":["import { TEN_MINUTES } from '@fd/utilities/timeUtilities';\nimport { useQuery, type UseQueryResult } from '@tanstack/react-query';\n\nimport { getAssets
|
|
1
|
+
{"version":3,"file":"useGetAssets.cjs.js","sources":["../../../../../src/components/organisms/AssetManager/hooks/useGetAssets.ts"],"sourcesContent":["import { TEN_MINUTES } from '@fd/utilities/timeUtilities';\nimport { useQuery, type UseQueryResult } from '@tanstack/react-query';\n\nimport { assetsKeys } from '../assets.queryKeys';\nimport { getAssets } from '../services/asset.service';\nimport type { AssetResponse } from '../types';\n\n/**\n * Hook to fetch assets from the API\n * Automatically determines the API URL based on environment and orgId\n * @param orgId - Organization ID\n * @param enabled - Whether the query should be enabled\n * @param brandId - Brand ID\n * @returns Query result with assets data, loading state, and error state\n */\nexport const useGetAssets = (\n orgId: string,\n enabled: boolean,\n brandId?: string,\n): UseQueryResult<AssetResponse, Error> => {\n return useQuery<AssetResponse, Error>({\n queryKey: assetsKeys.list({ orgId, brandId }),\n queryFn: () => getAssets(orgId, brandId),\n gcTime: TEN_MINUTES,\n enabled,\n });\n};\n"],"names":["orgId","enabled","brandId","useQuery","queryKey","assetsKeys","list","queryFn","getAssets","gcTime","TEN_MINUTES"],"mappings":"uNAe4B,CAC1BA,EACAC,EACAC,IAEOC,WAA+B,CACpCC,SAAUC,EAAAA,WAAWC,KAAK,CAAEN,QAAOE,YACnCK,QAAS,IAAMC,EAAAA,UAAUR,EAAOE,GAChCO,OAAQC,EAAAA,YACRT"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{TEN_MINUTES as e}from"../../../../utilities/timeUtilities.js";import{useQuery as
|
|
1
|
+
import{TEN_MINUTES as e}from"../../../../utilities/timeUtilities.js";import{useQuery as r}from"@tanstack/react-query";import{assetsKeys as s}from"../assets.queryKeys.js";import{getAssets as t}from"../services/asset.service.js";const i=(i,o,m)=>r({queryKey:s.list({orgId:i,brandId:m}),queryFn:()=>t(i,m),gcTime:e,enabled:o});export{i as useGetAssets};
|
|
2
2
|
//# sourceMappingURL=useGetAssets.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetAssets.js","sources":["../../../../../src/components/organisms/AssetManager/hooks/useGetAssets.ts"],"sourcesContent":["import { TEN_MINUTES } from '@fd/utilities/timeUtilities';\nimport { useQuery, type UseQueryResult } from '@tanstack/react-query';\n\nimport { getAssets
|
|
1
|
+
{"version":3,"file":"useGetAssets.js","sources":["../../../../../src/components/organisms/AssetManager/hooks/useGetAssets.ts"],"sourcesContent":["import { TEN_MINUTES } from '@fd/utilities/timeUtilities';\nimport { useQuery, type UseQueryResult } from '@tanstack/react-query';\n\nimport { assetsKeys } from '../assets.queryKeys';\nimport { getAssets } from '../services/asset.service';\nimport type { AssetResponse } from '../types';\n\n/**\n * Hook to fetch assets from the API\n * Automatically determines the API URL based on environment and orgId\n * @param orgId - Organization ID\n * @param enabled - Whether the query should be enabled\n * @param brandId - Brand ID\n * @returns Query result with assets data, loading state, and error state\n */\nexport const useGetAssets = (\n orgId: string,\n enabled: boolean,\n brandId?: string,\n): UseQueryResult<AssetResponse, Error> => {\n return useQuery<AssetResponse, Error>({\n queryKey: assetsKeys.list({ orgId, brandId }),\n queryFn: () => getAssets(orgId, brandId),\n gcTime: TEN_MINUTES,\n enabled,\n });\n};\n"],"names":["useGetAssets","orgId","enabled","brandId","useQuery","queryKey","assetsKeys","list","queryFn","getAssets","gcTime","TEN_MINUTES"],"mappings":"mOAeO,MAAMA,EAAe,CAC1BC,EACAC,EACAC,IAEOC,EAA+B,CACpCC,SAAUC,EAAWC,KAAK,CAAEN,QAAOE,YACnCK,QAAS,IAAMC,EAAUR,EAAOE,GAChCO,OAAQC,EACRT"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var s=require("@tanstack/react-query"),e=require("../assets.queryKeys.cjs.js"),t=require("../services/asset.service.cjs.js");exports.useUploadAsset=()=>{const a=s.useQueryClient();return s.useMutation({mutationKey:e.assetsKeys.upload,mutationFn:t.uploadAsset,onSuccess:(s,t)=>{const r=e.assetsKeys.list({orgId:t.orgId,brandId:t.brandId}),u=s.data||[];a.setQueryData(r,(s=>({data:[...u,...s?.data||[]]})))}})};
|
|
2
2
|
//# sourceMappingURL=useUploadAsset.cjs.js.map
|