@social-mail/social-mail-client 1.2.149 → 1.2.151

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 (33) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +79 -10
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +34 -9
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/site-editor/blocks/Carousel.d.ts +9 -0
  6. package/dist/site-editor/blocks/Carousel.d.ts.map +1 -0
  7. package/dist/site-editor/blocks/Carousel.js +63 -0
  8. package/dist/site-editor/blocks/Carousel.js.map +1 -0
  9. package/dist/site-editor/blocks/VerticalImageBox.d.ts.map +1 -1
  10. package/dist/site-editor/blocks/VerticalImageBox.js +1 -2
  11. package/dist/site-editor/blocks/VerticalImageBox.js.map +1 -1
  12. package/dist/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
  13. package/dist/site-editor/editor/HtmlPageEditor.js +5 -3
  14. package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
  15. package/dist/site-editor/editor/SelectedElement.js +1 -1
  16. package/dist/site-editor/editor/SelectedElement.js.map +1 -1
  17. package/dist/site-editor/editor/WebSitePageEditor.js +1 -1
  18. package/dist/site-editor/editor/WebSitePageEditor.js.map +1 -1
  19. package/dist/site-editor/properties/controls/PropertyEditor.d.ts.map +1 -1
  20. package/dist/site-editor/properties/controls/PropertyEditor.js +4 -2
  21. package/dist/site-editor/properties/controls/PropertyEditor.js.map +1 -1
  22. package/dist/tsconfig.tsbuildinfo +1 -1
  23. package/dist/web/AppIndex.pack.js +79 -10
  24. package/dist/web/AppIndex.pack.js.map +1 -1
  25. package/dist/web/AppIndex.pack.min.js +34 -9
  26. package/dist/web/AppIndex.pack.min.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/site-editor/blocks/Carousel.tsx +60 -0
  29. package/src/site-editor/blocks/VerticalImageBox.tsx +1 -2
  30. package/src/site-editor/editor/HtmlPageEditor.tsx +2 -0
  31. package/src/site-editor/editor/SelectedElement.tsx +1 -1
  32. package/src/site-editor/editor/WebSitePageEditor.tsx +1 -1
  33. package/src/site-editor/properties/controls/PropertyEditor.tsx +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.2.149",
3
+ "version": "1.2.151",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,60 @@
1
+ /* eslint-disable @typescript-eslint/naming-convention */
2
+ /* eslint-disable @typescript-eslint/no-namespace */
3
+ import XNode from "@web-atoms/core/dist/core/XNode";
4
+ import { Block } from "./Block";
5
+ import { StylerSets } from "../styler/StylerSets";
6
+ import styled from "@web-atoms/core/dist/style/styled";
7
+ import { defaultImageSrc } from "./defaultImage";
8
+
9
+ declare global {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ "carousel-slider": any;
13
+ }
14
+ }
15
+ }
16
+
17
+ StylerSets.register("low", styled.css `
18
+
19
+ display: flex;
20
+ flex-direction: row;
21
+
22
+ & > *:empty:before {
23
+ background-color: #ddd;
24
+ color: #000;
25
+ font-size: 16px;
26
+ font-weight: bold;
27
+ font-family: 'Courier New', Courier, monospace;
28
+ height: 100%;
29
+ display: flex;
30
+ justify-items: center;
31
+ align-items: center;
32
+ min-height: 30px;
33
+ opacity: 0.3;
34
+ border-radius: 3px;
35
+ white-space: nowrap;
36
+ overflow: hidden;
37
+ text-overflow: ellipsis;
38
+ content: "Container";
39
+
40
+ }
41
+ `.expand("carousel-slider"));
42
+
43
+ export const Carousel = Block({
44
+ className: "fad fa-gallery-thumbnails",
45
+ title: "Add Carousel",
46
+ factory: () => <carousel-slider>
47
+ <section styler-layout="vertical-image-box">
48
+ <img src={defaultImageSrc}/>
49
+ <section></section>
50
+ </section>
51
+ <section styler-layout="vertical-image-box">
52
+ <img src={defaultImageSrc}/>
53
+ <section></section>
54
+ </section>
55
+ <section styler-layout="vertical-image-box">
56
+ <img src={defaultImageSrc}/>
57
+ <section></section>
58
+ </section>
59
+ </carousel-slider>
60
+ });
@@ -14,11 +14,10 @@ StylerSets.register("low", styled.css `
14
14
  margin: ${stylerVars.sizeDefault};
15
15
  border-radius: ${stylerVars.sizeDefault};
16
16
  justify-items: center;
17
- align-items: stretch;
17
+ align-items: center;
18
18
  contain: content;
19
19
 
20
20
  & > img {
21
- align-self: stretch;
22
21
  border-radius: ${stylerVars.sizeLarge};
23
22
  max-width: 100%;
24
23
  }
@@ -35,6 +35,7 @@ import { PriceTable } from "../blocks/PriceBox";
35
35
  import { BindableProperty } from "@web-atoms/core/dist/core/BindableProperty";
36
36
  import { Billboard } from "../blocks/Billboard";
37
37
  import { OutlineText } from "../blocks/OutlineText";
38
+ import { Carousel } from "../blocks/Carousel";
38
39
 
39
40
  styled.css `
40
41
  display: grid;
@@ -288,6 +289,7 @@ export default class HtmlPageEditor extends AtomControl {
288
289
  <TypeWriterComponent/>
289
290
  <Billboard/>
290
291
  <OutlineText/>
292
+ <Carousel/>
291
293
  </EditorToolbar>
292
294
  <div data-element="editor"
293
295
  style-max-width={Bind.oneWay(() => this.maxWidth > 768 ? "" : this.maxWidth + "px" )}>
@@ -63,7 +63,7 @@ export class SelectedElement {
63
63
 
64
64
  public getDropTarget(dragged: HTMLElement, target: HTMLElement) {
65
65
 
66
- const isDropTarget = /^(main|section)$/i;
66
+ const isDropTarget = /^(main|section|carousel\-slider)$/i;
67
67
 
68
68
  // check if dragged has root only....
69
69
  if (isDropTarget.test(dragged?.tagName)) {
@@ -53,7 +53,7 @@ export default class WebSitePageEditor extends HtmlPageEditor {
53
53
  script.setAttribute("defer", "true");
54
54
  this.htmlDocument.head.appendChild(script);
55
55
  }
56
- script.setAttribute("src", "//cdn.jsdelivr.net/npm/@social-mail/web-components@latest/dist/components.js");
56
+ script.setAttribute("src", "//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.18/dist/components.webpack.js");
57
57
  }
58
58
 
59
59
 
@@ -30,7 +30,7 @@ export const BindStyleCustom = AtomControl.registerProperty("data-style-property
30
30
  grid-template-rows: auto auto auto;
31
31
  justify-items: stretch;
32
32
  align-items: center;
33
- column-gap: 5px;
33
+ gap: 5px;
34
34
  max-width: 200px;
35
35
  & > * {
36
36
  width: 100%;
@@ -64,10 +64,12 @@ export const BindStyleCustom = AtomControl.registerProperty("data-style-property
64
64
 
65
65
  styled.css `
66
66
 
67
+ border-bottom: solid 1px #a0a0a050;
68
+
67
69
  & select {
68
70
  outline: none;
69
71
  border: none;
70
- background-color: #e7e7e775;
72
+ background-color: #e7e7e734;
71
73
  border-radius: 9999px;
72
74
  padding-left: 10px;
73
75
  padding-right: 10px;