react-marketing-tools 0.2.4 → 0.2.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.
package/README.md CHANGED
@@ -20,13 +20,17 @@ COMING SOON: [React Marketing Tools Demo](https://)
20
20
  ```js
21
21
  import React from 'react'
22
22
  import ReactDOM from 'react-dom/client'
23
- import { ReactMarketingProvider, buildConfig } from 'react-marketing-tools';
24
- import { BuildConfigOptions } from './lib/types'
23
+ import {
24
+ ReactMarketingProvider,
25
+ buildConfig,
26
+ BuildConfigOptions,
27
+ Tokens,
28
+ } from 'react-marketing-tools'
25
29
  import App from './App'
26
30
 
27
31
  /*
28
32
  TOKENS are optional
29
- const TOKENS = {
33
+ const TOKENS: Tokens = {
30
34
 
31
35
  // if withDeviceInfo is true you must supply this token.
32
36
  IP_INFO_TOKEN: 'SOME_TOKEN',
@@ -90,13 +94,14 @@ COMING SOON: [React Marketing Tools Demo](https://)
90
94
  ## Usage with Provider
91
95
  ```js
92
96
  import { useState, useEffect, useCallback, useRef } from 'react'
93
- import { useMarketingApi, useMarketingState } from './lib'
94
97
  import {
98
+ useMarketingApi,
99
+ useMarketingState,
95
100
  EventNameInfo,
101
+ TrackAnalyticsEventOptions,
96
102
  ProviderApiProps,
97
103
  ProviderStateProps,
98
- TrackAnalyticsEventOptions,
99
- } from './types'
104
+ } from 'react-marketing-tools'
100
105
 
101
106
  function App() {
102
107
  const [count, setCount] = useState(0)
package/dist/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from './lib/analytics/types'
2
2
  export * from './lib/buildConfig/types'
3
3
  export * from './lib/ipInfo/types'
4
4
  export * from './lib/types'
5
+ export * from './lib/index'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-marketing-tools",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "React Marketing Tools are a set of tools to make it easier for you to implement analytics and track user journeys, interactions throughout your App. using dataLayer/Google Tag Manager, GA4 fetch directly or coming soon facebook pixel.",
5
5
  "license": "MIT",
6
6
  "author": "bronz3beard <exempli.gratia.webdesign@gmail.com> (https://www.heyrory.com/)",