@bigbinary/neeto-seo-frontend 3.0.0 → 3.0.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.
- package/README.md +0 -1
- package/app/javascript/src/translations/en.json +1 -1
- package/dist/SeoSettingsPage.js +36 -51
- package/dist/SeoSettingsPage.js.map +1 -1
- package/dist/cjs/SeoSettingsPage.js +35 -50
- package/dist/cjs/SeoSettingsPage.js.map +1 -1
- package/dist/cjs/index.js +3 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"neetoSeo": {
|
|
3
3
|
"title": "Search engine optimization",
|
|
4
4
|
"manageSeoSettings": "Manage SEO settings",
|
|
5
|
-
"readHelpArticle": "<Link>Read more</Link> to learn more about configuring the SEO settings",
|
|
5
|
+
"readHelpArticle": "<Link>Read more</Link> to learn more about configuring the SEO settings.",
|
|
6
6
|
"buttons": {
|
|
7
7
|
"configure": "Configure"
|
|
8
8
|
},
|
package/dist/SeoSettingsPage.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
2
2
|
import { memo, useState } from 'react';
|
|
3
|
+
import CardLayout from '@bigbinary/neeto-molecules/CardLayout';
|
|
3
4
|
import Container from '@bigbinary/neeto-molecules/Container';
|
|
4
5
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
5
6
|
import Button from '@bigbinary/neetoui/Button';
|
|
6
7
|
import { useTranslation, Trans } from 'react-i18next';
|
|
8
|
+
import { withT } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
7
9
|
import NeetoHeader from '@bigbinary/neeto-molecules/Header';
|
|
8
|
-
import
|
|
9
|
-
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
10
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
11
|
import Pane from './SeoSettingsPane.js';
|
|
11
12
|
import '@bigbinary/neeto-molecules/PageLoader';
|
|
12
13
|
import '@bigbinary/neetoui/Pane';
|
|
@@ -23,41 +24,31 @@ import '@bigbinary/neeto-image-uploader-frontend/ImageUploader';
|
|
|
23
24
|
import 'classnames';
|
|
24
25
|
import 'formik';
|
|
25
26
|
import '@bigbinary/neeto-cist';
|
|
27
|
+
import '@bigbinary/neeto-molecules/HelpPopover';
|
|
26
28
|
import '@bigbinary/neetoui/Label';
|
|
27
29
|
import '@bigbinary/neetoui/formik/Switch';
|
|
28
30
|
import '@bigbinary/neetoui/formik/Input';
|
|
29
|
-
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
30
31
|
import '@bigbinary/neetoui/formik/Textarea';
|
|
31
32
|
|
|
32
|
-
var Header = function
|
|
33
|
-
var
|
|
33
|
+
var Header = withT(function (_ref) {
|
|
34
|
+
var t = _ref.t,
|
|
35
|
+
breadcrumbs = _ref.breadcrumbs,
|
|
34
36
|
helpDocUrl = _ref.helpDocUrl,
|
|
35
37
|
_ref$helpPopoverDescr = _ref.helpPopoverDescription,
|
|
36
38
|
helpPopoverDescription = _ref$helpPopoverDescr === void 0 ? "" : _ref$helpPopoverDescr;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
children: t("neetoSeo.title")
|
|
44
|
-
}), /*#__PURE__*/jsx(HelpPopover, {
|
|
39
|
+
return /*#__PURE__*/jsx(NeetoHeader, {
|
|
40
|
+
breadcrumbs: breadcrumbs,
|
|
41
|
+
size: "small",
|
|
42
|
+
title: t("neetoSeo.title"),
|
|
43
|
+
titleHelpPopoverProps: {
|
|
44
|
+
title: t("neetoSeo.title"),
|
|
45
45
|
description: helpPopoverDescription || t("neetoSeo.helpPopovers.seo"),
|
|
46
46
|
helpLinkProps: {
|
|
47
47
|
href: helpDocUrl
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
position: "top"
|
|
51
|
-
},
|
|
52
|
-
title: t("neetoSeo.title")
|
|
53
|
-
})]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
54
50
|
});
|
|
55
|
-
|
|
56
|
-
breadcrumbs: breadcrumbs,
|
|
57
|
-
title: title,
|
|
58
|
-
size: "large"
|
|
59
|
-
});
|
|
60
|
-
};
|
|
51
|
+
});
|
|
61
52
|
var Header$1 = /*#__PURE__*/memo(Header);
|
|
62
53
|
|
|
63
54
|
var Page = function Page(_ref) {
|
|
@@ -88,32 +79,26 @@ var Page = function Page(_ref) {
|
|
|
88
79
|
breadcrumbs: breadcrumbs,
|
|
89
80
|
helpDocUrl: helpDocUrl,
|
|
90
81
|
helpPopoverDescription: helpPopoverDescription
|
|
91
|
-
}), /*#__PURE__*/jsx(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
style: "link",
|
|
112
|
-
target: "_blank"
|
|
113
|
-
})
|
|
114
|
-
}
|
|
115
|
-
})
|
|
116
|
-
})]
|
|
82
|
+
}), /*#__PURE__*/jsx(CardLayout, {
|
|
83
|
+
title: t("neetoSeo.manageSeoSettings"),
|
|
84
|
+
actionBlock: /*#__PURE__*/jsx(Button, {
|
|
85
|
+
label: t("neetoSeo.buttons.configure"),
|
|
86
|
+
onClick: openPane
|
|
87
|
+
}),
|
|
88
|
+
children: /*#__PURE__*/jsx(Typography, {
|
|
89
|
+
style: "body1",
|
|
90
|
+
children: /*#__PURE__*/jsx(Trans, {
|
|
91
|
+
i18nKey: "neetoSeo.readHelpArticle",
|
|
92
|
+
components: {
|
|
93
|
+
Link: /*#__PURE__*/jsx(Button, {
|
|
94
|
+
href: helpDocUrl,
|
|
95
|
+
rel: "noreferrer",
|
|
96
|
+
size: "large",
|
|
97
|
+
style: "link",
|
|
98
|
+
target: "_blank"
|
|
99
|
+
})
|
|
100
|
+
}
|
|
101
|
+
})
|
|
117
102
|
})
|
|
118
103
|
})]
|
|
119
104
|
}), /*#__PURE__*/jsx(Pane, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SeoSettingsPage.js","sources":["../app/javascript/src/components/SeoSettings/Header.jsx","../app/javascript/src/components/SeoSettings/Page.jsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport
|
|
1
|
+
{"version":3,"file":"SeoSettingsPage.js","sources":["../app/javascript/src/components/SeoSettings/Header.jsx","../app/javascript/src/components/SeoSettings/Page.jsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { withT } from \"neetocommons/react-utils\";\nimport NeetoHeader from \"neetomolecules/Header\";\n\nconst Header = withT(\n ({ t, breadcrumbs, helpDocUrl, helpPopoverDescription = \"\" }) => (\n <NeetoHeader\n {...{ breadcrumbs }}\n size=\"small\"\n title={t(\"neetoSeo.title\")}\n titleHelpPopoverProps={{\n title: t(\"neetoSeo.title\"),\n description: helpPopoverDescription || t(\"neetoSeo.helpPopovers.seo\"),\n helpLinkProps: { href: helpDocUrl },\n }}\n />\n )\n);\n\nexport default memo(Header);\n","import { useState } from \"react\";\n\nimport CardLayout from \"neetomolecules/CardLayout\";\nimport Container from \"neetomolecules/Container\";\nimport { Typography, Button } from \"neetoui\";\nimport { useTranslation, Trans } from \"react-i18next\";\n\nimport Header from \"./Header\";\nimport Pane from \"./Pane\";\n\nconst Page = ({\n breadcrumbs,\n helpDocUrl,\n entity,\n seoFormFields,\n apiEndpointUrl,\n helpPopoverDescription = \"\",\n additionalComponent = null,\n}) => {\n const { t } = useTranslation();\n\n const [isPaneOpen, setIsPaneOpen] = useState(false);\n\n const openPane = () => setIsPaneOpen(true);\n const closePane = () => setIsPaneOpen(false);\n\n return (\n <>\n <Container>\n <Header {...{ breadcrumbs, helpDocUrl, helpPopoverDescription }} />\n <CardLayout\n title={t(\"neetoSeo.manageSeoSettings\")}\n actionBlock={\n <Button\n label={t(\"neetoSeo.buttons.configure\")}\n onClick={openPane}\n />\n }\n >\n <Typography style=\"body1\">\n <Trans\n i18nKey=\"neetoSeo.readHelpArticle\"\n components={{\n Link: (\n <Button\n href={helpDocUrl}\n rel=\"noreferrer\"\n size=\"large\"\n style=\"link\"\n target=\"_blank\"\n />\n ),\n }}\n />\n </Typography>\n </CardLayout>\n </Container>\n <Pane\n {...{ additionalComponent, apiEndpointUrl, entity, seoFormFields }}\n defaultHelpDocUrl={helpDocUrl}\n isOpen={isPaneOpen}\n onClose={closePane}\n />\n </>\n );\n};\n\nexport default Page;\n"],"names":["Header","withT","_ref","t","breadcrumbs","helpDocUrl","_ref$helpPopoverDescr","helpPopoverDescription","_jsx","NeetoHeader","size","title","titleHelpPopoverProps","description","helpLinkProps","href","memo","Page","entity","seoFormFields","apiEndpointUrl","_ref$additionalCompon","additionalComponent","_useTranslation","useTranslation","_useState","useState","_useState2","_slicedToArray","isPaneOpen","setIsPaneOpen","openPane","closePane","_jsxs","_Fragment","children","Container","CardLayout","actionBlock","Button","label","onClick","Typography","style","Trans","i18nKey","components","Link","rel","target","Pane","defaultHelpDocUrl","isOpen","onClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAMA,MAAM,GAAGC,KAAK,CAClB,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAEC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IAAEC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IAAAC,qBAAA,GAAAJ,IAAA,CAAEK,sBAAsB;AAAtBA,IAAAA,sBAAsB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,qBAAA;EAAA,oBACxDE,GAAA,CAACC,WAAW,EAAA;AACJL,IAAAA,WAA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,MAAAA,cAAc,EAAdA,cAAc;AAAEF,MAAAA,MAAM,EAANA,MAAM;AAAEC,MAAAA,aAAa,EAAbA,aAAa;AAChEgC,MAAAA,iBAAiB,EAAE9C,UAAW;AAC9B+C,MAAAA,MAAM,EAAEvB,UAAW;AACnBwB,MAAAA,OAAO,EAAErB;AAAU,KACpB,CAAC;AAAA,GACF,CAAC;AAEP;;;;"}
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
4
4
|
var react = require('react');
|
|
5
|
+
var CardLayout = require('@bigbinary/neeto-molecules/CardLayout');
|
|
5
6
|
var Container = require('@bigbinary/neeto-molecules/Container');
|
|
6
7
|
var Typography = require('@bigbinary/neetoui/Typography');
|
|
7
8
|
var Button = require('@bigbinary/neetoui/Button');
|
|
8
9
|
var reactI18next = require('react-i18next');
|
|
10
|
+
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
9
11
|
var NeetoHeader = require('@bigbinary/neeto-molecules/Header');
|
|
10
|
-
var HelpPopover = require('@bigbinary/neeto-molecules/HelpPopover');
|
|
11
12
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
13
|
var SeoSettingsPane = require('./SeoSettingsPane.js');
|
|
13
14
|
require('@bigbinary/neeto-molecules/PageLoader');
|
|
@@ -25,41 +26,31 @@ require('@bigbinary/neeto-image-uploader-frontend/ImageUploader');
|
|
|
25
26
|
require('classnames');
|
|
26
27
|
require('formik');
|
|
27
28
|
require('@bigbinary/neeto-cist');
|
|
29
|
+
require('@bigbinary/neeto-molecules/HelpPopover');
|
|
28
30
|
require('@bigbinary/neetoui/Label');
|
|
29
31
|
require('@bigbinary/neetoui/formik/Switch');
|
|
30
32
|
require('@bigbinary/neetoui/formik/Input');
|
|
31
|
-
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
32
33
|
require('@bigbinary/neetoui/formik/Textarea');
|
|
33
34
|
|
|
34
|
-
var Header = function
|
|
35
|
-
var
|
|
35
|
+
var Header = reactUtils.withT(function (_ref) {
|
|
36
|
+
var t = _ref.t,
|
|
37
|
+
breadcrumbs = _ref.breadcrumbs,
|
|
36
38
|
helpDocUrl = _ref.helpDocUrl,
|
|
37
39
|
_ref$helpPopoverDescr = _ref.helpPopoverDescription,
|
|
38
40
|
helpPopoverDescription = _ref$helpPopoverDescr === void 0 ? "" : _ref$helpPopoverDescr;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
children: t("neetoSeo.title")
|
|
46
|
-
}), /*#__PURE__*/jsxRuntime.jsx(HelpPopover, {
|
|
41
|
+
return /*#__PURE__*/jsxRuntime.jsx(NeetoHeader, {
|
|
42
|
+
breadcrumbs: breadcrumbs,
|
|
43
|
+
size: "small",
|
|
44
|
+
title: t("neetoSeo.title"),
|
|
45
|
+
titleHelpPopoverProps: {
|
|
46
|
+
title: t("neetoSeo.title"),
|
|
47
47
|
description: helpPopoverDescription || t("neetoSeo.helpPopovers.seo"),
|
|
48
48
|
helpLinkProps: {
|
|
49
49
|
href: helpDocUrl
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
position: "top"
|
|
53
|
-
},
|
|
54
|
-
title: t("neetoSeo.title")
|
|
55
|
-
})]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
56
52
|
});
|
|
57
|
-
|
|
58
|
-
breadcrumbs: breadcrumbs,
|
|
59
|
-
title: title,
|
|
60
|
-
size: "large"
|
|
61
|
-
});
|
|
62
|
-
};
|
|
53
|
+
});
|
|
63
54
|
var Header$1 = /*#__PURE__*/react.memo(Header);
|
|
64
55
|
|
|
65
56
|
var Page = function Page(_ref) {
|
|
@@ -90,32 +81,26 @@ var Page = function Page(_ref) {
|
|
|
90
81
|
breadcrumbs: breadcrumbs,
|
|
91
82
|
helpDocUrl: helpDocUrl,
|
|
92
83
|
helpPopoverDescription: helpPopoverDescription
|
|
93
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
style: "link",
|
|
114
|
-
target: "_blank"
|
|
115
|
-
})
|
|
116
|
-
}
|
|
117
|
-
})
|
|
118
|
-
})]
|
|
84
|
+
}), /*#__PURE__*/jsxRuntime.jsx(CardLayout, {
|
|
85
|
+
title: t("neetoSeo.manageSeoSettings"),
|
|
86
|
+
actionBlock: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
87
|
+
label: t("neetoSeo.buttons.configure"),
|
|
88
|
+
onClick: openPane
|
|
89
|
+
}),
|
|
90
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
91
|
+
style: "body1",
|
|
92
|
+
children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
93
|
+
i18nKey: "neetoSeo.readHelpArticle",
|
|
94
|
+
components: {
|
|
95
|
+
Link: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
96
|
+
href: helpDocUrl,
|
|
97
|
+
rel: "noreferrer",
|
|
98
|
+
size: "large",
|
|
99
|
+
style: "link",
|
|
100
|
+
target: "_blank"
|
|
101
|
+
})
|
|
102
|
+
}
|
|
103
|
+
})
|
|
119
104
|
})
|
|
120
105
|
})]
|
|
121
106
|
}), /*#__PURE__*/jsxRuntime.jsx(SeoSettingsPane, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SeoSettingsPage.js","sources":["../../app/javascript/src/components/SeoSettings/Header.jsx","../../app/javascript/src/components/SeoSettings/Page.jsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport
|
|
1
|
+
{"version":3,"file":"SeoSettingsPage.js","sources":["../../app/javascript/src/components/SeoSettings/Header.jsx","../../app/javascript/src/components/SeoSettings/Page.jsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { withT } from \"neetocommons/react-utils\";\nimport NeetoHeader from \"neetomolecules/Header\";\n\nconst Header = withT(\n ({ t, breadcrumbs, helpDocUrl, helpPopoverDescription = \"\" }) => (\n <NeetoHeader\n {...{ breadcrumbs }}\n size=\"small\"\n title={t(\"neetoSeo.title\")}\n titleHelpPopoverProps={{\n title: t(\"neetoSeo.title\"),\n description: helpPopoverDescription || t(\"neetoSeo.helpPopovers.seo\"),\n helpLinkProps: { href: helpDocUrl },\n }}\n />\n )\n);\n\nexport default memo(Header);\n","import { useState } from \"react\";\n\nimport CardLayout from \"neetomolecules/CardLayout\";\nimport Container from \"neetomolecules/Container\";\nimport { Typography, Button } from \"neetoui\";\nimport { useTranslation, Trans } from \"react-i18next\";\n\nimport Header from \"./Header\";\nimport Pane from \"./Pane\";\n\nconst Page = ({\n breadcrumbs,\n helpDocUrl,\n entity,\n seoFormFields,\n apiEndpointUrl,\n helpPopoverDescription = \"\",\n additionalComponent = null,\n}) => {\n const { t } = useTranslation();\n\n const [isPaneOpen, setIsPaneOpen] = useState(false);\n\n const openPane = () => setIsPaneOpen(true);\n const closePane = () => setIsPaneOpen(false);\n\n return (\n <>\n <Container>\n <Header {...{ breadcrumbs, helpDocUrl, helpPopoverDescription }} />\n <CardLayout\n title={t(\"neetoSeo.manageSeoSettings\")}\n actionBlock={\n <Button\n label={t(\"neetoSeo.buttons.configure\")}\n onClick={openPane}\n />\n }\n >\n <Typography style=\"body1\">\n <Trans\n i18nKey=\"neetoSeo.readHelpArticle\"\n components={{\n Link: (\n <Button\n href={helpDocUrl}\n rel=\"noreferrer\"\n size=\"large\"\n style=\"link\"\n target=\"_blank\"\n />\n ),\n }}\n />\n </Typography>\n </CardLayout>\n </Container>\n <Pane\n {...{ additionalComponent, apiEndpointUrl, entity, seoFormFields }}\n defaultHelpDocUrl={helpDocUrl}\n isOpen={isPaneOpen}\n onClose={closePane}\n />\n </>\n );\n};\n\nexport default Page;\n"],"names":["Header","withT","_ref","t","breadcrumbs","helpDocUrl","_ref$helpPopoverDescr","helpPopoverDescription","_jsx","NeetoHeader","size","title","titleHelpPopoverProps","description","helpLinkProps","href","memo","Page","entity","seoFormFields","apiEndpointUrl","_ref$additionalCompon","additionalComponent","_useTranslation","useTranslation","_useState","useState","_useState2","_slicedToArray","isPaneOpen","setIsPaneOpen","openPane","closePane","_jsxs","_Fragment","children","Container","CardLayout","actionBlock","Button","label","onClick","Typography","style","Trans","i18nKey","components","Link","rel","target","Pane","defaultHelpDocUrl","isOpen","onClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAMA,MAAM,GAAGC,gBAAK,CAClB,UAAAC,IAAA,EAAA;AAAA,EAAA,IAAGC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAEC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IAAEC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IAAAC,qBAAA,GAAAJ,IAAA,CAAEK,sBAAsB;AAAtBA,IAAAA,sBAAsB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,qBAAA;EAAA,oBACxDE,cAAA,CAACC,WAAW,EAAA;AACJL,IAAAA,WAAW,EAAXA,WAAW;AACjBM,IAAAA,IAAI,EAAC,OAAO;AACZC,IAAAA,KAAK,EAAER,CAAC,CAAC,gBAAgB,CAAE;AAC3BS,IAAAA,qBAAqB,EAAE;AACrBD,MAAAA,KAAK,EAAER,CAAC,CAAC,gBAAgB,CAAC;AAC1BU,MAAAA,WAAW,EAAEN,sBAAsB,IAAIJ,CAAC,CAAC,2BAA2B,CAAC;AACrEW,MAAAA,aAAa,EAAE;AAAEC,QAAAA,IAAI,EAAEV;AAAW;AACpC;AAAE,GACH,CAAC;AAAA,CAEN,CAAC;AAED,eAAeW,aAAAA,UAAI,CAAChB,MAAM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,QAAAA,UAAU,EAAVA,UAAU;AAAEE,QAAAA,sBAAsB,EAAtBA;AAAsB,OAAK,CAAC,eACnEC,cAAA,CAAC6B,UAAU,EAAA;AACT1B,QAAAA,KAAK,EAAER,CAAC,CAAC,4BAA4B,CAAE;QACvCmC,WAAW,eACT9B,cAAA,CAAC+B,MAAM,EAAA;AACLC,UAAAA,KAAK,EAAErC,CAAC,CAAC,4BAA4B,CAAE;AACvCsC,UAAAA,OAAO,EAAEV;AAAS,SACnB,CACF;QAAAI,QAAA,eAED3B,cAAA,CAACkC,UAAU,EAAA;AAACC,UAAAA,KAAK,EAAC,OAAO;UAAAR,QAAA,eACvB3B,cAAA,CAACoC,kBAAK,EAAA;AACJC,YAAAA,OAAO,EAAC,0BAA0B;AAClCC,YAAAA,UAAU,EAAE;cACVC,IAAI,eACFvC,cAAA,CAAC+B,MAAM,EAAA;AACLxB,gBAAAA,IAAI,EAAEV,UAAW;AACjB2C,gBAAAA,GAAG,EAAC,YAAY;AAChBtC,gBAAAA,IAAI,EAAC,OAAO;AACZiC,gBAAAA,KAAK,EAAC,MAAM;AACZM,gBAAAA,MAAM,EAAC;eACR;AAEL;WACD;SACS;AAAC,OACH,CAAC;AAAA,KACJ,CAAC,eACZzC,cAAA,CAAC0C,eAAI,EAAA;AACG5B,MAAAA,mBAAmB,EAAnBA,mBAAmB;AAAEF,MAAAA,cAAc,EAAdA,cAAc;AAAEF,MAAAA,MAAM,EAANA,MAAM;AAAEC,MAAAA,aAAa,EAAbA,aAAa;AAChEgC,MAAAA,iBAAiB,EAAE9C,UAAW;AAC9B+C,MAAAA,MAAM,EAAEvB,UAAW;AACnBwB,MAAAA,OAAO,EAAErB;AAAU,KACpB,CAAC;AAAA,GACF,CAAC;AAEP;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -4,12 +4,13 @@ var SeoSettingsPage = require('./SeoSettingsPage.js');
|
|
|
4
4
|
var SeoSettingsPane = require('./SeoSettingsPane.js');
|
|
5
5
|
require('@babel/runtime/helpers/slicedToArray');
|
|
6
6
|
require('react');
|
|
7
|
+
require('@bigbinary/neeto-molecules/CardLayout');
|
|
7
8
|
require('@bigbinary/neeto-molecules/Container');
|
|
8
9
|
require('@bigbinary/neetoui/Typography');
|
|
9
10
|
require('@bigbinary/neetoui/Button');
|
|
10
11
|
require('react-i18next');
|
|
12
|
+
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
11
13
|
require('@bigbinary/neeto-molecules/Header');
|
|
12
|
-
require('@bigbinary/neeto-molecules/HelpPopover');
|
|
13
14
|
require('react/jsx-runtime');
|
|
14
15
|
require('@bigbinary/neeto-molecules/PageLoader');
|
|
15
16
|
require('@bigbinary/neetoui/Pane');
|
|
@@ -26,10 +27,10 @@ require('@bigbinary/neeto-image-uploader-frontend/ImageUploader');
|
|
|
26
27
|
require('classnames');
|
|
27
28
|
require('formik');
|
|
28
29
|
require('@bigbinary/neeto-cist');
|
|
30
|
+
require('@bigbinary/neeto-molecules/HelpPopover');
|
|
29
31
|
require('@bigbinary/neetoui/Label');
|
|
30
32
|
require('@bigbinary/neetoui/formik/Switch');
|
|
31
33
|
require('@bigbinary/neetoui/formik/Input');
|
|
32
|
-
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
33
34
|
require('@bigbinary/neetoui/formik/Textarea');
|
|
34
35
|
|
|
35
36
|
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -2,12 +2,13 @@ export { default as SeoSettingsPage } from './SeoSettingsPage.js';
|
|
|
2
2
|
export { default as SeoSettingsPane } from './SeoSettingsPane.js';
|
|
3
3
|
import '@babel/runtime/helpers/slicedToArray';
|
|
4
4
|
import 'react';
|
|
5
|
+
import '@bigbinary/neeto-molecules/CardLayout';
|
|
5
6
|
import '@bigbinary/neeto-molecules/Container';
|
|
6
7
|
import '@bigbinary/neetoui/Typography';
|
|
7
8
|
import '@bigbinary/neetoui/Button';
|
|
8
9
|
import 'react-i18next';
|
|
10
|
+
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
9
11
|
import '@bigbinary/neeto-molecules/Header';
|
|
10
|
-
import '@bigbinary/neeto-molecules/HelpPopover';
|
|
11
12
|
import 'react/jsx-runtime';
|
|
12
13
|
import '@bigbinary/neeto-molecules/PageLoader';
|
|
13
14
|
import '@bigbinary/neetoui/Pane';
|
|
@@ -24,9 +25,9 @@ import '@bigbinary/neeto-image-uploader-frontend/ImageUploader';
|
|
|
24
25
|
import 'classnames';
|
|
25
26
|
import 'formik';
|
|
26
27
|
import '@bigbinary/neeto-cist';
|
|
28
|
+
import '@bigbinary/neeto-molecules/HelpPopover';
|
|
27
29
|
import '@bigbinary/neetoui/Label';
|
|
28
30
|
import '@bigbinary/neetoui/formik/Switch';
|
|
29
31
|
import '@bigbinary/neetoui/formik/Input';
|
|
30
|
-
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
31
32
|
import '@bigbinary/neetoui/formik/Textarea';
|
|
32
33
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-seo-frontend",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "A repo acts as the source of truth for the new nano's structure, configs, data etc.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-seo-nano",
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"@babel/preset-typescript": "7.26.0",
|
|
62
62
|
"@babel/runtime": "7.26.0",
|
|
63
63
|
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
64
|
-
"@bigbinary/eslint-plugin-neeto": "1.5.
|
|
65
|
-
"@bigbinary/neeto-cist": "1.0.
|
|
66
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
67
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
68
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
69
|
-
"@bigbinary/neeto-molecules": "3.15.
|
|
70
|
-
"@bigbinary/neetoui": "8.2.
|
|
64
|
+
"@bigbinary/eslint-plugin-neeto": "1.5.7",
|
|
65
|
+
"@bigbinary/neeto-cist": "1.0.15",
|
|
66
|
+
"@bigbinary/neeto-commons-frontend": "4.13.23",
|
|
67
|
+
"@bigbinary/neeto-filters-frontend": "4.3.15",
|
|
68
|
+
"@bigbinary/neeto-icons": "1.20.26",
|
|
69
|
+
"@bigbinary/neeto-molecules": "3.15.38",
|
|
70
|
+
"@bigbinary/neetoui": "8.2.65",
|
|
71
71
|
"@emotion/is-prop-valid": "1.2.0",
|
|
72
72
|
"@faker-js/faker": "8.2.0",
|
|
73
73
|
"@honeybadger-io/js": "6.10.1",
|
|
@@ -170,12 +170,12 @@
|
|
|
170
170
|
},
|
|
171
171
|
"peerDependencies": {
|
|
172
172
|
"@babel/runtime": "7.26.0",
|
|
173
|
-
"@bigbinary/neeto-cist": "1.0.
|
|
174
|
-
"@bigbinary/neeto-commons-frontend": "4.13.
|
|
175
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
176
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
177
|
-
"@bigbinary/neeto-molecules": "3.15.
|
|
178
|
-
"@bigbinary/neetoui": "8.2.
|
|
173
|
+
"@bigbinary/neeto-cist": "1.0.15",
|
|
174
|
+
"@bigbinary/neeto-commons-frontend": "4.13.23",
|
|
175
|
+
"@bigbinary/neeto-filters-frontend": "4.3.15",
|
|
176
|
+
"@bigbinary/neeto-icons": "1.20.26",
|
|
177
|
+
"@bigbinary/neeto-molecules": "3.15.38",
|
|
178
|
+
"@bigbinary/neetoui": "8.2.65",
|
|
179
179
|
"@honeybadger-io/js": "6.10.1",
|
|
180
180
|
"@honeybadger-io/react": "6.1.25",
|
|
181
181
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
"string-width": "4.1.0"
|
|
220
220
|
},
|
|
221
221
|
"engines": {
|
|
222
|
-
"node": ">=
|
|
222
|
+
"node": ">=22.13",
|
|
223
223
|
"npm": ">=9",
|
|
224
224
|
"yarn": ">=1.22"
|
|
225
225
|
},
|