@jsonui/core 0.0.11 → 0.1.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.
Files changed (86) hide show
  1. package/README.md +20 -0
  2. package/dist/cjs/index.js +14600 -0
  3. package/dist/cjs/index.js.map +1 -0
  4. package/dist/cjs/types/index.d.ts +13 -0
  5. package/dist/{stock → cjs/types/stock}/Stock.d.ts +27 -27
  6. package/dist/cjs/types/stock/Stock.test.d.ts +1 -0
  7. package/dist/{stock → cjs/types/stock}/appRootFunctions.d.ts +7 -7
  8. package/dist/{stock → cjs/types/stock}/functions.d.ts +7 -7
  9. package/dist/{stock → cjs/types/stock}/validation.d.ts +7 -7
  10. package/dist/{store → cjs/types/store}/persistConfig.d.ts +8 -8
  11. package/dist/{store → cjs/types/store}/reducers.d.ts +4 -4
  12. package/dist/{store → cjs/types/store}/root/actions.d.ts +10 -10
  13. package/dist/{store → cjs/types/store}/root/reducer.d.ts +4 -4
  14. package/dist/cjs/types/store/root/reducer.test.d.ts +1 -0
  15. package/dist/cjs/types/store/root/selector.test.d.ts +1 -0
  16. package/dist/{store → cjs/types/store}/root/selectors.d.ts +11 -11
  17. package/dist/{util → cjs/types/utils}/I18n.d.ts +27 -27
  18. package/dist/cjs/types/utils/I18n.test.d.ts +1 -0
  19. package/dist/{utils → cjs/types/utils}/constants.d.ts +23 -19
  20. package/dist/{utils → cjs/types/utils}/contextHandler.d.ts +4 -4
  21. package/dist/{util → cjs/types/utils}/jsonRefResolver.d.ts +2 -2
  22. package/dist/{utils → cjs/types/utils}/types.d.ts +27 -27
  23. package/dist/cjs/types/utils/util.d.ts +18 -0
  24. package/dist/cjs/types/utils/util.test.d.ts +1 -0
  25. package/dist/{wrapper → cjs/types/wrapper}/wrapperUtil.d.ts +15 -15
  26. package/dist/esm/index.js +14600 -0
  27. package/dist/esm/index.js.map +1 -0
  28. package/dist/esm/types/index.d.ts +13 -0
  29. package/dist/esm/types/stock/Stock.d.ts +27 -0
  30. package/dist/esm/types/stock/Stock.test.d.ts +1 -0
  31. package/dist/esm/types/stock/appRootFunctions.d.ts +7 -0
  32. package/dist/esm/types/stock/functions.d.ts +7 -0
  33. package/dist/esm/types/stock/validation.d.ts +7 -0
  34. package/dist/esm/types/store/persistConfig.d.ts +8 -0
  35. package/dist/esm/types/store/reducers.d.ts +4 -0
  36. package/dist/esm/types/store/root/actions.d.ts +10 -0
  37. package/dist/esm/types/store/root/reducer.d.ts +4 -0
  38. package/dist/esm/types/store/root/reducer.test.d.ts +1 -0
  39. package/dist/esm/types/store/root/selector.test.d.ts +1 -0
  40. package/dist/esm/types/store/root/selectors.d.ts +11 -0
  41. package/dist/{utils → esm/types/utils}/I18n.d.ts +27 -27
  42. package/dist/esm/types/utils/I18n.test.d.ts +1 -0
  43. package/dist/{util → esm/types/utils}/constants.d.ts +23 -19
  44. package/dist/esm/types/utils/contextHandler.d.ts +4 -0
  45. package/dist/{utils → esm/types/utils}/jsonRefResolver.d.ts +2 -2
  46. package/dist/{util → esm/types/utils}/types.d.ts +27 -27
  47. package/dist/esm/types/utils/util.d.ts +18 -0
  48. package/dist/esm/types/utils/util.test.d.ts +1 -0
  49. package/dist/esm/types/wrapper/wrapperUtil.d.ts +15 -0
  50. package/dist/index.d.ts +273 -14
  51. package/package.json +22 -9
  52. package/.eslintrc.json +0 -51
  53. package/.prettierrc +0 -6
  54. package/dist/index.cjs +0 -2
  55. package/dist/index.cjs.map +0 -1
  56. package/dist/index.modern.js +0 -2
  57. package/dist/index.modern.js.map +0 -1
  58. package/dist/index.module.mjs +0 -2
  59. package/dist/index.module.mjs.map +0 -1
  60. package/dist/index.umd.js +0 -2
  61. package/dist/index.umd.js.map +0 -1
  62. package/dist/store/renderers/actions.d.ts +0 -10
  63. package/dist/store/renderers/reducer.d.ts +0 -2
  64. package/dist/store/renderers/selectors.d.ts +0 -5
  65. package/dist/util/contextHandler.d.ts +0 -3
  66. package/dist/util/util.d.ts +0 -22
  67. package/dist/utils/util.d.ts +0 -22
  68. package/src/index.ts +0 -30
  69. package/src/stock/Stock.ts +0 -75
  70. package/src/stock/appRootFunctions.ts +0 -15
  71. package/src/stock/functions.ts +0 -25
  72. package/src/stock/validation.ts +0 -30
  73. package/src/store/persistConfig.ts +0 -20
  74. package/src/store/reducers.ts +0 -6
  75. package/src/store/root/actions.ts +0 -12
  76. package/src/store/root/reducer.ts +0 -71
  77. package/src/store/root/selectors.ts +0 -61
  78. package/src/typings/key-value-replace.d.ts +0 -8
  79. package/src/utils/I18n.ts +0 -99
  80. package/src/utils/constants.ts +0 -21
  81. package/src/utils/contextHandler.ts +0 -5
  82. package/src/utils/jsonRefResolver.ts +0 -88
  83. package/src/utils/types.ts +0 -35
  84. package/src/utils/util.ts +0 -142
  85. package/src/wrapper/wrapperUtil.tsx +0 -139
  86. package/tsconfig.json +0 -5
