@fluid-app/portal-sdk 0.1.27 → 0.1.29
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/{AppNavigationContext-DrayF_RG.cjs → AppNavigationContext-DAcrNgXZ.cjs} +1 -1
- package/dist/{AppNavigationContext-DrayF_RG.cjs.map → AppNavigationContext-DAcrNgXZ.cjs.map} +1 -1
- package/dist/{AppNavigationContext-2nkMoO8F.mjs → AppNavigationContext-v_y8OYHo.mjs} +1 -1
- package/dist/{AppNavigationContext-2nkMoO8F.mjs.map → AppNavigationContext-v_y8OYHo.mjs.map} +1 -1
- package/dist/{ContactsScreen-GPOgZ-Wi.cjs → ContactsScreen-BL5Jlaz5.cjs} +2 -2
- package/dist/{ContactsScreen-GPOgZ-Wi.cjs.map → ContactsScreen-BL5Jlaz5.cjs.map} +1 -1
- package/dist/{ContactsScreen-BicHZ37M.mjs → ContactsScreen-CcNUC8xu.mjs} +2 -2
- package/dist/{ContactsScreen-BicHZ37M.mjs.map → ContactsScreen-CcNUC8xu.mjs.map} +1 -1
- package/dist/{CoreScreenPlaceholder-Cl_zuOBC.cjs → CoreScreenPlaceholder-B64M78iR.cjs} +1 -1
- package/dist/{CoreScreenPlaceholder-Cl_zuOBC.cjs.map → CoreScreenPlaceholder-B64M78iR.cjs.map} +1 -1
- package/dist/{CoreScreenPlaceholder-Cdyl97Wo.mjs → CoreScreenPlaceholder-DVVLc-OM.mjs} +1 -1
- package/dist/{CoreScreenPlaceholder-Cdyl97Wo.mjs.map → CoreScreenPlaceholder-DVVLc-OM.mjs.map} +1 -1
- package/dist/{CustomersScreen-Brz5zLkq.mjs → CustomersScreen-SuHGSUdb.mjs} +2 -2
- package/dist/{CustomersScreen-Brz5zLkq.mjs.map → CustomersScreen-SuHGSUdb.mjs.map} +1 -1
- package/dist/{CustomersScreen-CK1jJhvM.cjs → CustomersScreen-zl_vRzcJ.cjs} +2 -2
- package/dist/{CustomersScreen-CK1jJhvM.cjs.map → CustomersScreen-zl_vRzcJ.cjs.map} +1 -1
- package/dist/{FluidProvider-PqLUzyvQ.cjs → FluidProvider-BmkSwcgV.cjs} +3 -3
- package/dist/{FluidProvider-PqLUzyvQ.cjs.map → FluidProvider-BmkSwcgV.cjs.map} +1 -1
- package/dist/{FluidProvider-Bp1sNJnr.mjs → FluidProvider-x96kqsgN.mjs} +3 -3
- package/dist/{FluidProvider-Bp1sNJnr.mjs.map → FluidProvider-x96kqsgN.mjs.map} +1 -1
- package/dist/LayoutWidget-Dc_wvaLg.mjs.map +1 -1
- package/dist/LayoutWidget-fOBC-EML.cjs.map +1 -1
- package/dist/{MessagingScreen-9VsNB4fn.mjs → MessagingScreen-BGzfLD8k.mjs} +4 -4
- package/dist/{MessagingScreen-C-kF4Z5h.cjs → MessagingScreen-CRLd91tP.cjs} +4 -4
- package/dist/{MessagingScreen-C-kF4Z5h.cjs.map → MessagingScreen-CRLd91tP.cjs.map} +1 -1
- package/dist/{MessagingScreen-CcxyIep3.cjs → MessagingScreen-DIZ72Tg0.cjs} +4 -4
- package/dist/{MessagingScreen-7pC6SdRs.mjs → MessagingScreen-We1B2pka.mjs} +4 -4
- package/dist/{MessagingScreen-7pC6SdRs.mjs.map → MessagingScreen-We1B2pka.mjs.map} +1 -1
- package/dist/OrdersScreen-Bu-ENmH6.cjs +133 -0
- package/dist/OrdersScreen-Bu-ENmH6.cjs.map +1 -0
- package/dist/OrdersScreen-TSXDDHZe.cjs +33 -0
- package/dist/OrdersScreen-afRAHf07.mjs +126 -0
- package/dist/OrdersScreen-afRAHf07.mjs.map +1 -0
- package/dist/{ProductsScreen-BKDPaw5H.mjs → ProductsScreen-B-oWUzvD.mjs} +5 -5
- package/dist/{ProductsScreen-DwcIB1Tp.mjs → ProductsScreen-ChvK61hX.mjs} +5 -5
- package/dist/{ProductsScreen-DwcIB1Tp.mjs.map → ProductsScreen-ChvK61hX.mjs.map} +1 -1
- package/dist/{ProductsScreen-DeXWGZXc.cjs → ProductsScreen-CkE2nyuw.cjs} +5 -5
- package/dist/{ProductsScreen-DeXWGZXc.cjs.map → ProductsScreen-CkE2nyuw.cjs.map} +1 -1
- package/dist/{ProductsScreen-7t1oNY_N.cjs → ProductsScreen-PCg91SbX.cjs} +5 -5
- package/dist/ProfileScreen-B6Dp7RLa.cjs +2856 -0
- package/dist/ProfileScreen-B6Dp7RLa.cjs.map +1 -0
- package/dist/ProfileScreen-B83tzedh.mjs +2849 -0
- package/dist/ProfileScreen-B83tzedh.mjs.map +1 -0
- package/dist/{AccountScreen-B0p9WJoI.cjs → ProfileScreen-CH3B-IQz.cjs} +5 -5
- package/dist/{ShareablesScreen-B-kEPPCb.cjs → ShareablesScreen-Bqj6dtOM.cjs} +5 -5
- package/dist/{ShareablesScreen-B-kEPPCb.cjs.map → ShareablesScreen-Bqj6dtOM.cjs.map} +1 -1
- package/dist/{ShareablesScreen-Cx87emjz.cjs → ShareablesScreen-BvJIBZvI.cjs} +5 -5
- package/dist/{ShareablesScreen-8gKrJQn3.mjs → ShareablesScreen-ChS517hq.mjs} +5 -5
- package/dist/{ShareablesScreen-8gKrJQn3.mjs.map → ShareablesScreen-ChS517hq.mjs.map} +1 -1
- package/dist/{ShareablesScreen-ClC3YfjZ.mjs → ShareablesScreen-CqVj81Ol.mjs} +5 -5
- package/dist/{ShopScreen-BstU0BQe.cjs → ShopScreen-CjoTGnCJ.cjs} +4 -4
- package/dist/{ShopScreen-BstU0BQe.cjs.map → ShopScreen-CjoTGnCJ.cjs.map} +1 -1
- package/dist/{ShopScreen-Ds4MVzZT.cjs → ShopScreen-DS4p47Ry.cjs} +3 -3
- package/dist/{ShopScreen-BMCb4k-O.mjs → ShopScreen-KeU6x3PT.mjs} +4 -4
- package/dist/{ShopScreen-BMCb4k-O.mjs.map → ShopScreen-KeU6x3PT.mjs.map} +1 -1
- package/dist/SubscriptionsScreen-CHn_Q0zf.cjs +1288 -0
- package/dist/SubscriptionsScreen-CHn_Q0zf.cjs.map +1 -0
- package/dist/SubscriptionsScreen-D5_eJwBP.mjs +1281 -0
- package/dist/SubscriptionsScreen-D5_eJwBP.mjs.map +1 -0
- package/dist/SubscriptionsScreen-DGJ_YeX3.cjs +33 -0
- package/dist/{TableWidget-D-r0EQ_2.cjs → TableWidget-2ttj9H5g.cjs} +10 -7
- package/dist/TableWidget-2ttj9H5g.cjs.map +1 -0
- package/dist/{TableWidget-D_6Qi3m8.mjs → TableWidget-BbjQhI2A.mjs} +10 -7
- package/dist/TableWidget-BbjQhI2A.mjs.map +1 -0
- package/dist/{TableWidget-1Bp4ZHK8.cjs → TableWidget-eVjxq7Lv.cjs} +1 -1
- package/dist/{es-kNOrmozy.cjs → es-BtechuHV.cjs} +1 -1
- package/dist/{es-kNOrmozy.cjs.map → es-BtechuHV.cjs.map} +1 -1
- package/dist/{es-BL8VBBDa.mjs → es-DxWiENwN.mjs} +1 -1
- package/dist/{es-BL8VBBDa.mjs.map → es-DxWiENwN.mjs.map} +1 -1
- package/dist/index.cjs +85 -91
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -8
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +40 -8
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +80 -88
- package/dist/index.mjs.map +1 -1
- package/dist/{products-Bu0IiW0A.mjs → products-BAFSvGSa.mjs} +2 -2
- package/dist/{products-Bu0IiW0A.mjs.map → products-BAFSvGSa.mjs.map} +1 -1
- package/dist/{products-CzuNSVSG.cjs → products-CH5kIItT.cjs} +2 -2
- package/dist/{products-CzuNSVSG.cjs.map → products-CH5kIItT.cjs.map} +1 -1
- package/dist/registries-4OQmN6DO.cjs.map +1 -1
- package/dist/registries-Qk8P123O.mjs.map +1 -1
- package/dist/src-BZEkCfd4.mjs +973 -0
- package/dist/src-BZEkCfd4.mjs.map +1 -0
- package/dist/src-DXC-Jw6i.cjs +1009 -0
- package/dist/src-DXC-Jw6i.cjs.map +1 -0
- package/dist/{src-MZ0kePDW.cjs → src-vxm9rMYT.cjs} +3 -3
- package/dist/{src-MZ0kePDW.cjs.map → src-vxm9rMYT.cjs.map} +1 -1
- package/dist/{src-BFKgg3tf.mjs → src-wpQFW94i.mjs} +3 -3
- package/dist/{src-BFKgg3tf.mjs.map → src-wpQFW94i.mjs.map} +1 -1
- package/dist/use-account-clients-DYTyFvdN.mjs +134 -0
- package/dist/use-account-clients-DYTyFvdN.mjs.map +1 -0
- package/dist/use-account-clients-n2a8bdSP.cjs +182 -0
- package/dist/use-account-clients-n2a8bdSP.cjs.map +1 -0
- package/dist/{use-fluid-api-CTRIRz1H.cjs → use-fluid-api-DvJuEWRf.cjs} +2 -2
- package/dist/{use-fluid-api-CTRIRz1H.cjs.map → use-fluid-api-DvJuEWRf.cjs.map} +1 -1
- package/dist/{use-fluid-api-dCyPDaGZ.mjs → use-fluid-api-Zq9sZ5vk.mjs} +2 -2
- package/dist/{use-fluid-api-dCyPDaGZ.mjs.map → use-fluid-api-Zq9sZ5vk.mjs.map} +1 -1
- package/package.json +6 -6
- package/dist/AccountScreen-BigIbqV5.mjs +0 -5309
- package/dist/AccountScreen-BigIbqV5.mjs.map +0 -1
- package/dist/AccountScreen-DTv1-206.cjs +0 -5322
- package/dist/AccountScreen-DTv1-206.cjs.map +0 -1
- package/dist/OrdersScreen-DGt-CTBS.mjs +0 -24
- package/dist/OrdersScreen-DGt-CTBS.mjs.map +0 -1
- package/dist/OrdersScreen-Dy-JChVQ.cjs +0 -41
- package/dist/OrdersScreen-Dy-JChVQ.cjs.map +0 -1
- package/dist/TableWidget-D-r0EQ_2.cjs.map +0 -1
- package/dist/TableWidget-D_6Qi3m8.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import {
|
|
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-x96kqsgN.mjs";
|
|
2
|
+
import { r as profileScreenPropertySchema, t as ProfileScreen } from "./ProfileScreen-B83tzedh.mjs";
|
|
3
3
|
import "./error-state-ChXg5_p-.mjs";
|
|
4
4
|
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";
|
|
5
5
|
import "./WidgetInteractionContext-MZuUseep.mjs";
|
|
@@ -10,7 +10,7 @@ import { r as alertWidgetPropertySchema, t as AlertWidget } from "./AlertWidget-
|
|
|
10
10
|
import { r as calendarWidgetPropertySchema, t as CalendarWidget } from "./CalendarWidget-7ZL9lHKT.mjs";
|
|
11
11
|
import "./purify.es-CS-U7fYi.mjs";
|
|
12
12
|
import "./src-PSNQSAUF.mjs";
|
|
13
|
-
import { a as useMessagingAuth, i as useMessagingConfig, n as messagingScreenPropertySchema, r as createFluidFileUploader, t as MessagingScreen } from "./MessagingScreen-
|
|
13
|
+
import { a as useMessagingAuth, i as useMessagingConfig, n as messagingScreenPropertySchema, r as createFluidFileUploader, t as MessagingScreen } from "./MessagingScreen-We1B2pka.mjs";
|
|
14
14
|
import "./scroll-arrows-DqQW_zzf.mjs";
|
|
15
15
|
import "./MediaRenderer-DIlOQCjD.mjs";
|
|
16
16
|
import { r as carouselWidgetPropertySchema, t as CarouselWidget } from "./CarouselWidget-jFV94CEm.mjs";
|
|
@@ -25,21 +25,24 @@ import { r as nestedWidgetPropertySchema, t as NestedWidget } from "./NestedWidg
|
|
|
25
25
|
import { r as quickShareWidgetPropertySchema, t as QuickShareWidget } from "./QuickShareWidget-BaBc9fbT.mjs";
|
|
26
26
|
import { r as recentActivityWidgetPropertySchema, t as RecentActivityWidget } from "./RecentActivityWidget-BdqjzwXL.mjs";
|
|
27
27
|
import { r as spacerWidgetPropertySchema, t as SpacerWidget } from "./SpacerWidget-DXXnYNIX.mjs";
|
|
28
|
-
import { r as tableWidgetPropertySchema, t as TableWidget } from "./TableWidget-
|
|
28
|
+
import { r as tableWidgetPropertySchema, t as TableWidget } from "./TableWidget-BbjQhI2A.mjs";
|
|
29
29
|
import { r as toDoWidgetPropertySchema, t as ToDoWidget } from "./ToDoWidget-CmJIUKr0.mjs";
|
|
30
30
|
import { r as videoWidgetPropertySchema, t as VideoWidget } from "./VideoWidget-D6aWKmRN.mjs";
|
|
31
|
-
import { t as useFluidApi } from "./use-fluid-api-
|
|
32
|
-
import { i as useCurrentUser, r as CURRENT_USER_QUERY_KEY } from "./products-
|
|
33
|
-
import {
|
|
34
|
-
import "./
|
|
35
|
-
import { t as
|
|
36
|
-
import
|
|
37
|
-
import {
|
|
38
|
-
import { r as
|
|
39
|
-
import "./
|
|
40
|
-
import { r as
|
|
41
|
-
import {
|
|
42
|
-
import
|
|
31
|
+
import { t as useFluidApi } from "./use-fluid-api-Zq9sZ5vk.mjs";
|
|
32
|
+
import { i as useCurrentUser, r as CURRENT_USER_QUERY_KEY } from "./products-BAFSvGSa.mjs";
|
|
33
|
+
import { c as useFluidAuth } from "./use-account-clients-DYTyFvdN.mjs";
|
|
34
|
+
import "./src-BZEkCfd4.mjs";
|
|
35
|
+
import { r as subscriptionsScreenPropertySchema, t as SubscriptionsScreen } from "./SubscriptionsScreen-D5_eJwBP.mjs";
|
|
36
|
+
import "./es-DxWiENwN.mjs";
|
|
37
|
+
import { t as CoreScreenPlaceholder } from "./CoreScreenPlaceholder-DVVLc-OM.mjs";
|
|
38
|
+
import { r as contactsScreenPropertySchema, t as ContactsScreen } from "./ContactsScreen-CcNUC8xu.mjs";
|
|
39
|
+
import { n as useAppNavigation, t as AppNavigationProvider } from "./AppNavigationContext-v_y8OYHo.mjs";
|
|
40
|
+
import { r as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-afRAHf07.mjs";
|
|
41
|
+
import { r as customersScreenPropertySchema, t as CustomersScreen } from "./CustomersScreen-SuHGSUdb.mjs";
|
|
42
|
+
import "./src-wpQFW94i.mjs";
|
|
43
|
+
import { r as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-KeU6x3PT.mjs";
|
|
44
|
+
import { n as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-ChS517hq.mjs";
|
|
45
|
+
import { n as productsScreenPropertySchema, t as ProductsScreen } from "./ProductsScreen-ChvK61hX.mjs";
|
|
43
46
|
import * as React$1 from "react";
|
|
44
47
|
import { Suspense, createContext, forwardRef, lazy, memo, useCallback, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
45
48
|
import { useQueries, useQuery } from "@tanstack/react-query";
|
|
@@ -2028,23 +2031,25 @@ function RequireAuth({ children, fallback = /* @__PURE__ */ jsx(AuthLoading, {})
|
|
|
2028
2031
|
//#endregion
|
|
2029
2032
|
//#region src/screens/index.ts
|
|
2030
2033
|
const screenPropertySchemas = {
|
|
2031
|
-
|
|
2032
|
-
MessagingScreen: () => import("./MessagingScreen-
|
|
2033
|
-
ContactsScreen: () => import("./ContactsScreen-
|
|
2034
|
-
OrdersScreen: () => import("./OrdersScreen-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2034
|
+
ProfileScreen: () => import("./ProfileScreen-B83tzedh.mjs").then((n) => n.n).then((m) => m.profileScreenPropertySchema),
|
|
2035
|
+
MessagingScreen: () => import("./MessagingScreen-BGzfLD8k.mjs").then((m) => m.messagingScreenPropertySchema),
|
|
2036
|
+
ContactsScreen: () => import("./ContactsScreen-CcNUC8xu.mjs").then((n) => n.n).then((m) => m.contactsScreenPropertySchema),
|
|
2037
|
+
OrdersScreen: () => import("./OrdersScreen-afRAHf07.mjs").then((n) => n.n).then((m) => m.ordersScreenPropertySchema),
|
|
2038
|
+
SubscriptionsScreen: () => import("./SubscriptionsScreen-D5_eJwBP.mjs").then((n) => n.n).then((m) => m.subscriptionsScreenPropertySchema),
|
|
2039
|
+
CustomersScreen: () => import("./CustomersScreen-SuHGSUdb.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
|
|
2040
|
+
ProductsScreen: () => import("./ProductsScreen-B-oWUzvD.mjs").then((m) => m.productsScreenPropertySchema),
|
|
2041
|
+
ShareablesScreen: () => import("./ShareablesScreen-CqVj81Ol.mjs").then((m) => m.shareablesScreenPropertySchema),
|
|
2042
|
+
ShopScreen: () => import("./ShopScreen-KeU6x3PT.mjs").then((n) => n.n).then((m) => m.shopScreenPropertySchema)
|
|
2039
2043
|
};
|
|
2040
2044
|
/**
|
|
2041
2045
|
* Core page template IDs
|
|
2042
2046
|
*/
|
|
2043
2047
|
const CORE_PAGE_IDS = {
|
|
2044
|
-
|
|
2048
|
+
PROFILE: "core-profile",
|
|
2045
2049
|
MESSAGING: "core-messaging",
|
|
2046
2050
|
CONTACTS: "core-contacts",
|
|
2047
2051
|
ORDERS: "core-orders",
|
|
2052
|
+
SUBSCRIPTIONS: "core-subscriptions",
|
|
2048
2053
|
CUSTOMERS: "core-customers",
|
|
2049
2054
|
PRODUCTS: "core-products",
|
|
2050
2055
|
SHAREABLES: "core-shareables",
|
|
@@ -2056,22 +2061,21 @@ const CORE_PAGE_IDS = {
|
|
|
2056
2061
|
*/
|
|
2057
2062
|
function registerCorePageTemplates() {
|
|
2058
2063
|
PageTemplateRegistry.register({
|
|
2059
|
-
id: CORE_PAGE_IDS.
|
|
2060
|
-
slug: "
|
|
2061
|
-
name: "
|
|
2062
|
-
description: "
|
|
2064
|
+
id: CORE_PAGE_IDS.PROFILE,
|
|
2065
|
+
slug: "profile",
|
|
2066
|
+
name: "Profile",
|
|
2067
|
+
description: "User profile management",
|
|
2063
2068
|
category: PAGE_CATEGORIES.CORE,
|
|
2064
2069
|
tags: [
|
|
2065
|
-
"account",
|
|
2066
2070
|
"profile",
|
|
2067
|
-
"
|
|
2068
|
-
"
|
|
2071
|
+
"account",
|
|
2072
|
+
"user"
|
|
2069
2073
|
],
|
|
2070
2074
|
version: "1.0.0",
|
|
2071
2075
|
isCore: true,
|
|
2072
2076
|
component_tree: [{
|
|
2073
|
-
type: "
|
|
2074
|
-
id: "
|
|
2077
|
+
type: "ProfileScreen",
|
|
2078
|
+
id: "profile-screen-root",
|
|
2075
2079
|
props: {}
|
|
2076
2080
|
}],
|
|
2077
2081
|
defaultProps: {}
|
|
@@ -2137,6 +2141,26 @@ function registerCorePageTemplates() {
|
|
|
2137
2141
|
}],
|
|
2138
2142
|
defaultProps: {}
|
|
2139
2143
|
});
|
|
2144
|
+
PageTemplateRegistry.register({
|
|
2145
|
+
id: CORE_PAGE_IDS.SUBSCRIPTIONS,
|
|
2146
|
+
slug: "subscriptions",
|
|
2147
|
+
name: "Subscriptions",
|
|
2148
|
+
description: "Subscription management provided by Fluid Commerce",
|
|
2149
|
+
category: PAGE_CATEGORIES.CORE,
|
|
2150
|
+
tags: [
|
|
2151
|
+
"subscriptions",
|
|
2152
|
+
"recurring",
|
|
2153
|
+
"commerce"
|
|
2154
|
+
],
|
|
2155
|
+
version: "1.0.0",
|
|
2156
|
+
isCore: true,
|
|
2157
|
+
component_tree: [{
|
|
2158
|
+
type: "SubscriptionsScreen",
|
|
2159
|
+
id: "subscriptions-screen-root",
|
|
2160
|
+
props: {}
|
|
2161
|
+
}],
|
|
2162
|
+
defaultProps: {}
|
|
2163
|
+
});
|
|
2140
2164
|
PageTemplateRegistry.register({
|
|
2141
2165
|
id: CORE_PAGE_IDS.CUSTOMERS,
|
|
2142
2166
|
slug: "customers",
|
|
@@ -2693,14 +2717,11 @@ function getThemeModeAttribute(mode) {
|
|
|
2693
2717
|
//#endregion
|
|
2694
2718
|
//#region ../core/src/navigation/system-navigation-items.ts
|
|
2695
2719
|
const SYSTEM_NAVIGATION_SLUGS = [
|
|
2696
|
-
"account",
|
|
2697
|
-
"account/profile",
|
|
2698
|
-
"account/orders",
|
|
2699
|
-
"account/subscriptions",
|
|
2700
2720
|
"contacts",
|
|
2701
2721
|
"messages",
|
|
2702
2722
|
"my-site",
|
|
2703
2723
|
"orders",
|
|
2724
|
+
"profile",
|
|
2704
2725
|
"subscriptions",
|
|
2705
2726
|
"share/media",
|
|
2706
2727
|
"share/playlists",
|
|
@@ -2709,30 +2730,6 @@ const SYSTEM_NAVIGATION_SLUGS = [
|
|
|
2709
2730
|
"upgrade"
|
|
2710
2731
|
];
|
|
2711
2732
|
const SYSTEM_NAVIGATION_ITEMS = {
|
|
2712
|
-
account: {
|
|
2713
|
-
slug: "account",
|
|
2714
|
-
label: "Account",
|
|
2715
|
-
icon: "address-card",
|
|
2716
|
-
section: "User"
|
|
2717
|
-
},
|
|
2718
|
-
"account/profile": {
|
|
2719
|
-
slug: "account/profile",
|
|
2720
|
-
label: "Profile",
|
|
2721
|
-
icon: "user",
|
|
2722
|
-
section: "User"
|
|
2723
|
-
},
|
|
2724
|
-
"account/orders": {
|
|
2725
|
-
slug: "account/orders",
|
|
2726
|
-
label: "Orders",
|
|
2727
|
-
icon: "shopping-cart",
|
|
2728
|
-
section: "User"
|
|
2729
|
-
},
|
|
2730
|
-
"account/subscriptions": {
|
|
2731
|
-
slug: "account/subscriptions",
|
|
2732
|
-
label: "Subscriptions",
|
|
2733
|
-
icon: "arrows-repeat",
|
|
2734
|
-
section: "User"
|
|
2735
|
-
},
|
|
2736
2733
|
contacts: {
|
|
2737
2734
|
slug: "contacts",
|
|
2738
2735
|
label: "Contacts",
|
|
@@ -2757,6 +2754,12 @@ const SYSTEM_NAVIGATION_ITEMS = {
|
|
|
2757
2754
|
icon: "shopping-cart",
|
|
2758
2755
|
section: "User"
|
|
2759
2756
|
},
|
|
2757
|
+
profile: {
|
|
2758
|
+
slug: "profile",
|
|
2759
|
+
label: "Profile",
|
|
2760
|
+
icon: "user",
|
|
2761
|
+
section: "User"
|
|
2762
|
+
},
|
|
2760
2763
|
"share/media": {
|
|
2761
2764
|
slug: "share/media",
|
|
2762
2765
|
label: "Media",
|
|
@@ -2803,23 +2806,11 @@ function isSystemNavigationItem(slug) {
|
|
|
2803
2806
|
return SYSTEM_NAVIGATION_SLUGS.includes(slug) || slug === "app-download";
|
|
2804
2807
|
}
|
|
2805
2808
|
/**
|
|
2806
|
-
* Slugs that are sub-routes of a parent system page and should not appear
|
|
2807
|
-
* as standalone items in quick-links dropdowns or the builder page picker.
|
|
2808
|
-
*/
|
|
2809
|
-
const CHILD_SLUGS = new Set([
|
|
2810
|
-
"account/profile",
|
|
2811
|
-
"account/orders",
|
|
2812
|
-
"account/subscriptions"
|
|
2813
|
-
]);
|
|
2814
|
-
/**
|
|
2815
2809
|
* Get system navigation items grouped by section.
|
|
2816
|
-
* Child slugs (e.g. account/profile) are excluded because they are handled
|
|
2817
|
-
* by their parent screen's internal routing.
|
|
2818
2810
|
*/
|
|
2819
2811
|
function getSystemNavigationBySection() {
|
|
2820
2812
|
const sections = {};
|
|
2821
2813
|
for (const item of Object.values(SYSTEM_NAVIGATION_ITEMS)) {
|
|
2822
|
-
if (item.slug && CHILD_SLUGS.has(item.slug)) continue;
|
|
2823
2814
|
const section = item.section || "Other";
|
|
2824
2815
|
if (!sections[section]) sections[section] = [];
|
|
2825
2816
|
sections[section].push(item);
|
|
@@ -3495,18 +3486,19 @@ function BuilderScreenViewImpl({ screen, className }) {
|
|
|
3495
3486
|
const BuilderScreenView = memo(BuilderScreenViewImpl);
|
|
3496
3487
|
//#endregion
|
|
3497
3488
|
//#region src/shell/PageRouter.tsx
|
|
3498
|
-
const
|
|
3499
|
-
const
|
|
3500
|
-
const
|
|
3501
|
-
const
|
|
3502
|
-
const
|
|
3503
|
-
const
|
|
3504
|
-
const
|
|
3489
|
+
const ProfileScreen$1 = lazy(() => import("./ProfileScreen-B83tzedh.mjs").then((n) => n.n).then((m) => ({ default: m.ProfileScreen })));
|
|
3490
|
+
const OrdersScreen$1 = lazy(() => import("./OrdersScreen-afRAHf07.mjs").then((n) => n.n).then((m) => ({ default: m.OrdersScreen })));
|
|
3491
|
+
const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-D5_eJwBP.mjs").then((n) => n.n).then((m) => ({ default: m.SubscriptionsScreen })));
|
|
3492
|
+
const MessagingScreen$1 = lazy(() => import("./MessagingScreen-BGzfLD8k.mjs").then((m) => ({ default: m.MessagingScreen })));
|
|
3493
|
+
const ContactsScreen$1 = lazy(() => import("./ContactsScreen-CcNUC8xu.mjs").then((n) => n.n).then((m) => ({ default: m.ContactsScreen })));
|
|
3494
|
+
const ShopScreen$1 = lazy(() => import("./ShopScreen-KeU6x3PT.mjs").then((n) => n.n).then((m) => ({ default: m.ShopScreen })));
|
|
3495
|
+
const CustomersScreen$1 = lazy(() => import("./CustomersScreen-SuHGSUdb.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
|
|
3496
|
+
const ProductsScreen$1 = lazy(() => import("./ProductsScreen-B-oWUzvD.mjs").then((m) => ({ default: m.ProductsScreen })));
|
|
3497
|
+
const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-CqVj81Ol.mjs").then((m) => ({ default: m.ShareablesScreen })));
|
|
3505
3498
|
const SYSTEM_SLUG_SCREEN_MAP = {
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
"account/subscriptions": AccountScreen$1,
|
|
3499
|
+
profile: ProfileScreen$1,
|
|
3500
|
+
orders: OrdersScreen$1,
|
|
3501
|
+
subscriptions: SubscriptionsScreen$1,
|
|
3510
3502
|
messages: MessagingScreen$1,
|
|
3511
3503
|
contacts: ContactsScreen$1,
|
|
3512
3504
|
shop: ShopScreen$1,
|
|
@@ -3586,8 +3578,8 @@ const DEFAULT_NAVIGATION = [
|
|
|
3586
3578
|
children: []
|
|
3587
3579
|
},
|
|
3588
3580
|
{
|
|
3589
|
-
slug: "
|
|
3590
|
-
label: "
|
|
3581
|
+
slug: "profile",
|
|
3582
|
+
label: "Profile",
|
|
3591
3583
|
icon: "user-gear",
|
|
3592
3584
|
children: []
|
|
3593
3585
|
},
|
|
@@ -3796,6 +3788,6 @@ const AppLink = forwardRef(function AppLink({ to, onClick, children, ...rest },
|
|
|
3796
3788
|
});
|
|
3797
3789
|
});
|
|
3798
3790
|
//#endregion
|
|
3799
|
-
export { ACTIVITY_SLUGS, APP_DATA_QUERY_KEY, AUTH_CONSTANTS,
|
|
3791
|
+
export { ACTIVITY_SLUGS, APP_DATA_QUERY_KEY, AUTH_CONSTANTS, AlertWidget, ApiError, AppLink, AppNavigationProvider, AppShell, AuthError, AuthLoading, BuilderScreenView, CORE_PAGE_IDS, CURRENT_REP_QUERY_KEY, CURRENT_USER_QUERY_KEY, CalendarWidget, CarouselWidget, CatchUpWidget, ChartWidget, ContactsScreen, ContainerWidget, CustomersScreen, DEFAULT_AUTH_URL, DEFAULT_COLORS, DEFAULT_FONT_FAMILIES, DEFAULT_FONT_SIZES, DEFAULT_RADII, DEFAULT_SDK_WIDGET_REGISTRY, DEFAULT_SPACING, DEFAULT_THEME_ID, DEFAULT_THEME_NAME, EmbedWidget, FONT_FAMILY_KEYS, FONT_SIZE_KEYS, FluidAuthProvider, FluidProvider, FluidThemeProvider, ImageWidget, LayoutWidget, ListWidget, MessagingScreen, MySiteWidget, NestedWidget, OrdersScreen, PAGE_CATEGORIES, PERMISSIONS_QUERY_KEY, PROFILE_QUERY_KEY, PROPERTY_FIELD_TYPES, PageRouter, PageTemplateProvider, PageTemplateRegistry, ProductsScreen, ProfileScreen, QuickLinksDropdown, QuickShareWidget, RADIUS_KEYS, RecentActivityWidget, RequireAuth, SEMANTIC_COLOR_NAMES, SHADE_STEPS, STORAGE_KEYS, SdkHeader, SdkNavigation, ShareablesScreen, ShopScreen, SpacerWidget, SubscriptionsScreen, TableWidget, TextWidget, ThemeModeProvider, ToDoWidget, URL_PARAMS, USER_TYPES, VideoWidget, WIDGET_TYPE_NAMES, alertWidgetPropertySchema, applyTheme, assertDefined, assertNever, buildThemeDefinition, calendarWidgetPropertySchema, carouselWidgetPropertySchema, catchUpWidgetPropertySchema, chartWidgetPropertySchema, cleanTokenFromUrl, clearTokens, collectNavSlugs, contactsScreenPropertySchema, containerWidgetPropertySchema, createDefaultAuthRedirect, createFluidClient, createFluidFileUploader, createScreen, createWidgetFromShareable, createWidgetRegistry, customersScreenPropertySchema, decodeToken, deriveDarkVariant, deserialiseTheme, embedWidgetPropertySchema, extractAllTokensFromUrl, extractCompanyTokenFromUrl, extractSlugFromPathname, extractTokenFromUrl, gapValues, generateShades, generateThemeCSS, getActiveThemeId, getAvailablePageTemplates, getCorePageTemplates, getDefaultThemeDefinition, getForegroundColor, getOptionalPageTemplates, getProperty, getStoredToken, getThemeModeAttribute, getTokenExpiration, getTokenTimeRemaining, groupChildrenByColumn, hasData, hasStoredToken, hasTokenInUrl, imageWidgetPropertySchema, isActivitySlug, isApiError, isContactStatus, isErrorResult, isIdle, isLoading, isPropertyFieldType, isSlugInSection, isTokenExpired, isUserType, isValidToken, isWidgetType, isWidgetTypeName, layoutWidgetPropertySchema, listWidgetPropertySchema, matchSlugPrefix, mergeDarkOverrides, messagingScreenPropertySchema, mySiteWidgetPropertySchema, nestedWidgetPropertySchema, normalizeComponentTree, ordersScreenPropertySchema, parseColor, productsScreenPropertySchema, profileScreenPropertySchema, quickShareWidgetPropertySchema, recentActivityWidgetPropertySchema, removeAllThemes, removeTheme, resolveNavigationPages, resolveTheme, screenPropertySchemas, sectionLayoutConfig, selectProperty, serialiseTheme, shareablesScreenPropertySchema, shopScreenPropertySchema, spacerWidgetPropertySchema, storeToken, subscriptionsScreenPropertySchema, tableWidgetPropertySchema, textWidgetPropertySchema, toDoWidgetPropertySchema, toNavigationItem, toScreenDefinition, transformManifestToRepAppData, transformThemes, useActivities, useAppNavigation, useCalendarEvents, useCatchUps, useContact, useContacts, useConversationMessages, useConversations, useCurrentRep, useCurrentUser, useFluidApi, useFluidApp, useFluidAuth, useFluidAuthContext, useFluidContext, useFluidPermissions, useFluidProfile, useFluidTheme, useMessagingAuth, useMessagingConfig, useMySite, usePageTemplates, useResolvedPages, useThemeContext, useThemeMode, useTodos, validateNavigationPages, validateToken, videoWidgetPropertySchema, widgetPropertySchemas };
|
|
3800
3792
|
|
|
3801
3793
|
//# sourceMappingURL=index.mjs.map
|