react-smart-copy 1.15.0 → 1.16.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-smart-copy",
3
- "version": "1.15.0",
4
- "description": "Headless, type-safe clipboard interactions for React: copy and paste text, rich HTML, images, spreadsheet tables, typed application data, Markdown, code, privacy-safe images, links and sharing, with coordinated copy groups, SVG/DOM capture, Trojan Source and homoglyph detection, honest error states, retry and screen-reader announcements.",
3
+ "version": "1.16.0",
4
+ "description": "Headless, type-safe clipboard interactions for React: copy and paste text, rich HTML, images, spreadsheet tables, typed application data, Markdown, code, privacy-safe images, links, sharing and colours, 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",
@@ -51,7 +51,14 @@
51
51
  "paste-link",
52
52
  "web-share",
53
53
  "share-button",
54
- "navigator-share"
54
+ "navigator-share",
55
+ "color",
56
+ "colour",
57
+ "oklch",
58
+ "color-picker",
59
+ "design-tokens",
60
+ "contrast",
61
+ "wcag-contrast"
55
62
  ],
56
63
  "license": "MIT",
57
64
  "author": {
@@ -107,6 +114,9 @@
107
114
  ],
108
115
  "share": [
109
116
  "./dist/share.d.ts"
117
+ ],
118
+ "color": [
119
+ "./dist/color.d.ts"
110
120
  ]
111
121
  }
112
122
  },
@@ -221,6 +231,16 @@
221
231
  "default": "./dist/share.cjs"
222
232
  }
223
233
  },
234
+ "./color": {
235
+ "import": {
236
+ "types": "./dist/color.d.ts",
237
+ "default": "./dist/color.js"
238
+ },
239
+ "require": {
240
+ "types": "./dist/color.d.cts",
241
+ "default": "./dist/color.cjs"
242
+ }
243
+ },
224
244
  "./package.json": "./package.json"
225
245
  },
226
246
  "engines": {
@@ -245,7 +265,7 @@
245
265
  "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",
246
266
  "changeset": "changeset",
247
267
  "release": "npm run verify && changeset publish",
248
- "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','link.js','share.js']) require('fs').copyFileSync('dist/'+f,'site/'+f)\" && node scripts/build-changelog.js",
268
+ "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','link.js','share.js','color.js']) require('fs').copyFileSync('dist/'+f,'site/'+f)\" && node scripts/build-changelog.js",
249
269
  "site:preview": "npm run site:build && npx --yes serve site",
250
270
  "test:coverage": "vitest run --coverage",
251
271
  "types:consumer": "tsc -p consumer/tsconfig.bundler.json && tsc -p consumer/tsconfig.nodenext.json",
@@ -400,6 +420,23 @@
400
420
  "path": "dist/share.js",
401
421
  "import": "{ shareOrCopy }",
402
422
  "limit": "4.5 kB"
423
+ },
424
+ {
425
+ "name": "color, all exports",
426
+ "path": "dist/color.js",
427
+ "limit": "6.8 kB"
428
+ },
429
+ {
430
+ "name": "color: parseColor + formatColor",
431
+ "path": "dist/color.js",
432
+ "import": "{ parseColor, formatColor }",
433
+ "limit": "5.5 kB"
434
+ },
435
+ {
436
+ "name": "color: contrastRatio",
437
+ "path": "dist/color.js",
438
+ "import": "{ contrastRatio }",
439
+ "limit": "4.7 kB"
403
440
  }
404
441
  ],
405
442
  "publishConfig": {
@@ -414,6 +451,7 @@
414
451
  "@tanstack/table-core": "^9.3.1",
415
452
  "@testing-library/dom": "^10.4.2",
416
453
  "@testing-library/react": "^16.3.3",
454
+ "@types/culori": "4.0.1",
417
455
  "@types/markdown-it": "14.2.0",
418
456
  "@types/node": "^22.20.5",
419
457
  "@types/react": "^19.3.0",
@@ -422,6 +460,7 @@
422
460
  "ag-grid-community": "^36.2.0",
423
461
  "arktype": "^2.2.8",
424
462
  "axe-core": "^4.14.0",
463
+ "culori": "4.0.2",
425
464
  "eslint": "^10.13.0",
426
465
  "eslint-plugin-react-hooks": "^7.1.1",
427
466
  "fast-check": "^4.10.2",