@jsonui/react 0.1.1 → 0.3.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.
@@ -2,8 +2,14 @@
2
2
  import React, { ReactNode } from 'react';
3
3
  import { Store, AnyAction } from 'redux';
4
4
  import { Persistor } from 'redux-persist/es/types';
5
+ export declare type JSONPrimitive = string | number | boolean | null;
6
+ export declare type JSONValue = JSONPrimitive | JSONObject | JSONArray;
7
+ export declare type JSONObject = {
8
+ [member: string]: JSONValue;
9
+ };
10
+ export declare type JSONArray = Array<JSONValue>;
5
11
  export interface DefaultValues {
6
- [key: string]: Record<string, object>;
12
+ [key: string]: JSONValue;
7
13
  }
8
14
  declare type MyProps = {
9
15
  children: ReactNode;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,13 @@
1
1
  /// <reference types="redux-persist/types/types" />
2
2
  /// <reference types="react" />
3
+ declare type JSONPrimitive = string | number | boolean | null;
4
+ declare type JSONValue = JSONPrimitive | JSONObject | JSONArray;
5
+ declare type JSONObject = {
6
+ [member: string]: JSONValue;
7
+ };
8
+ declare type JSONArray = Array<JSONValue>;
3
9
  interface DefaultValues {
4
- [key: string]: Record<string, object>;
10
+ [key: string]: JSONValue;
5
11
  }
6
12
 
7
13
  interface ViewerProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsonui/react",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "author": "Istvan Fodor <fodori@jsonui.org>",
5
5
  "contributors": [],
6
6
  "bugs": {
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@emotion/react": "^11.7.1",
40
- "@jsonui/core": "^0.1.1",
40
+ "@jsonui/core": "^0.3.0",
41
41
  "batchflow": "^0.4.0",
42
42
  "jsonata": "^1.8.5",
43
43
  "lodash": "^4.17.21",
@@ -113,5 +113,5 @@
113
113
  "last 1 safari version"
114
114
  ]
115
115
  },
116
- "gitHead": "b22ae9005949d476a52810578a00fc05283304d0"
116
+ "gitHead": "f0735aa16e801f97232fa951c479ab59f4d10758"
117
117
  }