react-smart-copy 1.21.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.21.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, and secret detection and redaction in pastes and copies, 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",
@@ -81,7 +81,11 @@
81
81
  "secret-scanning",
82
82
  "redaction",
83
83
  "api-key-detection",
84
- "data-loss-prevention"
84
+ "data-loss-prevention",
85
+ "one-time-code",
86
+ "otp",
87
+ "webotp",
88
+ "verification-code"
85
89
  ],
86
90
  "license": "MIT",
87
91
  "author": {
@@ -149,6 +153,9 @@
149
153
  ],
150
154
  "secrets": [
151
155
  "./dist/secrets.d.ts"
156
+ ],
157
+ "otp": [
158
+ "./dist/otp.d.ts"
152
159
  ]
153
160
  }
154
161
  },
@@ -303,6 +310,16 @@
303
310
  "default": "./dist/secrets.cjs"
304
311
  }
305
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
+ },
306
323
  "./package.json": "./package.json"
307
324
  },
308
325
  "engines": {
@@ -547,6 +564,23 @@
547
564
  "import": "{ scanSecrets }",
548
565
  "limit": "3.45 kB"
549
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
+ },
550
584
  {
551
585
  "name": "An app using five entry points (one shared core)",
552
586
  "path": [