@yoopta/editor 2.0.0 → 3.9.0-rc

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 (138) hide show
  1. package/dist/UI/BlockOptions/BlockOptions.d.ts +23 -0
  2. package/dist/UI/BlockOptions/BlockOptions.d.ts.map +1 -0
  3. package/dist/UI/ExtendedBlockActions/ExtendedBlockActions.d.ts +10 -0
  4. package/dist/UI/ExtendedBlockActions/ExtendedBlockActions.d.ts.map +1 -0
  5. package/dist/UI/index.d.ts +29 -0
  6. package/dist/UI/index.d.ts.map +1 -0
  7. package/dist/YooptaEditor.d.ts +20 -0
  8. package/dist/YooptaEditor.d.ts.map +1 -0
  9. package/dist/components/Block/Block.d.ts +8 -0
  10. package/dist/components/Block/Block.d.ts.map +1 -0
  11. package/dist/components/Block/BlockActions.d.ts +12 -0
  12. package/dist/components/Block/BlockActions.d.ts.map +1 -0
  13. package/dist/components/Editor/Editor.d.ts +11 -0
  14. package/dist/components/Editor/Editor.d.ts.map +1 -0
  15. package/dist/components/Editor/RenderBlocks.d.ts +10 -0
  16. package/dist/components/Editor/RenderBlocks.d.ts.map +1 -0
  17. package/dist/components/Editor/defaultValue.d.ts +7 -0
  18. package/dist/components/Editor/defaultValue.d.ts.map +1 -0
  19. package/dist/components/Editor/dnd.d.ts +10 -0
  20. package/dist/components/Editor/dnd.d.ts.map +1 -0
  21. package/dist/components/Editor/utils.d.ts +2 -0
  22. package/dist/components/Editor/utils.d.ts.map +1 -0
  23. package/dist/components/NoSsr/NoSsr.d.ts +8 -0
  24. package/dist/components/NoSsr/NoSsr.d.ts.map +1 -0
  25. package/dist/components/SelectionBox/SelectionBox.d.ts +20 -0
  26. package/dist/components/SelectionBox/SelectionBox.d.ts.map +1 -0
  27. package/dist/components/SelectionBox/hooks.d.ts +7 -0
  28. package/dist/components/SelectionBox/hooks.d.ts.map +1 -0
  29. package/dist/components/TextLeaf/TextLeaf.d.ts +8 -0
  30. package/dist/components/TextLeaf/TextLeaf.d.ts.map +1 -0
  31. package/dist/contexts/UltraYooptaContext/ToolsContext.d.ts +25 -0
  32. package/dist/contexts/UltraYooptaContext/ToolsContext.d.ts.map +1 -0
  33. package/dist/contexts/UltraYooptaContext/UltraYooptaContext.d.ts +31 -0
  34. package/dist/contexts/UltraYooptaContext/UltraYooptaContext.d.ts.map +1 -0
  35. package/dist/editor/core/getEditorValue.d.ts +3 -0
  36. package/dist/editor/core/getEditorValue.d.ts.map +1 -0
  37. package/dist/editor/index.d.ts +4 -0
  38. package/dist/editor/index.d.ts.map +1 -0
  39. package/dist/editor/selection/blur.d.ts +7 -0
  40. package/dist/editor/selection/blur.d.ts.map +1 -0
  41. package/dist/editor/selection/setBlockSelected.d.ts +7 -0
  42. package/dist/editor/selection/setBlockSelected.d.ts.map +1 -0
  43. package/dist/editor/selection/setSelection.d.ts +3 -0
  44. package/dist/editor/selection/setSelection.d.ts.map +1 -0
  45. package/dist/editor/textFormats/getValue.d.ts +3 -0
  46. package/dist/editor/textFormats/getValue.d.ts.map +1 -0
  47. package/dist/editor/textFormats/isActive.d.ts +3 -0
  48. package/dist/editor/textFormats/isActive.d.ts.map +1 -0
  49. package/dist/editor/textFormats/toggle.d.ts +3 -0
  50. package/dist/editor/textFormats/toggle.d.ts.map +1 -0
  51. package/dist/editor/textFormats/update.d.ts +3 -0
  52. package/dist/editor/textFormats/update.d.ts.map +1 -0
  53. package/dist/editor/transforms/createBlock.d.ts +6 -0
  54. package/dist/editor/transforms/createBlock.d.ts.map +1 -0
  55. package/dist/editor/transforms/decreaseBlockDepth.d.ts +3 -0
  56. package/dist/editor/transforms/decreaseBlockDepth.d.ts.map +1 -0
  57. package/dist/editor/transforms/deleteBlock.d.ts +7 -0
  58. package/dist/editor/transforms/deleteBlock.d.ts.map +1 -0
  59. package/dist/editor/transforms/duplicateBlock.d.ts +6 -0
  60. package/dist/editor/transforms/duplicateBlock.d.ts.map +1 -0
  61. package/dist/editor/transforms/focusBlock.d.ts +7 -0
  62. package/dist/editor/transforms/focusBlock.d.ts.map +1 -0
  63. package/dist/editor/transforms/getBlockElement.d.ts +2 -0
  64. package/dist/editor/transforms/getBlockElement.d.ts.map +1 -0
  65. package/dist/editor/transforms/increaseBlockDepth.d.ts +3 -0
  66. package/dist/editor/transforms/increaseBlockDepth.d.ts.map +1 -0
  67. package/dist/editor/transforms/insertBlock.d.ts +3 -0
  68. package/dist/editor/transforms/insertBlock.d.ts.map +1 -0
  69. package/dist/editor/transforms/moveBlock.d.ts +3 -0
  70. package/dist/editor/transforms/moveBlock.d.ts.map +1 -0
  71. package/dist/editor/transforms/splitBlock.d.ts +3 -0
  72. package/dist/editor/transforms/splitBlock.d.ts.map +1 -0
  73. package/dist/editor/transforms/toggleBlock.d.ts +4 -0
  74. package/dist/editor/transforms/toggleBlock.d.ts.map +1 -0
  75. package/dist/editor/transforms/updateBlock.d.ts +3 -0
  76. package/dist/editor/transforms/updateBlock.d.ts.map +1 -0
  77. package/dist/editor/transforms/updateBlockElement.d.ts +3 -0
  78. package/dist/editor/transforms/updateBlockElement.d.ts.map +1 -0
  79. package/dist/editor/types.d.ts +92 -0
  80. package/dist/editor/types.d.ts.map +1 -0
  81. package/dist/extensions/shortcuts.d.ts +4 -0
  82. package/dist/extensions/shortcuts.d.ts.map +1 -0
  83. package/dist/handlers/index.d.ts +5 -0
  84. package/dist/handlers/index.d.ts.map +1 -0
  85. package/dist/handlers/onKeyDown.d.ts +4 -0
  86. package/dist/handlers/onKeyDown.d.ts.map +1 -0
  87. package/dist/hooks/useForceRender.d.ts +2 -0
  88. package/dist/hooks/useForceRender.d.ts.map +1 -0
  89. package/dist/index.d.ts +16 -0
  90. package/dist/index.d.ts.map +1 -0
  91. package/dist/index.js +12 -0
  92. package/dist/marks/index.d.ts +13 -0
  93. package/dist/marks/index.d.ts.map +1 -0
  94. package/dist/plugins/SlateEditorComponent.d.ts +12 -0
  95. package/dist/plugins/SlateEditorComponent.d.ts.map +1 -0
  96. package/dist/plugins/createYooptaPlugin.d.ts +9 -0
  97. package/dist/plugins/createYooptaPlugin.d.ts.map +1 -0
  98. package/dist/plugins/extenstions/withInlines.d.ts +2 -0
  99. package/dist/plugins/extenstions/withInlines.d.ts.map +1 -0
  100. package/dist/plugins/index.d.ts +2 -0
  101. package/dist/plugins/index.d.ts.map +1 -0
  102. package/dist/plugins/types.d.ts +71 -0
  103. package/dist/plugins/types.d.ts.map +1 -0
  104. package/dist/tools/ActionMenuList/ActionMenuComponent.d.ts +14 -0
  105. package/dist/tools/ActionMenuList/ActionMenuComponent.d.ts.map +1 -0
  106. package/dist/tools/ActionMenuList/ActionMenuList.d.ts +10 -0
  107. package/dist/tools/ActionMenuList/ActionMenuList.d.ts.map +1 -0
  108. package/dist/tools/ActionMenuList/events.d.ts +12 -0
  109. package/dist/tools/ActionMenuList/events.d.ts.map +1 -0
  110. package/dist/tools/Toolbar/HighlightColor.d.ts +14 -0
  111. package/dist/tools/Toolbar/HighlightColor.d.ts.map +1 -0
  112. package/dist/tools/Toolbar/Toolbar.d.ts +4 -0
  113. package/dist/tools/Toolbar/Toolbar.d.ts.map +1 -0
  114. package/dist/tools/Toolbar/ToolbarComponent.d.ts +9 -0
  115. package/dist/tools/Toolbar/ToolbarComponent.d.ts.map +1 -0
  116. package/dist/types/eventHandlers.d.ts +105 -0
  117. package/dist/types/eventHandlers.d.ts.map +1 -0
  118. package/dist/utils/blockElements.d.ts +13 -0
  119. package/dist/utils/blockElements.d.ts.map +1 -0
  120. package/dist/utils/deepClone.d.ts +2 -0
  121. package/dist/utils/deepClone.d.ts.map +1 -0
  122. package/dist/utils/editorBuilders.d.ts +11 -0
  123. package/dist/utils/editorBuilders.d.ts.map +1 -0
  124. package/dist/utils/findPluginBlockBySelectionPath.d.ts +3 -0
  125. package/dist/utils/findPluginBlockBySelectionPath.d.ts.map +1 -0
  126. package/dist/utils/findPluginBlockByType.d.ts +7 -0
  127. package/dist/utils/findPluginBlockByType.d.ts.map +1 -0
  128. package/dist/utils/findSlateBySelectionPath.d.ts +3 -0
  129. package/dist/utils/findSlateBySelectionPath.d.ts.map +1 -0
  130. package/dist/utils/generateId.d.ts +2 -0
  131. package/dist/utils/generateId.d.ts.map +1 -0
  132. package/dist/utils/getMaxOffsetInElement.d.ts +2 -0
  133. package/dist/utils/getMaxOffsetInElement.d.ts.map +1 -0
  134. package/dist/utils/hotkeys.d.ts +45 -0
  135. package/dist/utils/hotkeys.d.ts.map +1 -0
  136. package/dist/utils/serializeHTML.d.ts +3 -0
  137. package/dist/utils/serializeHTML.d.ts.map +1 -0
  138. package/package.json +19 -19
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ declare const BlockOptionsMenuGroup: ({ children }: {
3
+ children: any;
4
+ }) => JSX.Element;
5
+ declare const BlockOptionsMenuContent: ({ children }: {
6
+ children: any;
7
+ }) => JSX.Element;
8
+ declare const BlockOptionsMenuItem: ({ children }: {
9
+ children: any;
10
+ }) => JSX.Element;
11
+ type BlockOptionsSeparatorProps = {
12
+ className?: string;
13
+ };
14
+ declare const BlockOptionsSeparator: ({ className }: BlockOptionsSeparatorProps) => JSX.Element;
15
+ declare const BlockOptions: ({ isOpen, onClose, refs, floatingStyles, children }: {
16
+ isOpen: any;
17
+ onClose: any;
18
+ refs: any;
19
+ floatingStyles: any;
20
+ children: any;
21
+ }) => JSX.Element | null;
22
+ export { BlockOptions, BlockOptionsMenuContent, BlockOptionsMenuGroup, BlockOptionsMenuItem, BlockOptionsSeparator };
23
+ //# sourceMappingURL=BlockOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockOptions.d.ts","sourceRoot":"","sources":["../../../src/UI/BlockOptions/BlockOptions.tsx"],"names":[],"mappings":";AAmBA,QAAA,MAAM,qBAAqB;;iBAAoE,CAAC;AAEhG,QAAA,MAAM,uBAAuB;;iBAO5B,CAAC;AAEF,QAAA,MAAM,oBAAoB;;iBAIzB,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,qBAAqB,kBAAmB,0BAA0B,gBAEvE,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;wBAoHjB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ type Props = {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ onClick?: () => void;
6
+ children: ReactNode;
7
+ };
8
+ declare const ExtendedBlockActions: ({ className, style, onClick, children }: Props) => JSX.Element;
9
+ export { ExtendedBlockActions };
10
+ //# sourceMappingURL=ExtendedBlockActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExtendedBlockActions.d.ts","sourceRoot":"","sources":["../../../src/UI/ExtendedBlockActions/ExtendedBlockActions.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAG5C,KAAK,KAAK,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,CAAC;AAE5G,QAAA,MAAM,oBAAoB,4CAA6C,KAAK,gBAsC3E,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -0,0 +1,29 @@
1
+ /// <reference types="react" />
2
+ export declare const UI: {
3
+ ExtendedBlockActions: ({ className, style, onClick, children }: {
4
+ className?: string | undefined;
5
+ style?: import("react").CSSProperties | undefined;
6
+ onClick?: (() => void) | undefined;
7
+ children: import("react").ReactNode;
8
+ }) => JSX.Element;
9
+ BlockOptions: ({ isOpen, onClose, refs, floatingStyles, children }: {
10
+ isOpen: any;
11
+ onClose: any;
12
+ refs: any;
13
+ floatingStyles: any;
14
+ children: any;
15
+ }) => JSX.Element | null;
16
+ BlockOptionsMenuContent: ({ children }: {
17
+ children: any;
18
+ }) => JSX.Element;
19
+ BlockOptionsMenuGroup: ({ children }: {
20
+ children: any;
21
+ }) => JSX.Element;
22
+ BlockOptionsMenuItem: ({ children }: {
23
+ children: any;
24
+ }) => JSX.Element;
25
+ BlockOptionsSeparator: ({ className }: {
26
+ className?: string | undefined;
27
+ }) => JSX.Element;
28
+ };
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/UI/index.tsx"],"names":[],"mappings":";AAGA,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;CAGd,CAAC"}
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { YooEditor, YooptaChildren } from './editor/types';
3
+ import { ToolAPI } from './contexts/UltraYooptaContext/ToolsContext';
4
+ import { YooptaPlugin } from './plugins';
5
+ import { YooptaMark } from './marks';
6
+ type Props = {
7
+ editor: YooEditor;
8
+ plugins: YooptaPlugin[];
9
+ marks?: YooptaMark<any>[];
10
+ value: YooptaChildren;
11
+ autoFocus?: boolean;
12
+ className?: string;
13
+ selectionBoxRoot?: HTMLElement | null | React.MutableRefObject<HTMLElement | null>;
14
+ tools?: {
15
+ [key: string]: ToolAPI;
16
+ };
17
+ };
18
+ declare const YooptaEditor: ({ editor, value, marks, plugins: pluginsProps, autoFocus, className, tools, selectionBoxRoot, }: Props) => JSX.Element;
19
+ export { YooptaEditor };
20
+ //# sourceMappingURL=YooptaEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"YooptaEditor.d.ts","sourceRoot":"","sources":["../src/YooptaEditor.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,OAAO,EAAiB,MAAM,4CAA4C,CAAC;AAUpF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;IAC1B,KAAK,EAAE,cAAc,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACnF,KAAK,CAAC,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;CACH,CAAC;AAYF,QAAA,MAAM,YAAY,oGASf,KAAK,gBAwCP,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const Block: ({ children, block, blockId }: {
3
+ children: any;
4
+ block: any;
5
+ blockId: any;
6
+ }) => JSX.Element;
7
+ export { Block };
8
+ //# sourceMappingURL=Block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Block.d.ts","sourceRoot":"","sources":["../../../src/components/Block/Block.tsx"],"names":[],"mappings":";AAOA,QAAA,MAAM,KAAK;;;;iBA+DV,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { YooEditor, YooptaBlockData } from '../../editor/types';
3
+ type ActionsProps = {
4
+ block: YooptaBlockData;
5
+ editor: YooEditor;
6
+ dragHandleProps: any;
7
+ showActions: boolean;
8
+ onChangeActiveBlock: (id: string) => void;
9
+ };
10
+ declare const BlockActions: ({ block, editor, dragHandleProps, showActions, onChangeActiveBlock }: ActionsProps) => JSX.Element;
11
+ export { BlockActions };
12
+ //# sourceMappingURL=BlockActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockActions.d.ts","sourceRoot":"","sources":["../../../src/components/Block/BlockActions.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAmB,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAajF,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,eAAe,CAAC;IACvB,MAAM,EAAE,SAAS,CAAC;IAClB,eAAe,EAAE,GAAG,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C,CAAC;AAMF,QAAA,MAAM,YAAY,yEAA0E,YAAY,gBA6EvG,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { YooptaMark } from '../../marks';
3
+ type Props = {
4
+ marks?: YooptaMark<any>[];
5
+ selectionBoxRoot?: HTMLElement | null | React.MutableRefObject<HTMLElement | null>;
6
+ autoFocus?: boolean;
7
+ className?: string;
8
+ };
9
+ declare const Editor: ({ marks, className, autoFocus, selectionBoxRoot }: Props) => JSX.Element;
10
+ export { Editor };
11
+ //# sourceMappingURL=Editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/Editor.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAYzC,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACnF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAmBF,QAAA,MAAM,MAAM,sDAA8D,KAAK,gBAkQ9E,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { YooEditor } from '../../editor/types';
3
+ import { YooptaMark } from '../../marks';
4
+ type Props = {
5
+ editor: YooEditor;
6
+ marks?: YooptaMark<any>[];
7
+ };
8
+ declare const RenderBlocks: ({ editor, marks }: Props) => JSX.Element;
9
+ export { RenderBlocks };
10
+ //# sourceMappingURL=RenderBlocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderBlocks.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/RenderBlocks.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAMzC,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,YAAY,sBAAuB,KAAK,gBAwD7C,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { YooptaBlockData, SlateElement } from '../../editor/types';
2
+ export declare const getDefaultParagraphPluginElement: () => SlateElement;
3
+ export declare const getDefaultParagraphBlock: (id?: string) => YooptaBlockData;
4
+ export declare const getDefaultYooptaChildren: () => {
5
+ [x: string]: YooptaBlockData<import("slate").Descendant>;
6
+ };
7
+ //# sourceMappingURL=defaultValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultValue.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/defaultValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGnE,eAAO,MAAM,gCAAgC,QAAO,YAOlD,CAAC;AAEH,eAAO,MAAM,wBAAwB,QAAS,MAAM,KAAG,eAQrD,CAAC;AAEH,eAAO,MAAM,wBAAwB;;CAQpC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { YooEditor } from '../../editor/types';
2
+ import { DragEndEvent, DragStartEvent } from '@dnd-kit/core';
3
+ export declare const useYooptaDragDrop: ({ editor }: {
4
+ editor: YooEditor;
5
+ }) => {
6
+ sensors: import("@dnd-kit/core").SensorDescriptor<import("@dnd-kit/core").SensorOptions>[];
7
+ handleDragEnd: (event: DragEndEvent) => void;
8
+ handleDragStart: (event: DragStartEvent) => void;
9
+ };
10
+ //# sourceMappingURL=dnd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dnd.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/dnd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAwD,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAInH,eAAO,MAAM,iBAAiB;YAA0B,SAAS;;;2BAarB,YAAY;6BASV,cAAc;CAK3D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/Editor/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ type Props = {
3
+ children: ReactNode;
4
+ fallback?: any;
5
+ };
6
+ declare const NoSSR: ({ children, fallback }: Props) => any;
7
+ export default NoSSR;
8
+ //# sourceMappingURL=NoSsr.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NoSsr.d.ts","sourceRoot":"","sources":["../../../src/components/NoSsr/NoSsr.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAEvD,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB,CAAC;AAEF,QAAA,MAAM,KAAK,2BAAmC,KAAK,QAUlD,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { YooEditor } from '../../editor/types';
3
+ export type RectangeSelectionProps = {
4
+ editor: YooEditor;
5
+ yooptaEditorRef: React.RefObject<HTMLDivElement>;
6
+ root?: HTMLElement | null | React.MutableRefObject<HTMLElement | null>;
7
+ };
8
+ export type RectangeSelectionState = {
9
+ origin: [number, number];
10
+ coords: [number, number];
11
+ selection: boolean;
12
+ };
13
+ export type SelectionBoxProps = {
14
+ origin: RectangeSelectionState['origin'];
15
+ coords: RectangeSelectionState['coords'];
16
+ isOpen: boolean;
17
+ };
18
+ declare const SelectionBox: ({ origin, coords, isOpen }: SelectionBoxProps) => JSX.Element | null;
19
+ export { SelectionBox };
20
+ //# sourceMappingURL=SelectionBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectionBox.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionBox/SelectionBox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,SAAS,CAAC;IAClB,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACjD,IAAI,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,KAAK,CAAC,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACxE,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC,CAAC;IACzC,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC,CAAC;IACzC,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,YAAY,+BAAgC,iBAAiB,uBAyBlE,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { RectangeSelectionProps, RectangeSelectionState } from './SelectionBox';
2
+ type RectangeSelectionReturn = RectangeSelectionState & {
3
+ onClose: () => void;
4
+ };
5
+ export declare const useRectangeSelectionBox: ({ editor, yooptaEditorRef, root, }: RectangeSelectionProps) => RectangeSelectionReturn;
6
+ export {};
7
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/SelectionBox/hooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AA+BhF,KAAK,uBAAuB,GAAG,sBAAsB,GAAG;IACtD,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAGF,eAAO,MAAM,uBAAuB,uCAIjC,sBAAsB,KAAG,uBAoG3B,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ExtendedLeafProps } from '../../plugins/types';
3
+ type Props = Pick<ExtendedLeafProps<any, any>, 'attributes' | 'children'> & {
4
+ placeholder?: string;
5
+ };
6
+ declare const TextLeaf: ({ children, attributes, placeholder }: Props) => JSX.Element;
7
+ export { TextLeaf };
8
+ //# sourceMappingURL=TextLeaf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextLeaf.d.ts","sourceRoot":"","sources":["../../../src/components/TextLeaf/TextLeaf.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,KAAK,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC,GAAG;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,QAAQ,0CAA2C,KAAK,gBAa7D,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { ReactNode } from 'react';
2
+ export type ToolAPI = {
3
+ open: (...args: any[]) => void;
4
+ close: (...args: any[]) => void;
5
+ change: (...args: any[]) => void;
6
+ component: ReactNode;
7
+ state: any;
8
+ events?: {
9
+ [key: string]: (editor: any, slate: any, options: any) => (event: any) => void;
10
+ };
11
+ };
12
+ export type Tools = {
13
+ [key: string]: ToolAPI;
14
+ };
15
+ type ToolsContextType = {
16
+ tools: Tools;
17
+ registerTool: (name: string, tool: ToolAPI) => void;
18
+ unregisterTool: (name: string) => void;
19
+ };
20
+ export declare const ToolsProvider: ({ children }: {
21
+ children: any;
22
+ }) => JSX.Element;
23
+ export declare const useTools: () => ToolsContextType;
24
+ export {};
25
+ //# sourceMappingURL=ToolsContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolsContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/UltraYooptaContext/ToolsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAA8C,MAAM,OAAO,CAAC;AAE3G,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAC/B,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAChC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IACjC,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,CAAC,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;KAChF,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC,CAAC;AAIF,eAAO,MAAM,aAAa;;iBA+BzB,CAAC;AAEF,eAAO,MAAM,QAAQ,QAAO,gBAM3B,CAAC"}
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ import { Editor } from 'slate';
3
+ import { YooEditor, YooptaBlockPath } from '../../editor/types';
4
+ import { PluginOptions } from '../../plugins/types';
5
+ export type UltraYooptaContextPluginsEditorMap = Record<string, Editor>;
6
+ export type YooptaEditorContext = {
7
+ editor: YooEditor;
8
+ };
9
+ export declare const UltraYooptaContext: import("react").Context<YooptaEditorContext>;
10
+ /**
11
+ *
12
+ */
13
+ declare const UltraYooptaContextProvider: ({ children, editorState }: {
14
+ children: any;
15
+ editorState: any;
16
+ }) => JSX.Element;
17
+ declare const useYooptaEditor: () => YooEditor;
18
+ declare const useBlockData: (id: string) => import("../../editor/types").YooptaBlockData<import("slate").Descendant>;
19
+ declare const useYooptaBlock: (type: string) => import("../../editor/types").YooptaBlock;
20
+ declare const useYooptaPlugin: (type: string) => import("../../plugins/types").PluginReturn<string, unknown, Record<string, unknown>>;
21
+ declare const useYooptaPluginOptions: <TOptions>(type: string) => PluginOptions<TOptions>;
22
+ type UseBlockSelectedProps = {
23
+ blockId: string;
24
+ path?: YooptaBlockPath;
25
+ } | {
26
+ path: YooptaBlockPath;
27
+ blockId?: string;
28
+ };
29
+ declare const useBlockSelected: ({ blockId, path }: UseBlockSelectedProps) => boolean;
30
+ export { useYooptaEditor, useBlockData, useYooptaPlugin, useYooptaPluginOptions, useYooptaBlock, useBlockSelected, UltraYooptaContextProvider, };
31
+ //# sourceMappingURL=UltraYooptaContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UltraYooptaContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/UltraYooptaContext/UltraYooptaContext.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGpD,MAAM,MAAM,kCAAkC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAExE,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC;AA8BF,eAAO,MAAM,kBAAkB,8CAAuD,CAAC;AAEvF;;GAEG;AACH,QAAA,MAAM,0BAA0B;;;iBAQ/B,CAAC;AAEF,QAAA,MAAM,eAAe,QAAO,SAQ3B,CAAC;AACF,QAAA,MAAM,YAAY,OAAQ,MAAM,6EAAmC,CAAC;AACpE,QAAA,MAAM,cAAc,SAAU,MAAM,6CAAmC,CAAC;AACxE,QAAA,MAAM,eAAe,SAAU,MAAM,yFAAoC,CAAC;AAC1E,QAAA,MAAM,sBAAsB,mBAAqB,MAAM,4BAA2D,CAAC;AAEnH,KAAK,qBAAqB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,eAAe,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACvH,QAAA,MAAM,gBAAgB,sBAAuB,qBAAqB,YAkBjE,CAAC;AAEF,OAAO,EACL,eAAe,EACf,YAAY,EACZ,eAAe,EACf,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EAChB,0BAA0B,GAC3B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { YooEditor } from '../types';
2
+ export declare function getEditorValue(editor: YooEditor): Record<string, import("../types").YooptaBlockData<import("slate").Descendant>>;
3
+ //# sourceMappingURL=getEditorValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEditorValue.d.ts","sourceRoot":"","sources":["../../../src/editor/core/getEditorValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,kFAG/C"}
@@ -0,0 +1,4 @@
1
+ import { YooEditor } from './types';
2
+ export declare const createYooptaEditor: () => YooEditor;
3
+ export declare const EDITOR_TO_ON_CHANGE: WeakMap<object, any>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/editor/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AA2BpC,eAAO,MAAM,kBAAkB,QAAO,SAkCrC,CAAC;AAEF,eAAO,MAAM,mBAAmB,sBAAgB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { YooEditor, YooptaEditorTransformOptions } from '../types';
2
+ export type EditorBlurOptions = Pick<YooptaEditorTransformOptions, 'slate'> & {
3
+ waitExecution?: boolean;
4
+ waitExecutionMs?: number;
5
+ };
6
+ export declare function blur(editor: YooEditor, options?: EditorBlurOptions): void;
7
+ //# sourceMappingURL=blur.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blur.d.ts","sourceRoot":"","sources":["../../../src/editor/selection/blur.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,SAAS,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAEhF,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,4BAA4B,EAAE,OAAO,CAAC,GAAG;IAC5E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAWF,wBAAgB,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,iBAAsB,QAetE"}
@@ -0,0 +1,7 @@
1
+ import { YooEditor } from '../types';
2
+ export type BlockSelectedOptions = {
3
+ only?: boolean;
4
+ allSelected?: boolean;
5
+ };
6
+ export declare function setBlockSelected(editor: YooEditor, path: number[] | null, options?: BlockSelectedOptions): void;
7
+ //# sourceMappingURL=setBlockSelected.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setBlockSelected.d.ts","sourceRoot":"","sources":["../../../src/editor/selection/setBlockSelected.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAmB,MAAM,UAAU,CAAC;AAMtD,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,GAAE,oBAAyB,QAkB5G"}
@@ -0,0 +1,3 @@
1
+ import { YooEditor, YooptaBlockPath } from '../types';
2
+ export declare function setSelection(editor: YooEditor, path: YooptaBlockPath | null): void;
3
+ //# sourceMappingURL=setSelection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setSelection.d.ts","sourceRoot":"","sources":["../../../src/editor/selection/setSelection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEtD,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,GAAG,IAAI,QAG3E"}
@@ -0,0 +1,3 @@
1
+ import { YooEditor } from '../types';
2
+ export declare function getValue(editor: YooEditor, type: string): any;
3
+ //# sourceMappingURL=getValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getValue.d.ts","sourceRoot":"","sources":["../../../src/editor/textFormats/getValue.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,wBAAgB,QAAQ,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,OAMvD"}
@@ -0,0 +1,3 @@
1
+ import { YooEditor } from '../types';
2
+ export declare function isActive(editor: YooEditor, type: string): boolean;
3
+ //# sourceMappingURL=isActive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isActive.d.ts","sourceRoot":"","sources":["../../../src/editor/textFormats/isActive.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,wBAAgB,QAAQ,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,WAOvD"}
@@ -0,0 +1,3 @@
1
+ import { YooEditor } from '../types';
2
+ export declare function toggle(editor: YooEditor, type: string): void;
3
+ //# sourceMappingURL=toggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/editor/textFormats/toggle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAIrC,wBAAgB,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,QAarD"}
@@ -0,0 +1,3 @@
1
+ import { YooEditor } from '../types';
2
+ export declare function update(editor: YooEditor, type: any, value: any): void;
3
+ //# sourceMappingURL=update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/editor/textFormats/update.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,wBAAgB,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,QAY9D"}
@@ -0,0 +1,6 @@
1
+ import { YooEditor, YooptaEditorTransformOptions } from '../types';
2
+ export type CreateBlockOptions = YooptaEditorTransformOptions & {
3
+ deleteText?: boolean;
4
+ };
5
+ export declare function createBlock(editor: YooEditor, type: string, options?: CreateBlockOptions): void;
6
+ //# sourceMappingURL=createBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createBlock.d.ts","sourceRoot":"","sources":["../../../src/editor/transforms/createBlock.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAA6B,MAAM,UAAU,CAAC;AAE9F,MAAM,MAAM,kBAAkB,GAAG,4BAA4B,GAAG;IAC9D,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAkDF,wBAAgB,WAAW,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,QAkHxF"}
@@ -0,0 +1,3 @@
1
+ import { YooEditor, YooptaEditorTransformOptions } from '../types';
2
+ export declare function decreaseBlockDepth(editor: YooEditor, options?: YooptaEditorTransformOptions): void;
3
+ //# sourceMappingURL=decreaseBlockDepth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decreaseBlockDepth.d.ts","sourceRoot":"","sources":["../../../src/editor/transforms/decreaseBlockDepth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAEnE,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,4BAAiC,QAa/F"}
@@ -0,0 +1,7 @@
1
+ import { YooEditor, YooptaEditorTransformOptions } from '../types';
2
+ export type DeleteBlockOptions = YooptaEditorTransformOptions & {
3
+ deleteAll?: boolean;
4
+ fromPaths?: number[];
5
+ };
6
+ export declare function deleteBlock(editor: YooEditor, options?: DeleteBlockOptions): void;
7
+ //# sourceMappingURL=deleteBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteBlock.d.ts","sourceRoot":"","sources":["../../../src/editor/transforms/deleteBlock.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG,4BAA4B,GAAG;IAC9D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,wBAAgB,WAAW,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,kBAAuB,QA2E9E"}
@@ -0,0 +1,6 @@
1
+ import { YooEditor, YooptaEditorTransformOptions } from '../types';
2
+ export type DuplicateBlockOptions = YooptaEditorTransformOptions & {
3
+ blockId?: string;
4
+ };
5
+ export declare function duplicateBlock(editor: YooEditor, options?: DuplicateBlockOptions): void;
6
+ //# sourceMappingURL=duplicateBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"duplicateBlock.d.ts","sourceRoot":"","sources":["../../../src/editor/transforms/duplicateBlock.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAmB,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAEpF,MAAM,MAAM,qBAAqB,GAAG,4BAA4B,GAAG;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,qBAA0B,QAyDpF"}
@@ -0,0 +1,7 @@
1
+ import { YooEditor, YooptaEditorTransformOptions } from '../types';
2
+ export type FocusBlockOptions = Pick<YooptaEditorTransformOptions, 'focusAt' | 'slate'> & {
3
+ waitExecution?: boolean;
4
+ waitExecutionMs?: number;
5
+ };
6
+ export declare function focusBlock(editor: YooEditor, blockId: string, options?: FocusBlockOptions): void;
7
+ //# sourceMappingURL=focusBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focusBlock.d.ts","sourceRoot":"","sources":["../../../src/editor/transforms/focusBlock.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,SAAS,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAEzF,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,4BAA4B,EAAE,SAAS,GAAG,OAAO,CAAC,GAAG;IACxF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAkBF,wBAAgB,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,iBAAsB,QAqB7F"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getBlockElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBlockElement.d.ts","sourceRoot":"","sources":["../../../src/editor/transforms/getBlockElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { YooEditor, YooptaEditorTransformOptions } from '../types';
2
+ export declare function increaseBlockDepth(editor: YooEditor, options?: YooptaEditorTransformOptions): void;
3
+ //# sourceMappingURL=increaseBlockDepth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"increaseBlockDepth.d.ts","sourceRoot":"","sources":["../../../src/editor/transforms/increaseBlockDepth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAEnE,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,4BAAiC,QAa/F"}
@@ -0,0 +1,3 @@
1
+ import { YooEditor, YooptaEditorTransformOptions, YooptaBlockData } from '../types';
2
+ export declare function insertBlock(editor: YooEditor, data: YooptaBlockData, options?: YooptaEditorTransformOptions): void;
3
+ //# sourceMappingURL=insertBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insertBlock.d.ts","sourceRoot":"","sources":["../../../src/editor/transforms/insertBlock.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEpF,wBAAgB,WAAW,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,GAAE,4BAAiC,QAwD/G"}
@@ -0,0 +1,3 @@
1
+ import { YooEditor, YooptaBlockPath } from '../types';
2
+ export declare function moveBlock(editor: YooEditor, draggedBlockId: string, newPath: YooptaBlockPath): void;
3
+ //# sourceMappingURL=moveBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moveBlock.d.ts","sourceRoot":"","sources":["../../../src/editor/transforms/moveBlock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEtD,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,QA0B5F"}
@@ -0,0 +1,3 @@
1
+ import { YooEditor, YooptaEditorTransformOptions } from '../types';
2
+ export declare function splitBlock(editor: YooEditor, options?: YooptaEditorTransformOptions): void;
3
+ //# sourceMappingURL=splitBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"splitBlock.d.ts","sourceRoot":"","sources":["../../../src/editor/transforms/splitBlock.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAmB,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAGpF,wBAAgB,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,GAAE,4BAAiC,QAyDvF"}
@@ -0,0 +1,4 @@
1
+ import { YooEditor, YooptaEditorTransformOptions } from '../types';
2
+ export type ToggleBlockOptions = YooptaEditorTransformOptions;
3
+ export declare function toggleBlock(editor: YooEditor, toBlockType: string, options?: ToggleBlockOptions): void;
4
+ //# sourceMappingURL=toggleBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggleBlock.d.ts","sourceRoot":"","sources":["../../../src/editor/transforms/toggleBlock.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAmB,4BAA4B,EAAmB,MAAM,UAAU,CAAC;AAQrG,MAAM,MAAM,kBAAkB,GAAG,4BAA4B,CAAC;AAG9D,wBAAgB,WAAW,CAAC,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,QA2D/F"}
@@ -0,0 +1,3 @@
1
+ import { YooEditor, YooptaBlockData } from '../types';
2
+ export declare function updateBlock<TElementKeys extends string, TProps>(editor: YooEditor, id: string, data: Partial<Pick<YooptaBlockData, 'meta' | 'value'>>): void;
3
+ //# sourceMappingURL=updateBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateBlock.d.ts","sourceRoot":"","sources":["../../../src/editor/transforms/updateBlock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEtD,wBAAgB,WAAW,CAAC,YAAY,SAAS,MAAM,EAAE,MAAM,EAC7D,MAAM,EAAE,SAAS,EACjB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,QAkBvD"}
@@ -0,0 +1,3 @@
1
+ import { YooEditor } from '../types';
2
+ export declare function updateBlockElement<TElementKeys extends string, TElementProps>(editor: YooEditor, blockId: string, elementType: TElementKeys, elementProps: TElementProps): void;
3
+ //# sourceMappingURL=updateBlockElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateBlockElement.d.ts","sourceRoot":"","sources":["../../../src/editor/transforms/updateBlockElement.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,SAAS,EAAE,MAAM,UAAU,CAAC;AAEnD,wBAAgB,kBAAkB,CAAC,YAAY,SAAS,MAAM,EAAE,aAAa,EAC3E,MAAM,EAAE,SAAS,EACjB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,YAAY,EACzB,YAAY,EAAE,aAAa,QAqC5B"}