@textbus/collaborate 4.0.0-alpha.0 → 4.0.0-alpha.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ import { Module } from '@textbus/core';
2
+ import { Provider } from '@viewfly/core';
3
+ export declare class CollaborateModule implements Module {
4
+ providers: Provider[];
5
+ }
@@ -1,6 +1,6 @@
1
- import { makeError, HISTORY_STACK_SIZE, ChangeOrigin, Slot, RootComponentRef, Scheduler, Registry, Selection, History } from '@textbus/core';
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
- const collaborateModule = {
779
- providers: [
780
- Collaborate,
781
- {
782
- provide: History,
783
- useExisting: Collaborate
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, CustomUndoManagerConfig, collaborateModule };
790
+ export { Collaborate, CollaborateModule, CustomUndoManagerConfig };
package/bundles/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var core = require('@textbus/core');
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
- di.Injectable(),
759
- __param(0, di.Inject(core.HISTORY_STACK_SIZE)),
760
- __param(5, di.Optional()),
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
- const collaborateModule = {
781
- providers: [
782
- exports.Collaborate,
783
- {
784
- provide: core.History,
785
- useExisting: exports.Collaborate
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;
@@ -1,3 +1,2 @@
1
- import { Module } from '@textbus/core';
2
1
  export * from './collaborate';
3
- export declare const collaborateModule: Module;
2
+ export * from './collaborate-module';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/collaborate",
3
- "version": "4.0.0-alpha.0",
3
+ "version": "4.0.0-alpha.5",
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.0",
29
+ "@textbus/core": "^4.0.0-alpha.5",
30
+ "@viewfly/core": "^0.2.4",
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": "cf4fd289b73bc777124a32fe42bb58eba05a34f1"
53
+ "gitHead": "072831527fe07e7c21a14f3141d55b24d321a690"
54
54
  }