@nowline/embed 0.0.0-dev.20261007194418.gebac984 → 0.0.0-dev.20261007201417.g52bd711

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/meta.json CHANGED
@@ -5671,17 +5671,17 @@
5671
5671
  "format": "esm"
5672
5672
  },
5673
5673
  "../core/dist/i18n/codes.js": {
5674
- "bytes": 2269,
5674
+ "bytes": 2317,
5675
5675
  "imports": [],
5676
5676
  "format": "esm"
5677
5677
  },
5678
5678
  "../core/dist/i18n/messages.en.js": {
5679
- "bytes": 18490,
5679
+ "bytes": 18753,
5680
5680
  "imports": [],
5681
5681
  "format": "esm"
5682
5682
  },
5683
5683
  "../core/dist/i18n/messages.fr.js": {
5684
- "bytes": 21464,
5684
+ "bytes": 21864,
5685
5685
  "imports": [],
5686
5686
  "format": "esm"
5687
5687
  },
@@ -5790,7 +5790,7 @@
5790
5790
  "format": "esm"
5791
5791
  },
5792
5792
  "../core/dist/language/nowline-validator.js": {
5793
- "bytes": 80982,
5793
+ "bytes": 80915,
5794
5794
  "imports": [
5795
5795
  {
5796
5796
  "path": "../../node_modules/.pnpm/langium@4.4.0/node_modules/langium/lib/index.js",
@@ -6213,7 +6213,7 @@
6213
6213
  "format": "esm"
6214
6214
  },
6215
6215
  "../layout/dist/wave-layout.js": {
6216
- "bytes": 6889,
6216
+ "bytes": 6670,
6217
6217
  "imports": [
6218
6218
  {
6219
6219
  "path": "../layout/dist/calendar.js",
@@ -9281,7 +9281,7 @@
9281
9281
  "format": "esm"
9282
9282
  },
9283
9283
  "../layout/dist/layout.js": {
9284
- "bytes": 76065,
9284
+ "bytes": 75244,
9285
9285
  "imports": [
9286
9286
  {
9287
9287
  "path": "../core/dist/index.js",
@@ -9838,7 +9838,7 @@
9838
9838
  "imports": [],
9839
9839
  "exports": [],
9840
9840
  "inputs": {},
9841
- "bytes": 3764790
9841
+ "bytes": 3764529
9842
9842
  },
9843
9843
  "dist/nowline.min.js": {
9844
9844
  "imports": [],
@@ -9882,7 +9882,7 @@
9882
9882
  "bytesInOutput": 1912
9883
9883
  },
9884
9884
  "../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/connection.js": {
9885
- "bytesInOutput": 18618
9885
+ "bytesInOutput": 18616
9886
9886
  },
9887
9887
  "../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/api.js": {
9888
9888
  "bytesInOutput": 7995
@@ -10119,7 +10119,7 @@
10119
10119
  "bytesInOutput": 281
10120
10120
  },
10121
10121
  "../../node_modules/.pnpm/chevrotain@13.2.0/node_modules/chevrotain/lib/src/scan/lexer_public.js": {
10122
- "bytesInOutput": 10870
10122
+ "bytesInOutput": 10866
10123
10123
  },
10124
10124
  "../../node_modules/.pnpm/chevrotain@13.2.0/node_modules/chevrotain/lib/src/scan/tokens_public.js": {
10125
10125
  "bytesInOutput": 1098
@@ -10791,10 +10791,10 @@
10791
10791
  "bytesInOutput": 182
10792
10792
  },
10793
10793
  "../core/dist/i18n/messages.en.js": {
10794
- "bytesInOutput": 13687
10794
+ "bytesInOutput": 13920
10795
10795
  },
10796
10796
  "../core/dist/i18n/messages.fr.js": {
10797
- "bytesInOutput": 17044
10797
+ "bytesInOutput": 17420
10798
10798
  },
10799
10799
  "../core/dist/i18n/messages.fr-CA.js": {
10800
10800
  "bytesInOutput": 10
@@ -10818,10 +10818,10 @@
10818
10818
  "bytesInOutput": 6808
10819
10819
  },
10820
10820
  "../core/dist/language/waves-order.js": {
10821
- "bytesInOutput": 9981
10821
+ "bytesInOutput": 9921
10822
10822
  },
10823
10823
  "../core/dist/language/nowline-validator.js": {
10824
- "bytesInOutput": 26679
10824
+ "bytesInOutput": 26556
10825
10825
  },
10826
10826
  "../core/dist/language/include-waves.js": {
10827
10827
  "bytesInOutput": 3829
@@ -10884,7 +10884,7 @@
10884
10884
  "bytesInOutput": 100
10885
10885
  },
10886
10886
  "../layout/dist/nodes/group-node.js": {
10887
- "bytesInOutput": 2477
10887
+ "bytesInOutput": 2474
10888
10888
  },
10889
10889
  "../layout/dist/nodes/item-node.js": {
10890
10890
  "bytesInOutput": 1502
@@ -10935,7 +10935,7 @@
10935
10935
  "bytesInOutput": 1842
10936
10936
  },
10937
10937
  "../layout/dist/nodes/swimlane-node.js": {
10938
- "bytesInOutput": 2896
10938
+ "bytesInOutput": 2894
10939
10939
  },
10940
10940
  "../layout/dist/nodes/include-node.js": {
10941
10941
  "bytesInOutput": 1542
@@ -10950,10 +10950,10 @@
10950
10950
  "bytesInOutput": 5667
10951
10951
  },
10952
10952
  "../layout/dist/nodes/roadmap-node.js": {
10953
- "bytesInOutput": 9436
10953
+ "bytesInOutput": 9518
10954
10954
  },
10955
10955
  "../layout/dist/layout.js": {
10956
- "bytesInOutput": 14584
10956
+ "bytesInOutput": 14234
10957
10957
  },
10958
10958
  "../layout/dist/layout-insights.js": {
10959
10959
  "bytesInOutput": 2374
@@ -10998,7 +10998,7 @@
10998
10998
  "bytesInOutput": 852
10999
10999
  },
11000
11000
  "../../node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/browser.js": {
11001
- "bytesInOutput": 6594
11001
+ "bytesInOutput": 6591
11002
11002
  },
11003
11003
  "../share-link/dist/index.js": {
11004
11004
  "bytesInOutput": 665
@@ -11013,7 +11013,7 @@
11013
11013
  "bytesInOutput": 257
11014
11014
  }
11015
11015
  },
11016
- "bytes": 730615
11016
+ "bytes": 730759
11017
11017
  }
11018
11018
  }
11019
11019
  }
@@ -1,4 +1,4 @@
1
- /*! @nowline/embed 0.0.0-dev.20261007194418.gebac984 sha=ebac984 built=2026-10-07T12:43:55-07:00 */
1
+ /*! @nowline/embed 0.0.0-dev.20261007201417.g52bd711 sha=52bd711 built=2026-10-07T13:13:07-07:00 */
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -29912,6 +29912,9 @@ var messages = {
29912
29912
  "NL.E0600": (a) => `Item "${a.name}" requires a "size:" or "duration:" property.`,
29913
29913
  // Style
29914
29914
  "NL.E0800": (a) => `Invalid non-working value "${a.value}". Use hide or show.`,
29915
+ "NL.E0801": (a) => `Invalid color "${a.value}" for "${a.key}". Use a named color, hex value, or "none".`,
29916
+ "NL.E0802": (a) => `Invalid value "${a.value}" for "${a.key}". Allowed: ${a.allowed}.`,
29917
+ "NL.E0803": (a) => `Unknown style property "${a.key}".`,
29915
29918
  // Warnings
29916
29919
  "NL.W0700": (a) => `Unknown property "${a.key}" on ${a.entity}. The renderer ignores it.${a.suggested ? ` Did you mean "${a.suggested}"?` : ""}`,
29917
29920
  "NL.W0701": (a) => `Wave "${a.id}" in "${a.path}" differs from this file's definition (${a.fields.map((f) => `${f.field} ${f.there === "" ? "none" : `"${f.there}"`} there, ${f.here === "" ? "none" : `"${f.here}"`} here`).join("; ")}); this file's definition is used.`,
@@ -30157,6 +30160,9 @@ var messages2 = {
30157
30160
  "NL.E0600": (a) => `L'\xE9l\xE9ment \xAB\xA0${a.name}\xA0\xBB exige une propri\xE9t\xE9 \xAB\xA0size:\xA0\xBB ou \xAB\xA0duration:\xA0\xBB.`,
30158
30161
  // Style
30159
30162
  "NL.E0800": (a) => `Valeur non-working invalide \xAB\xA0${a.value}\xA0\xBB. Utilisez hide ou show.`,
30163
+ "NL.E0801": (a) => `Couleur invalide \xAB\xA0${a.value}\xA0\xBB pour \xAB\xA0${a.key}\xA0\xBB. Utilisez une couleur nomm\xE9e, une valeur hexad\xE9cimale ou \xAB\xA0none\xA0\xBB.`,
30164
+ "NL.E0802": (a) => `Valeur invalide \xAB\xA0${a.value}\xA0\xBB pour \xAB\xA0${a.key}\xA0\xBB. Valeurs admises\xA0: ${a.allowed}.`,
30165
+ "NL.E0803": (a) => `Propri\xE9t\xE9 de style inconnue \xAB\xA0${a.key}\xA0\xBB.`,
30160
30166
  // Avertissements
30161
30167
  "NL.W0700": (a) => `Propri\xE9t\xE9 inconnue \xAB\xA0${a.key}\xA0\xBB sur ${a.entity}. Le moteur de rendu l'ignore.${a.suggested ? ` Vouliez-vous dire \xAB\xA0${a.suggested}\xA0\xBB\xA0?` : ""}`,
30162
30168
  "NL.W0701": (a) => `La vague ${q(a.id)} dans ${q(a.path)} diff\xE8re de la d\xE9finition de ce fichier (${a.fields.map((f) => `${FIELD_FR[f.field]} ${noneIfEmpty(f.there)} l\xE0-bas, ${noneIfEmpty(f.here)} ici`).join("\xA0; ")})\xA0; la d\xE9finition de ce fichier est utilis\xE9e.`,
@@ -32312,17 +32318,18 @@ var NowlineValidator = class {
32312
32318
  if (STYLE_PROP_KEYS.has(key)) {
32313
32319
  if (key === "bg" || key === "fg" || key === "text") {
32314
32320
  if (val && !isColorValue(val)) {
32315
- accept("error", `Invalid color "${val}" for "${key}". Use a named color, hex value, or "none".`, {
32316
- node: prop,
32317
- property: "value"
32321
+ acceptTr(accept, "error", { node: prop, property: "value" }, "NL.E0801", {
32322
+ value: val,
32323
+ key
32318
32324
  });
32319
32325
  }
32320
32326
  } else if (key in STYLE_PROP_ENUMS) {
32321
32327
  const allowed = STYLE_PROP_ENUMS[key];
32322
32328
  if (val && !allowed.has(val)) {
32323
- accept("error", `Invalid value "${val}" for "${key}". Allowed: ${[...allowed].join(", ")}.`, {
32324
- node: prop,
32325
- property: "value"
32329
+ acceptTr(accept, "error", { node: prop, property: "value" }, "NL.E0802", {
32330
+ value: val,
32331
+ key,
32332
+ allowed: [...allowed].join(", ")
32326
32333
  });
32327
32334
  }
32328
32335
  }
@@ -32533,9 +32540,9 @@ var NowlineValidator = class {
32533
32540
  const val = prop.value;
32534
32541
  if (key === "bg" || key === "fg" || key === "text") {
32535
32542
  if (!isColorValue(val)) {
32536
- accept("error", `Invalid color "${val}" for "${key}". Use a named color, hex value, or "none".`, {
32537
- node: prop,
32538
- property: "value"
32543
+ acceptTr(accept, "error", { node: prop, property: "value" }, "NL.E0801", {
32544
+ value: val,
32545
+ key
32539
32546
  });
32540
32547
  }
32541
32548
  } else if (key === "non-working") {
@@ -32543,16 +32550,14 @@ var NowlineValidator = class {
32543
32550
  } else if (key in STYLE_PROP_ENUMS) {
32544
32551
  const allowed = STYLE_PROP_ENUMS[key];
32545
32552
  if (!allowed.has(val)) {
32546
- accept("error", `Invalid value "${val}" for "${key}". Allowed: ${[...allowed].join(", ")}.`, {
32547
- node: prop,
32548
- property: "value"
32553
+ acceptTr(accept, "error", { node: prop, property: "value" }, "NL.E0802", {
32554
+ value: val,
32555
+ key,
32556
+ allowed: [...allowed].join(", ")
32549
32557
  });
32550
32558
  }
32551
32559
  } else if (!STYLE_PROP_KEYS.has(key)) {
32552
- accept("error", `Unknown style property "${key}".`, {
32553
- node: prop,
32554
- property: "key"
32555
- });
32560
+ acceptTr(accept, "error", { node: prop, property: "key" }, "NL.E0803", { key });
32556
32561
  }
32557
32562
  }
32558
32563
  // --- Size declaration: rule 5 (effort: required), rule 4 (id format) ---
@@ -38619,29 +38624,7 @@ function sequenceItem(node, cursor, ctx, ownerOverride) {
38619
38624
  const durationDays = deriveItemDurationDays(props, ctx.sizes, ctx.cal);
38620
38625
  const afterRaw = propValues(props, "after");
38621
38626
  const beforeRaw = propValues(props, "before");
38622
- const dateRaw = propValue(props, "date");
38623
- let startX = cursor.x;
38624
- const explicitDate = parseDate(dateRaw);
38625
- if (explicitDate) {
38626
- const xd = ctx.scale.forwardWithinDomain(explicitDate);
38627
- if (xd !== null)
38628
- startX = xd;
38629
- } else if (afterRaw.length > 0) {
38630
- let maxEnd = cursor.x;
38631
- for (const ref of afterRaw) {
38632
- const inlineDate = parseDate(ref);
38633
- if (inlineDate) {
38634
- const xd = ctx.scale.forwardWithinDomain(inlineDate);
38635
- if (xd !== null)
38636
- maxEnd = Math.max(maxEnd, xd);
38637
- continue;
38638
- }
38639
- const endX = ctx.entityRightEdges.get(ref);
38640
- if (endX !== void 0)
38641
- maxEnd = Math.max(maxEnd, endX);
38642
- }
38643
- startX = Math.max(cursor.x, maxEnd);
38644
- }
38627
+ let startX = resolvePinnedOrSequentialStart(props, cursor.x, cursor.x, ctx);
38645
38628
  let wavePinOverride;
38646
38629
  if (ctx.waves) {
38647
38630
  startX = waveFloorX(node, startX, ctx);
@@ -42813,8 +42796,8 @@ function effectiveTheme(theme, systemTheme) {
42813
42796
  }
42814
42797
 
42815
42798
  // src/index.ts
42816
- var version = true ? "0.0.0-dev.20261007194418.gebac984" : "0.0.0";
42817
- var sha = true ? "ebac984" : "unknown";
42799
+ var version = true ? "0.0.0-dev.20261007201417.g52bd711" : "0.0.0";
42800
+ var sha = true ? "52bd711" : "unknown";
42818
42801
  var DEFAULT_SELECTOR = "pre code.language-nowline, code.language-nowline";
42819
42802
  var initialConfig = {
42820
42803
  theme: "auto",