react-smart-copy 1.11.0 → 1.13.0
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 +169 -3
- package/dist/code.cjs +1181 -0
- package/dist/code.cjs.map +1 -0
- package/dist/code.d.cts +292 -0
- package/dist/code.d.ts +292 -0
- package/dist/code.js +1169 -0
- package/dist/code.js.map +1 -0
- package/dist/image.cjs +1293 -0
- package/dist/image.cjs.map +1 -0
- package/dist/image.d.cts +217 -0
- package/dist/image.d.ts +217 -0
- package/dist/image.js +1282 -0
- package/dist/image.js.map +1 -0
- package/dist/markdown.cjs +59 -57
- package/dist/markdown.cjs.map +1 -1
- package/dist/markdown.d.cts +15 -9
- package/dist/markdown.d.ts +15 -9
- package/dist/markdown.js +59 -57
- package/dist/markdown.js.map +1 -1
- package/package.json +87 -18
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-smart-copy",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Headless, type-safe clipboard interactions for React: copy and paste text, rich HTML, images, spreadsheet tables, typed application data and
|
|
3
|
+
"version": "1.13.0",
|
|
4
|
+
"description": "Headless, type-safe clipboard interactions for React: copy and paste text, rich HTML, images, spreadsheet tables, typed application data, Markdown, code and privacy-safe images, with coordinated copy groups, SVG/DOM capture, Trojan Source and homoglyph detection, honest error states, retry and screen-reader announcements.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
7
7
|
"clipboard",
|
|
@@ -29,7 +29,21 @@
|
|
|
29
29
|
"html-to-markdown",
|
|
30
30
|
"paste-as-markdown",
|
|
31
31
|
"google-docs",
|
|
32
|
-
"word"
|
|
32
|
+
"word",
|
|
33
|
+
"copy-code",
|
|
34
|
+
"code-block",
|
|
35
|
+
"syntax-highlighting",
|
|
36
|
+
"trojan-source",
|
|
37
|
+
"homoglyph",
|
|
38
|
+
"unicode-security",
|
|
39
|
+
"paste-code",
|
|
40
|
+
"image-metadata",
|
|
41
|
+
"exif",
|
|
42
|
+
"strip-exif",
|
|
43
|
+
"gps",
|
|
44
|
+
"image-compression",
|
|
45
|
+
"image-resize",
|
|
46
|
+
"paste-image"
|
|
33
47
|
],
|
|
34
48
|
"license": "MIT",
|
|
35
49
|
"author": {
|
|
@@ -73,6 +87,12 @@
|
|
|
73
87
|
],
|
|
74
88
|
"markdown": [
|
|
75
89
|
"./dist/markdown.d.ts"
|
|
90
|
+
],
|
|
91
|
+
"code": [
|
|
92
|
+
"./dist/code.d.ts"
|
|
93
|
+
],
|
|
94
|
+
"image": [
|
|
95
|
+
"./dist/image.d.ts"
|
|
76
96
|
]
|
|
77
97
|
}
|
|
78
98
|
},
|
|
@@ -147,6 +167,26 @@
|
|
|
147
167
|
"default": "./dist/markdown.cjs"
|
|
148
168
|
}
|
|
149
169
|
},
|
|
170
|
+
"./code": {
|
|
171
|
+
"import": {
|
|
172
|
+
"types": "./dist/code.d.ts",
|
|
173
|
+
"default": "./dist/code.js"
|
|
174
|
+
},
|
|
175
|
+
"require": {
|
|
176
|
+
"types": "./dist/code.d.cts",
|
|
177
|
+
"default": "./dist/code.cjs"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"./image": {
|
|
181
|
+
"import": {
|
|
182
|
+
"types": "./dist/image.d.ts",
|
|
183
|
+
"default": "./dist/image.js"
|
|
184
|
+
},
|
|
185
|
+
"require": {
|
|
186
|
+
"types": "./dist/image.d.cts",
|
|
187
|
+
"default": "./dist/image.cjs"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
150
190
|
"./package.json": "./package.json"
|
|
151
191
|
},
|
|
152
192
|
"engines": {
|
|
@@ -168,12 +208,13 @@
|
|
|
168
208
|
"lint": "eslint .",
|
|
169
209
|
"lint:package": "publint --strict && attw --pack .",
|
|
170
210
|
"size": "size-limit",
|
|
171
|
-
"verify": "npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run lint:package && npm run size",
|
|
211
|
+
"verify": "npm run lint && npm run typecheck && npm run test:coverage && npm run build && node scripts/check-dist.js && npm run lint:package && npm run types:consumer && npm run size",
|
|
172
212
|
"changeset": "changeset",
|
|
173
213
|
"release": "npm run verify && changeset publish",
|
|
174
|
-
"site:build": "npm run build && node -e \"for (const f of ['core.js','capture.js','table.js','structured.js','markdown.js']) require('fs').copyFileSync('dist/'+f,'site/'+f)\" && node scripts/build-changelog.js",
|
|
214
|
+
"site:build": "npm run build && node -e \"for (const f of ['core.js','capture.js','table.js','structured.js','markdown.js','code.js','image.js']) require('fs').copyFileSync('dist/'+f,'site/'+f)\" && node scripts/build-changelog.js",
|
|
175
215
|
"site:preview": "npm run site:build && npx --yes serve site",
|
|
176
|
-
"test:coverage": "vitest run --coverage"
|
|
216
|
+
"test:coverage": "vitest run --coverage",
|
|
217
|
+
"types:consumer": "tsc -p consumer/tsconfig.bundler.json && tsc -p consumer/tsconfig.nodenext.json"
|
|
177
218
|
},
|
|
178
219
|
"size-limit": [
|
|
179
220
|
{
|
|
@@ -268,6 +309,34 @@
|
|
|
268
309
|
"path": "dist/markdown.js",
|
|
269
310
|
"import": "{ pasteAsMarkdown }",
|
|
270
311
|
"limit": "7.5 kB"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "code, all exports",
|
|
315
|
+
"path": "dist/code.js",
|
|
316
|
+
"limit": "7.8 kB"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "code: codePayload (copy side)",
|
|
320
|
+
"path": "dist/code.js",
|
|
321
|
+
"import": "{ codePayload }",
|
|
322
|
+
"limit": "6.25 kB"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"name": "code: inspectCode",
|
|
326
|
+
"path": "dist/code.js",
|
|
327
|
+
"import": "{ inspectCode }",
|
|
328
|
+
"limit": "2.6 kB"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "image, all exports",
|
|
332
|
+
"path": "dist/image.js",
|
|
333
|
+
"limit": "7.65 kB"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "image: stripMetadata + readImageInfo",
|
|
337
|
+
"path": "dist/image.js",
|
|
338
|
+
"import": "{ stripMetadata, readImageInfo }",
|
|
339
|
+
"limit": "5.05 kB"
|
|
271
340
|
}
|
|
272
341
|
],
|
|
273
342
|
"publishConfig": {
|
|
@@ -277,7 +346,7 @@
|
|
|
277
346
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
278
347
|
"@changesets/cli": "^3.0.3",
|
|
279
348
|
"@eslint/js": "^10.0.1",
|
|
280
|
-
"@size-limit/preset-small-lib": "^14.
|
|
349
|
+
"@size-limit/preset-small-lib": "^14.2.0",
|
|
281
350
|
"@tanstack/table-core": "^9.3.1",
|
|
282
351
|
"@testing-library/dom": "^10.4.2",
|
|
283
352
|
"@testing-library/react": "^16.3.3",
|
|
@@ -285,24 +354,24 @@
|
|
|
285
354
|
"@types/node": "^22.20.5",
|
|
286
355
|
"@types/react": "^19.3.0",
|
|
287
356
|
"@types/react-dom": "^19.3.0",
|
|
288
|
-
"@vitest/coverage-v8": "^5.0.
|
|
357
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
289
358
|
"ag-grid-community": "^36.2.0",
|
|
290
|
-
"arktype": "2.2.
|
|
291
|
-
"eslint": "^10.
|
|
359
|
+
"arktype": "^2.2.8",
|
|
360
|
+
"eslint": "^10.13.0",
|
|
292
361
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
293
362
|
"fast-check": "^4.10.2",
|
|
294
|
-
"jsdom": "^30.1.
|
|
363
|
+
"jsdom": "^30.1.3",
|
|
295
364
|
"markdown-it": "14.3.2",
|
|
296
|
-
"publint": "^0.3.
|
|
297
|
-
"react": "^19.3.
|
|
298
|
-
"react-dom": "^19.3.
|
|
299
|
-
"size-limit": "^14.
|
|
365
|
+
"publint": "^0.3.25",
|
|
366
|
+
"react": "^19.3.1",
|
|
367
|
+
"react-dom": "^19.3.1",
|
|
368
|
+
"size-limit": "^14.2.0",
|
|
300
369
|
"tanstack-table-core-v8": "npm:@tanstack/table-core@^8.21.3",
|
|
301
370
|
"tsdown": "^0.23.0",
|
|
302
371
|
"typescript": "^6.0.3",
|
|
303
|
-
"typescript-eslint": "^8.
|
|
372
|
+
"typescript-eslint": "^8.71.2",
|
|
304
373
|
"valibot": "1.5.0",
|
|
305
|
-
"vitest": "^5.0.
|
|
306
|
-
"zod": "4.6.
|
|
374
|
+
"vitest": "^5.0.5",
|
|
375
|
+
"zod": "^4.6.7"
|
|
307
376
|
}
|
|
308
377
|
}
|