@alchemy.run/sigil 0.0.0-alpha.2 → 0.0.0-alpha.4

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 (107) hide show
  1. package/README.md +2 -4
  2. package/THIRD_PARTY_NOTICES.md +31 -22
  3. package/dist/ansi.d.ts +17 -14
  4. package/dist/ansi.js +7 -2
  5. package/dist/{devtools-BhYGjb7h.js → devtools-DbthxoD1.js} +22 -23
  6. package/dist/index.d.ts +125 -288
  7. package/dist/index.js +2460 -2864
  8. package/dist/{truncate-CBiyyZzw.js → truncate-Cr6xVFMa.js} +447 -273
  9. package/package.json +3 -9
  10. package/src/ansi/chalk.ts +8 -51
  11. package/src/ansi/cursor.ts +2 -4
  12. package/src/ansi/east-asian-width.ts +44 -0
  13. package/src/ansi/escapes.ts +4 -26
  14. package/src/ansi/index.ts +12 -14
  15. package/src/ansi/sgr.ts +2 -5
  16. package/src/ansi/slice.ts +1 -1
  17. package/src/ansi/string-width.ts +91 -206
  18. package/src/ansi/strip.ts +13 -33
  19. package/src/ansi/supports-color.ts +8 -14
  20. package/src/ansi/tokenize.ts +94 -166
  21. package/src/ansi/truncate.ts +5 -3
  22. package/src/ansi/wrap.ts +13 -14
  23. package/src/ansi-tokenizer.ts +1 -1
  24. package/src/colorize.ts +1 -1
  25. package/src/components/App.tsx +14 -14
  26. package/src/components/BackgroundContext.ts +2 -2
  27. package/src/components/Box.tsx +51 -59
  28. package/src/components/CursorContext.ts +1 -1
  29. package/src/components/ErrorBoundary.tsx +2 -1
  30. package/src/components/ErrorOverview.tsx +9 -7
  31. package/src/components/Newline.tsx +1 -0
  32. package/src/components/Spacer.tsx +2 -1
  33. package/src/components/Static.tsx +2 -1
  34. package/src/components/StderrContext.ts +0 -2
  35. package/src/components/StdinContext.ts +0 -1
  36. package/src/components/StdoutContext.ts +1 -3
  37. package/src/components/Text.tsx +7 -6
  38. package/src/components/Transform.tsx +2 -1
  39. package/src/cursor-position.ts +1 -1
  40. package/src/devtools.ts +84 -24
  41. package/src/dom.ts +7 -7
  42. package/src/env.ts +12 -0
  43. package/src/get-max-width.ts +1 -1
  44. package/src/global.d.ts +3 -4
  45. package/src/{boxes.ts → glyphs.ts} +17 -18
  46. package/src/hooks/use-animation.ts +1 -1
  47. package/src/hooks/use-app.ts +1 -1
  48. package/src/hooks/use-box-metrics.ts +1 -1
  49. package/src/hooks/use-cursor.ts +2 -2
  50. package/src/hooks/use-focus-manager.ts +1 -1
  51. package/src/hooks/use-focus.ts +5 -6
  52. package/src/hooks/use-input.ts +4 -4
  53. package/src/hooks/use-is-screen-reader-enabled.ts +1 -1
  54. package/src/hooks/use-paste.ts +2 -2
  55. package/src/hooks/use-stderr.ts +1 -1
  56. package/src/hooks/use-stdin.ts +1 -1
  57. package/src/hooks/use-stdout.ts +1 -1
  58. package/src/hooks/use-window-size.ts +2 -2
  59. package/src/index.ts +44 -44
  60. package/src/ink.tsx +536 -720
  61. package/src/input-parser.ts +1 -1
  62. package/src/instances.ts +1 -1
  63. package/src/kitty-keyboard.ts +128 -0
  64. package/src/log-update.ts +4 -4
  65. package/src/measure-element.ts +1 -1
  66. package/src/measure-text.ts +2 -2
  67. package/src/output.ts +4 -4
  68. package/src/parse-keypress.ts +4 -5
  69. package/src/parse-stack-line.ts +0 -1
  70. package/src/patch-console.ts +44 -0
  71. package/src/reconciler.ts +13 -60
  72. package/src/render-background.ts +3 -3
  73. package/src/render-border.ts +6 -6
  74. package/src/render-node-to-output.ts +13 -11
  75. package/src/render-to-string.ts +4 -4
  76. package/src/render.ts +9 -10
  77. package/src/renderer.ts +3 -3
  78. package/src/sanitize-ansi.ts +1 -1
  79. package/src/signal-exit.ts +4 -5
  80. package/src/squash-text-nodes.ts +2 -2
  81. package/src/stream.ts +2 -4
  82. package/src/styles.ts +6 -6
  83. package/src/terminal-size.ts +9 -8
  84. package/src/types.ts +1 -6
  85. package/src/utils.ts +2 -2
  86. package/src/wrap-text.ts +4 -4
  87. package/src/yoga/config.ts +2 -2
  88. package/src/yoga/core/absoluteLayout.ts +15 -15
  89. package/src/yoga/core/baseline.ts +3 -3
  90. package/src/yoga/core/cache.ts +4 -4
  91. package/src/yoga/core/calculateLayout.ts +33 -27
  92. package/src/yoga/core/config.ts +1 -1
  93. package/src/yoga/core/flexLine.ts +3 -3
  94. package/src/yoga/core/helpers.ts +3 -3
  95. package/src/yoga/core/layoutResults.ts +4 -4
  96. package/src/yoga/core/node.ts +16 -16
  97. package/src/yoga/core/pixelGrid.ts +4 -4
  98. package/src/yoga/core/style.ts +11 -11
  99. package/src/yoga/core/types.ts +2 -2
  100. package/src/yoga/index.ts +6 -6
  101. package/src/yoga/node.ts +8 -8
  102. package/src/ansi/widest-line.ts +0 -12
  103. package/src/auto-bind.ts +0 -41
  104. package/src/devtools-window-polyfill.ts +0 -73
  105. package/src/indent-string.ts +0 -16
  106. package/src/is-in-ci.ts +0 -7
  107. package/src/write-synchronized.ts +0 -9
