@wireweave/core 4.0.0-beta.14 → 4.0.0-beta.16
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/app.cjs +13 -13
- package/dist/app.d.cts +2 -2
- package/dist/app.d.ts +2 -2
- package/dist/app.js +2 -2
- package/dist/{chunk-TQSOLTMZ.js → chunk-6EMG345O.js} +251 -41
- package/dist/{chunk-NV6UV5ID.cjs → chunk-7ZRMSFWZ.cjs} +286 -75
- package/dist/{chunk-ZPHNXJRY.cjs → chunk-CGTYVLPA.cjs} +4 -4
- package/dist/{chunk-IMUVIIJR.cjs → chunk-EWCLLW6P.cjs} +11 -3
- package/dist/{chunk-SAN6CJEE.cjs → chunk-J5WEVZIX.cjs} +134 -493
- package/dist/chunk-KEQRLZQP.js +3066 -0
- package/dist/{chunk-XYACLXXF.js → chunk-LBJTNQXU.js} +1 -1
- package/dist/{chunk-4DDV6Z2X.js → chunk-MLCJ6NIB.js} +3 -3
- package/dist/{chunk-2Y3GKARZ.js → chunk-NMIPMOEJ.js} +73 -432
- package/dist/chunk-WCCYK5WK.cjs +3077 -0
- package/dist/{chunk-LA5LKIEL.cjs → chunk-XZL42ZQ2.cjs} +28 -28
- package/dist/{chunk-3RWGG5EC.js → chunk-YAANMWP2.js} +11 -4
- package/dist/{index-BD_4rXH-.d.cts → index-CIfur9e3.d.cts} +1 -1
- package/dist/{index-YSIzfhOd.d.cts → index-DdQv4Bu5.d.cts} +7 -1
- package/dist/{index-g9yV20xb.d.ts → index-DwGsnD0n.d.ts} +1 -1
- package/dist/{index-BEnsO2kE.d.ts → index-c4FTW7XA.d.ts} +7 -1
- package/dist/index.cjs +238 -222
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +11 -11
- package/dist/interaction.cjs +6 -6
- package/dist/interaction.js +1 -1
- package/dist/parser.cjs +9 -9
- package/dist/parser.js +1 -1
- package/dist/renderer.cjs +32 -32
- package/dist/renderer.d.cts +2 -2
- package/dist/renderer.d.ts +2 -2
- package/dist/renderer.js +3 -3
- package/dist/spec.cjs +39 -23
- package/dist/spec.d.cts +45 -1
- package/dist/spec.d.ts +45 -1
- package/dist/spec.js +1 -1
- package/package.json +19 -13
- package/dist/chunk-MD6MNOEQ.cjs +0 -2884
- package/dist/chunk-V3HVWC7C.js +0 -2874
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWCCYK5WK_cjs = require('./chunk-WCCYK5WK.cjs');
|
|
4
4
|
var chunkETV4XYOV_cjs = require('./chunk-ETV4XYOV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/ast/guards.ts
|
|
@@ -2711,7 +2711,7 @@ var BaseRenderer = class {
|
|
|
2711
2711
|
var INTERACTION_KINDS = ["navigate", "opens", "toggles", "action"];
|
|
2712
2712
|
function categoryOf(node) {
|
|
2713
2713
|
var _a;
|
|
2714
|
-
return (_a =
|
|
2714
|
+
return (_a = chunkWCCYK5WK_cjs.ELEMENT_NODE_TYPE_MAP.get(node.type)) == null ? void 0 : _a.category;
|
|
2715
2715
|
}
|
|
2716
2716
|
function getLabel(node) {
|
|
2717
2717
|
if ("label" in node && typeof node.label === "string") return node.label;
|
|
@@ -50913,7 +50913,7 @@ exports.HtmlRenderer = class HtmlRenderer extends BaseRenderer {
|
|
|
50913
50913
|
*/
|
|
50914
50914
|
renderPage(node) {
|
|
50915
50915
|
var _a, _b;
|
|
50916
|
-
let viewport =
|
|
50916
|
+
let viewport = chunkWCCYK5WK_cjs.resolveViewport(node.viewport, node.device);
|
|
50917
50917
|
const nodeAny = node;
|
|
50918
50918
|
const explicitW = (_a = node.w) != null ? _a : nodeAny.width;
|
|
50919
50919
|
const explicitH = (_b = node.h) != null ? _b : nodeAny.height;
|
|
@@ -51454,7 +51454,7 @@ function resolvePageDimensions(page) {
|
|
|
51454
51454
|
if (typeof explicitW === "number" && typeof explicitH === "number") {
|
|
51455
51455
|
return { width: explicitW, height: explicitH };
|
|
51456
51456
|
}
|
|
51457
|
-
const viewport =
|
|
51457
|
+
const viewport = chunkWCCYK5WK_cjs.resolveViewport(page.viewport, page.device);
|
|
51458
51458
|
return { width: viewport.width, height: viewport.height };
|
|
51459
51459
|
}
|
|
51460
51460
|
/**
|
|
@@ -2815,6 +2815,7 @@ var schema_default = {
|
|
|
2815
2815
|
"pb",
|
|
2816
2816
|
"pl",
|
|
2817
2817
|
"pr",
|
|
2818
|
+
"primary",
|
|
2818
2819
|
"pt",
|
|
2819
2820
|
"px",
|
|
2820
2821
|
"py",
|
|
@@ -5496,6 +5497,7 @@ var schema_default = {
|
|
|
5496
5497
|
},
|
|
5497
5498
|
assets: {
|
|
5498
5499
|
type: "array",
|
|
5500
|
+
description: "Ordered manifest bytes. Core validates unique IDs, digest/byteLength/base64, media content and the 32 MiB aggregate limit before app compilation; the host must materialize any approved URL into these bytes.",
|
|
5499
5501
|
items: {
|
|
5500
5502
|
type: "object",
|
|
5501
5503
|
properties: {
|
|
@@ -5528,7 +5530,8 @@ var schema_default = {
|
|
|
5528
5530
|
const: "15.1.0"
|
|
5529
5531
|
},
|
|
5530
5532
|
fontAssetId: {
|
|
5531
|
-
$ref: "#/$defs/Id"
|
|
5533
|
+
$ref: "#/$defs/Id",
|
|
5534
|
+
description: "Optional asset ID that must resolve to a validated font/woff2 manifest entry."
|
|
5532
5535
|
}
|
|
5533
5536
|
},
|
|
5534
5537
|
required: [
|
|
@@ -6007,6 +6010,7 @@ var schema_default = {
|
|
|
6007
6010
|
additionalProperties: false
|
|
6008
6011
|
},
|
|
6009
6012
|
RuntimeInput: {
|
|
6013
|
+
description: "Closed conformance input union. Event value/checked/key fields are further constrained by the native event and addressed control; unknown fields are rejected.",
|
|
6010
6014
|
oneOf: [
|
|
6011
6015
|
{
|
|
6012
6016
|
type: "object",
|
|
@@ -7102,6 +7106,7 @@ var schema_default = {
|
|
|
7102
7106
|
"pb",
|
|
7103
7107
|
"pl",
|
|
7104
7108
|
"pr",
|
|
7109
|
+
"primary",
|
|
7105
7110
|
"pt",
|
|
7106
7111
|
"px",
|
|
7107
7112
|
"py",
|
|
@@ -9275,9 +9280,8 @@ var SHA256_K = new Uint32Array([
|
|
|
9275
9280
|
3204031479,
|
|
9276
9281
|
3329325298
|
|
9277
9282
|
]);
|
|
9278
|
-
function
|
|
9283
|
+
function digestBytesV4(bytes) {
|
|
9279
9284
|
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
9280
|
-
const bytes = new TextEncoder().encode(source);
|
|
9281
9285
|
const padded = new Uint8Array(Math.ceil((bytes.length + 9) / 64) * 64);
|
|
9282
9286
|
padded.set(bytes);
|
|
9283
9287
|
padded[bytes.length] = 128;
|
|
@@ -9322,6 +9326,9 @@ function digestV4(source) {
|
|
|
9322
9326
|
}
|
|
9323
9327
|
return `sha256:${hash.map((value) => value.toString(16).padStart(8, "0")).join("")}`;
|
|
9324
9328
|
}
|
|
9329
|
+
function digestV4(source) {
|
|
9330
|
+
return digestBytesV4(new TextEncoder().encode(source));
|
|
9331
|
+
}
|
|
9325
9332
|
|
|
9326
9333
|
// src/parser/v4.ts
|
|
9327
9334
|
var shapes = schema_default.$defs;
|
|
@@ -18041,6 +18048,7 @@ function getErrors(source) {
|
|
|
18041
18048
|
return result.errors;
|
|
18042
18049
|
}
|
|
18043
18050
|
|
|
18051
|
+
exports.digestBytesV4 = digestBytesV4;
|
|
18044
18052
|
exports.digestV4 = digestV4;
|
|
18045
18053
|
exports.getErrors = getErrors;
|
|
18046
18054
|
exports.getV4SourceSpan = getV4SourceSpan;
|