@social-mail/social-mail-client 1.9.67 → 1.9.69

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.
Files changed (149) hide show
  1. package/dist/admin/AdminAppIndex.pack.global.css +1 -1
  2. package/dist/admin/AdminAppIndex.pack.global.css.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/admin/controls/templates/PreviewTemplate.d.ts +0 -7
  6. package/dist/admin/controls/templates/PreviewTemplate.d.ts.map +1 -1
  7. package/dist/admin/controls/templates/PreviewTemplate.js.map +1 -1
  8. package/dist/common/controls/badge/Badge.d.ts +0 -7
  9. package/dist/common/controls/badge/Badge.d.ts.map +1 -1
  10. package/dist/common/controls/badge/Badge.js.map +1 -1
  11. package/dist/common/controls/charts/Charts.d.ts +0 -9
  12. package/dist/common/controls/charts/Charts.d.ts.map +1 -1
  13. package/dist/common/controls/charts/Charts.js.map +1 -1
  14. package/dist/common/menu/MenuService.d.ts +0 -7
  15. package/dist/common/menu/MenuService.d.ts.map +1 -1
  16. package/dist/common/menu/MenuService.js.map +1 -1
  17. package/dist/common/pages/splash/SplashScreenPage.d.ts +0 -7
  18. package/dist/common/pages/splash/SplashScreenPage.d.ts.map +1 -1
  19. package/dist/common/pages/splash/SplashScreenPage.js.map +1 -1
  20. package/dist/common/pages/websites/detail/WebSiteDetail.d.ts +0 -7
  21. package/dist/common/pages/websites/detail/WebSiteDetail.d.ts.map +1 -1
  22. package/dist/common/pages/websites/detail/WebSiteDetail.js.map +1 -1
  23. package/dist/public/channel/ChannelApp.pack.global.css +1 -1
  24. package/dist/public/channel/ChannelApp.pack.global.css.map +1 -1
  25. package/dist/public/channel/ChannelApp.pack.js.map +1 -1
  26. package/dist/public/channel/ChannelApp.pack.min.js.map +1 -1
  27. package/dist/public/channel/controls/channel-post/ChannelPost.d.ts +0 -16
  28. package/dist/public/channel/controls/channel-post/ChannelPost.d.ts.map +1 -1
  29. package/dist/public/channel/controls/channel-post/ChannelPost.js.map +1 -1
  30. package/dist/public/channel/pages/ChannelCalendarPage.d.ts +0 -11
  31. package/dist/public/channel/pages/ChannelCalendarPage.d.ts.map +1 -1
  32. package/dist/public/channel/pages/ChannelCalendarPage.js.map +1 -1
  33. package/dist/public/channel/pages/comments/PostComments.d.ts +0 -9
  34. package/dist/public/channel/pages/comments/PostComments.d.ts.map +1 -1
  35. package/dist/public/channel/pages/comments/PostComments.js.map +1 -1
  36. package/dist/public/channel/pages/video/ChannelVideosPage.d.ts +0 -9
  37. package/dist/public/channel/pages/video/ChannelVideosPage.d.ts.map +1 -1
  38. package/dist/public/channel/pages/video/ChannelVideosPage.js.map +1 -1
  39. package/dist/public/store/StoreApp.pack.global.css +1 -1
  40. package/dist/public/store/StoreApp.pack.global.css.map +1 -1
  41. package/dist/site-editor/blocks/Carousel.d.ts +0 -7
  42. package/dist/site-editor/blocks/Carousel.d.ts.map +1 -1
  43. package/dist/site-editor/blocks/Carousel.js.map +1 -1
  44. package/dist/site-editor/blocks/Components.d.ts +0 -7
  45. package/dist/site-editor/blocks/Components.d.ts.map +1 -1
  46. package/dist/site-editor/blocks/Components.js.map +1 -1
  47. package/dist/site-editor/blocks/FlipBox.d.ts +0 -7
  48. package/dist/site-editor/blocks/FlipBox.d.ts.map +1 -1
  49. package/dist/site-editor/blocks/FlipBox.js.map +1 -1
  50. package/dist/site-editor/blocks/ImageGallery.d.ts +0 -7
  51. package/dist/site-editor/blocks/ImageGallery.d.ts.map +1 -1
  52. package/dist/site-editor/blocks/ImageGallery.js.map +1 -1
  53. package/dist/site-editor/blocks/ImageGrid.d.ts +0 -7
  54. package/dist/site-editor/blocks/ImageGrid.d.ts.map +1 -1
  55. package/dist/site-editor/blocks/ImageGrid.js.map +1 -1
  56. package/dist/site-editor/blocks/InjectBox.d.ts +0 -7
  57. package/dist/site-editor/blocks/InjectBox.d.ts.map +1 -1
  58. package/dist/site-editor/blocks/InjectBox.js.map +1 -1
  59. package/dist/site-editor/blocks/InlineSvg.d.ts +0 -7
  60. package/dist/site-editor/blocks/InlineSvg.d.ts.map +1 -1
  61. package/dist/site-editor/blocks/InlineSvg.js.map +1 -1
  62. package/dist/site-editor/blocks/MarqueeText.d.ts +0 -7
  63. package/dist/site-editor/blocks/MarqueeText.d.ts.map +1 -1
  64. package/dist/site-editor/blocks/MarqueeText.js.map +1 -1
  65. package/dist/site-editor/blocks/PDFFlipBook.d.ts +0 -7
  66. package/dist/site-editor/blocks/PDFFlipBook.d.ts.map +1 -1
  67. package/dist/site-editor/blocks/PDFFlipBook.js.map +1 -1
  68. package/dist/site-editor/blocks/PDFViewer.d.ts +0 -7
  69. package/dist/site-editor/blocks/PDFViewer.d.ts.map +1 -1
  70. package/dist/site-editor/blocks/PDFViewer.js.map +1 -1
  71. package/dist/site-editor/blocks/ScrollAware.d.ts +0 -7
  72. package/dist/site-editor/blocks/ScrollAware.d.ts.map +1 -1
  73. package/dist/site-editor/blocks/ScrollAware.js.map +1 -1
  74. package/dist/site-editor/blocks/VideoPlayer.d.ts +0 -7
  75. package/dist/site-editor/blocks/VideoPlayer.d.ts.map +1 -1
  76. package/dist/site-editor/blocks/VideoPlayer.js.map +1 -1
  77. package/dist/site-editor/editor/HtmlPageEditor.d.ts +1 -0
  78. package/dist/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
  79. package/dist/site-editor/editor/HtmlPageEditor.js +3 -1
  80. package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
  81. package/dist/site-editor/editor/UndoRedo.d.ts.map +1 -1
  82. package/dist/site-editor/editor/UndoRedo.js +9 -7
  83. package/dist/site-editor/editor/UndoRedo.js.map +1 -1
  84. package/dist/site-editor/editor/guides/UIGuides.d.ts +0 -9
  85. package/dist/site-editor/editor/guides/UIGuides.d.ts.map +1 -1
  86. package/dist/site-editor/editor/guides/UIGuides.js.map +1 -1
  87. package/dist/site-editor/editor/ui/SelectionUI.d.ts +0 -7
  88. package/dist/site-editor/editor/ui/SelectionUI.d.ts.map +1 -1
  89. package/dist/site-editor/editor/ui/SelectionUI.js +35 -8
  90. package/dist/site-editor/editor/ui/SelectionUI.js.map +1 -1
  91. package/dist/site-editor/properties/controls/multi-value/MultiValueControl.d.ts +0 -7
  92. package/dist/site-editor/properties/controls/multi-value/MultiValueControl.d.ts.map +1 -1
  93. package/dist/site-editor/properties/controls/multi-value/MultiValueControl.js.map +1 -1
  94. package/dist/site-editor/tools/preview/ToolPreview.d.ts +0 -7
  95. package/dist/site-editor/tools/preview/ToolPreview.d.ts.map +1 -1
  96. package/dist/site-editor/tools/preview/ToolPreview.js.map +1 -1
  97. package/dist/site-editor-app/SiteEditorApp.pack.global.css +1 -1
  98. package/dist/site-editor-app/SiteEditorApp.pack.global.css.map +1 -1
  99. package/dist/site-editor-app/SiteEditorApp.pack.js +47 -16
  100. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  101. package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
  102. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  103. package/dist/site-editor-app/pages/websites/studio/layers/StudioLayers.d.ts +0 -7
  104. package/dist/site-editor-app/pages/websites/studio/layers/StudioLayers.d.ts.map +1 -1
  105. package/dist/site-editor-app/pages/websites/studio/layers/StudioLayers.js.map +1 -1
  106. package/dist/tsconfig.tsbuildinfo +1 -1
  107. package/dist/web/AppIndex.pack.global.css +1 -1
  108. package/dist/web/AppIndex.pack.global.css.map +1 -1
  109. package/dist/web/AppIndex.pack.js.map +1 -1
  110. package/dist/web/AppIndex.pack.min.js.map +1 -1
  111. package/dist/web/page/home/HomePage.d.ts +0 -7
  112. package/dist/web/page/home/HomePage.d.ts.map +1 -1
  113. package/dist/web/page/home/HomePage.js.map +1 -1
  114. package/node_modules/@web-atoms/web-controls/dist/mobile-app/MobileApp.global.css +1 -1
  115. package/node_modules/@web-atoms/web-controls/dist/mobile-app/MobileApp.global.css.map +1 -1
  116. package/node_modules/@web-atoms/web-controls/package.json +1 -1
  117. package/node_modules/@web-atoms/web-controls/src/mobile-app/MobileApp.global.css +4 -0
  118. package/package.json +2 -2
  119. package/src/admin/controls/templates/PreviewTemplate.tsx +0 -11
  120. package/src/common/controls/badge/Badge.tsx +0 -10
  121. package/src/common/controls/charts/Charts.tsx +0 -12
  122. package/src/common/menu/MenuService.tsx +0 -11
  123. package/src/common/pages/splash/SplashScreenPage.tsx +0 -10
  124. package/src/common/pages/websites/detail/WebSiteDetail.tsx +0 -11
  125. package/src/public/channel/controls/channel-post/ChannelPost.tsx +0 -20
  126. package/src/public/channel/pages/ChannelCalendarPage.tsx +0 -14
  127. package/src/public/channel/pages/comments/PostComments.tsx +0 -12
  128. package/src/public/channel/pages/video/ChannelVideosPage.tsx +0 -12
  129. package/src/site-editor/blocks/Carousel.tsx +0 -10
  130. package/src/site-editor/blocks/Components.tsx +0 -10
  131. package/src/site-editor/blocks/FlipBox.tsx +0 -10
  132. package/src/site-editor/blocks/ImageGallery.tsx +0 -11
  133. package/src/site-editor/blocks/ImageGrid.tsx +0 -10
  134. package/src/site-editor/blocks/InjectBox.tsx +0 -11
  135. package/src/site-editor/blocks/InlineSvg.tsx +0 -11
  136. package/src/site-editor/blocks/MarqueeText.tsx +0 -11
  137. package/src/site-editor/blocks/PDFFlipBook.tsx +0 -10
  138. package/src/site-editor/blocks/PDFViewer.tsx +0 -10
  139. package/src/site-editor/blocks/ScrollAware.tsx +0 -11
  140. package/src/site-editor/blocks/VideoPlayer.tsx +0 -10
  141. package/src/site-editor/editor/HtmlPageEditor.tsx +5 -2
  142. package/src/site-editor/editor/UndoRedo.tsx +9 -7
  143. package/src/site-editor/editor/guides/UIGuides.tsx +0 -12
  144. package/src/site-editor/editor/ui/SelectionUI.tsx +43 -17
  145. package/src/site-editor/properties/controls/multi-value/MultiValueControl.tsx +0 -10
  146. package/src/site-editor/tools/preview/ToolPreview.tsx +0 -10
  147. package/src/site-editor-app/pages/websites/studio/layers/StudioLayers.tsx +1 -9
  148. package/src/tags.d.ts +63 -0
  149. package/src/web/page/home/HomePage.tsx +0 -10
