@editora/plugins 1.0.8 → 1.0.10

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 (141) hide show
  1. package/README.md +27 -0
  2. package/dist/_commonjsHelpers-6763f629.js +1 -0
  3. package/dist/_commonjsHelpers-c5d32002.mjs +30 -0
  4. package/dist/a11y-checker.cjs.js +12 -12
  5. package/dist/a11y-checker.esm.js +98 -80
  6. package/dist/anchor.cjs.js +12 -12
  7. package/dist/anchor.esm.js +128 -115
  8. package/dist/anchoredPopover-33f1358d.mjs +109 -0
  9. package/dist/anchoredPopover-8151d535.js +1 -0
  10. package/dist/approval-workflow.cjs.js +447 -0
  11. package/dist/approval-workflow.esm.js +1111 -0
  12. package/dist/background-color.cjs.js +2 -2
  13. package/dist/background-color.esm.js +68 -55
  14. package/dist/blockquote.esm.js +2 -1
  15. package/dist/blocks-library.cjs.js +442 -0
  16. package/dist/blocks-library.esm.js +1384 -0
  17. package/dist/capitalization.esm.js +2 -1
  18. package/dist/checklist.cjs.js +1 -1
  19. package/dist/checklist.esm.js +82 -58
  20. package/dist/citations.cjs.js +548 -0
  21. package/dist/citations.esm.js +1530 -0
  22. package/dist/clear-formatting.cjs.js +1 -1
  23. package/dist/clear-formatting.esm.js +33 -27
  24. package/dist/code-sample.cjs.js +14 -14
  25. package/dist/code-sample.esm.js +93 -82
  26. package/dist/code.cjs.js +32 -32
  27. package/dist/code.esm.js +653 -594
  28. package/dist/comments.cjs.js +6 -6
  29. package/dist/comments.esm.js +158 -116
  30. package/dist/conditional-content.cjs.js +626 -0
  31. package/dist/conditional-content.esm.js +1421 -0
  32. package/dist/content-rules.cjs.js +408 -0
  33. package/dist/content-rules.esm.js +1147 -0
  34. package/dist/data-binding.cjs.js +321 -0
  35. package/dist/data-binding.esm.js +953 -0
  36. package/dist/direction.esm.js +18 -9
  37. package/dist/doc-schema.cjs.js +398 -0
  38. package/dist/doc-schema.esm.js +1378 -0
  39. package/dist/document-manager.cjs.js +1 -1
  40. package/dist/document-manager.esm.js +5 -4
  41. package/dist/documentManager-25b6203c.mjs +9122 -0
  42. package/dist/documentManager-b69e7054.js +17 -0
  43. package/dist/{editorContainerHelpers-C7kdWnS0.mjs → editorContainerHelpers-69585c07.mjs} +2 -1
  44. package/dist/embed-iframe.cjs.js +4 -4
  45. package/dist/embed-iframe.esm.js +81 -73
  46. package/dist/emojis.cjs.js +8 -8
  47. package/dist/emojis.esm.js +77 -65
  48. package/dist/enterprise.cjs.js +1 -0
  49. package/dist/enterprise.esm.js +58 -0
  50. package/dist/font-family.cjs.js +1 -1
  51. package/dist/font-family.esm.js +47 -39
  52. package/dist/font-size.cjs.js +1 -1
  53. package/dist/font-size.esm.js +53 -37
  54. package/dist/footnote.cjs.js +2 -2
  55. package/dist/footnote.esm.js +117 -76
  56. package/dist/history.cjs.js +1 -1
  57. package/dist/history.esm.js +92 -70
  58. package/dist/html2canvas.esm-09133e29.js +22 -0
  59. package/dist/{html2canvas.esm-BWVIUcAF.mjs → html2canvas.esm-1a1724a1.mjs} +225 -141
  60. package/dist/indent.cjs.js +1 -1
  61. package/dist/indent.esm.js +24 -12
  62. package/dist/index-656d224b.js +231 -0
  63. package/dist/index-6a8c48bb.js +1 -0
  64. package/dist/index-d027b7e2.mjs +16859 -0
  65. package/dist/{index-BFsKNTTj.mjs → index-f04538f2.mjs} +71 -70
  66. package/dist/index.cjs.js +1 -1
  67. package/dist/index.es-730f2d98.mjs +5775 -0
  68. package/dist/index.es-dd40173b.js +18 -0
  69. package/dist/index.esm.js +124 -93
  70. package/dist/italic.cjs.js +1 -1
  71. package/dist/italic.esm.js +9 -8
  72. package/dist/jspdf.es.min-90db2c97.js +243 -0
  73. package/dist/{jspdf.es.min-DQCoX5yh.mjs → jspdf.es.min-c36a4fd8.mjs} +4682 -3658
  74. package/dist/line-height.cjs.js +1 -1
  75. package/dist/line-height.esm.js +24 -11
  76. package/dist/link.cjs.js +5 -5
  77. package/dist/link.esm.js +30 -24
  78. package/dist/list.cjs.js +1 -1
  79. package/dist/list.esm.js +25 -20
  80. package/dist/lite.cjs.js +1 -1
  81. package/dist/lite.esm.js +61 -59
  82. package/dist/math.cjs.js +21 -21
  83. package/dist/math.esm.js +146 -139
  84. package/dist/media-manager.cjs.js +38 -38
  85. package/dist/media-manager.esm.js +325 -308
  86. package/dist/mentions.cjs.js +105 -0
  87. package/dist/mentions.esm.js +774 -0
  88. package/dist/merge-tag.cjs.js +2 -2
  89. package/dist/merge-tag.esm.js +216 -177
  90. package/dist/page-break.cjs.js +2 -2
  91. package/dist/page-break.esm.js +67 -51
  92. package/dist/pii-redaction.cjs.js +436 -0
  93. package/dist/pii-redaction.esm.js +1447 -0
  94. package/dist/preview.cjs.js +3 -3
  95. package/dist/preview.esm.js +37 -32
  96. package/dist/print.cjs.js +4 -4
  97. package/dist/print.esm.js +20 -17
  98. package/dist/{purify.es-DHhaBdbu.mjs → purify.es-35a15df8.mjs} +19 -9
  99. package/dist/{purify.es-T2a3nLiC.js → purify.es-a8d731c6.js} +1 -1
  100. package/dist/slash-commands.cjs.js +90 -0
  101. package/dist/slash-commands.esm.js +788 -0
  102. package/dist/smart-paste.cjs.js +398 -0
  103. package/dist/smart-paste.esm.js +1444 -0
  104. package/dist/special-characters.cjs.js +7 -7
  105. package/dist/special-characters.esm.js +69 -61
  106. package/dist/spell-check.cjs.js +5 -5
  107. package/dist/spell-check.esm.js +123 -97
  108. package/dist/strikethrough.cjs.js +1 -1
  109. package/dist/strikethrough.esm.js +19 -14
  110. package/dist/style.css +1 -0
  111. package/dist/table.cjs.js +4 -4
  112. package/dist/table.esm.js +225 -191
  113. package/dist/template.cjs.js +11 -11
  114. package/dist/template.esm.js +153 -124
  115. package/dist/text-alignment.cjs.js +1 -1
  116. package/dist/text-alignment.esm.js +27 -21
  117. package/dist/text-color.cjs.js +3 -3
  118. package/dist/text-color.esm.js +87 -70
  119. package/dist/track-changes.cjs.js +77 -0
  120. package/dist/track-changes.esm.js +817 -0
  121. package/dist/translation-workflow.cjs.js +626 -0
  122. package/dist/translation-workflow.esm.js +1794 -0
  123. package/dist/version-diff.cjs.js +362 -0
  124. package/dist/version-diff.esm.js +797 -0
  125. package/index.d.ts +798 -0
  126. package/package.json +114 -9
  127. package/dist/_commonjsHelpers-BH3jXuIh.js +0 -1
  128. package/dist/_commonjsHelpers-ByX85dGu.mjs +0 -33
  129. package/dist/anchoredPopover-BzqGPOAE.js +0 -1
  130. package/dist/anchoredPopover-Dts0IrgU.mjs +0 -106
  131. package/dist/documentManager-CTqRftU8.mjs +0 -8369
  132. package/dist/documentManager-Jf0RbSks.js +0 -17
  133. package/dist/html2canvas.esm-B5qzocYs.js +0 -5
  134. package/dist/index-CvJk4DKa.js +0 -221
  135. package/dist/index-D3CycEFU.mjs +0 -16543
  136. package/dist/index-tqLTHcO6.js +0 -1
  137. package/dist/index.es-CE_A4QSm.js +0 -5
  138. package/dist/index.es-DQ78mYYo.mjs +0 -6665
  139. package/dist/jspdf.es.min-BoS80556.js +0 -77
  140. package/dist/plugins.css +0 -1
  141. /package/dist/{editorContainerHelpers-CFbfiOJI.js → editorContainerHelpers-36b8ddf3.js} +0 -0
