@kingkoo1985/ink 6.6.6
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.
- package/build/colorize.d.ts +4 -0
- package/build/colorize.js +59 -0
- package/build/colorize.js.map +1 -0
- package/build/components/AccessibilityContext.d.ts +3 -0
- package/build/components/AccessibilityContext.js +5 -0
- package/build/components/AccessibilityContext.js.map +1 -0
- package/build/components/App.d.ts +68 -0
- package/build/components/App.js +290 -0
- package/build/components/App.js.map +1 -0
- package/build/components/AppContext.d.ts +52 -0
- package/build/components/AppContext.js +16 -0
- package/build/components/AppContext.js.map +1 -0
- package/build/components/BackgroundContext.d.ts +4 -0
- package/build/components/BackgroundContext.js +3 -0
- package/build/components/BackgroundContext.js.map +1 -0
- package/build/components/Box.d.ts +171 -0
- package/build/components/Box.js +40 -0
- package/build/components/Box.js.map +1 -0
- package/build/components/ErrorOverview.d.ts +6 -0
- package/build/components/ErrorOverview.js +84 -0
- package/build/components/ErrorOverview.js.map +1 -0
- package/build/components/FocusContext.d.ts +16 -0
- package/build/components/FocusContext.js +16 -0
- package/build/components/FocusContext.js.map +1 -0
- package/build/components/Newline.d.ts +13 -0
- package/build/components/Newline.js +8 -0
- package/build/components/Newline.js.map +1 -0
- package/build/components/Spacer.d.ts +7 -0
- package/build/components/Spacer.js +11 -0
- package/build/components/Spacer.js.map +1 -0
- package/build/components/Static.d.ts +24 -0
- package/build/components/Static.js +29 -0
- package/build/components/Static.js.map +1 -0
- package/build/components/StaticRender.d.ts +8 -0
- package/build/components/StaticRender.js +19 -0
- package/build/components/StaticRender.js.map +1 -0
- package/build/components/StderrContext.d.ts +15 -0
- package/build/components/StderrContext.js +12 -0
- package/build/components/StderrContext.js.map +1 -0
- package/build/components/StdinContext.d.ts +22 -0
- package/build/components/StdinContext.js +16 -0
- package/build/components/StdinContext.js.map +1 -0
- package/build/components/StdoutContext.d.ts +15 -0
- package/build/components/StdoutContext.js +12 -0
- package/build/components/StdoutContext.js.map +1 -0
- package/build/components/Text.d.ts +63 -0
- package/build/components/Text.js +50 -0
- package/build/components/Text.js.map +1 -0
- package/build/components/Transform.d.ts +16 -0
- package/build/components/Transform.js +15 -0
- package/build/components/Transform.js.map +1 -0
- package/build/data-limited-lru-map.d.ts +20 -0
- package/build/data-limited-lru-map.js +65 -0
- package/build/data-limited-lru-map.js.map +1 -0
- package/build/debug-log.d.ts +2 -0
- package/build/debug-log.js +44 -0
- package/build/debug-log.js.map +1 -0
- package/build/devtools-window-polyfill.d.ts +1 -0
- package/build/devtools-window-polyfill.js +65 -0
- package/build/devtools-window-polyfill.js.map +1 -0
- package/build/devtools.d.ts +1 -0
- package/build/devtools.js +8 -0
- package/build/devtools.js.map +1 -0
- package/build/dom.d.ts +114 -0
- package/build/dom.js +169 -0
- package/build/dom.js.map +1 -0
- package/build/get-max-width.d.ts +3 -0
- package/build/get-max-width.js +10 -0
- package/build/get-max-width.js.map +1 -0
- package/build/hooks/use-app.d.ts +5 -0
- package/build/hooks/use-app.js +8 -0
- package/build/hooks/use-app.js.map +1 -0
- package/build/hooks/use-focus-manager.d.ts +28 -0
- package/build/hooks/use-focus-manager.js +17 -0
- package/build/hooks/use-focus-manager.js.map +1 -0
- package/build/hooks/use-focus.d.ts +29 -0
- package/build/hooks/use-focus.js +42 -0
- package/build/hooks/use-focus.js.map +1 -0
- package/build/hooks/use-input.d.ts +93 -0
- package/build/hooks/use-input.js +92 -0
- package/build/hooks/use-input.js.map +1 -0
- package/build/hooks/use-is-screen-reader-enabled.d.ts +5 -0
- package/build/hooks/use-is-screen-reader-enabled.js +11 -0
- package/build/hooks/use-is-screen-reader-enabled.js.map +1 -0
- package/build/hooks/use-stderr.d.ts +5 -0
- package/build/hooks/use-stderr.js +8 -0
- package/build/hooks/use-stderr.js.map +1 -0
- package/build/hooks/use-stdin.d.ts +5 -0
- package/build/hooks/use-stdin.js +8 -0
- package/build/hooks/use-stdin.js.map +1 -0
- package/build/hooks/use-stdout.d.ts +5 -0
- package/build/hooks/use-stdout.js +8 -0
- package/build/hooks/use-stdout.js.map +1 -0
- package/build/index.d.ts +38 -0
- package/build/index.js +27 -0
- package/build/index.js.map +1 -0
- package/build/ink.d.ts +110 -0
- package/build/ink.js +576 -0
- package/build/ink.js.map +1 -0
- package/build/instances.d.ts +3 -0
- package/build/instances.js +8 -0
- package/build/instances.js.map +1 -0
- package/build/layout.d.ts +18 -0
- package/build/layout.js +54 -0
- package/build/layout.js.map +1 -0
- package/build/log-update.d.ts +28 -0
- package/build/log-update.js +529 -0
- package/build/log-update.js.map +1 -0
- package/build/measure-element.d.ts +119 -0
- package/build/measure-element.js +825 -0
- package/build/measure-element.js.map +1 -0
- package/build/measure-text.d.ts +50 -0
- package/build/measure-text.js +237 -0
- package/build/measure-text.js.map +1 -0
- package/build/output.d.ts +242 -0
- package/build/output.js +607 -0
- package/build/output.js.map +1 -0
- package/build/parse-keypress.d.ts +14 -0
- package/build/parse-keypress.js +225 -0
- package/build/parse-keypress.js.map +1 -0
- package/build/reconciler.d.ts +4 -0
- package/build/reconciler.js +326 -0
- package/build/reconciler.js.map +1 -0
- package/build/render-background.d.ts +4 -0
- package/build/render-background.js +37 -0
- package/build/render-background.js.map +1 -0
- package/build/render-border.d.ts +4 -0
- package/build/render-border.js +81 -0
- package/build/render-border.js.map +1 -0
- package/build/render-cached.d.ts +18 -0
- package/build/render-cached.js +66 -0
- package/build/render-cached.js.map +1 -0
- package/build/render-container.d.ts +27 -0
- package/build/render-container.js +169 -0
- package/build/render-container.js.map +1 -0
- package/build/render-node-to-output.d.ts +32 -0
- package/build/render-node-to-output.js +177 -0
- package/build/render-node-to-output.js.map +1 -0
- package/build/render-screen-reader.d.ts +5 -0
- package/build/render-screen-reader.js +54 -0
- package/build/render-screen-reader.js.map +1 -0
- package/build/render-scrollbar.d.ts +23 -0
- package/build/render-scrollbar.js +70 -0
- package/build/render-scrollbar.js.map +1 -0
- package/build/render-sticky.d.ts +53 -0
- package/build/render-sticky.js +317 -0
- package/build/render-sticky.js.map +1 -0
- package/build/render-text-node.d.ts +20 -0
- package/build/render-text-node.js +155 -0
- package/build/render-text-node.js.map +1 -0
- package/build/render.d.ts +165 -0
- package/build/render.js +60 -0
- package/build/render.js.map +1 -0
- package/build/renderer.d.ts +24 -0
- package/build/renderer.js +292 -0
- package/build/renderer.js.map +1 -0
- package/build/replay.d.ts +59 -0
- package/build/replay.js +128 -0
- package/build/replay.js.map +1 -0
- package/build/resize-observer.d.ts +24 -0
- package/build/resize-observer.js +102 -0
- package/build/resize-observer.js.map +1 -0
- package/build/scroll.d.ts +11 -0
- package/build/scroll.js +123 -0
- package/build/scroll.js.map +1 -0
- package/build/selection.d.ts +52 -0
- package/build/selection.js +359 -0
- package/build/selection.js.map +1 -0
- package/build/serialization.d.ts +25 -0
- package/build/serialization.js +224 -0
- package/build/serialization.js.map +1 -0
- package/build/squash-text-nodes.d.ts +16 -0
- package/build/squash-text-nodes.js +58 -0
- package/build/squash-text-nodes.js.map +1 -0
- package/build/styled-line.d.ts +58 -0
- package/build/styled-line.js +629 -0
- package/build/styled-line.js.map +1 -0
- package/build/styles.d.ts +286 -0
- package/build/styles.js +257 -0
- package/build/styles.js.map +1 -0
- package/build/terminal-buffer.d.ts +57 -0
- package/build/terminal-buffer.js +507 -0
- package/build/terminal-buffer.js.map +1 -0
- package/build/text-wrap.d.ts +12 -0
- package/build/text-wrap.js +154 -0
- package/build/text-wrap.js.map +1 -0
- package/build/tokenize.d.ts +47 -0
- package/build/tokenize.js +419 -0
- package/build/tokenize.js.map +1 -0
- package/build/vertical-gap.d.ts +17 -0
- package/build/vertical-gap.js +20 -0
- package/build/vertical-gap.js.map +1 -0
- package/build/worker/animation-controller.d.ts +72 -0
- package/build/worker/animation-controller.js +128 -0
- package/build/worker/animation-controller.js.map +1 -0
- package/build/worker/ansi-utils.d.ts +16 -0
- package/build/worker/ansi-utils.js +40 -0
- package/build/worker/ansi-utils.js.map +1 -0
- package/build/worker/canvas.d.ts +49 -0
- package/build/worker/canvas.js +90 -0
- package/build/worker/canvas.js.map +1 -0
- package/build/worker/compositor.d.ts +33 -0
- package/build/worker/compositor.js +308 -0
- package/build/worker/compositor.js.map +1 -0
- package/build/worker/platform.d.ts +15 -0
- package/build/worker/platform.js +19 -0
- package/build/worker/platform.js.map +1 -0
- package/build/worker/render-worker.d.ts +112 -0
- package/build/worker/render-worker.js +944 -0
- package/build/worker/render-worker.js.map +1 -0
- package/build/worker/scene-manager.d.ts +26 -0
- package/build/worker/scene-manager.js +109 -0
- package/build/worker/scene-manager.js.map +1 -0
- package/build/worker/scroll-optimizer.d.ts +32 -0
- package/build/worker/scroll-optimizer.js +110 -0
- package/build/worker/scroll-optimizer.js.map +1 -0
- package/build/worker/terminal-writer.d.ts +116 -0
- package/build/worker/terminal-writer.js +708 -0
- package/build/worker/terminal-writer.js.map +1 -0
- package/build/worker/worker-entry.d.ts +6 -0
- package/build/worker/worker-entry.js +130 -0
- package/build/worker/worker-entry.js.map +1 -0
- package/license +9 -0
- package/package.json +208 -0
- package/readme.md +2353 -0
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type { RenderOptions, Instance } from './render.js';
|
|
2
|
+
export { default as render } from './render.js';
|
|
3
|
+
export type { Props as BoxProps } from './components/Box.js';
|
|
4
|
+
export { default as Box } from './components/Box.js';
|
|
5
|
+
export type { Props as TextProps } from './components/Text.js';
|
|
6
|
+
export { default as Text } from './components/Text.js';
|
|
7
|
+
export type { Props as AppProps } from './components/AppContext.js';
|
|
8
|
+
export { default as AppContext } from './components/AppContext.js';
|
|
9
|
+
export type { Props as StdinProps } from './components/StdinContext.js';
|
|
10
|
+
export type { Props as StdoutProps } from './components/StdoutContext.js';
|
|
11
|
+
export type { Props as StderrProps } from './components/StderrContext.js';
|
|
12
|
+
export type { Props as StaticProps } from './components/Static.js';
|
|
13
|
+
export { default as Static } from './components/Static.js';
|
|
14
|
+
export type { Props as StaticRenderProps } from './components/StaticRender.js';
|
|
15
|
+
export { default as StaticRender } from './components/StaticRender.js';
|
|
16
|
+
export type { Props as TransformProps } from './components/Transform.js';
|
|
17
|
+
export { default as Transform } from './components/Transform.js';
|
|
18
|
+
export type { Props as NewlineProps } from './components/Newline.js';
|
|
19
|
+
export { default as Newline } from './components/Newline.js';
|
|
20
|
+
export { default as Spacer } from './components/Spacer.js';
|
|
21
|
+
export type { Key } from './hooks/use-input.js';
|
|
22
|
+
export { default as useInput } from './hooks/use-input.js';
|
|
23
|
+
export { default as useApp } from './hooks/use-app.js';
|
|
24
|
+
export { default as useStdin } from './hooks/use-stdin.js';
|
|
25
|
+
export { default as useStdout } from './hooks/use-stdout.js';
|
|
26
|
+
export { default as useStderr } from './hooks/use-stderr.js';
|
|
27
|
+
export { default as useFocus } from './hooks/use-focus.js';
|
|
28
|
+
export { default as useFocusManager } from './hooks/use-focus-manager.js';
|
|
29
|
+
export { default as useIsScreenReaderEnabled } from './hooks/use-is-screen-reader-enabled.js';
|
|
30
|
+
export { default as measureElement, getBoundingBox, getInnerWidth, getInnerHeight, getVerticalScrollbarBoundingBox, getHorizontalScrollbarBoundingBox, getAddedScrollHeight, getText, getTextOffset, hitTest, findNodeAtOffset, type ScrollbarBoundingBox, } from './measure-element.js';
|
|
31
|
+
export { getScrollHeight, getScrollWidth } from './scroll.js';
|
|
32
|
+
export { clearStringWidthCache, setStringWidthFunction, styledCharsWidth, widestLineFromStyledChars, toStyledCharacters, styledCharsToString, wordBreakStyledChars, } from './measure-text.js';
|
|
33
|
+
export { styledLineToString } from './tokenize.js';
|
|
34
|
+
export { type DOMElement, type DOMNode, getPathToRoot } from './dom.js';
|
|
35
|
+
export { StyledLine } from './styled-line.js';
|
|
36
|
+
export { default as ResizeObserver, ResizeObserverEntry, } from './resize-observer.js';
|
|
37
|
+
export { Selection, Range, comparePoints } from './selection.js';
|
|
38
|
+
export { wrapStyledChars } from './text-wrap.js';
|
package/build/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { default as render } from './render.js';
|
|
2
|
+
export { default as Box } from './components/Box.js';
|
|
3
|
+
export { default as Text } from './components/Text.js';
|
|
4
|
+
export { default as AppContext } from './components/AppContext.js';
|
|
5
|
+
export { default as Static } from './components/Static.js';
|
|
6
|
+
export { default as StaticRender } from './components/StaticRender.js';
|
|
7
|
+
export { default as Transform } from './components/Transform.js';
|
|
8
|
+
export { default as Newline } from './components/Newline.js';
|
|
9
|
+
export { default as Spacer } from './components/Spacer.js';
|
|
10
|
+
export { default as useInput } from './hooks/use-input.js';
|
|
11
|
+
export { default as useApp } from './hooks/use-app.js';
|
|
12
|
+
export { default as useStdin } from './hooks/use-stdin.js';
|
|
13
|
+
export { default as useStdout } from './hooks/use-stdout.js';
|
|
14
|
+
export { default as useStderr } from './hooks/use-stderr.js';
|
|
15
|
+
export { default as useFocus } from './hooks/use-focus.js';
|
|
16
|
+
export { default as useFocusManager } from './hooks/use-focus-manager.js';
|
|
17
|
+
export { default as useIsScreenReaderEnabled } from './hooks/use-is-screen-reader-enabled.js';
|
|
18
|
+
export { default as measureElement, getBoundingBox, getInnerWidth, getInnerHeight, getVerticalScrollbarBoundingBox, getHorizontalScrollbarBoundingBox, getAddedScrollHeight, getText, getTextOffset, hitTest, findNodeAtOffset, } from './measure-element.js';
|
|
19
|
+
export { getScrollHeight, getScrollWidth } from './scroll.js';
|
|
20
|
+
export { clearStringWidthCache, setStringWidthFunction, styledCharsWidth, widestLineFromStyledChars, toStyledCharacters, styledCharsToString, wordBreakStyledChars, } from './measure-text.js';
|
|
21
|
+
export { styledLineToString } from './tokenize.js';
|
|
22
|
+
export { getPathToRoot } from './dom.js';
|
|
23
|
+
export { StyledLine } from './styled-line.js';
|
|
24
|
+
export { default as ResizeObserver, ResizeObserverEntry, } from './resize-observer.js';
|
|
25
|
+
export { Selection, Range, comparePoints } from './selection.js';
|
|
26
|
+
export { wrapStyledChars } from './text-wrap.js';
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,aAAa,CAAC;AAG9C,OAAO,EAAC,OAAO,IAAI,GAAG,EAAC,MAAM,qBAAqB,CAAC;AAEnD,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,4BAA4B,CAAC;AAKjE,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAE/D,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAC,OAAO,IAAI,wBAAwB,EAAC,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACN,OAAO,IAAI,cAAc,EACzB,cAAc,EACd,aAAa,EACb,cAAc,EACd,+BAA+B,EAC/B,iCAAiC,EACjC,oBAAoB,EACpB,OAAO,EACP,aAAa,EACb,OAAO,EACP,gBAAgB,GAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,eAAe,EAAE,cAAc,EAAC,MAAM,aAAa,CAAC;AAC5D,OAAO,EACN,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,EAAgC,aAAa,EAAC,MAAM,UAAU,CAAC;AACtE,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EACN,OAAO,IAAI,cAAc,EACzB,mBAAmB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAC,SAAS,EAAE,KAAK,EAAE,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC"}
|
package/build/ink.d.ts
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { type StyledLine } from './styled-line.js';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import * as dom from './dom.js';
|
|
4
|
+
import { type InkOptions } from './components/AppContext.js';
|
|
5
|
+
import { type default as ResizeObserver, type ResizeObserverEntry } from './resize-observer.js';
|
|
6
|
+
import { Selection } from './selection.js';
|
|
7
|
+
/**
|
|
8
|
+
Performance metrics for a render operation.
|
|
9
|
+
*/
|
|
10
|
+
export type RenderMetrics = {
|
|
11
|
+
/**
|
|
12
|
+
Time spent rendering in milliseconds.
|
|
13
|
+
*/
|
|
14
|
+
renderTime: number;
|
|
15
|
+
/**
|
|
16
|
+
Output string for the frame.
|
|
17
|
+
*/
|
|
18
|
+
output: string;
|
|
19
|
+
/**
|
|
20
|
+
Static output string for the frame.
|
|
21
|
+
*/
|
|
22
|
+
staticOutput?: string;
|
|
23
|
+
};
|
|
24
|
+
export type Options = {
|
|
25
|
+
stdout: NodeJS.WriteStream;
|
|
26
|
+
stdin: NodeJS.ReadStream;
|
|
27
|
+
stderr: NodeJS.WriteStream;
|
|
28
|
+
debug: boolean;
|
|
29
|
+
exitOnCtrlC: boolean;
|
|
30
|
+
patchConsole: boolean;
|
|
31
|
+
onRender?: (metrics: RenderMetrics) => void;
|
|
32
|
+
isScreenReaderEnabled?: boolean;
|
|
33
|
+
waitUntilExit?: () => Promise<void>;
|
|
34
|
+
maxFps?: number;
|
|
35
|
+
alternateBuffer?: boolean;
|
|
36
|
+
alternateBufferAlreadyActive?: boolean;
|
|
37
|
+
isAlternateBufferEnabled?: boolean;
|
|
38
|
+
stickyHeadersInBackbuffer?: boolean;
|
|
39
|
+
incrementalRendering?: boolean;
|
|
40
|
+
debugRainbow?: boolean;
|
|
41
|
+
animatedScroll?: boolean;
|
|
42
|
+
animationInterval?: number;
|
|
43
|
+
backbufferUpdateDelay?: number;
|
|
44
|
+
maxScrollbackLength?: number;
|
|
45
|
+
forceScrollToBottomOnBackbufferRefresh?: boolean;
|
|
46
|
+
selectionStyle?: (line: StyledLine, index: number) => void;
|
|
47
|
+
standardReactLayoutTiming?: boolean;
|
|
48
|
+
renderProcess?: boolean;
|
|
49
|
+
terminalBuffer?: boolean;
|
|
50
|
+
cacheToStyledCharacters?: boolean;
|
|
51
|
+
trackSelection?: boolean;
|
|
52
|
+
};
|
|
53
|
+
export default class Ink {
|
|
54
|
+
readonly rootNode: dom.DOMElement;
|
|
55
|
+
private readonly options;
|
|
56
|
+
private readonly log;
|
|
57
|
+
private readonly throttledLog;
|
|
58
|
+
private readonly isScreenReaderEnabled;
|
|
59
|
+
private readonly selection;
|
|
60
|
+
private readonly terminalBuffer?;
|
|
61
|
+
private optionsState;
|
|
62
|
+
private isUnmounted;
|
|
63
|
+
private lastOutput;
|
|
64
|
+
private lastOutputHeight;
|
|
65
|
+
private lastCursorPosition?;
|
|
66
|
+
private readonly container;
|
|
67
|
+
private node;
|
|
68
|
+
private fullStaticOutput;
|
|
69
|
+
private exitPromise?;
|
|
70
|
+
private restoreConsole?;
|
|
71
|
+
private readonly unsubscribeResize?;
|
|
72
|
+
private readonly unsubscribeSelection?;
|
|
73
|
+
private frameIndex;
|
|
74
|
+
private isTerminalResized;
|
|
75
|
+
constructor(options: Options);
|
|
76
|
+
resized: () => void;
|
|
77
|
+
getSelection(): Selection;
|
|
78
|
+
resolveExitPromise: () => void;
|
|
79
|
+
rejectExitPromise: (reason?: Error) => void;
|
|
80
|
+
unsubscribeExit: () => void;
|
|
81
|
+
calculateLayout: () => void;
|
|
82
|
+
calculateLayoutAndTriggerObservers(node: dom.DOMElement, observerEntries: Map<ResizeObserver, ResizeObserverEntry[]>, isTerminalResized?: boolean): void;
|
|
83
|
+
onRender: () => Promise<void>;
|
|
84
|
+
recalculateLayout(): void;
|
|
85
|
+
onRerender: () => void;
|
|
86
|
+
setOptions: (options: Partial<InkOptions>) => void;
|
|
87
|
+
render(node: ReactNode): void;
|
|
88
|
+
writeToStdout(data: string): void;
|
|
89
|
+
writeToStderr(data: string): void;
|
|
90
|
+
unmount(error?: Error | number | null): void;
|
|
91
|
+
waitUntilExit(): Promise<void>;
|
|
92
|
+
dumpCurrentFrame(filename: string): void;
|
|
93
|
+
startRecording(filename: string): void;
|
|
94
|
+
stopRecording(): void;
|
|
95
|
+
clear(): void;
|
|
96
|
+
patchConsole(): void;
|
|
97
|
+
private renderWithTerminalBuffer;
|
|
98
|
+
private renderDebug;
|
|
99
|
+
private renderCi;
|
|
100
|
+
private renderAlternateBuffer;
|
|
101
|
+
private renderScreenReader;
|
|
102
|
+
private renderFullTerminal;
|
|
103
|
+
/**
|
|
104
|
+
* The goal is to remove this method making terminal buffer required.
|
|
105
|
+
*/
|
|
106
|
+
private renderLegacy;
|
|
107
|
+
private markAllTextNodesDirty;
|
|
108
|
+
private resetScrollbackPadding;
|
|
109
|
+
private callOnRender;
|
|
110
|
+
}
|