-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(js): Exporting an esm bundle of the ECL js, using it in storybo…
…ok - FRONT-4701
- Loading branch information
Showing
12 changed files
with
216 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import '@ecl/dom-utils/polyfills'; | ||
|
||
import Accordion from '@ecl/vanilla-component-accordion'; | ||
import autoInit from '@ecl/dom-utils/autoinit'; | ||
import Banner from '@ecl/vanilla-component-banner'; | ||
import Carousel from '@ecl/vanilla-component-carousel'; | ||
import CategoryFilter from '@ecl/vanilla-component-category-filter'; | ||
import Datepicker from '@ecl/vanilla-component-datepicker'; | ||
import Breadcrumb from '@ecl/vanilla-component-breadcrumb'; | ||
import ContentBlock from '@ecl/vanilla-component-content-block'; | ||
import DescriptionList from '@ecl/vanilla-component-description-list'; | ||
import Expandable from '@ecl/vanilla-component-expandable'; | ||
import FileDownload from '@ecl/vanilla-component-file'; | ||
import FileUpload from '@ecl/vanilla-component-file-upload'; | ||
import Gallery from '@ecl/vanilla-component-gallery'; | ||
import Indicator from '@ecl/vanilla-component-indicator'; | ||
import InpageNavigation from '@ecl/vanilla-component-inpage-navigation'; | ||
import MediaContainer from '@ecl/vanilla-component-media-container'; | ||
import MegaMenu from '@ecl/vanilla-component-mega-menu'; | ||
import Menu from '@ecl/vanilla-component-menu'; | ||
import Modal from '@ecl/vanilla-component-modal'; | ||
import NewsTicker from '@ecl/vanilla-component-news-ticker'; | ||
import Notification from '@ecl/vanilla-component-notification'; | ||
import Popover from '@ecl/vanilla-component-popover'; | ||
import Range from '@ecl/vanilla-component-range'; | ||
import Select from '@ecl/vanilla-component-select'; | ||
import SiteHeader from '@ecl/vanilla-component-site-header'; | ||
import Table from '@ecl/vanilla-component-table'; | ||
import Tabs from '@ecl/vanilla-component-tabs'; | ||
import Timeline from '@ecl/vanilla-component-timeline'; | ||
|
||
const ECL = { | ||
autoInit, | ||
Accordion, | ||
Banner, | ||
Carousel, | ||
CategoryFilter, | ||
Datepicker, | ||
Breadcrumb, | ||
ContentBlock, | ||
DescriptionList, | ||
Expandable, | ||
FileDownload, | ||
FileUpload, | ||
Gallery, | ||
Indicator, | ||
InpageNavigation, | ||
MediaContainer, | ||
MegaMenu, | ||
Menu, | ||
Modal, | ||
NewsTicker, | ||
Notification, | ||
Popover, | ||
Range, | ||
Select, | ||
SiteHeader, | ||
Tabs, | ||
Table, | ||
Timeline, | ||
}; | ||
|
||
// eslint-disable-next-line import/prefer-default-export | ||
export { ECL }; | ||
|
||
if (typeof globalThis !== 'undefined') { | ||
// eslint-disable-next-line no-undef | ||
globalThis.ECL = ECL; | ||
} else if (typeof window !== 'undefined') { | ||
window.ECL = ECL; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import '@ecl/dom-utils/polyfills'; | ||
|
||
import Accordion from '@ecl/vanilla-component-accordion'; | ||
import autoInit from '@ecl/dom-utils/autoinit'; | ||
import Banner from '@ecl/vanilla-component-banner'; | ||
import Carousel from '@ecl/vanilla-component-carousel'; | ||
import CategoryFilter from '@ecl/vanilla-component-category-filter'; | ||
import Datepicker from '@ecl/vanilla-component-datepicker'; | ||
import Breadcrumb from '@ecl/vanilla-component-breadcrumb'; | ||
import ContentBlock from '@ecl/vanilla-component-content-block'; | ||
import DescriptionList from '@ecl/vanilla-component-description-list'; | ||
import Expandable from '@ecl/vanilla-component-expandable'; | ||
import FileDownload from '@ecl/vanilla-component-file'; | ||
import FileUpload from '@ecl/vanilla-component-file-upload'; | ||
import Gallery from '@ecl/vanilla-component-gallery'; | ||
import Indicator from '@ecl/vanilla-component-indicator'; | ||
import InpageNavigation from '@ecl/vanilla-component-inpage-navigation'; | ||
import MediaContainer from '@ecl/vanilla-component-media-container'; | ||
import MegaMenu from '@ecl/vanilla-component-mega-menu'; | ||
import Menu from '@ecl/vanilla-component-menu'; | ||
import Modal from '@ecl/vanilla-component-modal'; | ||
import NewsTicker from '@ecl/vanilla-component-news-ticker'; | ||
import Notification from '@ecl/vanilla-component-notification'; | ||
import Popover from '@ecl/vanilla-component-popover'; | ||
import Range from '@ecl/vanilla-component-range'; | ||
import Select from '@ecl/vanilla-component-select'; | ||
import SiteHeader from '@ecl/vanilla-component-site-header'; | ||
import Table from '@ecl/vanilla-component-table'; | ||
import Tabs from '@ecl/vanilla-component-tabs'; | ||
import Timeline from '@ecl/vanilla-component-timeline'; | ||
|
||
const ECL = { | ||
autoInit, | ||
Accordion, | ||
Banner, | ||
Carousel, | ||
CategoryFilter, | ||
Datepicker, | ||
Breadcrumb, | ||
ContentBlock, | ||
DescriptionList, | ||
Expandable, | ||
FileDownload, | ||
FileUpload, | ||
Gallery, | ||
Indicator, | ||
InpageNavigation, | ||
MediaContainer, | ||
MegaMenu, | ||
Menu, | ||
Modal, | ||
NewsTicker, | ||
Notification, | ||
Popover, | ||
Range, | ||
Select, | ||
SiteHeader, | ||
Tabs, | ||
Table, | ||
Timeline, | ||
}; | ||
|
||
// eslint-disable-next-line import/prefer-default-export | ||
export { ECL }; | ||
|
||
if (typeof globalThis !== 'undefined') { | ||
// eslint-disable-next-line no-undef | ||
globalThis.ECL = ECL; | ||
} else if (typeof window !== 'undefined') { | ||
window.ECL = ECL; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters