@griddo/ax 1.67.9 → 1.68.1

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 (124) hide show
  1. package/config/jest/componentsMock.js +1528 -27
  2. package/package.json +2 -2
  3. package/src/__mocks__/reducers/app.tsx +10 -0
  4. package/src/__mocks__/reducers/sites.tsx +10 -0
  5. package/src/__tests__/{AnalyticsField.test.tsx → components/Fields/AnalyticsField/AnalyticsField.test.tsx} +5 -5
  6. package/src/__tests__/{PageAnalytics.test.tsx → components/Fields/AnalyticsField/PageAnalytics/PageAnalytics.test.tsx} +2 -2
  7. package/src/__tests__/{StructuredDataAnalytics.test.tsx → components/Fields/AnalyticsField/StructuredDataAnalytics/StructuredDataAnalytics.test.tsx} +2 -2
  8. package/src/__tests__/{ArrayFieldGroup.test.tsx → components/Fields/ArrayFieldGroup/ArrayFieldGroup.test.tsx} +2 -2
  9. package/src/__tests__/{AsyncCheckGroup.test.tsx → components/Fields/AsyncCheckGroup/AsyncCheckGroup.test.tsx} +2 -2
  10. package/src/__tests__/{AsyncSelect.test.tsx → components/Fields/AsyncSelect/AsyncSelect.test.tsx} +2 -2
  11. package/src/__tests__/{CheckField.test.tsx → components/Fields/CheckField/CheckField.test.tsx} +2 -2
  12. package/src/__tests__/{CheckGroup.test.tsx → components/Fields/CheckGroup/CheckGroup.test.tsx} +2 -2
  13. package/src/__tests__/components/Fields/ColorPicker/ColorPicker.test.tsx +195 -0
  14. package/src/__tests__/components/Fields/ComponentArray/ComponentArray.test.tsx +184 -0
  15. package/src/__tests__/components/Fields/ComponentArray/MixableComponentArray/MixableComponentArray.test.tsx +315 -0
  16. package/src/__tests__/components/Fields/ComponentArray/MixableComponentArray/PasteModuleButton/PasteModuleButton.test.tsx +95 -0
  17. package/src/__tests__/components/Fields/ComponentArray/SameComponentArray/SameComponentArray.test.tsx +225 -0
  18. package/src/__tests__/{FieldGroup.test.tsx → components/Fields/FieldGroup/FieldGroup.test.tsx} +2 -2
  19. package/src/__tests__/components/Fields/FieldsDivider/FieldsDivider.test.tsx +24 -0
  20. package/src/__tests__/components/Fields/FileField/FileField.test.tsx +135 -0
  21. package/src/__tests__/{HeadingField.test.tsx → components/Fields/HeadingField/HeadingField.test.tsx} +2 -2
  22. package/src/__tests__/components/Fields/HiddenField/HiddenField.test.tsx +76 -0
  23. package/src/__tests__/components/Fields/MultiCheckSelect/MultiCheckSelect.test.tsx +70 -0
  24. package/src/__tests__/components/Fields/NoteField/NoteField.test.tsx +67 -0
  25. package/src/__tests__/components/Fields/NumberField/NumberField.test.tsx +109 -0
  26. package/src/__tests__/components/Fields/RadioField/RadioField.test.tsx +106 -0
  27. package/src/__tests__/components/Fields/RichText/RichText.test.tsx +52 -0
  28. package/src/__tests__/components/Fields/Select/Select.test.tsx +75 -0
  29. package/src/__tests__/components/Fields/SliderField/SliderField.test.tsx +82 -0
  30. package/src/__tests__/{TagField.test.tsx → components/Fields/TagField/TagField.test.tsx} +2 -2
  31. package/src/__tests__/{TextArea.test.tsx → components/Fields/TextArea/TextArea.test.tsx} +2 -2
  32. package/src/__tests__/{TextField.test.tsx → components/Fields/TextField/TextField.test.tsx} +2 -2
  33. package/src/__tests__/components/Fields/ToggleField/ToggleField.test.tsx +100 -0
  34. package/src/__tests__/{UniqueCheck.test.tsx → components/Fields/UniqueCheck/UniqueCheck.test.tsx} +2 -2
  35. package/src/__tests__/components/Fields/UrlField/UrlField.test.tsx +446 -0
  36. package/src/__tests__/components/Fields/UrlField/mockedAxios.ts +2214 -0
  37. package/src/__tests__/components/Fields/VisualUniqueSelection/ImageSelection/ImageSelection.test.tsx +99 -0
  38. package/src/__tests__/components/Fields/VisualUniqueSelection/ScrollableSelection/ScrollableSelection.test.tsx +176 -0
  39. package/src/__tests__/components/Fields/VisualUniqueSelection/VisualUniqueSelection.test.tsx +78 -0
  40. package/src/components/ActionMenu/index.tsx +1 -0
  41. package/src/components/Browser/index.tsx +39 -47
  42. package/src/components/Browser/style.tsx +15 -15
  43. package/src/components/BrowserContent/index.tsx +78 -0
  44. package/src/components/ConfigPanel/Form/ConnectedField/NavConnectedField/index.tsx +3 -5
  45. package/src/components/ConfigPanel/Form/ConnectedField/PageConnectedField/index.tsx +2 -6
  46. package/src/components/ConfigPanel/Header/index.tsx +28 -11
  47. package/src/components/ConfigPanel/index.tsx +2 -2
  48. package/src/components/ErrorCenter/index.tsx +11 -4
  49. package/src/components/Fields/ArrayFieldGroup/index.tsx +4 -2
  50. package/src/components/Fields/ArrayFieldGroup/style.tsx +7 -0
  51. package/src/components/Fields/AsyncCheckGroup/index.tsx +1 -1
  52. package/src/components/Fields/CheckField/index.tsx +1 -1
  53. package/src/components/Fields/ColorPicker/Picker/index.tsx +9 -3
  54. package/src/components/Fields/ColorPicker/index.tsx +4 -9
  55. package/src/components/Fields/ComponentArray/MixableComponentArray/PasteModuleButton/index.tsx +2 -1
  56. package/src/components/Fields/ComponentArray/MixableComponentArray/index.tsx +27 -22
  57. package/src/components/Fields/ComponentArray/MixableComponentArray/style.tsx +3 -38
  58. package/src/components/Fields/ComponentArray/SameComponentArray/index.tsx +3 -2
  59. package/src/components/Fields/ComponentArray/SameComponentArray/style.tsx +1 -28
  60. package/src/components/Fields/ComponentArray/helpers.tsx +1 -1
  61. package/src/components/Fields/ComponentContainer/index.tsx +3 -1
  62. package/src/components/Fields/FileField/FileDragAndDrop/index.tsx +1 -1
  63. package/src/components/Fields/FileField/FileDragAndDrop/style.tsx +2 -3
  64. package/src/components/Fields/FileField/index.tsx +6 -6
  65. package/src/components/Fields/HiddenField/index.tsx +3 -3
  66. package/src/components/Fields/MultiCheckSelect/index.tsx +8 -27
  67. package/src/components/Fields/NoteField/index.tsx +3 -3
  68. package/src/components/Fields/NumberField/index.tsx +6 -3
  69. package/src/components/Fields/RadioField/index.tsx +10 -2
  70. package/src/components/Fields/ReferenceField/index.tsx +8 -1
  71. package/src/components/Fields/ReferenceField/style.tsx +5 -0
  72. package/src/components/Fields/RichText/index.tsx +1 -1
  73. package/src/components/Fields/SliderField/index.tsx +11 -7
  74. package/src/components/Fields/ToggleField/index.tsx +12 -3
  75. package/src/components/Fields/UrlField/PageFinder/SelectionListItem/index.tsx +1 -1
  76. package/src/components/Fields/UrlField/index.tsx +6 -4
  77. package/src/components/Fields/UrlField/style.tsx +4 -2
  78. package/src/components/Fields/VisualOption/index.tsx +10 -2
  79. package/src/components/Fields/VisualUniqueSelection/ImageSelection/index.tsx +2 -2
  80. package/src/components/Fields/VisualUniqueSelection/ScrollableSelection/index.tsx +4 -3
  81. package/src/components/Fields/VisualUniqueSelection/ScrollableSelection/style.tsx +1 -1
  82. package/src/components/Fields/VisualUniqueSelection/index.tsx +3 -3
  83. package/src/components/FieldsBehavior/index.tsx +4 -4
  84. package/src/components/FieldsBehavior/style.tsx +5 -12
  85. package/src/components/FloatingMenu/index.tsx +8 -4
  86. package/src/components/Loader/index.tsx +12 -8
  87. package/src/components/MainWrapper/AppBar/index.tsx +1 -0
  88. package/src/components/MainWrapper/index.tsx +1 -0
  89. package/src/components/Modal/index.tsx +3 -2
  90. package/src/components/Modal/style.tsx +2 -1
  91. package/src/components/Toast/index.tsx +1 -1
  92. package/src/components/Tooltip/index.tsx +1 -1
  93. package/src/components/index.tsx +2 -0
  94. package/src/containers/App/actions.tsx +3 -7
  95. package/src/containers/PageEditor/actions.tsx +36 -5
  96. package/src/forms/editor.tsx +35 -1
  97. package/src/forms/fields.tsx +6 -2
  98. package/src/forms/index.tsx +2 -0
  99. package/src/forms/validators.tsx +29 -8
  100. package/src/guards/error/index.tsx +1 -1
  101. package/src/helpers/containerEvaluations.tsx +32 -4
  102. package/src/helpers/index.tsx +2 -0
  103. package/src/helpers/structuredData.tsx +2 -2
  104. package/src/hooks/forms.tsx +1 -28
  105. package/src/hooks/index.tsx +1 -2
  106. package/src/modules/Content/atoms.tsx +1 -0
  107. package/src/modules/FramePreview/index.tsx +70 -36
  108. package/src/modules/FramePreview/style.tsx +3 -0
  109. package/src/modules/GlobalEditor/PageBrowser/index.tsx +2 -7
  110. package/src/modules/GlobalEditor/index.tsx +8 -6
  111. package/src/modules/GlobalEditor/style.tsx +1 -1
  112. package/src/modules/Navigation/Defaults/DefaultsEditor/Editor/DefaultsBrowser/index.tsx +0 -4
  113. package/src/modules/Navigation/Defaults/DefaultsEditor/index.tsx +3 -2
  114. package/src/modules/PageEditor/PageBrowser/index.tsx +1 -4
  115. package/src/modules/PageEditor/index.tsx +6 -6
  116. package/src/modules/PublicPreview/index.tsx +17 -34
  117. package/src/modules/PublicPreview/style.tsx +0 -2
  118. package/src/modules/Settings/ContentTypes/DataPacks/Config/Form/TemplateConfig/TemplateEditor/Editor/TemplateBrowser/index.tsx +0 -4
  119. package/src/modules/Sites/index.tsx +1 -1
  120. package/src/modules/StructuredData/Form/ConnectedField/index.tsx +1 -1
  121. package/src/modules/StructuredData/Form/index.tsx +3 -1
  122. package/src/modules/StructuredData/StructuredDataList/index.tsx +1 -0
  123. package/src/schemas/pages/GlobalPage.tsx +1 -0
  124. package/src/types/index.tsx +1 -0
