@windrun-huaiin/diaomao 12.1.0 → 13.1.0

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/messages/en.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "mainTitle": "Ship a paid AI product with",
11
11
  "mainEyesOn": "Diaomao",
12
12
  "description": "Pricing that upgrades itself. Credits that never leak. Docs that stay in sync. Stripe flows that just work. Diaomao is the full-stack chassis trusted by makers who refuse to waste another weekend on billing infrastructure.",
13
- "button": "Get Diaomao",
13
+ "button": "Get Diaomao",
14
14
  "about": "SSR-first • Mobile-perfected • Fingerprint → Clerk seamless onboarding",
15
15
  "heroImageAlt": "Diaomao – Modern pricing, credit dashboard and documentation system",
16
16
  "heroImageUrl": "https://r2.d8ger.com/default.webp"
@@ -359,7 +359,7 @@
359
359
  "eyesOn": "Diaomao",
360
360
  "description1": "One template. Every hard part solved.",
361
361
  "description2": "Stripe, credits, auth— all production-ready out of the box.",
362
- "button": "Get Diaomao Now",
362
+ "button": "Get Diaomao Now",
363
363
  "url": "https://newspaper-template.org/"
364
364
  },
365
365
  "languageDetection": {
package/messages/zh.json CHANGED
@@ -232,7 +232,7 @@
232
232
  {
233
233
  "title": "文档与导航体系",
234
234
  "description": "Fumadocs + Header Mega Menu 让营销与 Docs 统一视觉,移动端可 pin 关键行动。",
235
- "iconKey": "MessageCircleMore"
235
+ "iconKey": "BookOpen"
236
236
  }
237
237
  ]
238
238
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windrun-huaiin/diaomao",
3
- "version": "12.1.0",
3
+ "version": "13.1.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,81 +15,80 @@
15
15
  "react"
16
16
  ],
17
17
  "dependencies": {
18
- "@clerk/localizations": "^3.28.0",
19
- "@clerk/nextjs": "^6.35.1",
20
- "@clerk/themes": "^2.4.36",
21
- "@clerk/types": "^4.100.0",
22
- "@fingerprintjs/fingerprintjs": "^4.6.2",
23
- "@hookform/resolvers": "^3.10.0",
18
+ "@clerk/localizations": "^3.37.2",
19
+ "@clerk/nextjs": "^6.39.0",
20
+ "@clerk/themes": "^2.4.57",
21
+ "@clerk/types": "^4.101.20",
22
+ "@fingerprintjs/fingerprintjs": "^5.1.0",
23
+ "@hookform/resolvers": "^5.2.2",
24
24
  "@radix-ui/react-alert-dialog": "^1.1.15",
25
25
  "@radix-ui/react-dropdown-menu": "^2.1.16",
26
26
  "@radix-ui/react-label": "^2.1.8",
27
27
  "@radix-ui/react-slot": "^1.2.4",
28
28
  "@tailwindcss/typography": "^0.5.19",
29
29
  "@types/mdx": "^2.0.13",
30
- "@windrun-huaiin/backend-core": "^12.0.0",
31
- "@windrun-huaiin/base-ui": "^12.0.0",
32
- "@windrun-huaiin/lib": "^12.1.0",
33
- "@windrun-huaiin/third-ui": "^12.1.0",
34
- "autoprefixer": "^10.4.22",
30
+ "@windrun-huaiin/backend-core": "^13.0.0",
31
+ "@windrun-huaiin/base-ui": "^13.1.0",
32
+ "@windrun-huaiin/lib": "^13.0.0",
33
+ "@windrun-huaiin/third-ui": "^13.1.2",
34
+ "autoprefixer": "^10.4.27",
35
35
  "class-variance-authority": "^0.7.1",
36
36
  "clsx": "^2.1.1",
37
- "date-fns": "^2.30.0",
37
+ "date-fns": "^4.1.0",
38
38
  "fumadocs-core": "16.0.9",
39
39
  "fumadocs-docgen": "3.0.4",
40
40
  "fumadocs-mdx": "13.0.6",
41
41
  "fumadocs-typescript": "4.0.13",
42
42
  "fumadocs-ui": "16.0.9",
43
- "katex": "^0.16.25",
44
- "lucide-react": "^0.525.0",
45
- "mermaid": "^11.12.1",
46
- "next": "16.0.10",
47
- "next-intl": "^4.4.0",
43
+ "katex": "^0.16.33",
44
+ "lucide-react": "^0.575.0",
45
+ "mermaid": "11.12.1",
46
+ "next": "16.1.6",
47
+ "next-intl": "^4.8.3",
48
48
  "next-themes": "^0.4.6",
49
- "react": "19.2.0",
50
- "react-dom": "19.2.0",
51
- "react-medium-image-zoom": "^5.4.0",
49
+ "react": "19.2.4",
50
+ "react-dom": "19.2.4",
51
+ "react-medium-image-zoom": "^5.4.1",
52
52
  "rehype-katex": "^7.0.1",
53
53
  "remark": "^15.0.1",
54
54
  "remark-frontmatter": "^5.0.0",
55
55
  "remark-gfm": "^4.0.1",
56
56
  "remark-math": "^6.0.0",
57
57
  "remark-mdx": "^3.1.1",
58
- "shiki": "^3.15.0",
58
+ "shiki": "^4.0.0",
59
59
  "stripe": "20.0.0",
60
- "svix": "^1.81.0",
61
- "swiper": "^12.0.3",
62
- "tailwind-merge": "^3.4.0",
60
+ "svix": "^1.86.0",
61
+ "swiper": "^12.1.2",
62
+ "tailwind-merge": "^3.5.0",
63
63
  "tailwindcss-animate": "^1.0.7",
64
- "uuid": "^11.1.0",
65
- "zod": "^4.1.12"
64
+ "uuid": "^13.0.0",
65
+ "zod": "^4.3.6"
66
66
  },
67
67
  "devDependencies": {
68
- "@changesets/cli": "^2.29.5",
68
+ "@changesets/cli": "^2.29.8",
69
69
  "@prisma/client": "^6.19.0",
70
- "@tailwindcss/cli": "^4.1.17",
71
- "@tailwindcss/postcss": "^4.1.17",
70
+ "@tailwindcss/cli": "^4.2.1",
71
+ "@tailwindcss/postcss": "^4.2.1",
72
72
  "@types/hast": "^3.0.4",
73
- "@types/node": "^22.17.2",
73
+ "@types/node": "^25.3.2",
74
74
  "@types/nprogress": "^0.2.3",
75
- "@types/react": "^19.1.2",
76
- "@types/react-dom": "^19.1.3",
77
- "@types/react-medium-image-zoom": "^3.0.3",
78
- "@types/uuid": "^10.0.0",
79
- "@typescript-eslint/parser": "^8.46.4",
80
- "@windrun-huaiin/dev-scripts": "^12.0.2",
75
+ "@types/react": "^19.2.14",
76
+ "@types/react-dom": "^19.2.3",
77
+ "@typescript-eslint/parser": "^8.56.1",
78
+ "@windrun-huaiin/dev-scripts": "^13.0.0",
79
+ "baseline-browser-mapping": "^2.10.0",
81
80
  "eslint": "^9.39.1",
82
- "eslint-config-next": "^16.0.0",
83
- "eslint-plugin-unused-imports": "^4.3.0",
81
+ "eslint-config-next": "^16.1.6",
82
+ "eslint-plugin-unused-imports": "^4.4.1",
84
83
  "fast-glob": "^3.3.3",
85
84
  "nprogress": "^0.2.0",
86
85
  "postcss": "^8.5.6",
87
86
  "prisma": "^6.19.0",
88
- "tailwindcss": "^4.1.17",
87
+ "tailwindcss": "^4.2.1",
89
88
  "ts-morph": "^27.0.2",
90
89
  "ts-node": "^10.9.2",
91
90
  "typescript": "^5.8.3",
92
- "unist-util-visit": "^5.0.0"
91
+ "unist-util-visit": "^5.1.0"
93
92
  },
