@rspress-theme-anatole/theme-default 0.3.4 → 0.3.5

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 (2) hide show
  1. package/dist/bundle.js +15 -7
  2. package/package.json +3 -3
package/dist/bundle.js CHANGED
@@ -1130,7 +1130,7 @@ function DocLayout(props) {
1130
1130
  if (breadcrumbNav.length > 0) {
1131
1131
  breadcrumbNav.unshift(frontmatter.breadcrumb + ' > ');
1132
1132
  }
1133
- else{
1133
+ else {
1134
1134
  breadcrumbNav.unshift(frontmatter.breadcrumb);
1135
1135
  }
1136
1136
  }
@@ -2727,15 +2727,15 @@ function HomepageFaqs({ frontmatter, routePath }) {
2727
2727
  const faqs = frontmatter?.faqs;
2728
2728
  const contactus = frontmatter?.contactus;
2729
2729
 
2730
- return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2730
+ return (faqs || contactus) ? (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2731
2731
  children: [
2732
2732
  (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2733
2733
  children: [
2734
- (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h2", {
2734
+ faqs ? (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h2", {
2735
2735
  children: faqs.title ?? 'FAQs',
2736
2736
  className: "topics-title"
2737
- }),
2738
- (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2737
+ }) : null,
2738
+ faqs ? (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2739
2739
  children: faqs.items.map((faqItem) => {
2740
2740
  return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2741
2741
  children: [
@@ -2778,8 +2778,8 @@ function HomepageFaqs({ frontmatter, routePath }) {
2778
2778
  }, faqItem.question);
2779
2779
  }),
2780
2780
  className: "faqs-box"
2781
- }),
2782
- (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2781
+ }) : null,
2782
+ contactus ? (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2783
2783
  children: [
2784
2784
  (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
2785
2785
  children: contactus.p1,
@@ -2805,6 +2805,10 @@ function HomepageFaqs({ frontmatter, routePath }) {
2805
2805
  }),
2806
2806
  ],
2807
2807
  className: "contactus-div"
2808
+ }) : (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2809
+ style: {
2810
+ height: '48px',
2811
+ }
2808
2812
  }),
2809
2813
  ],
2810
2814
  style: {
@@ -2815,6 +2819,10 @@ function HomepageFaqs({ frontmatter, routePath }) {
2815
2819
  }),
2816
2820
  ],
2817
2821
  className: "faqs-div",
2822
+ }) : (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2823
+ style: {
2824
+ height: '48px',
2825
+ }
2818
2826
  });
2819
2827
  }
2820
2828
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rspress-theme-anatole/theme-default",
3
3
  "author": "Anatole Tong",
4
- "version": "0.3.4",
4
+ "version": "0.3.5",
5
5
  "license": "MIT",
6
6
  "sideEffects": [
7
7
  "*.css",
@@ -21,7 +21,7 @@
21
21
  "types": "./dist/bundle.d.ts",
22
22
  "dependencies": {
23
23
  "@mdx-js/react": "2.3.0",
24
- "@rspress-theme-anatole/shared": "0.3.4",
24
+ "@rspress-theme-anatole/shared": "0.3.5",
25
25
  "@rspress/runtime": "1.43.8",
26
26
  "body-scroll-lock": "4.0.0-beta.0",
27
27
  "copy-to-clipboard": "^3.3.3",
@@ -35,7 +35,7 @@
35
35
  "react-helmet-async": "^1.3.0",
36
36
  "react-router-dom": "6.29.0",
37
37
  "react-syntax-highlighter": "^15.6.1",
38
- "@rspress-theme-anatole/rspress-plugin-mermaid": "0.3.4"
38
+ "@rspress-theme-anatole/rspress-plugin-mermaid": "0.3.5"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@microsoft/api-extractor": "^7.49.2",