@vite-hub/ui 0.7.0 → 0.9.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 (134) hide show
  1. package/README.md +68 -52
  2. package/dist/{Chat-BZxkf3Tt.js → Chat-DYQitDw8.js} +1 -1
  3. package/dist/{ChatMessage-Blr5F-zi.js → ChatMessage-DzjHnxMT.js} +1 -1
  4. package/dist/{CodeBlockTitle-DYrYpc1U.js → CodeBlockTitle-DX13mCTi.js} +1 -1
  5. package/dist/{CommentRow-ViZ7r8nr.js → CommentRow-DLW77qch.js} +2 -2
  6. package/dist/CopyButton-D-g6PWc8.js +188 -0
  7. package/dist/{Markdown-_w7feFzl.js → Markdown-3-Tvy5Kl.js} +1 -1
  8. package/dist/{MarkdownCodeBlock-B4j7x0H6.js → MarkdownCodeBlock-CALGW0iw.js} +1 -1
  9. package/dist/{MessageParts-FVyYZNsn.js → MessageParts-BGSctG7Z.js} +1 -1
  10. package/dist/{MorphText-CYTndbyp.js → MorphText-DAHAswWX.js} +1 -1
  11. package/dist/{RollNumber-Bo2tzfAp.js → RollNumber-CkdLiy2i.js} +1 -1
  12. package/dist/{motion-dPwxx3Wk.js → SwapIcon-Bjkk7WlZ.js} +2 -11
  13. package/dist/{agent-session-DhlTKCQG.js → agent-session-D291hyRk.js} +1 -1
  14. package/dist/{avatar-stack-nQErr0qn.js → avatar-stack-Bi4CJPuU.js} +1 -1
  15. package/dist/{chat-session-hjZRL6jY.js → chat-session-Bl-x4c9b.js} +1 -1
  16. package/dist/{comment-composer-BUt6vbnr.js → comment-composer-BtYrIT5W.js} +14 -19
  17. package/dist/{comment-composer-CIsbz-78.d.ts → comment-composer-PmERtNNb.d.ts} +3 -3
  18. package/dist/{comment-layer-BlVNORgj.d.ts → comment-layer-BgQz1ixK.d.ts} +3 -3
  19. package/dist/{comment-layer-Ck2H24oJ.js → comment-layer-T8hN_7bN.js} +11 -12
  20. package/dist/{comment-panel-Djx-KxVa.d.ts → comment-panel-Vo3m6rHB.d.ts} +2 -2
  21. package/dist/{comment-selection-bar-CxPkJxVl.js → comment-selection-bar-BMFTtI3V.js} +2 -4
  22. package/dist/{comment-selection-bar-CbOEI98x.d.ts → comment-selection-bar-B_bchB2O.d.ts} +1 -1
  23. package/dist/{comment-thread-C_Q4UDaV.js → comment-thread-CAexk1r7.js} +78 -38
  24. package/dist/{comment-thread-X6gYMNay.d.ts → comment-thread-Cp9k80uv.d.ts} +50 -2
  25. package/dist/{comments-B1itauwb.d.ts → comments-BBNiQTxK.d.ts} +12 -14
  26. package/dist/{components-CM5mZe0a.js → components-D44u1fsy.js} +22 -47
  27. package/dist/{config-CFwvNt4Y.js → config-7CiYbXk6.js} +9 -6
  28. package/dist/{config-JmsTI7gs.d.ts → config-BYLPA0Ts.d.ts} +8 -6
  29. package/dist/{drop-field-DKpYQ3tO.js → drop-field-BkoJOWR9.js} +1 -1
  30. package/dist/{editor-DJPUs1nt.js → editor-CE_q2Yzb.js} +89 -49
  31. package/dist/{editor-BsOTjnnN.d.ts → editor-DZxaa6vs.d.ts} +8 -7
  32. package/dist/editor.d.ts +2 -2
  33. package/dist/editor.js +2 -2
  34. package/dist/{hold-to-delete-cOPqQ9FJ.js → hold-to-delete-pyrlKzk0.js} +1 -1
  35. package/dist/{hold-to-delete-CcQbfiQx.js → hold-to-delete-sscThmPW.js} +30 -3
  36. package/dist/icon-component-ofUeRW4L.js +4 -0
  37. package/dist/{index-9Z6Gwtnf.d.ts → index-BlQsW8ZZ.d.ts} +1 -1
  38. package/dist/index.d.ts +32 -39
  39. package/dist/index.js +25 -26
  40. package/dist/{markdown-DDyOdYq_.js → markdown-CqVyNG-h.js} +2 -2
  41. package/dist/markdown-editor.d.ts +1 -1
  42. package/dist/markdown-editor.js +4 -4
  43. package/dist/markdown.js +1 -1
  44. package/dist/motion/core.d.ts +1 -1
  45. package/dist/motion/core.js +4 -4
  46. package/dist/{motion-itHFtXwA.js → motion-C8P5yWaA.js} +1 -1
  47. package/dist/{motion-core-BfIefToe.d.ts → motion-core-BEwxN7Il.d.ts} +4 -2
  48. package/dist/{motion-core-BdTfxAhY.js → motion-core-pkL0M4Y1.js} +57 -115
  49. package/dist/{motion-list-BBbz93WT.js → motion-list-DDVUyVYa.js} +1 -1
  50. package/dist/motion.d.ts +1 -1
  51. package/dist/motion.js +5 -5
  52. package/dist/nuxt.d.ts +2 -4
  53. package/dist/nuxt.js +1 -34
  54. package/dist/parts/components/agent-session.js +1 -1
  55. package/dist/parts/components/avatar-stack.js +1 -1
  56. package/dist/parts/components/chat-message.js +1 -1
  57. package/dist/parts/components/chat-session.js +1 -1
  58. package/dist/parts/components/chat.js +1 -1
  59. package/dist/parts/components/code-block.js +1 -1
  60. package/dist/parts/components/comment-composer.d.ts +1 -1
  61. package/dist/parts/components/comment-composer.js +1 -1
  62. package/dist/parts/components/comment-layer.d.ts +1 -1
  63. package/dist/parts/components/comment-layer.js +1 -1
  64. package/dist/parts/components/comment-panel.d.ts +1 -1
  65. package/dist/parts/components/comment-panel.js +6 -7
  66. package/dist/parts/components/comment-selection-bar.d.ts +1 -1
  67. package/dist/parts/components/comment-selection-bar.js +1 -1
  68. package/dist/parts/components/comment-thread.d.ts +1 -1
  69. package/dist/parts/components/comment-thread.js +1 -1
  70. package/dist/parts/components/comments.d.ts +8 -8
  71. package/dist/parts/components/comments.js +5 -6
  72. package/dist/parts/components/copy-button.js +1 -3
  73. package/dist/parts/components/drop-field.js +1 -1
  74. package/dist/parts/components/hold-to-delete.js +1 -1
  75. package/dist/parts/components/markdown.js +1 -1
  76. package/dist/parts/components/message-parts.js +1 -1
  77. package/dist/parts/components/motion-list.d.ts +1 -1
  78. package/dist/parts/components/motion-list.js +1 -1
  79. package/dist/parts/components/motion.d.ts +2 -2
  80. package/dist/parts/components/motion.js +12 -3
  81. package/dist/parts/components/progress.js +1 -1
  82. package/dist/parts/components/prompt-input.d.ts +1 -1
  83. package/dist/parts/components/sync-status.js +1 -1
  84. package/dist/parts/playground/share.js +0 -1
  85. package/dist/parts/workspace/browser-support-notice.d.ts +1 -1
  86. package/dist/parts/workspace/browser-support-notice.js +4 -4
  87. package/dist/parts/workspace/codemirror.js +0 -4
  88. package/dist/parts/workspace/connect-panel.js +2 -3
  89. package/dist/parts/workspace/file-icons.js +0 -8
  90. package/dist/parts/workspace/runners/web-container.js +2 -2
  91. package/dist/parts/workspace/workspace-bar.d.ts +1 -1
  92. package/dist/parts/workspace/workspace-bar.js +2 -3
  93. package/dist/parts/workspace/workspace-boot-status.js +1 -1
  94. package/dist/parts/workspace/workspace-editor-head.js +2 -3
  95. package/dist/parts/workspace/workspace-examples.js +4 -5
  96. package/dist/parts/workspace/workspace-file-tree.d.ts +1 -1
  97. package/dist/parts/workspace/workspace-guide.js +3 -4
  98. package/dist/parts/workspace/workspace-preview.d.ts +1 -1
  99. package/dist/parts/workspace/workspace-preview.js +2 -4
  100. package/dist/parts/workspace/workspace-shell.d.ts +1 -1
  101. package/dist/parts/workspace/workspace-shell.js +2 -7
  102. package/dist/parts/workspace/workspace-sidebar.d.ts +1 -1
  103. package/dist/parts/workspace/workspace-sidebar.js +5 -6
  104. package/dist/parts/workspace/workspace-start.js +2 -3
  105. package/dist/parts/workspace/workspace-steps.js +6 -7
  106. package/dist/parts/workspace/workspace-terminal.js +0 -6
  107. package/dist/parts/workspace/workspace.d.ts +3 -3
  108. package/dist/parts/workspace/workspace.js +15 -18
  109. package/dist/{progress-D_9sG648.js → progress-D7CyDkLW.js} +1 -1
  110. package/dist/{prompt-input-j4OFTF5p.d.ts → prompt-input-DZM3E6WP.d.ts} +2 -2
  111. package/dist/{ring-DoL9jivj.js → ring-C5lNUEAG.js} +1 -1
  112. package/dist/runtime/nuxt-plugin.js +27 -1
  113. package/dist/{stand-ins-CuKM1UH1.js → stand-ins-C2oSoNwV.js} +29 -84
  114. package/dist/styles.css +37 -21
  115. package/dist/{sync-status-BRroyOre.js → sync-status-D27Qt7mk.js} +1 -1
  116. package/dist/theme-focus-ring.css +1 -1
  117. package/dist/{tween-lVMRCUEv.js → tween-DGAmrS3r.js} +4 -2
  118. package/dist/{types-BF_U0tgp.d.ts → types-CMU8Vmew.d.ts} +2 -5
  119. package/dist/{vue-DdYvDVOr.js → vue-D70TZJhJ.js} +1 -1
  120. package/dist/{workspace-boot-status-CyGlJS06.js → workspace-boot-status-BDkpubHd.js} +0 -1
  121. package/dist/{workspace-shell-B4A7CINd.d.ts → workspace-shell-CwEQT_1s.d.ts} +1 -1
  122. package/dist/workspace.d.ts +1 -1
  123. package/dist/workspace.js +1 -1
  124. package/package.json +10 -18
  125. package/dist/CopyButton-Dtg_Oc9_.js +0 -115
  126. package/dist/announce-CJNXaYbT.js +0 -29
  127. package/dist/comment-send.css +0 -267
  128. package/dist/comments-BtD28xEn.js +0 -390
  129. package/dist/nuxt-ui-CPdiTwwD.js +0 -22
  130. package/dist/theme.css +0 -379
  131. package/dist/theme.d.ts +0 -410
  132. package/dist/theme.js +0 -290
  133. package/dist/ui-components-CKQAPI-W.js +0 -7
  134. package/dist/use-copy-DK1SSZkh.js +0 -66
