@gridland/demo 0.2.41 → 0.2.43
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/dist/run.js +12 -31
- package/package.json +2 -2
package/dist/run.js
CHANGED
|
@@ -18,12 +18,17 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
18
18
|
import "react";
|
|
19
19
|
import { createContext as createContext2 } from "react";
|
|
20
20
|
import { createElement } from "react";
|
|
21
|
-
var
|
|
22
|
-
|
|
21
|
+
var __BUNFFI$;
|
|
22
|
+
try {
|
|
23
|
+
__BUNFFI$ = await import("bun:ffi");
|
|
24
|
+
} catch {
|
|
25
|
+
}
|
|
26
|
+
var __EXT$ = { "react": __REACT$, "bun:ffi": __BUNFFI$ };
|
|
27
|
+
var require2 = (id) => {
|
|
23
28
|
var m2 = __EXT$[id];
|
|
24
29
|
if (m2) return m2;
|
|
25
30
|
throw new Error('Dynamic require of "' + id + '" is not supported');
|
|
26
|
-
}
|
|
31
|
+
};
|
|
27
32
|
if (typeof process2 === "undefined") process2 = { env: {} };
|
|
28
33
|
var process2;
|
|
29
34
|
var __create = Object.create;
|
|
@@ -64,30 +69,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
64
69
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
65
70
|
mod
|
|
66
71
|
));
|
|
67
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
68
|
-
var bun_stub_exports = {};
|
|
69
|
-
__export(bun_stub_exports, {
|
|
70
|
-
CString: () => CString,
|
|
71
|
-
FFIType: () => FFIType,
|
|
72
|
-
default: () => bun_stub_default,
|
|
73
|
-
ptr: () => ptr,
|
|
74
|
-
toBuffer: () => toBuffer
|
|
75
|
-
});
|
|
76
|
-
var bun_stub_default;
|
|
77
|
-
var ptr;
|
|
78
|
-
var toBuffer;
|
|
79
|
-
var CString;
|
|
80
|
-
var FFIType;
|
|
81
|
-
var init_bun_stub = __esm({
|
|
82
|
-
"stub:bun-stub"() {
|
|
83
|
-
bun_stub_default = {};
|
|
84
|
-
ptr = () => 0;
|
|
85
|
-
toBuffer = () => new Uint8Array();
|
|
86
|
-
CString = class {
|
|
87
|
-
};
|
|
88
|
-
FFIType = {};
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
72
|
var require_scheduler_production = __commonJS({
|
|
92
73
|
"../../opentui/node_modules/.bun/scheduler@0.26.0/node_modules/scheduler/cjs/scheduler.production.js"(exports) {
|
|
93
74
|
"use strict";
|
|
@@ -25582,7 +25563,7 @@ function resolveRenderLib() {
|
|
|
25582
25563
|
}
|
|
25583
25564
|
return _renderLib;
|
|
25584
25565
|
}
|
|
25585
|
-
if (
|
|
25566
|
+
if (typeof globalThis.Bun !== "undefined") {
|
|
25586
25567
|
const zigPath = "./zig";
|
|
25587
25568
|
try {
|
|
25588
25569
|
await import(zigPath);
|
|
@@ -25591,7 +25572,7 @@ if (false) {
|
|
|
25591
25572
|
}
|
|
25592
25573
|
var _ffi;
|
|
25593
25574
|
function getFfi() {
|
|
25594
|
-
return _ffi ??= (
|
|
25575
|
+
return _ffi ??= __require("bun:ffi");
|
|
25595
25576
|
}
|
|
25596
25577
|
function packDrawOptions(border, shouldFill, titleAlignment) {
|
|
25597
25578
|
let packed = 0;
|
|
@@ -25652,14 +25633,14 @@ var OptimizedBuffer2 = class _OptimizedBuffer {
|
|
|
25652
25633
|
}
|
|
25653
25634
|
return this._rawBuffers;
|
|
25654
25635
|
}
|
|
25655
|
-
constructor(lib,
|
|
25636
|
+
constructor(lib, ptr, width, height, options) {
|
|
25656
25637
|
this.id = options.id || `fb_${_OptimizedBuffer.fbIdCounter++}`;
|
|
25657
25638
|
this.lib = lib;
|
|
25658
25639
|
this.respectAlpha = options.respectAlpha || false;
|
|
25659
25640
|
this._width = width;
|
|
25660
25641
|
this._height = height;
|
|
25661
25642
|
this._widthMethod = options.widthMethod || "unicode";
|
|
25662
|
-
this.bufferPtr =
|
|
25643
|
+
this.bufferPtr = ptr;
|
|
25663
25644
|
}
|
|
25664
25645
|
static create(width, height, widthMethod, options = {}) {
|
|
25665
25646
|
const lib = resolveRenderLib();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridland/demo",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.43",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Run gridland component demos from anywhere",
|
|
6
6
|
"exports": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"test": "bun test"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@gridland/bun": "0.2.
|
|
24
|
+
"@gridland/bun": "0.2.43",
|
|
25
25
|
"figlet": "^1.10.0",
|
|
26
26
|
"react": "^19.0.0"
|
|
27
27
|
},
|