@social-mail/social-mail-client 1.8.314 → 1.8.316

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.8.314",
3
+ "version": "1.8.316",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -7,8 +7,6 @@ import { BindEditor } from "../../properties/controls/PropertyEditor";
7
7
  import "./SelectionUI.global.css";
8
8
  import HtmlPageEditor from "../HtmlPageEditor";
9
9
  import { mobileScreenWidth, tabletScreenWidth } from "../sizes";
10
- import { AtomBinder } from "@web-atoms/core/dist/core/AtomBinder";
11
-
12
10
  declare global {
13
11
  namespace JSX {
14
12
  interface IntrinsicElements {
@@ -35,7 +33,7 @@ const setCapture = (editor: HtmlPageEditor, element: HTMLElement, e: PointerEven
35
33
  ? "styler-tablet"
36
34
  : (editor.maxWidth === mobileScreenWidth
37
35
  ? "styler-mobile"
38
- : "styler");
36
+ : "styler-desktop");
39
37
 
40
38
  const sx = e.clientX;
41
39
  const sy = e.clientY;
@@ -67,7 +65,7 @@ const setCapture = (editor: HtmlPageEditor, element: HTMLElement, e: PointerEven
67
65
  const r = fx(ri);
68
66
  const av = `${ps(r.top, height)}% ${ps(r.right, width)}% ${ps(r.bottom, height)}% ${ps(r.left, width)}%`;
69
67
  selectedElement.setAttribute(`${prefix}-inset`, av);
70
- if (/^img$/i.test(selectedElement.tagName)) {
68
+ // if (/^img$/i.test(selectedElement.tagName)) {
71
69
  // image needs width/height as well...
72
70
  let widthDiff = -r.left;
73
71
  let heightDiff = -r.top;
@@ -79,7 +77,7 @@ const setCapture = (editor: HtmlPageEditor, element: HTMLElement, e: PointerEven
79
77
  }
80
78
  selectedElement.setAttribute(`${prefix}-width`, ps(width + widthDiff, width) + "%");
81
79
  selectedElement.setAttribute(`${prefix}-height`, ps(height + heightDiff, height) + "%");
82
- }
80
+ // }
83
81
 
84
82
  setTimeout(() => {
85
83
  selection.updateRect();