@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.
Files changed (55) hide show
  1. package/config/webpack.config.js +24 -0
  2. package/package.json +6 -2
  3. package/src/__mocks__/axios/ReferenceField.ts +471 -0
  4. package/src/{__tests__/components/Fields/UrlField → __mocks__}/mockedAxios.ts +0 -0
  5. package/src/__mocks__/reducers/structuredData.tsx +10 -0
  6. package/src/__mocks__/store/ReferenceField.ts +1671 -0
  7. package/src/__tests__/components/Fields/AnalyticsField/AnalyticsField.test.tsx +20 -28
  8. package/src/__tests__/components/Fields/CheckGroup/CheckGroup.test.tsx +16 -28
  9. package/src/__tests__/components/Fields/MultiCheckSelectGroup/MultiCheckSelectGroup.test.tsx +120 -0
  10. package/src/__tests__/components/Fields/ReferenceField/ReferenceField.test.tsx +532 -0
  11. package/src/__tests__/components/Fields/TextField/TextField.test.tsx +0 -1
  12. package/src/__tests__/components/Fields/UrlField/UrlField.test.tsx +14 -13
  13. package/src/__tests__/components/Fields/Wysiwyg/Wysiwyg.test.tsx +121 -0
  14. package/src/components/Fields/ComponentArray/MixableComponentArray/PasteModuleButton/index.tsx +4 -3
  15. package/src/components/Fields/ComponentArray/MixableComponentArray/index.tsx +69 -34
  16. package/src/components/Fields/ComponentArray/SameComponentArray/index.tsx +59 -26
  17. package/src/components/Fields/ComponentContainer/atoms.tsx +2 -8
  18. package/src/components/Fields/ComponentContainer/index.tsx +21 -21
  19. package/src/components/Fields/ComponentContainer/style.tsx +49 -28
  20. package/src/components/Fields/MultiCheckSelectGroup/index.tsx +2 -2
  21. package/src/components/Fields/MultiCheckSelectGroup/style.tsx +4 -4
  22. package/src/components/Fields/ReferenceField/AutoPanel/AutoItem/index.tsx +1 -1
  23. package/src/components/Fields/ReferenceField/AutoPanel/index.tsx +2 -4
  24. package/src/components/Fields/ReferenceField/AutoPanel/style.tsx +3 -0
  25. package/src/components/Fields/ReferenceField/Context/index.tsx +3 -3
  26. package/src/components/Fields/ReferenceField/ItemList/Item/index.tsx +15 -24
  27. package/src/components/Fields/ReferenceField/ItemList/Item/style.tsx +22 -15
  28. package/src/components/Fields/ReferenceField/ItemList/index.tsx +42 -11
  29. package/src/components/Fields/ReferenceField/ManualPanel/Item/index.tsx +1 -1
  30. package/src/components/Fields/ReferenceField/index.tsx +5 -6
  31. package/src/components/Fields/Wysiwyg/index.tsx +4 -4
  32. package/src/components/Gallery/GalleryPanel/DetailPanel/index.tsx +12 -4
  33. package/src/components/Gallery/GalleryPanel/index.tsx +10 -2
  34. package/src/components/Gallery/index.tsx +5 -1
  35. package/src/components/MainWrapper/AppBar/index.tsx +1 -1
  36. package/src/containers/App/reducer.tsx +1 -0
  37. package/src/containers/Gallery/actions.tsx +11 -5
  38. package/src/containers/Navigation/Defaults/actions.tsx +2 -2
  39. package/src/containers/PageEditor/actions.tsx +18 -7
  40. package/src/forms/elements.tsx +5 -6
  41. package/src/helpers/arrays.tsx +1 -2
  42. package/src/modules/Content/PageItem/index.tsx +13 -2
  43. package/src/modules/Content/index.tsx +18 -1
  44. package/src/modules/GlobalEditor/Editor/index.tsx +2 -2
  45. package/src/modules/GlobalEditor/index.tsx +9 -7
  46. package/src/modules/Navigation/Defaults/DefaultsEditor/Editor/index.tsx +1 -1
  47. package/src/modules/PageEditor/Editor/index.tsx +2 -2
  48. package/src/modules/PageEditor/index.tsx +8 -6
  49. package/src/modules/StructuredData/Form/index.tsx +7 -4
  50. package/src/modules/StructuredData/StructuredDataList/GlobalPageItem/index.tsx +25 -3
  51. package/src/modules/StructuredData/StructuredDataList/index.tsx +4 -0
  52. package/src/__mocks__/reducers/analyticsState.tsx +0 -14
  53. package/src/__mocks__/reducers/app.tsx +0 -10
  54. package/src/__mocks__/reducers/pageEditor.tsx +0 -30
  55. package/src/__mocks__/reducers/sites.tsx +0 -10
