silvery 0.19.2 → 0.21.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 (218) hide show
  1. package/README.md +9 -4
  2. package/dist/Text-Lq0dmj8-.mjs +239 -0
  3. package/dist/Text-Lq0dmj8-.mjs.map +1 -0
  4. package/dist/UPNG-Bo33r8rA.mjs +3 -0
  5. package/dist/UPNG-DosRPdF4.mjs +5075 -0
  6. package/dist/UPNG-DosRPdF4.mjs.map +1 -0
  7. package/dist/__vite-browser-external-2447137e-D_JM6skp.mjs +6 -0
  8. package/dist/__vite-browser-external-2447137e-D_JM6skp.mjs.map +1 -0
  9. package/dist/{animation-Cn64yepo.mjs → animation-ZMN2_XKv.mjs} +2 -2
  10. package/dist/animation-ZMN2_XKv.mjs.map +1 -0
  11. package/dist/{ansi-Cc33mW54.d.mts → ansi-2Xn0yatP.d.mts} +1 -1
  12. package/dist/{ansi-Cc33mW54.d.mts.map → ansi-2Xn0yatP.d.mts.map} +1 -1
  13. package/dist/{ansi-CLOitHKx.mjs → ansi-D1KQMAbf.mjs} +1 -1
  14. package/dist/{ansi-CLOitHKx.mjs.map → ansi-D1KQMAbf.mjs.map} +1 -1
  15. package/dist/ansi-yC4RyBNY.mjs +22441 -0
  16. package/dist/ansi-yC4RyBNY.mjs.map +1 -0
  17. package/dist/apng-CR08rIaH.mjs +58 -0
  18. package/dist/apng-CR08rIaH.mjs.map +1 -0
  19. package/dist/apng-DaHfVaVI.mjs +3 -0
  20. package/dist/assets/resvgjs.darwin-arm64-BtufyGW1.node +0 -0
  21. package/dist/assets/skia.darwin-arm64-DQs5sT6N.node +0 -0
  22. package/dist/backend-B-WYLUib.mjs +13396 -0
  23. package/dist/backend-B-WYLUib.mjs.map +1 -0
  24. package/dist/backends-CUtan80W.mjs +3 -0
  25. package/dist/backends-DIVYzKqd.mjs +1083 -0
  26. package/dist/backends-DIVYzKqd.mjs.map +1 -0
  27. package/dist/bound-term-0sPrrzH1.d.mts +4640 -0
  28. package/dist/bound-term-0sPrrzH1.d.mts.map +1 -0
  29. package/dist/canvas-1v7dPT-_.mjs +3 -0
  30. package/dist/canvas-CSuPOMNt.mjs +1442 -0
  31. package/dist/canvas-CSuPOMNt.mjs.map +1 -0
  32. package/dist/{chunk-Vs_PY4HZ.mjs → chunk-BSw8zbkd.mjs} +1 -1
  33. package/dist/cli-dvo0r2fs.mjs +4 -0
  34. package/dist/compare-CQodSH4G.mjs +376 -0
  35. package/dist/compare-CQodSH4G.mjs.map +1 -0
  36. package/dist/compare-DHlcxEYA.mjs +3 -0
  37. package/dist/context-BU5LkkIy.mjs.map +1 -1
  38. package/dist/devtools-CJdt5H0X.mjs +2 -0
  39. package/dist/{devtools-DxkSLXDA.mjs → devtools-DcQjgyjL.mjs} +5 -4
  40. package/dist/{devtools-DxkSLXDA.mjs.map → devtools-DcQjgyjL.mjs.map} +1 -1
  41. package/dist/easing-BI-ASGMO.d.mts +24 -0
  42. package/dist/easing-BI-ASGMO.d.mts.map +1 -0
  43. package/dist/{eta-Bb3RH3wh.mjs → eta-CJlGH06n.mjs} +1 -1
  44. package/dist/{eta-Bb3RH3wh.mjs.map → eta-CJlGH06n.mjs.map} +1 -1
  45. package/dist/flexily-zero-adapter-C3Vj0fPt.mjs +306 -0
  46. package/dist/flexily-zero-adapter-C3Vj0fPt.mjs.map +1 -0
  47. package/dist/{flexily-zero-adapter-CMxXhdOL.mjs → flexily-zero-adapter-C4lW_Ov5.mjs} +1 -1
  48. package/dist/fonts-BFmhXDv7.mjs +88 -0
  49. package/dist/fonts-BFmhXDv7.mjs.map +1 -0
  50. package/dist/gif-C_AjaT9d.mjs +188 -0
  51. package/dist/gif-C_AjaT9d.mjs.map +1 -0
  52. package/dist/gif-DaC4XrxA.mjs +3 -0
  53. package/dist/gifenc-BOUT-KFB.mjs +730 -0
  54. package/dist/gifenc-BOUT-KFB.mjs.map +1 -0
  55. package/dist/image-C2Birh2x.mjs +1252 -0
  56. package/dist/image-C2Birh2x.mjs.map +1 -0
  57. package/dist/index-BUMxS65f.d.mts +453 -0
  58. package/dist/index-BUMxS65f.d.mts.map +1 -0
  59. package/dist/{index-D3saHouR.d.mts → index-CSQf13CI.d.mts} +1057 -1133
  60. package/dist/index-CSQf13CI.d.mts.map +1 -0
  61. package/dist/{index-BXslOebb.d.mts → index-Cl9KKjQ_.d.mts} +4919 -3921
  62. package/dist/index-Cl9KKjQ_.d.mts.map +1 -0
  63. package/dist/index-XbNrPhWl.d.mts +336 -0
  64. package/dist/index-XbNrPhWl.d.mts.map +1 -0
  65. package/dist/index.d.mts +8 -5
  66. package/dist/index.d.mts.map +1 -1
  67. package/dist/index.mjs +14 -12
  68. package/dist/index.mjs.map +1 -1
  69. package/dist/key-mapping-CS-YD_cD.mjs +132 -0
  70. package/dist/key-mapping-CS-YD_cD.mjs.map +1 -0
  71. package/dist/key-mapping-Yn-Jgrij.mjs +3 -0
  72. package/dist/{layout-engine-B6Cdz1yZ.mjs → layout-engine-C07LEXWT.mjs} +1 -1
  73. package/dist/layout-engine-C2px0RJE.mjs +67 -0
  74. package/dist/layout-engine-C2px0RJE.mjs.map +1 -0
  75. package/dist/layout-signals-Cnw6xk8Q.mjs +988 -0
  76. package/dist/layout-signals-Cnw6xk8Q.mjs.map +1 -0
  77. package/dist/mouse-events-Dki3ISIp.mjs +1044 -0
  78. package/dist/mouse-events-Dki3ISIp.mjs.map +1 -0
  79. package/dist/{multi-progress-Bq9Oi_WI.mjs → multi-progress-CIRjrzma.mjs} +3 -3
  80. package/dist/{multi-progress-Bq9Oi_WI.mjs.map → multi-progress-CIRjrzma.mjs.map} +1 -1
  81. package/dist/{multi-progress-DAQC7eap.d.mts → multi-progress-DHZ2xUT2.d.mts} +2 -2
  82. package/dist/{multi-progress-DAQC7eap.d.mts.map → multi-progress-DHZ2xUT2.d.mts.map} +1 -1
  83. package/dist/{node-BeWlnCPY.mjs → node-CjM5Rt-M.mjs} +4 -4
  84. package/dist/node-CjM5Rt-M.mjs.map +1 -0
  85. package/dist/playwright-D5YiZcNS.mjs +76397 -0
  86. package/dist/playwright-D5YiZcNS.mjs.map +1 -0
  87. package/dist/png-codec-Dp84742B.mjs +36 -0
  88. package/dist/png-codec-Dp84742B.mjs.map +1 -0
  89. package/dist/png-codec-QwOtJ8Zs.mjs +3 -0
  90. package/dist/progress-DB_Xo071.mjs +675 -0
  91. package/dist/progress-DB_Xo071.mjs.map +1 -0
  92. package/dist/{progress-bar-CXE5Qfkd.mjs → progress-bar-oJwq22CR.mjs} +4 -4
  93. package/dist/{progress-bar-CXE5Qfkd.mjs.map → progress-bar-oJwq22CR.mjs.map} +1 -1
  94. package/dist/rasterizer-BRXrDdWx.mjs +3 -0
  95. package/dist/rasterizer-CpEhJvdR.mjs +296 -0
  96. package/dist/rasterizer-CpEhJvdR.mjs.map +1 -0
  97. package/dist/reconciler-DldIJB93.mjs +2083 -0
  98. package/dist/reconciler-DldIJB93.mjs.map +1 -0
  99. package/dist/{render-string-CDCeYkS3.mjs → render-string-BcoCpjCB.mjs} +1 -1
  100. package/dist/{render-string-Darrg7ku.mjs → render-string-DkQacASz.mjs} +2707 -549
  101. package/dist/render-string-DkQacASz.mjs.map +1 -0
  102. package/dist/resvg-js-DkOndZI3.mjs +203 -0
  103. package/dist/resvg-js-DkOndZI3.mjs.map +1 -0
  104. package/dist/runtime.d.mts +3 -2
  105. package/dist/runtime.mjs +3 -3
  106. package/dist/schemes-JjNp4aSl.mjs +2611 -0
  107. package/dist/schemes-JjNp4aSl.mjs.map +1 -0
  108. package/dist/{spinner-CGo34vyR.d.mts → spinner-CZINHpkV.d.mts} +2 -2
  109. package/dist/{spinner-CGo34vyR.d.mts.map → spinner-CZINHpkV.d.mts.map} +1 -1
  110. package/dist/{spinner-CeOmcuw_.mjs → spinner-D9lrHr8s.mjs} +7 -7
  111. package/dist/spinner-D9lrHr8s.mjs.map +1 -0
  112. package/dist/src-5w9QR6_8.mjs +1071 -0
  113. package/dist/src-5w9QR6_8.mjs.map +1 -0
  114. package/dist/src-BNTToU7l.mjs +4387 -0
  115. package/dist/src-BNTToU7l.mjs.map +1 -0
  116. package/dist/{src-CF-6UN01.mjs → src-BR4xNwdG.mjs} +10436 -2622
  117. package/dist/src-BR4xNwdG.mjs.map +1 -0
  118. package/dist/{types-Bk2yw9Qj.mjs → src-DKp-_OFG.mjs} +34 -94
  119. package/dist/src-DKp-_OFG.mjs.map +1 -0
  120. package/dist/src-bt8wSrfJ.mjs +258 -0
  121. package/dist/src-bt8wSrfJ.mjs.map +1 -0
  122. package/dist/src-e33Y6kNJ.mjs +3 -0
  123. package/dist/src-iDwu25UD.mjs +1814 -0
  124. package/dist/src-iDwu25UD.mjs.map +1 -0
  125. package/dist/steps-Bp2uNqnn.d.mts +202 -0
  126. package/dist/steps-Bp2uNqnn.d.mts.map +1 -0
  127. package/dist/svg-15lZZzxq.mjs +486 -0
  128. package/dist/svg-15lZZzxq.mjs.map +1 -0
  129. package/dist/svg-Cz0UXcDj.mjs +255 -0
  130. package/dist/svg-Cz0UXcDj.mjs.map +1 -0
  131. package/dist/svg-DY72a4HK.mjs +3 -0
  132. package/dist/svg-g1D6ErwR.d.mts +82 -0
  133. package/dist/svg-g1D6ErwR.d.mts.map +1 -0
  134. package/dist/term.d.mts +3 -0
  135. package/dist/term.mjs +9 -0
  136. package/dist/term.mjs.map +1 -0
  137. package/dist/theme.d.mts +95 -2
  138. package/dist/theme.d.mts.map +1 -0
  139. package/dist/theme.mjs +9 -3
  140. package/dist/theme.mjs.map +1 -0
  141. package/dist/{types-BH_v3iMT.d.mts → types-kt_fKR37.d.mts} +2 -15
  142. package/dist/types-kt_fKR37.d.mts.map +1 -0
  143. package/dist/ui/animation.d.mts +2 -1
  144. package/dist/ui/animation.mjs +1 -1
  145. package/dist/ui/ansi.d.mts +1 -1
  146. package/dist/ui/ansi.mjs +1 -1
  147. package/dist/ui/cli.d.mts +3 -3
  148. package/dist/ui/cli.mjs +5 -5
  149. package/dist/ui/display.d.mts +1 -1
  150. package/dist/ui/image.d.mts +2 -2
  151. package/dist/ui/image.mjs +2 -2
  152. package/dist/ui/input.d.mts +1 -1
  153. package/dist/ui/input.mjs +4 -2
  154. package/dist/ui/input.mjs.map +1 -1
  155. package/dist/ui/progress.d.mts +5 -249
  156. package/dist/ui/progress.mjs +5 -858
  157. package/dist/ui/react.d.mts +1 -1
  158. package/dist/ui/react.mjs +2 -2
  159. package/dist/ui/recording-chrome-react.d.mts +21 -0
  160. package/dist/ui/recording-chrome-react.d.mts.map +1 -0
  161. package/dist/ui/recording-chrome-react.mjs +105 -0
  162. package/dist/ui/recording-chrome-react.mjs.map +1 -0
  163. package/dist/ui/recording-chrome.d.mts +2 -0
  164. package/dist/ui/recording-chrome.mjs +2 -0
  165. package/dist/ui/utils.mjs +1 -1
  166. package/dist/ui/wrappers.d.mts +3 -3
  167. package/dist/ui/wrappers.mjs +2 -2
  168. package/dist/ui.d.mts +7 -6
  169. package/dist/ui.mjs +8 -7
  170. package/dist/{useLatest-Bg2x4bfP.d.mts → useLatest-DRDDVwjh.d.mts} +5 -25
  171. package/dist/useLatest-DRDDVwjh.d.mts.map +1 -0
  172. package/dist/{with-text-input-CRfoiFFG.d.mts → with-text-input-YeohVLeo.d.mts} +4 -55
  173. package/dist/with-text-input-YeohVLeo.d.mts.map +1 -0
  174. package/dist/wrapper-C70ATkVv.mjs +3527 -0
  175. package/dist/wrapper-C70ATkVv.mjs.map +1 -0
  176. package/dist/{wrappers-UTADQkSY.mjs → wrappers-BCUYITrY.mjs} +5 -157
  177. package/dist/wrappers-BCUYITrY.mjs.map +1 -0
  178. package/dist/{yoga-adapter-8oRGRw8V.mjs → yoga-adapter-BnZX1PAY.mjs} +28 -2
  179. package/dist/yoga-adapter-BnZX1PAY.mjs.map +1 -0
  180. package/dist/yoga-adapter-DxgsQ_gg.mjs +2 -0
  181. package/dist/zipBundle-3nqeDRtm.mjs +3 -0
  182. package/dist/zipBundle-VNAYFmqJ.mjs +2003 -0
  183. package/dist/zipBundle-VNAYFmqJ.mjs.map +1 -0
  184. package/package.json +20 -9
  185. package/dist/animation-Cn64yepo.mjs.map +0 -1
  186. package/dist/cli-BKp0YtBD.mjs +0 -4
  187. package/dist/devtools-9QY4teqI.mjs +0 -2
  188. package/dist/flexily-zero-adapter-BlQa46nr.mjs +0 -3385
  189. package/dist/flexily-zero-adapter-BlQa46nr.mjs.map +0 -1
  190. package/dist/image-CTII5QWI.mjs +0 -477
  191. package/dist/image-CTII5QWI.mjs.map +0 -1
  192. package/dist/index-BXslOebb.d.mts.map +0 -1
  193. package/dist/index-BnA7mNpo.d.mts +0 -175
  194. package/dist/index-BnA7mNpo.d.mts.map +0 -1
  195. package/dist/index-D3saHouR.d.mts.map +0 -1
  196. package/dist/layout-engine-ClUgv6jB.mjs +0 -50
  197. package/dist/layout-engine-ClUgv6jB.mjs.map +0 -1
  198. package/dist/node-BeWlnCPY.mjs.map +0 -1
  199. package/dist/reconciler-Cwgm8hRR.mjs +0 -8459
  200. package/dist/reconciler-Cwgm8hRR.mjs.map +0 -1
  201. package/dist/render-string-Darrg7ku.mjs.map +0 -1
  202. package/dist/spinner-CeOmcuw_.mjs.map +0 -1
  203. package/dist/src-B5GjfG7g.mjs +0 -4305
  204. package/dist/src-B5GjfG7g.mjs.map +0 -1
  205. package/dist/src-CChwjk0Z.mjs +0 -738
  206. package/dist/src-CChwjk0Z.mjs.map +0 -1
  207. package/dist/src-CF-6UN01.mjs.map +0 -1
  208. package/dist/src-NCKb8kE5.mjs +0 -2660
  209. package/dist/src-NCKb8kE5.mjs.map +0 -1
  210. package/dist/types-BH_v3iMT.d.mts.map +0 -1
  211. package/dist/types-Bk2yw9Qj.mjs.map +0 -1
  212. package/dist/ui/progress.d.mts.map +0 -1
  213. package/dist/ui/progress.mjs.map +0 -1
  214. package/dist/useLatest-Bg2x4bfP.d.mts.map +0 -1
  215. package/dist/with-text-input-CRfoiFFG.d.mts.map +0 -1
  216. package/dist/wrappers-UTADQkSY.mjs.map +0 -1
  217. package/dist/yoga-adapter-8oRGRw8V.mjs.map +0 -1
  218. package/dist/yoga-adapter-D_CcxSt5.mjs +0 -2
