@react-typed-forms/schemas 17.0.1 → 17.1.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/lib/controlRender.d.ts +1 -0
- package/lib/index.cjs +2 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
- package/src/controlRender.tsx +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-typed-forms/schemas",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.cjs",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"clsx": "^1 || ^2",
|
|
35
35
|
"uuid": "^10.0.0",
|
|
36
36
|
"jsonata": "^2.0.4",
|
|
37
|
-
"@astroapps/forms-core": "^2.0
|
|
37
|
+
"@astroapps/forms-core": "^2.1.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": "^18.2.0 || ^19",
|
package/src/controlRender.tsx
CHANGED
|
@@ -422,6 +422,7 @@ export interface DisplayRendererProps {
|
|
|
422
422
|
*/
|
|
423
423
|
style?: React.CSSProperties;
|
|
424
424
|
inline?: boolean;
|
|
425
|
+
noSelection?: boolean | null;
|
|
425
426
|
}
|
|
426
427
|
|
|
427
428
|
export interface ParentRendererProps {
|
|
@@ -696,13 +697,14 @@ export function renderControlLayout(
|
|
|
696
697
|
}
|
|
697
698
|
if (isDisplayControl(c)) {
|
|
698
699
|
const data = c.displayData ?? {};
|
|
699
|
-
const displayProps = {
|
|
700
|
+
const displayProps: DisplayRendererProps = {
|
|
700
701
|
data,
|
|
701
702
|
className: rendererClass(styleClass, c.styleClass),
|
|
702
703
|
textClass: rendererClass(textClass, c.textClass),
|
|
703
704
|
style,
|
|
704
705
|
dataContext,
|
|
705
706
|
inline,
|
|
707
|
+
noSelection: c.noSelection,
|
|
706
708
|
};
|
|
707
709
|
if (data.type === DisplayDataType.Custom && customDisplay) {
|
|
708
710
|
return {
|