@@ -2,7 +2,7 @@ export type JmsLocaleKey = 'en-US' | 'es-MX'
22
33export type JmsSectionKey = 'home' | 'playground'
44
5- export type JmsEnumColors = 'primary' | 'secondary'
5+ export type JmsEnumColors = 'primary' | 'secondary' | 'white'
66
77export type JmsEnumGender = 'male' | 'female'
88
@@ -27,17 +27,19 @@ export interface JmsFile {
2727 meta : JmsFileMeta
2828}
2929
30- export interface JmsHomePresentationItems {
31- title : JmsLocaleSet < string >
32- body : JmsLocaleSet < string | null >
33- cta : JmsLocaleSet < string >
30+ export interface JmsHomePresentationItem {
31+ type : 'text' | 'youtube'
32+ title : JmsLocaleSet < string > | null
33+ youtube : string | null
34+ body : JmsLocaleSet < string | null > | null
35+ cta : JmsLocaleSet < string > | null
3436 color : JmsEnumColors
3537 commands : ( 'openDrawer' | 'closeDrawer' | 'openAdvanced' | 'closeAdvanced' | 'showData' | 'showSettings' | 'showDocs' | 'setMobile' | 'setDesktop' | 'hideDevice' ) [ ]
3638 hash : string
3739}
3840
3941export interface JmsHome {
40- presentation : JmsHomePresentationItems [ ]
42+ presentation : JmsHomePresentationItem [ ]
4143}
4244
4345export interface JmsPlaygroundList {
@@ -46,22 +48,22 @@ export interface JmsPlaygroundList {
4648 checkbox : JmsEnumGender [ ]
4749}
4850
49- export interface JmsPlaygroundArraysArrayItems {
51+ export interface JmsPlaygroundArraysArrayItem {
5052 firstName : string | null
5153 lastName : string | null
5254 gender : JmsEnumGender | null
5355 picture : JmsFile | null
5456 hash : string
5557}
5658
57- export interface JmsPlaygroundArraysI18nArrayItems {
59+ export interface JmsPlaygroundArraysI18nArrayItem {
5860 title : string | null
5961 hash : string
6062}
6163
6264export interface JmsPlaygroundArrays {
63- array : JmsPlaygroundArraysArrayItems [ ]
64- i18nArray : JmsLocaleSet < JmsPlaygroundArraysI18nArrayItems [ ] >
65+ array : JmsPlaygroundArraysArrayItem [ ]
66+ i18nArray : JmsLocaleSet < JmsPlaygroundArraysI18nArrayItem [ ] >
6567}
6668
6769export interface JmsPlaygroundFiles {
@@ -70,12 +72,19 @@ export interface JmsPlaygroundFiles {
7072 multiple : JmsFile [ ]
7173}
7274
75+ export interface JmsPlaygroundSchema {
76+ title : string
77+ description : string | null
78+ }
79+
7380export interface JmsPlayground {
7481 text : string | null
7582 textWithIcon : string | null
76- i18nRequired : JmsLocaleSet < string >
77- i18nTextarea : JmsLocaleSet < string | null >
78- i18nRating : JmsLocaleSet < number | null >
83+ textDefault : string | null
84+ i18nRequired : JmsLocaleSet < string > | null
85+ i18nTextarea : JmsLocaleSet < string | null > | null
86+ textRules : string | null
87+ i18nRating : JmsLocaleSet < number | null > | null
7988 conditionalSwitch : undefined | null
8089 hiddenField1 : number | null
8190 hiddenField2 : [ number , number ] | null
@@ -84,6 +93,7 @@ export interface JmsPlayground {
8493 files : JmsPlaygroundFiles
8594 markdown : string | null
8695 date : Date | null
96+ schema : JmsPlaygroundSchema
8797}
8898
8999export interface JmsData {
0 commit comments