@burdenoff/fe-libs 2026.716.1 → 2026.717.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.
@@ -191,13 +191,28 @@ var e, t, n, r, i, a = -1, o = function(e) {
191
191
  }));
192
192
  }
193
193
  }));
194
- }, W = {
194
+ }, W = [800, 1800], G = function e(t) {
195
+ document.prerendering ? x((function() {
196
+ return e(t);
197
+ })) : document.readyState === "complete" ? setTimeout(t, 0) : addEventListener("load", (function() {
198
+ return e(t);
199
+ }), !0);
200
+ }, K = function(e, t) {
201
+ t ||= {};
202
+ var n = l("TTFB"), r = d(e, n, W, t.reportAllChanges);
203
+ G((function() {
204
+ var i = s();
205
+ i && (n.value = Math.max(i.responseStart - c(), 0), n.entries = [i], r(!0), o((function() {
206
+ n = l("TTFB", 0), (r = d(e, n, W, t.reportAllChanges))(!0);
207
+ })));
208
+ }));
209
+ }, q = {
195
210
  passive: !0,
196
211
  capture: !0
197
- }, G = /* @__PURE__ */ new Date(), K = function(e, i) {
198
- t || (t = i, n = e, r = /* @__PURE__ */ new Date(), Y(removeEventListener), q());
199
- }, q = function() {
200
- if (n >= 0 && n < r - G) {
212
+ }, J = /* @__PURE__ */ new Date(), Y = function(e, i) {
213
+ t || (t = i, n = e, r = /* @__PURE__ */ new Date(), Q(removeEventListener), X());
214
+ }, X = function() {
215
+ if (n >= 0 && n < r - J) {
201
216
  var e = {
202
217
  entryType: "first-input",
203
218
  name: t.type,
@@ -210,29 +225,29 @@ var e, t, n, r, i, a = -1, o = function(e) {
210
225
  t(e);
211
226
  })), i = [];
212
227
  }
213
- }, J = function(e) {
228
+ }, Z = function(e) {
214
229
  if (e.cancelable) {
215
230
  var t = (e.timeStamp > 0xe8d4a51000 ? /* @__PURE__ */ new Date() : performance.now()) - e.timeStamp;
216
231
  e.type == "pointerdown" ? function(e, t) {
217
232
  var n = function() {
218
- K(e, t), i();
233
+ Y(e, t), i();
219
234
  }, r = function() {
220
235
  i();
221
236
  }, i = function() {
222
- removeEventListener("pointerup", n, W), removeEventListener("pointercancel", r, W);
237
+ removeEventListener("pointerup", n, q), removeEventListener("pointercancel", r, q);
223
238
  };
224
- addEventListener("pointerup", n, W), addEventListener("pointercancel", r, W);
225
- }(t, e) : K(t, e);
239
+ addEventListener("pointerup", n, q), addEventListener("pointercancel", r, q);
240
+ }(t, e) : Y(t, e);
226
241
  }
227
- }, Y = function(e) {
242
+ }, Q = function(e) {
228
243
  [
229
244
  "mousedown",
230
245
  "keydown",
231
246
  "touchstart",
232
247
  "pointerdown"
233
248
  ].forEach((function(t) {
234
- return e(t, J, W);
249
+ return e(t, Z, q);
235
250
  }));
236
251
  };
237
252
  //#endregion
238
- export { U as G, B as j, T as w };
253
+ export { U as G, K as Q, B as j, T as w };
@@ -1,8 +1,36 @@
1
1
  import { FC } from 'react';
2
2
  import { AssistantTransport } from './types';
3
- export interface AssistantWidgetProps {
4
- /** Backend adapter supplied by the host product. */
3
+ /**
4
+ * One selectable assistant mode. Supply two or more via `modes` to render a
5
+ * mode switcher in the header — e.g. a "Workflow" assistant and a "Build a node"
6
+ * assistant, each with its own transport. Switching modes starts that mode's
7
+ * conversation (state is not shared across modes).
8
+ */
9
+ export interface AssistantModeOption {
10
+ /** Stable id used for selection + persistence. */
11
+ id: string;
12
+ /** Short label shown in the mode switcher. */
13
+ label: string;
14
+ /** Backend adapter for this mode. */
5
15
  transport: AssistantTransport;
16
+ /** Optional per-mode header title / empty-state subtitle / input placeholder. */
17
+ title?: string;
18
+ subtitle?: string;
19
+ placeholder?: string;
20
+ }
21
+ export interface AssistantWidgetProps {
22
+ /**
23
+ * Backend adapter supplied by the host product. Optional only when `modes` is
24
+ * provided (each mode carries its own transport); supply exactly one of the two.
25
+ */
26
+ transport?: AssistantTransport;
27
+ /**
28
+ * Two or more assistant modes, rendered as a switcher in the header. When
29
+ * omitted, the widget is single-mode and behaves exactly as before.
30
+ */
31
+ modes?: AssistantModeOption[];
32
+ /** Initially-selected mode id when `modes` is used (defaults to the first). */
33
+ defaultModeId?: string;
6
34
  /** Window header title. */
7
35
  title?: string;
8
36
  /** Short helper line shown above the first message. */
@@ -1 +1 @@
1
- {"version":3,"file":"AssistantWidget.d.ts","sourceRoot":"","sources":["../../../../src/shared/components/assistantWidget/AssistantWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAML,KAAK,EAAE,EAER,MAAM,OAAO,CAAC;AAiBf,OAAO,KAAK,EAA2B,kBAAkB,EAA0B,MAAM,SAAS,CAAC;AAEnG,MAAM,WAAW,oBAAoB;IACnC,oDAAoD;IACpD,SAAS,EAAE,kBAAkB,CAAC;IAC9B,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAChC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,4EAA4E;IAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,8EAA8E;AAC9E,eAAO,MAAM,6BAA6B,+BAA+B,CAAC;AA6C1E,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAolBpD,CAAC"}
1
+ {"version":3,"file":"AssistantWidget.d.ts","sourceRoot":"","sources":["../../../../src/shared/components/assistantWidget/AssistantWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAML,KAAK,EAAE,EAER,M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