@gridland/utils 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/index.js +5 -27
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as __REACT$ from "react"; var __EXT$ = { "react": __REACT$ }; var
|
|
1
|
+
import * as __REACT$ from "react"; var __EXT$ = { "react": __REACT$ }; var __origRequire = typeof globalThis.require === "function" ? globalThis.require : null; var require = (id) => { var m = __EXT$[id]; if (m) return m; if (__origRequire) return __origRequire(id); throw new Error('Dynamic require of "' + id + '" is not supported'); }; if (typeof process === "undefined") var process = { env: {} };
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -37,28 +37,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
37
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
38
38
|
mod
|
|
39
39
|
));
|
|
40
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
41
|
-
|
|
42
|
-
// stub:bun-stub
|
|
43
|
-
var bun_stub_exports = {};
|
|
44
|
-
__export(bun_stub_exports, {
|
|
45
|
-
CString: () => CString,
|
|
46
|
-
FFIType: () => FFIType,
|
|
47
|
-
default: () => bun_stub_default,
|
|
48
|
-
ptr: () => ptr,
|
|
49
|
-
toBuffer: () => toBuffer
|
|
50
|
-
});
|
|
51
|
-
var bun_stub_default, ptr, toBuffer, CString, FFIType;
|
|
52
|
-
var init_bun_stub = __esm({
|
|
53
|
-
"stub:bun-stub"() {
|
|
54
|
-
bun_stub_default = {};
|
|
55
|
-
ptr = () => 0;
|
|
56
|
-
toBuffer = () => new Uint8Array();
|
|
57
|
-
CString = class {
|
|
58
|
-
};
|
|
59
|
-
FFIType = {};
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
40
|
|
|
63
41
|
// ../../opentui/node_modules/.bun/scheduler@0.26.0/node_modules/scheduler/cjs/scheduler.production.js
|
|
64
42
|
var require_scheduler_production = __commonJS({
|
|
@@ -27328,7 +27306,7 @@ function resolveRenderLib() {
|
|
|
27328
27306
|
function hasRenderLib() {
|
|
27329
27307
|
return _renderLib !== void 0;
|
|
27330
27308
|
}
|
|
27331
|
-
if (
|
|
27309
|
+
if (typeof globalThis.Bun !== "undefined") {
|
|
27332
27310
|
const zigPath = "./zig";
|
|
27333
27311
|
try {
|
|
27334
27312
|
await import(zigPath);
|
|
@@ -27339,7 +27317,7 @@ if (false) {
|
|
|
27339
27317
|
// ../../opentui/packages/core/src/buffer.ts
|
|
27340
27318
|
var _ffi;
|
|
27341
27319
|
function getFfi() {
|
|
27342
|
-
return _ffi ??= (
|
|
27320
|
+
return _ffi ??= __require("bun:ffi");
|
|
27343
27321
|
}
|
|
27344
27322
|
function packDrawOptions(border, shouldFill, titleAlignment) {
|
|
27345
27323
|
let packed = 0;
|
|
@@ -27400,14 +27378,14 @@ var OptimizedBuffer2 = class _OptimizedBuffer {
|
|
|
27400
27378
|
}
|
|
27401
27379
|
return this._rawBuffers;
|
|
27402
27380
|
}
|
|
27403
|
-
constructor(lib,
|
|
27381
|
+
constructor(lib, ptr, width, height, options) {
|
|
27404
27382
|
this.id = options.id || `fb_${_OptimizedBuffer.fbIdCounter++}`;
|
|
27405
27383
|
this.lib = lib;
|
|
27406
27384
|
this.respectAlpha = options.respectAlpha || false;
|
|
27407
27385
|
this._width = width;
|
|
27408
27386
|
this._height = height;
|
|
27409
27387
|
this._widthMethod = options.widthMethod || "unicode";
|
|
27410
|
-
this.bufferPtr =
|
|
27388
|
+
this.bufferPtr = ptr;
|
|
27411
27389
|
}
|
|
27412
27390
|
static create(width, height, widthMethod, options = {}) {
|
|
27413
27391
|
const lib = resolveRenderLib();
|