@cakemail-org/ui-components-v2 2.1.52 → 2.1.53
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/cjs/index.js
CHANGED
|
@@ -17800,12 +17800,11 @@ var ListPopupModel = /** @class */ (function () {
|
|
|
17800
17800
|
});
|
|
17801
17801
|
});
|
|
17802
17802
|
};
|
|
17803
|
-
ListPopupModel.prototype.save = function (
|
|
17803
|
+
ListPopupModel.prototype.save = function (popup) {
|
|
17804
17804
|
return __awaiter(this, void 0, void 0, function () {
|
|
17805
17805
|
var _this = this;
|
|
17806
|
-
|
|
17807
|
-
|
|
17808
|
-
return [2 /*return*/, updatePopup({ id: this.id, popup: popup }).then(function (data) {
|
|
17806
|
+
return __generator(this, function (_a) {
|
|
17807
|
+
return [2 /*return*/, updatePopup({ id: this.id, popup: popup || this.toJson() }).then(function (data) {
|
|
17809
17808
|
trackEvent(exports.EEvents.POPUP_UPDATED, { id: _this.id });
|
|
17810
17809
|
return new PopupModel(data.data);
|
|
17811
17810
|
})];
|
|
@@ -22,7 +22,7 @@ export declare class ListPopupModel {
|
|
|
22
22
|
toJson(): any;
|
|
23
23
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
24
24
|
delete(): Promise<TDeleteApiResource>;
|
|
25
|
-
save(
|
|
25
|
+
save(popup?: Partial<TPopupModel>): Promise<PopupModel>;
|
|
26
26
|
enable(): Promise<PopupModel>;
|
|
27
27
|
disable(): Promise<PopupModel>;
|
|
28
28
|
publish(): Promise<PopupModel>;
|
package/dist/esm/index.js
CHANGED
|
@@ -17780,12 +17780,11 @@ var ListPopupModel = /** @class */ (function () {
|
|
|
17780
17780
|
});
|
|
17781
17781
|
});
|
|
17782
17782
|
};
|
|
17783
|
-
ListPopupModel.prototype.save = function (
|
|
17783
|
+
ListPopupModel.prototype.save = function (popup) {
|
|
17784
17784
|
return __awaiter(this, void 0, void 0, function () {
|
|
17785
17785
|
var _this = this;
|
|
17786
|
-
|
|
17787
|
-
|
|
17788
|
-
return [2 /*return*/, updatePopup({ id: this.id, popup: popup }).then(function (data) {
|
|
17786
|
+
return __generator(this, function (_a) {
|
|
17787
|
+
return [2 /*return*/, updatePopup({ id: this.id, popup: popup || this.toJson() }).then(function (data) {
|
|
17789
17788
|
trackEvent(EEvents.POPUP_UPDATED, { id: _this.id });
|
|
17790
17789
|
return new PopupModel(data.data);
|
|
17791
17790
|
})];
|
|
@@ -22,7 +22,7 @@ export declare class ListPopupModel {
|
|
|
22
22
|
toJson(): any;
|
|
23
23
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
24
24
|
delete(): Promise<TDeleteApiResource>;
|
|
25
|
-
save(
|
|
25
|
+
save(popup?: Partial<TPopupModel>): Promise<PopupModel>;
|
|
26
26
|
enable(): Promise<PopupModel>;
|
|
27
27
|
disable(): Promise<PopupModel>;
|
|
28
28
|
publish(): Promise<PopupModel>;
|