@textbus/collaborate 2.5.1 → 3.0.0-alpah.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -1
- package/bundles/collaborate.d.ts +7 -8
- package/bundles/collaborate.js +78 -62
- package/package.json +4 -4
package/README.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
Textbus
|
2
2
|
=====================
|
3
3
|
|
4
|
-
Textbus 是一套用于构建富交互的富文本编辑框架。和大多数富文本编辑器不同的是,Textbus 以组件为核心,格式为辅助,并大幅简化了富文本编辑器开发中常见
|
4
|
+
Textbus 是一套用于构建富交互的富文本编辑框架。和大多数富文本编辑器不同的是,Textbus 以组件为核心,格式为辅助,并大幅简化了富文本编辑器开发中常见
|
5
|
+
API,且提供了更高的抽象层,使 Textbus 不仅易于上手,同时还能驱动复杂的富文本应用。
|
5
6
|
|
6
7
|
本项目为 Textbus 协作编辑实现,提供了多人在线协作编辑能力的支持。
|
7
8
|
|
package/bundles/collaborate.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Observable, Subject, Subscription } from '@tanbo/stream';
|
2
|
-
import { ComponentInstance, Controller,
|
2
|
+
import { ComponentInstance, Controller, Factory, History, RootComponentRef, Scheduler, Selection, SelectionPaths, Slot, Starter } from '@textbus/core';
|
3
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
5
|
interface CursorPosition {
|
@@ -25,8 +25,7 @@ export declare class Collaborate implements History {
|
|
25
25
|
protected collaborateCursor: CollaborateCursor;
|
26
26
|
protected controller: Controller;
|
27
27
|
protected scheduler: Scheduler;
|
28
|
-
protected
|
29
|
-
protected registry: Registry;
|
28
|
+
protected factory: Factory;
|
30
29
|
protected selection: Selection;
|
31
30
|
protected starter: Starter;
|
32
31
|
onSelectionChange: Observable<SelectionPaths>;
|
@@ -52,7 +51,7 @@ export declare class Collaborate implements History {
|
|
52
51
|
protected contentMap: ContentMap;
|
53
52
|
protected updateRemoteActions: Array<UpdateItem>;
|
54
53
|
protected noRecord: {};
|
55
|
-
constructor(stackSize: number, rootComponentRef: RootComponentRef, collaborateCursor: CollaborateCursor, controller: Controller, scheduler: Scheduler,
|
54
|
+
constructor(stackSize: number, rootComponentRef: RootComponentRef, collaborateCursor: CollaborateCursor, controller: Controller, scheduler: Scheduler, factory: Factory, selection: Selection, starter: Starter);
|
56
55
|
listen(): void;
|
57
56
|
updateRemoteSelection(paths: RemoteSelection[]): void;
|
58
57
|
back(): void;
|
@@ -62,10 +61,10 @@ export declare class Collaborate implements History {
|
|
62
61
|
protected syncRootComponent(root: YMap<any>, rootComponent: ComponentInstance): void;
|
63
62
|
protected restoreCursorLocation(position: CursorPosition): void;
|
64
63
|
protected getRelativeCursorLocation(): CursorPosition | null;
|
65
|
-
protected
|
66
|
-
protected
|
67
|
-
protected
|
68
|
-
protected
|
64
|
+
protected syncSlotContent(content: YText, slot: Slot): void;
|
65
|
+
protected syncSlotState(remoteSlot: YMap<any>, slot: Slot): void;
|
66
|
+
protected syncComponentSlots(remoteSlots: YArray<any>, component: ComponentInstance): void;
|
67
|
+
protected syncComponentState(remoteComponent: YMap<any>, component: ComponentInstance): void;
|
69
68
|
protected runLocalUpdate(fn: () => void, record?: boolean): void;
|
70
69
|
protected runRemoteUpdate(tr: Transaction, fn: () => void): void;
|
71
70
|
protected createSharedComponentByComponent(component: ComponentInstance): YMap<any>;
|
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,
|
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();
|
@@ -220,13 +219,13 @@ let Collaborate = class Collaborate {
|
|
220
219
|
rootComponent.slots.clean();
|
221
220
|
slots.forEach(sharedSlot => {
|
222
221
|
const slot = this.createSlotBySharedSlot(sharedSlot);
|
223
|
-
this.
|
224
|
-
this.
|
222
|
+
this.syncSlotContent(sharedSlot.get('content'), slot);
|
223
|
+
this.syncSlotState(sharedSlot, slot);
|
225
224
|
rootComponent.slots.insert(slot);
|
226
225
|
});
|
227
226
|
}
|
228
|
-
this.
|
229
|
-
this.
|
227
|
+
this.syncComponentState(root, rootComponent);
|
228
|
+
this.syncComponentSlots(slots, rootComponent);
|
230
229
|
}
|
231
230
|
restoreCursorLocation(position) {
|
232
231
|
const anchorPosition = createAbsolutePositionFromRelativePosition(position.anchor, this.yDoc);
|
@@ -261,15 +260,30 @@ let Collaborate = class Collaborate {
|
|
261
260
|
}
|
262
261
|
return null;
|
263
262
|
}
|
264
|
-
|
263
|
+
syncSlotContent(content, slot) {
|
265
264
|
this.contentMap.set(slot, content);
|
266
265
|
const syncRemote = (ev, tr) => {
|
267
266
|
this.runRemoteUpdate(tr, () => {
|
268
267
|
slot.retain(0);
|
268
|
+
ev.keysChanged.forEach(key => {
|
269
|
+
const updateType = ev.keys.get(key).action;
|
270
|
+
if (updateType === 'update' || updateType === 'add') {
|
271
|
+
const attribute = this.factory.getAttribute(key);
|
272
|
+
if (attribute) {
|
273
|
+
slot.setAttribute(attribute, content.getAttribute(key));
|
274
|
+
}
|
275
|
+
}
|
276
|
+
else if (updateType === 'delete') {
|
277
|
+
const attribute = this.factory.getAttribute(key);
|
278
|
+
if (attribute) {
|
279
|
+
slot.removeAttribute(attribute);
|
280
|
+
}
|
281
|
+
}
|
282
|
+
});
|
269
283
|
ev.delta.forEach(action => {
|
270
284
|
if (Reflect.has(action, 'retain')) {
|
271
285
|
if (action.attributes) {
|
272
|
-
const formats = remoteFormatsToLocal(this.
|
286
|
+
const formats = remoteFormatsToLocal(this.factory, action.attributes);
|
273
287
|
if (formats.length) {
|
274
288
|
slot.retain(action.retain, formats);
|
275
289
|
}
|
@@ -284,14 +298,14 @@ let Collaborate = class Collaborate {
|
|
284
298
|
let length = 1;
|
285
299
|
if (typeof action.insert === 'string') {
|
286
300
|
length = action.insert.length;
|
287
|
-
slot.insert(action.insert, remoteFormatsToLocal(this.
|
301
|
+
slot.insert(action.insert, remoteFormatsToLocal(this.factory, action.attributes));
|
288
302
|
}
|
289
303
|
else {
|
290
304
|
const sharedComponent = action.insert;
|
291
305
|
const canInsertInlineComponent = slot.schema.includes(ContentType.InlineComponent);
|
292
306
|
const component = this.createComponentBySharedComponent(sharedComponent, canInsertInlineComponent);
|
293
|
-
this.
|
294
|
-
this.
|
307
|
+
this.syncComponentSlots(sharedComponent.get('slots'), component);
|
308
|
+
this.syncComponentState(sharedComponent, component);
|
295
309
|
slot.insert(component);
|
296
310
|
}
|
297
311
|
if (this.selection.isSelected) {
|
@@ -316,21 +330,13 @@ let Collaborate = class Collaborate {
|
|
316
330
|
}
|
317
331
|
}
|
318
332
|
}
|
319
|
-
else if (action.attributes) {
|
320
|
-
slot.updateState(draft => {
|
321
|
-
if (typeof draft === 'object' && draft !== null) {
|
322
|
-
Object.assign(draft, action.attributes);
|
323
|
-
}
|
324
|
-
else {
|
325
|
-
return action.attributes;
|
326
|
-
}
|
327
|
-
});
|
328
|
-
}
|
329
333
|
});
|
330
334
|
});
|
331
335
|
};
|
332
336
|
content.observe(syncRemote);
|
333
|
-
const sub = slot.onContentChange.
|
337
|
+
const sub = slot.onContentChange.pipe(filter(() => {
|
338
|
+
return !this.scheduler.ignoreChanges;
|
339
|
+
})).subscribe(actions => {
|
334
340
|
this.runLocalUpdate(() => {
|
335
341
|
var _a;
|
336
342
|
let offset = 0;
|
@@ -342,7 +348,7 @@ let Collaborate = class Collaborate {
|
|
342
348
|
const keys = Object.keys(formats);
|
343
349
|
let length = keys.length;
|
344
350
|
keys.forEach(key => {
|
345
|
-
const formatter = this.
|
351
|
+
const formatter = this.factory.getFormatter(key);
|
346
352
|
if (!formatter) {
|
347
353
|
length--;
|
348
354
|
Reflect.deleteProperty(formats, key);
|
@@ -382,6 +388,12 @@ let Collaborate = class Collaborate {
|
|
382
388
|
content.insert(0, '\n', (_a = delta[0]) === null || _a === void 0 ? void 0 : _a.attributes);
|
383
389
|
}
|
384
390
|
}
|
391
|
+
else if (action.type === 'attrSet') {
|
392
|
+
content.setAttribute(action.name, action.value);
|
393
|
+
}
|
394
|
+
else if (action.type === 'attrRemove') {
|
395
|
+
content.removeAttribute(action.name);
|
396
|
+
}
|
385
397
|
}
|
386
398
|
});
|
387
399
|
});
|
@@ -395,7 +407,7 @@ let Collaborate = class Collaborate {
|
|
395
407
|
sub.unsubscribe();
|
396
408
|
});
|
397
409
|
}
|
398
|
-
|
410
|
+
syncSlotState(remoteSlot, slot) {
|
399
411
|
const syncRemote = (ev, tr) => {
|
400
412
|
this.runRemoteUpdate(tr, () => {
|
401
413
|
ev.keysChanged.forEach(key => {
|
@@ -414,7 +426,9 @@ let Collaborate = class Collaborate {
|
|
414
426
|
});
|
415
427
|
};
|
416
428
|
remoteSlot.observe(syncRemote);
|
417
|
-
const sub = slot.onStateChange.
|
429
|
+
const sub = slot.onStateChange.pipe(filter(() => {
|
430
|
+
return !this.scheduler.ignoreChanges;
|
431
|
+
})).subscribe(change => {
|
418
432
|
this.runLocalUpdate(() => {
|
419
433
|
remoteSlot.set('state', change.newState);
|
420
434
|
}, change.record);
|
@@ -424,7 +438,7 @@ let Collaborate = class Collaborate {
|
|
424
438
|
sub.unsubscribe();
|
425
439
|
});
|
426
440
|
}
|
427
|
-
|
441
|
+
syncComponentSlots(remoteSlots, component) {
|
428
442
|
const slots = component.slots;
|
429
443
|
const syncRemote = (ev, tr) => {
|
430
444
|
this.runRemoteUpdate(tr, () => {
|
@@ -439,8 +453,8 @@ let Collaborate = class Collaborate {
|
|
439
453
|
action.insert.forEach(item => {
|
440
454
|
const slot = this.createSlotBySharedSlot(item);
|
441
455
|
slots.insert(slot);
|
442
|
-
this.
|
443
|
-
this.
|
456
|
+
this.syncSlotContent(item.get('content'), slot);
|
457
|
+
this.syncSlotState(item, slot);
|
444
458
|
index++;
|
445
459
|
});
|
446
460
|
}
|
@@ -452,7 +466,9 @@ let Collaborate = class Collaborate {
|
|
452
466
|
});
|
453
467
|
};
|
454
468
|
remoteSlots.observe(syncRemote);
|
455
|
-
const sub = slots.onChange.
|
469
|
+
const sub = slots.onChange.pipe(filter(() => {
|
470
|
+
return !this.scheduler.ignoreChanges;
|
471
|
+
})).subscribe(operations => {
|
456
472
|
this.runLocalUpdate(() => {
|
457
473
|
const applyActions = operations.apply;
|
458
474
|
let index;
|
@@ -481,7 +497,7 @@ let Collaborate = class Collaborate {
|
|
481
497
|
sub.unsubscribe();
|
482
498
|
});
|
483
499
|
}
|
484
|
-
|
500
|
+
syncComponentState(remoteComponent, component) {
|
485
501
|
const syncRemote = (ev, tr) => {
|
486
502
|
this.runRemoteUpdate(tr, () => {
|
487
503
|
ev.keysChanged.forEach(key => {
|
@@ -500,7 +516,9 @@ let Collaborate = class Collaborate {
|
|
500
516
|
});
|
501
517
|
};
|
502
518
|
remoteComponent.observe(syncRemote);
|
503
|
-
const sub = component.onStateChange.
|
519
|
+
const sub = component.onStateChange.pipe(filter(() => {
|
520
|
+
return !this.scheduler.ignoreChanges;
|
521
|
+
})).subscribe(change => {
|
504
522
|
this.runLocalUpdate(() => {
|
505
523
|
remoteComponent.set('state', change.newState);
|
506
524
|
}, change.record);
|
@@ -542,8 +560,8 @@ let Collaborate = class Collaborate {
|
|
542
560
|
const sharedSlot = this.createSharedSlotBySlot(slot);
|
543
561
|
sharedSlots.push([sharedSlot]);
|
544
562
|
});
|
545
|
-
this.
|
546
|
-
this.
|
563
|
+
this.syncComponentSlots(sharedSlots, component);
|
564
|
+
this.syncComponentState(sharedComponent, component);
|
547
565
|
return sharedComponent;
|
548
566
|
}
|
549
567
|
createSharedSlotBySlot(slot) {
|
@@ -572,8 +590,11 @@ let Collaborate = class Collaborate {
|
|
572
590
|
}
|
573
591
|
offset += i.insert.length;
|
574
592
|
});
|
575
|
-
|
576
|
-
|
593
|
+
slot.getAttributes().forEach(item => {
|
594
|
+
sharedContent.setAttribute(item[0].name, item[1]);
|
595
|
+
});
|
596
|
+
this.syncSlotContent(sharedContent, slot);
|
597
|
+
this.syncSlotState(sharedSlot, slot);
|
577
598
|
return sharedSlot;
|
578
599
|
}
|
579
600
|
createComponentBySharedComponent(yMap, canInsertInlineComponent) {
|
@@ -585,7 +606,7 @@ let Collaborate = class Collaborate {
|
|
585
606
|
});
|
586
607
|
const name = yMap.get('name');
|
587
608
|
const state = yMap.get('state');
|
588
|
-
const instance = this.
|
609
|
+
const instance = this.factory.createComponentByData(name, {
|
589
610
|
state,
|
590
611
|
slots
|
591
612
|
});
|
@@ -596,8 +617,8 @@ let Collaborate = class Collaborate {
|
|
596
617
|
sharedSlot = this.createSharedSlotBySlot(slot);
|
597
618
|
sharedSlots.push([sharedSlot]);
|
598
619
|
}
|
599
|
-
this.
|
600
|
-
this.
|
620
|
+
this.syncSlotState(sharedSlot, slot);
|
621
|
+
this.syncSlotContent(sharedSlot.get('content'), slot);
|
601
622
|
});
|
602
623
|
return instance;
|
603
624
|
}
|
@@ -606,37 +627,33 @@ let Collaborate = class Collaborate {
|
|
606
627
|
createSlotBySharedSlot(sharedSlot) {
|
607
628
|
const content = sharedSlot.get('content');
|
608
629
|
const delta = content.toDelta();
|
609
|
-
const slot = this.
|
630
|
+
const slot = this.factory.createSlot({
|
610
631
|
schema: sharedSlot.get('schema'),
|
611
632
|
state: sharedSlot.get('state'),
|
633
|
+
attributes: {},
|
612
634
|
formats: {},
|
613
635
|
content: []
|
614
636
|
});
|
637
|
+
const attrs = content.getAttributes();
|
638
|
+
Object.keys(attrs).forEach(key => {
|
639
|
+
const attribute = this.factory.getAttribute(key);
|
640
|
+
if (attribute) {
|
641
|
+
slot.setAttribute(attribute, attrs[key]);
|
642
|
+
}
|
643
|
+
});
|
615
644
|
for (const action of delta) {
|
616
645
|
if (action.insert) {
|
617
646
|
if (typeof action.insert === 'string') {
|
618
|
-
const
|
619
|
-
const formats = remoteFormatsToLocal(this.registry, action.attributes).filter(item => {
|
620
|
-
if (item[0].type === FormatType.Block) {
|
621
|
-
blockFormats.push(item);
|
622
|
-
return false;
|
623
|
-
}
|
624
|
-
return true;
|
625
|
-
});
|
647
|
+
const formats = remoteFormatsToLocal(this.factory, action.attributes);
|
626
648
|
slot.insert(action.insert, formats);
|
627
|
-
const index = slot.index;
|
628
|
-
blockFormats.forEach(item => {
|
629
|
-
slot.setAttribute(item[0], item[1]);
|
630
|
-
});
|
631
|
-
slot.retain(index);
|
632
649
|
}
|
633
650
|
else {
|
634
651
|
const sharedComponent = action.insert;
|
635
652
|
const canInsertInlineComponent = slot.schema.includes(ContentType.InlineComponent);
|
636
653
|
const component = this.createComponentBySharedComponent(sharedComponent, canInsertInlineComponent);
|
637
|
-
slot.insert(component, remoteFormatsToLocal(this.
|
638
|
-
this.
|
639
|
-
this.
|
654
|
+
slot.insert(component, remoteFormatsToLocal(this.factory, action.attributes));
|
655
|
+
this.syncComponentSlots(sharedComponent.get('slots'), component);
|
656
|
+
this.syncComponentState(sharedComponent, component);
|
640
657
|
}
|
641
658
|
}
|
642
659
|
else {
|
@@ -676,17 +693,16 @@ Collaborate = __decorate([
|
|
676
693
|
CollaborateCursor,
|
677
694
|
Controller,
|
678
695
|
Scheduler,
|
679
|
-
|
680
|
-
Registry,
|
696
|
+
Factory,
|
681
697
|
Selection,
|
682
698
|
Starter])
|
683
699
|
], Collaborate);
|
684
700
|
export { Collaborate };
|
685
|
-
function remoteFormatsToLocal(
|
701
|
+
function remoteFormatsToLocal(factory, attrs) {
|
686
702
|
const formats = [];
|
687
703
|
if (attrs) {
|
688
704
|
Object.keys(attrs).forEach(key => {
|
689
|
-
const formatter =
|
705
|
+
const formatter = factory.getFormatter(key);
|
690
706
|
if (formatter) {
|
691
707
|
formats.push([formatter, attrs[key]]);
|
692
708
|
}
|
@@ -694,4 +710,4 @@ function remoteFormatsToLocal(registry, attrs) {
|
|
694
710
|
}
|
695
711
|
return formats;
|
696
712
|
}
|
697
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGFib3JhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29sbGFib3JhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDOUMsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsR0FBRyxFQUFjLE9BQU8sRUFBZ0IsTUFBTSxlQUFlLENBQUE7QUFDckYsT0FBTyxFQUNMLFlBQVksRUFFWixXQUFXLEVBQ1gsVUFBVSxFQUNELFVBQVUsRUFFbkIsa0JBQWtCL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AgIH1cbiAgICAgICAgICAgIHVwZGF0ZXMucHVzaCh1cGRhdGUpXG4gICAgICAgICAgfVxuICAgICAgICAgIGlmICh1cGRhdGUucmVjb3JkID09PSBpdGVtLnJlY29yZCkge1xuICAgICAgICAgICAgdXBkYXRlLmFjdGlvbnMucHVzaChpdGVtLmFjdGlvbilcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdXBkYXRlID0ge1xuICAgICAgICAgICAgICByZWNvcmQ6IGl0ZW0ucmVjb3JkLFxuICAgICAgICAgICAgICBhY3Rpb25zOiBbaXRlbS5hY3Rpb25dXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB1cGRhdGVzLnB1c2godXBkYXRlKVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMudXBkYXRlUmVtb3RlQWN0aW9ucyA9IFtdXG5cbiAgICAgICAgZm9yIChjb25zdCBpdGVtIG9mIHVwZGF0ZXMpIHtcbiAgICAgICAgICB0aGlzLnlEb2MudHJhbnNhY3QoKCkgPT4ge1xuICAgICAgICAgICAgaXRlbS5hY3Rpb25zLmZvckVhY2goZm4gPT4ge1xuICAgICAgICAgICAgICBmbigpXG4gICAgICAgICAgICB9KVxuICAgICAgICAgIH0sIGl0ZW0ucmVjb3JkID8gdGhpcy55RG9jIDogdGhpcy5ub1JlY29yZClcbiAgICAgICAgfVxuICAgICAgfSlcbiAgICApXG4gICAgdGhpcy5zeW5jUm9vdENvbXBvbmVudChyb290LCByb290Q29tcG9uZW50KVxuICB9XG5cbiAgdXBkYXRlUmVtb3RlU2VsZWN0aW9uKHBhdGhzOiBSZW1vdGVTZWxlY3Rpb25bXSkge1xuICAgIHRoaXMuY29sbGFib3JhdGVDdXJzb3IuZHJhdyhwYXRocylcbiAgfVxuXG4gIGJhY2soKSB7XG4gICAgaWYgKHRoaXMuY2FuQmFjaykge1xuICAgICAgdGhpcy5tYW5hZ2VyPy51bmRvKClcbiAgICAgIHRoaXMuYmFja0V2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MoYWN0aW9uLCAncmV0YWluJykpIHtcbiAgICAgICAgICAgIGlmIChhY3Rpb24uYXR0cmlidXRlcykge1xuICAgICAgICAgICAgICBjb25zdCBmb3JtYXRzID0gcmVtb3RlRm9ybWF0c1RvTG9jYWwodGhpcy5yZWdpc3RyeSwgYWN0aW9uLmF0dHJpYnV0ZXMpXG4gICAgICAgICAgICAgIGlmIChmb3JtYXRzLmxlbmd0aCkge1xuICAgICAgICAgICAgICAgIHNsb3QucmV0YWluKGFjdGlvbi5yZXRhaW4hLCBmb3JtYXRzKVxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIHNsb3QucmV0YWluKHNsb3QuaW5kZXggKyBhY3Rpb24ucmV0YWluKVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgc2xvdC5yZXRhaW4oYWN0aW9uLnJldGFpbilcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9IGVsc2UgaWYgKGFjdGlvbi5pbnNlcnQpIHtcbiAgICAgICAgICAgIGNvbnN0IGluZGV4ID0gc2xvdC5pbmRleFxuICAgICAgICAgICAgbGV0IGxlbmd0aCA9IDFcbiAgICAgICAgICAgIGlmICh0eXBlb2YgYWN0aW9uLmluc2VydCA9PT0gJ3N0cmluZycpIHtcbiAgICAgICAgICAgICAgbGVuZ3RoID0gYWN0aW9uLmluc2VydC5sZW5ndGhcbiAgICAgICAgICAgICAgc2xvdC5pbnNlcnQoYWN0aW9uLmluc2VydCwgcmVtb3RlRm9ybWF0c1RvTG9jYWwodGhpcy5yZWdpc3RyeSwgYWN0aW9uLmF0dHJpYnV0ZXMpKVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgY29uc3Qgc2hhcmVkQ29tcG9uZW50ID0gYWN0aW9uLmluc2VydCBhcyBZTWFwPGFueT5cbiAgICAgICAgICAgICAgY29uc3QgY2FuSW5zZXJ0SW5saW5lQ29tcG9uZW50ID0gc2xvdC5zY2hlbWEuaW5jbHVkZXM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uLmF0dHJpYnV0ZXNcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSlcbiAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgICB9KVxuICAgIH1cbiAgICBjb250ZW50Lm9ic2VydmUoc3luY1JlbW90ZSlcblxuICAgIGNvbnN0IHN1YiA9IHNsb3Qub25Db250ZW50Q2hhbmdlLnN1YnNjcmliZShhY3Rpb25zID0+IHtcbiAgICAgIHRoaXMucnVuTG9jYWxVcGRhdGUoKCkgPT4ge1xuICAgICAgICBsZXQgb2Zmc2V0ID0gMFxuICAgICAgICBsZXQgbGVuZ3RoID0gMFxuICAgICAgICBmb3IgKGNvbnN0IGFjdGlvbiBvZiBhY3Rpb25zKSB7XG4gICAgICAgICAgaWYgKGFjdGlvbi50eXBlID09PSAncmV0YWluJykge1xuICAgICAgICAgICAgY29uc3QgZm9ybWF0cyA9IGFjdGlvbi5mb3JtYXRzXG4gICAgICAgICAgICBpZiAoZm9ybWF0cykge1xuICAgICAgICAgICAgICBjb25zdCBrZXlzID0gT2JqZWN0LmtleXMoZm9ybWF0cylcbiAgICAgICAgICAgICAgbGV0IGxlbmd0aCA9IGtleXMubGVuZ3RoXG4gICAgICAgICAgICAgIGtleXMuZm9yRWFjaChrZXkgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IGZvcm1hdHRlciA9IHRoaXMucmVnaXN0cnkuZ2V0Rm9ybWF0dGVyKGtleSlcbiAgICAgICAgICAgICAgICBpZiAoIWZvcm1hdHRlcikge1xuICAgICAgICAgICAgICAgICAgbGVuZ3RoLS1cbiAgICAgICAgICAgICAgICAgIFJlZmxlY3QuZGVsZXRlUHJvcGVydHkoZm9ybWF0cywga2V5KVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgaWYgKGxlbmd0aCkge1xuICAgICAgICAgICAgICAgIGNvbnRlbnQuZm9ybWF0KG9mZnNldCwgYWN0aW9uLm9mZnNldCwgZm9ybWF0cylcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgb2Zmc2V0ID0gYWN0aW9uLm9mZnNldFxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0gZWxzZSBpZiAoYWN0aW9uLnR5cGUgPT09ICdpbnNlcnQnKSB7XG4gICAgICAgICAgICBjb25zdCBkZWx0YSA9IGNvbnRlbnQudG9EZWx0YSgpXG4gICAgICAgICAgICBjb25zdCBpc0VtcHR5ID0gZGVsdGEubGVuZ3RoID09PSAxICYmIGRlbHRhWzBdLmluc2VydCA9PT0gU2xvdC5lbXB0eVBsYWNlaG9sZGVyXG4gICAgICAgICAgICBpZiAodHlwZW9mIGFjdGlvbi5jb250ZW50ID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICBsZW5ndGggPSBhY3Rpb24uY29udGVudC5sZW5ndGhcbiAgICAgICAgICAgICAgY29udGVudC5pbnNlcnQob2Zmc2V0LCBhY3Rpb24uY29udGVudCwgYWN0aW9uLmZvcm1hdHMgfHwge30pXG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICBsZW5ndGggPSAxXG4gICAgICAgICAgICAgIGNvbnN0IHNoYXJlZENvbXBvbmVudCA9IHRoaXMuY3JlYXRlU2hhcmVkQ29tcG9uZW50QnlDb21wb25lbnQoYWN0aW9uLnJlZiBhcyBDb21wb25lbnRJbnN0YW5jZSlcbiAgICAgICAgICAgICAgY29udGVudC5pbnNlcnRFbWJlZChvZmZzZXQsIHNoYXJlZENvbXBvbmVudCwgYWN0aW9uLmZvcm1hdHMgfHwge30pXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChpc0VtcHR5ICYmIG9mZnNldCA9PT0gMCkge1xuICAgICAgICAgICAgICBjb250ZW50LmRlbGV0ZShjb250ZW50Lmxlbmd0aCAtIDEsIDEpXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBvZmZzZXQgKz0gbGVuZ3RoXG4gICAgICAgICAgfSBlbHNlIGlmIChhY3Rpb24udHlwZSA9PT0gJ2RlbGV0ZScpIHtcbiAgICAgICAgICAgIGNvbnN0IGRlbHRhID0gY29udGVudC50b0RlbHRhKClcbiAgICAgICAgICAgIGlmIChjb250ZW50Lmxlbmd0aCkge1xuICAgICAgICAgICAgICBjb250ZW50LmRlbGV0ZShvZmZzZXQsIGFjdGlvbi5jb3VudClcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChjb250ZW50Lmxlbmd0aCA9PT0gMCkge1xuICAgICAgICAgICAgICBjb250ZW50Lmluc2VydCgwLCAnXFxuJywgZGVsdGFbMF0/LmF0dHJpYnV0ZXMpXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9KVxuICAgIH0pXG5cbiAgICBzdWIuYWRkKHNsb3Qub25DaGlsZENvbXBvbmVudFJlbW92ZS5zdWJzY3JpYmUoY29tcG9uZW50cyA9PiB7XG4gICAgICBjb21wb25lbnRzLmZvckVhY2goYyA9PiB7XG4gICAgICAgIHRoaXMuY2xlYW5TdWJzY3JpcHRpb25zQnlDb21wb25lbnQoYylcbiAgICAgIH0pXG4gICAgfSkpXG4gICAgdGhpcy5jb250ZW50U3luY0NhY2hlcy5zZXQoc2xvdCwgKCkgPT4ge1xuICAgICAgY29udGVudC51bm9ic2VydmUoc3luY1JlbW90ZSlcbiAgICAgIHN1Yi51bnN1YnNjcmliZSgpXG4gICAgfSlcbiAgfVxuXG4gIHByb3RlY3RlZCBzeW5jU2xvdChyZW1vdGVTbG90OiBZTWFwPGFueT4sIHNsb3Q6IFNsb3QpIHtcbiAgICBjb25zdCBzeW5jUmVtb3RlID0gKGV2LCB0cikgPT4ge1xuICAgICAgdGhpcy5ydW5SZW1vdGVVcGRhdGUodHIsICgpID0+IHtcbiAgICAgICAgZXYua2V5c0NoYW5nZWQuZm9yRWFjaChrZXkgPT4ge1xuICAgICAgICAgIGlmIChrZXkgPT09ICdzdGF0ZSc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uZ2Uuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgICAgY29uc3QgcGF0aHMgPSB0aGlzLnNlbGVjdGlvbi5nZXRQYXRocygpXG4gICAgICAgIHRoaXMuc2VsZWN0aW9uQ2hhbmdlRXZlbnQubmV4dChwYXRocylcbiAgICAgIH0pLFxuICAgICAgdGhpcy5zY2hlZHVsZXIub25Eb2NDaGFuZ2VkLnBpcGUoXG4gICAgICAgIG1hcChpdGVtID0+IHtcbiAgICAgICAgICByZXR1cm4gaXRlbS5maWx0ZXIoaSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gaS5mcm9tICE9PSBDaGFuZ2VPcmlnaW4uUmVtb3RlXG4gICAgICAgICAgfSlcbiAgICAgICAgfSksXG4gICAgICAgIGZpbHRlcihpdGVtID0+IHtcbiAgICAgICAgICByZXR1cm4gaXRlbS5sZW5ndGhcbiAgICAgICAgfSlcbiAgICAgICkuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgICAgY29uc3QgdXBkYXRlczogVXBkYXRlW10gPSBbXVxuXG4gICAgICAgIGxldCB1cGRhdGU6IFVwZGF0ZSB8IG51bGwgPSBudWxsXG5cbiAgICAgICAgZm9yIChjb25zdCBpdGVtIG9mIHRoaXMudXBkYXRlUmVtb3RlQWN0aW9ucykge1xuICAgICAgICAgIGlmICghdXBkYXRlKSB7XG4gICAgICAgICAgICB1cGRhdGUgPSB7XG4gICAgICAgICAgICAgIHJlY29yZDogaXRlbS5yZWNvcmQsXG4gICAgICAgICAgICAgIGFjdGlvbnM6IFtdXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB1cGRhdGVzLnB1c2godXBkYXRlKVxuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAodXBkYXRlLnJlY29yZCA9PT0gaXRlbS5yZWNvcmQpIHtcbiAgICAgICAgICAgIHVwZGF0ZS5hY3Rpb25zLnB1c2goaXRlbS5hY3Rpb24pXG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHVwZG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YgKCFmb3JtYXR0ZXIpIHtcbiAgICAgICAgICAgICAgICAgIGxlbmd0aC0tXG4gICAgICAgICAgICAgICAgICBSZWZsZWN0LmRlbGV0ZVByb3BlcnR5KGZvcm1hdHMsIGtleSlcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIGlmIChsZW5ndGgpIHtcbiAgICAgICAgICAgICAgICBjb250ZW50LmZvcm1hdChvZmZzZXQsIGFjdGlvbi5vZmZzZXQsIGZvcm1hdHMpXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIG9mZnNldCA9IGFjdGlvbi5vZmZzZXRcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9IGVsc2UgaWYgKGFjdGlvbi50eXBlID09PSAnaW5zZXJ0Jykge1xuICAgICAgICAgICAgY29uc3QgZGVsdGEgPSBjb250ZW50LnRvRGVsdGEoKVxuICAgICAgICAgICAgY29uc3QgaXNFbXB0eSA9IGRlbHRhLmxlbmd0aCA9PT0gMSAmJiBkZWx0YVswXS5pbnNlcnQgPT09IFNsb3QuZW1wdHlQbGFjZWhvbGRlclxuICAgICAgICAgICAgaWYgKHR5cGVvZiBhY3Rpb24uY29udGVudCA9PT0gJ3N0cmluZycpIHtcbiAgICAgICAgICAgICAgbGVuZ3RoID0gYWN0aW9uLmNvbnRlbnQubGVuZ3RoXG4gICAgICAgICAgICAgIGNvbnRlbnQuaW5zZXJ0KG9mZnNldCwgYWN0aW9uLmNvbnRlbnQsIGFjdGlvbi5mb3JtYXRzIHx8IHt9KVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgbGVuZ3RoID0gMVxuICAgICAgICAgICAgICBjb25zdCBzaGFyZWRDb21wb25lbnQgPSB0aGlzLmNyZWF0ZVNoYXJlZENvbXBvbmVudEJ5Q29tcG9uZW50KGFjdGlvbi5yZWYgYXMgQ29tcG9uZW50SW5zdGFuY2UpXG4gICAgICAgICAgICAgIGNvbnRlbnQuaW5zZXJ0RW1iZWQob2Zmc2V0LCBzaGFyZWRDb21wb25lbnQsIGFjdGlvbi5mb3JtYXRzIHx8IHt9KVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoaXNFbXB0eSAmJiBvZmZzZXQgPT09IDApIHtcbiAgICAgICAgICAgICAgY29udGVudC5kZWxldGUoY29udGVudC5sZW5ndGggLSAxLCAxKVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgb2Zmc2V0ICs9IGxlbmd0aFxuICAgICAgICAgIH0gZWxzZSBpZiAoYWN0aW9uLnR5cGUgPT09ICdkZWxldGUnKSB7XG4gICAgICAgICAgICBjb25zdCBkZWx0YSA9IGNvbnRlbnQudG9EZWx0YSgpXG4gICAgICAgICAgICBpZiAoY29udGVudC5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgY29udGVudC5kZWxldGUob2Zmc2V0LCBhY3Rpb24uY291bnQpXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoY29udGVudC5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgICAgY29udGVudC5pbnNlcnQoMCwgJ1xcbicsIGRlbHRhWzBdPy5hdHRyaWJ1dGVzKVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0gZWxzZSBpZiAoYWN0aW9uLnR5cGUgPT09ICdhdHRyU2V0Jykge1xuICAgICAgICAgICAgY29udGVudC5zZXRBdHRyaWJ1dGUoYWN0aW9uLm5hbWUsIGFjdGlvbi52YWx1ZSlcbiAgICAgICAgICB9IGVsc2UgaWYgKGFjdGlvbi50eXBlID09PSAnYXR0clJlbW92ZScpIHtcbiAgICAgICAgICAgIGNvbnRlbnQucmVtb3ZlQXR0cmlidXRlKGFjdGlvbi5uYW1lKVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfSlcbiAgICB9KVxuXG4gICAgc3ViLmFkZChzbG90Lm9uQ2hpbGRDb21wb25lbnRSZW1vdmUuc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pb24uaW5zZXJ0KSB7XG4gICAgICAgICAgICAoYWN0aW9uLmluc2VydCBhcyBBcnJheTxZTWFwPGFueT4+KS5mb3JFYWNoKGl0ZW0gPT4ge1xuICAgICAgICAgICAgICBjb25zdCBzbG90ID0gdGhpcy5jcmVhdGVTbG90QnlTaGFyZWRTbG90KGl0ZW0pXG4gICAgICAgICAgICAgIHNsb3RzLmluc2VydChzbG90KVxuICAgICAgICAgICAgICB0aGlzLnN5bmNTbG90Q29udGVudChpdGVtLmdldCgnY29udGVudCcpLCBzbG90KVxuICAgICAgICAgICAgICB0aGlzLnN5bmNTbG90U3RhdGUoaXRlbSwgc2xvdClcbiAgICAgICAgICAgICAgaW5kZXgrK1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICB9IGVsc2UgaWYgKGFjdGlvbi5kZWxldGUpIHtcbiAgICAgICAgICAgIHNsb3RzLnJldGFpbihpbmRleClcbiAgICAgICAgICAgIHNsb3RzLmRlbGV0ZShhY3Rpb24uZGVsZXRlKVxuICAgICAgICAgIH1cbiAgICAgICAgfSlcbiAgICAgIH0pXG4gICAgfVxuICAgIHJlbW90ZVNsb3RzLm9ic2VydmUoc3luY1JlbW90ZSlcblxuICAgIGNvbnN0IHN1YiA9IHNsb3RzLm9uQ2hhbmdlLnBpcGUoZmlsdGVyKCgpID0+IHtcbiAgICAgIHJldHVybiAhdGhpcy5zY2hlZHVsZXIuaWdub3JlQ2hhbmdlc1xuICAgIH0pKS5zdWJzY3JpYmUob3BlcmF0aW9ucyA9PiB7XG4gICAgICB0aGlzLnJ1bkxvY2FsVXBkYXRlKCgpID0+IHtcbiAgICAgICAgY29uc3QgYXBwbHlBY3Rpb25zID0gb3BlcmF0aW9ucy5hcHBseVxuICAgICAgICBsZXQgaW5kZXg6IG51bWJlclxuICAgICAgICBhcHBseUFjdGlvbnMuZm9yRWFjaChhY3Rpb24gPT4ge1xuICAgICAgICAgIGlmIChhY3Rpb24udHlwZSA9PT0gJ3JldGFpbicpIHtcbiAgIC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WF0cy5wdXNoKFtmb3JtYXR0ZXIsIGF0dHJzW2tleV1dKVxuICAgICAgfVxuICAgIH0pXG4gIH1cbiAgcmV0dXJuIGZvcm1hdHNcbn1cbiJdfQ==
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/collaborate",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.0-alpah.2",
|
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-alpah.2",
|
31
|
+
"@textbus/core": "^3.0.0-alpah.2",
|
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": "de8d7d2fee6012fa8203484298443b46dd62982c"
|
48
48
|
}
|