Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "winkblue", | ||
"type": "module", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "", | ||
@@ -11,3 +11,6 @@ "author": "FlandreDaisuki <vbnm123c+github@gmail.com>", | ||
".": { | ||
"import": "./dist/winkblue.mjs", | ||
"import": { | ||
"types": "./@types/winkblue.d.mts", | ||
"default": "./dist/winkblue.mjs" | ||
}, | ||
"require": "./dist/winkblue.umd.js" | ||
@@ -18,15 +21,13 @@ } | ||
"module": "./dist/winkblue.mjs", | ||
"files": [ | ||
"dist" | ||
], | ||
"types": "./@types/winkblue.d.mts", | ||
"devDependencies": { | ||
"@flandredaisuki/eslint-config": "^0.1.2", | ||
"bumpp": "^9.2.0", | ||
"eslint": "^8.53.0", | ||
"vite": "^5.0.12" | ||
"@flandredaisuki/eslint-config": "^0.1.3", | ||
"bumpp": "^9.4.1", | ||
"eslint": "^8.57.0", | ||
"vite": "^5.2.11" | ||
}, | ||
"scripts": { | ||
"build": "vite build", | ||
"release": "bumpp && pnpm build && pnpm publish" | ||
"build": "make build", | ||
"release": "make release-and-publish" | ||
} | ||
} |
@@ -12,3 +12,3 @@ # winkblue | ||
```html | ||
<script src="https://unpkg.com/winkblue@0.0.5/dist/winkblue.umd.js"></script> | ||
<script src="https://unpkg.com/winkblue/dist/winkblue.umd.js"></script> | ||
``` | ||
@@ -35,5 +35,12 @@ | ||
```js | ||
// Start observing elements by class | ||
winkblue.on('.dynamic-load-components', (el) => { | ||
// do something on `el` | ||
}); | ||
// Stop observing elements by class | ||
winkblue.off('.dynamic-load-components'); | ||
// Stop observing all elements | ||
winkblue.reset(); | ||
``` | ||
@@ -40,0 +47,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10435
8
68