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

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.`);