@lowdefy/blocks-color-selectors 4.0.0-rc.0 → 4.0.0-rc.10

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 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 { HexColorPicker, HexColorInput } from 'react-colorful';
17
17
  import classNames from 'classnames';
18
18
  import useClickOutside from './useClickOutside.js';
19
19
  const DEFAULT_COLOR = '#000000';
20
- export const ColorPicker = ({ className , disabled , hideInput , onChange , size , value =DEFAULT_COLOR , })=>{
20
+ export const ColorPicker = ({ className, disabled, hideInput, onChange, size, value = DEFAULT_COLOR })=>{
21
21
  const popover = useRef();
22
22
  const [isOpen, toggle] = useState(false);
23
23
  const close = useCallback((newColor)=>{
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 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,7 +16,7 @@
16
16
  import { blockDefaultProps } from '@lowdefy/block-utils';
17
17
  import Label from '@lowdefy/blocks-antd/blocks/Label/Label.js';
18
18
  import ColorPicker from './ColorPicker.js';
19
- const ColorSelector = ({ blockId , components , events , loading , methods , properties , required , validation , value , })=>{
19
+ const ColorSelector = ({ blockId, components, events, loading, methods, properties, required, validation, value })=>{
20
20
  return /*#__PURE__*/ React.createElement(Label, {
21
21
  blockId: blockId,
22
22
  components: components,
@@ -36,7 +36,7 @@ const ColorSelector = ({ blockId , components , events , loading , methods , pro
36
36
  {
37
37
  marginBottom: '0px !important'
38
38
  },
39
- properties.inputStyle,
39
+ properties.inputStyle
40
40
  ]),
41
41
  onChange: (newColor)=>{
42
42
  methods.setValue(newColor);
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 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.
package/dist/blocks.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 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.
package/dist/types.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/namespace */ /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/blocks-color-selectors",
3
- "version": "4.0.0-rc.0",
3
+ "version": "4.0.0-rc.10",
4
4
  "license": "Apache-2.0",
5
5
  "description": "A Lowdefy color selector blocks based on react-color.",
6
6
  "homepage": "https://lowdefy.com",
@@ -46,35 +46,34 @@
46
46
  "clean": "rm -rf dist",
47
47
  "copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
48
48
  "prepublishOnly": "pnpm build",
49
- "test:watch": "jest --coverage --watch",
50
- "test": "jest --coverage"
49
+ "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
51
50
  },
52
51
  "dependencies": {
53
- "@lowdefy/block-utils": "4.0.0-rc.0",
54
- "@lowdefy/blocks-antd": "4.0.0-rc.0",
55
- "classnames": "2.3.1",
52
+ "@lowdefy/block-utils": "4.0.0-rc.10",
53
+ "@lowdefy/blocks-antd": "4.0.0-rc.10",
54
+ "classnames": "2.3.2",
56
55
  "react": "18.2.0",
57
- "react-colorful": "5.5.1",
56
+ "react-colorful": "5.6.1",
58
57
  "react-dom": "18.2.0"
59
58
  },
60
59
  "devDependencies": {
61
- "@emotion/jest": "11.9.1",
62
- "@lowdefy/block-dev": "4.0.0-rc.0",
63
- "@lowdefy/jest-yaml-transform": "4.0.0-rc.0",
64
- "@swc/cli": "0.1.57",
65
- "@swc/core": "1.2.194",
66
- "@swc/jest": "0.2.21",
67
- "@testing-library/dom": "8.13.0",
68
- "@testing-library/react": "13.3.0",
69
- "@testing-library/user-event": "14.2.0",
60
+ "@emotion/jest": "11.10.5",
61
+ "@lowdefy/block-dev": "4.0.0-rc.10",
62
+ "@lowdefy/jest-yaml-transform": "4.0.0-rc.10",
63
+ "@swc/cli": "0.1.62",
64
+ "@swc/core": "1.3.70",
65
+ "@swc/jest": "0.2.27",
66
+ "@testing-library/dom": "8.19.1",
67
+ "@testing-library/react": "13.4.0",
68
+ "@testing-library/user-event": "14.4.3",
70
69
  "copyfiles": "2.4.1",
71
- "jest": "28.1.0",
70
+ "jest": "28.1.3",
72
71
  "jest-canvas-mock": "2.4.0",
73
- "jest-environment-jsdom": "28.1.0",
72
+ "jest-environment-jsdom": "28.1.3",
74
73
  "jest-serializer-html": "7.1.0"
75
74
  },
76
75
  "publishConfig": {
77
76
  "access": "public"
78
77
  },
79
- "gitHead": "f6872d7ff6da421710096536fce7b2016ef8f35c"
78
+ "gitHead": "537af074f27770e32da9da8d48490f2eda94b406"
80
79
  }