@fluid-app/portal-sdk 0.1.454 → 0.1.456

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 (72) hide show
  1. package/dist/{AlertWidget-CdWJXZn1.mjs → AlertWidget-BtkVIGr9.mjs} +2 -2
  2. package/dist/{AlertWidget-CdWJXZn1.mjs.map → AlertWidget-BtkVIGr9.mjs.map} +1 -1
  3. package/dist/{AlertWidget-BJekf1r1.cjs → AlertWidget-C5sAMhqU.cjs} +2 -2
  4. package/dist/{AlertWidget-BJekf1r1.cjs.map → AlertWidget-C5sAMhqU.cjs.map} +1 -1
  5. package/dist/{ContactsScreen-DsHXXYfF.cjs → ContactsScreen-BTCUeDHl.cjs} +1 -1
  6. package/dist/{ContactsScreen-TO0LAuHz.cjs → ContactsScreen-Cu6-ckm9.cjs} +23 -13
  7. package/dist/ContactsScreen-Cu6-ckm9.cjs.map +1 -0
  8. package/dist/{ContactsScreen-DhMQm4w2.mjs → ContactsScreen-D0l3-Xof.mjs} +23 -13
  9. package/dist/ContactsScreen-D0l3-Xof.mjs.map +1 -0
  10. package/dist/{FluidProvider-CA_HAl9a.mjs → FluidProvider-CbA8KrhD.mjs} +2 -2
  11. package/dist/{FluidProvider-CA_HAl9a.mjs.map → FluidProvider-CbA8KrhD.mjs.map} +1 -1
  12. package/dist/{FluidProvider-BULkBuyn.cjs → FluidProvider-JiGJqJQe.cjs} +2 -2
  13. package/dist/{FluidProvider-BULkBuyn.cjs.map → FluidProvider-JiGJqJQe.cjs.map} +1 -1
  14. package/dist/{MessagingScreen-DWH9xBbq.cjs → MessagingScreen-BeUhzBWr.cjs} +2 -2
  15. package/dist/{MessagingScreen-DWH9xBbq.cjs.map → MessagingScreen-BeUhzBWr.cjs.map} +1 -1
  16. package/dist/{MessagingScreen-CYOGaqKX.mjs → MessagingScreen-BtdVeSR5.mjs} +2 -2
  17. package/dist/{MessagingScreen-CYOGaqKX.mjs.map → MessagingScreen-BtdVeSR5.mjs.map} +1 -1
  18. package/dist/{MessagingScreen-B_nyIg2b.cjs → MessagingScreen-D6Bxoq0a.cjs} +5 -5
  19. package/dist/{MessagingScreen-C7I7XHfu.mjs → MessagingScreen-Dt6Rwk7_.mjs} +5 -8
  20. package/dist/{OrdersScreen-Dl38EYap.mjs → OrdersScreen-1kPmXJga.mjs} +5 -8
  21. package/dist/{OrdersScreen-Dh_nsi8j.cjs → OrdersScreen-BSwESoF3.cjs} +2 -2
  22. package/dist/{OrdersScreen-Dh_nsi8j.cjs.map → OrdersScreen-BSwESoF3.cjs.map} +1 -1
  23. package/dist/{OrdersScreen-CfchcnYB.cjs → OrdersScreen-BirJq38x.cjs} +5 -5
  24. package/dist/{OrdersScreen-CBF6uZSk.mjs → OrdersScreen-fZFg1l1W.mjs} +2 -2
  25. package/dist/{OrdersScreen-CBF6uZSk.mjs.map → OrdersScreen-fZFg1l1W.mjs.map} +1 -1
  26. package/dist/{ProfileScreen-LtvHt0SJ.mjs → ProfileScreen-Bqv7MNPH.mjs} +6 -9
  27. package/dist/{ProfileScreen-CXqMOEza.cjs → ProfileScreen-BvxuA9P4.cjs} +3 -3
  28. package/dist/{ProfileScreen-CXqMOEza.cjs.map → ProfileScreen-BvxuA9P4.cjs.map} +1 -1
  29. package/dist/{ProfileScreen-t2V-W4Dv.cjs → ProfileScreen-CirvTBwX.cjs} +6 -6
  30. package/dist/{ProfileScreen-DlPK9S_Q.mjs → ProfileScreen-Dj1pTzLz.mjs} +3 -3
  31. package/dist/{ProfileScreen-DlPK9S_Q.mjs.map → ProfileScreen-Dj1pTzLz.mjs.map} +1 -1
  32. package/dist/{ShareablesScreen-CRTLiIps.mjs → ShareablesScreen-u6O-4LI4.mjs} +0 -3
  33. package/dist/{ShopScreen-BWDYXw4Q.cjs → ShopScreen-3ryiBWeh.cjs} +5 -5
  34. package/dist/{ShopScreen-BnuiYHKY.mjs → ShopScreen-BKWFrPHB.mjs} +2 -2
  35. package/dist/{ShopScreen-BnuiYHKY.mjs.map → ShopScreen-BKWFrPHB.mjs.map} +1 -1
  36. package/dist/{ShopScreen-CrObPeSv.cjs → ShopScreen-C3vwiETG.cjs} +2 -2
  37. package/dist/{ShopScreen-CrObPeSv.cjs.map → ShopScreen-C3vwiETG.cjs.map} +1 -1
  38. package/dist/{ShopScreen-B335EpgE.mjs → ShopScreen-CfvCqYJ9.mjs} +5 -8
  39. package/dist/{SubscriptionsScreen-BlB3Ppoa.cjs → SubscriptionsScreen-COBaRHDG.cjs} +6 -6
  40. package/dist/{SubscriptionsScreen-Bjdz5fx-.cjs → SubscriptionsScreen-DWB0E5Hu.cjs} +3 -3
  41. package/dist/{SubscriptionsScreen-Bjdz5fx-.cjs.map → SubscriptionsScreen-DWB0E5Hu.cjs.map} +1 -1
  42. package/dist/{SubscriptionsScreen-DyjmAOvJ.mjs → SubscriptionsScreen-Dv7PjXwb.mjs} +3 -3
  43. package/dist/{SubscriptionsScreen-DyjmAOvJ.mjs.map → SubscriptionsScreen-Dv7PjXwb.mjs.map} +1 -1
  44. package/dist/{SubscriptionsScreen-DXewLpHS.mjs → SubscriptionsScreen-G64lYG5v.mjs} +6 -9
  45. package/dist/{TextWidget-CY71e66E.cjs → TextWidget-CNks2l1S.cjs} +4 -3
  46. package/dist/TextWidget-CNks2l1S.cjs.map +1 -0
  47. package/dist/{TextWidget-B-2RFD_g.mjs → TextWidget-cnDl92rJ.mjs} +4 -3
  48. package/dist/TextWidget-cnDl92rJ.mjs.map +1 -0
  49. package/dist/{build-widget-registry-L8a9-O3A.cjs → build-widget-registry-7slNHtKU.cjs} +5 -5
  50. package/dist/{build-widget-registry-L8a9-O3A.cjs.map → build-widget-registry-7slNHtKU.cjs.map} +1 -1
  51. package/dist/{build-widget-registry-Dy8S7Ggy.mjs → build-widget-registry-BZjLacQ8.mjs} +5 -5
  52. package/dist/{build-widget-registry-Dy8S7Ggy.mjs.map → build-widget-registry-BZjLacQ8.mjs.map} +1 -1
  53. package/dist/index.cjs +36 -29
  54. package/dist/index.cjs.map +1 -1
  55. package/dist/index.d.cts +7 -0
  56. package/dist/index.d.cts.map +1 -1
  57. package/dist/index.d.mts +7 -0
  58. package/dist/index.d.mts.map +1 -1
  59. package/dist/index.mjs +38 -31
  60. package/dist/index.mjs.map +1 -1
  61. package/dist/{use-portal-card-add-3ds-flow-Dt29-X8z.cjs → use-portal-card-add-3ds-flow-C_Frj80d.cjs} +2 -2
  62. package/dist/{use-portal-card-add-3ds-flow-Dt29-X8z.cjs.map → use-portal-card-add-3ds-flow-C_Frj80d.cjs.map} +1 -1
  63. package/dist/{use-portal-card-add-3ds-flow-B4wqRVNt.mjs → use-portal-card-add-3ds-flow-tvSUKAvl.mjs} +2 -2
  64. package/dist/{use-portal-card-add-3ds-flow-B4wqRVNt.mjs.map → use-portal-card-add-3ds-flow-tvSUKAvl.mjs.map} +1 -1
  65. package/dist/utils/build-remote-widget-plugin-manifests.cjs +3 -3
  66. package/dist/utils/build-remote-widget-plugin-manifests.mjs +3 -5
  67. package/dist/utils/build-remote-widget-plugin-manifests.mjs.map +1 -1
  68. package/package.json +11 -11
  69. package/dist/ContactsScreen-DhMQm4w2.mjs.map +0 -1
  70. package/dist/ContactsScreen-TO0LAuHz.cjs.map +0 -1
  71. package/dist/TextWidget-B-2RFD_g.mjs.map +0 -1
  72. package/dist/TextWidget-CY71e66E.cjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_chunk = require("./chunk-9hOWP6kD.cjs");
