@windrun-huaiin/third-ui 22.0.0 → 22.0.1

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/README.md CHANGED
@@ -42,10 +42,7 @@ Your-project/
42
42
 
43
43
  ## Usage Example
44
44
 
45
- ### Import all components
46
- ```tsx
47
- import { ClerkUser, CTA, TOC } from '@windrun-huaiin/third-ui';
48
- ```
45
+ Root entry import is not supported. Always import from an explicit subpath such as `@windrun-huaiin/third-ui/clerk` or `@windrun-huaiin/third-ui/main`.
49
46
 
50
47
  ### Import components by module
51
48
  ```tsx
@@ -56,7 +53,10 @@ import { ClerkUser, ClerkOrganization } from '@windrun-huaiin/third-ui/clerk';
56
53
  import { CTA, Features } from '@windrun-huaiin/third-ui/main';
57
54
 
58
55
  // Only import Fumadocs components
59
- import { TOC, FumaBannerSuit } from '@windrun-huaiin/third-ui/fuma';
56
+ import { FumaPageGenerator, FumaBannerSuit } from '@windrun-huaiin/third-ui/fuma/server';
57
+
58
+ // Shared MDX building blocks
59
+ import { TocFooterWrapper, PortableClerkTOC } from '@windrun-huaiin/third-ui/fuma/mdx';
60
60
  ```
61
61
 
62
62
  ### Use components
@@ -219,4 +219,4 @@ All configuration parameters will be automatically obtained from the global conf
219
219
  - [Newspaper Template](https://newspaper-template.org/en)
220
220
  - [breathing exercise](https://breathingexercise.net/en)
221
221
  - [ai directory list](https://aidirectorylist.com/en)
222
- - [reve image directory](https://reveimage.directory/en)
222
+ - [reve image directory](https://reveimage.directory/en)
@@ -0,0 +1,34 @@
1
+ 'use strict';
2
+
3
+ var tslib = require('tslib');
4
+ var server = require('next-intl/server');
5
+ var lib = require('@windrun-huaiin/lib');
6
+
7
+ const DEFAULT_SITE_ICONS = [
8
+ { rel: 'icon', type: 'image/png', sizes: '16x16', url: '/favicon-16x16.png' },
9
+ { rel: 'icon', type: 'image/png', sizes: '32x32', url: '/favicon-32x32.png' },
10
+ { rel: 'icon', type: 'image/ico', url: '/favicon.ico' },
11
+ { rel: 'apple-touch-icon', sizes: '180x180', url: '/favicon-180x180.png' },
12
+ { rel: 'android-chrome', sizes: '512x512', url: '/favicon-512x512.png' },
13
+ ];
14
+ function createLocalizedSiteMetadata(options) {
15
+ return tslib.__awaiter(this, void 0, void 0, function* () {
16
+ const { baseUrl, defaultLocale, locale, localePrefixAsNeeded, locales } = options;
17
+ const t = yield server.getTranslations({ locale, namespace: 'home' });
18
+ return {
19
+ title: t('webTitle'),
20
+ description: t('webDescription'),
21
+ keywords: t('keywords'),
22
+ alternates: {
23
+ canonical: `${baseUrl}${lib.getAsNeededLocalizedUrl(locale, '/', localePrefixAsNeeded, defaultLocale)}`,
24
+ languages: Object.fromEntries(locales.map((siteLocale) => [
25
+ siteLocale,
26
+ `${baseUrl}${lib.getAsNeededLocalizedUrl(siteLocale, '/', localePrefixAsNeeded, defaultLocale)}`,
27
+ ])),
28
+ },
29
+ icons: DEFAULT_SITE_ICONS,
30
+ };
31
+ });
32
+ }
33
+
34
+ exports.createLocalizedSiteMetadata = createLocalizedSiteMetadata;
@@ -0,0 +1,32 @@
1
+ import { __awaiter } from 'tslib';
2
+ import { getTranslations } from 'next-intl/server';
3
+ import { getAsNeededLocalizedUrl } from '@windrun-huaiin/lib';
4
+
5
+ const DEFAULT_SITE_ICONS = [
6
+ { rel: 'icon', type: 'image/png', sizes: '16x16', url: '/favicon-16x16.png' },
7
+ { rel: 'icon', type: 'image/png', sizes: '32x32', url: '/favicon-32x32.png' },
8
+ { rel: 'icon', type: 'image/ico', url: '/favicon.ico' },
9
+ { rel: 'apple-touch-icon', sizes: '180x180', url: '/favicon-180x180.png' },
10
+ { rel: 'android-chrome', sizes: '512x512', url: '/favicon-512x512.png' },
11
+ ];
12
+ function createLocalizedSiteMetadata(options) {
13
+ return __awaiter(this, void 0, void 0, function* () {
14
+ const { baseUrl, defaultLocale, locale, localePrefixAsNeeded, locales } = options;
15
+ const t = yield getTranslations({ locale, namespace: 'home' });
16
+ return {
17
+ title: t('webTitle'),
18
+ description: t('webDescription'),
19
+ keywords: t('keywords'),
20
+ alternates: {
21
+ canonical: `${baseUrl}${getAsNeededLocalizedUrl(locale, '/', localePrefixAsNeeded, defaultLocale)}`,
22
+ languages: Object.fromEntries(locales.map((siteLocale) => [
23
+ siteLocale,
24
+ `${baseUrl}${getAsNeededLocalizedUrl(siteLocale, '/', localePrefixAsNeeded, defaultLocale)}`,
25
+ ])),
26
+ },
27
+ icons: DEFAULT_SITE_ICONS,
28
+ };
29
+ });
30
+ }
31
+
32
+ export { createLocalizedSiteMetadata };
package/package.json CHANGED
@@ -1,10 +1,7 @@
1
1
  {
2
2
  "name": "@windrun-huaiin/third-ui",
3
- "version": "22.0.0",
3
+ "version": "22.0.1",
4
4
  "description": "Third-party integrated UI components for windrun-huaiin projects",
5
- "main": "./dist/index.js",
6
- "module": "./dist/index.mjs",
7
- "types": "./dist/index.d.ts",
8
5
  "exports": {
9
6
  "./clerk": {
10
7
  "types": "./dist/clerk/index.d.ts",
@@ -126,8 +123,8 @@
126
123
  "unified": "^11.0.5",
127
124
  "zod": "^4.3.6",
128
125
  "@windrun-huaiin/base-ui": "^22.0.0",
129
- "@windrun-huaiin/contracts": "^22.0.0",
130
- "@windrun-huaiin/lib": "^22.0.0"
126
+ "@windrun-huaiin/lib": "^22.0.0",
127
+ "@windrun-huaiin/contracts": "^22.0.0"
131
128
  },
132
129
  "peerDependencies": {
133
130
  "clsx": "^2.1.1",