Skip to content

Commit

Permalink
Merge pull request #17 from tiavina-mika/develop
Browse files Browse the repository at this point in the history
BREAKING CHANGE
  • Loading branch information
tiavina-mika authored May 1, 2024
2 parents ba3bbd5 + 3dfe898 commit e1bc6b0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 14 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ jobs:
uses: technote-space/package-version-check-action@v1
with:
COMMIT_DISABLED:
BRANCH_PREFIX: release/


- run: yarn
# for Yarn v1, use `yarn publish` instead
Expand Down
4 changes: 2 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
[
"@semantic-release/changelog",
{
"changelogFile": "docs/CHANGELOG.md"
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/git",
{
"assets": ["docs/CHANGELOG.md"]
"assets": ["CHANGELOG.md"]
}
],
"@semantic-release/github"
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# mui-tiptap-editor!
# mui-tiptap-editor

<p align="center">

Expand All @@ -7,10 +7,6 @@
</p>


# Files

StackEdit stores your files in your browser, which means all your files are automatically saved locally and are accessible **offline!**

## Table of Contents

<details>
Expand Down Expand Up @@ -120,6 +116,7 @@ See [`example/App.tsx`](..example/App.tsx) for a more thorough example of using

```tsx
import './index.css';
import { TextEditor } from 'mui-tiptap-editor';

function App () {
return (
Expand All @@ -145,6 +142,7 @@ function App () {

```tsx
import './index.css';
import { TextEditor } from 'mui-tiptap-editor';

function App () {
return (
Expand Down
4 changes: 2 additions & 2 deletions src/components/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const classes = {
},
};

type Props = {
export type ToolbarProps = {
editor: Editor;
className?: string;
toolbar?: IEditorToolbar[];
Expand All @@ -65,7 +65,7 @@ const Toolbar = ({
editor,
className,
toolbar = defaultEditorToolbar
}: Props) => {
}: ToolbarProps) => {
const [openLinkDialog, setOpen] = useState<boolean>(false);

const toggleLinkDialog = useCallback(() => setOpen(!openLinkDialog), [openLinkDialog]);
Expand Down
8 changes: 5 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import "./index.css";

export {
default as TextEditor,
type TextEditorProps,
} from './components/TextEditor';
export {
default as TextEditorReadOnly,
} from './components/TextEditorReadOnly';
} from './components/TextEditorReadOnly';
export {
default as Toolbar,
type ToolbarProps,
} from './components/Toolbar';

0 comments on commit e1bc6b0

Please sign in to comment.