@fluid-app/portal-sdk 0.1.475 → 0.1.477

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 (80) hide show
  1. package/authoring/widget-api/sdk/src/widgets/worker.md +3313 -194
  2. package/dist/{FluidProvider-Enp1OrWr.cjs → FluidProvider-23ch3eP8.cjs} +2 -2
  3. package/dist/{FluidProvider-Enp1OrWr.cjs.map → FluidProvider-23ch3eP8.cjs.map} +1 -1
  4. package/dist/{FluidProvider-BNHU_neW.mjs → FluidProvider-DMeeVh2c.mjs} +2 -2
  5. package/dist/{FluidProvider-BNHU_neW.mjs.map → FluidProvider-DMeeVh2c.mjs.map} +1 -1
  6. package/dist/{MessagingScreen-AVfoyaxf.cjs → MessagingScreen-Ci-LJaR2.cjs} +3 -3
  7. package/dist/{MessagingScreen-BQmYbMd-.mjs → MessagingScreen-D3AD01zt.mjs} +3 -3
  8. package/dist/{MessagingScreen-4WZGUGsB.mjs → MessagingScreen-Dp4SiUQS.mjs} +2 -2
  9. package/dist/{MessagingScreen-4WZGUGsB.mjs.map → MessagingScreen-Dp4SiUQS.mjs.map} +1 -1
  10. package/dist/{MessagingScreen-DOjbhTOB.cjs → MessagingScreen-NuVpv-nc.cjs} +2 -2
  11. package/dist/{MessagingScreen-DOjbhTOB.cjs.map → MessagingScreen-NuVpv-nc.cjs.map} +1 -1
  12. package/dist/{OrdersScreen-5VmHwt9p.cjs → OrdersScreen-BHwi-PHP.cjs} +2 -2
  13. package/dist/{OrdersScreen-5VmHwt9p.cjs.map → OrdersScreen-BHwi-PHP.cjs.map} +1 -1
  14. package/dist/{OrdersScreen-CgJs_YwT.mjs → OrdersScreen-C2B9Eqgv.mjs} +3 -3
  15. package/dist/{OrdersScreen-DKH7gRMR.mjs → OrdersScreen-DrevIASH.mjs} +2 -2
  16. package/dist/{OrdersScreen-DKH7gRMR.mjs.map → OrdersScreen-DrevIASH.mjs.map} +1 -1
  17. package/dist/{OrdersScreen-Bu1Xu3rN.cjs → OrdersScreen-ppjcbl-E.cjs} +3 -3
  18. package/dist/{ProfileScreen-BpgrJkH0.mjs → ProfileScreen-BrXQWXXp.mjs} +3 -3
  19. package/dist/{ProfileScreen-BpgrJkH0.mjs.map → ProfileScreen-BrXQWXXp.mjs.map} +1 -1
  20. package/dist/{ProfileScreen-DBwYxpTt.cjs → ProfileScreen-Cyv8PyYg.cjs} +4 -4
  21. package/dist/{ProfileScreen-DLuirgGc.cjs → ProfileScreen-gWeOhTjQ.cjs} +3 -3
  22. package/dist/{ProfileScreen-DLuirgGc.cjs.map → ProfileScreen-gWeOhTjQ.cjs.map} +1 -1
  23. package/dist/{ProfileScreen-cWvrOUKa.mjs → ProfileScreen-vepAcLXw.mjs} +4 -4
  24. package/dist/{SubscriptionsScreen-0S2YmOKZ.mjs → SubscriptionsScreen-BBMYV3Ge.mjs} +4 -4
  25. package/dist/{SubscriptionsScreen-DExbk_Rt.cjs → SubscriptionsScreen-BdirZOBn.cjs} +4 -4
  26. package/dist/{SubscriptionsScreen-_CMNc90t.mjs → SubscriptionsScreen-KUxdCKB-.mjs} +4 -4
  27. package/dist/{SubscriptionsScreen-_CMNc90t.mjs.map → SubscriptionsScreen-KUxdCKB-.mjs.map} +1 -1
  28. package/dist/{SubscriptionsScreen-D4lpU-bC.cjs → SubscriptionsScreen-LXjZ4qKy.cjs} +4 -4
  29. package/dist/{SubscriptionsScreen-D4lpU-bC.cjs.map → SubscriptionsScreen-LXjZ4qKy.cjs.map} +1 -1
  30. package/dist/{build-remote-widget-plugin-manifests-BS2FjZRV.d.cts → build-remote-widget-plugin-manifests-DUfcmkSD.d.cts} +3 -3
  31. package/dist/{build-remote-widget-plugin-manifests-BS2FjZRV.d.cts.map → build-remote-widget-plugin-manifests-DUfcmkSD.d.cts.map} +1 -1
  32. package/dist/{build-remote-widget-plugin-manifests-DxlaOngq.d.mts → build-remote-widget-plugin-manifests-ejOCHU1U.d.mts} +3 -3
  33. package/dist/{build-remote-widget-plugin-manifests-DxlaOngq.d.mts.map → build-remote-widget-plugin-manifests-ejOCHU1U.d.mts.map} +1 -1
  34. package/dist/{build-widget-registry-BvaGCB_P.mjs → build-widget-registry---S4DdG-.mjs} +2 -2
  35. package/dist/{build-widget-registry-BvaGCB_P.mjs.map → build-widget-registry---S4DdG-.mjs.map} +1 -1
  36. package/dist/{build-widget-registry-BuzSME2l.d.mts → build-widget-registry-B4uXvJe_.d.mts} +2 -2
  37. package/dist/{build-widget-registry-BuzSME2l.d.mts.map → build-widget-registry-B4uXvJe_.d.mts.map} +1 -1
  38. package/dist/{build-widget-registry-Dsp9P8gq.d.cts → build-widget-registry-C_uBIhbU.d.cts} +2 -2
  39. package/dist/{build-widget-registry-Dsp9P8gq.d.cts.map → build-widget-registry-C_uBIhbU.d.cts.map} +1 -1
  40. package/dist/{build-widget-registry-B2K6eJ2o.cjs → build-widget-registry-D28CSx4b.cjs} +2 -2
  41. package/dist/{build-widget-registry-B2K6eJ2o.cjs.map → build-widget-registry-D28CSx4b.cjs.map} +1 -1
  42. package/dist/fluid-spacer-widget-Cgsgu8lP.mjs +1265 -0
  43. package/dist/fluid-spacer-widget-Cgsgu8lP.mjs.map +1 -0
  44. package/dist/fluid-spacer-widget-ajsnkeUW.cjs +1805 -0
  45. package/dist/fluid-spacer-widget-ajsnkeUW.cjs.map +1 -0
  46. package/dist/index.cjs +16 -16
  47. package/dist/index.d.cts +3 -3
  48. package/dist/index.d.mts +3 -3
  49. package/dist/index.mjs +16 -16
  50. package/dist/{portal-function-DYWFgeRx.d.cts → portal-function-DUOB0Ykd.d.cts} +52 -1
  51. package/dist/{portal-function-DYWFgeRx.d.cts.map → portal-function-DUOB0Ykd.d.cts.map} +1 -1
  52. package/dist/{portal-function-MTknwZfL.d.mts → portal-function-hOpcnB0R.d.mts} +52 -1
  53. package/dist/{portal-function-MTknwZfL.d.mts.map → portal-function-hOpcnB0R.d.mts.map} +1 -1
  54. package/dist/{use-portal-card-add-3ds-flow-BlrgGoIL.cjs → use-portal-card-add-3ds-flow-ChMcZpwT.cjs} +26 -10
  55. package/dist/use-portal-card-add-3ds-flow-ChMcZpwT.cjs.map +1 -0
  56. package/dist/{use-portal-card-add-3ds-flow-BBIXp3G5.mjs → use-portal-card-add-3ds-flow-Dxz8NvV-.mjs} +26 -10
  57. package/dist/use-portal-card-add-3ds-flow-Dxz8NvV-.mjs.map +1 -0
  58. package/dist/utils/build-remote-widget-plugin-manifests.cjs +1 -1
  59. package/dist/utils/build-remote-widget-plugin-manifests.d.cts +1 -1
  60. package/dist/utils/build-remote-widget-plugin-manifests.d.mts +1 -1
  61. package/dist/utils/build-remote-widget-plugin-manifests.mjs +1 -1
  62. package/dist/utils/build-widget-registry.cjs +1 -1
  63. package/dist/utils/build-widget-registry.d.cts +1 -1
  64. package/dist/utils/build-widget-registry.d.mts +1 -1
  65. package/dist/utils/build-widget-registry.mjs +1 -1
  66. package/dist/widgets/worker.cjs +72 -1
  67. package/dist/widgets/worker.cjs.map +1 -1
  68. package/dist/widgets/worker.d.cts +1193 -329
  69. package/dist/widgets/worker.d.cts.map +1 -1
  70. package/dist/widgets/worker.d.mts +1193 -329
  71. package/dist/widgets/worker.d.mts.map +1 -1
  72. package/dist/widgets/worker.mjs +72 -1
  73. package/dist/widgets/worker.mjs.map +1 -1
  74. package/package.json +16 -16
  75. package/dist/fluid-spacer-widget-C33ayl7j.mjs +0 -547
  76. package/dist/fluid-spacer-widget-C33ayl7j.mjs.map +0 -1
  77. package/dist/fluid-spacer-widget-DoUSdfS_.cjs +0 -1087
  78. package/dist/fluid-spacer-widget-DoUSdfS_.cjs.map +0 -1
  79. package/dist/use-portal-card-add-3ds-flow-BBIXp3G5.mjs.map +0 -1
  80. package/dist/use-portal-card-add-3ds-flow-BlrgGoIL.cjs.map +0 -1
