@editora/core 1.0.7 → 1.0.9

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 (87) hide show
  1. package/README.md +5 -0
  2. package/dist/{A11yCheckerPlugin.native-BRdGYMju.mjs → A11yCheckerPlugin.native-58d12bed.mjs} +23 -12
  3. package/dist/{AnchorPlugin.native-BcYGEtd9.mjs → AnchorPlugin.native-289a112a.mjs} +112 -102
  4. package/dist/ApprovalWorkflowPlugin.native-449ce66c.mjs +1115 -0
  5. package/dist/{BackgroundColorPlugin.native-50iAT9xU.mjs → BackgroundColorPlugin.native-8aceb5cc.mjs} +16 -9
  6. package/dist/{BlockquotePlugin.native-JFmOLsxN.mjs → BlockquotePlugin.native-3541c714.mjs} +3 -2
  7. package/dist/BlocksLibraryPlugin.native-1cc51e63.mjs +1386 -0
  8. package/dist/{BoldPlugin.native-BAzzoqU5.mjs → BoldPlugin.native-f9d7f8e4.mjs} +1 -1
  9. package/dist/{CapitalizationPlugin.native-DOMsh5R7.mjs → CapitalizationPlugin.native-42c135dc.mjs} +3 -2
  10. package/dist/{ChecklistPlugin.native-nuSSEFNI.mjs → ChecklistPlugin.native-3b397ee9.mjs} +43 -22
  11. package/dist/CitationsPlugin.native-169fb1e8.mjs +1532 -0
  12. package/dist/{ClearFormattingPlugin.native-Bq_XcTh2.mjs → ClearFormattingPlugin.native-77baa514.mjs} +11 -6
  13. package/dist/{CodePlugin.native-DlpTPdkd.mjs → CodePlugin.native-989cf0aa.mjs} +629 -580
  14. package/dist/{CodeSamplePlugin.native-CgGoH-X4.mjs → CodeSamplePlugin.native-6cc0148e.mjs} +19 -10
  15. package/dist/{CommentsPlugin.native-DPSqTkiv.mjs → CommentsPlugin.native-03659874.mjs} +55 -28
  16. package/dist/ConditionalContentPlugin.native-4983143a.mjs +1424 -0
  17. package/dist/ContentRulesPlugin.native-63ed405b.mjs +1149 -0
  18. package/dist/DataBindingPlugin.native-427e9d75.mjs +956 -0
  19. package/dist/{DirectionPlugin.native-CDnbdNyl.mjs → DirectionPlugin.native-4e742f42.mjs} +19 -10
  20. package/dist/DocSchemaPlugin.native-8e41eda0.mjs +1382 -0
  21. package/dist/{DocumentManagerPlugin.native-C2cs_1w4.mjs → DocumentManagerPlugin.native-e69895ad.mjs} +4 -4
  22. package/dist/{EmbedIframePlugin.native-DKJx2OS7.mjs → EmbedIframePlugin.native-55209c87.mjs} +70 -70
  23. package/dist/{EmojisPlugin.native-CitxxlWX.mjs → EmojisPlugin.native-65c5ac47.mjs} +11 -6
  24. package/dist/{FontFamilyPlugin.native-j8hMTbg4.mjs → FontFamilyPlugin.native-f9bc255a.mjs} +7 -4
  25. package/dist/{FontSizePlugin.native-B_jCh7dY.mjs → FontSizePlugin.native-f5647872.mjs} +19 -10
  26. package/dist/{FootnotePlugin.native-D730OGRm.mjs → FootnotePlugin.native-494657b3.mjs} +77 -39
  27. package/dist/{FullscreenPlugin.native-ChXyxeNw.mjs → FullscreenPlugin.native-87ce92e9.mjs} +1 -1
  28. package/dist/{HeadingPlugin.native-DrLYwQnQ.mjs → HeadingPlugin.native-e38c4a16.mjs} +1 -1
  29. package/dist/{HistoryPlugin.native-TDnVMsEO.mjs → HistoryPlugin.native-92ed4be4.mjs} +43 -22
  30. package/dist/{IndentPlugin.native-BHixp8sP.mjs → IndentPlugin.native-e4ee902b.mjs} +23 -12
  31. package/dist/{ItalicPlugin.native-CQjjDyUL.mjs → ItalicPlugin.native-7c95cfbc.mjs} +1 -1
  32. package/dist/{LineHeightPlugin.native-CM7iXdQj.mjs → LineHeightPlugin.native-5668f78c.mjs} +19 -10
  33. package/dist/{LinkPlugin.native-DYCIcdTm.mjs → LinkPlugin.native-6df29111.mjs} +9 -5
  34. package/dist/{ListPlugin.native-V7EZC1lM.mjs → ListPlugin.native-fe2e115a.mjs} +9 -5
  35. package/dist/{MathPlugin.native-f_mDp8VL.mjs → MathPlugin.native-735bbac2.mjs} +9 -5
  36. package/dist/{MediaManagerPlugin.native-BiXiK8FC.mjs → MediaManagerPlugin.native-3cf48a00.mjs} +219 -207
  37. package/dist/MentionPlugin.native-3b1e8c05.mjs +778 -0
  38. package/dist/{MergeTagPlugin.native-C3eOfEgw.mjs → MergeTagPlugin.native-31cf7d48.mjs} +51 -26
  39. package/dist/PIIRedactionPlugin.native-7ab10b9f.mjs +1449 -0
  40. package/dist/{PageBreakPlugin.native-CXdX5fAv.mjs → PageBreakPlugin.native-1794c5fb.mjs} +67 -52
  41. package/dist/{PreviewPlugin.native-DBvfpmIv.mjs → PreviewPlugin.native-f7b67cc0.mjs} +38 -33
  42. package/dist/{PrintPlugin.native-7qt5v7L5.mjs → PrintPlugin.native-f6a168c2.mjs} +5 -3
  43. package/dist/SlashCommandsPlugin.native-8d45e511.mjs +790 -0
  44. package/dist/SmartPastePlugin.native-a6c5efec.mjs +1447 -0
  45. package/dist/{SpecialCharactersPlugin.native-CZDato89.mjs → SpecialCharactersPlugin.native-7f06d4ba.mjs} +17 -9
  46. package/dist/{SpellCheckPlugin.native-BZB9AewP.mjs → SpellCheckPlugin.native-04e20834.mjs} +41 -21
  47. package/dist/{StrikethroughPlugin.native-0Be7j49s.mjs → StrikethroughPlugin.native-905e9501.mjs} +9 -5
  48. package/dist/{TablePlugin.native-DrHX-efe.mjs → TablePlugin.native-7d5458c1.mjs} +58 -30
  49. package/dist/{TemplatePlugin.native-CrpfKRJ8.mjs → TemplatePlugin.native-580f0f63.mjs} +32 -17
  50. package/dist/{TextAlignmentPlugin.native-sM_1s00t.mjs → TextAlignmentPlugin.native-9357b3ed.mjs} +11 -6
  51. package/dist/{TextColorPlugin.native-Bwl_bSmc.mjs → TextColorPlugin.native-d53ed459.mjs} +26 -14
  52. package/dist/TrackChangesPlugin.native-e96da509.mjs +818 -0
  53. package/dist/TranslationWorkflowPlugin.native-4e711b1e.mjs +1797 -0
  54. package/dist/{UnderlinePlugin.native-QpIcK4L2.mjs → UnderlinePlugin.native-8080c998.mjs} +1 -1
  55. package/dist/VersionDiffPlugin.native-5bbeff85.mjs +801 -0
  56. package/dist/_commonjsHelpers-69d58be2.mjs +31 -0
  57. package/dist/{anchoredPopover-Bxds0VoB.mjs → anchoredPopover-5cca53ba.mjs} +1 -1
  58. package/dist/documentManager-8327fb6e.mjs +9166 -0
  59. package/dist/{editorContainerHelpers-C7kdWnS0.mjs → editorContainerHelpers-69585c07.mjs} +3 -2
  60. package/dist/editora.min.js +14 -13
  61. package/dist/editora.umd.js +14 -13
  62. package/dist/{html2canvas.esm-AYkPY5LS.mjs → html2canvas.esm-c51cb3b9.mjs} +978 -894
  63. package/dist/index-072ef022.js +11 -0
  64. package/dist/index-49d31221.mjs +16860 -0
  65. package/dist/{index-yzU4NdPT.mjs → index-7da30697.mjs} +490 -358
  66. package/dist/index.cjs.js +1 -1
  67. package/dist/index.es-b47a189f.mjs +5782 -0
  68. package/dist/index.esm.js +12 -7
  69. package/dist/{jspdf.es.min-BJGtOnRT.mjs → jspdf.es.min-780c82db.mjs} +4808 -3784
  70. package/dist/plugin-loader.js +77 -40
  71. package/dist/{purify.es-CKpwg8Tk.mjs → purify.es-3bdbcfc5.mjs} +20 -10
  72. package/dist/style.css +1 -0
  73. package/dist/webcomponent-core.js +546 -414
  74. package/dist/webcomponent-core.min.css +1 -1
  75. package/dist/webcomponent-core.min.js +40 -39
  76. package/dist/webcomponent.cjs.js +1 -1
  77. package/dist/webcomponent.esm.js +1 -1
  78. package/dist/webcomponent.js +484 -315
  79. package/dist/webcomponent.min.css +1 -1
  80. package/dist/webcomponent.min.js +6035 -558
  81. package/package.json +11 -5
  82. package/dist/_commonjsHelpers-DOllISpa.mjs +0 -32
  83. package/dist/core.css +0 -1
  84. package/dist/documentManager-vQ1VkbUY.mjs +0 -8418
  85. package/dist/index-BpE6GFbz.js +0 -10
  86. package/dist/index-BslAFzmv.mjs +0 -16544
  87. package/dist/index.es-BYD2KEo6.mjs +0 -6666
