Skip to content

Commit 7d9105f

Browse files
committed
fix: temporarily add necessary exports
Some of these exports are probably not supposed to be exposed. It's just temporary
1 parent 0f1d0e3 commit 7d9105f

File tree

2 files changed

+63
-5
lines changed

2 files changed

+63
-5
lines changed

apps/playground/src/App.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,11 +1895,7 @@ import {
18951895
Ref,
18961896
ref,
18971897
} from 'vue'
1898-
import {useToast} from 'bootstrap-vue-3'
1899-
import {BvEvent} from 'bootstrap-vue-3/dist/utils/bvEvent'
1900-
import {TableField, TableItem} from 'bootstrap-vue-3/dist/types'
1901-
import {useBreadcrumb} from 'bootstrap-vue-3/src/composables/useBreadcrumb'
1902-
1898+
import {BvEvent, TableField, TableItem, useBreadcrumb, useToast} from 'bootstrap-vue-3'
19031899
export default defineComponent({
19041900
name: 'App',
19051901
setup() {

packages/bootstrap-vue-3/src/BootstrapVue.ts

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ import BTransition from './components/BTransition/BTransition.vue'
102102
// Export available composables
103103
export {useToast}
104104

105+
// Export utils
106+
export {BvEvent} from './utils/bvEvent'
107+
105108
// Export available directives
106109
export {default as VBPopover} from './directives/BPopover'
107110
export {default as VBToggle} from './directives/BToggle'
@@ -128,6 +131,26 @@ const plugin: Plugin = {
128131
export {plugin as BootstrapVue3}
129132
export default plugin
130133

134+
// Export composables
135+
export {
136+
useId,
137+
normalizeOptions,
138+
useFormInput,
139+
COMMON_INPUT_PROPS,
140+
useAlignment,
141+
createBreadcrumb,
142+
useBreadcrumb,
143+
useEventListener,
144+
getClasses,
145+
getInputClasses,
146+
getLabelClasses,
147+
getGroupAttr,
148+
getGroupClasses,
149+
slotsToElements,
150+
optionToElement,
151+
bindGroupProps,
152+
} from './composables'
153+
131154
// Export available plugins
132155
// Not to be confused with the above main app plugin
133156
export {BToastPlugin}
@@ -231,6 +254,45 @@ declare module '@vue/runtime-core' {
231254
}
232255
}
233256

257+
// Export types
258+
export type {
259+
Alignment,
260+
Animation,
261+
BootstrapVueOptions,
262+
BreadcrumbItem,
263+
BreadcrumbItemObject,
264+
Breakpoint,
265+
ColBreakpointProps,
266+
RowColsBreakpointProps,
267+
OffsetBreakpointProps,
268+
OrderBreakpointProps,
269+
ButtonType,
270+
ButtonVariant,
271+
ColorVariant,
272+
ContainerVerticalAlign,
273+
ContainerHorizontalAlign,
274+
ContainerPosition,
275+
InputSize,
276+
InputType,
277+
LinkTarget,
278+
LiteralUnion,
279+
Pagination,
280+
PaginationPage,
281+
Position,
282+
RadioOption,
283+
SelectOption,
284+
Size,
285+
SkeletonAnimation,
286+
SkeletonType,
287+
SpinnerType,
288+
TableFieldObject,
289+
TableField,
290+
TableItem,
291+
TextColorVariant,
292+
TransitionMode,
293+
VerticalAlign,
294+
} from './types'
295+
234296
// Finally export components
235297
export {
236298
BAccordion,

0 commit comments

Comments
 (0)