@cakemail-org/ui-components-v2 2.1.34 → 2.1.36
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
|
@@ -8234,9 +8234,9 @@ var css_248z$m = ".ui-kit-v2-wrapper {\n width: 100%;\n flex: 1;\n display: f
|
|
|
8234
8234
|
styleInject(css_248z$m);
|
|
8235
8235
|
|
|
8236
8236
|
function BrandWrapper(_a) {
|
|
8237
|
-
_a.onInit; var _b = _a.onBrandSuccess, onBrandSuccess = _b === void 0 ? function () { } : _b, _c = _a.onBrandError, onBrandError = _c === void 0 ? function () { } : _c, MUITheme = _a.MUITheme, brandId = _a.brandId,
|
|
8237
|
+
_a.onInit; var _b = _a.onBrandSuccess, onBrandSuccess = _b === void 0 ? function () { } : _b, _c = _a.onBrandError, onBrandError = _c === void 0 ? function () { } : _c, MUITheme = _a.MUITheme, brandId = _a.brandId, brandHost = _a.brandHost, children = _a.children, _d = _a.noFetch, noFetch = _d === void 0 ? false : _d, _e = _a.setPageHead, setPageHead = _e === void 0 ? true : _e, _f = _a.includeHandlers, includeHandlers = _f === void 0 ? true : _f, brandThemeContext = _a.brandThemeContext, styleOverride = _a.styleOverride;
|
|
8238
8238
|
var fBrandPath = "/brands/".concat(brandId ? brandId + "/" : "", "compiledBrand.json");
|
|
8239
|
-
var fBrandHost = brandHost || "https://us-central1-brand-prod.cloudfunctions.net";
|
|
8239
|
+
var fBrandHost = brandHost || uiKitConfig.GATEWAY_PROXY || "https://us-central1-brand-prod.cloudfunctions.net";
|
|
8240
8240
|
var dialogRef = React.useRef(undefined);
|
|
8241
8241
|
var actionsBarContainerRef = React.useRef(undefined);
|
|
8242
8242
|
var overlayRef = React.useRef(undefined);
|
|
@@ -10595,8 +10595,8 @@ var UserModel = /** @class */ (function () {
|
|
|
10595
10595
|
UserModel.prototype.set = function (property, value) {
|
|
10596
10596
|
modelSet(this, property, value);
|
|
10597
10597
|
};
|
|
10598
|
-
UserModel.prototype.update = function () {
|
|
10599
|
-
return updateUser({ id: this.id, data: this.toJson() }).then(function (data) {
|
|
10598
|
+
UserModel.prototype.update = function (user) {
|
|
10599
|
+
return updateUser({ id: this.id, data: user || this.toJson() }).then(function (data) {
|
|
10600
10600
|
return new UserModel(data.data);
|
|
10601
10601
|
});
|
|
10602
10602
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TUserModel } from "./types";
|
|
1
|
+
import { TUserModel, TUserModelUpdate } from "./types";
|
|
2
2
|
export declare class UserModel {
|
|
3
3
|
readonly id: number;
|
|
4
4
|
readonly email: string;
|
|
@@ -16,6 +16,6 @@ export declare class UserModel {
|
|
|
16
16
|
constructor({ id, email, status, created_on, last_activity_on, expires_on, first_name, last_name, title, language, timezone, office_phone, mobile_phone }: Partial<TUserModel>);
|
|
17
17
|
toJson(): any;
|
|
18
18
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
19
|
-
update(): Promise<UserModel>;
|
|
19
|
+
update(user?: Partial<TUserModelUpdate>): Promise<UserModel>;
|
|
20
20
|
}
|
|
21
21
|
export * from "./types";
|
package/dist/esm/index.js
CHANGED
|
@@ -8214,9 +8214,9 @@ var css_248z$m = ".ui-kit-v2-wrapper {\n width: 100%;\n flex: 1;\n display: f
|
|
|
8214
8214
|
styleInject(css_248z$m);
|
|
8215
8215
|
|
|
8216
8216
|
function BrandWrapper(_a) {
|
|
8217
|
-
_a.onInit; var _b = _a.onBrandSuccess, onBrandSuccess = _b === void 0 ? function () { } : _b, _c = _a.onBrandError, onBrandError = _c === void 0 ? function () { } : _c, MUITheme = _a.MUITheme, brandId = _a.brandId,
|
|
8217
|
+
_a.onInit; var _b = _a.onBrandSuccess, onBrandSuccess = _b === void 0 ? function () { } : _b, _c = _a.onBrandError, onBrandError = _c === void 0 ? function () { } : _c, MUITheme = _a.MUITheme, brandId = _a.brandId, brandHost = _a.brandHost, children = _a.children, _d = _a.noFetch, noFetch = _d === void 0 ? false : _d, _e = _a.setPageHead, setPageHead = _e === void 0 ? true : _e, _f = _a.includeHandlers, includeHandlers = _f === void 0 ? true : _f, brandThemeContext = _a.brandThemeContext, styleOverride = _a.styleOverride;
|
|
8218
8218
|
var fBrandPath = "/brands/".concat(brandId ? brandId + "/" : "", "compiledBrand.json");
|
|
8219
|
-
var fBrandHost = brandHost || "https://us-central1-brand-prod.cloudfunctions.net";
|
|
8219
|
+
var fBrandHost = brandHost || uiKitConfig.GATEWAY_PROXY || "https://us-central1-brand-prod.cloudfunctions.net";
|
|
8220
8220
|
var dialogRef = useRef(undefined);
|
|
8221
8221
|
var actionsBarContainerRef = useRef(undefined);
|
|
8222
8222
|
var overlayRef = useRef(undefined);
|
|
@@ -10575,8 +10575,8 @@ var UserModel = /** @class */ (function () {
|
|
|
10575
10575
|
UserModel.prototype.set = function (property, value) {
|
|
10576
10576
|
modelSet(this, property, value);
|
|
10577
10577
|
};
|
|
10578
|
-
UserModel.prototype.update = function () {
|
|
10579
|
-
return updateUser({ id: this.id, data: this.toJson() }).then(function (data) {
|
|
10578
|
+
UserModel.prototype.update = function (user) {
|
|
10579
|
+
return updateUser({ id: this.id, data: user || this.toJson() }).then(function (data) {
|
|
10580
10580
|
return new UserModel(data.data);
|
|
10581
10581
|
});
|
|
10582
10582
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TUserModel } from "./types";
|
|
1
|
+
import { TUserModel, TUserModelUpdate } from "./types";
|
|
2
2
|
export declare class UserModel {
|
|
3
3
|
readonly id: number;
|
|
4
4
|
readonly email: string;
|
|
@@ -16,6 +16,6 @@ export declare class UserModel {
|
|
|
16
16
|
constructor({ id, email, status, created_on, last_activity_on, expires_on, first_name, last_name, title, language, timezone, office_phone, mobile_phone }: Partial<TUserModel>);
|
|
17
17
|
toJson(): any;
|
|
18
18
|
set<T extends keyof this>(property: T, value: this[T]): void;
|
|
19
|
-
update(): Promise<UserModel>;
|
|
19
|
+
update(user?: Partial<TUserModelUpdate>): Promise<UserModel>;
|
|
20
20
|
}
|
|
21
21
|
export * from "./types";
|