@rspress-theme-anatole/theme-default 0.7.2 → 0.7.4

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/bundle.css CHANGED
@@ -3715,6 +3715,21 @@ p {
3715
3715
  margin: 45px 40px 72px 40px;
3716
3716
  }
3717
3717
 
3718
+ .topics-item-labels {
3719
+ margin-top: 8px;
3720
+ display: flex;
3721
+ gap: 8px;
3722
+ flex-wrap: wrap;
3723
+ }
3724
+
3725
+ .topics-label {
3726
+ background-color: #f1f1f1;
3727
+ border-radius: 12px;
3728
+ padding: 2px 8px;
3729
+ font-size: 12px;
3730
+ color: #555;
3731
+ }
3732
+
3718
3733
  .faqs-div {
3719
3734
  background-color: #F1F2F4;
3720
3735
  }
@@ -3808,4 +3823,211 @@ p {
3808
3823
 
3809
3824
  .rspress-nav-search-button {
3810
3825
  display: none;
3826
+ }
3827
+
3828
+ .whatsnew-div {
3829
+ margin: 45px 40px;
3830
+ }
3831
+
3832
+ .whatsnew-title {
3833
+ margin-bottom: 16px;
3834
+ font-size: 24px;
3835
+ font-weight: 700;
3836
+ color: #32363E;
3837
+ }
3838
+
3839
+ .whatsnew-cards {
3840
+ display: grid;
3841
+ grid-template-columns: repeat(2, 1fr);
3842
+ gap: 24px;
3843
+ }
3844
+
3845
+ .whatsnew-card {
3846
+ border: 1px solid #e5e7eb;
3847
+ border-radius: 8px;
3848
+ padding: 16px;
3849
+ background: #fff;
3850
+ }
3851
+
3852
+ .whatsnew-label {
3853
+ display: inline-block;
3854
+ background: #ff6a00;
3855
+ color: #fff;
3856
+ font-size: 14px;
3857
+ font-weight: 600;
3858
+ padding: 2px 8px;
3859
+ border-radius: 12px;
3860
+ margin-bottom: 8px;
3861
+ }
3862
+
3863
+ .whatsnew-card-title {
3864
+ font-size: 20px;
3865
+ font-weight: 700;
3866
+ margin: 4px 0;
3867
+ }
3868
+
3869
+ .whatsnew-date {
3870
+ font-size: 16px;
3871
+ color: #6b7280;
3872
+ margin-bottom: 12px;
3873
+ }
3874
+
3875
+ .whatsnew-link {
3876
+ font-weight: 600;
3877
+ color: #111;
3878
+ text-decoration: none;
3879
+ }
3880
+
3881
+ .features-tabs {
3882
+ display: flex;
3883
+ gap: 24px;
3884
+ border-bottom: 2px solid #eee;
3885
+ margin-bottom: 16px;
3886
+ }
3887
+
3888
+ .features-tab {
3889
+ background: none;
3890
+ border: none;
3891
+ font-size: 18px;
3892
+ font-weight: 600;
3893
+ cursor: pointer;
3894
+ padding: 8px 0;
3895
+ color: #444;
3896
+ }
3897
+
3898
+ .features-tab.active {
3899
+ color: #e60023;
3900
+ border-bottom: 2px solid #e60023;
3901
+ }
3902
+
3903
+ .request-article-section {
3904
+ display: flex;
3905
+ justify-content: center;
3906
+ width: 100%;
3907
+ background: #fff;
3908
+ }
3909
+
3910
+ .request-article-title {
3911
+ font-size: 32px;
3912
+ font-weight: 700;
3913
+ text-align: center;
3914
+ margin-bottom: 8px;
3915
+ color: #32363E;
3916
+ }
3917
+
3918
+ .request-article-desc {
3919
+ font-size: 14px;
3920
+ font-weight: 400;
3921
+ text-align: center;
3922
+ color: #494F5A;
3923
+ margin-bottom: 24px;
3924
+ }
3925
+
3926
+ .request-article-form {
3927
+ display: flex;
3928
+ flex-direction: column;
3929
+ align-items: center;
3930
+ gap: 20px;
3931
+ width: 100%;
3932
+ max-width: 600px;
3933
+ align-items: flex-start;
3934
+ }
3935
+
3936
+ .request-article-field {
3937
+ display: flex;
3938
+ flex-direction: column;
3939
+ width: 100%;
3940
+ text-align: left;
3941
+ }
3942
+
3943
+ .request-article-field label {
3944
+ font-weight: 500;
3945
+ margin-bottom: 6px;
3946
+ color: #333;
3947
+ }
3948
+
3949
+ .request-article-select,
3950
+ .request-article-input,
3951
+ .request-article-textarea {
3952
+ border: 1px solid #ccc;
3953
+ border-radius: 8px;
3954
+ padding: 10px 12px;
3955
+ font-size: 15px;
3956
+ transition: border-color 0.2s ease, box-shadow 0.2s ease;
3957
+ }
3958
+
3959
+ .request-article-select:focus,
3960
+ .request-article-input:focus,
3961
+ .request-article-textarea:focus {
3962
+ border-color: #e63946;
3963
+ box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15);
3964
+ outline: none;
3965
+ }
3966
+
3967
+ .request-article-textarea {
3968
+ min-height: 120px;
3969
+ resize: vertical;
3970
+ }
3971
+
3972
+ .request-article-checkbox {
3973
+ display: flex;
3974
+ align-items: center;
3975
+ gap: 8px;
3976
+ width: 100%;
3977
+ }
3978
+
3979
+ .request-article-checkbox-input {
3980
+ width: 18px;
3981
+ height: 18px;
3982
+ accent-color: #e63946;
3983
+ cursor: pointer;
3984
+ }
3985
+
3986
+ .request-article-submit {
3987
+ background: #e63946;
3988
+ color: #fff;
3989
+ border: none;
3990
+ border-radius: 32px;
3991
+ padding: 12px 32px;
3992
+ font-size: 16px;
3993
+ font-weight: 600;
3994
+ cursor: pointer;
3995
+ transition: background 0.2s ease, transform 0.1s ease;
3996
+ }
3997
+
3998
+ .request-article-submit:hover {
3999
+ background: #d62839;
4000
+ }
4001
+
4002
+ .request-article-submit:active {
4003
+ transform: scale(0.97);
4004
+ }
4005
+
4006
+ .no-reply {
4007
+ font-size: 13px;
4008
+ font-style: italic;
4009
+ background-color: #EAEAEA;
4010
+ height: 24px;
4011
+ padding: 8px 0;
4012
+ }
4013
+
4014
+ .signature {
4015
+ background-color: #F0F0F0;
4016
+ padding: 25px 0;
4017
+ }
4018
+
4019
+ .signature-logo {
4020
+ display: inline-block;
4021
+ }
4022
+
4023
+ .signature-logo-text {
4024
+ color: #737373;
4025
+ font-size: 28px;
4026
+ letter-spacing: 1px;
4027
+ }
4028
+
4029
+ .signature-slogan {
4030
+ margin: 2px 0 16px 0;
4031
+ color: #737373;
4032
+ font-size: 14px;
3811
4033
  }
