@tachybase/client 1.2.5 → 1.2.7

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.
@@ -15,7 +15,7 @@ class TrackingManager {
15
15
  key,
16
16
  values
17
17
  };
18
- this.api.resource('instrumentation').create({
18
+ await this.api.resource('instrumentation').create({
19
19
  values: {
20
20
  ...data
21
21
  }
@@ -25,6 +25,7 @@ class TrackingManager {
25
25
  _define_property(this, "app", void 0);
26
26
  _define_property(this, "api", void 0);
27
27
  this.app = app;
28
+ this.api = this.app.apiClient;
28
29
  }
29
30
  }
30
31
  export { TrackingManager };
@@ -11,7 +11,7 @@ const TrackingLink = (param)=>{
11
11
  const handleClick = ()=>{
12
12
  app.trackingManager.logEvent('click', trackingKey, {
13
13
  href,
14
- UserId: null == currentUser ? void 0 : currentUser.id
14
+ userId: null == currentUser ? void 0 : currentUser.id
15
15
  });
16
16
  };
17
17
  return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("a", {
@@ -47,7 +47,7 @@ class TrackingManager {
47
47
  key,
48
48
  values
49
49
  };
50
- this.api.resource('instrumentation').create({
50
+ await this.api.resource('instrumentation').create({
51
51
  values: {
52
52
  ...data
53
53
  }
@@ -57,6 +57,7 @@ class TrackingManager {
57
57
  _define_property(this, "app", void 0);
58
58
  _define_property(this, "api", void 0);
59
59
  this.app = app;
60
+ this.api = this.app.apiClient;
60
61
  }
61
62
  }
62
63
  var __webpack_export_target__ = exports;
@@ -41,7 +41,7 @@ const TrackingLink = (param)=>{
41
41
  const handleClick = ()=>{
42
42
  app.trackingManager.logEvent('click', trackingKey, {
43
43
  href,
44
- UserId: null == currentUser ? void 0 : currentUser.id
44
+ userId: null == currentUser ? void 0 : currentUser.id
45
45
  });
46
46
  };
47
47
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("a", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachybase/client",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.mjs",
@@ -65,12 +65,12 @@
65
65
  "react-zoom-pan-pinch": "^3.6.1",
66
66
  "sanitize-html": "2.14.0",
67
67
  "use-deep-compare-effect": "^1.8.1",
68
- "@tachybase/evaluators": "1.2.5",
69
- "@tachybase/requirejs": "1.2.5",
70
- "@tachybase/components": "1.2.5",
71
- "@tachybase/schema": "1.2.5",
72
- "@tachybase/utils": "1.2.5",
73
- "@tachybase/sdk": "1.2.5"
68
+ "@tachybase/schema": "1.2.7",
69
+ "@tachybase/requirejs": "1.2.7",
70
+ "@tachybase/sdk": "1.2.7",
71
+ "@tachybase/evaluators": "1.2.7",
72
+ "@tachybase/components": "1.2.7",
73
+ "@tachybase/utils": "1.2.7"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@testing-library/react": "^16.2.0",