@social-mail/social-mail-client 1.4.75 → 1.4.76

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.4.75",
3
+ "version": "1.4.76",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,7 +28,7 @@ const addAttributes = (target, values: (x: any) => IEditableAttribute[]) => {
28
28
 
29
29
  export class WebComponents {
30
30
 
31
- static path = `//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.174`;
31
+ static path = `//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.175`;
32
32
 
33
33
  // Not working in Chrome, Works well in Firefox
34
34
  // static async run2(frame: HTMLIFrameElement, doc: Document) {
@@ -109,6 +109,21 @@ export function DropDownProperty({ label, property, values, attributeName, ... a
109
109
  ? values.map((v) => ({ label: v, value: v})) :
110
110
  property.values.map((pair) => pair.toPair());
111
111
  items.splice(0, 0, { label: "-", value: ""});
112
+
113
+ if(!property) {
114
+ return <PropertyEditor
115
+ label={label}
116
+ property={property}
117
+ attributeName={attributeName}
118
+ { ... a}><Select
119
+ data-property-value-editor="drop-down"
120
+ data-flex="stretch-full"
121
+ { ... BindStyleValue(attributeName)}
122
+ valuePath={(v) => v.value}
123
+ items={items}/>
124
+ </PropertyEditor>;
125
+ }
126
+
112
127
  return <PropertyEditor
113
128
  label={label}
114
129
  property={property}