@fluid-app/portal-sdk 0.1.442 → 0.1.443
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-E3BxHccm.cjs → FluidProvider-DRyFjZ6v.cjs} +2 -1
- package/dist/{FluidProvider-E3BxHccm.cjs.map → FluidProvider-DRyFjZ6v.cjs.map} +1 -1
- package/dist/{FluidProvider-C5-je4MJ.mjs → FluidProvider-hztxEA9v.mjs} +2 -1
- package/dist/{FluidProvider-C5-je4MJ.mjs.map → FluidProvider-hztxEA9v.mjs.map} +1 -1
- package/dist/{MessagingScreen-DRD0nEc4.cjs → MessagingScreen-BcKMkp38.cjs} +2 -2
- package/dist/{MessagingScreen-DRD0nEc4.cjs.map → MessagingScreen-BcKMkp38.cjs.map} +1 -1
- package/dist/{MessagingScreen-Da19zbmP.cjs → MessagingScreen-D9lMoFHp.cjs} +2 -2
- package/dist/{MessagingScreen-BzCBjO4X.mjs → MessagingScreen-DP9lhGok.mjs} +2 -2
- package/dist/{MessagingScreen-BzCBjO4X.mjs.map → MessagingScreen-DP9lhGok.mjs.map} +1 -1
- package/dist/{MessagingScreen-DjwiqfCS.mjs → MessagingScreen-DuoVdCoN.mjs} +2 -5
- package/dist/{OrdersScreen-DouJFuWM.cjs → OrdersScreen-9LZSY0r6.cjs} +2 -2
- package/dist/{OrdersScreen-DouJFuWM.cjs.map → OrdersScreen-9LZSY0r6.cjs.map} +1 -1
- package/dist/{OrdersScreen-B5pheix7.mjs → OrdersScreen-BIaS_Rs5.mjs} +2 -2
- package/dist/{OrdersScreen-B5pheix7.mjs.map → OrdersScreen-BIaS_Rs5.mjs.map} +1 -1
- package/dist/{OrdersScreen-7U1ViXnt.cjs → OrdersScreen-C1QEm5aJ.cjs} +2 -2
- package/dist/{OrdersScreen-C3zGzWki.mjs → OrdersScreen-DaKc0IWa.mjs} +2 -5
- package/dist/{ProfileScreen-BZhDJ-2U.mjs → ProfileScreen-BFUMx753.mjs} +3 -3
- package/dist/{ProfileScreen-BZhDJ-2U.mjs.map → ProfileScreen-BFUMx753.mjs.map} +1 -1
- package/dist/{ProfileScreen-D3oLgrla.cjs → ProfileScreen-C8efV745.cjs} +3 -3
- package/dist/{ProfileScreen-Bz8xAR2F.cjs → ProfileScreen-CJ02u5_k.cjs} +3 -3
- package/dist/{ProfileScreen-Bz8xAR2F.cjs.map → ProfileScreen-CJ02u5_k.cjs.map} +1 -1
- package/dist/{ProfileScreen-DPxQL-ly.mjs → ProfileScreen-h6QFJYjT.mjs} +3 -6
- package/dist/{ShareablesScreen-DouGMSCv.mjs → ShareablesScreen-CJU8G50V.mjs} +0 -3
- package/dist/{ShopScreen-TckT3N88.cjs → ShopScreen-BOv02SK-.cjs} +2 -2
- package/dist/{ShopScreen-C1ywhucr.mjs → ShopScreen-BQXHwKwM.mjs} +2 -5
- package/dist/{ShopScreen-CiPevWHk.mjs → ShopScreen-DOXyo3Vh.mjs} +2 -2
- package/dist/{ShopScreen-CiPevWHk.mjs.map → ShopScreen-DOXyo3Vh.mjs.map} +1 -1
- package/dist/{ShopScreen-CWCX8u6W.cjs → ShopScreen-IBpCfhLT.cjs} +2 -2
- package/dist/{ShopScreen-CWCX8u6W.cjs.map → ShopScreen-IBpCfhLT.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-Y5C8NgNC.mjs → SubscriptionsScreen-B2QSvJ-w.mjs} +3 -6
- package/dist/{SubscriptionsScreen-cskYuL1i.cjs → SubscriptionsScreen-D8uE5QRT.cjs} +3 -3
- package/dist/{SubscriptionsScreen-cskYuL1i.cjs.map → SubscriptionsScreen-D8uE5QRT.cjs.map} +1 -1
- package/dist/{SubscriptionsScreen-CL-NKw6s.cjs → SubscriptionsScreen-D_YvnfPC.cjs} +3 -3
- package/dist/{SubscriptionsScreen-DzWTRFMS.mjs → SubscriptionsScreen-g7WC5AfX.mjs} +3 -3
- package/dist/{SubscriptionsScreen-DzWTRFMS.mjs.map → SubscriptionsScreen-g7WC5AfX.mjs.map} +1 -1
- package/dist/index.cjs +44 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +10 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +48 -33
- package/dist/index.mjs.map +1 -1
- package/dist/{use-portal-card-add-3ds-flow-CNX-EEX9.cjs → use-portal-card-add-3ds-flow-BESpmw-C.cjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-CNX-EEX9.cjs.map → use-portal-card-add-3ds-flow-BESpmw-C.cjs.map} +1 -1
- package/dist/{use-portal-card-add-3ds-flow-Cd7qe-uB.mjs → use-portal-card-add-3ds-flow-Ddn35rRp.mjs} +2 -2
- package/dist/{use-portal-card-add-3ds-flow-Cd7qe-uB.mjs.map → use-portal-card-add-3ds-flow-Ddn35rRp.mjs.map} +1 -1
- package/dist/utils/build-remote-widget-plugin-manifests.mjs +0 -2
- package/dist/utils/build-remote-widget-plugin-manifests.mjs.map +1 -1
- package/package.json +12 -12
|
@@ -44,8 +44,6 @@ import "../TableWidget-CVN4Km00.mjs";
|
|
|
44
44
|
import "../ToDoWidget-DtM9JWAS.mjs";
|
|
45
45
|
import "../VideoWidget-Cv7ErMg9.mjs";
|
|
46
46
|
import "../ShopWidget-CwiD88Sr.mjs";
|
|
47
|
-
import "../AppNavigationContext-CUpMPyMJ.mjs";
|
|
48
|
-
import "../use-store-mvCr42YP.mjs";
|
|
49
47
|
//#region src/utils/build-remote-widget-plugin-manifests.ts
|
|
50
48
|
/**
|
|
51
49
|
* Projects accepted canonical packages into builder manifests using the same
|
|
@@ -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 {\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 \"./build-widget-registry\";\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(({ widget, component }) =>\n toWidgetManifest(widget, component),\n );\n}\n\nfunction toWidgetManifest(\n widget: RemoteDomWidgetDefinition,\n component: ComponentType<Record<string, unknown>>,\n): WidgetManifest {\n const resizable = toResizable(widget.resizable);\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: widget.category,\n propertySchema: normalizePropertySchema(widget),\n defaultProps: { ...widget.defaultProps },\n minSdkVersion: widget.minSdkVersion,\n ...(resizable === undefined ? {} : { resizable }),\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":"
|
|
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 {\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 \"./build-widget-registry\";\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(({ widget, component }) =>\n toWidgetManifest(widget, component),\n );\n}\n\nfunction toWidgetManifest(\n widget: RemoteDomWidgetDefinition,\n component: ComponentType<Record<string, unknown>>,\n): WidgetManifest {\n const resizable = toResizable(widget.resizable);\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: widget.category,\n propertySchema: normalizePropertySchema(widget),\n defaultProps: { ...widget.defaultProps },\n minSdkVersion: widget.minSdkVersion,\n ...(resizable === undefined ? {} : { resizable }),\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,SAAgB,iCACd,UACA,cAA6C,EAAE,EAC7B;CAClB,MAAM,EAAE,aAAa,GAAG,oBAAoB;AAO5C,QANmB,4BACjB,EAAE,EACF,UACA,iBACA,eAAe,QAAQ,KACxB,CACiB,gBAAgB,KAAK,EAAE,QAAQ,gBAC/C,iBAAiB,QAAQ,UAAU,CACpC;;AAGH,SAAS,iBACP,QACA,WACgB;CAChB,MAAM,YAAY,YAAY,OAAO,UAAU;AAC/C,QAAO;EACL,iBAAiB;EACjB,MAAM,OAAO;EACb;EACA,aAAa,OAAO;EACpB,aAAa,OAAO;EACpB,MAAM,OAAO;EACb,UAAU,OAAO;EACjB,gBAAgB,wBAAwB,OAAO;EAC/C,cAAc,EAAE,GAAG,OAAO,cAAc;EACxC,eAAe,OAAO;EACtB,GAAI,cAAc,KAAA,IAAY,EAAE,GAAG,EAAE,WAAW;EACjD;;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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-app/portal-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.443",
|
|
4
4
|
"description": "SDK for building custom Fluid portals",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -80,43 +80,43 @@
|
|
|
80
80
|
"@fluid-app/address-fields": "0.1.0",
|
|
81
81
|
"@fluid-app/api-client-core": "0.1.0",
|
|
82
82
|
"@fluid-app/auth": "0.1.0",
|
|
83
|
-
"@fluid-app/cart-ui": "0.1.25",
|
|
84
83
|
"@fluid-app/company-switcher-ui": "0.1.0",
|
|
85
84
|
"@fluid-app/contacts-core": "0.1.0",
|
|
85
|
+
"@fluid-app/cart-ui": "0.1.25",
|
|
86
86
|
"@fluid-app/contacts-ui": "0.1.0",
|
|
87
|
-
"@fluid-app/file-picker-core": "0.1.0",
|
|
88
|
-
"@fluid-app/file-picker-api-client": "0.1.0",
|
|
89
87
|
"@fluid-app/fluid-pay-core": "0.1.0",
|
|
90
|
-
"@fluid-app/
|
|
91
|
-
"@fluid-app/fluid-pay-ui": "0.1.0",
|
|
88
|
+
"@fluid-app/file-picker-core": "0.1.0",
|
|
92
89
|
"@fluid-app/messaging-api-client": "0.1.0",
|
|
90
|
+
"@fluid-app/fluid-pay-ui": "0.1.0",
|
|
93
91
|
"@fluid-app/messaging-core": "0.1.0",
|
|
94
92
|
"@fluid-app/messaging-ui": "0.1.0",
|
|
93
|
+
"@fluid-app/i18n": "0.1.0",
|
|
95
94
|
"@fluid-app/mysite-core": "0.1.0",
|
|
96
95
|
"@fluid-app/mysite-ui": "0.1.0",
|
|
96
|
+
"@fluid-app/file-picker-api-client": "0.1.0",
|
|
97
97
|
"@fluid-app/orders-ui": "0.1.0",
|
|
98
98
|
"@fluid-app/orders-core": "0.1.0",
|
|
99
99
|
"@fluid-app/portal-app-download-ui": "0.1.0",
|
|
100
100
|
"@fluid-app/payments-display": "0.1.0",
|
|
101
|
-
"@fluid-app/portal-core": "0.1.23",
|
|
102
101
|
"@fluid-app/portal-react": "0.1.0",
|
|
103
102
|
"@fluid-app/portal-tenant-api-client": "0.1.0",
|
|
104
103
|
"@fluid-app/portal-tenant-contacts-api-client": "0.1.0",
|
|
104
|
+
"@fluid-app/portal-core": "0.1.23",
|
|
105
105
|
"@fluid-app/portal-tenant-content-api-client": "0.1.0",
|
|
106
106
|
"@fluid-app/portal-tenant-mysite-api-client": "0.1.0",
|
|
107
|
-
"@fluid-app/portal-tenant-pay-api-client": "0.1.0",
|
|
108
107
|
"@fluid-app/portal-tenant-store-api-client": "0.1.0",
|
|
109
|
-
"@fluid-app/portal-widgets": "0.1.22",
|
|
110
108
|
"@fluid-app/products-api-client": "0.1.0",
|
|
111
109
|
"@fluid-app/products-core": "0.1.0",
|
|
110
|
+
"@fluid-app/portal-tenant-pay-api-client": "0.1.0",
|
|
112
111
|
"@fluid-app/profile-core": "0.1.0",
|
|
113
|
-
"@fluid-app/
|
|
112
|
+
"@fluid-app/portal-widgets": "0.1.22",
|
|
114
113
|
"@fluid-app/query-persister": "0.1.0",
|
|
115
|
-
"@fluid-app/
|
|
114
|
+
"@fluid-app/profile-ui": "0.1.0",
|
|
116
115
|
"@fluid-app/shareables-ui": "0.1.0",
|
|
117
116
|
"@fluid-app/shop-core": "0.1.0",
|
|
118
|
-
"@fluid-app/
|
|
117
|
+
"@fluid-app/shareables-core": "0.1.0",
|
|
119
118
|
"@fluid-app/store-core": "0.1.0",
|
|
119
|
+
"@fluid-app/shop-ui": "0.1.0",
|
|
120
120
|
"@fluid-app/subscriptions-core": "0.1.0",
|
|
121
121
|
"@fluid-app/subscriptions-ui": "0.1.0",
|
|
122
122
|
"@fluid-app/typescript-config": "0.0.0",
|