@textbus/collaborate 3.0.0-alpha.1 → 3.0.0-alpha.10
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 +4 -4
- package/bundles/collaborate.js +60 -32
- package/package.json +4 -4
- package/src/collaborate-cursor.ts +0 -293
- package/src/collaborate.ts +0 -738
- package/src/public-api.ts +0 -18
- package/src/unknown.component.ts +0 -22
- package/tsconfig-build.json +0 -28
package/src/public-api.ts
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
import { History, Module } from '@textbus/core'
|
2
|
-
|
3
|
-
import { Collaborate } from './collaborate'
|
4
|
-
import { CollaborateCursor } from './collaborate-cursor'
|
5
|
-
|
6
|
-
export * from './collaborate'
|
7
|
-
export * from './collaborate-cursor'
|
8
|
-
|
9
|
-
export const collaborateModule: Module = {
|
10
|
-
providers: [
|
11
|
-
Collaborate,
|
12
|
-
CollaborateCursor,
|
13
|
-
{
|
14
|
-
provide: History,
|
15
|
-
useClass: Collaborate
|
16
|
-
}
|
17
|
-
]
|
18
|
-
}
|
package/src/unknown.component.ts
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
import { ContentType, defineComponent, VElement } from '@textbus/core'
|
2
|
-
|
3
|
-
export function createUnknownComponent(factoryName: string, canInsertInlineComponent: boolean) {
|
4
|
-
const unknownComponent = defineComponent({
|
5
|
-
type: canInsertInlineComponent ? ContentType.InlineComponent : ContentType.BlockComponent,
|
6
|
-
name: 'UnknownComponent',
|
7
|
-
setup() {
|
8
|
-
console.error(`cannot find component factory \`${factoryName}\`.`)
|
9
|
-
return {
|
10
|
-
render() {
|
11
|
-
return VElement.createElement('textbus-unknown-component', {
|
12
|
-
style: {
|
13
|
-
display: canInsertInlineComponent ? 'inline' : 'block',
|
14
|
-
color: '#f00'
|
15
|
-
}
|
16
|
-
}, unknownComponent.name)
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}
|
20
|
-
})
|
21
|
-
return unknownComponent
|
22
|
-
}
|
package/tsconfig-build.json
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"compilerOptions": {
|
3
|
-
"declaration": true,
|
4
|
-
"useDefineForClassFields": false,
|
5
|
-
"emitDecoratorMetadata": true,
|
6
|
-
"experimentalDecorators": true,
|
7
|
-
"allowSyntheticDefaultImports": true,
|
8
|
-
"lib": ["esnext", "dom"],
|
9
|
-
"target": "es6",
|
10
|
-
"strict": true,
|
11
|
-
"module": "es2020",
|
12
|
-
"moduleResolution": "node",
|
13
|
-
"inlineSourceMap": true,
|
14
|
-
"inlineSources": true,
|
15
|
-
"noImplicitAny": false,
|
16
|
-
"suppressImplicitAnyIndexErrors": true,
|
17
|
-
"outDir": "bundles/",
|
18
|
-
"downlevelIteration": true,
|
19
|
-
"jsx": "react",
|
20
|
-
"jsxFactory": "VElement.createElement",
|
21
|
-
"paths": {
|
22
|
-
"@textbus/collaborate": ["./src/public-api.ts"],
|
23
|
-
}
|
24
|
-
},
|
25
|
-
"include": [
|
26
|
-
"src/"
|
27
|
-
]
|
28
|
-
}
|