@social-mail/social-mail-client 1.2.32 → 1.2.34
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/content/images/icons/audio.svg +1 -0
- package/content/modules/monaco/monaco.html +57 -5
- package/dist/admin/AdminAppIndex.pack.js +261 -145
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +4 -4
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/code-editor/CodeEditorPage.d.ts +1 -0
- package/dist/code-editor/CodeEditorPage.d.ts.map +1 -1
- package/dist/code-editor/CodeEditorPage.js +12 -18
- package/dist/code-editor/CodeEditorPage.js.map +1 -1
- package/dist/code-editor/CodeSnippetPage.d.ts +19 -0
- package/dist/code-editor/CodeSnippetPage.d.ts.map +1 -0
- package/dist/code-editor/CodeSnippetPage.js +98 -0
- package/dist/code-editor/CodeSnippetPage.js.map +1 -0
- package/dist/code-editor/ICodeSnippet.d.ts +6 -0
- package/dist/code-editor/ICodeSnippet.d.ts.map +1 -0
- package/dist/code-editor/ICodeSnippet.js +9 -0
- package/dist/code-editor/ICodeSnippet.js.map +1 -0
- package/dist/code-editor/MonacoService.d.ts +20 -0
- package/dist/code-editor/MonacoService.d.ts.map +1 -0
- package/dist/code-editor/MonacoService.js +120 -0
- package/dist/code-editor/MonacoService.js.map +1 -0
- package/dist/code-editor/MonaoEditor.d.ts +0 -19
- package/dist/code-editor/MonaoEditor.d.ts.map +1 -1
- package/dist/code-editor/MonaoEditor.js +3 -111
- package/dist/code-editor/MonaoEditor.js.map +1 -1
- package/dist/common/controls/file-preview/FilePreview.d.ts.map +1 -1
- package/dist/common/controls/file-preview/FilePreview.js +8 -3
- package/dist/common/controls/file-preview/FilePreview.js.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +345 -229
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +5 -5
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/mini-compose/Insert.d.ts.map +1 -1
- package/dist/web/page/mails/mini-compose/Insert.js +16 -3
- package/dist/web/page/mails/mini-compose/Insert.js.map +1 -1
- package/package.json +1 -1
- package/src/code-editor/CodeEditorPage.tsx +14 -8
- package/src/code-editor/CodeSnippetPage.tsx +78 -0
- package/src/code-editor/ICodeSnippet.ts +5 -0
- package/src/code-editor/MonacoService.ts +112 -0
- package/src/code-editor/MonaoEditor.tsx +89 -112
- package/src/common/controls/file-preview/FilePreview.tsx +6 -1
- package/src/monaco.d.ts +9124 -0
- package/src/site-editor/editor/WebSitePageEditor.tsx +0 -2
- package/src/web/page/mails/mini-compose/Insert.tsx +11 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><!--!Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc.--><path class="fa-secondary" opacity=".4" d="M0 64C0 28.7 28.7 0 64 0H224V128c0 17.7 14.3 32 32 32H384V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM258 226.3c-7.6-4.6-17.4-2.1-22 5.4s-2.1 17.4 5.4 22C269.4 270.5 288 301.1 288 336s-18.6 65.5-46.5 82.3c-7.6 4.6-10 14.4-5.4 22s14.4 10 22 5.4c37.1-22.4 62-63.1 62-109.7s-24.9-87.3-62-109.7zm-91.9 30.9c-6-2.5-12.9-1.1-17.4 3.5L113.4 296H80c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h33.4l35.3 35.3c4.6 4.6 11.5 5.9 17.4 3.5s9.9-8.3 9.9-14.8V272c0-6.5-3.9-12.3-9.9-14.8zm51 34.9c-6.6 5.9-7.1 16-1.3 22.6c5.1 5.7 8.1 13.1 8.1 21.3s-3.1 15.7-8.1 21.3c-5.9 6.6-5.3 16.7 1.3 22.6s16.7 5.3 22.6-1.3C249.8 367.4 256 352.4 256 336s-6.2-31.4-16.3-42.7c-5.9-6.6-16-7.1-22.6-1.3z"/><path class="fa-primary" d="M384 160L224 0V128c0 17.7 14.3 32 32 32H384zM258 226.3c-7.6-4.6-17.4-2.1-22 5.4s-2.1 17.4 5.4 22C269.4 270.5 288 301.1 288 336s-18.6 65.5-46.5 82.3c-7.6 4.6-10 14.4-5.4 22s14.4 10 22 5.4c37.1-22.4 62-63.1 62-109.7s-24.9-87.3-62-109.7zm-91.9 30.9c-6-2.5-12.9-1.1-17.4 3.5L113.4 296H80c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h33.4l35.3 35.3c4.6 4.6 11.5 5.9 17.4 3.5s9.9-8.3 9.9-14.8V272c0-6.5-3.9-12.3-9.9-14.8zm51 34.9c-6.6 5.9-7.1 16-1.3 22.6c5.1 5.7 8.1 13.1 8.1 21.3s-3.1 15.7-8.1 21.3c-5.9 6.6-5.3 16.7 1.3 22.6s16.7 5.3 22.6-1.3C249.8 367.4 256 352.4 256 336s-6.2-31.4-16.3-42.7c-5.9-6.6-16-7.1-22.6-1.3z"/></svg>
|
|
@@ -23,9 +23,54 @@
|
|
|
23
23
|
|
|
24
24
|
require(['vs/editor/editor.main'], function() {
|
|
25
25
|
|
|
26
|
+
let editor;
|
|
27
|
+
|
|
26
28
|
var parentEditor = frameElement.parentEditor;
|
|
29
|
+
const container = document.getElementById("container");
|
|
30
|
+
parentEditor.codeEditor.container = container;
|
|
31
|
+
parentEditor.codeEditor.colorize = (code) => {
|
|
32
|
+
return new Promise((resolve, reject) => {
|
|
33
|
+
const div = document.createElement("div");
|
|
34
|
+
|
|
35
|
+
const moveOut = (e) => {
|
|
36
|
+
const s = e.style;
|
|
37
|
+
s.position = "absolute";
|
|
38
|
+
s.left = "-10000px";
|
|
39
|
+
s.top = "-10000px";
|
|
40
|
+
s.maxWidth = "1000px";
|
|
41
|
+
s.overflow = "hidden";
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
moveOut(div);
|
|
45
|
+
|
|
46
|
+
const body = document.body;
|
|
47
|
+
const pre = document.createElement("pre");
|
|
48
|
+
pre.innerHTML = code;
|
|
49
|
+
div.appendChild(pre);
|
|
50
|
+
body.appendChild(div);
|
|
51
|
+
setTimeout(() => {
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
const mapStyle = (e) => {
|
|
55
|
+
const cs = window.getComputedStyle(e);
|
|
56
|
+
e.style.fontWeight = cs.fontWeight;
|
|
57
|
+
e.style.color = cs.color;
|
|
58
|
+
e.style.background = cs.background;
|
|
59
|
+
e.style.backgroundColor = cs.backgroundColor;
|
|
60
|
+
let start = e.firstElementChild;
|
|
61
|
+
while(start) {
|
|
62
|
+
mapStyle(start);
|
|
63
|
+
start = start.nextElementSibling;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
mapStyle(pre);
|
|
27
68
|
|
|
28
|
-
|
|
69
|
+
resolve(pre.outerHTML);
|
|
70
|
+
|
|
71
|
+
}, 1);
|
|
72
|
+
});
|
|
73
|
+
};
|
|
29
74
|
window.open = function() {
|
|
30
75
|
var a = {
|
|
31
76
|
opener: {},
|
|
@@ -38,12 +83,19 @@
|
|
|
38
83
|
});
|
|
39
84
|
return a;
|
|
40
85
|
};
|
|
41
|
-
parentEditor.resolve(monaco);
|
|
42
86
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
87
|
+
try {
|
|
88
|
+
editor = monaco.editor.create(container);
|
|
89
|
+
parentEditor.resolve({
|
|
90
|
+
editor,
|
|
91
|
+
monaco
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
window.onresize = () => editor.layout();
|
|
46
95
|
|
|
96
|
+
} catch (erorr) {
|
|
97
|
+
parentEditor.reject(error);
|
|
98
|
+
}
|
|
47
99
|
});
|
|
48
100
|
</script>
|
|
49
101
|
</body>
|