@heigin/ui 0.1.1 → 0.2.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/dist/components/crm/agent-decision-tree.d.ts +82 -0
  3. package/dist/components/crm/agent-decision-tree.js +580 -0
  4. package/dist/components/crm/agent-decision-tree.module.js +113 -0
  5. package/dist/components/crm/agent-task-trail.d.ts +56 -0
  6. package/dist/components/crm/agent-task-trail.js +419 -0
  7. package/dist/components/crm/agent-thinking.d.ts +36 -0
  8. package/dist/components/crm/agent-thinking.js +443 -0
  9. package/dist/components/crm/agent-thinking.module.js +33 -0
  10. package/dist/components/crm/agent.module.js +81 -0
  11. package/dist/components/crm/crm.module.js +44 -4
  12. package/dist/components/crm/record-header.d.ts +2 -2
  13. package/dist/components/crm/workspace-switcher.d.ts +49 -0
  14. package/dist/components/crm/workspace-switcher.js +205 -0
  15. package/dist/components/ui/avatar.d.ts +9 -1
  16. package/dist/components/ui/avatar.js +61 -4
  17. package/dist/components/ui/avatar.module.js +4 -2
  18. package/dist/components/ui/breadcrumb.d.ts +10 -0
  19. package/dist/components/ui/breadcrumb.js +48 -0
  20. package/dist/components/ui/breadcrumb.module.js +19 -0
  21. package/dist/components/ui/heigin-mark.d.ts +11 -0
  22. package/dist/components/ui/heigin-mark.js +41 -0
  23. package/dist/components/ui/loader.d.ts +21 -0
  24. package/dist/components/ui/loader.js +45 -0
  25. package/dist/components/ui/table.d.ts +9 -1
  26. package/dist/components/ui/table.js +136 -89
  27. package/dist/components/ui/table.module.js +13 -1
  28. package/dist/components/ui/thinking-orb.d.ts +27 -0
  29. package/dist/components/ui/thinking-orb.js +27 -0
  30. package/dist/components/ui/type-motion.d.ts +31 -0
  31. package/dist/components/ui/type-motion.js +394 -0
  32. package/dist/components/ui/type-motion.module.js +31 -0
  33. package/dist/index.d.ts +9 -0
  34. package/dist/index.js +10 -1
  35. package/dist/styles.css +1732 -7
  36. package/package.json +3 -2
