@plone/volto 14.7.0 → 14.7.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
@@ -1,5 +1,16 @@
1
1
  # Change Log
2
2
 
3
+ ## 14.7.1 (2022-02-02)
4
+
5
+ ### Internal
6
+
7
+ - Add CSS body class in Babel view. Improve marker for language independent fields in Babel view too. @sneridagh
8
+
9
+ ### Docs
10
+
11
+ Update documentation for internal proxy & other smaller reorganisation for quicker onboarding of
12
+ new users/evaluators. @fredvd
13
+
3
14
  ## 14.7.0 (2022-01-28)
4
15
 
5
16
  ### Feature
package/cypress.json CHANGED
@@ -3,5 +3,6 @@
3
3
  "viewportWidth": 1280,
4
4
  "ignoreTestFiles": ["*~"],
5
5
  "integrationFolder": "cypress/tests/core",
6
- "chromeWebSecurity": false
6
+ "chromeWebSecurity": false,
7
+ "projectId": "5iy5e2"
7
8
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "14.7.0",
12
+ "version": "14.7.1",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
package/pyvenv.cfg ADDED
@@ -0,0 +1,3 @@
1
+ home = /opt/homebrew/Cellar/python@3.8/3.8.12_1/bin
2
+ include-system-site-packages = false
3
+ version = 3.8.12
@@ -5,7 +5,7 @@
5
5
 
6
6
  import React, { Component } from 'react';
7
7
  import PropTypes from 'prop-types';
8
- import { Helmet } from '@plone/volto/helpers';
8
+ import { BodyClass, Helmet } from '@plone/volto/helpers';
9
9
  import { connect } from 'react-redux';
10
10
  import { compose } from 'redux';
11
11
  import { keys, isEmpty } from 'lodash';
@@ -400,41 +400,44 @@ class Add extends Component {
400
400
  );
401
401
 
402
402
  return translationObject ? (
403
- <Grid
404
- celled="internally"
405
- stackable
406
- columns={2}
407
- id="page-add-translation"
408
- >
409
- <Grid.Column className="source-object">
410
- <TranslationObject
411
- translationObject={translationObject}
412
- schema={this.props.schema}
413
- pathname={this.props.pathname}
414
- visual={visual}
415
- isFormSelected={
416
- this.state.formSelected === 'translationObjectForm'
417
- }
418
- onSelectForm={() => {
419
- this.setState({
420
- formSelected: 'translationObjectForm',
421
- });
422
- }}
423
- />
424
- </Grid.Column>
425
- <Grid.Column>
426
- <div className="new-translation">
427
- <Menu pointing secondary attached tabular>
428
- <Menu.Item name={translateTo.toUpperCase()} active={true}>
429
- {`${this.props.intl.formatMessage(messages.translateTo, {
430
- lang: translateTo,
431
- })}`}
432
- </Menu.Item>
433
- </Menu>
434
- {pageAdd}
435
- </div>
436
- </Grid.Column>
437
- </Grid>
403
+ <>
404
+ <BodyClass className="babel-view" />
405
+ <Grid
406
+ celled="internally"
407
+ stackable
408
+ columns={2}
409
+ id="page-add-translation"
410
+ >
411
+ <Grid.Column className="source-object">
412
+ <TranslationObject
413
+ translationObject={translationObject}
414
+ schema={this.props.schema}
415
+ pathname={this.props.pathname}
416
+ visual={visual}
417
+ isFormSelected={
418
+ this.state.formSelected === 'translationObjectForm'
419
+ }
420
+ onSelectForm={() => {
421
+ this.setState({
422
+ formSelected: 'translationObjectForm',
423
+ });
424
+ }}
425
+ />
426
+ </Grid.Column>
427
+ <Grid.Column>
428
+ <div className="new-translation">
429
+ <Menu pointing secondary attached tabular>
430
+ <Menu.Item name={translateTo.toUpperCase()} active={true}>
431
+ {`${this.props.intl.formatMessage(messages.translateTo, {
432
+ lang: translateTo,
433
+ })}`}
434
+ </Menu.Item>
435
+ </Menu>
436
+ {pageAdd}
437
+ </div>
438
+ </Grid.Column>
439
+ </Grid>
440
+ </>
438
441
  ) : (
439
442
  pageAdd
440
443
  );
@@ -138,7 +138,8 @@
138
138
 
139
139
  // Fake "disabled" field for language independent fields
140
140
  // Only on Add form
141
- #page-add-translation #page-add .language-independent-field {
141
+ body.babel-view #page-add-translation #page-add .language-independent-field,
142
+ body.babel-view .field .language-independent-field {
142
143
  pointer-events: none;
143
144
 
144
145
  input,