@chamn/render 0.0.39 → 0.0.41

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.
@@ -9,7 +9,10 @@ export declare class AssetLoader {
9
9
  constructor(assets: Asset[], options?: {
10
10
  window?: Window;
11
11
  });
12
- load(): Promise<unknown>;
12
+ load(options?: {
13
+ /** 是否并行加载资源 */
14
+ async: boolean;
15
+ }): Promise<unknown>;
13
16
  onSuccess(cb: () => void): this;
14
17
  onError(cb: () => void): this;
15
18
  }
@@ -1,6 +1,6 @@
1
1
  import { ContextType } from '../core/adapter';
2
2
  import { StoreManager } from '../core/storeManager';
3
- import { AssetPackage, CNode, CNodeModelDataType, CRootNode, ComponentMetaType, LibMetaType } from '@chamn/model';
3
+ import { AssetPackage, CNode, CRootNode, ComponentMetaType, LibMetaType } from '@chamn/model';
4
4
  export declare const isClass: (val: any) => boolean;
5
5
  export declare function shouldConstruct(Component: any): boolean;
6
6
  export declare function canAcceptsRef(Comp: any): any;
@@ -14,12 +14,12 @@ export declare const convertCodeStringToFunction: (functionStr: string, $$contex
14
14
  * @returns
15
15
  */
16
16
  export declare const getObjFromArrayMap: (args: any[], argsName: string[]) => Record<any, any>;
17
- export declare const formatSourceStylePropertyName: (styleList?: CNodeModelDataType['style']) => Record<string, string>;
17
+ export declare const formatSourceStylePropertyName: (styleList?: CNodeModelDataType) => Record<string, string>;
18
18
  export declare const getCSSTextValue: (cssObj: Record<string, string>) => string;
19
19
  export declare const collectVariable: (assetPackages: AssetPackage[], win: Window) => Record<string, any>;
20
20
  export declare const flatObject: (obj: Record<string, any>, level?: number) => {};
21
21
  export declare const getMatchVal: (val: string, regArr: RegExp[]) => string[];
22
22
  export declare const getComponentsLibs: (libs: Record<string, any>, list: ComponentMetaType[]) => Record<string, any>;
23
23
  export declare const getThirdLibs: (libs: Record<string, any>, list: LibMetaType[]) => Record<string, any>;
24
- export declare const getNodeCssClassName: (node: CNode | CRootNode) => string;
24
+ export declare const getNodeCssClassName: (node: CNode | CRootNode) => any;
25
25
  export declare const findComponentByChainRefer: (componentReferPath: string, components: Record<string, any>) => () => string;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "files": [
5
5
  "dist"
6
6
  ],
7
- "version": "0.0.39",
7
+ "version": "0.0.41",
8
8
  "publishConfig": {
9
9
  "access": "public"
10
10
  },
@@ -25,16 +25,16 @@
25
25
  "react-dom": ">=16.9.0"
26
26
  },
27
27
  "dependencies": {
28
- "@chamn/model": "^0.0.39",
28
+ "@chamn/model": "0.0.41",
29
29
  "html-tag-names": "^2.0.1",
30
30
  "loadjs": "4.3.0-rc1",
31
31
  "lodash-es": "^4.17.21",
32
32
  "zustand": "^4.3.8"
33
33
  },
34
34
  "devDependencies": {
35
- "@chamn/build-script": "^0.0.39",
36
- "@chamn/demo-page": "^0.0.39",
37
- "@chamn/material": "^0.0.39",
35
+ "@chamn/build-script": "0.0.41",
36
+ "@chamn/demo-page": "0.0.41",
37
+ "@chamn/material": "0.0.41",
38
38
  "@types/loadjs": "^4.0.1",
39
39
  "@types/lodash-es": "^4.17.6",
40
40
  "@types/node": "^18.15.9",
@@ -49,5 +49,5 @@
49
49
  "vite-plugin-dts": "^2.1.0"
50
50
  },
51
51
  "config": {},
52
- "gitHead": "562e347ba58f0dc2c65a4c51b5a92332f3b9f3c8"
52
+ "gitHead": "461b7336581080db9c5abdc3dec64f3dcf428b44"
53
53
  }