@@ -1,4 +1,4 @@
1
- import { g as TaskStatus, l as SpinnerProps, m as TaskProps, n as ProgressBarProps, u as SpinnerStyle } from "../types-BH_v3iMT.mjs";
1
+ import { g as TaskStatus, l as SpinnerProps, m as TaskProps, n as ProgressBarProps, u as SpinnerStyle } from "../types-kt_fKR37.mjs";
2
2
  import React from "react";
3
3
 
4
4
  //#region packages/ag-react/src/ui/react/Spinner.d.ts
package/dist/ui/react.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { n as SPINNER_INTERVALS, t as SPINNER_FRAMES } from "../spinner-CeOmcuw_.mjs";
2
- import { a as getETA } from "../eta-Bb3RH3wh.mjs";
1
+ import { n as SPINNER_INTERVALS, t as SPINNER_FRAMES } from "../spinner-D9lrHr8s.mjs";
2
+ import { a as getETA } from "../eta-CJlGH06n.mjs";
3
3
  import React, { createContext, useCallback, useContext, useEffect, useRef, useState } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region packages/ag-react/src/ui/react/Spinner.tsx
@@ -0,0 +1,21 @@
1
+ import { a as RecordingChromeAlignment, d as RecordingChromeSpec, f as RecordingChromeStyle } from "../svg-g1D6ErwR.mjs";
2
+ import React from "react";
3
+
4
+ //#region packages/ag-react/src/ui/recording-chrome/RecordingChrome.d.ts
5
+ interface RecordingChromeStatus {
6
+ elapsed: string;
7
+ blinkOn?: boolean;
8
+ stopHint?: string;
9
+ }
10
+ interface RecordingChromeProps {
11
+ chrome?: RecordingChromeStyle;
12
+ spec?: RecordingChromeSpec;
13
+ alignment?: RecordingChromeAlignment;
14
+ title?: string;
15
+ status?: RecordingChromeStatus | false;
16
+ children: React.ReactNode;
17
+ }
18
+ declare function RecordingChrome(props: RecordingChromeProps): React.ReactElement;
19
+ //#endregion
20
+ export { RecordingChrome as unstable_RecordingChrome, type RecordingChromeProps as unstable_RecordingChromeProps, type RecordingChromeStatus as unstable_RecordingChromeStatus };
21
+ //# sourceMappingURL=recording-chrome-react.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recording-chrome-react.d.mts","names":[],"sources":["../../packages/ag-react/src/ui/recording-chrome/RecordingChrome.tsx"],"mappings":";;;;UAUiB,qBAAA;EACf,OAAA;EACA,OAAA;EACA,QAAA;AAAA;AAAA,UAGe,oBAAA;EACf,MAAA,GAAS,oBAAA;EACT,IAAA,GAAO,mBAAA;EACP,SAAA,GAAY,wBAAA;EACZ,KAAA;EACA,MAAA,GAAS,qBAAA;EACT,QAAA,EAAU,KAAA,CAAM,SAAA;AAAA;AAAA,iBAsDF,eAAA,CAAgB,KAAA,EAAO,oBAAA,GAAuB,KAAA,CAAM,YAAA"}
@@ -0,0 +1,105 @@
1
+ import { a as Box, t as Text } from "../Text-Lq0dmj8-.mjs";
2
+ import { r as composeRecordingChromeSpec } from "../svg-Cz0UXcDj.mjs";
3
+ import React from "react";
4
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
+ //#region packages/ag-react/src/ui/recording-chrome/RecordingChrome.tsx
6
+ function StatusLine(props) {
7
+ const { elapsed, blinkOn = true, stopHint = "Ctrl+D to stop" } = props.status;
8
+ return /* @__PURE__ */ jsxs(Box, {
9
+ flexDirection: "row",
10
+ children: [
11
+ /* @__PURE__ */ jsx(Text, {
12
+ color: blinkOn ? "red" : void 0,
13
+ children: blinkOn ? "●" : " "
14
+ }),
15
+ /* @__PURE__ */ jsx(Text, { children: ` REC ${elapsed} ` }),
16
+ /* @__PURE__ */ jsx(Text, {
17
+ color: "$fg-muted",
18
+ children: `· ${stopHint}`
19
+ })
20
+ ]
21
+ });
22
+ }
23
+ function TitleBar(props) {
24
+ const { spec } = props;
25
+ const titleBar = spec.live.titleBar;
26
+ if (titleBar === null) return null;
27
+ if (titleBar.controlsSide === "right") return /* @__PURE__ */ jsxs(Box, {
28
+ flexDirection: "row",
29
+ paddingX: 1,
30
+ children: [
31
+ /* @__PURE__ */ jsx(Text, {
32
+ bold: true,
33
+ children: spec.title
34
+ }),
35
+ /* @__PURE__ */ jsx(Box, { flexGrow: 1 }),
36
+ titleBar.controls.map((control, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [index > 0 && /* @__PURE__ */ jsx(Text, { children: " " }), /* @__PURE__ */ jsx(Text, {
37
+ color: control.color,
38
+ children: control.glyph
39
+ })] }, `${control.glyph}-${index}`))
40
+ ]
41
+ });
42
+ return /* @__PURE__ */ jsxs(Box, {
43
+ flexDirection: "row",
44
+ paddingX: 1,
45
+ children: [
46
+ titleBar.controls.map((control, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [index > 0 && /* @__PURE__ */ jsx(Text, { children: " " }), /* @__PURE__ */ jsx(Text, {
47
+ color: control.color,
48
+ children: control.glyph
49
+ })] }, `${control.glyph}-${index}`)),
50
+ titleBar.separator && /* @__PURE__ */ jsxs(Fragment, { children: [
51
+ /* @__PURE__ */ jsx(Text, { children: " " }),
52
+ /* @__PURE__ */ jsx(Text, {
53
+ color: "$fg-muted",
54
+ children: titleBar.separator
55
+ }),
56
+ /* @__PURE__ */ jsx(Text, { children: " " })
57
+ ] }),
58
+ /* @__PURE__ */ jsx(Text, {
59
+ bold: true,
60
+ children: spec.title
61
+ })
62
+ ]
63
+ });
64
+ }
65
+ function RecordingChrome(props) {
66
+ const spec = props.spec ?? composeRecordingChromeSpec({
67
+ style: props.chrome,
68
+ title: props.title,
69
+ alignment: props.alignment
70
+ });
71
+ const alignItems = spec.alignment === "left" ? "flex-start" : "center";
72
+ const status = props.status === false ? null : /* @__PURE__ */ jsx(StatusLine, { status: props.status ?? { elapsed: "0:00" } });
73
+ const rootProps = {
74
+ flexDirection: "column",
75
+ justifyContent: "center",
76
+ alignItems,
77
+ width: "100%",
78
+ height: "100%",
79
+ backgroundColor: "$bg"
80
+ };
81
+ if (spec.live.borderStyle === "none") return /* @__PURE__ */ jsxs(Box, {
82
+ ...rootProps,
83
+ children: [
84
+ status,
85
+ status && /* @__PURE__ */ jsx(Box, {}),
86
+ props.children
87
+ ]
88
+ });
89
+ return /* @__PURE__ */ jsxs(Box, {
90
+ ...rootProps,
91
+ children: [
92
+ status,
93
+ status && /* @__PURE__ */ jsx(Box, {}),
94
+ /* @__PURE__ */ jsxs(Box, {
95
+ borderStyle: spec.live.borderStyle,
96
+ flexDirection: "column",
97
+ children: [/* @__PURE__ */ jsx(TitleBar, { spec }), props.children]
98
+ })
99
+ ]
100
+ });
101
+ }
102
+ //#endregion
103
+ export { RecordingChrome as unstable_RecordingChrome };
104
+
105
+ //# sourceMappingURL=recording-chrome-react.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recording-chrome-react.mjs","names":[],"sources":["../../packages/ag-react/src/ui/recording-chrome/RecordingChrome.tsx"],"sourcesContent":["import React from \"react\"\nimport { Box } from \"../../components/Box\"\nimport { Text } from \"../../components/Text\"\nimport {\n composeRecordingChromeSpec,\n type RecordingChromeAlignment,\n type RecordingChromeSpec,\n type RecordingChromeStyle,\n} from \"./spec\"\n\nexport interface RecordingChromeStatus {\n elapsed: string\n blinkOn?: boolean\n stopHint?: string\n}\n\nexport interface RecordingChromeProps {\n chrome?: RecordingChromeStyle\n spec?: RecordingChromeSpec\n alignment?: RecordingChromeAlignment\n title?: string\n status?: RecordingChromeStatus | false\n children: React.ReactNode\n}\n\nfunction StatusLine(props: { status: RecordingChromeStatus }): React.ReactElement {\n const { elapsed, blinkOn = true, stopHint = \"Ctrl+D to stop\" } = props.status\n return (\n <Box flexDirection=\"row\">\n <Text color={blinkOn ? \"red\" : undefined}>{blinkOn ? \"●\" : \" \"}</Text>\n <Text>{` REC ${elapsed} `}</Text>\n <Text color=\"$fg-muted\">{`· ${stopHint}`}</Text>\n </Box>\n )\n}\n\nfunction TitleBar(props: { spec: RecordingChromeSpec }): React.ReactElement | null {\n const { spec } = props\n const titleBar = spec.live.titleBar\n if (titleBar === null) return null\n\n if (titleBar.controlsSide === \"right\") {\n return (\n <Box flexDirection=\"row\" paddingX={1}>\n <Text bold>{spec.title}</Text>\n <Box flexGrow={1} />\n {titleBar.controls.map((control, index) => (\n <React.Fragment key={`${control.glyph}-${index}`}>\n {index > 0 && <Text>{\" \"}</Text>}\n <Text color={control.color}>{control.glyph}</Text>\n </React.Fragment>\n ))}\n </Box>\n )\n }\n\n return (\n <Box flexDirection=\"row\" paddingX={1}>\n {titleBar.controls.map((control, index) => (\n <React.Fragment key={`${control.glyph}-${index}`}>\n {index > 0 && <Text> </Text>}\n <Text color={control.color}>{control.glyph}</Text>\n </React.Fragment>\n ))}\n {titleBar.separator && (\n <>\n <Text>{\" \"}</Text>\n <Text color=\"$fg-muted\">{titleBar.separator}</Text>\n <Text>{\" \"}</Text>\n </>\n )}\n <Text bold>{spec.title}</Text>\n </Box>\n )\n}\n\nexport function RecordingChrome(props: RecordingChromeProps): React.ReactElement {\n const spec =\n props.spec ??\n composeRecordingChromeSpec({\n style: props.chrome,\n title: props.title,\n alignment: props.alignment,\n })\n\n const alignItems = spec.alignment === \"left\" ? (\"flex-start\" as const) : (\"center\" as const)\n const status =\n props.status === false ? null : <StatusLine status={props.status ?? { elapsed: \"0:00\" }} />\n\n const rootProps = {\n flexDirection: \"column\" as const,\n justifyContent: \"center\" as const,\n alignItems,\n width: \"100%\" as const,\n height: \"100%\" as const,\n backgroundColor: \"$bg\",\n }\n\n if (spec.live.borderStyle === \"none\") {\n return (\n <Box {...rootProps}>\n {status}\n {status && <Box />}\n {props.children}\n </Box>\n )\n }\n\n return (\n <Box {...rootProps}>\n {status}\n {status && <Box />}\n <Box borderStyle={spec.live.borderStyle} flexDirection=\"column\">\n <TitleBar spec={spec} />\n {props.children}\n </Box>\n </Box>\n )\n}\n"],"mappings":";;;;;AAyBA,SAAS,WAAW,OAA8D;CAChF,MAAM,EAAE,SAAS,UAAU,MAAM,WAAW,qBAAqB,MAAM;AACvE,QACE,qBAAC,KAAD;EAAK,eAAc;YAAnB;GACE,oBAAC,MAAD;IAAM,OAAO,UAAU,QAAQ,KAAA;cAAY,UAAU,MAAM;IAAW,CAAA;GACtE,oBAAC,MAAD,EAAA,UAAO,QAAQ,QAAQ,KAAW,CAAA;GAClC,oBAAC,MAAD;IAAM,OAAM;cAAa,KAAK;IAAkB,CAAA;GAC5C;;;AAIV,SAAS,SAAS,OAAiE;CACjF,MAAM,EAAE,SAAS;CACjB,MAAM,WAAW,KAAK,KAAK;AAC3B,KAAI,aAAa,KAAM,QAAO;AAE9B,KAAI,SAAS,iBAAiB,QAC5B,QACE,qBAAC,KAAD;EAAK,eAAc;EAAM,UAAU;YAAnC;GACE,oBAAC,MAAD;IAAM,MAAA;cAAM,KAAK;IAAa,CAAA;GAC9B,oBAAC,KAAD,EAAK,UAAU,GAAK,CAAA;GACnB,SAAS,SAAS,KAAK,SAAS,UAC/B,qBAAC,MAAM,UAAP,EAAA,UAAA,CACG,QAAQ,KAAK,oBAAC,MAAD,EAAA,UAAO,MAAY,CAAA,EACjC,oBAAC,MAAD;IAAM,OAAO,QAAQ;cAAQ,QAAQ;IAAa,CAAA,CACnC,EAAA,EAHI,GAAG,QAAQ,MAAM,GAAG,QAGxB,CACjB;GACE;;AAIV,QACE,qBAAC,KAAD;EAAK,eAAc;EAAM,UAAU;YAAnC;GACG,SAAS,SAAS,KAAK,SAAS,UAC/B,qBAAC,MAAM,UAAP,EAAA,UAAA,CACG,QAAQ,KAAK,oBAAC,MAAD,EAAA,UAAM,KAAQ,CAAA,EAC5B,oBAAC,MAAD;IAAM,OAAO,QAAQ;cAAQ,QAAQ;IAAa,CAAA,CACnC,EAAA,EAHI,GAAG,QAAQ,MAAM,GAAG,QAGxB,CACjB;GACD,SAAS,aACR,qBAAA,UAAA,EAAA,UAAA;IACE,oBAAC,MAAD,EAAA,UAAO,MAAY,CAAA;IACnB,oBAAC,MAAD;KAAM,OAAM;eAAa,SAAS;KAAiB,CAAA;IACnD,oBAAC,MAAD,EAAA,UAAO,MAAY,CAAA;IAClB,EAAA,CAAA;GAEL,oBAAC,MAAD;IAAM,MAAA;cAAM,KAAK;IAAa,CAAA;GAC1B;;;AAIV,SAAgB,gBAAgB,OAAiD;CAC/E,MAAM,OACJ,MAAM,QACN,2BAA2B;EACzB,OAAO,MAAM;EACb,OAAO,MAAM;EACb,WAAW,MAAM;EAClB,CAAC;CAEJ,MAAM,aAAa,KAAK,cAAc,SAAU,eAA0B;CAC1E,MAAM,SACJ,MAAM,WAAW,QAAQ,OAAO,oBAAC,YAAD,EAAY,QAAQ,MAAM,UAAU,EAAE,SAAS,QAAQ,EAAI,CAAA;CAE7F,MAAM,YAAY;EAChB,eAAe;EACf,gBAAgB;EAChB;EACA,OAAO;EACP,QAAQ;EACR,iBAAiB;EAClB;AAED,KAAI,KAAK,KAAK,gBAAgB,OAC5B,QACE,qBAAC,KAAD;EAAK,GAAI;YAAT;GACG;GACA,UAAU,oBAAC,KAAD,EAAO,CAAA;GACjB,MAAM;GACH;;AAIV,QACE,qBAAC,KAAD;EAAK,GAAI;YAAT;GACG;GACA,UAAU,oBAAC,KAAD,EAAO,CAAA;GAClB,qBAAC,KAAD;IAAK,aAAa,KAAK,KAAK;IAAa,eAAc;cAAvD,CACE,oBAAC,UAAD,EAAgB,MAAQ,CAAA,EACvB,MAAM,SACH;;GACF"}
@@ -0,0 +1,2 @@
1
+ import { _ as composeRecordingChromeSpec, a as RecordingChromeAlignment, b as recordingChromeSvgContentOffset, c as RecordingChromeControlSide, d as RecordingChromeSpec, f as RecordingChromeStyle, g as RecordingChromeTitleBarSpec, h as RecordingChromeSvgWindowBar, i as RECORDING_CHROME_STYLES, l as RecordingChromeLiveSpec, m as RecordingChromeSvgOptions, n as composeRecordingChromeSvg, o as RecordingChromeBorderStyle, p as RecordingChromeSvgLayout, r as ComposeRecordingChromeSpecOptions, s as RecordingChromeControl, t as ComposeRecordingChromeSvgOptions, u as RecordingChromeOverhead, v as recordingChromeOverhead, x as recordingChromeSvgLayout, y as recordingChromeSpecToSvgOptions } from "../svg-g1D6ErwR.mjs";
2
+ export { type ComposeRecordingChromeSpecOptions as unstable_ComposeRecordingChromeSpecOptions, type ComposeRecordingChromeSvgOptions as unstable_ComposeRecordingChromeSvgOptions, RECORDING_CHROME_STYLES as unstable_RECORDING_CHROME_STYLES, type RecordingChromeAlignment as unstable_RecordingChromeAlignment, type RecordingChromeBorderStyle as unstable_RecordingChromeBorderStyle, type RecordingChromeControl as unstable_RecordingChromeControl, type RecordingChromeControlSide as unstable_RecordingChromeControlSide, type RecordingChromeLiveSpec as unstable_RecordingChromeLiveSpec, type RecordingChromeOverhead as unstable_RecordingChromeOverhead, type RecordingChromeSpec as unstable_RecordingChromeSpec, type RecordingChromeStyle as unstable_RecordingChromeStyle, type RecordingChromeSvgLayout as unstable_RecordingChromeSvgLayout, type RecordingChromeSvgOptions as unstable_RecordingChromeSvgOptions, type RecordingChromeSvgWindowBar as unstable_RecordingChromeSvgWindowBar, type RecordingChromeTitleBarSpec as unstable_RecordingChromeTitleBarSpec, composeRecordingChromeSpec as unstable_composeRecordingChromeSpec, composeRecordingChromeSvg as unstable_composeRecordingChromeSvg, recordingChromeOverhead as unstable_recordingChromeOverhead, recordingChromeSpecToSvgOptions as unstable_recordingChromeSpecToSvgOptions, recordingChromeSvgContentOffset as unstable_recordingChromeSvgContentOffset, recordingChromeSvgLayout as unstable_recordingChromeSvgLayout };
@@ -0,0 +1,2 @@
1
+ import { a as recordingChromeSpecToSvgOptions, i as recordingChromeOverhead, n as RECORDING_CHROME_STYLES, o as recordingChromeSvgContentOffset, r as composeRecordingChromeSpec, s as recordingChromeSvgLayout, t as composeRecordingChromeSvg } from "../svg-Cz0UXcDj.mjs";
2
+ export { RECORDING_CHROME_STYLES as unstable_RECORDING_CHROME_STYLES, composeRecordingChromeSpec as unstable_composeRecordingChromeSpec, composeRecordingChromeSvg as unstable_composeRecordingChromeSvg, recordingChromeOverhead as unstable_recordingChromeOverhead, recordingChromeSpecToSvgOptions as unstable_recordingChromeSpecToSvgOptions, recordingChromeSvgContentOffset as unstable_recordingChromeSvgContentOffset, recordingChromeSvgLayout as unstable_recordingChromeSvgLayout };
package/dist/ui/utils.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as getETA, i as formatETA, n as calculateETA, r as createETATracker, t as DEFAULT_ETA_BUFFER_SIZE } from "../eta-Bb3RH3wh.mjs";
1
+ import { a as getETA, i as formatETA, n as calculateETA, r as createETATracker, t as DEFAULT_ETA_BUFFER_SIZE } from "../eta-CJlGH06n.mjs";
2
2
  export { DEFAULT_ETA_BUFFER_SIZE, calculateETA, createETATracker, formatETA, getETA };
@@ -1,3 +1,3 @@
1
- import { _ as TextInputOptions, a as ProgressInfo, r as ProgressCallback } from "../types-BH_v3iMT.mjs";
2
- import { a as waitForEvent, c as wrapGenerator, d as attachSpinner, f as withSpinner, i as withSelect, l as createProgressCallback, n as withTextInput, o as wrapEmitter, r as createSelect, s as withIterableProgress, t as createTextInput, u as withProgress } from "../with-text-input-CRfoiFFG.mjs";
3
- export { ProgressCallback, ProgressInfo, TextInputOptions, attachSpinner, createProgressCallback, createSelect, createTextInput, waitForEvent, withIterableProgress, withProgress, withSelect, withSpinner, withTextInput, wrapEmitter, wrapGenerator };
1
+ import { _ as TextInputOptions, a as ProgressInfo, r as ProgressCallback } from "../types-kt_fKR37.mjs";
2
+ import { a as waitForEvent, c as wrapGenerator, i as withSelect, l as attachSpinner, n as withTextInput, o as wrapEmitter, r as createSelect, s as withIterableProgress, t as createTextInput, u as withSpinner } from "../with-text-input-YeohVLeo.mjs";
3
+ export { ProgressCallback, ProgressInfo, TextInputOptions, attachSpinner, createSelect, createTextInput, waitForEvent, withIterableProgress, withSelect, withSpinner, withTextInput, wrapEmitter, wrapGenerator };
@@ -1,2 +1,2 @@
1
- import { a as waitForEvent, c as wrapGenerator, d as attachSpinner, f as withSpinner, i as withSelect, l as createProgressCallback, n as withTextInput, o as wrapEmitter, r as createSelect, s as withIterableProgress, t as createTextInput, u as withProgress } from "../wrappers-UTADQkSY.mjs";
2
- export { attachSpinner, createProgressCallback, createSelect, createTextInput, waitForEvent, withIterableProgress, withProgress, withSelect, withSpinner, withTextInput, wrapEmitter, wrapGenerator };
1
+ import { a as waitForEvent, c as wrapGenerator, i as withSelect, l as attachSpinner, n as withTextInput, o as wrapEmitter, r as createSelect, s as withIterableProgress, t as createTextInput, u as withSpinner } from "../wrappers-BCUYITrY.mjs";
2
+ export { attachSpinner, createSelect, createTextInput, waitForEvent, withIterableProgress, withSelect, withSpinner, withTextInput, wrapEmitter, wrapGenerator };
package/dist/ui.d.mts CHANGED
@@ -1,6 +1,7 @@
1
- import { _ as TextInputOptions, a as ProgressInfo, b as WithSelectOptions, c as SpinnerOptions, d as StepProgress, f as TableColumn, g as TaskStatus, h as TaskState, i as ProgressGenerator, l as SpinnerProps, m as TaskProps, n as ProgressBarProps, o as SelectOption, p as TableProps, r as ProgressCallback, s as SelectProps, t as ProgressBarOptions, u as SpinnerStyle, v as TextInputProps, x as WithSpinnerOptions, y as WithProgressOptions } from "./types-BH_v3iMT.mjs";
2
- import { i as createSpinner, n as SPINNER_FRAMES, r as Spinner, t as CallableSpinner } from "./spinner-CGo34vyR.mjs";
3
- import { n as TaskHandle, r as ProgressBar, t as MultiProgress } from "./multi-progress-DAQC7eap.mjs";
4
- import { a as CURSOR_RESTORE, c as CURSOR_TO_START, d as getTerminalWidth, f as isTTY, h as writeLine, i as CURSOR_HIDE, l as cursorDown, m as write, n as CLEAR_LINE_END, o as CURSOR_SAVE, p as withCursor, r as CLEAR_SCREEN, s as CURSOR_SHOW, t as CLEAR_LINE, u as cursorUp } from "./ansi-Cc33mW54.mjs";
5
- import { a as waitForEvent, c as wrapGenerator, d as attachSpinner, f as withSpinner, i as withSelect, l as createProgressCallback, n as withTextInput, o as wrapEmitter, r as createSelect, s as withIterableProgress, t as createTextInput, u as withProgress } from "./with-text-input-CRfoiFFG.mjs";
6
- export { CLEAR_LINE, CLEAR_LINE_END, CLEAR_SCREEN, CURSOR_HIDE, CURSOR_RESTORE, CURSOR_SAVE, CURSOR_SHOW, CURSOR_TO_START, CallableSpinner, MultiProgress, ProgressBar, ProgressBarOptions, ProgressBarProps, ProgressCallback, ProgressGenerator, ProgressInfo, SPINNER_FRAMES, SelectOption, SelectProps, Spinner, SpinnerOptions, SpinnerProps, SpinnerStyle, StepProgress, TableColumn, TableProps, TaskHandle, TaskProps, TaskState, TaskStatus, TextInputOptions, TextInputProps, WithProgressOptions, WithSelectOptions, WithSpinnerOptions, attachSpinner, createProgressCallback, createSelect, createSpinner, createTextInput, cursorDown, cursorUp, getTerminalWidth, isTTY, waitForEvent, withCursor, withIterableProgress, withProgress, withSelect, withSpinner, withTextInput, wrapEmitter, wrapGenerator, write, writeLine };
1
+ import { _ as TextInputOptions, a as ProgressInfo, b as WithSpinnerOptions, c as SpinnerOptions, d as StepProgress, f as TableColumn, g as TaskStatus, h as TaskState, i as ProgressGenerator, l as SpinnerProps, m as TaskProps, n as ProgressBarProps, o as SelectOption, p as TableProps, r as ProgressCallback, s as SelectProps, t as ProgressBarOptions, u as SpinnerStyle, v as TextInputProps, y as WithSelectOptions } from "./types-kt_fKR37.mjs";
2
+ import { i as createSpinner, n as SPINNER_FRAMES, r as Spinner, t as CallableSpinner } from "./spinner-CZINHpkV.mjs";
3
+ import { n as TaskHandle, r as ProgressBar, t as MultiProgress } from "./multi-progress-DHZ2xUT2.mjs";
4
+ import { a as CURSOR_RESTORE, c as CURSOR_TO_START, d as getTerminalWidth, f as isTTY, h as writeLine, i as CURSOR_HIDE, l as cursorDown, m as write, n as CLEAR_LINE_END, o as CURSOR_SAVE, p as withCursor, r as CLEAR_SCREEN, s as CURSOR_SHOW, t as CLEAR_LINE, u as cursorUp } from "./ansi-2Xn0yatP.mjs";
5
+ import { a as waitForEvent, c as wrapGenerator, i as withSelect, l as attachSpinner, n as withTextInput, o as wrapEmitter, r as createSelect, s as withIterableProgress, t as createTextInput, u as withSpinner } from "./with-text-input-YeohVLeo.mjs";
6
+ import { a as StepContext, c as StepsDef, i as StepsRunner, n as StepBuilder, o as step, r as steps, s as StepNode, t as ExecuteOptions } from "./steps-Bp2uNqnn.mjs";
7
+ export { CLEAR_LINE, CLEAR_LINE_END, CLEAR_SCREEN, CURSOR_HIDE, CURSOR_RESTORE, CURSOR_SAVE, CURSOR_SHOW, CURSOR_TO_START, CallableSpinner, ExecuteOptions, MultiProgress, ProgressBar, ProgressBarOptions, ProgressBarProps, ProgressCallback, ProgressGenerator, ProgressInfo, SPINNER_FRAMES, SelectOption, SelectProps, Spinner, SpinnerOptions, SpinnerProps, SpinnerStyle, StepBuilder, StepContext, StepNode, StepProgress, StepsDef, StepsRunner, TableColumn, TableProps, TaskHandle, TaskProps, TaskState, TaskStatus, TextInputOptions, TextInputProps, WithSelectOptions, WithSpinnerOptions, attachSpinner, createSelect, createSpinner, createTextInput, cursorDown, cursorUp, getTerminalWidth, isTTY, step, steps, waitForEvent, withCursor, withIterableProgress, withSelect, withSpinner, withTextInput, wrapEmitter, wrapGenerator, write, writeLine };
package/dist/ui.mjs CHANGED
@@ -1,7 +1,8 @@
1
- import { i as createSpinner, r as Spinner, t as SPINNER_FRAMES } from "./spinner-CeOmcuw_.mjs";
2
- import { a as CURSOR_RESTORE, c as CURSOR_TO_START, d as getTerminalWidth, f as isTTY, h as writeLine, i as CURSOR_HIDE, l as cursorDown, m as write, n as CLEAR_LINE_END, o as CURSOR_SAVE, p as withCursor, r as CLEAR_SCREEN, s as CURSOR_SHOW, t as CLEAR_LINE, u as cursorUp } from "./ansi-CLOitHKx.mjs";
3
- import { t as ProgressBar } from "./progress-bar-CXE5Qfkd.mjs";
4
- import { t as MultiProgress } from "./multi-progress-Bq9Oi_WI.mjs";
5
- import "./cli-BKp0YtBD.mjs";
6
- import { a as waitForEvent, c as wrapGenerator, d as attachSpinner, f as withSpinner, i as withSelect, l as createProgressCallback, n as withTextInput, o as wrapEmitter, r as createSelect, s as withIterableProgress, t as createTextInput, u as withProgress } from "./wrappers-UTADQkSY.mjs";
7
- export { CLEAR_LINE, CLEAR_LINE_END, CLEAR_SCREEN, CURSOR_HIDE, CURSOR_RESTORE, CURSOR_SAVE, CURSOR_SHOW, CURSOR_TO_START, MultiProgress, ProgressBar, SPINNER_FRAMES, Spinner, attachSpinner, createProgressCallback, createSelect, createSpinner, createTextInput, cursorDown, cursorUp, getTerminalWidth, isTTY, waitForEvent, withCursor, withIterableProgress, withProgress, withSelect, withSpinner, withTextInput, wrapEmitter, wrapGenerator, write, writeLine };
1
+ import { i as createSpinner, r as Spinner, t as SPINNER_FRAMES } from "./spinner-D9lrHr8s.mjs";
2
+ import { a as CURSOR_RESTORE, c as CURSOR_TO_START, d as getTerminalWidth, f as isTTY, h as writeLine, i as CURSOR_HIDE, l as cursorDown, m as write, n as CLEAR_LINE_END, o as CURSOR_SAVE, p as withCursor, r as CLEAR_SCREEN, s as CURSOR_SHOW, t as CLEAR_LINE, u as cursorUp } from "./ansi-D1KQMAbf.mjs";
3
+ import { t as ProgressBar } from "./progress-bar-oJwq22CR.mjs";
4
+ import { t as MultiProgress } from "./multi-progress-CIRjrzma.mjs";
5
+ import "./cli-dvo0r2fs.mjs";
6
+ import { a as waitForEvent, c as wrapGenerator, i as withSelect, l as attachSpinner, n as withTextInput, o as wrapEmitter, r as createSelect, s as withIterableProgress, t as createTextInput, u as withSpinner } from "./wrappers-BCUYITrY.mjs";
7
+ import { n as step, t as steps } from "./progress-DB_Xo071.mjs";
8
+ export { CLEAR_LINE, CLEAR_LINE_END, CLEAR_SCREEN, CURSOR_HIDE, CURSOR_RESTORE, CURSOR_SAVE, CURSOR_SHOW, CURSOR_TO_START, MultiProgress, ProgressBar, SPINNER_FRAMES, Spinner, attachSpinner, createSelect, createSpinner, createTextInput, cursorDown, cursorUp, getTerminalWidth, isTTY, step, steps, waitForEvent, withCursor, withIterableProgress, withSelect, withSpinner, withTextInput, wrapEmitter, wrapGenerator, write, writeLine };
@@ -1,25 +1,5 @@
1
- //#region packages/ag-react/src/ui/animation/easing.d.ts
2
- /**
3
- * Easing Functions
4
- *
5
- * Maps time progress (0-1) to value progress (0-1) for smooth animations.
6
- * Includes common presets and a resolver for name-or-function usage.
7
- */
8
- /** Easing function: maps time progress (0-1) to value progress (0-1) */
9
- type EasingFn = (t: number) => number;
10
- declare const easings: {
11
- readonly linear: (t: number) => number;
12
- readonly ease: (t: number) => number;
13
- readonly easeIn: (t: number) => number;
14
- readonly easeOut: (t: number) => number;
15
- readonly easeInOut: (t: number) => number;
16
- readonly easeInCubic: (t: number) => number;
17
- readonly easeOutCubic: (t: number) => number;
18
- };
19
- type EasingName = keyof typeof easings;
20
- /** Resolve an easing — accepts a name string or a custom function. */
21
- declare function resolveEasing(easing: EasingName | EasingFn): EasingFn;
22
- //#endregion
1
+ import { n as EasingName, t as EasingFn } from "./easing-BI-ASGMO.mjs";
2
+
23
3
  //#region packages/ag-react/src/ui/animation/useAnimation.d.ts
