@wix/auto_sdk_rich-content_ricos-documents 1.0.7 → 1.0.9
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 +5 -5
- package/build/cjs/index.js +64 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +114 -9
- package/build/cjs/index.typings.js +64 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +140 -6
- package/build/cjs/meta.js +443 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +5 -5
- package/build/es/index.mjs +60 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +114 -9
- package/build/es/index.typings.mjs +60 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +140 -6
- package/build/es/meta.mjs +400 -3
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +5 -5
- package/build/internal/cjs/index.js +64 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +114 -9
- package/build/internal/cjs/index.typings.js +64 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +140 -6
- package/build/internal/cjs/meta.js +443 -3
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +5 -5
- package/build/internal/es/index.mjs +60 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +114 -9
- package/build/internal/es/index.typings.mjs +60 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +140 -6
- package/build/internal/es/meta.mjs +400 -3
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HttpClient,
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
2
|
import { ValidateDocumentOptions, ValidateDocumentResponse, ConvertToRicosDocumentOptions, ConvertToRicosDocumentResponse, RichContent, TargetFormatWithLiterals, ConvertFromRicosDocumentOptions, ConvertFromRicosDocumentResponse } from './index.typings.js';
|
|
3
|
-
export { Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AspectRatio, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BlockquoteData, BookingData, Border, BorderColors, BulletedListData, ButtonData, ButtonDataType, ButtonStyles, CaptionData, CardStyles, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, ConvertFromRicosDocumentOptionsOptionsOneOf, ConvertFromRicosDocumentRequest, ConvertFromRicosDocumentRequestOptionsOneOf, ConvertFromRicosDocumentResponseResultOneOf, ConvertToRicosDocumentOptionsSourceOneOf, ConvertToRicosDocumentRequest, ConvertToRicosDocumentRequestSourceOneOf, Crop, Decoration, DecorationDataOneOf, DecorationType, Design, Dimensions, Direction, DividerData, DividerDataAlignment, DocumentStyle, EmbedData, EventData, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, GIF, GIFData, GIFType, GalleryData, GalleryOptions, GalleryOptionsLayout, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, Image, ImageData, ImageDataStyles, ImageStyles, InitialExpandedItems, Item, ItemDataOneOf, ItemStyle, Layout, LayoutCellData, LayoutType, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, MapData, MapSettings, MapType, Media, MentionData, Metadata, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, PDFSettings, ParagraphData, Permissions, Placement, PlainTextOptions, PlaybackOptions, Plugin, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, Position, PricingData, Rel, Resizing, RibbonStyles, RicosDocumentOptions, RicosDocumentPlaceholder, RicosDocumentViolation, Settings, Source, Spoiler, SpoilerData, Styles, StylesBorder, StylesPosition, TableCellData, TableData, Target, TargetFormat, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Type, ValidateDocumentRequest, VerticalAlignment, Video, VideoData, ViewMode, ViewRole, VoteRole, Width, WidthType } from './index.typings.js';
|
|
3
|
+
export { Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, BlockquoteData, BookingData, Border, BorderColors, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, CellStyle, CodeBlockData, CollapsibleListData, ColorData, Colors, ConvertFromRicosDocumentOptionsOptionsOneOf, ConvertFromRicosDocumentRequest, ConvertFromRicosDocumentRequestOptionsOneOf, ConvertFromRicosDocumentResponseResultOneOf, ConvertToRicosDocumentOptionsSourceOneOf, ConvertToRicosDocumentRequest, ConvertToRicosDocumentRequestSourceOneOf, Crop, CropWithLiterals, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, Design, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, EmbedData, EventData, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, FontTypeWithLiterals, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionWithLiterals, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, Item, ItemDataOneOf, ItemStyle, Layout, LayoutCellData, LayoutData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MentionData, Metadata, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, PDFSettings, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlainTextOptions, PlaybackOptions, Plugin, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, PluginWithLiterals, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, Position, PositionWithLiterals, PricingData, Rel, Resizing, ResizingWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RibbonStyles, RicosDocumentOptions, RicosDocumentPlaceholder, RicosDocumentViolation, Scaling, ScalingWithLiterals, Settings, Source, SourceWithLiterals, Spoiler, SpoilerData, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, TableCellData, TableData, Target, TargetFormat, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, Type, TypeWithLiterals, ValidateDocumentRequest, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function validateDocument$1(httpClient: HttpClient): ValidateDocumentSignature;
|
|
6
6
|
interface ValidateDocumentSignature {
|
|
@@ -11,7 +11,7 @@ interface ValidateDocumentSignature {
|
|
|
11
11
|
* @param - Ricos document to validate.
|
|
12
12
|
* @param - Options to use when validating the document.
|
|
13
13
|
*/
|
|
14
|
-
(document: Record<string, any
|
|
14
|
+
(document: Record<string, any> | null, options?: ValidateDocumentOptions): Promise<ValidateDocumentResponse>;
|
|
15
15
|
}
|
|
16
16
|
declare function convertToRicosDocument$1(httpClient: HttpClient): ConvertToRicosDocumentSignature;
|
|
17
17
|
interface ConvertToRicosDocumentSignature {
|
|
@@ -29,11 +29,11 @@ interface ConvertFromRicosDocumentSignature {
|
|
|
29
29
|
* @param - Format to convert the document to.
|
|
30
30
|
* @param - Options to use when converting from a Ricos document.
|
|
31
31
|
*/
|
|
32
|
-
(document: RichContent, targetFormat: TargetFormatWithLiterals, options?: ConvertFromRicosDocumentOptions): Promise<
|
|
32
|
+
(document: RichContent, targetFormat: TargetFormatWithLiterals, options?: ConvertFromRicosDocumentOptions): Promise<ConvertFromRicosDocumentResponse>;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
declare const validateDocument: MaybeContext<BuildRESTFunction<typeof validateDocument$1> & typeof validateDocument$1>;
|
|
36
36
|
declare const convertToRicosDocument: MaybeContext<BuildRESTFunction<typeof convertToRicosDocument$1> & typeof convertToRicosDocument$1>;
|
|
37
37
|
declare const convertFromRicosDocument: MaybeContext<BuildRESTFunction<typeof convertFromRicosDocument$1> & typeof convertFromRicosDocument$1>;
|
|
38
38
|
|
|
39
|
-
export { ConvertFromRicosDocumentOptions, ConvertFromRicosDocumentResponse, ConvertToRicosDocumentOptions, ConvertToRicosDocumentResponse, RichContent, ValidateDocumentOptions, ValidateDocumentResponse, convertFromRicosDocument, convertToRicosDocument, validateDocument };
|
|
39
|
+
export { ConvertFromRicosDocumentOptions, ConvertFromRicosDocumentResponse, ConvertToRicosDocumentOptions, ConvertToRicosDocumentResponse, RichContent, TargetFormatWithLiterals, ValidateDocumentOptions, ValidateDocumentResponse, convertFromRicosDocument, convertToRicosDocument, validateDocument };
|
package/build/cjs/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __export(index_exports, {
|
|
|
31
31
|
DividerDataAlignment: () => DividerDataAlignment,
|
|
32
32
|
FontType: () => FontType,
|
|
33
33
|
GIFType: () => GIFType,
|
|
34
|
+
ImagePosition: () => ImagePosition,
|
|
34
35
|
InitialExpandedItems: () => InitialExpandedItems,
|
|
35
36
|
Layout: () => Layout,
|
|
36
37
|
LayoutType: () => LayoutType,
|
|
@@ -46,6 +47,8 @@ __export(index_exports, {
|
|
|
46
47
|
PollLayoutType: () => PollLayoutType,
|
|
47
48
|
Position: () => Position,
|
|
48
49
|
Resizing: () => Resizing,
|
|
50
|
+
ResponsivenessBehaviour: () => ResponsivenessBehaviour,
|
|
51
|
+
Scaling: () => Scaling,
|
|
49
52
|
Source: () => Source,
|
|
50
53
|
StylesPosition: () => StylesPosition,
|
|
51
54
|
Target: () => Target,
|
|
@@ -54,6 +57,7 @@ __export(index_exports, {
|
|
|
54
57
|
ThumbnailsAlignment: () => ThumbnailsAlignment,
|
|
55
58
|
Type: () => Type,
|
|
56
59
|
VerticalAlignment: () => VerticalAlignment,
|
|
60
|
+
VerticalAlignmentAlignment: () => VerticalAlignmentAlignment,
|
|
57
61
|
ViewMode: () => ViewMode,
|
|
58
62
|
ViewRole: () => ViewRole,
|
|
59
63
|
VoteRole: () => VoteRole,
|
|
@@ -107,6 +111,9 @@ function validateDocument(payload) {
|
|
|
107
111
|
method: "POST",
|
|
108
112
|
methodFqn: "wix.ricos.v1.RicosDocument.ValidateDocument",
|
|
109
113
|
packageName: PACKAGE_NAME,
|
|
114
|
+
migrationOptions: {
|
|
115
|
+
optInTransformResponse: true
|
|
116
|
+
},
|
|
110
117
|
url: resolveWixRicosV1RicosDocumentUrl({
|
|
111
118
|
protoPath: "/v1/ricos-document/validate",
|
|
112
119
|
data: payload,
|
|
@@ -141,7 +148,13 @@ function validateDocument(payload) {
|
|
|
141
148
|
{ path: "validDocument.nodes.videoData.video.duration" },
|
|
142
149
|
{ path: "validDocument.nodes.videoData.thumbnail.duration" },
|
|
143
150
|
{ path: "validDocument.nodes.audioData.audio.duration" },
|
|
144
|
-
{ path: "validDocument.nodes.audioData.coverImage.duration" }
|
|
151
|
+
{ path: "validDocument.nodes.audioData.coverImage.duration" },
|
|
152
|
+
{
|
|
153
|
+
path: "validDocument.nodes.layoutData.backgroundImage.media.duration"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
path: "validDocument.nodes.layoutData.backdropImage.media.duration"
|
|
157
|
+
}
|
|
145
158
|
]
|
|
146
159
|
},
|
|
147
160
|
{
|
|
@@ -164,6 +177,9 @@ function convertToRicosDocument(payload) {
|
|
|
164
177
|
method: "POST",
|
|
165
178
|
methodFqn: "wix.ricos.v1.RicosDocument.ConvertToRicosDocument",
|
|
166
179
|
packageName: PACKAGE_NAME,
|
|
180
|
+
migrationOptions: {
|
|
181
|
+
optInTransformResponse: true
|
|
182
|
+
},
|
|
167
183
|
url: resolveWixRicosV1RicosDocumentUrl({
|
|
168
184
|
protoPath: "/v1/ricos-document/convert/to-ricos",
|
|
169
185
|
data: payload,
|
|
@@ -192,7 +208,13 @@ function convertToRicosDocument(payload) {
|
|
|
192
208
|
{ path: "document.nodes.videoData.video.duration" },
|
|
193
209
|
{ path: "document.nodes.videoData.thumbnail.duration" },
|
|
194
210
|
{ path: "document.nodes.audioData.audio.duration" },
|
|
195
|
-
{ path: "document.nodes.audioData.coverImage.duration" }
|
|
211
|
+
{ path: "document.nodes.audioData.coverImage.duration" },
|
|
212
|
+
{
|
|
213
|
+
path: "document.nodes.layoutData.backgroundImage.media.duration"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
path: "document.nodes.layoutData.backdropImage.media.duration"
|
|
217
|
+
}
|
|
196
218
|
]
|
|
197
219
|
},
|
|
198
220
|
{
|
|
@@ -230,7 +252,9 @@ function convertFromRicosDocument(payload) {
|
|
|
230
252
|
{ path: "document.nodes.videoData.video.duration" },
|
|
231
253
|
{ path: "document.nodes.videoData.thumbnail.duration" },
|
|
232
254
|
{ path: "document.nodes.audioData.audio.duration" },
|
|
233
|
-
{ path: "document.nodes.audioData.coverImage.duration" }
|
|
255
|
+
{ path: "document.nodes.audioData.coverImage.duration" },
|
|
256
|
+
{ path: "document.nodes.layoutData.backgroundImage.media.duration" },
|
|
257
|
+
{ path: "document.nodes.layoutData.backdropImage.media.duration" }
|
|
234
258
|
]
|
|
235
259
|
},
|
|
236
260
|
{
|
|
@@ -246,6 +270,9 @@ function convertFromRicosDocument(payload) {
|
|
|
246
270
|
method: "POST",
|
|
247
271
|
methodFqn: "wix.ricos.v1.RicosDocument.ConvertFromRicosDocument",
|
|
248
272
|
packageName: PACKAGE_NAME,
|
|
273
|
+
migrationOptions: {
|
|
274
|
+
optInTransformResponse: true
|
|
275
|
+
},
|
|
249
276
|
url: resolveWixRicosV1RicosDocumentUrl({
|
|
250
277
|
protoPath: "/v1/ricos-document/convert/from-ricos",
|
|
251
278
|
data: serializedData,
|
|
@@ -423,6 +450,7 @@ var GIFType = /* @__PURE__ */ ((GIFType2) => {
|
|
|
423
450
|
var Source = /* @__PURE__ */ ((Source2) => {
|
|
424
451
|
Source2["HTML"] = "HTML";
|
|
425
452
|
Source2["ADSENSE"] = "ADSENSE";
|
|
453
|
+
Source2["AI"] = "AI";
|
|
426
454
|
return Source2;
|
|
427
455
|
})(Source || {});
|
|
428
456
|
var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
|
|
@@ -551,6 +579,35 @@ var NullValue = /* @__PURE__ */ ((NullValue2) => {
|
|
|
551
579
|
NullValue2["NULL_VALUE"] = "NULL_VALUE";
|
|
552
580
|
return NullValue2;
|
|
553
581
|
})(NullValue || {});
|
|
582
|
+
var Scaling = /* @__PURE__ */ ((Scaling2) => {
|
|
583
|
+
Scaling2["AUTO"] = "AUTO";
|
|
584
|
+
Scaling2["CONTAIN"] = "CONTAIN";
|
|
585
|
+
Scaling2["COVER"] = "COVER";
|
|
586
|
+
return Scaling2;
|
|
587
|
+
})(Scaling || {});
|
|
588
|
+
var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
|
|
589
|
+
ImagePosition2["CENTER"] = "CENTER";
|
|
590
|
+
ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
|
|
591
|
+
ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
|
|
592
|
+
ImagePosition2["TOP"] = "TOP";
|
|
593
|
+
ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
|
|
594
|
+
ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
|
|
595
|
+
ImagePosition2["BOTTOM"] = "BOTTOM";
|
|
596
|
+
ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
|
|
597
|
+
ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
|
|
598
|
+
return ImagePosition2;
|
|
599
|
+
})(ImagePosition || {});
|
|
600
|
+
var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
|
|
601
|
+
VerticalAlignmentAlignment2["TOP"] = "TOP";
|
|
602
|
+
VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
|
|
603
|
+
VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
|
|
604
|
+
return VerticalAlignmentAlignment2;
|
|
605
|
+
})(VerticalAlignmentAlignment || {});
|
|
606
|
+
var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
|
|
607
|
+
ResponsivenessBehaviour2["STACK"] = "STACK";
|
|
608
|
+
ResponsivenessBehaviour2["WRAP"] = "WRAP";
|
|
609
|
+
return ResponsivenessBehaviour2;
|
|
610
|
+
})(ResponsivenessBehaviour || {});
|
|
554
611
|
var TargetFormat = /* @__PURE__ */ ((TargetFormat2) => {
|
|
555
612
|
TargetFormat2["UNKNOWN_TARGET_FORMAT"] = "UNKNOWN_TARGET_FORMAT";
|
|
556
613
|
TargetFormat2["MARKDOWN"] = "MARKDOWN";
|
|
@@ -698,6 +755,7 @@ var convertFromRicosDocument4 = /* @__PURE__ */ (0, import_rest_modules2.createR
|
|
|
698
755
|
DividerDataAlignment,
|
|
699
756
|
FontType,
|
|
700
757
|
GIFType,
|
|
758
|
+
ImagePosition,
|
|
701
759
|
InitialExpandedItems,
|
|
702
760
|
Layout,
|
|
703
761
|
LayoutType,
|
|
@@ -713,6 +771,8 @@ var convertFromRicosDocument4 = /* @__PURE__ */ (0, import_rest_modules2.createR
|
|
|
713
771
|
PollLayoutType,
|
|
714
772
|
Position,
|
|
715
773
|
Resizing,
|
|
774
|
+
ResponsivenessBehaviour,
|
|
775
|
+
Scaling,
|
|
716
776
|
Source,
|
|
717
777
|
StylesPosition,
|
|
718
778
|
Target,
|
|
@@ -721,6 +781,7 @@ var convertFromRicosDocument4 = /* @__PURE__ */ (0, import_rest_modules2.createR
|
|
|
721
781
|
ThumbnailsAlignment,
|
|
722
782
|
Type,
|
|
723
783
|
VerticalAlignment,
|
|
784
|
+
VerticalAlignmentAlignment,
|
|
724
785
|
ViewMode,
|
|
725
786
|
ViewRole,
|
|
726
787
|
VoteRole,
|