Skip to content

Commit

Permalink
Fix import/extensions issues
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Nov 9, 2021
1 parent 95f722d commit d39de68
Show file tree
Hide file tree
Showing 51 changed files with 193 additions and 195 deletions.
24 changes: 12 additions & 12 deletions js/index.esm.js
Expand Up @@ -5,15 +5,15 @@
* --------------------------------------------------------------------------
*/

export { default as Alert } from './src/alert'
export { default as Button } from './src/button'
export { default as Carousel } from './src/carousel'
export { default as Collapse } from './src/collapse'
export { default as Dropdown } from './src/dropdown'
export { default as Modal } from './src/modal'
export { default as Offcanvas } from './src/offcanvas'
export { default as Popover } from './src/popover'
export { default as ScrollSpy } from './src/scrollspy'
export { default as Tab } from './src/tab'
export { default as Toast } from './src/toast'
export { default as Tooltip } from './src/tooltip'
export { default as Alert } from './src/alert.js'
export { default as Button } from './src/button.js'
export { default as Carousel } from './src/carousel.js'
export { default as Collapse } from './src/collapse.js'
export { default as Dropdown } from './src/dropdown.js'
export { default as Modal } from './src/modal.js'
export { default as Offcanvas } from './src/offcanvas.js'
export { default as Popover } from './src/popover.js'
export { default as ScrollSpy } from './src/scrollspy.js'
export { default as Tab } from './src/tab.js'
export { default as Toast } from './src/toast.js'
export { default as Tooltip } from './src/tooltip.js'
24 changes: 12 additions & 12 deletions js/index.umd.js
Expand Up @@ -5,18 +5,18 @@
* --------------------------------------------------------------------------
*/

import Alert from './src/alert'
import Button from './src/button'
import Carousel from './src/carousel'
import Collapse from './src/collapse'
import Dropdown from './src/dropdown'
import Modal from './src/modal'
import Offcanvas from './src/offcanvas'
import Popover from './src/popover'
import ScrollSpy from './src/scrollspy'
import Tab from './src/tab'
import Toast from './src/toast'
import Tooltip from './src/tooltip'
import Alert from './src/alert.js'
import Button from './src/button.js'
import Carousel from './src/carousel.js'
import Collapse from './src/collapse.js'
import Dropdown from './src/dropdown.js'
import Modal from './src/modal.js'
import Offcanvas from './src/offcanvas.js'
import Popover from './src/popover.js'
import ScrollSpy from './src/scrollspy.js'
import Tab from './src/tab.js'
import Toast from './src/toast.js'
import Tooltip from './src/tooltip.js'

// eslint-disable-next-line import/no-anonymous-default-export
export default {
Expand Down
8 changes: 4 additions & 4 deletions js/src/alert.js
Expand Up @@ -5,10 +5,10 @@
* --------------------------------------------------------------------------
*/

import { defineJQueryPlugin } from './util/index'
import EventHandler from './dom/event-handler'
import BaseComponent from './base-component'
import { enableDismissTrigger } from './util/component-functions'
import { defineJQueryPlugin } from './util/index.js'
import EventHandler from './dom/event-handler.js'
import BaseComponent from './base-component.js'
import { enableDismissTrigger } from './util/component-functions.js'

/**
* Constants
Expand Down
6 changes: 3 additions & 3 deletions js/src/base-component.js
Expand Up @@ -5,12 +5,12 @@
* --------------------------------------------------------------------------
*/

import Data from './dom/data'
import Data from './dom/data.js'
import {
executeAfterTransition,
getElement
} from './util/index'
import EventHandler from './dom/event-handler'
} from './util/index.js'
import EventHandler from './dom/event-handler.js'

/**
* Constants
Expand Down
6 changes: 3 additions & 3 deletions js/src/button.js
Expand Up @@ -5,9 +5,9 @@
* --------------------------------------------------------------------------
*/

import { defineJQueryPlugin } from './util/index'
import EventHandler from './dom/event-handler'
import BaseComponent from './base-component'
import { defineJQueryPlugin } from './util/index.js'
import EventHandler from './dom/event-handler.js'
import BaseComponent from './base-component.js'

