Skip to content

Commit 26cc48e

Browse files
chore: pr changes
1 parent ec333b1 commit 26cc48e

File tree

3 files changed

+24
-26
lines changed

3 files changed

+24
-26
lines changed

packages/unity-bootstrap-theme/.storybook/local-addon/addon.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@ addons.register('local-addon', (api) => {
1010
type: types.PANEL,
1111
paramKey: 'initFunc',
1212
render: ({active, key}) => {
13-
1413
return(
1514
<AddonPanel key={key} active={!!active}>
1615
<div style={{ padding: '20px', fontSize: '1rem'}}>
17-
18-
This component requires Javascript. <br/><br/>
19-
20-
<a href="./index.html?path=/docs/get-started-get-started--docs#-including-unity-in-your-project">View the documentation</a>{" "}on how to use the component in your project.
21-
16+
This component requires Javascript. <br/><br/>
17+
View the documentation on <a href="./index.html?path=/docs/get-started-get-started--docs#-including-unity-in-your-project">including unity in your project</a>
2218
</div>
2319
</AddonPanel>
2420
)},

packages/unity-bootstrap-theme/stories/docs/GetStarted/get-started.stories.mdx

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,30 @@ We bundle the necessary CSS and Javascript in the `dist/` folder. There are more
2626
### Javascript
2727
All you need to do is include the script on your page, the scripts will execute with the window load event.
2828
We provide 3 formats ("UMD", "CJS", "ES").
29-
* exports:
30-
* `initAnchorMenu`,
31-
* `initBlockquoteAnimation`,
32-
* `initCalendar`,
33-
* `initChart`,
34-
* `initDataLayer`,
35-
* `initFixedTable`,
36-
* `initGlobalHeader`,
37-
* `initHeroesVideo`,
38-
* `initImageParallax`,
39-
* `initModals`,
40-
* `initRankingCard`,
41-
* `initTabbedPanels`,
42-
* `initVideo`,
29+
4330
* Unity File Formats
44-
* dist/js/unity-bootstrap.umd.js (universal)
31+
* `dist/js/unity-bootstrap.umd.js` (universal)
4532
* creates a global variable `unityBootstrap` if you need to manaully call the init function ex: `unityBootstrap.initAnchorMenu()`
46-
* dist/js/unity-bootstrap.cjs.js (common js)
47-
* dist/js/unity-bootstrap.es.js (module)
33+
* `dist/js/unity-bootstrap.cjs.js` (common js)
34+
* `dist/js/unity-bootstrap.es.js` (module)
4835
* Vendor Files
49-
* dist/js/bootstrap.bundle.min.js (unaltered bootstrap version)
50-
* dist/js/chart.min.js (only needed if you are using the donut chart)
36+
* `dist/js/bootstrap.bundle.min.js` (unaltered bootstrap version)
37+
* `dist/js/chart.min.js` (only needed if you are using the donut chart)
38+
39+
* Exports:
40+
* `initAnchorMenu`
41+
* `initBlockquoteAnimation`
42+
* `initCalendar`
43+
* `initChart`
44+
* `initDataLayer`
45+
* `initFixedTable`
46+
* `initGlobalHeader`
47+
* `initHeroesVideo`
48+
* `initImageParallax`
49+
* `initModals`
50+
* `initRankingCard`
51+
* `initTabbedPanels`
52+
* `initVideo`
5153

5254
## ❯ How to use the Unity Storybook reference site
5355

packages/unity-bootstrap-theme/vite.config.bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineConfig(
1212
plugins: [
1313
{
1414
name: "copy",
15-
writeBundle() {
15+
closeBundle() {
1616
fs.mkdirSync(resolve(__dirname, "dist/js"), {
1717
recursive: true,
1818
});

0 commit comments

Comments
 (0)