@picked/hotjar 0.0.1-dev.1788925875333 → 0.0.1-dev.1793753513002
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.
- package/LICENSE +1 -0
- package/README.md +38 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/plugins/hotjar/index.js +1 -1
- package/dist/esm/index.js +1 -2
- package/dist/esm/plugins/hotjar/index.js +1 -2
- package/dist/hotjar-DH_d3Xyx.cjs +1 -0
- package/dist/{hotjar-BUMpHqYS.js → hotjar-Sa6Ivtz5.js} +11 -12
- package/package.json +15 -7
- package/dist/hotjar-DvUryMM-.cjs +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Copyright (c) Picked. All rights reserved. Contact Picked for a usage licence.
|
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# @picked/hotjar
|
|
2
|
+
|
|
3
|
+
Sends the events of the Picked client to Hotjar, and identifies the Hotjar user by the Picked
|
|
4
|
+
session ID.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npm install picked @picked/hotjar
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { createClient } from 'picked'
|
|
16
|
+
import { hotjarPlugin } from '@picked/hotjar'
|
|
17
|
+
|
|
18
|
+
export const picked = createClient({
|
|
19
|
+
projectId: 'your-project-id',
|
|
20
|
+
plugins: [hotjarPlugin({ siteId: 1234567 })],
|
|
21
|
+
})
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
| Option | Default | Description |
|
|
25
|
+
| --------------------- | ----------------------------------------------------- | ----------------------------------------------------------------- |
|
|
26
|
+
| `siteId` | required | Your Hotjar site ID. |
|
|
27
|
+
| `trackedEvents` | step, field-validation, experience and session events | The client events sent to Hotjar. |
|
|
28
|
+
| `getUserAttributes` | none | Extra attributes for the Hotjar user. |
|
|
29
|
+
| `autoStartRecording` | `true` | Sends `recordingStartEvent` on the first `experience_initialize`. |
|
|
30
|
+
| `recordingStartEvent` | `'hotjar_start'` | The Hotjar event that starts a recording. |
|
|
31
|
+
| `snippetVersion` | `6` | The Hotjar script version. |
|
|
32
|
+
|
|
33
|
+
## Docs
|
|
34
|
+
|
|
35
|
+
- **Web:** [Hotjar](https://docs.picked.app/reference/sdk/plugins/hotjar)
|
|
36
|
+
- **Local:** `node_modules/picked/docs/reference/sdk/plugins/hotjar.md`. The `picked` package carries every page under `node_modules/picked/docs/`.
|
|
37
|
+
- **CLI:** `npx picked docs read /reference/sdk/plugins/hotjar`. `npx picked docs list [words]` lists the pages.
|
|
38
|
+
- **MCP:** call `read_picked_doc` with `{ "path": "/reference/sdk/plugins/hotjar" }`; `list_picked_docs` lists the pages. Add the server with `claude mcp add --transport http picked https://api.picked.app/mcp`, or see [How to connect the MCP server](https://docs.picked.app/how-to/connect-the-mcp-server) for other tools.
|
package/dist/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"7.0.0-dev.20260707.2","root":[[118,120]],"packageJsons":["../../../node_modules/.pnpm/@hotjar+browser@1.0.9/node_modules/@hotjar/browser/package.json","../../../node_modules/.pnpm/effector@23.4.4/node_modules/effector/package.json","../../client/package.json","../../delivery-api-client/package.json","../package.json"],"missingPackageJsons":["../../../node_modules/.pnpm/@hotjar+browser@1.0.9/node_modules/@hotjar/browser/dist/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.es2023.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.es2023.array.d.ts","lib.es2023.collection.d.ts","lib.es2023.intl.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/@hotjar+browser@1.0.9/node_modules/@hotjar/browser/dist/utils.d.ts","../../../node_modules/.pnpm/@hotjar+browser@1.0.9/node_modules/@hotjar/browser/dist/index.d.ts","../../../node_modules/.pnpm/effector@23.4.4/node_modules/effector/index.d.ts","../../delivery-api-client/dist/types/client-headers.d.ts","../../delivery-api-client/dist/types/project-config.d.ts","../../delivery-api-client/dist/types/types.d.ts","../../delivery-api-client/dist/types/fetch.d.ts","../../delivery-api-client/dist/types/index.d.ts","../../client/dist/types/entities/component/lazyComponent.d.ts","../../client/dist/types/entities/component/component.d.ts","../../client/dist/types/logic-engine.d.ts","../../client/dist/types/entities/condition/condition.d.ts","../../client/dist/types/entities/content/content.d.ts","../../client/dist/types/entities/step/step.d.ts","../../client/dist/types/entities/history/history.d.ts","../../client/dist/types/entities/experience-instance/experience-instance.d.ts","../../client/dist/types/entities/framework/framework.d.ts","../../client/dist/types/entities/experience/experience.d.ts","../../client/dist/types/entities/plugin/plugin.d.ts","../../client/dist/types/utils/logger.d.ts","../../client/dist/types/lifecycle/rules-logic.d.ts","../../client/dist/types/lifecycle/condition-selection.d.ts","../../client/dist/types/lifecycle/lifecycle.d.ts","../../client/dist/types/entities/field/policies.d.ts","../../client/dist/types/entities/field/field.d.ts","../../client/dist/types/schema-registry.d.ts","../../client/dist/types/entities/feature/feature.d.ts","../../client/dist/types/entities/response/response-validation.d.ts","../../client/dist/types/entities/response/response.d.ts","../../client/dist/types/entities/session/session.d.ts","../../client/dist/types/utils/events.d.ts","../../client/dist/types/plugins/dynamic-experiences/types.d.ts","../../client/dist/types/entities/action/action.d.ts","../../client/dist/types/utils/user-timing.d.ts","../../client/dist/types/data-source/request-observer.d.ts","../../client/dist/types/utils/client-telemetry.d.ts","../../client/dist/types/picked.d.ts","../../client/dist/types/lifecycle/state-snapshot.d.ts","../../client/dist/types/entities/predicate/predicate.d.ts","../../client/dist/types/client.d.ts","../../client/dist/types/utils/dom.d.ts","../../client/dist/types/utils/rehydrate-scripts.d.ts","../../client/dist/types/utils/html-asset-value.d.ts","../../client/dist/types/utils/preview-session.d.ts","../../client/dist/types/utils/inert-script-report.d.ts","../../client/dist/types/utils/supports.d.ts","../../client/dist/types/utils/storage.d.ts","../../client/dist/types/utils/rules-logic.d.ts","../../client/dist/types/utils/picked-config.d.ts","../../client/dist/types/entities/content/reference.d.ts","../../client/dist/types/exports.d.ts","../../client/dist/types/utils/search-params.d.ts","../../client/dist/types/typed-content.d.ts","../../client/dist/types/index.d.ts","../src/plugins/hotjar/plugin.ts","../src/plugins/hotjar/index.ts","../src/index.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7","9443a7f109277ffaa79d893ed2549995",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237",{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8cf777fe00349b71ee9c4b6f3fe7fd19","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"74f96bc192530c9723f572bfff3d3078","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1df91c56b25955c56387426f378173c5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},"2ab23bc532323098607c394d226d71b7","f884338345d60d2f5feccdca80108f35","4d30d5ec0ec1f3784ba6050d307a4db5","f992571afa109506b5288c980ee5e498","92cbb6decf8c82a331122af1bce37a01","fd2de4e9a55a224bf1ce7bce26095e7e","bd6bd1ac3925d2a2668e7b21bedc2e04","4e0b255a79e3812707be53462ca6dbd0","c693b09dcd6d7e0986763de264a6456e","331eba2c930bea66378f3e58658b17fb","2417555c1e04f6e895c47040aa7d56a0","8520fb9b295b10dd7d5bd1805eb6dc05","257aa345e35665cec2f78afe005faa9e","990bc7054c18efd1fc19e21df19fb00a","5859a130c0b0cb8b9661e2cdc0ac0cd0","3490cb20f25902f9390bb41a7399f899","239b4ca55b42b39d96c24ce761c9f16a","e9abcc1e3852c37e53d75cbb94a5c348","e1873fe7af9ce55a5d1b5b9a3bc39a9d","b7ca911c22ea11fd08f4643020b1450d","e2125552fa2b9ddfbc8bb60bdac55c97","486d01fd3c94ebd16f84f6536f6f1c91","5356e38ea582e02b409e424a26d5ecc8","1984ab6f3dafbd4102e956997fe2352c","a7a8153236751bd356a79bb30c89af69","b729cdd66d48009bd747ae01cc6aadd1","ec84b27f9dded8ef584c7249da37ea94","dbff577bf4b6d09d2e3fc5744979029e","885a241e00ad3913a5a55b95e51424a0","cf5eeae444c70998a0a5b5481d5fedf2","4b663cbfa79328782290b845f0c65368","5078543fccf3ee78c3a83e0c4fe37992","d9a3195225b0ff4294742beac832d252","9cd895bcf53f393578205f2f79afb8b3","5133cb8bac6d95b120ad7c931560f3d2","5d7eb5ba82878b9badbe908f8fcdd7e9","65ee15eeeccd17a086995c2aeafc04db","9b7f6365fa9ad8d272d6953ee99c7a20","ca5b5f0c47153cfb8d1b3b27192fbce7","2334480ba8cdeb26e4a37ab752120fb9","6d4649cdd413dd635ac0ca0b37d452cc",{"version":"4198eb85452f1ee8650e3525ebc56405","affectsGlobalScope":true,"impliedNodeFormat":1},"a51a8e6599581e605aa01164b2aecf58","698b1018d1c18af70f8828dcf86dfb3f","8378623bb64e556c9c62d37b214e3f2a","f1b6fd6b86d263291725f1e6450c7a0f","a860181621c15a4495aea811188f6ade","e6121cb2079cbef49f8cabb771b096d4",{"version":"3c818c69e25524502fb01cdd4eb204ff","affectsGlobalScope":true,"impliedNodeFormat":1},"457028a15a800a0101897207083230b4","cc41693ad3e7b61f34fa2d31e30dbc50","b8e788852f3cd20f765e510e73bb9200","afd6901aba52f49ca5ffe7dd427c90ff","af1c8c3945deb33180a66049151249f2",{"version":"71ef107d823132e0a7ceebf9ea9e4568","signature":"a74e9b9b9da3fbea2d1d7726edd6b0e0","impliedNodeFormat":1},{"version":"7a19675e1b2b3900f4c6c98b7d02fbe7","signature":"6a2fac1879296d6892d1665f985c748a","impliedNodeFormat":1},{"version":"0a5c9236faeb6d48e29af30df6067352","signature":"38d5592cd329bc0d79097c399be084ff","impliedNodeFormat":1}],"fileIdsList":[[64],[73,74,82,88,90,96,102],[66,79,100,101],[66,72,100,117],[66,74],[66],[66,76],[66,73,77,78,80,81,100],[66,73,74,75,77,80,100],[66,89,100],[66,74,87],[66,73,79,100],[66,81],[66,100],[66,100,101],[74,88],[66,88,89,91,100],[72,81,82,100,103,104,105,106,107,108,109,110,111,112,113],[72,73,75,76,77,78,79,80,81,82,87,88,89,90,92,94,96,100,101,102,103,113,114,115,116],[66,74,75,100],[66,74,100],[66,88,100],[66,71,73,75,76,77,80,81,82,83,84,85,86,88,89,90,93,94,95,96,97,99,101,102,103,114,117],[71],[76,88],[66,76,89],[98],[81],[66,77,79,90,92,93],[103],[74,100],[79],[69],[67,69,70],[68],[119],[118],[65,66,117]],"options":{"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationDir":"./types","declarationMap":true,"module":99,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":10,"tsBuildInfoFile":"./.tsbuildinfo","esModuleInterop":true},"referencedMap":[[65,1],[103,2],[96,3],[73,4],[75,5],[76,6],[113,7],[79,8],[81,9],[90,10],[88,11],[80,12],[78,13],[82,14],[102,15],[91,16],[92,17],[93,6],[77,7],[114,18],[117,19],[85,20],[86,21],[84,21],[101,22],[100,23],[95,24],[89,25],[116,26],[99,27],[104,28],[94,29],[112,30],[111,31],[110,32],[70,33],[71,34],[69,35],[120,36],[119,37],[118,38]],"latestChangedDtsFile":"./types/index.d.ts"}
|
|
1
|
+
{"version":"7.0.0-dev.20260707.2","root":[[123,125]],"packageJsons":["../../../node_modules/.pnpm/@hotjar+browser@1.0.9/node_modules/@hotjar/browser/package.json","../../../node_modules/.pnpm/effector@23.4.4/node_modules/effector/package.json","../../client/package.json","../../delivery-api-client/package.json","../package.json"],"missingPackageJsons":["../../../node_modules/.pnpm/@hotjar+browser@1.0.9/node_modules/@hotjar/browser/dist/package.json"],"fileNames":["lib.es5.d.ts","lib.es2015.d.ts","lib.es2016.d.ts","lib.es2017.d.ts","lib.es2018.d.ts","lib.es2019.d.ts","lib.es2020.d.ts","lib.es2021.d.ts","lib.es2022.d.ts","lib.es2023.d.ts","lib.dom.d.ts","lib.dom.iterable.d.ts","lib.es2015.core.d.ts","lib.es2015.collection.d.ts","lib.es2015.generator.d.ts","lib.es2015.iterable.d.ts","lib.es2015.promise.d.ts","lib.es2015.proxy.d.ts","lib.es2015.reflect.d.ts","lib.es2015.symbol.d.ts","lib.es2015.symbol.wellknown.d.ts","lib.es2016.array.include.d.ts","lib.es2016.intl.d.ts","lib.es2017.arraybuffer.d.ts","lib.es2017.date.d.ts","lib.es2017.object.d.ts","lib.es2017.sharedmemory.d.ts","lib.es2017.string.d.ts","lib.es2017.intl.d.ts","lib.es2017.typedarrays.d.ts","lib.es2018.asyncgenerator.d.ts","lib.es2018.asynciterable.d.ts","lib.es2018.intl.d.ts","lib.es2018.promise.d.ts","lib.es2018.regexp.d.ts","lib.es2019.array.d.ts","lib.es2019.object.d.ts","lib.es2019.string.d.ts","lib.es2019.symbol.d.ts","lib.es2019.intl.d.ts","lib.es2020.bigint.d.ts","lib.es2020.date.d.ts","lib.es2020.promise.d.ts","lib.es2020.sharedmemory.d.ts","lib.es2020.string.d.ts","lib.es2020.symbol.wellknown.d.ts","lib.es2020.intl.d.ts","lib.es2020.number.d.ts","lib.es2021.promise.d.ts","lib.es2021.string.d.ts","lib.es2021.weakref.d.ts","lib.es2021.intl.d.ts","lib.es2022.array.d.ts","lib.es2022.error.d.ts","lib.es2022.intl.d.ts","lib.es2022.object.d.ts","lib.es2022.string.d.ts","lib.es2022.regexp.d.ts","lib.es2023.array.d.ts","lib.es2023.collection.d.ts","lib.es2023.intl.d.ts","lib.decorators.d.ts","lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/@hotjar+browser@1.0.9/node_modules/@hotjar/browser/dist/utils.d.ts","../../../node_modules/.pnpm/@hotjar+browser@1.0.9/node_modules/@hotjar/browser/dist/index.d.ts","../../../node_modules/.pnpm/effector@23.4.4/node_modules/effector/index.d.ts","../../delivery-api-client/dist/types/client-headers.d.ts","../../delivery-api-client/dist/types/project-config.d.ts","../../delivery-api-client/dist/types/types.d.ts","../../delivery-api-client/dist/types/fetch.d.ts","../../delivery-api-client/dist/types/actions.d.ts","../../delivery-api-client/dist/types/action-response.d.ts","../../delivery-api-client/dist/types/index.d.ts","../../client/dist/types/entities/component/lazyComponent.d.ts","../../client/dist/types/entities/component/component.d.ts","../../client/dist/types/logic-engine.d.ts","../../client/dist/types/entities/condition/condition.d.ts","../../client/dist/types/entities/content/content.d.ts","../../client/dist/types/entities/step/step.d.ts","../../client/dist/types/entities/history/history.d.ts","../../client/dist/types/entities/experience-instance/experience-instance.d.ts","../../client/dist/types/entities/framework/framework.d.ts","../../client/dist/types/utils/node-tree/node-adjacency.d.ts","../../client/dist/types/utils/node-tree/node-tree-index.d.ts","../../client/dist/types/entities/experience/experience.d.ts","../../client/dist/types/entities/plugin/plugin.d.ts","../../client/dist/types/utils/logger.d.ts","../../client/dist/types/lifecycle/rules-logic.d.ts","../../client/dist/types/lifecycle/condition-selection.d.ts","../../client/dist/types/lifecycle/lifecycle.d.ts","../../client/dist/types/entities/field/policies.d.ts","../../client/dist/types/entities/field/field.d.ts","../../client/dist/types/schema-registry.d.ts","../../client/dist/types/entities/feature/feature.d.ts","../../client/dist/types/entities/response/response-validation.d.ts","../../client/dist/types/entities/response/response.d.ts","../../client/dist/types/entities/session/session.d.ts","../../client/dist/types/utils/events.d.ts","../../client/dist/types/plugins/dynamic-experiences/types.d.ts","../../client/dist/types/entities/action/action.d.ts","../../client/dist/types/utils/user-timing.d.ts","../../client/dist/types/data-source/request-observer.d.ts","../../client/dist/types/utils/client-telemetry.d.ts","../../client/dist/types/picked.d.ts","../../client/dist/types/lifecycle/state-snapshot.d.ts","../../client/dist/types/entities/predicate/predicate.d.ts","../../client/dist/types/client.d.ts","../../client/dist/types/utils/dom.d.ts","../../client/dist/types/utils/rehydrate-scripts.d.ts","../../client/dist/types/utils/html-asset-value.d.ts","../../client/dist/types/utils/preview-session.d.ts","../../client/dist/types/data-source/preview-unavailable.d.ts","../../client/dist/types/utils/inert-script-report.d.ts","../../client/dist/types/utils/supports.d.ts","../../client/dist/types/utils/storage.d.ts","../../client/dist/types/utils/rules-logic.d.ts","../../client/dist/types/utils/picked-config.d.ts","../../client/dist/types/entities/content/reference.d.ts","../../client/dist/types/exports.d.ts","../../client/dist/types/utils/search-params.d.ts","../../client/dist/types/typed-content.d.ts","../../client/dist/types/index.d.ts","../src/plugins/hotjar/plugin.ts","../src/plugins/hotjar/index.ts","../src/index.ts"],"fileInfos":[{"version":"16934abaab7026ac114da441aabea1a0","affectsGlobalScope":true,"impliedNodeFormat":1},"d4306fb2e47f74835e8674ffac07d76f","e437c5c1302869326c3bb93da85bbbcf","e4324975a566567b21d350615f1fc6ac","333b1b9a2a9ac3b8497dba5c63b5ba50","6cffacd662b6eb5fa7a36aa2ea366bfa","b4c34f9c23304dbef2d23698637ed638","e5cb86a5fc491796ecd1d2dd348d208f","feb6c6fb19cdb246a5d8acb36a6901c7","9443a7f109277ffaa79d893ed2549995",{"version":"aae8996e8b5684814785a42cbbefcd79","affectsGlobalScope":true,"impliedNodeFormat":1},"abad6dd56cc8caf095c165df8124d237",{"version":"926204c28cd3d073865348473ae28d2e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f25e42c801b2cb3cf2b39792006a9beb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6344b55f26a4e81d9608777dbfb877dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3c0ed28e53d3695b363e256ec1c023fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4c2761daba7f17141c25baa0821ac5da","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b87656acabd63e69379ff6ffcfe52fc7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"597469522da047a5af5222cc6989f405","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1708ea4d34dc37fadadc63ca01127e80","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"55d97a8c6fbf34a30450a7b1e5f7a298","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0ee05eb59426d33e374226d8dcfa708b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e347c14030993906efcfbb88915b6a05","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b0231263857c9b6a03641acdc9280ceb","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3b15c4a83b598cacb4067676e6f0abed","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b417d97b7934cef63b1889abec0bbfbf","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"09a6cf4032ebba60ce22a501e663f881","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2b056277dd138e8f5650fc04e20eaa8d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"e22cc07e3f3cc242ba52fa3f8ea1fc58","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"2c45da767a1bfbb220848df1bc4029e4","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b44c3e0fbaf2130cdcf6ac38b120ffa1","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b612fb5cf8e5d964b92063a75207632a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"02705151a5e1551b9162a9ed8ab763f7","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"41025e398be9215d32e4337335da8f0b","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"52684c2b1f353a5538e4f275182a54cd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6dedb6a4f90d1df3a6fbe5693e44886c","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ca3f36fe3562c07e0f0d71c2bebd3f6d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"409974d6129befbb8226ddd1c6558568","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4d9cfde2a1ae1b4925f1f9bc10848e5d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7e1daecc66dd564144e3bb1a0266b5fd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a8e1d9bb35fd0637f2f9fd2b2a54f2ec","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4f168501772a6543182765bfd5f2fbfe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a19c80aad1b2162103496f5ba293a732","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"b69afa63cd5d059851c78adb2856ee09","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"ae2fc5d954e9b0f5feee3d481b953c27","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1cfd3091a071d8b6feec15277643bafe","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1da2c1f258970fd3cc91184f69e91a9d","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"a0d87491913d843139e0c993650a3235","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4ef72aa378127e7b7abba915b0110b1e","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"3ec74c6a7d4463f0254db3a74cf75646","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"84c2bdfa470d075526cce6322d81b0b6","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0b3844c2b8c73e4e1ab91431411cad11","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"4fc71cf4a15b8d99675a31df77f26e07","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d1b49564ddaeca3df5b6dbae925d2242","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"6a25be566d60ccfc2d6e8b7bfdeefa83","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8a20e27646985dfd58c57ca6566553dd","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9969f02ad3cdcbf4f709405cda44167f","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"9c9be4792a7a4f42c15ae7360bf28779","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"8cf777fe00349b71ee9c4b6f3fe7fd19","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"74f96bc192530c9723f572bfff3d3078","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"1df91c56b25955c56387426f378173c5","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"f64453cbf9671f28158677fa5c43967a","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"33f317af5428801f944a478d2c1e38e5","affectsGlobalScope":true,"impliedNodeFormat":1},"2ab23bc532323098607c394d226d71b7","f884338345d60d2f5feccdca80108f35","4d30d5ec0ec1f3784ba6050d307a4db5","f992571afa109506b5288c980ee5e498","e24eec2415049359438765095c26f8e7","f02d570d92e7970b351373e3a39d6d4b","bd6bd1ac3925d2a2668e7b21bedc2e04","03682526f671f961421a0660082a6d98","4719f1a2968c254d58e7093654e521c7","7469c900c435b241f4784233793f68ec","c693b09dcd6d7e0986763de264a6456e","331eba2c930bea66378f3e58658b17fb","757d173c6105d046a4c1f1ceaef3802b","8520fb9b295b10dd7d5bd1805eb6dc05","257aa345e35665cec2f78afe005faa9e","990bc7054c18efd1fc19e21df19fb00a","5859a130c0b0cb8b9661e2cdc0ac0cd0","11702f490d55070224433c6200fb0e44","239b4ca55b42b39d96c24ce761c9f16a","dfc59183e57d6443f70056b89829d55a","0a58cbf05d0e83b5cfb3ed153151750d","abec219c1f6d1906d0213d4de502da45","e1873fe7af9ce55a5d1b5b9a3bc39a9d","b7ca911c22ea11fd08f4643020b1450d","e2125552fa2b9ddfbc8bb60bdac55c97","486d01fd3c94ebd16f84f6536f6f1c91","5356e38ea582e02b409e424a26d5ecc8","1984ab6f3dafbd4102e956997fe2352c","a7a8153236751bd356a79bb30c89af69","11ad862040eda62711f418f9a84c58ff","ec84b27f9dded8ef584c7249da37ea94","dbff577bf4b6d09d2e3fc5744979029e","885a241e00ad3913a5a55b95e51424a0","cf5eeae444c70998a0a5b5481d5fedf2","2320027556c457c034d578eba594b155","24ac617a10de59cc60d7d52b470a1ac4","ca9c043b1303b623f5e46d169f45329a","9cd895bcf53f393578205f2f79afb8b3","4b895c773ffabf07dbbacb7467333270","5d7eb5ba82878b9badbe908f8fcdd7e9","34e77fed44b876727ca7cecb75b6b9c8","9b7f6365fa9ad8d272d6953ee99c7a20","ca5b5f0c47153cfb8d1b3b27192fbce7","2334480ba8cdeb26e4a37ab752120fb9","6d4649cdd413dd635ac0ca0b37d452cc",{"version":"4198eb85452f1ee8650e3525ebc56405","affectsGlobalScope":true,"impliedNodeFormat":1},"a51a8e6599581e605aa01164b2aecf58","698b1018d1c18af70f8828dcf86dfb3f","e7d8b8d9632065d073198f8a97ef415f","8378623bb64e556c9c62d37b214e3f2a","f1b6fd6b86d263291725f1e6450c7a0f","a860181621c15a4495aea811188f6ade","209ff181f8921efcd0dc66e34b9e455d",{"version":"3c818c69e25524502fb01cdd4eb204ff","affectsGlobalScope":true,"impliedNodeFormat":1},"457028a15a800a0101897207083230b4","c2701f1731e335f6b79d584906b18c14","822714c9c063cb8aa30df160952b0b93","25964893a5671a9c91d97da7d2a90561","7f3862c3416b4cd58bde29bb2af9132b",{"version":"71ef107d823132e0a7ceebf9ea9e4568","signature":"a74e9b9b9da3fbea2d1d7726edd6b0e0","impliedNodeFormat":1},{"version":"7a19675e1b2b3900f4c6c98b7d02fbe7","signature":"6a2fac1879296d6892d1665f985c748a","impliedNodeFormat":1},{"version":"0a5c9236faeb6d48e29af30df6067352","signature":"38d5592cd329bc0d79097c399be084ff","impliedNodeFormat":1}],"fileIdsList":[[64],[75,76,86,92,94,100,106],[66,81,104,105],[66,74,104,122],[66,76],[66],[66,78],[66,75,79,80,82,85,104],[66,75,76,77,79,82,84,104],[66,93,104],[66,76,91],[66,75,81,104],[66,85],[66,104],[66,104,105],[76,92],[66,92,93,95,104],[74,85,86,104,107,108,109,110,111,112,113,114,115,116,117,118],[74,75,77,78,79,80,81,82,85,86,91,92,93,94,96,98,100,104,105,106,107,118,119,120,121],[66,76,77,104],[66,76,104],[66,92,104],[66,73,75,77,78,79,82,85,86,87,88,89,90,92,93,94,97,98,99,100,101,103,105,106,107,119,122],[73],[78,92],[66,78,93],[102],[85],[66,79,81,94,96,97],[83,85],[107],[76,104],[81],[69],[67,69,70,71,72],[68],[124],[123],[65,66,122]],"options":{"composite":true,"emitDeclarationOnly":true,"declaration":true,"declarationDir":"./types","declarationMap":true,"module":99,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":10,"tsBuildInfoFile":"./.tsbuildinfo","esModuleInterop":true},"referencedMap":[[65,1],[107,2],[100,3],[75,4],[77,5],[78,6],[118,7],[81,8],[85,9],[94,10],[92,11],[82,12],[80,13],[86,14],[106,15],[95,16],[96,17],[97,6],[79,7],[119,18],[122,19],[89,20],[90,21],[88,21],[105,22],[104,23],[99,24],[93,25],[121,26],[103,27],[108,28],[98,29],[83,28],[84,30],[117,31],[116,32],[115,33],[70,34],[73,35],[69,36],[125,37],[124,38],[123,39]],"latestChangedDtsFile":"./types/index.d.ts"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../hotjar-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../hotjar-DH_d3Xyx.cjs");exports.hotjarPlugin=e.t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../hotjar-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../hotjar-DH_d3Xyx.cjs");exports.hotjarPlugin=e.t;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as hotjarPlugin };
|
|
1
|
+
export { t as hotjarPlugin } from "../hotjar-Sa6Ivtz5.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as hotjarPlugin };
|
|
1
|
+
export { t as hotjarPlugin } from "../../../hotjar-Sa6Ivtz5.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));let c=require("@hotjar/browser");c=s(c,1);let l=require("@picked/client"),u=require("effector");var d=[`step_enter`,`step_complete`,`step_submit`,`field_validation_error`,`experience_complete`,`experience_initialize`,`session`],f=({siteId:e,snippetVersion:t=6,trackedEvents:n=d,getUserAttributes:r,autoStartRecording:i=!0,recordingStartEvent:a=`hotjar_start`})=>{let o=!1,s=!1,f={events:[],isProcessing:!1,isWaiting:!1,push(e){f.events.push(e),Promise.resolve().then(()=>this.processQueue())},processQueue(){if(!this.isProcessing){if(!c.default.isReady())this.wait();else{this.isProcessing=!0;try{for(;this.events.length>0;){let e=this.events.shift();if(!e)break;e()}}finally{this.isProcessing=!1,this.events.length>0&&c.default.isReady()&&Promise.resolve().then(()=>this.processQueue())}}}},wait(){if(this.isWaiting)return;this.isWaiting=!0;let e=setInterval(()=>{c.default.isReady()&&(clearInterval(e),this.isWaiting=!1,this.processQueue())},100)}},p=e=>{f.push(e)};return{name:`hotjar`,setup:d=>{if(!(0,l.supportsWindow)())return;let f=new Set(n),m=(0,u.createEffect)(n=>{if(!o){o=!0;try{c.default.init(e,t)}catch{}}p(()=>{try{i&&n.type===`experience_initialize`&&!s&&(c.default.event(a),s=!0);let e=[n.type],t=`experience`in n&&n.experience.experienceName;t&&(e.push(t),`step`in n&&n.step?.name&&e.push(n.step.name)),c.default.event(e.join(` > `))}catch{}})}),h=(0,u.createEffect)(e=>{e.type===`session`&&`id`in e&&p(()=>{try{let t=r?.()??{};c.default.identify(e.id,{projectId:d.projectId,...t})}catch{}})});(0,u.sample)({clock:d.eventBus,filter:({type:e})=>e===`session`,target:h}),(0,u.sample)({clock:d.eventBus,filter:e=>f.has(e.type),target:m})}}};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return f}});
|
|
@@ -20,19 +20,18 @@ var i = [
|
|
|
20
20
|
},
|
|
21
21
|
processQueue() {
|
|
22
22
|
if (!this.isProcessing) {
|
|
23
|
-
if (!e.isReady())
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
if (!e.isReady()) this.wait();
|
|
24
|
+
else {
|
|
25
|
+
this.isProcessing = !0;
|
|
26
|
+
try {
|
|
27
|
+
for (; this.events.length > 0;) {
|
|
28
|
+
let e = this.events.shift();
|
|
29
|
+
if (!e) break;
|
|
30
|
+
e();
|
|
31
|
+
}
|
|
32
|
+
} finally {
|
|
33
|
+
this.isProcessing = !1, this.events.length > 0 && e.isReady() && Promise.resolve().then(() => this.processQueue());
|
|
33
34
|
}
|
|
34
|
-
} finally {
|
|
35
|
-
this.isProcessing = !1, this.events.length > 0 && e.isReady() && Promise.resolve().then(() => this.processQueue());
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@picked/hotjar",
|
|
3
3
|
"description": "Picked Hotjar Plugin",
|
|
4
|
-
"version": "0.0.1-dev.
|
|
4
|
+
"version": "0.0.1-dev.1793753513002",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@hotjar/browser": "^1.0.9"
|
|
7
7
|
},
|
|
@@ -9,17 +9,18 @@
|
|
|
9
9
|
"@picked/client": "workspace:*",
|
|
10
10
|
"@repo/eslint-config": "workspace:*",
|
|
11
11
|
"@repo/typescript-config": "workspace:*",
|
|
12
|
+
"@repo/vitest-config": "workspace:*",
|
|
12
13
|
"@rollup/plugin-replace": "^6.0.3",
|
|
13
14
|
"@size-limit/preset-small-lib": "^12.1.0",
|
|
14
15
|
"@types/node": "^24",
|
|
15
|
-
"@vitest/coverage-v8": "^
|
|
16
|
+
"@vitest/coverage-v8": "^5.0.1",
|
|
16
17
|
"effector": "^23.4.4",
|
|
17
|
-
"
|
|
18
|
+
"happy-dom": "^21.0.4",
|
|
18
19
|
"size-limit": "^12.1.0",
|
|
19
20
|
"tsup": "^8.5.1",
|
|
20
21
|
"tsx": "^4.23.1",
|
|
21
22
|
"vite": "^8.2.0",
|
|
22
|
-
"vitest": "^
|
|
23
|
+
"vitest": "^5.0.1"
|
|
23
24
|
},
|
|
24
25
|
"exports": {
|
|
25
26
|
".": {
|
|
@@ -44,25 +45,32 @@
|
|
|
44
45
|
"jscpd",
|
|
45
46
|
"knip",
|
|
46
47
|
"tsgo"
|
|
48
|
+
],
|
|
49
|
+
"ignoreDependencies": [
|
|
50
|
+
"@repo/vitest-config"
|
|
47
51
|
]
|
|
48
52
|
},
|
|
53
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
49
54
|
"main": "./dist/cjs/index.js",
|
|
50
55
|
"module": "./dist/esm/index.js",
|
|
51
56
|
"peerDependencies": {
|
|
52
|
-
"@picked/client": "0.0.1-dev.
|
|
57
|
+
"@picked/client": "0.0.1-dev.1793753513002",
|
|
53
58
|
"effector": "^23.4.4"
|
|
54
59
|
},
|
|
55
60
|
"private": false,
|
|
61
|
+
"publishConfig": {
|
|
62
|
+
"access": "public"
|
|
63
|
+
},
|
|
56
64
|
"scripts": {
|
|
57
65
|
"build": "vite build && tsgo -p tsconfig.build.json",
|
|
58
66
|
"check": "pnpm type-check && pnpm lint && pnpm knip && pnpm jscpd",
|
|
59
67
|
"dev": "node ../../scripts/sdk-watch-build.mjs",
|
|
60
68
|
"jscpd": "jscpd src",
|
|
61
69
|
"knip": "knip",
|
|
62
|
-
"lint": "if [ \"$AGENT\" = \"true\" ]; then echo \"[AGENT HINT] Prefer running lint on specific files from the repo root: node scripts/lint-files.js <files>\"; fi && eslint . --cache --cache-location node_modules/.cache/eslint",
|
|
70
|
+
"lint": "if [ \"$AGENT\" = \"true\" ]; then echo \"[AGENT HINT] Prefer running lint on specific files from the repo root: node scripts/lint-files.js <files>\"; fi && eslint . --cache --cache-strategy content --cache-location node_modules/.cache/eslint",
|
|
63
71
|
"lint-files": "eslint",
|
|
64
72
|
"lint:format": "eslint . --fix",
|
|
65
|
-
"lint:report": "eslint . --cache --cache-location node_modules/.cache/eslint -o './.reports/eslint.json' -f json || true",
|
|
73
|
+
"lint:report": "eslint . --cache --cache-strategy content --cache-location node_modules/.cache/eslint -o './.reports/eslint.json' -f json || true",
|
|
66
74
|
"size": "size-limit",
|
|
67
75
|
"test": "vitest run",
|
|
68
76
|
"test:coverage": "../../scripts/vitest-coverage.sh",
|
package/dist/hotjar-DvUryMM-.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));let c=require("@hotjar/browser");c=s(c,1);let l=require("@picked/client"),u=require("effector");var d=[`step_enter`,`step_complete`,`step_submit`,`field_validation_error`,`experience_complete`,`experience_initialize`,`session`],f=({siteId:e,snippetVersion:t=6,trackedEvents:n=d,getUserAttributes:r,autoStartRecording:i=!0,recordingStartEvent:a=`hotjar_start`})=>{let o=!1,s=!1,f={events:[],isProcessing:!1,isWaiting:!1,push(e){f.events.push(e),Promise.resolve().then(()=>this.processQueue())},processQueue(){if(!this.isProcessing){if(!c.default.isReady()){this.wait();return}this.isProcessing=!0;try{for(;this.events.length>0;){let e=this.events.shift();if(!e)break;e()}}finally{this.isProcessing=!1,this.events.length>0&&c.default.isReady()&&Promise.resolve().then(()=>this.processQueue())}}},wait(){if(this.isWaiting)return;this.isWaiting=!0;let e=setInterval(()=>{c.default.isReady()&&(clearInterval(e),this.isWaiting=!1,this.processQueue())},100)}},p=e=>{f.push(e)};return{name:`hotjar`,setup:d=>{if(!(0,l.supportsWindow)())return;let f=new Set(n),m=(0,u.createEffect)(n=>{if(!o){o=!0;try{c.default.init(e,t)}catch{}}p(()=>{try{i&&n.type===`experience_initialize`&&!s&&(c.default.event(a),s=!0);let e=[n.type],t=`experience`in n&&n.experience.experienceName;t&&(e.push(t),`step`in n&&n.step?.name&&e.push(n.step.name)),c.default.event(e.join(` > `))}catch{}})}),h=(0,u.createEffect)(e=>{e.type===`session`&&`id`in e&&p(()=>{try{let t=r?.()??{};c.default.identify(e.id,{projectId:d.projectId,...t})}catch{}})});(0,u.sample)({clock:d.eventBus,filter:({type:e})=>e===`session`,target:h}),(0,u.sample)({clock:d.eventBus,filter:e=>f.has(e.type),target:m})}}};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return f}});
|