@nowline/embed 0.0.0-dev.20261007195655.g43aae6c → 0.0.0-dev.20261007202622.gb1ca57b

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": 2333,
5675
5675
  "imports": [],
5676
5676
  "format": "esm"
5677
5677
  },
5678
5678
  "../core/dist/i18n/messages.en.js": {
5679
- "bytes": 18490,
5679
+ "bytes": 18900,
5680
5680
  "imports": [],
5681
5681
  "format": "esm"
5682
5682
  },
5683
5683
  "../core/dist/i18n/messages.fr.js": {
5684
- "bytes": 21464,
5684
+ "bytes": 22063,
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": 81865,
5794
5794
  "imports": [
5795
5795
  {
5796
5796
  "path": "../../node_modules/.pnpm/langium@4.4.0/node_modules/langium/lib/index.js",
@@ -9838,7 +9838,7 @@
9838
9838
  "imports": [],
9839
9839
  "exports": [],
9840
9840
  "inputs": {},
9841
- "bytes": 3763300
9841
+ "bytes": 3766400
9842
9842
  },
9843
9843
  "dist/nowline.min.js": {
9844
9844
  "imports": [],
@@ -10791,10 +10791,10 @@
10791
10791
  "bytesInOutput": 182
10792
10792
  },
10793
10793
  "../core/dist/i18n/messages.en.js": {
10794
- "bytesInOutput": 13687
10794
+ "bytesInOutput": 14057
10795
10795
  },
10796
10796
  "../core/dist/i18n/messages.fr.js": {
10797
- "bytesInOutput": 17044
10797
+ "bytesInOutput": 17531
10798
10798
  },
10799
10799
  "../core/dist/i18n/messages.fr-CA.js": {
10800
10800
  "bytesInOutput": 10
@@ -10821,7 +10821,7 @@
10821
10821
  "bytesInOutput": 9921
10822
10822
  },
10823
10823
  "../core/dist/language/nowline-validator.js": {
10824
- "bytesInOutput": 26679
10824
+ "bytesInOutput": 26794
10825
10825
  },
10826
10826
  "../core/dist/language/include-waves.js": {
10827
10827
  "bytesInOutput": 3829
@@ -10977,13 +10977,13 @@
10977
10977
  "bytesInOutput": 4941
10978
10978
  },
10979
10979
  "../renderer/dist/svg/xml.js": {
10980
- "bytesInOutput": 688
10980
+ "bytesInOutput": 689
10981
10981
  },
10982
10982
  "../renderer/dist/svg/shadow.js": {
10983
- "bytesInOutput": 727
10983
+ "bytesInOutput": 728
10984
10984
  },
10985
10985
  "../renderer/dist/svg/render.js": {
10986
- "bytesInOutput": 29887
10986
+ "bytesInOutput": 29971
10987
10987
  },
10988
10988
  "../renderer/dist/index.js": {
10989
10989
  "bytesInOutput": 0
@@ -11013,7 +11013,7 @@
11013
11013
  "bytesInOutput": 257
11014
11014
  }
11015
11015
  },
11016
- "bytes": 730273
11016
+ "bytes": 731331
11017
11017
  }
11018
11018
  }
11019
11019
  }
