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.
@@ -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(): BoardEventPack | null;
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): BoardEventPack | null;
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;
@@ -0,0 +1,2 @@
1
+ export * from './Render';
2
+ export * from './LayoutBlockNodes';
@@ -1,12 +1,13 @@
1
1
  import { DefaultTextStyles } from "../../Settings";
2
2
  import { Subject } from "../../Subject";
3
- import { BaseSelection, Descendant, Editor, Operation as SlateOp, Operation } from "slate";
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: Editor & any;
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
- export declare function setSelectionFontColor(editor: Editor, format: string, selectionContext?: string): void;
2
+ import type { ColorValue } from '../../../../..';
3
+ export declare function setSelectionFontColor(editor: Editor, format: string | ColorValue, selectionContext?: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.13.43",
3
+ "version": "0.13.45",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",