Skip to content

Commit 17a9068

Browse files
authored
Merge pull request #1992 from nextcloud-libraries/dependabot/npm_and_yarn/nextcloud/dialogs-6.4.2
chore(deps): Bump @nextcloud/dialogs from 6.1.1 to 6.4.2
2 parents 62704a5 + b5f3a62 commit 17a9068

File tree

4 files changed

+42
-63
lines changed

4 files changed

+42
-63
lines changed

lib/dialogs/utils/dialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import type { InvalidFilenameError } from '@nextcloud/files'
77

8-
import { spawnDialog } from '@nextcloud/dialogs'
8+
import { spawnDialog } from '@nextcloud/vue/functions/dialog'
99
import { validateFilename } from '@nextcloud/files'
1010
import { defineAsyncComponent } from 'vue'
1111

lib/vue-shim.d.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@ declare module '*.vue' {
77
export default Vue
88
}
99

10-
declare module '@nextcloud/vue/dist/Components/*.js' {
11-
import Vue from 'vue'
12-
export default Vue
10+
declare module '@nextcloud/vue/functions/dialog' {
11+
import { Component, AsyncComponent } from 'vue'
12+
type SpawnDialogOptions = {
13+
/**
14+
* Container to mount the dialog to
15+
*
16+
* @default document.body
17+
*/
18+
container?: Element | string;
19+
}
20+
export declare function spawnDialog(dialog: Component | AsyncComponent, props?: object, onClose?: (...rest: unknown[]) => void): void
21+
export declare function spawnDialog(dialog: Component | AsyncComponent, props?: object, options?: SpawnDialogOptions, onClose?: (...rest: unknown[]) => void): void
1322
}

package-lock.json

Lines changed: 28 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@nextcloud/auth": "^2.5.3",
5353
"@nextcloud/axios": "^2.5.2",
5454
"@nextcloud/capabilities": "^1.2.1",
55-
"@nextcloud/dialogs": "^6.1.1",
55+
"@nextcloud/dialogs": "^6.4.2",
5656
"@nextcloud/files": "^3.12.2",
5757
"@nextcloud/l10n": "^3.4.1",
5858
"@nextcloud/logger": "^3.0.3",

0 commit comments

Comments
 (0)