Commit Graph

368 Commits

Author SHA1 Message Date
Nick Perez
3c3d7148c2
fix(suggestion): sometimes a suggestion would not show up (#4380) (#5531) 2024-08-21 08:53:47 +02:00
github-actions[bot]
ae6cb9d175
chore(release): release version 2.6.4 (#5497) 2024-08-15 10:45:14 +02:00
github-actions[bot]
3f5dbbbaad
chore(release): release version v2.6.3 (#5484) 2024-08-14 20:52:53 +02:00
github-actions[bot]
b75454e3a4
chore(release): release version 2.6.2 (#5482)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-13 18:20:54 +02:00
github-actions[bot]
d137c3181f
chore(release): release version 2.6.1 (#5480) 2024-08-13 12:49:49 +02:00
github-actions[bot]
b2d5c94c4d
chore(release): release version 2.6.0 (#5458) 2024-08-13 09:04:51 +02:00
github-actions[bot]
535dcccb40
chore(release): publish version v2.5.9 (#5451)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-06 17:03:26 +02:00
github-actions[bot]
7d6c9399c6
chore(release): publish a new version 2.5.8 (#5408)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-30 09:13:28 +02:00
bdbch
44e4eca47a
Shared rollup config (#5403)
* add one shared rollup config

* rename to baseConfig
2024-07-27 12:46:39 +02:00
github-actions[bot]
a1c5120a4d
chore: publish a new release version (#5375)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-26 13:58:58 +02:00
github-actions[bot]
52f717b3eb chore(release): publish a new release version 2024-07-24 16:58:54 +02:00
github-actions[bot]
22cb038997
chore: release version (#5368)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-22 13:24:28 +02:00
github-actions[bot]
46079c28a6
chore: publish version 2.5.4 (#5361)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-17 15:17:44 +02:00
Nick the Sick
dd7f9ac1c8
build: resolve default exports properly in cjs 2024-07-17 15:11:48 +02:00
github-actions[bot]
e1946c8623
chore(release): publish a new version (#5359)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-17 13:07:59 +02:00
github-actions[bot]
b97ce6a0e0
chore: publish 2.5.2 (#5358)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-17 09:30:36 +02:00
github-actions[bot]
a21a122759 chore(release): publish a new pre-release version 2024-07-15 14:52:21 +02:00
Nick the Sick
9b566b9c35
chore: release version 2.5 2024-07-14 15:44:37 +02:00
Nick the Sick
fb4514946c
revert: "chore(release): publish a new pre-release version"
This reverts commit ff157042a3.
2024-07-14 15:04:56 +02:00
github-actions[bot]
ff157042a3 chore(release): publish a new pre-release version 2024-07-14 12:52:24 +02:00
github-actions[bot]
c15f89bb7e chore(release): publish a new pre-release version (pre) 2024-07-13 11:13:17 +02:00
github-actions[bot]
db0d007660
Publish a new pre-release version (pre) (#5328)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-11 11:53:34 +02:00
github-actions[bot]
91d8f5898a
Publish a new pre-release version (pre) (#5322)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-10 11:45:05 +02:00
github-actions[bot]
5c2f67f44d chore(release): publish a new pre-release version (pre) 2024-07-03 22:55:13 +02:00
github-actions[bot]
3f5be5ed7e chore(release): publish a new pre-release version (pre) 2024-07-03 21:30:07 +02:00
github-actions[bot]
1f87cd9411 chore(release): publish a new pre-release version (pre) 2024-07-03 20:56:00 +02:00
github-actions[bot]
a20b18cdf0 chore(release): publish a new pre-release version (pre) 2024-07-03 19:55:20 +02:00
github-actions[bot]
42af7a1b7b
chore: version packages (pre) (#5308)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-03 19:00:05 +02:00
github-actions[bot]
4cbb09ef6d
chore: version packages
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-02 22:26:28 +02:00
Nick the Sick
c96d332364
Merge branch 'main' into develop 2024-07-02 16:21:06 +02:00
github-actions[bot]
d1c5c97e95
chore: version Packages (pre) (#5280)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-02 05:31:09 +02:00
Nick the Sick
045d9871f1 chore: update package versions for prosemirror 2024-06-28 08:17:13 +02:00
Dominik Biedebach
6af368e703 chore: removed old rollup plugin sizes plugin 2024-06-27 16:15:04 +02:00
Nick the Sick
05856fbe56
v2.5.0-beta.6 2024-06-26 11:14:55 +02:00
Nick the Sick
0e96a2c35e
v2.5.0-beta.5 2024-06-25 17:00:21 +02:00
Nick the Sick
08125c4000
v2.5.0-beta.4 2024-06-18 08:09:54 +02:00
Nick the Sick
d6dc1e0ccf
v2.5.0-beta.3 2024-06-12 09:17:13 +02:00
Francisco Vergara
8d93070bbe
fix(suggestion): fixes re-rendering logic (#4380) 2024-06-12 07:30:55 +02:00
Nick the Sick
747985b3a7
chore: update package versions for prosemirror 2024-06-11 23:03:14 +02:00
Nick the Sick
4a01716408
v2.5.0-beta.2 2024-06-07 16:49:52 +02:00
Nick the Sick
52002feeed
v2.5.0-beta.1 2024-06-04 10:39:58 +02:00
Nick the Sick
d36a7ef1d9
v2.5.0-beta.0 2024-05-29 10:43:43 +02:00
Nick the Sick
69917881ce
chore: merge branch 'main' into develop 2024-05-29 10:17:05 +02:00
REMY Matthieu
393d83e199
fix(suggestion): unused parameter oldState in apply. (#4771) 2024-05-23 22:20:39 +02:00
Steven DeMartini
f55171fb43
fix: types for Suggestion command, allowing generic overrides (#4136)
* Fix typing for Suggestion `command` with new MentionAttrs generic

As of
7cae9673f0,
new generics were added for Suggestion options and props. However,
there is a subtle bug in the current typing: the object selected with
the suggestion `command` need not have the same types as the `items` in
the suggestion options. For instance, in Tiptap's official demo
https://tiptap.dev/api/nodes/mention, the suggestion `items` are all
`string`s, but the selected Mention is of type `{id: string}` (which are
the attributes of the Mention node, as the Mention extension requires):

```ts
  const selectItem = index => {
    const item = props.items[index]

    if (item) {
      props.command({ id: item })
    }
  }
```

i.e., there should be no restriction that when you select something with
the suggestion `command`, it must use the identical structure as the
suggested items. When using the suggestion plugin with the Mention
extension, for instance, the value passed to the SuggestionProps
`props.command()` function must be a `Record<string, any>`, as it's
directly/exclusively used to set the `attrs` of a `Node` via
`insertContentAt` (and you need not use that shape for suggestion
options, as in the Tiptap example above):
44996d60be/packages/extension-mention/src/mention.ts (L42)
f869507396/packages/core/src/types.ts (L79)

This fixes the typing so that suggestions can correctly refer separately
to their own items (of any type), while ensuring the `command`ed item be
of whatever type is necessary (and so in the Mention context, could be
restricted further).

* Add generics to override selected suggestion type

---------

Co-authored-by: Steven DeMartini <sjdemartini@users.noreply.github.com>
2024-05-17 05:12:04 +02:00
bdbch
6a581153d8 v2.4.0 2024-05-14 14:45:38 +02:00
bdbch
b941eea6da
feat: added jsdocs (#4356)
* added JSDocs for almost all extensions

* start adding commands jsdocs

* add jsdocs for rest of extensions

* add jsdocs for Extensions

* add js docs for all extensions

* add more jsdocs

* add js docs for node spec definitions
2024-05-11 14:30:44 +02:00
Dominik Biedebach
ca4f13461e v2.3.2 2024-05-08 17:43:53 +02:00
bdbch
dfd5ff5c6b v2.3.1 2024-04-30 17:27:07 +02:00
svenadlung
b132d9207d v2.3.0 2024-04-09 13:17:27 +02:00