@nowline/embed 0.0.0-dev.20261105154548.g13069c3 → 0.0.0-dev.20261105233915.g49a2d2a
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 +42 -14
- package/dist/nowline.esm.js +19 -5
- package/dist/nowline.esm.js.map +3 -3
- package/dist/nowline.min.js +57 -57
- package/dist/nowline.min.js.map +4 -4
- package/package.json +6 -6
package/dist/meta.json
CHANGED
|
@@ -5135,17 +5135,17 @@
|
|
|
5135
5135
|
"format": "esm"
|
|
5136
5136
|
},
|
|
5137
5137
|
"../core/dist/i18n/codes.js": {
|
|
5138
|
-
"bytes":
|
|
5138
|
+
"bytes": 2786,
|
|
5139
5139
|
"imports": [],
|
|
5140
5140
|
"format": "esm"
|
|
5141
5141
|
},
|
|
5142
5142
|
"../core/dist/i18n/messages.en.js": {
|
|
5143
|
-
"bytes":
|
|
5143
|
+
"bytes": 23256,
|
|
5144
5144
|
"imports": [],
|
|
5145
5145
|
"format": "esm"
|
|
5146
5146
|
},
|
|
5147
5147
|
"../core/dist/i18n/messages.fr.js": {
|
|
5148
|
-
"bytes":
|
|
5148
|
+
"bytes": 27347,
|
|
5149
5149
|
"imports": [],
|
|
5150
5150
|
"format": "esm"
|
|
5151
5151
|
},
|
|
@@ -5562,14 +5562,24 @@
|
|
|
5562
5562
|
],
|
|
5563
5563
|
"format": "esm"
|
|
5564
5564
|
},
|
|
5565
|
+
"../core/dist/util/allowed-link.js": {
|
|
5566
|
+
"bytes": 620,
|
|
5567
|
+
"imports": [],
|
|
5568
|
+
"format": "esm"
|
|
5569
|
+
},
|
|
5565
5570
|
"../core/dist/language/validator/properties.js": {
|
|
5566
|
-
"bytes":
|
|
5571
|
+
"bytes": 15715,
|
|
5567
5572
|
"imports": [
|
|
5568
5573
|
{
|
|
5569
5574
|
"path": "../core/dist/generated/ast.js",
|
|
5570
5575
|
"kind": "import-statement",
|
|
5571
5576
|
"original": "../../generated/ast.js"
|
|
5572
5577
|
},
|
|
5578
|
+
{
|
|
5579
|
+
"path": "../core/dist/util/allowed-link.js",
|
|
5580
|
+
"kind": "import-statement",
|
|
5581
|
+
"original": "../../util/allowed-link.js"
|
|
5582
|
+
},
|
|
5573
5583
|
{
|
|
5574
5584
|
"path": "../core/dist/util/props.js",
|
|
5575
5585
|
"kind": "import-statement",
|
|
@@ -5871,7 +5881,7 @@
|
|
|
5871
5881
|
"format": "esm"
|
|
5872
5882
|
},
|
|
5873
5883
|
"../core/dist/index.js": {
|
|
5874
|
-
"bytes":
|
|
5884
|
+
"bytes": 1456,
|
|
5875
5885
|
"imports": [
|
|
5876
5886
|
{
|
|
5877
5887
|
"path": "../core/dist/convert/parse-json.js",
|
|
@@ -5948,6 +5958,11 @@
|
|
|
5948
5958
|
"kind": "import-statement",
|
|
5949
5959
|
"original": "./templates.js"
|
|
5950
5960
|
},
|
|
5961
|
+
{
|
|
5962
|
+
"path": "../core/dist/util/allowed-link.js",
|
|
5963
|
+
"kind": "import-statement",
|
|
5964
|
+
"original": "./util/allowed-link.js"
|
|
5965
|
+
},
|
|
5951
5966
|
{
|
|
5952
5967
|
"path": "../core/dist/util/single-line.js",
|
|
5953
5968
|
"kind": "import-statement",
|
|
@@ -6369,8 +6384,13 @@
|
|
|
6369
6384
|
"format": "esm"
|
|
6370
6385
|
},
|
|
6371
6386
|
"../layout/dist/nodes/item-measure.js": {
|
|
6372
|
-
"bytes":
|
|
6387
|
+
"bytes": 25595,
|
|
6373
6388
|
"imports": [
|
|
6389
|
+
{
|
|
6390
|
+
"path": "../core/dist/index.js",
|
|
6391
|
+
"kind": "import-statement",
|
|
6392
|
+
"original": "@nowline/core"
|
|
6393
|
+
},
|
|
6374
6394
|
{
|
|
6375
6395
|
"path": "../layout/dist/calendar.js",
|
|
6376
6396
|
"kind": "import-statement",
|
|
@@ -10282,8 +10302,13 @@
|
|
|
10282
10302
|
"format": "esm"
|
|
10283
10303
|
},
|
|
10284
10304
|
"../renderer/dist/svg/item.js": {
|
|
10285
|
-
"bytes":
|
|
10305
|
+
"bytes": 26106,
|
|
10286
10306
|
"imports": [
|
|
10307
|
+
{
|
|
10308
|
+
"path": "../core/dist/index.js",
|
|
10309
|
+
"kind": "import-statement",
|
|
10310
|
+
"original": "@nowline/core"
|
|
10311
|
+
},
|
|
10287
10312
|
{
|
|
10288
10313
|
"path": "../layout/dist/index.js",
|
|
10289
10314
|
"kind": "import-statement",
|
|
@@ -10697,7 +10722,7 @@
|
|
|
10697
10722
|
"imports": [],
|
|
10698
10723
|
"exports": [],
|
|
10699
10724
|
"inputs": {},
|
|
10700
|
-
"bytes":
|
|
10725
|
+
"bytes": 3734834
|
|
10701
10726
|
},
|
|
10702
10727
|
"dist/nowline.min.js": {
|
|
10703
10728
|
"imports": [],
|
|
@@ -11566,10 +11591,10 @@
|
|
|
11566
11591
|
"bytesInOutput": 182
|
|
11567
11592
|
},
|
|
11568
11593
|
"../core/dist/i18n/messages.en.js": {
|
|
11569
|
-
"bytesInOutput":
|
|
11594
|
+
"bytesInOutput": 17602
|
|
11570
11595
|
},
|
|
11571
11596
|
"../core/dist/i18n/messages.fr.js": {
|
|
11572
|
-
"bytesInOutput":
|
|
11597
|
+
"bytesInOutput": 22036
|
|
11573
11598
|
},
|
|
11574
11599
|
"../core/dist/i18n/messages.fr-CA.js": {
|
|
11575
11600
|
"bytesInOutput": 10
|
|
@@ -11622,8 +11647,11 @@
|
|
|
11622
11647
|
"../core/dist/language/validator/entities.js": {
|
|
11623
11648
|
"bytesInOutput": 4175
|
|
11624
11649
|
},
|
|
11650
|
+
"../core/dist/util/allowed-link.js": {
|
|
11651
|
+
"bytesInOutput": 60
|
|
11652
|
+
},
|
|
11625
11653
|
"../core/dist/language/validator/properties.js": {
|
|
11626
|
-
"bytesInOutput":
|
|
11654
|
+
"bytesInOutput": 4382
|
|
11627
11655
|
},
|
|
11628
11656
|
"../core/dist/language/validator/references.js": {
|
|
11629
11657
|
"bytesInOutput": 2786
|
|
@@ -11719,7 +11747,7 @@
|
|
|
11719
11747
|
"bytesInOutput": 1766
|
|
11720
11748
|
},
|
|
11721
11749
|
"../layout/dist/nodes/item-measure.js": {
|
|
11722
|
-
"bytesInOutput":
|
|
11750
|
+
"bytesInOutput": 4836
|
|
11723
11751
|
},
|
|
11724
11752
|
"../layout/dist/nodes/sequence-item.js": {
|
|
11725
11753
|
"bytesInOutput": 3064
|
|
@@ -11878,7 +11906,7 @@
|
|
|
11878
11906
|
"bytesInOutput": 4619
|
|
11879
11907
|
},
|
|
11880
11908
|
"../renderer/dist/svg/item.js": {
|
|
11881
|
-
"bytesInOutput":
|
|
11909
|
+
"bytesInOutput": 6324
|
|
11882
11910
|
},
|
|
11883
11911
|
"../renderer/dist/svg/swimlanes.js": {
|
|
11884
11912
|
"bytesInOutput": 3086
|
|
@@ -11920,7 +11948,7 @@
|
|
|
11920
11948
|
"bytesInOutput": 257
|
|
11921
11949
|
}
|
|
11922
11950
|
},
|
|
11923
|
-
"bytes":
|
|
11951
|
+
"bytes": 680206
|
|
11924
11952
|
}
|
|
11925
11953
|
}
|
|
11926
11954
|
}
|
package/dist/nowline.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @nowline/embed 0.0.0-dev.
|
|
1
|
+
/*! @nowline/embed 0.0.0-dev.20261105233915.g49a2d2a sha=49a2d2a built=2026-11-05T23:27:06Z */
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -26495,6 +26495,7 @@ var messages = {
|
|
|
26495
26495
|
"NL.E0411": (a) => `Inline date in "${a.key}:" is not allowed on ${a.type}. Allowed only on item, parallel, and group, and on a wave's after:; for a milestone use "date:" instead.`,
|
|
26496
26496
|
"NL.E0412": (a) => `Inline date "${a.date}" in "${a.key}:" requires the roadmap to declare "start:". Add start:YYYY-MM-DD to the roadmap.`,
|
|
26497
26497
|
"NL.E0413": (a) => `Inline date "${a.date}" in "${a.key}:" is before roadmap start ${a.start}.`,
|
|
26498
|
+
"NL.E0414": (a) => `Invalid link "${a.value}". Use an absolute http:// or https:// URL, or a quoted "mailto:" URL.`,
|
|
26498
26499
|
// Anchor / milestone / footnote
|
|
26499
26500
|
"NL.E0500": (a) => `Anchor "${a.name}" requires a "date:" property.`,
|
|
26500
26501
|
"NL.E0501": (a) => `Anchor "${a.name}" has a date but the roadmap is missing "start:". Add start:YYYY-MM-DD to the roadmap.`,
|
|
@@ -26795,6 +26796,7 @@ var messages2 = {
|
|
|
26795
26796
|
"NL.E0411": (a) => `Une date inline dans \xAB\xA0${a.key}:\xA0\xBB n'est pas autoris\xE9e sur ${a.type}. Autoris\xE9e seulement sur item, parallel et group, et sur le \xAB\xA0after:\xA0\xBB d'une vague\xA0; pour un milestone utilisez \xAB\xA0date:\xA0\xBB \xE0 la place.`,
|
|
26796
26797
|
"NL.E0412": (a) => `La date inline \xAB\xA0${a.date}\xA0\xBB dans \xAB\xA0${a.key}:\xA0\xBB exige que la roadmap d\xE9clare \xAB\xA0start:\xA0\xBB. Ajoutez start:AAAA-MM-JJ \xE0 la roadmap.`,
|
|
26797
26798
|
"NL.E0413": (a) => `La date inline \xAB\xA0${a.date}\xA0\xBB dans \xAB\xA0${a.key}:\xA0\xBB pr\xE9c\xE8de le d\xE9but de la roadmap (${a.start}).`,
|
|
26799
|
+
"NL.E0414": (a) => `Lien invalide \xAB\xA0${a.value}\xA0\xBB. Utilisez une URL absolue en http:// ou https://, ou une URL \xAB\xA0mailto:\xA0\xBB entre guillemets.`,
|
|
26798
26800
|
// Ancre / jalon / note de bas de page
|
|
26799
26801
|
"NL.E0500": (a) => `L'ancre \xAB\xA0${a.name}\xA0\xBB exige une propri\xE9t\xE9 \xAB\xA0date:\xA0\xBB.`,
|
|
26800
26802
|
"NL.E0501": (a) => `L'ancre \xAB\xA0${a.name}\xA0\xBB a une date, mais \xAB\xA0start:\xA0\xBB manque sur la roadmap. Ajoutez start:AAAA-MM-JJ \xE0 la roadmap.`,
|
|
@@ -29630,6 +29632,11 @@ function parseUtilizationFraction(val) {
|
|
|
29630
29632
|
return null;
|
|
29631
29633
|
}
|
|
29632
29634
|
|
|
29635
|
+
// ../core/dist/util/allowed-link.js
|
|
29636
|
+
function isAllowedLink(value) {
|
|
29637
|
+
return /^(https?:\/\/|mailto:)[^\s]/i.test(value);
|
|
29638
|
+
}
|
|
29639
|
+
|
|
29633
29640
|
// ../core/dist/language/validator/properties.js
|
|
29634
29641
|
function checkPropertyValues(prop, accept) {
|
|
29635
29642
|
if (isWaveBannedProperty(prop))
|
|
@@ -29696,6 +29703,13 @@ function checkPropertyValues(prop, accept) {
|
|
|
29696
29703
|
});
|
|
29697
29704
|
}
|
|
29698
29705
|
break;
|
|
29706
|
+
case "link":
|
|
29707
|
+
if (val && !isAllowedLink(val)) {
|
|
29708
|
+
acceptTr(accept, "error", { node: prop, property: "value" }, "NL.E0414", {
|
|
29709
|
+
value: val
|
|
29710
|
+
});
|
|
29711
|
+
}
|
|
29712
|
+
break;
|
|
29699
29713
|
case "calendar":
|
|
29700
29714
|
if (val && !CALENDAR_MODES2.has(val)) {
|
|
29701
29715
|
acceptTr(accept, "error", { node: prop, property: "value" }, "NL.E0407", {
|
|
@@ -33205,7 +33219,7 @@ function resolveActorDisplay(raw, ctx) {
|
|
|
33205
33219
|
return ctx.teams.get(raw)?.title ?? ctx.persons.get(raw)?.title ?? raw;
|
|
33206
33220
|
}
|
|
33207
33221
|
function parseLinkIcon(link) {
|
|
33208
|
-
if (!link)
|
|
33222
|
+
if (!link || !isAllowedLink(link))
|
|
33209
33223
|
return { icon: "none" };
|
|
33210
33224
|
const lower = link.toLowerCase();
|
|
33211
33225
|
if (lower.includes("linear.app"))
|
|
@@ -39500,7 +39514,7 @@ function renderItemLinkIcon(i2, options, palette) {
|
|
|
39500
39514
|
"stroke-linejoin": "round"
|
|
39501
39515
|
});
|
|
39502
39516
|
const inner = tileRect + glyph;
|
|
39503
|
-
const link = i2.linkHref ? tag("a", { href: i2.linkHref, target: "_blank", rel: "noopener" }, inner) : inner;
|
|
39517
|
+
const link = i2.linkHref && isAllowedLink(i2.linkHref) ? tag("a", { href: i2.linkHref, target: "_blank", rel: "noopener" }, inner) : inner;
|
|
39504
39518
|
parts.push(link);
|
|
39505
39519
|
}
|
|
39506
39520
|
return parts.join("");
|
|
@@ -41068,8 +41082,8 @@ function effectiveTheme(theme, systemTheme) {
|
|
|
41068
41082
|
}
|
|
41069
41083
|
|
|
41070
41084
|
// src/index.ts
|
|
41071
|
-
var version = true ? "0.0.0-dev.
|
|
41072
|
-
var sha = true ? "
|
|
41085
|
+
var version = true ? "0.0.0-dev.20261105233915.g49a2d2a" : "0.0.0";
|
|
41086
|
+
var sha = true ? "49a2d2a" : "unknown";
|
|
41073
41087
|
var DEFAULT_SELECTOR = "pre code.language-nowline, code.language-nowline";
|
|
41074
41088
|
var initialConfig = {
|
|
41075
41089
|
theme: "auto",
|