@cakemail-org/ui-components-v2 2.2.92 → 2.2.93
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 +18 -5
- package/dist/cjs/utils/posthog.d.ts +4 -1
- package/dist/esm/index.js +18 -5
- package/dist/esm/utils/posthog.d.ts +4 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -3892,6 +3892,9 @@ exports.EEvents = void 0;
|
|
|
3892
3892
|
EEvents["PAGE_ENABLED"] = "Page.Enabled";
|
|
3893
3893
|
EEvents["PAGE_DISABLED"] = "Page.Disabled";
|
|
3894
3894
|
EEvents["PAGE_PUBLISHED"] = "Page.Published";
|
|
3895
|
+
EEvents["CUSTOM_DOMAIN_CREATED"] = "CustomDomain.Created";
|
|
3896
|
+
EEvents["CUSTOM_DOMAIN_VERIFIED"] = "CustomDomain.Verified";
|
|
3897
|
+
EEvents["CUSTOM_DOMAIN_DELETED"] = "CustomDomain.Deleted";
|
|
3895
3898
|
})(exports.EEvents || (exports.EEvents = {}));
|
|
3896
3899
|
function eventCondition(type, disabledEvents) {
|
|
3897
3900
|
if (disabledEvents === void 0) { disabledEvents = []; }
|
|
@@ -12151,18 +12154,27 @@ var CustomDomainModel = /** @class */ (function () {
|
|
|
12151
12154
|
};
|
|
12152
12155
|
CustomDomainModel.prototype.verify = function () {
|
|
12153
12156
|
return __awaiter(this, void 0, void 0, function () {
|
|
12157
|
+
var _this = this;
|
|
12154
12158
|
return __generator(this, function (_a) {
|
|
12155
|
-
return [2 /*return*/, verifyCustomDomain({ id: this.id }).then(function (res) {
|
|
12156
|
-
domain:
|
|
12157
|
-
|
|
12158
|
-
|
|
12159
|
+
return [2 /*return*/, verifyCustomDomain({ id: this.id }).then(function (res) {
|
|
12160
|
+
trackEvent(exports.EEvents.CUSTOM_DOMAIN_VERIFIED, { id: _this.id, domain: _this.domain, verification: res.data.verification });
|
|
12161
|
+
return {
|
|
12162
|
+
domain: new CustomDomainModel(res.data),
|
|
12163
|
+
verification: res.data.verification,
|
|
12164
|
+
};
|
|
12165
|
+
})];
|
|
12159
12166
|
});
|
|
12160
12167
|
});
|
|
12161
12168
|
};
|
|
12162
12169
|
CustomDomainModel.prototype.delete = function () {
|
|
12163
12170
|
return __awaiter(this, void 0, void 0, function () {
|
|
12171
|
+
var _this = this;
|
|
12164
12172
|
return __generator(this, function (_a) {
|
|
12165
|
-
return [2 /*return*/, deleteCustomDomain({ id: this.id })
|
|
12173
|
+
return [2 /*return*/, deleteCustomDomain({ id: this.id })
|
|
12174
|
+
.then(function (res) {
|
|
12175
|
+
trackEvent(exports.EEvents.CUSTOM_DOMAIN_DELETED, { id: _this.id, domain: _this.domain });
|
|
12176
|
+
return res;
|
|
12177
|
+
})];
|
|
12166
12178
|
});
|
|
12167
12179
|
});
|
|
12168
12180
|
};
|
|
@@ -19387,6 +19399,7 @@ var CustomDomainsFactory = /** @class */ (function () {
|
|
|
19387
19399
|
var domain = _b.domain;
|
|
19388
19400
|
return __generator(this, function (_c) {
|
|
19389
19401
|
return [2 /*return*/, createCustomDomain({ domain: domain }).then(function (data) {
|
|
19402
|
+
trackEvent(exports.EEvents.CUSTOM_DOMAIN_CREATED, __assign({}, data.data));
|
|
19390
19403
|
return new CustomDomainModel(data.data);
|
|
19391
19404
|
})];
|
|
19392
19405
|
});
|
|
@@ -161,7 +161,10 @@ export declare enum EEvents {
|
|
|
161
161
|
PAGE_DELETED = "Page.Deleted",
|
|
162
162
|
PAGE_ENABLED = "Page.Enabled",
|
|
163
163
|
PAGE_DISABLED = "Page.Disabled",
|
|
164
|
-
PAGE_PUBLISHED = "Page.Published"
|
|
164
|
+
PAGE_PUBLISHED = "Page.Published",
|
|
165
|
+
CUSTOM_DOMAIN_CREATED = "CustomDomain.Created",
|
|
166
|
+
CUSTOM_DOMAIN_VERIFIED = "CustomDomain.Verified",
|
|
167
|
+
CUSTOM_DOMAIN_DELETED = "CustomDomain.Deleted"
|
|
165
168
|
}
|
|
166
169
|
export declare function eventCondition(type: EEvents | string, disabledEvents?: string[]): boolean;
|
|
167
170
|
export declare function trackEvent(type: EEvents | string, data?: any, dataParser?: (event: EEvents | string, data: any) => any, disabledEvents?: string[]): void;
|
package/dist/esm/index.js
CHANGED
|
@@ -3872,6 +3872,9 @@ var EEvents;
|
|
|
3872
3872
|
EEvents["PAGE_ENABLED"] = "Page.Enabled";
|
|
3873
3873
|
EEvents["PAGE_DISABLED"] = "Page.Disabled";
|
|
3874
3874
|
EEvents["PAGE_PUBLISHED"] = "Page.Published";
|
|
3875
|
+
EEvents["CUSTOM_DOMAIN_CREATED"] = "CustomDomain.Created";
|
|
3876
|
+
EEvents["CUSTOM_DOMAIN_VERIFIED"] = "CustomDomain.Verified";
|
|
3877
|
+
EEvents["CUSTOM_DOMAIN_DELETED"] = "CustomDomain.Deleted";
|
|
3875
3878
|
})(EEvents || (EEvents = {}));
|
|
3876
3879
|
function eventCondition(type, disabledEvents) {
|
|
3877
3880
|
if (disabledEvents === void 0) { disabledEvents = []; }
|
|
@@ -12131,18 +12134,27 @@ var CustomDomainModel = /** @class */ (function () {
|
|
|
12131
12134
|
};
|
|
12132
12135
|
CustomDomainModel.prototype.verify = function () {
|
|
12133
12136
|
return __awaiter(this, void 0, void 0, function () {
|
|
12137
|
+
var _this = this;
|
|
12134
12138
|
return __generator(this, function (_a) {
|
|
12135
|
-
return [2 /*return*/, verifyCustomDomain({ id: this.id }).then(function (res) {
|
|
12136
|
-
domain:
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
+
return [2 /*return*/, verifyCustomDomain({ id: this.id }).then(function (res) {
|
|
12140
|
+
trackEvent(EEvents.CUSTOM_DOMAIN_VERIFIED, { id: _this.id, domain: _this.domain, verification: res.data.verification });
|
|
12141
|
+
return {
|
|
12142
|
+
domain: new CustomDomainModel(res.data),
|
|
12143
|
+
verification: res.data.verification,
|
|
12144
|
+
};
|
|
12145
|
+
})];
|
|
12139
12146
|
});
|
|
12140
12147
|
});
|
|
12141
12148
|
};
|
|
12142
12149
|
CustomDomainModel.prototype.delete = function () {
|
|
12143
12150
|
return __awaiter(this, void 0, void 0, function () {
|
|
12151
|
+
var _this = this;
|
|
12144
12152
|
return __generator(this, function (_a) {
|
|
12145
|
-
return [2 /*return*/, deleteCustomDomain({ id: this.id })
|
|
12153
|
+
return [2 /*return*/, deleteCustomDomain({ id: this.id })
|
|
12154
|
+
.then(function (res) {
|
|
12155
|
+
trackEvent(EEvents.CUSTOM_DOMAIN_DELETED, { id: _this.id, domain: _this.domain });
|
|
12156
|
+
return res;
|
|
12157
|
+
})];
|
|
12146
12158
|
});
|
|
12147
12159
|
});
|
|
12148
12160
|
};
|
|
@@ -19367,6 +19379,7 @@ var CustomDomainsFactory = /** @class */ (function () {
|
|
|
19367
19379
|
var domain = _b.domain;
|
|
19368
19380
|
return __generator(this, function (_c) {
|
|
19369
19381
|
return [2 /*return*/, createCustomDomain({ domain: domain }).then(function (data) {
|
|
19382
|
+
trackEvent(EEvents.CUSTOM_DOMAIN_CREATED, __assign({}, data.data));
|
|
19370
19383
|
return new CustomDomainModel(data.data);
|
|
19371
19384
|
})];
|
|
19372
19385
|
});
|
|
@@ -161,7 +161,10 @@ export declare enum EEvents {
|
|
|
161
161
|
PAGE_DELETED = "Page.Deleted",
|
|
162
162
|
PAGE_ENABLED = "Page.Enabled",
|
|
163
163
|
PAGE_DISABLED = "Page.Disabled",
|
|
164
|
-
PAGE_PUBLISHED = "Page.Published"
|
|
164
|
+
PAGE_PUBLISHED = "Page.Published",
|
|
165
|
+
CUSTOM_DOMAIN_CREATED = "CustomDomain.Created",
|
|
166
|
+
CUSTOM_DOMAIN_VERIFIED = "CustomDomain.Verified",
|
|
167
|
+
CUSTOM_DOMAIN_DELETED = "CustomDomain.Deleted"
|
|
165
168
|
}
|
|
166
169
|
export declare function eventCondition(type: EEvents | string, disabledEvents?: string[]): boolean;
|
|
167
170
|
export declare function trackEvent(type: EEvents | string, data?: any, dataParser?: (event: EEvents | string, data: any) => any, disabledEvents?: string[]): void;
|