@eeacms/volto-cca-policy 0.3.63 → 0.3.65

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/locales/bg/LC_MESSAGES/volto.po +31 -39
  3. package/locales/cs/LC_MESSAGES/volto.po +31 -39
  4. package/locales/da/LC_MESSAGES/volto.po +31 -39
  5. package/locales/de/LC_MESSAGES/volto.po +31 -39
  6. package/locales/el/LC_MESSAGES/volto.po +31 -39
  7. package/locales/en/LC_MESSAGES/volto.po +31 -38
  8. package/locales/es/LC_MESSAGES/volto.po +31 -39
  9. package/locales/et/LC_MESSAGES/volto.po +31 -39
  10. package/locales/fi/LC_MESSAGES/volto.po +31 -39
  11. package/locales/fr/LC_MESSAGES/volto.po +31 -39
  12. package/locales/ga/LC_MESSAGES/volto.po +31 -39
  13. package/locales/hr/LC_MESSAGES/volto.po +31 -39
  14. package/locales/hu/LC_MESSAGES/volto.po +31 -39
  15. package/locales/is/LC_MESSAGES/volto.po +31 -39
  16. package/locales/it/LC_MESSAGES/volto.po +31 -39
  17. package/locales/lt/LC_MESSAGES/volto.po +31 -39
  18. package/locales/lv/LC_MESSAGES/volto.po +31 -39
  19. package/locales/mt/LC_MESSAGES/volto.po +31 -39
  20. package/locales/nl/LC_MESSAGES/volto.po +31 -39
  21. package/locales/nn/LC_MESSAGES/volto.po +31 -39
  22. package/locales/pl/LC_MESSAGES/volto.po +31 -39
  23. package/locales/pt/LC_MESSAGES/volto.po +31 -39
  24. package/locales/ro/LC_MESSAGES/volto.po +31 -39
  25. package/locales/sk/LC_MESSAGES/volto.po +31 -39
  26. package/locales/sl/LC_MESSAGES/volto.po +31 -39
  27. package/locales/sv/LC_MESSAGES/volto.po +31 -39
  28. package/locales/tr/LC_MESSAGES/volto.po +309 -351
  29. package/locales/volto.pot +22 -39
  30. package/package.json +2 -2
  31. package/src/components/manage/Blocks/CaseStudyExplorer/CaseStudyMap.test.jsx +6 -6
  32. package/src/components/manage/Blocks/CaseStudyExplorer/FeatureDisplay.test.jsx +2 -2
  33. package/src/components/manage/Blocks/FlourishEmbedBlock/FlourishEmbedBlockEdit.jsx +33 -0
  34. package/src/components/manage/Blocks/FlourishEmbedBlock/FlourishEmbedBlockView.jsx +40 -0
  35. package/src/components/manage/Blocks/FlourishEmbedBlock/index.js +22 -0
  36. package/src/components/manage/Blocks/FlourishEmbedBlock/schema.js +17 -0
  37. package/src/components/manage/Blocks/FlourishEmbedBlock/style.less +13 -0
  38. package/src/components/manage/Blocks/index.js +2 -0
  39. package/src/components/theme/Header/Header.jsx +45 -27
  40. package/src/components/theme/MissionSignatoryProfile/TabSections/PlanningTab.test.jsx +3 -2
  41. package/src/components/theme/PortalMessage/PortalMessage.jsx +6 -4
  42. package/src/components/theme/Views/DatabaseItemView.jsx +9 -37
  43. package/src/components/theme/Widgets/PromotionalImageWidget.test.jsx +1 -1
  44. package/src/customizations/volto/components/theme/View/DefaultView.jsx +5 -1
  45. package/src/helpers/flourishUtils.js +32 -0
  46. package/theme/extras/header.overrides +14 -0
@@ -0,0 +1,32 @@
1
+ export const getDataSrcFromEmbedCode = (htmlString) => {
2
+ if (typeof htmlString !== 'string') return null;
3
+ const regex = /data-src="([^"]*)"/;
4
+ const match = regex.exec(htmlString);
5
+ return match && match[1] ? match[1] : null;
6
+ };
7
+
8
+ export const buildFlourishUrl = (path) => {
9
+ if (!path) return null;
10
+ const [base, query] = path.split('?');
11
+ return query
12
+ ? `https://flo.uri.sh/${base}/embed?${query}`
13
+ : `https://flo.uri.sh/${base}/embed`;
14
+ };
15
+
16
+ export const flourishDataprotection = {
17
+ enabled: true,
18
+ privacy_cookie_key: 'flourish',
19
+ privacy_statement: [
20
+ {
21
+ children: [
22
+ {
23
+ text:
24
+ 'This map is hosted by a third party [Flourish]. ' +
25
+ 'By showing the external content you accept the terms ' +
26
+ 'and conditions of www.flourish.studio, including their cookie policy.',
27
+ },
28
+ ],
29
+ type: 'p',
30
+ },
31
+ ],
32
+ };
@@ -34,3 +34,17 @@
34
34
  cursor: auto !important;
35
35
  }
36
36
  }
37
+
38
+
39
+ .top-header-right-items {
40
+ display: flex;
41
+ gap: 1.5rem;
42
+
43
+ a,
44
+ a:active,
45
+ a:hover,
46
+ a:focus,
47
+ a:visited {
48
+ color: @dropdownColor;
49
+ }
50
+ }