Commit Graph

5931 Commits

Author SHA1 Message Date
Dominik
40715ecfc2
chore: add Dev demo folder (#3887) 2023-03-27 15:21:03 +02:00
Dominik
65371b7353
Handle NodeViews in BubbleMenu positioning (#3881)
* fix(bubble-menu): use correct children of node view renderers for clientRect

* fix(bubble-menu): remove lodash

* fix(bubble-menu): support vue node views

* fix(demos): revert bubble menu demo
2023-03-27 15:20:45 +02:00
Dominik
00aad1fd9a
style(core): fix linting issues (#3884) 2023-03-27 12:26:34 +02:00
Myles J
aa3068b1cd
feat(attributes): dynamic default (#3379) 2023-03-27 11:57:11 +02:00
Sven Adlung
189cb51811
docs: consistent naming (#3882) 2023-03-27 11:20:31 +02:00
Dominik Biedebach
9039567117 Merge branch 'main' of github.com:ueberdosis/tiptap into develop 2023-03-23 11:38:03 +01:00
Dominik Biedebach
6ff56fe816 temporary changes 2023-03-23 11:37:03 +01:00
dependabot[bot]
52e1badd36
build(deps-dev): bump webpack from 5.73.0 to 5.76.0 (#3855)
Bumps [webpack](https://github.com/webpack/webpack) from 5.73.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-23 10:04:37 +01:00
dependabot[bot]
c1c8e72c93
build(deps): bump cypress-io/github-action from 5.2.0 to 5.5.0 (#3863)
Bumps [cypress-io/github-action](https://github.com/cypress-io/github-action) from 5.2.0 to 5.5.0.
- [Release notes](https://github.com/cypress-io/github-action/releases)
- [Commits](https://github.com/cypress-io/github-action/compare/v5.2.0...v5.5.0)

---
updated-dependencies:
- dependency-name: cypress-io/github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-23 10:03:48 +01:00
dependabot[bot]
e8ca470b90
build(deps): bump actions/checkout from 3.3.0 to 3.4.0 (#3864)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.3.0...v3.4.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-23 10:03:20 +01:00
Sven Adlung
e22b873e55
refactor(extension-youtube): command types (#3842) 2023-03-23 09:54:58 +01:00
Martin Kriegeskorte
3a9b775bda docs: link to support page 2023-03-21 17:50:19 +01:00
Hari Haran
3937c44c43
fix: Ordered list start support broke in #3541 (#3833)
* fix: #3831

* fix: default attribute + predicate
2023-03-18 23:14:01 +01:00
svenadlung
84ac1dc9c7 update docs 2023-03-15 17:05:59 +01:00
svenadlung
9d2e94a857 docs: update extension list 2023-03-15 13:39:13 +01:00
svenadlung
00deac42d3 docs: fix docs order and add new pro extensions 2023-03-15 11:58:41 +01:00
svenadlung
928bd36f5f fix inconsistent tiptap spelling 2023-03-13 19:07:22 +01:00
svenadlung
61a46ee6d0 try to fix docs link order in menu 2023-03-13 19:06:41 +01:00
dependabot[bot]
998e6bbe79
build(deps): bump cypress-io/github-action from 5.0.9 to 5.2.0 (#3835)
Bumps [cypress-io/github-action](https://github.com/cypress-io/github-action) from 5.0.9 to 5.2.0.
- [Release notes](https://github.com/cypress-io/github-action/releases)
- [Commits](https://github.com/cypress-io/github-action/compare/v5.0.9...v5.2.0)

---
updated-dependencies:
- dependency-name: cypress-io/github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 15:49:54 +01:00
Dominik Biedebach
d71dc59beb WIP - fix undoInputRule 2023-03-04 02:40:52 +01:00
Dominik Biedebach
4ab1bbe64a WIP - add handling when backspace is pressed at start of a list item 2023-03-04 02:17:52 +01:00
Dominik Biedebach
0b7120c21b WIP - list backspace behaviour 2023-03-03 17:43:29 +01:00
Dominik
43970fd496
Improve Cypress Test runner performance with parallelization (#3817)
* test: only run integration tests

* test: only run integration tests

* test: try using test spec matrix

* test: try using test spec matrix

* test: try using test spec matrix

* test: try using test spec matrix

* test: try using test spec matrix

* tests: update test branches
2023-03-03 14:42:11 +01:00
Dominik Biedebach
668c2a6592 tests: increase timeout 2023-03-03 13:00:14 +01:00
Dominik
6283cee5c7
fix(react): allow updating event handlers on editor (#3811) 2023-03-03 11:35:53 +01:00
Dominik
1615d7a9bb
feat(react): allow react renderer to assign attributes to react renderer element (#3812) 2023-03-03 11:35:24 +01:00
Dominik
f5895c63c4
fix(tests): add assertion for each valid/invalid link (#3815)
* fix(tests): add assertion for each valid/invalid link

* chore(tests): disable video generation
2023-03-03 11:35:05 +01:00
René Eschke
b2ec51374d
Adds attributes to toggleList (#3776)
* Adds attributes to toggleList

When dealing with different variants of bullet lists, I wanted to adopt the same technique I used for different paragraph variants. Since `wrapInList` is capable of receiving attributes, just like `setNode` is, I don't see any reason why `toggleList` should not be capable of the same. 

Here's my bullet list extension in action that is in need of attributes support.

```js
export const CustomBulletList = BulletList.extend({
  content: 'listItem*',

  addAttributes() {
    return {
      variant: {
        default: DEFAULT_LIST,

        renderHTML: attributes => {
          return {
            class: `list-${attributes.variant}`,
          };
        },
      },
    };
  },

  addCommands() {
    return {
      toggleBulletList: attributes => (c) => {
        return c.commands.toggleListCustom(this.name, this.options.itemTypeName, attributes);
      },
    };
  },
});
```

* Update toggle-list.md

* Update toggle-list.md
2023-03-03 09:59:45 +01:00
Dominik Biedebach
10a4a46584 fix(core): fix linting issues 2023-03-03 09:57:49 +01:00
Tim Raderschad
bdc4980343
fix: use prose-base class for sm screens to prevent override of prose-invert (#3810) 2023-03-03 00:31:41 +01:00
Dominik Biedebach
1f5e23acd8 fix: package-lock 2023-03-03 00:03:39 +01:00
Abdullah Atta
dd6547da42
core: only check doc.textBetween if other checks pass (#3778) 2023-03-02 17:01:36 +01:00
Abdullah Atta
dd3c7618ac
Only allow left mouse button to open links (#3777)
* Only allow left mouse button to open links

* fix lint errors
2023-03-02 17:00:23 +01:00
Dominik Biedebach
da5c5864ed v2.0.0-beta.209 2023-02-28 11:11:02 +01:00
Dominik Biedebach
02eec8aaef fix(tests): fix tests for lists 2023-02-28 10:57:01 +01:00
Dominik
3c07ca0b9c
fix(core): fix destroyed view causing errors on dispatchTransaction (#3799) 2023-02-28 10:50:43 +01:00
Dominik Biedebach
26a1d96099 v2.0.0-beta.219 2023-02-27 21:42:53 +01:00
dependabot[bot]
d7ed8af98b
build(deps): bump actions/cache from 3.2.5 to 3.2.6 (#3795)
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.5 to 3.2.6.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3.2.5...v3.2.6)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-27 21:23:49 +01: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
e597809c11
docs: add extension cli note to contributing docs (#3793)
* docs: add extension cli note to contributing docs

* docs: add notes to CLI

* docs: fix rollup and vite naming
2023-02-27 21:22:34 +01:00
Dominik
38b7e412bb
fix(react): reset initialized when editorcontent is unmounting (#3781)
* fix(react): reset initialized when editorcontent is unmounting

* style: remove unneeded if statement
2023-02-27 19:33:42 +01:00
Dominik
acf186d2ac
chore: allow new ReactComponentContent components to be created (#3782)
* chore: allow users to create new react nodeview editor content components

* style: remove trailing spaces
2023-02-27 19:31:40 +01:00
Dominik
0300630a5b
fix(core): allow insertContentAt and insertContent text node arrays (#3790)
* fix(core): allow insertContentAt and insertContent to handle array of text nodes

* fix(core): allow insertContent via json including a text content
2023-02-27 19:26:14 +01:00
taras-turchenko-moc
1ac3070abc
add optionalSlashSlash to protocol options (#3675)
* add optionalSlashSlash to protocol options

* Update documentation

* rename optionalSlashSlash to optionalSlashes

* regenerate package-lock.json with node v16
2023-02-27 14:03:47 +01:00
Peter Fox
82625644be
Update php.md (#3618)
Changes are based on reading this thread https://github.com/ueberdosis/tiptap/issues/1515#issuecomment-896477157

This example relies on AlpineJS still and doing causes the editor to be wrapped in an observable/reactive layer. Moving the editor out of the returned object means it doesn't become a proxy object; otherwise, `editor.commands.setContent(content, false)` will already trigger an error `Range Error: Applying a mismatched transaction` and not work.
2023-02-24 15:14:28 +01:00
Hari Haran
89cc59a837
fix: #3773 - Array for content breaks editor (#3786)
* fix: #3773 - Array for content breaks editor

* fix: lint warning
2023-02-24 15:03:20 +01:00
Sven Adlung
8bf8fd2452
fix: move y-prosemirror to peer-deps (#3763)
Co-authored-by: Dominik <6538827+bdbch@users.noreply.github.com>
2023-02-22 10:14:19 +01:00
Hari Haran
36bb1e1041
feat: #3540 Ability to preserve marks on lists (#3541)
* feat: #3540 Ability to preserve marks on lists

* feat: preserveAttrs in list items

* `keepMarks` is working, but need help with `keepAttrs`

* fix: conflict

* avoid casting
2023-02-22 10:13:28 +01:00
dependabot[bot]
10f90695e8
build(deps): bump cypress-io/github-action from 5.0.8 to 5.0.9 (#3766)
Bumps [cypress-io/github-action](https://github.com/cypress-io/github-action) from 5.0.8 to 5.0.9.
- [Release notes](https://github.com/cypress-io/github-action/releases)
- [Commits](https://github.com/cypress-io/github-action/compare/v5.0.8...v5.0.9)

---
updated-dependencies:
- dependency-name: cypress-io/github-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-20 14:38:43 +01:00
Kyle Alwyn
aa4389883a
Queue flushSync microtask (#3533)
Do the same thing as https://github.com/ueberdosis/tiptap/pull/3188
2023-02-18 22:47:11 +01:00