@gridland/demo 0.2.41 → 0.2.42
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 +8 -30
- package/package.json +2 -2
package/dist/run.js
CHANGED
|
@@ -19,11 +19,13 @@ import "react";
|
|
|
19
19
|
import { createContext as createContext2 } from "react";
|
|
20
20
|
import { createElement } from "react";
|
|
21
21
|
var __EXT$ = { "react": __REACT$ };
|
|
22
|
-
var
|
|
22
|
+
var __origRequire = typeof globalThis.require === "function" ? globalThis.require : null;
|
|
23
|
+
var require2 = (id) => {
|
|
23
24
|
var m2 = __EXT$[id];
|
|
24
25
|
if (m2) return m2;
|
|
26
|
+
if (__origRequire) return __origRequire(id);
|
|
25
27
|
throw new Error('Dynamic require of "' + id + '" is not supported');
|
|
26
|
-
}
|
|
28
|
+
};
|
|
27
29
|
if (typeof process2 === "undefined") process2 = { env: {} };
|
|
28
30
|
var process2;
|
|
29
31
|
var __create = Object.create;
|
|
@@ -64,30 +66,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
64
66
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
65
67
|
mod
|
|
66
68
|
));
|
|
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
69
|
var require_scheduler_production = __commonJS({
|
|
92
70
|
"../../opentui/node_modules/.bun/scheduler@0.26.0/node_modules/scheduler/cjs/scheduler.production.js"(exports) {
|
|
93
71
|
"use strict";
|
|
@@ -25582,7 +25560,7 @@ function resolveRenderLib() {
|
|
|
25582
25560
|
}
|
|
25583
25561
|
return _renderLib;
|
|
25584
25562
|
}
|
|
25585
|
-
if (
|
|
25563
|
+
if (typeof globalThis.Bun !== "undefined") {
|
|
25586
25564
|
const zigPath = "./zig";
|
|
25587
25565
|
try {
|
|
25588
25566
|
await import(zigPath);
|
|
@@ -25591,7 +25569,7 @@ if (false) {
|
|
|
25591
25569
|
}
|
|
25592
25570
|
var _ffi;
|
|
25593
25571
|
function getFfi() {
|
|
25594
|
-
return _ffi ??= (
|
|
25572
|
+
return _ffi ??= __require("bun:ffi");
|
|
25595
25573
|
}
|
|
25596
25574
|
function packDrawOptions(border, shouldFill, titleAlignment) {
|
|
25597
25575
|
let packed = 0;
|
|
@@ -25652,14 +25630,14 @@ var OptimizedBuffer2 = class _OptimizedBuffer {
|
|
|
25652
25630
|
}
|
|
25653
25631
|
return this._rawBuffers;
|
|
25654
25632
|
}
|
|
25655
|
-
constructor(lib,
|
|
25633
|
+
constructor(lib, ptr, width, height, options) {
|
|
25656
25634
|
this.id = options.id || `fb_${_OptimizedBuffer.fbIdCounter++}`;
|
|
25657
25635
|
this.lib = lib;
|
|
25658
25636
|
this.respectAlpha = options.respectAlpha || false;
|
|
25659
25637
|
this._width = width;
|
|
25660
25638
|
this._height = height;
|
|
25661
25639
|
this._widthMethod = options.widthMethod || "unicode";
|
|
25662
|
-
this.bufferPtr =
|
|
25640
|
+
this.bufferPtr = ptr;
|
|
25663
25641
|
}
|
|
25664
25642
|
static create(width, height, widthMethod, options = {}) {
|
|
25665
25643
|
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.42",
|
|
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.42",
|
|
25
25
|
"figlet": "^1.10.0",
|
|
26
26
|
"react": "^19.0.0"
|
|
27
27
|
},
|