@wix/auto_sdk_blog_draft-posts 1.0.76 → 1.0.77
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/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +957 -35
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +213 -24
- package/build/cjs/index.typings.js +801 -23
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +213 -24
- package/build/cjs/meta.js +801 -23
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +950 -35
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +213 -24
- package/build/es/index.typings.mjs +794 -23
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +213 -24
- package/build/es/meta.mjs +794 -23
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +957 -35
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +213 -24
- package/build/internal/cjs/index.typings.js +801 -23
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +213 -24
- package/build/internal/cjs/meta.js +801 -23
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +950 -35
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +213 -24
- package/build/internal/es/index.typings.mjs +794 -23
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +213 -24
- package/build/internal/es/meta.mjs +794 -23
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -288,6 +288,8 @@ interface Node extends NodeDataOneOf {
|
|
|
288
288
|
layoutCellData?: LayoutCellData;
|
|
289
289
|
/** Data for a shape node. */
|
|
290
290
|
shapeData?: ShapeData;
|
|
291
|
+
/** Data for a card node. */
|
|
292
|
+
cardData?: CardData;
|
|
291
293
|
/** Node type. Use `APP_EMBED` for nodes that embed content from other Wix apps. Use `EMBED` to embed content in [oEmbed](https://oembed.com/) format. */
|
|
292
294
|
type?: NodeTypeWithLiterals;
|
|
293
295
|
/** Node ID. */
|
|
@@ -357,6 +359,8 @@ interface NodeDataOneOf {
|
|
|
357
359
|
layoutCellData?: LayoutCellData;
|
|
358
360
|
/** Data for a shape node. */
|
|
359
361
|
shapeData?: ShapeData;
|
|
362
|
+
/** Data for a card node. */
|
|
363
|
+
cardData?: CardData;
|
|
360
364
|
}
|
|
361
365
|
declare enum NodeType {
|
|
362
366
|
PARAGRAPH = "PARAGRAPH",
|
|
@@ -393,10 +397,11 @@ declare enum NodeType {
|
|
|
393
397
|
CAPTION = "CAPTION",
|
|
394
398
|
LAYOUT = "LAYOUT",
|
|
395
399
|
LAYOUT_CELL = "LAYOUT_CELL",
|
|
396
|
-
SHAPE = "SHAPE"
|
|
400
|
+
SHAPE = "SHAPE",
|
|
401
|
+
CARD = "CARD"
|
|
397
402
|
}
|
|
398
403
|
/** @enumType */
|
|
399
|
-
type NodeTypeWithLiterals = NodeType | 'PARAGRAPH' | 'TEXT' | 'HEADING' | 'BULLETED_LIST' | 'ORDERED_LIST' | 'LIST_ITEM' | 'BLOCKQUOTE' | 'CODE_BLOCK' | 'VIDEO' | 'DIVIDER' | 'FILE' | 'GALLERY' | 'GIF' | 'HTML' | 'IMAGE' | 'LINK_PREVIEW' | 'MAP' | 'POLL' | 'APP_EMBED' | 'BUTTON' | 'COLLAPSIBLE_LIST' | 'TABLE' | 'EMBED' | 'COLLAPSIBLE_ITEM' | 'COLLAPSIBLE_ITEM_TITLE' | 'COLLAPSIBLE_ITEM_BODY' | 'TABLE_CELL' | 'TABLE_ROW' | 'EXTERNAL' | 'AUDIO' | 'CAPTION' | 'LAYOUT' | 'LAYOUT_CELL' | 'SHAPE';
|
|
404
|
+
type NodeTypeWithLiterals = NodeType | 'PARAGRAPH' | 'TEXT' | 'HEADING' | 'BULLETED_LIST' | 'ORDERED_LIST' | 'LIST_ITEM' | 'BLOCKQUOTE' | 'CODE_BLOCK' | 'VIDEO' | 'DIVIDER' | 'FILE' | 'GALLERY' | 'GIF' | 'HTML' | 'IMAGE' | 'LINK_PREVIEW' | 'MAP' | 'POLL' | 'APP_EMBED' | 'BUTTON' | 'COLLAPSIBLE_LIST' | 'TABLE' | 'EMBED' | 'COLLAPSIBLE_ITEM' | 'COLLAPSIBLE_ITEM_TITLE' | 'COLLAPSIBLE_ITEM_BODY' | 'TABLE_CELL' | 'TABLE_ROW' | 'EXTERNAL' | 'AUDIO' | 'CAPTION' | 'LAYOUT' | 'LAYOUT_CELL' | 'SHAPE' | 'CARD';
|
|
400
405
|
interface NodeStyle {
|
|
401
406
|
/** The top padding value in pixels. */
|
|
402
407
|
paddingTop?: string | null;
|
|
@@ -417,6 +422,55 @@ interface ButtonData {
|
|
|
417
422
|
/** Button link details. */
|
|
418
423
|
link?: Link;
|
|
419
424
|
}
|
|
425
|
+
/** Background type */
|
|
426
|
+
declare enum BackgroundType {
|
|
427
|
+
/** Solid color background */
|
|
428
|
+
COLOR = "COLOR",
|
|
429
|
+
/** Gradient background */
|
|
430
|
+
GRADIENT = "GRADIENT"
|
|
431
|
+
}
|
|
432
|
+
/** @enumType */
|
|
433
|
+
type BackgroundTypeWithLiterals = BackgroundType | 'COLOR' | 'GRADIENT';
|
|
434
|
+
interface Gradient {
|
|
435
|
+
/** Gradient type. */
|
|
436
|
+
type?: GradientTypeWithLiterals;
|
|
437
|
+
/**
|
|
438
|
+
* Color stops for the gradient.
|
|
439
|
+
* @maxSize 1000
|
|
440
|
+
*/
|
|
441
|
+
stops?: Stop[];
|
|
442
|
+
/** Angle in degrees for linear gradient (0-360). */
|
|
443
|
+
angle?: number | null;
|
|
444
|
+
/**
|
|
445
|
+
* Horizontal center position for radial gradient (0-100).
|
|
446
|
+
* @max 100
|
|
447
|
+
*/
|
|
448
|
+
centerX?: number | null;
|
|
449
|
+
/**
|
|
450
|
+
* Vertical center position for radial gradient (0-100).
|
|
451
|
+
* @max 100
|
|
452
|
+
*/
|
|
453
|
+
centerY?: number | null;
|
|
454
|
+
}
|
|
455
|
+
/** Gradient type. */
|
|
456
|
+
declare enum GradientType {
|
|
457
|
+
/** Linear gradient. */
|
|
458
|
+
LINEAR = "LINEAR",
|
|
459
|
+
/** Radial gradient. */
|
|
460
|
+
RADIAL = "RADIAL"
|
|
461
|
+
}
|
|
462
|
+
/** @enumType */
|
|
463
|
+
type GradientTypeWithLiterals = GradientType | 'LINEAR' | 'RADIAL';
|
|
464
|
+
/** A single color stop in the gradient. */
|
|
465
|
+
interface Stop {
|
|
466
|
+
/**
|
|
467
|
+
* Stop color as hex value.
|
|
468
|
+
* @format COLOR_HEX
|
|
469
|
+
*/
|
|
470
|
+
color?: string | null;
|
|
471
|
+
/** Stop position (0-1). */
|
|
472
|
+
position?: number | null;
|
|
473
|
+
}
|
|
420
474
|
interface Border {
|
|
421
475
|
/**
|
|
422
476
|
* Deprecated: Use `borderWidth` in `styles` instead.
|
|
@@ -446,6 +500,18 @@ interface Colors {
|
|
|
446
500
|
*/
|
|
447
501
|
background?: string | null;
|
|
448
502
|
}
|
|
503
|
+
/** Background styling (color or gradient) */
|
|
504
|
+
interface Background {
|
|
505
|
+
/** Background type. */
|
|
506
|
+
type?: BackgroundTypeWithLiterals;
|
|
507
|
+
/**
|
|
508
|
+
* Background color as a hexadecimal value.
|
|
509
|
+
* @format COLOR_HEX
|
|
510
|
+
*/
|
|
511
|
+
color?: string | null;
|
|
512
|
+
/** Gradient configuration. */
|
|
513
|
+
gradient?: Gradient;
|
|
514
|
+
}
|
|
449
515
|
interface PluginContainerData {
|
|
450
516
|
/** The width of the node when it's displayed. */
|
|
451
517
|
width?: PluginContainerDataWidth;
|
|
@@ -566,17 +632,23 @@ interface Styles {
|
|
|
566
632
|
*/
|
|
567
633
|
textColorHover?: string | null;
|
|
568
634
|
/**
|
|
569
|
-
*
|
|
635
|
+
* Deprecated: Use `background` instead.
|
|
570
636
|
* @format COLOR_HEX
|
|
637
|
+
* @deprecated
|
|
571
638
|
*/
|
|
572
639
|
backgroundColor?: string | null;
|
|
573
640
|
/**
|
|
574
|
-
*
|
|
641
|
+
* Deprecated: Use `backgroundHover` instead.
|
|
575
642
|
* @format COLOR_HEX
|
|
643
|
+
* @deprecated
|
|
576
644
|
*/
|
|
577
645
|
backgroundColorHover?: string | null;
|
|
578
646
|
/** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */
|
|
579
647
|
buttonSize?: string | null;
|
|
648
|
+
/** Background styling (color or gradient). */
|
|
649
|
+
background?: Background;
|
|
650
|
+
/** Background styling for hover state (color or gradient). */
|
|
651
|
+
backgroundHover?: Background;
|
|
580
652
|
}
|
|
581
653
|
interface Link extends LinkDataOneOf {
|
|
582
654
|
/** The absolute URL for the linked document. */
|
|
@@ -1213,7 +1285,7 @@ interface OptionLayout {
|
|
|
1213
1285
|
/** Sets whether to display option images. Defaults to `false`. */
|
|
1214
1286
|
enableImage?: boolean | null;
|
|
1215
1287
|
}
|
|
1216
|
-
declare enum
|
|
1288
|
+
declare enum PollDesignBackgroundType {
|
|
1217
1289
|
/** Color background type */
|
|
1218
1290
|
COLOR = "COLOR",
|
|
1219
1291
|
/** Image background type */
|
|
@@ -1222,8 +1294,8 @@ declare enum BackgroundType {
|
|
|
1222
1294
|
GRADIENT = "GRADIENT"
|
|
1223
1295
|
}
|
|
1224
1296
|
/** @enumType */
|
|
1225
|
-
type
|
|
1226
|
-
interface
|
|
1297
|
+
type PollDesignBackgroundTypeWithLiterals = PollDesignBackgroundType | 'COLOR' | 'IMAGE' | 'GRADIENT';
|
|
1298
|
+
interface BackgroundGradient {
|
|
1227
1299
|
/** The gradient angle in degrees. */
|
|
1228
1300
|
angle?: number | null;
|
|
1229
1301
|
/**
|
|
@@ -1237,7 +1309,7 @@ interface Gradient {
|
|
|
1237
1309
|
*/
|
|
1238
1310
|
lastColor?: string | null;
|
|
1239
1311
|
}
|
|
1240
|
-
interface
|
|
1312
|
+
interface PollDesignBackground extends PollDesignBackgroundBackgroundOneOf {
|
|
1241
1313
|
/**
|
|
1242
1314
|
* The background color as a hexademical value.
|
|
1243
1315
|
* @format COLOR_HEX
|
|
@@ -1246,12 +1318,12 @@ interface Background extends BackgroundBackgroundOneOf {
|
|
|
1246
1318
|
/** An image to use for the background. */
|
|
1247
1319
|
image?: V1Media;
|
|
1248
1320
|
/** Details for a gradient background. */
|
|
1249
|
-
gradient?:
|
|
1321
|
+
gradient?: BackgroundGradient;
|
|
1250
1322
|
/** Background type. For each option, include the relevant details. */
|
|
1251
|
-
type?:
|
|
1323
|
+
type?: PollDesignBackgroundTypeWithLiterals;
|
|
1252
1324
|
}
|
|
1253
1325
|
/** @oneof */
|
|
1254
|
-
interface
|
|
1326
|
+
interface PollDesignBackgroundBackgroundOneOf {
|
|
1255
1327
|
/**
|
|
1256
1328
|
* The background color as a hexademical value.
|
|
1257
1329
|
* @format COLOR_HEX
|
|
@@ -1260,11 +1332,11 @@ interface BackgroundBackgroundOneOf {
|
|
|
1260
1332
|
/** An image to use for the background. */
|
|
1261
1333
|
image?: V1Media;
|
|
1262
1334
|
/** Details for a gradient background. */
|
|
1263
|
-
gradient?:
|
|
1335
|
+
gradient?: BackgroundGradient;
|
|
1264
1336
|
}
|
|
1265
1337
|
interface PollDesign {
|
|
1266
1338
|
/** Background styling. */
|
|
1267
|
-
background?:
|
|
1339
|
+
background?: PollDesignBackground;
|
|
1268
1340
|
/** Border radius in pixels. */
|
|
1269
1341
|
borderRadius?: number | null;
|
|
1270
1342
|
}
|
|
@@ -1947,12 +2019,13 @@ interface CaptionData {
|
|
|
1947
2019
|
}
|
|
1948
2020
|
interface LayoutData {
|
|
1949
2021
|
/**
|
|
1950
|
-
*
|
|
2022
|
+
* Deprecated: Use `background` instead.
|
|
1951
2023
|
* @format COLOR_HEX
|
|
2024
|
+
* @deprecated
|
|
1952
2025
|
*/
|
|
1953
2026
|
backgroundColor?: string | null;
|
|
1954
2027
|
/** Background image. */
|
|
1955
|
-
backgroundImage?:
|
|
2028
|
+
backgroundImage?: LayoutDataBackgroundImage;
|
|
1956
2029
|
/**
|
|
1957
2030
|
* Border color as a hexadecimal value.
|
|
1958
2031
|
* @format COLOR_HEX
|
|
@@ -1960,15 +2033,16 @@ interface LayoutData {
|
|
|
1960
2033
|
borderColor?: string | null;
|
|
1961
2034
|
/** Border width in pixels. */
|
|
1962
2035
|
borderWidth?: number | null;
|
|
1963
|
-
/** Border */
|
|
2036
|
+
/** Border radius in pixels. */
|
|
1964
2037
|
borderRadius?: number | null;
|
|
1965
2038
|
/**
|
|
1966
|
-
*
|
|
2039
|
+
* Deprecated: Use `backdrop` instead.
|
|
1967
2040
|
* @format COLOR_HEX
|
|
2041
|
+
* @deprecated
|
|
1968
2042
|
*/
|
|
1969
2043
|
backdropColor?: string | null;
|
|
1970
|
-
/** Backdrop image.
|
|
1971
|
-
backdropImage?:
|
|
2044
|
+
/** Backdrop image. */
|
|
2045
|
+
backdropImage?: LayoutDataBackgroundImage;
|
|
1972
2046
|
/** Backdrop top padding. */
|
|
1973
2047
|
backdropPaddingTop?: number | null;
|
|
1974
2048
|
/** Backdrop bottom padding */
|
|
@@ -1992,8 +2066,12 @@ interface LayoutData {
|
|
|
1992
2066
|
designTarget?: DesignTargetWithLiterals;
|
|
1993
2067
|
/** Banner configuration. When present, this layout is displayed as a banner. */
|
|
1994
2068
|
banner?: Banner;
|
|
2069
|
+
/** Background styling (color or gradient). */
|
|
2070
|
+
background?: LayoutDataBackground;
|
|
2071
|
+
/** Backdrop styling (color or gradient). */
|
|
2072
|
+
backdrop?: Backdrop;
|
|
1995
2073
|
}
|
|
1996
|
-
declare enum
|
|
2074
|
+
declare enum ImageScalingScaling {
|
|
1997
2075
|
/** Auto image scaling */
|
|
1998
2076
|
AUTO = "AUTO",
|
|
1999
2077
|
/** Contain image scaling */
|
|
@@ -2002,7 +2080,7 @@ declare enum Scaling {
|
|
|
2002
2080
|
COVER = "COVER"
|
|
2003
2081
|
}
|
|
2004
2082
|
/** @enumType */
|
|
2005
|
-
type
|
|
2083
|
+
type ImageScalingScalingWithLiterals = ImageScalingScaling | 'AUTO' | 'CONTAIN' | 'COVER';
|
|
2006
2084
|
declare enum ImagePosition {
|
|
2007
2085
|
/** Image positioned at the center */
|
|
2008
2086
|
CENTER = "CENTER",
|
|
@@ -2033,13 +2111,31 @@ declare enum BannerOrigin {
|
|
|
2033
2111
|
}
|
|
2034
2112
|
/** @enumType */
|
|
2035
2113
|
type BannerOriginWithLiterals = BannerOrigin | 'IMAGE' | 'LAYOUT';
|
|
2036
|
-
|
|
2114
|
+
/** Background type */
|
|
2115
|
+
declare enum LayoutDataBackgroundType {
|
|
2116
|
+
/** Solid color background */
|
|
2117
|
+
COLOR = "COLOR",
|
|
2118
|
+
/** Gradient background */
|
|
2119
|
+
GRADIENT = "GRADIENT"
|
|
2120
|
+
}
|
|
2121
|
+
/** @enumType */
|
|
2122
|
+
type LayoutDataBackgroundTypeWithLiterals = LayoutDataBackgroundType | 'COLOR' | 'GRADIENT';
|
|
2123
|
+
/** Backdrop type */
|
|
2124
|
+
declare enum BackdropType {
|
|
2125
|
+
/** Solid color backdrop */
|
|
2126
|
+
COLOR = "COLOR",
|
|
2127
|
+
/** Gradient backdrop */
|
|
2128
|
+
GRADIENT = "GRADIENT"
|
|
2129
|
+
}
|
|
2130
|
+
/** @enumType */
|
|
2131
|
+
type BackdropTypeWithLiterals = BackdropType | 'COLOR' | 'GRADIENT';
|
|
2132
|
+
interface LayoutDataBackgroundImage {
|
|
2037
2133
|
/** Background image. */
|
|
2038
2134
|
media?: V1Media;
|
|
2039
2135
|
/** Background image opacity. */
|
|
2040
2136
|
opacity?: number | null;
|
|
2041
2137
|
/** Background image scaling. */
|
|
2042
|
-
scaling?:
|
|
2138
|
+
scaling?: ImageScalingScalingWithLiterals;
|
|
2043
2139
|
/** Position of background. Defaults to `CENTER`. */
|
|
2044
2140
|
position?: ImagePositionWithLiterals;
|
|
2045
2141
|
}
|
|
@@ -2073,6 +2169,30 @@ interface Banner {
|
|
|
2073
2169
|
/** Origin of the banner */
|
|
2074
2170
|
origin?: BannerOriginWithLiterals;
|
|
2075
2171
|
}
|
|
2172
|
+
/** Background styling (color or gradient) */
|
|
2173
|
+
interface LayoutDataBackground {
|
|
2174
|
+
/** Background type. */
|
|
2175
|
+
type?: LayoutDataBackgroundTypeWithLiterals;
|
|
2176
|
+
/**
|
|
2177
|
+
* Background color as a hexadecimal value.
|
|
2178
|
+
* @format COLOR_HEX
|
|
2179
|
+
*/
|
|
2180
|
+
color?: string | null;
|
|
2181
|
+
/** Gradient configuration. */
|
|
2182
|
+
gradient?: Gradient;
|
|
2183
|
+
}
|
|
2184
|
+
/** Backdrop styling (color or gradient) */
|
|
2185
|
+
interface Backdrop {
|
|
2186
|
+
/** Backdrop type. */
|
|
2187
|
+
type?: BackdropTypeWithLiterals;
|
|
2188
|
+
/**
|
|
2189
|
+
* Backdrop color as a hexadecimal value.
|
|
2190
|
+
* @format COLOR_HEX
|
|
2191
|
+
*/
|
|
2192
|
+
color?: string | null;
|
|
2193
|
+
/** Gradient configuration. */
|
|
2194
|
+
gradient?: Gradient;
|
|
2195
|
+
}
|
|
2076
2196
|
interface LayoutCellData {
|
|
2077
2197
|
/** Size of the cell in 12 columns grid. */
|
|
2078
2198
|
colSpan?: number | null;
|
|
@@ -2094,6 +2214,75 @@ interface ShapeDataStyles {
|
|
|
2094
2214
|
/** Map of original color keys to their new color values. */
|
|
2095
2215
|
colors?: Record<string, string>;
|
|
2096
2216
|
}
|
|
2217
|
+
interface CardData {
|
|
2218
|
+
/** Background styling (color or gradient). */
|
|
2219
|
+
background?: CardDataBackground;
|
|
2220
|
+
/** Background image. */
|
|
2221
|
+
backgroundImage?: BackgroundImage;
|
|
2222
|
+
}
|
|
2223
|
+
declare enum Scaling {
|
|
2224
|
+
/** Auto image scaling */
|
|
2225
|
+
AUTO = "AUTO",
|
|
2226
|
+
/** Contain image scaling */
|
|
2227
|
+
CONTAIN = "CONTAIN",
|
|
2228
|
+
/** Cover image scaling */
|
|
2229
|
+
COVER = "COVER"
|
|
2230
|
+
}
|
|
2231
|
+
/** @enumType */
|
|
2232
|
+
type ScalingWithLiterals = Scaling | 'AUTO' | 'CONTAIN' | 'COVER';
|
|
2233
|
+
declare enum ImagePositionPosition {
|
|
2234
|
+
/** Image positioned at the center */
|
|
2235
|
+
CENTER = "CENTER",
|
|
2236
|
+
/** Image positioned on the left */
|
|
2237
|
+
CENTER_LEFT = "CENTER_LEFT",
|
|
2238
|
+
/** Image positioned on the right */
|
|
2239
|
+
CENTER_RIGHT = "CENTER_RIGHT",
|
|
2240
|
+
/** Image positioned at the center top */
|
|
2241
|
+
TOP = "TOP",
|
|
2242
|
+
/** Image positioned at the top left */
|
|
2243
|
+
TOP_LEFT = "TOP_LEFT",
|
|
2244
|
+
/** Image positioned at the top right */
|
|
2245
|
+
TOP_RIGHT = "TOP_RIGHT",
|
|
2246
|
+
/** Image positioned at the center bottom */
|
|
2247
|
+
BOTTOM = "BOTTOM",
|
|
2248
|
+
/** Image positioned at the bottom left */
|
|
2249
|
+
BOTTOM_LEFT = "BOTTOM_LEFT",
|
|
2250
|
+
/** Image positioned at the bottom right */
|
|
2251
|
+
BOTTOM_RIGHT = "BOTTOM_RIGHT"
|
|
2252
|
+
}
|
|
2253
|
+
/** @enumType */
|
|
2254
|
+
type ImagePositionPositionWithLiterals = ImagePositionPosition | 'CENTER' | 'CENTER_LEFT' | 'CENTER_RIGHT' | 'TOP' | 'TOP_LEFT' | 'TOP_RIGHT' | 'BOTTOM' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT';
|
|
2255
|
+
/** Background type */
|
|
2256
|
+
declare enum CardDataBackgroundType {
|
|
2257
|
+
/** Solid color background */
|
|
2258
|
+
COLOR = "COLOR",
|
|
2259
|
+
/** Gradient background */
|
|
2260
|
+
GRADIENT = "GRADIENT"
|
|
2261
|
+
}
|
|
2262
|
+
/** @enumType */
|
|
2263
|
+
type CardDataBackgroundTypeWithLiterals = CardDataBackgroundType | 'COLOR' | 'GRADIENT';
|
|
2264
|
+
/** Background styling (color or gradient) */
|
|
2265
|
+
interface CardDataBackground {
|
|
2266
|
+
/** Background type. */
|
|
2267
|
+
type?: CardDataBackgroundTypeWithLiterals;
|
|
2268
|
+
/**
|
|
2269
|
+
* Background color as a hexadecimal value.
|
|
2270
|
+
* @format COLOR_HEX
|
|
2271
|
+
*/
|
|
2272
|
+
color?: string | null;
|
|
2273
|
+
/** Gradient configuration. */
|
|
2274
|
+
gradient?: Gradient;
|
|
2275
|
+
}
|
|
2276
|
+
interface BackgroundImage {
|
|
2277
|
+
/** Background image. */
|
|
2278
|
+
media?: V1Media;
|
|
2279
|
+
/** Background image opacity. */
|
|
2280
|
+
opacity?: number | null;
|
|
2281
|
+
/** Background image scaling. */
|
|
2282
|
+
scaling?: ScalingWithLiterals;
|
|
2283
|
+
/** Position of background. Defaults to `CENTER`. */
|
|
2284
|
+
position?: ImagePositionPositionWithLiterals;
|
|
2285
|
+
}
|
|
2097
2286
|
interface Metadata {
|
|
2098
2287
|
/** Schema version. */
|
|
2099
2288
|
version?: number;
|
|
@@ -4107,4 +4296,4 @@ declare const utils: {
|
|
|
4107
4296
|
*/
|
|
4108
4297
|
declare function publishDraftPost(draftPostId: string): Promise<NonNullablePaths<PublishDraftPostResponse, `postId`, 2>>;
|
|
4109
4298
|
|
|
4110
|
-
export { type AccountInfo, type AccountInfoMetadata, Action, type ActionEvent, type ActionWithLiterals, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, type ApplicationError, type ApproveDraftPostRequest, type ApproveDraftPostResponse, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type
|
|
4299
|
+
export { type AccountInfo, type AccountInfoMetadata, Action, type ActionEvent, type ActionWithLiterals, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, type ApplicationError, type ApproveDraftPostRequest, type ApproveDraftPostResponse, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Backdrop, BackdropType, type BackdropTypeWithLiterals, type Background, type BackgroundGradient, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type Banner, BannerOrigin, type BannerOriginWithLiterals, type BaseEventMetadata, type BlockquoteData, type BlogPaging, type BookingData, type Border, type BorderColors, type BorderWidths, type BulkActionMetadata, type BulkCreateDraftPostsOptions, type BulkCreateDraftPostsRequest, type BulkCreateDraftPostsResponse, type BulkDeleteDraftPostsOptions, type BulkDeleteDraftPostsRequest, type BulkDeleteDraftPostsResponse, type BulkDraftPostResult, type BulkRejectDraftPostRequest, type BulkRejectDraftPostResponse, type BulkRevertToUnpublishedRequest, type BulkRevertToUnpublishedResponse, type BulkUpdateDraftPostsOptions, type BulkUpdateDraftPostsRequest, type BulkUpdateDraftPostsResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardData, type CardDataBackground, CardDataBackgroundType, type CardDataBackgroundTypeWithLiterals, type CardStyles, CardStylesType, type CardStylesTypeWithLiterals, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, type CommonQueryWithEntityContext, type CreateDraftPostOptions, type CreateDraftPostRequest, type CreateDraftPostResponse, Crop, type CropWithLiterals, type CursorPaging, type Cursors, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeleteDraftPostOptions, type DeleteDraftPostRequest, type DeleteDraftPostResponse, type Design, DesignTarget, type DesignTargetWithLiterals, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type DraftCategoriesUpdated, type DraftCreatedEnvelope, type DraftDeletedEnvelope, type DraftPost, type DraftPostCount, type DraftPostOwnerChanged, type DraftPostQuery, type DraftPostQuerySpec, type DraftPostTranslation, type DraftPostsQueryBuilder, type DraftPostsQueryResult, type DraftTagsUpdated, type DraftUpdatedEnvelope, type EmbedData, type EmbedMedia, type EmbedThumbnail, type EmbedVideo, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventData, type EventMetadata, Field, type FieldWithLiterals, type FileData, type FileSource, type FileSourceDataOneOf, type FocalPoint, type FontFamilyData, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetDeletedDraftPostRequest, type GetDeletedDraftPostResponse, type GetDraftPostCountsRequest, type GetDraftPostCountsResponse, type GetDraftPostOptions, type GetDraftPostRequest, type GetDraftPostResponse, type GetDraftPostTotalsRequest, type GetDraftPostTotalsResponse, GetDraftPostsSort, type GetDraftPostsSortWithLiterals, type Gradient, GradientType, type GradientTypeWithLiterals, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, ImagePosition, ImagePositionPosition, type ImagePositionPositionWithLiterals, type ImagePositionWithLiterals, ImageScalingScaling, type ImageScalingScalingWithLiterals, type ImageStyles, type InitialDraftPostsCopied, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type IsDraftPostAutoTranslatableRequest, type IsDraftPostAutoTranslatableResponse, type Item, type ItemDataOneOf, type ItemMetadata, type ItemStyle, type Keyword, Layout, type LayoutCellData, type LayoutData, type LayoutDataBackground, type LayoutDataBackgroundImage, LayoutDataBackgroundType, type LayoutDataBackgroundTypeWithLiterals, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListDeletedDraftPostsOptions, type ListDeletedDraftPostsRequest, type ListDeletedDraftPostsResponse, type ListDraftPostsOptions, type ListDraftPostsRequest, type ListDraftPostsResponse, type ListValue, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type MarkPostAsInModerationRequest, type MarkPostAsInModerationResponse, type MaskedDraftPosts, type Media, type MediaMediaOneOf, type MentionData, type MessageEnvelope, type MetaData, type Metadata, type ModerationDetails, ModerationStatusStatus, type ModerationStatusStatusWithLiterals, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Oembed, type Option, type OptionDesign, type OptionLayout, type OrderedListData, Orientation, type OrientationWithLiterals, Origin, type OriginWithLiterals, type PDFSettings, type Paging, type PagingMetadataV2, type ParagraphData, type Permissions, Placement, type PlacementWithLiterals, type PlatformQuery, type PlatformQueryPagingMethodOneOf, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollDesignBackground, type PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, type PollDesignBackgroundTypeWithLiterals, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, type PollSettings, Position, type PositionWithLiterals, type PricingData, type PublishDraftPostRequest, type PublishDraftPostResponse, type QueryDraftPostsOptions, type QueryDraftPostsRequest, type QueryDraftPostsResponse, type RejectDraftPostRequest, type RejectDraftPostResponse, type Rel, type RemoveFromTrashBinRequest, type RemoveFromTrashBinResponse, Resizing, type ResizingWithLiterals, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RestoreFromTrashBinRequest, type RestoreFromTrashBinResponse, type RestoreInfo, type RevertToUnpublishedRequest, type RevertToUnpublishedResponse, type RibbonStyles, type RichContent, Scaling, type ScalingWithLiterals, type SeoSchema, type Settings, type ShapeData, type ShapeDataStyles, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type Stop, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, type Tag, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type TotalDraftPosts, TotalDraftPostsGroupingField, type TotalDraftPostsGroupingFieldWithLiterals, type TranslateDraftRequest, type TranslateDraftResponse, Type, type TypeWithLiterals, type UnpublishPostRequest, type UnpublishPostResponse, type UpdateDraftPost, type UpdateDraftPostContentRequest, type UpdateDraftPostContentResponse, type UpdateDraftPostLanguageRequest, type UpdateDraftPostLanguageResponse, type UpdateDraftPostOptions, type UpdateDraftPostRequest, type UpdateDraftPostResponse, type V1Media, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, type VideoResolution, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, type WixMedia, bulkCreateDraftPosts, bulkDeleteDraftPosts, bulkUpdateDraftPosts, createDraftPost, deleteDraftPost, getDeletedDraftPost, getDraftPost, listDeletedDraftPosts, listDraftPosts, onDraftCreated, onDraftDeleted, onDraftUpdated, publishDraftPost, queryDraftPosts, removeFromTrashBin, restoreFromTrashBin, typedQueryDraftPosts, updateDraftPost, utils };
|