@scenid/react-formulator 0.5.3 → 0.5.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/package.json +4 -1
- package/.babelrc +0 -30
- package/.eslintignore +0 -22
- package/.eslintrc +0 -70
- package/.firebaserc +0 -5
- package/.storybook/main.js +0 -12
- package/.storybook/preview.js +0 -9
- package/firebase.json +0 -22
- package/functions/.eslintignore +0 -1
- package/functions/.eslintrc.js +0 -29
- package/functions/index.js +0 -32
- package/functions/package-lock.json +0 -6810
- package/functions/package.json +0 -29
- package/rollup.config.js +0 -40
- package/src/Components/HiddenData.jsx +0 -24
- package/src/Components/SelectOrCreate.jsx +0 -156
- package/src/Editable/FormAutocomplete/FormAutocomplete.jsx +0 -155
- package/src/Editable/FormAutocomplete/useFetchOptions.js +0 -83
- package/src/Editable/FormBoolean.jsx +0 -46
- package/src/Editable/FormCatalogType.jsx +0 -29
- package/src/Editable/FormField.jsx +0 -231
- package/src/Editable/FormNumber.jsx +0 -36
- package/src/Editable/FormRepeater.jsx +0 -218
- package/src/Editable/FormSelect.jsx +0 -52
- package/src/Editable/FormText.jsx +0 -20
- package/src/FormGroupHeader.jsx +0 -85
- package/src/FormHelpers.js +0 -191
- package/src/FormSectionBlock.jsx +0 -71
- package/src/FormSectionCard.jsx +0 -62
- package/src/FormulatorForm.jsx +0 -539
- package/src/FormulatorFormSection.jsx +0 -456
- package/src/ReadOnly/FormReadOnlyBoolean.jsx +0 -36
- package/src/ReadOnly/FormReadOnlyField.jsx +0 -126
- package/src/ReadOnly/FormReadOnlyMarkdown.jsx +0 -20
- package/src/ReadOnly/FormReadOnlyNumber.jsx +0 -17
- package/src/ReadOnly/FormReadOnlyRepeater.jsx +0 -52
- package/src/ReadOnly/FormReadOnlySelect.jsx +0 -18
- package/src/ReadOnly/FormReadOnlyText.jsx +0 -45
- package/src/helpers.js +0 -13
- package/src/index.js +0 -20
- package/stories/CustomRenderField.jsx +0 -46
- package/stories/Forms.stories.jsx +0 -283
- package/stories/Introduction.stories.mdx +0 -206
- package/stories/StoryBase.jsx +0 -35
- package/stories/assets/code-brackets.svg +0 -1
- package/stories/assets/colors.svg +0 -1
- package/stories/assets/comments.svg +0 -1
- package/stories/assets/direction.svg +0 -1
- package/stories/assets/flow.svg +0 -1
- package/stories/assets/plugin.svg +0 -1
- package/stories/assets/repo.svg +0 -1
- package/stories/assets/stackalt.svg +0 -1
- package/stories/forms/login.render.schema.json +0 -23
- package/stories/forms/login.validation.schema.json +0 -29
- package/stories/forms/markdown.render.schema.json +0 -30
- package/stories/forms/markdown.validation.schema.json +0 -18
- package/stories/forms/register.render.schema.json +0 -32
- package/stories/forms/register.validation.schema.json +0 -34
- package/stories/forms/rlp.render.schema.json +0 -153
- package/stories/forms/rlp.translations.json +0 -883
- package/stories/forms/rlp.validation.schema.json +0 -1631
- package/stories/forms/types.schemas.js +0 -319
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scenid/react-formulator",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"repository": "https://dennykoch@bitbucket.org/scenid/react-formulator.git",
|
|
7
7
|
"author": "Denny Koch <denny.koch@scenid.com>",
|
|
8
8
|
"license": "UNLICENSED",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
9
12
|
"scripts": {
|
|
10
13
|
"build": "rollup -c",
|
|
11
14
|
"watch": "cross-env STORYBOOK_NODE_ENV=development start-storybook -p 6006",
|
package/.babelrc
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"presets": [
|
|
3
|
-
"@babel/env",
|
|
4
|
-
"@babel/react"
|
|
5
|
-
],
|
|
6
|
-
"plugins": [
|
|
7
|
-
[
|
|
8
|
-
"@babel/transform-runtime",
|
|
9
|
-
{ "regenerator": true }
|
|
10
|
-
],
|
|
11
|
-
[
|
|
12
|
-
"babel-plugin-import",
|
|
13
|
-
{
|
|
14
|
-
"libraryName": "@material-ui/core",
|
|
15
|
-
"libraryDirectory": "esm",
|
|
16
|
-
"camel2DashComponentName": false
|
|
17
|
-
},
|
|
18
|
-
"core"
|
|
19
|
-
],
|
|
20
|
-
[
|
|
21
|
-
"babel-plugin-import",
|
|
22
|
-
{
|
|
23
|
-
"libraryName": "@material-ui/icons",
|
|
24
|
-
"libraryDirectory": "esm",
|
|
25
|
-
"camel2DashComponentName": false
|
|
26
|
-
},
|
|
27
|
-
"icons"
|
|
28
|
-
]
|
|
29
|
-
]
|
|
30
|
-
}
|
package/.eslintignore
DELETED
package/.eslintrc
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"parser": "babel-eslint",
|
|
3
|
-
"parserOptions": {
|
|
4
|
-
"ecmaVersion": 6,
|
|
5
|
-
"sourceType": "module",
|
|
6
|
-
"allowImportExportEverywhere": true
|
|
7
|
-
},
|
|
8
|
-
"extends": ["airbnb"],
|
|
9
|
-
"env": {
|
|
10
|
-
"browser": true,
|
|
11
|
-
"node": true
|
|
12
|
-
},
|
|
13
|
-
"rules": {
|
|
14
|
-
"max-len": ["warn", { "code": 200 }],
|
|
15
|
-
"no-plusplus": ["warn", { "allowForLoopAfterthoughts": true }],
|
|
16
|
-
"object-curly-newline": "off",
|
|
17
|
-
"one-var-declaration-per-line": "off",
|
|
18
|
-
"prefer-destructuring": [
|
|
19
|
-
"warn",
|
|
20
|
-
{
|
|
21
|
-
"array": false,
|
|
22
|
-
"object": true
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"enforceForRenamedProperties": false
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"one-var": "off",
|
|
29
|
-
"func-names": ["warn", "never"],
|
|
30
|
-
"arrow-parens": ["off"],
|
|
31
|
-
"linebreak-style": ["off"],
|
|
32
|
-
"consistent-return": "off",
|
|
33
|
-
"comma-dangle": ["error", "never"],
|
|
34
|
-
"generator-star-spacing": "off",
|
|
35
|
-
"import/no-unresolved": "warn",
|
|
36
|
-
"import/no-extraneous-dependencies": "off",
|
|
37
|
-
"jsx-a11y/anchor-is-valid": "off",
|
|
38
|
-
"jsx-a11y/click-events-have-key-events": "off",
|
|
39
|
-
"jsx-a11y/no-static-element-interactions": "off",
|
|
40
|
-
"no-console": "off",
|
|
41
|
-
"no-use-before-define": "off",
|
|
42
|
-
"no-multi-assign": "off",
|
|
43
|
-
"promise/param-names": "warn",
|
|
44
|
-
"promise/always-return": "warn",
|
|
45
|
-
"promise/catch-or-return": "warn",
|
|
46
|
-
"react/jsx-wrap-multilines": "off",
|
|
47
|
-
"operator-linebreak": "off",
|
|
48
|
-
"promise/no-native": "off",
|
|
49
|
-
"react/sort-comp": ["warn", {
|
|
50
|
-
"order": ["type-annotations", "static-methods", "lifecycle", "everything-else", "render"]
|
|
51
|
-
}],
|
|
52
|
-
"react/jsx-no-bind": "off",
|
|
53
|
-
"react/forbid-prop-types": "off",
|
|
54
|
-
"react/require-default-props": "off",
|
|
55
|
-
"react/jsx-filename-extension": [
|
|
56
|
-
"warn",
|
|
57
|
-
{ "extensions": [".jsx"] }
|
|
58
|
-
],
|
|
59
|
-
"semi": [
|
|
60
|
-
2,
|
|
61
|
-
"never"
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
"plugins": [
|
|
65
|
-
"import",
|
|
66
|
-
"promise",
|
|
67
|
-
"compat",
|
|
68
|
-
"react"
|
|
69
|
-
]
|
|
70
|
-
}
|
package/.firebaserc
DELETED
package/.storybook/main.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"stories": [
|
|
3
|
-
"../stories/**/*.stories.mdx",
|
|
4
|
-
"../stories/**/*.stories.@(js|jsx|ts|tsx)"
|
|
5
|
-
],
|
|
6
|
-
"addons": [
|
|
7
|
-
"@storybook/addon-links",
|
|
8
|
-
"@storybook/addon-essentials",
|
|
9
|
-
"@storybook/addon-interactions"
|
|
10
|
-
],
|
|
11
|
-
"framework": "@storybook/react"
|
|
12
|
-
}
|
package/.storybook/preview.js
DELETED
package/firebase.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"hosting": {
|
|
3
|
-
"site": "react-formulator",
|
|
4
|
-
"public": "storybook-static",
|
|
5
|
-
"ignore": [
|
|
6
|
-
"firebase.json",
|
|
7
|
-
"**/.*",
|
|
8
|
-
"**/node_modules/**"
|
|
9
|
-
],
|
|
10
|
-
"rewrites": [
|
|
11
|
-
{
|
|
12
|
-
"source": "**",
|
|
13
|
-
"destination": "/index.html"
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"functions": {
|
|
18
|
-
"predeploy": [
|
|
19
|
-
"npm --prefix \"$RESOURCE_DIR\" run lint"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
}
|
package/functions/.eslintignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.eslintrc.js
|
package/functions/.eslintrc.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"root": true,
|
|
3
|
-
"parser": "babel-eslint",
|
|
4
|
-
"parserOptions": {
|
|
5
|
-
"ecmaVersion": 6,
|
|
6
|
-
"sourceType": "module",
|
|
7
|
-
"allowImportExportEverywhere": true
|
|
8
|
-
},
|
|
9
|
-
"extends": [
|
|
10
|
-
"standard"
|
|
11
|
-
],
|
|
12
|
-
"env": {
|
|
13
|
-
"node": true,
|
|
14
|
-
"mocha": true
|
|
15
|
-
},
|
|
16
|
-
"rules": {
|
|
17
|
-
"operator-linebreak": ["error", "before"],
|
|
18
|
-
"space-before-function-paren": ["error", {
|
|
19
|
-
"anonymous": "always",
|
|
20
|
-
"named": "never",
|
|
21
|
-
"asyncArrow": "always"
|
|
22
|
-
}]
|
|
23
|
-
},
|
|
24
|
-
"plugins": [
|
|
25
|
-
"import",
|
|
26
|
-
"promise",
|
|
27
|
-
"compat"
|
|
28
|
-
]
|
|
29
|
-
}
|
package/functions/index.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const functions = require('firebase-functions')
|
|
2
|
-
|
|
3
|
-
const express = require('express')
|
|
4
|
-
const cors = require('cors')
|
|
5
|
-
|
|
6
|
-
const app = express()
|
|
7
|
-
|
|
8
|
-
// Automatically allow cross-origin requests
|
|
9
|
-
app.use(cors({ origin: true }))
|
|
10
|
-
|
|
11
|
-
app.get('/cats', (req, res) => {
|
|
12
|
-
const catalog = [
|
|
13
|
-
{ entry: 'Abyssinian' },
|
|
14
|
-
{ entry: 'Bengal' },
|
|
15
|
-
{ entry: 'Birman' },
|
|
16
|
-
{ entry: 'Burmese' },
|
|
17
|
-
{ entry: 'Chartreux' },
|
|
18
|
-
{ entry: 'Egyptian Mau' },
|
|
19
|
-
{ entry: 'German Rex' },
|
|
20
|
-
{ entry: 'Khao Manee' },
|
|
21
|
-
{ entry: 'Korean Bobtail' },
|
|
22
|
-
{ entry: 'Maine Coon' },
|
|
23
|
-
{ entry: 'Nebelung' },
|
|
24
|
-
{ entry: 'Ocicat' },
|
|
25
|
-
{ entry: 'Oriental Shorthair' },
|
|
26
|
-
{ entry: 'Siamese' }
|
|
27
|
-
].map(e => ({ ...e, count: Math.floor(Math.random() * 100) }))
|
|
28
|
-
|
|
29
|
-
res.json(catalog)
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
exports.catalog = functions.https.onRequest(app)
|