package/dist/bundle.js CHANGED
@@ -1443,7 +1443,7 @@ function HomepageLayout(props) {
1443
1443
  frontmatter: frontmatter,
1444
1444
  routePath: routePath
1445
1445
  }),
1446
- (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HomepageFeatures, {
1446
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HomepageFeaturesTabs, {
1447
1447
  frontmatter: frontmatter,
1448
1448
  routePath: routePath
1449
1449
  }),
@@ -1478,6 +1478,10 @@ function GettingStartLayout(props) {
1478
1478
  frontmatter: frontmatter,
1479
1479
  routePath: routePath
1480
1480
  }),
1481
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(WhatsNew, {
1482
+ frontmatter: frontmatter,
1483
+ routePath: routePath
1484
+ }),
1481
1485
  (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HomepageFeatures, {
1482
1486
  frontmatter: frontmatter,
1483
1487
  routePath: routePath
@@ -1493,6 +1497,33 @@ function GettingStartLayout(props) {
1493
1497
  });
1494
1498
  }
1495
1499
 
1500
+ function RequestArticleLayout(props) {
1501
+ const { page: { frontmatter, routePath } } = (0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.usePageData)();
1502
+
1503
+ return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
1504
+ className: "relative",
1505
+ style: {
1506
+ minHeight: 'calc(100vh - var(--rp-nav-height))',
1507
+ },
1508
+ children: [
1509
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
1510
+ className: "pb-12",
1511
+ children: [
1512
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(RequestArticleSection, {
1513
+ frontmatter: frontmatter,
1514
+ routePath: routePath
1515
+ }),
1516
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(NeedHelpSection, {
1517
+ frontmatter: frontmatter,
1518
+ routePath: routePath
1519
+ }),
1520
+ ]
1521
+ }),
1522
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(HomeFooter, {})
1523
+ ]
1524
+ });
1525
+ }
1526
+
1496
1527
  function HomeLayout(props) {
1497
1528
  const { beforeHero, afterHero, beforeFeatures, afterFeatures } = props;
1498
1529
  const { page: { frontmatter, routePath } } = (0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.usePageData)();
@@ -1659,6 +1690,10 @@ const Layout = (props) => {
1659
1690
  return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(GettingStartLayout, {
1660
1691
  ...homeProps
1661
1692
  });
1693
+ case 'requestarticle':
1694
+ return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(RequestArticleLayout, {
1695
+ ...homeProps
1696
+ });
1662
1697
  case 'doc':
1663
1698
  return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(DocLayout, {
1664
1699
  ...docProps,
@@ -2924,6 +2959,15 @@ function HomepageFeatures({ frontmatter, routePath }) {
2924
2959
  className: "topics-item-desc",
2925
2960
  children: featureItem.desc
2926
2961
  }),
2962
+ featureItem.labels && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2963
+ className: "topics-item-labels",
2964
+ children: featureItem.labels.map((label) =>
2965
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
2966
+ className: "topics-label",
2967
+ children: label
2968
+ }, label)
2969
+ )
2970
+ }),
2927
2971
  ]
