@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
|
@@ -6,9 +6,7 @@ import PageNavigator from "@web-atoms/web-controls/dist/PageNavigator";
|
|
|
6
6
|
import { StylerSet } from "../styler/StylerSet";
|
|
7
7
|
import InjectProperty from "@web-atoms/core/dist/core/InjectProperty";
|
|
8
8
|
import CloudFileService from "../../web/page/files/service/CloudFileService";
|
|
9
|
-
import FetchBuilder from "@web-atoms/core/dist/services/FetchBuilder";
|
|
10
9
|
import Action from "@web-atoms/core/dist/view-model/Action";
|
|
11
|
-
import MonacoEditor from "../../code-editor/MonaoEditor";
|
|
12
10
|
import CodeEditorPage from "../../code-editor/CodeEditorPage";
|
|
13
11
|
|
|
14
12
|
export default class WebSitePageEditor extends HtmlPageEditor {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import Bind from "@web-atoms/core/dist/core/Bind";
|
|
2
2
|
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
3
3
|
import { IPopupOptions } from "@web-atoms/core/dist/web/services/PopupService";
|
|
4
|
+
import PageNavigator from "@web-atoms/web-controls/dist/PageNavigator";
|
|
4
5
|
import PopupButton, { MenuItem } from "@web-atoms/web-controls/dist/basic/PopupButton";
|
|
5
6
|
import UploadEvent from "@web-atoms/web-controls/dist/basic/UploadEvent";
|
|
6
|
-
import
|
|
7
|
+
import CodeSnippetPage from "../../../../code-editor/CodeSnippetPage";
|
|
8
|
+
import type { MailHtmlEditor } from "../../../../common/controls/html/InlineHtmlEditorWithToolbar";
|
|
7
9
|
|
|
8
10
|
export default function Insert({ alignment = "above" as IPopupOptions["alignment"]}) {
|
|
9
11
|
return <PopupButton
|
|
@@ -22,6 +24,14 @@ export default function Insert({ alignment = "above" as IPopupOptions["alignment
|
|
|
22
24
|
label="Numbered List"
|
|
23
25
|
event-click={Bind.event((editor: any) => editor.executeCommand("insertOrderedList"))}
|
|
24
26
|
/>
|
|
27
|
+
<MenuItem
|
|
28
|
+
icon="ri-list-ordered"
|
|
29
|
+
label="Insert Code"
|
|
30
|
+
event-click={Bind.event(async (editor: MailHtmlEditor) => {
|
|
31
|
+
const code = await PageNavigator.pushPageForResult(CodeSnippetPage);
|
|
32
|
+
(editor as any).executeCommand("insertHTML", void 0, `<pre style="margin: 5px; border: solid 1px lightgray; padding: 10px; border-radius: 10px;" contentEditable="true" spellcheck="false">${code}</pre><br/><p contentEditable="true"></p>`);
|
|
33
|
+
})}
|
|
34
|
+
/>
|
|
25
35
|
<MenuItem
|
|
26
36
|
{ ... UploadEvent.AttachUploadAction({
|
|
27
37
|
accept: "image/*",
|