Skip to content

Commit

Permalink
Merge pull request #75 from davidmyersdev/update-deps
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
davidmyersdev authored Dec 31, 2023
2 parents 53c7cdb + 6293bce commit 97463b9
Show file tree
Hide file tree
Showing 32 changed files with 1,919 additions and 1,551 deletions.
37 changes: 12 additions & 25 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,39 +1,26 @@
{
"extends": ["@antfu/ts", "plugin:solid/typescript"],
"extends": ["artisan", "plugin:solid/typescript"],
"plugins": ["solid"],
"rules": {
"@typescript-eslint/brace-style": [2, "1tbs"],
"@typescript-eslint/consistent-type-definitions": [0, {}],
"@typescript-eslint/indent": [0, {}],
"@typescript-eslint/member-delimiter-style": [
2,
{
"multiline": {
"delimiter": "comma"
},
"singleline": {
"delimiter": "comma"
}
}
],
"@typescript-eslint/no-use-before-define": [0, {}],
"antfu/if-newline": [0, {}],
"curly": [0, {}],
"indent": ["error", 2],
"multiline-ternary": [0, {}],
"solid/components-return-once": [0, {}]
"solid/components-return-once": ["off", {}]
},
"overrides": [
{
"files": "./.github/**/*",
"files": ["./**/*.md/*.ts"],
"rules": {
"@typescript-eslint/no-unused-vars": ["off"]
}
},
{
"files": ["./src/index.tsx"],
"rules": {
"yml/no-empty-mapping-value": [0, {}]
"eslint-comments/no-unlimited-disable": ["off", {}]
}
},
{
"files": "./src/index.tsx",
"files": ["./types/**/*"],
"rules": {
"eslint-comments/no-unlimited-disable": [0, {}]
"@typescript-eslint/no-namespace": ["off"]
}
}
]
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,29 +115,23 @@ The `ink-mde/vue` subpath exports a Vue 3 component.
#### Minimal setup

```vue
<template>
<InkMde v-model="markdown" />
</template>
<script lang="ts" setup>
import InkMde from 'ink-mde/vue'
import { ref } from 'vue'
const markdown = ref('# Hello, World!')
</script>
<template>
<InkMde v-model="markdown" />
</template>
```

#### Custom Options

The Vue component forwards all options that `ink-mde` supports, and it uses a deep watcher to ensure your `options` are reactive.

```vue
<template>
<input v-model="options.interface.appearance" type="radio" value="dark"> dark
<input v-model="options.interface.appearance" type="radio" value="light"> light
<InkMde v-model="markdown" :options="options" />
</template>
<script lang="ts" setup>
import InkMde from 'ink-mde/vue'
import { reactive, ref } from 'vue'
Expand All @@ -149,6 +143,12 @@ const options = reactive({
},
})
</script>
<template>
<input v-model="options.interface.appearance" type="radio" value="dark"> dark
<input v-model="options.interface.appearance" type="radio" value="light"> light
<InkMde v-model="markdown" :options="options" />
</template>
```

### Examples for `ink-mde/svelte`
Expand Down
6 changes: 3 additions & 3 deletions examples/template-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"preview": "vite preview"
},
"dependencies": {
"ink-mde": "npm:ink-mde@latest"
"ink-mde": "workspace:*"
},
"devDependencies": {
"typescript": "^5.0.2",
"vite": "^4.4.0"
"typescript": "^5.3.3",
"vite": "^5.0.10"
}
}
68 changes: 34 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,48 +133,48 @@
}
},
"dependencies": {
"@codemirror/autocomplete": "^6.9.1",
"@codemirror/commands": "^6.2.5",
"@codemirror/lang-markdown": "^6.2.1",
"@codemirror/language": "^6.9.0",
"@codemirror/autocomplete": "^6.11.1",
"@codemirror/commands": "^6.3.3",
"@codemirror/lang-markdown": "^6.2.3",
"@codemirror/language": "^6.10.0",
"@codemirror/language-data": "^6.3.1",
"@codemirror/search": "^6.5.3",
"@codemirror/state": "^6.2.1",
"@codemirror/view": "^6.19.0",
"@lezer/common": "^1.1.0",
"@lezer/highlight": "^1.1.6",
"@lezer/markdown": "^1.1.0",
"@replit/codemirror-vim": "^6.0.14",
"@codemirror/search": "^6.5.5",
"@codemirror/state": "^6.4.0",
"@codemirror/view": "^6.23.0",
"@lezer/common": "^1.2.0",
"@lezer/highlight": "^1.2.0",
"@lezer/markdown": "^1.2.0",
"@replit/codemirror-vim": "^6.1.0",
"ink-mde": "workspace:*",
"katex": "^0.16.8",
"solid-js": "^1.7.12",
"katex": "^0.16.9",
"solid-js": "^1.8.7",
"style-mod": "^4.1.0"
},
"devDependencies": {
"@antfu/eslint-config-ts": "^0.35.3",
"@rollup/plugin-alias": "^5.0.0",
"@types/express": "^4.17.17",
"@types/katex": "^0.16.3",
"@types/node": "^18.17.17",
"@vitejs/plugin-vue": "^4.3.4",
"@vue/tsconfig": "^0.4.0",
"@rollup/plugin-alias": "^5.1.0",
"@types/express": "^4.17.21",
"@types/katex": "^0.16.7",
"@types/node": "^20.10.6",
"@vitejs/plugin-vue": "^5.0.2",
"@vue/tsconfig": "^0.5.1",
"embedme": "github:davidmyersdev/embedme#live-fork",
"eslint": "^8.49.0",
"eslint-plugin-solid": "^0.7.4",
"eslint": "^8.56.0",
"eslint-config-artisan": "^0.3.0",
"eslint-plugin-solid": "^0.13.1",
"express": "^4.18.2",
"jsdom": "^20.0.3",
"jsdom": "^23.0.1",
"npm-run-all": "^4.1.5",
"rimraf": "^5.0.1",
"rollup": "^3.29.2",
"rollup-plugin-dts": "^5.3.1",
"tsx": "^3.12.10",
"typescript": "~5.1.6",
"vite": "^4.4.9",
"vite-plugin-externalize-deps": "^0.5.0",
"vite-plugin-solid": "2.5.0",
"vitest": "^0.34.5",
"vue": "^3.3.4",
"vue-tsc": "^1.8.11"
"rimraf": "^5.0.5",
"rollup": "^4.9.2",
"rollup-plugin-dts": "^6.1.0",
"tsx": "^4.7.0",
"typescript": "~5.3.3",
"vite": "^5.0.10",
"vite-plugin-externalize-deps": "^0.8.0",
"vite-plugin-solid": "2.8.0",
"vitest": "^1.1.1",
"vue": "^3.4.3",
"vue-tsc": "^1.8.27"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion plugins/katex/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language'
import { EditorView } from '@codemirror/view'
import { plugin, pluginTypes } from 'ink-mde'
import { useModule } from '/src/modules'
import { buildBlockWidgetDecoration, buildLineDecoration, buildWidget, nodeDecorator } from '/lib/codemirror-kit'
import { useModule } from '/src/modules'
import { grammar, mathInline, mathInlineMark, mathInlineMarkClose, mathInlineMarkOpen } from './grammar'

const render = (text: string, element: HTMLElement) => {
Expand Down
Loading

0 comments on commit 97463b9

Please sign in to comment.