2928
2972
  }, featureItem.text);
2929
2973
  }),
@@ -2944,6 +2988,79 @@ function HomepageFeatures({ frontmatter, routePath }) {
2944
2988
  });
2945
2989
  }
2946
2990
 
2991
+ function HomepageFeaturesTabs({ frontmatter, routePath }) {
2992
+ const [activeTab, setActiveTab] = __WEBPACK_EXTERNAL_MODULE_react__.useState(0);
2993
+ const features = frontmatter?.features;
2994
+
2995
+ return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
2996
+ className: "features-div",
2997
+ children: [
2998
+ //Tabs
2999
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3000
+ className: "features-tabs",
3001
+ children: features.tabs.map((tab, idx) =>
3002
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("button", {
3003
+ className: "features-tab" + (idx === activeTab ? " active" : ""),
3004
+ onClick: () => setActiveTab(idx),
3005
+ children: tab.name
3006
+ }, tab.name)
3007
+ )
3008
+ }),
3009
+
3010
+ // Tab content
3011
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3012
+ children: features.tabs[activeTab].rows.map((featuresRow) => {
3013
+ return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3014
+ style: {
3015
+ display: 'grid',
3016
+ gridTemplateColumns: 'repeat(4, 1fr)',
3017
+ gap: '24px',
3018
+ marginTop: '24px',
3019
+ marginBottom: '24px',
3020
+ alignItems: 'stretch',
3021
+ },
3022
+ children: featuresRow.items.map((featureItem) =>
3023
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3024
+ className: "topics-item",
3025
+ children: [
3026
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3027
+ className: "features-item-icon-div",
3028
+ children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("i", {
3029
+ className: featureItem.icon + " features-item-icon",
3030
+ })
3031
+ }),
3032
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
3033
+ className: "topics-item-text",
3034
+ children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
3035
+ href: featureItem.link,
3036
+ children: (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
3037
+ children: featureItem.text
3038
+ })
3039
+ })
3040
+ }),
3041
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
3042
+ className: "topics-item-desc",
3043
+ children: featureItem.desc
3044
+ }),
3045
+ featureItem.labels && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3046
+ className: "topics-item-labels",
3047
+ children: featureItem.labels.map((label) =>
3048
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
3049
+ className: "topics-label",
3050
+ children: label
3051
+ }, label)
3052
+ )
3053
+ }),
3054
+ ]
3055
+ }, featureItem.text)
3056
+ )
3057
+ }, featuresRow.items[0].text);
3058
+ })
3059
+ })
3060
+ ]
3061
+ });
3062
+ }
3063
+
2947
3064
  function HomepageFaqs({ frontmatter, routePath }) {
2948
3065
  const tabs = frontmatter?.faqTabs || [];
2949
3066
  const [activeTab, setActiveTab] = __WEBPACK_EXTERNAL_MODULE_react__.useState(tabs[0]?.title || '');
@@ -3078,6 +3195,256 @@ function NeedHelpSection({ frontmatter, routePath }) {
3078
3195
  });
