@flytedan/flytebot-design-system 0.90.1 → 0.91.0

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/index.d.cts CHANGED
@@ -4754,6 +4754,8 @@ interface AgentChatPanelProps {
4754
4754
  usageLimits?: UsageLimit[];
4755
4755
  models?: Model[];
4756
4756
  moreModels?: Model[];
4757
+ /** The model menu's heading. Default "Models". */
4758
+ modelsHeading?: string;
4757
4759
  model?: string;
4758
4760
  onModelChange?: (id: string) => void;
4759
4761
  effortLevels?: string[];
@@ -4789,7 +4791,7 @@ interface AgentChatPanelProps {
4789
4791
  * renders only when its input is supplied. A panel with no telemetry shows no
4790
4792
  * telemetry, not zeroes.
4791
4793
  */
4792
- declare function AgentChatPanel({ contextType, contextId, draftOwner, apiAdapter, threadId, reloadKey, title, subtitle, showHeader, headerActions, onClose, assistantName, userName, assistantAvatar, userAvatar, assistantIcon, showAvatars, markdown, maxVisibleChars, messageActions, showSteps, showThinking, emptyTitle, emptyDescription, emptyIcon, suggestions, renderEmpty, packetSchemas, packetRenderers, packetDecisions, onApplyPacket, pendingTimeoutMs, describeWaiting, onOpenAttachment, errorCopy, placeholder, maxLength, hint, fileUploadHandler, acceptFiles, maxFileSize, largePasteThreshold, slashCommands, mentionSources, voiceHandler, initialMessage, contextUsage, sessionStats, usageLimits, models, model, onModelChange, effortLevels, effort, onEffortChange, fastMode, onFastModeChange, moreModels, threads, onSelectThread, onNewThread, onDeleteThread, surface, height, className, style, onPacket, onThreadReady, onError, onSend, onClear, onFeedback, onEditMessage, }: AgentChatPanelProps): React.JSX.Element;
4794
+ declare function AgentChatPanel({ contextType, contextId, draftOwner, apiAdapter, threadId, reloadKey, title, subtitle, showHeader, headerActions, onClose, assistantName, userName, assistantAvatar, userAvatar, assistantIcon, showAvatars, markdown, maxVisibleChars, messageActions, showSteps, showThinking, emptyTitle, emptyDescription, emptyIcon, suggestions, renderEmpty, packetSchemas, packetRenderers, packetDecisions, onApplyPacket, pendingTimeoutMs, describeWaiting, onOpenAttachment, errorCopy, placeholder, maxLength, hint, fileUploadHandler, acceptFiles, maxFileSize, largePasteThreshold, slashCommands, mentionSources, voiceHandler, initialMessage, contextUsage, sessionStats, usageLimits, models, model, onModelChange, effortLevels, effort, onEffortChange, fastMode, onFastModeChange, moreModels, modelsHeading, threads, onSelectThread, onNewThread, onDeleteThread, surface, height, className, style, onPacket, onThreadReady, onError, onSend, onClear, onFeedback, onEditMessage, }: AgentChatPanelProps): React.JSX.Element;
4793
4795
 
4794
4796
  /**
4795
4797
  * Staged files, the queue strip, the markdown editor, slash/mention triggers, send + stop.
@@ -4872,13 +4874,15 @@ interface ModelControlsProps {
4872
4874
  fastModeLabel?: string;
4873
4875
  /** Collapsed into a submenu. */
4874
4876
  moreModels?: Model[];
4877
+ /** The menu's heading over the models: what they are called where the app uses them (sizes, say). */
4878
+ modelsHeading?: string;
4875
4879
  narrow?: boolean;
4876
4880
  }
4877
4881
  /**
4878
4882
  * Model picker (+ optional effort and fast-mode). Renders only when `models` is
4879
4883
  * supplied. Shortcuts are hints; the app registers the real keys.
4880
4884
  */
4881
- declare function ModelControls({ models, model, onModelChange, effortLevels, effort, onEffortChange, fastMode, onFastModeChange, fastModeLabel, moreModels, narrow: _narrow, }: ModelControlsProps): React.JSX.Element | null;
4885
+ declare function ModelControls({ models, model, onModelChange, effortLevels, effort, onEffortChange, fastMode, onFastModeChange, fastModeLabel, moreModels, modelsHeading, narrow: _narrow, }: ModelControlsProps): React.JSX.Element | null;
4882
4886
 
4883
4887
  /**
4884
4888
  * Render context, built once by AgentChatPanel and threaded into every part.
package/dist/index.d.ts CHANGED
@@ -4754,6 +4754,8 @@ interface AgentChatPanelProps {
4754
4754
  usageLimits?: UsageLimit[];
4755
4755
  models?: Model[];
4756
4756
  moreModels?: Model[];
4757
+ /** The model menu's heading. Default "Models". */
4758
+ modelsHeading?: string;
4757
4759
  model?: string;
4758
4760
  onModelChange?: (id: string) => void;
4759
4761
  effortLevels?: string[];
@@ -4789,7 +4791,7 @@ interface AgentChatPanelProps {
4789
4791
  * renders only when its input is supplied. A panel with no telemetry shows no
4790
4792
  * telemetry, not zeroes.
4791
4793
  */
4792
- declare function AgentChatPanel({ contextType, contextId, draftOwner, apiAdapter, threadId, reloadKey, title, subtitle, showHeader, headerActions, onClose, assistantName, userName, assistantAvatar, userAvatar, assistantIcon, showAvatars, markdown, maxVisibleChars, messageActions, showSteps, showThinking, emptyTitle, emptyDescription, emptyIcon, suggestions, renderEmpty, packetSchemas, packetRenderers, packetDecisions, onApplyPacket, pendingTimeoutMs, describeWaiting, onOpenAttachment, errorCopy, placeholder, maxLength, hint, fileUploadHandler, acceptFiles, maxFileSize, largePasteThreshold, slashCommands, mentionSources, voiceHandler, initialMessage, contextUsage, sessionStats, usageLimits, models, model, onModelChange, effortLevels, effort, onEffortChange, fastMode, onFastModeChange, moreModels, threads, onSelectThread, onNewThread, onDeleteThread, surface, height, className, style, onPacket, onThreadReady, onError, onSend, onClear, onFeedback, onEditMessage, }: AgentChatPanelProps): React.JSX.Element;
4794
+ declare function AgentChatPanel({ contextType, contextId, draftOwner, apiAdapter, threadId, reloadKey, title, subtitle, showHeader, headerActions, onClose, assistantName, userName, assistantAvatar, userAvatar, assistantIcon, showAvatars, markdown, maxVisibleChars, messageActions, showSteps, showThinking, emptyTitle, emptyDescription, emptyIcon, suggestions, renderEmpty, packetSchemas, packetRenderers, packetDecisions, onApplyPacket, pendingTimeoutMs, describeWaiting, onOpenAttachment, errorCopy, placeholder, maxLength, hint, fileUploadHandler, acceptFiles, maxFileSize, largePasteThreshold, slashCommands, mentionSources, voiceHandler, initialMessage, contextUsage, sessionStats, usageLimits, models, model, onModelChange, effortLevels, effort, onEffortChange, fastMode, onFastModeChange, moreModels, modelsHeading, threads, onSelectThread, onNewThread, onDeleteThread, surface, height, className, style, onPacket, onThreadReady, onError, onSend, onClear, onFeedback, onEditMessage, }: AgentChatPanelProps): React.JSX.Element;
4793
4795
 
4794
4796
  /**
4795
4797
  * Staged files, the queue strip, the markdown editor, slash/mention triggers, send + stop.
@@ -4872,13 +4874,15 @@ interface ModelControlsProps {
4872
4874
  fastModeLabel?: string;
4873
4875
  /** Collapsed into a submenu. */
4874
4876
  moreModels?: Model[];
4877
+ /** The menu's heading over the models: what they are called where the app uses them (sizes, say). */
4878
+ modelsHeading?: string;
4875
4879
  narrow?: boolean;
4876
4880
  }
4877
4881
  /**
4878
4882
  * Model picker (+ optional effort and fast-mode). Renders only when `models` is
4879
4883
  * supplied. Shortcuts are hints; the app registers the real keys.
4880
4884
  */
4881
- declare function ModelControls({ models, model, onModelChange, effortLevels, effort, onEffortChange, fastMode, onFastModeChange, fastModeLabel, moreModels, narrow: _narrow, }: ModelControlsProps): React.JSX.Element | null;
4885
+ declare function ModelControls({ models, model, onModelChange, effortLevels, effort, onEffortChange, fastMode, onFastModeChange, fastModeLabel, moreModels, modelsHeading, narrow: _narrow, }: ModelControlsProps): React.JSX.Element | null;
4882
4886
 
4883
4887
  /**
4884
4888
  * Render context, built once by AgentChatPanel and threaded into every part.
package/dist/index.js CHANGED
@@ -14494,6 +14494,7 @@ function ModelControls({
14494
14494
  onFastModeChange,
14495
14495
  fastModeLabel = "Enable fast mode",
14496
14496
  moreModels,
14497
+ modelsHeading = "Models",
14497
14498
  narrow: _narrow
14498
14499
  }) {
14499
14500
  if (!models || !models.length) return null;
@@ -14517,7 +14518,7 @@ function ModelControls({
14517
14518
  shortcut: m.shortcut ? /* @__PURE__ */ jsx111(KeyHint, { keys: m.shortcut, size: "sm" }) : void 0,
14518
14519
  onSelect: () => onModelChange && onModelChange(m.id)
14519
14520
  });
14520
- const items = [{ kind: "section", label: "Models" }].concat(flat.map(item2));
14521
+ const items = [{ kind: "section", label: modelsHeading }].concat(flat.map(item2));
14521
14522
  Object.keys(grouped).forEach((g) => {
14522
14523
  items.push({ id: "grp_" + g, label: g, icon: "stack", submenu: grouped[g].map(item2) });
14523
14524
  });
@@ -14634,6 +14635,7 @@ function AgentChatPanel({
14634
14635
  fastMode,
14635
14636
  onFastModeChange,
14636
14637
  moreModels,
14638
+ modelsHeading,
14637
14639
  /* threads */
14638
14640
  threads,
14639
14641
  onSelectThread,
@@ -14733,6 +14735,7 @@ function AgentChatPanel({
14733
14735
  fastMode,
14734
14736
  onFastModeChange,
14735
14737
  moreModels,
14738
+ modelsHeading,
14736
14739
  narrow
14737
14740
  }
14738
14741
  );