@social-mail/social-mail-client 1.2.752 → 1.2.754

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.
@@ -37402,7 +37402,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
37402
37402
  stream,
37403
37403
  maxStreamSize,
37404
37404
  extra: {
37405
- insert: true
37405
+ insert: true,
37406
+ stream
37406
37407
  }
37407
37408
  }), {
37408
37409
  "data-click-event": "send-video",
@@ -37415,7 +37416,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
37415
37416
  stream,
37416
37417
  maxStreamSize,
37417
37418
  extra: {
37418
- insert: true
37419
+ insert: true,
37420
+ stream
37419
37421
  }
37420
37422
  }), {
37421
37423
  "data-click-event": "record-video",
@@ -37939,14 +37941,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
37939
37941
  extra
37940
37942
  }) {
37941
37943
  return __awaiter(this, void 0, void 0, function* () {
37942
- if (extra.stream) {
37943
- yield this.streamFiles({
37944
- files,
37945
- extra
37946
- });
37947
- return;
37948
- }
37949
- const size = files.reduce((pv, cv) => pv + cv.file.size, 0);
37944
+ const size = files.reduce((pv, cv) => pv + (extra.stream && /^video\//i.test(cv.file.type) ? 0 : cv.file.size), 0);
37950
37945
  if (size > 20 * 1024 * 1024) {
37951
37946
  if (!extra.stream) {
37952
37947
  throw new Error(`Total size of attachments cannot be more than 20MB.`);
@@ -37977,8 +37972,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
37977
37972
  DomToElement(video, XNode.create("div", null, XNode.create("video", {
37978
37973
  "data-content-id": af.contentID,
37979
37974
  "data-stream-enabled": "true",
37980
- autoplay: true,
37981
- muted: true,
37975
+ autoplay: "true",
37976
+ muted: "true",
37977
+ controls: "true",
37982
37978
  poster: imgLink,
37983
37979
  src: link
37984
37980
  }, XNode.create("div", null, "If you cannot see the video,", XNode.create("br", null), XNode.create("a", {
@@ -38138,6 +38134,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
38138
38134
  name: file.file.name,
38139
38135
  fileContentID: file.fileContentID,
38140
38136
  contentID: file.appFileID.toString(36),
38137
+ fileSize: file.file.size,
38141
38138
  url: file.url
38142
38139
  });
38143
38140
  }