@markdy/core 1.4.25 → 1.5.1
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 +10 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.js +5 -4
- package/package.json +1 -1
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.
|
|
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.d.ts
CHANGED
|
@@ -31,6 +31,11 @@ type PlayerControlsConfig = {
|
|
|
31
31
|
/** Speed multipliers offered by the speed buttons. */
|
|
32
32
|
speeds?: number[];
|
|
33
33
|
};
|
|
34
|
+
type PlayerControlsInput = PlayerControlsConfig & {
|
|
35
|
+
/** Alias for resetView */
|
|
36
|
+
focus?: boolean;
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
};
|
|
34
39
|
/** What pointer and key input do. Declaring the group opts in. */
|
|
35
40
|
type PlayerInteractionConfig = {
|
|
36
41
|
zoom?: boolean;
|
|
@@ -48,7 +53,7 @@ type PlayerChromeConfig = {
|
|
|
48
53
|
};
|
|
49
54
|
type PlayerConfig = {
|
|
50
55
|
playback?: PlayerPlaybackConfig;
|
|
51
|
-
controls?:
|
|
56
|
+
controls?: PlayerControlsInput;
|
|
52
57
|
interaction?: PlayerInteractionConfig;
|
|
53
58
|
chrome?: PlayerChromeConfig;
|
|
54
59
|
};
|
|
@@ -443,7 +448,7 @@ type PlayerOverrides = {
|
|
|
443
448
|
loop?: boolean;
|
|
444
449
|
playbackRate?: number;
|
|
445
450
|
copyright?: boolean;
|
|
446
|
-
controls?: boolean | (
|
|
451
|
+
controls?: boolean | (PlayerControlsInput & {
|
|
447
452
|
playback?: boolean;
|
|
448
453
|
});
|
|
449
454
|
interactiveViewport?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -624,10 +624,11 @@ function resolvePlayer(config = {}, overrides = {}) {
|
|
|
624
624
|
const playback = config.playback ?? {};
|
|
625
625
|
const overrideControls = typeof overrides.controls === "object" && overrides.controls !== null ? overrides.controls : void 0;
|
|
626
626
|
let globalControls;
|
|
627
|
-
if (typeof
|
|
628
|
-
const
|
|
629
|
-
|
|
630
|
-
|
|
627
|
+
if (typeof globalThis !== "undefined") {
|
|
628
|
+
const glob = globalThis;
|
|
629
|
+
const controls2 = glob.window?.__MARKDY_DEFAULT_CONTROLS__ ?? glob.__MARKDY_DEFAULT_CONTROLS__;
|
|
630
|
+
if (controls2 && typeof controls2 === "object") {
|
|
631
|
+
globalControls = controls2;
|
|
631
632
|
}
|
|
632
633
|
}
|
|
633
634
|
const configuredControls = {
|
package/package.json
CHANGED