react-ag-psd-psdtool 1.1.13 → 1.3.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 CHANGED
@@ -10,13 +10,13 @@
10
10
 
11
11
  ---
12
12
 
13
- **📘Documentation**: [https://34j.github.io/react-ag-psd-psdtool/](https://34j.github.io/react-ag-psd-psdtool/)
13
+ **📘Documentation**: [https://34j.github.io/react-ag-psd-psdtool/docs/](https://34j.github.io/react-ag-psd-psdtool/docs/)
14
14
 
15
15
  **📦️NPM Package**: [https://www.npmjs.com/package/react-ag-psd-psdtool](https://www.npmjs.com/package/react-ag-psd-psdtool)
16
16
 
17
17
  ---
18
18
 
19
- TODO: Project Description.
19
+ [PSDTool](https://oov.github.io/psdtool/)([kit](https://oov.github.io/aviutl_psdtoolkit/index.html))-like React Component built on top of [ag-psd-psdtool](https://github.com/34j/ag-psd-psdtool) (🔴LIVE Demo : [https://34j.github.io/react-ag-psd-psdtool/](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
- ```ts
30
- import { myPackage } from 'react-ag-psd-psdtool'
31
-
32
- myPackage('hello')
33
- // => 'hello from my package'
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
@@ -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: Record<string, unknown>) => void;
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;
@@ -0,0 +1,3 @@
1
+ import 'bootstrap';
2
+ import 'bootstrap/dist/css/bootstrap.min.css';
3
+ import './main.css';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-ag-psd-psdtool",
3
3
  "type": "commonjs",
4
- "version": "1.1.13",
4
+ "version": "1.3.0",
5
5
  "description": "PSDTool-like React component using ag-psd-psdtool",
6
6
  "author": {
7
7
  "name": "34j"
@@ -48,14 +48,17 @@
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.10",
51
+ "ag-psd-psdtool": "^1.1.12",
52
+ "ajv": "^8.18.0",
52
53
  "bootstrap": "^5.3.8",
53
54
  "react": "^19.2.4",
54
55
  "react-bootstrap": "^2.10.10",
55
56
  "react-code-blocks": "^0.1.6",
56
57
  "react-dom": "^19.2.4",
57
58
  "react-dropzone": "^15.0.0",
58
- "react-icons": "^5.6.0"
59
+ "react-error-boundary": "^6.1.1",
60
+ "react-icons": "^5.6.0",
61
+ "react-zoom-pan-pinch": "^3.7.0"
59
62
  },
60
63
  "devDependencies": {
61
64
  "@antfu/eslint-config": "7.7.3",