@bikdotai/bik-component-library 0.0.836 → 0.0.837-beta.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/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 +41 -23
- package/dist/cjs/components/agent-builder/AgentBuilder.styled.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/AgentBuilderFooter.js +1 -1
- package/dist/cjs/components/agent-builder/components/AgentBuilderFooter.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/AgentBuilderTopBar.js +1 -1
- package/dist/cjs/components/agent-builder/components/AgentBuilderTopBar.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/CreateSubAgentPanel.js +1 -1
- package/dist/cjs/components/agent-builder/components/CreateSubAgentPanel.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/DiscardModal.js +1 -1
- package/dist/cjs/components/agent-builder/components/DiscardModal.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/GoLiveModal.js +1 -1
- package/dist/cjs/components/agent-builder/components/GoLiveModal.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/MentionPicker.js +2 -2
- package/dist/cjs/components/agent-builder/components/MentionPicker.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/RestApiToolPanel.js +1 -1
- package/dist/cjs/components/agent-builder/components/RestApiToolPanel.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/SelectableListSection.js +6 -6
- package/dist/cjs/components/agent-builder/components/SelectableListSection.js.map +1 -1
- package/dist/cjs/components/agent-builder/components/StepSectionHeader.js +1 -1
- package/dist/cjs/components/agent-builder/components/StepSectionHeader.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 +3 -1
- package/dist/cjs/components/agent-builder/steps/Step2WhenItStepsIn.js.map +1 -1
- package/dist/cjs/components/agent-builder/steps/Step3HowItResponds.js +1 -1
- package/dist/cjs/components/agent-builder/steps/Step3HowItResponds.js.map +1 -1
- package/dist/cjs/components/agent-builder/steps/Step4HandoverRules.js +1 -1
- package/dist/cjs/components/agent-builder/steps/Step4HandoverRules.js.map +1 -1
- package/dist/cjs/components/agent-builder/utils/mentionSerialization.js +5 -3
- package/dist/cjs/components/agent-builder/utils/mentionSerialization.js.map +1 -1
- package/dist/cjs/components/agent-listing/AgentListing.js +1 -1
- package/dist/cjs/components/agent-listing/AgentListing.js.map +1 -1
- package/dist/cjs/components/agent-listing/AgentTable.js +1 -1
- package/dist/cjs/components/agent-listing/AgentTable.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/components/agent-listing/AgentTableShimmer.js +2 -0
- package/dist/cjs/components/agent-listing/AgentTableShimmer.js.map +1 -0
- package/dist/cjs/components/button/Button.styled.js +1 -0
- package/dist/cjs/components/button/Button.styled.js.map +1 -1
- package/dist/cjs/components/dropdown/Dropdown.js +1 -1
- package/dist/cjs/components/dropdown/Dropdown.js.map +1 -1
- package/dist/cjs/editor/BikEditor.js +1 -1
- package/dist/cjs/editor/BikEditor.js.map +1 -1
- package/dist/cjs/editor/BikEditor.styles.js +74 -42
- package/dist/cjs/editor/BikEditor.styles.js.map +1 -1
- package/dist/esm/components/agent-builder/AgentBuilder.js +80 -77
- package/dist/esm/components/agent-builder/AgentBuilder.js.map +1 -1
- package/dist/esm/components/agent-builder/AgentBuilder.styled.d.ts +3 -0
- package/dist/esm/components/agent-builder/AgentBuilder.styled.js +106 -84
- package/dist/esm/components/agent-builder/AgentBuilder.styled.js.map +1 -1
- package/dist/esm/components/agent-builder/__fixtures__/agentValue.d.ts +11 -0
- package/dist/esm/components/agent-builder/components/AgentBuilderFooter.js +29 -21
- package/dist/esm/components/agent-builder/components/AgentBuilderFooter.js.map +1 -1
- package/dist/esm/components/agent-builder/components/AgentBuilderTopBar.js +21 -21
- package/dist/esm/components/agent-builder/components/AgentBuilderTopBar.js.map +1 -1
- package/dist/esm/components/agent-builder/components/CreateSubAgentPanel.js +24 -23
- package/dist/esm/components/agent-builder/components/CreateSubAgentPanel.js.map +1 -1
- package/dist/esm/components/agent-builder/components/DiscardModal.js +15 -8
- package/dist/esm/components/agent-builder/components/DiscardModal.js.map +1 -1
- package/dist/esm/components/agent-builder/components/GoLiveModal.js +11 -11
- package/dist/esm/components/agent-builder/components/GoLiveModal.js.map +1 -1
- package/dist/esm/components/agent-builder/components/MentionPicker.js +41 -40
- package/dist/esm/components/agent-builder/components/MentionPicker.js.map +1 -1
- package/dist/esm/components/agent-builder/components/RestApiToolPanel.js +22 -21
- package/dist/esm/components/agent-builder/components/RestApiToolPanel.js.map +1 -1
- package/dist/esm/components/agent-builder/components/SelectableListSection.d.ts +13 -4
- package/dist/esm/components/agent-builder/components/SelectableListSection.js +167 -144
- package/dist/esm/components/agent-builder/components/SelectableListSection.js.map +1 -1
- package/dist/esm/components/agent-builder/components/StepSectionHeader.js +7 -7
- package/dist/esm/components/agent-builder/components/StepSectionHeader.js.map +1 -1
- package/dist/esm/components/agent-builder/context/AgentBuilderContext.js +104 -103
- package/dist/esm/components/agent-builder/context/AgentBuilderContext.js.map +1 -1
- package/dist/esm/components/agent-builder/steps/Step2WhenItStepsIn.js +84 -82
- package/dist/esm/components/agent-builder/steps/Step2WhenItStepsIn.js.map +1 -1
- package/dist/esm/components/agent-builder/steps/Step3HowItResponds.js +20 -19
- package/dist/esm/components/agent-builder/steps/Step3HowItResponds.js.map +1 -1
- package/dist/esm/components/agent-builder/steps/Step4HandoverRules.js +23 -79
- package/dist/esm/components/agent-builder/steps/Step4HandoverRules.js.map +1 -1
- package/dist/esm/components/agent-builder/utils/mentionSerialization.js +37 -25
- package/dist/esm/components/agent-builder/utils/mentionSerialization.js.map +1 -1
- package/dist/esm/components/agent-listing/AgentListing.js +70 -65
- package/dist/esm/components/agent-listing/AgentListing.js.map +1 -1
- package/dist/esm/components/agent-listing/AgentTable.d.ts +2 -0
- package/dist/esm/components/agent-listing/AgentTable.js +16 -15
- package/dist/esm/components/agent-listing/AgentTable.js.map +1 -1
- package/dist/esm/components/agent-listing/AgentTableRow.js +7 -7
- package/dist/esm/components/agent-listing/AgentTableRow.js.map +1 -1
- package/dist/esm/components/agent-listing/AgentTableShimmer.d.ts +12 -0
- package/dist/esm/components/agent-listing/AgentTableShimmer.js +20 -0
- package/dist/esm/components/agent-listing/AgentTableShimmer.js.map +1 -0
- package/dist/esm/components/agent-listing/__fixtures__/agents.d.ts +3 -0
- package/dist/esm/components/button/Button.styled.js +25 -19
- package/dist/esm/components/button/Button.styled.js.map +1 -1
- package/dist/esm/components/dropdown/Dropdown.js +18 -13
- package/dist/esm/components/dropdown/Dropdown.js.map +1 -1
- package/dist/esm/editor/BikEditor.js +173 -160
- package/dist/esm/editor/BikEditor.js.map +1 -1
- package/dist/esm/editor/BikEditor.styles.d.ts +20 -3
- package/dist/esm/editor/BikEditor.styles.js +78 -44
- package/dist/esm/editor/BikEditor.styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import e, { css as
|
|
2
|
-
import { COLORS as t } from "../../constants/Theme.js";
|
|
3
|
-
const s =
|
|
1
|
+
import e, { css as r } from "styled-components";
|
|
2
|
+
import { COLORS as t, BASE_COLORS as i } from "../../constants/Theme.js";
|
|
3
|
+
const s = r`
|
|
4
4
|
display: flex;
|
|
5
5
|
align-items: center;
|
|
6
6
|
justify-content: center;
|
|
@@ -15,14 +15,20 @@ const s = i`
|
|
|
15
15
|
&:hover {
|
|
16
16
|
background: ${t.surface.subdued};
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
&:disabled {
|
|
20
|
+
cursor: not-allowed;
|
|
21
|
+
opacity: 0.5;
|
|
22
|
+
background: transparent;
|
|
23
|
+
}
|
|
24
|
+
`, d = e.div.attrs({ className: "bik-builder-root" })`
|
|
19
25
|
display: flex;
|
|
20
26
|
flex-direction: column;
|
|
21
27
|
height: 100%;
|
|
22
28
|
width: 100%;
|
|
23
29
|
min-height: 0;
|
|
24
30
|
background: ${t.surface.standard};
|
|
25
|
-
`,
|
|
31
|
+
`, l = e.div.attrs({ className: "bik-top-bar" })`
|
|
26
32
|
display: flex;
|
|
27
33
|
align-items: center;
|
|
28
34
|
justify-content: space-between;
|
|
@@ -30,11 +36,11 @@ const s = i`
|
|
|
30
36
|
padding: 12px 16px;
|
|
31
37
|
border-bottom: 1px solid ${t.stroke.primary};
|
|
32
38
|
flex-shrink: 0;
|
|
33
|
-
`,
|
|
39
|
+
`, c = e.div.attrs({ className: "bik-top-bar-side" })`
|
|
34
40
|
display: flex;
|
|
35
41
|
align-items: center;
|
|
36
42
|
gap: 8px;
|
|
37
|
-
`,
|
|
43
|
+
`, p = e.button.attrs({ className: "bik-back-button" })`
|
|
38
44
|
display: flex;
|
|
39
45
|
align-items: center;
|
|
40
46
|
justify-content: center;
|
|
@@ -49,18 +55,18 @@ const s = i`
|
|
|
49
55
|
&:hover {
|
|
50
56
|
background: ${t.surface.subdued};
|
|
51
57
|
}
|
|
52
|
-
`,
|
|
58
|
+
`, x = e.div.attrs({ className: "bik-main" })`
|
|
53
59
|
display: flex;
|
|
54
60
|
flex: 1;
|
|
55
61
|
min-height: 0;
|
|
56
|
-
`,
|
|
62
|
+
`, b = e.div.attrs({ className: "bik-rail" })`
|
|
57
63
|
width: 234px;
|
|
58
64
|
flex-shrink: 0;
|
|
59
65
|
border-right: 1px solid ${t.stroke.primary};
|
|
60
66
|
padding: 16px;
|
|
61
67
|
overflow-y: auto;
|
|
62
68
|
background: ${t.surface.standard};
|
|
63
|
-
`,
|
|
69
|
+
`, g = e.div.attrs({ className: "bik-content" })`
|
|
64
70
|
flex: 1;
|
|
65
71
|
min-width: 0;
|
|
66
72
|
min-height: 0;
|
|
@@ -69,7 +75,7 @@ const s = i`
|
|
|
69
75
|
flex-direction: column;
|
|
70
76
|
padding: 16px;
|
|
71
77
|
background: ${t.surface.standard};
|
|
72
|
-
`,
|
|
78
|
+
`, m = e.div.attrs({ className: "bik-content-card" })`
|
|
73
79
|
flex: 1;
|
|
74
80
|
min-height: 0;
|
|
75
81
|
display: flex;
|
|
@@ -78,11 +84,11 @@ const s = i`
|
|
|
78
84
|
border: 1px solid ${t.stroke.primary};
|
|
79
85
|
border-radius: 8px;
|
|
80
86
|
box-sizing: border-box;
|
|
81
|
-
`,
|
|
87
|
+
`, u = e.div.attrs({ className: "bik-step-scroll" })`
|
|
82
88
|
flex: 1;
|
|
83
89
|
min-height: 0;
|
|
84
90
|
overflow-y: auto;
|
|
85
|
-
`,
|
|
91
|
+
`, f = e.div.attrs({ className: "bik-footer" })`
|
|
86
92
|
display: flex;
|
|
87
93
|
align-items: center;
|
|
88
94
|
justify-content: space-between;
|
|
@@ -91,20 +97,20 @@ const s = i`
|
|
|
91
97
|
border-top: 1px solid ${t.stroke.primary};
|
|
92
98
|
flex-shrink: 0;
|
|
93
99
|
box-shadow: 0px -2px 12px 0px #0000000a;
|
|
94
|
-
`,
|
|
100
|
+
`, h = e.div.attrs({ className: "bik-footer-hint" })`
|
|
95
101
|
display: flex;
|
|
96
102
|
align-items: center;
|
|
97
103
|
gap: 6px;
|
|
98
|
-
`,
|
|
104
|
+
`, k = e.div.attrs({
|
|
99
105
|
className: "bik-footer-actions"
|
|
100
106
|
})`
|
|
101
107
|
display: flex;
|
|
102
108
|
align-items: center;
|
|
103
109
|
gap: 8px;
|
|
104
|
-
`,
|
|
110
|
+
`, y = e.div.attrs({ className: "bik-rail-list" })`
|
|
105
111
|
display: flex;
|
|
106
112
|
flex-direction: column;
|
|
107
|
-
`,
|
|
113
|
+
`, w = e.button.attrs({ className: "bik-rail-item" })`
|
|
108
114
|
position: relative;
|
|
109
115
|
display: flex;
|
|
110
116
|
align-items: flex-start;
|
|
@@ -136,7 +142,7 @@ const s = i`
|
|
|
136
142
|
border-left: 1px dashed #e0e0e0;
|
|
137
143
|
pointer-events: none;
|
|
138
144
|
}
|
|
139
|
-
`,
|
|
145
|
+
`, v = e.div.attrs({ className: "bik-step-badge" })`
|
|
140
146
|
width: 20px;
|
|
141
147
|
height: 20px;
|
|
142
148
|
flex-shrink: 0;
|
|
@@ -150,7 +156,7 @@ const s = i`
|
|
|
150
156
|
line-height: 12px;
|
|
151
157
|
background: ${(a) => a.state === "complete" ? t.background.inverseLight : a.state === "active" ? t.background.brandLight : t.background.base};
|
|
152
158
|
color: ${(a) => a.state === "complete" ? t.surface.standard : a.state === "active" ? t.background.inverseLight : t.content.secondary};
|
|
153
|
-
`,
|
|
159
|
+
`, N = e.div.attrs({
|
|
154
160
|
className: "bik-section-header-wrap"
|
|
155
161
|
})`
|
|
156
162
|
display: flex;
|
|
@@ -158,24 +164,24 @@ const s = i`
|
|
|
158
164
|
gap: 4px;
|
|
159
165
|
padding: 16px;
|
|
160
166
|
border-bottom: 1px solid ${t.stroke.primary};
|
|
161
|
-
`,
|
|
167
|
+
`, $ = e.div.attrs({
|
|
162
168
|
className: "bik-section-header-wrap"
|
|
163
169
|
})`
|
|
164
170
|
display: flex;
|
|
165
171
|
flex-direction: column;
|
|
166
172
|
gap: 16px;
|
|
167
173
|
padding: 16px;
|
|
168
|
-
`,
|
|
174
|
+
`, S = e.div.attrs({ className: "bik-field-block" })`
|
|
169
175
|
display: flex;
|
|
170
176
|
flex-direction: column;
|
|
171
177
|
gap: 8px;
|
|
172
|
-
`,
|
|
178
|
+
`, B = e.div.attrs({
|
|
173
179
|
className: "bik-field-label-row"
|
|
174
180
|
})`
|
|
175
181
|
display: flex;
|
|
176
182
|
align-items: center;
|
|
177
183
|
justify-content: space-between;
|
|
178
|
-
`,
|
|
184
|
+
`, R = e.div.attrs({
|
|
179
185
|
className: "bik-ai-text-area-shell"
|
|
180
186
|
})`
|
|
181
187
|
display: flex;
|
|
@@ -187,7 +193,7 @@ const s = i`
|
|
|
187
193
|
gap: 8px;
|
|
188
194
|
min-height: ${(a) => a.minHeight ?? "120px"};
|
|
189
195
|
background: ${t.surface.standard};
|
|
190
|
-
`,
|
|
196
|
+
`, C = e.textarea.attrs({
|
|
191
197
|
className: "bik-ai-text-area-input"
|
|
192
198
|
})`
|
|
193
199
|
flex: 1;
|
|
@@ -204,34 +210,34 @@ const s = i`
|
|
|
204
210
|
&::placeholder {
|
|
205
211
|
color: ${t.content.placeholder};
|
|
206
212
|
}
|
|
207
|
-
`,
|
|
213
|
+
`, A = e.div.attrs({ className: "bik-card-row" })`
|
|
208
214
|
display: flex;
|
|
209
215
|
gap: 12px;
|
|
210
|
-
`,
|
|
216
|
+
`, j = e.button.attrs({ className: "bik-radio-card" })`
|
|
211
217
|
flex: 1;
|
|
212
218
|
display: flex;
|
|
213
219
|
align-items: flex-start;
|
|
214
220
|
gap: 12px;
|
|
215
221
|
padding: 16px;
|
|
216
222
|
border: 1px solid
|
|
217
|
-
${(a) => a.selected ?
|
|
223
|
+
${(a) => a.selected ? i.brand[800] : t.stroke.primary};
|
|
218
224
|
background: ${(a) => a.selected ? t.background.brandLight : t.surface.standard};
|
|
219
225
|
border-radius: 8px;
|
|
220
226
|
cursor: pointer;
|
|
221
227
|
text-align: left;
|
|
222
228
|
width: 100%;
|
|
223
|
-
`,
|
|
229
|
+
`, L = e.div.attrs({
|
|
224
230
|
className: "bik-radio-card-text"
|
|
225
231
|
})`
|
|
226
232
|
display: flex;
|
|
227
233
|
flex-direction: column;
|
|
228
234
|
gap: 4px;
|
|
229
|
-
`,
|
|
235
|
+
`, I = e.div.attrs({ className: "bik-chip-wrap" })`
|
|
230
236
|
display: flex;
|
|
231
237
|
flex-wrap: wrap;
|
|
232
238
|
align-items: center;
|
|
233
239
|
gap: 8px;
|
|
234
|
-
`,
|
|
240
|
+
`, T = e.div.attrs({ className: "bik-intent-chip" })`
|
|
235
241
|
display: inline-flex;
|
|
236
242
|
align-items: center;
|
|
237
243
|
gap: 6px;
|
|
@@ -239,7 +245,7 @@ const s = i`
|
|
|
239
245
|
border: 1px solid ${t.stroke.primary};
|
|
240
246
|
border-radius: 4px;
|
|
241
247
|
background: ${t.surface.standard};
|
|
242
|
-
`,
|
|
248
|
+
`, F = e.button.attrs({
|
|
243
249
|
className: "bik-chip-close-button"
|
|
244
250
|
})`
|
|
245
251
|
display: flex;
|
|
@@ -249,7 +255,8 @@ const s = i`
|
|
|
249
255
|
background: transparent;
|
|
250
256
|
padding: 0;
|
|
251
257
|
cursor: pointer;
|
|
252
|
-
|
|
258
|
+
`;
|
|
259
|
+
e.button.attrs({
|
|
253
260
|
className: "bik-add-chip-button"
|
|
254
261
|
})`
|
|
255
262
|
display: inline-flex;
|
|
@@ -260,7 +267,8 @@ const s = i`
|
|
|
260
267
|
border-radius: 4px;
|
|
261
268
|
background: transparent;
|
|
262
269
|
cursor: pointer;
|
|
263
|
-
|
|
270
|
+
`;
|
|
271
|
+
const z = e.div.attrs({
|
|
264
272
|
className: "bik-agent-step bik-agent-step--response"
|
|
265
273
|
})`
|
|
266
274
|
display: flex;
|
|
@@ -282,11 +290,11 @@ const s = i`
|
|
|
282
290
|
|
|
283
291
|
/* Fill the remaining card height so a full-height child (e.g. the Step 3
|
|
284
292
|
column divider) can stretch all the way down to the footer. */
|
|
285
|
-
${(a) => a.$grow &&
|
|
293
|
+
${(a) => a.$grow && r`
|
|
286
294
|
flex: 1;
|
|
287
295
|
min-height: 0;
|
|
288
296
|
`}
|
|
289
|
-
`,
|
|
297
|
+
`, D = e.div.attrs({
|
|
290
298
|
className: "bik-step3-divider"
|
|
291
299
|
})`
|
|
292
300
|
width: 1px;
|
|
@@ -296,27 +304,29 @@ const s = i`
|
|
|
296
304
|
@media (max-width: 1100px) {
|
|
297
305
|
display: none;
|
|
298
306
|
}
|
|
299
|
-
`,
|
|
307
|
+
`, H = e.div.attrs({ className: "bik-side-section" })`
|
|
300
308
|
display: flex;
|
|
301
309
|
flex-direction: column;
|
|
302
310
|
gap: 8px;
|
|
303
|
-
`,
|
|
311
|
+
`, O = e.div.attrs({
|
|
304
312
|
className: "bik-side-section-header"
|
|
305
313
|
})`
|
|
306
314
|
display: flex;
|
|
307
315
|
align-items: center;
|
|
308
316
|
justify-content: space-between;
|
|
309
|
-
`,
|
|
317
|
+
`, W = e.button.attrs({
|
|
310
318
|
className: "bik-add-icon-button"
|
|
311
319
|
})`
|
|
312
320
|
${s}
|
|
313
|
-
|
|
321
|
+
background: ${t.surface.standard};
|
|
322
|
+
border: 1px solid ${t.stroke.primary};
|
|
323
|
+
`, E = e.div.attrs({
|
|
314
324
|
className: "bik-source-button-row"
|
|
315
325
|
})`
|
|
316
326
|
display: flex;
|
|
317
327
|
flex-wrap: wrap;
|
|
318
328
|
gap: 8px;
|
|
319
|
-
`,
|
|
329
|
+
`, G = e.button.attrs({
|
|
320
330
|
className: "bik-source-button"
|
|
321
331
|
})`
|
|
322
332
|
display: flex;
|
|
@@ -332,7 +342,7 @@ const s = i`
|
|
|
332
342
|
&:hover {
|
|
333
343
|
background: ${t.surface.subdued};
|
|
334
344
|
}
|
|
335
|
-
`,
|
|
345
|
+
`, _ = e.div.attrs({
|
|
336
346
|
className: "bik-selectable-row"
|
|
337
347
|
})`
|
|
338
348
|
display: flex;
|
|
@@ -348,7 +358,7 @@ const s = i`
|
|
|
348
358
|
& > svg {
|
|
349
359
|
flex-shrink: 0;
|
|
350
360
|
}
|
|
351
|
-
`,
|
|
361
|
+
`, q = e.div.attrs({ className: "bik-row-text" })`
|
|
352
362
|
flex: 1;
|
|
353
363
|
min-width: 0;
|
|
354
364
|
overflow: hidden;
|
|
@@ -372,22 +382,34 @@ e.button.attrs({
|
|
|
372
382
|
padding: 0;
|
|
373
383
|
cursor: pointer;
|
|
374
384
|
`;
|
|
375
|
-
const
|
|
385
|
+
const J = e.div.attrs({ className: "bik-row-actions" })`
|
|
376
386
|
display: flex;
|
|
377
387
|
align-items: center;
|
|
378
388
|
gap: 4px;
|
|
379
389
|
flex-shrink: 0;
|
|
380
|
-
`,
|
|
390
|
+
`, K = e.span.attrs({
|
|
381
391
|
className: "bik-row-action-divider"
|
|
382
392
|
})`
|
|
383
393
|
width: 1px;
|
|
384
394
|
align-self: stretch;
|
|
385
395
|
margin: 4px 0;
|
|
386
396
|
background: ${t.stroke.primary};
|
|
387
|
-
`,
|
|
397
|
+
`, P = e.button.attrs({
|
|
388
398
|
className: "bik-row-menu-button"
|
|
389
399
|
})`
|
|
390
400
|
${s}
|
|
401
|
+
`, Q = e.div.attrs({
|
|
402
|
+
className: "bik-draft-button-scope"
|
|
403
|
+
})`
|
|
404
|
+
display: flex;
|
|
405
|
+
flex: 1;
|
|
406
|
+
|
|
407
|
+
button {
|
|
408
|
+
border-color: ${i.brand[800]};
|
|
409
|
+
}
|
|
410
|
+
button .text {
|
|
411
|
+
color: ${i.brand[800]};
|
|
412
|
+
}
|
|
391
413
|
`, U = e.div.attrs({ className: "bik-modal-body" })`
|
|
392
414
|
padding: 24px;
|
|
393
415
|
display: flex;
|
|
@@ -415,49 +437,49 @@ e.div.attrs({
|
|
|
415
437
|
gap: 8px;
|
|
416
438
|
`;
|
|
417
439
|
export {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
R as
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
440
|
+
W as AddIconButton,
|
|
441
|
+
C as AiTextAreaInput,
|
|
442
|
+
R as AiTextAreaShell,
|
|
443
|
+
p as BackButton,
|
|
444
|
+
d as BuilderRoot,
|
|
445
|
+
A as CardRow,
|
|
446
|
+
F as ChipCloseButton,
|
|
447
|
+
I as ChipWrap,
|
|
448
|
+
g as Content,
|
|
449
|
+
m as ContentCard,
|
|
450
|
+
Q as DraftButtonScope,
|
|
451
|
+
S as FieldBlock,
|
|
452
|
+
B as FieldLabelRow,
|
|
453
|
+
f as Footer,
|
|
454
|
+
k as FooterActions,
|
|
455
|
+
h as FooterHint,
|
|
456
|
+
T as IntentChip,
|
|
457
|
+
x as Main,
|
|
436
458
|
X as ModalActions,
|
|
437
459
|
U as ModalBody,
|
|
438
460
|
V as ModalIcon,
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
461
|
+
j as RadioCard,
|
|
462
|
+
L as RadioCardText,
|
|
463
|
+
b as Rail,
|
|
464
|
+
w as RailItem,
|
|
465
|
+
y as RailList,
|
|
466
|
+
K as RowActionDivider,
|
|
467
|
+
J as RowActions,
|
|
468
|
+
P as RowMenuButton,
|
|
469
|
+
q as RowText,
|
|
470
|
+
$ as SectionBodyWrap,
|
|
471
|
+
N as SectionHeaderWrap,
|
|
472
|
+
_ as SelectableRow,
|
|
473
|
+
H as SideSection,
|
|
474
|
+
O as SideSectionHeader,
|
|
475
|
+
G as SourceButton,
|
|
476
|
+
E as SourceButtonRow,
|
|
477
|
+
D as Step3Divider,
|
|
456
478
|
M as Step3Grid,
|
|
457
479
|
z as Step3Root,
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
480
|
+
v as StepBadge,
|
|
481
|
+
u as StepScroll,
|
|
482
|
+
l as TopBar,
|
|
483
|
+
c as TopBarSide
|
|
462
484
|
};
|
|
463
485
|
//# sourceMappingURL=AgentBuilder.styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentBuilder.styled.js","sources":["../../../../src/components/agent-builder/AgentBuilder.styled.tsx"],"sourcesContent":["import styled, { css } from 'styled-components';\nimport { COLORS } from '@src/constants/Theme';\n\n// Shared look for the 24×24 transparent icon buttons (add / row-menu / close).\nconst iconActionButton = css`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 24px;\n\theight: 24px;\n\tborder: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tcursor: pointer;\n\tborder-radius: 4px;\n\n\t&:hover {\n\t\tbackground: ${COLORS.surface.subdued};\n\t}\n`;\n\nexport const BuilderRoot = styled.div.attrs({ className: 'bik-builder-root' })`\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 100%;\n\twidth: 100%;\n\tmin-height: 0;\n\tbackground: ${COLORS.surface.standard};\n`;\n\nexport const TopBar = styled.div.attrs({ className: 'bik-top-bar' })`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\theight: 56px;\n\tpadding: 12px 16px;\n\tborder-bottom: 1px solid ${COLORS.stroke.primary};\n\tflex-shrink: 0;\n`;\n\nexport const TopBarSide = styled.div.attrs({ className: 'bik-top-bar-side' })`\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n`;\n\nexport const BackButton = styled.button.attrs({ className: 'bik-back-button' })`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 28px;\n\theight: 28px;\n\tborder: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tcursor: pointer;\n\tborder-radius: 4px;\n\n\t&:hover {\n\t\tbackground: ${COLORS.surface.subdued};\n\t}\n`;\n\nexport const Main = styled.div.attrs({ className: 'bik-main' })`\n\tdisplay: flex;\n\tflex: 1;\n\tmin-height: 0;\n`;\n\nexport const Rail = styled.div.attrs({ className: 'bik-rail' })`\n\twidth: 234px;\n\tflex-shrink: 0;\n\tborder-right: 1px solid ${COLORS.stroke.primary};\n\tpadding: 16px;\n\toverflow-y: auto;\n\tbackground: ${COLORS.surface.standard};\n`;\n\nexport const Content = styled.div.attrs({ className: 'bik-content' })`\n\tflex: 1;\n\tmin-width: 0;\n\tmin-height: 0;\n\toverflow: hidden;\n\tdisplay: flex;\n\tflex-direction: column;\n\tpadding: 16px;\n\tbackground: ${COLORS.surface.standard};\n`;\n\nexport const ContentCard = styled.div.attrs({ className: 'bik-content-card' })`\n\tflex: 1;\n\tmin-height: 0;\n\tdisplay: flex;\n\tflex-direction: column;\n\toverflow: hidden;\n\tborder: 1px solid ${COLORS.stroke.primary};\n\tborder-radius: 8px;\n\tbox-sizing: border-box;\n`;\n\n// Scrollable step body inside the card; the footer stays pinned below it.\nexport const StepScroll = styled.div.attrs({ className: 'bik-step-scroll' })`\n\tflex: 1;\n\tmin-height: 0;\n\toverflow-y: auto;\n`;\n\nexport const Footer = styled.div.attrs({ className: 'bik-footer' })`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tmin-height: 56px;\n\tpadding: 12px 16px;\n\tborder-top: 1px solid ${COLORS.stroke.primary};\n\tflex-shrink: 0;\n\tbox-shadow: 0px -2px 12px 0px #0000000a;\n`;\n\nexport const FooterHint = styled.div.attrs({ className: 'bik-footer-hint' })`\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 6px;\n`;\n\nexport const FooterActions = styled.div.attrs({\n\tclassName: 'bik-footer-actions',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n`;\n\n// ── Step rail items ─────────────────────────────────────────────────────────\n\nexport const RailList = styled.div.attrs({ className: 'bik-rail-list' })`\n\tdisplay: flex;\n\tflex-direction: column;\n`;\n\nexport const RailItem = styled.button.attrs({ className: 'bik-rail-item' })`\n\tposition: relative;\n\tdisplay: flex;\n\talign-items: flex-start;\n\tgap: 8px;\n\t/* Bottom padding leaves room for the connector down to the next badge. */\n\tpadding: 0 0 24px;\n\tborder: none;\n\tbackground: transparent;\n\tcursor: pointer;\n\ttext-align: left;\n\twidth: 100%;\n\n\t&:last-child {\n\t\tpadding-bottom: 0;\n\t}\n\n\t&:disabled {\n\t\tcursor: default;\n\t}\n\n\t/* Dashed connector line between consecutive step badges (centered on the badge). */\n\t&:not(:last-child)::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tleft: 9px;\n\t\ttop: 20px;\n\t\twidth: 0;\n\t\theight: 24px;\n\t\tborder-left: 1px dashed #e0e0e0;\n\t\tpointer-events: none;\n\t}\n`;\n\nexport const StepBadge = styled.div.attrs({ className: 'bik-step-badge' })<{\n\tstate: 'active' | 'complete' | 'inactive';\n}>`\n\twidth: 20px;\n\theight: 20px;\n\tflex-shrink: 0;\n\tborder-radius: 50%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tfont-family: Inter;\n\tfont-size: 10px;\n\tfont-weight: 400;\n\tline-height: 12px;\n\tbackground: ${(p) =>\n\t\tp.state === 'complete'\n\t\t\t? COLORS.background.inverseLight\n\t\t\t: p.state === 'active'\n\t\t\t? COLORS.background.brandLight\n\t\t\t: COLORS.background.base};\n\tcolor: ${(p) =>\n\t\tp.state === 'complete'\n\t\t\t? COLORS.surface.standard\n\t\t\t: p.state === 'active'\n\t\t\t? COLORS.background.inverseLight\n\t\t\t: COLORS.content.secondary};\n`;\n\n// ── Shared step pieces ──────────────────────────────────────────────────────\n\nexport const SectionHeaderWrap = styled.div.attrs({\n\tclassName: 'bik-section-header-wrap',\n})`\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 4px;\n\tpadding: 16px;\n\tborder-bottom: 1px solid ${COLORS.stroke.primary};\n`;\n\nexport const SectionBodyWrap = styled.div.attrs({\n\tclassName: 'bik-section-header-wrap',\n})`\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 16px;\n\tpadding: 16px;\n`;\n\nexport const FieldBlock = styled.div.attrs({ className: 'bik-field-block' })`\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 8px;\n`;\n\nexport const FieldLabelRow = styled.div.attrs({\n\tclassName: 'bik-field-label-row',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n`;\n\n// ── Labelled text area ──────────────────────────────────────────────────────\n\nexport const AiTextAreaShell = styled.div.attrs({\n\tclassName: 'bik-ai-text-area-shell',\n})<{\n\tfocused?: boolean;\n\tminHeight?: string;\n}>`\n\tdisplay: flex;\n\tflex-direction: column;\n\tborder: 1px solid\n\t\t${(p) => (p.focused ? COLORS.stroke.brand : COLORS.stroke.primary)};\n\tborder-radius: 4px;\n\tpadding: 8px 12px;\n\tgap: 8px;\n\tmin-height: ${(p) => p.minHeight ?? '120px'};\n\tbackground: ${COLORS.surface.standard};\n`;\n\nexport const AiTextAreaInput = styled.textarea.attrs({\n\tclassName: 'bik-ai-text-area-input',\n})`\n\tflex: 1;\n\tborder: none;\n\toutline: none;\n\tresize: none;\n\tfont-family: Inter;\n\tfont-size: 14px;\n\tline-height: 20px;\n\tcolor: ${COLORS.content.primary};\n\tbackground: transparent;\n\tmin-height: 60px;\n\n\t&::placeholder {\n\t\tcolor: ${COLORS.content.placeholder};\n\t}\n`;\n\n// ── Radio card (Step 2 / Step 4 option cards) ───────────────────────────────\n\nexport const CardRow = styled.div.attrs({ className: 'bik-card-row' })`\n\tdisplay: flex;\n\tgap: 12px;\n`;\n\nexport const RadioCard = styled.button.attrs({ className: 'bik-radio-card' })<{\n\tselected?: boolean;\n}>`\n\tflex: 1;\n\tdisplay: flex;\n\talign-items: flex-start;\n\tgap: 12px;\n\tpadding: 16px;\n\tborder: 1px solid\n\t\t${(p) => (p.selected ? COLORS.stroke.brand : COLORS.stroke.primary)};\n\tbackground: ${(p) =>\n\t\tp.selected ? COLORS.background.brandLight : COLORS.surface.standard};\n\tborder-radius: 8px;\n\tcursor: pointer;\n\ttext-align: left;\n\twidth: 100%;\n`;\n\nexport const RadioCardText = styled.div.attrs({\n\tclassName: 'bik-radio-card-text',\n})`\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 4px;\n`;\n\n// ── Intent chips (Step 2) ───────────────────────────────────────────────────\n\nexport const ChipWrap = styled.div.attrs({ className: 'bik-chip-wrap' })`\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\talign-items: center;\n\tgap: 8px;\n`;\n\nexport const IntentChip = styled.div.attrs({ className: 'bik-intent-chip' })`\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: 6px;\n\tpadding: 4px 8px;\n\tborder: 1px solid ${COLORS.stroke.primary};\n\tborder-radius: 4px;\n\tbackground: ${COLORS.surface.standard};\n`;\n\nexport const ChipCloseButton = styled.button.attrs({\n\tclassName: 'bik-chip-close-button',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tborder: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tcursor: pointer;\n`;\n\nexport const AddChipButton = styled.button.attrs({\n\tclassName: 'bik-add-chip-button',\n})`\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: 6px;\n\tpadding: 4px 8px;\n\tborder: 1px dashed ${COLORS.stroke.primary};\n\tborder-radius: 4px;\n\tbackground: transparent;\n\tcursor: pointer;\n`;\n\n// ── Step 3 two-column layout + tool / sub-agent rows ────────────────────────\n\n// Fills the scroll area so the step header + grow-body chain reaches the footer.\nexport const Step3Root = styled.div.attrs({\n\tclassName: 'bik-agent-step bik-agent-step--response',\n})`\n\tdisplay: flex;\n\tflex-direction: column;\n\tmin-height: 100%;\n`;\n\nexport const Step3Grid = styled.div.attrs({ className: 'bik-step3-grid' })<{\n\t$grow?: boolean;\n}>`\n\tdisplay: grid;\n\tgrid-template-columns: minmax(0, 1fr) 1px 360px;\n\t/* Single row that fills the grid's height, so the divider spans the full\n\t height (down to the footer) rather than stopping at the taller column. */\n\tgrid-template-rows: 1fr;\n\tflex: 1;\n\tmin-height: 0;\n\n\t@media (max-width: 1100px) {\n\t\tgrid-template-columns: 1fr;\n\t\tgrid-template-rows: auto;\n\t}\n\n\t/* Fill the remaining card height so a full-height child (e.g. the Step 3\n\t column divider) can stretch all the way down to the footer. */\n\t${(p) =>\n\t\tp.$grow &&\n\t\tcss`\n\t\t\tflex: 1;\n\t\t\tmin-height: 0;\n\t\t`}\n`;\n\n// Vertical rule between the main column and the side (tools / sub-agents) column;\n// hidden once the grid collapses to a single column.\nexport const Step3Divider = styled.div.attrs({\n\tclassName: 'bik-step3-divider',\n})`\n\twidth: 1px;\n\talign-self: stretch;\n\tbackground: ${COLORS.stroke.primary};\n\n\t@media (max-width: 1100px) {\n\t\tdisplay: none;\n\t}\n`;\n\nexport const SideSection = styled.div.attrs({ className: 'bik-side-section' })`\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 8px;\n`;\n\nexport const SideSectionHeader = styled.div.attrs({\n\tclassName: 'bik-side-section-header',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n`;\n\nexport const AddIconButton = styled.button.attrs({\n\tclassName: 'bik-add-icon-button',\n})`\n\t${iconActionButton}\n`;\n\n// Empty-state tool-source picker (e.g. Manifest / Shopify buttons).\nexport const SourceButtonRow = styled.div.attrs({\n\tclassName: 'bik-source-button-row',\n})`\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: 8px;\n`;\n\nexport const SourceButton = styled.button.attrs({\n\tclassName: 'bik-source-button',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n\tpadding: 6px;\n\tborder: 1px solid ${COLORS.stroke.primary};\n\tborder-radius: 4px;\n\tbackground: ${COLORS.surface.standard};\n\tcursor: pointer;\n\theight: 28px;\n\n\t&:hover {\n\t\tbackground: ${COLORS.surface.subdued};\n\t}\n`;\n\nexport const SelectableRow = styled.div.attrs({\n\tclassName: 'bik-selectable-row',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n\tpadding: 8px 12px;\n\tborder: 1px solid ${COLORS.stroke.primary};\n\tborder-radius: 4px;\n\tmin-width: 0;\n\toverflow: hidden;\n\n\t/* Leading icon (e.g. tool source) keeps its size; the label takes the rest. */\n\t& > svg {\n\t\tflex-shrink: 0;\n\t}\n`;\n\nexport const RowText = styled.div.attrs({ className: 'bik-row-text' })`\n\tflex: 1;\n\tmin-width: 0;\n\toverflow: hidden;\n\n\t/* Truncate the label to one line with an ellipsis. */\n\t& > * {\n\t\tdisplay: block;\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t}\n`;\n\nexport const RowRemoveButton = styled.button.attrs({\n\tclassName: 'bik-row-remove-button',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tborder: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tcursor: pointer;\n`;\n\n// ── Per-row actions (always-visible edit / delete icon buttons) ───────────────\n\nexport const RowActions = styled.div.attrs({ className: 'bik-row-actions' })`\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 4px;\n\tflex-shrink: 0;\n`;\n\n// Vertical separator between the edit and delete icon buttons.\nexport const RowActionDivider = styled.span.attrs({\n\tclassName: 'bik-row-action-divider',\n})`\n\twidth: 1px;\n\talign-self: stretch;\n\tmargin: 4px 0;\n\tbackground: ${COLORS.stroke.primary};\n`;\n\nexport const RowMenuButton = styled.button.attrs({\n\tclassName: 'bik-row-menu-button',\n})`\n\t${iconActionButton}\n`;\n\n// ── Go-live modal ───────────────────────────────────────────────────────────\n\nexport const ModalBody = styled.div.attrs({ className: 'bik-modal-body' })`\n\tpadding: 24px;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tgap: 16px;\n\ttext-align: center;\n`;\n\nexport const ModalIcon = styled.div.attrs({ className: 'bik-modal-icon' })`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-bottom: 4px;\n`;\n\nexport const ModalActions = styled.div.attrs({\n\tclassName: 'bik-modal-actions',\n})`\n\tdisplay: flex;\n\tgap: 12px;\n\twidth: 100%;\n`;\n\n/** Inline action row inside a rich field (e.g. \"Improve with AI\"). */\nexport const FieldActionRow = styled.div.attrs({\n\tclassName: 'bik-field-action-row',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n`;\n"],"names":["iconActionButton","css","COLORS","BuilderRoot","styled","TopBar","TopBarSide","BackButton","Main","Rail","Content","ContentCard","StepScroll","Footer","FooterHint","FooterActions","RailList","RailItem","StepBadge","p","SectionHeaderWrap","SectionBodyWrap","FieldBlock","FieldLabelRow","AiTextAreaShell","AiTextAreaInput","CardRow","RadioCard","RadioCardText","ChipWrap","IntentChip","ChipCloseButton","AddChipButton","Step3Root","Step3Grid","Step3Divider","SideSection","SideSectionHeader","AddIconButton","SourceButtonRow","SourceButton","SelectableRow","RowText","RowActions","RowActionDivider","RowMenuButton","ModalBody","ModalIcon","ModalActions"],"mappings":";;AAIA,MAAMA,IAAmBC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAaTC,EAAO,QAAQ,OAAO;AAAA;AAAA,GAIzBC,IAAcC,EAAO,IAAI,MAAM,EAAE,WAAW,oBAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAM9DF,EAAO,QAAQ,QAAQ;AAAA,GAGzBG,IAASD,EAAO,IAAI,MAAM,EAAE,WAAW,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAMvCF,EAAO,OAAO,OAAO;AAAA;AAAA,GAIpCI,IAAaF,EAAO,IAAI,MAAM,EAAE,WAAW,oBAAoB;AAAA;AAAA;AAAA;AAAA,GAM/DG,IAAaH,EAAO,OAAO,MAAM,EAAE,WAAW,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAa9DF,EAAO,QAAQ,OAAO;AAAA;AAAA,GAIzBM,IAAOJ,EAAO,IAAI,MAAM,EAAE,WAAW,YAAY;AAAA;AAAA;AAAA;AAAA,GAMjDK,IAAOL,EAAO,IAAI,MAAM,EAAE,WAAW,YAAY;AAAA;AAAA;AAAA,2BAGnCF,EAAO,OAAO,OAAO;AAAA;AAAA;AAAA,eAGjCA,EAAO,QAAQ,QAAQ;AAAA,G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AAAA,GAKN8C,IAAY1C,EAAO,IAAI,MAAM,EAAE,WAAW,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAS5D2C,IAAY3C,EAAO,IAAI,MAAM,EAAE,WAAW,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA,GAO5D4C,IAAe5C,EAAO,IAAI,MAAM;AAAA,EAC5C,WAAW;AACZ,CAAC;AAAA;AAAA;AAAA;AAAA;AAO6BA,EAAO,IAAI,MAAM;AAAA,EAC9C,WAAW;AACZ,CAAC;AAAA;AAAA;AAAA;AAAA;"}
|
|
1
|
+
{"version":3,"file":"AgentBuilder.styled.js","sources":["../../../../src/components/agent-builder/AgentBuilder.styled.tsx"],"sourcesContent":["import styled, { css } from 'styled-components';\nimport { BASE_COLORS, COLORS } from '@src/constants/Theme';\n\n// Shared look for the 24×24 transparent icon buttons (add / row-menu / close).\nconst iconActionButton = css`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 24px;\n\theight: 24px;\n\tborder: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tcursor: pointer;\n\tborder-radius: 4px;\n\n\t&:hover {\n\t\tbackground: ${COLORS.surface.subdued};\n\t}\n\n\t&:disabled {\n\t\tcursor: not-allowed;\n\t\topacity: 0.5;\n\t\tbackground: transparent;\n\t}\n`;\n\nexport const BuilderRoot = styled.div.attrs({ className: 'bik-builder-root' })`\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 100%;\n\twidth: 100%;\n\tmin-height: 0;\n\tbackground: ${COLORS.surface.standard};\n`;\n\nexport const TopBar = styled.div.attrs({ className: 'bik-top-bar' })`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\theight: 56px;\n\tpadding: 12px 16px;\n\tborder-bottom: 1px solid ${COLORS.stroke.primary};\n\tflex-shrink: 0;\n`;\n\nexport const TopBarSide = styled.div.attrs({ className: 'bik-top-bar-side' })`\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n`;\n\nexport const BackButton = styled.button.attrs({ className: 'bik-back-button' })`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\twidth: 28px;\n\theight: 28px;\n\tborder: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tcursor: pointer;\n\tborder-radius: 4px;\n\n\t&:hover {\n\t\tbackground: ${COLORS.surface.subdued};\n\t}\n`;\n\nexport const Main = styled.div.attrs({ className: 'bik-main' })`\n\tdisplay: flex;\n\tflex: 1;\n\tmin-height: 0;\n`;\n\nexport const Rail = styled.div.attrs({ className: 'bik-rail' })`\n\twidth: 234px;\n\tflex-shrink: 0;\n\tborder-right: 1px solid ${COLORS.stroke.primary};\n\tpadding: 16px;\n\toverflow-y: auto;\n\tbackground: ${COLORS.surface.standard};\n`;\n\nexport const Content = styled.div.attrs({ className: 'bik-content' })`\n\tflex: 1;\n\tmin-width: 0;\n\tmin-height: 0;\n\toverflow: hidden;\n\tdisplay: flex;\n\tflex-direction: column;\n\tpadding: 16px;\n\tbackground: ${COLORS.surface.standard};\n`;\n\nexport const ContentCard = styled.div.attrs({ className: 'bik-content-card' })`\n\tflex: 1;\n\tmin-height: 0;\n\tdisplay: flex;\n\tflex-direction: column;\n\toverflow: hidden;\n\tborder: 1px solid ${COLORS.stroke.primary};\n\tborder-radius: 8px;\n\tbox-sizing: border-box;\n`;\n\n// Scrollable step body inside the card; the footer stays pinned below it.\nexport const StepScroll = styled.div.attrs({ className: 'bik-step-scroll' })`\n\tflex: 1;\n\tmin-height: 0;\n\toverflow-y: auto;\n`;\n\nexport const Footer = styled.div.attrs({ className: 'bik-footer' })`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tmin-height: 56px;\n\tpadding: 12px 16px;\n\tborder-top: 1px solid ${COLORS.stroke.primary};\n\tflex-shrink: 0;\n\tbox-shadow: 0px -2px 12px 0px #0000000a;\n`;\n\nexport const FooterHint = styled.div.attrs({ className: 'bik-footer-hint' })`\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 6px;\n`;\n\nexport const FooterActions = styled.div.attrs({\n\tclassName: 'bik-footer-actions',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n`;\n\n// ── Step rail items ─────────────────────────────────────────────────────────\n\nexport const RailList = styled.div.attrs({ className: 'bik-rail-list' })`\n\tdisplay: flex;\n\tflex-direction: column;\n`;\n\nexport const RailItem = styled.button.attrs({ className: 'bik-rail-item' })`\n\tposition: relative;\n\tdisplay: flex;\n\talign-items: flex-start;\n\tgap: 8px;\n\t/* Bottom padding leaves room for the connector down to the next badge. */\n\tpadding: 0 0 24px;\n\tborder: none;\n\tbackground: transparent;\n\tcursor: pointer;\n\ttext-align: left;\n\twidth: 100%;\n\n\t&:last-child {\n\t\tpadding-bottom: 0;\n\t}\n\n\t&:disabled {\n\t\tcursor: default;\n\t}\n\n\t/* Dashed connector line between consecutive step badges (centered on the badge). */\n\t&:not(:last-child)::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tleft: 9px;\n\t\ttop: 20px;\n\t\twidth: 0;\n\t\theight: 24px;\n\t\tborder-left: 1px dashed #e0e0e0;\n\t\tpointer-events: none;\n\t}\n`;\n\nexport const StepBadge = styled.div.attrs({ className: 'bik-step-badge' })<{\n\tstate: 'active' | 'complete' | 'inactive';\n}>`\n\twidth: 20px;\n\theight: 20px;\n\tflex-shrink: 0;\n\tborder-radius: 50%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tfont-family: Inter;\n\tfont-size: 10px;\n\tfont-weight: 400;\n\tline-height: 12px;\n\tbackground: ${(p) =>\n\t\tp.state === 'complete'\n\t\t\t? COLORS.background.inverseLight\n\t\t\t: p.state === 'active'\n\t\t\t? COLORS.background.brandLight\n\t\t\t: COLORS.background.base};\n\tcolor: ${(p) =>\n\t\tp.state === 'complete'\n\t\t\t? COLORS.surface.standard\n\t\t\t: p.state === 'active'\n\t\t\t? COLORS.background.inverseLight\n\t\t\t: COLORS.content.secondary};\n`;\n\n// ── Shared step pieces ──────────────────────────────────────────────────────\n\nexport const SectionHeaderWrap = styled.div.attrs({\n\tclassName: 'bik-section-header-wrap',\n})`\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 4px;\n\tpadding: 16px;\n\tborder-bottom: 1px solid ${COLORS.stroke.primary};\n`;\n\nexport const SectionBodyWrap = styled.div.attrs({\n\tclassName: 'bik-section-header-wrap',\n})`\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 16px;\n\tpadding: 16px;\n`;\n\nexport const FieldBlock = styled.div.attrs({ className: 'bik-field-block' })`\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 8px;\n`;\n\nexport const FieldLabelRow = styled.div.attrs({\n\tclassName: 'bik-field-label-row',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n`;\n\n// ── Labelled text area ──────────────────────────────────────────────────────\n\nexport const AiTextAreaShell = styled.div.attrs({\n\tclassName: 'bik-ai-text-area-shell',\n})<{\n\tfocused?: boolean;\n\tminHeight?: string;\n}>`\n\tdisplay: flex;\n\tflex-direction: column;\n\tborder: 1px solid\n\t\t${(p) => (p.focused ? COLORS.stroke.brand : COLORS.stroke.primary)};\n\tborder-radius: 4px;\n\tpadding: 8px 12px;\n\tgap: 8px;\n\tmin-height: ${(p) => p.minHeight ?? '120px'};\n\tbackground: ${COLORS.surface.standard};\n`;\n\nexport const AiTextAreaInput = styled.textarea.attrs({\n\tclassName: 'bik-ai-text-area-input',\n})`\n\tflex: 1;\n\tborder: none;\n\toutline: none;\n\tresize: none;\n\tfont-family: Inter;\n\tfont-size: 14px;\n\tline-height: 20px;\n\tcolor: ${COLORS.content.primary};\n\tbackground: transparent;\n\tmin-height: 60px;\n\n\t&::placeholder {\n\t\tcolor: ${COLORS.content.placeholder};\n\t}\n`;\n\n// ── Radio card (Step 2 / Step 4 option cards) ───────────────────────────────\n\nexport const CardRow = styled.div.attrs({ className: 'bik-card-row' })`\n\tdisplay: flex;\n\tgap: 12px;\n`;\n\nexport const RadioCard = styled.button.attrs({ className: 'bik-radio-card' })<{\n\tselected?: boolean;\n}>`\n\tflex: 1;\n\tdisplay: flex;\n\talign-items: flex-start;\n\tgap: 12px;\n\tpadding: 16px;\n\tborder: 1px solid\n\t\t${(p) => (p.selected ? BASE_COLORS.brand['800'] : COLORS.stroke.primary)};\n\tbackground: ${(p) =>\n\t\tp.selected ? COLORS.background.brandLight : COLORS.surface.standard};\n\tborder-radius: 8px;\n\tcursor: pointer;\n\ttext-align: left;\n\twidth: 100%;\n`;\n\nexport const RadioCardText = styled.div.attrs({\n\tclassName: 'bik-radio-card-text',\n})`\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 4px;\n`;\n\n// ── Intent chips (Step 2) ───────────────────────────────────────────────────\n\nexport const ChipWrap = styled.div.attrs({ className: 'bik-chip-wrap' })`\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\talign-items: center;\n\tgap: 8px;\n`;\n\nexport const IntentChip = styled.div.attrs({ className: 'bik-intent-chip' })`\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: 6px;\n\tpadding: 4px 8px;\n\tborder: 1px solid ${COLORS.stroke.primary};\n\tborder-radius: 4px;\n\tbackground: ${COLORS.surface.standard};\n`;\n\nexport const ChipCloseButton = styled.button.attrs({\n\tclassName: 'bik-chip-close-button',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tborder: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tcursor: pointer;\n`;\n\nexport const AddChipButton = styled.button.attrs({\n\tclassName: 'bik-add-chip-button',\n})`\n\tdisplay: inline-flex;\n\talign-items: center;\n\tgap: 6px;\n\tpadding: 4px 8px;\n\tborder: 1px dashed ${COLORS.stroke.primary};\n\tborder-radius: 4px;\n\tbackground: transparent;\n\tcursor: pointer;\n`;\n\n// ── Step 3 two-column layout + tool / sub-agent rows ────────────────────────\n\n// Fills the scroll area so the step header + grow-body chain reaches the footer.\nexport const Step3Root = styled.div.attrs({\n\tclassName: 'bik-agent-step bik-agent-step--response',\n})`\n\tdisplay: flex;\n\tflex-direction: column;\n\tmin-height: 100%;\n`;\n\nexport const Step3Grid = styled.div.attrs({ className: 'bik-step3-grid' })<{\n\t$grow?: boolean;\n}>`\n\tdisplay: grid;\n\tgrid-template-columns: minmax(0, 1fr) 1px 360px;\n\t/* Single row that fills the grid's height, so the divider spans the full\n\t height (down to the footer) rather than stopping at the taller column. */\n\tgrid-template-rows: 1fr;\n\tflex: 1;\n\tmin-height: 0;\n\n\t@media (max-width: 1100px) {\n\t\tgrid-template-columns: 1fr;\n\t\tgrid-template-rows: auto;\n\t}\n\n\t/* Fill the remaining card height so a full-height child (e.g. the Step 3\n\t column divider) can stretch all the way down to the footer. */\n\t${(p) =>\n\t\tp.$grow &&\n\t\tcss`\n\t\t\tflex: 1;\n\t\t\tmin-height: 0;\n\t\t`}\n`;\n\n// Vertical rule between the main column and the side (tools / sub-agents) column;\n// hidden once the grid collapses to a single column.\nexport const Step3Divider = styled.div.attrs({\n\tclassName: 'bik-step3-divider',\n})`\n\twidth: 1px;\n\talign-self: stretch;\n\tbackground: ${COLORS.stroke.primary};\n\n\t@media (max-width: 1100px) {\n\t\tdisplay: none;\n\t}\n`;\n\nexport const SideSection = styled.div.attrs({ className: 'bik-side-section' })`\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 8px;\n`;\n\nexport const SideSectionHeader = styled.div.attrs({\n\tclassName: 'bik-side-section-header',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n`;\n\nexport const AddIconButton = styled.button.attrs({\n\tclassName: 'bik-add-icon-button',\n})`\n\t${iconActionButton}\n\tbackground: ${COLORS.surface.standard};\n\tborder: 1px solid ${COLORS.stroke.primary};\n`;\n\n// Empty-state tool-source picker (e.g. Manifest / Shopify buttons).\nexport const SourceButtonRow = styled.div.attrs({\n\tclassName: 'bik-source-button-row',\n})`\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: 8px;\n`;\n\nexport const SourceButton = styled.button.attrs({\n\tclassName: 'bik-source-button',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n\tpadding: 6px;\n\tborder: 1px solid ${COLORS.stroke.primary};\n\tborder-radius: 4px;\n\tbackground: ${COLORS.surface.standard};\n\tcursor: pointer;\n\theight: 28px;\n\n\t&:hover {\n\t\tbackground: ${COLORS.surface.subdued};\n\t}\n`;\n\nexport const SelectableRow = styled.div.attrs({\n\tclassName: 'bik-selectable-row',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n\tpadding: 8px 12px;\n\tborder: 1px solid ${COLORS.stroke.primary};\n\tborder-radius: 4px;\n\tmin-width: 0;\n\toverflow: hidden;\n\n\t/* Leading icon (e.g. tool source) keeps its size; the label takes the rest. */\n\t& > svg {\n\t\tflex-shrink: 0;\n\t}\n`;\n\nexport const RowText = styled.div.attrs({ className: 'bik-row-text' })`\n\tflex: 1;\n\tmin-width: 0;\n\toverflow: hidden;\n\n\t/* Truncate the label to one line with an ellipsis. */\n\t& > * {\n\t\tdisplay: block;\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t}\n`;\n\nexport const RowRemoveButton = styled.button.attrs({\n\tclassName: 'bik-row-remove-button',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tborder: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tcursor: pointer;\n`;\n\n// ── Per-row actions (always-visible edit / delete icon buttons) ───────────────\n\nexport const RowActions = styled.div.attrs({ className: 'bik-row-actions' })`\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 4px;\n\tflex-shrink: 0;\n`;\n\n// Vertical separator between the edit and delete icon buttons.\nexport const RowActionDivider = styled.span.attrs({\n\tclassName: 'bik-row-action-divider',\n})`\n\twidth: 1px;\n\talign-self: stretch;\n\tmargin: 4px 0;\n\tbackground: ${COLORS.stroke.primary};\n`;\n\nexport const RowMenuButton = styled.button.attrs({\n\tclassName: 'bik-row-menu-button',\n})`\n\t${iconActionButton}\n`;\n\nexport const DraftButtonScope = styled.div.attrs({\n\tclassName: 'bik-draft-button-scope',\n})`\n\tdisplay: flex;\n\tflex: 1;\n\n\tbutton {\n\t\tborder-color: ${BASE_COLORS.brand['800']};\n\t}\n\tbutton .text {\n\t\tcolor: ${BASE_COLORS.brand['800']};\n\t}\n`;\n\n// ── Go-live modal ───────────────────────────────────────────────────────────\n\nexport const ModalBody = styled.div.attrs({ className: 'bik-modal-body' })`\n\tpadding: 24px;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tgap: 16px;\n\ttext-align: center;\n`;\n\nexport const ModalIcon = styled.div.attrs({ className: 'bik-modal-icon' })`\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-bottom: 4px;\n`;\n\nexport const ModalActions = styled.div.attrs({\n\tclassName: 'bik-modal-actions',\n})`\n\tdisplay: flex;\n\tgap: 12px;\n\twidth: 100%;\n`;\n\n/** Inline action row inside a rich field (e.g. \"Improve with AI\"). */\nexport const FieldActionRow = styled.div.attrs({\n\tclassName: 'bik-field-action-row',\n})`\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 8px;\n`;\n"],"names":["iconActionButton","css","COLORS","BuilderRoot","styled","TopBar","TopBarSide","BackButton","Main","Rail","Content","ContentCard","StepScroll","Footer","FooterHint","FooterActions","RailList","RailItem","StepBadge","p","SectionHeaderWrap","SectionBodyWrap","FieldBlock","FieldLabelRow","AiTextAreaShell","AiTextAreaInput","CardRow","RadioCard","BASE_COLORS","RadioCardText","ChipWrap","IntentChip","ChipCloseButton","Step3Root","Step3Grid","Step3Divider","SideSection","SideSectionHeader","AddIconButton","SourceButtonRow","SourceButton","SelectableRow","RowText","RowActions","RowActionDivider","RowMenuButton","DraftButtonScope","ModalBody","ModalIcon","ModalActions"],"mappings":";;AAIA,MAAMA,IAAmBC;AAAA;AAAA;AAAA;AAAA;AAA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4C,IAAY5C,EAAO,IAAI,MAAM,EAAE,WAAW,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA,GAO5D6C,IAAe7C,EAAO,IAAI,MAAM;AAAA,EAC5C,WAAW;AACZ,CAAC;AAAA;AAAA;AAAA;AAAA;AAO6BA,EAAO,IAAI,MAAM;AAAA,EAC9C,WAAW;AACZ,CAAC;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AgentValue, ParamsBlob } from '../AgentBuilder.model';
|
|
2
|
+
/** A minimal, valid empty draft (every required field present). */
|
|
3
|
+
export declare const emptyAgent: () => AgentValue;
|
|
4
|
+
/** A fully-filled, all-steps-valid draft. */
|
|
5
|
+
export declare const filledAgent: () => AgentValue;
|
|
6
|
+
/** A catalog tool fixture with every AgentToolDoc field. */
|
|
7
|
+
export declare const tool: (tool_id: string, display_name: string, source?: AgentToolDoc) => AgentToolDoc;
|
|
8
|
+
/** A backend email-tool params template (mirrors the story seed). */
|
|
9
|
+
export declare const EMAIL_TEMPLATE: ParamsBlob;
|
|
10
|
+
/** A backend slack-tool params template. */
|
|
11
|
+
export declare const SLACK_TEMPLATE: ParamsBlob;
|
|
@@ -1,42 +1,49 @@
|
|
|
1
|
-
import { jsxs as e, jsx as t, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { COLORS as
|
|
5
|
-
import { Footer as
|
|
6
|
-
import { useAgentBuilderContext as
|
|
1
|
+
import { jsxs as e, jsx as t, Fragment as g } from "react/jsx-runtime";
|
|
2
|
+
import x from "../../../assets/icons/info.svg.js";
|
|
3
|
+
import { BodyCaption as y } from "../../TypographyStyle.js";
|
|
4
|
+
import { COLORS as r } from "../../../constants/Theme.js";
|
|
5
|
+
import { Footer as h, FooterHint as f, FooterActions as v } from "../AgentBuilder.styled.js";
|
|
6
|
+
import { useAgentBuilderContext as T } from "../context/AgentBuilderContext.js";
|
|
7
7
|
import { Button as o } from "../../button/Button.js";
|
|
8
|
-
const
|
|
8
|
+
const A = ({
|
|
9
9
|
footerHint: n,
|
|
10
|
-
onTestAgent:
|
|
10
|
+
onTestAgent: i,
|
|
11
11
|
onGoLive: l,
|
|
12
12
|
isPublishing: a
|
|
13
13
|
}) => {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
const {
|
|
15
|
+
isFirstStep: s,
|
|
16
|
+
isLastStep: d,
|
|
17
|
+
goPrev: c,
|
|
18
|
+
goNext: p,
|
|
19
|
+
isActiveStepValid: m,
|
|
20
|
+
validation: u
|
|
21
|
+
} = T(), b = Object.values(u).every(Boolean);
|
|
22
|
+
return /* @__PURE__ */ e(h, { children: [
|
|
23
|
+
/* @__PURE__ */ e(f, { children: [
|
|
24
|
+
/* @__PURE__ */ t(x, { width: 14, height: 14, color: r.content.placeholder }),
|
|
25
|
+
/* @__PURE__ */ t(y, { color: r.content.placeholder, children: n })
|
|
19
26
|
] }),
|
|
20
|
-
/* @__PURE__ */ e(
|
|
27
|
+
/* @__PURE__ */ e(v, { children: [
|
|
21
28
|
!s && /* @__PURE__ */ t(
|
|
22
29
|
o,
|
|
23
30
|
{
|
|
24
31
|
"data-test": "agent-builder-back-step",
|
|
25
|
-
buttonType: "
|
|
32
|
+
buttonType: "tertiaryGray",
|
|
26
33
|
size: "small",
|
|
27
34
|
buttonText: "Back",
|
|
28
35
|
onClick: c
|
|
29
36
|
}
|
|
30
37
|
),
|
|
31
|
-
d ? /* @__PURE__ */ e(
|
|
32
|
-
|
|
38
|
+
d ? /* @__PURE__ */ e(g, { children: [
|
|
39
|
+
i && /* @__PURE__ */ t(
|
|
33
40
|
o,
|
|
34
41
|
{
|
|
35
42
|
"data-test": "agent-builder-test",
|
|
36
43
|
buttonType: "secondary",
|
|
37
44
|
size: "small",
|
|
38
45
|
buttonText: "Test agent",
|
|
39
|
-
onClick:
|
|
46
|
+
onClick: i
|
|
40
47
|
}
|
|
41
48
|
),
|
|
42
49
|
/* @__PURE__ */ t(
|
|
@@ -46,6 +53,7 @@ const z = ({
|
|
|
46
53
|
buttonType: "primary",
|
|
47
54
|
size: "small",
|
|
48
55
|
buttonText: "Go live",
|
|
56
|
+
disabled: !b,
|
|
49
57
|
isLoading: a,
|
|
50
58
|
onClick: l
|
|
51
59
|
}
|
|
@@ -57,14 +65,14 @@ const z = ({
|
|
|
57
65
|
buttonType: "primary",
|
|
58
66
|
size: "small",
|
|
59
67
|
buttonText: "Next",
|
|
60
|
-
disabled: !
|
|
61
|
-
onClick:
|
|
68
|
+
disabled: !m,
|
|
69
|
+
onClick: p
|
|
62
70
|
}
|
|
63
71
|
)
|
|
64
72
|
] })
|
|
65
73
|
] });
|
|
66
74
|
};
|
|
67
75
|
export {
|
|
68
|
-
|
|
76
|
+
A as AgentBuilderFooter
|
|
69
77
|
};
|
|
70
78
|
//# sourceMappingURL=AgentBuilderFooter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentBuilderFooter.js","sources":["../../../../../src/components/agent-builder/components/AgentBuilderFooter.tsx"],"sourcesContent":["import InfoIcon from '@src/assets/icons/info.svg';\nimport React from 'react';\nimport { Button } from '@src/components/button';\nimport {
|
|
1
|
+
{"version":3,"file":"AgentBuilderFooter.js","sources":["../../../../../src/components/agent-builder/components/AgentBuilderFooter.tsx"],"sourcesContent":["import InfoIcon from '@src/assets/icons/info.svg';\nimport React from 'react';\nimport { Button } from '@src/components/button';\nimport { BodyCaption } from '@src/components/TypographyStyle';\nimport { COLORS } from '@src/constants/Theme';\nimport { Footer, FooterActions, FooterHint } from '../AgentBuilder.styled';\nimport { useAgentBuilderContext } from '../context/AgentBuilderContext';\n\ninterface AgentBuilderFooterProps {\n\tfooterHint: string;\n\tonTestAgent?: () => void;\n\t/** Opens the go-live confirmation. */\n\tonGoLive: () => void;\n\tisPublishing?: boolean;\n}\n\nexport const AgentBuilderFooter: React.FC<AgentBuilderFooterProps> = ({\n\tfooterHint,\n\tonTestAgent,\n\tonGoLive,\n\tisPublishing,\n}) => {\n\tconst {\n\t\tisFirstStep,\n\t\tisLastStep,\n\t\tgoPrev,\n\t\tgoNext,\n\t\tisActiveStepValid,\n\t\tvalidation,\n\t} = useAgentBuilderContext();\n\t// Publishing requires every step complete, not just the active one.\n\tconst allStepsValid = Object.values(validation).every(Boolean);\n\n\treturn (\n\t\t<Footer>\n\t\t\t<FooterHint>\n\t\t\t\t<InfoIcon width={14} height={14} color={COLORS.content.placeholder} />\n\t\t\t\t<BodyCaption color={COLORS.content.placeholder}>\n\t\t\t\t\t{footerHint}\n\t\t\t\t</BodyCaption>\n\t\t\t</FooterHint>\n\n\t\t\t<FooterActions>\n\t\t\t\t{!isFirstStep && (\n\t\t\t\t\t<Button\n\t\t\t\t\t\tdata-test=\"agent-builder-back-step\"\n\t\t\t\t\t\t// tertiaryGray = #616161 text; \"text\" renders brand purple.\n\t\t\t\t\t\tbuttonType=\"tertiaryGray\"\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\tbuttonText=\"Back\"\n\t\t\t\t\t\tonClick={goPrev}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t{isLastStep ? (\n\t\t\t\t\t<>\n\t\t\t\t\t\t{onTestAgent && (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tdata-test=\"agent-builder-test\"\n\t\t\t\t\t\t\t\tbuttonType=\"secondary\"\n\t\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\t\tbuttonText=\"Test agent\"\n\t\t\t\t\t\t\t\tonClick={onTestAgent}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tdata-test=\"agent-builder-go-live\"\n\t\t\t\t\t\t\tbuttonType=\"primary\"\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tbuttonText=\"Go live\"\n\t\t\t\t\t\t\tdisabled={!allStepsValid}\n\t\t\t\t\t\t\tisLoading={isPublishing}\n\t\t\t\t\t\t\tonClick={onGoLive}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</>\n\t\t\t\t) : (\n\t\t\t\t\t<Button\n\t\t\t\t\t\tdata-test=\"agent-builder-next\"\n\t\t\t\t\t\tbuttonType=\"primary\"\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\tbuttonText=\"Next\"\n\t\t\t\t\t\tdisabled={!isActiveStepValid}\n\t\t\t\t\t\tonClick={goNext}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</FooterActions>\n\t\t</Footer>\n\t);\n};\n"],"names":["AgentBuilderFooter","footerHint","onTestAgent","onGoLive","isPublishing","isFirstStep","isLastStep","goPrev","goNext","isActiveStepValid","validation","useAgentBuilderContext","allStepsValid","Footer","jsxs","FooterHint","jsx","InfoIcon","COLORS","BodyCaption","FooterActions","Button","Fragment"],"mappings":";;;;;;;AAgBO,MAAMA,IAAwD,CAAC;AAAA,EACrE,YAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AAAA,EACA,cAAAC;AACD,MAAM;AACL,QAAM;AAAA,IACL,aAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,QAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,YAAAC;AAAA,EAAA,IACGC,EAAA,GAEEC,IAAgB,OAAO,OAAOF,CAAU,EAAE,MAAM,OAAO;AAE7D,2BACEG,GAAA,EACA,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAA,EACA,UAAA;AAAA,MAAA,gBAAAC,EAACC,GAAA,EAAS,OAAO,IAAI,QAAQ,IAAI,OAAOC,EAAO,QAAQ,YAAA,CAAa;AAAA,wBACnEC,GAAA,EAAY,OAAOD,EAAO,QAAQ,aACjC,UAAAjB,EAAA,CACF;AAAA,IAAA,GACD;AAAA,sBAECmB,GAAA,EACC,UAAA;AAAA,MAAA,CAACf,KACD,gBAAAW;AAAA,QAACK;AAAA,QAAA;AA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