@maif/react-forms 1.0.36 → 1.0.37-rc.1

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 (69) hide show
  1. package/README.md +1 -1
  2. package/lib/esm/index.js +461 -573
  3. package/lib/index.js +460 -572
  4. package/package.json +7 -2
  5. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -10
  6. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -10
  7. package/.github/workflows/build-playground.yml +0 -34
  8. package/.github/workflows/generate-release-note.yml +0 -48
  9. package/.github/workflows/release.yml +0 -73
  10. package/docs/asset-manifest.json +0 -24
  11. package/docs/index.html +0 -1
  12. package/docs/manifest.json +0 -25
  13. package/docs/robots.txt +0 -3
  14. package/docs/static/css/2.6902daba.chunk.css +0 -11
  15. package/docs/static/css/2.6902daba.chunk.css.map +0 -1
  16. package/docs/static/css/main.8693c9f3.chunk.css +0 -2
  17. package/docs/static/css/main.8693c9f3.chunk.css.map +0 -1
  18. package/docs/static/js/2.bc3a307f.chunk.js +0 -3
  19. package/docs/static/js/2.bc3a307f.chunk.js.LICENSE.txt +0 -147
  20. package/docs/static/js/2.bc3a307f.chunk.js.map +0 -1
  21. package/docs/static/js/main.a5abf7f1.chunk.js +0 -2
  22. package/docs/static/js/main.a5abf7f1.chunk.js.map +0 -1
  23. package/docs/static/js/runtime-main.368a22f5.js +0 -2
  24. package/docs/static/js/runtime-main.368a22f5.js.map +0 -1
  25. package/docs/static/media/fa-brands-400.2285773e.woff +0 -0
  26. package/docs/static/media/fa-brands-400.23f19bb0.eot +0 -0
  27. package/docs/static/media/fa-brands-400.2f517e09.svg +0 -3717
  28. package/docs/static/media/fa-brands-400.527940b1.ttf +0 -0
  29. package/docs/static/media/fa-brands-400.d878b0a6.woff2 +0 -0
  30. package/docs/static/media/fa-regular-400.4689f52c.svg +0 -801
  31. package/docs/static/media/fa-regular-400.491974d1.ttf +0 -0
  32. package/docs/static/media/fa-regular-400.77206a6b.eot +0 -0
  33. package/docs/static/media/fa-regular-400.7a333762.woff2 +0 -0
  34. package/docs/static/media/fa-regular-400.bb58e57c.woff +0 -0
  35. package/docs/static/media/fa-solid-900.1551f4f6.woff2 +0 -0
  36. package/docs/static/media/fa-solid-900.7a8b4f13.svg +0 -5034
  37. package/docs/static/media/fa-solid-900.9bbb245e.eot +0 -0
  38. package/docs/static/media/fa-solid-900.be9ee23c.ttf +0 -0
  39. package/docs/static/media/fa-solid-900.eeccf4f6.woff +0 -0
  40. package/examples/.env +0 -2
  41. package/examples/README.md +0 -0
  42. package/examples/package.json +0 -43
  43. package/examples/public/index.html +0 -43
  44. package/examples/public/manifest.json +0 -25
  45. package/examples/public/robots.txt +0 -3
  46. package/examples/src/App.css +0 -10
  47. package/examples/src/Playground.js +0 -158
  48. package/examples/src/WrapperError.js +0 -21
  49. package/examples/src/index.css +0 -13
  50. package/examples/src/index.js +0 -11
  51. package/examples/src/reportWebVitals.js +0 -13
  52. package/examples/src/schema/basic.json +0 -15
  53. package/examples/src/schema/constrainedBasic.json +0 -28
  54. package/examples/src/schema/constraintsWithRef.json +0 -44
  55. package/examples/src/schema/dynamicForm.json +0 -57
  56. package/examples/src/schema/formArray.js +0 -30
  57. package/examples/src/schema/formInForm.json +0 -39
  58. package/examples/src/schema/selector.json +0 -14
  59. package/jest-sync.config.json +0 -17
  60. package/rollup.config.js +0 -66
  61. package/scripts/build.sh +0 -34
  62. package/test/array.spec.js +0 -78
  63. package/test/bool.spec.js +0 -29
  64. package/test/date.spec.js +0 -41
  65. package/test/number.spec.js +0 -124
  66. package/test/object.spec.js +0 -14
  67. package/test/string.spec.js +0 -87
  68. package/test/testUtils.js +0 -30
  69. 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.36",
4
+ "version": "1.0.37-rc.1",
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,7 @@
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",
70
+ "rollup-plugin-command": "1.1.3",
66
71
  "babel-loader": "8.2.2",
67
72
  "chai": "^4.3.4",
68
73
  "chai-as-promised": "^7.1.1",
@@ -1,10 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
- title: ''
5
- labels: bug
6
- assignees: ''
7
-
8
- ---
9
-
10
-
@@ -1,10 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
- title: ''
5
- labels: enhancement
6
- assignees: ''
7
-
8
- ---
9
-
10
-
@@ -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
-
@@ -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>
@@ -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
@@ -1,3 +0,0 @@
1
- # https://www.robotstxt.org/robotstxt.html
2
- User-agent: *
3
- Disallow: