@plone/volto 18.0.0-alpha.43 → 18.0.0-alpha.45
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 +50 -0
- package/locales/ca/LC_MESSAGES/volto.po +5 -0
- package/locales/ca.json +1 -1
- package/locales/de/LC_MESSAGES/volto.po +5 -0
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +5 -0
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +5 -0
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +5 -0
- package/locales/eu.json +1 -1
- package/locales/fi/LC_MESSAGES/volto.po +5 -0
- package/locales/fi.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +5 -0
- package/locales/fr.json +1 -1
- package/locales/hi/LC_MESSAGES/volto.po +5 -0
- package/locales/hi.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +42 -37
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +5 -0
- package/locales/ja.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +5 -0
- package/locales/nl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +5 -0
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +71 -66
- package/locales/pt_BR.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +5 -0
- package/locales/ro.json +1 -1
- package/locales/volto.pot +6 -1
- package/locales/zh_CN/LC_MESSAGES/volto.po +5 -0
- package/locales/zh_CN.json +1 -1
- package/package.json +6 -6
- package/src/components/manage/BlockChooser/BlockChooser.jsx +2 -2
- package/src/components/manage/BlockChooser/BlockChooser.test.jsx +4 -0
- package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +8 -1
- package/src/components/manage/Blocks/Search/components/CheckboxFacet.jsx +1 -0
- package/src/components/manage/Diff/DiffField.jsx +167 -39
- package/src/components/manage/Form/Form.jsx +31 -22
- package/src/components/manage/Sidebar/SidebarPopup.jsx +9 -1
- package/src/components/manage/Toast/Toast.jsx +2 -2
- package/src/components/manage/Widgets/ArrayWidget.jsx +1 -0
- package/src/components/manage/Widgets/FormFieldWrapper.jsx +23 -3
- package/src/components/manage/Widgets/SelectWidget.jsx +1 -0
- package/src/components/manage/Widgets/TokenWidget.jsx +1 -0
- package/src/config/NonContentRoutesPublic.jsx +15 -0
- package/src/config/index.js +2 -0
- package/src/helpers/Blocks/Blocks.js +1 -1
- package/src/helpers/Url/Url.js +4 -1
- package/src/helpers/Url/Url.test.js +17 -3
- package/src/hooks/index.js +1 -0
- package/src/hooks/user/useUser.js +23 -0
- package/test-setup-config.jsx +2 -0
- package/theme/themes/pastanaga/collections/form.overrides +1 -0
- package/theme/themes/pastanaga/collections/table.overrides +6 -1
- package/theme/themes/pastanaga/extras/main.less +3 -2
- package/theme/themes/pastanaga/extras/toolbar.less +14 -2
- package/theme/themes/pastanaga/extras/widgets.less +12 -0
- package/theme/themes/pastanaga/modules/accordion.variables +3 -3
- package/types/config/NonContentRoutesPublic.d.ts +1 -0
- package/types/helpers/Blocks/Blocks.d.ts +1 -1
- package/types/hooks/index.d.ts +1 -0
- package/types/hooks/user/useUser.d.ts +2 -0
- package/finalreleasechangelog.py +0 -48
|
@@ -283,16 +283,28 @@ body:not(.has-sidebar):not(.has-sidebar-collapsed) {
|
|
|
283
283
|
|
|
284
284
|
.toolbar-content,
|
|
285
285
|
.toolbar {
|
|
286
|
-
button
|
|
286
|
+
button,
|
|
287
|
+
a {
|
|
287
288
|
// Default reset for button
|
|
288
289
|
padding: 0;
|
|
289
290
|
border: 0;
|
|
290
291
|
background: transparent;
|
|
292
|
+
box-shadow: unset !important; // Some buttons have double outlines due to default styles. Safely disable those styles here.
|
|
291
293
|
cursor: pointer;
|
|
292
294
|
text-align: initial;
|
|
293
295
|
|
|
296
|
+
svg {
|
|
297
|
+
display: block; // SVGs are inline by default, causing the spacing to be odd
|
|
298
|
+
margin: 0; // Some SVGs have margin set by default styles.
|
|
299
|
+
}
|
|
300
|
+
|
|
294
301
|
&:focus-visible {
|
|
295
|
-
outline:
|
|
302
|
+
outline: 2px solid black;
|
|
303
|
+
outline-offset: 2px;
|
|
304
|
+
|
|
305
|
+
&:has(.circled) {
|
|
306
|
+
border-radius: 50%;
|
|
307
|
+
}
|
|
296
308
|
}
|
|
297
309
|
}
|
|
298
310
|
}
|
|
@@ -280,3 +280,15 @@ body.babel-view .field.language-independent-field {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
+
|
|
284
|
+
// ### FormFieldWrapper ###
|
|
285
|
+
.language-independent-field .wrapper > label {
|
|
286
|
+
display: flex !important;
|
|
287
|
+
align-items: center;
|
|
288
|
+
justify-content: space-between;
|
|
289
|
+
|
|
290
|
+
.languageIndependent-icon {
|
|
291
|
+
display: flex;
|
|
292
|
+
margin-left: 8px;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
|
|
35
35
|
/* Styled Title */
|
|
36
36
|
@styledTitleFontWeight: @normal;
|
|
37
|
-
@styledTitleColor: @
|
|
37
|
+
@styledTitleColor: @textColor;
|
|
38
38
|
@styledTitleBorder: none;
|
|
39
39
|
|
|
40
40
|
/* Styled Title States */
|
|
41
41
|
@styledTitleHoverBackground: @darkWhite;
|
|
42
|
-
@styledTitleHoverColor: @
|
|
42
|
+
@styledTitleHoverColor: @textColor;
|
|
43
43
|
@styledActiveTitleBackground: @darkWhite;
|
|
44
|
-
@styledActiveTitleColor: @
|
|
44
|
+
@styledActiveTitleColor: @textColor;
|
|
45
45
|
|
|
46
46
|
/* Styled Child Title States */
|
|
47
47
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const nonContentRoutesPublic: (string | RegExp)[];
|
|
@@ -147,7 +147,7 @@ export function isBlockContainer(block: any): boolean;
|
|
|
147
147
|
* @param {Object} types A list with the list of types to be matched
|
|
148
148
|
* @return {Array} An array of block ids
|
|
149
149
|
*/
|
|
150
|
-
export function findBlocks(blocks:
|
|
150
|
+
export function findBlocks(blocks: {}, types: any, result?: any[]): any[];
|
|
151
151
|
/**
|
|
152
152
|
* Move block to different location index within blocks_layout
|
|
153
153
|
* @function moveBlock
|
package/types/hooks/index.d.ts
CHANGED
package/finalreleasechangelog.py
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import re
|
|
2
|
-
|
|
3
|
-
def extract_alpha_sections(changelog):
|
|
4
|
-
# Define the regex pattern to match the sections
|
|
5
|
-
pattern = re.compile(r'## 18\.0\.0-alpha\.\d+.*?\n(.*?)(?=\n## (18\.0\.0-alpha\.\d+|[^a]))', re.DOTALL)
|
|
6
|
-
|
|
7
|
-
# Find all matches
|
|
8
|
-
matches = pattern.findall(changelog)
|
|
9
|
-
return [match[0] for match in matches]
|
|
10
|
-
|
|
11
|
-
def group_by_third_level_headers(section):
|
|
12
|
-
# Define the regex pattern to match third-level headers and their content
|
|
13
|
-
pattern = re.compile(r'### (.*?)\n(.*?)(?=\n### |\Z)', re.DOTALL)
|
|
14
|
-
|
|
15
|
-
# Find all matches
|
|
16
|
-
matches = pattern.findall(section)
|
|
17
|
-
|
|
18
|
-
# Group content by third-level headers
|
|
19
|
-
grouped_content = {}
|
|
20
|
-
for header, content in matches:
|
|
21
|
-
if header not in grouped_content:
|
|
22
|
-
grouped_content[header] = []
|
|
23
|
-
grouped_content[header].append(content.strip())
|
|
24
|
-
return grouped_content
|
|
25
|
-
|
|
26
|
-
# Read the contents of the CHANGELOG.md file
|
|
27
|
-
with open('CHANGELOG.md', 'r') as file:
|
|
28
|
-
changelog_content = file.read()
|
|
29
|
-
|
|
30
|
-
# Extract the alpha sections
|
|
31
|
-
alpha_sections = extract_alpha_sections(changelog_content)
|
|
32
|
-
|
|
33
|
-
# Group each section by third-level headers and print the summary
|
|
34
|
-
grouped_content = {}
|
|
35
|
-
for section in alpha_sections:
|
|
36
|
-
section_content = group_by_third_level_headers(section)
|
|
37
|
-
for header, content_list in section_content.items():
|
|
38
|
-
if header not in grouped_content:
|
|
39
|
-
grouped_content[header] = []
|
|
40
|
-
grouped_content[header].extend(content_list)
|
|
41
|
-
|
|
42
|
-
# print(grouped_content)
|
|
43
|
-
# Print the grouped summary
|
|
44
|
-
for header, contents in grouped_content.items():
|
|
45
|
-
print(f'### {header}\n')
|
|
46
|
-
for content in contents:
|
|
47
|
-
print(content)
|
|
48
|
-
print('\n') # Sepa
|