vue-codemirror6 1.7.0 → 1.8.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/README.md +86 -405
- package/dist/composables/useCodeMirror.d.ts +381 -0
- package/dist/helpers/h-demi.d.ts +42 -0
- package/dist/helpers/vue-flags.d.ts +11 -0
- package/dist/index.d.ts +298 -502
- package/dist/index.es.js +5 -382
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/s~0.es.js +389 -0
- package/dist/s~0.es.js.map +1 -0
- package/dist/types/CodeMirrorExposed.d.ts +70 -0
- package/dist/types/Meta.d.ts +18 -0
- package/dist/wc-auto.d.ts +18 -0
- package/dist/wc-auto.es.js +17 -0
- package/dist/wc-auto.es.js.map +1 -0
- package/dist/wc-auto.umd.js +11 -0
- package/dist/wc.d.ts +63 -0
- package/dist/wc.es.js +40 -0
- package/dist/wc.es.js.map +1 -0
- package/dist/wc.umd.js +11 -0
- package/package.json +78 -53
- package/README.ja.md +0 -447
package/dist/wc.d.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue-codemirror6
|
|
3
|
+
*
|
|
4
|
+
* @description CodeMirror6 Component for vue2 and vue3.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @license MIT
|
|
7
|
+
* @version 1.8.1
|
|
8
|
+
* @see {@link https://github.com/logue/vue-codemirror6}
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import './helpers/vue-flags.js';
|
|
12
|
+
export { Meta } from './types/Meta.js';
|
|
13
|
+
declare const CodeMirrorElement: import("vue").VueElementConstructor<{
|
|
14
|
+
readonly modelValue: string | import("@codemirror/state").Text;
|
|
15
|
+
readonly theme: Record<string, import("style-mod").StyleSpec>;
|
|
16
|
+
readonly dark: boolean;
|
|
17
|
+
readonly basic: boolean;
|
|
18
|
+
readonly minimal: boolean;
|
|
19
|
+
readonly wrap: boolean;
|
|
20
|
+
readonly tab: boolean;
|
|
21
|
+
readonly allowMultipleSelections: boolean;
|
|
22
|
+
readonly readonly: boolean;
|
|
23
|
+
readonly disabled: boolean;
|
|
24
|
+
readonly extensions: import("@codemirror/state").Extension[];
|
|
25
|
+
readonly linterConfig: Record<string, any>;
|
|
26
|
+
readonly forceLinting: boolean;
|
|
27
|
+
readonly gutter: boolean;
|
|
28
|
+
readonly tag: string;
|
|
29
|
+
readonly scrollIntoView: boolean;
|
|
30
|
+
readonly preserveScrollPosition: boolean;
|
|
31
|
+
readonly keymap: import("@codemirror/view").KeyBinding[];
|
|
32
|
+
} & {
|
|
33
|
+
readonly placeholder?: string | HTMLElement | undefined;
|
|
34
|
+
readonly indentUnit?: string | undefined;
|
|
35
|
+
readonly tabSize?: number | undefined;
|
|
36
|
+
readonly lineSeparator?: string | undefined;
|
|
37
|
+
readonly phrases?: Record<string, string> | undefined;
|
|
38
|
+
readonly lang?: import("@codemirror/language").LanguageSupport | undefined;
|
|
39
|
+
readonly linter?: import("@codemirror/lint").LintSource | undefined;
|
|
40
|
+
readonly gutterConfig?: Record<string, any> | undefined;
|
|
41
|
+
} & {
|
|
42
|
+
onChange?: ((_value: import("@codemirror/state").EditorState) => any) | undefined;
|
|
43
|
+
onDestroy?: (() => any) | undefined;
|
|
44
|
+
onFocus?: ((_value: boolean) => any) | undefined;
|
|
45
|
+
onReady?: ((_value: {
|
|
46
|
+
view: import("codemirror").EditorView;
|
|
47
|
+
state: import("@codemirror/state").EditorState;
|
|
48
|
+
container: HTMLElement;
|
|
49
|
+
}) => any) | undefined;
|
|
50
|
+
onUpdate?: ((_value: import("@codemirror/view").ViewUpdate) => any) | undefined;
|
|
51
|
+
"onUpdate:modelValue"?: ((_value?: string | import("@codemirror/state").Text | undefined) => any) | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
/**
|
|
54
|
+
* Register the element as a custom element under the given tag name.
|
|
55
|
+
*
|
|
56
|
+
* Does nothing if the tag name is already defined. A constructor can only be defined once per
|
|
57
|
+
* custom element registry, so register a single tag name per page and do not combine this with
|
|
58
|
+
* `vue-codemirror6/wc-auto` (which registers `<code-mirror>`).
|
|
59
|
+
*
|
|
60
|
+
* @param tagName - Custom element tag name (must contain a hyphen)
|
|
61
|
+
*/
|
|
62
|
+
export declare function register(tagName: string): void;
|
|
63
|
+
export { CodeMirrorElement as default };
|
package/dist/wc.es.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue-codemirror6
|
|
3
|
+
*
|
|
4
|
+
* @description CodeMirror6 Component for vue2 and vue3.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @license MIT
|
|
7
|
+
* @version 1.8.1
|
|
8
|
+
* @see {@link https://github.com/logue/vue-codemirror6}
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { defineCustomElement, h } from "vue";
|
|
12
|
+
import { useCodeMirror, codeMirrorEmits, slot, codeMirrorProps } from "./s~0.es.js";
|
|
13
|
+
const CodeMirrorElement = defineCustomElement({
|
|
14
|
+
name: 'CodeMirror',
|
|
15
|
+
props: codeMirrorProps,
|
|
16
|
+
emits: codeMirrorEmits,
|
|
17
|
+
setup (props, context) {
|
|
18
|
+
const exposed = useCodeMirror(props, context.emit);
|
|
19
|
+
context.expose(exposed);
|
|
20
|
+
return exposed;
|
|
21
|
+
},
|
|
22
|
+
render () {
|
|
23
|
+
return h(this.$props.tag, {
|
|
24
|
+
ref: 'editor',
|
|
25
|
+
class: 'vue-codemirror'
|
|
26
|
+
}, this.$slots.default ? h('aside', {
|
|
27
|
+
style: 'display: none;',
|
|
28
|
+
'aria-hidden': 'true'
|
|
29
|
+
}, slot(this.$slots.default)) : void 0);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
function register(tagName) {
|
|
33
|
+
if (customElements.get(tagName)) return;
|
|
34
|
+
customElements.define(tagName, CodeMirrorElement);
|
|
35
|
+
}
|
|
36
|
+
export { Meta } from "./s~0.es.js";
|
|
37
|
+
export default CodeMirrorElement;
|
|
38
|
+
export { register };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=wc.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wc.es.js","sources":["../src/wc.ts"],"sourcesContent":["import '@/helpers/vue-flags';\nimport { defineCustomElement, h } from 'vue';\n\nimport { codeMirrorEmits, codeMirrorProps, useCodeMirror } from '@/composables/useCodeMirror';\nimport { slot } from '@/helpers/h-demi';\nexport { Meta } from '@/types/Meta';\n\n// Wrap the same component definition for use as a Web Component.\n// @see {@link https://vuejs.org/guide/extras/web-components.html#defineCustomElement}\nconst CodeMirrorElement = defineCustomElement({\n /** Component Name */\n name: 'CodeMirror',\n /** Props Definition */\n props: codeMirrorProps,\n /** Emits */\n emits: codeMirrorEmits,\n /**\n * Setup\n *\n * @param props - Props\n * @param context - Context\n */\n setup(props, context) {\n const exposed = useCodeMirror(props, context.emit);\n\n /** Export properties and functions */\n context.expose(exposed);\n return exposed;\n },\n render() {\n // <template>\n // <div ref=\"editor\" class=\"vue-codemirror\">\n // <aside v-show=\"!context.slots.default\" aria-hidden><slot /></aside>\n // </div>\n // </template>\n return h(\n this.$props.tag,\n {\n ref: 'editor',\n class: 'vue-codemirror'\n },\n this.$slots.default\n ? // Hide original content\n h(\n 'aside',\n {\n style: 'display: none;',\n 'aria-hidden': 'true'\n },\n slot(this.$slots.default)\n )\n : undefined\n );\n }\n});\n\n/**\n * Register the element as a custom element under the given tag name.\n *\n * Does nothing if the tag name is already defined. A constructor can only be defined once per\n * custom element registry, so register a single tag name per page and do not combine this with\n * `vue-codemirror6/wc-auto` (which registers `<code-mirror>`).\n *\n * @param tagName - Custom element tag name (must contain a hyphen)\n */\nexport function register(tagName: string): void {\n if (customElements.get(tagName)) {\n return;\n }\n customElements.define(tagName, CodeMirrorElement);\n}\n\nexport { CodeMirrorElement as default };\n"],"names":["CodeMirrorElement","defineCustomElement","codeMirrorProps","codeMirrorEmits","props","context","exposed","useCodeMirror","h","slot","undefined","register","tagName","customElements"],"mappings":";;;;;;;;;;;;AASA,MAAMA,oBAAoBC,oBAAoB;IAE5C,MAAM;IAEN,OAAOC;IAEP,OAAOC;IAOP,OAAMC,KAAK,EAAEC,OAAO;QAClB,MAAMC,UAAUC,cAAcH,OAAOC,QAAQ,IAAI;QAGjDA,QAAQ,MAAM,CAACC;QACf,OAAOA;IACT;IACA;QAME,OAAOE,EACL,IAAI,CAAC,MAAM,CAAC,GAAG,EACf;YACE,KAAK;YACL,OAAO;QACT,GACA,IAAI,CAAC,MAAM,CAAC,OAAO,GAEfA,EACE,SACA;YACE,OAAO;YACP,eAAe;QACjB,GACAC,KAAK,IAAI,CAAC,MAAM,CAAC,OAAO,KAE1BC;IAER;AACF;AAWO,SAASC,SAASC,OAAe;IACtC,IAAIC,eAAe,GAAG,CAACD,UACrB;IAEFC,eAAe,MAAM,CAACD,SAASZ;AACjC"}
|
package/dist/wc.umd.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue-codemirror6
|
|
3
|
+
*
|
|
4
|
+
* @description CodeMirror6 Component for vue2 and vue3.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @license MIT
|
|
7
|
+
* @version 1.8.1
|
|
8
|
+
* @see {@link https://github.com/logue/vue-codemirror6}
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@codemirror/view"),require("@codemirror/language"),require("@codemirror/commands"),require("codemirror"),require("vue-demi"),require("@codemirror/lint"),require("vue"),require("@codemirror/state")):"function"==typeof define&&define.amd?define(["@codemirror/view","@codemirror/language","@codemirror/commands","codemirror","vue-demi","@codemirror/lint","vue","@codemirror/state"],t):"object"==typeof exports?exports.VueCodeMirrorElement=t(require("@codemirror/view"),require("@codemirror/language"),require("@codemirror/commands"),require("codemirror"),require("vue-demi"),require("@codemirror/lint"),require("vue"),require("@codemirror/state")):e.VueCodeMirrorElement=t(e["@codemirror/view"],e["@codemirror/language"],e["@codemirror/commands"],e.codemirror,e["vue-demi"],e["@codemirror/lint"],e.vue,e["@codemirror/state"])}(global,(e,t,o,r,a,i,l,n)=>(()=>{"use strict";var d,u={"@codemirror/commands"(e){e.exports=o},"@codemirror/language"(e){e.exports=t},"@codemirror/lint"(e){e.exports=i},"@codemirror/state"(e){e.exports=n},"@codemirror/view"(t){t.exports=e},codemirror(e){e.exports=r},vue(e){e.exports=l},"vue-demi"(e){e.exports=a}},s={},c={};c.r=function(e){var t=s[e];if(void 0!==t)return t.exports;var o=s[e]={exports:{}};return u[e](o,o.exports,c),o.exports},c.d=(e,t,o)=>{var r=(t,o)=>{for(var r in t)d(t,r)&&!d(e,r)&&Object.defineProperty(e,r,{enumerable:!0,[o]:t[r]})};r(t,"get"),r(o,"value")},d=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.N=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var v={};return(()=>{c.N(v),c.d(v,{Meta:()=>d,default:()=>u,register:()=>s});var e=c.r("vue"),t=c.r("@codemirror/commands"),o=c.r("@codemirror/language"),r=c.r("@codemirror/lint"),a=c.r("@codemirror/state"),i=c.r("@codemirror/view"),l=c.r("codemirror"),n=c.r("vue-demi");let d={version:"1.8.1",date:"2026-11-23T12:56:36.637Z"},u=(0,e.defineCustomElement)({name:"CodeMirror",props:{modelValue:{type:String,default:""},theme:{type:Object,default:()=>({})},dark:{type:Boolean,default:!1},basic:{type:Boolean,default:!1},minimal:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},wrap:{type:Boolean,default:!1},tab:{type:Boolean,default:!1},indentUnit:{type:String,default:void 0},allowMultipleSelections:{type:Boolean,default:!1},tabSize:{type:Number,default:void 0},lineSeparator:{type:String,default:void 0},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},extensions:{type:Array,default:()=>[]},phrases:{type:Object,default:void 0},lang:{type:Object,default:void 0},linter:{type:Function,default:void 0},linterConfig:{type:Object,default:()=>({})},forceLinting:{type:Boolean,default:!1},gutter:{type:Boolean,default:!1},gutterConfig:{type:Object,default:void 0},tag:{type:String,default:"div"},scrollIntoView:{type:Boolean,default:!0},preserveScrollPosition:{type:Boolean,default:!1},keymap:{type:Array,default:()=>[]}},emits:{"update:modelValue":(e="")=>!0,update:e=>!0,ready:e=>!0,focus:e=>!0,change:e=>!0,destroy:()=>!0},setup(e,d){var u;let s,c,v,m,p,f,g,h,y,S,b=(u=d.emit,s=(0,n.ref)(),c=(0,n.ref)(e.modelValue),v=(0,n.shallowRef)(void 0),m=(0,n.computed)({get:()=>v.value?.hasFocus??!1,set:e=>{e&&v.value&&v.value.focus()}}),p=(0,n.computed)({get:()=>v.value?.state.selection,set:e=>{v.value&&e&&v.value.dispatch({selection:e})}}),f=(0,n.computed)({get:()=>v.value?.state.selection.main.head??0,set:e=>{v.value&&v.value.dispatch({selection:{anchor:e}})}}),g=(0,n.computed)({get:()=>v.value?.state.toJSON(),set:e=>{v.value&&e&&v.value.setState(a.EditorState.fromJSON(e))}}),h=(0,n.ref)(0),y=(0,n.ref)(0),S=(0,n.computed)(()=>{let n=new a.Compartment,d=new a.Compartment;if(e.basic&&e.minimal)throw Error("[Vue CodeMirror] Both basic and minimal cannot be specified.");let s=[...e.keymap];return e.tab&&s.push(t.indentWithTab),[e.basic&&!e.minimal?l.basicSetup:void 0,e.minimal&&!e.basic?l.minimalSetup:void 0,i.EditorView.updateListener.of(t=>{v.value&&(u("focus",v.value.hasFocus),h.value=v.value.state.doc.length,!t.changes.empty&&t.docChanged&&(e.linter&&(e.forceLinting&&(0,r.forceLinting)(v.value),y.value=e.linter(v.value).length),u("update",t)))}),i.EditorView.theme(e.theme,{dark:e.dark}),e.wrap?i.EditorView.lineWrapping:void 0,e.indentUnit?o.indentUnit.of(e.indentUnit):void 0,a.EditorState.allowMultipleSelections.of(e.allowMultipleSelections),e.tabSize?d.of(a.EditorState.tabSize.of(e.tabSize)):void 0,e.phrases?a.EditorState.phrases.of(e.phrases):void 0,a.EditorState.readOnly.of(e.readonly),i.EditorView.editable.of(!e.disabled),e.lineSeparator?a.EditorState.lineSeparator.of(e.lineSeparator):void 0,e.lang?n.of(e.lang):void 0,e.linter?(0,r.linter)(e.linter,e.linterConfig):void 0,e.linter&&e.gutter?(0,r.lintGutter)(e.gutterConfig):void 0,e.placeholder?(0,i.placeholder)(e.placeholder):void 0,s.length>0?i.keymap.of(s):void 0,...e.extensions].filter(e=>!!e)}),(0,n.watch)(S,e=>v.value?.dispatch({effects:a.StateEffect.reconfigure.of(e)}),{immediate:!0}),(0,n.watch)(()=>e.modelValue,t=>{if(!v.value||v.value.composing||v.value.state.doc.toJSON().join(e.lineSeparator??"\n")===t)return;let o=!v.value.state.selection.ranges.every(e=>e.anchor<t.length&&e.head<t.length),r={from:0,to:v.value.state.doc.length,insert:t},a=e.preserveScrollPosition?v.value.scrollSnapshot().map(v.value.state.changes(r)):void 0;v.value.dispatch({changes:r,selection:o?{anchor:0,head:0}:v.value.state.selection,scrollIntoView:e.scrollIntoView,effects:a?[a]:void 0})},{immediate:!0}),(0,n.onMounted)(async()=>{if(void 0===globalThis.window||!s.value)return;let e=c.value;s.value.firstChild&&(""!==c.value&&console.warn("[CodeMirror.vue] The <code-mirror> tag contains child elements that overwrite the `v-model` values."),e=s.value.firstChild.innerText.trim()),v.value=new i.EditorView({parent:s.value,state:a.EditorState.create({doc:e,extensions:S.value}),dispatch:e=>{v.value&&(v.value.update([e]),!e.changes.empty&&e.docChanged&&(u("update:modelValue",e.state.doc.toString()),u("change",e.state)))}}),await (0,n.nextTick)(),u("ready",{view:v.value,state:v.value.state,container:s.value})}),(0,n.onUnmounted)(()=>{v.value&&(v.value.destroy(),u("destroy"))}),{editor:s,view:v,cursor:f,selection:p,focus:m,length:h,json:g,diagnosticCount:y,dom:v.value?.contentDOM,lint:()=>{e.linter&&v.value&&(e.forceLinting&&(0,r.forceLinting)(v.value),y.value=(0,r.diagnosticCount)(v.value.state))},forceReconfigure:()=>{v.value?.dispatch({effects:a.StateEffect.reconfigure.of([])}),v.value?.dispatch({effects:a.StateEffect.appendConfig.of(S.value)})},getRange:(e,t)=>v.value?.state.sliceDoc(e,t),getLine:e=>v.value?.state.doc.line(e+1).text,lineCount:()=>v.value?.state.doc.lines??0,getCursor:()=>v.value?.state.selection.main.head??0,listSelections:()=>v.value?.state.selection.ranges??[],getSelection:()=>v.value?v.value.state.sliceDoc(v.value.state.selection.main.from,v.value.state.selection.main.to):"",getSelections:()=>{let e=v.value?.state;return e?e.selection.ranges.map(t=>e.sliceDoc(t.from,t.to)):[]},somethingSelected:()=>v.value?.state.selection.ranges.some(e=>!e.empty)??!1,replaceRange:(e,t,o)=>{v.value&&v.value.dispatch({changes:{from:t,to:o,insert:e}})},replaceSelection:e=>{v.value&&v.value.dispatch(v.value.state.replaceSelection(e))},setCursor:e=>{v.value&&v.value.dispatch({selection:{anchor:e}})},setSelection:(e,t)=>{v.value&&v.value.dispatch({selection:{anchor:e,head:t}})},setSelections:(e,t)=>{v.value&&v.value.dispatch({selection:a.EditorSelection.create(e,t)})},extendSelectionsBy:e=>{v.value&&p.value&&v.value.dispatch({selection:a.EditorSelection.create(p.value.ranges.map(t=>t.extend(e(t))))})}});return d.expose(b),b},render(){let t;return(0,e.h)(this.$props.tag,{ref:"editor",class:"vue-codemirror"},this.$slots.default?(0,e.h)("aside",{style:"display: none;","aria-hidden":"true"},"function"==typeof(t=this.$slots.default)?t():t??[]):void 0)}});function s(e){customElements.get(e)||customElements.define(e,u)}})(),v})());
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "vue-codemirror6",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.8.1",
|
|
5
5
|
"description": "CodeMirror6 Component for vue2 and vue3.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vuejs",
|
|
@@ -33,7 +33,11 @@
|
|
|
33
33
|
"email": "logue@hotmail.co.jp",
|
|
34
34
|
"url": "https://logue.dev/"
|
|
35
35
|
},
|
|
36
|
-
"sideEffects":
|
|
36
|
+
"sideEffects": [
|
|
37
|
+
"./dist/wc-auto.es.js",
|
|
38
|
+
"./src/wc-auto.ts",
|
|
39
|
+
"./dist/wc-auto.umd.js"
|
|
40
|
+
],
|
|
37
41
|
"type": "module",
|
|
38
42
|
"exports": {
|
|
39
43
|
".": {
|
|
@@ -41,10 +45,28 @@
|
|
|
41
45
|
"import": "./dist/index.es.js",
|
|
42
46
|
"default": "./dist/index.es.js"
|
|
43
47
|
},
|
|
48
|
+
"./wc": {
|
|
49
|
+
"types": "./dist/wc.d.ts",
|
|
50
|
+
"import": "./dist/wc.es.js",
|
|
51
|
+
"default": "./dist/wc.es.js"
|
|
52
|
+
},
|
|
53
|
+
"./wc-auto": {
|
|
54
|
+
"types": "./dist/wc-auto.d.ts",
|
|
55
|
+
"import": "./dist/wc-auto.es.js",
|
|
56
|
+
"default": "./dist/wc-auto.es.js"
|
|
57
|
+
},
|
|
44
58
|
"./umd": {
|
|
45
59
|
"import": "./dist/index.umd.js",
|
|
46
60
|
"default": "./dist/index.umd.js"
|
|
47
61
|
},
|
|
62
|
+
"./wc/umd": {
|
|
63
|
+
"import": "./dist/wc.umd.js",
|
|
64
|
+
"default": "./dist/wc.umd.js"
|
|
65
|
+
},
|
|
66
|
+
"./wc-auto/umd": {
|
|
67
|
+
"import": "./dist/wc-auto.umd.js",
|
|
68
|
+
"default": "./dist/wc-auto.umd.js"
|
|
69
|
+
},
|
|
48
70
|
"./package.json": "./package.json"
|
|
49
71
|
},
|
|
50
72
|
"files": [
|
|
@@ -53,79 +75,82 @@
|
|
|
53
75
|
"LICENSE"
|
|
54
76
|
],
|
|
55
77
|
"scripts": {
|
|
56
|
-
"dev": "
|
|
57
|
-
"dev:
|
|
78
|
+
"dev": "rs dev --open",
|
|
79
|
+
"dev:docs": "pnpm run build:demo && rs doc",
|
|
58
80
|
"lint": "run-s 'lint:*' --",
|
|
59
|
-
"lint:
|
|
60
|
-
"lint:
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"test:watch": "rstest --watch",
|
|
66
|
-
"inspect": "rslib inspect",
|
|
67
|
-
"inspect:demo": "rsbuild inspect",
|
|
81
|
+
"lint:rslint": "rs lint . --fix",
|
|
82
|
+
"lint:prettier": "rs fmt .",
|
|
83
|
+
"test": "rs test",
|
|
84
|
+
"test:watch": "rs test --watch",
|
|
85
|
+
"clean": "rimraf dist docs src-docs/public/demo",
|
|
86
|
+
"clean:hard": "rimraf .rstack/cache .rstack/.rsdoctor demo dist docs node_modules/.tmp node_modules/.cache",
|
|
68
87
|
"build": "run-p type-check \"build-only {@}\" --",
|
|
69
|
-
"build:demo": "
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
88
|
+
"build:demo": "rs build",
|
|
89
|
+
"build:docs": "run-s build:demo build:rspress",
|
|
90
|
+
"build:rspress": "rs doc build",
|
|
91
|
+
"preview": "rs preview",
|
|
92
|
+
"preview:docs": "rs doc preview",
|
|
93
|
+
"analyze": "cross-env RSDOCTOR=true rs lib",
|
|
94
|
+
"build-only": "rs lib",
|
|
95
|
+
"type-check": "vize check --tsconfig tsconfig.rslib.json",
|
|
96
|
+
"version": "auto-changelog -p && git add CHANGELOG.md",
|
|
97
|
+
"skills:install": "npx --no-install skills --version >/dev/null 2>&1 && npx skills experimental_install --yes || echo '\\033[1;33m⚠️ [Warning] skills command not found. Skipped auto-installation of agent skills.\\033[0m'",
|
|
98
|
+
"skills:update": "npx skills update",
|
|
99
|
+
"prepare": "rs hooks"
|
|
76
100
|
},
|
|
77
101
|
"dependencies": {
|
|
78
102
|
"vue-demi": "latest"
|
|
79
103
|
},
|
|
80
104
|
"devDependencies": {
|
|
81
|
-
"@
|
|
105
|
+
"@carbon/styles": "^1.120.0",
|
|
106
|
+
"@carbon/type": "^11.71.0",
|
|
107
|
+
"@carbon/web-components": "^2.68.0",
|
|
82
108
|
"@codemirror/lang-javascript": "^6.2.5",
|
|
83
109
|
"@codemirror/lang-json": "^6.0.2",
|
|
84
110
|
"@codemirror/lang-markdown": "^6.5.2",
|
|
85
111
|
"@codemirror/lang-vue": "^0.1.3",
|
|
86
|
-
"@codemirror/language": "^6.
|
|
87
|
-
"@codemirror/lint": "^6.9.
|
|
112
|
+
"@codemirror/language": "^6.13.1",
|
|
113
|
+
"@codemirror/lint": "^6.9.8",
|
|
88
114
|
"@codemirror/search": "^6.7.2",
|
|
89
115
|
"@codemirror/state": "^6.7.6",
|
|
90
|
-
"@codemirror/view": "^6.43.
|
|
91
|
-
"@eslint/markdown": "^8.0.3",
|
|
92
|
-
"@logue/biome-plugins": "^0.0.3",
|
|
93
|
-
"@microsoft/api-extractor": "^7.59.2",
|
|
94
|
-
"@rsbuild/core": "^2.2.9",
|
|
116
|
+
"@codemirror/view": "^6.43.15",
|
|
95
117
|
"@rsbuild/plugin-node-polyfill": "^1.4.6",
|
|
96
118
|
"@rsbuild/plugin-sass": "^2.0.1",
|
|
97
|
-
"@rsbuild/plugin-type-check": "^1.6.
|
|
119
|
+
"@rsbuild/plugin-type-check": "^1.6.1",
|
|
98
120
|
"@rsbuild/plugin-vue": "^2.0.1",
|
|
99
|
-
"@rsdoctor/
|
|
100
|
-
"@
|
|
101
|
-
"@
|
|
102
|
-
"@rstest/adapter-rsbuild": "^0.12.1",
|
|
103
|
-
"@rstest/adapter-rslib": "^0.12.1",
|
|
104
|
-
"@rstest/core": "^0.12.1",
|
|
121
|
+
"@rsdoctor/agent-cli": "^0.1.2",
|
|
122
|
+
"@rsdoctor/core": "^2.0.4",
|
|
123
|
+
"@rspress/core": "^2.1.4",
|
|
105
124
|
"@testing-library/dom": "^10.4.2",
|
|
106
|
-
"@testing-library/jest-dom": "^
|
|
125
|
+
"@testing-library/jest-dom": "^8.0.0",
|
|
107
126
|
"@testing-library/vue": "^8.1.0",
|
|
108
|
-
"@tsconfig/node-lts": "^
|
|
109
|
-
"@types/node": "^26.6.
|
|
127
|
+
"@tsconfig/node-lts": "^26.0.1",
|
|
128
|
+
"@types/node": "^26.6.6",
|
|
129
|
+
"@types/react": "^19.3.0",
|
|
130
|
+
"@types/react-dom": "^19.3.0",
|
|
110
131
|
"@vue-devtools-rstack/rsbuild": "^0.1.0",
|
|
111
|
-
"@vue/compiler-sfc": "^3.5.
|
|
112
|
-
"@vue/test-utils": "^2.
|
|
132
|
+
"@vue/compiler-sfc": "^3.5.46",
|
|
133
|
+
"@vue/test-utils": "^2.6.0",
|
|
113
134
|
"@vue/tsconfig": "^0.9.1",
|
|
114
135
|
"@vueuse/core": "^15.0.0",
|
|
115
|
-
"bootstrap": "^5.3.8",
|
|
116
136
|
"codemirror": "^6.0.2",
|
|
117
|
-
"
|
|
118
|
-
"eslint-
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
137
|
+
"cross-env": "^10.1.0",
|
|
138
|
+
"eslint-config-prettier": "^10.1.8",
|
|
139
|
+
"eslint-linter-browserify": "^10.15.0",
|
|
140
|
+
"globals": "^17.14.0",
|
|
141
|
+
"happy-dom": "^21.0.4",
|
|
142
|
+
"npm-run-all2": "^9.1.0",
|
|
143
|
+
"prettier-plugin-yaml": "^1.3.2",
|
|
144
|
+
"react": "^19.3.1",
|
|
145
|
+
"react-dom": "^19.3.1",
|
|
146
|
+
"rimraf": "^6.1.4",
|
|
147
|
+
"rstack": "^0.9.3",
|
|
148
|
+
"taze": "^21.3.0",
|
|
123
149
|
"typescript": "^7.0.2",
|
|
124
|
-
"vize": "^0.
|
|
125
|
-
"vue": "^3.5.
|
|
126
|
-
"vue-eslint-parser": "^10.4.
|
|
127
|
-
"vue-markdown-wasm": "^1.0.1"
|
|
128
|
-
"vue-tsc": "^3.3.11"
|
|
150
|
+
"vize": "^0.790.0",
|
|
151
|
+
"vue": "^3.5.46",
|
|
152
|
+
"vue-eslint-parser": "^10.4.2",
|
|
153
|
+
"vue-markdown-wasm": "^1.0.1"
|
|
129
154
|
},
|
|
130
155
|
"peerDependencies": {
|
|
131
156
|
"@codemirror/autocomplete": "^6.0.0",
|
|
@@ -139,5 +164,5 @@
|
|
|
139
164
|
"style-mod": "^4.0.0",
|
|
140
165
|
"vue": "^2.7.14 || ^3.3.4"
|
|
141
166
|
},
|
|
142
|
-
"packageManager": "pnpm@12.
|
|
167
|
+
"packageManager": "pnpm@12.21.0"
|
|
143
168
|
}
|