@textbus/collaborate 4.0.0-alpha.1 → 4.0.0-alpha.11
Sign up to get free protection for your applications and to get access to all the features.
- package/bundles/collaborate-module.d.ts +5 -0
- package/bundles/index.esm.js +14 -12
- package/bundles/index.js +17 -15
- package/bundles/public-api.d.ts +1 -2
- package/package.json +4 -4
package/bundles/index.esm.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import { Injectable, Inject, Optional } from '@tanbo/di';
|
1
|
+
import { Injectable, Inject, Optional } from '@viewfly/core';
|
3
2
|
import { Subject, map, filter } from '@tanbo/stream';
|
3
|
+
import { makeError, HISTORY_STACK_SIZE, ChangeOrigin, Slot, RootComponentRef, Scheduler, Registry, Selection, History } from '@textbus/core';
|
4
4
|
import { Doc, UndoManager, Array, createAbsolutePositionFromRelativePosition, createRelativePositionFromTypeIndex, Map, Text } from 'yjs';
|
5
5
|
|
6
6
|
/******************************************************************************
|
@@ -775,14 +775,16 @@ function remoteFormatsToLocal(registry, attrs) {
|
|
775
775
|
return formats;
|
776
776
|
}
|
777
777
|
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
778
|
+
class CollaborateModule {
|
779
|
+
constructor() {
|
780
|
+
this.providers = [
|
781
|
+
Collaborate,
|
782
|
+
{
|
783
|
+
provide: History,
|
784
|
+
useExisting: Collaborate
|
785
|
+
}
|
786
|
+
];
|
787
|
+
}
|
788
|
+
}
|
787
789
|
|
788
|
-
export { Collaborate,
|
790
|
+
export { Collaborate, CollaborateModule, CustomUndoManagerConfig };
|
package/bundles/index.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
var core = require('@
|
4
|
-
var di = require('@tanbo/di');
|
3
|
+
var core$1 = require('@viewfly/core');
|
5
4
|
var stream = require('@tanbo/stream');
|
5
|
+
var core = require('@textbus/core');
|
6
6
|
var yjs = require('yjs');
|
7
7
|
|
8
8
|
/******************************************************************************
|
@@ -755,9 +755,9 @@ exports.Collaborate = class Collaborate {
|
|
755
755
|
}
|
756
756
|
};
|
757
757
|
exports.Collaborate = __decorate([
|
758
|
-
|
759
|
-
__param(0,
|
760
|
-
__param(5,
|
758
|
+
core$1.Injectable(),
|
759
|
+
__param(0, core$1.Inject(core.HISTORY_STACK_SIZE)),
|
760
|
+
__param(5, core$1.Optional()),
|
761
761
|
__metadata("design:paramtypes", [Number, core.RootComponentRef,
|
762
762
|
core.Scheduler,
|
763
763
|
core.Registry,
|
@@ -777,15 +777,17 @@ function remoteFormatsToLocal(registry, attrs) {
|
|
777
777
|
return formats;
|
778
778
|
}
|
779
779
|
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
|
788
|
-
|
780
|
+
class CollaborateModule {
|
781
|
+
constructor() {
|
782
|
+
this.providers = [
|
783
|
+
exports.Collaborate,
|
784
|
+
{
|
785
|
+
provide: core.History,
|
786
|
+
useExisting: exports.Collaborate
|
787
|
+
}
|
788
|
+
];
|
789
|
+
}
|
790
|
+
}
|
789
791
|
|
792
|
+
exports.CollaborateModule = CollaborateModule;
|
790
793
|
exports.CustomUndoManagerConfig = CustomUndoManagerConfig;
|
791
|
-
exports.collaborateModule = collaborateModule;
|
package/bundles/public-api.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@textbus/collaborate",
|
3
|
-
"version": "4.0.0-alpha.
|
3
|
+
"version": "4.0.0-alpha.11",
|
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/index.js",
|
6
6
|
"module": "./bundles/index.esm.js",
|
@@ -25,9 +25,9 @@
|
|
25
25
|
"typescript editor"
|
26
26
|
],
|
27
27
|
"dependencies": {
|
28
|
-
"@tanbo/di": "^1.1.5",
|
29
28
|
"@tanbo/stream": "^1.2.0",
|
30
|
-
"@textbus/core": "^4.0.0-alpha.
|
29
|
+
"@textbus/core": "^4.0.0-alpha.11",
|
30
|
+
"@viewfly/core": "^0.3.0",
|
31
31
|
"reflect-metadata": "^0.1.13",
|
32
32
|
"y-protocols": "^1.0.5",
|
33
33
|
"yjs": "^13.6.7"
|
@@ -50,5 +50,5 @@
|
|
50
50
|
"bugs": {
|
51
51
|
"url": "https://github.com/textbus/textbus.git/issues"
|
52
52
|
},
|
53
|
-
"gitHead": "
|
53
|
+
"gitHead": "8940269cbb7aaac5a5b0d9dc4936896ab210ed80"
|
54
54
|
}
|