@eeacms/volto-embed 9.0.4 → 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 CHANGED
@@ -4,7 +4,18 @@ 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.4](https://github.com/eea/volto-embed/compare/9.0.3...9.0.4) - 8 December 2023
7
+ ### [9.0.5](https://github.com/eea/volto-embed/compare/9.0.4...9.0.5) - 13 December 2023
8
+
9
+ #### :bug: Bug Fixes
10
+
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
8
19
 
9
20
  #### :rocket: New Features
10
21
 
@@ -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 Google Maps
44
- msgid "Embeded Google Maps"
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 Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it.
98
- msgid "Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."
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 Google Maps
44
- msgid "Embeded Google Maps"
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 Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it.
98
- msgid "Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."
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 Google Maps
44
- msgid "Embeded Google Maps"
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 Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it.
98
- msgid "Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."
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 Google Maps
44
- msgid "Embeded Google Maps"
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 Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it.
98
- msgid "Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."
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-11-29T13:51:29.116Z\n"
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 Google Maps
46
- msgid "Embeded Google Maps"
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 Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it.
100
- msgid "Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-embed",
3
- "version": "9.0.4",
3
+ "version": "9.0.5",
4
4
  "description": "Embed external content",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -39,9 +39,9 @@ const messages = defineMessages({
39
39
  id: 'Full',
40
40
  defaultMessage: 'Full',
41
41
  },
42
- GoogleMapsEmbeddedBlock: {
43
- id: 'Google Maps Embedded Block',
44
- defaultMessage: 'Google Maps Embedded Block',
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 Google Maps share option
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.GoogleMapsEmbeddedBlock,
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 Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."
293
- defaultMessage="Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."
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' }}>
@@ -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
- EmbededGoogleMaps: {
16
- id: 'Embeded Google Maps',
17
- defaultMessage: 'Embeded Google Maps',
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.EmbededGoogleMaps)}
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
- EmbededGoogleMaps: {
20
- id: 'Embeded Google Maps',
21
- defaultMessage: 'Embeded Google Maps',
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.EmbededGoogleMaps)}
74
+ title={intl.formatMessage(messages.EmbededESRIMaps)}
75
75
  src={data.url}
76
76
  className="google-map"
77
77
  frameBorder="0"
@@ -5,8 +5,9 @@
5
5
  .ui.modal.enlarge-modal.enlarge-embed-maps {
6
6
  .content,
7
7
  .content .block.maps,
8
- .content .block.maps .maps-inner {
9
- height: 100%;
8
+ .content .block.maps .maps-inner,
9
+ .privacy-protection-wrapper {
10
+ height: 100% !important;
10
11
  }
11
12
 
12
13
  .close.icon {
@@ -26,7 +26,7 @@ const Enlarge = ({ children, className, onClick }) => {
26
26
  open={isOpen}
27
27
  closeIcon={
28
28
  <span className="close icon">
29
- <i class="ri-close-line" />
29
+ <i className="ri-close-line" />
30
30
  </span>
31
31
  }
32
32
  onClose={() => setIsOpen(false)}
@@ -13,7 +13,7 @@ export default function MoreInfo({ href }) {
13
13
  <div className="more-info">
14
14
  <Link href={href} className="trigger-button">
15
15
  <span>More info</span>
16
- <i class="ri-external-link-line" />
16
+ <i className="ri-external-link-line" />
17
17
  </Link>
18
18
  </div>
19
19
  );
@@ -62,7 +62,7 @@ const Share = ({ href = '' }) => {
62
62
  trigger={
63
63
  <div className="share">
64
64
  <button className={cx('trigger-button', { open })}>
65
- <i class="ri-share-fill"></i>
65
+ <i className="ri-share-fill"></i>
66
66
  <span>Share</span>
67
67
  </button>
68
68
  </div>
@@ -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 Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."
163
- defaultMessage="Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."
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' }}>