@localess/richtext 4.0.0-dev.20260905071322 → 4.0.0-dev.20260905085556

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.
@@ -198,6 +198,51 @@ var richTextFixtures = [
198
198
  }, p(t("kept"))),
199
199
  expected: "<p>kept</p>",
200
200
  parity: false
201
+ },
202
+ {
203
+ title: "realistic document exercising every node and mark kind together",
204
+ input: doc({
205
+ type: "heading",
206
+ attrs: { level: 1 },
207
+ content: [t("H1")]
208
+ }, {
209
+ type: "heading",
210
+ attrs: { level: 2 },
211
+ content: [t("H2")]
212
+ }, {
213
+ type: "heading",
214
+ attrs: { level: 3 },
215
+ content: [t("H3")]
216
+ }, {
217
+ type: "heading",
218
+ attrs: { level: 4 },
219
+ content: [t("H4")]
220
+ }, {
221
+ type: "heading",
222
+ attrs: { level: 5 },
223
+ content: [t("H5")]
224
+ }, {
225
+ type: "heading",
226
+ attrs: { level: 6 },
227
+ content: [t("H6")]
228
+ }, p(t("paragraph")), p(t("Bold", [{ type: "bold" }])), p(t("Italic", [{ type: "italic" }])), p(t("Strike", [{ type: "strike" }])), p(t("Underline", [{ type: "underline" }])), p(t("Code is Here", [{ type: "code" }])), p(t("Bold Italic", [{ type: "bold" }, { type: "italic" }])), p(t("Visit", [link])), p(), p(t("Ordered List")), {
229
+ type: "orderedList",
230
+ attrs: { start: 1 },
231
+ content: [li(p(t("First"))), li(p(t("Second")))]
232
+ }, p(t("Bullet List")), {
233
+ type: "bulletList",
234
+ content: [li(p(t("First"))), li(p(t("Second")))]
235
+ }, {
236
+ type: "codeBlock",
237
+ attrs: { language: null },
238
+ content: [t("This is Code Block")]
239
+ }, {
240
+ type: "codeBlock",
241
+ attrs: { language: "typescript" },
242
+ content: [t("const x: number = 1;")]
243
+ }),
244
+ expected: "<h1>H1</h1><h2>H2</h2><h3>H3</h3><h4>H4</h4><h5>H5</h5><h6>H6</h6><p>paragraph</p><p><strong>Bold</strong></p><p><em>Italic</em></p><p><s>Strike</s></p><p><u>Underline</u></p><p><code>Code is Here</code></p><p><strong><em>Bold Italic</em></strong></p><p><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://example.com\">Visit</a></p><p></p><p>Ordered List</p><ol><li><p>First</p></li><li><p>Second</p></li></ol><p>Bullet List</p><ul><li><p>First</p></li><li><p>Second</p></li></ul><pre><code>This is Code Block</code></pre><pre><code class=\"language-typescript\">const x: number = 1;</code></pre>",
245
+ parity: true
201
246
  }
202
247
  ];
203
248
  //#endregion
@@ -197,6 +197,51 @@ var richTextFixtures = [
197
197
  }, p(t("kept"))),
198
198
  expected: "<p>kept</p>",
199
199
  parity: false
200
+ },
201
+ {
202
+ title: "realistic document exercising every node and mark kind together",
203
+ input: doc({
204
+ type: "heading",
205
+ attrs: { level: 1 },
206
+ content: [t("H1")]
207
+ }, {
208
+ type: "heading",
209
+ attrs: { level: 2 },
210
+ content: [t("H2")]
211
+ }, {
212
+ type: "heading",
213
+ attrs: { level: 3 },
214
+ content: [t("H3")]
215
+ }, {
216
+ type: "heading",
217
+ attrs: { level: 4 },
218
+ content: [t("H4")]
219
+ }, {
220
+ type: "heading",
221
+ attrs: { level: 5 },
222
+ content: [t("H5")]
223
+ }, {
224
+ type: "heading",
225
+ attrs: { level: 6 },
226
+ content: [t("H6")]
227
+ }, p(t("paragraph")), p(t("Bold", [{ type: "bold" }])), p(t("Italic", [{ type: "italic" }])), p(t("Strike", [{ type: "strike" }])), p(t("Underline", [{ type: "underline" }])), p(t("Code is Here", [{ type: "code" }])), p(t("Bold Italic", [{ type: "bold" }, { type: "italic" }])), p(t("Visit", [link])), p(), p(t("Ordered List")), {
228
+ type: "orderedList",
229
+ attrs: { start: 1 },
230
+ content: [li(p(t("First"))), li(p(t("Second")))]
231
+ }, p(t("Bullet List")), {
232
+ type: "bulletList",
233
+ content: [li(p(t("First"))), li(p(t("Second")))]
234
+ }, {
235
+ type: "codeBlock",
236
+ attrs: { language: null },
237
+ content: [t("This is Code Block")]
238
+ }, {
239
+ type: "codeBlock",
240
+ attrs: { language: "typescript" },
241
+ content: [t("const x: number = 1;")]
242
+ }),
243
+ expected: "<h1>H1</h1><h2>H2</h2><h3>H3</h3><h4>H4</h4><h5>H5</h5><h6>H6</h6><p>paragraph</p><p><strong>Bold</strong></p><p><em>Italic</em></p><p><s>Strike</s></p><p><u>Underline</u></p><p><code>Code is Here</code></p><p><strong><em>Bold Italic</em></strong></p><p><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://example.com\">Visit</a></p><p></p><p>Ordered List</p><ol><li><p>First</p></li><li><p>Second</p></li></ol><p>Bullet List</p><ul><li><p>First</p></li><li><p>Second</p></li></ul><pre><code>This is Code Block</code></pre><pre><code class=\"language-typescript\">const x: number = 1;</code></pre>",
244
+ parity: true
200
245
  }
201
246
  ];
202
247
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localess/richtext",
3
- "version": "4.0.0-dev.20260905071322",
3
+ "version": "4.0.0-dev.20260905085556",
4
4
  "description": "Framework-neutral rich text model and renderer for Localess's TipTap JSON content.",
5
5
  "keywords": [
6
6
  "localess",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "license": "MIT",
50
50
  "dependencies": {
51
- "@localess/model": "4.0.0-dev.20260905071322"
51
+ "@localess/model": "4.0.0-dev.20260905085556"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@tiptap/extension-bold": "^3.22.5",