@builder.io/sdk 6.0.3-0 → 6.0.4

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/.yarnrc.yml ADDED
@@ -0,0 +1 @@
1
+ npmPublishAccess: "public"
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @builder.io/sdk
2
2
 
3
+ ## 6.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 58fb07e: Fix: ability to set `builder.canTrack` before calling `builder.init()`
8
+
9
+ ## 6.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - b1ad88c: feat: Add support for "xsmall" breakpoint size in content entries.
14
+
3
15
  ## 6.0.2
4
16
 
5
17
  ### Patch Changes
@@ -1052,7 +1052,7 @@
1052
1052
 
1053
1053
  var DEFAULT_API_VERSION = 'v3';
1054
1054
 
1055
- var SDK_VERSION = '6.0.2';
1055
+ var SDK_VERSION = '6.0.4';
1056
1056
 
1057
1057
  function datePlusMinutes(minutes) {
1058
1058
  if (minutes === void 0) { minutes = 30; }
@@ -1207,6 +1207,7 @@
1207
1207
  this.apiEndpoint$ = new BehaviorSubject('query');
1208
1208
  this.apiVersion$ = new BehaviorSubject(undefined);
1209
1209
  this.canTrack$ = new BehaviorSubject(!this.browserTrackingDisabled);
1210
+ this.hasOverriddenCanTrack = false;
1210
1211
  this.apiKey$ = new BehaviorSubject(null);
1211
1212
  this.authToken$ = new BehaviorSubject(null);
1212
1213
  this.userAttributesChanged = new BehaviorSubject(null);
@@ -1578,6 +1579,7 @@
1578
1579
  return this.canTrack$.value;
1579
1580
  },
1580
1581
  set: function (canTrack) {
1582
+ this.hasOverriddenCanTrack = true;
1581
1583
  if (this.canTrack !== canTrack) {
1582
1584
  this.canTrack$.next(canTrack);
1583
1585
  }
@@ -2153,7 +2155,9 @@
2153
2155
  if (res) {
2154
2156
  this.response = res;
2155
2157
  }
2156
- this.canTrack = canTrack;
2158
+ if (!this.hasOverriddenCanTrack) {
2159
+ this.canTrack = canTrack;
2160
+ }
2157
2161
  this.apiKey = apiKey;
2158
2162
  if (authToken) {
2159
2163
  this.authToken = authToken;