@flamingo-stack/openframe-frontend-core 0.0.350 → 0.0.351

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 (87) hide show
  1. package/dist/{chunk-HEBUZLJ2.cjs → chunk-46Z3O6SN.cjs} +5 -5
  2. package/dist/{chunk-HEBUZLJ2.cjs.map → chunk-46Z3O6SN.cjs.map} +1 -1
  3. package/dist/{chunk-4LIII4VU.js → chunk-4WVVMKMC.js} +4 -4
  4. package/dist/{chunk-SHCBCWUN.js → chunk-5F45BY24.js} +2 -2
  5. package/dist/{chunk-4TWVKDZ3.cjs → chunk-63ISTNQW.cjs} +25 -25
  6. package/dist/{chunk-4TWVKDZ3.cjs.map → chunk-63ISTNQW.cjs.map} +1 -1
  7. package/dist/{chunk-5O4OTDH3.js → chunk-A6YFD2SK.js} +38 -9
  8. package/dist/chunk-A6YFD2SK.js.map +1 -0
  9. package/dist/{chunk-2UFPHLQW.cjs → chunk-BMQ5CBFD.cjs} +62 -62
  10. package/dist/{chunk-2UFPHLQW.cjs.map → chunk-BMQ5CBFD.cjs.map} +1 -1
  11. package/dist/{chunk-EET6FJB4.js → chunk-DJZ64AF6.js} +2 -2
  12. package/dist/{chunk-22YDMHQ6.js → chunk-EKU6D26E.js} +4 -4
  13. package/dist/{chunk-ICKM2U5N.cjs → chunk-GJZL72ON.cjs} +7 -7
  14. package/dist/{chunk-ICKM2U5N.cjs.map → chunk-GJZL72ON.cjs.map} +1 -1
  15. package/dist/{chunk-VLBYQVU6.cjs → chunk-HMUIRZ46.cjs} +138 -109
  16. package/dist/{chunk-VLBYQVU6.cjs.map → chunk-HMUIRZ46.cjs.map} +1 -1
  17. package/dist/{chunk-DIWT3MLF.js → chunk-JBWB3U3P.js} +2 -2
  18. package/dist/{chunk-K5R7QYZJ.js → chunk-MLW25MGY.js} +2 -2
  19. package/dist/{chunk-2VJOIQWC.cjs → chunk-NEIOYJIE.cjs} +15 -15
  20. package/dist/{chunk-2VJOIQWC.cjs.map → chunk-NEIOYJIE.cjs.map} +1 -1
  21. package/dist/{chunk-5DLWZXWX.cjs → chunk-NIRMBPFP.cjs} +12 -12
  22. package/dist/{chunk-5DLWZXWX.cjs.map → chunk-NIRMBPFP.cjs.map} +1 -1
  23. package/dist/{chunk-5EVW3XJK.js → chunk-Q3VK7WI2.js} +4 -4
  24. package/dist/{chunk-NLOK2CZ2.cjs → chunk-QGBJKB6V.cjs} +31 -31
  25. package/dist/{chunk-NLOK2CZ2.cjs.map → chunk-QGBJKB6V.cjs.map} +1 -1
  26. package/dist/{chunk-QM4W5LAZ.cjs → chunk-TH3HPNMO.cjs} +56 -56
  27. package/dist/{chunk-QM4W5LAZ.cjs.map → chunk-TH3HPNMO.cjs.map} +1 -1
  28. package/dist/{chunk-6EBR75I2.cjs → chunk-UQFTSFIF.cjs} +26 -26
  29. package/dist/{chunk-6EBR75I2.cjs.map → chunk-UQFTSFIF.cjs.map} +1 -1
  30. package/dist/{chunk-Y4JKCD7B.js → chunk-VY6AAUCK.js} +2 -2
  31. package/dist/{chunk-T265FMHX.cjs → chunk-VZ7TICMR.cjs} +37 -37
  32. package/dist/{chunk-T265FMHX.cjs.map → chunk-VZ7TICMR.cjs.map} +1 -1
  33. package/dist/{chunk-MIYA5JM5.js → chunk-WB2EWYSF.js} +2 -2
  34. package/dist/{chunk-B6MWUSP2.cjs → chunk-XZVVLO4V.cjs} +9 -9
  35. package/dist/{chunk-B6MWUSP2.cjs.map → chunk-XZVVLO4V.cjs.map} +1 -1
  36. package/dist/{chunk-OSILW6QN.js → chunk-YBL3JURC.js} +4 -4
  37. package/dist/{chunk-DGUTSVZ2.js → chunk-YIFJJCFB.js} +2 -2
  38. package/dist/components/case-studies/index.cjs +8 -8
  39. package/dist/components/case-studies/index.js +2 -2
  40. package/dist/components/chat/guide-welcome.d.ts +9 -1
  41. package/dist/components/chat/guide-welcome.d.ts.map +1 -1
  42. package/dist/components/chat/hooks/use-empty-state-config.d.ts +36 -3
  43. package/dist/components/chat/hooks/use-empty-state-config.d.ts.map +1 -1
  44. package/dist/components/chat/index.cjs +2 -2
  45. package/dist/components/chat/index.js +1 -1
  46. package/dist/components/contact/index.cjs +3 -3
  47. package/dist/components/contact/index.js +2 -2
  48. package/dist/components/docs/index.cjs +5 -5
  49. package/dist/components/docs/index.js +4 -4
  50. package/dist/components/embeds/index.cjs +3 -3
  51. package/dist/components/embeds/index.js +2 -2
  52. package/dist/components/faq/index.cjs +3 -3
  53. package/dist/components/faq/index.js +2 -2
  54. package/dist/components/features/index.cjs +2 -2
  55. package/dist/components/features/index.js +1 -1
  56. package/dist/components/help-center-pages/index.cjs +20 -20
  57. package/dist/components/help-center-pages/index.js +11 -11
  58. package/dist/components/index.cjs +120 -120
  59. package/dist/components/index.js +9 -9
  60. package/dist/components/navigation/index.cjs +2 -2
  61. package/dist/components/navigation/index.js +1 -1
  62. package/dist/components/onboarding-guides/index.cjs +5 -5
  63. package/dist/components/onboarding-guides/index.js +4 -4
  64. package/dist/components/related-content/index.cjs +3 -3
  65. package/dist/components/related-content/index.js +2 -2
  66. package/dist/components/tickets/index.cjs +5 -5
  67. package/dist/components/tickets/index.js +4 -4
  68. package/dist/components/ui/index.cjs +2 -2
  69. package/dist/components/ui/index.js +1 -1
  70. package/dist/index.cjs +2 -2
  71. package/dist/index.js +1 -1
  72. package/package.json +1 -1
  73. package/src/components/chat/embeddable-chat.tsx +45 -5
  74. package/src/components/chat/guide-welcome.tsx +17 -6
  75. package/src/components/chat/hooks/use-empty-state-config.ts +44 -3
  76. package/dist/chunk-5O4OTDH3.js.map +0 -1
  77. /package/dist/{chunk-4LIII4VU.js.map → chunk-4WVVMKMC.js.map} +0 -0
  78. /package/dist/{chunk-SHCBCWUN.js.map → chunk-5F45BY24.js.map} +0 -0
  79. /package/dist/{chunk-EET6FJB4.js.map → chunk-DJZ64AF6.js.map} +0 -0
  80. /package/dist/{chunk-22YDMHQ6.js.map → chunk-EKU6D26E.js.map} +0 -0
  81. /package/dist/{chunk-DIWT3MLF.js.map → chunk-JBWB3U3P.js.map} +0 -0
  82. /package/dist/{chunk-K5R7QYZJ.js.map → chunk-MLW25MGY.js.map} +0 -0
  83. /package/dist/{chunk-5EVW3XJK.js.map → chunk-Q3VK7WI2.js.map} +0 -0
  84. /package/dist/{chunk-Y4JKCD7B.js.map → chunk-VY6AAUCK.js.map} +0 -0
  85. /package/dist/{chunk-MIYA5JM5.js.map → chunk-WB2EWYSF.js.map} +0 -0
  86. /package/dist/{chunk-OSILW6QN.js.map → chunk-YBL3JURC.js.map} +0 -0
  87. /package/dist/{chunk-DGUTSVZ2.js.map → chunk-YIFJJCFB.js.map} +0 -0
