@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
|
@@ -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-
|
|
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-
|
|
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__ */
|
|
54560
|
-
|
|
54561
|
-
|
|
54562
|
-
|
|
54563
|
-
|
|
54564
|
-
|
|
54565
|
-
|
|
54566
|
-
|
|
54567
|
-
|
|
54568
|
-
|
|
54569
|
-
|
|
54570
|
-
|
|
54571
|
-
token,
|
|
54572
|
-
|
|
54573
|
-
|
|
54574
|
-
|
|
54575
|
-
|
|
54576
|
-
|
|
54577
|
-
|
|
54578
|
-
|
|
54579
|
-
|
|
54580
|
-
|
|
54581
|
-
|
|
54582
|
-
|
|
54583
|
-
|
|
54584
|
-
|
|
54585
|
-
|
|
54586
|
-
|
|
54587
|
-
|
|
54588
|
-
|
|
54589
|
-
|
|
54590
|
-
|
|
54591
|
-
|
|
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
|
|
54963
|
+
function useMessagingTranslationAdapter() {
|
|
54961
54964
|
const { locale } = useActiveLocale();
|
|
54962
54965
|
const dict = useDomainDict(messagingDomain, locale);
|
|
54963
|
-
return
|
|
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
|
-
|
|
55095
|
-
|
|
55096
|
-
|
|
55097
|
-
|
|
55098
|
-
|
|
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-
|
|
55119
|
+
//# sourceMappingURL=MessagingScreen-CwzSY_G8.mjs.map
|