@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.browser.js +7 -0
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs.js +7 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +7 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +7 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/package.json +1 -2
- package/dist/src/builder.class.d.ts +3 -1
- package/dist/src/builder.class.js +7 -0
- package/dist/src/builder.class.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -2112,6 +2112,12 @@ var Builder = /** @class */ (function () {
|
|
|
2112
2112
|
};
|
|
2113
2113
|
Builder.prototype.setUserAttributes = function (options) {
|
|
2114
2114
|
assign(Builder.overrideUserAttributes, options);
|
|
2115
|
+
try {
|
|
2116
|
+
this.setCookie(Builder.attributesCookieName, JSON.stringify(this.getUserAttributes()));
|
|
2117
|
+
}
|
|
2118
|
+
catch (_a) {
|
|
2119
|
+
// Ignore
|
|
2120
|
+
}
|
|
2115
2121
|
this.userAttributesChanged.next(options);
|
|
2116
2122
|
};
|
|
2117
2123
|
/**
|
|
@@ -2618,6 +2624,7 @@ var Builder = /** @class */ (function () {
|
|
|
2618
2624
|
Builder.plugins = [];
|
|
2619
2625
|
Builder.actions = [];
|
|
2620
2626
|
Builder.registry = {};
|
|
2627
|
+
Builder.attributesCookieName = 'builder.userAttributes';
|
|
2621
2628
|
Builder.registryChange = new BehaviorSubject({});
|
|
2622
2629
|
Builder._editingPage = false;
|
|
2623
2630
|
Builder.isIframe = isIframe;
|