@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.
Files changed (49) hide show
  1. package/content/images/icons/audio.svg +1 -0
  2. package/content/modules/monaco/monaco.html +57 -5
  3. package/dist/admin/AdminAppIndex.pack.js +261 -145
  4. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  5. package/dist/admin/AdminAppIndex.pack.min.js +4 -4
  6. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  7. package/dist/code-editor/CodeEditorPage.d.ts +1 -0
  8. package/dist/code-editor/CodeEditorPage.d.ts.map +1 -1
  9. package/dist/code-editor/CodeEditorPage.js +12 -18
  10. package/dist/code-editor/CodeEditorPage.js.map +1 -1
  11. package/dist/code-editor/CodeSnippetPage.d.ts +19 -0
  12. package/dist/code-editor/CodeSnippetPage.d.ts.map +1 -0
  13. package/dist/code-editor/CodeSnippetPage.js +98 -0
  14. package/dist/code-editor/CodeSnippetPage.js.map +1 -0
  15. package/dist/code-editor/ICodeSnippet.d.ts +6 -0
  16. package/dist/code-editor/ICodeSnippet.d.ts.map +1 -0
  17. package/dist/code-editor/ICodeSnippet.js +9 -0
  18. package/dist/code-editor/ICodeSnippet.js.map +1 -0
  19. package/dist/code-editor/MonacoService.d.ts +20 -0
  20. package/dist/code-editor/MonacoService.d.ts.map +1 -0
  21. package/dist/code-editor/MonacoService.js +120 -0
  22. package/dist/code-editor/MonacoService.js.map +1 -0
  23. package/dist/code-editor/MonaoEditor.d.ts +0 -19
  24. package/dist/code-editor/MonaoEditor.d.ts.map +1 -1
  25. package/dist/code-editor/MonaoEditor.js +3 -111
  26. package/dist/code-editor/MonaoEditor.js.map +1 -1
  27. package/dist/common/controls/file-preview/FilePreview.d.ts.map +1 -1
  28. package/dist/common/controls/file-preview/FilePreview.js +8 -3
  29. package/dist/common/controls/file-preview/FilePreview.js.map +1 -1
  30. package/dist/site-editor/editor/WebSitePageEditor.d.ts.map +1 -1
  31. package/dist/site-editor/editor/WebSitePageEditor.js.map +1 -1
  32. package/dist/tsconfig.tsbuildinfo +1 -1
  33. package/dist/web/AppIndex.pack.js +345 -229
  34. package/dist/web/AppIndex.pack.js.map +1 -1
  35. package/dist/web/AppIndex.pack.min.js +5 -5
  36. package/dist/web/AppIndex.pack.min.js.map +1 -1
  37. package/dist/web/page/mails/mini-compose/Insert.d.ts.map +1 -1
  38. package/dist/web/page/mails/mini-compose/Insert.js +16 -3
  39. package/dist/web/page/mails/mini-compose/Insert.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/code-editor/CodeEditorPage.tsx +14 -8
  42. package/src/code-editor/CodeSnippetPage.tsx +78 -0
  43. package/src/code-editor/ICodeSnippet.ts +5 -0
  44. package/src/code-editor/MonacoService.ts +112 -0
  45. package/src/code-editor/MonaoEditor.tsx +89 -112
  46. package/src/common/controls/file-preview/FilePreview.tsx +6 -1
  47. package/src/monaco.d.ts +9124 -0
  48. package/src/site-editor/editor/WebSitePageEditor.tsx +0 -2
  49. 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 AtomHtmlEditor from "@web-atoms/web-controls/dist/html-editor/AtomHtmlEditor";
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/*",