@jsonui/react 0.7.5 → 0.8.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.
Files changed (89) hide show
  1. package/README.md +4 -2
  2. package/dist/cjs/index.js +68 -19711
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/esm/index.js +45 -19684
  5. package/dist/esm/index.js.map +1 -1
  6. package/dist/index.d.ts +10 -9
  7. package/package.json +49 -46
  8. package/dist/cjs/types/ErrorBoundary.d.ts +0 -21
  9. package/dist/cjs/types/MessageReceiver.d.ts +0 -2
  10. package/dist/cjs/types/MessageReceiverContext.d.ts +0 -8
  11. package/dist/cjs/types/ReduxProviders.d.ts +0 -9
  12. package/dist/cjs/types/Renderer.d.ts +0 -7
  13. package/dist/cjs/types/ViewerWeb.d.ts +0 -4
  14. package/dist/cjs/types/Wrapper.d.ts +0 -7
  15. package/dist/cjs/types/index.d.ts +0 -8
  16. package/dist/cjs/types/indexWeb.d.ts +0 -1
  17. package/dist/cjs/types/stock/components/Button.d.ts +0 -3
  18. package/dist/cjs/types/stock/components/Edit.d.ts +0 -3
  19. package/dist/cjs/types/stock/components/FormResult.d.ts +0 -5
  20. package/dist/cjs/types/stock/components/Fragment.d.ts +0 -2
  21. package/dist/cjs/types/stock/components/HelperText.d.ts +0 -3
  22. package/dist/cjs/types/stock/components/Image.d.ts +0 -3
  23. package/dist/cjs/types/stock/components/Label.d.ts +0 -9
  24. package/dist/cjs/types/stock/components/PrimitiveProp.d.ts +0 -3
  25. package/dist/cjs/types/stock/components/Text.d.ts +0 -3
  26. package/dist/cjs/types/stock/components/Undefined.d.ts +0 -3
  27. package/dist/cjs/types/stock/components/View.d.ts +0 -3
  28. package/dist/cjs/types/stock/components.d.ts +0 -18
  29. package/dist/cjs/types/stock/stockToRenderer.d.ts +0 -20
  30. package/dist/cjs/types/stories/JsonUI.stories.d.ts +0 -6
  31. package/dist/cjs/types/stories/MultiChild.stories.d.ts +0 -5
  32. package/dist/cjs/types/stories/PartialValueUpdateTest/PushNotificationTest.stories.d.ts +0 -5
  33. package/dist/cjs/types/stories/PerformansTest1.stories.d.ts +0 -5
  34. package/dist/cjs/types/stories/PerformansTest2.stories.d.ts +0 -5
  35. package/dist/cjs/types/stories/ReduxTest.stories.d.ts +0 -6
  36. package/dist/cjs/types/stories/Simple.stories.d.ts +0 -5
  37. package/dist/cjs/types/stories/StateSaveTest/StateSaveTest.stories.d.ts +0 -5
  38. package/dist/cjs/types/stories/Table.stories.d.ts +0 -5
  39. package/dist/cjs/types/stories/Validation.stories.d.ts +0 -12
  40. package/dist/cjs/types/tests/action.test.d.ts +0 -1
  41. package/dist/cjs/types/tests/button.test.d.ts +0 -1
  42. package/dist/cjs/types/tests/input.test.d.ts +0 -13
  43. package/dist/cjs/types/tests/modifier.test.d.ts +0 -1
  44. package/dist/cjs/types/tests/pathModifier.test.d.ts +0 -1
  45. package/dist/cjs/types/tests/primitive_simple.test.d.ts +0 -1
  46. package/dist/cjs/types/tests/redux.test.d.ts +0 -13
  47. package/dist/cjs/types/tests/simple.test.d.ts +0 -1
  48. package/dist/cjs/types/types.d.ts +0 -26
  49. package/dist/esm/types/ErrorBoundary.d.ts +0 -21
  50. package/dist/esm/types/MessageReceiver.d.ts +0 -2
  51. package/dist/esm/types/MessageReceiverContext.d.ts +0 -8
  52. package/dist/esm/types/ReduxProviders.d.ts +0 -9
  53. package/dist/esm/types/Renderer.d.ts +0 -7
  54. package/dist/esm/types/ViewerWeb.d.ts +0 -4
  55. package/dist/esm/types/Wrapper.d.ts +0 -7
  56. package/dist/esm/types/index.d.ts +0 -8
  57. package/dist/esm/types/indexWeb.d.ts +0 -1
  58. package/dist/esm/types/stock/components/Button.d.ts +0 -3
  59. package/dist/esm/types/stock/components/Edit.d.ts +0 -3
  60. package/dist/esm/types/stock/components/FormResult.d.ts +0 -5
  61. package/dist/esm/types/stock/components/Fragment.d.ts +0 -2
  62. package/dist/esm/types/stock/components/HelperText.d.ts +0 -3
  63. package/dist/esm/types/stock/components/Image.d.ts +0 -3
  64. package/dist/esm/types/stock/components/Label.d.ts +0 -9
  65. package/dist/esm/types/stock/components/PrimitiveProp.d.ts +0 -3
  66. package/dist/esm/types/stock/components/Text.d.ts +0 -3
  67. package/dist/esm/types/stock/components/Undefined.d.ts +0 -3
  68. package/dist/esm/types/stock/components/View.d.ts +0 -3
  69. package/dist/esm/types/stock/components.d.ts +0 -18
  70. package/dist/esm/types/stock/stockToRenderer.d.ts +0 -20
  71. package/dist/esm/types/stories/JsonUI.stories.d.ts +0 -6
  72. package/dist/esm/types/stories/MultiChild.stories.d.ts +0 -5
  73. package/dist/esm/types/stories/PartialValueUpdateTest/PushNotificationTest.stories.d.ts +0 -5
  74. package/dist/esm/types/stories/PerformansTest1.stories.d.ts +0 -5
  75. package/dist/esm/types/stories/PerformansTest2.stories.d.ts +0 -5
  76. package/dist/esm/types/stories/ReduxTest.stories.d.ts +0 -6
  77. package/dist/esm/types/stories/Simple.stories.d.ts +0 -5
  78. package/dist/esm/types/stories/StateSaveTest/StateSaveTest.stories.d.ts +0 -5
  79. package/dist/esm/types/stories/Table.stories.d.ts +0 -5
  80. package/dist/esm/types/stories/Validation.stories.d.ts +0 -12
  81. package/dist/esm/types/tests/action.test.d.ts +0 -1
  82. package/dist/esm/types/tests/button.test.d.ts +0 -1
  83. package/dist/esm/types/tests/input.test.d.ts +0 -13
  84. package/dist/esm/types/tests/modifier.test.d.ts +0 -1
  85. package/dist/esm/types/tests/pathModifier.test.d.ts +0 -1
  86. package/dist/esm/types/tests/primitive_simple.test.d.ts +0 -1
  87. package/dist/esm/types/tests/redux.test.d.ts +0 -13
  88. package/dist/esm/types/tests/simple.test.d.ts +0 -1
  89. package/dist/esm/types/types.d.ts +0 -26
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- declare function FormResult({ value }: {
3
- value: any;
4
- }): JSX.Element;
5
- export default FormResult;
@@ -1,2 +0,0 @@
1
- declare const Fragment: ({ children }: any) => any;
2
- export default Fragment;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare function HelperText(props: any): JSX.Element | null;
3
- export default HelperText;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare function Image(props: any): JSX.Element;
3
- export default Image;
@@ -1,9 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare function PrimitiveProp({ children }: any): JSX.Element;
3
- export default PrimitiveProp;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare function Text({ value, children, ...props }: any): JSX.Element;
3
- export default Text;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare function Undefined(props: any): JSX.Element;
3
- export default Undefined;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare function View(props: any): JSX.Element;
3
- export default View;
@@ -1,18 +0,0 @@
1
- import Text from './components/Text';
2
- import Button from './components/Button';
3
- import Edit from './components/Edit';
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 }: any) => any;
13
- Image: typeof Image;
14
- Text: typeof Text;
15
- Button: typeof Button;
16
- Edit: typeof Edit;
17
- };
18
- export default Components;
@@ -1,20 +0,0 @@
1
- import { Stock } from '@jsonui/core';
2
- export declare const getStock: (stockInit: any, model: 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 }: any) => any;
9
- Image: typeof import("./components/Image").default;
10
- Text: typeof import("./components/Text").default;
11
- Button: typeof import("./components/Button").default;
12
- Edit: typeof import("./components/Edit").default;
13
- };
14
- functions: {
15
- get: import("@jsonui/core").JsonUIFunctionType;
16
- set: import("@jsonui/core").JsonUIFunctionType;
17
- jsonata: import("@jsonui/core").JsonUIFunctionType;
18
- };
19
- };
20
- export default stock;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const JsonUIStory: ComponentMeta<(props: import("../types").ViewerProps) => JSX.Element>;
4
- export declare const TableTest: ComponentStory<(props: import("../types").ViewerProps) => JSX.Element>;
5
- export declare const InputTest: ComponentStory<(props: import("../types").ViewerProps) => JSX.Element>;
6
- export default JsonUIStory;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const JsonUIStory: ComponentMeta<(props: import("../types").ViewerProps) => JSX.Element>;
4
- export declare const MultiChild: ComponentStory<(props: import("../types").ViewerProps) => JSX.Element>;
5
- export default JsonUIStory;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const JsonUIStory: ComponentMeta<(props: import("../../types").ViewerProps) => JSX.Element>;
4
- export declare const PartialValueUpdateTest: ComponentStory<(props: import("../../types").ViewerProps) => JSX.Element>;
5
- export default JsonUIStory;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const JsonUIStory: ComponentMeta<(props: import("../types").ViewerProps) => JSX.Element>;
4
- export declare const InputTest: ComponentStory<any>;
5
- export default JsonUIStory;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const JsonUIStory: ComponentMeta<(props: import("../types").ViewerProps) => JSX.Element>;
4
- export declare const BoxTest: ComponentStory<any>;
5
- export default JsonUIStory;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const JsonUIStory: ComponentMeta<(props: import("../types").ViewerProps) => JSX.Element>;
4
- export declare const TwoEditAnd1Modifier: ComponentStory<(props: import("../types").ViewerProps) => JSX.Element>;
5
- export declare const PathModifierTest: ComponentStory<(props: import("../types").ViewerProps) => JSX.Element>;
6
- export default JsonUIStory;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const JsonUIStory: ComponentMeta<(props: import("../types").ViewerProps) => JSX.Element>;
4
- export declare const PrimitivesTest: ComponentStory<(props: import("../types").ViewerProps) => JSX.Element>;
5
- export default JsonUIStory;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const JsonUIStory: ComponentMeta<(props: import("types").ViewerProps) => JSX.Element>;
4
- export declare const StoreStateTest: ComponentStory<(props: import("types").ViewerProps) => JSX.Element>;
5
- export default JsonUIStory;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const JsonUIStory: ComponentMeta<(props: import("../types").ViewerProps) => JSX.Element>;
4
- export declare const TableTest: ComponentStory<(props: import("../types").ViewerProps) => JSX.Element>;
5
- export default JsonUIStory;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const JsonUIStory: ComponentMeta<(props: import("../types").ViewerProps) => JSX.Element>;
4
- export declare const ValidationTest: ComponentStory<(props: import("../types").ViewerProps) => JSX.Element>;
5
- export default JsonUIStory;
6
- /**
7
- * TODO:
8
- * how is help submit to validate the whole form
9
- * touch
10
- * dirty
11
- *
12
- * */
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- export {};
2
- /**
3
- * TODO:
4
- * - check actions (with nested ,promise and sync )
5
- * - check modification (with nested ,promise and sync )
6
- * - check modification order for example redux vs. simple function
7
- * - check children and no children component with children prop
8
- * - check data manipulation with mutability situation
9
- * - check error boundary how works
10
- * Low:
11
- * - check performance or memory leak???
12
-
13
- * */
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- export {};
2
- /**
3
- * TODO:
4
- * - check actions (with nested ,promise and sync )
5
- * - check modification (with nested ,promise and sync )
6
- * - check modification order for example redux vs. simple function
7
- * - check children and no children component with children prop
8
- * - check data manipulation with mutability situation
9
- * - check error boundary how works
10
- * Low:
11
- * - check performance or memory leak???
12
-
13
- * */
@@ -1 +0,0 @@
1
- export {};
@@ -1,26 +0,0 @@
1
- /// <reference types="react" />
2
- import { JsonUIComponentsType, JsonUIFunctions } from '@jsonui/core';
3
- export declare type JSONPrimitive = string | number | boolean | null;
4
- export declare type JSONObject = {
5
- [member: string]: any;
6
- };
7
- export declare type JSONArray = Array<any>;
8
- export declare type JSONValue = JSONPrimitive | JSONObject | JSONArray | undefined;
9
- export interface ChangeDefaultValueFuncProp {
10
- store: string;
11
- path: string;
12
- value: JSONValue;
13
- }
14
- export declare type ChangeDefaultValueFunc = (arg: ChangeDefaultValueFuncProp) => void;
15
- export declare type OnSubmitFunc = (arg: any) => void;
16
- export interface DefaultValues {
17
- [key: string]: JSONValue;
18
- }
19
- export declare type GetFormState = React.MutableRefObject<(() => DefaultValues) | undefined>;
20
- export interface ViewerProps {
21
- model: any;
22
- defaultValues?: DefaultValues;
23
- components?: JsonUIComponentsType;
24
- functions?: JsonUIFunctions;
25
- getFormState?: GetFormState;
26
- }