@fluid-app/portal-sdk 0.1.35 → 0.1.37
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/{ContactsScreen-eDQWCAQK.mjs → ContactsScreen-C9kEFGyO.mjs} +4 -4
- package/dist/{ContactsScreen-eDQWCAQK.mjs.map → ContactsScreen-C9kEFGyO.mjs.map} +1 -1
- package/dist/{ContactsScreen-BZSNw0uV.cjs → ContactsScreen-CSRNNY-u.cjs} +4 -4
- package/dist/{ContactsScreen-BZSNw0uV.cjs.map → ContactsScreen-CSRNNY-u.cjs.map} +1 -1
- package/dist/{ContactsScreen-XI4f7ix6.cjs → ContactsScreen-CYYOSb1o.cjs} +3 -3
- package/dist/{FluidProvider-BXxRdatZ.cjs → FluidProvider-D2VHDQOl.cjs} +23 -1
- package/dist/{FluidProvider-BXxRdatZ.cjs.map → FluidProvider-D2VHDQOl.cjs.map} +1 -1
- package/dist/{FluidProvider-CWC6LA9W.mjs → FluidProvider-S05cIFwO.mjs} +23 -1
- package/dist/FluidProvider-S05cIFwO.mjs.map +1 -0
- package/dist/{MessagingScreen-Df6yRSZ5.mjs → MessagingScreen-B5FFX0rk.mjs} +4 -4
- package/dist/{MessagingScreen-Df6yRSZ5.mjs.map → MessagingScreen-B5FFX0rk.mjs.map} +1 -1
- package/dist/{MessagingScreen-onjDz5S1.cjs → MessagingScreen-BVoTHaZo.cjs} +4 -4
- package/dist/{MessagingScreen-onjDz5S1.cjs.map → MessagingScreen-BVoTHaZo.cjs.map} +1 -1
- package/dist/{MessagingScreen-Dp3t7kpp.cjs → MessagingScreen-CbtZhxMa.cjs} +2 -2
- package/dist/{MessagingScreen-CXA3RIlu2.mjs → MessagingScreen-oclISkI22.mjs} +2 -2
- package/dist/{OrdersScreen-DTF-zAqR.mjs → OrdersScreen-C3U5o8Ix.mjs} +4 -4
- package/dist/{OrdersScreen-DTF-zAqR.mjs.map → OrdersScreen-C3U5o8Ix.mjs.map} +1 -1
- package/dist/{OrdersScreen-BeUKNA_f.cjs → OrdersScreen-CGUvJ3rO.cjs} +4 -4
- package/dist/{OrdersScreen-BeUKNA_f.cjs.map → OrdersScreen-CGUvJ3rO.cjs.map} +1 -1
- package/dist/{OrdersScreen-DJFlTTTO.cjs → OrdersScreen-D5ljtaRm.cjs} +3 -3
- package/dist/{ProductsScreen-CtGow3-U.mjs → ProductsScreen-BfPljupU.mjs} +4 -4
- package/dist/{ProductsScreen-CtGow3-U.mjs.map → ProductsScreen-BfPljupU.mjs.map} +1 -1
- package/dist/{ProductsScreen-UgEr2Y6M.cjs → ProductsScreen-CCrZS-7j.cjs} +3 -3
- package/dist/{ProductsScreen-CzbRJMF4.cjs → ProductsScreen-D3ySzLOk.cjs} +4 -4
- package/dist/{ProductsScreen-CzbRJMF4.cjs.map → ProductsScreen-D3ySzLOk.cjs.map} +1 -1
- package/dist/{ProductsScreen-CNz_p26B.mjs → ProductsScreen-DSmPPJfw.mjs} +3 -3
- package/dist/{ProfileScreen-DCFj7ETG.mjs → ProfileScreen-BFzPOFB1.mjs} +4 -4
- package/dist/{ProfileScreen-DCFj7ETG.mjs.map → ProfileScreen-BFzPOFB1.mjs.map} +1 -1
- package/dist/{ProfileScreen-CNOAZaoe.cjs → ProfileScreen-CqUT2-XX.cjs} +2 -2
- package/dist/{ProfileScreen-CzARNtFJ.cjs → ProfileScreen-T9Exf2DR.cjs} +4 -4
- package/dist/{ProfileScreen-CzARNtFJ.cjs.map → ProfileScreen-T9Exf2DR.cjs.map} +1 -1
- package/dist/{ShareablesScreen-w3DGRfIr.mjs → ShareablesScreen-Ce-wWJPW.mjs} +4 -4
- package/dist/{ShareablesScreen-w3DGRfIr.mjs.map → ShareablesScreen-Ce-wWJPW.mjs.map} +1 -1
- package/dist/{ShareablesScreen-Dofp37E4.mjs → ShareablesScreen-CjjnN7JR.mjs} +3 -3
- package/dist/{ShareablesScreen-cpwboVjB.cjs → ShareablesScreen-CoAe2YQx.cjs} +3 -3
- package/dist/{ShareablesScreen-DSJ7x0Ww.cjs → ShareablesScreen-TqfgVJm_.cjs} +4 -4
- package/dist/{ShareablesScreen-DSJ7x0Ww.cjs.map → ShareablesScreen-TqfgVJm_.cjs.map} +1 -1
- package/dist/{ShopScreen-vbGhD5GJ.cjs → ShopScreen-7G98Kb3F.cjs} +2 -2
- package/dist/{ShopScreen-ByjnSNho.cjs → ShopScreen-Cyq4ebDX.cjs} +4 -4
- package/dist/{ShopScreen-ByjnSNho.cjs.map → ShopScreen-Cyq4ebDX.cjs.map} +1 -1
- package/dist/{ShopScreen-BlyzHYeU.mjs → ShopScreen-DP4SvMCy.mjs} +4 -4
- package/dist/{ShopScreen-BlyzHYeU.mjs.map → ShopScreen-DP4SvMCy.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-BNjDelpe.cjs → SubscriptionsScreen-DMySArYf.cjs} +3 -3
- package/dist/{SubscriptionsScreen-DawiAb7q.cjs → SubscriptionsScreen-DvcrZaiR.cjs} +5 -5
- package/dist/SubscriptionsScreen-DvcrZaiR.cjs.map +1 -0
- package/dist/{SubscriptionsScreen-tUrUZ3VC.mjs → SubscriptionsScreen-PX_Ygilp.mjs} +5 -5
- package/dist/SubscriptionsScreen-PX_Ygilp.mjs.map +1 -0
- package/dist/index.cjs +30 -30
- package/dist/index.d.mts +1 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +30 -30
- package/dist/{products-CBjo08FD.mjs → products--saBmlZw.mjs} +2 -2
- package/dist/{products-CBjo08FD.mjs.map → products--saBmlZw.mjs.map} +1 -1
- package/dist/{products-Q7fqnjYK.cjs → products-B-qICtJG.cjs} +2 -2
- package/dist/{products-Q7fqnjYK.cjs.map → products-B-qICtJG.cjs.map} +1 -1
- package/dist/{src-CsjWsZwA.cjs → src-BKkLa2oq.cjs} +4 -4
- package/dist/{src-CsjWsZwA.cjs.map → src-BKkLa2oq.cjs.map} +1 -1
- package/dist/{src-rgyT4GpO.mjs → src-CECPMmmx.mjs} +4 -4
- package/dist/{src-rgyT4GpO.mjs.map → src-CECPMmmx.mjs.map} +1 -1
- package/dist/{src-C2NjWMLg.mjs → src-CHFa-f0Q.mjs} +354 -342
- package/dist/src-CHFa-f0Q.mjs.map +1 -0
- package/dist/{src-B7JarYAL.cjs → src-DvDLW4sK.cjs} +353 -341
- package/dist/src-DvDLW4sK.cjs.map +1 -0
- package/dist/{use-account-clients-DAQe3cFz.mjs → use-account-clients-7RWjXPNu.mjs} +2 -2
- package/dist/{use-account-clients-DAQe3cFz.mjs.map → use-account-clients-7RWjXPNu.mjs.map} +1 -1
- package/dist/{use-account-clients-T32HqoLD.cjs → use-account-clients-YWHavlX7.cjs} +2 -2
- package/dist/{use-account-clients-T32HqoLD.cjs.map → use-account-clients-YWHavlX7.cjs.map} +1 -1
- package/dist/{use-customer-account-C1oG0PQ5.cjs → use-customer-account-BO2vTl2o.cjs} +2 -2
- package/dist/{use-customer-account-C1oG0PQ5.cjs.map → use-customer-account-BO2vTl2o.cjs.map} +1 -1
- package/dist/{use-customer-account-BV3IWOWw.mjs → use-customer-account-hnWIJ0oS.mjs} +2 -2
- package/dist/{use-customer-account-BV3IWOWw.mjs.map → use-customer-account-hnWIJ0oS.mjs.map} +1 -1
- package/dist/{use-fluid-api-CQIVrQCO.mjs → use-fluid-api-D8iCEtbP.mjs} +2 -2
- package/dist/{use-fluid-api-CQIVrQCO.mjs.map → use-fluid-api-D8iCEtbP.mjs.map} +1 -1
- package/dist/{use-fluid-api-B27mJ8gv.cjs → use-fluid-api-haPhtgOR.cjs} +2 -2
- package/dist/{use-fluid-api-B27mJ8gv.cjs.map → use-fluid-api-haPhtgOR.cjs.map} +1 -1
- package/package.json +10 -10
- package/dist/FluidProvider-CWC6LA9W.mjs.map +0 -1
- package/dist/SubscriptionsScreen-DawiAb7q.cjs.map +0 -1
- package/dist/SubscriptionsScreen-tUrUZ3VC.mjs.map +0 -1
- package/dist/src-B7JarYAL.cjs.map +0 -1
- package/dist/src-C2NjWMLg.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as extractTokenFromUrl, A as DEFAULT_FONT_SIZES, B as mergeDarkOverrides, C as buildThemeDefinition, D as serialiseTheme, E as deserialiseTheme, F as getDefaultThemeDefinition, G as RADIUS_KEYS, H as resolveTheme, I as generateThemeCSS, J as DEFAULT_AUTH_URL, K as SEMANTIC_COLOR_NAMES, L as deriveDarkVariant, M as DEFAULT_SPACING, N as DEFAULT_THEME_ID, O as DEFAULT_COLORS, P as DEFAULT_THEME_NAME, Q as extractCompanyTokenFromUrl, R as generateShades, S as removeTheme, T as transformThemes, U as FONT_FAMILY_KEYS, V as parseColor, W as FONT_SIZE_KEYS, X as cleanTokenFromUrl, Y as createDefaultAuthRedirect, Z as extractAllTokensFromUrl, _ as toNavigationItem, a as createScreen, at as decodeToken, b as applyTheme, c as useDataSourceRegistryConfig, ct as isTokenExpired, d as FluidThemeProvider, dt as AUTH_CONSTANTS, et as hasTokenInUrl, f as useThemeContext, ft as STORAGE_KEYS, g as transformManifestToRepAppData, h as isApiError, ht as isUserType, i as widgetPropertySchemas, it as storeToken, j as DEFAULT_RADII, k as DEFAULT_FONT_FAMILIES, l as FluidAuthProvider, lt as isValidToken, m as createFluidClient, mt as USER_TYPES, n as useFluidContext, nt as getStoredToken, o as createWidgetFromShareable, ot as getTokenExpiration, p as ApiError, pt as URL_PARAMS, q as SHADE_STEPS, r as DEFAULT_SDK_WIDGET_REGISTRY, rt as hasStoredToken, s as createWidgetRegistry, st as getTokenTimeRemaining, t as FluidProvider, tt as clearTokens, u as useFluidAuthContext, ut as validateToken, v as normalizeComponentTree, w as getActiveThemeId, x as removeAllThemes, y as toScreenDefinition, z as getForegroundColor } from "./FluidProvider-
|
|
1
|
+
import { $ as extractTokenFromUrl, A as DEFAULT_FONT_SIZES, B as mergeDarkOverrides, C as buildThemeDefinition, D as serialiseTheme, E as deserialiseTheme, F as getDefaultThemeDefinition, G as RADIUS_KEYS, H as resolveTheme, I as generateThemeCSS, J as DEFAULT_AUTH_URL, K as SEMANTIC_COLOR_NAMES, L as deriveDarkVariant, M as DEFAULT_SPACING, N as DEFAULT_THEME_ID, O as DEFAULT_COLORS, P as DEFAULT_THEME_NAME, Q as extractCompanyTokenFromUrl, R as generateShades, S as removeTheme, T as transformThemes, U as FONT_FAMILY_KEYS, V as parseColor, W as FONT_SIZE_KEYS, X as cleanTokenFromUrl, Y as createDefaultAuthRedirect, Z as extractAllTokensFromUrl, _ as toNavigationItem, a as createScreen, at as decodeToken, b as applyTheme, c as useDataSourceRegistryConfig, ct as isTokenExpired, d as FluidThemeProvider, dt as AUTH_CONSTANTS, et as hasTokenInUrl, f as useThemeContext, ft as STORAGE_KEYS, g as transformManifestToRepAppData, h as isApiError, ht as isUserType, i as widgetPropertySchemas, it as storeToken, j as DEFAULT_RADII, k as DEFAULT_FONT_FAMILIES, l as FluidAuthProvider, lt as isValidToken, m as createFluidClient, mt as USER_TYPES, n as useFluidContext, nt as getStoredToken, o as createWidgetFromShareable, ot as getTokenExpiration, p as ApiError, pt as URL_PARAMS, q as SHADE_STEPS, r as DEFAULT_SDK_WIDGET_REGISTRY, rt as hasStoredToken, s as createWidgetRegistry, st as getTokenTimeRemaining, t as FluidProvider, tt as clearTokens, u as useFluidAuthContext, ut as validateToken, v as normalizeComponentTree, w as getActiveThemeId, x as removeAllThemes, y as toScreenDefinition, z as getForegroundColor } from "./FluidProvider-S05cIFwO.mjs";
|
|
2
2
|
import "./error-state-ChXg5_p-.mjs";
|
|
3
3
|
import { a as sectionLayoutConfig, c as assertNever, f as useRegistry, i as groupChildrenByColumn, l as isWidgetType, o as WIDGET_TYPE_NAMES, r as layoutWidgetPropertySchema, s as assertDefined, t as LayoutWidget, u as isWidgetTypeName } from "./LayoutWidget-Dc_wvaLg.mjs";
|
|
4
4
|
import "./WidgetInteractionContext-MZuUseep.mjs";
|
|
@@ -9,7 +9,7 @@ import { r as alertWidgetPropertySchema, t as AlertWidget } from "./AlertWidget-
|
|
|
9
9
|
import { r as calendarWidgetPropertySchema, t as CalendarWidget } from "./CalendarWidget-7ZL9lHKT.mjs";
|
|
10
10
|
import "./purify.es-CS-U7fYi.mjs";
|
|
11
11
|
import "./src-S_xL86wk.mjs";
|
|
12
|
-
import { a as useMessagingAuth, i as useMessagingConfig, n as messagingScreenPropertySchema, r as createFluidFileUploader, t as MessagingScreen } from "./MessagingScreen-
|
|
12
|
+
import { a as useMessagingAuth, i as useMessagingConfig, n as messagingScreenPropertySchema, r as createFluidFileUploader, t as MessagingScreen } from "./MessagingScreen-B5FFX0rk.mjs";
|
|
13
13
|
import "./scroll-arrows-DqQW_zzf.mjs";
|
|
14
14
|
import "./MediaRenderer-DIlOQCjD.mjs";
|
|
15
15
|
import { r as carouselWidgetPropertySchema, t as CarouselWidget } from "./CarouselWidget-DTGGZmiN.mjs";
|
|
@@ -27,21 +27,21 @@ import { r as spacerWidgetPropertySchema, t as SpacerWidget } from "./SpacerWidg
|
|
|
27
27
|
import { r as tableWidgetPropertySchema, t as TableWidget } from "./TableWidget-DCiqxLv5.mjs";
|
|
28
28
|
import { r as toDoWidgetPropertySchema, t as ToDoWidget } from "./ToDoWidget-CmJIUKr0.mjs";
|
|
29
29
|
import { r as videoWidgetPropertySchema, t as VideoWidget } from "./VideoWidget-D6aWKmRN.mjs";
|
|
30
|
-
import { t as useFluidApi } from "./use-fluid-api-
|
|
31
|
-
import { i as useCurrentUser, r as CURRENT_USER_QUERY_KEY } from "./products
|
|
32
|
-
import { o as useFluidAuth } from "./use-account-clients-
|
|
33
|
-
import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-
|
|
34
|
-
import "./src-
|
|
35
|
-
import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-
|
|
30
|
+
import { t as useFluidApi } from "./use-fluid-api-D8iCEtbP.mjs";
|
|
31
|
+
import { i as useCurrentUser, r as CURRENT_USER_QUERY_KEY } from "./products--saBmlZw.mjs";
|
|
32
|
+
import { o as useFluidAuth } from "./use-account-clients-7RWjXPNu.mjs";
|
|
33
|
+
import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-BFzPOFB1.mjs";
|
|
34
|
+
import "./src-CHFa-f0Q.mjs";
|
|
35
|
+
import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-PX_Ygilp.mjs";
|
|
36
36
|
import "./es-BPF1dsEO.mjs";
|
|
37
|
-
import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-
|
|
37
|
+
import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-C9kEFGyO.mjs";
|
|
38
38
|
import { n as useAppNavigation, t as AppNavigationProvider } from "./AppNavigationContext-CcRZ_LqM.mjs";
|
|
39
|
-
import { r as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-
|
|
39
|
+
import { r as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-C3U5o8Ix.mjs";
|
|
40
40
|
import { i as CoreScreenPlaceholder, r as customersScreenPropertySchema, t as CustomersScreen } from "./CustomersScreen-DiXO5M5q.mjs";
|
|
41
|
-
import "./src-
|
|
42
|
-
import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-
|
|
43
|
-
import { n as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-
|
|
44
|
-
import { n as productsScreenPropertySchema, t as ProductsScreen } from "./ProductsScreen-
|
|
41
|
+
import "./src-CECPMmmx.mjs";
|
|
42
|
+
import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-DP4SvMCy.mjs";
|
|
43
|
+
import { n as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-Ce-wWJPW.mjs";
|
|
44
|
+
import { n as productsScreenPropertySchema, t as ProductsScreen } from "./ProductsScreen-BfPljupU.mjs";
|
|
45
45
|
import * as React$1 from "react";
|
|
46
46
|
import { Suspense, createContext, forwardRef, lazy, memo, useCallback, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
47
47
|
import { useQueries, useQuery } from "@tanstack/react-query";
|
|
@@ -2030,15 +2030,15 @@ function RequireAuth({ children, fallback = /* @__PURE__ */ jsx(AuthLoading, {})
|
|
|
2030
2030
|
//#endregion
|
|
2031
2031
|
//#region src/screens/index.ts
|
|
2032
2032
|
const screenPropertySchemas = {
|
|
2033
|
-
ProfileScreen: () => import("./ProfileScreen-
|
|
2034
|
-
MessagingScreen: () => import("./MessagingScreen-
|
|
2035
|
-
ContactsScreen: () => import("./ContactsScreen-
|
|
2036
|
-
OrdersScreen: () => import("./OrdersScreen-
|
|
2037
|
-
SubscriptionsScreen: () => import("./SubscriptionsScreen-
|
|
2033
|
+
ProfileScreen: () => import("./ProfileScreen-BFzPOFB1.mjs").then((n) => n.n).then((m) => m.profileScreenPropertySchema),
|
|
2034
|
+
MessagingScreen: () => import("./MessagingScreen-oclISkI22.mjs").then((m) => m.messagingScreenPropertySchema),
|
|
2035
|
+
ContactsScreen: () => import("./ContactsScreen-C9kEFGyO.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
|
|
2036
|
+
OrdersScreen: () => import("./OrdersScreen-C3U5o8Ix.mjs").then((n) => n.n).then((m) => m.ordersScreenPropertySchema),
|
|
2037
|
+
SubscriptionsScreen: () => import("./SubscriptionsScreen-PX_Ygilp.mjs").then((n) => n.n).then((m) => m.subscriptionsScreenPropertySchema),
|
|
2038
2038
|
CustomersScreen: () => import("./CustomersScreen-DiXO5M5q.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
|
|
2039
|
-
ProductsScreen: () => import("./ProductsScreen-
|
|
2040
|
-
ShareablesScreen: () => import("./ShareablesScreen-
|
|
2041
|
-
ShopScreen: () => import("./ShopScreen-
|
|
2039
|
+
ProductsScreen: () => import("./ProductsScreen-DSmPPJfw.mjs").then((m) => m.productsScreenPropertySchema),
|
|
2040
|
+
ShareablesScreen: () => import("./ShareablesScreen-CjjnN7JR.mjs").then((m) => m.shareablesScreenPropertySchema),
|
|
2041
|
+
ShopScreen: () => import("./ShopScreen-DP4SvMCy.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema)
|
|
2042
2042
|
};
|
|
2043
2043
|
/**
|
|
2044
2044
|
* Core page template IDs
|
|
@@ -3554,15 +3554,15 @@ function AccountManageLayout({ children }) {
|
|
|
3554
3554
|
}
|
|
3555
3555
|
//#endregion
|
|
3556
3556
|
//#region src/shell/PageRouter.tsx
|
|
3557
|
-
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-
|
|
3558
|
-
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-
|
|
3559
|
-
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-
|
|
3560
|
-
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-
|
|
3561
|
-
const ContactsScreen$1 = lazy(() => import("./ContactsScreen-
|
|
3562
|
-
const ShopScreen$1 = lazy(() => import("./ShopScreen-
|
|
3557
|
+
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-BFzPOFB1.mjs").then((n) => n.n).then((m) => ({ default: m.ProfileScreen })));
|
|
3558
|
+
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-C3U5o8Ix.mjs").then((n) => n.n).then((m) => ({ default: m.OrdersScreen })));
|
|
3559
|
+
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-PX_Ygilp.mjs").then((n) => n.n).then((m) => ({ default: m.SubscriptionsScreen })));
|
|
3560
|
+
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-oclISkI22.mjs").then((m) => ({ default: m.MessagingScreen })));
|
|
3561
|
+
const ContactsScreen$1 = lazy(() => import("./ContactsScreen-C9kEFGyO.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
|
|
3562
|
+
const ShopScreen$1 = lazy(() => import("./ShopScreen-DP4SvMCy.mjs").then((n) => n.n).then((m) => ({ default: m.ShopScreen })));
|
|
3563
3563
|
const CustomersScreen$1 = lazy(() => import("./CustomersScreen-DiXO5M5q.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
|
|
3564
|
-
const ProductsScreen$1 = lazy(() => import("./ProductsScreen-
|
|
3565
|
-
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-
|
|
3564
|
+
const ProductsScreen$1 = lazy(() => import("./ProductsScreen-DSmPPJfw.mjs").then((m) => ({ default: m.ProductsScreen })));
|
|
3565
|
+
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-CjjnN7JR.mjs").then((m) => ({ default: m.ShareablesScreen })));
|
|
3566
3566
|
const SYSTEM_SLUG_SCREEN_MAP = {
|
|
3567
3567
|
profile: ProfileScreen$1,
|
|
3568
3568
|
orders: OrdersScreen$1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as useFluidApi } from "./use-fluid-api-
|
|
1
|
+
import { t as useFluidApi } from "./use-fluid-api-D8iCEtbP.mjs";
|
|
2
2
|
import { useQuery } from "@tanstack/react-query";
|
|
3
3
|
//#region src/hooks/use-current-user.ts
|
|
4
4
|
/**
|
|
@@ -45,4 +45,4 @@ async function getProduct(client, id, options) {
|
|
|
45
45
|
//#endregion
|
|
46
46
|
export { useCurrentUser as i, listProducts as n, CURRENT_USER_QUERY_KEY as r, getProduct as t };
|
|
47
47
|
|
|
48
|
-
//# sourceMappingURL=products
|
|
48
|
+
//# sourceMappingURL=products--saBmlZw.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products
|
|
1
|
+
{"version":3,"file":"products--saBmlZw.mjs","names":[],"sources":["../src/hooks/use-current-user.ts","../../../products/api-client/src/namespaces/products.ts"],"sourcesContent":["import { useQuery, type UseQueryResult } from \"@tanstack/react-query\";\nimport { useFluidApi } from \"./use-fluid-api\";\nimport type { UserMe } from \"../types/rep\";\n\n/**\n * Query key for current user data\n */\nexport const CURRENT_USER_QUERY_KEY = [\"fluid\", \"currentUser\"] as const;\n\n/**\n * Hook to fetch the currently authenticated user's full profile.\n * Returns company, country, and other fields from GET /api/me.\n *\n * @example\n * ```tsx\n * function ShopPage() {\n * const { data: user, isLoading } = useCurrentUser();\n * const subdomain = user?.company?.subdomain;\n * const countryIso = user?.country?.iso ?? \"US\";\n * // ...\n * }\n * ```\n */\nexport function useCurrentUser(): UseQueryResult<UserMe> {\n const api = useFluidApi();\n\n return useQuery({\n queryKey: CURRENT_USER_QUERY_KEY,\n queryFn: () => api.users.me(),\n staleTime: 5 * 60 * 1000,\n });\n}\n","import type { FetchClient } from \"../lib/fetch-client\";\nimport type { products } from \"../custom/products\";\n\n// ============================================================================\n// Products - List & Get\n// ============================================================================\n\nexport async function listProducts(\n client: FetchClient,\n params?: products.ListProductsParams,\n): Promise<products.ProductsResponse> {\n const { sorting, ...rest } = params ?? {};\n return client.get(\"/company/v1/products\", {\n ...rest,\n ...(sorting && { order_by: [sorting.id, sorting.desc ? \"desc\" : \"asc\"] }),\n });\n}\n\nexport async function getProduct(\n client: FetchClient,\n id: string | number,\n options?: { lang?: string; country_code?: string },\n): Promise<products.ProductResponse> {\n return client.get(`/company/v1/products/${id}`, {\n ...(options?.lang && { lang: options.lang }),\n ...(options?.country_code && { country_code: options.country_code }),\n });\n}\n\nexport async function listProductsV2(\n client: FetchClient,\n params?: products.ListProductsV2Params,\n): Promise<products.ProductsV2Response> {\n const { sorting, ...rest } = params ?? {};\n return client.get(\"/v2025-06/products\", {\n ...rest,\n ...(sorting && { order_by: [sorting.id, sorting.desc ? \"desc\" : \"asc\"] }),\n });\n}\n\nexport async function searchProducts(\n client: FetchClient,\n searchTerm: string,\n countryCodes: readonly string[],\n): Promise<products.ProductsResponse> {\n const input: Record<string, unknown> = {\n limit: 100,\n };\n if (searchTerm) {\n input.search_query = searchTerm;\n }\n if (countryCodes && countryCodes.length > 0) {\n input.country_code = countryCodes;\n }\n return client.get(\"/company/v1/products\", input);\n}\n\n// ============================================================================\n// Products - Create, Delete, Duplicate\n// ============================================================================\n\nexport async function createProduct(\n client: FetchClient,\n product: products.CreateProduct,\n): Promise<products.ProductResponse> {\n return client.post(\"/company/v1/products\", { product });\n}\n\nexport async function deleteProduct(\n client: FetchClient,\n id: number,\n): Promise<products.DeleteProductResponse> {\n return client.delete(`/company/v1/products/${id}`);\n}\n\nexport async function duplicateProduct(\n client: FetchClient,\n id: number,\n): Promise<products.DuplicateProductResponse> {\n return client.post(`/company/v1/products/${id}/duplicate`);\n}\n\n// ============================================================================\n// Products - Status Changes\n// ============================================================================\n\nexport async function archiveProduct(\n client: FetchClient,\n product: { id: number; title: string },\n): Promise<products.ProductResponse> {\n return client.patch(`/company/v1/products/${product.id}`, {\n id: product.id.toString(),\n product: {\n title: product.title || \"\",\n status: \"archived\",\n },\n });\n}\n\nexport async function unarchiveProduct(\n client: FetchClient,\n product: { id: number; title: string },\n): Promise<products.ProductResponse> {\n return client.patch(`/company/v1/products/${product.id}`, {\n id: product.id.toString(),\n product: {\n title: product.title || \"\",\n status: \"active\",\n },\n });\n}\n\nexport async function draftProduct(\n client: FetchClient,\n product: { id: number; title: string },\n): Promise<products.ProductResponse> {\n return client.patch(`/company/v1/products/${product.id}`, {\n id: product.id.toString(),\n product: {\n title: product.title || \"\",\n status: \"draft\",\n },\n });\n}\n\nexport async function sendProductToTop(\n client: FetchClient,\n id: number,\n): Promise<products.SendToTopResponse> {\n return client.patch(`/company/v1/products/${id}/send_to_top`);\n}\n"],"mappings":";;;;;;AAOA,MAAa,yBAAyB,CAAC,SAAS,cAAc;;;;;;;;;;;;;;;AAgB9D,SAAgB,iBAAyC;CACvD,MAAM,MAAM,aAAa;AAEzB,QAAO,SAAS;EACd,UAAU;EACV,eAAe,IAAI,MAAM,IAAI;EAC7B,WAAW,MAAS;EACrB,CAAC;;;;ACvBJ,eAAsB,aACpB,QACA,QACoC;CACpC,MAAM,EAAE,SAAS,GAAG,SAAS,UAAU,EAAE;AACzC,QAAO,OAAO,IAAI,wBAAwB;EACxC,GAAG;EACH,GAAI,WAAW,EAAE,UAAU,CAAC,QAAQ,IAAI,QAAQ,OAAO,SAAS,MAAM,EAAE;EACzE,CAAC;;AAGJ,eAAsB,WACpB,QACA,IACA,SACmC;AACnC,QAAO,OAAO,IAAI,wBAAwB,MAAM;EAC9C,GAAI,SAAS,QAAQ,EAAE,MAAM,QAAQ,MAAM;EAC3C,GAAI,SAAS,gBAAgB,EAAE,cAAc,QAAQ,cAAc;EACpE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-9hOWP6kD.cjs");
|
|
2
|
-
const require_use_fluid_api = require("./use-fluid-api-
|
|
2
|
+
const require_use_fluid_api = require("./use-fluid-api-haPhtgOR.cjs");
|
|
3
3
|
let _tanstack_react_query = require("@tanstack/react-query");
|
|
4
4
|
//#region src/hooks/use-current-user.ts
|
|
5
5
|
/**
|
|
@@ -69,4 +69,4 @@ Object.defineProperty(exports, "useCurrentUser", {
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
-
//# sourceMappingURL=products-
|
|
72
|
+
//# sourceMappingURL=products-B-qICtJG.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products-
|
|
1
|
+
{"version":3,"file":"products-B-qICtJG.cjs","names":["useFluidApi"],"sources":["../src/hooks/use-current-user.ts","../../../products/api-client/src/namespaces/products.ts"],"sourcesContent":["import { useQuery, type UseQueryResult } from \"@tanstack/react-query\";\nimport { useFluidApi } from \"./use-fluid-api\";\nimport type { UserMe } from \"../types/rep\";\n\n/**\n * Query key for current user data\n */\nexport const CURRENT_USER_QUERY_KEY = [\"fluid\", \"currentUser\"] as const;\n\n/**\n * Hook to fetch the currently authenticated user's full profile.\n * Returns company, country, and other fields from GET /api/me.\n *\n * @example\n * ```tsx\n * function ShopPage() {\n * const { data: user, isLoading } = useCurrentUser();\n * const subdomain = user?.company?.subdomain;\n * const countryIso = user?.country?.iso ?? \"US\";\n * // ...\n * }\n * ```\n */\nexport function useCurrentUser(): UseQueryResult<UserMe> {\n const api = useFluidApi();\n\n return useQuery({\n queryKey: CURRENT_USER_QUERY_KEY,\n queryFn: () => api.users.me(),\n staleTime: 5 * 60 * 1000,\n });\n}\n","import type { FetchClient } from \"../lib/fetch-client\";\nimport type { products } from \"../custom/products\";\n\n// ============================================================================\n// Products - List & Get\n// ============================================================================\n\nexport async function listProducts(\n client: FetchClient,\n params?: products.ListProductsParams,\n): Promise<products.ProductsResponse> {\n const { sorting, ...rest } = params ?? {};\n return client.get(\"/company/v1/products\", {\n ...rest,\n ...(sorting && { order_by: [sorting.id, sorting.desc ? \"desc\" : \"asc\"] }),\n });\n}\n\nexport async function getProduct(\n client: FetchClient,\n id: string | number,\n options?: { lang?: string; country_code?: string },\n): Promise<products.ProductResponse> {\n return client.get(`/company/v1/products/${id}`, {\n ...(options?.lang && { lang: options.lang }),\n ...(options?.country_code && { country_code: options.country_code }),\n });\n}\n\nexport async function listProductsV2(\n client: FetchClient,\n params?: products.ListProductsV2Params,\n): Promise<products.ProductsV2Response> {\n const { sorting, ...rest } = params ?? {};\n return client.get(\"/v2025-06/products\", {\n ...rest,\n ...(sorting && { order_by: [sorting.id, sorting.desc ? \"desc\" : \"asc\"] }),\n });\n}\n\nexport async function searchProducts(\n client: FetchClient,\n searchTerm: string,\n countryCodes: readonly string[],\n): Promise<products.ProductsResponse> {\n const input: Record<string, unknown> = {\n limit: 100,\n };\n if (searchTerm) {\n input.search_query = searchTerm;\n }\n if (countryCodes && countryCodes.length > 0) {\n input.country_code = countryCodes;\n }\n return client.get(\"/company/v1/products\", input);\n}\n\n// ============================================================================\n// Products - Create, Delete, Duplicate\n// ============================================================================\n\nexport async function createProduct(\n client: FetchClient,\n product: products.CreateProduct,\n): Promise<products.ProductResponse> {\n return client.post(\"/company/v1/products\", { product });\n}\n\nexport async function deleteProduct(\n client: FetchClient,\n id: number,\n): Promise<products.DeleteProductResponse> {\n return client.delete(`/company/v1/products/${id}`);\n}\n\nexport async function duplicateProduct(\n client: FetchClient,\n id: number,\n): Promise<products.DuplicateProductResponse> {\n return client.post(`/company/v1/products/${id}/duplicate`);\n}\n\n// ============================================================================\n// Products - Status Changes\n// ============================================================================\n\nexport async function archiveProduct(\n client: FetchClient,\n product: { id: number; title: string },\n): Promise<products.ProductResponse> {\n return client.patch(`/company/v1/products/${product.id}`, {\n id: product.id.toString(),\n product: {\n title: product.title || \"\",\n status: \"archived\",\n },\n });\n}\n\nexport async function unarchiveProduct(\n client: FetchClient,\n product: { id: number; title: string },\n): Promise<products.ProductResponse> {\n return client.patch(`/company/v1/products/${product.id}`, {\n id: product.id.toString(),\n product: {\n title: product.title || \"\",\n status: \"active\",\n },\n });\n}\n\nexport async function draftProduct(\n client: FetchClient,\n product: { id: number; title: string },\n): Promise<products.ProductResponse> {\n return client.patch(`/company/v1/products/${product.id}`, {\n id: product.id.toString(),\n product: {\n title: product.title || \"\",\n status: \"draft\",\n },\n });\n}\n\nexport async function sendProductToTop(\n client: FetchClient,\n id: number,\n): Promise<products.SendToTopResponse> {\n return client.patch(`/company/v1/products/${id}/send_to_top`);\n}\n"],"mappings":";;;;;;;AAOA,MAAa,yBAAyB,CAAC,SAAS,cAAc;;;;;;;;;;;;;;;AAgB9D,SAAgB,iBAAyC;CACvD,MAAM,MAAMA,sBAAAA,aAAa;AAEzB,SAAA,GAAA,sBAAA,UAAgB;EACd,UAAU;EACV,eAAe,IAAI,MAAM,IAAI;EAC7B,WAAW,MAAS;EACrB,CAAC;;;;ACvBJ,eAAsB,aACpB,QACA,QACoC;CACpC,MAAM,EAAE,SAAS,GAAG,SAAS,UAAU,EAAE;AACzC,QAAO,OAAO,IAAI,wBAAwB;EACxC,GAAG;EACH,GAAI,WAAW,EAAE,UAAU,CAAC,QAAQ,IAAI,QAAQ,OAAO,SAAS,MAAM,EAAE;EACzE,CAAC;;AAGJ,eAAsB,WACpB,QACA,IACA,SACmC;AACnC,QAAO,OAAO,IAAI,wBAAwB,MAAM;EAC9C,GAAI,SAAS,QAAQ,EAAE,MAAM,QAAQ,MAAM;EAC3C,GAAI,SAAS,gBAAgB,EAAE,cAAc,QAAQ,cAAc;EACpE,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-9hOWP6kD.cjs");
|
|
2
2
|
const require_src = require("./src-bBQo2OdY.cjs");
|
|
3
|
-
const require_products = require("./products-
|
|
3
|
+
const require_products = require("./products-B-qICtJG.cjs");
|
|
4
4
|
const require_es = require("./es-DfGWLS4J.cjs");
|
|
5
5
|
let react = require("react");
|
|
6
6
|
react = require_chunk.__toESM(react);
|
|
7
7
|
let _tanstack_react_query = require("@tanstack/react-query");
|
|
8
|
+
let zod = require("zod");
|
|
9
|
+
zod = require_chunk.__toESM(zod);
|
|
8
10
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
11
|
let lucide_react = require("lucide-react");
|
|
10
12
|
let react_dom = require("react-dom");
|
|
11
|
-
let zod = require("zod");
|
|
12
|
-
zod = require_chunk.__toESM(zod);
|
|
13
13
|
//#region ../../shareables/core/src/context.tsx
|
|
14
14
|
const ShareablesCoreContext = (0, react.createContext)(null);
|
|
15
15
|
function ShareablesCoreProvider({ config, children }) {
|
|
@@ -7598,4 +7598,4 @@ Object.defineProperty(exports, "ShareablesUIProvider", {
|
|
|
7598
7598
|
}
|
|
7599
7599
|
});
|
|
7600
7600
|
|
|
7601
|
-
//# sourceMappingURL=src-
|
|
7601
|
+
//# sourceMappingURL=src-BKkLa2oq.cjs.map
|