@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.
@@ -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 the file can be added to a Ricos document.
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
- * Upload the file to the returned `uploadUrl` with a `PUT` request. The response of the upload request
63
- * contains the uploaded file's descriptor, including its ID. Specify `private` as `true` to upload a file
64
- * that can't be accessed from its file URL. Use [Generate File Download URL](https://dev.wix.com/docs/api-reference/assets/rich-content/ricos-documents/generate-file-download-url) to download private files.
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
- * Site visitors and members can call this method.
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>;
@@ -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";