@fluid-app/portal-sdk 0.1.154 → 0.1.156

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 (92) hide show
  1. package/dist/{ContactsScreen-Dy9coizh.cjs → ContactsScreen-BKQk5wU5.cjs} +2 -2
  2. package/dist/{ContactsScreen-Djvyn4Rq.cjs → ContactsScreen-Ck5NCh9d.cjs} +3 -3
  3. package/dist/{ContactsScreen-Djvyn4Rq.cjs.map → ContactsScreen-Ck5NCh9d.cjs.map} +1 -1
  4. package/dist/{ContactsScreen-BKT7Ohfe.mjs → ContactsScreen-CmnKU--w.mjs} +3 -3
  5. package/dist/{ContactsScreen-BKT7Ohfe.mjs.map → ContactsScreen-CmnKU--w.mjs.map} +1 -1
  6. package/dist/{FluidProvider-CRMe-Enf.cjs → FluidProvider-Bc-3uN7M.cjs} +151 -19
  7. package/dist/FluidProvider-Bc-3uN7M.cjs.map +1 -0
  8. package/dist/{FluidProvider-DpET43hN.mjs → FluidProvider-Cqf2kmUc.mjs} +137 -5
  9. package/dist/FluidProvider-Cqf2kmUc.mjs.map +1 -0
  10. package/dist/{MessagingScreen-DXgDrzlG.mjs → MessagingScreen-B1MbKdSO.mjs} +2 -2
  11. package/dist/{MessagingScreen-DXgDrzlG.mjs.map → MessagingScreen-B1MbKdSO.mjs.map} +1 -1
  12. package/dist/{MessagingScreen-cxQADd91.cjs → MessagingScreen-lAO4PVqi.cjs} +2 -2
  13. package/dist/{MessagingScreen-cxQADd91.cjs.map → MessagingScreen-lAO4PVqi.cjs.map} +1 -1
  14. package/dist/{MessagingScreen-ChCBVO4U.cjs → MessagingScreen-s9HaMQGR.cjs} +4 -3
  15. package/dist/{MySiteScreen-gl8KGOrU.mjs → MySiteScreen-BEbj9K8U.mjs} +262 -602
  16. package/dist/MySiteScreen-BEbj9K8U.mjs.map +1 -0
  17. package/dist/{MySiteScreen-CdsAyh7a.cjs → MySiteScreen-D8YvEYwH.cjs} +262 -611
  18. package/dist/MySiteScreen-D8YvEYwH.cjs.map +1 -0
  19. package/dist/{MySiteScreen-efkpTcUh.cjs → MySiteScreen-DIbwHNbV.cjs} +2 -1
  20. package/dist/{OrdersScreen-C0HGsjwv.mjs → OrdersScreen-CSbbQw2L.mjs} +2 -2
  21. package/dist/{OrdersScreen-C0HGsjwv.mjs.map → OrdersScreen-CSbbQw2L.mjs.map} +1 -1
  22. package/dist/{OrdersScreen-Dbmbf9g_.cjs → OrdersScreen-DLjDPnqI.cjs} +2 -2
  23. package/dist/{OrdersScreen-Dbmbf9g_.cjs.map → OrdersScreen-DLjDPnqI.cjs.map} +1 -1
  24. package/dist/{OrdersScreen-dNALJLm3.cjs → OrdersScreen-Dxv6ZQlu.cjs} +1 -1
  25. package/dist/{ProductsScreen-H-8HShV5.mjs → ProductsScreen-CcRQhx0c.mjs} +2 -2
  26. package/dist/{ProductsScreen-H-8HShV5.mjs.map → ProductsScreen-CcRQhx0c.mjs.map} +1 -1
  27. package/dist/{ProductsScreen-CfcVBUZ8.cjs → ProductsScreen-DTBg7Bm3.cjs} +2 -2
  28. package/dist/{ProductsScreen-CfcVBUZ8.cjs.map → ProductsScreen-DTBg7Bm3.cjs.map} +1 -1
  29. package/dist/{ProductsScreen-Dcnp0MG-.mjs → ProductsScreen-MADYD0MH.mjs} +5 -4
  30. package/dist/{ProductsScreen-BJ2ZUaPi.cjs → ProductsScreen-NmOdT82w.cjs} +5 -4
  31. package/dist/{ProfileScreen-CaNQYd_F.mjs → ProfileScreen-BcCYQt5U.mjs} +4 -4
  32. package/dist/{ProfileScreen-CaNQYd_F.mjs.map → ProfileScreen-BcCYQt5U.mjs.map} +1 -1
  33. package/dist/{ProfileScreen-BRPBvvI7.cjs → ProfileScreen-C01vRpm3.cjs} +4 -3
  34. package/dist/{ProfileScreen-D4OJk9F0.cjs → ProfileScreen-fmUckcMP.cjs} +4 -4
  35. package/dist/{ProfileScreen-D4OJk9F0.cjs.map → ProfileScreen-fmUckcMP.cjs.map} +1 -1
  36. package/dist/{ShareablesScreen-CL6A1m_P.cjs → ShareablesScreen-BMxugV_y.cjs} +5 -4
  37. package/dist/{ShareablesScreen-FDOtQ67f.mjs → ShareablesScreen-BkVWntLq.mjs} +5 -4
  38. package/dist/{ShareablesScreen-DLz5tvRS.cjs → ShareablesScreen-DmtFkpDO.cjs} +2 -2
  39. package/dist/{ShareablesScreen-DLz5tvRS.cjs.map → ShareablesScreen-DmtFkpDO.cjs.map} +1 -1
  40. package/dist/{ShareablesScreen-CtK4S7FT.mjs → ShareablesScreen-WW2uw8wV.mjs} +2 -2
  41. package/dist/{ShareablesScreen-CtK4S7FT.mjs.map → ShareablesScreen-WW2uw8wV.mjs.map} +1 -1
  42. package/dist/{ShopScreen-Bj3PjrVi.cjs → ShopScreen-BeBh8oUd.cjs} +3 -3
  43. package/dist/{ShopScreen-Bj3PjrVi.cjs.map → ShopScreen-BeBh8oUd.cjs.map} +1 -1
  44. package/dist/{ShopScreen-CKidhX9F.cjs → ShopScreen-D2DmHW7P.cjs} +4 -3
  45. package/dist/{ShopScreen-DDscuexZ.mjs → ShopScreen-DQDOi7Xn.mjs} +3 -3
  46. package/dist/{ShopScreen-DDscuexZ.mjs.map → ShopScreen-DQDOi7Xn.mjs.map} +1 -1
  47. package/dist/{SubscriptionsScreen-Cu9Fc98m.mjs → SubscriptionsScreen-3u1tEn1b.mjs} +2 -2
  48. package/dist/{SubscriptionsScreen-Cu9Fc98m.mjs.map → SubscriptionsScreen-3u1tEn1b.mjs.map} +1 -1
  49. package/dist/{SubscriptionsScreen-DHg2Y0Vk.cjs → SubscriptionsScreen-D0gK60uD.cjs} +1 -1
  50. package/dist/{SubscriptionsScreen-RaocKuQG.cjs → SubscriptionsScreen-DQt1YUAH.cjs} +2 -2
  51. package/dist/{SubscriptionsScreen-RaocKuQG.cjs.map → SubscriptionsScreen-DQt1YUAH.cjs.map} +1 -1
  52. package/dist/{countries-api-context-EEnpUpp2.cjs → countries-api-context-CwUkJTdy.cjs} +1 -1
  53. package/dist/{countries-api-context-EEnpUpp2.cjs.map → countries-api-context-CwUkJTdy.cjs.map} +1 -1
  54. package/dist/{countries-api-context-esV7AdsB.mjs → countries-api-context-D0dubtHy.mjs} +1 -1
  55. package/dist/{countries-api-context-esV7AdsB.mjs.map → countries-api-context-D0dubtHy.mjs.map} +1 -1
  56. package/dist/index.cjs +31 -30
  57. package/dist/index.cjs.map +1 -1
  58. package/dist/index.d.cts +4 -25
  59. package/dist/index.d.cts.map +1 -1
  60. package/dist/index.d.mts +4 -25
  61. package/dist/index.d.mts.map +1 -1
  62. package/dist/index.mjs +31 -30
  63. package/dist/index.mjs.map +1 -1
  64. package/dist/mysite-api-context-BTt-_urb.cjs +25 -0
  65. package/dist/mysite-api-context-BTt-_urb.cjs.map +1 -0
  66. package/dist/mysite-api-context-C7eiw7TO.mjs +13 -0
  67. package/dist/mysite-api-context-C7eiw7TO.mjs.map +1 -0
  68. package/dist/{parse-api-errors-DLWVAkAd.mjs → parse-api-errors-D8PITFLg.mjs} +1 -1
  69. package/dist/{parse-api-errors-DLWVAkAd.mjs.map → parse-api-errors-D8PITFLg.mjs.map} +1 -1
  70. package/dist/{parse-api-errors-J6VflWm8.cjs → parse-api-errors-pw_TZf_b.cjs} +1 -1
  71. package/dist/{parse-api-errors-J6VflWm8.cjs.map → parse-api-errors-pw_TZf_b.cjs.map} +1 -1
  72. package/dist/{portal_tenant-DTIfG6m4.cjs → portal_tenant-CSxWYAH-.cjs} +1 -1
  73. package/dist/{portal_tenant-DTIfG6m4.cjs.map → portal_tenant-CSxWYAH-.cjs.map} +1 -1
  74. package/dist/{portal_tenant-S57LBMo6.mjs → portal_tenant-Taa7uJwV.mjs} +1 -1
  75. package/dist/{portal_tenant-S57LBMo6.mjs.map → portal_tenant-Taa7uJwV.mjs.map} +1 -1
  76. package/dist/{use-portal-products-client-DGYbhJLC.mjs → use-portal-products-client-CChGsvZI.mjs} +2 -2
  77. package/dist/{use-portal-products-client-DGYbhJLC.mjs.map → use-portal-products-client-CChGsvZI.mjs.map} +1 -1
  78. package/dist/{use-portal-products-client-CkehVVCL.cjs → use-portal-products-client-mpdZuZyu.cjs} +2 -2
  79. package/dist/{use-portal-products-client-CkehVVCL.cjs.map → use-portal-products-client-mpdZuZyu.cjs.map} +1 -1
  80. package/dist/{use-portal-shareables-api-BpQpcPcx.cjs → use-portal-shareables-api-CZ4ELYei.cjs} +3 -3
  81. package/dist/{use-portal-shareables-api-BpQpcPcx.cjs.map → use-portal-shareables-api-CZ4ELYei.cjs.map} +1 -1
  82. package/dist/{use-portal-shareables-api-kcUnux8J.mjs → use-portal-shareables-api-DXuaX66a.mjs} +3 -3
  83. package/dist/{use-portal-shareables-api-kcUnux8J.mjs.map → use-portal-shareables-api-DXuaX66a.mjs.map} +1 -1
  84. package/package.json +12 -12
  85. package/dist/FluidProvider-CRMe-Enf.cjs.map +0 -1
  86. package/dist/FluidProvider-DpET43hN.mjs.map +0 -1
  87. package/dist/MySiteScreen-CdsAyh7a.cjs.map +0 -1
  88. package/dist/MySiteScreen-gl8KGOrU.mjs.map +0 -1
  89. package/dist/portal_tenant_mysite-NSJTd8ff.mjs +0 -136
  90. package/dist/portal_tenant_mysite-NSJTd8ff.mjs.map +0 -1
  91. package/dist/portal_tenant_mysite-PDI1nxcm.cjs +0 -213
  92. package/dist/portal_tenant_mysite-PDI1nxcm.cjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { t as AccountApiProvider } from "./account-api-context-R4VVlZdv.mjs";