3079
3196
  }
3080
3197
 
3198
+ function RequestArticleSection({ frontmatter }) {
3199
+ const { siteData } = (0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.usePageData)();
3200
+ const { apiUrl, emailSupport } = siteData;
3201
+ const requestArticle = frontmatter?.requestArticle;
3202
+
3203
+ const handleSubmit = async (event) => {
3204
+ event.preventDefault();
3205
+
3206
+ const form = event.target;
3207
+ const solution = form.querySelector("select")?.value || "";
3208
+ const question = form.querySelector('textarea')?.value || "";
3209
+ const name = form.querySelector('input[type="text"]')?.value || "Anonymous";
3210
+ const email = form.querySelector('input[type="email"]')?.value || "No email provided";
3211
+ const notify = form.querySelector('input[type="checkbox"]')?.checked || false;
3212
+
3213
+ const data = {
3214
+ to: emailSupport,
3215
+ subject: `[Wiki] ${requestArticle.title} for ${solution}`,
3216
+ html: `
3217
+ <div style="font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#333;max-width:600px;margin:0 auto;border:1px solid #e0e0e0;border-radius:8px;padding:24px;background-color:#fafafa;">
3218
+ <p style="margin-top:0;margin-bottom:16px;">Hi Team,</p>
3219
+
3220
+ <p style="margin-top:0;margin-bottom:16px;">
3221
+ A new article request has been submitted with the following details:
3222
+ </p>
3223
+
3224
+ <table style="width:100%;border-collapse:collapse;margin-top:8px;">
3225
+ <tr>
3226
+ <td style="padding:8px 0;width:160px;font-weight:bold;">Solution:</td>
3227
+ <td style="padding:8px 0;">${solution}</td>
3228
+ </tr>
3229
+ <tr>
3230
+ <td style="padding:8px 0;vertical-align:top;font-weight:bold;">Question:</td>
3231
+ <td style="padding:8px 0;white-space:pre-line;">${question}</td>
3232
+ </tr>
3233
+ <tr>
3234
+ <td style="padding:8px 0;font-weight:bold;">Requested by:</td>
3235
+ <td style="padding:8px 0;">${name}</td>
3236
+ </tr>
3237
+ <tr>
3238
+ <td style="padding:8px 0;font-weight:bold;">Email:</td>
3239
+ <td style="padding:8px 0;">${email}</td>
3240
+ </tr>
3241
+ <tr>
3242
+ <td style="padding:8px 0;font-weight:bold;">Notify when published:</td>
3243
+ <td style="padding:8px 0;">${notify ? "Yes" : "No"}</td>
3244
+ </tr>
3245
+ </table>
3246
+
3247
+ <p style="margin-top:24px;margin-bottom:24px;">
3248
+ Please review this request and proceed accordingly.
3249
+ </p>
3250
+
3251
+ <p style="margin-top:24px;margin-bottom:24px;">
3252
+ Sincerely,
3253
+ </p>
3254
+
3255
+ <hr style="border:none;border-top:1px solid #ddd;margin:24px 0;">
3256
+
3257
+ <div style="text-align:center;color:#555;font-size:12px;">
3258
+ <strong>Do not reply to this email.</strong><br>
3259
+ This inbox is not monitored and replies will not be received.
3260
+ </div>
3261
+
3262
+ <div style="text-align:center;margin-top:24px;">
3263
+ <img alt="AvePoint logo"
3264
+ style="vertical-align:middle;height:24px;"
3265
+ src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAYCAYAAAAPtVbGAAAAAXNSR0IArs4c6QAAAsJJREFUSEullU1IFHEYxp9ndpc+KHLzAyyDIIjO+TEzqWDtbFYXK/Bi0Cm61Ck6iEFsFEhFtyKiY2SBh0AIyZ1VQ2P/q3hMKIgOkUJahgRG6+4bo7kfzs7OSnPb+b/v8/s/78csscVHLP0T7dShUmkSNa5BoCMTvMexyZmNGG6FIRE9CnIElE7GUyMbuXLSPIKsvAegFeh9pa0anN9bg0SNHxCEQSwhrqoJiDgalpH1uOwAbXWhYohEmpvBwFReTEzaKSXRliaINu1VEdqKlUPWb1sYL7SVJifMFmiS+m+IWGYPIM9dQtQuomr/AJa+rHpAhmirroqciNtFTtMph0T04yBHi0H8iXBDDQcHM74QscxeQPo9p1DYx0Sy/98AvATQCOABbfW44hEWy3BKESgz6hnaKlhuFco6Ecu4A+CG7y4J7jKhej2b73UgjY0hhEMrPi420jOYW97J2dk/pfQ8nUjUvAWRm74ucoXnbcaTJeNLQny22JtrqwAB1/aXhkTMh6BcqdhF3s0jxpNXN+e5INLdHSixXI65Z9DQj2PJj3jXehTI9EFwznWR8IGgsxuF790Qy3gN4ExB0AraTu1iLOYqg7S27saOzHcAofx2YphxVZhf/BWWGDRMru1FHh6SPRxOLXtOYYdxEEF8LjgXtKkgY/neFDkRS58G2JRLELxiQp33641YxgcAhwvyZphQOZ0cRE631yKd/lYkGEjv45uZeX+I3gZwoiguFKrj8MSC8y4PsYwxAB1FgZKtYWLKqXnZRzrb65FJz20KektbremtQSTSUg1qiy4lTZo4ksr9V3v2JWpcguCp63x1ey3HxxfXIZaRBGC4gsgFxpN1vk4sw/mc5Ccsn6BoK5NytqMKv34veQoRXYyrIU8XEf0yyCee+duCeymWPgewvuxts+zhaPLF5hixzOuA3Pfp2PxfA8n5ENhQazEAAAAASUVORK5CYII=">
3266
+ <span style="font-weight:bold;font-size:14px;color:#222;">&nbsp;AvePoint</span>
3267
+ <div style="color:#777;font-size:12px;margin-top:4px;">Collaborate with confidence</div>
3268
+ <div style="color:#999;font-size:11px;margin-top:4px;">© 2025 AvePoint Inc. All Rights Reserved.</div>
3269
+ </div>
3270
+ </div>
3271
+ `,
3272
+ };
3273
+
3274
+ try {
3275
+ const response = await fetch(apiUrl + "/api/email", {
3276
+ method: "POST",
3277
+ headers: { "Content-Type": "application/json" },
3278
+ body: JSON.stringify(data),
3279
+ });
3280
+
3281
+ const result = await response.json();
3282
+ if (result.success) {
3283
+ alert("✅ Request sent successfully!");
3284
+ form.reset();
3285
+ } else {
3286
+ alert("❌ Failed to send request.");
3287
+ }
3288
+ } catch (error) {
3289
+ console.error("Error:", error);
3290
+ alert("❌ Something went wrong while sending your request.");
3291
+ }
3292
+ };
3293
+
3294
+
3295
+ return (requestArticle)
3296
+ ? (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3297
+ children: [
3298
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3299
+ children: [
3300
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h2", {
3301
+ children: requestArticle.title,
3302
+ className: "request-article-title"
3303
+ }),
3304
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
3305
+ children: requestArticle.description,
3306
+ className: "request-article-desc"
3307
+ }),
3308
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("form", {
3309
+ onSubmit: handleSubmit,
3310
+ children: [
3311
+ ...(requestArticle.fields || []).map((field, index) => {
3312
+ switch (field.type) {
3313
+ case 'solution':
3314
+ return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3315
+ children: [
3316
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("label", { children: field.label }),
3317
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("select", {
3318
+ className: "request-article-select",
3319
+ children: [
3320
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("option", {
3321
+ value: "",
3322
+ disabled: true,
3323
+ selected: true,
3324
+ hidden: true,
3325
+ style: { fontStyle: "italic", color: "grey" },
3326
+ children: field.placeholder
3327
+ }),
3328
+ ...(field.options || []).map((opt, i) =>
3329
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("option", { children: opt }, i)
3330
+ )
3331
+ ]
3332
+ })
3333
+ ],
3334
+ key: index,
3335
+ name: 'solution',
3336
+ className: "request-article-field"
3337
+ });
3338
+
3339
+ case 'question':
3340
+ return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3341
+ children: [
3342
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("label", { children: field.label }),
3343
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("textarea", {
3344
+ placeholder: field.placeholder,
3345
+ className: "request-article-textarea"
3346
+ })
3347
+ ],
3348
+ key: index,
3349
+ className: "request-article-field"
3350
+ });
3351
+
3352
+ case 'name':
3353
+ case 'email':
3354
+ return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3355
+ children: [
3356
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("label", { children: field.label }),
3357
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("input", {
3358
+ type: field.type === 'email' ? 'email' : 'text',
3359
+ placeholder: field.placeholder,
3360
+ className: "request-article-input"
3361
+ })
3362
+ ],
3363
+ key: index,
3364
+ className: "request-article-field"
3365
+ });
3366
+
3367
+ case 'checkbox':
3368
+ return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3369
+ children: [
3370
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("input", { type: "checkbox", className: "request-article-checkbox-input" }),
3371
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", { children: field.label })
3372
+ ],
3373
+ key: index,
3374
+ className: "request-article-checkbox"
3375
+ });
3376
+
3377
+ default:
3378
+ return null;
3379
+ }
3380
+ }),
3381
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("button", {
3382
+ type: "submit",
3383
+ className: "request-article-submit",
3384
+ children: requestArticle.button?.text ?? "Submit"
3385
+ })
3386
+ ],
3387
+ className: "request-article-form"
3388
+ })
3389
+ ],
3390
+ style: {
3391
+ width: '100%',
3392
+ padding: '72px',
3393
+ display: 'flex',
3394
+ flexDirection: 'column',
3395
+ gap: '12px',
3396
+ alignItems: 'flex-start'
3397
+ }
3398
+ })
3399
+ ],
3400
+ className: "request-article-section"
3401
+ })
3402
+ : (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3403
+ style: { height: '48px' }
3404
+ });
3405
+ }
3406
+
3407
+ function WhatsNew({ frontmatter }) {
3408
+ const whatsNew = frontmatter?.whatsNew;
3409
+
3410
+ return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3411
+ className: "whatsnew-div",
3412
+ children: [
3413
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h2", {
3414
+ className: "whatsnew-title",
3415
+ children: whatsNew.title ?? "What's New"
3416
+ }),
3417
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3418
+ className: "whatsnew-cards",
3419
+ children: whatsNew.items.map((item) => {
3420
+ return (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
3421
+ className: "whatsnew-card",
3422
+ children: [
3423
+ item.label && (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("span", {
3424
+ className: "whatsnew-label",
3425
+ children: item.label
3426
+ }),
3427
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("h3", {
3428
+ className: "whatsnew-card-title",
3429
+ children: item.title
3430
+ }),
3431
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
3432
+ className: "whatsnew-date",
3433
+ children: item.date
3434
+ }),
3435
+ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("a", {
3436
+ href: item.link,
3437
+ className: "whatsnew-link",
3438
+ children: "View Details →"
3439
+ }),
3440
+ ]
3441
+ }, item.title);
3442
+ })
3443
+ })
3444
+ ]
3445
+ });
3446
+ }
3447
+
3081
3448
  function HomeFooter() {
3082
3449
  const { siteData } = (0, __WEBPACK_EXTERNAL_MODULE__rspress_runtime_0abd3046__.usePageData)();
3083
3450
  const { group, message, links, social } = siteData.themeConfig.footer || {};
@@ -5796,4 +6163,4 @@ async function exportContentToPDF() {
5796
6163
  });
