react-ag-psd-psdtool 1.1.13 → 1.2.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 +15 -6
- package/dist/src/PsdTool.d.ts +2 -1
- package/dist/src/main.d.ts +3 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
PSDTool-like React Component (🔴LIVE Demo : https://34j.github.io/react-ag-psd-psdtool/)
|
|
20
20
|
|
|
21
21
|
## Installation
|
|
22
22
|
|
|
@@ -26,11 +26,20 @@ npm install react-ag-psd-psdtool
|
|
|
26
26
|
|
|
27
27
|
## Usage
|
|
28
28
|
|
|
29
|
-
```
|
|
30
|
-
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
```tsx
|
|
30
|
+
import { StrictMode } from 'react'
|
|
31
|
+
import { createRoot } from 'react-dom/client'
|
|
32
|
+
import psdUrl from './ccchu.psd?url'
|
|
33
|
+
import PsdTool from './PsdTool.tsx'
|
|
34
|
+
import 'bootstrap'
|
|
35
|
+
import 'bootstrap/dist/css/bootstrap.min.css'
|
|
36
|
+
import './main.css'
|
|
37
|
+
|
|
38
|
+
createRoot(document.getElementById('root')!).render(
|
|
39
|
+
<StrictMode>
|
|
40
|
+
<PsdTool url={psdUrl} />
|
|
41
|
+
</StrictMode>,
|
|
42
|
+
)
|
|
34
43
|
```
|
|
35
44
|
|
|
36
45
|
[build-img]:https://github.com/34j/react-ag-psd-psdtool/actions/workflows/release.yml/badge.svg
|
package/dist/src/PsdTool.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { PSDToolJSONSchema } from 'ag-psd-psdtool';
|
|
1
2
|
import 'bootstrap';
|
|
2
3
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
3
4
|
import 'bootstrap/dist/css/bootstrap.css';
|
|
4
5
|
interface PsdToolProps {
|
|
5
6
|
url?: string;
|
|
6
|
-
onLoad?: (schema:
|
|
7
|
+
onLoad?: (schema: PSDToolJSONSchema) => void;
|
|
7
8
|
onChange?: (data: Record<string, unknown>) => void;
|
|
8
9
|
}
|
|
9
10
|
declare function PsdTool({ url, onLoad, onChange }: PsdToolProps): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-ag-psd-psdtool",
|
|
3
3
|
"type": "commonjs",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"description": "PSDTool-like React component using ag-psd-psdtool",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "34j"
|
|
@@ -48,13 +48,14 @@
|
|
|
48
48
|
"@rjsf/utils": "6.4.1",
|
|
49
49
|
"@rjsf/validator-ajv8": "6.4.1",
|
|
50
50
|
"ag-psd": "^30.1.0",
|
|
51
|
-
"ag-psd-psdtool": "^1.1.
|
|
51
|
+
"ag-psd-psdtool": "^1.1.12",
|
|
52
52
|
"bootstrap": "^5.3.8",
|
|
53
53
|
"react": "^19.2.4",
|
|
54
54
|
"react-bootstrap": "^2.10.10",
|
|
55
55
|
"react-code-blocks": "^0.1.6",
|
|
56
56
|
"react-dom": "^19.2.4",
|
|
57
57
|
"react-dropzone": "^15.0.0",
|
|
58
|
+
"react-error-boundary": "^6.1.1",
|
|
58
59
|
"react-icons": "^5.6.0"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|