@molecule/app-file-dropzone-react 1.0.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/LICENSE +115 -0
- package/dist/FileDropzone.d.ts +30 -0
- package/dist/FileDropzone.d.ts.map +1 -0
- package/dist/FileDropzone.js +85 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +43 -0
- package/package.json +48 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work.
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship.
|
|
43
|
+
|
|
44
|
+
"Contribution" shall mean any work of authorship, including the
|
|
45
|
+
original version of the Work and any modifications or additions
|
|
46
|
+
to that Work, that is intentionally submitted to the Licensor for
|
|
47
|
+
inclusion in the Work by the copyright owner or by an individual or
|
|
48
|
+
Legal Entity authorized to submit on behalf of the copyright owner.
|
|
49
|
+
|
|
50
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
51
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
52
|
+
subsequently incorporated within the Work.
|
|
53
|
+
|
|
54
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
55
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
56
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
57
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
58
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
59
|
+
Work and such Derivative Works in Source or Object form.
|
|
60
|
+
|
|
61
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
62
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
63
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
64
|
+
patent license to make, have made, use, offer to sell, sell, import,
|
|
65
|
+
and otherwise transfer the Work.
|
|
66
|
+
|
|
67
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
68
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
69
|
+
modifications, and in Source or Object form, provided that You
|
|
70
|
+
meet the following conditions:
|
|
71
|
+
|
|
72
|
+
(a) You must give any other recipients of the Work or
|
|
73
|
+
Derivative Works a copy of this License; and
|
|
74
|
+
|
|
75
|
+
(b) You must cause any modified files to carry prominent notices
|
|
76
|
+
stating that You changed the files; and
|
|
77
|
+
|
|
78
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
79
|
+
that You distribute, all copyright, patent, trademark, and
|
|
80
|
+
attribution notices from the Source form of the Work,
|
|
81
|
+
excluding those notices that do not pertain to any part of
|
|
82
|
+
the Derivative Works; and
|
|
83
|
+
|
|
84
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
85
|
+
distribution, then any Derivative Works that You distribute must
|
|
86
|
+
include a readable copy of the attribution notices contained
|
|
87
|
+
within such NOTICE file.
|
|
88
|
+
|
|
89
|
+
5. Submission of Contributions.
|
|
90
|
+
|
|
91
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
92
|
+
names, trademarks, service marks, or product names of the Licensor.
|
|
93
|
+
|
|
94
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
95
|
+
agreed to in writing, Licensor provides the Work on an "AS IS" BASIS,
|
|
96
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
|
|
97
|
+
|
|
98
|
+
8. Limitation of Liability. In no event and under no legal theory shall
|
|
99
|
+
any Contributor be liable to You for damages.
|
|
100
|
+
|
|
101
|
+
9. Accepting Warranty or Additional Liability.
|
|
102
|
+
|
|
103
|
+
Copyright 2026 Molecule Dev, Inc.
|
|
104
|
+
|
|
105
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
106
|
+
you may not use this file except in compliance with the License.
|
|
107
|
+
You may obtain a copy of the License at
|
|
108
|
+
|
|
109
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
110
|
+
|
|
111
|
+
Unless required by applicable law or agreed to in writing, software
|
|
112
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
113
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
114
|
+
See the License for the specific language governing permissions and
|
|
115
|
+
limitations under the License.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { JSX, ReactNode } from 'react';
|
|
2
|
+
/** Props for {@link FileDropzone}. */
|
|
3
|
+
export interface FileDropzoneProps {
|
|
4
|
+
/** Called with the File[] the user selected or dropped. */
|
|
5
|
+
onFiles: (files: File[]) => void;
|
|
6
|
+
/** Accept attribute (e.g. `'image/*'` or `'.pdf,.docx'`). */
|
|
7
|
+
accept?: string;
|
|
8
|
+
/** Allow multi-file selection. Defaults to false. */
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
/** Max file size in bytes. Files exceeding are rejected. */
|
|
11
|
+
maxSize?: number;
|
|
12
|
+
/** Called with rejected files (wrong type or size). */
|
|
13
|
+
onRejected?: (files: File[]) => void;
|
|
14
|
+
/** Optional content rendered inside the dropzone (defaults to standard upload copy). */
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
/** Disabled state. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Extra classes on the dropzone wrapper. */
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Drag-drop + click-to-browse file upload zone. Pure UI — apps handle
|
|
23
|
+
* the actual upload.
|
|
24
|
+
*
|
|
25
|
+
* Rejects files exceeding `maxSize` or not matching `accept` (best-effort
|
|
26
|
+
* extension/MIME check) via `onRejected`.
|
|
27
|
+
* @param props - Component props (see {@link FileDropzoneProps}).
|
|
28
|
+
*/
|
|
29
|
+
export declare function FileDropzone({ onFiles, accept, multiple, maxSize, onRejected, children, disabled, className, }: FileDropzoneProps): JSX.Element;
|
|
30
|
+
//# sourceMappingURL=FileDropzone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileDropzone.d.ts","sourceRoot":"","sources":["../src/FileDropzone.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAM3C,sCAAsC;AACtC,MAAM,WAAW,iBAAiB;IAChC,2DAA2D;IAC3D,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IAChC,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,uDAAuD;IACvD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IACpC,wFAAwF;IACxF,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,sBAAsB;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,MAAM,EACN,QAAgB,EAChB,OAAO,EACP,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,SAAS,GACV,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CA0HjC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useRef, useState } from 'react';
|
|
3
|
+
import { useTranslation } from '@molecule/app-react';
|
|
4
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
5
|
+
/**
|
|
6
|
+
* Drag-drop + click-to-browse file upload zone. Pure UI — apps handle
|
|
7
|
+
* the actual upload.
|
|
8
|
+
*
|
|
9
|
+
* Rejects files exceeding `maxSize` or not matching `accept` (best-effort
|
|
10
|
+
* extension/MIME check) via `onRejected`.
|
|
11
|
+
* @param props - Component props (see {@link FileDropzoneProps}).
|
|
12
|
+
*/
|
|
13
|
+
export function FileDropzone({ onFiles, accept, multiple = false, maxSize, onRejected, children, disabled, className, }) {
|
|
14
|
+
const cm = getClassMap();
|
|
15
|
+
const { t } = useTranslation();
|
|
16
|
+
const [dragging, setDragging] = useState(false);
|
|
17
|
+
const inputRef = useRef(null);
|
|
18
|
+
const filter = useCallback((raw) => {
|
|
19
|
+
const arr = Array.from(raw);
|
|
20
|
+
const kept = [];
|
|
21
|
+
const rejected = [];
|
|
22
|
+
for (const f of arr) {
|
|
23
|
+
if (maxSize && f.size > maxSize) {
|
|
24
|
+
rejected.push(f);
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
// cheap accept check
|
|
28
|
+
if (accept) {
|
|
29
|
+
const okByExt = accept
|
|
30
|
+
.split(',')
|
|
31
|
+
.some((a) => a.trim() &&
|
|
32
|
+
f.name.toLowerCase().endsWith(a.trim().toLowerCase().replace(/^\./, '.')));
|
|
33
|
+
const okByMime = accept
|
|
34
|
+
.split(',')
|
|
35
|
+
.some((a) => a.trim() &&
|
|
36
|
+
f.type &&
|
|
37
|
+
(f.type === a.trim() ||
|
|
38
|
+
(a.trim().endsWith('/*') && f.type.startsWith(a.trim().replace('/*', '/')))));
|
|
39
|
+
if (!okByExt && !okByMime && accept !== '*') {
|
|
40
|
+
rejected.push(f);
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
kept.push(f);
|
|
45
|
+
}
|
|
46
|
+
return { kept, rejected };
|
|
47
|
+
}, [accept, maxSize]);
|
|
48
|
+
/**
|
|
49
|
+
* Filters the given file list and dispatches kept/rejected files to callbacks.
|
|
50
|
+
* @param list
|
|
51
|
+
*/
|
|
52
|
+
function dispatch(list) {
|
|
53
|
+
const { kept, rejected } = filter(list);
|
|
54
|
+
if (kept.length > 0)
|
|
55
|
+
onFiles(multiple ? kept : [kept[0]]);
|
|
56
|
+
if (rejected.length > 0)
|
|
57
|
+
onRejected?.(rejected);
|
|
58
|
+
}
|
|
59
|
+
return (_jsxs("div", { onDragOver: (e) => {
|
|
60
|
+
if (!disabled) {
|
|
61
|
+
e.preventDefault();
|
|
62
|
+
setDragging(true);
|
|
63
|
+
}
|
|
64
|
+
}, onDragLeave: () => setDragging(false), onDrop: (e) => {
|
|
65
|
+
e.preventDefault();
|
|
66
|
+
setDragging(false);
|
|
67
|
+
if (!disabled && e.dataTransfer?.files)
|
|
68
|
+
dispatch(e.dataTransfer.files);
|
|
69
|
+
}, onClick: () => !disabled && inputRef.current?.click(), onKeyDown: (e) => {
|
|
70
|
+
// role="button" gets no native keyboard activation — wire Enter/Space
|
|
71
|
+
// to open the file dialog so keyboard users can browse (preventDefault
|
|
72
|
+
// stops Space from scrolling the page).
|
|
73
|
+
if (disabled)
|
|
74
|
+
return;
|
|
75
|
+
if (e.key === 'Enter' || e.key === ' ' || e.key === 'Spacebar') {
|
|
76
|
+
e.preventDefault();
|
|
77
|
+
inputRef.current?.click();
|
|
78
|
+
}
|
|
79
|
+
}, "data-mol-id": "file-dropzone", role: "button", tabIndex: 0, "aria-disabled": disabled, className: cm.cn(cm.flex({ direction: 'col', align: 'center', justify: 'center' }), cm.sp('p', 6), cm.textCenter, !disabled ? cm.cursorPointer : undefined, className), style: {
|
|
80
|
+
border: `2px dashed rgba(0,0,0,${dragging ? 0.4 : 0.15})`,
|
|
81
|
+
borderRadius: 12,
|
|
82
|
+
minHeight: 140,
|
|
83
|
+
background: dragging ? 'rgba(0,0,0,0.02)' : undefined,
|
|
84
|
+
}, children: [_jsx("input", { ref: inputRef, type: "file", accept: accept, multiple: multiple, disabled: disabled, onChange: (e) => e.target.files && dispatch(e.target.files), style: { display: 'none' } }), children ?? (_jsxs(_Fragment, { children: [_jsx("p", { className: cm.cn(cm.textSize('sm'), cm.fontWeight('semibold')), children: t('fileDropzone.dropHere', {}, { defaultValue: 'Drop files here or click to browse' }) }), accept && (_jsx("p", { className: cm.cn(cm.textSize('xs'), cm.sp('mt', 1)), children: t('fileDropzone.accepts', { accept }, { defaultValue: `Accepts: ${accept}` }) }))] }))] }));
|
|
85
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File dropzone — drag-drop + click-to-browse file picker with
|
|
3
|
+
* accept / max-size filtering. Pure UI: it emits the chosen `File[]`
|
|
4
|
+
* and the host app performs the actual upload.
|
|
5
|
+
*
|
|
6
|
+
* Exports `<FileDropzone>` and its `FileDropzoneProps`.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { FileDropzone } from '@molecule/app-file-dropzone-react'
|
|
11
|
+
*
|
|
12
|
+
* function AvatarUpload() {
|
|
13
|
+
* return (
|
|
14
|
+
* <FileDropzone
|
|
15
|
+
* accept="image/*"
|
|
16
|
+
* multiple={false}
|
|
17
|
+
* maxSize={5 * 1024 * 1024}
|
|
18
|
+
* onFiles={(files) => uploadAvatar(files[0])}
|
|
19
|
+
* onRejected={(files) => showError(files[0].name)}
|
|
20
|
+
* />
|
|
21
|
+
* )
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* With `multiple={false}` (the default) only the FIRST accepted file is
|
|
27
|
+
* delivered to `onFiles`, even when the user drops several at once.
|
|
28
|
+
*
|
|
29
|
+
* The `accept` filter is a best-effort client-side check (file
|
|
30
|
+
* extension or MIME prefix match) — treat it as UX sugar and always
|
|
31
|
+
* re-validate on the server. Files failing `accept` or `maxSize` go to
|
|
32
|
+
* `onRejected` (both rejection causes arrive in the same callback).
|
|
33
|
+
*
|
|
34
|
+
* Pass `children` to replace the default "Drop files here or click to
|
|
35
|
+
* browse" copy; the default copy translates via
|
|
36
|
+
* `@molecule/app-locales-file-dropzone`.
|
|
37
|
+
*
|
|
38
|
+
* The zone is a keyboard-activatable `role="button"` (`tabIndex={0}`):
|
|
39
|
+
* pressing Enter or Space opens the native file dialog, matching a click.
|
|
40
|
+
*
|
|
41
|
+
* @module
|
|
42
|
+
*/
|
|
43
|
+
export * from './FileDropzone.js';
|
|
44
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,cAAc,mBAAmB,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File dropzone — drag-drop + click-to-browse file picker with
|
|
3
|
+
* accept / max-size filtering. Pure UI: it emits the chosen `File[]`
|
|
4
|
+
* and the host app performs the actual upload.
|
|
5
|
+
*
|
|
6
|
+
* Exports `<FileDropzone>` and its `FileDropzoneProps`.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { FileDropzone } from '@molecule/app-file-dropzone-react'
|
|
11
|
+
*
|
|
12
|
+
* function AvatarUpload() {
|
|
13
|
+
* return (
|
|
14
|
+
* <FileDropzone
|
|
15
|
+
* accept="image/*"
|
|
16
|
+
* multiple={false}
|
|
17
|
+
* maxSize={5 * 1024 * 1024}
|
|
18
|
+
* onFiles={(files) => uploadAvatar(files[0])}
|
|
19
|
+
* onRejected={(files) => showError(files[0].name)}
|
|
20
|
+
* />
|
|
21
|
+
* )
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* With `multiple={false}` (the default) only the FIRST accepted file is
|
|
27
|
+
* delivered to `onFiles`, even when the user drops several at once.
|
|
28
|
+
*
|
|
29
|
+
* The `accept` filter is a best-effort client-side check (file
|
|
30
|
+
* extension or MIME prefix match) — treat it as UX sugar and always
|
|
31
|
+
* re-validate on the server. Files failing `accept` or `maxSize` go to
|
|
32
|
+
* `onRejected` (both rejection causes arrive in the same callback).
|
|
33
|
+
*
|
|
34
|
+
* Pass `children` to replace the default "Drop files here or click to
|
|
35
|
+
* browse" copy; the default copy translates via
|
|
36
|
+
* `@molecule/app-locales-file-dropzone`.
|
|
37
|
+
*
|
|
38
|
+
* The zone is a keyboard-activatable `role="button"` (`tabIndex={0}`):
|
|
39
|
+
* pressing Enter or Space opens the native file dialog, matching a click.
|
|
40
|
+
*
|
|
41
|
+
* @module
|
|
42
|
+
*/
|
|
43
|
+
export * from './FileDropzone.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@molecule/app-file-dropzone-react",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Drag-drop file upload area with click fallback and preview slot",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"test": "vitest run",
|
|
11
|
+
"test:watch": "vitest"
|
|
12
|
+
},
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"molecule",
|
|
24
|
+
"file-dropzone",
|
|
25
|
+
"react"
|
|
26
|
+
],
|
|
27
|
+
"license": "Apache-2.0",
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@molecule/app-react": "^1.0.0",
|
|
30
|
+
"@molecule/app-ui": "^1.0.0",
|
|
31
|
+
"@molecule/app-ui-react": "^1.0.0",
|
|
32
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@molecule/app-react": "1.0.0",
|
|
36
|
+
"@molecule/app-ui": "1.0.0",
|
|
37
|
+
"@molecule/app-ui-react": "1.0.0",
|
|
38
|
+
"@testing-library/react": "16.3.2",
|
|
39
|
+
"@types/node": "26.1.2",
|
|
40
|
+
"@types/react": "19.2.17",
|
|
41
|
+
"@types/react-dom": "19.2.3",
|
|
42
|
+
"jsdom": "30.0.1",
|
|
43
|
+
"react": "19.2.8",
|
|
44
|
+
"react-dom": "19.2.8",
|
|
45
|
+
"typescript": "6.0.3",
|
|
46
|
+
"vitest": "4.1.10"
|
|
47
|
+
}
|
|
48
|
+
}
|