@haklex/rich-litexml-cli 0.49.0 → 0.49.1
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/cli.mjs +13 -8
- package/package.json +4 -4
package/dist/cli.mjs
CHANGED
|
@@ -12010,7 +12010,7 @@ var RubyNode = class RubyNode extends pl {
|
|
|
12010
12010
|
const json = _json;
|
|
12011
12011
|
const node = new RubyNode();
|
|
12012
12012
|
node.__reading = json.reading ?? "";
|
|
12013
|
-
return node;
|
|
12013
|
+
return node.updateFromJSON(json);
|
|
12014
12014
|
}
|
|
12015
12015
|
exportJSON() {
|
|
12016
12016
|
return {
|
|
@@ -12050,7 +12050,7 @@ var DetailsNode = class DetailsNode extends pl {
|
|
|
12050
12050
|
const node = new DetailsNode();
|
|
12051
12051
|
node.__summary = json.summary ?? "";
|
|
12052
12052
|
node.__open = json.open ?? false;
|
|
12053
|
-
return node;
|
|
12053
|
+
return node.updateFromJSON(json);
|
|
12054
12054
|
}
|
|
12055
12055
|
exportJSON() {
|
|
12056
12056
|
return {
|
|
@@ -12084,7 +12084,7 @@ var RichQuoteNode = class RichQuoteNode extends $t$2 {
|
|
|
12084
12084
|
const json = _json;
|
|
12085
12085
|
const node = new RichQuoteNode();
|
|
12086
12086
|
node.__attribution = json.attribution ?? null;
|
|
12087
|
-
return node;
|
|
12087
|
+
return node.updateFromJSON(json);
|
|
12088
12088
|
}
|
|
12089
12089
|
exportJSON() {
|
|
12090
12090
|
return {
|
|
@@ -12118,10 +12118,11 @@ function headlessDecorator(type, propKeys, defaults, inline = false) {
|
|
|
12118
12118
|
const json = _json;
|
|
12119
12119
|
const node = new Node();
|
|
12120
12120
|
for (const k of propKeys) node[`__${k}`] = json[k] ?? defaults[k];
|
|
12121
|
-
return node;
|
|
12121
|
+
return node.updateFromJSON(json);
|
|
12122
12122
|
}
|
|
12123
12123
|
exportJSON() {
|
|
12124
12124
|
const out = {
|
|
12125
|
+
...super.exportJSON(),
|
|
12125
12126
|
type,
|
|
12126
12127
|
version: 1
|
|
12127
12128
|
};
|
|
@@ -12328,10 +12329,11 @@ var customHeadlessNodes = [
|
|
|
12328
12329
|
const node = new BannerNode();
|
|
12329
12330
|
node.__bannerType = json.bannerType ?? "note";
|
|
12330
12331
|
node.__contentState = json.content ?? null;
|
|
12331
|
-
return node;
|
|
12332
|
+
return node.updateFromJSON(json);
|
|
12332
12333
|
}
|
|
12333
12334
|
exportJSON() {
|
|
12334
12335
|
return {
|
|
12336
|
+
...super.exportJSON(),
|
|
12335
12337
|
type: "banner",
|
|
12336
12338
|
version: 1,
|
|
12337
12339
|
bannerType: this.__bannerType,
|
|
@@ -12374,10 +12376,11 @@ var customHeadlessNodes = [
|
|
|
12374
12376
|
const node = new AlertQuoteNode();
|
|
12375
12377
|
node.__alertType = json.alertType ?? "note";
|
|
12376
12378
|
node.__contentState = json.content ?? null;
|
|
12377
|
-
return node;
|
|
12379
|
+
return node.updateFromJSON(json);
|
|
12378
12380
|
}
|
|
12379
12381
|
exportJSON() {
|
|
12380
12382
|
return {
|
|
12383
|
+
...super.exportJSON(),
|
|
12381
12384
|
type: "alert-quote",
|
|
12382
12385
|
version: 1,
|
|
12383
12386
|
alertType: this.__alertType,
|
|
@@ -12417,10 +12420,11 @@ var customHeadlessNodes = [
|
|
|
12417
12420
|
const json = _json;
|
|
12418
12421
|
const node = new NestedDocNode();
|
|
12419
12422
|
node.__contentState = json.content ?? null;
|
|
12420
|
-
return node;
|
|
12423
|
+
return node.updateFromJSON(json);
|
|
12421
12424
|
}
|
|
12422
12425
|
exportJSON() {
|
|
12423
12426
|
return {
|
|
12427
|
+
...super.exportJSON(),
|
|
12424
12428
|
type: "nested-doc",
|
|
12425
12429
|
version: 1,
|
|
12426
12430
|
content: this.__contentState
|
|
@@ -12466,10 +12470,11 @@ var customHeadlessNodes = [
|
|
|
12466
12470
|
const rawGap = json.gap;
|
|
12467
12471
|
node.__gap = typeof rawGap === "number" ? `${rawGap}px` : rawGap ?? "16px";
|
|
12468
12472
|
node.__cells = json.cells ?? [];
|
|
12469
|
-
return node;
|
|
12473
|
+
return node.updateFromJSON(json);
|
|
12470
12474
|
}
|
|
12471
12475
|
exportJSON() {
|
|
12472
12476
|
return {
|
|
12477
|
+
...super.exportJSON(),
|
|
12473
12478
|
type: "grid-container",
|
|
12474
12479
|
version: 1,
|
|
12475
12480
|
cols: this.__cols,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-litexml-cli",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.1",
|
|
4
4
|
"description": "Unified CLI for haklex LiteXML: convert LiteXML or Lexical JSON to HTML, JSON, or Markdown.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@haklex/rich-compose": "0.49.
|
|
20
|
-
"@haklex/rich-headless": "0.49.
|
|
21
|
-
"@haklex/rich-litexml": "0.49.
|
|
19
|
+
"@haklex/rich-compose": "0.49.1",
|
|
20
|
+
"@haklex/rich-headless": "0.49.1",
|
|
21
|
+
"@haklex/rich-litexml": "0.49.1",
|
|
22
22
|
"@lexical/headless": "^0.52.0",
|
|
23
23
|
"lexical": "^0.52.0"
|
|
24
24
|
},
|