@stapel/attributes-react 0.1.0 → 0.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/LICENSE +21 -0
- package/package.json +12 -12
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Stapel contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stapel/attributes-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "React value layer for stapel-attributes' dynamic feature types: a value-editor registry keyed on config.type (explicit registration > skin builtin > loud unsupported notice, with the submit blocked and the reason named), a client-side validation mirror that speaks the engine's own error.400.feature_* keys (pattern as fullmatch, string length in Unicode code points), DTO helpers for the {slug: {type, value}} wire shape, and display formatting. Zero visual opinion in the main entry; an opt-in /default subpath ships the antd editors for all ten builtin types plus <FeatureFields> and <FeatureBadges>.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -40,12 +40,6 @@
|
|
|
40
40
|
"README.md",
|
|
41
41
|
"manifest.json"
|
|
42
42
|
],
|
|
43
|
-
"scripts": {
|
|
44
|
-
"build": "tsc -p tsconfig.json",
|
|
45
|
-
"test": "tsc -p tsconfig.test.json && vitest run",
|
|
46
|
-
"lint": "eslint .",
|
|
47
|
-
"size": "size-limit"
|
|
48
|
-
},
|
|
49
43
|
"size-limit": [
|
|
50
44
|
{
|
|
51
45
|
"name": "index — the registry + mirror + DTO helpers must stay React-only: no antd",
|
|
@@ -84,9 +78,6 @@
|
|
|
84
78
|
},
|
|
85
79
|
"devDependencies": {
|
|
86
80
|
"@size-limit/preset-small-lib": "^11.2.0",
|
|
87
|
-
"@stapel/core": "workspace:^",
|
|
88
|
-
"@stapel/tokens": "workspace:^",
|
|
89
|
-
"@stapel/tokens-antd": "workspace:^",
|
|
90
81
|
"@testing-library/react": "^16.3.0",
|
|
91
82
|
"@types/react": "^19.1.0",
|
|
92
83
|
"@types/react-dom": "^19.1.0",
|
|
@@ -96,12 +87,21 @@
|
|
|
96
87
|
"react-dom": "^19.1.0",
|
|
97
88
|
"size-limit": "^11.2.0",
|
|
98
89
|
"typescript": "^5.8.3",
|
|
99
|
-
"vitest": "^3.2.4"
|
|
90
|
+
"vitest": "^3.2.4",
|
|
91
|
+
"@stapel/core": "^0.15.0",
|
|
92
|
+
"@stapel/tokens": "^0.5.0",
|
|
93
|
+
"@stapel/tokens-antd": "^0.5.0"
|
|
100
94
|
},
|
|
101
95
|
"engines": {
|
|
102
96
|
"node": ">=22"
|
|
103
97
|
},
|
|
104
98
|
"publishConfig": {
|
|
105
99
|
"access": "public"
|
|
100
|
+
},
|
|
101
|
+
"scripts": {
|
|
102
|
+
"build": "tsc -p tsconfig.json",
|
|
103
|
+
"test": "tsc -p tsconfig.test.json && vitest run",
|
|
104
|
+
"lint": "eslint .",
|
|
105
|
+
"size": "size-limit"
|
|
106
106
|
}
|
|
107
|
-
}
|
|
107
|
+
}
|