@bigbinary/neeto-molecules 1.0.78 → 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/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 +19 -28
- package/dist/CustomDomainDashboard.cjs.js.map +1 -1
- package/dist/CustomDomainDashboard.js +20 -29
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +6 -5
|
@@ -7,7 +7,7 @@ import { useTranslation, Trans } from 'react-i18next';
|
|
|
7
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
11
|
import { isEmpty } from 'ramda';
|
|
12
12
|
import { Link } from 'react-router-dom';
|
|
13
13
|
import { Formik, Form } from 'formik';
|
|
@@ -1768,10 +1768,8 @@ var INITIAL_VALUES = {
|
|
|
1768
1768
|
|
|
1769
1769
|
var TagBlock = function TagBlock(_ref) {
|
|
1770
1770
|
var status = _ref.status,
|
|
1771
|
-
isCnameRecordsAdded = _ref.isCnameRecordsAdded,
|
|
1772
1771
|
_ref$stacked = _ref.stacked,
|
|
1773
|
-
stacked = _ref$stacked === void 0 ? false : _ref$stacked
|
|
1774
|
-
handleValidateCname = _ref.handleValidateCname;
|
|
1772
|
+
stacked = _ref$stacked === void 0 ? false : _ref$stacked;
|
|
1775
1773
|
var _useTranslation = useTranslation(),
|
|
1776
1774
|
t = _useTranslation.t;
|
|
1777
1775
|
var isDomainValidated = status === "active" || status === "pending_cname_validation";
|
|
@@ -1796,11 +1794,6 @@ var TagBlock = function TagBlock(_ref) {
|
|
|
1796
1794
|
indicatorStyle: status === "active" ? "success" : "warning",
|
|
1797
1795
|
style: "secondary",
|
|
1798
1796
|
label: t("neetoMolecules.customDomain.status.cname.".concat(camelCasedStatus))
|
|
1799
|
-
}), isCnameRecordsAdded && status === "pending_cname_validation" && /*#__PURE__*/React__default.createElement(Button, {
|
|
1800
|
-
className: "text-xs",
|
|
1801
|
-
style: "link",
|
|
1802
|
-
label: t("neetoMolecules.customDomain.validation.buttonLabel.cnameCheck"),
|
|
1803
|
-
onClick: handleValidateCname
|
|
1804
1797
|
}))));
|
|
1805
1798
|
};
|
|
1806
1799
|
var TagBlock$1 = /*#__PURE__*/React__default.memo(TagBlock);
|
|
@@ -1859,8 +1852,11 @@ var recordData = function recordData(customDomain) {
|
|
|
1859
1852
|
var recordName = isDomainValidated ? hostname : cnameValidationParams === null || cnameValidationParams === void 0 ? void 0 : cnameValidationParams.name;
|
|
1860
1853
|
var recordValue = isDomainValidated ? dnsTarget : cnameValidationParams === null || cnameValidationParams === void 0 ? void 0 : cnameValidationParams.value;
|
|
1861
1854
|
var recordType = isDomainValidated ? t$1("neetoMolecules.customDomain.cname") : t$1("neetoMolecules.customDomain.domainValidationCname");
|
|
1862
|
-
var recordDescription = t$1("neetoMolecules.customDomain.validation.desc", {
|
|
1855
|
+
var recordDescription = isDomainValidated ? t$1("neetoMolecules.customDomain.validation.desc", {
|
|
1863
1856
|
record: recordType
|
|
1857
|
+
}) : t$1("neetoMolecules.customDomain.validation.desc", {
|
|
1858
|
+
record: recordType,
|
|
1859
|
+
proxyMessage: t$1("neetoMolecules.customDomain.validation.proxyMessage")
|
|
1864
1860
|
});
|
|
1865
1861
|
var recordNameLabel = t$1("neetoMolecules.customDomain.validation.record", {
|
|
1866
1862
|
record: recordType,
|
|
@@ -1920,28 +1916,25 @@ var Record = function Record(_ref) {
|
|
|
1920
1916
|
};
|
|
1921
1917
|
var Record$1 = /*#__PURE__*/React__default.memo(Record);
|
|
1922
1918
|
|
|
1923
|
-
var
|
|
1924
|
-
var
|
|
1925
|
-
var _useTranslation = useTranslation(),
|
|
1926
|
-
t = _useTranslation.t;
|
|
1919
|
+
var StatusInfo = function StatusInfo() {
|
|
1920
|
+
var helpUrl = "https://help.".concat(globalProps.appName.toLowerCase(), ".com/articles/custom-domains");
|
|
1927
1921
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
1928
1922
|
className: "space-y-6"
|
|
1929
1923
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1930
1924
|
className: "neeto-ui-rounded neeto-ui-bg-gray-100 neeto-ui-text-gray-700 space-y-3 p-4"
|
|
1931
1925
|
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
1932
|
-
i18nKey: "neetoMolecules.customDomain.messageBlock.dnsStatus"
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
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
|
+
}
|
|
1942
1935
|
})));
|
|
1943
1936
|
};
|
|
1944
|
-
var StatusInfo = /*#__PURE__*/React__default.memo(
|
|
1937
|
+
var StatusInfo$1 = /*#__PURE__*/React__default.memo(StatusInfo);
|
|
1945
1938
|
|
|
1946
1939
|
var getCustomDomainValidationSchema = function getCustomDomainValidationSchema() {
|
|
1947
1940
|
return Yup.object().shape({
|
|
@@ -2150,14 +2143,12 @@ var Manage = function Manage(_ref) {
|
|
|
2150
2143
|
loading: isValidating,
|
|
2151
2144
|
label: t("neetoMolecules.customDomain.validation.buttonLabel.domain"),
|
|
2152
2145
|
onClick: handleValidateDomain
|
|
2153
|
-
}), customDomain.status === "pending_cname_validation" &&
|
|
2146
|
+
}), customDomain.status === "pending_cname_validation" && /*#__PURE__*/React__default.createElement(Button, {
|
|
2154
2147
|
"data-cy": "validate-cname-record-button",
|
|
2155
2148
|
loading: isCnameValidating || isUpdating,
|
|
2156
2149
|
label: t("neetoMolecules.customDomain.validation.buttonLabel.cnameAdded"),
|
|
2157
2150
|
onClick: handleUpdateCname
|
|
2158
|
-
}),
|
|
2159
|
-
time: customDomain.addedCnameAt
|
|
2160
|
-
})))));
|
|
2151
|
+
}), /*#__PURE__*/React__default.createElement(StatusInfo$1, null)))));
|
|
2161
2152
|
}));
|
|
2162
2153
|
};
|
|
2163
2154
|
|