@bigbinary/neeto-molecules 1.0.78-beta → 1.0.79
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/Container.cjs.js +1 -1
- package/dist/Container.js +1 -1
- package/dist/CustomDomain.cjs.js +19 -28
- package/dist/CustomDomain.cjs.js.map +1 -1
- package/dist/CustomDomain.js +21 -30
- package/dist/CustomDomain.js.map +1 -1
- package/dist/CustomDomainDashboard.cjs.js +45 -40
- package/dist/CustomDomainDashboard.cjs.js.map +1 -1
- package/dist/CustomDomainDashboard.js +48 -43
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/EmailForm.cjs.js +18 -13
- package/dist/EmailForm.cjs.js.map +1 -1
- package/dist/EmailForm.js +18 -13
- package/dist/EmailForm.js.map +1 -1
- package/dist/Header.cjs.js +25 -11
- package/dist/Header.cjs.js.map +1 -1
- package/dist/Header.js +28 -14
- package/dist/Header.js.map +1 -1
- package/dist/MenuBar.cjs.js +1 -1
- package/dist/MenuBar.js +1 -1
- package/dist/ShareViaEmail.cjs.js +1 -0
- package/dist/ShareViaEmail.cjs.js.map +1 -1
- package/dist/ShareViaEmail.js +1 -0
- package/dist/ShareViaEmail.js.map +1 -1
- package/dist/Sidebar.cjs.js +93 -166
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +96 -169
- package/dist/Sidebar.js.map +1 -1
- package/package.json +3 -3
- package/src/translations/en.json +8 -11
- package/types/EmailForm.d.ts +1 -0
- package/types/EmailFormProvider.d.ts +5 -1
- package/types/Sidebar.d.ts +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { forwardRef, useRef, useState } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { noop, snakeToCamelCase, isNotEmpty } from '@bigbinary/neeto-commons-frontend/pure';
|
|
4
4
|
import { useDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
5
5
|
import { Typography, Button, Alert, Dropdown as Dropdown$1, Input, Tag, Callout, Pane, Label, Table, NoData } from '@bigbinary/neetoui';
|
|
6
6
|
import { useTranslation, Trans } from 'react-i18next';
|
|
7
|
-
import { Column, Download, Filter, MenuVertical, Search, MenuHorizontal, Info, Copy, Check } from '@bigbinary/neeto-icons';
|
|
7
|
+
import { Column, Download, Filter, Right, MenuVertical, HamburgerMenu, Search, MenuHorizontal, Info, Copy, Check } from '@bigbinary/neeto-icons';
|
|
8
8
|
import ManageColumns from '@bigbinary/neeto-molecules/Columns';
|
|
9
9
|
import { Filters } from '@bigbinary/neeto-filters-frontend';
|
|
10
|
-
import { withEventTargetValue, joinHyphenCase, copyToClipboard
|
|
10
|
+
import { withEventTargetValue, joinHyphenCase, copyToClipboard } from '@bigbinary/neeto-commons-frontend/utils';
|
|
11
|
+
import { isEmpty } from 'ramda';
|
|
11
12
|
import { Link } from 'react-router-dom';
|
|
12
13
|
import { Formik, Form } from 'formik';
|
|
13
14
|
import { Input as Input$1 } from '@bigbinary/neetoui/formik';
|
|
@@ -1316,7 +1317,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1316
1317
|
|
|
1317
1318
|
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
1318
1319
|
|
|
1319
|
-
var css$3 = ".neeto-molecules-container{align-items:flex-start;display:flex;flex-direction:column;flex-grow:1;height:100vh;justify-content:flex-start;overflow-y:auto;padding:0
|
|
1320
|
+
var css$3 = ".neeto-molecules-container{align-items:flex-start;display:flex;flex-direction:column;flex-grow:1;height:100vh;justify-content:flex-start;overflow-y:auto;padding:0 24px}.neeto-molecules-container--header-fixed{padding:0}.neeto-molecules-container--header-fixed>.neeto-molecules-header,.neeto-molecules-container--header-fixed>.neeto-molecules-scrollable,.neeto-molecules-container--header-fixed>.neeto-molecules-subheader{padding-left:24px;padding-right:24px}";
|
|
1320
1321
|
n(css$3,{});
|
|
1321
1322
|
|
|
1322
1323
|
var Container = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -1633,7 +1634,7 @@ var DeleteAlert = function DeleteAlert(_ref) {
|
|
|
1633
1634
|
});
|
|
1634
1635
|
};
|
|
1635
1636
|
|
|
1636
|
-
var css = ".neeto-molecules-header{align-items:
|
|
1637
|
+
var css = ".neeto-molecules-header{align-items:center;background:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;min-height:var(--neeto-ui-main-header-height);padding:24px 0;width:100%}.neeto-molecules-header--has-breadcrumbs{min-height:var(--neeto-ui-main-header-with-breadcrumbs-height)}.neeto-molecules-header .neeto-molecules-header__toggle-menubar-btn{margin-right:8px}.neeto-molecules-header .neeto-molecules-header__left{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start}.neeto-molecules-header .neeto-molecules-header__left-data-wrap{display:flex;flex-wrap:wrap}.neeto-molecules-header .neeto-molecules-header__page-title{display:flex;flex-direction:row;width:100%}.neeto-molecules-header .neeto-molecules-header__breadcrumbs-wrap{display:flex}.neeto-molecules-header .neeto-molecules-header__breadcrumb{align-items:center;display:flex;flex-direction:row;justify-content:flex-start;line-height:1}.neeto-molecules-header .neeto-molecules-header__breadcrumb a{text-decoration:none;transition:all .3s ease-in-out}.neeto-molecules-header .neeto-molecules-header__breadcrumb a:focus-visible{border-radius:var(--neeto-ui-rounded-sm);outline:3px solid rgba(var(--neeto-ui-primary-500),50%)}.neeto-molecules-header .neeto-molecules-header__breadcrumb-separator{margin:0 4px}.neeto-molecules-header .neeto-molecules-header__right{align-items:center;display:flex;flex-direction:row;justify-content:flex-end}";
|
|
1637
1638
|
n(css,{});
|
|
1638
1639
|
|
|
1639
1640
|
var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
@@ -1649,22 +1650,27 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
|
1649
1650
|
}, /*#__PURE__*/React__default.createElement(Link, {
|
|
1650
1651
|
to: link
|
|
1651
1652
|
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1652
|
-
className: "neeto-
|
|
1653
|
+
className: "neeto-molecules-text-gray-700 hover:neeto-ui-text-gray-800 neeto-molecules-header__breadcrumb-link",
|
|
1653
1654
|
component: "span",
|
|
1654
1655
|
"data-cy": text,
|
|
1655
1656
|
"data-test-id": text,
|
|
1656
1657
|
style: "body2",
|
|
1657
1658
|
weight: "normal"
|
|
1658
|
-
}, text)),
|
|
1659
|
-
className: "neeto-molecules-header__breadcrumb-separator neeto-ui-text-
|
|
1660
|
-
|
|
1659
|
+
}, text)), /*#__PURE__*/React__default.createElement(Right, {
|
|
1660
|
+
className: "neeto-molecules-header__breadcrumb-separator neeto-ui-text-gray-400",
|
|
1661
|
+
size: 16
|
|
1662
|
+
}));
|
|
1661
1663
|
}));
|
|
1662
1664
|
};
|
|
1663
1665
|
var Breadcrumbs$1 = /*#__PURE__*/React__default.memo(Breadcrumbs);
|
|
1664
1666
|
|
|
1665
1667
|
var Dropdown = function Dropdown(props) {
|
|
1666
1668
|
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
1669
|
+
buttonProps: {
|
|
1670
|
+
className: "ml-1.5"
|
|
1671
|
+
},
|
|
1667
1672
|
buttonStyle: "text",
|
|
1673
|
+
className: "ml-3",
|
|
1668
1674
|
icon: MenuVertical,
|
|
1669
1675
|
position: "bottom-end"
|
|
1670
1676
|
}, props));
|
|
@@ -1672,6 +1678,7 @@ var Dropdown = function Dropdown(props) {
|
|
|
1672
1678
|
|
|
1673
1679
|
var Header$2 = function Header(_ref) {
|
|
1674
1680
|
var title = _ref.title,
|
|
1681
|
+
menuBarToggle = _ref.menuBarToggle,
|
|
1675
1682
|
searchProps = _ref.searchProps,
|
|
1676
1683
|
_ref$className = _ref.className,
|
|
1677
1684
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -1684,17 +1691,24 @@ var Header$2 = function Header(_ref) {
|
|
|
1684
1691
|
var _useTranslation = useTranslation(),
|
|
1685
1692
|
t = _useTranslation.t;
|
|
1686
1693
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1687
|
-
className: classnames(["neeto-molecules-header",
|
|
1694
|
+
className: classnames(["neeto-molecules-header", {
|
|
1695
|
+
"neeto-molecules-header--has-breadcrumbs": !isEmpty(breadcrumbs)
|
|
1696
|
+
}, className])
|
|
1688
1697
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1689
1698
|
className: "neeto-molecules-header__left"
|
|
1690
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
1699
|
+
}, menuBarToggle && /*#__PURE__*/React__default.createElement(Button, {
|
|
1700
|
+
"aria-label": "Toggle Menubar",
|
|
1701
|
+
className: "neeto-molecules-header__toggle-menubar-btn",
|
|
1702
|
+
"data-cy": "menubar-toggle-button",
|
|
1703
|
+
icon: HamburgerMenu,
|
|
1704
|
+
style: "text",
|
|
1705
|
+
onClick: menuBarToggle
|
|
1706
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1691
1707
|
className: "neeto-molecules-header__left-data-wrap"
|
|
1692
|
-
},
|
|
1708
|
+
}, breadcrumbs && /*#__PURE__*/React__default.createElement(Breadcrumbs$1, {
|
|
1693
1709
|
breadcrumbs: breadcrumbs
|
|
1694
1710
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1695
|
-
className:
|
|
1696
|
-
"neeto-molecules-header__page-title--has-breadcrumbs": isNotEmpty(breadcrumbs)
|
|
1697
|
-
})
|
|
1711
|
+
className: "neeto-molecules-header__page-title"
|
|
1698
1712
|
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1699
1713
|
"data-cy": "main-header",
|
|
1700
1714
|
"data-test-id": "main-header",
|
|
@@ -1754,10 +1768,8 @@ var INITIAL_VALUES = {
|
|
|
1754
1768
|
|
|
1755
1769
|
var TagBlock = function TagBlock(_ref) {
|
|
1756
1770
|
var status = _ref.status,
|
|
1757
|
-
isCnameRecordsAdded = _ref.isCnameRecordsAdded,
|
|
1758
1771
|
_ref$stacked = _ref.stacked,
|
|
1759
|
-
stacked = _ref$stacked === void 0 ? false : _ref$stacked
|
|
1760
|
-
handleValidateCname = _ref.handleValidateCname;
|
|
1772
|
+
stacked = _ref$stacked === void 0 ? false : _ref$stacked;
|
|
1761
1773
|
var _useTranslation = useTranslation(),
|
|
1762
1774
|
t = _useTranslation.t;
|
|
1763
1775
|
var isDomainValidated = status === "active" || status === "pending_cname_validation";
|
|
@@ -1782,11 +1794,6 @@ var TagBlock = function TagBlock(_ref) {
|
|
|
1782
1794
|
indicatorStyle: status === "active" ? "success" : "warning",
|
|
1783
1795
|
style: "secondary",
|
|
1784
1796
|
label: t("neetoMolecules.customDomain.status.cname.".concat(camelCasedStatus))
|
|
1785
|
-
}), isCnameRecordsAdded && status === "pending_cname_validation" && /*#__PURE__*/React__default.createElement(Button, {
|
|
1786
|
-
className: "text-xs",
|
|
1787
|
-
style: "link",
|
|
1788
|
-
label: t("neetoMolecules.customDomain.validation.buttonLabel.cnameCheck"),
|
|
1789
|
-
onClick: handleValidateCname
|
|
1790
1797
|
}))));
|
|
1791
1798
|
};
|
|
1792
1799
|
var TagBlock$1 = /*#__PURE__*/React__default.memo(TagBlock);
|
|
@@ -1845,8 +1852,11 @@ var recordData = function recordData(customDomain) {
|
|
|
1845
1852
|
var recordName = isDomainValidated ? hostname : cnameValidationParams === null || cnameValidationParams === void 0 ? void 0 : cnameValidationParams.name;
|
|
1846
1853
|
var recordValue = isDomainValidated ? dnsTarget : cnameValidationParams === null || cnameValidationParams === void 0 ? void 0 : cnameValidationParams.value;
|
|
1847
1854
|
var recordType = isDomainValidated ? t$1("neetoMolecules.customDomain.cname") : t$1("neetoMolecules.customDomain.domainValidationCname");
|
|
1848
|
-
var recordDescription = t$1("neetoMolecules.customDomain.validation.desc", {
|
|
1855
|
+
var recordDescription = isDomainValidated ? t$1("neetoMolecules.customDomain.validation.desc", {
|
|
1849
1856
|
record: recordType
|
|
1857
|
+
}) : t$1("neetoMolecules.customDomain.validation.desc", {
|
|
1858
|
+
record: recordType,
|
|
1859
|
+
proxyMessage: t$1("neetoMolecules.customDomain.validation.proxyMessage")
|
|
1850
1860
|
});
|
|
1851
1861
|
var recordNameLabel = t$1("neetoMolecules.customDomain.validation.record", {
|
|
1852
1862
|
record: recordType,
|
|
@@ -1906,28 +1916,25 @@ var Record = function Record(_ref) {
|
|
|
1906
1916
|
};
|
|
1907
1917
|
var Record$1 = /*#__PURE__*/React__default.memo(Record);
|
|
1908
1918
|
|
|
1909
|
-
var
|
|
1910
|
-
var
|
|
1911
|
-
var _useTranslation = useTranslation(),
|
|
1912
|
-
t = _useTranslation.t;
|
|
1919
|
+
var StatusInfo = function StatusInfo() {
|
|
1920
|
+
var helpUrl = "https://help.".concat(globalProps.appName.toLowerCase(), ".com/articles/custom-domains");
|
|
1913
1921
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1914
1922
|
className: "space-y-6"
|
|
1915
1923
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1916
1924
|
className: "neeto-ui-rounded neeto-ui-bg-gray-100 neeto-ui-text-gray-700 space-y-3 p-4"
|
|
1917
1925
|
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
1918
|
-
i18nKey: "neetoMolecules.customDomain.messageBlock.dnsStatus"
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
time: timeFormat.fromNow(time)
|
|
1926
|
+
i18nKey: "neetoMolecules.customDomain.messageBlock.dnsStatus",
|
|
1927
|
+
components: {
|
|
1928
|
+
a: /*#__PURE__*/React__default.createElement("a", {
|
|
1929
|
+
className: "neeto-ui-btn--style-link",
|
|
1930
|
+
href: helpUrl,
|
|
1931
|
+
rel: "noreferrer",
|
|
1932
|
+
target: "_blank"
|
|
1933
|
+
})
|
|
1934
|
+
}
|
|
1928
1935
|
})));
|
|
1929
1936
|
};
|
|
1930
|
-
var StatusInfo = /*#__PURE__*/React__default.memo(
|
|
1937
|
+
var StatusInfo$1 = /*#__PURE__*/React__default.memo(StatusInfo);
|
|
1931
1938
|
|
|
1932
1939
|
var getCustomDomainValidationSchema = function getCustomDomainValidationSchema() {
|
|
1933
1940
|
return Yup.object().shape({
|
|
@@ -2136,14 +2143,12 @@ var Manage = function Manage(_ref) {
|
|
|
2136
2143
|
loading: isValidating,
|
|
2137
2144
|
label: t("neetoMolecules.customDomain.validation.buttonLabel.domain"),
|
|
2138
2145
|
onClick: handleValidateDomain
|
|
2139
|
-
}), customDomain.status === "pending_cname_validation" &&
|
|
2146
|
+
}), customDomain.status === "pending_cname_validation" && /*#__PURE__*/React__default.createElement(Button, {
|
|
2140
2147
|
"data-cy": "validate-cname-record-button",
|
|
2141
2148
|
loading: isCnameValidating || isUpdating,
|
|
2142
2149
|
label: t("neetoMolecules.customDomain.validation.buttonLabel.cnameAdded"),
|
|
2143
2150
|
onClick: handleUpdateCname
|
|
2144
|
-
}),
|
|
2145
|
-
time: customDomain.addedCnameAt
|
|
2146
|
-
})))));
|
|
2151
|
+
}), /*#__PURE__*/React__default.createElement(StatusInfo$1, null)))));
|
|
2147
2152
|
}));
|
|
2148
2153
|
};
|
|
2149
2154
|
|