@@ -0,0 +1,443 @@
1
+ "use client";
2
+ "use client";
3
+ import { cn } from "../../lib/cn.js";
4
+ import { Loader } from "../ui/loader.js";
5
+ import agent_thinking_module_default from "./agent-thinking.module.js";
6
+ import * as React from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { ChevronRight, Square } from "lucide-react";
9
+ //#region src/components/crm/agent-thinking.tsx
10
+ var N = 84;
11
+ var clamp = (v, a, b) => v < a ? a : v > b ? b : v;
12
+ var len3 = (x, y, z) => Math.sqrt(x * x + y * y + z * z);
13
+ function sdCappedCone(px, py, pz, h, r1, r2) {
14
+ const qx = Math.hypot(px, pz);
15
+ const qy = py;
16
+ const k2x = r2 - r1;
17
+ const k2y = 2 * h;
18
+ const cax = qx - Math.min(qx, qy < 0 ? r1 : r2);
19
+ const cay = Math.abs(qy) - h;
20
+ const t = clamp(((r2 - qx) * k2x + (h - qy) * k2y) / (k2x * k2x + k2y * k2y), 0, 1);
21
+ const cbx = qx - r2 + k2x * t;
22
+ const cby = qy - h + k2y * t;
23
+ return (cbx < 0 && cay < 0 ? -1 : 1) * Math.sqrt(Math.min(cax * cax + cay * cay, cbx * cbx + cby * cby));
24
+ }
25
+ var sdTorus = (x, y, z, R, r) => Math.hypot(Math.hypot(x, y) - R, z) - r;
26
+ function sdCapsule(px, py, pz, ax, ay, bx, by, r) {
27
+ const pax = px - ax;
28
+ const pay = py - ay;
29
+ const bax = bx - ax;
30
+ const bay = by - ay;
31
+ const h = clamp((pax * bax + pay * bay) / (bax * bax + bay * bay), 0, 1);
32
+ return len3(pax - bax * h, pay - bay * h, pz) - r;
33
+ }
34
+ function sdBox(x, y, z, b, r) {
35
+ const qx = Math.abs(x) - b;
36
+ const qy = Math.abs(y) - b;
37
+ const qz = Math.abs(z) - b;
38
+ return len3(Math.max(qx, 0), Math.max(qy, 0), Math.max(qz, 0)) + Math.min(Math.max(qx, qy, qz), 0) - r;
39
+ }
40
+ var SHAPES = {
41
+ tree: (x, y, z) => Math.min(sdCappedCone(x, y - .66, z, .3, .36, 0), sdCappedCone(x, y - .16, z, .34, .5, .1), sdCappedCone(x, y + .38, z, .36, .64, .16), sdCapsule(x, y, z, 0, -.72, 0, -.98, .11)),
42
+ lens: (x, y, z) => Math.min(sdTorus(x + .18, y - .18, z, .5, .13), sdCapsule(x, y, z, .2, -.2, .82, -.82, .13)),
43
+ globe: (x, y, z) => len3(x, y, z) - .78,
44
+ cube: (x, y, z) => sdBox(x, y, z, .48, .08),
45
+ ring: (x, y, z) => sdTorus(x, y, z, .58, .2)
46
+ };
47
+ var TILT = {
48
+ tree: -.22,
49
+ lens: .18,
50
+ globe: -.38,
51
+ cube: -.5,
52
+ ring: -.9
53
+ };
54
+ function field(shape, t) {
55
+ const out = /* @__PURE__ */ new Float32Array(7056);
56
+ const f = SHAPES[shape];
57
+ const ry = shape === "lens" ? Math.sin(t * .7) * .55 + .35 : t * .55;
58
+ const rx = TILT[shape];
59
+ const cy = Math.cos(ry);
60
+ const sy = Math.sin(ry);
61
+ const cx = Math.cos(rx);
62
+ const sx = Math.sin(rx);
63
+ const sdf = (x, y, z) => {
64
+ const y1 = y * cx - z * sx;
65
+ const z1 = y * sx + z * cx;
66
+ return f(x * cy + z1 * sy, y1, -x * sy + z1 * cy);
67
+ };
68
+ for (let j = 0; j < N; j++) for (let i = 0; i < N; i++) {
69
+ const u = (i + .5) / N * 2.6 - 1.3;
70
+ const v = -((j + .5) / N * 2.6 - 1.3);
71
+ let z = -3;
72
+ let hit = false;
73
+ for (let k = 0; k < 34; k++) {
74
+ const d = sdf(u, v, z);
75
+ if (d < .004) {
76
+ hit = true;
77
+ break;
78
+ }
79
+ z += d;
80
+ if (z > 2) break;
81
+ }
82
+ if (!hit) continue;
83
+ const e = .01;
84
+ const nx = sdf(u + e, v, z) - sdf(u - e, v, z);
85
+ const ny = sdf(u, v + e, z) - sdf(u, v - e, z);
86
+ const nz = sdf(u, v, z - e) - sdf(u, v, z + e);
87
+ const nl = len3(nx, ny, nz) || 1;
88
+ const lambert = clamp((nx * -.55 + ny * .6 + nz * .58) / nl, 0, 1);
89
+ out[j * N + i] = .12 + (1 - lambert) * .88;
90
+ }
91
+ return out;
92
+ }
93
+ var BAYER = (() => {
94
+ const b = [[0, 2], [3, 1]];
95
+ let m = b;
96
+ for (let s = 0; s < 2; s++) {
97
+ const n = m.length;
98
+ const next = [];
99
+ for (let y = 0; y < n * 2; y++) {
100
+ next[y] = [];
101
+ for (let x = 0; x < n * 2; x++) next[y][x] = 4 * m[y % n][x % n] + b[y / n | 0][x / n | 0];
102
+ }
103
+ m = next;
104
+ }
105
+ return m.map((row) => row.map((v) => (v + .5) / 64));
106
+ })();
107
+ var GLYPHS = [
108
+ [
109
+ 0,
110
+ 1,
111
+ 0,
112
+ 1,
113
+ 1,
114
+ 1,
115
+ 0,
116
+ 1,
117
+ 0
118
+ ],
119
+ [
120
+ 1,
121
+ 0,
122
+ 1,
123
+ 0,
124
+ 1,
125
+ 0,
126
+ 1,
127
+ 0,
128
+ 1
129
+ ],
130
+ [
131
+ 1,
132
+ 1,
133
+ 0,
134
+ 1,
135
+ 1,
136
+ 0,
137
+ 0,
138
+ 0,
139
+ 0
140
+ ],
141
+ [
142
+ 1,
143
+ 1,
144
+ 1,
145
+ 1,
146
+ 0,
147
+ 1,
148
+ 1,
149
+ 1,
150
+ 1
151
+ ],
152
+ [
153
+ 0,
154
+ 0,
155
+ 0,
156
+ 1,
157
+ 1,
158
+ 1,
159
+ 0,
160
+ 0,
161
+ 0
162
+ ]
163
+ ];
164
+ var ease = (x) => 1 - Math.pow(1 - clamp(x, 0, 1), 3);
165
+ function seeded(seed) {
166
+ let s = seed;
167
+ return () => ((s = s * 16807 % 2147483647) - 1) / 2147483646;
168
+ }
169
+ function useDitherVisual(canvasRef, shape, running) {
170
+ const state = React.useRef({
171
+ from: null,
172
+ to: null,
173
+ mixAt: 0
174
+ });
175
+ const redraw = React.useRef(null);
176
+ React.useEffect(() => {
177
+ const s = state.current;
178
+ if (s.to === shape) return;
179
+ s.from = s.to;
180
+ s.to = shape;
181
+ s.mixAt = performance.now();
182
+ redraw.current?.();
183
+ }, [shape]);
184
+ React.useEffect(() => {
185
+ const canvas = canvasRef.current;
186
+ const ctx = canvas?.getContext?.("2d");
187
+ if (!canvas || !ctx) return;
188
+ const reduce = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? false;
189
+ const rnd = seeded(7);
190
+ const RND = Float32Array.from({ length: 7056 }, rnd);
191
+ const ANG = Float32Array.from({ length: 7056 }, () => rnd() * Math.PI * 2);
192
+ const DIST = Float32Array.from({ length: 7056 }, () => .4 + rnd() * .9);
193
+ const strays = Array.from({ length: 60 }, () => ({
194
+ a: rnd() * 6.28,
195
+ r: .35 + rnd() * .62,
196
+ s: (rnd() - .5) * .15,
197
+ ph: rnd() * 6.28
198
+ }));
199
+ const swarm = Array.from({ length: 130 }, () => {
200
+ const a = rnd() * 6.28;
201
+ const r = Math.pow(rnd(), .7) * .42;
202
+ return {
203
+ x: .5 + Math.cos(a) * r,
204
+ y: .42 + Math.sin(a) * r * .9,
205
+ g: rnd() * GLYPHS.length | 0,
206
+ ph: rnd() * 6.28
207
+ };
208
+ });
209
+ const dpr = Math.min(2, window.devicePixelRatio || 1);
210
+ let size = 0;
211
+ let colour = "#1f1f1f";
212
+ let visible = true;
213
+ let raf = 0;
214
+ const t0 = performance.now();
215
+ const resize = () => {
216
+ const w = canvas.clientWidth || 280;
217
+ const next = Math.round(w * dpr);
218
+ colour = getComputedStyle(canvas).color || colour;
219
+ if (next === size) return;
220
+ size = next;
221
+ canvas.width = size;
222
+ canvas.height = size;
223
+ redraw.current?.();
224
+ };
225
+ const cells = (data, mode, m) => {
226
+ const CELL = size / N;
227
+ for (let j = 0; j < N; j++) for (let i = 0; i < N; i++) {
228
+ const idx = j * N + i;
229
+ const dens = data[idx];
230
+ if (!dens || dens < BAYER[j & 7][i & 7]) continue;
231
+ const r = RND[idx];
232
+ let k;
233
+ if (mode === "in") {
234
+ const local = (m - r * .55) / .45;
235
+ if (local <= 0) continue;
236
+ k = 1 - ease(local);
237
+ } else {
238
+ const local = (m - (1 - r) * .5) / .5;
239
+ if (local >= 1) continue;
240
+ k = ease(local);
241
+ }
242
+ const ox = Math.cos(ANG[idx]) * DIST[idx] * k * N * .45;
243
+ const oy = Math.sin(ANG[idx]) * DIST[idx] * k * N * .45;
244
+ ctx.globalAlpha = 1 - k * .6;
245
+ const sz = CELL * (k > .05 ? .8 : .72);
246
+ ctx.fillRect((i + ox) * CELL, (j + oy) * CELL, sz, sz);
247
+ }
248
+ ctx.globalAlpha = 1;
249
+ };
250
+ const glyphs = (t, k) => {
251
+ const px = size / N * .55;
252
+ for (const s of swarm) {
253
+ if (Math.sin(t * 3 + s.ph) < -.6) continue;
254
+ const g = GLYPHS[(s.g + (t * 2 + s.ph | 0)) % GLYPHS.length];
255
+ const x = s.x * size + Math.cos(s.ph + t * .8) * 4 * dpr + (s.x - .5) * k * size * .7;
256
+ const y = s.y * size + Math.sin(s.ph * 1.3 + t * .6) * 4 * dpr + (s.y - .42) * k * size * .7;
257
+ ctx.globalAlpha = 1 - k;
258
+ for (let q = 0; q < 9; q++) if (g[q]) ctx.fillRect(x + q % 3 * px, y + (q / 3 | 0) * px, px * .9, px * .9);
259
+ }
260
+ ctx.globalAlpha = 1;
261
+ };
262
+ const shadow = (alpha) => {
263
+ const CELL = size / N;
264
+ const cx = N * .5;
265
+ const cy = N * .9;
266
+ const rx = N * .2;
267
+ const ry = N * .035;
268
+ ctx.globalAlpha = alpha * .75;
269
+ for (let j = Math.floor(72.66000000000001); j <= 78.54; j++) for (let i = Math.floor(25.2); i <= 58.8; i++) {
270
+ const d = ((i - cx) / rx) ** 2 + ((j - cy) / ry) ** 2;
271
+ if (d > 1 || (1 - d) * .55 < BAYER[j & 7][i & 7]) continue;
272
+ ctx.fillRect(i * CELL, j * CELL, CELL * .6, CELL * .6);
273
+ }
274
+ ctx.globalAlpha = 1;
275
+ };
276
+ const dots = (t) => {
277
+ const s = size / N * .6;
278
+ for (const d of strays) {
279
+ const a = d.a + t * d.s;
280
+ const r = d.r + Math.sin(t * .9 + d.ph) * .03;
281
+ ctx.globalAlpha = .45 + .45 * Math.sin(t * 2 + d.ph);
282
+ ctx.fillRect(size / 2 + Math.cos(a) * r * size * .5, size * .47 + Math.sin(a) * r * size * .48, s, s);
283
+ }
284
+ ctx.globalAlpha = 1;
285
+ };
286
+ const frame = (now) => {
287
+ const t = reduce ? 1.5 : (now - t0) / 1e3;
288
+ const st = state.current;
289
+ const m = reduce ? 1 : clamp((now - st.mixAt) / 1250, 0, 1);
290
+ ctx.clearRect(0, 0, size, size);
291
+ ctx.fillStyle = colour;
292
+ dots(t);
293
+ if (st.to) shadow(ease(m));
294
+ if (!st.to) glyphs(t, 0);
295
+ else {
296
+ if (!st.from) glyphs(t, ease(m));
297
+ else if (m < 1) cells(field(st.from, t), "out", m);
298
+ cells(field(st.to, t), "in", m);
299
+ }
300
+ if (running && visible && !reduce) raf = requestAnimationFrame(frame);
301
+ };
302
+ const start = () => {
303
+ cancelAnimationFrame(raf);
304
+ raf = requestAnimationFrame(frame);
305
+ };
306
+ redraw.current = start;
307
+ resize();
308
+ const io = typeof IntersectionObserver !== "undefined" ? new IntersectionObserver(([entry]) => {
309
+ visible = entry?.isIntersecting ?? true;
310
+ if (visible) start();
311
+ }) : null;
312
+ io?.observe(canvas);
313
+ const ro = typeof ResizeObserver !== "undefined" ? new ResizeObserver(resize) : null;
314
+ ro?.observe(canvas);
315
+ const onVis = () => document.hidden ? cancelAnimationFrame(raf) : start();
316
+ document.addEventListener("visibilitychange", onVis);
317
+ const colourTimer = window.setInterval(() => colour = getComputedStyle(canvas).color || colour, 1e3);
318
+ start();
319
+ return () => {
320
+ cancelAnimationFrame(raf);
321
+ redraw.current = null;
322
+ io?.disconnect();
323
+ ro?.disconnect();
324
+ document.removeEventListener("visibilitychange", onVis);
325
+ window.clearInterval(colourTimer);
326
+ };
327
+ }, [canvasRef, running]);
328
+ }
329
+ function useNow(enabled) {
330
+ const [now, setNow] = React.useState(null);
331
+ React.useEffect(() => {
332
+ if (!enabled) return;
333
+ setNow(Date.now());
334
+ const id = window.setInterval(() => setNow(Date.now()), 100);
335
+ return () => window.clearInterval(id);
336
+ }, [enabled]);
337
+ return now;
338
+ }
339
+ /**
340
+ * Shows an agent thinking: a timer with the thinking orb (or a spinner), each step as it happens,
341
+ * and a dithered dot visual that reshapes per step. When done, the steps fold into "Thought for Ns"
342
+ * and the answer takes their place.
343
+ */
344
+ function AgentThinking({ prompt, steps, status, startedAt, seconds, loader = "orb", visual = true, onStop, children, className }) {
345
+ const thinking = status === "thinking";
346
+ const canvasRef = React.useRef(null);
347
+ const logId = React.useId();
348
+ const [showSteps, setShowSteps] = React.useState(false);
349
+ const now = useNow(thinking && startedAt !== void 0);
350
+ const elapsed = startedAt !== void 0 && now !== null ? Math.max(0, (now - startedAt) / 1e3) : seconds;
351
+ const [frozen, setFrozen] = React.useState(void 0);
352
+ React.useEffect(() => {
353
+ if (!thinking && frozen === void 0) setFrozen(elapsed);
354
+ if (thinking) setFrozen(void 0);
355
+ }, [
356
+ thinking,
357
+ elapsed,
358
+ frozen
359
+ ]);
360
+ useDitherVisual(canvasRef, [...steps].reverse().find((s) => s.shape)?.shape ?? (steps.length ? "tree" : null), thinking && visual);
361
+ const total = frozen ?? elapsed;
362
+ const time = total === void 0 ? "" : `${total.toFixed(thinking ? 1 : 0)}s`;
363
+ return /* @__PURE__ */ jsxs("section", {
364
+ className: cn(agent_thinking_module_default.root, className),
365
+ "aria-label": "Agent response",
366
+ "aria-busy": thinking,
367
+ children: [
368
+ (prompt || onStop) && /* @__PURE__ */ jsxs("div", {
369
+ className: agent_thinking_module_default.prompt,
370
+ children: [prompt && /* @__PURE__ */ jsx("p", { children: prompt }), onStop && thinking && /* @__PURE__ */ jsx("button", {
371
+ type: "button",
372
+ className: agent_thinking_module_default.stop,
373
+ onClick: onStop,
374
+ "aria-label": "Stop thinking",
375
+ children: /* @__PURE__ */ jsx(Square, {
376
+ "aria-hidden": "true",
377
+ strokeWidth: 0,
378
+ fill: "currentColor"
379
+ })
380
+ })]
381
+ }),
382
+ /* @__PURE__ */ jsxs("div", {
383
+ className: agent_thinking_module_default.body,
384
+ "data-visual": visual && thinking,
385
+ children: [/* @__PURE__ */ jsxs("div", {
386
+ className: agent_thinking_module_default.side,
387
+ children: [thinking ? /* @__PURE__ */ jsxs("p", {
388
+ className: agent_thinking_module_default.head,
389
+ children: [
390
+ /* @__PURE__ */ jsx(Loader, {
391
+ variant: loader,
392
+ size: "sm",
393
+ orbState: "working",
394
+ label: null,
395
+ className: loader === "spinner" ? agent_thinking_module_default.spin : void 0
396
+ }),
397
+ /* @__PURE__ */ jsx("span", {
398
+ role: "status",
399
+ children: "Thinking"
400
+ }),
401
+ time && /* @__PURE__ */ jsx("span", {
402
+ className: agent_thinking_module_default.time,
403
+ "aria-hidden": "true",
404
+ children: time
405
+ })
406
+ ]
407
+ }) : /* @__PURE__ */ jsxs("button", {
408
+ type: "button",
409
+ className: agent_thinking_module_default.headButton,
410
+ "aria-expanded": showSteps,
411
+ "aria-controls": logId,
412
+ onClick: () => setShowSteps((s) => !s),
413
+ children: [/* @__PURE__ */ jsx(ChevronRight, {
414
+ "aria-hidden": "true",
415
+ strokeWidth: 1.8,
416
+ className: agent_thinking_module_default.chev
417
+ }), /* @__PURE__ */ jsxs("span", { children: ["Thought", time ? ` for ${time}` : ""] })]
418
+ }), (thinking || showSteps) && /* @__PURE__ */ jsx("ol", {
419
+ id: logId,
420
+ className: agent_thinking_module_default.log,
421
+ "aria-label": "Steps",
422
+ "aria-live": thinking ? "polite" : void 0,
423
+ children: steps.map((s, i) => /* @__PURE__ */ jsx("li", {
424
+ "data-current": thinking && i === steps.length - 1,
425
+ children: s.label
426
+ }, s.id))
427
+ })]
428
+ }), visual && thinking && /* @__PURE__ */ jsx("canvas", {
429
+ ref: canvasRef,
430
+ className: agent_thinking_module_default.canvas,
431
+ "data-thinking-visual": "",
432
+ "aria-hidden": "true"
433
+ })]
434
+ }),
435
+ !thinking && children && /* @__PURE__ */ jsx("div", {
436
+ className: agent_thinking_module_default.answer,
437
+ children
438
+ })
439
+ ]
440
+ });
441
+ }
442
+ //#endregion
443
+ export { AgentThinking };
@@ -0,0 +1,33 @@
1
+ //#region src/components/crm/agent-thinking.module.css
2
+ var root = "hg-agent-thinking-module_root_OGMbJ";
3
+ var prompt = "hg-agent-thinking-module_prompt_01FdT";
4
+ var stop = "hg-agent-thinking-module_stop_DsbDv";
5
+ var headButton = "hg-agent-thinking-module_headButton_src3F";
6
+ var body = "hg-agent-thinking-module_body_ND7lD";
7
+ var side = "hg-agent-thinking-module_side_Z6Ta4";
8
+ var head = "hg-agent-thinking-module_head_PhbuX";
9
+ var chev = "hg-agent-thinking-module_chev_8Gp6T";
10
+ var spin = "hg-agent-thinking-module_spin_pkQ2e";
11
+ var time = "hg-agent-thinking-module_time_Th-Ho";
12
+ var log = "hg-agent-thinking-module_log_STfVu";
13
+ var thinkIn = "hg-agent-thinking-module_thinkIn_lEmVj";
14
+ var canvas = "hg-agent-thinking-module_canvas_XyLUx";
15
+ var answer = "hg-agent-thinking-module_answer_Uajsa";
16
+ var agent_thinking_module_default = {
17
+ root,
18
+ prompt,
19
+ stop,
20
+ headButton,
21
+ body,
22
+ side,
23
+ head,
24
+ chev,
25
+ spin,
26
+ time,
27
+ log,
28
+ thinkIn,
29
+ canvas,
30
+ answer
31
+ };
32
+ //#endregion
33
+ export { answer, body, canvas, chev, agent_thinking_module_default as default, head, headButton, log, prompt, root, side, spin, stop, thinkIn, time };
@@ -0,0 +1,81 @@
1
+ //#region src/components/crm/agent.module.css
2
+ var trail = "hg-agent-module_trail_Yv3Gv";
3
+ var trailHead = "hg-agent-module_trailHead_RUmHC";
4
+ var trailTitle = "hg-agent-module_trailTitle_frfMA";
5
+ var agentChip = "hg-agent-module_agentChip_bSQWh";
6
+ var count = "hg-agent-module_count_mPmzt";
7
+ var steps = "hg-agent-module_steps_2h7e5";
8
+ var stepList = "hg-agent-module_stepList_XYtsZ";
9
+ var rail = "hg-agent-module_rail_EflC5";
10
+ var railOn = "hg-agent-module_railOn_cMYnc";
11
+ var railOff = "hg-agent-module_railOff_o7x68";
12
+ var dotDone = "hg-agent-module_dotDone_FpYuz";
13
+ var dotRing = "hg-agent-module_dotRing_Wm--Q";
14
+ var dotCurrent = "hg-agent-module_dotCurrent_9K899";
15
+ var row = "hg-agent-module_row_fQV4j";
16
+ var node = "hg-agent-module_node_ayTGF";
17
+ var nodeDone = "hg-agent-module_nodeDone_p-D-2";
18
+ var nodePending = "hg-agent-module_nodePending_8S-2d";
19
+ var nodeApproval = "hg-agent-module_nodeApproval_MBN3Q";
20
+ var nodeWaiting = "hg-agent-module_nodeWaiting_X9T-W";
21
+ var nodeDeclined = "hg-agent-module_nodeDeclined_4UrTO";
22
+ var nodeSpinner = "hg-agent-module_nodeSpinner_n1iks";
23
+ var icon = "hg-agent-module_icon_MDKDf";
24
+ var label = "hg-agent-module_label_QsG7u";
25
+ var chev = "hg-agent-module_chev_XH6JP";
26
+ var end = "hg-agent-module_end_P9tcs";
27
+ var activity = "hg-agent-module_activity_l8J6b";
28
+ var agentSwap = "hg-agent-module_agentSwap_vSw0-";
29
+ var time = "hg-agent-module_time_WcoWB";
30
+ var badge = "hg-agent-module_badge_1AbNV";
31
+ var declinedText = "hg-agent-module_declinedText_BJU6Y";
32
+ var collapse = "hg-agent-module_collapse_SEgik";
33
+ var subs = "hg-agent-module_subs_BGtHa";
34
+ var sub = "hg-agent-module_sub_9gEH9";
35
+ var agentIn = "hg-agent-module_agentIn_0nIwO";
36
+ var subMeta = "hg-agent-module_subMeta_-2qv4";
37
+ var ask = "hg-agent-module_ask_CfETx";
38
+ var askFailed = "hg-agent-module_askFailed_QiloI";
39
+ var askActions = "hg-agent-module_askActions_DPHiI";
40
+ var agent_module_default = {
41
+ trail,
42
+ trailHead,
43
+ trailTitle,
44
+ agentChip,
45
+ count,
46
+ steps,
47
+ stepList,
48
+ rail,
49
+ railOn,
50
+ railOff,
51
+ dotDone,
52
+ dotRing,
53
+ dotCurrent,
54
+ row,
55
+ node,
56
+ nodeDone,
57
+ nodePending,
58
+ nodeApproval,
59
+ nodeWaiting,
60
+ nodeDeclined,
61
+ nodeSpinner,
62
+ icon,
63
+ label,
64
+ chev,
65
+ end,
66
+ activity,
67
+ agentSwap,
68
+ time,
69
+ badge,
70
+ declinedText,
71
+ collapse,
72
+ subs,
73
+ sub,
74
+ agentIn,
75
+ subMeta,
76
+ ask,
77
+ askFailed,
78
+ askActions
79
+ };
80
+ //#endregion
81
+ export { activity, agentChip, agentIn, agentSwap, ask, askActions, askFailed, badge, chev, collapse, count, declinedText, agent_module_default as default, dotCurrent, dotDone, dotRing, end, icon, label, node, nodeApproval, nodeDeclined, nodeDone, nodePending, nodeSpinner, nodeWaiting, rail, railOff, railOn, row, stepList, steps, sub, subMeta, subs, time, trail, trailHead, trailTitle };
@@ -5,6 +5,7 @@ var pageTitle = "hg-crm-module_pageTitle_DtdGz";
5
5
  var recordTitle = "hg-crm-module_recordTitle_mbURR";
