@shophost/react 2.0.67 → 2.0.69
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/admin-client.cjs +1 -1
- package/admin-client.js +3300 -1
- package/index.cjs +1 -1
- package/index.mjs +11 -1
- package/index.react-server.cjs +1 -1
- package/index.react-server.mjs +11 -1
- package/next/server.cjs +1 -1
- package/next/server.mjs +16 -1
- package/next/views.cjs +1 -1
- package/next/views.mjs +4 -1
- package/package.json +3 -3
- package/react.css +1 -1
- package/storefront/lib/auth-redirect.d.ts +9 -0
- package/storefront.cjs +1 -1
- package/storefront.mjs +85 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface StorefrontAuthRoutes {
|
|
2
|
+
fallback: string;
|
|
3
|
+
signIn: string;
|
|
4
|
+
signUp: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function resolveStorefrontRedirectPath(requestedRedirectPath: string | null | undefined, routes: StorefrontAuthRoutes): string;
|
|
7
|
+
export declare function buildStorefrontAuthHref(authPath: string, redirectPath: string): string;
|
|
8
|
+
export declare function buildStorefrontCallbackUrl(origin: string, redirectPath: string | null | undefined, routes: StorefrontAuthRoutes): string;
|
|
9
|
+
export declare function buildStorefrontRequestedPath(pathname: string, searchParams?: Pick<URLSearchParams, "toString"> | null): string;
|
package/storefront.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./admin-client.cjs");exports.APIProvider=o.APIProvider,exports.AccountHomePage=o.AccountHomePage,exports.AccountPages=o.AccountPages,exports.Badge=o.Badge,exports.Button=o.Button,exports.CartDrawer=o.CartDrawer,exports.CartDrawerItem=o.CartDrawerItem,exports.CartItems=o.CartItems,exports.CartPanel=o.CartPanel,exports.CartProvider=o.CartProvider,exports.CheckoutPages=o.CheckoutPages,exports.Command=o.Command,exports.CommandBar=o.CommandBar,exports.CommandBarBar=o.CommandBarBar,exports.CommandBarCommand=o.CommandBarCommand,exports.CommandBarSeperator=o.CommandBarSeperator,exports.CommandBarValue=o.CommandBarValue,exports.CommandDialog=o.CommandDialog,exports.CommandEmpty=o.CommandEmpty,exports.CommandGroup=o.CommandGroup,exports.CommandInput=o.CommandInput,exports.CommandItem=o.CommandItem,exports.CommandList=o.CommandList,exports.CommandSeparator=o.CommandSeparator,exports.CommandShortcut=o.CommandShortcut,exports.CountryInput=o.CountryInput,exports.CustomerDetailsPage=o.CustomerDetailsPage,exports.Dialog=o.Dialog,exports.DialogClose=o.DialogClose,exports.DialogContent=o.DialogContent,exports.DialogDescription=o.DialogDescription,exports.DialogFooter=o.DialogFooter,exports.DialogHeader=o.DialogHeader,exports.DialogTitle=o.DialogTitle,exports.DialogTrigger=o.DialogTrigger,exports.Divider=o.Divider,exports.EmailInput=o.EmailInput,exports.ImageUploadInput=o.ImageUploadInput,exports.Input=o.Input,exports.InputGroup=o.InputGroup,exports.Label=o.Label,exports.LocationInput=o.LocationInput,exports.ModifierContainer=o.ModifierContainer,exports.ModifiersDialog=o.ModifiersDialog,exports.ModifiersGroup=o.ModifiersGroup,exports.ModifiersModal=o.ModifiersModal,exports.ModifiersOption=o.ModifiersOption,exports.PhoneNumberInput=o.PhoneNumberInput,exports.Popover=o.Popover,exports.PopoverAnchor=o.PopoverAnchor,exports.PopoverClose=o.PopoverClose,exports.PopoverContent=o.PopoverContent,exports.PopoverTrigger=o.PopoverTrigger,exports.QuantityControl=o.QuantityControl,exports.RadioCardGroup=o.RadioCardGroup,exports.RadioCardGroupIndicator=o.RadioCardGroupIndicator,exports.RadioCardItem=o.RadioCardItem,exports.SelectInput=o.SelectInput,exports.ShippingAndPaymentPage=o.ShippingAndPaymentPage,exports.ShophostProvider=o.ShophostProvider,exports.SliderOver=o.SliderOver,exports.Switch=o.Switch,exports.TextInput=o.TextInput,exports.TimeInput=o.TimeInput,exports.badgeVariants=o.badgeVariants,exports.buttonVariants=o.buttonVariants,exports.calculateCartTotal=o.calculateCartTotal,exports.findCartItem=o.findCartItem,exports.formatPrice=o.formatPrice,exports.getFieldError=o.getFieldError,exports.getFormattedModifiers=o.getFormattedModifiers,exports.mockProducts=o.mockProducts,exports.productRequiresModifiers=o.productRequiresModifiers,exports.useAPI=o.useAPI,exports.useCart=o.useCart,exports.useCartContext=o.useCartContext,exports.useLocalization=o.useLocalization,exports.useModifierSelection=o.useModifierSelection,exports.useModifiers=o.useModifiers,exports.useMultipleProductDetails=o.useMultipleProductDetails,exports.useOrganization=o.useOrganization,exports.useProductDetails=o.useProductDetails;
|
package/storefront.mjs
CHANGED
|
@@ -1,2 +1,86 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
import { H as o, l as e, m as r, av as t, K as i, i as n, j as d, f as m, h as u, C, n as l, a0 as p, an as g, ao as c, ap as P, aq as I, ar as D, a1 as f, a4 as v, a5 as M, a2 as h, a6 as S, a3 as B, a8 as T, a7 as A, T as G, k as b, a9 as w, aa as x, ab as y, ac as L, ad as R, ae as k, af as F, ag as O, ax as V, R as q, X as z, N as E, $ as H, Z as j, O as N, o as Q, M as U, p as J, r as K, q as W, P as X, ah as Y, ai as Z, aj as _, ak as $, al as aa, Q as sa, as as oa, at as ea, au as ra, U as ta, S as ia, G as na, am as da, V as ma, W as ua, Y as Ca, aw as la, L as pa, x as ga, B as ca, y as Pa, _ as Ia, z as Da, F as fa, D as va, I as Ma, d as ha, u as Sa, w as Ba, v as Ta, e as Aa, t as Ga, J as ba, s as wa } from "./admin-client.js";
|
|
3
|
+
export {
|
|
4
|
+
o as APIProvider,
|
|
5
|
+
e as AccountHomePage,
|
|
6
|
+
r as AccountPages,
|
|
7
|
+
t as Badge,
|
|
8
|
+
i as Button,
|
|
9
|
+
n as CartDrawer,
|
|
10
|
+
d as CartDrawerItem,
|
|
11
|
+
m as CartItems,
|
|
12
|
+
u as CartPanel,
|
|
13
|
+
C as CartProvider,
|
|
14
|
+
l as CheckoutPages,
|
|
15
|
+
p as Command,
|
|
16
|
+
g as CommandBar,
|
|
17
|
+
c as CommandBarBar,
|
|
18
|
+
P as CommandBarCommand,
|
|
19
|
+
I as CommandBarSeperator,
|
|
20
|
+
D as CommandBarValue,
|
|
21
|
+
f as CommandDialog,
|
|
22
|
+
v as CommandEmpty,
|
|
23
|
+
M as CommandGroup,
|
|
24
|
+
h as CommandInput,
|
|
25
|
+
S as CommandItem,
|
|
26
|
+
B as CommandList,
|
|
27
|
+
T as CommandSeparator,
|
|
28
|
+
A as CommandShortcut,
|
|
29
|
+
G as CountryInput,
|
|
30
|
+
b as CustomerDetailsPage,
|
|
31
|
+
w as Dialog,
|
|
32
|
+
x as DialogClose,
|
|
33
|
+
y as DialogContent,
|
|
34
|
+
L as DialogDescription,
|
|
35
|
+
R as DialogFooter,
|
|
36
|
+
k as DialogHeader,
|
|
37
|
+
F as DialogTitle,
|
|
38
|
+
O as DialogTrigger,
|
|
39
|
+
V as Divider,
|
|
40
|
+
q as EmailInput,
|
|
41
|
+
z as ImageUploadInput,
|
|
42
|
+
E as Input,
|
|
43
|
+
H as InputGroup,
|
|
44
|
+
j as Label,
|
|
45
|
+
N as LocationInput,
|
|
46
|
+
Q as ModifierContainer,
|
|
47
|
+
U as ModifiersDialog,
|
|
48
|
+
J as ModifiersGroup,
|
|
49
|
+
K as ModifiersModal,
|
|
50
|
+
W as ModifiersOption,
|
|
51
|
+
X as PhoneNumberInput,
|
|
52
|
+
Y as Popover,
|
|
53
|
+
Z as PopoverAnchor,
|
|
54
|
+
_ as PopoverClose,
|
|
55
|
+
$ as PopoverContent,
|
|
56
|
+
aa as PopoverTrigger,
|
|
57
|
+
sa as QuantityControl,
|
|
58
|
+
oa as RadioCardGroup,
|
|
59
|
+
ea as RadioCardGroupIndicator,
|
|
60
|
+
ra as RadioCardItem,
|
|
61
|
+
ta as SelectInput,
|
|
62
|
+
ia as ShippingAndPaymentPage,
|
|
63
|
+
na as ShophostProvider,
|
|
64
|
+
da as SliderOver,
|
|
65
|
+
ma as Switch,
|
|
66
|
+
ua as TextInput,
|
|
67
|
+
Ca as TimeInput,
|
|
68
|
+
la as badgeVariants,
|
|
69
|
+
pa as buttonVariants,
|
|
70
|
+
ga as calculateCartTotal,
|
|
71
|
+
ca as findCartItem,
|
|
72
|
+
Pa as formatPrice,
|
|
73
|
+
Ia as getFieldError,
|
|
74
|
+
Da as getFormattedModifiers,
|
|
75
|
+
fa as mockProducts,
|
|
76
|
+
va as productRequiresModifiers,
|
|
77
|
+
Ma as useAPI,
|
|
78
|
+
ha as useCart,
|
|
79
|
+
Sa as useCartContext,
|
|
80
|
+
Ba as useLocalization,
|
|
81
|
+
Ta as useModifierSelection,
|
|
82
|
+
Aa as useModifiers,
|
|
83
|
+
Ga as useMultipleProductDetails,
|
|
84
|
+
ba as useOrganization,
|
|
85
|
+
wa as useProductDetails
|
|
86
|
+
};
|