@wix/zero-config-implementation 1.6.0 → 1.8.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.
@@ -12,5 +12,6 @@
12
12
  * "snake_case_example" -> "Snake Case Example"
13
13
  * "SCREAMING_SNAKE_CASE" -> "Screaming Snake Case"
14
14
  * "mixed-format_example" -> "Mixed Format Example"
15
+ * "a11y" -> "Accessibility"
15
16
  */
16
17
  export declare function formatDisplayName(input: string): string;
package/dist/index.d.ts CHANGED
@@ -1,12 +1,14 @@
1
1
  import { ResultAsync } from 'neverthrow';
2
2
  import { EditorReactComponent } from './schema';
3
3
  import { NotFoundError, ParseError } from './errors';
4
+ import { RunExtractorsOptions } from './information-extractors/react';
4
5
  export type { ComponentInfoWithCss, ExtractedCssInfo, ExtractionWarning, ProcessComponentResult, } from './manifest-pipeline';
5
6
  export type { EditorReactComponent } from './schema';
6
7
  export interface ManifestResult {
7
8
  component: EditorReactComponent;
8
9
  errors: ExtractionError[];
9
10
  }
11
+ export type { RunExtractorsOptions } from './information-extractors/react';
10
12
  export interface ExtractionError {
11
13
  componentName: string;
12
14
  phase: 'render' | 'coupling' | 'css' | 'loader' | 'conversion';
@@ -22,7 +24,7 @@ export interface ExtractionError {
22
24
  * - {@link NotFoundError} — Source file does not exist (phase: `compile`)
23
25
  * - {@link ParseError} — TypeScript config or component types could not be parsed (phase: `compile` | `extract`)
24
26
  */
25
- export declare function extractComponentManifest(componentPath: string, compiledEntryPath: string): ResultAsync<ManifestResult, InstanceType<typeof NotFoundError> | InstanceType<typeof ParseError>>;
27
+ export declare function extractComponentManifest(componentPath: string, compiledEntryPath: string, options?: RunExtractorsOptions): ResultAsync<ManifestResult, InstanceType<typeof NotFoundError> | InstanceType<typeof ParseError>>;
26
28
  /** TypeScript compilation & static analysis */
27
29
  export { compileTsFile } from './ts-compiler';
28
30
  export { extractAllComponentInfo, extractDefaultComponentInfo } from './information-extractors/ts/components';
@@ -37,7 +39,7 @@ export { parseCss } from './information-extractors/css';
37
39
  export type { CSSParserAPI } from './information-extractors/css';
38
40
  /** Error classes */
39
41
  export { BaseError, NotFoundError, ParseError, ValidationError, IoError, DefectError, withDefectBoundary, } from './errors';
40
- /** Component loader */
41
- export { createComponentLoader } from './component-loader';
42
+ /** Module loader primitives */
43
+ export { loadModule, findComponent } from './module-loader';
42
44
  export { renderWithExtractors } from './component-renderer';
43
45
  export type { CreateElementListener } from './component-renderer';