@@ -6866,6 +6866,7 @@ function renderQuickActionIcon(a) {
6866
6866
  var DEFAULT_TITLE = "Guide Mode Chat";
6867
6867
  function GuideWelcome({
6868
6868
  title = DEFAULT_TITLE,
6869
+ icon,
6869
6870
  subtitle,
6870
6871
  subtitleLoading = false,
6871
6872
  quickActions = [],
@@ -6922,7 +6923,11 @@ function GuideWelcome({
6922
6923
  className: "flex flex-1 min-h-0 flex-col gap-[var(--spacing-system-m)] overflow-y-auto",
6923
6924
  children: [
6924
6925
  /* @__PURE__ */ jsxs32("div", { className: "flex flex-1 flex-col items-center gap-[var(--spacing-system-l)] px-[var(--spacing-system-l)] py-[var(--spacing-system-xxl)] text-center", children: [
6925
- /* @__PURE__ */ jsx38(
6926
+ icon && (icon.name || icon.url) ? (
6927
+ // Agent-mode identity glyph (chat-config Identity tab). Sized to
6928
+ // match the default Mingo mark (48px).
6929
+ /* @__PURE__ */ jsx38(EntityIcon, { icon: { name: icon.name, url: icon.url, props: icon.props }, size: 48 })
6930
+ ) : /* @__PURE__ */ jsx38(
6926
6931
  MingoIcon,
6927
6932
  {
6928
6933
  className: "h-12 w-12",
@@ -45464,8 +45469,11 @@ function useSlashCommandRegistry(commandsUrl, options) {
45464
45469
  // src/components/chat/hooks/use-empty-state-config.ts
45465
45470
  import { useQuery as useQuery3 } from "@tanstack/react-query";
45466
45471
  var EMPTY_STATE_FALLBACK = {
45472
+ name: null,
45473
+ icon: null,
45467
45474
  greeting: null,
45468
45475
  enabledRagTableIds: [],
45476
+ quickActions: [],
45469
45477
  suggestedQueries: []
45470
45478
  };
45471
45479
  async function fetchEmptyStateConfig(signal, emptyStateUrl) {
@@ -45480,8 +45488,11 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
45480
45488
  }
45481
45489
  const data = await res.json();
45482
45490
  return {
45491
+ name: data?.name ?? null,
45492
+ icon: data?.icon ?? null,
45483
45493
  greeting: data?.greeting ?? null,
45484
45494
  enabledRagTableIds: data?.enabledRagTableIds ?? [],
45495
+ quickActions: data?.quickActions ?? [],
45485
45496
  suggestedQueries: data?.suggestedQueries ?? []
45486
45497
  };
45487
45498
  } catch (err) {
@@ -48803,6 +48814,10 @@ function EmbeddableChatInner({
48803
48814
  const effectiveGreeting = emptyStateConfig.greeting ?? emptyStateGreeting;
48804
48815
  const effectiveEnabledRagTableIds = emptyStateUrl ? emptyStateConfig.enabledRagTableIds : enabledRagTableIds;
48805
48816
  const effectiveSuggestedQueries = emptyStateUrl ? emptyStateConfig.suggestedQueries : suggestedQueries;
48817
+ const effectiveQuickActions = emptyStateUrl ? emptyStateConfig.quickActions : [];
48818
+ const effectiveAssistantName = emptyStateConfig.name;
48819
+ const effectiveAssistantIcon = emptyStateConfig.icon;
48820
+ const headerAssistantName = effectiveAssistantName ?? (typeof guideWelcome?.title === "string" ? guideWelcome.title : null);
48806
48821
  const {
48807
48822
  messages: rawMessages,
48808
48823
  isLoading: chatLoading,
@@ -49023,12 +49038,24 @@ function EmbeddableChatInner({
49023
49038
  [sendMessage, readyAttachments, viewUrlPrefix, clearAttachments, contextItems]
49024
49039
  );
49025
49040
  const guideSuggestedActions = useMemo43(
49026
- () => (effectiveSuggestedQueries ?? []).map((q, i) => ({
49027
- id: `suggested-${i}`,
49028
- label: q,
49029
- prompt: q
49030
- })),
49031
- [effectiveSuggestedQueries]
49041
+ () => {
49042
+ if (effectiveQuickActions.length > 0) {
49043
+ return effectiveQuickActions.map((qa) => ({
49044
+ id: qa.id,
49045
+ label: qa.label,
49046
+ prompt: qa.prompt,
49047
+ iconName: qa.iconName,
49048
+ iconUrl: qa.iconUrl,
49049
+ iconProps: qa.iconProps
49050
+ }));
49051
+ }
49052
+ return (effectiveSuggestedQueries ?? []).map((q, i) => ({
49053
+ id: `suggested-${i}`,
49054
+ label: q,
49055
+ prompt: q
49056
+ }));
49057
+ },
49058
+ [effectiveQuickActions, effectiveSuggestedQueries]
49032
49059
  );
49033
49060
  const {
49034
49061
  fetchArchivedDialogs,
@@ -49161,7 +49188,7 @@ function EmbeddableChatInner({
49161
49188
  ChatPanelHeader,
49162
49189
  {
49163
49190
  showBack: hasConversation || guideCanReturnToMingo,
49164
- title: hasConversation ? activeDialog?.title || "New Chat" : isGuideEmpty ? "Mingo Guide" : "Current Chats",
49191
+ title: hasConversation ? activeDialog?.title || "New Chat" : isGuideEmpty ? headerAssistantName ?? "Mingo Guide" : "Current Chats",
49165
49192
  backAriaLabel: hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo",
49166
49193
  isArchivedView: isViewingArchived,
49167
49194
  onBack: hasConversation ? handleBack : () => handleActiveModeChange("mingo"),
@@ -49280,6 +49307,8 @@ function EmbeddableChatInner({
49280
49307
  subtitle: effectiveGreeting ?? void 0,
49281
49308
  subtitleLoading: emptyStateLoading,
49282
49309
  ...guideWelcome,
49310
+ title: effectiveAssistantName ?? guideWelcome?.title,
49311
+ icon: effectiveAssistantIcon ?? guideWelcome?.icon,
49283
49312
  quickActions: guideWelcome?.quickActions ?? guideSuggestedActions,
49284
49313
  onQuickAction: (action) => {
49285
49314
  setQuickActionPreview(null);
@@ -50363,4 +50392,4 @@ export {
50363
50392
  LogsList,
50364
50393
  assets
50365
50394
  };
50366
- //# sourceMappingURL=chunk-5O4OTDH3.js.map
50395
+ //# sourceMappingURL=chunk-A6YFD2SK.js.map