@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
|
@@ -17328,6 +17328,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "./styles/expander-
|
|
|
17328
17328
|
const ha = (_b = header.attributes) !== null && _b !== void 0 ? _b : header.attributes = {};
|
|
17329
17329
|
ha["data-element"] = "header";
|
|
17330
17330
|
let i = 2;
|
|
17331
|
+
details = details.filter(x => x !== false);
|
|
17331
17332
|
for (const iterator of details) {
|
|
17332
17333
|
const ia = (_c = iterator.attributes) !== null && _c !== void 0 ? _c : iterator.attributes = {};
|
|
17333
17334
|
ia["data-element"] = "detail";
|
|
@@ -43773,10 +43774,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
43773
43774
|
|
|
43774
43775
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/files/media/ChooseMediaPage");
|
|
43775
43776
|
|
|
43776
|
-
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", "
|
|
43777
|
+
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) {
|
|
43777
43778
|
"use strict";
|
|
43778
43779
|
|
|
43779
|
-
var __awaiter, __decorate, __metadata, ContentPage, XNode, SaveIconTextButton, Bind, Action, InjectProperty, CloudFileService,
|
|
43780
|
+
var __awaiter, __decorate, __metadata, ContentPage, XNode, SaveIconTextButton, Bind, Action, InjectProperty, CloudFileService, MonacoService, CodeEditorPage;
|
|
43780
43781
|
_export("default", void 0);
|
|
43781
43782
|
return {
|
|
43782
43783
|
setters: [function (_tslib) {
|
|
@@ -43797,8 +43798,6 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
43797
43798
|
InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
|
|
43798
43799
|
}, function (_webPageFilesServiceCloudFileService) {
|
|
43799
43800
|
CloudFileService = _webPageFilesServiceCloudFileService.default;
|
|
43800
|
-
}, function (_webAtomsCoreDistServicesFetchBuilder) {
|
|
43801
|
-
FetchBuilder = _webAtomsCoreDistServicesFetchBuilder.default;
|
|
43802
43801
|
}, function (_MonacoService) {
|
|
43803
43802
|
MonacoService = _MonacoService.default;
|
|
43804
43803
|
}],
|
|
@@ -43810,8 +43809,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
43810
43809
|
}
|
|
43811
43810
|
init() {
|
|
43812
43811
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43813
|
-
this.
|
|
43814
|
-
this.
|
|
43812
|
+
this.file = this.parameters.file;
|
|
43813
|
+
this.title = this.file.name;
|
|
43815
43814
|
this.renderer = XNode.create("div", {
|
|
43816
43815
|
"data-display": "grid",
|
|
43817
43816
|
"data-align-items": "stretch",
|
|
@@ -43822,12 +43821,12 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
43822
43821
|
"style-display": Bind.oneWay(() => this.modified, false)
|
|
43823
43822
|
}, XNode.create(SaveIconTextButton, {
|
|
43824
43823
|
"data-click-event": "save-file",
|
|
43825
|
-
text: "
|
|
43824
|
+
text: "Close"
|
|
43826
43825
|
}));
|
|
43827
43826
|
const file = this.file;
|
|
43828
43827
|
const iframe = this.element.querySelector("iframe");
|
|
43829
43828
|
this.monacoService = yield MonacoService.createEditor(this, iframe);
|
|
43830
|
-
this.content =
|
|
43829
|
+
this.content = this.parameters.content;
|
|
43831
43830
|
this.monacoService.setCodeModel(this, this.content, `http://a/${file.name}`);
|
|
43832
43831
|
});
|
|
43833
43832
|
}
|
|
@@ -43840,21 +43839,9 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
43840
43839
|
saveFile() {
|
|
43841
43840
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43842
43841
|
const {
|
|
43843
|
-
file: {
|
|
43844
|
-
appFileID,
|
|
43845
|
-
name,
|
|
43846
|
-
contentType
|
|
43847
|
-
},
|
|
43848
43842
|
content
|
|
43849
43843
|
} = this;
|
|
43850
|
-
|
|
43851
|
-
content: new File([content], name, {
|
|
43852
|
-
type: contentType
|
|
43853
|
-
}),
|
|
43854
|
-
appFileID
|
|
43855
|
-
});
|
|
43856
|
-
this.modified = false;
|
|
43857
|
-
return yield this.cloudFileService.getFile(appFileID);
|
|
43844
|
+
return content;
|
|
43858
43845
|
});
|
|
43859
43846
|
}
|
|
43860
43847
|
hide() {
|
|
@@ -43882,10 +43869,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
43882
43869
|
|
|
43883
43870
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/code-editor/CodeEditorPage");
|
|
43884
43871
|
|
|
43885
|
-
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) {
|
|
43872
|
+
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) {
|
|
43886
43873
|
"use strict";
|
|
43887
43874
|
|
|
43888
|
-
var __awaiter, __decorate, __metadata, BindableProperty, HtmlPageEditor, ChooseMediaPage, PageNavigator, StylerSet, InjectProperty, CloudFileService, Action, CodeEditorPage, apiPath, WebSitePageEditor;
|
|
43875
|
+
var __awaiter, __decorate, __metadata, BindableProperty, HtmlPageEditor, ChooseMediaPage, PageNavigator, StylerSet, InjectProperty, CloudFileService, Action, CodeEditorPage, apiPath, FetchBuilder, WebSitePageEditor;
|
|
43889
43876
|
_export("default", void 0);
|
|
43890
43877
|
return {
|
|
43891
43878
|
setters: [function (_tslib) {
|
|
@@ -43912,6 +43899,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
43912
43899
|
CodeEditorPage = _codeEditorCodeEditorPage.default;
|
|
43913
43900
|
}, function (_commonApiPath) {
|
|
43914
43901
|
apiPath = _commonApiPath.apiPath;
|
|
43902
|
+
}, function (_webAtomsCoreDistServicesFetchBuilder) {
|
|
43903
|
+
FetchBuilder = _webAtomsCoreDistServicesFetchBuilder.default;
|
|
43915
43904
|
}],
|
|
43916
43905
|
execute: function () {
|
|
43917
43906
|
_export("default", WebSitePageEditor = class WebSitePageEditor extends HtmlPageEditor {
|
|
@@ -43934,9 +43923,23 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "./HtmlP
|
|
|
43934
43923
|
}
|
|
43935
43924
|
openVariables() {
|
|
43936
43925
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43937
|
-
|
|
43938
|
-
|
|
43939
|
-
yield
|
|
43926
|
+
let file = yield this.cloudFileService.children(this.folder.appFileID, "styles/vars.css").firstOrDefault();
|
|
43927
|
+
let content = yield FetchBuilder.get(file.downloadUrl).responseAsText();
|
|
43928
|
+
const modifiedContent = yield PageNavigator.pushPageForResult(CodeEditorPage, {
|
|
43929
|
+
file,
|
|
43930
|
+
content
|
|
43931
|
+
});
|
|
43932
|
+
if (modifiedContent !== content) {
|
|
43933
|
+
content = modifiedContent;
|
|
43934
|
+
yield this.cloudFileService.saveFile({
|
|
43935
|
+
content: new File([content], file.name, {
|
|
43936
|
+
type: file.contentType
|
|
43937
|
+
}),
|
|
43938
|
+
appFileID: file.appFileID
|
|
43939
|
+
});
|
|
43940
|
+
file = yield this.cloudFileService.getFile(file.appFileID);
|
|
43941
|
+
}
|
|
43942
|
+
yield this.addStyleSheet(file);
|
|
43940
43943
|
});
|
|
43941
43944
|
}
|
|
43942
43945
|
setStylerSheet() {
|
|
@@ -44499,11 +44502,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
44499
44502
|
}
|
|
44500
44503
|
editCode() {
|
|
44501
44504
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44502
|
-
const
|
|
44503
|
-
|
|
44504
|
-
|
|
44505
|
-
|
|
44506
|
-
this.
|
|
44505
|
+
const content = yield PageNavigator.pushPageForResult(CodeEditorPage, {
|
|
44506
|
+
file: this.selectedFile,
|
|
44507
|
+
content: this.htmlEditor.htmlPage
|
|
44508
|
+
});
|
|
44509
|
+
this.pageContent = content;
|
|
44510
|
+
this.htmlEditor.htmlPage = content;
|
|
44507
44511
|
});
|
|
44508
44512
|
}
|
|
44509
44513
|
openFolder(file) {
|