@plone/volto 17.0.0-alpha.2 → 17.0.0-alpha.20

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 (297) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/CHANGELOG.md +530 -15
  3. package/CONTRIBUTING.md +1 -1
  4. package/README.md +11 -14
  5. package/addon-registry.js +34 -0
  6. package/create-theme-addons-loader.js +79 -0
  7. package/cypress/support/commands.js +56 -4
  8. package/cypress/support/volto-slate.js +4 -5
  9. package/docker-compose.yml +1 -1
  10. package/locales/ca/LC_MESSAGES/volto.po +272 -6
  11. package/locales/ca.json +1 -1
  12. package/locales/de/LC_MESSAGES/volto.po +291 -25
  13. package/locales/de.json +1 -1
  14. package/locales/en/LC_MESSAGES/volto.po +271 -5
  15. package/locales/en.json +1 -1
  16. package/locales/es/LC_MESSAGES/volto.po +281 -15
  17. package/locales/es.json +1 -1
  18. package/locales/eu/LC_MESSAGES/volto.po +272 -6
  19. package/locales/eu.json +1 -1
  20. package/locales/fi/LC_MESSAGES/volto.po +4882 -0
  21. package/locales/fi.json +1 -1
  22. package/locales/fr/LC_MESSAGES/volto.po +272 -6
  23. package/locales/fr.json +1 -1
  24. package/locales/it/LC_MESSAGES/volto.po +273 -7
  25. package/locales/it.json +1 -1
  26. package/locales/ja/LC_MESSAGES/volto.po +272 -6
  27. package/locales/ja.json +1 -1
  28. package/locales/nl/LC_MESSAGES/volto.po +927 -649
  29. package/locales/nl.json +1 -1
  30. package/locales/pt/LC_MESSAGES/volto.po +272 -6
  31. package/locales/pt.json +1 -1
  32. package/locales/pt_BR/LC_MESSAGES/volto.po +281 -15
  33. package/locales/pt_BR.json +1 -1
  34. package/locales/ro/LC_MESSAGES/volto.po +272 -6
  35. package/locales/ro.json +1 -1
  36. package/locales/volto.pot +272 -6
  37. package/locales/zh_CN/LC_MESSAGES/volto.po +272 -6
  38. package/locales/zh_CN.json +1 -1
  39. package/package.json +5 -3
  40. package/packages/volto-slate/build/messages/src/blocks/Table/TableBlockEdit.json +1 -1
  41. package/packages/volto-slate/build/messages/src/blocks/Text/DefaultTextBlockEditor.json +1 -1
  42. package/packages/volto-slate/build/messages/src/blocks/Text/DetachedTextBlockEditor.json +1 -1
  43. package/packages/volto-slate/build/messages/src/blocks/Text/SlashMenu.json +1 -1
  44. package/packages/volto-slate/build/messages/src/editor/plugins/AdvancedLink/index.json +1 -1
  45. package/packages/volto-slate/build/messages/src/editor/plugins/Link/index.json +1 -1
  46. package/packages/volto-slate/build/messages/src/editor/plugins/Table/index.json +1 -1
  47. package/packages/volto-slate/build/messages/src/elementEditor/messages.json +1 -1
  48. package/packages/volto-slate/build/messages/src/widgets/HtmlSlateWidget.json +1 -1
  49. package/packages/volto-slate/build/messages/src/widgets/RichTextWidgetView.json +1 -1
  50. package/packages/volto-slate/package.json +1 -1
  51. package/packages/volto-slate/src/actions/index.js +1 -1
  52. package/packages/volto-slate/src/blocks/Table/TableBlockEdit.jsx +21 -212
  53. package/packages/volto-slate/src/blocks/Table/schema.js +122 -0
  54. package/packages/volto-slate/src/blocks/Text/DefaultTextBlockEditor.jsx +8 -3
  55. package/packages/volto-slate/src/blocks/Text/SlashMenu.jsx +4 -3
  56. package/packages/volto-slate/src/blocks/Text/TextBlockView.jsx +20 -16
  57. package/packages/volto-slate/src/blocks/Text/extensions/withDeserializers.js +3 -1
  58. package/packages/volto-slate/src/blocks/Text/index.js +10 -2
  59. package/packages/volto-slate/src/editor/config.jsx +5 -4
  60. package/packages/volto-slate/src/editor/deserialize.js +0 -1
  61. package/packages/volto-slate/src/editor/index.js +4 -4
  62. package/packages/volto-slate/src/editor/less/slate.less +28 -0
  63. package/packages/volto-slate/src/editor/plugins/StyleMenu/StyleMenu.jsx +14 -4
  64. package/packages/volto-slate/src/editor/plugins/StyleMenu/utils.js +14 -5
  65. package/packages/volto-slate/src/editor/render.jsx +68 -8
  66. package/packages/volto-slate/src/editor/ui/SlateContextToolbar.jsx +2 -2
  67. package/packages/volto-slate/src/editor/ui/index.js +15 -15
  68. package/packages/volto-slate/src/index.js +2 -2
  69. package/packages/volto-slate/src/utils/blocks.js +7 -0
  70. package/packages/volto-slate/src/widgets/RichTextWidget.jsx +15 -8
  71. package/razzle.config.js +28 -0
  72. package/src/actions/index.js +6 -0
  73. package/src/actions/language/language.js +9 -8
  74. package/src/actions/querystringsearch/querystringsearch.js +20 -14
  75. package/src/actions/relations/rebuild.js +25 -0
  76. package/src/actions/relations/relations.js +86 -0
  77. package/src/actions/relations/relations.test.js +15 -0
  78. package/src/components/index.js +2 -0
  79. package/src/components/manage/Add/Add.jsx +2 -2
  80. package/src/components/manage/AnchorPlugin/index.jsx +2 -2
  81. package/src/components/manage/AnchorPlugin/utils/EditorUtils.js +3 -1
  82. package/src/components/manage/BlockChooser/BlockChooser.jsx +14 -5
  83. package/src/components/manage/BlockChooser/BlockChooser.test.jsx +5 -0
  84. package/src/components/manage/Blocks/Block/BlocksForm.jsx +19 -2
  85. package/src/components/manage/Blocks/Block/Edit.jsx +1 -1
  86. package/src/components/manage/Blocks/Block/Style.jsx +2 -2
  87. package/src/components/manage/Blocks/Container/Data.jsx +32 -0
  88. package/src/components/manage/Blocks/Container/Edit.jsx +174 -0
  89. package/src/components/manage/Blocks/Container/EditBlockWrapper.jsx +120 -0
  90. package/src/components/manage/Blocks/Container/NewBlockAddButton.jsx +84 -0
  91. package/src/components/manage/Blocks/Container/SimpleContainerToolbar.jsx +54 -0
  92. package/src/components/manage/Blocks/Grid/Edit.jsx +33 -0
  93. package/src/components/manage/Blocks/Grid/View.jsx +43 -0
  94. package/src/components/manage/Blocks/Grid/adapter.js +14 -0
  95. package/src/components/manage/Blocks/Grid/grid-1.svg +6 -0
  96. package/src/components/manage/Blocks/Grid/grid-2.svg +9 -0
  97. package/src/components/manage/Blocks/Grid/grid-3.svg +10 -0
  98. package/src/components/manage/Blocks/Grid/grid-4.svg +11 -0
  99. package/src/components/manage/Blocks/Grid/schema.js +35 -0
  100. package/src/components/manage/Blocks/Grid/templates.js +47 -0
  101. package/src/components/manage/Blocks/HeroImageLeft/Edit.jsx +6 -1
  102. package/src/components/manage/Blocks/Image/Edit.jsx +11 -7
  103. package/src/components/manage/Blocks/Image/ImageSidebar.jsx +2 -1
  104. package/src/components/manage/Blocks/Image/schema.js +11 -0
  105. package/src/components/manage/Blocks/Listing/DefaultTemplate.jsx +18 -3
  106. package/src/components/manage/Blocks/Listing/Edit.jsx +0 -14
  107. package/src/components/manage/Blocks/Listing/ListingBody.jsx +30 -8
  108. package/src/components/manage/Blocks/Listing/ListingBody.test.jsx +20 -0
  109. package/src/components/manage/Blocks/Listing/getAsyncData.js +9 -3
  110. package/src/components/manage/Blocks/Listing/withQuerystringResults.jsx +26 -18
  111. package/src/components/manage/Blocks/Search/SearchBlockEdit.jsx +5 -4
  112. package/src/components/manage/Blocks/Search/SearchBlockView.jsx +2 -1
  113. package/src/components/manage/Blocks/Search/components/DateRangeFacet.jsx +4 -1
  114. package/src/components/manage/Blocks/Search/components/Facets.jsx +64 -4
  115. package/src/components/manage/Blocks/Search/components/SearchInput.jsx +9 -2
  116. package/src/components/manage/Blocks/Search/components/index.js +13 -13
  117. package/src/components/manage/Blocks/Search/hocs/index.js +2 -2
  118. package/src/components/manage/Blocks/Search/hocs/withQueryString.jsx +2 -2
  119. package/src/components/manage/Blocks/Search/hocs/withSearch.jsx +43 -15
  120. package/src/components/manage/Blocks/Search/layout/LeftColumnFacets.jsx +17 -5
  121. package/src/components/manage/Blocks/Search/layout/RightColumnFacets.jsx +17 -5
  122. package/src/components/manage/Blocks/Search/layout/TopSideFacets.jsx +21 -5
  123. package/src/components/manage/Blocks/Search/schema.js +16 -1
  124. package/src/components/manage/Blocks/Teaser/Body.jsx +0 -1
  125. package/src/components/manage/Blocks/Teaser/DefaultBody.jsx +20 -15
  126. package/src/components/manage/Blocks/Teaser/schema.js +5 -0
  127. package/src/components/manage/Blocks/Title/View.jsx +15 -5
  128. package/src/components/manage/Blocks/Title/View.test.jsx +16 -1
  129. package/src/components/manage/Blocks/ToC/Schema.jsx +5 -1
  130. package/src/components/manage/Blocks/ToC/View.jsx +8 -1
  131. package/src/components/manage/Blocks/ToC/variations/DefaultTocRenderer.jsx +17 -4
  132. package/src/components/manage/Blocks/ToC/variations/HorizontalMenu.jsx +148 -10
  133. package/src/components/manage/Blocks/ToC/variations/index.js +3 -1
  134. package/src/components/manage/Contents/Contents.jsx +39 -26
  135. package/src/components/manage/Contents/ContentsItem.jsx +6 -0
  136. package/src/components/manage/Contents/ContentsUploadModal.jsx +10 -5
  137. package/src/components/manage/Controlpanels/AddonsControlpanel.jsx +3 -3
  138. package/src/components/manage/Controlpanels/Controlpanels.jsx +199 -224
  139. package/src/components/manage/Controlpanels/Controlpanels.test.jsx +46 -7
  140. package/src/components/manage/Controlpanels/Relations/BrokenRelations.jsx +66 -0
  141. package/src/components/manage/Controlpanels/Relations/Relations.jsx +114 -0
  142. package/src/components/manage/Controlpanels/Relations/RelationsListing.jsx +479 -0
  143. package/src/components/manage/Controlpanels/Relations/RelationsMatrix.jsx +531 -0
  144. package/src/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel.jsx +3 -3
  145. package/src/components/manage/Controlpanels/Users/UserGroupMembershipListing.jsx +51 -82
  146. package/src/components/manage/Controlpanels/Users/UserGroupMembershipMatrix.jsx +79 -75
  147. package/src/components/manage/DragDropList/DragDropList.jsx +18 -13
  148. package/src/components/manage/Form/Form.jsx +5 -3
  149. package/src/components/manage/Form/InlineForm.jsx +39 -9
  150. package/src/components/manage/Form/InlineFormState.js +8 -0
  151. package/src/components/manage/History/History.jsx +11 -1
  152. package/src/components/manage/LinksToItem/LinksToItem.jsx +209 -0
  153. package/src/components/manage/LinksToItem/LinksToItem.test.jsx +97 -0
  154. package/src/components/manage/Multilingual/CreateTranslation.jsx +2 -2
  155. package/src/components/manage/Multilingual/TranslationObject.jsx +4 -3
  156. package/src/components/manage/Preferences/ChangePassword.jsx +2 -2
  157. package/src/components/manage/Preferences/PersonalPreferences.jsx +2 -2
  158. package/src/components/manage/Sharing/Sharing.jsx +5 -1
  159. package/src/components/manage/TemplateChooser/TemplateChooser.jsx +38 -0
  160. package/src/components/manage/TemplateChooser/TemplateChooser.test.jsx +34 -0
  161. package/src/components/manage/TemplateChooser/template.svg +10 -0
  162. package/src/components/manage/Toast/Toast.jsx +2 -2
  163. package/src/components/manage/Toolbar/More.jsx +15 -0
  164. package/src/components/manage/Toolbar/Types.jsx +2 -2
  165. package/src/components/manage/UniversalLink/UniversalLink.jsx +2 -6
  166. package/src/components/manage/UniversalLink/UniversalLink.test.jsx +36 -0
  167. package/src/components/manage/Widgets/ColorPickerWidget.jsx +6 -1
  168. package/src/components/manage/Widgets/DatetimeWidget.jsx +9 -5
  169. package/src/components/manage/Widgets/FileWidget.jsx +2 -1
  170. package/src/components/manage/Widgets/ObjectListWidget.jsx +3 -8
  171. package/src/components/manage/Widgets/RecurrenceWidget/ByDayField.jsx +2 -1
  172. package/src/components/manage/Widgets/RecurrenceWidget/MonthOfTheYearField.jsx +2 -1
  173. package/src/components/manage/Widgets/RecurrenceWidget/Occurences.jsx +2 -1
  174. package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +8 -3
  175. package/src/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthField.jsx +2 -1
  176. package/src/components/manage/Widgets/SelectUtils.js +1 -1
  177. package/src/components/manage/Widgets/SelectWidget.jsx +1 -1
  178. package/src/components/theme/Anontools/Anontools.jsx +44 -72
  179. package/src/components/theme/Anontools/Anontools.stories.jsx +16 -6
  180. package/src/components/theme/Anontools/Anontools.test.jsx +16 -2
  181. package/src/components/theme/Breadcrumbs/Breadcrumbs.jsx +52 -99
  182. package/src/components/theme/Breadcrumbs/Breadcrumbs.stories.jsx +14 -13
  183. package/src/components/theme/Comments/CommentEditModal.jsx +63 -115
  184. package/src/components/theme/Component/Component.jsx +1 -1
  185. package/src/components/theme/ContactForm/ContactForm.jsx +108 -192
  186. package/src/components/theme/ContactForm/ContactForm.stories.jsx +1 -1
  187. package/src/components/theme/ContactForm/ContactForm.test.jsx +2 -3
  188. package/src/components/theme/Footer/Footer.jsx +2 -13
  189. package/src/components/theme/Header/Header.jsx +37 -63
  190. package/src/components/theme/Header/Header.test.jsx +18 -0
  191. package/src/components/theme/Icon/Icon.jsx +2 -2
  192. package/src/components/theme/LanguageSelector/LanguageSelector.js +8 -3
  193. package/src/components/theme/Login/Login.jsx +1 -0
  194. package/src/components/theme/Logo/Logo.jsx +2 -1
  195. package/src/components/theme/MultilingualRedirector/MultilingualRedirector.jsx +2 -2
  196. package/src/components/theme/Navigation/NavItem.jsx +4 -2
  197. package/src/components/theme/NotFound/NotFound.jsx +55 -41
  198. package/src/components/theme/PasswordReset/PasswordReset.jsx +7 -4
  199. package/src/components/theme/PasswordReset/RequestPasswordReset.jsx +1 -1
  200. package/src/components/theme/SearchWidget/SearchWidget.jsx +38 -98
  201. package/src/components/theme/Sitemap/Sitemap.jsx +5 -3
  202. package/src/components/theme/View/AlbumView.jsx +9 -1
  203. package/src/components/theme/View/DefaultView.jsx +1 -1
  204. package/src/components/theme/View/EventDatesInfo.jsx +2 -1
  205. package/src/components/theme/View/EventView.jsx +6 -2
  206. package/src/components/theme/View/FileView.jsx +23 -18
  207. package/src/components/theme/View/ImageView.jsx +37 -32
  208. package/src/components/theme/View/LinkView.jsx +53 -78
  209. package/src/components/theme/View/ListingView.jsx +33 -27
  210. package/src/components/theme/View/NewsItemView.jsx +10 -5
  211. package/src/components/theme/View/RenderBlocks.jsx +56 -21
  212. package/src/components/theme/View/RenderEmptyBlock.jsx +5 -0
  213. package/src/components/theme/View/SummaryView.jsx +47 -38
  214. package/src/components/theme/View/TabularView.jsx +59 -53
  215. package/src/components/theme/Widgets/DateWidget.jsx +2 -1
  216. package/src/components/theme/Widgets/DatetimeWidget.jsx +2 -1
  217. package/src/components/theme/Widgets/RelationsWidget.jsx +13 -11
  218. package/src/config/Blocks.jsx +44 -0
  219. package/src/config/ControlPanels.js +2 -0
  220. package/src/config/NonContentRoutes.jsx +1 -0
  221. package/src/config/RichTextEditor/Blocks.jsx +2 -2
  222. package/src/config/RichTextEditor/FromHTML.jsx +2 -2
  223. package/src/config/RichTextEditor/Styles.jsx +1 -1
  224. package/src/config/Widgets.jsx +2 -0
  225. package/src/config/index.js +24 -0
  226. package/src/config/server.js +2 -0
  227. package/src/constants/ActionTypes.js +4 -0
  228. package/src/constants/Indexes.js +3 -1
  229. package/src/constants/Languages.js +8 -4
  230. package/src/express-middleware/devproxy.js +1 -1
  231. package/src/express-middleware/files.js +3 -3
  232. package/src/express-middleware/images.js +4 -4
  233. package/src/express-middleware/ok.js +16 -0
  234. package/src/express-middleware/robotstxt.js +1 -1
  235. package/src/express-middleware/sitemap.js +37 -5
  236. package/src/express-middleware/static.js +3 -3
  237. package/src/helpers/Api/Api.js +1 -1
  238. package/src/helpers/Blocks/Blocks.js +48 -0
  239. package/src/helpers/Blocks/Blocks.test.js +79 -0
  240. package/src/helpers/Extensions/index.js +2 -1
  241. package/src/helpers/Extensions/withBlockSchemaEnhancer.js +15 -11
  242. package/src/helpers/Extensions/withBlockSchemaEnhancer.test.js +145 -0
  243. package/src/helpers/FormValidation/FormValidation.js +40 -2
  244. package/src/helpers/FormValidation/FormValidation.test.js +73 -0
  245. package/src/helpers/Html/Html.jsx +3 -1
  246. package/src/helpers/Html/Html.test.jsx +5 -0
  247. package/src/helpers/MessageLabels/MessageLabels.js +80 -0
  248. package/src/helpers/Robots/Robots.js +24 -6
  249. package/src/helpers/ScrollToTop/ScrollToTop.jsx +5 -3
  250. package/src/helpers/Sitemap/Sitemap.js +44 -2
  251. package/src/helpers/Url/Url.js +27 -6
  252. package/src/helpers/Url/Url.test.js +26 -0
  253. package/src/helpers/Utils/UseDetectClickOutside.stories.jsx +191 -0
  254. package/src/helpers/Utils/Utils.js +63 -13
  255. package/src/helpers/Utils/Utils.test.js +4 -4
  256. package/src/helpers/Utils/usePagination.js +67 -14
  257. package/src/helpers/Utils/usePagination.test.js +115 -0
  258. package/src/helpers/index.js +20 -10
  259. package/src/hooks/client/useClient.js +11 -0
  260. package/src/hooks/clipboard/useClipboard.js +26 -0
  261. package/src/hooks/index.js +2 -0
  262. package/src/icons/grid-block.svg +11 -0
  263. package/src/middleware/Api.test.js +54 -0
  264. package/src/middleware/api.js +24 -6
  265. package/src/middleware/index.js +2 -2
  266. package/src/reducers/actions/actions.js +8 -6
  267. package/src/reducers/actions/actions.test.js +70 -0
  268. package/src/reducers/breadcrumbs/breadcrumbs.js +1 -1
  269. package/src/reducers/index.js +2 -0
  270. package/src/reducers/navigation/navigation.js +1 -1
  271. package/src/reducers/relations/relations.js +173 -0
  272. package/src/reducers/types/types.js +1 -1
  273. package/src/routes.js +14 -0
  274. package/src/server.jsx +28 -23
  275. package/src/start-server.js +2 -2
  276. package/test-setup-config.js +2 -0
  277. package/theme/themes/pastanaga/extras/blocks.less +3 -1
  278. package/theme/themes/pastanaga/extras/contents.less +1 -0
  279. package/theme/themes/pastanaga/extras/grid.less +426 -0
  280. package/theme/themes/pastanaga/extras/main.less +3 -1
  281. package/theme/themes/pastanaga/extras/search.less +6 -0
  282. package/theme/themes/pastanaga/extras/sidebar.less +4 -0
  283. package/theme/themes/pastanaga/extras/toc.less +29 -0
  284. package/theme/themes/pastanaga/extras/userscontrolpanel.less +99 -76
  285. package/.changelog.draft +0 -31
  286. package/.editorconfig +0 -36
  287. package/.storybook/main.js +0 -127
  288. package/.storybook/manager.js +0 -15
  289. package/.storybook/preview.js +0 -21
  290. package/.storybook/static/previewImage.svg +0 -48
  291. package/.yarnrc.yml +0 -5
  292. package/jsdoc.json +0 -16
  293. package/netlify.toml +0 -5
  294. package/pyvenv.cfg +0 -3
  295. package/share/man/man1/ttx.1 +0 -225
  296. package/src/components/theme/Header/Header.md +0 -27
  297. package/towncrier.toml +0 -33
