@shopify/shop-minis-react 0.0.0-snapshot.20251219164319 → 0.0.0-snapshot.20251222174301
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/components/navigation/minis-router.js +8 -15
- package/dist/components/navigation/minis-router.js.map +1 -1
- package/dist/hooks/intents/useBarcodeScanner.js +10 -0
- package/dist/hooks/intents/useBarcodeScanner.js.map +1 -0
- package/dist/hooks/intents/useContentShare.js +10 -0
- package/dist/hooks/intents/useContentShare.js.map +1 -0
- package/dist/hooks/intents/useImageCapture.js +10 -0
- package/dist/hooks/intents/useImageCapture.js.map +1 -0
- package/dist/hooks/intents/useLocationSelection.js +10 -0
- package/dist/hooks/intents/useLocationSelection.js.map +1 -0
- package/dist/hooks/intents/usePaymentRequest.js +10 -0
- package/dist/hooks/intents/usePaymentRequest.js.map +1 -0
- package/dist/hooks/intents/useProductSelection.js +10 -0
- package/dist/hooks/intents/useProductSelection.js.map +1 -0
- package/dist/hooks/navigation/useNavigateWithTransition.js +6 -6
- package/dist/hooks/navigation/useNavigateWithTransition.js.map +1 -1
- package/dist/index.js +131 -118
- package/dist/index.js.map +1 -1
- package/dist/internal/useHandleIntent.js +26 -0
- package/dist/internal/useHandleIntent.js.map +1 -0
- package/dist/internal/useShopIntents.js +7 -0
- package/dist/internal/useShopIntents.js.map +1 -0
- package/dist/mocks.js +10 -11
- package/dist/mocks.js.map +1 -1
- package/dist/shop-minis-platform/src/intents/shared.js +19 -0
- package/dist/shop-minis-platform/src/intents/shared.js.map +1 -0
- package/package.json +2 -2
- package/src/components/navigation/minis-router.tsx +1 -9
- package/src/hooks/index.ts +3 -1
- package/src/hooks/intents/index.ts +42 -0
- package/src/hooks/intents/useBarcodeScanner.ts +43 -0
- package/src/hooks/intents/useContentShare.ts +47 -0
- package/src/hooks/intents/useImageCapture.ts +45 -0
- package/src/hooks/intents/useLocationSelection.ts +45 -0
- package/src/hooks/intents/usePaymentRequest.ts +47 -0
- package/src/hooks/intents/useProductSelection.ts +45 -0
- package/src/hooks/navigation/useNavigateWithTransition.test.ts +3 -17
- package/src/hooks/navigation/useNavigateWithTransition.ts +4 -9
- package/src/internal/useHandleIntent.ts +101 -0
- package/src/internal/useShopIntents.ts +13 -0
- package/src/mocks.ts +0 -1
- package/dist/hooks/events/useOnNavigateBack.js +0 -14
- package/dist/hooks/events/useOnNavigateBack.js.map +0 -1
- package/dist/internal/navigation-manager.js +0 -28
- package/dist/internal/navigation-manager.js.map +0 -1
- package/src/hooks/events/useOnNavigateBack.ts +0 -16
- package/src/internal/navigation-manager.tsx +0 -41
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BrowserRouter as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
function x({
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { BrowserRouter as i } from "../../shop-minis-react/node_modules/.pnpm/react-router@7.7.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-router/dist/development/chunk-EF7DTUVF.js";
|
|
3
|
+
import { TransitionContainer as e } from "./transition-container.js";
|
|
4
|
+
function s({
|
|
6
5
|
children: o,
|
|
7
|
-
viewTransitions:
|
|
8
|
-
...
|
|
6
|
+
viewTransitions: n = !1,
|
|
7
|
+
...t
|
|
9
8
|
}) {
|
|
10
|
-
return
|
|
11
|
-
/* @__PURE__ */ r(e, {}),
|
|
12
|
-
/* @__PURE__ */ r(a, { children: o })
|
|
13
|
-
] }) : /* @__PURE__ */ t(n, { ...i, children: [
|
|
14
|
-
/* @__PURE__ */ r(e, {}),
|
|
15
|
-
o
|
|
16
|
-
] });
|
|
9
|
+
return n ? /* @__PURE__ */ r(i, { ...t, children: /* @__PURE__ */ r(e, { children: o }) }) : /* @__PURE__ */ r(i, { ...t, children: o });
|
|
17
10
|
}
|
|
18
11
|
export {
|
|
19
|
-
|
|
12
|
+
s as MinisRouter
|
|
20
13
|
};
|
|
21
14
|
//# sourceMappingURL=minis-router.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minis-router.js","sources":["../../../src/components/navigation/minis-router.tsx"],"sourcesContent":["import {BrowserRouter, BrowserRouterProps} from 'react-router'\n\nimport {
|
|
1
|
+
{"version":3,"file":"minis-router.js","sources":["../../../src/components/navigation/minis-router.tsx"],"sourcesContent":["import {BrowserRouter, BrowserRouterProps} from 'react-router'\n\nimport {TransitionContainer} from './transition-container'\n\nexport interface MinisRouterProps extends BrowserRouterProps {\n viewTransitions?: boolean\n}\n\nexport function MinisRouter({\n children,\n viewTransitions = false,\n ...props\n}: MinisRouterProps) {\n if (viewTransitions) {\n return (\n <BrowserRouter {...props}>\n <TransitionContainer>{children}</TransitionContainer>\n </BrowserRouter>\n )\n }\n\n return <BrowserRouter {...props}>{children}</BrowserRouter>\n}\n"],"names":["MinisRouter","children","viewTransitions","props","BrowserRouter","jsx","TransitionContainer"],"mappings":";;;AAQO,SAASA,EAAY;AAAA,EAC1B,UAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,GAAGC;AACL,GAAqB;AACnB,SAAID,sBAECE,GAAe,EAAA,GAAGD,GACjB,UAAC,gBAAAE,EAAAC,GAAA,EAAqB,UAAAL,EAAS,CAAA,GACjC,IAII,gBAAAI,EAAAD,GAAA,EAAe,GAAGD,GAAQ,UAAAF,EAAS,CAAA;AAC7C;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useHandleIntent as t } from "../../internal/useHandleIntent.js";
|
|
2
|
+
import { useShopIntents as o } from "../../internal/useShopIntents.js";
|
|
3
|
+
const c = (n) => {
|
|
4
|
+
const e = o();
|
|
5
|
+
return t(e.scanBarcode, n);
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
c as useBarcodeScanner
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useBarcodeScanner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBarcodeScanner.js","sources":["../../../src/hooks/intents/useBarcodeScanner.ts"],"sourcesContent":["import {\n useHandleIntent,\n HandleIntentOptions,\n} from '../../internal/useHandleIntent'\nimport {useShopIntents} from '../../internal/useShopIntents'\n\nimport type {\n ScanBarcodeIntentParams,\n ScanBarcodeIntentResult,\n} from '@shopify/shop-minis-platform'\n\n/**\n * Hook to scan barcodes or QR codes\n *\n * This intent opens the camera to scan barcodes or QR codes.\n *\n * @example\n * const scanBarcode = useBarcodeScanner({\n * onCancel: () => console.log('User cancelled'),\n * })\n *\n * const result = await scanBarcode({\n * types: ['qr', 'ean13'],\n * instruction: 'Scan product barcode'\n * })\n *\n * if (result) {\n * console.log('Scanned:', result.barcodes)\n * }\n */\nexport const useBarcodeScanner = (\n options?: HandleIntentOptions<ScanBarcodeIntentResult>\n) => {\n const intents = useShopIntents()\n return useHandleIntent(intents.scanBarcode, options)\n}\n\n/**\n * Type helper for the barcode scanner function\n */\nexport type BarcodeScannerFunction = (\n params: ScanBarcodeIntentParams\n) => Promise<ScanBarcodeIntentResult | void>\n"],"names":["useBarcodeScanner","options","intents","useShopIntents","useHandleIntent"],"mappings":";;AA8Ba,MAAAA,IAAoB,CAC/BC,MACG;AACH,QAAMC,IAAUC,EAAe;AACxB,SAAAC,EAAgBF,EAAQ,aAAaD,CAAO;AACrD;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useHandleIntent as e } from "../../internal/useHandleIntent.js";
|
|
2
|
+
import { useShopIntents as o } from "../../internal/useShopIntents.js";
|
|
3
|
+
const m = (t) => {
|
|
4
|
+
const n = o();
|
|
5
|
+
return e(n.shareContent, t);
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
m as useContentShare
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useContentShare.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useContentShare.js","sources":["../../../src/hooks/intents/useContentShare.ts"],"sourcesContent":["import {\n useHandleIntent,\n HandleIntentOptions,\n} from '../../internal/useHandleIntent'\nimport {useShopIntents} from '../../internal/useShopIntents'\n\nimport type {\n ShareContentIntentParams,\n ShareContentIntentResult,\n} from '@shopify/shop-minis-platform'\n\n/**\n * Hook to share content via the Shop app's native share sheet\n *\n * This intent opens the native share sheet to let the user\n * share content to various platforms.\n *\n * @example\n * const shareContent = useContentShare({\n * onCancel: () => console.log('User cancelled sharing'),\n * })\n *\n * const result = await shareContent({\n * type: 'product',\n * content: {\n * title: 'Check out this product!',\n * url: 'https://shop.app/products/123'\n * }\n * })\n *\n * if (result?.shared) {\n * console.log('Content shared to:', result.platform)\n * }\n */\nexport const useContentShare = (\n options?: HandleIntentOptions<ShareContentIntentResult>\n) => {\n const intents = useShopIntents()\n return useHandleIntent(intents.shareContent, options)\n}\n\n/**\n * Type helper for the content share function\n */\nexport type ContentShareFunction = (\n params: ShareContentIntentParams\n) => Promise<ShareContentIntentResult | void>\n"],"names":["useContentShare","options","intents","useShopIntents","useHandleIntent"],"mappings":";;AAkCa,MAAAA,IAAkB,CAC7BC,MACG;AACH,QAAMC,IAAUC,EAAe;AACxB,SAAAC,EAAgBF,EAAQ,cAAcD,CAAO;AACtD;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useHandleIntent as n } from "../../internal/useHandleIntent.js";
|
|
2
|
+
import { useShopIntents as r } from "../../internal/useShopIntents.js";
|
|
3
|
+
const m = (t) => {
|
|
4
|
+
const e = r();
|
|
5
|
+
return n(e.captureImage, t);
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
m as useImageCapture
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useImageCapture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useImageCapture.js","sources":["../../../src/hooks/intents/useImageCapture.ts"],"sourcesContent":["import {\n useHandleIntent,\n HandleIntentOptions,\n} from '../../internal/useHandleIntent'\nimport {useShopIntents} from '../../internal/useShopIntents'\n\nimport type {\n CaptureImageIntentParams,\n CaptureImageIntentResult,\n} from '@shopify/shop-minis-platform'\n\n/**\n * Hook to request user to capture or select images\n *\n * This intent opens the camera or photo gallery to let the user\n * capture or select one or more images.\n *\n * @example\n * const captureImage = useImageCapture({\n * onCancel: () => console.log('User cancelled'),\n * })\n *\n * const result = await captureImage({\n * source: 'camera',\n * quality: 0.8,\n * maxWidth: 1920\n * })\n *\n * if (result) {\n * console.log('Captured images:', result.images)\n * }\n */\nexport const useImageCapture = (\n options?: HandleIntentOptions<CaptureImageIntentResult>\n) => {\n const intents = useShopIntents()\n return useHandleIntent(intents.captureImage, options)\n}\n\n/**\n * Type helper for the image capture function\n */\nexport type ImageCaptureFunction = (\n params: CaptureImageIntentParams\n) => Promise<CaptureImageIntentResult | void>\n"],"names":["useImageCapture","options","intents","useShopIntents","useHandleIntent"],"mappings":";;AAgCa,MAAAA,IAAkB,CAC7BC,MACG;AACH,QAAMC,IAAUC,EAAe;AACxB,SAAAC,EAAgBF,EAAQ,cAAcD,CAAO;AACtD;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useHandleIntent as n } from "../../internal/useHandleIntent.js";
|
|
2
|
+
import { useShopIntents as o } from "../../internal/useShopIntents.js";
|
|
3
|
+
const c = (t) => {
|
|
4
|
+
const e = o();
|
|
5
|
+
return n(e.selectLocation, t);
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
c as useLocationSelection
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useLocationSelection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLocationSelection.js","sources":["../../../src/hooks/intents/useLocationSelection.ts"],"sourcesContent":["import {\n useHandleIntent,\n HandleIntentOptions,\n} from '../../internal/useHandleIntent'\nimport {useShopIntents} from '../../internal/useShopIntents'\n\nimport type {\n SelectLocationIntentParams,\n SelectLocationIntentResult,\n} from '@shopify/shop-minis-platform'\n\n/**\n * Hook to request user to select a location\n *\n * This intent shows a map interface where the user can select\n * a location and optionally get address information.\n *\n * @example\n * const selectLocation = useLocationSelection({\n * onCancel: () => console.log('User cancelled'),\n * })\n *\n * const result = await selectLocation({\n * title: 'Select delivery location',\n * locationType: 'address'\n * })\n *\n * if (result) {\n * console.log('Selected location:', result.coordinates)\n * console.log('Address:', result.address?.formattedAddress)\n * }\n */\nexport const useLocationSelection = (\n options?: HandleIntentOptions<SelectLocationIntentResult>\n) => {\n const intents = useShopIntents()\n return useHandleIntent(intents.selectLocation, options)\n}\n\n/**\n * Type helper for the location selection function\n */\nexport type LocationSelectionFunction = (\n params: SelectLocationIntentParams\n) => Promise<SelectLocationIntentResult | void>\n"],"names":["useLocationSelection","options","intents","useShopIntents","useHandleIntent"],"mappings":";;AAgCa,MAAAA,IAAuB,CAClCC,MACG;AACH,QAAMC,IAAUC,EAAe;AACxB,SAAAC,EAAgBF,EAAQ,gBAAgBD,CAAO;AACxD;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useHandleIntent as n } from "../../internal/useHandleIntent.js";
|
|
2
|
+
import { useShopIntents as s } from "../../internal/useShopIntents.js";
|
|
3
|
+
const m = (t) => {
|
|
4
|
+
const e = s();
|
|
5
|
+
return n(e.requestPayment, t);
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
m as usePaymentRequest
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=usePaymentRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePaymentRequest.js","sources":["../../../src/hooks/intents/usePaymentRequest.ts"],"sourcesContent":["import {\n useHandleIntent,\n HandleIntentOptions,\n} from '../../internal/useHandleIntent'\nimport {useShopIntents} from '../../internal/useShopIntents'\n\nimport type {\n RequestPaymentIntentParams,\n RequestPaymentIntentResult,\n} from '@shopify/shop-minis-platform'\n\n/**\n * Hook to request payment from user\n *\n * This intent opens the Shop app's payment flow to process a payment.\n *\n * **Note:** This intent requires special permissions and may have rate limits.\n *\n * @example\n * const requestPayment = usePaymentRequest({\n * onCancel: () => console.log('User cancelled payment'),\n * onError: (error) => console.error('Payment failed:', error)\n * })\n *\n * const result = await requestPayment({\n * amount: 999, // $9.99 in cents\n * currency: 'USD',\n * description: 'Premium subscription'\n * })\n *\n * if (result) {\n * console.log('Payment successful:', result.transactionId)\n * }\n */\nexport const usePaymentRequest = (\n options?: HandleIntentOptions<RequestPaymentIntentResult>\n) => {\n const intents = useShopIntents()\n return useHandleIntent(intents.requestPayment, options)\n}\n\n/**\n * Type helper for the payment request function\n */\nexport type PaymentRequestFunction = (\n params: RequestPaymentIntentParams\n) => Promise<RequestPaymentIntentResult | void>\n"],"names":["usePaymentRequest","options","intents","useShopIntents","useHandleIntent"],"mappings":";;AAkCa,MAAAA,IAAoB,CAC/BC,MACG;AACH,QAAMC,IAAUC,EAAe;AACxB,SAAAC,EAAgBF,EAAQ,gBAAgBD,CAAO;AACxD;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useHandleIntent as n } from "../../internal/useHandleIntent.js";
|
|
2
|
+
import { useShopIntents as o } from "../../internal/useShopIntents.js";
|
|
3
|
+
const c = (t) => {
|
|
4
|
+
const e = o();
|
|
5
|
+
return n(e.selectProduct, t);
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
c as useProductSelection
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useProductSelection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useProductSelection.js","sources":["../../../src/hooks/intents/useProductSelection.ts"],"sourcesContent":["import {\n useHandleIntent,\n HandleIntentOptions,\n} from '../../internal/useHandleIntent'\nimport {useShopIntents} from '../../internal/useShopIntents'\n\nimport type {\n SelectProductIntentParams,\n SelectProductIntentResult,\n} from '@shopify/shop-minis-platform'\n\n/**\n * Hook to request user to select products\n *\n * This intent shows a product selection screen where the user can browse\n * and select one or more products from the Shop catalog.\n *\n * @example\n * const selectProducts = useProductSelection({\n * onCancel: () => console.log('User cancelled'),\n * })\n *\n * const result = await selectProducts({\n * multiSelect: true,\n * maxSelections: 5,\n * title: 'Choose your favorites'\n * })\n *\n * if (result) {\n * console.log('Selected products:', result.products)\n * }\n */\nexport const useProductSelection = (\n options?: HandleIntentOptions<SelectProductIntentResult>\n) => {\n const intents = useShopIntents()\n return useHandleIntent(intents.selectProduct, options)\n}\n\n/**\n * Type helper for the product selection function\n */\nexport type ProductSelectionFunction = (\n params: SelectProductIntentParams\n) => Promise<SelectProductIntentResult | void>\n"],"names":["useProductSelection","options","intents","useShopIntents","useHandleIntent"],"mappings":";;AAgCa,MAAAA,IAAsB,CACjCC,MACG;AACH,QAAMC,IAAUC,EAAe;AACxB,SAAAC,EAAgBF,EAAQ,eAAeD,CAAO;AACvD;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useNavigate as
|
|
1
|
+
import { useNavigate as c, useLocation as u } from "../../shop-minis-react/node_modules/.pnpm/react-router@7.7.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/react-router/dist/development/chunk-EF7DTUVF.js";
|
|
2
2
|
import { DATA_NAVIGATION_TYPE_ATTRIBUTE as r } from "../../types/index.js";
|
|
3
|
-
function
|
|
4
|
-
const e =
|
|
3
|
+
function d() {
|
|
4
|
+
const e = c(), o = u();
|
|
5
5
|
return (t, n) => {
|
|
6
6
|
if (typeof t == "number") {
|
|
7
7
|
if (document.startViewTransition)
|
|
@@ -18,10 +18,10 @@ function f() {
|
|
|
18
18
|
return e(t);
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
|
-
const a = t === o.pathname
|
|
21
|
+
const a = t === o.pathname;
|
|
22
22
|
if (document.startViewTransition)
|
|
23
23
|
document.startViewTransition(() => {
|
|
24
|
-
|
|
24
|
+
e(t, {
|
|
25
25
|
replace: a,
|
|
26
26
|
...n
|
|
27
27
|
}), n?.preventScrollReset !== !0 && window.scrollTo(0, 0);
|
|
@@ -37,6 +37,6 @@ function f() {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
d as useNavigateWithTransition
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=useNavigateWithTransition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNavigateWithTransition.js","sources":["../../../src/hooks/navigation/useNavigateWithTransition.ts"],"sourcesContent":["import {useLocation, useNavigate, NavigateOptions} from 'react-router'\n\nimport {DATA_NAVIGATION_TYPE_ATTRIBUTE} from '../../types'\n\ntype UseNavigateWithTransitionReturns = (\n to: string | number,\n options?: NavigateOptions\n) => void | Promise<void>\n\nexport function useNavigateWithTransition(): UseNavigateWithTransitionReturns {\n const navigate = useNavigate()\n const location = useLocation()\n\n const transitionNavigate = (\n to: string | number,\n options?: NavigateOptions\n ) => {\n if (typeof to === 'number') {\n // Delta navigation - no options parameter\n if (document.startViewTransition) {\n const transition = document.startViewTransition(() => {\n navigate(to)\n })\n\n transition.finished\n .then(() => {\n document.documentElement.removeAttribute(\n DATA_NAVIGATION_TYPE_ATTRIBUTE\n )\n })\n .catch(error => {\n console.error('View transition error:', error)\n })\n } else {\n return navigate(to)\n }\n return\n }\n\n const isSameRoute = to === location.pathname\n
|
|
1
|
+
{"version":3,"file":"useNavigateWithTransition.js","sources":["../../../src/hooks/navigation/useNavigateWithTransition.ts"],"sourcesContent":["import {useLocation, useNavigate, NavigateOptions} from 'react-router'\n\nimport {DATA_NAVIGATION_TYPE_ATTRIBUTE} from '../../types'\n\ntype UseNavigateWithTransitionReturns = (\n to: string | number,\n options?: NavigateOptions\n) => void | Promise<void>\n\nexport function useNavigateWithTransition(): UseNavigateWithTransitionReturns {\n const navigate = useNavigate()\n const location = useLocation()\n\n const transitionNavigate = (\n to: string | number,\n options?: NavigateOptions\n ) => {\n if (typeof to === 'number') {\n // Delta navigation - no options parameter\n if (document.startViewTransition) {\n const transition = document.startViewTransition(() => {\n navigate(to)\n })\n\n transition.finished\n .then(() => {\n document.documentElement.removeAttribute(\n DATA_NAVIGATION_TYPE_ATTRIBUTE\n )\n })\n .catch(error => {\n console.error('View transition error:', error)\n })\n } else {\n return navigate(to)\n }\n return\n }\n\n const isSameRoute = to === location.pathname\n\n // Path navigation - with options\n if (document.startViewTransition) {\n const transition = document.startViewTransition(() => {\n navigate(to, {\n replace: isSameRoute,\n ...options,\n })\n\n if (options?.preventScrollReset !== true) {\n window.scrollTo(0, 0)\n }\n })\n\n transition.finished\n .then(() => {\n document.documentElement.removeAttribute(\n DATA_NAVIGATION_TYPE_ATTRIBUTE\n )\n })\n .catch(error => {\n console.error('View transition error:', error)\n })\n } else {\n return navigate(to, options)\n }\n }\n\n return transitionNavigate\n}\n"],"names":["useNavigateWithTransition","navigate","useNavigate","location","useLocation","to","options","DATA_NAVIGATION_TYPE_ATTRIBUTE","error","isSameRoute"],"mappings":";;AASO,SAASA,IAA8D;AAC5E,QAAMC,IAAWC,EAAY,GACvBC,IAAWC,EAAY;AAyDtB,SAvDoB,CACzBC,GACAC,MACG;AACC,QAAA,OAAOD,KAAO,UAAU;AAE1B,UAAI,SAAS;AAKA,QAJQ,SAAS,oBAAoB,MAAM;AACpD,UAAAJ,EAASI,CAAE;AAAA,QAAA,CACZ,EAEU,SACR,KAAK,MAAM;AACV,mBAAS,gBAAgB;AAAA,YACvBE;AAAA,UACF;AAAA,QAAA,CACD,EACA,MAAM,CAASC,MAAA;AACN,kBAAA,MAAM,0BAA0BA,CAAK;AAAA,QAAA,CAC9C;AAAA;AAEH,eAAOP,EAASI,CAAE;AAEpB;AAAA,IAAA;AAGI,UAAAI,IAAcJ,MAAOF,EAAS;AAGpC,QAAI,SAAS;AAYA,MAXQ,SAAS,oBAAoB,MAAM;AACpD,QAAAF,EAASI,GAAI;AAAA,UACX,SAASI;AAAA,UACT,GAAGH;AAAA,QAAA,CACJ,GAEGA,GAAS,uBAAuB,MAC3B,OAAA,SAAS,GAAG,CAAC;AAAA,MACtB,CACD,EAEU,SACR,KAAK,MAAM;AACV,iBAAS,gBAAgB;AAAA,UACvBC;AAAA,QACF;AAAA,MAAA,CACD,EACA,MAAM,CAASC,MAAA;AACN,gBAAA,MAAM,0BAA0BA,CAAK;AAAA,MAAA,CAC9C;AAAA;AAEI,aAAAP,EAASI,GAAIC,CAAO;AAAA,EAE/B;AAGF;"}
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { DATA_NAVIGATION_TYPE_ATTRIBUTE as o, NAVIGATION_TYPES as t } from "./types/index.js";
|
|
2
|
-
import { MinisContainer as
|
|
3
|
-
import { AddToCartButton as
|
|
2
|
+
import { MinisContainer as n } from "./components/MinisContainer.js";
|
|
3
|
+
import { AddToCartButton as m } from "./components/commerce/add-to-cart.js";
|
|
4
4
|
import { BuyNowButton as s } from "./components/commerce/buy-now.js";
|
|
5
|
-
import { ProductCard as
|
|
5
|
+
import { ProductCard as l, ProductCardBadge as f, ProductCardContainer as x, ProductCardFavoriteButton as c, ProductCardImage as d, ProductCardImageContainer as C, ProductCardInfo as g, ProductCardPrice as S, ProductCardReviewStars as A, ProductCardTitle as D } from "./components/commerce/product-card.js";
|
|
6
6
|
import { ProductLink as T } from "./components/commerce/product-link.js";
|
|
7
|
-
import { MerchantCard as I, MerchantCardContainer as R, MerchantCardHeader as B, MerchantCardInfo as E, MerchantCardName as M, MerchantCardRating as
|
|
8
|
-
import { ProductCardSkeleton as
|
|
9
|
-
import { MerchantCardSkeleton as
|
|
7
|
+
import { MerchantCard as I, MerchantCardContainer as R, MerchantCardHeader as B, MerchantCardInfo as E, MerchantCardName as M, MerchantCardRating as w } from "./components/commerce/merchant-card.js";
|
|
8
|
+
import { ProductCardSkeleton as v } from "./components/commerce/product-card-skeleton.js";
|
|
9
|
+
import { MerchantCardSkeleton as U } from "./components/commerce/merchant-card-skeleton.js";
|
|
10
10
|
import { QuantitySelector as N } from "./components/commerce/quantity-selector.js";
|
|
11
|
-
import { Search as
|
|
11
|
+
import { Search as y, SearchInput as _, SearchProvider as G, SearchResultsList as O } from "./components/commerce/search.js";
|
|
12
12
|
import { FavoriteButton as V } from "./components/commerce/favorite-button.js";
|
|
13
13
|
import { ImageContentWrapper as W } from "./components/content/image-content-wrapper.js";
|
|
14
14
|
import { MinisRouter as q } from "./components/navigation/minis-router.js";
|
|
@@ -19,30 +19,30 @@ import { Image as rr } from "./components/atoms/image.js";
|
|
|
19
19
|
import { Touchable as or } from "./components/atoms/touchable.js";
|
|
20
20
|
import { LongPressDetector as ar } from "./components/atoms/long-press-detector.js";
|
|
21
21
|
import { AlertDialogAtom as pr } from "./components/atoms/alert-dialog.js";
|
|
22
|
-
import { List as
|
|
23
|
-
import { VideoPlayer as
|
|
22
|
+
import { List as ir } from "./components/atoms/list.js";
|
|
23
|
+
import { VideoPlayer as ur } from "./components/atoms/video-player.js";
|
|
24
24
|
import { TextInput as fr } from "./components/atoms/text-input.js";
|
|
25
25
|
import { ContentWrapper as cr } from "./components/atoms/content-wrapper.js";
|
|
26
26
|
import { ProductVariantPrice as Cr } from "./components/atoms/product-variant-price.js";
|
|
27
27
|
import { Accordion as Sr, AccordionContent as Ar, AccordionItem as Dr, AccordionTrigger as Pr } from "./components/ui/accordion.js";
|
|
28
28
|
import { Alert as hr, AlertDescription as Ir, AlertTitle as Rr } from "./components/ui/alert.js";
|
|
29
|
-
import { AlertDialog as Er, AlertDialogAction as Mr, AlertDialogCancel as
|
|
30
|
-
import { Avatar as
|
|
29
|
+
import { AlertDialog as Er, AlertDialogAction as Mr, AlertDialogCancel as wr, AlertDialogContent as Fr, AlertDialogDescription as vr, AlertDialogFooter as Lr, AlertDialogHeader as Ur, AlertDialogOverlay as br, AlertDialogPortal as Nr, AlertDialogTitle as kr, AlertDialogTrigger as yr } from "./components/ui/alert-dialog.js";
|
|
30
|
+
import { Avatar as Gr, AvatarFallback as Or, AvatarImage as Hr } from "./components/ui/avatar.js";
|
|
31
31
|
import { Badge as zr, badgeVariants as Wr } from "./components/ui/badge.js";
|
|
32
32
|
import { Card as qr, CardAction as Kr, CardContent as Qr, CardDescription as Zr, CardFooter as jr, CardHeader as Jr, CardTitle as Xr } from "./components/ui/card.js";
|
|
33
33
|
import { Carousel as re, CarouselContent as ee, CarouselItem as oe, CarouselNext as te, CarouselPrevious as ae } from "./components/ui/carousel.js";
|
|
34
34
|
import { Checkbox as pe } from "./components/ui/checkbox.js";
|
|
35
|
-
import { Dialog as
|
|
35
|
+
import { Dialog as ie, DialogClose as se, DialogContent as ue, DialogDescription as le, DialogFooter as fe, DialogHeader as xe, DialogOverlay as ce, DialogPortal as de, DialogTitle as Ce, DialogTrigger as ge } from "./components/ui/dialog.js";
|
|
36
36
|
import { Drawer as Ae, DrawerClose as De, DrawerContent as Pe, DrawerDescription as Te, DrawerFooter as he, DrawerHeader as Ie, DrawerOverlay as Re, DrawerPortal as Be, DrawerTitle as Ee, DrawerTrigger as Me } from "./components/ui/drawer.js";
|
|
37
|
-
import { Input as
|
|
38
|
-
import { Label as
|
|
37
|
+
import { Input as Fe } from "./components/ui/input.js";
|
|
38
|
+
import { Label as Le } from "./components/ui/label.js";
|
|
39
39
|
import { Progress as be } from "./components/ui/progress.js";
|
|
40
|
-
import { RadioGroup as ke, RadioGroupItem as
|
|
41
|
-
import { ResizableHandle as
|
|
40
|
+
import { RadioGroup as ke, RadioGroupItem as ye } from "./components/ui/radio-group.js";
|
|
41
|
+
import { ResizableHandle as Ge, ResizablePanel as Oe, ResizablePanelGroup as He } from "./components/ui/resizable.js";
|
|
42
42
|
import { ScrollArea as ze, ScrollBar as We } from "./components/ui/scroll-area.js";
|
|
43
43
|
import { Select as qe, SelectContent as Ke, SelectGroup as Qe, SelectItem as Ze, SelectLabel as je, SelectScrollDownButton as Je, SelectScrollUpButton as Xe, SelectSeparator as $e, SelectTrigger as ro, SelectValue as eo } from "./components/ui/select.js";
|
|
44
44
|
import { Separator as to } from "./components/ui/separator.js";
|
|
45
|
-
import { Sheet as
|
|
45
|
+
import { Sheet as no, SheetClose as po, SheetContent as mo, SheetDescription as io, SheetFooter as so, SheetHeader as uo, SheetTitle as lo, SheetTrigger as fo } from "./components/ui/sheet.js";
|
|
46
46
|
import { Toaster as co } from "./components/ui/sonner.js";
|
|
47
47
|
import { toast as go } from "./shop-minis-react/node_modules/.pnpm/sonner@2.0.5_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/sonner/dist/index.js";
|
|
48
48
|
import { Skeleton as Ao } from "./components/ui/skeleton.js";
|
|
@@ -50,12 +50,12 @@ import { useRecentProducts as Po } from "./hooks/user/useRecentProducts.js";
|
|
|
50
50
|
import { useRecentShops as ho } from "./hooks/user/useRecentShops.js";
|
|
51
51
|
import { useSavedProducts as Ro } from "./hooks/user/useSavedProducts.js";
|
|
52
52
|
import { useSavedProductsActions as Eo } from "./hooks/user/useSavedProductsActions.js";
|
|
53
|
-
import { useFollowedShops as
|
|
54
|
-
import { useFollowedShopsActions as
|
|
55
|
-
import { useCurrentUser as
|
|
53
|
+
import { useFollowedShops as wo } from "./hooks/user/useFollowedShops.js";
|
|
54
|
+
import { useFollowedShopsActions as vo } from "./hooks/user/useFollowedShopsActions.js";
|
|
55
|
+
import { useCurrentUser as Uo } from "./hooks/user/useCurrentUser.js";
|
|
56
56
|
import { useOrders as No } from "./hooks/user/useOrders.js";
|
|
57
|
-
import { useBuyerAttributes as
|
|
58
|
-
import { useGenerateUserToken as
|
|
57
|
+
import { useBuyerAttributes as yo } from "./hooks/user/useBuyerAttributes.js";
|
|
58
|
+
import { useGenerateUserToken as Go } from "./hooks/user/useGenerateUserToken.js";
|
|
59
59
|
import { useProductListActions as Ho } from "./hooks/product/useProductListActions.js";
|
|
60
60
|
import { useProductLists as zo } from "./hooks/product/useProductLists.js";
|
|
61
61
|
import { useProductList as Yo } from "./hooks/product/useProductList.js";
|
|
@@ -65,10 +65,10 @@ import { useProductVariants as Jo } from "./hooks/product/useProductVariants.js"
|
|
|
65
65
|
import { useProductMedia as $o } from "./hooks/product/useProductMedia.js";
|
|
66
66
|
import { useProductSearch as et } from "./hooks/product/useProductSearch.js";
|
|
67
67
|
import { useRecommendedProducts as tt } from "./hooks/product/useRecommendedProducts.js";
|
|
68
|
-
import { usePopularProducts as
|
|
69
|
-
import { useCuratedProducts as
|
|
68
|
+
import { usePopularProducts as nt } from "./hooks/product/usePopularProducts.js";
|
|
69
|
+
import { useCuratedProducts as mt } from "./hooks/product/useCuratedProducts.js";
|
|
70
70
|
import { useAsyncStorage as st } from "./hooks/storage/useAsyncStorage.js";
|
|
71
|
-
import { useSecureStorage as
|
|
71
|
+
import { useSecureStorage as lt } from "./hooks/storage/useSecureStorage.js";
|
|
72
72
|
import { useImageUpload as xt } from "./hooks/storage/useImageUpload.js";
|
|
73
73
|
import { useShopNavigation as dt } from "./hooks/navigation/useShopNavigation.js";
|
|
74
74
|
import { useCloseMini as gt } from "./hooks/navigation/useCloseMini.js";
|
|
@@ -77,49 +77,55 @@ import { useNavigateWithTransition as Pt } from "./hooks/navigation/useNavigateW
|
|
|
77
77
|
import { useShop as ht } from "./hooks/shop/useShop.js";
|
|
78
78
|
import { useRecommendedShops as Rt } from "./hooks/shop/useRecommendedShops.js";
|
|
79
79
|
import { useCreateImageContent as Et } from "./hooks/content/useCreateImageContent.js";
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
80
|
+
import { useProductSelection as wt } from "./hooks/intents/useProductSelection.js";
|
|
81
|
+
import { useImageCapture as vt } from "./hooks/intents/useImageCapture.js";
|
|
82
|
+
import { useContentShare as Ut } from "./hooks/intents/useContentShare.js";
|
|
83
|
+
import { useLocationSelection as Nt } from "./hooks/intents/useLocationSelection.js";
|
|
84
|
+
import { useBarcodeScanner as yt } from "./hooks/intents/useBarcodeScanner.js";
|
|
85
|
+
import { usePaymentRequest as Gt } from "./hooks/intents/usePaymentRequest.js";
|
|
86
|
+
import { useErrorToast as Ht } from "./hooks/util/useErrorToast.js";
|
|
87
|
+
import { useErrorScreen as zt } from "./hooks/util/useErrorScreen.js";
|
|
88
|
+
import { useShare as Yt } from "./hooks/util/useShare.js";
|
|
89
|
+
import { useImagePicker as Kt } from "./hooks/util/useImagePicker.js";
|
|
90
|
+
import { useKeyboardAvoidingView as Zt } from "./hooks/util/useKeyboardAvoidingView.js";
|
|
91
|
+
import { useRequestPermissions as Jt } from "./hooks/util/useRequestPermissions.js";
|
|
92
|
+
import { useOnMiniFocus as $t } from "./hooks/events/useOnMiniFocus.js";
|
|
93
|
+
import { useOnMiniBlur as ea } from "./hooks/events/useOnMiniBlur.js";
|
|
94
|
+
import { useOnMiniClose as ta } from "./hooks/events/useOnMiniClose.js";
|
|
95
|
+
import { useOnAppStateChange as na } from "./hooks/events/useOnAppStateChange.js";
|
|
96
|
+
import { MiniEntityNotFoundError as ma, MiniError as ia, MiniNetworkError as sa, formatError as ua } from "./utils/errors.js";
|
|
97
|
+
import { extractBrandTheme as fa, formatReviewCount as xa, getFeaturedImages as ca, normalizeRating as da } from "./utils/merchant-card.js";
|
|
98
|
+
import { parseUrl as ga } from "./utils/parseUrl.js";
|
|
99
|
+
import { dataURLToBlob as Aa, fileToDataUri as Da, getResizedImageUrl as Pa, getThumbhashBlobURL as Ta, getThumbhashDataURL as ha } from "./utils/image.js";
|
|
100
|
+
import { formatMoney as Ra } from "./utils/formatMoney.js";
|
|
101
|
+
import { UserState as Ea, UserTokenGenerateUserErrorCode as Ma } from "./shop-minis-platform/src/types/user.js";
|
|
102
|
+
import { ContentCreateUserErrorCode as Fa, MinisContentStatus as va } from "./shop-minis-platform/src/types/content.js";
|
|
103
|
+
import { Social as Ua } from "./shop-minis-platform/src/types/share.js";
|
|
104
|
+
import { DATA_FETCHING_DEFAULT_FETCH_POLICY as Na, DATA_FETCHING_DEFAULT_PAGE_SIZE as ka } from "./shop-minis-platform/src/constants.js";
|
|
105
|
+
import { IntentResultCode as _a, handleIntentResult as Ga } from "./shop-minis-platform/src/intents/shared.js";
|
|
100
106
|
export {
|
|
101
107
|
Sr as Accordion,
|
|
102
108
|
Ar as AccordionContent,
|
|
103
109
|
Dr as AccordionItem,
|
|
104
110
|
Pr as AccordionTrigger,
|
|
105
|
-
|
|
111
|
+
m as AddToCartButton,
|
|
106
112
|
hr as Alert,
|
|
107
113
|
Ir as AlertDescription,
|
|
108
114
|
Er as AlertDialog,
|
|
109
115
|
Mr as AlertDialogAction,
|
|
110
116
|
pr as AlertDialogAtom,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
117
|
+
wr as AlertDialogCancel,
|
|
118
|
+
Fr as AlertDialogContent,
|
|
119
|
+
vr as AlertDialogDescription,
|
|
120
|
+
Lr as AlertDialogFooter,
|
|
121
|
+
Ur as AlertDialogHeader,
|
|
116
122
|
br as AlertDialogOverlay,
|
|
117
123
|
Nr as AlertDialogPortal,
|
|
118
124
|
kr as AlertDialogTitle,
|
|
119
|
-
|
|
125
|
+
yr as AlertDialogTrigger,
|
|
120
126
|
Rr as AlertTitle,
|
|
121
|
-
|
|
122
|
-
|
|
127
|
+
Gr as Avatar,
|
|
128
|
+
Or as AvatarFallback,
|
|
123
129
|
Hr as AvatarImage,
|
|
124
130
|
zr as Badge,
|
|
125
131
|
j as Button,
|
|
@@ -137,15 +143,15 @@ export {
|
|
|
137
143
|
te as CarouselNext,
|
|
138
144
|
ae as CarouselPrevious,
|
|
139
145
|
pe as Checkbox,
|
|
140
|
-
|
|
146
|
+
Fa as ContentCreateUserErrorCode,
|
|
141
147
|
cr as ContentWrapper,
|
|
142
|
-
|
|
143
|
-
|
|
148
|
+
Na as DATA_FETCHING_DEFAULT_FETCH_POLICY,
|
|
149
|
+
ka as DATA_FETCHING_DEFAULT_PAGE_SIZE,
|
|
144
150
|
o as DATA_NAVIGATION_TYPE_ATTRIBUTE,
|
|
145
|
-
|
|
151
|
+
ie as Dialog,
|
|
146
152
|
se as DialogClose,
|
|
147
|
-
|
|
148
|
-
|
|
153
|
+
ue as DialogContent,
|
|
154
|
+
le as DialogDescription,
|
|
149
155
|
fe as DialogFooter,
|
|
150
156
|
xe as DialogHeader,
|
|
151
157
|
ce as DialogOverlay,
|
|
@@ -166,25 +172,26 @@ export {
|
|
|
166
172
|
X as IconButton,
|
|
167
173
|
rr as Image,
|
|
168
174
|
W as ImageContentWrapper,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
175
|
+
Fe as Input,
|
|
176
|
+
_a as IntentResultCode,
|
|
177
|
+
Le as Label,
|
|
178
|
+
ir as List,
|
|
172
179
|
ar as LongPressDetector,
|
|
173
180
|
I as MerchantCard,
|
|
174
181
|
R as MerchantCardContainer,
|
|
175
182
|
B as MerchantCardHeader,
|
|
176
183
|
E as MerchantCardInfo,
|
|
177
184
|
M as MerchantCardName,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
+
w as MerchantCardRating,
|
|
186
|
+
U as MerchantCardSkeleton,
|
|
187
|
+
ma as MiniEntityNotFoundError,
|
|
188
|
+
ia as MiniError,
|
|
189
|
+
sa as MiniNetworkError,
|
|
190
|
+
n as MinisContainer,
|
|
191
|
+
va as MinisContentStatus,
|
|
185
192
|
q as MinisRouter,
|
|
186
193
|
t as NAVIGATION_TYPES,
|
|
187
|
-
|
|
194
|
+
l as ProductCard,
|
|
188
195
|
f as ProductCardBadge,
|
|
189
196
|
x as ProductCardContainer,
|
|
190
197
|
c as ProductCardFavoriteButton,
|
|
@@ -193,23 +200,23 @@ export {
|
|
|
193
200
|
g as ProductCardInfo,
|
|
194
201
|
S as ProductCardPrice,
|
|
195
202
|
A as ProductCardReviewStars,
|
|
196
|
-
|
|
203
|
+
v as ProductCardSkeleton,
|
|
197
204
|
D as ProductCardTitle,
|
|
198
205
|
T as ProductLink,
|
|
199
206
|
Cr as ProductVariantPrice,
|
|
200
207
|
be as Progress,
|
|
201
208
|
N as QuantitySelector,
|
|
202
209
|
ke as RadioGroup,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
210
|
+
ye as RadioGroupItem,
|
|
211
|
+
Ge as ResizableHandle,
|
|
212
|
+
Oe as ResizablePanel,
|
|
206
213
|
He as ResizablePanelGroup,
|
|
207
214
|
ze as ScrollArea,
|
|
208
215
|
We as ScrollBar,
|
|
209
|
-
|
|
216
|
+
y as Search,
|
|
210
217
|
_ as SearchInput,
|
|
211
|
-
|
|
212
|
-
|
|
218
|
+
G as SearchProvider,
|
|
219
|
+
O as SearchResultsList,
|
|
213
220
|
qe as Select,
|
|
214
221
|
Ke as SelectContent,
|
|
215
222
|
Qe as SelectGroup,
|
|
@@ -221,77 +228,83 @@ export {
|
|
|
221
228
|
ro as SelectTrigger,
|
|
222
229
|
eo as SelectValue,
|
|
223
230
|
to as Separator,
|
|
224
|
-
|
|
231
|
+
no as Sheet,
|
|
225
232
|
po as SheetClose,
|
|
226
|
-
|
|
227
|
-
|
|
233
|
+
mo as SheetContent,
|
|
234
|
+
io as SheetDescription,
|
|
228
235
|
so as SheetFooter,
|
|
229
|
-
|
|
230
|
-
|
|
236
|
+
uo as SheetHeader,
|
|
237
|
+
lo as SheetTitle,
|
|
231
238
|
fo as SheetTrigger,
|
|
232
239
|
Ao as Skeleton,
|
|
233
|
-
|
|
240
|
+
Ua as Social,
|
|
234
241
|
fr as TextInput,
|
|
235
242
|
co as Toaster,
|
|
236
243
|
or as Touchable,
|
|
237
244
|
Q as TransitionLink,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
245
|
+
Ea as UserState,
|
|
246
|
+
Ma as UserTokenGenerateUserErrorCode,
|
|
247
|
+
ur as VideoPlayer,
|
|
241
248
|
Wr as badgeVariants,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
249
|
+
Aa as dataURLToBlob,
|
|
250
|
+
fa as extractBrandTheme,
|
|
251
|
+
Da as fileToDataUri,
|
|
252
|
+
ua as formatError,
|
|
253
|
+
Ra as formatMoney,
|
|
254
|
+
xa as formatReviewCount,
|
|
255
|
+
ca as getFeaturedImages,
|
|
256
|
+
Pa as getResizedImageUrl,
|
|
257
|
+
Ta as getThumbhashBlobURL,
|
|
258
|
+
ha as getThumbhashDataURL,
|
|
259
|
+
Ga as handleIntentResult,
|
|
260
|
+
da as normalizeRating,
|
|
261
|
+
ga as parseUrl,
|
|
254
262
|
go as toast,
|
|
255
263
|
st as useAsyncStorage,
|
|
256
|
-
|
|
264
|
+
yt as useBarcodeScanner,
|
|
265
|
+
yo as useBuyerAttributes,
|
|
257
266
|
gt as useCloseMini,
|
|
267
|
+
Ut as useContentShare,
|
|
258
268
|
Et as useCreateImageContent,
|
|
259
|
-
|
|
260
|
-
|
|
269
|
+
mt as useCuratedProducts,
|
|
270
|
+
Uo as useCurrentUser,
|
|
261
271
|
At as useDeeplink,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
272
|
+
zt as useErrorScreen,
|
|
273
|
+
Ht as useErrorToast,
|
|
274
|
+
wo as useFollowedShops,
|
|
275
|
+
vo as useFollowedShopsActions,
|
|
276
|
+
Go as useGenerateUserToken,
|
|
277
|
+
vt as useImageCapture,
|
|
278
|
+
Kt as useImagePicker,
|
|
268
279
|
xt as useImageUpload,
|
|
269
|
-
|
|
280
|
+
Zt as useKeyboardAvoidingView,
|
|
281
|
+
Nt as useLocationSelection,
|
|
270
282
|
Pt as useNavigateWithTransition,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
Zt as useOnNavigateBack,
|
|
283
|
+
na as useOnAppStateChange,
|
|
284
|
+
ea as useOnMiniBlur,
|
|
285
|
+
ta as useOnMiniClose,
|
|
286
|
+
$t as useOnMiniFocus,
|
|
276
287
|
No as useOrders,
|
|
277
|
-
|
|
288
|
+
Gt as usePaymentRequest,
|
|
289
|
+
nt as usePopularProducts,
|
|
278
290
|
Ko as useProduct,
|
|
279
291
|
Yo as useProductList,
|
|
280
292
|
Ho as useProductListActions,
|
|
281
293
|
zo as useProductLists,
|
|
282
294
|
$o as useProductMedia,
|
|
283
295
|
et as useProductSearch,
|
|
296
|
+
wt as useProductSelection,
|
|
284
297
|
Jo as useProductVariants,
|
|
285
298
|
Zo as useProducts,
|
|
286
299
|
Po as useRecentProducts,
|
|
287
300
|
ho as useRecentShops,
|
|
288
301
|
tt as useRecommendedProducts,
|
|
289
302
|
Rt as useRecommendedShops,
|
|
290
|
-
|
|
303
|
+
Jt as useRequestPermissions,
|
|
291
304
|
Ro as useSavedProducts,
|
|
292
305
|
Eo as useSavedProductsActions,
|
|
293
|
-
|
|
294
|
-
|
|
306
|
+
lt as useSecureStorage,
|
|
307
|
+
Yt as useShare,
|
|
295
308
|
ht as useShop,
|
|
296
309
|
dt as useShopNavigation
|
|
297
310
|
};
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|