@bigbinary/neeto-molecules 3.0.3 → 3.1.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/CustomDomain.js +17 -12
- package/dist/CustomDomain.js.map +1 -1
- package/dist/CustomDomainDashboard.js +104 -17
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/ErrorPage.js +46 -42
- package/dist/ErrorPage.js.map +1 -1
- package/dist/cjs/CustomDomain.js +17 -12
- package/dist/cjs/CustomDomain.js.map +1 -1
- package/dist/cjs/CustomDomainDashboard.js +104 -15
- package/dist/cjs/CustomDomainDashboard.js.map +1 -1
- package/dist/cjs/ErrorPage.js +46 -42
- package/dist/cjs/ErrorPage.js.map +1 -1
- package/dist/cjs/index-39618d80.js +628 -0
- package/dist/cjs/index-39618d80.js.map +1 -0
- package/dist/index-34c52dd1.js +582 -0
- package/dist/index-34c52dd1.js.map +1 -0
- package/package.json +1 -1
- package/src/translations/en.json +24 -20
- package/dist/cjs/index-290bd1dd.js +0 -556
- package/dist/cjs/index-290bd1dd.js.map +0 -1
- package/dist/index-49458a38.js +0 -511
- package/dist/index-49458a38.js.map +0 -1
package/dist/index-49458a38.js
DELETED
|
@@ -1,511 +0,0 @@
|
|
|
1
|
-
import React__default, { useRef } from 'react';
|
|
2
|
-
import Alert from '@bigbinary/neetoui/Alert';
|
|
3
|
-
import { useTranslation, Trans } from 'react-i18next';
|
|
4
|
-
import { useFormikContext, useField, Formik, Form } from 'formik';
|
|
5
|
-
import { isNotEmpty, snakeToCamelCase, capitalize } from '@bigbinary/neeto-cist';
|
|
6
|
-
import Label from '@bigbinary/neetoui/Label';
|
|
7
|
-
import Pane from '@bigbinary/neetoui/Pane';
|
|
8
|
-
import Typography from '@bigbinary/neetoui/Typography';
|
|
9
|
-
import Button from '@bigbinary/neetoui/Button';
|
|
10
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
11
|
-
import useHotkeys from '@bigbinary/neeto-hotkeys';
|
|
12
|
-
import Check from '@bigbinary/neeto-icons/Check';
|
|
13
|
-
import Input from '@bigbinary/neetoui/formik/Input';
|
|
14
|
-
import { t } from 'i18next';
|
|
15
|
-
import * as yup from 'yup';
|
|
16
|
-
import { hyphenize, joinHyphenCase } from '@bigbinary/neeto-commons-frontend/utils/general';
|
|
17
|
-
import Input$1 from '@bigbinary/neetoui/Input';
|
|
18
|
-
import Callout from '@bigbinary/neetoui/Callout';
|
|
19
|
-
import CopyToClipboardButton from './CopyToClipboardButton.js';
|
|
20
|
-
import { SINGULAR } from '@bigbinary/neeto-commons-frontend/constants';
|
|
21
|
-
import MoreDropdown from './MoreDropdown.js';
|
|
22
|
-
import classnames from 'classnames';
|
|
23
|
-
import Tag from '@bigbinary/neetoui/Tag';
|
|
24
|
-
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
25
|
-
import { useQuery } from '@tanstack/react-query';
|
|
26
|
-
import useMutationWithInvalidation from '@bigbinary/neeto-commons-frontend/react-utils/useMutationWithInvalidation';
|
|
27
|
-
import axios from 'axios';
|
|
28
|
-
|
|
29
|
-
var DeleteAlert = function DeleteAlert(_ref) {
|
|
30
|
-
var onClose = _ref.onClose,
|
|
31
|
-
onSubmit = _ref.onSubmit,
|
|
32
|
-
isOpen = _ref.isOpen,
|
|
33
|
-
isSubmitting = _ref.isSubmitting,
|
|
34
|
-
hostname = _ref.hostname;
|
|
35
|
-
var _useTranslation = useTranslation(),
|
|
36
|
-
t = _useTranslation.t;
|
|
37
|
-
return /*#__PURE__*/React__default.createElement(Alert, {
|
|
38
|
-
cancelButtonLabel: t("neetoMolecules.common.actions.cancel"),
|
|
39
|
-
isOpen: isOpen,
|
|
40
|
-
isSubmitting: isSubmitting,
|
|
41
|
-
submitButtonLabel: t("neetoMolecules.common.actions.delete"),
|
|
42
|
-
title: t("neetoMolecules.customDomain.delete"),
|
|
43
|
-
message: /*#__PURE__*/React__default.createElement(Trans, {
|
|
44
|
-
i18nKey: "neetoMolecules.customDomain.alertMessage",
|
|
45
|
-
values: {
|
|
46
|
-
hostname: hostname
|
|
47
|
-
}
|
|
48
|
-
}),
|
|
49
|
-
onClose: onClose,
|
|
50
|
-
onSubmit: onSubmit
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
var HOSTNAME_REGEX = /^(https?:\/\/)?([a-zA-Z0-9][a-zA-Z0-9-]*\.)+[a-zA-Z]{2,}(\/\S*)?$/;
|
|
55
|
-
var INITIAL_VALUES = {
|
|
56
|
-
hostname: ""
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
var getCustomDomainValidationSchema = function getCustomDomainValidationSchema() {
|
|
60
|
-
return yup.object().shape({
|
|
61
|
-
hostname: yup.string().required(t("neetoMolecules.customDomain.formikValidation.required")).matches(HOSTNAME_REGEX, t("neetoMolecules.customDomain.formikValidation.valid"))
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
var mergeRefs = function mergeRefs() {
|
|
65
|
-
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
66
|
-
refs[_key] = arguments[_key];
|
|
67
|
-
}
|
|
68
|
-
return function (node) {
|
|
69
|
-
return refs.forEach(function (ref) {
|
|
70
|
-
return typeof ref === "function" ? ref(node) : ref.current = node;
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
var DomainEntryField = function DomainEntryField(_ref) {
|
|
76
|
-
var onSubmit = _ref.onSubmit,
|
|
77
|
-
customDomain = _ref.customDomain,
|
|
78
|
-
initialFocusRef = _ref.initialFocusRef,
|
|
79
|
-
dirty = _ref.dirty,
|
|
80
|
-
isCreating = _ref.isCreating,
|
|
81
|
-
name = _ref.name;
|
|
82
|
-
var _useTranslation = useTranslation(),
|
|
83
|
-
t = _useTranslation.t;
|
|
84
|
-
var _useFormikContext = useFormikContext(),
|
|
85
|
-
values = _useFormikContext.values;
|
|
86
|
-
var _useField = useField(name),
|
|
87
|
-
_useField2 = _slicedToArray(_useField, 3),
|
|
88
|
-
_useField2$ = _useField2[1],
|
|
89
|
-
error = _useField2$.error,
|
|
90
|
-
touched = _useField2$.touched,
|
|
91
|
-
setTouched = _useField2[2].setTouched;
|
|
92
|
-
var handleSubmit = function handleSubmit() {
|
|
93
|
-
if (error) {
|
|
94
|
-
setTouched(true);
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
onSubmit(values);
|
|
98
|
-
};
|
|
99
|
-
var inputRef = useHotkeys("command+enter", handleSubmit, {
|
|
100
|
-
mode: "scoped"
|
|
101
|
-
});
|
|
102
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
103
|
-
className: "flex items-start gap-2"
|
|
104
|
-
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
105
|
-
name: name,
|
|
106
|
-
"data-cy": "custom-domain-input-field",
|
|
107
|
-
disabled: isNotEmpty(customDomain),
|
|
108
|
-
error: touched && error,
|
|
109
|
-
placeholder: t("neetoMolecules.customDomain.placeholder"),
|
|
110
|
-
ref: mergeRefs(inputRef, initialFocusRef)
|
|
111
|
-
}), !isNotEmpty(customDomain) && /*#__PURE__*/React__default.createElement(Button, {
|
|
112
|
-
"data-cy": "submit-custom-domain-button",
|
|
113
|
-
"data-testid": "submit-custom-domain-button",
|
|
114
|
-
disabled: !dirty || isCreating,
|
|
115
|
-
icon: Check,
|
|
116
|
-
loading: isCreating,
|
|
117
|
-
style: "primary",
|
|
118
|
-
type: "submit"
|
|
119
|
-
}));
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
var DOMAIN_QUERY_KEY = "custom-domain";
|
|
123
|
-
var HELP_DOC_URL = "https://help.".concat(globalProps.appName.toLowerCase(), ".com/articles/custom-domains");
|
|
124
|
-
|
|
125
|
-
var TagBlock = function TagBlock(_ref) {
|
|
126
|
-
var status = _ref.status,
|
|
127
|
-
_ref$stacked = _ref.stacked,
|
|
128
|
-
stacked = _ref$stacked === void 0 ? false : _ref$stacked;
|
|
129
|
-
var _useTranslation = useTranslation(),
|
|
130
|
-
t = _useTranslation.t;
|
|
131
|
-
var isDomainValidated = status === "active" || status === "pending_cname_validation";
|
|
132
|
-
var camelCasedStatus = snakeToCamelCase(status || "");
|
|
133
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
134
|
-
className: classnames("flex gap-2", {
|
|
135
|
-
"flex-col items-start": stacked
|
|
136
|
-
})
|
|
137
|
-
}, status === "failed" ? /*#__PURE__*/React__default.createElement(Tag, {
|
|
138
|
-
indicatorStyle: "danger",
|
|
139
|
-
label: t("neetoMolecules.customDomain.status.".concat(camelCasedStatus)),
|
|
140
|
-
style: "secondary"
|
|
141
|
-
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Tag, {
|
|
142
|
-
"data-cy": "".concat(hyphenize(status), "-tag-container"),
|
|
143
|
-
indicatorStyle: isDomainValidated ? "success" : "warning",
|
|
144
|
-
style: "secondary",
|
|
145
|
-
label: t("neetoMolecules.customDomain.status.domain.".concat(camelCasedStatus))
|
|
146
|
-
}), isDomainValidated && /*#__PURE__*/React__default.createElement("div", {
|
|
147
|
-
className: classnames("flex items-center justify-between gap-2", {
|
|
148
|
-
"w-full": stacked
|
|
149
|
-
})
|
|
150
|
-
}, /*#__PURE__*/React__default.createElement(Tag, {
|
|
151
|
-
"data-cy": "".concat(hyphenize(status), "-tag-container"),
|
|
152
|
-
indicatorStyle: status === "active" ? "success" : "warning",
|
|
153
|
-
style: "secondary",
|
|
154
|
-
label: t("neetoMolecules.customDomain.status.cname.".concat(camelCasedStatus))
|
|
155
|
-
}))));
|
|
156
|
-
};
|
|
157
|
-
var TagBlock$1 = /*#__PURE__*/React__default.memo(TagBlock);
|
|
158
|
-
|
|
159
|
-
var renderColumnData = function renderColumnData(enableManagePane, enableDeleteAlert) {
|
|
160
|
-
return [{
|
|
161
|
-
title: t("neetoMolecules.customDomain.customDomain", SINGULAR),
|
|
162
|
-
dataIndex: "hostname",
|
|
163
|
-
key: "hostname",
|
|
164
|
-
width: "60%",
|
|
165
|
-
render: function render(hostName, customDomain) {
|
|
166
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
167
|
-
className: "flex items-center justify-between gap-x-3"
|
|
168
|
-
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
169
|
-
"data-cy": "hostname-button",
|
|
170
|
-
label: hostName,
|
|
171
|
-
style: "link",
|
|
172
|
-
onClick: function onClick() {
|
|
173
|
-
return enableManagePane(customDomain);
|
|
174
|
-
}
|
|
175
|
-
}), /*#__PURE__*/React__default.createElement(MoreDropdown, {
|
|
176
|
-
dropdownButtonProps: {
|
|
177
|
-
"data-testid": "nui-dropdown-icon-".concat(customDomain.id)
|
|
178
|
-
},
|
|
179
|
-
dropdownProps: {
|
|
180
|
-
position: "bottom-end",
|
|
181
|
-
strategy: "fixed",
|
|
182
|
-
autoWidth: true
|
|
183
|
-
},
|
|
184
|
-
menuItems: [{
|
|
185
|
-
label: t("neetoMolecules.common.actions.edit"),
|
|
186
|
-
onClick: function onClick() {
|
|
187
|
-
return enableManagePane(customDomain);
|
|
188
|
-
},
|
|
189
|
-
key: "edit-custom-domain-button"
|
|
190
|
-
}, {
|
|
191
|
-
label: t("neetoMolecules.common.actions.delete"),
|
|
192
|
-
onClick: function onClick() {
|
|
193
|
-
return enableDeleteAlert(customDomain);
|
|
194
|
-
},
|
|
195
|
-
key: "delete-custom-domain"
|
|
196
|
-
}]
|
|
197
|
-
}));
|
|
198
|
-
}
|
|
199
|
-
}, {
|
|
200
|
-
title: t("neetoMolecules.common.status"),
|
|
201
|
-
dataIndex: "status",
|
|
202
|
-
key: "status",
|
|
203
|
-
render: function render(status) {
|
|
204
|
-
return /*#__PURE__*/React__default.createElement(TagBlock$1, {
|
|
205
|
-
status: status
|
|
206
|
-
});
|
|
207
|
-
},
|
|
208
|
-
width: "40%"
|
|
209
|
-
}];
|
|
210
|
-
};
|
|
211
|
-
var recordData = function recordData(customDomain) {
|
|
212
|
-
var status = customDomain.status,
|
|
213
|
-
hostname = customDomain.hostname,
|
|
214
|
-
dnsTarget = customDomain.dnsTarget,
|
|
215
|
-
cnameValidationParams = customDomain.cnameValidationParams;
|
|
216
|
-
var isDomainValidated = status === "active" || status === "pending_cname_validation";
|
|
217
|
-
var recordName = isDomainValidated ? hostname : cnameValidationParams === null || cnameValidationParams === void 0 ? void 0 : cnameValidationParams.name;
|
|
218
|
-
var recordValue = isDomainValidated ? dnsTarget : cnameValidationParams === null || cnameValidationParams === void 0 ? void 0 : cnameValidationParams.value;
|
|
219
|
-
var recordType = isDomainValidated ? t("neetoMolecules.customDomain.cname") : t("neetoMolecules.customDomain.domainValidationCname");
|
|
220
|
-
var recordDescription = isDomainValidated ? t("neetoMolecules.customDomain.validation.desc", {
|
|
221
|
-
record: recordType
|
|
222
|
-
}) : t("neetoMolecules.customDomain.validation.desc", {
|
|
223
|
-
record: recordType,
|
|
224
|
-
proxyMessage: t("neetoMolecules.customDomain.validation.proxyMessage")
|
|
225
|
-
});
|
|
226
|
-
var recordNameLabel = t("neetoMolecules.customDomain.validation.record", {
|
|
227
|
-
record: recordType,
|
|
228
|
-
type: t("neetoMolecules.common.name")
|
|
229
|
-
});
|
|
230
|
-
var recordValueLabel = t("neetoMolecules.customDomain.validation.record", {
|
|
231
|
-
record: recordType,
|
|
232
|
-
type: t("neetoMolecules.common.value")
|
|
233
|
-
});
|
|
234
|
-
return {
|
|
235
|
-
recordName: recordName,
|
|
236
|
-
recordValue: recordValue,
|
|
237
|
-
recordDescription: recordDescription,
|
|
238
|
-
recordNameLabel: recordNameLabel,
|
|
239
|
-
recordValueLabel: recordValueLabel
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
var Record = function Record(_ref) {
|
|
244
|
-
var customDomain = _ref.customDomain;
|
|
245
|
-
var _recordData = recordData(customDomain),
|
|
246
|
-
recordName = _recordData.recordName,
|
|
247
|
-
recordValue = _recordData.recordValue,
|
|
248
|
-
recordDescription = _recordData.recordDescription,
|
|
249
|
-
recordNameLabel = _recordData.recordNameLabel,
|
|
250
|
-
recordValueLabel = _recordData.recordValueLabel;
|
|
251
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
252
|
-
className: "mt-6 grid gap-4"
|
|
253
|
-
}, customDomain.status !== "active" && /*#__PURE__*/React__default.createElement(Callout, {
|
|
254
|
-
style: "info"
|
|
255
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
256
|
-
className: "flex flex-col space-y-2"
|
|
257
|
-
}, /*#__PURE__*/React__default.createElement("p", null, recordDescription), /*#__PURE__*/React__default.createElement(Button, {
|
|
258
|
-
"data-cy": "custom-domain-help-doc-button",
|
|
259
|
-
href: HELP_DOC_URL,
|
|
260
|
-
label: "Read help doc",
|
|
261
|
-
style: "link",
|
|
262
|
-
target: "#"
|
|
263
|
-
}))), /*#__PURE__*/React__default.createElement(Input$1, {
|
|
264
|
-
disabled: true,
|
|
265
|
-
"data-cy": joinHyphenCase(recordNameLabel),
|
|
266
|
-
label: capitalize(recordNameLabel),
|
|
267
|
-
value: recordName,
|
|
268
|
-
suffix: /*#__PURE__*/React__default.createElement(CopyToClipboardButton, {
|
|
269
|
-
size: "small",
|
|
270
|
-
style: "text",
|
|
271
|
-
value: recordName
|
|
272
|
-
})
|
|
273
|
-
}), /*#__PURE__*/React__default.createElement(Input$1, {
|
|
274
|
-
disabled: true,
|
|
275
|
-
"data-cy": joinHyphenCase(recordValueLabel),
|
|
276
|
-
label: capitalize(recordValueLabel),
|
|
277
|
-
value: recordValue,
|
|
278
|
-
suffix: /*#__PURE__*/React__default.createElement(CopyToClipboardButton, {
|
|
279
|
-
size: "small",
|
|
280
|
-
style: "text",
|
|
281
|
-
value: recordValue
|
|
282
|
-
})
|
|
283
|
-
}));
|
|
284
|
-
};
|
|
285
|
-
var Record$1 = /*#__PURE__*/React__default.memo(Record);
|
|
286
|
-
|
|
287
|
-
var StatusInfo = function StatusInfo() {
|
|
288
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
289
|
-
className: "space-y-6"
|
|
290
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
291
|
-
className: "neeto-ui-rounded neeto-ui-bg-gray-100 neeto-ui-text-gray-700 space-y-3 p-4"
|
|
292
|
-
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
293
|
-
i18nKey: "neetoMolecules.customDomain.messageBlock.dnsStatus",
|
|
294
|
-
components: {
|
|
295
|
-
Link: /*#__PURE__*/React__default.createElement("a", {
|
|
296
|
-
className: "neeto-ui-text-primary-800",
|
|
297
|
-
href: HELP_DOC_URL,
|
|
298
|
-
rel: "noreferrer",
|
|
299
|
-
target: "_blank"
|
|
300
|
-
})
|
|
301
|
-
}
|
|
302
|
-
})));
|
|
303
|
-
};
|
|
304
|
-
var StatusInfo$1 = /*#__PURE__*/React__default.memo(StatusInfo);
|
|
305
|
-
|
|
306
|
-
var getUrlwithId = function getUrlwithId(url, id) {
|
|
307
|
-
return id ? "".concat(url, "/").concat(id) : url;
|
|
308
|
-
};
|
|
309
|
-
var fetchCustomDomains = function fetchCustomDomains(_ref) {
|
|
310
|
-
var url = _ref.url,
|
|
311
|
-
params = _ref.params;
|
|
312
|
-
return axios.get(url, {
|
|
313
|
-
params: params
|
|
314
|
-
});
|
|
315
|
-
};
|
|
316
|
-
var updateCustomDomain = function updateCustomDomain(url, id) {
|
|
317
|
-
return axios.patch(getUrlwithId(url, id));
|
|
318
|
-
};
|
|
319
|
-
var createCustomDomain = function createCustomDomain(url, payload) {
|
|
320
|
-
return axios.post(url, payload);
|
|
321
|
-
};
|
|
322
|
-
var deleteCustomDomain = function deleteCustomDomain(url, id) {
|
|
323
|
-
return axios["delete"](getUrlwithId(url, id));
|
|
324
|
-
};
|
|
325
|
-
var validateDomain = function validateDomain(url, id) {
|
|
326
|
-
return axios.patch("".concat(getUrlwithId(url, id), "/validate_domain"));
|
|
327
|
-
};
|
|
328
|
-
var validateCname = function validateCname(url, id) {
|
|
329
|
-
return axios.patch("".concat(getUrlwithId(url, id), "/validate_cname"));
|
|
330
|
-
};
|
|
331
|
-
var customDomainApi = {
|
|
332
|
-
createCustomDomain: createCustomDomain,
|
|
333
|
-
deleteCustomDomain: deleteCustomDomain,
|
|
334
|
-
validateDomain: validateDomain,
|
|
335
|
-
fetchCustomDomains: fetchCustomDomains,
|
|
336
|
-
validateCname: validateCname,
|
|
337
|
-
updateCustomDomain: updateCustomDomain
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
341
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
342
|
-
var useCreateCustomDomain = function useCreateCustomDomain(url) {
|
|
343
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
344
|
-
return useMutationWithInvalidation(function (payload) {
|
|
345
|
-
return customDomainApi.createCustomDomain(url, payload);
|
|
346
|
-
}, _objectSpread({
|
|
347
|
-
keysToInvalidate: [[DOMAIN_QUERY_KEY]]
|
|
348
|
-
}, options));
|
|
349
|
-
};
|
|
350
|
-
var useDeleteCustomDomain = function useDeleteCustomDomain(url) {
|
|
351
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
352
|
-
return useMutationWithInvalidation(function (id) {
|
|
353
|
-
return customDomainApi.deleteCustomDomain(url, id);
|
|
354
|
-
}, _objectSpread({
|
|
355
|
-
keysToInvalidate: [[DOMAIN_QUERY_KEY]]
|
|
356
|
-
}, options));
|
|
357
|
-
};
|
|
358
|
-
var useFetchCustomDomains = function useFetchCustomDomains(params) {
|
|
359
|
-
return useQuery({
|
|
360
|
-
queryKey: [DOMAIN_QUERY_KEY, _objectSpread({}, params)],
|
|
361
|
-
queryFn: function queryFn() {
|
|
362
|
-
return customDomainApi.fetchCustomDomains(params);
|
|
363
|
-
}
|
|
364
|
-
});
|
|
365
|
-
};
|
|
366
|
-
var useValidateDomain = function useValidateDomain(url) {
|
|
367
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
368
|
-
return useMutationWithInvalidation(function (id) {
|
|
369
|
-
return customDomainApi.validateDomain(url, id);
|
|
370
|
-
}, _objectSpread({
|
|
371
|
-
keysToInvalidate: [[DOMAIN_QUERY_KEY]]
|
|
372
|
-
}, options));
|
|
373
|
-
};
|
|
374
|
-
var useValidateCname = function useValidateCname(url) {
|
|
375
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
376
|
-
return useMutationWithInvalidation(function (id) {
|
|
377
|
-
return customDomainApi.validateCname(url, id);
|
|
378
|
-
}, _objectSpread({
|
|
379
|
-
keysToInvalidate: [[DOMAIN_QUERY_KEY]]
|
|
380
|
-
}, options));
|
|
381
|
-
};
|
|
382
|
-
var useUpdateCustomDomain = function useUpdateCustomDomain(url) {
|
|
383
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
384
|
-
return useMutationWithInvalidation(function (id) {
|
|
385
|
-
return customDomainApi.updateCustomDomain(url, id);
|
|
386
|
-
}, _objectSpread({
|
|
387
|
-
keysToInvalidate: [[DOMAIN_QUERY_KEY]]
|
|
388
|
-
}, options));
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
var Manage = function Manage(_ref) {
|
|
392
|
-
var isOpen = _ref.isOpen,
|
|
393
|
-
onClose = _ref.onClose,
|
|
394
|
-
customDomain = _ref.customDomain,
|
|
395
|
-
setCustomDomain = _ref.setCustomDomain,
|
|
396
|
-
url = _ref.url,
|
|
397
|
-
hasOne = _ref.hasOne,
|
|
398
|
-
onCreate = _ref.onCreate;
|
|
399
|
-
var _useTranslation = useTranslation(),
|
|
400
|
-
t = _useTranslation.t;
|
|
401
|
-
var initialFocusRef = useRef(null);
|
|
402
|
-
var customDomainId = hasOne ? null : customDomain === null || customDomain === void 0 ? void 0 : customDomain.id;
|
|
403
|
-
var _useCreateCustomDomai = useCreateCustomDomain(url),
|
|
404
|
-
createCustomDomain = _useCreateCustomDomai.mutate,
|
|
405
|
-
isCreating = _useCreateCustomDomai.isPending;
|
|
406
|
-
var _useValidateDomain = useValidateDomain(url),
|
|
407
|
-
validateDomain = _useValidateDomain.mutate,
|
|
408
|
-
isValidating = _useValidateDomain.isPending;
|
|
409
|
-
var _useValidateCname = useValidateCname(url),
|
|
410
|
-
validateCname = _useValidateCname.mutate,
|
|
411
|
-
isCnameValidating = _useValidateCname.isPending;
|
|
412
|
-
var _useUpdateCustomDomai = useUpdateCustomDomain(url),
|
|
413
|
-
updateCustomDomain = _useUpdateCustomDomai.mutate,
|
|
414
|
-
isUpdating = _useUpdateCustomDomai.isPending;
|
|
415
|
-
var getHostname = function getHostname(url) {
|
|
416
|
-
try {
|
|
417
|
-
var parsedUrl = new URL(url);
|
|
418
|
-
return parsedUrl.hostname;
|
|
419
|
-
} catch (_unused) {
|
|
420
|
-
return url;
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
|
-
var handleSubmit = function handleSubmit(_ref2) {
|
|
424
|
-
var hostname = _ref2.hostname;
|
|
425
|
-
var parsedHostname = getHostname(hostname);
|
|
426
|
-
var payload = {
|
|
427
|
-
hostname: parsedHostname
|
|
428
|
-
};
|
|
429
|
-
createCustomDomain(payload, {
|
|
430
|
-
onSuccess: function onSuccess(values) {
|
|
431
|
-
setCustomDomain(values);
|
|
432
|
-
onCreate === null || onCreate === void 0 ? void 0 : onCreate(values);
|
|
433
|
-
}
|
|
434
|
-
});
|
|
435
|
-
};
|
|
436
|
-
var handleValidateDomain = function handleValidateDomain() {
|
|
437
|
-
return validateDomain(customDomainId, {
|
|
438
|
-
onSuccess: function onSuccess(values) {
|
|
439
|
-
return setCustomDomain(values);
|
|
440
|
-
}
|
|
441
|
-
});
|
|
442
|
-
};
|
|
443
|
-
var handleValidateCname = function handleValidateCname() {
|
|
444
|
-
validateCname(customDomainId, {
|
|
445
|
-
onSuccess: function onSuccess(data) {
|
|
446
|
-
return setCustomDomain(data);
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
};
|
|
450
|
-
var handleUpdateCname = function handleUpdateCname() {
|
|
451
|
-
updateCustomDomain(customDomainId, {
|
|
452
|
-
onSuccess: function onSuccess(data) {
|
|
453
|
-
return setCustomDomain(data);
|
|
454
|
-
}
|
|
455
|
-
});
|
|
456
|
-
};
|
|
457
|
-
return /*#__PURE__*/React__default.createElement(Pane, {
|
|
458
|
-
initialFocusRef: initialFocusRef,
|
|
459
|
-
isOpen: isOpen,
|
|
460
|
-
onClose: onClose
|
|
461
|
-
}, /*#__PURE__*/React__default.createElement(Formik, {
|
|
462
|
-
enableReinitialize: true,
|
|
463
|
-
initialValues: customDomain || INITIAL_VALUES,
|
|
464
|
-
validationSchema: getCustomDomainValidationSchema(),
|
|
465
|
-
onSubmit: handleSubmit
|
|
466
|
-
}, function (_ref3) {
|
|
467
|
-
var dirty = _ref3.dirty;
|
|
468
|
-
return /*#__PURE__*/React__default.createElement(Form, null, /*#__PURE__*/React__default.createElement(Pane.Header, null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
469
|
-
"data-cy": "add-custom-domain-pane-heading",
|
|
470
|
-
style: "h2",
|
|
471
|
-
weight: "semibold"
|
|
472
|
-
}, isNotEmpty(customDomain) ? t("neetoMolecules.customDomain.edit") : t("neetoMolecules.customDomain.addNew"))), /*#__PURE__*/React__default.createElement(Pane.Body, {
|
|
473
|
-
hasFooter: false
|
|
474
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
475
|
-
className: "w-full space-y-6"
|
|
476
|
-
}, isNotEmpty(customDomain) && /*#__PURE__*/React__default.createElement(TagBlock$1, {
|
|
477
|
-
handleValidateCname: handleValidateCname,
|
|
478
|
-
stacked: true,
|
|
479
|
-
isCnameRecordsAdded: customDomain.addedCnameAt,
|
|
480
|
-
status: customDomain.status
|
|
481
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
482
|
-
className: "space-y-2"
|
|
483
|
-
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
484
|
-
required: true,
|
|
485
|
-
htmlFor: "hostname"
|
|
486
|
-
}, t("neetoMolecules.customDomain.label")), /*#__PURE__*/React__default.createElement(DomainEntryField, {
|
|
487
|
-
customDomain: customDomain,
|
|
488
|
-
dirty: dirty,
|
|
489
|
-
initialFocusRef: initialFocusRef,
|
|
490
|
-
isCreating: isCreating,
|
|
491
|
-
name: "hostname",
|
|
492
|
-
onSubmit: handleSubmit
|
|
493
|
-
})), isNotEmpty(customDomain) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Record$1, {
|
|
494
|
-
customDomain: customDomain
|
|
495
|
-
}), customDomain.status === "pending_domain_validation" && /*#__PURE__*/React__default.createElement(Button, {
|
|
496
|
-
"data-cy": "validate-domain-button",
|
|
497
|
-
disabled: isValidating,
|
|
498
|
-
loading: isValidating,
|
|
499
|
-
label: t("neetoMolecules.customDomain.validation.buttonLabel.domain"),
|
|
500
|
-
onClick: handleValidateDomain
|
|
501
|
-
}), customDomain.status === "pending_cname_validation" && /*#__PURE__*/React__default.createElement(Button, {
|
|
502
|
-
"data-cy": "validate-cname-record-button",
|
|
503
|
-
loading: isCnameValidating || isUpdating,
|
|
504
|
-
label: t("neetoMolecules.customDomain.validation.buttonLabel.cnameAdded"),
|
|
505
|
-
onClick: handleUpdateCname
|
|
506
|
-
}), /*#__PURE__*/React__default.createElement(StatusInfo$1, null)))));
|
|
507
|
-
}));
|
|
508
|
-
};
|
|
509
|
-
|
|
510
|
-
export { DeleteAlert as D, Manage as M, useDeleteCustomDomain as a, renderColumnData as r, useFetchCustomDomains as u };
|
|
511
|
-
//# sourceMappingURL=index-49458a38.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-49458a38.js","sources":["../src/components/CustomDomainDashboard/DeleteAlert.jsx","../src/components/CustomDomainDashboard/Manage/constants.js","../src/components/CustomDomainDashboard/Manage/utils.js","../src/components/CustomDomainDashboard/Manage/DomainEntryField.jsx","../src/components/CustomDomainDashboard/constants.js","../src/components/CustomDomainDashboard/Manage/TagBlock.jsx","../src/components/CustomDomainDashboard/utils.jsx","../src/components/CustomDomainDashboard/Manage/Record.jsx","../src/components/CustomDomainDashboard/Manage/StatusInfo.jsx","../src/components/CustomDomainDashboard/api.js","../src/components/CustomDomainDashboard/useCustomDomainApi.js","../src/components/CustomDomainDashboard/Manage/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { Alert } from \"neetoui\";\nimport { useTranslation, Trans } from \"react-i18next\";\n\nconst DeleteAlert = ({ onClose, onSubmit, isOpen, isSubmitting, hostname }) => {\n const { t } = useTranslation();\n\n return (\n <Alert\n cancelButtonLabel={t(\"neetoMolecules.common.actions.cancel\")}\n isOpen={isOpen}\n isSubmitting={isSubmitting}\n submitButtonLabel={t(\"neetoMolecules.common.actions.delete\")}\n title={t(\"neetoMolecules.customDomain.delete\")}\n message={\n <Trans\n i18nKey=\"neetoMolecules.customDomain.alertMessage\"\n values={{ hostname }}\n />\n }\n onClose={onClose}\n onSubmit={onSubmit}\n />\n );\n};\n\nexport default DeleteAlert;\n","export const HOSTNAME_REGEX =\n /^(https?:\\/\\/)?([a-zA-Z0-9][a-zA-Z0-9-]*\\.)+[a-zA-Z]{2,}(\\/\\S*)?$/;\n\nexport const INITIAL_VALUES = { hostname: \"\" };\n","import { t } from \"i18next\";\nimport * as Yup from \"yup\";\n\nimport { HOSTNAME_REGEX } from \"./constants\";\n\nexport const getCustomDomainValidationSchema = () =>\n Yup.object().shape({\n hostname: Yup.string()\n .required(t(\"neetoMolecules.customDomain.formikValidation.required\"))\n .matches(\n HOSTNAME_REGEX,\n t(\"neetoMolecules.customDomain.formikValidation.valid\")\n ),\n });\n\nexport const mergeRefs =\n (...refs) =>\n node =>\n refs.forEach(ref =>\n typeof ref === \"function\" ? ref(node) : (ref.current = node)\n );\n","import React from \"react\";\n\nimport { useFormikContext, useField } from \"formik\";\nimport { isNotEmpty } from \"neetocist\";\nimport useHotKeys from \"neetohotkeys\";\nimport { Check } from \"neetoicons\";\nimport { Button } from \"neetoui\";\nimport { Input } from \"neetoui/formik\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { mergeRefs } from \"./utils\";\n\nconst DomainEntryField = ({\n onSubmit,\n customDomain,\n initialFocusRef,\n dirty,\n isCreating,\n name,\n}) => {\n const { t } = useTranslation();\n\n const { values } = useFormikContext();\n const [, { error, touched }, { setTouched }] = useField(name);\n\n const handleSubmit = () => {\n if (error) {\n setTouched(true);\n\n return;\n }\n\n onSubmit(values);\n };\n\n const inputRef = useHotKeys(\"command+enter\", handleSubmit, {\n mode: \"scoped\",\n });\n\n return (\n <div className=\"flex items-start gap-2\">\n <Input\n {...{ name }}\n data-cy=\"custom-domain-input-field\"\n disabled={isNotEmpty(customDomain)}\n error={touched && error}\n placeholder={t(\"neetoMolecules.customDomain.placeholder\")}\n ref={mergeRefs(inputRef, initialFocusRef)}\n />\n {!isNotEmpty(customDomain) && (\n <Button\n data-cy=\"submit-custom-domain-button\"\n data-testid=\"submit-custom-domain-button\"\n disabled={!dirty || isCreating}\n icon={Check}\n loading={isCreating}\n style=\"primary\"\n type=\"submit\"\n />\n )}\n </div>\n );\n};\n\nexport default DomainEntryField;\n","export const DOMAIN_QUERY_KEY = \"custom-domain\";\nexport const HELP_DOC_URL = `https://help.${globalProps.appName.toLowerCase()}.com/articles/custom-domains`;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport { snakeToCamelCase } from \"neetocist\";\nimport { hyphenize } from \"neetocommons/utils/general\";\nimport { Tag } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nconst TagBlock = ({ status, stacked = false }) => {\n const { t } = useTranslation();\n const isDomainValidated =\n status === \"active\" || status === \"pending_cname_validation\";\n const camelCasedStatus = snakeToCamelCase(status || \"\");\n\n return (\n <div\n className={classnames(\"flex gap-2\", {\n \"flex-col items-start\": stacked,\n })}\n >\n {status === \"failed\" ? (\n <Tag\n indicatorStyle=\"danger\"\n label={t(`neetoMolecules.customDomain.status.${camelCasedStatus}`)}\n style=\"secondary\"\n />\n ) : (\n <>\n <Tag\n data-cy={`${hyphenize(status)}-tag-container`}\n indicatorStyle={isDomainValidated ? \"success\" : \"warning\"}\n style=\"secondary\"\n label={t(\n `neetoMolecules.customDomain.status.domain.${camelCasedStatus}`\n )}\n />\n {isDomainValidated && (\n <div\n className={classnames(\"flex items-center justify-between gap-2\", {\n \"w-full\": stacked,\n })}\n >\n <Tag\n data-cy={`${hyphenize(status)}-tag-container`}\n indicatorStyle={status === \"active\" ? \"success\" : \"warning\"}\n style=\"secondary\"\n label={t(\n `neetoMolecules.customDomain.status.cname.${camelCasedStatus}`\n )}\n />\n </div>\n )}\n </>\n )}\n </div>\n );\n};\n\nexport default React.memo(TagBlock);\n","import React from \"react\";\n\nimport { t } from \"i18next\";\nimport { SINGULAR } from \"neetocommons/constants\";\nimport { Button } from \"neetoui\";\n\nimport MoreDropdown from \"components/MoreDropdown\";\n\nimport TagBlock from \"./Manage/TagBlock\";\n\nexport const renderColumnData = (enableManagePane, enableDeleteAlert) => [\n {\n title: t(\"neetoMolecules.customDomain.customDomain\", SINGULAR),\n dataIndex: \"hostname\",\n key: \"hostname\",\n width: \"60%\",\n render: (hostName, customDomain) => (\n <div className=\"flex items-center justify-between gap-x-3\">\n <Button\n data-cy=\"hostname-button\"\n label={hostName}\n style=\"link\"\n onClick={() => enableManagePane(customDomain)}\n />\n <MoreDropdown\n dropdownButtonProps={{\n \"data-testid\": `nui-dropdown-icon-${customDomain.id}`,\n }}\n dropdownProps={{\n position: \"bottom-end\",\n strategy: \"fixed\",\n autoWidth: true,\n }}\n menuItems={[\n {\n label: t(\"neetoMolecules.common.actions.edit\"),\n onClick: () => enableManagePane(customDomain),\n key: \"edit-custom-domain-button\",\n },\n {\n label: t(\"neetoMolecules.common.actions.delete\"),\n onClick: () => enableDeleteAlert(customDomain),\n key: \"delete-custom-domain\",\n },\n ]}\n />\n </div>\n ),\n },\n {\n title: t(\"neetoMolecules.common.status\"),\n dataIndex: \"status\",\n key: \"status\",\n render: status => <TagBlock {...{ status }} />,\n width: \"40%\",\n },\n];\n\nexport const recordData = customDomain => {\n const { status, hostname, dnsTarget, cnameValidationParams } = customDomain;\n\n const isDomainValidated =\n status === \"active\" || status === \"pending_cname_validation\";\n\n const recordName = isDomainValidated ? hostname : cnameValidationParams?.name;\n\n const recordValue = isDomainValidated\n ? dnsTarget\n : cnameValidationParams?.value;\n\n const recordType = isDomainValidated\n ? t(\"neetoMolecules.customDomain.cname\")\n : t(\"neetoMolecules.customDomain.domainValidationCname\");\n\n const recordDescription = isDomainValidated\n ? t(\"neetoMolecules.customDomain.validation.desc\", {\n record: recordType,\n })\n : t(\"neetoMolecules.customDomain.validation.desc\", {\n record: recordType,\n proxyMessage: t(\"neetoMolecules.customDomain.validation.proxyMessage\"),\n });\n\n const recordNameLabel = t(\"neetoMolecules.customDomain.validation.record\", {\n record: recordType,\n type: t(\"neetoMolecules.common.name\"),\n });\n\n const recordValueLabel = t(\"neetoMolecules.customDomain.validation.record\", {\n record: recordType,\n type: t(\"neetoMolecules.common.value\"),\n });\n\n return {\n recordName,\n recordValue,\n recordDescription,\n recordNameLabel,\n recordValueLabel,\n };\n};\n","import React from \"react\";\n\nimport { capitalize } from \"neetocist\";\nimport { joinHyphenCase } from \"neetocommons/utils/general\";\nimport { Input, Callout, Button } from \"neetoui\";\n\nimport CopyToClipboardButton from \"components/CopyToClipboardButton\";\n\nimport { HELP_DOC_URL } from \"../constants\";\nimport { recordData } from \"../utils\";\n\nconst Record = ({ customDomain }) => {\n const {\n recordName,\n recordValue,\n recordDescription,\n recordNameLabel,\n recordValueLabel,\n } = recordData(customDomain);\n\n return (\n <div className=\"mt-6 grid gap-4\">\n {customDomain.status !== \"active\" && (\n <Callout style=\"info\">\n <div className=\"flex flex-col space-y-2\">\n <p>{recordDescription}</p>\n <Button\n data-cy=\"custom-domain-help-doc-button\"\n href={HELP_DOC_URL}\n label=\"Read help doc\"\n style=\"link\"\n target=\"#\"\n />\n </div>\n </Callout>\n )}\n <Input\n disabled\n data-cy={joinHyphenCase(recordNameLabel)}\n label={capitalize(recordNameLabel)}\n value={recordName}\n suffix={\n <CopyToClipboardButton size=\"small\" style=\"text\" value={recordName} />\n }\n />\n <Input\n disabled\n data-cy={joinHyphenCase(recordValueLabel)}\n label={capitalize(recordValueLabel)}\n value={recordValue}\n suffix={\n <CopyToClipboardButton\n size=\"small\"\n style=\"text\"\n value={recordValue}\n />\n }\n />\n </div>\n );\n};\n\nexport default React.memo(Record);\n","import React from \"react\";\n\nimport { Trans } from \"react-i18next\";\n\nimport { HELP_DOC_URL } from \"../constants\";\n\nconst StatusInfo = () => (\n <div className=\"space-y-6\">\n <div className=\"neeto-ui-rounded neeto-ui-bg-gray-100 neeto-ui-text-gray-700 space-y-3 p-4\">\n <Trans\n i18nKey=\"neetoMolecules.customDomain.messageBlock.dnsStatus\"\n components={{\n Link: (\n <a\n className=\"neeto-ui-text-primary-800\"\n href={HELP_DOC_URL}\n rel=\"noreferrer\"\n target=\"_blank\"\n />\n ),\n }}\n />\n </div>\n </div>\n);\n\nexport default React.memo(StatusInfo);\n","import axios from \"axios\";\n\nconst getUrlwithId = (url, id) => (id ? `${url}/${id}` : url);\n\nconst fetchCustomDomains = ({ url, params }) => axios.get(url, { params });\n\nconst updateCustomDomain = (url, id) => axios.patch(getUrlwithId(url, id));\n\nconst createCustomDomain = (url, payload) => axios.post(url, payload);\nconst deleteCustomDomain = (url, id) => axios.delete(getUrlwithId(url, id));\n\nconst validateDomain = (url, id) =>\n axios.patch(`${getUrlwithId(url, id)}/validate_domain`);\n\nconst validateCname = (url, id) =>\n axios.patch(`${getUrlwithId(url, id)}/validate_cname`);\n\nconst customDomainApi = {\n createCustomDomain,\n deleteCustomDomain,\n validateDomain,\n fetchCustomDomains,\n validateCname,\n updateCustomDomain,\n};\n\nexport default customDomainApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport useMutationWithInvalidation from \"neetocommons/react-utils/useMutationWithInvalidation\";\n\nimport customDomainApi from \"./api\";\nimport { DOMAIN_QUERY_KEY } from \"./constants\";\n\nconst useCreateCustomDomain = (url, options = {}) =>\n useMutationWithInvalidation(\n payload => customDomainApi.createCustomDomain(url, payload),\n { keysToInvalidate: [[DOMAIN_QUERY_KEY]], ...options }\n );\n\nconst useDeleteCustomDomain = (url, options = {}) =>\n useMutationWithInvalidation(\n id => customDomainApi.deleteCustomDomain(url, id),\n { keysToInvalidate: [[DOMAIN_QUERY_KEY]], ...options }\n );\n\nconst useFetchCustomDomains = params =>\n useQuery({\n queryKey: [DOMAIN_QUERY_KEY, { ...params }],\n queryFn: () => customDomainApi.fetchCustomDomains(params),\n });\n\nconst useValidateDomain = (url, options = {}) =>\n useMutationWithInvalidation(id => customDomainApi.validateDomain(url, id), {\n keysToInvalidate: [[DOMAIN_QUERY_KEY]],\n ...options,\n });\n\nconst useValidateCname = (url, options = {}) =>\n useMutationWithInvalidation(id => customDomainApi.validateCname(url, id), {\n keysToInvalidate: [[DOMAIN_QUERY_KEY]],\n ...options,\n });\n\nconst useUpdateCustomDomain = (url, options = {}) =>\n useMutationWithInvalidation(\n id => customDomainApi.updateCustomDomain(url, id),\n { keysToInvalidate: [[DOMAIN_QUERY_KEY]], ...options }\n );\n\nexport {\n useCreateCustomDomain,\n useDeleteCustomDomain,\n useValidateDomain,\n useFetchCustomDomains,\n useValidateCname,\n useUpdateCustomDomain,\n};\n","import React, { useRef } from \"react\";\n\nimport { Form, Formik } from \"formik\";\nimport { isNotEmpty } from \"neetocist\";\nimport { Label, Pane, Typography, Button } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { INITIAL_VALUES } from \"./constants\";\nimport DomainEntryField from \"./DomainEntryField\";\nimport Record from \"./Record\";\nimport StatusInfo from \"./StatusInfo\";\nimport TagBlock from \"./TagBlock\";\nimport { getCustomDomainValidationSchema } from \"./utils\";\n\nimport {\n useCreateCustomDomain,\n useValidateDomain,\n useValidateCname,\n useUpdateCustomDomain,\n} from \"../useCustomDomainApi\";\n\nconst Manage = ({\n isOpen,\n onClose,\n customDomain,\n setCustomDomain,\n url,\n hasOne,\n onCreate,\n}) => {\n const { t } = useTranslation();\n const initialFocusRef = useRef(null);\n\n const customDomainId = hasOne ? null : customDomain?.id;\n\n const { mutate: createCustomDomain, isPending: isCreating } =\n useCreateCustomDomain(url);\n\n const { mutate: validateDomain, isPending: isValidating } =\n useValidateDomain(url);\n\n const { mutate: validateCname, isPending: isCnameValidating } =\n useValidateCname(url);\n\n const { mutate: updateCustomDomain, isPending: isUpdating } =\n useUpdateCustomDomain(url);\n\n const getHostname = url => {\n try {\n const parsedUrl = new URL(url);\n\n return parsedUrl.hostname;\n } catch {\n return url;\n }\n };\n\n const handleSubmit = ({ hostname }) => {\n const parsedHostname = getHostname(hostname);\n const payload = { hostname: parsedHostname };\n\n createCustomDomain(payload, {\n onSuccess: values => {\n setCustomDomain(values);\n onCreate?.(values);\n },\n });\n };\n\n const handleValidateDomain = () =>\n validateDomain(customDomainId, {\n onSuccess: values => setCustomDomain(values),\n });\n\n const handleValidateCname = () => {\n validateCname(customDomainId, {\n onSuccess: data => setCustomDomain(data),\n });\n };\n\n const handleUpdateCname = () => {\n updateCustomDomain(customDomainId, {\n onSuccess: data => setCustomDomain(data),\n });\n };\n\n return (\n <Pane {...{ initialFocusRef, isOpen, onClose }}>\n <Formik\n enableReinitialize\n initialValues={customDomain || INITIAL_VALUES}\n validationSchema={getCustomDomainValidationSchema()}\n onSubmit={handleSubmit}\n >\n {({ dirty }) => (\n <Form>\n <Pane.Header>\n <Typography\n data-cy=\"add-custom-domain-pane-heading\"\n style=\"h2\"\n weight=\"semibold\"\n >\n {isNotEmpty(customDomain)\n ? t(\"neetoMolecules.customDomain.edit\")\n : t(\"neetoMolecules.customDomain.addNew\")}\n </Typography>\n </Pane.Header>\n <Pane.Body hasFooter={false}>\n <div className=\"w-full space-y-6\">\n {isNotEmpty(customDomain) && (\n <TagBlock\n {...{ handleValidateCname }}\n stacked\n isCnameRecordsAdded={customDomain.addedCnameAt}\n status={customDomain.status}\n />\n )}\n <div className=\"space-y-2\">\n <Label required htmlFor=\"hostname\">\n {t(\"neetoMolecules.customDomain.label\")}\n </Label>\n <DomainEntryField\n {...{\n customDomain,\n dirty,\n initialFocusRef,\n isCreating,\n }}\n name=\"hostname\"\n onSubmit={handleSubmit}\n />\n </div>\n {isNotEmpty(customDomain) && (\n <>\n <Record {...{ customDomain }} />\n {customDomain.status === \"pending_domain_validation\" && (\n <Button\n data-cy=\"validate-domain-button\"\n disabled={isValidating}\n loading={isValidating}\n label={t(\n \"neetoMolecules.customDomain.validation.buttonLabel.domain\"\n )}\n onClick={handleValidateDomain}\n />\n )}\n {customDomain.status === \"pending_cname_validation\" && (\n <Button\n data-cy=\"validate-cname-record-button\"\n loading={isCnameValidating || isUpdating}\n label={t(\n \"neetoMolecules.customDomain.validation.buttonLabel.cnameAdded\"\n )}\n onClick={handleUpdateCname}\n />\n )}\n <StatusInfo />\n </>\n )}\n </div>\n </Pane.Body>\n </Form>\n )}\n </Formik>\n </Pane>\n );\n};\n\nexport default Manage;\n"],"names":["DeleteAlert","_ref","onClose","onSubmit","isOpen","isSubmitting","hostname","_useTranslation","useTranslation","t","React","createElement","Alert","cancelButtonLabel","submitButtonLabel","title","message","Trans","i18nKey","values","HOSTNAME_REGEX","INITIAL_VALUES","getCustomDomainValidationSchema","Yup","object","shape","string","required","matches","mergeRefs","_len","arguments","length","refs","Array","_key","node","forEach","ref","current","DomainEntryField","customDomain","initialFocusRef","dirty","isCreating","name","_useFormikContext","useFormikContext","_useField","useField","_useField2","_slicedToArray","_useField2$","error","touched","setTouched","handleSubmit","inputRef","useHotKeys","mode","className","Input","disabled","isNotEmpty","placeholder","Button","icon","Check","loading","style","type","DOMAIN_QUERY_KEY","HELP_DOC_URL","concat","globalProps","appName","toLowerCase","TagBlock","status","_ref$stacked","stacked","isDomainValidated","camelCasedStatus","snakeToCamelCase","classnames","Tag","indicatorStyle","label","Fragment","hyphenize","memo","renderColumnData","enableManagePane","enableDeleteAlert","SINGULAR","dataIndex","key","width","render","hostName","onClick","MoreDropdown","dropdownButtonProps","id","dropdownProps","position","strategy","autoWidth","menuItems","recordData","dnsTarget","cnameValidationParams","recordName","recordValue","value","recordType","recordDescription","record","proxyMessage","recordNameLabel","recordValueLabel","Record","_recordData","Callout","href","target","joinHyphenCase","capitalize","suffix","CopyToClipboardButton","size","StatusInfo","components","Link","rel","getUrlwithId","url","fetchCustomDomains","params","axios","get","updateCustomDomain","patch","createCustomDomain","payload","post","deleteCustomDomain","validateDomain","validateCname","customDomainApi","useCreateCustomDomain","options","undefined","useMutationWithInvalidation","_objectSpread","keysToInvalidate","useDeleteCustomDomain","useFetchCustomDomains","useQuery","queryKey","queryFn","useValidateDomain","useValidateCname","useUpdateCustomDomain","Manage","setCustomDomain","hasOne","onCreate","useRef","customDomainId","_useCreateCustomDomai","mutate","isPending","_useValidateDomain","isValidating","_useValidateCname","isCnameValidating","_useUpdateCustomDomai","isUpdating","getHostname","parsedUrl","URL","_unused","_ref2","parsedHostname","onSuccess","handleValidateDomain","handleValidateCname","data","handleUpdateCname","Pane","Formik","enableReinitialize","initialValues","validationSchema","_ref3","Form","Header","Typography","weight","Body","hasFooter","isCnameRecordsAdded","addedCnameAt","Label","htmlFor"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAMA,WAAW,GAAG,SAAdA,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