@editora/plugins 1.0.9 → 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 (140) hide show
  1. package/README.md +5 -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 +40 -40
  11. package/dist/approval-workflow.esm.js +249 -208
  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 +45 -45
  16. package/dist/blocks-library.esm.js +245 -178
  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 +37 -37
  21. package/dist/citations.esm.js +512 -439
  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 +90 -90
  31. package/dist/conditional-content.esm.js +432 -371
  32. package/dist/content-rules.cjs.js +7 -7
  33. package/dist/content-rules.esm.js +159 -105
  34. package/dist/data-binding.cjs.js +46 -46
  35. package/dist/data-binding.esm.js +368 -328
  36. package/dist/direction.esm.js +18 -9
  37. package/dist/doc-schema.cjs.js +29 -29
  38. package/dist/doc-schema.esm.js +308 -240
  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 -1
  49. package/dist/enterprise.esm.js +56 -54
  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 +128 -125
  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 +9 -9
  87. package/dist/mentions.esm.js +286 -238
  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 +49 -33
  92. package/dist/pii-redaction.cjs.js +19 -19
  93. package/dist/pii-redaction.esm.js +463 -393
  94. package/dist/preview.esm.js +10 -5
  95. package/dist/print.cjs.js +4 -4
  96. package/dist/print.esm.js +20 -17
  97. package/dist/{purify.es-DHhaBdbu.mjs → purify.es-35a15df8.mjs} +19 -9
  98. package/dist/{purify.es-T2a3nLiC.js → purify.es-a8d731c6.js} +1 -1
  99. package/dist/slash-commands.cjs.js +3 -3
  100. package/dist/slash-commands.esm.js +212 -176
  101. package/dist/smart-paste.cjs.js +27 -27
  102. package/dist/smart-paste.esm.js +336 -280
  103. package/dist/special-characters.cjs.js +7 -7
  104. package/dist/special-characters.esm.js +69 -61
  105. package/dist/spell-check.cjs.js +5 -5
  106. package/dist/spell-check.esm.js +123 -97
  107. package/dist/strikethrough.cjs.js +1 -1
  108. package/dist/strikethrough.esm.js +19 -14
  109. package/dist/style.css +1 -0
  110. package/dist/table.cjs.js +4 -4
  111. package/dist/table.esm.js +225 -191
  112. package/dist/template.cjs.js +11 -11
  113. package/dist/template.esm.js +153 -124
  114. package/dist/text-alignment.cjs.js +1 -1
  115. package/dist/text-alignment.esm.js +27 -21
  116. package/dist/text-color.cjs.js +3 -3
  117. package/dist/text-color.esm.js +87 -70
  118. package/dist/track-changes.cjs.js +2 -2
  119. package/dist/track-changes.esm.js +162 -100
  120. package/dist/translation-workflow.cjs.js +74 -74
  121. package/dist/translation-workflow.esm.js +678 -602
  122. package/dist/version-diff.cjs.js +14 -14
  123. package/dist/version-diff.esm.js +157 -128
  124. package/package.json +13 -7
  125. package/LICENSE +0 -21
  126. package/dist/_commonjsHelpers-BH3jXuIh.js +0 -1
  127. package/dist/_commonjsHelpers-ByX85dGu.mjs +0 -33
  128. package/dist/anchoredPopover-BzqGPOAE.js +0 -1
  129. package/dist/anchoredPopover-Dts0IrgU.mjs +0 -106
  130. package/dist/documentManager-CTqRftU8.mjs +0 -8369
  131. package/dist/documentManager-Jf0RbSks.js +0 -17
  132. package/dist/html2canvas.esm-B5qzocYs.js +0 -5
  133. package/dist/index-CvJk4DKa.js +0 -221
  134. package/dist/index-D3CycEFU.mjs +0 -16543
  135. package/dist/index-tqLTHcO6.js +0 -1
  136. package/dist/index.es-CE_A4QSm.js +0 -5
  137. package/dist/index.es-DQ78mYYo.mjs +0 -6665
  138. package/dist/jspdf.es.min-BoS80556.js +0 -77
  139. package/dist/plugins.css +0 -1
  140. /package/dist/{editorContainerHelpers-CFbfiOJI.js → editorContainerHelpers-36b8ddf3.js} +0 -0
