@lcap/nasl-unified-frontend-generator 4.0.0-rc.5 → 4.0.1-rc.0

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/dist/index.d.mts CHANGED
@@ -26,6 +26,8 @@ interface CommonAppConfig {
26
26
  miniEnable: boolean;
27
27
  isPreviewFe?: boolean;
28
28
  isExport?: boolean;
29
+ needCompileViews?: string[];
30
+ cacheChunksMapCode?: string;
29
31
  /**
30
32
  * 插件用的配置项
31
33
  */
@@ -115,7 +117,7 @@ interface I18nInfo {
115
117
  declare const metadataPlugin: {
116
118
  name: string;
117
119
  functions: {
118
- makeBasePlatformConfig(app: Pick<App, "name" | "dnsAddr" | "hasUserCenter" | "hasAuth" | "sysPrefixPath" | "id" | "appTimeZone">, frontend: Frontend, config: CommonAppConfig): BasePlatformConfig;
120
+ makeBasePlatformConfig(app: Pick<App, 'name' | 'dnsAddr' | 'hasUserCenter' | 'hasAuth' | 'sysPrefixPath' | 'id' | 'appTimeZone'>, frontend: Frontend, config: CommonAppConfig): BasePlatformConfig;
119
121
  };
120
122
  };
121
123
 
@@ -639,7 +641,7 @@ declare const routesExtractionPlugin: {
639
641
  functions: {
640
642
  extractRoute(components: ViewComponentIR[], routePrefix: string, options?: {
641
643
  lazy?: boolean;
642
- frameworkKind?: "react" | "vue2" | "vue3";
644
+ frameworkKind?: 'react' | 'vue2' | 'vue3';
643
645
  }): {
644
646
  routes: RouteIR[];
645
647
  authResourcePaths: string[];
@@ -1170,10 +1172,18 @@ declare const reactComponentLibHackPlugin: {
1170
1172
  name: string;
1171
1173
  functions: {
1172
1174
  __hooksDefinitions(): ReactFileDescription;
1173
- hackBindAttribute<T extends BindAttributeIR & {
1175
+ hackBindAttribute<T extends {
1174
1176
  kind: "expr";
1177
+ expression: ExprIR;
1178
+ __raw: _lcap_nasl_concepts.BindAttribute;
1179
+ sync: boolean;
1180
+ } & {
1181
+ concept: "BindAttribute";
1182
+ name: string;
1183
+ } & {
1184
+ kind: 'expr';
1175
1185
  }>(b: T): BindAttributeIR & {
1176
- kind: "expr";
1186
+ kind: 'expr';
1177
1187
  };
1178
1188
  };
1179
1189
  };
@@ -1670,7 +1680,7 @@ declare class VirtualProject {
1670
1680
  getFileDict(): {
1671
1681
  files: Record<string, ProjectFile>;
1672
1682
  };
1673
- readFile(path: string): string | Buffer<ArrayBufferLike>;
1683
+ readFile(path: string): string | Buffer;
1674
1684
  }
1675
1685
  declare function compileAsProject(app: App, frontend: Frontend, config: CommonAppConfig, container?: Container): Promise<VirtualProject>;
1676
1686
  declare function compileNASLToReactDist(app: App, frontend: Frontend, config: CommonAppConfig, http: AxiosInstance): Promise<OrganizedFile[]>;
package/dist/index.d.ts CHANGED
@@ -26,6 +26,8 @@ interface CommonAppConfig {
26
26
  miniEnable: boolean;
27
27
  isPreviewFe?: boolean;
28
28
  isExport?: boolean;
29
+ needCompileViews?: string[];
30
+ cacheChunksMapCode?: string;
29
31
  /**
30
32
  * 插件用的配置项
31
33
  */
@@ -115,7 +117,7 @@ interface I18nInfo {
115
117
  declare const metadataPlugin: {
116
118
  name: string;
117
119
  functions: {
118
- makeBasePlatformConfig(app: Pick<App, "name" | "dnsAddr" | "hasUserCenter" | "hasAuth" | "sysPrefixPath" | "id" | "appTimeZone">, frontend: Frontend, config: CommonAppConfig): BasePlatformConfig;
120
+ makeBasePlatformConfig(app: Pick<App, 'name' | 'dnsAddr' | 'hasUserCenter' | 'hasAuth' | 'sysPrefixPath' | 'id' | 'appTimeZone'>, frontend: Frontend, config: CommonAppConfig): BasePlatformConfig;
119
121
  };
120
122
  };
121
123
 
@@ -639,7 +641,7 @@ declare const routesExtractionPlugin: {
639
641
  functions: {
640
642
  extractRoute(components: ViewComponentIR[], routePrefix: string, options?: {
641
643
  lazy?: boolean;
642
- frameworkKind?: "react" | "vue2" | "vue3";
644
+ frameworkKind?: 'react' | 'vue2' | 'vue3';
643
645
  }): {
644
646
  routes: RouteIR[];
645
647
  authResourcePaths: string[];
@@ -1170,10 +1172,18 @@ declare const reactComponentLibHackPlugin: {
1170
1172
  name: string;
1171
1173
  functions: {
1172
1174
  __hooksDefinitions(): ReactFileDescription;
1173
- hackBindAttribute<T extends BindAttributeIR & {
1175
+ hackBindAttribute<T extends {
1174
1176
  kind: "expr";
1177
+ expression: ExprIR;
1178
+ __raw: _lcap_nasl_concepts.BindAttribute;
1179
+ sync: boolean;
1180
+ } & {
1181
+ concept: "BindAttribute";
1182
+ name: string;
1183
+ } & {
1184
+ kind: 'expr';
1175
1185
  }>(b: T): BindAttributeIR & {
1176
- kind: "expr";
1186
+ kind: 'expr';
1177
1187
  };
1178
1188
  };
1179
1189
  };
@@ -1670,7 +1680,7 @@ declare class VirtualProject {
1670
1680
  getFileDict(): {
1671
1681
  files: Record<string, ProjectFile>;
1672
1682
  };
1673
- readFile(path: string): string | Buffer<ArrayBufferLike>;
1683
+ readFile(path: string): string | Buffer;
1674
1684
  }
1675
1685
  declare function compileAsProject(app: App, frontend: Frontend, config: CommonAppConfig, container?: Container): Promise<VirtualProject>;
1676
1686
  declare function compileNASLToReactDist(app: App, frontend: Frontend, config: CommonAppConfig, http: AxiosInstance): Promise<OrganizedFile[]>;