@bikdotai/bik-component-library 0.0.864 → 0.0.865-beta.1
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/cjs/components/agent-builder/AgentBuilder.js +1 -1
- package/dist/cjs/components/agent-builder/AgentBuilder.js.map +1 -1
- package/dist/cjs/components/agent-builder/AgentBuilder.styled.js +54 -44
- package/dist/cjs/components/agent-builder/AgentBuilder.styled.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/AgentStateModal.js +2 -0
- package/dist/cjs/components/agent-builder/components/AgentStateModal.js.map +1 -0
- package/dist/cjs/components/agent-builder/components/MentionPicker.js +1 -1
- package/dist/cjs/components/agent-builder/components/MentionPicker.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/SelectableListSection.js +1 -1
- package/dist/cjs/components/agent-builder/components/SelectableListSection.js.map +1 -1
- package/dist/cjs/components/agent-builder/context/AgentBuilderContext.js +1 -1
- package/dist/cjs/components/agent-builder/context/AgentBuilderContext.js.map +1 -1
- package/dist/cjs/components/agent-builder/steps/Step2WhenItStepsIn.js +1 -1
- package/dist/cjs/components/agent-builder/steps/Step2WhenItStepsIn.js.map +1 -1
- package/dist/cjs/components/agent-listing/AgentTableRow.js +1 -1
- package/dist/cjs/components/agent-listing/AgentTableRow.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/components/agent-builder/AgentBuilder.js +3 -3
- package/dist/esm/components/agent-builder/AgentBuilder.js.map +1 -1
- package/dist/esm/components/agent-builder/AgentBuilder.styled.d.ts +23 -0
- package/dist/esm/components/agent-builder/AgentBuilder.styled.js +99 -86
- package/dist/esm/components/agent-builder/AgentBuilder.styled.js.map +1 -1
- package/dist/esm/components/agent-builder/components/AgentStateModal.d.ts +47 -0
- package/dist/esm/components/agent-builder/components/AgentStateModal.js +82 -0
- package/dist/esm/components/agent-builder/components/AgentStateModal.js.map +1 -0
- package/dist/esm/components/agent-builder/components/MentionPicker.js +27 -27
- package/dist/esm/components/agent-builder/components/MentionPicker.js.map +1 -1
- package/dist/esm/components/agent-builder/components/SelectableListSection.js +22 -29
- package/dist/esm/components/agent-builder/components/SelectableListSection.js.map +1 -1
- package/dist/esm/components/agent-builder/context/AgentBuilderContext.js +132 -124
- package/dist/esm/components/agent-builder/context/AgentBuilderContext.js.map +1 -1
- package/dist/esm/components/agent-builder/index.d.ts +2 -0
- package/dist/esm/components/agent-builder/steps/Step2WhenItStepsIn.js +13 -15
- package/dist/esm/components/agent-builder/steps/Step2WhenItStepsIn.js.map +1 -1
- package/dist/esm/components/agent-listing/AgentTableRow.js +71 -38
- package/dist/esm/components/agent-listing/AgentTableRow.js.map +1 -1
- package/dist/esm/index.js +549 -547
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -87,7 +87,7 @@ const Ie = () => {
|
|
|
87
87
|
}, [n, p]), G = t(async () => {
|
|
88
88
|
n("onSaveDraftAndLeave");
|
|
89
89
|
const e = s();
|
|
90
|
-
if (e && typeof e.then == "function") {
|
|
90
|
+
if (c(!1), e && typeof e.then == "function") {
|
|
91
91
|
w(!0);
|
|
92
92
|
try {
|
|
93
93
|
await e;
|
|
@@ -95,7 +95,7 @@ const Ie = () => {
|
|
|
95
95
|
w(!1);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
|
|
98
|
+
f?.();
|
|
99
99
|
}, [n, s, f]), ie = t(async () => {
|
|
100
100
|
n("onTestAgent");
|
|
101
101
|
const e = g?.();
|
|
@@ -116,7 +116,7 @@ const Ie = () => {
|
|
|
116
116
|
n("onGoLiveConfirm");
|
|
117
117
|
const e = oe();
|
|
118
118
|
if (e && typeof e.then == "function") {
|
|
119
|
-
y(!0);
|
|
119
|
+
a(null), y(!0);
|
|
120
120
|
try {
|
|
121
121
|
await e, a("success");
|
|
122
122
|
} finally {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentBuilder.js","sources":["../../../../src/components/agent-builder/AgentBuilder.tsx"],"sourcesContent":["import React, { useCallback, useState } from 'react';\nimport { Spinner } from '@src/components/spinner';\nimport { COLORS } from '@src/constants/Theme';\nimport {\n\tAgentBuilderProps,\n\tAgentValue,\n\tSubAgentDraft,\n} from './AgentBuilder.model';\nimport {\n\tBuilderRoot,\n\tContent,\n\tContentCard,\n\tMain,\n\tRail,\n\tStepScroll,\n} from './AgentBuilder.styled';\nimport { AgentBuilderFooter } from './components/AgentBuilderFooter';\nimport { AgentBuilderTopBar } from './components/AgentBuilderTopBar';\nimport { DiscardModal } from './components/DiscardModal';\nimport { GoLiveModal, GoLiveModalMode } from './components/GoLiveModal';\nimport { StepRail } from './components/StepRail';\nimport { UndoToast } from './components/UndoToast';\nimport {\n\tAgentBuilderProvider,\n\tuseAgentBuilderContext,\n} from './context/AgentBuilderContext';\nimport { Step1About } from './steps/Step1About';\nimport { Step2WhenItStepsIn } from './steps/Step2WhenItStepsIn';\nimport { Step3HowItResponds } from './steps/Step3HowItResponds';\nimport { Step4HandoverRules } from './steps/Step4HandoverRules';\n\nconst StepContent: React.FC = () => {\n\tconst { activeStep } = useAgentBuilderContext();\n\tswitch (activeStep) {\n\t\tcase 'about':\n\t\t\treturn <Step1About />;\n\t\tcase 'trigger':\n\t\t\treturn <Step2WhenItStepsIn />;\n\t\tcase 'response':\n\t\t\treturn <Step3HowItResponds />;\n\t\tcase 'handover':\n\t\t\treturn <Step4HandoverRules />;\n\t\tdefault:\n\t\t\treturn null;\n\t}\n};\n\n/**\n * 4-step creation/edit wizard body for an AI agent. Presentational and\n * controlled — the consumer owns the `value`, persistence and routing.\n *\n * @example\n * <AgentBuilder\n * value={agent}\n * onChange={(patch) => setAgent({ ...agent, ...patch })}\n * availableTools={tools}\n * availableSubAgents={subAgents}\n * onDiscard={() => router.back()}\n * onSaveDraft={saveDraft}\n * onPublish={publish}\n * />\n */\nexport const AgentBuilder: React.FC<AgentBuilderProps> = (props) => {\n\tconst {\n\t\tconfig,\n\t\tonChange,\n\t\tonStepChange,\n\t\tonDiscard,\n\t\tonSaveDraft,\n\t\tonPublish,\n\t\tonBack,\n\t\tonTestAgent,\n\t\tonGoToDashboard,\n\t\tonCreateSubAgent,\n\t\tonFetchSubAgent,\n\t\tonUpdateSubAgent,\n\t\tonImproveSubAgent,\n\t\tonImproveToolInstructions,\n\t\tonConnectIntegration,\n\t\t...rest\n\t} = props;\n\tconst {\n\t\tvalue,\n\t\tactiveStep,\n\t\tavailableTools,\n\t\tavailableSubAgents,\n\t\tavailableIntents = [],\n\t\tavailableModels = [],\n\t\tconfigToolTemplates,\n\t\tintegrationStatus,\n\t\tvariablesData,\n\t\tvalidation,\n\t\tapplicationType,\n\t\tcharLimits,\n\t\tisSaving,\n\t\tisPublishing,\n\t\tisLoading,\n\t\tfooterHint = 'Changes don’t affect customers until you go live',\n\t\tdisableStepNavigation,\n\t\tdebugLog,\n\t} = config;\n\n\tconst [modalMode, setModalMode] = useState<GoLiveModalMode>(null);\n\tconst [publishingLocal, setPublishingLocal] = useState(false);\n\t// True while onTestAgent's async work (e.g. save-as-draft before the test\n\t// modal opens) is in flight — loads + disables the Test agent button.\n\tconst [testingLocal, setTestingLocal] = useState(false);\n\t// Back was pressed → confirm leaving (save draft / discard) before navigating.\n\tconst [showLeaveConfirm, setShowLeaveConfirm] = useState(false);\n\tconst [savingAndLeaving, setSavingAndLeaving] = useState(false);\n\n\t// Gated debug logging: each handler logs at its start only when `debugLog`.\n\tconst logAction = useCallback(\n\t\t(action: string, ...args: unknown[]) => {\n\t\t\tif (debugLog) {\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.log(`[AgentBuilder] ${action}`, ...args);\n\t\t\t}\n\t\t},\n\t\t[debugLog],\n\t);\n\n\tconst handleChange = useCallback(\n\t\t(patch: Partial<AgentValue>) => {\n\t\t\tlogAction('onChange', patch);\n\t\t\tonChange(patch);\n\t\t},\n\t\t[logAction, onChange],\n\t);\n\tconst handleStepChange = useCallback(\n\t\t(step: Parameters<NonNullable<typeof onStepChange>>[0]) => {\n\t\t\tlogAction('onStepChange', step);\n\t\t\tonStepChange?.(step);\n\t\t},\n\t\t[logAction, onStepChange],\n\t);\n\tconst handleSaveDraft = useCallback(() => {\n\t\tlogAction('onSaveDraft');\n\t\treturn onSaveDraft();\n\t}, [logAction, onSaveDraft]);\n\tconst handlePublish = useCallback(() => {\n\t\tlogAction('onPublish');\n\t\treturn onPublish();\n\t}, [logAction, onPublish]);\n\t// Back opens the \"Save as draft?\" confirmation rather than leaving directly.\n\tconst handleBack = useCallback(() => {\n\t\tlogAction('onBack');\n\t\tsetShowLeaveConfirm(true);\n\t}, [logAction]);\n\n\t// Modal \"Discard\" defers to the parent's discard handler (same as the top bar).\n\tconst handleDiscardAndLeave = useCallback(() => {\n\t\tlogAction('onDiscardAndLeave');\n\t\tsetShowLeaveConfirm(false);\n\t\tonDiscard();\n\t}, [logAction, onDiscard]);\n\n\tconst handleSaveDraftAndLeave = useCallback(async () => {\n\t\tlogAction('onSaveDraftAndLeave');\n\t\tconst result = onSaveDraft();\n\t\tif (result && typeof (result as Promise<void>).then === 'function') {\n\t\t\tsetSavingAndLeaving(true);\n\t\t\ttry {\n\t\t\t\tawait result;\n\t\t\t} finally {\n\t\t\t\tsetSavingAndLeaving(false);\n\t\t\t}\n\t\t}\n\t\tsetShowLeaveConfirm(false);\n\t\tonBack?.();\n\t}, [logAction, onSaveDraft, onBack]);\n\tconst handleTestAgent = useCallback(async () => {\n\t\tlogAction('onTestAgent');\n\t\tconst result = onTestAgent?.();\n\t\t// A new agent saves as draft before the test modal opens — that's slow, so\n\t\t// disable + load the button until it settles (prevents double-triggering).\n\t\tif (result && typeof (result as Promise<void>).then === 'function') {\n\t\t\tsetTestingLocal(true);\n\t\t\ttry {\n\t\t\t\tawait result;\n\t\t\t} finally {\n\t\t\t\tsetTestingLocal(false);\n\t\t\t}\n\t\t}\n\t}, [logAction, onTestAgent]);\n\tconst handleGoToDashboard = useCallback(() => {\n\t\tlogAction('onGoToDashboard');\n\t\tonGoToDashboard?.();\n\t}, [logAction, onGoToDashboard]);\n\tconst handleCreateSubAgent = useCallback(\n\t\t(draft: SubAgentDraft) => {\n\t\t\tlogAction('onCreateSubAgent', draft);\n\t\t\treturn onCreateSubAgent\n\t\t\t\t? onCreateSubAgent(draft)\n\t\t\t\t: Promise.reject(new Error('onCreateSubAgent not provided'));\n\t\t},\n\t\t[logAction, onCreateSubAgent],\n\t);\n\n\tconst handleConfirmGoLive = async () => {\n\t\tlogAction('onGoLiveConfirm');\n\t\tconst result = handlePublish();\n\t\tif (result && typeof (result as Promise<void>).then === 'function') {\n\t\t\tsetPublishingLocal(true);\n\t\t\ttry {\n\t\t\t\tawait result;\n\t\t\t\tsetModalMode('success');\n\t\t\t} finally {\n\t\t\t\tsetPublishingLocal(false);\n\t\t\t}\n\t\t} else {\n\t\t\tsetModalMode('success');\n\t\t}\n\t};\n\n\treturn (\n\t\t<AgentBuilderProvider\n\t\t\tvalue={value}\n\t\t\tonChange={handleChange}\n\t\t\tactiveStep={activeStep}\n\t\t\tonStepChange={onStepChange ? handleStepChange : undefined}\n\t\t\tavailableTools={availableTools}\n\t\t\tavailableSubAgents={availableSubAgents}\n\t\t\tavailableIntents={availableIntents}\n\t\t\tavailableModels={availableModels}\n\t\t\tconfigToolTemplates={configToolTemplates}\n\t\t\tintegrationStatus={integrationStatus}\n\t\t\tonConnectIntegration={onConnectIntegration}\n\t\t\tvariablesData={variablesData}\n\t\t\tvalidation={validation}\n\t\t\tapplicationType={applicationType}\n\t\t\tcharLimits={charLimits}\n\t\t\tdisableStepNavigation={disableStepNavigation}\n\t\t\tonCreateSubAgent={onCreateSubAgent ? handleCreateSubAgent : undefined}\n\t\t\tonFetchSubAgent={onFetchSubAgent}\n\t\t\tonUpdateSubAgent={onUpdateSubAgent}\n\t\t\tonImproveSubAgent={onImproveSubAgent}\n\t\t\tonImproveToolInstructions={onImproveToolInstructions}\n\t\t>\n\t\t\t<BuilderRoot data-test={rest['data-test'] ?? 'agent-builder'}>\n\t\t\t\t<AgentBuilderTopBar\n\t\t\t\t\tname={value.name}\n\t\t\t\t\tstatus={value.status}\n\t\t\t\t\tonBack={onBack ? handleBack : undefined}\n\t\t\t\t\tonSaveDraft={handleSaveDraftAndLeave}\n\t\t\t\t\tisSaving={isSaving || savingAndLeaving}\n\t\t\t\t/>\n\n\t\t\t\t<Main>\n\t\t\t\t\t<Rail>\n\t\t\t\t\t\t<StepRail />\n\t\t\t\t\t</Rail>\n\t\t\t\t\t<Content>\n\t\t\t\t\t\t{isLoading ? (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Spinner size=\"large\" color={COLORS.stroke.brand} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<ContentCard>\n\t\t\t\t\t\t\t\t<StepScroll>\n\t\t\t\t\t\t\t\t\t<StepContent />\n\t\t\t\t\t\t\t\t</StepScroll>\n\t\t\t\t\t\t\t\t<AgentBuilderFooter\n\t\t\t\t\t\t\t\t\tfooterHint={footerHint}\n\t\t\t\t\t\t\t\t\tonTestAgent={onTestAgent ? handleTestAgent : undefined}\n\t\t\t\t\t\t\t\t\tisTesting={testingLocal}\n\t\t\t\t\t\t\t\t\tonGoLive={() => {\n\t\t\t\t\t\t\t\t\t\tlogAction('onGoLive');\n\t\t\t\t\t\t\t\t\t\tsetModalMode('confirm');\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\tisPublishing={isPublishing || publishingLocal}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</ContentCard>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Content>\n\t\t\t\t</Main>\n\n\t\t\t\t<GoLiveModal\n\t\t\t\t\tmode={modalMode}\n\t\t\t\t\tonClose={() => {\n\t\t\t\t\t\tconst wasSuccess = modalMode === 'success';\n\t\t\t\t\t\tsetModalMode(null);\n\t\t\t\t\t\tif (wasSuccess) {\n\t\t\t\t\t\t\thandleGoToDashboard();\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t\tonConfirm={handleConfirmGoLive}\n\t\t\t\t\tonSaveDraft={() => {\n\t\t\t\t\t\tsetModalMode(null);\n\t\t\t\t\t\thandleSaveDraft();\n\t\t\t\t\t}}\n\t\t\t\t\tonGoToDashboard={onGoToDashboard ? handleGoToDashboard : undefined}\n\t\t\t\t\tisPublishing={isPublishing || publishingLocal}\n\t\t\t\t/>\n\n\t\t\t\t<DiscardModal\n\t\t\t\t\topen={showLeaveConfirm}\n\t\t\t\t\tonClose={() => setShowLeaveConfirm(false)}\n\t\t\t\t\tonDiscard={handleDiscardAndLeave}\n\t\t\t\t\tonSaveDraft={handleSaveDraftAndLeave}\n\t\t\t\t\tdisableSaveDraft={!value.name.trim()}\n\t\t\t\t\tisSaving={isSaving || savingAndLeaving}\n\t\t\t\t/>\n\n\t\t\t\t<UndoToast />\n\t\t\t</BuilderRoot>\n\t\t</AgentBuilderProvider>\n\t);\n};\n\nAgentBuilder.displayName = 'AgentBuilder';\n"],"names":["StepContent","activeStep","useAgentBuilderContext","Step1About","Step2WhenItStepsIn","Step3HowItResponds","Step4HandoverRules","AgentBuilder","props","config","onChange","onStepChange","onDiscard","onSaveDraft","onPublish","onBack","onTestAgent","onGoToDashboard","onCreateSubAgent","onFetchSubAgent","onUpdateSubAgent","onImproveSubAgent","onImproveToolInstructions","onConnectIntegration","rest","value","availableTools","availableSubAgents","availableIntents","availableModels","configToolTemplates","integrationStatus","variablesData","validation","applicationType","charLimits","isSaving","isPublishing","isLoading","footerHint","disableStepNavigation","debugLog","modalMode","setModalMode","useState","publishingLocal","setPublishingLocal","testingLocal","setTestingLocal","showLeaveConfirm","setShowLeaveConfirm","savingAndLeaving","setSavingAndLeaving","logAction","useCallback","action","args","handleChange","patch","handleStepChange","step","handleSaveDraft","handlePublish","handleBack","handleDiscardAndLeave","handleSaveDraftAndLeave","result","handleTestAgent","handleGoToDashboard","handleCreateSubAgent","draft","handleConfirmGoLive","jsx","AgentBuilderProvider","BuilderRoot","AgentBuilderTopBar","Main","Rail","StepRail","Content","Spinner","COLORS","ContentCard","StepScroll","AgentBuilderFooter","GoLiveModal","wasSuccess","DiscardModal","UndoToast"],"mappings":";;;;;;;;;;;;;;;;AA+BA,MAAMA,KAAwB,MAAM;AACnC,QAAM,EAAE,YAAAC,EAAA,IAAeC,GAAA;AACvB,UAAQD,GAAA;AAAA,IACP,KAAK;AACJ,+BAAQE,IAAA,EAAW;AAAA,IACpB,KAAK;AACJ,+BAAQC,IAAA,EAAmB;AAAA,IAC5B,KAAK;AACJ,+BAAQC,IAAA,EAAmB;AAAA,IAC5B,KAAK;AACJ,+BAAQC,IAAA,EAAmB;AAAA,IAC5B;AACC,aAAO;AAAA,EAAA;AAEV,GAiBaC,KAA4C,CAACC,MAAU;AACnE,QAAM;AAAA,IACL,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,aAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,2BAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,IACAhB,GACE;AAAA,IACL,OAAAiB;AAAA,IACA,YAAAxB;AAAA,IACA,gBAAAyB;AAAA,IACA,oBAAAC;AAAA,IACA,kBAAAC,IAAmB,CAAA;AAAA,IACnB,iBAAAC,IAAkB,CAAA;AAAA,IAClB,qBAAAC;AAAA,IACA,mBAAAC;AAAA,I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ilder.tsx"],"sourcesContent":["import React, { useCallback, useState } from 'react';\nimport { Spinner } from '@src/components/spinner';\nimport { COLORS } from '@src/constants/Theme';\nimport {\n\tAgentBuilderProps,\n\tAgentValue,\n\tSubAgentDraft,\n} from './AgentBuilder.model';\nimport {\n\tBuilderRoot,\n\tContent,\n\tContentCard,\n\tMain,\n\tRail,\n\tStepScroll,\n} from './AgentBuilder.styled';\nimport { AgentBuilderFooter } from './components/AgentBuilderFooter';\nimport { AgentBuilderTopBar } from './components/AgentBuilderTopBar';\nimport { DiscardModal } from './components/DiscardModal';\nimport { GoLiveModal, GoLiveModalMode } from './components/GoLiveModal';\nimport { StepRail } from './components/StepRail';\nimport { UndoToast } from './components/UndoToast';\nimport {\n\tAgentBuilderProvider,\n\tuseAgentBuilderContext,\n} from './context/AgentBuilderContext';\nimport { Step1About } from './steps/Step1About';\nimport { Step2WhenItStepsIn } from './steps/Step2WhenItStepsIn';\nimport { Step3HowItResponds } from './steps/Step3HowItResponds';\nimport { Step4HandoverRules } from './steps/Step4HandoverRules';\n\nconst StepContent: React.FC = () => {\n\tconst { activeStep } = useAgentBuilderContext();\n\tswitch (activeStep) {\n\t\tcase 'about':\n\t\t\treturn <Step1About />;\n\t\tcase 'trigger':\n\t\t\treturn <Step2WhenItStepsIn />;\n\t\tcase 'response':\n\t\t\treturn <Step3HowItResponds />;\n\t\tcase 'handover':\n\t\t\treturn <Step4HandoverRules />;\n\t\tdefault:\n\t\t\treturn null;\n\t}\n};\n\n/**\n * 4-step creation/edit wizard body for an AI agent. Presentational and\n * controlled — the consumer owns the `value`, persistence and routing.\n *\n * @example\n * <AgentBuilder\n * value={agent}\n * onChange={(patch) => setAgent({ ...agent, ...patch })}\n * availableTools={tools}\n * availableSubAgents={subAgents}\n * onDiscard={() => router.back()}\n * onSaveDraft={saveDraft}\n * onPublish={publish}\n * />\n */\nexport const AgentBuilder: React.FC<AgentBuilderProps> = (props) => {\n\tconst {\n\t\tconfig,\n\t\tonChange,\n\t\tonStepChange,\n\t\tonDiscard,\n\t\tonSaveDraft,\n\t\tonPublish,\n\t\tonBack,\n\t\tonTestAgent,\n\t\tonGoToDashboard,\n\t\tonCreateSubAgent,\n\t\tonFetchSubAgent,\n\t\tonUpdateSubAgent,\n\t\tonImproveSubAgent,\n\t\tonImproveToolInstructions,\n\t\tonConnectIntegration,\n\t\t...rest\n\t} = props;\n\tconst {\n\t\tvalue,\n\t\tactiveStep,\n\t\tavailableTools,\n\t\tavailableSubAgents,\n\t\tavailableIntents = [],\n\t\tavailableModels = [],\n\t\tconfigToolTemplates,\n\t\tintegrationStatus,\n\t\tvariablesData,\n\t\tvalidation,\n\t\tapplicationType,\n\t\tcharLimits,\n\t\tisSaving,\n\t\tisPublishing,\n\t\tisLoading,\n\t\tfooterHint = 'Changes don’t affect customers until you go live',\n\t\tdisableStepNavigation,\n\t\tdebugLog,\n\t} = config;\n\n\tconst [modalMode, setModalMode] = useState<GoLiveModalMode>(null);\n\tconst [publishingLocal, setPublishingLocal] = useState(false);\n\t// True while onTestAgent's async work (e.g. save-as-draft before the test\n\t// modal opens) is in flight — loads + disables the Test agent button.\n\tconst [testingLocal, setTestingLocal] = useState(false);\n\t// Back was pressed → confirm leaving (save draft / discard) before navigating.\n\tconst [showLeaveConfirm, setShowLeaveConfirm] = useState(false);\n\tconst [savingAndLeaving, setSavingAndLeaving] = useState(false);\n\n\t// Gated debug logging: each handler logs at its start only when `debugLog`.\n\tconst logAction = useCallback(\n\t\t(action: string, ...args: unknown[]) => {\n\t\t\tif (debugLog) {\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.log(`[AgentBuilder] ${action}`, ...args);\n\t\t\t}\n\t\t},\n\t\t[debugLog],\n\t);\n\n\tconst handleChange = useCallback(\n\t\t(patch: Partial<AgentValue>) => {\n\t\t\tlogAction('onChange', patch);\n\t\t\tonChange(patch);\n\t\t},\n\t\t[logAction, onChange],\n\t);\n\tconst handleStepChange = useCallback(\n\t\t(step: Parameters<NonNullable<typeof onStepChange>>[0]) => {\n\t\t\tlogAction('onStepChange', step);\n\t\t\tonStepChange?.(step);\n\t\t},\n\t\t[logAction, onStepChange],\n\t);\n\tconst handleSaveDraft = useCallback(() => {\n\t\tlogAction('onSaveDraft');\n\t\treturn onSaveDraft();\n\t}, [logAction, onSaveDraft]);\n\tconst handlePublish = useCallback(() => {\n\t\tlogAction('onPublish');\n\t\treturn onPublish();\n\t}, [logAction, onPublish]);\n\t// Back opens the \"Save as draft?\" confirmation rather than leaving directly.\n\tconst handleBack = useCallback(() => {\n\t\tlogAction('onBack');\n\t\tsetShowLeaveConfirm(true);\n\t}, [logAction]);\n\n\t// Modal \"Discard\" defers to the parent's discard handler (same as the top bar).\n\tconst handleDiscardAndLeave = useCallback(() => {\n\t\tlogAction('onDiscardAndLeave');\n\t\tsetShowLeaveConfirm(false);\n\t\tonDiscard();\n\t}, [logAction, onDiscard]);\n\n\tconst handleSaveDraftAndLeave = useCallback(async () => {\n\t\tlogAction('onSaveDraftAndLeave');\n\t\tconst result = onSaveDraft();\n\t\t// Closed up front for the same reason as go-live: the caller's saving dialog\n\t\t// would otherwise stack a second overlay on top of this one.\n\t\tsetShowLeaveConfirm(false);\n\t\tif (result && typeof (result as Promise<void>).then === 'function') {\n\t\t\tsetSavingAndLeaving(true);\n\t\t\ttry {\n\t\t\t\tawait result;\n\t\t\t} finally {\n\t\t\t\tsetSavingAndLeaving(false);\n\t\t\t}\n\t\t}\n\t\tonBack?.();\n\t}, [logAction, onSaveDraft, onBack]);\n\tconst handleTestAgent = useCallback(async () => {\n\t\tlogAction('onTestAgent');\n\t\tconst result = onTestAgent?.();\n\t\t// A new agent saves as draft before the test modal opens — that's slow, so\n\t\t// disable + load the button until it settles (prevents double-triggering).\n\t\tif (result && typeof (result as Promise<void>).then === 'function') {\n\t\t\tsetTestingLocal(true);\n\t\t\ttry {\n\t\t\t\tawait result;\n\t\t\t} finally {\n\t\t\t\tsetTestingLocal(false);\n\t\t\t}\n\t\t}\n\t}, [logAction, onTestAgent]);\n\tconst handleGoToDashboard = useCallback(() => {\n\t\tlogAction('onGoToDashboard');\n\t\tonGoToDashboard?.();\n\t}, [logAction, onGoToDashboard]);\n\tconst handleCreateSubAgent = useCallback(\n\t\t(draft: SubAgentDraft) => {\n\t\t\tlogAction('onCreateSubAgent', draft);\n\t\t\treturn onCreateSubAgent\n\t\t\t\t? onCreateSubAgent(draft)\n\t\t\t\t: Promise.reject(new Error('onCreateSubAgent not provided'));\n\t\t},\n\t\t[logAction, onCreateSubAgent],\n\t);\n\n\tconst handleConfirmGoLive = async () => {\n\t\tlogAction('onGoLiveConfirm');\n\t\tconst result = handlePublish();\n\t\tif (result && typeof (result as Promise<void>).then === 'function') {\n\t\t\t// Close before handing the screen to the caller's in-flight dialog: two\n\t\t\t// modals at once means two stacked overlays and this one's cross showing\n\t\t\t// through. The footer's Go live button keeps spinning via `isPublishing`,\n\t\t\t// so a caller with no dialog of its own still shows progress.\n\t\t\tsetModalMode(null);\n\t\t\tsetPublishingLocal(true);\n\t\t\ttry {\n\t\t\t\tawait result;\n\t\t\t\tsetModalMode('success');\n\t\t\t} finally {\n\t\t\t\tsetPublishingLocal(false);\n\t\t\t}\n\t\t} else {\n\t\t\tsetModalMode('success');\n\t\t}\n\t};\n\n\treturn (\n\t\t<AgentBuilderProvider\n\t\t\tvalue={value}\n\t\t\tonChange={handleChange}\n\t\t\tactiveStep={activeStep}\n\t\t\tonStepChange={onStepChange ? handleStepChange : undefined}\n\t\t\tavailableTools={availableTools}\n\t\t\tavailableSubAgents={availableSubAgents}\n\t\t\tavailableIntents={availableIntents}\n\t\t\tavailableModels={availableModels}\n\t\t\tconfigToolTemplates={configToolTemplates}\n\t\t\tintegrationStatus={integrationStatus}\n\t\t\tonConnectIntegration={onConnectIntegration}\n\t\t\tvariablesData={variablesData}\n\t\t\tvalidation={validation}\n\t\t\tapplicationType={applicationType}\n\t\t\tcharLimits={charLimits}\n\t\t\tdisableStepNavigation={disableStepNavigation}\n\t\t\tonCreateSubAgent={onCreateSubAgent ? handleCreateSubAgent : undefined}\n\t\t\tonFetchSubAgent={onFetchSubAgent}\n\t\t\tonUpdateSubAgent={onUpdateSubAgent}\n\t\t\tonImproveSubAgent={onImproveSubAgent}\n\t\t\tonImproveToolInstructions={onImproveToolInstructions}\n\t\t>\n\t\t\t<BuilderRoot data-test={rest['data-test'] ?? 'agent-builder'}>\n\t\t\t\t<AgentBuilderTopBar\n\t\t\t\t\tname={value.name}\n\t\t\t\t\tstatus={value.status}\n\t\t\t\t\tonBack={onBack ? handleBack : undefined}\n\t\t\t\t\tonSaveDraft={handleSaveDraftAndLeave}\n\t\t\t\t\tisSaving={isSaving || savingAndLeaving}\n\t\t\t\t/>\n\n\t\t\t\t<Main>\n\t\t\t\t\t<Rail>\n\t\t\t\t\t\t<StepRail />\n\t\t\t\t\t</Rail>\n\t\t\t\t\t<Content>\n\t\t\t\t\t\t{isLoading ? (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tstyle={{\n\t\t\t\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\t\t\t\talignItems: 'center',\n\t\t\t\t\t\t\t\t\tjustifyContent: 'center',\n\t\t\t\t\t\t\t\t\theight: '100%',\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Spinner size=\"large\" color={COLORS.stroke.brand} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<ContentCard>\n\t\t\t\t\t\t\t\t<StepScroll>\n\t\t\t\t\t\t\t\t\t<StepContent />\n\t\t\t\t\t\t\t\t</StepScroll>\n\t\t\t\t\t\t\t\t<AgentBuilderFooter\n\t\t\t\t\t\t\t\t\tfooterHint={footerHint}\n\t\t\t\t\t\t\t\t\tonTestAgent={onTestAgent ? handleTestAgent : undefined}\n\t\t\t\t\t\t\t\t\tisTesting={testingLocal}\n\t\t\t\t\t\t\t\t\tonGoLive={() => {\n\t\t\t\t\t\t\t\t\t\tlogAction('onGoLive');\n\t\t\t\t\t\t\t\t\t\tsetModalMode('confirm');\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\tisPublishing={isPublishing || publishingLocal}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</ContentCard>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</Content>\n\t\t\t\t</Main>\n\n\t\t\t\t<GoLiveModal\n\t\t\t\t\tmode={modalMode}\n\t\t\t\t\tonClose={() => {\n\t\t\t\t\t\tconst wasSuccess = modalMode === 'success';\n\t\t\t\t\t\tsetModalMode(null);\n\t\t\t\t\t\tif (wasSuccess) {\n\t\t\t\t\t\t\thandleGoToDashboard();\n\t\t\t\t\t\t}\n\t\t\t\t\t}}\n\t\t\t\t\tonConfirm={handleConfirmGoLive}\n\t\t\t\t\tonSaveDraft={() => {\n\t\t\t\t\t\tsetModalMode(null);\n\t\t\t\t\t\thandleSaveDraft();\n\t\t\t\t\t}}\n\t\t\t\t\tonGoToDashboard={onGoToDashboard ? handleGoToDashboard : undefined}\n\t\t\t\t\tisPublishing={isPublishing || publishingLocal}\n\t\t\t\t/>\n\n\t\t\t\t<DiscardModal\n\t\t\t\t\topen={showLeaveConfirm}\n\t\t\t\t\tonClose={() => setShowLeaveConfirm(false)}\n\t\t\t\t\tonDiscard={handleDiscardAndLeave}\n\t\t\t\t\tonSaveDraft={handleSaveDraftAndLeave}\n\t\t\t\t\tdisableSaveDraft={!value.name.trim()}\n\t\t\t\t\tisSaving={isSaving || savingAndLeaving}\n\t\t\t\t/>\n\n\t\t\t\t<UndoToast />\n\t\t\t</BuilderRoot>\n\t\t</AgentBuilderProvider>\n\t);\n};\n\nAgentBuilder.displayName = 'AgentBuilder';\n"],"names":["StepContent","activeStep","useAgentBuilderContext","Step1About","Step2WhenItStepsIn","Step3HowItResponds","Step4HandoverRules","AgentBuilder","props","config","onChange","onStepChange","onDiscard","onSaveDraft","onPublish","onBack","onTestAgent","onGoToDashboard","onCreateSubAgent","onFetchSubAgent","onUpdateSubAgent","onImproveSubAgent","onImproveToolInstructions","onConnectIntegration","rest","value","availableTools","availableSubAgents","availableIntents","availableModels","configToolTemplates","integrationStatus","variablesData","validation","applicationType","charLimits","isSaving","isPublishing","isLoading","footerHint","disableStepNavigation","debugLog","modalMode","setModalMode","useState","publishingLocal","setPublishingLocal","testingLocal","setTestingLocal","showLeaveConfirm","setShowLeaveConfirm","savingAndLeaving","setSavingAndLeaving","logAction","useCallback","action","args","handleChange","patch","handleStepChange","step","handleSaveDraft","handlePublish","handleBack","handleDiscardAndLeave","handleSaveDraftAndLeave","result","handleTestAgent","handleGoToDashboard","handleCreateSubAgent","draft","handleConfirmGoLive","jsx","AgentBuilderProvider","BuilderRoot","AgentBuilderTopBar","Main","Rail","StepRail","Content","Spinner","COLORS","ContentCard","StepScroll","AgentBuilderFooter","GoLiveModal","wasSuccess","DiscardModal","UndoToast"],"mappings":";;;;;;;;;;;;;;;;AA+BA,MAAMA,KAAwB,MAAM;AACnC,QAAM,EAAE,YAAAC,EAAA,IAAeC,GAAA;AACvB,UAAQD,GAAA;AAAA,IACP,KAAK;AACJ,+BAAQE,IAAA,EAAW;AAAA,IACpB,KAAK;AACJ,+BAAQC,IAAA,EAAmB;AAAA,IAC5B,KAAK;AACJ,+BAAQC,IAAA,EAAmB;AAAA,IAC5B,KAAK;AACJ,+BAAQC,IAAA,EAAmB;AAAA,IAC5B;AACC,aAAO;AAAA,EAAA;AAEV,GAiBaC,KAA4C,CAACC,MAAU;AACnE,QAAM;AAAA,IACL,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,QAAAC;AAAA,IACA,aAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,2BAAAC;AAAA,IACA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b,kBAAkB,CAACxC,EAAM,KAAK,KAAA;AAAA,YAC9B,UAAUW,KAAYe;AAAA,UAAA;AAAA,QAAA;AAAA,0BAGtBqC,IAAA,CAAA,CAAU;AAAA,MAAA,EAAA,CACZ;AAAA,IAAA;AAAA,EAAA;AAGH;AAEAjF,GAAa,cAAc;"}
|
|
@@ -139,6 +139,29 @@ export declare const ModalBody: import('styled-components').StyledComponent<"div
|
|
|
139
139
|
export declare const ModalIcon: import('styled-components').StyledComponent<"div", any, {
|
|
140
140
|
className: "bik-modal-icon";
|
|
141
141
|
}, "className">;
|
|
142
|
+
/**
|
|
143
|
+
* The go-live SUCCESS dialog's natural height, which every state of
|
|
144
|
+
* `AgentStateModal` is pinned to so the card doesn't resize as a publish moves
|
|
145
|
+
* loading → error, or loading → success (a different dialog at the same size).
|
|
146
|
+
*
|
|
147
|
+
* 24 + 24 padding + 64 icon + 8 gap + 28 title (TitleMedium 20/28) + 8 gap
|
|
148
|
+
* + 48 body (BodyPrimary 16/24, two lines at this width) + 24 gap
|
|
149
|
+
* + 40 action row (medium Button: 10px padding + 20px line-height) = 268.
|
|
150
|
+
*
|
|
151
|
+
* Deliberately NOT on `ModalBody`: DiscardModal and RequireVerificationModal share
|
|
152
|
+
* it and are not part of this sequence.
|
|
153
|
+
*/
|
|
154
|
+
export declare const AGENT_STATE_MODAL_MIN_HEIGHT = 268;
|
|
155
|
+
/** `ModalBody` pinned to the height above. The body itself is NOT centred — that
|
|
156
|
+
* floats the action row in the middle of the card. The hero takes the slack instead
|
|
157
|
+
* (see `AgentStateModalHero`), so the actions stay at the bottom, above the body's
|
|
158
|
+
* own 24px padding. */
|
|
159
|
+
export declare const AgentStateModalBody: import('styled-components').StyledComponent<"div", any, {
|
|
160
|
+
className: "bik-modal-body";
|
|
161
|
+
}, "className">;
|
|
162
|
+
/** Badge + title + message. Grows into whatever height the pinned card has spare and
|
|
163
|
+
* centres itself there, which is what keeps the actions pinned to the bottom. */
|
|
164
|
+
export declare const AgentStateModalHero: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
142
165
|
export declare const ModalActions: import('styled-components').StyledComponent<"div", any, {
|
|
143
166
|
className: "bik-modal-actions";
|
|
144
167
|
}, "className">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e, { css as s } from "styled-components";
|
|
2
|
-
import { COLORS as t, BASE_COLORS as
|
|
2
|
+
import { COLORS as t, BASE_COLORS as a } from "../../constants/Theme.js";
|
|
3
3
|
const r = s`
|
|
4
4
|
display: flex;
|
|
5
5
|
align-items: center;
|
|
@@ -21,14 +21,14 @@ const r = s`
|
|
|
21
21
|
opacity: 0.5;
|
|
22
22
|
background: transparent;
|
|
23
23
|
}
|
|
24
|
-
`,
|
|
24
|
+
`, c = e.div.attrs({ className: "bik-builder-root" })`
|
|
25
25
|
display: flex;
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
height: 100%;
|
|
28
28
|
width: 100%;
|
|
29
29
|
min-height: 0;
|
|
30
30
|
background: ${t.surface.standard};
|
|
31
|
-
`,
|
|
31
|
+
`, p = e.div.attrs({ className: "bik-top-bar" })`
|
|
32
32
|
display: flex;
|
|
33
33
|
align-items: center;
|
|
34
34
|
justify-content: space-between;
|
|
@@ -36,11 +36,11 @@ const r = s`
|
|
|
36
36
|
padding: 12px 16px;
|
|
37
37
|
border-bottom: 1px solid ${t.stroke.primary};
|
|
38
38
|
flex-shrink: 0;
|
|
39
|
-
`,
|
|
39
|
+
`, x = e.div.attrs({ className: "bik-top-bar-side" })`
|
|
40
40
|
display: flex;
|
|
41
41
|
align-items: center;
|
|
42
42
|
gap: 8px;
|
|
43
|
-
`,
|
|
43
|
+
`, h = e.button.attrs({ className: "bik-back-button" })`
|
|
44
44
|
display: flex;
|
|
45
45
|
align-items: center;
|
|
46
46
|
justify-content: center;
|
|
@@ -55,18 +55,18 @@ const r = s`
|
|
|
55
55
|
&:hover {
|
|
56
56
|
background: ${t.surface.subdued};
|
|
57
57
|
}
|
|
58
|
-
`,
|
|
58
|
+
`, b = e.div.attrs({ className: "bik-main" })`
|
|
59
59
|
display: flex;
|
|
60
60
|
flex: 1;
|
|
61
61
|
min-height: 0;
|
|
62
|
-
`,
|
|
62
|
+
`, g = e.div.attrs({ className: "bik-rail" })`
|
|
63
63
|
width: 234px;
|
|
64
64
|
flex-shrink: 0;
|
|
65
65
|
border-right: 1px solid ${t.stroke.primary};
|
|
66
66
|
padding: 16px;
|
|
67
67
|
overflow-y: auto;
|
|
68
68
|
background: ${t.surface.standard};
|
|
69
|
-
`,
|
|
69
|
+
`, f = e.div.attrs({ className: "bik-content" })`
|
|
70
70
|
flex: 1;
|
|
71
71
|
min-width: 0;
|
|
72
72
|
min-height: 0;
|
|
@@ -75,7 +75,7 @@ const r = s`
|
|
|
75
75
|
flex-direction: column;
|
|
76
76
|
padding: 16px;
|
|
77
77
|
background: ${t.surface.standard};
|
|
78
|
-
`,
|
|
78
|
+
`, m = e.div.attrs({ className: "bik-content-card" })`
|
|
79
79
|
flex: 1;
|
|
80
80
|
min-height: 0;
|
|
81
81
|
display: flex;
|
|
@@ -84,11 +84,11 @@ const r = s`
|
|
|
84
84
|
border: 1px solid ${t.stroke.primary};
|
|
85
85
|
border-radius: 8px;
|
|
86
86
|
box-sizing: border-box;
|
|
87
|
-
`,
|
|
87
|
+
`, u = e.div.attrs({ className: "bik-step-scroll" })`
|
|
88
88
|
flex: 1;
|
|
89
89
|
min-height: 0;
|
|
90
90
|
overflow-y: auto;
|
|
91
|
-
`,
|
|
91
|
+
`, k = e.div.attrs({ className: "bik-footer" })`
|
|
92
92
|
display: flex;
|
|
93
93
|
align-items: center;
|
|
94
94
|
justify-content: space-between;
|
|
@@ -97,20 +97,20 @@ const r = s`
|
|
|
97
97
|
border-top: 1px solid ${t.stroke.primary};
|
|
98
98
|
flex-shrink: 0;
|
|
99
99
|
box-shadow: 0px -2px 12px 0px #0000000a;
|
|
100
|
-
`,
|
|
100
|
+
`, y = e.div.attrs({ className: "bik-footer-hint" })`
|
|
101
101
|
display: flex;
|
|
102
102
|
align-items: center;
|
|
103
103
|
gap: 6px;
|
|
104
|
-
`,
|
|
104
|
+
`, w = e.div.attrs({
|
|
105
105
|
className: "bik-footer-actions"
|
|
106
106
|
})`
|
|
107
107
|
display: flex;
|
|
108
108
|
align-items: center;
|
|
109
109
|
gap: 8px;
|
|
110
|
-
`,
|
|
110
|
+
`, v = e.div.attrs({ className: "bik-rail-list" })`
|
|
111
111
|
display: flex;
|
|
112
112
|
flex-direction: column;
|
|
113
|
-
`,
|
|
113
|
+
`, N = e.button.attrs({ className: "bik-rail-item" })`
|
|
114
114
|
position: relative;
|
|
115
115
|
display: flex;
|
|
116
116
|
align-items: flex-start;
|
|
@@ -142,7 +142,7 @@ const r = s`
|
|
|
142
142
|
border-left: 1px dashed #e0e0e0;
|
|
143
143
|
pointer-events: none;
|
|
144
144
|
}
|
|
145
|
-
`,
|
|
145
|
+
`, $ = e.div.attrs({ className: "bik-step-badge" })`
|
|
146
146
|
width: 20px;
|
|
147
147
|
height: 20px;
|
|
148
148
|
flex-shrink: 0;
|
|
@@ -154,9 +154,9 @@ const r = s`
|
|
|
154
154
|
font-size: 10px;
|
|
155
155
|
font-weight: 400;
|
|
156
156
|
line-height: 12px;
|
|
157
|
-
background: ${(
|
|
158
|
-
color: ${(
|
|
159
|
-
`,
|
|
157
|
+
background: ${(i) => i.state === "complete" ? t.background.inverseLight : i.state === "active" ? t.background.brandLight : t.background.base};
|
|
158
|
+
color: ${(i) => i.state === "complete" ? t.surface.standard : i.state === "active" ? t.background.inverseLight : t.content.secondary};
|
|
159
|
+
`, S = e.div.attrs({
|
|
160
160
|
className: "bik-section-header-wrap"
|
|
161
161
|
})`
|
|
162
162
|
display: flex;
|
|
@@ -164,36 +164,36 @@ const r = s`
|
|
|
164
164
|
gap: 4px;
|
|
165
165
|
padding: 16px;
|
|
166
166
|
border-bottom: 1px solid ${t.stroke.primary};
|
|
167
|
-
`,
|
|
167
|
+
`, B = e.div.attrs({
|
|
168
168
|
className: "bik-section-header-wrap"
|
|
169
169
|
})`
|
|
170
170
|
display: flex;
|
|
171
171
|
flex-direction: column;
|
|
172
172
|
gap: 16px;
|
|
173
173
|
padding: 16px;
|
|
174
|
-
`,
|
|
174
|
+
`, R = e.div.attrs({ className: "bik-field-block" })`
|
|
175
175
|
display: flex;
|
|
176
176
|
flex-direction: column;
|
|
177
177
|
gap: 8px;
|
|
178
|
-
`,
|
|
178
|
+
`, A = e.div.attrs({
|
|
179
179
|
className: "bik-field-label-row"
|
|
180
180
|
})`
|
|
181
181
|
display: flex;
|
|
182
182
|
align-items: center;
|
|
183
183
|
justify-content: space-between;
|
|
184
|
-
`,
|
|
184
|
+
`, T = e.div.attrs({
|
|
185
185
|
className: "bik-ai-text-area-shell"
|
|
186
186
|
})`
|
|
187
187
|
display: flex;
|
|
188
188
|
flex-direction: column;
|
|
189
189
|
border: 1px solid
|
|
190
|
-
${(
|
|
190
|
+
${(i) => i.focused ? t.stroke.brand : t.stroke.primary};
|
|
191
191
|
border-radius: 4px;
|
|
192
192
|
padding: 8px 12px;
|
|
193
193
|
gap: 8px;
|
|
194
|
-
min-height: ${(
|
|
194
|
+
min-height: ${(i) => i.minHeight ?? "120px"};
|
|
195
195
|
background: ${t.surface.standard};
|
|
196
|
-
`,
|
|
196
|
+
`, j = e.textarea.attrs({
|
|
197
197
|
className: "bik-ai-text-area-input"
|
|
198
198
|
})`
|
|
199
199
|
flex: 1;
|
|
@@ -210,18 +210,18 @@ const r = s`
|
|
|
210
210
|
&::placeholder {
|
|
211
211
|
color: ${t.content.placeholder};
|
|
212
212
|
}
|
|
213
|
-
`,
|
|
213
|
+
`, L = e.div.attrs({ className: "bik-card-row" })`
|
|
214
214
|
display: flex;
|
|
215
215
|
gap: 12px;
|
|
216
|
-
`,
|
|
216
|
+
`, M = e.button.attrs({ className: "bik-radio-card" })`
|
|
217
217
|
flex: 1;
|
|
218
218
|
display: flex;
|
|
219
219
|
align-items: flex-start;
|
|
220
220
|
gap: 12px;
|
|
221
221
|
padding: 16px;
|
|
222
222
|
border: 1px solid
|
|
223
|
-
${(
|
|
224
|
-
background: ${(
|
|
223
|
+
${(i) => i.selected ? a.brand[800] : t.stroke.primary};
|
|
224
|
+
background: ${(i) => i.selected ? t.background.brandLight : t.surface.standard};
|
|
225
225
|
border-radius: 8px;
|
|
226
226
|
cursor: pointer;
|
|
227
227
|
text-align: left;
|
|
@@ -250,7 +250,7 @@ e.button.attrs({
|
|
|
250
250
|
background: transparent;
|
|
251
251
|
cursor: pointer;
|
|
252
252
|
`;
|
|
253
|
-
const
|
|
253
|
+
const I = e.div.attrs({
|
|
254
254
|
className: "bik-agent-step bik-agent-step--response"
|
|
255
255
|
})`
|
|
256
256
|
display: flex;
|
|
@@ -272,11 +272,11 @@ const T = e.div.attrs({
|
|
|
272
272
|
|
|
273
273
|
/* Fill the remaining card height so a full-height child (e.g. the Step 3
|
|
274
274
|
column divider) can stretch all the way down to the footer. */
|
|
275
|
-
${(
|
|
275
|
+
${(i) => i.$grow && s`
|
|
276
276
|
flex: 1;
|
|
277
277
|
min-height: 0;
|
|
278
278
|
`}
|
|
279
|
-
`,
|
|
279
|
+
`, H = e.div.attrs({
|
|
280
280
|
className: "bik-step3-divider"
|
|
281
281
|
})`
|
|
282
282
|
width: 1px;
|
|
@@ -286,23 +286,23 @@ const T = e.div.attrs({
|
|
|
286
286
|
@media (max-width: 1100px) {
|
|
287
287
|
display: none;
|
|
288
288
|
}
|
|
289
|
-
`,
|
|
289
|
+
`, D = e.div.attrs({ className: "bik-side-section" })`
|
|
290
290
|
display: flex;
|
|
291
291
|
flex-direction: column;
|
|
292
292
|
gap: 8px;
|
|
293
|
-
`,
|
|
293
|
+
`, E = e.div.attrs({
|
|
294
294
|
className: "bik-side-section-header"
|
|
295
295
|
})`
|
|
296
296
|
display: flex;
|
|
297
297
|
align-items: center;
|
|
298
298
|
justify-content: space-between;
|
|
299
|
-
`,
|
|
299
|
+
`, O = e.button.attrs({
|
|
300
300
|
className: "bik-add-icon-button"
|
|
301
301
|
})`
|
|
302
302
|
${r}
|
|
303
303
|
background: ${t.surface.standard};
|
|
304
304
|
border: 1px solid ${t.stroke.primary};
|
|
305
|
-
`,
|
|
305
|
+
`, _ = e.div.attrs({
|
|
306
306
|
className: "bik-source-button-row"
|
|
307
307
|
})`
|
|
308
308
|
display: flex;
|
|
@@ -324,7 +324,7 @@ const T = e.div.attrs({
|
|
|
324
324
|
&:hover {
|
|
325
325
|
background: ${t.surface.subdued};
|
|
326
326
|
}
|
|
327
|
-
`,
|
|
327
|
+
`, G = e.div.attrs({
|
|
328
328
|
className: "bik-selectable-row"
|
|
329
329
|
})`
|
|
330
330
|
display: flex;
|
|
@@ -359,7 +359,7 @@ const T = e.div.attrs({
|
|
|
359
359
|
white-space: nowrap;
|
|
360
360
|
text-overflow: ellipsis;
|
|
361
361
|
}
|
|
362
|
-
`,
|
|
362
|
+
`, U = e.div.attrs({ className: "bik-row-label" })`
|
|
363
363
|
display: flex;
|
|
364
364
|
align-items: center;
|
|
365
365
|
gap: 6px;
|
|
@@ -383,46 +383,56 @@ e.button.attrs({
|
|
|
383
383
|
padding: 0;
|
|
384
384
|
cursor: pointer;
|
|
385
385
|
`;
|
|
386
|
-
const
|
|
386
|
+
const J = e.div.attrs({ className: "bik-row-actions" })`
|
|
387
387
|
display: flex;
|
|
388
388
|
align-items: center;
|
|
389
389
|
gap: 4px;
|
|
390
390
|
flex-shrink: 0;
|
|
391
|
-
`,
|
|
391
|
+
`, K = e.span.attrs({
|
|
392
392
|
className: "bik-row-action-divider"
|
|
393
393
|
})`
|
|
394
394
|
width: 1px;
|
|
395
395
|
align-self: stretch;
|
|
396
396
|
margin: 4px 0;
|
|
397
397
|
background: ${t.stroke.primary};
|
|
398
|
-
`,
|
|
398
|
+
`, P = e.button.attrs({
|
|
399
399
|
className: "bik-row-menu-button"
|
|
400
400
|
})`
|
|
401
401
|
${r}
|
|
402
|
-
`,
|
|
402
|
+
`, Q = e.div.attrs({
|
|
403
403
|
className: "bik-draft-button-scope"
|
|
404
404
|
})`
|
|
405
405
|
display: flex;
|
|
406
406
|
flex: 1;
|
|
407
407
|
|
|
408
408
|
button {
|
|
409
|
-
border-color: ${
|
|
409
|
+
border-color: ${a.brand[800]};
|
|
410
410
|
}
|
|
411
411
|
button .text {
|
|
412
|
-
color: ${
|
|
412
|
+
color: ${a.brand[800]};
|
|
413
413
|
}
|
|
414
|
-
`,
|
|
414
|
+
`, o = e.div.attrs({ className: "bik-modal-body" })`
|
|
415
415
|
padding: 24px;
|
|
416
416
|
display: flex;
|
|
417
417
|
flex-direction: column;
|
|
418
418
|
align-items: center;
|
|
419
419
|
gap: 16px;
|
|
420
420
|
text-align: center;
|
|
421
|
-
`,
|
|
421
|
+
`, V = e.div.attrs({ className: "bik-modal-icon" })`
|
|
422
422
|
display: flex;
|
|
423
423
|
align-items: center;
|
|
424
424
|
justify-content: center;
|
|
425
|
-
`,
|
|
425
|
+
`, n = 268, X = e(o)`
|
|
426
|
+
min-height: ${n}px;
|
|
427
|
+
`, Y = e.div`
|
|
428
|
+
flex: 1;
|
|
429
|
+
width: 100%;
|
|
430
|
+
display: flex;
|
|
431
|
+
flex-direction: column;
|
|
432
|
+
justify-content: center;
|
|
433
|
+
align-items: center;
|
|
434
|
+
gap: 8px;
|
|
435
|
+
`, Z = e.div.attrs({
|
|
426
436
|
className: "bik-modal-actions"
|
|
427
437
|
})`
|
|
428
438
|
display: flex;
|
|
@@ -447,48 +457,51 @@ e.div.attrs({
|
|
|
447
457
|
gap: 8px;
|
|
448
458
|
`;
|
|
449
459
|
export {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
460
|
+
n as AGENT_STATE_MODAL_MIN_HEIGHT,
|
|
461
|
+
O as AddIconButton,
|
|
462
|
+
X as AgentStateModalBody,
|
|
463
|
+
Y as AgentStateModalHero,
|
|
464
|
+
j as AiTextAreaInput,
|
|
465
|
+
T as AiTextAreaShell,
|
|
466
|
+
h as BackButton,
|
|
467
|
+
c as BuilderRoot,
|
|
468
|
+
L as CardRow,
|
|
456
469
|
C as ChipWrap,
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
+
f as Content,
|
|
471
|
+
m as ContentCard,
|
|
472
|
+
Q as DraftButtonScope,
|
|
473
|
+
R as FieldBlock,
|
|
474
|
+
A as FieldLabelRow,
|
|
475
|
+
k as Footer,
|
|
476
|
+
w as FooterActions,
|
|
477
|
+
y as FooterHint,
|
|
478
|
+
b as Main,
|
|
479
|
+
Z as ModalActions,
|
|
480
|
+
o as ModalBody,
|
|
481
|
+
V as ModalIcon,
|
|
482
|
+
M as RadioCard,
|
|
470
483
|
z as RadioCardText,
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
484
|
+
g as Rail,
|
|
485
|
+
N as RailItem,
|
|
486
|
+
v as RailList,
|
|
487
|
+
K as RowActionDivider,
|
|
488
|
+
J as RowActions,
|
|
489
|
+
U as RowLabel,
|
|
490
|
+
P as RowMenuButton,
|
|
478
491
|
q as RowText,
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
492
|
+
B as SectionBodyWrap,
|
|
493
|
+
S as SectionHeaderWrap,
|
|
494
|
+
G as SelectableRow,
|
|
495
|
+
D as SideSection,
|
|
496
|
+
E as SideSectionHeader,
|
|
484
497
|
W as SourceButton,
|
|
485
|
-
|
|
486
|
-
|
|
498
|
+
_ as SourceButtonRow,
|
|
499
|
+
H as Step3Divider,
|
|
487
500
|
F as Step3Grid,
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
501
|
+
I as Step3Root,
|
|
502
|
+
$ as StepBadge,
|
|
503
|
+
u as StepScroll,
|
|
504
|
+
p as TopBar,
|
|
505
|
+
x as TopBarSide
|
|
493
506
|
};
|
|
494
507
|
//# sourceMappingURL=AgentBuilder.styled.js.map
|