Skip to content

Commit

Permalink
fix: update @muya/core to @muyajs/core in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Jocs committed Apr 19, 2024
1 parent b8533a9 commit 055d04d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
TableDragBar,
TableRowColumMenu,
zh,
} from '@muya/core';
} from '@muyajs/core';

Muya.use(EmojiSelector);
Muya.use(InlineFormatToolbar);
Expand All @@ -45,7 +45,7 @@ Muya.use(TableDragBar);
Muya.use(TableRowColumMenu);
Muya.use(PreviewToolBar);

import '@muya/core/lib/style.css';
import '@muyajs/core/lib/style.css';

const container = document.querySelector('#editor');
const muya = new Muya(container, {
Expand Down
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "jocs <[email protected]>",
"license": "MIT",
"dependencies": {
"@muya/core": "workspace:*",
"@muyajs/core": "workspace:*",
"intl-segmenter-polyfill": "^0.4.4"
}
}
4 changes: 2 additions & 2 deletions examples/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {
TState,
} from '@muya/core';
} from '@muyajs/core';
import {
CodeBlockLanguageSelector,
EmojiSelector,
Expand All @@ -18,7 +18,7 @@ import {
TableDragBar,
TableRowColumMenu,
zh,
} from '@muya/core';
} from '@muyajs/core';

import { DEFAULT_MARKDOWN } from './data';

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/ui/baseScrollFloat/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Muya } from '@muya/core';
import type { ReferenceObject } from 'popper.js';
import type { Muya } from '../../muya';
import BaseFloat from '../baseFloat';
import { EVENT_KEYS } from '../../config';
import { isKeyboardEvent, noop } from '../../utils';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/ui/ui.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Muya } from '@muya/core';
import type { Muya } from '../muya';
import type BaseFloat from './baseFloat';

export class Ui {
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 055d04d

Please sign in to comment.