3
- const require_build_widget_registry = require("./build-widget-registry-L8a9-O3A.cjs");
3
+ const require_build_widget_registry = require("./build-widget-registry-7slNHtKU.cjs");
4
4
  const require_ScreenRenderer = require("./ScreenRenderer-EGk5-w0h.cjs");
5
5
  const require_use_account = require("./use-account-CPOGOGl6.cjs");
6
6
  require("./use-optional-store-CIM4spDu.cjs");
7
- const require_FluidProvider = require("./FluidProvider-BULkBuyn.cjs");
7
+ const require_FluidProvider = require("./FluidProvider-JiGJqJQe.cjs");
8
8
  require("./mysite-api-context-SWweFE49.cjs");
9
9
  require("./ContactsTranslationBridge-BvkMkPED.cjs");
10
- const require_ContactsScreen = require("./ContactsScreen-TO0LAuHz.cjs");
10
+ const require_ContactsScreen = require("./ContactsScreen-Cu6-ckm9.cjs");
11
11
  require("./translation-adapter-Bi65zBvS.cjs");
12
12
  const require_PortalTenantClientProvider = require("./PortalTenantClientProvider-Ct2vdZPi.cjs");
13
13
  require("./registry-context-Dw3vg1Fz.cjs");
@@ -27,8 +27,8 @@ require("./task-composer-form-oKkUtTAg.cjs");
27
27
  const require_LayoutWidget = require("./LayoutWidget-CS8fOr1e.cjs");
28
28
  const require_registries = require("./registries-zFvhorZ2.cjs");
29
29
  require("./fields-Dj1992kh.cjs");
30
- const require_TextWidget = require("./TextWidget-CY71e66E.cjs");
31
- const require_AlertWidget = require("./AlertWidget-BJekf1r1.cjs");
30
+ const require_TextWidget = require("./TextWidget-CNks2l1S.cjs");
31
+ const require_AlertWidget = require("./AlertWidget-C5sAMhqU.cjs");
32
32
  const require_BulletListWidget = require("./BulletListWidget-Dz_32RH1.cjs");
33
33
  require("./preview-context-C10PndIF.cjs");
34
34
  const require_CalendarWidget = require("./CalendarWidget-Cq2SrfVW.cjs");
@@ -60,24 +60,24 @@ const require_query_keys = require("./query-keys-COZw1P0l.cjs");
60
60
  const require_AppNavigationContext = require("./AppNavigationContext-BTP4s7dH.cjs");
61
61
  const require_use_store = require("./use-store-D89j_R7T.cjs");
62
62
  require("./dist-CeXOqY2W.cjs");
63
- const require_MessagingScreen = require("./MessagingScreen-DWH9xBbq.cjs");
63
+ const require_MessagingScreen = require("./MessagingScreen-BeUhzBWr.cjs");
64
64
  const require_use_navigation_parent = require("./use-navigation-parent-MoWE_Lpu.cjs");
65
65
  const require_ScreenHeaderContext = require("./ScreenHeaderContext-DFxs04W2.cjs");
66
66
  const require_CustomersScreen = require("./CustomersScreen-GUfgSu6a.cjs");
67
67
  const require_member_permissions = require("./member-permissions-DFM8-pTH.cjs");
68
68
  const require_portal_function = require("./portal-function-CiRhBwaf.cjs");
69
- require("./use-portal-card-add-3ds-flow-Dt29-X8z.cjs");
69
+ require("./use-portal-card-add-3ds-flow-C_Frj80d.cjs");
70
70
  require("./display-Ca4zjZd5.cjs");
71
71
  require("./use-mysite-portal-wFNLeXSG.cjs");
72
- const require_ProfileScreen = require("./ProfileScreen-CXqMOEza.cjs");
73
- const require_SubscriptionsScreen = require("./SubscriptionsScreen-Bjdz5fx-.cjs");
72
+ const require_ProfileScreen = require("./ProfileScreen-BvxuA9P4.cjs");
73
+ const require_SubscriptionsScreen = require("./SubscriptionsScreen-DWB0E5Hu.cjs");
74
74
  require("./dist-Cpt-uZEu.cjs");
