@nowline/embed 0.0.0-dev.20261016123749.g5260133 → 0.0.0-dev.20261016131303.g46e5473
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 +70 -12
- package/dist/nowline.esm.js +63 -25
- package/dist/nowline.esm.js.map +4 -4
- package/dist/nowline.min.js +55 -55
- package/dist/nowline.min.js.map +4 -4
- package/package.json +6 -6
package/dist/meta.json
CHANGED
|
@@ -5141,17 +5141,17 @@
|
|
|
5141
5141
|
"format": "esm"
|
|
5142
5142
|
},
|
|
5143
5143
|
"../core/dist/i18n/codes.js": {
|
|
5144
|
-
"bytes":
|
|
5144
|
+
"bytes": 2642,
|
|
5145
5145
|
"imports": [],
|
|
5146
5146
|
"format": "esm"
|
|
5147
5147
|
},
|
|
5148
5148
|
"../core/dist/i18n/messages.en.js": {
|
|
5149
|
-
"bytes":
|
|
5149
|
+
"bytes": 21089,
|
|
5150
5150
|
"imports": [],
|
|
5151
5151
|
"format": "esm"
|
|
5152
5152
|
},
|
|
5153
5153
|
"../core/dist/i18n/messages.fr.js": {
|
|
5154
|
-
"bytes":
|
|
5154
|
+
"bytes": 24934,
|
|
5155
5155
|
"imports": [],
|
|
5156
5156
|
"format": "esm"
|
|
5157
5157
|
},
|
|
@@ -5280,7 +5280,7 @@
|
|
|
5280
5280
|
"format": "esm"
|
|
5281
5281
|
},
|
|
5282
5282
|
"../core/dist/language/include-waves.js": {
|
|
5283
|
-
"bytes":
|
|
5283
|
+
"bytes": 12057,
|
|
5284
5284
|
"imports": [
|
|
5285
5285
|
{
|
|
5286
5286
|
"path": "../core/dist/generated/ast.js",
|
|
@@ -5325,13 +5325,55 @@
|
|
|
5325
5325
|
],
|
|
5326
5326
|
"format": "esm"
|
|
5327
5327
|
},
|
|
5328
|
+
"../core/dist/language/references.js": {
|
|
5329
|
+
"bytes": 1542,
|
|
5330
|
+
"imports": [
|
|
5331
|
+
{
|
|
5332
|
+
"path": "../core/dist/util/props.js",
|
|
5333
|
+
"kind": "import-statement",
|
|
5334
|
+
"original": "../util/props.js"
|
|
5335
|
+
},
|
|
5336
|
+
{
|
|
5337
|
+
"path": "../core/dist/language/ast-walk.js",
|
|
5338
|
+
"kind": "import-statement",
|
|
5339
|
+
"original": "./ast-walk.js"
|
|
5340
|
+
},
|
|
5341
|
+
{
|
|
5342
|
+
"path": "../core/dist/language/waves.js",
|
|
5343
|
+
"kind": "import-statement",
|
|
5344
|
+
"original": "./waves.js"
|
|
5345
|
+
}
|
|
5346
|
+
],
|
|
5347
|
+
"format": "esm"
|
|
5348
|
+
},
|
|
5349
|
+
"../core/dist/language/include-references.js": {
|
|
5350
|
+
"bytes": 2051,
|
|
5351
|
+
"imports": [
|
|
5352
|
+
{
|
|
5353
|
+
"path": "../core/dist/i18n/index.js",
|
|
5354
|
+
"kind": "import-statement",
|
|
5355
|
+
"original": "../i18n/index.js"
|
|
5356
|
+
},
|
|
5357
|
+
{
|
|
5358
|
+
"path": "../core/dist/language/include-waves.js",
|
|
5359
|
+
"kind": "import-statement",
|
|
5360
|
+
"original": "./include-waves.js"
|
|
5361
|
+
},
|
|
5362
|
+
{
|
|
5363
|
+
"path": "../core/dist/language/references.js",
|
|
5364
|
+
"kind": "import-statement",
|
|
5365
|
+
"original": "./references.js"
|
|
5366
|
+
}
|
|
5367
|
+
],
|
|
5368
|
+
"format": "esm"
|
|
5369
|
+
},
|
|
5328
5370
|
"stub-node-read-file:../util/node-read-file.js": {
|
|
5329
5371
|
"bytes": 125,
|
|
5330
5372
|
"imports": [],
|
|
5331
5373
|
"format": "esm"
|
|
5332
5374
|
},
|
|
5333
5375
|
"../core/dist/language/include-resolver.js": {
|
|
5334
|
-
"bytes":
|
|
5376
|
+
"bytes": 21549,
|
|
5335
5377
|
"imports": [
|
|
5336
5378
|
{
|
|
5337
5379
|
"path": "../../node_modules/.pnpm/langium@4.4.0/node_modules/langium/lib/index.js",
|
|
@@ -5353,6 +5395,11 @@
|
|
|
5353
5395
|
"kind": "import-statement",
|
|
5354
5396
|
"original": "../util/props.js"
|
|
5355
5397
|
},
|
|
5398
|
+
{
|
|
5399
|
+
"path": "../core/dist/language/include-references.js",
|
|
5400
|
+
"kind": "import-statement",
|
|
5401
|
+
"original": "./include-references.js"
|
|
5402
|
+
},
|
|
5356
5403
|
{
|
|
5357
5404
|
"path": "../core/dist/language/include-waves.js",
|
|
5358
5405
|
"kind": "import-statement",
|
|
@@ -5512,7 +5559,7 @@
|
|
|
5512
5559
|
"format": "esm"
|
|
5513
5560
|
},
|
|
5514
5561
|
"../core/dist/language/validator/references.js": {
|
|
5515
|
-
"bytes":
|
|
5562
|
+
"bytes": 11988,
|
|
5516
5563
|
"imports": [
|
|
5517
5564
|
{
|
|
5518
5565
|
"path": "../core/dist/generated/ast.js",
|
|
@@ -5529,6 +5576,11 @@
|
|
|
5529
5576
|
"kind": "import-statement",
|
|
5530
5577
|
"original": "../ast-walk.js"
|
|
5531
5578
|
},
|
|
5579
|
+
{
|
|
5580
|
+
"path": "../core/dist/language/references.js",
|
|
5581
|
+
"kind": "import-statement",
|
|
5582
|
+
"original": "../references.js"
|
|
5583
|
+
},
|
|
5532
5584
|
{
|
|
5533
5585
|
"path": "../core/dist/language/validator-utils.js",
|
|
5534
5586
|
"kind": "import-statement",
|
|
@@ -10278,7 +10330,7 @@
|
|
|
10278
10330
|
"imports": [],
|
|
10279
10331
|
"exports": [],
|
|
10280
10332
|
"inputs": {},
|
|
10281
|
-
"bytes":
|
|
10333
|
+
"bytes": 3677381
|
|
10282
10334
|
},
|
|
10283
10335
|
"dist/nowline.min.js": {
|
|
10284
10336
|
"imports": [],
|
|
@@ -11147,10 +11199,10 @@
|
|
|
11147
11199
|
"bytesInOutput": 182
|
|
11148
11200
|
},
|
|
11149
11201
|
"../core/dist/i18n/messages.en.js": {
|
|
11150
|
-
"bytesInOutput":
|
|
11202
|
+
"bytesInOutput": 15989
|
|
11151
11203
|
},
|
|
11152
11204
|
"../core/dist/i18n/messages.fr.js": {
|
|
11153
|
-
"bytesInOutput":
|
|
11205
|
+
"bytesInOutput": 20171
|
|
11154
11206
|
},
|
|
11155
11207
|
"../core/dist/i18n/messages.fr-CA.js": {
|
|
11156
11208
|
"bytesInOutput": 10
|
|
@@ -11179,8 +11231,14 @@
|
|
|
11179
11231
|
"../core/dist/language/include-waves.js": {
|
|
11180
11232
|
"bytesInOutput": 3828
|
|
11181
11233
|
},
|
|
11234
|
+
"../core/dist/language/references.js": {
|
|
11235
|
+
"bytesInOutput": 281
|
|
11236
|
+
},
|
|
11237
|
+
"../core/dist/language/include-references.js": {
|
|
11238
|
+
"bytesInOutput": 423
|
|
11239
|
+
},
|
|
11182
11240
|
"../core/dist/language/include-resolver.js": {
|
|
11183
|
-
"bytesInOutput":
|
|
11241
|
+
"bytesInOutput": 7268
|
|
11184
11242
|
},
|
|
11185
11243
|
"../core/dist/language/validator/support.js": {
|
|
11186
11244
|
"bytesInOutput": 580
|
|
@@ -11198,7 +11256,7 @@
|
|
|
11198
11256
|
"bytesInOutput": 4294
|
|
11199
11257
|
},
|
|
11200
11258
|
"../core/dist/language/validator/references.js": {
|
|
11201
|
-
"bytesInOutput":
|
|
11259
|
+
"bytesInOutput": 2786
|
|
11202
11260
|
},
|
|
11203
11261
|
"../core/dist/language/validator/structure.js": {
|
|
11204
11262
|
"bytesInOutput": 2030
|
|
@@ -11456,7 +11514,7 @@
|
|
|
11456
11514
|
"bytesInOutput": 257
|
|
11457
11515
|
}
|
|
11458
11516
|
},
|
|
11459
|
-
"bytes":
|
|
11517
|
+
"bytes": 670650
|
|
11460
11518
|
}
|
|
11461
11519
|
}
|
|
11462
11520
|
}
|
package/dist/nowline.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @nowline/embed 0.0.0-dev.
|
|
1
|
+
/*! @nowline/embed 0.0.0-dev.20261016131303.g46e5473 sha=46e5473 built=2026-10-16T13:07:36Z */
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -26077,6 +26077,7 @@ var messages = {
|
|
|
26077
26077
|
// Identifier
|
|
26078
26078
|
"NL.E0300": (a) => `Duplicate identifier "${a.name}". First declared at ${a.location}.`,
|
|
26079
26079
|
"NL.E0301": (a) => `${a.type} must have an identifier, a title, or both.`,
|
|
26080
|
+
"NL.E0302": (a) => `${a.key}: reference "${a.value}" does not resolve to any declared entity in this file.`,
|
|
26080
26081
|
// Property values
|
|
26081
26082
|
"NL.E0400": (a) => `Invalid duration "${a.value}". Use a raw duration literal like 0.5d, 2w, 1m, 2q. Use "size:NAME" to reference a declared size.`,
|
|
26082
26083
|
"NL.E0401": (a) => `Invalid size "${a.value}". Use the id of a declared size (e.g. xs, m, lg).`,
|
|
@@ -26345,6 +26346,7 @@ var messages2 = {
|
|
|
26345
26346
|
// Identifiant
|
|
26346
26347
|
"NL.E0300": (a) => `Identifiant en double \xAB\xA0${a.name}\xA0\xBB. Premi\xE8re d\xE9claration \xE0 ${a.location}.`,
|
|
26347
26348
|
"NL.E0301": (a) => `${a.type} doit comporter un identifiant, un titre, ou les deux.`,
|
|
26349
|
+
"NL.E0302": (a) => `La r\xE9f\xE9rence \xAB\xA0${a.value}\xA0\xBB de \xAB\xA0${a.key}:\xA0\xBB ne d\xE9signe aucune entit\xE9 d\xE9clar\xE9e dans ce fichier.`,
|
|
26348
26350
|
// Valeurs de propriété
|
|
26349
26351
|
"NL.E0400": (a) => `Dur\xE9e invalide \xAB\xA0${a.value}\xA0\xBB. Utilisez un litt\xE9ral de dur\xE9e brut comme 0.5d, 2w, 1m, 2q. Utilisez \xAB\xA0size:NOM\xA0\xBB pour r\xE9f\xE9rencer une taille d\xE9clar\xE9e.`,
|
|
26350
26352
|
"NL.E0401": (a) => `Taille invalide \xAB\xA0${a.value}\xA0\xBB. Utilisez l'identifiant d'une taille d\xE9clar\xE9e (p.\xA0ex. xs, m, lg).`,
|
|
@@ -28050,6 +28052,61 @@ function runResolverWaveChecks(input) {
|
|
|
28050
28052
|
return out;
|
|
28051
28053
|
}
|
|
28052
28054
|
|
|
28055
|
+
// ../core/dist/language/references.js
|
|
28056
|
+
function unresolvedReferences(file) {
|
|
28057
|
+
const declaredIds = referenceableIds(file);
|
|
28058
|
+
const out = [];
|
|
28059
|
+
for (const entry of file.roadmapEntries) {
|
|
28060
|
+
visitProperties(entry, (prop) => {
|
|
28061
|
+
const key = propKey(prop);
|
|
28062
|
+
if (key !== "after" && key !== "before" && key !== "on")
|
|
28063
|
+
return;
|
|
28064
|
+
if (isWaveBannedProperty(prop))
|
|
28065
|
+
return;
|
|
28066
|
+
const vals = prop.value ? [prop.value] : prop.values;
|
|
28067
|
+
for (const v of vals) {
|
|
28068
|
+
if (!v)
|
|
28069
|
+
continue;
|
|
28070
|
+
if ((key === "after" || key === "before") && ISO_DATE_RE.test(v))
|
|
28071
|
+
continue;
|
|
28072
|
+
if (!declaredIds.has(v))
|
|
28073
|
+
out.push({ prop, key, value: v });
|
|
28074
|
+
}
|
|
28075
|
+
});
|
|
28076
|
+
}
|
|
28077
|
+
return out;
|
|
28078
|
+
}
|
|
28079
|
+
|
|
28080
|
+
// ../core/dist/language/include-references.js
|
|
28081
|
+
function checkIncludedReferences(rootAbs, edges) {
|
|
28082
|
+
const out = [];
|
|
28083
|
+
const seen = /* @__PURE__ */ new Set([rootAbs]);
|
|
28084
|
+
const walk2 = (abs) => {
|
|
28085
|
+
for (const edge of edges.get(abs) ?? []) {
|
|
28086
|
+
if (edge.mode === "ignore" || seen.has(edge.childAbs))
|
|
28087
|
+
continue;
|
|
28088
|
+
seen.add(edge.childAbs);
|
|
28089
|
+
if (!hasParseErrors(edge.childFile)) {
|
|
28090
|
+
for (const { prop, key, value } of unresolvedReferences(edge.childFile)) {
|
|
28091
|
+
const line = prop.$cstNode?.range.start.line;
|
|
28092
|
+
const args = [{ key, value }];
|
|
28093
|
+
out.push({
|
|
28094
|
+
severity: "error",
|
|
28095
|
+
message: tr("en-US", "NL.E0302", ...args),
|
|
28096
|
+
sourcePath: edge.childAbs,
|
|
28097
|
+
...line === void 0 ? {} : { line },
|
|
28098
|
+
code: "NL.E0302",
|
|
28099
|
+
args
|
|
28100
|
+
});
|
|
28101
|
+
}
|
|
28102
|
+
}
|
|
28103
|
+
walk2(edge.childAbs);
|
|
28104
|
+
}
|
|
28105
|
+
};
|
|
28106
|
+
walk2(rootAbs);
|
|
28107
|
+
return out;
|
|
28108
|
+
}
|
|
28109
|
+
|
|
28053
28110
|
// ../core/dist/language/include-resolver.js
|
|
28054
28111
|
function readStartProp(decl) {
|
|
28055
28112
|
const prop = decl?.properties.find((p) => p.key === "start");
|
|
@@ -28117,6 +28174,7 @@ async function resolveIncludes(file, filePath, options) {
|
|
|
28117
28174
|
edges: ctx.edges,
|
|
28118
28175
|
failed: ctx.failedWaves
|
|
28119
28176
|
}));
|
|
28177
|
+
ctx.diagnostics.push(...checkIncludedReferences(absPath, ctx.edges));
|
|
28120
28178
|
return {
|
|
28121
28179
|
config: config2,
|
|
28122
28180
|
content,
|
|
@@ -29429,28 +29487,8 @@ function checkForwardReferences(file, accept) {
|
|
|
29429
29487
|
}
|
|
29430
29488
|
}
|
|
29431
29489
|
function checkReferenceResolution(file, accept) {
|
|
29432
|
-
const
|
|
29433
|
-
|
|
29434
|
-
visitProperties(entry, (prop) => {
|
|
29435
|
-
const key = propKey(prop);
|
|
29436
|
-
if (key !== "after" && key !== "before" && key !== "on")
|
|
29437
|
-
return;
|
|
29438
|
-
if (isWaveBannedProperty(prop))
|
|
29439
|
-
return;
|
|
29440
|
-
const vals = prop.value ? [prop.value] : prop.values;
|
|
29441
|
-
for (const v of vals) {
|
|
29442
|
-
if (!v)
|
|
29443
|
-
continue;
|
|
29444
|
-
if ((key === "after" || key === "before") && ISO_DATE_RE.test(v))
|
|
29445
|
-
continue;
|
|
29446
|
-
if (!declaredIds.has(v)) {
|
|
29447
|
-
accept("error", `${key}: reference "${v}" does not resolve to any declared entity in this file.`, { node: prop });
|
|
29448
|
-
}
|
|
29449
|
-
}
|
|
29450
|
-
});
|
|
29451
|
-
};
|
|
29452
|
-
for (const entry of file.roadmapEntries) {
|
|
29453
|
-
visit(entry);
|
|
29490
|
+
for (const { prop, key, value } of unresolvedReferences(file)) {
|
|
29491
|
+
acceptTr(accept, "error", { node: prop }, "NL.E0302", { key, value });
|
|
29454
29492
|
}
|
|
29455
29493
|
}
|
|
29456
29494
|
function checkInlineDatePins(file, accept) {
|
|
@@ -40567,8 +40605,8 @@ function effectiveTheme(theme, systemTheme) {
|
|
|
40567
40605
|
}
|
|
40568
40606
|
|
|
40569
40607
|
// src/index.ts
|
|
40570
|
-
var version = true ? "0.0.0-dev.
|
|
40571
|
-
var sha = true ? "
|
|
40608
|
+
var version = true ? "0.0.0-dev.20261016131303.g46e5473" : "0.0.0";
|
|
40609
|
+
var sha = true ? "46e5473" : "unknown";
|
|
40572
40610
|
var DEFAULT_SELECTOR = "pre code.language-nowline, code.language-nowline";
|
|
40573
40611
|
var initialConfig = {
|
|
40574
40612
|
theme: "auto",
|