schema-components 1.2.0 → 1.3.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## [1.3.1](https://github.com/Mearman/schema-components/compare/v1.3.0...v1.3.1) (2026-05-14)
2
+
3
+ ### CI
4
+
5
+ * add storybook component test job ([4441151](https://github.com/Mearman/schema-components/commit/4441151b9d2ac7255f8116235a9793440841d462))
6
+
7
+ ## [1.3.0](https://github.com/Mearman/schema-components/compare/v1.2.0...v1.3.0) (2026-05-14)
8
+
9
+ ### Features
10
+
11
+ * add storybook testing with vitest addon, a11y, and browser mode ([e32944e](https://github.com/Mearman/schema-components/commit/e32944edf2f54b04d50bcf93ffc678e77d5615e4))
12
+
13
+ ### Bug Fixes
14
+
15
+ * strip children from mui stub void elements ([49de9c6](https://github.com/Mearman/schema-components/commit/49de9c6f48cdc30c37fbdcfad561b95e74e7db7b))
16
+
17
+ ### Chores
18
+
19
+ * exclude errors stories from component tests ([7b04129](https://github.com/Mearman/schema-components/commit/7b04129f9e3a58edecfd65560dba5b6ba7ffbd76))
20
+
1
21
  ## [1.2.0](https://github.com/Mearman/schema-components/compare/v1.1.0...v1.2.0) (2026-05-14)
2
22
 
3
23
  ### Features
@@ -174,10 +174,15 @@ function renderArrayContainer(props) {
174
174
  * <SchemaComponent ... />
175
175
  * </MuiProvider>
176
176
  */
177
- let MuiTextField = (props) => /* @__PURE__ */ jsx("input", { ...props });
177
+ function stripChildren(props) {
178
+ const rest = { ...props };
179
+ if ("children" in rest) delete rest.children;
180
+ return rest;
181
+ }
182
+ let MuiTextField = (props) => /* @__PURE__ */ jsx("input", { ...stripChildren(props) });
178
183
  let MuiCheckbox = (props) => /* @__PURE__ */ jsx("input", {
179
184
  type: "checkbox",
180
- ...props
185
+ ...stripChildren(props)
181
186
  });
182
187
  let MuiTypography = (props) => /* @__PURE__ */ jsx("span", { ...props });
183
188
  let MuiBox = (props) => /* @__PURE__ */ jsx("div", { ...props });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "schema-components",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "React components that render UI from Zod schemas, JSON Schema, and OpenAPI documents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -47,6 +47,7 @@
47
47
  "lint": "turbo run _lint",
48
48
  "lint:fix": "turbo run _lint:fix",
49
49
  "test": "turbo run _test",
50
+ "test-storybook": "vitest run --project=storybook",
50
51
  "test:coverage": "turbo run _test:coverage",
51
52
  "check": "turbo run _check",
52
53
  "validate": "turbo run _validate",
@@ -86,20 +87,27 @@
86
87
  "@commitlint/cli": "20.5.3",
87
88
  "@commitlint/config-conventional": "20.5.3",
88
89
  "@eslint/js": "10.0.1",
90
+ "@playwright/test": "1.59.1",
89
91
  "@semantic-release/changelog": "6.0.3",
90
92
  "@semantic-release/git": "10.0.1",
91
93
  "@semantic-release/github": "12.0.6",
94
+ "@storybook/addon-a11y": "10.3.6",
95
+ "@storybook/addon-vitest": "10.3.6",
92
96
  "@storybook/react": "10.3.6",
93
97
  "@storybook/react-vite": "10.3.6",
94
98
  "@types/node": "25.6.0",
95
99
  "@types/react": "19.2.14",
96
100
  "@types/react-dom": "19.2.3",
101
+ "@vitest/browser": "4.1.5",
102
+ "@vitest/browser-playwright": "4.1.5",
103
+ "@vitest/coverage-v8": "4.1.5",
97
104
  "conventional-changelog-conventionalcommits": "9.3.1",
98
105
  "eslint": "10.3.0",
99
106
  "eslint-config-prettier": "10.1.8",
100
107
  "eslint-plugin-prettier": "5.5.5",
101
108
  "husky": "9.1.7",
102
109
  "lint-staged": "17.0.2",
110
+ "playwright": "^1.59.1",
103
111
  "prettier": "3.8.3",
104
112
  "react": "19.2.6",
105
113
  "react-dom": "19.2.6",
@@ -111,6 +119,7 @@
111
119
  "typescript": "6.0.3",
112
120
  "typescript-eslint": "8.59.2",
113
121
  "vite": "^8.0.11",
122
+ "vitest": "4.1.5",
114
123
  "zod": "4.4.3"
115
124
  },
116
125
  "packageManager": "pnpm@10.33.1"