@saltcorn/builder 0.8.0-beta.3 → 0.8.0

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/.eslintrc.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "extends": "eslint:recommended",
3
+ "parserOptions": {
4
+ "ecmaVersion": 2021,
5
+ "sourceType": "module",
6
+ "ecmaFeatures": {
7
+ "jsx": true
8
+ },
9
+
10
+ // typescript-eslint specific options
11
+ "warnOnUnsupportedTypeScriptVersion": true
12
+ },
13
+ "env": {
14
+ "browser": true
15
+ },
16
+ "ignorePatterns": ["dist/**"],
17
+ "rules": {
18
+ "no-unused-vars": "off",
19
+ "no-case-declarations": "off",
20
+ "no-empty": "warn",
21
+ "no-fallthrough": "warn"
22
+ }
23
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saltcorn/builder",
3
- "version": "0.8.0-beta.3",
3
+ "version": "0.8.0",
4
4
  "description": "Drag and drop view builder for Saltcorn, open-source no-code platform",
5
5
  "main": "index.js",
6
6
  "homepage": "https://saltcorn.com",
@@ -10,8 +10,8 @@ import { Element, useNode } from "@craftjs/core";
10
10
  import optionsCtx from "../context";
11
11
 
12
12
  export /**
13
- *
14
- * @param {object} props
13
+ *
14
+ * @param {object} props
15
15
  * @param {string} props.children
16
16
  * @param {*} props.align
17
17
  * @returns {div}
@@ -44,12 +44,12 @@ export /**
44
44
  * @namespace
45
45
  */
46
46
  const ColumnSettings = () => {
47
- const {} = useNode((node) => ({}));
47
+ useNode((node) => ({}));
48
48
  return <div></div>;
49
49
  };
50
50
 
51
- /**
52
- * @type {object}
51
+ /**
52
+ * @type {object}
53
53
  */
54
54
  Column.craft = {
55
55
  displayName: "Column",
@@ -14,7 +14,7 @@ export /**
14
14
  * @category saltcorn-builder
15
15
  * @subcategory components
16
16
  */
17
- const Empty = ({}) => {
17
+ const Empty = () => {
18
18
  const {
19
19
  selected,
20
20
  connectors: { connect, drag },
@@ -22,8 +22,8 @@ const Empty = ({}) => {
22
22
  return null;
23
23
  };
24
24
 
25
- /**
26
- * @type {object}
25
+ /**
26
+ * @type {object}
27
27
  */
28
28
  Empty.craft = {
29
29
  displayName: "Empty",
@@ -15,7 +15,7 @@ export /**
15
15
  * @category saltcorn-builder
16
16
  * @subcategory components
17
17
  */
18
- const LineBreak = ({}) => {
18
+ const LineBreak = () => {
19
19
  const {
20
20
  selected,
21
21
  connectors: { connect, drag },