5797
6164
  }
5798
6165
 
5799
- export { Aside, Badge, Button, Card, DocFooter, DocLayout, EditLink, HomeFeature, HomeFooter, HomeLayout, HomepageLayout, GettingStartLayout, HomepageTopSearch, IntroBanner, HomepageTopics, HomepageFeatures, HomepageFaqs, LastUpdated, Layout, Link, LinkCard, Nav, NotFoundLayout, Overview, PackageManagerTabs, PrevNextPage, types_RenderType as RenderType, ScrollToTop, Search, SearchPanel, Sidebar, SidebarList, SocialLinks, SourceCode, Steps, SwitchAppearance, Tab, Tabs, Tag, Toc, bindingAsideScroll, src_rslib_entry_ as default, getCustomMDXComponent, isMobileDevice, parseInlineMarkdownText, renderHtmlOrText, renderInlineMarkdown, scrollToTarget, setup, useEditLink, useEnableNav, useFullTextSearch, useHiddenNav, useLocaleSiteData, usePathUtils, usePrevNextPage, useRedirect4FirstVisit, useSidebarData, useThemeState };
6166
+ export { Aside, Badge, Button, Card, DocFooter, DocLayout, EditLink, HomeFeature, HomeFooter, HomeLayout, HomepageLayout, GettingStartLayout, RequestArticleLayout, HomepageTopSearch, IntroBanner, HomepageTopics, HomepageFeatures, HomepageFeaturesTabs, WhatsNew, HomepageFaqs, LastUpdated, Layout, Link, LinkCard, Nav, NotFoundLayout, Overview, PackageManagerTabs, PrevNextPage, types_RenderType as RenderType, ScrollToTop, Search, SearchPanel, Sidebar, SidebarList, SocialLinks, SourceCode, Steps, SwitchAppearance, Tab, Tabs, Tag, Toc, bindingAsideScroll, src_rslib_entry_ as default, getCustomMDXComponent, isMobileDevice, parseInlineMarkdownText, renderHtmlOrText, renderInlineMarkdown, scrollToTarget, setup, useEditLink, useEnableNav, useFullTextSearch, useHiddenNav, useLocaleSiteData, usePathUtils, usePrevNextPage, useRedirect4FirstVisit, useSidebarData, useThemeState };
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.7.2",
4
+ "version": "0.7.4",
5
5
  "license": "MIT",
6
6
  "sideEffects": [
7
7
  "*.css",
@@ -21,8 +21,8 @@
21
21
  "types": "./dist/bundle.d.ts",
22
22
  "dependencies": {
23
23
  "@mdx-js/react": "2.3.0",
24
- "@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.2",
25
- "@rspress-theme-anatole/shared": "0.7.2",
24
+ "@rspress-theme-anatole/rspress-plugin-mermaid": "0.7.4",
25
+ "@rspress-theme-anatole/shared": "0.7.4",
26
26
  "@rspress/runtime": "1.43.8",
27
27
  "body-scroll-lock": "4.0.0-beta.0",
28
28
  "copy-to-clipboard": "^3.3.3",