@fluid-app/portal-sdk 0.1.764 → 0.1.765

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.
@@ -7,6 +7,7 @@ import "./MobileBottomSheet-D-qqYn5c.mjs";
7
7
  import "./translations-CdgcVe_2.mjs";
8
8
  import "./translation-api-context-factory-CEC_UpZg.mjs";
9
9
  import "./task-composer-form-DZ5bGOj2.mjs";
10
+ import "./use-account-_6m6foYx.mjs";
10
11
  import "./MobileActionSheet-DWrKALrm.mjs";
11
12
  import "./ResponsiveDialog-BNXqmNe_.mjs";
12
13
  import "./sidebar-BqTwYEfE.mjs";
@@ -23,6 +23,7 @@ import "./widgets-api-context-CLw35iC_.mjs";
23
23
  import "./EmbedWidget-C4xIr6S7.mjs";
24
24
  import "./PointsWidget-BE6o4vk3.mjs";
25
25
  import "./task-composer-form-DZ5bGOj2.mjs";
26
+ import "./use-account-_6m6foYx.mjs";
26
27
  import "./translation-api-context-DO_ynrG9.mjs";
27
28
  import "./LayoutWidget-B6461Gji.mjs";
28
29
  import "./registries-DJe9dUTb.mjs";
@@ -66,6 +67,7 @@ import "./ShopWidget-EeUNcE3M.mjs";
66
67
  import "./translation-adapter-C37avOSN.mjs";
67
68
  import "./translation-adapter-D4UNUw8I.mjs";
68
69
  import "./translation-adapter-BGwgAecf.mjs";
70
+ import "./use-store-jLETls7H.mjs";
69
71
  import "./sidebar-BqTwYEfE.mjs";
