@fluid-app/portal-sdk 0.1.469 → 0.1.471

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.
Files changed (137) hide show
  1. package/authoring/portal-api/api.md +227 -0
  2. package/authoring/widget-api/api.md +6 -0
  3. package/authoring/widget-api/core/src/registries/property-schema-types.md +3769 -0
  4. package/authoring/widget-api/sdk/src/widgets/worker.md +3683 -0
  5. package/dist/{CarouselWidget-CnjImV4p.cjs → CarouselWidget-B9_YaBRd.cjs} +7 -3
  6. package/dist/{CarouselWidget-CnjImV4p.cjs.map → CarouselWidget-B9_YaBRd.cjs.map} +1 -1
  7. package/dist/{CarouselWidget-xVj0Nl_1.cjs → CarouselWidget-BEPWgTCi.cjs} +1 -1
  8. package/dist/{CarouselWidget-DcoqH7YF.mjs → CarouselWidget-u58GTUD2.mjs} +7 -3
  9. package/dist/{CarouselWidget-DcoqH7YF.mjs.map → CarouselWidget-u58GTUD2.mjs.map} +1 -1
  10. package/dist/{ChartWidget-DhH_Q0e9.cjs → ChartWidget-C6hsftO9.cjs} +1 -1
  11. package/dist/{ChartWidget-CFyWkbfl.mjs → ChartWidget-J_JLCsug.mjs} +9 -2
  12. package/dist/{ChartWidget-CFyWkbfl.mjs.map → ChartWidget-J_JLCsug.mjs.map} +1 -1
  13. package/dist/{ChartWidget-DF-KE_5t.cjs → ChartWidget-q9yjk-79.cjs} +9 -2
  14. package/dist/{ChartWidget-DF-KE_5t.cjs.map → ChartWidget-q9yjk-79.cjs.map} +1 -1
  15. package/dist/{FluidProvider-CHo5kVRs.cjs → FluidProvider-DD1pE8b6.cjs} +2 -2
  16. package/dist/{FluidProvider-CHo5kVRs.cjs.map → FluidProvider-DD1pE8b6.cjs.map} +1 -1
  17. package/dist/{FluidProvider-BUV8QY8z.mjs → FluidProvider-DoJ-j6H-.mjs} +2 -2
  18. package/dist/{FluidProvider-BUV8QY8z.mjs.map → FluidProvider-DoJ-j6H-.mjs.map} +1 -1
  19. package/dist/{ImageWidget-BK_f_L0T.mjs → ImageWidget-B2SfenSC.mjs} +2 -2
  20. package/dist/{ImageWidget-BK_f_L0T.mjs.map → ImageWidget-B2SfenSC.mjs.map} +1 -1
  21. package/dist/{ImageWidget-8WfRzR60.cjs → ImageWidget-BFyfpxLg.cjs} +1 -1
  22. package/dist/{ImageWidget-C9PCTFpZ.cjs → ImageWidget-C7U9t7a3.cjs} +2 -2
  23. package/dist/{ImageWidget-C9PCTFpZ.cjs.map → ImageWidget-C7U9t7a3.cjs.map} +1 -1
  24. package/dist/{LinkWidget-DRMzQhQz.cjs → LinkWidget-Cjzrpnzd.cjs} +4 -1
  25. package/dist/LinkWidget-Cjzrpnzd.cjs.map +1 -0
  26. package/dist/{LinkWidget-BqLCMzfY.cjs → LinkWidget-D3acO4R8.cjs} +1 -1
  27. package/dist/{LinkWidget-C3HRFueg.mjs → LinkWidget-Dlw2rzK6.mjs} +4 -1
  28. package/dist/LinkWidget-Dlw2rzK6.mjs.map +1 -0
  29. package/dist/{ListWidget-BiBx02S8.cjs → ListWidget-DWAtSTK6.cjs} +1 -1
  30. package/dist/{ListWidget-D7Ws1bMu.mjs → ListWidget-W5Tm4mWy.mjs} +7 -3
  31. package/dist/{ListWidget-D7Ws1bMu.mjs.map → ListWidget-W5Tm4mWy.mjs.map} +1 -1
  32. package/dist/{ListWidget-Ge83X2-d.cjs → ListWidget-YrcH5_Ez.cjs} +7 -3
  33. package/dist/{ListWidget-Ge83X2-d.cjs.map → ListWidget-YrcH5_Ez.cjs.map} +1 -1
  34. package/dist/{MessagingScreen-KYbF9U2N.cjs → MessagingScreen-B8Bcy-2V.cjs} +2 -2
  35. package/dist/{MessagingScreen-KYbF9U2N.cjs.map → MessagingScreen-B8Bcy-2V.cjs.map} +1 -1
  36. package/dist/{MessagingScreen-r40mXBJR.mjs → MessagingScreen-BBoYyLPj.mjs} +11 -11
  37. package/dist/{MessagingScreen-CC2FSdcv.cjs → MessagingScreen-BJ7NTczB.cjs} +11 -11
  38. package/dist/{MessagingScreen-B9LmuGG4.mjs → MessagingScreen-vaNfWYeM.mjs} +2 -2
  39. package/dist/{MessagingScreen-B9LmuGG4.mjs.map → MessagingScreen-vaNfWYeM.mjs.map} +1 -1
  40. package/dist/{NestedWidget-nWK5H1NG.cjs → NestedWidget-B5iyFylx.cjs} +6 -2
  41. package/dist/{NestedWidget-nWK5H1NG.cjs.map → NestedWidget-B5iyFylx.cjs.map} +1 -1
  42. package/dist/{NestedWidget-J8fPrBNA.mjs → NestedWidget-Bdll8TLQ.mjs} +6 -2
  43. package/dist/{NestedWidget-J8fPrBNA.mjs.map → NestedWidget-Bdll8TLQ.mjs.map} +1 -1
  44. package/dist/{NestedWidget-Bhltm3Db.cjs → NestedWidget-CBYJ_Qw7.cjs} +1 -1
  45. package/dist/{OrdersScreen-jhkTEp5y.cjs → OrdersScreen-BdtVN1wl.cjs} +11 -11
  46. package/dist/{OrdersScreen-BMslkiOK.mjs → OrdersScreen-ClB_Yor-.mjs} +2 -2
  47. package/dist/{OrdersScreen-BMslkiOK.mjs.map → OrdersScreen-ClB_Yor-.mjs.map} +1 -1
  48. package/dist/{OrdersScreen-CHt2QwB7.mjs → OrdersScreen-D2cymJtp.mjs} +11 -11
  49. package/dist/{OrdersScreen-DkRte66f.cjs → OrdersScreen-DnJa329w.cjs} +2 -2
  50. package/dist/{OrdersScreen-DkRte66f.cjs.map → OrdersScreen-DnJa329w.cjs.map} +1 -1
  51. package/dist/{ProfileScreen-BP5KEyW0.mjs → ProfileScreen-CIjBpDIq.mjs} +12 -12
  52. package/dist/{ProfileScreen-Ba8B0_Bm.cjs → ProfileScreen-CpI9XiZQ.cjs} +9 -4
  53. package/dist/ProfileScreen-CpI9XiZQ.cjs.map +1 -0
  54. package/dist/{ProfileScreen-BAbxbpdQ.cjs → ProfileScreen-DUEVFZqo.cjs} +12 -12
  55. package/dist/{ProfileScreen-Cw1hajhU.mjs → ProfileScreen-TbmOka5D.mjs} +9 -4
  56. package/dist/ProfileScreen-TbmOka5D.mjs.map +1 -0
  57. package/dist/{ShopWidget-jQ-osGyn.mjs → ShopWidget-BH0Pcepg.mjs} +6 -2
  58. package/dist/{ShopWidget-jQ-osGyn.mjs.map → ShopWidget-BH0Pcepg.mjs.map} +1 -1
  59. package/dist/{ShopWidget-Dc3fH_tP.cjs → ShopWidget-RfF5ZRv2.cjs} +6 -2
  60. package/dist/{ShopWidget-Dc3fH_tP.cjs.map → ShopWidget-RfF5ZRv2.cjs.map} +1 -1
  61. package/dist/{ShopWidget-gc_BbyrJ.cjs → ShopWidget-ecp3h54J.cjs} +1 -1
  62. package/dist/{SubscriptionsScreen-BscwpAw8.cjs → SubscriptionsScreen-BiNmEFLP.cjs} +4 -4
  63. package/dist/{SubscriptionsScreen-BscwpAw8.cjs.map → SubscriptionsScreen-BiNmEFLP.cjs.map} +1 -1
  64. package/dist/{SubscriptionsScreen-D2uyJGIE.mjs → SubscriptionsScreen-NCU2I079.mjs} +4 -4
  65. package/dist/{SubscriptionsScreen-D2uyJGIE.mjs.map → SubscriptionsScreen-NCU2I079.mjs.map} +1 -1
  66. package/dist/{SubscriptionsScreen-Nfbt2u5r.cjs → SubscriptionsScreen-cuw6yk56.cjs} +12 -12
  67. package/dist/{SubscriptionsScreen-DU5AKlfR.mjs → SubscriptionsScreen-fv_xxA9j.mjs} +12 -12
  68. package/dist/{TableWidget-B4rGem0e.cjs → TableWidget-B8axD206.cjs} +1 -1
  69. package/dist/{TableWidget-LolaiYXA.mjs → TableWidget-C861T_Ac.mjs} +8 -1
  70. package/dist/{TableWidget-LolaiYXA.mjs.map → TableWidget-C861T_Ac.mjs.map} +1 -1
  71. package/dist/{TableWidget-Dfzx5jaI.cjs → TableWidget-CAgARK2Y.cjs} +8 -1
  72. package/dist/{TableWidget-Dfzx5jaI.cjs.map → TableWidget-CAgARK2Y.cjs.map} +1 -1
  73. package/dist/build-remote-widget-plugin-manifests-BDGS5t6k.d.mts +87 -0
  74. package/dist/build-remote-widget-plugin-manifests-BDGS5t6k.d.mts.map +1 -0
  75. package/dist/build-remote-widget-plugin-manifests-BS2FjZRV.d.cts +87 -0
  76. package/dist/build-remote-widget-plugin-manifests-BS2FjZRV.d.cts.map +1 -0
  77. package/dist/{build-widget-registry-BwiPIMcu.d.mts → build-widget-registry-ByUJk3-B.d.mts} +2 -2
  78. package/dist/{build-widget-registry-BwiPIMcu.d.mts.map → build-widget-registry-ByUJk3-B.d.mts.map} +1 -1
  79. package/dist/{build-widget-registry-BmU54VJb.cjs → build-widget-registry-CCmtBo8w.cjs} +17 -17
  80. package/dist/build-widget-registry-CCmtBo8w.cjs.map +1 -0
  81. package/dist/{build-widget-registry-DSE7CmVe.d.cts → build-widget-registry-Dsp9P8gq.d.cts} +2 -2
  82. package/dist/{build-widget-registry-DSE7CmVe.d.cts.map → build-widget-registry-Dsp9P8gq.d.cts.map} +1 -1
  83. package/dist/{build-widget-registry-Bimd6Pxq.mjs → build-widget-registry-DvCtfn9d.mjs} +17 -17
  84. package/dist/build-widget-registry-DvCtfn9d.mjs.map +1 -0
  85. package/dist/index.cjs +29 -24
  86. package/dist/index.cjs.map +1 -1
  87. package/dist/index.d.cts +40 -13
  88. package/dist/index.d.cts.map +1 -1
  89. package/dist/index.d.mts +40 -13
  90. package/dist/index.d.mts.map +1 -1
  91. package/dist/index.mjs +29 -24
  92. package/dist/index.mjs.map +1 -1
  93. package/dist/{link-type-schema-fields-DJBFdG7t.mjs → link-type-schema-fields-CncR6GKa.mjs} +3 -1
  94. package/dist/link-type-schema-fields-CncR6GKa.mjs.map +1 -0
  95. package/dist/{link-type-schema-fields-CQXXgSqn.cjs → link-type-schema-fields-DvSzjbwD.cjs} +3 -1
  96. package/dist/link-type-schema-fields-DvSzjbwD.cjs.map +1 -0
  97. package/dist/{build-remote-widget-plugin-manifests-CFmLot7p.d.cts → portal-function-DYWFgeRx.d.cts} +826 -796
  98. package/dist/portal-function-DYWFgeRx.d.cts.map +1 -0
  99. package/dist/{build-remote-widget-plugin-manifests-BsgLYqar.d.mts → portal-function-DgqXwF13.d.mts} +932 -902
  100. package/dist/portal-function-DgqXwF13.d.mts.map +1 -0
  101. package/dist/registries-DgzzKX8_.cjs.map +1 -1
  102. package/dist/registries-Dvq4M6wO.mjs.map +1 -1
  103. package/dist/{use-portal-card-add-3ds-flow-BE4p2zYl.cjs → use-portal-card-add-3ds-flow-CRiGY6e0.cjs} +3 -3
  104. package/dist/{use-portal-card-add-3ds-flow-BE4p2zYl.cjs.map → use-portal-card-add-3ds-flow-CRiGY6e0.cjs.map} +1 -1
  105. package/dist/{use-portal-card-add-3ds-flow-DzhPOYGn.mjs → use-portal-card-add-3ds-flow-DjeKiZvQ.mjs} +3 -3
  106. package/dist/{use-portal-card-add-3ds-flow-DzhPOYGn.mjs.map → use-portal-card-add-3ds-flow-DjeKiZvQ.mjs.map} +1 -1
  107. package/dist/utils/build-remote-widget-plugin-manifests.cjs +9 -9
  108. package/dist/utils/build-remote-widget-plugin-manifests.d.cts +1 -1
  109. package/dist/utils/build-remote-widget-plugin-manifests.d.mts +1 -1
  110. package/dist/utils/build-remote-widget-plugin-manifests.mjs +9 -9
  111. package/dist/utils/build-widget-registry.cjs +9 -9
  112. package/dist/utils/build-widget-registry.d.cts +1 -1
  113. package/dist/utils/build-widget-registry.d.mts +1 -1
  114. package/dist/utils/build-widget-registry.mjs +9 -9
  115. package/dist/widgets/worker.cjs +20 -1
  116. package/dist/widgets/worker.cjs.map +1 -1
  117. package/dist/widgets/worker.d.cts +67 -4
  118. package/dist/widgets/worker.d.cts.map +1 -1
  119. package/dist/widgets/worker.d.mts +67 -4
  120. package/dist/widgets/worker.d.mts.map +1 -1
  121. package/dist/widgets/worker.mjs +20 -1
  122. package/dist/widgets/worker.mjs.map +1 -1
  123. package/package.json +18 -17
  124. package/dist/LinkWidget-C3HRFueg.mjs.map +0 -1
  125. package/dist/LinkWidget-DRMzQhQz.cjs.map +0 -1
  126. package/dist/ProfileScreen-Ba8B0_Bm.cjs.map +0 -1
  127. package/dist/ProfileScreen-Cw1hajhU.mjs.map +0 -1
  128. package/dist/build-remote-widget-plugin-manifests-BsgLYqar.d.mts.map +0 -1
  129. package/dist/build-remote-widget-plugin-manifests-CFmLot7p.d.cts.map +0 -1
  130. package/dist/build-widget-registry-Bimd6Pxq.mjs.map +0 -1
  131. package/dist/build-widget-registry-BmU54VJb.cjs.map +0 -1
  132. package/dist/link-type-schema-fields-CQXXgSqn.cjs.map +0 -1
  133. package/dist/link-type-schema-fields-DJBFdG7t.mjs.map +0 -1
  134. package/dist/portal-function-85qUlAVz.d.mts +0 -76
  135. package/dist/portal-function-85qUlAVz.d.mts.map +0 -1
  136. package/dist/portal-function-CW3U6P5p.d.cts +0 -76
  137. package/dist/portal-function-CW3U6P5p.d.cts.map +0 -1
