@jsonui/react 0.0.6
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.
- package/README.md +206 -0
- package/dist/cjs/index.js +39105 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/ErrorBoundary.d.ts +21 -0
- package/dist/cjs/types/ReduxProviders.d.ts +5 -0
- package/dist/cjs/types/Renderer.d.ts +7 -0
- package/dist/cjs/types/ViewerWeb.d.ts +13 -0
- package/dist/cjs/types/Wrapper.d.ts +3 -0
- package/dist/cjs/types/index.d.ts +6 -0
- package/dist/cjs/types/indexModule.d.ts +6 -0
- package/dist/cjs/types/indexWeb.d.ts +1 -0
- package/dist/cjs/types/stock/components/Button.d.ts +3 -0
- package/dist/cjs/types/stock/components/FieldEdit.d.ts +3 -0
- package/dist/cjs/types/stock/components/FormResult.d.ts +5 -0
- package/dist/cjs/types/stock/components/Fragment.d.ts +4 -0
- package/dist/cjs/types/stock/components/HelperText.d.ts +3 -0
- package/dist/cjs/types/stock/components/Image.d.ts +3 -0
- package/dist/cjs/types/stock/components/Label.d.ts +9 -0
- package/dist/cjs/types/stock/components/PrimitiveProp.d.ts +5 -0
- package/dist/cjs/types/stock/components/Text.d.ts +3 -0
- package/dist/cjs/types/stock/components/Undefined.d.ts +3 -0
- package/dist/cjs/types/stock/components/View.d.ts +3 -0
- package/dist/cjs/types/stock/components.d.ts +20 -0
- package/dist/cjs/types/stock/stockToRenderer.d.ts +22 -0
- package/dist/cjs/types/store/store.d.ts +7 -0
- package/dist/esm/index.js +39097 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/types/ErrorBoundary.d.ts +21 -0
- package/dist/esm/types/ReduxProviders.d.ts +5 -0
- package/dist/esm/types/Renderer.d.ts +7 -0
- package/dist/esm/types/ViewerWeb.d.ts +13 -0
- package/dist/esm/types/Wrapper.d.ts +3 -0
- package/dist/esm/types/index.d.ts +6 -0
- package/dist/esm/types/indexModule.d.ts +6 -0
- package/dist/esm/types/indexWeb.d.ts +1 -0
- package/dist/esm/types/stock/components/Button.d.ts +3 -0
- package/dist/esm/types/stock/components/FieldEdit.d.ts +3 -0
- package/dist/esm/types/stock/components/FormResult.d.ts +5 -0
- package/dist/esm/types/stock/components/Fragment.d.ts +4 -0
- package/dist/esm/types/stock/components/HelperText.d.ts +3 -0
- package/dist/esm/types/stock/components/Image.d.ts +3 -0
- package/dist/esm/types/stock/components/Label.d.ts +9 -0
- package/dist/esm/types/stock/components/PrimitiveProp.d.ts +5 -0
- package/dist/esm/types/stock/components/Text.d.ts +3 -0
- package/dist/esm/types/stock/components/Undefined.d.ts +3 -0
- package/dist/esm/types/stock/components/View.d.ts +3 -0
- package/dist/esm/types/stock/components.d.ts +20 -0
- package/dist/esm/types/stock/stockToRenderer.d.ts +22 -0
- package/dist/esm/types/store/store.d.ts +7 -0
- package/dist/index.d.ts +16 -0
- package/package.json +102 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ErrorBoundaryProps extends React.Props<any> {
|
|
3
|
+
type?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
}
|
|
6
|
+
declare type errorType = any;
|
|
7
|
+
export interface ErrorBoundaryState {
|
|
8
|
+
hasError: boolean;
|
|
9
|
+
error?: errorType;
|
|
10
|
+
didInfo?: any;
|
|
11
|
+
}
|
|
12
|
+
declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
13
|
+
constructor(props: ErrorBoundaryProps);
|
|
14
|
+
static getDerivedStateFromError(error: errorType): {
|
|
15
|
+
hasError: boolean;
|
|
16
|
+
error: any;
|
|
17
|
+
};
|
|
18
|
+
componentDidCatch(error: errorType, info: any): void;
|
|
19
|
+
render(): React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export default ErrorBoundary;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface DefaultValues {
|
|
3
|
+
[key: string]: Record<string, object>;
|
|
4
|
+
}
|
|
5
|
+
export interface ViewerProps {
|
|
6
|
+
viewDef: any;
|
|
7
|
+
defaultValues?: DefaultValues;
|
|
8
|
+
id?: string;
|
|
9
|
+
components?: any;
|
|
10
|
+
functions?: any;
|
|
11
|
+
}
|
|
12
|
+
declare function ViewerWeb(props: ViewerProps): JSX.Element;
|
|
13
|
+
export default ViewerWeb;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const getLabel: (props: any) => JSX.Element;
|
|
3
|
+
export declare class InfoBox extends React.PureComponent {
|
|
4
|
+
counter: number;
|
|
5
|
+
constructor(props: any);
|
|
6
|
+
componentDidMount(): void;
|
|
7
|
+
componentDidUpdate(): void;
|
|
8
|
+
render(): JSX.Element | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Text from './components/Text';
|
|
2
|
+
import Button from './components/Button';
|
|
3
|
+
import Edit from './components/FieldEdit';
|
|
4
|
+
import View from './components/View';
|
|
5
|
+
import Image from './components/Image';
|
|
6
|
+
import _Undefined from './components/Undefined';
|
|
7
|
+
import _PrimitiveProp from './components/PrimitiveProp';
|
|
8
|
+
declare const Components: {
|
|
9
|
+
View: typeof View;
|
|
10
|
+
_PrimitiveProp: typeof _PrimitiveProp;
|
|
11
|
+
_Undefined: typeof _Undefined;
|
|
12
|
+
Fragment: ({ children }: {
|
|
13
|
+
children: any;
|
|
14
|
+
}) => any;
|
|
15
|
+
Image: typeof Image;
|
|
16
|
+
Text: typeof Text;
|
|
17
|
+
Button: typeof Button;
|
|
18
|
+
Edit: typeof Edit;
|
|
19
|
+
};
|
|
20
|
+
export default Components;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Stock } from '@jsonui/core';
|
|
2
|
+
export declare const getStock: (stockInit: any, viewDef: any, Wrapper: any, reduxStore: any) => Stock;
|
|
3
|
+
declare const stock: {
|
|
4
|
+
components: {
|
|
5
|
+
View: typeof import("./components/View").default;
|
|
6
|
+
_PrimitiveProp: typeof import("./components/PrimitiveProp").default;
|
|
7
|
+
_Undefined: typeof import("./components/Undefined").default;
|
|
8
|
+
Fragment: ({ children }: {
|
|
9
|
+
children: any;
|
|
10
|
+
}) => any;
|
|
11
|
+
Image: typeof import("./components/Image").default;
|
|
12
|
+
Text: typeof import("./components/Text").default;
|
|
13
|
+
Button: typeof import("./components/Button").default;
|
|
14
|
+
Edit: typeof import("./components/FieldEdit").default;
|
|
15
|
+
};
|
|
16
|
+
functions: {
|
|
17
|
+
getStateValue: import("@jsonui/core/dist/stock/appRootFunctions").JsonUIFunctionType;
|
|
18
|
+
get: import("@jsonui/core/dist/stock/appRootFunctions").JsonUIFunctionType;
|
|
19
|
+
set: import("@jsonui/core/dist/stock/appRootFunctions").JsonUIFunctionType;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default stock;
|