@salesgenterp/ui-components 0.4.423 → 0.4.425
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/index.js +58 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +58 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9436,7 +9436,8 @@ var ContactUsForm = function ContactUsForm(_ref) {
|
|
|
9436
9436
|
multiline: true,
|
|
9437
9437
|
rows: 4,
|
|
9438
9438
|
control: control,
|
|
9439
|
-
fontColor: fontColor
|
|
9439
|
+
fontColor: fontColor,
|
|
9440
|
+
max: 150
|
|
9440
9441
|
})), googleReCaptchaKey && /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
9441
9442
|
item: true,
|
|
9442
9443
|
xs: 12
|
|
@@ -9562,6 +9563,62 @@ var APIStaticPage = function APIStaticPage(_ref) {
|
|
|
9562
9563
|
})();
|
|
9563
9564
|
}
|
|
9564
9565
|
}, [id, pageData, alias]);
|
|
9566
|
+
var updatePageTitle = function updatePageTitle(_ref2) {
|
|
9567
|
+
var title = _ref2.title;
|
|
9568
|
+
if (document) {
|
|
9569
|
+
if (document.title) {
|
|
9570
|
+
document.title = title;
|
|
9571
|
+
} else {
|
|
9572
|
+
document.title = title;
|
|
9573
|
+
}
|
|
9574
|
+
}
|
|
9575
|
+
};
|
|
9576
|
+
var updateMetaData = function updateMetaData(_ref3) {
|
|
9577
|
+
var _ref3$key = _ref3.key,
|
|
9578
|
+
key = _ref3$key === void 0 ? 'keywords' : _ref3$key,
|
|
9579
|
+
data = _ref3.data;
|
|
9580
|
+
if (document) {
|
|
9581
|
+
var metaTag = document.querySelector("meta[name=\"" + key + "\"]");
|
|
9582
|
+
if (metaTag) {
|
|
9583
|
+
metaTag.setAttribute('content', data);
|
|
9584
|
+
} else {
|
|
9585
|
+
metaTag = document.createElement('meta');
|
|
9586
|
+
metaTag.setAttribute('name', "" + key);
|
|
9587
|
+
metaTag.setAttribute('content', data);
|
|
9588
|
+
document.head.appendChild(metaTag);
|
|
9589
|
+
}
|
|
9590
|
+
}
|
|
9591
|
+
};
|
|
9592
|
+
var updateCanonicalData = function updateCanonicalData() {
|
|
9593
|
+
if (document) {
|
|
9594
|
+
var key = 'canonical';
|
|
9595
|
+
var linkTag = document.querySelector("link[rel=\"" + key + "\"]");
|
|
9596
|
+
if (linkTag) {
|
|
9597
|
+
linkTag.setAttribute('href', window.location.href);
|
|
9598
|
+
} else {
|
|
9599
|
+
linkTag = document.createElement('link');
|
|
9600
|
+
linkTag.setAttribute('rel', "" + key);
|
|
9601
|
+
linkTag.setAttribute('href', window.location.href);
|
|
9602
|
+
document.head.appendChild(linkTag);
|
|
9603
|
+
}
|
|
9604
|
+
}
|
|
9605
|
+
};
|
|
9606
|
+
React.useEffect(function () {
|
|
9607
|
+
if (staticPage) {
|
|
9608
|
+
updatePageTitle({
|
|
9609
|
+
title: (staticPage === null || staticPage === void 0 ? void 0 : staticPage.metaTitle) || (staticPage === null || staticPage === void 0 ? void 0 : staticPage.title) || ''
|
|
9610
|
+
});
|
|
9611
|
+
updateMetaData({
|
|
9612
|
+
key: 'keywords',
|
|
9613
|
+
data: (staticPage === null || staticPage === void 0 ? void 0 : staticPage.metaKeyword) || ''
|
|
9614
|
+
});
|
|
9615
|
+
updateMetaData({
|
|
9616
|
+
key: 'description',
|
|
9617
|
+
data: (staticPage === null || staticPage === void 0 ? void 0 : staticPage.metaDescription) || ''
|
|
9618
|
+
});
|
|
9619
|
+
updateCanonicalData();
|
|
9620
|
+
}
|
|
9621
|
+
}, [staticPage]);
|
|
9565
9622
|
return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|
|
9566
9623
|
theme: colors
|
|
9567
9624
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(material.CssBaseline, null), /*#__PURE__*/React__default.createElement(Root$b, null, loading ? /*#__PURE__*/React__default.createElement(Loader, null) : staticPage ? /*#__PURE__*/React__default.createElement(StaticContainer, null, !hideRouteBar && /*#__PURE__*/React__default.createElement("h1", {
|