@plone/volto 17.0.0-alpha.0 → 17.0.0-alpha.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.
Files changed (61) hide show
  1. package/.changelog.draft +21 -12
  2. package/.yarn/install-state.gz +0 -0
  3. package/CHANGELOG.md +118 -5
  4. package/README.md +4 -4
  5. package/cypress/support/commands.js +25 -0
  6. package/locales/ca/LC_MESSAGES/volto.po +5 -0
  7. package/locales/ca.json +1 -1
  8. package/locales/de/LC_MESSAGES/volto.po +5 -0
  9. package/locales/de.json +1 -1
  10. package/locales/en/LC_MESSAGES/volto.po +5 -0
  11. package/locales/en.json +1 -1
  12. package/locales/es/LC_MESSAGES/volto.po +5 -0
  13. package/locales/es.json +1 -1
  14. package/locales/eu/LC_MESSAGES/volto.po +5 -0
  15. package/locales/eu.json +1 -1
  16. package/locales/fi.json +1 -1
  17. package/locales/fr/LC_MESSAGES/volto.po +5 -0
  18. package/locales/fr.json +1 -1
  19. package/locales/it/LC_MESSAGES/volto.po +5 -0
  20. package/locales/it.json +1 -1
  21. package/locales/ja/LC_MESSAGES/volto.po +5 -0
  22. package/locales/ja.json +1 -1
  23. package/locales/nl/LC_MESSAGES/volto.po +5 -0
  24. package/locales/nl.json +1 -1
  25. package/locales/pt/LC_MESSAGES/volto.po +5 -0
  26. package/locales/pt.json +1 -1
  27. package/locales/pt_BR/LC_MESSAGES/volto.po +5 -0
  28. package/locales/pt_BR.json +1 -1
  29. package/locales/ro/LC_MESSAGES/volto.po +5 -0
  30. package/locales/ro.json +1 -1
  31. package/locales/volto.pot +5 -0
  32. package/locales/zh_CN/LC_MESSAGES/volto.po +5 -0
  33. package/locales/zh_CN.json +1 -1
  34. package/package-why.json +0 -1
  35. package/package.json +7 -7
  36. package/packages/volto-slate/package.json +1 -1
  37. package/packages/volto-slate/src/blocks/Table/TableBlockView.jsx +4 -4
  38. package/packages/volto-slate/src/blocks/Table/index.js +2 -0
  39. package/src/components/manage/BlockChooser/BlockChooserButton.jsx +63 -29
  40. package/src/components/manage/BlockChooser/BlockChooserSearch.jsx +0 -1
  41. package/src/components/manage/Blocks/Listing/Edit.jsx +0 -5
  42. package/src/components/manage/Blocks/Listing/ListingBody.jsx +77 -61
  43. package/src/components/manage/Blocks/Listing/View.jsx +0 -4
  44. package/src/components/manage/Blocks/ToC/Edit.jsx +1 -0
  45. package/src/components/manage/Contents/Contents.jsx +35 -8
  46. package/src/components/manage/Controlpanels/Controlpanels.jsx +1 -1
  47. package/src/components/manage/DragDropList/DragDropList.jsx +63 -42
  48. package/src/components/manage/Form/BlocksToolbar.jsx +5 -1
  49. package/src/components/manage/Form/Form.jsx +6 -2
  50. package/src/components/manage/History/History.jsx +35 -18
  51. package/src/components/theme/View/EventView.jsx +1 -1
  52. package/src/components/theme/View/NewsItemView.jsx +1 -1
  53. package/src/config/index.js +1 -0
  54. package/src/config/server.js +19 -0
  55. package/src/express-middleware/devproxy.js +4 -2
  56. package/src/express-middleware/static.js +32 -0
  57. package/src/server.jsx +1 -7
  58. package/src/start-server.js +4 -2
  59. package/theme/themes/pastanaga/extras/blocks.less +0 -9
  60. package/theme/themes/pastanaga/extras/contents.less +1 -0
  61. package/theme/themes/pastanaga/extras/main.less +80 -1
package/src/server.jsx CHANGED
@@ -59,13 +59,6 @@ const supported = new locale.Locales(keys(languages), 'en');
59
59
 
60
60
  const server = express()
61
61
  .disable('x-powered-by')
