@social-mail/social-mail-client 1.2.509 → 1.2.511

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.2.509",
3
+ "version": "1.2.511",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  import XNode from "@web-atoms/core/dist/core/XNode";
2
2
  import { StylerProperty } from "../../styler/Styler";
3
3
  import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl";
4
- import type HtmlPageEditor from "../../editor/HtmlPageEditor";
4
+ import HtmlPageEditor from "../../editor/HtmlPageEditor";
5
5
  import Expander from "@web-atoms/web-controls/dist/basic/Expander";
6
6
  import Select from "@web-atoms/web-controls/dist/basic/Select";
7
7
  import Bind from "@web-atoms/core/dist/core/Bind";
@@ -70,7 +70,7 @@ export const BindStyleCustom = AtomControl.registerProperty("data-style-property
70
70
  padding-right: 10px;
71
71
  }
72
72
 
73
- &[data-custom=""] > [data-element=custom] {
73
+ &[data-custom-value=""]:not([data-custom]) > [data-element=custom] {
74
74
  display: none;
75
75
  }
76
76
 
@@ -114,7 +114,7 @@ export function PropertyEditor({
114
114
  if(custom) {
115
115
  const binder = (c: HtmlPageEditor) => c.selection.style(property.key).custom;
116
116
  binder.toString = () => `(c) => c.selection.styleProperty["${property.key.replace("-", "_")}"]`;
117
- a["data-custom"] = Bind.oneWay(binder);
117
+ a["data-custom-value"] = Bind.oneWay(binder);
118
118
  }
119
119
  }
120
120
  return <div
@@ -11,28 +11,30 @@ export default function PositionGroupEditor() {
11
11
  label="Position"
12
12
  property={properties.stylerPosition}
13
13
  />
14
- <section
15
- style-display={BindEditor.oneWay((e) => /relative|fixed|absolute|sticky/i.test(e.selection.currentStyle.position))}>
16
- <SizeEditorControl
17
- label="Left"
18
- property={properties.stylerLeft}
19
- />
20
- <SizeEditorControl
21
- label="Top"
22
- property={properties.stylerTop}
23
- />
24
- <SizeEditorControl
25
- label="Right"
26
- property={properties.stylerRight}
27
- />
28
- <SizeEditorControl
29
- label="Bottom"
30
- property={properties.stylerBottom}
31
- />
14
+ <section>
15
+ <section
16
+ style-display={BindEditor.oneWay((e) => /relative|fixed|absolute|sticky/i.test(e.selection.currentStyle.position))}>
17
+ <SizeEditorControl
18
+ label="Left"
19
+ property={properties.stylerLeft}
20
+ />
21
+ <SizeEditorControl
22
+ label="Top"
23
+ property={properties.stylerTop}
24
+ />
25
+ <SizeEditorControl
26
+ label="Right"
27
+ property={properties.stylerRight}
28
+ />
29
+ <SizeEditorControl
30
+ label="Bottom"
31
+ property={properties.stylerBottom}
32
+ />
33
+ </section>
32
34
  <DropDownProperty
33
- label="Z-Index"
34
- property={properties.stylerZIndex}
35
- />
35
+ label="Z-Index"
36
+ property={properties.stylerZIndex}
37
+ />
36
38
  </section>
37
39
  </ExpanderPropertyEditor>;
38
40
  }