@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.
Files changed (62) hide show
  1. package/package.json +4 -1
  2. package/.babelrc +0 -30
  3. package/.eslintignore +0 -22
  4. package/.eslintrc +0 -70
  5. package/.firebaserc +0 -5
  6. package/.storybook/main.js +0 -12
  7. package/.storybook/preview.js +0 -9
  8. package/firebase.json +0 -22
  9. package/functions/.eslintignore +0 -1
  10. package/functions/.eslintrc.js +0 -29
  11. package/functions/index.js +0 -32
  12. package/functions/package-lock.json +0 -6810
  13. package/functions/package.json +0 -29
  14. package/rollup.config.js +0 -40
  15. package/src/Components/HiddenData.jsx +0 -24
  16. package/src/Components/SelectOrCreate.jsx +0 -156
  17. package/src/Editable/FormAutocomplete/FormAutocomplete.jsx +0 -155
  18. package/src/Editable/FormAutocomplete/useFetchOptions.js +0 -83
  19. package/src/Editable/FormBoolean.jsx +0 -46
  20. package/src/Editable/FormCatalogType.jsx +0 -29
  21. package/src/Editable/FormField.jsx +0 -231
  22. package/src/Editable/FormNumber.jsx +0 -36
  23. package/src/Editable/FormRepeater.jsx +0 -218
  24. package/src/Editable/FormSelect.jsx +0 -52
  25. package/src/Editable/FormText.jsx +0 -20
  26. package/src/FormGroupHeader.jsx +0 -85
  27. package/src/FormHelpers.js +0 -191
  28. package/src/FormSectionBlock.jsx +0 -71
  29. package/src/FormSectionCard.jsx +0 -62
  30. package/src/FormulatorForm.jsx +0 -539
  31. package/src/FormulatorFormSection.jsx +0 -456
  32. package/src/ReadOnly/FormReadOnlyBoolean.jsx +0 -36
  33. package/src/ReadOnly/FormReadOnlyField.jsx +0 -126
  34. package/src/ReadOnly/FormReadOnlyMarkdown.jsx +0 -20
  35. package/src/ReadOnly/FormReadOnlyNumber.jsx +0 -17
  36. package/src/ReadOnly/FormReadOnlyRepeater.jsx +0 -52
  37. package/src/ReadOnly/FormReadOnlySelect.jsx +0 -18
  38. package/src/ReadOnly/FormReadOnlyText.jsx +0 -45
  39. package/src/helpers.js +0 -13
  40. package/src/index.js +0 -20
  41. package/stories/CustomRenderField.jsx +0 -46
  42. package/stories/Forms.stories.jsx +0 -283
  43. package/stories/Introduction.stories.mdx +0 -206
  44. package/stories/StoryBase.jsx +0 -35
  45. package/stories/assets/code-brackets.svg +0 -1
  46. package/stories/assets/colors.svg +0 -1
  47. package/stories/assets/comments.svg +0 -1
  48. package/stories/assets/direction.svg +0 -1
  49. package/stories/assets/flow.svg +0 -1
  50. package/stories/assets/plugin.svg +0 -1
  51. package/stories/assets/repo.svg +0 -1
  52. package/stories/assets/stackalt.svg +0 -1
  53. package/stories/forms/login.render.schema.json +0 -23
  54. package/stories/forms/login.validation.schema.json +0 -29
  55. package/stories/forms/markdown.render.schema.json +0 -30
  56. package/stories/forms/markdown.validation.schema.json +0 -18
  57. package/stories/forms/register.render.schema.json +0 -32
  58. package/stories/forms/register.validation.schema.json +0 -34
  59. package/stories/forms/rlp.render.schema.json +0 -153
  60. package/stories/forms/rlp.translations.json +0 -883
  61. package/stories/forms/rlp.validation.schema.json +0 -1631
  62. 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",
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
@@ -1,22 +0,0 @@
1
- # Logs
2
- logs
3
- *.log
4
-
5
- coverage
6
- .eslintcache
7
- .stylelintcache
8
- node_modules
9
- build
10
- dist
11
- data
12
- dump
13
- .nyc-output
14
- snapshot
15
- .DS_Store
16
- config.json
17
- test-reports
18
-
19
- webpack.*
20
-
21
- !.storybook
22
- functions
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
@@ -1,5 +0,0 @@
1
- {
2
- "projects": {
3
- "default": "scenid-cloud-dev"
4
- }
5
- }
@@ -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
- }
@@ -1,9 +0,0 @@
1
- export const parameters = {
2
- actions: { argTypesRegex: "^on[A-Z].*" },
3
- controls: {
4
- matchers: {
5
- color: /(background|color)$/i,
6
- date: /Date$/,
7
- },
8
- },
9
- }
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
- }
@@ -1 +0,0 @@
1
- .eslintrc.js
@@ -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
- }
@@ -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)