@@ -0,0 +1,13 @@
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 { genAllStateProps } from './store/root/selectors';
8
+ import stockFunctions from './stock/functions';
9
+ import persistConfig from './store/persistConfig';
10
+ 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, genAllStateProps, stockFunctions, persistConfig, storeReducers, };
@@ -0,0 +1,27 @@
1
+ import { ReactNode } from 'react';
2
+ import { JsonUIFunctions, JsonUIFunctionType } from './appRootFunctions';
3
+ interface JsonUIComponentsType {
4
+ [key: string]: ReactNode;
5
+ }
6
+ interface NewStockType {
7
+ components: JsonUIComponentsType;
8
+ functions: JsonUIFunctions;
9
+ }
10
+ declare type InitType = (prop: NewStockType) => void;
11
+ declare type RegisterFunctionType = (key: string, value: JsonUIFunctionType) => void;
12
+ declare type RegisterComponentType = (key: string, value: ReactNode) => void;
13
+ declare type CallFunctionType = (name: string, attr?: any, props?: any, callerArgs?: any) => any;
14
+ declare type GetComponentType = (componentName: string) => ReactNode;
15
+ export default class Stock {
16
+ stock: NewStockType;
17
+ Wrapper: ReactNode;
18
+ reduxStore: any;
19
+ validations: any;
20
+ constructor(newStock: NewStockType, Wrapper: ReactNode, reduxStore: any);
21
+ init: InitType;
22
+ registerComponent: RegisterComponentType;
23
+ registerFunction: RegisterFunctionType;
24
+ callFunction: CallFunctionType;
25
+ getComponent: GetComponentType;
26
+ }
27
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
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
+ }
5
+ export declare const deletePersistDataStore: JsonUIFunctionType;
6
+ declare const appRootFunctions: JsonUIFunctions;
7
+ export default appRootFunctions;
@@ -0,0 +1,7 @@
1
+ import { JsonUIFunctionType } from './appRootFunctions';
2
+ declare const _default: {
3
+ getStateValue: JsonUIFunctionType;
4
+ get: JsonUIFunctionType;
5
+ set: JsonUIFunctionType;
6
+ };
7
+ export default _default;
@@ -0,0 +1,7 @@
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) => {
4
+ store: string;
5
+ valid: boolean;
6
+ value: {} | null;
7
+ };
@@ -0,0 +1,8 @@
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;
@@ -0,0 +1,4 @@
1
+ declare const rootReducer: import("redux").Reducer<import("redux").CombinedState<{
2
+ root: any;
3
+ }>, import("redux").AnyAction>;
4
+ export default rootReducer;
@@ -0,0 +1,10 @@
1
+ export declare const DATA_UPDATE = "DATA_UPDATE";
2
+ export declare const PURGE = "PURGE";
3
+ export declare const set: (payload: any) => {
4
+ type: string;
5
+ payload: any;
6
+ };
7
+ export declare const purge: (payload: any) => {
8
+ type: string;
9
+ payload: any;
10
+ };
@@ -0,0 +1,4 @@
1
+ import { AnyAction } from 'redux';
2
+ export declare type RootStateType = any;
3
+ declare const reducer: (state: any, action: AnyAction) => any;
4
+ export default reducer;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import { PathModifiersType, PropsType } 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 interface ReduxPathType {
6
+ store: string;
7
+ path: string;
8
+ isError?: boolean;
9
+ }
10
+ export declare const getStateValue: (globalState: any, { store, path, isError }: ReduxPathType, currentPaths: PathModifiersType) => any;
11
+ export declare const genAllStateProps: (globalState: any, props: PropsType) => PropsType;
@@ -1,27 +1,27 @@
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: string, options?: any, language?: string | null | undefined) => string;
26
- }
27
- export {};
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 {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,19 +1,23 @@
1
- export declare const SEPARATOR = "/";
2
- export declare const STORE_ERROR_POSTFIX = ".error";
3
- export declare const PATH_MODIFIERS_KEY = "$pathModifiers";
4
- export declare const MODIFIER_KEY = "$modifier";
5
- export declare const ACTION_KEY = "$action";
6
- export declare const PERSIST_STORAGE_KEY = "$persistStores";
7
- export declare const PERSIST_STORAGE_NAMES: string[];
8
- export declare const REF_ASSETS = "$assetsRef";
9
- export declare const REF_LOCALES = "$locales";
10
- export declare const REF_VALIDATES = "$validations";
11
- export declare const STYLE_WEB_NAME = "styleWeb";
12
- export declare const STYLE_RN_NAME = "styleRn";
13
- export declare const REDUX_FUNCTIONS: string[];
14
- export declare const PATHNAME = "path";
15
- export declare const SIMPLE_DATA_TYPES: string[];
16
- export declare const V_CHILDREN_NAME = "$children";
17
- export declare const V_COMP_NAME = "$comp";
18
- export declare const ITEM_OF_ARRAY = "item";
19
- export declare const PAGINATION_ITEM_PER_PAGE = 1;
1
+ export declare const SEPARATOR = "/";
2
+ export declare const STORE_ERROR_POSTFIX = ".error";
3
+ export declare const PATH_MODIFIERS_KEY = "$pathModifiers";
4
+ export declare const MODIFIER_KEY = "$modifier";
5
+ export declare const ACTION_KEY = "$action";
6
+ export declare const PERSIST_STORAGE_KEY = "$persistStores";
7
+ export declare const PERSIST_STORAGE_NAMES: string[];
8
+ export declare const REF_ASSETS = "$assetsRef";
9
+ export declare const REF_LOCALES = "$locales";
10
+ export declare const REF_VALIDATES = "$validations";
11
+ export declare const STYLE_WEB_NAME = "styleWeb";
12
+ export declare const STYLE_RN_NAME = "styleRN";
13
+ export declare const REDUX_FUNCTIONS: string[];
14
+ export declare const PATHNAME = "path";
15
+ export declare const SIMPLE_DATA_TYPES: string[];
16
+ export declare const V_CHILDREN_NAME = "$children";
17
+ export declare const V_COMP_NAME = "$comp";
18
+ export declare const LIST_SEMAPHORE = "$isList";
19
+ export declare const LIST_ITEM = "$listItem";
20
+ export declare const LIST_PAGE = "$page";
21
+ export declare const LIST_ITEM_PER_PAGE = "$itemPerPage";
22
+ export declare const LIST_LENGTH = "$listLength";
23
+ export declare const LIST_ITEM_PER_PAGE_DEFAULT = 10;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import Stock from 'stock/Stock';
3
+ export declare const StockContext: import("react").Context<typeof Stock | null>;
4
+ export declare const PathModifierContext: import("react").Context<{}>;
@@ -1,2 +1,2 @@
1
- export declare const collectJsonKeys: (refConst: string, json: any) => {};
2
- export declare const getRefs: (refConst: string, json: any, projectPath?: string) => any[];
1
+ export declare const collectJsonKeys: (refConst: string, json: any) => {};
2
+ export declare const getRefs: (refConst: string, json: any, projectPath?: string) => any[];
@@ -1,27 +1,27 @@
1
- import React from 'react';
2
- import * as c from 'util/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
- }
1
+ import React from 'react';
2
+ import * as c from 'utils/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
+ }
@@ -0,0 +1,18 @@
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 jsonPointerGet: (json: any, path?: string | undefined) => any;
5
+ export declare const jsonPointerSet: (json: any, path?: string | undefined, value?: any) => any;
6
+ export declare const pathArrayToPathString: (array: (string | number)[]) => string;
7
+ export declare const pathArrayToJsonPointer: (array: (string | number)[]) => string;
8
+ export declare function isOnlyObject(item: any): boolean;
9
+ export declare const mergePath: (target: any, newState: any) => any;
10
+ export declare const changeRelativePath: (path: string) => string;
11
+ /**
12
+ * Deep merge two objects.
13
+ * @param target
14
+ * @param ...sources
15
+ */
16
+ export declare function mergeDeep(target: any, ...sources: any): any;
17
+ export declare const collectObjMerge: (refConst: string, json: any) => {};
18
+ export declare const collectObjToArray: (refConst: string, json: any) => any[];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import Stock from '../stock/Stock';
3
+ import { PathModifiersType, PropsType, WrapperType } from '../utils/types';
4
+ export declare const actionBuilder: (props: PropsType, stock: InstanceType<typeof Stock>) => void;
5
+ export declare const modifierBuilder: (props: PropsType, stock: InstanceType<typeof Stock>) => void;
6
+ export declare const pathModifierBuilder: (props: PropsType, pathModifier: PathModifiersType) => {
7
+ currentPaths: PathModifiersType;
8
+ } | undefined;
9
+ export declare const getWrapperProps: (props: PropsType, parentComp?: any) => any;
10
+ export declare const getRootWrapperProps: (props: PropsType, stock: InstanceType<typeof Stock>) => {
11
+ [x: string]: import("../utils/types").PropValue;
12
+ $pathModifiers?: PathModifiersType | undefined;
13
+ };
14
+ export declare const getChildrensForRoot: (props: PropsType, children: any, Wrapper: WrapperType) => JSX.Element | JSX.Element[] | undefined;
15
+ export declare const generateChildren: (props: PropsType, { Wrapper }: InstanceType<typeof Stock>) => import("../utils/types").PropValue | JSX.Element;
package/dist/index.d.ts CHANGED
@@ -1,14 +1,273 @@
1
- import Stock from './stock/Stock';
2
- import * as wrapperUtil from './wrapper/wrapperUtil';
3
- import * as constants from './utils/constants';
4
- import * as jsonRefResolver from './utils/jsonRefResolver';
5
- import * as util from './utils/util';
6
- import I18n from './utils/I18n';
7
- import { StockContext, PathModifierContext } from './utils/contextHandler';
8
- import { genAllStateProps } from './store/root/selectors';
9
- import stockFunctions from './stock/functions';
10
- import persistConfig from './store/persistConfig';
11
- import storeReducers from './store/reducers';
12
- import appRootFunctions from './stock/appRootFunctions';
13
- export * from './utils/types';
14
- export { Stock, I18n, wrapperUtil, util, constants, jsonRefResolver, StockContext, PathModifierContext, appRootFunctions, genAllStateProps, stockFunctions, persistConfig, storeReducers, };
1
+ /// <reference types="react" />
2
+ /// <reference types="redux-persist/types/types" />
3
+ /// <reference types="redux-persist" />
4
+ import * as react from 'react';
5
+ import react__default, { ReactNode } from 'react';
6
+ import * as c from 'utils/constants';
7
+ import Stock$1 from 'stock/Stock';
8
+ import * as redux_persist from 'redux-persist';
9
+ import * as redux from 'redux';
10
+
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
+ interface NewStockType {
21
+ components: JsonUIComponentsType;
22
+ functions: JsonUIFunctions;
23
+ }
24
+ declare type InitType = (prop: NewStockType) => void;
25
+ declare type RegisterFunctionType = (key: string, value: JsonUIFunctionType) => void;
26
+ declare type RegisterComponentType = (key: string, value: ReactNode) => void;
27
+ declare type CallFunctionType = (name: string, attr?: any, props?: any, callerArgs?: any) => any;
28
+ declare type GetComponentType = (componentName: string) => ReactNode;
29
+ declare class Stock {
30
+ stock: NewStockType;
31
+ Wrapper: ReactNode;
32
+ reduxStore: any;
33
+ validations: any;
34
+ constructor(newStock: NewStockType, Wrapper: ReactNode, reduxStore: any);
35
+ init: InitType;
36
+ registerComponent: RegisterComponentType;
37
+ registerFunction: RegisterFunctionType;
38
+ callFunction: CallFunctionType;
39
+ getComponent: GetComponentType;
40
+ }
41
+
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
+
68
+ declare const actionBuilder: (props: PropsType, stock: InstanceType<typeof Stock>) => void;
69
+ declare const modifierBuilder: (props: PropsType, stock: InstanceType<typeof Stock>) => void;
70
+ declare const pathModifierBuilder: (props: PropsType, pathModifier: PathModifiersType) => {
71
+ currentPaths: PathModifiersType;
72
+ } | undefined;
73
+ declare const getWrapperProps: (props: PropsType, parentComp?: any) => any;
74
+ declare const getRootWrapperProps: (props: PropsType, stock: InstanceType<typeof Stock>) => {
75
+ [x: string]: PropValue;
76
+ $pathModifiers?: PathModifiersType | undefined;
77
+ };
78
+ declare const getChildrensForRoot: (props: PropsType, children: any, Wrapper: WrapperType) => JSX.Element | JSX.Element[] | undefined;
79
+ declare const generateChildren: (props: PropsType, { Wrapper }: InstanceType<typeof Stock>) => PropValue | JSX.Element;
80
+
81
+ declare const wrapperUtil_d_actionBuilder: typeof actionBuilder;
82
+ declare const wrapperUtil_d_modifierBuilder: typeof modifierBuilder;
83
+ declare const wrapperUtil_d_pathModifierBuilder: typeof pathModifierBuilder;
84
+ declare const wrapperUtil_d_getWrapperProps: typeof getWrapperProps;
85
+ declare const wrapperUtil_d_getRootWrapperProps: typeof getRootWrapperProps;
86
+ declare const wrapperUtil_d_getChildrensForRoot: typeof getChildrensForRoot;
87
+ declare const wrapperUtil_d_generateChildren: typeof generateChildren;
88
+ declare namespace wrapperUtil_d {
89
+ export {
90
+ wrapperUtil_d_actionBuilder as actionBuilder,
91
+ wrapperUtil_d_modifierBuilder as modifierBuilder,
92
+ wrapperUtil_d_pathModifierBuilder as pathModifierBuilder,
93
+ wrapperUtil_d_getWrapperProps as getWrapperProps,
94
+ wrapperUtil_d_getRootWrapperProps as getRootWrapperProps,
95
+ wrapperUtil_d_getChildrensForRoot as getChildrensForRoot,
96
+ wrapperUtil_d_generateChildren as generateChildren,
97
+ };
98
+ }
99
+
100
+ declare const SEPARATOR = "/";
101
+ declare const STORE_ERROR_POSTFIX = ".error";
102
+ declare const PATH_MODIFIERS_KEY = "$pathModifiers";
103
+ declare const MODIFIER_KEY = "$modifier";
104
+ declare const ACTION_KEY = "$action";
105
+ declare const PERSIST_STORAGE_KEY = "$persistStores";
106
+ declare const PERSIST_STORAGE_NAMES: string[];
107
+ declare const REF_ASSETS = "$assetsRef";
108
+ declare const REF_LOCALES = "$locales";
109
+ declare const REF_VALIDATES = "$validations";
110
+ declare const STYLE_WEB_NAME = "styleWeb";
111
+ declare const STYLE_RN_NAME = "styleRN";
112
+ declare const REDUX_FUNCTIONS: string[];
113
+ declare const PATHNAME = "path";
114
+ declare const SIMPLE_DATA_TYPES: string[];
115
+ declare const V_CHILDREN_NAME = "$children";
116
+ declare const V_COMP_NAME = "$comp";
117
+ declare const LIST_SEMAPHORE = "$isList";
118
+ declare const LIST_ITEM = "$listItem";
119
+ declare const LIST_PAGE = "$page";
120
+ declare const LIST_ITEM_PER_PAGE = "$itemPerPage";
121
+ declare const LIST_LENGTH = "$listLength";
122
+ declare const LIST_ITEM_PER_PAGE_DEFAULT = 10;
123
+
124
+ declare const constants_d_SEPARATOR: typeof SEPARATOR;
125
+ declare const constants_d_STORE_ERROR_POSTFIX: typeof STORE_ERROR_POSTFIX;
126
+ declare const constants_d_PATH_MODIFIERS_KEY: typeof PATH_MODIFIERS_KEY;
127
+ declare const constants_d_MODIFIER_KEY: typeof MODIFIER_KEY;
128
+ declare const constants_d_ACTION_KEY: typeof ACTION_KEY;
129
+ declare const constants_d_PERSIST_STORAGE_KEY: typeof PERSIST_STORAGE_KEY;
130
+ declare const constants_d_PERSIST_STORAGE_NAMES: typeof PERSIST_STORAGE_NAMES;
131
+ declare const constants_d_REF_ASSETS: typeof REF_ASSETS;
132
+ declare const constants_d_REF_LOCALES: typeof REF_LOCALES;
133
+ declare const constants_d_REF_VALIDATES: typeof REF_VALIDATES;
134
+ declare const constants_d_STYLE_WEB_NAME: typeof STYLE_WEB_NAME;
135
+ declare const constants_d_STYLE_RN_NAME: typeof STYLE_RN_NAME;
136
+ declare const constants_d_REDUX_FUNCTIONS: typeof REDUX_FUNCTIONS;
137
+ declare const constants_d_PATHNAME: typeof PATHNAME;
138
+ declare const constants_d_SIMPLE_DATA_TYPES: typeof SIMPLE_DATA_TYPES;
139
+ declare const constants_d_V_CHILDREN_NAME: typeof V_CHILDREN_NAME;
140
+ declare const constants_d_V_COMP_NAME: typeof V_COMP_NAME;
141
+ declare const constants_d_LIST_SEMAPHORE: typeof LIST_SEMAPHORE;
142
+ declare const constants_d_LIST_ITEM: typeof LIST_ITEM;
143
+ declare const constants_d_LIST_PAGE: typeof LIST_PAGE;
144
+ declare const constants_d_LIST_ITEM_PER_PAGE: typeof LIST_ITEM_PER_PAGE;
145
+ declare const constants_d_LIST_LENGTH: typeof LIST_LENGTH;
146
+ declare const constants_d_LIST_ITEM_PER_PAGE_DEFAULT: typeof LIST_ITEM_PER_PAGE_DEFAULT;
147
+ declare namespace constants_d {
148
+ export {
149
+ constants_d_SEPARATOR as SEPARATOR,
150
+ constants_d_STORE_ERROR_POSTFIX as STORE_ERROR_POSTFIX,
151
+ constants_d_PATH_MODIFIERS_KEY as PATH_MODIFIERS_KEY,
152
+ constants_d_MODIFIER_KEY as MODIFIER_KEY,
153
+ constants_d_ACTION_KEY as ACTION_KEY,
154
+ constants_d_PERSIST_STORAGE_KEY as PERSIST_STORAGE_KEY,
155
+ constants_d_PERSIST_STORAGE_NAMES as PERSIST_STORAGE_NAMES,
156
+ constants_d_REF_ASSETS as REF_ASSETS,
157
+ constants_d_REF_LOCALES as REF_LOCALES,
158
+ constants_d_REF_VALIDATES as REF_VALIDATES,
159
+ constants_d_STYLE_WEB_NAME as STYLE_WEB_NAME,
160
+ constants_d_STYLE_RN_NAME as STYLE_RN_NAME,
161
+ constants_d_REDUX_FUNCTIONS as REDUX_FUNCTIONS,
162
+ constants_d_PATHNAME as PATHNAME,
163
+ constants_d_SIMPLE_DATA_TYPES as SIMPLE_DATA_TYPES,
164
+ constants_d_V_CHILDREN_NAME as V_CHILDREN_NAME,
165
+ constants_d_V_COMP_NAME as V_COMP_NAME,
166
+ constants_d_LIST_SEMAPHORE as LIST_SEMAPHORE,
167
+ constants_d_LIST_ITEM as LIST_ITEM,
168
+ constants_d_LIST_PAGE as LIST_PAGE,
169
+ constants_d_LIST_ITEM_PER_PAGE as LIST_ITEM_PER_PAGE,
170
+ constants_d_LIST_LENGTH as LIST_LENGTH,
171
+ constants_d_LIST_ITEM_PER_PAGE_DEFAULT as LIST_ITEM_PER_PAGE_DEFAULT,
172
+ };
173
+ }
174
+
175
+ declare const findLastIndex: (arr: any[], func: any) => number;
176
+ declare const drop: (arr: any[], n?: number) => any[];
177
+ declare const isNumber: (a: any) => boolean;
178
+ declare const jsonPointerGet: (json: any, path?: string | undefined) => any;
179
+ declare const jsonPointerSet: (json: any, path?: string | undefined, value?: any) => any;
180
+ declare const pathArrayToPathString: (array: (string | number)[]) => string;
181
+ declare const pathArrayToJsonPointer: (array: (string | number)[]) => string;
182
+ declare function isOnlyObject(item: any): boolean;
183
+ declare const mergePath: (target: any, newState: any) => any;
184
+ declare const changeRelativePath: (path: string) => string;
185
+ /**
186
+ * Deep merge two objects.
187
+ * @param target
188
+ * @param ...sources
189
+ */
190
+ declare function mergeDeep(target: any, ...sources: any): any;
191
+ declare const collectObjMerge: (refConst: string, json: any) => {};
192
+ declare const collectObjToArray: (refConst: string, json: any) => any[];
193
+
194
+ declare const util_d_findLastIndex: typeof findLastIndex;
195
+ declare const util_d_drop: typeof drop;
196
+ declare const util_d_isNumber: typeof isNumber;
197
+ declare const util_d_jsonPointerGet: typeof jsonPointerGet;
198
+ declare const util_d_jsonPointerSet: typeof jsonPointerSet;
199
+ declare const util_d_pathArrayToPathString: typeof pathArrayToPathString;
200
+ declare const util_d_pathArrayToJsonPointer: typeof pathArrayToJsonPointer;
201
+ declare const util_d_isOnlyObject: typeof isOnlyObject;
202
+ declare const util_d_mergePath: typeof mergePath;
203
+ declare const util_d_changeRelativePath: typeof changeRelativePath;
204
+ declare const util_d_mergeDeep: typeof mergeDeep;
205
+ declare const util_d_collectObjMerge: typeof collectObjMerge;
206
+ declare const util_d_collectObjToArray: typeof collectObjToArray;
207
+ declare namespace util_d {
208
+ export {
209
+ util_d_findLastIndex as findLastIndex,
210
+ util_d_drop as drop,
211
+ util_d_isNumber as isNumber,
212
+ util_d_jsonPointerGet as jsonPointerGet,
213
+ util_d_jsonPointerSet as jsonPointerSet,
214
+ util_d_pathArrayToPathString as pathArrayToPathString,
215
+ util_d_pathArrayToJsonPointer as pathArrayToJsonPointer,
216
+ util_d_isOnlyObject as isOnlyObject,
217
+ util_d_mergePath as mergePath,
218
+ util_d_changeRelativePath as changeRelativePath,
219
+ util_d_mergeDeep as mergeDeep,
220
+ util_d_collectObjMerge as collectObjMerge,
221
+ util_d_collectObjToArray as collectObjToArray,
222
+ };
223
+ }
224
+
225
+ interface I18nResources {
226
+ [key: string]: {
227
+ translation: {
228
+ [key: string]: string;
229
+ };
230
+ };
231
+ }
232
+ interface I18nProps {
233
+ language?: string;
234
+ resources?: I18nResources;
235
+ keyPrefix?: string;
236
+ keyPostfix?: string;
237
+ nonExistsHandler?: (key: string) => void;
238
+ }
239
+ declare class I18n {
240
+ language: string;
241
+ languages: string[];
242
+ resources?: I18nResources;
243
+ keyPrefix?: string;
244
+ keyPostfix?: string;
245
+ nonExistsHandler?: (key: string) => void;
246
+ availableLanguageKey?: string;
247
+ constructor({ language, resources, nonExistsHandler, keyPrefix, keyPostfix }: I18nProps);
248
+ getLocales: () => string;
249
+ t: (key: any, options?: any, language?: string | null | undefined) => any;
250
+ }
251
+
252
+ declare const StockContext: react.Context<typeof Stock$1 | null>;
253
+ declare const PathModifierContext: react.Context<{}>;
254
+
255
+ declare const genAllStateProps: (globalState: any, props: PropsType) => PropsType;
256
+
257
+ declare const _default$1: {
258
+ getStateValue: JsonUIFunctionType;
259
+ get: JsonUIFunctionType;
260
+ set: JsonUIFunctionType;
261
+ };
262
+
263
+ declare const _default: {
264
+ key: string;
265
+ whitelist: string[];
266
+ transforms: redux_persist.Transform<unknown, unknown, any, any>[];
267
+ };
268
+
269
+ declare const rootReducer: redux.Reducer<redux.CombinedState<{
270
+ root: any;
271
+ }>, redux.AnyAction>;
272
+
273
+ export { ArraysType, I18n, Path, PathModifierContext, PathModifierType, PathModifiersType, PathType, PathsType, PropValue, PropsType, Stock, StockContext, UIDefinition, ValidationType, WrapperType, appRootFunctions, constants_d as constants, genAllStateProps, _default as persistConfig, _default$1 as stockFunctions, rootReducer as storeReducers, util_d as util, wrapperUtil_d as wrapperUtil };