@@ -1,55 +1,92 @@
1
1
  const r = {
2
- codeSample: () => import("./CodeSamplePlugin.native-CgGoH-X4.mjs").then((e) => e.CodeSamplePlugin()),
3
- checklist: () => import("./ChecklistPlugin.native-nuSSEFNI.mjs").then((e) => e.ChecklistPlugin()),
4
- textAlignment: () => import("./TextAlignmentPlugin.native-sM_1s00t.mjs").then((e) => e.TextAlignmentPlugin()),
5
- indent: () => import("./IndentPlugin.native-BHixp8sP.mjs").then((e) => e.IndentPlugin()),
6
- direction: () => import("./DirectionPlugin.native-CDnbdNyl.mjs").then((e) => e.DirectionPlugin()),
7
- textColor: () => import("./TextColorPlugin.native-Bwl_bSmc.mjs").then((e) => e.TextColorPlugin()),
8
- backgroundColor: () => import("./BackgroundColorPlugin.native-50iAT9xU.mjs").then((e) => e.BackgroundColorPlugin()),
9
- fontSize: () => import("./FontSizePlugin.native-B_jCh7dY.mjs").then((e) => e.FontSizePlugin()),
10
- fontFamily: () => import("./FontFamilyPlugin.native-j8hMTbg4.mjs").then((e) => e.FontFamilyPlugin()),
11
- lineHeight: () => import("./LineHeightPlugin.native-CM7iXdQj.mjs").then((e) => e.LineHeightPlugin()),
12
- capitalization: () => import("./CapitalizationPlugin.native-DOMsh5R7.mjs").then((e) => e.CapitalizationPlugin()),
13
- link: () => import("./LinkPlugin.native-DYCIcdTm.mjs").then((e) => e.LinkPlugin()),
14
- table: () => import("./TablePlugin.native-DrHX-efe.mjs").then((e) => e.TablePlugin()),
15
- anchor: () => import("./AnchorPlugin.native-BcYGEtd9.mjs").then((e) => e.AnchorPlugin()),
16
- embedIframe: () => import("./EmbedIframePlugin.native-DKJx2OS7.mjs").then((e) => e.EmbedIframePlugin()),
17
- math: () => import("./MathPlugin.native-f_mDp8VL.mjs").then((e) => e.MathPlugin()),
18
- image: () => import("./MediaManagerPlugin.native-BiXiK8FC.mjs").then((e) => e.MediaManagerPlugin()),
19
- mergeTag: () => import("./MergeTagPlugin.native-C3eOfEgw.mjs").then((e) => e.MergeTagPlugin()),
20
- pageBreak: () => import("./PageBreakPlugin.native-CXdX5fAv.mjs").then((e) => e.PageBreakPlugin()),
21
- print: () => import("./PrintPlugin.native-7qt5v7L5.mjs").then((e) => e.PrintPlugin()),
22
- preview: () => import("./PreviewPlugin.native-DBvfpmIv.mjs").then((e) => e.PreviewPlugin()),
23
- specialCharacters: () => import("./SpecialCharactersPlugin.native-CZDato89.mjs").then((e) => e.SpecialCharactersPlugin()),
24
- spellCheck: () => import("./SpellCheckPlugin.native-BZB9AewP.mjs").then((e) => e.SpellCheckPlugin()),
25
- emojis: () => import("./EmojisPlugin.native-CitxxlWX.mjs").then((e) => e.EmojisPlugin()),
26
- a11yChecker: () => import("./A11yCheckerPlugin.native-BRdGYMju.mjs").then((e) => e.A11yCheckerPlugin()),
27
- comments: () => import("./CommentsPlugin.native-DPSqTkiv.mjs").then((e) => e.CommentsPlugin()),
28
- "document-manager": () => import("./DocumentManagerPlugin.native-C2cs_1w4.mjs").then((e) => e.DocumentManagerPlugin()),
29
- fullscreen: () => import("./FullscreenPlugin.native-ChXyxeNw.mjs").then((e) => e.FullscreenPlugin()),
30
- template: () => import("./TemplatePlugin.native-CrpfKRJ8.mjs").then((e) => e.TemplatePlugin()),
31
- footnote: () => import("./FootnotePlugin.native-D730OGRm.mjs").then((e) => e.FootnotePlugin())
2
+ codeSample: () => import("./CodeSamplePlugin.native-6cc0148e.mjs").then((n) => n.CodeSamplePlugin()),
3
+ checklist: () => import("./ChecklistPlugin.native-3b397ee9.mjs").then((n) => n.ChecklistPlugin()),
4
+ textAlignment: () => import("./TextAlignmentPlugin.native-9357b3ed.mjs").then((n) => n.TextAlignmentPlugin()),
5
+ indent: () => import("./IndentPlugin.native-e4ee902b.mjs").then((n) => n.IndentPlugin()),
6
+ direction: () => import("./DirectionPlugin.native-4e742f42.mjs").then((n) => n.DirectionPlugin()),
7
+ textColor: () => import("./TextColorPlugin.native-d53ed459.mjs").then((n) => n.TextColorPlugin()),
8
+ backgroundColor: () => import("./BackgroundColorPlugin.native-8aceb5cc.mjs").then((n) => n.BackgroundColorPlugin()),
9
+ fontSize: () => import("./FontSizePlugin.native-f5647872.mjs").then((n) => n.FontSizePlugin()),
10
+ fontFamily: () => import("./FontFamilyPlugin.native-f9bc255a.mjs").then((n) => n.FontFamilyPlugin()),
11
+ lineHeight: () => import("./LineHeightPlugin.native-5668f78c.mjs").then((n) => n.LineHeightPlugin()),
12
+ capitalization: () => import("./CapitalizationPlugin.native-42c135dc.mjs").then((n) => n.CapitalizationPlugin()),
13
+ link: () => import("./LinkPlugin.native-6df29111.mjs").then((n) => n.LinkPlugin()),
14
+ table: () => import("./TablePlugin.native-7d5458c1.mjs").then((n) => n.TablePlugin()),
15
+ trackChanges: () => import("./TrackChangesPlugin.native-e96da509.mjs").then((n) => n.TrackChangesPlugin()),
16
+ versionDiff: () => import("./VersionDiffPlugin.native-5bbeff85.mjs").then((n) => n.VersionDiffPlugin()),
17
+ "version-diff": () => import("./VersionDiffPlugin.native-5bbeff85.mjs").then((n) => n.VersionDiffPlugin()),
18
+ versiondiff: () => import("./VersionDiffPlugin.native-5bbeff85.mjs").then((n) => n.VersionDiffPlugin()),
19
+ conditionalContent: () => import("./ConditionalContentPlugin.native-4983143a.mjs").then((n) => n.ConditionalContentPlugin()),
20
+ "conditional-content": () => import("./ConditionalContentPlugin.native-4983143a.mjs").then((n) => n.ConditionalContentPlugin()),
21
+ conditionalcontent: () => import("./ConditionalContentPlugin.native-4983143a.mjs").then((n) => n.ConditionalContentPlugin()),
22
+ dataBinding: () => import("./DataBindingPlugin.native-427e9d75.mjs").then((n) => n.DataBindingPlugin()),
23
+ "data-binding": () => import("./DataBindingPlugin.native-427e9d75.mjs").then((n) => n.DataBindingPlugin()),
24
+ databinding: () => import("./DataBindingPlugin.native-427e9d75.mjs").then((n) => n.DataBindingPlugin()),
25
+ docSchema: () => import("./DocSchemaPlugin.native-8e41eda0.mjs").then((n) => n.DocSchemaPlugin()),
26
+ "doc-schema": () => import("./DocSchemaPlugin.native-8e41eda0.mjs").then((n) => n.DocSchemaPlugin()),
27
+ docschema: () => import("./DocSchemaPlugin.native-8e41eda0.mjs").then((n) => n.DocSchemaPlugin()),
28
+ translationWorkflow: () => import("./TranslationWorkflowPlugin.native-4e711b1e.mjs").then((n) => n.TranslationWorkflowPlugin()),
29
+ "translation-workflow": () => import("./TranslationWorkflowPlugin.native-4e711b1e.mjs").then((n) => n.TranslationWorkflowPlugin()),
30
+ translationworkflow: () => import("./TranslationWorkflowPlugin.native-4e711b1e.mjs").then((n) => n.TranslationWorkflowPlugin()),
31
+ contentRules: () => import("./ContentRulesPlugin.native-63ed405b.mjs").then((n) => n.ContentRulesPlugin()),
32
+ "content-rules": () => import("./ContentRulesPlugin.native-63ed405b.mjs").then((n) => n.ContentRulesPlugin()),
33
+ contentrules: () => import("./ContentRulesPlugin.native-63ed405b.mjs").then((n) => n.ContentRulesPlugin()),
34
+ citations: () => import("./CitationsPlugin.native-169fb1e8.mjs").then((n) => n.CitationsPlugin()),
35
+ citation: () => import("./CitationsPlugin.native-169fb1e8.mjs").then((n) => n.CitationsPlugin()),
36
+ approvalWorkflow: () => import("./ApprovalWorkflowPlugin.native-449ce66c.mjs").then((n) => n.ApprovalWorkflowPlugin()),
37
+ "approval-workflow": () => import("./ApprovalWorkflowPlugin.native-449ce66c.mjs").then((n) => n.ApprovalWorkflowPlugin()),
38
+ approvalworkflow: () => import("./ApprovalWorkflowPlugin.native-449ce66c.mjs").then((n) => n.ApprovalWorkflowPlugin()),
39
+ piiRedaction: () => import("./PIIRedactionPlugin.native-7ab10b9f.mjs").then((n) => n.PIIRedactionPlugin()),
40
+ "pii-redaction": () => import("./PIIRedactionPlugin.native-7ab10b9f.mjs").then((n) => n.PIIRedactionPlugin()),
41
+ piiredaction: () => import("./PIIRedactionPlugin.native-7ab10b9f.mjs").then((n) => n.PIIRedactionPlugin()),
42
+ smartPaste: () => import("./SmartPastePlugin.native-a6c5efec.mjs").then((n) => n.SmartPastePlugin()),
43
+ "smart-paste": () => import("./SmartPastePlugin.native-a6c5efec.mjs").then((n) => n.SmartPastePlugin()),
44
+ smartpaste: () => import("./SmartPastePlugin.native-a6c5efec.mjs").then((n) => n.SmartPastePlugin()),
45
+ blocksLibrary: () => import("./BlocksLibraryPlugin.native-1cc51e63.mjs").then((n) => n.BlocksLibraryPlugin()),
46
+ "blocks-library": () => import("./BlocksLibraryPlugin.native-1cc51e63.mjs").then((n) => n.BlocksLibraryPlugin()),
47
+ blockslibrary: () => import("./BlocksLibraryPlugin.native-1cc51e63.mjs").then((n) => n.BlocksLibraryPlugin()),
48
+ mentions: () => import("./MentionPlugin.native-3b1e8c05.mjs").then((n) => n.MentionPlugin()),
49
+ mention: () => import("./MentionPlugin.native-3b1e8c05.mjs").then((n) => n.MentionPlugin()),
50
+ anchor: () => import("./AnchorPlugin.native-289a112a.mjs").then((n) => n.AnchorPlugin()),
51
+ embedIframe: () => import("./EmbedIframePlugin.native-55209c87.mjs").then((n) => n.EmbedIframePlugin()),
52
+ math: () => import("./MathPlugin.native-735bbac2.mjs").then((n) => n.MathPlugin()),
53
+ image: () => import("./MediaManagerPlugin.native-3cf48a00.mjs").then((n) => n.MediaManagerPlugin()),
54
+ mergeTag: () => import("./MergeTagPlugin.native-31cf7d48.mjs").then((n) => n.MergeTagPlugin()),
55
+ pageBreak: () => import("./PageBreakPlugin.native-1794c5fb.mjs").then((n) => n.PageBreakPlugin()),
56
+ print: () => import("./PrintPlugin.native-f6a168c2.mjs").then((n) => n.PrintPlugin()),
57
+ preview: () => import("./PreviewPlugin.native-f7b67cc0.mjs").then((n) => n.PreviewPlugin()),
58
+ specialCharacters: () => import("./SpecialCharactersPlugin.native-7f06d4ba.mjs").then((n) => n.SpecialCharactersPlugin()),
59
+ slashCommands: () => import("./SlashCommandsPlugin.native-8d45e511.mjs").then((n) => n.SlashCommandsPlugin()),
60
+ "slash-commands": () => import("./SlashCommandsPlugin.native-8d45e511.mjs").then((n) => n.SlashCommandsPlugin()),
61
+ spellCheck: () => import("./SpellCheckPlugin.native-04e20834.mjs").then((n) => n.SpellCheckPlugin()),
62
+ emojis: () => import("./EmojisPlugin.native-65c5ac47.mjs").then((n) => n.EmojisPlugin()),
63
+ a11yChecker: () => import("./A11yCheckerPlugin.native-58d12bed.mjs").then((n) => n.A11yCheckerPlugin()),
64
+ comments: () => import("./CommentsPlugin.native-03659874.mjs").then((n) => n.CommentsPlugin()),
65
+ "document-manager": () => import("./DocumentManagerPlugin.native-e69895ad.mjs").then((n) => n.DocumentManagerPlugin()),
66
+ fullscreen: () => import("./FullscreenPlugin.native-87ce92e9.mjs").then((n) => n.FullscreenPlugin()),
67
+ template: () => import("./TemplatePlugin.native-580f0f63.mjs").then((n) => n.TemplatePlugin()),
68
+ footnote: () => import("./FootnotePlugin.native-494657b3.mjs").then((n) => n.FootnotePlugin())
32
69
  };
