@nowline/embed 0.0.0-dev.20261004050749.g26129db → 0.0.0-dev.20261005035108.g6898f50

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
@@ -5679,7 +5679,7 @@
5679
5679
  "format": "esm"
5680
5680
  },
5681
5681
  "../core/dist/language/include-resolver.js": {
5682
- "bytes": 15335,
5682
+ "bytes": 15755,
5683
5683
  "imports": [
5684
5684
  {
5685
5685
  "path": "../../node_modules/.pnpm/langium@4.4.0/node_modules/langium/lib/index.js",
@@ -9209,7 +9209,7 @@
9209
9209
  "format": "esm"
9210
9210
  },
9211
9211
  "../renderer/dist/svg/render.js": {
9212
- "bytes": 81581,
9212
+ "bytes": 81926,
9213
9213
  "imports": [
9214
9214
  {
9215
9215
  "path": "../layout/dist/index.js",
@@ -9424,7 +9424,7 @@
9424
9424
  "imports": [],
9425
9425
  "exports": [],
9426
9426
  "inputs": {},
9427
- "bytes": 3462636
9427
+ "bytes": 3463599
9428
9428
  },
9429
9429
  "dist/nowline.min.js": {
9430
9430
  "imports": [],
@@ -10383,7 +10383,7 @@
10383
10383
  "bytesInOutput": 924
10384
10384
  },
10385
10385
  "../core/dist/language/include-resolver.js": {
10386
- "bytesInOutput": 5776
10386
+ "bytesInOutput": 5829
10387
10387
  },
10388
10388
  "../core/dist/util/single-line.js": {
10389
10389
  "bytesInOutput": 79
@@ -10659,7 +10659,7 @@
10659
10659
  "bytesInOutput": 728
10660
10660
  },
10661
10661
  "../renderer/dist/svg/render.js": {
10662
- "bytesInOutput": 22738
10662
+ "bytesInOutput": 22758
10663
10663
  },
10664
10664
  "../renderer/dist/index.js": {
10665
10665
  "bytesInOutput": 0
@@ -10689,7 +10689,7 @@
10689
10689
  "bytesInOutput": 257
10690
10690
  }
10691
10691
  },
10692
- "bytes": 673186
10692
+ "bytes": 673259
10693
10693
  }
10694
10694
  }
10695
10695
  }
