react-smart-copy 1.8.1 → 1.10.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 +209 -4
- package/dist/capture.cjs.map +1 -1
- package/dist/capture.js.map +1 -1
- package/dist/core.cjs +57 -13
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +32 -4
- package/dist/core.d.ts +32 -4
- package/dist/core.js +55 -14
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +57 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -4
- package/dist/index.d.ts +32 -4
- package/dist/index.js +55 -14
- package/dist/index.js.map +1 -1
- package/dist/structured.cjs +552 -0
- package/dist/structured.cjs.map +1 -0
- package/dist/structured.d.cts +273 -0
- package/dist/structured.d.ts +273 -0
- package/dist/structured.js +545 -0
- package/dist/structured.js.map +1 -0
- package/dist/table.cjs +855 -0
- package/dist/table.cjs.map +1 -0
- package/dist/table.d.cts +380 -0
- package/dist/table.d.ts +380 -0
- package/dist/table.js +838 -0
- package/dist/table.js.map +1 -0
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +11 -0
- package/dist/testing.d.ts +11 -0
- package/dist/testing.js.map +1 -1
- package/package.json +83 -11
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 and
|
|
3
|
+
"version": "1.10.0",
|
|
4
|
+
"description": "Headless, type-safe clipboard interactions for React: copy and paste text, rich HTML, images, spreadsheet tables and typed application data, with coordinated copy groups, SVG/DOM capture, honest error states, retry and screen-reader announcements.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
7
7
|
"clipboard",
|
|
@@ -15,7 +15,16 @@
|
|
|
15
15
|
"paste",
|
|
16
16
|
"usePaste",
|
|
17
17
|
"screenshot",
|
|
18
|
-
"svg-to-png"
|
|
18
|
+
"svg-to-png",
|
|
19
|
+
"table",
|
|
20
|
+
"excel",
|
|
21
|
+
"google-sheets",
|
|
22
|
+
"tsv",
|
|
23
|
+
"ag-grid",
|
|
24
|
+
"tanstack-table",
|
|
25
|
+
"structured-clipboard",
|
|
26
|
+
"custom-clipboard-format",
|
|
27
|
+
"standard-schema"
|
|
19
28
|
],
|
|
20
29
|
"license": "MIT",
|
|
21
30
|
"author": {
|
|
@@ -50,6 +59,12 @@
|
|
|
50
59
|
],
|
|
51
60
|
"testing": [
|
|
52
61
|
"./dist/testing.d.ts"
|
|
62
|
+
],
|
|
63
|
+
"table": [
|
|
64
|
+
"./dist/table.d.ts"
|
|
65
|
+
],
|
|
66
|
+
"structured": [
|
|
67
|
+
"./dist/structured.d.ts"
|
|
53
68
|
]
|
|
54
69
|
}
|
|
55
70
|
},
|
|
@@ -94,6 +109,26 @@
|
|
|
94
109
|
"default": "./dist/testing.cjs"
|
|
95
110
|
}
|
|
96
111
|
},
|
|
112
|
+
"./table": {
|
|
113
|
+
"import": {
|
|
114
|
+
"types": "./dist/table.d.ts",
|
|
115
|
+
"default": "./dist/table.js"
|
|
116
|
+
},
|
|
117
|
+
"require": {
|
|
118
|
+
"types": "./dist/table.d.cts",
|
|
119
|
+
"default": "./dist/table.cjs"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"./structured": {
|
|
123
|
+
"import": {
|
|
124
|
+
"types": "./dist/structured.d.ts",
|
|
125
|
+
"default": "./dist/structured.js"
|
|
126
|
+
},
|
|
127
|
+
"require": {
|
|
128
|
+
"types": "./dist/structured.d.cts",
|
|
129
|
+
"default": "./dist/structured.cjs"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
97
132
|
"./package.json": "./package.json"
|
|
98
133
|
},
|
|
99
134
|
"engines": {
|
|
@@ -118,7 +153,7 @@
|
|
|
118
153
|
"verify": "npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run lint:package && npm run size",
|
|
119
154
|
"changeset": "changeset",
|
|
120
155
|
"release": "npm run verify && changeset publish",
|
|
121
|
-
"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",
|
|
156
|
+
"site:build": "npm run build && node -e \"for (const f of ['core.js','capture.js','table.js','structured.js']) require('fs').copyFileSync('dist/'+f,'site/'+f)\" && node scripts/build-changelog.js",
|
|
122
157
|
"site:preview": "npm run site:build && npx --yes serve site",
|
|
123
158
|
"test:coverage": "vitest run --coverage"
|
|
124
159
|
},
|
|
@@ -127,31 +162,31 @@
|
|
|
127
162
|
"name": "useCopy (text only)",
|
|
128
163
|
"path": "dist/index.js",
|
|
129
164
|
"import": "{ useCopy }",
|
|
130
|
-
"limit": "3.
|
|
165
|
+
"limit": "3.5 kB"
|
|
131
166
|
},
|
|
132
167
|
{
|
|
133
168
|
"name": "usePaste",
|
|
134
169
|
"path": "dist/index.js",
|
|
135
170
|
"import": "{ usePaste }",
|
|
136
|
-
"limit": "4.
|
|
171
|
+
"limit": "4.4 kB"
|
|
137
172
|
},
|
|
138
173
|
{
|
|
139
174
|
"name": "useCopyInterceptor",
|
|
140
175
|
"path": "dist/index.js",
|
|
141
176
|
"import": "{ useCopyInterceptor }",
|
|
142
|
-
"limit": "2.
|
|
177
|
+
"limit": "2.45 kB"
|
|
143
178
|
},
|
|
144
179
|
{
|
|
145
180
|
"name": "CopyField + CopyGroup (everything copy, React)",
|
|
146
181
|
"path": "dist/index.js",
|
|
147
182
|
"import": "{ CopyField, CopyGroup }",
|
|
148
|
-
"limit": "5.
|
|
183
|
+
"limit": "5.65 kB"
|
|
149
184
|
},
|
|
150
185
|
{
|
|
151
186
|
"name": "PasteField (everything paste, React)",
|
|
152
187
|
"path": "dist/index.js",
|
|
153
188
|
"import": "{ PasteField }",
|
|
154
|
-
"limit": "7.
|
|
189
|
+
"limit": "7.15 kB"
|
|
155
190
|
},
|
|
156
191
|
{
|
|
157
192
|
"name": "useDragCopy",
|
|
@@ -162,7 +197,7 @@
|
|
|
162
197
|
{
|
|
163
198
|
"name": "core, all exports (framework-agnostic)",
|
|
164
199
|
"path": "dist/core.js",
|
|
165
|
-
"limit": "8.
|
|
200
|
+
"limit": "8.4 kB"
|
|
166
201
|
},
|
|
167
202
|
{
|
|
168
203
|
"name": "capture, all exports",
|
|
@@ -173,6 +208,36 @@
|
|
|
173
208
|
"name": "testing, all exports",
|
|
174
209
|
"path": "dist/testing.js",
|
|
175
210
|
"limit": "1 kB"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "table, all exports",
|
|
214
|
+
"path": "dist/table.js",
|
|
215
|
+
"import": "*",
|
|
216
|
+
"limit": "5.75 kB"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "table: tablePayload + fromRows",
|
|
220
|
+
"path": "dist/table.js",
|
|
221
|
+
"import": "{ tablePayload, fromRows }",
|
|
222
|
+
"limit": "2 kB"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "table: parseTable + toRecords",
|
|
226
|
+
"path": "dist/table.js",
|
|
227
|
+
"import": "{ parseTable, toRecords }",
|
|
228
|
+
"limit": "3.2 kB"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "structured, all exports",
|
|
232
|
+
"path": "dist/structured.js",
|
|
233
|
+
"import": "*",
|
|
234
|
+
"limit": "3.6 kB"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "structured: defineClipFormat + clipPayload (copy side)",
|
|
238
|
+
"path": "dist/structured.js",
|
|
239
|
+
"import": "{ defineClipFormat, clipPayload }",
|
|
240
|
+
"limit": "1.9 kB"
|
|
176
241
|
}
|
|
177
242
|
],
|
|
178
243
|
"publishConfig": {
|
|
@@ -183,22 +248,29 @@
|
|
|
183
248
|
"@changesets/cli": "^3.0.3",
|
|
184
249
|
"@eslint/js": "^10.0.1",
|
|
185
250
|
"@size-limit/preset-small-lib": "^14.0.0",
|
|
251
|
+
"@tanstack/table-core": "^9.3.1",
|
|
186
252
|
"@testing-library/dom": "^10.4.2",
|
|
187
253
|
"@testing-library/react": "^16.3.3",
|
|
188
254
|
"@types/node": "^22.20.5",
|
|
189
255
|
"@types/react": "^19.3.0",
|
|
190
256
|
"@types/react-dom": "^19.3.0",
|
|
191
257
|
"@vitest/coverage-v8": "^5.0.1",
|
|
258
|
+
"ag-grid-community": "^36.2.0",
|
|
259
|
+
"arktype": "2.2.6",
|
|
192
260
|
"eslint": "^10.11.0",
|
|
193
261
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
262
|
+
"fast-check": "^4.10.2",
|
|
194
263
|
"jsdom": "^30.1.1",
|
|
195
264
|
"publint": "^0.3.24",
|
|
196
265
|
"react": "^19.3.0",
|
|
197
266
|
"react-dom": "^19.3.0",
|
|
198
267
|
"size-limit": "^14.0.0",
|
|
268
|
+
"tanstack-table-core-v8": "npm:@tanstack/table-core@^8.21.3",
|
|
199
269
|
"tsdown": "^0.23.0",
|
|
200
270
|
"typescript": "^6.0.3",
|
|
201
271
|
"typescript-eslint": "^8.70.1",
|
|
202
|
-
"
|
|
272
|
+
"valibot": "1.5.0",
|
|
273
|
+
"vitest": "^5.0.1",
|
|
274
|
+
"zod": "4.6.5"
|
|
203
275
|
}
|
|
204
276
|
}
|