@markdy/renderer-dom 1.5.3 → 1.5.4

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -5
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -6301,6 +6301,7 @@ var VIEWPORT_ZOOM_STEP = 15e-4;
6301
6301
  var DRAG_CLICK_THRESHOLD_PX = 4;
6302
6302
  var BEAT_NAV_EPSILON_S = 0.05;
6303
6303
  var MARKDY_PLAYGROUND_URL = "https://markdy.com/playground/";
6304
+ var MARKDY_HOMEPAGE_URL = "https://markdy.com/";
6304
6305
  function encodeCodeForPlaygroundHash(code) {
6305
6306
  return encodeURIComponent(btoa(encodeURIComponent(code)));
6306
6307
  }
@@ -6861,7 +6862,7 @@ function createDiagram(opts) {
6861
6862
  if (copyright) {
6862
6863
  badge = document.createElement("a");
6863
6864
  badge.className = "markdy-badge";
6864
- badge.href = `${MARKDY_PLAYGROUND_URL}#code=${encodeCodeForPlaygroundHash(code)}`;
6865
+ badge.href = MARKDY_HOMEPAGE_URL;
6865
6866
  badge.target = "_blank";
6866
6867
  badge.rel = "noopener noreferrer";
6867
6868
  const badgePrefix = document.createElement("span");
@@ -6875,10 +6876,6 @@ function createDiagram(opts) {
6875
6876
  badgeBrand.textContent = "Markdy";
6876
6877
  badge.appendChild(badgeBrand);
6877
6878
  ensureFooter().appendChild(badge);
6878
- const badgeLink = badge;
6879
- void compressMarkdyToUrlHash(code).then((hash) => {
6880
- badgeLink.href = `${MARKDY_PLAYGROUND_URL}#code=${hash}`;
6881
- }).catch(() => void 0);
6882
6879
  }
6883
6880
  ensureSceneStyles(document);
6884
6881
  ensureNodeStyles(document);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/renderer-dom",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "description": "Browser renderer for diagram-native animated MarkdyScript architecture diagrams, built on the Web Animations API.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -46,14 +46,14 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "html2canvas": "^1.4.1",
49
- "@markdy/core": "1.5.3"
49
+ "@markdy/core": "1.5.4"
50
50
  },
51
51
  "devDependencies": {
52
52
  "jsdom": "^29.1.1",
53
53
  "tsup": "^8.5.1",
54
54
  "typescript": "^5.9.3",
55
55
  "vitest": "^4.1.7",
56
- "@markdy/stdlib-systems": "1.5.3"
56
+ "@markdy/stdlib-systems": "1.5.4"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsup",