Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37,875 changes: 15,938 additions & 21,937 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@nextcloud/moment": "^1.3.4",
"@nextcloud/notify_push": "^1.3.0",
"@nextcloud/router": "^3.0.1",
"@nextcloud/vue": "^8.22.0",
"@nextcloud/vue": "^8.27.0",
"@quartzy/markdown-it-mentions": "^0.2.0",
"@tiptap/core": "^2.12.0",
"@tiptap/extension-blockquote": "^2.12.0",
Expand All @@ -61,7 +61,6 @@
"@tiptap/extension-collaboration-cursor": "^2.12.0",
"@tiptap/extension-document": "^2.12.0",
"@tiptap/extension-dropcursor": "^2.12.0",
"tiptap-text-direction": "^0.3.2",
"@tiptap/extension-gapcursor": "^2.12.0",
"@tiptap/extension-hard-break": "^2.12.0",
"@tiptap/extension-heading": "^2.12.0",
Expand Down Expand Up @@ -103,6 +102,7 @@
"proxy-polyfill": "^0.3.2",
"slug": "^9.1.0",
"tippy.js": "^6.3.7",
"tiptap-text-direction": "^0.3.2",
"uuid": "^10.0.0",
"vue": "^2.7.16",
"vue-click-outside": "^1.1.0",
Expand Down
6 changes: 5 additions & 1 deletion src/components/Assistant.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,11 @@ import TranslateVariant from 'vue-material-design-icons/TranslateVariant.vue'
import ClipboardTextOutlineIcon from 'vue-material-design-icons/ClipboardTextOutline.vue'
import { posToDOMRect } from '@tiptap/core'
import { loadState } from '@nextcloud/initial-state'
import { NcActions, NcActionButton, NcActionSeparator, NcListItem, NcModal } from '@nextcloud/vue'
import NcActions from '@nextcloud/vue/components/NcActions'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
import NcActionSeparator from '@nextcloud/vue/components/NcActionSeparator'
import NcListItem from '@nextcloud/vue/components/NcListItem'
import NcModal from '@nextcloud/vue/components/NcModal'
import {
useEditorMixin,
useIsRichWorkspaceMixin,
Expand Down
2 changes: 1 addition & 1 deletion src/components/CollisionResolveDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
useIsRichEditorMixin,
useSyncServiceMixin,
} from './Editor.provider.js'
import { NcButton } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/components/NcButton'
import setContent from './../mixins/setContent.js'
export default {
name: 'CollisionResolveDialog',
Expand Down
4 changes: 2 additions & 2 deletions src/components/Editor/AvatarWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:user="session.userId ? session.userId : session.guestName"
:is-guest="session.userId === null"
:disable-menu="true"
:show-user-status="false"
hide-status
:disable-tooltip="true"
:size="size" />
<div v-else class="avatar" :style="sessionBackgroundStyle">
Expand All @@ -19,7 +19,7 @@
</template>

<script>
import { NcAvatar } from '@nextcloud/vue'
import NcAvatar from '@nextcloud/vue/components/NcAvatar'
export default {
name: 'AvatarWrapper',
components: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Editor/DocumentStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

import { ERROR_TYPE, IDLE_TIMEOUT } from './../../services/SyncService.js'
import Lock from 'vue-material-design-icons/Lock.vue'
import { NcNoteCard } from '@nextcloud/vue'
import NcNoteCard from '@nextcloud/vue/components/NcNoteCard'
import CollisionResolveDialog from '../CollisionResolveDialog.vue'

export default {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Editor/EditorOutline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</template>

<script>
import { NcButton } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/components/NcButton'
import TableOfContents from './TableOfContents.vue'
import { useOutlineStateMixin, useOutlineActions } from './Wrapper.provider.js'
import { Close } from './../icons.js'
Expand Down
6 changes: 5 additions & 1 deletion src/components/Editor/PreviewOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
</template>

<script>
import { NcActions, NcActionButton, NcActionRadio, NcActionCaption, NcActionSeparator } from '@nextcloud/vue'
import NcActions from '@nextcloud/vue/components/NcActions'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
import NcActionRadio from '@nextcloud/vue/components/NcActionRadio'
import NcActionCaption from '@nextcloud/vue/components/NcActionCaption'
import NcActionSeparator from '@nextcloud/vue/components/NcActionSeparator'
import DotsVerticalIcon from 'vue-material-design-icons/DotsVertical.vue'
import DeleteIcon from 'vue-material-design-icons/Delete.vue'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Editor/SessionList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</template>

<script>
import { NcPopover } from '@nextcloud/vue'
import NcPopover from '@nextcloud/vue/components/NcPopover'
import AvatarWrapper from './AvatarWrapper.vue'
import { COLLABORATOR_IDLE_TIME, COLLABORATOR_DISCONNECT_TIME } from '../../services/SyncService.js'

Expand Down
3 changes: 2 additions & 1 deletion src/components/Editor/Status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

import { ERROR_TYPE } from '../../services/SyncService.js'
import moment from '@nextcloud/moment'
import { NcButton, NcSavingIndicatorIcon } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/components/NcButton'
import NcSavingIndicatorIcon from '@nextcloud/vue/components/NcSavingIndicatorIcon'
import {
useIsMobileMixin,
useIsPublicMixin,
Expand Down
2 changes: 1 addition & 1 deletion src/components/HelpModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
</template>

<script>
import { NcDialog } from '@nextcloud/vue'
import NcDialog from '@nextcloud/vue/components/NcDialog'
import { isMobilePlatform } from '../helpers/platform.js'
import { TRANSLATIONS, MODIFIERS } from './Menu/keys.js'

Expand Down
2 changes: 1 addition & 1 deletion src/components/ImageView/ShowImageModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</template>

<script>
import { NcModal } from '@nextcloud/vue'
import NcModal from '@nextcloud/vue/components/NcModal'

export default {
name: 'ShowImageModal',
Expand Down
4 changes: 3 additions & 1 deletion src/components/Link/LinkBubbleView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@
</template>

<script>
import { NcButton, NcLoadingIcon, NcTextField } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/components/NcButton'
import NcLoadingIcon from '@nextcloud/vue/components/NcLoadingIcon'
import NcTextField from '@nextcloud/vue/components/NcTextField'
import { NcReferenceList } from '@nextcloud/vue/dist/Components/NcRichText.js'
import { translate as t } from '@nextcloud/l10n'
import CheckIcon from 'vue-material-design-icons/Check.vue'
Expand Down
3 changes: 2 additions & 1 deletion src/components/Menu/ActionAttachmentUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
</template>

<script>
import { NcActions, NcActionButton } from '@nextcloud/vue'
import NcActions from '@nextcloud/vue/components/NcActions'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
import { Loading, Folder, Upload } from '../icons.js'
import {
useIsPublicMixin,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/ActionFormattingHelp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<script>
import { defineComponent } from 'vue'
import { NcActionButton as NextcloudVueNcActionButton } from '@nextcloud/vue'
import NextcloudVueNcActionButton from '@nextcloud/vue/components/NcActionButton'
import { Help } from '../icons.js'

export default defineComponent({
Expand Down
4 changes: 3 additions & 1 deletion src/components/Menu/ActionInsertLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@
</template>

<script>
import { NcActions, NcActionButton, NcActionInput } from '@nextcloud/vue'
import NcActions from '@nextcloud/vue/components/NcActions'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
import NcActionInput from '@nextcloud/vue/components/NcActionInput'
import { getLinkWithPicker } from '@nextcloud/vue/dist/Components/NcRichText.js'
import { getFilePickerBuilder } from '@nextcloud/dialogs'
import { generateUrl } from '@nextcloud/router'
Expand Down
3 changes: 2 additions & 1 deletion src/components/Menu/ActionList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
</template>

<script>
import { NcActions, NcActionSeparator } from '@nextcloud/vue'
import NcActions from '@nextcloud/vue/components/NcActions'
import NcActionSeparator from '@nextcloud/vue/components/NcActionSeparator'
import { BaseActionEntry } from './BaseActionEntry.js'
import ActionListItem from './ActionListItem.vue'
import { getActionState, getIsActive } from './utils.js'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/ActionListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</template>

<script>
import { NcActionButton as NextcloudVueNcActionButton } from '@nextcloud/vue'
import NextcloudVueNcActionButton from '@nextcloud/vue/components/NcActionButton'
import { BaseActionEntry } from './BaseActionEntry.js'

export default {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/ActionSingle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</template>

<script>
import { NcButton } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/components/NcButton'
import { BaseActionEntry } from './BaseActionEntry.js'

export default {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/CharacterCount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script>
import { defineComponent } from 'vue'
import { translatePlural as n } from '@nextcloud/l10n'
import { NcActionText } from '@nextcloud/vue'
import NcActionText from '@nextcloud/vue/components/NcActionText'
import { AlphabeticalVariant } from '../icons.js'
import { useEditorMixin } from '../Editor.provider.js'

Expand Down
3 changes: 2 additions & 1 deletion src/components/Menu/EmojiPickerAction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@

<script>
import { BaseActionEntry } from './BaseActionEntry.js'
import { NcEmojiPicker, NcButton } from '@nextcloud/vue'
import NcEmojiPicker from '@nextcloud/vue/components/NcEmojiPicker'
import NcButton from '@nextcloud/vue/components/NcButton'
import { useMenuIDMixin } from './MenuBar.provider.js'

export default {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Menu/MenuBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@

<script>
import { ref } from 'vue'
import { NcActionSeparator, NcActionButton } from '@nextcloud/vue'
import NcActionSeparator from '@nextcloud/vue/components/NcActionSeparator'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
import { loadState } from '@nextcloud/initial-state'
import { useElementSize } from '@vueuse/core'
import { emit } from '@nextcloud/event-bus'
Expand Down
6 changes: 5 additions & 1 deletion src/components/Modal/Translate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@
import axios from '@nextcloud/axios'
import { loadState } from '@nextcloud/initial-state'
import { generateOcsUrl } from '@nextcloud/router'
import { NcModal, NcButton, NcSelect, NcLoadingIcon, NcTextArea } from '@nextcloud/vue'
import NcModal from '@nextcloud/vue/components/NcModal'
import NcButton from '@nextcloud/vue/components/NcButton'
import NcSelect from '@nextcloud/vue/components/NcSelect'
import NcLoadingIcon from '@nextcloud/vue/components/NcLoadingIcon'
import NcTextArea from '@nextcloud/vue/components/NcTextArea'
import { useIsMobileMixin } from '../Editor.provider.js'

const detectLanguageEntry = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/PublicFilesEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</template>

<script>
import { NcModal } from '@nextcloud/vue'
import NcModal from '@nextcloud/vue/components/NcModal'

export default {
name: 'PublicFilesEditor',
Expand Down
2 changes: 1 addition & 1 deletion src/components/Suggestion/Emoji/EmojiList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<script>
import { translate as t } from '@nextcloud/l10n'
import { emojiAddRecent } from '@nextcloud/vue'
import { emojiAddRecent } from '@nextcloud/vue/functions/emoji'

export default {
name: 'EmojiList',
Expand Down
2 changes: 1 addition & 1 deletion src/components/Suggestion/Emoji/suggestions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { emojiSearch } from '@nextcloud/vue'
import { emojiSearch } from '@nextcloud/vue/functions/emoji'
import createSuggestions from '../suggestions.js'
import EmojiList from './EmojiList.vue'

Expand Down
2 changes: 1 addition & 1 deletion src/extensions/Mention.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</template>

<script>
import { NcUserBubble } from '@nextcloud/vue'
import NcUserBubble from '@nextcloud/vue/components/NcUserBubble'
import { NodeViewWrapper } from '@tiptap/vue-2'
import { getCurrentUser } from '@nextcloud/auth'

Expand Down
7 changes: 6 additions & 1 deletion src/nodes/CodeBlockView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@
<script>
import debounce from 'debounce'
import { NodeViewWrapper, NodeViewContent } from '@tiptap/vue-2'
import { NcActions, NcActionButton, NcActionInput, NcActionLink, NcActionSeparator, NcLoadingIcon } from '@nextcloud/vue'
import NcActions from '@nextcloud/vue/components/NcActions'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
import NcActionInput from '@nextcloud/vue/components/NcActionInput'
import NcActionLink from '@nextcloud/vue/components/NcActionLink'
import NcActionSeparator from '@nextcloud/vue/components/NcActionSeparator'
import NcLoadingIcon from '@nextcloud/vue/components/NcLoadingIcon'
import { v4 as uuidv4 } from 'uuid'

import ViewSplitVertical from 'vue-material-design-icons/ViewSplitVertical.vue'
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/ImageView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
<script>
import ClickOutside from 'vue-click-outside'
import { mapGetters } from 'vuex'
import { NcButton } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/components/NcButton'
import { showError } from '@nextcloud/dialogs'
import ShowImageModal from '../components/ImageView/ShowImageModal.vue'
import store from '../mixins/store.js'
Expand Down
3 changes: 2 additions & 1 deletion src/nodes/Table/TableCellView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@

<script>
import { NodeViewWrapper, NodeViewContent } from '@tiptap/vue-2'
import { NcActions, NcActionButton } from '@nextcloud/vue'
import NcActions from '@nextcloud/vue/components/NcActions'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
import { TableAddRowBefore, TableAddRowAfter, Delete } from '../../components/icons.js'

export default {
Expand Down
4 changes: 3 additions & 1 deletion src/nodes/Table/TableHeaderView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@

<script>
import { NodeViewWrapper, NodeViewContent } from '@tiptap/vue-2'
import { NcActions, NcActionButton, NcActionButtonGroup } from '@nextcloud/vue'
import NcActions from '@nextcloud/vue/components/NcActions'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
import NcActionButtonGroup from '@nextcloud/vue/components/NcActionButtonGroup'
import {
AlignHorizontalCenter,
AlignHorizontalLeft,
Expand Down
3 changes: 2 additions & 1 deletion src/nodes/Table/TableView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

<script>
import { NodeViewWrapper, NodeViewContent } from '@tiptap/vue-2'
import { NcActions, NcActionButton } from '@nextcloud/vue'
import NcActions from '@nextcloud/vue/components/NcActions'
import NcActionButton from '@nextcloud/vue/components/NcActionButton'
import { TableSettings, Delete } from '../../components/icons.js'

export default {
Expand Down
2 changes: 2 additions & 0 deletions src/tests/setup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Vue.prototype.t = global.t
Vue.prototype.n = global.n
Vue.prototype.OC = OC
Vue.prototype.OCA = OCA
// suppress errors from not-explicitly-imported @nc-vue component
global.appName = 'text'

// Mock ClipboardEvent and DragEvent as long as jsdom is used
// https://github.com/ueberdosis/tiptap/issues/4455
Expand Down
2 changes: 1 addition & 1 deletion src/views/FilesSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<script>
import { emit } from '@nextcloud/event-bus'
import axios from '@nextcloud/axios'
import { NcCheckboxRadioSwitch } from '@nextcloud/vue'
import NcCheckboxRadioSwitch from '@nextcloud/vue/components/NcCheckboxRadioSwitch'
import { generateUrl } from '@nextcloud/router'

export default {
Expand Down
Loading