chore: Bump @nextcloud/vue @nextcloud/webpack-vue-config and remove @nextcloud/vue-richtext

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-04-26 16:41:05 +02:00
parent 8f7712011f
commit df0db786be
8 changed files with 28 additions and 62 deletions

46
package-lock.json generated
View File

@@ -21,8 +21,7 @@
"@nextcloud/moment": "^1.2.1", "@nextcloud/moment": "^1.2.1",
"@nextcloud/notify_push": "^1.1.3", "@nextcloud/notify_push": "^1.1.3",
"@nextcloud/router": "^2.1.1", "@nextcloud/router": "^2.1.1",
"@nextcloud/vue": "^7.8.4", "@nextcloud/vue": "^7.10.0",
"@nextcloud/vue-richtext": "^2.0.4",
"blueimp-md5": "^2.19.0", "blueimp-md5": "^2.19.0",
"dompurify": "^3.0.2", "dompurify": "^3.0.2",
"lodash": "^4.17.21", "lodash": "^4.17.21",
@@ -50,7 +49,7 @@
"@nextcloud/cypress": "^1.0.0-beta.2", "@nextcloud/cypress": "^1.0.0-beta.2",
"@nextcloud/eslint-config": "^8.2.1", "@nextcloud/eslint-config": "^8.2.1",
"@nextcloud/stylelint-config": "^2.3.0", "@nextcloud/stylelint-config": "^2.3.0",
"@nextcloud/webpack-vue-config": "^5.5.0", "@nextcloud/webpack-vue-config": "^5.5.1",
"@relative-ci/agent": "^4.1.4", "@relative-ci/agent": "^4.1.4",
"@vue/test-utils": "^1.3.5", "@vue/test-utils": "^1.3.5",
"@vue/vue2-jest": "^29.2.3", "@vue/vue2-jest": "^29.2.3",
@@ -3481,24 +3480,6 @@
"npm": "^7.0.0 || ^8.0.0" "npm": "^7.0.0 || ^8.0.0"
} }
}, },
"node_modules/@nextcloud/vue-richtext": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/@nextcloud/vue-richtext/-/vue-richtext-2.0.4.tgz",
"integrity": "sha512-+873AF/G8OPVz2lwajpGVRfJ1v492CeiBTrguOkOwSGReNukGyHryCucF6rZGiMFenVIpp8BjNkqjHwkh6Cs4A==",
"dependencies": {
"@nextcloud/axios": "^2.0.0",
"@nextcloud/router": "^2.0.0",
"clone": "^2.1.2",
"vue": "^2.7.8"
},
"engines": {
"node": ">=14.0.0",
"npm": ">=7.0.0"
},
"peerDependencies": {
"vue": "^2.7.8"
}
},
"node_modules/@nextcloud/vue-select": { "node_modules/@nextcloud/vue-select": {
"version": "3.22.2", "version": "3.22.2",
"resolved": "https://registry.npmjs.org/@nextcloud/vue-select/-/vue-select-3.22.2.tgz", "resolved": "https://registry.npmjs.org/@nextcloud/vue-select/-/vue-select-3.22.2.tgz",
@@ -3639,9 +3620,9 @@
} }
}, },
"node_modules/@nextcloud/webpack-vue-config": { "node_modules/@nextcloud/webpack-vue-config": {
"version": "5.5.0", "version": "5.5.1",
"resolved": "https://registry.npmjs.org/@nextcloud/webpack-vue-config/-/webpack-vue-config-5.5.0.tgz", "resolved": "https://registry.npmjs.org/@nextcloud/webpack-vue-config/-/webpack-vue-config-5.5.1.tgz",
"integrity": "sha512-bKlGYEqblSiSHNmpaGM9fz/f9v6JNwHp63V63yaI26gE0Zs+DpZSzJWC6HWWbJ1BgmoKT7wLN1GJc4W/NxvnxQ==", "integrity": "sha512-2Q3kPnsvkKeENG3rruTjAE1oz/9w0u5QMKO8oh9arL2TIO2aswkDKBtkmu6q7Po3tE+3B2f+ggHq1PNkhtwu6w==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": "^16.0.0", "node": "^16.0.0",
@@ -21633,17 +21614,6 @@
} }
} }
}, },
"@nextcloud/vue-richtext": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/@nextcloud/vue-richtext/-/vue-richtext-2.0.4.tgz",
"integrity": "sha512-+873AF/G8OPVz2lwajpGVRfJ1v492CeiBTrguOkOwSGReNukGyHryCucF6rZGiMFenVIpp8BjNkqjHwkh6Cs4A==",
"requires": {
"@nextcloud/axios": "^2.0.0",
"@nextcloud/router": "^2.0.0",
"clone": "^2.1.2",
"vue": "^2.7.8"
}
},
"@nextcloud/vue-select": { "@nextcloud/vue-select": {
"version": "3.22.2", "version": "3.22.2",
"resolved": "https://registry.npmjs.org/@nextcloud/vue-select/-/vue-select-3.22.2.tgz", "resolved": "https://registry.npmjs.org/@nextcloud/vue-select/-/vue-select-3.22.2.tgz",
@@ -21651,9 +21621,9 @@
"requires": {} "requires": {}
}, },
"@nextcloud/webpack-vue-config": { "@nextcloud/webpack-vue-config": {
"version": "5.5.0", "version": "5.5.1",
"resolved": "https://registry.npmjs.org/@nextcloud/webpack-vue-config/-/webpack-vue-config-5.5.0.tgz", "resolved": "https://registry.npmjs.org/@nextcloud/webpack-vue-config/-/webpack-vue-config-5.5.1.tgz",
"integrity": "sha512-bKlGYEqblSiSHNmpaGM9fz/f9v6JNwHp63V63yaI26gE0Zs+DpZSzJWC6HWWbJ1BgmoKT7wLN1GJc4W/NxvnxQ==", "integrity": "sha512-2Q3kPnsvkKeENG3rruTjAE1oz/9w0u5QMKO8oh9arL2TIO2aswkDKBtkmu6q7Po3tE+3B2f+ggHq1PNkhtwu6w==",
"dev": true, "dev": true,
"requires": {} "requires": {}
}, },

View File

@@ -41,8 +41,7 @@
"@nextcloud/moment": "^1.2.1", "@nextcloud/moment": "^1.2.1",
"@nextcloud/notify_push": "^1.1.3", "@nextcloud/notify_push": "^1.1.3",
"@nextcloud/router": "^2.1.1", "@nextcloud/router": "^2.1.1",
"@nextcloud/vue": "^7.8.4", "@nextcloud/vue": "^7.10.0",
"@nextcloud/vue-richtext": "^2.0.4",
"blueimp-md5": "^2.19.0", "blueimp-md5": "^2.19.0",
"dompurify": "^3.0.2", "dompurify": "^3.0.2",
"lodash": "^4.17.21", "lodash": "^4.17.21",
@@ -77,7 +76,7 @@
"@nextcloud/cypress": "^1.0.0-beta.2", "@nextcloud/cypress": "^1.0.0-beta.2",
"@nextcloud/eslint-config": "^8.2.1", "@nextcloud/eslint-config": "^8.2.1",
"@nextcloud/stylelint-config": "^2.3.0", "@nextcloud/stylelint-config": "^2.3.0",
"@nextcloud/webpack-vue-config": "^5.5.0", "@nextcloud/webpack-vue-config": "^5.5.1",
"@relative-ci/agent": "^4.1.4", "@relative-ci/agent": "^4.1.4",
"@vue/test-utils": "^1.3.5", "@vue/test-utils": "^1.3.5",
"@vue/vue2-jest": "^29.2.3", "@vue/vue2-jest": "^29.2.3",

View File