@@ -1,6 +1,6 @@
1
- import { a as tween, c as createSpring, f as springs, h as prefersReducedMotion, i as playTween, l as getMotionSlowFactor, m as onReducedMotionChange, n as easeIn, o as isMotionOff, r as easeOut, t as cubicBezier, u as onEachFrame } from "./tween-lVMRCUEv.js";
2
- import { a as defineOwnEffect, c as motionEffectRegistrations, d as otherMotionLayer, f as writeMotionStyle, l as motionStateAttributes, n as visualCopy, o as handOffMotionEffects, r as claimMotionLayer, s as listMotionEffects, u as onMotionEffectsChange } from "./hold-to-delete-CcQbfiQx.js";
3
- import { a as isOwnNode, c as own, i as glyphNode, l as reduced, n as frameOf$2, o as motionSkipped, r as glyphMotionSkipped, s as openFrame, u as setText } from "./ring-DoL9jivj.js";
1
+ import { a as tween, c as createSpring, f as springs, h as prefersReducedMotion, i as playTween, l as getMotionSlowFactor, m as onReducedMotionChange, n as easeIn, o as isMotionOff, r as easeOut, t as cubicBezier, u as onEachFrame } from "./tween-DGAmrS3r.js";
2
+ import { a as defineOwnEffect, c as motionEffectRegistrations, d as otherMotionLayer, f as writeMotionStyle, l as motionStateAttributes, n as visualCopy, o as handOffMotionEffects, r as claimMotionLayer, s as listMotionEffects, u as onMotionEffectsChange } from "./hold-to-delete-sscThmPW.js";
3
+ import { a as isOwnNode, c as own, i as glyphNode, l as reduced, n as frameOf$2, o as motionSkipped, r as glyphMotionSkipped, s as openFrame, u as setText } from "./ring-C5lNUEAG.js";
4
4
  // src/motion/effects/divider.ts
5
5
  const springBack = {
6
6
  stiffness: 500,
@@ -164,7 +164,6 @@ const eventPresses = (event) => {
164
164
  return effects;
165
165
  };
166
166
  const unreadable = /* @__PURE__ */ new Set();
167
- /** `element.matches(selector)`, false for a selector that this browser cannot read. */
168
167
  function matches(element, selector) {
169
168
  if (unreadable.has(selector)) return false;
170
169
  try {
@@ -174,11 +173,6 @@ function matches(element, selector) {
174
173
  return false;
175
174
  }
176
175
  }
177
- /**
178
- * True when an install covers the element: an installed element contains it, or its root is installed, also through the
179
- * shadow hosts around it. An app that installs the document covers the shadow roots in it, and the page pill, which
180
- * installs only its own host and shadow roots, does not move the buttons of the page that it is on.
181
- */
182
176
  function covered(element) {
183
177
  let node = element;
184
178
  for (;;) {
@@ -189,7 +183,6 @@ function covered(element) {
189
183
  node = root.host;
190
184
  }
191
185
  }
192
- /** The innermost element on the event path that matches `selector`, that an install covers, and that is not inside `[data-motion="none"]`. */
193
186
  function find(path, selector) {
194
187
  let lastOff = -1;
195
188
  path.forEach((node, index) => {
@@ -719,7 +712,6 @@ function isOn$1(value) {
719
712
  function styleable(node) {
720
713
  return node instanceof HTMLElement || node instanceof SVGElement ? node : void 0;
721
714
  }
722
- /** The child of `element` that holds `node`. */
723
715
  function childOf(element, node) {
724
716
  let child = node;
725
717
  while (child.parentElement && child.parentElement !== element) child = child.parentElement;
@@ -775,7 +767,6 @@ function checkOf(element, wasOn) {
775
767
  checks.set(element, check);
776
768
  return check;
777
769
  }
778
- /** Points the spring at the mark of `icon`, and puts back the mark that it drew before. */
779
770
  function bind(check, icon, fade) {
780
771
  check.icon?.restore();
781
772
  if (check.fade && check.fade !== fade) writeMotionStyle(check.fade, { opacity: null });
@@ -820,7 +811,6 @@ const iconSelector$1 = "[data-motion-chevron], svg, img, .iconify, [data-slot=ic
820
811
  const quarter = 90;
821
812
  const turns = /* @__PURE__ */ new WeakMap();
822
813
  const pending$1 = /* @__PURE__ */ new WeakMap();
823
- /** The element that holds the chevron: the `<summary>` of a `<details>`, or the trigger itself. */
824
814
  function triggerOf(element) {
825
815
  return element instanceof HTMLDetailsElement ? element.querySelector(":scope > summary") : element;
826
816
  }
@@ -836,14 +826,12 @@ function degrees(value) {
836
826
  if (angle.endsWith("rad")) return number * 180 / Math.PI;
837
827
  return Number.isFinite(number) ? number : 0;
838
828
  }
839
- /** The Z angle of a computed transform matrix. */
840
829
  function matrixDegrees(value) {
841
830
  const match = /^matrix(?:3d)?\(([^)]+)\)$/.exec(value);
842
831
  if (!match) return 0;
843
832
  const [a = 1, b = 0] = match[1].split(",").map(Number);
844
833
  return Math.atan2(b, a) * 180 / Math.PI;
845
834
  }
846
- /** The angle that the stylesheet draws the icon at now, without what the effect wrote, split into its two sources. */
847
835
  function measure$3(icon) {
848
836
  const written = icon.style.getPropertyValue("rotate");
849
837
  if (written) icon.style.removeProperty("rotate");
@@ -856,10 +844,6 @@ function measure$3(icon) {
856
844
  base
857
845
  };
858
846
  }
859
- /**
860
- * True when the icon still turns with a CSS transition of its own, as Nuxt UI's accordion chevron does. The transition
861
- * would smear each frame of the spring, so that icon keeps its own motion.
862
- */
863
847
  function transitionsTurn(icon) {
864
848
  const style = getComputedStyle(icon);
865
849
  const durations = style.transitionDuration.split(",");
@@ -943,7 +927,6 @@ const waveEnd = 1.5;
943
927
  const waveSeconds = .56 * waveEnd;
944
928
  const points = 120;
945
929
  const waves = /* @__PURE__ */ new WeakMap();
946
- /** The outline of the path at `wave`, as a closed polyline. The formula is the prototype's, for any path size. */
947
930
  function deform({ outline, box }, wave) {
948
931
  const amount = wave <= 1 ? .5 * Math.sin(Math.PI * wave) : -.12 * Math.sin(Math.PI * (wave - 1) / .5);
949
932
  const crest = -.15 + 1.35 * Math.min(1, Math.max(0, wave));
@@ -1338,13 +1321,18 @@ function diffText(from, to) {
1338
1321
  const blur$1 = 6;
1339
1322
  const leave$3 = {
1340
1323
  duration: 200,
1341
- stagger: 30
1324
+ stagger: 30,
1325
+ spread: 120
1342
1326
  };
1343
1327
  const type = {
1344
1328
  duration: 240,
1345
1329
  lead: 30,
1346
- stagger: 55
1330
+ stagger: 55,
1331
+ spread: 240
1347
1332
  };
1333
+ function staggerOf(gap, spread, count) {
1334
+ return count > 1 ? Math.min(gap, spread / (count - 1)) : gap;
1335
+ }
1348
1336
  const crossfade$4 = 150;
1349
1337
  const morphs = /* @__PURE__ */ new WeakMap();
1350
1338
  /** The text that the element shows or moves to, when a morph runs on it. */
@@ -1489,6 +1477,7 @@ function morph(element, text, from) {
1489
1477
  const start = width.value;
1490
1478
  let step = end - typing.reduce((sum, letter) => sum + letter.node.offsetWidth, 0);
1491
1479
  const slow = getMotionSlowFactor();
1480
+ const stagger = staggerOf(type.stagger, type.spread, typing.length);
1492
1481
  typing.forEach((letter, index) => {
1493
1482
  step += letter.node.offsetWidth;
1494
1483
  const target = index === typing.length - 1 ? end : Math.max(step, index === 0 ? Math.min(start, end) : 0);
@@ -1497,7 +1486,7 @@ function morph(element, text, from) {
1497
1486
  letter.waiting = false;
1498
1487
  width.to(target);
1499
1488
  fadeIn(element, state, letter, letter.shown, type.duration, false);
1500
- }, (type.lead + index * type.stagger) * slow);
1489
+ }, (type.lead + index * stagger) * slow);
1501
1490
  state.timers.add(timer);
1502
1491
  });
1503
1492
  }
@@ -1519,6 +1508,7 @@ function leaveLetters(state, letters, reducedMotion) {
1519
1508
  left: letter.node.offsetLeft,
1520
1509
  top: letter.node.offsetTop
1521
1510
  }));
1511
+ const stagger = staggerOf(leave$3.stagger, leave$3.spread, placed.length);
1522
1512
  let order = 0;
1523
1513
  for (const { letter, left, top } of placed) {
1524
1514
  letter.fade?.stop();
@@ -1533,7 +1523,7 @@ function leaveLetters(state, letters, reducedMotion) {
1533
1523
  state.leaving.add(letter);
1534
1524
  letter.fade = tween(letter.shown, 0, {
1535
1525
  duration: reducedMotion ? crossfade$4 : leave$3.duration,
1536
- delay: reducedMotion ? 0 : order++ * leave$3.stagger,
1526
+ delay: reducedMotion ? 0 : order++ * stagger,
1537
1527
  ease: reducedMotion ? easeOut : easeIn
1538
1528
  }, (value) => paint$1(letter, value, reducedMotion), () => {
1539
1529
  letter.fade = void 0;
@@ -1808,7 +1798,6 @@ function pressMode() {
1808
1798
  return mode === "opt-in" || mode === "all" ? mode : "buttons";
1809
1799
  }
1810
1800
  const pressed = /* @__PURE__ */ new WeakMap();
1811
- /** How much a control of this height squashes: 3% from 40px high, 4% from 32px, and 5% below. */
1812
1801
  const amountFor = (height) => height >= 40 ? .03 : height >= 32 ? .04 : .05;
1813
1802
  const wholeAmount = (element) => Math.min(amountFor(element.offsetHeight), 6 / Math.max(element.offsetWidth, element.offsetHeight));
1814
1803
  function pressChoice(element, event) {
@@ -1824,12 +1813,6 @@ function squashesByDefault(element) {
1824
1813
  if (mode !== "buttons") return mode === "all";
1825
1814
  return element.matches(nativeButton) && element.offsetHeight < 48 && element.offsetWidth <= 4 * element.offsetHeight;
1826
1815
  }
1827
- /**
1828
- * How much a press squashes, from the prototype: an icon-only control squashes its icon by 15%, and a control squashes
1829
- * by its height. A control that another element draws, such as the mark of the folded page pill, names that element
1830
- * with `data-motion-press-target`, a selector that `closest()` finds from the control. Then that element squashes.
1831
- * `data-motion-press="icon"` squashes the first icon in the element. Nothing squashes when the press does not apply.
1832
- */
1833
1816
  function squash(element, choice) {
1834
1817
  if (choice === "none") return void 0;
1835
1818
  if (choice === "icon") {
@@ -1855,11 +1838,6 @@ function squash(element, choice) {
1855
1838
  amount: wholeAmount(element)
1856
1839
  };
1857
1840
  }
1858
- /**
1859
- * True when the element still animates `scale` with a CSS transition of its own, as a hand-written press on the
1860
- * allowlist of `test/design-rules.test.ts` does. The transition would smear each frame of the spring, so that element
1861
- * keeps its own press until its wave moves it onto the layer. Tailwind's plain `transition` class also animates `scale`.
1862
- */
1863
1841
  function transitionsScale(style) {
1864
1842
  const durations = style.transitionDuration.split(",");
1865
1843
  return style.transitionProperty.split(",").some((property, index) => /^\s*(?:scale|all)\s*$/.test(property) && Number.parseFloat(durations[index % durations.length]) > 0);
@@ -1942,9 +1920,6 @@ const indicatorItem = `${byRole}, [aria-selected], [aria-checked], [data-checked
1942
1920
  ].map((value) => `[data-state=${value}]`).join(", ")}`;
1943
1921
  const ownIndicator = "[data-motion-indicator], [data-slot=indicator]";
1944
1922
  const groupIndicator = `${ownIndicator}, [data-slot$="-indicator"]`;
1945
- const stretchPerSpeed$1 = .09;
1946
- const stretchMax$1 = .55;
1947
- const thinning = .25;
1948
1923
  const flights = /* @__PURE__ */ new WeakMap();
1949
1924
  const pending = /* @__PURE__ */ new Map();
1950
1925
  const observedItems = /* @__PURE__ */ new WeakSet();
@@ -1976,10 +1951,6 @@ function frameOf(group) {
1976
1951
  k: group.offsetWidth ? rect.width / group.offsetWidth : 1
1977
1952
  };
1978
1953
  }
1979
- /**
1980
- * The layout box of an element relative to the group, in CSS pixels. The size comes from layout and the center from the
1981
- * screen, so a press that scales an item around its center does not change it.
1982
- */
1983
1954
  function boxOf(element, frame) {
1984
1955
  const rect = element.getBoundingClientRect();
1985
1956
  const width = element.offsetWidth || rect.width / frame.k;
@@ -1991,19 +1962,10 @@ function boxOf(element, frame) {
1991
1962
  height
1992
1963
  };
1993
1964
  }
1994
- /** The indicator of `item`: its own one, or the one of the group that is in no item. */
1995
1965
  function indicatorOf(group, item) {
1996
1966
  for (const candidate of item.querySelectorAll(ownIndicator)) if (candidate.closest(anyGroup) === group && indicatorOwner(group, candidate) === item) return candidate;
1997
1967
  for (const candidate of group.querySelectorAll(groupIndicator)) if (candidate.closest(anyGroup) === group && !indicatorOwner(group, candidate)) return candidate;
1998
1968
  }
1999
- function innerBounds(group) {
2000
- const style = getComputedStyle(group);
2001
- const left = group.clientLeft + Number.parseFloat(style.paddingLeft);
2002
- const top = group.clientTop + Number.parseFloat(style.paddingTop);
2003
- const right = group.clientLeft + group.clientWidth - Number.parseFloat(style.paddingRight);
2004
- const bottom = group.clientTop + group.clientHeight - Number.parseFloat(style.paddingBottom);
2005
- return [[left, right], [top, bottom]];
2006
- }
2007
1969
  function pixels(value, size) {
2008
1970
  return value.endsWith("%") ? Number.parseFloat(value) / 100 * size : Number.parseFloat(value) || 0;
2009
1971
  }
@@ -2019,7 +1981,6 @@ function measureRest$1(flight) {
2019
1981
  flight.translate = [pixels(tx, flight.rest.width), pixels(ty, flight.rest.height)];
2020
1982
  flight.origin = [pixels(ox, flight.rest.width), pixels(oy, flight.rest.height)];
2021
1983
  }
2022
- /** The box of the indicator at rest in `to`, moved and resized to sit the same way in `from`. */
2023
1984
  function mapBox(rest, to, from) {
2024
1985
  const sx = to.width ? from.width / to.width : 1;
2025
1986
  const sy = to.height ? from.height / to.height : 1;
@@ -2041,24 +2002,9 @@ function queue(flight) {
2041
2002
  render(flight);
2042
2003
  });
2043
2004
  }
2044
- /**
2045
- * One axis of the box in flight: its start and size, longer by `along` of its size toward where it moves, thinner by a
2046
- * quarter of `across`, and kept inside `bounds` or the place at rest.
2047
- */
2048
- function stretch(start, size, velocity, along, across, bounds, restStart, restSize) {
2049
- const extra = along * size;
2050
- const low = Math.min(bounds[0], restStart, start);
2051
- const high = Math.max(bounds[1], restStart + restSize, start + size);
2052
- let from = velocity < 0 ? Math.max(low, start - extra) : start;
2053
- let to = velocity < 0 ? start + size : Math.min(high, start + size + extra);
2054
- const thin = (to - from) * across * thinning / 2;
2055
- from += thin;
2056
- to -= thin;
2057
- return [from, to - from];
2058
- }
2059
2005
  function render(flight) {
2060
2006
  if (!flight.ready) return;
2061
- const { element, rest, translate, origin, x, y, width, height, span } = flight;
2007
+ const { element, rest, translate, origin, x, y, width, height } = flight;
2062
2008
  if (!moving$1(flight)) {
2063
2009
  writeMotionStyle(element, {
2064
2010
  translate: null,
@@ -2067,14 +2013,10 @@ function render(flight) {
2067
2013
  land(flight);
2068
2014
  return;
2069
2015
  }
2070
- const fx = Math.min(stretchMax$1, Math.abs(x.velocity) / span[0] * stretchPerSpeed$1);
2071
- const fy = Math.min(stretchMax$1, Math.abs(y.velocity) / span[1] * stretchPerSpeed$1);
2072
- const [left, boxWidth] = stretch(x.value, width.value, x.velocity, fx, fy, flight.bounds[0], rest.x, rest.width);
2073
- const [top, boxHeight] = stretch(y.value, height.value, y.velocity, fy, fx, flight.bounds[1], rest.y, rest.height);
2074
- const scaleX = rest.width ? boxWidth / rest.width : 1;
2075
- const scaleY = rest.height ? boxHeight / rest.height : 1;
2076
- const tx = left - (rest.x - translate[0]) - origin[0] * (1 - scaleX);
2077
- const ty = top - (rest.y - translate[1]) - origin[1] * (1 - scaleY);
2016
+ const scaleX = rest.width ? width.value / rest.width : 1;
2017
+ const scaleY = rest.height ? height.value / rest.height : 1;
2018
+ const tx = x.value - (rest.x - translate[0]) - origin[0] * (1 - scaleX);
2019
+ const ty = y.value - (rest.y - translate[1]) - origin[1] * (1 - scaleY);
2078
2020
  writeMotionStyle(element, {
2079
2021
  translate: `${tx}px ${ty}px`,
2080
2022
  scale: `${scaleX} ${scaleY}`
@@ -2102,20 +2044,17 @@ function fly(group, element, from, to, copyOf) {
2102
2044
  },
2103
2045
  translate: [0, 0],
2104
2046
  origin: [0, 0],
2105
- span: [1, 1],
2106
- bounds: [[0, 0], [0, 0]],
2107
2047
  queued: false,
2108
- x: createSpring(0, () => queue(flight), springs.snappy),
2109
- y: createSpring(0, () => queue(flight), springs.snappy),
2110
- width: createSpring(0, () => queue(flight), springs.snappy),
2111
- height: createSpring(0, () => queue(flight), springs.snappy)
2048
+ x: createSpring(0, () => queue(flight), springs.glide),
2049
+ y: createSpring(0, () => queue(flight), springs.glide),
2050
+ width: createSpring(0, () => queue(flight), springs.glide),
2051
+ height: createSpring(0, () => queue(flight), springs.glide)
2112
2052
  };
2113
2053
  flights.set(group, flight);
2114
2054
  flight.ready = false;
2115
2055
  flight.element = element;
2116
2056
  flight.copyOf = copyOf;
2117
2057
  measureRest$1(flight);
2118
- flight.bounds = innerBounds(group);
2119
2058
  const { rest } = flight;
2120
2059
  if (!rest.width || !rest.height || !wasMoving && !from) {
2121
2060
  flight.ready = true;
@@ -2129,11 +2068,15 @@ function fly(group, element, from, to, copyOf) {
2129
2068
  flight.width.set(start.width);
2130
2069
  flight.height.set(start.height);
2131
2070
  }
2132
- flight.span = [Math.max(Math.abs(rest.x - flight.x.value), rest.width, 1), Math.max(Math.abs(rest.y - flight.y.value), rest.height, 1)];
2133
- flight.x.to(rest.x);
2134
- flight.y.to(rest.y);
2135
- flight.width.to(rest.width);
2136
- flight.height.to(rest.height);
2071
+ for (const [spring, target] of [
2072
+ [flight.x, rest.x],
2073
+ [flight.y, rest.y],
2074
+ [flight.width, rest.width],
2075
+ [flight.height, rest.height]
2076
+ ]) {
2077
+ spring.stop();
2078
+ spring.to(target);
2079
+ }
2137
2080
  flight.ready = true;
2138
2081
  render(flight);
2139
2082
  }
@@ -2174,7 +2117,6 @@ function adoptSheet(node) {
2174
2117
  if (!root.adoptedStyleSheets.includes(sheet)) root.adoptedStyleSheets = [...root.adoptedStyleSheets, sheet];
2175
2118
  }
2176
2119
  const clear = /^transparent$|^rgba\((?:[^,]+,){3}\s*0(?:\.0+)?\)$|\/\s*0(?:\.0+)?%?\s*\)$/;
2177
- /** A copy of the look that `to` has and `from` does not, behind the items, or nothing when they look the same. */
2178
2120
  function copyLook(group, from, to) {
2179
2121
  finishLook(from);
2180
2122
  finishLook(to);
@@ -2669,7 +2611,6 @@ function findKnob(element) {
2669
2611
  function isOn(value) {
2670
2612
  return value === "true";
2671
2613
  }
2672
- /** Reads where the stylesheet puts the knob in the current state, without what the effect wrote. */
2673
2614
  function measure$1(element, knob) {
2674
2615
  writeMotionStyle(knob, {
2675
2616
  translate: null,
@@ -2728,10 +2669,6 @@ function draw$1(element, state) {
2728
2669
  scale: `${(width / now.width).toFixed(4)} ${(height / now.height).toFixed(4)}`
2729
2670
  });
2730
2671
  }
2731
- /**
2732
- * True when the knob still moves with a CSS transition of its own, as Nuxt UI's thumb does without the ViteHub theme.
2733
- * The transition would smear each frame of the springs, so that knob keeps its own motion.
2734
- */
2735
2672
  function transitionsKnob(knob) {
2736
2673
  const style = getComputedStyle(knob);
2737
2674
  const durations = style.transitionDuration.split(",");
@@ -2766,7 +2703,6 @@ function knobOf(element, wasOn) {
2766
2703
  knobs.set(element, state);
2767
2704
  return state;
2768
2705
  }
2769
- /** Measures the state that the stylesheet draws now and keeps it as the rest of that state. */
2770
2706
  function remeasure(element, state, on) {
2771
2707
  const { rest, translate, width, height } = measure$1(element, state.knob);
2772
2708
  state.rest[on ? 1 : 0] = rest;
@@ -3028,12 +2964,21 @@ const widen = {
3028
2964
  damping: 32
3029
2965
  };
3030
2966
  const narrow = 30;
3031
- const widenAfter = 120;
3032
- const labelAfterRise = 70;
3033
2967
  const labelAfterSlide = 40;
3034
- const sinkAfter = 90;
3035
- const goneAfter = 520;
3036
- const labelIn = .24;
2968
+ const tipPace = {
2969
+ widenAfter: 120,
2970
+ labelAfterRise: 70,
2971
+ labelIn: .24,
2972
+ sinkAfter: 90,
2973
+ goneAfter: 520
2974
+ };
2975
+ const appearPace = {
2976
+ widenAfter: 60,
2977
+ labelAfterRise: 40,
2978
+ labelIn: .18,
2979
+ sinkAfter: 50,
2980
+ goneAfter: 320
2981
+ };
3037
2982
  const labelOutOnSlide = .15;
3038
2983
  const labelOutOnLeave = .14;
3039
2984
  const crossfade$1 = .15;
@@ -3048,7 +2993,6 @@ function visuallyHidden(element) {
3048
2993
  function roleElement(box) {
3049
2994
  return box.matches("[role=tooltip]") ? box : box.querySelector(":scope > [role=tooltip]");
3050
2995
  }
3051
- /** An element that is not a tooltip but appears next to its trigger in the same way, such as a comment's draft bubble. */
3052
2996
  const appearSelector = "[data-motion-appear]";
3053
2997
  function visualBox(element) {
3054
2998
  if (element.matches(appearSelector)) return element;
@@ -3061,11 +3005,6 @@ function isOpen(box) {
3061
3005
  if (state !== null) return state !== "closed";
3062
3006
  return !box.hidden && !box.hasAttribute("data-closed");
3063
3007
  }
3064
- /**
3065
- * The trigger of a tooltip: the element that `aria-describedby` points at it. The trigger of a `data-motion-appear`
3066
- * element is the nearest element around it that its value selects, else a sibling that it selects, or none for an
3067
- * empty value.
3068
- */
3069
3008
  function findTrigger(box) {
3070
3009
  const anchor = box.getAttribute("data-motion-appear");
3071
3010
  if (anchor !== null) {
@@ -3238,6 +3177,9 @@ function createBox(element, rest, trigger) {
3238
3177
  box.fade = createSpring(1, frame);
3239
3178
  return box;
3240
3179
  }
3180
+ function paceOf(box) {
3181
+ return box.handoff ? tipPace : appearPace;
3182
+ }
3241
3183
  function later(box, ms, step) {
3242
3184
  const timer = after(ms, () => {
3243
3185
  box.timers.delete(timer);
@@ -3369,7 +3311,7 @@ function start(element, tip) {
3369
3311
  preset: widen,
3370
3312
  velocity: values.width[1]
3371
3313
  });
3372
- later(box, labelAfterSlide, () => box.label.to(1, { tween: labelIn }));
3314
+ later(box, labelAfterSlide, () => box.label.to(1, { tween: tipPace.labelIn }));
3373
3315
  box.holding = false;
3374
3316
  draw(box);
3375
3317
  return;
@@ -3379,9 +3321,10 @@ function start(element, tip) {
3379
3321
  box.label.set(0);
3380
3322
  draw(box);
3381
3323
  along(box).to(vertical(box.side) ? rest.top + rest.height / 2 : rest.left + rest.width / 2, { preset: rise });
3382
- later(box, widenAfter, () => {
3324
+ const pace = paceOf(box);
3325
+ later(box, pace.widenAfter, () => {
3383
3326
  box.width.to(rest.width, { preset: widen });
3384
- later(box, labelAfterRise, () => box.label.to(1, { tween: labelIn }));
3327
+ later(box, pace.labelAfterRise, () => box.label.to(1, { tween: pace.labelIn }));
3385
3328
  });
3386
3329
  box.holding = false;
3387
3330
  }
@@ -3397,11 +3340,12 @@ function leaveGhost(box, reduced) {
3397
3340
  if (box.old) box.old.spring.to(0, { tween: labelOutOnLeave });
3398
3341
  box.label.to(0, { tween: labelOutOnLeave });
3399
3342
  box.width.to(Math.min(narrow, box.rest.width), { preset: widen });
3400
- later(box, sinkAfter, () => {
3343
+ const pace = paceOf(box);
3344
+ later(box, pace.sinkAfter, () => {
3401
3345
  if (handoff === box) handoff = void 0;
3402
3346
  along(box).to(hiddenCenter(box), { preset: rise });
3403
3347
  });
3404
- later(box, goneAfter, () => removeGhost(box));
3348
+ later(box, pace.goneAfter, () => removeGhost(box));
3405
3349
  }
3406
3350
  function leave(element, tip) {
3407
3351
  if (!tip.open) return;
@@ -3569,7 +3513,7 @@ function checkMoves() {
3569
3513
  box.old?.element.remove();
3570
3514
  blurOutOld(box, old, box.label.value);
3571
3515
  box.label.set(0);
3572
- later(box, labelAfterSlide, () => box.label.to(1, { tween: labelIn }));
3516
+ later(box, labelAfterSlide, () => box.label.to(1, { tween: paceOf(box).labelIn }));
3573
3517
  }
3574
3518
  }
3575
3519
  }
@@ -3598,7 +3542,6 @@ function stopWatchingMoves() {
3598
3542
  document.removeEventListener("pointerover", onMove, { capture: true });
3599
3543
  document.removeEventListener("focusin", onMove, { capture: true });
3600
3544
  }
3601
- /** The hooks of a tooltip and of an element with `data-motion-appear`: both appear the same way. */
3602
3545
  const appearHooks = {
3603
3546
  enter(element) {
3604
3547
  if (visualBox(element) !== element || !isOpen(element)) return;
@@ -3886,7 +3829,6 @@ const keys = [
3886
3829
  "width",
3887
3830
  "height"
3888
3831
  ];
3889
- /** The element's box with nothing of the travel written, and the point of the screen that its scale turns around. */
3890
3832
  function measure(element) {
3891
3833
  const { translate, scale } = element.style;
3892
3834
  writeMotionStyle(element, {
@@ -1,4 +1,4 @@
1
- import { r as createMotionList } from "./motion-core-BdTfxAhY.js";
1
+ import { r as createMotionList } from "./motion-core-pkL0M4Y1.js";
2
2
  import { t as elementOf } from "./element-BpjNQvZ0.js";
3
3
  import { Fragment, createElementVNode, defineComponent, h, mergeProps, onBeforeUnmount, onBeforeUpdate, onUpdated, renderSlot, useSlots } from "vue";
4
4
  // registry/motion/MotionList.vue
package/dist/motion.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as createHoldToDelete, n as HoldToDeleteOptions, r as HoldToDeleteState, t as HoldToDelete } from "./hold-to-delete-CQc1JaG_.js";
2
- import { $ as prefersReducedMotion, A as getMotionSlowFactor, B as leave, C as swapIcon, D as SpringPreset, E as SpringFrame, F as toast, G as disclosure, H as label, I as switchKnob, J as InstallMotionOptions, K as check, L as slider, M as springs, N as appear, O as SpringTarget, P as tooltip, Q as onReducedMotionChange, R as select, S as SwapIconOptions, T as Spring, U as jelly, V as buttonIcon, W as divider, X as isMotionOff, Z as forceReducedMotion, _ as shake, a as ProgressOptions, b as IconEnter, c as MotionList, d as MotionListPlay, f as createMotionList, g as travel, h as TravelOptions, i as Progress, j as setMotionSlowFactor, k as createSpring, l as MotionListOptions, m as TravelBox, n as DropFieldOptions, o as ProgressPhase, p as Travel, q as motionEffects, r as createDropField, s as createProgress, t as DropField, u as MotionListOrigin, v as ring, w as morphText, x as IconExit, y as rollNumber, z as panel } from "./motion-core-BfIefToe.js";
2
+ import { $ as prefersReducedMotion, A as getMotionSlowFactor, B as leave, C as swapIcon, D as SpringPreset, E as SpringFrame, F as toast, G as disclosure, H as label, I as switchKnob, J as InstallMotionOptions, K as check, L as slider, M as springs, N as appear, O as SpringTarget, P as tooltip, Q as onReducedMotionChange, R as select, S as SwapIconOptions, T as Spring, U as jelly, V as buttonIcon, W as divider, X as isMotionOff, Z as forceReducedMotion, _ as shake, a as ProgressOptions, b as IconEnter, c as MotionList, d as MotionListPlay, f as createMotionList, g as travel, h as TravelOptions, i as Progress, j as setMotionSlowFactor, k as createSpring, l as MotionListOptions, m as TravelBox, n as DropFieldOptions, o as ProgressPhase, p as Travel, q as motionEffects, r as createDropField, s as createProgress, t as DropField, u as MotionListOrigin, v as ring, w as morphText, x as IconExit, y as rollNumber, z as panel } from "./motion-core-BEwxN7Il.js";
3
3
  import { a as MotionEffect, c as MotionStateAttribute, d as defineMotionEffect, f as listMotionEffects, i as MotionContentChange, l as MotionStateChange, m as writeMotionStyle, n as press, o as MotionPress, p as motionStateAttributes, r as setMotionPressMode, s as MotionRoot, t as MotionPressMode, u as MotionStyleProperty } from "./press-BuEC-XvZ.js";
4
4
  import { t as installMotion } from "./motion-BH6ShUam.js";
5
5
  export { type DropField, type DropFieldOptions, type HoldToDelete, type HoldToDeleteOptions, type HoldToDeleteState, type IconEnter, type IconExit, type InstallMotionOptions, type MotionContentChange, type MotionEffect, type MotionList, type MotionListOptions, type MotionListOrigin, type MotionListPlay, type MotionPress, type MotionPressMode, type MotionRoot, type MotionStateAttribute, type MotionStateChange, type MotionStyleProperty, type Progress, type ProgressOptions, type ProgressPhase, type Spring, type SpringFrame, type SpringPreset, type SpringTarget, type SwapIconOptions, type Travel, type TravelBox, type TravelOptions, appear as appearEffect, buttonIcon as buttonIconEffect, check as checkEffect, createDropField, createHoldToDelete, createMotionList, createProgress, createSpring, defineMotionEffect, disclosure as disclosureEffect, divider as dividerEffect, forceReducedMotion, getMotionSlowFactor, installMotion, isMotionOff, jelly as jellyEffect, label as labelEffect, leave as leaveEffect, listMotionEffects, morphText, motionEffects, motionStateAttributes, onReducedMotionChange, panel as panelEffect, prefersReducedMotion, press as pressEffect, ring, rollNumber, select as selectEffect, setMotionPressMode, setMotionSlowFactor, shake, slider as sliderEffect, springs, swapIcon, switchKnob as switchEffect, toast as toastEffect, tooltip as tooltipEffect, travel, writeMotionStyle };
package/dist/motion.js CHANGED
@@ -1,6 +1,6 @@
1
- import { c as createSpring, d as setMotionSlowFactor, f as springs, h as prefersReducedMotion, l as getMotionSlowFactor, m as onReducedMotionChange, o as isMotionOff, p as forceReducedMotion } from "./tween-lVMRCUEv.js";
2
- import { C as disclosure, E as divider, S as jelly, _ as leave, a as shake, b as morphText, c as appear, d as switchKnob, f as slider, g as panel, h as setMotionPressMode, i as travel, l as tooltip, m as press, n as createProgress, o as rollNumber, p as select, r as createMotionList, s as motionEffects, t as createDropField, u as toast, v as buttonIcon, w as check, x as swapIcon, y as label } from "./motion-core-BdTfxAhY.js";
3
- import { f as writeMotionStyle, i as defineMotionEffect, l as motionStateAttributes, s as listMotionEffects, t as createHoldToDelete } from "./hold-to-delete-CcQbfiQx.js";
4
- import { t as ring } from "./ring-DoL9jivj.js";
5
- import { t as installMotion } from "./motion-itHFtXwA.js";
1
+ import { f as writeMotionStyle, i as defineMotionEffect, l as motionStateAttributes, s as listMotionEffects, t as createHoldToDelete } from "./hold-to-delete-sscThmPW.js";
2
+ import { c as createSpring, d as setMotionSlowFactor, f as springs, h as prefersReducedMotion, l as getMotionSlowFactor, m as onReducedMotionChange, o as isMotionOff, p as forceReducedMotion } from "./tween-DGAmrS3r.js";
3
+ import { C as disclosure, E as divider, S as jelly, _ as leave, a as shake, b as morphText, c as appear, d as switchKnob, f as slider, g as panel, h as setMotionPressMode, i as travel, l as tooltip, m as press, n as createProgress, o as rollNumber, p as select, r as createMotionList, s as motionEffects, t as createDropField, u as toast, v as buttonIcon, w as check, x as swapIcon, y as label } from "./motion-core-pkL0M4Y1.js";
4
+ import { t as ring } from "./ring-C5lNUEAG.js";
5
+ import { t as installMotion } from "./motion-C8P5yWaA.js";
6
6
  export { appear as appearEffect, buttonIcon as buttonIconEffect, check as checkEffect, createDropField, createHoldToDelete, createMotionList, createProgress, createSpring, defineMotionEffect, disclosure as disclosureEffect, divider as dividerEffect, forceReducedMotion, getMotionSlowFactor, installMotion, isMotionOff, jelly as jellyEffect, label as labelEffect, leave as leaveEffect, listMotionEffects, morphText, motionEffects, motionStateAttributes, onReducedMotionChange, panel as panelEffect, prefersReducedMotion, press as pressEffect, ring, rollNumber, select as selectEffect, setMotionPressMode, setMotionSlowFactor, shake, slider as sliderEffect, springs, swapIcon, switchKnob as switchEffect, toast as toastEffect, tooltip as tooltipEffect, travel, writeMotionStyle };
package/dist/nuxt.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { r as ViteHubUIOptions, t as ViteHubUIIconOptions } from "./config-JmsTI7gs.js";
1
+ import { r as ViteHubUIOptions, t as ViteHubUIIconOptions } from "./config-BYLPA0Ts.js";
2
2
  /** Name of an icon in the ViteHub set, such as `kv` for `i-vitehub-kv`. */
3
3
  type ViteHubIconName = "agent" | "auth" | "blob" | "browser" | "bundle" | "cache" | "channels" | "choices" | "cli" | "cms" | "codemods" | "comments" | "compare" | "connections" | "console" | "content" | "database" | "development" | "device" | "docs" | "email" | "env" | "forge" | "forms" | "gateways" | "guides" | "hosts" | "i18n" | "kv" | "logs" | "markdown-template" | "mcp" | "presets" | "queue" | "rate-limit" | "realtime" | "reference" | "runtime" | "sandbox" | "schedule" | "shell" | "site" | "skills" | "source" | "start" | "sync" | "ui" | "usage" | "web-container" | "webhooks" | "workflow" | "workspace";
4
4
  /** The ViteHub icon set in the Iconify JSON format, as `@iconify-json/*` packages export it. */
@@ -27,7 +27,7 @@ interface ViteHubIconSet {
27
27
  height: 24;
28
28
  }
29
29
  export declare const viteHubUIIcons: readonly string[];
30
- export interface ViteHubUINuxtOptions extends Omit<ViteHubUIOptions, "components" | "icons"> {
30
+ export interface ViteHubUINuxtOptions extends Omit<ViteHubUIOptions, "iconComponent" | "icons"> {
31
31
  /** Prefix for auto-imported component names, for example `Vh` registers `VhTrace`. Use it when the app has its own `Message` or `Trace`. */
32
32
  prefix?: string;
33
33
  }
@@ -37,13 +37,11 @@ export interface ViteHubUINuxtModule {
37
37
  }
38
38
  declare module "@nuxt/schema" {
39
39
  interface AppConfigInput {
40
- /** The icons of the parts that Nuxt UI's `appConfig.ui.icons` has no name for, such as `edit` and `delete`. */
41
40
  viteHubUI?: {
42
41
  icons?: ViteHubUIIconOptions;
43
42
  };
44
43
  }
45
44
  }
46
- /** Vite's `resolve.alias`: a list of entries, or a record of replacements. The declarations do not import Vite, an optional peer. */
47
45
  type ViteAliasOptions = readonly {
48
46
  find: string | RegExp;
49
47
  replacement: string;
package/dist/nuxt.js CHANGED
@@ -115,7 +115,6 @@ const partFamilies = {
115
115
  "CommentPin",
116
116
  "CommentReply",
117
117
  "CommentSelectionBar",
118
- "CommentSend",
119
118
  "CommentThread",
120
119
  "CommentToolbar"
121
120
  ],
@@ -215,71 +214,47 @@ const componentNames = [
215
214
  ];
216
215
  // src/icons.ts
217
216
  const viteHubUIIcons = [
218
- "lucide:arrow-down",
219
217
  "lucide:arrow-left",
220
- "lucide:arrow-right",
221
218
  "lucide:arrow-up",
222
- "lucide:arrow-up-right",
223
219
  "lucide:bold",
224
220
  "lucide:check",
225
221
  "lucide:chevron-down",
226
222
  "lucide:chevron-left",
227
223
  "lucide:chevron-right",
228
- "lucide:chevron-up",
229
- "lucide:chevrons-left",
230
- "lucide:chevrons-right",
231
- "lucide:circle-alert",
232
- "lucide:circle-check",
224
+ "lucide:circle-x",
233
225
  "lucide:code",
234
226
  "lucide:copy",
235
227
  "lucide:database",
236
228
  "lucide:download",
237
229
  "lucide:ellipsis",
238
230
  "lucide:external-link",
239
- "lucide:eye",
240
- "lucide:eye-off",
241
231
  "lucide:file",
242
- "lucide:folder",
243
- "lucide:folder-open",
244
232
  "lucide:grip-vertical",
245
- "lucide:hash",
246
233
  "lucide:heading-1",
247
234
  "lucide:heading-2",
248
235
  "lucide:heading-3",
249
236
  "lucide:image",
250
- "lucide:info",
251
237
  "lucide:italic",
252
- "lucide:lightbulb",
253
238
  "lucide:link",
254
239
  "lucide:list",
255
240
  "lucide:list-ordered",
256
241
  "lucide:loader-circle",
257
- "lucide:menu",
258
242
  "lucide:message-circle",
259
243
  "lucide:minus",
260
- "lucide:monitor",
261
- "lucide:moon",
262
244
  "lucide:panel-left",
263
- "lucide:panel-left-close",
264
- "lucide:panel-left-open",
265
245
  "lucide:pencil",
266
246
  "lucide:play",
267
247
  "lucide:plus",
268
248
  "lucide:quote",
269
249
  "lucide:refresh-cw",
270
250
  "lucide:rotate-ccw",
271
- "lucide:search",
272
251
  "lucide:square",
273
252
  "lucide:square-code",
274
253
  "lucide:square-pen",
275
- "lucide:star",
276
254
  "lucide:strikethrough",
277
- "lucide:sun",
278
255
  "lucide:text-wrap",
279
256
  "lucide:trash-2",
280
- "lucide:triangle-alert",
281
257
  "lucide:type",
282
- "lucide:upload",
283
258
  "lucide:x"
284
259
  ];
285
260
  // src/nuxt.ts
@@ -299,14 +274,6 @@ function addViteHubUIRuntime(nuxt) {
299
274
  });
300
275
  inlineShikiWasm(nuxt.options.vite);
301
276
  }
302
- /**
303
- * Comark highlights code with the `shiki` root, which loads `shiki/wasm` on demand. Nitro builds the server with Shiki's
304
- * `unwasm` export condition, which points at the raw `onig.wasm`, and that file imports its JavaScript glue as `env`, so
305
- * Rolldown stops with `failed to resolve import "env"`. Resolve `shiki/wasm` to the base64 module of the `default`
306
- * condition, from this package's Shiki so that the app needs no direct dependency.
307
- * The cause is in Nitro: Vite service environments resolve the `unwasm` condition, but only the Nitro environment runs
308
- * unwasm. Remove when Nitro fixes it (https://github.com/nitrojs/nitro/issues/5150).
309
- */
310
277
  function inlineShikiWasm(vite) {
311
278
  const shiki = createRequire(import.meta.url).resolve("shiki/package.json");
312
279
  const wasm = createRequire(shiki).resolve("@shikijs/engine-oniguruma/wasm-inlined");
@@ -1 +1 @@
1
- export { a as AgentSession, i as AgentSessionDetailsRow, r as AgentSessionDetailsSection, t as AgentSessionTimeline, s as AgentSessionTitle, n as AgentSessionWorkGroup, o as agentSessionProviderLabel } from "../../agent-session-DhlTKCQG.js";
1
+ export { a as AgentSession, i as AgentSessionDetailsRow, r as AgentSessionDetailsSection, t as AgentSessionTimeline, s as AgentSessionTitle, n as AgentSessionWorkGroup, o as agentSessionProviderLabel } from "../../agent-session-D291hyRk.js";
@@ -1 +1 @@
1
- export { t as AvatarStack } from "../../avatar-stack-nQErr0qn.js";
1
+ export { t as AvatarStack } from "../../avatar-stack-Bi4CJPuU.js";
@@ -1 +1 @@
1
- export { t as ChatMessage } from "../../ChatMessage-Blr5F-zi.js";
1
+ export { t as ChatMessage } from "../../ChatMessage-DzjHnxMT.js";
@@ -1 +1 @@
1
- export { t as ChatSession } from "../../chat-session-hjZRL6jY.js";
1
+ export { t as ChatSession } from "../../chat-session-Bl-x4c9b.js";
@@ -1 +1 @@
1
- export { t as Chat, n as chatActivity } from "../../Chat-BZxkf3Tt.js";
1
+ export { t as Chat, n as chatActivity } from "../../Chat-DYQitDw8.js";
@@ -1,4 +1,4 @@
1
1
  import { n as CodeBlockLine_default, r as CodeBlock_default, t as CodeBlockContent_default } from "../../CodeBlockContent-BjXJm8lO.js";
2
- import { i as CodeBlockActions_default, n as CodeBlockHeader_default, r as CodeBlockCopyButton_default, t as CodeBlockTitle_default } from "../../CodeBlockTitle-DYrYpc1U.js";
2
+ import { i as CodeBlockActions_default, n as CodeBlockHeader_default, r as CodeBlockCopyButton_default, t as CodeBlockTitle_default } from "../../CodeBlockTitle-DX13mCTi.js";
3
3
  import { t as CodeBlockFooter_default } from "../../code-block-CMERLfew.js";
4
4
  export { CodeBlock_default as CodeBlock, CodeBlockActions_default as CodeBlockActions, CodeBlockContent_default as CodeBlockContent, CodeBlockCopyButton_default as CodeBlockCopyButton, CodeBlockFooter_default as CodeBlockFooter, CodeBlockHeader_default as CodeBlockHeader, CodeBlockLine_default as CodeBlockLine, CodeBlockTitle_default as CodeBlockTitle };