@griddo/ax 1.68.7 → 1.69.0
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/config/webpack.config.js +24 -0
- package/package.json +6 -2
- package/src/__mocks__/axios/ReferenceField.ts +471 -0
- package/src/{__tests__/components/Fields/UrlField → __mocks__}/mockedAxios.ts +0 -0
- package/src/__mocks__/reducers/structuredData.tsx +10 -0
- package/src/__mocks__/store/ReferenceField.ts +1671 -0
- package/src/__tests__/components/Fields/AnalyticsField/AnalyticsField.test.tsx +20 -28
- package/src/__tests__/components/Fields/CheckGroup/CheckGroup.test.tsx +16 -28
- package/src/__tests__/components/Fields/MultiCheckSelectGroup/MultiCheckSelectGroup.test.tsx +120 -0
- package/src/__tests__/components/Fields/ReferenceField/ReferenceField.test.tsx +532 -0
- package/src/__tests__/components/Fields/TextField/TextField.test.tsx +0 -1
- package/src/__tests__/components/Fields/UrlField/UrlField.test.tsx +14 -13
- package/src/__tests__/components/Fields/Wysiwyg/Wysiwyg.test.tsx +121 -0
- package/src/components/Fields/ComponentArray/MixableComponentArray/PasteModuleButton/index.tsx +4 -3
- package/src/components/Fields/ComponentArray/MixableComponentArray/index.tsx +69 -34
- package/src/components/Fields/ComponentArray/SameComponentArray/index.tsx +59 -26
- package/src/components/Fields/ComponentContainer/atoms.tsx +2 -8
- package/src/components/Fields/ComponentContainer/index.tsx +21 -21
- package/src/components/Fields/ComponentContainer/style.tsx +49 -28
- package/src/components/Fields/MultiCheckSelectGroup/index.tsx +2 -2
- package/src/components/Fields/MultiCheckSelectGroup/style.tsx +4 -4
- package/src/components/Fields/ReferenceField/AutoPanel/AutoItem/index.tsx +1 -1
- package/src/components/Fields/ReferenceField/AutoPanel/index.tsx +2 -4
- package/src/components/Fields/ReferenceField/AutoPanel/style.tsx +3 -0
- package/src/components/Fields/ReferenceField/Context/index.tsx +3 -3
- package/src/components/Fields/ReferenceField/ItemList/Item/index.tsx +15 -24
- package/src/components/Fields/ReferenceField/ItemList/Item/style.tsx +22 -15
- package/src/components/Fields/ReferenceField/ItemList/index.tsx +42 -11
- package/src/components/Fields/ReferenceField/ManualPanel/Item/index.tsx +1 -1
- package/src/components/Fields/ReferenceField/index.tsx +5 -6
- package/src/components/Fields/Wysiwyg/index.tsx +4 -4
- package/src/components/Gallery/GalleryPanel/DetailPanel/index.tsx +12 -4
- package/src/components/Gallery/GalleryPanel/index.tsx +10 -2
- package/src/components/Gallery/index.tsx +5 -1
- package/src/components/MainWrapper/AppBar/index.tsx +1 -1
- package/src/containers/App/reducer.tsx +1 -0
- package/src/containers/Gallery/actions.tsx +11 -5
- package/src/containers/Navigation/Defaults/actions.tsx +2 -2
- package/src/containers/PageEditor/actions.tsx +18 -7
- package/src/forms/elements.tsx +5 -6
- package/src/helpers/arrays.tsx +1 -2
- package/src/modules/Content/PageItem/index.tsx +13 -2
- package/src/modules/Content/index.tsx +18 -1
- package/src/modules/GlobalEditor/Editor/index.tsx +2 -2
- package/src/modules/GlobalEditor/index.tsx +9 -7
- package/src/modules/Navigation/Defaults/DefaultsEditor/Editor/index.tsx +1 -1
- package/src/modules/PageEditor/Editor/index.tsx +2 -2
- package/src/modules/PageEditor/index.tsx +8 -6
- package/src/modules/StructuredData/Form/index.tsx +7 -4
- package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/index.tsx +25 -3
- package/src/modules/StructuredData/StructuredDataList/index.tsx +4 -0
- package/src/__mocks__/reducers/analyticsState.tsx +0 -14
- package/src/__mocks__/reducers/app.tsx +0 -10
- package/src/__mocks__/reducers/pageEditor.tsx +0 -30
- package/src/__mocks__/reducers/sites.tsx +0 -10
package/config/webpack.config.js
CHANGED
|
@@ -22,9 +22,29 @@ const ModuleNotFoundPlugin = require("react-dev-utils/ModuleNotFoundPlugin");
|
|
|
22
22
|
const ForkTsCheckerWebpackPlugin = require("react-dev-utils/ForkTsCheckerWebpackPlugin");
|
|
23
23
|
const typescriptFormatter = require("react-dev-utils/typescriptFormatter");
|
|
24
24
|
const ReactRefreshWebpackPlugin = require("@pmmmwh/react-refresh-webpack-plugin");
|
|
25
|
+
const { resolveComponentsPath } = require("../config/griddo-config");
|
|
25
26
|
|
|
26
27
|
const postcssNormalize = require("postcss-normalize");
|
|
27
28
|
|
|
29
|
+
//
|
|
30
|
+
// PostCSS config file from components
|
|
31
|
+
//
|
|
32
|
+
|
|
33
|
+
// Get `postcss.config.file` path
|
|
34
|
+
const postcssConfigPath = resolveComponentsPath("postcss.config.js");
|
|
35
|
+
|
|
36
|
+
// Set a PostCSS empty config to use (destructuring) when `poscss.config.file`
|
|
37
|
+
// doesn't exist.
|
|
38
|
+
let postcssConfigPlugins = [];
|
|
39
|
+
|
|
40
|
+
// Get real postcss config if `postcss.config.js` exists.
|
|
41
|
+
// If the prop `plugins` doesn't exists in the configuration object it will be
|
|
42
|
+
// an empty array to prevents error on desctructuring.
|
|
43
|
+
if (fs.existsSync(postcssConfigPath)) {
|
|
44
|
+
const postcssConfig = require(postcssConfigPath);
|
|
45
|
+
postcssConfigPlugins = postcssConfig.plugins || [];
|
|
46
|
+
}
|
|
47
|
+
|
|
28
48
|
const { projectAliases } = require("./griddo-config");
|
|
29
49
|
|
|
30
50
|
const appPackageJson = require(paths.appPackageJson);
|
|
@@ -115,6 +135,10 @@ module.exports = function (webpackEnv) {
|
|
|
115
135
|
},
|
|
116
136
|
stage: 3,
|
|
117
137
|
}),
|
|
138
|
+
|
|
139
|
+
// PostCSS plugins from components.
|
|
140
|
+
...postcssConfigPlugins,
|
|
141
|
+
|
|
118
142
|
// Adds PostCSS Normalize as the reset css with default options,
|
|
119
143
|
// so that it honors browserslist config in package.json
|
|
120
144
|
// which in turn let's users customize the target behavior as per their needs.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/ax",
|
|
3
3
|
"description": "Griddo Author Experience",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.69.0",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@types/markdown-draft-js": "^2.2.2",
|
|
55
55
|
"@types/node": "12.11.1",
|
|
56
56
|
"@types/react": "^18.0.1",
|
|
57
|
+
"@types/react-beautiful-dnd": "^13.1.2",
|
|
57
58
|
"@types/react-datepicker": "^3.1.1",
|
|
58
59
|
"@types/react-dom": "^18.0.0",
|
|
59
60
|
"@types/react-draft-wysiwyg": "^1.13.1",
|
|
@@ -117,6 +118,7 @@
|
|
|
117
118
|
"postcss-safe-parser": "^6.0.0",
|
|
118
119
|
"react": "^18.0.0",
|
|
119
120
|
"react-app-polyfill": "^1.0.4",
|
|
121
|
+
"react-beautiful-dnd": "^13.1.0",
|
|
120
122
|
"react-datepicker": "^3.2.2",
|
|
121
123
|
"react-dev-utils": "^11.0.4",
|
|
122
124
|
"react-dom": "^18.0.0",
|
|
@@ -159,6 +161,7 @@
|
|
|
159
161
|
"@babel/preset-env": "^7.16.11",
|
|
160
162
|
"@babel/preset-typescript": "^7.16.7",
|
|
161
163
|
"@types/jest": "^27.4.1",
|
|
164
|
+
"@types/redux-mock-store": "^1.0.3",
|
|
162
165
|
"babel-jest": "^27.5.1",
|
|
163
166
|
"eslint": "^6.1.0",
|
|
164
167
|
"eslint-config-prettier": "^8.3.0",
|
|
@@ -175,6 +178,7 @@
|
|
|
175
178
|
"jest-styled-components": "^7.0.8",
|
|
176
179
|
"prettier": "^2.3.0",
|
|
177
180
|
"react-test-render": "1.1.2",
|
|
181
|
+
"redux-mock-store": "^1.5.4",
|
|
178
182
|
"ts-jest": "^27.1.4"
|
|
179
183
|
},
|
|
180
184
|
"resolutions": {
|
|
@@ -221,5 +225,5 @@
|
|
|
221
225
|
"publishConfig": {
|
|
222
226
|
"access": "public"
|
|
223
227
|
},
|
|
224
|
-
"gitHead": "
|
|
228
|
+
"gitHead": "e7c75c6d330faf9670561ac2ba04afc541627f9f"
|
|
225
229
|
}
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
export const articlesDataTitlesResponse = {
|
|
2
|
+
data: [{ id: "ARTICLES", title: "Articles" }],
|
|
3
|
+
status: 200,
|
|
4
|
+
statusText: "Ok",
|
|
5
|
+
headers: {},
|
|
6
|
+
config: {},
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const storiesDataTitlesResponse = {
|
|
10
|
+
data: [{ id: "STORIES", title: "Stories" }],
|
|
11
|
+
status: 200,
|
|
12
|
+
statusText: "Ok",
|
|
13
|
+
headers: {},
|
|
14
|
+
config: {},
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const articlesDistributorResponse = {
|
|
18
|
+
data: [
|
|
19
|
+
{
|
|
20
|
+
structuredData: "ARTICLES",
|
|
21
|
+
id: 4492,
|
|
22
|
+
relatedSite: null,
|
|
23
|
+
relatedPage: null,
|
|
24
|
+
content: {
|
|
25
|
+
content: "Article 02",
|
|
26
|
+
title: "Article 02",
|
|
27
|
+
subtitle: "Article 02",
|
|
28
|
+
linkText: "Article 02",
|
|
29
|
+
image: {
|
|
30
|
+
id: 808,
|
|
31
|
+
name: "photo-1460186136353-977e9d6085a1.jpg",
|
|
32
|
+
title: "",
|
|
33
|
+
description: "",
|
|
34
|
+
alt: "",
|
|
35
|
+
tags: [],
|
|
36
|
+
url: "http://images.dev.griddo.io/photo-1460186136353-977e9d6085a1",
|
|
37
|
+
thumb: "http://images.dev.griddo.io/w/215/h/161/photo-1460186136353-977e9d6085a1",
|
|
38
|
+
publicId: "thesaurus-dev/photo-1460186136353-977e9d6085a1_bda85c52-fed5-46c0-8ad6-85445329129d",
|
|
39
|
+
damId: "photo-1460186136353-977e9d6085a1",
|
|
40
|
+
published: "2022-01-05T08:46:24Z",
|
|
41
|
+
size: 567754,
|
|
42
|
+
width: 2670,
|
|
43
|
+
height: 1780,
|
|
44
|
+
orientation: "L",
|
|
45
|
+
site: "global",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
modified: "2022-02-04T11:00:49.000Z",
|
|
49
|
+
published: "2022-02-04T11:00:49.000Z",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
structuredData: "ARTICLES",
|
|
53
|
+
id: 4493,
|
|
54
|
+
relatedSite: null,
|
|
55
|
+
relatedPage: null,
|
|
56
|
+
content: {
|
|
57
|
+
content: "Article 02",
|
|
58
|
+
title: "Article 03",
|
|
59
|
+
subtitle: "Article 03",
|
|
60
|
+
linkText: "Article 02",
|
|
61
|
+
image: {
|
|
62
|
+
id: 808,
|
|
63
|
+
name: "photo-1460186136353-977e9d6085a1.jpg",
|
|
64
|
+
title: "",
|
|
65
|
+
description: "",
|
|
66
|
+
alt: "",
|
|
67
|
+
tags: [],
|
|
68
|
+
url: "http://images.dev.griddo.io/photo-1460186136353-977e9d6085a1",
|
|
69
|
+
thumb: "http://images.dev.griddo.io/w/215/h/161/photo-1460186136353-977e9d6085a1",
|
|
70
|
+
publicId: "thesaurus-dev/photo-1460186136353-977e9d6085a1_bda85c52-fed5-46c0-8ad6-85445329129d",
|
|
71
|
+
damId: "photo-1460186136353-977e9d6085a1",
|
|
72
|
+
published: "2022-01-05T08:46:24Z",
|
|
73
|
+
size: 567754,
|
|
74
|
+
width: 2670,
|
|
75
|
+
height: 1780,
|
|
76
|
+
orientation: "L",
|
|
77
|
+
site: "global",
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
modified: "2022-02-04T11:02:19.000Z",
|
|
81
|
+
published: "2022-02-04T11:02:19.000Z",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
status: 200,
|
|
85
|
+
statusText: "Ok",
|
|
86
|
+
headers: {},
|
|
87
|
+
config: {},
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export const emptyArticlesDistributorResponse = {
|
|
91
|
+
data: [],
|
|
92
|
+
status: 200,
|
|
93
|
+
statusText: "Ok",
|
|
94
|
+
headers: {},
|
|
95
|
+
config: {},
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export const storiesDistributorResponse = {
|
|
99
|
+
data: [],
|
|
100
|
+
status: 200,
|
|
101
|
+
statusText: "Ok",
|
|
102
|
+
headers: {},
|
|
103
|
+
config: {},
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export const structuredDataContentsResponse = {
|
|
107
|
+
data: {
|
|
108
|
+
page: 1,
|
|
109
|
+
totalItems: 8,
|
|
110
|
+
schemasVersion: "1.68.2",
|
|
111
|
+
schemasTimestamp: "2022-07-05T04:08:55.000Z",
|
|
112
|
+
items: [
|
|
113
|
+
{
|
|
114
|
+
id: 4527,
|
|
115
|
+
structuredData: "ARTICLES",
|
|
116
|
+
relatedSite: null,
|
|
117
|
+
relatedPage: null,
|
|
118
|
+
content: {
|
|
119
|
+
content:
|
|
120
|
+
"Vis id minim dicant sensibus. Pri aliquip conclusionemque ad, ad malis evertitur torquatos his. Has ei solum harum reprimique, id illum saperet tractatos his. Ei omnis soleat antiopam quo. Ad augue inani postulant mel, mel ea qualisque forensibus.\n\nLorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.",
|
|
121
|
+
title: "Artículo nuevo.",
|
|
122
|
+
subtitle: "Un subtítulo molón.",
|
|
123
|
+
linkText: "Un link",
|
|
124
|
+
image: {
|
|
125
|
+
id: 295,
|
|
126
|
+
name: "2012-02-08 21.28.47.jpg",
|
|
127
|
+
title: "Rachel art",
|
|
128
|
+
description: "Rachel art",
|
|
129
|
+
alt: "Rachel art",
|
|
130
|
+
tags: [],
|
|
131
|
+
url: "http://images.dev.griddo.io/2012-02-08-212847",
|
|
132
|
+
thumb: "http://images.dev.griddo.io/w/215/h/161/2012-02-08-212847",
|
|
133
|
+
publicId: "thesaurus-dev/2012-02-08_21.28.47_38a2a813-509c-4b15-abaa-dbb002a9f700",
|
|
134
|
+
damId: "2012-02-08-212847",
|
|
135
|
+
published: "2021-07-09T10:43:27Z",
|
|
136
|
+
size: 471962,
|
|
137
|
+
width: 2560,
|
|
138
|
+
height: 1440,
|
|
139
|
+
orientation: "L",
|
|
140
|
+
site: "global",
|
|
141
|
+
},
|
|
142
|
+
link: {
|
|
143
|
+
href: "https://secuoyas.com/",
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
entity: "d0dd0855-fb76-4743-bead-cecbb0f9a349",
|
|
147
|
+
draft: false,
|
|
148
|
+
published: "2022-02-11T10:28:00.000Z",
|
|
149
|
+
modified: "2022-02-11T10:28:05.000Z",
|
|
150
|
+
deleted: false,
|
|
151
|
+
pendingPublishing: false,
|
|
152
|
+
language: 4,
|
|
153
|
+
dataLanguages: [
|
|
154
|
+
{
|
|
155
|
+
id: 4527,
|
|
156
|
+
site: null,
|
|
157
|
+
page: null,
|
|
158
|
+
language: 4,
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: 4507,
|
|
164
|
+
structuredData: "ARTICLES",
|
|
165
|
+
relatedSite: null,
|
|
166
|
+
relatedPage: null,
|
|
167
|
+
content: {
|
|
168
|
+
content: "dfdsfdsfdsfs",
|
|
169
|
+
title: "Titulo",
|
|
170
|
+
subtitle: "subtitulo",
|
|
171
|
+
linkText: "sdsdfdsfsdfsd",
|
|
172
|
+
},
|
|
173
|
+
entity: "fd3a4e29-a34c-4b72-94da-dcf2e498a8b6",
|
|
174
|
+
draft: false,
|
|
175
|
+
published: "2022-02-07T17:00:40.000Z",
|
|
176
|
+
modified: "2022-02-07T17:00:40.000Z",
|
|
177
|
+
deleted: false,
|
|
178
|
+
pendingPublishing: false,
|
|
179
|
+
language: 4,
|
|
180
|
+
dataLanguages: [
|
|
181
|
+
{
|
|
182
|
+
id: 4507,
|
|
183
|
+
site: null,
|
|
184
|
+
page: null,
|
|
185
|
+
language: 4,
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
id: 4496,
|
|
191
|
+
structuredData: "ARTICLES",
|
|
192
|
+
relatedSite: null,
|
|
193
|
+
relatedPage: null,
|
|
194
|
+
content: {
|
|
195
|
+
content: "Article 06",
|
|
196
|
+
title: "Article 06",
|
|
197
|
+
subtitle: "Article 06",
|
|
198
|
+
linkText: "Article 06",
|
|
199
|
+
image: {
|
|
200
|
+
id: 808,
|
|
201
|
+
name: "photo-1460186136353-977e9d6085a1.jpg",
|
|
202
|
+
title: "",
|
|
203
|
+
description: "",
|
|
204
|
+
alt: "",
|
|
205
|
+
tags: [],
|
|
206
|
+
url: "http://images.dev.griddo.io/photo-1460186136353-977e9d6085a1",
|
|
207
|
+
thumb: "http://images.dev.griddo.io/w/215/h/161/photo-1460186136353-977e9d6085a1",
|
|
208
|
+
publicId: "thesaurus-dev/photo-1460186136353-977e9d6085a1_bda85c52-fed5-46c0-8ad6-85445329129d",
|
|
209
|
+
damId: "photo-1460186136353-977e9d6085a1",
|
|
210
|
+
published: "2022-01-05T08:46:24Z",
|
|
211
|
+
size: 567754,
|
|
212
|
+
width: 2670,
|
|
213
|
+
height: 1780,
|
|
214
|
+
orientation: "L",
|
|
215
|
+
site: "global",
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
entity: "0abd4167-4d9a-42d3-b7f6-924c27b982f2",
|
|
219
|
+
draft: false,
|
|
220
|
+
published: "2022-02-04T11:02:50.000Z",
|
|
221
|
+
modified: "2022-02-04T11:02:50.000Z",
|
|
222
|
+
deleted: false,
|
|
223
|
+
pendingPublishing: false,
|
|
224
|
+
language: 4,
|
|
225
|
+
dataLanguages: [
|
|
226
|
+
{
|
|
227
|
+
id: 4496,
|
|
228
|
+
site: null,
|
|
229
|
+
page: null,
|
|
230
|
+
language: 4,
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
id: 4495,
|
|
236
|
+
structuredData: "ARTICLES",
|
|
237
|
+
relatedSite: null,
|
|
238
|
+
relatedPage: null,
|
|
239
|
+
content: {
|
|
240
|
+
content: "Article 05",
|
|
241
|
+
title: "Article 05",
|
|
242
|
+
subtitle: "Article 05",
|
|
243
|
+
linkText: "Article 05",
|
|
244
|
+
image: {
|
|
245
|
+
id: 808,
|
|
246
|
+
name: "photo-1460186136353-977e9d6085a1.jpg",
|
|
247
|
+
title: "",
|
|
248
|
+
description: "",
|
|
249
|
+
alt: "",
|
|
250
|
+
tags: [],
|
|
251
|
+
url: "http://images.dev.griddo.io/photo-1460186136353-977e9d6085a1",
|
|
252
|
+
thumb: "http://images.dev.griddo.io/w/215/h/161/photo-1460186136353-977e9d6085a1",
|
|
253
|
+
publicId: "thesaurus-dev/photo-1460186136353-977e9d6085a1_bda85c52-fed5-46c0-8ad6-85445329129d",
|
|
254
|
+
damId: "photo-1460186136353-977e9d6085a1",
|
|
255
|
+
published: "2022-01-05T08:46:24Z",
|
|
256
|
+
size: 567754,
|
|
257
|
+
width: 2670,
|
|
258
|
+
height: 1780,
|
|
259
|
+
orientation: "L",
|
|
260
|
+
site: "global",
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
entity: "ae4425b6-5330-4d7f-a310-70022ef0692b",
|
|
264
|
+
draft: false,
|
|
265
|
+
published: "2022-02-04T11:02:42.000Z",
|
|
266
|
+
modified: "2022-02-04T11:02:42.000Z",
|
|
267
|
+
deleted: false,
|
|
268
|
+
pendingPublishing: false,
|
|
269
|
+
language: 4,
|
|
270
|
+
dataLanguages: [
|
|
271
|
+
{
|
|
272
|
+
id: 4495,
|
|
273
|
+
site: null,
|
|
274
|
+
page: null,
|
|
275
|
+
language: 4,
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
id: 4494,
|
|
281
|
+
structuredData: "ARTICLES",
|
|
282
|
+
relatedSite: null,
|
|
283
|
+
relatedPage: null,
|
|
284
|
+
content: {
|
|
285
|
+
content: "Article 04",
|
|
286
|
+
title: "Article 04",
|
|
287
|
+
subtitle: "Article 04",
|
|
288
|
+
linkText: "Article 04",
|
|
289
|
+
image: {
|
|
290
|
+
id: 808,
|
|
291
|
+
name: "photo-1460186136353-977e9d6085a1.jpg",
|
|
292
|
+
title: "",
|
|
293
|
+
description: "",
|
|
294
|
+
alt: "",
|
|
295
|
+
tags: [],
|
|
296
|
+
url: "http://images.dev.griddo.io/photo-1460186136353-977e9d6085a1",
|
|
297
|
+
thumb: "http://images.dev.griddo.io/w/215/h/161/photo-1460186136353-977e9d6085a1",
|
|
298
|
+
publicId: "thesaurus-dev/photo-1460186136353-977e9d6085a1_bda85c52-fed5-46c0-8ad6-85445329129d",
|
|
299
|
+
damId: "photo-1460186136353-977e9d6085a1",
|
|
300
|
+
published: "2022-01-05T08:46:24Z",
|
|
301
|
+
size: 567754,
|
|
302
|
+
width: 2670,
|
|
303
|
+
height: 1780,
|
|
304
|
+
orientation: "L",
|
|
305
|
+
site: "global",
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
entity: "d0cc9e34-2cfe-4411-8f8d-c517ee9ceb31",
|
|
309
|
+
draft: false,
|
|
310
|
+
published: "2022-02-04T11:02:34.000Z",
|
|
311
|
+
modified: "2022-02-04T11:02:34.000Z",
|
|
312
|
+
deleted: false,
|
|
313
|
+
pendingPublishing: false,
|
|
314
|
+
language: 4,
|
|
315
|
+
dataLanguages: [
|
|
316
|
+
{
|
|
317
|
+
id: 4494,
|
|
318
|
+
site: null,
|
|
319
|
+
page: null,
|
|
320
|
+
language: 4,
|
|
321
|
+
},
|
|
322
|
+
],
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
id: 4493,
|
|
326
|
+
structuredData: "ARTICLES",
|
|
327
|
+
relatedSite: null,
|
|
328
|
+
relatedPage: null,
|
|
329
|
+
content: {
|
|
330
|
+
content: "Article 02",
|
|
331
|
+
title: "Article 03",
|
|
332
|
+
subtitle: "Article 03",
|
|
333
|
+
linkText: "Article 02",
|
|
334
|
+
image: {
|
|
335
|
+
id: 808,
|
|
336
|
+
name: "photo-1460186136353-977e9d6085a1.jpg",
|
|
337
|
+
title: "",
|
|
338
|
+
description: "",
|
|
339
|
+
alt: "",
|
|
340
|
+
tags: [],
|
|
341
|
+
url: "http://images.dev.griddo.io/photo-1460186136353-977e9d6085a1",
|
|
342
|
+
thumb: "http://images.dev.griddo.io/w/215/h/161/photo-1460186136353-977e9d6085a1",
|
|
343
|
+
publicId: "thesaurus-dev/photo-1460186136353-977e9d6085a1_bda85c52-fed5-46c0-8ad6-85445329129d",
|
|
344
|
+
damId: "photo-1460186136353-977e9d6085a1",
|
|
345
|
+
published: "2022-01-05T08:46:24Z",
|
|
346
|
+
size: 567754,
|
|
347
|
+
width: 2670,
|
|
348
|
+
height: 1780,
|
|
349
|
+
orientation: "L",
|
|
350
|
+
site: "global",
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
entity: "f8c9aba4-28f7-43b6-832e-be77b6ca1c7b",
|
|
354
|
+
draft: false,
|
|
355
|
+
published: "2022-02-04T11:02:19.000Z",
|
|
356
|
+
modified: "2022-02-04T11:02:19.000Z",
|
|
357
|
+
deleted: false,
|
|
358
|
+
pendingPublishing: false,
|
|
359
|
+
language: 4,
|
|
360
|
+
dataLanguages: [
|
|
361
|
+
{
|
|
362
|
+
id: 4493,
|
|
363
|
+
site: null,
|
|
364
|
+
page: null,
|
|
365
|
+
language: 4,
|
|
366
|
+
},
|
|
367
|
+
],
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
id: 4492,
|
|
371
|
+
structuredData: "ARTICLES",
|
|
372
|
+
relatedSite: null,
|
|
373
|
+
relatedPage: null,
|
|
374
|
+
content: {
|
|
375
|
+
content: "Article 02",
|
|
376
|
+
title: "Article 02",
|
|
377
|
+
subtitle: "Article 02",
|
|
378
|
+
linkText: "Article 02",
|
|
379
|
+
image: {
|
|
380
|
+
id: 808,
|
|
381
|
+
name: "photo-1460186136353-977e9d6085a1.jpg",
|
|
382
|
+
title: "",
|
|
383
|
+
description: "",
|
|
384
|
+
alt: "",
|
|
385
|
+
tags: [],
|
|
386
|
+
url: "http://images.dev.griddo.io/photo-1460186136353-977e9d6085a1",
|
|
387
|
+
thumb: "http://images.dev.griddo.io/w/215/h/161/photo-1460186136353-977e9d6085a1",
|
|
388
|
+
publicId: "thesaurus-dev/photo-1460186136353-977e9d6085a1_bda85c52-fed5-46c0-8ad6-85445329129d",
|
|
389
|
+
damId: "photo-1460186136353-977e9d6085a1",
|
|
390
|
+
published: "2022-01-05T08:46:24Z",
|
|
391
|
+
size: 567754,
|
|
392
|
+
width: 2670,
|
|
393
|
+
height: 1780,
|
|
394
|
+
orientation: "L",
|
|
395
|
+
site: "global",
|
|
396
|
+
},
|
|
397
|
+
},
|
|
398
|
+
entity: "e791c2a4-e246-4b2f-964f-22bed615d142",
|
|
399
|
+
draft: false,
|
|
400
|
+
published: "2022-02-04T11:00:49.000Z",
|
|
401
|
+
modified: "2022-02-04T11:00:49.000Z",
|
|
402
|
+
deleted: false,
|
|
403
|
+
pendingPublishing: false,
|
|
404
|
+
language: 4,
|
|
405
|
+
dataLanguages: [
|
|
406
|
+
{
|
|
407
|
+
id: 4492,
|
|
408
|
+
site: null,
|
|
409
|
+
page: null,
|
|
410
|
+
language: 4,
|
|
411
|
+
},
|
|
412
|
+
],
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
id: 4491,
|
|
416
|
+
structuredData: "ARTICLES",
|
|
417
|
+
relatedSite: null,
|
|
418
|
+
relatedPage: null,
|
|
419
|
+
content: {
|
|
420
|
+
content: "content",
|
|
421
|
+
title: "Artículo número 1",
|
|
422
|
+
subtitle: "subtitle",
|
|
423
|
+
linkText: "Texto del enlace",
|
|
424
|
+
image: {
|
|
425
|
+
id: 808,
|
|
426
|
+
name: "photo-1460186136353-977e9d6085a1.jpg",
|
|
427
|
+
title: "",
|
|
428
|
+
description: "",
|
|
429
|
+
alt: "",
|
|
430
|
+
tags: [],
|
|
431
|
+
url: "http://images.dev.griddo.io/photo-1460186136353-977e9d6085a1",
|
|
432
|
+
thumb: "http://images.dev.griddo.io/w/215/h/161/photo-1460186136353-977e9d6085a1",
|
|
433
|
+
publicId: "thesaurus-dev/photo-1460186136353-977e9d6085a1_bda85c52-fed5-46c0-8ad6-85445329129d",
|
|
434
|
+
damId: "photo-1460186136353-977e9d6085a1",
|
|
435
|
+
published: "2022-01-05T08:46:24Z",
|
|
436
|
+
size: 567754,
|
|
437
|
+
width: 2670,
|
|
438
|
+
height: 1780,
|
|
439
|
+
orientation: "L",
|
|
440
|
+
site: "global",
|
|
441
|
+
},
|
|
442
|
+
link: {
|
|
443
|
+
href: null,
|
|
444
|
+
linkTo: 3460,
|
|
445
|
+
linkToURL: "//cx.dev.griddo.io/pre-griddo/componentfolder/big-page-01/",
|
|
446
|
+
title: "page-4",
|
|
447
|
+
},
|
|
448
|
+
},
|
|
449
|
+
entity: "1cfe956a-a9e4-4f71-bf1f-4183bd5ee595",
|
|
450
|
+
draft: false,
|
|
451
|
+
published: "2022-02-04T11:00:39.000Z",
|
|
452
|
+
modified: "2022-02-04T16:43:34.000Z",
|
|
453
|
+
deleted: false,
|
|
454
|
+
pendingPublishing: false,
|
|
455
|
+
language: 4,
|
|
456
|
+
dataLanguages: [
|
|
457
|
+
{
|
|
458
|
+
id: 4491,
|
|
459
|
+
site: null,
|
|
460
|
+
page: null,
|
|
461
|
+
language: 4,
|
|
462
|
+
},
|
|
463
|
+
],
|
|
464
|
+
},
|
|
465
|
+
],
|
|
466
|
+
},
|
|
467
|
+
status: 200,
|
|
468
|
+
statusText: "Ok",
|
|
469
|
+
headers: {},
|
|
470
|
+
config: {},
|
|
471
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { initialState } from "@ax/containers/StructuredData/reducer";
|
|
2
|
+
import { StructuredDataActionsCreators } from "@ax/containers/StructuredData/interfaces";
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
5
|
+
export default (state = initialState, action: { type: StructuredDataActionsCreators }) => {
|
|
6
|
+
switch (action.type) {
|
|
7
|
+
default:
|
|
8
|
+
return state;
|
|
9
|
+
}
|
|
10
|
+
};
|