@netlify/spark-ui 0.0.46-alpha → 0.0.46-alpha.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.
@@ -6,10 +6,10 @@ class g {
6
6
  * @param payload additional key/value data
7
7
  */
8
8
  track(n, c = {}) {
9
- gtag("event", n, c);
9
+ gtag("event", n, { debug_mode: !0, ...c });
10
10
  }
11
11
  }
12
- function T(r) {
12
+ function y(r) {
13
13
  const c = k(new g()).current;
14
14
  return u(() => {
15
15
  r != null && r.searchTerm && c.track("spark_search:query_changed", { query: r == null ? void 0 : r.searchTerm });
@@ -29,5 +29,5 @@ function T(r) {
29
29
  };
30
30
  }
31
31
  export {
32
- T as useSearchLogger
32
+ y as useSearchLogger
33
33
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/spark-ui",
3
3
  "description": "Assets, design tokens, components, and utilities",
4
- "version": "0.0.46-alpha",
4
+ "version": "0.0.46-alpha.1",
5
5
  "type": "module",
6
6
  "main": "dist/components/preact/index.js",
7
7
  "types": "dist/components/preact/index.d.ts",
@@ -5,6 +5,6 @@ export default class Analytics {
5
5
  * @param payload additional key/value data
6
6
  */
7
7
  track(eventName: string, payload: Record<string, any> = {}): void {
8
- gtag('event', eventName, payload);
8
+ gtag('event', eventName, { debug_mode: true, ...payload });
9
9
  }
10
10
  }