@@ -1,4 +1,4 @@
1
- /*! @nowline/embed 0.0.0-dev.20261004050749.g26129db sha=26129db built=2026-10-04T01:07:24-04:00 */
1
+ /*! @nowline/embed 0.0.0-dev.20261005035108.g6898f50 sha=6898f50 built=2026-10-04T23:50:49-04:00 */
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -29354,14 +29354,18 @@ function applyRoadmapMode(target, child, childConfig, mode, childPath, childRelP
29354
29354
  function mergeMap(target, source, onConflict) {
29355
29355
  for (const [name, value] of source) {
29356
29356
  if (target.has(name)) {
29357
- onConflict(name);
29357
+ if (target.get(name) !== value)
29358
+ onConflict(name);
29358
29359
  continue;
29359
29360
  }
29360
29361
  target.set(name, value);
29361
29362
  }
29362
29363
  }
29363
29364
  function mergeContentMap(target, source, onConflict) {
29365
+ const merged = new Set(target.values());
29364
29366
  for (const [name, value] of source) {
29367
+ if (merged.has(value))
29368
+ continue;
29365
29369
  if (!value.name && value.title) {
29366
29370
  target.set(uniqueMapKey(target, slugifyTitle(value.title)), value);
29367
29371
  continue;
@@ -38924,7 +38928,7 @@ function renderMilestone(m, palette, fonts) {
38924
38928
  const label = m.title ? textTag(labelAttrs, m.title) : "";
38925
38929
  return tag("g", { "data-layer": "milestone", "data-id": m.id ?? null }, flag + label);
38926
38930
  }
38927
- function renderMilestoneCutLine(m, palette) {
38931
+ function renderMilestoneCutLine(m, idPrefix, palette) {
38928
38932
  const stroke = m.isOverrun ? palette.milestoneDiamond.cutLineOverrun : palette.milestoneDiamond.cutLineNormal;
38929
38933
  const parts = [];
38930
38934
  parts.push(tag("line", {
@@ -38947,13 +38951,13 @@ function renderMilestoneCutLine(m, palette) {
38947
38951
  "stroke-width": 1.1,
38948
38952
  "stroke-dasharray": "3 3",
38949
38953
  "stroke-linecap": "round",
38950
- "marker-end": "url(#nl-arrow-dark)"
38954
+ "marker-end": `url(#${idPrefix}-arrow-dark)`
38951
38955
  }));
38952
38956
  }
38953
38957
  }
38954
38958
  return parts.join("");
38955
38959
  }
38956
- function renderEdge(e, palette) {
38960
+ function renderEdge(e, idPrefix, palette) {
38957
38961
  const color2 = e.kind === "overflow" ? palette.dependency.overflowStroke : palette.dependency.edgeStroke;
38958
38962
  const points = e.waypoints;
38959
38963
  if (points.length < 2)
@@ -38966,7 +38970,7 @@ function renderEdge(e, palette) {
38966
38970
  "stroke-width": strokeWidth,
38967
38971
  "stroke-dasharray": e.kind === "overflow" ? "4 2" : null,
38968
38972
  "stroke-linejoin": "round",
38969
- "marker-end": "url(#nl-arrow)"
38973
+ "marker-end": `url(#${idPrefix}-arrow)`
38970
38974
  });
38971
38975
  }
38972
38976
  function roundedOrthogonalPath(points, radius) {
@@ -39252,7 +39256,7 @@ async function renderSvg(model, options = {}) {
39252
39256
  const arrowFillLight = palette.arrowhead.light;
39253
39257
  const arrowFillDark = palette.arrowhead.dark;
39254
39258
  const arrowDef = (id, fill) => `<marker id="${id}" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" fill="${fill}"/></marker>`;
39255
- const defs = `<defs>${allShadowDefs(idPrefix)}` + arrowDef("nl-arrow", arrowFillNeutral) + arrowDef("nl-arrow-light", arrowFillLight) + arrowDef("nl-arrow-dark", arrowFillDark) + `</defs>`;
39259
+ const defs = `<defs>${allShadowDefs(idPrefix)}` + arrowDef(`${idPrefix}-arrow`, arrowFillNeutral) + arrowDef(`${idPrefix}-arrow-light`, arrowFillLight) + arrowDef(`${idPrefix}-arrow-dark`, arrowFillDark) + `</defs>`;
39256
39260
  parts.push(defs);
39257
39261
  parts.push(tag("rect", {
39258
39262
  x: 0,
@@ -39267,7 +39271,7 @@ async function renderSvg(model, options = {}) {
39267
39271
  parts.push(renderGridLines(model.timeline, model.chartBox.y, palette));
39268
39272
  for (const e of model.edges) {
39269
39273
  if (e.kind === "underBar")
39270
- parts.push(renderEdge(e, palette));
39274
+ parts.push(renderEdge(e, idPrefix, palette));
39271
39275
  }
39272
39276
  for (const s of model.swimlanes)
39273
39277
  parts.push(renderSwimlane(s, options, idPrefix, palette, fonts));
@@ -39275,12 +39279,12 @@ async function renderSvg(model, options = {}) {
39275
39279
  parts.push(renderIncludeRegion(r, options, idPrefix, palette, fonts));
39276
39280
  for (const e of model.edges) {
39277
39281
  if (e.kind !== "underBar")
39278
- parts.push(renderEdge(e, palette));
39282
+ parts.push(renderEdge(e, idPrefix, palette));
39279
39283
  }
39280
39284
  for (const a of model.anchors)
39281
39285
  parts.push(renderAnchorCutLine(a, palette));
39282
39286
  for (const m of model.milestones)
39283
- parts.push(renderMilestoneCutLine(m, palette));
39287
+ parts.push(renderMilestoneCutLine(m, idPrefix, palette));
39284
39288
  for (const a of model.anchors)
39285
39289
  parts.push(renderAnchor(a, palette, fonts));
39286
39290
  for (const m of model.milestones)
@@ -40154,8 +40158,8 @@ function effectiveTheme(theme, systemTheme) {
40154
40158
  }
40155
40159
 
40156
40160
  // src/index.ts
40157
- var version = true ? "0.0.0-dev.20261004050749.g26129db" : "0.0.0";
40158
- var sha = true ? "26129db" : "unknown";
40161
+ var version = true ? "0.0.0-dev.20261005035108.g6898f50" : "0.0.0";
40162
+ var sha = true ? "6898f50" : "unknown";
40159
40163
  var DEFAULT_SELECTOR = "pre code.language-nowline, code.language-nowline";
40160
40164
  var initialConfig = {
40161
40165
  theme: "auto",