@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
@@ -57299,41 +57299,44 @@ function ScheduledMessagesView({ onToast }) {
57299
57299
  }
57300
57300
  //#endregion
57301
57301
  //#region ../../messaging/ui/src/app/MessagingApp.tsx
57302
- function MessagingApp({ api, auth, websocketUrl, token, renderImage, renderProfileTrigger, onNavigate, initialRoute, renderLockedDownlineItem, renderNewChannelSidebar, showAdminFeatures, canUseMyDownline, downlineData, topBar, messagesViewProps, newMessageViewProps, onToast, getMessageLink, renderProfileContent, hideTopBar, children }) {
57303
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(MessagingAppProvider, {
57304
- api,
57305
- auth,
57306
- websocketUrl,
57307
- token,
57308
- renderImage,
57309
- renderProfileTrigger,
57310
- onNavigate,
57311
- initialRoute,
57312
- children: [
57313
- websocketUrl && token && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CableBootstrap, {
57314
- websocketUrl,
57315
- token,
57316
- recipientId: auth.recipientId,
57317
- companyId: auth.companyId
57318
- }),
57319
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagingLayout, {
57320
- topBar,
57321
- renderLockedDownlineItem,
57322
- renderNewChannelSidebar,
57323
- showAdminFeatures,
57324
- canUseMyDownline,
57325
- downlineData,
57326
- hideTopBar,
57327
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagingRouter, {
57328
- messagesViewProps,
57329
- newMessageViewProps,
57330
- onToast,
57331
- getMessageLink,
57332
- renderProfileContent
57333
- })
57334
- }),
57335
- children
57336
- ]
57302
+ function MessagingApp({ translationAdapter, api, auth, websocketUrl, token, renderImage, renderProfileTrigger, onNavigate, initialRoute, renderLockedDownlineItem, renderNewChannelSidebar, showAdminFeatures, canUseMyDownline, downlineData, topBar, messagesViewProps, newMessageViewProps, onToast, getMessageLink, renderProfileContent, hideTopBar, children }) {
57303
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagingTranslationProvider, {
57304
+ value: translationAdapter,
57305
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(MessagingAppProvider, {
57306
+ api,
57307
+ auth,
57308
+ websocketUrl,
57309
+ token,
57310
+ renderImage,
57311
+ renderProfileTrigger,
57312
+ onNavigate,
57313
+ initialRoute,
57314
+ children: [
57315
+ websocketUrl && token && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CableBootstrap, {
57316
+ websocketUrl,
57317
+ token,
57318
+ recipientId: auth.recipientId,
57319
+ companyId: auth.companyId
57320
+ }),
57321
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagingLayout, {
57322
+ topBar,
57323
+ renderLockedDownlineItem,
57324
+ renderNewChannelSidebar,
57325
+ showAdminFeatures,
57326
+ canUseMyDownline,
57327
+ downlineData,
57328
+ hideTopBar,
57329
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagingRouter, {
57330
+ messagesViewProps,
57331
+ newMessageViewProps,
57332
+ onToast,
57333
+ getMessageLink,
57334
+ renderProfileContent
57335
+ })
57336
+ }),
57337
+ children
57338
+ ]
57339
+ })
57337
57340
  });
57338
57341
  }
57339
57342
  function MessagingRouter({ messagesViewProps, newMessageViewProps, onToast, getMessageLink, renderProfileContent }) {
@@ -57701,13 +57704,10 @@ function createMessagingTranslationAdapter(locale, dict) {
57701
57704
  }
57702
57705
  //#endregion
57703
57706
  //#region src/providers/MessagingTranslationBridge.tsx
57704
- function MessagingTranslationBridge({ children }) {
57707
+ function useMessagingTranslationAdapter() {
57705
57708
  const { locale } = require_static_dict_adapter.useActiveLocale();
57706
57709
  const dict = require_static_dict_adapter.useDomainDict(messagingDomain, locale);
57707
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagingTranslationProvider, {
57708
- value: (0, react.useMemo)(() => createMessagingTranslationAdapter(locale, dict), [locale, dict]),
57709
- children
57710
- });
57710
+ return (0, react.useMemo)(() => createMessagingTranslationAdapter(locale, dict), [locale, dict]);
57711
57711
  }
57712
57712
  //#endregion
57713
57713
  //#region src/screens/MessagingScreen.tsx
@@ -57726,7 +57726,7 @@ function defaultToast(message, type) {
57726
57726
  type
57727
57727
  });
57728
57728
  }
57729
- function MessagingScreenContent({ onToast, filestackApiKey, websocketUrl: websocketUrlOverride, ...divProps }) {
57729
+ function MessagingScreenContent({ translationAdapter, onToast, filestackApiKey, websocketUrl: websocketUrlOverride, ...divProps }) {
57730
57730
  const { t } = useMessagingTranslation();
57731
57731
  const { config } = require_FluidProvider.useFluidContext();
57732
57732
  const { apiConfig, messagingApi, websocketUrl } = useMessagingConfig();
@@ -57813,6 +57813,7 @@ function MessagingScreenContent({ onToast, filestackApiKey, websocketUrl: websoc
57813
57813
  ...divProps,
57814
57814
  className: `h-full ${divProps.className ?? ""}`,
57815
57815
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagingApp, {
57816
+ translationAdapter,
57816
57817
  api: messagingApi,
57817
57818
  auth: messagingAuth,
57818
57819
  websocketUrl: effectiveWsUrl,
@@ -57835,12 +57836,17 @@ function MessagingScreenContent({ onToast, filestackApiKey, websocketUrl: websoc
57835
57836
  });
57836
57837
  }
57837
57838
  function MessagingScreen({ onToast, filestackApiKey, websocketUrl, background, textColor, accentColor, padding, borderRadius, ...divProps }) {
57838
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagingTranslationBridge, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagingScreenContent, {
57839
- onToast,
57840
- filestackApiKey,
57841
- websocketUrl,
57842
- ...divProps
57843
- }) });
57839
+ const translationAdapter = useMessagingTranslationAdapter();
57840
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagingTranslationProvider, {
57841
+ value: translationAdapter,
57842
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MessagingScreenContent, {
57843
+ translationAdapter,
57844
+ onToast,
57845
+ filestackApiKey,
57846
+ websocketUrl,
57847
+ ...divProps
57848
+ })
57849
+ });
57844
57850
  }
57845
57851
  const messagingScreenPropertySchema = {
57846
57852
  widgetType: "MessagingScreen",
@@ -57883,4 +57889,4 @@ Object.defineProperty(exports, "useMessagingConfig", {
57883
57889
  }
57884
57890
  });
57885
57891
 
57886
- //# sourceMappingURL=MessagingScreen-BD8ERG5Y.cjs.map
57892
+ //# sourceMappingURL=MessagingScreen-2M2ETWXp.cjs.map