@plone/volto 16.29.0 → 16.30.0
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.draft +2 -2
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/packages/volto-slate/news/5517.feature +1 -0
- package/packages/volto-slate/package.json +1 -1
- package/packages/volto-slate/src/blocks/Text/DefaultTextBlockEditor.jsx +4 -0
- package/src/components/manage/Add/Add.jsx +3 -0
- package/src/components/manage/BlockChooser/BlockChooser.jsx +3 -1
- package/src/components/manage/BlockChooser/BlockChooserButton.jsx +5 -0
- package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +5 -0
- package/.gitignore~ +0 -71
- package/.yarn/releases/yarn-3.3.1.cjs +0 -823
- package/Makefile~ +0 -399
- package/apps/plone/node_modules/.bin/addon +0 -17
- package/apps/plone/node_modules/.bin/autoprefixer +0 -17
- package/apps/plone/node_modules/.bin/build-storybook +0 -17
- package/apps/plone/node_modules/.bin/changelogupdater +0 -17
- package/apps/plone/node_modules/.bin/eslint +0 -17
- package/apps/plone/node_modules/.bin/eslint-config-prettier +0 -17
- package/apps/plone/node_modules/.bin/i18n +0 -17
- package/apps/plone/node_modules/.bin/lessc +0 -17
- package/apps/plone/node_modules/.bin/missdev +0 -17
- package/apps/plone/node_modules/.bin/prettier +0 -17
- package/apps/plone/node_modules/.bin/razzle +0 -17
- package/apps/plone/node_modules/.bin/server-test +0 -17
- package/apps/plone/node_modules/.bin/start-server-and-test +0 -17
- package/apps/plone/node_modules/.bin/start-storybook +0 -17
- package/apps/plone/node_modules/.bin/start-test +0 -17
- package/apps/plone/node_modules/.bin/storybook-server +0 -17
- package/apps/plone/node_modules/.bin/stylelint +0 -17
- package/apps/plone/node_modules/.bin/tlds +0 -17
- package/apps/plone/node_modules/.bin/ts-jest +0 -17
- package/apps/plone/node_modules/.bin/tsc +0 -17
- package/apps/plone/node_modules/.bin/tsserver +0 -17
- package/apps/plone/node_modules/.bin/uuid +0 -17
- package/apps/plone/src/addons/volto-volto-project/node_modules/.bin/addon +0 -17
- package/apps/plone/src/addons/volto-volto-project/node_modules/.bin/changelogupdater +0 -17
- package/apps/plone/src/addons/volto-volto-project/node_modules/.bin/eslint +0 -17
- package/apps/plone/src/addons/volto-volto-project/node_modules/.bin/eslint-config-prettier +0 -17
- package/apps/plone/src/addons/volto-volto-project/node_modules/.bin/i18n +0 -17
- package/apps/plone/src/addons/volto-volto-project/node_modules/.bin/prettier +0 -17
- package/apps/plone/src/addons/volto-volto-project/node_modules/.bin/release-it +0 -17
- package/apps/plone/src/addons/volto-volto-project/node_modules/.bin/stylelint +0 -17
- package/locales/volto.pot~ +0 -4705
- package/news/4547.breaking~ +0 -1
- package/news/5135.documentation~ +0 -1
- package/packages/volto-slate/node_modules/.bin/release-it +0 -17
- package/pyvenv.cfg +0 -5
- package/share/man/man1/ttx.1 +0 -225
- package/src/config/index.js~ +0 -223
package/.changelog.draft
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
## 16.
|
|
1
|
+
## 16.30.0 (2023-12-13)
|
|
2
2
|
|
|
3
3
|
### Feature
|
|
4
4
|
|
|
5
|
-
- Added
|
|
5
|
+
- Added `navRoot` and `contentType` to `restricted` key in blocks configuration. @sneridagh [#5517](https://github.com/plone/volto/issues/5517)
|
|
6
6
|
|
|
7
7
|
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
<!-- towncrier release notes start -->
|
|
10
10
|
|
|
11
|
+
## 16.30.0 (2023-12-13)
|
|
12
|
+
|
|
13
|
+
### Feature
|
|
14
|
+
|
|
15
|
+
- Added `navRoot` and `contentType` to `restricted` key in blocks configuration. @sneridagh [#5517](https://github.com/plone/volto/issues/5517)
|
|
16
|
+
|
|
11
17
|
## 16.29.0 (2023-12-07)
|
|
12
18
|
|
|
13
19
|
### Feature
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Added `navRoot` and `contentType` to `restricted` key in blocks configuration. @sneridagh
|
|
@@ -70,6 +70,8 @@ export const DefaultTextBlockEditor = (props) => {
|
|
|
70
70
|
allowedBlocks,
|
|
71
71
|
formTitle,
|
|
72
72
|
formDescription,
|
|
73
|
+
navRoot,
|
|
74
|
+
contentType,
|
|
73
75
|
} = props;
|
|
74
76
|
|
|
75
77
|
const { slate } = config.settings;
|
|
@@ -267,6 +269,8 @@ export const DefaultTextBlockEditor = (props) => {
|
|
|
267
269
|
blocksConfig={blocksConfig}
|
|
268
270
|
size="24px"
|
|
269
271
|
properties={properties}
|
|
272
|
+
navRoot={navRoot}
|
|
273
|
+
contentType={contentType}
|
|
270
274
|
/>
|
|
271
275
|
)}
|
|
272
276
|
|
|
@@ -338,6 +338,9 @@ class Add extends Component {
|
|
|
338
338
|
// Copy the Language Independent Fields values from the to-be translated content
|
|
339
339
|
// into the default values of the translated content Add form.
|
|
340
340
|
...lifData(),
|
|
341
|
+
parent: {
|
|
342
|
+
'@id': this.props.content?.['@id'] || '',
|
|
343
|
+
},
|
|
341
344
|
}}
|
|
342
345
|
requestError={this.state.error}
|
|
343
346
|
onSubmit={this.onSubmit}
|
|
@@ -31,6 +31,8 @@ const BlockChooser = ({
|
|
|
31
31
|
blocksConfig = config.blocks.blocksConfig,
|
|
32
32
|
blockChooserRef,
|
|
33
33
|
properties = {},
|
|
34
|
+
navRoot,
|
|
35
|
+
contentType,
|
|
34
36
|
}) => {
|
|
35
37
|
const intl = useIntl();
|
|
36
38
|
const hasAllowedBlocks = !isEmpty(allowedBlocks);
|
|
@@ -55,7 +57,7 @@ const BlockChooser = ({
|
|
|
55
57
|
// depending on this function, given properties (current present blocks) and the
|
|
56
58
|
// block being evaluated
|
|
57
59
|
return typeof item.restricted === 'function'
|
|
58
|
-
? !item.restricted({ properties, block: item })
|
|
60
|
+
? !item.restricted({ properties, block: item, navRoot, contentType })
|
|
59
61
|
: !item.restricted;
|
|
60
62
|
}
|
|
61
63
|
}
|
|
@@ -52,7 +52,10 @@ const BlockChooserButton = (props) => {
|
|
|
52
52
|
blocksConfig,
|
|
53
53
|
buttonComponent,
|
|
54
54
|
properties,
|
|
55
|
+
navRoot,
|
|
56
|
+
contentType,
|
|
55
57
|
} = props;
|
|
58
|
+
|
|
56
59
|
const { disableNewBlocks } = data;
|
|
57
60
|
const [addNewBlockOpened, setAddNewBlockOpened] = React.useState(false);
|
|
58
61
|
|
|
@@ -110,6 +113,8 @@ const BlockChooserButton = (props) => {
|
|
|
110
113
|
properties={properties}
|
|
111
114
|
showRestricted={showRestricted}
|
|
112
115
|
ref={blockChooserRef}
|
|
116
|
+
navRoot={navRoot}
|
|
117
|
+
contentType={contentType}
|
|
113
118
|
/>
|
|
114
119
|
)}
|
|
115
120
|
</>
|
|
@@ -47,7 +47,10 @@ const EditBlockWrapper = (props) => {
|
|
|
47
47
|
editable,
|
|
48
48
|
properties,
|
|
49
49
|
showBlockChooser,
|
|
50
|
+
navRoot,
|
|
51
|
+
contentType,
|
|
50
52
|
} = blockProps;
|
|
53
|
+
|
|
51
54
|
const visible = selected && !hideHandler(data);
|
|
52
55
|
|
|
53
56
|
const required = isBoolean(data.required)
|
|
@@ -107,6 +110,8 @@ const EditBlockWrapper = (props) => {
|
|
|
107
110
|
blocksConfig={blocksConfig}
|
|
108
111
|
size="24px"
|
|
109
112
|
properties={properties}
|
|
113
|
+
navRoot={navRoot}
|
|
114
|
+
contentType={contentType}
|
|
110
115
|
/>
|
|
111
116
|
)}
|
|
112
117
|
</div>
|
package/.gitignore~
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# Node
|
|
2
|
-
node_modules
|
|
3
|
-
coverage
|
|
4
|
-
jsdoc
|
|
5
|
-
webpack-assets.json
|
|
6
|
-
webpack-stats.json
|
|
7
|
-
npm-debug.log
|
|
8
|
-
junit.xml
|
|
9
|
-
eslint.xml
|
|
10
|
-
yarn-error.log
|
|
11
|
-
build
|
|
12
|
-
|
|
13
|
-
# Other
|
|
14
|
-
.DS_Store
|
|
15
|
-
.idea
|
|
16
|
-
lighthouse-report.html
|
|
17
|
-
.vscode/
|
|
18
|
-
.#*
|
|
19
|
-
*~
|
|
20
|
-
|
|
21
|
-
# Python
|
|
22
|
-
/api/.installed.cfg
|
|
23
|
-
/api/.mr.developer.cfg
|
|
24
|
-
/api/bin/
|
|
25
|
-
/api/develop-eggs/
|
|
26
|
-
/api/eggs/
|
|
27
|
-
/api/include/
|
|
28
|
-
/api/lib/
|
|
29
|
-
/api/lib64/
|
|
30
|
-
/api/notebook/env/
|
|
31
|
-
/api/parts/
|
|
32
|
-
/api/share/python-wheels/
|
|
33
|
-
/api/src/
|
|
34
|
-
/api/test/
|
|
35
|
-
/api/var/
|
|
36
|
-
/api/venv/
|
|
37
|
-
/bin/
|
|
38
|
-
/lib/
|
|
39
|
-
.Python
|
|
40
|
-
include
|
|
41
|
-
pip-selfcheck.json
|
|
42
|
-
pyvenv.cfg
|
|
43
|
-
share
|
|
44
|
-
/api/lib64
|
|
45
|
-
lib64
|
|
46
|
-
|
|
47
|
-
# locales
|
|
48
|
-
locales/*.json
|
|
49
|
-
|
|
50
|
-
# Tests
|
|
51
|
-
/tests/bin
|
|
52
|
-
/tests/develop-eggs
|
|
53
|
-
/tests/parts
|
|
54
|
-
/tests/.installed.cfg
|
|
55
|
-
*.pyc
|
|
56
|
-
geckodriver.log
|
|
57
|
-
log.html
|
|
58
|
-
output.xml
|
|
59
|
-
report.html
|
|
60
|
-
selenium-screenshot-*.png
|
|
61
|
-
/selenium/
|
|
62
|
-
cypress/videos/
|
|
63
|
-
cypress/screenshots
|
|
64
|
-
|
|
65
|
-
# Local environment setup
|
|
66
|
-
.env
|
|
67
|
-
public/critical.css
|
|
68
|
-
|
|
69
|
-
# Sphinx and MyST
|
|
70
|
-
docs/_build/
|
|
71
|
-
/.python-version
|