@@ -0,0 +1,227 @@
1
+ # Fluid portal authoring API
2
+
3
+ ## Interfaces
4
+
5
+ ### PortalConfig
6
+
7
+ Configuration accepted by [createPortal](#createportal).
8
+
9
+ #### Properties
10
+
11
+ ##### customPages?
12
+
13
+ > `readonly` `optional` **customPages?**: `Record`\<`string`, `ComponentType`\<[`PortalCustomPageProps`](#portalcustompageprops)\>\>
14
+
15
+ Custom React pages keyed by their portal slug.
16
+
17
+ ##### disableStrictMode?
18
+
19
+ > `readonly` `optional` **disableStrictMode?**: `boolean`
20
+
21
+ Disables React Strict Mode when an integration cannot tolerate development double invocation.
22
+
23
+ ##### errorReporter?
24
+
25
+ > `readonly` `optional` **errorReporter?**: `PortalErrorReporter`
26
+
27
+ Receives uncaught root and shell errors with portal context.
28
+
29
+ ##### fluid?
30
+
31
+ > `readonly` `optional` **fluid?**: `Partial`\<`FluidSDKConfig`\>
32
+
33
+ Partial SDK configuration merged with the SDK defaults.
34
+
35
+ ##### memberTypeCustomPages?
36
+
37
+ > `readonly` `optional` **memberTypeCustomPages?**: `MemberTypeCustomPages`
38
+
39
+ Per-member-type page overrides: memberTypeSlug -> (pageSlug -> component).
40
+ Serves different screens to different member types (e.g. an `affiliate`
41
+ dashboard) at the same slug. Wins over `customPages` for that member type.
42
+
43
+ ##### providers?
44
+
45
+ > `readonly` `optional` **providers?**: `ComponentType`\<[`PortalProviderProps`](#portalproviderprops)\>
46
+
47
+ Optional component that wraps the complete portal tree with app providers.
48
+
49
+ ##### remoteWidgets?
50
+
51
+ > `readonly` `optional` **remoteWidgets?**: [`RemoteWidgetOptions`](#remotewidgetoptions)
52
+
53
+ Remote DOM packages, host functions, and package-loading options.
54
+
55
+ ##### rootId?
56
+
57
+ > `readonly` `optional` **rootId?**: `string`
58
+
59
+ DOM element id where the portal mounts.
60
+
61
+ ###### Default Value
62
+
63
+ `"root"`
64
+
65
+ ##### shell?
66
+
67
+ > `readonly` `optional` **shell?**: `Omit`\<`AppShellProps`, `"customPages"` \| `"memberTypeCustomPages"` \| `"errorReporter"`\>
68
+
69
+ App shell options; page and error hooks come from the top-level config.
70
+
71
+ ---
72
+
73
+ ### PortalCustomPageProps
74
+
75
+ Route values supplied to a custom portal page component.
76
+
77
+ #### Properties
78
+
79
+ ##### params?
80
+
81
+ > `readonly` `optional` **params?**: `string`
82
+
83
+ Remaining route path after the matched slug.
84
+
85
+ ##### slug?
86
+
87
+ > `readonly` `optional` **slug?**: `string`
88
+
89
+ Matched portal route slug.
90
+
91
+ ---
92
+
93
+ ### PortalProviderProps
94
+
95
+ Children supplied to a portal-wide provider component.
96
+
97
+ #### Properties
98
+
99
+ ##### children
100
+
101
+ > `readonly` **children**: `ReactNode`
102
+
103
+ Complete portal tree wrapped by the provider.
104
+
105
+ ---
106
+
107
+ ### RemoteDomWidgetPackageDescriptor
108
+
109
+ Canonical package contract shared by the CLI, catalog APIs, and portal hosts.
110
+ Catalog producers resolve every artifact to its public URL before returning
111
+ this descriptor; consumers do not translate legacy manifest shapes.
112
+
113
+ #### Properties
114
+
115
+ ##### assetUrls
116
+
117
+ > `readonly` **assetUrls**: readonly `string`[]
118
+
119
+ ##### cssUrls
120
+
121
+ > `readonly` **cssUrls**: readonly `string`[]
122
+
123
+ ##### manifestVersion
124
+
125
+ > `readonly` **manifestVersion**: `1`
126
+
127
+ ##### packageId
128
+
129
+ > `readonly` **packageId**: `string`
130
+
131
+ ##### runtime
132
+
133
+ > `readonly` **runtime**: `"remote-dom"`
134
+
135
+ ##### source
136
+
137
+ > `readonly` **source**: `"company"` \| `"droplet"`
138
+
139
+ ##### version
140
+
141
+ > `readonly` **version**: `string`
142
+
143
+ ##### widgets
144
+
145
+ > `readonly` **widgets**: readonly `RemoteDomWidgetDefinition`[]
146
+
147
+ ##### workerEntryUrl
148
+
149
+ > `readonly` **workerEntryUrl**: `string`
150
+
151
+ ---
152
+
153
+ ### RemoteWidgetOptions
154
+
155
+ Host configuration for Remote DOM package loading and capabilities.
156
+
157
+ #### Properties
158
+
159
+ ##### capabilityMode?
160
+
161
+ > `readonly` `optional` **capabilityMode?**: `RemoteDomCapabilityMode`
162
+
163
+ Controls whether Remote DOM widgets may invoke any capability, including
164
+ SDK built-ins, custom functions, and fullscreen. In `unavailable` mode
165
+ every capability call fails with `UNAVAILABLE`; use it for non-interactive
166
+ builder and preview environments.
167
+
168
+ ###### Default
169
+
170
+ ```ts
171
+ "live";
172
+ ```
173
+
174
+ ##### catalog?
175
+
176
+ > `readonly` `optional` **catalog?**: `boolean`
177
+
178
+ Load packages from the authenticated portal catalog.
179
+
180
+ ###### Default
181
+
182
+ ```ts
183
+ true;
184
+ ```
185
+
186
+ ##### functions?
187
+
188
+ > `readonly` `optional` **functions?**: readonly `PortalFunctionImplementation`[]
189
+
190
+ Implements declared custom portal functions not owned by the Portal SDK.
191
+
192
+ ##### onFullscreen?
193
+
194
+ > `readonly` `optional` **onFullscreen?**: `RemoteWidgetFullscreenHandler`
195
+
196
+ Optional preflight hook for fullscreen requests. The Portal SDK remains
197
+ the canonical owner of screen-area state, layout, focus, and exit UI.
198
+
199
+ ##### packages?
200
+
201
+ > `readonly` `optional` **packages?**: readonly [`RemoteDomWidgetPackageDescriptor`](#remotedomwidgetpackagedescriptor)[]
202
+
203
+ Trusted canonical packages appended after catalog packages.
204
+
205
+ ## Functions
206
+
207
+ ### createPortal()
208
+
209
+ > **createPortal**(`config?`): `void`
210
+
211
+ Mounts a portal with the shared SDK provider and canonical widget catalog.
212
+
213
+ #### Parameters
214
+
215
+ ##### config?
216
+
217
+ [`PortalConfig`](#portalconfig) = `{}`
218
+
219
+ Portal pages, SDK settings, Remote DOM packages, and host integration hooks.
220
+
221
+ #### Returns
222
+
223
+ `void`
224
+
225
+ #### Throws
226
+
227
+ If the configured root element does not exist.
@@ -0,0 +1,6 @@
1
+ # Fluid widget authoring API
2
+
3
+ ## Modules
4
+
5
+ - [core/src/registries/property-schema-types](core/src/registries/property-schema-types.md)
6
+ - [sdk/src/widgets/worker](sdk/src/widgets/worker.md)