@arcadeai/design-system 3.35.2 → 3.36.2

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 (97) hide show
  1. package/dist/assets/icons/claude-code-logotype.js +10 -0
  2. package/dist/assets/icons/cursor-logotype.js +10 -0
  3. package/dist/assets/icons/langchain-logotype.js +10 -0
  4. package/dist/assets/icons/mastra-logotype.js +10 -0
  5. package/dist/assets/icons/vercel-logotype.js +10 -0
  6. package/dist/components/index.js +631 -600
  7. package/dist/components/ui/atoms/arcade-gradient.d.ts +4 -0
  8. package/dist/components/ui/atoms/arcade-gradient.d.ts.map +1 -0
  9. package/dist/components/ui/atoms/arcade-gradient.js +26 -0
  10. package/dist/components/ui/atoms/brand-chip.d.ts +9 -0
  11. package/dist/components/ui/atoms/brand-chip.d.ts.map +1 -0
  12. package/dist/components/ui/atoms/brand-chip.js +19 -0
  13. package/dist/components/ui/atoms/code-block.d.ts.map +1 -1
  14. package/dist/components/ui/atoms/code-block.js +31 -723
  15. package/dist/components/ui/atoms/icons/claude-code-logotype.d.ts +4 -0
  16. package/dist/components/ui/atoms/icons/claude-code-logotype.d.ts.map +1 -0
  17. package/dist/components/ui/atoms/icons/claude-code-logotype.js +34 -0
  18. package/dist/components/ui/atoms/icons/cursor-logotype.d.ts +4 -0
  19. package/dist/components/ui/atoms/icons/cursor-logotype.d.ts.map +1 -0
  20. package/dist/components/ui/atoms/icons/cursor-logotype.js +21 -0
  21. package/dist/components/ui/atoms/icons/index.d.ts +5 -0
  22. package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
  23. package/dist/components/ui/atoms/icons/index.js +278 -268
  24. package/dist/components/ui/atoms/icons/langchain-logotype.d.ts +4 -0
  25. package/dist/components/ui/atoms/icons/langchain-logotype.d.ts.map +1 -0
  26. package/dist/components/ui/atoms/icons/langchain-logotype.js +45 -0
  27. package/dist/components/ui/atoms/icons/mastra-logotype.d.ts +4 -0
  28. package/dist/components/ui/atoms/icons/mastra-logotype.d.ts.map +1 -0
  29. package/dist/components/ui/atoms/icons/mastra-logotype.js +19 -0
  30. package/dist/components/ui/atoms/icons/vercel-logotype.d.ts +4 -0
  31. package/dist/components/ui/atoms/icons/vercel-logotype.d.ts.map +1 -0
  32. package/dist/components/ui/atoms/icons/vercel-logotype.js +26 -0
  33. package/dist/components/ui/atoms/icons/vercel.d.ts.map +1 -1
  34. package/dist/components/ui/atoms/icons/vercel.js +0 -1
  35. package/dist/components/ui/atoms/index.d.ts +2 -0
  36. package/dist/components/ui/atoms/index.d.ts.map +1 -1
  37. package/dist/components/ui/atoms/index.js +530 -516
  38. package/dist/components/ui/atoms/virtualized-grid.d.ts.map +1 -1
  39. package/dist/components/ui/atoms/virtualized-grid.js +16 -16
  40. package/dist/components/ui/index.js +631 -600
  41. package/dist/components/ui/molecules/chat-history-item.d.ts +21 -0
  42. package/dist/components/ui/molecules/chat-history-item.d.ts.map +1 -0
  43. package/dist/components/ui/molecules/chat-history-item.js +88 -0
  44. package/dist/components/ui/molecules/chat-message-list.d.ts +6 -0
  45. package/dist/components/ui/molecules/chat-message-list.d.ts.map +1 -1
  46. package/dist/components/ui/molecules/chat-message-list.js +117 -61
  47. package/dist/components/ui/molecules/command-bar.d.ts +7 -0
  48. package/dist/components/ui/molecules/command-bar.d.ts.map +1 -0
  49. package/dist/components/ui/molecules/command-bar.js +38 -0
  50. package/dist/components/ui/molecules/confirm-popover.d.ts +20 -0
  51. package/dist/components/ui/molecules/confirm-popover.d.ts.map +1 -0
  52. package/dist/components/ui/molecules/confirm-popover.js +50 -0
  53. package/dist/components/ui/molecules/empty-state.d.ts +2 -1
  54. package/dist/components/ui/molecules/empty-state.d.ts.map +1 -1
  55. package/dist/components/ui/molecules/empty-state.js +9 -7
  56. package/dist/components/ui/molecules/error-state.d.ts +17 -0
  57. package/dist/components/ui/molecules/error-state.d.ts.map +1 -0
  58. package/dist/components/ui/molecules/error-state.js +45 -0
  59. package/dist/components/ui/molecules/index.d.ts +9 -4
  60. package/dist/components/ui/molecules/index.d.ts.map +1 -1
  61. package/dist/components/ui/molecules/index.js +51 -49
  62. package/dist/components/ui/molecules/requirement-badges.js +4 -5
  63. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  64. package/dist/components/ui/pages/chat-page-skeleton.d.ts +7 -0
  65. package/dist/components/ui/pages/chat-page-skeleton.d.ts.map +1 -0
  66. package/dist/components/ui/pages/chat-page-skeleton.js +18 -0
  67. package/dist/components/ui/pages/index.d.ts +2 -2
  68. package/dist/components/ui/pages/index.d.ts.map +1 -1
  69. package/dist/components/ui/pages/index.js +4 -4
  70. package/dist/components/ui/templates/chat-template-skeletons.d.ts +12 -0
  71. package/dist/components/ui/templates/chat-template-skeletons.d.ts.map +1 -0
  72. package/dist/components/ui/templates/chat-template-skeletons.js +127 -0
  73. package/dist/components/ui/templates/error-template.d.ts +20 -0
  74. package/dist/components/ui/templates/error-template.d.ts.map +1 -0
  75. package/dist/components/ui/templates/error-template.js +117 -0
  76. package/dist/components/ui/templates/index.d.ts +4 -0
  77. package/dist/components/ui/templates/index.d.ts.map +1 -1
  78. package/dist/components/ui/templates/index.js +37 -22
  79. package/dist/hooks/use-mobile.d.ts.map +1 -1
  80. package/dist/hooks/use-mobile.js +12 -11
  81. package/dist/lib/shiki-themes.d.ts +5 -0
  82. package/dist/lib/shiki-themes.d.ts.map +1 -0
  83. package/dist/lib/shiki-themes.js +7 -0
  84. package/dist/main.js +656 -625
  85. package/dist/metadata/toolkit-icons.d.ts.map +1 -1
  86. package/dist/metadata/toolkit-icons.js +187 -186
  87. package/dist/metadata/toolkits.d.ts.map +1 -1
  88. package/dist/metadata/toolkits.js +13 -0
  89. package/dist/{toolkit-card-B97E7TBA.js → toolkit-card-CB1oiaei.js} +2 -3
  90. package/dist/web-BwFNdl01.js +697 -0
  91. package/package.json +3 -2
  92. package/dist/components/ui/molecules/switcher.d.ts +0 -83
  93. package/dist/components/ui/molecules/switcher.d.ts.map +0 -1
  94. package/dist/components/ui/molecules/switcher.js +0 -164
  95. package/dist/components/ui/pages/chat-page.d.ts +0 -83
  96. package/dist/components/ui/pages/chat-page.d.ts.map +0 -1
  97. package/dist/components/ui/pages/chat-page.js +0 -385
