react-smart-copy 1.2.0 → 1.4.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 +83 -16
- package/dist/capture.cjs.map +1 -1
- package/dist/capture.js.map +1 -1
- package/dist/core.cjs +94 -19
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +149 -74
- package/dist/core.d.ts +149 -74
- package/dist/core.js +94 -20
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +176 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +181 -79
- package/dist/index.d.ts +181 -79
- package/dist/index.js +176 -28
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-smart-copy",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Headless, type-safe clipboard interactions for React: copy and paste text, rich HTML and images, coordinated copy groups, SVG/DOM capture, honest error states, retry, reveal-on-interaction and screen-reader announcements.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"verify": "npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run lint:package && npm run size",
|
|
103
103
|
"changeset": "changeset",
|
|
104
104
|
"release": "npm run verify && changeset publish",
|
|
105
|
-
"site:build": "npm run build && node -e \"require('fs').copyFileSync('dist/
|
|
105
|
+
"site:build": "npm run build && node -e \"for (const f of ['core.js','capture.js']) require('fs').copyFileSync('dist/'+f,'site/'+f)\" && node scripts/build-changelog.js",
|
|
106
106
|
"site:preview": "npm run site:build && npx --yes serve site",
|
|
107
107
|
"test:coverage": "vitest run --coverage"
|
|
108
108
|
},
|
|
@@ -111,30 +111,30 @@
|
|
|
111
111
|
"name": "useCopy (text only)",
|
|
112
112
|
"path": "dist/index.js",
|
|
113
113
|
"import": "{ useCopy }",
|
|
114
|
-
"limit": "3.
|
|
114
|
+
"limit": "3.45 kB"
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"name": "usePaste",
|
|
118
118
|
"path": "dist/index.js",
|
|
119
119
|
"import": "{ usePaste }",
|
|
120
|
-
"limit": "3
|
|
120
|
+
"limit": "4.3 kB"
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"name": "CopyField + CopyGroup (everything copy, React)",
|
|
124
124
|
"path": "dist/index.js",
|
|
125
125
|
"import": "{ CopyField, CopyGroup }",
|
|
126
|
-
"limit": "5.
|
|
126
|
+
"limit": "5.6 kB"
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
"name": "PasteField (everything paste, React)",
|
|
130
130
|
"path": "dist/index.js",
|
|
131
131
|
"import": "{ PasteField }",
|
|
132
|
-
"limit": "
|
|
132
|
+
"limit": "7.05 kB"
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
"name": "core, all exports (framework-agnostic)",
|
|
136
136
|
"path": "dist/core.js",
|
|
137
|
-
"limit": "
|
|
137
|
+
"limit": "6.1 kB"
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"name": "capture, all exports",
|