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