@nowline/embed 0.12.0 → 0.13.0

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
@@ -4871,8 +4871,13 @@
4871
4871
  ],
4872
4872
  "format": "esm"
4873
4873
  },
4874
+ "../core/dist/util/langium-retention.js": {
4875
+ "bytes": 729,
4876
+ "imports": [],
4877
+ "format": "esm"
4878
+ },
4874
4879
  "../core/dist/internal.js": {
4875
- "bytes": 450,
4880
+ "bytes": 495,
4876
4881
  "imports": [
4877
4882
  {
4878
4883
  "path": "../core/dist/language/ast-walk.js",
@@ -4894,6 +4899,11 @@
4894
4899
  "kind": "import-statement",
4895
4900
  "original": "./language/value-tables.js"
4896
4901
  },
4902
+ {
4903
+ "path": "../core/dist/util/langium-retention.js",
4904
+ "kind": "import-statement",
4905
+ "original": "./util/langium-retention.js"
4906
+ },
4897
4907
  {
4898
4908
  "path": "../core/dist/util/props.js",
4899
4909
  "kind": "import-statement",
@@ -5135,17 +5145,17 @@
5135
5145
  "format": "esm"
5136
5146
  },
5137
5147
  "../core/dist/i18n/codes.js": {
5138
- "bytes": 2770,
5148
+ "bytes": 2786,
5139
5149
  "imports": [],
5140
5150
  "format": "esm"
5141
5151
  },
5142
5152
  "../core/dist/i18n/messages.en.js": {
5143
- "bytes": 23135,
5153
+ "bytes": 23256,
5144
5154
  "imports": [],
5145
5155
  "format": "esm"
5146
5156
  },
5147
5157
  "../core/dist/i18n/messages.fr.js": {
5148
- "bytes": 27177,
5158
+ "bytes": 27347,
5149
5159
  "imports": [],
5150
5160
  "format": "esm"
5151
5161
  },
@@ -5562,14 +5572,24 @@
5562
5572
  ],
5563
5573
  "format": "esm"
5564
5574
  },
