@yurikilian/lex4 0.1.0

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 (117) hide show
  1. package/LICENSE +21 -0
  2. package/dist/__tests__/setup.d.ts +1 -0
  3. package/dist/__tests__/setup.d.ts.map +1 -0
  4. package/dist/components/DocumentView.d.ts +10 -0
  5. package/dist/components/DocumentView.d.ts.map +1 -0
  6. package/dist/components/EditorSidebar.d.ts +12 -0
  7. package/dist/components/EditorSidebar.d.ts.map +1 -0
  8. package/dist/components/HeaderFooterActions.d.ts +16 -0
  9. package/dist/components/HeaderFooterActions.d.ts.map +1 -0
  10. package/dist/components/HeaderFooterToggle.d.ts +8 -0
  11. package/dist/components/HeaderFooterToggle.d.ts.map +1 -0
  12. package/dist/components/HistorySidebar.d.ts +3 -0
  13. package/dist/components/HistorySidebar.d.ts.map +1 -0
  14. package/dist/components/Lex4Editor.d.ts +10 -0
  15. package/dist/components/Lex4Editor.d.ts.map +1 -0
  16. package/dist/components/PageBody.d.ts +26 -0
  17. package/dist/components/PageBody.d.ts.map +1 -0
  18. package/dist/components/PageFooter.d.ts +18 -0
  19. package/dist/components/PageFooter.d.ts.map +1 -0
  20. package/dist/components/PageHeader.d.ts +18 -0
  21. package/dist/components/PageHeader.d.ts.map +1 -0
  22. package/dist/components/PageView.d.ts +21 -0
  23. package/dist/components/PageView.d.ts.map +1 -0
  24. package/dist/components/Toolbar.d.ts +3 -0
  25. package/dist/components/Toolbar.d.ts.map +1 -0
  26. package/dist/components/index.d.ts +12 -0
  27. package/dist/components/index.d.ts.map +1 -0
  28. package/dist/constants/dimensions.d.ts +25 -0
  29. package/dist/constants/dimensions.d.ts.map +1 -0
  30. package/dist/constants/index.d.ts +3 -0
  31. package/dist/constants/index.d.ts.map +1 -0
  32. package/dist/constants/page-layout.d.ts +11 -0
  33. package/dist/constants/page-layout.d.ts.map +1 -0
  34. package/dist/context/document-context.d.ts +108 -0
  35. package/dist/context/document-context.d.ts.map +1 -0
  36. package/dist/context/document-provider.d.ts +10 -0
  37. package/dist/context/document-provider.d.ts.map +1 -0
  38. package/dist/context/document-reducer.d.ts +8 -0
  39. package/dist/context/document-reducer.d.ts.map +1 -0
  40. package/dist/context/index.d.ts +5 -0
  41. package/dist/context/index.d.ts.map +1 -0
  42. package/dist/engine/index.d.ts +7 -0
  43. package/dist/engine/index.d.ts.map +1 -0
  44. package/dist/engine/measure.d.ts +15 -0
  45. package/dist/engine/measure.d.ts.map +1 -0
  46. package/dist/engine/overflow.d.ts +28 -0
  47. package/dist/engine/overflow.d.ts.map +1 -0
  48. package/dist/engine/paginate.d.ts +12 -0
  49. package/dist/engine/paginate.d.ts.map +1 -0
  50. package/dist/engine/reflow.d.ts +22 -0
  51. package/dist/engine/reflow.d.ts.map +1 -0
  52. package/dist/hooks/index.d.ts +4 -0
  53. package/dist/hooks/index.d.ts.map +1 -0
  54. package/dist/hooks/use-header-footer.d.ts +10 -0
  55. package/dist/hooks/use-header-footer.d.ts.map +1 -0
  56. package/dist/hooks/use-overflow-detection.d.ts +11 -0
  57. package/dist/hooks/use-overflow-detection.d.ts.map +1 -0
  58. package/dist/hooks/use-pagination.d.ts +22 -0
  59. package/dist/hooks/use-pagination.d.ts.map +1 -0
  60. package/dist/index.d.ts +9 -0
  61. package/dist/index.d.ts.map +1 -0
  62. package/dist/lex4-editor.cjs +3774 -0
  63. package/dist/lex4-editor.cjs.map +1 -0
  64. package/dist/lex4-editor.js +3774 -0
  65. package/dist/lex4-editor.js.map +1 -0
  66. package/dist/lexical/commands/format-commands.d.ts +14 -0
  67. package/dist/lexical/commands/format-commands.d.ts.map +1 -0
  68. package/dist/lexical/commands/index.d.ts +4 -0
  69. package/dist/lexical/commands/index.d.ts.map +1 -0
  70. package/dist/lexical/commands/list-commands.d.ts +25 -0
  71. package/dist/lexical/commands/list-commands.d.ts.map +1 -0
  72. package/dist/lexical/editor-setup.d.ts +10 -0
  73. package/dist/lexical/editor-setup.d.ts.map +1 -0
  74. package/dist/lexical/index.d.ts +8 -0
  75. package/dist/lexical/index.d.ts.map +1 -0
  76. package/dist/lexical/plugins/active-editor-plugin.d.ts +16 -0
  77. package/dist/lexical/plugins/active-editor-plugin.d.ts.map +1 -0
  78. package/dist/lexical/plugins/font-plugin.d.ts +19 -0
  79. package/dist/lexical/plugins/font-plugin.d.ts.map +1 -0
  80. package/dist/lexical/plugins/height-limit-plugin.d.ts +15 -0
  81. package/dist/lexical/plugins/height-limit-plugin.d.ts.map +1 -0
  82. package/dist/lexical/plugins/history-capture-plugin.d.ts +8 -0
  83. package/dist/lexical/plugins/history-capture-plugin.d.ts.map +1 -0
  84. package/dist/lexical/plugins/index.d.ts +9 -0
  85. package/dist/lexical/plugins/index.d.ts.map +1 -0
  86. package/dist/lexical/plugins/overflow-plugin.d.ts +22 -0
  87. package/dist/lexical/plugins/overflow-plugin.d.ts.map +1 -0
  88. package/dist/lexical/plugins/page-boundary-plugin.d.ts +9 -0
  89. package/dist/lexical/plugins/page-boundary-plugin.d.ts.map +1 -0
  90. package/dist/lexical/plugins/paragraph-indent-plugin.d.ts +7 -0
  91. package/dist/lexical/plugins/paragraph-indent-plugin.d.ts.map +1 -0
  92. package/dist/lexical/plugins/paste-plugin.d.ts +9 -0
  93. package/dist/lexical/plugins/paste-plugin.d.ts.map +1 -0
  94. package/dist/lexical/plugins/tab-indent-plugin.d.ts +9 -0
  95. package/dist/lexical/plugins/tab-indent-plugin.d.ts.map +1 -0
  96. package/dist/lexical/theme.d.ts +7 -0
  97. package/dist/lexical/theme.d.ts.map +1 -0
  98. package/dist/style.css +1065 -0
  99. package/dist/types/document.d.ts +40 -0
  100. package/dist/types/document.d.ts.map +1 -0
  101. package/dist/types/editor-props.d.ts +19 -0
  102. package/dist/types/editor-props.d.ts.map +1 -0
  103. package/dist/types/history.d.ts +43 -0
  104. package/dist/types/history.d.ts.map +1 -0
  105. package/dist/types/index.d.ts +5 -0
  106. package/dist/types/index.d.ts.map +1 -0
  107. package/dist/types/page.d.ts +26 -0
  108. package/dist/types/page.d.ts.map +1 -0
  109. package/dist/utils/debug.d.ts +41 -0
  110. package/dist/utils/debug.d.ts.map +1 -0
  111. package/dist/utils/editor-state-utils.d.ts +48 -0
  112. package/dist/utils/editor-state-utils.d.ts.map +1 -0
  113. package/dist/utils/history-manager.d.ts +26 -0
  114. package/dist/utils/history-manager.d.ts.map +1 -0
  115. package/dist/utils/index.d.ts +3 -0
  116. package/dist/utils/index.d.ts.map +1 -0
  117. package/package.json +80 -0
