@nowline/embed 0.0.0-dev.20261007201417.g52bd711 → 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": 2317,
5674
+ "bytes": 2333,
5675
5675
  "imports": [],
5676
5676
  "format": "esm"
5677
5677
  },
5678
5678
  "../core/dist/i18n/messages.en.js": {
5679
- "bytes": 18753,
5679
+ "bytes": 18900,
5680
5680
  "imports": [],
5681
5681
  "format": "esm"
5682
5682
  },
5683
5683
  "../core/dist/i18n/messages.fr.js": {
5684
- "bytes": 21864,
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": 80915,
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": 3764529
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": 13920
10794
+ "bytesInOutput": 14057
10795
10795
  },
10796
10796
  "../core/dist/i18n/messages.fr.js": {
10797
- "bytesInOutput": 17420
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": 26556
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": 730759
11016
+ "bytes": 731331
11017
11017
  }
11018
11018
  }
11019
11019
  }
@@ -1,4 +1,4 @@
1
- /*! @nowline/embed 0.0.0-dev.20261007201417.g52bd711 sha=52bd711 built=2026-10-07T13:13:07-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;
@@ -29919,6 +29919,7 @@ var messages = {
29919
29919
  "NL.W0700": (a) => `Unknown property "${a.key}" on ${a.entity}. The renderer ignores it.${a.suggested ? ` Did you mean "${a.suggested}"?` : ""}`,
29920
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.`,
29921
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.`,
29922
29923
  // Waves
29923
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".`,
29924
29925
  "NL.E1101": (a) => {
@@ -30167,6 +30168,7 @@ var messages2 = {
30167
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?` : ""}`,
30168
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.`,
30169
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.`,
30170
30172
  // Vagues
30171
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".`,
30172
30174
  "NL.E1101": (a) => {
@@ -31686,6 +31688,12 @@ var STYLE_PROP_KEYS = /* @__PURE__ */ new Set([
31686
31688
  "non-working"
31687
31689
  ]);
31688
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
+ ]);
31689
31697
  var BUILTIN_CAPACITY_ICONS2 = /* @__PURE__ */ new Set([
31690
31698
  "none",
31691
31699
  "multiplier",
@@ -32637,6 +32645,7 @@ var NowlineValidator = class {
32637
32645
  }
32638
32646
  }
32639
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).
32640
32649
  checkDefaultDeclaration(decl, accept) {
32641
32650
  if (!DEFAULT_ENTITY_TYPES.has(decl.entityType)) {
32642
32651
  accept("error", `"${decl.entityType}" is not a supported entity type for default. Allowed: ${[...DEFAULT_ENTITY_TYPES].join(", ")}.`, { node: decl, property: "entityType" });
@@ -32664,6 +32673,17 @@ var NowlineValidator = class {
32664
32673
  }
32665
32674
  }
32666
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
+ }
32667
32687
  }
32668
32688
  // --- Rule 7 (calendar): calendar block only valid when roadmap calendar:custom ---
32669
32689
  // Rule 8: custom calendar requires all four fields.
@@ -42796,8 +42816,8 @@ function effectiveTheme(theme, systemTheme) {
42796
42816
  }
42797
42817
 
42798
42818
  // src/index.ts
42799
- var version = true ? "0.0.0-dev.20261007201417.g52bd711" : "0.0.0";
42800
- var sha = true ? "52bd711" : "unknown";
42819
+ var version = true ? "0.0.0-dev.20261007202622.gb1ca57b" : "0.0.0";
42820
+ var sha = true ? "b1ca57b" : "unknown";
42801
42821
  var DEFAULT_SELECTOR = "pre code.language-nowline, code.language-nowline";
42802
42822
  var initialConfig = {
42803
42823
  theme: "auto",