@fluid-app/portal-sdk 0.1.189 → 0.1.191
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/{FluidProvider-DAmr6a0k.mjs → FluidProvider-BPwrZY_X.mjs} +47 -2
- package/dist/FluidProvider-BPwrZY_X.mjs.map +1 -0
- package/dist/{FluidProvider-Dju4QK7s.cjs → FluidProvider-Ci3tUVMM.cjs} +47 -2
- package/dist/{FluidProvider-Dju4QK7s.cjs.map → FluidProvider-Ci3tUVMM.cjs.map} +1 -1
- package/dist/{MessagingScreen-UTpL8TO8.cjs → MessagingScreen-B1EUsool.cjs} +2 -2
- package/dist/{MessagingScreen-BJ3KgBMv.mjs → MessagingScreen-CTkPjXmw.mjs} +2 -2
- package/dist/{MessagingScreen-BJ3KgBMv.mjs.map → MessagingScreen-CTkPjXmw.mjs.map} +1 -1
- package/dist/{MessagingScreen-Dp4PWjF6.cjs → MessagingScreen-uWR24DJL.cjs} +2 -2
- package/dist/{MessagingScreen-Dp4PWjF6.cjs.map → MessagingScreen-uWR24DJL.cjs.map} +1 -1
- package/dist/{OrdersScreen-BhQb-GfA.cjs → OrdersScreen-C0cYz9Ka.cjs} +1 -1
- package/dist/{OrdersScreen-_YRZOpzG.cjs → OrdersScreen-CFTZi2HF.cjs} +2 -2
- package/dist/{OrdersScreen-_YRZOpzG.cjs.map → OrdersScreen-CFTZi2HF.cjs.map} +1 -1
- package/dist/{OrdersScreen-DdlRUs1o.mjs → OrdersScreen-CjbzJrnk.mjs} +2 -2
- package/dist/{OrdersScreen-DdlRUs1o.mjs.map → OrdersScreen-CjbzJrnk.mjs.map} +1 -1
- package/dist/{PortalContentApiProvider-BXh413h2.cjs → PortalContentApiProvider-CvH9BEAO.cjs} +2 -2
- package/dist/{PortalContentApiProvider-BXh413h2.cjs.map → PortalContentApiProvider-CvH9BEAO.cjs.map} +1 -1
- package/dist/{PortalContentApiProvider-CDvrK3NY.mjs → PortalContentApiProvider-DloCNJGC.mjs} +2 -2
- package/dist/{PortalContentApiProvider-CDvrK3NY.mjs.map → PortalContentApiProvider-DloCNJGC.mjs.map} +1 -1
- package/dist/{PortalProductsApiProvider-DygjD0KL.mjs → PortalProductsApiProvider-Bcj1VwsT.mjs} +2 -2
- package/dist/{PortalProductsApiProvider-DygjD0KL.mjs.map → PortalProductsApiProvider-Bcj1VwsT.mjs.map} +1 -1
- package/dist/{PortalProductsApiProvider-CX1JFxIs.cjs → PortalProductsApiProvider-v_vGVQTY.cjs} +2 -2
- package/dist/{PortalProductsApiProvider-CX1JFxIs.cjs.map → PortalProductsApiProvider-v_vGVQTY.cjs.map} +1 -1
- package/dist/{ProductsScreen-N8KPjg23.cjs → ProductsScreen-5K6to2Vm.cjs} +3 -3
- package/dist/{ProductsScreen-N8KPjg23.cjs.map → ProductsScreen-5K6to2Vm.cjs.map} +1 -1
- package/dist/{ProductsScreen-DZCcGxda.cjs → ProductsScreen-BY_eZwLd.cjs} +3 -3
- package/dist/{ProductsScreen-Cvfdoyzd.mjs → ProductsScreen-h7-hyha0.mjs} +3 -3
- package/dist/{ProductsScreen-B3EdQ-L3.mjs → ProductsScreen-jk9Iiscy.mjs} +3 -3
- package/dist/{ProductsScreen-B3EdQ-L3.mjs.map → ProductsScreen-jk9Iiscy.mjs.map} +1 -1
- package/dist/{ProfileScreen-CXweavjw.cjs → ProfileScreen-BF0ngN58.cjs} +2 -2
- package/dist/{ProfileScreen-CXweavjw.cjs.map → ProfileScreen-BF0ngN58.cjs.map} +1 -1
- package/dist/{ProfileScreen-CfIzOP2B.mjs → ProfileScreen-CeqjmmOa.mjs} +2 -2
- package/dist/{ProfileScreen-CfIzOP2B.mjs.map → ProfileScreen-CeqjmmOa.mjs.map} +1 -1
- package/dist/{ProfileScreen-CiDFvBuh.cjs → ProfileScreen-qE9eKIra.cjs} +2 -2
- package/dist/{ShareablesScreen-D8xqVOhg.mjs → ShareablesScreen-B56lNgZ7.mjs} +3 -3
- package/dist/{ShareablesScreen-D8xqVOhg.mjs.map → ShareablesScreen-B56lNgZ7.mjs.map} +1 -1
- package/dist/{ShareablesScreen-DFr9xBGj.cjs → ShareablesScreen-CVrbEivj.cjs} +3 -3
- package/dist/{ShareablesScreen-DFr9xBGj.cjs.map → ShareablesScreen-CVrbEivj.cjs.map} +1 -1
- package/dist/{ShareablesScreen-CiQfGfuT.cjs → ShareablesScreen-CXrS4anN.cjs} +3 -3
- package/dist/{ShareablesScreen-BGFm3YsO.mjs → ShareablesScreen-DPoZVeXu.mjs} +3 -3
- package/dist/{ShopScreen-Divto-Qu.mjs → ShopScreen-CTuIZ1oW.mjs} +3 -3
- package/dist/{ShopScreen-Divto-Qu.mjs.map → ShopScreen-CTuIZ1oW.mjs.map} +1 -1
- package/dist/{ShopScreen-DD5locXS.cjs → ShopScreen-CbEH6dtZ.cjs} +3 -3
- package/dist/{ShopScreen-DD5locXS.cjs.map → ShopScreen-CbEH6dtZ.cjs.map} +1 -1
- package/dist/{ShopScreen-QWN88tCZ.cjs → ShopScreen-DcGMGI3h.cjs} +3 -3
- package/dist/{SubscriptionsScreen-C65d5UCf.mjs → SubscriptionsScreen-BQ5BoMZO.mjs} +2 -2
- package/dist/{SubscriptionsScreen-C65d5UCf.mjs.map → SubscriptionsScreen-BQ5BoMZO.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DBL-ZpkV.cjs → SubscriptionsScreen-BR_YMBYs.cjs} +1 -1
- package/dist/{SubscriptionsScreen-Ch8xMuEO.cjs → SubscriptionsScreen-CzxhX8CT.cjs} +2 -2
- package/dist/{SubscriptionsScreen-Ch8xMuEO.cjs.map → SubscriptionsScreen-CzxhX8CT.cjs.map} +1 -1
- package/dist/index.cjs +24 -24
- package/dist/index.mjs +24 -24
- package/dist/{portal_tenant-CvP7rhIy.cjs → portal_tenant-B2lPHXgm.cjs} +33 -1
- package/dist/portal_tenant-B2lPHXgm.cjs.map +1 -0
- package/dist/{portal_tenant-Vkge0BiD.mjs → portal_tenant-KkdoWwTr.mjs} +22 -2
- package/dist/portal_tenant-KkdoWwTr.mjs.map +1 -0
- package/package.json +18 -18
- package/dist/FluidProvider-DAmr6a0k.mjs.map +0 -1
- package/dist/portal_tenant-CvP7rhIy.cjs.map +0 -1
- package/dist/portal_tenant-Vkge0BiD.mjs.map +0 -1
|
@@ -3,7 +3,7 @@ import { t as AccountApiProvider } from "./account-api-context-BIZ_aibJ.mjs";
|
|
|
3
3
|
import { t as StoreApiProvider } from "./store-api-context-C1lXT_3d.mjs";
|
|
4
4
|
import { t as MySiteApiProvider } from "./mysite-api-context-bXtZ8Gbm.mjs";
|
|
5
5
|
import { t as CountriesApiProvider } from "./countries-api-context-Dob_AzPO.mjs";
|
|
6
|
-
import { a as
|
|
6
|
+
import { a as enrollment_packs_show, c as products_list, d as products_show, f as store_show, i as calendar_events_list, m as subscriptions_list, n as account_update, o as orders_list, r as app_manifest_show, t as account_show, x as todos_list } from "./portal_tenant-KkdoWwTr.mjs";
|
|
7
7
|
import { C as playlists_show, g as pages_show, m as media_show } from "./portal_tenant_content-DgM42X08.mjs";
|
|
8
8
|
import { n as usePortalTenantClient, t as PortalTenantClientProvider } from "./PortalTenantClientProvider-4ZmY6hac.mjs";
|
|
9
9
|
import { t as DataSourceRegistryProvider } from "./registry-context-CrKm3pxA.mjs";
|
|
@@ -2402,6 +2402,37 @@ function useThemeContext() {
|
|
|
2402
2402
|
}
|
|
2403
2403
|
//#endregion
|
|
2404
2404
|
//#region src/adapters/widgets-api-adapter.ts
|
|
2405
|
+
function mapBffCalendarEvent(event) {
|
|
2406
|
+
return {
|
|
2407
|
+
id: event.id,
|
|
2408
|
+
title: event.title,
|
|
2409
|
+
color: event.color ?? null,
|
|
2410
|
+
start: event.start,
|
|
2411
|
+
end: event.end,
|
|
2412
|
+
description: null,
|
|
2413
|
+
url: null,
|
|
2414
|
+
active: null,
|
|
2415
|
+
timeZone: null,
|
|
2416
|
+
status: null,
|
|
2417
|
+
imageUrl: null,
|
|
2418
|
+
images: null,
|
|
2419
|
+
venue: null,
|
|
2420
|
+
countries: null,
|
|
2421
|
+
hasTomorrow: null,
|
|
2422
|
+
hasYesterday: null,
|
|
2423
|
+
isAllDay: null
|
|
2424
|
+
};
|
|
2425
|
+
}
|
|
2426
|
+
function mapBffTodo(raw) {
|
|
2427
|
+
return {
|
|
2428
|
+
id: raw.id,
|
|
2429
|
+
body: raw.body,
|
|
2430
|
+
dueAt: raw.due_at ?? null,
|
|
2431
|
+
completedAt: null,
|
|
2432
|
+
createdAt: raw.created_at,
|
|
2433
|
+
contactName: null
|
|
2434
|
+
};
|
|
2435
|
+
}
|
|
2405
2436
|
function formatBffPointsDescription(ledger) {
|
|
2406
2437
|
const metadata = ledger.metadata;
|
|
2407
2438
|
if (metadata?.transaction_type) return metadata.transaction_type.split("_").map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ");
|
|
@@ -2434,6 +2465,20 @@ function mapBffMySiteProfile(profile) {
|
|
|
2434
2465
|
}
|
|
2435
2466
|
function createBffWidgetsAdapter(client) {
|
|
2436
2467
|
return {
|
|
2468
|
+
async fetchCalendarEvents() {
|
|
2469
|
+
try {
|
|
2470
|
+
return ((await calendar_events_list(client)).calendar_events ?? []).filter((e) => e.start && e.end).map(mapBffCalendarEvent);
|
|
2471
|
+
} catch (error) {
|
|
2472
|
+
throw new Error("Failed to fetch calendar events", { cause: error });
|
|
2473
|
+
}
|
|
2474
|
+
},
|
|
2475
|
+
async fetchTodos() {
|
|
2476
|
+
try {
|
|
2477
|
+
return ((await todos_list(client)).todos ?? []).map(mapBffTodo);
|
|
2478
|
+
} catch (error) {
|
|
2479
|
+
throw new Error("Failed to fetch todos", { cause: error });
|
|
2480
|
+
}
|
|
2481
|
+
},
|
|
2437
2482
|
async fetchMySite() {
|
|
2438
2483
|
try {
|
|
2439
2484
|
return mapBffMySiteProfile((await mysite_profile_show(client)).profile ?? {});
|
|
@@ -2865,4 +2910,4 @@ function useFluidContext() {
|
|
|
2865
2910
|
//#endregion
|
|
2866
2911
|
export { mergeDarkOverrides as A, usePayApi as B, DEFAULT_THEME_ID as C, deriveDarkVariant as D, generateThemeCSS as E, RADIUS_KEYS as F, createPersister as H, SEMANTIC_COLOR_NAMES as I, SHADE_STEPS as L, resolveTheme as M, FONT_FAMILY_KEYS as N, generateShades as O, FONT_SIZE_KEYS as P, ApiError as R, DEFAULT_SPACING as S, getDefaultThemeDefinition as T, deleteDatabase as U, useAppDefinitionApi as V, serialiseTheme as _, createScreen as a, DEFAULT_FONT_SIZES as b, FluidThemeProvider as c, removeAllThemes as d, removeTheme as f, deserialiseTheme as g, transformThemes as h, widgetPropertySchemas as i, parseColor as j, getForegroundColor as k, useThemeContext as l, getActiveThemeId as m, useFluidContext as n, createWidgetFromShareable as o, buildThemeDefinition as p, DEFAULT_SDK_WIDGET_REGISTRY as r, createWidgetRegistry as s, FluidProvider as t, applyTheme as u, DEFAULT_COLORS as v, DEFAULT_THEME_NAME as w, DEFAULT_RADII as x, DEFAULT_FONT_FAMILIES as y, useLanguagesApi as z };
|
|
2867
2912
|
|
|
2868
|
-
//# sourceMappingURL=FluidProvider-
|
|
2913
|
+
//# sourceMappingURL=FluidProvider-BPwrZY_X.mjs.map
|