@bikdotai/bik-component-library 0.0.823-beta.2 → 0.0.823

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 (75) hide show
  1. package/dist/cjs/components/agent-builder/AgentBuilder.js +1 -1
  2. package/dist/cjs/components/agent-builder/AgentBuilder.js.map +1 -1
  3. package/dist/cjs/components/agent-builder/AgentBuilder.styled.js +97 -66
  4. package/dist/cjs/components/agent-builder/AgentBuilder.styled.js.map +1 -1
  5. package/dist/cjs/components/agent-builder/components/AgentBuilderTopBar.js +1 -1
  6. package/dist/cjs/components/agent-builder/components/AgentBuilderTopBar.js.map +1 -1
  7. package/dist/cjs/components/agent-builder/components/CreateSubAgentPanel.js +1 -1
  8. package/dist/cjs/components/agent-builder/components/CreateSubAgentPanel.js.map +1 -1
  9. package/dist/cjs/components/agent-builder/components/MentionField.js +1 -1
  10. package/dist/cjs/components/agent-builder/components/MentionField.js.map +1 -1
  11. package/dist/cjs/components/agent-builder/components/SelectableListSection.js +4 -4
  12. package/dist/cjs/components/agent-builder/components/SelectableListSection.js.map +1 -1
  13. package/dist/cjs/components/agent-builder/components/StepRail.js +1 -1
  14. package/dist/cjs/components/agent-builder/components/StepRail.js.map +1 -1
  15. package/dist/cjs/components/agent-builder/context/AgentBuilderContext.js +1 -1
  16. package/dist/cjs/components/agent-builder/context/AgentBuilderContext.js.map +1 -1
  17. package/dist/cjs/components/agent-builder/steps/Step1About.js +1 -1
  18. package/dist/cjs/components/agent-builder/steps/Step1About.js.map +1 -1
  19. package/dist/cjs/components/agent-builder/steps/Step2WhenItStepsIn.js +1 -1
  20. package/dist/cjs/components/agent-builder/steps/Step2WhenItStepsIn.js.map +1 -1
  21. package/dist/cjs/components/agent-builder/steps/Step3HowItResponds.js +1 -1
  22. package/dist/cjs/components/agent-builder/steps/Step3HowItResponds.js.map +1 -1
  23. package/dist/cjs/components/agent-builder/steps/Step4HandoverRules.js +1 -1
  24. package/dist/cjs/components/agent-builder/steps/Step4HandoverRules.js.map +1 -1
  25. package/dist/cjs/components/agent-listing/AgentListing.js +1 -1
  26. package/dist/cjs/components/agent-listing/AgentListing.js.map +1 -1
  27. package/dist/cjs/components/agent-listing/AgentListing.styled.js +32 -28
  28. package/dist/cjs/components/agent-listing/AgentListing.styled.js.map +1 -1
  29. package/dist/cjs/components/agent-listing/AgentListingHeader.js +1 -1
  30. package/dist/cjs/components/agent-listing/AgentListingHeader.js.map +1 -1
  31. package/dist/cjs/components/agent-listing/AgentTableRow.js +1 -1
  32. package/dist/cjs/components/agent-listing/AgentTableRow.js.map +1 -1
  33. package/dist/cjs/components/template-preview/models/TemplateMeta.js +1 -1
  34. package/dist/cjs/components/template-preview/models/TemplateMeta.js.map +1 -1
  35. package/dist/esm/components/agent-builder/AgentBuilder.js +82 -83
  36. package/dist/esm/components/agent-builder/AgentBuilder.js.map +1 -1
  37. package/dist/esm/components/agent-builder/AgentBuilder.styled.d.ts +13 -5
  38. package/dist/esm/components/agent-builder/AgentBuilder.styled.js +141 -102
  39. package/dist/esm/components/agent-builder/AgentBuilder.styled.js.map +1 -1
  40. package/dist/esm/components/agent-builder/components/AgentBuilderTopBar.d.ts +0 -1
  41. package/dist/esm/components/agent-builder/components/AgentBuilderTopBar.js +33 -46
  42. package/dist/esm/components/agent-builder/components/AgentBuilderTopBar.js.map +1 -1
  43. package/dist/esm/components/agent-builder/components/CreateSubAgentPanel.js +135 -119
  44. package/dist/esm/components/agent-builder/components/CreateSubAgentPanel.js.map +1 -1
  45. package/dist/esm/components/agent-builder/components/MentionField.js +44 -45
  46. package/dist/esm/components/agent-builder/components/MentionField.js.map +1 -1
  47. package/dist/esm/components/agent-builder/components/SelectableListSection.js +91 -94
  48. package/dist/esm/components/agent-builder/components/SelectableListSection.js.map +1 -1
  49. package/dist/esm/components/agent-builder/components/StepRail.js +28 -20
  50. package/dist/esm/components/agent-builder/components/StepRail.js.map +1 -1
  51. package/dist/esm/components/agent-builder/context/AgentBuilderContext.d.ts +7 -0
  52. package/dist/esm/components/agent-builder/context/AgentBuilderContext.js +108 -98
  53. package/dist/esm/components/agent-builder/context/AgentBuilderContext.js.map +1 -1
  54. package/dist/esm/components/agent-builder/steps/Step1About.js +38 -35
  55. package/dist/esm/components/agent-builder/steps/Step1About.js.map +1 -1
  56. package/dist/esm/components/agent-builder/steps/Step2WhenItStepsIn.js +118 -122
  57. package/dist/esm/components/agent-builder/steps/Step2WhenItStepsIn.js.map +1 -1
  58. package/dist/esm/components/agent-builder/steps/Step3HowItResponds.js +112 -110
  59. package/dist/esm/components/agent-builder/steps/Step3HowItResponds.js.map +1 -1
  60. package/dist/esm/components/agent-builder/steps/Step4HandoverRules.js +72 -70
  61. package/dist/esm/components/agent-builder/steps/Step4HandoverRules.js.map +1 -1
  62. package/dist/esm/components/agent-listing/AgentListing.js +45 -43
  63. package/dist/esm/components/agent-listing/AgentListing.js.map +1 -1
  64. package/dist/esm/components/agent-listing/AgentListing.model.d.ts +7 -0
  65. package/dist/esm/components/agent-listing/AgentListing.styled.js +28 -24
  66. package/dist/esm/components/agent-listing/AgentListing.styled.js.map +1 -1
  67. package/dist/esm/components/agent-listing/AgentListingHeader.d.ts +2 -0
  68. package/dist/esm/components/agent-listing/AgentListingHeader.js +14 -12
  69. package/dist/esm/components/agent-listing/AgentListingHeader.js.map +1 -1
  70. package/dist/esm/components/agent-listing/AgentTableRow.js +102 -57
  71. package/dist/esm/components/agent-listing/AgentTableRow.js.map +1 -1
  72. package/dist/esm/components/template-preview/models/TemplateMeta.d.ts +1 -2
  73. package/dist/esm/components/template-preview/models/TemplateMeta.js +11 -11
  74. package/dist/esm/components/template-preview/models/TemplateMeta.js.map +1 -1
  75. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var I=(N=>(N.SEND_GRID="sendgrid",N.BEE="bee",N))(I||{}),e=(N=>(N.APPROVED="APPROVED",N.DISABLED="DISABLED",N.FLAGGED="FLAGGED",N.PENDING="PENDING",N.DRAFT="DRAFT",N.REJECTED="REJECTED",N.PENDING_DELETION="PENDING_DELETION",N.IN_REVIEW="IN REVIEW",N.PAUSED="PAUSED",N.ACTIVE="ACTIVE",N.LIBRARY="LIBRARY",N.ARCHIVED="ARCHIVED",N))(e||{}),r=(N=>(N.NONE="NONE",N.TEXT="TEXT",N.IMAGE="IMAGE",N.VIDEO="VIDEO",N.DOCUMENT="DOCUMENT",N))(r||{}),l=(N=>(N.NONE="NONE",N.CTA_BTN="CTA_BTN",N.QUICK_REPLY="QUICK_REPLY",N))(l||{});const D={value:"custom_link",label:"Custom URL",placeHolder:"custom placeholder"},R={label:"Custom URL (No tracking)",value:"static_link",placeHolder:"{{staticUrl}}"},t={label:"Unsubscribe URL",value:"{{unsubscribeUrl}}",placeHolder:"{{unsubscribeUrl}}"};exports.ACTIONS_TYPES=l;exports.CUSTOM_URL_NAME=D;exports.HEADER_TYPES=r;exports.STATIC_URL_CTA_OPTION=R;exports.TEMPLATE_EDITOR=I;exports.TEMPLATE_STATUS=e;exports.UNSUBSCRIBE_URL_OPTION=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=(N=>(N.SEND_GRID="sendgrid",N.BEE="bee",N))(e||{}),I=(N=>(N.APPROVED="APPROVED",N.DISABLED="DISABLED",N.FLAGGED="FLAGGED",N.PENDING="PENDING",N.DRAFT="DRAFT",N.REJECTED="REJECTED",N.PENDING_DELETION="PENDING_DELETION",N.IN_REVIEW="IN REVIEW",N.PAUSED="PAUSED",N.ACTIVE="ACTIVE",N.LIBRARY="LIBRARY",N))(I||{}),r=(N=>(N.NONE="NONE",N.TEXT="TEXT",N.IMAGE="IMAGE",N.VIDEO="VIDEO",N.DOCUMENT="DOCUMENT",N))(r||{}),l=(N=>(N.NONE="NONE",N.CTA_BTN="CTA_BTN",N.QUICK_REPLY="QUICK_REPLY",N))(l||{});const D={value:"custom_link",label:"Custom URL",placeHolder:"custom placeholder"},R={label:"Custom URL (No tracking)",value:"static_link",placeHolder:"{{staticUrl}}"},t={label:"Unsubscribe URL",value:"{{unsubscribeUrl}}",placeHolder:"{{unsubscribeUrl}}"};exports.ACTIONS_TYPES=l;exports.CUSTOM_URL_NAME=D;exports.HEADER_TYPES=r;exports.STATIC_URL_CTA_OPTION=R;exports.TEMPLATE_EDITOR=e;exports.TEMPLATE_STATUS=I;exports.UNSUBSCRIBE_URL_OPTION=t;
