@artisan-commerce/analytics-rn 0.2.0-canary.7 → 0.2.0-canary.9
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/CHANGELOG.md +18 -0
- package/build/analytics-rn/src/index.d.ts +1 -0
- package/build/analytics-rn/src/lib/initAnalytics/initAnalytics.types.d.ts +1 -1
- package/build/analytics-rn/src/lib/providers/AnalyticsProvider/AnalyticsProvider.d.ts +1 -1
- package/build/analytics-rn/src/lib/providers/AnalyticsProvider/AnalyticsProvider.types.d.ts +2 -2
- package/build/analytics-rn/src/test/exports.test.d.ts +1 -0
- package/build/analytics-rn/src/utils/state.utils.d.ts +8 -0
- package/build/main.bundle.js +11 -11
- package/build/report.json +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.2.0-canary.9](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/analytics-rn@0.2.0-canary.8...@artisan-commerce/analytics-rn@0.2.0-canary.9) (2021-04-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **global:** fix updateActiveVendor utility function and state lib ([e5d9c52](https://bitbucket.org/tradesystem/artisan_monorepo/commit/e5d9c52455929782ada1762b03abb3363efe88cf))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [0.2.0-canary.8](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/analytics-rn@0.2.0-canary.7...@artisan-commerce/analytics-rn@0.2.0-canary.8) (2021-04-23)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **analytics-rn:** expose util function to update active vendor ([4247982](https://bitbucket.org/tradesystem/artisan_monorepo/commit/4247982bfd6bec52db7dc28f32cd06821b724909))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [0.2.0-canary.7](https://bitbucket.org/tradesystem/artisan_monorepo/compare/@artisan-commerce/analytics-rn@0.2.0-canary.6...@artisan-commerce/analytics-rn@0.2.0-canary.7) (2021-04-22)
|
|
7
25
|
|
|
8
26
|
**Note:** Version bump only for package @artisan-commerce/analytics-rn
|
|
@@ -6,3 +6,4 @@ export * from "./lib/providers/FacebookPixel/FacebookPixel.types";
|
|
|
6
6
|
export * from "./lib/providers/GoogleAnalytics/GoogleAnalytics.types";
|
|
7
7
|
export { default as events } from "./lib/events/events";
|
|
8
8
|
export * from "./types/common.types";
|
|
9
|
+
export { updateActiveVendor } from "./utils/state.utils";
|
|
@@ -3,7 +3,7 @@ import { AnalyticsMeta } from "../../types/common.types";
|
|
|
3
3
|
export interface InitAnalyticsConfig {
|
|
4
4
|
providers: any[];
|
|
5
5
|
activeVendor?: Vendor["id"];
|
|
6
|
-
vendors: Vendor["id"][];
|
|
6
|
+
vendors: Vendor["id"][] | undefined;
|
|
7
7
|
debug?: boolean;
|
|
8
8
|
meta: InitAnalyticsConfigMeta;
|
|
9
9
|
}
|
|
@@ -24,7 +24,7 @@ declare abstract class AnalyticsProvider implements IAnaliticsProvider {
|
|
|
24
24
|
* @since 0.5.14
|
|
25
25
|
* @returns Analytics Provider vendors, if not specified it fallsback to the global vendors
|
|
26
26
|
*/
|
|
27
|
-
get vendors(): number[];
|
|
27
|
+
get vendors(): number[] | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Updates the provider instance config for the next events.
|
|
30
30
|
*
|
|
@@ -20,9 +20,9 @@ export interface AnalyticsProviderConstructor {
|
|
|
20
20
|
* @interface IAnaliticsProvider
|
|
21
21
|
* @since 0.5.14
|
|
22
22
|
* @property {Function} updateConfig Updates the initial config of the provider
|
|
23
|
-
* @property {
|
|
23
|
+
* @property {number[]} vendors The provider selected vendors ids
|
|
24
24
|
*/
|
|
25
25
|
export interface IAnaliticsProvider {
|
|
26
26
|
updateConfig: (config: Partial<unknown>) => void;
|
|
27
|
-
vendors: Vendor["id"][];
|
|
27
|
+
vendors: Vendor["id"][] | undefined;
|
|
28
28
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { GlobalState } from "../types/state.types";
|
|
2
|
+
import { Vendor } from "@artisan-commerce/types";
|
|
2
3
|
export declare const setInitialState: () => void;
|
|
3
4
|
export declare const getState: () => GlobalState;
|
|
4
5
|
export declare const setState: (state: Partial<GlobalState>) => void;
|
|
6
|
+
/**
|
|
7
|
+
* Utility function to update the active vendor.
|
|
8
|
+
*
|
|
9
|
+
* @since 0.5.14
|
|
10
|
+
* @param {Vendor|number} vendor New active vendor
|
|
11
|
+
*/
|
|
12
|
+
export declare const updateActiveVendor: (vendor: Vendor | Vendor["id"]) => void;
|