@fileverse-dev/ddoc 2.1.8-ensFix-patch-2 → 2.1.9-list-fix-patch-1

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.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, P as r, h as s, u as t } from "./index-DXQ0eAuK.mjs";
1
+ import { D as d, P as r, h as s, u as t } from "./index-CIv2SlBO.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as PreviewDdocEditor,
@@ -1,3 +1,21 @@
1
1
  import { NodeSelectorProps } from './types';
2
+ import { EditorState, Transaction } from 'prosemirror-state';
3
+ import { Dispatch } from '@tiptap/react';
2
4
 
5
+ interface ListConfig {
6
+ type: 'bulletList' | 'orderedList' | 'taskList';
7
+ itemType: 'listItem' | 'taskItem';
8
+ hasAttrs?: boolean;
9
+ }
10
+ type ListConversionProps = {
11
+ tr: Transaction;
12
+ dispatch: Dispatch;
13
+ state: EditorState;
14
+ from: number;
15
+ to: number;
16
+ listConfig?: ListConfig;
17
+ };
18
+ export declare const convertListToParagraphs: ({ tr, dispatch, state, from, to, }: ListConversionProps) => boolean;
19
+ export declare const convertToList: ({ tr, dispatch, state, from, to, listConfig, }: ListConversionProps) => boolean;
3
20
  export declare const NodeSelector: ({ editor, elementRef }: NodeSelectorProps) => import("react/jsx-runtime").JSX.Element;
21
+ export {};
@@ -116,4 +116,13 @@ export declare const TextFormatingPopup: ({ editor, isOpen, setIsOpen, setToolVi
116
116
  export declare const TextColorPicker: ({ editor }: {
117
117
  editor: Editor;
118
118
  }) => import("react/jsx-runtime").JSX.Element;
119
+ export declare const checkActiveListsAndDBlocks: (editor: Editor) => {
120
+ activeListTypes: string[];
121
+ activeListDBlocks: number[];
122
+ activeDBlocks: number[];
123
+ from: number;
124
+ to: number;
125
+ state: import('prosemirror-state').EditorState;
126
+ hasMultipleLists: boolean;
127
+ };
119
128
  export {};