Socket
Socket
Sign inDemoInstall

@jsonforms/core

Package Overview
Dependencies
Maintainers
6
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsonforms/core - npm Package Compare versions

Comparing version 3.1.0-alpha.0 to 3.1.0-alpha.1

11

lib/actions/actions.d.ts

@@ -1,6 +0,7 @@

import AJV, { ErrorObject } from 'ajv';
import { JsonSchema, UISchemaElement } from '../models';
import { RankedTester } from '../testers';
import { UISchemaTester, ValidationMode } from '../reducers';
import { ErrorTranslator, Translator } from '../i18n';
import type AJV from 'ajv';
import type { ErrorObject } from 'ajv';
import type { JsonSchema, UISchemaElement } from '../models';
import type { RankedTester } from '../testers';
import type { UISchemaTester, ValidationMode } from '../reducers';
import type { ErrorTranslator, Translator } from '../i18n';
export declare const INIT: 'jsonforms/INIT';

@@ -7,0 +8,0 @@ export declare const UPDATE_CORE: 'jsonforms/UPDATE_CORE';

@@ -1,2 +0,2 @@

import { ControlElement, JsonSchema, UISchemaElement } from '../';
import type { ControlElement, JsonSchema, UISchemaElement } from '../';
export declare const Generate: {

@@ -3,0 +3,0 @@ jsonSchema(instance: Object, options?: any): JsonSchema;

@@ -1,2 +0,2 @@

import { JsonSchema4 } from '../models';
import type { JsonSchema4 } from '../models';
/**

@@ -3,0 +3,0 @@ * Generate a JSON schema based on the given data and any additional options.

@@ -1,2 +0,2 @@

import { ControlElement, JsonSchema, LabelDescription } from './models';
import type { ControlElement, JsonSchema, LabelDescription } from './models';
export declare const Helpers: {

@@ -3,0 +3,0 @@ createLabelDescriptionFrom(withLabel: ControlElement, schema: JsonSchema): LabelDescription;

@@ -1,6 +0,7 @@

import { ErrorObject } from 'ajv';
import { JsonSchema, UISchemaElement } from '../models';
import type { ErrorObject } from 'ajv';
import type { JsonSchema, UISchemaElement } from '../models';
export declare type Translator = {
(id: string, defaultMessage: string, values?: any): string;
(id: string, defaultMessage: undefined, values?: any): string | undefined;
(id: string, defaultMessage?: string, values?: any): string | undefined;
};

@@ -7,0 +8,0 @@ export declare type ErrorTranslator = (error: ErrorObject, translate: Translator, uischema?: UISchemaElement) => string;

@@ -1,4 +0,4 @@

import { ErrorObject } from 'ajv';
import type { ErrorObject } from 'ajv';
import { Labelable, UISchemaElement } from '../models';
import { i18nJsonSchema, ErrorTranslator, Translator } from './i18nTypes';
import type { i18nJsonSchema, ErrorTranslator, Translator } from './i18nTypes';
export declare const getI18nKeyPrefixBySchema: (schema: i18nJsonSchema | undefined, uischema: unknown | undefined) => string | undefined;

@@ -5,0 +5,0 @@ /**

@@ -1,3 +0,3 @@

import { JsonSchema4 } from './jsonSchema4';
import { JsonSchema7 } from './jsonSchema7';
import type { JsonSchema4 } from './jsonSchema4';
import type { JsonSchema7 } from './jsonSchema7';
export declare type JsonSchema = JsonSchema4 | JsonSchema7;

@@ -1,2 +0,2 @@

import { JsonSchema } from './jsonSchema';
import type { JsonSchema } from './jsonSchema';
/**

@@ -3,0 +3,0 @@ * Interface for describing an UI schema element that is referencing

@@ -1,4 +0,4 @@

import { RankedTester } from '../testers';
import type { RankedTester } from '../testers';
import { AddCellRendererAction, RemoveCellRendererAction } from '../actions';
import { Reducer } from '../util';
import type { Reducer } from '../util';
declare type ValidCellReducerActions = AddCellRendererAction | RemoveCellRendererAction;

@@ -5,0 +5,0 @@ export declare type JsonFormsCellRendererRegistryState = JsonFormsCellRendererRegistryEntry[];

import { SetConfigAction } from '../actions';
import { Reducer } from '../util';
import type { Reducer } from '../util';
export declare const configReducer: Reducer<any, SetConfigAction>;

@@ -1,5 +0,6 @@

import Ajv, { ErrorObject, ValidateFunction } from 'ajv';
import type Ajv from 'ajv';
import type { ErrorObject, ValidateFunction } from 'ajv';
import { CoreActions } from '../actions';
import { Reducer } from '../util';
import { JsonSchema, UISchemaElement } from '../models';
import type { JsonSchema, UISchemaElement } from '../models';
export declare const validate: (validator: ValidateFunction | undefined, data: any) => ErrorObject[];

@@ -6,0 +7,0 @@ export declare type ValidationMode = 'ValidateAndShow' | 'ValidateAndHide' | 'NoValidation';

import { RegisterDefaultDataAction, UnregisterDefaultDataAction } from '../actions';
import { Reducer } from '../util';
import type { Reducer } from '../util';
export interface JsonFormsDefaultDataRegistryEntry {

@@ -4,0 +4,0 @@ schemaPath: string;

import { JsonFormsI18nState } from '../i18n';
import { I18nActions } from '../actions';
import { Reducer } from '../util';
import type { Reducer } from '../util';
export declare const defaultJsonFormsI18nState: Required<JsonFormsI18nState>;

@@ -5,0 +5,0 @@ export declare const i18nReducer: Reducer<JsonFormsI18nState, I18nActions>;

@@ -1,6 +0,6 @@

import { ControlElement, UISchemaElement } from '../models';
import { JsonFormsState } from '../store';
import type { ControlElement, UISchemaElement } from '../models';
import type { JsonFormsState } from '../store';
import type { JsonFormsUISchemaRegistryEntry } from './uischemas';
import { JsonSchema } from '../models/jsonSchema';
import { ErrorTranslator, Translator } from '../i18n';
import type { JsonSchema } from '../models/jsonSchema';
import type { ErrorTranslator, Translator } from '../i18n';
export declare const jsonFormsReducerConfig: {

@@ -7,0 +7,0 @@ core: import("..").Reducer<import("./core").JsonFormsCore, import("..").CoreActions>;

@@ -1,4 +0,4 @@

import { RankedTester } from '../testers';
import type { RankedTester } from '../testers';
import { AddRendererAction, RemoveRendererAction } from '../actions';
import { Reducer } from '../util';
import type { Reducer } from '../util';
export interface JsonFormsRendererRegistryEntry {

@@ -5,0 +5,0 @@ tester: RankedTester;

@@ -1,8 +0,8 @@

import Ajv from 'ajv';
import { JsonFormsState } from '../store';
import { JsonSchema, UISchemaElement } from '../models';
import type Ajv from 'ajv';
import type { JsonFormsState } from '../store';
import type { JsonSchema, UISchemaElement } from '../models';
import { JsonFormsDefaultDataRegistryEntry } from './default-data';
import { JsonFormsRendererRegistryEntry } from './renderers';
import { JsonFormsCellRendererRegistryEntry } from './cells';
import { JsonFormsUISchemaRegistryEntry } from './uischemas';
import type { JsonFormsRendererRegistryEntry } from './renderers';
import type { JsonFormsCellRendererRegistryEntry } from './cells';
import type { JsonFormsUISchemaRegistryEntry } from './uischemas';
export declare const getData: (state: JsonFormsState) => any;

@@ -9,0 +9,0 @@ export declare const getSchema: (state: JsonFormsState) => JsonSchema;

import { UISchemaActions } from '../actions';
import { JsonSchema, UISchemaElement } from '../models';
import { Reducer } from '../util';
import type { JsonSchema, UISchemaElement } from '../models';
import type { Reducer } from '../util';
export declare type UISchemaTester = (schema: JsonSchema, schemaPath: string, path: string) => number;

@@ -5,0 +5,0 @@ export interface JsonFormsUISchemaRegistryEntry {

@@ -1,4 +0,4 @@

import { Store } from './util';
import { JsonFormsCore, JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry, JsonFormsUISchemaRegistryEntry } from './reducers';
import { JsonFormsI18nState } from './i18n';
import type { Store } from './util';
import type { JsonFormsCore, JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry, JsonFormsUISchemaRegistryEntry } from './reducers';
import type { JsonFormsI18nState } from './i18n';
/**

@@ -5,0 +5,0 @@ * JSONForms store.

@@ -1,2 +0,2 @@

import { Categorization, ControlElement, JsonSchema, UISchemaElement } from '../models';
import type { Categorization, ControlElement, JsonSchema, UISchemaElement } from '../models';
/**

@@ -3,0 +3,0 @@ * Constant that indicates that a tester is not capable of handling

import type { JsonFormsCellRendererRegistryEntry } from '../reducers';
import { AnyAction, Dispatch } from './type';
import type { AnyAction, Dispatch } from './type';
import { DispatchPropsOfControl, OwnPropsOfControl, OwnPropsOfEnum, StatePropsOfScopedRenderer } from './renderer';
import { JsonFormsState } from '../store';
import { JsonSchema } from '../models';
import type { JsonFormsState } from '../store';
import type { JsonSchema } from '../models';
export type { JsonFormsCellRendererRegistryEntry };

@@ -7,0 +7,0 @@ export interface OwnPropsOfCell extends OwnPropsOfControl {

@@ -1,2 +0,2 @@

import { ControlElement, JsonSchema, UISchemaElement } from '../models';
import type { ControlElement, JsonSchema, UISchemaElement } from '../models';
import { JsonFormsUISchemaRegistryEntry } from '../reducers';

@@ -3,0 +3,0 @@ export interface CombinatorSubSchemaRenderInfo {

@@ -1,2 +0,2 @@

import { ControlElement, JsonSchema, LabelDescription } from '../models';
import type { ControlElement, JsonSchema, LabelDescription } from '../models';
export declare const createCleanLabel: (label: string) => string;

@@ -3,0 +3,0 @@ /**

@@ -17,8 +17,11 @@ import { Scopable } from '../models';

/**
* Remove all schema-specific keywords (e.g. 'properties') from a given path.
* Convert a schema path (i.e. JSON pointer) to a data path.
*
* Data paths can be used in field change event handlers like handleChange.
*
* @example
* toDataPath('#/properties/foo/properties/bar') === '#/foo/bar')
* toDataPath('#/properties/foo/properties/bar') === 'foo.bar')
*
* @param {string} schemaPath the schema path to be converted
* @returns {string} the path without schema-specific keywords
* @returns {string} the data path
*/

@@ -25,0 +28,0 @@ export declare const toDataPath: (schemaPath: string) => string;

import { ControlElement, JsonSchema, LabelElement, UISchemaElement } from '../models';
import { JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry } from '../reducers';
import { JsonFormsUISchemaRegistryEntry } from '../reducers';
import { RankedTester } from '../testers';
import { CombinatorKeyword } from './combinators';
import { AnyAction, Dispatch } from './type';
import type { RankedTester } from '../testers';
import type { CombinatorKeyword } from './combinators';
import type { AnyAction, Dispatch } from './type';
import { CoreActions } from '../actions';
import { ErrorObject } from 'ajv';
import { JsonFormsState } from '../store';
import type { ErrorObject } from 'ajv';
import type { JsonFormsState } from '../store';
import { Translator } from '../i18n';

@@ -11,0 +11,0 @@ /**

@@ -1,2 +0,2 @@

import { JsonSchema } from '../models';
import type { JsonSchema } from '../models';
/**

@@ -3,0 +3,0 @@ * Map for storing refs and the respective schemas they are pointing to.

import { JsonSchema, UISchemaElement } from '../models';
import Ajv from 'ajv';
import { JsonFormsState } from '../store';
import type Ajv from 'ajv';
import type { JsonFormsState } from '../store';
export declare const evalVisibility: (uischema: UISchemaElement, data: any, path: string, ajv: Ajv) => boolean;

@@ -5,0 +5,0 @@ export declare const evalEnablement: (uischema: UISchemaElement, data: any, path: string, ajv: Ajv) => boolean;

@@ -1,3 +0,3 @@

import { JsonSchema, Scoped, UISchemaElement } from '..';
import Ajv from 'ajv';
import type { JsonSchema, Scoped, UISchemaElement } from '..';
import type Ajv from 'ajv';
/**

@@ -4,0 +4,0 @@ * Escape the given string such that it can be used as a class name,

import Ajv from 'ajv';
import { Options } from 'ajv';
import type { Options } from 'ajv';
export declare const createAjv: (options?: Options) => Ajv;
{
"name": "@jsonforms/core",
"version": "3.1.0-alpha.0",
"version": "3.1.0-alpha.1",
"description": "Core module of JSON Forms",

@@ -16,2 +16,6 @@ "repository": "https://github.com/eclipsesource/jsonforms",

},
"files": [
"lib",
"src"
],
"keywords": [

@@ -82,3 +86,3 @@ "form",

"rimraf": "^3.0.2",
"rollup": "^2.7.3",
"rollup": "^2.78.0",
"rollup-plugin-cleanup": "^3.2.1",

@@ -93,3 +97,3 @@ "rollup-plugin-typescript2": "^0.31.1",

},
"gitHead": "91f351daa7b7ae4bb0f0dffd47f00bb6cf682ec1"
"gitHead": "386174994eabc41758450b8d551e1c859498a468"
}

@@ -26,9 +26,10 @@ /*

import AJV, { ErrorObject } from 'ajv';
import { JsonSchema, UISchemaElement } from '../models';
import type AJV from 'ajv';
import type { ErrorObject } from 'ajv';
import type { JsonSchema, UISchemaElement } from '../models';
import { generateDefaultUISchema, generateJsonSchema } from '../generators';
import { RankedTester } from '../testers';
import { UISchemaTester, ValidationMode } from '../reducers';
import { ErrorTranslator, Translator } from '../i18n';
import type { RankedTester } from '../testers';
import type { UISchemaTester, ValidationMode } from '../reducers';
import type { ErrorTranslator, Translator } from '../i18n';

@@ -35,0 +36,0 @@ export const INIT: 'jsonforms/INIT' = 'jsonforms/INIT';

@@ -28,3 +28,3 @@ /*

import { createControlElement, generateDefaultUISchema } from './uischema';
import { ControlElement, JsonSchema, UISchemaElement } from '../';
import type { ControlElement, JsonSchema, UISchemaElement } from '../';

@@ -31,0 +31,0 @@ export const Generate: {

@@ -26,3 +26,3 @@ /*

import { JsonSchema4 } from '../models';
import type { JsonSchema4 } from '../models';

@@ -29,0 +29,0 @@ const ADDITIONAL_PROPERTIES = 'additionalProperties';

@@ -27,3 +27,3 @@ /*

import { convertToValidClassName, createLabelDescriptionFrom } from './util';
import { ControlElement, JsonSchema, LabelDescription } from './models';
import type { ControlElement, JsonSchema, LabelDescription } from './models';

@@ -30,0 +30,0 @@ export const Helpers: {

@@ -1,3 +0,3 @@

import { ErrorObject } from 'ajv';
import { JsonSchema, UISchemaElement } from '../models';
import type { ErrorObject } from 'ajv';
import type { JsonSchema, UISchemaElement } from '../models';

@@ -7,2 +7,3 @@ export type Translator = {

(id: string, defaultMessage: undefined, values?: any): string | undefined;
(id: string, defaultMessage?: string, values?: any): string | undefined;
}

@@ -9,0 +10,0 @@

@@ -1,6 +0,6 @@

import { ErrorObject } from 'ajv';
import type { ErrorObject } from 'ajv';
import { isInternationalized, Labelable, UISchemaElement } from '../models';
import { getControlPath } from '../reducers';
import { formatErrorMessage } from '../util';
import { i18nJsonSchema, ErrorTranslator, Translator } from './i18nTypes';
import type { i18nJsonSchema, ErrorTranslator, Translator } from './i18nTypes';

@@ -7,0 +7,0 @@ export const getI18nKeyPrefixBySchema = (

@@ -26,5 +26,5 @@ /*

import { JsonSchema4 } from './jsonSchema4';
import { JsonSchema7 } from './jsonSchema7';
import type { JsonSchema4 } from './jsonSchema4';
import type { JsonSchema7 } from './jsonSchema7';
export type JsonSchema = JsonSchema4 | JsonSchema7;

@@ -26,3 +26,3 @@ /*

import { JsonSchema } from './jsonSchema';
import type { JsonSchema } from './jsonSchema';

@@ -29,0 +29,0 @@ /**

@@ -26,3 +26,3 @@ /*

import { RankedTester } from '../testers';
import type { RankedTester } from '../testers';
import {

@@ -34,3 +34,3 @@ ADD_CELL,

} from '../actions';
import { Reducer } from '../util';
import type { Reducer } from '../util';

@@ -37,0 +37,0 @@ type ValidCellReducerActions = AddCellRendererAction | RemoveCellRendererAction;

@@ -29,3 +29,3 @@ /*

import { configDefault } from '../configDefault';
import { Reducer } from '../util';
import type { Reducer } from '../util';

@@ -32,0 +32,0 @@ const applyDefaultConfiguration = (config: any = {}) =>

@@ -32,3 +32,4 @@ /*

import isFunction from 'lodash/isFunction';
import Ajv, { ErrorObject, ValidateFunction } from 'ajv';
import type Ajv from 'ajv';
import type { ErrorObject, ValidateFunction } from 'ajv';
import {

@@ -49,3 +50,3 @@ CoreActions,

import { createAjv, Reducer } from '../util';
import { JsonSchema, UISchemaElement } from '../models';
import type { JsonSchema, UISchemaElement } from '../models';

@@ -429,2 +430,2 @@ export const validate = (validator: ValidateFunction | undefined, data: any): ErrorObject[] => {

export const subErrorsAt = (instancePath: string, schema: JsonSchema) =>
getErrorsAt(instancePath, schema, path => path.startsWith(instancePath));
getErrorsAt(instancePath, schema, path => path.startsWith(instancePath + '.'));

@@ -32,3 +32,3 @@ /*

} from '../actions';
import { Reducer } from '../util';
import type { Reducer } from '../util';

@@ -35,0 +35,0 @@ export interface JsonFormsDefaultDataRegistryEntry {

@@ -28,3 +28,3 @@ /*

import { I18nActions, SET_LOCALE, SET_TRANSLATOR, UPDATE_I18N } from '../actions';
import { Reducer } from '../util';
import type { Reducer } from '../util';

@@ -31,0 +31,0 @@ export const defaultJsonFormsI18nState: Required<JsonFormsI18nState> = {

@@ -26,3 +26,3 @@ /*

import { ControlElement, UISchemaElement } from '../models';
import type { ControlElement, UISchemaElement } from '../models';
import {

@@ -35,3 +35,3 @@ coreReducer,

import { rendererReducer } from './renderers';
import { JsonFormsState } from '../store';
import type { JsonFormsState } from '../store';
import type { JsonFormsUISchemaRegistryEntry } from './uischemas';

@@ -49,3 +49,3 @@ import {

import { Generate } from '../generators';
import { JsonSchema } from '../models/jsonSchema';
import type { JsonSchema } from '../models/jsonSchema';

@@ -56,3 +56,3 @@ import { cellReducer } from './cells';

import { fetchTranslator } from '.';
import { ErrorTranslator, Translator } from '../i18n';
import type { ErrorTranslator, Translator } from '../i18n';

@@ -59,0 +59,0 @@ export const jsonFormsReducerConfig = {

@@ -26,3 +26,3 @@ /*

import { RankedTester } from '../testers';
import type { RankedTester } from '../testers';
import {

@@ -34,3 +34,3 @@ ADD_RENDERER,

} from '../actions';
import { Reducer } from '../util';
import type { Reducer } from '../util';

@@ -37,0 +37,0 @@ export interface JsonFormsRendererRegistryEntry {

@@ -27,5 +27,5 @@ /*

import get from 'lodash/get';
import Ajv from 'ajv';
import { JsonFormsState } from '../store';
import { JsonSchema, UISchemaElement } from '../models';
import type Ajv from 'ajv';
import type { JsonFormsState } from '../store';
import type { JsonSchema, UISchemaElement } from '../models';
import {

@@ -41,5 +41,5 @@ extractAjv,

} from './default-data';
import { JsonFormsRendererRegistryEntry } from './renderers';
import { JsonFormsCellRendererRegistryEntry } from './cells';
import { JsonFormsUISchemaRegistryEntry } from './uischemas';
import type { JsonFormsRendererRegistryEntry } from './renderers';
import type { JsonFormsCellRendererRegistryEntry } from './cells';
import type { JsonFormsUISchemaRegistryEntry } from './uischemas';

@@ -46,0 +46,0 @@ export const getData = (state: JsonFormsState) =>

@@ -30,4 +30,4 @@ /*

import { NOT_APPLICABLE } from '../testers';
import { JsonSchema, UISchemaElement } from '../models';
import { Reducer } from '../util';
import type { JsonSchema, UISchemaElement } from '../models';
import type { Reducer } from '../util';

@@ -34,0 +34,0 @@ export type UISchemaTester = (

@@ -26,4 +26,4 @@ /*

import { Store } from './util';
import {
import type { Store } from './util';
import type {
JsonFormsCore,

@@ -34,3 +34,3 @@ JsonFormsCellRendererRegistryEntry,

} from './reducers';
import { JsonFormsI18nState } from './i18n';
import type { JsonFormsI18nState } from './i18n';

@@ -37,0 +37,0 @@ /**

@@ -34,3 +34,3 @@ /*

import includes from 'lodash/includes';
import {
import type {
Categorization,

@@ -470,3 +470,3 @@ ControlElement,

}
if (val.anyOf || val.oneOf) {
if (val.anyOf || val.oneOf || val.allOf) {
return true;

@@ -473,0 +473,0 @@ }

@@ -37,3 +37,3 @@ /*

} from '../reducers';
import { AnyAction, Dispatch } from './type';
import type { AnyAction, Dispatch } from './type';
import {

@@ -57,4 +57,4 @@ formatErrorMessage,

} from './renderer';
import { JsonFormsState } from '../store';
import { JsonSchema } from '../models';
import type { JsonFormsState } from '../store';
import type { JsonSchema } from '../models';
import { getI18nKeyPrefix } from '../i18n';

@@ -61,0 +61,0 @@

@@ -26,3 +26,3 @@ /*

import { ControlElement, JsonSchema, UISchemaElement } from '../models';
import type { ControlElement, JsonSchema, UISchemaElement } from '../models';
import { findUISchema, JsonFormsUISchemaRegistryEntry } from '../reducers';

@@ -29,0 +29,0 @@ import { Resolve } from './util';

@@ -28,3 +28,3 @@ /*

import { ControlElement, JsonSchema, LabelDescription } from '../models';
import type { ControlElement, JsonSchema, LabelDescription } from '../models';
import { decode } from './path';

@@ -31,0 +31,0 @@

@@ -72,8 +72,11 @@ /*

/**
* Remove all schema-specific keywords (e.g. 'properties') from a given path.
* Convert a schema path (i.e. JSON pointer) to a data path.
*
* Data paths can be used in field change event handlers like handleChange.
*
* @example
* toDataPath('#/properties/foo/properties/bar') === '#/foo/bar')
* toDataPath('#/properties/foo/properties/bar') === 'foo.bar')
*
* @param {string} schemaPath the schema path to be converted
* @returns {string} the path without schema-specific keywords
* @returns {string} the data path
*/

@@ -80,0 +83,0 @@ export const toDataPath = (schemaPath: string): string => {

@@ -48,13 +48,13 @@ /*

} from '../reducers';
import { RankedTester } from '../testers';
import type { RankedTester } from '../testers';
import { hasShowRule, isInherentlyEnabled, isVisible } from './runtime';
import { createLabelDescriptionFrom } from './label';
import { CombinatorKeyword } from './combinators';
import type { CombinatorKeyword } from './combinators';
import { moveDown, moveUp } from './array';
import { AnyAction, Dispatch } from './type';
import type { AnyAction, Dispatch } from './type';
import { Resolve } from './util';
import { composePaths, composeWithUi } from './path';
import { CoreActions, update } from '../actions';
import { ErrorObject } from 'ajv';
import { JsonFormsState } from '../store';
import type { ErrorObject } from 'ajv';
import type { JsonFormsState } from '../store';
import { deriveLabelForUISchemaElement, getCombinedErrorMessage, getI18nKey, getI18nKeyPrefix, getI18nKeyPrefixBySchema, Translator } from '../i18n';

@@ -61,0 +61,0 @@

@@ -28,3 +28,3 @@ /*

import get from 'lodash/get';
import { JsonSchema, JsonSchema7 } from '../models';
import type { JsonSchema, JsonSchema7 } from '../models';
import { decode } from './path';

@@ -179,2 +179,2 @@

return undefined;
}
}

@@ -40,5 +40,5 @@ /*

import { composeWithUi } from './path';
import Ajv from 'ajv';
import type Ajv from 'ajv';
import { getAjv } from '../reducers';
import { JsonFormsState } from '../store';
import type { JsonFormsState } from '../store';

@@ -45,0 +45,0 @@ const isOrCondition = (condition: Condition): condition is OrCondition =>

@@ -30,7 +30,7 @@ /*

import find from 'lodash/find';
import { JsonSchema, Scoped, UISchemaElement } from '..';
import type { JsonSchema, Scoped, UISchemaElement } from '..';
import { resolveData, resolveSchema } from './resolvers';
import { composePaths, toDataPathSegments } from './path';
import { isEnabled, isVisible } from './runtime';
import Ajv from 'ajv';
import type Ajv from 'ajv';

@@ -37,0 +37,0 @@ /**

@@ -27,3 +27,3 @@ /*

import addFormats from 'ajv-formats';
import { Options } from 'ajv';
import type { Options } from 'ajv';

@@ -30,0 +30,0 @@ export const createAjv = (options?: Options) => {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc