react-declarative 2.7.104 → 2.7.106

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/package.json CHANGED
@@ -1,124 +1,124 @@
1
- {
2
- "name": "react-declarative",
3
- "version": "2.7.104",
4
- "readme": "README.md",
5
- "description": "A React form builder which interacts with a JSON endpoint to generate nested 12-column grids with input fields and automatic state management in a declarative style. Endpoint is typed by TypeScript guards (IntelliSense available). This tool is based on material-ui components, so your application will look beautiful on any device...",
6
- "private": false,
7
- "author": {
8
- "name": "Petr Tripolsky",
9
- "email": "tripolskypetr@gmail.com",
10
- "url": "https://github.com/tripolskypetr"
11
- },
12
- "funding": {
13
- "type": "individual",
14
- "url": "http://paypal.me/tripolskypetr"
15
- },
16
- "license": "MIT",
17
- "homepage": "https://react-declarative-playground.github.io",
18
- "keywords": [
19
- "react",
20
- "typescript",
21
- "state-management",
22
- "frontend",
23
- "material-ui",
24
- "MUI",
25
- "declarative",
26
- "form-validation",
27
- "layout-engine",
28
- "grid-system",
29
- "declarative-programming",
30
- "json-endpoint",
31
- "standalone",
32
- "nested-grids",
33
- "layout-grid",
34
- "intellisense",
35
- "code-autocomplete",
36
- "form-builder"
37
- ],
38
- "repository": {
39
- "type": "git",
40
- "url": "https://github.com/react-declarative/react-declarative",
41
- "documentation": "https://github.com/react-declarative/react-declarative/tree/master/docs"
42
- },
43
- "bugs": {
44
- "url": "https://github.com/react-declarative/react-declarative/issues"
45
- },
46
- "main": "dist/index.js",
47
- "module": "dist/index.esm.js",
48
- "source": "src/index.ts",
49
- "types": "dist/index.d.ts",
50
- "exports": {
51
- "require": "./dist/index.js",
52
- "types": "./dist/index.d.ts",
53
- "import": "./dist/index.esm.js",
54
- "default": "./dist/index.esm.js"
55
- },
56
- "engines": {
57
- "node": ">=10"
58
- },
59
- "scripts": {
60
- "start": "sh ./scripts/start.sh",
61
- "build": "rimraf dist && rollup -c && npm run typedef && npm run docs",
62
- "build:nodocs": "rimraf dist && rollup -c && npm run typedef",
63
- "build:docker": "docker-compose up",
64
- "typedef": "tsc --emitDeclarationOnly --outDir ./dist/types && node ./scripts/dts.js",
65
- "postinstall": "node ./scripts/postinstall.js",
66
- "lint": "eslint --fix --ext .ts,.tsx --ignore-pattern .d.ts ./src",
67
- "docs": "rimraf docs/auto && node ./scripts/dts-docs.js ./demo/src/react-declarative.d.ts ./docs/auto",
68
- "test": "jest --env=jsdom"
69
- },
70
- "files": [
71
- "dist",
72
- "scripts",
73
- "README.md",
74
- "NOTES.md"
75
- ],
76
- "peerDependencies": {
77
- "@emotion/react": "^11.8.1",
78
- "@emotion/styled": "^11.8.1",
79
- "@mui/icons-material": "^5.5.0",
80
- "@mui/material": "^5.5.0",
81
- "@mui/system": "^5.5.0",
82
- "file-type": "^19.0.0",
83
- "react": "^17.0.0 || ^18.0.0",
84
- "react-dom": "^17.0.0 || ^18.0.0",
85
- "tss-react": ">=4.3.4",
86
- "xlsx": ">=0.18.5"
87
- },
88
- "devDependencies": {
89
- "@prettier/sync": "0.5.1",
90
- "@rollup/plugin-typescript": "11.1.6",
91
- "@types/jest": "29.1.2",
92
- "@types/mapbox-gl": "3.1.0",
93
- "@types/react": "18.0.21",
94
- "@types/react-dom": "18.0.6",
95
- "@types/uuid": "8.3.4",
96
- "@typescript-eslint/eslint-plugin": "6.5.0",
97
- "@typescript-eslint/parser": "6.5.0",
98
- "dts-bundle": "0.7.3",
99
- "eslint": "8.57.0",
100
- "eslint-plugin-jsdoc": "48.2.1",
101
- "jest": "29.1.2",
102
- "jest-environment-jsdom": "29.5.0",
103
- "million": "3.1.11",
104
- "prettier": "3.2.5",
105
- "rollup": "2.79.1",
106
- "rollup-plugin-peer-deps-external": "2.2.4",
107
- "rollup-plugin-terser": "7.0.2",
108
- "ts-jest": "29.0.3",
109
- "typescript": "4.6.2"
110
- },
111
- "dependencies": {
112
- "dayjs": "1.11.5",
113
- "history": "5.3.0",
114
- "path-to-regexp": "6.2.0",
115
- "rimraf": "3.0.2",
116
- "uuid": "9.0.0"
117
- },
118
- "licenses": [
119
- {
120
- "type": "MIT",
121
- "url": "https://github.com/react-declarative/react-declarative#license"
122
- }
123
- ]
124
- }
1
+ {
2
+ "name": "react-declarative",
3
+ "version": "2.7.106",
4
+ "readme": "README.md",
5
+ "description": "A React form builder which interacts with a JSON endpoint to generate nested 12-column grids with input fields and automatic state management in a declarative style. Endpoint is typed by TypeScript guards (IntelliSense available). This tool is based on material-ui components, so your application will look beautiful on any device...",
6
+ "private": false,
7
+ "author": {
8
+ "name": "Petr Tripolsky",
9
+ "email": "tripolskypetr@gmail.com",
10
+ "url": "https://github.com/tripolskypetr"
11
+ },
12
+ "funding": {
13
+ "type": "individual",
14
+ "url": "http://paypal.me/tripolskypetr"
15
+ },
16
+ "license": "MIT",
17
+ "homepage": "https://react-declarative-playground.github.io",
18
+ "keywords": [
19
+ "react",
20
+ "typescript",
21
+ "state-management",
22
+ "frontend",
23
+ "material-ui",
24
+ "MUI",
25
+ "declarative",
26
+ "form-validation",
27
+ "layout-engine",
28
+ "grid-system",
29
+ "declarative-programming",
30
+ "json-endpoint",
31
+ "standalone",
32
+ "nested-grids",
33
+ "layout-grid",
34
+ "intellisense",
35
+ "code-autocomplete",
36
+ "form-builder"
37
+ ],
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://github.com/react-declarative/react-declarative",
41
+ "documentation": "https://github.com/react-declarative/react-declarative/tree/master/docs"
42
+ },
43
+ "bugs": {
44
+ "url": "https://github.com/react-declarative/react-declarative/issues"
45
+ },
46
+ "main": "dist/index.js",
47
+ "module": "dist/index.esm.js",
48
+ "source": "src/index.ts",
49
+ "types": "dist/index.d.ts",
50
+ "exports": {
51
+ "require": "./dist/index.js",
52
+ "types": "./dist/index.d.ts",
53
+ "import": "./dist/index.esm.js",
54
+ "default": "./dist/index.esm.js"
55
+ },
56
+ "engines": {
57
+ "node": ">=10"
58
+ },
59
+ "scripts": {
60
+ "start": "sh ./scripts/start.sh",
61
+ "build": "rimraf dist && rollup -c && npm run typedef && npm run docs",
62
+ "build:nodocs": "rimraf dist && rollup -c && npm run typedef",
63
+ "build:docker": "docker-compose up",
64
+ "typedef": "tsc --emitDeclarationOnly --outDir ./dist/types && node ./scripts/dts.js",
65
+ "postinstall": "node ./scripts/postinstall.js",
66
+ "lint": "eslint --fix --ext .ts,.tsx --ignore-pattern .d.ts ./src",
67
+ "docs": "rimraf docs/auto && node ./scripts/dts-docs.js ./demo/src/react-declarative.d.ts ./docs/auto",
68
+ "test": "jest --env=jsdom"
69
+ },
70
+ "files": [
71
+ "dist",
72
+ "scripts",
73
+ "README.md",
74
+ "NOTES.md"
75
+ ],
76
+ "peerDependencies": {
77
+ "@emotion/react": "^11.8.1",
78
+ "@emotion/styled": "^11.8.1",
79
+ "@mui/icons-material": "^5.5.0",
80
+ "@mui/material": "^5.5.0",
81
+ "@mui/system": "^5.5.0",
82
+ "file-type": "^19.0.0",
83
+ "react": "^17.0.0 || ^18.0.0",
84
+ "react-dom": "^17.0.0 || ^18.0.0",
85
+ "tss-react": ">=4.3.4",
86
+ "xlsx": ">=0.18.5"
87
+ },
88
+ "devDependencies": {
89
+ "@prettier/sync": "0.5.1",
90
+ "@rollup/plugin-typescript": "11.1.6",
91
+ "@types/jest": "29.1.2",
92
+ "@types/mapbox-gl": "3.1.0",
93
+ "@types/react": "18.0.21",
94
+ "@types/react-dom": "18.0.6",
95
+ "@types/uuid": "8.3.4",
96
+ "@typescript-eslint/eslint-plugin": "6.5.0",
97
+ "@typescript-eslint/parser": "6.5.0",
98
+ "dts-bundle": "0.7.3",
99
+ "eslint": "8.57.0",
100
+ "eslint-plugin-jsdoc": "48.2.1",
101
+ "jest": "29.1.2",
102
+ "jest-environment-jsdom": "29.5.0",
103
+ "million": "3.1.11",
104
+ "prettier": "3.2.5",
105
+ "rollup": "2.79.1",
106
+ "rollup-plugin-peer-deps-external": "2.2.4",
107
+ "rollup-plugin-terser": "7.0.2",
108
+ "ts-jest": "29.0.3",
109
+ "typescript": "4.6.2"
110
+ },
111
+ "dependencies": {
112
+ "dayjs": "1.11.5",
113
+ "history": "5.3.0",
114
+ "path-to-regexp": "6.2.0",
115
+ "rimraf": "3.0.2",
116
+ "uuid": "9.0.0"
117
+ },
118
+ "licenses": [
119
+ {
120
+ "type": "MIT",
121
+ "url": "https://github.com/react-declarative/react-declarative#license"
122
+ }
123
+ ]
124
+ }
package/scripts/build.js CHANGED
@@ -1,23 +1,23 @@
1
- const esbuild = require('esbuild-wasm');
2
- const { nodeExternalsPlugin } = require('esbuild-node-externals');
3
-
4
- esbuild.build({
5
- entryPoints: ['src/index.ts'],
6
- outdir: 'dist/modern',
7
- bundle: true,
8
- minify: true,
9
- splitting: true,
10
- format: 'esm',
11
- target: 'chrome70',
12
- plugins: [nodeExternalsPlugin()],
13
- });
14
-
15
- esbuild.build({
16
- entryPoints: ['src/index.ts'],
17
- outdir: 'dist/common',
18
- bundle: true,
19
- minify: true,
20
- format: 'cjs',
21
- target: 'chrome70',
22
- plugins: [nodeExternalsPlugin()],
23
- });
1
+ const esbuild = require('esbuild-wasm');
2
+ const { nodeExternalsPlugin } = require('esbuild-node-externals');
3
+
4
+ esbuild.build({
5
+ entryPoints: ['src/index.ts'],
6
+ outdir: 'dist/modern',
7
+ bundle: true,
8
+ minify: true,
9
+ splitting: true,
10
+ format: 'esm',
11
+ target: 'chrome70',
12
+ plugins: [nodeExternalsPlugin()],
13
+ });
14
+
15
+ esbuild.build({
16
+ entryPoints: ['src/index.ts'],
17
+ outdir: 'dist/common',
18
+ bundle: true,
19
+ minify: true,
20
+ format: 'cjs',
21
+ target: 'chrome70',
22
+ plugins: [nodeExternalsPlugin()],
23
+ });
package/scripts/dts.js CHANGED
@@ -1,43 +1,43 @@
1
- const dts = require('dts-bundle');
2
- const rimraf = require("rimraf");
3
- const glob = require("glob");
4
- const path = require("path");
5
- const fs = require('fs');
6
-
7
- const prettierSync = require("@prettier/sync");
8
-
9
- dts.bundle({
10
- name: 'react-declarative',
11
- main: 'dist/index.d.ts',
12
- });
13
-
14
- const formatdef = prettierSync.format(fs.readFileSync('dist/react-declarative.d.ts').toString(), {
15
- semi: true,
16
- endOfLine: "auto",
17
- trailingComma: "all",
18
- singleQuote: false,
19
- printWidth: 80,
20
- tabWidth: 2,
21
- parser: 'typescript',
22
- });
23
- fs.writeFileSync('dist/react-declarative.d.ts', formatdef)
24
-
25
- glob.sync("./dist/**/*.js.map").forEach((file) => {
26
- rimraf.sync(file);
27
- });
28
-
29
- glob.sync("./dist/**/*.d.ts").forEach((file) => {
30
- const fileName = path.basename(file);
31
- fileName !== "react-declarative.d.ts" && rimraf.sync(file);
32
- });
33
-
34
- glob.sync("./dist/*").forEach((file) => {
35
- fs.lstatSync(file).isDirectory() && rimraf.sync(file);
36
- });
37
-
38
- fs.renameSync("./dist/react-declarative.d.ts", "./dist/index.d.ts")
39
-
40
- fs.existsSync("demo") && fs.copyFileSync(
41
- 'dist/index.d.ts',
42
- 'demo/react-declarative.d.ts',
43
- );
1
+ const dts = require('dts-bundle');
2
+ const rimraf = require("rimraf");
3
+ const glob = require("glob");
4
+ const path = require("path");
5
+ const fs = require('fs');
6
+
7
+ const prettierSync = require("@prettier/sync");
8
+
9
+ dts.bundle({
10
+ name: 'react-declarative',
11
+ main: 'dist/index.d.ts',
12
+ });
13
+
14
+ const formatdef = prettierSync.format(fs.readFileSync('dist/react-declarative.d.ts').toString(), {
15
+ semi: true,
16
+ endOfLine: "auto",
17
+ trailingComma: "all",
18
+ singleQuote: false,
19
+ printWidth: 80,
20
+ tabWidth: 2,
21
+ parser: 'typescript',
22
+ });
23
+ fs.writeFileSync('dist/react-declarative.d.ts', formatdef)
24
+
25
+ glob.sync("./dist/**/*.js.map").forEach((file) => {
26
+ rimraf.sync(file);
27
+ });
28
+
29
+ glob.sync("./dist/**/*.d.ts").forEach((file) => {
30
+ const fileName = path.basename(file);
31
+ fileName !== "react-declarative.d.ts" && rimraf.sync(file);
32
+ });
33
+
34
+ glob.sync("./dist/*").forEach((file) => {
35
+ fs.lstatSync(file).isDirectory() && rimraf.sync(file);
36
+ });
37
+
38
+ fs.renameSync("./dist/react-declarative.d.ts", "./dist/index.d.ts")
39
+
40
+ fs.existsSync("demo") && fs.copyFileSync(
41
+ 'dist/index.d.ts',
42
+ 'demo/react-declarative.d.ts',
43
+ );
@@ -1,13 +1,13 @@
1
- const rimraf = require('rimraf');
2
- const path = require('path');
3
- const fs = require('fs');
4
-
5
- if (!fs.existsSync(path.join(__dirname, '../src'))) {
6
- try {
7
- const package = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json')).toString())
8
- Object.keys(package.peerDependencies).forEach((name) => {
9
- rimraf(path.join(__dirname, `../node_modules/${name}`), () => null)
10
- })
11
- } catch {
12
- }
13
- }
1
+ const rimraf = require('rimraf');
2
+ const path = require('path');
3
+ const fs = require('fs');
4
+
5
+ if (!fs.existsSync(path.join(__dirname, '../src'))) {
6
+ try {
7
+ const package = JSON.parse(fs.readFileSync(path.join(__dirname, '../package.json')).toString())
8
+ Object.keys(package.peerDependencies).forEach((name) => {
9
+ rimraf(path.join(__dirname, `../node_modules/${name}`), () => null)
10
+ })
11
+ } catch {
12
+ }
13
+ }
package/scripts/start.sh CHANGED
@@ -1,7 +1,7 @@
1
- #!/usr/bin/env bash
2
- npm install
3
- npm run build
4
- cd demo
5
- npm install
6
- npm run cleanup
7
- npm start
1
+ #!/usr/bin/env bash
2
+ npm install
3
+ npm run build
4
+ cd demo
5
+ npm install
6
+ npm run cleanup
7
+ npm start
@@ -1,2 +1,2 @@
1
- #!/usr/bin/env bash
2
- npx jest "./src/utils/__tests__/getMomentStamp.test.ts"
1
+ #!/usr/bin/env bash
2
+ npx jest "./src/utils/__tests__/getMomentStamp.test.ts"