@@ -1 +1 @@
1
- {"version":3,"file":"virtualized-grid.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/virtualized-grid.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI;IACpC,0BAA0B;IAC1B,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,SAAS,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACzC,oCAAoC;IACpC,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAClD,2CAA2C;IAC3C,eAAe,EAAE,MAAM,CAAC;IACxB,mCAAmC;IACnC,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IAChC,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAiBF,wBAAgB,eAAe,CAAC,CAAC,EAAE,EACjC,KAAK,EACL,OAAO,EACP,SAAS,EACT,UAAU,EACV,eAAe,EACf,UAAU,EACV,QAA2B,EAC3B,QAA6B,EAC7B,aAAkC,GACnC,EAAE,oBAAoB,CAAC,CAAC,CAAC,kDA0GzB"}
1
+ {"version":3,"file":"virtualized-grid.d.ts","sourceRoot":"","sources":["../../../../lib/components/ui/atoms/virtualized-grid.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,SAAS,EACd,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI;IACpC,0BAA0B;IAC1B,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,SAAS,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACzC,oCAAoC;IACpC,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAClD,2CAA2C;IAC3C,eAAe,EAAE,MAAM,CAAC;IACxB,mCAAmC;IACnC,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IAChC,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAgBF,wBAAgB,eAAe,CAAC,CAAC,EAAE,EACjC,KAAK,EACL,OAAO,EACP,SAAS,EACT,UAAU,EACV,eAAe,EACf,UAAU,EACV,QAA2B,EAC3B,QAA6B,EAC7B,aAAwC,GACzC,EAAE,oBAAoB,CAAC,CAAC,CAAC,kDA0GzB"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as x } from "react/jsx-runtime";
2
2
  import * as w from "react";
3
- import { useRef as F, useState as D, useEffect as T, useMemo as k } from "react";
3
+ import { useRef as F, useState as k, useEffect as T, useMemo as D } from "react";
4
4
  import { flushSync as N } from "react-dom";
5
5
  function y(r, l, e) {
6
6
  let s = e.initialDeps ?? [], t, n = !0;
@@ -42,7 +42,7 @@ function O(r, l) {
42
42
  throw new Error("Unexpected undefined");
43
43
  return r;
44
44
  }
45
- const W = (r, l) => Math.abs(r - l) < 1.01, L = (r, l, e) => {
45
+ const W = (r, l) => Math.abs(r - l) < 1.01, V = (r, l, e) => {
46
46
  let s;
47
47
  return function(...t) {
48
48
  r.clearTimeout(s), s = r.setTimeout(() => l.apply(this, t), e);
@@ -50,7 +50,7 @@ const W = (r, l) => Math.abs(r - l) < 1.01, L = (r, l, e) => {
50
50
  }, z = (r) => {
51
51
  const { offsetWidth: l, offsetHeight: e } = r;
52
52
  return { width: l, height: e };
53
- }, V = (r) => r, j = (r) => {
53
+ }, L = (r) => r, j = (r) => {
54
54
  const l = Math.max(r.startIndex - r.overscan, 0), e = Math.min(r.endIndex + r.overscan, r.count - 1), s = [];
55
55
  for (let t = l; t <= e; t++)
56
56
  s.push(t);
@@ -97,7 +97,7 @@ const W = (r, l) => Math.abs(r - l) < 1.01, L = (r, l, e) => {
97
97
  return;
98
98
  let t = 0;
99
99
  const n = r.options.useScrollendEvent && I ? () => {
100
- } : L(
100
+ } : V(
101
101
  s,
102
102
  () => {
103
103
  l(t, !1);
@@ -132,7 +132,7 @@ const W = (r, l) => Math.abs(r - l) < 1.01, L = (r, l, e) => {
132
132
  behavior: e
133
133
  });
134
134
  };
135
- class U {
135
+ class q {
136
136
  constructor(l) {
137
137
  this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.currentScrollToIndex = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
138
138
  let e = null;
@@ -170,7 +170,7 @@ class U {
170
170
  scrollPaddingStart: 0,
171
171
  scrollPaddingEnd: 0,
172
172
  horizontal: !1,
173
- getItemKey: V,
173
+ getItemKey: L,
174
174
  rangeExtractor: j,
175
175
  onChange: () => {
176
176
  },
@@ -323,7 +323,7 @@ class U {
323
323
  this.getScrollOffset(),
324
324
  this.options.lanes
325
325
  ],
326
- (e, s, t, n) => this.range = e.length > 0 && s > 0 ? q({
326
+ (e, s, t, n) => this.range = e.length > 0 && s > 0 ? U({
327
327
  measurements: e,
328
328
  outerSize: s,
329
329
  scrollOffset: t,
@@ -531,7 +531,7 @@ const _ = (r, l, e, s) => {
531
531
  }
532
532
  return r > 0 ? r - 1 : 0;
533
533
  };
534
- function q({
534
+ function U({
535
535
  measurements: r,
536
536
  outerSize: l,
537
537
  scrollOffset: e,
@@ -579,7 +579,7 @@ function K({
579
579
  r && o ? N(e) : e(), (i = l.onChange) == null || i.call(l, n, o);
580
580
  }
581
581
  }, [t] = w.useState(
582
- () => new U(s)
582
+ () => new q(s)
583
583
  );
584
584
  return t.setOptions(s), A(() => t._didMount(), []), A(() => t._willUpdate()), t;
585
585
  }
@@ -591,8 +591,8 @@ function G(r) {
591
591
  ...r
592
592
  });
593
593
  }
594
- const X = 5, Y = 0, J = "grid grid-cols-1 gap-4";
595
- function Q(r, l) {
594
+ const X = 5, Y = 0;
595
+ function J(r, l) {
596
596
  if (l <= 0)
597
597
  throw new Error(`chunkArray: size must be positive, received ${l}`);
598
598
  const e = [];
@@ -600,7 +600,7 @@ function Q(r, l) {
600
600
  e.push(r.slice(s, s + l));
601
601
  return e;
602
602
  }
603
- function se({
603
+ function te({
604
604
  items: r,
605
605
  columns: l,
606
606
  parentRef: e,
@@ -609,13 +609,13 @@ function se({
609
609
  getItemKey: n,
610
610
  overscan: o = X,
611
611
  rowGapPx: i = Y,
612
- gridClassName: h = J
612
+ gridClassName: h = "grid grid-cols-1 gap-4"
613
613
  }) {
614
614
  if (l <= 0)
615
615
  throw new Error(
616
616
  `VirtualizedGrid: columns must be positive, received ${l}`
617
617
  );
618
- const u = F(null), [c, v] = D(0);
618
+ const u = F(null), [c, v] = k(0);
619
619
  T(() => {
620
620
  const m = u.current, p = e.current;
621
621
  if (!(m && p))
@@ -628,7 +628,7 @@ function se({
628
628
  const E = new ResizeObserver(d);
629
629
  return E.observe(m), E.observe(p), () => E.disconnect();
630
630
  }, [e]);
631
- const a = k(() => Q(r, l).map(
631
+ const a = D(() => J(r, l).map(
632
632
  (p, d) => p.map((E, S) => ({
633
633
  item: E,
634
634
  index: d * l + S
@@ -679,5 +679,5 @@ function se({
679
679
  );
680
680
  }
681
681
  export {
682
- se as VirtualizedGrid
682
+ te as VirtualizedGrid
683
683
  };