@eeacms/volto-embed 8.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 +20 -3
- package/locales/de/LC_MESSAGES/volto.po +7 -40
- package/locales/en/LC_MESSAGES/volto.po +7 -40
- package/locales/it/LC_MESSAGES/volto.po +7 -40
- package/locales/ro/LC_MESSAGES/volto.po +7 -40
- package/locales/volto.pot +8 -41
- package/package.json +2 -3
- package/src/Blocks/EmbedMaps/Edit.test.js +75 -0
- package/src/Blocks/EmbedMaps/View.jsx +22 -27
- package/src/Blocks/EmbedMaps/View.test.js +60 -0
- package/src/Blocks/EmbedMaps/index.js +3 -3
- package/src/Blocks/Maps/Edit.jsx +1 -0
- package/src/Blocks/Maps/Edit.test.js +79 -0
- package/src/Blocks/Maps/View.jsx +5 -1
- package/src/Blocks/Maps/View.test.js +67 -0
- package/src/{Map/Map.jsx → EmbedMap/EmbedMap.jsx} +15 -6
- package/src/EmbedMap/EmbedMap.test.js +66 -0
- package/src/PrivacyProtection/PrivacyProtection.jsx +2 -0
- package/src/Toolbar/FigureNote.jsx +2 -3
- package/src/Toolbar/Toolbar.test.js +96 -0
- package/src/Views/MapView.jsx +17 -3
- package/src/Views/MapView.test.js +68 -0
- package/src/Widgets/MapsViewWidget.jsx +18 -3
- package/src/Widgets/MapsWidget.jsx +3 -3
- package/src/helpers.js +16 -0
- package/src/Blocks/Maps/Edit.test.jsx +0 -119
- /package/src/{Map → EmbedMap}/style.less +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,28 @@ 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
|
-
### [
|
|
7
|
+
### [9.0.1](https://github.com/eea/volto-embed/compare/9.0.0...9.0.1) - 24 November 2023
|
|
8
8
|
|
|
9
|
-
#### :
|
|
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
|
|
16
|
+
|
|
17
|
+
#### :bug: Bug Fixes
|
|
18
|
+
|
|
19
|
+
- fix: sonarqube [Miu Razvan - [`712eb36`](https://github.com/eea/volto-embed/commit/712eb36b87bbd9e0dbae67260081056ae2a0dfd6)]
|
|
20
|
+
|
|
21
|
+
#### :hammer_and_wrench: Others
|
|
10
22
|
|
|
11
|
-
-
|
|
23
|
+
- update [Miu Razvan - [`8612b33`](https://github.com/eea/volto-embed/commit/8612b3348f486c121614073c950a5794e3fc979b)]
|
|
24
|
+
- update [Miu Razvan - [`7ee9b67`](https://github.com/eea/volto-embed/commit/7ee9b6700e88f2901066919443624313ef08dd1a)]
|
|
25
|
+
- update [Miu Razvan - [`926beb8`](https://github.com/eea/volto-embed/commit/926beb87d2c44907aebe57369312eea7bf22d656)]
|
|
26
|
+
- update [Miu Razvan - [`da351ae`](https://github.com/eea/volto-embed/commit/da351ae9ffaaef756f7a665618a03fd04cb9b01d)]
|
|
27
|
+
- use volto-datablocks@develop dependency [Miu Razvan - [`b379d84`](https://github.com/eea/volto-embed/commit/b379d8478657dd39dad066181b349cee7ac2531d)]
|
|
28
|
+
## [8.0.0](https://github.com/eea/volto-embed/compare/7.0.2...8.0.0) - 17 November 2023
|
|
12
29
|
|
|
13
30
|
#### :hammer_and_wrench: Others
|
|
14
31
|
|
|
@@ -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 "
|
|
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
|
-
#:
|
|
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/
|
|
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 "
|
|
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
|
-
#:
|
|
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/
|
|
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 "
|
|
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
|
-
#:
|
|
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/
|
|
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 "
|
|
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
|
-
#:
|
|
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/
|
|
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-
|
|
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 "
|
|
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
|
-
#:
|
|
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/
|
|
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": "
|
|
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",
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@eeacms/volto-corsproxy": "*",
|
|
23
|
-
"@eeacms/volto-datablocks": "*"
|
|
24
|
-
"react-visibility-sensor": "5.1.1"
|
|
23
|
+
"@eeacms/volto-datablocks": "*"
|
|
25
24
|
},
|
|
26
25
|
"devDependencies": {
|
|
27
26
|
"@cypress/code-coverage": "^3.10.0",
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import renderer from 'react-test-renderer';
|
|
3
|
+
import configureStore from 'redux-mock-store';
|
|
4
|
+
import { Provider } from 'react-intl-redux';
|
|
5
|
+
import config from '@plone/volto/registry';
|
|
6
|
+
|
|
7
|
+
import Edit from './Edit';
|
|
8
|
+
import installEmbedMaps from '.';
|
|
9
|
+
|
|
10
|
+
installEmbedMaps(config);
|
|
11
|
+
|
|
12
|
+
const mockStore = configureStore();
|
|
13
|
+
|
|
14
|
+
jest.mock('@plone/volto/components', () => ({
|
|
15
|
+
__esModule: true,
|
|
16
|
+
SidebarPortal: jest.requireActual(
|
|
17
|
+
'@plone/volto/components/manage/Sidebar/SidebarPortal',
|
|
18
|
+
).default,
|
|
19
|
+
UniversalLink: ({ children, href }) => {
|
|
20
|
+
return <a href={href}>{children}</a>;
|
|
21
|
+
},
|
|
22
|
+
}));
|
|
23
|
+
|
|
24
|
+
const store = mockStore({
|
|
25
|
+
intl: {
|
|
26
|
+
locale: 'en',
|
|
27
|
+
messages: {},
|
|
28
|
+
},
|
|
29
|
+
content: {
|
|
30
|
+
create: {},
|
|
31
|
+
},
|
|
32
|
+
connected_data_parameters: {},
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
test('renders an edit embed map block component', () => {
|
|
36
|
+
const component = renderer.create(
|
|
37
|
+
<Provider store={store}>
|
|
38
|
+
<Edit
|
|
39
|
+
id="my-map"
|
|
40
|
+
data={{
|
|
41
|
+
'@type': 'embed_maps',
|
|
42
|
+
with_notes: false,
|
|
43
|
+
with_sources: false,
|
|
44
|
+
with_more_info: true,
|
|
45
|
+
with_share: true,
|
|
46
|
+
with_enlarge: true,
|
|
47
|
+
url: '/path/to/map',
|
|
48
|
+
maps: {
|
|
49
|
+
'@id': '/path/to/map',
|
|
50
|
+
title: 'My map',
|
|
51
|
+
url:
|
|
52
|
+
'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3027.7835278268726!2d14.38842915203974!3d40.634655679238854!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x133b994881d943cb%3A0x6ab93db57d3272f0!2sHotel+Mediterraneo+Sorrento!5e0!3m2!1sen!2ses!4v1550168740166',
|
|
53
|
+
},
|
|
54
|
+
dataprotection: {
|
|
55
|
+
enabled: false,
|
|
56
|
+
},
|
|
57
|
+
useVisibilitySensor: false,
|
|
58
|
+
}}
|
|
59
|
+
pathname="/news"
|
|
60
|
+
selected={false}
|
|
61
|
+
block="1234"
|
|
62
|
+
index={1}
|
|
63
|
+
onChangeBlock={() => {}}
|
|
64
|
+
onSelectBlock={() => {}}
|
|
65
|
+
onDeleteBlock={() => {}}
|
|
66
|
+
onFocusPreviousBlock={() => {}}
|
|
67
|
+
onFocusNextBlock={() => {}}
|
|
68
|
+
handleKeyDown={() => {}}
|
|
69
|
+
content={{}}
|
|
70
|
+
/>
|
|
71
|
+
</Provider>,
|
|
72
|
+
);
|
|
73
|
+
const json = component.toJSON();
|
|
74
|
+
expect(json).toMatchSnapshot();
|
|
75
|
+
});
|