@eeacms/volto-embed 9.0.3 → 9.0.5
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.md +20 -2
- package/locales/de/LC_MESSAGES/volto.po +9 -9
- package/locales/en/LC_MESSAGES/volto.po +9 -9
- package/locales/it/LC_MESSAGES/volto.po +9 -9
- package/locales/ro/LC_MESSAGES/volto.po +9 -9
- package/locales/volto.pot +10 -10
- package/package.json +1 -1
- package/src/Blocks/EmbedMaps/schema.js +1 -1
- package/src/Blocks/Maps/Edit.jsx +7 -7
- package/src/Blocks/Maps/View.jsx +4 -4
- package/src/EmbedMap/EmbedMap.jsx +4 -4
- package/src/EmbedMap/style.less +3 -2
- package/src/Toolbar/Enlarge.jsx +1 -1
- package/src/Toolbar/MoreInfo.jsx +1 -1
- package/src/Toolbar/Share.jsx +1 -1
- package/src/Widgets/MapsWidget.jsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,29 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
### [9.0.
|
|
7
|
+
### [9.0.5](https://github.com/eea/volto-embed/compare/9.0.4...9.0.5) - 13 December 2023
|
|
8
8
|
|
|
9
9
|
#### :bug: Bug Fixes
|
|
10
10
|
|
|
11
|
-
- fix:
|
|
11
|
+
- fix: change message on Open Map Editor - refs #257682 [Teodor Voicu - [`ca4ee3e`](https://github.com/eea/volto-embed/commit/ca4ee3e30d495858a07e09db6734dd9c6c12f517)]
|
|
12
|
+
- fix: CSS for enlarge embed-map ref #257682 [Teodor Voicu - [`44c79a6`](https://github.com/eea/volto-embed/commit/44c79a6d9a78f881fd111a916e640c59bd70c20f)]
|
|
13
|
+
- fix: Invalid DOM property class. Did you mean className [Alin Voinea - [`d4b1132`](https://github.com/eea/volto-embed/commit/d4b1132988029287f9e6c8817d799de414b09115)]
|
|
14
|
+
|
|
15
|
+
#### :hammer_and_wrench: Others
|
|
16
|
+
|
|
17
|
+
- enable resources to load in cypress [Teodor - [`917e2d4`](https://github.com/eea/volto-embed/commit/917e2d46e5764af308392f99d328168cb99d1159)]
|
|
18
|
+
### [9.0.4](https://github.com/eea/volto-embed/compare/9.0.3...9.0.4) - 9 December 2023
|
|
19
|
+
|
|
20
|
+
#### :rocket: New Features
|
|
21
|
+
|
|
22
|
+
- feat: enhance UrlWidget [Miu Razvan - [`6546941`](https://github.com/eea/volto-embed/commit/6546941ed0d804ca0575dc96fc03d4bb57d6cebf)]
|
|
23
|
+
- feat: enhance InternalUrlWidget [Miu Razvan - [`e5492b3`](https://github.com/eea/volto-embed/commit/e5492b32221f3975539b3f71252bb4e85ab1c521)]
|
|
24
|
+
|
|
25
|
+
#### :hammer_and_wrench: Others
|
|
26
|
+
|
|
27
|
+
- test: update jest snapshots [Alin Voinea - [`eb1a34f`](https://github.com/eea/volto-embed/commit/eb1a34f98bf49955b0e6fc7ca59989df1892957f)]
|
|
28
|
+
- move url widgets to volto-object-widget [Miu Razvan - [`d269561`](https://github.com/eea/volto-embed/commit/d2695617e3b0996a106d023649857196c6a802ca)]
|
|
29
|
+
### [9.0.3](https://github.com/eea/volto-embed/compare/9.0.2...9.0.3) - 30 November 2023
|
|
12
30
|
|
|
13
31
|
### [9.0.2](https://github.com/eea/volto-embed/compare/9.0.1...9.0.2) - 29 November 2023
|
|
14
32
|
|
|
@@ -32,6 +32,11 @@ msgstr ""
|
|
|
32
32
|
msgid "Center"
|
|
33
33
|
msgstr ""
|
|
34
34
|
|
|
35
|
+
#: Blocks/Maps/Edit
|
|
36
|
+
# defaultMessage: ESRI Maps Embedded Block
|
|
37
|
+
msgid "ESRI Maps Embedded Block"
|
|
38
|
+
msgstr ""
|
|
39
|
+
|
|
35
40
|
#: Blocks/Maps/Edit
|
|
36
41
|
#: Widgets/MapsWidget
|
|
37
42
|
# defaultMessage: Embed code error, please follow the instructions and try again.
|
|
@@ -40,8 +45,8 @@ msgstr ""
|
|
|
40
45
|
|
|
41
46
|
#: Blocks/Maps/View
|
|
42
47
|
#: EmbedMap/EmbedMap
|
|
43
|
-
# defaultMessage: Embeded
|
|
44
|
-
msgid "Embeded
|
|
48
|
+
# defaultMessage: Embeded ESRI Maps
|
|
49
|
+
msgid "Embeded ESRI Maps"
|
|
45
50
|
msgstr ""
|
|
46
51
|
|
|
47
52
|
#: Blocks/Maps/Edit
|
|
@@ -55,11 +60,6 @@ msgstr ""
|
|
|
55
60
|
msgid "Full"
|
|
56
61
|
msgstr ""
|
|
57
62
|
|
|
58
|
-
#: Blocks/Maps/Edit
|
|
59
|
-
# defaultMessage: Google Maps Embedded Block
|
|
60
|
-
msgid "Google Maps Embedded Block"
|
|
61
|
-
msgstr ""
|
|
62
|
-
|
|
63
63
|
#: Blocks/Maps/Edit
|
|
64
64
|
# defaultMessage: Left
|
|
65
65
|
msgid "Left"
|
|
@@ -94,8 +94,8 @@ msgstr ""
|
|
|
94
94
|
|
|
95
95
|
#: Blocks/Maps/Edit
|
|
96
96
|
#: Widgets/MapsWidget
|
|
97
|
-
# defaultMessage: Please enter the
|
|
98
|
-
msgid "Please enter the
|
|
97
|
+
# defaultMessage: Please enter the embed code or URL for the ESRI webmap.
|
|
98
|
+
msgid "Please enter the embed code or URL for the ESRI webmap."
|
|
99
99
|
msgstr ""
|
|
100
100
|
|
|
101
101
|
#: Blocks/Maps/Edit
|
|
@@ -32,6 +32,11 @@ msgstr ""
|
|
|
32
32
|
msgid "Center"
|
|
33
33
|
msgstr ""
|
|
34
34
|
|
|
35
|
+
#: Blocks/Maps/Edit
|
|
36
|
+
# defaultMessage: ESRI Maps Embedded Block
|
|
37
|
+
msgid "ESRI Maps Embedded Block"
|
|
38
|
+
msgstr ""
|
|
39
|
+
|
|
35
40
|
#: Blocks/Maps/Edit
|
|
36
41
|
#: Widgets/MapsWidget
|
|
37
42
|
# defaultMessage: Embed code error, please follow the instructions and try again.
|
|
@@ -40,8 +45,8 @@ msgstr ""
|
|
|
40
45
|
|
|
41
46
|
#: Blocks/Maps/View
|
|
42
47
|
#: EmbedMap/EmbedMap
|
|
43
|
-
# defaultMessage: Embeded
|
|
44
|
-
msgid "Embeded
|
|
48
|
+
# defaultMessage: Embeded ESRI Maps
|
|
49
|
+
msgid "Embeded ESRI Maps"
|
|
45
50
|
msgstr ""
|
|
46
51
|
|
|
47
52
|
#: Blocks/Maps/Edit
|
|
@@ -55,11 +60,6 @@ msgstr ""
|
|
|
55
60
|
msgid "Full"
|
|
56
61
|
msgstr ""
|
|
57
62
|
|
|
58
|
-
#: Blocks/Maps/Edit
|
|
59
|
-
# defaultMessage: Google Maps Embedded Block
|
|
60
|
-
msgid "Google Maps Embedded Block"
|
|
61
|
-
msgstr ""
|
|
62
|
-
|
|
63
63
|
#: Blocks/Maps/Edit
|
|
64
64
|
# defaultMessage: Left
|
|
65
65
|
msgid "Left"
|
|
@@ -94,8 +94,8 @@ msgstr ""
|
|
|
94
94
|
|
|
95
95
|
#: Blocks/Maps/Edit
|
|
96
96
|
#: Widgets/MapsWidget
|
|
97
|
-
# defaultMessage: Please enter the
|
|
98
|
-
msgid "Please enter the
|
|
97
|
+
# defaultMessage: Please enter the embed code or URL for the ESRI webmap.
|
|
98
|
+
msgid "Please enter the embed code or URL for the ESRI webmap."
|
|
99
99
|
msgstr ""
|
|
100
100
|
|
|
101
101
|
#: Blocks/Maps/Edit
|
|
@@ -32,6 +32,11 @@ msgstr ""
|
|
|
32
32
|
msgid "Center"
|
|
33
33
|
msgstr ""
|
|
34
34
|
|
|
35
|
+
#: Blocks/Maps/Edit
|
|
36
|
+
# defaultMessage: ESRI Maps Embedded Block
|
|
37
|
+
msgid "ESRI Maps Embedded Block"
|
|
38
|
+
msgstr ""
|
|
39
|
+
|
|
35
40
|
#: Blocks/Maps/Edit
|
|
36
41
|
#: Widgets/MapsWidget
|
|
37
42
|
# defaultMessage: Embed code error, please follow the instructions and try again.
|
|
@@ -40,8 +45,8 @@ msgstr ""
|
|
|
40
45
|
|
|
41
46
|
#: Blocks/Maps/View
|
|
42
47
|
#: EmbedMap/EmbedMap
|
|
43
|
-
# defaultMessage: Embeded
|
|
44
|
-
msgid "Embeded
|
|
48
|
+
# defaultMessage: Embeded ESRI Maps
|
|
49
|
+
msgid "Embeded ESRI Maps"
|
|
45
50
|
msgstr ""
|
|
46
51
|
|
|
47
52
|
#: Blocks/Maps/Edit
|
|
@@ -55,11 +60,6 @@ msgstr ""
|
|
|
55
60
|
msgid "Full"
|
|
56
61
|
msgstr ""
|
|
57
62
|
|
|
58
|
-
#: Blocks/Maps/Edit
|
|
59
|
-
# defaultMessage: Google Maps Embedded Block
|
|
60
|
-
msgid "Google Maps Embedded Block"
|
|
61
|
-
msgstr ""
|
|
62
|
-
|
|
63
63
|
#: Blocks/Maps/Edit
|
|
64
64
|
# defaultMessage: Left
|
|
65
65
|
msgid "Left"
|
|
@@ -94,8 +94,8 @@ msgstr ""
|
|
|
94
94
|
|
|
95
95
|
#: Blocks/Maps/Edit
|
|
96
96
|
#: Widgets/MapsWidget
|
|
97
|
-
# defaultMessage: Please enter the
|
|
98
|
-
msgid "Please enter the
|
|
97
|
+
# defaultMessage: Please enter the embed code or URL for the ESRI webmap.
|
|
98
|
+
msgid "Please enter the embed code or URL for the ESRI webmap."
|
|
99
99
|
msgstr ""
|
|
100
100
|
|
|
101
101
|
#: Blocks/Maps/Edit
|
|
@@ -32,6 +32,11 @@ msgstr ""
|
|
|
32
32
|
msgid "Center"
|
|
33
33
|
msgstr ""
|
|
34
34
|
|
|
35
|
+
#: Blocks/Maps/Edit
|
|
36
|
+
# defaultMessage: ESRI Maps Embedded Block
|
|
37
|
+
msgid "ESRI Maps Embedded Block"
|
|
38
|
+
msgstr ""
|
|
39
|
+
|
|
35
40
|
#: Blocks/Maps/Edit
|
|
36
41
|
#: Widgets/MapsWidget
|
|
37
42
|
# defaultMessage: Embed code error, please follow the instructions and try again.
|
|
@@ -40,8 +45,8 @@ msgstr ""
|
|
|
40
45
|
|
|
41
46
|
#: Blocks/Maps/View
|
|
42
47
|
#: EmbedMap/EmbedMap
|
|
43
|
-
# defaultMessage: Embeded
|
|
44
|
-
msgid "Embeded
|
|
48
|
+
# defaultMessage: Embeded ESRI Maps
|
|
49
|
+
msgid "Embeded ESRI Maps"
|
|
45
50
|
msgstr ""
|
|
46
51
|
|
|
47
52
|
#: Blocks/Maps/Edit
|
|
@@ -55,11 +60,6 @@ msgstr ""
|
|
|
55
60
|
msgid "Full"
|
|
56
61
|
msgstr ""
|
|
57
62
|
|
|
58
|
-
#: Blocks/Maps/Edit
|
|
59
|
-
# defaultMessage: Google Maps Embedded Block
|
|
60
|
-
msgid "Google Maps Embedded Block"
|
|
61
|
-
msgstr ""
|
|
62
|
-
|
|
63
63
|
#: Blocks/Maps/Edit
|
|
64
64
|
# defaultMessage: Left
|
|
65
65
|
msgid "Left"
|
|
@@ -94,8 +94,8 @@ msgstr ""
|
|
|
94
94
|
|
|
95
95
|
#: Blocks/Maps/Edit
|
|
96
96
|
#: Widgets/MapsWidget
|
|
97
|
-
# defaultMessage: Please enter the
|
|
98
|
-
msgid "Please enter the
|
|
97
|
+
# defaultMessage: Please enter the embed code or URL for the ESRI webmap.
|
|
98
|
+
msgid "Please enter the embed code or URL for the ESRI webmap."
|
|
99
99
|
msgstr ""
|
|
100
100
|
|
|
101
101
|
#: Blocks/Maps/Edit
|
package/locales/volto.pot
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
msgid ""
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Plone\n"
|
|
4
|
-
"POT-Creation-Date: 2023-
|
|
4
|
+
"POT-Creation-Date: 2023-12-12T14:17:31.174Z\n"
|
|
5
5
|
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
6
6
|
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
7
7
|
"MIME-Version: 1.0\n"
|
|
@@ -34,6 +34,11 @@ msgstr ""
|
|
|
34
34
|
msgid "Center"
|
|
35
35
|
msgstr ""
|
|
36
36
|
|
|
37
|
+
#: Blocks/Maps/Edit
|
|
38
|
+
# defaultMessage: ESRI Maps Embedded Block
|
|
39
|
+
msgid "ESRI Maps Embedded Block"
|
|
40
|
+
msgstr ""
|
|
41
|
+
|
|
37
42
|
#: Blocks/Maps/Edit
|
|
38
43
|
#: Widgets/MapsWidget
|
|
39
44
|
# defaultMessage: Embed code error, please follow the instructions and try again.
|
|
@@ -42,8 +47,8 @@ msgstr ""
|
|
|
42
47
|
|
|
43
48
|
#: Blocks/Maps/View
|
|
44
49
|
#: EmbedMap/EmbedMap
|
|
45
|
-
# defaultMessage: Embeded
|
|
46
|
-
msgid "Embeded
|
|
50
|
+
# defaultMessage: Embeded ESRI Maps
|
|
51
|
+
msgid "Embeded ESRI Maps"
|
|
47
52
|
msgstr ""
|
|
48
53
|
|
|
49
54
|
#: Blocks/Maps/Edit
|
|
@@ -57,11 +62,6 @@ msgstr ""
|
|
|
57
62
|
msgid "Full"
|
|
58
63
|
msgstr ""
|
|
59
64
|
|
|
60
|
-
#: Blocks/Maps/Edit
|
|
61
|
-
# defaultMessage: Google Maps Embedded Block
|
|
62
|
-
msgid "Google Maps Embedded Block"
|
|
63
|
-
msgstr ""
|
|
64
|
-
|
|
65
65
|
#: Blocks/Maps/Edit
|
|
66
66
|
# defaultMessage: Left
|
|
67
67
|
msgid "Left"
|
|
@@ -96,8 +96,8 @@ msgstr ""
|
|
|
96
96
|
|
|
97
97
|
#: Blocks/Maps/Edit
|
|
98
98
|
#: Widgets/MapsWidget
|
|
99
|
-
# defaultMessage: Please enter the
|
|
100
|
-
msgid "Please enter the
|
|
99
|
+
# defaultMessage: Please enter the embed code or URL for the ESRI webmap.
|
|
100
|
+
msgid "Please enter the embed code or URL for the ESRI webmap."
|
|
101
101
|
msgstr ""
|
|
102
102
|
|
|
103
103
|
#: Blocks/Maps/Edit
|
package/package.json
CHANGED
package/src/Blocks/Maps/Edit.jsx
CHANGED
|
@@ -39,9 +39,9 @@ const messages = defineMessages({
|
|
|
39
39
|
id: 'Full',
|
|
40
40
|
defaultMessage: 'Full',
|
|
41
41
|
},
|
|
42
|
-
|
|
43
|
-
id: '
|
|
44
|
-
defaultMessage: '
|
|
42
|
+
ESRIMapsEmbeddedBlock: {
|
|
43
|
+
id: 'ESRI Maps Embedded Block',
|
|
44
|
+
defaultMessage: 'ESRI Maps Embedded Block',
|
|
45
45
|
},
|
|
46
46
|
});
|
|
47
47
|
|
|
@@ -175,7 +175,7 @@ class Edit extends Component {
|
|
|
175
175
|
/**
|
|
176
176
|
* get getSrc handler
|
|
177
177
|
* @method getSrc
|
|
178
|
-
* @param {string} embed Embed HTML code from
|
|
178
|
+
* @param {string} embed Embed HTML code from ESRI Maps share option
|
|
179
179
|
* @returns {string} Source URL
|
|
180
180
|
*/
|
|
181
181
|
getSrc(embed) {
|
|
@@ -232,7 +232,7 @@ class Edit extends Component {
|
|
|
232
232
|
>
|
|
233
233
|
<iframe
|
|
234
234
|
title={this.props.intl.formatMessage(
|
|
235
|
-
messages.
|
|
235
|
+
messages.ESRIMapsEmbeddedBlock,
|
|
236
236
|
)}
|
|
237
237
|
src={this.props.data.url}
|
|
238
238
|
className="google-map"
|
|
@@ -289,8 +289,8 @@ class Edit extends Component {
|
|
|
289
289
|
</div>
|
|
290
290
|
<div className="message-text">
|
|
291
291
|
<FormattedMessage
|
|
292
|
-
id="Please enter the
|
|
293
|
-
defaultMessage="Please enter the
|
|
292
|
+
id="Please enter the embed code or URL for the ESRI webmap."
|
|
293
|
+
defaultMessage="Please enter the embed code or URL for the ESRI webmap."
|
|
294
294
|
/>
|
|
295
295
|
{this.state.error && (
|
|
296
296
|
<div style={{ color: 'red' }}>
|
package/src/Blocks/Maps/View.jsx
CHANGED
|
@@ -12,9 +12,9 @@ import { withBlockExtensions } from '@plone/volto/helpers';
|
|
|
12
12
|
import PrivacyProtection from '@eeacms/volto-embed/PrivacyProtection/PrivacyProtection';
|
|
13
13
|
|
|
14
14
|
const messages = defineMessages({
|
|
15
|
-
|
|
16
|
-
id: 'Embeded
|
|
17
|
-
defaultMessage: 'Embeded
|
|
15
|
+
EmbededESRIMaps: {
|
|
16
|
+
id: 'Embeded ESRI Maps',
|
|
17
|
+
defaultMessage: 'Embeded ESRI Maps',
|
|
18
18
|
},
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -46,7 +46,7 @@ const View = ({ data, intl, id }) => {
|
|
|
46
46
|
useVisibilitySensor={data.useVisibilitySensor}
|
|
47
47
|
>
|
|
48
48
|
<iframe
|
|
49
|
-
title={intl.formatMessage(messages.
|
|
49
|
+
title={intl.formatMessage(messages.EmbededESRIMaps)}
|
|
50
50
|
src={data.url}
|
|
51
51
|
className="google-map"
|
|
52
52
|
frameBorder="0"
|
|
@@ -16,9 +16,9 @@ import PrivacyProtection from '@eeacms/volto-embed/PrivacyProtection/PrivacyProt
|
|
|
16
16
|
import './style.less';
|
|
17
17
|
|
|
18
18
|
const messages = defineMessages({
|
|
19
|
-
|
|
20
|
-
id: 'Embeded
|
|
21
|
-
defaultMessage: 'Embeded
|
|
19
|
+
EmbededESRIMaps: {
|
|
20
|
+
id: 'Embeded ESRI Maps',
|
|
21
|
+
defaultMessage: 'Embeded ESRI Maps',
|
|
22
22
|
},
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -71,7 +71,7 @@ function EmbedMap({ data, intl, id, screen }) {
|
|
|
71
71
|
useVisibilitySensor={data.useVisibilitySensor ?? true}
|
|
72
72
|
>
|
|
73
73
|
<iframe
|
|
74
|
-
title={intl.formatMessage(messages.
|
|
74
|
+
title={intl.formatMessage(messages.EmbededESRIMaps)}
|
|
75
75
|
src={data.url}
|
|
76
76
|
className="google-map"
|
|
77
77
|
frameBorder="0"
|
package/src/EmbedMap/style.less
CHANGED
package/src/Toolbar/Enlarge.jsx
CHANGED
package/src/Toolbar/MoreInfo.jsx
CHANGED
package/src/Toolbar/Share.jsx
CHANGED
|
@@ -159,8 +159,8 @@ function MapEditorModal({ id, onClose, onChange, ...rest }) {
|
|
|
159
159
|
</div>
|
|
160
160
|
<div className="message-text">
|
|
161
161
|
<FormattedMessage
|
|
162
|
-
id="Please enter the
|
|
163
|
-
defaultMessage="Please enter the
|
|
162
|
+
id="Please enter the embed code or URL for the ESRI webmap."
|
|
163
|
+
defaultMessage="Please enter the embed code or URL for the ESRI webmap."
|
|
164
164
|
/>
|
|
165
165
|
{error && (
|
|
166
166
|
<div style={{ color: 'red' }}>
|