@crystaldesign/diva-utils 25.7.0-beta.3 → 25.7.0-beta.30

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.
@@ -405,7 +405,7 @@ var BusinessMetricsUtils = /*#__PURE__*/function () {
405
405
  event = _objectSpread(_objectSpread({}, e), {}, {
406
406
  organizationId: (_this$initEvent4 = this.initEvent) === null || _this$initEvent4 === void 0 || (_this$initEvent4 = _this$initEvent4.organization) === null || _this$initEvent4 === void 0 ? void 0 : _this$initEvent4.id
407
407
  });
408
- if (!(this.isDevelopment && false)) {
408
+ if (!this.isDevelopment) {
409
409
  _context6.next = 10;
410
410
  break;
411
411
  }
@@ -1424,11 +1424,8 @@ var UTMUtils = /*#__PURE__*/function () {
1424
1424
  key: "addUtmParams",
1425
1425
  value: function addUtmParams(url) {
1426
1426
  var queryString = this.getQueryString();
1427
- if (queryString) {
1428
- var separator = url.includes('?') ? '&' : '?';
1429
- return "".concat(url).concat(separator).concat(queryString);
1430
- }
1431
- return url;
1427
+ //the data prefix is because the message service also parses this as a template
1428
+ return url.replaceAll('${data.utmQueryString}', "".concat(queryString));
1432
1429
  }
1433
1430
  }]);
1434
1431
  }();
@@ -1459,6 +1456,8 @@ var UtmCampaign = /*#__PURE__*/function (UtmCampaign) {
1459
1456
  UtmCampaign["PLANNER_QR_SHARE"] = "planner_qr_share";
1460
1457
  UtmCampaign["PRODUCT_QR_CODE"] = "product_qr_code";
1461
1458
  UtmCampaign["PLANNER_SHARE"] = "planner_share";
1459
+ UtmCampaign["PLANNER_SAVE"] = "planner_save";
1460
+ UtmCampaign["PLANNER_CREATE_APPOINTMENT"] = "planner_create_appointment";
1462
1461
  return UtmCampaign;
1463
1462
  }({});
1464
1463
  var UtmContent = /*#__PURE__*/function (UtmContent) {
@@ -386,7 +386,7 @@ var BusinessMetricsUtils = /*#__PURE__*/function () {
386
386
  event = _objectSpread(_objectSpread({}, e), {}, {
387
387
  organizationId: (_this$initEvent4 = this.initEvent) === null || _this$initEvent4 === void 0 || (_this$initEvent4 = _this$initEvent4.organization) === null || _this$initEvent4 === void 0 ? void 0 : _this$initEvent4.id
388
388
  });
389
- if (!(this.isDevelopment && false)) {
389
+ if (!this.isDevelopment) {
390
390
  _context6.next = 10;
391
391
  break;
392
392
  }
@@ -1405,11 +1405,8 @@ var UTMUtils = /*#__PURE__*/function () {
1405
1405
  key: "addUtmParams",
1406
1406
  value: function addUtmParams(url) {
1407
1407
  var queryString = this.getQueryString();
1408
- if (queryString) {
1409
- var separator = url.includes('?') ? '&' : '?';
1410
- return "".concat(url).concat(separator).concat(queryString);
1411
- }
1412
- return url;
1408
+ //the data prefix is because the message service also parses this as a template
1409
+ return url.replaceAll('${data.utmQueryString}', "".concat(queryString));
1413
1410
  }
1414
1411
  }]);
1415
1412
  }();
@@ -1440,6 +1437,8 @@ var UtmCampaign = /*#__PURE__*/function (UtmCampaign) {
1440
1437
  UtmCampaign["PLANNER_QR_SHARE"] = "planner_qr_share";
1441
1438
  UtmCampaign["PRODUCT_QR_CODE"] = "product_qr_code";
1442
1439
  UtmCampaign["PLANNER_SHARE"] = "planner_share";
1440
+ UtmCampaign["PLANNER_SAVE"] = "planner_save";
1441
+ UtmCampaign["PLANNER_CREATE_APPOINTMENT"] = "planner_create_appointment";
1443
1442
  return UtmCampaign;
1444
1443
  }({});
1445
1444
  var UtmContent = /*#__PURE__*/function (UtmContent) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/UTMUtils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE3D,qBAAa,QAAQ;IACnB,OAAO,CAAC,UAAU,CAAY;IAC9B,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,WAAW,CAAC,CAAa;IACjC,OAAO,CAAC,QAAQ,CAAC,CAAS;gBAEd,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,MAAM;IAQtH,cAAc,IAAI,MAAM;IAUxB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;CAQzC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/UTMUtils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE3D,qBAAa,QAAQ;IACnB,OAAO,CAAC,UAAU,CAAY;IAC9B,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,WAAW,CAAC,CAAa;IACjC,OAAO,CAAC,QAAQ,CAAC,CAAS;gBAEd,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,UAAU,EAAE,QAAQ,CAAC,EAAE,MAAM;IAQtH,cAAc,IAAI,MAAM;IAUxB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;CAKzC"}
@@ -21,7 +21,9 @@ export declare enum UtmMedium {
21
21
  export declare enum UtmCampaign {
22
22
  PLANNER_QR_SHARE = "planner_qr_share",
23
23
  PRODUCT_QR_CODE = "product_qr_code",
24
- PLANNER_SHARE = "planner_share"
24
+ PLANNER_SHARE = "planner_share",
25
+ PLANNER_SAVE = "planner_save",
26
+ PLANNER_CREATE_APPOINTMENT = "planner_create_appointment"
25
27
  }
26
28
  export declare enum UtmContent {
27
29
  PLANNER_SHARE_BUTTON = "share_button_planner_header",
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/UTMUtils/types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,CAAC,MAAM,CAAE,SAAS;IAClB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ;AAED,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,oBAAY,WAAW;IACrB,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,aAAa,kBAAkB;CAChC;AAED,oBAAY,UAAU;IACpB,oBAAoB,gCAAgC;IACpD,6BAA6B,kCAAkC;CAChE;AAED,MAAM,WAAW,SAAS;IACxB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/utils/UTMUtils/types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,CAAC,MAAM,CAAE,SAAS;IAClB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ;AAED,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,oBAAY,WAAW;IACrB,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,0BAA0B,+BAA+B;CAC1D;AAED,oBAAY,UAAU;IACpB,oBAAoB,gCAAgC;IACpD,6BAA6B,kCAAkC;CAChE;AAED,MAAM,WAAW,SAAS;IACxB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-utils",
3
- "version": "25.7.0-beta.3",
3
+ "version": "25.7.0-beta.30",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -24,5 +24,5 @@
24
24
  "module": "build/esm/index.js",
25
25
  "types": "./build/types/utils/src/index.d.ts",
26
26
  "main": "build/cjs/index.js",
27
- "gitHead": "431f1a69d848f7156d7846cc1ffcf8d6a64b3c26"
27
+ "gitHead": "b0f9e05c577bbcbc2cadebce8cc473d2d71f0f5d"
28
28
  }