react-ag-psd-psdtool 1.1.12 → 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 CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  ---
18
18
 
19
- TODO: Project Description.
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
- ```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';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Lorem ipsum.
3
+ */
4
+ export declare const mySubmodule: (taco?: string) => string;
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.12",
4
+ "version": "1.2.0",
5
5
  "description": "PSDTool-like React component using ag-psd-psdtool",
6
6
  "author": {
7
7
  "name": "34j"
@@ -47,37 +47,38 @@
47
47
  "@rjsf/react-bootstrap": "6.4.1",
48
48
  "@rjsf/utils": "6.4.1",
49
49
  "@rjsf/validator-ajv8": "6.4.1",
50
- "ag-psd": "^28.4.1",
51
- "ag-psd-psdtool": "^1.1.4",
50
+ "ag-psd": "^30.1.0",
51
+ "ag-psd-psdtool": "^1.1.12",
52
52
  "bootstrap": "^5.3.8",
53
- "react": "^19.2.0",
53
+ "react": "^19.2.4",
54
54
  "react-bootstrap": "^2.10.10",
55
55
  "react-code-blocks": "^0.1.6",
56
- "react-dom": "^19.2.0",
56
+ "react-dom": "^19.2.4",
57
57
  "react-dropzone": "^15.0.0",
58
- "react-icons": "^5.5.0"
58
+ "react-error-boundary": "^6.1.1",
59
+ "react-icons": "^5.6.0"
59
60
  },
60
61
  "devDependencies": {
61
- "@antfu/eslint-config": "6.3.0",
62
+ "@antfu/eslint-config": "7.7.3",
62
63
  "@semantic-release/changelog": "6.0.3",
63
64
  "@semantic-release/git": "10.0.1",
64
65
  "@tsconfig/strictest": "2.0.8",
65
- "@types/node": "24.12.0",
66
+ "@types/node": "25.5.0",
66
67
  "@types/react": "19.2.14",
67
68
  "@types/react-dom": "19.2.3",
68
- "@typescript-eslint/eslint-plugin": "8.57.0",
69
- "@vitejs/plugin-react": "5.1.4",
70
- "@vitest/browser": "4.0.18",
71
- "@vitest/browser-playwright": "4.0.18",
72
- "@vitest/coverage-v8": "4.0.18",
73
- "eslint": "10.0.3",
69
+ "@typescript-eslint/eslint-plugin": "8.57.1",
70
+ "@vitejs/plugin-react": "6.0.1",
71
+ "@vitest/browser": "4.1.0",
72
+ "@vitest/browser-playwright": "4.1.0",
73
+ "@vitest/coverage-v8": "4.1.0",
74
+ "eslint": "10.1.0",
74
75
  "npm-run-all2": "8.0.4",
75
76
  "playwright": "1.58.2",
76
77
  "semantic-release": "25.0.3",
77
78
  "typedoc": "0.28.17",
78
79
  "typescript": "5.9.3",
79
- "vite": "7.3.1",
80
- "vitest": "4.0.18"
80
+ "vite": "8.0.1",
81
+ "vitest": "4.1.0"
81
82
  },
82
83
  "typedocOptions": {
83
84
  "entryPoints": [