2
2
  //# sourceMappingURL=TemplateMeta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TemplateMeta.js","sources":["../../../../../src/components/template-preview/models/TemplateMeta.ts"],"sourcesContent":["import type { SingleOption } from '@src/components/dropdown/type';\n\nexport type CUSTOM_VARIABLE = {\n\tvariableName: string;\n\ttype: 'string' | 'link' | 'image' | 'button' | 'date_time';\n\tisEditableVariable: boolean;\n\tupdatedValue: string;\n\tindex?: number;\n\tvariableValue?: string;\n\tqueryParams?: { key: string; value: string }[];\n\tinitialValue?: string;\n};\n\nexport type QueryParamtype = { key: string; value: string };\n\nexport enum TEMPLATE_EDITOR {\n\tSEND_GRID = 'sendgrid',\n\tBEE = 'bee',\n}\n\nexport enum TEMPLATE_STATUS {\n\tAPPROVED = 'APPROVED',\n\tDISABLED = 'DISABLED',\n\tFLAGGED = 'FLAGGED',\n\tPENDING = 'PENDING',\n\tDRAFT = 'DRAFT',\n\tREJECTED = 'REJECTED',\n\tPENDING_DELETION = 'PENDING_DELETION',\n\tIN_REVIEW = 'IN REVIEW',\n\tPAUSED = 'PAUSED',\n\tACTIVE = 'ACTIVE',\n\tLIBRARY = 'LIBRARY',\n\tARCHIVED = 'ARCHIVED',\n}\n\nexport enum HEADER_TYPES {\n\tNONE = 'NONE',\n\tTEXT = 'TEXT',\n\tIMAGE = 'IMAGE',\n\tVIDEO = 'VIDEO',\n\tDOCUMENT = 'DOCUMENT',\n}\n\nexport enum ACTIONS_TYPES {\n\tNONE = 'NONE',\n\tCTA_BTN = 'CTA_BTN',\n\tQUICK_REPLY = 'QUICK_REPLY',\n}\n\nexport interface QUICK_REPLY_BUTTON {\n\ttext: string;\n\tflowId: string;\n\tflowName: string;\n}\n\nexport const CUSTOM_URL_NAME = {\n\tvalue: 'custom_link',\n\tlabel: 'Custom URL',\n\tplaceHolder: 'custom placeholder',\n};\n\nexport const STATIC_URL_CTA_OPTION = {\n\tlabel: 'Custom URL (No tracking)',\n\tvalue: 'static_link',\n\tplaceHolder: '{{staticUrl}}',\n};\n\nexport const UNSUBSCRIBE_URL_OPTION = {\n\tlabel: 'Unsubscribe URL',\n\tvalue: '{{unsubscribeUrl}}',\n\tplaceHolder: '{{unsubscribeUrl}}',\n};\n\nexport type GlobalPlaceholderType = {\n\tMARKETING: {\n\t\tcustomer: baseAPITemplateVariableType[];\n\t\tstoreDetails: baseAPITemplateVariableType[];\n\t\torderDetails: baseAPITemplateVariableType[];\n\t\tabandonedCart: baseAPITemplateVariableType[];\n\t};\n\tTRANSACTIONAL: {\n\t\tcustomer: baseAPITemplateVariableType[];\n\t\tstoreDetails: baseAPITemplateVariableType[];\n\t\torderDetails: baseAPITemplateVariableType[];\n\t\tabandonedCart: baseAPITemplateVariableType[];\n\t};\n};\n\nexport type baseAPITemplateVariableType = {\n\ttitle: string;\n\tdefault_value: string;\n\tplaceHolder: string;\n\ttype?: 'string' | 'url';\n};\n\nexport type globalNormalizedPlaceholdersType = {\n\tlabel: string;\n\toptions: SingleOption[];\n};\n\nexport interface ButtonPlaceHolderOptions {\n\tvalue: string;\n\tlabel: string;\n\tplaceHolder: string;\n}\n"],"names":["TEMPLATE_EDITOR","TEMPLATE_STATUS","HEADER_TYPES","ACTIONS_TYPES","CUSTOM_URL_NAME","STATIC_URL_CTA_OPTION","UNSUBSCRIBE_URL_OPTION"],"mappings":"gFAeO,IAAKA,GAAAA,IACXA,EAAA,UAAY,WACZA,EAAA,IAAM,MAFKA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACXA,EAAA,SAAW,WACXA,EAAA,SAAW,WACXA,EAAA,QAAU,UACVA,EAAA,QAAU,UACVA,EAAA,MAAQ,QACRA,EAAA,SAAW,WACXA,EAAA,iBAAmB,mBACnBA,EAAA,UAAY,YACZA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,QAAU,UACVA,EAAA,SAAW,WAZAA,IAAAA,GAAA,CAAA,CAAA,EAeAC,GAAAA,IACXA,EAAA,KAAO,OACPA,EAAA,KAAO,OACPA,EAAA,MAAQ,QACRA,EAAA,MAAQ,QACRA,EAAA,SAAW,WALAA,IAAAA,GAAA,CAAA,CAAA,EAQAC,GAAAA,IACXA,EAAA,KAAO,OACPA,EAAA,QAAU,UACVA,EAAA,YAAc,cAHHA,IAAAA,GAAA,CAAA,CAAA,EAYL,MAAMC,EAAkB,CAC9B,MAAO,cACP,MAAO,aACP,YAAa,oBACd,EAEaC,EAAwB,CACpC,MAAO,2BACP,MAAO,cACP,YAAa,eACd,EAEaC,EAAyB,CACrC,MAAO,kBACP,MAAO,qBACP,YAAa,oBACd"}
