@chayns-components/person-finder 5.0.33 → 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 +109 -0
  2. package/package.json +5 -4
package/AI_USAGE.md ADDED
@@ -0,0 +1,109 @@
1
+ # @chayns-components/person-finder
2
+
3
+ React component package providing `PersonFinder` for chayns applications.
4
+
5
+ Documented components: `PersonFinder`.
6
+
7
+ ## Import
8
+
9
+ ```ts
10
+ import { PersonFinder } from '@chayns-components/person-finder';
11
+ ```
12
+
13
+ ## Typical Usage
14
+
15
+ ```tsx
16
+ <PersonFinder />
17
+ ```
18
+
19
+ ## PersonFinder
20
+
21
+ `PersonFinder` is exported by `@chayns-components/person-finder` and should be imported from the public package entry point.
22
+
23
+ ### Import
24
+
25
+ ```ts
26
+ import { PersonFinder } from '@chayns-components/person-finder';
27
+ ```
28
+
29
+ ### Examples
30
+
31
+ #### General
32
+
33
+ ```tsx
34
+ <PersonFinder />
35
+ ```
36
+
37
+ #### Rendered Inline
38
+
39
+ ```tsx
40
+ <PersonFinder
41
+ shouldRenderInline
42
+ />
43
+ ```
44
+
45
+ #### UACGroups
46
+
47
+ ```tsx
48
+ <PersonFinder
49
+ filterTypes={[PersonFinderFilterTypes.UAC]}
50
+ />
51
+ ```
52
+
53
+ #### With UACFilter
54
+
55
+ ```tsx
56
+ <PersonFinder
57
+ uacFilter={[{ groupId: -1 }]}
58
+ />
59
+ ```
60
+
61
+ #### With Own Entries
62
+
63
+ ```tsx
64
+ <PersonFinder
65
+ entries={[
66
+ {
67
+ type: PersonFinderFilterTypes.PERSON,
68
+ id: 'test1',
69
+ firstName: 'Test',
70
+ lastName: '1',
71
+ isVerified: false,
72
+ commonSites: 0,
73
+ },
74
+ {
75
+ type: PersonFinderFilterTypes.PERSON,
76
+ id: 'test2',
77
+ firstName: 'Test',
78
+ lastName: '2',
79
+ isVerified: false,
80
+ commonSites: 0,
81
+ },
82
+ {
83
+ type: PersonFinderFilterTypes.PERSON,
84
+ id: 'test3',
85
+ firstName: 'Test',
86
+ lastName: '3',
87
+ isVerified: false,
88
+ commonSites: 0,
89
+ },
90
+ ]}
91
+ />
92
+ ```
93
+
94
+ ### Props
95
+
96
+ No prop documentation available.
97
+
98
+ ### Types
99
+
100
+ No additional exported types documented.
101
+
102
+ ### Usage Notes
103
+
104
+ - Import `PersonFinder` directly from `@chayns-components/person-finder` instead of internal source paths.
105
+ - Start with one of the documented Storybook examples and adapt the props incrementally for your use case.
106
+
107
+ ### Anti Patterns
108
+
109
+ - Avoid imports from internal paths such as `@chayns-components/person-finder/src/...`; always use the public package export.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chayns-components/person-finder",
3
- "version": "5.0.33",
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",
@@ -71,7 +72,7 @@
71
72
  "typescript": "^5.9.3"
72
73
  },
73
74
  "dependencies": {
74
- "@chayns-components/core": "^5.0.33",
75
+ "@chayns-components/core": "^5.0.34",
75
76
  "@chayns/uac-service": "~0.0.62",
76
77
  "lodash.throttle": "^4.1.1",
77
78
  "uuid": "^10.0.0"
@@ -86,5 +87,5 @@
86
87
  "publishConfig": {
87
88
  "access": "public"
88
89
  },
89
- "gitHead": "5e41d9af042b3c272c8c08b67a9c9bf4911902f6"
90
+ "gitHead": "7c7c2d7dacbc7c8031f3bcef885e4f63b8f49b1a"
90
91
  }