@social-mail/social-mail-client 1.4.12 → 1.4.13
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/dist/admin/AdminAppIndex.pack.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/public/channel/ChannelApp.pack.js +1 -1
- package/dist/public/channel/ChannelApp.pack.min.js +1 -1
- package/dist/public/preview/pdf/PreviewPDF.pack.js +1 -1
- package/dist/public/preview/pdf/PreviewPDF.pack.min.js +1 -1
- package/dist/public/preview/video/PreviewVideo.pack.js +1 -1
- package/dist/public/preview/video/PreviewVideo.pack.min.js +1 -1
- package/dist/public/preview/zip/DownloadZip.pack.js +1 -1
- package/dist/public/preview/zip/DownloadZip.pack.min.js +1 -1
- package/dist/public/store/StoreApp.pack.js +1 -1
- package/dist/public/store/StoreApp.pack.min.js +1 -1
- package/dist/site-editor/blocks/Grid.d.ts +2 -0
- package/dist/site-editor/blocks/Grid.d.ts.map +1 -0
- package/dist/site-editor/blocks/Grid.js +37 -0
- package/dist/site-editor/blocks/Grid.js.map +1 -0
- package/dist/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.js +5 -3
- package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
- package/dist/site-editor/properties/groups/LayoutEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/groups/LayoutEditor.js +32 -0
- package/dist/site-editor/properties/groups/LayoutEditor.js.map +1 -1
- package/dist/site-editor/styler/StylerSet.d.ts +8 -0
- package/dist/site-editor/styler/StylerSet.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/layouts/items-position/itemsPosition.d.ts +8 -0
- package/dist/site-editor/styler/properties/layouts/items-position/itemsPosition.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/layouts/items-position/itemsPosition.js +92 -4
- package/dist/site-editor/styler/properties/layouts/items-position/itemsPosition.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +171 -9
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +14 -6
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/style/GlobalStyle.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/package.json +1 -1
- package/src/site-editor/blocks/Grid.tsx +29 -0
- package/src/site-editor/editor/HtmlPageEditor.tsx +2 -0
- package/src/site-editor/properties/groups/LayoutEditor.tsx +44 -0
- package/src/site-editor/styler/properties/layouts/items-position/itemsPosition.ts +97 -1
- package/src/style/GlobalStyle.ts +1 -1
|
@@ -49101,7 +49101,7 @@ System.register(["@web-atoms/core/dist/core/types", "@web-atoms/core/dist/core/A
|
|
|
49101
49101
|
execute: function () {
|
|
49102
49102
|
_export("___UMD", ___UMD = UMD);
|
|
49103
49103
|
addLinkTag("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap");
|
|
49104
|
-
addLinkTag("https://npm-git.azureedge.net/npm/package/@c8private/fa-icons@6.
|
|
49104
|
+
addLinkTag("https://npm-git.azureedge.net/npm/package/@c8private/fa-icons@6.7.1/css/all.min.css");
|
|
49105
49105
|
addLinkTag("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0");
|
|
49106
49106
|
addLinkTag("https://cdn.jsdelivr.net/npm/file-icon-vectors@1.0.0/dist/file-icon-vivid.min.css");
|
|
49107
49107
|
styled.css`
|
|
@@ -2990,7 +2990,7 @@ and limitations under the License.
|
|
|
2990
2990
|
}
|
|
2991
2991
|
} */
|
|
2992
2992
|
|
|
2993
|
-
`.withId("default-app-style").withOrder("medium").installGlobal()}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/style/OverrideAppStyle");System.register(["@web-atoms/core/dist/core/types","@web-atoms/core/dist/core/AtomList","./OverrideAppStyle","@web-atoms/core/dist/style/styled","@web-atoms/data-styles/data-styles"],(function(_export,_context){"use strict";var UMD,styled,___UMD;function addLinkTag(href,integrity,rel="stylesheet"){if(!document.head.querySelector(`[href="${href}"]`)){const fa=document.createElement("link");fa.href=href;fa.crossOrigin="anonymous";fa.as="style";fa.rel="preload";if(integrity){fa.integrity=integrity}fa.onload=()=>{fa.onload=null;fa.rel=rel};document.head.insertBefore(fa,document.head.firstElementChild)}}return{setters:[function(_webAtomsCoreDistCoreTypes){UMD=_webAtomsCoreDistCoreTypes.UMD},function(_webAtomsCoreDistCoreAtomList){},function(_OverrideAppStyle){},function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_webAtomsDataStylesDataStyles){}],execute:function(){_export("___UMD",___UMD=UMD);addLinkTag("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap");addLinkTag("https://npm-git.azureedge.net/npm/package/@c8private/fa-icons@6.
|
|
2993
|
+
`.withId("default-app-style").withOrder("medium").installGlobal()}}}));AmdLoader.instance.setup("@social-mail/social-mail-client/dist/style/OverrideAppStyle");System.register(["@web-atoms/core/dist/core/types","@web-atoms/core/dist/core/AtomList","./OverrideAppStyle","@web-atoms/core/dist/style/styled","@web-atoms/data-styles/data-styles"],(function(_export,_context){"use strict";var UMD,styled,___UMD;function addLinkTag(href,integrity,rel="stylesheet"){if(!document.head.querySelector(`[href="${href}"]`)){const fa=document.createElement("link");fa.href=href;fa.crossOrigin="anonymous";fa.as="style";fa.rel="preload";if(integrity){fa.integrity=integrity}fa.onload=()=>{fa.onload=null;fa.rel=rel};document.head.insertBefore(fa,document.head.firstElementChild)}}return{setters:[function(_webAtomsCoreDistCoreTypes){UMD=_webAtomsCoreDistCoreTypes.UMD},function(_webAtomsCoreDistCoreAtomList){},function(_OverrideAppStyle){},function(_webAtomsCoreDistStyleStyled){styled=_webAtomsCoreDistStyleStyled.default},function(_webAtomsDataStylesDataStyles){}],execute:function(){_export("___UMD",___UMD=UMD);addLinkTag("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap");addLinkTag("https://npm-git.azureedge.net/npm/package/@c8private/fa-icons@6.7.1/css/all.min.css");addLinkTag("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0");addLinkTag("https://cdn.jsdelivr.net/npm/file-icon-vectors@1.0.0/dist/file-icon-vivid.min.css");styled.css`
|
|
2994
2994
|
|
|
2995
2995
|
:root {
|
|
2996
2996
|
--primary-color: #294D4A;
|
package/package.json
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
2
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
3
|
+
import { stylerVars } from "../styler/Styler";
|
|
4
|
+
import { StylerSets } from "../styler/StylerSets";
|
|
5
|
+
import { Block } from "./Block";
|
|
6
|
+
|
|
7
|
+
StylerSets.register("low", styled.css `
|
|
8
|
+
display: grid;
|
|
9
|
+
gap: ${stylerVars.sizeDefault};
|
|
10
|
+
padding: ${stylerVars.sizeDefault};
|
|
11
|
+
border-radius: ${stylerVars.sizeDefault};
|
|
12
|
+
justify-items: center;
|
|
13
|
+
align-items: stretch;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
`.expand("[styler-layout=grid]"));
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
export const GridBox = Block({
|
|
19
|
+
className: "fa-sharp-duotone fa-solid fa-grid-5",
|
|
20
|
+
title: "Add Grid Box",
|
|
21
|
+
// text: "\uf73f",
|
|
22
|
+
factory: () => <section
|
|
23
|
+
styler-layout="grid">
|
|
24
|
+
<section></section>
|
|
25
|
+
<section></section>
|
|
26
|
+
</section>
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
|
|
@@ -54,6 +54,7 @@ import { WebComponents } from "./webComponentsPath";
|
|
|
54
54
|
import UndoRedo from "./UndoRedo";
|
|
55
55
|
import DomHelper from "./DomHelper";
|
|
56
56
|
import { FlipBox } from "../blocks/FlipBox";
|
|
57
|
+
import { GridBox } from "../blocks/Grid";
|
|
57
58
|
|
|
58
59
|
styled.css `
|
|
59
60
|
display: grid;
|
|
@@ -398,6 +399,7 @@ export default class HtmlPageEditor extends AtomControl {
|
|
|
398
399
|
<ColumnBox/>
|
|
399
400
|
<Columns2/>
|
|
400
401
|
<Columns3/>
|
|
402
|
+
<GridBox/>
|
|
401
403
|
<List/>
|
|
402
404
|
<ImageLink/>
|
|
403
405
|
<LinkButton/>
|
|
@@ -14,6 +14,14 @@ export default function LayoutEditor () {
|
|
|
14
14
|
style-display={BindEditor.oneWay((e) => e.selection.currentStyle.display === "flex")}
|
|
15
15
|
label="Direction"
|
|
16
16
|
property={properties.stylerFlexDirection}/>
|
|
17
|
+
<DropDownProperty
|
|
18
|
+
style-display={BindEditor.oneWay((e) => e.selection.currentStyle.display === "grid")}
|
|
19
|
+
label="Template Rows"
|
|
20
|
+
property={properties.stylerGridTemplateRows}/>
|
|
21
|
+
<DropDownProperty
|
|
22
|
+
style-display={BindEditor.oneWay((e) => e.selection.currentStyle.display === "grid")}
|
|
23
|
+
label="Template Columns"
|
|
24
|
+
property={properties.stylerGridTemplateColumns}/>
|
|
17
25
|
<DropDownProperty
|
|
18
26
|
style-display={BindEditor.oneWay((e) => /flex|grid/i.test(e.selection.currentStyle.display))}
|
|
19
27
|
label="Justify Content"
|
|
@@ -57,6 +65,42 @@ export default function LayoutEditor () {
|
|
|
57
65
|
property={properties.stylerJustifySelf}
|
|
58
66
|
/>
|
|
59
67
|
|
|
68
|
+
<DropDownProperty
|
|
69
|
+
style-display={BindEditor.oneWay((e) => /grid/i.test(e.selection.parentStyle.display))}
|
|
70
|
+
label="Row"
|
|
71
|
+
property={properties.stylerGridRow}
|
|
72
|
+
/>
|
|
73
|
+
|
|
74
|
+
<DropDownProperty
|
|
75
|
+
style-display={BindEditor.oneWay((e) => /grid/i.test(e.selection.parentStyle.display))}
|
|
76
|
+
label="Row Start"
|
|
77
|
+
property={properties.stylerGridRowStart}
|
|
78
|
+
/>
|
|
79
|
+
|
|
80
|
+
<DropDownProperty
|
|
81
|
+
style-display={BindEditor.oneWay((e) => /grid/i.test(e.selection.parentStyle.display))}
|
|
82
|
+
label="Row End"
|
|
83
|
+
property={properties.stylerGridRowEnd}
|
|
84
|
+
/>
|
|
85
|
+
|
|
86
|
+
<DropDownProperty
|
|
87
|
+
style-display={BindEditor.oneWay((e) => /grid/i.test(e.selection.parentStyle.display))}
|
|
88
|
+
label="Column"
|
|
89
|
+
property={properties.stylerGridColumn}
|
|
90
|
+
/>
|
|
91
|
+
|
|
92
|
+
<DropDownProperty
|
|
93
|
+
style-display={BindEditor.oneWay((e) => /grid/i.test(e.selection.parentStyle.display))}
|
|
94
|
+
label="Column Start"
|
|
95
|
+
property={properties.stylerGridColumnStart}
|
|
96
|
+
/>
|
|
97
|
+
|
|
98
|
+
<DropDownProperty
|
|
99
|
+
style-display={BindEditor.oneWay((e) => /grid/i.test(e.selection.parentStyle.display))}
|
|
100
|
+
label="Column End"
|
|
101
|
+
property={properties.stylerGridColumnEnd}
|
|
102
|
+
/>
|
|
103
|
+
|
|
60
104
|
{/*
|
|
61
105
|
// This is pending
|
|
62
106
|
<NumberProperty
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
1
2
|
import { StylerProperty, createSet, createVarSet, pair, sizeVarList } from "../../../Styler";
|
|
2
3
|
|
|
3
4
|
export const itemPositions = {
|
|
@@ -53,5 +54,100 @@ export const itemPositions = {
|
|
|
53
54
|
stylerRowGap: new StylerProperty("styler-row-gap", createVarSet("row-gap", sizeVarList)),
|
|
54
55
|
stylerColumnGap: new StylerProperty("styler-column-gap", createVarSet("column-gap", sizeVarList)),
|
|
55
56
|
|
|
56
|
-
stylerFlexWrap: new StylerProperty("styler-flex-wrap", createSet("flex-wrap", ["none", "wrap"]))
|
|
57
|
+
stylerFlexWrap: new StylerProperty("styler-flex-wrap", createSet("flex-wrap", ["none", "wrap"])),
|
|
58
|
+
|
|
59
|
+
stylerGridTemplateRows: new StylerProperty("styler-grid-template-rows", {
|
|
60
|
+
"custom": styled.css `grid-template-rows: var(--styler-grid-template-rows);`,
|
|
61
|
+
"auto": styled.css `grid-template-rows: auto;`,
|
|
62
|
+
"masonry": styled.css `grid-template-rows: masonry;`,
|
|
63
|
+
"subgrid": styled.css `grid-template-rows: subgrid;`,
|
|
64
|
+
"row-1": styled.css `grid-template-rows: 1fr;`,
|
|
65
|
+
"rows-2": styled.css `grid-template-rows: 1fr 1fr;`,
|
|
66
|
+
"rows-3": styled.css `grid-template-rows: 1fr 1fr 1fr;`,
|
|
67
|
+
"rows-4": styled.css `grid-template-rows: 1fr 1fr 1fr 1fr;`,
|
|
68
|
+
"rows-3-auto": styled.css `grid-template-rows: auto 1fr auto;`,
|
|
69
|
+
}),
|
|
70
|
+
|
|
71
|
+
stylerGridTemplateColumns: new StylerProperty("styler-grid-template-columns", {
|
|
72
|
+
"custom": styled.css `grid-template-columns: var(--styler-grid-template-columns);`,
|
|
73
|
+
"auto": styled.css `grid-template-columns: auto;`,
|
|
74
|
+
"masonry": styled.css `grid-template-columns: masonry;`,
|
|
75
|
+
"subgrid": styled.css `grid-template-columns: subgrid;`,
|
|
76
|
+
"column-1": styled.css `grid-template-columns: 1fr;`,
|
|
77
|
+
"columns-2": styled.css `grid-template-columns: 1fr 1fr;`,
|
|
78
|
+
"columns-3": styled.css `grid-template-columns: 1fr 1fr 1fr;`,
|
|
79
|
+
"columns-4": styled.css `grid-template-columns: 1fr 1fr 1fr 1fr;`,
|
|
80
|
+
"columns-3-auto": styled.css `grid-template-columns: auto 1fr auto;`,
|
|
81
|
+
}),
|
|
82
|
+
|
|
83
|
+
stylerGridRow: new StylerProperty("styler-grid-row", {
|
|
84
|
+
"custom": styled.css `grid-row: var(--styler-grid-row);`,
|
|
85
|
+
"row1": styled.css `grid-row: 1;`,
|
|
86
|
+
"row2": styled.css `grid-row: 2;`,
|
|
87
|
+
"row3": styled.css `grid-row: 3;`,
|
|
88
|
+
"row4": styled.css `grid-row: 4;`,
|
|
89
|
+
"row1-span2": styled.css `grid-row: 1 / span 2;`,
|
|
90
|
+
"row1-span3": styled.css `grid-row: 1 / span 3;`,
|
|
91
|
+
"row1-span4": styled.css `grid-row: 1 / span 4;`,
|
|
92
|
+
"row2-span2": styled.css `grid-row: 2 / span 2;`,
|
|
93
|
+
"row2-span3": styled.css `grid-row: 2 / span 3;`,
|
|
94
|
+
"row2-span4": styled.css `grid-row: 2 / span 4;`,
|
|
95
|
+
"row3-span2": styled.css `grid-row: 3 / span 2;`,
|
|
96
|
+
"row3-span3": styled.css `grid-row: 3 / span 3;`,
|
|
97
|
+
"row3-span4": styled.css `grid-row: 3 / span 4;`,
|
|
98
|
+
"row4-span2": styled.css `grid-row: 4 / span 2;`,
|
|
99
|
+
"row4-span3": styled.css `grid-row: 4 / span 3;`,
|
|
100
|
+
"row4-span4": styled.css `grid-row: 4 / span 4;`,
|
|
101
|
+
}),
|
|
102
|
+
|
|
103
|
+
stylerGridRowStart: new StylerProperty("styler-grid-row-start", {
|
|
104
|
+
"custom": styled.css `grid-row-start: var(--styler-grid-row-start);`,
|
|
105
|
+
"row1": styled.css `grid-row-start: 1;`,
|
|
106
|
+
"row2": styled.css `grid-row-start: 2;`,
|
|
107
|
+
"row3": styled.css `grid-row-start: 3;`,
|
|
108
|
+
"row4": styled.css `grid-row-start: 4;`,
|
|
109
|
+
}),
|
|
110
|
+
|
|
111
|
+
stylerGridRowEnd: new StylerProperty("styler-grid-row-end", {
|
|
112
|
+
"custom": styled.css `grid-row-end: var(--styler-grid-row-end);`,
|
|
113
|
+
"span2": styled.css `grid-row-start: span 2;`,
|
|
114
|
+
"span3": styled.css `grid-row-start: span 3;`,
|
|
115
|
+
"span4": styled.css `grid-row-start: span 4;`,
|
|
116
|
+
}),
|
|
117
|
+
|
|
118
|
+
stylerGridColumn: new StylerProperty("styler-grid-column", {
|
|
119
|
+
"custom": styled.css `grid-column: var(--styler-grid-column);`,
|
|
120
|
+
"column1": styled.css `grid-column: 1;`,
|
|
121
|
+
"column2": styled.css `grid-column: 2;`,
|
|
122
|
+
"column3": styled.css `grid-column: 3;`,
|
|
123
|
+
"column4": styled.css `grid-column: 4;`,
|
|
124
|
+
"column1-span2": styled.css `grid-column: 1 / span 2;`,
|
|
125
|
+
"column1-span3": styled.css `grid-column: 1 / span 3;`,
|
|
126
|
+
"column1-span4": styled.css `grid-column: 1 / span 4;`,
|
|
127
|
+
"column2-span2": styled.css `grid-column: 2 / span 2;`,
|
|
128
|
+
"column2-span3": styled.css `grid-column: 2 / span 3;`,
|
|
129
|
+
"column2-span4": styled.css `grid-column: 2 / span 4;`,
|
|
130
|
+
"column3-span2": styled.css `grid-column: 3 / span 2;`,
|
|
131
|
+
"column3-span3": styled.css `grid-column: 3 / span 3;`,
|
|
132
|
+
"column3-span4": styled.css `grid-column: 3 / span 4;`,
|
|
133
|
+
"column4-span2": styled.css `grid-column: 4 / span 2;`,
|
|
134
|
+
"column4-span3": styled.css `grid-column: 4 / span 3;`,
|
|
135
|
+
"column4-span4": styled.css `grid-column: 4 / span 4;`,
|
|
136
|
+
}),
|
|
137
|
+
|
|
138
|
+
stylerGridColumnStart: new StylerProperty("styler-grid-column-start", {
|
|
139
|
+
"custom": styled.css `grid-column-start: var(--styler-grid-column-start);`,
|
|
140
|
+
"column1": styled.css `grid-column-start: 1;`,
|
|
141
|
+
"column2": styled.css `grid-column-start: 2;`,
|
|
142
|
+
"column3": styled.css `grid-column-start: 3;`,
|
|
143
|
+
"column4": styled.css `grid-column-start: 4;`,
|
|
144
|
+
}),
|
|
145
|
+
|
|
146
|
+
stylerGridColumnEnd: new StylerProperty("styler-grid-column-end", {
|
|
147
|
+
"custom": styled.css `grid-column-end: var(--styler-grid-column-end);`,
|
|
148
|
+
"span2": styled.css `grid-column-start: span 2;`,
|
|
149
|
+
"span3": styled.css `grid-column-start: span 3;`,
|
|
150
|
+
"span4": styled.css `grid-column-start: span 4;`,
|
|
151
|
+
}),
|
|
152
|
+
|
|
57
153
|
};
|
package/src/style/GlobalStyle.ts
CHANGED
|
@@ -30,7 +30,7 @@ function addLinkTag(href, integrity?, rel = "stylesheet") {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
addLinkTag("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap");
|
|
33
|
-
addLinkTag("https://npm-git.azureedge.net/npm/package/@c8private/fa-icons@6.
|
|
33
|
+
addLinkTag("https://npm-git.azureedge.net/npm/package/@c8private/fa-icons@6.7.1/css/all.min.css");
|
|
34
34
|
addLinkTag("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0");
|
|
35
35
|
addLinkTag("https://cdn.jsdelivr.net/npm/file-icon-vectors@1.0.0/dist/file-icon-vivid.min.css");
|
|
36
36
|
|