@cakemail-org/ui-components-v2 2.0.46 → 2.0.47
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/components/genericWrapper/index.d.ts +1 -1
- package/dist/cjs/components/genericWrapper/types.d.ts +1 -0
- package/dist/cjs/index.js +99 -73
- package/dist/esm/components/genericWrapper/index.d.ts +1 -1
- package/dist/esm/components/genericWrapper/types.d.ts +1 -0
- package/dist/esm/index.js +95 -69
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TGenericWrapper } from "./types";
|
|
3
|
-
export declare function GenericWrapper({ children, brandObj, brandId, brandHost, account, user, setPageHead, setPostHog, LocizeInitializer, brandThemeContext, proxyUrl, styleOverride }: TGenericWrapper): React.JSX.Element;
|
|
3
|
+
export declare function GenericWrapper({ children, brandObj, brandId, brandHost, account, user, setPageHead, setPostHog, LocizeInitializer, brandThemeContext, proxyUrl, styleOverride, includeHandlers }: TGenericWrapper): React.JSX.Element;
|
|
4
4
|
export default GenericWrapper;
|
|
5
5
|
export * from "./context";
|
|
6
6
|
export * from "./types";
|
package/dist/cjs/index.js
CHANGED
|
@@ -1966,189 +1966,189 @@ var whiteLabelBrand = {
|
|
|
1966
1966
|
config: {}
|
|
1967
1967
|
};
|
|
1968
1968
|
|
|
1969
|
-
var ActionBarContainerHandler = {
|
|
1969
|
+
var ActionBarContainerHandler$1 = {
|
|
1970
1970
|
actionBarContainer: undefined,
|
|
1971
1971
|
register: function (actionBarContainer) {
|
|
1972
1972
|
this.actionBarContainer = actionBarContainer;
|
|
1973
1973
|
},
|
|
1974
1974
|
unregister: function () {
|
|
1975
|
-
if (ActionBarContainerHandler.actionBarContainer) {
|
|
1976
|
-
ActionBarContainerHandler.actionBarContainer = undefined;
|
|
1975
|
+
if (ActionBarContainerHandler$1.actionBarContainer) {
|
|
1976
|
+
ActionBarContainerHandler$1.actionBarContainer = undefined;
|
|
1977
1977
|
}
|
|
1978
1978
|
},
|
|
1979
1979
|
isShowing: function () {
|
|
1980
|
-
if (ActionBarContainerHandler.actionBarContainer) {
|
|
1981
|
-
return ActionBarContainerHandler.actionBarContainer.isShowing();
|
|
1980
|
+
if (ActionBarContainerHandler$1.actionBarContainer) {
|
|
1981
|
+
return ActionBarContainerHandler$1.actionBarContainer.isShowing();
|
|
1982
1982
|
}
|
|
1983
1983
|
return false;
|
|
1984
1984
|
},
|
|
1985
1985
|
show: function (newState) {
|
|
1986
1986
|
setTimeout(function () {
|
|
1987
1987
|
newState.className = newState.className + " fromActionBarContainerHandler";
|
|
1988
|
-
if (!ActionBarContainerHandler.actionBarContainer) {
|
|
1988
|
+
if (!ActionBarContainerHandler$1.actionBarContainer) {
|
|
1989
1989
|
return;
|
|
1990
1990
|
}
|
|
1991
|
-
ActionBarContainerHandler.actionBarContainer.show(newState);
|
|
1991
|
+
ActionBarContainerHandler$1.actionBarContainer.show(newState);
|
|
1992
1992
|
}, 0);
|
|
1993
1993
|
},
|
|
1994
1994
|
hide: function () {
|
|
1995
1995
|
setTimeout(function () {
|
|
1996
|
-
if (!ActionBarContainerHandler.actionBarContainer) {
|
|
1996
|
+
if (!ActionBarContainerHandler$1.actionBarContainer) {
|
|
1997
1997
|
return;
|
|
1998
1998
|
}
|
|
1999
|
-
ActionBarContainerHandler.actionBarContainer.hide();
|
|
1999
|
+
ActionBarContainerHandler$1.actionBarContainer.hide();
|
|
2000
2000
|
}, 0);
|
|
2001
2001
|
}
|
|
2002
2002
|
};
|
|
2003
2003
|
|
|
2004
|
-
var DialogHandler = {
|
|
2004
|
+
var DialogHandler$1 = {
|
|
2005
2005
|
queuedDialog: [],
|
|
2006
2006
|
dialog: undefined,
|
|
2007
2007
|
register: function (dialog) {
|
|
2008
2008
|
this.dialog = dialog;
|
|
2009
2009
|
},
|
|
2010
2010
|
unregister: function () {
|
|
2011
|
-
if (DialogHandler.dialog) {
|
|
2012
|
-
DialogHandler.dialog = undefined;
|
|
2011
|
+
if (DialogHandler$1.dialog) {
|
|
2012
|
+
DialogHandler$1.dialog = undefined;
|
|
2013
2013
|
}
|
|
2014
2014
|
},
|
|
2015
2015
|
isShowing: function () {
|
|
2016
|
-
if (DialogHandler.dialog) {
|
|
2017
|
-
return DialogHandler.dialog.isShowing();
|
|
2016
|
+
if (DialogHandler$1.dialog) {
|
|
2017
|
+
return DialogHandler$1.dialog.isShowing();
|
|
2018
2018
|
}
|
|
2019
2019
|
return false;
|
|
2020
2020
|
},
|
|
2021
2021
|
queued: function () {
|
|
2022
|
-
return DialogHandler.queuedDialog.length;
|
|
2022
|
+
return DialogHandler$1.queuedDialog.length;
|
|
2023
2023
|
},
|
|
2024
2024
|
clearQueue: function () {
|
|
2025
|
-
DialogHandler.queuedDialog = [];
|
|
2025
|
+
DialogHandler$1.queuedDialog = [];
|
|
2026
2026
|
},
|
|
2027
2027
|
show: function (newState, skipCheck) {
|
|
2028
2028
|
if (newState === void 0) { newState = {}; }
|
|
2029
2029
|
if (skipCheck === void 0) { skipCheck = false; }
|
|
2030
2030
|
setTimeout(function () {
|
|
2031
2031
|
newState.className = newState.className + " fromDialogHandler";
|
|
2032
|
-
if (!DialogHandler.dialog) {
|
|
2032
|
+
if (!DialogHandler$1.dialog) {
|
|
2033
2033
|
return;
|
|
2034
2034
|
}
|
|
2035
|
-
if (!skipCheck && DialogHandler.isShowing()) {
|
|
2035
|
+
if (!skipCheck && DialogHandler$1.isShowing()) {
|
|
2036
2036
|
if (newState.hasOwnProperty("isExpress") && newState.isExpress) {
|
|
2037
|
-
DialogHandler.dialog.show(newState);
|
|
2037
|
+
DialogHandler$1.dialog.show(newState);
|
|
2038
2038
|
}
|
|
2039
2039
|
else if (newState.hasOwnProperty("isPriority") && newState.isPriority) {
|
|
2040
|
-
DialogHandler.queuedDialog.unshift(newState);
|
|
2040
|
+
DialogHandler$1.queuedDialog.unshift(newState);
|
|
2041
2041
|
}
|
|
2042
2042
|
else {
|
|
2043
|
-
DialogHandler.queuedDialog.push(newState);
|
|
2043
|
+
DialogHandler$1.queuedDialog.push(newState);
|
|
2044
2044
|
}
|
|
2045
2045
|
}
|
|
2046
2046
|
else {
|
|
2047
|
-
DialogHandler.dialog.show(newState);
|
|
2047
|
+
DialogHandler$1.dialog.show(newState);
|
|
2048
2048
|
}
|
|
2049
2049
|
}, 0);
|
|
2050
2050
|
},
|
|
2051
2051
|
hide: function () {
|
|
2052
2052
|
setTimeout(function () {
|
|
2053
|
-
if (!DialogHandler.dialog) {
|
|
2053
|
+
if (!DialogHandler$1.dialog) {
|
|
2054
2054
|
return;
|
|
2055
2055
|
}
|
|
2056
|
-
DialogHandler.dialog.hide();
|
|
2057
|
-
if (DialogHandler.queuedDialog.length > 0) {
|
|
2058
|
-
DialogHandler.show(DialogHandler.queuedDialog[0], true);
|
|
2059
|
-
DialogHandler.queuedDialog.shift();
|
|
2056
|
+
DialogHandler$1.dialog.hide();
|
|
2057
|
+
if (DialogHandler$1.queuedDialog.length > 0) {
|
|
2058
|
+
DialogHandler$1.show(DialogHandler$1.queuedDialog[0], true);
|
|
2059
|
+
DialogHandler$1.queuedDialog.shift();
|
|
2060
2060
|
}
|
|
2061
2061
|
}, 0);
|
|
2062
2062
|
}
|
|
2063
2063
|
};
|
|
2064
2064
|
|
|
2065
|
-
var DrawerHandler = {
|
|
2065
|
+
var DrawerHandler$1 = {
|
|
2066
2066
|
drawer: undefined,
|
|
2067
2067
|
register: function (drawer) {
|
|
2068
2068
|
this.drawer = drawer;
|
|
2069
2069
|
},
|
|
2070
2070
|
unregister: function () {
|
|
2071
|
-
if (DrawerHandler.drawer) {
|
|
2072
|
-
DrawerHandler.drawer = undefined;
|
|
2071
|
+
if (DrawerHandler$1.drawer) {
|
|
2072
|
+
DrawerHandler$1.drawer = undefined;
|
|
2073
2073
|
}
|
|
2074
2074
|
},
|
|
2075
2075
|
isShowing: function () {
|
|
2076
|
-
if (DrawerHandler.drawer) {
|
|
2077
|
-
return DrawerHandler.drawer.isShowing();
|
|
2076
|
+
if (DrawerHandler$1.drawer) {
|
|
2077
|
+
return DrawerHandler$1.drawer.isShowing();
|
|
2078
2078
|
}
|
|
2079
2079
|
return false;
|
|
2080
2080
|
},
|
|
2081
2081
|
show: function (newState) {
|
|
2082
|
-
if (!DrawerHandler.drawer) {
|
|
2082
|
+
if (!DrawerHandler$1.drawer) {
|
|
2083
2083
|
return;
|
|
2084
2084
|
}
|
|
2085
|
-
DrawerHandler.drawer.show(newState);
|
|
2085
|
+
DrawerHandler$1.drawer.show(newState);
|
|
2086
2086
|
},
|
|
2087
2087
|
hide: function () {
|
|
2088
|
-
if (!DrawerHandler.drawer) {
|
|
2088
|
+
if (!DrawerHandler$1.drawer) {
|
|
2089
2089
|
return;
|
|
2090
2090
|
}
|
|
2091
|
-
DrawerHandler.drawer.hide();
|
|
2091
|
+
DrawerHandler$1.drawer.hide();
|
|
2092
2092
|
}
|
|
2093
2093
|
};
|
|
2094
2094
|
|
|
2095
|
-
var ModalHandler = {
|
|
2095
|
+
var ModalHandler$1 = {
|
|
2096
2096
|
modal: undefined,
|
|
2097
2097
|
register: function (modal) {
|
|
2098
2098
|
this.modal = modal;
|
|
2099
2099
|
},
|
|
2100
2100
|
unregister: function () {
|
|
2101
|
-
if (ModalHandler.modal) {
|
|
2102
|
-
ModalHandler.modal = undefined;
|
|
2101
|
+
if (ModalHandler$1.modal) {
|
|
2102
|
+
ModalHandler$1.modal = undefined;
|
|
2103
2103
|
}
|
|
2104
2104
|
},
|
|
2105
2105
|
isShowing: function () {
|
|
2106
|
-
if (ModalHandler.modal) {
|
|
2107
|
-
return ModalHandler.modal.isShowing();
|
|
2106
|
+
if (ModalHandler$1.modal) {
|
|
2107
|
+
return ModalHandler$1.modal.isShowing();
|
|
2108
2108
|
}
|
|
2109
2109
|
return false;
|
|
2110
2110
|
},
|
|
2111
2111
|
show: function (newState) {
|
|
2112
|
-
if (!ModalHandler.modal) {
|
|
2112
|
+
if (!ModalHandler$1.modal) {
|
|
2113
2113
|
return;
|
|
2114
2114
|
}
|
|
2115
|
-
ModalHandler.modal.show(newState);
|
|
2115
|
+
ModalHandler$1.modal.show(newState);
|
|
2116
2116
|
},
|
|
2117
2117
|
hide: function () {
|
|
2118
|
-
if (!ModalHandler.modal) {
|
|
2118
|
+
if (!ModalHandler$1.modal) {
|
|
2119
2119
|
return;
|
|
2120
2120
|
}
|
|
2121
|
-
ModalHandler.modal.hide();
|
|
2121
|
+
ModalHandler$1.modal.hide();
|
|
2122
2122
|
}
|
|
2123
2123
|
};
|
|
2124
2124
|
|
|
2125
|
-
var OverlayHandler = {
|
|
2125
|
+
var OverlayHandler$1 = {
|
|
2126
2126
|
overlay: undefined,
|
|
2127
2127
|
register: function (modal) {
|
|
2128
2128
|
this.overlay = modal;
|
|
2129
2129
|
},
|
|
2130
2130
|
unregister: function () {
|
|
2131
|
-
if (OverlayHandler.overlay) {
|
|
2132
|
-
OverlayHandler.overlay = undefined;
|
|
2131
|
+
if (OverlayHandler$1.overlay) {
|
|
2132
|
+
OverlayHandler$1.overlay = undefined;
|
|
2133
2133
|
}
|
|
2134
2134
|
},
|
|
2135
2135
|
isShowing: function () {
|
|
2136
|
-
if (OverlayHandler.overlay) {
|
|
2137
|
-
return OverlayHandler.overlay.isShowing();
|
|
2136
|
+
if (OverlayHandler$1.overlay) {
|
|
2137
|
+
return OverlayHandler$1.overlay.isShowing();
|
|
2138
2138
|
}
|
|
2139
2139
|
return false;
|
|
2140
2140
|
},
|
|
2141
2141
|
show: function (newState) {
|
|
2142
|
-
if (!OverlayHandler.overlay) {
|
|
2142
|
+
if (!OverlayHandler$1.overlay) {
|
|
2143
2143
|
return;
|
|
2144
2144
|
}
|
|
2145
|
-
OverlayHandler.overlay.show(newState);
|
|
2145
|
+
OverlayHandler$1.overlay.show(newState);
|
|
2146
2146
|
},
|
|
2147
2147
|
hide: function () {
|
|
2148
|
-
if (!OverlayHandler.overlay) {
|
|
2148
|
+
if (!OverlayHandler$1.overlay) {
|
|
2149
2149
|
return;
|
|
2150
2150
|
}
|
|
2151
|
-
OverlayHandler.overlay.hide();
|
|
2151
|
+
OverlayHandler$1.overlay.hide();
|
|
2152
2152
|
}
|
|
2153
2153
|
};
|
|
2154
2154
|
|
|
@@ -7452,7 +7452,7 @@ function DialogActions(_a) {
|
|
|
7452
7452
|
primaryBtnOnClick(e, btnRef);
|
|
7453
7453
|
}
|
|
7454
7454
|
else {
|
|
7455
|
-
DialogHandler.hide();
|
|
7455
|
+
DialogHandler$1.hide();
|
|
7456
7456
|
}
|
|
7457
7457
|
}
|
|
7458
7458
|
function handleOnSecondaryClick() {
|
|
@@ -7460,7 +7460,7 @@ function DialogActions(_a) {
|
|
|
7460
7460
|
secondaryBtnOnClick();
|
|
7461
7461
|
}
|
|
7462
7462
|
else {
|
|
7463
|
-
DialogHandler.hide();
|
|
7463
|
+
DialogHandler$1.hide();
|
|
7464
7464
|
}
|
|
7465
7465
|
}
|
|
7466
7466
|
return React.createElement(MuiDialogActions, null,
|
|
@@ -7508,7 +7508,7 @@ var Dialog = React.forwardRef(function (props, ref) {
|
|
|
7508
7508
|
var newState = setStateFromProps(__assign(__assign({}, cState), { open: true }));
|
|
7509
7509
|
setNewState(newState);
|
|
7510
7510
|
if ((!newState.primaryBtnText || !newState.secondaryBtnText) && newState.managedByContent === false) {
|
|
7511
|
-
hideTimeout.current = setTimeout(DialogHandler.hide, newState.hideAfter);
|
|
7511
|
+
hideTimeout.current = setTimeout(DialogHandler$1.hide, newState.hideAfter);
|
|
7512
7512
|
}
|
|
7513
7513
|
}
|
|
7514
7514
|
function hide() {
|
|
@@ -7865,17 +7865,17 @@ function BrandWrapper(_a) {
|
|
|
7865
7865
|
React.useEffect(getBrand, [brandId, brandHost]);
|
|
7866
7866
|
React.useEffect(initHandlers, [MUITheme]);
|
|
7867
7867
|
function initHandlers() {
|
|
7868
|
-
if (MUITheme) {
|
|
7868
|
+
if (MUITheme && includeHandlers) {
|
|
7869
7869
|
//@ts-ignore
|
|
7870
|
-
DialogHandler.register(dialogRef.current);
|
|
7870
|
+
DialogHandler$1.register(dialogRef.current);
|
|
7871
7871
|
//@ts-ignore
|
|
7872
|
-
ActionBarContainerHandler.register(actionsBarContainerRef.current);
|
|
7872
|
+
ActionBarContainerHandler$1.register(actionsBarContainerRef.current);
|
|
7873
7873
|
//@ts-ignore
|
|
7874
|
-
OverlayHandler.register(overlayRef.current);
|
|
7874
|
+
OverlayHandler$1.register(overlayRef.current);
|
|
7875
7875
|
//@ts-ignore
|
|
7876
|
-
ModalHandler.register(modalRef.current);
|
|
7876
|
+
ModalHandler$1.register(modalRef.current);
|
|
7877
7877
|
//@ts-ignore
|
|
7878
|
-
DrawerHandler.register(drawerRef.current);
|
|
7878
|
+
DrawerHandler$1.register(drawerRef.current);
|
|
7879
7879
|
}
|
|
7880
7880
|
}
|
|
7881
7881
|
function getBrand() {
|
|
@@ -9969,10 +9969,15 @@ var GenericWrapperContext = React.createContext({
|
|
|
9969
9969
|
});
|
|
9970
9970
|
|
|
9971
9971
|
function GenericWrapper(_a) {
|
|
9972
|
-
var children = _a.children, brandObj = _a.brandObj, brandId = _a.brandId, brandHost = _a.brandHost, account = _a.account, user = _a.user, _b = _a.setPageHead, setPageHead = _b === void 0 ? true : _b, _c = _a.setPostHog, setPostHog = _c === void 0 ? true : _c, LocizeInitializer = _a.LocizeInitializer, brandThemeContext = _a.brandThemeContext, proxyUrl = _a.proxyUrl, _d = _a.styleOverride, styleOverride = _d === void 0 ? {} : _d;
|
|
9973
|
-
var
|
|
9974
|
-
var
|
|
9975
|
-
var
|
|
9972
|
+
var children = _a.children, brandObj = _a.brandObj, brandId = _a.brandId, brandHost = _a.brandHost, account = _a.account, user = _a.user, _b = _a.setPageHead, setPageHead = _b === void 0 ? true : _b, _c = _a.setPostHog, setPostHog = _c === void 0 ? true : _c, LocizeInitializer = _a.LocizeInitializer, brandThemeContext = _a.brandThemeContext, proxyUrl = _a.proxyUrl, _d = _a.styleOverride, styleOverride = _d === void 0 ? {} : _d, _e = _a.includeHandlers, includeHandlers = _e === void 0 ? true : _e;
|
|
9973
|
+
var _f = React.useState(brandObj ? buildMUITheme({ brand: brandObj }) : undefined), mUITheme = _f[0], setMUITheme = _f[1];
|
|
9974
|
+
var _g = React.useState(brandObj), resellerBrand = _g[0], setResellerBrand = _g[1];
|
|
9975
|
+
var _h = reactI18next.useTranslation(); _h.t; _h.i18n;
|
|
9976
|
+
var dialogRef = React.useRef(undefined);
|
|
9977
|
+
var actionsBarContainerRef = React.useRef(undefined);
|
|
9978
|
+
var overlayRef = React.useRef(undefined);
|
|
9979
|
+
var modalRef = React.useRef(undefined);
|
|
9980
|
+
var drawerRef = React.useRef(undefined);
|
|
9976
9981
|
if (proxyUrl) {
|
|
9977
9982
|
uiKitConfig.GATEWAY_PROXY = proxyUrl;
|
|
9978
9983
|
}
|
|
@@ -9988,6 +9993,21 @@ function GenericWrapper(_a) {
|
|
|
9988
9993
|
}
|
|
9989
9994
|
}, [user]);
|
|
9990
9995
|
React.useEffect(initPH, []);
|
|
9996
|
+
React.useEffect(initHandlers, []);
|
|
9997
|
+
function initHandlers() {
|
|
9998
|
+
if (!includeHandlers)
|
|
9999
|
+
return;
|
|
10000
|
+
//@ts-ignore
|
|
10001
|
+
DialogHandler.register(dialogRef.current);
|
|
10002
|
+
//@ts-ignore
|
|
10003
|
+
ActionBarContainerHandler.register(actionsBarContainerRef.current);
|
|
10004
|
+
//@ts-ignore
|
|
10005
|
+
OverlayHandler.register(overlayRef.current);
|
|
10006
|
+
//@ts-ignore
|
|
10007
|
+
ModalHandler.register(modalRef.current);
|
|
10008
|
+
//@ts-ignore
|
|
10009
|
+
DrawerHandler.register(drawerRef.current);
|
|
10010
|
+
}
|
|
9991
10011
|
function initPH(brand) {
|
|
9992
10012
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
9993
10013
|
if (setPostHog) {
|
|
@@ -10010,13 +10030,19 @@ function GenericWrapper(_a) {
|
|
|
10010
10030
|
setMUITheme(theme);
|
|
10011
10031
|
}, onBrandError: function () {
|
|
10012
10032
|
setMUITheme(buildMUITheme({ brand: whiteLabelBrand }));
|
|
10013
|
-
}, noFetch: !!brandObj, setPageHead: setPageHead, brandThemeContext: brandThemeContext }, resellerBrand &&
|
|
10033
|
+
}, noFetch: !!brandObj, setPageHead: setPageHead, brandThemeContext: brandThemeContext, includeHandlers: false }, resellerBrand &&
|
|
10014
10034
|
React.createElement(GenericWrapperContext.Provider, { value: {
|
|
10015
10035
|
partnerBrand: resellerBrand,
|
|
10016
10036
|
account: account ? new AccountModel(account) : new AccountModel({}),
|
|
10017
10037
|
user: user ? new UserModel(user) : new UserModel({})
|
|
10018
10038
|
} }, children));
|
|
10019
10039
|
return React.createElement(React.Fragment, null,
|
|
10040
|
+
includeHandlers && React.createElement(React.Fragment, null,
|
|
10041
|
+
React.createElement(Dialog, { ref: dialogRef }),
|
|
10042
|
+
React.createElement(ActionBarContainer, { ref: actionsBarContainerRef }),
|
|
10043
|
+
React.createElement(Overlay, { ref: overlayRef }),
|
|
10044
|
+
React.createElement(Modal, { ref: modalRef }),
|
|
10045
|
+
React.createElement(Drawer, { ref: drawerRef })),
|
|
10020
10046
|
setPostHog &&
|
|
10021
10047
|
React.createElement(react.PostHogProvider, { client: posthog }, content),
|
|
10022
10048
|
!setPostHog &&
|
|
@@ -16986,7 +17012,7 @@ var UsersFactory = /** @class */ (function () {
|
|
|
16986
17012
|
exports.AccountModel = AccountModel;
|
|
16987
17013
|
exports.AccountsFactory = AccountsFactory;
|
|
16988
17014
|
exports.ActionBarContainer = ActionBarContainer;
|
|
16989
|
-
exports.ActionBarContainerHandler = ActionBarContainerHandler;
|
|
17015
|
+
exports.ActionBarContainerHandler = ActionBarContainerHandler$1;
|
|
16990
17016
|
exports.AssetManager = AssetManager;
|
|
16991
17017
|
exports.AutomationsFactory = AutomationsFactory;
|
|
16992
17018
|
exports.Avatar = Avatar;
|
|
@@ -17018,11 +17044,11 @@ exports.DateTimeCalendar = DateTimeCalendar;
|
|
|
17018
17044
|
exports.DateTimePicker = DateTimePicker;
|
|
17019
17045
|
exports.Dialog = Dialog;
|
|
17020
17046
|
exports.DialogActions = DialogActions;
|
|
17021
|
-
exports.DialogHandler = DialogHandler;
|
|
17047
|
+
exports.DialogHandler = DialogHandler$1;
|
|
17022
17048
|
exports.DialogTitle = DialogTitle;
|
|
17023
17049
|
exports.Divider = Divider;
|
|
17024
17050
|
exports.Drawer = Drawer;
|
|
17025
|
-
exports.DrawerHandler = DrawerHandler;
|
|
17051
|
+
exports.DrawerHandler = DrawerHandler$1;
|
|
17026
17052
|
exports.DropMenu = DropMenu;
|
|
17027
17053
|
exports.Dropdown = Dropdown;
|
|
17028
17054
|
exports.ElementContains = ElementContains;
|
|
@@ -17053,9 +17079,9 @@ exports.Logo = Logo;
|
|
|
17053
17079
|
exports.MD5 = MD5;
|
|
17054
17080
|
exports.MetricCard = MetricCard;
|
|
17055
17081
|
exports.Modal = Modal;
|
|
17056
|
-
exports.ModalHandler = ModalHandler;
|
|
17082
|
+
exports.ModalHandler = ModalHandler$1;
|
|
17057
17083
|
exports.ModalHeading = ModalHeading;
|
|
17058
|
-
exports.OverlayHandler = OverlayHandler;
|
|
17084
|
+
exports.OverlayHandler = OverlayHandler$1;
|
|
17059
17085
|
exports.PhoneTextField = PhoneTextField;
|
|
17060
17086
|
exports.Search = Search;
|
|
17061
17087
|
exports.SenderModel = SenderModel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TGenericWrapper } from "./types";
|
|
3
|
-
export declare function GenericWrapper({ children, brandObj, brandId, brandHost, account, user, setPageHead, setPostHog, LocizeInitializer, brandThemeContext, proxyUrl, styleOverride }: TGenericWrapper): React.JSX.Element;
|
|
3
|
+
export declare function GenericWrapper({ children, brandObj, brandId, brandHost, account, user, setPageHead, setPostHog, LocizeInitializer, brandThemeContext, proxyUrl, styleOverride, includeHandlers }: TGenericWrapper): React.JSX.Element;
|
|
4
4
|
export default GenericWrapper;
|
|
5
5
|
export * from "./context";
|
|
6
6
|
export * from "./types";
|
package/dist/esm/index.js
CHANGED
|
@@ -1946,189 +1946,189 @@ var whiteLabelBrand = {
|
|
|
1946
1946
|
config: {}
|
|
1947
1947
|
};
|
|
1948
1948
|
|
|
1949
|
-
var ActionBarContainerHandler = {
|
|
1949
|
+
var ActionBarContainerHandler$1 = {
|
|
1950
1950
|
actionBarContainer: undefined,
|
|
1951
1951
|
register: function (actionBarContainer) {
|
|
1952
1952
|
this.actionBarContainer = actionBarContainer;
|
|
1953
1953
|
},
|
|
1954
1954
|
unregister: function () {
|
|
1955
|
-
if (ActionBarContainerHandler.actionBarContainer) {
|
|
1956
|
-
ActionBarContainerHandler.actionBarContainer = undefined;
|
|
1955
|
+
if (ActionBarContainerHandler$1.actionBarContainer) {
|
|
1956
|
+
ActionBarContainerHandler$1.actionBarContainer = undefined;
|
|
1957
1957
|
}
|
|
1958
1958
|
},
|
|
1959
1959
|
isShowing: function () {
|
|
1960
|
-
if (ActionBarContainerHandler.actionBarContainer) {
|
|
1961
|
-
return ActionBarContainerHandler.actionBarContainer.isShowing();
|
|
1960
|
+
if (ActionBarContainerHandler$1.actionBarContainer) {
|
|
1961
|
+
return ActionBarContainerHandler$1.actionBarContainer.isShowing();
|
|
1962
1962
|
}
|
|
1963
1963
|
return false;
|
|
1964
1964
|
},
|
|
1965
1965
|
show: function (newState) {
|
|
1966
1966
|
setTimeout(function () {
|
|
1967
1967
|
newState.className = newState.className + " fromActionBarContainerHandler";
|
|
1968
|
-
if (!ActionBarContainerHandler.actionBarContainer) {
|
|
1968
|
+
if (!ActionBarContainerHandler$1.actionBarContainer) {
|
|
1969
1969
|
return;
|
|
1970
1970
|
}
|
|
1971
|
-
ActionBarContainerHandler.actionBarContainer.show(newState);
|
|
1971
|
+
ActionBarContainerHandler$1.actionBarContainer.show(newState);
|
|
1972
1972
|
}, 0);
|
|
1973
1973
|
},
|
|
1974
1974
|
hide: function () {
|
|
1975
1975
|
setTimeout(function () {
|
|
1976
|
-
if (!ActionBarContainerHandler.actionBarContainer) {
|
|
1976
|
+
if (!ActionBarContainerHandler$1.actionBarContainer) {
|
|
1977
1977
|
return;
|
|
1978
1978
|
}
|
|
1979
|
-
ActionBarContainerHandler.actionBarContainer.hide();
|
|
1979
|
+
ActionBarContainerHandler$1.actionBarContainer.hide();
|
|
1980
1980
|
}, 0);
|
|
1981
1981
|
}
|
|
1982
1982
|
};
|
|
1983
1983
|
|
|
1984
|
-
var DialogHandler = {
|
|
1984
|
+
var DialogHandler$1 = {
|
|
1985
1985
|
queuedDialog: [],
|
|
1986
1986
|
dialog: undefined,
|
|
1987
1987
|
register: function (dialog) {
|
|
1988
1988
|
this.dialog = dialog;
|
|
1989
1989
|
},
|
|
1990
1990
|
unregister: function () {
|
|
1991
|
-
if (DialogHandler.dialog) {
|
|
1992
|
-
DialogHandler.dialog = undefined;
|
|
1991
|
+
if (DialogHandler$1.dialog) {
|
|
1992
|
+
DialogHandler$1.dialog = undefined;
|
|
1993
1993
|
}
|
|
1994
1994
|
},
|
|
1995
1995
|
isShowing: function () {
|
|
1996
|
-
if (DialogHandler.dialog) {
|
|
1997
|
-
return DialogHandler.dialog.isShowing();
|
|
1996
|
+
if (DialogHandler$1.dialog) {
|
|
1997
|
+
return DialogHandler$1.dialog.isShowing();
|
|
1998
1998
|
}
|
|
1999
1999
|
return false;
|
|
2000
2000
|
},
|
|
2001
2001
|
queued: function () {
|
|
2002
|
-
return DialogHandler.queuedDialog.length;
|
|
2002
|
+
return DialogHandler$1.queuedDialog.length;
|
|
2003
2003
|
},
|
|
2004
2004
|
clearQueue: function () {
|
|
2005
|
-
DialogHandler.queuedDialog = [];
|
|
2005
|
+
DialogHandler$1.queuedDialog = [];
|
|
2006
2006
|
},
|
|
2007
2007
|
show: function (newState, skipCheck) {
|
|
2008
2008
|
if (newState === void 0) { newState = {}; }
|
|
2009
2009
|
if (skipCheck === void 0) { skipCheck = false; }
|
|
2010
2010
|
setTimeout(function () {
|
|
2011
2011
|
newState.className = newState.className + " fromDialogHandler";
|
|
2012
|
-
if (!DialogHandler.dialog) {
|
|
2012
|
+
if (!DialogHandler$1.dialog) {
|
|
2013
2013
|
return;
|
|
2014
2014
|
}
|
|
2015
|
-
if (!skipCheck && DialogHandler.isShowing()) {
|
|
2015
|
+
if (!skipCheck && DialogHandler$1.isShowing()) {
|
|
2016
2016
|
if (newState.hasOwnProperty("isExpress") && newState.isExpress) {
|
|
2017
|
-
DialogHandler.dialog.show(newState);
|
|
2017
|
+
DialogHandler$1.dialog.show(newState);
|
|
2018
2018
|
}
|
|
2019
2019
|
else if (newState.hasOwnProperty("isPriority") && newState.isPriority) {
|
|
2020
|
-
DialogHandler.queuedDialog.unshift(newState);
|
|
2020
|
+
DialogHandler$1.queuedDialog.unshift(newState);
|
|
2021
2021
|
}
|
|
2022
2022
|
else {
|
|
2023
|
-
DialogHandler.queuedDialog.push(newState);
|
|
2023
|
+
DialogHandler$1.queuedDialog.push(newState);
|
|
2024
2024
|
}
|
|
2025
2025
|
}
|
|
2026
2026
|
else {
|
|
2027
|
-
DialogHandler.dialog.show(newState);
|
|
2027
|
+
DialogHandler$1.dialog.show(newState);
|
|
2028
2028
|
}
|
|
2029
2029
|
}, 0);
|
|
2030
2030
|
},
|
|
2031
2031
|
hide: function () {
|
|
2032
2032
|
setTimeout(function () {
|
|
2033
|
-
if (!DialogHandler.dialog) {
|
|
2033
|
+
if (!DialogHandler$1.dialog) {
|
|
2034
2034
|
return;
|
|
2035
2035
|
}
|
|
2036
|
-
DialogHandler.dialog.hide();
|
|
2037
|
-
if (DialogHandler.queuedDialog.length > 0) {
|
|
2038
|
-
DialogHandler.show(DialogHandler.queuedDialog[0], true);
|
|
2039
|
-
DialogHandler.queuedDialog.shift();
|
|
2036
|
+
DialogHandler$1.dialog.hide();
|
|
2037
|
+
if (DialogHandler$1.queuedDialog.length > 0) {
|
|
2038
|
+
DialogHandler$1.show(DialogHandler$1.queuedDialog[0], true);
|
|
2039
|
+
DialogHandler$1.queuedDialog.shift();
|
|
2040
2040
|
}
|
|
2041
2041
|
}, 0);
|
|
2042
2042
|
}
|
|
2043
2043
|
};
|
|
2044
2044
|
|
|
2045
|
-
var DrawerHandler = {
|
|
2045
|
+
var DrawerHandler$1 = {
|
|
2046
2046
|
drawer: undefined,
|
|
2047
2047
|
register: function (drawer) {
|
|
2048
2048
|
this.drawer = drawer;
|
|
2049
2049
|
},
|
|
2050
2050
|
unregister: function () {
|
|
2051
|
-
if (DrawerHandler.drawer) {
|
|
2052
|
-
DrawerHandler.drawer = undefined;
|
|
2051
|
+
if (DrawerHandler$1.drawer) {
|
|
2052
|
+
DrawerHandler$1.drawer = undefined;
|
|
2053
2053
|
}
|
|
2054
2054
|
},
|
|
2055
2055
|
isShowing: function () {
|
|
2056
|
-
if (DrawerHandler.drawer) {
|
|
2057
|
-
return DrawerHandler.drawer.isShowing();
|
|
2056
|
+
if (DrawerHandler$1.drawer) {
|
|
2057
|
+
return DrawerHandler$1.drawer.isShowing();
|
|
2058
2058
|
}
|
|
2059
2059
|
return false;
|
|
2060
2060
|
},
|
|
2061
2061
|
show: function (newState) {
|
|
2062
|
-
if (!DrawerHandler.drawer) {
|
|
2062
|
+
if (!DrawerHandler$1.drawer) {
|
|
2063
2063
|
return;
|
|
2064
2064
|
}
|
|
2065
|
-
DrawerHandler.drawer.show(newState);
|
|
2065
|
+
DrawerHandler$1.drawer.show(newState);
|
|
2066
2066
|
},
|
|
2067
2067
|
hide: function () {
|
|
2068
|
-
if (!DrawerHandler.drawer) {
|
|
2068
|
+
if (!DrawerHandler$1.drawer) {
|
|
2069
2069
|
return;
|
|
2070
2070
|
}
|
|
2071
|
-
DrawerHandler.drawer.hide();
|
|
2071
|
+
DrawerHandler$1.drawer.hide();
|
|
2072
2072
|
}
|
|
2073
2073
|
};
|
|
2074
2074
|
|
|
2075
|
-
var ModalHandler = {
|
|
2075
|
+
var ModalHandler$1 = {
|
|
2076
2076
|
modal: undefined,
|
|
2077
2077
|
register: function (modal) {
|
|
2078
2078
|
this.modal = modal;
|
|
2079
2079
|
},
|
|
2080
2080
|
unregister: function () {
|
|
2081
|
-
if (ModalHandler.modal) {
|
|
2082
|
-
ModalHandler.modal = undefined;
|
|
2081
|
+
if (ModalHandler$1.modal) {
|
|
2082
|
+
ModalHandler$1.modal = undefined;
|
|
2083
2083
|
}
|
|
2084
2084
|
},
|
|
2085
2085
|
isShowing: function () {
|
|
2086
|
-
if (ModalHandler.modal) {
|
|
2087
|
-
return ModalHandler.modal.isShowing();
|
|
2086
|
+
if (ModalHandler$1.modal) {
|
|
2087
|
+
return ModalHandler$1.modal.isShowing();
|
|
2088
2088
|
}
|
|
2089
2089
|
return false;
|
|
2090
2090
|
},
|
|
2091
2091
|
show: function (newState) {
|
|
2092
|
-
if (!ModalHandler.modal) {
|
|
2092
|
+
if (!ModalHandler$1.modal) {
|
|
2093
2093
|
return;
|
|
2094
2094
|
}
|
|
2095
|
-
ModalHandler.modal.show(newState);
|
|
2095
|
+
ModalHandler$1.modal.show(newState);
|
|
2096
2096
|
},
|
|
2097
2097
|
hide: function () {
|
|
2098
|
-
if (!ModalHandler.modal) {
|
|
2098
|
+
if (!ModalHandler$1.modal) {
|
|
2099
2099
|
return;
|
|
2100
2100
|
}
|
|
2101
|
-
ModalHandler.modal.hide();
|
|
2101
|
+
ModalHandler$1.modal.hide();
|
|
2102
2102
|
}
|
|
2103
2103
|
};
|
|
2104
2104
|
|
|
2105
|
-
var OverlayHandler = {
|
|
2105
|
+
var OverlayHandler$1 = {
|
|
2106
2106
|
overlay: undefined,
|
|
2107
2107
|
register: function (modal) {
|
|
2108
2108
|
this.overlay = modal;
|
|
2109
2109
|
},
|
|
2110
2110
|
unregister: function () {
|
|
2111
|
-
if (OverlayHandler.overlay) {
|
|
2112
|
-
OverlayHandler.overlay = undefined;
|
|
2111
|
+
if (OverlayHandler$1.overlay) {
|
|
2112
|
+
OverlayHandler$1.overlay = undefined;
|
|
2113
2113
|
}
|
|
2114
2114
|
},
|
|
2115
2115
|
isShowing: function () {
|
|
2116
|
-
if (OverlayHandler.overlay) {
|
|
2117
|
-
return OverlayHandler.overlay.isShowing();
|
|
2116
|
+
if (OverlayHandler$1.overlay) {
|
|
2117
|
+
return OverlayHandler$1.overlay.isShowing();
|
|
2118
2118
|
}
|
|
2119
2119
|
return false;
|
|
2120
2120
|
},
|
|
2121
2121
|
show: function (newState) {
|
|
2122
|
-
if (!OverlayHandler.overlay) {
|
|
2122
|
+
if (!OverlayHandler$1.overlay) {
|
|
2123
2123
|
return;
|
|
2124
2124
|
}
|
|
2125
|
-
OverlayHandler.overlay.show(newState);
|
|
2125
|
+
OverlayHandler$1.overlay.show(newState);
|
|
2126
2126
|
},
|
|
2127
2127
|
hide: function () {
|
|
2128
|
-
if (!OverlayHandler.overlay) {
|
|
2128
|
+
if (!OverlayHandler$1.overlay) {
|
|
2129
2129
|
return;
|
|
2130
2130
|
}
|
|
2131
|
-
OverlayHandler.overlay.hide();
|
|
2131
|
+
OverlayHandler$1.overlay.hide();
|
|
2132
2132
|
}
|
|
2133
2133
|
};
|
|
2134
2134
|
|
|
@@ -7432,7 +7432,7 @@ function DialogActions(_a) {
|
|
|
7432
7432
|
primaryBtnOnClick(e, btnRef);
|
|
7433
7433
|
}
|
|
7434
7434
|
else {
|
|
7435
|
-
DialogHandler.hide();
|
|
7435
|
+
DialogHandler$1.hide();
|
|
7436
7436
|
}
|
|
7437
7437
|
}
|
|
7438
7438
|
function handleOnSecondaryClick() {
|
|
@@ -7440,7 +7440,7 @@ function DialogActions(_a) {
|
|
|
7440
7440
|
secondaryBtnOnClick();
|
|
7441
7441
|
}
|
|
7442
7442
|
else {
|
|
7443
|
-
DialogHandler.hide();
|
|
7443
|
+
DialogHandler$1.hide();
|
|
7444
7444
|
}
|
|
7445
7445
|
}
|
|
7446
7446
|
return React__default.createElement(MuiDialogActions, null,
|
|
@@ -7488,7 +7488,7 @@ var Dialog = forwardRef(function (props, ref) {
|
|
|
7488
7488
|
var newState = setStateFromProps(__assign(__assign({}, cState), { open: true }));
|
|
7489
7489
|
setNewState(newState);
|
|
7490
7490
|
if ((!newState.primaryBtnText || !newState.secondaryBtnText) && newState.managedByContent === false) {
|
|
7491
|
-
hideTimeout.current = setTimeout(DialogHandler.hide, newState.hideAfter);
|
|
7491
|
+
hideTimeout.current = setTimeout(DialogHandler$1.hide, newState.hideAfter);
|
|
7492
7492
|
}
|
|
7493
7493
|
}
|
|
7494
7494
|
function hide() {
|
|
@@ -7845,17 +7845,17 @@ function BrandWrapper(_a) {
|
|
|
7845
7845
|
useEffect(getBrand, [brandId, brandHost]);
|
|
7846
7846
|
useEffect(initHandlers, [MUITheme]);
|
|
7847
7847
|
function initHandlers() {
|
|
7848
|
-
if (MUITheme) {
|
|
7848
|
+
if (MUITheme && includeHandlers) {
|
|
7849
7849
|
//@ts-ignore
|
|
7850
|
-
DialogHandler.register(dialogRef.current);
|
|
7850
|
+
DialogHandler$1.register(dialogRef.current);
|
|
7851
7851
|
//@ts-ignore
|
|
7852
|
-
ActionBarContainerHandler.register(actionsBarContainerRef.current);
|
|
7852
|
+
ActionBarContainerHandler$1.register(actionsBarContainerRef.current);
|
|
7853
7853
|
//@ts-ignore
|
|
7854
|
-
OverlayHandler.register(overlayRef.current);
|
|
7854
|
+
OverlayHandler$1.register(overlayRef.current);
|
|
7855
7855
|
//@ts-ignore
|
|
7856
|
-
ModalHandler.register(modalRef.current);
|
|
7856
|
+
ModalHandler$1.register(modalRef.current);
|
|
7857
7857
|
//@ts-ignore
|
|
7858
|
-
DrawerHandler.register(drawerRef.current);
|
|
7858
|
+
DrawerHandler$1.register(drawerRef.current);
|
|
7859
7859
|
}
|
|
7860
7860
|
}
|
|
7861
7861
|
function getBrand() {
|
|
@@ -9949,10 +9949,15 @@ var GenericWrapperContext = createContext({
|
|
|
9949
9949
|
});
|
|
9950
9950
|
|
|
9951
9951
|
function GenericWrapper(_a) {
|
|
9952
|
-
var children = _a.children, brandObj = _a.brandObj, brandId = _a.brandId, brandHost = _a.brandHost, account = _a.account, user = _a.user, _b = _a.setPageHead, setPageHead = _b === void 0 ? true : _b, _c = _a.setPostHog, setPostHog = _c === void 0 ? true : _c, LocizeInitializer = _a.LocizeInitializer, brandThemeContext = _a.brandThemeContext, proxyUrl = _a.proxyUrl, _d = _a.styleOverride, styleOverride = _d === void 0 ? {} : _d;
|
|
9953
|
-
var
|
|
9954
|
-
var
|
|
9955
|
-
var
|
|
9952
|
+
var children = _a.children, brandObj = _a.brandObj, brandId = _a.brandId, brandHost = _a.brandHost, account = _a.account, user = _a.user, _b = _a.setPageHead, setPageHead = _b === void 0 ? true : _b, _c = _a.setPostHog, setPostHog = _c === void 0 ? true : _c, LocizeInitializer = _a.LocizeInitializer, brandThemeContext = _a.brandThemeContext, proxyUrl = _a.proxyUrl, _d = _a.styleOverride, styleOverride = _d === void 0 ? {} : _d, _e = _a.includeHandlers, includeHandlers = _e === void 0 ? true : _e;
|
|
9953
|
+
var _f = useState(brandObj ? buildMUITheme({ brand: brandObj }) : undefined), mUITheme = _f[0], setMUITheme = _f[1];
|
|
9954
|
+
var _g = useState(brandObj), resellerBrand = _g[0], setResellerBrand = _g[1];
|
|
9955
|
+
var _h = useTranslation(); _h.t; _h.i18n;
|
|
9956
|
+
var dialogRef = useRef(undefined);
|
|
9957
|
+
var actionsBarContainerRef = useRef(undefined);
|
|
9958
|
+
var overlayRef = useRef(undefined);
|
|
9959
|
+
var modalRef = useRef(undefined);
|
|
9960
|
+
var drawerRef = useRef(undefined);
|
|
9956
9961
|
if (proxyUrl) {
|
|
9957
9962
|
uiKitConfig.GATEWAY_PROXY = proxyUrl;
|
|
9958
9963
|
}
|
|
@@ -9968,6 +9973,21 @@ function GenericWrapper(_a) {
|
|
|
9968
9973
|
}
|
|
9969
9974
|
}, [user]);
|
|
9970
9975
|
useEffect(initPH, []);
|
|
9976
|
+
useEffect(initHandlers, []);
|
|
9977
|
+
function initHandlers() {
|
|
9978
|
+
if (!includeHandlers)
|
|
9979
|
+
return;
|
|
9980
|
+
//@ts-ignore
|
|
9981
|
+
DialogHandler.register(dialogRef.current);
|
|
9982
|
+
//@ts-ignore
|
|
9983
|
+
ActionBarContainerHandler.register(actionsBarContainerRef.current);
|
|
9984
|
+
//@ts-ignore
|
|
9985
|
+
OverlayHandler.register(overlayRef.current);
|
|
9986
|
+
//@ts-ignore
|
|
9987
|
+
ModalHandler.register(modalRef.current);
|
|
9988
|
+
//@ts-ignore
|
|
9989
|
+
DrawerHandler.register(drawerRef.current);
|
|
9990
|
+
}
|
|
9971
9991
|
function initPH(brand) {
|
|
9972
9992
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
9973
9993
|
if (setPostHog) {
|
|
@@ -9990,13 +10010,19 @@ function GenericWrapper(_a) {
|
|
|
9990
10010
|
setMUITheme(theme);
|
|
9991
10011
|
}, onBrandError: function () {
|
|
9992
10012
|
setMUITheme(buildMUITheme({ brand: whiteLabelBrand }));
|
|
9993
|
-
}, noFetch: !!brandObj, setPageHead: setPageHead, brandThemeContext: brandThemeContext }, resellerBrand &&
|
|
10013
|
+
}, noFetch: !!brandObj, setPageHead: setPageHead, brandThemeContext: brandThemeContext, includeHandlers: false }, resellerBrand &&
|
|
9994
10014
|
React__default.createElement(GenericWrapperContext.Provider, { value: {
|
|
9995
10015
|
partnerBrand: resellerBrand,
|
|
9996
10016
|
account: account ? new AccountModel(account) : new AccountModel({}),
|
|
9997
10017
|
user: user ? new UserModel(user) : new UserModel({})
|
|
9998
10018
|
} }, children));
|
|
9999
10019
|
return React__default.createElement(React__default.Fragment, null,
|
|
10020
|
+
includeHandlers && React__default.createElement(React__default.Fragment, null,
|
|
10021
|
+
React__default.createElement(Dialog, { ref: dialogRef }),
|
|
10022
|
+
React__default.createElement(ActionBarContainer, { ref: actionsBarContainerRef }),
|
|
10023
|
+
React__default.createElement(Overlay, { ref: overlayRef }),
|
|
10024
|
+
React__default.createElement(Modal, { ref: modalRef }),
|
|
10025
|
+
React__default.createElement(Drawer, { ref: drawerRef })),
|
|
10000
10026
|
setPostHog &&
|
|
10001
10027
|
React__default.createElement(PostHogProvider, { client: posthog }, content),
|
|
10002
10028
|
!setPostHog &&
|
|
@@ -16963,4 +16989,4 @@ var UsersFactory = /** @class */ (function () {
|
|
|
16963
16989
|
return UsersFactory;
|
|
16964
16990
|
}());
|
|
16965
16991
|
|
|
16966
|
-
export { AccountModel, AccountsFactory, ActionBarContainer, ActionBarContainerHandler, AssetManager, AutomationsFactory, Avatar, BillingFactory, BrandWrapper, BrandsFactory, Button, ButtonMenu, CampaignModel, CampaignsFactory, Checkbox, Chip, CircularProgress, CodeInput, ColManager, ColorTextField, ContactModel, ContactsFactory, ContentSectionContainer, CopyToClipboard, CountryDropdown, CustomerModel, DataTable, DataTableHead, DataTableRow, DateCalendar, DatePicker, DateTimeCalendar, DateTimePicker, Dialog, DialogActions, DialogHandler, DialogTitle, Divider, Drawer, DrawerHandler, DropMenu, Dropdown, EApiLanguages, ECampaignStatuses, EEMailSummaryStatuses, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailSummaryEngagement, EEvents, EMethods, EOperatorTypes, EPartialInfoPool, EStorageType, ElementContains, Email, EmailAPIFactory, EmptyContent, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, ListCampaignModel, ListModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler, ModalHeading, OverlayHandler, PhoneTextField, Search, SenderModel, SendersFactory, SideMenu, SideMenuContainer, SideMenuItem, SubNav, SupportFactory, SystemEmailsFactory, SystemEmailsModel, TemplateModel, TemplatesFactory, TextField, TimePicker, TimeSelector, Toggle, TopMenu, Typography, UserModel, UsersFactory, addPartialInformation, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, connectToZendeskSupportService, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createTemplate, deepMergeObject, deleteCampaign, deleteCampaignsReportsExport, deletePartialInformation, deleteStorageItem, deleteTemplate, descendingComparator, downloadCampaignLogExport, downloadCampaignsReportsExport, emptyAccountAddress, emptyAccountLimits, enrichBrand, enrichOrganization, enrichProfile, eventCondition, eventIdentify, eventLogout, fetchRetry, fetchRoute, findNestedProperty, formatNumber, getAccount, getAccountReport, getAdjustedBillingCycle, getBestLocalMatch, getBrand, getBrandService, getBrandUrl, getCalendarFormat, getCampaign, getCampaignLinks, getCampaignLinksReport, getCampaignLogs, getCampaignLogsExports, getCampaignReport, getCampaignRevisions, getCampaignsReportsExport, getComparator, getCustomerProfile, getDate, getDomainFromEmail, getDomainsFromEmails, getDomainsService, getEmail, getEmailActivitySummary, getEmailReport, getEndOfDate, getForm, getHashQueryWithoutHistory, getIconSize, getList, getListLogs, getListReport, getNestedProperty, getPropertyValue, getSender, getStartOfDate, getStorage, getTColor, getTemplate, getUnixTime, getUrlQueryParam, getUser, getUtmCookies, googlePlacesMapper, hasDecimal, impersonateService, initFieldValidation, initPostHog, isColorLight, isDomainValidService, isSimpleType, isValidEmail, isValidString, isValidUrl, lisTEmailTags, listAccounts, listCampaigns, listCampaignsReportsExports, listContacts, listEmailLogs, listForms, listList, listSenders, listSystemEmails, listTemplates, listUsers, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, popImpersonificationTree, postMessage, reScheduleCampaign, removeEmptyProperties, removeQueryParams, removeTrailingChar, renderCampaign, renderTemplate, requestSupportService, resumeCampaign, scheduleCampaign, searchCustomerProfiles, sendCampaignTest, setBrandHeadElements, setStorage, shareTemplate, splitArray, splitObject, stableSort, startPromisePool, suspendCampaign, trackEvent, truncateEmail, truncateText, uiKitConfig, unArchiveCampaign, unScheduleCampaign, unshareTemplate, updateAccount, updateAndClearUrlParams, updateCampaign, updateSystemEmails, updateTemplate, updateUser, validateColor, validateEmail, validateGenericInput, validateUrl, wait, whiteLabelBrand, whoAmi };
|
|
16992
|
+
export { AccountModel, AccountsFactory, ActionBarContainer, ActionBarContainerHandler$1 as ActionBarContainerHandler, AssetManager, AutomationsFactory, Avatar, BillingFactory, BrandWrapper, BrandsFactory, Button, ButtonMenu, CampaignModel, CampaignsFactory, Checkbox, Chip, CircularProgress, CodeInput, ColManager, ColorTextField, ContactModel, ContactsFactory, ContentSectionContainer, CopyToClipboard, CountryDropdown, CustomerModel, DataTable, DataTableHead, DataTableRow, DateCalendar, DatePicker, DateTimeCalendar, DateTimePicker, Dialog, DialogActions, DialogHandler$1 as DialogHandler, DialogTitle, Divider, Drawer, DrawerHandler$1 as DrawerHandler, DropMenu, Dropdown, EApiLanguages, ECampaignStatuses, EEMailSummaryStatuses, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailSummaryEngagement, EEvents, EMethods, EOperatorTypes, EPartialInfoPool, EStorageType, ElementContains, Email, EmailAPIFactory, EmptyContent, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, ListCampaignModel, ListModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler$1 as ModalHandler, ModalHeading, OverlayHandler$1 as OverlayHandler, PhoneTextField, Search, SenderModel, SendersFactory, SideMenu, SideMenuContainer, SideMenuItem, SubNav, SupportFactory, SystemEmailsFactory, SystemEmailsModel, TemplateModel, TemplatesFactory, TextField, TimePicker, TimeSelector, Toggle, TopMenu, Typography, UserModel, UsersFactory, addPartialInformation, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, connectToZendeskSupportService, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createTemplate, deepMergeObject, deleteCampaign, deleteCampaignsReportsExport, deletePartialInformation, deleteStorageItem, deleteTemplate, descendingComparator, downloadCampaignLogExport, downloadCampaignsReportsExport, emptyAccountAddress, emptyAccountLimits, enrichBrand, enrichOrganization, enrichProfile, eventCondition, eventIdentify, eventLogout, fetchRetry, fetchRoute, findNestedProperty, formatNumber, getAccount, getAccountReport, getAdjustedBillingCycle, getBestLocalMatch, getBrand, getBrandService, getBrandUrl, getCalendarFormat, getCampaign, getCampaignLinks, getCampaignLinksReport, getCampaignLogs, getCampaignLogsExports, getCampaignReport, getCampaignRevisions, getCampaignsReportsExport, getComparator, getCustomerProfile, getDate, getDomainFromEmail, getDomainsFromEmails, getDomainsService, getEmail, getEmailActivitySummary, getEmailReport, getEndOfDate, getForm, getHashQueryWithoutHistory, getIconSize, getList, getListLogs, getListReport, getNestedProperty, getPropertyValue, getSender, getStartOfDate, getStorage, getTColor, getTemplate, getUnixTime, getUrlQueryParam, getUser, getUtmCookies, googlePlacesMapper, hasDecimal, impersonateService, initFieldValidation, initPostHog, isColorLight, isDomainValidService, isSimpleType, isValidEmail, isValidString, isValidUrl, lisTEmailTags, listAccounts, listCampaigns, listCampaignsReportsExports, listContacts, listEmailLogs, listForms, listList, listSenders, listSystemEmails, listTemplates, listUsers, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, popImpersonificationTree, postMessage, reScheduleCampaign, removeEmptyProperties, removeQueryParams, removeTrailingChar, renderCampaign, renderTemplate, requestSupportService, resumeCampaign, scheduleCampaign, searchCustomerProfiles, sendCampaignTest, setBrandHeadElements, setStorage, shareTemplate, splitArray, splitObject, stableSort, startPromisePool, suspendCampaign, trackEvent, truncateEmail, truncateText, uiKitConfig, unArchiveCampaign, unScheduleCampaign, unshareTemplate, updateAccount, updateAndClearUrlParams, updateCampaign, updateSystemEmails, updateTemplate, updateUser, validateColor, validateEmail, validateGenericInput, validateUrl, wait, whiteLabelBrand, whoAmi };
|