decap-cms-core 3.2.4 → 3.2.6
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/dist/decap-cms-core.js +9 -9
- package/dist/decap-cms-core.js.map +1 -1
- package/dist/esm/actions/auth.js +6 -12
- package/dist/esm/actions/config.js +5 -8
- package/dist/esm/actions/deploys.js +3 -6
- package/dist/esm/actions/editorialWorkflow.js +19 -36
- package/dist/esm/actions/entries.js +35 -68
- package/dist/esm/actions/media.js +6 -12
- package/dist/esm/actions/mediaLibrary.js +19 -36
- package/dist/esm/actions/notifications.js +3 -6
- package/dist/esm/actions/search.js +29 -19
- package/dist/esm/actions/status.js +3 -6
- package/dist/esm/backend.js +19 -11
- package/dist/esm/bootstrap.js +11 -12
- package/dist/esm/components/App/App.js +49 -50
- package/dist/esm/components/App/Header.js +42 -43
- package/dist/esm/components/App/NotFoundPage.js +5 -6
- package/dist/esm/components/Collection/Collection.js +23 -24
- package/dist/esm/components/Collection/CollectionControls.js +9 -10
- package/dist/esm/components/Collection/CollectionSearch.js +36 -37
- package/dist/esm/components/Collection/CollectionTop.js +18 -19
- package/dist/esm/components/Collection/ControlButton.js +6 -6
- package/dist/esm/components/Collection/Entries/Entries.js +15 -16
- package/dist/esm/components/Collection/Entries/EntriesCollection.js +11 -12
- package/dist/esm/components/Collection/Entries/EntriesSearch.js +3 -4
- package/dist/esm/components/Collection/Entries/EntryCard.js +35 -36
- package/dist/esm/components/Collection/Entries/EntryListing.js +10 -10
- package/dist/esm/components/Collection/FilterControl.js +5 -6
- package/dist/esm/components/Collection/GroupControl.js +5 -6
- package/dist/esm/components/Collection/NestedCollection.js +40 -41
- package/dist/esm/components/Collection/Sidebar.js +27 -28
- package/dist/esm/components/Collection/SortControl.js +5 -6
- package/dist/esm/components/Collection/ViewStyleControl.js +15 -16
- package/dist/esm/components/Editor/Editor.js +5 -6
- package/dist/esm/components/Editor/EditorControlPane/EditorControl.js +24 -26
- package/dist/esm/components/Editor/EditorControlPane/EditorControlPane.js +39 -39
- package/dist/esm/components/Editor/EditorControlPane/Widget.js +2 -2
- package/dist/esm/components/Editor/EditorInterface.js +67 -68
- package/dist/esm/components/Editor/EditorPreviewPane/EditorPreview.js +8 -8
- package/dist/esm/components/Editor/EditorPreviewPane/EditorPreviewContent.js +3 -4
- package/dist/esm/components/Editor/EditorPreviewPane/EditorPreviewPane.js +18 -19
- package/dist/esm/components/Editor/EditorPreviewPane/PreviewHOC.js +1 -2
- package/dist/esm/components/Editor/EditorToolbar.js +155 -156
- package/dist/esm/components/Editor/withWorkflow.js +4 -4
- package/dist/esm/components/EditorWidgets/Unknown/UnknownControl.js +3 -4
- package/dist/esm/components/EditorWidgets/Unknown/UnknownPreview.js +3 -4
- package/dist/esm/components/MediaLibrary/EmptyMessage.js +6 -7
- package/dist/esm/components/MediaLibrary/MediaLibrary.js +7 -8
- package/dist/esm/components/MediaLibrary/MediaLibraryButtons.js +17 -21
- package/dist/esm/components/MediaLibrary/MediaLibraryCard.js +25 -26
- package/dist/esm/components/MediaLibrary/MediaLibraryCardGrid.js +29 -30
- package/dist/esm/components/MediaLibrary/MediaLibraryHeader.js +10 -11
- package/dist/esm/components/MediaLibrary/MediaLibraryModal.js +10 -12
- package/dist/esm/components/MediaLibrary/MediaLibrarySearch.js +15 -16
- package/dist/esm/components/MediaLibrary/MediaLibraryTop.js +27 -28
- package/dist/esm/components/UI/DragDrop.js +3 -3
- package/dist/esm/components/UI/ErrorBoundary.js +15 -16
- package/dist/esm/components/UI/FileUploadButton.js +3 -3
- package/dist/esm/components/UI/Modal.js +5 -5
- package/dist/esm/components/UI/Notifications.js +7 -8
- package/dist/esm/components/UI/SettingsDropdown.js +41 -42
- package/dist/esm/components/Workflow/Workflow.js +21 -22
- package/dist/esm/components/Workflow/WorkflowCard.js +44 -45
- package/dist/esm/components/Workflow/WorkflowList.js +56 -57
- package/dist/esm/constants/collectionTypes.js +2 -4
- package/dist/esm/constants/collectionViews.js +2 -4
- package/dist/esm/constants/commitProps.js +2 -4
- package/dist/esm/constants/configSchema.js +4 -4
- package/dist/esm/constants/fieldInference.js +8 -11
- package/dist/esm/constants/publishModes.js +6 -11
- package/dist/esm/constants/validationErrorTypes.js +2 -3
- package/dist/esm/formats/formats.js +5 -8
- package/dist/esm/formats/frontmatter.js +3 -4
- package/dist/esm/formats/json.js +2 -3
- package/dist/esm/formats/toml.js +2 -3
- package/dist/esm/formats/yaml.js +2 -3
- package/dist/esm/index.js +4 -6
- package/dist/esm/integrations/index.js +2 -3
- package/dist/esm/integrations/providers/algolia/implementation.js +2 -2
- package/dist/esm/integrations/providers/assetStore/implementation.js +2 -2
- package/dist/esm/lib/formatters.js +2 -2
- package/dist/esm/lib/i18n.js +5 -8
- package/dist/esm/lib/registry.js +3 -4
- package/dist/esm/lib/urlHelper.js +2 -2
- package/dist/esm/reducers/auth.js +2 -4
- package/dist/esm/reducers/collections.js +3 -4
- package/dist/esm/reducers/combinedReducer.js +3 -4
- package/dist/esm/reducers/config.js +3 -4
- package/dist/esm/reducers/cursors.js +1 -2
- package/dist/esm/reducers/deploys.js +1 -2
- package/dist/esm/reducers/editorialWorkflow.js +3 -4
- package/dist/esm/reducers/entries.js +3 -4
- package/dist/esm/reducers/entryDraft.js +5 -6
- package/dist/esm/reducers/globalUI.js +1 -2
- package/dist/esm/reducers/index.js +15 -12
- package/dist/esm/reducers/integrations.js +3 -4
- package/dist/esm/reducers/mediaLibrary.js +6 -8
- package/dist/esm/reducers/medias.js +1 -2
- package/dist/esm/reducers/notifications.js +5 -7
- package/dist/esm/reducers/search.js +13 -4
- package/dist/esm/reducers/status.js +1 -2
- package/dist/esm/redux/index.js +1 -2
- package/dist/esm/redux/middleware/waitUntilAction.js +1 -2
- package/dist/esm/routing/history.js +1 -2
- package/dist/esm/types/redux.js +2 -3
- package/dist/esm/valueObjects/EditorComponent.js +2 -2
- package/package.json +4 -4
- package/src/actions/__tests__/editorialWorkflow.spec.js +2 -2
- package/src/actions/search.ts +31 -4
- package/src/backend.ts +15 -2
- package/src/components/App/Header.js +1 -1
- package/src/components/Collection/ControlButton.js +1 -1
- package/src/components/Collection/NestedCollection.js +1 -1
- package/src/components/Collection/Sidebar.js +1 -1
- package/src/components/Collection/__tests__/__snapshots__/Collection.spec.js.snap +16 -16
- package/src/components/Collection/__tests__/__snapshots__/NestedCollection.spec.js.snap +143 -143
- package/src/components/Collection/__tests__/__snapshots__/Sidebar.spec.js.snap +36 -36
- package/src/components/Editor/EditorControlPane/EditorControl.js +1 -1
- package/src/components/Editor/EditorControlPane/EditorControlPane.js +1 -1
- package/src/components/Editor/EditorInterface.js +1 -1
- package/src/components/Editor/EditorToolbar.js +1 -1
- package/src/components/Editor/__tests__/__snapshots__/EditorToolbar.spec.js.snap +1000 -1102
- package/src/components/MediaLibrary/MediaLibraryButtons.js +1 -1
- package/src/components/MediaLibrary/__tests__/__snapshots__/MediaLibraryCard.spec.js.snap +94 -46
- package/src/components/UI/Modal.js +1 -1
- package/src/components/UI/SettingsDropdown.js +1 -1
- package/src/components/Workflow/WorkflowCard.js +1 -1
- package/src/components/Workflow/WorkflowList.js +1 -1
- package/src/constants/configSchema.js +1 -1
- package/src/lib/i18n.ts +1 -1
- package/src/reducers/__tests__/entryDraft.spec.js +1 -1
- package/src/reducers/__tests__/mediaLibrary.spec.js +1 -1
- package/src/reducers/entryDraft.js +1 -1
- package/src/reducers/mediaLibrary.ts +1 -1
- package/src/reducers/notifications.ts +1 -1
- package/src/reducers/search.ts +23 -1
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Sidebar should render nested collection with filterTerm 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
.emotion-
|
|
6
|
-
box-shadow: 0 2px 6px 0 rgba(68,74,87,0.05),0 1px 3px 0 rgba(68,74,87,0.1);
|
|
5
|
+
.emotion-0 {
|
|
6
|
+
box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1);
|
|
7
7
|
border-radius: 5px;
|
|
8
8
|
background-color: #fff;
|
|
9
9
|
width: 250px;
|
|
@@ -19,7 +19,7 @@ exports[`Sidebar should render nested collection with filterTerm 1`] = `
|
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.emotion-
|
|
22
|
+
.emotion-2 {
|
|
23
23
|
font-size: 23px;
|
|
24
24
|
font-weight: 600;
|
|
25
25
|
padding: 0;
|
|
@@ -27,17 +27,17 @@ exports[`Sidebar should render nested collection with filterTerm 1`] = `
|
|
|
27
27
|
color: #313d3e;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.emotion-
|
|
30
|
+
.emotion-4 {
|
|
31
31
|
margin: 16px 0 0;
|
|
32
32
|
list-style: none;
|
|
33
33
|
overflow: auto;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
<aside
|
|
37
|
-
class="emotion-
|
|
37
|
+
class="emotion-0 emotion-1"
|
|
38
38
|
>
|
|
39
39
|
<h2
|
|
40
|
-
class="emotion-
|
|
40
|
+
class="emotion-2 emotion-3"
|
|
41
41
|
>
|
|
42
42
|
collection.sidebar.collections
|
|
43
43
|
</h2>
|
|
@@ -46,7 +46,7 @@ exports[`Sidebar should render nested collection with filterTerm 1`] = `
|
|
|
46
46
|
searchterm=""
|
|
47
47
|
/>
|
|
48
48
|
<ul
|
|
49
|
-
class="emotion-
|
|
49
|
+
class="emotion-4 emotion-5"
|
|
50
50
|
>
|
|
51
51
|
<li>
|
|
52
52
|
<nested-collection
|
|
@@ -62,8 +62,8 @@ exports[`Sidebar should render nested collection with filterTerm 1`] = `
|
|
|
62
62
|
|
|
63
63
|
exports[`Sidebar should render sidebar with a nested collection 1`] = `
|
|
64
64
|
<DocumentFragment>
|
|
65
|
-
.emotion-
|
|
66
|
-
box-shadow: 0 2px 6px 0 rgba(68,74,87,0.05),0 1px 3px 0 rgba(68,74,87,0.1);
|
|
65
|
+
.emotion-0 {
|
|
66
|
+
box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1);
|
|
67
67
|
border-radius: 5px;
|
|
68
68
|
background-color: #fff;
|
|
69
69
|
width: 250px;
|
|
@@ -79,7 +79,7 @@ exports[`Sidebar should render sidebar with a nested collection 1`] = `
|
|
|
79
79
|
flex-direction: column;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
.emotion-
|
|
82
|
+
.emotion-2 {
|
|
83
83
|
font-size: 23px;
|
|
84
84
|
font-weight: 600;
|
|
85
85
|
padding: 0;
|
|
@@ -87,17 +87,17 @@ exports[`Sidebar should render sidebar with a nested collection 1`] = `
|
|
|
87
87
|
color: #313d3e;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.emotion-
|
|
90
|
+
.emotion-4 {
|
|
91
91
|
margin: 16px 0 0;
|
|
92
92
|
list-style: none;
|
|
93
93
|
overflow: auto;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
<aside
|
|
97
|
-
class="emotion-
|
|
97
|
+
class="emotion-0 emotion-1"
|
|
98
98
|
>
|
|
99
99
|
<h2
|
|
100
|
-
class="emotion-
|
|
100
|
+
class="emotion-2 emotion-3"
|
|
101
101
|
>
|
|
102
102
|
collection.sidebar.collections
|
|
103
103
|
</h2>
|
|
@@ -106,7 +106,7 @@ exports[`Sidebar should render sidebar with a nested collection 1`] = `
|
|
|
106
106
|
searchterm=""
|
|
107
107
|
/>
|
|
108
108
|
<ul
|
|
109
|
-
class="emotion-
|
|
109
|
+
class="emotion-4 emotion-5"
|
|
110
110
|
>
|
|
111
111
|
<li>
|
|
112
112
|
<nested-collection
|
|
@@ -121,8 +121,8 @@ exports[`Sidebar should render sidebar with a nested collection 1`] = `
|
|
|
121
121
|
|
|
122
122
|
exports[`Sidebar should render sidebar with a simple collection 1`] = `
|
|
123
123
|
<DocumentFragment>
|
|
124
|
-
.emotion-
|
|
125
|
-
box-shadow: 0 2px 6px 0 rgba(68,74,87,0.05),0 1px 3px 0 rgba(68,74,87,0.1);
|
|
124
|
+
.emotion-0 {
|
|
125
|
+
box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1);
|
|
126
126
|
border-radius: 5px;
|
|
127
127
|
background-color: #fff;
|
|
128
128
|
width: 250px;
|
|
@@ -138,7 +138,7 @@ exports[`Sidebar should render sidebar with a simple collection 1`] = `
|
|
|
138
138
|
flex-direction: column;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
.emotion-
|
|
141
|
+
.emotion-2 {
|
|
142
142
|
font-size: 23px;
|
|
143
143
|
font-weight: 600;
|
|
144
144
|
padding: 0;
|
|
@@ -152,7 +152,7 @@ exports[`Sidebar should render sidebar with a simple collection 1`] = `
|
|
|
152
152
|
overflow: auto;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
.emotion-
|
|
155
|
+
.emotion-6 {
|
|
156
156
|
display: -webkit-box;
|
|
157
157
|
display: -webkit-flex;
|
|
158
158
|
display: -ms-flexbox;
|
|
@@ -168,26 +168,26 @@ exports[`Sidebar should render sidebar with a simple collection 1`] = `
|
|
|
168
168
|
z-index: -1;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
.emotion-
|
|
171
|
+
.emotion-6 mocked-icon {
|
|
172
172
|
margin-right: 8px;
|
|
173
173
|
-webkit-flex-shrink: 0;
|
|
174
174
|
-ms-flex-negative: 0;
|
|
175
175
|
flex-shrink: 0;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
.emotion-
|
|
179
|
-
.emotion-
|
|
180
|
-
.emotion-
|
|
178
|
+
.emotion-6:hover,
|
|
179
|
+
.emotion-6:active,
|
|
180
|
+
.emotion-6.sidebar-active {
|
|
181
181
|
color: #3a69c7;
|
|
182
182
|
background-color: #e8f5fe;
|
|
183
183
|
border-left-color: #4863c6;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
<aside
|
|
187
|
-
class="emotion-
|
|
187
|
+
class="emotion-0 emotion-1"
|
|
188
188
|
>
|
|
189
189
|
<h2
|
|
190
|
-
class="emotion-
|
|
190
|
+
class="emotion-2 emotion-3"
|
|
191
191
|
>
|
|
192
192
|
collection.sidebar.collections
|
|
193
193
|
</h2>
|
|
@@ -200,7 +200,7 @@ exports[`Sidebar should render sidebar with a simple collection 1`] = `
|
|
|
200
200
|
>
|
|
201
201
|
<li>
|
|
202
202
|
<a
|
|
203
|
-
class="emotion-
|
|
203
|
+
class="emotion-6 emotion-7"
|
|
204
204
|
data-testid="posts"
|
|
205
205
|
href="/collections/posts"
|
|
206
206
|
>
|
|
@@ -217,8 +217,8 @@ exports[`Sidebar should render sidebar with a simple collection 1`] = `
|
|
|
217
217
|
|
|
218
218
|
exports[`Sidebar should render sidebar without search 1`] = `
|
|
219
219
|
<DocumentFragment>
|
|
220
|
-
.emotion-
|
|
221
|
-
box-shadow: 0 2px 6px 0 rgba(68,74,87,0.05),0 1px 3px 0 rgba(68,74,87,0.1);
|
|
220
|
+
.emotion-0 {
|
|
221
|
+
box-shadow: 0 2px 6px 0 rgba(68, 74, 87, 0.05),0 1px 3px 0 rgba(68, 74, 87, 0.1);
|
|
222
222
|
border-radius: 5px;
|
|
223
223
|
background-color: #fff;
|
|
224
224
|
width: 250px;
|
|
@@ -234,7 +234,7 @@ exports[`Sidebar should render sidebar without search 1`] = `
|
|
|
234
234
|
flex-direction: column;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
.emotion-
|
|
237
|
+
.emotion-2 {
|
|
238
238
|
font-size: 23px;
|
|
239
239
|
font-weight: 600;
|
|
240
240
|
padding: 0;
|
|
@@ -248,7 +248,7 @@ exports[`Sidebar should render sidebar without search 1`] = `
|
|
|
248
248
|
overflow: auto;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
.emotion-
|
|
251
|
+
.emotion-6 {
|
|
252
252
|
display: -webkit-box;
|
|
253
253
|
display: -webkit-flex;
|
|
254
254
|
display: -ms-flexbox;
|
|
@@ -264,26 +264,26 @@ exports[`Sidebar should render sidebar without search 1`] = `
|
|
|
264
264
|
z-index: -1;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
.emotion-
|
|
267
|
+
.emotion-6 mocked-icon {
|
|
268
268
|
margin-right: 8px;
|
|
269
269
|
-webkit-flex-shrink: 0;
|
|
270
270
|
-ms-flex-negative: 0;
|
|
271
271
|
flex-shrink: 0;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
.emotion-
|
|
275
|
-
.emotion-
|
|
276
|
-
.emotion-
|
|
274
|
+
.emotion-6:hover,
|
|
275
|
+
.emotion-6:active,
|
|
276
|
+
.emotion-6.sidebar-active {
|
|
277
277
|
color: #3a69c7;
|
|
278
278
|
background-color: #e8f5fe;
|
|
279
279
|
border-left-color: #4863c6;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
<aside
|
|
283
|
-
class="emotion-
|
|
283
|
+
class="emotion-0 emotion-1"
|
|
284
284
|
>
|
|
285
285
|
<h2
|
|
286
|
-
class="emotion-
|
|
286
|
+
class="emotion-2 emotion-3"
|
|
287
287
|
>
|
|
288
288
|
collection.sidebar.collections
|
|
289
289
|
</h2>
|
|
@@ -292,7 +292,7 @@ exports[`Sidebar should render sidebar without search 1`] = `
|
|
|
292
292
|
>
|
|
293
293
|
<li>
|
|
294
294
|
<a
|
|
295
|
-
class="emotion-
|
|
295
|
+
class="emotion-6 emotion-7"
|
|
296
296
|
data-testid="posts"
|
|
297
297
|
href="/collections/posts"
|
|
298
298
|
>
|
|
@@ -3,7 +3,7 @@ import { bindActionCreators } from 'redux';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
5
5
|
import { translate } from 'react-polyglot';
|
|
6
|
-
import { ClassNames, Global, css as coreCss } from '@emotion/
|
|
6
|
+
import { ClassNames, Global, css as coreCss } from '@emotion/react';
|
|
7
7
|
import styled from '@emotion/styled';
|
|
8
8
|
import { partial, uniqueId } from 'lodash';
|
|
9
9
|
import { connect } from 'react-redux';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
4
|
-
import { css } from '@emotion/
|
|
4
|
+
import { css } from '@emotion/react';
|
|
5
5
|
import styled from '@emotion/styled';
|
|
6
6
|
import {
|
|
7
7
|
buttons,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
3
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
4
|
-
import { css, Global } from '@emotion/
|
|
4
|
+
import { css, Global } from '@emotion/react';
|
|
5
5
|
import styled from '@emotion/styled';
|
|
6
6
|
import SplitPane from 'react-split-pane';
|
|
7
7
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
4
|
-
import { css } from '@emotion/
|
|
4
|
+
import { css } from '@emotion/react';
|
|
5
5
|
import styled from '@emotion/styled';
|
|
6
6
|
import { translate } from 'react-polyglot';
|
|
7
7
|
import { Link } from 'react-router-dom';
|