@widlarzgroup/docusaurus-ui 0.1.1 → 0.1.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProFeature.d.ts","sourceRoot":"","sources":["../../../src/components/ProFeature/ProFeature.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProFeature.d.ts","sourceRoot":"","sources":["../../../src/components/ProFeature/ProFeature.tsx"],"names":[],"mappings":"AAKA,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,UAAU,4BAGb,eAAe,4CA4BjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -5,10 +5,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
const Link_1 = __importDefault(require("@docusaurus/Link"));
|
|
8
|
+
const router_1 = require("@docusaurus/router");
|
|
8
9
|
const ProFeature_module_css_1 = __importDefault(require("./ProFeature.module.css"));
|
|
9
10
|
const ProBadge_1 = __importDefault(require("../../components/ProBadge/ProBadge"));
|
|
10
11
|
const ProFeature = ({ title = 'Pro Player Feature', description = 'This feature is available exclusively in Pro Player. To access this functionality, please contact us.', }) => {
|
|
11
|
-
|
|
12
|
+
const location = (0, router_1.useLocation)();
|
|
13
|
+
const utmContent = encodeURIComponent(location.pathname);
|
|
14
|
+
const contactUrl = `https://thewidlarzgroup.com/?utm_source=docs&utm_medium=pro-feature&utm_campaign=pro-player&utm_content=${utmContent}#Contact`;
|
|
15
|
+
const learnMoreUrl = `https://sdk.thewidlarzgroup.com/?utm_source=docs&utm_medium=pro-feature&utm_campaign=pro-player&utm_content=${utmContent}`;
|
|
16
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: ProFeature_module_css_1.default.container, children: (0, jsx_runtime_1.jsxs)("div", { className: ProFeature_module_css_1.default.content, children: [(0, jsx_runtime_1.jsx)("div", { className: ProFeature_module_css_1.default.header, children: (0, jsx_runtime_1.jsxs)("div", { className: ProFeature_module_css_1.default.badge, children: [(0, jsx_runtime_1.jsx)(ProBadge_1.default, {}), (0, jsx_runtime_1.jsx)("span", { className: ProFeature_module_css_1.default.badgeText, children: title })] }) }), (0, jsx_runtime_1.jsx)("p", { className: ProFeature_module_css_1.default.description, children: description }), (0, jsx_runtime_1.jsxs)("div", { className: ProFeature_module_css_1.default.actions, children: [(0, jsx_runtime_1.jsx)(Link_1.default, { to: contactUrl, className: ProFeature_module_css_1.default.primaryButton, children: "Contact Us" }), (0, jsx_runtime_1.jsx)(Link_1.default, { to: learnMoreUrl, className: ProFeature_module_css_1.default.secondaryButton, children: "Learn More" })] })] }) }));
|
|
12
17
|
};
|
|
13
18
|
exports.default = ProFeature;
|
|
14
19
|
//# sourceMappingURL=ProFeature.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProFeature.js","sourceRoot":"","sources":["../../../src/components/ProFeature/ProFeature.tsx"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AACpC,oFAA6C;AAC7C,8EAAsD;AAOtD,MAAM,UAAU,GAAG,CAAC,EAClB,KAAK,GAAG,oBAAoB,EAC5B,WAAW,GAAG,uGAAuG,GACrG,EAAE,EAAE;IACpB,OAAO,CACL,gCAAK,SAAS,EAAE,+BAAM,CAAC,SAAS,YAC9B,iCAAK,SAAS,EAAE,+BAAM,CAAC,OAAO,aAC5B,gCAAK,SAAS,EAAE,+BAAM,CAAC,MAAM,YAC3B,iCAAK,SAAS,EAAE,+BAAM,CAAC,KAAK,aAC1B,uBAAC,kBAAQ,KAAG,EACZ,iCAAM,SAAS,EAAE,+BAAM,CAAC,SAAS,YAAG,KAAK,GAAQ,IAC7C,GACF,EACN,8BAAG,SAAS,EA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,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Link from '@docusaurus/Link';
|
|
2
|
+
import {useLocation} from '@docusaurus/router';
|
|
2
3
|
import styles from './ProFeature.module.css';
|
|
3
4
|
import ProBadge from '@/components/ProBadge/ProBadge';
|
|
4
5
|
|
|
@@ -11,6 +12,12 @@ const ProFeature = ({
|
|
|
11
12
|
title = 'Pro Player Feature',
|
|
12
13
|
description = 'This feature is available exclusively in Pro Player. To access this functionality, please contact us.',
|
|
13
14
|
}: ProFeatureProps) => {
|
|
15
|
+
const location = useLocation();
|
|
16
|
+
const utmContent = encodeURIComponent(location.pathname);
|
|
17
|
+
|
|
18
|
+
const contactUrl = `https://thewidlarzgroup.com/?utm_source=docs&utm_medium=pro-feature&utm_campaign=pro-player&utm_content=${utmContent}#Contact`;
|
|
19
|
+
const learnMoreUrl = `https://sdk.thewidlarzgroup.com/?utm_source=docs&utm_medium=pro-feature&utm_campaign=pro-player&utm_content=${utmContent}`;
|
|
20
|
+
|
|
14
21
|
return (
|
|
15
22
|
<div className={styles.container}>
|
|
16
23
|
<div className={styles.content}>
|
|
@@ -22,16 +29,10 @@ const ProFeature = ({
|
|
|
22
29
|
</div>
|
|
23
30
|
<p className={styles.description}>{description}</p>
|
|
24
31
|
<div className={styles.actions}>
|
|
25
|
-
<Link
|
|
26
|
-
to="https://thewidlarzgroup.com/?utm_source=docs&utm_medium=pro-feature&utm_campaign=pro-player#Contact"
|
|
27
|
-
className={styles.primaryButton}
|
|
28
|
-
>
|
|
32
|
+
<Link to={contactUrl} className={styles.primaryButton}>
|
|
29
33
|
Contact Us
|
|
30
34
|
</Link>
|
|
31
|
-
<Link
|
|
32
|
-
to="https://sdk.thewidlarzgroup.com/?utm_source=docs&utm_medium=pro-feature&utm_campaign=pro-player"
|
|
33
|
-
className={styles.secondaryButton}
|
|
34
|
-
>
|
|
35
|
+
<Link to={learnMoreUrl} className={styles.secondaryButton}>
|
|
35
36
|
Learn More
|
|
36
37
|
</Link>
|
|
37
38
|
</div>
|