@social-mail/social-mail-client 1.1.34 → 1.1.36

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.
@@ -17528,7 +17528,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/servic
17528
17528
  System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/Form", "@web-atoms/web-controls/dist/basic/FormField", "../../../../common/controls/buttons/CopyIcon"], function (_export, _context) {
17529
17529
  "use strict";
17530
17530
 
17531
- var __awaiter, PopupWindowPage, XNode, Form, FormField, CopyIcon, DomainKeySetupPage;
17531
+ var __awaiter, PopupWindowPage, XNode, Form, FormField, CopyIcon, DomainKeySetupPage, maxTextLength, format80;
17532
17532
  _export("default", void 0);
17533
17533
  return {
17534
17534
  setters: [function (_tslib) {
@@ -17545,6 +17545,27 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
17545
17545
  CopyIcon = _commonControlsButtonsCopyIcon.default;
17546
17546
  }],
17547
17547
  execute: function () {
17548
+ maxTextLength = 255;
17549
+ format80 = (text, quote = false) => {
17550
+ if (quote) {
17551
+ if (text.startsWith(`"`) && text.endsWith(`"`)) {
17552
+ text = JSON.parse(text);
17553
+ }
17554
+ }
17555
+ let data = [];
17556
+ while (text.length) {
17557
+ if (text.length < maxTextLength) {
17558
+ data.push(text);
17559
+ break;
17560
+ }
17561
+ data.push(text.substring(0, maxTextLength));
17562
+ text = text.substring(maxTextLength);
17563
+ }
17564
+ if (quote) {
17565
+ data = data.map(x => `"${x}"`);
17566
+ }
17567
+ return `( ${data.join("\n ")} )`;
17568
+ };
17548
17569
  _export("default", DomainKeySetupPage = class DomainKeySetupPage extends PopupWindowPage {
17549
17570
  init() {
17550
17571
  return __awaiter(this, void 0, void 0, function* () {
@@ -17572,7 +17593,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
17572
17593
  }))
17573
17594
  }, XNode.create("textarea", {
17574
17595
  readOnly: true,
17575
- value: value
17596
+ value: format80(value, true)
17576
17597
  })), XNode.create(CopyIcon, {
17577
17598
  text: value
17578
17599
  })));
@@ -25887,14 +25908,15 @@ System.register(["@web-atoms/core/dist/core/XNode", "../../../../services/Emoji"
25887
25908
  return XNode.create("a", {
25888
25909
  class: selector,
25889
25910
  style: "text-decoration: none;outline: none;border:none; margin-right: 5px",
25890
- "data-command": command,
25911
+ "social-mail-command": command,
25891
25912
  title: title,
25892
- "data-track": emoji,
25893
- "data-swap": "background"
25913
+ "social-mail-transform": "replace-with-image",
25914
+ "social-mail-track": emoji
25894
25915
  }, XNode.create("button", {
25895
25916
  style: "padding:2px;padding-left: 5px;padding-right: 5px; border: solid 1px lightgray; border-radius: 9999px; display: inline-flex; align-items: center;"
25896
25917
  }, emoji, " ", XNode.create("span", {
25897
- "data-element": "count"
25918
+ style: "display: inline-block;",
25919
+ "social-mail-element": "count"
25898
25920
  })));
25899
25921
  };
25900
25922
  AvatarButton = ({