@lowdefy/layout 3.23.2 → 4.0.0-alpha.6

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/dist/Area.js CHANGED
@@ -1,22 +1,4 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- require("antd/lib/row/style/css");
9
-
10
- var _row = _interopRequireDefault(require("antd/lib/row"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _gutterSetup = _interopRequireDefault(require("./gutterSetup.js"));
15
-
16
- var _blockTools = require("@lowdefy/block-tools");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
1
+ import { jsx as _jsx } from "react/jsx-runtime";
20
2
  /*
21
3
  Copyright 2020-2021 Lowdefy, Inc
22
4
 
@@ -31,32 +13,25 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
31
13
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32
14
  See the License for the specific language governing permissions and
33
15
  limitations under the License.
34
- */
35
- var Area = _ref => {
36
- var {
37
- area,
38
- areaStyle,
39
- children,
40
- highlightBorders,
41
- id,
42
- makeCssClass
43
- } = _ref;
44
- return /*#__PURE__*/_react.default.createElement(_row.default, {
45
- id: id,
46
- align: area.align,
47
- className: makeCssClass(areaStyle),
48
- gutter: (0, _gutterSetup.default)(area.gutter),
49
- justify: area.justify,
50
- style: {
51
- // antd keeps bottom margin which can cause overflow issues.
52
- flexDirection: area.direction,
53
- flexWrap: area.wrap,
54
- overflow: area.overflow,
55
- border: highlightBorders && '1px dashed red'
56
- }
57
- }, children);
58
- };
59
-
60
- Area.defaultProps = _blockTools.blockDefaultProps;
61
- var _default = Area;
62
- exports.default = _default;
16
+ */ import React from 'react';
17
+ import { Row } from 'antd';
18
+ import { blockDefaultProps } from '@lowdefy/block-utils';
19
+ import gutterSetup from './gutterSetup.js';
20
+ const Area = ({ area , areaStyle , children , highlightBorders , id , makeCssClass })=>/*#__PURE__*/ _jsx(Row, {
21
+ id: id,
22
+ align: area.align,
23
+ className: makeCssClass(areaStyle),
24
+ gutter: gutterSetup(area.gutter),
25
+ justify: area.justify,
26
+ style: {
27
+ // antd keeps bottom margin which can cause overflow issues.
28
+ flexDirection: area.direction,
29
+ flexWrap: area.wrap,
30
+ overflow: area.overflow,
31
+ border: highlightBorders && '1px dashed red'
32
+ },
33
+ children: children
34
+ })
35
+ ;
36
+ Area.defaultProps = blockDefaultProps;
37
+ export default Area;
@@ -1,67 +1,52 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- require("antd/lib/col/style/css");
9
-
10
- var _col = _interopRequireDefault(require("antd/lib/col"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _deriveLayout = _interopRequireDefault(require("./deriveLayout.js"));
15
-
16
- var _blockTools = require("@lowdefy/block-tools");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
-
20
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
-
22
- var alignSelf = align => {
23
- if (align === 'bottom') {
24
- return 'flex-end';
25
- }
26
-
27
- if (align === 'top') {
28
- return 'flex-start';
29
- }
30
-
31
- if (align === 'middle') {
32
- return 'center';
33
- }
34
-
35
- return align;
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /*
3
+ Copyright 2020-2021 Lowdefy, Inc
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ */ import React from 'react';
17
+ import { Col } from 'antd';
18
+ import deriveLayout from './deriveLayout.js';
19
+ import { blockDefaultProps } from '@lowdefy/block-utils';
20
+ const alignSelf = (align)=>{
21
+ if (align === 'bottom') {
22
+ return 'flex-end';
23
+ }
24
+ if (align === 'top') {
25
+ return 'flex-start';
26
+ }
27
+ if (align === 'middle') {
28
+ return 'center';
29
+ }
30
+ return align;
36
31
  };
37
-
38
- var BlockLayout = _ref => {
39
- var {
40
- id,
41
- blockStyle,
42
- children,
43
- highlightBorders,
44
- layout,
45
- makeCssClass
46
- } = _ref;
47
-
48
- if (layout && layout.disabled) {
49
- return /*#__PURE__*/_react.default.createElement("div", {
50
- id: id,
51
- className: makeCssClass(blockStyle)
52
- }, children);
53
- }
54
-
55
- return /*#__PURE__*/_react.default.createElement(_col.default, _extends({}, (0, _deriveLayout.default)(layout), {
56
- style: {
57
- alignSelf: alignSelf(layout.align),
58
- border: highlightBorders && '1px dashed #8eccf5'
59
- },
60
- id: id,
61
- className: makeCssClass(blockStyle)
62
- }), children);
32
+ const BlockLayout = ({ id , blockStyle , children , highlightBorders , layout , makeCssClass })=>{
33
+ if (layout && layout.disabled) {
34
+ return(/*#__PURE__*/ _jsx("div", {
35
+ id: id,
36
+ className: makeCssClass(blockStyle),
37
+ children: children
38
+ }));
39
+ }
40
+ return(/*#__PURE__*/ _jsx(Col, {
41
+ ...deriveLayout(layout),
42
+ style: {
43
+ alignSelf: alignSelf(layout.align),
44
+ border: highlightBorders && '1px dashed #8eccf5'
45
+ },
46
+ id: id,
47
+ className: makeCssClass(blockStyle),
48
+ children: children
49
+ }));
63
50
  };
64
-
65
- BlockLayout.defaultProps = _blockTools.blockDefaultProps;
66
- var _default = BlockLayout;
67
- exports.default = _default;
51
+ BlockLayout.defaultProps = blockDefaultProps;
52
+ export default BlockLayout;
@@ -1,176 +1,135 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _helpers = require("@lowdefy/helpers");
9
-
10
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
11
-
12
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
13
-
14
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
-
16
- var sanitizeGrow = value => {
17
- if (value === 'unset' || value === 'inherit' || value === 'initial') {
18
- return value;
19
- }
20
-
21
- if (_helpers.type.isNumber(value) && value >= 0) {
22
- return value;
23
- }
24
-
25
- if (value === true) {
26
- return 1;
27
- }
28
-
29
- if (value === false) {
1
+ /*
2
+ Copyright 2020-2021 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ import { type } from '@lowdefy/helpers';
16
+ const sanitizeGrow = (value)=>{
17
+ if (value === 'unset' || value === 'inherit' || value === 'initial') {
18
+ return value;
19
+ }
20
+ if (type.isNumber(value) && value >= 0) {
21
+ return value;
22
+ }
23
+ if (value === true) {
24
+ return 1;
25
+ }
26
+ if (value === false) {
27
+ return 0;
28
+ }
30
29
  return 0;
31
- }
32
-
33
- return 0;
34
30
  };
35
-
36
- var sanitizeShrink = value => {
37
- if (value === 'unset' || value === 'inherit' || value === 'initial') {
38
- return value;
39
- }
40
-
41
- if (_helpers.type.isNumber(value) && value >= 0) {
42
- return value;
43
- }
44
-
45
- if (value === true) {
31
+ const sanitizeShrink = (value)=>{
32
+ if (value === 'unset' || value === 'inherit' || value === 'initial') {
33
+ return value;
34
+ }
35
+ if (type.isNumber(value) && value >= 0) {
36
+ return value;
37
+ }
38
+ if (value === true) {
39
+ return 1;
40
+ }
41
+ if (value === false) {
42
+ return 0;
43
+ }
46
44
  return 1;
47
- }
48
-
49
- if (value === false) {
50
- return 0;
51
- }
52
-
53
- return 1;
54
45
  };
55
-
56
- var sanitizeSize = value => {
57
- if (_helpers.type.isNumber(value)) {
58
- return "".concat(value, "px");
59
- }
60
-
61
- if (_helpers.type.isString(value)) {
62
- return value;
63
- }
64
-
65
- return 'auto';
46
+ const sanitizeSize = (value)=>{
47
+ if (type.isNumber(value)) {
48
+ return `${value}px`;
49
+ }
50
+ if (type.isString(value)) {
51
+ return value;
52
+ }
53
+ return 'auto';
66
54
  };
67
-
68
- var deriveFlex = _ref => {
69
- var {
70
- flex,
71
- grow,
72
- shrink,
73
- size
74
- } = _ref;
75
-
76
- if (_helpers.type.isNone(flex) && _helpers.type.isNone(grow) && _helpers.type.isNone(shrink) && _helpers.type.isNone(size)) {
77
- return false;
78
- }
79
-
80
- if (flex) {
81
- return flex === true ? '0 1 auto' : flex;
82
- }
83
-
84
- return "".concat(sanitizeGrow(grow), " ").concat(sanitizeShrink(shrink), " ").concat(sanitizeSize(size));
55
+ const deriveFlex = ({ flex , grow , shrink , size })=>{
56
+ if (type.isNone(flex) && type.isNone(grow) && type.isNone(shrink) && type.isNone(size)) {
57
+ return false;
58
+ }
59
+ if (flex) {
60
+ return flex === true ? '0 1 auto' : flex;
61
+ }
62
+ return `${sanitizeGrow(grow)} ${sanitizeShrink(shrink)} ${sanitizeSize(size)}`;
85
63
  };
86
-
87
- var diffOffsetAndSpan = obj => {
88
- if (obj.offset && !obj.span) {
89
- obj.span = 24 - obj.offset;
64
+ const diffOffsetAndSpan = (obj)=>{
65
+ if (obj.offset && !obj.span) {
66
+ obj.span = 24 - obj.offset;
67
+ return obj;
68
+ }
69
+ if (!obj.span) {
70
+ obj.span = 24;
71
+ }
90
72
  return obj;
91
- }
92
-
93
- if (!obj.span) {
94
- obj.span = 24;
95
- }
96
-
97
- return obj;
98
73
  };
99
-
100
- var deriveLayout = _ref2 => {
101
- var {
102
- flex,
103
- offset,
104
- order,
105
- pull,
106
- push,
107
- span,
108
- grow,
109
- shrink,
110
- size,
111
- xs,
112
- sm,
113
- md,
114
- lg,
115
- xl,
116
- xxl
117
- } = _ref2;
118
- var colProps = {
119
- xs: {
120
- span: 24
121
- },
122
- sm: {
123
- span: 24
124
- },
125
- md: diffOffsetAndSpan({
126
- offset,
127
- order,
128
- pull,
129
- push,
130
- span
131
- })
132
- };
133
- var flexValue = deriveFlex({
134
- flex,
135
- grow,
136
- shrink,
137
- size
138
- });
139
-
140
- if (flexValue) {
141
- colProps = {
142
- flex: flexValue,
143
- order
74
+ const deriveLayout = ({ flex , offset , order , pull , push , span , grow , shrink , size , xs , sm , md , lg , xl , xxl , })=>{
75
+ let colProps = {
76
+ xs: {
77
+ span: 24
78
+ },
79
+ sm: {
80
+ span: 24
81
+ },
82
+ md: diffOffsetAndSpan({
83
+ offset,
84
+ order,
85
+ pull,
86
+ push,
87
+ span
88
+ })
144
89
  };
145
- }
146
-
147
- if (_helpers.type.isObject(sm)) {
148
- colProps.sm = _objectSpread(_objectSpread({}, colProps.sm), diffOffsetAndSpan(sm));
149
- colProps.xs = _objectSpread(_objectSpread({}, colProps.xs), diffOffsetAndSpan(sm));
150
- }
151
-
152
- if (_helpers.type.isObject(xs)) {
153
- colProps.xs = _objectSpread(_objectSpread({}, colProps.xs), diffOffsetAndSpan(xs));
154
- }
155
-
156
- if (_helpers.type.isObject(md)) {
157
- colProps.md = _objectSpread(_objectSpread({}, colProps.md), diffOffsetAndSpan(md));
158
- }
159
-
160
- if (_helpers.type.isObject(lg)) {
161
- colProps.lg = diffOffsetAndSpan(lg);
162
- }
163
-
164
- if (_helpers.type.isObject(xl)) {
165
- colProps.xl = diffOffsetAndSpan(xl);
166
- }
167
-
168
- if (_helpers.type.isObject(xxl)) {
169
- colProps.xxl = diffOffsetAndSpan(xxl);
170
- }
171
-
172
- return colProps;
90
+ const flexValue = deriveFlex({
91
+ flex,
92
+ grow,
93
+ shrink,
94
+ size
95
+ });
96
+ if (flexValue) {
97
+ colProps = {
98
+ flex: flexValue,
99
+ order
100
+ };
101
+ }
102
+ if (type.isObject(sm)) {
103
+ colProps.sm = {
104
+ ...colProps.sm,
105
+ ...diffOffsetAndSpan(sm)
106
+ };
107
+ colProps.xs = {
108
+ ...colProps.xs,
109
+ ...diffOffsetAndSpan(sm)
110
+ };
111
+ }
112
+ if (type.isObject(xs)) {
113
+ colProps.xs = {
114
+ ...colProps.xs,
115
+ ...diffOffsetAndSpan(xs)
116
+ };
117
+ }
118
+ if (type.isObject(md)) {
119
+ colProps.md = {
120
+ ...colProps.md,
121
+ ...diffOffsetAndSpan(md)
122
+ };
123
+ }
124
+ if (type.isObject(lg)) {
125
+ colProps.lg = diffOffsetAndSpan(lg);
126
+ }
127
+ if (type.isObject(xl)) {
128
+ colProps.xl = diffOffsetAndSpan(xl);
129
+ }
130
+ if (type.isObject(xxl)) {
131
+ colProps.xxl = diffOffsetAndSpan(xxl);
132
+ }
133
+ return colProps;
173
134
  };
174
-
175
- var _default = deriveLayout;
176
- exports.default = _default;
135
+ export default deriveLayout;
@@ -1,12 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _helpers = require("@lowdefy/helpers");
9
-
10
1
  /*
11
2
  Copyright 2020-2021 Lowdefy, Inc
12
3
 
@@ -21,14 +12,14 @@ var _helpers = require("@lowdefy/helpers");
21
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
13
  See the License for the specific language governing permissions and
23
14
  limitations under the License.
24
- */
25
- var gutterSetup = gutter => {
26
- if (_helpers.type.isInt(gutter) || _helpers.type.isObject(gutter)) {
27
- return [gutter, gutter];
28
- }
29
-
30
- return gutter;
15
+ */ import { type } from '@lowdefy/helpers';
16
+ const gutterSetup = (gutter)=>{
17
+ if (type.isInt(gutter) || type.isObject(gutter)) {
18
+ return [
19
+ gutter,
20
+ gutter
21
+ ];
22
+ }
23
+ return gutter;
31
24
  };
32
-
33
- var _default = gutterSetup;
34
- exports.default = _default;
25
+ export default gutterSetup;
package/dist/index.js CHANGED
@@ -1,31 +1,18 @@
1
- "use strict";
1
+ /*
2
+ Copyright 2020-2021 Lowdefy, Inc
2
3
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "Area", {
7
- enumerable: true,
8
- get: function get() {
9
- return _Area.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "BlockLayout", {
13
- enumerable: true,
14
- get: function get() {
15
- return _BlockLayout.default;
16
- }
17
- });
18
- Object.defineProperty(exports, "layoutParamsToArea", {
19
- enumerable: true,
20
- get: function get() {
21
- return _layoutParamsToArea.default;
22
- }
23
- });
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
24
7
 
25
- var _Area = _interopRequireDefault(require("./Area.js"));
8
+ http://www.apache.org/licenses/LICENSE-2.0
26
9
 
27
- var _BlockLayout = _interopRequireDefault(require("./BlockLayout.js"));
28
-
29
- var _layoutParamsToArea = _interopRequireDefault(require("./layoutParamsToArea.js"));
30
-
31
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */ import Area from './Area.js';
16
+ import BlockLayout from './BlockLayout.js';
17
+ import layoutParamsToArea from './layoutParamsToArea.js';
18
+ export { Area, BlockLayout, layoutParamsToArea };
@@ -1,12 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _helpers = require("@lowdefy/helpers");
9
-
10
1
  /*
11
2
  Copyright 2020-2021 Lowdefy, Inc
12
3
 
@@ -21,26 +12,17 @@ var _helpers = require("@lowdefy/helpers");
21
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22
13
  See the License for the specific language governing permissions and
23
14
  limitations under the License.
24
- */
25
- var layoutParamsToArea = _ref => {
26
- var {
27
- areaKey,
28
- area,
29
- layout
30
- } = _ref;
31
-
32
- if (areaKey !== 'content') {
15
+ */ import { type } from '@lowdefy/helpers';
16
+ const layoutParamsToArea = ({ areaKey , area , layout })=>{
17
+ if (areaKey !== 'content') {
18
+ return area;
19
+ }
20
+ area.align = type.isNone(area.align) ? layout.contentAlign : area.align;
21
+ area.justify = type.isNone(area.justify) ? layout.contentJustify : area.justify;
22
+ area.direction = type.isNone(area.direction) ? layout.contentDirection : area.direction;
23
+ area.wrap = type.isNone(area.wrap) ? layout.contentWrap : area.wrap;
24
+ area.overflow = type.isNone(area.overflow) ? layout.contentOverflow : area.overflow;
25
+ area.gutter = type.isNone(area.gutter) ? layout.contentGutter : area.gutter;
33
26
  return area;
34
- }
35
-
36
- area.align = _helpers.type.isNone(area.align) ? layout.contentAlign : area.align;
37
- area.justify = _helpers.type.isNone(area.justify) ? layout.contentJustify : area.justify;
38
- area.direction = _helpers.type.isNone(area.direction) ? layout.contentDirection : area.direction;
39
- area.wrap = _helpers.type.isNone(area.wrap) ? layout.contentWrap : area.wrap;
40
- area.overflow = _helpers.type.isNone(area.overflow) ? layout.contentOverflow : area.overflow;
41
- area.gutter = _helpers.type.isNone(area.gutter) ? layout.contentGutter : area.gutter;
42
- return area;
43
27
  };
44
-
45
- var _default = layoutParamsToArea;
46
- exports.default = _default;
28
+ export default layoutParamsToArea;
@@ -0,0 +1,17 @@
1
+ /*
2
+ Copyright 2020-2021 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ @import 'antd/lib/grid/style/index.less';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/layout",
3
- "version": "3.23.2",
3
+ "version": "4.0.0-alpha.6",
4
4
  "licence": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -25,55 +25,46 @@
25
25
  "type": "git",
26
26
  "url": "https://github.com/lowdefy/lowdefy.git"
27
27
  },
28
- "main": "dist/index.js",
28
+ "type": "module",
29
+ "exports": {
30
+ ".": "./dist/index.js",
31
+ "./*": "./dist/*"
32
+ },
29
33
  "files": [
30
34
  "dist/*"
31
35
  ],
32
36
  "scripts": {
33
- "build": "babel src --out-dir dist",
37
+ "build": "yarn swc",
34
38
  "clean": "rm -rf dist",
39
+ "copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
35
40
  "prepare": "yarn build",
36
- "start": "webpack serve",
41
+ "swc": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start && yarn copyfiles",
37
42
  "test": "jest --coverage"
38
43
  },
39
44
  "dependencies": {
40
- "@lowdefy/block-tools": "3.23.2",
41
- "@lowdefy/helpers": "3.23.2",
42
- "antd": "4.4.2",
43
- "react": "17.0.2",
44
- "react-dom": "17.0.2"
45
+ "@lowdefy/block-utils": "4.0.0-alpha.6",
46
+ "@lowdefy/helpers": "4.0.0-alpha.6",
47
+ "antd": "4.17.0-alpha.7",
48
+ "react": "18.0.0-alpha-327d5c484-20211106",
49
+ "react-dom": "18.0.0-alpha-327d5c484-20211106"
45
50
  },
46
51
  "devDependencies": {
47
- "@babel/cli": "7.14.3",
48
- "@babel/core": "7.14.3",
49
- "@babel/preset-env": "7.14.4",
50
- "@babel/preset-react": "7.13.13",
51
- "babel-jest": "26.6.3",
52
- "babel-loader": "8.2.2",
53
- "babel-plugin-import": "1.13.3",
54
- "buffer": "6.0.3",
55
- "clean-webpack-plugin": "3.0.0",
56
- "css-loader": "5.2.6",
57
- "html-webpack-plugin": "5.3.1",
58
- "identity-obj-proxy": "3.0.0",
59
- "jest": "26.6.3",
60
- "js-yaml": "4.1.0",
61
- "less": "3.13.0",
62
- "less-loader": "9.0.0",
63
- "path-browserify": "1.0.1",
64
- "process": "0.11.10",
65
- "react-markdown": "5.0.3",
66
- "react-syntax-highlight": "15.3.1",
67
- "react-test-renderer": "17.0.2",
68
- "style-loader": "2.0.0",
69
- "webpack": "5.38.1",
70
- "webpack-cli": "4.7.0",
71
- "webpack-dev-server": "3.11.2",
72
- "yaml-jest": "1.0.5",
73
- "yaml-loader": "0.6.0"
52
+ "@babel/preset-react": "7.16.0",
53
+ "@emotion/jest": "11.5.0",
54
+ "@lowdefy/block-dev": "4.0.0-alpha.6",
55
+ "@swc/cli": "0.1.55",
56
+ "@swc/core": "1.2.130",
57
+ "@swc/jest": "0.2.17",
58
+ "@testing-library/dom": "8.10.1",
59
+ "@testing-library/react": "13.0.0-alpha.4",
60
+ "@testing-library/user-event": "14.0.0-alpha.14",
61
+ "copyfiles": "2.4.1",
62
+ "jest": "27.3.1",
63
+ "jest-serializer-html": "7.1.0",
64
+ "jest-transform-yaml": "0.1.2"
74
65
  },
75
66
  "publishConfig": {
76
67
  "access": "public"
77
68
  },
78
- "gitHead": "4c30d3cdfa99ae4e90fc891825938c28bad45760"
69
+ "gitHead": "2530e31af795b6a3c75ac8f72c8dbe0ab5d1251b"
79
70
  }