@jsonui/react 0.7.2 → 0.7.4
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/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/tests/redux.test.d.ts +13 -0
- package/dist/cjs/types/types.d.ts +3 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/tests/redux.test.d.ts +13 -0
- package/dist/esm/types/types.d.ts +3 -3
- package/dist/index.d.ts +4 -4
- package/package.json +3 -3
|
@@ -5,3 +5,4 @@ import { MessageHandlerContext, MessageHandler } from './MessageReceiverContext'
|
|
|
5
5
|
declare const JsonUI: (props: ViewerProps) => JSX.Element;
|
|
6
6
|
export { JsonUI, MessageHandlerContext, MessageHandler };
|
|
7
7
|
export type { ViewerProps as JsonUIProps, JSONValue, ChangeDefaultValueFuncProp, JsonUIFunctions, JsonUIFunctionType, JsonUIComponentsType };
|
|
8
|
+
export default JsonUI;
|
|
@@ -0,0 +1,13 @@
|
|
|
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,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { JsonUIComponentsType, JsonUIFunctions } from '@jsonui/core';
|
|
3
3
|
export declare type JSONPrimitive = string | number | boolean | null;
|
|
4
|
-
export declare type JSONValue = JSONPrimitive | JSONObject | JSONArray;
|
|
5
4
|
export declare type JSONObject = {
|
|
6
|
-
[member: string]:
|
|
5
|
+
[member: string]: any;
|
|
7
6
|
};
|
|
8
|
-
export declare type JSONArray = Array<
|
|
7
|
+
export declare type JSONArray = Array<any>;
|
|
8
|
+
export declare type JSONValue = JSONPrimitive | JSONObject | JSONArray | undefined;
|
|
9
9
|
export interface ChangeDefaultValueFuncProp {
|
|
10
10
|
store: string;
|
|
11
11
|
path: string;
|
package/dist/esm/index.js
CHANGED
|
@@ -18781,7 +18781,7 @@ var ReduxPathTypeEnum;
|
|
|
18781
18781
|
ReduxPathTypeEnum["TOUCH"] = "TOUCH";
|
|
18782
18782
|
ReduxPathTypeEnum["NORMAL"] = "NORMAL";
|
|
18783
18783
|
})(ReduxPathTypeEnum || (ReduxPathTypeEnum = {}));const getState = (state) => state === null || state === void 0 ? void 0 : state.root;
|
|
18784
|
-
const getValue = (state, store, path) => jsonPointerGet(state[store], path)
|
|
18784
|
+
const getValue = (state, store, path) => jsonPointerGet(state[store], path);
|
|
18785
18785
|
const getStoreNameFromType = (store, type) =>
|
|
18786
18786
|
// eslint-disable-next-line no-nested-ternary
|
|
18787
18787
|
type === ReduxPathTypeEnum.ERROR ? `${store}${STORE_ERROR_POSTFIX}` : type === ReduxPathTypeEnum.TOUCH ? `${store}${STORE_TOUCH_POSTFIX}` : `${store}`;
|
|
@@ -19958,5 +19958,5 @@ function ViewerWeb(_a) {
|
|
|
19958
19958
|
|
|
19959
19959
|
const JsonUI = (props) => jsxRuntime$1.exports.jsx(ViewerWeb, Object.assign({}, props), void 0);
|
|
19960
19960
|
|
|
19961
|
-
export { JsonUI, MessageHandler, MessageHandlerContext };
|
|
19961
|
+
export { JsonUI, MessageHandler, MessageHandlerContext, JsonUI as default };
|
|
19962
19962
|
//# sourceMappingURL=index.js.map
|