@flamingo-stack/openframe-frontend-core 0.0.753 → 0.0.755
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/build/export-map.json +1 -1
- package/dist/{chunk-W77VPNBJ.cjs → chunk-2HWKYPJB.cjs} +2 -2
- package/dist/{chunk-ZGADZHLD.cjs → chunk-32IKIBPY.cjs} +55 -55
- package/dist/{chunk-RGYLC3US.cjs → chunk-5WHEQ63L.cjs} +2 -2
- package/dist/{chunk-UVTJT5BK.cjs → chunk-BQ5KRCSJ.cjs} +5 -5
- package/dist/{chunk-Z6TUOE6L.cjs → chunk-BVEUGFIN.cjs} +22 -22
- package/dist/{chunk-C6JHDRK3.cjs → chunk-FOVNP5HU.cjs} +4 -4
- package/dist/{chunk-XW6WSW36.cjs → chunk-HAL6HBTM.cjs} +76 -76
- package/dist/{chunk-XSOGT6DF.cjs → chunk-HSWNJAIK.cjs} +9 -9
- package/dist/{chunk-Y7AZCDLZ.cjs → chunk-JV4VVA2V.cjs} +14 -12
- package/dist/{chunk-WIT36ZTN.cjs → chunk-NE3T3ZIG.cjs} +89 -82
- package/dist/{chunk-JLAYELWS.cjs → chunk-NS5DO6QK.cjs} +13 -13
- package/dist/{chunk-J3E5UN2O.cjs → chunk-Q2MSW2IW.cjs} +3 -3
- package/dist/{chunk-QXQHCX2R.cjs → chunk-RRCHQTZW.cjs} +2 -2
- package/dist/{chunk-ITQZK3UT.cjs → chunk-RRE6C3ZU.cjs} +3 -3
- package/dist/{chunk-ZJ77IOMY.cjs → chunk-SZGUEPJC.cjs} +34 -34
- package/dist/{chunk-R45NJ5ZA.cjs → chunk-YXX6UMG3.cjs} +33 -33
- package/dist/{cloud-tenants-7LTS4DAP.cjs → cloud-tenants-S7RR2UDJ.cjs} +3 -3
- package/dist/components/announcement-bar.d.ts +1 -1
- package/dist/components/announcement-bar.d.ts.map +1 -1
- package/dist/components/announcement-bar.js +3 -1
- package/dist/components/case-studies/index.cjs +11 -11
- package/dist/components/chat/embeddable-chat.js +11 -6
- package/dist/components/chat/index.cjs +2 -2
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/help-center-pages/index.cjs +53 -53
- package/dist/components/index.cjs +34 -32
- package/dist/components/meeting-scheduler/index.cjs +19 -19
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/product-demo/index.cjs +7 -7
- package/dist/components/tickets/index.cjs +8 -8
- package/dist/components/ui/index.cjs +3 -3
- package/dist/{devices-CGDJAYRB.cjs → devices-KCD2WSEV.cjs} +4 -4
- package/dist/{embeddable-chat-CMEHSDV7.cjs → embeddable-chat-OGUGNKLP.cjs} +11 -6
- package/dist/index.cjs +11 -7
- package/dist/{knowledge-X5I4QJKV.cjs → knowledge-OX5PYEPE.cjs} +3 -3
- package/dist/{logs-GDGIRJFI.cjs → logs-ZVOBADLB.cjs} +11 -11
- package/dist/{policies-2UOCENDX.cjs → policies-NSHPEZTR.cjs} +7 -7
- package/dist/{scripts-AS4GEG6L.cjs → scripts-OHMKBEXO.cjs} +8 -8
- package/dist/{software-update-ADPUFMFY.cjs → software-update-WMLGMSBQ.cjs} +6 -6
- package/dist/types/announcement.cjs +2 -0
- package/dist/types/announcement.d.ts +21 -0
- package/dist/types/announcement.d.ts.map +1 -1
- package/dist/types/announcement.js +2 -0
- package/dist/types/index.cjs +2 -0
- package/dist/utils/announcement-surface.d.ts +8 -0
- package/dist/utils/announcement-surface.d.ts.map +1 -0
- package/dist/utils/announcement-surface.js +7 -0
- package/dist/utils/index.cjs +7 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/package.json +1 -1
- package/src/components/announcement-bar.tsx +9 -1
- package/src/components/chat/embeddable-chat.tsx +13 -6
- package/src/types/announcement.ts +22 -0
- package/src/utils/announcement-surface.ts +14 -0
- package/src/utils/index.ts +2 -0
|
@@ -3166,8 +3166,8 @@ function EmbeddableChatInner({
|
|
|
3166
3166
|
}, [clearWhatToAskDraft, resetToNewChat]);
|
|
3167
3167
|
const activeDialogStatus = activeDialog && dialogStatusOf ? dialogStatusOf(activeDialog) : void 0;
|
|
3168
3168
|
const isChatBlocked = !!composerLock || chatLoading || activeDialogStatus === "working" || activeDialogStatus === "approval" || (_nullishCoalesce(_optionalChain([pendingApprovals, 'optionalAccess', _65 => _65.length]), () => ( 0))) > 0 || _chunkSDF5UUTEcjs.awaitsDecision.call(void 0, hostMessages);
|
|
3169
|
-
const showWhatToAsk = (content) => {
|
|
3170
|
-
if (activeDialogId && hasConversation && !isViewingArchived && !isMessagesLoading && !isChatBlocked) {
|
|
3169
|
+
const showWhatToAsk = (content, newChat = false) => {
|
|
3170
|
+
if (!newChat && activeDialogId && hasConversation && !isViewingArchived && !isMessagesLoading && !isChatBlocked) {
|
|
3171
3171
|
whatToAsk.ask("current", content);
|
|
3172
3172
|
return;
|
|
3173
3173
|
}
|
|
@@ -3193,15 +3193,15 @@ function EmbeddableChatInner({
|
|
|
3193
3193
|
showWhatToAskRef.current = showWhatToAsk;
|
|
3194
3194
|
});
|
|
3195
3195
|
const whatToAskPendingRef = _react.useRef.call(void 0, false);
|
|
3196
|
-
const requestWhatToAsk = () => {
|
|
3196
|
+
const requestWhatToAsk = (newChat) => {
|
|
3197
3197
|
if (!whatToAskContent) return;
|
|
3198
3198
|
if (typeof whatToAskContent !== "function") {
|
|
3199
|
-
showWhatToAsk(whatToAskContent);
|
|
3199
|
+
showWhatToAsk(whatToAskContent, newChat);
|
|
3200
3200
|
return;
|
|
3201
3201
|
}
|
|
3202
3202
|
if (whatToAskPendingRef.current) return;
|
|
3203
3203
|
whatToAskPendingRef.current = true;
|
|
3204
|
-
whatToAskContent().then((content) => showWhatToAskRef.current(content)).catch((err) => console.error("[EmbeddableChat] whatToAsk failed:", err)).finally(() => {
|
|
3204
|
+
whatToAskContent().then((content) => showWhatToAskRef.current(content, newChat)).catch((err) => console.error("[EmbeddableChat] whatToAsk failed:", err)).finally(() => {
|
|
3205
3205
|
whatToAskPendingRef.current = false;
|
|
3206
3206
|
});
|
|
3207
3207
|
};
|
|
@@ -3323,7 +3323,12 @@ function EmbeddableChatInner({
|
|
|
3323
3323
|
onOpenArchive: headerOnOpenArchive && (archiveOpen ? closeArchive : headerOnOpenArchive),
|
|
3324
3324
|
archiveActive: archiveOpen,
|
|
3325
3325
|
// The suggestions a new chat opens on, unless the host has a surface of its own.
|
|
3326
|
-
|
|
3326
|
+
// From the archive list no chat is on screen, even though the one open
|
|
3327
|
+
// before it is still the active dialog: that click opens a new chat.
|
|
3328
|
+
onWhatToAsk: () => {
|
|
3329
|
+
const fromArchive = archiveOpen;
|
|
3330
|
+
leaveArchiveThen(_nullishCoalesce(onWhatToAsk, () => ( (whatToAskContent ? () => requestWhatToAsk(fromArchive) : handleNewChat))))();
|
|
3331
|
+
},
|
|
3327
3332
|
statusOf: dialogStatusOf,
|
|
3328
3333
|
onRequestRename: mingoCaps.canRename ? setRenameTarget : void 0,
|
|
3329
3334
|
onRequestArchive: mingoCaps.canArchive ? setArchiveTarget : void 0,
|