@bigbinary/neeto-custom-domains-frontend 3.3.1 → 3.3.2

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.
Files changed (44) hide show
  1. package/app/javascript/src/translations/ar.json +5 -1
  2. package/app/javascript/src/translations/bg.json +5 -1
  3. package/app/javascript/src/translations/ca.json +5 -1
  4. package/app/javascript/src/translations/cs.json +5 -1
  5. package/app/javascript/src/translations/da.json +5 -1
  6. package/app/javascript/src/translations/de.json +5 -1
  7. package/app/javascript/src/translations/en.json +4 -0
  8. package/app/javascript/src/translations/es-MX.json +5 -1
  9. package/app/javascript/src/translations/es.json +5 -1
  10. package/app/javascript/src/translations/et.json +5 -1
  11. package/app/javascript/src/translations/fi.json +5 -1
  12. package/app/javascript/src/translations/fil.json +5 -1
  13. package/app/javascript/src/translations/fr.json +5 -1
  14. package/app/javascript/src/translations/he.json +5 -1
  15. package/app/javascript/src/translations/hi.json +5 -1
  16. package/app/javascript/src/translations/hr.json +5 -1
  17. package/app/javascript/src/translations/hu.json +4 -0
  18. package/app/javascript/src/translations/id.json +5 -1
  19. package/app/javascript/src/translations/it.json +5 -1
  20. package/app/javascript/src/translations/ja.json +5 -1
  21. package/app/javascript/src/translations/ko.json +5 -1
  22. package/app/javascript/src/translations/nl.json +5 -1
  23. package/app/javascript/src/translations/pl.json +5 -1
  24. package/app/javascript/src/translations/pt-BR.json +5 -1
  25. package/app/javascript/src/translations/pt.json +5 -1
  26. package/app/javascript/src/translations/ro.json +5 -1
  27. package/app/javascript/src/translations/ru.json +5 -1
  28. package/app/javascript/src/translations/sk.json +5 -1
  29. package/app/javascript/src/translations/sl.json +5 -1
  30. package/app/javascript/src/translations/sv.json +5 -1
  31. package/app/javascript/src/translations/th.json +5 -1
  32. package/app/javascript/src/translations/tr.json +5 -1
  33. package/app/javascript/src/translations/uk.json +5 -1
  34. package/app/javascript/src/translations/vi.json +5 -1
  35. package/app/javascript/src/translations/zh-CN.json +5 -1
  36. package/app/javascript/src/translations/zh-TW.json +5 -1
  37. package/dist/.ready +1 -1
  38. package/dist/CustomDomain.js +53 -26
  39. package/dist/CustomDomain.js.map +1 -1
  40. package/dist/cjs/CustomDomain.js +53 -26
  41. package/dist/cjs/CustomDomain.js.map +1 -1
  42. package/dist/cjs/index.js +5 -5
  43. package/dist/index.js +5 -5
  44. package/package.json +1 -1
@@ -2,14 +2,18 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
2
2
  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
+ import Callout from '@bigbinary/neetoui/Callout';
5
6
  import Spinner from '@bigbinary/neetoui/Spinner';
7
+ import { Trans, useTranslation } from 'react-i18next';
6
8
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
7
9
  import { useQuery, useQueryClient } from '@tanstack/react-query';
8
10
  import useMutationWithInvalidation from '@bigbinary/neeto-commons-frontend/react-utils/useMutationWithInvalidation';
9
11
  import axios from 'axios';
10
12
  import Container from '@bigbinary/neeto-molecules/Container';
13
+ import CheckCircle from '@bigbinary/neeto-icons/CheckCircle';
14
+ import Warning2 from '@bigbinary/neeto-icons/Warning2';
15
+ import CloseCircle from '@bigbinary/neeto-icons/CloseCircle';
11
16
  import Alert from '@bigbinary/neetoui/Alert';
12
- import { Trans, useTranslation } from 'react-i18next';
13
17
  import { jsx, jsxs } from 'react/jsx-runtime';
14
18
  import classNames from 'classnames';
15
19
  import { SINGULAR } from '@bigbinary/neeto-commons-frontend/constants';
@@ -20,12 +24,8 @@ import Typography from '@bigbinary/neetoui/Typography';
20
24
  import Tooltip from '@bigbinary/neetoui/Tooltip';
21
25
  import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
22
26
  import MoreDropdown from '@bigbinary/neeto-molecules/MoreDropdown';
23
- import CheckCircle from '@bigbinary/neeto-icons/CheckCircle';
24
- import Warning2 from '@bigbinary/neeto-icons/Warning2';
25
- import CloseCircle from '@bigbinary/neeto-icons/CloseCircle';
26
27
  import Pane from '@bigbinary/neetoui/Pane';
