@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 CHANGED
@@ -1,5 +1,4 @@
1
- import { n as Options, r as resolveOptions, t as ImportOverrides } from "./options-D2_OB7_C.js";
2
-
1
+ import { n as Options, r as resolveOptions, t as ImportOverrides } from "./options-D2Q0JXtI.js";
3
2
  //#region src/core/tldraw.d.ts
4
3
  declare class TldrawExport {
5
4
  /**
package/dist/api.js CHANGED
@@ -1,2 +1,2 @@
1
- import { r as resolveOptions, t as TldrawExport } from "./tldraw-C8VVllK_.js";
1
+ import { r as resolveOptions, t as TldrawExport } from "./tldraw-CoiKQQVQ.js";
2
2
  export { TldrawExport, resolveOptions };
package/dist/bun.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { n as Options } from "./options-D2_OB7_C.js";
2
-
1
+ import { n as Options } from "./options-D2Q0JXtI.js";
3
2
  //#region src/bun.d.ts
4
3
  /**
5
4
  * This entry file is for Bun plugin.
package/dist/esbuild.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { n as Options } from "./options-D2_OB7_C.js";
2
-
1
+ import { n as Options } from "./options-D2Q0JXtI.js";
3
2
  //#region src/esbuild.d.ts
4
3
  /**
5
4
  * This entry file is for esbuild plugin.
package/dist/farm.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { n as Options } from "./options-D2_OB7_C.js";
2
-
1
+ import { n as Options } from "./options-D2Q0JXtI.js";
3
2
  //#region src/farm.d.ts
4
3
  /**
5
4
  * This entry file is for Farm plugin.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { n as Options } from "./options-D2_OB7_C.js";
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-C8VVllK_.js";
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) : void 0;
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
- import { n as Options } from "./options-D2_OB7_C.js";
2
-
1
+ import { n as Options } from "./options-D2Q0JXtI.js";
3
2
  //#region src/nuxt.d.ts
4
3
  type ModuleOptions = Options;
5
4
  /**
@@ -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. */frame?: string; /** Export a specific page by name, ID, or index. */
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 = {
@@ -1,5 +1,4 @@
1
- import { n as Options } from "./options-D2_OB7_C.js";
2
-
1
+ import { n as Options } from "./options-D2Q0JXtI.js";
3
2
  //#region src/rolldown.d.ts
4
3
  /**
5
4
  * This entry file is for Rolldown plugin.
package/dist/rollup.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { n as Options } from "./options-D2_OB7_C.js";
2
-
1
+ import { n as Options } from "./options-D2Q0JXtI.js";
3
2
  //#region src/rollup.d.ts
4
3
  /**
5
4
  * This entry file is for Rollup plugin.
package/dist/rspack.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { n as Options } from "./options-D2_OB7_C.js";
2
-
1
+ import { n as Options } from "./options-D2Q0JXtI.js";
3
2
  //#region src/rspack.d.ts
4
3
  /**
5
4
  * This entry file is for Rspack plugin.
@@ -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.entries()) {
42
- if (key === "tldr" || key === "tldraw") continue;
43
- switch (key) {
44
- case "dark":
45
- case "stripStyle":
46
- case "transparent":
47
- if (value === "true" || value === "") overrides[key] = true;
48
- else if (value === "false") overrides[key] = false;
49
- else log.warn(`Ignoring invalid value for "${key}": "${value}". Expected "true" or "false".`);
50
- break;
51
- case "format":
52
- overrides.format = value;
53
- break;
54
- case "frame":
55
- case "page":
56
- overrides[key] = value;
57
- break;
58
- case "padding":
59
- case "scale": {
60
- const numberValue = Number(value);
61
- if (!Number.isNaN(numberValue)) overrides[key] = numberValue;
62
- break;
63
- }
64
- default: break;
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.entries()) cache[this.toRelativeCacheKey(identifier)] = { result: toPosixPath(path.relative(this.options.cacheDirectory, result)) };
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))[0];
210
- if (!outputFile) throw new Error(`tldraw-cli produced no output for "${absolutePath}"`);
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 fileSize = prettyBytes((await fs.stat(cachedFilePath)).size);
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 cachedHashMatch = CACHE_HASH_REGEX.exec(cachedBasename);
237
- if (!cachedHashMatch?.[1]) return false;
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) === cachedHashMatch[1];
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]+/g, "-").replaceAll(/^-+|-+$/g, "");
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
@@ -1,5 +1,4 @@
1
- import { n as Options } from "./options-D2_OB7_C.js";
2
-
1
+ import { n as Options } from "./options-D2Q0JXtI.js";
3
2
  //#region src/vite.d.ts
4
3
  /**
5
4
  * This entry file is for Vite plugin.
package/dist/webpack.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { n as Options } from "./options-D2_OB7_C.js";
2
-
1
+ import { n as Options } from "./options-D2Q0JXtI.js";
3
2
  //#region src/webpack.d.ts
4
3
  /**
5
4
  * This entry file is for webpack plugin.
package/package.json CHANGED
@@ -1,158 +1,159 @@
1
1
  {
2
- "name": "@kitschpatrol/unplugin-tldraw",
3
- "version": "1.1.1",
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
- "dependencies": {
71
- "@kitschpatrol/tldraw-cli": "^6.0.0",
72
- "@types/node": "~22.19.19",
73
- "defu": "^6.1.7",
74
- "lognow": "^0.6.2",
75
- "p-limit": "^7.3.0",
76
- "pretty-bytes": "^7.1.0",
77
- "pretty-ms": "^9.3.0",
78
- "unplugin": "^3.0.0"
79
- },
80
- "devDependencies": {
81
- "@farmfe/core": ">=1.7.11",
82
- "@kitschpatrol/shared-config": "^7.6.3",
83
- "@nuxt/kit": "^4.4.6",
84
- "@nuxt/schema": "^4.4.6",
85
- "@rspack/core": "^2.0.5",
86
- "@sxzz/test-utils": "^0.5.18",
87
- "@vitest/browser-playwright": "^4.1.7",
88
- "bumpp": "^11.1.0",
89
- "esbuild": "*",
90
- "playwright": "^1.60.0",
91
- "poptab": "^1.1.1",
92
- "rolldown": "^1.0.3",
93
- "rollup": "^4.60.4",
94
- "shx": "^0.4.0",
95
- "tsdown": "^0.22.1",
96
- "typescript": "~5.9.3",
97
- "vite": "^7.3.3",
98
- "vitest": "^4.1.7",
99
- "webpack": "^5.107.2"
100
- },
101
- "peerDependencies": {
102
- "@farmfe/core": ">=1",
103
- "@nuxt/kit": "^3 || ^4",
104
- "@nuxt/schema": "^3 || ^4",
105
- "@rspack/core": "^1 || ^2",
106
- "esbuild": "*",
107
- "rolldown": ">=1.0.0-rc.1",
108
- "rollup": "^3 || ^4",
109
- "vite": ">=3",
110
- "webpack": "^4 || ^5"
111
- },
112
- "peerDependenciesMeta": {
113
- "@farmfe/core": {
114
- "optional": true
115
- },
116
- "@nuxt/kit": {
117
- "optional": true
118
- },
119
- "@nuxt/schema": {
120
- "optional": true
121
- },
122
- "@rspack/core": {
123
- "optional": true
124
- },
125
- "esbuild": {
126
- "optional": true
127
- },
128
- "rolldown": {
129
- "optional": true
130
- },
131
- "rollup": {
132
- "optional": true
133
- },
134
- "vite": {
135
- "optional": true
136
- },
137
- "webpack": {
138
- "optional": true
139
- }
140
- },
141
- "engines": {
142
- "node": ">=22.22.2"
143
- },
144
- "publishConfig": {
145
- "access": "public"
146
- },
147
- "scripts": {
148
- "build": "tsdown",
149
- "clean": "shx rm -f pnpm-lock.yaml && git clean -fdX -e !.claude/",
150
- "dev": "tsdown --watch",
151
- "fix": "ksc fix",
152
- "lint": "ksc lint",
153
- "play": "poptab && pnpm -C playground run dev",
154
- "release": "bumpp --commit 'Release: %s' && pnpm build && NPM_AUTH_TOKEN=$(op read 'op://Personal/npm/token') pnpm publish",
155
- "test": "vitest run",
156
- "test:browser": "vitest run --config vitest.browser.config.ts"
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
- [![NPM Package @kitschpatrol/unplugin-tldraw](https://img.shields.io/npm/v/@kitschpatrol/unplugin-tldraw.svg)](https://npmjs.com/package/@kitschpatrol/unplugin-tldraw)
10
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/license/mit/)
9
+ [![NPM Package @kitschpatrol/unplugin-tldraw](https://img.shields.io/npm/v/@kitschpatrol/unplugin-tldraw.svg)](https://www.npmjs.com/package/@kitschpatrol/unplugin-tldraw)
10
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/license/mit)
11
11
  [![CI](https://github.com/kitschpatrol/unplugin-tldraw/actions/workflows/ci.yml/badge.svg)](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.tldr-preview), or run the following in VS Code's command palette:
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.tldr-preview
216
+ ext install kitschpatrol.tldraw-preview
217
217
  ```
218
218
 
219
219
  ## Usage