75
75
  require("./es-DgpoYsI0.cjs");
76
76
  require("./dist-BGBmj4YO.cjs");
77
- const require_OrdersScreen = require("./OrdersScreen-Dh_nsi8j.cjs");
77
+ const require_OrdersScreen = require("./OrdersScreen-BSwESoF3.cjs");
78
78
  const require_MySiteScreen = require("./MySiteScreen-DRFLkyJ0.cjs");
79
79
  require("./dist-DbRyOeMz.cjs");
80
- const require_ShopScreen = require("./ShopScreen-CrObPeSv.cjs");
80
+ const require_ShopScreen = require("./ShopScreen-C3vwiETG.cjs");
81
81
  require("./AppDownloadScreen-BUhwZtAN.cjs");
82
82
  const require_utils_build_remote_widget_plugin_manifests = require("./utils/build-remote-widget-plugin-manifests.cjs");
83
83
  let react = require("react");
@@ -766,16 +766,23 @@ function getLastVisitedTab(appDefinitionId, topLevelSlug) {
766
766
  //#endregion
767
767
  //#region ../core/src/navigation/navigation-utils.ts
768
768
  /**
769
+ * True when `normalizedRoute` is the section's slug or a descendant of it, so a
770
+ * tab stays selected while drilling into its sub-routes (e.g. `shop` stays
771
+ * active on a product detail at `shop/123`). The trailing "/" keeps the match
772
+ * on a path boundary so `shop` does not match an unrelated `shopping` route.
773
+ */
774
+ function routeMatchesSection(normalizedRoute, slug) {
775
+ const normalizedSlug = require_use_navigation_parent.normalizeSlug(slug);
776
+ if (!normalizedSlug) return false;
777
+ return normalizedRoute === normalizedSlug || normalizedRoute.startsWith(`${normalizedSlug}/`);
778
+ }
779
+ /**
769
780
  * Helper function to determine if the current route is within a top-level section
770
781
  */
771
782
  function isInSection(topLevelItem, currentRoute) {
772
783
  const normalizedCurrentRoute = require_use_navigation_parent.normalizeSlug(currentRoute);
773
- if ((!topLevelItem.children || topLevelItem.children.length <= 0) && topLevelItem.slug) {
774
- if (require_use_navigation_parent.normalizeSlug(topLevelItem.slug) === normalizedCurrentRoute) return true;
775
- } else return topLevelItem.children.some((child) => {
776
- return require_use_navigation_parent.normalizeSlug(child.slug) === normalizedCurrentRoute;
777
- });
778
- return false;
784
+ if (topLevelItem.children && topLevelItem.children.length > 0) return topLevelItem.children.some((child) => routeMatchesSection(normalizedCurrentRoute, child.slug));
785
+ return routeMatchesSection(normalizedCurrentRoute, topLevelItem.slug);
779
786
  }
780
787
  /**
781
788
  * Get the target slug when clicking a top-level navigation item
@@ -1517,12 +1524,12 @@ function resolveMemberTypePage(registry, memberTypeSlug, currentSlug, baseSlug)
1517
1524
  }
1518
1525
  //#endregion
1519
1526
  //#region src/shell/system-screen-map.ts
1520
- const ProfileScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProfileScreen-t2V-W4Dv.cjs")).then((m) => ({ default: m.ProfileScreen })));
1521
- const OrdersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./OrdersScreen-CfchcnYB.cjs")).then((m) => ({ default: m.OrdersScreen })));
1522
- const SubscriptionsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./SubscriptionsScreen-BlB3Ppoa.cjs")).then((m) => ({ default: m.SubscriptionsScreen })));
1523
- const MessagingScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MessagingScreen-B_nyIg2b.cjs")).then((m) => ({ default: m.MessagingScreen })));
1524
- const ContactsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ContactsScreen-DsHXXYfF.cjs")).then((m) => ({ default: m.ContactsScreen })));
1525
- const ShopScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShopScreen-BWDYXw4Q.cjs")).then((m) => ({ default: m.ShopScreen })));
1527
+ const ProfileScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ProfileScreen-CirvTBwX.cjs")).then((m) => ({ default: m.ProfileScreen })));
1528
+ const OrdersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./OrdersScreen-BirJq38x.cjs")).then((m) => ({ default: m.OrdersScreen })));
1529
+ const SubscriptionsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./SubscriptionsScreen-COBaRHDG.cjs")).then((m) => ({ default: m.SubscriptionsScreen })));
1530
+ const MessagingScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MessagingScreen-D6Bxoq0a.cjs")).then((m) => ({ default: m.MessagingScreen })));
1531
+ const ContactsScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ContactsScreen-BTCUeDHl.cjs")).then((m) => ({ default: m.ContactsScreen })));
1532
+ const ShopScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShopScreen-3ryiBWeh.cjs")).then((m) => ({ default: m.ShopScreen })));
1526
1533
  const CustomersScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./CustomersScreen-sUkFLvP2.cjs")).then((m) => ({ default: m.CustomersScreen })));
1527
1534
  const ShareablesScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./ShareablesScreen-DAKdATIv.cjs")).then((m) => ({ default: m.ShareablesScreen })));
1528
1535
  const MySiteScreen$1 = (0, react.lazy)(() => Promise.resolve().then(() => require("./MySiteScreen-DMTwqS2r.cjs")).then((m) => ({ default: m.MySiteScreen })));
@@ -3430,15 +3437,15 @@ const CORE_PAGE_IDS = {
3430
3437
  //#endregion
3431
3438
  //#region src/screens/index.ts
3432
3439
  const screenPropertySchemas = {
3433
- ProfileScreen: () => Promise.resolve().then(() => require("./ProfileScreen-t2V-W4Dv.cjs")).then((m) => m.profileScreenPropertySchema),
3434
- MessagingScreen: () => Promise.resolve().then(() => require("./MessagingScreen-B_nyIg2b.cjs")).then((m) => m.messagingScreenPropertySchema),
3435
- ContactsScreen: () => Promise.resolve().then(() => require("./ContactsScreen-DsHXXYfF.cjs")).then((m) => m.contactsScreenPropertySchema),
3436
- OrdersScreen: () => Promise.resolve().then(() => require("./OrdersScreen-CfchcnYB.cjs")).then((m) => m.ordersScreenPropertySchema),
3437
- SubscriptionsScreen: () => Promise.resolve().then(() => require("./SubscriptionsScreen-BlB3Ppoa.cjs")).then((m) => m.subscriptionsScreenPropertySchema),
3440
+ ProfileScreen: () => Promise.resolve().then(() => require("./ProfileScreen-CirvTBwX.cjs")).then((m) => m.profileScreenPropertySchema),
3441
+ MessagingScreen: () => Promise.resolve().then(() => require("./MessagingScreen-D6Bxoq0a.cjs")).then((m) => m.messagingScreenPropertySchema),
3442
+ ContactsScreen: () => Promise.resolve().then(() => require("./ContactsScreen-BTCUeDHl.cjs")).then((m) => m.contactsScreenPropertySchema),
3443
+ OrdersScreen: () => Promise.resolve().then(() => require("./OrdersScreen-BirJq38x.cjs")).then((m) => m.ordersScreenPropertySchema),
3444
+ SubscriptionsScreen: () => Promise.resolve().then(() => require("./SubscriptionsScreen-COBaRHDG.cjs")).then((m) => m.subscriptionsScreenPropertySchema),
3438
3445
  CustomersScreen: () => Promise.resolve().then(() => require("./CustomersScreen-sUkFLvP2.cjs")).then((m) => m.customersScreenPropertySchema),
3439
3446
  MySiteScreen: () => Promise.resolve().then(() => require("./MySiteScreen-DMTwqS2r.cjs")).then((m) => m.mySiteScreenPropertySchema),
3440
3447
  ShareablesScreen: () => Promise.resolve().then(() => require("./ShareablesScreen-DAKdATIv.cjs")).then((m) => m.shareablesScreenPropertySchema),
3441
- ShopScreen: () => Promise.resolve().then(() => require("./ShopScreen-BWDYXw4Q.cjs")).then((m) => m.shopScreenPropertySchema),
3448
+ ShopScreen: () => Promise.resolve().then(() => require("./ShopScreen-3ryiBWeh.cjs")).then((m) => m.shopScreenPropertySchema),
3442
3449
  AppDownloadScreen: () => Promise.resolve().then(() => require("./AppDownloadScreen-BUhwZtAN.cjs")).then((n) => n.AppDownloadScreen_exports).then((m) => m.appDownloadScreenPropertySchema)
3443
3450
  };
3444
3451
  /**