@shopify/shop-minis-react 0.0.17 → 0.0.19
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/index3.js +6 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/_virtual/index4.js +5 -0
- package/dist/_virtual/index4.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/components/atoms/alert-dialog.js +41 -0
- package/dist/components/atoms/alert-dialog.js.map +1 -0
- package/dist/components/atoms/thumbhash-image.js +54 -0
- package/dist/components/atoms/thumbhash-image.js.map +1 -0
- package/dist/components/commerce/merchant-card-skeleton.js +29 -0
- package/dist/components/commerce/merchant-card-skeleton.js.map +1 -0
- package/dist/components/commerce/merchant-card.js +28 -22
- package/dist/components/commerce/merchant-card.js.map +1 -1
- package/dist/components/commerce/product-card-skeleton.js +20 -0
- package/dist/components/commerce/product-card-skeleton.js.map +1 -0
- package/dist/components/commerce/product-card.js +105 -78
- package/dist/components/commerce/product-card.js.map +1 -1
- package/dist/components/navigation/transition-container.js +8 -0
- package/dist/components/navigation/transition-container.js.map +1 -0
- package/dist/components/navigation/transition-link.js +27 -0
- package/dist/components/navigation/transition-link.js.map +1 -0
- package/dist/components/ui/avatar.js +54 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/skeleton.js +16 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/hooks/navigation/useNavigateWithTransition.js +43 -0
- package/dist/hooks/navigation/useNavigateWithTransition.js.map +1 -0
- package/dist/hooks/navigation/useViewTransitions.js +45 -0
- package/dist/hooks/navigation/useViewTransitions.js.map +1 -0
- package/dist/index.js +215 -192
- package/dist/index.js.map +1 -1
- package/dist/shop-minis-react/node_modules/.pnpm/@radix-ui_react-avatar@1.1.10_@types_react-dom@19.1.6_@types_react@19.1.6__@types_react@19.1._hkz57sehyui4ndfh3rsqwxftli/node_modules/@radix-ui/react-avatar/dist/index.js +77 -0
- package/dist/shop-minis-react/node_modules/.pnpm/@radix-ui_react-avatar@1.1.10_@types_react-dom@19.1.6_@types_react@19.1.6__@types_react@19.1._hkz57sehyui4ndfh3rsqwxftli/node_modules/@radix-ui/react-avatar/dist/index.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 +16 -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.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/js-base64@3.7.7/node_modules/js-base64/base64.js +21 -0
- package/dist/shop-minis-react/node_modules/.pnpm/js-base64@3.7.7/node_modules/js-base64/base64.js.map +1 -0
- package/dist/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 +1298 -0
- package/dist/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.map +1 -0
- package/dist/shop-minis-react/node_modules/.pnpm/thumbhash@0.1.1/node_modules/thumbhash/thumbhash.js +145 -0
- package/dist/shop-minis-react/node_modules/.pnpm/thumbhash@0.1.1/node_modules/thumbhash/thumbhash.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/cjs/use-sync-external-store-shim.development.js +68 -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/cjs/use-sync-external-store-shim.development.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/cjs/use-sync-external-store-shim.production.js +56 -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/cjs/use-sync-external-store-shim.production.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 +11 -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.map +1 -0
- package/dist/types/index.js +10 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/image.js +15 -0
- package/dist/utils/image.js.map +1 -0
- package/package.json +13 -3
- package/src/components/atoms/alert-dialog.tsx +67 -0
- package/src/components/atoms/thumbhash-image.tsx +66 -0
- package/src/components/commerce/merchant-card-skeleton.tsx +31 -0
- package/src/components/commerce/merchant-card.tsx +5 -2
- package/src/components/commerce/product-card-skeleton.tsx +30 -0
- package/src/components/commerce/product-card.tsx +49 -8
- package/src/components/index.ts +9 -0
- package/src/components/navigation/transition-container.tsx +7 -0
- package/src/components/navigation/transition-link.tsx +48 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/navigation/useNavigateWithTransition.ts +62 -0
- package/src/hooks/navigation/useViewTransitions.ts +79 -0
- package/src/index.css +1 -0
- package/src/mocks.ts +8 -2
- package/src/stories/Accordion.stories.tsx +124 -0
- package/src/stories/Alert.stories.tsx +38 -0
- package/src/stories/AlertDialog.stories.tsx +48 -0
- package/src/stories/Avatar.stories.tsx +29 -0
- package/src/stories/Badge.stories.tsx +46 -0
- package/src/stories/Button.stories.tsx +81 -0
- package/src/stories/Card.stories.tsx +40 -0
- package/src/stories/Checkbox.stories.tsx +44 -0
- package/src/stories/FavoriteButton.stories.tsx +58 -0
- package/src/stories/IconButton.stories.tsx +68 -0
- package/src/stories/Input.stories.tsx +44 -0
- package/src/stories/Label.stories.tsx +19 -0
- package/src/stories/MerchantCard.stories.tsx +55 -0
- package/src/stories/ProductCard.stories.tsx +85 -0
- package/src/stories/ProductLink.stories.tsx +46 -0
- package/src/stories/Progress.stories.tsx +30 -0
- package/src/stories/RadioGroup.stories.tsx +51 -0
- package/src/stories/Select.stories.tsx +85 -0
- package/src/stories/Skeleton.stories.tsx +19 -0
- package/src/stories/Toaster.stories.tsx +46 -0
- package/src/stories/Touchable.stories.tsx +40 -0
- package/src/styles/animations.css +90 -0
- package/src/styles/globals.css +8 -0
- package/src/styles/theme.css +1 -1
- package/src/types/index.ts +7 -1
- package/src/utils/image.ts +18 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { useEffect as a } from "react";
|
|
2
|
+
import { useLocation as u, useNavigationType as m } 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 { DATA_NAVIGATION_TYPE_ATTRIBUTE as e, NAVIGATION_TYPES as t } from "../../types/index.js";
|
|
4
|
+
function p() {
|
|
5
|
+
const r = u(), n = m();
|
|
6
|
+
a(() => {
|
|
7
|
+
let o = !1;
|
|
8
|
+
const i = () => {
|
|
9
|
+
o = !0, document.startViewTransition && document.startViewTransition(() => {
|
|
10
|
+
document.documentElement.setAttribute(
|
|
11
|
+
e,
|
|
12
|
+
t.backward
|
|
13
|
+
);
|
|
14
|
+
}).finished.then(() => {
|
|
15
|
+
document.documentElement.removeAttribute(
|
|
16
|
+
e
|
|
17
|
+
);
|
|
18
|
+
}).catch((c) => {
|
|
19
|
+
console.error("View transition error:", c);
|
|
20
|
+
});
|
|
21
|
+
}, s = (d) => {
|
|
22
|
+
d.hasUAVisualTransition && !o && document.documentElement.setAttribute(
|
|
23
|
+
e,
|
|
24
|
+
t.none
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
return window.addEventListener("androidbackpressed", i), window.addEventListener("popstate", s), () => {
|
|
28
|
+
window.removeEventListener("popstate", s), window.removeEventListener("androidbackpressed", i);
|
|
29
|
+
};
|
|
30
|
+
}, [r]), a(() => (document.documentElement.getAttribute(
|
|
31
|
+
e
|
|
32
|
+
) || (n === "PUSH" ? document.documentElement.setAttribute(
|
|
33
|
+
e,
|
|
34
|
+
t.forward
|
|
35
|
+
) : n === "POP" && document.documentElement.setAttribute(
|
|
36
|
+
e,
|
|
37
|
+
t.backward
|
|
38
|
+
)), () => {
|
|
39
|
+
document.documentElement.removeAttribute(e);
|
|
40
|
+
}), [n, r]);
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
p as useViewTransitions
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=useViewTransitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useViewTransitions.js","sources":["../../../src/hooks/navigation/useViewTransitions.ts"],"sourcesContent":["import {useEffect} from 'react'\n\nimport {useNavigationType, useLocation} from 'react-router'\n\nimport {DATA_NAVIGATION_TYPE_ATTRIBUTE, NAVIGATION_TYPES} from '../../types'\n\nexport function useViewTransitions() {\n const location = useLocation()\n const navType = useNavigationType()\n\n useEffect(() => {\n let isAndroidBackPress = false\n\n const handleAndroidBackPress = () => {\n isAndroidBackPress = true\n\n if (document.startViewTransition) {\n const transition = document.startViewTransition(() => {\n document.documentElement.setAttribute(\n DATA_NAVIGATION_TYPE_ATTRIBUTE,\n NAVIGATION_TYPES.backward\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 }\n }\n\n const handlePopstate = (event: PopStateEvent) => {\n // If the ios back gesture is used, we don't want to trigger view transition\n if (event.hasUAVisualTransition && !isAndroidBackPress) {\n document.documentElement.setAttribute(\n DATA_NAVIGATION_TYPE_ATTRIBUTE,\n NAVIGATION_TYPES.none\n )\n }\n }\n\n window.addEventListener('androidbackpressed', handleAndroidBackPress)\n window.addEventListener('popstate', handlePopstate)\n\n return () => {\n window.removeEventListener('popstate', handlePopstate)\n window.removeEventListener('androidbackpressed', handleAndroidBackPress)\n }\n }, [location])\n\n useEffect(() => {\n const currentNavType = document.documentElement.getAttribute(\n DATA_NAVIGATION_TYPE_ATTRIBUTE\n )\n\n if (!currentNavType) {\n if (navType === 'PUSH') {\n document.documentElement.setAttribute(\n DATA_NAVIGATION_TYPE_ATTRIBUTE,\n NAVIGATION_TYPES.forward\n )\n } else if (navType === 'POP') {\n document.documentElement.setAttribute(\n DATA_NAVIGATION_TYPE_ATTRIBUTE,\n NAVIGATION_TYPES.backward\n )\n }\n }\n\n return () => {\n document.documentElement.removeAttribute(DATA_NAVIGATION_TYPE_ATTRIBUTE)\n }\n }, [navType, location])\n}\n"],"names":["useViewTransitions","location","useLocation","navType","useNavigationType","useEffect","isAndroidBackPress","handleAndroidBackPress","DATA_NAVIGATION_TYPE_ATTRIBUTE","NAVIGATION_TYPES","error","handlePopstate","event"],"mappings":";;;AAMO,SAASA,IAAqB;AACnC,QAAMC,IAAWC,EAAY,GACvBC,IAAUC,EAAkB;AAElC,EAAAC,EAAU,MAAM;AACd,QAAIC,IAAqB;AAEzB,UAAMC,IAAyB,MAAM;AACd,MAAAD,IAAA,IAEjB,SAAS,uBACQ,SAAS,oBAAoB,MAAM;AACpD,iBAAS,gBAAgB;AAAA,UACvBE;AAAA,UACAC,EAAiB;AAAA,QACnB;AAAA,MAAA,CACD,EAEU,SACR,KAAK,MAAM;AACV,iBAAS,gBAAgB;AAAA,UACvBD;AAAA,QACF;AAAA,MAAA,CACD,EACA,MAAM,CAASE,MAAA;AACN,gBAAA,MAAM,0BAA0BA,CAAK;AAAA,MAAA,CAC9C;AAAA,IAEP,GAEMC,IAAiB,CAACC,MAAyB;AAE3C,MAAAA,EAAM,yBAAyB,CAACN,KAClC,SAAS,gBAAgB;AAAA,QACvBE;AAAA,QACAC,EAAiB;AAAA,MACnB;AAAA,IAEJ;AAEO,kBAAA,iBAAiB,sBAAsBF,CAAsB,GAC7D,OAAA,iBAAiB,YAAYI,CAAc,GAE3C,MAAM;AACJ,aAAA,oBAAoB,YAAYA,CAAc,GAC9C,OAAA,oBAAoB,sBAAsBJ,CAAsB;AAAA,IACzE;AAAA,EAAA,GACC,CAACN,CAAQ,CAAC,GAEbI,EAAU,OACe,SAAS,gBAAgB;AAAA,IAC9CG;AAAA,EACF,MAGML,MAAY,SACd,SAAS,gBAAgB;AAAA,IACvBK;AAAA,IACAC,EAAiB;AAAA,EACnB,IACSN,MAAY,SACrB,SAAS,gBAAgB;AAAA,IACvBK;AAAA,IACAC,EAAiB;AAAA,EACnB,IAIG,MAAM;AACF,aAAA,gBAAgB,gBAAgBD,CAA8B;AAAA,EACzE,IACC,CAACL,GAASF,CAAQ,CAAC;AACxB;"}
|
package/dist/index.js
CHANGED
|
@@ -1,195 +1,218 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
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 {
|
|
1
|
+
import { DATA_NAVIGATION_TYPE_ATTRIBUTE as o, NAVIGATION_TYPES as t } from "./types/index.js";
|
|
2
|
+
import { MinisContainer as l } from "./components/MinisContainer.js";
|
|
3
|
+
import { ProductCard as p } from "./components/commerce/product-card.js";
|
|
4
|
+
import { ProductLink as m } from "./components/commerce/product-link.js";
|
|
5
|
+
import { MerchantCard as u, MerchantCardPrimitive as x } from "./components/commerce/merchant-card.js";
|
|
6
|
+
import { ProductCardSkeleton as c } from "./components/commerce/product-card-skeleton.js";
|
|
7
|
+
import { MerchantCardSkeleton as S } from "./components/commerce/merchant-card-skeleton.js";
|
|
8
|
+
import { TransitionContainer as D } from "./components/navigation/transition-container.js";
|
|
9
|
+
import { TransitionLink as C } from "./components/navigation/transition-link.js";
|
|
10
|
+
import { Button as T } from "./components/atoms/button.js";
|
|
11
|
+
import { FavoriteButton as I } from "./components/atoms/favorite-button.js";
|
|
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 M } from "./components/atoms/alert-dialog.js";
|
|
16
|
+
import { Accordion as B, AccordionContent as L, AccordionItem as y, AccordionTrigger as G } from "./components/ui/accordion.js";
|
|
17
|
+
import { Alert as O, AlertDescription as U, AlertTitle as V } from "./components/ui/alert.js";
|
|
18
|
+
import { AlertDialog as z, AlertDialogAction as Y, AlertDialogCancel as W, AlertDialogContent as j, AlertDialogDescription as q, AlertDialogFooter as J, AlertDialogHeader as K, AlertDialogOverlay as Q, AlertDialogPortal as X, AlertDialogTitle as Z, AlertDialogTrigger as $ } from "./components/ui/alert-dialog.js";
|
|
19
|
+
import { Avatar as er, AvatarFallback as or, AvatarImage as tr } from "./components/ui/avatar.js";
|
|
20
|
+
import { Card as lr, CardAction as ir, CardContent as pr, CardDescription as sr, CardFooter as mr, CardHeader as nr, CardTitle as ur } from "./components/ui/card.js";
|
|
21
|
+
import { Carousel as fr, CarouselContent as cr, CarouselItem as dr, CarouselNext as Sr, CarouselPrevious as gr } from "./components/ui/carousel.js";
|
|
22
|
+
import { Checkbox as Ar } from "./components/ui/checkbox.js";
|
|
23
|
+
import { Dialog as Pr, DialogClose as Tr, DialogContent as hr, DialogDescription as Ir, DialogFooter as wr, DialogHeader as vr, DialogOverlay as br, DialogPortal as kr, DialogTitle as Er, DialogTrigger as Fr } from "./components/ui/dialog.js";
|
|
24
|
+
import { Drawer as Mr, DrawerClose as Nr, DrawerContent as Br, DrawerDescription as Lr, DrawerFooter as yr, DrawerHeader as Gr, DrawerOverlay as Hr, DrawerPortal as Or, DrawerTitle as Ur, DrawerTrigger as Vr } from "./components/ui/drawer.js";
|
|
25
|
+
import { Input as zr } from "./components/ui/input.js";
|
|
26
|
+
import { Label as Wr } from "./components/ui/label.js";
|
|
27
|
+
import { Progress as qr } from "./components/ui/progress.js";
|
|
28
|
+
import { RadioGroup as Kr, RadioGroupItem as Qr } from "./components/ui/radio-group.js";
|
|
29
|
+
import { ResizableHandle as Zr, ResizablePanel as $r, ResizablePanelGroup as re } from "./components/ui/resizable.js";
|
|
30
|
+
import { ScrollArea as oe, ScrollBar as te } from "./components/ui/scroll-area.js";
|
|
31
|
+
import { Select as le, SelectContent as ie, SelectGroup as pe, SelectItem as se, SelectLabel as me, SelectScrollDownButton as ne, SelectScrollUpButton as ue, SelectSeparator as xe, SelectTrigger as fe, SelectValue as ce } from "./components/ui/select.js";
|
|
32
|
+
import { Separator as Se } from "./components/ui/separator.js";
|
|
33
|
+
import { Sheet as De, SheetClose as Ae, SheetContent as Ce, SheetDescription as Pe, SheetFooter as Te, SheetHeader as he, SheetTitle as Ie, SheetTrigger as we } from "./components/ui/sheet.js";
|
|
34
|
+
import { Toaster as be } from "./components/ui/sonner.js";
|
|
35
|
+
import { Skeleton as Ee } from "./components/ui/skeleton.js";
|
|
36
|
+
import { useRecentProducts as Re } from "./hooks/user/useRecentProducts.js";
|
|
37
|
+
import { useRecentShops as Ne } from "./hooks/user/useRecentShops.js";
|
|
38
|
+
import { useSavedProducts as Le } from "./hooks/user/useSavedProducts.js";
|
|
39
|
+
import { useSavedProductsActions as Ge } from "./hooks/user/useSavedProductsActions.js";
|
|
40
|
+
import { useFollowedShops as Oe } from "./hooks/user/useFollowedShops.js";
|
|
41
|
+
import { useFollowedShopsActions as Ve } from "./hooks/user/useFollowedShopsActions.js";
|
|
42
|
+
import { useCurrentUser as ze } from "./hooks/user/useCurrentUser.js";
|
|
43
|
+
import { useOrders as We } from "./hooks/user/useOrders.js";
|
|
44
|
+
import { useBuyerAttributes as qe } from "./hooks/user/useBuyerAttributes.js";
|
|
45
|
+
import { useProductListActions as Ke } from "./hooks/product/useProductListActions.js";
|
|
46
|
+
import { useProductLists as Xe } from "./hooks/product/useProductLists.js";
|
|
47
|
+
import { useProductList as $e } from "./hooks/product/useProductList.js";
|
|
48
|
+
import { useProduct as eo } from "./hooks/product/useProduct.js";
|
|
49
|
+
import { useProducts as to } from "./hooks/product/useProducts.js";
|
|
50
|
+
import { useProductVariants as lo } from "./hooks/product/useProductVariants.js";
|
|
51
|
+
import { useProductMedia as po } from "./hooks/product/useProductMedia.js";
|
|
52
|
+
import { useProductSearch as mo } from "./hooks/product/useProductSearch.js";
|
|
53
|
+
import { useRecommendedProducts as uo } from "./hooks/product/useRecommendedProducts.js";
|
|
54
|
+
import { usePopularProducts as fo } from "./hooks/product/usePopularProducts.js";
|
|
55
|
+
import { useCuratedProducts as So } from "./hooks/product/useCuratedProducts.js";
|
|
56
|
+
import { useAsyncStorage as Do } from "./hooks/storage/useAsyncStorage.js";
|
|
57
|
+
import { useSecureStorage as Co } from "./hooks/storage/useSecureStorage.js";
|
|
58
|
+
import { useImageUpload as To } from "./hooks/storage/useImageUpload.js";
|
|
59
|
+
import { useShopNavigation as Io } from "./hooks/navigation/useShopNavigation.js";
|
|
60
|
+
import { useCloseMini as vo } from "./hooks/navigation/useCloseMini.js";
|
|
61
|
+
import { useDeeplink as ko } from "./hooks/navigation/useDeeplink.js";
|
|
62
|
+
import { useNavigateWithTransition as Fo } from "./hooks/navigation/useNavigateWithTransition.js";
|
|
63
|
+
import { useShop as Mo } from "./hooks/shop/useShop.js";
|
|
64
|
+
import { useShopCartActions as Bo } from "./hooks/shop/useShopCartActions.js";
|
|
65
|
+
import { useRecommendedShops as yo } from "./hooks/shop/useRecommendedShops.js";
|
|
66
|
+
import { useErrorToast as Ho } from "./hooks/util/useErrorToast.js";
|
|
67
|
+
import { useErrorScreen as Uo } from "./hooks/util/useErrorScreen.js";
|
|
68
|
+
import { useShare as _o } from "./hooks/util/useShare.js";
|
|
69
|
+
import { useImagePicker as Yo } from "./hooks/util/useImagePicker.js";
|
|
70
|
+
import { MiniEntityNotFoundError as jo, MiniError as qo, MiniNetworkError as Jo, formatError as Ko } from "./utils/errors.js";
|
|
71
|
+
import { parseUrl as Xo } from "./utils/parseUrl.js";
|
|
72
|
+
import { Consent as $o, ConsentStatus as rt } from "./shop-minis-platform/src/types/permissions.js";
|
|
63
73
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
M as
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
74
|
+
B as Accordion,
|
|
75
|
+
L as AccordionContent,
|
|
76
|
+
y as AccordionItem,
|
|
77
|
+
G as AccordionTrigger,
|
|
78
|
+
O as Alert,
|
|
79
|
+
U as AlertDescription,
|
|
80
|
+
z as AlertDialog,
|
|
81
|
+
Y as AlertDialogAction,
|
|
82
|
+
M as AlertDialogAtom,
|
|
83
|
+
W as AlertDialogCancel,
|
|
84
|
+
j as AlertDialogContent,
|
|
85
|
+
q as AlertDialogDescription,
|
|
86
|
+
J as AlertDialogFooter,
|
|
87
|
+
K as AlertDialogHeader,
|
|
88
|
+
Q as AlertDialogOverlay,
|
|
89
|
+
X as AlertDialogPortal,
|
|
90
|
+
Z as AlertDialogTitle,
|
|
91
|
+
$ as AlertDialogTrigger,
|
|
92
|
+
V as AlertTitle,
|
|
93
|
+
er as Avatar,
|
|
94
|
+
or as AvatarFallback,
|
|
95
|
+
tr as AvatarImage,
|
|
96
|
+
T as Button,
|
|
97
|
+
lr as Card,
|
|
98
|
+
ir as CardAction,
|
|
99
|
+
pr as CardContent,
|
|
100
|
+
sr as CardDescription,
|
|
101
|
+
mr as CardFooter,
|
|
102
|
+
nr as CardHeader,
|
|
103
|
+
ur as CardTitle,
|
|
104
|
+
fr as Carousel,
|
|
105
|
+
cr as CarouselContent,
|
|
106
|
+
dr as CarouselItem,
|
|
107
|
+
Sr as CarouselNext,
|
|
108
|
+
gr as CarouselPrevious,
|
|
109
|
+
Ar as Checkbox,
|
|
110
|
+
$o as Consent,
|
|
111
|
+
rt as ConsentStatus,
|
|
112
|
+
o as DATA_NAVIGATION_TYPE_ATTRIBUTE,
|
|
113
|
+
Pr as Dialog,
|
|
114
|
+
Tr as DialogClose,
|
|
115
|
+
hr as DialogContent,
|
|
116
|
+
Ir as DialogDescription,
|
|
117
|
+
wr as DialogFooter,
|
|
118
|
+
vr as DialogHeader,
|
|
119
|
+
br as DialogOverlay,
|
|
120
|
+
kr as DialogPortal,
|
|
121
|
+
Er as DialogTitle,
|
|
122
|
+
Fr as DialogTrigger,
|
|
123
|
+
Mr as Drawer,
|
|
124
|
+
Nr as DrawerClose,
|
|
125
|
+
Br as DrawerContent,
|
|
126
|
+
Lr as DrawerDescription,
|
|
127
|
+
yr as DrawerFooter,
|
|
128
|
+
Gr as DrawerHeader,
|
|
129
|
+
Hr as DrawerOverlay,
|
|
130
|
+
Or as DrawerPortal,
|
|
131
|
+
Ur as DrawerTitle,
|
|
132
|
+
Vr as DrawerTrigger,
|
|
133
|
+
I as FavoriteButton,
|
|
134
|
+
v as IconButton,
|
|
135
|
+
zr as Input,
|
|
136
|
+
Wr as Label,
|
|
137
|
+
u as MerchantCard,
|
|
138
|
+
x as MerchantCardPrimitive,
|
|
139
|
+
S as MerchantCardSkeleton,
|
|
140
|
+
jo as MiniEntityNotFoundError,
|
|
141
|
+
qo as MiniError,
|
|
142
|
+
Jo as MiniNetworkError,
|
|
143
|
+
l as MinisContainer,
|
|
144
|
+
t as NAVIGATION_TYPES,
|
|
145
|
+
p as ProductCard,
|
|
146
|
+
c as ProductCardSkeleton,
|
|
147
|
+
m as ProductLink,
|
|
148
|
+
qr as Progress,
|
|
149
|
+
Kr as RadioGroup,
|
|
150
|
+
Qr as RadioGroupItem,
|
|
151
|
+
Zr as ResizableHandle,
|
|
152
|
+
$r as ResizablePanel,
|
|
153
|
+
re as ResizablePanelGroup,
|
|
154
|
+
oe as ScrollArea,
|
|
155
|
+
te as ScrollBar,
|
|
156
|
+
le as Select,
|
|
157
|
+
ie as SelectContent,
|
|
158
|
+
pe as SelectGroup,
|
|
159
|
+
se as SelectItem,
|
|
160
|
+
me as SelectLabel,
|
|
161
|
+
ne as SelectScrollDownButton,
|
|
162
|
+
ue as SelectScrollUpButton,
|
|
163
|
+
xe as SelectSeparator,
|
|
164
|
+
fe as SelectTrigger,
|
|
165
|
+
ce as SelectValue,
|
|
166
|
+
Se as Separator,
|
|
167
|
+
De as Sheet,
|
|
168
|
+
Ae as SheetClose,
|
|
169
|
+
Ce as SheetContent,
|
|
170
|
+
Pe as SheetDescription,
|
|
171
|
+
Te as SheetFooter,
|
|
172
|
+
he as SheetHeader,
|
|
173
|
+
Ie as SheetTitle,
|
|
174
|
+
we as SheetTrigger,
|
|
175
|
+
Ee as Skeleton,
|
|
176
|
+
k as ThumbhashImage,
|
|
177
|
+
be as Toaster,
|
|
178
|
+
F as Touchable,
|
|
179
|
+
D as TransitionContainer,
|
|
180
|
+
C as TransitionLink,
|
|
181
|
+
Ko as formatError,
|
|
182
|
+
Xo as parseUrl,
|
|
183
|
+
Do as useAsyncStorage,
|
|
184
|
+
qe as useBuyerAttributes,
|
|
185
|
+
vo as useCloseMini,
|
|
186
|
+
So as useCuratedProducts,
|
|
187
|
+
ze as useCurrentUser,
|
|
188
|
+
ko as useDeeplink,
|
|
189
|
+
Uo as useErrorScreen,
|
|
190
|
+
Ho as useErrorToast,
|
|
191
|
+
Oe as useFollowedShops,
|
|
192
|
+
Ve as useFollowedShopsActions,
|
|
193
|
+
Yo as useImagePicker,
|
|
194
|
+
To as useImageUpload,
|
|
195
|
+
Fo as useNavigateWithTransition,
|
|
196
|
+
We as useOrders,
|
|
197
|
+
fo as usePopularProducts,
|
|
198
|
+
eo as useProduct,
|
|
199
|
+
$e as useProductList,
|
|
200
|
+
Ke as useProductListActions,
|
|
201
|
+
Xe as useProductLists,
|
|
202
|
+
po as useProductMedia,
|
|
203
|
+
mo as useProductSearch,
|
|
204
|
+
lo as useProductVariants,
|
|
205
|
+
to as useProducts,
|
|
206
|
+
Re as useRecentProducts,
|
|
207
|
+
Ne as useRecentShops,
|
|
208
|
+
uo as useRecommendedProducts,
|
|
209
|
+
yo as useRecommendedShops,
|
|
210
|
+
Le as useSavedProducts,
|
|
211
|
+
Ge as useSavedProductsActions,
|
|
212
|
+
Co as useSecureStorage,
|
|
213
|
+
_o as useShare,
|
|
214
|
+
Mo as useShop,
|
|
215
|
+
Bo as useShopCartActions,
|
|
216
|
+
Io as useShopNavigation
|
|
194
217
|
};
|
|
195
218
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { createContextScope as C } from "../../../../../@radix-ui_react-context@1.1.2_@types_react@19.1.6_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.js";
|
|
3
|
+
import { useCallbackRef as h } from "../../../../../@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.1.6_react@19.1.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
|
|
4
|
+
import { useLayoutEffect as f } from "../../../../../@radix-ui_react-use-layout-effect@1.1.1_@types_react@19.1.6_react@19.1.0/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
|
|
5
|
+
import { Primitive as v } from "../../../../../@radix-ui_react-primitive@2.1.3_@types_react-dom@19.1.6_@types_react@19.1.6__@types_react@19._5iu4xtybujtep4zwi6jviky6tu/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
6
|
+
import { useIsHydrated as _ } from "../../../../../@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";
|
|
7
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
8
|
+
var m = "Avatar", [y, H] = C(m), [x, A] = y(m), L = i.forwardRef(
|
|
9
|
+
(t, e) => {
|
|
10
|
+
const { __scopeAvatar: o, ...r } = t, [n, a] = i.useState("idle");
|
|
11
|
+
return /* @__PURE__ */ l(
|
|
12
|
+
x,
|
|
13
|
+
{
|
|
14
|
+
scope: o,
|
|
15
|
+
imageLoadingStatus: n,
|
|
16
|
+
onImageLoadingStatusChange: a,
|
|
17
|
+
children: /* @__PURE__ */ l(v.span, { ...r, ref: e })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
L.displayName = m;
|
|
23
|
+
var S = "AvatarImage", E = i.forwardRef(
|
|
24
|
+
(t, e) => {
|
|
25
|
+
const { __scopeAvatar: o, src: r, onLoadingStatusChange: n = () => {
|
|
26
|
+
}, ...a } = t, u = A(S, o), s = N(r, a), d = h((c) => {
|
|
27
|
+
n(c), u.onImageLoadingStatusChange(c);
|
|
28
|
+
});
|
|
29
|
+
return f(() => {
|
|
30
|
+
s !== "idle" && d(s);
|
|
31
|
+
}, [s, d]), s === "loaded" ? /* @__PURE__ */ l(v.img, { ...a, ref: e, src: r }) : null;
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
E.displayName = S;
|
|
35
|
+
var I = "AvatarFallback", R = i.forwardRef(
|
|
36
|
+
(t, e) => {
|
|
37
|
+
const { __scopeAvatar: o, delayMs: r, ...n } = t, a = A(I, o), [u, s] = i.useState(r === void 0);
|
|
38
|
+
return i.useEffect(() => {
|
|
39
|
+
if (r !== void 0) {
|
|
40
|
+
const d = window.setTimeout(() => s(!0), r);
|
|
41
|
+
return () => window.clearTimeout(d);
|
|
42
|
+
}
|
|
43
|
+
}, [r]), u && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ l(v.span, { ...n, ref: e }) : null;
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
R.displayName = I;
|
|
47
|
+
function p(t, e) {
|
|
48
|
+
return t ? e ? (t.src !== e && (t.src = e), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
49
|
+
}
|
|
50
|
+
function N(t, { referrerPolicy: e, crossOrigin: o }) {
|
|
51
|
+
const r = _(), n = i.useRef(null), a = r ? (n.current || (n.current = new window.Image()), n.current) : null, [u, s] = i.useState(
|
|
52
|
+
() => p(a, t)
|
|
53
|
+
);
|
|
54
|
+
return f(() => {
|
|
55
|
+
s(p(a, t));
|
|
56
|
+
}, [a, t]), f(() => {
|
|
57
|
+
const d = (w) => () => {
|
|
58
|
+
s(w);
|
|
59
|
+
};
|
|
60
|
+
if (!a) return;
|
|
61
|
+
const c = d("loaded"), g = d("error");
|
|
62
|
+
return a.addEventListener("load", c), a.addEventListener("error", g), e && (a.referrerPolicy = e), typeof o == "string" && (a.crossOrigin = o), () => {
|
|
63
|
+
a.removeEventListener("load", c), a.removeEventListener("error", g);
|
|
64
|
+
};
|
|
65
|
+
}, [a, o, e]), u;
|
|
66
|
+
}
|
|
67
|
+
var j = L, B = E, G = R;
|
|
68
|
+
export {
|
|
69
|
+
L as Avatar,
|
|
70
|
+
R as AvatarFallback,
|
|
71
|
+
E as AvatarImage,
|
|
72
|
+
G as Fallback,
|
|
73
|
+
B as Image,
|
|
74
|
+
j as Root,
|
|
75
|
+
H as createAvatarScope
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/.pnpm/@radix-ui+react-avatar@1.1.10_@types+react-dom@19.1.6_@types+react@19.1.6__@types+react@19.1._hkz57sehyui4ndfh3rsqwxftli/node_modules/@radix-ui/react-avatar/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/avatar.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useIsHydrated } from \"@radix-ui/react-use-is-hydrated\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AVATAR_NAME = \"Avatar\";\nvar [createAvatarContext, createAvatarScope] = createContextScope(AVATAR_NAME);\nvar [AvatarProvider, useAvatarContext] = createAvatarContext(AVATAR_NAME);\nvar Avatar = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, ...avatarProps } = props;\n const [imageLoadingStatus, setImageLoadingStatus] = React.useState(\"idle\");\n return /* @__PURE__ */ jsx(\n AvatarProvider,\n {\n scope: __scopeAvatar,\n imageLoadingStatus,\n onImageLoadingStatusChange: setImageLoadingStatus,\n children: /* @__PURE__ */ jsx(Primitive.span, { ...avatarProps, ref: forwardedRef })\n }\n );\n }\n);\nAvatar.displayName = AVATAR_NAME;\nvar IMAGE_NAME = \"AvatarImage\";\nvar AvatarImage = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, src, onLoadingStatusChange = () => {\n }, ...imageProps } = props;\n const context = useAvatarContext(IMAGE_NAME, __scopeAvatar);\n const imageLoadingStatus = useImageLoadingStatus(src, imageProps);\n const handleLoadingStatusChange = useCallbackRef((status) => {\n onLoadingStatusChange(status);\n context.onImageLoadingStatusChange(status);\n });\n useLayoutEffect(() => {\n if (imageLoadingStatus !== \"idle\") {\n handleLoadingStatusChange(imageLoadingStatus);\n }\n }, [imageLoadingStatus, handleLoadingStatusChange]);\n return imageLoadingStatus === \"loaded\" ? /* @__PURE__ */ jsx(Primitive.img, { ...imageProps, ref: forwardedRef, src }) : null;\n }\n);\nAvatarImage.displayName = IMAGE_NAME;\nvar FALLBACK_NAME = \"AvatarFallback\";\nvar AvatarFallback = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAvatar, delayMs, ...fallbackProps } = props;\n const context = useAvatarContext(FALLBACK_NAME, __scopeAvatar);\n const [canRender, setCanRender] = React.useState(delayMs === void 0);\n React.useEffect(() => {\n if (delayMs !== void 0) {\n const timerId = window.setTimeout(() => setCanRender(true), delayMs);\n return () => window.clearTimeout(timerId);\n }\n }, [delayMs]);\n return canRender && context.imageLoadingStatus !== \"loaded\" ? /* @__PURE__ */ jsx(Primitive.span, { ...fallbackProps, ref: forwardedRef }) : null;\n }\n);\nAvatarFallback.displayName = FALLBACK_NAME;\nfunction resolveLoadingStatus(image, src) {\n if (!image) {\n return \"idle\";\n }\n if (!src) {\n return \"error\";\n }\n if (image.src !== src) {\n image.src = src;\n }\n return image.complete && image.naturalWidth > 0 ? \"loaded\" : \"loading\";\n}\nfunction useImageLoadingStatus(src, { referrerPolicy, crossOrigin }) {\n const isHydrated = useIsHydrated();\n const imageRef = React.useRef(null);\n const image = (() => {\n if (!isHydrated) return null;\n if (!imageRef.current) {\n imageRef.current = new window.Image();\n }\n return imageRef.current;\n })();\n const [loadingStatus, setLoadingStatus] = React.useState(\n () => resolveLoadingStatus(image, src)\n );\n useLayoutEffect(() => {\n setLoadingStatus(resolveLoadingStatus(image, src));\n }, [image, src]);\n useLayoutEffect(() => {\n const updateStatus = (status) => () => {\n setLoadingStatus(status);\n };\n if (!image) return;\n const handleLoad = updateStatus(\"loaded\");\n const handleError = updateStatus(\"error\");\n image.addEventListener(\"load\", handleLoad);\n image.addEventListener(\"error\", handleError);\n if (referrerPolicy) {\n image.referrerPolicy = referrerPolicy;\n }\n if (typeof crossOrigin === \"string\") {\n image.crossOrigin = crossOrigin;\n }\n return () => {\n image.removeEventListener(\"load\", handleLoad);\n image.removeEventListener(\"error\", handleError);\n };\n }, [image, crossOrigin, referrerPolicy]);\n return loadingStatus;\n}\nvar Root = Avatar;\nvar Image = AvatarImage;\nvar Fallback = AvatarFallback;\nexport {\n Avatar,\n AvatarFallback,\n AvatarImage,\n Fallback,\n Image,\n Root,\n createAvatarScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["AVATAR_NAME","createAvatarContext","createAvatarScope","createContextScope","AvatarProvider","useAvatarContext","Avatar","React","props","forwardedRef","__scopeAvatar","avatarProps","imageLoadingStatus","setImageLoadingStatus","jsx","Primitive","IMAGE_NAME","AvatarImage","src","onLoadingStatusChange","imageProps","context","useImageLoadingStatus","handleLoadingStatusChange","useCallbackRef","status","useLayoutEffect","FALLBACK_NAME","AvatarFallback","delayMs","fallbackProps","canRender","setCanRender","timerId","resolveLoadingStatus","image","referrerPolicy","crossOrigin","isHydrated","useIsHydrated","imageRef","loadingStatus","setLoadingStatus","updateStatus","handleLoad","handleError","Root","Image","Fallback"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { s as r } from "../../../../../../../../_virtual/index3.js";
|
|
2
|
+
function s() {
|
|
3
|
+
return r.useSyncExternalStore(
|
|
4
|
+
e,
|
|
5
|
+
() => !0,
|
|
6
|
+
() => !1
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
function e() {
|
|
10
|
+
return () => {
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
s as useIsHydrated
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../../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.mjs"],"sourcesContent":["// src/use-is-hydrated.tsx\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\nfunction useIsHydrated() {\n return useSyncExternalStore(\n subscribe,\n () => true,\n () => false\n );\n}\nfunction subscribe() {\n return () => {\n };\n}\nexport {\n useIsHydrated\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useIsHydrated","useSyncExternalStore","subscribe"],"mappings":";AAEA,SAASA,IAAgB;AACvB,SAAOC,EAAoB;AAAA,IACzBC;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,EACP;AACH;AACA,SAASA,IAAY;AACnB,SAAO,MAAM;AAAA,EACZ;AACH;","x_google_ignoreList":[0]}
|