@wix/auto_sdk_multilingual_machine-translation 1.0.30 → 1.0.31

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 +61 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +109 -3
  5. package/build/cjs/index.typings.js +61 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +109 -3
  8. package/build/cjs/meta.js +61 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +57 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +109 -3
  14. package/build/es/index.typings.mjs +57 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +109 -3
  17. package/build/es/meta.mjs +57 -0
  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 +61 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +109 -3
  23. package/build/internal/cjs/index.typings.js +61 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +109 -3
  26. package/build/internal/cjs/meta.js +61 -0
  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 +57 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +109 -3
  32. package/build/internal/es/index.typings.mjs +57 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +109 -3
  35. package/build/internal/es/meta.mjs +57 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -119,7 +119,9 @@ interface Node extends NodeDataOneOf {
119
119
  blockquoteData?: BlockquoteData;
120
120
  /** Data for a caption node. */
121
121
  captionData?: CaptionData;
122
- /** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
122
+ /** Data for a layout node. Reserved for future use. */
123
+ layoutData?: LayoutData;
124
+ /** Data for a cell node. */
123
125
  layoutCellData?: LayoutCellData;
124
126
  /** 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. */
125
127
  type?: NodeTypeWithLiterals;
@@ -184,7 +186,9 @@ interface NodeDataOneOf {
184
186
  blockquoteData?: BlockquoteData;
185
187
  /** Data for a caption node. */
186
188
  captionData?: CaptionData;
187
- /** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
189
+ /** Data for a layout node. Reserved for future use. */
190
+ layoutData?: LayoutData;
191
+ /** Data for a cell node. */
188
192
  layoutCellData?: LayoutCellData;
189
193
  }
190
194
  declare enum NodeType {
@@ -1741,6 +1745,108 @@ interface BlockquoteData {
1741
1745
  interface CaptionData {
1742
1746
  textStyle?: TextStyle;
1743
1747
  }
1748
+ interface LayoutData {
1749
+ /**
1750
+ * Background color as a hexadecimal value.
1751
+ * @format COLOR_HEX
1752
+ */
1753
+ backgroundColor?: string | null;
1754
+ /** Background image. */
1755
+ backgroundImage?: BackgroundImage;
1756
+ /**
1757
+ * Border color as a hexadecimal value.
1758
+ * @format COLOR_HEX
1759
+ */
1760
+ borderColor?: string | null;
1761
+ /** Border width in pixels. */
1762
+ borderWidth?: number | null;
1763
+ /** Border */
1764
+ borderRadius?: number | null;
1765
+ /**
1766
+ * Backdrop color as a hexadecimal value.
1767
+ * @format COLOR_HEX
1768
+ */
1769
+ backdropColor?: string | null;
1770
+ /** Backdrop image.radius in pixels. */
1771
+ backdropImage?: BackgroundImage;
1772
+ /** Backdrop top padding. */
1773
+ backdropPaddingTop?: number | null;
1774
+ /** Backdrop bottom padding */
1775
+ backdropPaddingBottom?: number | null;
1776
+ /** Horizontal and vertical gap between columns */
1777
+ gap?: number | null;
1778
+ /**
1779
+ * Padding in pixels for cells. Follows CSS order: top, right, bottom, left
1780
+ * @maxSize 4
1781
+ */
1782
+ cellPadding?: number[];
1783
+ /** Vertical alignment for the cell's items. */
1784
+ cellVerticalAlignment?: VerticalAlignmentAlignmentWithLiterals;
1785
+ /** Responsiveness behaviour of columns when responsiveness applies. Either stacks or wrappers. */
1786
+ responsivenessBehaviour?: ResponsivenessBehaviourWithLiterals;
1787
+ /** Size in pixels when responsiveness_behaviour applies */
1788
+ responsivenessBreakpoint?: number | null;
1789
+ }
1790
+ declare enum Scaling {
1791
+ /** Auto image scaling */
1792
+ AUTO = "AUTO",
1793
+ /** Contain image scaling */
1794
+ CONTAIN = "CONTAIN",
1795
+ /** Cover image scaling */
1796
+ COVER = "COVER"
1797
+ }
1798
+ /** @enumType */
1799
+ type ScalingWithLiterals = Scaling | 'AUTO' | 'CONTAIN' | 'COVER';
1800
+ declare enum ImagePosition {
1801
+ /** Image positioned at the center */
1802
+ CENTER = "CENTER",
1803
+ /** Image positioned on the left */
1804
+ CENTER_LEFT = "CENTER_LEFT",
1805
+ /** Image positioned on the right */
1806
+ CENTER_RIGHT = "CENTER_RIGHT",
1807
+ /** Image positioned at the center top */
1808
+ TOP = "TOP",
1809
+ /** Image positioned at the top left */
1810
+ TOP_LEFT = "TOP_LEFT",
1811
+ /** Image positioned at the top right */
1812
+ TOP_RIGHT = "TOP_RIGHT",
1813
+ /** Image positioned at the center bottom */
1814
+ BOTTOM = "BOTTOM",
1815
+ /** Image positioned at the bottom left */
1816
+ BOTTOM_LEFT = "BOTTOM_LEFT",
1817
+ /** Image positioned at the bottom right */
1818
+ BOTTOM_RIGHT = "BOTTOM_RIGHT"
1819
+ }
1820
+ /** @enumType */
1821
+ type ImagePositionWithLiterals = ImagePosition | 'CENTER' | 'CENTER_LEFT' | 'CENTER_RIGHT' | 'TOP' | 'TOP_LEFT' | 'TOP_RIGHT' | 'BOTTOM' | 'BOTTOM_LEFT' | 'BOTTOM_RIGHT';
1822
+ interface BackgroundImage {
1823
+ /** Background image. */
1824
+ media?: Media;
1825
+ /** Background image opacity. */
1826
+ opacity?: number | null;
1827
+ /** Background image scaling. */
1828
+ scaling?: ScalingWithLiterals;
1829
+ /** Position of background. Defaults to `CENTER`. */
1830
+ position?: ImagePositionWithLiterals;
1831
+ }
1832
+ declare enum VerticalAlignmentAlignment {
1833
+ /** Top alignment */
1834
+ TOP = "TOP",
1835
+ /** Middle alignment */
1836
+ MIDDLE = "MIDDLE",
1837
+ /** Bottom alignment */
1838
+ BOTTOM = "BOTTOM"
1839
+ }
1840
+ /** @enumType */
1841
+ type VerticalAlignmentAlignmentWithLiterals = VerticalAlignmentAlignment | 'TOP' | 'MIDDLE' | 'BOTTOM';
1842
+ declare enum ResponsivenessBehaviour {
1843
+ /** Stacking of columns */
1844
+ STACK = "STACK",
1845
+ /** Wrapping of columns */
1846
+ WRAP = "WRAP"
1847
+ }
1848
+ /** @enumType */
1849
+ type ResponsivenessBehaviourWithLiterals = ResponsivenessBehaviour | 'STACK' | 'WRAP';
1744
1850
  interface LayoutCellData {
1745
1851
  /** Size of the cell in 12 columns grid. */
1746
1852
  colSpan?: number | null;
@@ -2264,4 +2370,4 @@ interface BulkMachineTranslateOptions {
2264
2370
  contentToTranslate?: TranslatableContent[];
2265
2371
  }
2266
2372
 
2267
- export { Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, type ApplicationError, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, BackgroundType, type BackgroundTypeWithLiterals, type BlockquoteData, type BookingData, type Border, type BorderColors, type BulkActionMetadata, type BulkMachineTranslateApplicationErrors, type BulkMachineTranslateOptions, type BulkMachineTranslateRequest, type BulkMachineTranslateResponse, type BulkTranslateResult, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, Crop, type CropWithLiterals, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type Design, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type EmbedData, type EventData, type FileData, type FileSource, type FileSourceDataOneOf, type FontSizeData, FontType, type FontTypeWithLiterals, Format, type FormatWithLiterals, 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, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type Item, type ItemDataOneOf, type ItemMetadata, type ItemStyle, Layout, type LayoutCellData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListValue, type MachineTranslateApplicationErrors, type MachineTranslateOptions, type MachineTranslateRequest, type MachineTranslateResponse, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MentionData, type Metadata, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, type NotEnoughCreditsError, 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 PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, 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, type RibbonStyles, type RichContent, type SameLanguageArgumentsError, type Settings, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, SupportedLanguage, type SupportedLanguageWithLiterals, type TableCellData, type TableData, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type TextTooLongError, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type TranslatableContent, type TranslatableContentContentOneOf, Type, type TypeWithLiterals, type UnknownFormatError, VerticalAlignment, type VerticalAlignmentWithLiterals, type Video, type VideoData, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, bulkMachineTranslate, machineTranslate };
2373
+ export { Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, type ApplicationError, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, type BackgroundImage, BackgroundType, type BackgroundTypeWithLiterals, type BlockquoteData, type BookingData, type Border, type BorderColors, type BulkActionMetadata, type BulkMachineTranslateApplicationErrors, type BulkMachineTranslateOptions, type BulkMachineTranslateRequest, type BulkMachineTranslateResponse, type BulkTranslateResult, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CaptionData, type CardStyles, type CellStyle, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, Crop, type CropWithLiterals, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type Design, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type EmbedData, type EventData, type FileData, type FileSource, type FileSourceDataOneOf, type FontSizeData, FontType, type FontTypeWithLiterals, Format, type FormatWithLiterals, 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 ItemMetadata, 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 MachineTranslateApplicationErrors, type MachineTranslateOptions, type MachineTranslateRequest, type MachineTranslateResponse, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MentionData, type Metadata, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, type NotEnoughCreditsError, 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 PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, 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 SameLanguageArgumentsError, Scaling, type ScalingWithLiterals, type Settings, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, SupportedLanguage, type SupportedLanguageWithLiterals, type TableCellData, type TableData, Target, type TargetWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type TextTooLongError, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type TranslatableContent, type TranslatableContentContentOneOf, Type, type TypeWithLiterals, type UnknownFormatError, 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, bulkMachineTranslate, machineTranslate };
@@ -116,6 +116,12 @@ function machineTranslate(payload) {
116
116
  },
117
117
  {
118
118
  path: "contentToTranslate.richContent.nodes.audioData.coverImage.duration"
119
+ },
120
+ {
121
+ path: "contentToTranslate.richContent.nodes.layoutData.backgroundImage.media.duration"
122
+ },
123
+ {
124
+ path: "contentToTranslate.richContent.nodes.layoutData.backdropImage.media.duration"
119
125
  }
120
126
  ]
121
127
  },
@@ -189,6 +195,12 @@ function machineTranslate(payload) {
189
195
  },
190
196
  {
191
197
  path: "translatedContent.richContent.nodes.audioData.coverImage.duration"
198
+ },
199
+ {
200
+ path: "translatedContent.richContent.nodes.layoutData.backgroundImage.media.duration"
201
+ },
202
+ {
203
+ path: "translatedContent.richContent.nodes.layoutData.backdropImage.media.duration"
192
204
  }
193
205
  ]
194
206
  },
