bootstrap-vue-next 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/nuxt.ts +15 -7
- package/package.json +1 -1
package/nuxt.ts
CHANGED
|
@@ -9,6 +9,7 @@ interface Base {
|
|
|
9
9
|
type ObjectExtension = Record<string, boolean | undefined>
|
|
10
10
|
|
|
11
11
|
interface PluginObject extends ObjectExtension {
|
|
12
|
+
colorMode?: boolean
|
|
12
13
|
popover?: boolean
|
|
13
14
|
toggle?: boolean
|
|
14
15
|
tooltip?: boolean
|
|
@@ -16,6 +17,7 @@ interface PluginObject extends ObjectExtension {
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
const pluginsBase: PluginObject = {
|
|
20
|
+
colorMode: undefined,
|
|
19
21
|
popover: undefined,
|
|
20
22
|
toggle: undefined,
|
|
21
23
|
tooltip: undefined,
|
|
@@ -23,12 +25,14 @@ const pluginsBase: PluginObject = {
|
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
interface ComposableObject extends ObjectExtension {
|
|
26
|
-
useToast?: boolean
|
|
27
28
|
useBreadcrumb?: boolean
|
|
29
|
+
useColorMode?: boolean
|
|
30
|
+
useToast?: boolean
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
const composablesBase: ComposableObject = {
|
|
31
34
|
useBreadcrumb: undefined,
|
|
35
|
+
useColorMode: undefined,
|
|
32
36
|
useToast: undefined,
|
|
33
37
|
}
|
|
34
38
|
|
|
@@ -81,18 +85,22 @@ export default defineNuxtModule<ModuleOptions>({
|
|
|
81
85
|
composables: {all: true},
|
|
82
86
|
},
|
|
83
87
|
setup(opts) {
|
|
88
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
89
|
+
// @ts-ignore
|
|
84
90
|
const {resolve} = createResolver(import.meta.url)
|
|
85
91
|
|
|
86
92
|
const plugins: Record<keyof PluginObject, Import> = {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
colorMode: {from: 'bootstrap-vue-next', name: 'vBColorMode'},
|
|
94
|
+
popover: {from: 'bootstrap-vue-next', name: 'vBPopover'},
|
|
95
|
+
toggle: {from: 'bootstrap-vue-next', name: 'vBToggle'},
|
|
96
|
+
tooltip: {from: 'bootstrap-vue-next', name: 'vBTooltip'},
|
|
97
|
+
visible: {from: 'bootstrap-vue-next', name: 'vBVisible'},
|
|
91
98
|
}
|
|
92
99
|
|
|
93
100
|
const composables: Record<keyof ComposableObject, Import> = {
|
|
94
|
-
useBreadcrumb: {from: '
|
|
95
|
-
|
|
101
|
+
useBreadcrumb: {from: 'bootstrap-vue-next', name: 'useBreadcrumb'},
|
|
102
|
+
useColorMode: {from: 'bootstrap-vue-next', name: 'useColorMode'},
|
|
103
|
+
useToast: {from: 'bootstrap-vue-next', name: 'useToast'},
|
|
96
104
|
}
|
|
97
105
|
|
|
98
106
|
addComponentsDir({
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "bootstrap-vue-next",
|
|
3
3
|
"displayName": "BootstrapVueNext",
|
|
4
4
|
"description": "Early (but lovely) implementation of Vue 3, Bootstrap 5 and Typescript",
|
|
5
|
-
"version": "0.6.
|
|
5
|
+
"version": "0.6.2",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "./dist/bootstrap-vue-next.umd.js",
|
|
8
8
|
"module": "./dist/bootstrap-vue-next.es.js",
|