@texaryn/react-mui 0.4.1 → 0.4.2
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,5 +1,18 @@
|
|
|
1
1
|
# @texaryn/react-mui
|
|
2
2
|
|
|
3
|
+
## 0.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- eae5f41: Object children are keyed by property name, with `objectChildKey` from
|
|
8
|
+
`@texaryn/core`, so a field keeps its element and its focus when the form grows
|
|
9
|
+
ahead of it, for example when typing into a recursive object exposes the next
|
|
10
|
+
level.
|
|
11
|
+
- Updated dependencies [eae5f41]
|
|
12
|
+
- Updated dependencies [eae5f41]
|
|
13
|
+
- @texaryn/core@0.13.0
|
|
14
|
+
- @texaryn/react@0.5.3
|
|
15
|
+
|
|
3
16
|
## 0.4.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MuiObjectLayout.d.ts","sourceRoot":"","sources":["../../src/widgets/MuiObjectLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"MuiObjectLayout.d.ts","sourceRoot":"","sources":["../../src/widgets/MuiObjectLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;CACb;AAED,iBAAS,mBAAmB,CAAC,EAAE,IAAI,EAAE,EAAE,WAAW,qBA8BjD;AAED,eAAO,MAAM,eAAe,uDAG3B,CAAA"}
|
|
@@ -2,11 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Stack from '@mui/material/Stack';
|
|
4
4
|
import Typography from '@mui/material/Typography';
|
|
5
|
+
import { objectChildKey } from '@texaryn/core';
|
|
5
6
|
import { NodeRenderer, useObjectGroup, useRendererContext } from '@texaryn/react';
|
|
6
7
|
function MuiObjectLayoutImpl({ node }) {
|
|
7
8
|
const { document, registry } = useRendererContext();
|
|
8
9
|
const { nested, title, children } = useObjectGroup(node);
|
|
9
|
-
const rendered = children.map((child) => (_jsx(NodeRenderer, { node: child, document: document, registry: registry }, child
|
|
10
|
+
const rendered = children.map((child) => (_jsx(NodeRenderer, { node: child, document: document, registry: registry }, objectChildKey(child))));
|
|
10
11
|
if (!nested) {
|
|
11
12
|
return _jsx(Stack, { spacing: 2, children: rendered });
|
|
12
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MuiObjectLayout.js","sourceRoot":"","sources":["../../src/widgets/MuiObjectLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,MAAM,qBAAqB,CAAA;AACvC,OAAO,UAAU,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"MuiObjectLayout.js","sourceRoot":"","sources":["../../src/widgets/MuiObjectLayout.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,MAAM,qBAAqB,CAAA;AACvC,OAAO,UAAU,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAMjF,SAAS,mBAAmB,CAAC,EAAE,IAAI,EAAe;IAChD,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,kBAAkB,EAAE,CAAA;IACnD,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,CAAA;I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4.2",
|
|
4
4
|
"description": "Material UI v9 widgets for Texaryn: MUI components on top of @texaryn/react",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"CHANGELOG.md"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@texaryn/core": "^0.
|
|
44
|
+
"@texaryn/core": "^0.13.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@mui/material": "^9.0.0",
|
|
48
48
|
"react": ">=18.0.0",
|
|
49
|
-
"@texaryn/react": "^0.5.
|
|
49
|
+
"@texaryn/react": "^0.5.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@emotion/react": "^11.14.0",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"jsdom": "^25.0.0",
|
|
58
58
|
"react": "^19.0.0",
|
|
59
59
|
"react-dom": "^19.0.0",
|
|
60
|
-
"@texaryn/
|
|
61
|
-
"@texaryn/
|
|
60
|
+
"@texaryn/react": "0.5.3",
|
|
61
|
+
"@texaryn/schema-json": "0.7.0"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "tsc --build"
|