@@ -1,547 +0,0 @@
1
- import { RemoteDomCapabilityFunctionError, defineRemoteDomCapabilityFunction, getRemoteDomCapabilityFunctionMetadata } from "@fluid-app/widget-runtime/worker";
2
- //#region src/widgets/remote/contract/portal-function.ts
3
- /** Canonical Portal function contract shared by worker and host code. */
4
- const PORTAL_FUNCTION_METADATA = Symbol.for("@fluid-app/portal-sdk/portal-function-metadata");
5
- const PORTAL_FUNCTION_ERROR_PREFIX = "PORTAL_FUNCTION_ERROR:";
6
- const PORTAL_FUNCTION_ERROR_CODES = new Set([
7
- "NOT_MOUNTED",
8
- "NOT_DECLARED",
9
- "INVALID_ARGUMENT",
10
- "UNAVAILABLE",
11
- "UNSUPPORTED",
12
- "HOST_FAILURE",
13
- "INVALID_RESPONSE"
14
- ]);
15
- /** A stable, serializable failure reported by a Portal function call. */
16
- var PortalFunctionError = class extends Error {
17
- code;
18
- constructor(code, message) {
19
- super(message);
20
- this.name = "PortalFunctionError";
21
- this.code = code;
22
- }
23
- };
24
- function definePortalFunction(definition, ..._contractErrors) {
25
- const remoteFunction = defineRemoteDomCapabilityFunction(definition);
26
- const portalFunction = (async (...args) => {
27
- try {
28
- if (args.length > 1) throw new PortalFunctionError("INVALID_ARGUMENT", `Portal function "${definition.capability}.${definition.method}" accepts at most one argument.`);
29
- const invoke = remoteFunction;
30
- return args.length === 0 ? await invoke() : await invoke(args[0]);
31
- } catch (error) {
32
- throw toPortalFunctionError(error);
33
- }
34
- });
35
- return attachPortalFunctionMetadata(portalFunction, definition);
36
- }
37
- function implementPortalFunction(portalFunction, handler) {
38
- const definition = getPortalFunctionMetadata(portalFunction);
39
- if (!definition) throw new PortalFunctionError("INVALID_ARGUMENT", "implementPortalFunction requires a function created by definePortalFunction.");
40
- return {
41
- definition,
42
- portalFunction,
43
- handler
44
- };
45
- }
46
- /** @internal Used to normalize worker declarations and host implementations. */
47
- function getPortalFunctionMetadata(value) {
48
- if (typeof value !== "function") return void 0;
49
- const portalMetadata = Reflect.get(value, PORTAL_FUNCTION_METADATA);
50
- if (isPortalFunctionDefinition(portalMetadata)) return portalMetadata;
51
- const runtimeMetadata = getRemoteDomCapabilityFunctionMetadata(value);
52
- return runtimeMetadata ? toPortalFunctionDefinition(runtimeMetadata) : void 0;
53
- }
54
- function attachPortalFunctionMetadata(portalFunction, definition) {
55
- const stableDefinition = Object.freeze({ ...definition });
56
- Object.defineProperty(portalFunction, PORTAL_FUNCTION_METADATA, {
57
- configurable: false,
58
- enumerable: false,
59
- writable: false,
60
- value: stableDefinition
61
- });
62
- return portalFunction;
63
- }
64
- function toPortalFunctionDefinition(metadata) {
65
- return {
66
- capability: metadata.capability,
67
- version: metadata.version,
68
- method: metadata.method
69
- };
70
- }
71
- function isPortalFunctionDefinition(value) {
72
- if (typeof value !== "object" || value === null) return false;
73
- return "capability" in value && typeof value.capability === "string" && "version" in value && typeof value.version === "string" && "method" in value && typeof value.method === "string";
74
- }
75
- function toPortalFunctionError(error) {
76
- if (error instanceof PortalFunctionError) return error;
77
- if (error instanceof RemoteDomCapabilityFunctionError) return new PortalFunctionError(error.code, error.message);
78
- const hostFailure = parseHostFunctionError(error);
79
- if (hostFailure) return hostFailure;
80
- return new PortalFunctionError("HOST_FAILURE", "The portal host could not complete this function call.");
81
- }
82
- function parseHostFunctionError(error) {
83
- if (!(error instanceof Error)) return null;
84
- const prefixIndex = error.message.indexOf(PORTAL_FUNCTION_ERROR_PREFIX);
85
- if (prefixIndex < 0) return null;
86
- const encoded = error.message.slice(prefixIndex + 22);
87
- const separatorIndex = encoded.indexOf(":");
88
- if (separatorIndex < 0) return null;
89
- const code = encoded.slice(0, separatorIndex);
90
- if (!isPortalFunctionErrorCode(code)) return null;
91
- return new PortalFunctionError(code, encoded.slice(separatorIndex + 1).trim() || "The portal host could not complete this function call.");
92
- }
93
- function isPortalFunctionErrorCode(value) {
94
- return PORTAL_FUNCTION_ERROR_CODES.has(value);
95
- }
96
- //#endregion
97
- //#region src/widgets/remote/contract/capabilities/built-in.ts
98
- const ACCOUNT_DEFINITION = {
99
- capability: "account",
100
- version: "1",
101
- method: "get"
102
- };
103
- const STORE_DEFINITION = {
104
- capability: "store",
105
- version: "1",
106
- method: "get"
107
- };
108
- const APP_DEFINITION = {
109
- capability: "fluidApp",
110
- version: "1",
111
- method: "get"
112
- };
113
- const PROFILE_DEFINITION = {
114
- capability: "fluidProfile",
115
- version: "1",
116
- method: "get"
117
- };
118
- const NAVIGATION_STATE_DEFINITION = {
119
- capability: "appNavigation",
120
- version: "1",
121
- method: "get"
122
- };
123
- const BUILD_HREF_DEFINITION = {
124
- capability: "appNavigation",
125
- version: "1",
126
- method: "buildHref"
127
- };
128
- const NAVIGATE_DEFINITION = {
129
- capability: "appNavigation",
130
- version: "1",
131
- method: "navigate"
132
- };
133
- const FULLSCREEN_STATE_DEFINITION = {
134
- capability: "fullscreen",
135
- version: "1",
136
- method: "get"
137
- };
138
- const REQUEST_FULLSCREEN_DEFINITION = {
139
- capability: "fullscreen",
140
- version: "1",
141
- method: "request"
142
- };
143
- const EXIT_FULLSCREEN_DEFINITION = {
144
- capability: "fullscreen",
145
- version: "1",
146
- method: "exit"
147
- };
148
- const ALLOW_ANCHOR_URL_DEFINITION = {
149
- capability: "externalNavigation",
150
- version: "1",
151
- method: "allowAnchorUrl"
152
- };
153
- const getUserAccount = definePortalFunction(ACCOUNT_DEFINITION);
154
- const getStore = definePortalFunction(STORE_DEFINITION);
155
- const getPortalApp = definePortalFunction(APP_DEFINITION);
156
- const getPortalProfile = definePortalFunction(PROFILE_DEFINITION);
157
- const getNavigationState = definePortalFunction(NAVIGATION_STATE_DEFINITION);
158
- const buildPortalHref = definePortalFunction(BUILD_HREF_DEFINITION);
159
- const navigate = definePortalFunction(NAVIGATE_DEFINITION);
160
- const navigateTo = attachPortalFunctionMetadata(async (target) => {
161
- await navigate(target);
162
- }, NAVIGATE_DEFINITION);
163
- const getFullscreenState = definePortalFunction(FULLSCREEN_STATE_DEFINITION);
164
- const request = definePortalFunction(REQUEST_FULLSCREEN_DEFINITION);
165
- const requestFullscreen = attachPortalFunctionMetadata(async () => {
166
- await request();
167
- }, REQUEST_FULLSCREEN_DEFINITION);
168
- const exit = definePortalFunction(EXIT_FULLSCREEN_DEFINITION);
169
- const exitFullscreen = attachPortalFunctionMetadata(async () => {
170
- await exit();
171
- }, EXIT_FULLSCREEN_DEFINITION);
172
- /** Registers one exact absolute HTTP(S) URL for use by an anchor in this mount. */
173
- const allowAnchorUrl = definePortalFunction(ALLOW_ANCHOR_URL_DEFINITION);
174
- //#endregion
175
- //#region src/widgets/remote/contract/capabilities/read.ts
176
- const PORTAL_READ_FUNCTION_DEFINITIONS = {
177
- listCountries: {
178
- capability: "localization",
179
- version: "1",
180
- method: "listCountries"
181
- },
182
- listLanguages: {
183
- capability: "localization",
184
- version: "1",
185
- method: "listLanguages"
186
- },
187
- getAddressFields: {
188
- capability: "localization",
189
- version: "1",
190
- method: "getAddressFields"
191
- },
192
- listProducts: {
193
- capability: "products",
194
- version: "1",
195
- method: "listProducts"
196
- },
197
- getProduct: {
198
- capability: "products",
199
- version: "1",
200
- method: "getProduct"
201
- },
202
- searchProducts: {
203
- capability: "products",
204
- version: "1",
205
- method: "searchProducts"
206
- },
207
- listProductMedia: {
208
- capability: "products",
209
- version: "1",
210
- method: "listProductMedia"
211
- },
212
- listProductMetrics: {
213
- capability: "products",
214
- version: "1",
215
- method: "listProductMetrics"
216
- },
217
- listCalendarEvents: {
218
- capability: "calendar",
219
- version: "1",
220
- method: "listCalendarEvents"
221
- },
222
- listContentMedia: {
223
- capability: "content",
224
- version: "1",
225
- method: "listMedia"
226
- },
227
- getContentMedia: {
228
- capability: "content",
229
- version: "1",
230
- method: "getMedia"
231
- },
232
- listPlaylists: {
233
- capability: "content",
234
- version: "1",
235
- method: "listPlaylists"
236
- },
237
- getPlaylist: {
238
- capability: "content",
239
- version: "1",
240
- method: "getPlaylist"
241
- },
242
- listPlaylistItems: {
243
- capability: "content",
244
- version: "1",
245
- method: "listPlaylistItems"
246
- },
247
- listPages: {
248
- capability: "content",
249
- version: "1",
250
- method: "listPages"
251
- },
252
- getPage: {
253
- capability: "content",
254
- version: "1",
255
- method: "getPage"
256
- },
257
- listEnrollmentPacks: {
258
- capability: "content",
259
- version: "1",
260
- method: "listEnrollmentPacks"
261
- },
262
- getEnrollmentPack: {
263
- capability: "content",
264
- version: "1",
265
- method: "getEnrollmentPack"
266
- },
267
- listContentMetrics: {
268
- capability: "content",
269
- version: "1",
270
- method: "listMetrics"
271
- },
272
- listShares: {
273
- capability: "content",
274
- version: "1",
275
- method: "listShares"
276
- },
277
- listDamAssets: {
278
- capability: "content",
279
- version: "1",
280
- method: "listDamAssets"
281
- },
282
- listDamAssetPaths: {
283
- capability: "content",
284
- version: "1",
285
- method: "listDamAssetPaths"
286
- }
287
- };
288
- const listCountries = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listCountries);
289
- const listLanguages = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listLanguages);
290
- const getAddressFields = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.getAddressFields);
291
- const listProducts = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listProducts);
292
- const getProduct = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.getProduct);
293
- const searchProducts = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.searchProducts);
294
- const listProductMedia = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listProductMedia);
295
- const listProductMetrics = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listProductMetrics);
296
- const listCalendarEvents = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listCalendarEvents);
297
- const listContentMedia = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listContentMedia);
298
- const getContentMedia = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.getContentMedia);
299
- const listPlaylists = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listPlaylists);
300
- const getPlaylist = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.getPlaylist);
301
- const listPlaylistItems = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listPlaylistItems);
302
- const listPages = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listPages);
303
- const getPage = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.getPage);
304
- const listEnrollmentPacks = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listEnrollmentPacks);
305
- const getEnrollmentPack = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.getEnrollmentPack);
306
- const listContentMetrics = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listContentMetrics);
307
- const listShares = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listShares);
308
- const listDamAssets = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listDamAssets);
309
- const listDamAssetPaths = definePortalFunction(PORTAL_READ_FUNCTION_DEFINITIONS.listDamAssetPaths);
310
- //#endregion
311
- //#region src/widgets/remote/contract/capabilities/content-mutation.ts
312
- const PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS = {
313
- createContentMedia: {
314
- capability: "content.write",
315
- version: "1",
316
- method: "createMedia"
317
- },
318
- updateContentMedia: {
319
- capability: "content.write",
320
- version: "1",
321
- method: "updateMedia"
322
- },
323
- deleteContentMedia: {
324
- capability: "content.write",
325
- version: "1",
326
- method: "deleteMedia"
327
- },
328
- listContentMediaProducts: {
329
- capability: "content",
330
- version: "1",
331
- method: "listMediaProducts"
332
- },
333
- addContentMediaProduct: {
334
- capability: "content.write",
335
- version: "1",
336
- method: "addMediaProduct"
337
- },
338
- removeContentMediaProduct: {
339
- capability: "content.write",
340
- version: "1",
341
- method: "removeMediaProduct"
342
- },
343
- createContentPlaylist: {
344
- capability: "content.write",
345
- version: "1",
346
- method: "createPlaylist"
347
- },
348
- updateContentPlaylist: {
349
- capability: "content.write",
350
- version: "1",
351
- method: "updatePlaylist"
352
- },
353
- deleteContentPlaylist: {
354
- capability: "content.write",
355
- version: "1",
356
- method: "deletePlaylist"
357
- },
358
- addContentPlaylistItem: {
359
- capability: "content.write",
360
- version: "1",
361
- method: "addPlaylistItem"
362
- },
363
- removeContentPlaylistItem: {
364
- capability: "content.write",
365
- version: "1",
366
- method: "removePlaylistItem"
367
- },
368
- reorderContentPlaylistItems: {
369
- capability: "content.write",
370
- version: "1",
371
- method: "reorderPlaylistItems"
372
- },
373
- createContentShare: {
374
- capability: "content.write",
375
- version: "1",
376
- method: "createShare"
377
- },
378
- toggleContentFavorite: {
379
- capability: "content.write",
380
- version: "1",
381
- method: "toggleFavorite"
382
- },
383
- createDamAsset: {
384
- capability: "content.write",
385
- version: "1",
386
- method: "createDamAsset"
387
- },
388
- createDamAssetPath: {
389
- capability: "content.write",
390
- version: "1",
391
- method: "createDamAssetPath"
392
- },
393
- discardDamAsset: {
394
- capability: "content.write",
395
- version: "1",
396
- method: "discardDamAsset"
397
- },
398
- deleteDamAsset: {
399
- capability: "content.write",
400
- version: "1",
401
- method: "deleteDamAsset"
402
- }
403
- };
404
- const createContentMedia = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.createContentMedia);
405
- const updateContentMedia = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.updateContentMedia);
406
- const deleteContentMedia = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.deleteContentMedia);
407
- const listContentMediaProducts = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.listContentMediaProducts);
408
- const addContentMediaProduct = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.addContentMediaProduct);
409
- const removeContentMediaProduct = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.removeContentMediaProduct);
410
- const createContentPlaylist = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.createContentPlaylist);
411
- const updateContentPlaylist = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.updateContentPlaylist);
412
- const deleteContentPlaylist = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.deleteContentPlaylist);
413
- const addContentPlaylistItem = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.addContentPlaylistItem);
414
- const removeContentPlaylistItem = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.removeContentPlaylistItem);
415
- const reorderContentPlaylistItems = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.reorderContentPlaylistItems);
416
- const createContentShare = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.createContentShare);
417
- const toggleContentFavorite = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.toggleContentFavorite);
418
- const createDamAsset = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.createDamAsset);
419
- const createDamAssetPath = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.createDamAssetPath);
420
- const discardDamAsset = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.discardDamAsset);
421
- const deleteDamAsset = definePortalFunction(PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS.deleteDamAsset);
422
- //#endregion
423
- //#region src/widgets/remote/contract/capabilities/self.ts
424
- const PORTAL_SELF_FUNCTION_DEFINITIONS = {
425
- getMemberAccess: {
426
- capability: "account",
427
- version: "1",
428
- method: "getMemberAccess"
429
- },
430
- updateUserAccount: {
431
- capability: "account.write",
432
- version: "1",
433
- method: "update"
434
- },
435
- listTodos: {
436
- capability: "todos",
437
- version: "1",
438
- method: "list"
439
- },
440
- createTodo: {
441
- capability: "todos.write",
442
- version: "1",
443
- method: "create"
444
- },
445
- getPointsLedger: {
446
- capability: "points",
447
- version: "1",
448
- method: "get"
449
- },
450
- getMySiteProfile: {
451
- capability: "mySite",
452
- version: "1",
453
- method: "getProfile"
454
- },
455
- updateMySiteProfile: {
456
- capability: "mySite.write",
457
- version: "1",
458
- method: "updateProfile"
459
- },
460
- updateMySiteSettings: {
461
- capability: "mySite.write",
462
- version: "1",
463
- method: "updateSettings"
464
- },
465
- listMySiteLinks: {
466
- capability: "mySite",
467
- version: "1",
468
- method: "listLinks"
469
- },
470
- createMySiteLink: {
471
- capability: "mySite.write",
472
- version: "1",
473
- method: "createLink"
474
- },
475
- updateMySiteLink: {
476
- capability: "mySite.write",
477
- version: "1",
478
- method: "updateLink"
479
- },
480
- deleteMySiteLink: {
481
- capability: "mySite.write",
482
- version: "1",
483
- method: "deleteLink"
484
- },
485
- reorderMySiteLinks: {
486
- capability: "mySite.write",
487
- version: "1",
488
- method: "reorderLinks"
489
- },
490
- listMySiteFavorites: {
491
- capability: "mySite",
492
- version: "1",
493
- method: "listFavorites"
494
- },
495
- addMySiteFavorite: {
496
- capability: "mySite.write",
497
- version: "1",
498
- method: "addFavorite"
499
- },
500
- deleteMySiteFavorite: {
501
- capability: "mySite.write",
502
- version: "1",
503
- method: "deleteFavorite"
504
- },
505
- reorderMySiteFavorites: {
506
- capability: "mySite.write",
507
- version: "1",
508
- method: "reorderFavorites"
509
- },
510
- listMySiteThemes: {
511
- capability: "mySite",
512
- version: "1",
513
- method: "listThemes"
514
- }
515
- };
516
- const getMemberAccess = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.getMemberAccess);
517
- const updateUserAccount = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.updateUserAccount);
518
- const listTodos = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.listTodos);
519
- const createTodo = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.createTodo);
520
- const getPointsLedger = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.getPointsLedger);
521
- const getMySiteProfile = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.getMySiteProfile);
522
- const updateMySiteProfile = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.updateMySiteProfile);
523
- const updateMySiteSettings = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.updateMySiteSettings);
524
- const listMySiteLinks = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.listMySiteLinks);
525
- const createMySiteLink = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.createMySiteLink);
526
- const updateMySiteLink = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.updateMySiteLink);
527
- const deleteMySiteLink = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.deleteMySiteLink);
528
- const reorderMySiteLinks = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.reorderMySiteLinks);
529
- const listMySiteFavorites = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.listMySiteFavorites);
530
- const addMySiteFavorite = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.addMySiteFavorite);
531
- const deleteMySiteFavorite = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.deleteMySiteFavorite);
532
- const reorderMySiteFavorites = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.reorderMySiteFavorites);
533
- const listMySiteThemes = definePortalFunction(PORTAL_SELF_FUNCTION_DEFINITIONS.listMySiteThemes);
534
- //#endregion
535
- //#region src/widgets/remote/contract/elements/search-sort.ts
536
- const FLUID_SEARCH_SORT_TAG_NAME = "fluid-ui-search-sort";
537
- const FLUID_SEARCH_SORT_EVENT_NAMES = {
538
- searchChange: "search-change",
539
- sortChange: "sort-change"
540
- };
541
- //#endregion
542
- //#region src/widgets/remote/contract/elements/fluid-spacer-widget.ts
543
- const FLUID_SPACER_WIDGET_TAG_NAME = "fluid-spacer-widget";
544
- //#endregion
545
- export { listDamAssetPaths as $, createDamAssetPath as A, getUserAccount as At, updateContentMedia as B, PORTAL_CONTENT_MUTATION_FUNCTION_DEFINITIONS as C, buildPortalHref as Ct, createContentPlaylist as D, getPortalApp as Dt, createContentMedia as E, getNavigationState as Et, listContentMediaProducts as F, getPortalFunctionMetadata as Ft, getEnrollmentPack as G, PORTAL_READ_FUNCTION_DEFINITIONS as H, removeContentMediaProduct as I, implementPortalFunction as It, getProduct as J, getPage as K, removeContentPlaylistItem as L, deleteContentPlaylist as M, requestFullscreen as Mt, deleteDamAsset as N, PortalFunctionError as Nt, createContentShare as O, getPortalProfile as Ot, discardDamAsset as P, definePortalFunction as Pt, listCountries as Q, reorderContentPlaylistItems as R, updateUserAccount as S, allowAnchorUrl as St, addContentPlaylistItem as T, getFullscreenState as Tt, getAddressFields as U, updateContentPlaylist as V, getContentMedia as W, listContentMedia as X, listCalendarEvents as Y, listContentMetrics as Z, reorderMySiteFavorites as _, NAVIGATE_DEFINITION as _t, addMySiteFavorite as a, listPlaylists as at, updateMySiteProfile as b, REQUEST_FULLSCREEN_DEFINITION as bt, deleteMySiteFavorite as c, listProducts as ct, getMySiteProfile as d, ACCOUNT_DEFINITION as dt, listDamAssets as et, getPointsLedger as f, ALLOW_ANCHOR_URL_DEFINITION as ft, listTodos as g, FULLSCREEN_STATE_DEFINITION as gt, listMySiteThemes as h, EXIT_FULLSCREEN_DEFINITION as ht, PORTAL_SELF_FUNCTION_DEFINITIONS as i, listPlaylistItems as it, deleteContentMedia as j, navigateTo as jt, createDamAsset as k, getStore as kt, deleteMySiteLink as l, listShares as lt, listMySiteLinks as m, BUILD_HREF_DEFINITION as mt, FLUID_SEARCH_SORT_EVENT_NAMES as n, listLanguages as nt, createMySiteLink as o, listProductMedia as ot, listMySiteFavorites as p, APP_DEFINITION as pt, getPlaylist as q, FLUID_SEARCH_SORT_TAG_NAME as r, listPages as rt, createTodo as s, listProductMetrics as st, FLUID_SPACER_WIDGET_TAG_NAME as t, listEnrollmentPacks as tt, getMemberAccess as u, searchProducts as ut, reorderMySiteLinks as v, NAVIGATION_STATE_DEFINITION as vt, addContentMediaProduct as w, exitFullscreen as wt, updateMySiteSettings as x, STORE_DEFINITION as xt, updateMySiteLink as y, PROFILE_DEFINITION as yt, toggleContentFavorite as z };
546
-
547
- //# sourceMappingURL=fluid-spacer-widget-C33ayl7j.mjs.map