@mparticle/web-braze-kit 5.0.0 → 5.0.1
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 +5 -1
- package/dist/BrazeKit.common.js +6 -5
- package/dist/BrazeKit.esm.js +11141 -0
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
--
|
|
4
4
|
|
|
5
|
-
## 5.
|
|
5
|
+
## 5.0.1 - 2024-11-13
|
|
6
|
+
- ci: Add esm support [#53](https://github.com/mparticle-integrations/mparticle-javascript-integration-braze/pull/53)
|
|
7
|
+
- fix: Update package.json to support esm, define missing variable declarations [#54](https://github.com/mparticle-integrations/mparticle-javascript-integration-braze/pull/54)
|
|
8
|
+
|
|
9
|
+
## 5.0.0 - 2024-10-30
|
|
6
10
|
|
|
7
11
|
⚠️ **Breaking** - The mParticle web Braze kit now supports Braze's Web SDK v5.5.0. Breaking changes cna be viewed at [Braze's changelog](https://www.braze.com/docs/developer_guide/platform_integration_guides/web/changelog/#500). There may be API changes that affect you if you call `braze` directly from your code.
|
|
8
12
|
- feat: Support Braze Web SDK V5 [#52)](https://github.com/mparticle-integrations/mparticle-javascript-integration-braze/pull/52)
|
package/dist/BrazeKit.common.js
CHANGED
|
@@ -10002,8 +10002,6 @@ var src = /*#__PURE__*/Object.freeze({
|
|
|
10002
10002
|
|
|
10003
10003
|
var require$$0 = /*@__PURE__*/getAugmentedNamespace(src);
|
|
10004
10004
|
|
|
10005
|
-
/* eslint-disable no-undef */
|
|
10006
|
-
|
|
10007
10005
|
window.braze = require$$0;
|
|
10008
10006
|
// Copyright 2015 mParticle, Inc.
|
|
10009
10007
|
//
|
|
@@ -10023,7 +10021,7 @@ window.braze = require$$0;
|
|
|
10023
10021
|
var name = 'Appboy',
|
|
10024
10022
|
suffix = 'v5',
|
|
10025
10023
|
moduleId = 28,
|
|
10026
|
-
version = '5.0.
|
|
10024
|
+
version = '5.0.1',
|
|
10027
10025
|
MessageType = {
|
|
10028
10026
|
PageView: 3,
|
|
10029
10027
|
PageEvent: 4,
|
|
@@ -10136,7 +10134,7 @@ var constructor = function () {
|
|
|
10136
10134
|
eventAttributes
|
|
10137
10135
|
);
|
|
10138
10136
|
|
|
10139
|
-
reportEvent = braze.logPurchase(
|
|
10137
|
+
var reportEvent = braze.logPurchase(
|
|
10140
10138
|
eventName,
|
|
10141
10139
|
event.ProductAction.TotalAmount,
|
|
10142
10140
|
event.CurrencyCode,
|
|
@@ -10148,6 +10146,7 @@ var constructor = function () {
|
|
|
10148
10146
|
}
|
|
10149
10147
|
|
|
10150
10148
|
function logPurchaseEventPerProduct(event) {
|
|
10149
|
+
var reportEvent = false;
|
|
10151
10150
|
if (event.ProductAction.ProductList) {
|
|
10152
10151
|
event.ProductAction.ProductList.forEach(function(product) {
|
|
10153
10152
|
var productName;
|
|
@@ -10404,6 +10403,7 @@ var constructor = function () {
|
|
|
10404
10403
|
// mParticle commerce events use different Braze methods depending on if they are
|
|
10405
10404
|
// a purchase event or a non-purchase commerce event
|
|
10406
10405
|
function logCommerceEvent(event) {
|
|
10406
|
+
var reportEvent = false;
|
|
10407
10407
|
if (event.EventCategory === CommerceEventType.ProductPurchase) {
|
|
10408
10408
|
reportEvent = logPurchaseEvent(event);
|
|
10409
10409
|
return reportEvent === true;
|
|
@@ -10481,7 +10481,7 @@ var constructor = function () {
|
|
|
10481
10481
|
),
|
|
10482
10482
|
};
|
|
10483
10483
|
|
|
10484
|
-
reportEvent = logBrazeEvent(brazeEvent);
|
|
10484
|
+
var reportEvent = logBrazeEvent(brazeEvent);
|
|
10485
10485
|
return reportEvent;
|
|
10486
10486
|
} catch (err) {
|
|
10487
10487
|
return 'Error logging commerce event' + err.message;
|
|
@@ -10553,6 +10553,7 @@ var constructor = function () {
|
|
|
10553
10553
|
}
|
|
10554
10554
|
|
|
10555
10555
|
function logExpandedNonPurchaseCommerceEvents(event) {
|
|
10556
|
+
var reportEvent = false;
|
|
10556
10557
|
var listOfPageEvents = mParticle.eCommerce.expandCommerceEvent(event);
|
|
10557
10558
|
if (listOfPageEvents !== null) {
|
|
10558
10559
|
for (var i = 0; i < listOfPageEvents.length; i++) {
|