@chayns-components/gallery 5.0.32 → 5.0.34

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.
Files changed (2) hide show
  1. package/AI_USAGE.md +131 -0
  2. package/package.json +5 -4
package/AI_USAGE.md ADDED
@@ -0,0 +1,131 @@
1
+ # @chayns-components/gallery
2
+
3
+ React component package providing `Gallery` for chayns applications.
4
+
5
+ Documented components: `Gallery`.
6
+
7
+ ## Import
8
+
9
+ ```ts
10
+ import { Gallery } from '@chayns-components/gallery';
11
+ ```
12
+
13
+ ## Typical Usage
14
+
15
+ ```tsx
16
+ <Gallery
17
+ files={[
18
+ {
19
+ id: 'first-image',
20
+ file: {
21
+ id: '1',
22
+ url: 'https://tsimg.cloud/77896-21884/8aee1a304297729a4542b97325940a656a3da8f2.png',
23
+ },
24
+ },
25
+ {
26
+ id: 'second-image',
27
+ file: {
28
+ id: '2',
29
+ url: 'https://tsimg.cloud/77896-21884/54a117f35e5fb57520e64471461af5491c0eff06.png',
30
+ },
31
+ },
32
+ {
33
+ id: 'third-image',
34
+ file: {
35
+ id: '3',
36
+ url: 'https://tsimg.cloud/77896-21884/25399416f38c1d960f521a3530c8a2bc70a88bb9.png',
37
+ },
38
+ },
39
+ ]}
40
+ />
41
+ ```
42
+
43
+ ## Gallery
44
+
45
+ `Gallery` is exported by `@chayns-components/gallery` and should be imported from the public package entry point.
46
+
47
+ ### Import
48
+
49
+ ```ts
50
+ import { Gallery } from '@chayns-components/gallery';
51
+ ```
52
+
53
+ ### Examples
54
+
55
+ #### General
56
+
57
+ ```tsx
58
+ <Gallery
59
+ files={[
60
+ {
61
+ id: 'first-image',
62
+ file: {
63
+ id: '1',
64
+ url: 'https://tsimg.cloud/77896-21884/8aee1a304297729a4542b97325940a656a3da8f2.png',
65
+ },
66
+ },
67
+ {
68
+ id: 'second-image',
69
+ file: {
70
+ id: '2',
71
+ url: 'https://tsimg.cloud/77896-21884/54a117f35e5fb57520e64471461af5491c0eff06.png',
72
+ },
73
+ },
74
+ {
75
+ id: 'third-image',
76
+ file: {
77
+ id: '3',
78
+ url: 'https://tsimg.cloud/77896-21884/25399416f38c1d960f521a3530c8a2bc70a88bb9.png',
79
+ },
80
+ },
81
+ ]}
82
+ />
83
+ ```
84
+
85
+ #### Edit Mode
86
+
87
+ ```tsx
88
+ <Gallery
89
+ files={[
90
+ {
91
+ id: 'first-image',
92
+ file: {
93
+ id: '1',
94
+ url: 'https://tsimg.cloud/77896-21884/8aee1a304297729a4542b97325940a656a3da8f2.png',
95
+ },
96
+ },
97
+ {
98
+ id: 'second-image',
99
+ file: {
100
+ id: '2',
101
+ url: 'https://tsimg.cloud/77896-21884/54a117f35e5fb57520e64471461af5491c0eff06.png',
102
+ },
103
+ },
104
+ {
105
+ id: 'third-image',
106
+ file: {
107
+ id: '3',
108
+ url: 'https://tsimg.cloud/77896-21884/25399416f38c1d960f521a3530c8a2bc70a88bb9.png',
109
+ },
110
+ },
111
+ ]}
112
+ isEditMode
113
+ />
114
+ ```
115
+
116
+ ### Props
117
+
118
+ No prop documentation available.
119
+
120
+ ### Types
121
+
122
+ No additional exported types documented.
123
+
124
+ ### Usage Notes
125
+
126
+ - Import `Gallery` directly from `@chayns-components/gallery` instead of internal source paths.
127
+ - Start with one of the documented Storybook examples and adapt the props incrementally for your use case.
128
+
129
+ ### Anti Patterns
130
+
131
+ - Avoid imports from internal paths such as `@chayns-components/gallery/src/...`; always use the public package export.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chayns-components/gallery",
3
- "version": "5.0.32",
3
+ "version": "5.0.34",
4
4
  "description": "A set of beautiful React components for developing your own applications with chayns.",
5
5
  "sideEffects": false,
6
6
  "browserslist": [
@@ -33,7 +33,8 @@
33
33
  "test": "__tests__"
34
34
  },
35
35
  "files": [
36
- "lib"
36
+ "lib",
37
+ "AI_USAGE.md"
37
38
  ],
38
39
  "repository": {
39
40
  "type": "git",
@@ -70,7 +71,7 @@
70
71
  "typescript": "^5.9.3"
71
72
  },
72
73
  "dependencies": {
73
- "@chayns-components/core": "^5.0.32",
74
+ "@chayns-components/core": "^5.0.34",
74
75
  "uuid": "^10.0.0"
75
76
  },
76
77
  "peerDependencies": {
@@ -83,5 +84,5 @@
83
84
  "publishConfig": {
84
85
  "access": "public"
85
86
  },
86
- "gitHead": "e7d1ba2399532df23a225998585a751fee352cfe"
87
+ "gitHead": "7c7c2d7dacbc7c8031f3bcef885e4f63b8f49b1a"
87
88
  }