@maif/react-forms 1.0.35 → 1.0.38
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 +2 -12
- package/lib/esm/index.js +614 -819
- package/lib/index.js +616 -820
- package/package.json +11 -4
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -10
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -10
- package/.github/workflows/build-playground.yml +0 -34
- package/.github/workflows/generate-release-note.yml +0 -48
- package/.github/workflows/release.yml +0 -73
- package/docs/asset-manifest.json +0 -24
- package/docs/index.html +0 -1
- package/docs/manifest.json +0 -25
- package/docs/robots.txt +0 -3
- package/docs/static/css/2.6902daba.chunk.css +0 -11
- package/docs/static/css/2.6902daba.chunk.css.map +0 -1
- package/docs/static/css/main.8693c9f3.chunk.css +0 -2
- package/docs/static/css/main.8693c9f3.chunk.css.map +0 -1
- package/docs/static/js/2.bc3a307f.chunk.js +0 -3
- package/docs/static/js/2.bc3a307f.chunk.js.LICENSE.txt +0 -147
- package/docs/static/js/2.bc3a307f.chunk.js.map +0 -1
- package/docs/static/js/main.a5abf7f1.chunk.js +0 -2
- package/docs/static/js/main.a5abf7f1.chunk.js.map +0 -1
- package/docs/static/js/runtime-main.368a22f5.js +0 -2
- package/docs/static/js/runtime-main.368a22f5.js.map +0 -1
- package/docs/static/media/fa-brands-400.2285773e.woff +0 -0
- package/docs/static/media/fa-brands-400.23f19bb0.eot +0 -0
- package/docs/static/media/fa-brands-400.2f517e09.svg +0 -3717
- package/docs/static/media/fa-brands-400.527940b1.ttf +0 -0
- package/docs/static/media/fa-brands-400.d878b0a6.woff2 +0 -0
- package/docs/static/media/fa-regular-400.4689f52c.svg +0 -801
- package/docs/static/media/fa-regular-400.491974d1.ttf +0 -0
- package/docs/static/media/fa-regular-400.77206a6b.eot +0 -0
- package/docs/static/media/fa-regular-400.7a333762.woff2 +0 -0
- package/docs/static/media/fa-regular-400.bb58e57c.woff +0 -0
- package/docs/static/media/fa-solid-900.1551f4f6.woff2 +0 -0
- package/docs/static/media/fa-solid-900.7a8b4f13.svg +0 -5034
- package/docs/static/media/fa-solid-900.9bbb245e.eot +0 -0
- package/docs/static/media/fa-solid-900.be9ee23c.ttf +0 -0
- package/docs/static/media/fa-solid-900.eeccf4f6.woff +0 -0
- package/examples/.env +0 -2
- package/examples/README.md +0 -0
- package/examples/package.json +0 -43
- package/examples/public/index.html +0 -43
- package/examples/public/manifest.json +0 -25
- package/examples/public/robots.txt +0 -3
- package/examples/src/App.css +0 -10
- package/examples/src/Playground.js +0 -158
- package/examples/src/WrapperError.js +0 -21
- package/examples/src/index.css +0 -13
- package/examples/src/index.js +0 -11
- package/examples/src/reportWebVitals.js +0 -13
- package/examples/src/schema/basic.json +0 -15
- package/examples/src/schema/constrainedBasic.json +0 -28
- package/examples/src/schema/constraintsWithRef.json +0 -44
- package/examples/src/schema/dynamicForm.json +0 -57
- package/examples/src/schema/formArray.js +0 -30
- package/examples/src/schema/formInForm.json +0 -39
- package/examples/src/schema/selector.json +0 -14
- package/jest-sync.config.json +0 -17
- package/rollup.config.js +0 -64
- package/scripts/build.sh +0 -34
- package/test/array.spec.js +0 -78
- package/test/bool.spec.js +0 -29
- package/test/date.spec.js +0 -41
- package/test/number.spec.js +0 -124
- package/test/object.spec.js +0 -14
- package/test/string.spec.js +0 -87
- package/test/testUtils.js +0 -30
- package/test-setup.js +0 -9
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maif/react-forms",
|
|
3
3
|
"description": "Build react safe forms as fast as possible",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.38",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
7
7
|
"types": "lib/index.js",
|
|
@@ -26,6 +26,11 @@
|
|
|
26
26
|
"url": "http://www.apache.org/licenses/LICENSE-2.0"
|
|
27
27
|
}
|
|
28
28
|
],
|
|
29
|
+
"files": [
|
|
30
|
+
"LICENCE",
|
|
31
|
+
"/lib",
|
|
32
|
+
"README.md"
|
|
33
|
+
],
|
|
29
34
|
"scripts": {
|
|
30
35
|
"build": "rollup -c",
|
|
31
36
|
"dev": "rollup -c -w",
|
|
@@ -62,7 +67,6 @@
|
|
|
62
67
|
"@rollup/plugin-commonjs": "^21.0.2",
|
|
63
68
|
"@rollup/plugin-json": "^4.1.0",
|
|
64
69
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
65
|
-
"@rollup/plugin-typescript": "^8.3.1",
|
|
66
70
|
"babel-loader": "8.2.2",
|
|
67
71
|
"chai": "^4.3.4",
|
|
68
72
|
"chai-as-promised": "^7.1.1",
|
|
@@ -73,6 +77,7 @@
|
|
|
73
77
|
"react": "^17.0.2",
|
|
74
78
|
"react-dom": "^17.0.2",
|
|
75
79
|
"rollup": "^2.70.1",
|
|
80
|
+
"rollup-plugin-command": "1.1.3",
|
|
76
81
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
77
82
|
"rollup-plugin-copy": "^3.4.0",
|
|
78
83
|
"rollup-plugin-delete": "^2.0.0",
|
|
@@ -93,6 +98,7 @@
|
|
|
93
98
|
"@codemirror/theme-one-dark": "^0.19.1",
|
|
94
99
|
"@fortawesome/fontawesome-free": "^5.15.3",
|
|
95
100
|
"@hookform/resolvers": "2.4.0",
|
|
101
|
+
"@maif/react-forms": "^1.0.37-rc.1",
|
|
96
102
|
"@popperjs/core": "^2.11.2",
|
|
97
103
|
"@testing-library/jest-dom": "^5.11.4",
|
|
98
104
|
"@testing-library/react": "^11.1.0",
|
|
@@ -104,10 +110,11 @@
|
|
|
104
110
|
"antd": "4.15.4",
|
|
105
111
|
"bootstrap": "5.0.0",
|
|
106
112
|
"classnames": "2.3.0",
|
|
107
|
-
"
|
|
113
|
+
"fast-deep-equal": "^3.1.3",
|
|
114
|
+
"highlight.js": "^11.5.1",
|
|
108
115
|
"moment": "2.29.1",
|
|
109
116
|
"react-feather": "2.0.9",
|
|
110
|
-
"react-hook-form": "7.
|
|
117
|
+
"react-hook-form": "7.29.0",
|
|
111
118
|
"react-jss": "10.8.2",
|
|
112
119
|
"react-rainbow-components": "1.26.0",
|
|
113
120
|
"react-select": "5.2.1",
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
name: Build playground
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
paths:
|
|
6
|
-
- 'examples/**'
|
|
7
|
-
branches:
|
|
8
|
-
- main
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
build-playground:
|
|
12
|
-
name: Build playground
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@master
|
|
16
|
-
#build playground
|
|
17
|
-
- name: Build playground
|
|
18
|
-
run: |
|
|
19
|
-
cd examples
|
|
20
|
-
yarn
|
|
21
|
-
yarn build
|
|
22
|
-
env:
|
|
23
|
-
CI: "false"
|
|
24
|
-
- name: Commit files
|
|
25
|
-
run: |
|
|
26
|
-
git config --local user.email "github-actions@users.noreply.github.com"
|
|
27
|
-
git config --local user.name "github-actions"
|
|
28
|
-
git add --all
|
|
29
|
-
git commit -am "Update playground"
|
|
30
|
-
- name: Push playground
|
|
31
|
-
uses: ad-m/github-push-action@master
|
|
32
|
-
with:
|
|
33
|
-
branch: main
|
|
34
|
-
github_token: ${{ secrets.GITHUB_TOKEN}}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
name: Release notes
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
milestone:
|
|
5
|
-
types: [closed]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
create-release-notes:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
steps:
|
|
11
|
-
- uses: actions/checkout@master
|
|
12
|
-
- name: Create Release Notes
|
|
13
|
-
uses: docker://decathlon/release-notes-generator-action:2.0.1
|
|
14
|
-
env:
|
|
15
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
16
|
-
OUTPUT_FOLDER: temp_release_notes
|
|
17
|
-
USE_MILESTONE_TITLE: "true"
|
|
18
|
-
- name: text replace
|
|
19
|
-
uses: BjornLuG/substitute-string-action@v1
|
|
20
|
-
id: sub
|
|
21
|
-
with:
|
|
22
|
-
_input-file: temp_release_notes/${{ github.event.milestone.title }}.md
|
|
23
|
-
- uses: pCYSl5EDgo/cat@master
|
|
24
|
-
id: release_text
|
|
25
|
-
with:
|
|
26
|
-
path: temp_release_notes/${{ github.event.milestone.title }}.md
|
|
27
|
-
- run: |
|
|
28
|
-
echo "## [${{ github.event.milestone.title }}] - `date +%F`" >> CHANGELOG
|
|
29
|
-
echo "" >> CHANGELOG
|
|
30
|
-
echo "${{ steps.release_text.outputs.text }}" >> CHANGELOG
|
|
31
|
-
- name: Commit files
|
|
32
|
-
run: |
|
|
33
|
-
git config --local user.email "github-actions@users.noreply.github.com"
|
|
34
|
-
git config --local user.name "github-actions"
|
|
35
|
-
git add CHANGELOG
|
|
36
|
-
git commit -am "Update CHANGELOG"
|
|
37
|
-
- name: Push changelog
|
|
38
|
-
uses: ad-m/github-push-action@master
|
|
39
|
-
with:
|
|
40
|
-
branch: master
|
|
41
|
-
github_token: ${{ secrets.GITHUB_TOKEN}}
|
|
42
|
-
- name: Update release
|
|
43
|
-
uses: meeDamian/github-release@2.0
|
|
44
|
-
with:
|
|
45
|
-
token: ${{ secrets.GITHUB_TOKEN}}
|
|
46
|
-
tag: ${{ github.event.milestone.title }}
|
|
47
|
-
body: ${{ steps.release_text.outputs.text }}
|
|
48
|
-
allow_override: true
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
name: Release react-forms
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
tags:
|
|
5
|
-
- '*.*.*'
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
release:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
steps:
|
|
11
|
-
- uses: actions/checkout@v2.2.0
|
|
12
|
-
- uses: coursier/cache-action@v5
|
|
13
|
-
#get version
|
|
14
|
-
- name: Get the version
|
|
15
|
-
id: get_version
|
|
16
|
-
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
|
|
17
|
-
# install node 14
|
|
18
|
-
- name: setup node
|
|
19
|
-
uses: actions/setup-node@v2
|
|
20
|
-
with:
|
|
21
|
-
node-version: '16'
|
|
22
|
-
registry-url: 'https://registry.npmjs.org'
|
|
23
|
-
# release
|
|
24
|
-
- uses: actions/cache@v2
|
|
25
|
-
with:
|
|
26
|
-
path: ~/.npm
|
|
27
|
-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
28
|
-
restore-keys: |
|
|
29
|
-
${{ runner.os }}-node-
|
|
30
|
-
- name: install
|
|
31
|
-
run: npm install
|
|
32
|
-
- name: build & publish
|
|
33
|
-
run: |
|
|
34
|
-
npm version ${{ steps.get_version.outputs.VERSION }} --no-git-tag-version
|
|
35
|
-
npm run build
|
|
36
|
-
npm publish --access public
|
|
37
|
-
env:
|
|
38
|
-
CI: true
|
|
39
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
40
|
-
- name: Commit files
|
|
41
|
-
run: |
|
|
42
|
-
git config --local user.email "github-actions@users.noreply.github.com"
|
|
43
|
-
git config --local user.name "github-actions"
|
|
44
|
-
git add --all
|
|
45
|
-
git commit -am "Update package version"
|
|
46
|
-
- name: Push
|
|
47
|
-
uses: ad-m/github-push-action@master
|
|
48
|
-
with:
|
|
49
|
-
branch: main
|
|
50
|
-
github_token: ${{ secrets.GITHUB_TOKEN}}
|
|
51
|
-
# create github release
|
|
52
|
-
- name: Create a Release
|
|
53
|
-
id: create_release
|
|
54
|
-
uses: actions/create-release@v1.1.4
|
|
55
|
-
env:
|
|
56
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
57
|
-
with:
|
|
58
|
-
tag_name: ${{ github.ref }}
|
|
59
|
-
release_name: v${{ github.ref }}
|
|
60
|
-
draft: false
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
# close milestone (with the latest release found)
|
|
66
|
-
- name: Close milestone
|
|
67
|
-
uses: adlerhsieh/prepare-release@0.1.2
|
|
68
|
-
env:
|
|
69
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
70
|
-
REPO_OWNER: ${{ github.repository_owner }}
|
|
71
|
-
REPO: react-forms
|
|
72
|
-
IGNORE_MILESTONE_NOT_FOUND: true
|
|
73
|
-
|
package/docs/asset-manifest.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files": {
|
|
3
|
-
"main.css": "/react-forms/static/css/main.8693c9f3.chunk.css",
|
|
4
|
-
"main.js": "/react-forms/static/js/main.a5abf7f1.chunk.js",
|
|
5
|
-
"main.js.map": "/react-forms/static/js/main.a5abf7f1.chunk.js.map",
|
|
6
|
-
"runtime-main.js": "/react-forms/static/js/runtime-main.368a22f5.js",
|
|
7
|
-
"runtime-main.js.map": "/react-forms/static/js/runtime-main.368a22f5.js.map",
|
|
8
|
-
"static/css/2.6902daba.chunk.css": "/react-forms/static/css/2.6902daba.chunk.css",
|
|
9
|
-
"static/js/2.bc3a307f.chunk.js": "/react-forms/static/js/2.bc3a307f.chunk.js",
|
|
10
|
-
"static/js/2.bc3a307f.chunk.js.map": "/react-forms/static/js/2.bc3a307f.chunk.js.map",
|
|
11
|
-
"index.html": "/react-forms/index.html",
|
|
12
|
-
"static/css/2.6902daba.chunk.css.map": "/react-forms/static/css/2.6902daba.chunk.css.map",
|
|
13
|
-
"static/css/main.8693c9f3.chunk.css.map": "/react-forms/static/css/main.8693c9f3.chunk.css.map",
|
|
14
|
-
"static/js/2.bc3a307f.chunk.js.LICENSE.txt": "/react-forms/static/js/2.bc3a307f.chunk.js.LICENSE.txt",
|
|
15
|
-
"static/media/all.css": "/react-forms/static/media/fa-solid-900.eeccf4f6.woff"
|
|
16
|
-
},
|
|
17
|
-
"entrypoints": [
|
|
18
|
-
"static/js/runtime-main.368a22f5.js",
|
|
19
|
-
"static/css/2.6902daba.chunk.css",
|
|
20
|
-
"static/js/2.bc3a307f.chunk.js",
|
|
21
|
-
"static/css/main.8693c9f3.chunk.css",
|
|
22
|
-
"static/js/main.a5abf7f1.chunk.js"
|
|
23
|
-
]
|
|
24
|
-
}
|
package/docs/index.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/react-forms/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/react-forms/logo192.png"/><link rel="manifest" href="/react-forms/manifest.json"/><title>React-forms playground</title><link href="/react-forms/static/css/2.6902daba.chunk.css" rel="stylesheet"><link href="/react-forms/static/css/main.8693c9f3.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function r(r){for(var n,a,f=r[0],l=r[1],i=r[2],c=0,s=[];c<f.length;c++)a=f[c],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&s.push(o[a][0]),o[a]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(p&&p(r);s.length;)s.shift()();return u.push.apply(u,i||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++){var l=t[f];0!==o[l]&&(n=!1)}n&&(u.splice(r--,1),e=a(a.s=t[0]))}return e}var n={},o={1:0},u=[];function a(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.m=e,a.c=n,a.d=function(e,r,t){a.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,r){if(1&r&&(e=a(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(a.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)a.d(t,n,function(r){return e[r]}.bind(null,n));return t},a.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(r,"a",r),r},a.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},a.p="/react-forms/";var f=this["webpackJsonp@maif/react-forms-playground"]=this["webpackJsonp@maif/react-forms-playground"]||[],l=f.push.bind(f);f.push=r,f=f.slice();for(var i=0;i<f.length;i++)r(f[i]);var p=l;t()}([])</script><script src="/react-forms/static/js/2.bc3a307f.chunk.js"></script><script src="/react-forms/static/js/main.a5abf7f1.chunk.js"></script></body></html>
|
package/docs/manifest.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"short_name": "React-Form playground",
|
|
3
|
-
"name": "@maif/react-forms-playground",
|
|
4
|
-
"icons": [
|
|
5
|
-
{
|
|
6
|
-
"src": "favicon.ico",
|
|
7
|
-
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
-
"type": "image/x-icon"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "logo192.png",
|
|
12
|
-
"type": "image/png",
|
|
13
|
-
"sizes": "192x192"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"src": "logo512.png",
|
|
17
|
-
"type": "image/png",
|
|
18
|
-
"sizes": "512x512"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"start_url": ".",
|
|
22
|
-
"display": "standalone",
|
|
23
|
-
"theme_color": "#000000",
|
|
24
|
-
"background_color": "#ffffff"
|
|
25
|
-
}
|
package/docs/robots.txt
DELETED