@blocklet/pages-kit 0.4.125 → 0.4.127

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.
@@ -18,6 +18,7 @@ export interface RouteDataSource {
18
18
  [actualPath: string]: {
19
19
  localesGeneratedAt?: Record<string, string>;
20
20
  pageRule?: string;
21
+ sectionsRules?: Record<string, string>;
21
22
  dataCache?: Record<string, any>;
22
23
  };
23
24
  };
@@ -1,2 +1,6 @@
1
1
  export declare const COLOR_CONVERT_FUNCTION_NAME = "colorConvert";
2
2
  export declare const isBrowserEnv: () => boolean;
3
+ /**
4
+ * 检查字符串是否为有效的MUI颜色键
5
+ */
6
+ export declare function isMuiColorKey(value: string): boolean;
@@ -1,11 +1,8 @@
1
1
  import { Theme } from '@mui/material';
2
+ import { isMuiColorKey } from './common';
2
3
  export declare function getBlockletTheme(): Theme;
3
4
  export declare function isGradient(color: string): boolean;
4
5
  export declare function isColorString(color: string): boolean;
5
- /**
6
- * 检查字符串是否为有效的MUI颜色键
7
- */
8
- export declare function isMuiColorKey(value: string): boolean;
9
6
  /**
10
7
  * 处理渐变的解析,并转换为rgba格式
11
8
  */
@@ -22,3 +19,4 @@ export declare function parseColor(color?: string): string;
22
19
  */
23
20
  export declare function colorConvert(color: string, _theme?: Theme): string;
24
21
  export declare function getTransparentBackground(): string;
22
+ export { isMuiColorKey };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/pages-kit",
3
- "version": "0.4.125",
3
+ "version": "0.4.127",
4
4
  "description": "Pages Kit components and utils for blocklet(s)",
5
5
  "publishConfig": {
6
6
  "access": "public"