Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependencies (non-major) #115

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"test:install": "playwright install --with-deps"
},
"devDependencies": {
"@lit-labs/context": "^0.5.0",
"@playwright/test": "^1.49.0",
"@lit-labs/context": "^0.5.1",
"@playwright/test": "^1.49.1",
"@prosemirror-adapter/lit": "workspace:*",
"@prosemirror-adapter/react": "workspace:*",
"@prosemirror-adapter/solid": "workspace:*",
Expand All @@ -24,14 +24,14 @@
"@types/react-dom": "^18.3.5",
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-vue": "^5.2.1",
"lit": "^3.0.0",
"lit": "^3.2.1",
"prosemirror-example-setup": "^1.2.3",
"prosemirror-menu": "^1.2.4",
"prosemirror-schema-basic": "^1.2.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"solid-js": "^1.8.11",
"svelte": "^5.0.2",
"solid-js": "^1.9.3",
"svelte": "^5.14.4",
"vite-plugin-solid": "^2.11.0",
"vue": "3.5.13"
}
Expand Down
18 changes: 9 additions & 9 deletions e2e/src/createEditorView.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import 'prosemirror-example-setup/style/style.css'
import 'prosemirror-menu/style/menu.css'
import 'prosemirror-view/style/prosemirror.css'

import { exampleSetup } from 'prosemirror-example-setup'
import { keymap } from 'prosemirror-keymap'
import { DOMParser } from 'prosemirror-model'
import { schema } from 'prosemirror-schema-basic'
import type { Plugin } from 'prosemirror-state'
import { EditorState } from 'prosemirror-state'
import type {
MarkViewConstructor,
NodeViewConstructor,
} from 'prosemirror-view'
import { exampleSetup } from 'prosemirror-example-setup'

import { keymap } from 'prosemirror-keymap'
import { DOMParser } from 'prosemirror-model'
import { schema } from 'prosemirror-schema-basic'
import { EditorState } from 'prosemirror-state'
import { EditorView } from 'prosemirror-view'
import 'prosemirror-example-setup/style/style.css'
import 'prosemirror-menu/style/menu.css'
import 'prosemirror-view/style/prosemirror.css'

