@markdy/renderer-dom 1.4.11 → 1.4.13

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 +94 -18
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -4010,6 +4010,19 @@ function ensureSceneStyles(doc) {
4010
4010
  font-size: 9px !important;
4011
4011
  opacity: 0.55;
4012
4012
  }
4013
+ .markdy-badge-prefix {
4014
+ display: none !important;
4015
+ }
4016
+ }
4017
+ @media (max-width: 440px) {
4018
+ .markdy-badge {
4019
+ display: none !important;
4020
+ }
4021
+ }
4022
+ @media (max-width: 360px) {
4023
+ .markdy-control-reset {
4024
+ display: none !important;
4025
+ }
4013
4026
  }
4014
4027
  @container markdy-root (max-width: 520px) {
4015
4028
  .markdy-btn-label {
@@ -4035,6 +4048,19 @@ function ensureSceneStyles(doc) {
4035
4048
  .markdy-controls {
4036
4049
  gap: 4px !important;
4037
4050
  }
4051
+ .markdy-badge-prefix {
4052
+ display: none !important;
4053
+ }
4054
+ }
4055
+ @container markdy-root (max-width: 440px) {
4056
+ .markdy-badge {
4057
+ display: none !important;
4058
+ }
4059
+ }
4060
+ @container markdy-root (max-width: 360px) {
4061
+ .markdy-control-reset {
4062
+ display: none !important;
4063
+ }
4038
4064
  }
4039
4065
  .markdy-speed-group {
4040
4066
  display: inline-flex;
@@ -4409,14 +4435,47 @@ function ensureSceneStyles(doc) {
4409
4435
  color: #94a3b8 !important;
4410
4436
  }
4411
4437
  /* Fullscreen & Fallback Pseudo-Fullscreen Views */
4438
+ .markdy-fullscreen-host,
4439
+ .markdy--pseudo-fullscreen,
4412
4440
  .markdy-diagram-root:fullscreen,
4441
+ .markdy-viewport:fullscreen {
4442
+ position: fixed !important;
4443
+ inset: 0 !important;
4444
+ top: 0 !important;
4445
+ left: 0 !important;
4446
+ right: 0 !important;
4447
+ bottom: 0 !important;
4448
+ margin: 0 !important;
4449
+ border: none !important;
4450
+ border-radius: 0 !important;
4451
+ box-shadow: none !important;
4452
+ aspect-ratio: auto !important;
4453
+ transform: none !important;
4454
+ z-index: 999999 !important;
4455
+ width: 100vw !important;
4456
+ width: 100dvw !important;
4457
+ height: 100vh !important;
4458
+ height: 100dvh !important;
4459
+ max-width: 100vw !important;
4460
+ max-width: 100dvw !important;
4461
+ max-height: 100vh !important;
4462
+ max-height: 100dvh !important;
4463
+ background-color: var(--md-canvas, #0b101b) !important;
4464
+ box-sizing: border-box !important;
4465
+ display: flex !important;
4466
+ flex-direction: column !important;
4467
+ justify-content: space-between !important;
4468
+ align-items: center !important;
4469
+ padding-top: max(8px, env(safe-area-inset-top, 0px)) !important;
4470
+ padding-left: max(8px, env(safe-area-inset-left, 0px)) !important;
4471
+ padding-right: max(8px, env(safe-area-inset-right, 0px)) !important;
4472
+ padding-bottom: 0 !important;
4473
+ overflow: hidden !important;
4474
+ touch-action: pan-x pan-y !important;
4475
+ -webkit-overflow-scrolling: touch !important;
4476
+ }
4413
4477
  .markdy-diagram-root:-webkit-full-screen,
4414
- .markdy-diagram-root:-moz-full-screen,
4415
- .markdy-diagram-root:-ms-fullscreen,
4416
- .markdy-viewport:fullscreen,
4417
- .markdy-viewport:-webkit-full-screen,
4418
- .markdy-fullscreen-host,
4419
- .markdy--pseudo-fullscreen {
4478
+ .markdy-viewport:-webkit-full-screen {
4420
4479
  position: fixed !important;
4421
4480
  inset: 0 !important;
4422
4481
  top: 0 !important;
@@ -4462,12 +4521,21 @@ function ensureSceneStyles(doc) {
4462
4521
  justify-content: space-between !important;
4463
4522
  align-items: center !important;
4464
4523
  }
4465
- .markdy-diagram-root:fullscreen .markdy-viewport,
4466
- .markdy-diagram-root:-webkit-full-screen .markdy-viewport,
4467
- .markdy-diagram-root:-moz-full-screen .markdy-viewport,
4468
- .markdy-diagram-root:-ms-fullscreen .markdy-viewport,
4469
4524
  .markdy-fullscreen-host .markdy-viewport,
4470
- .markdy--pseudo-fullscreen .markdy-viewport {
4525
+ .markdy--pseudo-fullscreen .markdy-viewport,
4526
+ .markdy-diagram-root:fullscreen .markdy-viewport {
4527
+ flex: 1 1 auto !important;
4528
+ width: 100% !important;
4529
+ height: 100% !important;
4530
+ max-width: 100% !important;
4531
+ max-height: calc(100vh - 54px) !important;
4532
+ max-height: calc(100dvh - 54px) !important;
4533
+ aspect-ratio: auto !important;
4534
+ display: flex !important;
4535
+ align-items: center !important;
4536
+ justify-content: center !important;
4537
+ }
4538
+ .markdy-diagram-root:-webkit-full-screen .markdy-viewport {
4471
4539
  flex: 1 1 auto !important;
4472
4540
  width: 100% !important;
4473
4541
  height: 100% !important;
@@ -4479,12 +4547,17 @@ function ensureSceneStyles(doc) {
4479
4547
  align-items: center !important;
4480
4548
  justify-content: center !important;
4481
4549
  }
4482
- .markdy-diagram-root:fullscreen .markdy-footer,
4483
- .markdy-diagram-root:-webkit-full-screen .markdy-footer,
4484
- .markdy-diagram-root:-moz-full-screen .markdy-footer,
4485
- .markdy-diagram-root:-ms-fullscreen .markdy-footer,
4486
4550
  .markdy-fullscreen-host .markdy-footer,
4487
- .markdy--pseudo-fullscreen .markdy-footer {
4551
+ .markdy--pseudo-fullscreen .markdy-footer,
4552
+ .markdy-diagram-root:fullscreen .markdy-footer {
4553
+ flex-shrink: 0 !important;
4554
+ width: 100% !important;
4555
+ max-width: 1400px !important;
4556
+ margin: 0 auto !important;
4557
+ padding: 6px 12px max(12px, env(safe-area-inset-bottom, 12px)) !important;
4558
+ box-sizing: border-box !important;
4559
+ }
4560
+ .markdy-diagram-root:-webkit-full-screen .markdy-footer {
4488
4561
  flex-shrink: 0 !important;
4489
4562
  width: 100% !important;
4490
4563
  max-width: 1400px !important;
@@ -6745,8 +6818,11 @@ function createDiagram(opts) {
6745
6818
  badge.href = `${MARKDY_PLAYGROUND_URL}#code=${encodeCodeForPlaygroundHash(code)}`;
6746
6819
  badge.target = "_blank";
6747
6820
  badge.rel = "noopener noreferrer";
6748
- badge.title = "Open and edit in Markdy Playground";
6749
- badge.textContent = "Powered by Markdy";
6821
+ const badgePrefix = document.createElement("span");
6822
+ badgePrefix.className = "markdy-badge-prefix";
6823
+ badgePrefix.textContent = "Powered by ";
6824
+ badge.appendChild(badgePrefix);
6825
+ badge.appendChild(document.createTextNode("Markdy"));
6750
6826
  ensureFooter().appendChild(badge);
6751
6827
  const badgeLink = badge;
6752
6828
  void compressMarkdyToUrlHash(code).then((hash) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/renderer-dom",
3
- "version": "1.4.11",
3
+ "version": "1.4.13",
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.4.11"
49
+ "@markdy/core": "1.4.13"
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.4.11"
56
+ "@markdy/stdlib-systems": "1.4.13"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsup",