@nexly/react-native 0.15.4 → 0.16.0

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/README.md CHANGED
@@ -34,7 +34,7 @@ function Root() {
34
34
  return (
35
35
  <Button
36
36
  title="Upgrade"
37
- onPress={() => client?.event({ name: 'upgrade_clicked', type: 'custom', data: { plan: 'pro' } })}
37
+ onPress={() => client?.customEvent('upgrade_clicked', { plan: 'pro' })}
38
38
  />
39
39
  )
40
40
  }
@@ -55,8 +55,8 @@ developers expect.
55
55
 
56
56
  Call `screenview()` only when the user actually views a different screen or
57
57
  route. Do not use it for button taps, form input, tab content changes inside the
58
- same screen, or other interactions. Send those with `client.event(...)` instead;
59
- they still carry the current screen as `path` and are counted as engagement.
58
+ same screen, or other interactions. Send those with `client.customEvent(...)`
59
+ or `client.event(...)` instead; they still carry the current screen as `path`.
60
60
 
61
61
  Hook it up to your router of choice. Example with `@react-navigation/native`:
62
62
 
package/dist/index.d.ts CHANGED
@@ -5,5 +5,5 @@ export { Nexly } from './nexly.js';
5
5
  export { NexlyProvider, useNexlyClient, type NexlyProviderProps } from './nexly-provider.js';
6
6
  export { collectEventMeta, collectSessionMeta } from './device-meta.js';
7
7
  export { prewarmIds, touchSession, getCachedSessionId, getCachedVisitorId } from './session.js';
8
- export type { NexlyEventInput, NexlyEventType, NexlyInit } from '@nexly/core';
8
+ export type { CData, NexlyEventInput, NexlyEventType, NexlyInit, StandardContextOverride, } from '@nexly/core';
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC5F,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACvE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAC/F,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC5F,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACvE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAC/F,YAAY,EACV,KAAK,EACL,eAAe,EACf,cAAc,EACd,SAAS,EACT,uBAAuB,GACxB,MAAM,aAAa,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexly/react-native",
3
- "version": "0.15.4",
3
+ "version": "0.16.0",
4
4
  "description": "React Native bindings for Nexly: fetch transport, AsyncStorage IDs, AppState engagement on top of @nexly/core",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -43,7 +43,7 @@
43
43
  "react-native": ">=0.72.0"
44
44
  },
45
45
  "dependencies": {
46
- "@nexly/core": "0.15.4"
46
+ "@nexly/core": "0.16.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@react-native-async-storage/async-storage": "^2.1.2",