@artisan-commerce/analytics-web 0.1.1-canary.2 → 0.2.0-canary.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/CHANGELOG.md +9 -0
- package/build/main.bundle.js +3 -3
- package/build/report.json +1 -1
- package/build/src/lib/events/events.types.d.ts +3 -3
- package/build/src/lib/events/product/filterProducts/filterProducts.types.d.ts +2 -2
- package/build/src/lib/events/product/sortProducts/sortProducts.types.d.ts +1 -1
- package/build/src/lib/initAnalytics/initAnalytics.types.d.ts +3 -3
- package/build/src/lib/providers/AnalyticsProvider/AnalyticsProvider.d.ts +1 -1
- package/build/src/lib/providers/Segment/Segment.types.d.ts +1 -1
- package/build/src/types/common.types.d.ts +6 -6
- package/build/src/types/event.types.d.ts +79 -79
- package/build/src/types/state.types.d.ts +1 -1
- package/build/src/utils/events.utils.d.ts +1 -1
- package/package.json +10 -10
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Google Analytics event shared parameters.
|
|
3
3
|
*
|
|
4
|
-
* @interface
|
|
4
|
+
* @interface ArtisnCommonEventParams
|
|
5
5
|
* @since 0.5.14
|
|
6
6
|
* @property {string} userId The user's unique identifier between platforms
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
9
|
-
|
|
8
|
+
export interface ArtisnCommonEventParams {
|
|
9
|
+
artisnName?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Workflow types.
|
|
@@ -7,8 +7,8 @@ import { FilterProductsParams as SegmentFilterProductsParams } from "../../../pr
|
|
|
7
7
|
* @interface FilterProductsCommonParams
|
|
8
8
|
* @since 0.5.14
|
|
9
9
|
* @property {string} list the name of the list of products to filter
|
|
10
|
-
* @property {string} filterBy key:value list of filters e.g. ["brand:
|
|
11
|
-
* @property {string} categoryId if the list is an
|
|
10
|
+
* @property {string} filterBy key:value list of filters e.g. ["brand:Artisn"]
|
|
11
|
+
* @property {string} categoryId if the list is an artisn category, the category id
|
|
12
12
|
*/
|
|
13
13
|
export interface FilterProductsCommonParams {
|
|
14
14
|
list: string;
|
|
@@ -9,7 +9,7 @@ import { SortProductsParams as SegmentSortProductsParams } from "../../../provid
|
|
|
9
9
|
* @property {string} list the name of the list of products to sort
|
|
10
10
|
* @property {string} sortBy sort attribute by (e.g. alphabetical)
|
|
11
11
|
* @property {string} sortMethod method used to sort (e.g. asc)
|
|
12
|
-
* @property {string} categoryId if the list is an
|
|
12
|
+
* @property {string} categoryId if the list is an artisn category, the category id
|
|
13
13
|
*/
|
|
14
14
|
export interface SortProductsCommonParams {
|
|
15
15
|
list: string;
|
|
@@ -10,7 +10,7 @@ import { AnalyticsProviderTypes } from "../../types/event.types";
|
|
|
10
10
|
* @property {number} activeVendor The vendor that will emit the events
|
|
11
11
|
* @property {number[]|undefined} vendors List of vendors that can emit events if active
|
|
12
12
|
* @property {boolean} debug Debug mode
|
|
13
|
-
* @property {boolean}
|
|
13
|
+
* @property {boolean} shareArtisnAnalytics Share e-commerce analytics with Trade
|
|
14
14
|
* @property {InitAnalyticsConfigMeta} meta Commerce's metadata
|
|
15
15
|
*/
|
|
16
16
|
export interface InitAnalyticsConfig {
|
|
@@ -18,7 +18,7 @@ export interface InitAnalyticsConfig {
|
|
|
18
18
|
activeVendor?: Vendor["id"];
|
|
19
19
|
vendors: Vendor["id"][] | undefined;
|
|
20
20
|
debug?: boolean;
|
|
21
|
-
|
|
21
|
+
shareArtisnAnalytics?: boolean;
|
|
22
22
|
meta: InitAnalyticsConfigMeta;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -32,7 +32,7 @@ export interface InitAnalyticsConfig {
|
|
|
32
32
|
* @property {string} storeName The name of the active store
|
|
33
33
|
* @property {number} catalogueId The id of the active catalogue
|
|
34
34
|
* @property {string} catalogueName The name of the active catalogue
|
|
35
|
-
* @property {
|
|
35
|
+
* @property {ArtisnPlatform} platform The type of platform it is running on
|
|
36
36
|
*/
|
|
37
37
|
export interface InitAnalyticsConfigMeta extends Omit<AnalyticsMeta, "vendorId" | "versionSDK" | "platform" | "vendorName" | "storeId" | "storeName" | "catalogueId" | "catalogueName"> {
|
|
38
38
|
vendorName?: AnalyticsMeta["vendorName"] | undefined;
|
|
@@ -17,7 +17,7 @@ declare abstract class AnalyticsProvider implements IAnaliticsProvider {
|
|
|
17
17
|
*
|
|
18
18
|
* @constructs
|
|
19
19
|
* @since 0.5.14
|
|
20
|
-
* @param {Config} config
|
|
20
|
+
* @param {Config} config artisn's account unique identifier.
|
|
21
21
|
*/
|
|
22
22
|
constructor(config: Config);
|
|
23
23
|
/**
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { Account,
|
|
1
|
+
import { Account, ArtisnPlatform, Catalogue } from "@artisan-commerce/types";
|
|
2
2
|
import { Store, Vendor } from "@artisan-commerce/types";
|
|
3
3
|
import { FacebookPixelProviderConfig } from "../lib/providers/FacebookPixel/FacebookPixel.types";
|
|
4
4
|
import { GoogleAnalyticsProviderConfig } from "../lib/providers/GoogleAnalytics/GoogleAnalytics.types";
|
|
5
5
|
/**
|
|
6
6
|
* Analytics providers configurable options.
|
|
7
7
|
*
|
|
8
|
-
* @typedef
|
|
8
|
+
* @typedef ArtisnPlatform
|
|
9
9
|
* @since 0.5.14
|
|
10
10
|
*/
|
|
11
11
|
export declare type AnalyticsProvidersConfigs = Partial<GoogleAnalyticsProviderConfig> | Partial<FacebookPixelProviderConfig>;
|
|
12
12
|
/**
|
|
13
13
|
* Analytics event metadata to be included in every sent event.
|
|
14
14
|
*
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface ArtisnPlatform
|
|
16
16
|
* @since 0.5.14
|
|
17
17
|
* @property {number} accountId the id of the account it is running on
|
|
18
18
|
* @property {number} vendorId the id of the active vendor
|
|
@@ -24,7 +24,7 @@ export declare type AnalyticsProvidersConfigs = Partial<GoogleAnalyticsProviderC
|
|
|
24
24
|
* @property {string} versionSDK the Analytics SDK version
|
|
25
25
|
* @property {string} versionApp the running on app version
|
|
26
26
|
* @property {string} appName the name of the app
|
|
27
|
-
* @property {
|
|
27
|
+
* @property {ArtisnPlatform} platform the type of platform it is running on
|
|
28
28
|
*/
|
|
29
29
|
export interface AnalyticsMeta {
|
|
30
30
|
accountId: Account["accountId"];
|
|
@@ -37,12 +37,12 @@ export interface AnalyticsMeta {
|
|
|
37
37
|
versionSDK: string;
|
|
38
38
|
versionApp: string;
|
|
39
39
|
appName: string;
|
|
40
|
-
platform:
|
|
40
|
+
platform: ArtisnPlatform;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Analytics supported providers.
|
|
44
44
|
*
|
|
45
|
-
* @typedef
|
|
45
|
+
* @typedef ArtisnPlatform
|
|
46
46
|
* @since 0.5.14
|
|
47
47
|
*/
|
|
48
48
|
export declare type SupportedProviders = "GOOGLE_ANALYTICS" | "FACEBOOK_PIXEL" | "SEGMENT";
|
|
@@ -5,194 +5,194 @@ import GlobalProvider from "../lib/providers/GlobalProvider/GlobalProvider";
|
|
|
5
5
|
import { GoogleAnalyticsProvider } from "../lib/providers/GoogleAnalytics/GoogleAnalytics.types";
|
|
6
6
|
import { SegmentProvider } from "../lib/providers/Segment/Segment.types";
|
|
7
7
|
/**
|
|
8
|
-
* Types of
|
|
8
|
+
* Types of artisn analytics providers
|
|
9
9
|
*
|
|
10
10
|
* @typedef AnalyticsProviderTypes
|
|
11
11
|
* @since 0.5.14
|
|
12
12
|
*/
|
|
13
13
|
export declare type AnalyticsProviderTypes = AnalyticsProvider | GlobalProvider;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Artisn Auth event names type
|
|
16
16
|
*
|
|
17
|
-
* @typedef
|
|
17
|
+
* @typedef ArtisnAuthEventNames
|
|
18
18
|
* @since 0.5.14
|
|
19
19
|
*/
|
|
20
|
-
export declare type
|
|
20
|
+
export declare type ArtisnAuthEventNames = "changePasswordAttempt" | "changePasswordFail" | "changePasswordSuccess" | "signIn" | "signOut" | "signUp" | "signUpAttempt";
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Artisn Banner event names type
|
|
23
23
|
*
|
|
24
|
-
* @typedef
|
|
24
|
+
* @typedef ArtisnBannerEventNames
|
|
25
25
|
* @since 0.5.14
|
|
26
26
|
*/
|
|
27
|
-
export declare type
|
|
27
|
+
export declare type ArtisnBannerEventNames = "bannerImpression" | "selectBanner";
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Artisn Billing event names type
|
|
30
30
|
*
|
|
31
|
-
* @typedef
|
|
31
|
+
* @typedef ArtisnBillingEventNames
|
|
32
32
|
* @since 0.5.14
|
|
33
33
|
*/
|
|
34
|
-
export declare type
|
|
34
|
+
export declare type ArtisnBillingEventNames = "addBillingInfo" | "selectBillingInfo" | "updateBillingInfo";
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Artisn Booking event names type
|
|
37
37
|
*
|
|
38
|
-
* @typedef
|
|
38
|
+
* @typedef ArtisnBookingEventNames
|
|
39
39
|
* @since 0.5.14
|
|
40
40
|
*/
|
|
41
|
-
export declare type
|
|
41
|
+
export declare type ArtisnBookingEventNames = "bookAppointment";
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Artisn Category event names type
|
|
44
44
|
*
|
|
45
|
-
* @typedef
|
|
45
|
+
* @typedef ArtisnCategoryEventNames
|
|
46
46
|
* @since 0.5.14
|
|
47
47
|
*/
|
|
48
|
-
export declare type
|
|
48
|
+
export declare type ArtisnCategoryEventNames = "categoryImpression" | "searchCategoryAttempt" | "selectCategory" | "viewCategory";
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Artisn Checkout event names type
|
|
51
51
|
*
|
|
52
|
-
* @typedef
|
|
52
|
+
* @typedef ArtisnCheckoutEventNames
|
|
53
53
|
* @since 0.5.14
|
|
54
54
|
*/
|
|
55
|
-
export declare type
|
|
55
|
+
export declare type ArtisnCheckoutEventNames = "checkoutAction" | "initiateCheckout";
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Artisn Coupon event names type
|
|
58
58
|
*
|
|
59
|
-
* @typedef
|
|
59
|
+
* @typedef ArtisnCouponEventNames
|
|
60
60
|
* @since 0.5.14
|
|
61
61
|
*/
|
|
62
|
-
export declare type
|
|
62
|
+
export declare type ArtisnCouponEventNames = "applyBenefit" | "couponCodeError" | "redeemCouponCode" | "removeBenefit" | "viewBenefitDetails" | "viewBenefitsWallet" | "viewQRStoreCoupon";
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* Artisn Credit event names type
|
|
65
65
|
*
|
|
66
|
-
* @typedef
|
|
66
|
+
* @typedef ArtisnCreditEventNames
|
|
67
67
|
* @since 0.5.14
|
|
68
68
|
*/
|
|
69
|
-
export declare type
|
|
69
|
+
export declare type ArtisnCreditEventNames = "addCredits" | "spendCredits" | "viewCredits";
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Artisn Fulfillment event names type
|
|
72
72
|
*
|
|
73
|
-
* @typedef
|
|
73
|
+
* @typedef ArtisnFulfillmentEventNames
|
|
74
74
|
* @since 0.5.14
|
|
75
75
|
*/
|
|
76
|
-
export declare type
|
|
76
|
+
export declare type ArtisnFulfillmentEventNames = "viewFulfillmentStep" | "viewTracking";
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Artisn Geo event names type
|
|
79
79
|
*
|
|
80
|
-
* @typedef
|
|
80
|
+
* @typedef ArtisnGeoEventNames
|
|
81
81
|
* @since 0.5.14
|
|
82
82
|
*/
|
|
83
|
-
export declare type
|
|
83
|
+
export declare type ArtisnGeoEventNames = "changeLocation" | "findLocation" | "outOfCoverage" | "setLocation";
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* Artisn Help event names type
|
|
86
86
|
*
|
|
87
|
-
* @typedef
|
|
87
|
+
* @typedef ArtisnHelpEventNames
|
|
88
88
|
* @since 0.5.14
|
|
89
89
|
*/
|
|
90
|
-
export declare type
|
|
90
|
+
export declare type ArtisnHelpEventNames = "requestAssistance";
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Artisn Loyalty event names type
|
|
93
93
|
*
|
|
94
|
-
* @typedef
|
|
94
|
+
* @typedef ArtisnLoyaltyEventNames
|
|
95
95
|
* @since 0.5.14
|
|
96
96
|
*/
|
|
97
|
-
export declare type
|
|
97
|
+
export declare type ArtisnLoyaltyEventNames = "earnPoints" | "sharePoints" | "spendPoints" | "viewLoyaltyLevel";
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* Artisn Order event names type
|
|
100
100
|
*
|
|
101
|
-
* @typedef
|
|
101
|
+
* @typedef ArtisnOrderEventNames
|
|
102
102
|
* @since 0.5.14
|
|
103
103
|
*/
|
|
104
|
-
export declare type
|
|
104
|
+
export declare type ArtisnOrderEventNames = "cancelOrder" | "rateOrder" | "requestRefund";
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* Artisn Other event names type
|
|
107
107
|
*
|
|
108
|
-
* @typedef
|
|
108
|
+
* @typedef ArtisnOtherEventNames
|
|
109
109
|
* @since 0.5.14
|
|
110
110
|
*/
|
|
111
|
-
export declare type
|
|
111
|
+
export declare type ArtisnOtherEventNames = "generateLead" | "pageView" | "searchPageContent";
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
113
|
+
* Artisn Payment event names type
|
|
114
114
|
*
|
|
115
|
-
* @typedef
|
|
115
|
+
* @typedef ArtisnPaymentEventNames
|
|
116
116
|
* @since 0.5.14
|
|
117
117
|
*/
|
|
118
|
-
export declare type
|
|
118
|
+
export declare type ArtisnPaymentEventNames = "changePaymentType" | "selectPaymentType" | "setPaymentInfo";
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* Artisn Product event names type
|
|
121
121
|
*
|
|
122
|
-
* @typedef
|
|
122
|
+
* @typedef ArtisnProductEventNames
|
|
123
123
|
* @since 0.5.14
|
|
124
124
|
*/
|
|
125
|
-
export declare type
|
|
125
|
+
export declare type ArtisnProductEventNames = "customizeProduct" | "filterProducts" | "productImpression" | "searchProductAttempt" | "searchProductNotFound" | "searchProductSuccess" | "selectProduct" | "sortProducts" | "viewProductDetails";
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
127
|
+
* Artisn Purchase event names type
|
|
128
128
|
*
|
|
129
|
-
* @typedef
|
|
129
|
+
* @typedef ArtisnPurchaseEventNames
|
|
130
130
|
* @since 0.5.14
|
|
131
131
|
*/
|
|
132
|
-
export declare type
|
|
132
|
+
export declare type ArtisnPurchaseEventNames = "purchaseAttempt" | "purchaseFail" | "purchaseSuccess";
|
|
133
133
|
/**
|
|
134
|
-
*
|
|
134
|
+
* Artisn Settings event names type
|
|
135
135
|
*
|
|
136
|
-
* @typedef
|
|
136
|
+
* @typedef ArtisnSettingsEventNames
|
|
137
137
|
* @since 0.5.14
|
|
138
138
|
*/
|
|
139
|
-
export declare type
|
|
139
|
+
export declare type ArtisnSettingsEventNames = "viewSettings";
|
|
140
140
|
/**
|
|
141
|
-
*
|
|
141
|
+
* Artisn Shipping event names type
|
|
142
142
|
*
|
|
143
|
-
* @typedef
|
|
143
|
+
* @typedef ArtisnShippingEventNames
|
|
144
144
|
* @since 0.5.14
|
|
145
145
|
*/
|
|
146
|
-
export declare type
|
|
146
|
+
export declare type ArtisnShippingEventNames = "addShippingAddress" | "selectShippingAddress" | "updateShippingAddress";
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* Artisn ShoppingCart event names type
|
|
149
149
|
*
|
|
150
|
-
* @typedef
|
|
150
|
+
* @typedef ArtisnShoppingCartEventNames
|
|
151
151
|
* @since 0.5.14
|
|
152
152
|
*/
|
|
153
|
-
export declare type
|
|
153
|
+
export declare type ArtisnShoppingCartEventNames = "addProductToCart" | "addProductToWishlist" | "clearCart" | "removeProductFromCart" | "removeProductFromWishlist" | "updateProductInCart" | "updateProductInWishlist" | "viewCart";
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
155
|
+
* Artisn Social event names type
|
|
156
156
|
*
|
|
157
|
-
* @typedef
|
|
157
|
+
* @typedef ArtisnSocialEventNames
|
|
158
158
|
* @since 0.5.14
|
|
159
159
|
*/
|
|
160
|
-
export declare type
|
|
160
|
+
export declare type ArtisnSocialEventNames = "share";
|
|
161
161
|
/**
|
|
162
|
-
*
|
|
162
|
+
* Artisn Store event names type
|
|
163
163
|
*
|
|
164
|
-
* @typedef
|
|
164
|
+
* @typedef ArtisnStoreEventNames
|
|
165
165
|
* @since 0.5.14
|
|
166
166
|
*/
|
|
167
|
-
export declare type
|
|
167
|
+
export declare type ArtisnStoreEventNames = "changeStore" | "setStore";
|
|
168
168
|
/**
|
|
169
|
-
*
|
|
169
|
+
* Artisn User event names type
|
|
170
170
|
*
|
|
171
|
-
* @typedef
|
|
171
|
+
* @typedef ArtisnUserEventNames
|
|
172
172
|
* @since 0.5.14
|
|
173
173
|
*/
|
|
174
|
-
export declare type
|
|
174
|
+
export declare type ArtisnUserEventNames = "setUserInfo" | "updateUserInfo";
|
|
175
175
|
/**
|
|
176
|
-
*
|
|
176
|
+
* Artisn Vendor event names type
|
|
177
177
|
*
|
|
178
|
-
* @typedef
|
|
178
|
+
* @typedef ArtisnVendorEventNames
|
|
179
179
|
* @since 0.5.14
|
|
180
180
|
*/
|
|
181
|
-
export declare type
|
|
181
|
+
export declare type ArtisnVendorEventNames = "changeVendor" | "setVendor";
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
183
|
+
* Artisn Workflow event names type
|
|
184
184
|
*
|
|
185
|
-
* @typedef
|
|
185
|
+
* @typedef ArtisnWorkflowEventNames
|
|
186
186
|
* @since 0.5.14
|
|
187
187
|
*/
|
|
188
|
-
export declare type
|
|
188
|
+
export declare type ArtisnWorkflowEventNames = "selectWorkflow" | "updateWorkflow";
|
|
189
189
|
/**
|
|
190
|
-
*
|
|
190
|
+
* Artisn event names type
|
|
191
191
|
*
|
|
192
|
-
* @typedef
|
|
192
|
+
* @typedef ArtisnEventNames
|
|
193
193
|
* @since 0.5.14
|
|
194
194
|
*/
|
|
195
|
-
export declare type
|
|
195
|
+
export declare type ArtisnEventNames = ArtisnAuthEventNames | ArtisnBannerEventNames | ArtisnBillingEventNames | ArtisnBookingEventNames | ArtisnCategoryEventNames | ArtisnCheckoutEventNames | ArtisnCouponEventNames | ArtisnCreditEventNames | ArtisnFulfillmentEventNames | ArtisnGeoEventNames | ArtisnHelpEventNames | ArtisnLoyaltyEventNames | ArtisnOrderEventNames | ArtisnOtherEventNames | ArtisnPaymentEventNames | ArtisnProductEventNames | ArtisnPurchaseEventNames | ArtisnSettingsEventNames | ArtisnShippingEventNames | ArtisnShoppingCartEventNames | ArtisnSocialEventNames | ArtisnStoreEventNames | ArtisnUserEventNames | ArtisnVendorEventNames | ArtisnWorkflowEventNames;
|
|
196
196
|
/**
|
|
197
197
|
* ProvidersHandlers interface
|
|
198
198
|
*
|
|
@@ -6,7 +6,7 @@ export interface GlobalState {
|
|
|
6
6
|
activeVendor?: StrictInitAnalyticsConfig["activeVendor"];
|
|
7
7
|
vendors: StrictInitAnalyticsConfig["vendors"];
|
|
8
8
|
debug: StrictInitAnalyticsConfig["debug"];
|
|
9
|
-
|
|
9
|
+
shareArtisnAnalytics: StrictInitAnalyticsConfig["shareArtisnAnalytics"];
|
|
10
10
|
meta: GlobalStateMeta;
|
|
11
11
|
}
|
|
12
12
|
export interface GlobalStateMeta extends Omit<AnalyticsMeta, "accountId" | "vendorId" | "vendorName" | "storeId" | "storeName" | "catalogueId" | "catalogueName" | "appName" | "versionApp"> {
|
|
@@ -7,7 +7,7 @@ import { Segment } from "../lib/providers/Segment/Segment.types";
|
|
|
7
7
|
* Triage event to each provider handler.
|
|
8
8
|
*
|
|
9
9
|
* @since 0.5.14
|
|
10
|
-
* @param {string} eventName The
|
|
10
|
+
* @param {string} eventName The Artisn event name
|
|
11
11
|
* @param {T} params The event parameters
|
|
12
12
|
* @param {ProvidersHandlers<T>} providersHandlers The providers handlers
|
|
13
13
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artisan-commerce/analytics-web",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "0.
|
|
3
|
+
"description": "Artisn commerce analytics web library",
|
|
4
|
+
"version": "0.2.0-canary.0",
|
|
5
5
|
"main": "./build/main.bundle.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"README.md"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"
|
|
14
|
-
"dev": "yarn
|
|
13
|
+
"compile": "webpack --config webpack.dev.js",
|
|
14
|
+
"dev": "yarn compile",
|
|
15
15
|
"build": "webpack --config webpack.prod.js",
|
|
16
|
-
"
|
|
16
|
+
"compile:build": "nodemon ./build/main.bundle.js",
|
|
17
17
|
"test": "jest --watchAll --runInBand",
|
|
18
18
|
"test:all": "yarn test --watchAll=false --coverage",
|
|
19
19
|
"test:ci": "cross-env CI=true jest --runInBand",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"author": "Luis Eduardo Andrade",
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@artisan-commerce/state": "0.
|
|
33
|
+
"@artisan-commerce/state": "0.3.0-canary.0",
|
|
34
34
|
"snake-case": "^3.0.4"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@artisan-commerce/products": "0.9.0-canary.
|
|
38
|
-
"@artisan-commerce/shopping-cart": "0.
|
|
39
|
-
"@artisan-commerce/types": "0.14.0-canary.
|
|
37
|
+
"@artisan-commerce/products": "0.9.0-canary.2",
|
|
38
|
+
"@artisan-commerce/shopping-cart": "0.12.0-canary.0",
|
|
39
|
+
"@artisan-commerce/types": "0.14.0-canary.2",
|
|
40
40
|
"@babel/core": "^7.10.5",
|
|
41
41
|
"@babel/preset-env": "^7.10.4",
|
|
42
42
|
"@babel/preset-react": "^7.10.4",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"@artisan-commerce/products": "*",
|
|
84
84
|
"@artisan-commerce/shopping-cart": "*"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "61cd421cf586b967fe48a7502e1f3841c0877f0e"
|
|
87
87
|
}
|