@plone/volto 16.0.0-alpha.17 → 16.0.0-alpha.18

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,19 @@
1
1
  # Change Log
2
2
 
3
+ ## 16.0.0-alpha.18 (2022-07-26)
4
+
5
+ ### Breaking
6
+
7
+ - Remove the `callout` button (the one with the megaphone icon) from the slate toolbar since it has the same styling as `blockquote`. If you need it anyway, you can bring it back in your addon. @sneridagh
8
+
9
+ ### Bugfix
10
+
11
+ - Fix edge cases in Cypress flaky tests when the Edit component was loaded without loading the type schema. @sneridagh & @davisagli
12
+
13
+ ### Internal
14
+
15
+ - Fix `defaultBlockType` entry in default config, set it to slate. @sneridagh
16
+
3
17
  ## 16.0.0-alpha.17 (2022-07-25)
4
18
 
5
19
  ### Bugfix
@@ -8,6 +22,11 @@
8
22
 
9
23
  ## 16.0.0-alpha.16 (2022-07-25)
10
24
 
25
+ ### Do not use, this is a brown bag release
26
+
27
+ See: https://github.com/plone/volto/pull/3505
28
+ Use next release instead: https://github.com/plone/volto/releases/tag/16.0.0-alpha.17
29
+
11
30
  ### Breaking
12
31
 
13
32
  - Staticize Poppins font to be compliant with EU privacy. Import from GoogleFont is disabled in site.variables. @giuliaghisini
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "16.0.0-alpha.17",
12
+ "version": "16.0.0-alpha.18",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -31,7 +31,6 @@ export default (config) => {
31
31
  'numbered-list',
32
32
  'bulleted-list',
33
33
  'blockquote',
34
- 'callout',
35
34
  ];
36
35
 
37
36
  config.addonReducers = {
@@ -154,6 +154,14 @@ class Edit extends Component {
154
154
  * @returns {undefined}
155
155
  */
156
156
  UNSAFE_componentWillReceiveProps(nextProps) {
157
+ if (this.props.getRequest.loading && nextProps.getRequest.loaded) {
158
+ if (nextProps.content['@type']) {
159
+ this.props.getSchema(
160
+ nextProps.content['@type'],
161
+ getBaseUrl(this.props.pathname),
162
+ );
163
+ }
164
+ }
157
165
  if (this.props.schemaRequest.loading && nextProps.schemaRequest.loaded) {
158
166
  if (!hasBlocksData(nextProps.schema.properties)) {
159
167
  this.setState({
@@ -418,11 +418,13 @@ class Form extends Component {
418
418
  event.preventDefault();
419
419
  }
420
420
 
421
- const errors = FormValidation.validateFieldsPerFieldset({
422
- schema: this.props.schema,
423
- formData: this.state.formData,
424
- formatMessage: this.props.intl.formatMessage,
425
- });
421
+ const errors = this.props.schema
422
+ ? FormValidation.validateFieldsPerFieldset({
423
+ schema: this.props.schema,
424
+ formData: this.state.formData,
425
+ formatMessage: this.props.intl.formatMessage,
426
+ })
427
+ : {};
426
428
 
427
429
  if (keys(errors).length > 0) {
428
430
  const activeIndex = FormValidation.showFirstTabWithErrors({
@@ -106,7 +106,7 @@ let config = {
106
106
  defaultLanguage: 'en',
107
107
  navDepth: 1,
108
108
  expressMiddleware: serverConfig.expressMiddleware, // BBB
109
- defaultBlockType: 'text',
109
+ defaultBlockType: 'slate',
110
110
  verticalFormTabs: false,
111
111
  useEmailAsLogin: false,
112
112
  persistentReducers: ['blocksClipboard'],