@markdy/renderer-dom 1.5.2 → 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 +7 -9
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -3984,7 +3984,6 @@ function ensureSceneStyles(doc) {
3984
3984
  }
3985
3985
  }
3986
3986
  @media (max-width: 360px) {
3987
- .markdy-control-reset-view,
3988
3987
  .markdy-control-share,
3989
3988
  .markdy-control-code {
3990
3989
  display: none !important;
@@ -4013,12 +4012,14 @@ function ensureSceneStyles(doc) {
4013
4012
  }
4014
4013
  }
4015
4014
  @container markdy-root (max-width: 360px) {
4016
- .markdy-control-reset-view,
4017
4015
  .markdy-control-share,
4018
4016
  .markdy-control-code {
4019
4017
  display: none !important;
4020
4018
  }
4021
4019
  }
4020
+ .markdy-fullscreen-host .markdy-control-reset-view {
4021
+ display: inline-flex !important;
4022
+ }
4022
4023
  .markdy-speed-group {
4023
4024
  display: inline-flex;
4024
4025
  align-items: center;
@@ -6300,6 +6301,7 @@ var VIEWPORT_ZOOM_STEP = 15e-4;
6300
6301
  var DRAG_CLICK_THRESHOLD_PX = 4;
6301
6302
  var BEAT_NAV_EPSILON_S = 0.05;
6302
6303
  var MARKDY_PLAYGROUND_URL = "https://markdy.com/playground/";
6304
+ var MARKDY_HOMEPAGE_URL = "https://markdy.com/";
6303
6305
  function encodeCodeForPlaygroundHash(code) {
6304
6306
  return encodeURIComponent(btoa(encodeURIComponent(code)));
6305
6307
  }
@@ -6860,7 +6862,7 @@ function createDiagram(opts) {
6860
6862
  if (copyright) {
6861
6863
  badge = document.createElement("a");
6862
6864
  badge.className = "markdy-badge";
6863
- badge.href = `${MARKDY_PLAYGROUND_URL}#code=${encodeCodeForPlaygroundHash(code)}`;
6865
+ badge.href = MARKDY_HOMEPAGE_URL;
6864
6866
  badge.target = "_blank";
6865
6867
  badge.rel = "noopener noreferrer";
6866
6868
  const badgePrefix = document.createElement("span");
@@ -6874,10 +6876,6 @@ function createDiagram(opts) {
6874
6876
  badgeBrand.textContent = "Markdy";
6875
6877
  badge.appendChild(badgeBrand);
6876
6878
  ensureFooter().appendChild(badge);
6877
- const badgeLink = badge;
6878
- void compressMarkdyToUrlHash(code).then((hash) => {
6879
- badgeLink.href = `${MARKDY_PLAYGROUND_URL}#code=${hash}`;
6880
- }).catch(() => void 0);
6881
6879
  }
6882
6880
  ensureSceneStyles(document);
6883
6881
  ensureNodeStyles(document);
@@ -8421,7 +8419,7 @@ function createDiagram(opts) {
8421
8419
  }
8422
8420
  toggleInteract(true);
8423
8421
  if (controlsResetViewButton) {
8424
- controlsResetViewButton.style.display = "inline-flex";
8422
+ controlsResetViewButton.style.setProperty("display", "inline-flex", "important");
8425
8423
  }
8426
8424
  } else {
8427
8425
  host.classList.remove("markdy-fullscreen-host");
@@ -8438,7 +8436,7 @@ function createDiagram(opts) {
8438
8436
  }
8439
8437
  toggleInteract(false);
8440
8438
  if (controlsResetViewButton) {
8441
- controlsResetViewButton.style.display = "none";
8439
+ controlsResetViewButton.style.setProperty("display", "none", "important");
8442
8440
  }
8443
8441
  }
8444
8442
  requestAnimationFrame(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/renderer-dom",
3
- "version": "1.5.2",
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.2"
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.2"
56
+ "@markdy/stdlib-systems": "1.5.4"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsup",