@csszyx/cli 0.9.9 → 0.10.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.mts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * CLI command: generate-types
4
3
  *
@@ -213,6 +212,8 @@ interface TransformResult {
213
212
  /** className kept on capitalized components (they do not accept sz). */
214
213
  classNamesSkippedComponent: number;
215
214
  classesUnrecognized: string[];
215
+ /** Legacy sz-prop keys rewritten to their single-way canonical (transitional). */
216
+ szKeysNormalized?: number;
216
217
  };
217
218
  /** Imports that may be unused after migration (e.g., clsx, cn). */
218
219
  potentiallyUnusedImports: string[];
@@ -225,6 +226,14 @@ interface TransformOptions {
225
226
  injectTodos?: boolean;
226
227
  /** Map of custom classes to sz objects, used to override unrecognized classes */
227
228
  customMap?: CsszyxTodoMap;
229
+ /**
230
+ * If true, ONLY normalize legacy sz-prop keys to their single-way canonical
231
+ * and leave every `className` attribute untouched. The sz-key-only upgrade
232
+ * path for 0.9.10 → 0.10.0.
233
+ *
234
+ * TRANSITIONAL: part of the same legacy-key normalizer; remove at v1.
235
+ */
236
+ keysOnly?: boolean;
228
237
  }
229
238
  /**
230
239
  * Transform a JSX/TSX source file, replacing className with sz props.