@bigbinary/neeto-custom-domains-frontend 3.1.6 → 3.1.8

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.
@@ -3,7 +3,7 @@ import { createElement, useState, useEffect, memo } from 'react';
3
3
  import { isPresent, truncate, isNotEmpty, noop } from '@bigbinary/neeto-cist';
4
4
  import { withT, useQueryParams } from '@bigbinary/neeto-commons-frontend/react-utils';
5
5
  import Container from '@bigbinary/neeto-molecules/Container';
6
- import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
6
+ import Spinner from '@bigbinary/neetoui/Spinner';
7
7
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
8
8
  import { useQuery, useQueryClient } from '@tanstack/react-query';
9
9
  import useMutationWithInvalidation from '@bigbinary/neeto-commons-frontend/react-utils/useMutationWithInvalidation';
@@ -23,13 +23,12 @@ import NoData from '@bigbinary/neetoui/NoData';
23
23
  import Tooltip from '@bigbinary/neetoui/Tooltip';
24
24
  import Pane from '@bigbinary/neetoui/Pane';
25
25
  import Stepper from '@bigbinary/neetoui/Stepper';
26
- import Spinner from '@bigbinary/neetoui/Spinner';
27
26
  import Callout from '@bigbinary/neetoui/Callout';
28
27
  import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
29
28
  import Input from '@bigbinary/neetoui/formik/Input';
30
29
  import Form from '@bigbinary/neetoui/formik/Form';
31
30
  import Radio from '@bigbinary/neetoui/formik/Radio';
32
- import { t } from 'i18next';
31
+ import { t as t$1 } from 'i18next';
33
32
  import psl from 'psl';
34
33
  import { isNil } from 'ramda';
35
34
  import * as Yup from 'yup';
@@ -289,7 +288,7 @@ var isRootLevelDomain = function isRootLevelDomain(hostname) {
289
288
  };
290
289
  var getCustomDomainValidationSchema = function getCustomDomainValidationSchema() {
291
290
  return Yup.object().shape({
292
- hostname: Yup.string().required(t("neetoCustomDomains.formikValidation.required")).matches(HOSTNAME_REGEX, t("neetoCustomDomains.formikValidation.valid"))
291
+ hostname: Yup.string().required(t$1("neetoCustomDomains.formikValidation.required")).matches(HOSTNAME_REGEX, t$1("neetoCustomDomains.formikValidation.valid"))
293
292
  });
294
293
  };
295
294
  var strategyValidationSchema = Yup.object().shape({
@@ -299,9 +298,9 @@ var strategyOptions = [{
299
298
  value: "rootToWww",
300
299
  label: "neetoCustomDomains.validation.strategy.rootToWww",
301
300
  additionalLabelContent: /*#__PURE__*/jsx(Tooltip, {
302
- content: t("neetoCustomDomains.validation.strategy.recommendedDescription"),
301
+ content: t$1("neetoCustomDomains.validation.strategy.recommendedDescription"),
303
302
  children: /*#__PURE__*/jsx(Tag, {
304
- label: t("neetoCustomDomains.validation.strategy.recommended"),
303
+ label: t$1("neetoCustomDomains.validation.strategy.recommended"),
305
304
  style: "info"
306
305
  })
307
306
  })
@@ -1159,6 +1158,11 @@ var Validation = function Validation(_ref) {
1159
1158
  });
1160
1159
  };
1161
1160
 
1161
+ 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}}
1162
+
1163
+ var css = ".neeto_custom_domain_stepper button{cursor:default!important}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2RvbWFpbnMvX292ZXJyaWRlcy5zY3NzIiwiYXBwL2phdmFzY3JpcHQvc3R5bGVzaGVldHMvYXBwbGljYXRpb24uc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDRSxvQ0FDRSx3QkNBSiIsInNvdXJjZXNDb250ZW50IjpbIi5uZWV0b19jdXN0b21fZG9tYWluX3N0ZXBwZXIge1xuICBidXR0b24ge1xuICAgIGN1cnNvcjogZGVmYXVsdCAhaW1wb3J0YW50O1xuICB9XG59XG4iLCIubmVldG9fY3VzdG9tX2RvbWFpbl9zdGVwcGVyIGJ1dHRvbiB7XG4gIGN1cnNvcjogZGVmYXVsdCAhaW1wb3J0YW50O1xufSJdfQ== */";
1164
+ n(css,{});
1165
+
1162
1166
  var DomainPane = function DomainPane(_ref) {
1163
1167
  var customDomains = _ref.customDomains,
1164
1168
  isOpen = _ref.isOpen,
@@ -1203,7 +1207,7 @@ var DomainPane = function DomainPane(_ref) {
1203
1207
  style: "h2",
1204
1208
  children: t("neetoCustomDomains.addNew")
1205
1209
  }), /*#__PURE__*/jsx("div", {
1206
- className: "-ml-2",
1210
+ className: "-ml-2 neeto_custom_domain_stepper",
1207
1211
  children: /*#__PURE__*/jsx(Stepper, {
1208
1212
  activeIndex: CURRENT_STEP[getCurrentStep(primaryDomain)],
1209
1213
  setActiveIndex: noop,
@@ -1338,8 +1342,8 @@ var CustomDomain = function CustomDomain(_ref) {
1338
1342
  var isCustomDomainAdded = isNotEmpty(customDomains);
1339
1343
  if (isLoading) {
1340
1344
  return /*#__PURE__*/jsx("div", {
1341
- className: "h-screen w-full",
1342
- children: /*#__PURE__*/jsx(PageLoader, {})
1345
+ className: "flex justify-center items-center w-full h-screen",
1346
+ children: /*#__PURE__*/jsx(Spinner, {})
1343
1347
  });
1344
1348
  }
1345
1349
  return /*#__PURE__*/jsxs("div", {