@pobuca/email-builder 1.3.2 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/pobuca-email-builder.umd.js +1284 -2
- package/bundles/pobuca-email-builder.umd.js.map +1 -1
- package/bundles/pobuca-email-builder.umd.min.js +1 -1
- package/bundles/pobuca-email-builder.umd.min.js.map +1 -1
- package/esm2015/lib/pb-email-builder.component.js +6 -3
- package/esm2015/lib/schemas/email-template.schema.generated.js +1265 -0
- package/esm2015/lib/schemas/email-template.schema.js +13 -0
- package/esm2015/public_api.js +2 -1
- package/fesm2015/pobuca-email-builder.js +1283 -3
- package/fesm2015/pobuca-email-builder.js.map +1 -1
- package/lib/schemas/email-template.schema.d.ts +828 -0
- package/lib/schemas/email-template.schema.generated.d.ts +822 -0
- package/package.json +1 -1
- package/pobuca-email-builder.metadata.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -773,6 +773,1283 @@ class PBEmail extends Defaults {
|
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
775
|
|
|
776
|
+
/* This file is generated by tools/generate-email-template-schema.js. */
|
|
777
|
+
/* tslint:disable */
|
|
778
|
+
const GENERATED_EMAIL_TEMPLATE_SCHEMA = {
|
|
779
|
+
"description": "The complete AI-generation contract consumed by the Pobuca Email Builder.",
|
|
780
|
+
"type": "object",
|
|
781
|
+
"properties": {
|
|
782
|
+
"general": {
|
|
783
|
+
"$ref": "#/definitions/IGeneralOptions"
|
|
784
|
+
},
|
|
785
|
+
"structures": {
|
|
786
|
+
"type": "array",
|
|
787
|
+
"items": {
|
|
788
|
+
"$ref": "#/definitions/IStructure"
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
"customFonts": {
|
|
792
|
+
"type": "array",
|
|
793
|
+
"items": {
|
|
794
|
+
"$ref": "#/definitions/ICustomFont"
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
},
|
|
798
|
+
"additionalProperties": false,
|
|
799
|
+
"definitions": {
|
|
800
|
+
"IGeneralOptions": {
|
|
801
|
+
"description": "Builder{@linkIPBEmail}general options interface.",
|
|
802
|
+
"type": "object",
|
|
803
|
+
"properties": {
|
|
804
|
+
"width": {
|
|
805
|
+
"$ref": "#/definitions/IWidthHeight"
|
|
806
|
+
},
|
|
807
|
+
"background": {
|
|
808
|
+
"$ref": "#/definitions/IBackground"
|
|
809
|
+
},
|
|
810
|
+
"padding": {
|
|
811
|
+
"$ref": "#/definitions/IPadding"
|
|
812
|
+
},
|
|
813
|
+
"direction": {
|
|
814
|
+
"$ref": "#/definitions/TDirection"
|
|
815
|
+
},
|
|
816
|
+
"name": {
|
|
817
|
+
"type": "string"
|
|
818
|
+
},
|
|
819
|
+
"previewText": {
|
|
820
|
+
"type": "string"
|
|
821
|
+
},
|
|
822
|
+
"global": {
|
|
823
|
+
"type": "object",
|
|
824
|
+
"properties": {
|
|
825
|
+
"fonts": {
|
|
826
|
+
"type": "array",
|
|
827
|
+
"items": {
|
|
828
|
+
"type": "string"
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
"padding": {
|
|
832
|
+
"$ref": "#/definitions/IPadding"
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
"additionalProperties": false,
|
|
836
|
+
"required": [
|
|
837
|
+
"fonts",
|
|
838
|
+
"padding"
|
|
839
|
+
]
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
"additionalProperties": false,
|
|
843
|
+
"required": [
|
|
844
|
+
"width",
|
|
845
|
+
"background",
|
|
846
|
+
"padding",
|
|
847
|
+
"direction",
|
|
848
|
+
"name",
|
|
849
|
+
"previewText",
|
|
850
|
+
"global"
|
|
851
|
+
]
|
|
852
|
+
},
|
|
853
|
+
"IWidthHeight": {
|
|
854
|
+
"description": "Builder Width and Height styles interface.",
|
|
855
|
+
"type": "object",
|
|
856
|
+
"properties": {
|
|
857
|
+
"value": {
|
|
858
|
+
"type": "number"
|
|
859
|
+
},
|
|
860
|
+
"unit": {
|
|
861
|
+
"$ref": "#/definitions/TUnits",
|
|
862
|
+
"description": "Width and Height unit type."
|
|
863
|
+
},
|
|
864
|
+
"auto": {
|
|
865
|
+
"type": "boolean"
|
|
866
|
+
},
|
|
867
|
+
"units": {
|
|
868
|
+
"type": "array",
|
|
869
|
+
"items": {
|
|
870
|
+
"$ref": "#/definitions/TUnits",
|
|
871
|
+
"description": "Builder units types."
|
|
872
|
+
},
|
|
873
|
+
"uniqueItems": true
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
"additionalProperties": false,
|
|
877
|
+
"required": [
|
|
878
|
+
"value",
|
|
879
|
+
"unit",
|
|
880
|
+
"auto",
|
|
881
|
+
"units"
|
|
882
|
+
]
|
|
883
|
+
},
|
|
884
|
+
"TUnits": {
|
|
885
|
+
"description": "Builder units types.",
|
|
886
|
+
"enum": [
|
|
887
|
+
"%",
|
|
888
|
+
"contain",
|
|
889
|
+
"cover",
|
|
890
|
+
"px"
|
|
891
|
+
],
|
|
892
|
+
"type": "string"
|
|
893
|
+
},
|
|
894
|
+
"IBackground": {
|
|
895
|
+
"description": "Builder background styles interface.",
|
|
896
|
+
"type": "object",
|
|
897
|
+
"properties": {
|
|
898
|
+
"color": {
|
|
899
|
+
"type": "string"
|
|
900
|
+
},
|
|
901
|
+
"url": {
|
|
902
|
+
"type": "string"
|
|
903
|
+
},
|
|
904
|
+
"repeat": {
|
|
905
|
+
"$ref": "#/definitions/TBackgroundRepeat"
|
|
906
|
+
},
|
|
907
|
+
"size": {
|
|
908
|
+
"$ref": "#/definitions/IWidthHeight"
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
"additionalProperties": false,
|
|
912
|
+
"required": [
|
|
913
|
+
"color",
|
|
914
|
+
"url",
|
|
915
|
+
"repeat",
|
|
916
|
+
"size"
|
|
917
|
+
]
|
|
918
|
+
},
|
|
919
|
+
"TBackgroundRepeat": {
|
|
920
|
+
"description": "Builder background-repeat types.",
|
|
921
|
+
"enum": [
|
|
922
|
+
"no-repeat",
|
|
923
|
+
"repeat",
|
|
924
|
+
"repeat-x",
|
|
925
|
+
"repeat-y"
|
|
926
|
+
],
|
|
927
|
+
"type": "string"
|
|
928
|
+
},
|
|
929
|
+
"IPadding": {
|
|
930
|
+
"description": "Builder padding styles interface.",
|
|
931
|
+
"type": "object",
|
|
932
|
+
"properties": {
|
|
933
|
+
"top": {
|
|
934
|
+
"type": "number"
|
|
935
|
+
},
|
|
936
|
+
"right": {
|
|
937
|
+
"type": "number"
|
|
938
|
+
},
|
|
939
|
+
"bottom": {
|
|
940
|
+
"type": "number"
|
|
941
|
+
},
|
|
942
|
+
"left": {
|
|
943
|
+
"type": "number"
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
"additionalProperties": false,
|
|
947
|
+
"required": [
|
|
948
|
+
"top",
|
|
949
|
+
"right",
|
|
950
|
+
"bottom",
|
|
951
|
+
"left"
|
|
952
|
+
]
|
|
953
|
+
},
|
|
954
|
+
"TDirection": {
|
|
955
|
+
"description": "Builder direction types.",
|
|
956
|
+
"enum": [
|
|
957
|
+
"ltr",
|
|
958
|
+
"rtl"
|
|
959
|
+
],
|
|
960
|
+
"type": "string"
|
|
961
|
+
},
|
|
962
|
+
"IStructure": {
|
|
963
|
+
"description": "Builder structure interface.",
|
|
964
|
+
"type": "object",
|
|
965
|
+
"properties": {
|
|
966
|
+
"type": {
|
|
967
|
+
"$ref": "#/definitions/TStructureTypes"
|
|
968
|
+
},
|
|
969
|
+
"id": {
|
|
970
|
+
"type": "number"
|
|
971
|
+
},
|
|
972
|
+
"isModule": {
|
|
973
|
+
"description": "If it's module, it can't be edited within email body.",
|
|
974
|
+
"type": "boolean"
|
|
975
|
+
},
|
|
976
|
+
"options": {
|
|
977
|
+
"$ref": "#/definitions/IStructureOptions"
|
|
978
|
+
},
|
|
979
|
+
"elements": {
|
|
980
|
+
"type": "array",
|
|
981
|
+
"items": {
|
|
982
|
+
"type": "array",
|
|
983
|
+
"items": {
|
|
984
|
+
"oneOf": [
|
|
985
|
+
{
|
|
986
|
+
"$ref": "#/definitions/TextBlock"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"$ref": "#/definitions/ImageBlock"
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
"$ref": "#/definitions/VideoBlock"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"$ref": "#/definitions/ButtonBlock"
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
"$ref": "#/definitions/DividerBlock"
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"$ref": "#/definitions/SpacerBlock"
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
"$ref": "#/definitions/SocialBlock"
|
|
1005
|
+
}
|
|
1006
|
+
]
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
"columns": {
|
|
1011
|
+
"type": "number"
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
"additionalProperties": false,
|
|
1015
|
+
"required": [
|
|
1016
|
+
"type",
|
|
1017
|
+
"id",
|
|
1018
|
+
"isModule",
|
|
1019
|
+
"options",
|
|
1020
|
+
"elements",
|
|
1021
|
+
"columns"
|
|
1022
|
+
],
|
|
1023
|
+
"allOf": [
|
|
1024
|
+
{
|
|
1025
|
+
"oneOf": [
|
|
1026
|
+
{
|
|
1027
|
+
"properties": {
|
|
1028
|
+
"type": {
|
|
1029
|
+
"const": "cols_1"
|
|
1030
|
+
},
|
|
1031
|
+
"columns": {
|
|
1032
|
+
"const": 1
|
|
1033
|
+
},
|
|
1034
|
+
"elements": {
|
|
1035
|
+
"minItems": 1,
|
|
1036
|
+
"maxItems": 1
|
|
1037
|
+
},
|
|
1038
|
+
"options": {
|
|
1039
|
+
"properties": {
|
|
1040
|
+
"columns": {
|
|
1041
|
+
"minItems": 1,
|
|
1042
|
+
"maxItems": 1
|
|
1043
|
+
},
|
|
1044
|
+
"columnsWidth": {
|
|
1045
|
+
"minItems": 1,
|
|
1046
|
+
"maxItems": 1
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"properties": {
|
|
1054
|
+
"type": {
|
|
1055
|
+
"const": "cols_2"
|
|
1056
|
+
},
|
|
1057
|
+
"columns": {
|
|
1058
|
+
"const": 2
|
|
1059
|
+
},
|
|
1060
|
+
"elements": {
|
|
1061
|
+
"minItems": 2,
|
|
1062
|
+
"maxItems": 2
|
|
1063
|
+
},
|
|
1064
|
+
"options": {
|
|
1065
|
+
"properties": {
|
|
1066
|
+
"columns": {
|
|
1067
|
+
"minItems": 2,
|
|
1068
|
+
"maxItems": 2
|
|
1069
|
+
},
|
|
1070
|
+
"columnsWidth": {
|
|
1071
|
+
"minItems": 2,
|
|
1072
|
+
"maxItems": 2
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"properties": {
|
|
1080
|
+
"type": {
|
|
1081
|
+
"const": "cols_3"
|
|
1082
|
+
},
|
|
1083
|
+
"columns": {
|
|
1084
|
+
"const": 3
|
|
1085
|
+
},
|
|
1086
|
+
"elements": {
|
|
1087
|
+
"minItems": 3,
|
|
1088
|
+
"maxItems": 3
|
|
1089
|
+
},
|
|
1090
|
+
"options": {
|
|
1091
|
+
"properties": {
|
|
1092
|
+
"columns": {
|
|
1093
|
+
"minItems": 3,
|
|
1094
|
+
"maxItems": 3
|
|
1095
|
+
},
|
|
1096
|
+
"columnsWidth": {
|
|
1097
|
+
"minItems": 3,
|
|
1098
|
+
"maxItems": 3
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"properties": {
|
|
1106
|
+
"type": {
|
|
1107
|
+
"const": "cols_4"
|
|
1108
|
+
},
|
|
1109
|
+
"columns": {
|
|
1110
|
+
"const": 4
|
|
1111
|
+
},
|
|
1112
|
+
"elements": {
|
|
1113
|
+
"minItems": 4,
|
|
1114
|
+
"maxItems": 4
|
|
1115
|
+
},
|
|
1116
|
+
"options": {
|
|
1117
|
+
"properties": {
|
|
1118
|
+
"columns": {
|
|
1119
|
+
"minItems": 4,
|
|
1120
|
+
"maxItems": 4
|
|
1121
|
+
},
|
|
1122
|
+
"columnsWidth": {
|
|
1123
|
+
"minItems": 4,
|
|
1124
|
+
"maxItems": 4
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"properties": {
|
|
1132
|
+
"type": {
|
|
1133
|
+
"const": "cols_12"
|
|
1134
|
+
},
|
|
1135
|
+
"columns": {
|
|
1136
|
+
"const": 2
|
|
1137
|
+
},
|
|
1138
|
+
"elements": {
|
|
1139
|
+
"minItems": 2,
|
|
1140
|
+
"maxItems": 2
|
|
1141
|
+
},
|
|
1142
|
+
"options": {
|
|
1143
|
+
"properties": {
|
|
1144
|
+
"columns": {
|
|
1145
|
+
"minItems": 2,
|
|
1146
|
+
"maxItems": 2
|
|
1147
|
+
},
|
|
1148
|
+
"columnsWidth": {
|
|
1149
|
+
"minItems": 2,
|
|
1150
|
+
"maxItems": 2
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"properties": {
|
|
1158
|
+
"type": {
|
|
1159
|
+
"const": "cols_21"
|
|
1160
|
+
},
|
|
1161
|
+
"columns": {
|
|
1162
|
+
"const": 2
|
|
1163
|
+
},
|
|
1164
|
+
"elements": {
|
|
1165
|
+
"minItems": 2,
|
|
1166
|
+
"maxItems": 2
|
|
1167
|
+
},
|
|
1168
|
+
"options": {
|
|
1169
|
+
"properties": {
|
|
1170
|
+
"columns": {
|
|
1171
|
+
"minItems": 2,
|
|
1172
|
+
"maxItems": 2
|
|
1173
|
+
},
|
|
1174
|
+
"columnsWidth": {
|
|
1175
|
+
"minItems": 2,
|
|
1176
|
+
"maxItems": 2
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
]
|
|
1183
|
+
}
|
|
1184
|
+
]
|
|
1185
|
+
},
|
|
1186
|
+
"TStructureTypes": {
|
|
1187
|
+
"description": "Builder structure types.",
|
|
1188
|
+
"enum": [
|
|
1189
|
+
"cols_1",
|
|
1190
|
+
"cols_12",
|
|
1191
|
+
"cols_2",
|
|
1192
|
+
"cols_21",
|
|
1193
|
+
"cols_3",
|
|
1194
|
+
"cols_4"
|
|
1195
|
+
],
|
|
1196
|
+
"type": "string"
|
|
1197
|
+
},
|
|
1198
|
+
"IStructureOptions": {
|
|
1199
|
+
"description": "Builder structure styles interface.",
|
|
1200
|
+
"type": "object",
|
|
1201
|
+
"properties": {
|
|
1202
|
+
"border": {
|
|
1203
|
+
"$ref": "#/definitions/IBorder"
|
|
1204
|
+
},
|
|
1205
|
+
"background": {
|
|
1206
|
+
"$ref": "#/definitions/IBackground"
|
|
1207
|
+
},
|
|
1208
|
+
"padding": {
|
|
1209
|
+
"$ref": "#/definitions/IPadding"
|
|
1210
|
+
},
|
|
1211
|
+
"margin": {
|
|
1212
|
+
"$ref": "#/definitions/IMargin"
|
|
1213
|
+
},
|
|
1214
|
+
"disableResponsive": {
|
|
1215
|
+
"description": "Disable responsive for entire structure",
|
|
1216
|
+
"type": "boolean"
|
|
1217
|
+
},
|
|
1218
|
+
"fullWidth": {
|
|
1219
|
+
"description": "Mame section full width",
|
|
1220
|
+
"type": "boolean"
|
|
1221
|
+
},
|
|
1222
|
+
"gaps": {
|
|
1223
|
+
"description": "Mind the GAPS! Gaps between structure's columns.",
|
|
1224
|
+
"type": "array",
|
|
1225
|
+
"items": [
|
|
1226
|
+
{
|
|
1227
|
+
"type": "number"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"type": "number"
|
|
1231
|
+
}
|
|
1232
|
+
],
|
|
1233
|
+
"minItems": 2,
|
|
1234
|
+
"maxItems": 2
|
|
1235
|
+
},
|
|
1236
|
+
"columnsWidth": {
|
|
1237
|
+
"type": "array",
|
|
1238
|
+
"items": {
|
|
1239
|
+
"type": "number",
|
|
1240
|
+
"exclusiveMinimum": 0
|
|
1241
|
+
}
|
|
1242
|
+
},
|
|
1243
|
+
"columns": {
|
|
1244
|
+
"type": "array",
|
|
1245
|
+
"items": {
|
|
1246
|
+
"$ref": "#/definitions/IStructureColumnOptions"
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1250
|
+
"additionalProperties": false,
|
|
1251
|
+
"required": [
|
|
1252
|
+
"border",
|
|
1253
|
+
"background",
|
|
1254
|
+
"padding",
|
|
1255
|
+
"margin",
|
|
1256
|
+
"disableResponsive",
|
|
1257
|
+
"fullWidth",
|
|
1258
|
+
"gaps",
|
|
1259
|
+
"columnsWidth",
|
|
1260
|
+
"columns"
|
|
1261
|
+
]
|
|
1262
|
+
},
|
|
1263
|
+
"IBorder": {
|
|
1264
|
+
"description": "Builder border styles interface.",
|
|
1265
|
+
"type": "object",
|
|
1266
|
+
"properties": {
|
|
1267
|
+
"color": {
|
|
1268
|
+
"type": "string"
|
|
1269
|
+
},
|
|
1270
|
+
"style": {
|
|
1271
|
+
"description": "Border style.",
|
|
1272
|
+
"enum": [
|
|
1273
|
+
"dashed",
|
|
1274
|
+
"dotted",
|
|
1275
|
+
"double",
|
|
1276
|
+
"groove",
|
|
1277
|
+
"solid"
|
|
1278
|
+
],
|
|
1279
|
+
"type": "string"
|
|
1280
|
+
},
|
|
1281
|
+
"width": {
|
|
1282
|
+
"description": "Border width",
|
|
1283
|
+
"type": "number"
|
|
1284
|
+
},
|
|
1285
|
+
"radius": {
|
|
1286
|
+
"description": "Border radius",
|
|
1287
|
+
"type": "number"
|
|
1288
|
+
}
|
|
1289
|
+
},
|
|
1290
|
+
"additionalProperties": false,
|
|
1291
|
+
"required": [
|
|
1292
|
+
"color",
|
|
1293
|
+
"style",
|
|
1294
|
+
"width",
|
|
1295
|
+
"radius"
|
|
1296
|
+
]
|
|
1297
|
+
},
|
|
1298
|
+
"IMargin": {
|
|
1299
|
+
"description": "Builder margin styles interface.",
|
|
1300
|
+
"type": "object",
|
|
1301
|
+
"properties": {
|
|
1302
|
+
"top": {
|
|
1303
|
+
"type": "number"
|
|
1304
|
+
},
|
|
1305
|
+
"bottom": {
|
|
1306
|
+
"type": "number"
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
"additionalProperties": false,
|
|
1310
|
+
"required": [
|
|
1311
|
+
"top",
|
|
1312
|
+
"bottom"
|
|
1313
|
+
]
|
|
1314
|
+
},
|
|
1315
|
+
"IStructureColumnOptions": {
|
|
1316
|
+
"description": "Builder structure columns' styles interface.",
|
|
1317
|
+
"type": "object",
|
|
1318
|
+
"properties": {
|
|
1319
|
+
"background": {
|
|
1320
|
+
"$ref": "#/definitions/IBackground"
|
|
1321
|
+
},
|
|
1322
|
+
"border": {
|
|
1323
|
+
"$ref": "#/definitions/IBorder"
|
|
1324
|
+
},
|
|
1325
|
+
"verticalAlign": {
|
|
1326
|
+
"$ref": "#/definitions/TVerticalAlign"
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
"additionalProperties": false,
|
|
1330
|
+
"required": [
|
|
1331
|
+
"background",
|
|
1332
|
+
"border",
|
|
1333
|
+
"verticalAlign"
|
|
1334
|
+
]
|
|
1335
|
+
},
|
|
1336
|
+
"TVerticalAlign": {
|
|
1337
|
+
"description": "Builder vertical align types.",
|
|
1338
|
+
"enum": [
|
|
1339
|
+
"bottom",
|
|
1340
|
+
"middle",
|
|
1341
|
+
"top"
|
|
1342
|
+
],
|
|
1343
|
+
"type": "string"
|
|
1344
|
+
},
|
|
1345
|
+
"TextBlock": {
|
|
1346
|
+
"type": "object",
|
|
1347
|
+
"properties": {
|
|
1348
|
+
"type": {
|
|
1349
|
+
"type": "string",
|
|
1350
|
+
"enum": [
|
|
1351
|
+
"text"
|
|
1352
|
+
]
|
|
1353
|
+
},
|
|
1354
|
+
"icon": {
|
|
1355
|
+
"type": "string",
|
|
1356
|
+
"enum": [
|
|
1357
|
+
"text_format"
|
|
1358
|
+
]
|
|
1359
|
+
},
|
|
1360
|
+
"options": {
|
|
1361
|
+
"$ref": "#/definitions/ITextBlockOptions"
|
|
1362
|
+
},
|
|
1363
|
+
"title": {
|
|
1364
|
+
"type": "string"
|
|
1365
|
+
},
|
|
1366
|
+
"innerText": {
|
|
1367
|
+
"type": "string"
|
|
1368
|
+
},
|
|
1369
|
+
"state": {
|
|
1370
|
+
"$ref": "#/definitions/IBlockState"
|
|
1371
|
+
}
|
|
1372
|
+
},
|
|
1373
|
+
"additionalProperties": false,
|
|
1374
|
+
"required": [
|
|
1375
|
+
"type",
|
|
1376
|
+
"icon",
|
|
1377
|
+
"options",
|
|
1378
|
+
"title",
|
|
1379
|
+
"innerText",
|
|
1380
|
+
"state"
|
|
1381
|
+
]
|
|
1382
|
+
},
|
|
1383
|
+
"ITextBlockOptions": {
|
|
1384
|
+
"description": "Builder{@linkTextElementComponent}options interface.",
|
|
1385
|
+
"type": "object",
|
|
1386
|
+
"properties": {
|
|
1387
|
+
"color": {
|
|
1388
|
+
"type": "string"
|
|
1389
|
+
},
|
|
1390
|
+
"font": {
|
|
1391
|
+
"$ref": "#/definitions/IFont"
|
|
1392
|
+
},
|
|
1393
|
+
"lineHeight": {
|
|
1394
|
+
"$ref": "#/definitions/ILineHeight"
|
|
1395
|
+
},
|
|
1396
|
+
"padding": {
|
|
1397
|
+
"$ref": "#/definitions/IPadding"
|
|
1398
|
+
}
|
|
1399
|
+
},
|
|
1400
|
+
"additionalProperties": false,
|
|
1401
|
+
"required": [
|
|
1402
|
+
"color",
|
|
1403
|
+
"font",
|
|
1404
|
+
"lineHeight",
|
|
1405
|
+
"padding"
|
|
1406
|
+
]
|
|
1407
|
+
},
|
|
1408
|
+
"IFont": {
|
|
1409
|
+
"description": "Builder font styles interface.",
|
|
1410
|
+
"type": "object",
|
|
1411
|
+
"properties": {
|
|
1412
|
+
"family": {
|
|
1413
|
+
"type": "string"
|
|
1414
|
+
},
|
|
1415
|
+
"fallback": {
|
|
1416
|
+
"type": "string"
|
|
1417
|
+
},
|
|
1418
|
+
"size": {
|
|
1419
|
+
"type": "number"
|
|
1420
|
+
},
|
|
1421
|
+
"style": {
|
|
1422
|
+
"$ref": "#/definitions/TFontStyle"
|
|
1423
|
+
},
|
|
1424
|
+
"weight": {
|
|
1425
|
+
"description": "Builder font weight types.",
|
|
1426
|
+
"anyOf": [
|
|
1427
|
+
{
|
|
1428
|
+
"enum": [
|
|
1429
|
+
"bold",
|
|
1430
|
+
"bolder",
|
|
1431
|
+
"inherit",
|
|
1432
|
+
"initial",
|
|
1433
|
+
"light",
|
|
1434
|
+
"normal"
|
|
1435
|
+
],
|
|
1436
|
+
"type": "string"
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
"type": "number"
|
|
1440
|
+
}
|
|
1441
|
+
]
|
|
1442
|
+
}
|
|
1443
|
+
},
|
|
1444
|
+
"additionalProperties": false,
|
|
1445
|
+
"required": [
|
|
1446
|
+
"family",
|
|
1447
|
+
"fallback",
|
|
1448
|
+
"size",
|
|
1449
|
+
"style",
|
|
1450
|
+
"weight"
|
|
1451
|
+
]
|
|
1452
|
+
},
|
|
1453
|
+
"TFontStyle": {
|
|
1454
|
+
"description": "Builder font style types.",
|
|
1455
|
+
"enum": [
|
|
1456
|
+
"italic",
|
|
1457
|
+
"normal",
|
|
1458
|
+
"oblique"
|
|
1459
|
+
],
|
|
1460
|
+
"type": "string"
|
|
1461
|
+
},
|
|
1462
|
+
"ILineHeight": {
|
|
1463
|
+
"description": "Builder line-height styles interface.",
|
|
1464
|
+
"type": "object",
|
|
1465
|
+
"properties": {
|
|
1466
|
+
"value": {
|
|
1467
|
+
"type": "number"
|
|
1468
|
+
},
|
|
1469
|
+
"unit": {
|
|
1470
|
+
"$ref": "#/definitions/TLineHeight"
|
|
1471
|
+
}
|
|
1472
|
+
},
|
|
1473
|
+
"additionalProperties": false,
|
|
1474
|
+
"required": [
|
|
1475
|
+
"value",
|
|
1476
|
+
"unit"
|
|
1477
|
+
]
|
|
1478
|
+
},
|
|
1479
|
+
"TLineHeight": {
|
|
1480
|
+
"description": "Builder Line-height types.",
|
|
1481
|
+
"enum": [
|
|
1482
|
+
"%",
|
|
1483
|
+
"none",
|
|
1484
|
+
"px"
|
|
1485
|
+
],
|
|
1486
|
+
"type": "string"
|
|
1487
|
+
},
|
|
1488
|
+
"IBlockState": {
|
|
1489
|
+
"description": "Builder block state interface. If `disabled: true` it can't be dragged from left sidebar.",
|
|
1490
|
+
"type": "object",
|
|
1491
|
+
"properties": {
|
|
1492
|
+
"disabled": {
|
|
1493
|
+
"type": "boolean"
|
|
1494
|
+
},
|
|
1495
|
+
"message": {
|
|
1496
|
+
"description": "Show a message in case it's disabled.",
|
|
1497
|
+
"type": "string"
|
|
1498
|
+
}
|
|
1499
|
+
},
|
|
1500
|
+
"additionalProperties": false,
|
|
1501
|
+
"required": [
|
|
1502
|
+
"disabled",
|
|
1503
|
+
"message"
|
|
1504
|
+
]
|
|
1505
|
+
},
|
|
1506
|
+
"ImageBlock": {
|
|
1507
|
+
"type": "object",
|
|
1508
|
+
"properties": {
|
|
1509
|
+
"type": {
|
|
1510
|
+
"type": "string",
|
|
1511
|
+
"enum": [
|
|
1512
|
+
"image"
|
|
1513
|
+
]
|
|
1514
|
+
},
|
|
1515
|
+
"icon": {
|
|
1516
|
+
"type": "string",
|
|
1517
|
+
"enum": [
|
|
1518
|
+
"image"
|
|
1519
|
+
]
|
|
1520
|
+
},
|
|
1521
|
+
"options": {
|
|
1522
|
+
"$ref": "#/definitions/IImageBLockOptions"
|
|
1523
|
+
},
|
|
1524
|
+
"title": {
|
|
1525
|
+
"type": "string"
|
|
1526
|
+
},
|
|
1527
|
+
"src": {
|
|
1528
|
+
"type": "string"
|
|
1529
|
+
},
|
|
1530
|
+
"state": {
|
|
1531
|
+
"$ref": "#/definitions/IBlockState"
|
|
1532
|
+
}
|
|
1533
|
+
},
|
|
1534
|
+
"additionalProperties": false,
|
|
1535
|
+
"required": [
|
|
1536
|
+
"type",
|
|
1537
|
+
"icon",
|
|
1538
|
+
"options",
|
|
1539
|
+
"title",
|
|
1540
|
+
"src",
|
|
1541
|
+
"state"
|
|
1542
|
+
]
|
|
1543
|
+
},
|
|
1544
|
+
"IImageBLockOptions": {
|
|
1545
|
+
"description": "Builder{@linkImageComponent}options interface.",
|
|
1546
|
+
"type": "object",
|
|
1547
|
+
"properties": {
|
|
1548
|
+
"border": {
|
|
1549
|
+
"$ref": "#/definitions/IBorder"
|
|
1550
|
+
},
|
|
1551
|
+
"width": {
|
|
1552
|
+
"$ref": "#/definitions/IWidthHeight"
|
|
1553
|
+
},
|
|
1554
|
+
"height": {
|
|
1555
|
+
"$ref": "#/definitions/IWidthHeight"
|
|
1556
|
+
},
|
|
1557
|
+
"link": {
|
|
1558
|
+
"$ref": "#/definitions/ILink"
|
|
1559
|
+
},
|
|
1560
|
+
"align": {
|
|
1561
|
+
"$ref": "#/definitions/TAlign"
|
|
1562
|
+
},
|
|
1563
|
+
"title": {
|
|
1564
|
+
"type": "string"
|
|
1565
|
+
},
|
|
1566
|
+
"padding": {
|
|
1567
|
+
"$ref": "#/definitions/IPadding"
|
|
1568
|
+
}
|
|
1569
|
+
},
|
|
1570
|
+
"additionalProperties": false,
|
|
1571
|
+
"required": [
|
|
1572
|
+
"border",
|
|
1573
|
+
"width",
|
|
1574
|
+
"height",
|
|
1575
|
+
"link",
|
|
1576
|
+
"align",
|
|
1577
|
+
"title",
|
|
1578
|
+
"padding"
|
|
1579
|
+
]
|
|
1580
|
+
},
|
|
1581
|
+
"ILink": {
|
|
1582
|
+
"description": "Builder link styles interface.",
|
|
1583
|
+
"type": "object",
|
|
1584
|
+
"properties": {
|
|
1585
|
+
"href": {
|
|
1586
|
+
"type": "string"
|
|
1587
|
+
},
|
|
1588
|
+
"target": {
|
|
1589
|
+
"$ref": "#/definitions/TLinkTarget"
|
|
1590
|
+
}
|
|
1591
|
+
},
|
|
1592
|
+
"additionalProperties": false,
|
|
1593
|
+
"required": [
|
|
1594
|
+
"href",
|
|
1595
|
+
"target"
|
|
1596
|
+
]
|
|
1597
|
+
},
|
|
1598
|
+
"TLinkTarget": {
|
|
1599
|
+
"description": "Builder Link target.",
|
|
1600
|
+
"enum": [
|
|
1601
|
+
"_blank",
|
|
1602
|
+
"_parent",
|
|
1603
|
+
"_self",
|
|
1604
|
+
"_top"
|
|
1605
|
+
],
|
|
1606
|
+
"type": "string"
|
|
1607
|
+
},
|
|
1608
|
+
"TAlign": {
|
|
1609
|
+
"description": "Builder align types.",
|
|
1610
|
+
"enum": [
|
|
1611
|
+
"center",
|
|
1612
|
+
"left",
|
|
1613
|
+
"right"
|
|
1614
|
+
],
|
|
1615
|
+
"type": "string"
|
|
1616
|
+
},
|
|
1617
|
+
"VideoBlock": {
|
|
1618
|
+
"type": "object",
|
|
1619
|
+
"properties": {
|
|
1620
|
+
"type": {
|
|
1621
|
+
"type": "string",
|
|
1622
|
+
"enum": [
|
|
1623
|
+
"video"
|
|
1624
|
+
]
|
|
1625
|
+
},
|
|
1626
|
+
"icon": {
|
|
1627
|
+
"type": "string",
|
|
1628
|
+
"enum": [
|
|
1629
|
+
"videocam"
|
|
1630
|
+
]
|
|
1631
|
+
},
|
|
1632
|
+
"options": {
|
|
1633
|
+
"$ref": "#/definitions/IVideoBlockOptions"
|
|
1634
|
+
},
|
|
1635
|
+
"title": {
|
|
1636
|
+
"type": "string"
|
|
1637
|
+
},
|
|
1638
|
+
"src": {
|
|
1639
|
+
"type": "string"
|
|
1640
|
+
},
|
|
1641
|
+
"posterSrc": {
|
|
1642
|
+
"type": "string"
|
|
1643
|
+
},
|
|
1644
|
+
"state": {
|
|
1645
|
+
"$ref": "#/definitions/IBlockState"
|
|
1646
|
+
}
|
|
1647
|
+
},
|
|
1648
|
+
"additionalProperties": false,
|
|
1649
|
+
"required": [
|
|
1650
|
+
"type",
|
|
1651
|
+
"icon",
|
|
1652
|
+
"options",
|
|
1653
|
+
"title",
|
|
1654
|
+
"src",
|
|
1655
|
+
"posterSrc",
|
|
1656
|
+
"state"
|
|
1657
|
+
]
|
|
1658
|
+
},
|
|
1659
|
+
"IVideoBlockOptions": {
|
|
1660
|
+
"description": "Builder{@linkVideoComponent}options interface.",
|
|
1661
|
+
"type": "object",
|
|
1662
|
+
"properties": {
|
|
1663
|
+
"border": {
|
|
1664
|
+
"$ref": "#/definitions/IBorder"
|
|
1665
|
+
},
|
|
1666
|
+
"width": {
|
|
1667
|
+
"$ref": "#/definitions/IWidthHeight"
|
|
1668
|
+
},
|
|
1669
|
+
"height": {
|
|
1670
|
+
"$ref": "#/definitions/IWidthHeight"
|
|
1671
|
+
},
|
|
1672
|
+
"link": {
|
|
1673
|
+
"$ref": "#/definitions/ILink"
|
|
1674
|
+
},
|
|
1675
|
+
"align": {
|
|
1676
|
+
"$ref": "#/definitions/TAlign"
|
|
1677
|
+
},
|
|
1678
|
+
"title": {
|
|
1679
|
+
"type": "string"
|
|
1680
|
+
},
|
|
1681
|
+
"padding": {
|
|
1682
|
+
"$ref": "#/definitions/IPadding"
|
|
1683
|
+
}
|
|
1684
|
+
},
|
|
1685
|
+
"additionalProperties": false,
|
|
1686
|
+
"required": [
|
|
1687
|
+
"border",
|
|
1688
|
+
"width",
|
|
1689
|
+
"height",
|
|
1690
|
+
"link",
|
|
1691
|
+
"align",
|
|
1692
|
+
"title",
|
|
1693
|
+
"padding"
|
|
1694
|
+
]
|
|
1695
|
+
},
|
|
1696
|
+
"ButtonBlock": {
|
|
1697
|
+
"type": "object",
|
|
1698
|
+
"properties": {
|
|
1699
|
+
"type": {
|
|
1700
|
+
"type": "string",
|
|
1701
|
+
"enum": [
|
|
1702
|
+
"button"
|
|
1703
|
+
]
|
|
1704
|
+
},
|
|
1705
|
+
"icon": {
|
|
1706
|
+
"type": "string",
|
|
1707
|
+
"enum": [
|
|
1708
|
+
"radio_button_checked"
|
|
1709
|
+
]
|
|
1710
|
+
},
|
|
1711
|
+
"options": {
|
|
1712
|
+
"$ref": "#/definitions/IButtonBlockOptions"
|
|
1713
|
+
},
|
|
1714
|
+
"title": {
|
|
1715
|
+
"type": "string"
|
|
1716
|
+
},
|
|
1717
|
+
"innerText": {
|
|
1718
|
+
"type": "string"
|
|
1719
|
+
},
|
|
1720
|
+
"state": {
|
|
1721
|
+
"$ref": "#/definitions/IBlockState"
|
|
1722
|
+
}
|
|
1723
|
+
},
|
|
1724
|
+
"additionalProperties": false,
|
|
1725
|
+
"required": [
|
|
1726
|
+
"type",
|
|
1727
|
+
"icon",
|
|
1728
|
+
"options",
|
|
1729
|
+
"title",
|
|
1730
|
+
"innerText",
|
|
1731
|
+
"state"
|
|
1732
|
+
]
|
|
1733
|
+
},
|
|
1734
|
+
"IButtonBlockOptions": {
|
|
1735
|
+
"description": "Builder{@linkButtonComponent}options interface.",
|
|
1736
|
+
"type": "object",
|
|
1737
|
+
"properties": {
|
|
1738
|
+
"backgroundColor": {
|
|
1739
|
+
"type": "string"
|
|
1740
|
+
},
|
|
1741
|
+
"border": {
|
|
1742
|
+
"$ref": "#/definitions/IBorder"
|
|
1743
|
+
},
|
|
1744
|
+
"color": {
|
|
1745
|
+
"type": "string"
|
|
1746
|
+
},
|
|
1747
|
+
"font": {
|
|
1748
|
+
"$ref": "#/definitions/IFont"
|
|
1749
|
+
},
|
|
1750
|
+
"align": {
|
|
1751
|
+
"$ref": "#/definitions/TAlign"
|
|
1752
|
+
},
|
|
1753
|
+
"fullWidth": {
|
|
1754
|
+
"type": "boolean"
|
|
1755
|
+
},
|
|
1756
|
+
"lineHeight": {
|
|
1757
|
+
"$ref": "#/definitions/ILineHeight"
|
|
1758
|
+
},
|
|
1759
|
+
"link": {
|
|
1760
|
+
"$ref": "#/definitions/ILink"
|
|
1761
|
+
},
|
|
1762
|
+
"innerPadding": {
|
|
1763
|
+
"$ref": "#/definitions/IPadding"
|
|
1764
|
+
},
|
|
1765
|
+
"padding": {
|
|
1766
|
+
"$ref": "#/definitions/IPadding"
|
|
1767
|
+
}
|
|
1768
|
+
},
|
|
1769
|
+
"additionalProperties": false,
|
|
1770
|
+
"required": [
|
|
1771
|
+
"backgroundColor",
|
|
1772
|
+
"border",
|
|
1773
|
+
"color",
|
|
1774
|
+
"font",
|
|
1775
|
+
"align",
|
|
1776
|
+
"fullWidth",
|
|
1777
|
+
"lineHeight",
|
|
1778
|
+
"link",
|
|
1779
|
+
"innerPadding",
|
|
1780
|
+
"padding"
|
|
1781
|
+
]
|
|
1782
|
+
},
|
|
1783
|
+
"DividerBlock": {
|
|
1784
|
+
"type": "object",
|
|
1785
|
+
"properties": {
|
|
1786
|
+
"type": {
|
|
1787
|
+
"type": "string",
|
|
1788
|
+
"enum": [
|
|
1789
|
+
"divider"
|
|
1790
|
+
]
|
|
1791
|
+
},
|
|
1792
|
+
"icon": {
|
|
1793
|
+
"type": "string",
|
|
1794
|
+
"enum": [
|
|
1795
|
+
"remove"
|
|
1796
|
+
]
|
|
1797
|
+
},
|
|
1798
|
+
"options": {
|
|
1799
|
+
"$ref": "#/definitions/IDividerBlockOptions"
|
|
1800
|
+
},
|
|
1801
|
+
"title": {
|
|
1802
|
+
"type": "string"
|
|
1803
|
+
},
|
|
1804
|
+
"state": {
|
|
1805
|
+
"$ref": "#/definitions/IBlockState"
|
|
1806
|
+
}
|
|
1807
|
+
},
|
|
1808
|
+
"additionalProperties": false,
|
|
1809
|
+
"required": [
|
|
1810
|
+
"type",
|
|
1811
|
+
"icon",
|
|
1812
|
+
"options",
|
|
1813
|
+
"title",
|
|
1814
|
+
"state"
|
|
1815
|
+
]
|
|
1816
|
+
},
|
|
1817
|
+
"IDividerBlockOptions": {
|
|
1818
|
+
"description": "Builder{@linkDividerComponent}options interface.",
|
|
1819
|
+
"type": "object",
|
|
1820
|
+
"properties": {
|
|
1821
|
+
"border": {
|
|
1822
|
+
"$ref": "#/definitions/IBorder"
|
|
1823
|
+
},
|
|
1824
|
+
"padding": {
|
|
1825
|
+
"$ref": "#/definitions/IPadding"
|
|
1826
|
+
}
|
|
1827
|
+
},
|
|
1828
|
+
"additionalProperties": false,
|
|
1829
|
+
"required": [
|
|
1830
|
+
"border",
|
|
1831
|
+
"padding"
|
|
1832
|
+
]
|
|
1833
|
+
},
|
|
1834
|
+
"SpacerBlock": {
|
|
1835
|
+
"type": "object",
|
|
1836
|
+
"properties": {
|
|
1837
|
+
"type": {
|
|
1838
|
+
"type": "string",
|
|
1839
|
+
"enum": [
|
|
1840
|
+
"spacer"
|
|
1841
|
+
]
|
|
1842
|
+
},
|
|
1843
|
+
"icon": {
|
|
1844
|
+
"type": "string",
|
|
1845
|
+
"enum": [
|
|
1846
|
+
"vertical_align_center"
|
|
1847
|
+
]
|
|
1848
|
+
},
|
|
1849
|
+
"title": {
|
|
1850
|
+
"type": "string"
|
|
1851
|
+
},
|
|
1852
|
+
"options": {
|
|
1853
|
+
"$ref": "#/definitions/ISpacerBlockOptions"
|
|
1854
|
+
},
|
|
1855
|
+
"state": {
|
|
1856
|
+
"$ref": "#/definitions/IBlockState"
|
|
1857
|
+
}
|
|
1858
|
+
},
|
|
1859
|
+
"additionalProperties": false,
|
|
1860
|
+
"required": [
|
|
1861
|
+
"type",
|
|
1862
|
+
"icon",
|
|
1863
|
+
"title",
|
|
1864
|
+
"options",
|
|
1865
|
+
"state"
|
|
1866
|
+
]
|
|
1867
|
+
},
|
|
1868
|
+
"ISpacerBlockOptions": {
|
|
1869
|
+
"description": "Builder{@linkSpacerComponent}options interface.",
|
|
1870
|
+
"type": "object",
|
|
1871
|
+
"properties": {
|
|
1872
|
+
"height": {
|
|
1873
|
+
"$ref": "#/definitions/IWidthHeight"
|
|
1874
|
+
},
|
|
1875
|
+
"width": {
|
|
1876
|
+
"$ref": "#/definitions/IWidthHeight"
|
|
1877
|
+
}
|
|
1878
|
+
},
|
|
1879
|
+
"additionalProperties": false,
|
|
1880
|
+
"required": [
|
|
1881
|
+
"height",
|
|
1882
|
+
"width"
|
|
1883
|
+
]
|
|
1884
|
+
},
|
|
1885
|
+
"SocialBlock": {
|
|
1886
|
+
"type": "object",
|
|
1887
|
+
"properties": {
|
|
1888
|
+
"type": {
|
|
1889
|
+
"type": "string",
|
|
1890
|
+
"enum": [
|
|
1891
|
+
"social"
|
|
1892
|
+
]
|
|
1893
|
+
},
|
|
1894
|
+
"icon": {
|
|
1895
|
+
"type": "string",
|
|
1896
|
+
"enum": [
|
|
1897
|
+
"share"
|
|
1898
|
+
]
|
|
1899
|
+
},
|
|
1900
|
+
"title": {
|
|
1901
|
+
"type": "string"
|
|
1902
|
+
},
|
|
1903
|
+
"options": {
|
|
1904
|
+
"$ref": "#/definitions/ISocialBlockOptions"
|
|
1905
|
+
},
|
|
1906
|
+
"networks": {
|
|
1907
|
+
"type": "array",
|
|
1908
|
+
"items": {
|
|
1909
|
+
"$ref": "#/definitions/ISocialNetwork"
|
|
1910
|
+
}
|
|
1911
|
+
},
|
|
1912
|
+
"state": {
|
|
1913
|
+
"$ref": "#/definitions/IBlockState"
|
|
1914
|
+
}
|
|
1915
|
+
},
|
|
1916
|
+
"additionalProperties": false,
|
|
1917
|
+
"required": [
|
|
1918
|
+
"type",
|
|
1919
|
+
"icon",
|
|
1920
|
+
"title",
|
|
1921
|
+
"options",
|
|
1922
|
+
"networks",
|
|
1923
|
+
"state"
|
|
1924
|
+
]
|
|
1925
|
+
},
|
|
1926
|
+
"ISocialBlockOptions": {
|
|
1927
|
+
"description": "Builder{@linkSocialComponent}options interface.",
|
|
1928
|
+
"type": "object",
|
|
1929
|
+
"properties": {
|
|
1930
|
+
"align": {
|
|
1931
|
+
"$ref": "#/definitions/TAlign"
|
|
1932
|
+
},
|
|
1933
|
+
"mode": {
|
|
1934
|
+
"enum": [
|
|
1935
|
+
"horizontal",
|
|
1936
|
+
"vertical"
|
|
1937
|
+
],
|
|
1938
|
+
"type": "string"
|
|
1939
|
+
},
|
|
1940
|
+
"font": {
|
|
1941
|
+
"$ref": "#/definitions/IFont"
|
|
1942
|
+
},
|
|
1943
|
+
"iconSize": {
|
|
1944
|
+
"$ref": "#/definitions/ILineHeight"
|
|
1945
|
+
},
|
|
1946
|
+
"lineHeight": {
|
|
1947
|
+
"$ref": "#/definitions/ILineHeight"
|
|
1948
|
+
},
|
|
1949
|
+
"color": {
|
|
1950
|
+
"type": "string"
|
|
1951
|
+
},
|
|
1952
|
+
"innerPadding": {
|
|
1953
|
+
"$ref": "#/definitions/IPadding"
|
|
1954
|
+
},
|
|
1955
|
+
"padding": {
|
|
1956
|
+
"$ref": "#/definitions/IPadding"
|
|
1957
|
+
}
|
|
1958
|
+
},
|
|
1959
|
+
"additionalProperties": false,
|
|
1960
|
+
"required": [
|
|
1961
|
+
"align",
|
|
1962
|
+
"mode",
|
|
1963
|
+
"font",
|
|
1964
|
+
"iconSize",
|
|
1965
|
+
"lineHeight",
|
|
1966
|
+
"color",
|
|
1967
|
+
"innerPadding",
|
|
1968
|
+
"padding"
|
|
1969
|
+
]
|
|
1970
|
+
},
|
|
1971
|
+
"ISocialNetwork": {
|
|
1972
|
+
"description": "Builder{@linkSocialComponent}network options interface.",
|
|
1973
|
+
"type": "object",
|
|
1974
|
+
"properties": {
|
|
1975
|
+
"href": {
|
|
1976
|
+
"type": "string"
|
|
1977
|
+
},
|
|
1978
|
+
"label": {
|
|
1979
|
+
"type": "string"
|
|
1980
|
+
},
|
|
1981
|
+
"name": {
|
|
1982
|
+
"enum": [
|
|
1983
|
+
"dribbble",
|
|
1984
|
+
"facebook",
|
|
1985
|
+
"github",
|
|
1986
|
+
"instagram",
|
|
1987
|
+
"linkedin",
|
|
1988
|
+
"medium",
|
|
1989
|
+
"pinterest",
|
|
1990
|
+
"snapchat",
|
|
1991
|
+
"soundcloud",
|
|
1992
|
+
"tiktok",
|
|
1993
|
+
"tumblr",
|
|
1994
|
+
"twitter",
|
|
1995
|
+
"vimeo",
|
|
1996
|
+
"web",
|
|
1997
|
+
"xing",
|
|
1998
|
+
"youtube"
|
|
1999
|
+
],
|
|
2000
|
+
"type": "string"
|
|
2001
|
+
},
|
|
2002
|
+
"padding": {
|
|
2003
|
+
"$ref": "#/definitions/IPadding"
|
|
2004
|
+
}
|
|
2005
|
+
},
|
|
2006
|
+
"additionalProperties": false,
|
|
2007
|
+
"required": [
|
|
2008
|
+
"href",
|
|
2009
|
+
"label",
|
|
2010
|
+
"name",
|
|
2011
|
+
"padding"
|
|
2012
|
+
]
|
|
2013
|
+
},
|
|
2014
|
+
"ICustomFont": {
|
|
2015
|
+
"description": "Custom font interface",
|
|
2016
|
+
"type": "object",
|
|
2017
|
+
"properties": {
|
|
2018
|
+
"family": {
|
|
2019
|
+
"type": "string"
|
|
2020
|
+
},
|
|
2021
|
+
"url": {
|
|
2022
|
+
"type": "string"
|
|
2023
|
+
}
|
|
2024
|
+
},
|
|
2025
|
+
"additionalProperties": false,
|
|
2026
|
+
"required": [
|
|
2027
|
+
"family",
|
|
2028
|
+
"url"
|
|
2029
|
+
]
|
|
2030
|
+
}
|
|
2031
|
+
},
|
|
2032
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
2033
|
+
"title": "Pobuca Email Template",
|
|
2034
|
+
"required": [
|
|
2035
|
+
"general",
|
|
2036
|
+
"structures",
|
|
2037
|
+
"customFonts"
|
|
2038
|
+
]
|
|
2039
|
+
};
|
|
2040
|
+
|
|
2041
|
+
/*
|
|
2042
|
+
* Copyright (c) 2024 Pobuca.
|
|
2043
|
+
* All rights reserved.
|
|
2044
|
+
*/
|
|
2045
|
+
/**
|
|
2046
|
+
* Complete JSON Schema for AI-generated Pobuca email templates.
|
|
2047
|
+
*
|
|
2048
|
+
* Run `npm run generate:email-schema` after changing the email model. Library
|
|
2049
|
+
* builds run that command automatically.
|
|
2050
|
+
*/
|
|
2051
|
+
const PB_EMAIL_TEMPLATE_SCHEMA = GENERATED_EMAIL_TEMPLATE_SCHEMA;
|
|
2052
|
+
|
|
776
2053
|
/*
|
|
777
2054
|
* Copyright (c) 2024 Pobuca.
|
|
778
2055
|
* All rights reserved.
|
|
@@ -2365,8 +3642,11 @@ class PbEmailBuilderComponent {
|
|
|
2365
3642
|
}
|
|
2366
3643
|
saveEmail() {
|
|
2367
3644
|
return this.emailObjectStore.currentEmailHasChanges$
|
|
2368
|
-
.pipe(exhaustMap(hasChanges => {
|
|
2369
|
-
|
|
3645
|
+
.pipe(withLatestFrom(this.emailObjectStore.templateAsObservable$), exhaustMap(([hasChanges, currentHtml]) => {
|
|
3646
|
+
if (hasChanges || !currentHtml) {
|
|
3647
|
+
return this.ngb.createHTMLTemplate$();
|
|
3648
|
+
}
|
|
3649
|
+
return this.userInterfaceService.notify('No changes were detected to be saved!').afterDismissed();
|
|
2370
3650
|
}), take(1))
|
|
2371
3651
|
.subscribe();
|
|
2372
3652
|
}
|
|
@@ -4911,5 +6191,5 @@ PbEmailBuilderModule.ctorParameters = () => [
|
|
|
4911
6191
|
* Generated bundle index. Do not edit.
|
|
4912
6192
|
*/
|
|
4913
6193
|
|
|
4914
|
-
export { AIPBlock, ButtonBlock, Defaults, DividerBlock, ETemplatesStorage, ImageUploader as FreeUsersImageUploader, ImageBlock, PBEmail, PB_BLOCKS, PB_CONFIG, PB_DEFAULT_BLOCKS, PB_DEFAULT_CONFIG, PB_DEFAULT_FALLBACK_FONTS, PB_DEFAULT_GOOGLE_FONTS, PB_DEFAULT_SOCIAL_NETWORKS, PB_DEFAULT_STRUCTURES, PB_FALLBACK_FONTS, PB_GOOGLE_FONTS, PB_SOCIAL_NETWORKS, PB_STORAGE_FACTORY, PB_STRUCTURES, PB_TEMPLATES_TEMPORARY_STORAGE, PbEmailBuilderComponent, PbEmailBuilderModule, PbEmailBuilderService, PbStorageService, PbUserImageUploaderService, PbUserMiddlewaresService, PbUserRestApiService, PreviewTemplateComponent, SlugifyPipe, SocialBlock, SpacerBlock, Structure, TextBlock, VideoBlock, bytesToSize, cloneDeep, createBackground, createBorder, createCustomRestApiService, createFont, createLineHeight, createMargin, createPadding, createUserMiddlewareService, createUserUploaderService, createUsersIpStorage, createWidthHeight, defaultColumnsOptions, defaultsDeep, deferOf, getAssetByPath, isEqual, ɵ0, PbEmailObjectStoreService as ɵa, IpHistoryService as ɵb, LinkComponent as ɵba, AlignComponent as ɵbb, DirectionComponent as ɵbc, BackRepatComponent as ɵbd, ConfirmDialogComponent as ɵbe, ImageUploadComponent as ɵbf, BlockSettingsComponent as ɵbg, StructureSettingsComponent as ɵbh, GeneralSettingsComponent as ɵbi, UploadBottomSheetDialogComponent as ɵbj, UploadImageGalleryComponent as ɵbk, TemplateListDialogComponent as ɵbl, ImportDialogComponent as ɵbm, IpInterceptorInterceptor as ɵbn, LIBRARY_IS_PRO as ɵbo, PbUserInterfaceService as ɵc, FreeUsersRestApi as ɵd, FreeUsersPbStorage as ɵe, StructureComponent as ɵf, BlockComponent as ɵg, DynamicComponentDirective as ɵh, TextElementComponent as ɵi, AbstractBlock as ɵj, ImageComponent as ɵk, VideoComponent as ɵl, VideoThumbnailService as ɵm, ButtonComponent as ɵn, DividerComponent as ɵo, SpacerComponent as ɵp, SocialComponent as ɵq, BuilderContainerComponent as ɵr, FontStylesComponent as ɵs, PaddingComponent as ɵt, MarginComponent as ɵu, GapsComponent as ɵv, LineHeightComponent as ɵw, WidthHeightComponent as ɵx, BorderComponent as ɵy, ColorComponent as ɵz };
|
|
6194
|
+
export { AIPBlock, ButtonBlock, Defaults, DividerBlock, ETemplatesStorage, ImageUploader as FreeUsersImageUploader, ImageBlock, PBEmail, PB_BLOCKS, PB_CONFIG, PB_DEFAULT_BLOCKS, PB_DEFAULT_CONFIG, PB_DEFAULT_FALLBACK_FONTS, PB_DEFAULT_GOOGLE_FONTS, PB_DEFAULT_SOCIAL_NETWORKS, PB_DEFAULT_STRUCTURES, PB_EMAIL_TEMPLATE_SCHEMA, PB_FALLBACK_FONTS, PB_GOOGLE_FONTS, PB_SOCIAL_NETWORKS, PB_STORAGE_FACTORY, PB_STRUCTURES, PB_TEMPLATES_TEMPORARY_STORAGE, PbEmailBuilderComponent, PbEmailBuilderModule, PbEmailBuilderService, PbStorageService, PbUserImageUploaderService, PbUserMiddlewaresService, PbUserRestApiService, PreviewTemplateComponent, SlugifyPipe, SocialBlock, SpacerBlock, Structure, TextBlock, VideoBlock, bytesToSize, cloneDeep, createBackground, createBorder, createCustomRestApiService, createFont, createLineHeight, createMargin, createPadding, createUserMiddlewareService, createUserUploaderService, createUsersIpStorage, createWidthHeight, defaultColumnsOptions, defaultsDeep, deferOf, getAssetByPath, isEqual, ɵ0, PbEmailObjectStoreService as ɵa, IpHistoryService as ɵb, LinkComponent as ɵba, AlignComponent as ɵbb, DirectionComponent as ɵbc, BackRepatComponent as ɵbd, ConfirmDialogComponent as ɵbe, ImageUploadComponent as ɵbf, BlockSettingsComponent as ɵbg, StructureSettingsComponent as ɵbh, GeneralSettingsComponent as ɵbi, UploadBottomSheetDialogComponent as ɵbj, UploadImageGalleryComponent as ɵbk, TemplateListDialogComponent as ɵbl, ImportDialogComponent as ɵbm, IpInterceptorInterceptor as ɵbn, LIBRARY_IS_PRO as ɵbo, PbUserInterfaceService as ɵc, FreeUsersRestApi as ɵd, FreeUsersPbStorage as ɵe, StructureComponent as ɵf, BlockComponent as ɵg, DynamicComponentDirective as ɵh, TextElementComponent as ɵi, AbstractBlock as ɵj, ImageComponent as ɵk, VideoComponent as ɵl, VideoThumbnailService as ɵm, ButtonComponent as ɵn, DividerComponent as ɵo, SpacerComponent as ɵp, SocialComponent as ɵq, BuilderContainerComponent as ɵr, FontStylesComponent as ɵs, PaddingComponent as ɵt, MarginComponent as ɵu, GapsComponent as ɵv, LineHeightComponent as ɵw, WidthHeightComponent as ɵx, BorderComponent as ɵy, ColorComponent as ɵz };
|
|
4915
6195
|
//# sourceMappingURL=pobuca-email-builder.js.map
|