@editora/plugins 1.0.10 → 1.0.12

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 (139) hide show
  1. package/README.md +1 -1
  2. package/dist/_commonjsHelpers-BH3jXuIh.js +1 -0
  3. package/dist/_commonjsHelpers-ByX85dGu.mjs +33 -0
  4. package/dist/a11y-checker.cjs.js +12 -12
  5. package/dist/a11y-checker.esm.js +80 -98
  6. package/dist/anchor.cjs.js +12 -12
  7. package/dist/anchor.esm.js +115 -128
  8. package/dist/anchoredPopover-BzqGPOAE.js +1 -0
  9. package/dist/anchoredPopover-Dts0IrgU.mjs +106 -0
  10. package/dist/approval-workflow.cjs.js +40 -40
  11. package/dist/approval-workflow.esm.js +208 -249
  12. package/dist/background-color.cjs.js +2 -2
  13. package/dist/background-color.esm.js +55 -68
  14. package/dist/blockquote.esm.js +1 -2
  15. package/dist/blocks-library.cjs.js +45 -45
  16. package/dist/blocks-library.esm.js +178 -245
  17. package/dist/capitalization.esm.js +1 -2
  18. package/dist/checklist.cjs.js +1 -1
  19. package/dist/checklist.esm.js +58 -82
  20. package/dist/citations.cjs.js +37 -37
  21. package/dist/citations.esm.js +439 -512
  22. package/dist/clear-formatting.cjs.js +1 -1
  23. package/dist/clear-formatting.esm.js +27 -33
  24. package/dist/code-sample.cjs.js +14 -14
  25. package/dist/code-sample.esm.js +82 -93
  26. package/dist/code.cjs.js +119 -42
  27. package/dist/code.esm.js +2560 -760
  28. package/dist/comments.cjs.js +6 -6
  29. package/dist/comments.esm.js +116 -158
  30. package/dist/conditional-content.cjs.js +90 -90
  31. package/dist/conditional-content.esm.js +371 -432
  32. package/dist/content-rules.cjs.js +7 -7
  33. package/dist/content-rules.esm.js +105 -159
  34. package/dist/data-binding.cjs.js +46 -46
  35. package/dist/data-binding.esm.js +328 -368
  36. package/dist/direction.esm.js +9 -18
  37. package/dist/doc-schema.cjs.js +29 -29
  38. package/dist/doc-schema.esm.js +240 -308
  39. package/dist/document-manager.cjs.js +1 -1
  40. package/dist/document-manager.esm.js +4 -5
  41. package/dist/documentManager-CTqRftU8.mjs +8369 -0
  42. package/dist/documentManager-Jf0RbSks.js +17 -0
  43. package/dist/{editorContainerHelpers-69585c07.mjs → editorContainerHelpers-C7kdWnS0.mjs} +1 -2
  44. package/dist/embed-iframe.cjs.js +4 -4
  45. package/dist/embed-iframe.esm.js +73 -81
  46. package/dist/emojis.cjs.js +8 -8
  47. package/dist/emojis.esm.js +65 -77
  48. package/dist/enterprise.cjs.js +1 -1
  49. package/dist/enterprise.esm.js +54 -56
  50. package/dist/font-family.cjs.js +1 -1
  51. package/dist/font-family.esm.js +39 -47
  52. package/dist/font-size.cjs.js +1 -1
  53. package/dist/font-size.esm.js +37 -53
  54. package/dist/footnote.cjs.js +2 -2
  55. package/dist/footnote.esm.js +76 -117
  56. package/dist/history.cjs.js +1 -1
  57. package/dist/history.esm.js +70 -92
  58. package/dist/html2canvas.esm-B5qzocYs.js +5 -0
  59. package/dist/{html2canvas.esm-1a1724a1.mjs → html2canvas.esm-BWVIUcAF.mjs} +141 -225
  60. package/dist/indent.cjs.js +1 -1
  61. package/dist/indent.esm.js +12 -24
  62. package/dist/{index-f04538f2.mjs → index-BFsKNTTj.mjs} +70 -71
  63. package/dist/index-CvJk4DKa.js +221 -0
  64. package/dist/index-D3CycEFU.mjs +16543 -0
  65. package/dist/index-tqLTHcO6.js +1 -0
  66. package/dist/index.cjs.js +1 -1
  67. package/dist/index.es-CE_A4QSm.js +5 -0
  68. package/dist/index.es-DQ78mYYo.mjs +6665 -0
  69. package/dist/index.esm.js +125 -128
  70. package/dist/italic.cjs.js +1 -1
  71. package/dist/italic.esm.js +8 -9
  72. package/dist/jspdf.es.min-BoS80556.js +77 -0
  73. package/dist/{jspdf.es.min-c36a4fd8.mjs → jspdf.es.min-DQCoX5yh.mjs} +3658 -4682
  74. package/dist/line-height.cjs.js +1 -1
  75. package/dist/line-height.esm.js +11 -24
  76. package/dist/link.cjs.js +5 -5
  77. package/dist/link.esm.js +24 -30
  78. package/dist/list.cjs.js +1 -1
  79. package/dist/list.esm.js +20 -25
  80. package/dist/lite.cjs.js +1 -1
  81. package/dist/lite.esm.js +59 -61
  82. package/dist/math.cjs.js +21 -21
  83. package/dist/math.esm.js +139 -146
  84. package/dist/media-manager.cjs.js +31 -31
  85. package/dist/media-manager.esm.js +285 -300
  86. package/dist/mentions.cjs.js +9 -9
  87. package/dist/mentions.esm.js +238 -286
  88. package/dist/merge-tag.cjs.js +2 -2
  89. package/dist/merge-tag.esm.js +177 -216
  90. package/dist/page-break.cjs.js +2 -2
  91. package/dist/page-break.esm.js +33 -49
  92. package/dist/pii-redaction.cjs.js +19 -19
  93. package/dist/pii-redaction.esm.js +393 -463
  94. package/dist/plugins.css +1 -0
  95. package/dist/preview.esm.js +5 -10
  96. package/dist/print.cjs.js +4 -4
  97. package/dist/print.esm.js +17 -20
  98. package/dist/{purify.es-35a15df8.mjs → purify.es-DHhaBdbu.mjs} +9 -19
  99. package/dist/{purify.es-a8d731c6.js → purify.es-T2a3nLiC.js} +1 -1
  100. package/dist/slash-commands.cjs.js +2 -2
  101. package/dist/slash-commands.esm.js +39 -75
  102. package/dist/smart-paste.cjs.js +27 -27
  103. package/dist/smart-paste.esm.js +280 -336
  104. package/dist/special-characters.cjs.js +7 -7
  105. package/dist/special-characters.esm.js +61 -69
  106. package/dist/spell-check.cjs.js +5 -5
  107. package/dist/spell-check.esm.js +97 -123
  108. package/dist/strikethrough.cjs.js +1 -1
  109. package/dist/strikethrough.esm.js +14 -19
  110. package/dist/table.cjs.js +4 -4
  111. package/dist/table.esm.js +191 -225
  112. package/dist/template.cjs.js +21 -20
  113. package/dist/template.esm.js +715 -196
  114. package/dist/text-alignment.cjs.js +1 -1
  115. package/dist/text-alignment.esm.js +21 -27
  116. package/dist/text-color.cjs.js +3 -3
  117. package/dist/text-color.esm.js +70 -87
  118. package/dist/track-changes.cjs.js +2 -2
  119. package/dist/track-changes.esm.js +100 -162
  120. package/dist/translation-workflow.cjs.js +74 -74
  121. package/dist/translation-workflow.esm.js +602 -678
  122. package/dist/version-diff.cjs.js +14 -14
  123. package/dist/version-diff.esm.js +128 -157
  124. package/package.json +1 -1
  125. package/dist/_commonjsHelpers-6763f629.js +0 -1
  126. package/dist/_commonjsHelpers-c5d32002.mjs +0 -30
  127. package/dist/anchoredPopover-33f1358d.mjs +0 -109
  128. package/dist/anchoredPopover-8151d535.js +0 -1
  129. package/dist/documentManager-25b6203c.mjs +0 -9122
  130. package/dist/documentManager-b69e7054.js +0 -17
  131. package/dist/html2canvas.esm-09133e29.js +0 -22
  132. package/dist/index-656d224b.js +0 -231
  133. package/dist/index-6a8c48bb.js +0 -1
  134. package/dist/index-d027b7e2.mjs +0 -16859
  135. package/dist/index.es-730f2d98.mjs +0 -5775
  136. package/dist/index.es-dd40173b.js +0 -18
  137. package/dist/jspdf.es.min-90db2c97.js +0 -243
  138. package/dist/style.css +0 -1
  139. /package/dist/{editorContainerHelpers-36b8ddf3.js → editorContainerHelpers-CFbfiOJI.js} +0 -0
package/dist/index.esm.js CHANGED
@@ -1,130 +1,127 @@
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";
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";
59
56
  export {
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
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
130
127
  };
@@ -1 +1 @@
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
+ "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,11 +1,10 @@
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);
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);
6
5
  };
7
- typeof window < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", e) : e());
8
- const n = () => ({
6
+ typeof window < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", t) : t());
7
+ const a = () => ({
9
8
  name: "italic",
10
9
  marks: {
11
10
  italic: {
@@ -29,7 +28,7 @@ const n = () => ({
29
28
  }
30
29
  ],
31
30
  commands: {
32
- toggleItalic: i
31
+ toggleItalic: e
33
32
  },
34
33
  keymap: {
35
34
  "Mod-i": "toggleItalic",
@@ -37,5 +36,5 @@ const n = () => ({
37
36
  }
38
37
  });
39
38
  export {
40
- n as ItalicPlugin
39
+ a as ItalicPlugin
41
40
  };