react-smart-copy 1.20.0 → 1.22.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.20.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, colours, portable rich text, clean pastes from Word and Google Docs, and safe file and folder drops with content-type checks, with coordinated copy groups, SVG/DOM capture, Trojan Source and homoglyph detection, honest error states, retry and screen-reader announcements.",
3
+ "version": "1.22.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, colours, portable rich text, clean pastes from Word and Google Docs, safe file and folder drops with content-type checks, secret detection and redaction in pastes and copies, and one-time codes read from pasted messages into accessible code fields with SMS autofill and WebOTP, 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",
@@ -77,7 +77,15 @@
77
77
  "drag-and-drop-folders",
78
78
  "file-type-detection",
79
79
  "magic-bytes",
80
- "safe-filename"
80
+ "safe-filename",
81
+ "secret-scanning",
82
+ "redaction",
83
+ "api-key-detection",
84
+ "data-loss-prevention",
85
+ "one-time-code",
86
+ "otp",
87
+ "webotp",
88
+ "verification-code"
81
89
  ],
82
90
  "license": "MIT",
83
91
  "author": {
@@ -142,6 +150,12 @@
142
150
  ],
143
151
  "files": [
144
152
  "./dist/files.d.ts"
153
+ ],
154
+ "secrets": [
155
+ "./dist/secrets.d.ts"
156
+ ],
157
+ "otp": [
158
+ "./dist/otp.d.ts"
145
159
  ]
146
160
  }
147
161
  },
@@ -286,6 +300,26 @@
286
300
  "default": "./dist/files.cjs"
287
301
  }
288
302
  },
303
+ "./secrets": {
304
+ "import": {
305
+ "types": "./dist/secrets.d.ts",
306
+ "default": "./dist/secrets.js"
307
+ },
308
+ "require": {
309
+ "types": "./dist/secrets.d.cts",
310
+ "default": "./dist/secrets.cjs"
311
+ }
312
+ },
313
+ "./otp": {
314
+ "import": {
315
+ "types": "./dist/otp.d.ts",
316
+ "default": "./dist/otp.js"
317
+ },
318
+ "require": {
319
+ "types": "./dist/otp.d.cts",
320
+ "default": "./dist/otp.cjs"
321
+ }
322
+ },
289
323
  "./package.json": "./package.json"
290
324
  },
291
325
  "engines": {
@@ -519,6 +553,34 @@
519
553
  "import": "{ safeFileName }",
520
554
  "limit": "2.45 kB"
521
555
  },
556
+ {
557
+ "name": "secrets, all exports",
558
+ "path": "dist/secrets.js",
559
+ "limit": "4.25 kB"
560
+ },
561
+ {
562
+ "name": "secrets: scanSecrets",
563
+ "path": "dist/secrets.js",
564
+ "import": "{ scanSecrets }",
565
+ "limit": "3.45 kB"
566
+ },
567
+ {
568
+ "name": "otp, all exports",
569
+ "path": "dist/otp.js",
570
+ "limit": "3.8 kB"
571
+ },
572
+ {
573
+ "name": "otp: extractOtp",
574
+ "path": "dist/otp.js",
575
+ "import": "{ extractOtp }",
576
+ "limit": "2.2 kB"
577
+ },
578
+ {
579
+ "name": "React: useOtpField",
580
+ "path": "dist/index.js",
581
+ "import": "{ useOtpField }",
582
+ "limit": "4.3 kB"
583
+ },
522
584
  {
523
585
  "name": "An app using five entry points (one shared core)",
524
586
  "path": [