@faststats/react 0.3.0 → 0.4.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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ConsentMode, FeatureFlagEvaluation, FeatureFlagEvaluation as FeatureFlagEvaluation$1, IdentifyOptions, WebAnalyticsOptions, WebAnalyticsOptions as WebAnalyticsOptions$1, getInstance, identify, identify as identify$1, logout, logout as logout$1, optIn, optIn as optIn$1, optOut, optOut as optOut$1, reportError, setConsentMode, setConsentMode as setConsentMode$1, trackEvent, trackEvent as trackEvent$1 } from "@faststats/web";
1
+ import { ConsentMode, FeatureFlagEvaluation, FeatureFlagEvaluation as FeatureFlagEvaluation$1, IdentifyOptions, PendingBehavior, WebAnalyticsOptions, WebAnalyticsOptions as WebAnalyticsOptions$1, getInstance, identify, identify as identify$1, logout, logout as logout$1, optIn, optIn as optIn$1, optOut, optOut as optOut$1, reportError, setConsentMode, setConsentMode as setConsentMode$1, trackEvent, trackEvent as trackEvent$1 } from "@faststats/web";
2
2
 
3
3
  //#region src/analytics.d.ts
4
4
  type AnalyticsProps = WebAnalyticsOptions$1;
@@ -26,4 +26,4 @@ type UseFlagResult = FeatureFlagEvaluation$1 & {
26
26
  };
27
27
  declare function useFlag(flagKey: string, options?: UseFlagOptions): UseFlagResult;
28
28
  //#endregion
29
- export { Analytics, type AnalyticsProps, type ConsentMode, type FeatureFlagEvaluation, type IdentifyOptions, type UseFlagOptions, type UseFlagResult, type WebAnalyticsOptions, getInstance, identify, logout, optIn, optOut, reportError, setConsentMode, trackEvent, useConsentMode, useEvent, useFlag, useIdentify, useLogout, useOptIn, useOptOut, useTrack };
29
+ export { Analytics, type AnalyticsProps, type ConsentMode, type FeatureFlagEvaluation, type IdentifyOptions, type PendingBehavior, type UseFlagOptions, type UseFlagResult, type WebAnalyticsOptions, getInstance, identify, logout, optIn, optOut, reportError, setConsentMode, trackEvent, useConsentMode, useEvent, useFlag, useIdentify, useLogout, useOptIn, useOptOut, useTrack };
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ function setInstance(wa) {
20
20
  //#endregion
21
21
  //#region src/analytics.tsx
22
22
  const SDK_NAME = "@faststats/react";
23
- const SDK_VERSION = "0.3.0";
23
+ const SDK_VERSION = "0.4.0";
24
24
  function Analytics(props) {
25
25
  const ownedRef = useRef(null);
26
26
  const propsRef = useRef(props);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/faststats-dev/faststats-javascript.git"
6
6
  },
7
- "version": "0.3.0",
7
+ "version": "0.4.0",
8
8
  "type": "module",
9
9
  "main": "./dist/index.js",
10
10
  "module": "./dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "react": ">=18"
32
32
  },
33
33
  "dependencies": {
34
- "@faststats/web": "^0.3.0"
34
+ "@faststats/web": "^0.4.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/react": "^19.0.0",