@jsonui/core 0.7.0 → 0.7.2

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.
@@ -7,5 +7,6 @@ import { StockContext, PathModifierContext } from './utils/contextHandler';
7
7
  import { compSelectorHook } from './store/root/selectors';
8
8
  import stockFunctions from './stock/functions';
9
9
  import storeReducers from './store/reducers';
10
- export type * from './utils/types';
10
+ import { UIDefinition, Path, ArraysType, WrapperType, PropValue, PathModifierType, PathModifiersType, PropsType, PathType, PathsType, ValidationType, ReduxPathTypeEnum, ReduxPath, JsonUIComponentsType, JsonUIFunctionType, JsonUIFunctions } from './utils/types';
11
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,12 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
- import { JsonUIComponentsType, JsonUIFunctions, JsonUIFunctionType } from 'utils/types';
2
+ import { JsonUIComponentsType, JsonUIComponentType, JsonUIFunctions, JsonUIFunctionType } from 'utils/types';
3
3
  interface NewStockType {
4
4
  components: JsonUIComponentsType;
5
5
  functions: JsonUIFunctions;
6
6
  }
7
7
  declare type InitType = (prop: NewStockType) => void;
8
8
  declare type RegisterFunctionType = (key: string, value: JsonUIFunctionType) => void;
9
- declare type RegisterComponentType = (key: string, value: ReactNode) => void;
9
+ declare type RegisterComponentType = (key: string, value: JsonUIComponentType) => void;
10
10
  declare type CallFunctionType = (name: string, attr?: any, props?: any, callerArgs?: any) => any;
11
11
  declare type GetComponentType = (componentName: string) => ReactNode;
12
12
  export default class Stock {
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  import * as c from './constants';
3
3
  export declare type UIDefinition = any;
4
4
  export declare type Path = string;
@@ -36,8 +36,9 @@ export interface ReduxPath {
36
36
  type?: ReduxPathTypeEnum;
37
37
  jsonataDef?: string;
38
38
  }
39
+ export declare type JsonUIComponentType = React.FC<any> | typeof React.Component | ((prop: any) => number | null | undefined | string);
39
40
  export interface JsonUIComponentsType {
40
- [key: string]: ReactNode;
41
+ [key: string]: JsonUIComponentType;
41
42
  }
42
43
  export declare type JsonUIFunctionType = (attr: any, props: any, callerArgs: any, stock: any) => Promise<void> | void | any;
43
44
  export interface JsonUIFunctions {