@jsonforms/vanilla-renderers
Advanced tools
Comparing version 3.1.0 to 3.1.1-alpha.0
import React from 'react'; | ||
import { CellProps, RankedTester } from '@jsonforms/core'; | ||
import type { VanillaRendererProps } from '../index'; | ||
export declare const DateCell: (props: CellProps & VanillaRendererProps) => JSX.Element; | ||
export declare const DateCell: (props: CellProps & VanillaRendererProps) => React.JSX.Element; | ||
/** | ||
@@ -6,0 +6,0 @@ * Default tester for date controls. |
import React from 'react'; | ||
import { CellProps, RankedTester } from '@jsonforms/core'; | ||
import type { VanillaRendererProps } from '../index'; | ||
export declare const DateTimeCell: (props: CellProps & VanillaRendererProps) => JSX.Element; | ||
export declare const DateTimeCell: (props: CellProps & VanillaRendererProps) => React.JSX.Element; | ||
/** | ||
@@ -6,0 +6,0 @@ * Default tester for datetime controls. |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
import type { VanillaRendererProps } from '../index'; | ||
export declare const EnumCell: (props: EnumCellProps & VanillaRendererProps & TranslateProps) => JSX.Element; | ||
export declare const EnumCell: (props: EnumCellProps & VanillaRendererProps & TranslateProps) => React.JSX.Element; | ||
/** | ||
@@ -8,0 +8,0 @@ * Default tester for enum controls. |
import React from 'react'; | ||
import { CellProps, RankedTester } from '@jsonforms/core'; | ||
import type { VanillaRendererProps } from '../index'; | ||
export declare const IntegerCell: (props: CellProps & VanillaRendererProps) => JSX.Element; | ||
export declare const IntegerCell: (props: CellProps & VanillaRendererProps) => React.JSX.Element; | ||
/** | ||
@@ -6,0 +6,0 @@ * Default tester for integer controls. |
import React from 'react'; | ||
import { CellProps, RankedTester } from '@jsonforms/core'; | ||
import type { VanillaRendererProps } from '../index'; | ||
export declare const NumberCell: (props: CellProps & VanillaRendererProps) => JSX.Element; | ||
export declare const NumberCell: (props: CellProps & VanillaRendererProps) => React.JSX.Element; | ||
/** | ||
@@ -6,0 +6,0 @@ * Default tester for number controls. |
import React from 'react'; | ||
import { CellProps, Formatted, RankedTester } from '@jsonforms/core'; | ||
import type { VanillaRendererProps } from '../index'; | ||
export declare const NumberFormatCell: (props: CellProps & VanillaRendererProps & Formatted<number | undefined>) => JSX.Element; | ||
export declare const NumberFormatCell: (props: CellProps & VanillaRendererProps & Formatted<number | undefined>) => React.JSX.Element; | ||
/** | ||
@@ -6,0 +6,0 @@ * Default tester for text-based/string controls. |
import React from 'react'; | ||
import { CellProps, RankedTester } from '@jsonforms/core'; | ||
import type { VanillaRendererProps } from '../index'; | ||
export declare const SliderCell: (props: CellProps & VanillaRendererProps) => JSX.Element; | ||
export declare const SliderCell: (props: CellProps & VanillaRendererProps) => React.JSX.Element; | ||
export declare const sliderCellTester: RankedTester; | ||
declare const _default: React.ComponentType<import("@jsonforms/core").OwnPropsOfCell>; | ||
export default _default; |
import React from 'react'; | ||
import { CellProps, RankedTester } from '@jsonforms/core'; | ||
import type { VanillaRendererProps } from '../index'; | ||
export declare const TextAreaCell: (props: CellProps & VanillaRendererProps) => JSX.Element; | ||
export declare const TextAreaCell: (props: CellProps & VanillaRendererProps) => React.JSX.Element; | ||
/** | ||
@@ -6,0 +6,0 @@ * Tester for a multi-line string control. |
import React from 'react'; | ||
import { CellProps, RankedTester } from '@jsonforms/core'; | ||
import type { VanillaRendererProps } from '../index'; | ||
export declare const TextCell: (props: CellProps & VanillaRendererProps) => JSX.Element; | ||
export declare const TextCell: (props: CellProps & VanillaRendererProps) => React.JSX.Element; | ||
/** | ||
@@ -6,0 +6,0 @@ * Default tester for text-based/string controls. |
import React from 'react'; | ||
import { CellProps, RankedTester } from '@jsonforms/core'; | ||
import type { VanillaRendererProps } from '../index'; | ||
export declare const TimeCell: (props: CellProps & VanillaRendererProps) => JSX.Element; | ||
export declare const TimeCell: (props: CellProps & VanillaRendererProps) => React.JSX.Element; | ||
/** | ||
@@ -6,0 +6,0 @@ * Default tester for date controls. |
@@ -1,7 +0,7 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import { ArrayControlProps } from '@jsonforms/core'; | ||
import type { VanillaRendererProps } from '../../index'; | ||
export declare const ArrayControl: ({ classNames, data, label, path, schema, errors, addItem, removeItems, moveUp, moveDown, uischema, uischemas, getStyleAsClassName, renderers, rootSchema, translations, }: ArrayControlProps & VanillaRendererProps) => JSX.Element; | ||
export declare const ArrayControlRenderer: ({ schema, uischema, data, path, rootSchema, uischemas, addItem, getStyle, getStyleAsClassName, removeItems, moveUp, moveDown, id, visible, enabled, errors, translations, }: ArrayControlProps & VanillaRendererProps) => JSX.Element; | ||
declare const _default: (props: any) => JSX.Element; | ||
export declare const ArrayControl: ({ classNames, data, label, path, schema, errors, addItem, removeItems, moveUp, moveDown, uischema, uischemas, getStyleAsClassName, renderers, rootSchema, translations, }: ArrayControlProps & VanillaRendererProps) => React.JSX.Element; | ||
export declare const ArrayControlRenderer: ({ schema, uischema, data, path, rootSchema, uischemas, addItem, getStyle, getStyleAsClassName, removeItems, moveUp, moveDown, id, visible, enabled, errors, translations, }: ArrayControlProps & VanillaRendererProps) => React.JSX.Element; | ||
declare const _default: (props: any) => React.JSX.Element; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import { Categorization, Category, Translator } from '@jsonforms/core'; | ||
@@ -12,2 +12,2 @@ export interface CategorizationProps { | ||
} | ||
export declare const CategorizationList: ({ categorization, selectedCategory, depth, onSelect, subcategoriesClassName, groupClassName, t, }: CategorizationProps) => JSX.Element; | ||
export declare const CategorizationList: ({ categorization, selectedCategory, depth, onSelect, subcategoriesClassName, groupClassName, t, }: CategorizationProps) => React.JSX.Element; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import type { Category } from '@jsonforms/core'; | ||
@@ -6,3 +6,3 @@ export interface CategorizationState { | ||
} | ||
declare const _default: (props: any) => JSX.Element; | ||
declare const _default: (props: any) => React.JSX.Element; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import type { Category, JsonSchema } from '@jsonforms/core'; | ||
@@ -8,2 +8,2 @@ export interface CategoryProps { | ||
} | ||
export declare const SingleCategory: ({ category, schema, path }: CategoryProps) => JSX.Element; | ||
export declare const SingleCategory: ({ category, schema, path }: CategoryProps) => React.JSX.Element; |
@@ -1,2 +0,2 @@ | ||
import { FunctionComponent } from 'react'; | ||
import React, { FunctionComponent } from 'react'; | ||
import { LabelProps, RankedTester } from '@jsonforms/core'; | ||
@@ -13,3 +13,3 @@ import type { VanillaRendererProps } from '../index'; | ||
export declare const LabelRenderer: FunctionComponent<LabelProps & VanillaRendererProps>; | ||
declare const _default: (props: any) => JSX.Element; | ||
declare const _default: (props: any) => React.JSX.Element; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import { RankedTester } from '@jsonforms/core'; | ||
@@ -9,3 +9,3 @@ /** | ||
export declare const tableArrayControlTester: RankedTester; | ||
declare const _default: (props: any) => JSX.Element; | ||
declare const _default: (props: any) => React.JSX.Element; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import { ControlProps, ControlState, RankedTester } from '@jsonforms/core'; | ||
@@ -6,6 +6,6 @@ import { Control } from '@jsonforms/react'; | ||
export declare class InputControl extends Control<ControlProps & VanillaRendererProps, ControlState> { | ||
render(): JSX.Element; | ||
render(): React.JSX.Element; | ||
} | ||
export declare const inputControlTester: RankedTester; | ||
declare const _default: (props: any) => JSX.Element; | ||
declare const _default: (props: any) => React.JSX.Element; | ||
export default _default; |
@@ -1,7 +0,7 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import { ControlProps, RankedTester } from '@jsonforms/core'; | ||
import type { VanillaRendererProps } from '../index'; | ||
export declare const OneOfRadioGroupControl: (props: ControlProps & VanillaRendererProps) => JSX.Element; | ||
export declare const OneOfRadioGroupControl: (props: ControlProps & VanillaRendererProps) => React.JSX.Element; | ||
export declare const oneOfRadioGroupControlTester: RankedTester; | ||
declare const _default: (props: any) => JSX.Element; | ||
declare const _default: (props: any) => React.JSX.Element; | ||
export default _default; |
@@ -1,4 +0,4 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import { ControlProps, OwnPropsOfEnum } from '@jsonforms/core'; | ||
import type { VanillaRendererProps } from '../index'; | ||
export declare const RadioGroup: ({ classNames, id, label, options, required, description, errors, data, uischema, visible, config, enabled, path, handleChange, }: ControlProps & VanillaRendererProps & OwnPropsOfEnum) => JSX.Element; | ||
export declare const RadioGroup: ({ classNames, id, label, options, required, description, errors, data, uischema, visible, config, enabled, path, handleChange, }: ControlProps & VanillaRendererProps & OwnPropsOfEnum) => React.JSX.Element; |
@@ -1,7 +0,7 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import { ControlProps, RankedTester } from '@jsonforms/core'; | ||
import type { VanillaRendererProps } from '../index'; | ||
export declare const RadioGroupControl: (props: ControlProps & VanillaRendererProps) => JSX.Element; | ||
export declare const RadioGroupControl: (props: ControlProps & VanillaRendererProps) => React.JSX.Element; | ||
export declare const radioGroupControlTester: RankedTester; | ||
declare const _default: (props: any) => JSX.Element; | ||
declare const _default: (props: any) => React.JSX.Element; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import { LayoutProps, RankedTester } from '@jsonforms/core'; | ||
@@ -10,4 +10,4 @@ import type { VanillaRendererProps } from '../index'; | ||
export declare const groupTester: RankedTester; | ||
export declare const GroupLayoutRenderer: (props: LayoutProps & VanillaRendererProps) => JSX.Element; | ||
declare const _default: (props: any) => JSX.Element; | ||
export declare const GroupLayoutRenderer: (props: LayoutProps & VanillaRendererProps) => React.JSX.Element; | ||
declare const _default: (props: any) => React.JSX.Element; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import { RankedTester, RendererProps } from '@jsonforms/core'; | ||
@@ -9,4 +9,4 @@ import { VanillaRendererProps } from '../index'; | ||
export declare const horizontalLayoutTester: RankedTester; | ||
export declare const HorizontalLayoutRenderer: (props: RendererProps & VanillaRendererProps) => JSX.Element; | ||
declare const _default: (props: any) => JSX.Element; | ||
export declare const HorizontalLayoutRenderer: (props: RendererProps & VanillaRendererProps) => React.JSX.Element; | ||
declare const _default: (props: any) => React.JSX.Element; | ||
export default _default; |
@@ -1,4 +0,4 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import { RendererProps } from '@jsonforms/core'; | ||
import { VanillaRendererProps, WithChildren } from '../index'; | ||
export declare const JsonFormsLayout: ({ className, children, visible, }: RendererProps & VanillaRendererProps & WithChildren) => JSX.Element; | ||
export declare const JsonFormsLayout: ({ className, children, visible, }: RendererProps & VanillaRendererProps & WithChildren) => React.JSX.Element; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import { JsonSchema, Layout } from '@jsonforms/core'; | ||
@@ -9,2 +9,2 @@ export interface RenderChildrenProps { | ||
} | ||
export declare const renderChildren: (layout: Layout, schema: JsonSchema, className: string, path: string, enabled: boolean) => JSX.Element[]; | ||
export declare const renderChildren: (layout: Layout, schema: JsonSchema, className: string, path: string, enabled: boolean) => React.JSX.Element[]; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import { RankedTester, RendererProps } from '@jsonforms/core'; | ||
@@ -9,4 +9,4 @@ import { VanillaRendererProps } from '../index'; | ||
export declare const verticalLayoutTester: RankedTester; | ||
export declare const VerticalLayoutRenderer: (props: RendererProps & VanillaRendererProps) => JSX.Element; | ||
declare const _default: (props: any) => JSX.Element; | ||
export declare const VerticalLayoutRenderer: (props: RendererProps & VanillaRendererProps) => React.JSX.Element; | ||
declare const _default: (props: any) => React.JSX.Element; | ||
export default _default; |
export * from './i18nDefaults'; | ||
import { ComponentType } from 'react'; | ||
import React, { ComponentType } from 'react'; | ||
import { JsonFormsState, OwnPropsOfCell, OwnPropsOfControl, OwnPropsOfRenderer, RendererProps, StatePropsOfCell, StatePropsOfControl } from '@jsonforms/core'; | ||
@@ -13,3 +13,3 @@ import { VanillaRendererProps } from '../index'; | ||
export declare const addVanillaControlProps: <P extends StatePropsOfControl>(mapStateToProps: (s: JsonFormsState, p: OwnPropsOfControl) => P) => (state: JsonFormsState, ownProps: OwnPropsOfControl) => StatePropsOfControl & VanillaRendererProps; | ||
export declare const withVanillaControlProps: (Component: ComponentType<any>) => (props: any) => JSX.Element; | ||
export declare const withVanillaControlProps: (Component: ComponentType<any>) => (props: any) => React.JSX.Element; | ||
/** | ||
@@ -24,4 +24,4 @@ * Add vanilla props to the return value of calling the given | ||
export declare const addVanillaCellProps: (mapStateToCellsProps: (s: JsonFormsState, p: OwnPropsOfCell) => StatePropsOfCell) => (state: JsonFormsState, ownProps: OwnPropsOfCell) => StatePropsOfCell & VanillaRendererProps; | ||
export declare const withVanillaCellProps: (Component: ComponentType<any>) => (props: any) => JSX.Element; | ||
export declare const withVanillaEnumCellProps: (Component: ComponentType<any>) => (props: any) => JSX.Element; | ||
export declare const withVanillaBooleanCellProps: (Component: ComponentType<any>) => (props: any) => JSX.Element; | ||
export declare const withVanillaCellProps: (Component: ComponentType<any>) => (props: any) => React.JSX.Element; | ||
export declare const withVanillaEnumCellProps: (Component: ComponentType<any>) => (props: any) => React.JSX.Element; | ||
export declare const withVanillaBooleanCellProps: (Component: ComponentType<any>) => (props: any) => React.JSX.Element; |
{ | ||
"name": "@jsonforms/vanilla-renderers", | ||
"version": "3.1.0", | ||
"version": "3.1.1-alpha.0", | ||
"description": "Default Renderer Set for JSON Forms", | ||
@@ -22,3 +22,3 @@ "repository": "https://github.com/eclipsesource/jsonforms", | ||
"test-cov": "jest --no-cache --coverage", | ||
"doc": "typedoc --name 'JSON Forms Vanilla Renderers' --mode file --excludeExternals --theme ../../typedoc-jsonforms --out docs src" | ||
"doc": "typedoc --name 'JSON Forms Vanilla Renderers' --excludeExternals --theme ../../typedoc-jsonforms --out docs src" | ||
}, | ||
@@ -47,5 +47,8 @@ "files": [ | ||
], | ||
"dependencies": { | ||
"lodash": "^4.17.21" | ||
}, | ||
"peerDependencies": { | ||
"@jsonforms/core": "3.1.0", | ||
"@jsonforms/react": "3.1.0", | ||
"@jsonforms/core": "3.1.1-alpha.0", | ||
"@jsonforms/react": "3.1.1-alpha.0", | ||
"react": "^16.12.0 || ^17.0.0 || ^18.0.0" | ||
@@ -55,4 +58,4 @@ }, | ||
"@istanbuljs/nyc-config-typescript": "^1.0.2", | ||
"@jsonforms/core": "^3.1.0", | ||
"@jsonforms/react": "^3.1.0", | ||
"@jsonforms/core": "3.1.1-alpha.0", | ||
"@jsonforms/react": "3.1.1-alpha.0", | ||
"@rollup/plugin-commonjs": "^23.0.3", | ||
@@ -63,7 +66,8 @@ "@rollup/plugin-json": "^5.0.2", | ||
"@types/enzyme": "^3.10.3", | ||
"@types/react": "^17.0.24", | ||
"@typescript-eslint/eslint-plugin": "^5.54.1", | ||
"@typescript-eslint/parser": "^5.54.1", | ||
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.3", | ||
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7", | ||
"copy-webpack-plugin": "^5.0.5", | ||
"enzyme": "^3.10.0", | ||
"enzyme": "^3.11.0", | ||
"eslint": "^7.32.0", | ||
@@ -74,7 +78,8 @@ "eslint-config-prettier": "^8.7.0", | ||
"eslint-plugin-react": "^7.32.2", | ||
"jest": "^26.6.3", | ||
"jsdom": "^15.2.1", | ||
"jest": "^27.5.1", | ||
"jsdom": "^22.0.0", | ||
"jsdom-global": "^3.0.2", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.8.4", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
@@ -86,9 +91,11 @@ "rimraf": "^3.0.2", | ||
"rollup-plugin-import-css": "^3.1.0", | ||
"rollup-plugin-typescript2": "^0.31.1", | ||
"rollup-plugin-typescript2": "^0.34.1", | ||
"rollup-plugin-visualizer": "^5.4.1", | ||
"source-map-loader": "^0.2.4", | ||
"source-map-support": "0.5.16", | ||
"ts-jest": "^27.1.4", | ||
"ts-loader": "^6.2.1", | ||
"ts-node": "^10.4.0", | ||
"typedoc": "^0.19.2", | ||
"tslib": "^2.5.0", | ||
"typedoc": "~0.21.9", | ||
"webpack": "^4.41.2", | ||
@@ -107,2 +114,3 @@ "webpack-cli": "^3.2.1", | ||
}, | ||
"testEnvironment": "jsdom", | ||
"testMatch": [ | ||
@@ -127,3 +135,3 @@ "**/test/**/*.test.tsx" | ||
}, | ||
"gitHead": "7e0115feeced7711b0768d325566aaa6b054c32b" | ||
"gitHead": "071b32056d62e9548fb2b300a3a173cdbcb5b69a" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
586876
4
43
1
+ Addedlodash@^4.17.21
+ Added@jsonforms/core@3.1.1-alpha.0(transitive)
+ Added@jsonforms/react@3.1.1-alpha.0(transitive)
- Removed@jsonforms/core@3.1.0(transitive)
- Removed@jsonforms/react@3.1.0(transitive)