@jsonforms/vanilla-renderers
Advanced tools
Comparing version 3.0.0-beta.2 to 3.0.0-beta.3
/// <reference types="react" /> | ||
import { ArrayControlProps } from '@jsonforms/core'; | ||
import { VanillaRendererProps } from '../../index'; | ||
export declare const ArrayControl: ({ classNames, data, label, path, schema, addItem, uischema, uischemas, renderers }: ArrayControlProps & VanillaRendererProps) => JSX.Element; | ||
export declare const ArrayControl: ({ classNames, data, label, path, schema, addItem, uischema, uischemas, renderers, rootSchema }: ArrayControlProps & VanillaRendererProps) => JSX.Element; |
@@ -567,4 +567,4 @@ 'use strict'; | ||
var ArrayControl = function (_a) { | ||
var classNames = _a.classNames, data = _a.data, label = _a.label, path = _a.path, schema = _a.schema, addItem = _a.addItem, uischema = _a.uischema, uischemas = _a.uischemas, renderers = _a.renderers; | ||
var childUiSchema = React.useMemo(function () { return core.findUISchema(uischemas, schema, uischema.scope, path); }, [uischemas, schema, uischema.scope, path]); | ||
var classNames = _a.classNames, data = _a.data, label = _a.label, path = _a.path, schema = _a.schema, addItem = _a.addItem, uischema = _a.uischema, uischemas = _a.uischemas, renderers = _a.renderers, rootSchema = _a.rootSchema; | ||
var childUiSchema = React.useMemo(function () { return core.findUISchema(uischemas, schema, uischema.scope, path, undefined, uischema, rootSchema); }, [uischemas, schema, uischema.scope, path, uischema, rootSchema]); | ||
return (React__default["default"].createElement("div", { className: classNames.wrapper }, | ||
@@ -571,0 +571,0 @@ React__default["default"].createElement("fieldset", { className: classNames.fieldSet }, |
@@ -464,4 +464,4 @@ import React, { useContext, useMemo, useState } from 'react'; | ||
const ArrayControl = ({ classNames, data, label, path, schema, addItem, uischema, uischemas, renderers }) => { | ||
const childUiSchema = useMemo(() => findUISchema(uischemas, schema, uischema.scope, path), [uischemas, schema, uischema.scope, path]); | ||
const ArrayControl = ({ classNames, data, label, path, schema, addItem, uischema, uischemas, renderers, rootSchema }) => { | ||
const childUiSchema = useMemo(() => findUISchema(uischemas, schema, uischema.scope, path, undefined, uischema, rootSchema), [uischemas, schema, uischema.scope, path, uischema, rootSchema]); | ||
return (React.createElement("div", { className: classNames.wrapper }, | ||
@@ -468,0 +468,0 @@ React.createElement("fieldset", { className: classNames.fieldSet }, |
{ | ||
"name": "@jsonforms/vanilla-renderers", | ||
"version": "3.0.0-beta.2", | ||
"version": "3.0.0-beta.3", | ||
"description": "Default Renderer Set for JSON Forms", | ||
@@ -39,4 +39,4 @@ "repository": "https://github.com/eclipsesource/jsonforms", | ||
"peerDependencies": { | ||
"@jsonforms/core": "3.0.0-beta.2", | ||
"@jsonforms/react": "3.0.0-beta.2", | ||
"@jsonforms/core": "3.0.0-beta.3", | ||
"@jsonforms/react": "3.0.0-beta.3", | ||
"react": "^16.12.0 || ^17.0.0 || ^18.0.0" | ||
@@ -46,4 +46,4 @@ }, | ||
"@istanbuljs/nyc-config-typescript": "^1.0.2", | ||
"@jsonforms/core": "^3.0.0-beta.2", | ||
"@jsonforms/react": "^3.0.0-beta.2", | ||
"@jsonforms/core": "^3.0.0-beta.3", | ||
"@jsonforms/react": "^3.0.0-beta.3", | ||
"@types/enzyme": "^3.10.3", | ||
@@ -102,3 +102,3 @@ "@wojtekmaj/enzyme-adapter-react-17": "^0.6.3", | ||
}, | ||
"gitHead": "8e9c14dcf049ee4b31baf9c40a86b394cba33139" | ||
"gitHead": "78ef46d070f9c5ac1db1f04772db1293858ce2a4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1520337
11796