/**
* Constants
Expand Down
12 changes: 6 additions & 6 deletions js/src/carousel.js
Expand Up @@ -14,12 +14,12 @@ import {
reflow,
triggerTransitionEnd,
typeCheckConfig
} from './util/index'
import EventHandler from './dom/event-handler'
import Manipulator from './dom/manipulator'
import SelectorEngine from './dom/selector-engine'
import Swipe from './util/swipe'
import BaseComponent from './base-component'
} from './util/index.js'
import EventHandler from './dom/event-handler.js'
import Manipulator from './dom/manipulator.js'
import SelectorEngine from './dom/selector-engine.js'
import Swipe from './util/swipe.js'
import BaseComponent from './base-component.js'

/**
* Constants
Expand Down
10 changes: 5 additions & 5 deletions js/src/collapse.js
Expand Up @@ -12,11 +12,11 @@ import {
getSelectorFromElement,
reflow,
typeCheckConfig
} from './util/index'
import EventHandler from './dom/event-handler'
import Manipulator from './dom/manipulator'
import SelectorEngine from './dom/selector-engine'
import BaseComponent from './base-component'
} from './util/index.js'
import EventHandler from './dom/event-handler.js'
import Manipulator from './dom/manipulator.js'
import SelectorEngine from './dom/selector-engine.js'
import BaseComponent from './base-component.js'

/**
* Constants
Expand Down
2 changes: 1 addition & 1 deletion js/src/dom/event-handler.js
Expand Up @@ -5,7 +5,7 @@
* --------------------------------------------------------------------------
*/

import { getjQuery } from '../util/index'
import { getjQuery } from '../util/index.js'

/**
* Constants
Expand Down
2 changes: 1 addition & 1 deletion js/src/dom/selector-engine.js
Expand Up @@ -5,7 +5,7 @@
* --------------------------------------------------------------------------
*/

import { isDisabled, isVisible } from '../util/index'
import { isDisabled, isVisible } from '../util/index.js'

/**
* Constants
Expand Down
10 changes: 5 additions & 5 deletions js/src/dropdown.js
Expand Up @@ -17,11 +17,11 @@ import {
isVisible,
noop,
typeCheckConfig
} from './util/index'
import EventHandler from './dom/event-handler'
import Manipulator from './dom/manipulator'
import SelectorEngine from './dom/selector-engine'
import BaseComponent from './base-component'
} from './util/index.js'
import EventHandler from './dom/event-handler.js'
import Manipulator from './dom/manipulator.js'
import SelectorEngine from './dom/selector-engine.js'
import BaseComponent from './base-component.js'

/**
* Constants
Expand Down
18 changes: 9 additions & 9 deletions js/src/modal.js
Expand Up @@ -12,15 +12,15 @@ import {
isVisible,
reflow,
typeCheckConfig
} from './util/index'
import EventHandler from './dom/event-handler'
import Manipulator from './dom/manipulator'
import SelectorEngine from './dom/selector-engine'
import ScrollBarHelper from './util/scrollbar'
import BaseComponent from './base-component'
import Backdrop from './util/backdrop'
import FocusTrap from './util/focustrap'
import { enableDismissTrigger } from './util/component-functions'
} from './util/index.js'
import EventHandler from './dom/event-handler.js'
import Manipulator from './dom/manipulator.js'
import SelectorEngine from './dom/selector-engine.js'
import ScrollBarHelper from './util/scrollbar.js'
import BaseComponent from './base-component.js'
import Backdrop from './util/backdrop.js'
import FocusTrap from './util/focustrap.js'
import { enableDismissTrigger } from './util/component-functions.js'

/**
* Constants
Expand Down
18 changes: 9 additions & 9 deletions js/src/offcanvas.js
Expand Up @@ -11,15 +11,15 @@ import {
isDisabled,
isVisible,
typeCheckConfig
} from './util/index'
import ScrollBarHelper from './util/scrollbar'
import EventHandler from './dom/event-handler'
import BaseComponent from './base-component'
import SelectorEngine from './dom/selector-engine'
import Manipulator from './dom/manipulator'
import Backdrop from './util/backdrop'
import FocusTrap from './util/focustrap'
import { enableDismissTrigger } from './util/component-functions'
} from './util/index.js'
import ScrollBarHelper from './util/scrollbar.js'
import EventHandler from './dom/event-handler.js'
import BaseComponent from './base-component.js'
import SelectorEngine from './dom/selector-engine.js'
import Manipulator from './dom/manipulator.js'
import Backdrop from './util/backdrop.js'
import FocusTrap from './util/focustrap.js'
import { enableDismissTrigger } from './util/component-functions.js'

/**
* Constants
Expand Down
4 changes: 2 additions & 2 deletions js/src/popover.js
Expand Up @@ -5,8 +5,8 @@
* --------------------------------------------------------------------------
*/

