@plone/volto 17.0.0-alpha.0 → 17.0.0-alpha.10
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/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +451 -19
- package/CONTRIBUTING.md +1 -1
- package/README.md +12 -15
- package/addon-registry.js +34 -0
- package/create-theme-addons-loader.js +79 -0
- package/cypress/support/commands.js +25 -0
- package/locales/ca/LC_MESSAGES/volto.po +187 -6
- package/locales/ca.json +1 -1
- package/locales/de/LC_MESSAGES/volto.po +206 -25
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +186 -5
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +187 -6
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +187 -6
- package/locales/eu.json +1 -1
- package/locales/fi/LC_MESSAGES/volto.po +4792 -0
- package/locales/fi.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +187 -6
- package/locales/fr.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +187 -6
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +187 -6
- package/locales/ja.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +842 -649
- package/locales/nl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +187 -6
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +195 -14
- package/locales/pt_BR.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +187 -6
- package/locales/ro.json +1 -1
- package/locales/volto.pot +187 -6
- package/locales/zh_CN/LC_MESSAGES/volto.po +187 -6
- package/locales/zh_CN.json +1 -1
- package/package-why.json +0 -1
- package/package.json +9 -8
- package/packages/volto-slate/build/messages/src/blocks/Table/TableBlockEdit.json +1 -1
- package/packages/volto-slate/build/messages/src/blocks/Text/DefaultTextBlockEditor.json +1 -1
- package/packages/volto-slate/build/messages/src/blocks/Text/DetachedTextBlockEditor.json +1 -1
- package/packages/volto-slate/build/messages/src/blocks/Text/SlashMenu.json +1 -1
- package/packages/volto-slate/build/messages/src/editor/plugins/AdvancedLink/index.json +1 -1
- package/packages/volto-slate/build/messages/src/editor/plugins/Link/index.json +1 -1
- package/packages/volto-slate/build/messages/src/editor/plugins/Table/index.json +1 -1
- package/packages/volto-slate/build/messages/src/elementEditor/messages.json +1 -1
- package/packages/volto-slate/build/messages/src/widgets/HtmlSlateWidget.json +1 -1
- package/packages/volto-slate/build/messages/src/widgets/RichTextWidgetView.json +1 -1
- package/packages/volto-slate/package.json +1 -1
- package/packages/volto-slate/src/blocks/Table/TableBlockView.jsx +4 -4
- package/packages/volto-slate/src/blocks/Table/index.js +2 -0
- package/packages/volto-slate/src/blocks/Text/SlashMenu.jsx +4 -3
- package/packages/volto-slate/src/editor/deserialize.js +0 -1
- package/packages/volto-slate/src/editor/plugins/StyleMenu/StyleMenu.jsx +14 -4
- package/razzle.config.js +28 -0
- package/src/actions/index.js +6 -0
- package/src/actions/language/language.js +9 -8
- package/src/actions/querystringsearch/querystringsearch.js +20 -14
- package/src/actions/relations/rebuild.js +25 -0
- package/src/actions/relations/relations.js +86 -0
- package/src/actions/relations/relations.test.js +15 -0
- package/src/components/index.js +1 -0
- package/src/components/manage/Add/Add.jsx +2 -2
- package/src/components/manage/BlockChooser/BlockChooser.jsx +14 -5
- package/src/components/manage/BlockChooser/BlockChooser.test.jsx +5 -0
- package/src/components/manage/BlockChooser/BlockChooserButton.jsx +63 -29
- package/src/components/manage/BlockChooser/BlockChooserSearch.jsx +0 -1
- package/src/components/manage/Blocks/Listing/Edit.jsx +0 -19
- package/src/components/manage/Blocks/Listing/ListingBody.jsx +77 -61
- package/src/components/manage/Blocks/Listing/View.jsx +0 -4
- package/src/components/manage/Blocks/Listing/getAsyncData.js +10 -2
- package/src/components/manage/Blocks/Listing/withQuerystringResults.jsx +18 -13
- package/src/components/manage/Blocks/Search/SearchBlockEdit.jsx +5 -4
- package/src/components/manage/Blocks/Search/SearchBlockView.jsx +2 -1
- package/src/components/manage/Blocks/Search/components/DateRangeFacet.jsx +4 -1
- package/src/components/manage/Blocks/Search/components/Facets.jsx +58 -2
- package/src/components/manage/Blocks/Search/hocs/withSearch.jsx +24 -11
- package/src/components/manage/Blocks/Search/layout/LeftColumnFacets.jsx +17 -5
- package/src/components/manage/Blocks/Search/layout/RightColumnFacets.jsx +17 -5
- package/src/components/manage/Blocks/Search/layout/TopSideFacets.jsx +21 -5
- package/src/components/manage/Blocks/Search/schema.js +16 -1
- package/src/components/manage/Blocks/ToC/Edit.jsx +1 -0
- package/src/components/manage/Contents/Contents.jsx +69 -33
- package/src/components/manage/Contents/ContentsItem.jsx +6 -0
- package/src/components/manage/Controlpanels/AddonsControlpanel.jsx +3 -3
- package/src/components/manage/Controlpanels/Controlpanels.jsx +199 -224
- package/src/components/manage/Controlpanels/Controlpanels.test.jsx +46 -7
- package/src/components/manage/Controlpanels/Relations/BrokenRelations.jsx +66 -0
- package/src/components/manage/Controlpanels/Relations/Relations.jsx +114 -0
- package/src/components/manage/Controlpanels/Relations/RelationsListing.jsx +479 -0
- package/src/components/manage/Controlpanels/Relations/RelationsMatrix.jsx +531 -0
- package/src/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel.jsx +3 -3
- package/src/components/manage/Controlpanels/Users/UserGroupMembershipListing.jsx +51 -82
- package/src/components/manage/Controlpanels/Users/UserGroupMembershipMatrix.jsx +79 -75
- package/src/components/manage/DragDropList/DragDropList.jsx +63 -42
- package/src/components/manage/Form/BlocksToolbar.jsx +5 -1
- package/src/components/manage/Form/Form.jsx +11 -5
- package/src/components/manage/Form/InlineForm.jsx +39 -9
- package/src/components/manage/Form/InlineFormState.js +8 -0
- package/src/components/manage/History/History.jsx +35 -18
- package/src/components/manage/Multilingual/CreateTranslation.jsx +2 -2
- package/src/components/manage/Multilingual/TranslationObject.jsx +4 -3
- package/src/components/manage/Preferences/ChangePassword.jsx +2 -2
- package/src/components/manage/Preferences/PersonalPreferences.jsx +2 -2
- package/src/components/manage/Toast/Toast.jsx +1 -1
- package/src/components/manage/Toolbar/Types.jsx +2 -2
- package/src/components/manage/Widgets/DatetimeWidget.jsx +9 -5
- package/src/components/manage/Widgets/ObjectListWidget.jsx +3 -8
- package/src/components/manage/Widgets/RecurrenceWidget/ByDayField.jsx +2 -1
- package/src/components/manage/Widgets/RecurrenceWidget/MonthOfTheYearField.jsx +2 -1
- package/src/components/manage/Widgets/RecurrenceWidget/Occurences.jsx +2 -1
- package/src/components/manage/Widgets/RecurrenceWidget/RecurrenceWidget.jsx +7 -2
- package/src/components/manage/Widgets/RecurrenceWidget/WeekdayOfTheMonthField.jsx +2 -1
- package/src/components/manage/Widgets/SelectUtils.js +1 -1
- package/src/components/manage/Widgets/SelectWidget.jsx +1 -1
- package/src/components/theme/Footer/Footer.jsx +2 -13
- package/src/components/theme/Header/Header.jsx +37 -63
- package/src/components/theme/Header/Header.test.jsx +18 -0
- package/src/components/theme/Icon/Icon.jsx +2 -2
- package/src/components/theme/LanguageSelector/LanguageSelector.js +8 -3
- package/src/components/theme/Login/Login.jsx +1 -0
- package/src/components/theme/Logo/Logo.jsx +2 -1
- package/src/components/theme/MultilingualRedirector/MultilingualRedirector.jsx +2 -2
- package/src/components/theme/Navigation/NavItem.jsx +4 -2
- package/src/components/theme/NotFound/NotFound.jsx +55 -41
- package/src/components/theme/PasswordReset/PasswordReset.jsx +7 -4
- package/src/components/theme/PasswordReset/RequestPasswordReset.jsx +1 -1
- package/src/components/theme/Sitemap/Sitemap.jsx +5 -3
- package/src/components/theme/View/DefaultView.jsx +1 -1
- package/src/components/theme/View/EventDatesInfo.jsx +2 -1
- package/src/components/theme/View/EventView.jsx +1 -1
- package/src/components/theme/View/NewsItemView.jsx +1 -1
- package/src/components/theme/View/RenderBlocks.jsx +7 -1
- package/src/components/theme/Widgets/DateWidget.jsx +2 -1
- package/src/components/theme/Widgets/DatetimeWidget.jsx +2 -1
- package/src/components/theme/Widgets/RelationsWidget.jsx +13 -11
- package/src/config/ControlPanels.js +2 -0
- package/src/config/Widgets.jsx +1 -0
- package/src/config/index.js +3 -0
- package/src/config/server.js +19 -0
- package/src/constants/ActionTypes.js +4 -0
- package/src/constants/Languages.js +8 -4
- package/src/express-middleware/devproxy.js +4 -2
- package/src/express-middleware/sitemap.js +36 -4
- package/src/express-middleware/static.js +32 -0
- package/src/helpers/Api/Api.js +1 -1
- package/src/helpers/FormValidation/FormValidation.js +11 -2
- package/src/helpers/FormValidation/FormValidation.test.js +73 -0
- package/src/helpers/Html/Html.jsx +3 -1
- package/src/helpers/Html/Html.test.jsx +5 -0
- package/src/helpers/MessageLabels/MessageLabels.js +72 -0
- package/src/helpers/Robots/Robots.js +24 -6
- package/src/helpers/Sitemap/Sitemap.js +44 -2
- package/src/helpers/Url/Url.js +27 -6
- package/src/helpers/Url/Url.test.js +26 -0
- package/src/helpers/Utils/Utils.js +38 -13
- package/src/helpers/Utils/Utils.test.js +4 -4
- package/src/helpers/index.js +7 -2
- package/src/hooks/userSession/useToken.js +5 -0
- package/src/middleware/Api.test.js +54 -0
- package/src/middleware/api.js +8 -4
- package/src/reducers/actions/actions.js +1 -1
- package/src/reducers/breadcrumbs/breadcrumbs.js +1 -1
- package/src/reducers/index.js +2 -0
- package/src/reducers/navigation/navigation.js +1 -1
- package/src/reducers/relations/relations.js +173 -0
- package/src/reducers/types/types.js +1 -1
- package/src/routes.js +5 -0
- package/src/server.jsx +29 -30
- package/src/start-server.js +4 -2
- package/test-setup-config.js +1 -0
- package/theme/themes/pastanaga/extras/blocks.less +0 -9
- package/theme/themes/pastanaga/extras/contents.less +1 -0
- package/theme/themes/pastanaga/extras/main.less +80 -1
- package/theme/themes/pastanaga/extras/search.less +6 -0
- package/theme/themes/pastanaga/extras/sidebar.less +4 -0
- package/theme/themes/pastanaga/extras/userscontrolpanel.less +99 -76
- package/.changelog.draft +0 -22
- package/.editorconfig +0 -36
- package/.storybook/main.js +0 -127
- package/.storybook/manager.js +0 -15
- package/.storybook/preview.js +0 -21
- package/.storybook/static/previewImage.svg +0 -48
- package/.yarnrc.yml +0 -5
- package/jsdoc.json +0 -16
- package/netlify.toml +0 -5
- package/pyvenv.cfg +0 -3
- package/share/man/man1/ttx.1 +0 -225
- package/src/components/theme/Header/Header.md +0 -27
- package/towncrier.toml +0 -33
|
@@ -27,45 +27,48 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.controlpanel_matrix {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
.ui.action.input button.ui.icon.button {
|
|
31
|
+
background-color: transparent;
|
|
32
|
+
}
|
|
33
33
|
|
|
34
34
|
.controlpanel_select_relation {
|
|
35
|
-
|
|
36
|
-
grid-row: 1;
|
|
35
|
+
margin-bottom: 2rem;
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
.
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
.controlpanel_search_wrapper {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-wrap: wrap;
|
|
41
|
+
row-gap: 3rem;
|
|
42
|
+
column-gap: 5rem;
|
|
43
|
+
justify-content: flex-start;
|
|
44
|
+
margin-bottom: 2rem;
|
|
45
|
+
& > * {
|
|
46
|
+
min-width: 30rem;
|
|
47
|
+
}
|
|
42
48
|
}
|
|
43
49
|
|
|
44
|
-
.
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
.add_potential_sources .field,
|
|
51
|
+
.add_potential_targets .field,
|
|
52
|
+
.controlpanel_search_x .field,
|
|
53
|
+
.controlpanel_search_y .field {
|
|
54
|
+
display: flex;
|
|
47
55
|
}
|
|
48
56
|
|
|
49
|
-
.
|
|
57
|
+
.controlpanel_listing_wrapper {
|
|
50
58
|
display: flex;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
59
|
+
gap: 1rem;
|
|
60
|
+
justify-content: flex-end;
|
|
61
|
+
flex-wrap: wrap;
|
|
62
|
+
flex-direction: row-reverse;
|
|
63
|
+
margin-bottom: 2rem;
|
|
64
|
+
.administration_matrix {
|
|
65
|
+
flex-grow: 2;
|
|
66
|
+
min-width: 30rem;
|
|
67
|
+
}
|
|
68
|
+
.controlpanel_filter {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
57
71
|
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.administration_matrix {
|
|
61
|
-
display: grid;
|
|
62
|
-
height: 60rem;
|
|
63
|
-
padding-right: 0;
|
|
64
|
-
grid-column-end: 3;
|
|
65
|
-
grid-column-start: 1;
|
|
66
|
-
grid-row: 2;
|
|
67
|
-
grid-template-rows: 14rem 1fr;
|
|
68
|
-
overflow-x: scroll;
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
|
|
@@ -75,71 +78,91 @@
|
|
|
75
78
|
}
|
|
76
79
|
|
|
77
80
|
.label-options {
|
|
81
|
+
// display: flex;
|
|
82
|
+
// justify-content: start;
|
|
78
83
|
position: sticky;
|
|
79
|
-
z-index: 1000;
|
|
80
84
|
top: 0;
|
|
81
|
-
|
|
82
|
-
display: flex;
|
|
83
|
-
height: 14rem;
|
|
84
|
-
align-items: baseline;
|
|
85
|
-
justify-content: flex-end;
|
|
86
|
-
padding-right: 2rem;
|
|
85
|
+
z-index: 100;
|
|
87
86
|
.stickyLabelLayerBackground();
|
|
88
87
|
|
|
89
|
-
.
|
|
88
|
+
.target-labels {
|
|
89
|
+
z-index: 2;
|
|
90
|
+
top: 0;
|
|
91
|
+
left: 0;
|
|
90
92
|
display: flex;
|
|
91
|
-
|
|
93
|
+
height: 14rem;
|
|
94
|
+
align-items: baseline;
|
|
95
|
+
// justify-content: flex-end;
|
|
96
|
+
// padding-right: 5rem;
|
|
97
|
+
@media only screen and (max-width: (@largestMobileScreen)) {
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
}
|
|
100
|
+
& > div:first-child {
|
|
101
|
+
min-width: 15rem;
|
|
102
|
+
}
|
|
103
|
+
& > div:nth-child(2) {
|
|
104
|
+
flex-grow: 2;
|
|
105
|
+
display: flex;
|
|
106
|
+
}
|
|
92
107
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
108
|
+
.label-options-label {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: flex-end;
|
|
111
|
+
|
|
112
|
+
&.inclined {
|
|
113
|
+
width: 3.5rem;
|
|
114
|
+
height: 13rem;
|
|
115
|
+
white-space: nowrap;
|
|
97
116
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
117
|
+
div {
|
|
118
|
+
transform: rotate(315deg);
|
|
119
|
+
transform-origin: top left;
|
|
120
|
+
}
|
|
101
121
|
}
|
|
102
122
|
}
|
|
103
123
|
}
|
|
104
124
|
}
|
|
105
125
|
|
|
106
|
-
.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
126
|
+
.listing-row {
|
|
127
|
+
&:nth-child(2n) {
|
|
128
|
+
background-color: rgba(0, 0, 50, 0.05);
|
|
129
|
+
}
|
|
130
|
+
.listing-item {
|
|
131
|
+
display: flex;
|
|
132
|
+
width: 100%;
|
|
133
|
+
align-items: baseline;
|
|
134
|
+
justify-content: space-between;
|
|
135
|
+
padding: 0.5rem 0.1rem;
|
|
136
|
+
margin: 0.2rem 0;
|
|
137
|
+
|
|
138
|
+
& > div:first-child {
|
|
139
|
+
min-width: 15rem;
|
|
114
140
|
}
|
|
141
|
+
.matrix_options {
|
|
142
|
+
flex-grow: 2;
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: row;
|
|
115
145
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
146
|
+
& > div {
|
|
147
|
+
width: 3rem;
|
|
148
|
+
padding: 0.3rem 0.1rem;
|
|
149
|
+
margin-left: 0.5rem;
|
|
119
150
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
width: 100%;
|
|
123
|
-
align-items: baseline;
|
|
124
|
-
justify-content: space-between;
|
|
125
|
-
padding: 0.5rem 0.1rem;
|
|
126
|
-
margin: 0.2rem 0;
|
|
127
|
-
|
|
128
|
-
.matrix_options {
|
|
129
|
-
display: flex;
|
|
130
|
-
flex-direction: row;
|
|
131
|
-
|
|
132
|
-
& > div {
|
|
133
|
-
width: 3rem;
|
|
134
|
-
padding: 0.3rem 0.1rem;
|
|
135
|
-
margin-left: 0.5rem;
|
|
136
|
-
|
|
137
|
-
.ui.checkbox {
|
|
138
|
-
margin: auto;
|
|
139
|
-
}
|
|
151
|
+
.ui.checkbox {
|
|
152
|
+
margin: auto;
|
|
140
153
|
}
|
|
141
154
|
}
|
|
155
|
+
.ui.checkbox.toggle-target label:before {
|
|
156
|
+
border: 3px solid #826a6a;
|
|
157
|
+
}
|
|
142
158
|
}
|
|
143
159
|
}
|
|
144
160
|
}
|
|
161
|
+
|
|
162
|
+
// Rows
|
|
163
|
+
.items {
|
|
164
|
+
.not-published {
|
|
165
|
+
opacity: 0.6;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
145
168
|
}
|
package/.changelog.draft
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
## 17.0.0-alpha.0 (2023-03-04)
|
|
2
|
-
|
|
3
|
-
### Breaking
|
|
4
|
-
|
|
5
|
-
- Volto 17 drops support for NodeJS 14, and adds support for NodeJS 18.
|
|
6
|
-
Please see the [upgrade guide](https://6.docs.plone.org/volto/upgrade-guide/index.html)
|
|
7
|
-
for more information.
|
|
8
|
-
|
|
9
|
-
Volto 17 now uses Webpack 5. [#4086](https://github.com/plone/volto/issues/4086)
|
|
10
|
-
|
|
11
|
-
### Internal
|
|
12
|
-
|
|
13
|
-
- Add HI-ERN website to "Volto in Production" section in README @steffenri [#4172](https://github.com/plone/volto/issues/4172)
|
|
14
|
-
|
|
15
|
-
### Documentation
|
|
16
|
-
|
|
17
|
-
- Add a new Volto site to the README @erral [#4158](https://github.com/plone/volto/issues/4158), [#4170](https://github.com/plone/volto/issues/4170)
|
|
18
|
-
- Add new websites Lanku and UEU
|
|
19
|
-
[erral] [#4310](https://github.com/plone/volto/issues/4310)
|
|
20
|
-
- Fix English and MyST grammar and syntax from PR #4285 @stevepiercy [#4331](https://github.com/plone/volto/issues/4331)
|
|
21
|
-
- Use a universal static path for both documentation and volto repos. @stevepiercy [#4376](https://github.com/plone/volto/issues/4376)
|
|
22
|
-
|
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
|
package/.storybook/main.js
DELETED
|
@@ -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
|
-
};
|
package/.storybook/manager.js
DELETED
|
@@ -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
|
-
});
|
package/.storybook/preview.js
DELETED
|
@@ -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
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
package/pyvenv.cfg
DELETED