@wix/zero-config-implementation 1.106.0 → 1.108.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 +11 -17
- package/dist/index.js +12172 -12042
- package/package.json +2 -2
- package/src/converters/data-item-builder.ts +44 -10
- package/src/converters/function-signature-builder.test.ts +257 -0
- package/src/converters/function-signature-builder.ts +144 -0
- package/src/converters/to-editor-component.test.ts +0 -85
- package/src/converters/to-editor-component.ts +0 -39
- package/src/information-extractors/css/parse.ts +0 -16
- package/src/information-extractors/css/types.ts +0 -17
- package/src/information-extractors/ts/types.ts +6 -0
- package/src/information-extractors/ts/utils/semantic-type-resolver.ts +93 -2
package/dist/index.d.ts
CHANGED
|
@@ -2476,23 +2476,6 @@ declare interface RegisteredCustomProperty {
|
|
|
2476
2476
|
* (`a | b | c`). Present only when `cssPropertyType` is `customEnum`.
|
|
2477
2477
|
*/
|
|
2478
2478
|
enumOptions?: string[];
|
|
2479
|
-
/**
|
|
2480
|
-
* The numeric range for the control, as raw descriptor strings. Validated at
|
|
2481
|
-
* conversion time. Meaningful only when `cssPropertyType` is `number`.
|
|
2482
|
-
*/
|
|
2483
|
-
range?: RegisteredPropertyRange;
|
|
2484
|
-
}
|
|
2485
|
-
|
|
2486
|
-
/**
|
|
2487
|
-
* `--min` / `--max` / `--step` descriptors an importer may emit inside an `@property`
|
|
2488
|
-
* block. The `--` prefix keeps them in the author namespace: browsers ignore descriptors
|
|
2489
|
-
* they don't know, so the CSS stays valid and CSS can't standardise these names out from
|
|
2490
|
-
* under us.
|
|
2491
|
-
*/
|
|
2492
|
-
declare interface RegisteredPropertyRange {
|
|
2493
|
-
min?: string;
|
|
2494
|
-
max?: string;
|
|
2495
|
-
step?: string;
|
|
2496
2479
|
}
|
|
2497
2480
|
|
|
2498
2481
|
/**
|
|
@@ -2556,6 +2539,17 @@ export declare interface ResolvedType {
|
|
|
2556
2539
|
properties?: Record<string, PropInfo>;
|
|
2557
2540
|
elementType?: ResolvedType;
|
|
2558
2541
|
types?: ResolvedType[];
|
|
2542
|
+
functionSignature?: {
|
|
2543
|
+
parameters: {
|
|
2544
|
+
name: string;
|
|
2545
|
+
type: ResolvedType;
|
|
2546
|
+
optional: boolean;
|
|
2547
|
+
rest: boolean;
|
|
2548
|
+
}[];
|
|
2549
|
+
returnType: ResolvedType;
|
|
2550
|
+
async: boolean;
|
|
2551
|
+
overloaded: boolean;
|
|
2552
|
+
};
|
|
2559
2553
|
}
|
|
2560
2554
|
|
|
2561
2555
|
export declare namespace Result {
|