@plone/volto 18.0.0-alpha.28 → 18.0.0-alpha.29

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 CHANGED
@@ -17,6 +17,17 @@ myst:
17
17
 
18
18
  <!-- towncrier release notes start -->
19
19
 
20
+ ## 18.0.0-alpha.29 (2024-04-26)
21
+
22
+ ### Feature
23
+
24
+ - Add Vite (client only, no SSR) build. Update Next.js 14.2.2 and Remix to 2.8.0 @sneridagh [#5970](https://github.com/plone/volto/issues/5970)
25
+
26
+ ### Bugfix
27
+
28
+ - Add possibility to pass down `locale`, `messages` and `defaultLocale` properties inside the `customStore` object to `IntlProvider`. With this change we can control react-intl language provider from inside storybook and switch for example from english to german with storybook args. [#5976](https://github.com/plone/volto/issues/5976)
29
+ - Fix no router link in logo @sneridagh [#5981](https://github.com/plone/volto/issues/5981)
30
+
20
31
  ## 18.0.0-alpha.28 (2024-04-23)
21
32
 
22
33
  ### Bugfix
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "18.0.0-alpha.28",
12
+ "version": "18.0.0-alpha.29",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -236,8 +236,8 @@
236
236
  "url": "^0.11.3",
237
237
  "use-deep-compare-effect": "1.8.1",
238
238
  "uuid": "^8.3.2",
239
- "@plone/volto-slate": "18.0.0-alpha.12",
240
239
  "@plone/registry": "1.5.6",
240
+ "@plone/volto-slate": "18.0.0-alpha.12",
241
241
  "@plone/scripts": "3.6.1"
242
242
  },
243
243
  "devDependencies": {
@@ -353,7 +353,7 @@
353
353
  "webpack-dev-server": "4.11.1",
354
354
  "webpack-node-externals": "3.0.0",
355
355
  "why": "0.6.2",
356
- "@plone/types": "1.0.0-alpha.10",
356
+ "@plone/types": "1.0.0-alpha.11",
357
357
  "@plone/volto-coresandbox": "1.0.0"
358
358
  },
359
359
  "volta": {
@@ -7,7 +7,7 @@ import { useEffect } from 'react';
7
7
  import { Image } from 'semantic-ui-react';
8
8
  import LogoImage from '@plone/volto/components/theme/Logo/Logo.svg';
9
9
  import { useSelector, useDispatch } from 'react-redux';
10
- import { useLocation } from 'react-router-dom';
10
+ import { Link, useLocation } from 'react-router-dom';
11
11
  import { getNavroot } from '@plone/volto/actions';
12
12
  import {
13
13
  flattenToAppURL,
@@ -48,7 +48,7 @@ const Logo = () => {
48
48
  const navRootPath = flattenToAppURL(navroot?.navroot?.['@id']) || '/';
49
49
 
50
50
  return (
51
- <a href={navRootPath} aria-label={intl.formatMessage(messages.home)}>
51
+ <Link to={navRootPath} aria-label={intl.formatMessage(messages.home)}>
52
52
  <Image
53
53
  src={
54
54
  site['plone.site_logo']
@@ -59,7 +59,7 @@ const Logo = () => {
59
59
  intl.formatMessage(messages.logoOf) + ' ' + site['plone.site_title']
60
60
  }
61
61
  />
62
- </a>
62
+ </Link>
63
63
  );
64
64
  };
65
65
 
package/src/storybook.jsx CHANGED
@@ -1387,11 +1387,16 @@ export default class Wrapper extends Component {
1387
1387
  render() {
1388
1388
  const mockStore = configureStore();
1389
1389
  const store = mockStore(this.customState());
1390
+ const state = store.getState();
1390
1391
 
1391
1392
  return (
1392
1393
  <Provider store={store}>
1393
1394
  <PluggablesProvider>
1394
- <IntlProvider locale="en">
1395
+ <IntlProvider
1396
+ locale={state.intl.locale}
1397
+ messages={state.intl.messages}
1398
+ defaultLocale={state.intl.defaultLocale ?? 'en'}
1399
+ >
1395
1400
  <StaticRouter location={this.props.location}>
1396
1401
  <div className="volto-storybook-container">
1397
1402
  {this.props.children}
@@ -1434,11 +1439,16 @@ export class RealStoreWrapper extends Component {
1434
1439
  // If thunk is not included there's a complaint about async actions
1435
1440
  const history = createBrowserHistory();
1436
1441
  const store = configureRealStore(this.customState(), history);
1442
+ const state = store.getState();
1437
1443
 
1438
1444
  return (
1439
1445
  <Provider store={store}>
1440
1446
  <PluggablesProvider>
1441
- <IntlProvider locale="en">
1447
+ <IntlProvider
1448
+ locale={state.intl.locale}
1449
+ messages={state.intl.messages}
1450
+ defaultLocale={state.intl.defaultLocale ?? 'en'}
1451
+ >
1442
1452
  <StaticRouter location={this.props.location}>
1443
1453
  <div className="volto-storybook-container">
1444
1454
  {this.props.children}