@wix/auto_sdk_rich-content_ricos-documents 1.0.55 → 1.0.57
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 +17 -5
- package/build/cjs/index.js +5 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +37 -20
- package/build/cjs/index.typings.js +5 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +17 -14
- package/build/cjs/meta.js +5 -5
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +17 -5
- package/build/es/index.mjs +5 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +37 -20
- package/build/es/index.typings.mjs +5 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +17 -14
- package/build/es/meta.mjs +5 -5
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +17 -5
- package/build/internal/cjs/index.typings.d.ts +37 -20
- package/build/internal/cjs/meta.d.ts +17 -14
- package/build/internal/es/index.d.mts +17 -5
- package/build/internal/es/index.typings.d.mts +37 -20
- package/build/internal/es/meta.d.mts +17 -14
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -57,13 +57,25 @@ interface GenerateFileDownloadUrlSignature {
|
|
|
57
57
|
declare function generateFileUploadUrl$1(httpClient: HttpClient): GenerateFileUploadUrlSignature;
|
|
58
58
|
interface GenerateFileUploadUrlSignature {
|
|
59
59
|
/**
|
|
60
|
-
* Generates a URL for uploading a file to the site's Media Manager, so
|
|
60
|
+
* Generates a URL for uploading a file to the site's Media Manager, so you can add the file to a Ricos document.
|
|
61
61
|
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
62
|
+
* To upload the file, send a `PUT` request to `uploadUrl` with the file content as the request body and a
|
|
63
|
+
* `Content-Type` header that matches `mimeType`. If you didn't specify `fileName`, add the file name as the
|
|
64
|
+
* `filename` query parameter. For example, `PUT {uploadUrl}?filename=report.pdf`. The URL expires after 24 hours.
|
|
65
|
+
* Learn more about the [Upload API](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/upload-api).
|
|
65
66
|
*
|
|
66
|
-
*
|
|
67
|
+
* The upload response contains the uploaded file's
|
|
68
|
+
* [file descriptor](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-object).
|
|
69
|
+
* Specify its `file.id` as the file node's `fileData.src.id` in the Ricos document.
|
|
70
|
+
* A successful upload response doesn't mean the file is ready. To run code when it's ready, listen for the
|
|
71
|
+
* [File Ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-file-ready) and
|
|
72
|
+
* [File Failed](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-descriptor-file-failed) events.
|
|
73
|
+
*
|
|
74
|
+
* Use this method to let site visitors and members add files to the content they create.
|
|
75
|
+
* To download a private file, call [Generate File Download URL](https://dev.wix.com/docs/api-reference/assets/rich-content/ricos-documents/generate-file-download-url).
|
|
76
|
+
*
|
|
77
|
+
* This method doesn't support resumable uploads. For the supported file types and sizes, see
|
|
78
|
+
* [Wix Media: Supported Media File Types and File Sizes](https://support.wix.com/en/article/wix-media-supported-media-file-types-and-file-sizes).
|
|
67
79
|
* @param - MIME type of the file to upload. For example, `application/pdf`.
|
|
68
80
|
*/
|
|
69
81
|
(mimeType: string, options?: GenerateFileUploadUrlOptions): Promise<GenerateFileUploadUrlResponse>;
|
package/build/cjs/index.js
CHANGED
|
@@ -981,6 +981,11 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
|
|
|
981
981
|
TextAlignment2["JUSTIFY"] = "JUSTIFY";
|
|
982
982
|
return TextAlignment2;
|
|
983
983
|
})(TextAlignment || {});
|
|
984
|
+
var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
985
|
+
FontType2["PX"] = "PX";
|
|
986
|
+
FontType2["EM"] = "EM";
|
|
987
|
+
return FontType2;
|
|
988
|
+
})(FontType || {});
|
|
984
989
|
var LineCap = /* @__PURE__ */ ((LineCap2) => {
|
|
985
990
|
LineCap2["SQUARE"] = "SQUARE";
|
|
986
991
|
LineCap2["ROUND"] = "ROUND";
|
|
@@ -1118,11 +1123,6 @@ var ColorDataBackgroundType = /* @__PURE__ */ ((ColorDataBackgroundType2) => {
|
|
|
1118
1123
|
ColorDataBackgroundType2["GRADIENT"] = "GRADIENT";
|
|
1119
1124
|
return ColorDataBackgroundType2;
|
|
1120
1125
|
})(ColorDataBackgroundType || {});
|
|
1121
|
-
var FontType = /* @__PURE__ */ ((FontType2) => {
|
|
1122
|
-
FontType2["PX"] = "PX";
|
|
1123
|
-
FontType2["EM"] = "EM";
|
|
1124
|
-
return FontType2;
|
|
1125
|
-
})(FontType || {});
|
|
1126
1126
|
var Variant = /* @__PURE__ */ ((Variant2) => {
|
|
1127
1127
|
Variant2["UNDERLINE"] = "UNDERLINE";
|
|
1128
1128
|
Variant2["BOX"] = "BOX";
|