@@ -0,0 +1,1671 @@
1
+ export const structuredDataMock = {
2
+ isActive: false,
3
+ categories: {
4
+ global: [
5
+ {
6
+ id: "STORY_TYPE",
7
+ title: "Story Type",
8
+ dataPacks: ["STORIES"],
9
+ local: false,
10
+ taxonomy: true,
11
+ fromPage: false,
12
+ translate: true,
13
+ schema: null,
14
+ clone: null,
15
+ defaults: null,
16
+ editable: true,
17
+ },
18
+ {
19
+ id: "STORY_PROFILE",
20
+ title: "Story Profile",
21
+ dataPacks: ["STORIES", "PEOPLE"],
22
+ local: false,
23
+ taxonomy: true,
24
+ fromPage: false,
25
+ translate: true,
26
+ schema: null,
27
+ clone: null,
28
+ defaults: null,
29
+ editable: true,
30
+ },
31
+ {
32
+ id: "PROGRAM_TYPES",
33
+ title: "Program Type",
34
+ dataPacks: ["EVENTS", "STORIES", "STUDIES"],
35
+ local: false,
36
+ taxonomy: true,
37
+ fromPage: false,
38
+ translate: true,
39
+ schema: null,
40
+ clone: null,
41
+ defaults: null,
42
+ editable: true,
43
+ },
44
+ {
45
+ id: "PROGRAM_FORMAT",
46
+ title: "Program Format",
47
+ dataPacks: ["EVENTS", "STORIES", "STUDIES"],
48
+ local: false,
49
+ taxonomy: true,
50
+ fromPage: false,
51
+ translate: true,
52
+ schema: null,
53
+ clone: null,
54
+ defaults: null,
55
+ editable: true,
56
+ },
57
+ {
58
+ id: "SCHOOLS",
59
+ title: "Schools",
60
+ dataPacks: ["NEWS", "STUDIES", "TEACHERS", "TESTIMONIALS"],
61
+ local: false,
62
+ taxonomy: true,
63
+ fromPage: false,
64
+ translate: true,
65
+ schema: null,
66
+ clone: null,
67
+ defaultValues: null,
68
+ editable: true,
69
+ },
70
+ {
71
+ id: "PATHWAYS",
72
+ title: "Pathways",
73
+ dataPacks: ["NEWS", "STUDIES", "TEACHERS"],
74
+ local: false,
75
+ taxonomy: true,
76
+ fromPage: false,
77
+ translate: true,
78
+ schema: null,
79
+ clone: null,
80
+ defaultValues: null,
81
+ editable: true,
82
+ },
83
+ {
84
+ id: "NEWS_AREAS",
85
+ title: "News Areas",
86
+ dataPacks: ["NEWS"],
87
+ local: false,
88
+ taxonomy: true,
89
+ fromPage: false,
90
+ translate: true,
91
+ schema: null,
92
+ clone: null,
93
+ defaults: null,
94
+ editable: true,
95
+ },
96
+ {
97
+ id: "GLOBAL_NEWS",
98
+ title: "Global News",
99
+ dataPacks: ["NEWS"],
100
+ local: false,
101
+ taxonomy: true,
102
+ fromPage: false,
103
+ translate: true,
104
+ schema: null,
105
+ clone: null,
106
+ defaults: null,
107
+ editable: true,
108
+ },
109
+ {
110
+ id: "EVENT_AREAS",
111
+ title: "Event Areas",
112
+ dataPacks: ["EVENTS"],
113
+ local: false,
114
+ taxonomy: true,
115
+ fromPage: false,
116
+ translate: true,
117
+ schema: null,
118
+ clone: null,
119
+ defaults: null,
120
+ editable: true,
121
+ },
122
+ {
123
+ id: "LOCATION",
124
+ title: "Location",
125
+ dataPacks: ["EVENTS"],
126
+ local: false,
127
+ taxonomy: true,
128
+ fromPage: false,
129
+ translate: true,
130
+ schema: null,
131
+ clone: null,
132
+ defaults: null,
133
+ editable: true,
134
+ },
135
+ {
136
+ id: "EVENT_FORMATS",
137
+ title: "Event Formats",
138
+ dataPacks: ["EVENTS"],
139
+ local: false,
140
+ taxonomy: true,
141
+ fromPage: false,
142
+ translate: true,
143
+ schema: null,
144
+ clone: null,
145
+ defaults: null,
146
+ editable: true,
147
+ },
148
+ {
149
+ id: "EVENT_LOCATIONS",
150
+ title: "Event Locations",
151
+ dataPacks: ["EVENTS"],
152
+ local: false,
153
+ taxonomy: true,
154
+ fromPage: false,
155
+ translate: true,
156
+ schema: null,
157
+ clone: null,
158
+ defaults: null,
159
+ editable: true,
160
+ },
161
+ {
162
+ id: "EVENT_REGION",
163
+ title: "Event Region",
164
+ dataPacks: ["EVENTS"],
165
+ local: false,
166
+ taxonomy: true,
167
+ fromPage: false,
168
+ translate: true,
169
+ schema: null,
170
+ clone: null,
171
+ defaults: null,
172
+ editable: true,
173
+ },
174
+ ],
175
+ site: [],
176
+ },
177
+ structuredData: {
178
+ global: [
179
+ {
180
+ id: "PROGRAMS",
181
+ title: "Programs",
182
+ dataPacks: ["STUDIES"],
183
+ local: false,
184
+ taxonomy: false,
185
+ fromPage: true,
186
+ translate: true,
187
+ clone: null,
188
+ defaultValues: null,
189
+ schema: {
190
+ templates: ["ProgramDetail"],
191
+ searchFrom: [],
192
+ fields: [
193
+ {
194
+ key: "title",
195
+ title: "Title",
196
+ type: "TextField",
197
+ from: "title",
198
+ showList: false,
199
+ },
200
+ {
201
+ key: "programType",
202
+ title: "Type of program",
203
+ type: "AsyncCheckGroup",
204
+ source: "PROGRAM_TYPES",
205
+ from: "programType",
206
+ showList: false,
207
+ },
208
+ {
209
+ key: "programFormat",
210
+ title: "Format of program",
211
+ type: "AsyncCheckGroup",
212
+ source: "PROGRAM_FORMAT",
213
+ from: "programFormat",
214
+ showList: false,
215
+ },
216
+ {
217
+ key: "schoolsData",
218
+ title: "Schools",
219
+ name: "Schools Data",
220
+ type: "AsyncCheckGroup",
221
+ from: "schoolsData",
222
+ source: "SCHOOLS",
223
+ indexable: true,
224
+ showList: true,
225
+ },
226
+ {
227
+ key: "pathWaysData",
228
+ title: "PathWay Data",
229
+ name: "PathWay Data",
230
+ type: "ReferenceField",
231
+ from: "pathWaysData",
232
+ showList: false,
233
+ },
234
+ {
235
+ key: "abstract",
236
+ title: "Abstract",
237
+ type: "RichText",
238
+ from: "abstract",
239
+ showList: false,
240
+ },
241
+ {
242
+ key: "programQuickFactsSection",
243
+ title: "Program Quick Facts",
244
+ type: "ComponentArray",
245
+ from: "programQuickFactsSection",
246
+ showList: false,
247
+ },
248
+ {
249
+ key: "heroSection",
250
+ title: "Hero Section",
251
+ type: "ComponentArray",
252
+ from: "heroSection",
253
+ showList: false,
254
+ },
255
+ ],
256
+ },
257
+ editable: true,
258
+ },
259
+ {
260
+ id: "TEACHERS",
261
+ title: "Teachers",
262
+ dataPacks: ["TEACHERS"],
263
+ local: false,
264
+ taxonomy: false,
265
+ fromPage: true,
266
+ translate: true,
267
+ schema: {
268
+ templates: ["TeacherDetail"],
269
+ fields: [
270
+ {
271
+ key: "title",
272
+ title: "Name",
273
+ type: "TextField",
274
+ from: "title",
275
+ mandatory: true,
276
+ showList: false,
277
+ },
278
+ {
279
+ key: "image",
280
+ title: "Image",
281
+ type: "ImageField",
282
+ from: "image",
283
+ mandatory: true,
284
+ showList: false,
285
+ },
286
+ {
287
+ key: "position",
288
+ title: "Position",
289
+ type: "TextField",
290
+ from: "position",
291
+ mandatory: true,
292
+ showList: false,
293
+ },
294
+ {
295
+ key: "linkedin",
296
+ title: "Linkedin",
297
+ from: "linkedin",
298
+ type: "UrlField",
299
+ showList: false,
300
+ },
301
+ {
302
+ key: "units",
303
+ title: "Unit",
304
+ from: "categories.units",
305
+ type: "AsyncCheckGroup",
306
+ source: "UNIT",
307
+ showList: false,
308
+ },
309
+ {
310
+ key: "categories.schools",
311
+ title: "Schools",
312
+ from: "categories.schools",
313
+ type: "AsyncCheckGroup",
314
+ source: "SCHOOLS",
315
+ indexable: true,
316
+ showList: true,
317
+ },
318
+ {
319
+ key: "pathways",
320
+ title: "Pathways",
321
+ from: "categories.pathways",
322
+ type: "AsyncCheckGroup",
323
+ source: "PATHWAYS",
324
+ showList: false,
325
+ },
326
+ {
327
+ key: "programs",
328
+ title: "Programs",
329
+ from: "categories.programs",
330
+ type: "AsyncCheckGroup",
331
+ source: "PROGRAMS",
332
+ showList: false,
333
+ },
334
+ ],
335
+ },
336
+ clone: null,
337
+ defaults: null,
338
+ editable: true,
339
+ },
340
+ {
341
+ id: "ARTICLES",
342
+ title: "Articles",
343
+ dataPacks: ["ARTICLES"],
344
+ local: false,
345
+ taxonomy: false,
346
+ fromPage: false,
347
+ translate: true,
348
+ schema: {
349
+ fields: [
350
+ {
351
+ key: "title",
352
+ title: "Title",
353
+ type: "TextField",
354
+ mandatory: true,
355
+ showList: false,
356
+ },
357
+ {
358
+ key: "subtitle",
359
+ title: "Subtitle",
360
+ type: "TextField",
361
+ mandatory: true,
362
+ showList: false,
363
+ },
364
+ {
365
+ key: "content",
366
+ title: "Content",
367
+ type: "RichText",
368
+ mandatory: true,
369
+ showList: false,
370
+ },
371
+ {
372
+ key: "linkText",
373
+ title: "Link text",
374
+ type: "TextField",
375
+ mandatory: true,
376
+ showList: false,
377
+ },
378
+ {
379
+ key: "link",
380
+ title: "Link",
381
+ type: "UrlField",
382
+ mandatory: true,
383
+ showList: false,
384
+ },
385
+ {
386
+ key: "image",
387
+ title: "Image",
388
+ type: "ImageField",
389
+ mandatory: true,
390
+ showList: false,
391
+ },
392
+ ],
393
+ },
394
+ clone: null,
395
+ defaultValues: null,
396
+ editable: true,
397
+ },
398
+ {
399
+ id: "NEWS",
400
+ title: "News",
401
+ dataPacks: ["NEWS"],
402
+ local: false,
403
+ taxonomy: false,
404
+ fromPage: true,
405
+ translate: true,
406
+ schema: {
407
+ templates: ["NewsDetail"],
408
+ fields: [
409
+ {
410
+ key: "title",
411
+ title: "Title",
412
+ from: "title",
413
+ type: "TextField",
414
+ showList: false,
415
+ },
416
+ {
417
+ key: "abstract",
418
+ title: "Abstract",
419
+ from: "abstract",
420
+ type: "TextField",
421
+ showList: false,
422
+ },
423
+ {
424
+ key: "image",
425
+ title: "Image",
426
+ from: "image",
427
+ type: "ImageField",
428
+ showList: false,
429
+ },
430
+ {
431
+ key: "categories",
432
+ title: "Categories",
433
+ from: "categories",
434
+ type: "AsyncCheckGroup",
435
+ source: "NEWS_AREAS",
436
+ indexable: true,
437
+ showList: true,
438
+ },
439
+ {
440
+ key: "lead",
441
+ title: "Lead",
442
+ from: "lead",
443
+ type: "TextField",
444
+ showList: false,
445
+ },
446
+ {
447
+ key: "longAbstract",
448
+ title: "longAbstract",
449
+ from: "longAbstract",
450
+ type: "TextField",
451
+ showList: false,
452
+ },
453
+ {
454
+ key: "content",
455
+ title: "Content",
456
+ from: "content",
457
+ type: "TextField",
458
+ showList: false,
459
+ },
460
+ {
461
+ key: "date",
462
+ title: "Date",
463
+ from: "date",
464
+ type: "TextField",
465
+ showList: false,
466
+ },
467
+ ],
468
+ searchFrom: ["lead", "longAbstract", "content"],
469
+ },
470
+ clone: null,
471
+ defaultValues: null,
472
+ editable: true,
473
+ },
474
+ {
475
+ id: "STORIES",
476
+ title: "Stories",
477
+ dataPacks: ["STORIES"],
478
+ local: false,
479
+ taxonomy: false,
480
+ fromPage: true,
481
+ translate: true,
482
+ schema: {
483
+ templates: ["StoryDetail"],
484
+ fields: [
485
+ {
486
+ key: "title",
487
+ title: "Title",
488
+ type: "TextField",
489
+ from: "title",
490
+ mandatory: true,
491
+ indexable: true,
492
+ showList: false,
493
+ },
494
+ {
495
+ key: "storyType",
496
+ title: "Type of story",
497
+ type: "AsyncCheckGroup",
498
+ source: "STORY_TYPE",
499
+ from: "storyType",
500
+ mandatory: true,
501
+ showList: false,
502
+ },
503
+ {
504
+ key: "storyProfile",
505
+ title: "Profile",
506
+ type: "AsyncCheckGroup",
507
+ source: "STORY_PROFILE",
508
+ from: "storyProfile",
509
+ mandatory: true,
510
+ indexable: true,
511
+ showList: true,
512
+ },
513
+ {
514
+ key: "quote",
515
+ title: "Quote",
516
+ type: "RichText",
517
+ from: "quote",
518
+ mandatory: true,
519
+ showList: false,
520
+ },
521
+ {
522
+ key: "image",
523
+ title: "Image",
524
+ type: "TextField",
525
+ from: "image",
526
+ showList: false,
527
+ },
528
+ {
529
+ key: "who",
530
+ title: "Who",
531
+ type: "TextField",
532
+ from: "who",
533
+ mandatory: true,
534
+ showList: false,
535
+ },
536
+ {
537
+ key: "position",
538
+ title: "Position",
539
+ type: "TextField",
540
+ from: "position",
541
+ mandatory: true,
542
+ showList: false,
543
+ },
544
+ ],
545
+ searchFrom: ["quote", "who", "position"],
546
+ },
547
+ clone: null,
548
+ defaultValues: null,
549
+ editable: true,
550
+ },
551
+ {
552
+ id: "PEOPLE",
553
+ title: "People",
554
+ dataPacks: ["PEOPLE"],
555
+ local: false,
556
+ taxonomy: false,
557
+ fromPage: false,
558
+ translate: true,
559
+ schema: {
560
+ fields: [
561
+ {
562
+ key: "title",
563
+ title: "Name",
564
+ type: "TextField",
565
+ mandatory: true,
566
+ showList: false,
567
+ },
568
+ {
569
+ key: "profile",
570
+ title: "Profile",
571
+ from: "profile",
572
+ type: "AsyncCheckGroup",
573
+ source: "STORY_PROFILE",
574
+ indexable: true,
575
+ showList: true,
576
+ },
577
+ {
578
+ key: "image",
579
+ title: "Image",
580
+ type: "ImageField",
581
+ mandatory: true,
582
+ showList: false,
583
+ },
584
+ {
585
+ key: "position",
586
+ title: "Position",
587
+ type: "TextField",
588
+ mandatory: true,
589
+ showList: false,
590
+ },
591
+ {
592
+ key: "linkedin",
593
+ title: "Linkedin",
594
+ type: "UrlField",
595
+ showList: false,
596
+ },
597
+ {
598
+ key: "phone",
599
+ title: "Phone",
600
+ type: "TextField",
601
+ showList: false,
602
+ },
603
+ {
604
+ key: "email",
605
+ title: "Email",
606
+ type: "TextField",
607
+ showList: false,
608
+ },
609
+ {
610
+ key: "imageBackground",
611
+ title: "imageBackground",
612
+ type: "ImageField",
613
+ showList: false,
614
+ },
615
+ {
616
+ key: "modalDetail",
617
+ title: "Modal Detail",
618
+ type: "RichText",
619
+ showList: false,
620
+ },
621
+ ],
622
+ searchFrom: [],
623
+ },
624
+ clone: null,
625
+ defaultValues: null,
626
+ editable: true,
627
+ },
628
+ {
629
+ id: "TESTIMONIALS",
630
+ title: "Testimonials",
631
+ dataPacks: ["TESTIMONIALS"],
632
+ local: false,
633
+ taxonomy: false,
634
+ fromPage: false,
635
+ translate: true,
636
+ schema: {
637
+ fields: [
638
+ {
639
+ key: "image",
640
+ title: "Image",
641
+ type: "ImageField",
642
+ mandatory: true,
643
+ showList: false,
644
+ },
645
+ {
646
+ key: "quote",
647
+ title: "Quote",
648
+ type: "RichText",
649
+ mandatory: true,
650
+ showList: false,
651
+ },
652
+ {
653
+ key: "title",
654
+ title: "Author",
655
+ type: "TextField",
656
+ mandatory: true,
657
+ searchable: false,
658
+ showList: false,
659
+ },
660
+ {
661
+ key: "jobTitle",
662
+ title: "Job Title",
663
+ type: "RichText",
664
+ mandatory: true,
665
+ showList: false,
666
+ },
667
+ {
668
+ key: "school",
669
+ title: "School",
670
+ from: "school",
671
+ type: "AsyncCheckGroup",
672
+ source: "SCHOOLS",
673
+ indexable: true,
674
+ showList: true,
675
+ },
676
+ ],
677
+ },
678
+ clone: null,
679
+ defaultValues: {
680
+ quote: "Lorem ipsum",
681
+ title: "Title",
682
+ jobTitle: "Job title",
683
+ },
684
+ editable: true,
685
+ },
686
+ {
687
+ id: "EVENTS",
688
+ title: "Events",
689
+ dataPacks: ["EVENTS"],
690
+ local: false,
691
+ taxonomy: false,
692
+ fromPage: true,
693
+ translate: true,
694
+ schema: {
695
+ templates: ["EventDetail"],
696
+ fields: [
697
+ {
698
+ key: "title",
699
+ title: "Title",
700
+ type: "TextField",
701
+ from: "title",
702
+ showList: false,
703
+ },
704
+ {
705
+ key: "image",
706
+ title: "Image",
707
+ type: "ImageField",
708
+ from: "image",
709
+ showList: false,
710
+ },
711
+ {
712
+ key: "tag",
713
+ title: "Tag",
714
+ type: "TextField",
715
+ from: "tag",
716
+ showList: false,
717
+ },
718
+ {
719
+ key: "dateTime",
720
+ title: "Event date and time",
721
+ type: "DateField",
722
+ from: "dateTime",
723
+ indexable: true,
724
+ showList: false,
725
+ },
726
+ {
727
+ key: "eventHour",
728
+ title: "Event Hour",
729
+ type: "TextField",
730
+ from: "eventHour",
731
+ showList: false,
732
+ },
733
+ {
734
+ key: "language",
735
+ title: "Language",
736
+ type: "TextField",
737
+ from: "language",
738
+ showList: false,
739
+ },
740
+ {
741
+ key: "address",
742
+ title: "Address",
743
+ type: "TextField",
744
+ from: "address",
745
+ showList: false,
746
+ },
747
+ {
748
+ key: "country",
749
+ title: "Country",
750
+ type: "TextField",
751
+ from: "country",
752
+ showList: false,
753
+ },
754
+ {
755
+ key: "distributorDescription",
756
+ title: "Distributor description",
757
+ type: "TextField",
758
+ from: "distributorDescription",
759
+ showList: false,
760
+ },
761
+ {
762
+ key: "addToCalendar",
763
+ title: "Add to calendar button",
764
+ type: "ComponentContainer",
765
+ from: "addToCalendar",
766
+ showList: false,
767
+ },
768
+ {
769
+ key: "eventAreas",
770
+ title: "Event Areas",
771
+ type: "AsyncCheckGroup",
772
+ source: "EVENT_AREAS",
773
+ from: "eventAreas",
774
+ showList: false,
775
+ },
776
+ {
777
+ key: "eventLocation",
778
+ title: "Event Locations",
779
+ type: "AsyncCheckGroup",
780
+ source: "EVENT_LOCATIONS",
781
+ from: "eventLocation",
782
+ showList: false,
783
+ },
784
+ {
785
+ key: "eventFormat",
786
+ title: "Event Formats",
787
+ type: "AsyncCheckGroup",
788
+ source: "EVENT_FORMATS",
789
+ from: "eventFormat",
790
+ showList: false,
791
+ },
792
+ {
793
+ key: "programType",
794
+ title: "Program Type",
795
+ type: "AsyncCheckGroup",
796
+ source: "PROGRAM_TYPES",
797
+ from: "programType",
798
+ showList: false,
799
+ },
800
+ {
801
+ key: "eventRegion",
802
+ title: "Region",
803
+ type: "AsyncCheckGroup",
804
+ source: "EVENT_REGION",
805
+ from: "eventRegion",
806
+ indexable: true,
807
+ showList: true,
808
+ },
809
+ ],
810
+ searchFrom: ["tag"],
811
+ },
812
+ clone: null,
813
+ defaultValues: null,
814
+ editable: true,
815
+ },
816
+ {
817
+ id: "STUDYPLANS",
818
+ title: "StudyPlans",
819
+ dataPacks: ["STUDYPLANS"],
820
+ local: false,
821
+ taxonomy: false,
822
+ fromPage: false,
823
+ translate: true,
824
+ schema: {
825
+ fields: [
826
+ {
827
+ key: "title",
828
+ title: "Title",
829
+ type: "TextField",
830
+ mandatory: true,
831
+ searchable: false,
832
+ showList: false,
833
+ },
834
+ {
835
+ type: "ArrayFieldGroup",
836
+ title: "",
837
+ key: "years",
838
+ name: "Year",
839
+ fields: [
840
+ {
841
+ title: "Title",
842
+ type: "TextField",
843
+ key: "yearTitle",
844
+ mandatory: "true",
845
+ isTitle: true,
846
+ },
847
+ {
848
+ title: "Title Description",
849
+ type: "TextField",
850
+ key: "yearSubtitle",
851
+ },
852
+ {
853
+ title: "Year Description",
854
+ type: "RichText",
855
+ key: "yearDescription",
856
+ },
857
+ {
858
+ key: "divider",
859
+ title: "",
860
+ type: "FieldsDivider",
861
+ data: {
862
+ title: "Year Media",
863
+ text: "You can add a video or image to the year. if you add both, image will be the thumbnail of the video.",
864
+ },
865
+ },
866
+ {
867
+ key: "yearVideo",
868
+ title: "Year Video URL",
869
+ type: "TextField",
870
+ },
871
+ {
872
+ key: "yearImg",
873
+ title: "Year Image",
874
+ type: "ImageField",
875
+ },
876
+ {
877
+ type: "ArrayFieldGroup",
878
+ title: "SEMESTERS",
879
+ key: "semesters",
880
+ name: "Semester",
881
+ mandatory: "true",
882
+ fields: [
883
+ {
884
+ title: "Title",
885
+ type: "TextField",
886
+ key: "semTitle",
887
+ mandatory: "true",
888
+ isTitle: true,
889
+ },
890
+ {
891
+ type: "ArrayFieldGroup",
892
+ title: "Subjects",
893
+ key: "subjects",
894
+ name: "Subject",
895
+ mandatory: "true",
896
+ fields: [
897
+ {
898
+ title: "Title",
899
+ type: "TextField",
900
+ key: "subjTitle",
901
+ mandatory: "true",
902
+ isTitle: true,
903
+ },
904
+ {
905
+ title: "Type",
906
+ type: "TextField",
907
+ key: "subjType",
908
+ mandatory: "true",
909
+ },
910
+ {
911
+ title: "Credits",
912
+ type: "NumberField",
913
+ key: "subjCredits",
914
+ mandatory: "true",
915
+ },
916
+ {
917
+ type: "ReferenceField",
918
+ source: ["TEACHERS"],
919
+ key: "subjTeachers",
920
+ title: "Teachers",
921
+ selectionType: ["manual"],
922
+ maxItems: 4,
923
+ },
924
+ {
925
+ title: "Document",
926
+ type: "ConditionalField",
927
+ key: "documentConditional",
928
+ options: [
929
+ {
930
+ value: "file",
931
+ title: "Upload File",
932
+ name: "file",
933
+ },
934
+ {
935
+ value: "url",
936
+ title: "Url",
937
+ name: "url",
938
+ },
939
+ ],
940
+ fields: [
941
+ {
942
+ title: "Document File",
943
+ type: "FileField",
944
+ key: "subjDocumentFile",
945
+ condition: "file",
946
+ },
947
+ {
948
+ title: "Document URL",
949
+ type: "TextField",
950
+ key: "subjDocumentUrl",
951
+ placeholder: "https://",
952
+ condition: "url",
953
+ },
954
+ ],
955
+ },
956
+ ],
957
+ arrayType: "drowpDown",
958
+ divider: {
959
+ title: "SUBJECT DATA",
960
+ text: "You can add one or more subjects to this Semester",
961
+ },
962
+ },
963
+ ],
964
+ arrayType: "drowpDown",
965
+ divider: {
966
+ title: "",
967
+ text: "",
968
+ },
969
+ },
970
+ ],
971
+ arrayType: "drowpDown",
972
+ divider: {
973
+ title: "STUDY PLAN DATA",
974
+ text: "You can add one or more years to this Study Plan",
975
+ },
976
+ showList: false,
977
+ },
978
+ {
979
+ type: "ArrayFieldGroup",
980
+ title: "",
981
+ key: "CCS",
982
+ name: "Credit",
983
+ fields: [
984
+ {
985
+ title: "Credits Title",
986
+ type: "TextField",
987
+ key: "CCSTitle",
988
+ },
989
+ {
990
+ title: "Credits Number",
991
+ type: "NumberField",
992
+ key: "CCSNumber",
993
+ },
994
+ ],
995
+ arrayType: "inline",
996
+ divider: {
997
+ title: "COURSE CREDITS SUMMARY",
998
+ text: "You can create a table with course credits summary",
999
+ },
1000
+ showList: false,
1001
+ },
1002
+ {
1003
+ key: "divider",
1004
+ title: "",
1005
+ type: "FieldsDivider",
1006
+ data: {
1007
+ title: "",
1008
+ text: "",
1009
+ },
1010
+ showList: false,
1011
+ },
1012
+ {
1013
+ title: "Total Credits Title",
1014
+ type: "TextField",
1015
+ key: "totalCreditsTitle",
1016
+ showList: false,
1017
+ },
1018
+ {
1019
+ title: "Total Credits Number",
1020
+ type: "NumberField",
1021
+ key: "totalCreditsNumber",
1022
+ showList: false,
1023
+ },
1024
+ {
1025
+ key: "divider",
1026
+ title: "",
1027
+ type: "FieldsDivider",
1028
+ data: {
1029
+ title: "Adviser Module",
1030
+ text: "You can add an Adviser Module",
1031
+ },
1032
+ showList: false,
1033
+ },
1034
+ {
1035
+ title: "Adviser Module Title",
1036
+ type: "TextField",
1037
+ key: "adTitle",
1038
+ showList: false,
1039
+ },
1040
+ {
1041
+ title: "Adviser Module Detail",
1042
+ type: "TextField",
1043
+ key: "adDetail",
1044
+ showList: false,
1045
+ },
1046
+ {
1047
+ title: "Adviser Module Link",
1048
+ type: "UrlField",
1049
+ key: "adUrl",
1050
+ showList: false,
1051
+ },
1052
+ ],
1053
+ },
1054
+ clone: null,
1055
+ defaultValues: null,
1056
+ editable: true,
1057
+ },
1058
+ {
1059
+ id: "UNIT",
1060
+ title: "Unit",
1061
+ dataPacks: ["NEWS", "STORIES", "TEACHERS", "STUDIES"],
1062
+ local: false,
1063
+ taxonomy: false,
1064
+ fromPage: false,
1065
+ translate: true,
1066
+ schema: {
1067
+ fields: [
1068
+ {
1069
+ key: "title",
1070
+ title: "Title",
1071
+ type: "TextField",
1072
+ mandatory: true,
1073
+ showList: false,
1074
+ },
1075
+ ],
1076
+ },
1077
+ clone: null,
1078
+ defaults: null,
1079
+ editable: true,
1080
+ },
1081
+ ],
1082
+ site: [
1083
+ {
1084
+ id: "PROGRAMS",
1085
+ title: "Programs",
1086
+ dataPacks: ["STUDIES"],
1087
+ local: false,
1088
+ taxonomy: false,
1089
+ fromPage: true,
1090
+ translate: true,
1091
+ clone: null,
1092
+ defaultValues: null,
1093
+ schema: {
1094
+ templates: ["ProgramDetail"],
1095
+ searchFrom: [],
1096
+ fields: [
1097
+ {
1098
+ key: "title",
1099
+ title: "Title",
1100
+ type: "TextField",
1101
+ from: "title",
1102
+ showList: false,
1103
+ },
1104
+ {
1105
+ key: "programType",
1106
+ title: "Type of program",
1107
+ type: "AsyncCheckGroup",
1108
+ source: "PROGRAM_TYPES",
1109
+ from: "programType",
1110
+ showList: false,
1111
+ },
1112
+ {
1113
+ key: "programFormat",
1114
+ title: "Format of program",
1115
+ type: "AsyncCheckGroup",
1116
+ source: "PROGRAM_FORMAT",
1117
+ from: "programFormat",
1118
+ showList: false,
1119
+ },
1120
+ {
1121
+ key: "schoolsData",
1122
+ title: "Schools",
1123
+ name: "Schools Data",
1124
+ type: "AsyncCheckGroup",
1125
+ from: "schoolsData",
1126
+ source: "SCHOOLS",
1127
+ indexable: true,
1128
+ showList: true,
1129
+ },
1130
+ {
1131
+ key: "pathWaysData",
1132
+ title: "PathWay Data",
1133
+ name: "PathWay Data",
1134
+ type: "ReferenceField",
1135
+ from: "pathWaysData",
1136
+ showList: false,
1137
+ },
1138
+ {
1139
+ key: "abstract",
1140
+ title: "Abstract",
1141
+ type: "RichText",
1142
+ from: "abstract",
1143
+ showList: false,
1144
+ },
1145
+ {
1146
+ key: "programQuickFactsSection",
1147
+ title: "Program Quick Facts",
1148
+ type: "ComponentArray",
1149
+ from: "programQuickFactsSection",
1150
+ showList: false,
1151
+ },
1152
+ {
1153
+ key: "heroSection",
1154
+ title: "Hero Section",
1155
+ type: "ComponentArray",
1156
+ from: "heroSection",
1157
+ showList: false,
1158
+ },
1159
+ ],
1160
+ },
1161
+ editable: true,
1162
+ },
1163
+ {
1164
+ id: "TEACHERS",
1165
+ title: "Teachers",
1166
+ dataPacks: ["TEACHERS"],
1167
+ local: false,
1168
+ taxonomy: false,
1169
+ fromPage: true,
1170
+ translate: true,
1171
+ schema: {
1172
+ templates: ["TeacherDetail"],
1173
+ fields: [
1174
+ {
1175
+ key: "title",
1176
+ title: "Name",
1177
+ type: "TextField",
1178
+ from: "title",
1179
+ mandatory: true,
1180
+ showList: false,
1181
+ },
1182
+ {
1183
+ key: "image",
1184
+ title: "Image",
1185
+ type: "ImageField",
1186
+ from: "image",
1187
+ mandatory: true,
1188
+ showList: false,
1189
+ },
1190
+ {
1191
+ key: "position",
1192
+ title: "Position",
1193
+ type: "TextField",
1194
+ from: "position",
1195
+ mandatory: true,
1196
+ showList: false,
1197
+ },
1198
+ {
1199
+ key: "linkedin",
1200
+ title: "Linkedin",
1201
+ from: "linkedin",
1202
+ type: "UrlField",
1203
+ showList: false,
1204
+ },
1205
+ {
1206
+ key: "units",
1207
+ title: "Unit",
1208
+ from: "categories.units",
1209
+ type: "AsyncCheckGroup",
1210
+ source: "UNIT",
1211
+ showList: false,
1212
+ },
1213
+ {
1214
+ key: "categories.schools",
1215
+ title: "Schools",
1216
+ from: "categories.schools",
1217
+ type: "AsyncCheckGroup",
1218
+ source: "SCHOOLS",
1219
+ indexable: true,
1220
+ showList: true,
1221
+ },
1222
+ {
1223
+ key: "pathways",
1224
+ title: "Pathways",
1225
+ from: "categories.pathways",
1226
+ type: "AsyncCheckGroup",
1227
+ source: "PATHWAYS",
1228
+ showList: false,
1229
+ },
1230
+ {
1231
+ key: "programs",
1232
+ title: "Programs",
1233
+ from: "categories.programs",
1234
+ type: "AsyncCheckGroup",
1235
+ source: "PROGRAMS",
1236
+ showList: false,
1237
+ },
1238
+ ],
1239
+ },
1240
+ clone: null,
1241
+ defaults: null,
1242
+ editable: true,
1243
+ },
1244
+ {
1245
+ id: "NEWS",
1246
+ title: "News",
1247
+ dataPacks: ["NEWS"],
1248
+ local: false,
1249
+ taxonomy: false,
1250
+ fromPage: true,
1251
+ translate: true,
1252
+ schema: {
1253
+ templates: ["NewsDetail"],
1254
+ fields: [
1255
+ {
1256
+ key: "title",
1257
+ title: "Title",
1258
+ from: "title",
1259
+ type: "TextField",
1260
+ showList: false,
1261
+ },
1262
+ {
1263
+ key: "abstract",
1264
+ title: "Abstract",
1265
+ from: "abstract",
1266
+ type: "TextField",
1267
+ showList: false,
1268
+ },
1269
+ {
1270
+ key: "image",
1271
+ title: "Image",
1272
+ from: "image",
1273
+ type: "ImageField",
1274
+ showList: false,
1275
+ },
1276
+ {
1277
+ key: "categories",
1278
+ title: "Categories",
1279
+ from: "categories",
1280
+ type: "AsyncCheckGroup",
1281
+ source: "NEWS_AREAS",
1282
+ indexable: true,
1283
+ showList: true,
1284
+ },
1285
+ {
1286
+ key: "lead",
1287
+ title: "Lead",
1288
+ from: "lead",
1289
+ type: "TextField",
1290
+ showList: false,
1291
+ },
1292
+ {
1293
+ key: "longAbstract",
1294
+ title: "longAbstract",
1295
+ from: "longAbstract",
1296
+ type: "TextField",
1297
+ showList: false,
1298
+ },
1299
+ {
1300
+ key: "content",
1301
+ title: "Content",
1302
+ from: "content",
1303
+ type: "TextField",
1304
+ showList: false,
1305
+ },
1306
+ {
1307
+ key: "date",
1308
+ title: "Date",
1309
+ from: "date",
1310
+ type: "TextField",
1311
+ showList: false,
1312
+ },
1313
+ ],
1314
+ searchFrom: ["lead", "longAbstract", "content"],
1315
+ },
1316
+ clone: null,
1317
+ defaultValues: null,
1318
+ editable: true,
1319
+ },
1320
+ {
1321
+ id: "STORIES",
1322
+ title: "Stories",
1323
+ dataPacks: ["STORIES"],
1324
+ local: false,
1325
+ taxonomy: false,
1326
+ fromPage: true,
1327
+ translate: true,
1328
+ schema: {
1329
+ templates: ["StoryDetail"],
1330
+ fields: [
1331
+ {
1332
+ key: "title",
1333
+ title: "Title",
1334
+ type: "TextField",
1335
+ from: "title",
1336
+ mandatory: true,
1337
+ indexable: true,
1338
+ showList: false,
1339
+ },
1340
+ {
1341
+ key: "storyType",
1342
+ title: "Type of story",
1343
+ type: "AsyncCheckGroup",
1344
+ source: "STORY_TYPE",
1345
+ from: "storyType",
1346
+ mandatory: true,
1347
+ showList: false,
1348
+ },
1349
+ {
1350
+ key: "storyProfile",
1351
+ title: "Profile",
1352
+ type: "AsyncCheckGroup",
1353
+ source: "STORY_PROFILE",
1354
+ from: "storyProfile",
1355
+ mandatory: true,
1356
+ indexable: true,
1357
+ showList: true,
1358
+ },
1359
+ {
1360
+ key: "quote",
1361
+ title: "Quote",
1362
+ type: "RichText",
1363
+ from: "quote",
1364
+ mandatory: true,
1365
+ showList: false,
1366
+ },
1367
+ {
1368
+ key: "image",
1369
+ title: "Image",
1370
+ type: "TextField",
1371
+ from: "image",
1372
+ showList: false,
1373
+ },
1374
+ {
1375
+ key: "who",
1376
+ title: "Who",
1377
+ type: "TextField",
1378
+ from: "who",
1379
+ mandatory: true,
1380
+ showList: false,
1381
+ },
1382
+ {
1383
+ key: "position",
1384
+ title: "Position",
1385
+ type: "TextField",
1386
+ from: "position",
1387
+ mandatory: true,
1388
+ showList: false,
1389
+ },
1390
+ ],
1391
+ searchFrom: ["quote", "who", "position"],
1392
+ },
1393
+ clone: null,
1394
+ defaultValues: null,
1395
+ editable: true,
1396
+ },
1397
+ {
1398
+ id: "EVENTS",
1399
+ title: "Events",
1400
+ dataPacks: ["EVENTS"],
1401
+ local: false,
1402
+ taxonomy: false,
1403
+ fromPage: true,
1404
+ translate: true,
1405
+ schema: {
1406
+ templates: ["EventDetail"],
1407
+ fields: [
1408
+ {
1409
+ key: "title",
1410
+ title: "Title",
1411
+ type: "TextField",
1412
+ from: "title",
1413
+ showList: false,
1414
+ },
1415
+ {
1416
+ key: "image",
1417
+ title: "Image",
1418
+ type: "ImageField",
1419
+ from: "image",
1420
+ showList: false,
1421
+ },
1422
+ {
1423
+ key: "tag",
1424
+ title: "Tag",
1425
+ type: "TextField",
1426
+ from: "tag",
1427
+ showList: false,
1428
+ },
1429
+ {
1430
+ key: "dateTime",
1431
+ title: "Event date and time",
1432
+ type: "DateField",
1433
+ from: "dateTime",
1434
+ indexable: true,
1435
+ showList: false,
1436
+ },
1437
+ {
1438
+ key: "eventHour",
1439
+ title: "Event Hour",
1440
+ type: "TextField",
1441
+ from: "eventHour",
1442
+ showList: false,
1443
+ },
1444
+ {
1445
+ key: "language",
1446
+ title: "Language",
1447
+ type: "TextField",
1448
+ from: "language",
1449
+ showList: false,
1450
+ },
1451
+ {
1452
+ key: "address",
1453
+ title: "Address",
1454
+ type: "TextField",
1455
+ from: "address",
1456
+ showList: false,
1457
+ },
1458
+ {
1459
+ key: "country",
1460
+ title: "Country",
1461
+ type: "TextField",
1462
+ from: "country",
1463
+ showList: false,
1464
+ },
1465
+ {
1466
+ key: "distributorDescription",
1467
+ title: "Distributor description",
1468
+ type: "TextField",
1469
+ from: "distributorDescription",
1470
+ showList: false,
1471
+ },
1472
+ {
1473
+ key: "addToCalendar",
1474
+ title: "Add to calendar button",
1475
+ type: "ComponentContainer",
1476
+ from: "addToCalendar",
1477
+ showList: false,
1478
+ },
1479
+ {
1480
+ key: "eventAreas",
1481
+ title: "Event Areas",
1482
+ type: "AsyncCheckGroup",
1483
+ source: "EVENT_AREAS",
1484
+ from: "eventAreas",
1485
+ showList: false,
1486
+ },
1487
+ {
1488
+ key: "eventLocation",
1489
+ title: "Event Locations",
1490
+ type: "AsyncCheckGroup",
1491
+ source: "EVENT_LOCATIONS",
1492
+ from: "eventLocation",
1493
+ showList: false,
1494
+ },
1495
+ {
1496
+ key: "eventFormat",
1497
+ title: "Event Formats",
1498
+ type: "AsyncCheckGroup",
1499
+ source: "EVENT_FORMATS",
1500
+ from: "eventFormat",
1501
+ showList: false,
1502
+ },
1503
+ {
1504
+ key: "programType",
1505
+ title: "Program Type",
1506
+ type: "AsyncCheckGroup",
1507
+ source: "PROGRAM_TYPES",
1508
+ from: "programType",
1509
+ showList: false,
1510
+ },
1511
+ {
1512
+ key: "eventRegion",
1513
+ title: "Region",
1514
+ type: "AsyncCheckGroup",
1515
+ source: "EVENT_REGION",
1516
+ from: "eventRegion",
1517
+ indexable: true,
1518
+ showList: true,
1519
+ },
1520
+ ],
1521
+ searchFrom: ["tag"],
1522
+ },
1523
+ clone: null,
1524
+ defaultValues: null,
1525
+ editable: true,
1526
+ },
1527
+ {
1528
+ id: "STUDY_LANDING_TYPE",
1529
+ title: "Study Landing type",
1530
+ dataPacks: ["STUDIES"],
1531
+ local: true,
1532
+ taxonomy: false,
1533
+ fromPage: false,
1534
+ translate: false,
1535
+ schema: {
1536
+ fields: [
1537
+ {
1538
+ title: "Title",
1539
+ type: "TextField",
1540
+ key: "title",
1541
+ showList: false,
1542
+ },
1543
+ ],
1544
+ },
1545
+ clone: null,
1546
+ defaultValues: null,
1547
+ editable: true,
1548
+ },
1549
+ ],
1550
+ },
1551
+ currentStructuredData: null,
1552
+ currentStructuredDataId: null,
1553
+ currentDataContent: [],
1554
+ category: {
1555
+ name: "",
1556
+ code: "",
1557
+ lang: null,
1558
+ isTranslation: false,
1559
+ isNew: true,
1560
+ },
1561
+ schema: {},
1562
+ form: {},
1563
+ entity: null,
1564
+ currentFilter: "all-pages",
1565
+ schemaVersion: "2022-06-30T11:26:33.000Z",
1566
+ errors: [],
1567
+ validated: false,
1568
+ };
1569
+
1570
+ export const sitesMock = {
1571
+ currentSiteInfo: {
1572
+ id: 85,
1573
+ name: "Super site",
1574
+ theme: "default-theme",
1575
+ author: 2,
1576
+ pages: [
1577
+ 3342, 3343, 3378, 3380, 3537, 3555, 3556, 3587, 3690, 3732, 3733, 3734, 3736, 3737, 3824, 3836, 3837, 3847, 3853,
1578
+ 3854, 3864, 3865, 3888, 3889, 3890, 3891, 3893, 3947, 3948, 3949, 3950, 3952, 3961, 3986, 3987, 3988, 3989, 3990,
1579
+ 3991, 3992, 3993, 3994, 3995, 4005, 4072, 4085, 4087, 4089, 4111, 4168,
1580
+ ],
1581
+ published: "2021-11-03T16:54:14.000Z",
1582
+ modified: "2022-05-31T13:33:51.000Z",
1583
+ languageSites: [149, 179],
1584
+ deleted: 0,
1585
+ thumbnail: "http://images.dev.griddo.io/lil-bub-gato-11dd1482-476a-416d-88cf-3b9fb38d6f4d",
1586
+ timezone: "Europe/Madrid",
1587
+ favicon: null,
1588
+ hash: null,
1589
+ bigAvatar: null,
1590
+ smallAvatar: null,
1591
+ socials: {
1592
+ instagram: "instagram",
1593
+ linkedIn: "link.es",
1594
+ },
1595
+ rendering: false,
1596
+ slug: "/gonzalo-h",
1597
+ isPublished: true,
1598
+ renderingHours: 0,
1599
+ shouldBeUpdated: false,
1600
+ updated: true,
1601
+ navigationModules: {
1602
+ header: "Header",
1603
+ footer: "Footer",
1604
+ },
1605
+ home: "//cx.dev.griddo.io/pre-griddo/gonzalo-h",
1606
+ },
1607
+ sites: [
1608
+ {
1609
+ id: 80,
1610
+ name: "DEMO SITE",
1611
+ theme: "default-theme",
1612
+ author: 2,
1613
+ pages: [3654, 3729, 3997, 4014, 4074],
1614
+ published: "2021-11-03T10:10:17.000Z",
1615
+ modified: "2022-05-23T11:49:42.000Z",
1616
+ languageSites: [144],
1617
+ deleted: 0,
1618
+ thumbnail: "http://images.dev.griddo.io/macbeth-palau-de-les-arts-opera-valencia-5x2-1_1",
1619
+ timezone: "Pacific/Pago_Pago",
1620
+ favicon: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_4",
1621
+ hash: null,
1622
+ bigAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_6",
1623
+ smallAvatar: "http://images.dev.griddo.io/griddo-site-thumbnail-ec2ab0ba-9424-4424-8f60-222ec746902d_5",
1624
+ rendering: false,
1625
+ slug: "/demo-site",
1626
+ isPublished: true,
1627
+ renderingHours: 0,
1628
+ shouldBeUpdated: false,
1629
+ updated: true,
1630
+ navigationModules: null,
1631
+ home: "//cx.dev.griddo.io/pre-griddo/demo",
1632
+ },
1633
+ ],
1634
+ currentSiteName: null,
1635
+ currentSitePages: [],
1636
+ sitesByLang: [],
1637
+ currentFilter: "unique-pages",
1638
+ totalItems: 0,
1639
+ currentSiteLanguages: [],
1640
+ savedSiteInfo: null,
1641
+ currentSiteErrorPages: [],
1642
+ };
1643
+
1644
+ export const appMock = {
1645
+ isRehydrated: true,
1646
+ isLoading: true,
1647
+ isSaving: false,
1648
+ error: {
1649
+ code: undefined,
1650
+ text: "",
1651
+ },
1652
+ user: {
1653
+ email: "",
1654
+ },
1655
+ token: "",
1656
+ isLoggingIn: false,
1657
+ lang: {
1658
+ locale: "en-GB",
1659
+ id: 4,
1660
+ },
1661
+ globalLangs: [{ id: 19, locale: "en", language: "English", label: "EN", isDefault: true }],
1662
+ globalSettings: {
1663
+ cloudinaryName: "",
1664
+ globalLogoBig: "",
1665
+ globalLogoMini: "",
1666
+ siteLogoBig: "",
1667
+ siteLogoMini: "",
1668
+ welcomeText1: "",
1669
+ welcomeText2: "",
1670
+ },
1671
+ };