@blocklet/pages-kit 0.6.7 → 0.6.9

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.
@@ -26,6 +26,18 @@ export declare enum PreloadComponentScriptModule {
26
26
  ESM = "esm",
27
27
  CJS = "cjs"
28
28
  }
29
+ export type PreloadComponentScript = {
30
+ module: PreloadComponentScriptModule.UMD_FN;
31
+ script: string;
32
+ moduleName: string;
33
+ } | {
34
+ module: PreloadComponentScriptModule.CJS;
35
+ script: string;
36
+ moduleName: string;
37
+ } | {
38
+ module: PreloadComponentScriptModule.ESM;
39
+ script: string;
40
+ };
29
41
  export interface PreloadComponentsResult {
30
42
  config: {
31
43
  defaultLocale: string;
@@ -36,18 +48,7 @@ export interface PreloadComponentsResult {
36
48
  components: {
37
49
  [componentId: string]: {
38
50
  component: CustomComponent;
39
- script: {
40
- module: PreloadComponentScriptModule.UMD_FN;
41
- script: string;
42
- moduleName: string;
43
- } | {
44
- module: PreloadComponentScriptModule.CJS;
45
- script: string;
46
- moduleName: string;
47
- } | {
48
- module: PreloadComponentScriptModule.ESM;
49
- script: string;
50
- };
51
+ script: PreloadComponentScript;
51
52
  };
52
53
  };
53
54
  instances: {
@@ -24,6 +24,7 @@ export type CustomComponent = {
24
24
  type: 'react-component';
25
25
  script?: string;
26
26
  chunks?: string[];
27
+ cjsScript?: string;
27
28
  editComponent?: string;
28
29
  aigneOutputValueSchema?: string;
29
30
  PROPERTIES_SCHEMA?: string;
@@ -3,4 +3,3 @@ export declare const isRelativeModule: (moduleSpecifier: string) => boolean;
3
3
  export declare const isAsyncModule: (moduleSpecifier: string) => boolean;
4
4
  export declare const isBuiltinModule: (moduleSpecifier: string) => boolean;
5
5
  export declare const createBuiltinModuleTransformer: (ts: typeof import("typescript")) => TransformerFactory<SourceFile>;
6
- export declare const createWellKnownChunksTransformer: (ts: typeof import("typescript")) => TransformerFactory<SourceFile>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/pages-kit",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "description": "Pages Kit components and utils for blocklet(s)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -151,7 +151,7 @@
151
151
  "ufo": "^1.5.4",
152
152
  "yaml": "^2.5.0",
153
153
  "zustand": "^4.5.5",
154
- "@blocklet/pages-kit-core": "^0.6.7"
154
+ "@blocklet/pages-kit-core": "^0.6.9"
155
155
  },
156
156
  "peerDependencies": {
157
157
  "@arcblock/ux": "^3.0.8",