@fileverse-dev/ddoc 3.3.7-beta.5 → 3.3.7-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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.3.7-beta.5",
5
+ "version": "3.3.7-patch-1",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -1,7 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
-
3
- interface DBlockControlsLayerProps {
4
- editor: Editor | null;
5
- }
6
- export declare const DBlockControlsLayer: ({ editor }: DBlockControlsLayerProps) => import("react/jsx-runtime").JSX.Element | null;
7
- export {};
@@ -1,21 +0,0 @@
1
- import { Node as ProseMirrorNode } from '@tiptap/pm/model';
2
- import { EditorView, NodeView, ViewMutationRecord } from '@tiptap/pm/view';
3
- import { DBlockOptions } from './dblock';
4
- import { DBlockGetPos } from './dblock-store';
5
-
6
- export declare class DBlockDomNodeView implements NodeView {
7
- dom: HTMLElement;
8
- contentDOM: HTMLElement;
9
- private node;
10
- private view;
11
- private getPos;
12
- private options;
13
- private contentWrapper;
14
- private isDestroyed;
15
- constructor(node: ProseMirrorNode, view: EditorView, getPos: DBlockGetPos, options: DBlockOptions);
16
- update(node: ProseMirrorNode): boolean;
17
- ignoreMutation(mutation: ViewMutationRecord): boolean;
18
- stopEvent(event: Event): boolean;
19
- destroy(): void;
20
- private applyClasses;
21
- }
@@ -1,6 +0,0 @@
1
- import { Editor } from '@tiptap/core';
2
- import { Plugin, PluginKey } from '@tiptap/pm/state';
3
- import { DecorationSet } from '@tiptap/pm/view';
4
-
5
- export declare const dBlockPluginKey: PluginKey<DecorationSet>;
6
- export declare const createDBlockPlugin: (editor: Editor) => Plugin<DecorationSet>;
@@ -1,42 +0,0 @@
1
- import { EditorView } from '@tiptap/pm/view';
2
-
3
- export type DBlockGetPos = () => number | undefined;
4
- export interface DBlockRecord {
5
- dom: HTMLElement;
6
- contentElement: HTMLElement;
7
- getPos: DBlockGetPos;
8
- }
9
- type DBlockSnapshot = {
10
- activeElement: HTMLElement | null;
11
- version: number;
12
- };
13
- type DBlockSubscriber = () => void;
14
- declare class DBlockStore {
15
- private records;
16
- private subscribers;
17
- private hoveredElement;
18
- private focusedElement;
19
- private selectedElement;
20
- private pinnedElement;
21
- private controlsActive;
22
- private menuOpen;
23
- private snapshot;
24
- subscribe: (subscriber: DBlockSubscriber) => () => boolean;
25
- getSnapshot: () => DBlockSnapshot;
26
- register(record: DBlockRecord): void;
27
- unregister(dom: HTMLElement): void;
28
- getRecord(element: HTMLElement | null): DBlockRecord | null;
29
- getActiveRecord(): DBlockRecord | null;
30
- setHoveredElement(element: HTMLElement | null): void;
31
- setFocusedElement(element: HTMLElement | null): void;
32
- setSelectedElement(element: HTMLElement | null): void;
33
- setControlsActive(active: boolean): void;
34
- setMenuOpen(open: boolean): void;
35
- private recomputeActiveElement;
36
- destroy(): void;
37
- }
38
- export declare const getDBlockStore: (view: EditorView) => DBlockStore;
39
- export declare const destroyDBlockStore: (view: EditorView) => void;
40
- export declare const findDBlockElement: (target: EventTarget | null) => HTMLElement | null;
41
- export declare const getSelectionDBlockElement: (view: EditorView) => HTMLElement | null;
42
- export {};
@@ -1,21 +0,0 @@
1
- import { Editor } from '@tiptap/core';
2
- import { Node as ProseMirrorNode } from '@tiptap/pm/model';
3
-
4
- export type HeadingLookupMap = Map<string, {
5
- id: string;
6
- level: number;
7
- position: number;
8
- children: string[];
9
- parent?: string;
10
- }>;
11
- export declare const getDBlockContentNode: (node: ProseMirrorNode | null) => ProseMirrorNode | null;
12
- export declare const isHeadingDBlock: (node: ProseMirrorNode | null) => boolean;
13
- export declare const getHeadingId: (node: ProseMirrorNode, pos: number) => any;
14
- export declare const getHeadingLevel: (node: ProseMirrorNode) => any;
15
- export declare const isHeadingCollapsed: (node: ProseMirrorNode | null) => boolean;
16
- export declare const getHeadingAlignment: (node: ProseMirrorNode | null) => any;
17
- export declare const buildHeadingMap: (doc: ProseMirrorNode) => HeadingLookupMap;
18
- export declare const shouldHideDBlock: (doc: ProseMirrorNode, node: ProseMirrorNode, pos: number, headingMap?: HeadingLookupMap) => boolean;
19
- export declare const toggleHeadingCollapseAt: (editor: Editor, dBlockPos: number) => boolean;
20
- export declare const expandHeadingAt: (editor: Editor, dBlockPos: number, expandDescendants?: boolean) => boolean;
21
- export declare const findEndOfCollapsedContent: (doc: ProseMirrorNode, dBlockPos: number) => number;
@@ -1,13 +0,0 @@
1
- export type ScheduledEditorTask = {
2
- kind: 'idle' | 'timeout' | 'animation-frame';
3
- handle: number | ReturnType<typeof setTimeout>;
4
- } | null;
5
- interface ScheduleEditorTaskOptions {
6
- delay?: number;
7
- idleTimeout?: number;
8
- preferIdle?: boolean;
9
- animationFrame?: boolean;
10
- }
11
- export declare const scheduleEditorTask: (callback: () => void, options?: ScheduleEditorTaskOptions) => ScheduledEditorTask;
12
- export declare const cancelEditorTask: (task: ScheduledEditorTask) => void;
13
- export {};