2
- import { t as CountriesApiProvider } from "./countries-api-context-esV7AdsB.mjs";
3
- import { n as account_update, r as app_definition_show, t as account_show } from "./portal_tenant-S57LBMo6.mjs";
4
- import { a as mysite_links_bulk_reorder, c as mysite_links_list, d as mysite_profile_update, f as mysite_settings_update, i as mysite_favorites_list, l as mysite_links_update, n as mysite_favorites_create, o as mysite_links_create, p as mysite_themes_list, r as mysite_favorites_destroy, s as mysite_links_destroy, t as mysite_favorites_bulk_reorder, u as mysite_profile_show } from "./portal_tenant_mysite-NSJTd8ff.mjs";
2
+ import { t as MySiteApiProvider } from "./mysite-api-context-C7eiw7TO.mjs";
3
+ import { t as CountriesApiProvider } from "./countries-api-context-D0dubtHy.mjs";
4
+ import { n as account_update, r as app_definition_show, t as account_show } from "./portal_tenant-Taa7uJwV.mjs";
5
5
  import { t as PortalTenantClientProvider } from "./PortalTenantClientProvider-_VXOs0t4.mjs";
6
6
  import { i as DataSourceRegistryProvider, t as PointsWidget } from "./PointsWidget-BM4Qg4XT.mjs";
