@fluid-app/portal-sdk 0.1.101 → 0.1.103

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.
Files changed (92) hide show
  1. package/dist/{AppDownloadScreen-rO--O0pk.mjs → AppDownloadScreen-BBpvNeFO.mjs} +2 -2
  2. package/dist/{AppDownloadScreen-rO--O0pk.mjs.map → AppDownloadScreen-BBpvNeFO.mjs.map} +1 -1
  3. package/dist/{AppDownloadScreen-BcK2snUL.cjs → AppDownloadScreen-Da79ffTK.cjs} +2 -2
  4. package/dist/{AppDownloadScreen-BcK2snUL.cjs.map → AppDownloadScreen-Da79ffTK.cjs.map} +1 -1
  5. package/dist/{AppDownloadScreen-CwLZzr-7.cjs → AppDownloadScreen-R3rcFWzL.cjs} +2 -2
  6. package/dist/{ContactsScreen-CkSeaPyz.cjs → ContactsScreen-CFC32ATZ.cjs} +2 -2
  7. package/dist/{ContactsScreen-CkSeaPyz.cjs.map → ContactsScreen-CFC32ATZ.cjs.map} +1 -1
  8. package/dist/{ContactsScreen-BGwqGlpV.mjs → ContactsScreen-CGyCNeZy.mjs} +2 -2
  9. package/dist/{ContactsScreen-BGwqGlpV.mjs.map → ContactsScreen-CGyCNeZy.mjs.map} +1 -1
  10. package/dist/{ContactsScreen-D4WQ59ib.cjs → ContactsScreen-D81raD2s.cjs} +2 -2
  11. package/dist/{FluidProvider-CWYquEIF.mjs → FluidProvider-B59bzF__.mjs} +118 -1131
  12. package/dist/FluidProvider-B59bzF__.mjs.map +1 -0
  13. package/dist/{FluidProvider-CyzA2g75.cjs → FluidProvider-DbYLBGGg.cjs} +119 -1210
  14. package/dist/FluidProvider-DbYLBGGg.cjs.map +1 -0
  15. package/dist/{MessagingScreen-CBuI3fu6.mjs → MessagingScreen-6SfuZqDC.mjs} +4 -9
  16. package/dist/MessagingScreen-6SfuZqDC.mjs.map +1 -0
  17. package/dist/{MessagingScreen-DKigg2jz.mjs → MessagingScreen-Bg-7zNye.mjs} +2 -2
  18. package/dist/{MessagingScreen-Cgx3jwpr.cjs → MessagingScreen-DsH-L7vB.cjs} +4 -9
  19. package/dist/MessagingScreen-DsH-L7vB.cjs.map +1 -0
  20. package/dist/{MessagingScreen-CGS7aG1A.cjs → MessagingScreen-TCOhXTPN.cjs} +2 -2
  21. package/dist/{MySiteScreen-BSFb-n7n.cjs → MySiteScreen-BHiMCIZ_.cjs} +2 -2
  22. package/dist/{MySiteScreen-BSFb-n7n.cjs.map → MySiteScreen-BHiMCIZ_.cjs.map} +1 -1
  23. package/dist/{MySiteScreen-Bvyx63pT.mjs → MySiteScreen-BI089vJc.mjs} +2 -2
  24. package/dist/{MySiteScreen-Bvyx63pT.mjs.map → MySiteScreen-BI089vJc.mjs.map} +1 -1
  25. package/dist/{MySiteScreen-2IzxVfpO.cjs → MySiteScreen-DDX4xcMv.cjs} +2 -2
  26. package/dist/{OrdersScreen-Bf4o3Kty.cjs → OrdersScreen-Cc6iUf0a.cjs} +3 -3
  27. package/dist/{OrdersScreen-Bf4o3Kty.cjs.map → OrdersScreen-Cc6iUf0a.cjs.map} +1 -1
  28. package/dist/{OrdersScreen-Djdeji9g.mjs → OrdersScreen-CdwVcUrG.mjs} +3 -3
  29. package/dist/{OrdersScreen-Djdeji9g.mjs.map → OrdersScreen-CdwVcUrG.mjs.map} +1 -1
  30. package/dist/{OrdersScreen-DCzYEgsP.cjs → OrdersScreen-CtG8_C45.cjs} +2 -2
  31. package/dist/{ProductsScreen-DZiugPVb.mjs → ProductsScreen-BZbpjY2G.mjs} +3 -3
  32. package/dist/{ProductsScreen-6J79mnIB.mjs → ProductsScreen-BcIiBPCz.mjs} +4 -4
  33. package/dist/{ProductsScreen-6J79mnIB.mjs.map → ProductsScreen-BcIiBPCz.mjs.map} +1 -1
  34. package/dist/{ProductsScreen-PJ95OcSX.cjs → ProductsScreen-W0uLKrfx.cjs} +4 -4
  35. package/dist/{ProductsScreen-PJ95OcSX.cjs.map → ProductsScreen-W0uLKrfx.cjs.map} +1 -1
  36. package/dist/{ProductsScreen-DZnKtPBp.cjs → ProductsScreen-eiMXiu0K.cjs} +3 -3
  37. package/dist/{ProfileScreen-CUsGRCB7.mjs → ProfileScreen-BEHwzWv1.mjs} +3 -3
  38. package/dist/{ProfileScreen-CUsGRCB7.mjs.map → ProfileScreen-BEHwzWv1.mjs.map} +1 -1
  39. package/dist/{ProfileScreen-DtmReqa8.cjs → ProfileScreen-CKuu4YAP.cjs} +3 -3
  40. package/dist/{ProfileScreen-DtmReqa8.cjs.map → ProfileScreen-CKuu4YAP.cjs.map} +1 -1
  41. package/dist/{ProfileScreen-B46jd4Ic.cjs → ProfileScreen-xD7FL-W6.cjs} +2 -2
  42. package/dist/{ShareablesScreen-Dk5EQGMa.cjs → ShareablesScreen-B_N1aWKn.cjs} +3 -3
  43. package/dist/{ShareablesScreen-DFAVIeqB.mjs → ShareablesScreen-Bvkd-M9u.mjs} +3 -3
  44. package/dist/{ShareablesScreen-CVT7u2hN.cjs → ShareablesScreen-M_f9a05D.cjs} +5 -5
  45. package/dist/{ShareablesScreen-CVT7u2hN.cjs.map → ShareablesScreen-M_f9a05D.cjs.map} +1 -1
  46. package/dist/{ShareablesScreen-Cy7w85IH.mjs → ShareablesScreen-Xf6w_Cri.mjs} +5 -5
  47. package/dist/{ShareablesScreen-Cy7w85IH.mjs.map → ShareablesScreen-Xf6w_Cri.mjs.map} +1 -1
  48. package/dist/{ShopScreen-AGvcqUii.mjs → ShopScreen-C9OVBv3h.mjs} +4 -4
  49. package/dist/{ShopScreen-AGvcqUii.mjs.map → ShopScreen-C9OVBv3h.mjs.map} +1 -1
  50. package/dist/{ShopScreen-DgBjP_8D.cjs → ShopScreen-CcNHTbVr.cjs} +4 -4
  51. package/dist/{ShopScreen-DgBjP_8D.cjs.map → ShopScreen-CcNHTbVr.cjs.map} +1 -1
  52. package/dist/{ShopScreen-wYtLEGXo.cjs → ShopScreen-Czot9O3w.cjs} +2 -2
  53. package/dist/{SubscriptionsScreen-C5YWtYfE.mjs → SubscriptionsScreen-BAwlzqnk.mjs} +3 -3
  54. package/dist/{SubscriptionsScreen-C5YWtYfE.mjs.map → SubscriptionsScreen-BAwlzqnk.mjs.map} +1 -1
  55. package/dist/{SubscriptionsScreen-BrLlvFJn.cjs → SubscriptionsScreen-BDtmlP7D.cjs} +3 -3
  56. package/dist/{SubscriptionsScreen-BrLlvFJn.cjs.map → SubscriptionsScreen-BDtmlP7D.cjs.map} +1 -1
  57. package/dist/{SubscriptionsScreen-BqOb2kYR.cjs → SubscriptionsScreen-De15MoiH.cjs} +2 -2
  58. package/dist/index.cjs +53 -54
  59. package/dist/index.cjs.map +1 -1
  60. package/dist/index.d.cts +52 -41
  61. package/dist/index.d.cts.map +1 -1
  62. package/dist/index.d.mts +52 -41
  63. package/dist/index.d.mts.map +1 -1
  64. package/dist/index.mjs +53 -54
  65. package/dist/index.mjs.map +1 -1
  66. package/dist/{src-BrwLqPPh.mjs → src-DjlwUaws.mjs} +40 -12
  67. package/dist/src-DjlwUaws.mjs.map +1 -0
  68. package/dist/{src-Dlsw83js.cjs → src-xEfkv04t.cjs} +40 -12
  69. package/dist/src-xEfkv04t.cjs.map +1 -0
  70. package/dist/{use-account-clients-Dsqx0mKw.mjs → use-account-clients-BbT2Gfi8.mjs} +2 -2
  71. package/dist/{use-account-clients-Dsqx0mKw.mjs.map → use-account-clients-BbT2Gfi8.mjs.map} +1 -1
  72. package/dist/{use-account-clients-CkDfPpCR.cjs → use-account-clients-FORfQTn6.cjs} +2 -2
  73. package/dist/{use-account-clients-CkDfPpCR.cjs.map → use-account-clients-FORfQTn6.cjs.map} +1 -1
  74. package/dist/{use-current-user-LLJ1GtNB.cjs → use-current-user-CrHH290V.cjs} +3 -3
  75. package/dist/{use-current-user-LLJ1GtNB.cjs.map → use-current-user-CrHH290V.cjs.map} +1 -1
  76. package/dist/{use-current-user-BMI-LR9t.mjs → use-current-user-SmbdS--3.mjs} +3 -3
  77. package/dist/{use-current-user-BMI-LR9t.mjs.map → use-current-user-SmbdS--3.mjs.map} +1 -1
  78. package/dist/{use-customer-account-DzOD3vLz.mjs → use-customer-account-CXOgxyNX.mjs} +3 -3
  79. package/dist/{use-customer-account-DzOD3vLz.mjs.map → use-customer-account-CXOgxyNX.mjs.map} +1 -1
  80. package/dist/{use-customer-account-DZW_YY9d.cjs → use-customer-account-DJiCXIoH.cjs} +3 -3
  81. package/dist/{use-customer-account-DZW_YY9d.cjs.map → use-customer-account-DJiCXIoH.cjs.map} +1 -1
  82. package/dist/{use-fluid-api-Kw0AKvCs.cjs → use-fluid-api-C2evcv_D.cjs} +2 -2
  83. package/dist/{use-fluid-api-Kw0AKvCs.cjs.map → use-fluid-api-C2evcv_D.cjs.map} +1 -1
  84. package/dist/{use-fluid-api-CaSYWFuj.mjs → use-fluid-api-f1PKU6dS.mjs} +2 -2
  85. package/dist/{use-fluid-api-CaSYWFuj.mjs.map → use-fluid-api-f1PKU6dS.mjs.map} +1 -1
  86. package/package.json +8 -8
  87. package/dist/FluidProvider-CWYquEIF.mjs.map +0 -1
  88. package/dist/FluidProvider-CyzA2g75.cjs.map +0 -1
  89. package/dist/MessagingScreen-CBuI3fu6.mjs.map +0 -1
  90. package/dist/MessagingScreen-Cgx3jwpr.cjs.map +0 -1
  91. package/dist/src-BrwLqPPh.mjs.map +0 -1
  92. 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-CWYquEIF.mjs";
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-B59bzF__.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-CBuI3fu6.mjs";
17
+ import { a as useMessagingAuth, i as useMessagingConfig, n as messagingScreenPropertySchema, r as createFluidFileUploader, t as MessagingScreen } from "./MessagingScreen-6SfuZqDC.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-Dsqx0mKw.mjs";
36
+ import { a as useFluidAuth } from "./use-account-clients-BbT2Gfi8.mjs";
37
37
  import { i as useScreenHeaderContext, t as ScreenHeaderProvider } from "./ScreenHeaderContext-CrdfLGKk.mjs";
