@fluid-app/portal-sdk 0.1.299 → 0.1.301

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 (33) hide show
  1. package/dist/{MessagingScreen-BD8ERG5Y.cjs → MessagingScreen-2M2ETWXp.cjs} +54 -48
  2. package/dist/{MessagingScreen-BD8ERG5Y.cjs.map → MessagingScreen-2M2ETWXp.cjs.map} +1 -1
  3. package/dist/{MessagingScreen-BcV-HK8F.mjs → MessagingScreen-B4vUvkRg.mjs} +1 -1
  4. package/dist/{MessagingScreen-DoeAiV25.cjs → MessagingScreen-BI4AufwC.cjs} +1 -1
  5. package/dist/{MessagingScreen-ZvDwEc5y.mjs → MessagingScreen-CwzSY_G8.mjs} +54 -48
  6. package/dist/{MessagingScreen-ZvDwEc5y.mjs.map → MessagingScreen-CwzSY_G8.mjs.map} +1 -1
  7. package/dist/{OrdersScreen-sLr0z213.cjs → OrdersScreen-B-Nfx1pU.cjs} +1 -1
  8. package/dist/{OrdersScreen-DoopejMR.mjs → OrdersScreen-BR1WDP_v.mjs} +1 -1
  9. package/dist/{OrdersScreen-CS1xA9q5.cjs → OrdersScreen-CtAlBgys.cjs} +39 -39
  10. package/dist/OrdersScreen-CtAlBgys.cjs.map +1 -0
  11. package/dist/{OrdersScreen-CFfrQG4i.mjs → OrdersScreen-E0HjjKxj.mjs} +39 -39
  12. package/dist/OrdersScreen-E0HjjKxj.mjs.map +1 -0
  13. package/dist/{ProfileScreen-CwP66ls2.cjs → ProfileScreen-CL8xD-q8.cjs} +1 -1
  14. package/dist/{ProfileScreen-wj0KTaQF.mjs → ProfileScreen-COZw57uK.mjs} +1 -1
  15. package/dist/{ProfileScreen-BCR3FU5g.cjs → ProfileScreen-CPzuS8kI.cjs} +69 -69
  16. package/dist/ProfileScreen-CPzuS8kI.cjs.map +1 -0
  17. package/dist/{ProfileScreen-CefqZr-Q.mjs → ProfileScreen-fIQkeFTu.mjs} +69 -69
  18. package/dist/ProfileScreen-fIQkeFTu.mjs.map +1 -0
  19. package/dist/{SubscriptionsScreen-DKihggHx.cjs → SubscriptionsScreen-6Xp62ubF.cjs} +1 -1
  20. package/dist/{SubscriptionsScreen-Cjd2aGeW.mjs → SubscriptionsScreen-D8XUHV0b.mjs} +47 -47
  21. package/dist/{SubscriptionsScreen-Cjd2aGeW.mjs.map → SubscriptionsScreen-D8XUHV0b.mjs.map} +1 -1
  22. package/dist/{SubscriptionsScreen-DLLDU_aU.cjs → SubscriptionsScreen-YL-1_nFd.cjs} +47 -47
  23. package/dist/{SubscriptionsScreen-DLLDU_aU.cjs.map → SubscriptionsScreen-YL-1_nFd.cjs.map} +1 -1
  24. package/dist/index.cjs +12 -12
  25. package/dist/index.d.cts.map +1 -1
  26. package/dist/index.d.mts.map +1 -1
  27. package/dist/index.mjs +12 -12
  28. package/package.json +15 -15
  29. package/styles/globals.css +0 -222
  30. package/dist/OrdersScreen-CFfrQG4i.mjs.map +0 -1
  31. package/dist/OrdersScreen-CS1xA9q5.cjs.map +0 -1
  32. package/dist/ProfileScreen-BCR3FU5g.cjs.map +0 -1
  33. package/dist/ProfileScreen-CefqZr-Q.mjs.map +0 -1
@@ -23,7 +23,7 @@ import "./MediaRenderer-Db1KsIza.mjs";
23
23
  import "./CarouselWidget-BOWNV3rj.mjs";
24
24
  import "./CatchUpWidget-BtEH9EHQ.mjs";
25
25
  import "./src-Dk1FJOX0.mjs";
26
- import { n as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-ZvDwEc5y.mjs";
26
+ import { n as messagingScreenPropertySchema, t as MessagingScreen } from "./MessagingScreen-CwzSY_G8.mjs";
27
27
  import "./ChartWidget-rCUOwT7v.mjs";
28
28
  import "./ContainerWidget-DBRBSg15.mjs";
29
29
  import "./ImageWidget-DGABEW2_.mjs";
@@ -42,7 +42,7 @@ require("./ToDoWidget-D6sXCE2R.cjs");
42
42
  require("./VideoWidget-BQvtiY5_.cjs");
43
43
  require("./ScreenHeaderContext-CsfhnuJk.cjs");
44
44
  require("./translation-api-context-factory-CFtMAp8h.cjs");
45
- const require_MessagingScreen = require("./MessagingScreen-BD8ERG5Y.cjs");
45
+ const require_MessagingScreen = require("./MessagingScreen-2M2ETWXp.cjs");
46
46
  require("./dist-DbRTQ2QF.cjs");
47
47
  require("./es-UfEBhcZD.cjs");
48
48
  exports.MessagingScreen = require_MessagingScreen.MessagingScreen;
@@ -54555,41 +54555,44 @@ function ScheduledMessagesView({ onToast }) {
54555
54555
  }
54556
54556
  //#endregion
54557
54557
  //#region ../../messaging/ui/src/app/MessagingApp.tsx
54558
- function MessagingApp({ api, auth, websocketUrl, token, renderImage, renderProfileTrigger, onNavigate, initialRoute, renderLockedDownlineItem, renderNewChannelSidebar, showAdminFeatures, canUseMyDownline, downlineData, topBar, messagesViewProps, newMessageViewProps, onToast, getMessageLink, renderProfileContent, hideTopBar, children }) {
54559
- return /* @__PURE__ */ jsxs(MessagingAppProvider, {
54560
- api,
54561
- auth,
54562
- websocketUrl,
54563
- token,
54564
- renderImage,
54565
- renderProfileTrigger,
54566
- onNavigate,
54567
- initialRoute,
54568
- children: [
54569
- websocketUrl && token && /* @__PURE__ */ jsx(CableBootstrap, {
54570
- websocketUrl,
54571
- token,
54572
- recipientId: auth.recipientId,
54573
- companyId: auth.companyId
54574
- }),
54575
- /* @__PURE__ */ jsx(MessagingLayout, {
54576
- topBar,
54577
- renderLockedDownlineItem,
54578
- renderNewChannelSidebar,
54579
- showAdminFeatures,
54580
- canUseMyDownline,
54581
- downlineData,
54582
- hideTopBar,
54583
- children: /* @__PURE__ */ jsx(MessagingRouter, {
54584
- messagesViewProps,
54585
- newMessageViewProps,
54586
- onToast,
54587
- getMessageLink,
54588
- renderProfileContent
54589
- })
54590
- }),
54591
- children
54592
- ]
54558
+ function MessagingApp({ translationAdapter, api, auth, websocketUrl, token, renderImage, renderProfileTrigger, onNavigate, initialRoute, renderLockedDownlineItem, renderNewChannelSidebar, showAdminFeatures, canUseMyDownline, downlineData, topBar, messagesViewProps, newMessageViewProps, onToast, getMessageLink, renderProfileContent, hideTopBar, children }) {
54559
+ return /* @__PURE__ */ jsx(MessagingTranslationProvider, {
54560
+ value: translationAdapter,
54561
+ children: /* @__PURE__ */ jsxs(MessagingAppProvider, {
54562
+ api,
54563
+ auth,
54564
+ websocketUrl,
54565
+ token,
54566
+ renderImage,
54567
+ renderProfileTrigger,
54568
+ onNavigate,
54569
+ initialRoute,
54570
+ children: [
54571
+ websocketUrl && token && /* @__PURE__ */ jsx(CableBootstrap, {
54572
+ websocketUrl,
54573
+ token,
54574
+ recipientId: auth.recipientId,
54575
+ companyId: auth.companyId
54576
+ }),
54577
+ /* @__PURE__ */ jsx(MessagingLayout, {
54578
+ topBar,
54579
+ renderLockedDownlineItem,
54580
+ renderNewChannelSidebar,
54581
+ showAdminFeatures,
54582
+ canUseMyDownline,
54583
+ downlineData,
54584
+ hideTopBar,
54585
+ children: /* @__PURE__ */ jsx(MessagingRouter, {
54586
+ messagesViewProps,
54587
+ newMessageViewProps,
54588
+ onToast,
54589
+ getMessageLink,
54590
+ renderProfileContent
54591
+ })
54592
+ }),
54593
+ children
54594
+ ]
54595
+ })
54593
54596
  });
54594
54597
  }
54595
54598
  function MessagingRouter({ messagesViewProps, newMessageViewProps, onToast, getMessageLink, renderProfileContent }) {
@@ -54957,13 +54960,10 @@ function createMessagingTranslationAdapter(locale, dict) {
54957
54960
  }
54958
54961
  //#endregion
54959
54962
  //#region src/providers/MessagingTranslationBridge.tsx
54960
- function MessagingTranslationBridge({ children }) {
54963
+ function useMessagingTranslationAdapter() {
54961
54964
  const { locale } = useActiveLocale();
54962
54965
  const dict = useDomainDict(messagingDomain, locale);
54963
- return /* @__PURE__ */ jsx(MessagingTranslationProvider, {
54964
- value: useMemo(() => createMessagingTranslationAdapter(locale, dict), [locale, dict]),
54965
- children
54966
- });
54966
+ return useMemo(() => createMessagingTranslationAdapter(locale, dict), [locale, dict]);
54967
54967
  }
54968
54968
  //#endregion
54969
54969
  //#region src/screens/MessagingScreen.tsx
@@ -54982,7 +54982,7 @@ function defaultToast(message, type) {
54982
54982
  type
54983
54983
  });
54984
54984
  }
54985
- function MessagingScreenContent({ onToast, filestackApiKey, websocketUrl: websocketUrlOverride, ...divProps }) {
54985
+ function MessagingScreenContent({ translationAdapter, onToast, filestackApiKey, websocketUrl: websocketUrlOverride, ...divProps }) {
54986
54986
  const { t } = useMessagingTranslation();
54987
54987
  const { config } = useFluidContext();
54988
54988
  const { apiConfig, messagingApi, websocketUrl } = useMessagingConfig();
@@ -55069,6 +55069,7 @@ function MessagingScreenContent({ onToast, filestackApiKey, websocketUrl: websoc
55069
55069
  ...divProps,
55070
55070
  className: `h-full ${divProps.className ?? ""}`,
55071
55071
  children: /* @__PURE__ */ jsx(MessagingApp, {
55072
+ translationAdapter,
55072
55073
  api: messagingApi,
55073
55074
  auth: messagingAuth,
55074
55075
  websocketUrl: effectiveWsUrl,
@@ -55091,12 +55092,17 @@ function MessagingScreenContent({ onToast, filestackApiKey, websocketUrl: websoc
55091
55092
  });
55092
55093
  }
55093
55094
  function MessagingScreen({ onToast, filestackApiKey, websocketUrl, background, textColor, accentColor, padding, borderRadius, ...divProps }) {
55094
- return /* @__PURE__ */ jsx(MessagingTranslationBridge, { children: /* @__PURE__ */ jsx(MessagingScreenContent, {
55095
- onToast,
55096
- filestackApiKey,
55097
- websocketUrl,
55098
- ...divProps
55099
- }) });
55095
+ const translationAdapter = useMessagingTranslationAdapter();
55096
+ return /* @__PURE__ */ jsx(MessagingTranslationProvider, {
55097
+ value: translationAdapter,
55098
+ children: /* @__PURE__ */ jsx(MessagingScreenContent, {
55099
+ translationAdapter,
55100
+ onToast,
55101
+ filestackApiKey,
55102
+ websocketUrl,
55103
+ ...divProps
55104
+ })
55105
+ });
55100
55106
  }
55101
55107
  const messagingScreenPropertySchema = {
55102
55108
  widgetType: "MessagingScreen",
@@ -55110,4 +55116,4 @@ const messagingScreenPropertySchema = {
55110
55116
  //#endregion
55111
55117
  export { useMessagingAuth as a, useMessagingConfig as i, messagingScreenPropertySchema as n, createFluidFileUploader as r, MessagingScreen as t };
55112
55118
 
55113
- //# sourceMappingURL=MessagingScreen-ZvDwEc5y.mjs.map
55119
+ //# sourceMappingURL=MessagingScreen-CwzSY_G8.mjs.map