@flytedan/flytebot-design-system 0.91.0 → 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.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4756,6 +4756,8 @@ interface AgentChatPanelProps {
|
|
|
4756
4756
|
moreModels?: Model[];
|
|
4757
4757
|
/** The model menu's heading. Default "Models". */
|
|
4758
4758
|
modelsHeading?: string;
|
|
4759
|
+
/** What one model is called: the picker button's accessible name. Default "Model". */
|
|
4760
|
+
modelLabel?: string;
|
|
4759
4761
|
model?: string;
|
|
4760
4762
|
onModelChange?: (id: string) => void;
|
|
4761
4763
|
effortLevels?: string[];
|
|
@@ -4791,7 +4793,7 @@ interface AgentChatPanelProps {
|
|
|
4791
4793
|
* renders only when its input is supplied. A panel with no telemetry shows no
|
|
4792
4794
|
* telemetry, not zeroes.
|
|
4793
4795
|
*/
|
|
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;
|
|
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;
|
|
4795
4797
|
|
|
4796
4798
|
/**
|
|
4797
4799
|
* Staged files, the queue strip, the markdown editor, slash/mention triggers, send + stop.
|
|
@@ -4876,13 +4878,15 @@ interface ModelControlsProps {
|
|
|
4876
4878
|
moreModels?: Model[];
|
|
4877
4879
|
/** The menu's heading over the models: what they are called where the app uses them (sizes, say). */
|
|
4878
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;
|
|
4879
4883
|
narrow?: boolean;
|
|
4880
4884
|
}
|
|
4881
4885
|
/**
|
|
4882
4886
|
* Model picker (+ optional effort and fast-mode). Renders only when `models` is
|
|
4883
4887
|
* supplied. Shortcuts are hints; the app registers the real keys.
|
|
4884
4888
|
*/
|
|
4885
|
-
declare function ModelControls({ models, model, onModelChange, effortLevels, effort, onEffortChange, fastMode, onFastModeChange, fastModeLabel, moreModels, modelsHeading, 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;
|
|
4886
4890
|
|
|
4887
4891
|
/**
|
|
4888
4892
|
* Render context, built once by AgentChatPanel and threaded into every part.
|
package/dist/index.d.ts
CHANGED
|
@@ -4756,6 +4756,8 @@ interface AgentChatPanelProps {
|
|
|
4756
4756
|
moreModels?: Model[];
|
|
4757
4757
|
/** The model menu's heading. Default "Models". */
|
|
4758
4758
|
modelsHeading?: string;
|
|
4759
|
+
/** What one model is called: the picker button's accessible name. Default "Model". */
|
|
4760
|
+
modelLabel?: string;
|
|
4759
4761
|
model?: string;
|
|
4760
4762
|
onModelChange?: (id: string) => void;
|
|
4761
4763
|
effortLevels?: string[];
|
|
@@ -4791,7 +4793,7 @@ interface AgentChatPanelProps {
|
|
|
4791
4793
|
* renders only when its input is supplied. A panel with no telemetry shows no
|
|
4792
4794
|
* telemetry, not zeroes.
|
|
4793
4795
|
*/
|
|
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;
|
|
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;
|
|
4795
4797
|
|
|
4796
4798
|
/**
|
|
4797
4799
|
* Staged files, the queue strip, the markdown editor, slash/mention triggers, send + stop.
|
|
@@ -4876,13 +4878,15 @@ interface ModelControlsProps {
|
|
|
4876
4878
|
moreModels?: Model[];
|
|
4877
4879
|
/** The menu's heading over the models: what they are called where the app uses them (sizes, say). */
|
|
4878
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;
|
|
4879
4883
|
narrow?: boolean;
|
|
4880
4884
|
}
|
|
4881
4885
|
/**
|
|
4882
4886
|
* Model picker (+ optional effort and fast-mode). Renders only when `models` is
|
|
4883
4887
|
* supplied. Shortcuts are hints; the app registers the real keys.
|
|
4884
4888
|
*/
|
|
4885
|
-
declare function ModelControls({ models, model, onModelChange, effortLevels, effort, onEffortChange, fastMode, onFastModeChange, fastModeLabel, moreModels, modelsHeading, 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;
|
|
4886
4890
|
|
|
4887
4891
|
/**
|
|
4888
4892
|
* Render context, built once by AgentChatPanel and threaded into every part.
|
package/dist/index.js
CHANGED
|
@@ -14495,6 +14495,7 @@ function ModelControls({
|
|
|
14495
14495
|
fastModeLabel = "Enable fast mode",
|
|
14496
14496
|
moreModels,
|
|
14497
14497
|
modelsHeading = "Models",
|
|
14498
|
+
modelLabel = "Model",
|
|
14498
14499
|
narrow: _narrow
|
|
14499
14500
|
}) {
|
|
14500
14501
|
if (!models || !models.length) return null;
|
|
@@ -14542,9 +14543,9 @@ function ModelControls({
|
|
|
14542
14543
|
items,
|
|
14543
14544
|
placement: "top-end",
|
|
14544
14545
|
minWidth: 252,
|
|
14545
|
-
ariaLabel:
|
|
14546
|
-
label: current2 ? current2.label :
|
|
14547
|
-
title:
|
|
14546
|
+
ariaLabel: modelLabel,
|
|
14547
|
+
label: current2 ? current2.label : modelLabel,
|
|
14548
|
+
title: `Choose a ${modelLabel.toLowerCase()}`
|
|
14548
14549
|
}
|
|
14549
14550
|
),
|
|
14550
14551
|
effortLevels && effortLevels.length ? /* @__PURE__ */ jsx111(
|
|
@@ -14636,6 +14637,7 @@ function AgentChatPanel({
|
|
|
14636
14637
|
onFastModeChange,
|
|
14637
14638
|
moreModels,
|
|
14638
14639
|
modelsHeading,
|
|
14640
|
+
modelLabel,
|
|
14639
14641
|
/* threads */
|
|
14640
14642
|
threads,
|
|
14641
14643
|
onSelectThread,
|
|
@@ -14736,6 +14738,7 @@ function AgentChatPanel({
|
|
|
14736
14738
|
onFastModeChange,
|
|
14737
14739
|
moreModels,
|
|
14738
14740
|
modelsHeading,
|
|
14741
|
+
modelLabel,
|
|
14739
14742
|
narrow
|
|
14740
14743
|
}
|
|
14741
14744
|
);
|