export function createEditorView(
element: HTMLElement | ShadowRoot,
Expand Down
8 changes: 4 additions & 4 deletions e2e/src/lit/components/Editor.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { RefOrCallback } from 'lit/directives/ref.js'
import type { EditorView } from 'prosemirror-view'
import {
ShallowLitElement,
useMarkViewFactory,
Expand All @@ -7,17 +9,15 @@ import {
} from '@prosemirror-adapter/lit'
import { html } from 'lit'
import { customElement } from 'lit/decorators.js'
import { ref } from 'lit/directives/ref.js'
import { Plugin } from 'prosemirror-state'
import type { EditorView } from 'prosemirror-view'
import { DecorationSet } from 'prosemirror-view'
import type { RefOrCallback } from 'lit/directives/ref.js'
import { ref } from 'lit/directives/ref.js'
import { createEditorView } from '../../createEditorView'
import { Hashes } from './Hashes'
import { Heading } from './Heading'
import { Link } from './Link'
import { Paragraph } from './Paragraph'
import { Size } from './Size'
import { Link } from './Link'

@customElement('my-editor')
export class MyEditor extends ShallowLitElement {
Expand Down
2 changes: 1 addition & 1 deletion e2e/src/lit/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ShallowLitElement } from '@prosemirror-adapter/lit'
import { html } from 'lit'
import { customElement, state } from 'lit/decorators.js'
import { keyed } from 'lit/directives/keyed.js'
import { ShallowLitElement } from '@prosemirror-adapter/lit'

export * from './components/Editor'
export { ProsemirrorAdapterProvider } from '@prosemirror-adapter/lit'
Expand Down
10 changes: 5 additions & 5 deletions e2e/src/react/components/Editor.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import './Editor.css'
import type { EditorView } from 'prosemirror-view'

import type { FC } from 'react'
import { useMarkViewFactory, useNodeViewFactory, usePluginViewFactory, useWidgetViewFactory } from '@prosemirror-adapter/react'
import type { EditorView } from 'prosemirror-view'
import { Plugin } from 'prosemirror-state'
import { DecorationSet } from 'prosemirror-view'
import type { FC } from 'react'
import { useEffect, useRef } from 'react'

import { Plugin } from 'prosemirror-state'
import { createEditorView } from '../../createEditorView'
import { Hashes } from './Hashes'
import { Heading } from './Heading'
import { Link } from './Link'
import { Paragraph } from './Paragraph'
import { Size } from './Size'
import { Link } from './Link'
import './Editor.css'

export const Editor: FC = () => {
const viewRef = useRef<EditorView>()
Expand Down
2 changes: 1 addition & 1 deletion e2e/src/react/components/Link.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useState } from 'react'
import { useMarkViewContext } from '@prosemirror-adapter/react'
import { useEffect, useState } from 'react'

const colors = [
'#f06292',
Expand Down
6 changes: 3 additions & 3 deletions e2e/src/solid/components/Editor.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { DecorationSet } from 'prosemirror-view'
import {
useMarkViewFactory,
useNodeViewFactory,
usePluginViewFactory,
useWidgetViewFactory,
} from '@prosemirror-adapter/solid'
import { Plugin } from 'prosemirror-state'
import { DecorationSet } from 'prosemirror-view'
import { createEditorView } from '../../createEditorView'
import { Paragraph } from './Paragraph'
import { Hashes } from './Hashes'
import { Heading } from './Heading'
import { Size } from './Size'
import { Link } from './Link'
import { Paragraph } from './Paragraph'
import { Size } from './Size'

export function Editor() {
const nodeViewFactory = useNodeViewFactory()
Expand Down
6 changes: 3 additions & 3 deletions e2e/src/solid/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ProsemirrorAdapterProvider } from '@prosemirror-adapter/solid'

/* @refresh reload */
import { render } from 'solid-js/web'

import './index.css'
import { ProsemirrorAdapterProvider } from '@prosemirror-adapter/solid'
import { Editor } from './components/Editor'
import './index.css'

const root = document.getElementById('root')

Expand Down
4 changes: 2 additions & 2 deletions e2e/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { resolve } from 'node:path'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import react from '@vitejs/plugin-react'
import vue from '@vitejs/plugin-vue'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import solid from 'vite-plugin-solid'
import { defineConfig } from 'vite'
import solid from 'vite-plugin-solid'

export default defineConfig({
root: 'src',
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import antfu from '@antfu/eslint-config'
import { fixupPluginRules } from '@eslint/compat'
import react from 'eslint-plugin-react'
import hooks from 'eslint-plugin-react-hooks'
import { fixupPluginRules } from '@eslint/compat'

export default antfu(
{
Expand Down
8 changes: 4 additions & 4 deletions examples/lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"start": "vite"
},
"dependencies": {
"@lit-labs/context": "^0.3.0",
"@lit-labs/context": "^0.5.1",
"@prosemirror-adapter/lit": "*",
"lit": "^2.7.0",
"lit": "^2.8.0",
"prosemirror-example-setup": "^1.2.3",
"prosemirror-keymap": "^1.2.2",
"prosemirror-menu": "^1.2.4",
"prosemirror-model": "^1.24.0",
"prosemirror-model": "^1.24.1",
"prosemirror-schema-basic": "^1.2.3",
"prosemirror-state": "^1.4.3",
"prosemirror-view": "^1.37.0",
"prosemirror-view": "^1.37.1",
"tslib": "^2.8.1"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions examples/lit/src/components/Editor.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { RefOrCallback } from 'lit/directives/ref.js'
import type { EditorView } from 'prosemirror-view'
import {
ShallowLitElement,
useNodeViewFactory,
Expand All @@ -6,11 +8,9 @@ import {
} from '@prosemirror-adapter/lit'
import { html } from 'lit'
import { customElement } from 'lit/decorators.js'
import { ref } from 'lit/directives/ref.js'
import { Plugin } from 'prosemirror-state'
import type { EditorView } from 'prosemirror-view'
import { DecorationSet } from 'prosemirror-view'
import type { RefOrCallback } from 'lit/directives/ref.js'
import { ref } from 'lit/directives/ref.js'
import { createEditorView } from '../createEditorView'
import { Hashes } from './Hashes'
import { Heading } from './Heading'
Expand Down
12 changes: 6 additions & 6 deletions examples/lit/src/createEditorView.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import 'prosemirror-view/style/prosemirror.css'
import 'prosemirror-example-setup/style/style.css'
import 'prosemirror-menu/style/menu.css'

import type { Plugin } from 'prosemirror-state'
import type { NodeViewConstructor } from 'prosemirror-view'
import { exampleSetup } from 'prosemirror-example-setup'

import { keymap } from 'prosemirror-keymap'
import { DOMParser } from 'prosemirror-model'
import { schema } from 'prosemirror-schema-basic'
import type { Plugin } from 'prosemirror-state'
import { EditorState } from 'prosemirror-state'
import type { NodeViewConstructor } from 'prosemirror-view'
import { EditorView } from 'prosemirror-view'
import 'prosemirror-view/style/prosemirror.css'
import 'prosemirror-example-setup/style/style.css'
import 'prosemirror-menu/style/menu.css'

export function createEditorView(element: HTMLElement, nodeViews: Record<string, NodeViewConstructor>, plugins: Plugin[]) {
const content = document.querySelector('#content')
Expand Down
2 changes: 1 addition & 1 deletion examples/lit/src/my-element.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ShallowLitElement } from '@prosemirror-adapter/lit'
import { html } from 'lit'
import { customElement, state } from 'lit/decorators.js'
import { keyed } from 'lit/directives/keyed.js'
import { ShallowLitElement } from '@prosemirror-adapter/lit'

export * from './components/Editor'
export { ProsemirrorAdapterProvider } from '@prosemirror-adapter/lit'
Expand Down
10 changes: 5 additions & 5 deletions examples/react/components/Editor.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import './Editor.css'
import type { EditorView } from 'prosemirror-view'

import type { FC } from 'react'
import { useNodeViewFactory, usePluginViewFactory, useWidgetViewFactory } from '@prosemirror-adapter/react'
import type { EditorView } from 'prosemirror-view'
import { Plugin } from 'prosemirror-state'
import { DecorationSet } from 'prosemirror-view'
import type { FC } from 'react'
import { useCallback, useRef } from 'react'

import { Plugin } from 'prosemirror-state'
import { createEditorView } from '../createEditorView'
import { Hashes } from './Hashes'
import { Heading } from './Heading'
import { Paragraph } from './Paragraph'
import { Size } from './Size'
import { Hashes } from './Hashes'
import './Editor.css'

export const Editor: FC = () => {
const viewRef = useRef<EditorView>()
Expand Down
12 changes: 6 additions & 6 deletions examples/react/createEditorView.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import 'prosemirror-view/style/prosemirror.css'
import 'prosemirror-example-setup/style/style.css'
import 'prosemirror-menu/style/menu.css'

import type { Plugin } from 'prosemirror-state'
import type { NodeViewConstructor } from 'prosemirror-view'
import { exampleSetup } from 'prosemirror-example-setup'

import { keymap } from 'prosemirror-keymap'
import { DOMParser } from 'prosemirror-model'
import { schema } from 'prosemirror-schema-basic'
import type { Plugin } from 'prosemirror-state'
import { EditorState } from 'prosemirror-state'
import type { NodeViewConstructor } from 'prosemirror-view'
import { EditorView } from 'prosemirror-view'
import 'prosemirror-view/style/prosemirror.css'
import 'prosemirror-example-setup/style/style.css'
import 'prosemirror-menu/style/menu.css'

export function createEditorView(element: HTMLElement, nodeViews: Record<string, NodeViewConstructor>, plugins: Plugin[]) {
const content = document.querySelector('#content')
Expand Down
4 changes: 2 additions & 2 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"prosemirror-example-setup": "^1.2.3",
"prosemirror-keymap": "^1.2.2",
"prosemirror-menu": "^1.2.4",
"prosemirror-model": "^1.24.0",
"prosemirror-model": "^1.24.1",
"prosemirror-schema-basic": "^1.2.3",
"prosemirror-state": "^1.4.3",
"prosemirror-view": "^1.37.0",
"prosemirror-view": "^1.37.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tslib": "^2.8.1",
Expand Down
8 changes: 4 additions & 4 deletions examples/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"prosemirror-example-setup": "^1.2.3",
"prosemirror-keymap": "^1.2.2",
"prosemirror-menu": "^1.2.4",
"prosemirror-model": "^1.24.0",
"prosemirror-model": "^1.24.1",
"prosemirror-schema-basic": "^1.2.3",
"prosemirror-state": "^1.4.3",
"prosemirror-view": "^1.37.0",
"solid-js": "^1.8.11"
"prosemirror-view": "^1.37.1",
"solid-js": "^1.9.3"
},
"devDependencies": {
"solid-devtools": "^0.29.2",
"solid-devtools": "^0.31.5",
"typescript": "~5.6.3",
"vite": "^5.4.11",
"vite-plugin-solid": "^2.11.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/solid/src/components/Editor.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { DecorationSet } from 'prosemirror-view'
import {
useNodeViewFactory,
usePluginViewFactory,
useWidgetViewFactory,
} from '@prosemirror-adapter/solid'
import { Plugin } from 'prosemirror-state'
import { DecorationSet } from 'prosemirror-view'
import { createEditorView } from '../createEditorView'
import { Paragraph } from './Paragraph'
import { Hashes } from './Hashes'
import { Heading } from './Heading'
import { Paragraph } from './Paragraph'
import { Size } from './Size'

export function Editor() {
Expand Down
12 changes: 6 additions & 6 deletions examples/solid/src/createEditorView.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import 'prosemirror-view/style/prosemirror.css'
import 'prosemirror-example-setup/style/style.css'
import 'prosemirror-menu/style/menu.css'

import type { Plugin } from 'prosemirror-state'
import type { NodeViewConstructor } from 'prosemirror-view'
import { exampleSetup } from 'prosemirror-example-setup'

import { keymap } from 'prosemirror-keymap'
import { DOMParser } from 'prosemirror-model'
import { schema } from 'prosemirror-schema-basic'
import type { Plugin } from 'prosemirror-state'
import { EditorState } from 'prosemirror-state'
import type { NodeViewConstructor } from 'prosemirror-view'
import { EditorView } from 'prosemirror-view'
import 'prosemirror-view/style/prosemirror.css'
import 'prosemirror-example-setup/style/style.css'
import 'prosemirror-menu/style/menu.css'

export function createEditorView(element: HTMLElement, nodeViews: Record<string, NodeViewConstructor>, plugins: Plugin[]) {
const content = document.querySelector('#content')
Expand Down
6 changes: 3 additions & 3 deletions examples/solid/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ProsemirrorAdapterProvider } from '@prosemirror-adapter/solid'

/* @refresh reload */
import { render } from 'solid-js/web'

import './index.css'
import { ProsemirrorAdapterProvider } from '@prosemirror-adapter/solid'
import { Editor } from './components/Editor'
import './index.css'

const root = document.getElementById('root')

Expand Down
Loading
Loading