@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.esm.js CHANGED
@@ -2104,6 +2104,12 @@ var Builder = /** @class */ (function () {
2104
2104
  };
2105
2105
  Builder.prototype.setUserAttributes = function (options) {
2106
2106
  assign(Builder.overrideUserAttributes, options);
2107
+ try {
2108
+ this.setCookie(Builder.attributesCookieName, JSON.stringify(this.getUserAttributes()));
2109
+ }
2110
+ catch (_a) {
2111
+ // Ignore
2112
+ }
2107
2113
  this.userAttributesChanged.next(options);
2108
2114
  };
2109
2115
  /**
@@ -2610,6 +2616,7 @@ var Builder = /** @class */ (function () {
2610
2616
  Builder.plugins = [];
2611
2617
  Builder.actions = [];
2612
2618
  Builder.registry = {};
2619
+ Builder.attributesCookieName = 'builder.userAttributes';
2613
2620
  Builder.registryChange = new BehaviorSubject({});
2614
2621
  Builder._editingPage = false;
2615
2622
  Builder.isIframe = isIframe;