@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
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.69",
|
|
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.69",
|
|
86
|
+
"@shophost/rest-api": "^2.0.69",
|
|
87
87
|
"@tanstack/react-query": "^5.67.2",
|
|
88
88
|
"@tanstack/react-table": "^8.21.3",
|
|
89
89
|
"@vercel/blob": "^0.27.2",
|