@pushwoosh/kit-helpers 4.8.5 → 4.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -600,7 +600,7 @@ const cleanup = elementAddListeners(
|
|
|
600
600
|
- **Path:** `~/src/hooks/useClickAway`
|
|
601
601
|
- **Description:** Subscribes to clicks outside an element
|
|
602
602
|
- **Signature:**
|
|
603
|
-
```
|
|
603
|
+
```typescript
|
|
604
604
|
subscribeClickAway<T extends HTMLElement>(
|
|
605
605
|
element: T,
|
|
606
606
|
callback: (event: MouseEvent | TouchEvent) => void
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushwoosh/kit-helpers",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.6",
|
|
4
4
|
"description": "React component for build Pushwoosh products",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"scripts": {
|
|
10
10
|
"start": "npm run playground",
|
|
11
|
-
"build": "pushwoosh-engine lib:build && cp ai-documentation.
|
|
11
|
+
"build": "pushwoosh-engine lib:build && cp ai-documentation.md dist/ai-documentation.md",
|
|
12
12
|
"playground": "pushwoosh-engine lib:playground",
|
|
13
13
|
"check": "npm run check:lint && npm run check:types",
|
|
14
14
|
"check:lint": "echo \"Run check:lint\" && eslint .",
|