@lowdefy/blocks-antd 4.0.0-rc.9 → 4.0.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.
- package/dist/blocks/Affix/Affix.js +2 -2
- package/dist/blocks/Affix/style.less +1 -1
- package/dist/blocks/Alert/Alert.js +7 -20
- package/dist/blocks/Alert/style.less +1 -1
- package/dist/blocks/AutoComplete/AutoComplete.js +18 -3
- package/dist/blocks/AutoComplete/schema.json +12 -0
- package/dist/blocks/AutoComplete/style.less +1 -1
- package/dist/blocks/Avatar/Avatar.js +2 -2
- package/dist/blocks/Avatar/style.less +1 -1
- package/dist/blocks/Badge/Badge.js +2 -2
- package/dist/blocks/Badge/style.less +1 -1
- package/dist/blocks/Breadcrumb/Breadcrumb.js +7 -20
- package/dist/blocks/Breadcrumb/style.less +1 -1
- package/dist/blocks/Button/Button.js +2 -2
- package/dist/blocks/Button/style.less +1 -1
- package/dist/blocks/ButtonSelector/ButtonSelector.js +2 -2
- package/dist/blocks/ButtonSelector/style.less +1 -1
- package/dist/blocks/Card/Card.js +3 -2
- package/dist/blocks/Card/style.less +1 -1
- package/dist/blocks/Carousel/Carousel.js +9 -22
- package/dist/blocks/Carousel/style.less +1 -1
- package/dist/blocks/CheckboxSelector/CheckboxSelector.js +2 -2
- package/dist/blocks/CheckboxSelector/style.less +1 -1
- package/dist/blocks/CheckboxSwitch/CheckboxSwitch.js +2 -2
- package/dist/blocks/CheckboxSwitch/style.less +1 -1
- package/dist/blocks/Collapse/Collapse.js +8 -21
- package/dist/blocks/Collapse/style.less +1 -1
- package/dist/blocks/Comment/Comment.js +2 -2
- package/dist/blocks/Comment/style.less +1 -1
- package/dist/blocks/ConfirmModal/ConfirmModal.js +9 -9
- package/dist/blocks/ConfirmModal/style.less +1 -1
- package/dist/blocks/Content/Content.js +2 -2
- package/dist/blocks/Content/style.less +1 -1
- package/dist/blocks/ControlledList/ControlledList.js +6 -6
- package/dist/blocks/ControlledList/style.less +1 -1
- package/dist/blocks/DateRangeSelector/DateRangeSelector.js +9 -9
- package/dist/blocks/DateRangeSelector/style.less +1 -1
- package/dist/blocks/DateSelector/DateSelector.js +5 -5
- package/dist/blocks/DateSelector/style.less +1 -1
- package/dist/blocks/DateTimeSelector/DateTimeSelector.js +19 -17
- package/dist/blocks/DateTimeSelector/style.less +1 -1
- package/dist/blocks/Descriptions/Descriptions.js +3 -3
- package/dist/blocks/Descriptions/style.less +1 -1
- package/dist/blocks/Divider/Divider.js +2 -2
- package/dist/blocks/Divider/style.less +1 -1
- package/dist/blocks/Drawer/Drawer.js +4 -4
- package/dist/blocks/Drawer/style.less +1 -1
- package/dist/blocks/Footer/Footer.js +2 -2
- package/dist/blocks/Footer/style.less +1 -1
- package/dist/blocks/Header/Header.js +2 -2
- package/dist/blocks/Header/style.less +1 -1
- package/dist/blocks/Label/Label.js +10 -22
- package/dist/blocks/Label/getLabelCol.js +1 -1
- package/dist/blocks/Label/getWrapperCol.js +7 -7
- package/dist/blocks/Label/labelLogic.js +18 -18
- package/dist/blocks/Label/style.less +1 -1
- package/dist/blocks/Layout/Layout.js +2 -2
- package/dist/blocks/Layout/style.less +1 -1
- package/dist/blocks/Menu/Menu.js +35 -43
- package/dist/blocks/Menu/style.less +1 -1
- package/dist/blocks/Message/Message.js +6 -6
- package/dist/blocks/Message/style.less +1 -1
- package/dist/blocks/MobileMenu/MobileMenu.js +5 -5
- package/dist/blocks/MobileMenu/style.less +1 -1
- package/dist/blocks/Modal/Modal.js +12 -25
- package/dist/blocks/Modal/style.less +1 -1
- package/dist/blocks/MonthSelector/MonthSelector.js +5 -5
- package/dist/blocks/MonthSelector/style.less +1 -1
- package/dist/blocks/MultipleSelector/MultipleSelector.js +42 -5
- package/dist/blocks/MultipleSelector/schema.json +43 -0
- package/dist/blocks/MultipleSelector/style.less +2 -1
- package/dist/blocks/Notification/Notification.js +2 -2
- package/dist/blocks/Notification/style.less +1 -1
- package/dist/blocks/NumberInput/NumberInput.js +12 -2
- package/dist/blocks/NumberInput/schema.json +9 -1
- package/dist/blocks/NumberInput/style.less +1 -1
- package/dist/blocks/PageHeaderMenu/PageHeaderMenu.js +2 -2
- package/dist/blocks/PageHeaderMenu/style.less +1 -1
- package/dist/blocks/PageSiderMenu/PageSiderMenu.js +3 -3
- package/dist/blocks/PageSiderMenu/style.less +1 -1
- package/dist/blocks/Pagination/Pagination.js +4 -4
- package/dist/blocks/Pagination/style.less +1 -1
- package/dist/blocks/Paragraph/Paragraph.js +3 -2
- package/dist/blocks/Paragraph/schema.json +4 -0
- package/dist/blocks/Paragraph/style.less +1 -1
- package/dist/blocks/ParagraphInput/ParagraphInput.js +2 -2
- package/dist/blocks/ParagraphInput/style.less +1 -1
- package/dist/blocks/PasswordInput/PasswordInput.js +12 -2
- package/dist/blocks/PasswordInput/schema.json +8 -0
- package/dist/blocks/PasswordInput/style.less +1 -1
- package/dist/blocks/PhoneNumberInput/PhoneNumberInput.js +26 -6
- package/dist/blocks/PhoneNumberInput/schema.json +8 -0
- package/dist/blocks/PhoneNumberInput/style.less +1 -1
- package/dist/blocks/Progress/Progress.js +2 -2
- package/dist/blocks/Progress/style.less +1 -1
- package/dist/blocks/RadioSelector/RadioSelector.js +2 -2
- package/dist/blocks/RadioSelector/style.less +1 -1
- package/dist/blocks/RatingSlider/RatingSlider.js +9 -9
- package/dist/blocks/RatingSlider/style.less +1 -1
- package/dist/blocks/Result/Result.js +2 -2
- package/dist/blocks/Result/style.less +1 -1
- package/dist/blocks/Selector/Selector.js +17 -2
- package/dist/blocks/Selector/schema.json +12 -0
- package/dist/blocks/Selector/style.less +1 -1
- package/dist/blocks/Sider/Sider.js +5 -5
- package/dist/blocks/Sider/style.less +1 -1
- package/dist/blocks/Slider/Slider.js +76 -0
- package/dist/blocks/Slider/style.less +18 -0
- package/dist/blocks/Statistic/Statistic.js +11 -5
- package/dist/blocks/Statistic/style.less +1 -1
- package/dist/blocks/Switch/Switch.js +2 -2
- package/dist/blocks/Switch/style.less +1 -1
- package/dist/blocks/Tabs/Tabs.js +55 -53
- package/dist/blocks/Tabs/schema.json +1 -5
- package/dist/blocks/Tabs/style.less +1 -1
- package/dist/blocks/Tag/Tag.js +57 -0
- package/dist/blocks/Tag/schema.json +45 -0
- package/dist/blocks/Tag/style.less +17 -0
- package/dist/blocks/TextArea/TextArea.js +12 -2
- package/dist/blocks/TextArea/schema.json +8 -0
- package/dist/blocks/TextArea/style.less +1 -1
- package/dist/blocks/TextInput/TextInput.js +13 -3
- package/dist/blocks/TextInput/schema.json +8 -0
- package/dist/blocks/TextInput/style.less +1 -1
- package/dist/blocks/TimelineList/TimelineList.js +12 -25
- package/dist/blocks/TimelineList/style.less +1 -1
- package/dist/blocks/Title/Title.js +2 -2
- package/dist/blocks/Title/style.less +1 -1
- package/dist/blocks/TitleInput/TitleInput.js +2 -2
- package/dist/blocks/TitleInput/style.less +1 -1
- package/dist/blocks/Tooltip/Tooltip.js +3 -3
- package/dist/blocks/Tooltip/style.less +1 -1
- package/dist/blocks/WeekSelector/WeekSelector.js +5 -5
- package/dist/blocks/WeekSelector/style.less +1 -1
- package/dist/blocks.js +3 -1
- package/dist/color.js +1 -1
- package/dist/disabledDate.js +2 -3
- package/dist/getUniqueValues.js +1 -1
- package/dist/getValueIndex.js +1 -1
- package/dist/style.less +1 -1
- package/dist/types.js +3 -3
- package/dist/useRunAfterUpdate.js +1 -1
- package/dist/validationExamples.js +1 -1
- package/package.json +21 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -12,33 +12,19 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
_extends = Object.assign || function(target) {
|
|
17
|
-
for(var i = 1; i < arguments.length; i++){
|
|
18
|
-
var source = arguments[i];
|
|
19
|
-
for(var key in source){
|
|
20
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
21
|
-
target[key] = source[key];
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return target;
|
|
26
|
-
};
|
|
27
|
-
return _extends.apply(this, arguments);
|
|
28
|
-
}
|
|
29
|
-
import React from 'react';
|
|
15
|
+
*/ import React from 'react';
|
|
30
16
|
import { Timeline } from 'antd';
|
|
31
17
|
import { blockDefaultProps } from '@lowdefy/block-utils';
|
|
32
18
|
import { get, mergeObjects, serializer, type } from '@lowdefy/helpers';
|
|
33
19
|
// TODO: need to pass value to list blocks to render item level settings.
|
|
34
|
-
const TimelineList = ({ blockId
|
|
20
|
+
const TimelineList = ({ blockId, components: { Icon }, events, list, methods, properties })=>{
|
|
35
21
|
// Temporary fix until list blocks get value from state
|
|
36
22
|
const value = properties.data;
|
|
37
23
|
const other = {};
|
|
38
24
|
if (properties.mode) {
|
|
39
25
|
other.mode = properties.mode;
|
|
40
26
|
}
|
|
41
|
-
return /*#__PURE__*/ React.createElement(Timeline,
|
|
27
|
+
return /*#__PURE__*/ React.createElement(Timeline, {
|
|
42
28
|
id: blockId,
|
|
43
29
|
className: methods.makeCssClass([
|
|
44
30
|
{
|
|
@@ -59,10 +45,11 @@ const TimelineList = ({ blockId , components: { Icon } , events , list , method
|
|
|
59
45
|
properties.pendingDotIcon
|
|
60
46
|
])
|
|
61
47
|
}),
|
|
62
|
-
reverse: properties.reverse
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
let
|
|
48
|
+
reverse: properties.reverse,
|
|
49
|
+
...other
|
|
50
|
+
}, (list || []).map((child, i)=>{
|
|
51
|
+
let icon = serializer.copy(get(value, `${i}.${properties.iconField ?? 'icon'}`));
|
|
52
|
+
let style = get(value, `${i}.${properties.styleField ?? 'style'}`);
|
|
66
53
|
if (type.isString(icon)) {
|
|
67
54
|
icon = {
|
|
68
55
|
name: icon
|
|
@@ -71,12 +58,12 @@ const TimelineList = ({ blockId , components: { Icon } , events , list , method
|
|
|
71
58
|
if (!type.isObject(style)) {
|
|
72
59
|
style = {};
|
|
73
60
|
}
|
|
74
|
-
const color = get(value, `${i}.${properties.colorField
|
|
61
|
+
const color = get(value, `${i}.${properties.colorField ?? 'color'}`);
|
|
75
62
|
return /*#__PURE__*/ React.createElement(Timeline.Item, {
|
|
76
63
|
key: `${blockId}_${i}`,
|
|
77
64
|
color: color,
|
|
78
|
-
position: get(value, `${i}.${properties.positionField
|
|
79
|
-
label: get(value, `${i}.${properties.labelField
|
|
65
|
+
position: get(value, `${i}.${properties.positionField ?? 'position'}`),
|
|
66
|
+
label: get(value, `${i}.${properties.labelField ?? 'label'}`),
|
|
80
67
|
dot: icon && /*#__PURE__*/ React.createElement(Icon, {
|
|
81
68
|
blockId: `${blockId}_${i}_icon`,
|
|
82
69
|
events: events,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -17,7 +17,7 @@ import { Typography } from 'antd';
|
|
|
17
17
|
import { blockDefaultProps, renderHtml } from '@lowdefy/block-utils';
|
|
18
18
|
import { type } from '@lowdefy/helpers';
|
|
19
19
|
const Title = Typography.Title;
|
|
20
|
-
const TitleBlock = ({ blockId
|
|
20
|
+
const TitleBlock = ({ blockId, components: { Icon }, events, properties, methods })=>{
|
|
21
21
|
return /*#__PURE__*/ React.createElement(Title, {
|
|
22
22
|
id: blockId,
|
|
23
23
|
className: methods.makeCssClass([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -17,7 +17,7 @@ import { Typography } from 'antd';
|
|
|
17
17
|
import { blockDefaultProps } from '@lowdefy/block-utils';
|
|
18
18
|
import { type } from '@lowdefy/helpers';
|
|
19
19
|
const Title = Typography.Title;
|
|
20
|
-
const TitleInput = ({ blockId
|
|
20
|
+
const TitleInput = ({ blockId, components: { Icon }, events, loading, methods, properties, value })=>{
|
|
21
21
|
const [editing, setEdit] = useState(false);
|
|
22
22
|
const editableEvents = {
|
|
23
23
|
onStart: ()=>{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/ import React from 'react';
|
|
16
16
|
import { Tooltip } from 'antd';
|
|
17
17
|
import { blockDefaultProps, renderHtml } from '@lowdefy/block-utils';
|
|
18
|
-
const TooltipBlock = ({ blockId
|
|
18
|
+
const TooltipBlock = ({ blockId, content, properties, methods })=>/*#__PURE__*/ React.createElement(Tooltip, {
|
|
19
19
|
id: blockId,
|
|
20
20
|
title: renderHtml({
|
|
21
21
|
html: properties.title,
|
|
@@ -30,7 +30,7 @@ const TooltipBlock = ({ blockId , content , properties , methods })=>/*#__PURE_
|
|
|
30
30
|
mouseEnterDelay: properties.mouseEnterDelay,
|
|
31
31
|
mouseLeaveDelay: properties.mouseLeaveDelay,
|
|
32
32
|
placement: properties.placement,
|
|
33
|
-
trigger: properties.trigger
|
|
33
|
+
trigger: properties.trigger ?? 'hover',
|
|
34
34
|
zIndex: properties.zIndex,
|
|
35
35
|
onVisibleChange: ()=>methods.triggerEvent({
|
|
36
36
|
name: 'onVisibleChange'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -20,7 +20,7 @@ import moment from 'moment';
|
|
|
20
20
|
import disabledDate from '../../disabledDate.js';
|
|
21
21
|
import Label from '../Label/Label.js';
|
|
22
22
|
const WeekPicker = DatePicker.WeekPicker;
|
|
23
|
-
const WeekSelector = ({ blockId
|
|
23
|
+
const WeekSelector = ({ blockId, components: { Icon, Link }, events, loading, methods, properties, required, validation, value })=>{
|
|
24
24
|
return /*#__PURE__*/ React.createElement(Label, {
|
|
25
25
|
blockId: blockId,
|
|
26
26
|
components: {
|
|
@@ -55,15 +55,15 @@ const WeekSelector = ({ blockId , components: { Icon , Link } , events , loadin
|
|
|
55
55
|
]),
|
|
56
56
|
disabled: properties.disabled || loading,
|
|
57
57
|
disabledDate: disabledDate(properties.disabledDates),
|
|
58
|
-
format: properties.format
|
|
58
|
+
format: properties.format ?? 'YYYY-wo',
|
|
59
59
|
getPopupContainer: ()=>document.getElementById(`${blockId}_popup`),
|
|
60
|
-
placeholder: properties.placeholder
|
|
60
|
+
placeholder: properties.placeholder ?? 'Select Week',
|
|
61
61
|
size: properties.size,
|
|
62
62
|
status: validation.status,
|
|
63
63
|
suffixIcon: /*#__PURE__*/ React.createElement(Icon, {
|
|
64
64
|
blockId: `${blockId}_suffixIcon`,
|
|
65
65
|
events: events,
|
|
66
|
-
properties: properties.suffixIcon
|
|
66
|
+
properties: properties.suffixIcon ?? 'AiOutlineCalendar'
|
|
67
67
|
}),
|
|
68
68
|
onChange: (newVal)=>{
|
|
69
69
|
methods.setValue(!newVal ? null : moment.utc(newVal.add(newVal.utcOffset(), 'minutes')).startOf('week').toDate());
|
package/dist/blocks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -60,9 +60,11 @@ export { default as RatingSlider } from './blocks/RatingSlider/RatingSlider.js';
|
|
|
60
60
|
export { default as Result } from './blocks/Result/Result.js';
|
|
61
61
|
export { default as Selector } from './blocks/Selector/Selector.js';
|
|
62
62
|
export { default as Sider } from './blocks/Sider/Sider.js';
|
|
63
|
+
export { default as Slider } from './blocks/Slider/Slider.js';
|
|
63
64
|
export { default as Statistic } from './blocks/Statistic/Statistic.js';
|
|
64
65
|
export { default as Switch } from './blocks/Switch/Switch.js';
|
|
65
66
|
export { default as Tabs } from './blocks/Tabs/Tabs.js';
|
|
67
|
+
export { default as Tag } from './blocks/Tag/Tag.js';
|
|
66
68
|
export { default as TimelineList } from './blocks/TimelineList/TimelineList.js';
|
|
67
69
|
export { default as TextArea } from './blocks/TextArea/TextArea.js';
|
|
68
70
|
export { default as TextInput } from './blocks/TextInput/TextInput.js';
|
package/dist/color.js
CHANGED
package/dist/disabledDate.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -38,8 +38,7 @@ const disabledDate = (disabledDates = {})=>{
|
|
|
38
38
|
match = true;
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
|
-
|
|
42
|
-
return false;
|
|
41
|
+
return !!match;
|
|
43
42
|
};
|
|
44
43
|
};
|
|
45
44
|
export default disabledDate;
|
package/dist/getUniqueValues.js
CHANGED
package/dist/getValueIndex.js
CHANGED
package/dist/style.less
CHANGED
package/dist/types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/namespace */ /*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2024 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
const icons = {};
|
|
17
17
|
const styles = {};
|
|
18
18
|
Object.keys(blocks).forEach((block)=>{
|
|
19
|
-
icons[block] = blocks[block].meta.icons
|
|
20
|
-
styles[block] = blocks[block].meta.styles
|
|
19
|
+
icons[block] = blocks[block].meta.icons ?? [];
|
|
20
|
+
styles[block] = blocks[block].meta.styles ?? [];
|
|
21
21
|
});
|
|
22
22
|
export default {
|
|
23
23
|
blocks: Object.keys(blocks),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/blocks-antd",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Lowdefy Ant Design Blocks",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -41,43 +41,41 @@
|
|
|
41
41
|
"files": [
|
|
42
42
|
"dist/*"
|
|
43
43
|
],
|
|
44
|
-
"scripts": {
|
|
45
|
-
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
|
|
46
|
-
"clean": "rm -rf dist",
|
|
47
|
-
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
|
|
48
|
-
"prepublishOnly": "pnpm build",
|
|
49
|
-
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
50
|
-
},
|
|
51
44
|
"dependencies": {
|
|
52
45
|
"@ant-design/icons": "4.8.0",
|
|
53
|
-
"@lowdefy/block-utils": "4.0.
|
|
54
|
-
"@lowdefy/helpers": "4.0.
|
|
55
|
-
"antd": "4.
|
|
46
|
+
"@lowdefy/block-utils": "4.0.1",
|
|
47
|
+
"@lowdefy/helpers": "4.0.1",
|
|
48
|
+
"antd": "4.24.14",
|
|
56
49
|
"classnames": "2.3.2",
|
|
57
50
|
"moment": "2.29.4",
|
|
58
|
-
"rc-motion": "2.
|
|
51
|
+
"rc-motion": "2.9.0",
|
|
59
52
|
"react": "18.2.0",
|
|
60
53
|
"react-dom": "18.2.0",
|
|
61
|
-
"tinycolor2": "1.
|
|
54
|
+
"tinycolor2": "1.6.0"
|
|
62
55
|
},
|
|
63
56
|
"devDependencies": {
|
|
64
57
|
"@emotion/jest": "11.10.5",
|
|
65
|
-
"@lowdefy/block-dev": "4.0.
|
|
66
|
-
"@lowdefy/jest-yaml-transform": "4.0.
|
|
67
|
-
"@lowdefy/node-utils": "4.0.
|
|
68
|
-
"@swc/cli": "0.1.
|
|
69
|
-
"@swc/core": "1.3.
|
|
70
|
-
"@swc/jest": "0.2.
|
|
58
|
+
"@lowdefy/block-dev": "4.0.1",
|
|
59
|
+
"@lowdefy/jest-yaml-transform": "4.0.1",
|
|
60
|
+
"@lowdefy/node-utils": "4.0.1",
|
|
61
|
+
"@swc/cli": "0.1.63",
|
|
62
|
+
"@swc/core": "1.3.99",
|
|
63
|
+
"@swc/jest": "0.2.29",
|
|
71
64
|
"@testing-library/dom": "8.19.1",
|
|
72
65
|
"@testing-library/react": "13.4.0",
|
|
73
66
|
"@testing-library/user-event": "14.4.3",
|
|
74
67
|
"copyfiles": "2.4.1",
|
|
75
|
-
"jest": "28.1.
|
|
76
|
-
"jest-environment-jsdom": "28.1.
|
|
68
|
+
"jest": "28.1.3",
|
|
69
|
+
"jest-environment-jsdom": "28.1.3",
|
|
77
70
|
"jest-serializer-html": "7.1.0"
|
|
78
71
|
},
|
|
79
72
|
"publishConfig": {
|
|
80
73
|
"access": "public"
|
|
81
74
|
},
|
|
82
|
-
"
|
|
83
|
-
|
|
75
|
+
"scripts": {
|
|
76
|
+
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
|
|
77
|
+
"clean": "rm -rf dist",
|
|
78
|
+
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
|
|
79
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
80
|
+
}
|
|
81
|
+
}
|