@plone/volto 16.0.0-alpha.20 → 16.0.0-alpha.21
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.
|
@@ -12,21 +12,10 @@ jobs:
|
|
|
12
12
|
|
|
13
13
|
# node setup
|
|
14
14
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
15
|
-
uses: actions/setup-node@
|
|
15
|
+
uses: actions/setup-node@v3
|
|
16
16
|
with:
|
|
17
17
|
node-version: ${{ matrix.node-version }}
|
|
18
|
-
|
|
19
|
-
# node cache
|
|
20
|
-
- name: Get yarn cache directory path
|
|
21
|
-
id: yarn-cache-dir-path
|
|
22
|
-
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
23
|
-
- uses: actions/cache@v1
|
|
24
|
-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
|
25
|
-
with:
|
|
26
|
-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
27
|
-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
28
|
-
restore-keys: |
|
|
29
|
-
${{ runner.os }}-yarn-
|
|
18
|
+
cache: yarn
|
|
30
19
|
|
|
31
20
|
# node install
|
|
32
21
|
- run: yarn --frozen-lockfile
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 16.0.0-alpha.21 (2022-08-03)
|
|
4
|
+
|
|
5
|
+
### Bugfix
|
|
6
|
+
|
|
7
|
+
- Fix ArrayWidget choices when editing a recently created content item. @davisagli
|
|
8
|
+
|
|
9
|
+
### Internal
|
|
10
|
+
|
|
11
|
+
- Fix propTypes for Pagination component @davisagli
|
|
12
|
+
|
|
3
13
|
## 16.0.0-alpha.20 (2022-08-01)
|
|
4
14
|
|
|
5
15
|
### Breaking
|
|
@@ -14,6 +24,7 @@
|
|
|
14
24
|
|
|
15
25
|
- Minor clean up of volto-slate upgrade guide. @stevepiercy
|
|
16
26
|
|
|
27
|
+
- Rework documentation on how to write a Slate plugin @ksuess
|
|
17
28
|
|
|
18
29
|
## 16.0.0-alpha.19 (2022-07-28)
|
|
19
30
|
|
|
@@ -36,6 +47,7 @@
|
|
|
36
47
|
|
|
37
48
|
- Allow passing `allowedChildren` option to the BlockButton, to strip elements in headlines @tiberiuichim
|
|
38
49
|
- Upgrade to latest `@plone/scripts` @sneridagh
|
|
50
|
+
- Update browserlist definitions @sneridagh
|
|
39
51
|
|
|
40
52
|
### Documentation
|
|
41
53
|
|
package/babel.js
CHANGED
|
@@ -12,6 +12,7 @@ module.exports = function (api) {
|
|
|
12
12
|
'@babel/plugin-proposal-export-default-from', // Stage 1
|
|
13
13
|
'@babel/plugin-syntax-export-namespace-from', // Stage 4
|
|
14
14
|
'@babel/plugin-proposal-throw-expressions', // Stage 2
|
|
15
|
+
'@babel/plugin-proposal-nullish-coalescing-operator', // Stage 4
|
|
15
16
|
[
|
|
16
17
|
'babel-plugin-root-import', // Required for the ~ imports to work
|
|
17
18
|
{
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "16.0.0-alpha.
|
|
12
|
+
"version": "16.0.0-alpha.21",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:plone/volto.git"
|
|
@@ -227,6 +227,7 @@
|
|
|
227
227
|
"@babel/plugin-proposal-export-default-from": "7.10.4",
|
|
228
228
|
"@babel/plugin-proposal-export-namespace-from": "7.10.4",
|
|
229
229
|
"@babel/plugin-proposal-json-strings": "7.10.4",
|
|
230
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
|
|
230
231
|
"@babel/plugin-proposal-throw-expressions": "7.10.4",
|
|
231
232
|
"@loadable/babel-plugin": "5.13.2",
|
|
232
233
|
"@loadable/component": "5.14.1",
|
|
@@ -162,6 +162,8 @@ class ArrayWidget extends Component {
|
|
|
162
162
|
choices: PropTypes.arrayOf(
|
|
163
163
|
PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
|
164
164
|
),
|
|
165
|
+
vocabLoading: PropTypes.bool,
|
|
166
|
+
vocabLoaded: PropTypes.bool,
|
|
165
167
|
items: PropTypes.shape({
|
|
166
168
|
vocabulary: PropTypes.object,
|
|
167
169
|
}),
|
|
@@ -227,6 +229,21 @@ class ArrayWidget extends Component {
|
|
|
227
229
|
}
|
|
228
230
|
}
|
|
229
231
|
|
|
232
|
+
componentDidUpdate() {
|
|
233
|
+
if (
|
|
234
|
+
!this.props.items?.choices?.length &&
|
|
235
|
+
!this.props.choices?.length &&
|
|
236
|
+
this.props.vocabLoading === undefined &&
|
|
237
|
+
!this.props.vocabLoaded
|
|
238
|
+
) {
|
|
239
|
+
this.props.getVocabulary({
|
|
240
|
+
vocabNameOrURL: this.props.vocabBaseUrl,
|
|
241
|
+
size: -1,
|
|
242
|
+
subrequest: this.props.lang,
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
230
247
|
/**
|
|
231
248
|
* Handle the field change, store it in the local state and back to simple
|
|
232
249
|
* array of tokens for correct serialization
|
|
@@ -384,6 +401,8 @@ export default compose(
|
|
|
384
401
|
return {
|
|
385
402
|
choices: vocabState.items,
|
|
386
403
|
vocabBaseUrl,
|
|
404
|
+
vocabLoading: vocabState.loading,
|
|
405
|
+
vocabLoaded: vocabState.loaded,
|
|
387
406
|
lang: state.intl.locale,
|
|
388
407
|
};
|
|
389
408
|
}
|
|
@@ -128,7 +128,9 @@ Pagination.propTypes = {
|
|
|
128
128
|
/**
|
|
129
129
|
* Page sizes to choose from
|
|
130
130
|
*/
|
|
131
|
-
pageSizes: PropTypes.arrayOf(
|
|
131
|
+
pageSizes: PropTypes.arrayOf(
|
|
132
|
+
PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
133
|
+
),
|
|
132
134
|
/**
|
|
133
135
|
* Handler called when changing the page
|
|
134
136
|
*/
|