6
6
  var pageDescription = "hg-crm-module_pageDescription_Ar6OV";
7
7
  var pageActions = "hg-crm-module_pageActions_t-RSO";
8
+ var record = "hg-crm-module_record_zU6MQ";
8
9
  var metric = "hg-crm-module_metric_PYEB-";
9
10
  var metricGroup = "hg-crm-module_metricGroup_0yZAK";
10
11
  var metricLabel = "hg-crm-module_metricLabel_llV-w";
@@ -53,7 +54,6 @@ var toolbarSearch = "hg-crm-module_toolbarSearch_Hlqw2";
53
54
  var toolbarChips = "hg-crm-module_toolbarChips_sIGg-";
54
55
  var toolbarEnd = "hg-crm-module_toolbarEnd_B9jcI";
55
56
  var scope = "hg-crm-module_scope_KA-Bw";
56
- var record = "hg-crm-module_record_zU6MQ";
57
57
  var recordText = "hg-crm-module_recordText_cgceM";
58
58
  var recordTitleRow = "hg-crm-module_recordTitleRow_sAb2j";
59
59
  var recordMeta = "hg-crm-module_recordMeta_lJLwO";
@@ -77,6 +77,26 @@ var detailRow = "hg-crm-module_detailRow_EyQUr";
77
77
  var detailLabel = "hg-crm-module_detailLabel_vveUX";
