@bikdotai/bik-component-library 0.0.831 → 0.0.832-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) 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/components/MentionField.js +1 -1
  4. package/dist/cjs/components/agent-builder/components/MentionField.js.map +1 -1
  5. package/dist/cjs/components/agent-builder/components/MentionPicker.js +11 -4
  6. package/dist/cjs/components/agent-builder/components/MentionPicker.js.map +1 -1
  7. package/dist/cjs/components/agent-builder/constants/tools.js +1 -1
  8. package/dist/cjs/components/agent-builder/constants/tools.js.map +1 -1
  9. package/dist/cjs/components/agent-builder/context/AgentBuilderContext.js +1 -1
  10. package/dist/cjs/components/agent-builder/context/AgentBuilderContext.js.map +1 -1
  11. package/dist/cjs/components/agent-builder/steps/Step3HowItResponds.js +1 -1
  12. package/dist/cjs/components/agent-builder/steps/Step3HowItResponds.js.map +1 -1
  13. package/dist/cjs/components/agent-builder/utils/toolActions.js +1 -1
  14. package/dist/cjs/components/agent-builder/utils/toolActions.js.map +1 -1
  15. package/dist/cjs/icons/Social/Channels/EmailMarketingV2.js +2 -0
  16. package/dist/cjs/icons/Social/Channels/EmailMarketingV2.js.map +1 -0
  17. package/dist/cjs/icons/Social/Channels/EmailV2.js +2 -0
  18. package/dist/cjs/icons/Social/Channels/EmailV2.js.map +1 -0
  19. package/dist/cjs/icons/Social/Channels/FacebookCommentV2.js +2 -0
  20. package/dist/cjs/icons/Social/Channels/FacebookCommentV2.js.map +1 -0
  21. package/dist/cjs/icons/Social/Channels/FacebookV2.js +2 -0
  22. package/dist/cjs/icons/Social/Channels/FacebookV2.js.map +1 -0
  23. package/dist/cjs/icons/Social/Channels/GmailV2.js +2 -0
  24. package/dist/cjs/icons/Social/Channels/GmailV2.js.map +1 -0
  25. package/dist/cjs/icons/Social/Channels/InstagramCommentV2.js +2 -0
  26. package/dist/cjs/icons/Social/Channels/InstagramCommentV2.js.map +1 -0
  27. package/dist/cjs/icons/Social/Channels/InstagramV2.js +2 -0
  28. package/dist/cjs/icons/Social/Channels/InstagramV2.js.map +1 -0
  29. package/dist/cjs/icons/Social/Channels/MessengerV2.js +2 -0
  30. package/dist/cjs/icons/Social/Channels/MessengerV2.js.map +1 -0
  31. package/dist/cjs/icons/Social/Channels/PhoneV2.js +2 -0
  32. package/dist/cjs/icons/Social/Channels/PhoneV2.js.map +1 -0
  33. package/dist/cjs/icons/Social/Channels/RcsV2.js +2 -0
  34. package/dist/cjs/icons/Social/Channels/RcsV2.js.map +1 -0
  35. package/dist/cjs/icons/Social/Channels/SmsV2.js +2 -0
  36. package/dist/cjs/icons/Social/Channels/SmsV2.js.map +1 -0
  37. package/dist/cjs/icons/Social/Channels/TaskV2.js +2 -0
  38. package/dist/cjs/icons/Social/Channels/TaskV2.js.map +1 -0
  39. package/dist/cjs/icons/Social/Channels/WebpushV2.js +2 -0
  40. package/dist/cjs/icons/Social/Channels/WebpushV2.js.map +1 -0
  41. package/dist/cjs/icons/Social/Channels/WhatsAppCallV2.js +2 -0
  42. package/dist/cjs/icons/Social/Channels/WhatsAppCallV2.js.map +1 -0
  43. package/dist/cjs/icons/Social/Channels/WhatsAppV2.js +2 -0
  44. package/dist/cjs/icons/Social/Channels/WhatsAppV2.js.map +1 -0
  45. package/dist/cjs/icons/index.js +1 -1
  46. package/dist/esm/components/agent-builder/AgentBuilder.js +91 -87
  47. package/dist/esm/components/agent-builder/AgentBuilder.js.map +1 -1
  48. package/dist/esm/components/agent-builder/AgentBuilder.model.d.ts +25 -1
  49. package/dist/esm/components/agent-builder/components/MentionField.js +56 -44
  50. package/dist/esm/components/agent-builder/components/MentionField.js.map +1 -1
  51. package/dist/esm/components/agent-builder/components/MentionPicker.js +135 -116
  52. package/dist/esm/components/agent-builder/components/MentionPicker.js.map +1 -1
  53. package/dist/esm/components/agent-builder/constants/tools.d.ts +25 -1
  54. package/dist/esm/components/agent-builder/constants/tools.js +20 -12
  55. package/dist/esm/components/agent-builder/constants/tools.js.map +1 -1
  56. package/dist/esm/components/agent-builder/context/AgentBuilderContext.d.ts +10 -0
  57. package/dist/esm/components/agent-builder/context/AgentBuilderContext.js +129 -123
  58. package/dist/esm/components/agent-builder/context/AgentBuilderContext.js.map +1 -1
  59. package/dist/esm/components/agent-builder/steps/Step3HowItResponds.js +31 -28
  60. package/dist/esm/components/agent-builder/steps/Step3HowItResponds.js.map +1 -1
  61. package/dist/esm/components/agent-builder/utils/toolActions.d.ts +1 -1
  62. package/dist/esm/components/agent-builder/utils/toolActions.js +13 -9
  63. package/dist/esm/components/agent-builder/utils/toolActions.js.map +1 -1
  64. package/dist/esm/icons/Social/Channels/EmailMarketingV2.d.ts +6 -0
  65. package/dist/esm/icons/Social/Channels/EmailMarketingV2.js +41 -0
  66. package/dist/esm/icons/Social/Channels/EmailMarketingV2.js.map +1 -0
  67. package/dist/esm/icons/Social/Channels/EmailV2.d.ts +6 -0
  68. package/dist/esm/icons/Social/Channels/EmailV2.js +30 -0
  69. package/dist/esm/icons/Social/Channels/EmailV2.js.map +1 -0
  70. package/dist/esm/icons/Social/Channels/FacebookCommentV2.d.ts +6 -0
  71. package/dist/esm/icons/Social/Channels/FacebookCommentV2.js +53 -0
  72. package/dist/esm/icons/Social/Channels/FacebookCommentV2.js.map +1 -0
  73. package/dist/esm/icons/Social/Channels/FacebookV2.d.ts +6 -0
  74. package/dist/esm/icons/Social/Channels/FacebookV2.js +28 -0
  75. package/dist/esm/icons/Social/Channels/FacebookV2.js.map +1 -0
  76. package/dist/esm/icons/Social/Channels/GmailV2.d.ts +6 -0
  77. package/dist/esm/icons/Social/Channels/GmailV2.js +30 -0
  78. package/dist/esm/icons/Social/Channels/GmailV2.js.map +1 -0
  79. package/dist/esm/icons/Social/Channels/InstagramCommentV2.d.ts +6 -0
  80. package/dist/esm/icons/Social/Channels/InstagramCommentV2.js +53 -0
  81. package/dist/esm/icons/Social/Channels/InstagramCommentV2.js.map +1 -0
  82. package/dist/esm/icons/Social/Channels/InstagramV2.d.ts +6 -0
  83. package/dist/esm/icons/Social/Channels/InstagramV2.js +39 -0
  84. package/dist/esm/icons/Social/Channels/InstagramV2.js.map +1 -0
  85. package/dist/esm/icons/Social/Channels/MessengerV2.d.ts +6 -0
  86. package/dist/esm/icons/Social/Channels/MessengerV2.js +28 -0
  87. package/dist/esm/icons/Social/Channels/MessengerV2.js.map +1 -0
  88. package/dist/esm/icons/Social/Channels/PhoneV2.d.ts +6 -0
  89. package/dist/esm/icons/Social/Channels/PhoneV2.js +30 -0
  90. package/dist/esm/icons/Social/Channels/PhoneV2.js.map +1 -0
  91. package/dist/esm/icons/Social/Channels/RcsV2.d.ts +6 -0
  92. package/dist/esm/icons/Social/Channels/RcsV2.js +30 -0
  93. package/dist/esm/icons/Social/Channels/RcsV2.js.map +1 -0
  94. package/dist/esm/icons/Social/Channels/SmsV2.d.ts +6 -0
  95. package/dist/esm/icons/Social/Channels/SmsV2.js +30 -0
  96. package/dist/esm/icons/Social/Channels/SmsV2.js.map +1 -0
  97. package/dist/esm/icons/Social/Channels/TaskV2.d.ts +6 -0
  98. package/dist/esm/icons/Social/Channels/TaskV2.js +37 -0
  99. package/dist/esm/icons/Social/Channels/TaskV2.js.map +1 -0
  100. package/dist/esm/icons/Social/Channels/WebpushV2.d.ts +6 -0
  101. package/dist/esm/icons/Social/Channels/WebpushV2.js +39 -0
  102. package/dist/esm/icons/Social/Channels/WebpushV2.js.map +1 -0
  103. package/dist/esm/icons/Social/Channels/WhatsAppCallV2.d.ts +6 -0
  104. package/dist/esm/icons/Social/Channels/WhatsAppCallV2.js +46 -0
  105. package/dist/esm/icons/Social/Channels/WhatsAppCallV2.js.map +1 -0
  106. package/dist/esm/icons/Social/Channels/WhatsAppV2.d.ts +6 -0
  107. package/dist/esm/icons/Social/Channels/WhatsAppV2.js +30 -0
  108. package/dist/esm/icons/Social/Channels/WhatsAppV2.js.map +1 -0
  109. package/dist/esm/icons/Social/Channels/index.d.ts +15 -0
  110. package/dist/esm/icons/index.d.ts +25 -25
  111. package/dist/esm/icons/index.js +484 -454
  112. package/dist/esm/icons/index.js.map +1 -1
  113. package/package.json +1 -1
