@markdy/core 1.5.0 → 1.5.2

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/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
  <a href="https://markdy.com/playground/"><img src="https://img.shields.io/badge/⚡_Live_Studio-markdy.com%2Fplayground-3b82f6?style=for-the-badge" alt="Live Studio" /></a>
5
5
  <a href="https://markdy.com/docs/"><img src="https://img.shields.io/badge/📖_Docs-Documentation-10b981?style=for-the-badge" alt="Documentation" /></a>
6
6
  <a href="https://marketplace.visualstudio.com/items?itemName=hoangyell.markdy-vscode"><img src="https://img.shields.io/badge/🔌_VS_Code-Extension-8b5cf6?style=for-the-badge" alt="VS Code Extension" /></a>
7
+ <a href="https://github.com/sponsors/HoangYell"><img src="https://img.shields.io/badge/📐_Pro_Blueprints-Architecture_Kits-f59e0b?style=for-the-badge" alt="Pro Architecture Blueprints" /></a>
7
8
  <a href="https://github.com/sponsors/HoangYell"><img src="https://img.shields.io/badge/💖_Sponsor-Support_Markdy-ea4aaa?style=for-the-badge" alt="Sponsor Markdy" /></a>
8
9
  </p>
9
10
 
@@ -12,7 +13,7 @@ The zero-dependency parser, dynamic port multiplexer, and AST routing engine for
12
13
  > 🚀 **Try it live**: Test MarkdyScript in the browser at **[markdy.com/playground](https://markdy.com/playground/)**
13
14
  > 📚 **Documentation**: Complete syntax guide and examples at **[markdy.com/docs](https://markdy.com/docs/)**
14
15
  > 🌟 **Architecture Blueprints**: 30+ canonical production diagrams at **[markdy.com/examples](https://markdy.com/examples/)**
15
- > 💼 **Enterprise & Commercial**: Free under MIT. To support development or request custom architecture blueprints, explore **[GitHub Sponsors](https://github.com/sponsors/HoangYell)**.
16
+ > 💼 **Enterprise & Commercial**: Free under MIT. Access production architectural templates, custom diagram kits, and direct support via **[GitHub Sponsors & Pro Blueprints](https://github.com/sponsors/HoangYell)**.
16
17
 
17
18
  ## Features
18
19
 
@@ -108,6 +109,14 @@ try {
108
109
  - 🔌 **[VS Code Marketplace Extension](https://marketplace.visualstudio.com/items?itemName=hoangyell.markdy-vscode)** — syntax highlighting and live preview in editor
109
110
  - 📦 **[GitHub Repository](https://github.com/HoangYell/markdy-com)** — source code, benchmarks, and issue tracker
110
111
 
112
+ ## 📐 Production Architecture Blueprints & Pro Support
113
+
114
+ Ship production diagrams faster with proven starting points and expert help:
115
+
116
+ - 🌟 **Canonical Blueprints Showcase**: Browse 30+ production-grade architectures for fintech, SaaS, AI, and cloud-native stacks at [markdy.com/examples](https://markdy.com/examples/) - copy any blueprint and adapt it to your stack in minutes.
117
+ - 📦 **Pro Architecture Kits on GitHub Sponsors**: Unlock private production templates, enterprise layout kits, and prioritized support at [github.com/sponsors/HoangYell](https://github.com/sponsors/HoangYell) - built for teams shipping docs at scale.
118
+ - ⚡ **Interactive Studio**: Prototype and share live diagrams instantly in your browser at [markdy.com/playground](https://markdy.com/playground/) - no install, no setup, just paste MarkdyScript and present.
119
+
111
120
  ## License
112
121
 
113
122
  [MIT](https://github.com/HoangYell/markdy-com/blob/main/LICENSE)
package/dist/index.js CHANGED
@@ -647,12 +647,13 @@ function resolvePlayer(config = {}, overrides = {}) {
647
647
  const unconfiguredFallback = controlsExplicitlyDeclared ? false : hostControlDefault;
648
648
  const resolveControl = (value, fallback = unconfiguredFallback) => controlsAllowed && (value ?? fallback);
649
649
  const interactExplicit = configuredControls.interact ?? configuredControls.fit;
650
+ const fallbackResetView = configuredControls.resetView !== void 0 ? configuredControls.resetView : configuredControls.fullscreen ?? unconfiguredFallback;
650
651
  const requestedControls = {
651
652
  seek: resolveControl(configuredControls.seek, false),
652
653
  speed: resolveControl(configuredControls.speed),
653
654
  fit: controlsActive && configuredControls.fit !== false,
654
655
  interact: resolveControl(interactExplicit),
655
- resetView: resolveControl(configuredControls.resetView),
656
+ resetView: resolveControl(fallbackResetView),
656
657
  fullscreen: resolveControl(configuredControls.fullscreen),
657
658
  svg: resolveControl(configuredControls.svg),
658
659
  gif: resolveControl(configuredControls.gif),
@@ -661,12 +662,13 @@ function resolvePlayer(config = {}, overrides = {}) {
661
662
  theme: resolveControl(configuredControls.theme)
662
663
  };
663
664
  const hasExplicitInteraction = config.interaction !== void 0;
664
- const fallbackGesture = overrides.interactiveViewport === true || overrides.controls === true;
665
- const interactionOn = overrides.interactiveViewport === true || overrides.controls === true || overrides.interactiveViewport !== false && hasExplicitInteraction;
665
+ const fallbackGesture = overrides.interactiveViewport === true || overrides.controls === true || Boolean(requestedControls.fullscreen && controlsActive);
666
+ const interactionOn = overrides.interactiveViewport === true || overrides.controls === true || Boolean(requestedControls.fullscreen && controlsActive) || overrides.interactiveViewport !== false && hasExplicitInteraction;
667
+ const defaultGesture = hasExplicitInteraction ? false : fallbackGesture;
666
668
  const gestures = {
667
- zoom: interactionOn && (interaction.zoom ?? fallbackGesture),
668
- pan: interactionOn && (interaction.pan ?? fallbackGesture),
669
- doubleClickToReset: interactionOn && (interaction.doubleClickToReset ?? fallbackGesture)
669
+ zoom: interactionOn && (interaction.zoom ?? defaultGesture),
670
+ pan: interactionOn && (interaction.pan ?? defaultGesture),
671
+ doubleClickToReset: interactionOn && (interaction.doubleClickToReset ?? defaultGesture)
670
672
  };
671
673
  const interactionEnabled = gestures.zoom || gestures.pan || gestures.doubleClickToReset;
672
674
  const configuredSpeeds = configuredControls.speeds?.length ? configuredControls.speeds : [0.25, 1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdy/core",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Diagram-native MarkdyScript parser and compiler (auto-layout, edge routing, cue scheduling) — zero runtime dependencies.",
5
5
  "license": "MIT",
6
6
  "type": "module",