24
4
  interface UseAnimationOptions {
25
5
  /** Duration in milliseconds */
@@ -48,7 +28,7 @@ interface UseAnimationResult {
48
28
  * ```tsx
49
29
  * function FadeIn({ children }) {
50
30
  * const { value } = useAnimation({ duration: 300, easing: "easeOut" })
51
- * return <Text dimColor={value < 1}>{children}</Text>
31
+ * return <Text color={value < 1 ? "$muted" : undefined}>{children}</Text>
52
32
  * }
53
33
  * ```
54
34
  */
@@ -150,5 +130,5 @@ declare function useLatest<T>(value: T): {
150
130
  readonly current: T;
151
131
  };
152
132
  //#endregion
153
- export { useTransition as a, useAnimation as c, easings as d, resolveEasing as f, UseTransitionOptions as i, EasingFn as l, useTimeout as n, UseAnimationOptions as o, useInterval as r, UseAnimationResult as s, useLatest as t, EasingName as u };
154
- //# sourceMappingURL=useLatest-Bg2x4bfP.d.mts.map
133
+ export { useTransition as a, useAnimation as c, UseTransitionOptions as i, useTimeout as n, UseAnimationOptions as o, useInterval as r, UseAnimationResult as s, useLatest as t };
134
+ //# sourceMappingURL=useLatest-DRDDVwjh.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLatest-DRDDVwjh.d.mts","names":[],"sources":["../packages/ag-react/src/ui/animation/useAnimation.ts","../packages/ag-react/src/ui/animation/useTransition.ts","../packages/ag-react/src/ui/animation/useInterval.ts","../packages/ag-react/src/ui/animation/useTimeout.ts","../packages/ag-react/src/ui/animation/useLatest.ts"],"mappings":";;;UAeiB,mBAAA;EAIN;EAFT,QAAA;EAIA;EAFA,MAAA,GAAS,UAAA,GAAa,QAAA;EAMtB;EAJA,KAAA;EAIO;EAFP,UAAA;EAKiC;EAHjC,OAAA;AAAA;AAAA,UAGe,kBAAA;EAIf;EAFA,KAAA;EAIK;EAFL,WAAA;EA2Bc;EAzBd,KAAA;AAAA;;;;;;;;;;ACnBF;;iBD4CgB,YAAA,CAAa,OAAA,EAAS,mBAAA,GAAsB,kBAAA;;;UC5C3C,oBAAA;EDIN;ECFT,QAAA;EDIA;ECFA,MAAA,GAAS,UAAA,GAAa,QAAA;AAAA;;;ADSxB;;;;;;;;;AA+BA;;;;iBCXgB,aAAA,CAAc,WAAA,UAAqB,OAAA,GAAU,oBAAA;;;;;;ADjC7D;;;;;;;;;;;;;iBEQgB,WAAA,CAAY,QAAA,cAAsB,EAAA,UAAY,OAAA;;;;;;AFR9D;;;;;;;;;;;;;AAaA;;;iBGFgB,UAAA,CACd,QAAA,cACA,EAAA,UACA,OAAA;EACG,KAAA;EAAmB,KAAA;AAAA;;;;;;AHfxB;;;;;;;;;;;;;AAaA;;;;;;;iBIEgB,SAAA,GAAA,CAAa,KAAA,EAAO,CAAA;EAAA,SAAe,OAAA,EAAS,CAAA;AAAA"}
@@ -1,5 +1,5 @@
1
- import { _ as TextInputOptions, b as WithSelectOptions, i as ProgressGenerator, o as SelectOption, r as ProgressCallback, x as WithSpinnerOptions, y as WithProgressOptions } from "./types-BH_v3iMT.mjs";
2
- import { r as Spinner } from "./spinner-CGo34vyR.mjs";
1
+ import { _ as TextInputOptions, b as WithSpinnerOptions, i as ProgressGenerator, o as SelectOption, y as WithSelectOptions } from "./types-kt_fKR37.mjs";
2
+ import { r as Spinner } from "./spinner-CZINHpkV.mjs";
3
3
  import { EventEmitter } from "events";
4
4
 
5
5
  //#region packages/ag-react/src/ui/wrappers/with-spinner.d.ts
@@ -40,57 +40,6 @@ declare function withSpinner<T>(promise: Promise<T> | (() => T | Promise<T>), te
40
40
  */
41
41
  declare function attachSpinner<T>(promise: Promise<T>, text: string, options?: WithSpinnerOptions): [Promise<T>, Spinner];
42
42
  //#endregion
43
- //#region packages/ag-react/src/ui/wrappers/with-progress.d.ts
44
- /**
45
- * Wrap a function that takes a progress callback
46
- *
47
- * @example
48
- * ```ts
49
- * // Wrap existing km sync API
50
- * const result = await withProgress(
51
- * (onProgress) => manager.syncFromFs(onProgress),
52
- * {
53
- * phases: {
54
- * scanning: "Scanning files",
55
- * reconciling: "Reconciling changes",
56
- * rules: "Evaluating rules"
57
- * }
58
- * }
59
- * );
60
- *
61
- * // Simple usage without phases
62
- * await withProgress((onProgress) => rebuildState(onProgress));
63
- *
64
- * // With custom format
65
- * await withProgress(
66
- * (p) => processFiles(p),
67
- * { format: ":phase :bar :percent" }
68
- * );
69
- *
70
- * // Show loading immediately (showAfter: 0) or after delay
71
- * await withProgress(
72
- * (p) => slowOperation(p),
73
- * { showAfter: 1000, initialMessage: "Loading..." }
74
- * );
75
- * ```
76
- */
77
- declare function withProgress<T>(fn: (onProgress: ProgressCallback) => T | Promise<T>, options?: WithProgressOptions): Promise<T>;
78
- /**
79
- * Create a progress callback that can be passed to existing APIs
80
- * Returns [callback, complete] tuple
81
- *
82
- * @example
83
- * ```ts
84
- * const [onProgress, complete] = createProgressCallback({
85
- * phases: { scanning: "Scanning", reconciling: "Reconciling" }
86
- * });
87
- *
88
- * const result = await manager.syncFromFs(onProgress);
89
- * complete();
90
- * ```
91
- */
92
- declare function createProgressCallback(options?: WithProgressOptions): [ProgressCallback, () => void];
93
- //#endregion
94
43
  //#region packages/ag-react/src/ui/wrappers/wrap-generator.d.ts
95
44
  /**
96
45
  * Consume a progress generator while displaying progress
@@ -280,5 +229,5 @@ interface TextInputInstance {
280
229
  acceptSuggestion(): void;
281
230
  }
282
231
  //#endregion
283
- export { waitForEvent as a, wrapGenerator as c, attachSpinner as d, withSpinner as f, withSelect as i, createProgressCallback as l, withTextInput as n, wrapEmitter as o, createSelect as r, withIterableProgress as s, createTextInput as t, withProgress as u };
284
- //# sourceMappingURL=with-text-input-CRfoiFFG.d.mts.map
232
+ export { waitForEvent as a, wrapGenerator as c, withSelect as i, attachSpinner as l, withTextInput as n, wrapEmitter as o, createSelect as r, withIterableProgress as s, createTextInput as t, withSpinner as u };
233
+ //# sourceMappingURL=with-text-input-YeohVLeo.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"with-text-input-YeohVLeo.d.mts","names":[],"sources":["../packages/ag-react/src/ui/wrappers/with-spinner.ts","../packages/ag-react/src/ui/wrappers/wrap-generator.ts","../packages/ag-react/src/ui/wrappers/wrap-emitter.ts","../packages/ag-react/src/ui/wrappers/with-select.ts","../packages/ag-react/src/ui/wrappers/with-text-input.ts"],"mappings":";;;;;AA6BA;;;;;;;;;;;;;;;;;;;;;;AAAA,iBAAsB,WAAA,GAAA,CACpB,OAAA,EAAS,OAAA,CAAQ,CAAA,WAAY,CAAA,GAAI,OAAA,CAAQ,CAAA,IACzC,IAAA,aAAiB,cAAA,sBACjB,OAAA,GAAS,kBAAA,GACR,OAAA,CAAQ,CAAA;;;;;;AAmDX;;;;;;;iBAAgB,aAAA,GAAA,CACd,OAAA,EAAS,OAAA,CAAQ,CAAA,GACjB,IAAA,UACA,OAAA,GAAS,kBAAA,IACP,OAAA,CAAQ,CAAA,GAAI,OAAA;;;;AA3DhB;;;;;;;;;;;;;;;;;iBCHsB,aAAA,GAAA,CACpB,SAAA,EAAW,iBAAA,CAAkB,CAAA,GAC7B,YAAA,aAAyB,QAAA;EAAY,OAAA;EAAiB,KAAA;AAAA,eACtD,OAAA;EAAW,eAAA;AAAA,IACV,OAAA,CAAQ,CAAA;;;;;;ADsDX;;;;;;iBCeuB,oBAAA,GAAA,CACrB,QAAA,EAAU,QAAA,CAAS,CAAA,IAAK,aAAA,CAAc,CAAA,GACtC,KAAA,UACA,OAAA;EAAW,eAAA;AAAA,IACV,cAAA,CAAe,CAAA;;;;UC/FR,WAAA;EFqBuB;EEnB/B,IAAA;EFoBiB;EElBjB,OAAA,IAAW,IAAA;EFkBkB;EEhB7B,OAAA;EFgBiC;EEdjC,IAAA;EFiBS;EEfT,IAAA;AAAA;;UAIQ,iBAAA;EFQC;EENT,MAAA,EAAQ,MAAA,SAAe,WAAA;EFMM;EEJ7B,WAAA;AAAA;;;;;;;;;;AF0DF;;;;;;;;;;iBEpCgB,WAAA,CAAY,OAAA,EAAS,YAAA,EAAc,MAAA,EAAQ,iBAAA;;;;;;;;;;iBA0DrC,YAAA,CACpB,OAAA,EAAS,YAAA,EACT,SAAA,UACA,IAAA,UACA,OAAA;EACE,UAAA;EACA,OAAA;AAAA,IAED,OAAA;;;;AFrFH;;;;;;;;;;;;;;;;;;;iBGOsB,UAAA,GAAA,CACpB,MAAA,UACA,OAAA,EAAS,YAAA,CAAa,CAAA,KACtB,aAAA,GAAe,iBAAA,GACd,OAAA,CAAQ,CAAA;;;;;;;;;AH4CX;;;;;iBGgHgB,YAAA,CACd,cAAA,GAAgB,iBAAA,OACX,MAAA,UAAgB,OAAA,EAAS,YAAA,CAAa,CAAA,KAAM,SAAA,GAAY,iBAAA,KAAsB,OAAA,CAAQ,CAAA;;;;AHzK7F;;;;;;;;;;;;;;;;;;;;;iBIQsB,aAAA,CACpB,MAAA,UACA,OAAA,GAAS,gBAAA,GACR,OAAA;;;;;;;AJ4CH;;;;;;iBIkNgB,eAAA,CAAgB,MAAA,UAAgB,OAAA,GAAS,gBAAA,GAAwB,iBAAA;;UA0EhE,iBAAA;EJxRM;EI0RrB,KAAA;EJ9R4B;EIgS5B,cAAA;EJ/RiB;EIiSjB,MAAA;EJhSA;EIkSA,MAAA,CAAO,IAAA;EJjSP;EImSA,SAAA;EJlSU;EIoSV,MAAA;EJpSqB;EIsSrB,KAAA;;EAEA,gBAAA;AAAA"}