tsquare 0.12.1 → 0.12.2
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/CHANGELOG.md +6 -0
- package/dist/browser/index.js +15 -15
- package/dist/catalog.d.ts +1 -1
- package/dist/chunks/{chunk-QWQT7224.js → chunk-NYVFYSZ6.js} +1 -1
- package/dist/chunks/{chunk-EY7YIRMK.js → chunk-WRN5ADPR.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +3 -3
- package/dist/mcp.d.ts +1 -1
- package/dist/playground/index.js +2 -2
- package/dist/tsquare.min.js +69 -69
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.2
|
|
4
|
+
|
|
5
|
+
The language and the renderer haven't changed: every wireframe renders exactly as in 0.12.1, and render URLs give the same images.
|
|
6
|
+
|
|
7
|
+
- **Loads in Docusaurus:** Docusaurus loads its config, and the remark plugins in it, through jiti 1, which turned `import { z } from "zod"` into `undefined`, so importing tsquare there failed with "Cannot read properties of undefined (reading 'enum')". tsquare now imports zod as `import * as z from "zod"` (the form zod recommends), and a test loads the build through jiti 1.
|
|
8
|
+
|
|
3
9
|
## 0.12.1
|
|
4
10
|
|
|
5
11
|
The language and the renderer haven't changed: every wireframe renders exactly as in 0.12.0, and render URLs give the same images.
|
package/dist/browser/index.js
CHANGED
|
@@ -308,16 +308,16 @@ var require_swap = __commonJS({
|
|
|
308
308
|
b[n] = b[m2];
|
|
309
309
|
b[m2] = i2;
|
|
310
310
|
};
|
|
311
|
-
var swap32 = (
|
|
312
|
-
const len =
|
|
311
|
+
var swap32 = (array3) => {
|
|
312
|
+
const len = array3.length;
|
|
313
313
|
for (let i2 = 0; i2 < len; i2 += 4) {
|
|
314
|
-
swap(
|
|
315
|
-
swap(
|
|
314
|
+
swap(array3, i2, i2 + 3);
|
|
315
|
+
swap(array3, i2 + 1, i2 + 2);
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
|
-
var swap32LE = (
|
|
318
|
+
var swap32LE = (array3) => {
|
|
319
319
|
if (isBigEndian) {
|
|
320
|
-
swap32(
|
|
320
|
+
swap32(array3);
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
323
|
module.exports = {
|
|
@@ -2112,8 +2112,8 @@ var require_escape_html = __commonJS({
|
|
|
2112
2112
|
"use strict";
|
|
2113
2113
|
var matchHtmlRegExp = /["'&<>]/;
|
|
2114
2114
|
module.exports = escapeHtml;
|
|
2115
|
-
function escapeHtml(
|
|
2116
|
-
var str = "" +
|
|
2115
|
+
function escapeHtml(string3) {
|
|
2116
|
+
var str = "" + string3;
|
|
2117
2117
|
var match = matchHtmlRegExp.exec(str);
|
|
2118
2118
|
if (!match) {
|
|
2119
2119
|
return str;
|
|
@@ -3481,8 +3481,8 @@ var $557adaaeb0c7885f$var$LineBreaker = class {
|
|
|
3481
3481
|
}
|
|
3482
3482
|
return null;
|
|
3483
3483
|
}
|
|
3484
|
-
constructor(
|
|
3485
|
-
this.string =
|
|
3484
|
+
constructor(string3) {
|
|
3485
|
+
this.string = string3;
|
|
3486
3486
|
this.pos = 0;
|
|
3487
3487
|
this.lastPos = 0;
|
|
3488
3488
|
this.curClass = null;
|
|
@@ -6053,12 +6053,12 @@ Parser.prototype.parseFixed = function() {
|
|
|
6053
6053
|
Parser.prototype.parseString = function(length) {
|
|
6054
6054
|
var dataView = this.data;
|
|
6055
6055
|
var offset = this.offset + this.relativeOffset;
|
|
6056
|
-
var
|
|
6056
|
+
var string3 = "";
|
|
6057
6057
|
this.relativeOffset += length;
|
|
6058
6058
|
for (var i2 = 0; i2 < length; i2++) {
|
|
6059
|
-
|
|
6059
|
+
string3 += String.fromCharCode(dataView.getUint8(offset + i2));
|
|
6060
6060
|
}
|
|
6061
|
-
return
|
|
6061
|
+
return string3;
|
|
6062
6062
|
};
|
|
6063
6063
|
Parser.prototype.parseTag = function() {
|
|
6064
6064
|
return this.parseString(4);
|
|
@@ -19953,7 +19953,7 @@ async function renderToSvg(spec, options = {}) {
|
|
|
19953
19953
|
|
|
19954
19954
|
// src/catalog.ts
|
|
19955
19955
|
import { defineCatalog } from "@json-render/core";
|
|
19956
|
-
import
|
|
19956
|
+
import * as z from "zod";
|
|
19957
19957
|
|
|
19958
19958
|
// src/layout.ts
|
|
19959
19959
|
var theme = {
|
|
@@ -23264,7 +23264,7 @@ function decodeWireframe(data) {
|
|
|
23264
23264
|
}
|
|
23265
23265
|
|
|
23266
23266
|
// src/mcp.ts
|
|
23267
|
-
import
|
|
23267
|
+
import * as z2 from "zod";
|
|
23268
23268
|
|
|
23269
23269
|
// src/escape.ts
|
|
23270
23270
|
var escapeAttr = (s) => s.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">").replace(/[\r\n]+/g, " ");
|
package/dist/catalog.d.ts
CHANGED
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
languageData
|
|
3
|
-
} from "./chunks/chunk-
|
|
3
|
+
} from "./chunks/chunk-NYVFYSZ6.js";
|
|
4
4
|
import {
|
|
5
5
|
DEVICES,
|
|
6
6
|
RENAMED_PROPS,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
upgradeSpec,
|
|
25
25
|
upgradeWireframe,
|
|
26
26
|
wireframePrompt
|
|
27
|
-
} from "./chunks/chunk-
|
|
27
|
+
} from "./chunks/chunk-WRN5ADPR.js";
|
|
28
28
|
|
|
29
29
|
// src/deflate.ts
|
|
30
30
|
import { deflateRawSync, inflateRawSync } from "node:zlib";
|
|
@@ -49,7 +49,7 @@ function decodeWireframe(data) {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// src/mcp.ts
|
|
52
|
-
import
|
|
52
|
+
import * as z from "zod";
|
|
53
53
|
|
|
54
54
|
// src/escape.ts
|
|
55
55
|
var escapeAttr = (s) => s.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">").replace(/[\r\n]+/g, " ");
|
package/dist/mcp.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Problems come back as a result with isError, not a thrown error, so the model reads them and fixes
|
|
7
7
|
* its text: the messages are the same line-numbered ones `tsquare check` prints.
|
|
8
8
|
*/
|
|
9
|
-
import
|
|
9
|
+
import * as z from "zod";
|
|
10
10
|
export type ToolContent = {
|
|
11
11
|
type: "text";
|
|
12
12
|
text: string;
|
package/dist/playground/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
languageData
|
|
3
|
-
} from "../chunks/chunk-
|
|
3
|
+
} from "../chunks/chunk-NYVFYSZ6.js";
|
|
4
4
|
import {
|
|
5
5
|
boardLayout,
|
|
6
6
|
compileWireframe,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
renderWireframePng,
|
|
10
10
|
renderWireframeSvg,
|
|
11
11
|
wireframePrompt
|
|
12
|
-
} from "../chunks/chunk-
|
|
12
|
+
} from "../chunks/chunk-WRN5ADPR.js";
|
|
13
13
|
|
|
14
14
|
// src/playground/index.ts
|
|
15
15
|
import { createServer } from "node:http";
|