@fluid-app/portal-sdk 0.1.456 → 0.1.458
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/{CardWidget-BbddboSI.cjs → CardWidget-8kubp1dh.cjs} +2 -2
- package/dist/{CardWidget-Bs0hqVjy.mjs → CardWidget-Dee9DpBH.mjs} +2 -2
- package/dist/{CardWidget-Bs0hqVjy.mjs.map → CardWidget-Dee9DpBH.mjs.map} +1 -1
- package/dist/{CardWidget-CGbAcMeq.cjs → CardWidget-YGsYcK7i.cjs} +2 -2
- package/dist/{CardWidget-CGbAcMeq.cjs.map → CardWidget-YGsYcK7i.cjs.map} +1 -1
- package/dist/{ContainerWidget-bbzSrNUJ.mjs → ContainerWidget-BVlY76wy.mjs} +2 -2
- package/dist/{ContainerWidget-bbzSrNUJ.mjs.map → ContainerWidget-BVlY76wy.mjs.map} +1 -1
- package/dist/{ContainerWidget-CRCAjF4G.cjs → ContainerWidget-Ba_Ti1Qh.cjs} +3 -3
- package/dist/{ContainerWidget-BOZYpAH1.cjs → ContainerWidget-DCDrjhgP.cjs} +2 -2
- package/dist/{ContainerWidget-BOZYpAH1.cjs.map → ContainerWidget-DCDrjhgP.cjs.map} +1 -1
- package/dist/{FluidProvider-CbA8KrhD.mjs → FluidProvider-C5JqeOGi.mjs} +3 -3
- package/dist/{FluidProvider-CbA8KrhD.mjs.map → FluidProvider-C5JqeOGi.mjs.map} +1 -1
- package/dist/{FluidProvider-JiGJqJQe.cjs → FluidProvider-LYDiXUkk.cjs} +3 -3
- package/dist/{FluidProvider-JiGJqJQe.cjs.map → FluidProvider-LYDiXUkk.cjs.map} +1 -1
- package/dist/{LayoutWidget-nea3CGc6.cjs → LayoutWidget-BKjkjoNO.cjs} +2 -2
- package/dist/{LayoutWidget-CS8fOr1e.cjs → LayoutWidget-CqIkNZNa.cjs} +2 -2
- package/dist/{LayoutWidget-CS8fOr1e.cjs.map → LayoutWidget-CqIkNZNa.cjs.map} +1 -1
- package/dist/{LayoutWidget-ENLd1G__.mjs → LayoutWidget-DkYKWC2P.mjs} +2 -2
- package/dist/{LayoutWidget-ENLd1G__.mjs.map → LayoutWidget-DkYKWC2P.mjs.map} +1 -1
- package/dist/{MessagingScreen-BeUhzBWr.cjs → MessagingScreen-BLZt8lMN.cjs} +2 -2
- package/dist/{MessagingScreen-BeUhzBWr.cjs.map → MessagingScreen-BLZt8lMN.cjs.map} +1 -1
- package/dist/{MessagingScreen-D6Bxoq0a.cjs → MessagingScreen-CoBvR0p4.cjs} +7 -7
- package/dist/{MessagingScreen-Dt6Rwk7_.mjs → MessagingScreen-CowNfnz0.mjs} +8 -8
- package/dist/{MessagingScreen-BtdVeSR5.mjs → MessagingScreen-kftHOAO7.mjs} +2 -2
- package/dist/{MessagingScreen-BtdVeSR5.mjs.map → MessagingScreen-kftHOAO7.mjs.map} +1 -1
- package/dist/{OrdersScreen-BirJq38x.cjs → OrdersScreen-B3Aa4ip-.cjs} +7 -7
- package/dist/{OrdersScreen-BSwESoF3.cjs → OrdersScreen-C-B6_Agy.cjs} +2 -2
- package/dist/{OrdersScreen-BSwESoF3.cjs.map → OrdersScreen-C-B6_Agy.cjs.map} +1 -1
- package/dist/{OrdersScreen-fZFg1l1W.mjs → OrdersScreen-DDQ8QXWo.mjs} +2 -2
- package/dist/{OrdersScreen-fZFg1l1W.mjs.map → OrdersScreen-DDQ8QXWo.mjs.map} +1 -1
- package/dist/{OrdersScreen-1kPmXJga.mjs → OrdersScreen-DPkq_mS2.mjs} +8 -8
- package/dist/{ProfileScreen-CirvTBwX.cjs → ProfileScreen-CK17yi8m.cjs} +8 -8
- package/dist/{ProfileScreen-Dj1pTzLz.mjs → ProfileScreen-DnlCxwh6.mjs} +3 -3
- package/dist/{ProfileScreen-Dj1pTzLz.mjs.map → ProfileScreen-DnlCxwh6.mjs.map} +1 -1
- package/dist/{ProfileScreen-BvxuA9P4.cjs → ProfileScreen-R4ulzpPu.cjs} +3 -3
- package/dist/{ProfileScreen-BvxuA9P4.cjs.map → ProfileScreen-R4ulzpPu.cjs.map} +1 -1
- package/dist/{ProfileScreen-Bqv7MNPH.mjs → ProfileScreen-ntvqBCpb.mjs} +9 -9
- package/dist/{ScreenRenderer-EGk5-w0h.cjs → ScreenRenderer-D0-ymcZV.cjs} +13 -4
- package/dist/ScreenRenderer-D0-ymcZV.cjs.map +1 -0
- package/dist/{ScreenRenderer-BQz-1cCn.mjs → ScreenRenderer-KJIcMne2.mjs} +13 -4
- package/dist/ScreenRenderer-KJIcMne2.mjs.map +1 -0
- package/dist/{ShopScreen-3ryiBWeh.cjs → ShopScreen-BtwvHTbN.cjs} +7 -7
- package/dist/{ShopScreen-CfvCqYJ9.mjs → ShopScreen-CGX6YHVV.mjs} +8 -8
- package/dist/{ShopScreen-BKWFrPHB.mjs → ShopScreen-CUoUECrG.mjs} +3 -3
- package/dist/{ShopScreen-BKWFrPHB.mjs.map → ShopScreen-CUoUECrG.mjs.map} +1 -1
- package/dist/{ShopScreen-C3vwiETG.cjs → ShopScreen-DS5-ICA-.cjs} +2 -2
- package/dist/{ShopScreen-C3vwiETG.cjs.map → ShopScreen-DS5-ICA-.cjs.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-DWB0E5Hu.cjs → SubscriptionsScreen-D04ldHXL.cjs} +3 -3
- package/dist/{SubscriptionsScreen-DWB0E5Hu.cjs.map → SubscriptionsScreen-D04ldHXL.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-Dv7PjXwb.mjs → SubscriptionsScreen-D0pn4_JR.mjs} +3 -3
- package/dist/{SubscriptionsScreen-Dv7PjXwb.mjs.map → SubscriptionsScreen-D0pn4_JR.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-COBaRHDG.cjs → SubscriptionsScreen-J4R7V7na.cjs} +8 -8
- package/dist/{SubscriptionsScreen-G64lYG5v.mjs → SubscriptionsScreen-qD8Mnh2A.mjs} +9 -9
- package/dist/{build-widget-registry-7slNHtKU.cjs → build-widget-registry-DMiPjMfG.cjs} +31 -7
- package/dist/build-widget-registry-DMiPjMfG.cjs.map +1 -0
- package/dist/{build-widget-registry-BZjLacQ8.mjs → build-widget-registry-Dveiky2q.mjs} +28 -10
- package/dist/build-widget-registry-Dveiky2q.mjs.map +1 -0
- package/dist/index.cjs +260 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +260 -26
- package/dist/index.mjs.map +1 -1
- package/dist/{use-portal-card-add-3ds-flow-tvSUKAvl.mjs → use-portal-card-add-3ds-flow--PAh5qUt.mjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-tvSUKAvl.mjs.map → use-portal-card-add-3ds-flow--PAh5qUt.mjs.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-C_Frj80d.cjs → use-portal-card-add-3ds-flow-DzFfku22.cjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-C_Frj80d.cjs.map → use-portal-card-add-3ds-flow-DzFfku22.cjs.map} +1 -1
- package/dist/utils/build-remote-widget-plugin-manifests.cjs +5 -5
- package/dist/utils/build-remote-widget-plugin-manifests.mjs +6 -6
- package/package.json +9 -9
- package/dist/ScreenRenderer-BQz-1cCn.mjs.map +0 -1
- package/dist/ScreenRenderer-EGk5-w0h.cjs.map +0 -1
- package/dist/build-widget-registry-7slNHtKU.cjs.map +0 -1
- package/dist/build-widget-registry-BZjLacQ8.mjs.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
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
|
-
import { t as LayoutWidget } from "./LayoutWidget-
|
|
4
|
+
import { t as LayoutWidget } from "./LayoutWidget-DkYKWC2P.mjs";
|
|
5
5
|
import { t as TextWidget } from "./TextWidget-cnDl92rJ.mjs";
|
|
6
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
|
-
import { t as CardWidget } from "./CardWidget-
|
|
9
|
+
import { t as CardWidget } from "./CardWidget-Dee9DpBH.mjs";
|
|
10
10
|
import { t as CarouselWidget } from "./CarouselWidget-DEyRWj_S.mjs";
|
|
11
11
|
import { t as ChartWidget } from "./ChartWidget-LcbtV1uD.mjs";
|
|
12
|
-
import { t as ContainerWidget } from "./ContainerWidget-
|
|
12
|
+
import { t as ContainerWidget } from "./ContainerWidget-BVlY76wy.mjs";
|
|
13
13
|
import { t as EmbedWidget } from "./EmbedWidget-EjCuOFOz.mjs";
|
|
14
14
|
import { t as ImageWidget } from "./ImageWidget-BjyKNhR9.mjs";
|
|
15
15
|
import { t as LinkWidget } from "./LinkWidget-BNZzqXbl.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";
|
|
@@ -1395,14 +1395,14 @@ const widgetPropertySchemas = {
|
|
|
1395
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
|
-
CardWidget: () => import("./CardWidget-
|
|
1398
|
+
CardWidget: () => import("./CardWidget-Dee9DpBH.mjs").then((n) => n.n).then((m) => m.cardWidgetPropertySchema),
|
|
1399
1399
|
CarouselWidget: () => import("./CarouselWidget-DEyRWj_S.mjs").then((n) => n.n).then((m) => m.carouselWidgetPropertySchema),
|
|
1400
1400
|
CatchUpWidget: () => import("./CatchUpWidget-dROZKeGW.mjs").then((n) => n.n).then((m) => m.catchUpWidgetPropertySchema),
|
|
1401
1401
|
ChartWidget: () => import("./ChartWidget-LcbtV1uD.mjs").then((n) => n.n).then((m) => m.chartWidgetPropertySchema),
|
|
1402
|
-
ContainerWidget: () => import("./ContainerWidget-
|
|
1402
|
+
ContainerWidget: () => import("./ContainerWidget-BVlY76wy.mjs").then((n) => n.n).then((m) => m.containerWidgetPropertySchema),
|
|
1403
1403
|
EmbedWidget: () => import("./EmbedWidget-EjCuOFOz.mjs").then((n) => n.n).then((m) => m.embedWidgetPropertySchema),
|
|
1404
1404
|
ImageWidget: () => import("./ImageWidget-BjyKNhR9.mjs").then((n) => n.n).then((m) => m.imageWidgetPropertySchema),
|
|
1405
|
-
LayoutWidget: () => import("./LayoutWidget-
|
|
1405
|
+
LayoutWidget: () => import("./LayoutWidget-DkYKWC2P.mjs").then((n) => n.n).then((m) => m.layoutWidgetPropertySchema),
|
|
1406
1406
|
LinkWidget: () => import("./LinkWidget-BNZzqXbl.mjs").then((n) => n.n).then((m) => m.linkWidgetPropertySchema),
|
|
1407
1407
|
ListWidget: () => import("./ListWidget-BRSCBH3b.mjs").then((n) => n.n).then((m) => m.listWidgetPropertySchema),
|
|
1408
1408
|
MySiteWidget: () => import("./MySiteWidget-CIFkSvEk.mjs").then((n) => n.n).then((m) => m.mySiteWidgetPropertySchema),
|
|
@@ -1412,7 +1412,7 @@ 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
1418
|
TextWidget: () => import("./TextWidget-cnDl92rJ.mjs").then((n) => n.n).then((m) => m.textWidgetPropertySchema),
|
|
@@ -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-Dveiky2q.mjs.map
|