@opentui/core 0.3.4 → 0.4.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/NativeSpanFeed.d.ts +4 -0
- package/Renderable.d.ts +7 -1
- package/index-07zpr2dg.js +10058 -0
- package/index-07zpr2dg.js.map +33 -0
- package/index-pcvh9d34.js +15987 -0
- package/index-pcvh9d34.js.map +57 -0
- package/index.d.ts +1 -1
- package/index.js +11296 -116
- package/index.js.map +29 -3
- package/lib/selection.d.ts +2 -1
- package/lib/singleton.d.ts +1 -0
- package/lib/tree-sitter/client.d.ts +17 -1
- package/lib/tree-sitter/index.d.ts +1 -0
- package/lib/tree-sitter/types.d.ts +104 -1
- package/lib/tree-sitter/update-assets.js +8 -6
- package/lib/tree-sitter/update-assets.js.map +3 -3
- package/lib/yoga.options.d.ts +1 -1
- package/package.json +32 -36
- package/parser.worker.js +452 -78
- package/parser.worker.js.map +8 -7
- package/platform/ffi.d.ts +6 -3
- package/platform/test.d.ts +12 -0
- package/platform/worker.d.ts +26 -4
- package/platform/worker.node-test.d.ts +1 -0
- package/renderer.d.ts +6 -0
- package/runtime-plugin-support-configure.js +36 -18
- package/runtime-plugin-support-configure.js.map +1 -9
- package/runtime-plugin-support-configure.node.js +15 -0
- package/runtime-plugin-support.js +4 -19
- package/runtime-plugin-support.js.map +1 -10
- package/runtime-plugin-support.node.js +15 -0
- package/runtime-plugin.js +473 -16
- package/runtime-plugin.js.map +1 -9
- package/runtime-plugin.node.js +15 -0
- package/testing/bun-test-node.d.ts +87 -0
- package/testing/mock-tree-sitter-client.d.ts +4 -0
- package/testing.js +18 -10
- package/testing.js.map +3 -3
- package/tests/yoga-upstream/tools/MeasureCounter.d.ts +16 -0
- package/tests/yoga-upstream/tools/utils.d.ts +11 -0
- package/yoga.d.ts +440 -0
- package/yoga.js +193 -0
- package/yoga.js.map +9 -0
- package/zig.d.ts +62 -2
- package/index-0nvgrgam.js +0 -11684
- package/index-0nvgrgam.js.map +0 -35
- package/index-54s7pk0d.js +0 -25499
- package/index-54s7pk0d.js.map +0 -84
- package/index-8t841rbx.js +0 -44
- package/index-8t841rbx.js.map +0 -10
- package/index-r49y8kdq.js +0 -421
- package/index-r49y8kdq.js.map +0 -10
package/NativeSpanFeed.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export declare class NativeSpanFeed {
|
|
|
28
28
|
private inCallback;
|
|
29
29
|
private closeQueued;
|
|
30
30
|
private idleResolvers;
|
|
31
|
+
private pendingHandlerError;
|
|
32
|
+
private pendingHandlerErrorQueued;
|
|
31
33
|
private constructor();
|
|
32
34
|
private ensureDrainBuffer;
|
|
33
35
|
onData(handler: DataHandler): () => void;
|
|
@@ -43,6 +45,8 @@ export declare class NativeSpanFeed {
|
|
|
43
45
|
idle(): Promise<void>;
|
|
44
46
|
private handleEvent;
|
|
45
47
|
private decrementRefcount;
|
|
48
|
+
private queuePendingHandlerError;
|
|
49
|
+
private throwPendingHandlerError;
|
|
46
50
|
private drainOnce;
|
|
47
51
|
drainAll(): void;
|
|
48
52
|
}
|
package/Renderable.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from "events";
|
|
2
|
-
import { type Node as YogaNode } from "yoga
|
|
2
|
+
import { type Node as YogaNode } from "./yoga.js";
|
|
3
3
|
import { OptimizedBuffer } from "./buffer.js";
|
|
4
4
|
import type { KeyEvent, PasteEvent } from "./lib/KeyHandler.js";
|
|
5
5
|
import type { Selection } from "./lib/selection.js";
|
|
@@ -275,6 +275,7 @@ export declare abstract class Renderable extends BaseRenderable {
|
|
|
275
275
|
render(buffer: OptimizedBuffer, deltaTime: number): void;
|
|
276
276
|
protected _hasVisibleChildFilter(): boolean;
|
|
277
277
|
protected _getVisibleChildren(): number[];
|
|
278
|
+
canReuseRenderCommandList(): boolean;
|
|
278
279
|
protected onUpdate(deltaTime: number): void;
|
|
279
280
|
protected getScissorRect(): {
|
|
280
281
|
x: number;
|
|
@@ -336,10 +337,15 @@ interface RenderCommandPopOpacity extends RenderCommandBase {
|
|
|
336
337
|
export type RenderCommand = RenderCommandPushScissorRect | RenderCommandPopScissorRect | RenderCommandRender | RenderCommandPushOpacity | RenderCommandPopOpacity;
|
|
337
338
|
export declare class RootRenderable extends Renderable {
|
|
338
339
|
private renderList;
|
|
340
|
+
private appliedLayoutGeneration;
|
|
341
|
+
private appliedRenderListRevision;
|
|
342
|
+
private renderListReusable;
|
|
339
343
|
constructor(ctx: RenderContext);
|
|
340
344
|
render(buffer: OptimizedBuffer, deltaTime: number): void;
|
|
341
345
|
protected propagateLiveCount(delta: number): void;
|
|
342
346
|
calculateLayout(): void;
|
|
347
|
+
private syncExternalLayoutGeneration;
|
|
348
|
+
private canReuseCurrentRenderList;
|
|
343
349
|
resize(width: number, height: number): void;
|
|
344
350
|
}
|
|
345
351
|
export {};
|