33
- async function a(e) {
34
- var t, i;
35
- const n = ((t = window.EditoraCore) == null ? void 0 : t.__globalPluginLoader) || ((i = window.Editora) == null ? void 0 : i.__globalPluginLoader);
36
- if (!n) {
70
+ async function a(n) {
71
+ var i, o;
72
+ const t = ((i = window.EditoraCore) == null ? void 0 : i.__globalPluginLoader) || ((o = window.Editora) == null ? void 0 : o.__globalPluginLoader);
73
+ if (!t) {
37
74
  console.warn("Editora plugin loader not found. Make sure to load the core bundle first.");
38
75
  return;
39
76
  }
40
- Object.entries(r).forEach(([o, l]) => {
41
- n.getRegisteredPluginNames().includes(o) || n.register(o, l);
42
- }), await n.loadMultiple(e);
77
+ Object.entries(r).forEach(([e, l]) => {
78
+ t.getRegisteredPluginNames().includes(e) || t.register(e, l);
79
+ }), await t.loadMultiple(n);
43
80
  }
44
- function g() {
81
+ function m() {
45
82
  return Object.keys(r);
46
83
  }
47
84
  typeof window != "undefined" && (window.EditoraPlugins = {
48
85
  loadPlugins: a,
49
- getAvailablePlugins: g
86
+ getAvailablePlugins: m
50
87
  });
51
88
  export {
52
- g as getAvailablePlugins,
89
+ m as getAvailablePlugins,
53
90
  a as loadPlugins
54
91
  };
55
92
  //# sourceMappingURL=plugin-loader.js.map
@@ -1,3 +1,4 @@
1
+ /*! @license DOMPurify 2.5.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.8/LICENSE */
1
2
  function I(a) {
2
3
  "@babel/helpers - typeof";
3
4
  return I = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
@@ -12,8 +13,10 @@ function Fe(a, n) {
12
13
  }, Fe(a, n);
13
14
  }
14
15
  function zt() {
15
- if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham) return !1;
16
- if (typeof Proxy == "function") return !0;
16
+ if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
17
+ return !1;
18
+ if (typeof Proxy == "function")
19
+ return !0;
17
20
  try {
18
21
  return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
19
22
  })), !0;
@@ -33,22 +36,28 @@ function M(a) {
33
36
  return Gt(a) || Wt(a) || Bt(a) || $t();
34
37
  }
35
38
  function Gt(a) {
36
- if (Array.isArray(a)) return Ue(a);
39
+ if (Array.isArray(a))
40
+ return Ue(a);
37
41
  }
38
42
  function Wt(a) {
39
- if (typeof Symbol != "undefined" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
43
+ if (typeof Symbol != "undefined" && a[Symbol.iterator] != null || a["@@iterator"] != null)
44
+ return Array.from(a);
40
45
  }
41
46
  function Bt(a, n) {
42
47
  if (a) {
43
- if (typeof a == "string") return Ue(a, n);
48
+ if (typeof a == "string")
49
+ return Ue(a, n);
44
50
  var o = Object.prototype.toString.call(a).slice(8, -1);
45
- if (o === "Object" && a.constructor && (o = a.constructor.name), o === "Map" || o === "Set") return Array.from(a);
46
- if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return Ue(a, n);
51
+ if (o === "Object" && a.constructor && (o = a.constructor.name), o === "Map" || o === "Set")
52
+ return Array.from(a);
53
+ if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))
54
+ return Ue(a, n);
47
55
  }
48
56
  }
