@eeacms/volto-cca-policy 0.3.69 → 0.3.71
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 +63 -11
- package/package.json +4 -3
- package/src/components/manage/Blocks/DataConnectedEmbedBlock/DataConnectedEmbedBlockView.jsx +23 -0
- package/src/components/manage/Blocks/DataConnectedEmbedBlock/index.js +15 -0
- package/src/components/manage/Blocks/DataConnectedEmbedBlock/schema.js +9 -0
- package/src/components/manage/Blocks/index.js +2 -0
- package/src/components/theme/Widgets/GeocharsWidget.jsx +4 -4
- package/src/schema-utils.js +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,15 +4,17 @@ 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
|
-
### [0.3.
|
|
7
|
+
### [0.3.71](https://github.com/eea/volto-cca-policy/compare/1.0.0-alpha.0...0.3.71) - 21 July 2025
|
|
8
8
|
|
|
9
9
|
#### :rocket: Dependency updates
|
|
10
10
|
|
|
11
|
+
- Release @eeacms/volto-searchlib@2.1.2 [EEA Jenkins - [`3f0947a`](https://github.com/eea/volto-cca-policy/commit/3f0947a0b5ab6ee774bff8681f5034180499b1ab)]
|
|
11
12
|
- Release @eeacms/volto-searchlib@2.1.1 [EEA Jenkins - [`a625e3d`](https://github.com/eea/volto-cca-policy/commit/a625e3d4cf3de11644db824b8ddf46fcd56ea7e9)]
|
|
12
13
|
- Release @eeacms/volto-searchlib@2.1.0 [EEA Jenkins - [`e5fc813`](https://github.com/eea/volto-cca-policy/commit/e5fc813f97922df335be28673d6303cb81b3c888)]
|
|
13
14
|
|
|
14
15
|
#### :bug: Bug Fixes
|
|
15
16
|
|
|
17
|
+
- fix: prevent Dropdown error when value is null [kreafox - [`6a34c03`](https://github.com/eea/volto-cca-policy/commit/6a34c03d90afe141f6c9ac62a8588585b376f968)]
|
|
16
18
|
- fix: CMSare video URL with query string - #refs 290068 [kreafox - [`d637581`](https://github.com/eea/volto-cca-policy/commit/d637581b12b70f1438576d800d9a7d710c734c11)]
|
|
17
19
|
- fix: remove unused import [kreafox - [`72e419d`](https://github.com/eea/volto-cca-policy/commit/72e419d8d46a05c1fc2c2314f625bf9c4a08a64d)]
|
|
18
20
|
- fix: eslint [kreafox - [`7887ef4`](https://github.com/eea/volto-cca-policy/commit/7887ef453f9099f1606a54b2ae06bfcad03ca5f8)]
|
|
@@ -27,11 +29,16 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
27
29
|
|
|
28
30
|
#### :house: Internal changes
|
|
29
31
|
|
|
32
|
+
- style: Automated code fix [eea-jenkins - [`5774f11`](https://github.com/eea/volto-cca-policy/commit/5774f11b505788e71d0810555e28f306f4170ea4)]
|
|
30
33
|
- style: Automated code fix [eea-jenkins - [`88386b8`](https://github.com/eea/volto-cca-policy/commit/88386b8d31edcf5aec1b2591840af3d5a6f0357a)]
|
|
31
34
|
- style: Automated code fix [eea-jenkins - [`4c5b5f3`](https://github.com/eea/volto-cca-policy/commit/4c5b5f3f4e0474a7fc2ba1f634229f8fc99c3fb0)]
|
|
32
35
|
|
|
33
36
|
#### :hammer_and_wrench: Others
|
|
34
37
|
|
|
38
|
+
- Bump version for volto-datablocks [Tiberiu Ichim - [`e6267e0`](https://github.com/eea/volto-cca-policy/commit/e6267e03882362471e60ad150df49c5c2843884e)]
|
|
39
|
+
- No console.log [Tiberiu Ichim - [`fef7eea`](https://github.com/eea/volto-cca-policy/commit/fef7eea74480a455ccbd04f8dc39170ca538cb17)]
|
|
40
|
+
- No need for schema enhancer [Tiberiu Ichim - [`ec71401`](https://github.com/eea/volto-cca-policy/commit/ec7140102081db6bf86940ff7f06c8ff7233565f)]
|
|
41
|
+
- Add extension for DataConnectedEmbed [Tiberiu Ichim - [`2a14949`](https://github.com/eea/volto-cca-policy/commit/2a149490e2ad001a3efc4106de6207c508762675)]
|
|
35
42
|
- test: fix security hotspots on sonarqube - refs #289841 [kreafox - [`ed2ae6f`](https://github.com/eea/volto-cca-policy/commit/ed2ae6f3d41062740df5dd31c749b25316321776)]
|
|
36
43
|
- Undo [Tiberiu Ichim - [`d90fe59`](https://github.com/eea/volto-cca-policy/commit/d90fe596d97753a63796feaa42451b010cd80aec)]
|
|
37
44
|
- Depend on latest volto-matomo [Tiberiu Ichim - [`2ec3d30`](https://github.com/eea/volto-cca-policy/commit/2ec3d3099a8ba0f6823125209439631a2db18bac)]
|
|
@@ -44,7 +51,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
44
51
|
- Add some loadable for components [Tiberiu Ichim - [`1793962`](https://github.com/eea/volto-cca-policy/commit/179396211c66a6a2465b2d1b6c0f2afc40fc7189)]
|
|
45
52
|
- Refs #284961 - test [Tripon Eugen - [`c989f1f`](https://github.com/eea/volto-cca-policy/commit/c989f1f8638c0c5233c5c49f8673c9a2cdc7937e)]
|
|
46
53
|
- Refs #284961 - add translations [Tripon Eugen - [`04ee988`](https://github.com/eea/volto-cca-policy/commit/04ee988c086d393b9b37ce1ea8d24f5e84f266aa)]
|
|
47
|
-
### [1.0.0-alpha.0](https://github.com/eea/volto-cca-policy/compare/0.3.
|
|
54
|
+
### [1.0.0-alpha.0](https://github.com/eea/volto-cca-policy/compare/0.3.70...1.0.0-alpha.0) - 15 July 2025
|
|
48
55
|
|
|
49
56
|
#### :bug: Bug Fixes
|
|
50
57
|
|
|
@@ -65,7 +72,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
65
72
|
|
|
66
73
|
- chore: code cleanup [kreafox - [`842419b`](https://github.com/eea/volto-cca-policy/commit/842419b1bce3dc624755c81c9dea672198cab9e2)]
|
|
67
74
|
- style: update teaser block styling [kreafox - [`1e0cad8`](https://github.com/eea/volto-cca-policy/commit/1e0cad8e1ed3ae827ee868dce8ad50b292a937ba)]
|
|
68
|
-
- chore: update Makefile, run yarn i18n [kreafox - [`61e6962`](https://github.com/eea/volto-cca-policy/commit/61e6962901068ae6512265417a730bd9befd65fe)]
|
|
69
75
|
- chore: move styling to theme folder [kreafox - [`8cf6a1b`](https://github.com/eea/volto-cca-policy/commit/8cf6a1b8b14abf472a9c61b28db574f6d9e0bd3b)]
|
|
70
76
|
- chore: remove ArrayWidget customization [kreafox - [`249bf93`](https://github.com/eea/volto-cca-policy/commit/249bf93054f7726c3d57a8b8ca01b75cd0d30522)]
|
|
71
77
|
- chore: remove Footer customization [kreafox - [`7038af3`](https://github.com/eea/volto-cca-policy/commit/7038af37d48a328dfc31746f3fa84973e2f840ab)]
|
|
@@ -87,6 +93,60 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
87
93
|
- test: Update to volto 17 PR30 [valentinab25 - [`ed03286`](https://github.com/eea/volto-cca-policy/commit/ed032865efa051d6353844737616019b202ea562)]
|
|
88
94
|
- test: update snapshots [ana-oprea - [`94608ad`](https://github.com/eea/volto-cca-policy/commit/94608adc1b3b3655c7ecd5c39dde1f0fcd4b41e9)]
|
|
89
95
|
- test: Update to volto 17 PR30 [valentinab25 - [`2e81033`](https://github.com/eea/volto-cca-policy/commit/2e810334e08366ca77ba62383c064770dde643a1)]
|
|
96
|
+
### [0.3.70](https://github.com/eea/volto-cca-policy/compare/0.3.69...0.3.70) - 18 July 2025
|
|
97
|
+
|
|
98
|
+
#### :house: Internal changes
|
|
99
|
+
|
|
100
|
+
- style: Automated code fix [eea-jenkins - [`5774f11`](https://github.com/eea/volto-cca-policy/commit/5774f11b505788e71d0810555e28f306f4170ea4)]
|
|
101
|
+
|
|
102
|
+
#### :hammer_and_wrench: Others
|
|
103
|
+
|
|
104
|
+
- Bump version for volto-datablocks [Tiberiu Ichim - [`e6267e0`](https://github.com/eea/volto-cca-policy/commit/e6267e03882362471e60ad150df49c5c2843884e)]
|
|
105
|
+
- No console.log [Tiberiu Ichim - [`fef7eea`](https://github.com/eea/volto-cca-policy/commit/fef7eea74480a455ccbd04f8dc39170ca538cb17)]
|
|
106
|
+
- No need for schema enhancer [Tiberiu Ichim - [`ec71401`](https://github.com/eea/volto-cca-policy/commit/ec7140102081db6bf86940ff7f06c8ff7233565f)]
|
|
107
|
+
- Add extension for DataConnectedEmbed [Tiberiu Ichim - [`2a14949`](https://github.com/eea/volto-cca-policy/commit/2a149490e2ad001a3efc4106de6207c508762675)]
|
|
108
|
+
### [0.3.69](https://github.com/eea/volto-cca-policy/compare/0.3.69-alpha.4...0.3.69) - 17 July 2025
|
|
109
|
+
|
|
110
|
+
### [0.3.69-alpha.4](https://github.com/eea/volto-cca-policy/compare/0.3.69-alpha.3...0.3.69-alpha.4) - 21 July 2025
|
|
111
|
+
|
|
112
|
+
#### :hammer_and_wrench: Others
|
|
113
|
+
|
|
114
|
+
- Refs #289437 - no data Switzerland message [Tripon Eugen - [`b7d6251`](https://github.com/eea/volto-cca-policy/commit/b7d6251dfe136c1631ff112ecccfa8e5eda74101)]
|
|
115
|
+
### [0.3.69-alpha.3](https://github.com/eea/volto-cca-policy/compare/0.3.69-alpha.2...0.3.69-alpha.3) - 21 July 2025
|
|
116
|
+
|
|
117
|
+
#### :hammer_and_wrench: Others
|
|
118
|
+
|
|
119
|
+
- Refs #289437 - update legend map [Tripon Eugen - [`80f8f9b`](https://github.com/eea/volto-cca-policy/commit/80f8f9bbc590fc0c10c65514bdba0c67db6de441)]
|
|
120
|
+
- Refs #289437 - update label for some countries [Tripon Eugen - [`1be52e3`](https://github.com/eea/volto-cca-policy/commit/1be52e3f388e2378b9dfec8496eb083fb7d589c9)]
|
|
121
|
+
### [0.3.69-alpha.2](https://github.com/eea/volto-cca-policy/compare/0.3.69-alpha.1...0.3.69-alpha.2) - 21 July 2025
|
|
122
|
+
|
|
123
|
+
#### :hammer_and_wrench: Others
|
|
124
|
+
|
|
125
|
+
- Refs #289437 - update map colors [Tripon Eugen - [`47f3112`](https://github.com/eea/volto-cca-policy/commit/47f3112038f89945741abbb4fafde13d150af79c)]
|
|
126
|
+
### [0.3.69-alpha.1](https://github.com/eea/volto-cca-policy/compare/0.3.69-alpha.0...0.3.69-alpha.1) - 18 July 2025
|
|
127
|
+
|
|
128
|
+
#### :hammer_and_wrench: Others
|
|
129
|
+
|
|
130
|
+
- Refs #289437 - blue map updates [Tripon Eugen - [`a734405`](https://github.com/eea/volto-cca-policy/commit/a734405cc3907b7fdcdc169421713c3b61405641)]
|
|
131
|
+
- Refs #289437 - blue map update data link no profiles [Tripon Eugen - [`5df8797`](https://github.com/eea/volto-cca-policy/commit/5df8797b8b600850516e0f6ce480b052c1e35bdd)]
|
|
132
|
+
- Refs #289437 - blue map update [Tripon Eugen - [`36de33e`](https://github.com/eea/volto-cca-policy/commit/36de33e41e4d862d201db7cf470d902c67560f71)]
|
|
133
|
+
### [0.3.69-alpha.0](https://github.com/eea/volto-cca-policy/compare/0.3.68...0.3.69-alpha.0) - 18 July 2025
|
|
134
|
+
|
|
135
|
+
#### :bug: Bug Fixes
|
|
136
|
+
|
|
137
|
+
- fix: CMSare video URL with query string - #refs 290068 [kreafox - [`d637581`](https://github.com/eea/volto-cca-policy/commit/d637581b12b70f1438576d800d9a7d710c734c11)]
|
|
138
|
+
|
|
139
|
+
#### :house: Internal changes
|
|
140
|
+
|
|
141
|
+
- style: Automated code fix [eea-jenkins - [`1f11a31`](https://github.com/eea/volto-cca-policy/commit/1f11a31a8ccf6fd74840f3d205992068c7427512)]
|
|
142
|
+
|
|
143
|
+
#### :hammer_and_wrench: Others
|
|
144
|
+
|
|
145
|
+
- Refs #289562 - blue country map change projection [Tripon Eugen - [`8979a20`](https://github.com/eea/volto-cca-policy/commit/8979a20f91a160d5f70f747aa01d0e04a6d6a30d)]
|
|
146
|
+
- Refs #289437 - country map profile label translation [Tripon Eugen - [`59bc0c7`](https://github.com/eea/volto-cca-policy/commit/59bc0c7135290cd4edb7faa53dee8a5e31376c57)]
|
|
147
|
+
- Refs #289437 - Filter test update after remove filters [Tripon Eugen - [`bd6a0c3`](https://github.com/eea/volto-cca-policy/commit/bd6a0c3d6fe4568072cdc741410ab5c19da7433f)]
|
|
148
|
+
- Refs #289437 - eslint, center and zoom map [Tripon Eugen - [`4c1bd3e`](https://github.com/eea/volto-cca-policy/commit/4c1bd3e10b151cb935b10fa136006056c61d28c4)]
|
|
149
|
+
- Refs #289437 - update map colorse and labels [Tripon Eugen - [`6577fc6`](https://github.com/eea/volto-cca-policy/commit/6577fc640755e394d696932413ddd10b541d193e)]
|
|
90
150
|
### [0.3.68](https://github.com/eea/volto-cca-policy/compare/0.3.67...0.3.68) - 17 July 2025
|
|
91
151
|
|
|
92
152
|
#### :rocket: Dependency updates
|
|
@@ -2705,13 +2765,10 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2705
2765
|
- Refs #260715 rast-block wip [Tripon Eugen - [`f19d54e`](https://github.com/eea/volto-cca-policy/commit/f19d54e0b9a6a86bf344eb85b6a1cda7f3de91bf)]
|
|
2706
2766
|
- Refs #260715 rast-block wip [Tripon Eugen - [`2828537`](https://github.com/eea/volto-cca-policy/commit/2828537b6c084cd1a82162d552fb4ef025b71f9f)]
|
|
2707
2767
|
- Refs #260715 rast-block updates [Tripon Eugen - [`1e803e5`](https://github.com/eea/volto-cca-policy/commit/1e803e5bd3d3fb7558f261c76c68866be7beb8b5)]
|
|
2708
|
-
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0a15e1b`](https://github.com/eea/volto-cca-policy/commit/0a15e1b2ad081233685e80d5b3c60a8663f6b896)]
|
|
2709
|
-
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9554e44`](https://github.com/eea/volto-cca-policy/commit/9554e44c92a621a52b2adb5a4830fb084ee5734b)]
|
|
2710
2768
|
### [0.1.49](https://github.com/eea/volto-cca-policy/compare/0.1.48...0.1.49) - 15 November 2023
|
|
2711
2769
|
|
|
2712
2770
|
#### :house: Internal changes
|
|
2713
2771
|
|
|
2714
|
-
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`7b820a6`](https://github.com/eea/volto-cca-policy/commit/7b820a6369c2ddd5203b1a4abe352cb4bb43db7a)]
|
|
2715
2772
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`f0a8061`](https://github.com/eea/volto-cca-policy/commit/f0a8061c275c236deb00087c23fac9860a073106)]
|
|
2716
2773
|
|
|
2717
2774
|
#### :hammer_and_wrench: Others
|
|
@@ -2728,9 +2785,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2728
2785
|
- Refs #259267 - jenkins test [Tripon Eugen - [`cacd31e`](https://github.com/eea/volto-cca-policy/commit/cacd31e7b1afe0983674ed5c7632d2e1d7fa752e)]
|
|
2729
2786
|
- Refs #259267 - jenkins [Tripon Eugen - [`5b3affe`](https://github.com/eea/volto-cca-policy/commit/5b3affee8401239de10097884c1b7f2349d15ec0)]
|
|
2730
2787
|
- Refs #259267 - add When, lead image and title to files [Tripon Eugen - [`2cedb23`](https://github.com/eea/volto-cca-policy/commit/2cedb237f898af9057e13fba94b615ef71077204)]
|
|
2731
|
-
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4d607a5`](https://github.com/eea/volto-cca-policy/commit/4d607a576e9d0a5c34e48c41b409e7df616ee3d6)]
|
|
2732
|
-
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`b7f74d5`](https://github.com/eea/volto-cca-policy/commit/b7f74d53513a6edbfbca5cb6d19687929bb1e5db)]
|
|
2733
|
-
- test: [JENKINS] Improve cypress time [valentinab25 - [`db65617`](https://github.com/eea/volto-cca-policy/commit/db656173391f65157098d95d388c25f6429753d8)]
|
|
2734
2788
|
- Refs #259267 - cca event blocks attachments and check not mandatoty fields [Tripon Eugen - [`3138e5a`](https://github.com/eea/volto-cca-policy/commit/3138e5afb5bfbdbed14e27ed457b16867b7fa414)]
|
|
2735
2789
|
- Refs #256681 - Fix error in CCA Event view menu. ([React Intl] An id must be provided to format a message.) [GhitaB - [`517eeb8`](https://github.com/eea/volto-cca-policy/commit/517eeb817264a47bbfd6b9b7d22aaf22d44ed224)]
|
|
2736
2790
|
- Refs #161485 - Fix ECDE name conflict. [GhitaB - [`8bfd99f`](https://github.com/eea/volto-cca-policy/commit/8bfd99ff68bb82a04d1c0ed625fa514fcf46289e)]
|
|
@@ -2947,7 +3001,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2947
3001
|
|
|
2948
3002
|
#### :house: Internal changes
|
|
2949
3003
|
|
|
2950
|
-
- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
|
|
2951
3004
|
|
|
2952
3005
|
#### :hammer_and_wrench: Others
|
|
2953
3006
|
|
|
@@ -3428,7 +3481,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
3428
3481
|
#### :hammer_and_wrench: Others
|
|
3429
3482
|
|
|
3430
3483
|
- Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
|
|
3431
|
-
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
|
|
3432
3484
|
### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
|
|
3433
3485
|
|
|
3434
3486
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-cca-policy",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.71",
|
|
4
4
|
"description": "@eeacms/volto-cca-policy: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -23,19 +23,20 @@
|
|
|
23
23
|
"@eeacms/volto-eea-design-system",
|
|
24
24
|
"@eeacms/volto-eea-website-theme",
|
|
25
25
|
"@eeacms/volto-tabs-block",
|
|
26
|
+
"@eeacms/volto-datablocks",
|
|
26
27
|
"@eeacms/volto-embed",
|
|
27
28
|
"@eeacms/volto-globalsearch"
|
|
28
29
|
],
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"@eeacms/volto-block-style": "github:eea/volto-block-style#6.x.x",
|
|
31
|
-
"@eeacms/volto-datablocks": "^7.2
|
|
32
|
+
"@eeacms/volto-datablocks": "^7.3.2",
|
|
32
33
|
"@eeacms/volto-eea-design-system": "<=1.36.3",
|
|
33
34
|
"@eeacms/volto-eea-website-theme": "^1.35.0",
|
|
34
35
|
"@eeacms/volto-embed": "^9.1.1",
|
|
35
36
|
"@eeacms/volto-globalsearch": "2.1.2",
|
|
36
37
|
"@eeacms/volto-hero-block": "^7.1.0",
|
|
37
38
|
"@eeacms/volto-openlayers-map": "1.0.1",
|
|
38
|
-
"@eeacms/volto-searchlib": "2.1.
|
|
39
|
+
"@eeacms/volto-searchlib": "2.1.2",
|
|
39
40
|
"@eeacms/volto-slate-label": "^0.6.0",
|
|
40
41
|
"@eeacms/volto-tabs-block": "^7.5.1",
|
|
41
42
|
"@elastic/search-ui": "1.21.2",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { injectIntl } from 'react-intl';
|
|
2
|
+
import { ViewEmbedBlock } from '@eeacms/volto-datablocks/components/manage/Blocks/DataConnectedEmbedBlock/View';
|
|
3
|
+
import { connect } from 'react-redux';
|
|
4
|
+
import { getConnectedDataParametersForContext } from '@eeacms/volto-datablocks/helpers';
|
|
5
|
+
|
|
6
|
+
const ConnectedEmbedBlockView = connect((state, props) => {
|
|
7
|
+
const pathname = state.router?.location?.pathname;
|
|
8
|
+
const lang = (pathname || '').split('/')[1];
|
|
9
|
+
const data_params = {
|
|
10
|
+
...state?.connected_data_parameters,
|
|
11
|
+
byContextPath: {
|
|
12
|
+
...state?.connected_data_parameters?.byContextPath,
|
|
13
|
+
[pathname]: [{ i: 'lang', v: [lang] }],
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const params = getConnectedDataParametersForContext(data_params, pathname);
|
|
18
|
+
return {
|
|
19
|
+
connected_data_parameters: params,
|
|
20
|
+
};
|
|
21
|
+
}, {})(injectIntl(ViewEmbedBlock));
|
|
22
|
+
|
|
23
|
+
export default ConnectedEmbedBlockView;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { composeSchema } from '@eeacms/volto-cca-policy/schema-utils';
|
|
2
|
+
// import { addLanguageParamField } from './schema';
|
|
3
|
+
import DataConnectedEmbedBlockView from './DataConnectedEmbedBlockView';
|
|
4
|
+
|
|
5
|
+
export default function applyConfig(config) {
|
|
6
|
+
const { data_connected_embed } = config.blocks.blocksConfig;
|
|
7
|
+
|
|
8
|
+
data_connected_embed.schemaEnhancer = composeSchema(
|
|
9
|
+
// addLanguageParamField,
|
|
10
|
+
data_connected_embed.schemaEnhancer,
|
|
11
|
+
);
|
|
12
|
+
data_connected_embed.view = DataConnectedEmbedBlockView;
|
|
13
|
+
|
|
14
|
+
return config;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function addLanguageParamField({ schema, intl }) {
|
|
2
|
+
schema.fieldsets[0].fields.push('languageParam');
|
|
3
|
+
schema.properties.languageParam = {
|
|
4
|
+
title: 'Language parameter',
|
|
5
|
+
description:
|
|
6
|
+
'The name of the URL search parameter that will be added to the URL. The embedded URL should support ',
|
|
7
|
+
};
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
@@ -20,6 +20,7 @@ import installRedirectBlock from './RedirectBlock';
|
|
|
20
20
|
import installContentLinks from './ContentLinks';
|
|
21
21
|
import installASTNavigation from './ASTNavigation';
|
|
22
22
|
import installFlourishEmbedBlock from './FlourishEmbedBlock';
|
|
23
|
+
import installDataConnectedEmbed from './DataConnectedEmbedBlock';
|
|
23
24
|
|
|
24
25
|
// import installMKHMap from './MKHMap';
|
|
25
26
|
// import installCountryMapHeatIndex from './CountryMapHeatIndex';
|
|
@@ -54,6 +55,7 @@ export default function installBlocks(config) {
|
|
|
54
55
|
installASTNavigation,
|
|
55
56
|
installCountryMapProfile,
|
|
56
57
|
installFlourishEmbedBlock,
|
|
58
|
+
installDataConnectedEmbed,
|
|
57
59
|
// installMKHMap,
|
|
58
60
|
// installCountryMapHeatIndex,
|
|
59
61
|
)(config);
|
|
@@ -46,7 +46,7 @@ const SelectSubRegions = (props) => {
|
|
|
46
46
|
multiple
|
|
47
47
|
selection
|
|
48
48
|
options={availableRegions}
|
|
49
|
-
value={regions}
|
|
49
|
+
value={regions || []}
|
|
50
50
|
onChange={handleSelect}
|
|
51
51
|
/>
|
|
52
52
|
</div>
|
|
@@ -74,7 +74,7 @@ const SelectMacroRegions = (props) => {
|
|
|
74
74
|
multiple
|
|
75
75
|
selection
|
|
76
76
|
options={WIDGET_MACRO_TRANS_REGIONS}
|
|
77
|
-
value={regions}
|
|
77
|
+
value={regions || []}
|
|
78
78
|
onChange={handleSelect}
|
|
79
79
|
/>
|
|
80
80
|
</div>
|
|
@@ -92,7 +92,7 @@ const SelectBioRegions = (props) => {
|
|
|
92
92
|
multiple
|
|
93
93
|
selection
|
|
94
94
|
options={WIDGET_BIOGEOGRAPHICAL_REGIONS}
|
|
95
|
-
value={regions}
|
|
95
|
+
value={regions || []}
|
|
96
96
|
onChange={handleSelect}
|
|
97
97
|
/>
|
|
98
98
|
</div>
|
|
@@ -147,7 +147,7 @@ const GeocharsWidget = (props) => {
|
|
|
147
147
|
if (value !== null) {
|
|
148
148
|
geoElements = JSON.parse(value).geoElements;
|
|
149
149
|
} else {
|
|
150
|
-
geoElements = DEFAULT_GEOCHARS;
|
|
150
|
+
geoElements = DEFAULT_GEOCHARS.geoElements;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
const element = geoElements.element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function composeSchema() {
|
|
2
|
+
const enhancers = Array.from(arguments);
|
|
3
|
+
const composer = (args) => {
|
|
4
|
+
const props = enhancers.reduce(
|
|
5
|
+
(acc, enhancer) => (enhancer ? { ...acc, schema: enhancer(acc) } : acc),
|
|
6
|
+
{ ...args },
|
|
7
|
+
);
|
|
8
|
+
return props.schema;
|
|
9
|
+
};
|
|
10
|
+
return composer;
|
|
11
|
+
}
|