@kitschpatrol/unplugin-tldraw 1.1.1 → 1.1.3
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/api.d.ts +1 -2
- package/dist/api.js +1 -1
- package/dist/bun.d.ts +1 -2
- package/dist/esbuild.d.ts +1 -2
- package/dist/farm.d.ts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +3 -3
- package/dist/nuxt.d.ts +1 -2
- package/dist/{options-D2_OB7_C.d.ts → options-D2Q0JXtI.d.ts} +3 -2
- package/dist/rolldown.d.ts +1 -2
- package/dist/rollup.d.ts +1 -2
- package/dist/rspack.d.ts +1 -2
- package/dist/{tldraw-C8VVllK_.js → tldraw-CoiKQQVQ.js} +35 -35
- package/dist/vite.d.ts +1 -2
- package/dist/webpack.d.ts +1 -2
- package/package.json +158 -157
- package/readme.md +4 -4
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as resolveOptions, t as TldrawExport } from "./tldraw-
|
|
1
|
+
import { r as resolveOptions, t as TldrawExport } from "./tldraw-CoiKQQVQ.js";
|
|
2
2
|
export { TldrawExport, resolveOptions };
|
package/dist/bun.d.ts
CHANGED
package/dist/esbuild.d.ts
CHANGED
package/dist/farm.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as Options } from "./options-
|
|
1
|
+
import { n as Options } from "./options-D2Q0JXtI.js";
|
|
2
2
|
import { UnpluginFactory } from "unplugin";
|
|
3
|
-
|
|
4
3
|
//#region src/index.d.ts
|
|
5
4
|
declare const unpluginFactory: UnpluginFactory<Options | undefined>;
|
|
6
5
|
declare const unplugin: import("unplugin").UnpluginInstance<Options | undefined, boolean>;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as parseImportOverrides, t as TldrawExport } from "./tldraw-
|
|
1
|
+
import { n as parseImportOverrides, t as TldrawExport } from "./tldraw-CoiKQQVQ.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { createUnplugin } from "unplugin";
|
|
4
4
|
//#region src/index.ts
|
|
@@ -19,8 +19,8 @@ const unpluginFactory = (options) => {
|
|
|
19
19
|
const queryIndex = id.indexOf("?");
|
|
20
20
|
const cleanId = queryIndex === -1 ? id : id.slice(0, queryIndex);
|
|
21
21
|
const queryString = queryIndex === -1 ? "" : id.slice(queryIndex + 1);
|
|
22
|
-
const resolvedPath = importer && (cleanId.startsWith("./") || cleanId.startsWith("../")) ? path.resolve(path.dirname(importer), cleanId) : cleanId;
|
|
23
|
-
const overrides = queryString ? parseImportOverrides(queryString)
|
|
22
|
+
const resolvedPath = importer !== void 0 && importer !== "" && (cleanId.startsWith("./") || cleanId.startsWith("../")) ? path.resolve(path.dirname(importer), cleanId) : cleanId;
|
|
23
|
+
const overrides = queryString === "" ? void 0 : parseImportOverrides(queryString);
|
|
24
24
|
return tldrawExport.convert(resolvedPath, overrides);
|
|
25
25
|
}
|
|
26
26
|
},
|
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TldrawToImageOptions } from "@kitschpatrol/tldraw-cli";
|
|
2
|
-
|
|
3
2
|
//#region src/core/options.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Image conversion options for `.tldr` exports. Subset of
|
|
@@ -11,7 +10,9 @@ type TldrawImageOptions = Pick<TldrawToImageOptions, 'dark' | 'format' | 'paddin
|
|
|
11
10
|
* Extends TldrawImageOptions with frame/page selection.
|
|
12
11
|
*/
|
|
13
12
|
type ImportOverrides = TldrawImageOptions & {
|
|
14
|
-
/** Export a specific frame by name or ID. */
|
|
13
|
+
/** Export a specific frame by name or ID. */
|
|
14
|
+
frame?: string;
|
|
15
|
+
/** Export a specific page by name, ID, or index. */
|
|
15
16
|
page?: string;
|
|
16
17
|
};
|
|
17
18
|
type Options = {
|
package/dist/rolldown.d.ts
CHANGED
package/dist/rollup.d.ts
CHANGED
package/dist/rspack.d.ts
CHANGED
|
@@ -38,39 +38,38 @@ function resolveOptions(options) {
|
|
|
38
38
|
function parseImportOverrides(queryString) {
|
|
39
39
|
const params = new URLSearchParams(queryString);
|
|
40
40
|
const overrides = {};
|
|
41
|
-
for (const [key, value] of params
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
41
|
+
for (const [key, value] of params) applyOverride(overrides, key, value);
|
|
42
|
+
return overrides;
|
|
43
|
+
}
|
|
44
|
+
function applyOverride(overrides, key, value) {
|
|
45
|
+
switch (key) {
|
|
46
|
+
case "dark":
|
|
47
|
+
case "stripStyle":
|
|
48
|
+
case "transparent":
|
|
49
|
+
if (value === "true" || value === "") overrides[key] = true;
|
|
50
|
+
else if (value === "false") overrides[key] = false;
|
|
51
|
+
else log.warn(`Ignoring invalid value for "${key}": "${value}". Expected "true" or "false".`);
|
|
52
|
+
break;
|
|
53
|
+
case "format":
|
|
54
|
+
overrides.format = value;
|
|
55
|
+
break;
|
|
56
|
+
case "frame":
|
|
57
|
+
case "page":
|
|
58
|
+
overrides[key] = value;
|
|
59
|
+
break;
|
|
60
|
+
case "padding":
|
|
61
|
+
case "scale": {
|
|
62
|
+
const numberValue = Number(value);
|
|
63
|
+
if (!Number.isNaN(numberValue)) overrides[key] = numberValue;
|
|
64
|
+
break;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
return overrides;
|
|
68
67
|
}
|
|
69
68
|
//#endregion
|
|
70
69
|
//#region src/core/tldraw.ts
|
|
71
70
|
const CACHE_FILE_NAME = ".tldraw-plugin-cache.json";
|
|
72
|
-
const TLDR_EXTENSION_REGEX = /\.tldr(?:\?|$)
|
|
73
|
-
const CACHE_HASH_REGEX = /-([a-f\d]{8})\.[^.]
|
|
71
|
+
const TLDR_EXTENSION_REGEX = /\.tldr(?:\?|$)/v;
|
|
72
|
+
const CACHE_HASH_REGEX = /-([a-f\d]{8})\.[^.]+$/v;
|
|
74
73
|
var TldrawExport = class {
|
|
75
74
|
/**
|
|
76
75
|
* Pattern matching `.tldr` file imports. The `resolveId` hook filters on
|
|
@@ -165,7 +164,7 @@ var TldrawExport = class {
|
|
|
165
164
|
async savePersistentCache() {
|
|
166
165
|
if (!this.persistentCacheDirty) return;
|
|
167
166
|
const cache = {};
|
|
168
|
-
for (const [identifier, result] of this.resolvedCache
|
|
167
|
+
for (const [identifier, result] of this.resolvedCache) cache[this.toRelativeCacheKey(identifier)] = { result: toPosixPath(path.relative(this.options.cacheDirectory, result)) };
|
|
169
168
|
await fs.writeFile(this.cacheFilePath, JSON.stringify(cache, void 0, 2));
|
|
170
169
|
this.persistentCacheDirty = false;
|
|
171
170
|
log.debug(`Saved ${this.resolvedCache.size} entries to persistent cache`);
|
|
@@ -206,8 +205,8 @@ var TldrawExport = class {
|
|
|
206
205
|
if (frame !== void 0) tldrawCliOptions.frames = [frame];
|
|
207
206
|
if (page !== void 0) tldrawCliOptions.pages = [page];
|
|
208
207
|
try {
|
|
209
|
-
const outputFile = (await tldrawToImage(absolutePath, tldrawCliOptions))
|
|
210
|
-
if (
|
|
208
|
+
const outputFile = (await tldrawToImage(absolutePath, tldrawCliOptions)).at(0);
|
|
209
|
+
if (outputFile === void 0) throw new Error(`tldraw-cli produced no output for "${absolutePath}"`);
|
|
211
210
|
await fs.rename(outputFile, cachedFilePath);
|
|
212
211
|
} finally {
|
|
213
212
|
await fs.rm(tempOutputDirectory, {
|
|
@@ -217,7 +216,8 @@ var TldrawExport = class {
|
|
|
217
216
|
}
|
|
218
217
|
if (this.options.pruneCacheOnBuild) this.pathsSeen.add(cachedFilePath);
|
|
219
218
|
const elapsed = prettyMilliseconds(performance.now() - startTime);
|
|
220
|
-
const
|
|
219
|
+
const stat = await fs.stat(cachedFilePath);
|
|
220
|
+
const fileSize = prettyBytes(stat.size);
|
|
221
221
|
log.debug(`Converted in ${elapsed} (${fileSize}) → "${cachedFileName}"`);
|
|
222
222
|
return cachedFilePath;
|
|
223
223
|
}
|
|
@@ -233,13 +233,13 @@ var TldrawExport = class {
|
|
|
233
233
|
async isFileHashCurrent(sourcePath, cachedResultPath, overrides) {
|
|
234
234
|
if (!await fileExists(cachedResultPath)) return false;
|
|
235
235
|
const cachedBasename = path.basename(cachedResultPath);
|
|
236
|
-
const
|
|
237
|
-
if (
|
|
236
|
+
const cachedHash = CACHE_HASH_REGEX.exec(cachedBasename)?.[1];
|
|
237
|
+
if (cachedHash === void 0) return false;
|
|
238
238
|
const { frame, page, ...imageOverrides } = overrides ?? {};
|
|
239
239
|
const optionsForHash = { ...defu(imageOverrides, this.options.defaultImageOptions) };
|
|
240
240
|
if (frame !== void 0) optionsForHash.frame = frame;
|
|
241
241
|
if (page !== void 0) optionsForHash.page = page;
|
|
242
|
-
return await computeCacheKey(sourcePath, optionsForHash) ===
|
|
242
|
+
return await computeCacheKey(sourcePath, optionsForHash) === cachedHash;
|
|
243
243
|
}
|
|
244
244
|
async loadPersistentCache() {
|
|
245
245
|
try {
|
|
@@ -303,7 +303,7 @@ async function fileExists(filePath) {
|
|
|
303
303
|
* replaces non-alphanumeric with hyphens, trims.
|
|
304
304
|
*/
|
|
305
305
|
function slugify(text) {
|
|
306
|
-
return text.toLowerCase().replaceAll(/[^\da-z]+/
|
|
306
|
+
return text.toLowerCase().replaceAll(/[^\da-z]+/gv, "-").replaceAll(/^-+|-+$/gv, "");
|
|
307
307
|
}
|
|
308
308
|
//#endregion
|
|
309
309
|
export { parseImportOverrides as n, resolveOptions as r, TldrawExport as t };
|
package/dist/vite.d.ts
CHANGED
package/dist/webpack.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,158 +1,159 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
2
|
+
"name": "@kitschpatrol/unplugin-tldraw",
|
|
3
|
+
"version": "1.1.3",
|
|
4
|
+
"description": "Unplugin for module-style import of local tldraw .tldr files with automatic conversion to SVG or PNG.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"tldraw",
|
|
7
|
+
"tldr",
|
|
8
|
+
"unplugin",
|
|
9
|
+
"vite",
|
|
10
|
+
"webpack",
|
|
11
|
+
"rspack",
|
|
12
|
+
"rollup",
|
|
13
|
+
"rolldown",
|
|
14
|
+
"esbuild",
|
|
15
|
+
"farm",
|
|
16
|
+
"bun",
|
|
17
|
+
"nuxt",
|
|
18
|
+
"diagram",
|
|
19
|
+
"drawing",
|
|
20
|
+
"whiteboard",
|
|
21
|
+
"sketch",
|
|
22
|
+
"import",
|
|
23
|
+
"npm-package"
|
|
24
|
+
],
|
|
25
|
+
"homepage": "https://github.com/kitschpatrol/unplugin-tldraw",
|
|
26
|
+
"bugs": "https://github.com/kitschpatrol/unplugin-tldraw/issues",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/kitschpatrol/unplugin-tldraw.git"
|
|
30
|
+
},
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"author": {
|
|
33
|
+
"name": "Eric Mika",
|
|
34
|
+
"email": "eric@ericmika.com",
|
|
35
|
+
"url": "https://ericmika.com"
|
|
36
|
+
},
|
|
37
|
+
"sideEffects": false,
|
|
38
|
+
"type": "module",
|
|
39
|
+
"exports": {
|
|
40
|
+
".": "./dist/index.js",
|
|
41
|
+
"./*": "./*",
|
|
42
|
+
"./api": "./dist/api.js",
|
|
43
|
+
"./bun": "./dist/bun.js",
|
|
44
|
+
"./client": {
|
|
45
|
+
"types": "./dist/client.d.ts"
|
|
46
|
+
},
|
|
47
|
+
"./esbuild": "./dist/esbuild.js",
|
|
48
|
+
"./farm": "./dist/farm.js",
|
|
49
|
+
"./nuxt": "./dist/nuxt.js",
|
|
50
|
+
"./rolldown": "./dist/rolldown.js",
|
|
51
|
+
"./rollup": "./dist/rollup.js",
|
|
52
|
+
"./rspack": "./dist/rspack.js",
|
|
53
|
+
"./vite": "./dist/vite.js",
|
|
54
|
+
"./webpack": "./dist/webpack.js"
|
|
55
|
+
},
|
|
56
|
+
"main": "./dist/index.js",
|
|
57
|
+
"module": "./dist/index.js",
|
|
58
|
+
"types": "./dist/index.d.ts",
|
|
59
|
+
"typesVersions": {
|
|
60
|
+
"*": {
|
|
61
|
+
"*": [
|
|
62
|
+
"./dist/*",
|
|
63
|
+
"./*"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"files": [
|
|
68
|
+
"dist"
|
|
69
|
+
],
|
|
70
|
+
"scripts": {
|
|
71
|
+
"build": "tsdown",
|
|
72
|
+
"clean": "shx rm -f pnpm-lock.yaml && git clean -fdX -e !.claude/",
|
|
73
|
+
"dev": "tsdown --watch",
|
|
74
|
+
"fix": "ksc fix",
|
|
75
|
+
"lint": "ksc lint",
|
|
76
|
+
"play": "poptab && pnpm -C playground run dev",
|
|
77
|
+
"release": "bumpp --commit 'Release: %s' && pnpm build && pnpm publish --otp $(op item get npm --otp)",
|
|
78
|
+
"test": "vitest run",
|
|
79
|
+
"test:browser": "vitest run --config vitest.browser.config.ts"
|
|
80
|
+
},
|
|
81
|
+
"dependencies": {
|
|
82
|
+
"@kitschpatrol/tldraw-cli": "^6.0.3",
|
|
83
|
+
"@types/node": "~24.13.3",
|
|
84
|
+
"defu": "^6.1.7",
|
|
85
|
+
"lognow": "^0.8.0",
|
|
86
|
+
"p-limit": "^7.3.1",
|
|
87
|
+
"pretty-bytes": "^7.1.1",
|
|
88
|
+
"pretty-ms": "^9.3.0",
|
|
89
|
+
"unplugin": "^3.3.0"
|
|
90
|
+
},
|
|
91
|
+
"devDependencies": {
|
|
92
|
+
"@farmfe/core": ">=1.7.11",
|
|
93
|
+
"@kitschpatrol/shared-config": "^8.6.0",
|
|
94
|
+
"@nuxt/kit": "^4.5.2",
|
|
95
|
+
"@nuxt/schema": "^4.5.2",
|
|
96
|
+
"@rspack/core": "^2.1.10",
|
|
97
|
+
"@sxzz/test-utils": "^0.5.18",
|
|
98
|
+
"@vitest/browser-playwright": "^4.1.11",
|
|
99
|
+
"bumpp": "^12.2.1",
|
|
100
|
+
"esbuild": "*",
|
|
101
|
+
"playwright": "^1.62.1",
|
|
102
|
+
"poptab": "^1.1.2",
|
|
103
|
+
"rolldown": "^1.2.5",
|
|
104
|
+
"rollup": "^4.63.0",
|
|
105
|
+
"shx": "^0.4.0",
|
|
106
|
+
"tsdown": "^0.22.14",
|
|
107
|
+
"typescript": "~6.0.3",
|
|
108
|
+
"vite": "^8.2.2",
|
|
109
|
+
"vitest": "^4.1.11",
|
|
110
|
+
"webpack": "^5.109.2"
|
|
111
|
+
},
|
|
112
|
+
"peerDependencies": {
|
|
113
|
+
"@farmfe/core": ">=1",
|
|
114
|
+
"@nuxt/kit": "^3 || ^4",
|
|
115
|
+
"@nuxt/schema": "^3 || ^4",
|
|
116
|
+
"@rspack/core": "^1 || ^2",
|
|
117
|
+
"esbuild": "*",
|
|
118
|
+
"rolldown": ">=1.0.0-rc.1",
|
|
119
|
+
"rollup": "^3 || ^4",
|
|
120
|
+
"vite": ">=3",
|
|
121
|
+
"webpack": "^4 || ^5"
|
|
122
|
+
},
|
|
123
|
+
"peerDependenciesMeta": {
|
|
124
|
+
"@farmfe/core": {
|
|
125
|
+
"optional": true
|
|
126
|
+
},
|
|
127
|
+
"@nuxt/kit": {
|
|
128
|
+
"optional": true
|
|
129
|
+
},
|
|
130
|
+
"@nuxt/schema": {
|
|
131
|
+
"optional": true
|
|
132
|
+
},
|
|
133
|
+
"@rspack/core": {
|
|
134
|
+
"optional": true
|
|
135
|
+
},
|
|
136
|
+
"esbuild": {
|
|
137
|
+
"optional": true
|
|
138
|
+
},
|
|
139
|
+
"rolldown": {
|
|
140
|
+
"optional": true
|
|
141
|
+
},
|
|
142
|
+
"rollup": {
|
|
143
|
+
"optional": true
|
|
144
|
+
},
|
|
145
|
+
"vite": {
|
|
146
|
+
"optional": true
|
|
147
|
+
},
|
|
148
|
+
"webpack": {
|
|
149
|
+
"optional": true
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"packageManager": "pnpm@11.22.0",
|
|
153
|
+
"engines": {
|
|
154
|
+
"node": ">=24.16.0"
|
|
155
|
+
},
|
|
156
|
+
"publishConfig": {
|
|
157
|
+
"access": "public"
|
|
158
|
+
}
|
|
159
|
+
}
|
package/readme.md
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
<!-- badges -->
|
|
8
8
|
|
|
9
|
-
[](https://npmjs.com/package/@kitschpatrol/unplugin-tldraw)
|
|
10
|
-
[](https://opensource.org/license/mit
|
|
9
|
+
[](https://www.npmjs.com/package/@kitschpatrol/unplugin-tldraw)
|
|
10
|
+
[](https://opensource.org/license/mit)
|
|
11
11
|
[](https://github.com/kitschpatrol/unplugin-tldraw/actions/workflows/ci.yml)
|
|
12
12
|
|
|
13
13
|
<!-- /badges -->
|
|
@@ -210,10 +210,10 @@ Cannot find module './assets/test-sketch.tldr' or its corresponding type declara
|
|
|
210
210
|
|
|
211
211
|
If you're using VS Code, an [extension](https://github.com/kitschpatrol/vscode-tldraw-preview) is available to provide hover-previews for tldr file paths:
|
|
212
212
|
|
|
213
|
-
Install the extension from the [Marketplace](https://marketplace.visualstudio.com/items?itemName=kitschpatrol.
|
|
213
|
+
Install the extension from the [Marketplace](https://marketplace.visualstudio.com/items?itemName=kitschpatrol.tldraw-preview), or run the following in VS Code's command palette:
|
|
214
214
|
|
|
215
215
|
```sh
|
|
216
|
-
ext install kitschpatrol.
|
|
216
|
+
ext install kitschpatrol.tldraw-preview
|
|
217
217
|
```
|
|
218
218
|
|
|
219
219
|
## Usage
|