@fluid-app/portal-sdk 0.1.299 → 0.1.300
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.
- package/dist/{MessagingScreen-BD8ERG5Y.cjs → MessagingScreen-2M2ETWXp.cjs} +54 -48
- package/dist/{MessagingScreen-BD8ERG5Y.cjs.map → MessagingScreen-2M2ETWXp.cjs.map} +1 -1
- package/dist/{MessagingScreen-BcV-HK8F.mjs → MessagingScreen-B4vUvkRg.mjs} +1 -1
- package/dist/{MessagingScreen-DoeAiV25.cjs → MessagingScreen-BI4AufwC.cjs} +1 -1
- package/dist/{MessagingScreen-ZvDwEc5y.mjs → MessagingScreen-CwzSY_G8.mjs} +54 -48
- package/dist/{MessagingScreen-ZvDwEc5y.mjs.map → MessagingScreen-CwzSY_G8.mjs.map} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -3
- package/package.json +19 -19
|
@@ -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.
|
|
57304
|
-
|
|
57305
|
-
|
|
57306
|
-
|
|
57307
|
-
|
|
57308
|
-
|
|
57309
|
-
|
|
57310
|
-
|
|
57311
|
-
|
|
57312
|
-
|
|
57313
|
-
|
|
57314
|
-
|
|
57315
|
-
token,
|
|
57316
|
-
|
|
57317
|
-
|
|
57318
|
-
|
|
57319
|
-
|
|
57320
|
-
|
|
57321
|
-
|
|
57322
|
-
|
|
57323
|
-
|
|
57324
|
-
|
|
57325
|
-
|
|
57326
|
-
|
|
57327
|
-
|
|
57328
|
-
|
|
57329
|
-
|
|
57330
|
-
|
|
57331
|
-
|
|
57332
|
-
|
|
57333
|
-
|
|
57334
|
-
|
|
57335
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
57839
|
-
|
|
57840
|
-
|
|
57841
|
-
|
|
57842
|
-
|
|
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-
|
|
57892
|
+
//# sourceMappingURL=MessagingScreen-2M2ETWXp.cjs.map
|