@plone/volto 18.0.0-alpha.24 → 18.0.0-alpha.25
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 +11 -0
- package/package.json +18 -16
- package/src/components/manage/UniversalLink/{UniversalLink.stories.mdx → UniversalLink.stories.js} +33 -25
- package/src/components/theme/Avatar/Avatar.stories.js +24 -0
- package/src/components/theme/Title/Title.stories.js +22 -0
- package/types/components/manage/UniversalLink/UniversalLink.stories.d.ts +22 -0
- package/types/components/theme/Avatar/Avatar.stories.d.ts +20 -0
- package/types/components/theme/Title/Title.stories.d.ts +18 -0
- package/src/components/theme/Avatar/Avatar.stories.mdx +0 -25
- package/src/components/theme/Title/Title.stories.mdx +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,17 @@ myst:
|
|
|
17
17
|
|
|
18
18
|
<!-- towncrier release notes start -->
|
|
19
19
|
|
|
20
|
+
## 18.0.0-alpha.25 (2024-03-24)
|
|
21
|
+
|
|
22
|
+
### Internal
|
|
23
|
+
|
|
24
|
+
- Remove dangling unused lines in StoryBook config @sneridagh [#5911](https://github.com/plone/volto/issues/5911)
|
|
25
|
+
- Upgrade Storybook to version 8. @sneridagh [#5912](https://github.com/plone/volto/issues/5912)
|
|
26
|
+
|
|
27
|
+
### Documentation
|
|
28
|
+
|
|
29
|
+
- Update information about Quanta plans. [@jensens] [#5903](https://github.com/plone/volto/issues/5903)
|
|
30
|
+
|
|
20
31
|
## 18.0.0-alpha.24 (2024-03-23)
|
|
21
32
|
|
|
22
33
|
### Feature
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "18.0.0-alpha.
|
|
12
|
+
"version": "18.0.0-alpha.25",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "git@github.com:plone/volto.git"
|
|
@@ -236,9 +236,9 @@
|
|
|
236
236
|
"url": "^0.11.3",
|
|
237
237
|
"use-deep-compare-effect": "1.8.1",
|
|
238
238
|
"uuid": "^8.3.2",
|
|
239
|
-
"@plone/scripts": "3.6.1",
|
|
240
239
|
"@plone/registry": "1.5.4",
|
|
241
|
-
"@plone/volto-slate": "18.0.0-alpha.10"
|
|
240
|
+
"@plone/volto-slate": "18.0.0-alpha.10",
|
|
241
|
+
"@plone/scripts": "3.6.1"
|
|
242
242
|
},
|
|
243
243
|
"devDependencies": {
|
|
244
244
|
"@babel/core": "^7.0.0",
|
|
@@ -251,18 +251,19 @@
|
|
|
251
251
|
"@babel/plugin-syntax-export-namespace-from": "7.8.3",
|
|
252
252
|
"@babel/runtime": "7.20.6",
|
|
253
253
|
"@babel/types": "7.20.5",
|
|
254
|
+
"@jest/globals": "^29.7.0",
|
|
254
255
|
"@loadable/babel-plugin": "5.13.2",
|
|
255
256
|
"@loadable/webpack-plugin": "5.15.2",
|
|
256
|
-
"@jest/globals": "^29.7.0",
|
|
257
257
|
"@sinonjs/fake-timers": "^6.0.1",
|
|
258
|
-
"@storybook/addon-actions": "^
|
|
259
|
-
"@storybook/addon-controls": "
|
|
260
|
-
"@storybook/addon-docs": "^
|
|
261
|
-
"@storybook/addon-essentials": "^
|
|
262
|
-
"@storybook/addon-links": "^
|
|
263
|
-
"@storybook/
|
|
264
|
-
"@storybook/
|
|
265
|
-
"@storybook/react": "^
|
|
258
|
+
"@storybook/addon-actions": "^8.0.4",
|
|
259
|
+
"@storybook/addon-controls": "^8.0.4",
|
|
260
|
+
"@storybook/addon-docs": "^8.0.4",
|
|
261
|
+
"@storybook/addon-essentials": "^8.0.4",
|
|
262
|
+
"@storybook/addon-links": "^8.0.4",
|
|
263
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
264
|
+
"@storybook/react": "^8.0.4",
|
|
265
|
+
"@storybook/react-webpack5": "^8.0.4",
|
|
266
|
+
"@storybook/theming": "^8.0.4",
|
|
266
267
|
"@testing-library/cypress": "10.0.1",
|
|
267
268
|
"@testing-library/jest-dom": "6.4.2",
|
|
268
269
|
"@testing-library/react": "14.2.0",
|
|
@@ -306,8 +307,8 @@
|
|
|
306
307
|
"identity-obj-proxy": "3.0.0",
|
|
307
308
|
"jest": "26.6.3",
|
|
308
309
|
"jest-environment-jsdom": "^26",
|
|
309
|
-
"jsdom": "^16.7.0",
|
|
310
310
|
"jest-file": "1.0.0",
|
|
311
|
+
"jsdom": "^16.7.0",
|
|
311
312
|
"jsonwebtoken": "9.0.0",
|
|
312
313
|
"less": "3.11.1",
|
|
313
314
|
"less-loader": "11.1.0",
|
|
@@ -331,6 +332,7 @@
|
|
|
331
332
|
"release-it": "^17.1.1",
|
|
332
333
|
"semver": "^7.5.4",
|
|
333
334
|
"start-server-and-test": "1.14.0",
|
|
335
|
+
"storybook": "^8.0.4",
|
|
334
336
|
"style-loader": "3.3.1",
|
|
335
337
|
"stylelint": "16.2.1",
|
|
336
338
|
"stylelint-config-idiomatic-order": "10.0.0",
|
|
@@ -344,7 +346,7 @@
|
|
|
344
346
|
"typescript": "^5.4.2",
|
|
345
347
|
"use-trace-update": "1.3.2",
|
|
346
348
|
"wait-on": "6.0.0",
|
|
347
|
-
"webpack": "5.
|
|
349
|
+
"webpack": "5.90.1",
|
|
348
350
|
"webpack-bundle-analyzer": "4.10.1",
|
|
349
351
|
"webpack-dev-server": "4.11.1",
|
|
350
352
|
"webpack-node-externals": "3.0.0",
|
|
@@ -382,7 +384,7 @@
|
|
|
382
384
|
"release": "release-it",
|
|
383
385
|
"release-major-alpha": "release-it major --preRelease=alpha",
|
|
384
386
|
"release-alpha": "release-it --preRelease=alpha",
|
|
385
|
-
"storybook": "
|
|
386
|
-
"build-storybook": "build
|
|
387
|
+
"storybook": "storybook dev -p 6006",
|
|
388
|
+
"build-storybook": "storybook build"
|
|
387
389
|
}
|
|
388
390
|
}
|
package/src/components/manage/UniversalLink/{UniversalLink.stories.mdx → UniversalLink.stories.js}
RENAMED
|
@@ -1,30 +1,9 @@
|
|
|
1
|
-
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
1
|
import UniversalLinkComponent from './UniversalLink';
|
|
3
2
|
import { injectIntl } from 'react-intl';
|
|
4
3
|
import configureStore from 'redux-mock-store';
|
|
5
4
|
import { Provider } from 'react-intl-redux';
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
title="UniversalLink"
|
|
9
|
-
argTypes={{
|
|
10
|
-
href: { control: 'text' },
|
|
11
|
-
item: { control: 'object' },
|
|
12
|
-
text: { control: 'text' },
|
|
13
|
-
}}
|
|
14
|
-
decorators={[
|
|
15
|
-
(Story) => (
|
|
16
|
-
<div style={{ width: '400px' }}>
|
|
17
|
-
<Story />
|
|
18
|
-
</div>
|
|
19
|
-
),
|
|
20
|
-
]}
|
|
21
|
-
/>
|
|
22
|
-
|
|
23
|
-
# UniversalLink
|
|
24
|
-
|
|
25
|
-
Link to url or item
|
|
26
|
-
|
|
27
|
-
export const UniversalLink = (args) => {
|
|
6
|
+
const UniversalLink = (args) => {
|
|
28
7
|
const mockStore = configureStore();
|
|
29
8
|
const store = mockStore({
|
|
30
9
|
userSession: {
|
|
@@ -57,8 +36,37 @@ export const UniversalLink = (args) => {
|
|
|
57
36
|
);
|
|
58
37
|
};
|
|
59
38
|
|
|
60
|
-
|
|
39
|
+
export default {
|
|
40
|
+
title: 'UniversalLink',
|
|
61
41
|
|
|
62
|
-
|
|
42
|
+
argTypes: {
|
|
43
|
+
href: {
|
|
44
|
+
control: 'text',
|
|
45
|
+
},
|
|
63
46
|
|
|
64
|
-
|
|
47
|
+
item: {
|
|
48
|
+
control: 'object',
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
text: {
|
|
52
|
+
control: 'text',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
decorators: [
|
|
57
|
+
(Story) => (
|
|
58
|
+
<div
|
|
59
|
+
style={{
|
|
60
|
+
width: '400px',
|
|
61
|
+
}}
|
|
62
|
+
>
|
|
63
|
+
<Story />
|
|
64
|
+
</div>
|
|
65
|
+
),
|
|
66
|
+
],
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export const UniversalLink_ = {
|
|
70
|
+
render: injectIntl(UniversalLink).bind({}),
|
|
71
|
+
name: 'UniversalLink',
|
|
72
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import Avatar from './Avatar';
|
|
2
|
+
|
|
3
|
+
const UserAvatar = (args) => <Avatar {...args} />;
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Avatar',
|
|
7
|
+
|
|
8
|
+
argTypes: {
|
|
9
|
+
title: {
|
|
10
|
+
control: 'text',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const Avatar3 = {
|
|
16
|
+
render: UserAvatar.bind({}),
|
|
17
|
+
name: 'Avatar',
|
|
18
|
+
|
|
19
|
+
args: {
|
|
20
|
+
title: 'Plone',
|
|
21
|
+
color: '#007eb6',
|
|
22
|
+
size: 60,
|
|
23
|
+
},
|
|
24
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import TitleComponent from './Title';
|
|
2
|
+
|
|
3
|
+
const Title = (args) => <TitleComponent {...args} />;
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Title',
|
|
7
|
+
|
|
8
|
+
argTypes: {
|
|
9
|
+
title: {
|
|
10
|
+
control: 'text',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const Title_ = {
|
|
16
|
+
render: Title.bind({}),
|
|
17
|
+
name: 'Title',
|
|
18
|
+
|
|
19
|
+
args: {
|
|
20
|
+
title: 'Welcome to Plone',
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let title: string;
|
|
3
|
+
namespace argTypes {
|
|
4
|
+
namespace href {
|
|
5
|
+
let control: string;
|
|
6
|
+
}
|
|
7
|
+
namespace item {
|
|
8
|
+
let control_1: string;
|
|
9
|
+
export { control_1 as control };
|
|
10
|
+
}
|
|
11
|
+
namespace text {
|
|
12
|
+
let control_2: string;
|
|
13
|
+
export { control_2 as control };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
let decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
|
|
17
|
+
}
|
|
18
|
+
export default _default;
|
|
19
|
+
export namespace UniversalLink_ {
|
|
20
|
+
let render: any;
|
|
21
|
+
let name: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let title: string;
|
|
3
|
+
namespace argTypes {
|
|
4
|
+
export namespace title_1 {
|
|
5
|
+
let control: string;
|
|
6
|
+
}
|
|
7
|
+
export { title_1 as title };
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export default _default;
|
|
11
|
+
export namespace Avatar3 {
|
|
12
|
+
let render: any;
|
|
13
|
+
let name: string;
|
|
14
|
+
namespace args {
|
|
15
|
+
let title_2: string;
|
|
16
|
+
export { title_2 as title };
|
|
17
|
+
export let color: string;
|
|
18
|
+
export let size: number;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let title: string;
|
|
3
|
+
namespace argTypes {
|
|
4
|
+
export namespace title_1 {
|
|
5
|
+
let control: string;
|
|
6
|
+
}
|
|
7
|
+
export { title_1 as title };
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export default _default;
|
|
11
|
+
export namespace Title_ {
|
|
12
|
+
let render: any;
|
|
13
|
+
let name: string;
|
|
14
|
+
namespace args {
|
|
15
|
+
let title_2: string;
|
|
16
|
+
export { title_2 as title };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import Avatar from './Avatar';
|
|
3
|
-
|
|
4
|
-
<Meta
|
|
5
|
-
title="Avatar"
|
|
6
|
-
argTypes={{
|
|
7
|
-
title: { control: 'text' },
|
|
8
|
-
}}
|
|
9
|
-
/>
|
|
10
|
-
|
|
11
|
-
# Avatar
|
|
12
|
-
|
|
13
|
-
```jsx static
|
|
14
|
-
<Avatar title="Plone" color="#007eb6" size={60} />
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
export const UserAvatar = (args) => <Avatar {...args} />;
|
|
18
|
-
|
|
19
|
-
<Story name="Avatar" args={{ title: 'Plone', color: '#007eb6', size: 60 }}>
|
|
20
|
-
{UserAvatar.bind({})}
|
|
21
|
-
</Story>
|
|
22
|
-
|
|
23
|
-
## Props
|
|
24
|
-
|
|
25
|
-
<ArgsTable of={Avatar} />
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import TitleComponent from './Title';
|
|
3
|
-
|
|
4
|
-
<Meta
|
|
5
|
-
title="Title"
|
|
6
|
-
argTypes={{
|
|
7
|
-
title: { control: 'text' },
|
|
8
|
-
}}
|
|
9
|
-
/>
|
|
10
|
-
|
|
11
|
-
# Title
|
|
12
|
-
|
|
13
|
-
```jsx static
|
|
14
|
-
<Title title="Plone" />
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
export const Title = (args) => <TitleComponent {...args} />;
|
|
18
|
-
|
|
19
|
-
<Story name="Title" args={{ title: 'Welcome to Plone' }}>
|
|
20
|
-
{Title.bind({})}
|
|
21
|
-
</Story>
|
|
22
|
-
|
|
23
|
-
## Props
|
|
24
|
-
|
|
25
|
-
<ArgsTable of={TitleComponent} />
|