@wix/zero-config-implementation 1.42.0 → 1.44.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.ts +9 -4
- package/dist/index.js +968 -967
- package/package.json +3 -3
- package/src/converters/data-item-builder.ts +2 -2
- package/src/converters/to-editor-component.ts +2 -2
- package/src/index.ts +14 -7
- package/src/information-extractors/css/parse.ts +1 -1
- package/src/information-extractors/react/extractors/css-properties.ts +1 -1
- package/src/manifest-pipeline.ts +15 -13
- package/src/wix-type-to-data-type.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
2
|
import { default as default_2 } from 'typescript';
|
|
3
|
-
import { EditorReactComponent } from '@wix/
|
|
3
|
+
import { EditorReactComponent } from '@wix/react-component-schema';
|
|
4
4
|
import { Program } from 'typescript';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -824,12 +824,13 @@ export declare function extractComponentManifest(componentPath: string, compiled
|
|
|
824
824
|
* @errors
|
|
825
825
|
* - {@link NotFoundError} — Source file does not exist (phase: `compile`)
|
|
826
826
|
* - {@link ParseError} — TypeScript config or component types could not be parsed (phase: `compile` | `extract`)
|
|
827
|
+
* - {@link IoError} — Component loaded but render/extractors failed (phase: `render`)
|
|
827
828
|
*/
|
|
828
829
|
export declare interface ExtractComponentManifestOptions extends RunExtractorsOptions {
|
|
829
830
|
onError?: (error: ExtractionError) => void;
|
|
830
831
|
}
|
|
831
832
|
|
|
832
|
-
export declare function extractComponentManifestResult(componentPath: string, compiledEntryPath: string, options?: ExtractComponentManifestOptions): ResultAsync<ManifestResult, InstanceType<typeof NotFoundError> | InstanceType<typeof ParseError>>;
|
|
833
|
+
export declare function extractComponentManifestResult(componentPath: string, compiledEntryPath: string, options?: ExtractComponentManifestOptions): ResultAsync<ManifestResult, InstanceType<typeof NotFoundError> | InstanceType<typeof ParseError> | InstanceType<typeof IoError>>;
|
|
833
834
|
|
|
834
835
|
export declare function extractCssImports(program: Program): string[];
|
|
835
836
|
|
|
@@ -2339,9 +2340,13 @@ never,
|
|
|
2339
2340
|
];
|
|
2340
2341
|
|
|
2341
2342
|
/** The result of processing a single component through the manifest pipeline. */
|
|
2342
|
-
export declare
|
|
2343
|
+
export declare type ProcessComponentResult = {
|
|
2344
|
+
ok: true;
|
|
2343
2345
|
component: ComponentInfoWithCss;
|
|
2344
|
-
}
|
|
2346
|
+
} | {
|
|
2347
|
+
ok: false;
|
|
2348
|
+
error: InstanceType<typeof IoError>;
|
|
2349
|
+
};
|
|
2345
2350
|
|
|
2346
2351
|
export declare interface PropInfo {
|
|
2347
2352
|
name: string;
|