62
- .use(
63
- express.static(
64
- process.env.BUILD_DIR
65
- ? path.join(process.env.BUILD_DIR, 'public')
66
- : process.env.RAZZLE_PUBLIC_DIR,
67
- ),
68
- )
69
62
  .head('/*', function (req, res) {
70
63
  // Support for HEAD requests. Required by start-test utility in CI.
71
64
  res.send('');
@@ -329,6 +322,7 @@ export const defaultReadCriticalCss = () => {
329
322
  // Exposed for the console bootstrap info messages
330
323
  server.apiPath = config.settings.apiPath;
331
324
  server.devProxyToApiPath = config.settings.devProxyToApiPath;
325
+ server.proxyRewriteTarget = config.settings.proxyRewriteTarget;
332
326
  server.publicURL = config.settings.publicURL;
333
327
 
334
328
  export default server;
@@ -19,9 +19,11 @@ export default () => {
19
19
  } else {
20
20
  console.log(`API server (API_PATH) is set to: ${app.apiPath}`);
21
21
  }
22
- if (__DEVELOPMENT__ && app.devProxyToApiPath)
22
+ if (app.devProxyToApiPath)
23
23
  console.log(
24
- `Using internal proxy: ${app.publicURL} -> ${app.devProxyToApiPath}`,
24
+ `Proxying API requests from ${app.publicURL}/++api++ to ${
25
+ app.devProxyToApiPath
26
+ }${app.proxyRewriteTarget || ''}`,
25
27
  );
26
28
  console.log(`🎭 Volto started at ${bind_address}:${port} 🚀`);
27
29
 
@@ -482,7 +482,6 @@ body.has-toolbar.has-sidebar-collapsed .ui.wrapper > .ui.inner.block.full {
482
482
  border: none !important;
483
483
  background: white !important;
484
484
  border-radius: 50% !important;
485
- transform: translateX(-50%);
486
485
  }
487
486
 
488
487
  &:not(.new-add-block) {
@@ -712,20 +711,12 @@ body.has-toolbar.has-sidebar-collapsed .ui.wrapper > .ui.inner.block.full {
712
711
  }
713
712
 
714
713
  .blocks-chooser {
715
- position: absolute;
716
- z-index: 10;
717
- top: 100%;
718
- left: 50%;
719
714
  width: 310px;
720
715
  padding: 4px;
721
716
  background-color: rgba(255, 255, 255, 0.975);
722
717
  border-radius: 2px;
723
718
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
724
719
 
725
- &.new-add-block {
726
- transform: translate(-50%, 22px);
727
- }
728
-
729
720
  &:not(.new-add-block) {
730
721
  top: -12px;
731
722
  left: -9px;
@@ -38,6 +38,7 @@
38
38
  .ui.menu.top-menu {
39
39
  padding: 10px 0;
40
40
  border-bottom: 4px solid #c7d5d8;
41
+ overflow-x: scroll;
41
42
  }
42
43
 
43
44
  .ui.menu .menu.top-menu-menu {
@@ -8,7 +8,6 @@
8
8
  @import (multiple) '../../theme.config';
9
9
 
10
10
  // Extras (third party libs)
11
- @import (less) '~hamburgers/dist/hamburgers.css';
12
11
  @import (less) '~react-toastify/dist/ReactToastify.css';
13
12
 
14
13
  // Mixins
@@ -494,6 +493,86 @@ fieldset.invisible {
494
493
  .hamburger-wrapper {
495
494
  position: relative;
496
495
  z-index: 5;
496
+ width: 70px;
497
+ height: 59px;
498
+ padding: 15px 15px;
499
+
500
+ .hamburger {
501
+ position: relative;
502
+ width: 40px;
503
+ height: 24px;
504
+ padding: 0;
505
+ border: none;
506
+ background-color: transparent;
507
+ cursor: pointer;
508
+ transition: 0.3s ease-in-out;
509
+ }
510
+
511
+ .hamburger::after {
512
+ position: absolute;
513
+ top: 0;
514
+ left: 0;
515
+ display: inline-block;
516
+ width: 100%;
517
+ height: 4px;
518
+ background-color: #000;
519
+ border-radius: 4px;
520
+ content: '';
521
+ transition: 0.3s ease-in-out;
522
+ }
523
+
524
+ .hamburger::before {
525
+ position: absolute;
526
+ top: 20px;
527
+ left: 0;
528
+ display: inline-block;
529
+ width: 100%;
530
+ height: 4px;
531
+ background-color: #000;
532
+ border-radius: 4px;
533
+ content: '';
534
+ transition: 0.3s ease-in-out;
535
+ }
536
+
537
+ .hamburger-inner {
538
+ position: absolute;
539
+ top: 10px;
540
+ left: 0;
541
+ display: inline-block;
542
+ width: 100%;
543
+ height: 4px;
544
+ border-radius: 4px;
545
+ transition: 0.3s ease-in-out;
546
+ }
547
+
548
+ .hamburger.is-active::after,
549
+ .hamburger.is-active::before {
550
+ top: 10px;
551
+ left: 50%;
552
+ width: 0%;
553
+ }
554
+
555
+ .hamburger-inner::after,
556
+ .hamburger-inner::before {
557
+ position: absolute;
558
+ top: 0;
559
+ left: 0;
560
+ display: block;
561
+ width: 100%;
562
+ height: 4px;
563
+ background-color: #000;
564
+ border-radius: 4px;
565
+ content: '';
566
+ transition: 0.3s ease-in-out;
567
+ }
568
+
569
+ .hamburger.is-active .hamburger-inner::after {
570
+ transform: rotate(45deg);
571
+ }
572
+
573
+ .hamburger.is-active .hamburger-inner::before {
574
+ transform: rotate(-45deg);
575
+ }
497
576
  }
498
577
 
499
578
  .mobile-menu {