@@ -1,5 +1,3 @@
1
- /* eslint-disable @typescript-eslint/naming-convention */
2
- /* eslint-disable @typescript-eslint/no-namespace */
3
1
  import XNode from "@web-atoms/core/dist/core/XNode";
4
2
  import EditorPopupMenu from "../../menus/EditorPopupMenu";
5
3
  import { BindEditor } from "../../properties/controls/PropertyEditor";
@@ -10,14 +8,6 @@ import { mobileScreenWidth, tabletScreenWidth } from "../sizes";
10
8
  import SnapGuides from "./SnapGuides";
11
9
  import { isDragged } from "../EditingSymbols";
12
10
 
13
- declare global {
14
- namespace JSX {
15
- interface IntrinsicElements {
16
- "selected-element": any;
17
- }
18
- }
19
- }
20
-
21
11
  interface IRect {
22
12
  left;
23
13
  top;
@@ -36,6 +26,33 @@ interface IRect {
36
26
 
37
27
  const ps = (v, max) => (v* 100 / (max || 1)).toFixed(2);
38
28
 
29
+ const cssPath = (el) => {
30
+ // if (!(el instanceof Element)) {
31
+ // return;
32
+ // }
33
+ const path = [];
34
+ while (el.nodeType === Node.ELEMENT_NODE) {
35
+ let selector = el.nodeName.toLowerCase();
36
+ if (el.id) {
37
+ selector += '#' + el.id;
38
+ } else {
39
+ let nth = 1;
40
+ let f = (el as HTMLElement).parentElement.firstElementChild;
41
+ while(f !== el) {
42
+ nth++;
43
+ f = f.nextElementSibling;
44
+ }
45
+ selector += ":nth-child("+nth+")";
46
+ }
47
+ path.unshift(selector);
48
+ if (el.tagName === "BODY") {
49
+ break;
50
+ }
51
+ el = el.parentNode;
52
+ }
53
+ return path.join(" > ");
54
+ };
55
+
39
56
  const beginDrag = (direction: string, editor: HtmlPageEditor, element: HTMLElement) => {
40
57
 
41
58
  const snaps = new SnapGuides(direction, editor, element);
@@ -89,6 +106,10 @@ const beginDrag = (direction: string, editor: HtmlPageEditor, element: HTMLEleme
89
106
 
90
107
  let updateTimer = void 0;
91
108
 
109
+ const dndStyle = editor.dndStyle;
110
+
111
+ const elementSelector = cssPath(selectedElement);
112
+
92
113
  const move = ({ dx, dy, fx}: { dx: number, dy: number, fx: (r: IRect, ) => IRect}) => {
93
114
 
94
115
  changed = true;
@@ -118,18 +139,25 @@ const beginDrag = (direction: string, editor: HtmlPageEditor, element: HTMLEleme
118
139
  r = snaps.snap(r);
119
140
 
120
141
  inset = `${ps(r.top, height)}% ${ps(r.right, width)}% ${ps(r.bottom, height)}% ${ps(r.left, width)}%`;
121
- selectedElement.style.inset = inset;
142
+ let rules = `${elementSelector} {
143
+ inset: ${inset};
144
+ `;
122
145
 
123
146
  if (!r.move) {
124
147
  resized = true;
125
148
  newWidth = ps(elementWidth + dx, width) + "%";
126
- selectedElement.style.width = newWidth;
149
+ rules += ` width: ${newWidth}; `;
150
+ // selectedElement.style.width = newWidth;
127
151
  // // selectedElement.setAttribute(widthAttribute, newWidth);
128
152
  newHeight = ps(elementHeight + dy, height) + "%";
129
- selectedElement.style.height = newHeight;
153
+ rules += ` height: ${newHeight}; `;
154
+ // selectedElement.style.height = newHeight;
130
155
  // selectedElement.setAttribute(heightAttribute, newHeight);
131
156
  }
132
157
 
158
+ rules += "}";
159
+
160
+ dndStyle.replaceSync(rules);
133
161
 
134
162
  if(!updateTimer) {
135
163
  updateTimer = setTimeout(() => {
@@ -148,9 +176,7 @@ const beginDrag = (direction: string, editor: HtmlPageEditor, element: HTMLEleme
148
176
  const commit = () => {
149
177
 
150
178
 
151
- selectedElement.style.removeProperty("inset");
152
- selectedElement.style.removeProperty("width");
153
- selectedElement.style.removeProperty("height");
179
+ dndStyle.replaceSync("");
154
180
 
155
181
  selectedElement.setAttribute(insetAttribute, inset);
156
182
  if (resized) {
@@ -241,10 +267,10 @@ const setCapture = (direction: string, editor: HtmlPageEditor, element: HTMLElem
241
267
  element.removeEventListener("pointermove", captureMove);
242
268
  element.removeEventListener("pointerup", release);
243
269
 
244
- sc.resume();
245
270
 
246
271
  if (!sc.changed) {
247
272
 
273
+ sc.resume();
248
274
  const { selectedElement, selectedParent } = sc;
249
275
  const frameDocument = selectedElement.ownerDocument;
250
276
  const frame = editor.contentEditor;
@@ -5,16 +5,6 @@ import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl";
5
5
  import HtmlPageEditor from "../../../editor/HtmlPageEditor";
6
6
  import { CancelToken } from "@web-atoms/core/dist/core/types";
7
7
 
8
- declare global {
9
- // eslint-disable-next-line @typescript-eslint/no-namespace
10
- namespace JSX {
11
- // eslint-disable-next-line @typescript-eslint/naming-convention
12
- interface IntrinsicElements {
13
- "multi-value": any;
14
- }
15
- }
16
- }
17
-
18
8
  import "./MultiValueControl.global.css";
19
9
  import AtomPopover from "@web-atoms/web-controls/dist/basic/elements/AtomPopover";
20
10
 
@@ -1,6 +1,4 @@
1
1
  /* eslint-disable no-console */
2
- /* eslint-disable @typescript-eslint/naming-convention */
3
- /* eslint-disable @typescript-eslint/no-namespace */
4
2
  import "./ToolPreview.global.css";
5
3
 
6
4
  const observer = new IntersectionObserver((entries) => {
@@ -135,11 +133,3 @@ export default class ToolPreview extends HTMLElement {
135
133
  }
136
134
 
137
135
  customElements.define("tool-preview", ToolPreview);
138
-
139
- declare global {
140
- namespace JSX {
141
- interface IntrinsicElements {
142
- "tool-preview": any;
143
- }
144
- }
145
- }
@@ -1,5 +1,3 @@
1
- /* eslint-disable @typescript-eslint/naming-convention */
2
- /* eslint-disable @typescript-eslint/no-namespace */
3
1
  import XNode from "@web-atoms/core/dist/core/XNode";
4
2
  import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl";
5
3
 
@@ -9,14 +7,8 @@ import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl";
9
7
  */
10
8
 
11
9
  declare global {
12
- namespace JSX {
13
- interface IntrinsicElements {
14
- "studio-layers": any;
15
- "layer-item": any;
16
- "layer-children": any;
17
- }
18
- }
19
10
 
11
+ // eslint-disable-next-line @typescript-eslint/naming-convention
20
12
  interface HTMLElement {
21
13
  scrollIntoViewIfNeeded(...a: any[]);
22
14
  }
package/src/tags.d.ts ADDED
@@ -0,0 +1,63 @@
1
+ /* eslint-disable @typescript-eslint/naming-convention */
2
+ namespace JSX {
3
+ interface IntrinsicElements {
4
+ "preview-template": any;
5
+ "label-badge": any;
6
+ "line-chart": any;
7
+ "bar-chart": any;
8
+ "pie-chart": any;
9
+ "removable-menu": any;
10
+ "splash-screen": any;
11
+ "web-site-reports": any;
12
+ "channel-post": any;
13
+ "channel-name": any;
14
+ "post-author": any;
15
+ "post-title": any;
16
+ "post-date": any;
17
+ "post-description": any;
18
+ "emoji-span": any;
19
+ "post-highlight": any;
20
+ "product-price": any;
21
+ "share-button": any;
22
+
23
+ "mini-calendar-events": any;
24
+ "calendar-events": any;
25
+ "create-event": any;
26
+ "vflex-div": any;
27
+ "post-item": any;
28
+
29
+ "post-comment": any;
30
+ "comment-date": any;
31
+ "comment-body": any;
32
+
33
+ "video-preview": any;
34
+ "video-grid": any;
35
+ "video-page": any;
36
+
37
+ "carousel-slider": any;
38
+ "type-writer": any;
39
+ "flip-box": any;
40
+ "image-gallery": any;
41
+ "image-grid": any;
42
+ "inject": any;
43
+ "inline-svg": any;
44
+
45
+ "marquee-text": any;
46
+ "pdf-flip-book": any;
47
+ "pdf-viewer": any;
48
+ "scroll-aware": any;
49
+ "video-player": any;
50
+ "ui-guides": any;
51
+ "h-guide": any;
52
+ "v-guide": any;
53
+ "selected-element": any;
54
+
55
+ "multi-value": any;
56
+ "tool-preview": any;
57
+ "studio-layers": any;
58
+ "layer-item": any;
59
+ "layer-children": any;
60
+ "home-page":any;
61
+
62
+ }
63
+ }
@@ -1,17 +1,7 @@
1
- /* eslint-disable @typescript-eslint/naming-convention */
2
- /* eslint-disable @typescript-eslint/no-namespace */
3
1
  import XNode from "@web-atoms/core/dist/core/XNode";
4
2
  import { ContentPage, isMobileView } from "@web-atoms/web-controls/dist/mobile-app/MobileApp";
5
3
  import PositronInBrowser from "@positron-js/context/dist/PositronInBrowser";
6
4
 
7
- declare global {
8
- namespace JSX {
9
- interface IntrinsicElements {
10
- "home-page":any;
11
- }
12
- }
13
- }
14
-
15
5
  import "./HomePage.global.css";
16
6
  import MenuService from "../../../common/menu/MenuService";
17
7
  import PageNavigator from "@web-atoms/web-controls/dist/PageNavigator";