@@ -1,29 +1,1530 @@
1
1
  module.exports = {
2
- schemas: {key: 'schema definition'},
3
- parseTheme: theme => {
4
- const color = "#000";
5
- const gradient = "#000";
6
- const shadow = "#000";
7
- const mq = "#000";
8
- const textStyle = "#000";
9
- const breakpoints = "#000";
10
- const fontFamily = "#000";
11
-
12
- const returnObject = {
13
- ...theme,
14
- fontFamily,
15
- color,
16
- colors: color,
17
- gradient,
18
- shadow,
19
- mq,
20
- textStyle,
21
- breakpoints,
22
- fontSizes: "#000",
23
- negateSpacing: "#000",
24
- halfSpacing: "#000",
25
- negateHalfSpacing: "#000",
26
- };
27
- return returnObject;
28
- }
2
+ schemas: {
3
+ key: "schema definition",
4
+ all: {
5
+ HeroCard: {
6
+ schemaType: "component",
7
+ component: "HeroCard",
8
+ displayName: "Hero Card",
9
+ dataPacks: null,
10
+ configTabs: [
11
+ {
12
+ title: "content",
13
+ fields: [
14
+ {
15
+ title: "Title",
16
+ type: "HeadingField",
17
+ key: "title",
18
+ advanced: true,
19
+ default: { tag: "span", content: "Title" },
20
+ options: [
21
+ { value: "h1", label: "H1" },
22
+ { value: "h2", label: "H2" },
23
+ { value: "h3", label: "H3" },
24
+ { value: "h4", label: "H4" },
25
+ { value: "span", label: "span" },
26
+ ],
27
+ },
28
+ { title: "Subtitle", type: "TextArea", key: "subtitle" },
29
+ {
30
+ title: "Link",
31
+ type: "ComponentContainer",
32
+ whiteList: ["Link"],
33
+ key: "link",
34
+ hideable: true,
35
+ },
36
+ {
37
+ title: "Background Image",
38
+ type: "ComponentContainer",
39
+ whiteList: ["Image"],
40
+ key: "backgroundImage",
41
+ helptext: "Recommended minimum image size: 2508x1030",
42
+ },
43
+ ],
44
+ },
45
+ {
46
+ title: "config",
47
+ fields: [
48
+ {
49
+ title: "Style",
50
+ key: "theme",
51
+ type: "VisualUniqueSelection",
52
+ options: [
53
+ {
54
+ value: "defaultAlt",
55
+ img: "/themes/STYLE01",
56
+ },
57
+ {
58
+ value: "default",
59
+ img: "/themes/STYLE02",
60
+ },
61
+ {
62
+ value: "accent",
63
+ img: "/themes/STYLE03",
64
+ },
65
+ ],
66
+ columns: 8,
67
+ },
68
+ ],
69
+ },
70
+ ],
71
+ default: {
72
+ component: "HeroCard",
73
+ title: {
74
+ content: "Title",
75
+ tag: "span",
76
+ },
77
+ subtitle:
78
+ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
79
+ link: {
80
+ component: "Link",
81
+ text: "Link",
82
+ url: {
83
+ url: "",
84
+ linkTo: null,
85
+ newTab: false,
86
+ noFollow: false,
87
+ },
88
+ },
89
+ backgroundImage: {
90
+ component: "Image",
91
+ },
92
+ theme: "accent",
93
+ },
94
+ thumbnails: {
95
+ "1x": "/thumbnails/HeroCard",
96
+ "2x": "/thumbnails/HeroCard@2x",
97
+ },
98
+ },
99
+ BasicContent: {
100
+ schemaType: "module",
101
+ displayName: "Basic Content",
102
+ component: "BasicContent",
103
+ category: "content",
104
+ dataPacks: null,
105
+ configTabs: [
106
+ {
107
+ title: "content",
108
+ fields: [
109
+ {
110
+ title: "Title",
111
+ type: "HeadingField",
112
+ key: "title",
113
+ advanced: true,
114
+ hideable: true,
115
+ isMockup: true,
116
+ default: { tag: "h2", content: "Title" },
117
+ options: [
118
+ { value: "h1", label: "H1" },
119
+ { value: "h2", label: "H2" },
120
+ { value: "h3", label: "H3" },
121
+ { value: "h4", label: "H4" },
122
+ { value: "span", label: "span" },
123
+ ],
124
+ },
125
+ {
126
+ title: "Subtitle",
127
+ type: "RichText",
128
+ key: "subtitle",
129
+ hideable: true,
130
+ isMockup: true,
131
+ },
132
+ {
133
+ title: "Content",
134
+ type: "Wysiwyg",
135
+ key: "content",
136
+ hideable: true,
137
+ isMockup: true,
138
+ },
139
+ {
140
+ title: "Primary link",
141
+ type: "ComponentContainer",
142
+ whiteList: ["Link"],
143
+ key: "primaryLink",
144
+ hideable: true,
145
+ },
146
+ {
147
+ title: "Secondary link",
148
+ type: "ComponentContainer",
149
+ whiteList: ["Link"],
150
+ key: "secondaryLink",
151
+ hideable: true,
152
+ },
153
+ {
154
+ title: "Additional content",
155
+ type: "ComponentContainer",
156
+ whiteList: ["LinkableImage", "Video"],
157
+ key: "additionalContent",
158
+ hideable: true,
159
+ helptext: "Recommended minimum image size: 792x514",
160
+ },
161
+ ],
162
+ },
163
+ {
164
+ title: "config",
165
+ fields: [
166
+ {
167
+ title: "Anchor ID",
168
+ type: "TextField",
169
+ key: "anchorID",
170
+ prefix: "#",
171
+ hideable: true,
172
+ helptext:
173
+ "Do not use uppercase letter or spaces and cannot start with numbers. Example: this-is-an-anchor.",
174
+ },
175
+ {
176
+ title: "Layout",
177
+ key: "layout",
178
+ type: "VisualUniqueSelection",
179
+ mandatory: true,
180
+ options: [
181
+ { value: "L001", img: "layouts.modules.basicContent[1]" },
182
+ { value: "L002", img: "layouts.modules.basicContent[2]" },
183
+ { value: "L003", img: "layouts.modules.basicContent[3]" },
184
+ { value: "L004", img: "layouts.modules.basicContent[4]" },
185
+ { value: "L005", img: "layouts.modules.basicContent[5]" },
186
+ { value: "L006", img: "layouts.modules.basicContent[6]" },
187
+ { value: "L007", img: "layouts.modules.basicContent[7]" },
188
+ ],
189
+ columns: 2,
190
+ },
191
+ {
192
+ title: "Style",
193
+ key: "theme",
194
+ type: "VisualUniqueSelection",
195
+ mandatory: true,
196
+ options: [
197
+ {
198
+ theme: "default-theme",
199
+ options: [
200
+ { value: "default", img: "griddoDef.subthemes.def" },
201
+ { value: "defaultAlt", img: "griddoDef.subthemes.defAlt" },
202
+ ],
203
+ },
204
+ {
205
+ theme: "griddo-alt-theme",
206
+ options: [
207
+ { value: "default", img: "griddoAlt.subthemes.def" },
208
+ { value: "defaultAlt", img: "griddoAlt.subthemes.defAlt" },
209
+ ],
210
+ },
211
+ ],
212
+ columns: 8,
213
+ },
214
+ {
215
+ title: "Vertical Spacing",
216
+ key: "verticalSpacing",
217
+ type: "RadioGroup",
218
+ options: [
219
+ { name: "small", value: "small", title: "Small" },
220
+ { name: "medium", value: "medium", title: "Medium" },
221
+ { name: "large", value: "large", title: "Large" },
222
+ ],
223
+ },
224
+ ],
225
+ },
226
+ ],
227
+ },
228
+ CardCollection: {
229
+ schemaType: "module",
230
+ displayName: "Card Collection",
231
+ component: "CardCollection",
232
+ category: "collections",
233
+ dataPacks: null,
234
+ configTabs: [
235
+ {
236
+ title: "content",
237
+ fields: [
238
+ {
239
+ title: "Title",
240
+ type: "HeadingField",
241
+ key: "title",
242
+ advanced: true,
243
+ hideable: true,
244
+ default: { tag: "h2", content: "Title" },
245
+ options: [
246
+ { value: "h1", label: "H1" },
247
+ { value: "h2", label: "H2" },
248
+ { value: "h3", label: "H3" },
249
+ { value: "h4", label: "H4" },
250
+ { value: "span", label: "span" },
251
+ ],
252
+ },
253
+ {
254
+ title: "Subtitle",
255
+ type: "RichText",
256
+ key: "subtitle",
257
+ hideable: true,
258
+ },
259
+ {
260
+ title: "Detail",
261
+ type: "RichText",
262
+ key: "detail",
263
+ hideable: true,
264
+ },
265
+ {
266
+ title: "Cards",
267
+ type: "ComponentArray",
268
+ elementUniqueSelection: true,
269
+ mandatory: true,
270
+ maxItems: null,
271
+ key: "elements",
272
+ whiteList: [
273
+ "BasicCard",
274
+ "BasicBoxedCard",
275
+ "BasicIconCard",
276
+ "ImageCard",
277
+ "IconCard",
278
+ "IconCenteredCard",
279
+ "LogoCard",
280
+ ],
281
+ },
282
+ {
283
+ title: "Grouping Link",
284
+ type: "ComponentContainer",
285
+ whiteList: ["Link"],
286
+ key: "groupingLink",
287
+ hideable: true,
288
+ },
289
+ ],
290
+ },
291
+ {
292
+ title: "config",
293
+ fields: [
294
+ {
295
+ title: "Anchor ID",
296
+ type: "TextField",
297
+ key: "anchorID",
298
+ prefix: "#",
299
+ hideable: true,
300
+ helptext:
301
+ "Do not use uppercase letter or spaces and cannot start with numbers. Example: this-is-an-anchor.",
302
+ },
303
+ {
304
+ title: "Layout",
305
+ key: "layout",
306
+ type: "VisualUniqueSelection",
307
+ options: [
308
+ { value: "L001", img: "layouts.modules.cardCollection[1]" },
309
+ { value: "L002", img: "layouts.modules.cardCollection[2]" },
310
+ { value: "L003", img: "layouts.modules.cardCollection[3]" },
311
+ { value: "L004", img: "layouts.modules.cardCollection[4]" },
312
+ { value: "L005", img: "layouts.modules.cardCollection[5]" },
313
+ ],
314
+ columns: 2,
315
+ },
316
+ {
317
+ title: "Style",
318
+ key: "theme",
319
+ type: "VisualUniqueSelection",
320
+ options: [
321
+ {
322
+ theme: "default-theme",
323
+ options: [
324
+ { value: "default", img: "griddoDef.subthemes.def" },
325
+ { value: "defaultAlt", img: "griddoDef.subthemes.defAlt" },
326
+ { value: "accent", img: "griddoDef.subthemes.accent" },
327
+ { value: "inverse", img: "griddoDef.subthemes.inverse" },
328
+ ],
329
+ },
330
+ {
331
+ theme: "griddo-alt-theme",
332
+ options: [
333
+ { value: "default", img: "griddoAlt.subthemes.def" },
334
+ { value: "defaultAlt", img: "griddoAlt.subthemes.defAlt" },
335
+ { value: "accent", img: "griddoAlt.subthemes.accent" },
336
+ { value: "inverse", img: "griddoAlt.subthemes.inverse" },
337
+ ],
338
+ },
339
+ ],
340
+ columns: 8,
341
+ },
342
+ {
343
+ title: "Vertical Spacing",
344
+ key: "verticalSpacing",
345
+ type: "RadioGroup",
346
+ options: [
347
+ { name: "small", value: "small", title: "Small" },
348
+ { name: "medium", value: "medium", title: "Medium" },
349
+ { name: "large", value: "large", title: "Large" },
350
+ ],
351
+ },
352
+
353
+ {
354
+ title: "Card Style",
355
+ key: "kind",
356
+ type: "VisualUniqueSelection",
357
+ elementUniqueSelection: true,
358
+ options: [
359
+ {
360
+ value: "BasicCard",
361
+ img: "${CLOUDINARY_URL}/thumbnails/BasicCard",
362
+ },
363
+ {
364
+ value: "BasicBoxedCard",
365
+ img: "${CLOUDINARY_URL}/thumbnails/BasicBoxedCard",
366
+ },
367
+ {
368
+ value: "BasicIconCard",
369
+ img: "${CLOUDINARY_URL}/thumbnails/BasicIconCard",
370
+ },
371
+ {
372
+ value: "ImageCard",
373
+ img: "${CLOUDINARY_URL}/thumbnails/ImageCard",
374
+ },
375
+ {
376
+ value: "IconCard",
377
+ img: "${CLOUDINARY_URL}/thumbnails/IconCard",
378
+ },
379
+ {
380
+ value: "IconCenteredCard",
381
+ img: "${CLOUDINARY_URL}/thumbnails/IconCenteredCard",
382
+ },
383
+ {
384
+ value: "LogoCard",
385
+ img: "${CLOUDINARY_URL}/thumbnails/LogoCard",
386
+ },
387
+ ],
388
+ columns: 3,
389
+ },
390
+ ],
391
+ },
392
+ ],
393
+ },
394
+ MultiPageModule: {
395
+ schemaType: "module",
396
+ displayName: "Multi Page Module",
397
+ component: "MultiPageModule",
398
+ category: "developing",
399
+ dataPacks: null,
400
+ configTabs: [
401
+ {
402
+ title: "content",
403
+ fields: [
404
+ {
405
+ title: "Title",
406
+ type: "TextField",
407
+ },
408
+ {
409
+ title: "Multi Page Element",
410
+ type: "ComponentArray",
411
+ maxItems: 5,
412
+ whiteList: ["MultiPageElement"],
413
+ key: "elements",
414
+ mandatory: true,
415
+ },
416
+ ],
417
+ },
418
+ {
419
+ title: "config",
420
+ fields: [
421
+ {
422
+ title: "Anchor ID",
423
+ type: "TextField",
424
+ key: "anchorID",
425
+ prefix: "#",
426
+ hideable: true,
427
+ helptext:
428
+ "Do not use uppercase letter or spaces and cannot start with numbers. Example: this-is-an-anchor.",
429
+ },
430
+ ],
431
+ },
432
+ ],
433
+ default: {
434
+ anchorID: null,
435
+ component: "MultiPageModule",
436
+ title: "Lorem Ipsum",
437
+ hasGriddoMultiPage: true,
438
+ elements: [
439
+ {
440
+ component: "MultiPageElement",
441
+ title: "Tab title",
442
+ sectionSlug: "tab-01",
443
+ metaTitle: "The meta title",
444
+ metaDescription: "The meta description",
445
+ componentModules: [],
446
+ },
447
+ {
448
+ component: "MultiPageElement",
449
+ title: "Tab title",
450
+ sectionSlug: "tab-02",
451
+ metaTitle: "The meta title",
452
+ metaDescription: "The meta description",
453
+ componentModules: [],
454
+ },
455
+ {
456
+ component: "MultiPageElement",
457
+ title: "Tab title",
458
+ sectionSlug: "tab-03",
459
+ metaTitle: "The meta title",
460
+ metaDescription: "The meta description",
461
+ componentModules: [],
462
+ },
463
+ ],
464
+ },
465
+ thumbnails: {
466
+ "1x": `/thumbnails/MultiPageModule`,
467
+ "2x": `/thumbnails/MultiPageModule@2x`,
468
+ },
469
+ },
470
+ MultiPageElement: {
471
+ schemaType: "component",
472
+ displayName: "Multi Page Element",
473
+ component: "MultiPageElement",
474
+ dataPacks: null,
475
+ configTabs: [
476
+ {
477
+ title: "content",
478
+ fields: [
479
+ {
480
+ title: "Title",
481
+ type: "TextField",
482
+ key: "title",
483
+ },
484
+ {
485
+ title: "Component",
486
+ type: "ComponentArray",
487
+ hideable: true,
488
+ mandatory: true,
489
+ whiteList: ["BasicContent"],
490
+ key: "componentModules",
491
+ },
492
+ ],
493
+ },
494
+
495
+ {
496
+ title: "Seo",
497
+ fields: [
498
+ {
499
+ title: "Section Slug",
500
+ key: "sectionSlug",
501
+ type: "TextField",
502
+ },
503
+ {
504
+ title: "Meta title",
505
+ key: "metaTitle",
506
+ type: "TextField",
507
+ },
508
+ {
509
+ title: "Meta description",
510
+ key: "metaDescription",
511
+ type: "TextField",
512
+ },
513
+ ],
514
+ },
515
+ ],
516
+
517
+ default: {
518
+ component: "MultiPageElement",
519
+ title: "Tab title",
520
+ sectionSlug: "tab-01",
521
+ metaTitle: "The meta title",
522
+ metaDescription: "The meta description",
523
+ componentModules: [],
524
+ },
525
+ },
526
+ },
527
+ structuredData: {
528
+ PROGRAMS: {
529
+ title: "Programs",
530
+ dataPacks: ["STUDIES"],
531
+ local: false,
532
+ taxonomy: false,
533
+ fromPage: true,
534
+ translate: true,
535
+ clone: null,
536
+ defaultValues: null,
537
+ schema: {
538
+ templates: ["ProgramDetail"],
539
+ searchFrom: [],
540
+ fields: [
541
+ {
542
+ key: "title",
543
+ title: "Title",
544
+ type: "TextField",
545
+ from: "title",
546
+ },
547
+ {
548
+ key: "programType",
549
+ title: "Type of program",
550
+ type: "AsyncCheckGroup",
551
+ source: "PROGRAM_TYPES",
552
+ from: "programType",
553
+ },
554
+ {
555
+ key: "programFormat",
556
+ title: "Format of program",
557
+ type: "AsyncCheckGroup",
558
+ source: "PROGRAM_FORMAT",
559
+ from: "programFormat",
560
+ },
561
+ {
562
+ key: "schoolsData",
563
+ title: "Schools",
564
+ name: "Schools Data",
565
+ type: "AsyncCheckGroup",
566
+ from: "schoolsData",
567
+ source: "SCHOOLS",
568
+ indexable: true,
569
+ showList: true,
570
+ },
571
+ {
572
+ key: "pathWaysData",
573
+ title: "PathWay Data",
574
+ name: "PathWay Data",
575
+ type: "ReferenceField",
576
+ from: "pathWaysData",
577
+ },
578
+ {
579
+ key: "abstract",
580
+ title: "Abstract",
581
+ type: "RichText",
582
+ from: "abstract",
583
+ },
584
+ {
585
+ key: "programQuickFactsSection",
586
+ title: "Program Quick Facts",
587
+ type: "ComponentArray",
588
+ from: "programQuickFactsSection",
589
+ },
590
+ {
591
+ key: "heroSection",
592
+ title: "Hero Section",
593
+ type: "ComponentArray",
594
+ from: "heroSection",
595
+ },
596
+ ],
597
+ },
598
+ },
599
+ TEACHERS: {
600
+ title: "Teachers",
601
+ dataPacks: ["TEACHERS"],
602
+ local: false,
603
+ taxonomy: false,
604
+ fromPage: true,
605
+ translate: true,
606
+ schema: {
607
+ templates: ["TeacherDetail"],
608
+ fields: [
609
+ {
610
+ key: "title",
611
+ title: "Name",
612
+ type: "TextField",
613
+ from: "title",
614
+ mandatory: true,
615
+ },
616
+ {
617
+ key: "image",
618
+ title: "Image",
619
+ type: "ImageField",
620
+ from: "image",
621
+ mandatory: true,
622
+ },
623
+ {
624
+ key: "position",
625
+ title: "Position",
626
+ type: "TextField",
627
+ from: "position",
628
+ mandatory: true,
629
+ },
630
+ {
631
+ key: "linkedin",
632
+ title: "Linkedin",
633
+ from: "linkedin",
634
+ type: "UrlField",
635
+ },
636
+ {
637
+ key: "units",
638
+ title: "Unit",
639
+ from: "categories.units",
640
+ type: "AsyncCheckGroup",
641
+ source: "UNIT",
642
+ },
643
+ {
644
+ key: "categories.schools",
645
+ title: "Schools",
646
+ from: "categories.schools",
647
+ type: "AsyncCheckGroup",
648
+ source: "SCHOOLS",
649
+ indexable: true,
650
+ showList: true,
651
+ },
652
+ {
653
+ key: "pathways",
654
+ title: "Pathways",
655
+ from: "categories.pathways",
656
+ type: "AsyncCheckGroup",
657
+ source: "PATHWAYS",
658
+ },
659
+ {
660
+ key: "programs",
661
+ title: "Programs",
662
+ from: "categories.programs",
663
+ type: "AsyncCheckGroup",
664
+ source: "PROGRAMS",
665
+ },
666
+ ],
667
+ },
668
+ clone: null,
669
+ defaults: null,
670
+ },
671
+ ARTICLES: {
672
+ title: "Articles",
673
+ dataPacks: ["ARTICLES"],
674
+ local: false,
675
+ taxonomy: false,
676
+ fromPage: false,
677
+ translate: true,
678
+ schema: {
679
+ fields: [
680
+ {
681
+ key: "title",
682
+ title: "Title",
683
+ type: "TextField",
684
+ mandatory: true,
685
+ },
686
+ {
687
+ key: "subtitle",
688
+ title: "Subtitle",
689
+ type: "TextField",
690
+ mandatory: true,
691
+ },
692
+ {
693
+ key: "content",
694
+ title: "Content",
695
+ type: "RichText",
696
+ mandatory: true,
697
+ },
698
+ {
699
+ key: "linkText",
700
+ title: "Link text",
701
+ type: "TextField",
702
+ mandatory: true,
703
+ },
704
+ {
705
+ key: "link",
706
+ title: "Link",
707
+ type: "UrlField",
708
+ mandatory: true,
709
+ },
710
+ {
711
+ key: "image",
712
+ title: "Image",
713
+ type: "ImageField",
714
+ mandatory: true,
715
+ },
716
+ ],
717
+ },
718
+ clone: null,
719
+ defaultValues: null,
720
+ },
721
+ NEWS: {
722
+ title: "News",
723
+ dataPacks: ["NEWS"],
724
+ local: false,
725
+ taxonomy: false,
726
+ fromPage: true,
727
+ translate: true,
728
+ schema: {
729
+ templates: ["NewsDetail"],
730
+ fields: [
731
+ {
732
+ key: "title",
733
+ title: "Title",
734
+ from: "title",
735
+ type: "TextField",
736
+ },
737
+ {
738
+ key: "abstract",
739
+ title: "Abstract",
740
+ from: "abstract",
741
+ type: "TextField",
742
+ },
743
+ {
744
+ key: "image",
745
+ title: "Image",
746
+ from: "image",
747
+ type: "ImageField",
748
+ },
749
+ {
750
+ key: "categories",
751
+ title: "Categories",
752
+ from: "categories",
753
+ type: "AsyncCheckGroup",
754
+ source: "NEWS_AREAS",
755
+ indexable: true,
756
+ showList: true,
757
+ },
758
+ {
759
+ key: "lead",
760
+ title: "Lead",
761
+ from: "lead",
762
+ type: "TextField",
763
+ },
764
+ {
765
+ key: "longAbstract",
766
+ title: "longAbstract",
767
+ from: "longAbstract",
768
+ type: "TextField",
769
+ },
770
+ {
771
+ key: "content",
772
+ title: "Content",
773
+ from: "content",
774
+ type: "TextField",
775
+ },
776
+ {
777
+ key: "date",
778
+ title: "Date",
779
+ from: "date",
780
+ type: "TextField",
781
+ },
782
+ ],
783
+ searchFrom: ["lead", "longAbstract", "content"],
784
+ },
785
+ clone: null,
786
+ defaultValues: null,
787
+ },
788
+ STORY_TYPE: {
789
+ title: "Story Type",
790
+ dataPacks: ["STORIES"],
791
+ local: false,
792
+ taxonomy: true,
793
+ fromPage: false,
794
+ translate: true,
795
+ schema: null,
796
+ clone: null,
797
+ defaults: null,
798
+ },
799
+ STORY_PROFILE: {
800
+ title: "Story Profile",
801
+ dataPacks: ["STORIES", "PEOPLE"],
802
+ local: false,
803
+ taxonomy: true,
804
+ fromPage: false,
805
+ translate: true,
806
+ schema: null,
807
+ clone: null,
808
+ defaults: null,
809
+ },
810
+ STORIES: {
811
+ title: "Stories",
812
+ dataPacks: ["STORIES"],
813
+ local: false,
814
+ taxonomy: false,
815
+ fromPage: true,
816
+ translate: true,
817
+ schema: {
818
+ templates: ["StoryDetail"],
819
+ fields: [
820
+ {
821
+ key: "title",
822
+ title: "Title",
823
+ type: "TextField",
824
+ from: "title",
825
+ mandatory: true,
826
+ indexable: true,
827
+ },
828
+ {
829
+ key: "storyType",
830
+ title: "Type of story",
831
+ type: "AsyncCheckGroup",
832
+ source: "STORY_TYPE",
833
+ from: "storyType",
834
+ mandatory: true,
835
+ },
836
+ {
837
+ key: "storyProfile",
838
+ title: "Profile",
839
+ type: "AsyncCheckGroup",
840
+ source: "STORY_PROFILE",
841
+ from: "storyProfile",
842
+ mandatory: true,
843
+ indexable: true,
844
+ showList: true,
845
+ },
846
+ {
847
+ key: "quote",
848
+ title: "Quote",
849
+ type: "RichText",
850
+ from: "quote",
851
+ mandatory: true,
852
+ },
853
+ {
854
+ key: "image",
855
+ title: "Image",
856
+ type: "TextField",
857
+ from: "image",
858
+ },
859
+ {
860
+ key: "who",
861
+ title: "Who",
862
+ type: "TextField",
863
+ from: "who",
864
+ mandatory: true,
865
+ },
866
+ {
867
+ key: "position",
868
+ title: "Position",
869
+ type: "TextField",
870
+ from: "position",
871
+ mandatory: true,
872
+ },
873
+ ],
874
+ searchFrom: ["quote", "who", "position"],
875
+ },
876
+ clone: null,
877
+ defaultValues: null,
878
+ },
879
+ PEOPLE: {
880
+ title: "People",
881
+ dataPacks: ["PEOPLE"],
882
+ local: false,
883
+ taxonomy: false,
884
+ fromPage: false,
885
+ translate: true,
886
+ schema: {
887
+ fields: [
888
+ {
889
+ key: "title",
890
+ title: "Name",
891
+ type: "TextField",
892
+ mandatory: true,
893
+ },
894
+ {
895
+ key: "profile",
896
+ title: "Profile",
897
+ from: "profile",
898
+ type: "AsyncCheckGroup",
899
+ source: "STORY_PROFILE",
900
+ indexable: true,
901
+ showList: true,
902
+ },
903
+ {
904
+ key: "image",
905
+ title: "Image",
906
+ type: "ImageField",
907
+ mandatory: true,
908
+ },
909
+ {
910
+ key: "position",
911
+ title: "Position",
912
+ type: "TextField",
913
+ mandatory: true,
914
+ },
915
+ {
916
+ key: "linkedin",
917
+ title: "Linkedin",
918
+ type: "UrlField",
919
+ },
920
+ {
921
+ key: "phone",
922
+ title: "Phone",
923
+ type: "TextField",
924
+ },
925
+ {
926
+ key: "email",
927
+ title: "Email",
928
+ type: "TextField",
929
+ },
930
+ {
931
+ key: "imageBackground",
932
+ title: "imageBackground",
933
+ type: "ImageField",
934
+ },
935
+ {
936
+ key: "modalDetail",
937
+ title: "Modal Detail",
938
+ type: "RichText",
939
+ },
940
+ ],
941
+ searchFrom: [],
942
+ },
943
+ clone: null,
944
+ defaultValues: null,
945
+ },
946
+ TESTIMONIALS: {
947
+ title: "Testimonials",
948
+ dataPacks: ["TESTIMONIALS"],
949
+ local: false,
950
+ taxonomy: false,
951
+ fromPage: false,
952
+ translate: true,
953
+ schema: {
954
+ fields: [
955
+ {
956
+ key: "image",
957
+ title: "Image",
958
+ type: "ImageField",
959
+ mandatory: true,
960
+ },
961
+ {
962
+ key: "quote",
963
+ title: "Quote",
964
+ type: "RichText",
965
+ mandatory: true,
966
+ },
967
+ {
968
+ key: "title",
969
+ title: "Author",
970
+ type: "TextField",
971
+ mandatory: true,
972
+ searchable: false,
973
+ },
974
+ {
975
+ key: "jobTitle",
976
+ title: "Job Title",
977
+ type: "RichText",
978
+ mandatory: true,
979
+ },
980
+ {
981
+ key: "school",
982
+ title: "School",
983
+ from: "school",
984
+ type: "AsyncCheckGroup",
985
+ source: "SCHOOLS",
986
+ indexable: true,
987
+ showList: true,
988
+ },
989
+ ],
990
+ },
991
+ clone: null,
992
+ defaultValues: {
993
+ quote: "Lorem ipsum",
994
+ title: "Title",
995
+ jobTitle: "Job title",
996
+ },
997
+ },
998
+ EVENTS: {
999
+ title: "Events",
1000
+ dataPacks: ["EVENTS"],
1001
+ local: false,
1002
+ taxonomy: false,
1003
+ fromPage: true,
1004
+ translate: true,
1005
+ schema: {
1006
+ templates: ["EventDetail"],
1007
+ fields: [
1008
+ {
1009
+ key: "title",
1010
+ title: "Title",
1011
+ type: "TextField",
1012
+ from: "title",
1013
+ },
1014
+ {
1015
+ key: "image",
1016
+ title: "Image",
1017
+ type: "ImageField",
1018
+ from: "image",
1019
+ },
1020
+ {
1021
+ key: "tag",
1022
+ title: "Tag",
1023
+ type: "TextField",
1024
+ from: "tag",
1025
+ },
1026
+ {
1027
+ key: "dateTime",
1028
+ title: "Event date and time",
1029
+ type: "DateField",
1030
+ from: "dateTime",
1031
+ indexable: true,
1032
+ },
1033
+ {
1034
+ key: "eventHour",
1035
+ title: "Event Hour",
1036
+ type: "TextField",
1037
+ from: "eventHour",
1038
+ },
1039
+ {
1040
+ key: "language",
1041
+ title: "Language",
1042
+ type: "TextField",
1043
+ from: "language",
1044
+ },
1045
+ {
1046
+ key: "address",
1047
+ title: "Address",
1048
+ type: "TextField",
1049
+ from: "address",
1050
+ },
1051
+ {
1052
+ key: "country",
1053
+ title: "Country",
1054
+ type: "TextField",
1055
+ from: "country",
1056
+ },
1057
+ {
1058
+ key: "distributorDescription",
1059
+ title: "Distributor description",
1060
+ type: "TextField",
1061
+ from: "distributorDescription",
1062
+ },
1063
+ {
1064
+ key: "addToCalendar",
1065
+ title: "Add to calendar button",
1066
+ type: "ComponentContainer",
1067
+ from: "addToCalendar",
1068
+ },
1069
+ {
1070
+ key: "eventAreas",
1071
+ title: "Event Areas",
1072
+ type: "AsyncCheckGroup",
1073
+ source: "EVENT_AREAS",
1074
+ from: "eventAreas",
1075
+ },
1076
+ {
1077
+ key: "eventLocation",
1078
+ title: "Event Locations",
1079
+ type: "AsyncCheckGroup",
1080
+ source: "EVENT_LOCATIONS",
1081
+ from: "eventLocation",
1082
+ },
1083
+ {
1084
+ key: "eventFormat",
1085
+ title: "Event Formats",
1086
+ type: "AsyncCheckGroup",
1087
+ source: "EVENT_FORMATS",
1088
+ from: "eventFormat",
1089
+ },
1090
+ {
1091
+ key: "programType",
1092
+ title: "Program Type",
1093
+ type: "AsyncCheckGroup",
1094
+ source: "PROGRAM_TYPES",
1095
+ from: "programType",
1096
+ },
1097
+ {
1098
+ key: "eventRegion",
1099
+ title: "Region",
1100
+ type: "AsyncCheckGroup",
1101
+ source: "EVENT_REGION",
1102
+ from: "eventRegion",
1103
+ indexable: true,
1104
+ showList: true,
1105
+ },
1106
+ ],
1107
+ searchFrom: ["tag"],
1108
+ },
1109
+ clone: null,
1110
+ defaultValues: null,
1111
+ },
1112
+ STUDYPLANS: {
1113
+ title: "StudyPlans",
1114
+ dataPacks: ["STUDYPLANS"],
1115
+ local: false,
1116
+ taxonomy: false,
1117
+ fromPage: false,
1118
+ translate: true,
1119
+ schema: {
1120
+ fields: [
1121
+ {
1122
+ key: "title",
1123
+ title: "Title",
1124
+ type: "TextField",
1125
+ mandatory: true,
1126
+ searchable: false,
1127
+ },
1128
+ {
1129
+ type: "ArrayFieldGroup",
1130
+ title: "",
1131
+ key: "years",
1132
+ name: "Year",
1133
+ fields: [
1134
+ {
1135
+ title: "Title",
1136
+ type: "TextField",
1137
+ key: "yearTitle",
1138
+ mandatory: "true",
1139
+ isTitle: true,
1140
+ },
1141
+ {
1142
+ title: "Title Description",
1143
+ type: "TextField",
1144
+ key: "yearSubtitle",
1145
+ },
1146
+ {
1147
+ title: "Year Description",
1148
+ type: "RichText",
1149
+ key: "yearDescription",
1150
+ },
1151
+ {
1152
+ key: "divider",
1153
+ title: "",
1154
+ type: "FieldsDivider",
1155
+ data: {
1156
+ title: "Year Media",
1157
+ text: "You can add a video or image to the year. if you add both, image will be the thumbnail of the video.",
1158
+ },
1159
+ },
1160
+ {
1161
+ key: "yearVideo",
1162
+ title: "Year Video URL",
1163
+ type: "TextField",
1164
+ },
1165
+ {
1166
+ key: "yearImg",
1167
+ title: "Year Image",
1168
+ type: "ImageField",
1169
+ },
1170
+ {
1171
+ type: "ArrayFieldGroup",
1172
+ title: "SEMESTERS",
1173
+ key: "semesters",
1174
+ name: "Semester",
1175
+ mandatory: "true",
1176
+ fields: [
1177
+ {
1178
+ title: "Title",
1179
+ type: "TextField",
1180
+ key: "semTitle",
1181
+ mandatory: "true",
1182
+ isTitle: true,
1183
+ },
1184
+ {
1185
+ type: "ArrayFieldGroup",
1186
+ title: "Subjects",
1187
+ key: "subjects",
1188
+ name: "Subject",
1189
+ mandatory: "true",
1190
+ fields: [
1191
+ {
1192
+ title: "Title",
1193
+ type: "TextField",
1194
+ key: "subjTitle",
1195
+ mandatory: "true",
1196
+ isTitle: true,
1197
+ },
1198
+ {
1199
+ title: "Type",
1200
+ type: "TextField",
1201
+ key: "subjType",
1202
+ mandatory: "true",
1203
+ },
1204
+ {
1205
+ title: "Credits",
1206
+ type: "NumberField",
1207
+ key: "subjCredits",
1208
+ mandatory: "true",
1209
+ },
1210
+ {
1211
+ type: "ReferenceField",
1212
+ source: ["TEACHERS"],
1213
+ key: "subjTeachers",
1214
+ title: "Teachers",
1215
+ selectionType: ["manual"],
1216
+ maxItems: 4,
1217
+ },
1218
+ {
1219
+ title: "Document",
1220
+ type: "ConditionalField",
1221
+ key: "documentConditional",
1222
+ options: [
1223
+ {
1224
+ value: "file",
1225
+ title: "Upload File",
1226
+ name: "file",
1227
+ },
1228
+ {
1229
+ value: "url",
1230
+ title: "Url",
1231
+ name: "url",
1232
+ },
1233
+ ],
1234
+ fields: [
1235
+ {
1236
+ title: "Document File",
1237
+ type: "FileField",
1238
+ key: "subjDocumentFile",
1239
+ condition: "file",
1240
+ },
1241
+ {
1242
+ title: "Document URL",
1243
+ type: "TextField",
1244
+ key: "subjDocumentUrl",
1245
+ placeholder: "https://",
1246
+ condition: "url",
1247
+ },
1248
+ ],
1249
+ },
1250
+ ],
1251
+ arrayType: "drowpDown",
1252
+ divider: {
1253
+ title: "SUBJECT DATA",
1254
+ text: "You can add one or more subjects to this Semester",
1255
+ },
1256
+ },
1257
+ ],
1258
+ arrayType: "drowpDown",
1259
+ divider: {
1260
+ title: "",
1261
+ text: "",
1262
+ },
1263
+ },
1264
+ ],
1265
+ arrayType: "drowpDown",
1266
+ divider: {
1267
+ title: "STUDY PLAN DATA",
1268
+ text: "You can add one or more years to this Study Plan",
1269
+ },
1270
+ },
1271
+ {
1272
+ type: "ArrayFieldGroup",
1273
+ title: "",
1274
+ key: "CCS",
1275
+ name: "Credit",
1276
+ fields: [
1277
+ {
1278
+ title: "Credits Title",
1279
+ type: "TextField",
1280
+ key: "CCSTitle",
1281
+ },
1282
+ {
1283
+ title: "Credits Number",
1284
+ type: "NumberField",
1285
+ key: "CCSNumber",
1286
+ },
1287
+ ],
1288
+ arrayType: "inline",
1289
+ divider: {
1290
+ title: "COURSE CREDITS SUMMARY",
1291
+ text: "You can create a table with course credits summary",
1292
+ },
1293
+ },
1294
+ {
1295
+ key: "divider",
1296
+ title: "",
1297
+ type: "FieldsDivider",
1298
+ data: {
1299
+ title: "",
1300
+ text: "",
1301
+ },
1302
+ },
1303
+ {
1304
+ title: "Total Credits Title",
1305
+ type: "TextField",
1306
+ key: "totalCreditsTitle",
1307
+ },
1308
+ {
1309
+ title: "Total Credits Number",
1310
+ type: "NumberField",
1311
+ key: "totalCreditsNumber",
1312
+ },
1313
+ {
1314
+ key: "divider",
1315
+ title: "",
1316
+ type: "FieldsDivider",
1317
+ data: {
1318
+ title: "Adviser Module",
1319
+ text: "You can add an Adviser Module",
1320
+ },
1321
+ },
1322
+ {
1323
+ title: "Adviser Module Title",
1324
+ type: "TextField",
1325
+ key: "adTitle",
1326
+ },
1327
+ {
1328
+ title: "Adviser Module Detail",
1329
+ type: "TextField",
1330
+ key: "adDetail",
1331
+ },
1332
+ {
1333
+ title: "Adviser Module Link",
1334
+ type: "UrlField",
1335
+ key: "adUrl",
1336
+ },
1337
+ ],
1338
+ },
1339
+ clone: null,
1340
+ defaultValues: null,
1341
+ },
1342
+ UNIT: {
1343
+ title: "Unit",
1344
+ dataPacks: ["NEWS", "STORIES", "TEACHERS", "STUDIES"],
1345
+ local: false,
1346
+ taxonomy: false,
1347
+ fromPage: false,
1348
+ translate: true,
1349
+ schema: {
1350
+ fields: [
1351
+ {
1352
+ key: "title",
1353
+ title: "Title",
1354
+ type: "TextField",
1355
+ mandatory: true,
1356
+ },
1357
+ ],
1358
+ },
1359
+ clone: null,
1360
+ defaults: null,
1361
+ },
1362
+ STUDY_LANDING_TYPE: {
1363
+ title: "Study Landing type",
1364
+ dataPacks: ["STUDIES"],
1365
+ local: true,
1366
+ taxonomy: false,
1367
+ fromPage: false,
1368
+ translate: false,
1369
+ schema: {
1370
+ fields: [
1371
+ {
1372
+ title: "Title",
1373
+ type: "TextField",
1374
+ key: "title",
1375
+ },
1376
+ ],
1377
+ },
1378
+ clone: null,
1379
+ defaultValues: null,
1380
+ },
1381
+ PROGRAM_TYPES: {
1382
+ title: "Program Type",
1383
+ dataPacks: ["EVENTS", "STORIES", "STUDIES"],
1384
+ local: false,
1385
+ taxonomy: true,
1386
+ fromPage: false,
1387
+ translate: true,
1388
+ schema: null,
1389
+ clone: null,
1390
+ defaults: null,
1391
+ },
1392
+ PROGRAM_FORMAT: {
1393
+ title: "Program Format",
1394
+ dataPacks: ["EVENTS", "STORIES", "STUDIES"],
1395
+ local: false,
1396
+ taxonomy: true,
1397
+ fromPage: false,
1398
+ translate: true,
1399
+ schema: null,
1400
+ clone: null,
1401
+ defaults: null,
1402
+ },
1403
+ SCHOOLS: {
1404
+ title: "Schools",
1405
+ dataPacks: ["NEWS", "STUDIES", "TEACHERS", "TESTIMONIALS"],
1406
+ local: false,
1407
+ taxonomy: true,
1408
+ fromPage: false,
1409
+ translate: true,
1410
+ schema: null,
1411
+ clone: null,
1412
+ defaultValues: null,
1413
+ },
1414
+ PATHWAYS: {
1415
+ title: "Pathways",
1416
+ dataPacks: ["NEWS", "STUDIES", "TEACHERS"],
1417
+ local: false,
1418
+ taxonomy: true,
1419
+ fromPage: false,
1420
+ translate: true,
1421
+ schema: null,
1422
+ clone: null,
1423
+ defaultValues: null,
1424
+ },
1425
+ NEWS_AREAS: {
1426
+ title: "News Areas",
1427
+ dataPacks: ["NEWS"],
1428
+ local: false,
1429
+ taxonomy: true,
1430
+ fromPage: false,
1431
+ translate: true,
1432
+ schema: null,
1433
+ clone: null,
1434
+ defaults: null,
1435
+ },
1436
+ GLOBAL_NEWS: {
1437
+ title: "Global News",
1438
+ dataPacks: ["NEWS"],
1439
+ local: false,
1440
+ taxonomy: true,
1441
+ fromPage: false,
1442
+ translate: true,
1443
+ schema: null,
1444
+ clone: null,
1445
+ defaults: null,
1446
+ },
1447
+ EVENT_AREAS: {
1448
+ title: "Event Areas",
1449
+ dataPacks: ["EVENTS"],
1450
+ local: false,
1451
+ taxonomy: true,
1452
+ fromPage: false,
1453
+ translate: true,
1454
+ schema: null,
1455
+ clone: null,
1456
+ defaults: null,
1457
+ },
1458
+ LOCATION: {
1459
+ title: "Location",
1460
+ dataPacks: ["EVENTS"],
1461
+ local: false,
1462
+ taxonomy: true,
1463
+ fromPage: false,
1464
+ translate: true,
1465
+ schema: null,
1466
+ clone: null,
1467
+ defaults: null,
1468
+ },
1469
+ EVENT_FORMATS: {
1470
+ title: "Event Formats",
1471
+ dataPacks: ["EVENTS"],
1472
+ local: false,
1473
+ taxonomy: true,
1474
+ fromPage: false,
1475
+ translate: true,
1476
+ schema: null,
1477
+ clone: null,
1478
+ defaults: null,
1479
+ },
1480
+ EVENT_LOCATIONS: {
1481
+ title: "Event Locations",
1482
+ dataPacks: ["EVENTS"],
1483
+ local: false,
1484
+ taxonomy: true,
1485
+ fromPage: false,
1486
+ translate: true,
1487
+ schema: null,
1488
+ clone: null,
1489
+ defaults: null,
1490
+ },
1491
+ EVENT_REGION: {
1492
+ title: "Event Region",
1493
+ dataPacks: ["EVENTS"],
1494
+ local: false,
1495
+ taxonomy: true,
1496
+ fromPage: false,
1497
+ translate: true,
1498
+ schema: null,
1499
+ clone: null,
1500
+ defaults: null,
1501
+ },
1502
+ },
1503
+ },
1504
+ parseTheme: (theme) => {
1505
+ const color = "#000";
1506
+ const gradient = "#000";
1507
+ const shadow = "#000";
1508
+ const mq = "#000";
1509
+ const textStyle = "#000";
1510
+ const breakpoints = "#000";
1511
+ const fontFamily = "#000";
1512
+
1513
+ const returnObject = {
1514
+ ...theme,
1515
+ fontFamily,
1516
+ color,
1517
+ colors: color,
1518
+ gradient,
1519
+ shadow,
1520
+ mq,
1521
+ textStyle,
1522
+ breakpoints,
1523
+ fontSizes: "#000",
1524
+ negateSpacing: "#000",
1525
+ halfSpacing: "#000",
1526
+ negateHalfSpacing: "#000",
1527
+ };
1528
+ return returnObject;
1529
+ },
29
1530
  };