5575
+ "../core/dist/util/allowed-link.js": {
5576
+ "bytes": 620,
5577
+ "imports": [],
5578
+ "format": "esm"
5579
+ },
5565
5580
  "../core/dist/language/validator/properties.js": {
5566
- "bytes": 15412,
5581
+ "bytes": 15715,
5567
5582
  "imports": [
5568
5583
  {
5569
5584
  "path": "../core/dist/generated/ast.js",
5570
5585
  "kind": "import-statement",
5571
5586
  "original": "../../generated/ast.js"
5572
5587
  },
5588
+ {
5589
+ "path": "../core/dist/util/allowed-link.js",
5590
+ "kind": "import-statement",
5591
+ "original": "../../util/allowed-link.js"
5592
+ },
5573
5593
  {
5574
5594
  "path": "../core/dist/util/props.js",
5575
5595
  "kind": "import-statement",
@@ -5839,6 +5859,11 @@
5839
5859
  ],
5840
5860
  "format": "esm"
5841
5861
  },
5862
+ "../core/dist/language/transient-document.js": {
5863
+ "bytes": 1773,
5864
+ "imports": [],
5865
+ "format": "esm"
5866
+ },
5842
5867
  "../core/dist/language/waves-plan.js": {
5843
5868
  "bytes": 2488,
5844
5869
  "imports": [
@@ -5871,7 +5896,7 @@
5871
5896
  "format": "esm"
5872
5897
  },
5873
5898
  "../core/dist/index.js": {
5874
- "bytes": 1400,
5899
+ "bytes": 1531,
5875
5900
  "imports": [
5876
5901
  {
5877
5902
  "path": "../core/dist/convert/parse-json.js",
@@ -5928,6 +5953,11 @@
5928
5953
  "kind": "import-statement",
5929
5954
  "original": "./language/nowline-validator.js"
5930
5955
  },
5956
+ {
5957
+ "path": "../core/dist/language/transient-document.js",
5958
+ "kind": "import-statement",
5959
+ "original": "./language/transient-document.js"
5960
+ },
5931
5961
  {
5932
5962
  "path": "../core/dist/language/waves.js",
5933
5963
  "kind": "import-statement",
@@ -5948,6 +5978,11 @@
5948
5978
  "kind": "import-statement",
5949
5979
  "original": "./templates.js"
5950
5980
  },
5981
+ {
5982
+ "path": "../core/dist/util/allowed-link.js",
5983
+ "kind": "import-statement",
5984
+ "original": "./util/allowed-link.js"
5985
+ },
5951
5986
  {
5952
5987
  "path": "../core/dist/util/single-line.js",
5953
5988
  "kind": "import-statement",
@@ -6369,8 +6404,13 @@
6369
6404
  "format": "esm"
6370
6405
  },
6371
6406
  "../layout/dist/nodes/item-measure.js": {
6372
- "bytes": 25372,
6407
+ "bytes": 25595,
6373
6408
  "imports": [
6409
+ {
6410
+ "path": "../core/dist/index.js",
6411
+ "kind": "import-statement",
6412
+ "original": "@nowline/core"
6413
+ },
6374
6414
  {
6375
6415
  "path": "../layout/dist/calendar.js",
6376
6416
  "kind": "import-statement",
@@ -6630,7 +6670,7 @@
6630
6670
  "format": "esm"
6631
6671
  },
6632
6672
  "../layout/dist/nodes/region-markers.js": {
6633
- "bytes": 6325,
6673
+ "bytes": 6454,
6634
6674
  "imports": [
6635
6675
  {
6636
6676
  "path": "../layout/dist/text-measure.js",
@@ -6790,7 +6830,7 @@
6790
6830
  "format": "esm"
6791
6831
  },
6792
6832
  "../layout/dist/nodes/include-node.js": {
6793
- "bytes": 7446,
6833
+ "bytes": 7512,
6794
6834
  "imports": [
6795
6835
  {
6796
6836
  "path": "../layout/dist/chart-translation.js",
@@ -6980,7 +7020,7 @@
6980
7020
  "format": "esm"
6981
7021
  },
6982
7022
  "../layout/dist/schedule.js": {
6983
- "bytes": 15664,
7023
+ "bytes": 16355,
6984
7024
  "imports": [
6985
7025
  {
6986
7026
  "path": "../core/dist/index.js",
@@ -10113,7 +10153,7 @@
10113
10153
  "format": "esm"
10114
10154
  },
10115
10155
  "../renderer/dist/stage.js": {
10116
- "bytes": 4072,
10156
+ "bytes": 3941,
10117
10157
  "imports": [
10118
10158
  {
10119
10159
  "path": "../core/dist/index.js",
@@ -10282,8 +10322,13 @@
10282
10322
  "format": "esm"
10283
10323
  },
10284
10324
  "../renderer/dist/svg/item.js": {
10285
- "bytes": 25891,
10325
+ "bytes": 26106,
10286
10326
  "imports": [
10327
+ {
10328
+ "path": "../core/dist/index.js",
10329
+ "kind": "import-statement",
10330
+ "original": "@nowline/core"
10331
+ },
10287
10332
  {
10288
10333
  "path": "../layout/dist/index.js",
10289
10334
  "kind": "import-statement",
@@ -10534,7 +10579,7 @@
10534
10579
  "format": "esm"
10535
10580
  },
10536
10581
  "../browser/dist/pipeline.js": {
10537
- "bytes": 8999,
10582
+ "bytes": 9000,
10538
10583
  "imports": [
10539
10584
  {
10540
10585
  "path": "../core/dist/index.js",
@@ -10697,7 +10742,7 @@
10697
10742
  "imports": [],
10698
10743
  "exports": [],
10699
10744
  "inputs": {},
10700
- "bytes": 3732651
10745
+ "bytes": 3738401
10701
10746
  },
10702
10747
  "dist/nowline.min.js": {
10703
10748
  "imports": [],
@@ -10822,7 +10867,7 @@
10822
10867
  "bytesInOutput": 281
10823
10868
  },
10824
10869
  "../../node_modules/.pnpm/chevrotain@13.2.0/node_modules/chevrotain/lib/src/scan/lexer_public.js": {
10825
- "bytesInOutput": 10826
10870
+ "bytesInOutput": 10823
10826
10871
  },
10827
10872
  "../../node_modules/.pnpm/chevrotain@13.2.0/node_modules/chevrotain/lib/src/scan/tokens_public.js": {
10828
10873
  "bytesInOutput": 1098
@@ -11383,7 +11428,7 @@
11383
11428
  "bytesInOutput": 3836
11384
11429
  },
11385
11430
  "../../node_modules/.pnpm/vscode-uri@3.1.0/node_modules/vscode-uri/lib/esm/index.mjs": {
11386
- "bytesInOutput": 10757
11431
+ "bytesInOutput": 10740
11387
11432
  },
11388
11433
  "../../node_modules/.pnpm/langium@4.4.0/node_modules/langium/lib/utils/uri-utils.js": {
11389
11434
  "bytesInOutput": 2458
@@ -11497,10 +11542,10 @@
11497
11542
  "bytesInOutput": 896
11498
11543
  },
11499
11544
  "../core/dist/util/props.js": {
11500
- "bytesInOutput": 516
11545
+ "bytesInOutput": 518
11501
11546
  },
11502
11547
  "../core/dist/language/calendar-declarations.js": {
11503
- "bytesInOutput": 1228
11548
+ "bytesInOutput": 1229
11504
11549
  },
11505
11550
  "../core/dist/language/style-chain.js": {
11506
11551
  "bytesInOutput": 547
@@ -11512,7 +11557,7 @@
11512
11557
  "bytesInOutput": 474
11513
11558
  },
11514
11559
  "../layout/dist/capacity.js": {
11515
- "bytesInOutput": 1036
11560
+ "bytesInOutput": 1037
11516
11561
  },
11517
11562
  "../layout/dist/dsl-utils.js": {
11518
11563
  "bytesInOutput": 50
@@ -11566,10 +11611,10 @@
11566
11611
  "bytesInOutput": 182
11567
11612
  },
11568
11613
  "../core/dist/i18n/messages.en.js": {
11569
- "bytesInOutput": 17491
11614
+ "bytesInOutput": 17602
11570
11615
  },
11571
11616
  "../core/dist/i18n/messages.fr.js": {
11572
- "bytesInOutput": 21876
11617
+ "bytesInOutput": 22036
11573
11618
  },
11574
11619
  "../core/dist/i18n/messages.fr-CA.js": {
11575
11620
  "bytesInOutput": 10
@@ -11590,16 +11635,16 @@
11590
11635
  "bytesInOutput": 1175
11591
11636
  },
11592
11637
  "../core/dist/language/waves.js": {
11593
- "bytesInOutput": 6245
11638
+ "bytesInOutput": 6250
11594
11639
  },
11595
11640
  "../core/dist/language/waves-order.js": {
11596
- "bytesInOutput": 9621
11641
+ "bytesInOutput": 9623
11597
11642
  },
11598
11643
  "../core/dist/language/include-waves.js": {
11599
- "bytesInOutput": 3936
11644
+ "bytesInOutput": 3937
11600
11645
  },
11601
11646
  "../core/dist/language/references.js": {
11602
- "bytesInOutput": 281
11647
+ "bytesInOutput": 282
11603
11648
  },
11604
11649
  "../core/dist/language/include-references.js": {
11605
11650
  "bytesInOutput": 375
@@ -11611,31 +11656,34 @@
11611
11656
  "bytesInOutput": 8163
11612
11657
  },
11613
11658
  "../core/dist/language/validator/support.js": {
11614
- "bytesInOutput": 580
11659
+ "bytesInOutput": 581
11615
11660
  },
11616
11661
  "../core/dist/language/validator/tables.js": {
11617
11662
  "bytesInOutput": 1409
11618
11663
  },
11619
11664
  "../core/dist/language/validator/calendar.js": {
11620
- "bytesInOutput": 3851
11665
+ "bytesInOutput": 3859
11621
11666
  },
11622
11667
  "../core/dist/language/validator/entities.js": {
11623
- "bytesInOutput": 4175
11668
+ "bytesInOutput": 4188
11669
+ },
11670
+ "../core/dist/util/allowed-link.js": {
11671
+ "bytesInOutput": 60
11624
11672
  },
11625
11673
  "../core/dist/language/validator/properties.js": {
11626
- "bytesInOutput": 4294
11674
+ "bytesInOutput": 4386
11627
11675
  },
11628
11676
  "../core/dist/language/validator/references.js": {
11629
- "bytesInOutput": 2786
11677
+ "bytesInOutput": 2789
11630
11678
  },
11631
11679
  "../core/dist/language/validator/structure.js": {
11632
- "bytesInOutput": 2046
11680
+ "bytesInOutput": 2048
11633
11681
  },
11634
11682
  "../core/dist/language/validator/style.js": {
11635
- "bytesInOutput": 1489
11683
+ "bytesInOutput": 1492
11636
11684
  },
11637
11685
  "../core/dist/language/validator/symbols.js": {
11638
- "bytesInOutput": 1553
11686
+ "bytesInOutput": 1558
11639
11687
  },
11640
11688
  "../core/dist/language/nowline-validator.js": {
11641
11689
  "bytesInOutput": 4965
@@ -11643,6 +11691,9 @@
11643
11691
  "../core/dist/language/nowline-module.js": {
11644
11692
  "bytesInOutput": 831
11645
11693
  },
11694
+ "../core/dist/language/transient-document.js": {
11695
+ "bytesInOutput": 242
11696
+ },
11646
11697
  "../core/dist/language/waves-plan.js": {
11647
11698
  "bytesInOutput": 624
11648
11699
  },
@@ -11665,7 +11716,7 @@
11665
11716
  "bytesInOutput": 386
11666
11717
  },
11667
11718
  "../layout/dist/style-resolution.js": {
11668
- "bytesInOutput": 2059
11719
+ "bytesInOutput": 2061
11669
11720
  },
11670
11721
  "../layout/dist/view-preset.js": {
11671
11722
  "bytesInOutput": 5861
@@ -11719,10 +11770,10 @@
11719
11770
  "bytesInOutput": 1766
11720
11771
  },
11721
11772
  "../layout/dist/nodes/item-measure.js": {
11722
- "bytesInOutput": 4828
11773
+ "bytesInOutput": 4834
11723
11774
  },
11724
11775
  "../layout/dist/nodes/sequence-item.js": {
11725
- "bytesInOutput": 3064
11776
+ "bytesInOutput": 3062
11726
11777
  },
11727
11778
  "../layout/dist/nodes/dependency-edges.js": {
11728
11779
  "bytesInOutput": 1821
@@ -11731,13 +11782,13 @@
11731
11782
  "bytesInOutput": 1361
11732
11783
  },
11733
11784
  "../layout/dist/nodes/marker-band.js": {
11734
- "bytesInOutput": 2915
11785
+ "bytesInOutput": 2912
11735
11786
  },
11736
11787
  "../layout/dist/nodes/milestone-node.js": {
11737
11788
  "bytesInOutput": 3363
11738
11789
  },
11739
11790
  "../layout/dist/nodes/region-markers.js": {
11740
- "bytesInOutput": 1404
11791
+ "bytesInOutput": 1409
11741
11792
  },
11742
11793
  "../layout/dist/lane-utilization.js": {
11743
11794
  "bytesInOutput": 1842
@@ -11752,7 +11803,7 @@
11752
11803
  "bytesInOutput": 1878
11753
11804
  },
11754
11805
  "../layout/dist/nodes/include-node.js": {
11755
- "bytesInOutput": 1441
11806
+ "bytesInOutput": 1433
11756
11807
  },
11757
11808
  "../layout/dist/nodes/nowline-node.js": {
11758
11809
  "bytesInOutput": 506
@@ -11761,7 +11812,7 @@
11761
11812
  "bytesInOutput": 499
11762
11813
  },
11763
11814
  "../layout/dist/nodes/wave-node.js": {
11764
- "bytesInOutput": 5485
11815
+ "bytesInOutput": 5482
11765
11816
  },
11766
11817
  "../layout/dist/time-scale.js": {
11767
11818
  "bytesInOutput": 1928
@@ -11770,10 +11821,10 @@
11770
11821
  "bytesInOutput": 1646
11771
11822
  },
11772
11823
  "../layout/dist/schedule.js": {
11773
- "bytesInOutput": 3533
11824
+ "bytesInOutput": 3650
11774
11825
  },
11775
11826
  "../layout/dist/phases/measure.js": {
11776
- "bytesInOutput": 1918
11827
+ "bytesInOutput": 1915
11777
11828
  },
11778
11829
  "../layout/dist/phases/finalize.js": {
11779
11830
  "bytesInOutput": 12611
@@ -11803,7 +11854,7 @@
11803
11854
  "bytesInOutput": 727
11804
11855
  },
11805
11856
  "../layout/dist/phases/place.js": {
11806
- "bytesInOutput": 2179
11857
+ "bytesInOutput": 2177
11807
11858
  },
11808
11859
  "../layout/dist/nodes/group-node.js": {
11809
11860
  "bytesInOutput": 1240
@@ -11842,7 +11893,7 @@
11842
11893
  "bytesInOutput": 777
11843
11894
  },
11844
11895
  "../renderer/dist/stage.js": {
11845
- "bytesInOutput": 1294
11896
+ "bytesInOutput": 1179
11846
11897
  },
11847
11898
  "../renderer/dist/index.js": {
11848
11899
  "bytesInOutput": 0
@@ -11878,7 +11929,7 @@
11878
11929
  "bytesInOutput": 4619
11879
11930
  },
11880
11931
  "../renderer/dist/svg/item.js": {
11881
- "bytesInOutput": 6308
11932
+ "bytesInOutput": 6324
11882
11933
  },
11883
11934
  "../renderer/dist/svg/swimlanes.js": {
11884
11935
  "bytesInOutput": 3086
@@ -11887,7 +11938,7 @@
11887
11938
  "bytesInOutput": 2753
11888
11939
  },
11889
11940
  "../renderer/dist/svg/include-region.js": {
11890
- "bytesInOutput": 1655
11941
+ "bytesInOutput": 1652
11891
11942
  },
11892
11943
  "../renderer/dist/svg/nowline.js": {
11893
11944
  "bytesInOutput": 1254
@@ -11896,7 +11947,7 @@
11896
11947
  "bytesInOutput": 1506
11897
11948
  },
11898
11949
  "../browser/dist/pipeline.js": {
11899
- "bytesInOutput": 2126
11950
+ "bytesInOutput": 2018
11900
11951
  },
11901
11952
  "../browser/dist/index.js": {
11902
11953
  "bytesInOutput": 0
@@ -11905,7 +11956,7 @@
11905
11956
  "bytesInOutput": 852
11906
11957
  },
11907
11958
  "../../node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/browser.js": {
11908
- "bytesInOutput": 6560
11959
+ "bytesInOutput": 6553
11909
11960
  },
11910
11961
  "../share-link/dist/index.js": {
11911
11962
  "bytesInOutput": 665
@@ -11920,7 +11971,7 @@
11920
11971
  "bytesInOutput": 257
11921
11972
  }
11922
11973
  },
11923
- "bytes": 679709
11974
+ "bytes": 680294
11924
11975
  }
11925
11976
  }
11926
11977
  }
@@ -1,4 +1,4 @@
1
- /*! @nowline/embed 0.12.0 sha=8ca0469 built=2026-11-04T02:39:24Z */
1
+ /*! @nowline/embed 0.13.0 sha=348d8c6 built=2026-11-13T08:06:49Z */
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", {
@@ -30781,6 +30795,20 @@ function createNowlineServices(context = {}) {
30781
30795
  return { shared, Nowline };
30782
30796
  }
30783
30797
 
30798
+ // ../core/dist/language/transient-document.js
30799
+ async function buildTransientDocument(shared, source, uri, options = { validation: true }) {
30800
+ const { DocumentBuilder, LangiumDocumentFactory, LangiumDocuments } = shared.workspace;
30801
+ const document2 = LangiumDocumentFactory.fromString(source, uri);
30802
+ try {
30803
+ await DocumentBuilder.build([document2], options);
30804
+ } finally {
30805
+ if (!LangiumDocuments.hasDocument(uri))
30806
+ LangiumDocuments.addDocument(document2);
30807
+ await DocumentBuilder.update([], [uri]);
30808
+ }
30809
+ return document2;
30810
+ }
30811
+
30784
30812
  // ../core/dist/language/waves-plan.js
30785
30813
  function localizeResolveDiagnostic(locale, d) {
30786
30814
  if (d.code === void 0)
@@ -33205,7 +33233,7 @@ function resolveActorDisplay(raw, ctx) {
33205
33233
  return ctx.teams.get(raw)?.title ?? ctx.persons.get(raw)?.title ?? raw;
33206
33234
  }
33207
33235
  function parseLinkIcon(link) {
33208
- if (!link)
33236
+ if (!link || !isAllowedLink(link))
33209
33237
  return { icon: "none" };
33210
33238
  const lower = link.toLowerCase();
33211
33239
  if (lower.includes("linear.app"))
@@ -34308,7 +34336,7 @@ var REGION_MARKER_INSET_X_PX = 16;
34308
34336
  var REGION_MARKER_BAND_TOP_PX = 8;
34309
34337
  var REGION_MARKER_BAND_GAP_PX = 6;
34310
34338
  function placeRegionMarkers(region, ctx, regionTopY, lanesTopY, lanesBottomY, chartRightX) {
34311
- seedRegionAnchorEdges(region.content.anchors, ctx);
34339
+ seedRegionDatedEdges(region.content, ctx);
34312
34340
  const placements = buildMilestones(region.content.milestones, ctx);
34313
34341
  const entries = regionMarkerEntries(region.content.anchors, placements, ctx);
34314
34342
  if (entries.length === 0)
@@ -34377,8 +34405,8 @@ function positionedEntry(m, bold) {
34377
34405
  ...slipX !== void 0 ? { slipFromX: m.center.x } : {}
34378
34406
  };
34379
34407
  }
34380
- function seedRegionAnchorEdges(anchors2, ctx) {
34381
- for (const e of datePinnedMarkerEntries(anchors2, /* @__PURE__ */ new Map(), ctx.scale)) {
34408
+ function seedRegionDatedEdges(content, ctx) {
34409
+ for (const e of datePinnedMarkerEntries(content.anchors, content.milestones, ctx.scale)) {
34382
34410
  ctx.entityLeftEdges.set(e.id, e.centerX);
34383
34411
  ctx.entityRightEdges.set(e.id, e.centerX);
34384
34412
  }
@@ -34875,7 +34903,7 @@ function buildIncludeRegions(regions, ctx, startY, helpers, chartRightX) {
34875
34903
  if (ctx.waves) {
34876
34904
  seedWaveEdges(ctx.waves, childCtx.entityLeftEdges, childCtx.entityRightEdges);
34877
34905
  } else {
34878
- seedRegionAnchorEdges(region.content.anchors, childCtx);
34906
+ seedRegionDatedEdges(region.content, childCtx);
34879
34907
  }
34880
34908
  const nestedSwimlanes = [];
34881
34909
  let cursorY = innerStartY;
@@ -35632,6 +35660,14 @@ function scheduleRoadmap(file, resolved, options = {}) {
35632
35660
  reachMax(day);
35633
35661
  }
35634
35662
  }
35663
+ const seedDatedMilestones = (milestones, into) => {
35664
+ for (const [id, ms] of milestones) {
35665
+ const d = parseIsoDate(propValue(ms.properties, "date"));
35666
+ if (d)
35667
+ into.set(id, dayOf(d));
35668
+ }
35669
+ };
35670
+ seedDatedMilestones(resolved.content.milestones, milestoneEnd);
35635
35671
  const mainScope = () => ({
35636
35672
  itemEnd,
35637
35673
  anchorEnd,
@@ -35729,6 +35765,7 @@ function scheduleRoadmap(file, resolved, options = {}) {
35729
35765
  reachMax(day);
35730
35766
  }
35731
35767
  }
35768
+ seedDatedMilestones(content.milestones, regionMilestoneEnd);
35732
35769
  const { walkLane, resolveAfterDay: resolveAfterDay2 } = makeWalker({
35733
35770
  itemEnd: regionItemEnd,
35734
35771
  anchorEnd: regionAnchorEnd,
@@ -38241,10 +38278,7 @@ function freshUri() {
38241
38278
  async function buildDocument(inputs) {
38242
38279
  if (inputs.document)
38243
38280
  return inputs.document;
38244
- const { workspace } = inputs.services.shared;
38245
- const document2 = workspace.LangiumDocumentFactory.fromString(inputs.source, freshUri());
38246
- await workspace.DocumentBuilder.build([document2], { validation: true });
38247
- return document2;
38281
+ return buildTransientDocument(inputs.services.shared, inputs.source, freshUri());
38248
38282
  }
38249
38283
  function isErrorDiagnostic(raw) {
38250
38284
  return raw.origin !== "validation" || raw.diagnostic.severity === SEVERITY_ERROR;
@@ -39500,7 +39534,7 @@ function renderItemLinkIcon(i2, options, palette) {
39500
39534
  "stroke-linejoin": "round"
39501
39535
  });
39502
39536
  const inner = tileRect + glyph;
39503
- const link = i2.linkHref ? tag("a", { href: i2.linkHref, target: "_blank", rel: "noopener" }, inner) : inner;
39537
+ const link = i2.linkHref && isAllowedLink(i2.linkHref) ? tag("a", { href: i2.linkHref, target: "_blank", rel: "noopener" }, inner) : inner;
39504
39538
  parts.push(link);
39505
39539
  }
39506
39540
  return parts.join("");
@@ -40229,10 +40263,7 @@ function freshUri2() {
40229
40263
  }
40230
40264
  async function parseSource(source, options = {}) {
40231
40265
  const filePath = options.filePath ?? DEFAULT_SYNTHETIC_PATH;
40232
- const services = getServices();
40233
- const docFactory = services.shared.workspace.LangiumDocumentFactory;
40234
- const doc = docFactory.fromString(source, freshUri2());
40235
- await services.shared.workspace.DocumentBuilder.build([doc], { validation: true });
40266
+ const doc = await buildTransientDocument(getServices().shared, source, freshUri2());
40236
40267
  return { ast: doc.parseResult.value, diagnostics: documentRows(doc, filePath) };
40237
40268
  }
40238
40269
  function documentRows(doc, filePath) {
@@ -41068,8 +41099,8 @@ function effectiveTheme(theme, systemTheme) {
41068
41099
  }
41069
41100
 
41070
41101
  // src/index.ts
41071
- var version = true ? "0.12.0" : "0.0.0";
41072
- var sha = true ? "8ca0469" : "unknown";
41102
+ var version = true ? "0.13.0" : "0.0.0";
41103
+ var sha = true ? "348d8c6" : "unknown";
41073
41104
  var DEFAULT_SELECTOR = "pre code.language-nowline, code.language-nowline";
41074
41105
  var initialConfig = {
41075
41106
  theme: "auto",