@wix/zero-config-implementation 1.95.0 → 1.96.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 +8 -8
- package/dist/index.js +6734 -6703
- package/package.json +2 -2
- package/src/converters/to-editor-component.test.ts +76 -5
- package/src/converters/to-editor-component.ts +5 -10
- package/src/information-extractors/css/parse.test.ts +17 -1
- package/src/information-extractors/css/parse.ts +19 -11
- package/src/information-extractors/css/types.ts +8 -8
- package/src/information-extractors/ts/css-imports.test.ts +177 -0
- package/src/information-extractors/ts/css-imports.ts +57 -3
package/dist/index.d.ts
CHANGED
|
@@ -434,16 +434,16 @@ export declare interface CSSParserAPI {
|
|
|
434
434
|
*/
|
|
435
435
|
getSelectorSpecificity: (selector: string) => [number, number, number] | null;
|
|
436
436
|
/**
|
|
437
|
-
* Determines the CSS property type
|
|
438
|
-
* A `@property` registration is the top-priority source (declared type). Otherwise
|
|
439
|
-
*
|
|
440
|
-
*
|
|
441
|
-
*
|
|
442
|
-
*
|
|
437
|
+
* Determines the CSS property type this one stylesheet can attribute to a custom property.
|
|
438
|
+
* A `@property` registration is the top-priority source (declared type). Otherwise falls back
|
|
439
|
+
* to usage: if every usage of varName is within the same known CSS property, returns that
|
|
440
|
+
* property name. Returns undefined when this stylesheet cannot attribute one — it does not
|
|
441
|
+
* mention the variable, spreads it across several properties, or uses it in a property with
|
|
442
|
+
* no manifest type. Callers holding several stylesheets ask the next one, and are responsible
|
|
443
|
+
* for the final fallback when none can answer.
|
|
443
444
|
* @param varName - The CSS variable name (with or without --)
|
|
444
|
-
* @param defaultValue - The initial value string of the custom property
|
|
445
445
|
*/
|
|
446
|
-
getVarPropertyType: (varName: string
|
|
446
|
+
getVarPropertyType: (varName: string) => string | undefined;
|
|
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
|