@eeacms/volto-embed 9.0.0 → 9.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.md CHANGED
@@ -4,7 +4,15 @@ 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.0](https://github.com/eea/volto-embed/compare/8.0.0...9.0.0) - 23 November 2023
7
+ ### [9.0.1](https://github.com/eea/volto-embed/compare/9.0.0...9.0.1) - 24 November 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - remove console.log [Miu Razvan - [`f6543c8`](https://github.com/eea/volto-embed/commit/f6543c80d5fe6f765c7037ef1964d99f9a9dbc13)]
12
+ - update [Miu Razvan - [`f947c1e`](https://github.com/eea/volto-embed/commit/f947c1eef5b8de7cf69698ea4de2e08a686f0f47)]
13
+ - fix [Miu Razvan - [`f57f1bd`](https://github.com/eea/volto-embed/commit/f57f1bd8ac35b775f18923ece45b6db0274d4948)]
14
+ - fix [Miu Razvan - [`197dbdb`](https://github.com/eea/volto-embed/commit/197dbdbe610010db1a62d159ef3fec519970c6b0)]
15
+ ## [9.0.0](https://github.com/eea/volto-embed/compare/8.0.0...9.0.0) - 23 November 2023
8
16
 
9
17
  #### :bug: Bug Fixes
10
18
 
@@ -17,7 +25,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
17
25
  - update [Miu Razvan - [`926beb8`](https://github.com/eea/volto-embed/commit/926beb87d2c44907aebe57369312eea7bf22d656)]
18
26
  - update [Miu Razvan - [`da351ae`](https://github.com/eea/volto-embed/commit/da351ae9ffaaef756f7a665618a03fd04cb9b01d)]
19
27
  - use volto-datablocks@develop dependency [Miu Razvan - [`b379d84`](https://github.com/eea/volto-embed/commit/b379d8478657dd39dad066181b349cee7ac2531d)]
20
- - add tets + fixes [Miu Razvan - [`b013196`](https://github.com/eea/volto-embed/commit/b013196cbaebaada27dd9ae5a0e4fe6908637152)]
21
28
  ## [8.0.0](https://github.com/eea/volto-embed/compare/7.0.2...8.0.0) - 17 November 2023
22
29
 
23
30
  #### :hammer_and_wrench: Others
@@ -11,69 +11,48 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
- #: Blocks/EmbedMaps/schema
15
- #: Blocks/Maps/schema
16
- # defaultMessage: Alignment
17
- msgid "Alignment"
18
- msgstr ""
19
-
20
- #: Blocks/EmbedMaps/schema
21
- #: Blocks/Maps/schema
22
- # defaultMessage: Alt text
23
- msgid "Alt text"
24
- msgstr ""
25
-
26
- #: Blocks/EmbedMaps/schema
27
- #: Blocks/Maps/schema
28
- # defaultMessage: undefined
29
- msgid "CSSHeight"
30
- msgstr ""
31
-
32
- #: Blocks/EmbedMaps/schema
33
14
  #: Blocks/Maps/schema
34
15
  # defaultMessage: undefined
35
- msgid "CSSHeightDescription"
16
+ msgid "CSS height"
36
17
  msgstr ""
37
18
 
38
- #: Blocks/EmbedMaps/Edit
39
19
  #: Blocks/Maps/Edit
40
20
  # defaultMessage: Center
41
21
  msgid "Center"
42
22
  msgstr ""
43
23
 
44
- #: Blocks/EmbedMaps/Edit
45
24
  #: Blocks/Maps/Edit
46
25
  #: Widgets/MapsWidget
47
26
  # defaultMessage: Embed code error, please follow the instructions and try again.
48
27
  msgid "Embed code error, please follow the instructions and try again."
49
28
  msgstr ""
50
29
 
51
- #: Blocks/EmbedMaps/View
52
30
  #: Blocks/Maps/View
53
- #: Map/Map
31
+ #: EmbedMap/EmbedMap
54
32
  # defaultMessage: Embeded Google Maps
55
33
  msgid "Embeded Google Maps"
56
34
  msgstr ""
57
35
 
58
- #: Blocks/EmbedMaps/Edit
59
36
  #: Blocks/Maps/Edit
60
37
  # defaultMessage: Enter map Embed Code
61
38
  msgid "Enter map Embed Code"
62
39
  msgstr ""
63
40
 
64
- #: Blocks/EmbedMaps/Edit
65
41
  #: Blocks/Maps/Edit
66
42
  # defaultMessage: Full
67
43
  msgid "Full"
68
44
  msgstr ""
69
45
 
70
- #: Blocks/EmbedMaps/Edit
71
46
  #: Blocks/Maps/Edit
72
47
  # defaultMessage: Google Maps Embedded Block
73
48
  msgid "Google Maps Embedded Block"
74
49
  msgstr ""
75
50
 
76
- #: Blocks/EmbedMaps/Edit
51
+ #: Blocks/Maps/schema
52
+ # defaultMessage: undefined
53
+ msgid "Iframe height"
54
+ msgstr ""
55
+
77
56
  #: Blocks/Maps/Edit
78
57
  # defaultMessage: Left
79
58
  msgid "Left"
@@ -84,34 +63,22 @@ msgstr ""
84
63
  msgid "Live image generated"
85
64
  msgstr ""
86
65
 
87
- #: Blocks/EmbedMaps/MapsSidebar
88
- #: Blocks/EmbedMaps/schema
89
66
  #: Blocks/Maps/MapsSidebar
90
- #: Blocks/Maps/schema
91
67
  # defaultMessage: Maps
92
68
  msgid "Maps"
93
69
  msgstr ""
94
70
 
95
- #: Blocks/EmbedMaps/schema
96
- #: Blocks/Maps/schema
97
- # defaultMessage: Maps URL
98
- msgid "Maps URL"
99
- msgstr ""
100
-
101
- #: Blocks/EmbedMaps/MapsSidebar
102
71
  #: Blocks/Maps/MapsSidebar
103
72
  # defaultMessage: No map selected
104
73
  msgid "No map selected"
105
74
  msgstr ""
106
75
 
107
- #: Blocks/EmbedMaps/Edit
108
76
  #: Blocks/Maps/Edit
109
77
  #: Widgets/MapsWidget
110
78
  # defaultMessage: Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it.
111
79
  msgid "Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."
112
80
  msgstr ""
113
81
 
114
- #: Blocks/EmbedMaps/Edit
115
82
  #: Blocks/Maps/Edit
116
83
  # defaultMessage: Right
117
84
  msgid "Right"
@@ -11,69 +11,48 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
- #: Blocks/EmbedMaps/schema
15
- #: Blocks/Maps/schema
16
- # defaultMessage: Alignment
17
- msgid "Alignment"
18
- msgstr ""
19
-
20
- #: Blocks/EmbedMaps/schema
21
- #: Blocks/Maps/schema
22
- # defaultMessage: Alt text
23
- msgid "Alt text"
24
- msgstr ""
25
-
26
- #: Blocks/EmbedMaps/schema
27
- #: Blocks/Maps/schema
28
- # defaultMessage: undefined
29
- msgid "CSSHeight"
30
- msgstr ""
31
-
32
- #: Blocks/EmbedMaps/schema
33
14
  #: Blocks/Maps/schema
34
15
  # defaultMessage: undefined
35
- msgid "CSSHeightDescription"
16
+ msgid "CSS height"
36
17
  msgstr ""
37
18
 
38
- #: Blocks/EmbedMaps/Edit
39
19
  #: Blocks/Maps/Edit
40
20
  # defaultMessage: Center
41
21
  msgid "Center"
42
22
  msgstr ""
43
23
 
44
- #: Blocks/EmbedMaps/Edit
45
24
  #: Blocks/Maps/Edit
46
25
  #: Widgets/MapsWidget
47
26
  # defaultMessage: Embed code error, please follow the instructions and try again.
48
27
  msgid "Embed code error, please follow the instructions and try again."
49
28
  msgstr ""
50
29
 
51
- #: Blocks/EmbedMaps/View
52
30
  #: Blocks/Maps/View
53
- #: Map/Map
31
+ #: EmbedMap/EmbedMap
54
32
  # defaultMessage: Embeded Google Maps
55
33
  msgid "Embeded Google Maps"
56
34
  msgstr ""
57
35
 
58
- #: Blocks/EmbedMaps/Edit
59
36
  #: Blocks/Maps/Edit
60
37
  # defaultMessage: Enter map Embed Code
61
38
  msgid "Enter map Embed Code"
62
39
  msgstr ""
63
40
 
64
- #: Blocks/EmbedMaps/Edit
65
41
  #: Blocks/Maps/Edit
66
42
  # defaultMessage: Full
67
43
  msgid "Full"
68
44
  msgstr ""
69
45
 
70
- #: Blocks/EmbedMaps/Edit
71
46
  #: Blocks/Maps/Edit
72
47
  # defaultMessage: Google Maps Embedded Block
73
48
  msgid "Google Maps Embedded Block"
74
49
  msgstr ""
75
50
 
76
- #: Blocks/EmbedMaps/Edit
51
+ #: Blocks/Maps/schema
52
+ # defaultMessage: undefined
53
+ msgid "Iframe height"
54
+ msgstr ""
55
+
77
56
  #: Blocks/Maps/Edit
78
57
  # defaultMessage: Left
79
58
  msgid "Left"
@@ -84,34 +63,22 @@ msgstr ""
84
63
  msgid "Live image generated"
85
64
  msgstr ""
86
65
 
87
- #: Blocks/EmbedMaps/MapsSidebar
88
- #: Blocks/EmbedMaps/schema
89
66
  #: Blocks/Maps/MapsSidebar
90
- #: Blocks/Maps/schema
91
67
  # defaultMessage: Maps
92
68
  msgid "Maps"
93
69
  msgstr ""
94
70
 
95
- #: Blocks/EmbedMaps/schema
96
- #: Blocks/Maps/schema
97
- # defaultMessage: Maps URL
98
- msgid "Maps URL"
99
- msgstr ""
100
-
101
- #: Blocks/EmbedMaps/MapsSidebar
102
71
  #: Blocks/Maps/MapsSidebar
103
72
  # defaultMessage: No map selected
104
73
  msgid "No map selected"
105
74
  msgstr ""
106
75
 
107
- #: Blocks/EmbedMaps/Edit
108
76
  #: Blocks/Maps/Edit
109
77
  #: Widgets/MapsWidget
110
78
  # defaultMessage: Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it.
111
79
  msgid "Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."
112
80
  msgstr ""
113
81
 
114
- #: Blocks/EmbedMaps/Edit
115
82
  #: Blocks/Maps/Edit
116
83
  # defaultMessage: Right
117
84
  msgid "Right"
@@ -11,69 +11,48 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
- #: Blocks/EmbedMaps/schema
15
- #: Blocks/Maps/schema
16
- # defaultMessage: Alignment
17
- msgid "Alignment"
18
- msgstr ""
19
-
20
- #: Blocks/EmbedMaps/schema
21
- #: Blocks/Maps/schema
22
- # defaultMessage: Alt text
23
- msgid "Alt text"
24
- msgstr ""
25
-
26
- #: Blocks/EmbedMaps/schema
27
- #: Blocks/Maps/schema
28
- # defaultMessage: undefined
29
- msgid "CSSHeight"
30
- msgstr ""
31
-
32
- #: Blocks/EmbedMaps/schema
33
14
  #: Blocks/Maps/schema
34
15
  # defaultMessage: undefined
35
- msgid "CSSHeightDescription"
16
+ msgid "CSS height"
36
17
  msgstr ""
37
18
 
38
- #: Blocks/EmbedMaps/Edit
39
19
  #: Blocks/Maps/Edit
40
20
  # defaultMessage: Center
41
21
  msgid "Center"
42
22
  msgstr ""
43
23
 
44
- #: Blocks/EmbedMaps/Edit
45
24
  #: Blocks/Maps/Edit
46
25
  #: Widgets/MapsWidget
47
26
  # defaultMessage: Embed code error, please follow the instructions and try again.
48
27
  msgid "Embed code error, please follow the instructions and try again."
49
28
  msgstr ""
50
29
 
51
- #: Blocks/EmbedMaps/View
52
30
  #: Blocks/Maps/View
53
- #: Map/Map
31
+ #: EmbedMap/EmbedMap
54
32
  # defaultMessage: Embeded Google Maps
55
33
  msgid "Embeded Google Maps"
56
34
  msgstr ""
57
35
 
58
- #: Blocks/EmbedMaps/Edit
59
36
  #: Blocks/Maps/Edit
60
37
  # defaultMessage: Enter map Embed Code
61
38
  msgid "Enter map Embed Code"
62
39
  msgstr ""
63
40
 
64
- #: Blocks/EmbedMaps/Edit
65
41
  #: Blocks/Maps/Edit
66
42
  # defaultMessage: Full
67
43
  msgid "Full"
68
44
  msgstr ""
69
45
 
70
- #: Blocks/EmbedMaps/Edit
71
46
  #: Blocks/Maps/Edit
72
47
  # defaultMessage: Google Maps Embedded Block
73
48
  msgid "Google Maps Embedded Block"
74
49
  msgstr ""
75
50
 
76
- #: Blocks/EmbedMaps/Edit
51
+ #: Blocks/Maps/schema
52
+ # defaultMessage: undefined
53
+ msgid "Iframe height"
54
+ msgstr ""
55
+
77
56
  #: Blocks/Maps/Edit
78
57
  # defaultMessage: Left
79
58
  msgid "Left"
@@ -84,34 +63,22 @@ msgstr ""
84
63
  msgid "Live image generated"
85
64
  msgstr ""
86
65
 
87
- #: Blocks/EmbedMaps/MapsSidebar
88
- #: Blocks/EmbedMaps/schema
89
66
  #: Blocks/Maps/MapsSidebar
90
- #: Blocks/Maps/schema
91
67
  # defaultMessage: Maps
92
68
  msgid "Maps"
93
69
  msgstr ""
94
70
 
95
- #: Blocks/EmbedMaps/schema
96
- #: Blocks/Maps/schema
97
- # defaultMessage: Maps URL
98
- msgid "Maps URL"
99
- msgstr ""
100
-
101
- #: Blocks/EmbedMaps/MapsSidebar
102
71
  #: Blocks/Maps/MapsSidebar
103
72
  # defaultMessage: No map selected
104
73
  msgid "No map selected"
105
74
  msgstr ""
106
75
 
107
- #: Blocks/EmbedMaps/Edit
108
76
  #: Blocks/Maps/Edit
109
77
  #: Widgets/MapsWidget
110
78
  # defaultMessage: Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it.
111
79
  msgid "Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."
112
80
  msgstr ""
113
81
 
114
- #: Blocks/EmbedMaps/Edit
115
82
  #: Blocks/Maps/Edit
116
83
  # defaultMessage: Right
117
84
  msgid "Right"
@@ -11,69 +11,48 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
- #: Blocks/EmbedMaps/schema
15
- #: Blocks/Maps/schema
16
- # defaultMessage: Alignment
17
- msgid "Alignment"
18
- msgstr ""
19
-
20
- #: Blocks/EmbedMaps/schema
21
- #: Blocks/Maps/schema
22
- # defaultMessage: Alt text
23
- msgid "Alt text"
24
- msgstr ""
25
-
26
- #: Blocks/EmbedMaps/schema
27
- #: Blocks/Maps/schema
28
- # defaultMessage: undefined
29
- msgid "CSSHeight"
30
- msgstr ""
31
-
32
- #: Blocks/EmbedMaps/schema
33
14
  #: Blocks/Maps/schema
34
15
  # defaultMessage: undefined
35
- msgid "CSSHeightDescription"
16
+ msgid "CSS height"
36
17
  msgstr ""
37
18
 
38
- #: Blocks/EmbedMaps/Edit
39
19
  #: Blocks/Maps/Edit
40
20
  # defaultMessage: Center
41
21
  msgid "Center"
42
22
  msgstr ""
43
23
 
44
- #: Blocks/EmbedMaps/Edit
45
24
  #: Blocks/Maps/Edit
46
25
  #: Widgets/MapsWidget
47
26
  # defaultMessage: Embed code error, please follow the instructions and try again.
48
27
  msgid "Embed code error, please follow the instructions and try again."
49
28
  msgstr ""
50
29
 
51
- #: Blocks/EmbedMaps/View
52
30
  #: Blocks/Maps/View
53
- #: Map/Map
31
+ #: EmbedMap/EmbedMap
54
32
  # defaultMessage: Embeded Google Maps
55
33
  msgid "Embeded Google Maps"
56
34
  msgstr ""
57
35
 
58
- #: Blocks/EmbedMaps/Edit
59
36
  #: Blocks/Maps/Edit
60
37
  # defaultMessage: Enter map Embed Code
61
38
  msgid "Enter map Embed Code"
62
39
  msgstr ""
63
40
 
64
- #: Blocks/EmbedMaps/Edit
65
41
  #: Blocks/Maps/Edit
66
42
  # defaultMessage: Full
67
43
  msgid "Full"
68
44
  msgstr ""
69
45
 
70
- #: Blocks/EmbedMaps/Edit
71
46
  #: Blocks/Maps/Edit
72
47
  # defaultMessage: Google Maps Embedded Block
73
48
  msgid "Google Maps Embedded Block"
74
49
  msgstr ""
75
50
 
76
- #: Blocks/EmbedMaps/Edit
51
+ #: Blocks/Maps/schema
52
+ # defaultMessage: undefined
53
+ msgid "Iframe height"
54
+ msgstr ""
55
+
77
56
  #: Blocks/Maps/Edit
78
57
  # defaultMessage: Left
79
58
  msgid "Left"
@@ -84,34 +63,22 @@ msgstr ""
84
63
  msgid "Live image generated"
85
64
  msgstr ""
86
65
 
87
- #: Blocks/EmbedMaps/MapsSidebar
88
- #: Blocks/EmbedMaps/schema
89
66
  #: Blocks/Maps/MapsSidebar
90
- #: Blocks/Maps/schema
91
67
  # defaultMessage: Maps
92
68
  msgid "Maps"
93
69
  msgstr ""
94
70
 
95
- #: Blocks/EmbedMaps/schema
96
- #: Blocks/Maps/schema
97
- # defaultMessage: Maps URL
98
- msgid "Maps URL"
99
- msgstr ""
100
-
101
- #: Blocks/EmbedMaps/MapsSidebar
102
71
  #: Blocks/Maps/MapsSidebar
103
72
  # defaultMessage: No map selected
104
73
  msgid "No map selected"
105
74
  msgstr ""
106
75
 
107
- #: Blocks/EmbedMaps/Edit
108
76
  #: Blocks/Maps/Edit
109
77
  #: Widgets/MapsWidget
110
78
  # defaultMessage: Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it.
111
79
  msgid "Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."
112
80
  msgstr ""
113
81
 
114
- #: Blocks/EmbedMaps/Edit
115
82
  #: Blocks/Maps/Edit
116
83
  # defaultMessage: Right
117
84
  msgid "Right"
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-15T18:20:32.637Z\n"
4
+ "POT-Creation-Date: 2023-11-24T12:50:06.731Z\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"
@@ -13,69 +13,48 @@ msgstr ""
13
13
  "Preferred-Encodings: utf-8\n"
14
14
  "Domain: volto\n"
15
15
 
16
- #: Blocks/EmbedMaps/schema
17
- #: Blocks/Maps/schema
18
- # defaultMessage: Alignment
19
- msgid "Alignment"
20
- msgstr ""
21
-
22
- #: Blocks/EmbedMaps/schema
23
- #: Blocks/Maps/schema
24
- # defaultMessage: Alt text
25
- msgid "Alt text"
26
- msgstr ""
27
-
28
- #: Blocks/EmbedMaps/schema
29
- #: Blocks/Maps/schema
30
- # defaultMessage: undefined
31
- msgid "CSSHeight"
32
- msgstr ""
33
-
34
- #: Blocks/EmbedMaps/schema
35
16
  #: Blocks/Maps/schema
36
17
  # defaultMessage: undefined
37
- msgid "CSSHeightDescription"
18
+ msgid "CSS height"
38
19
  msgstr ""
39
20
 
40
- #: Blocks/EmbedMaps/Edit
41
21
  #: Blocks/Maps/Edit
42
22
  # defaultMessage: Center
43
23
  msgid "Center"
44
24
  msgstr ""
45
25
 
46
- #: Blocks/EmbedMaps/Edit
47
26
  #: Blocks/Maps/Edit
48
27
  #: Widgets/MapsWidget
49
28
  # defaultMessage: Embed code error, please follow the instructions and try again.
50
29
  msgid "Embed code error, please follow the instructions and try again."
51
30
  msgstr ""
52
31
 
53
- #: Blocks/EmbedMaps/View
54
32
  #: Blocks/Maps/View
55
- #: Map/Map
33
+ #: EmbedMap/EmbedMap
56
34
  # defaultMessage: Embeded Google Maps
57
35
  msgid "Embeded Google Maps"
58
36
  msgstr ""
59
37
 
60
- #: Blocks/EmbedMaps/Edit
61
38
  #: Blocks/Maps/Edit
62
39
  # defaultMessage: Enter map Embed Code
63
40
  msgid "Enter map Embed Code"
64
41
  msgstr ""
65
42
 
66
- #: Blocks/EmbedMaps/Edit
67
43
  #: Blocks/Maps/Edit
68
44
  # defaultMessage: Full
69
45
  msgid "Full"
70
46
  msgstr ""
71
47
 
72
- #: Blocks/EmbedMaps/Edit
73
48
  #: Blocks/Maps/Edit
74
49
  # defaultMessage: Google Maps Embedded Block
75
50
  msgid "Google Maps Embedded Block"
76
51
  msgstr ""
77
52
 
78
- #: Blocks/EmbedMaps/Edit
53
+ #: Blocks/Maps/schema
54
+ # defaultMessage: undefined
55
+ msgid "Iframe height"
56
+ msgstr ""
57
+
79
58
  #: Blocks/Maps/Edit
80
59
  # defaultMessage: Left
81
60
  msgid "Left"
@@ -86,34 +65,22 @@ msgstr ""
86
65
  msgid "Live image generated"
87
66
  msgstr ""
88
67
 
89
- #: Blocks/EmbedMaps/MapsSidebar
90
- #: Blocks/EmbedMaps/schema
91
68
  #: Blocks/Maps/MapsSidebar
92
- #: Blocks/Maps/schema
93
69
  # defaultMessage: Maps
94
70
  msgid "Maps"
95
71
  msgstr ""
96
72
 
97
- #: Blocks/EmbedMaps/schema
98
- #: Blocks/Maps/schema
99
- # defaultMessage: Maps URL
100
- msgid "Maps URL"
101
- msgstr ""
102
-
103
- #: Blocks/EmbedMaps/MapsSidebar
104
73
  #: Blocks/Maps/MapsSidebar
105
74
  # defaultMessage: No map selected
106
75
  msgid "No map selected"
107
76
  msgstr ""
108
77
 
109
- #: Blocks/EmbedMaps/Edit
110
78
  #: Blocks/Maps/Edit
111
79
  #: Widgets/MapsWidget
112
80
  # defaultMessage: Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it.
113
81
  msgid "Please enter the Embed Code provided by Google Maps -> Share -> Embed map. It should contain the <iframe> code on it."
114
82
  msgstr ""
115
83
 
116
- #: Blocks/EmbedMaps/Edit
117
84
  #: Blocks/Maps/Edit
118
85
  # defaultMessage: Right
119
86
  msgid "Right"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-embed",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "Embed external content",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -71,4 +71,4 @@
71
71
  "cypress:open": "make cypress-open",
72
72
  "prepare": "husky install"
73
73
  }
74
- }
74
+ }
@@ -6,7 +6,7 @@ import sliderSVG from '@plone/volto/icons/slider.svg';
6
6
  const applyConfig = (config) => {
7
7
  config.blocks.blocksConfig.embed_maps = {
8
8
  id: 'embed_maps',
9
- title: 'Embed Map',
9
+ title: 'Embed interactive Map',
10
10
  icon: sliderSVG,
11
11
  group: 'common',
12
12
  edit: EmbedMap,
@@ -37,6 +37,8 @@ function EmbedMap({ data, intl, id, screen }) {
37
37
  }
38
38
  }, [screen, mobile]);
39
39
 
40
+ if (!data.url) return null;
41
+
40
42
  return (
41
43
  <div
42
44
  ref={el}
@@ -72,7 +74,9 @@ function EmbedMap({ data, intl, id, screen }) {
72
74
  <div className={cx('visualization-toolbar', { mobile })}>
73
75
  <div className="left-col">
74
76
  {data.with_notes && <FigureNote notes={data.figure_note || []} />}
75
- {data.with_sources && <Sources sources={data.sources} />}
77
+ {data.with_sources && (
78
+ <Sources sources={data.data_provenance?.data} />
79
+ )}
76
80
  {data.with_more_info && <MoreInfo href={data['@id']} />}
77
81
  </div>
78
82
  <div className="right-col">
@@ -1,11 +1,25 @@
1
1
  import React from 'react';
2
2
  import { Container } from 'semantic-ui-react';
3
+ import { hasBlocksData } from '@plone/volto/helpers';
4
+ import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
3
5
  import EmbedMap from '@eeacms/volto-embed/EmbedMap/EmbedMap';
6
+ import { pickMetadata } from '@eeacms/volto-embed/helpers';
4
7
 
5
8
  const MapView = (props) => {
6
9
  return (
7
- <Container>
8
- <EmbedMap data={props.content.maps} id={props.content['@id']} />
10
+ <Container id="page-document" className="view-wrapper visualization-view">
11
+ {hasBlocksData(props.content) ? (
12
+ <RenderBlocks {...props} />
13
+ ) : (
14
+ <EmbedMap
15
+ data={{
16
+ ...(props.content.maps || {}),
17
+ ...pickMetadata(props.content),
18
+ with_share: true,
19
+ }}
20
+ id="map-view"
21
+ />
22
+ )}
9
23
  </Container>
10
24
  );
11
25
  };
@@ -1,5 +1,20 @@
1
+ import { connect } from 'react-redux';
2
+ import { pickMetadata } from '@eeacms/volto-embed/helpers';
1
3
  import EmbedMap from '@eeacms/volto-embed/EmbedMap/EmbedMap';
2
4
 
3
- export default function MapsViewWidget({ id, value }) {
4
- return <EmbedMap data={value} id={id} />;
5
+ function MapsViewWidget({ id, value, content }) {
6
+ return (
7
+ <EmbedMap
8
+ data={{
9
+ ...(value || {}),
10
+ ...pickMetadata(content),
11
+ with_share: true,
12
+ }}
13
+ id={id}
14
+ />
15
+ );
5
16
  }
17
+
18
+ export default connect((state) => ({ content: state.content.data }))(
19
+ MapsViewWidget,
20
+ );