@plone-collective/volto-image-editor 1.0.0 → 1.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/.changelog.draft CHANGED
@@ -1,18 +1,12 @@
1
- ## 1.0.0 (2025-12-08)
1
+ ## 1.0.1 (2026-03-03)
2
2
 
3
3
  ### Feature
4
4
 
5
- - CA, ES translations. @sneridagh [#16](https://github.com/collective/volto-image-editor/issue/16)
6
- - DE translations. @sneridagh [#17](https://github.com/collective/volto-image-editor/issue/17)
7
- - Allow overriding the default settings for an ImageEditor per project. @ericof [#18](https://github.com/collective/volto-image-editor/issue/18)
5
+ - Added support for lazyload the widget. @sneridagh
8
6
 
9
7
  ### Internal
10
8
 
11
- - Added portuguese translation & Update translation files. @humanaice [#3](https://github.com/collective/volto-image-editor/issue/3)
12
- - Fixed circle crop. @humanaice [#8](https://github.com/collective/volto-image-editor/issue/8)
13
- - Updated to use plone/components and removed react-icons + add cypress. @humanaice [#12](https://github.com/collective/volto-image-editor/issue/12)
14
- - Registering as custom widget and removing shadow. @humanaice [#14](https://github.com/collective/volto-image-editor/issue/14)
15
- - Changed the CSS to facilitate future modifications, with variables and new icons. @humanaice
16
- - Updated Slider to make it more simple and intuitive. @humanaice
9
+ - Fixed Acceptance Tests and added them to main.yml. @humanaice [#23](https://github.com/collective/volto-image-editor/issue/23)
10
+ - Use Volto 19a27. @sneridagh
17
11
 
18
12
 
package/CHANGELOG.md CHANGED
@@ -8,6 +8,17 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 1.0.1 (2026-03-03)
12
+
13
+ ### Feature
14
+
15
+ - Added support for lazyload the widget. @sneridagh
16
+
17
+ ### Internal
18
+
19
+ - Fixed Acceptance Tests and added them to main.yml. @humanaice [#23](https://github.com/collective/volto-image-editor/issue/23)
20
+ - Use Volto 19a27. @sneridagh
21
+
11
22
  ## 1.0.0 (2025-12-08)
12
23
 
13
24
  ### Feature
package/babel.config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  module.exports = function (api) {
2
2
  api.cache(true);
3
- const presets = ['razzle'];
3
+ const presets = ['@plone/razzle'];
4
4
  const plugins = [
5
5
  [
6
6
  'react-intl', // React Intl extractor, required for the whole i18n infrastructure to work
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plone-collective/volto-image-editor",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "An image editor to be used with Plone and Volto.",
5
5
  "main": "src/index.ts",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "context-filter-polyfill": "0.3.23",
35
35
  "react-advanced-cropper": "0.20.1",
36
- "@plone/components": "4.0.0-alpha.0"
36
+ "@plone/components": "4.0.0-alpha.6"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "advanced-cropper": "~0.17.1",
@@ -41,13 +41,13 @@
41
41
  "react": "18.2.0",
42
42
  "react-aria-components": "*",
43
43
  "react-dom": "18.2.0",
44
- "@plone/registry": "3.0.0-alpha.5",
45
- "@plone/types": "2.0.0-alpha.5"
44
+ "@plone/types": "2.0.0-alpha.14",
45
+ "@plone/registry": "3.0.0-alpha.9"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^20.2.5",
49
49
  "release-it": "^19.0.5",
50
- "@plone/scripts": "4.0.0-alpha.2"
50
+ "@plone/scripts": "4.0.0-alpha.5"
51
51
  },
52
52
  "scripts": {
53
53
  "i18n": "rm -rf build/messages && NODE_ENV=production i18n --addon",
@@ -7,8 +7,8 @@ import {
7
7
  NumberField,
8
8
  Checkbox,
9
9
  RadioGroup,
10
+ Radio,
10
11
  } from '@plone/components';
11
- import { Radio } from 'react-aria-components';
12
12
  import { SettingsIcon } from '@plone-collective/volto-image-editor/icons/SettingsIcon';
13
13
  import type { ImageSettings } from '../../../../types/ImageSettings';
14
14
  import {
@@ -0,0 +1,8 @@
1
+ import loadable from '@loadable/component';
2
+
3
+ export const FileWidget = loadable(
4
+ () =>
5
+ import(
6
+ /* webpackChunkName: "Widgets" */ '@plone-collective/volto-image-editor/components/Widgets/FileWidget'
7
+ ),
8
+ );
@@ -1,5 +1,5 @@
1
1
  import type { ConfigType } from '@plone/registry';
2
- import FileWidget from '../components/Widgets/FileWidget';
2
+ import { FileWidget } from '../components/Widgets';
3
3
 
4
4
  export const registerWidgets = (config: ConfigType) => {
5
5
  config.widgets.widget.file = FileWidget;
Binary file