@plone/volto 17.16.0 → 17.16.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/.readthedocs.yaml +10 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/packages/volto-slate/package.json +1 -1
- package/packages/volto-slate/src/utils/blocks.js +16 -1
- package/src/helpers/index.js +1 -0
- package/types/helpers/index.d.ts +1 -1
- package/packages/volto-slate/news/5347.bugfix +0 -1
- package/packages/volto-slate/news/5517.feature +0 -1
- package/packages/volto-slate/news/5668.bugfix +0 -1
- package/packages/volto-slate/news/5779.bugfix +0 -1
- package/packages/volto-slate/news/5859.bugfix +0 -1
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,18 @@ myst:
|
|
|
17
17
|
|
|
18
18
|
<!-- towncrier release notes start -->
|
|
19
19
|
|
|
20
|
+
## 17.16.2 (2024-06-18)
|
|
21
|
+
|
|
22
|
+
### Bugfix
|
|
23
|
+
|
|
24
|
+
- export getFieldURL from Url.js in helpers @dobri1408 [#6101](https://github.com/plone/volto/issues/6101)
|
|
25
|
+
|
|
26
|
+
## 17.16.1 (2024-06-10)
|
|
27
|
+
|
|
28
|
+
### Bugfix
|
|
29
|
+
|
|
30
|
+
- Fix removal of slate formatting applied to text when toggling the list buttons @robgietema [#6080](https://github.com/plone/volto/issues/6080)
|
|
31
|
+
|
|
20
32
|
## 17.16.0 (2024-05-21)
|
|
21
33
|
|
|
22
34
|
### Feature
|
package/package.json
CHANGED
|
@@ -264,7 +264,7 @@ export const toggleBlock = (editor, format, allowedChildren) => {
|
|
|
264
264
|
} else if (!isListItem && !wantsList) {
|
|
265
265
|
toggleFormat(editor, format, allowedChildren);
|
|
266
266
|
} else if (isListItem && wantsList && isActive) {
|
|
267
|
-
|
|
267
|
+
clearList(editor);
|
|
268
268
|
} else {
|
|
269
269
|
console.warn('toggleBlock case not covered, please examine:', {
|
|
270
270
|
wantsList,
|
|
@@ -298,6 +298,21 @@ export const switchListType = (editor, format) => {
|
|
|
298
298
|
Transforms.wrapNodes(editor, block);
|
|
299
299
|
};
|
|
300
300
|
|
|
301
|
+
/*
|
|
302
|
+
* Clear list by exploding the block
|
|
303
|
+
*/
|
|
304
|
+
export const clearList = (editor) => {
|
|
305
|
+
const { slate } = config.settings;
|
|
306
|
+
Transforms.unwrapNodes(editor, {
|
|
307
|
+
match: (n) => slate.listTypes.includes(n.type),
|
|
308
|
+
split: true,
|
|
309
|
+
});
|
|
310
|
+
Transforms.setNodes(editor, {
|
|
311
|
+
type: 'p',
|
|
312
|
+
});
|
|
313
|
+
Editor.normalize(editor);
|
|
314
|
+
};
|
|
315
|
+
|
|
301
316
|
export const changeBlockToList = (editor, format) => {
|
|
302
317
|
const { slate } = config.settings;
|
|
303
318
|
const [match] = Editor.nodes(editor, {
|
package/src/helpers/index.js
CHANGED
package/types/helpers/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export { getCookieOptions } from "./Cookies/cookies";
|
|
|
18
18
|
export { getWidgetView } from "./Widget/widget";
|
|
19
19
|
export { getSiteAsyncPropExtender } from "./Site";
|
|
20
20
|
export { getAuthToken, persistAuthToken } from "@plone/volto/helpers/AuthToken/AuthToken";
|
|
21
|
-
export { addAppURL, expandToBackendURL, flattenHTMLToAppURL, flattenToAppURL, stripQuerystring, toPublicURL, isInternalURL, getParentUrl, getBaseUrl, getView, isCmsUi, getId, isUrl, normalizeUrl, removeProtocol, URLUtils, flattenScales } from "@plone/volto/helpers/Url/Url";
|
|
21
|
+
export { addAppURL, expandToBackendURL, flattenHTMLToAppURL, flattenToAppURL, stripQuerystring, toPublicURL, isInternalURL, getParentUrl, getBaseUrl, getView, isCmsUi, getId, isUrl, normalizeUrl, removeProtocol, URLUtils, flattenScales, getFieldURL } from "@plone/volto/helpers/Url/Url";
|
|
22
22
|
export { nestContent, getLayoutFieldname, getContentIcon, getLanguageIndependentFields } from "@plone/volto/helpers/Content/Content";
|
|
23
23
|
export { addBlock, insertBlock, blockHasValue, changeBlock, deleteBlock, emptyBlocksForm, getBlocks, getBlocksFieldname, getBlocksLayoutFieldname, hasBlocksData, moveBlock, mutateBlock, nextBlockId, previousBlockId, applyBlockDefaults, applySchemaDefaults, blocksFormGenerator, buildStyleClassNamesFromData, buildStyleClassNamesExtenders, buildStyleObjectFromData, getPreviousNextBlock, findBlocks } from "@plone/volto/helpers/Blocks/Blocks";
|
|
24
24
|
export { getSimpleDefaultBlocks, getDefaultBlocks } from "@plone/volto/helpers/Blocks/defaultBlocks";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Fix the right order of parameters in normalizeExternalData.js @dobri1408
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Added `navRoot` and `contentType` to `restricted` key in blocks configuration. @sneridagh
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Fix code button in slate. @pbauer
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Fix sidebar form update. @robgietema
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Fix other occurrences of mutable (referenced) objects when assigning the default inner `blocksConfig` object for the `grid` block, pass by value instead. sneridagh
|