package/src/index.ts CHANGED
@@ -1,44 +1,44 @@
1
- export type { RenderOptions, Instance } from "./render.ts";
2
- export type { CapturedOutputSource } from "./ink.tsx";
3
- export { render } from "./render.ts";
4
- export type { RenderToStringOptions } from "./render-to-string.ts";
5
- export { renderToString } from "./render-to-string.ts";
6
- export type { Props as BoxProps } from "./components/Box.tsx";
7
- export { Box } from "./components/Box.tsx";
8
- export type { Props as TextProps } from "./components/Text.tsx";
9
- export { Text } from "./components/Text.tsx";
10
- export type { Props as AppProps } from "./components/AppContext.ts";
11
- export type { PublicProps as StdinProps } from "./components/StdinContext.ts";
12
- export type { Props as StdoutProps } from "./components/StdoutContext.ts";
13
- export type { Props as StderrProps } from "./components/StderrContext.ts";
14
- export type { Props as StaticProps } from "./components/Static.tsx";
15
- export { Static } from "./components/Static.tsx";
16
- export type { Props as TransformProps } from "./components/Transform.tsx";
17
- export { Transform } from "./components/Transform.tsx";
18
- export type { Props as NewlineProps } from "./components/Newline.tsx";
19
- export { Newline } from "./components/Newline.tsx";
20
- export { Spacer } from "./components/Spacer.tsx";
21
- export type { Key } from "./hooks/use-input.ts";
22
- export { useInput } from "./hooks/use-input.ts";
23
- export { usePaste } from "./hooks/use-paste.ts";
24
- export type { SuspendTerminal, TerminalSuspension } from "./components/AppContext.ts";
25
- export { useApp } from "./hooks/use-app.ts";
26
- export { useStdin } from "./hooks/use-stdin.ts";
27
- export { useStdout } from "./hooks/use-stdout.ts";
28
- export { useStderr } from "./hooks/use-stderr.ts";
29
- export { useFocus } from "./hooks/use-focus.ts";
30
- export { useFocusManager } from "./hooks/use-focus-manager.ts";
31
- export { useIsScreenReaderEnabled } from "./hooks/use-is-screen-reader-enabled.ts";
32
- export { useCursor } from "./hooks/use-cursor.ts";
33
- export type { AnimationResult } from "./hooks/use-animation.ts";
34
- export { useAnimation } from "./hooks/use-animation.ts";
35
- export type { WindowSize } from "./hooks/use-window-size.ts";
36
- export { useWindowSize } from "./hooks/use-window-size.ts";
37
- export type { BoxMetrics, UseBoxMetricsResult } from "./hooks/use-box-metrics.ts";
38
- export { useBoxMetrics } from "./hooks/use-box-metrics.ts";
39
- export type { CursorPosition } from "./log-update.ts";
40
- export { measureElement } from "./measure-element.ts";
41
- export type { ElementMetrics } from "./measure-element.ts";
42
- export type { DOMElement } from "./dom.ts";
43
- export { kittyFlags, kittyModifiers } from "./kitty-keyboard.ts";
44
- export type { KittyKeyboardOptions, KittyFlagName } from "./kitty-keyboard.ts";
1
+ export type { RenderOptions, Instance } from "#/render.ts";
2
+ export type { CapturedOutputSource } from "#/ink.tsx";
3
+ export { render } from "#/render.ts";
4
+ export type { RenderToStringOptions } from "#/render-to-string.ts";
5
+ export { renderToString } from "#/render-to-string.ts";
6
+ export type { Props as BoxProps } from "#/components/Box.tsx";
7
+ export { Box } from "#/components/Box.tsx";
8
+ export type { Props as TextProps } from "#/components/Text.tsx";
9
+ export { Text } from "#/components/Text.tsx";
10
+ export type { Props as AppProps } from "#/components/AppContext.ts";
11
+ export type { PublicProps as StdinProps } from "#/components/StdinContext.ts";
12
+ export type { Props as StdoutProps } from "#/components/StdoutContext.ts";
13
+ export type { Props as StderrProps } from "#/components/StderrContext.ts";
14
+ export type { Props as StaticProps } from "#/components/Static.tsx";
15
+ export { Static } from "#/components/Static.tsx";
16
+ export type { Props as TransformProps } from "#/components/Transform.tsx";
17
+ export { Transform } from "#/components/Transform.tsx";
18
+ export type { Props as NewlineProps } from "#/components/Newline.tsx";
19
+ export { Newline } from "#/components/Newline.tsx";
20
+ export { Spacer } from "#/components/Spacer.tsx";
21
+ export type { Key } from "#/hooks/use-input.ts";
22
+ export { useInput } from "#/hooks/use-input.ts";
23
+ export { usePaste } from "#/hooks/use-paste.ts";
24
+ export type { SuspendTerminal, TerminalSuspension } from "#/components/AppContext.ts";
25
+ export { useApp } from "#/hooks/use-app.ts";
26
+ export { useStdin } from "#/hooks/use-stdin.ts";
27
+ export { useStdout } from "#/hooks/use-stdout.ts";
28
+ export { useStderr } from "#/hooks/use-stderr.ts";
29
+ export { useFocus } from "#/hooks/use-focus.ts";
30
+ export { useFocusManager } from "#/hooks/use-focus-manager.ts";
31
+ export { useIsScreenReaderEnabled } from "#/hooks/use-is-screen-reader-enabled.ts";
32
+ export { useCursor } from "#/hooks/use-cursor.ts";
33
+ export type { AnimationResult } from "#/hooks/use-animation.ts";
34
+ export { useAnimation } from "#/hooks/use-animation.ts";
35
+ export type { WindowSize } from "#/hooks/use-window-size.ts";
36
+ export { useWindowSize } from "#/hooks/use-window-size.ts";
37
+ export type { BoxMetrics, UseBoxMetricsResult } from "#/hooks/use-box-metrics.ts";
38
+ export { useBoxMetrics } from "#/hooks/use-box-metrics.ts";
39
+ export type { CursorPosition } from "#/log-update.ts";
40
+ export { measureElement } from "#/measure-element.ts";
41
+ export type { ElementMetrics } from "#/measure-element.ts";
42
+ export type { DOMElement } from "#/dom.ts";
43
+ export { kittyFlags, kittyModifiers } from "#/kitty-keyboard.ts";
44
+ export type { KittyKeyboardOptions, KittyFlagName } from "#/kitty-keyboard.ts";