1
+ {"version":3,"file":"TemplateMeta.js","sources":["../../../../../src/components/template-preview/models/TemplateMeta.ts"],"sourcesContent":["import type { SingleOption } from '@src/components/dropdown/type';\n\nexport type CUSTOM_VARIABLE = {\n\tvariableName: string;\n\ttype: 'string' | 'link' | 'image' | 'button' | 'date_time';\n\tisEditableVariable: boolean;\n\tupdatedValue: string;\n\tindex?: number;\n\tvariableValue?: string;\n\tqueryParams?: { key: string; value: string }[];\n\tinitialValue?: string;\n};\n\nexport type QueryParamtype = { key: string; value: string };\n\nexport enum TEMPLATE_EDITOR {\n\tSEND_GRID = 'sendgrid',\n\tBEE = 'bee',\n}\n\nexport enum TEMPLATE_STATUS {\n\tAPPROVED = 'APPROVED',\n\tDISABLED = 'DISABLED',\n\tFLAGGED = 'FLAGGED',\n\tPENDING = 'PENDING',\n\tDRAFT = 'DRAFT',\n\tREJECTED = 'REJECTED',\n\tPENDING_DELETION = 'PENDING_DELETION',\n\tIN_REVIEW = 'IN REVIEW',\n\tPAUSED = 'PAUSED',\n\tACTIVE = 'ACTIVE',\n\tLIBRARY = 'LIBRARY',\n}\n\nexport enum HEADER_TYPES {\n\tNONE = 'NONE',\n\tTEXT = 'TEXT',\n\tIMAGE = 'IMAGE',\n\tVIDEO = 'VIDEO',\n\tDOCUMENT = 'DOCUMENT',\n}\n\nexport enum ACTIONS_TYPES {\n\tNONE = 'NONE',\n\tCTA_BTN = 'CTA_BTN',\n\tQUICK_REPLY = 'QUICK_REPLY',\n}\n\nexport interface QUICK_REPLY_BUTTON {\n\ttext: string;\n\tflowId: string;\n\tflowName: string;\n}\n\nexport const CUSTOM_URL_NAME = {\n\tvalue: 'custom_link',\n\tlabel: 'Custom URL',\n\tplaceHolder: 'custom placeholder',\n};\n\nexport const STATIC_URL_CTA_OPTION = {\n\tlabel: 'Custom URL (No tracking)',\n\tvalue: 'static_link',\n\tplaceHolder: '{{staticUrl}}',\n};\n\nexport const UNSUBSCRIBE_URL_OPTION = {\n\tlabel: 'Unsubscribe URL',\n\tvalue: '{{unsubscribeUrl}}',\n\tplaceHolder: '{{unsubscribeUrl}}',\n};\n\nexport type GlobalPlaceholderType = {\n\tMARKETING: {\n\t\tcustomer: baseAPITemplateVariableType[];\n\t\tstoreDetails: baseAPITemplateVariableType[];\n\t\torderDetails: baseAPITemplateVariableType[];\n\t\tabandonedCart: baseAPITemplateVariableType[];\n\t};\n\tTRANSACTIONAL: {\n\t\tcustomer: baseAPITemplateVariableType[];\n\t\tstoreDetails: baseAPITemplateVariableType[];\n\t\torderDetails: baseAPITemplateVariableType[];\n\t\tabandonedCart: baseAPITemplateVariableType[];\n\t};\n};\n\nexport type baseAPITemplateVariableType = {\n\ttitle: string;\n\tdefault_value: string;\n\tplaceHolder: string;\n\ttype?: 'string' | 'url';\n};\n\nexport type globalNormalizedPlaceholdersType = {\n\tlabel: string;\n\toptions: SingleOption[];\n};\n\nexport interface ButtonPlaceHolderOptions {\n\tvalue: string;\n\tlabel: string;\n\tplaceHolder: string;\n}\n"],"names":["TEMPLATE_EDITOR","TEMPLATE_STATUS","HEADER_TYPES","ACTIONS_TYPES","CUSTOM_URL_NAME","STATIC_URL_CTA_OPTION","UNSUBSCRIBE_URL_OPTION"],"mappings":"gFAeO,IAAKA,GAAAA,IACXA,EAAA,UAAY,WACZA,EAAA,IAAM,MAFKA,IAAAA,GAAA,CAAA,CAAA,EAKAC,GAAAA,IACXA,EAAA,SAAW,WACXA,EAAA,SAAW,WACXA,EAAA,QAAU,UACVA,EAAA,QAAU,UACVA,EAAA,MAAQ,QACRA,EAAA,SAAW,WACXA,EAAA,iBAAmB,mBACnBA,EAAA,UAAY,YACZA,EAAA,OAAS,SACTA,EAAA,OAAS,SACTA,EAAA,QAAU,UAXCA,IAAAA,GAAA,CAAA,CAAA,EAcAC,GAAAA,IACXA,EAAA,KAAO,OACPA,EAAA,KAAO,OACPA,EAAA,MAAQ,QACRA,EAAA,MAAQ,QACRA,EAAA,SAAW,WALAA,IAAAA,GAAA,CAAA,CAAA,EAQAC,GAAAA,IACXA,EAAA,KAAO,OACPA,EAAA,QAAU,UACVA,EAAA,YAAc,cAHHA,IAAAA,GAAA,CAAA,CAAA,EAYL,MAAMC,EAAkB,CAC9B,MAAO,cACP,MAAO,aACP,YAAa,oBACd,EAEaC,EAAwB,CACpC,MAAO,2BACP,MAAO,cACP,YAAa,eACd,EAEaC,EAAyB,CACrC,MAAO,kBACP,MAAO,qBACP,YAAa,oBACd"}
@@ -1,7 +1,7 @@
1
- import { jsx as o, jsxs as T } from "react/jsx-runtime";
2
- import { useState as d, useCallback as t } from "react";
3
- import { COLORS as te } from "../../constants/Theme.js";
4
- import { BuilderRoot as ae, Main as re, Rail as ie, Content as se, ContentCard as le } from "./AgentBuilder.styled.js";
1
+ import { jsx as o, jsxs as m } from "react/jsx-runtime";
2
+ import { useState as l, useCallback as t } from "react";
3
+ import { COLORS as oe } from "../../constants/Theme.js";
4
+ import { BuilderRoot as te, Main as ae, Rail as re, Content as ie, ContentCard as se, StepScroll as le } from "./AgentBuilder.styled.js";
5
5
  import { AgentBuilderFooter as de } from "./components/AgentBuilderFooter.js";