package/.changelog.draft DELETED
@@ -1,31 +0,0 @@
1
- ## 17.0.0-alpha.2 (2023-03-15)
2
-
3
- ### Breaking
4
-
5
- - Add custom CSS animation to hamburger menu. Removed `hamburgers` dependency. @danalvrz [#4433](https://github.com/plone/volto/issues/4433)
6
- - Improve i18n script ordering of addons, so that addons can override translations from their dependencies. @davisagli [#4495](https://github.com/plone/volto/issues/4495)
7
-
8
- ### Feature
9
-
10
- - Add option to hide empty listing blocks @ksuess [#4393](https://github.com/plone/volto/issues/4393)
11
-
12
- ### Bugfix
13
-
14
- - Update build dependencies (razzle and react-dev-utils) @davisagli [#3997](https://github.com/plone/volto/issues/3997)
15
- - Added block prop to BlockDataForm in the Edit component of ToC. If block is not passed, OnChangeBlock will be called with undefined block id. @tedw87 [#4110](https://github.com/plone/volto/issues/4110)
16
- - Fix focus steal in Form @tedw87 [#4230](https://github.com/plone/volto/issues/4230)
17
- - Fixed paste issue in Table Block and added cypress test for pasting text in Table Block. [#4301](https://github.com/plone/volto/issues/4301)
18
- - Fixed i18n script to avoid overwriting translations with an empty msgstr @danalvrz [#4316](https://github.com/plone/volto/issues/4316)
19
- - bugfix: conditionally render all delete items in confirm widget [#4336](https://github.com/plone/volto/issues/4336)
20
- - Make the Site Setup control panel responsive for small screen devices. @lord2anil [#4484](https://github.com/plone/volto/issues/4484)
21
- - The menu for the contents page was unresponsive on mobile devices. Fixed this by changing the menu overflow to scroll. @sudhanshu1309 [#4492](https://github.com/plone/volto/issues/4492)
22
- - Make Drag and Drop list work with container-type inline-size. @robgietema [#4497](https://github.com/plone/volto/issues/4497)
23
- - (fix): Paste button disappearing while coping from nested blocks @dobri1408 [#4505](https://github.com/plone/volto/issues/4505)
24
- - Patch updates for some dependencies. @davisagli [#4520](https://github.com/plone/volto/issues/4520)
25
- - Fix flaky Cypress test introduced in #4521 @sneridagh [#4522](https://github.com/plone/volto/issues/4522)
26
-
27
- ### Documentation
28
-
29
- - Fix training urls @ksuess [#4502](https://github.com/plone/volto/issues/4502)
30
- - Add upgrade guide for 4504 @sneridagh [#4542](https://github.com/plone/volto/issues/4542)
31
-
package/.editorconfig DELETED
@@ -1,36 +0,0 @@
1
- # EditorConfig Configurtaion file, for more details see:
2
- # http://EditorConfig.org
3
- # EditorConfig is a convention description, that could be interpreted
4
- # by multiple editors to enforce common coding conventions for specific
5
- # file types
6
-
7
- # top-most EditorConfig file:
8
- # Will ignore other EditorConfig files in Home directory or upper tree level.
9
- root = true
10
-
11
-
12
- [*] # For All Files
13
- # Unix-style newlines with a newline ending every file
14
- end_of_line = lf
15
- insert_final_newline = true
16
- trim_trailing_whitespace = true
17
- # Set default charset
18
- charset = utf-8
19
- # Indent style default
20
- indent_style = space
21
- # Max Line Length - a hard line wrap, should be disabled
22
- max_line_length = off
23
-
24
- [*.{py,cfg,ini}]
25
- # 4 space indentation
26
- indent_size = 4
27
-
28
- [*.{html,dtml,pt,zpt,xml,zcml,js,jsx,json,less,css,yaml,yml}]
29
- # 2 space indentation
30
- indent_size = 2
31
-
32
- [{Makefile,.gitmodules}]
33
- # Tab indentation (no size specified, but view as 4 spaces)
34
- indent_style = tab
35
- indent_size = unset
36
- tab_width = unset
@@ -1,127 +0,0 @@
1
- const webpack = require('webpack');
2
- const fs = require('fs');
3
- const path = require('path');
4
- const makeLoaderFinder = require('razzle-dev-utils/makeLoaderFinder');
5
- const fileLoaderFinder = makeLoaderFinder('file-loader');
6
- const projectRootPath = path.resolve('.');
7
- const lessPlugin = require('../webpack-plugins/webpack-less-plugin');
8
- const createConfig = require('../node_modules/razzle/config/createConfigAsync.js');
9
- const razzleConfig = require(path.join(projectRootPath, 'razzle.config.js'));
10
- const SVGLOADER = {
11
- test: /icons\/.*\.svg$/,
12
- use: [
13
- {
14
- loader: 'svg-loader',
15
- },
16
- {
17
- loader: 'svgo-loader',
18
- options: {
19
- plugins: [
20
- {
21
- name: 'preset-default',
22
- params: {
23
- overrides: {
24
- convertPathData: false,
25
- removeViewBox: false,
26
- },
27
- },
28
- },
29
- 'removeTitle',
30
- 'removeUselessStrokeAndFill',
31
- ],
32
- },
33
- },
34
- ],
35
- };
36
- const defaultRazzleOptions = {
37
- verbose: false,
38
- debug: {},
39
- buildType: 'iso',
40
- cssPrefix: 'static/css',
41
- jsPrefix: 'static/js',
42
- enableSourceMaps: true,
43
- enableReactRefresh: true,
44
- enableTargetBabelrc: false,
45
- enableBabelCache: true,
46
- forceRuntimeEnvVars: [],
47
- mediaPrefix: 'static/media',
48
- staticCssInDev: false,
49
- emitOnErrors: false,
50
- disableWebpackbar: false,
51
- browserslist: ['>1%', 'last 4 versions', 'Firefox ESR', 'not ie 11', 'not dead']
52
- };
53
- module.exports = {
54
- stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
55
- addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
56
- staticDirs: ['./static'],
57
- webpackFinal: async (config, {
58
- configType
59
- }) => {
60
- // `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION'
61
- // You can change the configuration based on that.
62
- // 'PRODUCTION' is used when building the static version of storybook.
63
-
64
- // Make whatever fine-grained changes you need
65
- let baseConfig;
66
- baseConfig = await createConfig('web', 'dev', {
67
- // clearConsole: false,
68
- modifyWebpackConfig: razzleConfig.modifyWebpackConfig,
69
- plugins: razzleConfig.plugins
70
- }, webpack, false, undefined, [], defaultRazzleOptions);
71
- const AddonConfigurationRegistry = require('../addon-registry');
72
- const registry = new AddonConfigurationRegistry(projectRootPath);
73
- config = lessPlugin({
74
- registry
75
- }).modifyWebpackConfig({
76
- env: {
77
- target: 'web',
78
- dev: 'dev'
79
- },
80
- webpackConfig: config,
81
- webpackObject: webpack,
82
- options: {}
83
- });
84
-
85
- // Put the SVG loader on top and prevent the asset/resource rule
86
- // from processing the app's SVGs
87
- config.module.rules.unshift(SVGLOADER);
88
- const fileLoaderRule = config.module.rules.find(rule => rule.test.test('.svg'));
89
- fileLoaderRule.exclude = /icons\/.*\.svg$/;
90
- config.plugins.unshift(new webpack.DefinePlugin({
91
- __DEVELOPMENT__: true,
92
- __CLIENT__: true,
93
- __SERVER__: false
94
- }));
95
- const resultConfig = {
96
- ...config,
97
- resolve: {
98
- ...config.resolve,
99
- alias: {
100
- ...config.resolve.alias,
101
- ...baseConfig.resolve.alias
102
- }
103
- }
104
- };
105
-
106
- // Addons have to be loaded with babel
107
- const addonPaths = registry.addonNames.map(addon => fs.realpathSync(registry.packages[addon].modulePath));
108
- resultConfig.module.rules[1].exclude = input =>
109
- // exclude every input from node_modules except from @plone/volto
110
- /node_modules\/(?!(@plone\/volto)\/)/.test(input) &&
111
- // If input is in an addon, DON'T exclude it
112
- !addonPaths.some(p => input.includes(p));
113
- return resultConfig;
114
- },
115
- babel: async options => {
116
- return {
117
- ...options,
118
- plugins: [...options.plugins, ['./node_modules/babel-plugin-root-import/build/index.js', {
119
- rootPathSuffix: './src'
120
- }]]
121
- // any extra options you want to set
122
- };
123
- },
124
- core: {
125
- builder: 'webpack5'
126
- }
127
- };
@@ -1,15 +0,0 @@
1
- import { addons } from '@storybook/addons';
2
-
3
- addons.setConfig({
4
- isFullscreen: false,
5
- showNav: true,
6
- showPanel: true,
7
- panelPosition: 'bottom',
8
- sidebarAnimations: true,
9
- enableShortcuts: true,
10
- isToolshown: true,
11
- theme: undefined,
12
- selectedPanel: undefined,
13
- initialActive: 'sidebar',
14
- showRoots: true,
15
- });
@@ -1,21 +0,0 @@
1
- import '@plone/volto/config'; // This is the bootstrap for the global config - client side
2
- import React from 'react';
3
- import { StaticRouter } from 'react-router-dom';
4
- import { IntlProvider } from 'react-intl';
5
- import enMessages from '@root/../locales/en.json';
6
-
7
- import '@root/theme';
8
-
9
- export const parameters = {
10
- actions: { argTypesRegex: '^on[A-Z].*' },
11
- };
12
-
13
- export const decorators = [
14
- (Story) => (
15
- <IntlProvider messages={enMessages} locale="en" defaultLocale="en">
16
- <StaticRouter location="/">
17
- <Story />
18
- </StaticRouter>
19
- </IntlProvider>
20
- ),
21
- ];
@@ -1,48 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 13.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
3
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
- width="158.253px" height="40.686px" viewBox="0 0 158.253 40.686" enable-background="new 0 0 158.253 40.686"
6
- xml:space="preserve">
7
- <g>
8
- <path fill="#0095D3" d="M65.327,23.208h-6.589v11.388h-4.393V5.638h10.981c5.653,0,9.271,3.742,9.271,8.785
9
- S70.979,23.208,65.327,23.208z M65.082,9.583h-6.345v9.639h6.345c3.05,0,5.124-1.749,5.124-4.799
10
- C70.206,11.372,68.132,9.583,65.082,9.583z"/>
11
- <path fill="#0095D3" d="M83.969,34.596c-3.904,0-5.652-2.644-5.652-5.693V5.638h4.148v23.021c0,1.587,0.567,2.399,2.235,2.399h1.83
12
- v3.538H83.969z"/>
13
- <path fill="#0095D3" d="M104.762,32.399c-1.344,1.384-3.377,2.44-6.184,2.44c-2.805,0-4.799-1.058-6.141-2.44
14
- c-1.951-2.032-2.439-4.637-2.439-8.134c0-3.457,0.488-6.061,2.439-8.094c1.342-1.383,3.336-2.44,6.141-2.44
15
- c2.807,0,4.84,1.059,6.184,2.44c1.951,2.033,2.439,4.637,2.439,8.094C107.203,27.763,106.713,30.366,104.762,32.399z
16
- M101.629,18.613c-0.773-0.773-1.83-1.181-3.051-1.181c-1.219,0-2.236,0.406-3.01,1.181c-1.26,1.261-1.422,3.416-1.422,5.652
17
- s0.162,4.393,1.422,5.653c0.773,0.771,1.791,1.22,3.01,1.22c1.221,0,2.277-0.447,3.051-1.22c1.262-1.262,1.424-3.417,1.424-5.653
18
- S102.891,19.873,101.629,18.613z"/>
19
- <path fill="#0095D3" d="M123.643,34.596V22.029c0-3.214-1.83-4.597-4.147-4.597s-4.271,1.423-4.271,4.597v12.566h-4.147v-20.62
20
- h4.065v2.074c1.425-1.546,3.416-2.318,5.49-2.318c2.115,0,3.865,0.691,5.084,1.871c1.586,1.545,2.074,3.497,2.074,5.815v13.178
21
- L123.643,34.596L123.643,34.596z"/>
22
- <path fill="#0095D3" d="M135.772,25.486c0,3.537,1.871,5.774,5.246,5.774c2.317,0,3.539-0.649,5.004-2.115l2.643,2.481
23
- c-2.115,2.114-4.107,3.213-7.727,3.213c-5.166,0-9.273-2.725-9.273-10.574c0-6.671,3.457-10.534,8.744-10.534
24
- c5.531,0,8.744,4.067,8.744,9.925v1.83H135.772z M144.475,19.791c-0.65-1.545-2.113-2.604-4.066-2.604
25
- c-1.951,0-3.457,1.059-4.107,2.604c-0.406,0.936-0.488,1.546-0.529,2.807h9.273C145.003,21.337,144.883,20.726,144.475,19.791z"/>
26
- <circle fill="#0095D3" cx="17.815" cy="11.516" r="4.402"/>
27
- <path fill="#0095D3" d="M31.167,20.311c0,2.433-1.969,4.401-4.403,4.401c-2.427,0-4.401-1.97-4.401-4.401
28
- c0-2.433,1.975-4.401,4.401-4.401C29.2,15.909,31.167,17.879,31.167,20.311z"/>
29
- <circle fill="#0095D3" cx="17.801" cy="29.131" r="4.402"/>
30
- <g>
31
- <path fill="#0095D3" d="M20.441-0.045C9.207-0.044,0.1,9.063,0.099,20.298C0.1,31.532,9.207,40.639,20.441,40.641
32
- c11.235-0.002,20.341-9.107,20.343-20.343C40.783,9.063,31.677-0.044,20.441-0.045z M31.891,31.747
33
- c-2.937,2.934-6.972,4.742-11.45,4.743c-4.478-0.001-8.513-1.811-11.45-4.743C6.058,28.81,4.25,24.775,4.249,20.298
34
- c0.001-4.478,1.809-8.513,4.743-11.45c2.937-2.934,6.972-4.742,11.45-4.743c4.478,0.001,8.513,1.81,11.45,4.743
35
- c2.934,2.938,4.742,6.973,4.743,11.45C36.633,24.775,34.825,28.81,31.891,31.747z"/>
36
- </g>
37
- <g>
38
- <path fill="#0095D3" d="M153.985,9.95c-1.195,0-2.164,0.971-2.164,2.168c0.002,1.197,0.969,2.168,2.164,2.168
39
- c1.199,0,2.172-0.971,2.172-2.168S155.184,9.95,153.985,9.95z M153.985,13.968c-1.021-0.002-1.846-0.827-1.846-1.85
40
- c0.002-1.021,0.825-1.849,1.846-1.851c1.023,0.002,1.852,0.828,1.854,1.851C155.836,13.141,155.008,13.966,153.985,13.968z"/>
41
- </g>
42
- <g>
43
- <path fill="#0095D3" d="M154.507,13.409l-0.54-1.08h-0.486v1.08h-0.389v-2.564h0.994c0.484,0,0.796,0.313,0.796,0.75
44
- c0,0.367-0.224,0.602-0.513,0.68l0.592,1.136L154.507,13.409L154.507,13.409z M154.056,11.195h-0.575v0.803h0.575
45
- c0.261,0,0.437-0.147,0.437-0.399S154.317,11.195,154.056,11.195z"/>
46
- </g>
47
- </g>
48
- </svg>
package/.yarnrc.yml DELETED
@@ -1,5 +0,0 @@
1
- defaultSemverRangePrefix: ""
2
-
3
- nodeLinker: node-modules
4
-
5
- yarnPath: .yarn/releases/yarn-3.2.3.cjs
package/jsdoc.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "tags": {
3
- "allowUnknownTags": true
4
- },
5
- "source": {
6
- "include": ["./src"],
7
- "includePattern": ".+\\.js$",
8
- "excludePattern": ".+\\.(spec|e2e)\\.js$"
9
- },
10
- "opts": {
11
- "encoding": "utf8",
12
- "destination": "jsdoc",
13
- "recurse": true,
14
- "verbose": true
15
- }
16
- }
package/netlify.toml DELETED
@@ -1,5 +0,0 @@
1
- [build.environment]
2
- PYTHON_VERSION = "3.8"
3
- NODE_VERSION = "16.17.1"
4
- [build]
5
- ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ./docs/"
package/pyvenv.cfg DELETED
@@ -1,3 +0,0 @@
1
- home = /opt/homebrew/opt/python@3.9/bin
2
- include-system-site-packages = false
3
- version = 3.9.15
@@ -1,225 +0,0 @@
1
- .Dd May 18, 2004
2
- .\" ttx is not specific to any OS, but contrary to what groff_mdoc(7)
3
- .\" seems to imply, entirely omitting the .Os macro causes 'BSD' to
4
- .\" be used, so I give a zero-width space as its argument.
5
- .Os \&
6
- .\" The "FontTools Manual" argument apparently has no effect in
7
- .\" groff 1.18.1. I think it is a bug in the -mdoc groff package.
8
- .Dt TTX 1 "FontTools Manual"
9
- .Sh NAME
10
- .Nm ttx
11
- .Nd tool for manipulating TrueType and OpenType fonts
12
- .Sh SYNOPSIS
13
- .Nm
14
- .Bk
15
- .Op Ar option ...
16
- .Ek
17
- .Bk
18
- .Ar file ...
19
- .Ek
20
- .Sh DESCRIPTION
21
- .Nm
22
- is a tool for manipulating TrueType and OpenType fonts. It can convert
23
- TrueType and OpenType fonts to and from an
24
- .Tn XML Ns -based format called
25
- .Tn TTX .
26
- .Tn TTX
27
- files have a
28
- .Ql .ttx
29
- extension.
30
- .Pp
31
- For each
32
- .Ar file
33
- argument it is given,
34
- .Nm
35
- detects whether it is a
36
- .Ql .ttf ,
37
- .Ql .otf
38
- or
39
- .Ql .ttx
40
- file and acts accordingly: if it is a
41
- .Ql .ttf
42
- or
43
- .Ql .otf
44
- file, it generates a
45
- .Ql .ttx
46
- file; if it is a
47
- .Ql .ttx
48
- file, it generates a
49
- .Ql .ttf
50
- or
51
- .Ql .otf
52
- file.
53
- .Pp
54
- By default, every output file is created in the same directory as the
55
- corresponding input file and with the same name except for the
56
- extension, which is substituted appropriately.
57
- .Nm
58
- never overwrites existing files; if necessary, it appends a suffix to
59
- the output file name before the extension, as in
60
- .Pa Arial#1.ttf .
61
- .Ss "General options"
62
- .Bl -tag -width ".Fl t Ar table"
63
- .It Fl h
64
- Display usage information.
65
- .It Fl d Ar dir
66
- Write the output files to directory
67
- .Ar dir
68
- instead of writing every output file to the same directory as the
69
- corresponding input file.
70
- .It Fl o Ar file
71
- Write the output to
72
- .Ar file
73
- instead of writing it to the same directory as the
74
- corresponding input file.
75
- .It Fl v
76
- Be verbose. Write more messages to the standard output describing what
77
- is being done.
78
- .It Fl a
79
- Allow virtual glyphs ID's on compile or decompile.
80
- .El
81
- .Ss "Dump options"
82
- The following options control the process of dumping font files
83
- (TrueType or OpenType) to
84
- .Tn TTX
85
- files.
86
- .Bl -tag -width ".Fl t Ar table"
87
- .It Fl l
88
- List table information. Instead of dumping the font to a
89
- .Tn TTX
90
- file, display minimal information about each table.
91
- .It Fl t Ar table
92
- Dump table
93
- .Ar table .
94
- This option may be given multiple times to dump several tables at
95
- once. When not specified, all tables are dumped.
96
- .It Fl x Ar table
97
- Exclude table
98
- .Ar table
99
- from the list of tables to dump. This option may be given multiple
100
- times to exclude several tables from the dump. The
101
- .Fl t
102
- and
103
- .Fl x
104
- options are mutually exclusive.
105
- .It Fl s
106
- Split tables. Dump each table to a separate
107
- .Tn TTX
108
- file and write (under the name that would have been used for the output
109
- file if the
110
- .Fl s
111
- option had not been given) one small
112
- .Tn TTX
113
- file containing references to the individual table dump files. This
114
- file can be used as input to
115
- .Nm
116
- as long as the referenced files can be found in the same directory.
117
- .It Fl i
118
- .\" XXX: I suppose OpenType programs (exist and) are also affected.
119
- Don't disassemble TrueType instructions. When this option is specified,
120
- all TrueType programs (glyph programs, the font program and the
121
- pre-program) are written to the
122
- .Tn TTX
123
- file as hexadecimal data instead of
124
- assembly. This saves some time and results in smaller
125
- .Tn TTX
126
- files.
127
- .It Fl y Ar n
128
- When decompiling a TrueType Collection (TTC) file,
129
- decompile font number
130
- .Ar n ,
131
- starting from 0.
132
- .El
133
- .Ss "Compilation options"
134
- The following options control the process of compiling
135
- .Tn TTX
136
- files into font files (TrueType or OpenType):
137
- .Bl -tag -width ".Fl t Ar table"
138
- .It Fl m Ar fontfile
139
- Merge the input
140
- .Tn TTX
141
- file
142
- .Ar file
143
- with
144
- .Ar fontfile .
145
- No more than one
146
- .Ar file
147
- argument can be specified when this option is used.
148
- .It Fl b
149
- Don't recalculate glyph bounding boxes. Use the values in the
150
- .Tn TTX
151
- file as is.
152
- .El
153
- .Sh "THE TTX FILE FORMAT"
154
- You can find some information about the
155
- .Tn TTX
156
- file format in
157
- .Pa documentation.html .
158
- In particular, you will find in that file the list of tables understood by
159
- .Nm
160
- and the relations between TrueType GlyphIDs and the glyph names used in
161
- .Tn TTX
162
- files.
163
- .Sh EXAMPLES
164
- In the following examples, all files are read from and written to the
165
- current directory. Additionally, the name given for the output file
166
- assumes in every case that it did not exist before
167
- .Nm
168
- was invoked.
169
- .Pp
170
- Dump the TrueType font contained in
171
- .Pa FreeSans.ttf
172
- to
173
- .Pa FreeSans.ttx :
174
- .Pp
175
- .Dl ttx FreeSans.ttf
176
- .Pp
177
- Compile
178
- .Pa MyFont.ttx
179
- into a TrueType or OpenType font file:
180
- .Pp
181
- .Dl ttx MyFont.ttx
182
- .Pp
183
- List the tables in
184
- .Pa FreeSans.ttf
185
- along with some information:
186
- .Pp
187
- .Dl ttx -l FreeSans.ttf
188
- .Pp
189
- Dump the
190
- .Sq cmap
191
- table from
192
- .Pa FreeSans.ttf
193
- to
194
- .Pa FreeSans.ttx :
195
- .Pp
196
- .Dl ttx -t cmap FreeSans.ttf
197
- .Sh NOTES
198
- On MS\-Windows and MacOS,
199
- .Nm
200
- is available as a graphical application to which files can be dropped.
201
- .Sh SEE ALSO
202
- .Pa documentation.html
203
- .Pp
204
- .Xr fontforge 1 ,
205
- .Xr ftinfo 1 ,
206
- .Xr gfontview 1 ,
207
- .Xr xmbdfed 1 ,
208
- .Xr Font::TTF 3pm
209
- .Sh AUTHORS
210
- .Nm
211
- was written by
212
- .An -nosplit
213
- .An "Just van Rossum" Aq just@letterror.com .
214
- .Pp
215
- This manual page was written by
216
- .An "Florent Rougon" Aq f.rougon@free.fr
217
- for the Debian GNU/Linux system based on the existing FontTools
218
- documentation. It may be freely used, modified and distributed without
219
- restrictions.
220
- .\" For Emacs:
221
- .\" Local Variables:
222
- .\" fill-column: 72
223
- .\" sentence-end: "[.?!][]\"')}]*\\($\\| $\\| \\| \\)[ \n]*"
224
- .\" sentence-end-double-space: t
225
- .\" End:
@@ -1,27 +0,0 @@
1
- Header example:
2
-
3
- ```jsx static
4
- <Header pathname="" />
5
- ```
6
-
7
- Output:
8
-
9
- ```jsx noeditor
10
- const { Provider } = require('react-intl-redux');
11
- const configureStore = require('redux-mock-store').default;
12
- const store = configureStore()({
13
- userSession: {
14
- login: {},
15
- },
16
- intl: {
17
- locale: 'en',
18
- messages: {},
19
- },
20
- });
21
-
22
- <div className={'rsg--pre-42'}>
23
- <Provider store={store}>
24
- <Header pathname="" />
25
- </Provider>
26
- </div>;
27
- ```
package/towncrier.toml DELETED
@@ -1,33 +0,0 @@
1
- [tool.towncrier]
2
- filename = "CHANGELOG.md"
3
- directory = "news/"
4
- title_format = "## {version} ({project_date})"
5
- underlines = ["", "", ""]
6
- template = "packages/scripts/templates/towncrier_template.jinja"
7
- start_string = "<!-- towncrier release notes start -->\n"
8
- issue_format = "[#{issue}](https://github.com/plone/volto/issues/{issue})"
9
-
10
- [[tool.towncrier.type]]
11
- directory = "breaking"
12
- name = "Breaking"
13
- showcontent = true
14
-
15
- [[tool.towncrier.type]]
16
- directory = "feature"
17
- name = "Feature"
18
- showcontent = true
19
-
20
- [[tool.towncrier.type]]
21
- directory = "bugfix"
22
- name = "Bugfix"
23
- showcontent = true
24
-
25
- [[tool.towncrier.type]]
26
- directory = "internal"
27
- name = "Internal"
28
- showcontent = true
29
-
30
- [[tool.towncrier.type]]
31
- directory = "documentation"
32
- name = "Documentation"
33
- showcontent = true