@shophost/react 2.0.67 → 2.0.68
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 +3268 -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/storefront.cjs +1 -1
- package/storefront.mjs +85 -1
package/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./admin-client.cjs");function i(t){return{basePath:"/admin",...t}}exports.AdminProvider=e.AdminProvider,exports.createAdminAuthClient=e.createAdminAuthClient,exports.createRoutes=e.createRoutes,exports.getAdminAuthClient=e.getAdminAuthClient,exports.defineConfig=i;
|
package/index.mjs
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { A as i, c as r, b as o, g as s } from "./admin-client.js";
|
|
2
|
+
function t(e) {
|
|
3
|
+
return { basePath: "/admin", ...e };
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
i as AdminProvider,
|
|
7
|
+
r as createAdminAuthClient,
|
|
8
|
+
o as createRoutes,
|
|
9
|
+
t as defineConfig,
|
|
10
|
+
s as getAdminAuthClient
|
|
11
|
+
};
|
package/index.react-server.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(i){return{basePath:"/admin",...i}}function r(i){const e=i.replace(/\/$/,"");return{home:e,signIn:`${e}/auth/sign-in`,signUp:`${e}/auth/sign-up`,organizations:`${e}/organizations`,dashboard:t=>`${e}/${t}/dashboard`,liveOrders:t=>`${e}/${t}/live-orders`,orders:t=>`${e}/${t}/orders`,reservations:t=>`${e}/${t}/reservations`,customers:t=>`${e}/${t}/customers`,customerDetail:(t,s)=>`${e}/${t}/customers/${s}`,products:t=>`${e}/${t}/products`,productCreate:t=>`${e}/${t}/products/create`,productEdit:(t,s)=>`${e}/${t}/products/${s}`,productCategories:t=>`${e}/${t}/product-categories`,productCategoryCreate:t=>`${e}/${t}/product-categories/create`,productCategoryEdit:(t,s)=>`${e}/${t}/product-categories/${s}`,manufacturers:t=>`${e}/${t}/manufacturers`,manufacturerCreate:t=>`${e}/${t}/manufacturers/create`,manufacturerEdit:(t,s)=>`${e}/${t}/manufacturers/${s}`,settings:t=>`${e}/${t}/settings`,settingsIntegrations:t=>`${e}/${t}/settings/integrations`,settingsIntegrationsCreate:t=>`${e}/${t}/settings/integrations/create`,settingsIntegration:(t,s)=>`${e}/${t}/settings/integrations/${s}`,settingsOpeningTimes:t=>`${e}/${t}/settings/opening-times`,settingsShippingMethods:t=>`${e}/${t}/settings/shipping-methods`,settingsShippingMethodCreate:t=>`${e}/${t}/settings/shipping-methods/create`,settingsShippingMethodEdit:(t,s)=>`${e}/${t}/settings/shipping-methods/${s}`,settingsAccess:t=>`${e}/${t}/settings/access`,settingsAccessInvite:t=>`${e}/${t}/settings/access/invite`,settingsAccessMemberEdit:(t,s)=>`${e}/${t}/settings/access/${s}`}}exports.createRoutes=r,exports.defineConfig=n;
|
package/index.react-server.mjs
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
function
|
|
1
|
+
function n(i) {
|
|
2
|
+
return { basePath: "/admin", ...i };
|
|
3
|
+
}
|
|
4
|
+
function r(i) {
|
|
5
|
+
const e = i.replace(/\/$/, "");
|
|
6
|
+
return { home: e, signIn: `${e}/auth/sign-in`, signUp: `${e}/auth/sign-up`, organizations: `${e}/organizations`, dashboard: (t) => `${e}/${t}/dashboard`, liveOrders: (t) => `${e}/${t}/live-orders`, orders: (t) => `${e}/${t}/orders`, reservations: (t) => `${e}/${t}/reservations`, customers: (t) => `${e}/${t}/customers`, customerDetail: (t, s) => `${e}/${t}/customers/${s}`, products: (t) => `${e}/${t}/products`, productCreate: (t) => `${e}/${t}/products/create`, productEdit: (t, s) => `${e}/${t}/products/${s}`, productCategories: (t) => `${e}/${t}/product-categories`, productCategoryCreate: (t) => `${e}/${t}/product-categories/create`, productCategoryEdit: (t, s) => `${e}/${t}/product-categories/${s}`, manufacturers: (t) => `${e}/${t}/manufacturers`, manufacturerCreate: (t) => `${e}/${t}/manufacturers/create`, manufacturerEdit: (t, s) => `${e}/${t}/manufacturers/${s}`, settings: (t) => `${e}/${t}/settings`, settingsIntegrations: (t) => `${e}/${t}/settings/integrations`, settingsIntegrationsCreate: (t) => `${e}/${t}/settings/integrations/create`, settingsIntegration: (t, s) => `${e}/${t}/settings/integrations/${s}`, settingsOpeningTimes: (t) => `${e}/${t}/settings/opening-times`, settingsShippingMethods: (t) => `${e}/${t}/settings/shipping-methods`, settingsShippingMethodCreate: (t) => `${e}/${t}/settings/shipping-methods/create`, settingsShippingMethodEdit: (t, s) => `${e}/${t}/settings/shipping-methods/${s}`, settingsAccess: (t) => `${e}/${t}/settings/access`, settingsAccessInvite: (t) => `${e}/${t}/settings/access/invite`, settingsAccessMemberEdit: (t, s) => `${e}/${t}/settings/access/${s}` };
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
r as createRoutes,
|
|
10
|
+
n as defineConfig
|
|
11
|
+
};
|
package/next/server.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),a=require("../admin-client.cjs");async function i({config:e,params:t}){const{segments:n=[]}=await t;return r.jsx(a.AdminProvider,{config:e,children:r.jsx(a.AdminRouter,{segments:n})})}function o(e,t){var n;return{title:(n=e.branding)!=null&&n.name?`${e.branding.name} Admin`:"Admin",robots:{index:!1,follow:!1},...e.metadata,...t}}exports.NotFoundPage=a.ErrorView,exports.RootPage=i,exports.generatePageMetadata=o;
|
package/next/server.mjs
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { A as e, a as r } from "../admin-client.js";
|
|
3
|
+
import { E as c } from "../admin-client.js";
|
|
4
|
+
async function m({ config: a, params: t }) {
|
|
5
|
+
const { segments: n = [] } = await t;
|
|
6
|
+
return o(e, { config: a, children: o(r, { segments: n }) });
|
|
7
|
+
}
|
|
8
|
+
function d(a, t) {
|
|
9
|
+
var n;
|
|
10
|
+
return { title: (n = a.branding) != null && n.name ? `${a.branding.name} Admin` : "Admin", robots: { index: !1, follow: !1 }, ...a.metadata, ...t };
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
c as NotFoundPage,
|
|
14
|
+
m as RootPage,
|
|
15
|
+
d as generatePageMetadata
|
|
16
|
+
};
|
package/next/views.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../admin-client.cjs");exports.NotFoundPage=e.ErrorView;
|
package/next/views.mjs
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
import { E as e } from "../admin-client.js";
|
|
3
|
+
export {
|
|
4
|
+
e as NotFoundPage
|
|
5
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shophost/react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.68",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"module": "./index.mjs",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
"@react-aria/datepicker": "^3.16.1",
|
|
83
83
|
"@react-stately/datepicker": "^3.16.1",
|
|
84
84
|
"@remixicon/react": "^4.6.0",
|
|
85
|
-
"@shophost/client": "^2.0.
|
|
86
|
-
"@shophost/rest-api": "^2.0.
|
|
85
|
+
"@shophost/client": "^2.0.68",
|
|
86
|
+
"@shophost/rest-api": "^2.0.68",
|
|
87
87
|
"@tanstack/react-query": "^5.67.2",
|
|
88
88
|
"@tanstack/react-table": "^8.21.3",
|
|
89
89
|
"@vercel/blob": "^0.27.2",
|
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
|
+
};
|