Skip to content

Add types for markdown extension#8720

Draft
max-nextcloud wants to merge 63 commits into
chore/upgrade-vue-3from
chore/type-markdown-extension
Draft

Add types for markdown extension#8720
max-nextcloud wants to merge 63 commits into
chore/upgrade-vue-3from
chore/type-markdown-extension

Conversation

@max-nextcloud

Copy link
Copy Markdown
Collaborator

Turns out our clipboard serializer hands a slice to prosemirror-markdown which expects a node. https://code.haverbeke.berlin/prosemirror/prosemirror-markdown/issues/131

Signed-off-by: Max <max@nextcloud.com>
Also replace `Vue.extend` with `createApp` when it is needed.
In SourceView it can simply be dropped
as we already render SourceView with our own vue instance.

Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
We should import them explicitely. But that is for another day.

Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Introduce `createCollaborativeEditor` and `createMarkdownContentEditor`
to superseed `createEditor` with more specific type signatures.

Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
`add-image-node` and `delete-image-node` used to be handled by collectives.
But collectives is now listening to the event bus directly.

I could not find any other handler for these events.

Signed-off-by: Max <max@nextcloud.com>
Convert listInputRule to typescript to be able to add proper types.

Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
We only use it in Editor and can aswell use a dynamic component instead.

Signed-off-by: Max <max@nextcloud.com>
It contains information about:
* last saved
* collaborator list
* offline state

So this is the most fitting name I could come up with.

Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
The Placeholder extension accesses browser specific apis on init.

Signed-off-by: Max <max@nextcloud.com>
Also introduce `testEditor` test helper.

Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud max-nextcloud force-pushed the chore/upgrade-vue-3 branch from b3671aa to 59e04f7 Compare June 9, 2026 08:45
@max-nextcloud max-nextcloud force-pushed the chore/type-markdown-extension branch from 63d66a1 to b069a35 Compare June 9, 2026 08:46
Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud max-nextcloud force-pushed the chore/type-markdown-extension branch from b069a35 to d5a00c9 Compare June 9, 2026 08:47
@max-nextcloud max-nextcloud force-pushed the chore/upgrade-vue-3 branch from 59e04f7 to 232f2dc Compare June 9, 2026 08:51
@mejo- mejo- force-pushed the chore/upgrade-vue-3 branch 4 times, most recently from 2c3e994 to a8f1474 Compare June 30, 2026 15:23
@max-nextcloud max-nextcloud force-pushed the chore/upgrade-vue-3 branch from c17e61b to 41d6e05 Compare July 1, 2026 10:11
@mejo- mejo- force-pushed the chore/upgrade-vue-3 branch from 41d6e05 to 01609dc Compare July 1, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant