@wix/auto_sdk_rich-content_ricos-documents 1.0.21 → 1.0.23
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 +14 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +39 -3
- package/build/cjs/index.typings.js +14 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +39 -3
- package/build/cjs/meta.js +14 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +13 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +39 -3
- package/build/es/index.typings.mjs +13 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +39 -3
- package/build/es/meta.mjs +13 -3
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +14 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +39 -3
- package/build/internal/cjs/index.typings.js +14 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +39 -3
- package/build/internal/cjs/meta.js +14 -3
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +13 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +39 -3
- package/build/internal/es/index.typings.mjs +13 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +39 -3
- package/build/internal/es/meta.mjs +13 -3
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -143,6 +143,8 @@ interface Node extends NodeDataOneOf {
|
|
|
143
143
|
layoutData?: LayoutData;
|
|
144
144
|
/** Data for a cell node. */
|
|
145
145
|
layoutCellData?: LayoutCellData;
|
|
146
|
+
/** Data for a shape node. */
|
|
147
|
+
shapeData?: ShapeData;
|
|
146
148
|
/** 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. */
|
|
147
149
|
type?: NodeTypeWithLiterals;
|
|
148
150
|
/** Node ID. */
|
|
@@ -210,6 +212,8 @@ interface NodeDataOneOf {
|
|
|
210
212
|
layoutData?: LayoutData;
|
|
211
213
|
/** Data for a cell node. */
|
|
212
214
|
layoutCellData?: LayoutCellData;
|
|
215
|
+
/** Data for a shape node. */
|
|
216
|
+
shapeData?: ShapeData;
|
|
213
217
|
}
|
|
214
218
|
declare enum NodeType {
|
|
215
219
|
PARAGRAPH = "PARAGRAPH",
|
|
@@ -245,10 +249,11 @@ declare enum NodeType {
|
|
|
245
249
|
AUDIO = "AUDIO",
|
|
246
250
|
CAPTION = "CAPTION",
|
|
247
251
|
LAYOUT = "LAYOUT",
|
|
248
|
-
LAYOUT_CELL = "LAYOUT_CELL"
|
|
252
|
+
LAYOUT_CELL = "LAYOUT_CELL",
|
|
253
|
+
SHAPE = "SHAPE"
|
|
249
254
|
}
|
|
250
255
|
/** @enumType */
|
|
251
|
-
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';
|
|
256
|
+
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';
|
|
252
257
|
interface NodeStyle {
|
|
253
258
|
/** The top padding value in pixels. */
|
|
254
259
|
paddingTop?: string | null;
|
|
@@ -1842,6 +1847,8 @@ interface LayoutData {
|
|
|
1842
1847
|
containerData?: PluginContainerData;
|
|
1843
1848
|
/** Defines where selected design propertied applies to */
|
|
1844
1849
|
designTarget?: DesignTargetWithLiterals;
|
|
1850
|
+
/** Banner configuration. When present, this layout is displayed as a banner. */
|
|
1851
|
+
banner?: Banner;
|
|
1845
1852
|
}
|
|
1846
1853
|
declare enum Scaling {
|
|
1847
1854
|
/** Auto image scaling */
|
|
@@ -1875,6 +1882,14 @@ declare enum ImagePosition {
|
|
|
1875
1882
|
}
|
|
1876
1883
|
/** @enumType */
|
|
1877
1884
|
type ImagePositionWithLiterals = ImagePosition | 'CENTER' | 'CENTER_LEFT' | 'CENTER_RIGHT' | 'TOP' | 'TOP_LEFT' | 'TOP_RIGHT' | 'BOTTOM' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT';
|
|
1885
|
+
declare enum Origin {
|
|
1886
|
+
/** Banner originated from an image */
|
|
1887
|
+
IMAGE = "IMAGE",
|
|
1888
|
+
/** Banner originated from a layout */
|
|
1889
|
+
LAYOUT = "LAYOUT"
|
|
1890
|
+
}
|
|
1891
|
+
/** @enumType */
|
|
1892
|
+
type OriginWithLiterals = Origin | 'IMAGE' | 'LAYOUT';
|
|
1878
1893
|
interface BackgroundImage {
|
|
1879
1894
|
/** Background image. */
|
|
1880
1895
|
media?: Media;
|
|
@@ -1911,10 +1926,31 @@ declare enum DesignTarget {
|
|
|
1911
1926
|
}
|
|
1912
1927
|
/** @enumType */
|
|
1913
1928
|
type DesignTargetWithLiterals = DesignTarget | 'LAYOUT' | 'CELL';
|
|
1929
|
+
interface Banner {
|
|
1930
|
+
/** Origin of the banner */
|
|
1931
|
+
origin?: OriginWithLiterals;
|
|
1932
|
+
}
|
|
1914
1933
|
interface LayoutCellData {
|
|
1915
1934
|
/** Size of the cell in 12 columns grid. */
|
|
1916
1935
|
colSpan?: number | null;
|
|
1917
1936
|
}
|
|
1937
|
+
interface ShapeData {
|
|
1938
|
+
/** Styling for the shape's container. */
|
|
1939
|
+
containerData?: PluginContainerData;
|
|
1940
|
+
/** Shape file details. */
|
|
1941
|
+
shape?: Media;
|
|
1942
|
+
/** Styling for the shape. */
|
|
1943
|
+
styles?: ShapeDataStyles;
|
|
1944
|
+
}
|
|
1945
|
+
interface ShapeDataStyles {
|
|
1946
|
+
/**
|
|
1947
|
+
* Shape fill color as a hexadecimal value.
|
|
1948
|
+
* @format COLOR_HEX
|
|
1949
|
+
*/
|
|
1950
|
+
color?: string | null;
|
|
1951
|
+
/** Map of original color keys to their new color values. */
|
|
1952
|
+
colors?: Record<string, string>;
|
|
1953
|
+
}
|
|
1918
1954
|
interface Metadata {
|
|
1919
1955
|
/** Schema version. */
|
|
1920
1956
|
version?: number;
|
|
@@ -2163,4 +2199,4 @@ interface ConvertFromRicosDocumentOptionsOptionsOneOf {
|
|
|
2163
2199
|
plainTextOptions?: PlainTextOptions;
|
|
2164
2200
|
}
|
|
2165
2201
|
|
|
2166
|
-
export { Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type BlockquoteData, type BookingData, type Border, type BorderColors, type BorderWidths, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, type ConvertFromRicosDocumentOptions, type ConvertFromRicosDocumentOptionsOptionsOneOf, type ConvertFromRicosDocumentRequest, type ConvertFromRicosDocumentRequestOptionsOneOf, type ConvertFromRicosDocumentResponse, type ConvertFromRicosDocumentResponseResultOneOf, type ConvertToRicosDocumentOptions, type ConvertToRicosDocumentOptionsSourceOneOf, type ConvertToRicosDocumentRequest, type ConvertToRicosDocumentRequestSourceOneOf, type ConvertToRicosDocumentResponse, Crop, type CropWithLiterals, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type Design, DesignTarget, type DesignTargetWithLiterals, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type EmbedData, type EventData, type FileData, type FileSource, type FileSourceDataOneOf, type FontFamilyData, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type Image, type ImageData, type ImageDataStyles, ImagePosition, type ImagePositionWithLiterals, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type Item, type ItemDataOneOf, type ItemStyle, Layout, type LayoutCellData, type LayoutData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListValue, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MentionData, type Metadata, 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, type PDFSettings, type ParagraphData, type Permissions, Placement, type PlacementWithLiterals, type PlainTextOptions, type PlaybackOptions, Plugin, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type PluginWithLiterals, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, Position, type PositionWithLiterals, type PricingData, type Rel, Resizing, type ResizingWithLiterals, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RibbonStyles, type RichContent, type RicosDocumentOptions, type RicosDocumentPlaceholder, type RicosDocumentViolation, Scaling, type ScalingWithLiterals, type Settings, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, Target, TargetFormat, type TargetFormatWithLiterals, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, Type, type TypeWithLiterals, type ValidateDocumentOptions, type ValidateDocumentRequest, type ValidateDocumentResponse, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, convertFromRicosDocument, convertToRicosDocument, validateDocument };
|
|
2202
|
+
export { Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type Banner, type BlockquoteData, type BookingData, type Border, type BorderColors, type BorderWidths, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, type ConvertFromRicosDocumentOptions, type ConvertFromRicosDocumentOptionsOptionsOneOf, type ConvertFromRicosDocumentRequest, type ConvertFromRicosDocumentRequestOptionsOneOf, type ConvertFromRicosDocumentResponse, type ConvertFromRicosDocumentResponseResultOneOf, type ConvertToRicosDocumentOptions, type ConvertToRicosDocumentOptionsSourceOneOf, type ConvertToRicosDocumentRequest, type ConvertToRicosDocumentRequestSourceOneOf, type ConvertToRicosDocumentResponse, Crop, type CropWithLiterals, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type Design, DesignTarget, type DesignTargetWithLiterals, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type EmbedData, type EventData, type FileData, type FileSource, type FileSourceDataOneOf, type FontFamilyData, type FontSizeData, FontType, type FontTypeWithLiterals, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type Gradient, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type Image, type ImageData, type ImageDataStyles, ImagePosition, type ImagePositionWithLiterals, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type Item, type ItemDataOneOf, type ItemStyle, Layout, type LayoutCellData, type LayoutData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListValue, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MentionData, type Metadata, 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 ParagraphData, type Permissions, Placement, type PlacementWithLiterals, type PlainTextOptions, type PlaybackOptions, Plugin, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type PluginWithLiterals, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, Position, type PositionWithLiterals, type PricingData, type Rel, Resizing, type ResizingWithLiterals, ResponsivenessBehaviour, type ResponsivenessBehaviourWithLiterals, type RibbonStyles, type RichContent, type RicosDocumentOptions, type RicosDocumentPlaceholder, type RicosDocumentViolation, Scaling, type ScalingWithLiterals, type Settings, type ShapeData, type ShapeDataStyles, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type TableCellData, type TableData, Target, TargetFormat, type TargetFormatWithLiterals, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, Type, type TypeWithLiterals, type ValidateDocumentOptions, type ValidateDocumentRequest, type ValidateDocumentResponse, VerticalAlignment, VerticalAlignmentAlignment, type VerticalAlignmentAlignmentWithLiterals, type VerticalAlignmentWithLiterals, type Video, type VideoData, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, convertFromRicosDocument, convertToRicosDocument, validateDocument };
|
|
@@ -110,7 +110,8 @@ function validateDocument(payload) {
|
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
path: "validDocument.nodes.layoutData.backdropImage.media.duration"
|
|
113
|
-
}
|
|
113
|
+
},
|
|
114
|
+
{ path: "validDocument.nodes.shapeData.shape.duration" }
|
|
114
115
|
]
|
|
115
116
|
},
|
|
116
117
|
{
|
|
@@ -170,7 +171,8 @@ function convertToRicosDocument(payload) {
|
|
|
170
171
|
},
|
|
171
172
|
{
|
|
172
173
|
path: "document.nodes.layoutData.backdropImage.media.duration"
|
|
173
|
-
}
|
|
174
|
+
},
|
|
175
|
+
{ path: "document.nodes.shapeData.shape.duration" }
|
|
174
176
|
]
|
|
175
177
|
},
|
|
176
178
|
{
|
|
@@ -210,7 +212,8 @@ function convertFromRicosDocument(payload) {
|
|
|
210
212
|
{ path: "document.nodes.audioData.audio.duration" },
|
|
211
213
|
{ path: "document.nodes.audioData.coverImage.duration" },
|
|
212
214
|
{ path: "document.nodes.layoutData.backgroundImage.media.duration" },
|
|
213
|
-
{ path: "document.nodes.layoutData.backdropImage.media.duration" }
|
|
215
|
+
{ path: "document.nodes.layoutData.backdropImage.media.duration" },
|
|
216
|
+
{ path: "document.nodes.shapeData.shape.duration" }
|
|
214
217
|
]
|
|
215
218
|
},
|
|
216
219
|
{
|
|
@@ -308,6 +311,7 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
|
308
311
|
NodeType2["CAPTION"] = "CAPTION";
|
|
309
312
|
NodeType2["LAYOUT"] = "LAYOUT";
|
|
310
313
|
NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
|
|
314
|
+
NodeType2["SHAPE"] = "SHAPE";
|
|
311
315
|
return NodeType2;
|
|
312
316
|
})(NodeType || {});
|
|
313
317
|
var WidthType = /* @__PURE__ */ ((WidthType2) => {
|
|
@@ -555,6 +559,11 @@ var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
|
|
|
555
559
|
ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
|
|
556
560
|
return ImagePosition2;
|
|
557
561
|
})(ImagePosition || {});
|
|
562
|
+
var Origin = /* @__PURE__ */ ((Origin2) => {
|
|
563
|
+
Origin2["IMAGE"] = "IMAGE";
|
|
564
|
+
Origin2["LAYOUT"] = "LAYOUT";
|
|
565
|
+
return Origin2;
|
|
566
|
+
})(Origin || {});
|
|
558
567
|
var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
|
|
559
568
|
VerticalAlignmentAlignment2["TOP"] = "TOP";
|
|
560
569
|
VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
|
|
@@ -695,6 +704,7 @@ export {
|
|
|
695
704
|
NodeType,
|
|
696
705
|
NullValue,
|
|
697
706
|
Orientation,
|
|
707
|
+
Origin,
|
|
698
708
|
Placement,
|
|
699
709
|
Plugin,
|
|
700
710
|
PluginContainerDataAlignment,
|