mdat-plugin-tldraw 1.0.4 → 1.0.6
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/dist/index.d.ts +1 -3
- package/dist/index.js +19 -3593
- package/package.json +10 -10
- package/readme.md +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdat-plugin-tldraw",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Mdat plugin to embed tldraw diagrams in Markdown files.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
"dist/*"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@kitschpatrol/tldraw-cli": "^5.0.
|
|
38
|
-
"type
|
|
37
|
+
"@kitschpatrol/tldraw-cli": "^5.0.10",
|
|
38
|
+
"path-type": "^6.0.0",
|
|
39
|
+
"type-fest": "^5.4.4",
|
|
40
|
+
"zod": "^3.25.76"
|
|
39
41
|
},
|
|
40
42
|
"devDependencies": {
|
|
41
|
-
"@kitschpatrol/shared-config": "^5.
|
|
42
|
-
"@types/node": "^20.19.
|
|
43
|
-
"bumpp": "^10.4.
|
|
43
|
+
"@kitschpatrol/shared-config": "^5.13.0",
|
|
44
|
+
"@types/node": "^20.19.33",
|
|
45
|
+
"bumpp": "^10.4.1",
|
|
44
46
|
"mdat": "^1.3.4",
|
|
45
|
-
"
|
|
46
|
-
"tsdown": "^0.19.0",
|
|
47
|
+
"tsdown": "^0.20.3",
|
|
47
48
|
"typescript": "~5.9.3",
|
|
48
|
-
"vitest": "^4.0.
|
|
49
|
-
"zod": "^3.25.76"
|
|
49
|
+
"vitest": "^4.0.18"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"mdat": "^1.1.0"
|
package/readme.md
CHANGED
|
@@ -29,7 +29,7 @@ The plugin automatically generates both "light" and "dark" SVG variations of a t
|
|
|
29
29
|
|
|
30
30
|
Generated assets are intelligently hashed to aide in cache busting. For locally referenced files, the image will only be regenerated when the content in the source file changes.
|
|
31
31
|
|
|
32
|
-
The rule
|
|
32
|
+
The rule accepts either a path to a local `.tldr` file, or remote tldraw URLs.
|
|
33
33
|
|
|
34
34
|
The implementation is based on [@kitschpatrol/tldraw-cli](https://github.com/kitschpatrol/tldraw-cli), which depends on Puppeteer to generate the assets, so it can be a bit slow. Referencing local files instead of remote URLs is recommended for improved performance.
|
|
35
35
|
|