7
7
  import { c as RegistryProvider } from "./ScreenRenderer-DFbUCe-5.mjs";
@@ -505,7 +505,6 @@ function usePayApi() {
505
505
  if (!api) throw new Error("usePayApi must be used within a PayApiProvider");
506
506
  return api;
507
507
  }
508
- const MySiteApiProvider = createContext(null).Provider;
509
508
  //#endregion
510
509
  //#region ../../store/core/src/languages-api-context.ts
511
510
  const LanguagesApiContext = createContext(null);
@@ -2299,6 +2298,139 @@ function createLanguagesApiAdapter(client) {
2299
2298
  return createPortalTenantLanguagesAdapter(client);
2300
2299
  }
2301
2300
  //#endregion
2301
+ //#region ../../api-clients/portal-tenant-mysite/src/namespaces/portal_tenant_mysite.ts
2302
+ /**
2303
+ * Get MySite profile for the current user
2304
+ * Returns the member's MySite profile.
2305
+ *
2306
+ * @param client - Fetch client instance
2307
+
2308
+ */
2309
+ async function mysite_profile_show(client) {
2310
+ return client.get(`/api/mysite/profile`);
2311
+ }
2312
+ /**
2313
+ * Update MySite profile
2314
+ * Updates the member's MySite profile fields.
2315
+ *
2316
+ * @param client - Fetch client instance
2317
+ * @param body - body
2318
+ */
2319
+ async function mysite_profile_update(client, body) {
2320
+ return client.put(`/api/mysite/profile`, body);
2321
+ }
2322
+ /**
2323
+ * List available MySite themes
2324
+ * Returns available MySite themes.
2325
+ *
2326
+ * @param client - Fetch client instance
2327
+ * @param [params] - params
2328
+ */
2329
+ async function mysite_themes_list(client, params) {
2330
+ return client.get(`/api/mysite/themes`, params);
2331
+ }
2332
+ /**
2333
+ * Update MySite settings
2334
+ * Updates the member's MySite settings.
2335
+ *
2336
+ * @param client - Fetch client instance
2337
+ * @param body - body
2338
+ */
2339
+ async function mysite_settings_update(client, body) {
2340
+ return client.put(`/api/mysite/settings`, body);
2341
+ }
2342
+ /**
2343
+ * List MySite links for the current user
2344
+ * Returns the member's MySite links, ordered by position.
2345
+ *
2346
+ * @param client - Fetch client instance
2347
+ * @param [params] - params
2348
+ */
2349
+ async function mysite_links_list(client, params) {
2350
+ return client.get(`/api/mysite/links`, params);
2351
+ }
2352
+ /**
2353
+ * Create a MySite link
2354
+ * Adds a new link to the member's MySite.
2355
+ *
2356
+ * @param client - Fetch client instance
2357
+ * @param body - body
2358
+ */
2359
+ async function mysite_links_create(client, body) {
2360
+ return client.post(`/api/mysite/links`, body);
2361
+ }
2362
+ /**
2363
+ * Update a MySite link
2364
+ * Updates an existing MySite link.
2365
+ *
2366
+ * @param client - Fetch client instance
2367
+ * @param id - id
2368
+ * @param body - body
2369
+ */
2370
+ async function mysite_links_update(client, id, body) {
2371
+ return client.put(`/api/mysite/links/${id}`, body);
2372
+ }
2373
+ /**
2374
+ * Delete a MySite link
2375
+ * Removes a link from the member's MySite.
2376
+ *
2377
+ * @param client - Fetch client instance
2378
+ * @param id - id
2379
+ */
2380
+ async function mysite_links_destroy(client, id) {
2381
+ return client.delete(`/api/mysite/links/${id}`);
2382
+ }
2383
+ /**
2384
+ * Reorder MySite links
2385
+ * Reorders MySite links by providing an ordered list of IDs.
2386
+ *
2387
+ * @param client - Fetch client instance
2388
+ * @param body - body
2389
+ */
2390
+ async function mysite_links_bulk_reorder(client, body) {
2391
+ return client.patch(`/api/mysite/links/bulk`, body);
2392
+ }
2393
+ /**
2394
+ * List MySite favorite products
2395
+ * Returns the member's MySite favorite products.
2396
+ *
2397
+ * @param client - Fetch client instance
2398
+ * @param [params] - params
2399
+ */
2400
+ async function mysite_favorites_list(client, params) {
2401
+ return client.get(`/api/mysite/favorites`, params);
2402
+ }
2403
+ /**
2404
+ * Add a product to MySite favorites
2405
+ * Adds a product to the member's MySite favorites.
2406
+ *
2407
+ * @param client - Fetch client instance
2408
+ * @param body - body
2409
+ */
2410
+ async function mysite_favorites_create(client, body) {
2411
+ return client.post(`/api/mysite/favorites`, body);
2412
+ }
2413
+ /**
2414
+ * Remove a product from MySite favorites
2415
+ * Removes a product from the member's MySite favorites.
2416
+ *
2417
+ * @param client - Fetch client instance
2418
+ * @param id - id
2419
+ */
2420
+ async function mysite_favorites_destroy(client, id) {
2421
+ return client.delete(`/api/mysite/favorites/${id}`);
2422
+ }
2423
+ /**
2424
+ * Reorder MySite favorites
2425
+ * Reorders MySite favorites by providing an ordered list of IDs.
2426
+ *
2427
+ * @param client - Fetch client instance
2428
+ * @param body - body
2429
+ */
2430
+ async function mysite_favorites_bulk_reorder(client, body) {
2431
+ return client.patch(`/api/mysite/favorites/bulk`, body);
2432
+ }
2433
+ //#endregion
2302
2434
  //#region src/adapters/mysite-api-adapter.ts
2303
2435
  function mapProfile(raw) {
2304
2436
  return {
@@ -2682,4 +2814,4 @@ function useFluidContext() {
2682
2814
  //#endregion
2683
2815
  export { deleteDatabase as $, DEFAULT_SPACING as A, resolveTheme as B, transformThemes as C, DEFAULT_FONT_FAMILIES as D, DEFAULT_COLORS as E, deriveDarkVariant as F, SHADE_STEPS as G, FONT_SIZE_KEYS as H, generateShades as I, useLanguagesApi as J, ApiError$1 as K, getForegroundColor as L, DEFAULT_THEME_NAME as M, getDefaultThemeDefinition as N, DEFAULT_FONT_SIZES as O, generateThemeCSS as P, createPersister as Q, mergeDarkOverrides as R, getActiveThemeId as S, serialiseTheme as T, RADIUS_KEYS as U, FONT_FAMILY_KEYS as V, SEMANTIC_COLOR_NAMES as W, useAppDefinitionApi as X, usePayApi as Y, useFluidOsApi as Z, toScreenDefinition as _, createScreen as a, removeTheme as b, FluidThemeProvider as c, createFluidClient as d, isApiError as f, normalizeComponentTree as g, toNavigationItem as h, widgetPropertySchemas as i, DEFAULT_THEME_ID as j, DEFAULT_RADII as k, useThemeContext as l, transformManifestToRepAppData as m, useFluidContext as n, createWidgetFromShareable as o, toRawManifest as p, createFetchClient as q, DEFAULT_SDK_WIDGET_REGISTRY as r, createWidgetRegistry as s, FluidProvider as t, ApiError as u, applyTheme as v, deserialiseTheme as w, buildThemeDefinition as x, removeAllThemes as y, parseColor as z };
2684
2816
 
2685
- //# sourceMappingURL=FluidProvider-DpET43hN.mjs.map
2817
+ //# sourceMappingURL=FluidProvider-Cqf2kmUc.mjs.map