38
- import { t as useFluidApi } from "./use-fluid-api-CaSYWFuj.mjs";
39
- import { i as useCompanyScopedQueryKey, n as useCurrentUser, r as createCompanyQueryKey, t as CURRENT_USER_QUERY_KEY } from "./use-current-user-BMI-LR9t.mjs";
40
- import { n as shareablesScreenPropertySchema, r as useUserType, t as ShareablesScreen } from "./ShareablesScreen-Cy7w85IH.mjs";
38
+ import { t as useFluidApi } from "./use-fluid-api-f1PKU6dS.mjs";
39
+ import { i as useCompanyScopedQueryKey, n as useCurrentUser, r as createCompanyQueryKey, t as CURRENT_USER_QUERY_KEY } from "./use-current-user-SmbdS--3.mjs";
40
+ import { n as shareablesScreenPropertySchema, r as useUserType, t as ShareablesScreen } from "./ShareablesScreen-Xf6w_Cri.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-CUsGRCB7.mjs";
43
+ import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-BEHwzWv1.mjs";
44
44
  import "./dist-NMbUD0qE.mjs";
45
45
  import "./es-BCKjXBqj.mjs";
46
- import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-BGwqGlpV.mjs";
46
+ import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-CGyCNeZy.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-Djdeji9g.mjs";
51
- import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-C5YWtYfE.mjs";
52
- import "./src-BrwLqPPh.mjs";
50
+ import { r as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-CdwVcUrG.mjs";
51
+ import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-BAwlzqnk.mjs";
52
+ import "./src-DjlwUaws.mjs";
53
53
  import "./sortable.esm-DSrWP4x9.mjs";
54
- import { n as productsScreenPropertySchema, t as ProductsScreen } from "./ProductsScreen-6J79mnIB.mjs";
55
- import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-Bvyx63pT.mjs";
56
- import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-AGvcqUii.mjs";
54
+ import { n as productsScreenPropertySchema, t as ProductsScreen } from "./ProductsScreen-BcIiBPCz.mjs";
55
+ import { r as mySiteScreenPropertySchema, t as MySiteScreen } from "./MySiteScreen-BI089vJc.mjs";
56
+ import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-C9OVBv3h.mjs";
57
57
  import "./UpgradeScreen-CTXUueQY.mjs";
58
- import "./AppDownloadScreen-rO--O0pk.mjs";
58
+ import "./AppDownloadScreen-BBpvNeFO.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-CUsGRCB7.mjs").then((n) => n.n).then((m) => ({ default: m.ProfileScreen })));
3001
- const OrdersScreen$1 = lazy(() => import("./OrdersScreen-Djdeji9g.mjs").then((n) => n.n).then((m) => ({ default: m.OrdersScreen })));
3002
- const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-C5YWtYfE.mjs").then((n) => n.n).then((m) => ({ default: m.SubscriptionsScreen })));
3003
- const MessagingScreen$1 = lazy(() => import("./MessagingScreen-DKigg2jz.mjs").then((m) => ({ default: m.MessagingScreen })));
3004
- const ContactsScreen$1 = lazy(() => import("./ContactsScreen-BGwqGlpV.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
3005
- const ShopScreen$1 = lazy(() => import("./ShopScreen-AGvcqUii.mjs").then((n) => n.n).then((m) => ({ default: m.ShopScreen })));
3000
+ const ProfileScreen$1 = lazy(() => import("./ProfileScreen-BEHwzWv1.mjs").then((n) => n.n).then((m) => ({ default: m.ProfileScreen })));
3001
+ const OrdersScreen$1 = lazy(() => import("./OrdersScreen-CdwVcUrG.mjs").then((n) => n.n).then((m) => ({ default: m.OrdersScreen })));
3002
+ const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-BAwlzqnk.mjs").then((n) => n.n).then((m) => ({ default: m.SubscriptionsScreen })));
3003
+ const MessagingScreen$1 = lazy(() => import("./MessagingScreen-Bg-7zNye.mjs").then((m) => ({ default: m.MessagingScreen })));
3004
+ const ContactsScreen$1 = lazy(() => import("./ContactsScreen-CGyCNeZy.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
3005
+ const ShopScreen$1 = lazy(() => import("./ShopScreen-C9OVBv3h.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-DZiugPVb.mjs").then((m) => ({ default: m.ProductsScreen })));
3008
- const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-DFAVIeqB.mjs").then((m) => ({ default: m.ShareablesScreen })));
3009
- const MySiteScreen$1 = lazy(() => import("./MySiteScreen-Bvyx63pT.mjs").then((n) => n.n).then((m) => ({ default: m.MySiteScreen })));
3007
+ const ProductsScreen$1 = lazy(() => import("./ProductsScreen-BZbpjY2G.mjs").then((m) => ({ default: m.ProductsScreen })));
3008
+ const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-Bvkd-M9u.mjs").then((m) => ({ default: m.ShareablesScreen })));
3009
+ const MySiteScreen$1 = lazy(() => import("./MySiteScreen-BI089vJc.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-rO--O0pk.mjs").then((n) => n.t).then((m) => ({ default: m.AppDownloadScreen })));
3011
+ const AppDownloadScreen = lazy(() => import("./AppDownloadScreen-BBpvNeFO.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,14 @@ function isSlugInSection(item, currentSlug, navSlugs) {
3147
3147
  /**
3148
3148
  * useLogout Hook
3149
3149
  *
3150
- * Provides a complete logout function that clears all client-side state:
3151
- * - In-flight TanStack Query requests (cancelled)
3152
- * - TanStack Query cache (in-memory)
3153
- * - IndexedDB persisted query cache
3154
- * - Auth tokens (cookies + localStorage)
3155
- * - sessionStorage
3156
- *
3157
- * After clearing, invokes the provided callback or redirects to the given URL.
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, sessionStorage)
3153
+ * 3. Reloads the page — Rails redirects unauthenticated HTML requests to the Hub
3158
3154
  */
3159
3155
  /**
3160
- * Hook that returns a `logout` function which clears all cached/persisted
3161
- * client state and either redirects or calls the provided callback.
3156
+ * Hook that returns a `logout` function which clears the server session
3157
+ * via `DELETE /logout` and all cached/persisted client state.
3162
3158
  *
3163
3159
  * @example
3164
3160
  * ```tsx
@@ -3176,6 +3172,14 @@ function isSlugInSection(item, currentSlug, navSlugs) {
3176
3172
  function useLogout({ redirectUrl, onLogout } = {}) {
3177
3173
  const queryClient = useQueryClient();
3178
3174
  return useCallback(async () => {
3175
+ try {
3176
+ const csrfToken = document.querySelector("meta[name=\"csrf-token\"]")?.getAttribute("content");
3177
+ await fetch("/logout", {
3178
+ method: "DELETE",
3179
+ credentials: "include",
3180
+ headers: csrfToken ? { "X-CSRF-Token": csrfToken } : {}
3181
+ });
3182
+ } catch {}
3179
3183
  await queryClient.cancelQueries();
3180
3184
  queryClient.clear();
3181
3185
  try {
@@ -3183,16 +3187,12 @@ function useLogout({ redirectUrl, onLogout } = {}) {
3183
3187
  } catch (error) {
3184
3188
  console.error("[useLogout] Failed to clear IndexedDB cache:", error);
3185
3189
  }
3186
- clearTokens();
3187
3190
  try {
3188
3191
  sessionStorage.clear();
3189
3192
  } catch {}
3190
3193
  if (redirectUrl) window.location.href = redirectUrl;
3191
3194
  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
- }
3195
+ else window.location.reload();
3196
3196
  }, [
3197
3197
  queryClient,
3198
3198
  redirectUrl,
@@ -3478,8 +3478,8 @@ function getViteEnv(key) {
3478
3478
  * Creates a FluidSDKConfig with sensible defaults.
3479
3479
  *
3480
3480
  * Default behavior:
3481
- * - baseUrl: reads from `VITE_API_URL` env var, falls back to "https://api.fluid.app"
3482
- * - getAuthToken: reads from the SDK's token storage (cookie/localStorage)
3481
+ * - baseUrl: reads from `VITE_API_URL` env var, falls back to `""` (same-origin relative)
3482
+ * - Auth: relies on session cookies sent via `credentials: 'include'`
3483
3483
  *
3484
3484
  * Pass overrides to customize any field:
3485
3485
  * ```ts
@@ -3488,8 +3488,7 @@ function getViteEnv(key) {
3488
3488
  */
3489
3489
  function createDefaultFluidConfig(overrides) {
3490
3490
  return {
3491
- baseUrl: getViteEnv("VITE_API_URL") ?? "https://api.fluid.app",
3492
- getAuthToken: () => getStoredToken() ?? null,
3491
+ baseUrl: getViteEnv("VITE_API_URL") ?? "",
3493
3492
  ...overrides
3494
3493
  };
3495
3494
  }
@@ -4466,18 +4465,18 @@ function useContact(_contactId) {
4466
4465
  //#endregion
4467
4466
  //#region src/screens/index.ts
4468
4467
  const screenPropertySchemas = {
4469
- ProfileScreen: () => import("./ProfileScreen-CUsGRCB7.mjs").then((n) => n.n).then((m) => m.profileScreenPropertySchema),
4470
- MessagingScreen: () => import("./MessagingScreen-DKigg2jz.mjs").then((m) => m.messagingScreenPropertySchema),
4471
- ContactsScreen: () => import("./ContactsScreen-BGwqGlpV.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
4472
- OrdersScreen: () => import("./OrdersScreen-Djdeji9g.mjs").then((n) => n.n).then((m) => m.ordersScreenPropertySchema),
4473
- SubscriptionsScreen: () => import("./SubscriptionsScreen-C5YWtYfE.mjs").then((n) => n.n).then((m) => m.subscriptionsScreenPropertySchema),
4468
+ ProfileScreen: () => import("./ProfileScreen-BEHwzWv1.mjs").then((n) => n.n).then((m) => m.profileScreenPropertySchema),
4469
+ MessagingScreen: () => import("./MessagingScreen-Bg-7zNye.mjs").then((m) => m.messagingScreenPropertySchema),
4470
+ ContactsScreen: () => import("./ContactsScreen-CGyCNeZy.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
4471
+ OrdersScreen: () => import("./OrdersScreen-CdwVcUrG.mjs").then((n) => n.n).then((m) => m.ordersScreenPropertySchema),
4472
+ SubscriptionsScreen: () => import("./SubscriptionsScreen-BAwlzqnk.mjs").then((n) => n.n).then((m) => m.subscriptionsScreenPropertySchema),
4474
4473
  CustomersScreen: () => import("./CustomersScreen-xAauAB-B.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
4475
- ProductsScreen: () => import("./ProductsScreen-DZiugPVb.mjs").then((m) => m.productsScreenPropertySchema),
4476
- MySiteScreen: () => import("./MySiteScreen-Bvyx63pT.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
4477
- ShareablesScreen: () => import("./ShareablesScreen-DFAVIeqB.mjs").then((m) => m.shareablesScreenPropertySchema),
4478
- ShopScreen: () => import("./ShopScreen-AGvcqUii.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema),
4474
+ ProductsScreen: () => import("./ProductsScreen-BZbpjY2G.mjs").then((m) => m.productsScreenPropertySchema),
4475
+ MySiteScreen: () => import("./MySiteScreen-BI089vJc.mjs").then((n) => n.n).then((m) => m.mySiteScreenPropertySchema),
4476
+ ShareablesScreen: () => import("./ShareablesScreen-Bvkd-M9u.mjs").then((m) => m.shareablesScreenPropertySchema),
4477
+ ShopScreen: () => import("./ShopScreen-C9OVBv3h.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema),
4479
4478
  UpgradeScreen: () => import("./UpgradeScreen-CTXUueQY.mjs").then((n) => n.t).then((m) => m.upgradeScreenPropertySchema),
4480
- AppDownloadScreen: () => import("./AppDownloadScreen-rO--O0pk.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
4479
+ AppDownloadScreen: () => import("./AppDownloadScreen-BBpvNeFO.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema)
4481
4480
  };
4482
4481
  /**
4483
4482
  * Core page template IDs