Commit Graph

48 Commits

Author SHA1 Message Date
Flo Edelmann
c30594498e
Make Vue 2 nodeViewProps compatible with @vue/composition-api (#4123)
* Add `vue-ts-types` as dependency for `@tiptap/vue-2`

* Use `vue-ts-types` for Vue 2 `nodeViewProps`

to make them compatible with `@vue/composition-api`
2023-07-10 16:26:34 +02:00
Ben Asher
e97630c639
Require file extensions for imports and exports (#4001)
* Require .js endings

* add extension alias for cypress to resolve ts files with js endings
2023-06-30 21:03:49 +02:00
Dominik
f869507396
fix: update typings for node view decorations (#3783)
* fix: update typings for node view decorations

* fix(core): update types for NodeView

* fix(core): declare props.decorations as decorationWithType
2023-02-27 21:23:30 +01:00
Dominik
f387ad3dd4
feat(pm): new prosemirror package for dependency resolving
* chore:(core): migrate to tsup

* chore: migrate blockquote and bold to tsup

* chore: migrated bubble-menu and bullet-list to tsup

* chore: migrated more packages to tsup

* chore: migrate code and character extensions to tsup

* chore: update package.json to simplify build for all packages

* chore: move all packages to tsup as a build process

* chore: change ci build task

* feat(pm): add prosemirror meta package

* rfix: resolve issues with build paths & export mappings

* docs: update documentation to include notes for @tiptap/pm

* chore(pm): update tsconfig

* chore(packages): update packages

* fix(pm): add package export infos & fix dependencies

* chore(general): start moving to pm package as deps

* chore: move to tiptap pm package internally

* fix(demos): fix demos working with new pm package

* fix(tables): fix tables package

* fix(tables): fix tables package

* chore(demos): pinned typescript version

* chore: remove unnecessary tsconfig

* chore: fix netlify build

* fix(demos): fix package resolving for pm packages

* fix(tests): fix package resolving for pm packages

* fix(tests): fix package resolving for pm packages

* chore(tests): fix tests not running correctly after pm package

* chore(pm): add files to files array

* chore: update build workflow

* chore(tests): increase timeout time back to 12s

* chore(docs): update docs

* chore(docs): update installation guides & pm information to docs

* chore(docs): add link to prosemirror docs

* fix(vue-3): add missing build step

* chore(docs): comment out cdn link

* chore(docs): remove semicolons from docs

* chore(docs): remove unnecessary installation note

* chore(docs): remove unnecessary installation note
2023-02-02 17:37:33 +01:00
Dominik Biedebach
3d04941c64 style(extension/bubble-menu): change delay option to updateDelay 2022-11-04 22:04:47 +01:00
Dominik
cd5fd606d1
refactor(extension/bubble-menu): add debounce to bubble menu updates (#3385)
* refactor(extension/bubble-menu): add debounce to bubble menu updates

* fix: change default duration in react bubble menu demo
2022-11-04 16:39:41 +01:00
YoungChou
6674e69b12
fix: editor don't has contentComponent attribute when suggestion onUpdate (#2916)
Co-authored-by: 周洋 <yang.zhou02@mihoyo.com>
2022-06-23 16:19:32 +02:00
Dominik
1ebc8f8e14
chore: migrate to new versions of prosemirror packages (#2854)
* refactor: upgrade prosemirror packages to new typescript versions

* refactor: migrate to new typings from prosemirror

* style: fix linting issues

* style: fix linting issues

* style: fix linting issues

* fix(ci): fix build process by reimplement filterTransaction

* fix(extension-test): fix broken build because of wrong output file names

* fix: fix prosemirror-tables not being bundled correctly for ES6

* fix: move to prosemirror-tables-contently until es6 build is working

* fix: fix tests for youtube

* fix: fix youtube test

* fix(demos): fix demos build
2022-06-20 11:45:37 +02:00
Dominik
8c6751f0c6
add precommit hook for linting and automatic eslint fixes + update eslint packages (#2862)
* chore: add precommit hook for eslint fixes, fix linting issues
* chore: add eslint import sort plugin
2022-06-08 14:10:25 +02:00
Dominik Biedebach
fd593bb93e style: fix linting issues 2022-06-06 18:19:59 +02:00
travis
d85444c310
Fixed: Avoid mutating a prop directly error message to reproduce (#2834) 2022-06-06 17:33:13 +02:00
Ralph Schindler
9cdd0eb3b3 Enhancement: only Vue.extend() non-VueConstructor arguments 2022-05-27 12:10:17 +02:00
Dominik Biedebach
413a923d57 style(vue2): fix eslint issue with dangling underscore 2022-05-13 10:22:31 +02:00
Ralph Schindler
5bc77081b7 hotfix: ensure VueNodeViewRenderer will attempt to use the editors global vue instance when extending for components 2022-05-13 09:53:07 +02:00
DanSnow
190a6993d4
fix: improve Vue nodeViewProps typing 2022-04-05 13:55:53 +08:00
Philipp Kühn
40a9404c94 add newline-after-var rule to eslint config 2021-12-03 00:03:39 +01:00
Philipp Kühn
89d26f7cba fix: rename key to pluginKey for menus 2021-08-13 12:33:06 +02:00
Philipp Kühn
9ba61c1582
feat: add key option and shouldShow option to menus (fix #1480, fix #1043, fix #1268, fix #1503)
* add key option to bubble menu

* ignore react for now

* add shouldShow option to bubble menu extension

* improve types

* remove BubbleMenuPluginKey

* add key and shouldShow option to floating menu extension

* fix: don’t show floating menu within code block

* docs: add new menu options
2021-08-11 14:37:58 +02:00
Philipp Kühn
6ef931f85d fix another bug for updating node views 2021-07-28 14:51:58 +02:00
Philipp Kühn
d7f6e0ce3f fix: fix updating node views, fix #1656 2021-07-28 14:49:00 +02:00
Philipp Kühn
d720edbe24
feat!: provide more context to update function of node views, fix #1611
* add more powerful update option to node views

* add object params for all node view option props
2021-07-27 12:26:24 +02:00
Philipp Kühn
651e6911e3 feat: add ignoreMutation option to NodeViewRenderer, fix #1538 2021-07-26 18:44:02 +02:00
Philipp Kühn
939fc3d93a fix: prevent bug when editor is destroyed very fast 2021-05-28 12:14:12 +02:00
Philipp Kühn
fcee5f82c6 feat: add deleteNode method to node views 2021-05-19 00:03:41 +02:00
Philipp Kühn
0f299d228e fix: move all child nodes within EditorContent 2021-05-18 23:41:54 +02:00
Philipp Kühn
0e1d6d41fe refactoring 2021-05-04 11:03:11 +02:00
Zdravko Curic
23a152a8df feat: better types for Vue 2 2021-05-03 15:11:26 +02:00
Philipp Kühn
1c8ca95de2 refactor: remove AnyObject type 2021-04-21 09:43:31 +02:00
Philipp Kühn
9a56f666a1 feat: add tippyOptions prop 2021-04-16 12:42:56 +02:00
Philipp Kühn
d7282f168b feat: remove keepInBounds 2021-04-16 10:46:50 +02:00
Philipp Kühn
a0e2a830d7 refactor: remove isEditable from node views, remove viewUpdate event 2021-04-07 22:07:36 +02:00
Philipp Kühn
7c757415e9 fix adding decoration classes to node views in vue 2021-04-03 23:15:13 +02:00
Philipp Kühn
4d4f96bfc0 fix flicker bug for menus 2021-04-01 17:55:32 +02:00
Philipp Kühn
007e6f855b add basic floating menu 2021-04-01 15:19:31 +02:00
Philipp Kühn
daa8e72477 add doc page for bubble menu 2021-03-30 14:07:18 +02:00
Philipp Kühn
f0f6e79408 add nodeViewProps, fix #214 2021-03-17 21:43:45 +01:00
Philipp Kühn
7d52a3aad1 improve some types, fix #213 2021-03-17 21:21:57 +01:00
Philipp Kühn
49fcf829f3 refactoring 2021-03-16 22:22:13 +01:00
Philipp Kühn
a76de1ab6d move some nodeview logic to core 2021-03-16 21:55:40 +01:00
Philipp Kühn
e765c8e981 refactoring 2021-03-15 09:00:44 +01:00
Philipp Kühn
109bff0892 refactoring 2021-03-14 18:00:50 +01:00
Philipp Kühn
2017b84578 fix some typescript bugs 2021-03-05 11:58:52 +01:00
Philipp Kühn
e9e3418a0f don’t use __vue__ 2021-03-05 11:01:26 +01:00
Philipp Kühn
983b56a5f2 add NodeViewWrapper and NodeViewContent to vue-2 2021-03-05 10:18:44 +01:00
Philipp Kühn
6bafc18215 refactoring 2021-03-01 08:44:01 +01:00
Philipp Kühn
64b8f5c514 update docs 2021-02-28 23:39:29 +01:00
Philipp Kühn
00e673f700 change exports 2021-02-28 23:24:26 +01:00
Philipp Kühn
015c47707a add vue-2 and vue-3 2021-02-27 23:56:08 +01:00