@shopify/shop-minis-react 0.0.17 → 0.0.18
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/index2.js +3 -2
- package/dist/_virtual/index2.js.map +1 -1
- package/dist/_virtual/index3.js +5 -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/ui/avatar.js +54 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/index.js +169 -165
- 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/querystringify@2.2.0/node_modules/querystringify/index.js +1 -1
- 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/package.json +1 -1
- package/src/components/index.ts +1 -0
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { __require as r } from "../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";
|
|
2
|
+
var i = r();
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
i as s
|
|
4
5
|
};
|
|
5
6
|
//# sourceMappingURL=index2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sync-external-store-shim.development.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sync-external-store-shim.production.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as r } from "../../lib/utils.js";
|
|
3
|
+
import { Root as l, Image as o, Fallback as s } from "../../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";
|
|
4
|
+
function u({
|
|
5
|
+
className: a,
|
|
6
|
+
...t
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ e(
|
|
9
|
+
l,
|
|
10
|
+
{
|
|
11
|
+
"data-slot": "avatar",
|
|
12
|
+
className: r(
|
|
13
|
+
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
14
|
+
a
|
|
15
|
+
),
|
|
16
|
+
...t
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function m({
|
|
21
|
+
className: a,
|
|
22
|
+
...t
|
|
23
|
+
}) {
|
|
24
|
+
return /* @__PURE__ */ e(
|
|
25
|
+
o,
|
|
26
|
+
{
|
|
27
|
+
"data-slot": "avatar-image",
|
|
28
|
+
className: r("aspect-square size-full", a),
|
|
29
|
+
...t
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function c({
|
|
34
|
+
className: a,
|
|
35
|
+
...t
|
|
36
|
+
}) {
|
|
37
|
+
return /* @__PURE__ */ e(
|
|
38
|
+
s,
|
|
39
|
+
{
|
|
40
|
+
"data-slot": "avatar-fallback",
|
|
41
|
+
className: r(
|
|
42
|
+
"bg-muted flex size-full items-center justify-center rounded-full",
|
|
43
|
+
a
|
|
44
|
+
),
|
|
45
|
+
...t
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
u as Avatar,
|
|
51
|
+
c as AvatarFallback,
|
|
52
|
+
m as AvatarImage
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.js","sources":["../../../src/components/ui/avatar.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport {Avatar as AvatarPrimitive} from 'radix-ui'\n\nimport {cn} from '../../lib/utils'\n\nfunction Avatar({\n className,\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Root>) {\n return (\n <AvatarPrimitive.Root\n data-slot=\"avatar\"\n className={cn(\n 'relative flex size-8 shrink-0 overflow-hidden rounded-full',\n className\n )}\n {...props}\n />\n )\n}\n\nfunction AvatarImage({\n className,\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Image>) {\n return (\n <AvatarPrimitive.Image\n data-slot=\"avatar-image\"\n className={cn('aspect-square size-full', className)}\n {...props}\n />\n )\n}\n\nfunction AvatarFallback({\n className,\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {\n return (\n <AvatarPrimitive.Fallback\n data-slot=\"avatar-fallback\"\n className={cn(\n 'bg-muted flex size-full items-center justify-center rounded-full',\n className\n )}\n {...props}\n />\n )\n}\n\nexport {Avatar, AvatarImage, AvatarFallback}\n"],"names":["Avatar","className","props","jsx","AvatarPrimitive.Root","cn","AvatarImage","AvatarPrimitive.Image","AvatarFallback","AvatarPrimitive.Fallback"],"mappings":";;;AAMA,SAASA,EAAO;AAAA,EACd,WAAAC;AAAA,EACA,GAAGC;AACL,GAAsD;AAElD,SAAA,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,EACN;AAEJ;AAEA,SAASI,EAAY;AAAA,EACnB,WAAAL;AAAA,EACA,GAAGC;AACL,GAAuD;AAEnD,SAAA,gBAAAC;AAAA,IAACI;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWF,EAAG,2BAA2BJ,CAAS;AAAA,MACjD,GAAGC;AAAA,IAAA;AAAA,EACN;AAEJ;AAEA,SAASM,EAAe;AAAA,EACtB,WAAAP;AAAA,EACA,GAAGC;AACL,GAA0D;AAEtD,SAAA,gBAAAC;AAAA,IAACM;AAAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWJ;AAAA,QACT;AAAA,QACAJ;AAAA,MACF;AAAA,MACC,GAAGC;AAAA,IAAA;AAAA,EACN;AAEJ;"}
|
package/dist/index.js
CHANGED
|
@@ -1,65 +1,66 @@
|
|
|
1
1
|
import { MinisContainer as o } from "./components/MinisContainer.js";
|
|
2
2
|
import { ProductCard as a } from "./components/commerce/product-card.js";
|
|
3
3
|
import { ProductLink as i } from "./components/commerce/product-link.js";
|
|
4
|
-
import { MerchantCard as s, MerchantCardPrimitive as
|
|
4
|
+
import { MerchantCard as s, MerchantCardPrimitive as m } from "./components/commerce/merchant-card.js";
|
|
5
5
|
import { Button as n } from "./components/atoms/button.js";
|
|
6
6
|
import { FavoriteButton as x } from "./components/atoms/favorite-button.js";
|
|
7
7
|
import { IconButton as d } from "./components/atoms/icon-button.js";
|
|
8
|
-
import { Touchable as
|
|
8
|
+
import { Touchable as S } from "./components/atoms/touchable.js";
|
|
9
9
|
import { Accordion as C, AccordionContent as A, AccordionItem as P, AccordionTrigger as h } from "./components/ui/accordion.js";
|
|
10
10
|
import { Alert as w, AlertDescription as v, AlertTitle as F } from "./components/ui/alert.js";
|
|
11
|
-
import { AlertDialog as
|
|
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 {
|
|
11
|
+
import { AlertDialog as I, AlertDialogAction as R, AlertDialogCancel as M, AlertDialogContent as B, AlertDialogDescription as E, AlertDialogFooter as k, AlertDialogHeader as y, AlertDialogOverlay as H, AlertDialogPortal as L, AlertDialogTitle as G, AlertDialogTrigger as N } from "./components/ui/alert-dialog.js";
|
|
12
|
+
import { Avatar as U, AvatarFallback as z, AvatarImage as V } from "./components/ui/avatar.js";
|
|
13
|
+
import { Card as q, CardAction as J, CardContent as K, CardDescription as Q, CardFooter as W, CardHeader as X, CardTitle as Y } from "./components/ui/card.js";
|
|
14
|
+
import { Carousel as _, CarouselContent as $, CarouselItem as rr, CarouselNext as er, CarouselPrevious as or } from "./components/ui/carousel.js";
|
|
15
|
+
import { Checkbox as ar } from "./components/ui/checkbox.js";
|
|
16
|
+
import { Dialog as ir, DialogClose as pr, DialogContent as sr, DialogDescription as mr, DialogFooter as ur, DialogHeader as nr, DialogOverlay as cr, DialogPortal as xr, DialogTitle as fr, DialogTrigger as dr } from "./components/ui/dialog.js";
|
|
17
|
+
import { Drawer as Sr, DrawerClose as Dr, DrawerContent as Cr, DrawerDescription as Ar, DrawerFooter as Pr, DrawerHeader as hr, DrawerOverlay as Tr, DrawerPortal as wr, DrawerTitle as vr, DrawerTrigger as Fr } from "./components/ui/drawer.js";
|
|
18
|
+
import { Input as Ir } from "./components/ui/input.js";
|
|
19
|
+
import { Label as Mr } from "./components/ui/label.js";
|
|
20
|
+
import { Progress as Er } from "./components/ui/progress.js";
|
|
21
|
+
import { RadioGroup as yr, RadioGroupItem as Hr } from "./components/ui/radio-group.js";
|
|
22
|
+
import { ResizableHandle as Gr, ResizablePanel as Nr, ResizablePanelGroup as Or } from "./components/ui/resizable.js";
|
|
23
|
+
import { ScrollArea as zr, ScrollBar as Vr } from "./components/ui/scroll-area.js";
|
|
24
|
+
import { Select as qr, SelectContent as Jr, SelectGroup as Kr, SelectItem as Qr, SelectLabel as Wr, SelectScrollDownButton as Xr, SelectScrollUpButton as Yr, SelectSeparator as Zr, SelectTrigger as _r, SelectValue as $r } from "./components/ui/select.js";
|
|
25
|
+
import { Separator as ee } from "./components/ui/separator.js";
|
|
26
|
+
import { Sheet as te, SheetClose as ae, SheetContent as le, SheetDescription as ie, SheetFooter as pe, SheetHeader as se, SheetTitle as me, SheetTrigger as ue } from "./components/ui/sheet.js";
|
|
27
|
+
import { Toaster as ce } from "./components/ui/sonner.js";
|
|
28
|
+
import { useRecentProducts as fe } from "./hooks/user/useRecentProducts.js";
|
|
29
|
+
import { useRecentShops as ge } from "./hooks/user/useRecentShops.js";
|
|
30
|
+
import { useSavedProducts as De } from "./hooks/user/useSavedProducts.js";
|
|
31
|
+
import { useSavedProductsActions as Ae } from "./hooks/user/useSavedProductsActions.js";
|
|
32
|
+
import { useFollowedShops as he } from "./hooks/user/useFollowedShops.js";
|
|
33
|
+
import { useFollowedShopsActions as we } from "./hooks/user/useFollowedShopsActions.js";
|
|
34
|
+
import { useCurrentUser as Fe } from "./hooks/user/useCurrentUser.js";
|
|
35
|
+
import { useOrders as Ie } from "./hooks/user/useOrders.js";
|
|
36
|
+
import { useBuyerAttributes as Me } from "./hooks/user/useBuyerAttributes.js";
|
|
37
|
+
import { useProductListActions as Ee } from "./hooks/product/useProductListActions.js";
|
|
38
|
+
import { useProductLists as ye } from "./hooks/product/useProductLists.js";
|
|
39
|
+
import { useProductList as Le } from "./hooks/product/useProductList.js";
|
|
40
|
+
import { useProduct as Ne } from "./hooks/product/useProduct.js";
|
|
41
|
+
import { useProducts as Ue } from "./hooks/product/useProducts.js";
|
|
42
|
+
import { useProductVariants as Ve } from "./hooks/product/useProductVariants.js";
|
|
43
|
+
import { useProductMedia as qe } from "./hooks/product/useProductMedia.js";
|
|
44
|
+
import { useProductSearch as Ke } from "./hooks/product/useProductSearch.js";
|
|
45
|
+
import { useRecommendedProducts as We } from "./hooks/product/useRecommendedProducts.js";
|
|
46
|
+
import { usePopularProducts as Ye } from "./hooks/product/usePopularProducts.js";
|
|
47
|
+
import { useCuratedProducts as _e } from "./hooks/product/useCuratedProducts.js";
|
|
48
|
+
import { useAsyncStorage as ro } from "./hooks/storage/useAsyncStorage.js";
|
|
49
|
+
import { useSecureStorage as oo } from "./hooks/storage/useSecureStorage.js";
|
|
50
|
+
import { useImageUpload as ao } from "./hooks/storage/useImageUpload.js";
|
|
51
|
+
import { useShopNavigation as io } from "./hooks/navigation/useShopNavigation.js";
|
|
52
|
+
import { useCloseMini as so } from "./hooks/navigation/useCloseMini.js";
|
|
53
|
+
import { useDeeplink as uo } from "./hooks/navigation/useDeeplink.js";
|
|
54
|
+
import { useShop as co } from "./hooks/shop/useShop.js";
|
|
55
|
+
import { useShopCartActions as fo } from "./hooks/shop/useShopCartActions.js";
|
|
56
|
+
import { useRecommendedShops as So } from "./hooks/shop/useRecommendedShops.js";
|
|
57
|
+
import { useErrorToast as Co } from "./hooks/util/useErrorToast.js";
|
|
58
|
+
import { useErrorScreen as Po } from "./hooks/util/useErrorScreen.js";
|
|
59
|
+
import { useShare as To } from "./hooks/util/useShare.js";
|
|
60
|
+
import { useImagePicker as vo } from "./hooks/util/useImagePicker.js";
|
|
61
|
+
import { MiniEntityNotFoundError as bo, MiniError as Io, MiniNetworkError as Ro, formatError as Mo } from "./utils/errors.js";
|
|
62
|
+
import { parseUrl as Eo } from "./utils/parseUrl.js";
|
|
63
|
+
import { Consent as yo, ConsentStatus as Ho } from "./shop-minis-platform/src/types/permissions.js";
|
|
63
64
|
export {
|
|
64
65
|
C as Accordion,
|
|
65
66
|
A as AccordionContent,
|
|
@@ -67,129 +68,132 @@ export {
|
|
|
67
68
|
h as AccordionTrigger,
|
|
68
69
|
w as Alert,
|
|
69
70
|
v as AlertDescription,
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
I as AlertDialog,
|
|
72
|
+
R as AlertDialogAction,
|
|
72
73
|
M as AlertDialogCancel,
|
|
73
74
|
B as AlertDialogContent,
|
|
74
75
|
E as AlertDialogDescription,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
k as AlertDialogFooter,
|
|
77
|
+
y as AlertDialogHeader,
|
|
78
|
+
H as AlertDialogOverlay,
|
|
79
|
+
L as AlertDialogPortal,
|
|
79
80
|
G as AlertDialogTitle,
|
|
80
81
|
N as AlertDialogTrigger,
|
|
81
82
|
F as AlertTitle,
|
|
83
|
+
U as Avatar,
|
|
84
|
+
z as AvatarFallback,
|
|
85
|
+
V as AvatarImage,
|
|
82
86
|
n as Button,
|
|
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
|
-
|
|
87
|
+
q as Card,
|
|
88
|
+
J as CardAction,
|
|
89
|
+
K as CardContent,
|
|
90
|
+
Q as CardDescription,
|
|
91
|
+
W as CardFooter,
|
|
92
|
+
X as CardHeader,
|
|
93
|
+
Y as CardTitle,
|
|
94
|
+
_ as Carousel,
|
|
95
|
+
$ as CarouselContent,
|
|
96
|
+
rr as CarouselItem,
|
|
97
|
+
er as CarouselNext,
|
|
98
|
+
or as CarouselPrevious,
|
|
99
|
+
ar as Checkbox,
|
|
100
|
+
yo as Consent,
|
|
101
|
+
Ho as ConsentStatus,
|
|
102
|
+
ir as Dialog,
|
|
103
|
+
pr as DialogClose,
|
|
104
|
+
sr as DialogContent,
|
|
105
|
+
mr as DialogDescription,
|
|
106
|
+
ur as DialogFooter,
|
|
107
|
+
nr as DialogHeader,
|
|
108
|
+
cr as DialogOverlay,
|
|
109
|
+
xr as DialogPortal,
|
|
110
|
+
fr as DialogTitle,
|
|
111
|
+
dr as DialogTrigger,
|
|
112
|
+
Sr as Drawer,
|
|
113
|
+
Dr as DrawerClose,
|
|
114
|
+
Cr as DrawerContent,
|
|
115
|
+
Ar as DrawerDescription,
|
|
116
|
+
Pr as DrawerFooter,
|
|
117
|
+
hr as DrawerHeader,
|
|
118
|
+
Tr as DrawerOverlay,
|
|
119
|
+
wr as DrawerPortal,
|
|
120
|
+
vr as DrawerTitle,
|
|
121
|
+
Fr as DrawerTrigger,
|
|
118
122
|
x as FavoriteButton,
|
|
119
123
|
d as IconButton,
|
|
120
|
-
|
|
121
|
-
|
|
124
|
+
Ir as Input,
|
|
125
|
+
Mr as Label,
|
|
122
126
|
s as MerchantCard,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
+
m as MerchantCardPrimitive,
|
|
128
|
+
bo as MiniEntityNotFoundError,
|
|
129
|
+
Io as MiniError,
|
|
130
|
+
Ro as MiniNetworkError,
|
|
127
131
|
o as MinisContainer,
|
|
128
132
|
a as ProductCard,
|
|
129
133
|
i as ProductLink,
|
|
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
|
-
|
|
134
|
+
Er as Progress,
|
|
135
|
+
yr as RadioGroup,
|
|
136
|
+
Hr as RadioGroupItem,
|
|
137
|
+
Gr as ResizableHandle,
|
|
138
|
+
Nr as ResizablePanel,
|
|
139
|
+
Or as ResizablePanelGroup,
|
|
140
|
+
zr as ScrollArea,
|
|
141
|
+
Vr as ScrollBar,
|
|
142
|
+
qr as Select,
|
|
143
|
+
Jr as SelectContent,
|
|
144
|
+
Kr as SelectGroup,
|
|
145
|
+
Qr as SelectItem,
|
|
146
|
+
Wr as SelectLabel,
|
|
147
|
+
Xr as SelectScrollDownButton,
|
|
148
|
+
Yr as SelectScrollUpButton,
|
|
149
|
+
Zr as SelectSeparator,
|
|
150
|
+
_r as SelectTrigger,
|
|
151
|
+
$r as SelectValue,
|
|
152
|
+
ee as Separator,
|
|
153
|
+
te as Sheet,
|
|
154
|
+
ae as SheetClose,
|
|
155
|
+
le as SheetContent,
|
|
156
|
+
ie as SheetDescription,
|
|
157
|
+
pe as SheetFooter,
|
|
158
|
+
se as SheetHeader,
|
|
159
|
+
me as SheetTitle,
|
|
160
|
+
ue as SheetTrigger,
|
|
161
|
+
ce as Toaster,
|
|
162
|
+
S as Touchable,
|
|
163
|
+
Mo as formatError,
|
|
164
|
+
Eo as parseUrl,
|
|
165
|
+
ro as useAsyncStorage,
|
|
166
|
+
Me as useBuyerAttributes,
|
|
167
|
+
so as useCloseMini,
|
|
168
|
+
_e as useCuratedProducts,
|
|
169
|
+
Fe as useCurrentUser,
|
|
170
|
+
uo as useDeeplink,
|
|
171
|
+
Po as useErrorScreen,
|
|
172
|
+
Co as useErrorToast,
|
|
173
|
+
he as useFollowedShops,
|
|
174
|
+
we as useFollowedShopsActions,
|
|
175
|
+
vo as useImagePicker,
|
|
176
|
+
ao as useImageUpload,
|
|
177
|
+
Ie as useOrders,
|
|
178
|
+
Ye as usePopularProducts,
|
|
179
|
+
Ne as useProduct,
|
|
180
|
+
Le as useProductList,
|
|
181
|
+
Ee as useProductListActions,
|
|
182
|
+
ye as useProductLists,
|
|
183
|
+
qe as useProductMedia,
|
|
184
|
+
Ke as useProductSearch,
|
|
185
|
+
Ve as useProductVariants,
|
|
186
|
+
Ue as useProducts,
|
|
187
|
+
fe as useRecentProducts,
|
|
188
|
+
ge as useRecentShops,
|
|
189
|
+
We as useRecommendedProducts,
|
|
190
|
+
So as useRecommendedShops,
|
|
191
|
+
De as useSavedProducts,
|
|
192
|
+
Ae as useSavedProductsActions,
|
|
193
|
+
oo as useSecureStorage,
|
|
194
|
+
To as useShare,
|
|
195
|
+
co as useShop,
|
|
196
|
+
fo as useShopCartActions,
|
|
197
|
+
io as useShopNavigation
|
|
194
198
|
};
|
|
195
199
|
//# 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":";;;;;;;AAUA,IAAIA,IAAc,UACd,CAACC,GAAqBC,CAAiB,IAAIC,EAAmBH,CAAW,GACzE,CAACI,GAAgBC,CAAgB,IAAIJ,EAAoBD,CAAW,GACpEM,IAASC,EAAM;AAAA,EACjB,CAACC,GAAOC,MAAiB;AACvB,UAAM,EAAE,eAAAC,GAAe,GAAGC,EAAW,IAAKH,GACpC,CAACI,GAAoBC,CAAqB,IAAIN,EAAM,SAAS,MAAM;AACzE,WAAuB,gBAAAO;AAAA,MACrBV;AAAA,MACA;AAAA,QACE,OAAOM;AAAA,QACP,oBAAAE;AAAA,QACA,4BAA4BC;AAAA,QAC5B,UAA0B,gBAAAC,EAAIC,EAAU,MAAM,EAAE,GAAGJ,GAAa,KAAKF,EAAc,CAAA;AAAA,MAC3F;AAAA,IACK;AAAA,EACL;AACA;AACAH,EAAO,cAAcN;AACrB,IAAIgB,IAAa,eACbC,IAAcV,EAAM;AAAA,EACtB,CAACC,GAAOC,MAAiB;AACvB,UAAM,EAAE,eAAAC,GAAe,KAAAQ,GAAK,uBAAAC,IAAwB,MAAM;AAAA,IAC9D,GAAO,GAAGC,EAAU,IAAKZ,GACfa,IAAUhB,EAAiBW,GAAYN,CAAa,GACpDE,IAAqBU,EAAsBJ,GAAKE,CAAU,GAC1DG,IAA4BC,EAAe,CAACC,MAAW;AAC3D,MAAAN,EAAsBM,CAAM,GAC5BJ,EAAQ,2BAA2BI,CAAM;AAAA,IAC/C,CAAK;AACDC,WAAAA,EAAgB,MAAM;AACpB,MAAId,MAAuB,UACzBW,EAA0BX,CAAkB;AAAA,IAEpD,GAAO,CAACA,GAAoBW,CAAyB,CAAC,GAC3CX,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AA,EAAgB,MAAM;AACpB,IAAAgB,EAAiBR,EAAqBC,GAAOjB,CAAG,CAAC;AAAA,EACrD,GAAK,CAACiB,GAAOjB,CAAG,CAAC,GACfQ,EAAgB,MAAM;AACpB,UAAMiB,IAAe,CAAClB,MAAW,MAAM;AACrC,MAAAiB,EAAiBjB,CAAM;AAAA,IACxB;AACD,QAAI,CAACU,EAAO;AACZ,UAAMS,IAAaD,EAAa,QAAQ,GAClCE,IAAcF,EAAa,OAAO;AACxC,WAAAR,EAAM,iBAAiB,QAAQS,CAAU,GACzCT,EAAM,iBAAiB,SAASU,CAAW,GACvCT,MACFD,EAAM,iBAAiBC,IAErB,OAAOC,KAAgB,aACzBF,EAAM,cAAcE,IAEf,MAAM;AACX,MAAAF,EAAM,oBAAoB,QAAQS,CAAU,GAC5CT,EAAM,oBAAoB,SAASU,CAAW;AAAA,IAC/C;AAAA,EACF,GAAE,CAACV,GAAOE,GAAaD,CAAc,CAAC,GAChCK;AACT;AACG,IAACK,IAAOxC,GACPyC,IAAQ9B,GACR+B,IAAWpB;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { s as r } from "../../../../../../../../_virtual/index2.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]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { __exports as s } from "../../../../../../../_virtual/use-sync-external-store-shim.development.js";
|
|
2
|
+
import h from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* use-sync-external-store-shim.development.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var l;
|
|
13
|
+
function A() {
|
|
14
|
+
return l ? s : (l = 1, process.env.NODE_ENV !== "production" && function() {
|
|
15
|
+
function d(e, t) {
|
|
16
|
+
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
17
|
+
}
|
|
18
|
+
function S(e, t) {
|
|
19
|
+
f || o.startTransition === void 0 || (f = !0, console.error(
|
|
20
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
21
|
+
));
|
|
22
|
+
var r = t();
|
|
23
|
+
if (!c) {
|
|
24
|
+
var u = t();
|
|
25
|
+
_(r, u) || (console.error(
|
|
26
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
27
|
+
), c = !0);
|
|
28
|
+
}
|
|
29
|
+
u = p({
|
|
30
|
+
inst: { value: r, getSnapshot: t }
|
|
31
|
+
});
|
|
32
|
+
var n = u[0].inst, i = u[1];
|
|
33
|
+
return L(
|
|
34
|
+
function() {
|
|
35
|
+
n.value = r, n.getSnapshot = t, a(n) && i({ inst: n });
|
|
36
|
+
},
|
|
37
|
+
[e, r, t]
|
|
38
|
+
), E(
|
|
39
|
+
function() {
|
|
40
|
+
return a(n) && i({ inst: n }), e(function() {
|
|
41
|
+
a(n) && i({ inst: n });
|
|
42
|
+
});
|
|
43
|
+
},
|
|
44
|
+
[e]
|
|
45
|
+
), y(r), r;
|
|
46
|
+
}
|
|
47
|
+
function a(e) {
|
|
48
|
+
var t = e.getSnapshot;
|
|
49
|
+
e = e.value;
|
|
50
|
+
try {
|
|
51
|
+
var r = t();
|
|
52
|
+
return !_(e, r);
|
|
53
|
+
} catch {
|
|
54
|
+
return !0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function O(e, t) {
|
|
58
|
+
return t();
|
|
59
|
+
}
|
|
60
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
61
|
+
var o = h, _ = typeof Object.is == "function" ? Object.is : d, p = o.useState, E = o.useEffect, L = o.useLayoutEffect, y = o.useDebugValue, f = !1, c = !1, v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? O : S;
|
|
62
|
+
s.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : v, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
63
|
+
}(), s);
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
A as __require
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=use-sync-external-store-shim.development.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sync-external-store-shim.development.js","sources":["../../../../../../../../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"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n"],"names":["is","x","y","useSyncExternalStore$2","subscribe","getSnapshot","didWarnOld18Alpha","React","value","didWarnUncachedGetSnapshot","cachedValue","objectIs","useState","inst","forceUpdate","useLayoutEffect","checkIfSnapshotChanged","useEffect","useDebugValue","latestGetSnapshot","nextValue","useSyncExternalStore$1","require$$0","shim","useSyncExternalStoreShim_development"],"mappings":";;;;;;;;;;;;;yBAWiB,QAAQ,IAAI,aAA7B,gBACG,WAAY;AACX,aAASA,EAAGC,GAAGC,GAAG;AAChB,aAAQD,MAAMC,MAAYD,MAAN,KAAW,IAAIA,MAAM,IAAIC,MAAQD,MAAMA,KAAKC,MAAMA;AAAA,IA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OAAO,+BAA+B,+BADxC,cAEA,+BAA+B,4BAA4B,OAAO;AACpE,QAAIE,IAAQe,GACVX,IAA0B,OAAO,OAAO,MAA7B,aAAkC,OAAO,KAAKX,GACzDY,IAAWL,EAAM,UACjBU,IAAYV,EAAM,WAClBQ,IAAkBR,EAAM,iBACxBW,IAAgBX,EAAM,eACtBD,IAAoB,IACpBG,IAA6B,IAC7Bc,IACkB,OAAO,SAAvB,OACgB,OAAO,OAAO,WAA9B,OACgB,OAAO,OAAO,SAAS,gBAAvC,MACIF,IACAlB;AACR,IAAAqB,EAA4B,uBACfjB,EAAM,yBAAjB,SAAwCA,EAAM,uBAAuBgB,GACvD,OAAO,iCAAvB,OAEI,OAAO,+BAA+B,8BADxC,cAEA,+BAA+B,2BAA2B,OAAO;AAAA,EACvE,EAAM;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { __exports as i } from "../../../../../../../_virtual/use-sync-external-store-shim.production.js";
|
|
2
|
+
import h from "react";
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* use-sync-external-store-shim.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var f;
|
|
13
|
+
function x() {
|
|
14
|
+
if (f) return i;
|
|
15
|
+
f = 1;
|
|
16
|
+
var u = h;
|
|
17
|
+
function s(e, t) {
|
|
18
|
+
return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
|
|
19
|
+
}
|
|
20
|
+
var S = typeof Object.is == "function" ? Object.is : s, d = u.useState, l = u.useEffect, p = u.useLayoutEffect, E = u.useDebugValue;
|
|
21
|
+
function v(e, t) {
|
|
22
|
+
var r = t(), a = d({ inst: { value: r, getSnapshot: t } }), n = a[0].inst, c = a[1];
|
|
23
|
+
return p(
|
|
24
|
+
function() {
|
|
25
|
+
n.value = r, n.getSnapshot = t, o(n) && c({ inst: n });
|
|
26
|
+
},
|
|
27
|
+
[e, r, t]
|
|
28
|
+
), l(
|
|
29
|
+
function() {
|
|
30
|
+
return o(n) && c({ inst: n }), e(function() {
|
|
31
|
+
o(n) && c({ inst: n });
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
[e]
|
|
35
|
+
), E(r), r;
|
|
36
|
+
}
|
|
37
|
+
function o(e) {
|
|
38
|
+
var t = e.getSnapshot;
|
|
39
|
+
e = e.value;
|
|
40
|
+
try {
|
|
41
|
+
var r = t();
|
|
42
|
+
return !S(e, r);
|
|
43
|
+
} catch {
|
|
44
|
+
return !0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function y(e, t) {
|
|
48
|
+
return t();
|
|
49
|
+
}
|
|
50
|
+
var m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? y : v;
|
|
51
|
+
return i.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : m, i;
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
x as __require
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=use-sync-external-store-shim.production.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sync-external-store-shim.production.js","sources":["../../../../../../../../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"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n"],"names":["React","require$$0","is","x","y","objectIs","useState","useEffect","useLayoutEffect","useDebugValue","useSyncExternalStore$2","subscribe","getSnapshot","value","_useState","inst","forceUpdate","checkIfSnapshotChanged","latestGetSnapshot","nextValue","useSyncExternalStore$1","shim","useSyncExternalStoreShim_production"],"mappings":";;;;;;;;;;;;;;;AAWA,MAAIA,IAAQC;AACZ,WAASC,EAAGC,GAAGC,GAAG;AAChB,WAAQD,MAAMC,MAAYD,MAAN,KAAW,IAAIA,MAAM,IAAIC,MAAQD,MAAMA,KAAKC,MAAMA;AAAA,EACxE;AACA,MAAIC,IAA0B,OAAO,OAAO,MAA7B,aAAkC,OAAO,KAAKH,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
|
|
|
1
|
+
import { __module as r } from "../../../../../../../_virtual/index4.js";
|
|
2
|
+
import { __require as o } from "../cjs/use-sync-external-store-shim.production.js";
|
|
3
|
+
import { __require as i } from "../cjs/use-sync-external-store-shim.development.js";
|
|
4
|
+
var e;
|
|
5
|
+
function u() {
|
|
6
|
+
return e ? r.exports : (e = 1, process.env.NODE_ENV === "production" ? r.exports = o() : r.exports = i(), r.exports);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
u as __require
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.1.0/node_modules/use-sync-external-store/shim/index.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n"],"names":["shimModule","require$$0","require$$1"],"mappings":";;;;;iCAEI,QAAQ,IAAI,aAAa,eAC3BA,EAAA,UAAiBC,EAA4D,IAE7ED,EAAA,UAAiBE,EAA6D;;","x_google_ignoreList":[0]}
|
package/package.json
CHANGED
package/src/components/index.ts
CHANGED