@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.
@@ -34332,7 +34332,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
34332
34332
  stream,
34333
34333
  maxStreamSize,
34334
34334
  extra: {
34335
- insert: true
34335
+ insert: true,
34336
+ stream
34336
34337
  }
34337
34338
  }), {
34338
34339
  "data-click-event": "send-video",
@@ -34345,7 +34346,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
34345
34346
  stream,
34346
34347
  maxStreamSize,
34347
34348
  extra: {
34348
- insert: true
34349
+ insert: true,
34350
+ stream
34349
34351
  }
34350
34352
  }), {
34351
34353
  "data-click-event": "record-video",
@@ -34869,14 +34871,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
34869
34871
  extra
34870
34872
  }) {
34871
34873
  return __awaiter(this, void 0, void 0, function* () {
34872
- if (extra.stream) {
34873
- yield this.streamFiles({
34874
- files,
34875
- extra
34876
- });
34877
- return;
34878
- }
34879
- const size = files.reduce((pv, cv) => pv + cv.file.size, 0);
34874
+ const size = files.reduce((pv, cv) => pv + (extra.stream && /^video\//i.test(cv.file.type) ? 0 : cv.file.size), 0);
34880
34875
  if (size > 20 * 1024 * 1024) {
34881
34876
  if (!extra.stream) {
34882
34877
  throw new Error(`Total size of attachments cannot be more than 20MB.`);
@@ -34907,8 +34902,9 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
34907
34902
  DomToElement(video, XNode.create("div", null, XNode.create("video", {
34908
34903
  "data-content-id": af.contentID,
34909
34904
  "data-stream-enabled": "true",
34910
- autoplay: true,
34911
- muted: true,
34905
+ autoplay: "true",
34906
+ muted: "true",
34907
+ controls: "true",
34912
34908
  poster: imgLink,
34913
34909
  src: link
34914
34910
  }, XNode.create("div", null, "If you cannot see the video,", XNode.create("br", null), XNode.create("a", {
@@ -35068,6 +35064,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
35068
35064
  name: file.file.name,
35069
35065
  fileContentID: file.fileContentID,
35070
35066
  contentID: file.appFileID.toString(36),
35067
+ fileSize: file.file.size,
35071
35068
  url: file.url
35072
35069
  });
35073
35070
  }