70
72
  import { n as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-BrI2GbhQ.mjs";
71
73
  import "./ScreenHeaderContext-D7jhJX8j.mjs";
@@ -4,6 +4,7 @@ import "./use-mysite-portal-D9B-L9GK.mjs";
4
4
  import "./MobileBottomSheet-D-qqYn5c.mjs";
5
5
  import "./translations-CdgcVe_2.mjs";
6
6
  import "./translation-api-context-factory-CEC_UpZg.mjs";
7
+ import "./use-account-_6m6foYx.mjs";
7
8
  import "./ResponsiveDialog-BNXqmNe_.mjs";
8
9
  import "./translation-adapter-BGwgAecf.mjs";
9
10
  import "./sidebar-BqTwYEfE.mjs";
@@ -23,6 +23,7 @@ import "./widgets-api-context-CLw35iC_.mjs";
23
23
  import "./EmbedWidget-C4xIr6S7.mjs";
24
24
  import "./PointsWidget-BE6o4vk3.mjs";
25
25
  import "./task-composer-form-DZ5bGOj2.mjs";
26
+ import "./use-account-_6m6foYx.mjs";
26
27
  import "./translation-api-context-DO_ynrG9.mjs";
27
28
  import "./LayoutWidget-B6461Gji.mjs";
28
29
  import "./registries-DJe9dUTb.mjs";
@@ -66,6 +67,7 @@ import "./ShopWidget-EeUNcE3M.mjs";
66
67
  import "./translation-adapter-C37avOSN.mjs";
67
68
  import "./translation-adapter-D4UNUw8I.mjs";
68
69
  import "./translation-adapter-BGwgAecf.mjs";
70
+ import "./use-store-jLETls7H.mjs";
69
71
  import "./ScreenHeaderContext-D7jhJX8j.mjs";
70
72
  import { n as ordersScreenPropertySchema, t as OrdersScreen } from "./OrdersScreen-CIQgu0mm.mjs";
71
73
  export { OrdersScreen, ordersScreenPropertySchema };
@@ -23,6 +23,7 @@ import "./widgets-api-context-CLw35iC_.mjs";
23
23
  import "./EmbedWidget-C4xIr6S7.mjs";
24
24
  import "./PointsWidget-BE6o4vk3.mjs";
25
25
  import "./task-composer-form-DZ5bGOj2.mjs";
26
+ import "./use-account-_6m6foYx.mjs";
26
27
  import "./translation-api-context-DO_ynrG9.mjs";
27
28
  import "./LayoutWidget-B6461Gji.mjs";
28
29
  import "./registries-DJe9dUTb.mjs";
@@ -66,6 +67,7 @@ import "./ShopWidget-EeUNcE3M.mjs";
66
67
  import "./translation-adapter-C37avOSN.mjs";
67
68
  import "./translation-adapter-D4UNUw8I.mjs";
68
69
  import "./translation-adapter-BGwgAecf.mjs";
70
+ import "./use-store-jLETls7H.mjs";
69
71
  import "./sidebar-BqTwYEfE.mjs";
70
72
  import "./ScreenHeaderContext-D7jhJX8j.mjs";
71
73
  import "./use-portal-card-add-3ds-flow-BEgDKY5T.mjs";
@@ -9,10 +9,12 @@ import "./SearchSort-DNPRaJdd.mjs";
9
9
  import "./use-share-link-BXkLSIn6.mjs";
10
10
  import { n as shareablesScreenPropertySchema, t as ShareablesScreen } from "./ShareablesScreen-BCHY-GrB.mjs";
11
11
  import "./translation-api-context-factory-CEC_UpZg.mjs";
12
+ import "./use-account-_6m6foYx.mjs";
12
13
  import "./purify.es-BvLQOUHj.mjs";
13
14
  import "./MobileActionSheet-DWrKALrm.mjs";
14
15
  import "./ResponsiveDialog-BNXqmNe_.mjs";
15
16
  import "./translation-adapter-C37avOSN.mjs";
17
+ import "./use-store-jLETls7H.mjs";
16
18
  import "./ScreenHeaderContext-D7jhJX8j.mjs";
17
19
  import "./dist-D8bAvP_X.mjs";
18
20
  import "./es-C23yRFfb.mjs";
@@ -7,6 +7,7 @@ import "./translation-api-context-factory-CEC_UpZg.mjs";
7
7
  import "./translation-api-context-DO_ynrG9.mjs";
8
8
  import "./use-can-show-volume-iLX3muBs.mjs";
9
9
  import "./MobileActionSheet-DWrKALrm.mjs";
10
+ import "./use-store-jLETls7H.mjs";
10
11
  import "./ScreenHeaderContext-D7jhJX8j.mjs";
11
12
  import { n as shopScreenPropertySchema, t as ShopScreen } from "./ShopScreen-CcKeCb2C.mjs";
12
13
  export { ShopScreen, shopScreenPropertySchema };
@@ -23,6 +23,7 @@ import "./widgets-api-context-CLw35iC_.mjs";
23
23
  import "./EmbedWidget-C4xIr6S7.mjs";
24
24
  import "./PointsWidget-BE6o4vk3.mjs";
25
25
  import "./task-composer-form-DZ5bGOj2.mjs";
26
+ import "./use-account-_6m6foYx.mjs";
26
27
  import "./translation-api-context-DO_ynrG9.mjs";
27
28
  import "./LayoutWidget-B6461Gji.mjs";
28
29
  import "./registries-DJe9dUTb.mjs";
@@ -66,6 +67,7 @@ import "./ShopWidget-EeUNcE3M.mjs";
66
67
  import "./translation-adapter-C37avOSN.mjs";
67
68
  import "./translation-adapter-D4UNUw8I.mjs";
68
69
  import "./translation-adapter-BGwgAecf.mjs";
70
+ import "./use-store-jLETls7H.mjs";
69
71
  import "./sidebar-BqTwYEfE.mjs";
70
72
  import "./ScreenHeaderContext-D7jhJX8j.mjs";
71
73
  import "./use-portal-card-add-3ds-flow-BEgDKY5T.mjs";
package/dist/index.mjs CHANGED
@@ -2149,15 +2149,15 @@ function resolveMemberTypePage(registry, memberTypeSlug, currentSlug, baseSlug)
2149
2149
  }
2150
2150
  //#endregion
2151
2151
  //#region src/shell/system-screen-map.ts
