@cascadetui/core 0.1.1
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/3d/SpriteResourceManager.d.ts +74 -0
- package/3d/SpriteUtils.d.ts +13 -0
- package/3d/TextureUtils.d.ts +24 -0
- package/3d/ThreeRenderable.d.ts +40 -0
- package/3d/WGPURenderer.d.ts +61 -0
- package/3d/animation/ExplodingSpriteEffect.d.ts +71 -0
- package/3d/animation/PhysicsExplodingSpriteEffect.d.ts +76 -0
- package/3d/animation/SpriteAnimator.d.ts +124 -0
- package/3d/animation/SpriteParticleGenerator.d.ts +62 -0
- package/3d/canvas.d.ts +44 -0
- package/3d/index.d.ts +12 -0
- package/3d/physics/PlanckPhysicsAdapter.d.ts +19 -0
- package/3d/physics/RapierPhysicsAdapter.d.ts +19 -0
- package/3d/physics/physics-interface.d.ts +27 -0
- package/3d.d.ts +2 -0
- package/3d.js +34041 -0
- package/3d.js.map +155 -0
- package/LICENSE +21 -0
- package/NativeSpanFeed.d.ts +41 -0
- package/README.md +62 -0
- package/Renderable.d.ts +334 -0
- package/animation/Timeline.d.ts +126 -0
- package/ansi.d.ts +13 -0
- package/assets/javascript/highlights.scm +205 -0
- package/assets/javascript/tree-sitter-javascript.wasm +0 -0
- package/assets/markdown/highlights.scm +150 -0
- package/assets/markdown/injections.scm +27 -0
- package/assets/markdown/tree-sitter-markdown.wasm +0 -0
- package/assets/markdown_inline/highlights.scm +115 -0
- package/assets/markdown_inline/tree-sitter-markdown_inline.wasm +0 -0
- package/assets/typescript/highlights.scm +604 -0
- package/assets/typescript/tree-sitter-typescript.wasm +0 -0
- package/assets/zig/highlights.scm +284 -0
- package/assets/zig/tree-sitter-zig.wasm +0 -0
- package/buffer.d.ts +107 -0
- package/console.d.ts +140 -0
- package/edit-buffer.d.ts +98 -0
- package/editor-view.d.ts +73 -0
- package/index-jx194wn1.js +17723 -0
- package/index-jx194wn1.js.map +61 -0
- package/index.d.ts +18 -0
- package/index.js +12210 -0
- package/index.js.map +49 -0
- package/lib/KeyHandler.d.ts +61 -0
- package/lib/RGBA.d.ts +25 -0
- package/lib/ascii.font.d.ts +508 -0
- package/lib/border.d.ts +49 -0
- package/lib/bunfs.d.ts +7 -0
- package/lib/clipboard.d.ts +29 -0
- package/lib/data-paths.d.ts +26 -0
- package/lib/debounce.d.ts +42 -0
- package/lib/env.d.ts +42 -0
- package/lib/extmarks-history.d.ts +17 -0
- package/lib/extmarks.d.ts +89 -0
- package/lib/hast-styled-text.d.ts +17 -0
- package/lib/index.d.ts +18 -0
- package/lib/keymapping.d.ts +25 -0
- package/lib/objects-in-viewport.d.ts +24 -0
- package/lib/output.capture.d.ts +24 -0
- package/lib/parse.keypress-kitty.d.ts +2 -0
- package/lib/parse.keypress.d.ts +26 -0
- package/lib/parse.mouse.d.ts +30 -0
- package/lib/queue.d.ts +15 -0
- package/lib/renderable.validations.d.ts +12 -0
- package/lib/scroll-acceleration.d.ts +43 -0
- package/lib/selection.d.ts +63 -0
- package/lib/singleton.d.ts +7 -0
- package/lib/stdin-buffer.d.ts +44 -0
- package/lib/styled-text.d.ts +63 -0
- package/lib/terminal-capability-detection.d.ts +30 -0
- package/lib/terminal-palette.d.ts +43 -0
- package/lib/tree-sitter/assets/update.d.ts +11 -0
- package/lib/tree-sitter/client.d.ts +47 -0
- package/lib/tree-sitter/default-parsers.d.ts +2 -0
- package/lib/tree-sitter/download-utils.d.ts +21 -0
- package/lib/tree-sitter/index.d.ts +8 -0
- package/lib/tree-sitter/parser.worker.d.ts +1 -0
- package/lib/tree-sitter/parsers-config.d.ts +38 -0
- package/lib/tree-sitter/resolve-ft.d.ts +2 -0
- package/lib/tree-sitter/types.d.ts +81 -0
- package/lib/tree-sitter-styled-text.d.ts +14 -0
- package/lib/validate-dir-name.d.ts +1 -0
- package/lib/yoga.options.d.ts +32 -0
- package/package.json +67 -0
- package/parser.worker.js +878 -0
- package/parser.worker.js.map +12 -0
- package/post/filters.d.ts +105 -0
- package/renderables/ASCIIFont.d.ts +52 -0
- package/renderables/Box.d.ts +72 -0
- package/renderables/Code.d.ts +66 -0
- package/renderables/Diff.d.ts +135 -0
- package/renderables/EditBufferRenderable.d.ts +162 -0
- package/renderables/FrameBuffer.d.ts +16 -0
- package/renderables/Input.d.ts +67 -0
- package/renderables/LineNumberRenderable.d.ts +74 -0
- package/renderables/Markdown.d.ts +150 -0
- package/renderables/ScrollBar.d.ts +77 -0
- package/renderables/ScrollBox.d.ts +116 -0
- package/renderables/Select.d.ts +115 -0
- package/renderables/Slider.d.ts +44 -0
- package/renderables/TabSelect.d.ts +96 -0
- package/renderables/Text.d.ts +36 -0
- package/renderables/TextBufferRenderable.d.ts +105 -0
- package/renderables/TextNode.d.ts +91 -0
- package/renderables/TextTable.d.ts +130 -0
- package/renderables/Textarea.d.ts +114 -0
- package/renderables/__tests__/renderable-test-utils.d.ts +7 -0
- package/renderables/composition/VRenderable.d.ts +16 -0
- package/renderables/composition/constructs.d.ts +35 -0
- package/renderables/composition/vnode.d.ts +46 -0
- package/renderables/index.d.ts +21 -0
- package/renderables/markdown-parser.d.ts +10 -0
- package/renderer.d.ts +382 -0
- package/syntax-style.d.ts +54 -0
- package/testing/mock-keys.d.ts +80 -0
- package/testing/mock-mouse.d.ts +38 -0
- package/testing/mock-tree-sitter-client.d.ts +23 -0
- package/testing/spy.d.ts +7 -0
- package/testing/test-recorder.d.ts +61 -0
- package/testing/test-renderer.d.ts +23 -0
- package/testing.d.ts +6 -0
- package/testing.js +670 -0
- package/testing.js.map +15 -0
- package/text-buffer-view.d.ts +42 -0
- package/text-buffer.d.ts +67 -0
- package/types.d.ts +126 -0
- package/utils.d.ts +14 -0
- package/zig-structs.d.ts +155 -0
- package/zig.d.ts +351 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
type Hex = string | null;
|
|
2
|
+
export type WriteFunction = (data: string | Buffer) => boolean;
|
|
3
|
+
export interface TerminalColors {
|
|
4
|
+
palette: Hex[];
|
|
5
|
+
defaultForeground: Hex;
|
|
6
|
+
defaultBackground: Hex;
|
|
7
|
+
cursorColor: Hex;
|
|
8
|
+
mouseForeground: Hex;
|
|
9
|
+
mouseBackground: Hex;
|
|
10
|
+
tekForeground: Hex;
|
|
11
|
+
tekBackground: Hex;
|
|
12
|
+
highlightBackground: Hex;
|
|
13
|
+
highlightForeground: Hex;
|
|
14
|
+
}
|
|
15
|
+
export interface GetPaletteOptions {
|
|
16
|
+
timeout?: number;
|
|
17
|
+
size?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface TerminalPaletteDetector {
|
|
20
|
+
detect(options?: GetPaletteOptions): Promise<TerminalColors>;
|
|
21
|
+
detectOSCSupport(timeoutMs?: number): Promise<boolean>;
|
|
22
|
+
cleanup(): void;
|
|
23
|
+
}
|
|
24
|
+
export declare class TerminalPalette implements TerminalPaletteDetector {
|
|
25
|
+
private stdin;
|
|
26
|
+
private stdout;
|
|
27
|
+
private writeFn;
|
|
28
|
+
private activeListeners;
|
|
29
|
+
private activeTimers;
|
|
30
|
+
private inLegacyTmux;
|
|
31
|
+
constructor(stdin: NodeJS.ReadStream, stdout: NodeJS.WriteStream, writeFn?: WriteFunction, isLegacyTmux?: boolean);
|
|
32
|
+
/**
|
|
33
|
+
* Write an OSC sequence, wrapping for tmux if needed
|
|
34
|
+
*/
|
|
35
|
+
private writeOsc;
|
|
36
|
+
cleanup(): void;
|
|
37
|
+
detectOSCSupport(timeoutMs?: number): Promise<boolean>;
|
|
38
|
+
private queryPalette;
|
|
39
|
+
private querySpecialColors;
|
|
40
|
+
detect(options?: GetPaletteOptions): Promise<TerminalColors>;
|
|
41
|
+
}
|
|
42
|
+
export declare function createTerminalPalette(stdin: NodeJS.ReadStream, stdout: NodeJS.WriteStream, writeFn?: WriteFunction, isLegacyTmux?: boolean): TerminalPaletteDetector;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
export interface UpdateOptions {
|
|
3
|
+
/** Path to parsers-config.json */
|
|
4
|
+
configPath: string;
|
|
5
|
+
/** Directory where .wasm and .scm files will be downloaded */
|
|
6
|
+
assetsDir: string;
|
|
7
|
+
/** Path where the generated TypeScript file will be written */
|
|
8
|
+
outputPath: string;
|
|
9
|
+
}
|
|
10
|
+
declare function main(options?: Partial<UpdateOptions>): Promise<void>;
|
|
11
|
+
export { main as updateAssets };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { EventEmitter } from "events";
|
|
2
|
+
import type { TreeSitterClientOptions, TreeSitterClientEvents, BufferState, FiletypeParserOptions, Edit, PerformanceStats, SimpleHighlight } from "./types";
|
|
3
|
+
declare global {
|
|
4
|
+
const CASCADE_TREE_SITTER_WORKER_PATH: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function addDefaultParsers(parsers: FiletypeParserOptions[]): void;
|
|
7
|
+
export declare class TreeSitterClient extends EventEmitter<TreeSitterClientEvents> {
|
|
8
|
+
private initialized;
|
|
9
|
+
private worker;
|
|
10
|
+
private buffers;
|
|
11
|
+
private initializePromise;
|
|
12
|
+
private initializeResolvers;
|
|
13
|
+
private messageCallbacks;
|
|
14
|
+
private messageIdCounter;
|
|
15
|
+
private editQueues;
|
|
16
|
+
private debouncer;
|
|
17
|
+
private options;
|
|
18
|
+
constructor(options: TreeSitterClientOptions);
|
|
19
|
+
private emitError;
|
|
20
|
+
private emitWarning;
|
|
21
|
+
private startWorker;
|
|
22
|
+
private stopWorker;
|
|
23
|
+
private handleReset;
|
|
24
|
+
initialize(): Promise<void>;
|
|
25
|
+
private registerDefaultParsers;
|
|
26
|
+
private resolvePath;
|
|
27
|
+
addFiletypeParser(filetypeParser: FiletypeParserOptions): void;
|
|
28
|
+
getPerformance(): Promise<PerformanceStats>;
|
|
29
|
+
highlightOnce(content: string, filetype: string): Promise<{
|
|
30
|
+
highlights?: SimpleHighlight[];
|
|
31
|
+
warning?: string;
|
|
32
|
+
error?: string;
|
|
33
|
+
}>;
|
|
34
|
+
private handleWorkerMessage;
|
|
35
|
+
preloadParser(filetype: string): Promise<boolean>;
|
|
36
|
+
createBuffer(id: number, content: string, filetype: string, version?: number, autoInitialize?: boolean): Promise<boolean>;
|
|
37
|
+
updateBuffer(id: number, edits: Edit[], newContent: string, version: number): Promise<void>;
|
|
38
|
+
private processEdit;
|
|
39
|
+
removeBuffer(bufferId: number): Promise<void>;
|
|
40
|
+
destroy(): Promise<void>;
|
|
41
|
+
resetBuffer(bufferId: number, version: number, content: string): Promise<void>;
|
|
42
|
+
getBuffer(bufferId: number): BufferState | undefined;
|
|
43
|
+
getAllBuffers(): BufferState[];
|
|
44
|
+
isInitialized(): boolean;
|
|
45
|
+
setDataPath(dataPath: string): Promise<void>;
|
|
46
|
+
clearCache(): Promise<void>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface DownloadResult {
|
|
2
|
+
content?: ArrayBuffer;
|
|
3
|
+
filePath?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class DownloadUtils {
|
|
7
|
+
private static hashUrl;
|
|
8
|
+
/**
|
|
9
|
+
* Download a file from URL or load from local path, with caching support
|
|
10
|
+
*/
|
|
11
|
+
static downloadOrLoad(source: string, cacheDir: string, cacheSubdir: string, fileExtension: string, useHashForCache?: boolean, filetype?: string): Promise<DownloadResult>;
|
|
12
|
+
/**
|
|
13
|
+
* Download and save a file to a specific target path
|
|
14
|
+
*/
|
|
15
|
+
static downloadToPath(source: string, targetPath: string): Promise<DownloadResult>;
|
|
16
|
+
/**
|
|
17
|
+
* Fetch multiple highlight queries and concatenate them
|
|
18
|
+
*/
|
|
19
|
+
static fetchHighlightQueries(sources: string[], cacheDir: string, filetype: string): Promise<string>;
|
|
20
|
+
private static fetchHighlightQuery;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TreeSitterClient } from "./client";
|
|
2
|
+
export * from "./client";
|
|
3
|
+
export * from "../tree-sitter-styled-text";
|
|
4
|
+
export * from "./types";
|
|
5
|
+
export * from "./resolve-ft";
|
|
6
|
+
export type { UpdateOptions } from "./assets/update";
|
|
7
|
+
export { updateAssets } from "./assets/update";
|
|
8
|
+
export declare function getTreeSitterClient(): TreeSitterClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file contains the configuration for the defaulttree-sitter parsers.
|
|
3
|
+
* It is used by ./assets/update.ts to generate the default-parsers.ts file.
|
|
4
|
+
* For changes here to be reflected in the default-parsers.ts file, you need to run `bun run ./assets/update.ts`
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: {
|
|
7
|
+
parsers: ({
|
|
8
|
+
filetype: string;
|
|
9
|
+
wasm: string;
|
|
10
|
+
queries: {
|
|
11
|
+
highlights: string[];
|
|
12
|
+
injections?: undefined;
|
|
13
|
+
};
|
|
14
|
+
injectionMapping?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
filetype: string;
|
|
17
|
+
wasm: string;
|
|
18
|
+
queries: {
|
|
19
|
+
highlights: string[];
|
|
20
|
+
injections: string[];
|
|
21
|
+
};
|
|
22
|
+
injectionMapping: {
|
|
23
|
+
nodeTypes: {
|
|
24
|
+
inline: string;
|
|
25
|
+
pipe_table_cell: string;
|
|
26
|
+
};
|
|
27
|
+
infoStringMap: {
|
|
28
|
+
javascript: string;
|
|
29
|
+
js: string;
|
|
30
|
+
typescript: string;
|
|
31
|
+
ts: string;
|
|
32
|
+
markdown: string;
|
|
33
|
+
md: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
})[];
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export interface HighlightRange {
|
|
2
|
+
startCol: number;
|
|
3
|
+
endCol: number;
|
|
4
|
+
group: string;
|
|
5
|
+
}
|
|
6
|
+
export interface HighlightResponse {
|
|
7
|
+
line: number;
|
|
8
|
+
highlights: HighlightRange[];
|
|
9
|
+
droppedHighlights: HighlightRange[];
|
|
10
|
+
}
|
|
11
|
+
export interface HighlightMeta {
|
|
12
|
+
isInjection?: boolean;
|
|
13
|
+
injectionLang?: string;
|
|
14
|
+
containsInjection?: boolean;
|
|
15
|
+
conceal?: string | null;
|
|
16
|
+
concealLines?: string | null;
|
|
17
|
+
}
|
|
18
|
+
export type SimpleHighlight = [number, number, string, HighlightMeta?];
|
|
19
|
+
export interface InjectionMapping {
|
|
20
|
+
nodeTypes?: {
|
|
21
|
+
[nodeType: string]: string;
|
|
22
|
+
};
|
|
23
|
+
infoStringMap?: {
|
|
24
|
+
[infoString: string]: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface FiletypeParserOptions {
|
|
28
|
+
filetype: string;
|
|
29
|
+
queries: {
|
|
30
|
+
highlights: string[];
|
|
31
|
+
injections?: string[];
|
|
32
|
+
};
|
|
33
|
+
wasm: string;
|
|
34
|
+
injectionMapping?: InjectionMapping;
|
|
35
|
+
}
|
|
36
|
+
export interface BufferState {
|
|
37
|
+
id: number;
|
|
38
|
+
version: number;
|
|
39
|
+
content: string;
|
|
40
|
+
filetype: string;
|
|
41
|
+
hasParser: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface ParsedBuffer extends BufferState {
|
|
44
|
+
hasParser: true;
|
|
45
|
+
}
|
|
46
|
+
export interface TreeSitterClientEvents {
|
|
47
|
+
"highlights:response": [bufferId: number, version: number, highlights: HighlightResponse[]];
|
|
48
|
+
"buffer:initialized": [bufferId: number, hasParser: boolean];
|
|
49
|
+
"buffer:disposed": [bufferId: number];
|
|
50
|
+
"worker:log": [logType: "log" | "error", message: string];
|
|
51
|
+
error: [error: string, bufferId?: number];
|
|
52
|
+
warning: [warning: string, bufferId?: number];
|
|
53
|
+
}
|
|
54
|
+
export interface TreeSitterClientOptions {
|
|
55
|
+
dataPath: string;
|
|
56
|
+
workerPath?: string | URL;
|
|
57
|
+
initTimeout?: number;
|
|
58
|
+
}
|
|
59
|
+
export interface Edit {
|
|
60
|
+
startIndex: number;
|
|
61
|
+
oldEndIndex: number;
|
|
62
|
+
newEndIndex: number;
|
|
63
|
+
startPosition: {
|
|
64
|
+
row: number;
|
|
65
|
+
column: number;
|
|
66
|
+
};
|
|
67
|
+
oldEndPosition: {
|
|
68
|
+
row: number;
|
|
69
|
+
column: number;
|
|
70
|
+
};
|
|
71
|
+
newEndPosition: {
|
|
72
|
+
row: number;
|
|
73
|
+
column: number;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export interface PerformanceStats {
|
|
77
|
+
averageParseTime: number;
|
|
78
|
+
parseTimes: number[];
|
|
79
|
+
averageQueryTime: number;
|
|
80
|
+
queryTimes: number[];
|
|
81
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TextChunk } from "../text-buffer";
|
|
2
|
+
import { StyledText } from "./styled-text";
|
|
3
|
+
import { SyntaxStyle } from "../syntax-style";
|
|
4
|
+
import { TreeSitterClient } from "./tree-sitter/client";
|
|
5
|
+
import type { SimpleHighlight } from "./tree-sitter/types";
|
|
6
|
+
interface ConcealOptions {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function treeSitterToTextChunks(content: string, highlights: SimpleHighlight[], syntaxStyle: SyntaxStyle, options?: ConcealOptions): TextChunk[];
|
|
10
|
+
export interface TreeSitterToStyledTextOptions {
|
|
11
|
+
conceal?: ConcealOptions;
|
|
12
|
+
}
|
|
13
|
+
export declare function treeSitterToStyledText(content: string, filetype: string, syntaxStyle: SyntaxStyle, client: TreeSitterClient, options?: TreeSitterToStyledTextOptions): Promise<StyledText>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isValidDirectoryName(name: string): boolean;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BoxSizing, Align, Dimension, Direction, Display, Edge, FlexDirection, Gutter, Justify, LogLevel, MeasureMode, Overflow, PositionType, Unit, Wrap } from "yoga-layout";
|
|
2
|
+
export type AlignString = "auto" | "flex-start" | "center" | "flex-end" | "stretch" | "baseline" | "space-between" | "space-around" | "space-evenly";
|
|
3
|
+
export type BoxSizingString = "border-box" | "content-box";
|
|
4
|
+
export type DimensionString = "width" | "height";
|
|
5
|
+
export type DirectionString = "inherit" | "ltr" | "rtl";
|
|
6
|
+
export type DisplayString = "flex" | "none" | "contents";
|
|
7
|
+
export type EdgeString = "left" | "top" | "right" | "bottom" | "start" | "end" | "horizontal" | "vertical" | "all";
|
|
8
|
+
export type FlexDirectionString = "column" | "column-reverse" | "row" | "row-reverse";
|
|
9
|
+
export type GutterString = "column" | "row" | "all";
|
|
10
|
+
export type JustifyString = "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly";
|
|
11
|
+
export type LogLevelString = "error" | "warn" | "info" | "debug" | "verbose" | "fatal";
|
|
12
|
+
export type MeasureModeString = "undefined" | "exactly" | "at-most";
|
|
13
|
+
export type OverflowString = "visible" | "hidden" | "scroll";
|
|
14
|
+
export type PositionTypeString = "static" | "relative" | "absolute";
|
|
15
|
+
export type UnitString = "undefined" | "point" | "percent" | "auto";
|
|
16
|
+
export type WrapString = "no-wrap" | "wrap" | "wrap-reverse";
|
|
17
|
+
export declare function parseAlign(value: string | null | undefined): Align;
|
|
18
|
+
export declare function parseAlignItems(value: string | null | undefined): Align;
|
|
19
|
+
export declare function parseBoxSizing(value: string): BoxSizing;
|
|
20
|
+
export declare function parseDimension(value: string): Dimension;
|
|
21
|
+
export declare function parseDirection(value: string): Direction;
|
|
22
|
+
export declare function parseDisplay(value: string): Display;
|
|
23
|
+
export declare function parseEdge(value: string): Edge;
|
|
24
|
+
export declare function parseFlexDirection(value: string | null | undefined): FlexDirection;
|
|
25
|
+
export declare function parseGutter(value: string): Gutter;
|
|
26
|
+
export declare function parseJustify(value: string | null | undefined): Justify;
|
|
27
|
+
export declare function parseLogLevel(value: string): LogLevel;
|
|
28
|
+
export declare function parseMeasureMode(value: string): MeasureMode;
|
|
29
|
+
export declare function parseOverflow(value: string | null | undefined): Overflow;
|
|
30
|
+
export declare function parsePositionType(value: string | null | undefined): PositionType;
|
|
31
|
+
export declare function parseUnit(value: string): Unit;
|
|
32
|
+
export declare function parseWrap(value: string | null | undefined): Wrap;
|
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cascadetui/core",
|
|
3
|
+
"module": "index.js",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"types": "index.d.ts",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"version": "0.1.1",
|
|
8
|
+
"description": "Cascade is a TypeScript library on a native Zig core for building terminal user interfaces (TUIs)",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/kirosnn/cascade",
|
|
13
|
+
"directory": "packages/core"
|
|
14
|
+
},
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./index.js",
|
|
18
|
+
"require": "./index.js",
|
|
19
|
+
"types": "./index.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./3d": {
|
|
22
|
+
"import": "./3d.js",
|
|
23
|
+
"require": "./3d.js",
|
|
24
|
+
"types": "./3d.d.ts"
|
|
25
|
+
},
|
|
26
|
+
"./testing": {
|
|
27
|
+
"import": "./testing.js",
|
|
28
|
+
"require": "./testing.js",
|
|
29
|
+
"types": "./testing.d.ts"
|
|
30
|
+
},
|
|
31
|
+
"./parser.worker": {
|
|
32
|
+
"import": "./lib/tree-sitter/parser.worker.js",
|
|
33
|
+
"require": "./lib/tree-sitter/parser.worker.js",
|
|
34
|
+
"types": "./lib/tree-sitter/parser.worker.d.ts"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"bun-ffi-structs": "0.1.2",
|
|
39
|
+
"diff": "8.0.2",
|
|
40
|
+
"jimp": "1.6.0",
|
|
41
|
+
"marked": "17.0.1",
|
|
42
|
+
"yoga-layout": "3.2.1"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/bun": "latest",
|
|
46
|
+
"@types/node": "^24.0.0",
|
|
47
|
+
"@types/three": "0.177.0",
|
|
48
|
+
"commander": "^13.1.0",
|
|
49
|
+
"typescript": "^5",
|
|
50
|
+
"web-tree-sitter": "0.25.10"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"web-tree-sitter": "0.25.10"
|
|
54
|
+
},
|
|
55
|
+
"optionalDependencies": {
|
|
56
|
+
"@dimforge/rapier2d-simd-compat": "^0.17.3",
|
|
57
|
+
"bun-webgpu": "0.1.5",
|
|
58
|
+
"planck": "^1.4.2",
|
|
59
|
+
"three": "0.177.0",
|
|
60
|
+
"@cascadetui/core-win32-x64": "0.1.1",
|
|
61
|
+
"@cascadetui/core-win32-arm64": "0.1.1",
|
|
62
|
+
"@cascadetui/core-darwin-x64": "0.1.1",
|
|
63
|
+
"@cascadetui/core-darwin-arm64": "0.1.1",
|
|
64
|
+
"@cascadetui/core-linux-x64": "0.1.1",
|
|
65
|
+
"@cascadetui/core-linux-arm64": "0.1.1"
|
|
66
|
+
}
|
|
67
|
+
}
|