@flytedan/flytebot-design-system 0.90.1 → 0.92.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,10 @@ 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;
4759
+ /** What one model is called: the picker button's accessible name. Default "Model". */
4760
+ modelLabel?: string;
4757
4761
  model?: string;
4758
4762
  onModelChange?: (id: string) => void;
4759
4763
  effortLevels?: string[];
@@ -4789,7 +4793,7 @@ interface AgentChatPanelProps {
4789
4793
  * renders only when its input is supplied. A panel with no telemetry shows no
4790
4794
  * telemetry, not zeroes.
4791
4795
  */
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;
4796
+ 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, modelLabel, threads, onSelectThread, onNewThread, onDeleteThread, surface, height, className, style, onPacket, onThreadReady, onError, onSend, onClear, onFeedback, onEditMessage, }: AgentChatPanelProps): React.JSX.Element;
4793
4797
 
4794
4798
  /**
4795
4799
  * Staged files, the queue strip, the markdown editor, slash/mention triggers, send + stop.
@@ -4872,13 +4876,17 @@ interface ModelControlsProps {
4872
4876
  fastModeLabel?: string;
4873
4877
  /** Collapsed into a submenu. */
4874
4878
  moreModels?: Model[];
4879
+ /** The menu's heading over the models: what they are called where the app uses them (sizes, say). */
4880
+ modelsHeading?: string;
4881
+ /** What one model is called: the picker button's accessible name, and its tooltip "Choose a <label>". Default "Model". */
4882
+ modelLabel?: string;
4875
4883
  narrow?: boolean;
4876
4884
  }
4877
4885
  /**
4878
4886
  * Model picker (+ optional effort and fast-mode). Renders only when `models` is
4879
4887
  * supplied. Shortcuts are hints; the app registers the real keys.
4880
4888
  */
4881
- declare function ModelControls({ models, model, onModelChange, effortLevels, effort, onEffortChange, fastMode, onFastModeChange, fastModeLabel, moreModels, narrow: _narrow, }: ModelControlsProps): React.JSX.Element | null;
4889
+ declare function ModelControls({ models, model, onModelChange, effortLevels, effort, onEffortChange, fastMode, onFastModeChange, fastModeLabel, moreModels, modelsHeading, modelLabel, narrow: _narrow, }: ModelControlsProps): React.JSX.Element | null;
4882
4890
 
4883
4891
  /**
4884
4892
  * Render context, built once by AgentChatPanel and threaded into every part.
package/dist/index.d.ts CHANGED
@@ -4754,6 +4754,10 @@ 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;
4759
+ /** What one model is called: the picker button's accessible name. Default "Model". */
4760
+ modelLabel?: string;
4757
4761
  model?: string;
4758
4762
  onModelChange?: (id: string) => void;
4759
4763
  effortLevels?: string[];
@@ -4789,7 +4793,7 @@ interface AgentChatPanelProps {
4789
4793
  * renders only when its input is supplied. A panel with no telemetry shows no
4790
4794
  * telemetry, not zeroes.
4791
4795
  */
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;
4796
+ 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, modelLabel, threads, onSelectThread, onNewThread, onDeleteThread, surface, height, className, style, onPacket, onThreadReady, onError, onSend, onClear, onFeedback, onEditMessage, }: AgentChatPanelProps): React.JSX.Element;
4793
4797
 
4794
4798
  /**
4795
4799
  * Staged files, the queue strip, the markdown editor, slash/mention triggers, send + stop.
@@ -4872,13 +4876,17 @@ interface ModelControlsProps {
4872
4876
  fastModeLabel?: string;
4873
4877
  /** Collapsed into a submenu. */
4874
4878
  moreModels?: Model[];
4879
+ /** The menu's heading over the models: what they are called where the app uses them (sizes, say). */
4880
+ modelsHeading?: string;
4881
+ /** What one model is called: the picker button's accessible name, and its tooltip "Choose a <label>". Default "Model". */
4882
+ modelLabel?: string;
4875
4883
  narrow?: boolean;
4876
4884
  }
4877
4885
  /**
4878
4886
  * Model picker (+ optional effort and fast-mode). Renders only when `models` is
4879
4887
  * supplied. Shortcuts are hints; the app registers the real keys.
4880
4888
  */
4881
- declare function ModelControls({ models, model, onModelChange, effortLevels, effort, onEffortChange, fastMode, onFastModeChange, fastModeLabel, moreModels, narrow: _narrow, }: ModelControlsProps): React.JSX.Element | null;
4889
+ declare function ModelControls({ models, model, onModelChange, effortLevels, effort, onEffortChange, fastMode, onFastModeChange, fastModeLabel, moreModels, modelsHeading, modelLabel, narrow: _narrow, }: ModelControlsProps): React.JSX.Element | null;
4882
4890
 
4883
4891
  /**
4884
4892
  * Render context, built once by AgentChatPanel and threaded into every part.
package/dist/index.js CHANGED
@@ -14494,6 +14494,8 @@ function ModelControls({
14494
14494
  onFastModeChange,
14495
14495
  fastModeLabel = "Enable fast mode",
14496
14496
  moreModels,
14497
+ modelsHeading = "Models",
14498
+ modelLabel = "Model",
14497
14499
  narrow: _narrow
14498
14500
  }) {
14499
14501
  if (!models || !models.length) return null;
@@ -14517,7 +14519,7 @@ function ModelControls({
14517
14519
  shortcut: m.shortcut ? /* @__PURE__ */ jsx111(KeyHint, { keys: m.shortcut, size: "sm" }) : void 0,
14518
14520
  onSelect: () => onModelChange && onModelChange(m.id)
14519
14521
  });
14520
- const items = [{ kind: "section", label: "Models" }].concat(flat.map(item2));
14522
+ const items = [{ kind: "section", label: modelsHeading }].concat(flat.map(item2));
14521
14523
  Object.keys(grouped).forEach((g) => {
14522
14524
  items.push({ id: "grp_" + g, label: g, icon: "stack", submenu: grouped[g].map(item2) });
14523
14525
  });
@@ -14541,9 +14543,9 @@ function ModelControls({
14541
14543
  items,
14542
14544
  placement: "top-end",
14543
14545
  minWidth: 252,
14544
- ariaLabel: "Model",
14545
- label: current2 ? current2.label : "Model",
14546
- title: "Choose a model"
14546
+ ariaLabel: modelLabel,
14547
+ label: current2 ? current2.label : modelLabel,
14548
+ title: `Choose a ${modelLabel.toLowerCase()}`
14547
14549
  }
14548
14550
  ),
14549
14551
  effortLevels && effortLevels.length ? /* @__PURE__ */ jsx111(
@@ -14634,6 +14636,8 @@ function AgentChatPanel({
14634
14636
  fastMode,
14635
14637
  onFastModeChange,
14636
14638
  moreModels,
14639
+ modelsHeading,
14640
+ modelLabel,
14637
14641
  /* threads */
14638
14642
  threads,
14639
14643
  onSelectThread,
@@ -14733,6 +14737,8 @@ function AgentChatPanel({
14733
14737
  fastMode,
14734
14738
  onFastModeChange,
14735
14739
  moreModels,
14740
+ modelsHeading,
14741
+ modelLabel,
14736
14742
  narrow
14737
14743
  }
14738
14744
  );