package/dist/index.esm.js CHANGED
@@ -1,99 +1,130 @@
1
- import { HeadingPlugin as r } from "./heading.esm.js";
2
- import { BoldPlugin as i } from "./bold.esm.js";
3
- import { ItalicPlugin as n } from "./italic.esm.js";
4
- import { UnderlinePlugin as m } from "./underline.esm.js";
5
- import { StrikethroughPlugin as a } from "./strikethrough.esm.js";
6
- import { ListPlugin as f } from "./list.esm.js";
7
- import { ChecklistPlugin as x } from "./checklist.esm.js";
8
- import { HistoryPlugin as C } from "./history.esm.js";
9
- import { LinkPlugin as c } from "./link.esm.js";
10
- import { BlockquotePlugin as M } from "./blockquote.esm.js";
11
- import { ClearFormattingPlugin as A } from "./clear-formatting.esm.js";
12
- import { CodePlugin as D } from "./code.esm.js";
1
+ import { HeadingPlugin as n } from "./heading.esm.js";
2
+ import { BoldPlugin as g } from "./bold.esm.js";
3
+ import { ItalicPlugin as p } from "./italic.esm.js";
4
+ import { UnderlinePlugin as f } from "./underline.esm.js";
5
+ import { StrikethroughPlugin as P } from "./strikethrough.esm.js";
6
+ import { ListPlugin as s } from "./list.esm.js";
7
+ import { ChecklistPlugin as c } from "./checklist.esm.js";
8
+ import { HistoryPlugin as T } from "./history.esm.js";
9
+ import { LinkPlugin as M } from "./link.esm.js";
10
+ import { BlockquotePlugin as A } from "./blockquote.esm.js";
11
+ import { ClearFormattingPlugin as S } from "./clear-formatting.esm.js";
12
+ import { CodePlugin as B } from "./code.esm.js";
13
13
  import { TablePlugin as F } from "./table.esm.js";
