@jsonui/core 0.7.5 → 0.8.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.
Files changed (50) hide show
  1. package/dist/cjs/index.js +40 -6514
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/esm/index.js +24 -6498
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/index.d.ts +175 -176
  6. package/package.json +34 -24
  7. package/dist/cjs/types/index.d.ts +0 -12
  8. package/dist/cjs/types/stock/Stock.d.ts +0 -24
  9. package/dist/cjs/types/stock/Stock.test.d.ts +0 -1
  10. package/dist/cjs/types/stock/appRootFunctions.d.ts +0 -4
  11. package/dist/cjs/types/stock/functions.d.ts +0 -7
  12. package/dist/cjs/types/stock/validation.d.ts +0 -11
  13. package/dist/cjs/types/store/persistConfig.d.ts +0 -8
  14. package/dist/cjs/types/store/reducers.d.ts +0 -4
  15. package/dist/cjs/types/store/root/actions.d.ts +0 -5
  16. package/dist/cjs/types/store/root/reducer.d.ts +0 -4
  17. package/dist/cjs/types/store/root/reducer.test.d.ts +0 -1
  18. package/dist/cjs/types/store/root/selector.test.d.ts +0 -1
  19. package/dist/cjs/types/store/root/selectors.d.ts +0 -7
  20. package/dist/cjs/types/utils/I18n.d.ts +0 -27
  21. package/dist/cjs/types/utils/I18n.test.d.ts +0 -1
  22. package/dist/cjs/types/utils/constants.d.ts +0 -32
  23. package/dist/cjs/types/utils/contextHandler.d.ts +0 -4
  24. package/dist/cjs/types/utils/types.d.ts +0 -46
  25. package/dist/cjs/types/utils/util.d.ts +0 -22
  26. package/dist/cjs/types/utils/util.test.d.ts +0 -1
  27. package/dist/cjs/types/wrapper/wrapperUtil.d.ts +0 -29
  28. package/dist/cjs/types/wrapper/wrapperUtil.test.d.ts +0 -1
  29. package/dist/esm/types/index.d.ts +0 -12
  30. package/dist/esm/types/stock/Stock.d.ts +0 -24
  31. package/dist/esm/types/stock/Stock.test.d.ts +0 -1
  32. package/dist/esm/types/stock/appRootFunctions.d.ts +0 -4
  33. package/dist/esm/types/stock/functions.d.ts +0 -7
  34. package/dist/esm/types/stock/validation.d.ts +0 -11
  35. package/dist/esm/types/store/persistConfig.d.ts +0 -8
  36. package/dist/esm/types/store/reducers.d.ts +0 -4
  37. package/dist/esm/types/store/root/actions.d.ts +0 -5
  38. package/dist/esm/types/store/root/reducer.d.ts +0 -4
  39. package/dist/esm/types/store/root/reducer.test.d.ts +0 -1
  40. package/dist/esm/types/store/root/selector.test.d.ts +0 -1
  41. package/dist/esm/types/store/root/selectors.d.ts +0 -7
  42. package/dist/esm/types/utils/I18n.d.ts +0 -27
  43. package/dist/esm/types/utils/I18n.test.d.ts +0 -1
  44. package/dist/esm/types/utils/constants.d.ts +0 -32
  45. package/dist/esm/types/utils/contextHandler.d.ts +0 -4
  46. package/dist/esm/types/utils/types.d.ts +0 -46
  47. package/dist/esm/types/utils/util.d.ts +0 -22
  48. package/dist/esm/types/utils/util.test.d.ts +0 -1
  49. package/dist/esm/types/wrapper/wrapperUtil.d.ts +0 -29
  50. package/dist/esm/types/wrapper/wrapperUtil.test.d.ts +0 -1