@@ -24,7 +24,7 @@
<div v-if="activity" class="activity"> <div v-if="activity" class="activity">
<div class="activity--header"> <div class="activity--header">
<img :src="activity.icon" class="activity--icon"> <img :src="activity.icon" class="activity--icon">
<RichText class="activity--subject" :text="message.subject" :arguments="message.parameters" /> <NcRichText class="activity--subject" :text="message.subject" :arguments="message.parameters" />
<div class="activity--timestamp"> <div class="activity--timestamp">
{{ relativeDate(activity.datetime) }} {{ relativeDate(activity.datetime) }}
</div> </div>
@@ -35,8 +35,7 @@
</template> </template>
<script> <script>
import { RichText } from '@nextcloud/vue-richtext' import { NcRichText, NcUserBubble } from '@nextcloud/vue'
import { NcUserBubble } from '@nextcloud/vue'
import moment from '@nextcloud/moment' import moment from '@nextcloud/moment'
import DOMPurify from 'dompurify' import DOMPurify from 'dompurify'
import relativeDate from '../mixins/relativeDate.js' import relativeDate from '../mixins/relativeDate.js'
@@ -61,7 +60,7 @@ const InternalLink = {
export default { export default {
name: 'ActivityEntry', name: 'ActivityEntry',
components: { components: {
RichText, NcRichText,
}, },
mixins: [relativeDate], mixins: [relativeDate],
props: { props: {

View File

@@ -12,7 +12,7 @@
</NcActionButton> </NcActionButton>
</NcActions> </NcActions>
</div> </div>
<RichText class="comment--content" <NcRichText class="comment--content"
:text="richText(comment)" :text="richText(comment)"
:arguments="richArgs(comment)" :arguments="richArgs(comment)"
:autolink="true" /> :autolink="true" />
@@ -54,7 +54,7 @@
</div> </div>
<CommentItem v-if="comment.replyTo" :reply="true" :comment="comment.replyTo" /> <CommentItem v-if="comment.replyTo" :reply="true" :comment="comment.replyTo" />
<div v-show="!edit" ref="richTextElement"> <div v-show="!edit" ref="richTextElement">
<RichText class="comment--content" <NcRichText class="comment--content"
:text="richText(comment)" :text="richText(comment)"
:arguments="richArgs(comment)" :arguments="richArgs(comment)"
:autolink="true" /> :autolink="true" />
@@ -64,8 +64,7 @@
</template> </template>
<script> <script>
import { NcAvatar, NcActions, NcActionButton, NcUserBubble } from '@nextcloud/vue' import { NcAvatar, NcActions, NcActionButton, NcRichText, NcUserBubble } from '@nextcloud/vue'
import { RichText } from '@nextcloud/vue-richtext'
import CommentForm from './CommentForm.vue' import CommentForm from './CommentForm.vue'
import { getCurrentUser } from '@nextcloud/auth' import { getCurrentUser } from '@nextcloud/auth'
import md5 from 'blueimp-md5' import md5 from 'blueimp-md5'
@@ -93,7 +92,7 @@ export default {
NcActions, NcActions,
NcActionButton, NcActionButton,
CommentForm, CommentForm,
RichText, NcRichText,
ReplyIcon, ReplyIcon,
}, },
mixins: [relativeDate], mixins: [relativeDate],

View File

@@ -23,7 +23,7 @@
<template> <template>
<div v-if="searchQuery!==''" class="global-search"> <div v-if="searchQuery!==''" class="global-search">
<h2> <h2>
<RichText :text="t('deck', 'Search for {searchQuery} in all boards')" :arguments="queryStringArgs" /> <NcRichText :text="t('deck', 'Search for {searchQuery} in all boards')" :arguments="queryStringArgs" />
<div v-if="loading" class="icon-loading-small" /> <div v-if="loading" class="icon-loading-small" />
</h2> </h2>
<NcActions> <NcActions>
@@ -57,9 +57,8 @@ import { mapState } from 'vuex'
import axios from '@nextcloud/axios' import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router' import { generateOcsUrl } from '@nextcloud/router'
import InfiniteLoading from 'vue-infinite-loading' import InfiniteLoading from 'vue-infinite-loading'
import { RichText } from '@nextcloud/vue-richtext'
import Placeholder from './Placeholder.vue' import Placeholder from './Placeholder.vue'
import { NcActions, NcActionButton } from '@nextcloud/vue' import { NcActions, NcActionButton, NcRichText } from '@nextcloud/vue'
const createCancelToken = () => axios.CancelToken.source() const createCancelToken = () => axios.CancelToken.source()
@@ -88,7 +87,7 @@ function search({ query, cursor }) {
export default { export default {
name: 'GlobalSearchResults', name: 'GlobalSearchResults',
components: { CardItem, InfiniteLoading, RichText, Placeholder, NcActions, NcActionButton }, components: { CardItem, InfiniteLoading, NcRichText, Placeholder, NcActions, NcActionButton },
data() { data() {
return { return {
results: [], results: [],

View File

@@ -19,7 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
import { registerWidget } from '@nextcloud/vue-richtext' import { registerWidget } from '@nextcloud/vue/dist/Components/NcRichText.js'
import { Tooltip } from '@nextcloud/vue' import { Tooltip } from '@nextcloud/vue'
import Vue from 'vue' import Vue from 'vue'
import CardReferenceWidget from './views/CardReferenceWidget.vue' import CardReferenceWidget from './views/CardReferenceWidget.vue'

View File

@@ -67,7 +67,7 @@
'description': true, 'description': true,
'short-description': shortDescription, 'short-description': shortDescription,
}"> }">
<RichText v-tooltip.top="{ content: shortDescription ? t('deck', 'Click to expand description') : undefined }" <NcRichText v-tooltip.top="{ content: shortDescription ? t('deck', 'Click to expand description') : undefined }"
:text="card.description" :text="card.description"
:use-markdown="true" :use-markdown="true"
@click.native="shortDescription = !shortDescription" /> @click.native="shortDescription = !shortDescription" />
@@ -90,7 +90,7 @@ import DeckIcon from '../components/icons/DeckIcon.vue'
import AvatarList from '../components/cards/AvatarList.vue' import AvatarList from '../components/cards/AvatarList.vue'
import labelStyle from '../mixins/labelStyle.js' import labelStyle from '../mixins/labelStyle.js'
import { RichText } from '@nextcloud/vue-richtext' import { NcRichText } from '@nextcloud/vue'
import moment from '@nextcloud/moment' import moment from '@nextcloud/moment'
import { generateUrl } from '@nextcloud/router' import { generateUrl } from '@nextcloud/router'
@@ -103,7 +103,7 @@ export default {
CalendarBlankIcon, CalendarBlankIcon,
CardBulletedOutlineIcon, CardBulletedOutlineIcon,
TextIcon, TextIcon,
RichText, NcRichText,
}, },
mixins: [labelStyle], mixins: [labelStyle],

View File

@@ -67,7 +67,7 @@
'description': true, 'description': true,
'short-description': shortDescription, 'short-description': shortDescription,
}"> }">
<RichText v-tooltip.top="{ content: shortDescription ? t('deck', 'Click to expand description') : undefined }" <NcRichText v-tooltip.top="{ content: shortDescription ? t('deck', 'Click to expand description') : undefined }"
:text="card.description" :text="card.description"
:use-markdown="true" :use-markdown="true"
@click.native="shortDescription = !shortDescription" /> @click.native="shortDescription = !shortDescription" />
@@ -84,7 +84,7 @@
'comment': true, 'comment': true,
'short-comment': shortComment, 'short-comment': shortComment,
}"> }">
<RichText v-tooltip.top="{ content: shortComment ? t('deck', 'Click to expand comment') : undefined }" <NcRichText v-tooltip.top="{ content: shortComment ? t('deck', 'Click to expand comment') : undefined }"
:text="commentMessageText" :text="commentMessageText"
:use-markdown="false" :use-markdown="false"
@click.native="shortComment = !shortComment" /> @click.native="shortComment = !shortComment" />
@@ -103,7 +103,7 @@ import DeckIcon from '../components/icons/DeckIcon.vue'
import AvatarList from '../components/cards/AvatarList.vue' import AvatarList from '../components/cards/AvatarList.vue'
import labelStyle from '../mixins/labelStyle.js' import labelStyle from '../mixins/labelStyle.js'
import { RichText } from '@nextcloud/vue-richtext' import { NcRichText } from '@nextcloud/vue'
import moment from '@nextcloud/moment' import moment from '@nextcloud/moment'
import { generateUrl } from '@nextcloud/router' import { generateUrl } from '@nextcloud/router'
@@ -116,7 +116,7 @@ export default {
CalendarBlankIcon, CalendarBlankIcon,
TextIcon, TextIcon,
CardBulletedOutlineIcon, CardBulletedOutlineIcon,
RichText, NcRichText,
CommentProcessingOutlineIcon, CommentProcessingOutlineIcon,
}, },