@shopify/shop-minis-react 0.0.20 → 0.0.22
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/dist/_virtual/___vite-browser-external.js +7 -0
- package/dist/_virtual/___vite-browser-external.js.map +1 -0
- package/dist/_virtual/__vite-browser-external.js +5 -0
- package/dist/_virtual/__vite-browser-external.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +24 -4
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/browser-index.js +8 -0
- package/dist/_virtual/browser-index.js.map +1 -0
- package/dist/_virtual/browser-index2.js +5 -0
- package/dist/_virtual/browser-index2.js.map +1 -0
- package/dist/_virtual/clock.js +6 -0
- package/dist/_virtual/clock.js.map +1 -0
- package/dist/_virtual/conventions.js +5 -0
- package/dist/_virtual/conventions.js.map +1 -0
- package/dist/_virtual/document.js +8 -0
- package/dist/_virtual/document.js.map +1 -0
- package/dist/_virtual/dom-parser.js +5 -0
- package/dist/_virtual/dom-parser.js.map +1 -0
- package/dist/_virtual/dom.js +5 -0
- package/dist/_virtual/dom.js.map +1 -0
- package/dist/_virtual/entities.js +5 -0
- package/dist/_virtual/entities.js.map +1 -0
- package/dist/_virtual/extends.js +5 -0
- package/dist/_virtual/extends.js.map +1 -0
- package/dist/_virtual/index10.js +5 -0
- package/dist/_virtual/index10.js.map +1 -0
- package/dist/_virtual/index11.js +5 -0
- package/dist/_virtual/index11.js.map +1 -0
- package/dist/_virtual/index2.js +5 -2
- package/dist/_virtual/index2.js.map +1 -1
- package/dist/_virtual/index3.js +5 -3
- package/dist/_virtual/index3.js.map +1 -1
- package/dist/_virtual/index5.js +6 -0
- package/dist/_virtual/index5.js.map +1 -0
- package/dist/_virtual/index6.js +6 -0
- package/dist/_virtual/index6.js.map +1 -0
- package/dist/_virtual/index7.js +5 -0
- package/dist/_virtual/index7.js.map +1 -0
- package/dist/_virtual/index8.js +5 -0
- package/dist/_virtual/index8.js.map +1 -0
- package/dist/_virtual/index9.js +5 -0
- package/dist/_virtual/index9.js.map +1 -0
- package/dist/_virtual/parse-sidx.js +8 -0
- package/dist/_virtual/parse-sidx.js.map +1 -0
- package/dist/_virtual/sax.js +5 -0
- package/dist/_virtual/sax.js.map +1 -0
- package/dist/_virtual/window.js +8 -0
- package/dist/_virtual/window.js.map +1 -0
- package/dist/components/atoms/video-player.js +121 -0
- package/dist/components/atoms/video-player.js.map +1 -0
- package/dist/components/commerce/merchant-card.js +236 -106
- package/dist/components/commerce/merchant-card.js.map +1 -1
- package/dist/hooks/storage/useImageUpload.js.map +1 -1
- package/dist/hooks/util/useErrorScreen.js.map +1 -1
- package/dist/hooks/util/useErrorToast.js.map +1 -1
- package/dist/index.js +205 -195
- package/dist/index.js.map +1 -1
- package/dist/mocks.js +114 -87
- package/dist/mocks.js.map +1 -1
- package/dist/shop-minis-react/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/extends.js +20 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@babel_runtime@7.27.6/node_modules/@babel/runtime/helpers/extends.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@radix-ui_react-use-is-hydrated@0.1.0_@types_react@19.1.6_react@19.1.0/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +1 -1
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/byte-helpers.js +79 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/byte-helpers.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/codecs.js +102 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/codecs.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/containers.js +149 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/containers.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/decode-b64-to-uint8-array.js +13 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/decode-b64-to-uint8-array.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/ebml-helpers.js +77 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/ebml-helpers.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/id3-helpers.js +15 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/id3-helpers.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/media-groups.js +13 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/media-groups.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/media-types.js +7 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/media-types.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/mp4-helpers.js +31 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/mp4-helpers.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/nal-helpers.js +39 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/nal-helpers.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/resolve-url.js +14 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/resolve-url.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/stream.js +33 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_vhs-utils@4.1.1/node_modules/@videojs/vhs-utils/es/stream.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/http-handler.js +42 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/http-handler.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/index.js +169 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/index.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/interceptors.js +75 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/interceptors.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/retry.js +70 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@videojs_xhr@2.7.0/node_modules/@videojs/xhr/lib/retry.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/conventions.js +124 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/conventions.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/dom-parser.js +151 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/dom-parser.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/dom.js +993 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/dom.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/entities.js +2146 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/entities.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/index.js +14 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/index.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/sax.js +346 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@xmldom_xmldom@0.8.10/node_modules/@xmldom/xmldom/lib/sax.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js +308 -0
- package/dist/shop-minis-react/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js +41 -0
- package/dist/shop-minis-react/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js +53 -0
- package/dist/shop-minis-react/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js +157 -0
- package/dist/shop-minis-react/node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/color-string@1.9.1/node_modules/color-string/index.js +103 -0
- package/dist/shop-minis-react/node_modules/.pnpm/color-string@1.9.1/node_modules/color-string/index.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/color@4.2.3/node_modules/color/index.js +269 -0
- package/dist/shop-minis-react/node_modules/.pnpm/color@4.2.3/node_modules/color/index.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/global@4.4.0/node_modules/global/document.js +13 -0
- package/dist/shop-minis-react/node_modules/.pnpm/global@4.4.0/node_modules/global/document.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/global@4.4.0/node_modules/global/window.js +12 -0
- package/dist/shop-minis-react/node_modules/.pnpm/global@4.4.0/node_modules/global/window.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/is-arrayish@0.3.2/node_modules/is-arrayish/index.js +10 -0
- package/dist/shop-minis-react/node_modules/.pnpm/is-arrayish@0.3.2/node_modules/is-arrayish/index.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js +18 -0
- package/dist/shop-minis-react/node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/m3u8-parser@7.2.0/node_modules/m3u8-parser/dist/m3u8-parser.es.js +855 -0
- package/dist/shop-minis-react/node_modules/.pnpm/m3u8-parser@7.2.0/node_modules/m3u8-parser/dist/m3u8-parser.es.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/mpd-parser@1.3.1/node_modules/mpd-parser/dist/mpd-parser.es.js +1102 -0
- package/dist/shop-minis-react/node_modules/.pnpm/mpd-parser@1.3.1/node_modules/mpd-parser/dist/mpd-parser.es.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/mux.js@7.1.0/node_modules/mux.js/lib/tools/parse-sidx.js +32 -0
- package/dist/shop-minis-react/node_modules/.pnpm/mux.js@7.1.0/node_modules/mux.js/lib/tools/parse-sidx.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/mux.js@7.1.0/node_modules/mux.js/lib/utils/clock.js +34 -0
- package/dist/shop-minis-react/node_modules/.pnpm/mux.js@7.1.0/node_modules/mux.js/lib/utils/clock.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/mux.js@7.1.0/node_modules/mux.js/lib/utils/numbers.js +17 -0
- package/dist/shop-minis-react/node_modules/.pnpm/mux.js@7.1.0/node_modules/mux.js/lib/utils/numbers.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/querystringify@2.2.0/node_modules/querystringify/index.js +1 -1
- package/dist/shop-minis-react/node_modules/.pnpm/simple-swizzle@0.2.2/node_modules/simple-swizzle/index.js +23 -0
- package/dist/shop-minis-react/node_modules/.pnpm/simple-swizzle@0.2.2/node_modules/simple-swizzle/index.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.0/node_modules/use-sync-external-store/shim/index.js +1 -1
- package/dist/shop-minis-react/node_modules/.pnpm/video.js@8.23.3/node_modules/video.js/dist/video.es.js +27824 -0
- package/dist/shop-minis-react/node_modules/.pnpm/video.js@8.23.3/node_modules/video.js/dist/video.es.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/browser-index.js +26 -0
- package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/browser-index.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/vtt.js +802 -0
- package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/vtt.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/vttcue.js +188 -0
- package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/vttcue.js.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/vttregion.js +104 -0
- package/dist/shop-minis-react/node_modules/.pnpm/videojs-vtt.js@0.15.5/node_modules/videojs-vtt.js/lib/vttregion.js.map +1 -0
- package/dist/shop-minis-react.css +1 -1
- package/dist/utils/colors.js +6 -0
- package/dist/utils/colors.js.map +1 -0
- package/dist/utils/merchant-card.js +44 -0
- package/dist/utils/merchant-card.js.map +1 -0
- package/package.json +6 -2
- package/src/components/atoms/video-player.tsx +213 -0
- package/src/components/commerce/merchant-card.tsx +219 -49
- package/src/components/index.ts +2 -0
- package/src/hooks/storage/useImageUpload.ts +3 -2
- package/src/hooks/util/useErrorScreen.ts +2 -1
- package/src/hooks/util/useErrorToast.ts +2 -1
- package/src/mocks.ts +148 -16
- package/src/stories/MerchantCard.stories.tsx +63 -9
- package/src/utils/colors.ts +5 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/merchant-card.ts +99 -0
- package/src/hooks/navigation/useCloseMini.doc.ts +0 -32
- package/src/hooks/navigation/useCloseMini.example.tsx +0 -7
- package/src/hooks/navigation/useDeeplink.doc.ts +0 -32
- package/src/hooks/navigation/useDeeplink.example.tsx +0 -7
- package/src/hooks/navigation/useShopNavigation.doc.ts +0 -32
- package/src/hooks/navigation/useShopNavigation.example.tsx +0 -29
- package/src/hooks/product/useCuratedProducts.doc.ts +0 -32
- package/src/hooks/product/useCuratedProducts.example.tsx +0 -10
- package/src/hooks/product/useProductList.doc.ts +0 -32
- package/src/hooks/product/useProductList.example.tsx +0 -9
- package/src/hooks/product/useProductListActions.doc.ts +0 -32
- package/src/hooks/product/useProductListActions.example.tsx +0 -57
- package/src/hooks/product/useProductLists.doc.ts +0 -32
- package/src/hooks/product/useProductLists.example.tsx +0 -9
- package/src/hooks/product/useProductSearch.doc.ts +0 -32
- package/src/hooks/product/useProductSearch.example.tsx +0 -13
- package/src/hooks/product/useRecommendedProducts.doc.ts +0 -32
- package/src/hooks/product/useRecommendedProducts.example.tsx +0 -7
- package/src/hooks/shop/useRecommendedShops.doc.ts +0 -32
- package/src/hooks/shop/useRecommendedShops.example.tsx +0 -7
- package/src/hooks/shop/useShop.doc.ts +0 -31
- package/src/hooks/shop/useShop.example.tsx +0 -7
- package/src/hooks/shop/useShopCartActions.doc.ts +0 -32
- package/src/hooks/shop/useShopCartActions.example.tsx +0 -28
- package/src/hooks/storage/useAsyncStorage.doc.ts +0 -32
- package/src/hooks/storage/useAsyncStorage.example.tsx +0 -30
- package/src/hooks/storage/useImageUpload.doc.ts +0 -32
- package/src/hooks/storage/useImageUpload.example.tsx +0 -20
- package/src/hooks/storage/useSecureStorage.doc.ts +0 -32
- package/src/hooks/storage/useSecureStorage.example.tsx +0 -23
- package/src/hooks/user/useBuyerAttributes.doc.ts +0 -32
- package/src/hooks/user/useBuyerAttributes.example.tsx +0 -14
- package/src/hooks/user/useCurrentUser.doc.ts +0 -31
- package/src/hooks/user/useCurrentUser.example.tsx +0 -7
- package/src/hooks/user/useFollowedShopsActions.doc.ts +0 -32
- package/src/hooks/user/useFollowedShopsActions.example.tsx +0 -18
- package/src/hooks/user/useOrders.doc.ts +0 -32
- package/src/hooks/user/useOrders.example.tsx +0 -7
- package/src/hooks/user/useRecentProducts.doc.ts +0 -32
- package/src/hooks/user/useRecentProducts.example.tsx +0 -13
- package/src/hooks/user/useSavedProducts.doc.ts +0 -32
- package/src/hooks/user/useSavedProducts.example.tsx +0 -13
- package/src/hooks/user/useSavedProductsActions.doc.ts +0 -32
- package/src/hooks/user/useSavedProductsActions.example.tsx +0 -30
- package/src/hooks/util/useErrorScreen.doc.ts +0 -32
- package/src/hooks/util/useErrorScreen.example.tsx +0 -16
- package/src/hooks/util/useErrorToast.doc.ts +0 -32
- package/src/hooks/util/useErrorToast.example.tsx +0 -15
- package/src/hooks/util/useImagePicker.example.tsx +0 -85
package/dist/index.js
CHANGED
|
@@ -1,220 +1,230 @@
|
|
|
1
1
|
import { DATA_NAVIGATION_TYPE_ATTRIBUTE as o, NAVIGATION_TYPES as t } from "./types/index.js";
|
|
2
2
|
import { MinisContainer as i } from "./components/MinisContainer.js";
|
|
3
3
|
import { ProductCard as p } from "./components/commerce/product-card.js";
|
|
4
|
-
import { ProductLink as
|
|
4
|
+
import { ProductLink as s } from "./components/commerce/product-link.js";
|
|
5
5
|
import { MerchantCard as u, MerchantCardPrimitive as x } from "./components/commerce/merchant-card.js";
|
|
6
6
|
import { ProductCardSkeleton as c } from "./components/commerce/product-card-skeleton.js";
|
|
7
|
-
import { MerchantCardSkeleton as
|
|
7
|
+
import { MerchantCardSkeleton as g } from "./components/commerce/merchant-card-skeleton.js";
|
|
8
8
|
import { TransitionContainer as D } from "./components/navigation/transition-container.js";
|
|
9
9
|
import { TransitionLink as C } from "./components/navigation/transition-link.js";
|
|
10
10
|
import { Button as T } from "./components/atoms/button.js";
|
|
11
11
|
import { FavoriteButton as I } from "./components/atoms/favorite-button.js";
|
|
12
12
|
import { IconButton as v } from "./components/atoms/icon-button.js";
|
|
13
|
-
import { ThumbhashImage as
|
|
14
|
-
import { Touchable as
|
|
15
|
-
import { AlertDialogAtom as
|
|
16
|
-
import { List as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
13
|
+
import { ThumbhashImage as b } from "./components/atoms/thumbhash-image.js";
|
|
14
|
+
import { Touchable as k } from "./components/atoms/touchable.js";
|
|
15
|
+
import { AlertDialogAtom as E } from "./components/atoms/alert-dialog.js";
|
|
16
|
+
import { List as N } from "./components/atoms/list.js";
|
|
17
|
+
import { VideoPlayer as y } from "./components/atoms/video-player.js";
|
|
18
|
+
import { Accordion as H, AccordionContent as O, AccordionItem as V, AccordionTrigger as U } from "./components/ui/accordion.js";
|
|
19
|
+
import { Alert as _, AlertDescription as Y, AlertTitle as W } from "./components/ui/alert.js";
|
|
20
|
+
import { AlertDialog as q, AlertDialogAction as J, AlertDialogCancel as K, AlertDialogContent as Q, AlertDialogDescription as X, AlertDialogFooter as Z, AlertDialogHeader as $, AlertDialogOverlay as rr, AlertDialogPortal as er, AlertDialogTitle as or, AlertDialogTrigger as tr } from "./components/ui/alert-dialog.js";
|
|
21
|
+
import { Avatar as ir, AvatarFallback as lr, AvatarImage as pr } from "./components/ui/avatar.js";
|
|
22
|
+
import { Badge as sr, badgeVariants as nr } from "./components/ui/badge.js";
|
|
23
|
+
import { Card as xr, CardAction as fr, CardContent as cr, CardDescription as dr, CardFooter as gr, CardHeader as Sr, CardTitle as Dr } from "./components/ui/card.js";
|
|
24
|
+
import { Carousel as Cr, CarouselContent as Pr, CarouselItem as Tr, CarouselNext as hr, CarouselPrevious as Ir } from "./components/ui/carousel.js";
|
|
25
|
+
import { Checkbox as vr } from "./components/ui/checkbox.js";
|
|
26
|
+
import { Dialog as br, DialogClose as Fr, DialogContent as kr, DialogDescription as Br, DialogFooter as Er, DialogHeader as Mr, DialogOverlay as Nr, DialogPortal as Lr, DialogTitle as yr, DialogTrigger as Gr } from "./components/ui/dialog.js";
|
|
27
|
+
import { Drawer as Or, DrawerClose as Vr, DrawerContent as Ur, DrawerDescription as zr, DrawerFooter as _r, DrawerHeader as Yr, DrawerOverlay as Wr, DrawerPortal as jr, DrawerTitle as qr, DrawerTrigger as Jr } from "./components/ui/drawer.js";
|
|
28
|
+
import { Input as Qr } from "./components/ui/input.js";
|
|
29
|
+
import { Label as Zr } from "./components/ui/label.js";
|
|
30
|
+
import { Progress as re } from "./components/ui/progress.js";
|
|
31
|
+
import { RadioGroup as oe, RadioGroupItem as te } from "./components/ui/radio-group.js";
|
|
32
|
+
import { ResizableHandle as ie, ResizablePanel as le, ResizablePanelGroup as pe } from "./components/ui/resizable.js";
|
|
33
|
+
import { ScrollArea as se, ScrollBar as ne } from "./components/ui/scroll-area.js";
|
|
34
|
+
import { Select as xe, SelectContent as fe, SelectGroup as ce, SelectItem as de, SelectLabel as ge, SelectScrollDownButton as Se, SelectScrollUpButton as De, SelectSeparator as Ae, SelectTrigger as Ce, SelectValue as Pe } from "./components/ui/select.js";
|
|
35
|
+
import { Separator as he } from "./components/ui/separator.js";
|
|
36
|
+
import { Sheet as we, SheetClose as ve, SheetContent as Re, SheetDescription as be, SheetFooter as Fe, SheetHeader as ke, SheetTitle as Be, SheetTrigger as Ee } from "./components/ui/sheet.js";
|
|
37
|
+
import { Toaster as Ne } from "./components/ui/sonner.js";
|
|
38
|
+
import { Skeleton as ye } from "./components/ui/skeleton.js";
|
|
39
|
+
import { useRecentProducts as He } from "./hooks/user/useRecentProducts.js";
|
|
40
|
+
import { useRecentShops as Ve } from "./hooks/user/useRecentShops.js";
|
|
41
|
+
import { useSavedProducts as ze } from "./hooks/user/useSavedProducts.js";
|
|
42
|
+
import { useSavedProductsActions as Ye } from "./hooks/user/useSavedProductsActions.js";
|
|
43
|
+
import { useFollowedShops as je } from "./hooks/user/useFollowedShops.js";
|
|
44
|
+
import { useFollowedShopsActions as Je } from "./hooks/user/useFollowedShopsActions.js";
|
|
45
|
+
import { useCurrentUser as Qe } from "./hooks/user/useCurrentUser.js";
|
|
46
|
+
import { useOrders as Ze } from "./hooks/user/useOrders.js";
|
|
47
|
+
import { useBuyerAttributes as ro } from "./hooks/user/useBuyerAttributes.js";
|
|
48
|
+
import { useProductListActions as oo } from "./hooks/product/useProductListActions.js";
|
|
49
|
+
import { useProductLists as ao } from "./hooks/product/useProductLists.js";
|
|
50
|
+
import { useProductList as lo } from "./hooks/product/useProductList.js";
|
|
51
|
+
import { useProduct as mo } from "./hooks/product/useProduct.js";
|
|
52
|
+
import { useProducts as no } from "./hooks/product/useProducts.js";
|
|
53
|
+
import { useProductVariants as xo } from "./hooks/product/useProductVariants.js";
|
|
54
|
+
import { useProductMedia as co } from "./hooks/product/useProductMedia.js";
|
|
55
|
+
import { useProductSearch as So } from "./hooks/product/useProductSearch.js";
|
|
56
|
+
import { useRecommendedProducts as Ao } from "./hooks/product/useRecommendedProducts.js";
|
|
57
|
+
import { usePopularProducts as Po } from "./hooks/product/usePopularProducts.js";
|
|
58
|
+
import { useCuratedProducts as ho } from "./hooks/product/useCuratedProducts.js";
|
|
59
|
+
import { useAsyncStorage as wo } from "./hooks/storage/useAsyncStorage.js";
|
|
60
|
+
import { useSecureStorage as Ro } from "./hooks/storage/useSecureStorage.js";
|
|
61
|
+
import { useImageUpload as Fo } from "./hooks/storage/useImageUpload.js";
|
|
62
|
+
import { useShopNavigation as Bo } from "./hooks/navigation/useShopNavigation.js";
|
|
63
|
+
import { useCloseMini as Mo } from "./hooks/navigation/useCloseMini.js";
|
|
64
|
+
import { useDeeplink as Lo } from "./hooks/navigation/useDeeplink.js";
|
|
65
|
+
import { useNavigateWithTransition as Go } from "./hooks/navigation/useNavigateWithTransition.js";
|
|
66
|
+
import { useShop as Oo } from "./hooks/shop/useShop.js";
|
|
67
|
+
import { useShopCartActions as Uo } from "./hooks/shop/useShopCartActions.js";
|
|
68
|
+
import { useRecommendedShops as _o } from "./hooks/shop/useRecommendedShops.js";
|
|
69
|
+
import { useErrorToast as Wo } from "./hooks/util/useErrorToast.js";
|
|
70
|
+
import { useErrorScreen as qo } from "./hooks/util/useErrorScreen.js";
|
|
71
|
+
import { useShare as Ko } from "./hooks/util/useShare.js";
|
|
72
|
+
import { useImagePicker as Xo } from "./hooks/util/useImagePicker.js";
|
|
73
|
+
import { MiniEntityNotFoundError as $o, MiniError as rt, MiniNetworkError as et, formatError as ot } from "./utils/errors.js";
|
|
74
|
+
import { extractBrandTheme as at, formatReviewCount as it, getFeaturedImages as lt, normalizeRating as pt } from "./utils/merchant-card.js";
|
|
75
|
+
import { parseUrl as st } from "./utils/parseUrl.js";
|
|
76
|
+
import { Consent as ut, ConsentStatus as xt } from "./shop-minis-platform/src/types/permissions.js";
|
|
74
77
|
export {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
78
|
+
H as Accordion,
|
|
79
|
+
O as AccordionContent,
|
|
80
|
+
V as AccordionItem,
|
|
81
|
+
U as AccordionTrigger,
|
|
82
|
+
_ as Alert,
|
|
83
|
+
Y as AlertDescription,
|
|
84
|
+
q as AlertDialog,
|
|
85
|
+
J as AlertDialogAction,
|
|
86
|
+
E as AlertDialogAtom,
|
|
87
|
+
K as AlertDialogCancel,
|
|
88
|
+
Q as AlertDialogContent,
|
|
89
|
+
X as AlertDialogDescription,
|
|
90
|
+
Z as AlertDialogFooter,
|
|
91
|
+
$ as AlertDialogHeader,
|
|
92
|
+
rr as AlertDialogOverlay,
|
|
93
|
+
er as AlertDialogPortal,
|
|
94
|
+
or as AlertDialogTitle,
|
|
95
|
+
tr as AlertDialogTrigger,
|
|
96
|
+
W as AlertTitle,
|
|
97
|
+
ir as Avatar,
|
|
98
|
+
lr as AvatarFallback,
|
|
99
|
+
pr as AvatarImage,
|
|
100
|
+
sr as Badge,
|
|
97
101
|
T as Button,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
102
|
+
xr as Card,
|
|
103
|
+
fr as CardAction,
|
|
104
|
+
cr as CardContent,
|
|
105
|
+
dr as CardDescription,
|
|
106
|
+
gr as CardFooter,
|
|
107
|
+
Sr as CardHeader,
|
|
108
|
+
Dr as CardTitle,
|
|
109
|
+
Cr as Carousel,
|
|
110
|
+
Pr as CarouselContent,
|
|
111
|
+
Tr as CarouselItem,
|
|
112
|
+
hr as CarouselNext,
|
|
113
|
+
Ir as CarouselPrevious,
|
|
114
|
+
vr as Checkbox,
|
|
115
|
+
ut as Consent,
|
|
116
|
+
xt as ConsentStatus,
|
|
113
117
|
o as DATA_NAVIGATION_TYPE_ATTRIBUTE,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
118
|
+
br as Dialog,
|
|
119
|
+
Fr as DialogClose,
|
|
120
|
+
kr as DialogContent,
|
|
121
|
+
Br as DialogDescription,
|
|
122
|
+
Er as DialogFooter,
|
|
123
|
+
Mr as DialogHeader,
|
|
124
|
+
Nr as DialogOverlay,
|
|
125
|
+
Lr as DialogPortal,
|
|
126
|
+
yr as DialogTitle,
|
|
127
|
+
Gr as DialogTrigger,
|
|
128
|
+
Or as Drawer,
|
|
129
|
+
Vr as DrawerClose,
|
|
130
|
+
Ur as DrawerContent,
|
|
131
|
+
zr as DrawerDescription,
|
|
132
|
+
_r as DrawerFooter,
|
|
133
|
+
Yr as DrawerHeader,
|
|
134
|
+
Wr as DrawerOverlay,
|
|
135
|
+
jr as DrawerPortal,
|
|
136
|
+
qr as DrawerTitle,
|
|
137
|
+
Jr as DrawerTrigger,
|
|
134
138
|
I as FavoriteButton,
|
|
135
139
|
v as IconButton,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
140
|
+
Qr as Input,
|
|
141
|
+
Zr as Label,
|
|
142
|
+
N as List,
|
|
139
143
|
u as MerchantCard,
|
|
140
144
|
x as MerchantCardPrimitive,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
+
g as MerchantCardSkeleton,
|
|
146
|
+
$o as MiniEntityNotFoundError,
|
|
147
|
+
rt as MiniError,
|
|
148
|
+
et as MiniNetworkError,
|
|
145
149
|
i as MinisContainer,
|
|
146
150
|
t as NAVIGATION_TYPES,
|
|
147
151
|
p as ProductCard,
|
|
148
152
|
c as ProductCardSkeleton,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
153
|
+
s as ProductLink,
|
|
154
|
+
re as Progress,
|
|
155
|
+
oe as RadioGroup,
|
|
156
|
+
te as RadioGroupItem,
|
|
157
|
+
ie as ResizableHandle,
|
|
158
|
+
le as ResizablePanel,
|
|
159
|
+
pe as ResizablePanelGroup,
|
|
160
|
+
se as ScrollArea,
|
|
161
|
+
ne as ScrollBar,
|
|
162
|
+
xe as Select,
|
|
163
|
+
fe as SelectContent,
|
|
164
|
+
ce as SelectGroup,
|
|
165
|
+
de as SelectItem,
|
|
166
|
+
ge as SelectLabel,
|
|
167
|
+
Se as SelectScrollDownButton,
|
|
168
|
+
De as SelectScrollUpButton,
|
|
169
|
+
Ae as SelectSeparator,
|
|
170
|
+
Ce as SelectTrigger,
|
|
171
|
+
Pe as SelectValue,
|
|
172
|
+
he as Separator,
|
|
173
|
+
we as Sheet,
|
|
174
|
+
ve as SheetClose,
|
|
175
|
+
Re as SheetContent,
|
|
176
|
+
be as SheetDescription,
|
|
177
|
+
Fe as SheetFooter,
|
|
178
|
+
ke as SheetHeader,
|
|
179
|
+
Be as SheetTitle,
|
|
180
|
+
Ee as SheetTrigger,
|
|
181
|
+
ye as Skeleton,
|
|
182
|
+
b as ThumbhashImage,
|
|
183
|
+
Ne as Toaster,
|
|
184
|
+
k as Touchable,
|
|
181
185
|
D as TransitionContainer,
|
|
182
186
|
C as TransitionLink,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
187
|
+
y as VideoPlayer,
|
|
188
|
+
nr as badgeVariants,
|
|
189
|
+
at as extractBrandTheme,
|
|
190
|
+
ot as formatError,
|
|
191
|
+
it as formatReviewCount,
|
|
192
|
+
lt as getFeaturedImages,
|
|
193
|
+
pt as normalizeRating,
|
|
194
|
+
st as parseUrl,
|
|
195
|
+
wo as useAsyncStorage,
|
|
196
|
+
ro as useBuyerAttributes,
|
|
197
|
+
Mo as useCloseMini,
|
|
198
|
+
ho as useCuratedProducts,
|
|
199
|
+
Qe as useCurrentUser,
|
|
200
|
+
Lo as useDeeplink,
|
|
201
|
+
qo as useErrorScreen,
|
|
202
|
+
Wo as useErrorToast,
|
|
203
|
+
je as useFollowedShops,
|
|
204
|
+
Je as useFollowedShopsActions,
|
|
205
|
+
Xo as useImagePicker,
|
|
206
|
+
Fo as useImageUpload,
|
|
207
|
+
Go as useNavigateWithTransition,
|
|
208
|
+
Ze as useOrders,
|
|
209
|
+
Po as usePopularProducts,
|
|
210
|
+
mo as useProduct,
|
|
211
|
+
lo as useProductList,
|
|
212
|
+
oo as useProductListActions,
|
|
213
|
+
ao as useProductLists,
|
|
214
|
+
co as useProductMedia,
|
|
215
|
+
So as useProductSearch,
|
|
216
|
+
xo as useProductVariants,
|
|
217
|
+
no as useProducts,
|
|
218
|
+
He as useRecentProducts,
|
|
219
|
+
Ve as useRecentShops,
|
|
220
|
+
Ao as useRecommendedProducts,
|
|
221
|
+
_o as useRecommendedShops,
|
|
222
|
+
ze as useSavedProducts,
|
|
223
|
+
Ye as useSavedProductsActions,
|
|
224
|
+
Ro as useSecureStorage,
|
|
225
|
+
Ko as useShare,
|
|
226
|
+
Oo as useShop,
|
|
227
|
+
Uo as useShopCartActions,
|
|
228
|
+
Bo as useShopNavigation
|
|
219
229
|
};
|
|
220
230
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|