@flamingo-stack/openframe-frontend-core 0.0.665-snapshot.20260924174106 → 0.0.665

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 (109) hide show
  1. package/dist/{chunk-IUNCGKFP.cjs → chunk-3SS37SNM.cjs} +10 -10
  2. package/dist/{chunk-IUNCGKFP.cjs.map → chunk-3SS37SNM.cjs.map} +1 -1
  3. package/dist/{chunk-W2WEIVHT.cjs → chunk-6FD7ZEBY.cjs} +163 -163
  4. package/dist/{chunk-W2WEIVHT.cjs.map → chunk-6FD7ZEBY.cjs.map} +1 -1
  5. package/dist/{chunk-VUYRTI3Z.cjs → chunk-6W5N23LC.cjs} +26 -26
  6. package/dist/{chunk-VUYRTI3Z.cjs.map → chunk-6W5N23LC.cjs.map} +1 -1
  7. package/dist/{chunk-CYPLD5F3.js → chunk-77WMNQTE.js} +3 -3
  8. package/dist/{chunk-SCRVQY42.js → chunk-BKCPXDOE.js} +2 -2
  9. package/dist/{chunk-DDW7G6U7.js → chunk-BPKEDLGR.js} +5 -5
  10. package/dist/{chunk-NIVLGQKS.js → chunk-CQJXOBWK.js} +3 -3
  11. package/dist/{chunk-ILAEMVAI.js → chunk-DNFC6RYF.js} +2 -2
  12. package/dist/{chunk-WI5LLFA6.cjs → chunk-EMJAT6IK.cjs} +15 -15
  13. package/dist/{chunk-WI5LLFA6.cjs.map → chunk-EMJAT6IK.cjs.map} +1 -1
  14. package/dist/{chunk-KDFSFVNX.cjs → chunk-FGQSSFP4.cjs} +10 -10
  15. package/dist/{chunk-KDFSFVNX.cjs.map → chunk-FGQSSFP4.cjs.map} +1 -1
  16. package/dist/{chunk-O5GV3WQO.js → chunk-GDTFJ5QN.js} +2 -2
  17. package/dist/{chunk-VI35TSB2.js → chunk-JHAS6Y7P.js} +4 -4
  18. package/dist/{chunk-XMY2XTHG.cjs → chunk-JHH7NETU.cjs} +5 -5
  19. package/dist/{chunk-XMY2XTHG.cjs.map → chunk-JHH7NETU.cjs.map} +1 -1
  20. package/dist/{chunk-VN2U4EBP.cjs → chunk-KBUYG5N6.cjs} +33 -33
  21. package/dist/{chunk-VN2U4EBP.cjs.map → chunk-KBUYG5N6.cjs.map} +1 -1
  22. package/dist/{chunk-AAIL6J56.cjs → chunk-L4ZNA3NX.cjs} +3 -3
  23. package/dist/{chunk-AAIL6J56.cjs.map → chunk-L4ZNA3NX.cjs.map} +1 -1
  24. package/dist/{chunk-2S44CUCH.cjs → chunk-LCYYTWRF.cjs} +4 -4
  25. package/dist/{chunk-2S44CUCH.cjs.map → chunk-LCYYTWRF.cjs.map} +1 -1
  26. package/dist/{chunk-XSRIPH6U.cjs → chunk-LTW2GWJ2.cjs} +22 -22
  27. package/dist/{chunk-XSRIPH6U.cjs.map → chunk-LTW2GWJ2.cjs.map} +1 -1
  28. package/dist/{chunk-7H7LYI4M.cjs → chunk-LXL3PZE2.cjs} +10 -10
  29. package/dist/{chunk-7H7LYI4M.cjs.map → chunk-LXL3PZE2.cjs.map} +1 -1
  30. package/dist/{chunk-V3B37LQY.js → chunk-MBLACUCE.js} +5 -5
  31. package/dist/{chunk-23XIOIGS.cjs → chunk-MNUR6PAJ.cjs} +370 -392
  32. package/dist/chunk-MNUR6PAJ.cjs.map +1 -0
  33. package/dist/{chunk-ZDGEJFDG.js → chunk-O3GB7JFL.js} +3 -3
  34. package/dist/{chunk-EYCF3GGM.js → chunk-OLCI3UA5.js} +6 -6
  35. package/dist/{chunk-IWCYTHNG.js → chunk-OMTLCMQB.js} +9 -31
  36. package/dist/chunk-OMTLCMQB.js.map +1 -0
  37. package/dist/{chunk-CRDKQMTP.js → chunk-QR3NUFA5.js} +2 -2
  38. package/dist/{chunk-R6NU4QFR.js → chunk-RM4S53GB.js} +2 -2
  39. package/dist/{chunk-JBRNIUYC.js → chunk-RT5JNTCN.js} +3 -3
  40. package/dist/{chunk-YAF2JKAK.cjs → chunk-X32X52VN.cjs} +71 -71
  41. package/dist/{chunk-YAF2JKAK.cjs.map → chunk-X32X52VN.cjs.map} +1 -1
  42. package/dist/{chunk-L7QXTWI7.cjs → chunk-XCACXPCM.cjs} +22 -22
  43. package/dist/{chunk-L7QXTWI7.cjs.map → chunk-XCACXPCM.cjs.map} +1 -1
  44. package/dist/{chunk-YVMSA7LR.js → chunk-YRMKUDOE.js} +5 -5
  45. package/dist/{chunk-HQHZZ3SL.js → chunk-Z2MJPTIB.js} +3 -3
  46. package/dist/{chunk-OPY4JNY2.cjs → chunk-ZGPST26T.cjs} +45 -45
  47. package/dist/{chunk-OPY4JNY2.cjs.map → chunk-ZGPST26T.cjs.map} +1 -1
  48. package/dist/{chunk-QSYYYL55.cjs → chunk-ZMZUF6FX.cjs} +3 -3
  49. package/dist/{chunk-QSYYYL55.cjs.map → chunk-ZMZUF6FX.cjs.map} +1 -1
  50. package/dist/components/case-studies/index.cjs +14 -14
  51. package/dist/components/case-studies/index.js +3 -3
  52. package/dist/components/chat/chat-composer.d.ts +1 -10
  53. package/dist/components/chat/chat-composer.d.ts.map +1 -1
  54. package/dist/components/chat/chat-input.d.ts.map +1 -1
  55. package/dist/components/chat/embeddable-chat.d.ts +0 -10
  56. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  57. package/dist/components/chat/index.cjs +2 -2
  58. package/dist/components/chat/index.js +1 -1
  59. package/dist/components/chat/types/component.types.d.ts +0 -7
  60. package/dist/components/chat/types/component.types.d.ts.map +1 -1
  61. package/dist/components/contact/index.cjs +4 -4
  62. package/dist/components/contact/index.js +3 -3
  63. package/dist/components/docs/index.cjs +7 -7
  64. package/dist/components/docs/index.js +6 -6
  65. package/dist/components/embeds/index.cjs +4 -4
  66. package/dist/components/embeds/index.js +3 -3
  67. package/dist/components/faq/index.cjs +4 -4
  68. package/dist/components/faq/index.js +3 -3
  69. package/dist/components/features/index.cjs +3 -3
  70. package/dist/components/features/index.js +2 -2
  71. package/dist/components/help-center-pages/index.cjs +23 -23
  72. package/dist/components/help-center-pages/index.js +14 -14
  73. package/dist/components/index.cjs +39 -39
  74. package/dist/components/index.js +13 -13
  75. package/dist/components/meeting-scheduler/index.cjs +24 -24
  76. package/dist/components/meeting-scheduler/index.js +2 -2
  77. package/dist/components/navigation/index.cjs +6 -6
  78. package/dist/components/navigation/index.js +5 -5
  79. package/dist/components/onboarding-guides/index.cjs +6 -6
  80. package/dist/components/onboarding-guides/index.js +5 -5
  81. package/dist/components/tickets/index.cjs +7 -7
  82. package/dist/components/tickets/index.js +6 -6
  83. package/dist/components/ui/index.cjs +3 -3
  84. package/dist/components/ui/index.js +2 -2
  85. package/dist/index.cjs +7 -7
  86. package/dist/index.js +6 -6
  87. package/package.json +1 -1
  88. package/src/components/chat/chat-composer.tsx +5 -21
  89. package/src/components/chat/chat-input.tsx +3 -15
  90. package/src/components/chat/embeddable-chat.tsx +2 -16
  91. package/src/components/chat/types/component.types.ts +0 -7
  92. package/src/stories/EmbeddableChat.stories.tsx +0 -21
  93. package/dist/chunk-23XIOIGS.cjs.map +0 -1
  94. package/dist/chunk-IWCYTHNG.js.map +0 -1
  95. /package/dist/{chunk-CYPLD5F3.js.map → chunk-77WMNQTE.js.map} +0 -0
  96. /package/dist/{chunk-SCRVQY42.js.map → chunk-BKCPXDOE.js.map} +0 -0
  97. /package/dist/{chunk-DDW7G6U7.js.map → chunk-BPKEDLGR.js.map} +0 -0
  98. /package/dist/{chunk-NIVLGQKS.js.map → chunk-CQJXOBWK.js.map} +0 -0
  99. /package/dist/{chunk-ILAEMVAI.js.map → chunk-DNFC6RYF.js.map} +0 -0
  100. /package/dist/{chunk-O5GV3WQO.js.map → chunk-GDTFJ5QN.js.map} +0 -0
  101. /package/dist/{chunk-VI35TSB2.js.map → chunk-JHAS6Y7P.js.map} +0 -0
  102. /package/dist/{chunk-V3B37LQY.js.map → chunk-MBLACUCE.js.map} +0 -0
  103. /package/dist/{chunk-ZDGEJFDG.js.map → chunk-O3GB7JFL.js.map} +0 -0
  104. /package/dist/{chunk-EYCF3GGM.js.map → chunk-OLCI3UA5.js.map} +0 -0
  105. /package/dist/{chunk-CRDKQMTP.js.map → chunk-QR3NUFA5.js.map} +0 -0
  106. /package/dist/{chunk-R6NU4QFR.js.map → chunk-RM4S53GB.js.map} +0 -0
  107. /package/dist/{chunk-JBRNIUYC.js.map → chunk-RT5JNTCN.js.map} +0 -0
  108. /package/dist/{chunk-YVMSA7LR.js.map → chunk-YRMKUDOE.js.map} +0 -0
  109. /package/dist/{chunk-HQHZZ3SL.js.map → chunk-Z2MJPTIB.js.map} +0 -0