import { defineJQueryPlugin } from './util/index'
import Tooltip from './tooltip'
import { defineJQueryPlugin } from './util/index.js'
import Tooltip from './tooltip.js'

/**
* Constants
Expand Down
10 changes: 5 additions & 5 deletions js/src/scrollspy.js
Expand Up @@ -10,11 +10,11 @@ import {
getElement,
getSelectorFromElement,
typeCheckConfig
} from './util/index'
import EventHandler from './dom/event-handler'
import Manipulator from './dom/manipulator'
import SelectorEngine from './dom/selector-engine'
import BaseComponent from './base-component'
} from './util/index.js'
import EventHandler from './dom/event-handler.js'
import Manipulator from './dom/manipulator.js'
import SelectorEngine from './dom/selector-engine.js'
import BaseComponent from './base-component.js'

/**
* Constants
Expand Down
8 changes: 4 additions & 4 deletions js/src/tab.js
Expand Up @@ -10,10 +10,10 @@ import {
getElementFromSelector,
isDisabled,
reflow
} from './util/index'
import EventHandler from './dom/event-handler'
import SelectorEngine from './dom/selector-engine'
import BaseComponent from './base-component'
} from './util/index.js'
import EventHandler from './dom/event-handler.js'
import SelectorEngine from './dom/selector-engine.js'
import BaseComponent from './base-component.js'

/**
* Constants
Expand Down
10 changes: 5 additions & 5 deletions js/src/toast.js
Expand Up @@ -9,11 +9,11 @@ import {
defineJQueryPlugin,
reflow,
typeCheckConfig
} from './util/index'
import EventHandler from './dom/event-handler'
import Manipulator from './dom/manipulator'
import BaseComponent from './base-component'
import { enableDismissTrigger } from './util/component-functions'
} from './util/index.js'
import EventHandler from './dom/event-handler.js'
import Manipulator from './dom/manipulator.js'
import BaseComponent from './base-component.js'
import { enableDismissTrigger } from './util/component-functions.js'

/**
* Constants
Expand Down
14 changes: 7 additions & 7 deletions js/src/tooltip.js
Expand Up @@ -15,13 +15,13 @@ import {
isRTL,
noop,
typeCheckConfig
} from './util/index'
import { DefaultAllowlist, sanitizeHtml } from './util/sanitizer'
import Data from './dom/data'
import EventHandler from './dom/event-handler'
import Manipulator from './dom/manipulator'
import SelectorEngine from './dom/selector-engine'
import BaseComponent from './base-component'
} from './util/index.js'
import { DefaultAllowlist, sanitizeHtml } from './util/sanitizer.js'
import Data from './dom/data.js'
import EventHandler from './dom/event-handler.js'
import Manipulator from './dom/manipulator.js'
import SelectorEngine from './dom/selector-engine.js'
import BaseComponent from './base-component.js'

/**
* Constants
Expand Down
4 changes: 2 additions & 2 deletions js/src/util/backdrop.js
Expand Up @@ -5,8 +5,8 @@
* --------------------------------------------------------------------------
*/