6
6
  import { AgentBuilderTopBar as ce } from "./components/AgentBuilderTopBar.js";
7
7
  import { DiscardModal as ue } from "./components/DiscardModal.js";
@@ -14,9 +14,9 @@ import { Step2WhenItStepsIn as Se } from "./steps/Step2WhenItStepsIn.js";
14
14
  import { Step3HowItResponds as be } from "./steps/Step3HowItResponds.js";
15
15
  import { Step4HandoverRules as Ce } from "./steps/Step4HandoverRules.js";
16
16
  import { Spinner as Ae } from "../spinner/Spinner.js";
17
- const De = () => {
18
- const { activeStep: c } = ve();
19
- switch (c) {
17
+ const Le = () => {
18
+ const { activeStep: d } = ve();
19
+ switch (d) {
20
20
  case "about":
21
21
  return /* @__PURE__ */ o(pe, {});
22
22
  case "trigger":
@@ -28,24 +28,24 @@ const De = () => {
28
28
  default:
29
29
  return null;
30
30
  }
31
- }, Le = (c) => {
31
+ }, De = (d) => {
32
32
  const {
33
33
  config: G,
34
34
  onChange: v,
35
- onStepChange: u,
36
- onDiscard: r,
37
- onSaveDraft: i,
38
- onPublish: p,
39
- onBack: g,
40
- onTestAgent: f,
41
- onGoToDashboard: h,
42
- onCreateSubAgent: s,
35
+ onStepChange: c,
36
+ onDiscard: p,
37
+ onSaveDraft: r,
38
+ onPublish: S,
39
+ onBack: u,
40
+ onTestAgent: g,
41
+ onGoToDashboard: f,
42
+ onCreateSubAgent: i,
43
43
  onFetchSubAgent: P,
44
44
  onUpdateSubAgent: w,
45
45
  onImproveSubAgent: M,
46
46
  ...k
47
- } = c, {
48
- value: m,
47
+ } = d, {
48
+ value: h,
49
49
  activeStep: I,
50
50
  availableTools: R,
51
51
  availableSubAgents: x,
@@ -54,17 +54,17 @@ const De = () => {
54
54
  validation: F,
55
55
  applicationType: N,
56
56
  charLimits: O,
57
- isSaving: S,
58
- isPublishing: b,
57
+ isSaving: b,
58
+ isPublishing: C,
59
59
  isLoading: U,
60
60
  footerHint: z = "Changes don’t affect customers until you go live",
61
61
  disableStepNavigation: E,
62
- debugLog: C
63
- } = G, [W, a] = d(null), [A, D] = d(!1), [$, l] = d(!1), [L, y] = d(!1), e = t(
64
- (n, ...oe) => {
65
- C && console.log(`[AgentBuilder] ${n}`, ...oe);
62
+ debugLog: A
63
+ } = G, [W, a] = l(null), [L, D] = l(!1), [$, s] = l(!1), [y, B] = l(!1), e = t(
64
+ (n, ...ne) => {
65
+ A && console.log(`[AgentBuilder] ${n}`, ...ne);
66
66
  },
67
- [C]
67
+ [A]
68
68
  ), q = t(
69
69
  (n) => {
70
70
  e("onChange", n), v(n);
@@ -72,37 +72,35 @@ const De = () => {
72
72
  [e, v]
73
73
  ), J = t(
74
74
  (n) => {
75
- e("onStepChange", n), u?.(n);
75
+ e("onStepChange", n), c?.(n);
76
76
  },
77
- [e, u]
78
- ), K = t(() => {
79
- e("onDiscard"), r();
80
- }, [e, r]), Q = t(() => (e("onSaveDraft"), i()), [e, i]), V = t(() => (e("onPublish"), p()), [e, p]), X = t(() => {
81
- e("onBack"), l(!0);
82
- }, [e]), Y = t(() => {
83
- e("onDiscardAndLeave"), l(!1), r();
84
- }, [e, r]), B = t(async () => {
77
+ [e, c]
78
+ ), K = t(() => (e("onSaveDraft"), r()), [e, r]), Q = t(() => (e("onPublish"), S()), [e, S]), V = t(() => {
79
+ e("onBack"), s(!0);
80
+ }, [e]), X = t(() => {
81
+ e("onDiscardAndLeave"), s(!1), p();
82
+ }, [e, p]), T = t(async () => {
85
83
  e("onSaveDraftAndLeave");
86
- const n = i();
84
+ const n = r();
87
85
  if (n && typeof n.then == "function") {
88
- y(!0);
86
+ B(!0);
89
87
  try {
90
88
  await n;
91
89
  } finally {
92
- y(!1);
90
+ B(!1);
93
91
  }
94
92
  }
95
- l(!1), g?.();
96
- }, [e, i, g]), Z = t(() => {
97
- e("onTestAgent"), f?.();
98
- }, [e, f]), _ = t(() => {
99
- e("onGoToDashboard"), h?.();
100
- }, [e, h]), ee = t(
101
- (n) => (e("onCreateSubAgent", n), s ? s(n) : Promise.reject(new Error("onCreateSubAgent not provided"))),
102
- [e, s]
103
- ), ne = async () => {
93
+ s(!1), u?.();
94
+ }, [e, r, u]), Y = t(() => {
95
+ e("onTestAgent"), g?.();
96
+ }, [e, g]), Z = t(() => {
97
+ e("onGoToDashboard"), f?.();
98
+ }, [e, f]), _ = t(
99
+ (n) => (e("onCreateSubAgent", n), i ? i(n) : Promise.reject(new Error("onCreateSubAgent not provided"))),
100
+ [e, i]
101
+ ), ee = async () => {
104
102
  e("onGoLiveConfirm");
105
- const n = V();
103
+ const n = Q();
106
104
  if (n && typeof n.then == "function") {
107
105
  D(!0);
108
106
  try {
@@ -116,10 +114,10 @@ const De = () => {
116
114
  return /* @__PURE__ */ o(
117
115
  me,
118
116
  {
119
- value: m,
117
+ value: h,
120
118
  onChange: q,
121
119
  activeStep: I,
122
- onStepChange: u ? J : void 0,
120
+ onStepChange: c ? J : void 0,
123
121
  availableTools: R,
124
122
  availableSubAgents: x,
125
123
  availableIntents: j,
@@ -128,25 +126,24 @@ const De = () => {
128
126
  applicationType: N,
129
127
  charLimits: O,
130
128
  disableStepNavigation: E,
131
- onCreateSubAgent: s ? ee : void 0,
129
+ onCreateSubAgent: i ? _ : void 0,
132
130
  onFetchSubAgent: P,
133
131
  onUpdateSubAgent: w,
134
132
  onImproveSubAgent: M,
135
- children: /* @__PURE__ */ T(ae, { "data-test": k["data-test"] ?? "agent-builder", children: [
133
+ children: /* @__PURE__ */ m(te, { "data-test": k["data-test"] ?? "agent-builder", children: [
136
134
  /* @__PURE__ */ o(
137
135
  ce,
138
136
  {
139
- name: m.name,
140
- status: m.status,
141
- onBack: g ? X : void 0,
142
- onDiscard: K,
143
- onSaveDraft: B,
144
- isSaving: S || L
137
+ name: h.name,
138
+ status: h.status,
139
+ onBack: u ? V : void 0,
140
+ onSaveDraft: T,
141
+ isSaving: b || y
145
142
  }
146
143
  ),
147
- /* @__PURE__ */ T(re, { children: [
148
- /* @__PURE__ */ o(ie, { children: /* @__PURE__ */ o(fe, {}) }),
149
- /* @__PURE__ */ o(se, { children: U ? /* @__PURE__ */ o(
144
+ /* @__PURE__ */ m(ae, { children: [
145
+ /* @__PURE__ */ o(re, { children: /* @__PURE__ */ o(fe, {}) }),
146
+ /* @__PURE__ */ o(ie, { children: U ? /* @__PURE__ */ o(
150
147
  "div",
151
148
  {
152
149
  style: {
@@ -155,42 +152,44 @@ const De = () => {
155
152
  justifyContent: "center",
156
153
  height: "100%"
157
154
  },
158
- children: /* @__PURE__ */ o(Ae, { size: "large", color: te.stroke.brand })
155
+ children: /* @__PURE__ */ o(Ae, { size: "large", color: oe.stroke.brand })
159
156
  }
160
- ) : /* @__PURE__ */ o(le, { children: /* @__PURE__ */ o(De, {}) }) })
157
+ ) : /* @__PURE__ */ m(se, { children: [
158
+ /* @__PURE__ */ o(le, { children: /* @__PURE__ */ o(Le, {}) }),
159
+ /* @__PURE__ */ o(
160
+ de,
161
+ {
162
+ footerHint: z,
163
+ onTestAgent: g ? Y : void 0,
164
+ onGoLive: () => {
165
+ e("onGoLive"), a("confirm");
166
+ },
167
+ isPublishing: C || L
168
+ }
169
+ )
170
+ ] }) })
161
171
  ] }),
162
- /* @__PURE__ */ o(
163
- de,
164
- {
165
- footerHint: z,
166
- onTestAgent: f ? Z : void 0,
167
- onGoLive: () => {
168
- e("onGoLive"), a("confirm");
169
- },
170
- isPublishing: b || A
171
- }
172
- ),
173
172
  /* @__PURE__ */ o(
174
173
  ge,
175
174
  {
176
175
  mode: W,
177
176
  onClose: () => a(null),
178
- onConfirm: ne,
177
+ onConfirm: ee,
179
178
  onSaveDraft: () => {
180
- a(null), Q();
179
+ a(null), K();
181
180
  },
182
- onGoToDashboard: h ? _ : void 0,
183
- isPublishing: b || A
181
+ onGoToDashboard: f ? Z : void 0,
182
+ isPublishing: C || L
184
183
  }
185
184
  ),
186
185
  /* @__PURE__ */ o(
187
186
  ue,
188
187
  {
189
188
  open: $,
190
- onClose: () => l(!1),
191
- onDiscard: Y,
192
- onSaveDraft: B,
193
- isSaving: S || L
189
+ onClose: () => s(!1),
190
+ onDiscard: X,
191
+ onSaveDraft: T,
192
+ isSaving: b || y
194
193
  }
195
194
  ),
196
195
  /* @__PURE__ */ o(he, {})
@@ -198,8 +197,8 @@ const De = () => {
198
197
  }
199
198
  );
200
199
  };
201
- Le.displayName = "AgentBuilder";
200
+ De.displayName = "AgentBuilder";
202
201
  export {
203
- Le as AgentBuilder
202
+ De as AgentBuilder
204
203
  };
205
204
  //# sourceMappingURL=AgentBuilder.js.map
@@ -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} 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\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\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// 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 handleDiscard = useCallback(() => {\n\t\tlogAction('onDiscard');\n\t\tonDiscard();\n\t}, [logAction, onDiscard]);\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(() => {\n\t\tlogAction('onTestAgent');\n\t\tonTestAgent?.();\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\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>\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\tonDiscard={handleDiscard}\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<StepContent />\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<AgentBuilderFooter\n\t\t\t\t\tfooterHint={footerHint}\n\t\t\t\t\tonTestAgent={onTestAgent ? handleTestAgent : undefined}\n\t\t\t\t\tonGoLive={() => {\n\t\t\t\t\t\tlogAction('onGoLive');\n\t\t\t\t\t\tsetModalMode('confirm');\n\t\t\t\t\t}}\n\t\t\t\t\tisPublishing={isPublishing || publishingLocal}\n\t\t\t\t/>\n\n\t\t\t\t<GoLiveModal\n\t\t\t\t\tmode={modalMode}\n\t\t\t\t\tonClose={() => setModalMode(null)}\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\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","rest","value","availableTools","availableSubAgents","availableIntents","availableModels","validation","applicationType","charLimits","isSaving","isPublishing","isLoading","footerHint","disableStepNavigation","debugLog","modalMode","setModalMode","useState","publishingLocal","setPublishingLocal","showLeaveConfirm","setShowLeaveConfirm","savingAndLeaving","setSavingAndLeaving","logAction","useCallback","action","args","handleChange","patch","handleStepChange","step","handleDiscard","handleSaveDraft","handlePublish","handleBack","handleDiscardAndLeave","handleSaveDraftAndLeave","result","handleTestAgent","handleGoToDashboard","handleCreateSubAgent","draft","handleConfirmGoLive","jsx","AgentBuilderProvider","BuilderRoot","AgentBuilderTopBar","Main","Rail","StepRail","Content","Spinner","COLORS","ContentCard","AgentBuilderFooter","GoLiveModal","DiscardModal","UndoToast"],"mappings":";;;;;;;;;;;;;;;;AA8BA,MAAMA,KAAwB,MAAM;AACnC,QAAM,EAAE,YAAAC,EAAA,IAAeC,GAAA;AACvB,UAAQD,GAAA;AAAA,IACP,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,YACN,SAAS,MAAMC,EAAoB,EAAK;AAAA,YACxC,WAAWe;AAAA,YACX,aAAaC;AAAA,YACb,UAAU5B,KAAYa;AAAA,UAAA;AAAA,QAAA;AAAA,0BAGtBoC,IAAA,CAAA,CAAU;AAAA,MAAA,EAAA,CACZ;AAAA,IAAA;AAAA,EAAA;AAGH;AAEAzE,GAAa,cAAc;"}
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\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\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// 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(() => {\n\t\tlogAction('onTestAgent');\n\t\tonTestAgent?.();\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\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>\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\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={() => setModalMode(null)}\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\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","rest","value","availableTools","availableSubAgents","availableIntents","availableModels","validation","applicationType","charLimits","isSaving","isPublishing","isLoading","footerHint","disableStepNavigation","debugLog","modalMode","setModalMode","useState","publishingLocal","setPublishingLocal","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","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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,CACZ;AAAA,IAAA;AAAA,EAAA;AAGH;AAEAzE,GAAa,cAAc;"}
@@ -22,6 +22,9 @@ export declare const Content: import('styled-components').StyledComponent<"div",
22
22
  export declare const ContentCard: import('styled-components').StyledComponent<"div", any, {
23
23
  className: "bik-content-card";
24
24
  }, "className">;
25
+ export declare const StepScroll: import('styled-components').StyledComponent<"div", any, {
26
+ className: "bik-step-scroll";
27
+ }, "className">;
25
28
  export declare const Footer: import('styled-components').StyledComponent<"div", any, {
26
29
  className: "bik-footer";
27
30
  }, "className">;
@@ -45,6 +48,9 @@ export declare const StepBadge: import('styled-components').StyledComponent<"div
45
48
  export declare const SectionHeaderWrap: import('styled-components').StyledComponent<"div", any, {
46
49
  className: "bik-section-header-wrap";
47
50
  }, "className">;
51
+ export declare const SectionBodyWrap: import('styled-components').StyledComponent<"div", any, {
52
+ className: "bik-section-header-wrap";
53
+ }, "className">;
48
54
  export declare const FieldBlock: import('styled-components').StyledComponent<"div", any, {
49
55
  className: "bik-field-block";
50
56
  }, "className">;
@@ -83,14 +89,16 @@ export declare const ChipCloseButton: import('styled-components').StyledComponen
83
89
  export declare const AddChipButton: import('styled-components').StyledComponent<"button", any, {
84
90
  className: "bik-add-chip-button";
85
91
  }, "className">;
92
+ export declare const Step3Root: import('styled-components').StyledComponent<"div", any, {
93
+ className: "bik-agent-step bik-agent-step--response";
94
+ }, "className">;
86
95
  export declare const Step3Grid: import('styled-components').StyledComponent<"div", any, {
87
96
  className: "bik-step3-grid";
97
+ } & {
98
+ $grow?: boolean | undefined;
88
99
  }, "className">;
89
- export declare const Step3Main: import('styled-components').StyledComponent<"div", any, {
90
- className: "bik-step3-main";
91
- }, "className">;
92
- export declare const Step3Side: import('styled-components').StyledComponent<"div", any, {
93
- className: "bik-step3-side";
100
+ export declare const Step3Divider: import('styled-components').StyledComponent<"div", any, {
101
+ className: "bik-step3-divider";
94
102
  }, "className">;
95
103
  export declare const SideSection: import('styled-components').StyledComponent<"div", any, {
96
104
  className: "bik-side-section";