@nowline/embed 0.0.0-dev.20261007202622.gb1ca57b → 0.0.0-dev.20261007205200.g9919f48

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": 2333,
5674
+ "bytes": 2477,
5675
5675
  "imports": [],
5676
5676
  "format": "esm"
5677
5677
  },
5678
5678
  "../core/dist/i18n/messages.en.js": {
5679
- "bytes": 18900,
5679
+ "bytes": 20058,
5680
5680
  "imports": [],
5681
5681
  "format": "esm"
5682
5682
  },
5683
5683
  "../core/dist/i18n/messages.fr.js": {
5684
- "bytes": 22063,
5684
+ "bytes": 23729,
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": 81865,
5793
+ "bytes": 81710,
5794
5794
  "imports": [
5795
5795
  {
5796
5796
  "path": "../../node_modules/.pnpm/langium@4.4.0/node_modules/langium/lib/index.js",
@@ -6125,7 +6125,7 @@
6125
6125
  "format": "esm"
6126
6126
  },
6127
6127
  "../layout/dist/non-working-display.js": {
6128
- "bytes": 1221,
6128
+ "bytes": 1276,
6129
6129
  "imports": [],
6130
6130
  "format": "esm"
6131
6131
  },
@@ -6145,7 +6145,7 @@
6145
6145
  "format": "esm"
6146
6146
  },
6147
6147
  "../layout/dist/themes/index.js": {
6148
- "bytes": 2224,
6148
+ "bytes": 2502,
6149
6149
  "imports": [
6150
6150
  {
6151
6151
  "path": "../layout/dist/themes/dark.js",
@@ -9469,7 +9469,7 @@
9469
9469
  "format": "esm"
9470
9470
  },
9471
9471
  "../layout/dist/index.js": {
9472
- "bytes": 4718,
9472
+ "bytes": 4731,
9473
9473
  "imports": [
9474
9474
  {
9475
9475
  "path": "../layout/dist/calendar-resolver.js",
@@ -9838,7 +9838,7 @@
9838
9838
  "imports": [],
9839
9839
  "exports": [],
9840
9840
  "inputs": {},
9841
- "bytes": 3766400
9841
+ "bytes": 3770869
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": 14057
10794
+ "bytesInOutput": 15111
10795
10795
  },
10796
10796
  "../core/dist/i18n/messages.fr.js": {
10797
- "bytesInOutput": 17531
10797
+ "bytesInOutput": 19110
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": 26794
10824
+ "bytesInOutput": 26242
10825
10825
  },
10826
10826
  "../core/dist/language/include-waves.js": {
10827
10827
  "bytesInOutput": 3829
@@ -10869,7 +10869,7 @@
10869
10869
  "bytesInOutput": 3322
10870
10870
  },
10871
10871
  "../layout/dist/themes/index.js": {
10872
- "bytesInOutput": 382
10872
+ "bytesInOutput": 386
10873
10873
  },
10874
10874
  "../layout/dist/style-resolution.js": {
10875
10875
  "bytesInOutput": 2460
@@ -11013,7 +11013,7 @@
11013
11013
  "bytesInOutput": 257
11014
11014
  }
11015
11015
  },
11016
- "bytes": 731331
11016
+ "bytes": 733416
11017
11017
  }
11018
11018
  }
11019
11019
  }
@@ -1,4 +1,4 @@
1
- /*! @nowline/embed 0.0.0-dev.20261007202622.gb1ca57b sha=b1ca57b built=2026-10-07T13:26:00-07:00 */
1
+ /*! @nowline/embed 0.0.0-dev.20261007205200.g9919f48 sha=9919f48 built=2026-10-07T13:51:33-07:00 */
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -29915,6 +29915,15 @@ var messages = {
29915
29915
  "NL.E0801": (a) => `Invalid color "${a.value}" for "${a.key}". Use a named color, hex value, or "none".`,
29916
29916
  "NL.E0802": (a) => `Invalid value "${a.value}" for "${a.key}". Allowed: ${a.allowed}.`,
29917
29917
  "NL.E0803": (a) => `Unknown style property "${a.key}".`,
29918
+ "NL.E0804": (a) => `Raw style property "${a.key}" is not allowed on ${a.entity}. Declare a named style in config and reference it via "style:id".`,
29919
+ "NL.E0805": (a) => `Symbol id "${a.name}" collides with a built-in icon name. Reserved built-ins: ${a.builtins}.`,
29920
+ "NL.E0806": (a) => `Symbol "${a.name}" requires a "unicode:" property (e.g. unicode:"\u{1F4B0}" or unicode:"\\u{1F464}").`,
29921
+ "NL.E0807": (a) => `Symbol "${a.name}" unicode: must be a non-empty value.`,
29922
+ "NL.E0808": (a) => `Symbol "${a.name}" ascii: must be 1-3 ASCII characters (got ${a.length} character${a.length === 1 ? "" : "s"}).`,
29923
+ "NL.E0809": (a) => `Unknown symbol property "${a.key}". Allowed: unicode, ascii, link, description.`,
29924
+ "NL.E0810": (a) => `Duplicate symbol id "${a.name}". First declared at ${a.location}.`,
29925
+ "NL.E0811": (a) => `${a.key}: "${a.value}" is neither a built-in (${a.builtins}) nor a declared symbol. Add "symbol ${a.value} unicode:..." earlier in config or use a quoted Unicode literal.`,
29926
+ "NL.E0812": (a) => `${a.key}: symbol "${a.value}" is referenced before its declaration. Move "symbol ${a.value}" above this entry.`,
29918
29927
  // Warnings
29919
29928
  "NL.W0700": (a) => `Unknown property "${a.key}" on ${a.entity}. The renderer ignores it.${a.suggested ? ` Did you mean "${a.suggested}"?` : ""}`,
29920
29929
  "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.`,
@@ -30164,6 +30173,16 @@ var messages2 = {
30164
30173
  "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
30174
  "NL.E0802": (a) => `Valeur invalide \xAB\xA0${a.value}\xA0\xBB pour \xAB\xA0${a.key}\xA0\xBB. Valeurs admises\xA0: ${a.allowed}.`,
30166
30175
  "NL.E0803": (a) => `Propri\xE9t\xE9 de style inconnue \xAB\xA0${a.key}\xA0\xBB.`,
30176
+ "NL.E0804": (a) => `La propri\xE9t\xE9 de style brute \xAB\xA0${a.key}\xA0\xBB n'est pas permise sur ${a.entity}. D\xE9clarez un style nomm\xE9 dans la config et r\xE9f\xE9rencez-le avec \xAB\xA0style:id\xA0\xBB.`,
30177
+ "NL.E0805": (a) => `L'identifiant de symbole \xAB\xA0${a.name}\xA0\xBB entre en conflit avec le nom d'une ic\xF4ne int\xE9gr\xE9e. Noms r\xE9serv\xE9s\xA0: ${a.builtins}.`,
30178
+ "NL.E0806": (a) => `Le symbole \xAB\xA0${a.name}\xA0\xBB exige une propri\xE9t\xE9 \xAB\xA0unicode:\xA0\xBB (p.\xA0ex. unicode:"\u{1F4B0}" ou unicode:"\\u{1F464}").`,
30179
+ "NL.E0807": (a) => `La propri\xE9t\xE9 \xAB\xA0unicode:\xA0\xBB du symbole \xAB\xA0${a.name}\xA0\xBB doit avoir une valeur non vide.`,
30180
+ // Le français met le singulier à 0 et à 1.
30181
+ "NL.E0808": (a) => `La propri\xE9t\xE9 \xAB\xA0ascii:\xA0\xBB du symbole \xAB\xA0${a.name}\xA0\xBB doit compter de 1 \xE0 3 caract\xE8res ASCII (re\xE7u\xA0: ${a.length} caract\xE8re${a.length > 1 ? "s" : ""}).`,
30182
+ "NL.E0809": (a) => `Propri\xE9t\xE9 de symbole inconnue \xAB\xA0${a.key}\xA0\xBB. Valeurs admises\xA0: unicode, ascii, link, description.`,
30183
+ "NL.E0810": (a) => `Identifiant de symbole en double \xAB\xA0${a.name}\xA0\xBB. Premi\xE8re d\xE9claration \xE0 ${a.location}.`,
30184
+ "NL.E0811": (a) => `${a.key}: \xAB\xA0${a.value}\xA0\xBB n'est ni une ic\xF4ne int\xE9gr\xE9e (${a.builtins}) ni un symbole d\xE9clar\xE9. Ajoutez \xAB\xA0symbol ${a.value} unicode:...\xA0\xBB plus haut dans la config ou utilisez un litt\xE9ral Unicode entre guillemets.`,
30185
+ "NL.E0812": (a) => `${a.key}: le symbole \xAB\xA0${a.value}\xA0\xBB est r\xE9f\xE9renc\xE9 avant sa d\xE9claration. D\xE9placez \xAB\xA0symbol ${a.value}\xA0\xBB au-dessus de cette entr\xE9e.`,
30167
30186
  // Avertissements
30168
30187
  "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?` : ""}`,
30169
30188
  "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.`,
@@ -32485,7 +32504,10 @@ var NowlineValidator = class {
32485
32504
  for (const prop of node.properties) {
32486
32505
  const key = propKey2(prop);
32487
32506
  if (STYLE_PROP_KEYS.has(key)) {
32488
- accept("error", `Raw style property "${key}" is not allowed on ${describeNode(node)}. Declare a named style in config and reference it via "style:id".`, { node: prop });
32507
+ acceptTr(accept, "error", { node: prop }, "NL.E0804", {
32508
+ key,
32509
+ entity: describeNode(node)
32510
+ });
32489
32511
  }
32490
32512
  }
32491
32513
  }
@@ -33046,28 +33068,33 @@ var NowlineValidator = class {
33046
33068
  // `unicode:foo`, which we treat permissively (it's a single-grapheme literal).
33047
33069
  checkSymbolDeclaration(decl, accept) {
33048
33070
  if (decl.name && BUILTIN_ICON_NAMES.has(decl.name)) {
33049
- accept("error", `Symbol id "${decl.name}" collides with a built-in icon name. Reserved built-ins: ${[...BUILTIN_ICON_NAMES].sort().join(", ")}.`, { node: decl, property: "name" });
33071
+ acceptTr(accept, "error", { node: decl, property: "name" }, "NL.E0805", {
33072
+ name: decl.name,
33073
+ builtins: [...BUILTIN_ICON_NAMES].sort().join(", ")
33074
+ });
33050
33075
  }
33051
33076
  const unicodeProp = decl.properties.find((p) => propKey2(p) === "unicode");
33052
33077
  if (!unicodeProp) {
33053
- accept("error", `Symbol "${displayName(decl)}" requires a "unicode:" property (e.g. unicode:"\u{1F4B0}" or unicode:"\\u{1F464}").`, { node: decl });
33078
+ acceptTr(accept, "error", { node: decl }, "NL.E0806", { name: displayName(decl) });
33054
33079
  } else if (!unicodeProp.value || unicodeProp.value.length === 0) {
33055
- accept("error", `Symbol "${displayName(decl)}" unicode: must be a non-empty value.`, {
33056
- node: unicodeProp,
33057
- property: "value"
33080
+ acceptTr(accept, "error", { node: unicodeProp, property: "value" }, "NL.E0807", {
33081
+ name: displayName(decl)
33058
33082
  });
33059
33083
  }
33060
33084
  const asciiProp = decl.properties.find((p) => propKey2(p) === "ascii");
33061
33085
  if (asciiProp) {
33062
33086
  const raw = asciiProp.value ?? "";
33063
33087
  if (!ASCII_FALLBACK_RE.test(raw)) {
33064
- accept("error", `Symbol "${displayName(decl)}" ascii: must be 1-3 ASCII characters (got ${raw.length} character${raw.length === 1 ? "" : "s"}).`, { node: asciiProp, property: "value" });
33088
+ acceptTr(accept, "error", { node: asciiProp, property: "value" }, "NL.E0808", {
33089
+ name: displayName(decl),
33090
+ length: raw.length
33091
+ });
33065
33092
  }
33066
33093
  }
33067
33094
  for (const prop of decl.properties) {
33068
33095
  const key = propKey2(prop);
33069
33096
  if (key !== "unicode" && key !== "ascii" && key !== "link" && key !== "description") {
33070
- accept("error", `Unknown symbol property "${key}". Allowed: unicode, ascii, link, description.`, { node: prop, property: "key" });
33097
+ acceptTr(accept, "error", { node: prop, property: "key" }, "NL.E0809", { key });
33071
33098
  }
33072
33099
  }
33073
33100
  }
@@ -33078,7 +33105,10 @@ var NowlineValidator = class {
33078
33105
  if (isSymbolDeclaration(entry) && entry.name) {
33079
33106
  const existing = seen.get(entry.name);
33080
33107
  if (existing) {
33081
- accept("error", `Duplicate symbol id "${entry.name}". First declared at ${locationOf(existing)}.`, { node: entry, property: "name" });
33108
+ acceptTr(accept, "error", { node: entry, property: "name" }, "NL.E0810", {
33109
+ name: entry.name,
33110
+ location: locationOf(existing)
33111
+ });
33082
33112
  } else {
33083
33113
  seen.set(entry.name, entry);
33084
33114
  }
@@ -33113,9 +33143,16 @@ var NowlineValidator = class {
33113
33143
  const declIdx = symbolOrder.get(val);
33114
33144
  if (declIdx === void 0) {
33115
33145
  const builtins = key === "capacity-icon" ? [...BUILTIN_CAPACITY_ICONS2].sort().join(", ") : [...BUILTIN_ICON_NAMES].sort().join(", ");
33116
- accept("error", `${key}: "${val}" is neither a built-in (${builtins}) nor a declared symbol. Add "symbol ${val} unicode:..." earlier in config or use a quoted Unicode literal.`, { node: propNode, property: "value" });
33146
+ acceptTr(accept, "error", { node: propNode, property: "value" }, "NL.E0811", {
33147
+ key,
33148
+ value: val,
33149
+ builtins
33150
+ });
33117
33151
  } else if (declIdx >= entryIdx) {
33118
- accept("error", `${key}: symbol "${val}" is referenced before its declaration. Move "symbol ${val}" above this entry.`, { node: propNode, property: "value" });
33152
+ acceptTr(accept, "error", { node: propNode, property: "value" }, "NL.E0812", {
33153
+ key,
33154
+ value: val
33155
+ });
33119
33156
  }
33120
33157
  };
33121
33158
  for (let i2 = 0; i2 < file.configEntries.length; i2++) {
@@ -35417,6 +35454,7 @@ var lightTheme = {
35417
35454
  };
35418
35455
 
35419
35456
  // ../layout/dist/themes/index.js
35457
+ var THEME_NAMES = ["light", "dark", "grayscale"];
35420
35458
  var themes = {
35421
35459
  light: lightTheme,
35422
35460
  dark: darkTheme,
@@ -35428,10 +35466,7 @@ var THEME_ALIASES = {
35428
35466
  function normalizeThemeName(raw) {
35429
35467
  const lower = raw.toLowerCase();
35430
35468
  const canonical = THEME_ALIASES[lower] ?? lower;
35431
- if (canonical === "light" || canonical === "dark" || canonical === "grayscale") {
35432
- return canonical;
35433
- }
35434
- return void 0;
35469
+ return THEME_NAMES.find((name) => name === canonical);
35435
35470
  }
35436
35471
  var COLOR_ALIASES = {
35437
35472
  grey: "gray",
@@ -42816,8 +42851,8 @@ function effectiveTheme(theme, systemTheme) {
42816
42851
  }
42817
42852
 
42818
42853
  // src/index.ts
42819
- var version = true ? "0.0.0-dev.20261007202622.gb1ca57b" : "0.0.0";
42820
- var sha = true ? "b1ca57b" : "unknown";
42854
+ var version = true ? "0.0.0-dev.20261007205200.g9919f48" : "0.0.0";
42855
+ var sha = true ? "9919f48" : "unknown";
42821
42856
  var DEFAULT_SELECTOR = "pre code.language-nowline, code.language-nowline";
42822
42857
  var initialConfig = {
42823
42858
  theme: "auto",