@builder.io/sdk 3.0.2-0 → 3.0.2-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.
package/dist/index.umd.js CHANGED
@@ -2206,6 +2206,12 @@
2206
2206
  };
2207
2207
  Builder.prototype.setUserAttributes = function (options) {
2208
2208
  assign(Builder.overrideUserAttributes, options);
2209
+ try {
2210
+ this.setCookie(Builder.attributesCookieName, JSON.stringify(this.getUserAttributes()));
2211
+ }
2212
+ catch (_a) {
2213
+ // Ignore
2214
+ }
2209
2215
  this.userAttributesChanged.next(options);
2210
2216
  };
2211
2217
  /**
@@ -2712,6 +2718,7 @@
2712
2718
  Builder.plugins = [];
2713
2719
  Builder.actions = [];
2714
2720
  Builder.registry = {};
2721
+ Builder.attributesCookieName = 'builder.userAttributes';
2715
2722
  Builder.registryChange = new BehaviorSubject({});
2716
2723
  Builder._editingPage = false;
2717
2724
  Builder.isIframe = isIframe;