@jsonui/core 0.4.4 → 0.7.0

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.
@@ -6,8 +6,6 @@ import I18n from './utils/I18n';
6
6
  import { StockContext, PathModifierContext } from './utils/contextHandler';
7
7
  import { compSelectorHook } from './store/root/selectors';
8
8
  import stockFunctions from './stock/functions';
9
- import persistConfig from './store/persistConfig';
10
9
  import storeReducers from './store/reducers';
11
- import appRootFunctions from './stock/appRootFunctions';
12
- export * from './utils/types';
13
- export { Stock, I18n, wrapperUtil, util, constants, StockContext, PathModifierContext, appRootFunctions, compSelectorHook, stockFunctions, persistConfig, storeReducers, };
10
+ export type * from './utils/types';
11
+ export { Stock, I18n, wrapperUtil, util, constants, StockContext, PathModifierContext, compSelectorHook, stockFunctions, storeReducers };
@@ -1,8 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { JsonUIFunctions, JsonUIFunctionType } from './appRootFunctions';
3
- interface JsonUIComponentsType {
4
- [key: string]: ReactNode;
5
- }
2
+ import { JsonUIComponentsType, JsonUIFunctions, JsonUIFunctionType } from 'utils/types';
6
3
  interface NewStockType {
7
4
  components: JsonUIComponentsType;
8
5
  functions: JsonUIFunctions;
@@ -1,7 +1,4 @@
1
- export declare type JsonUIFunctionType = (attr: any, props: any, callerArgs: any, stock: any) => Promise<void> | void | any;
2
- export interface JsonUIFunctions {
3
- [key: string]: JsonUIFunctionType;
4
- }
1
+ import { JsonUIFunctions, JsonUIFunctionType } from 'utils/types';
5
2
  export declare const deletePersistDataStore: JsonUIFunctionType;
6
3
  declare const appRootFunctions: JsonUIFunctions;
7
4
  export default appRootFunctions;
@@ -1,7 +1,7 @@
1
- import { JsonUIFunctionType } from './appRootFunctions';
1
+ import { JsonUIFunctionType } from '../utils/types';
2
2
  declare const _default: {
3
- getStateValue: JsonUIFunctionType;
4
3
  get: JsonUIFunctionType;
5
4
  set: JsonUIFunctionType;
5
+ jsonata: JsonUIFunctionType;
6
6
  };
7
7
  export default _default;
@@ -1,7 +1,11 @@
1
1
  import { ErrorObject } from 'ajv';
2
- export declare const errorConverter: (errors: ErrorObject<string, Record<string, any>, unknown>[] | null | undefined) => {};
3
- export declare const validateJSON: (schema: any, store: string, data: any) => {
2
+ export declare const errorConverter: (errors: ErrorObject<string, Record<string, any>, unknown>[] | null | undefined) => any;
3
+ export declare const validateJSON: (schema: any, data: any) => {
4
+ valid: boolean;
5
+ error: any;
6
+ };
7
+ export declare const validateJSONAndStore: (schema: any, store: string, data: any) => {
4
8
  store: string;
5
9
  valid: boolean;
6
- value: {} | null;
10
+ value: any;
7
11
  };
@@ -1,10 +1,5 @@
1
1
  export declare const DATA_UPDATE = "DATA_UPDATE";
2
- export declare const PURGE = "PURGE";
3
2
  export declare const set: (payload: any) => {
4
3
  type: string;
5
4
  payload: any;
6
5
  };
7
- export declare const purge: (payload: any) => {
8
- type: string;
9
- payload: any;
10
- };
@@ -1,7 +1,7 @@
1
- import { PathModifiersType, PropsType, ReduxPathType } from '../../utils/types';
1
+ import { PathModifiersType, ReduxPath, ReduxPathTypeEnum } from '../../utils/types';
2
2
  import { RootStateType } from './reducer';
3
3
  export declare const getState: (state: any) => RootStateType;
4
4
  export declare const getValue: (state: any, store: string, path: string) => any;
5
- export declare const getStateValue: (globalState: any, { store, path, isError }: ReduxPathType, currentPaths: PathModifiersType) => any;
6
- export declare const genAllStateProps: (globalState: any, props: PropsType) => PropsType;
7
- export declare const compSelectorHook: (currentPaths: PathModifiersType, subscriberPaths: ReduxPathType[]) => (state: any) => any[] | undefined;
5
+ export declare const getStoreNameFromType: (store: string, type?: ReduxPathTypeEnum | undefined) => string;
6
+ export declare const getStateValue: (globalState: any, { store, path, type, jsonataDef }: ReduxPath, currentPaths: PathModifiersType) => any;
7
+ export declare const compSelectorHook: (currentPaths: PathModifiersType, subscriberPaths: ReduxPath[]) => (state: any) => any[] | undefined;
@@ -1,10 +1,9 @@
1
1
  export declare const SEPARATOR = "/";
2
2
  export declare const STORE_ERROR_POSTFIX = ".error";
3
+ export declare const STORE_TOUCH_POSTFIX = ".touch";
3
4
  export declare const PATH_MODIFIERS_KEY = "$pathModifiers";
4
5
  export declare const MODIFIER_KEY = "$modifier";
5
6
  export declare const ACTION_KEY = "$action";
6
- export declare const PERSIST_STORAGE_KEY = "$persistStores";
7
- export declare const PERSIST_STORAGE_NAMES: string[];
8
7
  export declare const REF_ASSETS = "$assetsRef";
9
8
  export declare const REF_LOCALES = "$locales";
10
9
  export declare const REF_VALIDATES = "$validations";
@@ -27,6 +26,7 @@ export declare const REDUX_PATHS = "$$reduxPaths";
27
26
  export declare const V_CHILDREN_PREFIX = "$child";
28
27
  export declare const PARENT_PROP_NAME = "__parentprop";
29
28
  export declare const CURRENT_PATH_NAME = "__currentPaths";
29
+ export declare const REDUX_GET_SUBSCRIBERS_NAME = "__subscriberPaths";
30
30
  export declare const UNDEFINED_COMP_NAME = "_Undefined";
31
31
  export declare const PRIMITIVE_COMP_NAME = "_PrimitiveProp";
32
32
  export declare const FRAGMENT_COMP_NAME = "Fragment";
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import * as c from 'utils/constants';
1
+ import React, { ReactNode } from 'react';
2
+ import * as c from './constants';
3
3
  export declare type UIDefinition = any;
4
4
  export declare type Path = string;
5
5
  export declare type ArraysType = any[];
@@ -25,8 +25,21 @@ export interface ValidationType {
25
25
  path: string;
26
26
  schema: any;
27
27
  }
28
- export interface ReduxPathType {
28
+ export declare enum ReduxPathTypeEnum {
29
+ ERROR = "ERROR",
30
+ TOUCH = "TOUCH",
31
+ NORMAL = "NORMAL"
32
+ }
33
+ export interface ReduxPath {
29
34
  store?: string;
30
35
  path?: string;
31
- isError?: boolean;
36
+ type?: ReduxPathTypeEnum;
37
+ jsonataDef?: string;
38
+ }
39
+ export interface JsonUIComponentsType {
40
+ [key: string]: ReactNode;
41
+ }
42
+ export declare type JsonUIFunctionType = (attr: any, props: any, callerArgs: any, stock: any) => Promise<void> | void | any;
43
+ export interface JsonUIFunctions {
44
+ [key: string]: JsonUIFunctionType;
32
45
  }
@@ -1,6 +1,7 @@
1
1
  export declare const findLastIndex: (arr: any[], func: any) => number;
2
2
  export declare const drop: (arr: any[], n?: number) => any[];
3
3
  export declare const isNumber: (a: any) => boolean;
4
+ export declare const jsonPointerFix: (path?: string | undefined) => string;
4
5
  export declare const jsonPointerGet: (json: any, path?: string | undefined) => any;
5
6
  export declare const jsonPointerSet: (json: any, path?: string | undefined, value?: any) => any;
6
7
  export declare const pathArrayToPathString: (array: (string | number)[]) => string;
@@ -15,5 +16,7 @@ export declare const changeRelativePath: (path: string) => string;
15
16
  */
16
17
  export declare function mergeDeep(target: any, ...sources: any): any;
17
18
  export declare const collectObjMerge: (refConst: string, json: any) => {};
18
- export declare const collectObjToArray: (refConst: string, json: any) => any[];
19
- export declare const isCircular: (d: any) => boolean;
19
+ export declare const collectObjToArray: (refConst: string, json: any, flatten?: boolean) => any[];
20
+ export declare const isValidJson: (d: any) => boolean;
21
+ export declare const isPrimitiveValue: (value: any, emptyStringAllowed?: boolean) => boolean;
22
+ export declare const hasLeaf: (obj: any, emptyStringAllowed?: boolean | undefined) => boolean;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import * as c from '../utils/constants';
3
3
  import Stock from '../stock/Stock';
4
- import { PathModifiersType, PropsType, ReduxPathType, WrapperType } from '../utils/types';
4
+ import { PathModifiersType, PropsType, ReduxPath, WrapperType } from '../utils/types';
5
5
  interface OwnTraverse {
6
6
  key: string;
7
7
  value: PropsType;
@@ -11,13 +11,10 @@ interface OwnTraverse {
11
11
  }
12
12
  export declare const getFilteredPath: ({ [c.PARENT_PROP_NAME]: parentComp, ...propsNew }: PropsType, func: (filterProps: OwnTraverse) => boolean) => OwnTraverse[];
13
13
  export declare const actionBuilder: (props: PropsType, stock: InstanceType<typeof Stock>) => void;
14
- export declare const calculatePropsFromModifier: (props: PropsType, stock: InstanceType<typeof Stock>) => ReduxPathType[];
14
+ export declare const calculatePropsFromModifier: (props: PropsType, stock: InstanceType<typeof Stock>) => ReduxPath[];
15
15
  export declare const getCurrentPaths: (props: PropsType, pathModifier: PathModifiersType) => PathModifiersType;
16
16
  export declare const normalisePrimitives: (props: PropsType, parentComp?: any) => any;
17
- export declare const getRootWrapperProps: (props: PropsType, stock: InstanceType<typeof Stock>) => {
18
- [x: string]: import("../utils/types").PropValue;
19
- $pathModifiers?: PathModifiersType | undefined;
20
- };
17
+ export declare const getRootWrapperProps: (props: PropsType, stock: InstanceType<typeof Stock>) => void;
21
18
  export declare const isChildrenProp: (propName?: string | undefined) => boolean;
22
19
  export declare const getParentProps: (props: PropsType) => PropsType;
23
20
  export declare const getPropsChildrenFilter: ({ props, filter }: {
package/dist/index.d.ts CHANGED
@@ -1,28 +1,16 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="redux-persist/types/types" />
3
- /// <reference types="redux-persist" />
4
2
  import * as react from 'react';
5
3
  import react__default, { ReactNode } from 'react';
6
- import * as c from 'utils/constants';
4
+ import { JsonUIComponentsType as JsonUIComponentsType$1, JsonUIFunctions as JsonUIFunctions$1, JsonUIFunctionType as JsonUIFunctionType$1 } from 'utils/types';
7
5
  import Stock$1 from 'stock/Stock';
8
- import * as redux_persist from 'redux-persist';
9
6
  import * as redux from 'redux';
10
7
 
11
- declare type JsonUIFunctionType = (attr: any, props: any, callerArgs: any, stock: any) => Promise<void> | void | any;
12
- interface JsonUIFunctions {
13
- [key: string]: JsonUIFunctionType;
14
- }
15
- declare const appRootFunctions: JsonUIFunctions;
16
-
17
- interface JsonUIComponentsType {
18
- [key: string]: ReactNode;
19
- }
20
8
  interface NewStockType {
21
- components: JsonUIComponentsType;
22
- functions: JsonUIFunctions;
9
+ components: JsonUIComponentsType$1;
10
+ functions: JsonUIFunctions$1;
23
11
  }
24
12
  declare type InitType = (prop: NewStockType) => void;
25
- declare type RegisterFunctionType = (key: string, value: JsonUIFunctionType) => void;
13
+ declare type RegisterFunctionType = (key: string, value: JsonUIFunctionType$1) => void;
26
14
  declare type RegisterComponentType = (key: string, value: ReactNode) => void;
27
15
  declare type CallFunctionType = (name: string, attr?: any, props?: any, callerArgs?: any) => any;
28
16
  declare type GetComponentType = (componentName: string) => ReactNode;
@@ -39,44 +27,12 @@ declare class Stock {
39
27
  getComponent: GetComponentType;
40
28
  }
41
29
 
42
- declare type UIDefinition = any;
43
- declare type Path = string;
44
- declare type ArraysType = any[];
45
- declare type WrapperType = react__default.ElementType;
46
- declare type PropValue = PropsType | ArraysType | string | null | boolean | number | undefined | PathModifiersType;
47
- interface PathModifierType {
48
- path: string;
49
- }
50
- interface PathModifiersType {
51
- [key: string]: PathModifierType;
52
- }
53
- interface PropsType {
54
- [key: string]: PropValue;
55
- [c.PATH_MODIFIERS_KEY]?: PathModifiersType;
56
- }
57
- interface PathType {
58
- path: string[];
59
- level: number;
60
- }
61
- declare type PathsType = PathType[];
62
- interface ValidationType {
63
- store: string;
64
- path: string;
65
- schema: any;
66
- }
67
- interface ReduxPathType {
68
- store?: string;
69
- path?: string;
70
- isError?: boolean;
71
- }
72
-
73
30
  declare const SEPARATOR = "/";
74
31
  declare const STORE_ERROR_POSTFIX = ".error";
32
+ declare const STORE_TOUCH_POSTFIX = ".touch";
75
33
  declare const PATH_MODIFIERS_KEY = "$pathModifiers";
76
34
  declare const MODIFIER_KEY = "$modifier";
77
35
  declare const ACTION_KEY = "$action";
78
- declare const PERSIST_STORAGE_KEY = "$persistStores";
79
- declare const PERSIST_STORAGE_NAMES: string[];
80
36
  declare const REF_ASSETS = "$assetsRef";
81
37
  declare const REF_LOCALES = "$locales";
82
38
  declare const REF_VALIDATES = "$validations";
@@ -99,17 +55,17 @@ declare const REDUX_PATHS = "$$reduxPaths";
99
55
  declare const V_CHILDREN_PREFIX = "$child";
100
56
  declare const PARENT_PROP_NAME = "__parentprop";
101
57
  declare const CURRENT_PATH_NAME = "__currentPaths";
58
+ declare const REDUX_GET_SUBSCRIBERS_NAME = "__subscriberPaths";
102
59
  declare const UNDEFINED_COMP_NAME = "_Undefined";
103
60
  declare const PRIMITIVE_COMP_NAME = "_PrimitiveProp";
104
61
  declare const FRAGMENT_COMP_NAME = "Fragment";
105
62
 
106
63
  declare const constants_d_SEPARATOR: typeof SEPARATOR;
107
64
  declare const constants_d_STORE_ERROR_POSTFIX: typeof STORE_ERROR_POSTFIX;
65
+ declare const constants_d_STORE_TOUCH_POSTFIX: typeof STORE_TOUCH_POSTFIX;
108
66
  declare const constants_d_PATH_MODIFIERS_KEY: typeof PATH_MODIFIERS_KEY;
109
67
  declare const constants_d_MODIFIER_KEY: typeof MODIFIER_KEY;
110
68
  declare const constants_d_ACTION_KEY: typeof ACTION_KEY;
111
- declare const constants_d_PERSIST_STORAGE_KEY: typeof PERSIST_STORAGE_KEY;
112
- declare const constants_d_PERSIST_STORAGE_NAMES: typeof PERSIST_STORAGE_NAMES;
113
69
  declare const constants_d_REF_ASSETS: typeof REF_ASSETS;
114
70
  declare const constants_d_REF_LOCALES: typeof REF_LOCALES;
115
71
  declare const constants_d_REF_VALIDATES: typeof REF_VALIDATES;
@@ -132,6 +88,7 @@ declare const constants_d_REDUX_PATHS: typeof REDUX_PATHS;
132
88
  declare const constants_d_V_CHILDREN_PREFIX: typeof V_CHILDREN_PREFIX;
133
89
  declare const constants_d_PARENT_PROP_NAME: typeof PARENT_PROP_NAME;
134
90
  declare const constants_d_CURRENT_PATH_NAME: typeof CURRENT_PATH_NAME;
91
+ declare const constants_d_REDUX_GET_SUBSCRIBERS_NAME: typeof REDUX_GET_SUBSCRIBERS_NAME;
135
92
  declare const constants_d_UNDEFINED_COMP_NAME: typeof UNDEFINED_COMP_NAME;
136
93
  declare const constants_d_PRIMITIVE_COMP_NAME: typeof PRIMITIVE_COMP_NAME;
137
94
  declare const constants_d_FRAGMENT_COMP_NAME: typeof FRAGMENT_COMP_NAME;
@@ -139,11 +96,10 @@ declare namespace constants_d {
139
96
  export {
140
97
  constants_d_SEPARATOR as SEPARATOR,
141
98
  constants_d_STORE_ERROR_POSTFIX as STORE_ERROR_POSTFIX,
99
+ constants_d_STORE_TOUCH_POSTFIX as STORE_TOUCH_POSTFIX,
142
100
  constants_d_PATH_MODIFIERS_KEY as PATH_MODIFIERS_KEY,
143
101
  constants_d_MODIFIER_KEY as MODIFIER_KEY,
144
102
  constants_d_ACTION_KEY as ACTION_KEY,
145
- constants_d_PERSIST_STORAGE_KEY as PERSIST_STORAGE_KEY,
146
- constants_d_PERSIST_STORAGE_NAMES as PERSIST_STORAGE_NAMES,
147
103
  constants_d_REF_ASSETS as REF_ASSETS,
148
104
  constants_d_REF_LOCALES as REF_LOCALES,
149
105
  constants_d_REF_VALIDATES as REF_VALIDATES,
@@ -166,12 +122,57 @@ declare namespace constants_d {
166
122
  constants_d_V_CHILDREN_PREFIX as V_CHILDREN_PREFIX,
167
123
  constants_d_PARENT_PROP_NAME as PARENT_PROP_NAME,
168
124
  constants_d_CURRENT_PATH_NAME as CURRENT_PATH_NAME,
125
+ constants_d_REDUX_GET_SUBSCRIBERS_NAME as REDUX_GET_SUBSCRIBERS_NAME,
169
126
  constants_d_UNDEFINED_COMP_NAME as UNDEFINED_COMP_NAME,
170
127
  constants_d_PRIMITIVE_COMP_NAME as PRIMITIVE_COMP_NAME,
171
128
  constants_d_FRAGMENT_COMP_NAME as FRAGMENT_COMP_NAME,
172
129
  };
173
130
  }
174
131
 
132
+ declare type UIDefinition = any;
133
+ declare type Path = string;
134
+ declare type ArraysType = any[];
135
+ declare type WrapperType = react__default.ElementType;
136
+ declare type PropValue = PropsType | ArraysType | string | null | boolean | number | undefined | PathModifiersType;
137
+ interface PathModifierType {
138
+ path: string;
139
+ }
140
+ interface PathModifiersType {
141
+ [key: string]: PathModifierType;
142
+ }
143
+ interface PropsType {
144
+ [key: string]: PropValue;
145
+ [PATH_MODIFIERS_KEY]?: PathModifiersType;
146
+ }
147
+ interface PathType {
148
+ path: string[];
149
+ level: number;
150
+ }
151
+ declare type PathsType = PathType[];
152
+ interface ValidationType {
153
+ store: string;
154
+ path: string;
155
+ schema: any;
156
+ }
157
+ declare enum ReduxPathTypeEnum {
158
+ ERROR = "ERROR",
159
+ TOUCH = "TOUCH",
160
+ NORMAL = "NORMAL"
161
+ }
162
+ interface ReduxPath {
163
+ store?: string;
164
+ path?: string;
165
+ type?: ReduxPathTypeEnum;
166
+ jsonataDef?: string;
167
+ }
168
+ interface JsonUIComponentsType {
169
+ [key: string]: ReactNode;
170
+ }
171
+ declare type JsonUIFunctionType = (attr: any, props: any, callerArgs: any, stock: any) => Promise<void> | void | any;
172
+ interface JsonUIFunctions {
173
+ [key: string]: JsonUIFunctionType;
174
+ }
175
+
175
176
  interface OwnTraverse {
176
177
  key: string;
177
178
  value: PropsType;
@@ -181,13 +182,10 @@ interface OwnTraverse {
181
182
  }
182
183
  declare const getFilteredPath: ({ [c.PARENT_PROP_NAME]: parentComp, ...propsNew }: PropsType, func: (filterProps: OwnTraverse) => boolean) => OwnTraverse[];
183
184
  declare const actionBuilder: (props: PropsType, stock: InstanceType<typeof Stock>) => void;
184
- declare const calculatePropsFromModifier: (props: PropsType, stock: InstanceType<typeof Stock>) => ReduxPathType[];
185
+ declare const calculatePropsFromModifier: (props: PropsType, stock: InstanceType<typeof Stock>) => ReduxPath[];
185
186
  declare const getCurrentPaths: (props: PropsType, pathModifier: PathModifiersType) => PathModifiersType;
186
187
  declare const normalisePrimitives: (props: PropsType, parentComp?: any) => any;
187
- declare const getRootWrapperProps: (props: PropsType, stock: InstanceType<typeof Stock>) => {
188
- [x: string]: PropValue;
189
- $pathModifiers?: PathModifiersType | undefined;
190
- };
188
+ declare const getRootWrapperProps: (props: PropsType, stock: InstanceType<typeof Stock>) => void;
191
189
  declare const isChildrenProp: (propName?: string | undefined) => boolean;
192
190
  declare const getParentProps: (props: PropsType) => PropsType;
193
191
  declare const getPropsChildrenFilter: ({ props, filter }: {
@@ -236,6 +234,7 @@ declare namespace wrapperUtil_d {
236
234
  declare const findLastIndex: (arr: any[], func: any) => number;
237
235
  declare const drop: (arr: any[], n?: number) => any[];
238
236
  declare const isNumber: (a: any) => boolean;
237
+ declare const jsonPointerFix: (path?: string | undefined) => string;
239
238
  declare const jsonPointerGet: (json: any, path?: string | undefined) => any;
240
239
  declare const jsonPointerSet: (json: any, path?: string | undefined, value?: any) => any;
241
240
  declare const pathArrayToPathString: (array: (string | number)[]) => string;
@@ -250,12 +249,15 @@ declare const changeRelativePath: (path: string) => string;
250
249
  */
251
250
  declare function mergeDeep(target: any, ...sources: any): any;
252
251
  declare const collectObjMerge: (refConst: string, json: any) => {};
253
- declare const collectObjToArray: (refConst: string, json: any) => any[];
254
- declare const isCircular: (d: any) => boolean;
252
+ declare const collectObjToArray: (refConst: string, json: any, flatten?: boolean) => any[];
253
+ declare const isValidJson: (d: any) => boolean;
254
+ declare const isPrimitiveValue: (value: any, emptyStringAllowed?: boolean) => boolean;
255
+ declare const hasLeaf: (obj: any, emptyStringAllowed?: boolean | undefined) => boolean;
255
256
 
256
257
  declare const util_d_findLastIndex: typeof findLastIndex;
257
258
  declare const util_d_drop: typeof drop;
258
259
  declare const util_d_isNumber: typeof isNumber;
260
+ declare const util_d_jsonPointerFix: typeof jsonPointerFix;
259
261
  declare const util_d_jsonPointerGet: typeof jsonPointerGet;
260
262
  declare const util_d_jsonPointerSet: typeof jsonPointerSet;
261
263
  declare const util_d_pathArrayToPathString: typeof pathArrayToPathString;
@@ -266,12 +268,15 @@ declare const util_d_changeRelativePath: typeof changeRelativePath;
266
268
  declare const util_d_mergeDeep: typeof mergeDeep;
267
269
  declare const util_d_collectObjMerge: typeof collectObjMerge;
268
270
  declare const util_d_collectObjToArray: typeof collectObjToArray;
269
- declare const util_d_isCircular: typeof isCircular;
271
+ declare const util_d_isValidJson: typeof isValidJson;
272
+ declare const util_d_isPrimitiveValue: typeof isPrimitiveValue;
273
+ declare const util_d_hasLeaf: typeof hasLeaf;
270
274
  declare namespace util_d {
271
275
  export {
272
276
  util_d_findLastIndex as findLastIndex,
273
277
  util_d_drop as drop,
274
278
  util_d_isNumber as isNumber,
279
+ util_d_jsonPointerFix as jsonPointerFix,
275
280
  util_d_jsonPointerGet as jsonPointerGet,
276
281
  util_d_jsonPointerSet as jsonPointerSet,
277
282
  util_d_pathArrayToPathString as pathArrayToPathString,
@@ -282,7 +287,9 @@ declare namespace util_d {
282
287
  util_d_mergeDeep as mergeDeep,
283
288
  util_d_collectObjMerge as collectObjMerge,
284
289
  util_d_collectObjToArray as collectObjToArray,
285
- util_d_isCircular as isCircular,
290
+ util_d_isValidJson as isValidJson,
291
+ util_d_isPrimitiveValue as isPrimitiveValue,
292
+ util_d_hasLeaf as hasLeaf,
286
293
  };
287
294
  }
288
295
 
@@ -316,22 +323,16 @@ declare class I18n {
316
323
  declare const StockContext: react.Context<Stock$1 | null>;
317
324
  declare const PathModifierContext: react.Context<{}>;
318
325
 
319
- declare const compSelectorHook: (currentPaths: PathModifiersType, subscriberPaths: ReduxPathType[]) => (state: any) => any[] | undefined;
326
+ declare const compSelectorHook: (currentPaths: PathModifiersType, subscriberPaths: ReduxPath[]) => (state: any) => any[] | undefined;
320
327
 
321
- declare const _default$1: {
322
- getStateValue: JsonUIFunctionType;
328
+ declare const _default: {
323
329
  get: JsonUIFunctionType;
324
330
  set: JsonUIFunctionType;
325
- };
326
-
327
- declare const _default: {
328
- key: string;
329
- whitelist: string[];
330
- transforms: redux_persist.Transform<unknown, unknown, any, any>[];
331
+ jsonata: JsonUIFunctionType;
331
332
  };
332
333
 
333
334
  declare const rootReducer: redux.Reducer<redux.CombinedState<{
334
335
  root: any;
335
336
  }>, redux.AnyAction>;
336
337
 
337
- export { ArraysType, I18n, Path, PathModifierContext, PathModifierType, PathModifiersType, PathType, PathsType, PropValue, PropsType, ReduxPathType, Stock, StockContext, UIDefinition, ValidationType, WrapperType, appRootFunctions, compSelectorHook, constants_d as constants, _default as persistConfig, _default$1 as stockFunctions, rootReducer as storeReducers, util_d as util, wrapperUtil_d as wrapperUtil };
338
+ export { ArraysType, I18n, JsonUIComponentsType, JsonUIFunctionType, JsonUIFunctions, Path, PathModifierContext, PathModifierType, PathModifiersType, PathType, PathsType, PropValue, PropsType, ReduxPath, ReduxPathTypeEnum, Stock, StockContext, UIDefinition, ValidationType, WrapperType, compSelectorHook, constants_d as constants, _default as stockFunctions, rootReducer as storeReducers, util_d as util, wrapperUtil_d as wrapperUtil };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsonui/core",
3
- "version": "0.4.4",
3
+ "version": "0.7.0",
4
4
  "license": "MIT",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/cjs/index.js",
@@ -22,13 +22,14 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "ajv": "^8.9.0",
25
+ "ajv-errors": "^3.0.0",
26
+ "ajv-formats": "^3.0.1",
25
27
  "immer": "^9.0.12",
26
28
  "jsonata": "^1.8.5",
27
29
  "jsonpointer": "^5.0.0",
28
30
  "key-value-replace": "^3.0.0",
29
31
  "lodash": "^4.17.21",
30
32
  "redux": "^4.1.2",
31
- "redux-persist": "^6.0.0",
32
33
  "traverse": "^0.6.6"
33
34
  },
34
35
  "peerDependencies": {
@@ -56,5 +57,5 @@
56
57
  "rollup-plugin-visualizer": "^5.5.4",
57
58
  "ts-jest": "^27.1.3"
58
59
  },
59
- "gitHead": "bd8d7759fb0c8bec66cdc73d87585832f07ae894"
60
+ "gitHead": "d1f5846702fd08fe465648dac4daead47ab50279"
60
61
  }