@textbus/collaborate 2.2.0-alpha.0 → 3.0.0-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
|
|
1
1
|
import { SelectionBridge } from '@textbus/browser';
|
2
2
|
import { Selection, SelectionPaths, AbstractSelection, Scheduler, Rect } from '@textbus/core';
|
3
3
|
export interface RemoteSelection {
|
4
|
+
id: string;
|
4
5
|
color: string;
|
5
6
|
username: string;
|
6
7
|
paths: SelectionPaths;
|
@@ -8,6 +9,7 @@ export interface RemoteSelection {
|
|
8
9
|
export interface SelectionRect extends Rect {
|
9
10
|
color: string;
|
10
11
|
username: string;
|
12
|
+
id: string;
|
11
13
|
}
|
12
14
|
export interface RemoteSelectionCursor {
|
13
15
|
cursor: HTMLElement;
|
@@ -35,6 +37,6 @@ export declare class CollaborateCursor {
|
|
35
37
|
refresh(): void;
|
36
38
|
destroy(): void;
|
37
39
|
draw(paths: RemoteSelection[]): void;
|
38
|
-
|
40
|
+
protected drawUserCursor(rects: SelectionRect[]): void;
|
39
41
|
private getUserCursor;
|
40
42
|
}
|
@@ -147,6 +147,7 @@ let CollaborateCursor = class CollaborateCursor {
|
|
147
147
|
for (let i = rects.length - 1; i >= 0; i--) {
|
148
148
|
const rect = rects[i];
|
149
149
|
selectionRects.push({
|
150
|
+
id: item.id,
|
150
151
|
color: item.color,
|
151
152
|
username: item.username,
|
152
153
|
left: rect.left - containerRect.left,
|
@@ -161,6 +162,7 @@ let CollaborateCursor = class CollaborateCursor {
|
|
161
162
|
cursorRange.collapse(true);
|
162
163
|
const cursorRect = getLayoutRectByRange(cursorRange);
|
163
164
|
const rect = {
|
165
|
+
id: item.id,
|
164
166
|
username: item.username,
|
165
167
|
color: item.color,
|
166
168
|
left: cursorRect.left - containerRect.left,
|
@@ -268,4 +270,4 @@ CollaborateCursor = __decorate([
|
|
268
270
|
Selection])
|
269
271
|
], CollaborateCursor);
|
270
272
|
export { CollaborateCursor };
|
271
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZX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mUnLFxuICAgICAgfVxuICAgIH0pXG5cbiAgICBjb25zdCBhbmNob3IgPSBjcmVhdGVFbGVtZW50KCdzcGFuJywge1xuICAgICAgc3R5bGVzOiB7XG4gICAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgICB0b3A6ICctMnB4JyxcbiAgICAgICAgbGVmdDogJy0ycHgnLFxuICAgICAgICB3aWR0aDogJzZweCcsXG4gICAgICAgIGhlaWdodDogJzZweCcsXG4gICAgICAgIHBvaW50ZXJFdmVudHM6ICdhdXRvJyxcbiAgICAgICAgcG9pbnRlcjogJ2N1cnNvcicsXG4gICAgICB9LFxuICAgICAgY2hpbGRyZW46IFt1c2VyVGlwXSxcbiAgICAgIG9uOiB7XG4gICAgICAgIG1vdXNlZW50ZXIoKSB7XG4gICAgICAgICAgdXNlclRpcC5zdHlsZS5kaXNwbGF5ID0gJ2Jsb2NrJ1xuICAgICAgICB9LFxuICAgICAgICBtb3VzZWxlYXZlKCkge1xuICAgICAgICAgIHVzZXJUaXAuc3R5bGUuZGlzcGxheSA9ICdub25lJ1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfSlcbiAgICBjaGlsZCA9IGNyZWF0ZUVsZW1lbnQoJ3NwYW4nLCB7XG4gICAgICBzdHlsZXM6IHtcbiAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICB9LFxuICAgICAgY2hpbGRyZW46IFtcbiAgICAgICAgYW5jaG9yXG4gICAgICBdXG4gICAgfSlcbiAgICB0aGlzLnRvb2x0aXBzLmFwcGVuZChjaGlsZClcbiAgICByZXR1cm4ge1xuICAgICAgY3Vyc29yOiBjaGlsZCxcbiAgICAgIGFuY2hvcixcbiAgICAgIHVzZXJUaXBcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
273
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGFib3JhdGUtY3Vyc29yLmpzIiwic291cmNlUm9vdCI6I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YWRvdzogJzAgMXB4IDJweCByZ2JhKDAsMCwwLC4xKScsXG4gICAgICAgIGJvcmRlclJhZGl1czogJzNweCcsXG4gICAgICAgIHBhZGRpbmc6ICczcHggNXB4JyxcbiAgICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgfVxuICAgIH0pXG5cbiAgICBjb25zdCBhbmNob3IgPSBjcmVhdGVFbGVtZW50KCdzcGFuJywge1xuICAgICAgc3R5bGVzOiB7XG4gICAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgICB0b3A6ICctMnB4JyxcbiAgICAgICAgbGVmdDogJy0ycHgnLFxuICAgICAgICB3aWR0aDogJzZweCcsXG4gICAgICAgIGhlaWdodDogJzZweCcsXG4gICAgICAgIHBvaW50ZXJFdmVudHM6ICdhdXRvJyxcbiAgICAgICAgcG9pbnRlcjogJ2N1cnNvcicsXG4gICAgICB9LFxuICAgICAgY2hpbGRyZW46IFt1c2VyVGlwXSxcbiAgICAgIG9uOiB7XG4gICAgICAgIG1vdXNlZW50ZXIoKSB7XG4gICAgICAgICAgdXNlclRpcC5zdHlsZS5kaXNwbGF5ID0gJ2Jsb2NrJ1xuICAgICAgICB9LFxuICAgICAgICBtb3VzZWxlYXZlKCkge1xuICAgICAgICAgIHVzZXJUaXAuc3R5bGUuZGlzcGxheSA9ICdub25lJ1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfSlcbiAgICBjaGlsZCA9IGNyZWF0ZUVsZW1lbnQoJ3NwYW4nLCB7XG4gICAgICBzdHlsZXM6IHtcbiAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICB9LFxuICAgICAgY2hpbGRyZW46IFtcbiAgICAgICAgYW5jaG9yXG4gICAgICBdXG4gICAgfSlcbiAgICB0aGlzLnRvb2x0aXBzLmFwcGVuZChjaGlsZClcbiAgICByZXR1cm4ge1xuICAgICAgY3Vyc29yOiBjaGlsZCxcbiAgICAgIGFuY2hvcixcbiAgICAgIHVzZXJUaXBcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
package/bundles/collaborate.d.ts
CHANGED
@@ -1,17 +1,33 @@
|
|
1
|
-
import { Observable } from '@tanbo/stream';
|
2
|
-
import { Controller,
|
3
|
-
import { Doc as YDoc } from 'yjs';
|
1
|
+
import { Observable, Subject, Subscription } from '@tanbo/stream';
|
2
|
+
import { ComponentInstance, Controller, Factory, History, RootComponentRef, Scheduler, Selection, SelectionPaths, Slot, Starter } from '@textbus/core';
|
3
|
+
import { Array as YArray, Doc as YDoc, Map as YMap, RelativePosition, Text as YText, Transaction, UndoManager } from 'yjs';
|
4
4
|
import { CollaborateCursor, RemoteSelection } from './collaborate-cursor';
|
5
|
+
interface CursorPosition {
|
6
|
+
anchor: RelativePosition;
|
7
|
+
focus: RelativePosition;
|
8
|
+
}
|
9
|
+
declare class ContentMap {
|
10
|
+
private slotAndYTextMap;
|
11
|
+
private yTextAndSLotMap;
|
12
|
+
set(key: Slot, value: YText): void;
|
13
|
+
set(key: YText, value: Slot): void;
|
14
|
+
get(key: Slot): YText | null;
|
15
|
+
get(key: YText): Slot | null;
|
16
|
+
delete(key: Slot | YText): void;
|
17
|
+
}
|
18
|
+
interface UpdateItem {
|
19
|
+
record: boolean;
|
20
|
+
action(): void;
|
21
|
+
}
|
5
22
|
export declare class Collaborate implements History {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
private starter;
|
23
|
+
protected stackSize: number;
|
24
|
+
protected rootComponentRef: RootComponentRef;
|
25
|
+
protected collaborateCursor: CollaborateCursor;
|
26
|
+
protected controller: Controller;
|
27
|
+
protected scheduler: Scheduler;
|
28
|
+
protected factory: Factory;
|
29
|
+
protected selection: Selection;
|
30
|
+
protected starter: Starter;
|
15
31
|
onSelectionChange: Observable<SelectionPaths>;
|
16
32
|
yDoc: YDoc;
|
17
33
|
onBack: Observable<void>;
|
@@ -20,41 +36,42 @@ export declare class Collaborate implements History {
|
|
20
36
|
onPush: Observable<void>;
|
21
37
|
get canBack(): boolean;
|
22
38
|
get canForward(): boolean;
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
constructor(stackSize: number, rootComponentRef: RootComponentRef, collaborateCursor: CollaborateCursor, controller: Controller, scheduler: Scheduler,
|
39
|
+
protected backEvent: Subject<void>;
|
40
|
+
protected forwardEvent: Subject<void>;
|
41
|
+
protected changeEvent: Subject<void>;
|
42
|
+
protected pushEvent: Subject<void>;
|
43
|
+
protected manager: UndoManager | null;
|
44
|
+
protected subscriptions: Subscription[];
|
45
|
+
protected updateFromRemote: boolean;
|
46
|
+
protected contentSyncCaches: WeakMap<Slot<any>, () => void>;
|
47
|
+
protected slotStateSyncCaches: WeakMap<Slot<any>, () => void>;
|
48
|
+
protected slotsSyncCaches: WeakMap<ComponentInstance<import("@textbus/core").ComponentExtends, any, unknown>, () => void>;
|
49
|
+
protected componentStateSyncCaches: WeakMap<ComponentInstance<import("@textbus/core").ComponentExtends, any, unknown>, () => void>;
|
50
|
+
protected selectionChangeEvent: Subject<SelectionPaths>;
|
51
|
+
protected contentMap: ContentMap;
|
52
|
+
protected updateRemoteActions: Array<UpdateItem>;
|
53
|
+
protected noRecord: {};
|
54
|
+
constructor(stackSize: number, rootComponentRef: RootComponentRef, collaborateCursor: CollaborateCursor, controller: Controller, scheduler: Scheduler, factory: Factory, selection: Selection, starter: Starter);
|
39
55
|
listen(): void;
|
40
56
|
updateRemoteSelection(paths: RemoteSelection[]): void;
|
41
57
|
back(): void;
|
42
58
|
forward(): void;
|
43
59
|
clear(): void;
|
44
60
|
destroy(): void;
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
61
|
+
protected syncRootComponent(root: YMap<any>, rootComponent: ComponentInstance): void;
|
62
|
+
protected restoreCursorLocation(position: CursorPosition): void;
|
63
|
+
protected getRelativeCursorLocation(): CursorPosition | null;
|
64
|
+
protected syncContent(content: YText, slot: Slot): void;
|
65
|
+
protected syncSlot(remoteSlot: YMap<any>, slot: Slot): void;
|
66
|
+
protected syncSlots(remoteSlots: YArray<any>, component: ComponentInstance): void;
|
67
|
+
protected syncComponent(remoteComponent: YMap<any>, component: ComponentInstance): void;
|
68
|
+
protected runLocalUpdate(fn: () => void, record?: boolean): void;
|
69
|
+
protected runRemoteUpdate(tr: Transaction, fn: () => void): void;
|
70
|
+
protected createSharedComponentByComponent(component: ComponentInstance): YMap<any>;
|
71
|
+
protected createSharedSlotBySlot(slot: Slot): YMap<any>;
|
72
|
+
protected createComponentBySharedComponent(yMap: YMap<any>, canInsertInlineComponent: boolean): ComponentInstance;
|
73
|
+
protected createSlotBySharedSlot(sharedSlot: YMap<any>): Slot;
|
74
|
+
protected cleanSubscriptionsBySlot(slot: Slot): void;
|
75
|
+
protected cleanSubscriptionsByComponent(component: ComponentInstance): void;
|
60
76
|
}
|
77
|
+
export {};
|
package/bundles/collaborate.js
CHANGED
@@ -12,7 +12,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
12
|
};
|
13
13
|
import { Inject, Injectable } from '@tanbo/di';
|
14
14
|
import { delay, filter, map, Subject } from '@tanbo/stream';
|
15
|
-
import { ChangeOrigin, ContentType, Controller, HISTORY_STACK_SIZE, makeError,
|
15
|
+
import { ChangeOrigin, ContentType, Controller, Factory, HISTORY_STACK_SIZE, makeError, RootComponentRef, Scheduler, Selection, Slot, Starter } from '@textbus/core';
|
16
16
|
import { Array as YArray, Doc as YDoc, Map as YMap, Text as YText, UndoManager, createAbsolutePositionFromRelativePosition, createRelativePositionFromTypeIndex } from 'yjs';
|
17
17
|
import { CollaborateCursor } from './collaborate-cursor';
|
18
18
|
import { createUnknownComponent } from './unknown.component';
|
@@ -56,14 +56,13 @@ class ContentMap {
|
|
56
56
|
}
|
57
57
|
}
|
58
58
|
let Collaborate = class Collaborate {
|
59
|
-
constructor(stackSize, rootComponentRef, collaborateCursor, controller, scheduler,
|
59
|
+
constructor(stackSize, rootComponentRef, collaborateCursor, controller, scheduler, factory, selection, starter) {
|
60
60
|
this.stackSize = stackSize;
|
61
61
|
this.rootComponentRef = rootComponentRef;
|
62
62
|
this.collaborateCursor = collaborateCursor;
|
63
63
|
this.controller = controller;
|
64
64
|
this.scheduler = scheduler;
|
65
|
-
this.
|
66
|
-
this.registry = registry;
|
65
|
+
this.factory = factory;
|
67
66
|
this.selection = selection;
|
68
67
|
this.starter = starter;
|
69
68
|
this.yDoc = new YDoc();
|
@@ -269,7 +268,7 @@ let Collaborate = class Collaborate {
|
|
269
268
|
ev.delta.forEach(action => {
|
270
269
|
if (Reflect.has(action, 'retain')) {
|
271
270
|
if (action.attributes) {
|
272
|
-
const formats = remoteFormatsToLocal(this.
|
271
|
+
const formats = remoteFormatsToLocal(this.factory, action.attributes);
|
273
272
|
if (formats.length) {
|
274
273
|
slot.retain(action.retain, formats);
|
275
274
|
}
|
@@ -284,7 +283,7 @@ let Collaborate = class Collaborate {
|
|
284
283
|
let length = 1;
|
285
284
|
if (typeof action.insert === 'string') {
|
286
285
|
length = action.insert.length;
|
287
|
-
slot.insert(action.insert, remoteFormatsToLocal(this.
|
286
|
+
slot.insert(action.insert, remoteFormatsToLocal(this.factory, action.attributes));
|
288
287
|
}
|
289
288
|
else {
|
290
289
|
const sharedComponent = action.insert;
|
@@ -330,7 +329,9 @@ let Collaborate = class Collaborate {
|
|
330
329
|
});
|
331
330
|
};
|
332
331
|
content.observe(syncRemote);
|
333
|
-
const sub = slot.onContentChange.
|
332
|
+
const sub = slot.onContentChange.pipe(filter(() => {
|
333
|
+
return !this.scheduler.ignoreChanges;
|
334
|
+
})).subscribe(actions => {
|
334
335
|
this.runLocalUpdate(() => {
|
335
336
|
var _a;
|
336
337
|
let offset = 0;
|
@@ -342,7 +343,7 @@ let Collaborate = class Collaborate {
|
|
342
343
|
const keys = Object.keys(formats);
|
343
344
|
let length = keys.length;
|
344
345
|
keys.forEach(key => {
|
345
|
-
const formatter = this.
|
346
|
+
const formatter = this.factory.getFormatter(key);
|
346
347
|
if (!formatter) {
|
347
348
|
length--;
|
348
349
|
Reflect.deleteProperty(formats, key);
|
@@ -414,7 +415,9 @@ let Collaborate = class Collaborate {
|
|
414
415
|
});
|
415
416
|
};
|
416
417
|
remoteSlot.observe(syncRemote);
|
417
|
-
const sub = slot.onStateChange.
|
418
|
+
const sub = slot.onStateChange.pipe(filter(() => {
|
419
|
+
return !this.scheduler.ignoreChanges;
|
420
|
+
})).subscribe(change => {
|
418
421
|
this.runLocalUpdate(() => {
|
419
422
|
remoteSlot.set('state', change.newState);
|
420
423
|
}, change.record);
|
@@ -451,7 +454,9 @@ let Collaborate = class Collaborate {
|
|
451
454
|
});
|
452
455
|
};
|
453
456
|
remoteSlots.observe(syncRemote);
|
454
|
-
const sub = slots.onChange.
|
457
|
+
const sub = slots.onChange.pipe(filter(() => {
|
458
|
+
return !this.scheduler.ignoreChanges;
|
459
|
+
})).subscribe(operations => {
|
455
460
|
this.runLocalUpdate(() => {
|
456
461
|
const applyActions = operations.apply;
|
457
462
|
let index;
|
@@ -499,7 +504,9 @@ let Collaborate = class Collaborate {
|
|
499
504
|
});
|
500
505
|
};
|
501
506
|
remoteComponent.observe(syncRemote);
|
502
|
-
const sub = component.onStateChange.
|
507
|
+
const sub = component.onStateChange.pipe(filter(() => {
|
508
|
+
return !this.scheduler.ignoreChanges;
|
509
|
+
})).subscribe(change => {
|
503
510
|
this.runLocalUpdate(() => {
|
504
511
|
remoteComponent.set('state', change.newState);
|
505
512
|
}, change.record);
|
@@ -584,7 +591,7 @@ let Collaborate = class Collaborate {
|
|
584
591
|
});
|
585
592
|
const name = yMap.get('name');
|
586
593
|
const state = yMap.get('state');
|
587
|
-
const instance = this.
|
594
|
+
const instance = this.factory.createComponentByData(name, {
|
588
595
|
state,
|
589
596
|
slots
|
590
597
|
});
|
@@ -605,7 +612,7 @@ let Collaborate = class Collaborate {
|
|
605
612
|
createSlotBySharedSlot(sharedSlot) {
|
606
613
|
const content = sharedSlot.get('content');
|
607
614
|
const delta = content.toDelta();
|
608
|
-
const slot = this.
|
615
|
+
const slot = this.factory.createSlot({
|
609
616
|
schema: sharedSlot.get('schema'),
|
610
617
|
state: sharedSlot.get('state'),
|
611
618
|
formats: {},
|
@@ -614,13 +621,13 @@ let Collaborate = class Collaborate {
|
|
614
621
|
for (const action of delta) {
|
615
622
|
if (action.insert) {
|
616
623
|
if (typeof action.insert === 'string') {
|
617
|
-
slot.insert(action.insert, remoteFormatsToLocal(this.
|
624
|
+
slot.insert(action.insert, remoteFormatsToLocal(this.factory, action.attributes));
|
618
625
|
}
|
619
626
|
else {
|
620
627
|
const sharedComponent = action.insert;
|
621
628
|
const canInsertInlineComponent = slot.schema.includes(ContentType.InlineComponent);
|
622
629
|
const component = this.createComponentBySharedComponent(sharedComponent, canInsertInlineComponent);
|
623
|
-
slot.insert(component, remoteFormatsToLocal(this.
|
630
|
+
slot.insert(component, remoteFormatsToLocal(this.factory, action.attributes));
|
624
631
|
this.syncSlots(sharedComponent.get('slots'), component);
|
625
632
|
this.syncComponent(sharedComponent, component);
|
626
633
|
}
|
@@ -662,17 +669,16 @@ Collaborate = __decorate([
|
|
662
669
|
CollaborateCursor,
|
663
670
|
Controller,
|
664
671
|
Scheduler,
|
665
|
-
|
666
|
-
Registry,
|
672
|
+
Factory,
|
667
673
|
Selection,
|
668
674
|
Starter])
|
669
675
|
], Collaborate);
|
670
676
|
export { Collaborate };
|
671
|
-
function remoteFormatsToLocal(
|
677
|
+
function remoteFormatsToLocal(factory, attrs) {
|
672
678
|
const formats = [];
|
673
679
|
if (attrs) {
|
674
680
|
Object.keys(attrs).forEach(key => {
|
675
|
-
const formatter =
|
681
|
+
const formatter = factory.getFormatter(key);
|
676
682
|
if (formatter) {
|
677
683
|
formats.push([formatter, attrs[key]]);
|
678
684
|
}
|
@@ -680,4 +686,4 @@ function remoteFormatsToLocal(registry, attrs) {
|
|
680
686
|
}
|
681
687
|
return formats;
|
682
688
|
}
|
683
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGFib3JhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29sbGFib3JhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDOUMsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsR0FBRyxFQUFjLE9BQU8sRUFBZ0IsTUFBTSxlQUFlLENBQUE7QUFDckYsT0FBTyxFQUNMLFlBQVksRUFFWixXQUFXLEVBQ1gsVUFBVSxFQUdWLGtCQUFrQixFQUNsQixTQUFTLEVBQ1QsUUFBUSxFQUNSLGdCQUFnQixFQUNoQixTQUFTLEVBQ1QsU0FBUyxFQUVULElBQUksRUFDSixPQUFPLEVBQ1AsVUFBVSxFQUNYLE1BQU0sZUFBZSxDQUFBO0FBQ3RCLE9BQU8sRUFDTCxLQUFLLElBQUksTUFBTSxFQUNmLEdBQUcsSUFBSSxJQUFJLEVBQ1gsR0FBRyxJQUFJLElBQUksRUFFWCxJQUFJLElBQUksS0FBSyxFQUViLFdBQVcsRUFDWCwwQ0FBMEMsRUFDMUMsbUNBQW1DLEVBQ3BDLE1BQU0sS0FBSyxDQUFBO0FBRVosT0FBTyxFQUFFLGlCQUFpQixFQUFtQixNQUFNLHNCQUFzQixDQUFBO0FBQ3pFLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLHFCQUFxQixDQUFBO0FBRT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uICAgIH0pXG4gICAgdGhpcy5zdWJzY3JpcHRpb25zLnB1c2goXG4gICAgICB0aGlzLnNlbGVjdGlvbi5vbkNoYW5nZS5zdWJzY3JpYmUoKCkgPT4ge1xuICAgICAgICBjb25zdCBwYXRocyA9IHRoaXMuc2VsZWN0aW9uLmdldFBhdGhzKClcbiAgICAgICAgdGhpcy5zZWxlY3Rpb25DaGFuZ2VFdmVudC5uZXh0KHBhdGhzKVxuICAgICAgfSksXG4gICAgICB0aGlzLnNjaGVkdWxlci5vbkRvY0NoYW5nZWQucGlwZShcbiAgICAgICAgbWFwKGl0ZW0gPT4ge1xuICAgICAgICAgIHJldHVybiBpdGVtLmZpbHRlcihpID0+IHtcbiAgICAgICAgICAgIHJldHVybiBpLmZyb20gIT09IENoYW5nZU9yaWdpbi5SZW1vdGVcbiAgICAgICAgICB9KVxuICAgICAgICB9KSxcbiAgICAgICAgZmlsdGVyKGl0ZW0gPT4ge1xuICAgICAgICAgIHJldHVybiBpdGVtLmxlbmd0aFxuICAgICAgICB9KVxuICAgICAgKS5zdWJzY3JpYmUoKCkgPT4ge1xuICAgICAgICBjb25zdCB1cGRhdGVzOiBVcGRhdGVbXSA9IFtdXG5cbiAgICAgICAgbGV0IHVwZGF0ZTogVXBkYXRlIHwgbnVsbCA9IG51bGxcblxuICAgICAgICBmb3IgKGNvbnN0IGl0ZW0gb2YgdGhpcy51cGRhdGVSZW1vdGVBY3Rpb25zKSB7XG4gICAgICAgICAgaWYgKCF1cGRhdGUpIHtcbiAgICAgICAgICAgIHVwZGF0ZSA9IHtcbiAgICAgICAgICAgICAgcmVjb3JkOiBpdGVtLnJlY29yZCxcbiAgICAgICAgICAgICAgYWN0aW9uczogW11cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHVwZGF0ZXMucHVzaCh1cGRhdGUpXG4gICAgICAgICAgfVxuICAgICAgICAgIGlmICh1cGRhdGUucmVjb3JkID09PSBpdGVtLnJlY29yZCkge1xuICAgICAgICAgICAgdXBkYXRlLmFjdGlvbnMucHVzaChpdGVtLmFjdGlvbilcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdXBkYXRlID0ge1xuICAgICAgICAgICAgICByZWNvcmQ6IGl0ZW0ucmVjb3JkLFxuICAgICAgICAgICAgICBhY3Rpb25zOiBbaXRlbS5hY3Rpb25dXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB1cGRhdGVzLnB1c2godXBkYXRlKVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMudXBkYXRlUmVtb3RlQWN0aW9ucyA9IFtdXG5cbiAgICAgICAgZm9yIChjb25zdCBpdGVtIG9mIHVwZGF0ZXMpIHtcbiAgICAgICAgICB0aGlzLnlEb2MudHJhbnNhY3QoKCkgPT4ge1xuICAgICAgICAgICAgaXRlbS5hY3Rpb25zLmZvckVhY2goZm4gPT4ge1xuICAgICAgICAgICAgICBmbigpXG4gICAgICAgICAgICB9KVxuICAgICAgICAgIH0sIGl0ZW0ucmVjb3JkID8gdGhpcy55RG9jIDogdGhpcy5ub1JlY29yZClcbiAgICAgICAgfVxuICAgICAgfSlcbiAgICApXG4gICAgdGhpcy5zeW5jUm9vdENvbXBvbmVudChyb290LCByb290Q29tcG9uZW50KVxuICB9XG5cbiAgdXBkYXRlUmVtb3RlU2VsZWN0aW9uKHBhdGhzOiBSZW1vdGVTZWxlY3Rpb25bXSkge1xuICAgIHRoaXMuY29sbGFib3JhdGVDdXJzb3IuZHJhdyhwYXRocylcbiAgfVxuXG4gIGJhY2soKSB7XG4gICAgaWYgKHRoaXMuY2FuQmFjaykge1xuICAgICAgdGhpcy5tYW5hZ2VyPy51bmRvKClcbiAgICAgIHRoaXMuYmFja0V2ZW50Lm5leHQoKVxuICAgIH1cbiAgfVxuXG4gIGZvcndhcmQoKSB7XG4gICAgaWYgKHRoaXMuY2FuRm9yd2FyZCkge1xuICAgICAgdGhpcy5tYW5hZ2VyPy5yZWRvKClcbiAgICAgIHRoaXMu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cnksIGFjdGlvbi5hdHRyaWJ1dGVzKVxuICAgICAgICAgICAgICBpZiAoZm9ybWF0cy5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICBzbG90LnJldGFpbihhY3Rpb24ucmV0YWluISwgZm9ybWF0cylcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICBzbG90LnJldGFpbihzbG90LmluZGV4ICsgYWN0aW9uLnJldGFpbilcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIHNsb3QucmV0YWluKGFjdGlvbi5yZXRhaW4pXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSBlbHNlIGlmIChhY3Rpb24uaW5zZXJ0KSB7XG4gICAgICAgICAgICBjb25zdCBpbmRleCA9IHNsb3QuaW5kZXhcbiAgICAgICAgICAgIGxldCBsZW5ndGggPSAxXG4gICAgICAgICAgICBpZiAodHlwZW9mIGFjdGlvbi5pbnNlcnQgPT09ICdzdHJpbmcnKSB7XG4gICAgICAgICAgICAgIGxlbmd0aCA9IGFjdGlvbi5pbnNlcnQubGVuZ3RoXG4gICAgICAgICAgICAgIHNsb3QuaW5zZXJ0KGFjdGlvbi5pbnNlcnQsIHJlbW90ZUZvcm1hdHNUb0xvY2FsKHRoaXMucmVnaXN0cnksIGFjdGlvbi5hdHRyaWJ1dGVzKSlcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIGNvbnN0IHNoYXJlZENvbXBvbmVudCA9IGFjdGlvbi5pbnNlcnQgYXMgWU1hcDxhbnk+XG4gICAgICAgICAgICAgIGNvbnN0IGNhbkluc2VydElubGluZUNvbXBvbmVudCA9IHNsb3Quc2NoZW1hLmluY2x1ZGVzKENvbnRlbnRUeXBlLklubGluZUNvbXBvbmVudClcbiAgICAgICAgICAgICAgY29uc3QgY29tcG9uZW50ID0gdGhpcy5jcmVhdGVDb21wb25lbnRCeVNoYXJlZENvbXBvbmVudChzaGFyZWRDb21wb25lbnQsIGNhbkluc2VydElubGluZUNvbXBvbmVudClcbiAgICAgICAgICAgICAgdGhpcy5zeW5jU2xvdHMoc2hhcmVkQ29tcG9uZW50LmdldCgnc2xvdHMnKSwgY29tcG9uZW50KVxuICAgICAgICAgICAgICB0aGlzLnN5bmNDb21wb25lbnQoc2hhcmVkQ29tcG9uZW50LCBjb21wb25lbnQpXG4gICAgICAgICAgICAgIHNsb3QuaW5zZXJ0KGNvbXBvbmVudClcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmICh0aGlzLnNlbGVjdGlvbi5pc1NlbGVjdGVkKSB7XG4gICAgICAgICAgICAgIGlmIChzbG90ID09PSB0aGlzLnNlbGVjdGlvbi5hbmNob3JTbG90ICYmIHRoaXMuc2VsZWN0aW9uLmFuY2hvck9mZnNldCEgPiBpbmRleCkge1xuICAgICAgICAgICAgICAgIHRoaXMuc2VsZWN0aW9uLnNldEFuY2hvcihzbG90LCB0aGlzLnNlbGVjdGlvbi5hbmNob3JPZmZzZXQhICsgbGVuZ3RoKVxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIGlmIChzbG90ID09PSB0aGlzLnNlbGVjdGlvbi5mb2N1c1Nsb3QgJiYgdGhpcy5zZWxlY3Rpb24uZm9jdXNPZmZzZXQhID4gaW5kZXgpIHtcbiAgICAgICAgICAgICAgICB0aGlzLnNlbGVjdGlvbi5zZXRGb2N1cyhzbG90LCB0aGlzLnNlbGVjdGlvbi5mb2N1c09mZnNldCEgKyBsZW5ndGgpXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9IGVsc2UgaWYgKGFjdGlvbi5kZWxldGUpIHtcbiAgICAgICAgICAgIGNvbnN0IGluZGV4ID0gc2xvdC5pbmRleFxuICAgICAgICAgICAgc2xvdC5yZXRhaW4oc2xvdC5pbmRleClcbiAgICAgICAgICAgIHNsb3QuZGVsZXRlKGFjdGlvbi5kZWxldGUpXG4gICAgICAgICAgICBpZiAodGhpcy5zZWxlY3Rpb24uaXNTZW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Lm9uQ29udGVudENoYW5nZS5zdWJzY3JpYmUoYWN0aW9ucyA9PiB7XG4gICAgICB0aGlzLnJ1bkxvY2FsVXBkYXRlKCgpID0+IHtcbiAgICAgICAgbGV0IG9mZnNldCA9IDBcbiAgICAgICAgbGV0IGxlbmd0aCA9IDBcbiAgICAgICAgZm9yIChjb25zdCBhY3Rpb24gb2YgYWN0aW9ucykge1xuICAgICAgICAgIGlmIChhY3Rpb24udHlwZSA9PT0gJ3JldGFpbicpIHtcbiAgICAgICAgICAgIGNvbnN0IGZvcm1hdHMgPSBhY3Rpb24uZm9ybWF0c1xuICAgICAgICAgICAgaWYgKGZvcm1hdHMpIHtcbiAgICAgICAgICAgICAgY29uc3Qga2V5cyA9IE9iamVjdC5rZXlzKGZvcm1hdHMpXG4gICAgICAgICAgICAgIGxldCBsZW5ndGggPSBrZXlzLmxlbmd0aFxuICAgICAgICAgICAgICBrZXlzLmZvckVhY2goa2V5ID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCBmb3JtYXR0ZXIgPSB0aGlzLnJlZ2lzdHJ5LmdldEZvcm1hdHRlcihrZXkpXG4gICAgICAgICAgICAgICAgaWYgKCFmb3JtYXR0ZXIpIHtcbiAgICAgICAgICAgICAgICAgIGxlbmd0aC0tXG4gICAgICAgICAgICAgICAgICBSZWZsZWN0LmRlbGV0ZVByb3BlcnR5KGZvcm1hdHMsIGtleSlcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIGlmIChsZW5ndGgpIHtcbiAgICAgICAgICAgICAgICBjb250ZW50LmZvcm1hdChvZmZzZXQsIGFjdGlvbi5vZmZzZXQsIGZvcm1hdHMpXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIG9mZnNldCA9IGFjdGlvbi5vZmZzZXRcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9IGVsc2UgaWYgKGFjdGlvbi50eXBlID09PSA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9PiB7XG4gICAgICAgICAgaWYgKFJlZmxlY3QuaGFzKGFjdGlvbiwgJ3JldGFpbicpKSB7XG4gICAgICAgICAgICBpbmRleCArPSBhY3Rpb24ucmV0YWluXG4gICAgICAgICAgICBzbG90cy5yZXRhaW4oaW5kZXgpXG4gICAgICAgICAgfSBlbHNlIGlmIChhY3Rpb24uaW5zZXJ0KSB7XG4gICAgICAgICAgICAoYWN0aW9uLmluc2VydCBhcyBBcnJheTxZTWFwPGFueT4+KS5mb3JFYWNoKGl0ZW0gPT4ge1xuICAgICAgICAgICAgICBjb25zdCBzbG90ID0gdGhpcy5jcmVhdGVTbG90QnlTaGFyZWRTbG90KGl0ZW0pXG4gICAgICAgICAgICAgIHNsb3RzLmluc2VydChzbG90KVxuICAgICAgICAgICAgICB0aGlzLnN5bmNDb250ZW50KGl0ZW0uZ2V0KCdjb250ZW50JyksIHNsb3QpXG4gICAgICAgICAgICAgIHRoaXMuc3luY1Nsb3QoaXRlbSwgc2xvdClcbiAgICAgICAgICAgICAgaW5kZXgrK1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICB9IGVsc2UgaWYgKGFjdGlvbi5kZWxldGUpIHtcbiAgICAgICAgICAgIHNsb3RzLnJldGFpbihpbmRleClcbiAgICAgICAgICAgIHNsb3RzLmRlbGV0ZShhY3Rpb24uZGVsZXRlKVxuICAgICAgICAgIH1cbiAgICAgICAgfSlcbiAgICAgIH0pXG4gICAgfVxuICAgIHJlbW90ZVNsb3RzLm9ic2VydmUoc3luY1JlbW90ZSlcblxuICAgIGNvbnN0IHN1YiA9IHNsb3RzLm9uQ2hhbmdlLnN1YnNjcmliZShvcGVyYXRpb25zID0+IHtcbiAgICAgIHRoaXMucnVuTG9jYWxVcGRhdGUoKCkgPT4ge1xuICAgICAgICBjb25zdCBhcHBseUFjdGlvbnMgPSBvcGVyYXRpb25zLmFwcGx5XG4gICAgICAgIGxldCBpbmRleDogbnVtYmVyXG4gICAgICAgIGFwcGx5QWN0aW9ucy5mb3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lbnQubmV4dChwYXRocylcbiAgICAgIH0pLFxuICAgICAgdGhpcy5zY2hlZHVsZXIub25Eb2NDaGFuZ2VkLnBpcGUoXG4gICAgICAgIG1hcChpdGVtID0+IHtcbiAgICAgICAgICByZXR1cm4gaXRlbS5maWx0ZXIoaSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gaS5mcm9tICE9PSBDaGFuZ2VPcmlnaW4uUmVtb3RlXG4gICAgICAgICAgfSlcbiAgICAgICAgfSksXG4gICAgICAgIGZpbHRlcihpdGVtID0+IHtcbiAgICAgICAgICByZXR1cm4gaXRlbS5sZW5ndGhcbiAgICAgICAgfSlcbiAgICAgICkuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgICAgY29uc3QgdXBkYXRlczogVXBkYXRlW10gPSBbXVxuXG4gICAgICAgIGxldCB1cGRhdGU6IFVwZGF0ZSB8IG51bGwgPSBudWxsXG5cbiAgICAgICAgZm9yIChjb25zdCBpdGVtIG9mIHRoaXMudXBkYXRlUmVtb3RlQWN0aW9ucykge1xuICAgICAgICAgIGlmICghdXBkYXRlKSB7XG4gICAgICAgICAgICB1cGRhdGUgPSB7XG4gICAgICAgICAgICAgIHJlY29yZDogaXRlbS5yZWNvcmQsXG4gICAgICAgICAgICAgIGFjdGlvbnM6IFtdXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB1cGRhdGVzLnB1c2godXBkYXRlKVxuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAodXBkYXRlLnJlY29yZCA9PT0gaXRlbS5yZWNvcmQpIHtcbiAgICAgICAgICAgIHVwZGF0ZS5hY3Rpb25zLnB1c2goaXRlbS5hY3Rpb24pXG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHVwZGF0ZSA9IHtcbiAgICAgICAgICAgICAgcmVjb3JkOiBpdGVtLnJlY29yZCxcbiAgICAgICAgICAgICAgYWN0aW9uczogW2l0ZW0uYWN0aW9uXVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgdX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XggKyBhY3Rpb24ucmV0YWluKVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgc2xvdC5yZXRhaW4oYWN0aW9uLnJldGFpbilcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9IGVsc2UgaWYgKGFjdGlvbi5pbnNlcnQpIHtcbiAgICAgICAgICAgIGNvbnN0IGluZGV4ID0gc2xvdC5pbmRleFxuICAgICAgICAgICAgbGV0IGxlbmd0aCA9IDFcbiAgICAgICAgICAgIGlmICh0eXBlb2YgYWN0aW9uLmluc2VydCA9PT0gJ3N0cmluZycpIHtcbiAgICAgICAgICAgICAgbGVuZ3RoID0gYWN0aW9uLmluc2VydC5sZW5ndGhcbiAgICAgICAgICAgICAgc2xvdC5pbnNlcnQoYWN0aW9uLmluc2VydCwgcmVtb3RlRm9ybWF0c1RvTG9jYWwodGhpcy5mYWN0b3J5LCBhY3Rpb24uYXR0cmlidXRlcykpXG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICBjb25zdCBzaGFyZWRDb21wb25lbnQgPSBhY3Rpb24uaW5zZXJ0IGFzIFlNYXA8YW55PlxuICAgICAgICAgICAgICBjb25zdCBjYW5JbnNlcnRJbmxpbmVDb21wb25lbnQgPSBzbG90LnNjaGVtYS5pbmNsdWRlcyhDb250ZW50VHlwZS5JbmxpbmVDb21wb25lbnQpXG4gICAgICAgICAgICAgIGNvbnN0IGNvbXBvbmVudCA9IHRoaXMuY3JlYXRlQ29tcG9uZW50QnlTaGFyZWRDb21wb25lbnQoc2hhcmVkQ29tcG9uZW50LCBjYW5JbnNlcnRJbmxpbmVDb21wb25lbnQpXG4gICAgICAgICAgICAgIHRoaXMuc3luY1Nsb3RzKHNoYXJlZENvbXBvbmVudC5nZXQoJ3Nsb3RzJyksIGNvbXBvbmVudClcbiAgICAgICAgICAgICAgdGhpcy5zeW5jQ29tcG9uZW50KHNoYXJlZENvbXBvbmVudCwgY29tcG9uZW50KVxuICAgICAgICAgICAgICB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UoKCkgPT4ge1xuICAgICAgICBsZXQgb2Zmc2V0ID0gMFxuICAgICAgICBsZXQgbGVuZ3RoID0gMFxuICAgICAgICBmb3IgKGNvbnN0IGFjdGlvbiBvZiBhY3Rpb25zKSB7XG4gICAgICAgICAgaWYgKGFjdGlvbi50eXBlID09PSAncmV0YWluJykge1xuICAgICAgICAgICAgY29uc3QgZm9ybWF0cyA9IGFjdGlvbi5mb3JtYXRzXG4gICAgICAgICAgICBpZiAoZm9ybWF0cykge1xuICAgICAgICAgICAgICBjb25zdCBrZXlzID0gT2JqZWN0LmtleXMoZm9ybWF0cylcbiAgICAgICAgICAgICAgbGV0IGxlbmd0aCA9IGtleXMubGVuZ3RoXG4gICAgICAgICAgICAgIGtleXMuZm9yRWFjaChrZXkgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IGZvcm1hdHRlciA9IHRoaXMuZmFjdG9yeS5nZXRGb3JtYXR0ZXIoa2V5KVxuICAgICAgICAgICAgICAgIGlmICghZm9ybWF0dGVyKSB7XG4gICAgICAgICAgICAgICAgICBsZW5ndGgtLVxuICAgICAgICAgICAgICAgICAgUmVmbGVjdC5kZWxldGVQcm9wZXJ0eShmb3JtYXRzLCBrZXkpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICBpZiAobGVuZ3RoKSB7XG4gICAgICAgICAgICAgICAgY29udGVudC5mb3JtYXQob2Zmc2V0LCBhY3Rpb24ub2Zmc2V0LCBmb3JtYXRzKVxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICBvZmZzZXQgPSBhY3Rpb24ub2Zmc2V0XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSBlbHNlIGlmIChhY3Rpb24udHlwZSA9PT0gJ2luc2VydCcpIHtcbiAgICAgICAgICAgIGNvbnN0IGRlbHRhID0gY29udGVudC50b0RlbHRhKClcbiAgICAgICAgICAgIGNvbnN0IGlzRW1wdHkgPSBkZWx0YS5sZW5ndGggPT09IDEgJiYgZGVsdGFbMF0uaW5zZXJ0ID09PSBTbG90LmVtcHR5UGxhY2Vob2xkZXJcbiAgICAgICAgICAgIGlmICh0eXBlb2YgYWN0aW9uLmNvbnRlbnQgPT09ICdzdHJpbmcnKSB7XG4gICAgICAgICAgICAgIGxlbmd0aCA9IGFjdGlvbi5jb250ZW50Lmxlbmd0aFxuICAgICAgICAgICAgICBjb250ZW50Lmluc2VydChvZmZzZXQsIGFjdGlvbi5jb250ZW50LCBhY3Rpb24uZm9ybWF0cyB8fCB7fSlcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIGxlbmd0aCA9IDFcbiAgICAgICAgICAgICAgY29uc3Qgc2hhcmVkQ29tcG9uZW50ID0gdGhpcy5jcmVhdGVTaGFyZWRDb21wb25lbnRCeUNvbXBvbmVudChhY3Rpb24ucmVmIGFzIENvbXBvbmVudEluc3RhbmNlKVxuICAgICAgICAgICAgICBjb250ZW50Lmluc2VydEVtYmVkKG9mZnNldCwgc2hhcmVkQ29tcG9uZW50LCBhY3Rpb24uZm9ybWF0cyB8fCB7fSlcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKGlzRW1wdHkgJiYgb2Zmc2V0ID09PSAwKSB7XG4gICAgICAgICAgICAgIGNvbnRlbnQuZGVsZXRlKGNvbnRlbnQubGVuZ3RoIC0gMSwgMSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIG9mZnNldCArPSBsZW5ndGhcbiAgICAgICAgICB9IGVsc2UgaWYgKGFjdGlvbi50eXBlID09PSAnZGVsZXRlJykge1xuICAgICAgICAgICAgY29uc3QgZGVsdGEgPSBjb250ZW50LnRvRGVsdGEoKVxuICAgICAgICAgICAgaWYgKGNvbnRlbnQubGVuZ3RoKSB7XG4gICAgICAgICAgICAgIGNvbnRlbnQuZGVsZXRlKG9mZnNldCwgYWN0aW9uLmNvdW50KVxuICAgICAgICAgICAgfVxuICAg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gIFt0aGlzLnNsb3RzU3luY0NhY2hlcy5nZXQoY29tcG9uZW50KSwgdGhpcy5jb21wb25lbnRTdGF0ZVN5bmNDYWNoZXMuZ2V0KGNvbXBvbmVudCldLmZvckVhY2goZm4gPT4ge1xuICAgICAgaWYgKGZuKSB7XG4gICAgICAgIGZuKClcbiAgICAgIH1cbiAgICB9KVxuICAgIGNvbXBvbmVudC5zbG90cy50b0FycmF5KCkuZm9yRWFjaChzbG90ID0+IHtcbiAgICAgIHRoaXMuY2xlYW5TdWJzY3JpcHRpb25zQnlTbG90KHNsb3QpXG4gICAgfSlcbiAgfVxufVxuXG5mdW5jdGlvbiByZW1vdGVGb3JtYXRzVG9Mb2NhbChmYWN0b3J5OiBGYWN0b3J5LCBhdHRycz86IGFueSwpIHtcbiAgY29uc3QgZm9ybWF0czogRm9ybWF0cyA9IFtdXG4gIGlmIChhdHRycykge1xuICAgIE9iamVjdC5rZXlzKGF0dHJzKS5mb3JFYWNoKGtleSA9PiB7XG4gICAgICBjb25zdCBmb3JtYXR0ZXIgPSBmYWN0b3J5LmdldEZvcm1hdHRlcihrZXkpXG4gICAgICBpZiAoZm9ybWF0dGVyKSB7XG4gICAgICAgIGZvcm1hdHMucHVzaChbZm9ybWF0dGVyLCBhdHRyc1trZXldXSlcbiAgICAgIH1cbiAgICB9KVxuICB9XG4gIHJldHVybiBmb3JtYXRzXG59XG4iXX0=
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/collaborate",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.0-alpha.0",
|
4
4
|
"description": "Textbus is a rich text editor and framework that is highly customizable and extensible to achieve rich wysiwyg effects.",
|
5
5
|
"main": "./bundles/public-api.js",
|
6
6
|
"module": "./bundles/public-api.js",
|
@@ -27,8 +27,8 @@
|
|
27
27
|
"dependencies": {
|
28
28
|
"@tanbo/di": "^1.1.3",
|
29
29
|
"@tanbo/stream": "^1.1.8",
|
30
|
-
"@textbus/browser": "^
|
31
|
-
"@textbus/core": "^
|
30
|
+
"@textbus/browser": "^3.0.0-alpha.0",
|
31
|
+
"@textbus/core": "^3.0.0-alpha.0",
|
32
32
|
"reflect-metadata": "^0.1.13",
|
33
33
|
"y-protocols": "^1.0.5",
|
34
34
|
"yjs": "^13.5.39"
|
@@ -44,5 +44,5 @@
|
|
44
44
|
"bugs": {
|
45
45
|
"url": "https://github.com/textbus/textbus.git/issues"
|
46
46
|
},
|
47
|
-
"gitHead": "
|
47
|
+
"gitHead": "60f7bff5102f919ed668044600c1a50b82d914f7"
|
48
48
|
}
|
@@ -9,6 +9,7 @@ import { Selection, SelectionPaths, AbstractSelection, Scheduler, Rect } from '@
|
|
9
9
|
import { fromEvent, Subject, Subscription } from '@tanbo/stream'
|
10
10
|
|
11
11
|
export interface RemoteSelection {
|
12
|
+
id: string
|
12
13
|
color: string
|
13
14
|
username: string
|
14
15
|
paths: SelectionPaths
|
@@ -17,6 +18,7 @@ export interface RemoteSelection {
|
|
17
18
|
export interface SelectionRect extends Rect {
|
18
19
|
color: string
|
19
20
|
username: string
|
21
|
+
id: string
|
20
22
|
}
|
21
23
|
|
22
24
|
export interface RemoteSelectionCursor {
|
@@ -170,6 +172,7 @@ export class CollaborateCursor {
|
|
170
172
|
for (let i = rects.length - 1; i >= 0; i--) {
|
171
173
|
const rect = rects[i]
|
172
174
|
selectionRects.push({
|
175
|
+
id: item.id,
|
173
176
|
color: item.color,
|
174
177
|
username: item.username,
|
175
178
|
left: rect.left - containerRect.left,
|
@@ -187,6 +190,7 @@ export class CollaborateCursor {
|
|
187
190
|
const cursorRect = getLayoutRectByRange(cursorRange)
|
188
191
|
|
189
192
|
const rect: SelectionRect = {
|
193
|
+
id: item.id,
|
190
194
|
username: item.username,
|
191
195
|
color: item.color,
|
192
196
|
left: cursorRect.left - containerRect.left,
|
@@ -202,7 +206,7 @@ export class CollaborateCursor {
|
|
202
206
|
this.drawUserCursor(users)
|
203
207
|
}
|
204
208
|
|
205
|
-
|
209
|
+
protected drawUserCursor(rects: SelectionRect[]) {
|
206
210
|
for (let i = 0; i < rects.length; i++) {
|
207
211
|
const rect = rects[i]
|
208
212
|
const { cursor, userTip, anchor } = this.getUserCursor(i)
|
package/src/collaborate.ts
CHANGED
@@ -5,18 +5,17 @@ import {
|
|
5
5
|
ComponentInstance,
|
6
6
|
ContentType,
|
7
7
|
Controller,
|
8
|
+
Factory,
|
8
9
|
Formats,
|
9
10
|
History,
|
10
11
|
HISTORY_STACK_SIZE,
|
11
12
|
makeError,
|
12
|
-
Registry,
|
13
13
|
RootComponentRef,
|
14
14
|
Scheduler,
|
15
15
|
Selection,
|
16
16
|
SelectionPaths,
|
17
17
|
Slot,
|
18
|
-
Starter
|
19
|
-
Translator
|
18
|
+
Starter
|
20
19
|
} from '@textbus/core'
|
21
20
|
import {
|
22
21
|
Array as YArray,
|
@@ -110,36 +109,35 @@ export class Collaborate implements History {
|
|
110
109
|
return this.manager?.canRedo() || false
|
111
110
|
}
|
112
111
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
112
|
+
protected backEvent = new Subject<void>()
|
113
|
+
protected forwardEvent = new Subject<void>()
|
114
|
+
protected changeEvent = new Subject<void>()
|
115
|
+
protected pushEvent = new Subject<void>()
|
117
116
|
|
118
|
-
|
117
|
+
protected manager: UndoManager | null = null
|
119
118
|
|
120
|
-
|
121
|
-
|
119
|
+
protected subscriptions: Subscription[] = []
|
120
|
+
protected updateFromRemote = false
|
122
121
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
122
|
+
protected contentSyncCaches = new WeakMap<Slot, () => void>()
|
123
|
+
protected slotStateSyncCaches = new WeakMap<Slot, () => void>()
|
124
|
+
protected slotsSyncCaches = new WeakMap<ComponentInstance, () => void>()
|
125
|
+
protected componentStateSyncCaches = new WeakMap<ComponentInstance, () => void>()
|
127
126
|
|
128
|
-
|
129
|
-
|
127
|
+
protected selectionChangeEvent = new Subject<SelectionPaths>()
|
128
|
+
protected contentMap = new ContentMap()
|
130
129
|
|
131
|
-
|
132
|
-
|
130
|
+
protected updateRemoteActions: Array<UpdateItem> = []
|
131
|
+
protected noRecord = {}
|
133
132
|
|
134
|
-
constructor(@Inject(HISTORY_STACK_SIZE)
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
private starter: Starter) {
|
133
|
+
constructor(@Inject(HISTORY_STACK_SIZE) protected stackSize: number,
|
134
|
+
protected rootComponentRef: RootComponentRef,
|
135
|
+
protected collaborateCursor: CollaborateCursor,
|
136
|
+
protected controller: Controller,
|
137
|
+
protected scheduler: Scheduler,
|
138
|
+
protected factory: Factory,
|
139
|
+
protected selection: Selection,
|
140
|
+
protected starter: Starter) {
|
143
141
|
this.onSelectionChange = this.selectionChangeEvent.asObservable().pipe(delay())
|
144
142
|
this.onBack = this.backEvent.asObservable()
|
145
143
|
this.onForward = this.forwardEvent.asObservable()
|
@@ -251,7 +249,7 @@ export class Collaborate implements History {
|
|
251
249
|
this.manager?.destroy()
|
252
250
|
}
|
253
251
|
|
254
|
-
|
252
|
+
protected syncRootComponent(root: YMap<any>, rootComponent: ComponentInstance) {
|
255
253
|
let slots = root.get('slots') as YArray<YMap<any>>
|
256
254
|
if (!slots) {
|
257
255
|
slots = new YArray()
|
@@ -289,7 +287,7 @@ export class Collaborate implements History {
|
|
289
287
|
this.syncSlots(slots, rootComponent)
|
290
288
|
}
|
291
289
|
|
292
|
-
|
290
|
+
protected restoreCursorLocation(position: CursorPosition) {
|
293
291
|
const anchorPosition = createAbsolutePositionFromRelativePosition(position.anchor, this.yDoc)
|
294
292
|
const focusPosition = createAbsolutePositionFromRelativePosition(position.focus, this.yDoc)
|
295
293
|
if (anchorPosition && focusPosition) {
|
@@ -303,7 +301,7 @@ export class Collaborate implements History {
|
|
303
301
|
this.selection.unSelect()
|
304
302
|
}
|
305
303
|
|
306
|
-
|
304
|
+
protected getRelativeCursorLocation(): CursorPosition | null {
|
307
305
|
const { anchorSlot, anchorOffset, focusSlot, focusOffset } = this.selection
|
308
306
|
if (anchorSlot) {
|
309
307
|
const anchorYText = this.contentMap.get(anchorSlot)
|
@@ -324,7 +322,7 @@ export class Collaborate implements History {
|
|
324
322
|
return null
|
325
323
|
}
|
326
324
|
|
327
|
-
|
325
|
+
protected syncContent(content: YText, slot: Slot) {
|
328
326
|
this.contentMap.set(slot, content)
|
329
327
|
const syncRemote = (ev, tr) => {
|
330
328
|
this.runRemoteUpdate(tr, () => {
|
@@ -332,7 +330,7 @@ export class Collaborate implements History {
|
|
332
330
|
ev.delta.forEach(action => {
|
333
331
|
if (Reflect.has(action, 'retain')) {
|
334
332
|
if (action.attributes) {
|
335
|
-
const formats = remoteFormatsToLocal(this.
|
333
|
+
const formats = remoteFormatsToLocal(this.factory, action.attributes)
|
336
334
|
if (formats.length) {
|
337
335
|
slot.retain(action.retain!, formats)
|
338
336
|
}
|
@@ -345,7 +343,7 @@ export class Collaborate implements History {
|
|
345
343
|
let length = 1
|
346
344
|
if (typeof action.insert === 'string') {
|
347
345
|
length = action.insert.length
|
348
|
-
slot.insert(action.insert, remoteFormatsToLocal(this.
|
346
|
+
slot.insert(action.insert, remoteFormatsToLocal(this.factory, action.attributes))
|
349
347
|
} else {
|
350
348
|
const sharedComponent = action.insert as YMap<any>
|
351
349
|
const canInsertInlineComponent = slot.schema.includes(ContentType.InlineComponent)
|
@@ -388,7 +386,9 @@ export class Collaborate implements History {
|
|
388
386
|
}
|
389
387
|
content.observe(syncRemote)
|
390
388
|
|
391
|
-
const sub = slot.onContentChange.
|
389
|
+
const sub = slot.onContentChange.pipe(filter(() => {
|
390
|
+
return !this.scheduler.ignoreChanges
|
391
|
+
})).subscribe(actions => {
|
392
392
|
this.runLocalUpdate(() => {
|
393
393
|
let offset = 0
|
394
394
|
let length = 0
|
@@ -399,7 +399,7 @@ export class Collaborate implements History {
|
|
399
399
|
const keys = Object.keys(formats)
|
400
400
|
let length = keys.length
|
401
401
|
keys.forEach(key => {
|
402
|
-
const formatter = this.
|
402
|
+
const formatter = this.factory.getFormatter(key)
|
403
403
|
if (!formatter) {
|
404
404
|
length--
|
405
405
|
Reflect.deleteProperty(formats, key)
|
@@ -451,7 +451,7 @@ export class Collaborate implements History {
|
|
451
451
|
})
|
452
452
|
}
|
453
453
|
|
454
|
-
|
454
|
+
protected syncSlot(remoteSlot: YMap<any>, slot: Slot) {
|
455
455
|
const syncRemote = (ev, tr) => {
|
456
456
|
this.runRemoteUpdate(tr, () => {
|
457
457
|
ev.keysChanged.forEach(key => {
|
@@ -470,7 +470,9 @@ export class Collaborate implements History {
|
|
470
470
|
}
|
471
471
|
remoteSlot.observe(syncRemote)
|
472
472
|
|
473
|
-
const sub = slot.onStateChange.
|
473
|
+
const sub = slot.onStateChange.pipe(filter(() => {
|
474
|
+
return !this.scheduler.ignoreChanges
|
475
|
+
})).subscribe(change => {
|
474
476
|
this.runLocalUpdate(() => {
|
475
477
|
remoteSlot.set('state', change.newState)
|
476
478
|
}, change.record)
|
@@ -481,7 +483,7 @@ export class Collaborate implements History {
|
|
481
483
|
})
|
482
484
|
}
|
483
485
|
|
484
|
-
|
486
|
+
protected syncSlots(remoteSlots: YArray<any>, component: ComponentInstance) {
|
485
487
|
const slots = component.slots
|
486
488
|
const syncRemote = (ev, tr) => {
|
487
489
|
this.runRemoteUpdate(tr, () => {
|
@@ -507,7 +509,9 @@ export class Collaborate implements History {
|
|
507
509
|
}
|
508
510
|
remoteSlots.observe(syncRemote)
|
509
511
|
|
510
|
-
const sub = slots.onChange.
|
512
|
+
const sub = slots.onChange.pipe(filter(() => {
|
513
|
+
return !this.scheduler.ignoreChanges
|
514
|
+
})).subscribe(operations => {
|
511
515
|
this.runLocalUpdate(() => {
|
512
516
|
const applyActions = operations.apply
|
513
517
|
let index: number
|
@@ -537,7 +541,7 @@ export class Collaborate implements History {
|
|
537
541
|
})
|
538
542
|
}
|
539
543
|
|
540
|
-
|
544
|
+
protected syncComponent(remoteComponent: YMap<any>, component: ComponentInstance) {
|
541
545
|
const syncRemote = (ev, tr) => {
|
542
546
|
this.runRemoteUpdate(tr, () => {
|
543
547
|
ev.keysChanged.forEach(key => {
|
@@ -556,7 +560,9 @@ export class Collaborate implements History {
|
|
556
560
|
}
|
557
561
|
remoteComponent.observe(syncRemote)
|
558
562
|
|
559
|
-
const sub = component.onStateChange.
|
563
|
+
const sub = component.onStateChange.pipe(filter(() => {
|
564
|
+
return !this.scheduler.ignoreChanges
|
565
|
+
})).subscribe(change => {
|
560
566
|
this.runLocalUpdate(() => {
|
561
567
|
remoteComponent.set('state', change.newState)
|
562
568
|
}, change.record)
|
@@ -567,7 +573,7 @@ export class Collaborate implements History {
|
|
567
573
|
})
|
568
574
|
}
|
569
575
|
|
570
|
-
|
576
|
+
protected runLocalUpdate(fn: () => void, record = true) {
|
571
577
|
if (this.updateFromRemote || this.controller.readonly) {
|
572
578
|
return
|
573
579
|
}
|
@@ -577,7 +583,7 @@ export class Collaborate implements History {
|
|
577
583
|
})
|
578
584
|
}
|
579
585
|
|
580
|
-
|
586
|
+
protected runRemoteUpdate(tr: Transaction, fn: () => void) {
|
581
587
|
if (tr.origin === this.yDoc) {
|
582
588
|
return
|
583
589
|
}
|
@@ -590,7 +596,7 @@ export class Collaborate implements History {
|
|
590
596
|
this.updateFromRemote = false
|
591
597
|
}
|
592
598
|
|
593
|
-
|
599
|
+
protected createSharedComponentByComponent(component: ComponentInstance): YMap<any> {
|
594
600
|
const sharedComponent = new YMap()
|
595
601
|
sharedComponent.set('state', component.state)
|
596
602
|
sharedComponent.set('name', component.name)
|
@@ -605,7 +611,7 @@ export class Collaborate implements History {
|
|
605
611
|
return sharedComponent
|
606
612
|
}
|
607
613
|
|
608
|
-
|
614
|
+
protected createSharedSlotBySlot(slot: Slot): YMap<any> {
|
609
615
|
const sharedSlot = new YMap()
|
610
616
|
sharedSlot.set('schema', slot.schema)
|
611
617
|
sharedSlot.set('state', slot.state)
|
@@ -634,7 +640,7 @@ export class Collaborate implements History {
|
|
634
640
|
return sharedSlot
|
635
641
|
}
|
636
642
|
|
637
|
-
|
643
|
+
protected createComponentBySharedComponent(yMap: YMap<any>, canInsertInlineComponent: boolean): ComponentInstance {
|
638
644
|
const sharedSlots = yMap.get('slots') as YArray<YMap<any>>
|
639
645
|
const slots: Slot[] = []
|
640
646
|
sharedSlots.forEach(sharedSlot => {
|
@@ -643,7 +649,7 @@ export class Collaborate implements History {
|
|
643
649
|
})
|
644
650
|
const name = yMap.get('name')
|
645
651
|
const state = yMap.get('state')
|
646
|
-
const instance = this.
|
652
|
+
const instance = this.factory.createComponentByData(name, {
|
647
653
|
state,
|
648
654
|
slots
|
649
655
|
})
|
@@ -662,11 +668,11 @@ export class Collaborate implements History {
|
|
662
668
|
return createUnknownComponent(name, canInsertInlineComponent).createInstance(this.starter)
|
663
669
|
}
|
664
670
|
|
665
|
-
|
671
|
+
protected createSlotBySharedSlot(sharedSlot: YMap<any>): Slot {
|
666
672
|
const content = sharedSlot.get('content') as YText
|
667
673
|
const delta = content.toDelta()
|
668
674
|
|
669
|
-
const slot = this.
|
675
|
+
const slot = this.factory.createSlot({
|
670
676
|
schema: sharedSlot.get('schema'),
|
671
677
|
state: sharedSlot.get('state'),
|
672
678
|
formats: {},
|
@@ -676,12 +682,12 @@ export class Collaborate implements History {
|
|
676
682
|
for (const action of delta) {
|
677
683
|
if (action.insert) {
|
678
684
|
if (typeof action.insert === 'string') {
|
679
|
-
slot.insert(action.insert, remoteFormatsToLocal(this.
|
685
|
+
slot.insert(action.insert, remoteFormatsToLocal(this.factory, action.attributes))
|
680
686
|
} else {
|
681
687
|
const sharedComponent = action.insert as YMap<any>
|
682
688
|
const canInsertInlineComponent = slot.schema.includes(ContentType.InlineComponent)
|
683
689
|
const component = this.createComponentBySharedComponent(sharedComponent, canInsertInlineComponent)
|
684
|
-
slot.insert(component, remoteFormatsToLocal(this.
|
690
|
+
slot.insert(component, remoteFormatsToLocal(this.factory, action.attributes))
|
685
691
|
this.syncSlots(sharedComponent.get('slots'), component)
|
686
692
|
this.syncComponent(sharedComponent, component)
|
687
693
|
}
|
@@ -692,7 +698,7 @@ export class Collaborate implements History {
|
|
692
698
|
return slot
|
693
699
|
}
|
694
700
|
|
695
|
-
|
701
|
+
protected cleanSubscriptionsBySlot(slot: Slot) {
|
696
702
|
this.contentMap.delete(slot);
|
697
703
|
[this.contentSyncCaches.get(slot), this.slotStateSyncCaches.get(slot)].forEach(fn => {
|
698
704
|
if (fn) {
|
@@ -706,7 +712,7 @@ export class Collaborate implements History {
|
|
706
712
|
})
|
707
713
|
}
|
708
714
|
|
709
|
-
|
715
|
+
protected cleanSubscriptionsByComponent(component: ComponentInstance) {
|
710
716
|
[this.slotsSyncCaches.get(component), this.componentStateSyncCaches.get(component)].forEach(fn => {
|
711
717
|
if (fn) {
|
712
718
|
fn()
|
@@ -718,11 +724,11 @@ export class Collaborate implements History {
|
|
718
724
|
}
|
719
725
|
}
|
720
726
|
|
721
|
-
function remoteFormatsToLocal(
|
727
|
+
function remoteFormatsToLocal(factory: Factory, attrs?: any,) {
|
722
728
|
const formats: Formats = []
|
723
729
|
if (attrs) {
|
724
730
|
Object.keys(attrs).forEach(key => {
|
725
|
-
const formatter =
|
731
|
+
const formatter = factory.getFormatter(key)
|
726
732
|
if (formatter) {
|
727
733
|
formats.push([formatter, attrs[key]])
|
728
734
|
}
|