@funhub/platform 0.1.127 → 0.1.131

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.
@@ -6,7 +6,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
6
6
  //#region components/ui/badge.d.ts
7
7
  /** badgeVariants 工具定义。 */
8
8
  declare const badgeVariants: (props?: ({
9
- variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
9
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
10
10
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
11
11
  /** Badge 组件。 */
12
12
  declare function Badge({
@@ -7,8 +7,8 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
7
7
  //#region components/ui/button.d.ts
8
8
  /** buttonVariants 工具定义。 */
9
9
  declare const buttonVariants: (props?: ({
10
- variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
11
- size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
10
+ variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
11
+ size?: "default" | "icon" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
12
12
  } & class_variance_authority_types0.ClassProp) | undefined) => string;
13
13
  /** Button 组件属性。 */
14
14
  type ButtonProps = Button.Props & VariantProps<typeof buttonVariants> & {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@funhub/platform",
3
3
  "type": "module",
4
- "version": "0.1.127",
4
+ "version": "0.1.131",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "**/*.css"
@@ -67,30 +67,6 @@
67
67
  "dist",
68
68
  "theme.css"
69
69
  ],
70
- "scripts": {
71
- "dev:web": "next dev",
72
- "build:web": "next build",
73
- "prebuild": "pnpm i18n:build",
74
- "build": "cross-env TSDOWN_ENV=production tsdown",
75
- "predev": "pnpm i18n:build",
76
- "dev": "node scripts/dev-with-i18n-watch.mjs",
77
- "dev:core": "cross-env TSDOWN_ENV=development tsdown --watch",
78
- "publish:platform": "node scripts/publish-platform.mjs",
79
- "gen:api": "node ./scripts/generate-from-swagger.cjs",
80
- "pp": "pnpm publish:platform",
81
- "start": "next start",
82
- "prelint": "pnpm i18n:build",
83
- "lint": "eslint . --fix",
84
- "pretypecheck": "pnpm i18n:build",
85
- "typecheck": "tsc --noEmit",
86
- "i18n:find": "node scripts/i18n-locale-tool.mjs find",
87
- "i18n:set": "node scripts/i18n-locale-tool.mjs set",
88
- "i18n:flatten": "node scripts/i18n-flat-sync.mjs flatten",
89
- "i18n:build": "node scripts/i18n-flat-sync.mjs build",
90
- "i18n:watch": "node scripts/i18n-flat-sync.mjs watch",
91
- "i18n:check": "node scripts/i18n-flat-sync.mjs check",
92
- "pretest": "pnpm i18n:build"
93
- },
94
70
  "peerDependencies": {
95
71
  "@tanstack/query-core": ">=5",
96
72
  "@tanstack/react-query": ">=5",
@@ -110,7 +86,6 @@
110
86
  "cac": "^6.7.14",
111
87
  "class-variance-authority": "^0.7.1",
112
88
  "clsx": "^2.1.1",
113
- "create-funhub": "workspace:*",
114
89
  "crypto": "^1.0.1",
115
90
  "crypto-js": "^4.2.0",
116
91
  "dayjs": "^1.11.13",
@@ -134,10 +109,10 @@
134
109
  "xgplayer": "^3.0.23",
135
110
  "xgplayer-hls": "^3.0.23",
136
111
  "zod": "^4.3.6",
137
- "zustand": "^5.0.9"
112
+ "zustand": "^5.0.9",
113
+ "create-funhub": "0.1.0"
138
114
  },
139
115
  "devDependencies": {
140
- "@funhub/eslint-config": "workspace:*",
141
116
  "@svgr/webpack": "^8.1.0",
142
117
  "@types/crypto-js": "^4.2.2",
143
118
  "@types/lodash-es": "^4.17.12",
@@ -146,6 +121,31 @@
146
121
  "rollup-plugin-postcss": "^4.0.2",
147
122
  "rollup-preserve-directives": "^1.1.3",
148
123
  "tsdown": "0.20.3",
149
- "vite-plugin-svgr": "^4.3.0"
124
+ "vite-plugin-svgr": "^4.3.0",
125
+ "@funhub/eslint-config": "0.0.1"
126
+ },
127
+ "scripts": {
128
+ "dev:web": "next dev",
129
+ "build:web": "next build",
130
+ "prebuild": "pnpm i18n:build",
131
+ "build": "cross-env TSDOWN_ENV=production tsdown",
132
+ "predev": "pnpm i18n:build",
133
+ "dev": "node scripts/dev-with-i18n-watch.mjs",
134
+ "dev:core": "cross-env TSDOWN_ENV=development tsdown --watch",
135
+ "publish:platform": "node scripts/publish-platform.mjs",
136
+ "gen:api": "node ./scripts/generate-from-swagger.cjs",
137
+ "pp": "pnpm publish:platform",
138
+ "start": "next start",
139
+ "prelint": "pnpm i18n:build",
140
+ "lint": "eslint . --fix",
141
+ "pretypecheck": "pnpm i18n:build",
142
+ "typecheck": "tsc --noEmit",
143
+ "i18n:find": "node scripts/i18n-locale-tool.mjs find",
144
+ "i18n:set": "node scripts/i18n-locale-tool.mjs set",
145
+ "i18n:flatten": "node scripts/i18n-flat-sync.mjs flatten",
146
+ "i18n:build": "node scripts/i18n-flat-sync.mjs build",
147
+ "i18n:watch": "node scripts/i18n-flat-sync.mjs watch",
148
+ "i18n:check": "node scripts/i18n-flat-sync.mjs check",
149
+ "pretest": "pnpm i18n:build"
150
150
  }
151
- }
151
+ }