microboard-temp 0.13.43 → 0.13.45
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/cjs/browser.js +421 -315
- package/dist/cjs/index.js +421 -315
- package/dist/cjs/node.js +421 -315
- package/dist/esm/browser.js +424 -318
- package/dist/esm/index.js +424 -318
- package/dist/esm/node.js +424 -318
- package/dist/types/Events/Log/EventsLog.d.ts +6 -1
- package/dist/types/Events/Log/createEventsList.d.ts +1 -0
- package/dist/types/Events/Log/getUnpublishedEventFromList.d.ts +4 -1
- package/dist/types/Items/RichText/CanvasText/index.d.ts +2 -0
- package/dist/types/Items/RichText/EditorContainer.d.ts +3 -2
- package/dist/types/Items/RichText/editorHelpers/selectionOps/setSelectionFontColor.d.ts +2 -1
- package/package.json +1 -1
|
@@ -21,6 +21,7 @@ export declare class EventsLog {
|
|
|
21
21
|
currentSequenceNumber: number;
|
|
22
22
|
pendingEvent: {
|
|
23
23
|
event: SyncBoardEventPack;
|
|
24
|
+
sentEventIds: string[];
|
|
24
25
|
sequenceNumber: number;
|
|
25
26
|
lastSentTime: number;
|
|
26
27
|
} | null;
|
|
@@ -42,6 +43,7 @@ export declare class EventsLog {
|
|
|
42
43
|
* Note: Implementation treats the parameter as BoardEventPack
|
|
43
44
|
*/
|
|
44
45
|
confirmSentLocalEvent(event: SyncEvent): void;
|
|
46
|
+
confirmSentLocalEventIds(eventIds: string[], order: number): void;
|
|
45
47
|
/**
|
|
46
48
|
* Retrieves unordered records (records to send and new records)
|
|
47
49
|
*/
|
|
@@ -75,7 +77,10 @@ export declare class EventsLog {
|
|
|
75
77
|
/**
|
|
76
78
|
* Retrieves unpublished events ready to be sent
|
|
77
79
|
*/
|
|
78
|
-
getUnpublishedEvent():
|
|
80
|
+
getUnpublishedEvent(): {
|
|
81
|
+
event: BoardEventPack;
|
|
82
|
+
sentEventIds: string[];
|
|
83
|
+
} | null;
|
|
79
84
|
/**
|
|
80
85
|
* Gets the latest event order, considering both confirmed events and snapshot index
|
|
81
86
|
*/
|
|
@@ -9,6 +9,7 @@ export interface EventsList {
|
|
|
9
9
|
addConfirmedRecords(records: HistoryRecord[]): void;
|
|
10
10
|
addNewRecords(records: HistoryRecord[]): void;
|
|
11
11
|
confirmSentRecords(records: BoardEvent[]): void;
|
|
12
|
+
confirmSentRecordIds(eventIds: string[], order: number): void;
|
|
12
13
|
getConfirmedRecords(): HistoryRecord[];
|
|
13
14
|
getRecordsToSend(): HistoryRecord[];
|
|
14
15
|
getNewRecords(): HistoryRecord[];
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { BoardEventPack, BoardEvent } from "../Events";
|
|
2
2
|
import { Operation } from "../EventsOperations";
|
|
3
3
|
import { EventsList } from "./createEventsList";
|
|
4
|
-
export declare function getUnpublishedEventFromList(list: EventsList):
|
|
4
|
+
export declare function getUnpublishedEventFromList(list: EventsList): {
|
|
5
|
+
event: BoardEventPack;
|
|
6
|
+
sentEventIds: string[];
|
|
7
|
+
} | null;
|
|
5
8
|
export declare function combineOperationsIntoPack(baseEvent: BoardEvent, operations: (Operation & {
|
|
6
9
|
actualId: string;
|
|
7
10
|
})[]): BoardEventPack;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { DefaultTextStyles } from "../../Settings";
|
|
2
2
|
import { Subject } from "../../Subject";
|
|
3
|
-
import { BaseSelection, Descendant,
|
|
3
|
+
import { BaseSelection, Descendant, Operation as SlateOp, Operation } from "slate";
|
|
4
4
|
import { HorisontalAlignment, VerticalAlignment } from "../Alignment";
|
|
5
5
|
import { BlockNode, ListType, ParagraphNode } from "./Editor/BlockNode";
|
|
6
6
|
import { TextNode, TextStyle } from "./Editor/TextNode";
|
|
7
7
|
import { ColorValue } from '../../..';
|
|
8
8
|
import { RichTextOperation } from "./RichTextOperations";
|
|
9
9
|
import { MarkdownProcessor } from "../RichText/editorHelpers/markdown/markdownProcessor";
|
|
10
|
+
import { CustomEditor } from "Items/RichText/Editor/Editor.d";
|
|
10
11
|
export declare class EditorContainer {
|
|
11
12
|
private id;
|
|
12
13
|
private emit;
|
|
@@ -23,7 +24,7 @@ export declare class EditorContainer {
|
|
|
23
24
|
private calcAutoSize;
|
|
24
25
|
private applyAutoSizeScale;
|
|
25
26
|
private updateElement;
|
|
26
|
-
readonly editor:
|
|
27
|
+
readonly editor: CustomEditor;
|
|
27
28
|
maxWidth: number | undefined;
|
|
28
29
|
textScale: number;
|
|
29
30
|
verticalAlignment: VerticalAlignment;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { Editor } from 'slate';
|
|
2
|
-
|
|
2
|
+
import type { ColorValue } from '../../../../..';
|
|
3
|
+
export declare function setSelectionFontColor(editor: Editor, format: string | ColorValue, selectionContext?: string): void;
|