@wix/zero-config-implementation 1.89.0 → 1.91.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 CHANGED
@@ -437,13 +437,13 @@ export declare interface CSSParserAPI {
437
437
  * Determines the CSS property type for a custom property.
438
438
  * A `@property` registration is the top-priority source (declared type). Otherwise
439
439
  * falls back to usage: if all usages of varName are within the same CSS property,
440
- * returns that property name; if usages differ, returns the CSS data type inferred
441
- * from the initial value ('color', 'length', 'number', or 'string').
442
- * Returns undefined if the variable is neither registered nor used via var().
440
+ * returns that property name; if usages differ, or if the variable is not used via
441
+ * var() at all, returns the CSS data type inferred from the initial value
442
+ * ('color', 'length', 'number', or 'string').
443
443
  * @param varName - The CSS variable name (with or without --)
444
444
  * @param defaultValue - The initial value string of the custom property
445
445
  */
446
- getVarPropertyType: (varName: string, defaultValue: string) => string | undefined;
446
+ getVarPropertyType: (varName: string, defaultValue: string) => string;
447
447
  /**
448
448
  * Returns every custom property registered via a `@property` at-rule, keyed by the
449
449
  * variable name including its leading `--`. Each entry carries the type derived from
@@ -866,7 +866,7 @@ export declare interface ExtractComponentManifestOptions extends RunExtractorsOp
866
866
  onError?: (error: ExtractionError) => void;
867
867
  }
868
868
 
869
- export declare function extractComponentManifestResult(componentPath: string, compiledEntryPath: string, options?: ExtractComponentManifestOptions): ResultAsync<ManifestResult, InstanceType<typeof NotFoundError> | InstanceType<typeof ParseError> | InstanceType<typeof IoError>>;
869
+ export declare function extractComponentManifestResult(componentPath: string, compiledEntryPath: string, options?: ExtractComponentManifestOptions): ResultAsync<ManifestResult, InstanceType<typeof NotFoundError> | InstanceType<typeof ParseError> | InstanceType<typeof IoError> | InstanceType<typeof ValidationError>>;
870
870
 
871
871
  export declare function extractCssImports(program: Program): string[];
872
872
 
@@ -2459,6 +2459,23 @@ declare interface RegisteredCustomProperty {
2459
2459
  * (`a | b | c`). Present only when `cssPropertyType` is `customEnum`.
2460
2460
  */
2461
2461
  enumOptions?: string[];
2462
+ /**
2463
+ * The numeric range for the control, as raw descriptor strings. Validated at
2464
+ * conversion time. Meaningful only when `cssPropertyType` is `number`.
2465
+ */
2466
+ range?: RegisteredPropertyRange;
2467
+ }
2468
+
2469
+ /**
2470
+ * `--min` / `--max` / `--step` descriptors an importer may emit inside an `@property`
2471
+ * block. The `--` prefix keeps them in the author namespace: browsers ignore descriptors
2472
+ * they don't know, so the CSS stays valid and CSS can't standardise these names out from
2473
+ * under us.
2474
+ */
2475
+ declare interface RegisteredPropertyRange {
2476
+ min?: string;
2477
+ max?: string;
2478
+ step?: string;
2462
2479
  }
2463
2480
 
2464
2481
  /**