14
- import { FontSizePlugin as S } from "./font-size.esm.js";
15
- import { FontFamilyPlugin as B } from "./font-family.esm.js";
16
- import { TextAlignmentPlugin as I } from "./text-alignment.esm.js";
17
- import { TextColorPlugin as z } from "./text-color.esm.js";
18
- import { BackgroundColorPlugin as v } from "./background-color.esm.js";
14
+ import { FontSizePlugin as I } from "./font-size.esm.js";
15
+ import { FontFamilyPlugin as H } from "./font-family.esm.js";
16
+ import { TextAlignmentPlugin as w } from "./text-alignment.esm.js";
17
+ import { TextColorPlugin as G } from "./text-color.esm.js";
18
+ import { BackgroundColorPlugin as U } from "./background-color.esm.js";
19
19
  import { LineHeightPlugin as j } from "./line-height.esm.js";
20
- import { IndentPlugin as w } from "./indent.esm.js";
21
- import { DirectionPlugin as R } from "./direction.esm.js";
22
- import { CapitalizationPlugin as J } from "./capitalization.esm.js";
23
- import { MathPlugin as O } from "./math.esm.js";
24
- import { SpecialCharactersPlugin as V } from "./special-characters.esm.js";
25
- import { EmojisPlugin as X } from "./emojis.esm.js";
26
- import { EmbedIframePlugin as Z } from "./embed-iframe.esm.js";
27
- import { AnchorPlugin as ee } from "./anchor.esm.js";
28
- import { MediaManagerPlugin as re, getMediaManagerConfig as te, setMediaManagerConfig as ie } from "./media-manager.esm.js";
29
- import { D as ne, g as ge, s as me } from "./index-BFsKNTTj.mjs";
30
- import { PreviewPlugin as ae } from "./preview.esm.js";
31
- import { FullscreenPlugin as fe } from "./fullscreen.esm.js";
32
- import { PrintPlugin as xe } from "./print.esm.js";
33
- import { PageBreakPlugin as Ce } from "./page-break.esm.js";
34
- import { FootnotePlugin as ce } from "./footnote.esm.js";
35
- import { CodeSamplePlugin as Me } from "./code-sample.esm.js";
36
- import { MergeTagPlugin as Ae } from "./merge-tag.esm.js";
37
- import { PREDEFINED_TEMPLATES as De, TemplatePlugin as Ee, addCustomTemplate as Fe, getAllTemplates as be, getTemplateCategories as Se, getTemplatesByCategory as ye, sanitizeTemplate as Be, searchTemplates as He, validateTemplate as Ie } from "./template.esm.js";
38
- import { CommentsPlugin as ze } from "./comments.esm.js";
39
- import { SpellCheckPlugin as ve } from "./spell-check.esm.js";
40
- import { A11yCheckerPlugin as je } from "./a11y-checker.esm.js";
41
- import { buildApiUrl as we, getGlobalApiConfig as Ne, getGlobalApiHeaders as Re, setGlobalApiConfig as _e } from "./shared-config.esm.js";
20
+ import { IndentPlugin as N } from "./indent.esm.js";
21
+ import { DirectionPlugin as _ } from "./direction.esm.js";
22
+ import { CapitalizationPlugin as K } from "./capitalization.esm.js";
23
+ import { MathPlugin as Q } from "./math.esm.js";
24
+ import { SpecialCharactersPlugin as Y } from "./special-characters.esm.js";
25
+ import { EmojisPlugin as $ } from "./emojis.esm.js";
26
+ import { EmbedIframePlugin as ro } from "./embed-iframe.esm.js";
27
+ import { AnchorPlugin as to } from "./anchor.esm.js";
28
+ import { MentionPlugin as no } from "./mentions.esm.js";
29
+ import { TrackChangesPlugin as go } from "./track-changes.esm.js";
30
+ import { VersionDiffPlugin as po } from "./version-diff.esm.js";
31
+ import { ConditionalContentPlugin as fo } from "./conditional-content.esm.js";
32
+ import { DataBindingPlugin as Po } from "./data-binding.esm.js";
33
+ import { ContentRulesPlugin as so } from "./content-rules.esm.js";
34
+ import { CitationsPlugin as co } from "./citations.esm.js";
35
+ import { ApprovalWorkflowPlugin as ho } from "./approval-workflow.esm.js";
36
+ import { PIIRedactionPlugin as ko } from "./pii-redaction.esm.js";
37
+ import { SmartPastePlugin as Do } from "./smart-paste.esm.js";
38
+ import { BlocksLibraryPlugin as bo } from "./blocks-library.esm.js";
39
+ import { DocSchemaPlugin as Eo } from "./doc-schema.esm.js";
40
+ import { TranslationWorkflowPlugin as yo } from "./translation-workflow.esm.js";
41
+ import { SlashCommandsPlugin as Lo } from "./slash-commands.esm.js";
42
+ import { MediaManagerPlugin as vo, getMediaManagerConfig as wo, setMediaManagerConfig as zo } from "./media-manager.esm.js";
43
+ import { D as Ro, g as Uo, s as Wo } from "./index-f04538f2.mjs";
44
+ import { PreviewPlugin as qo } from "./preview.esm.js";
45
+ import { FullscreenPlugin as Vo } from "./fullscreen.esm.js";
46
+ import { PrintPlugin as Jo } from "./print.esm.js";
47
+ import { PageBreakPlugin as Oo } from "./page-break.esm.js";
48
+ import { FootnotePlugin as Xo } from "./footnote.esm.js";
49
+ import { CodeSamplePlugin as Zo } from "./code-sample.esm.js";
50
+ import { MergeTagPlugin as or } from "./merge-tag.esm.js";
51
+ import { PREDEFINED_TEMPLATES as er, TemplatePlugin as tr, addCustomTemplate as ir, getAllTemplates as nr, getTemplateCategories as lr, getTemplatesByCategory as gr, sanitizeTemplate as mr, searchTemplates as pr, validateTemplate as ar } from "./template.esm.js";
52
+ import { CommentsPlugin as ur } from "./comments.esm.js";
53
+ import { SpellCheckPlugin as xr } from "./spell-check.esm.js";
54
+ import { A11yCheckerPlugin as Cr } from "./a11y-checker.esm.js";
55
+ import { buildApiUrl as dr, getGlobalApiConfig as Tr, getGlobalApiHeaders as hr, setGlobalApiConfig as Mr } from "./shared-config.esm.js";
56
+ import "./editorContainerHelpers-69585c07.mjs";
57
+ import "./anchoredPopover-33f1358d.mjs";
58
+ import "./purify.es-35a15df8.mjs";
42
59
  export {
43
- je as A11yCheckerPlugin,
44
- ee as AnchorPlugin,
45
- v as BackgroundColorPlugin,
46
- M as BlockquotePlugin,
47
- i as BoldPlugin,
48
- J as CapitalizationPlugin,
49
- x as ChecklistPlugin,
50
- A as ClearFormattingPlugin,
51
- D as CodePlugin,
52
- Me as CodeSamplePlugin,
53
- ze as CommentsPlugin,
54
- R as DirectionPlugin,
55
- ne as DocumentManagerPlugin,
56
- Z as EmbedIframePlugin,
57
- X as EmojisPlugin,
58
- B as FontFamilyPlugin,
59
- S as FontSizePlugin,
60
- ce as FootnotePlugin,
61
- fe as FullscreenPlugin,
62
- r as HeadingPlugin,
63
- C as HistoryPlugin,
64
- w as IndentPlugin,
65
- n as ItalicPlugin,
60
+ Cr as A11yCheckerPlugin,
61
+ to as AnchorPlugin,
62
+ ho as ApprovalWorkflowPlugin,
63
+ U as BackgroundColorPlugin,
64
+ A as BlockquotePlugin,
65
+ bo as BlocksLibraryPlugin,
66
+ g as BoldPlugin,
67
+ K as CapitalizationPlugin,
68
+ c as ChecklistPlugin,
69
+ co as CitationsPlugin,
70
+ S as ClearFormattingPlugin,
71
+ B as CodePlugin,
72
+ Zo as CodeSamplePlugin,
73
+ ur as CommentsPlugin,
74
+ fo as ConditionalContentPlugin,
75
+ so as ContentRulesPlugin,
76
+ Po as DataBindingPlugin,
77
+ _ as DirectionPlugin,
78
+ Eo as DocSchemaPlugin,
79
+ Ro as DocumentManagerPlugin,
80
+ ro as EmbedIframePlugin,
81
+ $ as EmojisPlugin,
82
+ H as FontFamilyPlugin,
83
+ I as FontSizePlugin,
84
+ Xo as FootnotePlugin,
85
+ Vo as FullscreenPlugin,
86
+ n as HeadingPlugin,
87
+ T as HistoryPlugin,
88
+ N as IndentPlugin,
89
+ p as ItalicPlugin,
66
90
  j as LineHeightPlugin,
67
- c as LinkPlugin,
68
- f as ListPlugin,
69
- O as MathPlugin,
70
- re as MediaManagerPlugin,
71
- Ae as MergeTagPlugin,
72
- De as PREDEFINED_TEMPLATES,
73
- Ce as PageBreakPlugin,
74
- ae as PreviewPlugin,
75
- xe as PrintPlugin,
76
- V as SpecialCharactersPlugin,
77
- ve as SpellCheckPlugin,
78
- a as StrikethroughPlugin,
91
+ M as LinkPlugin,
92
+ s as ListPlugin,
93
+ Q as MathPlugin,
94
+ vo as MediaManagerPlugin,
95
+ no as MentionPlugin,
96
+ or as MergeTagPlugin,
97
+ ko as PIIRedactionPlugin,
98
+ er as PREDEFINED_TEMPLATES,
99
+ Oo as PageBreakPlugin,
100
+ qo as PreviewPlugin,
101
+ Jo as PrintPlugin,
102
+ Lo as SlashCommandsPlugin,
103
+ Do as SmartPastePlugin,
104
+ Y as SpecialCharactersPlugin,
105
+ xr as SpellCheckPlugin,
106
+ P as StrikethroughPlugin,
79
107
  F as TablePlugin,
80
- Ee as TemplatePlugin,
81
- I as TextAlignmentPlugin,
82
- z as TextColorPlugin,
83
- m as UnderlinePlugin,
84
- Fe as addCustomTemplate,
85
- we as buildApiUrl,
86
- be as getAllTemplates,
87
- ge as getDocumentManagerConfig,
88
- Ne as getGlobalApiConfig,
89
- Re as getGlobalApiHeaders,
90
- te as getMediaManagerConfig,
91
- Se as getTemplateCategories,
92
- ye as getTemplatesByCategory,
93
- Be as sanitizeTemplate,
94
- He as searchTemplates,
95
- me as setDocumentManagerConfig,
96
- _e as setGlobalApiConfig,
97
- ie as setMediaManagerConfig,
98
- Ie as validateTemplate
108
+ tr as TemplatePlugin,
109
+ w as TextAlignmentPlugin,
110
+ G as TextColorPlugin,
111
+ go as TrackChangesPlugin,
112
+ yo as TranslationWorkflowPlugin,
113
+ f as UnderlinePlugin,
114
+ po as VersionDiffPlugin,
115
+ ir as addCustomTemplate,
116
+ dr as buildApiUrl,
117
+ nr as getAllTemplates,
118
+ Uo as getDocumentManagerConfig,
119
+ Tr as getGlobalApiConfig,
120
+ hr as getGlobalApiHeaders,
121
+ wo as getMediaManagerConfig,
122
+ lr as getTemplateCategories,
123
+ gr as getTemplatesByCategory,
124
+ mr as sanitizeTemplate,
125
+ pr as searchTemplates,
126
+ Wo as setDocumentManagerConfig,
127
+ Mr as setGlobalApiConfig,
128
+ zo as setMediaManagerConfig,
129
+ ar as validateTemplate
99
130
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=()=>(document.execCommand("italic",!1),!0),o=(i,l)=>{typeof window<"u"&&window.registerEditorCommand?.(i,l)},t=()=>{o("toggleItalic",e)};typeof window<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t):t());const a=()=>({name:"italic",marks:{italic:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"}],toDOM:()=>["em",0]}},toolbar:[{label:"Italic",command:"toggleItalic",type:"button",icon:'<svg width="24" height="24" focusable="false"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8Z" fill-rule="evenodd"></path></svg>',shortcut:"Mod-i"}],commands:{toggleItalic:e},keymap:{"Mod-i":"toggleItalic","Mod-I":"toggleItalic"}});exports.ItalicPlugin=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=()=>(document.execCommand("italic",!1),!0),a=(l,o)=>{var t;typeof window<"u"&&((t=window.registerEditorCommand)==null||t.call(window,l,o))},e=()=>{a("toggleItalic",i)};typeof window<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e());const n=()=>({name:"italic",marks:{italic:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"}],toDOM:()=>["em",0]}},toolbar:[{label:"Italic",command:"toggleItalic",type:"button",icon:'<svg width="24" height="24" focusable="false"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8Z" fill-rule="evenodd"></path></svg>',shortcut:"Mod-i"}],commands:{toggleItalic:i},keymap:{"Mod-i":"toggleItalic","Mod-I":"toggleItalic"}});exports.ItalicPlugin=n;
@@ -1,10 +1,11 @@
1
- const e = () => (document.execCommand("italic", !1), !0), l = (i, o) => {
2
- typeof window < "u" && window.registerEditorCommand?.(i, o);
3
- }, t = () => {
4
- l("toggleItalic", e);
1
+ const i = () => (document.execCommand("italic", !1), !0), a = (o, l) => {
2
+ var t;
3
+ typeof window < "u" && ((t = window.registerEditorCommand) == null || t.call(window, o, l));
4
+ }, e = () => {
5
+ a("toggleItalic", i);
5
6
  };
6
- typeof window < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", t) : t());
7
- const a = () => ({
7
+ typeof window < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", e) : e());
8
+ const n = () => ({
8
9
  name: "italic",
9
10
  marks: {
10
11
  italic: {
@@ -28,7 +29,7 @@ const a = () => ({
28
29
  }
29
30
  ],
30
31
  commands: {
31
- toggleItalic: e
32
+ toggleItalic: i
32
33
  },
33
34
  keymap: {
34
35
  "Mod-i": "toggleItalic",
@@ -36,5 +37,5 @@ const a = () => ({
36
37
  }
37
38
  });
38
39
  export {
39
- a as ItalicPlugin
40
+ n as ItalicPlugin
40
41
  };