@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
|
@@ -42155,7 +42155,7 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/co
|
|
|
42155
42155
|
|
|
42156
42156
|
& nav {
|
|
42157
42157
|
|
|
42158
|
-
menu {
|
|
42158
|
+
input:not(:checked)+nav menu {
|
|
42159
42159
|
position: relative;
|
|
42160
42160
|
padding-inline-start: 0;
|
|
42161
42161
|
margin: 0;
|
|
@@ -42187,6 +42187,33 @@ System.register(["@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/co
|
|
|
42187
42187
|
}
|
|
42188
42188
|
}
|
|
42189
42189
|
|
|
42190
|
+
input:checked+nav > menu {
|
|
42191
|
+
position: relative;
|
|
42192
|
+
padding-inline-start: 0;
|
|
42193
|
+
margin: 0;
|
|
42194
|
+
|
|
42195
|
+
& > ul {
|
|
42196
|
+
background-color: canvas;
|
|
42197
|
+
margin: 10px;
|
|
42198
|
+
border-radius: 5px;
|
|
42199
|
+
border: solid 1px lightgray;
|
|
42200
|
+
padding-inline-start: 0;
|
|
42201
|
+
}
|
|
42202
|
+
|
|
42203
|
+
& li {
|
|
42204
|
+
list-style-type: none;
|
|
42205
|
+
|
|
42206
|
+
padding: 10px;
|
|
42207
|
+
margin: 5px;
|
|
42208
|
+
|
|
42209
|
+
&:hover {
|
|
42210
|
+
background-color: var(--hover-color);
|
|
42211
|
+
color: var(--hover-text-color);
|
|
42212
|
+
}
|
|
42213
|
+
}
|
|
42214
|
+
}
|
|
42215
|
+
|
|
42216
|
+
|
|
42190
42217
|
}
|
|
42191
42218
|
|
|
42192
42219
|
`.expand("[styler-element=navbar]"));
|
|
@@ -47039,10 +47066,10 @@ System.register(["./apiPath"], function (_export, _context) {
|
|
|
47039
47066
|
|
|
47040
47067
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/fileUrl");
|
|
47041
47068
|
|
|
47042
|
-
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", "
|
|
47069
|
+
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) {
|
|
47043
47070
|
"use strict";
|
|
47044
47071
|
|
|
47045
|
-
var __awaiter, __decorate, __metadata, BindableProperty, HtmlPageEditor, ChooseMediaPage, PageNavigator, StylerSet, InjectProperty, CloudFileService, Action, CodeEditorPage,
|
|
47072
|
+
var __awaiter, __decorate, __metadata, BindableProperty, HtmlPageEditor, ChooseMediaPage, PageNavigator, StylerSet, InjectProperty, CloudFileService, Action, CodeEditorPage, FetchBuilder, imageUrl, srcSetUrl, WebSitePageEditor;
|
|
47046
47073
|
_export("default", void 0);
|
|
47047
47074
|
return {
|
|
47048
47075
|
setters: [function (_tslib) {
|
|
@@ -47067,8 +47094,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
47067
47094
|
Action = _webAtomsCoreDistViewModelAction.default;
|
|
47068
47095
|
}, function (_codeEditorCodeEditorPage) {
|
|
47069
47096
|
CodeEditorPage = _codeEditorCodeEditorPage.default;
|
|
47070
|
-
}, function (_commonApiPath) {
|
|
47071
|
-
apiPath = _commonApiPath.apiPath;
|
|
47072
47097
|
}, function (_webAtomsCoreDistServicesFetchBuilder) {
|
|
47073
47098
|
FetchBuilder = _webAtomsCoreDistServicesFetchBuilder.default;
|
|
47074
47099
|
}, function (_commonFileUrl) {
|
|
@@ -47080,6 +47105,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
47080
47105
|
constructor() {
|
|
47081
47106
|
super(...arguments);
|
|
47082
47107
|
this.folder = null;
|
|
47108
|
+
this.selectedFile = null;
|
|
47083
47109
|
}
|
|
47084
47110
|
changeImage() {
|
|
47085
47111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -47203,7 +47229,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
47203
47229
|
});
|
|
47204
47230
|
file = yield this.cloudFileService.getFile(file.appFileID);
|
|
47205
47231
|
}
|
|
47206
|
-
yield this.addStyleSheet(file);
|
|
47232
|
+
yield this.addStyleSheet(file, "styles/vars.css");
|
|
47207
47233
|
});
|
|
47208
47234
|
}
|
|
47209
47235
|
setStylerSheet() {
|
|
@@ -47227,14 +47253,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
47227
47253
|
}
|
|
47228
47254
|
}
|
|
47229
47255
|
const stylerCSS = yield this.createFile("styler.css", StylerSet.instance.toString());
|
|
47230
|
-
yield this.addStyleSheet(stylerCSS);
|
|
47256
|
+
yield this.addStyleSheet(stylerCSS, "styles/styler.css");
|
|
47231
47257
|
let vars = yield this.cloudFileService.children(this.folder.appFileID, "styles/vars.css").firstOrDefault();
|
|
47232
47258
|
if (!vars) {
|
|
47233
47259
|
vars = yield this.createFile("vars.css", `* {
|
|
47234
47260
|
${StylerSet.instance.varsCss}
|
|
47235
47261
|
}`);
|
|
47236
47262
|
}
|
|
47237
|
-
yield this.addStyleSheet(vars);
|
|
47263
|
+
yield this.addStyleSheet(vars, "styles/vars.css");
|
|
47238
47264
|
let script = this.htmlDocument.querySelector("script[web-components]");
|
|
47239
47265
|
if (!script) {
|
|
47240
47266
|
script = this.htmlDocument.createElement("script");
|
|
@@ -47243,14 +47269,21 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
47243
47269
|
script.setAttribute("defer", "true");
|
|
47244
47270
|
this.htmlDocument.head.appendChild(this.htmlDocument.createTextNode("\n"));
|
|
47245
47271
|
this.htmlDocument.head.appendChild(script);
|
|
47272
|
+
this.htmlDocument.head.appendChild(this.htmlDocument.createTextNode("\n"));
|
|
47246
47273
|
}
|
|
47247
47274
|
script.setAttribute("src", "//cdn.jsdelivr.net/npm/@social-mail/web-components@1.0.72/dist/components.webpack.js");
|
|
47248
47275
|
});
|
|
47249
47276
|
}
|
|
47250
|
-
addStyleSheet(file) {
|
|
47277
|
+
addStyleSheet(file, path) {
|
|
47251
47278
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47279
|
+
const filePath = this.selectedFile.path.substring(this.folder.path.length);
|
|
47280
|
+
let folder = filePath.split("/").length - 2;
|
|
47281
|
+
while (folder > 0) {
|
|
47282
|
+
path = "../" + path;
|
|
47283
|
+
folder--;
|
|
47284
|
+
}
|
|
47252
47285
|
const document = this.htmlDocument;
|
|
47253
|
-
const href =
|
|
47286
|
+
const href = "./" + path;
|
|
47254
47287
|
let link;
|
|
47255
47288
|
for (const iterator of Array.from(document.querySelectorAll(`link[rel="stylesheet"][styler-css]`))) {
|
|
47256
47289
|
if (iterator.getAttribute("styler-css") === file.name) {
|
|
@@ -47948,7 +47981,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
47948
47981
|
}
|
|
47949
47982
|
}), XNode.create(WebSitePageEditor, {
|
|
47950
47983
|
class: "file-list",
|
|
47951
|
-
|
|
47984
|
+
selectedFile: Bind.oneWay(() => this.selectedFile),
|
|
47985
|
+
baseUrl: Bind.oneWay(() => apiPath(`/api/site/draft/${this.root.appFileID}/`)),
|
|
47952
47986
|
folder: this.root,
|
|
47953
47987
|
presenter: Bind.presenter(c => this.htmlEditor = c),
|
|
47954
47988
|
"event-html-page-changed": ce => this.pageContent = ce.detail,
|