@@ -0,0 +1,14 @@
1
+ import { LexicalEditor, TextFormatType, ElementFormatType } from 'lexical';
2
+ /**
3
+ * Dispatches a text formatting command to the given Lexical editor.
4
+ */
5
+ export declare function toggleFormat(editor: LexicalEditor, format: TextFormatType): void;
6
+ export declare function toggleBold(editor: LexicalEditor): void;
7
+ export declare function toggleItalic(editor: LexicalEditor): void;
8
+ export declare function toggleUnderline(editor: LexicalEditor): void;
9
+ export declare function toggleStrikethrough(editor: LexicalEditor): void;
10
+ /**
11
+ * Dispatches an element alignment command.
12
+ */
13
+ export declare function setAlignment(editor: LexicalEditor, alignment: ElementFormatType): void;
14
+ //# sourceMappingURL=format-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-commands.d.ts","sourceRoot":"","sources":["../../../src/lexical/commands/format-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,cAAc,EACpB,MAAM,SAAS,CAAC;AACjB,OAAO,EAA0B,KAAK,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEzE;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc,GAAG,IAAI,CAEhF;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAEtD;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAExD;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAE3D;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAE/D;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,iBAAiB,GAAG,IAAI,CAEtF"}
@@ -0,0 +1,4 @@
1
+ export { toggleFormat, toggleBold, toggleItalic, toggleUnderline, toggleStrikethrough, setAlignment } from './format-commands';
2
+ export { insertList, removeList, indentContent, outdentContent } from './list-commands';
3
+ export type { ListType } from './list-commands';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lexical/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC/H,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACxF,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { LexicalEditor } from 'lexical';
2
+ export type ListType = 'number' | 'bullet';
3
+ /**
4
+ * Inserts a list of the given type into the editor.
5
+ */
6
+ export declare function insertList(editor: LexicalEditor, type: ListType): void;
7
+ /**
8
+ * Removes the current list formatting.
9
+ */
10
+ export declare function removeList(editor: LexicalEditor): void;
11
+ /**
12
+ * Indents the current selection.
13
+ *
14
+ * Paragraphs are rendered as first-line indents by the paragraph indent plugin,
15
+ * while list items keep Lexical's native nesting behavior.
16
+ */
17
+ export declare function indentContent(editor: LexicalEditor): void;
18
+ /**
19
+ * Outdents the current selection.
20
+ *
21
+ * Paragraphs are rendered as first-line indents by the paragraph indent plugin,
22
+ * while list items keep Lexical's native un-nesting behavior.
23
+ */
24
+ export declare function outdentContent(editor: LexicalEditor): void;
25
+ //# sourceMappingURL=list-commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-commands.d.ts","sourceRoot":"","sources":["../../../src/lexical/commands/list-commands.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3C;;GAEG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,GAAG,IAAI,CAMtE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAEtD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAE1D"}
@@ -0,0 +1,10 @@
1
+ import { InitialConfigType } from '@lexical/react/LexicalComposer';
2
+ export type EditorMode = 'body' | 'header' | 'footer';
3
+ /**
4
+ * Creates a Lexical editor configuration for the given mode.
5
+ *
6
+ * Each mode gets its own namespace to avoid conflicts when
7
+ * multiple Lexical editors coexist on the same page.
8
+ */
9
+ export declare function createEditorConfig(mode: EditorMode, pageId?: string): InitialConfigType;
10
+ //# sourceMappingURL=editor-setup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor-setup.d.ts","sourceRoot":"","sources":["../../src/lexical/editor-setup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAMxE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEtD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,UAAU,EAChB,MAAM,CAAC,EAAE,MAAM,GACd,iBAAiB,CAWnB"}
@@ -0,0 +1,8 @@
1
+ export { createEditorConfig } from './editor-setup';
2
+ export type { EditorMode } from './editor-setup';
3
+ export { lexicalTheme } from './theme';
4
+ export { toggleFormat, toggleBold, toggleItalic, toggleUnderline, toggleStrikethrough, setAlignment, insertList, removeList, indentContent, outdentContent, } from './commands';
5
+ export type { ListType } from './commands';
6
+ export { TabIndentPlugin, FontPlugin, applyFontFamily, PastePlugin, SUPPORTED_FONTS } from './plugins';
7
+ export type { FontFamily } from './plugins';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lexical/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,UAAU,EACV,UAAU,EACV,aAAa,EACb,cAAc,GACf,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACvG,YAAY,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { LexicalEditor } from 'lexical';
2
+ import { CaretPosition } from '../../types/history';
3
+ interface ActiveEditorPluginProps {
4
+ pageId: string;
5
+ region: CaretPosition['region'];
6
+ onFocus?: (editor: LexicalEditor) => void;
7
+ }
8
+ /**
9
+ * ActiveEditorPlugin — Registers the editor in the document context on focus.
10
+ *
11
+ * This enables the toolbar to dispatch commands (bold, italic, etc.)
12
+ * to whichever editor the user is currently editing.
13
+ */
14
+ export declare const ActiveEditorPlugin: React.FC<ActiveEditorPluginProps>;
15
+ export {};
16
+ //# sourceMappingURL=active-editor-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"active-editor-plugin.d.ts","sourceRoot":"","sources":["../../../src/lexical/plugins/active-editor-plugin.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGzD,UAAU,uBAAuB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;CAC3C;AAgCD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA+FhE,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ import { LexicalEditor } from 'lexical';
3
+ declare const SUPPORTED_FONTS: readonly ["Times New Roman", "Arial", "Calibri", "Georgia", "Courier New"];
4
+ export type FontFamily = (typeof SUPPORTED_FONTS)[number];
5
+ export { SUPPORTED_FONTS };
6
+ /**
7
+ * Applies a font family to the current text selection by setting
8
+ * inline CSS style on each selected text node.
9
+ */
10
+ export declare function applyFontFamily(editor: LexicalEditor, fontFamily: FontFamily): void;
11
+ interface FontPluginProps {
12
+ onFontChange?: (font: string) => void;
13
+ }
14
+ /**
15
+ * FontPlugin — tracks the current selection's font and exposes a callback
16
+ * for the toolbar to display the active font.
17
+ */
18
+ export declare const FontPlugin: React.FC<FontPluginProps>;
19
+ //# sourceMappingURL=font-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"font-plugin.d.ts","sourceRoot":"","sources":["../../../src/lexical/plugins/font-plugin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAEtD,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,SAAS,CAAC;AAEjB,QAAA,MAAM,eAAe,4EAMX,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI,CAYnF;AAED,UAAU,eAAe;IACvB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA6BhD,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * HeightLimitPlugin — Prevents editing that would push content beyond
3
+ * a maximum height. Instead of clipping overflow, this plugin reverts
4
+ * any change that makes the editor's scrollHeight exceed maxHeight.
5
+ *
6
+ * Works by:
7
+ * 1. Blocking Enter key when already at max height
8
+ * 2. Saving editor state before each update, reverting if scrollHeight exceeds limit
9
+ * 3. Truncating paste content that would overflow
10
+ */
11
+ export declare function HeightLimitPlugin({ maxHeight, channel }: {
12
+ maxHeight: number;
13
+ channel: 'header' | 'footer';
14
+ }): null;
15
+ //# sourceMappingURL=height-limit-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"height-limit-plugin.d.ts","sourceRoot":"","sources":["../../../src/lexical/plugins/height-limit-plugin.tsx"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,QAAQ,GAAG,QAAQ,CAAA;CAAE,QAyE5G"}
@@ -0,0 +1,8 @@
1
+ import { HistoryRegion } from '../../types/history';
2
+ interface HistoryCapturePluginProps {
3
+ pageId: string;
4
+ region: Exclude<HistoryRegion, 'document'>;
5
+ }
6
+ export declare const HistoryCapturePlugin: React.FC<HistoryCapturePluginProps>;
7
+ export {};
8
+ //# sourceMappingURL=history-capture-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history-capture-plugin.d.ts","sourceRoot":"","sources":["../../../src/lexical/plugins/history-capture-plugin.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAA2B,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAElF,UAAU,yBAAyB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;CAC5C;AAWD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAyKpE,CAAC"}
@@ -0,0 +1,9 @@
1
+ export { TabIndentPlugin } from './tab-indent-plugin';
2
+ export { ParagraphIndentPlugin } from './paragraph-indent-plugin';
3
+ export { FontPlugin, applyFontFamily, SUPPORTED_FONTS } from './font-plugin';
4
+ export type { FontFamily } from './font-plugin';
5
+ export { PastePlugin } from './paste-plugin';
6
+ export { ActiveEditorPlugin } from './active-editor-plugin';
7
+ export { OverflowPlugin } from './overflow-plugin';
8
+ export { HeightLimitPlugin } from './height-limit-plugin';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lexical/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC7E,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { SerializedEditorState } from 'lexical';
2
+ interface OverflowPluginProps {
3
+ /** Called with the serialized overflow content that must go to the next page */
4
+ onOverflow: (overflowContent: SerializedEditorState, cause: 'paste' | 'content') => void;
5
+ }
6
+ /**
7
+ * OverflowPlugin — Detects content overflow inside a Lexical editor
8
+ * and automatically extracts overflow nodes.
9
+ *
10
+ * Uses registerRootListener to reliably get the root element (handles
11
+ * the case where the root is not yet available on first render).
12
+ *
13
+ * Measures child element positions via getBoundingClientRect() relative
14
+ * to the container, which works regardless of CSS overflow settings.
15
+ *
16
+ * Debounces overflow checks during normal typing (300ms) to avoid
17
+ * extracting only the empty trailing paragraph. Paste and external
18
+ * state changes (e.g. setEditorState) trigger immediate checks.
19
+ */
20
+ export declare const OverflowPlugin: React.FC<OverflowPluginProps>;
21
+ export {};
22
+ //# sourceMappingURL=overflow-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overflow-plugin.d.ts","sourceRoot":"","sources":["../../../src/lexical/plugins/overflow-plugin.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,qBAAqB,EAE3B,MAAM,SAAS,CAAC;AAiBjB,UAAU,mBAAmB;IAC3B,gFAAgF;IAChF,UAAU,EAAE,CACV,eAAe,EAAE,qBAAqB,EACtC,KAAK,EAAE,OAAO,GAAG,SAAS,KACvB,IAAI,CAAC;CACX;AAKD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8LxD,CAAC"}
@@ -0,0 +1,9 @@
1
+ interface PageBoundaryPluginProps {
2
+ onBackspaceAtStart: () => void;
3
+ onDeleteAtEnd: () => void;
4
+ onMoveToPreviousPage: () => void;
5
+ onMoveToNextPage: () => void;
6
+ }
7
+ export declare const PageBoundaryPlugin: React.FC<PageBoundaryPluginProps>;
8
+ export {};
9
+ //# sourceMappingURL=page-boundary-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-boundary-plugin.d.ts","sourceRoot":"","sources":["../../../src/lexical/plugins/page-boundary-plugin.tsx"],"names":[],"mappings":"AASA,UAAU,uBAAuB;IAC/B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AA+BD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAqEhE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * Applies first-line paragraph indentation in the DOM while leaving
4
+ * Lexical's serialized paragraph indent levels intact.
5
+ */
6
+ export declare const ParagraphIndentPlugin: React.FC;
7
+ //# sourceMappingURL=paragraph-indent-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paragraph-indent-plugin.d.ts","sourceRoot":"","sources":["../../../src/lexical/plugins/paragraph-indent-plugin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAgBzC;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EA6BzC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * PastePlugin — placeholder for paste normalization.
4
+ *
5
+ * Overflow detection after paste is handled by the OverflowPlugin
6
+ * which monitors content size changes via ResizeObserver.
7
+ */
8
+ export declare const PastePlugin: React.FC;
9
+ //# sourceMappingURL=paste-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paste-plugin.d.ts","sourceRoot":"","sources":["../../../src/lexical/plugins/paste-plugin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAE/B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ /**
3
+ * TabIndentPlugin — handles Tab and Shift+Tab for indentation shortcuts.
4
+ *
5
+ * List items use Lexical's native nesting behavior. Regular paragraphs use the
6
+ * editor's first-line indent behavior.
7
+ */
8
+ export declare const TabIndentPlugin: React.FC;
9
+ //# sourceMappingURL=tab-indent-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-indent-plugin.d.ts","sourceRoot":"","sources":["../../../src/lexical/plugins/tab-indent-plugin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAK3C;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAqBnC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { EditorThemeClasses } from 'lexical';
2
+ /**
3
+ * Lexical theme configuration — maps Lexical CSS class names
4
+ * to Tailwind-compatible class strings for consistent styling.
5
+ */
6
+ export declare const lexicalTheme: EditorThemeClasses;
7
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/lexical/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,kBA4B1B,CAAC"}