package/dist/index.esm.js CHANGED
@@ -1,127 +1,130 @@
1
- import { HeadingPlugin as e } from "./heading.esm.js";
2
- import { BoldPlugin as i } from "./bold.esm.js";
3
- import { ItalicPlugin as l } 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 u } 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 d } from "./link.esm.js";
10
- import { BlockquotePlugin as h } from "./blockquote.esm.js";
11
- import { ClearFormattingPlugin as k } from "./clear-formatting.esm.js";
12
- import { CodePlugin as D } from "./code.esm.js";
13
- import { TablePlugin as b } from "./table.esm.js";
14
- import { FontSizePlugin as E } from "./font-size.esm.js";
15
- import { FontFamilyPlugin as y } from "./font-family.esm.js";
16
- import { TextAlignmentPlugin as L } from "./text-alignment.esm.js";
17
- import { TextColorPlugin as v } from "./text-color.esm.js";
18
- import { BackgroundColorPlugin as z } from "./background-color.esm.js";
19
- import { LineHeightPlugin as R } from "./line-height.esm.js";
20
- import { IndentPlugin as W } from "./indent.esm.js";
21
- import { DirectionPlugin as q } from "./direction.esm.js";
22
- import { CapitalizationPlugin as V } from "./capitalization.esm.js";
23
- import { MathPlugin as J } from "./math.esm.js";
24
- import { SpecialCharactersPlugin as O } 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 oo } from "./anchor.esm.js";
28
- import { MentionPlugin as eo } from "./mentions.esm.js";
29
- import { TrackChangesPlugin as io } from "./track-changes.esm.js";
30
- import { VersionDiffPlugin as lo } from "./version-diff.esm.js";
31
- import { ConditionalContentPlugin as mo } from "./conditional-content.esm.js";
32
- import { DataBindingPlugin as ao } from "./data-binding.esm.js";
33
- import { ContentRulesPlugin as uo } from "./content-rules.esm.js";
34
- import { CitationsPlugin as xo } from "./citations.esm.js";
35
- import { ApprovalWorkflowPlugin as Co } from "./approval-workflow.esm.js";
36
- import { PIIRedactionPlugin as To } from "./pii-redaction.esm.js";
37
- import { SmartPastePlugin as Mo } from "./smart-paste.esm.js";
38
- import { BlocksLibraryPlugin as Ao } from "./blocks-library.esm.js";
39
- import { DocSchemaPlugin as So } from "./doc-schema.esm.js";
40
- import { TranslationWorkflowPlugin as Bo } from "./translation-workflow.esm.js";
41
- import { SlashCommandsPlugin as Fo } from "./slash-commands.esm.js";
42
- import { MediaManagerPlugin as Io, getMediaManagerConfig as Lo, setMediaManagerConfig as Ho } from "./media-manager.esm.js";
43
- import { D as wo, g as zo, s as Go } from "./index-BFsKNTTj.mjs";
44
- import { PreviewPlugin as Uo } from "./preview.esm.js";
45
- import { FullscreenPlugin as jo } from "./fullscreen.esm.js";
46
- import { PrintPlugin as No } from "./print.esm.js";
47
- import { PageBreakPlugin as _o } from "./page-break.esm.js";
48
- import { FootnotePlugin as Ko } from "./footnote.esm.js";
49
- import { CodeSamplePlugin as Qo } from "./code-sample.esm.js";
50
- import { MergeTagPlugin as Yo } from "./merge-tag.esm.js";
51
- import { PREDEFINED_TEMPLATES as $o, TemplatePlugin as or, addCustomTemplate as rr, getAllTemplates as er, getTemplateCategories as tr, getTemplatesByCategory as ir, sanitizeTemplate as nr, searchTemplates as lr, validateTemplate as gr } from "./template.esm.js";
52
- import { CommentsPlugin as pr } from "./comments.esm.js";
53
- import { SpellCheckPlugin as fr } from "./spell-check.esm.js";
54
- import { A11yCheckerPlugin as Pr } from "./a11y-checker.esm.js";
55
- import { buildApiUrl as sr, getGlobalApiConfig as Cr, getGlobalApiHeaders as cr, setGlobalApiConfig as dr } from "./shared-config.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
+ import { TablePlugin as F } from "./table.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
+ import { LineHeightPlugin as j } from "./line-height.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";
56
59
  export {
57
- Pr as A11yCheckerPlugin,
58
- oo as AnchorPlugin,
59
- Co as ApprovalWorkflowPlugin,
60
- z as BackgroundColorPlugin,
61
- h as BlockquotePlugin,
62
- Ao as BlocksLibraryPlugin,
63
- i as BoldPlugin,
64
- V as CapitalizationPlugin,
65
- x as ChecklistPlugin,
66
- xo as CitationsPlugin,
67
- k as ClearFormattingPlugin,
68
- D as CodePlugin,
69
- Qo as CodeSamplePlugin,
70
- pr as CommentsPlugin,
71
- mo as ConditionalContentPlugin,
72
- uo as ContentRulesPlugin,
73
- ao as DataBindingPlugin,
74
- q as DirectionPlugin,
75
- So as DocSchemaPlugin,
76
- wo as DocumentManagerPlugin,
77
- Z as EmbedIframePlugin,
78
- X as EmojisPlugin,
79
- y as FontFamilyPlugin,
80
- E as FontSizePlugin,
81
- Ko as FootnotePlugin,
82
- jo as FullscreenPlugin,
83
- e as HeadingPlugin,
84
- C as HistoryPlugin,
85
- W as IndentPlugin,
86
- l as ItalicPlugin,
87
- R as LineHeightPlugin,
88
- d as LinkPlugin,
89
- u as ListPlugin,
90
- J as MathPlugin,
91
- Io as MediaManagerPlugin,
92
- eo as MentionPlugin,
93
- Yo as MergeTagPlugin,
94
- To as PIIRedactionPlugin,
95
- $o as PREDEFINED_TEMPLATES,
96
- _o as PageBreakPlugin,
97
- Uo as PreviewPlugin,
98
- No as PrintPlugin,
99
- Fo as SlashCommandsPlugin,
100
- Mo as SmartPastePlugin,
101
- O as SpecialCharactersPlugin,
102
- fr as SpellCheckPlugin,
103
- a as StrikethroughPlugin,
104
- b as TablePlugin,
105
- or as TemplatePlugin,
106
- L as TextAlignmentPlugin,
107
- v as TextColorPlugin,
108
- io as TrackChangesPlugin,
109
- Bo as TranslationWorkflowPlugin,
110
- m as UnderlinePlugin,
111
- lo as VersionDiffPlugin,
112
- rr as addCustomTemplate,
113
- sr as buildApiUrl,
114
- er as getAllTemplates,
115
- zo as getDocumentManagerConfig,
116
- Cr as getGlobalApiConfig,
117
- cr as getGlobalApiHeaders,
118
- Lo as getMediaManagerConfig,
119
- tr as getTemplateCategories,
120
- ir as getTemplatesByCategory,
121
- nr as sanitizeTemplate,
122
- lr as searchTemplates,
123
- Go as setDocumentManagerConfig,
124
- dr as setGlobalApiConfig,
125
- Ho as setMediaManagerConfig,
126
- gr as validateTemplate
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,
90
+ j as LineHeightPlugin,
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,
107
+ F as TablePlugin,
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
127
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
  };