@@ -259,6 +271,12 @@ function bulkMachineTranslate(payload) {
259
271
  },
260
272
  {
261
273
  path: "contentToTranslate.richContent.nodes.audioData.coverImage.duration"
274
+ },
275
+ {
276
+ path: "contentToTranslate.richContent.nodes.layoutData.backgroundImage.media.duration"
277
+ },
278
+ {
279
+ path: "contentToTranslate.richContent.nodes.layoutData.backdropImage.media.duration"
262
280
  }
263
281
  ]
264
282
  },
@@ -332,6 +350,12 @@ function bulkMachineTranslate(payload) {
332
350
  },
333
351
  {
334
352
  path: "results.item.richContent.nodes.audioData.coverImage.duration"
353
+ },
354
+ {
355
+ path: "results.item.richContent.nodes.layoutData.backgroundImage.media.duration"
356
+ },
357
+ {
358
+ path: "results.item.richContent.nodes.layoutData.backdropImage.media.duration"
335
359
  }
336
360
  ]
337
361
  },
@@ -619,6 +643,35 @@ var NullValue = /* @__PURE__ */ ((NullValue2) => {
619
643
  NullValue2["NULL_VALUE"] = "NULL_VALUE";
620
644
  return NullValue2;
621
645
  })(NullValue || {});
