@social-mail/social-mail-client 1.8.344 → 1.8.345

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.344",
3
+ "version": "1.8.345",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -372,6 +372,10 @@ const updateFocus = (e, b) => {
372
372
  return b;
373
373
  };
374
374
 
375
+ const eventDoubleClick = (editor: HtmlPageEditor, e: MouseEvent) => {
376
+ (e.target as HTMLElement).removeAttribute("data-edit");
377
+ };
378
+
375
379
  export function SelectionUI() {
376
380
  return <selected-element data-element="selection"
377
381
  tabIndex="-1"
@@ -379,6 +383,7 @@ export function SelectionUI() {
379
383
  && /absolute|fixed/i.test(editor.selection.currentStyle.position) ? "1" : null))}
380
384
  event-pointerdown={BindEditor.event(eventPointerDown as any)}
381
385
  event-keydown={BindEditor.event(eventKeyDown as any)}
386
+ event-dblclick={BindEditor.event(eventDoubleClick as any)}
382
387
  style-left={BindEditor.oneWay((e) => e.selection.left)}
383
388
  style-top={BindEditor.oneWay((e) => e.selection.top)}
384
389
  style-width={BindEditor.oneWay((e) => e.selection.width)}