Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
AgeCommit message (Collapse)Author
2022-04-09build(deps): bump prosemirror-view from 1.23.11 to 1.23.12dependabot[bot]
Bumps [prosemirror-view](https://github.com/prosemirror/prosemirror-view) from 1.23.11 to 1.23.12. - [Release notes](https://github.com/prosemirror/prosemirror-view/releases) - [Changelog](https://github.com/ProseMirror/prosemirror-view/blob/master/CHANGELOG.md) - [Commits](https://github.com/prosemirror/prosemirror-view/compare/1.23.11...1.23.12) --- updated-dependencies: - dependency-name: prosemirror-view dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-04-09build(deps): bump @nextcloud/vue from 5.3.0 to 5.3.1dependabot[bot]
Bumps [@nextcloud/vue](https://github.com/nextcloud/nextcloud-vue) from 5.3.0 to 5.3.1. - [Release notes](https://github.com/nextcloud/nextcloud-vue/releases) - [Changelog](https://github.com/nextcloud/nextcloud-vue/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-vue/compare/v5.3.0...v5.3.1) --- updated-dependencies: - dependency-name: "@nextcloud/vue" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-04-06Fix participant popover designJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-06fix file links, generate and open internal link if possibleJulien Veyssier
Signed-off-by: Julien Veyssier <eneiluj@posteo.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-04-02build(deps): bump prosemirror-transform from 1.4.0 to 1.4.1dependabot[bot]
Bumps [prosemirror-transform](https://github.com/prosemirror/prosemirror-transform) from 1.4.0 to 1.4.1. - [Release notes](https://github.com/prosemirror/prosemirror-transform/releases) - [Changelog](https://github.com/ProseMirror/prosemirror-transform/blob/master/CHANGELOG.md) - [Commits](https://github.com/prosemirror/prosemirror-transform/compare/1.4.0...1.4.1) --- updated-dependencies: - dependency-name: prosemirror-transform dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-04-02build(deps): bump @nextcloud/vue from 5.2.1 to 5.3.0dependabot[bot]
Bumps [@nextcloud/vue](https://github.com/nextcloud/nextcloud-vue) from 5.2.1 to 5.3.0. - [Release notes](https://github.com/nextcloud/nextcloud-vue/releases) - [Changelog](https://github.com/nextcloud/nextcloud-vue/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-vue/compare/v5.2.1...v5.3.0) --- updated-dependencies: - dependency-name: "@nextcloud/vue" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-04-02build(deps): bump prosemirror-view from 1.23.10 to 1.23.11dependabot[bot]
Bumps [prosemirror-view](https://github.com/prosemirror/prosemirror-view) from 1.23.10 to 1.23.11. - [Release notes](https://github.com/prosemirror/prosemirror-view/releases) - [Changelog](https://github.com/ProseMirror/prosemirror-view/blob/master/CHANGELOG.md) - [Commits](https://github.com/prosemirror/prosemirror-view/compare/1.23.10...1.23.11) --- updated-dependencies: - dependency-name: prosemirror-view dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-03-31build: compile jsMax
Signed-off-by: Max <max@nextcloud.com>
2022-03-31harmonize prop/data namesenh/image-drag-n-dropJulien Veyssier
Signed-off-by: Julien Veyssier <eneiluj@posteo.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-03-29build(deps): bump @nextcloud/vue from 5.1.1 to 5.2.1dependabot[bot]
Bumps [@nextcloud/vue](https://github.com/nextcloud/nextcloud-vue) from 5.1.1 to 5.2.1. - [Release notes](https://github.com/nextcloud/nextcloud-vue/releases) - [Changelog](https://github.com/nextcloud/nextcloud-vue/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-vue/compare/v5.1.1...v5.2.1) --- updated-dependencies: - dependency-name: "@nextcloud/vue" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-03-29build(deps): bump prosemirror-view from 1.23.9 to 1.23.10dependabot[bot]
Bumps [prosemirror-view](https://github.com/prosemirror/prosemirror-view) from 1.23.9 to 1.23.10. - [Release notes](https://github.com/prosemirror/prosemirror-view/releases) - [Changelog](https://github.com/ProseMirror/prosemirror-view/blob/master/CHANGELOG.md) - [Commits](https://github.com/prosemirror/prosemirror-view/compare/1.23.9...1.23.10) --- updated-dependencies: - dependency-name: prosemirror-view dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-03-27build(deps): bump prosemirror-transform from 1.3.4 to 1.4.0dependabot[bot]
Bumps [prosemirror-transform](https://github.com/prosemirror/prosemirror-transform) from 1.3.4 to 1.4.0. - [Release notes](https://github.com/prosemirror/prosemirror-transform/releases) - [Changelog](https://github.com/ProseMirror/prosemirror-transform/blob/master/CHANGELOG.md) - [Commits](https://github.com/prosemirror/prosemirror-transform/compare/1.3.4...1.4.0) --- updated-dependencies: - dependency-name: prosemirror-transform dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-03-22fix: detect callouts pasted from handbookMax
Signed-off-by: Max <max@nextcloud.com>
2022-03-19build(deps): bump @nextcloud/moment from 1.1.1 to 1.2.0dependabot[bot]
Bumps [@nextcloud/moment](https://github.com/nextcloud/nextcloud-moment) from 1.1.1 to 1.2.0. - [Release notes](https://github.com/nextcloud/nextcloud-moment/releases) - [Changelog](https://github.com/nextcloud/nextcloud-moment/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-moment/compare/v1.1.1...v1.2.0) --- updated-dependencies: - dependency-name: "@nextcloud/moment" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-03-17build(deps): bump prosemirror-markdown from 1.7.1 to 1.8.0dependabot[bot]
Bumps [prosemirror-markdown](https://github.com/prosemirror/prosemirror-markdown) from 1.7.1 to 1.8.0. - [Release notes](https://github.com/prosemirror/prosemirror-markdown/releases) - [Changelog](https://github.com/ProseMirror/prosemirror-markdown/blob/master/CHANGELOG.md) - [Commits](https://github.com/prosemirror/prosemirror-markdown/compare/1.7.1...1.8.0) --- updated-dependencies: - dependency-name: prosemirror-markdown dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-03-16build(deps): bump @nextcloud/vue from 5.1.0 to 5.1.1dependabot[bot]
Bumps [@nextcloud/vue](https://github.com/nextcloud/nextcloud-vue) from 5.1.0 to 5.1.1. - [Release notes](https://github.com/nextcloud/nextcloud-vue/releases) - [Changelog](https://github.com/nextcloud/nextcloud-vue/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-vue/compare/v5.1.0...v5.1.1) --- updated-dependencies: - dependency-name: "@nextcloud/vue" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-03-14📦️ (#2184): build assetsVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-03-14💄 (#2184): paragraph adjustsVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-03-14📦️ (#2184): add compiled assetsVinicius Reis
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
2022-03-12build(deps): bump prosemirror-view from 1.23.7 to 1.23.9dependabot[bot]
Bumps [prosemirror-view](https://github.com/prosemirror/prosemirror-view) from 1.23.7 to 1.23.9. - [Release notes](https://github.com/prosemirror/prosemirror-view/releases) - [Changelog](https://github.com/ProseMirror/prosemirror-view/blob/master/CHANGELOG.md) - [Commits](https://github.com/prosemirror/prosemirror-view/compare/1.23.7...1.23.9) --- updated-dependencies: - dependency-name: prosemirror-view dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-03-09performance: fetch content during session creationMax
Signed-off-by: Max <max@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-03-08refactor: extract logic into computedperformance/postpone/rendering-menubarMax
Also rename `initialLoading` in `EditorWrapper` to `contentLoaded`. This flag is set during the `initialLoading` state change. It does indicates that the loading happened Use the past tense to indicate that. The editor wrapper is now loading in different steps. The menus will load after the content. So `content` seems more fitting then `initial`. Signed-off-by: Max <max@nextcloud.com>
2022-03-07display content first and then load menusMax
Rendering the menubar and menububble takes a significant amount of time. First display the content and then render the menus. Signed-off-by: Max <max@nextcloud.com>
2022-03-03fix: workspace with Readme.md open details.Max
Do not show the spinning wheel unless the file actually changed. * Resolves #2215. * Targets: master. Opening Readme.md in the sidebar triggers a PROPFIND. We parse its response just like the initial file list load. Readme.md is part of the response and our handler attempts to open it. Only set the vm.ready if the file actually changed. Only a changed file will make the editor load again. Only then will it set ready to true and stop the spinning wheel. Signed-off-by: Max <max@nextcloud.com>
2022-03-02ui: use list icon for tasklistsMax
Using `mdiOrderBoolAscendingVariant` as suggested in #2018. Fixes #2018 together with the previous commit. Signed-off-by: Max <max@nextcloud.com>
2022-03-02fix: indicator of the task list.Max
See #2018. Use tiptap TaskList and TaskItem. Markdown-it happily mixes tasks and bullet points in the same list. Tiptap lists are strictly separated. Split bullet and tasks into BulletList and TaskList in markdown-io. Just like this will turn into three different lists: * one - two + three This will now also turn into three different lists with the middle one being a task list: * first list * [ ] todo * [x] done * third list Signed-off-by: Max <max@nextcloud.com>
2022-03-02fix: do not try to send steps to a read only docMax
Cypress tests were failing because they triggered editor.focus on a read only doc. Focus seems to cause sendable steps - maybe because the current cursor changes. Prevent this on various levels: * Do not autofocus read only docs. * Do not send steps to read only docs. * Handle server response with 403 without content gracefully when sending steps. The last originated here: https://github.com/nextcloud/text/blob/master/lib/Service/ApiService.php#L158 So wither the session was not valid or the document read only. Not entirely sure what best to do in this situation. Logging to console.error for now. Signed-off-by: Max <max@nextcloud.com>
2022-03-02fix: use file id to identify readme for workspaceMax
In public shares data did not include a name if i remember correctly. When the Readme gets created it will trigger a PROPFIND but that will only look for the Readme itself - not the entire directory. Also detect that Readme so the view gets updated and shows the rich workspace when a Readme.md is created. This covers the main usecase that people click on the empty workspace. It does not cover creating a localized readme file or one named README.md or so. We also did not cover that before - so this seems okay. Signed-off-by: Max <max@nextcloud.com>
2022-03-02fix: workspace with alternative file namesMax
Signed-off-by: Max <max@nextcloud.com>
2022-03-02use filelist PROPFIND for loading workspaceMax
See #2171. Even though this is meant to improve load times I did not observe any improvements locally. I suspect that is because the workspace was loaded in parallel with the PROPFIND anyway. Experience may differ in production environments obviously. It is still one request less and the code also seems more clean. Signed-off-by: Max <max@nextcloud.com>
2022-03-01Merge branch 'fix/master/image_data_urls' of ↵Max
https://github.com/DerpgonCz/text into DerpgonCz-fix/master/image_data_urls
2022-03-01lint: fix errors from @nextcloud/eslint-config@7Max
* Autofix `vue/first-attribute-linebreak`. * Explicitely import `Store` from `vuex`. * Allow importing default with the same name as named for tiptap extensions. This is the way used in tiptap documentation: `import Document from '@tiptap/extension-document'` Disable `import/no-named-as-default` - but only for the lines in question. Signed-off-by: Max <max@nextcloud.com>
2022-03-01update: @nextcloud/vue to 5.1.0 to fix testsMax
Signed-off-by: Max <max@nextcloud.com>
2022-03-01Append a whitespace to inserted emojisJonas
Signed-off-by: Jonas <jonas@freesources.org> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-03-01Autoscroll suggestion list when navigating the emoji suggestionsJonas
Navigating the suggestion list via arrow up/down keys is handled in javascript, so we have to handle the scrolling in javascript too. Only scrolls if the new selected item has not visible before. At ArrowDown, scroll bottom of visible area to lower border of item. At ArrowUp, scroll top of visible area to upper border of item. Signed-off-by: Jonas <jonas@freesources.org>
2022-03-01Add emoji autocompletion (#987)Jonas
Adds emoji autocompletion by typing `:<search_string>`. It utilizes the emoji functions from nextcloud-vue[1] and the TipTap suggestions extension. [1] https://github.com/nextcloud/nextcloud-vue/pull/1474 Signed-off-by: Jonas <jonas@freesources.org>
2022-02-26build(deps): bump prosemirror-view from 1.23.6 to 1.23.7dependabot[bot]
Bumps [prosemirror-view](https://github.com/prosemirror/prosemirror-view) from 1.23.6 to 1.23.7. - [Release notes](https://github.com/prosemirror/prosemirror-view/releases) - [Changelog](https://github.com/ProseMirror/prosemirror-view/blob/master/CHANGELOG.md) - [Commits](https://github.com/prosemirror/prosemirror-view/compare/1.23.6...1.23.7) --- updated-dependencies: - dependency-name: prosemirror-view dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-02-21build(deps): bump core-js from 3.21.0 to 3.21.1dependabot[bot]
Bumps [core-js](https://github.com/zloirock/core-js) from 3.21.0 to 3.21.1. - [Release notes](https://github.com/zloirock/core-js/releases) - [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md) - [Commits](https://github.com/zloirock/core-js/compare/v3.21.0...v3.21.1) --- updated-dependencies: - dependency-name: core-js dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-02-21fix: only apply bullet style to ul > liMax
* Make list items in ordered lists still show numbers. * Use the same bullets on second and third level when first level is ol. Signed-off-by: Max <max@nextcloud.com>
2022-02-21build(deps): bump prosemirror-markdown from 1.7.0 to 1.7.1dependabot[bot]
Bumps [prosemirror-markdown](https://github.com/prosemirror/prosemirror-markdown) from 1.7.0 to 1.7.1. - [Release notes](https://github.com/prosemirror/prosemirror-markdown/releases) - [Changelog](https://github.com/ProseMirror/prosemirror-markdown/blob/master/CHANGELOG.md) - [Commits](https://github.com/prosemirror/prosemirror-markdown/compare/1.7.0...1.7.1) --- updated-dependencies: - dependency-name: prosemirror-markdown dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-02-14fix: bring back horizontal ruleMax
Also drop @tiptap/starter-kit as we are not using it anymore. Signed-off-by: Max <max@nextcloud.com>
2022-02-13build(deps): bump core-js from 3.20.3 to 3.21.0dependabot[bot]
Bumps [core-js](https://github.com/zloirock/core-js) from 3.20.3 to 3.21.0. - [Release notes](https://github.com/zloirock/core-js/releases) - [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md) - [Commits](https://github.com/zloirock/core-js/compare/v3.20.3...v3.21.0) --- updated-dependencies: - dependency-name: core-js dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-02-13build(deps): bump @tiptap/extension-imagedependabot[bot]
Bumps [@tiptap/extension-image](https://github.com/ueberdosis/tiptap/tree/HEAD/packages/extension-image) from 2.0.0-beta.25 to 2.0.0-beta.27. - [Release notes](https://github.com/ueberdosis/tiptap/releases) - [Changelog](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-image/CHANGELOG.md) - [Commits](https://github.com/ueberdosis/tiptap/commits/@tiptap/extension-image@2.0.0-beta.27/packages/extension-image) --- updated-dependencies: - dependency-name: "@tiptap/extension-image" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-02-13build(deps): bump @tiptap/core from 2.0.0-beta.172 to 2.0.0-beta.174dependabot[bot]
Bumps [@tiptap/core](https://github.com/ueberdosis/tiptap/tree/HEAD/packages/core) from 2.0.0-beta.172 to 2.0.0-beta.174. - [Release notes](https://github.com/ueberdosis/tiptap/releases) - [Changelog](https://github.com/ueberdosis/tiptap/blob/main/packages/core/CHANGELOG.md) - [Commits](https://github.com/ueberdosis/tiptap/commits/@tiptap/core@2.0.0-beta.174/packages/core) --- updated-dependencies: - dependency-name: "@tiptap/core" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-02-12build(deps): bump @nextcloud/vue from 4.3.0 to 5.0.0dependabot[bot]
Bumps [@nextcloud/vue](https://github.com/nextcloud/nextcloud-vue) from 4.3.0 to 5.0.0. - [Release notes](https://github.com/nextcloud/nextcloud-vue/releases) - [Changelog](https://github.com/nextcloud/nextcloud-vue/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-vue/compare/v4.3.0...v5.0.0) --- updated-dependencies: - dependency-name: "@nextcloud/vue" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-02-09fix: adjust keyboard shortcuts and help modalMax
Tiptap v2 changed some defaults for the keyboard shortcuts. * use new default ctrl+shift+X for strike through. Old ctrl+d is used to create bookmarks in firefox. * Keep old ctrl+shift+1 ... ctrl+shift+6 for headings. No reason to change as far as i can tell. Also more consistent with lists (ctrl+shift+7/8). * Change ordered lists to ctrl+shift+7. New default from tiptap. This way it comes right after the headings. Signed-off-by: Max <max@nextcloud.com>
2022-02-09fix: use tiptap.commands to focusMax
Either handle network errors or the response. There are three ways to handle errors and responses with axios: ``` axios.post(...).then(...).catch(...) axios.post(...).catch(...).then(...) axios.post(...).then(onResponse, onErr) ``` Use the last one. First one will catch errors triggered by the emits in the happy path with the network error handling. Second one will handle the response, even if errors have been caught. Signed-off-by: Max <max@nextcloud.com>
2022-02-09fix: use tiptap v2 prop deleteNode to delete imageMax
Signed-off-by: Max <max@nextcloud.com>
2022-02-09fix: use same lowlight version as tiptapMax
Lowlight 2.4.1 was causing failures with jest. Jest was unhappy with it being an ESM module: https://github.com/nextcloud/text/runs/5089748945 Do not hand around the lowlight global between EditorFactory and EditorWrapper. Tiptaps CodeBlockLowLight does not need it anyway. Signed-off-by: Max <max@nextcloud.com>
2022-02-09fix: scroll image into view once it has been loadedMax
Signed-off-by: Max <max@nextcloud.com>