@chayns-components/maps 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 +58 -0
  2. package/package.json +5 -4
package/AI_USAGE.md ADDED
@@ -0,0 +1,58 @@
1
+ # @chayns-components/maps
2
+
3
+ React component package providing `PositionInput` for chayns applications.
4
+
5
+ Documented components: `PositionInput`.
6
+
7
+ ## Import
8
+
9
+ ```ts
10
+ import { PositionInput } from '@chayns-components/maps';
11
+ ```
12
+
13
+ ## Typical Usage
14
+
15
+ ```tsx
16
+ <PositionInput
17
+ apiToken={'AIzaSyCicm5YKKdfym2UtjVwuoSvMAL9uKD_yxo'}
18
+ searchPlaceholder={'Stadt suchen'}
19
+ />
20
+ ```
21
+
22
+ ## PositionInput
23
+
24
+ `PositionInput` is exported by `@chayns-components/maps` and should be imported from the public package entry point.
25
+
26
+ ### Import
27
+
28
+ ```ts
29
+ import { PositionInput } from '@chayns-components/maps';
30
+ ```
31
+
32
+ ### Examples
33
+
34
+ #### General
35
+
36
+ ```tsx
37
+ <PositionInput
38
+ apiToken={'AIzaSyCicm5YKKdfym2UtjVwuoSvMAL9uKD_yxo'}
39
+ searchPlaceholder={'Stadt suchen'}
40
+ />
41
+ ```
42
+
43
+ ### Props
44
+
45
+ No prop documentation available.
46
+
47
+ ### Types
48
+
49
+ No additional exported types documented.
50
+
51
+ ### Usage Notes
52
+
53
+ - Import `PositionInput` directly from `@chayns-components/maps` instead of internal source paths.
54
+ - Start with one of the documented Storybook examples and adapt the props incrementally for your use case.
55
+
56
+ ### Anti Patterns
57
+
58
+ - Avoid imports from internal paths such as `@chayns-components/maps/src/...`; always use the public package export.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chayns-components/maps",
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",
@@ -71,7 +72,7 @@
71
72
  "typescript": "^5.9.3"
72
73
  },
73
74
  "dependencies": {
74
- "@chayns-components/core": "^5.0.32",
75
+ "@chayns-components/core": "^5.0.34",
75
76
  "@googlemaps/react-wrapper": "^1.2.0",
76
77
  "@googlemaps/typescript-guards": "^2.0.3",
77
78
  "@react-google-maps/api": "^2.20.8",
@@ -87,5 +88,5 @@
87
88
  "publishConfig": {
88
89
  "access": "public"
89
90
  },
90
- "gitHead": "e7d1ba2399532df23a225998585a751fee352cfe"
91
+ "gitHead": "7c7c2d7dacbc7c8031f3bcef885e4f63b8f49b1a"
91
92
  }