@@ -1,39 +1,41 @@
1
- import { jsx as h } from "react/jsx-runtime";
2
- import { useMemo as c, useCallback as u } from "react";
3
- import { useAgentBuilderContext as q } from "../context/AgentBuilderContext.js";
4
- import { buildAgentMentionItems as R, appTypeLabel as j, buildCustomToolMentionItems as k } from "../utils/mentionSerialization.js";
5
- import { buildToolActions as B } from "../utils/toolActions.js";
6
- import { MentionEditor as E } from "./MentionEditor.js";
7
- const H = ({
1
+ import { jsx as R } from "react/jsx-runtime";
2
+ import { useMemo as p, useCallback as g } from "react";
3
+ import { useAgentBuilderContext as j } from "../context/AgentBuilderContext.js";
4
+ import { buildAgentMentionItems as k, appTypeLabel as B, buildCustomToolMentionItems as E } from "../utils/mentionSerialization.js";
5
+ import { buildToolActions as L } from "../utils/toolActions.js";
6
+ import { MentionEditor as w } from "./MentionEditor.js";
7
+ const N = ({
8
8
  fieldKey: o,
9
- label: p,
10
- placeholder: g,
11
- maxLength: T,
12
- minHeight: b,
13
- ...A
9
+ label: T,
10
+ placeholder: b,
11
+ maxLength: A,
12
+ minHeight: d,
13
+ ...C
14
14
  }) => {
15
15
  const {
16
16
  value: t,
17
- patch: d,
17
+ patch: M,
18
18
  addReference: s,
19
19
  availableTools: n,
20
20
  availableSubAgents: i,
21
21
  applicationType: r,
22
- mentionResetKey: M,
22
+ mentionResetKey: f,
23
23
  registerMentionField: a,
24
- notifyMentionFocus: C,
25
- onCreateSubAgent: f,
26
- requestCreateSubAgent: v,
24
+ notifyMentionFocus: S,
25
+ onCreateSubAgent: v,
26
+ requestCreateSubAgent: I,
27
27
  requestToolAction: l,
28
- configToolTemplates: m
29
- } = q(), S = c(
28
+ configToolTemplates: c,
29
+ integrationStatus: m,
30
+ onConnectIntegration: u
31
+ } = j(), F = p(
30
32
  () => [
31
- ...R(
33
+ ...k(
32
34
  n,
33
35
  i,
34
- j(r)
36
+ B(r)
35
37
  ),
36
- ...k(t.configTools, t.restApiTools)
38
+ ...E(t.configTools, t.restApiTools)
37
39
  ],
38
40
  [
39
41
  n,
@@ -42,38 +44,48 @@ const H = ({
42
44
  t.configTools,
43
45
  t.restApiTools
44
46
  ]
45
- ), F = c(
46
- () => B(m, l),
47
- [l, m]
48
- ), I = u(
47
+ ), x = p(
48
+ () => L(
49
+ c,
50
+ l,
51
+ m,
52
+ u
53
+ ),
54
+ [
55
+ l,
56
+ c,
57
+ m,
58
+ u
59
+ ]
60
+ ), $ = g(
49
61
  (e) => a(o, e),
50
62
  [a, o]
51
- ), x = u(
52
- (e, $) => s(e, $),
63
+ ), h = g(
64
+ (e, q) => s(e, q),
53
65
  [s]
54
66
  );
55
- return /* @__PURE__ */ h(
56
- E,
67
+ return /* @__PURE__ */ R(
68
+ w,
57
69
  {
58
- label: p,
70
+ label: T,
59
71
  value: t[o] ?? "",
60
- onChange: (e) => d({ [o]: e }),
61
- maxLength: T,
62
- placeholder: g,
63
- minHeight: b,
64
- resetKey: `${t.id}:${o}:${M}`,
65
- mentionItems: S,
72
+ onChange: (e) => M({ [o]: e }),
73
+ maxLength: A,
74
+ placeholder: b,
75
+ minHeight: d,
76
+ resetKey: `${t.id}:${o}:${f}`,
77
+ mentionItems: F,
66
78
  tools: n,
67
- onMentionSelect: x,
68
- onFocus: () => C(o),
69
- registerInsert: I,
70
- onCreateSubAgent: f ? v : void 0,
71
- toolActions: F,
72
- "data-test": A["data-test"]
79
+ onMentionSelect: h,
80
+ onFocus: () => S(o),
81
+ registerInsert: $,
82
+ onCreateSubAgent: v ? I : void 0,
83
+ toolActions: x,
84
+ "data-test": C["data-test"]
73
85
  }
74
86
  );
75
87
  };
76
88
  export {
77
- H as MentionField
89
+ N as MentionField
78
90
  };
79
91
  //# sourceMappingURL=MentionField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MentionField.js","sources":["../../../../../src/components/agent-builder/components/MentionField.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from 'react';\nimport { AgentValue } from '../AgentBuilder.model';\nimport { ToolAction } from '../constants/tools';\nimport {\n\tMentionFieldKey,\n\tuseAgentBuilderContext,\n} from '../context/AgentBuilderContext';\nimport {\n\tappTypeLabel,\n\tbuildAgentMentionItems,\n\tbuildCustomToolMentionItems,\n} from '../utils/mentionSerialization';\nimport { buildToolActions } from '../utils/toolActions';\nimport { MentionEditor } from './MentionEditor';\n\ninterface MentionFieldProps {\n\t/** Which AgentValue field this editor reads / writes. */\n\tfieldKey: MentionFieldKey;\n\tlabel: string;\n\tplaceholder?: string;\n\tmaxLength: number;\n\tminHeight?: string;\n\t'data-test'?: string;\n}\n\n/**\n * Context-bound {@link MentionEditor} for the builder's Step-3 Instructions /\n * Guardrails. Both `@` tools and sub-agents are offered; the field registers its\n * insert + focus with the context so side-panel adds drop a chip into whichever\n * field was last focused, and remounts on `mentionResetKey`.\n */\nexport const MentionField: React.FC<MentionFieldProps> = ({\n\tfieldKey,\n\tlabel,\n\tplaceholder,\n\tmaxLength,\n\tminHeight,\n\t...rest\n}) => {\n\tconst {\n\t\tvalue,\n\t\tpatch,\n\t\taddReference,\n\t\tavailableTools,\n\t\tavailableSubAgents,\n\t\tapplicationType,\n\t\tmentionResetKey,\n\t\tregisterMentionField,\n\t\tnotifyMentionFocus,\n\t\tonCreateSubAgent,\n\t\trequestCreateSubAgent,\n\t\trequestToolAction,\n\t\tconfigToolTemplates,\n\t} = useAgentBuilderContext();\n\n\t// Catalog tools + sub-agents, PLUS the inline custom tools (Rest API / email /\n\t// Slack) so their `{{tool:<id>}}` tokens rehydrate as chips on remount — they\n\t// live on the value, not in `availableTools`.\n\tconst mentionItems = useMemo(\n\t\t() => [\n\t\t\t...buildAgentMentionItems(\n\t\t\t\tavailableTools,\n\t\t\t\tavailableSubAgents,\n\t\t\t\tappTypeLabel(applicationType),\n\t\t\t),\n\t\t\t...buildCustomToolMentionItems(value.configTools, value.restApiTools),\n\t\t],\n\t\t[\n\t\t\tavailableTools,\n\t\t\tavailableSubAgents,\n\t\t\tapplicationType,\n\t\t\tvalue.configTools,\n\t\t\tvalue.restApiTools,\n\t\t],\n\t);\n\n\t// Built-in tool actions (Rest API / email / Slack) shown in the `@` picker's\n\t// Tools view — picking one opens its drawer (Step 3) instead of inserting text.\n\t// The shared email / Slack forms are backend-driven: each is offered only when\n\t// its template was provided.\n\tconst toolActions = useMemo<ToolAction[]>(\n\t\t() => buildToolActions(configToolTemplates, requestToolAction),\n\t\t[requestToolAction, configToolTemplates],\n\t);\n\n\tconst registerInsert = useCallback(\n\t\t(fn: Parameters<typeof registerMentionField>[1]) =>\n\t\t\tregisterMentionField(fieldKey, fn),\n\t\t[registerMentionField, fieldKey],\n\t);\n\n\t// Route through the context's ref-backed `addReference`: BikEditor captures\n\t// this handler at mount, so reading `value.tools` here would keep only the last\n\t// pick. `addReference` always appends against the latest lists.\n\tconst onMentionSelect = useCallback(\n\t\t(kind: 'tool' | 'subagent', id: string) => addReference(kind, id),\n\t\t[addReference],\n\t);\n\n\treturn (\n\t\t<MentionEditor\n\t\t\tlabel={label}\n\t\t\tvalue={(value[fieldKey] as string | undefined) ?? ''}\n\t\t\tonChange={(text) => patch({ [fieldKey]: text } as Partial<AgentValue>)}\n\t\t\tmaxLength={maxLength}\n\t\t\tplaceholder={placeholder}\n\t\t\tminHeight={minHeight}\n\t\t\tresetKey={`${value.id}:${fieldKey}:${mentionResetKey}`}\n\t\t\tmentionItems={mentionItems}\n\t\t\ttools={availableTools}\n\t\t\tonMentionSelect={onMentionSelect}\n\t\t\tonFocus={() => notifyMentionFocus(fieldKey)}\n\t\t\tregisterInsert={registerInsert}\n\t\t\tonCreateSubAgent={onCreateSubAgent ? requestCreateSubAgent : undefined}\n\t\t\ttoolActions={toolActions}\n\t\t\tdata-test={rest['data-test']}\n\t\t/>\n\t);\n};\n"],"names":["MentionField","fieldKey","label","placeholder","maxLength","minHeight","rest","value","patch","addReference","availableTools","availableSubAgents","applicationType","mentionResetKey","registerMentionField","notifyMentionFocus","onCreateSubAgent","requestCreateSubAgent","requestToolAction","configToolTemplates","useAgentBuilderContext","mentionItems","useMemo","buildAgentMentionItems","appTypeLabel","buildCustomToolMentionItems","toolActions","buildToolActions","registerInsert","useCallback","fn","onMentionSelect","kind","id","jsx","MentionEditor","text"],"mappings":";;;;;;AA+BO,MAAMA,IAA4C,CAAC;AAAA,EACzD,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACJ,MAAM;AACL,QAAM;AAAA,IACL,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,cAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,qBAAAC;AAAA,EAAA,IACGC,EAAA,GAKEC,IAAeC;AAAA,IACpB,MAAM;AAAA,MACL,GAAGC;AAAA,QACFb;AAAA,QACAC;AAAA,QACAa,EAAaZ,CAAe;AAAA,MAAA;AAAA,MAE7B,GAAGa,EAA4BlB,EAAM,aAAaA,EAAM,YAAY;AAAA,IAAA;AAAA,IAErE;AAAA,MACCG;AAAA,MACAC;AAAA,MACAC;AAAA,MACAL,EAAM;AAAA,MACNA,EAAM;AAAA,IAAA;AAAA,EACP,GAOKmB,IAAcJ;AAAA,IACnB,MAAMK,EAAiBR,GAAqBD,CAAiB;AAAA,IAC7D,CAACA,GAAmBC,CAAmB;AAAA,EAAA,GAGlCS,IAAiBC;AAAA,IACtB,CAACC,MACAhB,EAAqBb,GAAU6B,CAAE;AAAA,IAClC,CAAChB,GAAsBb,CAAQ;AAAA,EAAA,GAM1B8B,IAAkBF;AAAA,IACvB,CAACG,GAA2BC,MAAexB,EAAauB,GAAMC,CAAE;AAAA,IAChE,CAACxB,CAAY;AAAA,EAAA;AAGd,SACC,gBAAAyB;AAAA,IAACC;AAAA,IAAA;AAAA,MACA,OAAAjC;AAAA,MACA,OAAQK,EAAMN,CAAQ,KAA4B;AAAA,MAClD,UAAU,CAACmC,MAAS5B,EAAM,EAAE,CAACP,CAAQ,GAAGmC,GAA6B;AAAA,MACrE,WAAAhC;AAAA,MACA,aAAAD;AAAA,MACA,WAAAE;AAAA,MACA,UAAU,GAAGE,EAAM,EAAE,IAAIN,CAAQ,IAAIY,CAAe;AAAA,MACpD,cAAAQ;AAAA,MACA,OAAOX;AAAA,MACP,iBAAAqB;AAAA,MACA,SAAS,MAAMhB,EAAmBd,CAAQ;AAAA,MAC1C,gBAAA2B;AAAA,MACA,kBAAkBZ,IAAmBC,IAAwB;AAAA,MAC7D,aAAAS;AAAA,MACA,aAAWpB,EAAK,WAAW;AAAA,IAAA;AAAA,EAAA;AAG9B;"}
1
+ {"version":3,"file":"MentionField.js","sources":["../../../../../src/components/agent-builder/components/MentionField.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from 'react';\nimport { AgentValue } from '../AgentBuilder.model';\nimport { ToolAction } from '../constants/tools';\nimport {\n\tMentionFieldKey,\n\tuseAgentBuilderContext,\n} from '../context/AgentBuilderContext';\nimport {\n\tappTypeLabel,\n\tbuildAgentMentionItems,\n\tbuildCustomToolMentionItems,\n} from '../utils/mentionSerialization';\nimport { buildToolActions } from '../utils/toolActions';\nimport { MentionEditor } from './MentionEditor';\n\ninterface MentionFieldProps {\n\t/** Which AgentValue field this editor reads / writes. */\n\tfieldKey: MentionFieldKey;\n\tlabel: string;\n\tplaceholder?: string;\n\tmaxLength: number;\n\tminHeight?: string;\n\t'data-test'?: string;\n}\n\n/**\n * Context-bound {@link MentionEditor} for the builder's Step-3 Instructions /\n * Guardrails. Both `@` tools and sub-agents are offered; the field registers its\n * insert + focus with the context so side-panel adds drop a chip into whichever\n * field was last focused, and remounts on `mentionResetKey`.\n */\nexport const MentionField: React.FC<MentionFieldProps> = ({\n\tfieldKey,\n\tlabel,\n\tplaceholder,\n\tmaxLength,\n\tminHeight,\n\t...rest\n}) => {\n\tconst {\n\t\tvalue,\n\t\tpatch,\n\t\taddReference,\n\t\tavailableTools,\n\t\tavailableSubAgents,\n\t\tapplicationType,\n\t\tmentionResetKey,\n\t\tregisterMentionField,\n\t\tnotifyMentionFocus,\n\t\tonCreateSubAgent,\n\t\trequestCreateSubAgent,\n\t\trequestToolAction,\n\t\tconfigToolTemplates,\n\t\tintegrationStatus,\n\t\tonConnectIntegration,\n\t} = useAgentBuilderContext();\n\n\t// Catalog tools + sub-agents, PLUS the inline custom tools (Rest API / email /\n\t// Slack) so their `{{tool:<id>}}` tokens rehydrate as chips on remount — they\n\t// live on the value, not in `availableTools`.\n\tconst mentionItems = useMemo(\n\t\t() => [\n\t\t\t...buildAgentMentionItems(\n\t\t\t\tavailableTools,\n\t\t\t\tavailableSubAgents,\n\t\t\t\tappTypeLabel(applicationType),\n\t\t\t),\n\t\t\t...buildCustomToolMentionItems(value.configTools, value.restApiTools),\n\t\t],\n\t\t[\n\t\t\tavailableTools,\n\t\t\tavailableSubAgents,\n\t\t\tapplicationType,\n\t\t\tvalue.configTools,\n\t\t\tvalue.restApiTools,\n\t\t],\n\t);\n\n\t// Built-in tool actions (Rest API / email / Slack) shown in the `@` picker's\n\t// Tools view — picking one opens its drawer (Step 3) instead of inserting text.\n\t// The shared email / Slack forms are backend-driven: each is offered only when\n\t// its template was provided.\n\tconst toolActions = useMemo<ToolAction[]>(\n\t\t() =>\n\t\t\tbuildToolActions(\n\t\t\t\tconfigToolTemplates,\n\t\t\t\trequestToolAction,\n\t\t\t\tintegrationStatus,\n\t\t\t\tonConnectIntegration,\n\t\t\t),\n\t\t[\n\t\t\trequestToolAction,\n\t\t\tconfigToolTemplates,\n\t\t\tintegrationStatus,\n\t\t\tonConnectIntegration,\n\t\t],\n\t);\n\n\tconst registerInsert = useCallback(\n\t\t(fn: Parameters<typeof registerMentionField>[1]) =>\n\t\t\tregisterMentionField(fieldKey, fn),\n\t\t[registerMentionField, fieldKey],\n\t);\n\n\t// Route through the context's ref-backed `addReference`: BikEditor captures\n\t// this handler at mount, so reading `value.tools` here would keep only the last\n\t// pick. `addReference` always appends against the latest lists.\n\tconst onMentionSelect = useCallback(\n\t\t(kind: 'tool' | 'subagent', id: string) => addReference(kind, id),\n\t\t[addReference],\n\t);\n\n\treturn (\n\t\t<MentionEditor\n\t\t\tlabel={label}\n\t\t\tvalue={(value[fieldKey] as string | undefined) ?? ''}\n\t\t\tonChange={(text) => patch({ [fieldKey]: text } as Partial<AgentValue>)}\n\t\t\tmaxLength={maxLength}\n\t\t\tplaceholder={placeholder}\n\t\t\tminHeight={minHeight}\n\t\t\tresetKey={`${value.id}:${fieldKey}:${mentionResetKey}`}\n\t\t\tmentionItems={mentionItems}\n\t\t\ttools={availableTools}\n\t\t\tonMentionSelect={onMentionSelect}\n\t\t\tonFocus={() => notifyMentionFocus(fieldKey)}\n\t\t\tregisterInsert={registerInsert}\n\t\t\tonCreateSubAgent={onCreateSubAgent ? requestCreateSubAgent : undefined}\n\t\t\ttoolActions={toolActions}\n\t\t\tdata-test={rest['data-test']}\n\t\t/>\n\t);\n};\n"],"names":["MentionField","fieldKey","label","placeholder","maxLength","minHeight","rest","value","patch","addReference","availableTools","availableSubAgents","applicationType","mentionResetKey","registerMentionField","notifyMentionFocus","onCreateSubAgent","requestCreateSubAgent","requestToolAction","configToolTemplates","integrationStatus","onConnectIntegration","useAgentBuilderContext","mentionItems","useMemo","buildAgentMentionItems","appTypeLabel","buildCustomToolMentionItems","toolActions","buildToolActions","registerInsert","useCallback","fn","onMentionSelect","kind","id","jsx","MentionEditor","text"],"mappings":";;;;;;AA+BO,MAAMA,IAA4C,CAAC;AAAA,EACzD,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,GAAGC;AACJ,MAAM;AACL,QAAM;AAAA,IACL,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,cAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,sBAAAC;AAAA,EAAA,IACGC,EAAA,GAKEC,IAAeC;AAAA,IACpB,MAAM;AAAA,MACL,GAAGC;AAAA,QACFf;AAAA,QACAC;AAAA,QACAe,EAAad,CAAe;AAAA,MAAA;AAAA,MAE7B,GAAGe,EAA4BpB,EAAM,aAAaA,EAAM,YAAY;AAAA,IAAA;AAAA,IAErE;AAAA,MACCG;AAAA,MACAC;AAAA,MACAC;AAAA,MACAL,EAAM;AAAA,MACNA,EAAM;AAAA,IAAA;AAAA,EACP,GAOKqB,IAAcJ;AAAA,IACnB,MACCK;AAAA,MACCV;AAAA,MACAD;AAAA,MACAE;AAAA,MACAC;AAAA,IAAA;AAAA,IAEF;AAAA,MACCH;AAAA,MACAC;AAAA,MACAC;AAAA,MACAC;AAAA,IAAA;AAAA,EACD,GAGKS,IAAiBC;AAAA,IACtB,CAACC,MACAlB,EAAqBb,GAAU+B,CAAE;AAAA,IAClC,CAAClB,GAAsBb,CAAQ;AAAA,EAAA,GAM1BgC,IAAkBF;AAAA,IACvB,CAACG,GAA2BC,MAAe1B,EAAayB,GAAMC,CAAE;AAAA,IAChE,CAAC1B,CAAY;AAAA,EAAA;AAGd,SACC,gBAAA2B;AAAA,IAACC;AAAA,IAAA;AAAA,MACA,OAAAnC;AAAA,MACA,OAAQK,EAAMN,CAAQ,KAA4B;AAAA,MAClD,UAAU,CAACqC,MAAS9B,EAAM,EAAE,CAACP,CAAQ,GAAGqC,GAA6B;AAAA,MACrE,WAAAlC;AAAA,MACA,aAAAD;AAAA,MACA,WAAAE;AAAA,MACA,UAAU,GAAGE,EAAM,EAAE,IAAIN,CAAQ,IAAIY,CAAe;AAAA,MACpD,cAAAU;AAAA,MACA,OAAOb;AAAA,MACP,iBAAAuB;AAAA,MACA,SAAS,MAAMlB,EAAmBd,CAAQ;AAAA,MAC1C,gBAAA6B;AAAA,MACA,kBAAkBd,IAAmBC,IAAwB;AAAA,MAC7D,aAAAW;AAAA,MACA,aAAWtB,EAAK,WAAW;AAAA,IAAA;AAAA,EAAA;AAG9B;"}
@@ -1,146 +1,158 @@
1
- import { jsxs as m, jsx as u, Fragment as J } from "react/jsx-runtime";
2
- import Q from "../../../assets/icons/chevronRight.svg.js";
3
- import V from "../../../assets/icons/searchIcon.svg.js";
4
- import W from "../../../icons/Arrows/Normal arrows/ArrowLeft.js";
5
- import { useState as $, useMemo as b, useEffect as T, useRef as X } from "react";
1
+ import { jsxs as m, jsx as u, Fragment as Q } from "react/jsx-runtime";
2
+ import V from "../../../assets/icons/chevronRight.svg.js";
3
+ import W from "../../../assets/icons/searchIcon.svg.js";
4
+ import X from "../../../icons/Arrows/Normal arrows/ArrowLeft.js";
5
+ import { useState as A, useMemo as x, useEffect as P, useRef as Y } from "react";
6
6
  import p from "styled-components";
7
- import { TitleSmall as Y, BodySecondary as Z } from "../../TypographyStyle.js";
7
+ import { TitleSmall as Z, BodySecondary as K } from "../../TypographyStyle.js";
8
8
  import { COLORS as o } from "../../../constants/Theme.js";
9
- import { CATEGORIES as K, CONFIG_TOOL_SOURCES as H } from "../constants/tools.js";
10
- import { toolSourceLabel as N } from "../utils/mentionSerialization.js";
11
- import { sourceIcon as z, renderSourceIcon as U } from "../utils/sourceIcons.js";
12
- const y = (i) => i.meta, B = (i) => y(i)?.plainLabel ?? i.label, ee = "__bik_create_subagent__", ve = ({
9
+ import { CATEGORIES as H, toolSourceRank as U, CONFIG_TOOL_SOURCES as ee } from "../constants/tools.js";
10
+ import { toolSourceLabel as D } from "../utils/mentionSerialization.js";
11
+ import { sourceIcon as z, renderSourceIcon as j } from "../utils/sourceIcons.js";
12
+ const y = (i) => i.meta, L = (i) => y(i)?.plainLabel ?? i.label, te = "__bik_create_subagent__", we = ({
13
13
  items: i,
14
- onSelect: A,
14
+ onSelect: R,
15
15
  registerKeyHandler: w,
16
- onClose: E,
17
- onCreateSubAgent: x,
18
- initialSource: j,
19
- toolActions: f
16
+ onClose: I,
17
+ onCreateSubAgent: k,
18
+ initialSource: F,
19
+ toolActions: h
20
20
  }) => {
21
- const [F, R] = $(null), [a, L] = $(j ?? null), [I, h] = $(0), [k, D] = $(""), g = b(
21
+ const [G, B] = A(null), [a, E] = A(F ?? null), [S, g] = A(0), [v, M] = A(""), b = x(
22
22
  () => i.filter((e) => y(e)?.kind === "tool"),
23
23
  [i]
24
- ), S = b(
24
+ ), C = x(
25
25
  () => i.filter((e) => y(e)?.kind === "subagent"),
26
26
  [i]
27
- ), _ = b(() => {
27
+ ), _ = x(() => {
28
28
  const e = [];
29
- return g.forEach((n) => {
30
- const d = y(n)?.source ?? "other";
31
- e.includes(d) || e.push(d);
29
+ return b.forEach((r) => {
30
+ const f = y(r)?.source ?? "other";
31
+ e.includes(f) || e.push(f);
32
32
  }), e;
33
- }, [g]), O = b(
33
+ }, [b]), O = x(
34
34
  () => new Map(
35
- (f ?? []).map((e) => [e.source, e])
35
+ (h ?? []).map((e) => [e.source, e])
36
36
  ),
37
- [f]
38
- ), C = b(
39
- () => K.filter(
40
- (e) => e.key === "tool" ? g.length > 0 || (f?.length ?? 0) > 0 : S.length > 0 || !!x
37
+ [h]
38
+ ), $ = x(
39
+ () => H.filter(
40
+ (e) => e.key === "tool" ? b.length > 0 || (h?.length ?? 0) > 0 : C.length > 0 || !!k
41
41
  ),
42
- [g.length, S.length, x, f?.length]
43
- ), P = C.length === 1 ? C[0].key : null, l = F ?? P, s = l ? l === "subagent" ? (
42
+ [b.length, C.length, k, h?.length]
43
+ ), T = $.length === 1 ? $[0].key : null, c = G ?? T, d = c ? c === "subagent" ? (
44
44
  // Always titled — with a back arrow only when the category chooser is above.
45
45
  {
46
46
  title: "Sub-agent",
47
- onBack: P ? void 0 : () => R(null)
47
+ onBack: T ? void 0 : () => B(null)
48
48
  }
49
49
  ) : a ? {
50
- title: N(a),
51
- onBack: () => L(null),
50
+ title: D(a),
51
+ onBack: () => E(null),
52
52
  icon: z(a)
53
53
  } : (
54
54
  // Always titled — matches the Sub-agent header; back arrow only when the
55
55
  // category chooser is above (i.e. not the sole category).
56
56
  {
57
57
  title: "Tools",
58
- onBack: P ? void 0 : () => R(null)
58
+ onBack: T ? void 0 : () => B(null)
59
59
  }
60
- ) : null, c = b(() => {
61
- if (!l)
62
- return C.map((t) => ({
60
+ ) : null, s = x(() => {
61
+ if (!c)
62
+ return $.map((t) => ({
63
63
  id: t.key,
64
64
  label: t.label,
65
65
  drillsIn: !0,
66
66
  onActivate: () => {
67
- R(t.key), L(null);
67
+ B(t.key), E(null);
68
68
  }
69
69
  }));
70
- if (l === "subagent") {
71
- const t = k.trim().toLowerCase(), r = S.filter((v) => !t || B(v).toLowerCase().includes(t)).map((v) => ({
72
- id: String(v.id),
73
- label: B(v),
70
+ if (c === "subagent") {
71
+ const t = v.trim().toLowerCase(), n = C.filter((l) => !t || L(l).toLowerCase().includes(t)).map((l) => ({
72
+ id: String(l.id),
73
+ label: L(l),
74
74
  drillsIn: !1,
75
- onActivate: () => A(v)
75
+ onActivate: () => R(l)
76
76
  }));
77
- return x && r.push({
78
- id: ee,
77
+ return k && n.push({
78
+ id: te,
79
79
  label: "Create new",
80
80
  drillsIn: !1,
81
81
  isCreate: !0,
82
82
  onActivate: () => {
83
- E?.(), x();
83
+ I?.(), k();
84
84
  }
85
- }), r;
85
+ }), n;
86
86
  }
87
87
  if (!a) {
88
- const t = (f ?? []).map((r) => r.source).filter((r) => !_.includes(r));
89
- return [..._, ...t].map((r) => ({
90
- id: r,
91
- label: N(r),
92
- drillsIn: !0,
93
- icon: z(r) ?? O.get(r)?.icon,
94
- onActivate: () => L(r)
95
- }));
88
+ const t = (h ?? []).map((n) => n.source).filter((n) => !_.includes(n));
89
+ return [..._, ...t].sort((n, l) => U(n) - U(l)).map((n) => {
90
+ const l = O.get(n);
91
+ return l?.connected === !1 ? {
92
+ id: n,
93
+ label: D(n),
94
+ drillsIn: !1,
95
+ icon: z(n) ?? l.icon,
96
+ rightLabel: "Connect",
97
+ onActivate: () => {
98
+ I?.(), l.onConnect?.();
99
+ }
100
+ } : {
101
+ id: n,
102
+ label: D(n),
103
+ drillsIn: !0,
104
+ icon: z(n) ?? l?.icon,
105
+ onActivate: () => E(n)
106
+ };
107
+ });
96
108
  }
97
- const e = k.trim().toLowerCase(), n = g.filter((t) => (y(t)?.source ?? "other") === a).filter((t) => !e || B(t).toLowerCase().includes(e)).map((t) => ({
109
+ const e = v.trim().toLowerCase(), r = b.filter((t) => (y(t)?.source ?? "other") === a).filter((t) => !e || L(t).toLowerCase().includes(e)).map((t) => ({
98
110
  id: String(t.id),
99
- label: B(t),
111
+ label: L(t),
100
112
  drillsIn: !1,
101
- onActivate: () => A(t)
102
- })), d = O.get(a);
103
- if (d) {
104
- const t = a in H;
105
- n.push({
113
+ onActivate: () => R(t)
114
+ })), f = O.get(a);
115
+ if (f) {
116
+ const t = a in ee;
117
+ r.push({
106
118
  id: `create:${a}`,
107
- label: d.label,
119
+ label: f.label,
108
120
  drillsIn: !1,
109
121
  isCreate: !t,
110
122
  onActivate: () => {
111
- E?.(), d.onSelect();
123
+ I?.(), f.onSelect();
112
124
  }
113
125
  });
114
126
  }
115
- return n;
127
+ return r;
116
128
  }, [
117
- l,
118
- C,
129
+ c,
130
+ $,
119
131
  a,
120
- k,
121
- g,
122
- S,
132
+ v,
133
+ b,
134
+ C,
123
135
  _,
124
- A,
125
- E,
126
- x,
127
- f,
136
+ R,
137
+ I,
138
+ k,
139
+ h,
128
140
  O
129
141
  ]);
130
- T(() => h(0), [l, a, k, i]), T(() => D(""), [l, a]);
131
- const M = X({ rows: c, activeIndex: I, header: s });
132
- M.current = { rows: c, activeIndex: I, header: s }, T(() => {
142
+ P(() => g(0), [c, a, v, i]), P(() => M(""), [c, a]);
143
+ const N = Y({ rows: s, activeIndex: S, header: d });
144
+ N.current = { rows: s, activeIndex: S, header: d }, P(() => {
133
145
  if (w)
134
146
  return w((e) => {
135
- const { rows: n, activeIndex: d, header: t } = M.current;
147
+ const { rows: r, activeIndex: f, header: t } = N.current;
136
148
  switch (e.key) {
137
149
  case "ArrowDown":
138
- return n.length && h((r) => (r + 1) % n.length), !0;
150
+ return r.length && g((n) => (n + 1) % r.length), !0;
139
151
  case "ArrowUp":
140
- return n.length && h((r) => (r + n.length - 1) % n.length), !0;
152
+ return r.length && g((n) => (n + r.length - 1) % r.length), !0;
141
153
  case "ArrowRight":
142
154
  case "Enter":
143
- return n[d]?.onActivate(), !0;
155
+ return r[f]?.onActivate(), !0;
144
156
  case "ArrowLeft":
145
157
  return t?.onBack ? (t.onBack(), !0) : !1;
146
158
  default:
@@ -148,38 +160,38 @@ const y = (i) => i.meta, B = (i) => y(i)?.plainLabel ?? i.label, ee = "__bik_cre
148
160
  }
149
161
  }), () => w(null);
150
162
  }, [w]);
151
- const G = l ? c.length && !c[0].drillsIn ? "items" : "sources" : "categories", q = l === "tool" && !!a || l === "subagent";
152
- return /* @__PURE__ */ m(te, { className: `bik-mention-picker bik-mention-picker--${G}`, children: [
153
- s && /* @__PURE__ */ m(
154
- le,
163
+ const q = c ? s.length && !s[0].drillsIn ? "items" : "sources" : "categories", J = c === "tool" && !!a || c === "subagent";
164
+ return /* @__PURE__ */ m(ne, { className: `bik-mention-picker bik-mention-picker--${q}`, children: [
165
+ d && /* @__PURE__ */ m(
166
+ se,
155
167
  {
156
168
  type: "button",
157
- onClick: s.onBack,
158
- disabled: !s.onBack,
169
+ onClick: d.onBack,
170
+ disabled: !d.onBack,
159
171
  style: {
160
172
  background: o.surface.subdued,
161
- cursor: s.onBack ? "pointer" : "default"
173
+ cursor: d.onBack ? "pointer" : "default"
162
174
  },
163
175
  children: [
164
- s.onBack && /* @__PURE__ */ u(
165
- W,
176
+ d.onBack && /* @__PURE__ */ u(
177
+ X,
166
178
  {
167
179
  width: 20,
168
180
  height: 20,
169
181
  color: o.content.primary
170
182
  }
171
183
  ),
172
- s.icon && U(s.icon),
173
- /* @__PURE__ */ m(Y, { children: [
184
+ d.icon && j(d.icon),
185
+ /* @__PURE__ */ m(Z, { children: [
174
186
  " ",
175
- s.title
187
+ d.title
176
188
  ] })
177
189
  ]
178
190
  }
179
191
  ),
180
- q && /* @__PURE__ */ m(ne, { children: [
192
+ J && /* @__PURE__ */ m(re, { children: [
181
193
  /* @__PURE__ */ u(
182
- V,
194
+ W,
183
195
  {
184
196
  width: 20,
185
197
  height: 20,
@@ -187,38 +199,38 @@ const y = (i) => i.meta, B = (i) => y(i)?.plainLabel ?? i.label, ee = "__bik_cre
187
199
  }
188
200
  ),
189
201
  /* @__PURE__ */ u(
190
- re,
202
+ oe,
191
203
  {
192
204
  autoFocus: !0,
193
- value: k,
205
+ value: v,
194
206
  placeholder: "Search",
195
207
  "data-test": "mention-picker-search",
196
- onChange: (e) => D(e.target.value),
208
+ onChange: (e) => M(e.target.value),
197
209
  onKeyDown: (e) => {
198
- c.length && (e.key === "ArrowDown" ? (e.preventDefault(), h((n) => (n + 1) % c.length)) : e.key === "ArrowUp" ? (e.preventDefault(), h((n) => (n + c.length - 1) % c.length)) : e.key === "Enter" && (e.preventDefault(), c[I]?.onActivate()));
210
+ s.length && (e.key === "ArrowDown" ? (e.preventDefault(), g((r) => (r + 1) % s.length)) : e.key === "ArrowUp" ? (e.preventDefault(), g((r) => (r + s.length - 1) % s.length)) : e.key === "Enter" && (e.preventDefault(), s[S]?.onActivate()));
199
211
  }
200
212
  }
201
213
  )
202
214
  ] }),
203
- c.length === 0 ? /* @__PURE__ */ u(ce, { children: l === "subagent" ? "No sub-agents available" : "No tools available" }) : c.map((e, n) => /* @__PURE__ */ u(
204
- oe,
215
+ s.length === 0 ? /* @__PURE__ */ u(de, { children: c === "subagent" ? "No sub-agents available" : "No tools available" }) : s.map((e, r) => /* @__PURE__ */ u(
216
+ ie,
205
217
  {
206
218
  type: "button",
207
- $active: n === I,
208
- onMouseEnter: () => h(n),
219
+ $active: r === S,
220
+ onMouseEnter: () => g(r),
209
221
  onClick: e.onActivate,
210
- children: e.isCreate ? /* @__PURE__ */ u(ae, { children: e.label }) : /* @__PURE__ */ m(J, { children: [
211
- /* @__PURE__ */ m(ie, { children: [
212
- U(e.icon),
213
- /* @__PURE__ */ u(Z, { color: o.content.primary, children: e.label })
222
+ children: e.isCreate ? /* @__PURE__ */ u(ce, { children: e.label }) : /* @__PURE__ */ m(Q, { children: [
223
+ /* @__PURE__ */ m(ae, { children: [
224
+ j(e.icon),
225
+ /* @__PURE__ */ u(K, { color: o.content.primary, children: e.label })
214
226
  ] }),
215
- e.drillsIn && /* @__PURE__ */ u(Q, { width: 12, height: 12 })
227
+ e.rightLabel ? /* @__PURE__ */ u(le, { children: e.rightLabel }) : e.drillsIn && /* @__PURE__ */ u(V, { width: 12, height: 12 })
216
228
  ] })
217
229
  },
218
230
  e.id
219
231
  ))
220
232
  ] });
221
- }, te = p.div`
233
+ }, ne = p.div`
222
234
  display: flex;
223
235
  flex-direction: column;
224
236
  min-width: 240px;
@@ -228,13 +240,13 @@ const y = (i) => i.meta, B = (i) => y(i)?.plainLabel ?? i.label, ee = "__bik_cre
228
240
  border: 1px solid ${o.stroke.primary};
229
241
  border-radius: 4px;
230
242
  box-shadow: 0px -2px 8px 0px #0000001f;
231
- `, ne = p.div`
243
+ `, re = p.div`
232
244
  display: flex;
233
245
  align-items: center;
234
246
  gap: 8px;
235
247
  padding: 10px 12px;
236
248
  border-bottom: 1px solid ${o.stroke.primary};
237
- `, re = p.input`
249
+ `, oe = p.input`
238
250
  flex: 1;
239
251
  min-width: 0;
240
252
  border: none;
@@ -247,7 +259,7 @@ const y = (i) => i.meta, B = (i) => y(i)?.plainLabel ?? i.label, ee = "__bik_cre
247
259
  &::placeholder {
248
260
  color: ${o.content.placeholder};
249
261
  }
250
- `, oe = p.button`
262
+ `, ie = p.button`
251
263
  display: flex;
252
264
  justify-content: space-between;
253
265
  align-items: center;
@@ -264,19 +276,26 @@ const y = (i) => i.meta, B = (i) => y(i)?.plainLabel ?? i.label, ee = "__bik_cre
264
276
  &:hover {
265
277
  background: ${o.surface.subdued};
266
278
  }
267
- `, ie = p.div`
279
+ `, ae = p.div`
268
280
  display: flex;
269
281
  align-items: center;
270
282
  gap: 12px;
271
283
  min-width: 0;
272
- `, ae = p.div`
284
+ `, le = p.span`
285
+ flex-shrink: 0;
286
+ color: ${o.content.brand};
287
+ font-family: Inter;
288
+ font-size: 14px;
289
+ font-weight: 600;
290
+ white-space: nowrap;
291
+ `, ce = p.div`
273
292
  width: 100%;
274
293
  text-align: center;
275
294
  color: ${o.content.brand};
276
295
  font-family: Inter;
277
296
  font-size: 14px;
278
297
  font-weight: 600;
279
- `, le = p.button`
298
+ `, se = p.button`
280
299
  display: flex;
281
300
  align-items: center;
282
301
  padding: 12px 16px;
@@ -289,13 +308,13 @@ const y = (i) => i.meta, B = (i) => y(i)?.plainLabel ?? i.label, ee = "__bik_cre
289
308
  font-weight: 600;
290
309
  height: 48px;
291
310
  gap: 4px;
292
- `, ce = p.div`
311
+ `, de = p.div`
293
312
  padding: 12px 10px;
294
313
  font-family: Inter;
295
314
  font-size: 13px;
296
315
  color: ${o.content.secondary};
297
316
  `;
298
317
  export {
299
- ve as MentionPicker
318
+ we as MentionPicker
300
319
  };
301
320
  //# sourceMappingURL=MentionPicker.js.map