Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Commit

Permalink
fix(example): rename slate-editor-components and slate-editor-utils #62
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielrtakeda committed Apr 20, 2018
1 parent 43b5931 commit a088706
Show file tree
Hide file tree
Showing 36 changed files with 36 additions and 37 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"scripts": {
"bootstrap": "lerna bootstrap",
"boot": "lerna bootstrap",
"test": "lerna run test",
"prepublish": "rimraf packages/**/dist",
"prepare": "lerna run prepare",
Expand Down
2 changes: 1 addition & 1 deletion packages/slate-editor-bold-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"react": "^16.2.0",
"slate-editor-utils": "^0.0.0"
"@slate-editor/utils": "^0.0.0"
},
"devDependencies": {
"babel-cli": "^6.14.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/slate-editor-bold-plugin/src/BoldButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import FontAwesome from 'react-fontawesome'
import classnames from 'classnames'

import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'
import { boldMarkStrategy, hasMark } from './BoldUtils'


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { keyboardEvent } from 'slate-editor-utils'
import { keyboardEvent } from '@slate-editor/utils'
import { boldMarkStrategy } from './BoldUtils'

const BoldKeyboardShortcut = (event, change) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/slate-editor-components/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "slate-editor-components",
"name": "@slate-editor/components",
"version": "0.0.0",
"description": "Components for slate-editor, a complete rich text editor based on SlateJS framework",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/slate-editor-components/src/button/Button.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { typeCheck } from 'slate-editor-utils'
import { typeCheck } from '@slate-editor/utils'

const Button = ({ children, id, onClick, className, style, type, ...props }) => (
<button
Expand Down
2 changes: 1 addition & 1 deletion packages/slate-editor-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"react-scripts": "^1.1.4",
"slate": "0.31.3",
"slate-editor-bold-plugin": "^0.0.0",
"slate-editor-components": "^0.0.0",
"@slate-editor/components": "^0.0.0",
"slate-react": "0.10.17"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import classnames from 'classnames'
import FontAwesome from 'react-fontawesome'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

import { alignmentMarkStrategy, hasMark, getMark } from './AlignmentUtils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import classnames from 'classnames'
import FontAwesome from 'react-fontawesome'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

import { alignmentMarkStrategy, hasMark, getMark } from './AlignmentUtils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import classnames from 'classnames'
import FontAwesome from 'react-fontawesome'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

import { alignmentMarkStrategy, hasMark, getMark } from './AlignmentUtils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import FontAwesome from 'react-fontawesome'
import classnames from 'classnames'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

import DraggableColorPicker from './DraggableColorPicker'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import FontAwesome from 'react-fontawesome'
import classnames from 'classnames'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

import { appendEmbed, hasEmbed } from './EmbedUtils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { keyboardEvent } from 'slate-editor-utils'
import { keyboardEvent } from '@slate-editor/utils'
import { appendEmbed } from './EmbedUtils'

const EmbedKeyboardShortcut = (event, change) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { keyboardEvent } from 'slate-editor-utils'
import { keyboardEvent } from '@slate-editor/utils'
import { fontSizeIncrease, fontSizeDecrease } from './FontSizeUtils'


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import FontAwesome from 'react-fontawesome'
import classnames from 'classnames'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

import { appendGrid, hasGrid } from './GridUtils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import FontAwesome from 'react-fontawesome'
import classnames from 'classnames'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

import { splitRow } from './GridUtils'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import FontAwesome from 'react-fontawesome'
import ReactS3Uploader from 'react-s3-uploader'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

import { insertInlineImage } from './ImageUtils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react'
import { updateInlineImage, deleteInlineImage } from './ImageUtils'
import { Modal, ModalButton, ModalContent, ModalForm } from 'slate-editor-components'
import { Modal, ModalButton, ModalContent, ModalForm } from '@slate-editor/components'

class ImageDataModal extends Component {
constructor(props) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

// FIXME: Needs to handle assets files to work with SSR
if (require('exenv').canUseDOM) require('./ImageEditLayer.css')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { keyboardEvent } from 'slate-editor-utils'
import { keyboardEvent } from '@slate-editor/utils'
import { forceClickUploadButton } from './ImageUtils'

const ImageKeyboardShortcut = (event, change, editor) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import FontAwesome from 'react-fontawesome'
import classnames from 'classnames'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

import { italicMarkStrategy, hasMark } from './ItalicUtils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { keyboardEvent } from 'slate-editor-utils'
import { keyboardEvent } from '@slate-editor/utils'
import { italicMarkStrategy } from './ItalicUtils'


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import FontAwesome from 'react-fontawesome'
import classnames from 'classnames'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

import { insertLinkStrategy, hasLinks } from './LinkUtils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react'
import { updateLinkStrategy, unlink } from './LinkUtils'
import { Modal, ModalButton, ModalContent, ModalForm } from 'slate-editor-components'
import { Modal, ModalButton, ModalContent, ModalForm } from '@slate-editor/components'

class LinkDataModal extends Component {
constructor(props) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { keyboardEvent } from 'slate-editor-utils'
import { keyboardEvent } from '@slate-editor/utils'
import { insertLinkStrategy } from './LinkUtils'


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react'
import { hasLinks, getLink, unlink } from './LinkUtils'
import { Tooltip } from 'slate-editor-components'
import { Tooltip } from '@slate-editor/components'
import LinkDataModal from './LinkDataModal'

// FIXME: Needs to handle assets files to work with SSR
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import FontAwesome from 'react-fontawesome'
import classnames from 'classnames'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

import { orderedListStrategy, isOrderedList } from './ListUtils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import FontAwesome from 'react-fontawesome'
import classnames from 'classnames'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

import { unorderedListStrategy, isUnorderedList } from './ListUtils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import FontAwesome from 'react-fontawesome'
import beautify from 'json-beautify'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

const StateLoggerButton = ({ value, onChange, className, style, type }) => (
<div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import FontAwesome from 'react-fontawesome'
import classnames from 'classnames'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

import { strikethroughMarkStrategy, hasMark } from './StrikethroughUtils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import FontAwesome from 'react-fontawesome'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

const ToggleReadOnlyButton = ({
value,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import FontAwesome from 'react-fontawesome'
import classnames from 'classnames'
import { Button } from 'slate-editor-components'
import { Button } from '@slate-editor/components'

import { underlineMarkStrategy, hasMark } from './UnderlineUtils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { keyboardEvent } from 'slate-editor-utils'
import { keyboardEvent } from '@slate-editor/utils'
import { underlineMarkStrategy } from './UnderlineUtils'


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import { PropTypes } from 'prop-types'
import React, { Component } from 'react'
import { Value } from 'slate'
import classnames from 'classnames'
import { react, typeCheck } from '@slate-editor/utils'

import { react, typeCheck } from 'slate-editor-utils'
import initialEditorState from './initialEditorState'


class SlateEditor extends Component {
constructor (props) {
super(props)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import classnames from 'classnames'
import { react } from 'slate-editor-utils'
import { react } from '@slate-editor/utils'

export default ({ children, style, className, ...rest }) => (
<div className={classnames('editor--toolbar', className)} style={style}>
Expand Down
2 changes: 1 addition & 1 deletion packages/slate-editor-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "slate-editor-utils",
"name": "@slate-editor/utils",
"version": "0.0.0",
"description": "Utils for slate-editor, a complete rich text editor based on SlateJS framework",
"main": "dist/index.js",
Expand Down

0 comments on commit a088706

Please sign in to comment.