94
93
  "files": [
95
94
  ".changeset",
@@ -1,6 +1,8 @@
1
1
  import Image from "next/image"
2
2
  import { getTranslations } from 'next-intl/server'
3
3
  import { globalLucideIcons as icons} from '@windrun-huaiin/base-ui/components/server'
4
+ import { themeHeroEyesOnClass } from '@windrun-huaiin/base-ui/lib'
5
+ import { cn } from "@windrun-huaiin/lib"
4
6
  import { GradientButton } from "@windrun-huaiin/third-ui/fuma/mdx"
5
7
 
6
8
  export async function Hero({ locale }: { locale: string }) {
@@ -11,7 +13,7 @@ export async function Hero({ locale }: { locale: string }) {
11
13
  <div className="flex-1 space-y-6">
12
14
  <h1 className="text-4xl md:text-6xl font-bold leading-tight">
13
15
  {t('mainTitle')}<br />{" "}
14
- <span className="text-transparent bg-clip-text bg-linear-to-r from-purple-400 to-pink-600">{t('mainEyesOn')}</span>
16
+ <span className={cn("text-transparent bg-clip-text", themeHeroEyesOnClass)}>{t('mainEyesOn')}</span>
15
17
  </h1>
16
18
  <p className="text-lg text-gray-400 max-w-2xl">
17
19
  {t('description')}
@@ -2,7 +2,7 @@
2
2
  title: Blog
3
3
  description: Articles and thoughts about various topics.
4
4
  icon: Rss
5
- date: 2025-12-23
5
+ date: 2026-03-18
6
6
  ---
7
7
 
8
8
  ## Past List
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: Monthly Summary
3
3
  description: Index and Summary
4
- date: 2025-12-23
4
+ date: 2026-03-18
5
5
  ---
6
6
 
7
7
 
@@ -2,7 +2,7 @@
2
2
  title: Website legal template
3
3
  description: Legal compliance for website template
4
4
  icon: Scale
5
- date: 2025-06-23
5
+ date: 2026-03-18
6
6
  ---
7
7
 
8
8
  # Legal is very important
@@ -2,14 +2,14 @@
2
2
  title: Privacy Policy
3
3
  description: Know your personal information and how we use it
4
4
  icon: ShieldUser
5
- date: 2025-06-23
5
+ date: 2026-03-18
6
6
  ---
7
7
 
8
8
  <SiteX type="site" /> ("we," "us," or "our") provides innovative technology solutions. This Privacy Policy is designed to help you understand how we collect, use, and share personal information from **registered users** and to help you understand and exercise your privacy rights.
9
9
 
10
10
  <Callout title="Important Note" type="info">
11
11
  - Please carefully read this Privacy Policy before using our website. By using our website, you accept and agree to be bound and abide by this Privacy Policy. If you do not accept this Privacy Policy, please do not access or view our website.
12
- - Our website serves global users, and the privacy policy is subject to translation accuracy. If there are any discrepancies between the privacy policy and the original English version, the original English version [/en/legal/privacy](/en/legal/privacy) (“Privacy Policy”) shall prevail.
12
+ - Our website serves users worldwide. This Privacy Policy is provided in multiple languages for convenience. In the event of any inconsistency between the translated versions and this English document, this English version shall prevail.
13
13
  </Callout>
14
14
 
15
15
  ### 1. Scope
@@ -20,7 +20,7 @@ This Privacy Policy applies to personal information we process, including inform
20
20
 
21
21
  The categories of personal information we collect depend on how you interact with us, our Services, and the requirements of applicable law. We collect information you provide to us, information we obtain automatically when you use our Services, and information from other sources.
22
22
 
23
- #### Information You Provide Directly (Registered Users Only)
23
+ **Information You Provide Directly (Registered Users Only)**
24
24
 
25
25
  We may collect the following personal information that you provide to us:
26
26
 
@@ -29,7 +29,7 @@ We may collect the following personal information that you provide to us:
29
29
  - **Surveys**: We may contact you to participate in surveys. If you decide to participate, you may be asked to provide certain information, which may include personal information.
30
30
  - **Business Development**: We may collect personal information from individuals and third parties to evaluate and pursue potential business opportunities.
31
31
 
32
- #### Automatically Collected Information (Registered Users Only)
32
+ **Automatically Collected Information (Registered Users Only)**
33
33
 
34
34
  When you use our Services, we may automatically collect personal information:
35
35
 
@@ -50,21 +50,21 @@ When you use our Services, we may automatically collect personal information:
50
50
 
51
51
  - **Social Media Platforms**: Our Services may contain social media buttons and interactive widgets. Your interactions with these platforms are governed by their respective privacy policies.
52
52
 
53
- #### Payment Information (Registered Users Only)
53
+ **Payment Information (Registered Users Only)**
54
54
  Payment and Billing Information: If you purchase a subscription or service from us, we may collect payment and billing information. This includes your credit card number, billing address, and other information necessary for processing payments. We use secure payment processing services to handle transactions and do not store your credit card information on our servers.
55
55
 
56
- #### Information from Other Sources (Registered Users Only)
56
+ **Information from Other Sources (Registered Users Only)**
57
57
 
58
58
  We may obtain information about you from other sources, including through third-party services and organizations. For example, if you access our Services through a third-party application, we may collect information about you from that third-party application that you have made available via your privacy settings.
59
59
 
60
60
  ### 3. Information We Do Not Collect
61
61
  Sensitive Personal Information: We do not collect sensitive personal information such as Social Security numbers, genetic data, health information, or religious beliefs.
62
62
 
63
- ### 4. How We Use Your Information (Registered Users Only)
63
+ ### 4. How We Use Your Information
64
64
 
65
- We use your information for various business purposes, including:
65
+ We use your information(Registered Users Only) for various business purposes, including:
66
66
 
67
- #### Providing Our Services
67
+ **Providing Our Services**
68
68
  - Managing your information and account
69
69
  - Providing access to certain areas, products, and features of our Services
70
70
  - Communicating with you about your account, activities, Services, and policy changes
@@ -73,7 +73,7 @@ We use your information for various business purposes, including:
73
73
  - Customer or technical support
74
74
  - Enabling you to register for events
75
75
 
76
- #### Administrative Purposes
76
+ **Administrative Purposes**
77
77
  - Pursuing legitimate interests such as direct marketing, research and development, network and information security, and fraud prevention
78
78
  - Detecting security incidents and protecting against malicious, deceptive, fraudulent, or illegal activity
79
79
  - Measuring interest and engagement in our Services
@@ -86,36 +86,36 @@ We use your information for various business purposes, including:
86
86
  - Enforcing our agreements and policies
87
87
  - Complying with our legal obligations
88
88
 
89
- #### Marketing and Advertising
89
+ **Marketing and Advertising**
90
90
  We may use personal information to tailor and provide content and facilitate marketing of our Services. You may opt-out of our marketing and promotional communications at any time.
91
91
 
92
- #### With Your Consent
92
+ **With Your Consent**
93
93
  Where required by applicable law, we may use personal information with your consent.
94
94
 
95
- ### 5. How We Disclose Your Information (Registered Users Only)
95
+ ### 5. How We Disclose Your Information
96
96
 
97
- We disclose your information for various business purposes, including providing our Services, protecting us or others, or during significant business transactions.
97
+ We disclose your information(Registered Users Only) for various business purposes, including providing our Services, protecting us or others, or during significant business transactions.
98
98
 
99
- #### Service-Related Disclosures
99
+ **Service-Related Disclosures**
100
100
  - **Service Providers**: We may share your personal information with third-party service providers who process personal information on our behalf to assist with Services provision and business operations.
101
101
  - **Business Partners**: We may share your personal information with business partners to provide requested products and services or for jointly provided services and events.
102
102
  - **Advertising Partners**: We may allow third-party advertising partners to collect information about your activities for personalized advertising purposes.
103
103
  - **APIs/SDKs**: We may use third-party application programming interfaces and software development kits in our Service functionality.
104
104
 
105
- #### Protective Disclosures
105
+ **Protective Disclosures**
106
106
  We may access, preserve, and disclose information if we believe in good faith it is necessary to: comply with law enforcement or legal process; protect rights, property, or safety; enforce our policies or contracts; collect amounts owed; or assist in investigating suspected illegal activity.
107
107
 
108
- #### Business Transfer Disclosures
108
+ **Business Transfer Disclosures**
109
109
  If we are involved in a merger, acquisition, financing, reorganization, bankruptcy, receivership, purchase, sale, or asset transfer, your information may be sold or transferred as part of such a transaction.
110
110
 
111
- ### 6. Your Privacy Choices and Rights (Registered Users Only)
111
+ ### 6. Your Privacy Choices and Rights
112
112
 
113
- #### Privacy Choices
113
+ **Privacy Choices(Registered Users Only)**
114
114
  - **Email Communications**: You can unsubscribe from marketing emails using the unsubscribe link. You will continue to receive transactional emails and certain non-promotional communications.
115
115
  - **Do Not Track**: We do not respond to or honor DNT signals transmitted by web browsers.
116
116
  - **Cookies and Interest-Based Advertising**: You can adjust browser preferences to limit cookies, though this may affect Service functionality. You can opt-out of targeted advertising through industry self-regulatory programs.
117
117
 
118
- #### Privacy Rights
118
+ **Privacy Rights(Registered Users Only)**
119
119
  Depending on applicable law, you may have rights to:
120
120
  - **Access** your personal information and receive copies
121
121
  - **Request correction** of inaccurate or incomplete personal information
@@ -2,14 +2,14 @@
2
2
  title: Terms of Service
3
3
  description: Know your rights and obligations, and what services we provide
4
4
  icon: ReceiptText
5
- date: 2025-06-23
5
+ date: 2026-03-18
6
6
  ---
7
7
 
8
8
  These Terms of Service ("Terms") are entered into by you and <SiteX type="site" /> ("we," "us," or "our") and govern your access to and use of our website and all services, materials, tools, and functionality provided in connection with our website. "You" as used in these Terms refers to any individual or entity accessing or using our website.
9
9
 
10
10
  <Callout title="Important Note" type="info">
11
11
  - Please carefully read these Terms before using our website. By using our website, you accept and agree to be bound and abide by these Terms. If you do not accept these Terms, please do not access or view our website.
12
- - Our website serves global users, and the terms and conditions are subject to translation accuracy. If there are any discrepancies between the terms and conditions and the original English version, the original English version [/en/legal/terms](/en/legal/terms) (“Terms of Service”) shall prevail.
12
+ - Our website serves users worldwide. This Privacy Policy is provided in multiple languages for convenience. In the event of any inconsistency between the translated versions and this English document, this English version shall prevail.
13
13
  </Callout>
14
14
 
15
15
  **Please note that our products and services (including free trials) are subject to separate subscription agreements and standard terms and conditions (or any other service agreement you may have entered into with us), not these website Terms. Our service agreements describe how we provide services, payment terms, and other terms related to our services.**
@@ -59,9 +59,9 @@ Although we may periodically update or correct information displayed on our webs
59
59
 
60
60
  ### 7. Privacy
61
61
 
62
- Our Privacy Policy, located at [/legal/privacy](/legal/privacy) ("Privacy Policy"), describes our collection, use, and disclosure of personal information in connection with our website for **registered users**. Our Privacy Policy is expressly incorporated into these Terms, and your use of our website constitutes agreement to the collection, use, and disclosure practices described in our Privacy Policy.
62
+ Our [Privacy Policy](/legal/privacy), describes our collection, use, and disclosure of personal information in connection with our website for **registered users**. Our Privacy Policy is expressly incorporated into these Terms, and your use of our website constitutes agreement to the collection, use, and disclosure practices described in our Privacy Policy.
63
63
 
64
- ### 8. Third-Party Website Links and Other Information; Social Media
64
+ ### 8. Third-Party Platforms & Links
65
65
 
66
66
  Our website may contain links to third-party owned and controlled websites not under our control, which links are provided to you only as a convenience. The websites to which you may link have separate and independent terms and conditions as well as privacy policies, which we encourage you to read before using such websites. We have no responsibility or liability for the content and activities of these websites. Accordingly, you visit/access these websites entirely at your own risk.
67
67