646
+ var Scaling = /* @__PURE__ */ ((Scaling2) => {
647
+ Scaling2["AUTO"] = "AUTO";
648
+ Scaling2["CONTAIN"] = "CONTAIN";
649
+ Scaling2["COVER"] = "COVER";
650
+ return Scaling2;
651
+ })(Scaling || {});
652
+ var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
653
+ ImagePosition2["CENTER"] = "CENTER";
654
+ ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
655
+ ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
656
+ ImagePosition2["TOP"] = "TOP";
657
+ ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
658
+ ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
659
+ ImagePosition2["BOTTOM"] = "BOTTOM";
660
+ ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
661
+ ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
662
+ return ImagePosition2;
663
+ })(ImagePosition || {});
664
+ var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
665
+ VerticalAlignmentAlignment2["TOP"] = "TOP";
666
+ VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
667
+ VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
668
+ return VerticalAlignmentAlignment2;
669
+ })(VerticalAlignmentAlignment || {});
670
+ var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
671
+ ResponsivenessBehaviour2["STACK"] = "STACK";
672
+ ResponsivenessBehaviour2["WRAP"] = "WRAP";
673
+ return ResponsivenessBehaviour2;
674
+ })(ResponsivenessBehaviour || {});
622
675
  var SupportedLanguage = /* @__PURE__ */ ((SupportedLanguage2) => {
623
676
  SupportedLanguage2["UNDEFINED_SUPPORTED_LANGUAGE"] = "UNDEFINED_SUPPORTED_LANGUAGE";
624
677
  SupportedLanguage2["AF"] = "AF";
@@ -847,6 +900,7 @@ export {
847
900
  FontType,
848
901
  Format,
849
902
  GIFType,
903
+ ImagePosition,
850
904
  InitialExpandedItems,
851
905
  Layout,
852
906
  LayoutType,
@@ -861,6 +915,8 @@ export {
861
915
  PollLayoutType,
862
916
  Position,
863
917
  Resizing,
918
+ ResponsivenessBehaviour,
919
+ Scaling,
864
920
  Source,
865
921
  StylesPosition,
866
922
  SupportedLanguage,
@@ -869,6 +925,7 @@ export {
869
925
  ThumbnailsAlignment,
870
926
  Type,
871
927
  VerticalAlignment,
928
+ VerticalAlignmentAlignment,
872
929
  ViewMode,
873
930
  ViewRole,
874
931
  VoteRole,