import EventHandler from '../dom/event-handler'
import { execute, executeAfterTransition, getElement, reflow, typeCheckConfig } from './index'
import EventHandler from '../dom/event-handler.js'
import { execute, executeAfterTransition, getElement, reflow, typeCheckConfig } from './index.js'

/**
* Constants
Expand Down
4 changes: 2 additions & 2 deletions js/src/util/component-functions.js
Expand Up @@ -5,8 +5,8 @@
* --------------------------------------------------------------------------
*/

import EventHandler from '../dom/event-handler'
import { getElementFromSelector, isDisabled } from './index'
import EventHandler from '../dom/event-handler.js'
import { getElementFromSelector, isDisabled } from './index.js'

const enableDismissTrigger = (component, method = 'hide') => {
const clickEvent = `click.dismiss${component.EVENT_KEY}`
Expand Down
6 changes: 3 additions & 3 deletions js/src/util/focustrap.js
Expand Up @@ -5,9 +5,9 @@
* --------------------------------------------------------------------------
*/

import EventHandler from '../dom/event-handler'
import SelectorEngine from '../dom/selector-engine'
import { typeCheckConfig } from './index'
import EventHandler from '../dom/event-handler.js'
import SelectorEngine from '../dom/selector-engine.js'
import { typeCheckConfig } from './index.js'

/**
* Constants
Expand Down
6 changes: 3 additions & 3 deletions js/src/util/scrollbar.js
Expand Up @@ -5,9 +5,9 @@
* --------------------------------------------------------------------------
*/

import SelectorEngine from '../dom/selector-engine'
import Manipulator from '../dom/manipulator'
import { isElement } from './index'
import SelectorEngine from '../dom/selector-engine.js'
import Manipulator from '../dom/manipulator.js'
import { isElement } from './index.js'

/**
* Constants
Expand Down
4 changes: 2 additions & 2 deletions js/src/util/swipe.js
Expand Up @@ -5,8 +5,8 @@
* --------------------------------------------------------------------------
*/

import EventHandler from '../dom/event-handler'
import { execute, typeCheckConfig } from './index'
import EventHandler from '../dom/event-handler.js'
import { execute, typeCheckConfig } from './index.js'

/**
* Constants
Expand Down
4 changes: 2 additions & 2 deletions js/tests/integration/bundle-modularity.js
@@ -1,5 +1,5 @@
import Tooltip from '../../dist/tooltip'
import '../../dist/carousel' // eslint-disable-line import/no-unassigned-import
import Tooltip from '../../dist/tooltip.js'
import '../../dist/carousel.js' // eslint-disable-line import/no-unassigned-import

window.addEventListener('load', () => {
[].concat(...document.querySelectorAll('[data-bs-toggle="tooltip"]'))
Expand Down
2 changes: 1 addition & 1 deletion js/tests/integration/rollup.bundle-modularity.js
@@ -1,7 +1,7 @@
/* eslint-env node */

const commonjs = require('@rollup/plugin-commonjs')
const configRollup = require('./rollup.bundle')
const configRollup = require('./rollup.bundle.js')

const config = {
...configRollup,
Expand Down
2 changes: 1 addition & 1 deletion js/tests/karma.conf.js
Expand Up @@ -13,7 +13,7 @@ const replace = require('@rollup/plugin-replace')
const {
browsers,
browsersKeys
} = require('./browsers')
} = require('./browsers.js')

const ENV = process.env
const BROWSERSTACK = Boolean(ENV.BROWSERSTACK)
Expand Down
6 changes: 3 additions & 3 deletions js/tests/unit/alert.spec.js
@@ -1,6 +1,6 @@
import Alert from '../../src/alert'
import { getTransitionDurationFromElement } from '../../src/util/index'
import { clearFixture, getFixture, jQueryMock } from '../helpers/fixture'
import Alert from '../../src/alert.js'
import { getTransitionDurationFromElement } from '../../src/util/index.js'
import { clearFixture, getFixture, jQueryMock } from '../helpers/fixture.js'

describe('Alert', () => {
let fixtureEl
Expand Down

0 comments on commit d39de68

Please sign in to comment.