@social-mail/social-mail-client 1.2.166 → 1.2.168
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 +35 -31
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +3 -3
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/code-editor/CodeEditorPage.d.ts +5 -2
- package/dist/code-editor/CodeEditorPage.d.ts.map +1 -1
- package/dist/code-editor/CodeEditorPage.js +7 -21
- package/dist/code-editor/CodeEditorPage.js.map +1 -1
- package/dist/common/pages/websites/studio/WebSiteStudioPage.d.ts.map +1 -1
- package/dist/common/pages/websites/studio/WebSiteStudioPage.js +6 -5
- package/dist/common/pages/websites/studio/WebSiteStudioPage.js.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.js +21 -5
- package/dist/site-editor/editor/WebSitePageEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +35 -31
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +3 -3
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/node_modules/@web-atoms/web-controls/dist/basic/Expander.d.ts.map +1 -1
- package/node_modules/@web-atoms/web-controls/dist/basic/Expander.js +1 -0
- package/node_modules/@web-atoms/web-controls/dist/basic/Expander.js.map +1 -1
- package/node_modules/@web-atoms/web-controls/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@web-atoms/web-controls/package.json +1 -1
- package/node_modules/@web-atoms/web-controls/src/basic/Expander.tsx +1 -0
- package/package.json +2 -2
- package/src/code-editor/CodeEditorPage.tsx +7 -12
- package/src/common/pages/websites/studio/WebSiteStudioPage.tsx +6 -5
- package/src/site-editor/editor/WebSitePageEditor.tsx +14 -3
|
@@ -33229,6 +33229,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "./styles/expander-
|
|
|
33229
33229
|
const ha = (_b = header.attributes) !== null && _b !== void 0 ? _b : header.attributes = {};
|
|
33230
33230
|
ha["data-element"] = "header";
|
|
33231
33231
|
let i = 2;
|
|
33232
|
+
details = details.filter(x => x !== false);
|
|
33232
33233
|
for (const iterator of details) {
|
|
33233
33234
|
const ia = (_c = iterator.attributes) !== null && _c !== void 0 ? _c : iterator.attributes = {};
|
|
33234
33235
|
ia["data-element"] = "detail";
|
|
@@ -40456,10 +40457,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
40456
40457
|
|
|
40457
40458
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/files/media/ChooseMediaPage");
|
|
40458
40459
|
|
|
40459
|
-
System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@web-atoms/core/dist/core/XNode", "../common/controls/buttons/IconButton", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/core/InjectProperty", "../web/page/files/service/CloudFileService", "
|
|
40460
|
+
System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@web-atoms/core/dist/core/XNode", "../common/controls/buttons/IconButton", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/core/InjectProperty", "../web/page/files/service/CloudFileService", "./MonacoService"], function (_export, _context) {
|
|
40460
40461
|
"use strict";
|
|
40461
40462
|
|
|
40462
|
-
var __awaiter, __decorate, __metadata, ContentPage, XNode, SaveIconTextButton, Bind, Action, InjectProperty, CloudFileService,
|
|
40463
|
+
var __awaiter, __decorate, __metadata, ContentPage, XNode, SaveIconTextButton, Bind, Action, InjectProperty, CloudFileService, MonacoService, CodeEditorPage;
|
|
40463
40464
|
_export("default", void 0);
|
|
40464
40465
|
return {
|
|
40465
40466
|
setters: [function (_tslib) {
|
|
@@ -40480,8 +40481,6 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
40480
40481
|
InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
|
|
40481
40482
|
}, function (_webPageFilesServiceCloudFileService) {
|
|
40482
40483
|
CloudFileService = _webPageFilesServiceCloudFileService.default;
|
|
40483
|
-
}, function (_webAtomsCoreDistServicesFetchBuilder) {
|
|
40484
|
-
FetchBuilder = _webAtomsCoreDistServicesFetchBuilder.default;
|
|
40485
40484
|
}, function (_MonacoService) {
|
|
40486
40485
|
MonacoService = _MonacoService.default;
|
|
40487
40486
|
}],
|
|
@@ -40493,8 +40492,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
40493
40492
|
}
|
|
40494
40493
|
init() {
|
|
40495
40494
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40496
|
-
this.
|
|
40497
|
-
this.
|
|
40495
|
+
this.file = this.parameters.file;
|
|
40496
|
+
this.title = this.file.name;
|
|
40498
40497
|
this.renderer = XNode.create("div", {
|
|
40499
40498
|
"data-display": "grid",
|
|
40500
40499
|
"data-align-items": "stretch",
|
|
@@ -40505,12 +40504,12 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
40505
40504
|
"style-display": Bind.oneWay(() => this.modified, false)
|
|
40506
40505
|
}, XNode.create(SaveIconTextButton, {
|
|
40507
40506
|
"data-click-event": "save-file",
|
|
40508
|
-
text: "
|
|
40507
|
+
text: "Close"
|
|
40509
40508
|
}));
|
|
40510
40509
|
const file = this.file;
|
|
40511
40510
|
const iframe = this.element.querySelector("iframe");
|
|
40512
40511
|
this.monacoService = yield MonacoService.createEditor(this, iframe);
|
|
40513
|
-
this.content =
|
|
40512
|
+
this.content = this.parameters.content;
|
|
40514
40513
|
this.monacoService.setCodeModel(this, this.content, `http://a/${file.name}`);
|
|
40515
40514
|
});
|
|
40516
40515
|
}
|
|
@@ -40523,21 +40522,9 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
40523
40522
|
saveFile() {
|
|
40524
40523
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40525
40524
|
const {
|
|
40526
|
-
file: {
|
|
40527
|
-
appFileID,
|
|
40528
|
-
name,
|
|
40529
|
-
contentType
|
|
40530
|
-
},
|
|
40531
40525
|
content
|
|
40532
40526
|
} = this;
|
|
40533
|
-
|
|
40534
|
-
content: new File([content], name, {
|
|
40535
|
-
type: contentType
|
|
40536
|
-
}),
|
|
40537
|
-
appFileID
|
|
40538
|
-
});
|
|
40539
|
-
this.modified = false;
|
|
40540
|
-
return yield this.cloudFileService.getFile(appFileID);
|
|
40527
|
+
return content;
|
|
40541
40528
|
});
|
|
40542
40529
|
}
|
|
40543
40530
|
hide() {
|
|
@@ -40565,10 +40552,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
40565
40552
|
|
|
40566
40553
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/code-editor/CodeEditorPage");
|
|
40567
40554
|
|
|
40568
|
-
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", "../../common/apiPath"], function (_export, _context) {
|
|
40555
|
+
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", "../../common/apiPath", "@web-atoms/core/dist/services/FetchBuilder"], function (_export, _context) {
|
|
40569
40556
|
"use strict";
|
|
40570
40557
|
|
|
40571
|
-
var __awaiter, __decorate, __metadata, BindableProperty, HtmlPageEditor, ChooseMediaPage, PageNavigator, StylerSet, InjectProperty, CloudFileService, Action, CodeEditorPage, apiPath, WebSitePageEditor;
|
|
40558
|
+
var __awaiter, __decorate, __metadata, BindableProperty, HtmlPageEditor, ChooseMediaPage, PageNavigator, StylerSet, InjectProperty, CloudFileService, Action, CodeEditorPage, apiPath, FetchBuilder, WebSitePageEditor;
|
|
40572
40559
|
_export("default", void 0);
|
|
40573
40560
|
return {
|
|
40574
40561
|
setters: [function (_tslib) {
|
|
@@ -40595,6 +40582,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
40595
40582
|
CodeEditorPage = _codeEditorCodeEditorPage.default;
|
|
40596
40583
|
}, function (_commonApiPath) {
|
|
40597
40584
|
apiPath = _commonApiPath.apiPath;
|
|
40585
|
+
}, function (_webAtomsCoreDistServicesFetchBuilder) {
|
|
40586
|
+
FetchBuilder = _webAtomsCoreDistServicesFetchBuilder.default;
|
|
40598
40587
|
}],
|
|
40599
40588
|
execute: function () {
|
|
40600
40589
|
_export("default", WebSitePageEditor = class WebSitePageEditor extends HtmlPageEditor {
|
|
@@ -40617,9 +40606,23 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
40617
40606
|
}
|
|
40618
40607
|
openVariables() {
|
|
40619
40608
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40620
|
-
|
|
40621
|
-
|
|
40622
|
-
yield
|
|
40609
|
+
let file = yield this.cloudFileService.children(this.folder.appFileID, "styles/vars.css").firstOrDefault();
|
|
40610
|
+
let content = yield FetchBuilder.get(file.downloadUrl).responseAsText();
|
|
40611
|
+
const modifiedContent = yield PageNavigator.pushPageForResult(CodeEditorPage, {
|
|
40612
|
+
file,
|
|
40613
|
+
content
|
|
40614
|
+
});
|
|
40615
|
+
if (modifiedContent !== content) {
|
|
40616
|
+
content = modifiedContent;
|
|
40617
|
+
yield this.cloudFileService.saveFile({
|
|
40618
|
+
content: new File([content], file.name, {
|
|
40619
|
+
type: file.contentType
|
|
40620
|
+
}),
|
|
40621
|
+
appFileID: file.appFileID
|
|
40622
|
+
});
|
|
40623
|
+
file = yield this.cloudFileService.getFile(file.appFileID);
|
|
40624
|
+
}
|
|
40625
|
+
yield this.addStyleSheet(file);
|
|
40623
40626
|
});
|
|
40624
40627
|
}
|
|
40625
40628
|
setStylerSheet() {
|
|
@@ -41182,11 +41185,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
41182
41185
|
}
|
|
41183
41186
|
editCode() {
|
|
41184
41187
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41185
|
-
const
|
|
41186
|
-
|
|
41187
|
-
|
|
41188
|
-
|
|
41189
|
-
this.
|
|
41188
|
+
const content = yield PageNavigator.pushPageForResult(CodeEditorPage, {
|
|
41189
|
+
file: this.selectedFile,
|
|
41190
|
+
content: this.htmlEditor.htmlPage
|
|
41191
|
+
});
|
|
41192
|
+
this.pageContent = content;
|
|
41193
|
+
this.htmlEditor.htmlPage = content;
|
|
41190
41194
|
});
|
|
41191
41195
|
}
|
|
41192
41196
|
openFolder(file) {
|