@@ -1,7 +0,0 @@
1
- import { PathModifiersType, ReduxPath, ReduxPathTypeEnum } from '../../utils/types';
2
- import { RootStateType } from './reducer';
3
- export declare const getState: (state: any) => RootStateType;
4
- export declare const getValue: (state: any, store: string, path: string) => any;
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,27 +0,0 @@
1
- interface I18nResources {
2
- [key: string]: {
3
- translation: {
4
- [key: string]: string;
5
- };
6
- };
7
- }
8
- interface I18nProps {
9
- language?: string;
10
- resources?: I18nResources;
11
- keyPrefix?: string;
12
- keyPostfix?: string;
13
- nonExistsHandler?: (key: string) => void;
14
- }
15
- export default class I18n {
16
- language: string;
17
- languages: string[];
18
- resources?: I18nResources;
19
- keyPrefix?: string;
20
- keyPostfix?: string;
21
- nonExistsHandler?: (key: string) => void;
22
- availableLanguageKey?: string;
23
- constructor({ language, resources, nonExistsHandler, keyPrefix, keyPostfix }: I18nProps);
24
- getLocales: () => string;
25
- t: (key: any, options?: any, language?: string | null | undefined) => any;
26
- }
27
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,32 +0,0 @@
1
- export declare const SEPARATOR = "/";
2
- export declare const STORE_ERROR_POSTFIX = ".error";
3
- export declare const STORE_TOUCH_POSTFIX = ".touch";
4
- export declare const PATH_MODIFIERS_KEY = "$pathModifiers";
5
- export declare const MODIFIER_KEY = "$modifier";
6
- export declare const ACTION_KEY = "$action";
7
- export declare const REF_ASSETS = "$assetsRef";
8
- export declare const REF_LOCALES = "$locales";
9
- export declare const REF_VALIDATES = "$validations";
10
- export declare const STYLE_WEB_NAME = "styleWeb";
11
- export declare const STYLE_RN_NAME = "styleRN";
12
- export declare const REDUX_GET_FUNCTION = "get";
13
- export declare const REDUX_SET_FUNCTION = "set";
14
- export declare const REDUX_FUNCTIONS: string[];
15
- export declare const PATHNAME = "path";
16
- export declare const SIMPLE_DATA_TYPES: string[];
17
- export declare const V_CHILDREN_NAME = "$children";
18
- export declare const V_COMP_NAME = "$comp";
19
- export declare const LIST_SEMAPHORE = "$isList";
20
- export declare const LIST_ITEM = "$listItem";
21
- export declare const LIST_PAGE = "$page";
22
- export declare const LIST_ITEM_PER_PAGE = "$itemPerPage";
23
- export declare const LIST_LENGTH = "$listLength";
24
- export declare const LIST_ITEM_PER_PAGE_DEFAULT = 10;
25
- export declare const REDUX_PATHS = "$$reduxPaths";
26
- export declare const V_CHILDREN_PREFIX = "$child";
27
- export declare const PARENT_PROP_NAME = "__parentprop";
28
- export declare const CURRENT_PATH_NAME = "__currentPaths";
29
- export declare const REDUX_GET_SUBSCRIBERS_NAME = "__subscriberPaths";
30
- export declare const UNDEFINED_COMP_NAME = "_Undefined";
31
- export declare const PRIMITIVE_COMP_NAME = "_PrimitiveProp";
32
- export declare const FRAGMENT_COMP_NAME = "Fragment";
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import Stock from 'stock/Stock';
3
- export declare const StockContext: import("react").Context<Stock | null>;
4
- export declare const PathModifierContext: import("react").Context<{}>;
@@ -1,46 +0,0 @@
1
- import React from 'react';
2
- import * as c from './constants';
3
- export declare type UIDefinition = any;
4
- export declare type Path = string;
5
- export declare type ArraysType = any[];
6
- export declare type WrapperType = React.ElementType;
7
- export declare type PropValue = PropsType | ArraysType | string | null | boolean | number | undefined | PathModifiersType;
8
- export interface PathModifierType {
9
- path: string;
10
- }
11
- export interface PathModifiersType {
12
- [key: string]: PathModifierType;
13
- }
14
- export interface PropsType {
15
- [key: string]: PropValue;
16
- [c.PATH_MODIFIERS_KEY]?: PathModifiersType;
17
- }
18
- export interface PathType {
19
- path: string[];
20
- level: number;
21
- }
22
- export declare type PathsType = PathType[];
23
- export interface ValidationType {
24
- store: string;
25
- path: string;
26
- schema: any;
27
- }
28
- export declare enum ReduxPathTypeEnum {
29
- ERROR = "ERROR",
30
- TOUCH = "TOUCH",
31
- NORMAL = "NORMAL"
32
- }
33
- export interface ReduxPath {
34
- store?: string;
35
- path?: string;
36
- type?: ReduxPathTypeEnum;
37
- jsonataDef?: string;
38
- }
39
- export declare type JsonUIComponentType = React.FC<any> | typeof React.Component | ((prop: any) => number | null | undefined | string);
40
- export interface JsonUIComponentsType {
41
- [key: string]: JsonUIComponentType;
42
- }
43
- export declare type JsonUIFunctionType = (attr: any, props: any, callerArgs: any, stock: any) => Promise<void> | void | any;
44
- export interface JsonUIFunctions {
45
- [key: string]: JsonUIFunctionType;
46
- }
@@ -1,22 +0,0 @@
1
- export declare const findLastIndex: (arr: any[], func: any) => number;
2
- export declare const drop: (arr: any[], n?: number) => any[];
3
- export declare const isNumber: (a: any) => boolean;
4
- export declare const jsonPointerFix: (path?: string | undefined) => string;
5
- export declare const jsonPointerGet: (json: any, path?: string | undefined) => any;
6
- export declare const jsonPointerSet: (json: any, path?: string | undefined, value?: any) => any;
7
- export declare const pathArrayToPathString: (array: (string | number)[]) => string;
8
- export declare const pathArrayToJsonPointer: (array: (string | number)[]) => string;
9
- export declare function isOnlyObject(item: any): boolean;
10
- export declare const mergePath: (target: any, newState: any) => any;
11
- export declare const changeRelativePath: (path: string) => string;
12
- /**
13
- * Deep merge two objects.
14
- * @param target
15
- * @param ...sources
16
- */
17
- export declare function mergeDeep(target: any, ...sources: any): any;
18
- export declare const collectObjMerge: (refConst: string, json: any) => {};
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 +0,0 @@
1
- export {};
@@ -1,29 +0,0 @@
1
- /// <reference types="react" />
2
- import * as c from '../utils/constants';
3
- import Stock from '../stock/Stock';
4
- import { PathModifiersType, PropsType, ReduxPath, WrapperType } from '../utils/types';
5
- interface OwnTraverse {
6
- key: string;
7
- value: PropsType;
8
- path: string[];
9
- parent: PropsType;
10
- level: number;
11
- }
12
- export declare const getFilteredPath: ({ [c.PARENT_PROP_NAME]: parentComp, ...propsNew }: PropsType, func: (filterProps: OwnTraverse) => boolean) => OwnTraverse[];
13
- export declare const actionBuilder: (props: PropsType, stock: InstanceType<typeof Stock>) => void;
14
- export declare const calculatePropsFromModifier: (props: PropsType, stock: InstanceType<typeof Stock>) => ReduxPath[];
15
- export declare const getCurrentPaths: (props: PropsType, pathModifier: PathModifiersType) => PathModifiersType;
16
- export declare const normalisePrimitives: (props: PropsType, parentComp?: any) => any;
17
- export declare const getRootWrapperProps: (props: PropsType, stock: InstanceType<typeof Stock>) => void;
18
- export declare const isChildrenProp: (propName?: string | undefined) => boolean;
19
- export declare const getParentProps: (props: PropsType) => PropsType;
20
- export declare const getPropsChildrenFilter: ({ props, filter }: {
21
- props: PropsType;
22
- filter: 'onlyChildren' | 'withoutChildren';
23
- }) => PropsType;
24
- export declare const getChildrensForRoot: (props: PropsType, children: any, Wrapper: WrapperType) => JSX.Element | JSX.Element[] | undefined;
25
- export declare const generateChildren: (props: PropsType, { Wrapper }: InstanceType<typeof Stock>) => import("../utils/types").PropValue | JSX.Element;
26
- export declare const generateNewChildren: (props: PropsType, { Wrapper }: InstanceType<typeof Stock>) => JSX.Element | JSX.Element[] | undefined;
27
- export declare const isTechnicalProp: (propName: string) => boolean;
28
- export declare const removeTechnicalProps: (changeableProps: any) => any;
29
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- import Stock from './stock/Stock';
2
- import * as wrapperUtil from './wrapper/wrapperUtil';
3
- import * as constants from './utils/constants';
4
- import * as util from './utils/util';
5
- import I18n from './utils/I18n';
6
- import { StockContext, PathModifierContext } from './utils/contextHandler';
7
- import { compSelectorHook } from './store/root/selectors';
8
- import stockFunctions from './stock/functions';
9
- import storeReducers from './store/reducers';
10
- import { UIDefinition, Path, ArraysType, WrapperType, PropValue, PathModifierType, PathModifiersType, PropsType, PathType, PathsType, ValidationType, ReduxPathTypeEnum, ReduxPath, JsonUIComponentsType, JsonUIFunctionType, JsonUIFunctions } from './utils/types';
11
- export { Stock, I18n, wrapperUtil, util, constants, StockContext, PathModifierContext, compSelectorHook, stockFunctions, storeReducers };
12
- export type { UIDefinition, Path, ArraysType, WrapperType, PropValue, PathModifierType, PathModifiersType, PropsType, PathType, PathsType, ValidationType, ReduxPathTypeEnum, ReduxPath, JsonUIComponentsType, JsonUIFunctionType, JsonUIFunctions, };
@@ -1,24 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { JsonUIComponentsType, JsonUIComponentType, JsonUIFunctions, JsonUIFunctionType } from 'utils/types';
3
- interface NewStockType {
4
- components: JsonUIComponentsType;
5
- functions: JsonUIFunctions;
6
- }
7
- declare type InitType = (prop: NewStockType) => void;
8
- declare type RegisterFunctionType = (key: string, value: JsonUIFunctionType) => void;
9
- declare type RegisterComponentType = (key: string, value: JsonUIComponentType) => void;
10
- declare type CallFunctionType = (name: string, attr?: any, props?: any, callerArgs?: any) => any;
11
- declare type GetComponentType = (componentName: string) => ReactNode;
12
- export default class Stock {
13
- stock: NewStockType;
14
- Wrapper: React.ElementType;
15
- reduxStore: any;
16
- validations: any;
17
- constructor(newStock: NewStockType, Wrapper: React.ElementType, reduxStore: any);
18
- init: InitType;
19
- registerComponent: RegisterComponentType;
20
- registerFunction: RegisterFunctionType;
21
- callFunction: CallFunctionType;
22
- getComponent: GetComponentType;
23
- }
24
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import { JsonUIFunctions, JsonUIFunctionType } from 'utils/types';
2
- export declare const deletePersistDataStore: JsonUIFunctionType;
3
- declare const appRootFunctions: JsonUIFunctions;
4
- export default appRootFunctions;
@@ -1,7 +0,0 @@
1
- import { JsonUIFunctionType } from '../utils/types';
2
- declare const _default: {
3
- get: JsonUIFunctionType;
4
- set: JsonUIFunctionType;
5
- jsonata: JsonUIFunctionType;
6
- };
7
- export default _default;
@@ -1,11 +0,0 @@
1
- import { ErrorObject } from 'ajv';
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) => {
8
- store: string;
9
- valid: boolean;
10
- value: any;
11
- };
@@ -1,8 +0,0 @@
1
- /// <reference types="redux-persist/types/types" />
2
- /// <reference types="redux-persist" />
3
- declare const _default: {
4
- key: string;
5
- whitelist: string[];
6
- transforms: import("redux-persist").Transform<unknown, unknown, any, any>[];
7
- };
8
- export default _default;
@@ -1,4 +0,0 @@
1
- declare const rootReducer: import("redux").Reducer<import("redux").CombinedState<{
2
- root: any;
3
- }>, import("redux").AnyAction>;
4
- export default rootReducer;
@@ -1,5 +0,0 @@
1
- export declare const DATA_UPDATE = "DATA_UPDATE";
2
- export declare const set: (payload: any) => {
3
- type: string;
4
- payload: any;
5
- };
@@ -1,4 +0,0 @@
1
- import { AnyAction } from 'redux';
2
- export declare type RootStateType = any;
3
- declare const reducer: (state: any, action: AnyAction) => any;
4
- export default reducer;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- import { PathModifiersType, ReduxPath, ReduxPathTypeEnum } from '../../utils/types';
2
- import { RootStateType } from './reducer';
3
- export declare const getState: (state: any) => RootStateType;
4
- export declare const getValue: (state: any, store: string, path: string) => any;
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,27 +0,0 @@
1
- interface I18nResources {
2
- [key: string]: {
3
- translation: {
4
- [key: string]: string;
5
- };
6
- };
7
- }
8
- interface I18nProps {
9
- language?: string;
10
- resources?: I18nResources;
11
- keyPrefix?: string;
12
- keyPostfix?: string;
13
- nonExistsHandler?: (key: string) => void;
14
- }
15
- export default class I18n {
16
- language: string;
17
- languages: string[];
18
- resources?: I18nResources;
19
- keyPrefix?: string;
20
- keyPostfix?: string;
21
- nonExistsHandler?: (key: string) => void;
22
- availableLanguageKey?: string;
23
- constructor({ language, resources, nonExistsHandler, keyPrefix, keyPostfix }: I18nProps);
24
- getLocales: () => string;
25
- t: (key: any, options?: any, language?: string | null | undefined) => any;
26
- }
27
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,32 +0,0 @@
1
- export declare const SEPARATOR = "/";
2
- export declare const STORE_ERROR_POSTFIX = ".error";
3
- export declare const STORE_TOUCH_POSTFIX = ".touch";
4
- export declare const PATH_MODIFIERS_KEY = "$pathModifiers";
5
- export declare const MODIFIER_KEY = "$modifier";
6
- export declare const ACTION_KEY = "$action";
7
- export declare const REF_ASSETS = "$assetsRef";
8
- export declare const REF_LOCALES = "$locales";
9
- export declare const REF_VALIDATES = "$validations";
10
- export declare const STYLE_WEB_NAME = "styleWeb";
11
- export declare const STYLE_RN_NAME = "styleRN";
12
- export declare const REDUX_GET_FUNCTION = "get";
13
- export declare const REDUX_SET_FUNCTION = "set";
14
- export declare const REDUX_FUNCTIONS: string[];
15
- export declare const PATHNAME = "path";
16
- export declare const SIMPLE_DATA_TYPES: string[];
17
- export declare const V_CHILDREN_NAME = "$children";
18
- export declare const V_COMP_NAME = "$comp";
19
- export declare const LIST_SEMAPHORE = "$isList";
20
- export declare const LIST_ITEM = "$listItem";
21
- export declare const LIST_PAGE = "$page";
22
- export declare const LIST_ITEM_PER_PAGE = "$itemPerPage";
23
- export declare const LIST_LENGTH = "$listLength";
24
- export declare const LIST_ITEM_PER_PAGE_DEFAULT = 10;
25
- export declare const REDUX_PATHS = "$$reduxPaths";
26
- export declare const V_CHILDREN_PREFIX = "$child";
27
- export declare const PARENT_PROP_NAME = "__parentprop";
28
- export declare const CURRENT_PATH_NAME = "__currentPaths";
29
- export declare const REDUX_GET_SUBSCRIBERS_NAME = "__subscriberPaths";
30
- export declare const UNDEFINED_COMP_NAME = "_Undefined";
31
- export declare const PRIMITIVE_COMP_NAME = "_PrimitiveProp";
32
- export declare const FRAGMENT_COMP_NAME = "Fragment";
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import Stock from 'stock/Stock';
3
- export declare const StockContext: import("react").Context<Stock | null>;
4
- export declare const PathModifierContext: import("react").Context<{}>;
@@ -1,46 +0,0 @@
1
- import React from 'react';
2
- import * as c from './constants';
3
- export declare type UIDefinition = any;
4
- export declare type Path = string;
5
- export declare type ArraysType = any[];
6
- export declare type WrapperType = React.ElementType;
7
- export declare type PropValue = PropsType | ArraysType | string | null | boolean | number | undefined | PathModifiersType;
8
- export interface PathModifierType {
9
- path: string;
10
- }
11
- export interface PathModifiersType {
12
- [key: string]: PathModifierType;
13
- }
14
- export interface PropsType {
15
- [key: string]: PropValue;
16
- [c.PATH_MODIFIERS_KEY]?: PathModifiersType;
17
- }
18
- export interface PathType {
19
- path: string[];
20
- level: number;
21
- }
22
- export declare type PathsType = PathType[];
23
- export interface ValidationType {
24
- store: string;
25
- path: string;
26
- schema: any;
27
- }
28
- export declare enum ReduxPathTypeEnum {
29
- ERROR = "ERROR",
30
- TOUCH = "TOUCH",
31
- NORMAL = "NORMAL"
32
- }
33
- export interface ReduxPath {
34
- store?: string;
35
- path?: string;
36
- type?: ReduxPathTypeEnum;
37
- jsonataDef?: string;
38
- }
39
- export declare type JsonUIComponentType = React.FC<any> | typeof React.Component | ((prop: any) => number | null | undefined | string);
40
- export interface JsonUIComponentsType {
41
- [key: string]: JsonUIComponentType;
42
- }
43
- export declare type JsonUIFunctionType = (attr: any, props: any, callerArgs: any, stock: any) => Promise<void> | void | any;
44
- export interface JsonUIFunctions {
45
- [key: string]: JsonUIFunctionType;
46
- }
@@ -1,22 +0,0 @@
1
- export declare const findLastIndex: (arr: any[], func: any) => number;
2
- export declare const drop: (arr: any[], n?: number) => any[];
3
- export declare const isNumber: (a: any) => boolean;
4
- export declare const jsonPointerFix: (path?: string | undefined) => string;
5
- export declare const jsonPointerGet: (json: any, path?: string | undefined) => any;
6
- export declare const jsonPointerSet: (json: any, path?: string | undefined, value?: any) => any;
7
- export declare const pathArrayToPathString: (array: (string | number)[]) => string;
8
- export declare const pathArrayToJsonPointer: (array: (string | number)[]) => string;
9
- export declare function isOnlyObject(item: any): boolean;
10
- export declare const mergePath: (target: any, newState: any) => any;
11
- export declare const changeRelativePath: (path: string) => string;
12
- /**
13
- * Deep merge two objects.
14
- * @param target
15
- * @param ...sources
16
- */
17
- export declare function mergeDeep(target: any, ...sources: any): any;
18
- export declare const collectObjMerge: (refConst: string, json: any) => {};
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 +0,0 @@
1
- export {};
@@ -1,29 +0,0 @@
1
- /// <reference types="react" />
2
- import * as c from '../utils/constants';
3
- import Stock from '../stock/Stock';
4
- import { PathModifiersType, PropsType, ReduxPath, WrapperType } from '../utils/types';
5
- interface OwnTraverse {
6
- key: string;
7
- value: PropsType;
8
- path: string[];
9
- parent: PropsType;
10
- level: number;
11
- }
12
- export declare const getFilteredPath: ({ [c.PARENT_PROP_NAME]: parentComp, ...propsNew }: PropsType, func: (filterProps: OwnTraverse) => boolean) => OwnTraverse[];
13
- export declare const actionBuilder: (props: PropsType, stock: InstanceType<typeof Stock>) => void;
14
- export declare const calculatePropsFromModifier: (props: PropsType, stock: InstanceType<typeof Stock>) => ReduxPath[];
15
- export declare const getCurrentPaths: (props: PropsType, pathModifier: PathModifiersType) => PathModifiersType;
16
- export declare const normalisePrimitives: (props: PropsType, parentComp?: any) => any;
17
- export declare const getRootWrapperProps: (props: PropsType, stock: InstanceType<typeof Stock>) => void;
18
- export declare const isChildrenProp: (propName?: string | undefined) => boolean;
19
- export declare const getParentProps: (props: PropsType) => PropsType;
20
- export declare const getPropsChildrenFilter: ({ props, filter }: {
21
- props: PropsType;
22
- filter: 'onlyChildren' | 'withoutChildren';
23
- }) => PropsType;
24
- export declare const getChildrensForRoot: (props: PropsType, children: any, Wrapper: WrapperType) => JSX.Element | JSX.Element[] | undefined;
25
- export declare const generateChildren: (props: PropsType, { Wrapper }: InstanceType<typeof Stock>) => import("../utils/types").PropValue | JSX.Element;
26
- export declare const generateNewChildren: (props: PropsType, { Wrapper }: InstanceType<typeof Stock>) => JSX.Element | JSX.Element[] | undefined;
27
- export declare const isTechnicalProp: (propName: string) => boolean;
28
- export declare const removeTechnicalProps: (changeableProps: any) => any;
29
- export {};
@@ -1 +0,0 @@
1
- export {};