@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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +14 -3
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +39 -3
  5. package/build/cjs/index.typings.js +14 -3
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +39 -3
  8. package/build/cjs/meta.js +14 -3
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +13 -3
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +39 -3
  14. package/build/es/index.typings.mjs +13 -3
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +39 -3
  17. package/build/es/meta.mjs +13 -3
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +14 -3
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +39 -3
  23. package/build/internal/cjs/index.typings.js +14 -3
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +39 -3
  26. package/build/internal/cjs/meta.js +14 -3
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +13 -3
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +39 -3
  32. package/build/internal/es/index.typings.mjs +13 -3
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +39 -3
  35. package/build/internal/es/meta.mjs +13 -3
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. 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 };
@@ -41,6 +41,7 @@ __export(index_typings_exports, {
41
41
  NodeType: () => NodeType,
42
42
  NullValue: () => NullValue,
43
43
  Orientation: () => Orientation,
44
+ Origin: () => Origin,
44
45
  Placement: () => Placement,
45
46
  Plugin: () => Plugin,
46
47
  PluginContainerDataAlignment: () => PluginContainerDataAlignment,
@@ -179,7 +180,8 @@ function validateDocument(payload) {
179
180
  },
180
181
  {
181
182
  path: "validDocument.nodes.layoutData.backdropImage.media.duration"
182
- }
183
+ },
184
+ { path: "validDocument.nodes.shapeData.shape.duration" }
183
185
  ]
184
186
  },
185
187
  {
@@ -239,7 +241,8 @@ function convertToRicosDocument(payload) {
239
241
  },
240
242
  {
241
243
  path: "document.nodes.layoutData.backdropImage.media.duration"
242
- }
244
+ },
245
+ { path: "document.nodes.shapeData.shape.duration" }
243
246
  ]
244
247
  },
245
248
  {
@@ -279,7 +282,8 @@ function convertFromRicosDocument(payload) {
279
282
  { path: "document.nodes.audioData.audio.duration" },
280
283
  { path: "document.nodes.audioData.coverImage.duration" },
281
284
  { path: "document.nodes.layoutData.backgroundImage.media.duration" },
282
- { path: "document.nodes.layoutData.backdropImage.media.duration" }
285
+ { path: "document.nodes.layoutData.backdropImage.media.duration" },
286
+ { path: "document.nodes.shapeData.shape.duration" }
283
287
  ]
284
288
  },
285
289
  {
@@ -377,6 +381,7 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
377
381
  NodeType2["CAPTION"] = "CAPTION";
378
382
  NodeType2["LAYOUT"] = "LAYOUT";
379
383
  NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
384
+ NodeType2["SHAPE"] = "SHAPE";
380
385
  return NodeType2;
381
386
  })(NodeType || {});
382
387
  var WidthType = /* @__PURE__ */ ((WidthType2) => {
@@ -624,6 +629,11 @@ var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
624
629
  ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
625
630
  return ImagePosition2;
626
631
  })(ImagePosition || {});
632
+ var Origin = /* @__PURE__ */ ((Origin2) => {
633
+ Origin2["IMAGE"] = "IMAGE";
634
+ Origin2["LAYOUT"] = "LAYOUT";
635
+ return Origin2;
636
+ })(Origin || {});
627
637
  var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
628
638
  VerticalAlignmentAlignment2["TOP"] = "TOP";
629
639
  VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
@@ -765,6 +775,7 @@ async function convertFromRicosDocument2(document, targetFormat, options) {
765
775
  NodeType,
766
776
  NullValue,
767
777
  Orientation,
778
+ Origin,
768
779
  Placement,
769
780
  Plugin,
770
781
  PluginContainerDataAlignment,