@social-mail/social-mail-client 1.2.375 → 1.2.376
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 +45 -11
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +30 -3
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/websites/studio/WebSiteStudioPage.d.ts.map +1 -1
- package/dist/common/pages/websites/studio/WebSiteStudioPage.js +2 -1
- package/dist/common/pages/websites/studio/WebSiteStudioPage.js.map +1 -1
- package/dist/site-editor/blocks/Block.js +28 -1
- package/dist/site-editor/blocks/Block.js.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.d.ts +1 -0
- package/dist/site-editor/editor/WebSitePageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.js +15 -9
- package/dist/site-editor/editor/WebSitePageEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +45 -11
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +30 -3
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/pages/websites/studio/WebSiteStudioPage.tsx +2 -1
- package/src/site-editor/blocks/Block.tsx +28 -1
- package/src/site-editor/editor/WebSitePageEditor.tsx +17 -5
|
@@ -46823,7 +46823,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/co
|
|
|
46823
46823
|
|
|
46824
46824
|
& nav {
|
|
46825
46825
|
|
|
46826
|
-
menu {
|
|
46826
|
+
input:not(:checked)+nav menu {
|
|
46827
46827
|
position: relative;
|
|
46828
46828
|
padding-inline-start: 0;
|
|
46829
46829
|
margin: 0;
|
|
@@ -46855,6 +46855,33 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/co
|
|
|
46855
46855
|
}
|
|
46856
46856
|
}
|
|
46857
46857
|
|
|
46858
|
+
input:checked+nav > menu {
|
|
46859
|
+
position: relative;
|
|
46860
|
+
padding-inline-start: 0;
|
|
46861
|
+
margin: 0;
|
|
46862
|
+
|
|
46863
|
+
& > ul {
|
|
46864
|
+
background-color: canvas;
|
|
46865
|
+
margin: 10px;
|
|
46866
|
+
border-radius: 5px;
|
|
46867
|
+
border: solid 1px lightgray;
|
|
46868
|
+
padding-inline-start: 0;
|
|
46869
|
+
}
|
|
46870
|
+
|
|
46871
|
+
& li {
|
|
46872
|
+
list-style-type: none;
|
|
46873
|
+
|
|
46874
|
+
padding: 10px;
|
|
46875
|
+
margin: 5px;
|
|
46876
|
+
|
|
46877
|
+
&:hover {
|
|
46878
|
+
background-color: var(--hover-color);
|
|
46879
|
+
color: var(--hover-text-color);
|
|
46880
|
+
}
|
|
46881
|
+
}
|
|
46882
|
+
}
|
|
46883
|
+
|
|
46884
|
+
|
|
46858
46885
|
}
|
|
46859
46886
|
|
|
46860
46887
|
`.expand("[styler-element=navbar]"));
|
|
@@ -51557,10 +51584,10 @@ System.register(["./apiPath"], function (_export, _context) {
|
|
|
51557
51584
|
|
|
51558
51585
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/fileUrl");
|
|
51559
51586
|
|
|
51560
|
-
System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlPageEditor", "../../web/page/files/media/ChooseMediaPage", "@web-atoms/web-controls/dist/PageNavigator", "../styler/StylerSet", "@web-atoms/core/dist/core/InjectProperty", "../../web/page/files/service/CloudFileService", "@web-atoms/core/dist/view-model/Action", "../../code-editor/CodeEditorPage", "
|
|
51587
|
+
System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlPageEditor", "../../web/page/files/media/ChooseMediaPage", "@web-atoms/web-controls/dist/PageNavigator", "../styler/StylerSet", "@web-atoms/core/dist/core/InjectProperty", "../../web/page/files/service/CloudFileService", "@web-atoms/core/dist/view-model/Action", "../../code-editor/CodeEditorPage", "@web-atoms/core/dist/services/FetchBuilder", "../../common/fileUrl"], function (_export, _context) {
|
|
51561
51588
|
"use strict";
|
|
51562
51589
|
|
|
51563
|
-
var __awaiter, __decorate, __metadata, BindableProperty, HtmlPageEditor, ChooseMediaPage, PageNavigator, StylerSet, InjectProperty, CloudFileService, Action, CodeEditorPage,
|
|
51590
|
+
var __awaiter, __decorate, __metadata, BindableProperty, HtmlPageEditor, ChooseMediaPage, PageNavigator, StylerSet, InjectProperty, CloudFileService, Action, CodeEditorPage, FetchBuilder, imageUrl, srcSetUrl, WebSitePageEditor;
|
|
51564
51591
|
_export("default", void 0);
|
|
51565
51592
|
return {
|
|
51566
51593
|
setters: [function (_tslib) {
|
|
@@ -51585,8 +51612,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
51585
51612
|
Action = _webAtomsCoreDistViewModelAction.default;
|
|
51586
51613
|
}, function (_codeEditorCodeEditorPage) {
|
|
51587
51614
|
CodeEditorPage = _codeEditorCodeEditorPage.default;
|
|
51588
|
-
}, function (_commonApiPath) {
|
|
51589
|
-
apiPath = _commonApiPath.apiPath;
|
|
51590
51615
|
}, function (_webAtomsCoreDistServicesFetchBuilder) {
|
|
51591
51616
|
FetchBuilder = _webAtomsCoreDistServicesFetchBuilder.default;
|
|
51592
51617
|
}, function (_commonFileUrl) {
|
|
@@ -51598,6 +51623,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
51598
51623
|
constructor() {
|
|
51599
51624
|
super(...arguments);
|
|
51600
51625
|
this.folder = null;
|
|
51626
|
+
this.selectedFile = null;
|
|
51601
51627
|
}
|
|
51602
51628
|
changeImage() {
|
|
51603
51629
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -51721,7 +51747,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
51721
51747
|
});
|
|
51722
51748
|
file = yield this.cloudFileService.getFile(file.appFileID);
|
|
51723
51749
|
}
|
|
51724
|
-
yield this.addStyleSheet(file);
|
|
51750
|
+
yield this.addStyleSheet(file, "styles/vars.css");
|
|
51725
51751
|
});
|
|
51726
51752
|
}
|
|
51727
51753
|
setStylerSheet() {
|
|
@@ -51745,14 +51771,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
51745
51771
|
}
|
|
51746
51772
|
}
|
|
51747
51773
|
const stylerCSS = yield this.createFile("styler.css", StylerSet.instance.toString());
|
|
51748
|
-
yield this.addStyleSheet(stylerCSS);
|
|
51774
|
+
yield this.addStyleSheet(stylerCSS, "styles/styler.css");
|
|
51749
51775
|
let vars = yield this.cloudFileService.children(this.folder.appFileID, "styles/vars.css").firstOrDefault();
|
|
51750
51776
|
if (!vars) {
|
|
51751
51777
|
vars = yield this.createFile("vars.css", `* {
|
|
51752
51778
|
${StylerSet.instance.varsCss}
|
|
51753
51779
|
}`);
|
|
51754
51780
|
}
|
|
51755
|
-
yield this.addStyleSheet(vars);
|
|
51781
|
+
yield this.addStyleSheet(vars, "styles/vars.css");
|
|
51756
51782
|
let script = this.htmlDocument.querySelector("script[web-components]");
|
|
51757
51783
|
if (!script) {
|
|
51758
51784
|
script = this.htmlDocument.createElement("script");
|
|
@@ -51761,14 +51787,21 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
51761
51787
|
script.setAttribute("defer", "true");
|
|
51762
51788
|
this.htmlDocument.head.appendChild(this.htmlDocument.createTextNode("\n"));
|
|
51763
51789
|
this.htmlDocument.head.appendChild(script);
|
|
51790
|
+
this.htmlDocument.head.appendChild(this.htmlDocument.createTextNode("\n"));
|
|
51764
51791
|
}
|
|
51765
51792
|
script.setAttribute("src", "//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.72/dist/components.webpack.js");
|
|
51766
51793
|
});
|
|
51767
51794
|
}
|
|
51768
|
-
addStyleSheet(file) {
|
|
51795
|
+
addStyleSheet(file, path) {
|
|
51769
51796
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51797
|
+
const filePath = this.selectedFile.path.substring(this.folder.path.length);
|
|
51798
|
+
let folder = filePath.split("/").length - 2;
|
|
51799
|
+
while (folder > 0) {
|
|
51800
|
+
path = "../" + path;
|
|
51801
|
+
folder--;
|
|
51802
|
+
}
|
|
51770
51803
|
const document = this.htmlDocument;
|
|
51771
|
-
const href =
|
|
51804
|
+
const href = "./" + path;
|
|
51772
51805
|
let link;
|
|
51773
51806
|
for (const iterator of Array.from(document.querySelectorAll(`link[rel="stylesheet"][styler-css]`))) {
|
|
51774
51807
|
if (iterator.getAttribute("styler-css") === file.name) {
|
|
@@ -52466,7 +52499,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
52466
52499
|
}
|
|
52467
52500
|
}), XNode.create(WebSitePageEditor, {
|
|
52468
52501
|
class: "file-list",
|
|
52469
|
-
|
|
52502
|
+
selectedFile: Bind.oneWay(() => this.selectedFile),
|
|
52503
|
+
baseUrl: Bind.oneWay(() => apiPath(`/api/site/draft/${this.root.appFileID}/`)),
|
|
52470
52504
|
folder: this.root,
|
|
52471
52505
|
presenter: Bind.presenter(c => this.htmlEditor = c),
|
|
52472
52506
|
"event-html-page-changed": ce => this.pageContent = ce.detail,
|