@@ -1,4 +1,4 @@
1
- /*! @nowline/embed 0.0.0-dev.20261007195655.g43aae6c sha=43aae6c built=2026-10-07T12:56:34-07:00 */
1
+ /*! @nowline/embed 0.0.0-dev.20261007202622.gb1ca57b sha=b1ca57b built=2026-10-07T13:26:00-07:00 */
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -29912,10 +29912,14 @@ 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.`,
29918
29921
  "NL.W0702": (a) => `"wave:" on ${a.target.kind === "default" ? `"default ${a.target.entityType}"` : !a.target.name && a.target.line !== void 0 ? `the ${a.target.kind === "parallel" ? "parallel block" : a.target.kind} on line ${a.target.line}` : `${a.target.kind} "${a.target.name}"`} is ignored: this roadmap declares no waves. Declare waves with "wave <id>" to use it, or remove the property.`,
29922
+ "NL.W0703": (a) => `"${a.key}" on "default ${a.entityType}" is ignored: it is a roadmap-only style key. Set it on "default roadmap" instead.`,
29919
29923
  // Waves
29920
29924
  "NL.E1100": (a) => `Wave ${a.title === void 0 ? `on line ${a.line}` : `"${a.title}"`} needs an explicit identifier so work can reference it with wave:<id>, e.g. wave build "Build".`,
29921
29925
  "NL.E1101": (a) => {
@@ -30157,10 +30161,14 @@ var messages2 = {
30157
30161
  "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
30162
  // Style
30159
30163
  "NL.E0800": (a) => `Valeur non-working invalide \xAB\xA0${a.value}\xA0\xBB. Utilisez hide ou show.`,
30164
+ "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.`,
30165
+ "NL.E0802": (a) => `Valeur invalide \xAB\xA0${a.value}\xA0\xBB pour \xAB\xA0${a.key}\xA0\xBB. Valeurs admises\xA0: ${a.allowed}.`,
30166
+ "NL.E0803": (a) => `Propri\xE9t\xE9 de style inconnue \xAB\xA0${a.key}\xA0\xBB.`,
30160
30167
  // Avertissements
30161
30168
  "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
30169
  "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.`,
30163
30170
  "NL.W0702": (a) => `\xAB\xA0wave:\xA0\xBB sur ${a.target.kind === "default" ? q(`default ${a.target.entityType}`) : !a.target.name && a.target.line !== void 0 ? a.target.kind === "item" || a.target.kind === "group" || a.target.kind === "parallel" ? entityText2({ kind: a.target.kind, name: "", line: a.target.line }) : `${a.target.kind} \xE0 la ligne ${a.target.line}` : `${a.target.kind} ${q(a.target.name)}`} est ignor\xE9\xA0: cette roadmap ne d\xE9clare aucune vague. D\xE9clarez des vagues avec \xAB\xA0wave <id>\xA0\xBB pour l'utiliser, ou retirez la propri\xE9t\xE9.`,
30171
+ "NL.W0703": (a) => `${q(a.key)} sur ${q(`default ${a.entityType}`)} est ignor\xE9\xA0: c'est une cl\xE9 de style propre \xE0 la roadmap. D\xE9finissez-la plut\xF4t sur \xAB\xA0default roadmap\xA0\xBB.`,
30164
30172
  // Vagues
30165
30173
  "NL.E1100": (a) => `La vague ${a.title === void 0 ? `\xE0 la ligne ${a.line}` : q(a.title)} exige un identifiant explicite pour que le travail puisse la r\xE9f\xE9rencer avec wave:<id>, p.\xA0ex. wave build "Build".`,
30166
30174
  "NL.E1101": (a) => {
@@ -31680,6 +31688,12 @@ var STYLE_PROP_KEYS = /* @__PURE__ */ new Set([
31680
31688
  "non-working"
31681
31689
  ]);
31682
31690
  var NON_WORKING_VALUES = /* @__PURE__ */ new Set(["hide", "show"]);
31691
+ var ROADMAP_ONLY_STYLE_KEYS = /* @__PURE__ */ new Set([
31692
+ "header-height",
31693
+ "timeline-position",
31694
+ "minor-grid",
31695
+ "non-working"
31696
+ ]);
31683
31697
  var BUILTIN_CAPACITY_ICONS2 = /* @__PURE__ */ new Set([
31684
31698
  "none",
31685
31699
  "multiplier",
@@ -32312,17 +32326,18 @@ var NowlineValidator = class {
32312
32326
  if (STYLE_PROP_KEYS.has(key)) {
32313
32327
  if (key === "bg" || key === "fg" || key === "text") {
32314
32328
  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"
32329
+ acceptTr(accept, "error", { node: prop, property: "value" }, "NL.E0801", {
32330
+ value: val,
32331
+ key
32318
32332
  });
32319
32333
  }
32320
32334
  } else if (key in STYLE_PROP_ENUMS) {
32321
32335
  const allowed = STYLE_PROP_ENUMS[key];
32322
32336
  if (val && !allowed.has(val)) {
32323
- accept("error", `Invalid value "${val}" for "${key}". Allowed: ${[...allowed].join(", ")}.`, {
32324
- node: prop,
32325
- property: "value"
32337
+ acceptTr(accept, "error", { node: prop, property: "value" }, "NL.E0802", {
32338
+ value: val,
32339
+ key,
32340
+ allowed: [...allowed].join(", ")
32326
32341
  });
32327
32342
  }
32328
32343
  }
@@ -32533,9 +32548,9 @@ var NowlineValidator = class {
32533
32548
  const val = prop.value;
32534
32549
  if (key === "bg" || key === "fg" || key === "text") {
32535
32550
  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"
32551
+ acceptTr(accept, "error", { node: prop, property: "value" }, "NL.E0801", {
32552
+ value: val,
32553
+ key
32539
32554
  });
32540
32555
  }
32541
32556
  } else if (key === "non-working") {
@@ -32543,16 +32558,14 @@ var NowlineValidator = class {
32543
32558
  } else if (key in STYLE_PROP_ENUMS) {
32544
32559
  const allowed = STYLE_PROP_ENUMS[key];
32545
32560
  if (!allowed.has(val)) {
32546
- accept("error", `Invalid value "${val}" for "${key}". Allowed: ${[...allowed].join(", ")}.`, {
32547
- node: prop,
32548
- property: "value"
32561
+ acceptTr(accept, "error", { node: prop, property: "value" }, "NL.E0802", {
32562
+ value: val,
32563
+ key,
32564
+ allowed: [...allowed].join(", ")
32549
32565
  });
32550
32566
  }
32551
32567
  } else if (!STYLE_PROP_KEYS.has(key)) {
32552
- accept("error", `Unknown style property "${key}".`, {
32553
- node: prop,
32554
- property: "key"
32555
- });
32568
+ acceptTr(accept, "error", { node: prop, property: "key" }, "NL.E0803", { key });
32556
32569
  }
32557
32570
  }
32558
32571
  // --- Size declaration: rule 5 (effort: required), rule 4 (id format) ---
@@ -32632,6 +32645,7 @@ var NowlineValidator = class {
32632
32645
  }
32633
32646
  }
32634
32647
  // --- Defaults rules 21-23: entity-type whitelist, duplicate-per-entity, banned props ---
32648
+ // Plus rule 20's roadmap-only keys on another entity's default (NL.W0703).
32635
32649
  checkDefaultDeclaration(decl, accept) {
32636
32650
  if (!DEFAULT_ENTITY_TYPES.has(decl.entityType)) {
32637
32651
  accept("error", `"${decl.entityType}" is not a supported entity type for default. Allowed: ${[...DEFAULT_ENTITY_TYPES].join(", ")}.`, { node: decl, property: "entityType" });
@@ -32659,6 +32673,17 @@ var NowlineValidator = class {
32659
32673
  }
32660
32674
  }
32661
32675
  }
32676
+ if (decl.entityType !== "roadmap") {
32677
+ for (const prop of decl.properties) {
32678
+ const key = propKey2(prop);
32679
+ if (ROADMAP_ONLY_STYLE_KEYS.has(key)) {
32680
+ acceptTr(accept, "warning", { node: prop, property: "key" }, "NL.W0703", {
32681
+ key,
32682
+ entityType: decl.entityType
32683
+ });
32684
+ }
32685
+ }
32686
+ }
32662
32687
  }
32663
32688
  // --- Rule 7 (calendar): calendar block only valid when roadmap calendar:custom ---
32664
32689
  // Rule 8: custom calendar requires all four fields.
@@ -42791,8 +42816,8 @@ function effectiveTheme(theme, systemTheme) {
42791
42816
  }
42792
42817
 
42793
42818
  // src/index.ts
42794
- var version = true ? "0.0.0-dev.20261007195655.g43aae6c" : "0.0.0";
42795
- var sha = true ? "43aae6c" : "unknown";
42819
+ var version = true ? "0.0.0-dev.20261007202622.gb1ca57b" : "0.0.0";
42820
+ var sha = true ? "b1ca57b" : "unknown";
42796
42821
  var DEFAULT_SELECTOR = "pre code.language-nowline, code.language-nowline";
42797
42822
  var initialConfig = {
42798
42823
  theme: "auto",