2152
- const ProfileScreen$1 = lazy(() => import("./ProfileScreen-DhUgEkY_.mjs").then((m) => ({ default: m.ProfileScreen })));
2153
- const OrdersScreen$1 = lazy(() => import("./OrdersScreen-D3ZCCBFS.mjs").then((m) => ({ default: m.OrdersScreen })));
2154
- const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-CcZH_AWm.mjs").then((m) => ({ default: m.SubscriptionsScreen })));
2155
- const MessagingScreen$1 = lazy(() => import("./MessagingScreen-NfikR1hM.mjs").then((m) => ({ default: m.MessagingScreen })));
2156
- const ContactsScreen$1 = lazy(() => import("./ContactsScreen-ChjOLSBG.mjs").then((m) => ({ default: m.ContactsScreen })));
2157
- const ShopScreen$1 = lazy(() => import("./ShopScreen-BOZMHTg7.mjs").then((m) => ({ default: m.ShopScreen })));
2152
+ const ProfileScreen$1 = lazy(() => import("./ProfileScreen-QKjDR0VG.mjs").then((m) => ({ default: m.ProfileScreen })));
2153
+ const OrdersScreen$1 = lazy(() => import("./OrdersScreen-MfZKxnpD.mjs").then((m) => ({ default: m.OrdersScreen })));
2154
+ const SubscriptionsScreen$1 = lazy(() => import("./SubscriptionsScreen-BWVszK_r.mjs").then((m) => ({ default: m.SubscriptionsScreen })));
2155
+ const MessagingScreen$1 = lazy(() => import("./MessagingScreen-wE_aR3Oa.mjs").then((m) => ({ default: m.MessagingScreen })));
2156
+ const ContactsScreen$1 = lazy(() => import("./ContactsScreen-H6TmPGyx.mjs").then((m) => ({ default: m.ContactsScreen })));
2157
+ const ShopScreen$1 = lazy(() => import("./ShopScreen-BwytzYIA.mjs").then((m) => ({ default: m.ShopScreen })));
2158
2158
  const CustomersScreen$1 = lazy(() => import("./CustomersScreen-DhTSmyD-.mjs").then((n) => n.n).then((m) => ({ default: m.CustomersScreen })));
2159
- const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-DkMNBP5z.mjs").then((m) => ({ default: m.ShareablesScreen })));
2160
- const MySiteScreen$1 = lazy(() => import("./MySiteScreen-Dhkz5x3e.mjs").then((m) => ({ default: m.MySiteScreen })));
2159
+ const ShareablesScreen$1 = lazy(() => import("./ShareablesScreen-gFBB8MKs.mjs").then((m) => ({ default: m.ShareablesScreen })));
2160
+ const MySiteScreen$1 = lazy(() => import("./MySiteScreen-Bwu2bc7P.mjs").then((m) => ({ default: m.MySiteScreen })));
2161
2161
  const AppDownloadScreen = lazy(() => import("./AppDownloadScreen-DrU6K0hA.mjs").then((n) => n.t).then((m) => ({ default: m.AppDownloadScreen })));
2162
2162
  const ActivityScreen$1 = lazy(() => import("./ActivityScreen-DsEMt2GY.mjs").then((n) => n.n).then((m) => ({ default: m.ActivityScreen })));
