@griddo/ax 1.73.28 → 1.74.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.
Files changed (98) hide show
  1. package/config/griddo-config/index.js +24 -3
  2. package/config/webpackSchemas.config.js +3 -5
  3. package/package.json +3 -2
  4. package/scripts/griddo-sync-schemas.js +4 -3
  5. package/src/__mocks__/axios/SitesList.ts +84 -0
  6. package/src/__mocks__/store/SitesList.ts +714 -0
  7. package/src/__tests__/components/Avatar/Avatar.test.tsx +119 -0
  8. package/src/__tests__/components/Avatar/__snapshots__/Avatar.test.tsx.snap +61 -0
  9. package/src/__tests__/components/Fields/ReferenceField/ReferenceField.test.tsx +10 -10
  10. package/src/__tests__/components/LanguageMenu/LanguageMenu.test.tsx +221 -0
  11. package/src/__tests__/components/Loading/Loading.test.tsx +23 -0
  12. package/src/__tests__/components/Login/Login.test.tsx +247 -0
  13. package/src/__tests__/components/Login/RecoveryModal/RecoveryModal.test.tsx +185 -0
  14. package/src/__tests__/components/TableFilters/LiveFilter/LiveFilter.test.tsx +6 -6
  15. package/src/__tests__/modules/Sites/Sites.test.tsx +259 -0
  16. package/src/__tests__/modules/Sites/SitesList/ListView/BulkHeader/BulkHeader.test.tsx +51 -0
  17. package/src/__tests__/modules/Sites/SitesList/SitesList.test.tsx +896 -0
  18. package/src/api/sites.tsx +43 -4
  19. package/src/components/ActionMenu/index.tsx +1 -1
  20. package/src/components/Avatar/index.tsx +4 -4
  21. package/src/components/Browser/index.tsx +27 -20
  22. package/src/components/BrowserContent/index.tsx +6 -0
  23. package/src/components/Fields/AsyncSelect/style.tsx +6 -3
  24. package/src/components/Fields/CheckField/index.tsx +1 -0
  25. package/src/components/Fields/DateField/style.tsx +3 -1
  26. package/src/components/Fields/HeadingField/index.tsx +14 -5
  27. package/src/components/Fields/ImageField/index.tsx +3 -0
  28. package/src/components/Fields/ImageField/style.tsx +2 -2
  29. package/src/components/Fields/Select/style.tsx +2 -0
  30. package/src/components/Fields/SliderField/index.tsx +2 -1
  31. package/src/components/Fields/TextField/index.tsx +1 -0
  32. package/src/components/Icon/components/BulletList.js +16 -0
  33. package/src/components/Icon/components/Grid2.js +16 -0
  34. package/src/components/Icon/svgs/Bullet-list.svg +3 -0
  35. package/src/components/Icon/svgs/Grid-2.svg +3 -0
  36. package/src/components/IconAction/index.tsx +4 -2
  37. package/src/components/IconAction/style.tsx +8 -2
  38. package/src/components/LanguageMenu/index.tsx +13 -6
  39. package/src/components/Login/RecoveryModal/index.tsx +5 -4
  40. package/src/components/Login/index.tsx +13 -3
  41. package/src/components/Login/style.tsx +12 -25
  42. package/src/components/Pagination/style.tsx +1 -1
  43. package/src/components/SearchField/index.tsx +9 -1
  44. package/src/components/SideModal/style.tsx +8 -8
  45. package/src/components/TableFilters/LastAccessFilter/index.tsx +52 -0
  46. package/src/components/TableFilters/LastAccessFilter/style.tsx +31 -0
  47. package/src/components/TableFilters/LiveFilter/index.tsx +7 -5
  48. package/src/components/TableFilters/NameFilter/index.tsx +4 -3
  49. package/src/components/TableFilters/index.tsx +2 -0
  50. package/src/components/TableList/index.tsx +2 -1
  51. package/src/components/TableList/style.tsx +2 -2
  52. package/src/components/index.tsx +2 -0
  53. package/src/containers/App/actions.tsx +5 -0
  54. package/src/containers/App/interfaces.tsx +1 -1
  55. package/src/containers/App/reducer.tsx +1 -1
  56. package/src/containers/Navigation/Defaults/actions.tsx +3 -1
  57. package/src/containers/PageEditor/actions.tsx +6 -3
  58. package/src/containers/Sites/actions.tsx +76 -11
  59. package/src/containers/Sites/constants.tsx +2 -0
  60. package/src/containers/Sites/interfaces.tsx +12 -0
  61. package/src/containers/Sites/reducer.tsx +8 -0
  62. package/src/helpers/schemas.tsx +27 -1
  63. package/src/hooks/iframe.ts +56 -0
  64. package/src/hooks/index.tsx +3 -0
  65. package/src/modules/Content/index.tsx +4 -3
  66. package/src/modules/FramePreview/index.tsx +25 -39
  67. package/src/modules/GlobalEditor/Editor/index.tsx +2 -2
  68. package/src/modules/GlobalEditor/PageBrowser/index.tsx +16 -4
  69. package/src/modules/Navigation/Defaults/DefaultsEditor/Editor/DefaultsBrowser/index.tsx +11 -7
  70. package/src/modules/Navigation/Defaults/DefaultsEditor/Editor/index.tsx +4 -3
  71. package/src/modules/Navigation/Menus/List/Table/SidePanel/Form/index.tsx +1 -0
  72. package/src/modules/PageEditor/Editor/index.tsx +2 -2
  73. package/src/modules/PageEditor/PageBrowser/index.tsx +16 -4
  74. package/src/modules/PageEditor/index.tsx +8 -7
  75. package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/ConfigPanel/Field/index.tsx +12 -11
  76. package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/index.tsx +3 -17
  77. package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/style.tsx +2 -10
  78. package/src/modules/Sites/SitesList/GridView/GridHeaderFilter/index.tsx +72 -0
  79. package/src/modules/Sites/SitesList/GridView/GridHeaderFilter/style.tsx +32 -0
  80. package/src/modules/Sites/SitesList/{SiteItem → GridView/GridSiteItem}/index.tsx +17 -27
  81. package/src/modules/Sites/SitesList/{SiteItem → GridView/GridSiteItem}/style.tsx +14 -25
  82. package/src/modules/Sites/SitesList/ListView/BulkHeader/TableHeader/index.tsx +64 -0
  83. package/src/modules/Sites/SitesList/ListView/BulkHeader/TableHeader/style.tsx +50 -0
  84. package/src/modules/Sites/SitesList/ListView/BulkHeader/index.tsx +75 -0
  85. package/src/modules/Sites/SitesList/ListView/BulkHeader/style.tsx +8 -0
  86. package/src/modules/Sites/SitesList/ListView/ListSiteItem/index.tsx +200 -0
  87. package/src/modules/Sites/SitesList/ListView/ListSiteItem/style.tsx +112 -0
  88. package/src/modules/Sites/SitesList/RecentSiteItem/index.tsx +50 -0
  89. package/src/modules/Sites/SitesList/RecentSiteItem/style.tsx +28 -0
  90. package/src/modules/Sites/SitesList/SiteModal/index.tsx +4 -3
  91. package/src/modules/Sites/SitesList/atoms.tsx +47 -0
  92. package/src/modules/Sites/SitesList/hooks.tsx +102 -0
  93. package/src/modules/Sites/SitesList/index.tsx +272 -19
  94. package/src/modules/Sites/SitesList/style.tsx +157 -4
  95. package/src/modules/Sites/SitesList/utils.tsx +33 -0
  96. package/src/modules/Sites/index.tsx +6 -11
  97. package/src/modules/StructuredData/StructuredDataList/BulkHeader/TableHeader/index.tsx +1 -1
  98. package/src/types/index.tsx +25 -2
@@ -0,0 +1,714 @@
1
+ export const sitesDataMock = {
2
+ totalItems: 2,
3
+ sites: [
4
+ {
5
+ id: 1,
6
+ name: "Site 1",
7
+ theme: "default-theme",
8
+ author: 2,
9
+ pages: [],
10
+ updated: true,
11
+ home: "//cx.dev.griddo.io/pre-griddo/componentfolder",
12
+ isPublished: false,
13
+ bigAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_10",
14
+ favicon: "https://images.dev.griddo.io/by-themascot-1920_2",
15
+ published: "2021-11-03T10:42:32.000Z",
16
+ rendering: false,
17
+ renderingHours: 0,
18
+ shouldBeUpdated: false,
19
+ slug: "/griddo-components",
20
+ smallAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_9",
21
+ socials: null,
22
+ thumbnail: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_7",
23
+ timezone: "Pacific/Pago_Pago",
24
+ deleted: 0,
25
+ hash: null,
26
+ languageSites: [146, 178],
27
+ lastAccess: "2022-09-05T07:34:19.000Z",
28
+ modified: "2022-06-22T07:17:34.000Z",
29
+ navigationModules: null,
30
+ },
31
+ {
32
+ id: 2,
33
+ name: "Site 2",
34
+ theme: "default-theme",
35
+ author: 2,
36
+ pages: [],
37
+ updated: true,
38
+ home: "//cx.dev.griddo.io/pre-griddo/componentfolder",
39
+ isPublished: false,
40
+ bigAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_10",
41
+ favicon: "https://images.dev.griddo.io/by-themascot-1920_2",
42
+ published: "2021-11-03T10:42:32.000Z",
43
+ rendering: false,
44
+ renderingHours: 0,
45
+ shouldBeUpdated: false,
46
+ slug: "/griddo-components",
47
+ smallAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_9",
48
+ socials: null,
49
+ thumbnail: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_7",
50
+ timezone: "Pacific/Pago_Pago",
51
+ deleted: 0,
52
+ hash: null,
53
+ languageSites: [146, 178],
54
+ lastAccess: "2022-09-05T07:34:19.000Z",
55
+ modified: "2022-06-22T07:17:34.000Z",
56
+ navigationModules: null,
57
+ },
58
+ ],
59
+ recentSites: [
60
+ {
61
+ id: 3,
62
+ name: "Site 3",
63
+ theme: "default-theme",
64
+ author: 2,
65
+ pages: [],
66
+ updated: true,
67
+ home: "//cx.dev.griddo.io/pre-griddo/componentfolder",
68
+ isPublished: false,
69
+ bigAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_10",
70
+ favicon: "https://images.dev.griddo.io/by-themascot-1920_2",
71
+ published: "2021-11-03T10:42:32.000Z",
72
+ rendering: false,
73
+ renderingHours: 0,
74
+ shouldBeUpdated: false,
75
+ slug: "/griddo-components",
76
+ smallAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_9",
77
+ socials: null,
78
+ thumbnail: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_7",
79
+ timezone: "Pacific/Pago_Pago",
80
+ deleted: 0,
81
+ hash: null,
82
+ languageSites: [146, 178],
83
+ lastAccess: "2022-09-05T07:34:19.000Z",
84
+ modified: "2022-06-22T07:17:34.000Z",
85
+ navigationModules: null,
86
+ },
87
+ {
88
+ id: 4,
89
+ name: "Site 4",
90
+ theme: "default-theme",
91
+ author: 2,
92
+ pages: [],
93
+ updated: true,
94
+ home: "//cx.dev.griddo.io/pre-griddo/componentfolder",
95
+ isPublished: false,
96
+ bigAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_10",
97
+ favicon: "https://images.dev.griddo.io/by-themascot-1920_2",
98
+ published: "2021-11-03T10:42:32.000Z",
99
+ rendering: false,
100
+ renderingHours: 0,
101
+ shouldBeUpdated: false,
102
+ slug: "/griddo-components",
103
+ smallAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_9",
104
+ socials: null,
105
+ thumbnail: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_7",
106
+ timezone: "Pacific/Pago_Pago",
107
+ deleted: 0,
108
+ hash: null,
109
+ languageSites: [146, 178],
110
+ lastAccess: "2022-09-05T07:34:19.000Z",
111
+ modified: "2022-06-22T07:17:34.000Z",
112
+ navigationModules: null,
113
+ },
114
+ ],
115
+ };
116
+
117
+ export const sitesDataNoThumbnailMock = {
118
+ totalItems: 2,
119
+ sites: [
120
+ {
121
+ id: 1,
122
+ name: "Site 1",
123
+ theme: "default-theme",
124
+ author: 2,
125
+ pages: [],
126
+ updated: true,
127
+ home: "//cx.dev.griddo.io/pre-griddo/componentfolder",
128
+ isPublished: false,
129
+ bigAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_10",
130
+ favicon: "https://images.dev.griddo.io/by-themascot-1920_2",
131
+ published: "2021-11-03T10:42:32.000Z",
132
+ rendering: false,
133
+ renderingHours: 0,
134
+ shouldBeUpdated: false,
135
+ slug: "/griddo-components",
136
+ smallAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_9",
137
+ socials: null,
138
+ thumbnail: null,
139
+ timezone: "Pacific/Pago_Pago",
140
+ deleted: 0,
141
+ hash: null,
142
+ languageSites: [146, 178],
143
+ lastAccess: "2022-09-05T07:34:19.000Z",
144
+ modified: "2022-06-22T07:17:34.000Z",
145
+ navigationModules: null,
146
+ },
147
+ {
148
+ id: 2,
149
+ name: "Site 2",
150
+ theme: "default-theme",
151
+ author: 2,
152
+ pages: [],
153
+ updated: true,
154
+ home: "//cx.dev.griddo.io/pre-griddo/componentfolder",
155
+ isPublished: false,
156
+ bigAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_10",
157
+ favicon: "https://images.dev.griddo.io/by-themascot-1920_2",
158
+ published: "2021-11-03T10:42:32.000Z",
159
+ rendering: false,
160
+ renderingHours: 0,
161
+ shouldBeUpdated: false,
162
+ slug: "/griddo-components",
163
+ smallAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_9",
164
+ socials: null,
165
+ thumbnail: null,
166
+ timezone: "Pacific/Pago_Pago",
167
+ deleted: 0,
168
+ hash: null,
169
+ languageSites: [146, 178],
170
+ lastAccess: "2022-09-05T07:34:19.000Z",
171
+ modified: "2022-06-22T07:17:34.000Z",
172
+ navigationModules: null,
173
+ },
174
+ ],
175
+ recentSites: [
176
+ {
177
+ id: 3,
178
+ name: "Site 3",
179
+ theme: "default-theme",
180
+ author: 2,
181
+ pages: [],
182
+ updated: true,
183
+ home: "//cx.dev.griddo.io/pre-griddo/componentfolder",
184
+ isPublished: false,
185
+ bigAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_10",
186
+ favicon: "https://images.dev.griddo.io/by-themascot-1920_2",
187
+ published: "2021-11-03T10:42:32.000Z",
188
+ rendering: false,
189
+ renderingHours: 0,
190
+ shouldBeUpdated: false,
191
+ slug: "/griddo-components",
192
+ smallAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_9",
193
+ socials: null,
194
+ thumbnail: null,
195
+ timezone: "Pacific/Pago_Pago",
196
+ deleted: 0,
197
+ hash: null,
198
+ languageSites: [146, 178],
199
+ lastAccess: "2022-09-05T07:34:19.000Z",
200
+ modified: "2022-06-22T07:17:34.000Z",
201
+ navigationModules: null,
202
+ },
203
+ {
204
+ id: 4,
205
+ name: "Site 4",
206
+ theme: "default-theme",
207
+ author: 2,
208
+ pages: [],
209
+ updated: true,
210
+ home: "//cx.dev.griddo.io/pre-griddo/componentfolder",
211
+ isPublished: false,
212
+ bigAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_10",
213
+ favicon: "https://images.dev.griddo.io/by-themascot-1920_2",
214
+ published: "2021-11-03T10:42:32.000Z",
215
+ rendering: false,
216
+ renderingHours: 0,
217
+ shouldBeUpdated: false,
218
+ slug: "/griddo-components",
219
+ smallAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_9",
220
+ socials: null,
221
+ thumbnail: null,
222
+ timezone: "Pacific/Pago_Pago",
223
+ deleted: 0,
224
+ hash: null,
225
+ languageSites: [146, 178],
226
+ lastAccess: "2022-09-05T07:34:19.000Z",
227
+ modified: "2022-06-22T07:17:34.000Z",
228
+ navigationModules: null,
229
+ },
230
+ ],
231
+ };
232
+
233
+ export const userDataMock = {
234
+ currentUser: {
235
+ company: "",
236
+ dateCreated: null,
237
+ description: "",
238
+ email: "bot@secuoyas.com",
239
+ enabled: true,
240
+ failed: 0,
241
+ id: 4,
242
+ image: null,
243
+ name: "Bot",
244
+ sites: ["all"],
245
+ status: "active",
246
+ timezone: null,
247
+ username: "Griddo Bot",
248
+ },
249
+ };
250
+
251
+ export const structuredDataMock = {
252
+ totalItems: 9,
253
+ page: 1,
254
+ items: [
255
+ {
256
+ id: "NEWS",
257
+ title: "News",
258
+ category: { id: "ARTICLES", label: "Articles" },
259
+ description: "It shows the news of the sector and the schools",
260
+ image: {},
261
+ templates: [
262
+ {
263
+ id: "NewsDetail",
264
+ title: "News Detail",
265
+ thumbnails: { "default-theme": {}, "griddo-alt-theme": {} },
266
+ dataPacks: ["NEWS"],
267
+ type: { label: "News", value: "news", mode: "detail" },
268
+ },
269
+ {
270
+ id: "NewsList",
271
+ title: "News List",
272
+ thumbnails: {
273
+ "1x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/NewsList",
274
+ "2x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/NewsList@2x",
275
+ },
276
+ dataPacks: ["NEWS"],
277
+ type: { label: "News", value: "news", mode: "list" },
278
+ },
279
+ ],
280
+ modules: [
281
+ {
282
+ id: "NewsDistributor",
283
+ title: "News Distributor",
284
+ category: "articlesAndEvents",
285
+ thumbnails: { "default-theme": {}, "griddo-alt-theme": {} },
286
+ dataPacks: ["NEWS"],
287
+ type: {},
288
+ sectionList: {
289
+ BasicTemplate: ["mainContent"],
290
+ NewsDetail: ["closureContent"],
291
+ NewsList: ["relatedContent"],
292
+ SitemapTemplate: ["relatedContent", "closureContent"],
293
+ StoryDetail: ["mainContent", "relatedContent"],
294
+ },
295
+ },
296
+ ],
297
+ categories: [
298
+ { id: "SCHOOLS", title: "Schools", dataPacks: ["NEWS", "STUDIES", "TEACHERS", "TESTIMONIALS"] },
299
+ { id: "PATHWAYS", title: "Pathways", dataPacks: ["NEWS", "STUDIES", "TEACHERS"] },
300
+ { id: "NEWS_AREAS", title: "News Areas", dataPacks: ["NEWS"] },
301
+ { id: "GLOBAL_NEWS", title: "Global News", dataPacks: ["NEWS"] },
302
+ ],
303
+ structuredData: [
304
+ {
305
+ id: "NEWS",
306
+ title: "News",
307
+ dataPacks: ["NEWS"],
308
+ local: false,
309
+ fromPage: true,
310
+ relatedCategories: ["NEWS_AREAS"],
311
+ },
312
+ {
313
+ id: "UNIT",
314
+ title: "Unit",
315
+ dataPacks: ["NEWS", "STORIES", "TEACHERS", "STUDIES"],
316
+ local: false,
317
+ fromPage: false,
318
+ relatedCategories: [],
319
+ },
320
+ ],
321
+ },
322
+ {
323
+ id: "ARTICLES",
324
+ title: "Articles",
325
+ category: { id: "ARTICLES", label: "Articles" },
326
+ description: "Allows you to hightlight articles",
327
+ image:
328
+ "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/data-packs-thumbnails/articles.png",
329
+ templates: [
330
+ {
331
+ id: "ArticlesList",
332
+ title: "Articles List",
333
+ thumbnails: {
334
+ "1x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/ArticlesList",
335
+ "2x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/ArticlesList@2x",
336
+ },
337
+ dataPacks: ["ARTICLES"],
338
+ type: { label: "Articles", value: "articles", mode: "list" },
339
+ },
340
+ ],
341
+ modules: [
342
+ {
343
+ id: "ArticlesDistributor",
344
+ title: "Articles Distributor",
345
+ category: "articlesAndEvents",
346
+ thumbnails: {
347
+ "1x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/ArticlesDistributor",
348
+ "2x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/ArticlesDistributor@2x",
349
+ },
350
+ dataPacks: ["ARTICLES"],
351
+ type: {},
352
+ sectionList: {
353
+ BasicTemplate: ["mainContent"],
354
+ NewsDetail: ["closureContent"],
355
+ NewsList: ["relatedContent"],
356
+ SitemapTemplate: ["relatedContent", "closureContent"],
357
+ StoryDetail: ["mainContent", "relatedContent"],
358
+ },
359
+ },
360
+ ],
361
+ categories: [],
362
+ structuredData: [
363
+ {
364
+ id: "ARTICLES",
365
+ title: "Articles",
366
+ dataPacks: ["ARTICLES"],
367
+ local: false,
368
+ fromPage: false,
369
+ relatedCategories: [],
370
+ },
371
+ ],
372
+ },
373
+ {
374
+ id: "STORIES",
375
+ title: "Stories",
376
+ category: { id: "STORIES", label: "Stories" },
377
+ description: "It allows to use Stories content type of different profiles.",
378
+ image:
379
+ "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/data-packs-thumbnails/stories.png",
380
+ templates: [
381
+ {
382
+ id: "StoryDetail",
383
+ title: "Story Detail",
384
+ thumbnails: { "default-theme": {}, "griddo-alt-theme": {} },
385
+ dataPacks: ["STORIES"],
386
+ type: { label: "Stories", value: "stories", mode: "detail" },
387
+ },
388
+ {
389
+ id: "StoriesList",
390
+ title: "Stories List",
391
+ thumbnails: {
392
+ "1x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/StoriesList",
393
+ "2x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/StoriesList@2x",
394
+ },
395
+ dataPacks: ["STORIES"],
396
+ type: { label: "Stories", value: "stories", mode: "list" },
397
+ },
398
+ ],
399
+ modules: [
400
+ {
401
+ id: "StoriesDistributor",
402
+ title: "Stories Distributor",
403
+ category: "people",
404
+ thumbnails: {
405
+ "1x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/StoriesDistributor",
406
+ "2x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/StoriesDistributor@2x",
407
+ },
408
+ dataPacks: ["STORIES"],
409
+ type: {},
410
+ sectionList: {
411
+ BasicTemplate: ["mainContent"],
412
+ NewsDetail: ["closureContent"],
413
+ NewsList: ["relatedContent"],
414
+ SitemapTemplate: ["relatedContent", "closureContent"],
415
+ StoryDetail: ["mainContent", "relatedContent"],
416
+ },
417
+ },
418
+ ],
419
+ categories: [
420
+ { id: "STORY_TYPE", title: "Story Type", dataPacks: ["STORIES"] },
421
+ { id: "STORY_PROFILE", title: "Story Profile", dataPacks: ["STORIES", "PEOPLE"] },
422
+ { id: "PROGRAM_TYPES", title: "Program Type", dataPacks: ["EVENTS", "STORIES", "STUDIES"] },
423
+ { id: "PROGRAM_FORMAT", title: "Program Format", dataPacks: ["EVENTS", "STORIES", "STUDIES"] },
424
+ ],
425
+ structuredData: [
426
+ {
427
+ id: "STORIES",
428
+ title: "Stories",
429
+ dataPacks: ["STORIES"],
430
+ local: false,
431
+ fromPage: true,
432
+ relatedCategories: ["STORY_TYPE", "STORY_PROFILE"],
433
+ },
434
+ {
435
+ id: "UNIT",
436
+ title: "Unit",
437
+ dataPacks: ["NEWS", "STORIES", "TEACHERS", "STUDIES"],
438
+ local: false,
439
+ fromPage: false,
440
+ relatedCategories: [],
441
+ },
442
+ ],
443
+ },
444
+ {
445
+ id: "TESTIMONIALS",
446
+ title: "Testimonials",
447
+ category: { id: "PEOPLE", label: "People" },
448
+ description: "Allows you to display several testimonials on one carousel",
449
+ image:
450
+ "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/data-packs-thumbnails/testimonials.png",
451
+ templates: [],
452
+ modules: [
453
+ {
454
+ id: "Testimonial",
455
+ title: "Testimonial",
456
+ category: "people",
457
+ thumbnails: { "default-theme": {}, "griddo-alt-theme": {} },
458
+ dataPacks: ["TESTIMONIALS"],
459
+ type: {},
460
+ sectionList: {
461
+ BasicTemplate: ["mainContent"],
462
+ NewsDetail: ["closureContent"],
463
+ NewsList: ["relatedContent"],
464
+ SitemapTemplate: ["relatedContent", "closureContent"],
465
+ StoryDetail: ["mainContent", "relatedContent"],
466
+ },
467
+ },
468
+ ],
469
+ categories: [{ id: "SCHOOLS", title: "Schools", dataPacks: ["NEWS", "STUDIES", "TEACHERS", "TESTIMONIALS"] }],
470
+ structuredData: [
471
+ {
472
+ id: "TESTIMONIALS",
473
+ title: "Testimonials",
474
+ dataPacks: ["TESTIMONIALS"],
475
+ local: false,
476
+ fromPage: false,
477
+ relatedCategories: ["SCHOOLS"],
478
+ },
479
+ ],
480
+ },
481
+ {
482
+ id: "EVENTS",
483
+ title: "Events",
484
+ category: { id: "ARTICLES_EVENTS", label: "Articles & Events" },
485
+ description:
486
+ "It shows the next events, being able to select if you want to show specific ones manually. It also adds the functionality of Add to calendar.",
487
+ image: "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/data-packs-thumbnails/events.png",
488
+ templates: [
489
+ {
490
+ id: "EventDetail",
491
+ title: "Event Detail",
492
+ thumbnails: {
493
+ "1x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/EventDetail",
494
+ "2x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/EventDetail@2x",
495
+ },
496
+ dataPacks: ["EVENTS"],
497
+ type: { label: "Events", value: "events", mode: "detail" },
498
+ },
499
+ {
500
+ id: "EventList",
501
+ title: "Event List",
502
+ thumbnails: {
503
+ "1x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/EventList",
504
+ "2x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/EventList@2x",
505
+ },
506
+ dataPacks: ["EVENTS"],
507
+ type: { label: "Events", value: "events", mode: "list" },
508
+ },
509
+ ],
510
+ modules: [
511
+ {
512
+ id: "EventsDistributor",
513
+ title: "Events Distributor",
514
+ category: "articlesAndEvents",
515
+ thumbnails: {
516
+ "1x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/EventsDistributor",
517
+ "2x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/EventsDistributor@2x",
518
+ },
519
+ dataPacks: ["EVENTS"],
520
+ type: {},
521
+ sectionList: {
522
+ BasicTemplate: ["mainContent"],
523
+ NewsDetail: ["closureContent"],
524
+ NewsList: ["relatedContent"],
525
+ SitemapTemplate: ["relatedContent", "closureContent"],
526
+ StoryDetail: ["mainContent", "relatedContent"],
527
+ },
528
+ },
529
+ ],
530
+ categories: [
531
+ { id: "PROGRAM_TYPES", title: "Program Type", dataPacks: ["EVENTS", "STORIES", "STUDIES"] },
532
+ { id: "PROGRAM_FORMAT", title: "Program Format", dataPacks: ["EVENTS", "STORIES", "STUDIES"] },
533
+ { id: "EVENT_AREAS", title: "Event Areas", dataPacks: ["EVENTS"] },
534
+ { id: "LOCATION", title: "Location", dataPacks: ["EVENTS"] },
535
+ { id: "EVENT_FORMATS", title: "Event Formats", dataPacks: ["EVENTS"] },
536
+ { id: "EVENT_LOCATIONS", title: "Event Locations", dataPacks: ["EVENTS"] },
537
+ { id: "EVENT_REGION", title: "Event Region", dataPacks: ["EVENTS"] },
538
+ ],
539
+ structuredData: [
540
+ {
541
+ id: "EVENTS",
542
+ title: "Events",
543
+ dataPacks: ["EVENTS"],
544
+ local: false,
545
+ fromPage: true,
546
+ relatedCategories: ["EVENT_AREAS", "EVENT_LOCATIONS", "EVENT_FORMATS", "PROGRAM_TYPES", "EVENT_REGION"],
547
+ },
548
+ ],
549
+ },
550
+ {
551
+ id: "PEOPLE",
552
+ title: "People",
553
+ category: { id: "PEOPLE", label: "People" },
554
+ description: "It shows a list of people outside the School who collaborate by giving talks and seminars",
555
+ image: "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/data-packs-thumbnails/people.png",
556
+ templates: [],
557
+ modules: [
558
+ {
559
+ id: "PersonDistributor",
560
+ title: "Person Distributor",
561
+ category: "people",
562
+ thumbnails: {
563
+ "1x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/PersonDistributor",
564
+ "2x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/PersonDistributor@2x",
565
+ },
566
+ dataPacks: ["PEOPLE"],
567
+ type: {},
568
+ sectionList: {
569
+ BasicTemplate: ["mainContent"],
570
+ NewsDetail: ["closureContent"],
571
+ NewsList: ["relatedContent"],
572
+ SitemapTemplate: ["relatedContent", "closureContent"],
573
+ StoryDetail: ["mainContent", "relatedContent"],
574
+ },
575
+ },
576
+ ],
577
+ categories: [{ id: "STORY_PROFILE", title: "Story Profile", dataPacks: ["STORIES", "PEOPLE"] }],
578
+ structuredData: [
579
+ {
580
+ id: "PEOPLE",
581
+ title: "People",
582
+ dataPacks: ["PEOPLE"],
583
+ local: false,
584
+ fromPage: false,
585
+ relatedCategories: ["STORY_PROFILE"],
586
+ },
587
+ ],
588
+ },
589
+ {
590
+ id: "STUDIES",
591
+ title: "Studies",
592
+ category: { id: "STUDIES", label: "Studies" },
593
+ description: "Template to Programs",
594
+ image:
595
+ "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/data-packs-thumbnails/studies.png",
596
+ templates: [
597
+ {
598
+ id: "ProgramDetail",
599
+ title: "Program Detail",
600
+ thumbnails: { "default-theme": {}, "griddo-alt-theme": {} },
601
+ dataPacks: ["STUDIES"],
602
+ type: { label: "Programs", value: "programs", mode: "detail" },
603
+ },
604
+ ],
605
+ modules: [],
606
+ categories: [
607
+ { id: "PROGRAM_TYPES", title: "Program Type", dataPacks: ["EVENTS", "STORIES", "STUDIES"] },
608
+ { id: "PROGRAM_FORMAT", title: "Program Format", dataPacks: ["EVENTS", "STORIES", "STUDIES"] },
609
+ { id: "SCHOOLS", title: "Schools", dataPacks: ["NEWS", "STUDIES", "TEACHERS", "TESTIMONIALS"] },
610
+ { id: "PATHWAYS", title: "Pathways", dataPacks: ["NEWS", "STUDIES", "TEACHERS"] },
611
+ ],
612
+ structuredData: [
613
+ {
614
+ id: "PROGRAMS",
615
+ title: "Programs",
616
+ dataPacks: ["STUDIES"],
617
+ local: false,
618
+ fromPage: true,
619
+ relatedCategories: ["PROGRAM_TYPES", "PROGRAM_FORMAT", "SCHOOLS"],
620
+ },
621
+ {
622
+ id: "UNIT",
623
+ title: "Unit",
624
+ dataPacks: ["NEWS", "STORIES", "TEACHERS", "STUDIES"],
625
+ local: false,
626
+ fromPage: false,
627
+ relatedCategories: [],
628
+ },
629
+ {
630
+ id: "STUDY_LANDING_TYPE",
631
+ title: "Study Landing type",
632
+ dataPacks: ["STUDIES"],
633
+ local: true,
634
+ fromPage: false,
635
+ relatedCategories: [],
636
+ },
637
+ ],
638
+ },
639
+ {
640
+ id: "TEACHERS",
641
+ title: "Teachers",
642
+ category: { id: "PEOPLE", label: "People" },
643
+ description: "It allows to use Teachers content type ",
644
+ image:
645
+ "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/data-packs-thumbnails/teachers.png",
646
+ templates: [
647
+ {
648
+ id: "TeacherDetail",
649
+ title: "Teacher Detail",
650
+ thumbnails: { "default-theme": {}, "griddo-alt-theme": {} },
651
+ dataPacks: ["TEACHERS"],
652
+ type: { label: "Teachers", value: "teachers", mode: "detail" },
653
+ },
654
+ ],
655
+ modules: [],
656
+ categories: [
657
+ { id: "SCHOOLS", title: "Schools", dataPacks: ["NEWS", "STUDIES", "TEACHERS", "TESTIMONIALS"] },
658
+ { id: "PATHWAYS", title: "Pathways", dataPacks: ["NEWS", "STUDIES", "TEACHERS"] },
659
+ ],
660
+ structuredData: [
661
+ {
662
+ id: "TEACHERS",
663
+ title: "Teachers",
664
+ dataPacks: ["TEACHERS"],
665
+ local: false,
666
+ fromPage: true,
667
+ relatedCategories: ["UNIT", "SCHOOLS", "PATHWAYS", "PROGRAMS"],
668
+ },
669
+ {
670
+ id: "UNIT",
671
+ title: "Unit",
672
+ dataPacks: ["NEWS", "STORIES", "TEACHERS", "STUDIES"],
673
+ local: false,
674
+ fromPage: false,
675
+ relatedCategories: [],
676
+ },
677
+ ],
678
+ },
679
+ {
680
+ id: "STUDYPLANS",
681
+ title: "StudyPlans",
682
+ category: { id: "STUDIES", label: "Studies" },
683
+ description:
684
+ "It allows to put a study plan content into an accordion with a table on the side. Each element has embedded established components.",
685
+ image:
686
+ "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/data-packs-thumbnails/studyPlans.png",
687
+ templates: [],
688
+ modules: [
689
+ {
690
+ id: "StudyPlan",
691
+ title: "StudyPlan",
692
+ category: "studies",
693
+ thumbnails: {
694
+ "1x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/StudyPlan",
695
+ "2x": "https://res.cloudinary.com/thesaurus-cms/image/upload/griddo-components/thumbnails/StudyPlan@2x",
696
+ },
697
+ dataPacks: ["STUDYPLANS"],
698
+ type: {},
699
+ },
700
+ ],
701
+ categories: [],
702
+ structuredData: [
703
+ {
704
+ id: "STUDYPLANS",
705
+ title: "StudyPlans",
706
+ dataPacks: ["STUDYPLANS"],
707
+ local: false,
708
+ fromPage: false,
709
+ relatedCategories: [],
710
+ },
711
+ ],
712
+ },
713
+ ],
714
+ };