@eeacms/volto-embed 4.0.1 → 4.0.2
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 +8 -0
- package/Jenkinsfile +3 -2
- package/cypress/support/index.js +1 -1
- package/cypress.json +6 -1
- package/package.json +1 -1
- package/src/Iframe/EditIframe.jsx +27 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,16 @@ 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
|
+
#### [4.0.2](https://github.com/eea/volto-embed/compare/4.0.1...4.0.2)
|
|
8
|
+
|
|
9
|
+
- Fix destructure of undefined [`a15b86f`](https://github.com/eea/volto-embed/commit/a15b86f71f4a5ccf3a37b7a8b98683d669c18d14)
|
|
10
|
+
- Backward compatibility [`68abd0e`](https://github.com/eea/volto-embed/commit/68abd0eea6635f104b4668edc1fba33a9322f71b)
|
|
11
|
+
|
|
7
12
|
#### [4.0.1](https://github.com/eea/volto-embed/compare/4.0.0...4.0.1)
|
|
8
13
|
|
|
14
|
+
> 29 April 2022
|
|
15
|
+
|
|
16
|
+
- Release: fix and use `getfilteredUrl` method from datablocks [`#23`](https://github.com/eea/volto-embed/pull/23)
|
|
9
17
|
- dedupe getFiltered method, use from datablocks [`7f7b1b5`](https://github.com/eea/volto-embed/commit/7f7b1b51b280edc856e19d6b02a37f3f8894bd04)
|
|
10
18
|
- fix regex [`1dc059f`](https://github.com/eea/volto-embed/commit/1dc059fa58f7a1789e4b570d1631226b404fa805)
|
|
11
19
|
- early return [`467e6fc`](https://github.com/eea/volto-embed/commit/467e6fc2c053d2e17526ad6fb4cbf34c2bb8abe1)
|
package/Jenkinsfile
CHANGED
|
@@ -6,6 +6,7 @@ pipeline {
|
|
|
6
6
|
NAMESPACE = "@eeacms"
|
|
7
7
|
SONARQUBE_TAGS = "volto.eea.europa.eu,climate-energy.eea.europa.eu,forest.eea.europa.eu,water.europa.eu-freshwater"
|
|
8
8
|
DEPENDENCIES = "volto-slate"
|
|
9
|
+
VOLTO = "alpha"
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
stages {
|
|
@@ -124,8 +125,8 @@ pipeline {
|
|
|
124
125
|
node(label: 'docker') {
|
|
125
126
|
script {
|
|
126
127
|
try {
|
|
127
|
-
sh '''docker pull plone; docker run -d --rm --name="$BUILD_TAG-plone" -e SITE="Plone" -e PROFILES="
|
|
128
|
-
sh '''docker pull plone/volto-addon-ci; docker run -i --name="$BUILD_TAG-cypress" --link $BUILD_TAG-plone:plone -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e DEPENDENCIES="$DEPENDENCIES" plone/volto-addon-ci cypress'''
|
|
128
|
+
sh '''docker pull eeacms/plone-backend; docker run -d --rm --name="$BUILD_TAG-plone" -e SITE="Plone" -e PROFILES="eea.kitkat:testing" eeacms/plone-backend'''
|
|
129
|
+
sh '''docker pull plone/volto-addon-ci; docker run -i --name="$BUILD_TAG-cypress" --link $BUILD_TAG-plone:plone -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e DEPENDENCIES="$DEPENDENCIES" -e NODE_ENV=development -e VOLTO="$VOLTO" plone/volto-addon-ci cypress'''
|
|
129
130
|
} finally {
|
|
130
131
|
try {
|
|
131
132
|
sh '''rm -rf cypress-reports cypress-results cypress-coverage'''
|
package/cypress/support/index.js
CHANGED
package/cypress.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"baseUrl": "http://localhost:3000",
|
|
3
3
|
"viewportWidth": 1280,
|
|
4
|
-
"defaultCommandTimeout":
|
|
4
|
+
"defaultCommandTimeout": 8888,
|
|
5
5
|
"reporter": "junit",
|
|
6
6
|
"video": true,
|
|
7
7
|
"reporterOptions": {
|
|
8
8
|
"mochaFile": "cypress/reports/cypress-[hash].xml",
|
|
9
9
|
"jenkinsMode": true,
|
|
10
10
|
"toConsole": true
|
|
11
|
+
},
|
|
12
|
+
"chromeWebSecurity": false,
|
|
13
|
+
"retries": {
|
|
14
|
+
"runMode": 8,
|
|
15
|
+
"openMode": 0
|
|
11
16
|
}
|
|
12
17
|
}
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
|
+
import { isString } from 'lodash';
|
|
7
8
|
import PropTypes from 'prop-types';
|
|
8
9
|
import { Button, Input, Message } from 'semantic-ui-react';
|
|
9
10
|
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl';
|
|
@@ -87,6 +88,32 @@ class Edit extends Component {
|
|
|
87
88
|
this.onKeyDownVariantMenuForm = this.onKeyDownVariantMenuForm.bind(this);
|
|
88
89
|
}
|
|
89
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Backward compatibility
|
|
93
|
+
* @method componentDidMount
|
|
94
|
+
* @returns {undefined}
|
|
95
|
+
*/
|
|
96
|
+
componentDidMount() {
|
|
97
|
+
const { privacy_statement } = this.props.data.dataprotection || {};
|
|
98
|
+
if (isString(privacy_statement)) {
|
|
99
|
+
this.props.onChangeBlock(this.props.block, {
|
|
100
|
+
...this.props.data,
|
|
101
|
+
dataprotection: {
|
|
102
|
+
...(this.props.data.dataprotection || {}),
|
|
103
|
+
privacy_statement: [
|
|
104
|
+
{
|
|
105
|
+
children: [
|
|
106
|
+
{
|
|
107
|
+
text: privacy_statement,
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
90
117
|
/**
|
|
91
118
|
* Change url handler
|
|
92
119
|
* @method onChangeUrl
|