2163
2163
  const SCREEN_FOR_SLUG = {
@@ -4761,15 +4761,15 @@ const CORE_PAGE_IDS = {
4761
4761
  //#endregion
4762
4762
  //#region src/screens/index.ts
4763
4763
  const screenPropertySchemas = {
4764
- ProfileScreen: () => import("./ProfileScreen-DhUgEkY_.mjs").then((m) => m.profileScreenPropertySchema),
4765
- MessagingScreen: () => import("./MessagingScreen-NfikR1hM.mjs").then((m) => m.messagingScreenPropertySchema),
4766
- ContactsScreen: () => import("./ContactsScreen-ChjOLSBG.mjs").then((m) => m.contactsScreenPropertySchema),
4767
- OrdersScreen: () => import("./OrdersScreen-D3ZCCBFS.mjs").then((m) => m.ordersScreenPropertySchema),
4768
- SubscriptionsScreen: () => import("./SubscriptionsScreen-CcZH_AWm.mjs").then((m) => m.subscriptionsScreenPropertySchema),
4764
+ ProfileScreen: () => import("./ProfileScreen-QKjDR0VG.mjs").then((m) => m.profileScreenPropertySchema),
4765
+ MessagingScreen: () => import("./MessagingScreen-wE_aR3Oa.mjs").then((m) => m.messagingScreenPropertySchema),
4766
+ ContactsScreen: () => import("./ContactsScreen-H6TmPGyx.mjs").then((m) => m.contactsScreenPropertySchema),
4767
+ OrdersScreen: () => import("./OrdersScreen-MfZKxnpD.mjs").then((m) => m.ordersScreenPropertySchema),
4768
+ SubscriptionsScreen: () => import("./SubscriptionsScreen-BWVszK_r.mjs").then((m) => m.subscriptionsScreenPropertySchema),
4769
4769
  CustomersScreen: () => import("./CustomersScreen-DhTSmyD-.mjs").then((n) => n.n).then((m) => m.customersScreenPropertySchema),
4770
- MySiteScreen: () => import("./MySiteScreen-Dhkz5x3e.mjs").then((m) => m.mySiteScreenPropertySchema),
4771
- ShareablesScreen: () => import("./ShareablesScreen-DkMNBP5z.mjs").then((m) => m.shareablesScreenPropertySchema),
4772
- ShopScreen: () => import("./ShopScreen-BOZMHTg7.mjs").then((m) => m.shopScreenPropertySchema),
4770
+ MySiteScreen: () => import("./MySiteScreen-Bwu2bc7P.mjs").then((m) => m.mySiteScreenPropertySchema),
4771
+ ShareablesScreen: () => import("./ShareablesScreen-gFBB8MKs.mjs").then((m) => m.shareablesScreenPropertySchema),
4772
+ ShopScreen: () => import("./ShopScreen-BwytzYIA.mjs").then((m) => m.shopScreenPropertySchema),
4773
4773
  AppDownloadScreen: () => import("./AppDownloadScreen-DrU6K0hA.mjs").then((n) => n.t).then((m) => m.appDownloadScreenPropertySchema),
4774
4774
  ActivityScreen: () => import("./ActivityScreen-DsEMt2GY.mjs").then((n) => n.n).then((m) => m.activityScreenPropertySchema)
4775
4775
  };
@@ -20,6 +20,7 @@ import "../widgets-api-context-CLw35iC_.mjs";
20
20
  import "../EmbedWidget-C4xIr6S7.mjs";
21
21
  import "../PointsWidget-BE6o4vk3.mjs";
22
22
  import "../task-composer-form-DZ5bGOj2.mjs";
23
+ import "../use-account-_6m6foYx.mjs";
23
24
  import "../LayoutWidget-B6461Gji.mjs";
24
25
  import { y as isPropertyFieldType } from "../registries-DJe9dUTb.mjs";
25
26
  import "../fields-Dn82VSlh.mjs";
@@ -59,6 +60,7 @@ import "../ToDoWidget-CZbDVCGv.mjs";
59
60
  import "../ResponsiveDialog-BNXqmNe_.mjs";
60
61
  import "../VideoWidget-Cyidb63K.mjs";
61
62
  import "../ShopWidget-EeUNcE3M.mjs";
63
+ import "../use-store-jLETls7H.mjs";
62
64
  //#region src/utils/build-remote-widget-plugin-manifests.ts
63
65
  const REMOTE_WIDGET_PACKAGE_CATEGORY_PREFIX = "custom-widget-package";
64
66
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"build-remote-widget-plugin-manifests.mjs","names":[],"sources":["../../src/utils/build-remote-widget-plugin-manifests.ts"],"sourcesContent":["import type { ComponentType } from \"react\";\nimport { createRemoteWidgetCapabilityGrants } from \"@fluid-app/portal-core/remote-widget-capability-grants\";\nimport {\n isPropertyFieldType,\n type PropertyField,\n type WidgetManifest,\n} from \"@fluid-app/portal-core/registries\";\nimport type {\n RemoteDomWidgetDefinition,\n RemoteDomWidgetPackageDescriptor,\n} from \"@fluid-app/portal-core/remote-dom-widget-package\";\nimport {\n projectRemoteWidgetPackages,\n type RemoteDomWidgetRegistryOptions,\n type WidgetRegistryWarningSink,\n} from \"../widgets/remote/host/build-widget-registry\";\n\nconst REMOTE_WIDGET_PACKAGE_CATEGORY_PREFIX = \"custom-widget-package\";\n\nexport interface RemoteWidgetPluginHostOptions extends RemoteDomWidgetRegistryOptions {\n readonly warningSink?: WidgetRegistryWarningSink;\n}\n\n/**\n * Projects accepted canonical packages into builder manifests using the same\n * package-atomic acceptance pass as the runtime registry.\n */\nexport function buildRemoteWidgetPluginManifests(\n packages: readonly RemoteDomWidgetPackageDescriptor[],\n hostOptions: RemoteWidgetPluginHostOptions = {},\n): WidgetManifest[] {\n const { warningSink, ...registryOptions } = hostOptions;\n const projection = projectRemoteWidgetPackages(\n {},\n packages,\n registryOptions,\n warningSink ?? console.warn,\n );\n return projection.acceptedWidgets.map(\n ({ remotePackage, widget, component }) =>\n toWidgetManifest(remotePackage, widget, component),\n );\n}\n\nexport function getRemoteWidgetPackageCategoryId(\n remotePackage: Pick<RemoteDomWidgetPackageDescriptor, \"packageId\" | \"source\">,\n): string {\n return [\n REMOTE_WIDGET_PACKAGE_CATEGORY_PREFIX,\n remotePackage.source,\n encodeURIComponent(remotePackage.packageId),\n ].join(\":\");\n}\n\nfunction toWidgetManifest(\n remotePackage: RemoteDomWidgetPackageDescriptor,\n widget: RemoteDomWidgetDefinition,\n component: ComponentType<Record<string, unknown>>,\n): WidgetManifest {\n const resizable = toResizable(widget.resizable);\n const capabilityGrants = createRemoteWidgetCapabilityGrants(\n remotePackage,\n widget,\n );\n return {\n manifestVersion: 1,\n type: widget.type,\n component,\n displayName: widget.displayName,\n description: widget.description,\n icon: widget.icon,\n category: getRemoteWidgetPackageCategoryId(remotePackage),\n propertySchema: normalizePropertySchema(widget),\n defaultProps: { ...widget.defaultProps },\n minSdkVersion: widget.minSdkVersion,\n ...(resizable === undefined ? {} : { resizable }),\n ...(capabilityGrants === undefined ? {} : { capabilityGrants }),\n };\n}\n\nfunction normalizePropertySchema(\n widget: RemoteDomWidgetDefinition,\n): WidgetManifest[\"propertySchema\"] {\n const fields = Array.isArray(widget.propertySchema.fields)\n ? widget.propertySchema.fields.filter(isPropertyField)\n : [];\n return {\n ...widget.propertySchema,\n widgetType: widget.type,\n displayName:\n typeof widget.propertySchema.displayName === \"string\"\n ? widget.propertySchema.displayName\n : widget.displayName,\n fields,\n } as WidgetManifest[\"propertySchema\"];\n}\n\nfunction toResizable(\n resizable: RemoteDomWidgetDefinition[\"resizable\"],\n): WidgetManifest[\"resizable\"] {\n if (resizable === false) return undefined;\n if (resizable === true || resizable === \"both\") {\n return { horizontal: true, vertical: true };\n }\n return resizable === \"horizontal\" ? { horizontal: true } : { vertical: true };\n}\n\nfunction isPropertyField(value: unknown): value is PropertyField {\n return (\n typeof value === \"object\" &&\n value !== null &&\n \"key\" in value &&\n typeof value.key === \"string\" &&\n \"label\" in value &&\n typeof value.label === \"string\" &&\n \"type\" in value &&\n typeof value.type === \"string\" &&\n isPropertyFieldType(value.type)\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,MAAM,wCAAwC;;;;;AAU9C,SAAgB,iCACd,UACA,cAA6C,EAAE,EAC7B;CAClB,MAAM,EAAE,aAAa,GAAG,oBAAoB;AAO5C,QANmB,4BACjB,EAAE,EACF,UACA,iBACA,eAAe,QAAQ,KACxB,CACiB,gBAAgB,KAC/B,EAAE,eAAe,QAAQ,gBACxB,iBAAiB,eAAe,QAAQ,UAAU,CACrD;;AAGH,SAAgB,iCACd,eACQ;AACR,QAAO;EACL;EACA,cAAc;EACd,mBAAmB,cAAc,UAAU;EAC5C,CAAC,KAAK,IAAI;;AAGb,SAAS,iBACP,eACA,QACA,WACgB;CAChB,MAAM,YAAY,YAAY,OAAO,UAAU;CAC/C,MAAM,mBAAmB,mCACvB,eACA,OACD;AACD,QAAO;EACL,iBAAiB;EACjB,MAAM,OAAO;EACb;EACA,aAAa,OAAO;EACpB,aAAa,OAAO;EACpB,MAAM,OAAO;EACb,UAAU,iCAAiC,cAAc;EACzD,gBAAgB,wBAAwB,OAAO;EAC/C,cAAc,EAAE,GAAG,OAAO,cAAc;EACxC,eAAe,OAAO;EACtB,GAAI,cAAc,KAAA,IAAY,EAAE,GAAG,EAAE,WAAW;EAChD,GAAI,qBAAqB,KAAA,IAAY,EAAE,GAAG,EAAE,kBAAkB;EAC/D;;AAGH,SAAS,wBACP,QACkC;CAClC,MAAM,SAAS,MAAM,QAAQ,OAAO,eAAe,OAAO,GACtD,OAAO,eAAe,OAAO,OAAO,gBAAgB,GACpD,EAAE;AACN,QAAO;EACL,GAAG,OAAO;EACV,YAAY,OAAO;EACnB,aACE,OAAO,OAAO,eAAe,gBAAgB,WACzC,OAAO,eAAe,cACtB,OAAO;EACb;EACD;;AAGH,SAAS,YACP,WAC6B;AAC7B,KAAI,cAAc,MAAO,QAAO,KAAA;AAChC,KAAI,cAAc,QAAQ,cAAc,OACtC,QAAO;EAAE,YAAY;EAAM,UAAU;EAAM;AAE7C,QAAO,cAAc,eAAe,EAAE,YAAY,MAAM,GAAG,EAAE,UAAU,MAAM;;AAG/E,SAAS,gBAAgB,OAAwC;AAC/D,QACE,OAAO,UAAU,YACjB,UAAU,QACV,SAAS,SACT,OAAO,MAAM,QAAQ,YACrB,WAAW,SACX,OAAO,MAAM,UAAU,YACvB,UAAU,SACV,OAAO,MAAM,SAAS,YACtB,oBAAoB,MAAM,KAAK"}
1
+ {"version":3,"file":"build-remote-widget-plugin-manifests.mjs","names":[],"sources":["../../src/utils/build-remote-widget-plugin-manifests.ts"],"sourcesContent":["import type { ComponentType } from \"react\";\nimport { createRemoteWidgetCapabilityGrants } from \"@fluid-app/portal-core/remote-widget-capability-grants\";\nimport {\n isPropertyFieldType,\n type PropertyField,\n type WidgetManifest,\n} from \"@fluid-app/portal-core/registries\";\nimport type {\n RemoteDomWidgetDefinition,\n RemoteDomWidgetPackageDescriptor,\n} from \"@fluid-app/portal-core/remote-dom-widget-package\";\nimport {\n projectRemoteWidgetPackages,\n type RemoteDomWidgetRegistryOptions,\n type WidgetRegistryWarningSink,\n} from \"../widgets/remote/host/build-widget-registry\";\n\nconst REMOTE_WIDGET_PACKAGE_CATEGORY_PREFIX = \"custom-widget-package\";\n\nexport interface RemoteWidgetPluginHostOptions extends RemoteDomWidgetRegistryOptions {\n readonly warningSink?: WidgetRegistryWarningSink;\n}\n\n/**\n * Projects accepted canonical packages into builder manifests using the same\n * package-atomic acceptance pass as the runtime registry.\n */\nexport function buildRemoteWidgetPluginManifests(\n packages: readonly RemoteDomWidgetPackageDescriptor[],\n hostOptions: RemoteWidgetPluginHostOptions = {},\n): WidgetManifest[] {\n const { warningSink, ...registryOptions } = hostOptions;\n const projection = projectRemoteWidgetPackages(\n {},\n packages,\n registryOptions,\n warningSink ?? console.warn,\n );\n return projection.acceptedWidgets.map(\n ({ remotePackage, widget, component }) =>\n toWidgetManifest(remotePackage, widget, component),\n );\n}\n\nexport function getRemoteWidgetPackageCategoryId(\n remotePackage: Pick<RemoteDomWidgetPackageDescriptor, \"packageId\" | \"source\">,\n): string {\n return [\n REMOTE_WIDGET_PACKAGE_CATEGORY_PREFIX,\n remotePackage.source,\n encodeURIComponent(remotePackage.packageId),\n ].join(\":\");\n}\n\nfunction toWidgetManifest(\n remotePackage: RemoteDomWidgetPackageDescriptor,\n widget: RemoteDomWidgetDefinition,\n component: ComponentType<Record<string, unknown>>,\n): WidgetManifest {\n const resizable = toResizable(widget.resizable);\n const capabilityGrants = createRemoteWidgetCapabilityGrants(\n remotePackage,\n widget,\n );\n return {\n manifestVersion: 1,\n type: widget.type,\n component,\n displayName: widget.displayName,\n description: widget.description,\n icon: widget.icon,\n category: getRemoteWidgetPackageCategoryId(remotePackage),\n propertySchema: normalizePropertySchema(widget),\n defaultProps: { ...widget.defaultProps },\n minSdkVersion: widget.minSdkVersion,\n ...(resizable === undefined ? {} : { resizable }),\n ...(capabilityGrants === undefined ? {} : { capabilityGrants }),\n };\n}\n\nfunction normalizePropertySchema(\n widget: RemoteDomWidgetDefinition,\n): WidgetManifest[\"propertySchema\"] {\n const fields = Array.isArray(widget.propertySchema.fields)\n ? widget.propertySchema.fields.filter(isPropertyField)\n : [];\n return {\n ...widget.propertySchema,\n widgetType: widget.type,\n displayName:\n typeof widget.propertySchema.displayName === \"string\"\n ? widget.propertySchema.displayName\n : widget.displayName,\n fields,\n } as WidgetManifest[\"propertySchema\"];\n}\n\nfunction toResizable(\n resizable: RemoteDomWidgetDefinition[\"resizable\"],\n): WidgetManifest[\"resizable\"] {\n if (resizable === false) return undefined;\n if (resizable === true || resizable === \"both\") {\n return { horizontal: true, vertical: true };\n }\n return resizable === \"horizontal\" ? { horizontal: true } : { vertical: true };\n}\n\nfunction isPropertyField(value: unknown): value is PropertyField {\n return (\n typeof value === \"object\" &&\n value !== null &&\n \"key\" in value &&\n typeof value.key === \"string\" &&\n \"label\" in value &&\n typeof value.label === \"string\" &&\n \"type\" in value &&\n typeof value.type === \"string\" &&\n isPropertyFieldType(value.type)\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,MAAM,wCAAwC;;;;;AAU9C,SAAgB,iCACd,UACA,cAA6C,EAAE,EAC7B;CAClB,MAAM,EAAE,aAAa,GAAG,oBAAoB;AAO5C,QANmB,4BACjB,EAAE,EACF,UACA,iBACA,eAAe,QAAQ,KACxB,CACiB,gBAAgB,KAC/B,EAAE,eAAe,QAAQ,gBACxB,iBAAiB,eAAe,QAAQ,UAAU,CACrD;;AAGH,SAAgB,iCACd,eACQ;AACR,QAAO;EACL;EACA,cAAc;EACd,mBAAmB,cAAc,UAAU;EAC5C,CAAC,KAAK,IAAI;;AAGb,SAAS,iBACP,eACA,QACA,WACgB;CAChB,MAAM,YAAY,YAAY,OAAO,UAAU;CAC/C,MAAM,mBAAmB,mCACvB,eACA,OACD;AACD,QAAO;EACL,iBAAiB;EACjB,MAAM,OAAO;EACb;EACA,aAAa,OAAO;EACpB,aAAa,OAAO;EACpB,MAAM,OAAO;EACb,UAAU,iCAAiC,cAAc;EACzD,gBAAgB,wBAAwB,OAAO;EAC/C,cAAc,EAAE,GAAG,OAAO,cAAc;EACxC,eAAe,OAAO;EACtB,GAAI,cAAc,KAAA,IAAY,EAAE,GAAG,EAAE,WAAW;EAChD,GAAI,qBAAqB,KAAA,IAAY,EAAE,GAAG,EAAE,kBAAkB;EAC/D;;AAGH,SAAS,wBACP,QACkC;CAClC,MAAM,SAAS,MAAM,QAAQ,OAAO,eAAe,OAAO,GACtD,OAAO,eAAe,OAAO,OAAO,gBAAgB,GACpD,EAAE;AACN,QAAO;EACL,GAAG,OAAO;EACV,YAAY,OAAO;EACnB,aACE,OAAO,OAAO,eAAe,gBAAgB,WACzC,OAAO,eAAe,cACtB,OAAO;EACb;EACD;;AAGH,SAAS,YACP,WAC6B;AAC7B,KAAI,cAAc,MAAO,QAAO,KAAA;AAChC,KAAI,cAAc,QAAQ,cAAc,OACtC,QAAO;EAAE,YAAY;EAAM,UAAU;EAAM;AAE7C,QAAO,cAAc,eAAe,EAAE,YAAY,MAAM,GAAG,EAAE,UAAU,MAAM;;AAG/E,SAAS,gBAAgB,OAAwC;AAC/D,QACE,OAAO,UAAU,YACjB,UAAU,QACV,SAAS,SACT,OAAO,MAAM,QAAQ,YACrB,WAAW,SACX,OAAO,MAAM,UAAU,YACvB,UAAU,SACV,OAAO,MAAM,SAAS,YACtB,oBAAoB,MAAM,KAAK"}
@@ -20,6 +20,7 @@ import "../widgets-api-context-CLw35iC_.mjs";
20
20
  import "../EmbedWidget-C4xIr6S7.mjs";
21
21
  import "../PointsWidget-BE6o4vk3.mjs";
22
22
  import "../task-composer-form-DZ5bGOj2.mjs";
23
+ import "../use-account-_6m6foYx.mjs";
23
24
  import "../LayoutWidget-B6461Gji.mjs";
24
25
  import "../registries-DJe9dUTb.mjs";
25
26
  import "../fields-Dn82VSlh.mjs";
@@ -59,4 +60,5 @@ import "../ToDoWidget-CZbDVCGv.mjs";
59
60
  import "../ResponsiveDialog-BNXqmNe_.mjs";
60
61
  import "../VideoWidget-Cyidb63K.mjs";
61
62
  import "../ShopWidget-EeUNcE3M.mjs";
63
+ import "../use-store-jLETls7H.mjs";
62
64
  export { buildNavigateHandler, buildRemoteWidgetRegistry, isBuiltInWidgetType, projectRemoteWidgetPackages };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-app/portal-sdk",
3
- "version": "0.1.764",
3
+ "version": "0.1.765",
4
4
  "description": "SDK for building custom Fluid portals",
5
5
  "files": [
6
6
  "authoring",
@@ -54,7 +54,7 @@
54
54
  "access": "public"
55
55
  },
56
56
  "dependencies": {
57
- "@fluid-app/widget-runtime": "0.1.148",
57
+ "@fluid-app/widget-runtime": "0.1.149",
58
58
  "@radix-ui/react-slot": "^1.1.2",
59
59
  "@remote-dom/react": "^1.2.2",
60
60
  "class-variance-authority": "^0.7.1",
@@ -72,7 +72,7 @@
72
72
  "@fluid-app/address-fields": "0.1.0",
73
73
  "@fluid-app/api-client-core": "0.1.0",
74
74
  "@fluid-app/auth": "0.1.0",
75
- "@fluid-app/cart-ui": "0.1.98",
75
+ "@fluid-app/cart-ui": "0.1.99",
76
76
  "@fluid-app/company-switcher-ui": "0.1.0",
77
77
  "@fluid-app/contacts-core": "0.1.0",
78
78
  "@fluid-app/contacts-ui": "0.1.0",