@cakemail-org/ui-components-v2 2.1.79 → 2.2.0
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/index.d.ts +0 -1
- package/dist/cjs/components/loadingContainer/index.d.ts +3 -1
- package/dist/cjs/index.js +33 -21
- package/dist/cjs/utils/data.d.ts +1 -0
- package/dist/esm/components/index.d.ts +0 -1
- package/dist/esm/components/loadingContainer/index.d.ts +3 -1
- package/dist/esm/index.js +33 -21
- package/dist/esm/utils/data.d.ts +1 -0
- package/package.json +2 -2
- package/dist/cjs/components/copyToClipboard/index.d.ts +0 -5
- package/dist/cjs/components/copyToClipboard/types.d.ts +0 -4
- package/dist/esm/components/copyToClipboard/index.d.ts +0 -5
- package/dist/esm/components/copyToClipboard/types.d.ts +0 -4
|
@@ -9,7 +9,6 @@ export * from "./chip";
|
|
|
9
9
|
export * from './circularProgress';
|
|
10
10
|
export * from "./codeInput";
|
|
11
11
|
export * from "./contentSectionContainer";
|
|
12
|
-
export * from "./copyToClipboard";
|
|
13
12
|
export * from "./dataTable";
|
|
14
13
|
export * from "./datePicker";
|
|
15
14
|
export * from "./dialog";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./styles.scss";
|
|
3
|
-
export declare function LoadingContainer({ loading, children, variant, width, keepChildren,
|
|
3
|
+
export declare function LoadingContainer({ loading, children, variant, width, className, keepChildren, // Works with contenet not in iframes
|
|
4
|
+
showChildren }: {
|
|
4
5
|
loading?: boolean;
|
|
5
6
|
children?: any;
|
|
6
7
|
variant?: "circular" | "linear";
|
|
7
8
|
width?: number;
|
|
9
|
+
className?: string;
|
|
8
10
|
keepChildren?: boolean;
|
|
9
11
|
showChildren?: boolean;
|
|
10
12
|
}): React.JSX.Element;
|
package/dist/cjs/index.js
CHANGED
|
@@ -1531,7 +1531,9 @@ var css_248z$w = ".loadingContainer-component-v2.keepChildren {\n position: rel
|
|
|
1531
1531
|
styleInject(css_248z$w);
|
|
1532
1532
|
|
|
1533
1533
|
function LoadingContainer(_a) {
|
|
1534
|
-
var _b = _a.loading, loading = _b === void 0 ? false : _b, children = _a.children, _c = _a.variant, variant = _c === void 0 ? "circular" : _c, width = _a.width,
|
|
1534
|
+
var _b = _a.loading, loading = _b === void 0 ? false : _b, children = _a.children, _c = _a.variant, variant = _c === void 0 ? "circular" : _c, width = _a.width, _d = _a.className, className = _d === void 0 ? "" : _d, keepChildren = _a.keepChildren, // Works with contenet not in iframes
|
|
1535
|
+
showChildren = _a.showChildren // To use in tendem with keepChildren to show children when loading is true
|
|
1536
|
+
;
|
|
1535
1537
|
var linearStyle = width ? { height: width } : undefined;
|
|
1536
1538
|
var loader = variant === "circular" ? React.createElement(CircularProgress, { thickness: width }) : React.createElement(LinearProgress, { sx: linearStyle });
|
|
1537
1539
|
return React.createElement(React.Fragment, null,
|
|
@@ -1540,13 +1542,13 @@ function LoadingContainer(_a) {
|
|
|
1540
1542
|
loading &&
|
|
1541
1543
|
React.createElement(React.Fragment, null,
|
|
1542
1544
|
children &&
|
|
1543
|
-
React.createElement(Container, { className: "loadingContainer-component-v2 ".concat(keepChildren ? "keepChildren" : ""), sx: { display: "flex", alignItems: "center", justifyContent: "center", height: "inherit", width: "100%", flex: 1 } },
|
|
1545
|
+
React.createElement(Container, { className: "loadingContainer-component-v2 ".concat(keepChildren ? "keepChildren" : "", " ").concat(className), sx: { display: "flex", alignItems: "center", justifyContent: "center", height: "inherit", width: "100%", flex: 1 } },
|
|
1544
1546
|
keepChildren && React.createElement(material.Box, { className: showChildren ? "showChildren loading" : "hiddenChildren" },
|
|
1545
1547
|
" ",
|
|
1546
1548
|
children),
|
|
1547
1549
|
loader),
|
|
1548
1550
|
!children &&
|
|
1549
|
-
React.createElement(Container, { className: "loadingContainer-component-v2", sx: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%" } }, loader)));
|
|
1551
|
+
React.createElement(Container, { className: "loadingContainer-component-v2 ".concat(className), sx: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%" } }, loader)));
|
|
1550
1552
|
}
|
|
1551
1553
|
|
|
1552
1554
|
var css_248z$v = ".textfield-component-v2 {\n position: relative;\n}\n.textfield-component-v2.disabled {\n opacity: 0.65;\n pointer-events: none;\n}\n.textfield-component-v2 .MuiSvgIcon-root ~ .MuiFormControl-root .MuiInputBase-input {\n padding-left: 42px;\n}\n.textfield-component-v2 .MuiSvgIcon-root {\n position: absolute;\n left: 1rem;\n top: 1.65rem;\n transform: translateY(-50%);\n z-index: 1;\n}\n\n.locationTextField-component-v2 {\n position: relative;\n}\n.locationTextField-component-v2 .autocomplete-dropdown-container {\n position: absolute;\n width: 100%;\n z-index: 10000;\n}\n\n.phoneTextField-component-v2 .MuiInputAdornment-root .MuiSelect-select {\n padding-right: 1.75rem !important;\n}\n.phoneTextField-component-v2 .MuiInputAdornment-root .MuiSelect-icon {\n display: inline-block;\n right: 0.5rem;\n}\n\n.react-international-phone-flag-emoji {\n width: 1.5rem;\n height: 1.5rem;\n}\n\n.colorTextField-component-v2 {\n position: relative;\n}\n.colorTextField-component-v2 .boxedColor {\n position: absolute;\n width: 20px;\n height: 20px;\n border-radius: 20px;\n left: 1rem;\n top: 1.65rem;\n transform: translateY(-50%);\n z-index: 1;\n}\n.colorTextField-component-v2 .boxedColor .MuiSvgIcon-root {\n width: unset;\n height: unset;\n}\n.colorTextField-component-v2 .boxedColor::after {\n position: absolute;\n width: 6px;\n height: 6px;\n content: \"\";\n background-color: var(--white, #FFFFFF);\n border-radius: 20px;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.colorTextField-component-v2 .boxedColor ~ .textfield-component-v2 .MuiInputBase-input {\n padding-left: 44px;\n}\n.colorTextField-component-v2.bottom .react-colorful {\n top: 3.5rem;\n}\n.colorTextField-component-v2.top .react-colorful {\n bottom: 4rem;\n}\n.colorTextField-component-v2 .react-colorful {\n width: 100%;\n position: absolute;\n}";
|
|
@@ -2701,6 +2703,33 @@ function deepMergeObject(source, target) {
|
|
|
2701
2703
|
}
|
|
2702
2704
|
return target;
|
|
2703
2705
|
}
|
|
2706
|
+
function copyToClipboard(text) {
|
|
2707
|
+
if (navigator.clipboard && navigator.clipboard.writeText) {
|
|
2708
|
+
navigator.clipboard.writeText(text).catch(function (err) {
|
|
2709
|
+
fallbackCopyToClipboard(text);
|
|
2710
|
+
});
|
|
2711
|
+
}
|
|
2712
|
+
else {
|
|
2713
|
+
fallbackCopyToClipboard(text);
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
function fallbackCopyToClipboard(text) {
|
|
2717
|
+
var textarea = document.createElement('textarea');
|
|
2718
|
+
textarea.value = text;
|
|
2719
|
+
textarea.style.position = 'fixed';
|
|
2720
|
+
textarea.style.top = '-1000px';
|
|
2721
|
+
textarea.style.left = '-1000px';
|
|
2722
|
+
textarea.style.opacity = '0';
|
|
2723
|
+
document.body.appendChild(textarea);
|
|
2724
|
+
textarea.select();
|
|
2725
|
+
try {
|
|
2726
|
+
document.execCommand('copy');
|
|
2727
|
+
}
|
|
2728
|
+
catch (err) {
|
|
2729
|
+
console.error('Failed to copy text');
|
|
2730
|
+
}
|
|
2731
|
+
document.body.removeChild(textarea);
|
|
2732
|
+
}
|
|
2704
2733
|
|
|
2705
2734
|
function setBrandHeadElements(brand, locale) {
|
|
2706
2735
|
var link = document.getElementById("favicon");
|
|
@@ -8472,23 +8501,6 @@ function CodeInput(_a) {
|
|
|
8472
8501
|
React.createElement(OTPInput, { value: cValue, onChange: handleOnChange, onPaste: handleOnPaste, renderInput: function (props) { return React.createElement("input", __assign({}, props)); }, inputType: inputType, numInputs: numInputs, skipDefaultStyles: true, shouldAutoFocus: shouldAutoFocus, placeholder: placeholder, renderSeparator: renderSeparator }));
|
|
8473
8502
|
}
|
|
8474
8503
|
|
|
8475
|
-
var CopyToClipboard = React.forwardRef(function (props, ref) {
|
|
8476
|
-
var textareaRef = React.useRef(null);
|
|
8477
|
-
React.useImperativeHandle(ref, function () { return ({
|
|
8478
|
-
// Expose the 'copy' function through the ref
|
|
8479
|
-
copy: function (text) {
|
|
8480
|
-
setTimeout(function () {
|
|
8481
|
-
if (textareaRef.current) {
|
|
8482
|
-
textareaRef.current.value = text;
|
|
8483
|
-
textareaRef.current.select();
|
|
8484
|
-
document.execCommand('copy');
|
|
8485
|
-
}
|
|
8486
|
-
}, 0);
|
|
8487
|
-
},
|
|
8488
|
-
}); });
|
|
8489
|
-
return (React.createElement("textarea", { ref: textareaRef, style: { position: "fixed", top: "-1000px" } }));
|
|
8490
|
-
});
|
|
8491
|
-
|
|
8492
8504
|
function CustomPaginationActions(_a) {
|
|
8493
8505
|
var count = _a.count, page = _a.page, rowsPerPage = _a.rowsPerPage, onPageChange = _a.onPageChange, showFirstButton = _a.showFirstButton, showLastButton = _a.showLastButton;
|
|
8494
8506
|
var handleFirstPageButtonClick = function (event) {
|
|
@@ -18866,7 +18878,6 @@ exports.CommonFormModel = CommonFormModel;
|
|
|
18866
18878
|
exports.ContactModel = ContactModel;
|
|
18867
18879
|
exports.ContactsFactory = ContactsFactory;
|
|
18868
18880
|
exports.ContentSectionContainer = ContentSectionContainer;
|
|
18869
|
-
exports.CopyToClipboard = CopyToClipboard;
|
|
18870
18881
|
exports.CountryDropdown = CountryDropdown;
|
|
18871
18882
|
exports.CustomerModel = CustomerModel;
|
|
18872
18883
|
exports.DataTable = DataTable;
|
|
@@ -18966,6 +18977,7 @@ exports.cleanPostHogId = cleanPostHogId;
|
|
|
18966
18977
|
exports.clearImpersonificationTree = clearImpersonificationTree;
|
|
18967
18978
|
exports.clearStorage = clearStorage;
|
|
18968
18979
|
exports.connectToZendeskSupportService = connectToZendeskSupportService;
|
|
18980
|
+
exports.copyToClipboard = copyToClipboard;
|
|
18969
18981
|
exports.createAccount = createAccount;
|
|
18970
18982
|
exports.createBrand = createBrand;
|
|
18971
18983
|
exports.createCampaign = createCampaign;
|
package/dist/cjs/utils/data.d.ts
CHANGED
|
@@ -24,4 +24,5 @@ export declare function removeEmptyProperties(obj: any, treatStringHasEmtpy?: bo
|
|
|
24
24
|
export declare function getNestedProperty(obj: any, path: string): any;
|
|
25
25
|
export declare function findNestedProperty(obj: any, key: string): any | undefined;
|
|
26
26
|
export declare function deepMergeObject(source: any, target: any): any;
|
|
27
|
+
export declare function copyToClipboard(text: string): void;
|
|
27
28
|
export {};
|
|
@@ -9,7 +9,6 @@ export * from "./chip";
|
|
|
9
9
|
export * from './circularProgress';
|
|
10
10
|
export * from "./codeInput";
|
|
11
11
|
export * from "./contentSectionContainer";
|
|
12
|
-
export * from "./copyToClipboard";
|
|
13
12
|
export * from "./dataTable";
|
|
14
13
|
export * from "./datePicker";
|
|
15
14
|
export * from "./dialog";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./styles.scss";
|
|
3
|
-
export declare function LoadingContainer({ loading, children, variant, width, keepChildren,
|
|
3
|
+
export declare function LoadingContainer({ loading, children, variant, width, className, keepChildren, // Works with contenet not in iframes
|
|
4
|
+
showChildren }: {
|
|
4
5
|
loading?: boolean;
|
|
5
6
|
children?: any;
|
|
6
7
|
variant?: "circular" | "linear";
|
|
7
8
|
width?: number;
|
|
9
|
+
className?: string;
|
|
8
10
|
keepChildren?: boolean;
|
|
9
11
|
showChildren?: boolean;
|
|
10
12
|
}): React.JSX.Element;
|
package/dist/esm/index.js
CHANGED
|
@@ -1511,7 +1511,9 @@ var css_248z$w = ".loadingContainer-component-v2.keepChildren {\n position: rel
|
|
|
1511
1511
|
styleInject(css_248z$w);
|
|
1512
1512
|
|
|
1513
1513
|
function LoadingContainer(_a) {
|
|
1514
|
-
var _b = _a.loading, loading = _b === void 0 ? false : _b, children = _a.children, _c = _a.variant, variant = _c === void 0 ? "circular" : _c, width = _a.width,
|
|
1514
|
+
var _b = _a.loading, loading = _b === void 0 ? false : _b, children = _a.children, _c = _a.variant, variant = _c === void 0 ? "circular" : _c, width = _a.width, _d = _a.className, className = _d === void 0 ? "" : _d, keepChildren = _a.keepChildren, // Works with contenet not in iframes
|
|
1515
|
+
showChildren = _a.showChildren // To use in tendem with keepChildren to show children when loading is true
|
|
1516
|
+
;
|
|
1515
1517
|
var linearStyle = width ? { height: width } : undefined;
|
|
1516
1518
|
var loader = variant === "circular" ? React__default.createElement(CircularProgress, { thickness: width }) : React__default.createElement(LinearProgress, { sx: linearStyle });
|
|
1517
1519
|
return React__default.createElement(React__default.Fragment, null,
|
|
@@ -1520,13 +1522,13 @@ function LoadingContainer(_a) {
|
|
|
1520
1522
|
loading &&
|
|
1521
1523
|
React__default.createElement(React__default.Fragment, null,
|
|
1522
1524
|
children &&
|
|
1523
|
-
React__default.createElement(Container, { className: "loadingContainer-component-v2 ".concat(keepChildren ? "keepChildren" : ""), sx: { display: "flex", alignItems: "center", justifyContent: "center", height: "inherit", width: "100%", flex: 1 } },
|
|
1525
|
+
React__default.createElement(Container, { className: "loadingContainer-component-v2 ".concat(keepChildren ? "keepChildren" : "", " ").concat(className), sx: { display: "flex", alignItems: "center", justifyContent: "center", height: "inherit", width: "100%", flex: 1 } },
|
|
1524
1526
|
keepChildren && React__default.createElement(Box, { className: showChildren ? "showChildren loading" : "hiddenChildren" },
|
|
1525
1527
|
" ",
|
|
1526
1528
|
children),
|
|
1527
1529
|
loader),
|
|
1528
1530
|
!children &&
|
|
1529
|
-
React__default.createElement(Container, { className: "loadingContainer-component-v2", sx: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%" } }, loader)));
|
|
1531
|
+
React__default.createElement(Container, { className: "loadingContainer-component-v2 ".concat(className), sx: { display: "flex", alignItems: "center", justifyContent: "center", width: "100%" } }, loader)));
|
|
1530
1532
|
}
|
|
1531
1533
|
|
|
1532
1534
|
var css_248z$v = ".textfield-component-v2 {\n position: relative;\n}\n.textfield-component-v2.disabled {\n opacity: 0.65;\n pointer-events: none;\n}\n.textfield-component-v2 .MuiSvgIcon-root ~ .MuiFormControl-root .MuiInputBase-input {\n padding-left: 42px;\n}\n.textfield-component-v2 .MuiSvgIcon-root {\n position: absolute;\n left: 1rem;\n top: 1.65rem;\n transform: translateY(-50%);\n z-index: 1;\n}\n\n.locationTextField-component-v2 {\n position: relative;\n}\n.locationTextField-component-v2 .autocomplete-dropdown-container {\n position: absolute;\n width: 100%;\n z-index: 10000;\n}\n\n.phoneTextField-component-v2 .MuiInputAdornment-root .MuiSelect-select {\n padding-right: 1.75rem !important;\n}\n.phoneTextField-component-v2 .MuiInputAdornment-root .MuiSelect-icon {\n display: inline-block;\n right: 0.5rem;\n}\n\n.react-international-phone-flag-emoji {\n width: 1.5rem;\n height: 1.5rem;\n}\n\n.colorTextField-component-v2 {\n position: relative;\n}\n.colorTextField-component-v2 .boxedColor {\n position: absolute;\n width: 20px;\n height: 20px;\n border-radius: 20px;\n left: 1rem;\n top: 1.65rem;\n transform: translateY(-50%);\n z-index: 1;\n}\n.colorTextField-component-v2 .boxedColor .MuiSvgIcon-root {\n width: unset;\n height: unset;\n}\n.colorTextField-component-v2 .boxedColor::after {\n position: absolute;\n width: 6px;\n height: 6px;\n content: \"\";\n background-color: var(--white, #FFFFFF);\n border-radius: 20px;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.colorTextField-component-v2 .boxedColor ~ .textfield-component-v2 .MuiInputBase-input {\n padding-left: 44px;\n}\n.colorTextField-component-v2.bottom .react-colorful {\n top: 3.5rem;\n}\n.colorTextField-component-v2.top .react-colorful {\n bottom: 4rem;\n}\n.colorTextField-component-v2 .react-colorful {\n width: 100%;\n position: absolute;\n}";
|
|
@@ -2681,6 +2683,33 @@ function deepMergeObject(source, target) {
|
|
|
2681
2683
|
}
|
|
2682
2684
|
return target;
|
|
2683
2685
|
}
|
|
2686
|
+
function copyToClipboard(text) {
|
|
2687
|
+
if (navigator.clipboard && navigator.clipboard.writeText) {
|
|
2688
|
+
navigator.clipboard.writeText(text).catch(function (err) {
|
|
2689
|
+
fallbackCopyToClipboard(text);
|
|
2690
|
+
});
|
|
2691
|
+
}
|
|
2692
|
+
else {
|
|
2693
|
+
fallbackCopyToClipboard(text);
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
function fallbackCopyToClipboard(text) {
|
|
2697
|
+
var textarea = document.createElement('textarea');
|
|
2698
|
+
textarea.value = text;
|
|
2699
|
+
textarea.style.position = 'fixed';
|
|
2700
|
+
textarea.style.top = '-1000px';
|
|
2701
|
+
textarea.style.left = '-1000px';
|
|
2702
|
+
textarea.style.opacity = '0';
|
|
2703
|
+
document.body.appendChild(textarea);
|
|
2704
|
+
textarea.select();
|
|
2705
|
+
try {
|
|
2706
|
+
document.execCommand('copy');
|
|
2707
|
+
}
|
|
2708
|
+
catch (err) {
|
|
2709
|
+
console.error('Failed to copy text');
|
|
2710
|
+
}
|
|
2711
|
+
document.body.removeChild(textarea);
|
|
2712
|
+
}
|
|
2684
2713
|
|
|
2685
2714
|
function setBrandHeadElements(brand, locale) {
|
|
2686
2715
|
var link = document.getElementById("favicon");
|
|
@@ -8452,23 +8481,6 @@ function CodeInput(_a) {
|
|
|
8452
8481
|
React__default.createElement(OTPInput, { value: cValue, onChange: handleOnChange, onPaste: handleOnPaste, renderInput: function (props) { return React__default.createElement("input", __assign({}, props)); }, inputType: inputType, numInputs: numInputs, skipDefaultStyles: true, shouldAutoFocus: shouldAutoFocus, placeholder: placeholder, renderSeparator: renderSeparator }));
|
|
8453
8482
|
}
|
|
8454
8483
|
|
|
8455
|
-
var CopyToClipboard = forwardRef(function (props, ref) {
|
|
8456
|
-
var textareaRef = useRef(null);
|
|
8457
|
-
useImperativeHandle(ref, function () { return ({
|
|
8458
|
-
// Expose the 'copy' function through the ref
|
|
8459
|
-
copy: function (text) {
|
|
8460
|
-
setTimeout(function () {
|
|
8461
|
-
if (textareaRef.current) {
|
|
8462
|
-
textareaRef.current.value = text;
|
|
8463
|
-
textareaRef.current.select();
|
|
8464
|
-
document.execCommand('copy');
|
|
8465
|
-
}
|
|
8466
|
-
}, 0);
|
|
8467
|
-
},
|
|
8468
|
-
}); });
|
|
8469
|
-
return (React__default.createElement("textarea", { ref: textareaRef, style: { position: "fixed", top: "-1000px" } }));
|
|
8470
|
-
});
|
|
8471
|
-
|
|
8472
8484
|
function CustomPaginationActions(_a) {
|
|
8473
8485
|
var count = _a.count, page = _a.page, rowsPerPage = _a.rowsPerPage, onPageChange = _a.onPageChange, showFirstButton = _a.showFirstButton, showLastButton = _a.showLastButton;
|
|
8474
8486
|
var handleFirstPageButtonClick = function (event) {
|
|
@@ -18821,4 +18833,4 @@ var UsersFactory = /** @class */ (function () {
|
|
|
18821
18833
|
return UsersFactory;
|
|
18822
18834
|
}());
|
|
18823
18835
|
|
|
18824
|
-
export { AccountModel, AccountsFactory, ActionBarContainer, ActionBarContainerHandler, AssetManager, AutomationModel, AutomationsFactory, Avatar, BillingFactory, BrandWrapper, BrandsFactory, Button, ButtonMenu, CampaignModel, CampaignsFactory, Checkbox, Chip, CircularProgress, CodeInput, ColManager, ColorTextField, CommonFormModel, ContactModel, ContactsFactory, ContentSectionContainer,
|
|
18836
|
+
export { AccountModel, AccountsFactory, ActionBarContainer, ActionBarContainerHandler, AssetManager, AutomationModel, AutomationsFactory, Avatar, BillingFactory, BrandWrapper, BrandsFactory, Button, ButtonMenu, CampaignModel, CampaignsFactory, Checkbox, Chip, CircularProgress, CodeInput, ColManager, ColorTextField, CommonFormModel, ContactModel, ContactsFactory, ContentSectionContainer, CountryDropdown, CustomerModel, DataTable, DataTableHead, DataTableRow, DateCalendar, DatePicker, DateTimeCalendar, DateTimePicker, Dialog, DialogActions, DialogHandler, DialogTitle, Divider, Drawer, DrawerHandler, DropMenu, Dropdown, EApiLanguages, EAssetManagerMatchType, ECampaignStatuses, EEMailSummaryStatuses, EEditorType, EEmailAttachementTypes, EEmailLogType, EEmailLogTypeParam, EEmailProviders, EEmailSummaryEngagement, EEvents, EListAttributeType, EMethods, EOperatorTypes, EPartialInfoPool, EPopupBranding, EPopupBrowserType, EPopupCloseButtonPosition, EPopupDeviceType, EPopupDisplayFrequency, EPopupPosition, EPopupTriggerType, EStorageType, ETaskType, ElementContains, Email, EmailAPIFactory, EmptyContent, EnhancedFormModel, FileUpload, FilterBar, FormModel, FormsFactory, FullBar, GenericWrapper, GenericWrapperContext, GroupedActions, Header, Icon, IconPill, InformationGroup, InlineTextEdit, LinearProgress, Link, ListCampaignModel, ListModel, ListPopupModel, ListTemplateModel, ListsFactory, LoadingContainer, LocationTextField, Logo, MD5, MetricCard, Modal, ModalHandler, ModalHeading, OverlayHandler, PhoneTextField, PopupModel, PopupsFactory, Radio, ResourceEdit, Search, SenderModel, SendersFactory, SideMenu, SideMenuContainer, SideMenuItem, SubNav, SummaryEnhancedFormModel, SupportFactory, SuppressedEmailsFactory, SystemEmailsFactory, SystemEmailsModel, TagsFactory, TasksFactory, TemplateModel, TemplatesFactory, TextField, TimePicker, TimeSelector, Toggle, TopMenu, Typography, UserModel, UsersFactory, acceptListPolicy, addPartialInformation, addSuppressedEmail, addToImpersonificationTree, amIImpersonating, amILoggedInService, archiveCampaign, areAllPropertiesEmpty, buildMUITheme, callApi, camelCase, camelToSnakeCase, cancelCampaign, capitalizeFirstLetter, cleanPostHogId, clearImpersonificationTree, clearStorage, connectToZendeskSupportService, copyToClipboard, createAccount, createBrand, createCampaign, createCampaignLogsExports, createCampaignsReportsExport, createForm, createPopup, createSuppressedEmailExport, createTemplate, deepMergeObject, deleteAnyAutomation, deleteAutomation, deleteCampaign, deleteCampaignsReportsExport, deleteForm, deleteList, deletePartialInformation, deletePopup, deleteStorageItem, deleteSuppressedEmail, deleteTaskService, deleteTemplate, deleteUser, deleteWorkflow, descendingComparator, disableForm, disablePopup, downloadCampaignLogExport, downloadCampaignsReportsExport, downloadContactsExport, downloadListLogExport, downloadSuppressedEmailExport, emptyAccountAddress, emptyAccountLimits, enableForm, enablePopup, enrichBrand, enrichOrganization, enrichProfile, eventCondition, eventIdentify, eventLogout, fetchRetry, fetchRoute, findNestedProperty, formatNumber, getAccount, getAccountReport, getAdjustedBillingCycle, getAutomationExecutionsCount, getAutomationStats, getBeeTokenService, 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, getPopup, getPropertyValue, getSender, getStartOfDate, getStorage, getSuppressedEmailExport, getTColor, getTaskService, getTemplate, getUnixTime, getUrlQueryParam, getUser, getUtmCookies, googlePlacesMapper, hasDecimal, impersonateService, initFieldValidation, initPostHog, isColorLight, isDomainValidService, isSimpleType, isValidEmail, isValidString, isValidUrl, lisTEmailTags, listAccounts, listAutomations, listCampaigns, listCampaignsReportsExports, listContacts, listEmailLogs, listForms, listList, listListAttributes, listListInterests, listPopups, listSenders, listSuppressedEmails, listSystemEmails, listTasksService, listTemplates, listUsers, listWorkflows, logOutService, loginService, miliToSecond, modelSet, modelToJson, originalBrand, patchForm, popImpersonificationTree, postMessage, publishForm, publishPopup, reScheduleCampaign, removeEmptyProperties, removeQueryParams, removeTrailingChar, renderCampaign, renderForm, renderPopup, renderPublicHtmlForm, renderTemplate, requestSupportService, resendVerificationEmail, resumeCampaign, saveList, scheduleCampaign, searchCustomerProfiles, sendCampaignTest, setBrandHeadElements, setStorage, shareTemplate, splitArray, splitObject, stableSort, startPromisePool, suspendCampaign, trackEvent, truncateEmail, truncateText, uiKitConfig, unArchiveCampaign, unScheduleCampaign, unshareTemplate, updateAccount, updateAndClearUrlParams, updateAnyAutomation, updateAutomation, updateCampaign, updatePopup, updateSystemEmails, updateTemplate, updateUser, updateWorkflow, validateColor, validateEmail, validateGenericInput, validateUrl, wait, whiteLabelBrand, whoAmi };
|
package/dist/esm/utils/data.d.ts
CHANGED
|
@@ -24,4 +24,5 @@ export declare function removeEmptyProperties(obj: any, treatStringHasEmtpy?: bo
|
|
|
24
24
|
export declare function getNestedProperty(obj: any, path: string): any;
|
|
25
25
|
export declare function findNestedProperty(obj: any, key: string): any | undefined;
|
|
26
26
|
export declare function deepMergeObject(source: any, target: any): any;
|
|
27
|
+
export declare function copyToClipboard(text: string): void;
|
|
27
28
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cakemail-org/ui-components-v2",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "ui library kit made with material UI",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dev": "rollup -c --bundleConfigAsCjs --watch",
|
|
15
15
|
"test": "jest",
|
|
16
16
|
"storybook": "storybook dev -p 6006",
|
|
17
|
-
"build-storybook": "storybook
|
|
17
|
+
"build-storybook": "storybook buloadingild"
|
|
18
18
|
},
|
|
19
19
|
"author": "",
|
|
20
20
|
"license": "ISC",
|