@fluid-app/portal-sdk 0.1.101 → 0.1.102
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/{AppDownloadScreen-rO--O0pk.mjs → AppDownloadScreen-BUyo5t28.mjs} +2 -2
- package/dist/{AppDownloadScreen-rO--O0pk.mjs.map → AppDownloadScreen-BUyo5t28.mjs.map} +1 -1
- package/dist/{AppDownloadScreen-CwLZzr-7.cjs → AppDownloadScreen-D7TgBBNp.cjs} +2 -2
- package/dist/{AppDownloadScreen-BcK2snUL.cjs → AppDownloadScreen-DRXJupWZ.cjs} +2 -2
- package/dist/{AppDownloadScreen-BcK2snUL.cjs.map → AppDownloadScreen-DRXJupWZ.cjs.map} +1 -1
- package/dist/{ContactsScreen-D4WQ59ib.cjs → ContactsScreen-8yKH9Vmm.cjs} +2 -2
- package/dist/{ContactsScreen-BGwqGlpV.mjs → ContactsScreen-CHZ-SGpD.mjs} +2 -2
- package/dist/{ContactsScreen-BGwqGlpV.mjs.map → ContactsScreen-CHZ-SGpD.mjs.map} +1 -1
- package/dist/{ContactsScreen-CkSeaPyz.cjs → ContactsScreen-DXDkh7cU.cjs} +2 -2
- package/dist/{ContactsScreen-CkSeaPyz.cjs.map → ContactsScreen-DXDkh7cU.cjs.map} +1 -1
- package/dist/{FluidProvider-CWYquEIF.mjs → FluidProvider-BPFyPU7u.mjs} +81 -32
- package/dist/FluidProvider-BPFyPU7u.mjs.map +1 -0
- package/dist/{FluidProvider-CyzA2g75.cjs → FluidProvider-CUiOFaDp.cjs} +81 -32
- package/dist/FluidProvider-CUiOFaDp.cjs.map +1 -0
- package/dist/{MessagingScreen-Cgx3jwpr.cjs → MessagingScreen-CuVoDjwR.cjs} +4 -9
- package/dist/MessagingScreen-CuVoDjwR.cjs.map +1 -0
- package/dist/{MessagingScreen-DKigg2jz.mjs → MessagingScreen-D2GGSkix.mjs} +2 -2
- package/dist/{MessagingScreen-CGS7aG1A.cjs → MessagingScreen-V7ribzpo.cjs} +2 -2
- package/dist/{MessagingScreen-CBuI3fu6.mjs → MessagingScreen-pS-W5HIk.mjs} +4 -9
- package/dist/MessagingScreen-pS-W5HIk.mjs.map +1 -0
- package/dist/{MySiteScreen-Bvyx63pT.mjs → MySiteScreen-CSs9d6TQ.mjs} +2 -2
- package/dist/{MySiteScreen-Bvyx63pT.mjs.map → MySiteScreen-CSs9d6TQ.mjs.map} +1 -1
- package/dist/{MySiteScreen-BSFb-n7n.cjs → MySiteScreen-DjtoRz-f.cjs} +2 -2
- package/dist/{MySiteScreen-BSFb-n7n.cjs.map → MySiteScreen-DjtoRz-f.cjs.map} +1 -1
- package/dist/{MySiteScreen-2IzxVfpO.cjs → MySiteScreen-DtpHDP-m.cjs} +2 -2
- package/dist/{OrdersScreen-Djdeji9g.mjs → OrdersScreen-BUm_cDrS.mjs} +3 -3
- package/dist/{OrdersScreen-Djdeji9g.mjs.map → OrdersScreen-BUm_cDrS.mjs.map} +1 -1
- package/dist/{OrdersScreen-Bf4o3Kty.cjs → OrdersScreen-DNAtzcu5.cjs} +3 -3
- package/dist/{OrdersScreen-Bf4o3Kty.cjs.map → OrdersScreen-DNAtzcu5.cjs.map} +1 -1
- package/dist/{OrdersScreen-DCzYEgsP.cjs → OrdersScreen-NSLW9EyM.cjs} +2 -2
- package/dist/{ProductsScreen-PJ95OcSX.cjs → ProductsScreen-0K31iqTS.cjs} +4 -4
- package/dist/{ProductsScreen-PJ95OcSX.cjs.map → ProductsScreen-0K31iqTS.cjs.map} +1 -1
- package/dist/{ProductsScreen-DZiugPVb.mjs → ProductsScreen-CQlvW2cC.mjs} +3 -3
- package/dist/{ProductsScreen-DZnKtPBp.cjs → ProductsScreen-CSgVSuOa.cjs} +3 -3
- package/dist/{ProductsScreen-6J79mnIB.mjs → ProductsScreen-Cc5LjAOS.mjs} +4 -4
- package/dist/{ProductsScreen-6J79mnIB.mjs.map → ProductsScreen-Cc5LjAOS.mjs.map} +1 -1
- package/dist/{ProfileScreen-DtmReqa8.cjs → ProfileScreen-BRSE-yT7.cjs} +3 -3
- package/dist/{ProfileScreen-DtmReqa8.cjs.map → ProfileScreen-BRSE-yT7.cjs.map} +1 -1
- package/dist/{ProfileScreen-B46jd4Ic.cjs → ProfileScreen-CxLqoYTU.cjs} +2 -2
- package/dist/{ProfileScreen-CUsGRCB7.mjs → ProfileScreen-DXdLGjJE.mjs} +3 -3
- package/dist/{ProfileScreen-CUsGRCB7.mjs.map → ProfileScreen-DXdLGjJE.mjs.map} +1 -1
- package/dist/{ShareablesScreen-Cy7w85IH.mjs → ShareablesScreen-C3ZUhqHP.mjs} +5 -5
- package/dist/{ShareablesScreen-Cy7w85IH.mjs.map → ShareablesScreen-C3ZUhqHP.mjs.map} +1 -1
- package/dist/{ShareablesScreen-Dk5EQGMa.cjs → ShareablesScreen-TAJ2R5pG.cjs} +3 -3
- package/dist/{ShareablesScreen-CVT7u2hN.cjs → ShareablesScreen-baTkO1KB.cjs} +5 -5
- package/dist/{ShareablesScreen-CVT7u2hN.cjs.map → ShareablesScreen-baTkO1KB.cjs.map} +1 -1
- package/dist/{ShareablesScreen-DFAVIeqB.mjs → ShareablesScreen-h02BeiT8.mjs} +3 -3
- package/dist/{ShopScreen-DgBjP_8D.cjs → ShopScreen-BI5rtJQk.cjs} +4 -4
- package/dist/{ShopScreen-DgBjP_8D.cjs.map → ShopScreen-BI5rtJQk.cjs.map} +1 -1
- package/dist/{ShopScreen-wYtLEGXo.cjs → ShopScreen-BULLgDDI.cjs} +2 -2
- package/dist/{ShopScreen-AGvcqUii.mjs → ShopScreen-DJUhx1ly.mjs} +4 -4
- package/dist/{ShopScreen-AGvcqUii.mjs.map → ShopScreen-DJUhx1ly.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-BrLlvFJn.cjs → SubscriptionsScreen-BYCEYtcZ.cjs} +3 -3
- package/dist/{SubscriptionsScreen-BrLlvFJn.cjs.map → SubscriptionsScreen-BYCEYtcZ.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-C5YWtYfE.mjs → SubscriptionsScreen-CWwp5Po6.mjs} +3 -3
- package/dist/{SubscriptionsScreen-C5YWtYfE.mjs.map → SubscriptionsScreen-CWwp5Po6.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-BqOb2kYR.cjs → SubscriptionsScreen-hkhnXy8j.cjs} +2 -2
- package/dist/index.cjs +54 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +45 -28
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +45 -28
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +54 -52
- package/dist/index.mjs.map +1 -1
- package/dist/{src-BrwLqPPh.mjs → src-DjlwUaws.mjs} +40 -12
- package/dist/src-DjlwUaws.mjs.map +1 -0
- package/dist/{src-Dlsw83js.cjs → src-xEfkv04t.cjs} +40 -12
- package/dist/src-xEfkv04t.cjs.map +1 -0
- package/dist/{use-account-clients-Dsqx0mKw.mjs → use-account-clients-3pKJ6EI1.mjs} +2 -2
- package/dist/{use-account-clients-Dsqx0mKw.mjs.map → use-account-clients-3pKJ6EI1.mjs.map} +1 -1
- package/dist/{use-account-clients-CkDfPpCR.cjs → use-account-clients-Bqc-31kE.cjs} +2 -2
- package/dist/{use-account-clients-CkDfPpCR.cjs.map → use-account-clients-Bqc-31kE.cjs.map} +1 -1
- package/dist/{use-current-user-BMI-LR9t.mjs → use-current-user-BRmRkzNy.mjs} +3 -3
- package/dist/{use-current-user-BMI-LR9t.mjs.map → use-current-user-BRmRkzNy.mjs.map} +1 -1
- package/dist/{use-current-user-LLJ1GtNB.cjs → use-current-user-DqzI6jzQ.cjs} +3 -3
- package/dist/{use-current-user-LLJ1GtNB.cjs.map → use-current-user-DqzI6jzQ.cjs.map} +1 -1
- package/dist/{use-customer-account-DZW_YY9d.cjs → use-customer-account-CHspwp0z.cjs} +3 -3
- package/dist/{use-customer-account-DZW_YY9d.cjs.map → use-customer-account-CHspwp0z.cjs.map} +1 -1
- package/dist/{use-customer-account-DzOD3vLz.mjs → use-customer-account-D83uR5o6.mjs} +3 -3
- package/dist/{use-customer-account-DzOD3vLz.mjs.map → use-customer-account-D83uR5o6.mjs.map} +1 -1
- package/dist/{use-fluid-api-Kw0AKvCs.cjs → use-fluid-api-CRZCVY8_.cjs} +2 -2
- package/dist/{use-fluid-api-Kw0AKvCs.cjs.map → use-fluid-api-CRZCVY8_.cjs.map} +1 -1
- package/dist/{use-fluid-api-CaSYWFuj.mjs → use-fluid-api-Cap4tsCe.mjs} +2 -2
- package/dist/{use-fluid-api-CaSYWFuj.mjs.map → use-fluid-api-Cap4tsCe.mjs.map} +1 -1
- package/package.json +12 -12
- package/dist/FluidProvider-CWYquEIF.mjs.map +0 -1
- package/dist/FluidProvider-CyzA2g75.cjs.map +0 -1
- package/dist/MessagingScreen-CBuI3fu6.mjs.map +0 -1
- package/dist/MessagingScreen-Cgx3jwpr.cjs.map +0 -1
- package/dist/src-BrwLqPPh.mjs.map +0 -1
- package/dist/src-Dlsw83js.cjs.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, _t as createPersister, a as createScreen, at as decodeToken, b as applyTheme, c as FluidAuthProvider, ct as isTokenExpired, d as useThemeContext, dt as AUTH_CONSTANTS, et as hasTokenInUrl, f as ApiError, ft as STORAGE_KEYS, g as transformManifestToRepAppData, gt as useFluidOsApiOptional, h as toRawManifest, ht as isUserType, i as widgetPropertySchemas, it as storeToken, j as DEFAULT_RADII, k as DEFAULT_FONT_FAMILIES, l as useFluidAuthContext, lt as isValidToken, m as isApiError, mt as USER_TYPES, n as useFluidContext, nt as getStoredToken, o as createWidgetFromShareable, ot as getTokenExpiration, p as createFluidClient, 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 FluidThemeProvider, ut as validateToken, v as normalizeComponentTree, vt as deleteDatabase, 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, _t as createPersister, a as createScreen, at as decodeToken, b as applyTheme, c as FluidAuthProvider, ct as isTokenExpired, d as useThemeContext, dt as AUTH_CONSTANTS, et as hasTokenInUrl, f as ApiError, ft as STORAGE_KEYS, g as transformManifestToRepAppData, gt as useFluidOsApiOptional, h as toRawManifest, ht as isUserType, i as widgetPropertySchemas, it as storeToken, j as DEFAULT_RADII, k as DEFAULT_FONT_FAMILIES, l as useFluidAuthContext, lt as isValidToken, m as isApiError, mt as USER_TYPES, n as useFluidContext, nt as getStoredToken, o as createWidgetFromShareable, ot as getTokenExpiration, p as createFluidClient, 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 FluidThemeProvider, ut as validateToken, v as normalizeComponentTree, vt as deleteDatabase, w as getActiveThemeId, x as removeAllThemes, y as toScreenDefinition, z as getForegroundColor } from "./FluidProvider-BPFyPU7u.mjs";
|
|
2
2
|
import { a as useDataSourceRegistryConfig, r as pointsWidgetPropertySchema, t as PointsWidget } from "./PointsWidget-DgLGU995.mjs";
|
|
3
3
|
import "./error-state-BGEvTYIh.mjs";
|
|
4
4
|
import { a as isWidgetType, i as assertNever, l as useRegistry, n as WIDGET_TYPE_NAMES, o as isWidgetTypeName, r as assertDefined } from "./ScreenRenderer-DM-G72GL.mjs";
|
|
@@ -14,7 +14,7 @@ import { r as calendarWidgetPropertySchema, t as CalendarWidget } from "./Calend
|
|
|
14
14
|
import { r as cardWidgetPropertySchema, t as CardWidget } from "./CardWidget-zVxobZDH.mjs";
|
|
15
15
|
import "./purify.es-CfNPLbup.mjs";
|
|
16
16
|
import { C as SheetContent, D as SheetTrigger, I as Input, K as DropdownMenu, R as IconButton, S as Sheet, Y as DropdownMenuLabel, an as AlertDialogContent, cn as AlertDialogHeader, et as DropdownMenuTrigger, ht as CollapsibleTrigger, in as AlertDialogCancel, ln as AlertDialogMedia, mt as CollapsibleContent, nn as AlertDialog, on as AlertDialogDescription, pt as Collapsible, q as DropdownMenuContent, rn as AlertDialogAction, sn as AlertDialogFooter, un as AlertDialogTitle, x as Skeleton$1, yn as cn$1 } from "./src-D6DimP34.mjs";
|
|
17
|
-
import { a as useMessagingAuth, i as useMessagingConfig, n as messagingScreenPropertySchema, r as createFluidFileUploader, t as MessagingScreen } from "./MessagingScreen-
|
|
17
|
+
import { a as useMessagingAuth, i as useMessagingConfig, n as messagingScreenPropertySchema, r as createFluidFileUploader, t as MessagingScreen } from "./MessagingScreen-pS-W5HIk.mjs";
|
|
18
18
|
import "./scroll-arrows-C4VRsVrO.mjs";
|
|
19
19
|
import "./MediaRenderer-Cfvg51w8.mjs";
|
|
20
20
|
import { r as carouselWidgetPropertySchema, t as CarouselWidget } from "./CarouselWidget-Hre6Pz6P.mjs";
|
|
@@ -33,29 +33,29 @@ import { r as spacerWidgetPropertySchema, t as SpacerWidget } from "./SpacerWidg
|
|
|
33
33
|
import { r as tableWidgetPropertySchema, t as TableWidget } from "./TableWidget-CC4XnRF2.mjs";
|
|
34
34
|
import { r as toDoWidgetPropertySchema, t as ToDoWidget } from "./ToDoWidget-qyFLHU_o.mjs";
|
|
35
35
|
import { r as videoWidgetPropertySchema, t as VideoWidget } from "./VideoWidget-CpUPsOI7.mjs";
|
|
36
|
-
import { a as useFluidAuth } from "./use-account-clients-
|
|
36
|
+
import { a as useFluidAuth } from "./use-account-clients-3pKJ6EI1.mjs";
|
|
37
37
|
import { i as useScreenHeaderContext, t as ScreenHeaderProvider } from "./ScreenHeaderContext-CrdfLGKk.mjs";
|
|
38
|
-
import { t as useFluidApi } from "./use-fluid-api-
|
|
39
|
-
import { i as useCompanyScopedQueryKey, n as useCurrentUser, r as createCompanyQueryKey, t as CURRENT_USER_QUERY_KEY } from "./use-current-user-
|
|
40
|
-
import { n as shareablesScreenPropertySchema, r as useUserType, t as ShareablesScreen } from "./ShareablesScreen-
|
|
38
|
+
import { t as useFluidApi } from "./use-fluid-api-Cap4tsCe.mjs";
|
|
39
|
+
import { i as useCompanyScopedQueryKey, n as useCurrentUser, r as createCompanyQueryKey, t as CURRENT_USER_QUERY_KEY } from "./use-current-user-BRmRkzNy.mjs";
|
|
40
|
+
import { n as shareablesScreenPropertySchema, r as useUserType, t as ShareablesScreen } from "./ShareablesScreen-C3ZUhqHP.mjs";
|
|
41
41
|
import { i as CoreScreenPlaceholder, r as customersScreenPropertySchema, t as CustomersScreen } from "./CustomersScreen-xAauAB-B.mjs";
|
|
42
42
|
import { n as useAppNavigation, t as AppNavigationProvider } from "./AppNavigationContext-Du3Qq0yc.mjs";
|
|
43
|
-
import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-
|
|
43
|
+
import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-DXdLGjJE.mjs";
|
|
44
44
|
import "./dist-NMbUD0qE.mjs";
|
|
45
45
|
import "./es-BCKjXBqj.mjs";
|
|
46
|
-
import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-
|
|
46
|
+
import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-CHZ-SGpD.mjs";
|
|
47
47
|
import "./order-detail-CtTwAXfP.mjs";
|
|
48
48
|
import "./src-BakNjVTk.mjs";
|
|
49
49
|
import "./dist-oYNtEpKP.mjs";
|
|
50
|
-
import { r as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-
|
|
51
|
-
import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-
|
|
52
|
-
import "./src-
|
|
50
|
+
import { r as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-BUm_cDrS.mjs";
|
|
51
|
+
import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-CWwp5Po6.mjs";
|
|
52
|
+
import "./src-DjlwUaws.mjs";
|
|
53
53
|
import "./sortable.esm-DSrWP4x9.mjs";
|
|
54
|
-
import { n as productsScreenPropertySchema, t as ProductsScreen } from "./ProductsScreen-
|
|
55
|
-
import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-
|
|
56
|
-
import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-
|
|
54
|
+
import { n as productsScreenPropertySchema, t as ProductsScreen } from "./ProductsScreen-Cc5LjAOS.mjs";
|
|
55
|
+
import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-CSs9d6TQ.mjs";
|
|
56
|
+
import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-DJUhx1ly.mjs";
|
|
57
57
|
import "./UpgradeScreen-CTXUueQY.mjs";
|
|
58
|
-
import "./AppDownloadScreen-
|
|
58
|
+
import "./AppDownloadScreen-BUyo5t28.mjs";
|
|
59
59
|
import * as React$1 from "react";
|
|
60
60
|
import { StrictMode, Suspense, createContext, forwardRef, lazy, memo, useCallback, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
61
61
|
import { useMutation, useQueries, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
@@ -2997,18 +2997,18 @@ function AccountManageLayout({ children }) {
|
|
|
2997
2997
|
}
|
|
2998
2998
|
//#endregion
|
|
2999
2999
|
//#region src/shell/system-screen-map.ts
|
|
3000
|
-
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-
|
|
3001
|
-
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-
|
|
3002
|
-
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-
|
|
3003
|
-
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-
|
|
3004
|
-
const ContactsScreen$1 = lazy(() => import("./ContactsScreen-
|
|
3005
|
-
const ShopScreen$1 = lazy(() => import("./ShopScreen-
|
|
3000
|
+
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-DXdLGjJE.mjs").then((n) => n.n).then((m) => ({ default: m.ProfileScreen })));
|
|
3001
|
+
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-BUm_cDrS.mjs").then((n) => n.n).then((m) => ({ default: m.OrdersScreen })));
|
|
3002
|
+
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-CWwp5Po6.mjs").then((n) => n.n).then((m) => ({ default: m.SubscriptionsScreen })));
|
|
3003
|
+
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-D2GGSkix.mjs").then((m) => ({ default: m.MessagingScreen })));
|
|
3004
|
+
const ContactsScreen$1 = lazy(() => import("./ContactsScreen-CHZ-SGpD.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
|
|
3005
|
+
const ShopScreen$1 = lazy(() => import("./ShopScreen-DJUhx1ly.mjs").then((n) => n.n).then((m) => ({ default: m.ShopScreen })));
|
|
3006
3006
|
const CustomersScreen$1 = lazy(() => import("./CustomersScreen-xAauAB-B.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
|
|
3007
|
-
const ProductsScreen$1 = lazy(() => import("./ProductsScreen-
|
|
3008
|
-
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-
|
|
3009
|
-
const MySiteScreen$1 = lazy(() => import("./MySiteScreen-
|
|
3007
|
+
const ProductsScreen$1 = lazy(() => import("./ProductsScreen-CQlvW2cC.mjs").then((m) => ({ default: m.ProductsScreen })));
|
|
3008
|
+
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-h02BeiT8.mjs").then((m) => ({ default: m.ShareablesScreen })));
|
|
3009
|
+
const MySiteScreen$1 = lazy(() => import("./MySiteScreen-CSs9d6TQ.mjs").then((n) => n.n).then((m) => ({ default: m.MySiteScreen })));
|
|
3010
3010
|
const UpgradeScreen = lazy(() => import("./UpgradeScreen-CTXUueQY.mjs").then((n) => n.t).then((m) => ({ default: m.UpgradeScreen })));
|
|
3011
|
-
const AppDownloadScreen = lazy(() => import("./AppDownloadScreen-
|
|
3011
|
+
const AppDownloadScreen = lazy(() => import("./AppDownloadScreen-BUyo5t28.mjs").then((n) => n.t).then((m) => ({ default: m.AppDownloadScreen })));
|
|
3012
3012
|
const SYSTEM_SLUG_SCREEN_MAP = {
|
|
3013
3013
|
profile: ProfileScreen$1,
|
|
3014
3014
|
orders: OrdersScreen$1,
|
|
@@ -3147,18 +3147,18 @@ function isSlugInSection(item, currentSlug, navSlugs) {
|
|
|
3147
3147
|
/**
|
|
3148
3148
|
* useLogout Hook
|
|
3149
3149
|
*
|
|
3150
|
-
* Provides a complete logout function that
|
|
3151
|
-
*
|
|
3152
|
-
* -
|
|
3153
|
-
* -
|
|
3154
|
-
* - Auth tokens (cookies + localStorage)
|
|
3155
|
-
* - sessionStorage
|
|
3150
|
+
* Provides a complete logout function that:
|
|
3151
|
+
* 1. Calls `DELETE /logout` to clear the server-side session cookie
|
|
3152
|
+
* 2. Clears all client-side state (query cache, IndexedDB, tokens, sessionStorage)
|
|
3153
|
+
* 3. Redirects to the portal hub (server-driven) or a custom URL
|
|
3156
3154
|
*
|
|
3157
|
-
*
|
|
3155
|
+
* The backend `DELETE /logout` clears the `portal_tenant_user_id` cookie
|
|
3156
|
+
* and responds with a redirect to the portal hub.
|
|
3158
3157
|
*/
|
|
3159
3158
|
/**
|
|
3160
|
-
* Hook that returns a `logout` function which
|
|
3161
|
-
* client state and either redirects
|
|
3159
|
+
* Hook that returns a `logout` function which calls the backend logout
|
|
3160
|
+
* endpoint, clears all cached/persisted client state, and either redirects
|
|
3161
|
+
* or calls the provided callback.
|
|
3162
3162
|
*
|
|
3163
3163
|
* @example
|
|
3164
3164
|
* ```tsx
|
|
@@ -3176,6 +3176,12 @@ function isSlugInSection(item, currentSlug, navSlugs) {
|
|
|
3176
3176
|
function useLogout({ redirectUrl, onLogout } = {}) {
|
|
3177
3177
|
const queryClient = useQueryClient();
|
|
3178
3178
|
return useCallback(async () => {
|
|
3179
|
+
try {
|
|
3180
|
+
await fetch("/logout", {
|
|
3181
|
+
method: "DELETE",
|
|
3182
|
+
credentials: "include"
|
|
3183
|
+
});
|
|
3184
|
+
} catch {}
|
|
3179
3185
|
await queryClient.cancelQueries();
|
|
3180
3186
|
queryClient.clear();
|
|
3181
3187
|
try {
|
|
@@ -3189,10 +3195,7 @@ function useLogout({ redirectUrl, onLogout } = {}) {
|
|
|
3189
3195
|
} catch {}
|
|
3190
3196
|
if (redirectUrl) window.location.href = redirectUrl;
|
|
3191
3197
|
else if (onLogout) onLogout();
|
|
3192
|
-
else
|
|
3193
|
-
const currentUrl = encodeURIComponent(window.location.href);
|
|
3194
|
-
window.location.href = `${DEFAULT_AUTH_URL}/?logout=true&redirect_url=${currentUrl}`;
|
|
3195
|
-
}
|
|
3198
|
+
else window.location.reload();
|
|
3196
3199
|
}, [
|
|
3197
3200
|
queryClient,
|
|
3198
3201
|
redirectUrl,
|
|
@@ -3478,8 +3481,8 @@ function getViteEnv(key) {
|
|
|
3478
3481
|
* Creates a FluidSDKConfig with sensible defaults.
|
|
3479
3482
|
*
|
|
3480
3483
|
* Default behavior:
|
|
3481
|
-
* - baseUrl: reads from `VITE_API_URL` env var, falls back to "
|
|
3482
|
-
* -
|
|
3484
|
+
* - baseUrl: reads from `VITE_API_URL` env var, falls back to `""` (same-origin relative)
|
|
3485
|
+
* - Auth: relies on session cookies sent via `credentials: 'include'`
|
|
3483
3486
|
*
|
|
3484
3487
|
* Pass overrides to customize any field:
|
|
3485
3488
|
* ```ts
|
|
@@ -3488,8 +3491,7 @@ function getViteEnv(key) {
|
|
|
3488
3491
|
*/
|
|
3489
3492
|
function createDefaultFluidConfig(overrides) {
|
|
3490
3493
|
return {
|
|
3491
|
-
baseUrl: getViteEnv("VITE_API_URL") ?? "
|
|
3492
|
-
getAuthToken: () => getStoredToken() ?? null,
|
|
3494
|
+
baseUrl: getViteEnv("VITE_API_URL") ?? "",
|
|
3493
3495
|
...overrides
|
|
3494
3496
|
};
|
|
3495
3497
|
}
|
|
@@ -4466,18 +4468,18 @@ function useContact(_contactId) {
|
|
|
4466
4468
|
//#endregion
|
|
4467
4469
|
//#region src/screens/index.ts
|
|
4468
4470
|
const screenPropertySchemas = {
|
|
4469
|
-
ProfileScreen: () => import("./ProfileScreen-
|
|
4470
|
-
MessagingScreen: () => import("./MessagingScreen-
|
|
4471
|
-
ContactsScreen: () => import("./ContactsScreen-
|
|
4472
|
-
OrdersScreen: () => import("./OrdersScreen-
|
|
4473
|
-
SubscriptionsScreen: () => import("./SubscriptionsScreen-
|
|
4471
|
+
ProfileScreen: () => import("./ProfileScreen-DXdLGjJE.mjs").then((n) => n.n).then((m) => m.profileScreenPropertySchema),
|
|
4472
|
+
MessagingScreen: () => import("./MessagingScreen-D2GGSkix.mjs").then((m) => m.messagingScreenPropertySchema),
|
|
4473
|
+
ContactsScreen: () => import("./ContactsScreen-CHZ-SGpD.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
|
|
4474
|
+
OrdersScreen: () => import("./OrdersScreen-BUm_cDrS.mjs").then((n) => n.n).then((m) => m.ordersScreenPropertySchema),
|
|
4475
|
+
SubscriptionsScreen: () => import("./SubscriptionsScreen-CWwp5Po6.mjs").then((n) => n.n).then((m) => m.subscriptionsScreenPropertySchema),
|
|
4474
4476
|
CustomersScreen: () => import("./CustomersScreen-xAauAB-B.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
|
|
4475
|
-
ProductsScreen: () => import("./ProductsScreen-
|
|
4476
|
-
MySiteScreen: () => import("./MySiteScreen-
|
|
4477
|
-
ShareablesScreen: () => import("./ShareablesScreen-
|
|
4478
|
-
ShopScreen: () => import("./ShopScreen-
|
|
4477
|
+
ProductsScreen: () => import("./ProductsScreen-CQlvW2cC.mjs").then((m) => m.productsScreenPropertySchema),
|
|
4478
|
+
MySiteScreen: () => import("./MySiteScreen-CSs9d6TQ.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
|
|
4479
|
+
ShareablesScreen: () => import("./ShareablesScreen-h02BeiT8.mjs").then((m) => m.shareablesScreenPropertySchema),
|
|
4480
|
+
ShopScreen: () => import("./ShopScreen-DJUhx1ly.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema),
|
|
4479
4481
|
UpgradeScreen: () => import("./UpgradeScreen-CTXUueQY.mjs").then((n) => n.t).then((m) => m.upgradeScreenPropertySchema),
|
|
4480
|
-
AppDownloadScreen: () => import("./AppDownloadScreen-
|
|
4482
|
+
AppDownloadScreen: () => import("./AppDownloadScreen-BUyo5t28.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
|
|
4481
4483
|
};
|
|
4482
4484
|
/**
|
|
4483
4485
|
* Core page template IDs
|