mirror of
https://github.com/cudr/slate-collaborative.git
synced 2024-10-27 20:34:06 +00:00
chore: fix import paths
This commit is contained in:
parent
dc67eb5d79
commit
c67a018e89
@ -1,13 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "@hiveteams/collab",
|
"name": "@hiveteams/collab",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0-alpha.4",
|
||||||
"main": "",
|
"main": "",
|
||||||
"private": true,
|
|
||||||
"description": "Slate collaborative editing",
|
"description": "Slate collaborative editing",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"format": "prettier --write",
|
"format": "prettier --write",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"build": "./node_modules/typescript/bin/tsc -p ./tsconfig.json"
|
"clean": "rm -rf ./build",
|
||||||
|
"build": "./node_modules/typescript/bin/tsc -p ./tsconfig.json",
|
||||||
|
"deploy": "npm run clean && npm run build && cp package.json ./build && npm publish build"
|
||||||
},
|
},
|
||||||
"author": "cudr",
|
"author": "cudr",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -2,7 +2,7 @@ import * as Automerge from 'automerge'
|
|||||||
|
|
||||||
import { Node } from 'slate'
|
import { Node } from 'slate'
|
||||||
|
|
||||||
import { toCollabAction, toSync, SyncDoc, CollabAction } from 'bridge'
|
import { toCollabAction, toSync, SyncDoc, CollabAction } from '../bridge/index'
|
||||||
import { debugCollabBackend } from './utils/debug'
|
import { debugCollabBackend } from './utils/debug'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -4,7 +4,7 @@ import { Node } from 'slate'
|
|||||||
import { Server } from 'http'
|
import { Server } from 'http'
|
||||||
import throttle from 'lodash/throttle'
|
import throttle from 'lodash/throttle'
|
||||||
import flatten from 'lodash/flatten'
|
import flatten from 'lodash/flatten'
|
||||||
import { SyncDoc, CollabAction, toJS } from 'bridge'
|
import { SyncDoc, CollabAction, toJS } from '../bridge/index'
|
||||||
import { debugCollabBackend } from './utils/debug'
|
import { debugCollabBackend } from './utils/debug'
|
||||||
import AutomergeBackend from './AutomergeBackend'
|
import AutomergeBackend from './AutomergeBackend'
|
||||||
import getActiveConnections from './utils/getActiveConnections'
|
import getActiveConnections from './utils/getActiveConnections'
|
||||||
|
@ -12,7 +12,7 @@ import {
|
|||||||
setCursor,
|
setCursor,
|
||||||
toSlateOp,
|
toSlateOp,
|
||||||
CursorData
|
CursorData
|
||||||
} from 'bridge'
|
} from '../bridge/index'
|
||||||
import { AutomergeEditor } from './interfaces'
|
import { AutomergeEditor } from './interfaces'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -4,7 +4,7 @@ import fs from 'fs'
|
|||||||
import isEqual from 'lodash/isEqual'
|
import isEqual from 'lodash/isEqual'
|
||||||
import { createEditor, Editor, Element, Node, Transforms } from 'slate'
|
import { createEditor, Editor, Element, Node, Transforms } from 'slate'
|
||||||
|
|
||||||
import { createDoc, SyncDoc, toJS, toSlateOp, getTarget } from 'bridge'
|
import { createDoc, SyncDoc, toJS, toSlateOp, getTarget } from '../bridge/index'
|
||||||
import {
|
import {
|
||||||
AutomergeCollaboration,
|
AutomergeCollaboration,
|
||||||
IAutomergeMetaData,
|
IAutomergeMetaData,
|
||||||
|
@ -2,7 +2,7 @@ import { useState, useCallback, useEffect, useMemo } from 'react'
|
|||||||
|
|
||||||
import { Text, Range, Path, NodeEntry } from 'slate'
|
import { Text, Range, Path, NodeEntry } from 'slate'
|
||||||
|
|
||||||
import { toJS, Cursor, Cursors } from 'bridge'
|
import { toJS, Cursor, Cursors } from '../bridge/index'
|
||||||
|
|
||||||
import useMounted from './useMounted'
|
import useMounted from './useMounted'
|
||||||
import { AutomergeEditor } from './interfaces'
|
import { AutomergeEditor } from './interfaces'
|
||||||
|
Loading…
Reference in New Issue
Block a user