78
78
  var detailIcon = "hg-crm-module_detailIcon_V5pYf";
79
79
  var detailValue = "hg-crm-module_detailValue_SOLpC";
80
+ var wsTrigger = "hg-crm-module_wsTrigger_7gCfz";
81
+ var wsTriggerName = "hg-crm-module_wsTriggerName_sSTDG";
82
+ var wsTriggerChevron = "hg-crm-module_wsTriggerChevron_FzaId";
83
+ var wsMark = "hg-crm-module_wsMark_6PN4n";
84
+ var wsMarkImg = "hg-crm-module_wsMarkImg_bs0pV";
85
+ var wsPopup = "hg-crm-module_wsPopup_DHY4-";
86
+ var wsSearch = "hg-crm-module_wsSearch_hbuoz";
87
+ var wsSearchInput = "hg-crm-module_wsSearchInput_qWIgI";
88
+ var wsScroll = "hg-crm-module_wsScroll_83kHZ";
89
+ var wsSectionLabel = "hg-crm-module_wsSectionLabel_4MUIU";
90
+ var wsRow = "hg-crm-module_wsRow_SgSDf";
91
+ var wsRowName = "hg-crm-module_wsRowName_Gmrlo";
92
+ var wsRowNameText = "hg-crm-module_wsRowNameText_NcwXT";
93
+ var wsRowCaption = "hg-crm-module_wsRowCaption_E75bJ";
94
+ var wsRowCheck = "hg-crm-module_wsRowCheck_LVyuC";
95
+ var wsAction = "hg-crm-module_wsAction_19Tlq";
96
+ var wsRowAction = "hg-crm-module_wsRowAction_bBOm2";
97
+ var wsDivider = "hg-crm-module_wsDivider_-cF-Z";
98
+ var wsEmpty = "hg-crm-module_wsEmpty_B-6Db";
99
+ var wsFooter = "hg-crm-module_wsFooter_qcme9";
80
100
  var crm_module_default = {
81
101
  pageHeader,
82
102
  pageHeaderText,
@@ -84,6 +104,7 @@ var crm_module_default = {
84
104
  recordTitle,
85
105
  pageDescription,
86
106
  pageActions,
107
+ record,
87
108
  metric,
88
109
  metricGroup,
89
110
  metricLabel,
@@ -132,7 +153,6 @@ var crm_module_default = {
132
153
  toolbarChips,
133
154
  toolbarEnd,
134
155
  scope,
135
- record,
136
156
  recordText,
137
157
  recordTitleRow,
138
158
  recordMeta,
@@ -155,7 +175,27 @@ var crm_module_default = {
155
175
  detailRow,
156
176
  detailLabel,
157
177
  detailIcon,
158
- detailValue
178
+ detailValue,
179
+ wsTrigger,
180
+ wsTriggerName,
181
+ wsTriggerChevron,
182
+ wsMark,
183
+ wsMarkImg,
184
+ wsPopup,
185
+ wsSearch,
186
+ wsSearchInput,
187
+ wsScroll,
188
+ wsSectionLabel,
189
+ wsRow,
190
+ wsRowName,
191
+ wsRowNameText,
192
+ wsRowCaption,
193
+ wsRowCheck,
194
+ wsAction,
195
+ wsRowAction,
196
+ wsDivider,
197
+ wsEmpty,
198
+ wsFooter
159
199
  };
160
200
  //#endregion
161
- export { approval, approvalActions, approvalHead, approvalOutcome, approvalReason, approvalTitle, breadcrumbs, channelWhatsapp, chip, chipCount, chipRemove, chipStatic, crm_module_default as default, detailIcon, detailLabel, detailRow, detailValue, details, diff, done, inlineMark, irreversible, metric, metricGroup, metricHint, metricLabel, metricValue, money, navCount, navGroupLabel, navItem, navLabel, navList, pageActions, pageDescription, pageHeader, pageHeaderText, pageTitle, record, recordMeta, recordText, recordTitle, recordTitleRow, row, rowAside, rowControl, rowInteractive, rowMain, rowMeta, rowSelected, rowTitle, scope, sidebar, stage, stageBar, stageCurrent, stageDone, stageLabel, stageLost, stages, stagesCompact, tabular, timeline, timelineBody, timelineDetail, timelineIcon, timelineItem, timelineTime, toneDanger, toneSuccess, toneWarning, toolbar, toolbarChips, toolbarEnd, toolbarSearch, trendDown, trendUp, unread, unreadDot };
201
+ export { approval, approvalActions, approvalHead, approvalOutcome, approvalReason, approvalTitle, breadcrumbs, channelWhatsapp, chip, chipCount, chipRemove, chipStatic, crm_module_default as default, detailIcon, detailLabel, detailRow, detailValue, details, diff, done, inlineMark, irreversible, metric, metricGroup, metricHint, metricLabel, metricValue, money, navCount, navGroupLabel, navItem, navLabel, navList, pageActions, pageDescription, pageHeader, pageHeaderText, pageTitle, record, recordMeta, recordText, recordTitle, recordTitleRow, row, rowAside, rowControl, rowInteractive, rowMain, rowMeta, rowSelected, rowTitle, scope, sidebar, stage, stageBar, stageCurrent, stageDone, stageLabel, stageLost, stages, stagesCompact, tabular, timeline, timelineBody, timelineDetail, timelineIcon, timelineItem, timelineTime, toneDanger, toneSuccess, toneWarning, toolbar, toolbarChips, toolbarEnd, toolbarSearch, trendDown, trendUp, unread, unreadDot, wsAction, wsDivider, wsEmpty, wsFooter, wsMark, wsMarkImg, wsPopup, wsRow, wsRowAction, wsRowCaption, wsRowCheck, wsRowName, wsRowNameText, wsScroll, wsSearch, wsSearchInput, wsSectionLabel, wsTrigger, wsTriggerChevron, wsTriggerName };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- export interface Breadcrumb {
2
+ export interface RecordBreadcrumb {
3
3
  label: string;
4
4
  href?: string;
5
5
  }
@@ -10,7 +10,7 @@ export interface RecordHeaderProps {
10
10
  status?: React.ReactNode;
11
11
  /** Short facts: owner, value, location, channel. */
12
12
  meta?: React.ReactNode[];
13
- breadcrumbs?: Breadcrumb[];
13
+ breadcrumbs?: RecordBreadcrumb[];
14
14
  actions?: React.ReactNode;
15
15
  showAvatar?: boolean;
16
16
  avatarSrc?: string;