@datadog/browser-rum-shopify 7.16.2 → 7.17.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.
@@ -1,5 +1,5 @@
1
1
  let _datadog_js_core_util = require("@datadog/js-core/util");
2
- //#region src/boot/patchSandboxedIframeApis.ts
2
+ // src/boot/patchSandboxedIframeApis.ts
3
3
  /**
4
4
  * A Shopify Custom Pixel runs in a "lax" sandboxed iframe (`sandbox="allow-scripts"`, no
5
5
  * `allow-same-origin`): it shares the parent page's cookie jar (same domain) but has an
@@ -30,7 +30,6 @@ function disableProperty(target, key) {
30
30
  writable: true
31
31
  });
32
32
  }
33
- //#endregion
34
33
  exports.patchSandboxedIframeApis = patchSandboxedIframeApis;
35
34
 
36
35
  //# sourceMappingURL=patchSandboxedIframeApis.js.map
@@ -1,5 +1,5 @@
1
1
  let _datadog_browser_core = require("@datadog/browser-core");
2
- //#region src/domain/shopifyAnalytics.ts
2
+ // src/domain/shopifyAnalytics.ts
3
3
  function getPageUrl(event) {
4
4
  return event.context?.document?.location?.href;
5
5
  }
@@ -10,7 +10,6 @@ function waitForPageViewedEvent(analytics, { timeout = 1e3 } = {}) {
10
10
  });
11
11
  }), timeout);
12
12
  }
13
- //#endregion
14
13
  exports.getPageUrl = getPageUrl;
15
14
  exports.waitForPageViewedEvent = waitForPageViewedEvent;
16
15
 
@@ -1,5 +1,5 @@
1
1
  const require_shopifyAnalytics = require("./shopifyAnalytics.js");
2
- //#region src/domain/shopifyBindings.ts
2
+ // src/domain/shopifyBindings.ts
3
3
  const CHECKOUT_PATH_PATTERN = /\/(([a-z]{2}(-[a-z0-9]+)?)\/)?(checkouts?)(\/|$)/i;
4
4
  function isCheckoutPage(event) {
5
5
  const url = require_shopifyAnalytics.getPageUrl(event);
@@ -36,7 +36,6 @@ function initShopifyBindings(rumPublicApi, analytics) {
36
36
  });
37
37
  });
38
38
  }
39
- //#endregion
40
39
  exports.CHECKOUT_PATH_PATTERN = CHECKOUT_PATH_PATTERN;
41
40
  exports.initShopifyBindings = initShopifyBindings;
42
41
  exports.isCheckoutPage = isCheckoutPage;
@@ -2,7 +2,7 @@ const require_patchSandboxedIframeApis = require("../boot/patchSandboxedIframeAp
2
2
  const require_shopifyAnalytics = require("./shopifyAnalytics.js");
3
3
  const require_shopifyBindings = require("./shopifyBindings.js");
4
4
  let _datadog_js_core_util = require("@datadog/js-core/util");
5
- //#region src/domain/shopifyPlugin.ts
5
+ // src/domain/shopifyPlugin.ts
6
6
  /**
7
7
  * Adapts the RUM SDK to run inside a Shopify Custom Pixel sandbox. When `shopifyAnalytics` (the
8
8
  * sandbox's `analytics` global) is provided, patches the sandboxed iframe's APIs, wires Shopify
@@ -29,7 +29,6 @@ function shopifyPlugin(configuration) {
29
29
  }
30
30
  };
31
31
  }
32
- //#endregion
33
32
  exports.shopifyPlugin = shopifyPlugin;
34
33
 
35
34
  //# sourceMappingURL=shopifyPlugin.js.map
@@ -3,11 +3,10 @@ let _datadog_js_core_util = require("@datadog/js-core/util");
3
3
  let _datadog_browser_core = require("@datadog/browser-core");
4
4
  let _datadog_browser_rum_core = require("@datadog/browser-rum-core");
5
5
  let _datadog_browser_rum_internal = require("@datadog/browser-rum/internal");
6
- //#region src/entries/main.ts
6
+ // src/entries/main.ts
7
7
  const global = _datadog_js_core_util.globalObject;
8
8
  const datadogRum = (0, _datadog_browser_rum_core.makeRumPublicApi)((0, _datadog_browser_rum_internal.makeRecorderApi)(), (0, _datadog_browser_rum_internal.makeProfilerApi)(), { sdkName: "rum-shopify" });
9
9
  datadogRum.shopifyPlugin = require_shopifyPlugin.shopifyPlugin;
10
10
  (0, _datadog_browser_core.defineGlobal)(global, "DD_RUM", datadogRum);
11
- //#endregion
12
11
 
13
12
  //# sourceMappingURL=main.js.map
@@ -1,5 +1,5 @@
1
1
  import { globalObject } from "@datadog/js-core/util";
2
- //#region src/boot/patchSandboxedIframeApis.ts
2
+ // src/boot/patchSandboxedIframeApis.ts
3
3
  /**
4
4
  * A Shopify Custom Pixel runs in a "lax" sandboxed iframe (`sandbox="allow-scripts"`, no
5
5
  * `allow-same-origin`): it shares the parent page's cookie jar (same domain) but has an
@@ -30,7 +30,6 @@ function disableProperty(target, key) {
30
30
  writable: true
31
31
  });
32
32
  }
33
- //#endregion
34
33
  export { patchSandboxedIframeApis };
35
34
 
36
35
  //# sourceMappingURL=patchSandboxedIframeApis.mjs.map
@@ -1,5 +1,5 @@
1
1
  import { waitForThenable } from "@datadog/browser-core";
2
- //#region src/domain/shopifyAnalytics.ts
2
+ // src/domain/shopifyAnalytics.ts
3
3
  function getPageUrl(event) {
4
4
  return event.context?.document?.location?.href;
5
5
  }
@@ -10,7 +10,6 @@ function waitForPageViewedEvent(analytics, { timeout = 1e3 } = {}) {
10
10
  });
11
11
  }), timeout);
12
12
  }
13
- //#endregion
14
13
  export { getPageUrl, waitForPageViewedEvent };
15
14
 
16
15
  //# sourceMappingURL=shopifyAnalytics.mjs.map
@@ -1,5 +1,5 @@
1
1
  import { getPageUrl } from "./shopifyAnalytics.mjs";
2
- //#region src/domain/shopifyBindings.ts
2
+ // src/domain/shopifyBindings.ts
3
3
  const CHECKOUT_PATH_PATTERN = /\/(([a-z]{2}(-[a-z0-9]+)?)\/)?(checkouts?)(\/|$)/i;
4
4
  function isCheckoutPage(event) {
5
5
  const url = getPageUrl(event);
@@ -36,7 +36,6 @@ function initShopifyBindings(rumPublicApi, analytics) {
36
36
  });
37
37
  });
38
38
  }
39
- //#endregion
40
39
  export { CHECKOUT_PATH_PATTERN, initShopifyBindings, isCheckoutPage };
41
40
 
42
41
  //# sourceMappingURL=shopifyBindings.mjs.map
@@ -2,7 +2,7 @@ import { patchSandboxedIframeApis } from "../boot/patchSandboxedIframeApis.mjs";
2
2
  import { waitForPageViewedEvent } from "./shopifyAnalytics.mjs";
3
3
  import { initShopifyBindings, isCheckoutPage } from "./shopifyBindings.mjs";
4
4
  import { mockable } from "@datadog/js-core/util";
5
- //#region src/domain/shopifyPlugin.ts
5
+ // src/domain/shopifyPlugin.ts
6
6
  /**
7
7
  * Adapts the RUM SDK to run inside a Shopify Custom Pixel sandbox. When `shopifyAnalytics` (the
8
8
  * sandbox's `analytics` global) is provided, patches the sandboxed iframe's APIs, wires Shopify
@@ -29,7 +29,6 @@ function shopifyPlugin(configuration) {
29
29
  }
30
30
  };
31
31
  }
32
- //#endregion
33
32
  export { shopifyPlugin };
34
33
 
35
34
  //# sourceMappingURL=shopifyPlugin.mjs.map
@@ -3,11 +3,10 @@ import { globalObject } from "@datadog/js-core/util";
3
3
  import { defineGlobal } from "@datadog/browser-core";
4
4
  import { makeRumPublicApi } from "@datadog/browser-rum-core";
5
5
  import { makeProfilerApi, makeRecorderApi } from "@datadog/browser-rum/internal";
6
- //#region src/entries/main.ts
6
+ // src/entries/main.ts
7
7
  const global = globalObject;
8
8
  const datadogRum = makeRumPublicApi(makeRecorderApi(), makeProfilerApi(), { sdkName: "rum-shopify" });
9
9
  datadogRum.shopifyPlugin = shopifyPlugin;
10
10
  defineGlobal(global, "DD_RUM", datadogRum);
11
- //#endregion
12
11
 
13
12
  //# sourceMappingURL=main.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/browser-rum-shopify",
3
- "version": "7.16.2",
3
+ "version": "7.17.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "cjs/entries/main.js",
6
6
  "module": "esm/entries/main.mjs",
@@ -19,10 +19,10 @@
19
19
  "prepack": "yarn build"
20
20
  },
21
21
  "dependencies": {
22
- "@datadog/browser-core": "7.16.2",
23
- "@datadog/browser-rum": "7.16.2",
24
- "@datadog/browser-rum-core": "7.16.2",
25
- "@datadog/js-core": "0.0.19"
22
+ "@datadog/browser-core": "7.17.1",
23
+ "@datadog/browser-rum": "7.17.1",
24
+ "@datadog/browser-rum-core": "7.17.1",
25
+ "@datadog/js-core": "0.0.21"
26
26
  },
27
27
  "repository": {
28
28
  "type": "git",