@rcarls/rc-markdown-editor 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/custom-elements.json +9 -9
- package/dist/rc-editor-toolbar-QnCEnJ2R.js.map +1 -1
- package/dist/rc-markdown-editor-define.js.map +1 -1
- package/dist/types/packages/rc-markdown-editor/src/formatting.d.ts +1 -1
- package/dist/types/packages/rc-markdown-editor/src/index.d.ts +3 -3
- package/dist/types/packages/rc-markdown-editor/src/rc-editor-toolbar.d.ts +1 -1
- package/dist/types/packages/rc-markdown-editor/src/rc-markdown-editor.d.ts +1 -1
- package/package.json +5 -5
- package/dist/types/packages/rc-markdown-editor/src/formatting.unit.test.d.ts +0 -1
- package/dist/types/packages/rc-markdown-editor/src/rc-editor-toolbar.test.d.ts +0 -0
- package/dist/types/packages/rc-markdown-editor/src/rc-markdown-editor.test.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rc-markdown-editor-define.js","sources":["../src/define.ts"],"sourcesContent":["import '@rcarls/rc-textarea/define';\n\nimport { RcEditorToolbar } from './rc-editor-toolbar.
|
|
1
|
+
{"version":3,"file":"rc-markdown-editor-define.js","sources":["../src/define.ts"],"sourcesContent":["import '@rcarls/rc-textarea/define';\n\nimport { RcEditorToolbar } from './rc-editor-toolbar.js';\nimport { RcMarkdownEditor } from './rc-markdown-editor.js';\n\ncustomElements.get('rc-editor-toolbar') ??\n customElements.define('rc-editor-toolbar', RcEditorToolbar);\ncustomElements.get('rc-markdown-editor') ??\n customElements.define('rc-markdown-editor', RcMarkdownEditor);\n"],"names":["RcEditorToolbar","RcMarkdownEditor"],"mappings":";;AAKA,eAAe,IAAI,mBAAmB,KACpC,eAAe,OAAO,qBAAqBA,CAAe;AAC5D,eAAe,IAAI,oBAAoB,KACrC,eAAe,OAAO,sBAAsBC,CAAgB;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Decoration } from '@rcarls/rc-textarea';
|
|
2
|
-
import { ActiveFormats } from './types.
|
|
2
|
+
import { ActiveFormats } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Replaces the language token on the opening fence of the code block containing
|
|
5
5
|
* `selectionStart`. Returns the updated string, or `null` if the cursor is not
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { RcMarkdownEditor } from './rc-markdown-editor.
|
|
2
|
-
export { RcEditorToolbar } from './rc-editor-toolbar.
|
|
3
|
-
export type { EditorToolbarAction, EditorToolbarActionDetail, ActiveFormats, EditorMode, HeadingLevel, } from './types.
|
|
1
|
+
export { RcMarkdownEditor } from './rc-markdown-editor.js';
|
|
2
|
+
export { RcEditorToolbar } from './rc-editor-toolbar.js';
|
|
3
|
+
export type { EditorToolbarAction, EditorToolbarActionDetail, ActiveFormats, EditorMode, HeadingLevel, } from './types.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement, SVGTemplateResult, TemplateResult } from 'lit';
|
|
2
|
-
import { EditorToolbarAction, EditorToolbarActionDetail, HeadingLevel } from './types.
|
|
2
|
+
import { EditorToolbarAction, EditorToolbarActionDetail, HeadingLevel } from './types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Formatting toolbar for `<rc-markdown-editor>`. Renders themed `rc-button`,
|
|
5
5
|
* `rc-select`, and `rc-toolbar` controls into its own light DOM so the parent
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
import { fromMarkdown } from 'mdast-util-from-markdown';
|
|
3
3
|
import { RCTextarea, RCTextareaPluginAPI } from '@rcarls/rc-textarea';
|
|
4
|
-
import { ActiveFormats, EditorMode, EditorToolbarAction, EditorToolbarActionDetail, HeadingLevel } from './types.
|
|
4
|
+
import { ActiveFormats, EditorMode, EditorToolbarAction, EditorToolbarActionDetail, HeadingLevel } from './types.js';
|
|
5
5
|
/**
|
|
6
6
|
* Rich/source Markdown editor with a formatting toolbar, backed by rc-textarea.
|
|
7
7
|
*
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.6.0",
|
|
7
7
|
"description": "Rich/source Markdown editor with a formatting toolbar, backed by rc-textarea.",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"test:browser:firefox": "vitest --run --project=firefox"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@rcarls/rc-button": "0.
|
|
49
|
-
"@rcarls/rc-select": "0.
|
|
50
|
-
"@rcarls/rc-textarea": "0.
|
|
51
|
-
"@rcarls/rc-toolbar": "0.
|
|
48
|
+
"@rcarls/rc-button": "0.6.0",
|
|
49
|
+
"@rcarls/rc-select": "0.6.0",
|
|
50
|
+
"@rcarls/rc-textarea": "0.6.0",
|
|
51
|
+
"@rcarls/rc-toolbar": "0.6.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@custom-elements-manifest/analyzer": "0.11.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|