@@ -12,20 +12,10 @@ import { ModelDisplay } from './model-display';
12
12
  import type { ChatInputRef, ModelDisplayProps } from './types/component.types';
13
13
  import type { ChatContextItem, ChatContextPickerConfig } from './types/context-item.types';
14
14
 
15
- /** Why the composer takes no input, in the user's words — shown where the prompt would be. */
16
- export interface ChatComposerLock {
17
- placeholder: string;
18
- }
19
-
20
15
  export interface ChatComposerProps {
21
16
  /** Read-only archived chat → render the unarchive placeholder instead of the
22
17
  * input (Figma node 7361:426949). */
23
18
  archived?: boolean;
24
- /** The host cannot take a message right now — e.g. the AI balance is spent
25
- * and the agents are paused (Figma 954:28455). The composer keeps its place
26
- * but takes no input: the editor is disabled with the lock's copy in the
27
- * prompt's place, and the `+` menu, the chips and Send are inert. */
28
- lock?: ChatComposerLock | null;
29
19
  inputRef: Ref<ChatInputRef>;
30
20
  onSend: (text: string) => void;
31
21
  onStop: () => void;
@@ -90,7 +80,6 @@ export interface ChatComposerProps {
90
80
  */
91
81
  export function ChatComposer({
92
82
  archived = false,
93
- lock = null,
94
83
  inputRef,
95
84
  onSend,
96
85
  onStop,
@@ -118,7 +107,6 @@ export function ChatComposer({
118
107
  previewText,
119
108
  }: ChatComposerProps) {
120
109
  const contextEnabled = !!contextPicker && !archived;
121
- const locked = lock != null;
122
110
  const selected = selectedContextItems ?? [];
123
111
  const memory = contextMemoryItems ?? [];
124
112
 
@@ -143,15 +131,11 @@ export function ChatComposer({
143
131
  onStop={onStop}
144
132
  sending={sending}
145
133
  placeholder={placeholder}
146
- // Locked: the editor is disabled and the lock's copy stands where the
147
- // prompt would; there is nothing to focus, so autofocus stands down too.
148
- disabled={locked}
149
- disabledPlaceholder={lock?.placeholder}
150
134
  previewText={previewText}
151
135
  fullWidth
152
136
  className="px-0"
153
137
  reserveAvatarOffset={false}
154
- autoFocus={locked ? false : autoFocus}
138
+ autoFocus={autoFocus}
155
139
  slashCommands={slashCommands}
156
140
  onMentionQueryChange={contextEnabled ? onMentionQueryChange : undefined}
157
141
  onValueChange={contextEnabled ? onValueChange : undefined}
@@ -164,7 +148,7 @@ export function ChatComposer({
164
148
  <ChatComposerPlusMenu
165
149
  onToggle={() => (contextPickerOpen ? onCloseContextPicker?.() : onOpenContextPicker?.())}
166
150
  open={contextPickerOpen}
167
- disabled={attachmentsDisabled || locked}
151
+ disabled={attachmentsDisabled}
168
152
  dropdown={
169
153
  contextPicker ? (
170
154
  <ChatContextPicker
@@ -218,7 +202,7 @@ export function ChatComposer({
218
202
  items={memory}
219
203
  onRemove={onRemoveContextMemoryItem}
220
204
  resolveIcon={resolveContextIcon}
221
- disabled={sending || locked}
205
+ disabled={sending}
222
206
  className="rounded-t-md"
223
207
  />
224
208
  {selected.length > 0 && (
@@ -226,7 +210,7 @@ export function ChatComposer({
226
210
  items={selected}
227
211
  onRemove={onRemoveContextItem}
228
212
  resolveIcon={resolveContextIcon}
229
- disabled={sending || locked}
213
+ disabled={sending}
230
214
  className={cn(
231
215
  'border-b border-ods-border bg-ods-bg p-2',
232
216
  // Only the TOP strip rounds into the card corner.
@@ -252,7 +236,7 @@ export function ChatComposer({
252
236
  attachmentsEnabled
253
237
  attachmentsCount={attachmentsCount}
254
238
  onAddFiles={onAddFiles}
255
- disabled={attachmentsDisabled || locked}
239
+ disabled={attachmentsDisabled}
256
240
  />
257
241
  )}
258
242
  <div className="min-w-0 flex-1">
@@ -167,7 +167,6 @@ const ChatInput = forwardRef<ChatInputRef, ChatInputProps>((allProps, ref) => {
167
167
  placeholder = 'Enter your Request...',
168
168
  reserveAvatarOffset: _reserveAvatarOffset,
169
169
  disabled = false,
170
- disabledPlaceholder = 'Connection lost. Waiting to reconnect...',
171
170
  autoFocus = false,
172
171
  fullWidth = false,
173
172
  allowEmptySend = false,
@@ -608,18 +607,8 @@ const ChatInput = forwardRef<ChatInputRef, ChatInputProps>((allProps, ref) => {
608
607
  the draft is EMPTY, so the editor is always on its plain line
609
608
  box here. */}
610
609
  {isEmpty && !showPreview && (
611
- <span
612
- className={cn(
613
- // One line, clipped with an ellipsis (Figma 954:28455): the
614
- // disabled copy is a sentence, and the panel's narrowest
615
- // width does not fit it — wrapped, it ran under the row.
616
- 'pointer-events-none absolute left-0 top-0 w-full select-none truncate text-h4',
617
- // Disabled reads as disabled (Figma 954:28455): the copy says
618
- // why, and the colour says it is not an invitation to type.
619
- disabled ? 'text-ods-text-disabled' : 'text-ods-text-secondary',
620
- )}
621
- >
622
- {disabled ? disabledPlaceholder : placeholder}
610
+ <span className="pointer-events-none absolute left-0 top-0 select-none text-ods-text-secondary text-h4">
611
+ {disabled ? 'Connection lost. Waiting to reconnect...' : placeholder}
623
612
  </span>
624
613
  )}
625
614
  {/* Ghost preview of a hovered quick-action's prompt. Overlaid like
@@ -653,8 +642,7 @@ const ChatInput = forwardRef<ChatInputRef, ChatInputProps>((allProps, ref) => {
653
642
  data-editor
654
643
  role="textbox"
655
644
  aria-multiline="true"
656
- // Named by what it shows: locked, the lock's copy is the name.
657
- aria-label={disabled ? disabledPlaceholder : typeof placeholder === 'string' ? placeholder : 'Message'}
645
+ aria-label={typeof placeholder === 'string' ? placeholder : 'Message'}
658
646
  // `sending` blocks SENDING, never typing. Taking
659
647
  // `contentEditable` away under a focused editor blurs it, and
660
648
  // iOS dismisses the keyboard on blur; restoring it re-establishes
@@ -62,7 +62,7 @@ import { CollisionBoundaryContext, PortalContainerContext } from '../ui/portal-c
62
62
  import { SquareAvatar } from '../ui/square-avatar';
63
63
  import { ChatArchivePage } from './chat-archive-page';
64
64
  import { ChatAttachmentChipStrip } from './chat-attachment-bar';
65
- import { ChatComposer, type ChatComposerLock } from './chat-composer';
65
+ import { ChatComposer } from './chat-composer';
66
66
  import { chatDialogMenuItems } from './chat-dialog-menu-items';
67
67
  import { ChatHeaderIconButton } from './chat-header-icon-button';
68
68
  import { ChatHeaderSearchField } from './chat-header-search-field';
@@ -185,15 +185,6 @@ export interface EmbeddableChatProps {
185
185
  * cursor. Scrolling is intentionally disabled too. Defaults to `false`.
186
186
  */
187
187
  previewMode?: boolean;
188
- /**
189
- * The host cannot serve a message right now — e.g. the tenant's AI balance
190
- * is spent and the agents are paused (Figma 954:28455). The composer stays
191
- * in place but takes no input: the editor is disabled with `placeholder`
192
- * where the prompt would be, and the `+` menu and Send are inert. Sends that
193
- * bypass the composer (quick-action chips, imperative prompts) are the
194
- * host's to hold back — it owns their callbacks. `null`/unset = live.
195
- */
196
- composerLock?: ChatComposerLock | null;
197
188
  /** Optional builders for chat-card types whose props live in hub-land
198
189
  * (programs + product_release). Forwarded straight to
199
190
  * `renderChatInlineEntityCard`. */
@@ -952,7 +943,6 @@ function EmbeddableChatInner({
952
943
  defaultOpen,
953
944
  showInternalTrigger = true,
954
945
  previewMode = false,
955
- composerLock = null,
956
946
  extras,
957
947
  tableIdForDocumentType,
958
948
  modes,
@@ -1581,9 +1571,6 @@ function EmbeddableChatInner({
1581
1571
 
1582
1572
  const handleSend = useCallback(
1583
1573
  (text: string) => {
1584
- // Locked: the disabled editor cannot submit, but a queued Enter or a
1585
- // stale ref call still lands here — refused at the seam, not by luck.
1586
- if (composerLock) return;
1587
1574
  // Append chat-attachment markdown lines to the user's bubble.
1588
1575
  let augmentedText = text;
1589
1576
  if (readyAttachments.length > 0) {
@@ -1611,7 +1598,7 @@ function EmbeddableChatInner({
1611
1598
  setContextItems([]);
1612
1599
  }
1613
1600
  },
1614
- [composerLock, sendMessage, readyAttachments, viewUrlPrefix, clearAttachments, contextItems],
1601
+ [sendMessage, readyAttachments, viewUrlPrefix, clearAttachments, contextItems],
1615
1602
  );
1616
1603
 
1617
1604
  /**
@@ -2662,7 +2649,6 @@ function EmbeddableChatInner({
2662
2649
 
2663
2650
  <ChatComposer
2664
2651
  archived={isViewingArchived}
2665
- lock={composerLock}
2666
2652
  inputRef={chatInputRef}
2667
2653
  onSend={handleSend}
2668
2654
  onStop={stopMessage}
@@ -453,13 +453,6 @@ export interface ChatInputProps extends Omit<TextareaHTMLAttributes<HTMLTextArea
453
453
  */
454
454
  reserveAvatarOffset?: boolean;
455
455
  disabled?: boolean;
456
- /**
457
- * Placeholder shown while `disabled`, in the prompt's place — what the user
458
- * cannot do right now. Defaults to the connection-lost copy, which is what
459
- * `disabled` has meant so far (the ticket reply composer); a host that
460
- * disables the input for another reason says so here.
461
- */
462
- disabledPlaceholder?: string;
463
456
  maxRows?: number;
464
457
  showSendButton?: boolean;
465
458
  sendButtonLabel?: string;
@@ -535,27 +535,6 @@ export const MingoOnly: Story = {
535
535
  args: {},
536
536
  };
537
537
 
538
- /**
539
- * The host cannot serve a message — the tenant's AI balance is spent and the
540
- * agents are paused (Figma 954:28455). The panel reads as usual; the composer
541
- * keeps its place, says why it takes nothing, and its `+` and Send are inert.
542
- */
543
- export const ComposerLocked: Story = {
544
- render: args => (
545
- <EmbeddableChat
546
- {...args}
547
- modes={{
548
- mingo: createMockMingoConfig(),
549
- }}
550
- defaultActiveMode="mingo"
551
- defaultOpen
552
- showInternalTrigger={false}
553
- composerLock={{ placeholder: 'Mingo chat unavailable. Top up your balance.' }}
554
- />
555
- ),
556
- args: {},
557
- };
558
-
559
538
  // =============================================================================
560
539
  // 3. Both modes (toggle visible — openframe-frontend target)
561
540
  // =============================================================================