49
57
  function Ue(a, n) {
50
58
  (n == null || n > a.length) && (n = a.length);
51
- for (var o = 0, s = new Array(n); o < n; o++) s[o] = a[o];
59
+ for (var o = 0, s = new Array(n); o < n; o++)
60
+ s[o] = a[o];
52
61
  return s;
53
62
  }
54
63
  function $t() {
@@ -329,7 +338,8 @@ function _t() {
329
338
  !(ot(e) && (f.tagNameCheck instanceof RegExp && _(f.tagNameCheck, e) || f.tagNameCheck instanceof Function && f.tagNameCheck(e)) && (f.attributeNameCheck instanceof RegExp && _(f.attributeNameCheck, t) || f.attributeNameCheck instanceof Function && f.attributeNameCheck(t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
330
339
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
331
340
  t === "is" && f.allowCustomizedBuiltInElements && (f.tagNameCheck instanceof RegExp && _(f.tagNameCheck, r) || f.tagNameCheck instanceof Function && f.tagNameCheck(r)))
332
- ) return !1;
341
+ )
342
+ return !1;
333
343
  } else if (!be[t]) {
334
344
  if (!_(_e, L(r, Ge, ""))) {
335
345
  if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Zt(r, "data:") === 0 && Ke[e])) {
@@ -468,4 +478,4 @@ var Tr = _t();
468
478
  export {
469
479
  Tr as default
470
480
  };
471
- //# sourceMappingURL=purify.es-CKpwg8Tk.mjs.map
481
+ //# sourceMappingURL=purify.es-3bdbcfc5.mjs.map
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ .rte-table,table{border-collapse:collapse;width:100%;margin:1rem 0;border:1px solid #ddd;font-size:14px;line-height:1.4;position:relative}.rte-table td,.rte-table th,table td,table th{border:1px solid #ddd;padding:8px 12px;min-width:80px;vertical-align:top;position:relative;user-select:none}.rte-table td:focus,.rte-table th:focus,table td:focus,table th:focus{outline:2px solid #007acc;outline-offset:-2px}.rte-table th,table th{background-color:#f8f9fa;font-weight:600;text-align:left}.rte-table td p,table td p{margin:0;padding:0}.rte-table td p:empty:before,table td p:empty:before{content:"​";display:inline-block}.rte-table td[contenteditable]:empty:before,table td[contenteditable]:empty:before{content:"Type here...";color:#999;font-style:italic;pointer-events:none}.rte-table tr:hover,table tr:hover{background-color:#f8f9fa}.rte-table td.selected,table td.selected{background-color:#e3f2fd;border-color:#2196f3}.table-toolbar{background:white;border:1px solid #d0d0d0;border-radius:4px;box-shadow:0 2px 8px #0000001a;padding:4px;display:flex;align-items:center;gap:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;min-width:max-content}.toolbar-section{display:flex;align-items:center;gap:2px}.toolbar-divider{width:1px;height:20px;background:#e0e0e0;margin:0 4px}.toolbar-icon-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid transparent;background:transparent;cursor:pointer;color:#333;border-radius:3px;transition:all .2s ease;flex-shrink:0;font-size:14px;line-height:1}.toolbar-icon-btn svg{width:16px;height:16px}.toolbar-icon-btn:hover:not(:disabled){background:#f0f0f0;border-color:#d0d0d0;color:#06c}.toolbar-icon-btn:active:not(:disabled){background:#e8f0ff;border-color:#06c;transform:scale(.95)}.toolbar-icon-btn:disabled{opacity:.4;cursor:not-allowed;color:#ccc}.toolbar-icon-btn-danger{color:#d32f2f}.toolbar-icon-btn-danger:hover:not(:disabled){background:#fff3f3;border-color:#fcc;color:#d32f2f}.toolbar-icon-btn-danger:active:not(:disabled){background:#ffebee}.toolbar-icon-btn-delete{color:#d32f2f}.toolbar-icon-btn-delete:hover:not(:disabled){background:#fff3f3;border-color:#fcc;color:#d32f2f}.toolbar-icon-btn-delete:active:not(:disabled){background:#ffebee}.resize-handle{opacity:0;transition:all .15s ease}.resize-handle:hover{opacity:1}td:hover>.resize-handle,th:hover>.resize-handle{opacity:1}.table-resize-handle{position:absolute;bottom:-4px;right:-4px;width:12px;height:12px;background:transparent;cursor:nwse-resize;z-index:10;transition:background .15s ease}.table-resize-handle:after{content:"";position:absolute;bottom:0;right:0;width:8px;height:8px;background:rgba(0,102,204,.3);border-bottom:2px solid #0066cc;border-right:2px solid #0066cc;border-radius:0 0 2px;opacity:0;transition:opacity .15s ease}.table-resize-handle:hover:after{opacity:1}.rte-table:hover .table-resize-handle:after,table:hover .table-resize-handle:after{opacity:1}:is([data-theme=dark],.dark,.editora-theme-dark) :is(.rte-table,table){border-color:#607088;background:#24303c;color:#e6eefb}:is([data-theme=dark],.dark,.editora-theme-dark) :is(.rte-table td,.rte-table th,table td,table th){border-color:#607088;color:#e6eefb}:is([data-theme=dark],.dark,.editora-theme-dark) :is(.rte-table th,table th){background:linear-gradient(180deg,#3b4553 0%,#333d4a 100%);color:#f3f8ff}:is([data-theme=dark],.dark,.editora-theme-dark) :is(.rte-table tr:hover,table tr:hover){background-color:#58a6ff1f}:is([data-theme=dark],.dark,.editora-theme-dark) :is(.rte-table td.selected,table td.selected){background-color:#58a6ff47;border-color:#79beff}:is([data-theme=dark],.dark,.editora-theme-dark) :is(.rte-table td[contenteditable]:empty:before,table td[contenteditable]:empty:before){color:#94a3b8}:is([data-theme=dark],.dark,.editora-theme-dark) .table-toolbar{background:linear-gradient(180deg,#2f3844 0%,#2a323c 100%);border-color:#4d596b;box-shadow:0 8px 20px #00000073}.table-toolbar.rte-theme-dark{background:linear-gradient(180deg,#2f3844 0%,#2a323c 100%);border-color:#4d596b;box-shadow:0 8px 20px #00000073}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-divider{background:#4d596b}.table-toolbar.rte-theme-dark .toolbar-divider{background:#4d596b}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn{color:#d7deea;border-color:transparent}.table-toolbar.rte-theme-dark .toolbar-icon-btn{color:#d7deea;border-color:transparent}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn svg{color:currentColor;fill:currentColor}.table-toolbar.rte-theme-dark .toolbar-icon-btn svg{color:currentColor;fill:currentColor}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn svg [stroke="#000" i],:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn svg [stroke="#000000" i],:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn svg [stroke=black i]{stroke:currentColor!important}.table-toolbar.rte-theme-dark .toolbar-icon-btn svg [stroke="#000" i],.table-toolbar.rte-theme-dark .toolbar-icon-btn svg [stroke="#000000" i],.table-toolbar.rte-theme-dark .toolbar-icon-btn svg [stroke=black i]{stroke:currentColor!important}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn svg [fill="#000" i],:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn svg [fill="#000000" i],:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn svg [fill=black i]{fill:currentColor!important}.table-toolbar.rte-theme-dark .toolbar-icon-btn svg [fill="#000" i],.table-toolbar.rte-theme-dark .toolbar-icon-btn svg [fill="#000000" i],.table-toolbar.rte-theme-dark .toolbar-icon-btn svg [fill=black i]{fill:currentColor!important}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn:hover:not(:disabled){background:#3a4554;border-color:#607088;color:#f3f8ff}.table-toolbar.rte-theme-dark .toolbar-icon-btn:hover:not(:disabled){background:#3a4554;border-color:#607088;color:#f3f8ff}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn:active:not(:disabled){background:#4a95de;border-color:#67adf4;color:#0f1b2a}.table-toolbar.rte-theme-dark .toolbar-icon-btn:active:not(:disabled){background:#4a95de;border-color:#67adf4;color:#0f1b2a}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn:disabled{color:#7f8ca1}.table-toolbar.rte-theme-dark .toolbar-icon-btn:disabled{color:#7f8ca1}@media (max-width: 768px){.rte-table,table{font-size:12px}.rte-table td,.rte-table th,table td,table th{padding:4px 6px;min-width:60px}.table-toolbar{padding:3px;gap:0;max-width:90vw;overflow-x:auto}.toolbar-icon-btn{width:26px;height:26px}.toolbar-divider{height:18px}}@media print{.rte-table,table{border:1px solid #000}.rte-table td,.rte-table th,table td,table th{border:1px solid #000;padding:4px}.table-toolbar{display:none}}