@onereach/ui-components-vue2 18.0.0 → 18.0.1
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/dist/bundled/components/OrCode/OrCode.js +6 -7
- package/dist/bundled/components/OrCode/index.js +5 -5
- package/dist/bundled/components/OrCode/lang.js +5 -5
- package/dist/bundled/components/OrCode/libs.js +5 -5
- package/dist/bundled/components/OrCode/theme.js +1 -3
- package/dist/bundled/components/OrCodeV3/OrCode.js +8 -9
- package/dist/bundled/components/OrCodeV3/index.js +5 -6
- package/dist/bundled/components/OrCodeV3/libs.js +5 -6
- package/dist/bundled/components/OrRichTextEditorV3/OrRichTextEditor.js +1 -1
- package/dist/bundled/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +2 -2
- package/dist/bundled/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +533 -4
- package/dist/bundled/components/OrRichTextEditorV3/utils/codemirror/theme.js +1 -3
- package/dist/bundled/components/OrRichTextEditorV3/utils/markdown.js +2 -2
- package/dist/bundled/components/index.js +6 -7
- package/dist/bundled/{index-36159e83.js → index-3db765e0.js} +1 -1
- package/dist/bundled/index-7d05cef5.js +737 -0
- package/dist/bundled/{index-97358457.js → index-984e3b2c.js} +2 -4
- package/dist/bundled/index-993c320e.js +3209 -0
- package/dist/bundled/{index-688b7f22.js → index-bf867a40.js} +3 -5
- package/dist/bundled/{index-4b377c87.js → index-e5fc608d.js} +1 -1
- package/dist/bundled/{index-0cb923e8.js → index-eb07705b.js} +1 -3
- package/dist/bundled/index-f2294f8e.js +17056 -0
- package/dist/bundled/{index-402ddb06.js → index-f680a6b7.js} +2 -4
- package/dist/bundled/index.js +6 -7
- package/dist/bundled/{markdown-88d482e0.js → markdown-0a4a3a38.js} +1 -1
- package/package.json +12 -12
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { b as basicSetup, i as indentWithTab } from '../../index-
|
|
2
|
-
import { EditorState } from '
|
|
3
|
-
import { EditorView, keymap } from '@codemirror/view';
|
|
1
|
+
import { b as basicSetup, i as indentWithTab } from '../../index-984e3b2c.js';
|
|
2
|
+
import { E as EditorView, a as EditorState, x as keymap } from '../../index-f2294f8e.js';
|
|
4
3
|
import { i as useElementHover } from '../../index-fe4d407a.js';
|
|
5
4
|
import { defineComponent, ref } from 'vue-demi';
|
|
6
5
|
import __vue_component__$3 from '../OrTeleport/OrTeleport.js';
|
|
@@ -14,10 +13,10 @@ import __vue_component__$5 from '../OrHint/OrHint.js';
|
|
|
14
13
|
import __vue_component__$6 from '../OrLabel/OrLabel.js';
|
|
15
14
|
import { s as styleInject } from '../../style-inject.es-87955792.js';
|
|
16
15
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
17
|
-
import '
|
|
18
|
-
import '../../index-
|
|
19
|
-
import '../../index-
|
|
20
|
-
import '../../index-
|
|
16
|
+
import '../../index-7d05cef5.js';
|
|
17
|
+
import '../../index-eb07705b.js';
|
|
18
|
+
import '../../index-e5fc608d.js';
|
|
19
|
+
import '../../index-bf867a40.js';
|
|
21
20
|
|
|
22
21
|
//partially based on https://github.com/logue/vue-codemirror6/blob/master/src/components/CodeMirror.vue
|
|
23
22
|
var script = defineComponent({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as OrCode } from './OrCode.js';
|
|
2
2
|
export { OrCodeLanguages } from './constants.js';
|
|
3
|
-
export { b as basicSetup } from '../../index-
|
|
4
|
-
export { lintGutter, linter } from '
|
|
5
|
-
export { javascript } from '../../index-
|
|
6
|
-
export { json, jsonParseLinter } from '../../index-
|
|
7
|
-
export { html } from '../../index-
|
|
3
|
+
export { b as basicSetup } from '../../index-984e3b2c.js';
|
|
4
|
+
export { a as lintGutter, l as linter } from '../../index-7d05cef5.js';
|
|
5
|
+
export { javascript } from '../../index-eb07705b.js';
|
|
6
|
+
export { json, jsonParseLinter } from '../../index-e5fc608d.js';
|
|
7
|
+
export { html } from '../../index-bf867a40.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { html } from '../../index-
|
|
2
|
-
import { css } from '../../index-
|
|
3
|
-
import { json } from '../../index-
|
|
4
|
-
import { javascript } from '../../index-
|
|
5
|
-
import { markdown } from '../../index-
|
|
1
|
+
import { html } from '../../index-bf867a40.js';
|
|
2
|
+
import { css } from '../../index-3db765e0.js';
|
|
3
|
+
import { json } from '../../index-e5fc608d.js';
|
|
4
|
+
import { javascript } from '../../index-eb07705b.js';
|
|
5
|
+
import { markdown } from '../../index-f680a6b7.js';
|
|
6
6
|
import { OrCodeLanguages } from './constants.js';
|
|
7
7
|
|
|
8
8
|
const JS = javascript({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { b as basicSetup } from '../../index-
|
|
2
|
-
export { lintGutter, linter } from '
|
|
3
|
-
export { javascript } from '../../index-
|
|
4
|
-
export { json, jsonParseLinter } from '../../index-
|
|
5
|
-
export { html } from '../../index-
|
|
1
|
+
export { b as basicSetup } from '../../index-984e3b2c.js';
|
|
2
|
+
export { a as lintGutter, l as linter } from '../../index-7d05cef5.js';
|
|
3
|
+
export { javascript } from '../../index-eb07705b.js';
|
|
4
|
+
export { json, jsonParseLinter } from '../../index-e5fc608d.js';
|
|
5
|
+
export { html } from '../../index-bf867a40.js';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { EditorView } from '
|
|
2
|
-
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
|
|
3
|
-
import { tags } from '@lezer/highlight';
|
|
1
|
+
import { E as EditorView, H as HighlightStyle, v as tags, w as syntaxHighlighting } from '../../index-f2294f8e.js';
|
|
4
2
|
|
|
5
3
|
// Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
|
|
6
4
|
const chalky = 'var(--c-warning-darken-20)',
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, reactive, toRef, watch, onMounted, onUnmounted } from 'vue-demi';
|
|
2
|
-
import { b as basicSetup, i as indentWithTab } from '../../index-
|
|
3
|
-
import {
|
|
4
|
-
import { keymap, EditorView } from '@codemirror/view';
|
|
2
|
+
import { b as basicSetup, i as indentWithTab } from '../../index-984e3b2c.js';
|
|
3
|
+
import { x as keymap, E as EditorView, a as EditorState, ad as Compartment } from '../../index-f2294f8e.js';
|
|
5
4
|
import { CodeControlRoot, CodeControl, Code, CodeModal } from './styles.js';
|
|
6
5
|
import __vue_component__$2 from '../OrErrorV3/OrError.js';
|
|
7
6
|
import __vue_component__$3 from '../OrHintV3/OrHint.js';
|
|
@@ -249,19 +248,19 @@ var script = defineComponent({
|
|
|
249
248
|
const getLanguageExtension = async language => {
|
|
250
249
|
switch (language) {
|
|
251
250
|
case CodeLanguage.HTML:
|
|
252
|
-
return (await import('../../index-
|
|
251
|
+
return (await import('../../index-bf867a40.js')).html();
|
|
253
252
|
case CodeLanguage.CSS:
|
|
254
|
-
return (await import('../../index-
|
|
253
|
+
return (await import('../../index-3db765e0.js')).css();
|
|
255
254
|
case CodeLanguage.JS:
|
|
256
|
-
return (await import('../../index-
|
|
255
|
+
return (await import('../../index-eb07705b.js')).javascript();
|
|
257
256
|
case CodeLanguage.TS:
|
|
258
|
-
return (await import('../../index-
|
|
257
|
+
return (await import('../../index-eb07705b.js')).javascript({
|
|
259
258
|
typescript: true
|
|
260
259
|
});
|
|
261
260
|
case CodeLanguage.JSON:
|
|
262
|
-
return (await import('../../index-
|
|
261
|
+
return (await import('../../index-e5fc608d.js')).json();
|
|
263
262
|
case CodeLanguage.MD:
|
|
264
|
-
return (await import('../../index-
|
|
263
|
+
return (await import('../../index-f680a6b7.js')).markdown();
|
|
265
264
|
}
|
|
266
265
|
};
|
|
267
266
|
// Methods
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export { default as OrCodeV3 } from './OrCode.js';
|
|
2
2
|
export { CodeLanguage } from './props.js';
|
|
3
|
-
export { lintGutter, linter } from '
|
|
4
|
-
export { javascript } from '../../index-
|
|
5
|
-
export { json, jsonParseLinter } from '../../index-
|
|
6
|
-
export { html } from '../../index-
|
|
7
|
-
export { EditorView } from '
|
|
8
|
-
export { EditorState } from '@codemirror/state';
|
|
3
|
+
export { a as lintGutter, l as linter } from '../../index-7d05cef5.js';
|
|
4
|
+
export { javascript } from '../../index-eb07705b.js';
|
|
5
|
+
export { json, jsonParseLinter } from '../../index-e5fc608d.js';
|
|
6
|
+
export { html } from '../../index-bf867a40.js';
|
|
7
|
+
export { a as EditorState, E as EditorView } from '../../index-f2294f8e.js';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export { lintGutter, linter } from '
|
|
2
|
-
export { javascript } from '../../index-
|
|
3
|
-
export { json, jsonParseLinter } from '../../index-
|
|
4
|
-
export { html } from '../../index-
|
|
5
|
-
export { EditorView } from '
|
|
6
|
-
export { EditorState } from '@codemirror/state';
|
|
1
|
+
export { a as lintGutter, l as linter } from '../../index-7d05cef5.js';
|
|
2
|
+
export { javascript } from '../../index-eb07705b.js';
|
|
3
|
+
export { json, jsonParseLinter } from '../../index-e5fc608d.js';
|
|
4
|
+
export { html } from '../../index-bf867a40.js';
|
|
5
|
+
export { a as EditorState, E as EditorView } from '../../index-f2294f8e.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { N as Node, m as mergeAttributes, t as textblockTypeInputRule, E as Extension, i as Editor } from '../../index-406711c1.js';
|
|
2
|
-
import { B as Blockquote, a as Bold, b as BulletList, C as CodeBlock, H as HardBreak, c as HorizontalRule, I as Italic, L as ListItem, O as OrderedList, P as Paragraph, S as Strike, s as serialize, d as deserialize, U as Underline, e as Link, f as Highlight } from '../../markdown-
|
|
2
|
+
import { B as Blockquote, a as Bold, b as BulletList, C as CodeBlock, H as HardBreak, c as HorizontalRule, I as Italic, L as ListItem, O as OrderedList, P as Paragraph, S as Strike, s as serialize, d as deserialize, U as Underline, e as Link, f as Highlight } from '../../markdown-0a4a3a38.js';
|
|
3
3
|
import { Plugin, PluginKey } from '@tiptap/pm/state';
|
|
4
4
|
import { Decoration, DecorationSet } from '@tiptap/pm/view';
|
|
5
5
|
import { Code } from '@tiptap/extension-code';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { N as Node } from '../../../../index-406711c1.js';
|
|
2
2
|
import CodeMirrorView from './codemirrorView.js';
|
|
3
|
-
import { m as minimalSetup } from '../../../../index-
|
|
4
|
-
import { javascript } from '../../../../index-
|
|
3
|
+
import { m as minimalSetup } from '../../../../index-984e3b2c.js';
|
|
4
|
+
import { javascript } from '../../../../index-eb07705b.js';
|
|
5
5
|
|
|
6
6
|
var codemirrorNode = Node.create({
|
|
7
7
|
name: 'codeBlock',
|