@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.
Files changed (64) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/locales/ca/LC_MESSAGES/volto.po +5 -0
  3. package/locales/ca.json +1 -1
  4. package/locales/de/LC_MESSAGES/volto.po +5 -0
  5. package/locales/de.json +1 -1
  6. package/locales/en/LC_MESSAGES/volto.po +5 -0
  7. package/locales/en.json +1 -1
  8. package/locales/es/LC_MESSAGES/volto.po +5 -0
  9. package/locales/es.json +1 -1
  10. package/locales/eu/LC_MESSAGES/volto.po +5 -0
  11. package/locales/eu.json +1 -1
  12. package/locales/fi/LC_MESSAGES/volto.po +5 -0
  13. package/locales/fi.json +1 -1
  14. package/locales/fr/LC_MESSAGES/volto.po +5 -0
  15. package/locales/fr.json +1 -1
  16. package/locales/hi/LC_MESSAGES/volto.po +5 -0
  17. package/locales/hi.json +1 -1
  18. package/locales/it/LC_MESSAGES/volto.po +42 -37
  19. package/locales/it.json +1 -1
  20. package/locales/ja/LC_MESSAGES/volto.po +5 -0
  21. package/locales/ja.json +1 -1
  22. package/locales/nl/LC_MESSAGES/volto.po +5 -0
  23. package/locales/nl.json +1 -1
  24. package/locales/pt/LC_MESSAGES/volto.po +5 -0
  25. package/locales/pt.json +1 -1
  26. package/locales/pt_BR/LC_MESSAGES/volto.po +71 -66
  27. package/locales/pt_BR.json +1 -1
  28. package/locales/ro/LC_MESSAGES/volto.po +5 -0
  29. package/locales/ro.json +1 -1
  30. package/locales/volto.pot +6 -1
  31. package/locales/zh_CN/LC_MESSAGES/volto.po +5 -0
  32. package/locales/zh_CN.json +1 -1
  33. package/package.json +6 -6
  34. package/src/components/manage/BlockChooser/BlockChooser.jsx +2 -2
  35. package/src/components/manage/BlockChooser/BlockChooser.test.jsx +4 -0
  36. package/src/components/manage/Blocks/Block/EditBlockWrapper.jsx +8 -1
  37. package/src/components/manage/Blocks/Search/components/CheckboxFacet.jsx +1 -0
  38. package/src/components/manage/Diff/DiffField.jsx +167 -39
  39. package/src/components/manage/Form/Form.jsx +31 -22
  40. package/src/components/manage/Sidebar/SidebarPopup.jsx +9 -1
  41. package/src/components/manage/Toast/Toast.jsx +2 -2
  42. package/src/components/manage/Widgets/ArrayWidget.jsx +1 -0
  43. package/src/components/manage/Widgets/FormFieldWrapper.jsx +23 -3
  44. package/src/components/manage/Widgets/SelectWidget.jsx +1 -0
  45. package/src/components/manage/Widgets/TokenWidget.jsx +1 -0
  46. package/src/config/NonContentRoutesPublic.jsx +15 -0
  47. package/src/config/index.js +2 -0
  48. package/src/helpers/Blocks/Blocks.js +1 -1
  49. package/src/helpers/Url/Url.js +4 -1
  50. package/src/helpers/Url/Url.test.js +17 -3
  51. package/src/hooks/index.js +1 -0
  52. package/src/hooks/user/useUser.js +23 -0
  53. package/test-setup-config.jsx +2 -0
  54. package/theme/themes/pastanaga/collections/form.overrides +1 -0
  55. package/theme/themes/pastanaga/collections/table.overrides +6 -1
  56. package/theme/themes/pastanaga/extras/main.less +3 -2
  57. package/theme/themes/pastanaga/extras/toolbar.less +14 -2
  58. package/theme/themes/pastanaga/extras/widgets.less +12 -0
  59. package/theme/themes/pastanaga/modules/accordion.variables +3 -3
  60. package/types/config/NonContentRoutesPublic.d.ts +1 -0
  61. package/types/helpers/Blocks/Blocks.d.ts +1 -1
  62. package/types/hooks/index.d.ts +1 -0
  63. package/types/hooks/user/useUser.d.ts +2 -0
  64. package/finalreleasechangelog.py +0 -48
@@ -367,9 +367,10 @@ button {
367
367
  p {
368
368
  font-weight: 300;
369
369
  }
370
- }
371
370
 
372
- .toast-dismiss-action {
371
+ ul {
372
+ padding: 0;
373
+ }
373
374
  }
374
375
 
375
376
  .Toastify__toast--info {
@@ -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: 1px auto;
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: @teal;
37
+ @styledTitleColor: @textColor;
38
38
  @styledTitleBorder: none;
39
39
 
40
40
  /* Styled Title States */
41
41
  @styledTitleHoverBackground: @darkWhite;
42
- @styledTitleHoverColor: @teal;
42
+ @styledTitleHoverColor: @textColor;
43
43
  @styledActiveTitleBackground: @darkWhite;
44
- @styledActiveTitleColor: @teal;
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: any, types: any, result?: any[]): any[];
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
@@ -1,2 +1,3 @@
1
1
  export { default as useClipboard } from "@plone/volto/hooks/clipboard/useClipboard";
2
2
  export { useClient } from "@plone/volto/hooks/client/useClient";
3
+ export { default as useUser } from "@plone/volto/hooks/user/useUser";
@@ -0,0 +1,2 @@
1
+ export default useUser;
2
+ declare function useUser(): any;
@@ -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