@fluid-app/portal-sdk 0.1.455 → 0.1.457
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/{AlertWidget-CdWJXZn1.mjs → AlertWidget-BtkVIGr9.mjs} +2 -2
- package/dist/{AlertWidget-CdWJXZn1.mjs.map → AlertWidget-BtkVIGr9.mjs.map} +1 -1
- package/dist/{AlertWidget-BJekf1r1.cjs → AlertWidget-C5sAMhqU.cjs} +2 -2
- package/dist/{AlertWidget-BJekf1r1.cjs.map → AlertWidget-C5sAMhqU.cjs.map} +1 -1
- package/dist/{ContactsScreen-DsHXXYfF.cjs → ContactsScreen-BTCUeDHl.cjs} +1 -1
- package/dist/{ContactsScreen-TO0LAuHz.cjs → ContactsScreen-Cu6-ckm9.cjs} +23 -13
- package/dist/ContactsScreen-Cu6-ckm9.cjs.map +1 -0
- package/dist/{ContactsScreen-DhMQm4w2.mjs → ContactsScreen-D0l3-Xof.mjs} +23 -13
- package/dist/ContactsScreen-D0l3-Xof.mjs.map +1 -0
- package/dist/{FluidProvider-BULkBuyn.cjs → FluidProvider-Dm5QH6EP.cjs} +2 -2
- package/dist/{FluidProvider-BULkBuyn.cjs.map → FluidProvider-Dm5QH6EP.cjs.map} +1 -1
- package/dist/{FluidProvider-CA_HAl9a.mjs → FluidProvider-KBZgRXjL.mjs} +2 -2
- package/dist/{FluidProvider-CA_HAl9a.mjs.map → FluidProvider-KBZgRXjL.mjs.map} +1 -1
- package/dist/{MessagingScreen-DWH9xBbq.cjs → MessagingScreen-BrbkMeld.cjs} +2 -2
- package/dist/{MessagingScreen-DWH9xBbq.cjs.map → MessagingScreen-BrbkMeld.cjs.map} +1 -1
- package/dist/{MessagingScreen-CYOGaqKX.mjs → MessagingScreen-BtoXnSqJ.mjs} +2 -2
- package/dist/{MessagingScreen-CYOGaqKX.mjs.map → MessagingScreen-BtoXnSqJ.mjs.map} +1 -1
- package/dist/{MessagingScreen-BG6clVDQ.mjs → MessagingScreen-CYqzOl6D.mjs} +6 -6
- package/dist/{MessagingScreen-B_nyIg2b.cjs → MessagingScreen-uuydnJEi.cjs} +5 -5
- package/dist/{OrdersScreen-DMlrdteQ.mjs → OrdersScreen-CutgAgyO.mjs} +6 -6
- package/dist/{OrdersScreen-Dh_nsi8j.cjs → OrdersScreen-DKQmax51.cjs} +2 -2
- package/dist/{OrdersScreen-Dh_nsi8j.cjs.map → OrdersScreen-DKQmax51.cjs.map} +1 -1
- package/dist/{OrdersScreen-CfchcnYB.cjs → OrdersScreen-UaQcR3IU.cjs} +5 -5
- package/dist/{OrdersScreen-CBF6uZSk.mjs → OrdersScreen-eqJy6_m3.mjs} +2 -2
- package/dist/{OrdersScreen-CBF6uZSk.mjs.map → OrdersScreen-eqJy6_m3.mjs.map} +1 -1
- package/dist/{ProfileScreen-t2V-W4Dv.cjs → ProfileScreen-B5DcNq7i.cjs} +6 -6
- package/dist/{ProfileScreen-CbYASEr9.mjs → ProfileScreen-C4SiOL-k.mjs} +7 -7
- package/dist/{ProfileScreen-DlPK9S_Q.mjs → ProfileScreen-CealQbpo.mjs} +3 -3
- package/dist/{ProfileScreen-DlPK9S_Q.mjs.map → ProfileScreen-CealQbpo.mjs.map} +1 -1
- package/dist/{ProfileScreen-CXqMOEza.cjs → ProfileScreen-DXSnyfCO.cjs} +3 -3
- package/dist/{ProfileScreen-CXqMOEza.cjs.map → ProfileScreen-DXSnyfCO.cjs.map} +1 -1
- package/dist/{ShopScreen-1vtAE4X7.mjs → ShopScreen-B6cf4gW-.mjs} +6 -6
- package/dist/{ShopScreen-CrObPeSv.cjs → ShopScreen-CcupxIut.cjs} +2 -2
- package/dist/{ShopScreen-CrObPeSv.cjs.map → ShopScreen-CcupxIut.cjs.map} +1 -1
- package/dist/{ShopScreen-BWDYXw4Q.cjs → ShopScreen-DH_TcNMs.cjs} +5 -5
- package/dist/{ShopScreen-BnuiYHKY.mjs → ShopScreen-z2J4fRfs.mjs} +3 -3
- package/dist/{ShopScreen-BnuiYHKY.mjs.map → ShopScreen-z2J4fRfs.mjs.map} +1 -1
- package/dist/{ShopWidget-CwiD88Sr.mjs → ShopWidget-DXVNRrFY.mjs} +2 -2
- package/dist/{ShopWidget-CwiD88Sr.mjs.map → ShopWidget-DXVNRrFY.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-CBIjEFKA.mjs → SubscriptionsScreen-CBEULwpU.mjs} +7 -7
- package/dist/{SubscriptionsScreen-Bjdz5fx-.cjs → SubscriptionsScreen-CTrOXRIz.cjs} +3 -3
- package/dist/{SubscriptionsScreen-Bjdz5fx-.cjs.map → SubscriptionsScreen-CTrOXRIz.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-BlB3Ppoa.cjs → SubscriptionsScreen-DdlwKkJ1.cjs} +6 -6
- package/dist/{SubscriptionsScreen-DyjmAOvJ.mjs → SubscriptionsScreen-DyL-7oeE.mjs} +3 -3
- package/dist/{SubscriptionsScreen-DyjmAOvJ.mjs.map → SubscriptionsScreen-DyL-7oeE.mjs.map} +1 -1
- package/dist/{TextWidget-CY71e66E.cjs → TextWidget-CNks2l1S.cjs} +4 -3
- package/dist/TextWidget-CNks2l1S.cjs.map +1 -0
- package/dist/{TextWidget-B-2RFD_g.mjs → TextWidget-cnDl92rJ.mjs} +4 -3
- package/dist/TextWidget-cnDl92rJ.mjs.map +1 -0
- package/dist/{build-widget-registry-L8a9-O3A.cjs → build-widget-registry-Bg8G7GQF.cjs} +29 -5
- package/dist/build-widget-registry-Bg8G7GQF.cjs.map +1 -0
- package/dist/{build-widget-registry-Dy8S7Ggy.mjs → build-widget-registry-fQIvocLa.mjs} +26 -8
- package/dist/build-widget-registry-fQIvocLa.mjs.map +1 -0
- package/dist/index.cjs +215 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +7 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +215 -24
- package/dist/index.mjs.map +1 -1
- package/dist/{use-portal-card-add-3ds-flow-B4wqRVNt.mjs → use-portal-card-add-3ds-flow-Caupep6C.mjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-B4wqRVNt.mjs.map → use-portal-card-add-3ds-flow-Caupep6C.mjs.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-Dt29-X8z.cjs → use-portal-card-add-3ds-flow-Cl3H-Dp7.cjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-Dt29-X8z.cjs.map → use-portal-card-add-3ds-flow-Cl3H-Dp7.cjs.map} +1 -1
- package/dist/utils/build-remote-widget-plugin-manifests.cjs +3 -3
- package/dist/utils/build-remote-widget-plugin-manifests.mjs +4 -4
- package/package.json +9 -9
- package/dist/ContactsScreen-DhMQm4w2.mjs.map +0 -1
- package/dist/ContactsScreen-TO0LAuHz.cjs.map +0 -1
- package/dist/TextWidget-B-2RFD_g.mjs.map +0 -1
- package/dist/TextWidget-CY71e66E.cjs.map +0 -1
- package/dist/build-widget-registry-Dy8S7Ggy.mjs.map +0 -1
- package/dist/build-widget-registry-L8a9-O3A.cjs.map +0 -1
|
@@ -2,8 +2,8 @@ import { t as useAccount } from "./use-account-DR6HXMw_.mjs";
|
|
|
2
2
|
import { t as QuickLinksWidget } from "./QuickLinksWidget-o7VeOJix.mjs";
|
|
3
3
|
import { t as PointsWidget } from "./PointsWidget-7OpNqRDe.mjs";
|
|
4
4
|
import { t as LayoutWidget } from "./LayoutWidget-ENLd1G__.mjs";
|
|
5
|
-
import { t as TextWidget } from "./TextWidget-
|
|
6
|
-
import { t as AlertWidget } from "./AlertWidget-
|
|
5
|
+
import { t as TextWidget } from "./TextWidget-cnDl92rJ.mjs";
|
|
6
|
+
import { t as AlertWidget } from "./AlertWidget-BtkVIGr9.mjs";
|
|
7
7
|
import { t as BulletListWidget } from "./BulletListWidget-DZrlNEa4.mjs";
|
|
8
8
|
import { t as CalendarWidget } from "./CalendarWidget-DwZ5hrXx.mjs";
|
|
9
9
|
import { t as CardWidget } from "./CardWidget-Bs0hqVjy.mjs";
|
|
@@ -23,7 +23,7 @@ import { t as SpacerWidget } from "./SpacerWidget-BJxZMWLm.mjs";
|
|
|
23
23
|
import { t as TableWidget } from "./TableWidget-BCIzecMi.mjs";
|
|
24
24
|
import { t as ToDoWidget } from "./ToDoWidget-DtM9JWAS.mjs";
|
|
25
25
|
import { t as VideoWidget } from "./VideoWidget-DyyX7THj.mjs";
|
|
26
|
-
import { t as ShopWidget } from "./ShopWidget-
|
|
26
|
+
import { t as ShopWidget } from "./ShopWidget-DXVNRrFY.mjs";
|
|
27
27
|
import { r as useOptionalAppNavigation } from "./AppNavigationContext-CUpMPyMJ.mjs";
|
|
28
28
|
import { t as useStore } from "./use-store-mvCr42YP.mjs";
|
|
29
29
|
import { createContext, createElement, use, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
@@ -1392,7 +1392,7 @@ function createWidgetFromShareable(item) {
|
|
|
1392
1392
|
//#endregion
|
|
1393
1393
|
//#region ../widgets/src/widgets/index.ts
|
|
1394
1394
|
const widgetPropertySchemas = {
|
|
1395
|
-
AlertWidget: () => import("./AlertWidget-
|
|
1395
|
+
AlertWidget: () => import("./AlertWidget-BtkVIGr9.mjs").then((n) => n.n).then((m) => m.alertWidgetPropertySchema),
|
|
1396
1396
|
BulletListWidget: () => import("./BulletListWidget-DZrlNEa4.mjs").then((n) => n.n).then((m) => m.bulletListWidgetPropertySchema),
|
|
1397
1397
|
CalendarWidget: () => import("./CalendarWidget-DwZ5hrXx.mjs").then((n) => n.n).then((m) => m.calendarWidgetPropertySchema),
|
|
1398
1398
|
CardWidget: () => import("./CardWidget-Bs0hqVjy.mjs").then((n) => n.n).then((m) => m.cardWidgetPropertySchema),
|
|
@@ -1412,10 +1412,10 @@ const widgetPropertySchemas = {
|
|
|
1412
1412
|
QuickShareWidget: () => import("./QuickShareWidget-ujuaFstp.mjs").then((n) => n.n).then((m) => m.quickShareWidgetPropertySchema),
|
|
1413
1413
|
RecentActivityWidget: () => import("./RecentActivityWidget-DUHVpA_j.mjs").then((n) => n.n).then((m) => m.recentActivityWidgetPropertySchema),
|
|
1414
1414
|
SeparatorWidget: () => import("./SeparatorWidget-Cqzqs_G_.mjs").then((n) => n.n).then((m) => m.separatorWidgetPropertySchema),
|
|
1415
|
-
ShopWidget: () => import("./ShopWidget-
|
|
1415
|
+
ShopWidget: () => import("./ShopWidget-DXVNRrFY.mjs").then((n) => n.n).then((m) => m.shopWidgetPropertySchema),
|
|
1416
1416
|
SpacerWidget: () => import("./SpacerWidget-BJxZMWLm.mjs").then((n) => n.n).then((m) => m.spacerWidgetPropertySchema),
|
|
1417
1417
|
TableWidget: () => import("./TableWidget-BCIzecMi.mjs").then((n) => n.n).then((m) => m.tableWidgetPropertySchema),
|
|
1418
|
-
TextWidget: () => import("./TextWidget-
|
|
1418
|
+
TextWidget: () => import("./TextWidget-cnDl92rJ.mjs").then((n) => n.n).then((m) => m.textWidgetPropertySchema),
|
|
1419
1419
|
ToDoWidget: () => import("./ToDoWidget-DtM9JWAS.mjs").then((n) => n.n).then((m) => m.toDoWidgetPropertySchema),
|
|
1420
1420
|
VideoWidget: () => import("./VideoWidget-DyyX7THj.mjs").then((n) => n.n).then((m) => m.videoWidgetPropertySchema)
|
|
1421
1421
|
};
|
|
@@ -1448,6 +1448,24 @@ const DEFAULT_SDK_WIDGET_REGISTRY = createWidgetRegistry({
|
|
|
1448
1448
|
ToDoWidget,
|
|
1449
1449
|
VideoWidget
|
|
1450
1450
|
});
|
|
1451
|
+
/**
|
|
1452
|
+
* True only when `component` is the exact built-in component this SDK
|
|
1453
|
+
* registers for `widgetType` — i.e. the runtime registry (which apps can
|
|
1454
|
+
* extend or override via `RegistryProvider`) hasn't swapped it out for a
|
|
1455
|
+
* custom one.
|
|
1456
|
+
*
|
|
1457
|
+
* `DEFAULT_PROPERTY_SCHEMA_REGISTRY` (see `../utils/warn-unknown-widget-props`
|
|
1458
|
+
* and its call site) only describes the built-in components' own props. An
|
|
1459
|
+
* app-provided override of a built-in widget type may accept a completely
|
|
1460
|
+
* different prop shape, and a custom/company widget that happens to reuse a
|
|
1461
|
+
* built-in type name isn't the widget the schema describes either — in both
|
|
1462
|
+
* cases validating against the built-in schema would be checking the wrong
|
|
1463
|
+
* contract. Gate the unknown-prop warning on this identity check so it only
|
|
1464
|
+
* ever runs against the component the schema actually documents.
|
|
1465
|
+
*/
|
|
1466
|
+
function isDefaultWidgetComponent(widgetType, component) {
|
|
1467
|
+
return DEFAULT_SDK_WIDGET_REGISTRY[widgetType] === component;
|
|
1468
|
+
}
|
|
1451
1469
|
const REMOTE_DOM_WIDGET_RUNTIME = "remote-dom";
|
|
1452
1470
|
const PACKAGE_FIELDS = new Set([
|
|
1453
1471
|
"manifestVersion",
|
|
@@ -2711,6 +2729,6 @@ function isBuiltInWidgetType(widgetType) {
|
|
|
2711
2729
|
return Object.prototype.hasOwnProperty.call(DEFAULT_SDK_WIDGET_REGISTRY, widgetType);
|
|
2712
2730
|
}
|
|
2713
2731
|
//#endregion
|
|
2714
|
-
export {
|
|
2732
|
+
export { serialiseTheme as A, deriveDarkVariant as B, applyTheme as C, getActiveThemeId as D, buildThemeDefinition as E, DEFAULT_SPACING as F, FONT_FAMILY_KEYS as G, mergeDarkOverrides as H, DEFAULT_THEME_ID as I, SEMANTIC_COLOR_NAMES as J, FONT_SIZE_KEYS as K, DEFAULT_THEME_NAME as L, DEFAULT_FONT_FAMILIES as M, DEFAULT_FONT_SIZES as N, transformThemes as O, DEFAULT_RADII as P, deleteDatabase as Q, getDefaultThemeDefinition as R, createWidgetRegistry as S, removeTheme as T, parseColor as U, getForegroundColor as V, resolveTheme as W, useAppDefinitionApi as X, AppDefinitionApiProvider as Y, createPersister as Z, DEFAULT_SDK_WIDGET_REGISTRY as _, useScreenAreaFullscreenSnapshot as a, createScreen as b, useFluidApp as c, toNavigationItem as d, normalizeComponentTree as f, isRemoteDomWidgetPackageDescriptor as g, useCompanyScopedQueryKey as h, useOptionalScreenAreaFullscreenCoordinator as i, DEFAULT_COLORS as j, deserialiseTheme as k, toRawManifest as l, createCompanyQueryKey as m, projectRemoteWidgetPackages as n, APP_DATA_QUERY_KEY as o, toScreenDefinition as p, RADIUS_KEYS as q, ScreenAreaFullscreenProvider as r, fetchRawManifest as s, buildRemoteWidgetRegistry as t, transformManifestToRepAppData as u, isDefaultWidgetComponent as v, removeAllThemes as w, createWidgetFromShareable as x, widgetPropertySchemas as y, generateThemeCSS as z };
|
|
2715
2733
|
|
|
2716
|
-
//# sourceMappingURL=build-widget-registry-
|
|
2734
|
+
//# sourceMappingURL=build-widget-registry-fQIvocLa.mjs.map
|