@yudaocode/univer-boards 1.6.218 → 1.6.219
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/README.md +6 -1
- package/lib/cjs/facade/index.js +45 -0
- package/lib/cjs/facade/index.js.map +1 -1
- package/lib/cjs/index.js +1352 -83
- package/lib/cjs/index.js.map +1 -1
- package/lib/es/facade/index.js +53 -0
- package/lib/es/facade/index.js.map +1 -1
- package/lib/es/index.js +1310 -46
- package/lib/es/index.js.map +1 -1
- package/lib/types/facade/index.d.ts +21 -1
- package/lib/types/index.d.ts +187 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FBase, IEventBase, FUniver } from '@univerjs/core/facade';
|
|
2
|
-
import { BoardUnitModel, IBoardUnitData, IBoardElement, IBoardFrameElement, BoardElementType, BoardAlignmentMode, IExportBoardMermaidOptions, IExportBoardSvgOptions, IExportBoardPdfOptions, IExportBoardPptxOptions, IImportCsvStickiesOptions, IBoardViewport, BoardExportFormat } from '@yudaocode/univer-boards';
|
|
2
|
+
import { BoardUnitModel, IBoardUnitData, IBoardElement, IBoardFrameElement, BoardElementType, BoardAlignmentMode, IExportBoardMermaidOptions, IExportBoardSvgOptions, IExportBoardPdfOptions, IExportBoardPptxOptions, IImportCsvStickiesOptions, IBoardViewport, IBoardVotingLeaderboardEntry, IImportDocTilerOptions, BoardExportFormat } from '@yudaocode/univer-boards';
|
|
3
3
|
import { Injector, ICommandService, ICreateUnitOptions } from '@univerjs/core';
|
|
4
4
|
|
|
5
5
|
declare class FBoard extends FBase {
|
|
@@ -43,6 +43,26 @@ declare class FBoard extends FBase {
|
|
|
43
43
|
addComment(x: number, y: number, text: string, author?: string): boolean;
|
|
44
44
|
replaceSnapshot(snapshot: IBoardUnitData): boolean;
|
|
45
45
|
selectElements(ids: string[]): this;
|
|
46
|
+
startPrivateBrainstorm(options?: {
|
|
47
|
+
hideAuthorNames?: boolean;
|
|
48
|
+
facilitatorId?: string;
|
|
49
|
+
}): boolean;
|
|
50
|
+
revealPrivateBrainstorm(): boolean;
|
|
51
|
+
stopPrivateBrainstorm(): boolean;
|
|
52
|
+
startVotingSession(options?: {
|
|
53
|
+
title?: string;
|
|
54
|
+
maxVotesPerUser?: number;
|
|
55
|
+
allowMultiplePerSticky?: boolean;
|
|
56
|
+
targetFrameId?: string;
|
|
57
|
+
}): boolean;
|
|
58
|
+
castSessionVote(elementId: string, voterId?: string, unvote?: boolean): boolean;
|
|
59
|
+
endVotingSession(): boolean;
|
|
60
|
+
getVotingLeaderboard(targetFrameId?: string): IBoardVotingLeaderboardEntry[];
|
|
61
|
+
importDocumentPages(fileBytes: Uint8Array, options?: IImportDocTilerOptions & {
|
|
62
|
+
fileName?: string;
|
|
63
|
+
format?: 'pdf' | 'pptx';
|
|
64
|
+
replaceExisting?: boolean;
|
|
65
|
+
}): Promise<boolean>;
|
|
46
66
|
}
|
|
47
67
|
|
|
48
68
|
interface IBoardLoadedEventParams extends IEventBase {
|
package/lib/types/index.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ interface IBoardStickyElement extends IBoardElementBase {
|
|
|
66
66
|
text: string;
|
|
67
67
|
color: BoardStickyColor | string;
|
|
68
68
|
author?: string;
|
|
69
|
+
authorId?: string;
|
|
69
70
|
votes: string[];
|
|
70
71
|
tags?: string[];
|
|
71
72
|
}
|
|
@@ -195,6 +196,32 @@ interface IBoardCommentPin {
|
|
|
195
196
|
elementId?: string;
|
|
196
197
|
replies?: IBoardCommentReply[];
|
|
197
198
|
}
|
|
199
|
+
interface IBoardBrainstormConfig {
|
|
200
|
+
active: boolean;
|
|
201
|
+
hideAuthorNames?: boolean;
|
|
202
|
+
revealed?: boolean;
|
|
203
|
+
facilitatorId?: string;
|
|
204
|
+
}
|
|
205
|
+
interface IBoardVotingSession {
|
|
206
|
+
id: string;
|
|
207
|
+
title: string;
|
|
208
|
+
active: boolean;
|
|
209
|
+
maxVotesPerUser: number;
|
|
210
|
+
allowMultiplePerSticky?: boolean;
|
|
211
|
+
targetFrameId?: string;
|
|
212
|
+
votesByUser: Record<string, string[]>;
|
|
213
|
+
startedAt: string;
|
|
214
|
+
endedAt?: string;
|
|
215
|
+
}
|
|
216
|
+
interface IBoardVotingLeaderboardEntry {
|
|
217
|
+
rank: number;
|
|
218
|
+
elementId: string;
|
|
219
|
+
text: string;
|
|
220
|
+
voteCount: number;
|
|
221
|
+
frameTitle: string;
|
|
222
|
+
color: BoardStickyColor | string;
|
|
223
|
+
author?: string;
|
|
224
|
+
}
|
|
198
225
|
interface IBoardUnitData {
|
|
199
226
|
id: string;
|
|
200
227
|
name: string;
|
|
@@ -207,7 +234,13 @@ interface IBoardUnitData {
|
|
|
207
234
|
elements: Record<string, IBoardElement>;
|
|
208
235
|
frameOrder: string[];
|
|
209
236
|
comments: IBoardCommentPin[];
|
|
237
|
+
brainstorm?: IBoardBrainstormConfig;
|
|
238
|
+
votingSession?: IBoardVotingSession;
|
|
210
239
|
}
|
|
240
|
+
declare function isStickyMaskedForViewer(sticky: Pick<IBoardStickyElement, 'authorId'>, brainstorm?: IBoardBrainstormConfig | null, viewerUserId?: string | null): boolean;
|
|
241
|
+
declare function computeBoardVotingLeaderboard(snapshot: IBoardUnitData, options?: {
|
|
242
|
+
targetFrameId?: string;
|
|
243
|
+
}): IBoardVotingLeaderboardEntry[];
|
|
211
244
|
declare const MINDMAP_BRANCH_PALETTE: string[];
|
|
212
245
|
declare function createDefaultBoardElement(type: BoardElementType, partial?: Partial<IBoardElement> & Record<string, unknown>): IBoardElement;
|
|
213
246
|
|
|
@@ -230,6 +263,32 @@ declare function exportBoardToCsv(snapshot: IBoardUnitData): string;
|
|
|
230
263
|
*/
|
|
231
264
|
declare function importCsvToBoardStickies(csvText: string, options?: IImportCsvStickiesOptions): IBoardElement[];
|
|
232
265
|
|
|
266
|
+
interface IImportDocTilerOptions {
|
|
267
|
+
originX?: number;
|
|
268
|
+
originY?: number;
|
|
269
|
+
columns?: number;
|
|
270
|
+
gapX?: number;
|
|
271
|
+
gapY?: number;
|
|
272
|
+
frameWidth?: number;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Pure-TS ZIP/XML `.pptx` reader extracting `ppt/presentation.xml` + `ppt/slides/slide*.xml`
|
|
276
|
+
* (`<p:sp>` text/shapes, `<a:tbl>` tables, `<p:pic>` media images, `<p:cxnSp>` connectors)
|
|
277
|
+
* and tiling each slide into an ordered `IBoardFrameElement` grid on the infinite canvas.
|
|
278
|
+
*/
|
|
279
|
+
declare function importPptxBytesToBoardElements(pptxBytes: Uint8Array, options?: IImportDocTilerOptions): Promise<IBoardElement[]>;
|
|
280
|
+
/**
|
|
281
|
+
* Inspects PDF page count & dimensions via `pdf-lib` `PDFDocument.load(pdfBytes)`
|
|
282
|
+
* (and extracts lightweight text strings from content streams when available)
|
|
283
|
+
* to generate ordered page review `IBoardFrameElement`s (`PDF 第 1 页 (595×842)`, ...)
|
|
284
|
+
* neatly tiled in a grid ready for sticky notes, connectors, and ink markup.
|
|
285
|
+
*/
|
|
286
|
+
declare function importPdfBytesToBoardElements(pdfBytes: Uint8Array, options?: IImportDocTilerOptions): Promise<IBoardElement[]>;
|
|
287
|
+
/**
|
|
288
|
+
* Unified entry point for importing `.pdf` or `.pptx` multi-page documents onto infinite canvas Frames.
|
|
289
|
+
*/
|
|
290
|
+
declare function importDeckOrPdfToBoardFrames(fileBytes: Uint8Array, fileNameOrFormat?: string, options?: IImportDocTilerOptions): Promise<IBoardElement[]>;
|
|
291
|
+
|
|
233
292
|
interface IExportBoardPdfOptions {
|
|
234
293
|
/** `'full'` renders a single full-board bounds page; `'frames'` renders one PDF page per `Frame` in `frameOrder` */
|
|
235
294
|
mode?: 'full' | 'frames';
|
|
@@ -339,6 +398,9 @@ interface IBoardIoService {
|
|
|
339
398
|
exportMermaid(snapshot: IBoardUnitData, options?: IExportBoardMermaidOptions): string;
|
|
340
399
|
parseMermaid(mermaidCode: string, options?: IParseMermaidOptions): IBoardElement[];
|
|
341
400
|
importCsvStickies(csvText: string, options?: IImportCsvStickiesOptions): IBoardElement[];
|
|
401
|
+
importPptx(pptxBytes: Uint8Array, options?: IImportDocTilerOptions): Promise<IBoardElement[]>;
|
|
402
|
+
importPdf(pdfBytes: Uint8Array, options?: IImportDocTilerOptions): Promise<IBoardElement[]>;
|
|
403
|
+
importDocumentFrames(fileBytes: Uint8Array, fileNameOrFormat?: string, options?: IImportDocTilerOptions): Promise<IBoardElement[]>;
|
|
342
404
|
}
|
|
343
405
|
declare const IBoardIoService: _univerjs_core.IdentifierDecorator<IBoardIoService>;
|
|
344
406
|
declare class BoardIoService extends Disposable implements IBoardIoService {
|
|
@@ -356,6 +418,9 @@ declare class BoardIoService extends Disposable implements IBoardIoService {
|
|
|
356
418
|
exportMermaid(snapshot: IBoardUnitData, options?: IExportBoardMermaidOptions): string;
|
|
357
419
|
parseMermaid(mermaidCode: string, options?: IParseMermaidOptions): IBoardElement[];
|
|
358
420
|
importCsvStickies(csvText: string, options?: IImportCsvStickiesOptions): IBoardElement[];
|
|
421
|
+
importPptx(pptxBytes: Uint8Array, options?: IImportDocTilerOptions): Promise<IBoardElement[]>;
|
|
422
|
+
importPdf(pdfBytes: Uint8Array, options?: IImportDocTilerOptions): Promise<IBoardElement[]>;
|
|
423
|
+
importDocumentFrames(fileBytes: Uint8Array, fileNameOrFormat?: string, options?: IImportDocTilerOptions): Promise<IBoardElement[]>;
|
|
359
424
|
}
|
|
360
425
|
|
|
361
426
|
interface IUniverBoardsConfig {
|
|
@@ -381,6 +446,8 @@ interface IBoardUnitPropsPatch {
|
|
|
381
446
|
snapToGrid?: boolean;
|
|
382
447
|
frameOrder?: string[];
|
|
383
448
|
elementOrder?: string[];
|
|
449
|
+
brainstorm?: IBoardBrainstormConfig | null;
|
|
450
|
+
votingSession?: IBoardVotingSession | null;
|
|
384
451
|
}
|
|
385
452
|
declare class BoardUnitModel extends UnitModel<IBoardUnitData, UniverInstanceType.UNIVER_BOARD> {
|
|
386
453
|
readonly type = UniverInstanceType.UNIVER_BOARD;
|
|
@@ -407,6 +474,8 @@ declare class BoardUnitModel extends UnitModel<IBoardUnitData, UniverInstanceTyp
|
|
|
407
474
|
getFramesOrdered(): IBoardFrameElement[];
|
|
408
475
|
getElementsInFrame(frameId: string): IBoardElement[];
|
|
409
476
|
getComments(): IBoardCommentPin[];
|
|
477
|
+
getBrainstormConfig(): IBoardBrainstormConfig | undefined;
|
|
478
|
+
getVotingSession(): IBoardVotingSession | undefined;
|
|
410
479
|
/** Internal synchronous mutators called exclusively by registered IMutation handlers */
|
|
411
480
|
__applySnapshot(nextSnapshot: IBoardUnitData): void;
|
|
412
481
|
__addElements(elements: IBoardElement[], insertAtBack?: boolean): void;
|
|
@@ -482,6 +551,21 @@ interface IBoardWorkshopTimerState {
|
|
|
482
551
|
remainingSec: number;
|
|
483
552
|
running: boolean;
|
|
484
553
|
}
|
|
554
|
+
interface IBoardCollaboratorPresence {
|
|
555
|
+
userId: string;
|
|
556
|
+
userName: string;
|
|
557
|
+
color: string;
|
|
558
|
+
viewport: IBoardViewport;
|
|
559
|
+
cursor?: {
|
|
560
|
+
x: number;
|
|
561
|
+
y: number;
|
|
562
|
+
};
|
|
563
|
+
updatedAt: number;
|
|
564
|
+
}
|
|
565
|
+
interface IBoardSpotlightState {
|
|
566
|
+
spotlightHostId: string | null;
|
|
567
|
+
followingUserId: string | null;
|
|
568
|
+
}
|
|
485
569
|
interface IBoardSelectionService {
|
|
486
570
|
readonly selectedIds$: Observable<string[]>;
|
|
487
571
|
readonly editingElementId$: Observable<string | null>;
|
|
@@ -489,8 +573,13 @@ interface IBoardSelectionService {
|
|
|
489
573
|
readonly activeShapeType$: Observable<BoardShapeType>;
|
|
490
574
|
readonly activeStickyColor$: Observable<BoardStickyColor>;
|
|
491
575
|
readonly mermaidModalOpen$: Observable<boolean>;
|
|
576
|
+
readonly votingModalOpen$: Observable<boolean>;
|
|
577
|
+
readonly docImportModalOpen$: Observable<boolean>;
|
|
492
578
|
readonly presentation$: Observable<IBoardPresentationState>;
|
|
493
579
|
readonly timer$: Observable<IBoardWorkshopTimerState>;
|
|
580
|
+
readonly currentUserId$: Observable<string>;
|
|
581
|
+
readonly collaborators$: Observable<IBoardCollaboratorPresence[]>;
|
|
582
|
+
readonly spotlight$: Observable<IBoardSpotlightState>;
|
|
494
583
|
getSelectedIds(): string[];
|
|
495
584
|
selectElements(ids: string[]): void;
|
|
496
585
|
toggleSelectElement(id: string): void;
|
|
@@ -505,13 +594,31 @@ interface IBoardSelectionService {
|
|
|
505
594
|
setActiveStickyColor(color: BoardStickyColor): void;
|
|
506
595
|
isMermaidModalOpen(): boolean;
|
|
507
596
|
setMermaidModalOpen(open: boolean): void;
|
|
597
|
+
isVotingModalOpen(): boolean;
|
|
598
|
+
setVotingModalOpen(open: boolean): void;
|
|
599
|
+
isDocImportModalOpen(): boolean;
|
|
600
|
+
setDocImportModalOpen(open: boolean): void;
|
|
508
601
|
getPresentationState(): IBoardPresentationState;
|
|
509
602
|
setPresentationState(patch: Partial<IBoardPresentationState>): void;
|
|
510
603
|
getTimerState(): IBoardWorkshopTimerState;
|
|
511
604
|
setTimerState(patch: Partial<IBoardWorkshopTimerState>): void;
|
|
605
|
+
getCurrentUserId(): string;
|
|
606
|
+
getCurrentUserName(): string;
|
|
607
|
+
setCurrentUserId(userId: string, userName?: string): void;
|
|
608
|
+
getCollaborators(): IBoardCollaboratorPresence[];
|
|
609
|
+
updateRemoteCollaborator(presence: Omit<IBoardCollaboratorPresence, 'updatedAt'> & {
|
|
610
|
+
updatedAt?: number;
|
|
611
|
+
}): void;
|
|
612
|
+
removeRemoteCollaborator(userId: string): void;
|
|
613
|
+
getSpotlightState(): IBoardSpotlightState;
|
|
614
|
+
setFollowingUser(userId: string | null): void;
|
|
615
|
+
setSpotlightHost(hostUserId: string | null): void;
|
|
616
|
+
resolveEffectiveViewport(localViewport: IBoardViewport): IBoardViewport;
|
|
512
617
|
}
|
|
513
618
|
declare const IBoardSelectionService: _univerjs_core.IdentifierDecorator<IBoardSelectionService>;
|
|
514
619
|
declare class BoardSelectionService extends Disposable implements IBoardSelectionService {
|
|
620
|
+
private readonly _commandService?;
|
|
621
|
+
private readonly _univerInstanceService?;
|
|
515
622
|
private readonly _selectedIds$;
|
|
516
623
|
readonly selectedIds$: Observable<string[]>;
|
|
517
624
|
private readonly _editingElementId$;
|
|
@@ -524,10 +631,22 @@ declare class BoardSelectionService extends Disposable implements IBoardSelectio
|
|
|
524
631
|
readonly activeStickyColor$: Observable<BoardStickyColor>;
|
|
525
632
|
private readonly _mermaidModalOpen$;
|
|
526
633
|
readonly mermaidModalOpen$: Observable<boolean>;
|
|
634
|
+
private readonly _votingModalOpen$;
|
|
635
|
+
readonly votingModalOpen$: Observable<boolean>;
|
|
636
|
+
private readonly _docImportModalOpen$;
|
|
637
|
+
readonly docImportModalOpen$: Observable<boolean>;
|
|
527
638
|
private readonly _presentation$;
|
|
528
639
|
readonly presentation$: Observable<IBoardPresentationState>;
|
|
529
640
|
private readonly _timer$;
|
|
530
641
|
readonly timer$: Observable<IBoardWorkshopTimerState>;
|
|
642
|
+
private readonly _currentUserId$;
|
|
643
|
+
readonly currentUserId$: Observable<string>;
|
|
644
|
+
private _currentUserName;
|
|
645
|
+
private readonly _collaborators$;
|
|
646
|
+
readonly collaborators$: Observable<IBoardCollaboratorPresence[]>;
|
|
647
|
+
private readonly _spotlight$;
|
|
648
|
+
readonly spotlight$: Observable<IBoardSpotlightState>;
|
|
649
|
+
constructor(_commandService?: ICommandService | undefined, _univerInstanceService?: IUniverInstanceService | undefined);
|
|
531
650
|
dispose(): void;
|
|
532
651
|
getSelectedIds(): string[];
|
|
533
652
|
selectElements(ids: string[]): void;
|
|
@@ -543,10 +662,28 @@ declare class BoardSelectionService extends Disposable implements IBoardSelectio
|
|
|
543
662
|
setActiveStickyColor(color: BoardStickyColor): void;
|
|
544
663
|
isMermaidModalOpen(): boolean;
|
|
545
664
|
setMermaidModalOpen(open: boolean): void;
|
|
665
|
+
isVotingModalOpen(): boolean;
|
|
666
|
+
setVotingModalOpen(open: boolean): void;
|
|
667
|
+
isDocImportModalOpen(): boolean;
|
|
668
|
+
setDocImportModalOpen(open: boolean): void;
|
|
546
669
|
getPresentationState(): IBoardPresentationState;
|
|
547
670
|
setPresentationState(patch: Partial<IBoardPresentationState>): void;
|
|
548
671
|
getTimerState(): IBoardWorkshopTimerState;
|
|
549
672
|
setTimerState(patch: Partial<IBoardWorkshopTimerState>): void;
|
|
673
|
+
getCurrentUserId(): string;
|
|
674
|
+
getCurrentUserName(): string;
|
|
675
|
+
setCurrentUserId(userId: string, userName?: string): void;
|
|
676
|
+
getCollaborators(): IBoardCollaboratorPresence[];
|
|
677
|
+
updateRemoteCollaborator(presence: Omit<IBoardCollaboratorPresence, 'updatedAt'> & {
|
|
678
|
+
updatedAt?: number;
|
|
679
|
+
}): void;
|
|
680
|
+
removeRemoteCollaborator(userId: string): void;
|
|
681
|
+
getSpotlightState(): IBoardSpotlightState;
|
|
682
|
+
setFollowingUser(userId: string | null): void;
|
|
683
|
+
setSpotlightHost(hostUserId: string | null): void;
|
|
684
|
+
resolveEffectiveViewport(localViewport: IBoardViewport): IBoardViewport;
|
|
685
|
+
private _resolveActiveLeader;
|
|
686
|
+
private _syncViewportToActiveLeader;
|
|
550
687
|
}
|
|
551
688
|
|
|
552
689
|
interface IAddBoardElementsCommandParams {
|
|
@@ -656,6 +793,54 @@ interface IUpdateBoardPropsCommandParams {
|
|
|
656
793
|
patch: IBoardUnitPropsPatch;
|
|
657
794
|
}
|
|
658
795
|
declare const UpdateBoardPropsCommand: ICommand<IUpdateBoardPropsCommandParams>;
|
|
796
|
+
interface IStartPrivateBrainstormCommandParams {
|
|
797
|
+
unitId?: string;
|
|
798
|
+
hideAuthorNames?: boolean;
|
|
799
|
+
facilitatorId?: string;
|
|
800
|
+
}
|
|
801
|
+
declare const StartPrivateBrainstormCommand: ICommand<IStartPrivateBrainstormCommandParams>;
|
|
802
|
+
interface IRevealPrivateBrainstormCommandParams {
|
|
803
|
+
unitId?: string;
|
|
804
|
+
}
|
|
805
|
+
declare const RevealPrivateBrainstormCommand: ICommand<IRevealPrivateBrainstormCommandParams>;
|
|
806
|
+
interface IStopPrivateBrainstormCommandParams {
|
|
807
|
+
unitId?: string;
|
|
808
|
+
}
|
|
809
|
+
declare const StopPrivateBrainstormCommand: ICommand<IStopPrivateBrainstormCommandParams>;
|
|
810
|
+
interface IStartBoardVotingSessionCommandParams {
|
|
811
|
+
unitId?: string;
|
|
812
|
+
id?: string;
|
|
813
|
+
title?: string;
|
|
814
|
+
maxVotesPerUser?: number;
|
|
815
|
+
allowMultiplePerSticky?: boolean;
|
|
816
|
+
targetFrameId?: string;
|
|
817
|
+
startedAt?: string;
|
|
818
|
+
resetExistingStickyVotes?: boolean;
|
|
819
|
+
}
|
|
820
|
+
declare const StartBoardVotingSessionCommand: ICommand<IStartBoardVotingSessionCommandParams>;
|
|
821
|
+
interface ICastBoardSessionVoteCommandParams {
|
|
822
|
+
unitId?: string;
|
|
823
|
+
elementId: string;
|
|
824
|
+
voterId?: string;
|
|
825
|
+
unvote?: boolean;
|
|
826
|
+
}
|
|
827
|
+
declare const CastBoardSessionVoteCommand: ICommand<ICastBoardSessionVoteCommandParams>;
|
|
828
|
+
interface IEndBoardVotingSessionCommandParams {
|
|
829
|
+
unitId?: string;
|
|
830
|
+
endedAt?: string;
|
|
831
|
+
}
|
|
832
|
+
declare const EndBoardVotingSessionCommand: ICommand<IEndBoardVotingSessionCommandParams>;
|
|
833
|
+
interface IImportDocumentPagesToBoardCommandParams {
|
|
834
|
+
unitId?: string;
|
|
835
|
+
fileBytes: Uint8Array;
|
|
836
|
+
fileName?: string;
|
|
837
|
+
format?: 'pdf' | 'pptx';
|
|
838
|
+
originX?: number;
|
|
839
|
+
originY?: number;
|
|
840
|
+
columns?: number;
|
|
841
|
+
replaceExisting?: boolean;
|
|
842
|
+
}
|
|
843
|
+
declare const ImportDocumentPagesToBoardCommand: ICommand<IImportDocumentPagesToBoardCommandParams, Promise<boolean>>;
|
|
659
844
|
|
|
660
845
|
interface IApplyBoardSnapshotMutationParams {
|
|
661
846
|
unitId: string;
|
|
@@ -668,6 +853,6 @@ interface ISetBoardViewportMutationParams {
|
|
|
668
853
|
}
|
|
669
854
|
declare const SetBoardViewportMutation: IMutation<ISetBoardViewportMutationParams>;
|
|
670
855
|
|
|
671
|
-
declare const VERSION = "1.6.
|
|
856
|
+
declare const VERSION = "1.6.219";
|
|
672
857
|
|
|
673
|
-
export { AddBoardCommentCommand, AddBoardElementsCommand, AddMindmapChildCommand, AddMindmapSiblingCommand, AlignBoardElementsCommand, ApplyBoardSnapshotMutation, BOARD_STICKY_PALETTE, type BoardActiveTool, type BoardAlignmentMode, type BoardChartType, type BoardConnectorMarker, type BoardElementType, type BoardEntityCardKind, type BoardExportFormat, type BoardGridStyle, BoardIoService, type BoardMindmapDirection, type BoardPortSide, type BoardRouteType, BoardSelectionService, type BoardShapeType, type BoardStickyColor, BoardUnitModel, DeleteBoardElementsCommand, type FlowchartDirection, GroupBoardElementsInFrameCommand, type IAddBoardCommentCommandParams, type IAddBoardElementsCommandParams, type IAddMindmapChildCommandParams, type IAddMindmapSiblingCommandParams, type IAlignBoardElementsCommandParams, type IApplyBoardSnapshotMutationParams, type IBoardBounds, type IBoardChartElement, type IBoardChartSeries, type IBoardCommentPin, type IBoardCommentReply, type IBoardConnectorComputedPath, type IBoardConnectorElement, type IBoardConnectorEndpoint, type IBoardElement, type IBoardElementBase, type IBoardEntityCardElement, type IBoardEntityField, type IBoardExportEvent, type IBoardFrameElement, type IBoardImageElement, type IBoardInkElement, type IBoardInkPoint, type IBoardIoAdapter, IBoardIoService, type IBoardMindmapElement, type IBoardPoint, type IBoardPresentationState, type IBoardRect, IBoardSelectionService, type IBoardShapeElement, type IBoardStickyColorSpec, type IBoardStickyElement, type IBoardSwimlaneElement, type IBoardSwimlaneItem, type IBoardTableElement, type IBoardTextElement, type IBoardUnitData, type IBoardUnitPropsPatch, type IBoardViewport, type IBoardWorkshopTimerState, type IDeleteBoardElementsCommandParams, type IExportBoardMermaidOptions, type IExportBoardPdfOptions, type IExportBoardPptxOptions, type IExportBoardSvgOptions, type IGroupBoardElementsInFrameCommandParams, type IImportCsvStickiesOptions, type IImportMermaidToBoardCommandParams, type ILayoutBoardMindmapCommandParams, type IMermaidPresetTemplate, type IMindmapLayoutOptions, type IParseMermaidOptions, type IReplaceBoardSnapshotCommandParams, type ISetBoardViewportCommandParams, type ISetBoardViewportMutationParams, type IUniverBoardsConfig, type IUpdateBoardElementsCommandParams, type IUpdateBoardPropsCommandParams, type IVoteBoardStickyCommandParams, ImportMermaidToBoardCommand, LayoutBoardMindmapCommand, MERMAID_PRESET_TEMPLATES, MINDMAP_BRANCH_PALETTE, type MermaidDiagramKind, ReplaceBoardSnapshotCommand, SetBoardViewportCommand, SetBoardViewportMutation, UNIVER_BOARDS_PLUGIN_NAME, UniverBoardsPlugin, UpdateBoardElementsCommand, UpdateBoardPropsCommand, VERSION, VoteBoardStickyCommand, buildShapeSvgPath, computeBoardBounds, computeBoardConnectorPath, createDefaultBoardElement, createDefaultBoardUnitData, createSampleArchitectureBoardData, detectMermaidDiagramType, escapeXml, exportBoardToCsv, exportBoardToMermaid, exportBoardToPdfBytes, exportBoardToPptxBytes, exportBoardToRasterDataUrl, exportBoardToSvg, getElementPortPoint, getMindmapDescendantIds, importCsvToBoardStickies, isMindmapNodeCollapsedHidden, layoutBoardMindmap, parseMermaidToBoardElements, parseRfc4180Csv, resolveAutoPortPair, resolveStickyPalette };
|
|
858
|
+
export { AddBoardCommentCommand, AddBoardElementsCommand, AddMindmapChildCommand, AddMindmapSiblingCommand, AlignBoardElementsCommand, ApplyBoardSnapshotMutation, BOARD_STICKY_PALETTE, type BoardActiveTool, type BoardAlignmentMode, type BoardChartType, type BoardConnectorMarker, type BoardElementType, type BoardEntityCardKind, type BoardExportFormat, type BoardGridStyle, BoardIoService, type BoardMindmapDirection, type BoardPortSide, type BoardRouteType, BoardSelectionService, type BoardShapeType, type BoardStickyColor, BoardUnitModel, CastBoardSessionVoteCommand, DeleteBoardElementsCommand, EndBoardVotingSessionCommand, type FlowchartDirection, GroupBoardElementsInFrameCommand, type IAddBoardCommentCommandParams, type IAddBoardElementsCommandParams, type IAddMindmapChildCommandParams, type IAddMindmapSiblingCommandParams, type IAlignBoardElementsCommandParams, type IApplyBoardSnapshotMutationParams, type IBoardBounds, type IBoardBrainstormConfig, type IBoardChartElement, type IBoardChartSeries, type IBoardCollaboratorPresence, type IBoardCommentPin, type IBoardCommentReply, type IBoardConnectorComputedPath, type IBoardConnectorElement, type IBoardConnectorEndpoint, type IBoardElement, type IBoardElementBase, type IBoardEntityCardElement, type IBoardEntityField, type IBoardExportEvent, type IBoardFrameElement, type IBoardImageElement, type IBoardInkElement, type IBoardInkPoint, type IBoardIoAdapter, IBoardIoService, type IBoardMindmapElement, type IBoardPoint, type IBoardPresentationState, type IBoardRect, IBoardSelectionService, type IBoardShapeElement, type IBoardSpotlightState, type IBoardStickyColorSpec, type IBoardStickyElement, type IBoardSwimlaneElement, type IBoardSwimlaneItem, type IBoardTableElement, type IBoardTextElement, type IBoardUnitData, type IBoardUnitPropsPatch, type IBoardViewport, type IBoardVotingLeaderboardEntry, type IBoardVotingSession, type IBoardWorkshopTimerState, type ICastBoardSessionVoteCommandParams, type IDeleteBoardElementsCommandParams, type IEndBoardVotingSessionCommandParams, type IExportBoardMermaidOptions, type IExportBoardPdfOptions, type IExportBoardPptxOptions, type IExportBoardSvgOptions, type IGroupBoardElementsInFrameCommandParams, type IImportCsvStickiesOptions, type IImportDocTilerOptions, type IImportDocumentPagesToBoardCommandParams, type IImportMermaidToBoardCommandParams, type ILayoutBoardMindmapCommandParams, type IMermaidPresetTemplate, type IMindmapLayoutOptions, type IParseMermaidOptions, type IReplaceBoardSnapshotCommandParams, type IRevealPrivateBrainstormCommandParams, type ISetBoardViewportCommandParams, type ISetBoardViewportMutationParams, type IStartBoardVotingSessionCommandParams, type IStartPrivateBrainstormCommandParams, type IStopPrivateBrainstormCommandParams, type IUniverBoardsConfig, type IUpdateBoardElementsCommandParams, type IUpdateBoardPropsCommandParams, type IVoteBoardStickyCommandParams, ImportDocumentPagesToBoardCommand, ImportMermaidToBoardCommand, LayoutBoardMindmapCommand, MERMAID_PRESET_TEMPLATES, MINDMAP_BRANCH_PALETTE, type MermaidDiagramKind, ReplaceBoardSnapshotCommand, RevealPrivateBrainstormCommand, SetBoardViewportCommand, SetBoardViewportMutation, StartBoardVotingSessionCommand, StartPrivateBrainstormCommand, StopPrivateBrainstormCommand, UNIVER_BOARDS_PLUGIN_NAME, UniverBoardsPlugin, UpdateBoardElementsCommand, UpdateBoardPropsCommand, VERSION, VoteBoardStickyCommand, buildShapeSvgPath, computeBoardBounds, computeBoardConnectorPath, computeBoardVotingLeaderboard, createDefaultBoardElement, createDefaultBoardUnitData, createSampleArchitectureBoardData, detectMermaidDiagramType, escapeXml, exportBoardToCsv, exportBoardToMermaid, exportBoardToPdfBytes, exportBoardToPptxBytes, exportBoardToRasterDataUrl, exportBoardToSvg, getElementPortPoint, getMindmapDescendantIds, importCsvToBoardStickies, importDeckOrPdfToBoardFrames, importPdfBytesToBoardElements, importPptxBytesToBoardElements, isMindmapNodeCollapsedHidden, isStickyMaskedForViewer, layoutBoardMindmap, parseMermaidToBoardElements, parseRfc4180Csv, resolveAutoPortPair, resolveStickyPalette };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yudaocode/univer-boards",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.219",
|
|
4
4
|
"description": "Univer Boards infinite canvas whiteboard unit model, bidirectional Mermaid diagram engine, mindmap layout, frames/swimlanes, and SVG/PDF/PPTX/CSV exporters",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/yudaocode/yudao-univer#readme",
|