27
28
  import Stepper from '@bigbinary/neetoui/Stepper';
28
- import Callout from '@bigbinary/neetoui/Callout';
29
29
  import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
30
30
  import Input from '@bigbinary/neetoui/formik/Input';
31
31
  import Form from '@bigbinary/neetoui/formik/Form';
@@ -114,6 +114,32 @@ var useValidateDomain = function useValidateDomain(url) {
114
114
  }, options));
115
115
  };
116
116
 
117
+ var STATUS_TAG_STYLES = {
118
+ active: "success",
119
+ pending: "warning",
120
+ failed: "danger"
121
+ };
122
+ var STATUS_ICON = {
123
+ active: CheckCircle,
124
+ pending: Warning2,
125
+ failed: CloseCircle
126
+ };
127
+ var DNS_TARGETS = {
128
+ staging: {
129
+ cname: "staging.neetodeployapp.com",
130
+ ip: "98.89.128.226"
131
+ },
132
+ production: {
133
+ cname: "dns.neetodeployapp.com",
134
+ ip: "34.233.85.113"
135
+ },
136
+ development: {
137
+ cname: "dns.neetodeployapp.com",
138
+ ip: "34.233.85.113"
139
+ }
140
+ };
141
+ var NEETO_CUSTOM_DOMAINS_NANO_README_URL = "https://github.com/neetozone/neeto-custom-domains-nano#env-variables";
142
+
117
143
  var DeleteAlert = withT(function (_ref) {
118
144
  var t = _ref.t,
119
145
  onClose = _ref.onClose,
@@ -138,27 +164,6 @@ var DeleteAlert = withT(function (_ref) {
138
164
  });
139
165
  });
140
166
 
141
- var STATUS_TAG_STYLES = {
142
- active: "success",
143
- pending: "warning",
144
- failed: "danger"
145
- };
146
- var STATUS_ICON = {
147
- active: CheckCircle,
148
- pending: Warning2,
149
- failed: CloseCircle
150
- };
151
- var DNS_TARGETS = {
152
- staging: {
153
- cname: "staging.neetodeployapp.com",
154
- ip: "98.89.128.226"
155
- },
156
- production: {
157
- cname: "dns.neetodeployapp.com",
158
- ip: "34.233.85.113"
159
- }
160
- };
161
-
162
167
  var Domain = function Domain(_ref) {
163
168
  var isCustomDomainAdded = _ref.isCustomDomainAdded,
164
169
  disconnectedIntegrationCardDescription = _ref.disconnectedIntegrationCardDescription,
@@ -2051,6 +2056,7 @@ var CustomDomain = function CustomDomain(_ref) {
2051
2056
  children: /*#__PURE__*/jsx(Spinner, {})
2052
2057
  });
2053
2058
  }
2059
+ var isDevelopment = environment === "development";
2054
2060
  return /*#__PURE__*/jsxs("div", {
2055
2061
  children: [/*#__PURE__*/jsxs(Container, {
2056
2062
  children: [/*#__PURE__*/jsx(Header, {
@@ -2060,6 +2066,27 @@ var CustomDomain = function CustomDomain(_ref) {
2060
2066
  openPane: openPane,
2061
2067
  setSelectedCustomDomain: setSelectedCustomDomain,
2062
2068
  size: headerSize
2069
+ }), isDevelopment && /*#__PURE__*/jsx(Callout, {
2070
+ className: "mb-4",
2071
+ style: "warning",
2072
+ children: /*#__PURE__*/jsxs("div", {
2073
+ children: [/*#__PURE__*/jsx(Trans, {
2074
+ components: {
2075
+ Link: /*#__PURE__*/jsx("a", {
2076
+ className: "underline",
2077
+ href: NEETO_CUSTOM_DOMAINS_NANO_README_URL,
2078
+ rel: "noreferrer",
2079
+ target: "_blank"
2080
+ })
2081
+ },
2082
+ i18nKey: "neetoCustomDomains.developmentBanner.message"
2083
+ }), /*#__PURE__*/jsx("div", {
2084
+ className: "mt-2 text-xs opacity-75",
2085
+ children: /*#__PURE__*/jsx(Trans, {
2086
+ i18nKey: "neetoCustomDomains.developmentBanner.footnote"
2087
+ })
2088
+ })]
2089
+ })
2063
2090
  }), /*#__PURE__*/jsx("div", {
2064
2091
  className: "flex h-full w-full justify-center",
2065
2092
  children: /*#__PURE__*/jsx(Domain, {