Skip to content

Commit 8df4d1d

Browse files
committed
v1.0.2
1 parent 0455088 commit 8df4d1d

10 files changed

+27
-24
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v1.0.2
2+
- Fix types
3+
14
v1.0.1
25
- dts is now bundled
36

docs/assets/Demo-B0_uf-gr.js renamed to docs/assets/Demo-CrKb7gcW.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/Home-B-0qN3bs.js renamed to docs/assets/Home-BxSFTKNV.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/Install-4TbWmiQT.js renamed to docs/assets/Install-CNfPK-5U.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{o as T,i as t,t as A,p as e,b as M}from"./index-Bvu7e9Jc.js";var N=A('<div><h2 class="fw-bold mb-4">Install</h2><h5>Install from npm:</h5><ol><li><p>Run the following command in the terminal:</p><pre><code class=language-bash></code></pre></li><li><p>After installation, you can import the library into your project as follows:</p><pre><code class=language-javascript></code></pre></li><li><p>Or, since it also comes with an IIFE bundle, you can insert it directly into your HTML:</p><pre><code class=language-html></code></pre></li></ol><h5>Install from cdn:</h5><ol><li><p>Add the following script in the <code>&lt;head&gt;</code> tag of your HTML:</p><pre><code class=language-html></code></pre><p>Example:</p><pre><code class=language-html>');function F(){const l=`<script src="https://cdn.jsdelivr.net/npm/${e.name}@${e.version}/dist/${e.name}.min.js"><\/script>`,r=`npm install ${e.name}`,d=`import ${e.libName} from '${e.name}'`,p=`<!doctype html>
1+
import{o as T,i as t,t as A,p as e,b as M}from"./index-B47QTey_.js";var N=A('<div><h2 class="fw-bold mb-4">Install</h2><h5>Install from npm:</h5><ol><li><p>Run the following command in the terminal:</p><pre><code class=language-bash></code></pre></li><li><p>After installation, you can import the library into your project as follows:</p><pre><code class=language-javascript></code></pre></li><li><p>Or, since it also comes with an IIFE bundle, you can insert it directly into your HTML:</p><pre><code class=language-html></code></pre></li></ol><h5>Install from cdn:</h5><ol><li><p>Add the following script in the <code>&lt;head&gt;</code> tag of your HTML:</p><pre><code class=language-html></code></pre><p>Example:</p><pre><code class=language-html>');function F(){const l=`<script src="https://cdn.jsdelivr.net/npm/${e.name}@${e.version}/dist/${e.name}.min.js"><\/script>`,r=`npm install ${e.name}`,d=`import ${e.libName} from '${e.name}'`,p=`<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">

docs/assets/Methods-PMq1NbqR.js renamed to docs/assets/Methods-DZsMO_Hu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{o as C,i as l,t as S,p as d,b as M}from"./index-Bvu7e9Jc.js";var j=S('<div><h2 class="fw-bold mb-4">Methods</h2><div class=table-responsive><table class="table table-bordered"><thead><tr><th>Name</th><th>Params</th><th>Returns</th><th>Example</th></tr></thead><tbody><tr><td><code>hide</code></td><td><code>null</code></td><td><code>void</code></td><td><pre class=mb-0><code class=language-javascript></code></pre></td></tr><tr><td><code>hide</code></td><td><code>null</code></td><td><code>void</code></td><td><pre class=mb-0><code class=language-javascript>');const y=`import toast from '${d.name}'
1+
import{o as C,i as l,t as S,p as d,b as M}from"./index-B47QTey_.js";var j=S('<div><h2 class="fw-bold mb-4">Methods</h2><div class=table-responsive><table class="table table-bordered"><thead><tr><th>Name</th><th>Params</th><th>Returns</th><th>Example</th></tr></thead><tbody><tr><td><code>hide</code></td><td><code>null</code></td><td><code>void</code></td><td><pre class=mb-0><code class=language-javascript></code></pre></td></tr><tr><td><code>hide</code></td><td><code>null</code></td><td><code>void</code></td><td><pre class=mb-0><code class=language-javascript>');const y=`import toast from '${d.name}'
22
33
const example = toast({
44
body: 'Event has been created',

docs/assets/Options-DmESVKfE.js renamed to docs/assets/Options-gLDIBHEd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/index-Bvu7e9Jc.js renamed to docs/assets/index-B47QTey_.js

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta name="keywords" content="toast, bootstrap toast, bootstrap alert, bootstrap notification" />
99
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
1010
<title>use-bootstrap-toaster | Bootstrap toast generator</title>
11-
<script type="module" crossorigin src="/assets/index-Bvu7e9Jc.js"></script>
11+
<script type="module" crossorigin src="/assets/index-B47QTey_.js"></script>
1212
<link rel="stylesheet" crossorigin href="/assets/index-Cv0tOV-6.css">
1313
</head>
1414

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "use-bootstrap-toaster",
33
"type": "module",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"description": "Bootstrap toast generator",
66
"license": "MIT",
77
"homepage": "https://use-bootstrap-toaster.js.org",
@@ -47,11 +47,11 @@
4747
"lint:fix": "eslint . --fix"
4848
},
4949
"devDependencies": {
50-
"@antfu/eslint-config": "2.15.0",
50+
"@antfu/eslint-config": "2.16.1",
5151
"@fontsource/hind-siliguri": "5.0.13",
52-
"@solidjs/router": "0.13.2",
52+
"@solidjs/router": "0.13.3",
5353
"@types/bootstrap": "5.2.10",
54-
"@types/node": "20.12.7",
54+
"@types/node": "20.12.8",
5555
"@types/prismjs": "1.26.3",
5656
"bootstrap": "5.3.3",
5757
"dts-bundle-generator": "9.5.1",
@@ -61,11 +61,11 @@
6161
"prettier": "3.2.5",
6262
"prismjs": "1.29.0",
6363
"purgecss": "6.0.0",
64-
"sass": "1.75.0",
64+
"sass": "1.76.0",
6565
"solid-js": "1.8.17",
6666
"tslib": "2.6.2",
6767
"typescript": "5.4.5",
68-
"vite": "5.2.10",
68+
"vite": "5.2.11",
6969
"vite-plugin-dts": "3.9.0",
7070
"vite-plugin-full-reload": "1.1.0",
7171
"vite-plugin-solid": "2.10.2"

src/lib/use-bootstrap-toaster.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ interface ToastFunction<T extends any[], R> {
3939
/**
4040
* Hide all toasts
4141
*/
42-
hide: () => void
42+
hide: (BootstrapToast?: typeof Toast) => void
4343
}
4444

4545
const toast: ToastFunction<[string | OptionalType<Options>, typeof Toast?], {

0 commit comments

Comments
 (0)