@stylexjs/babel-plugin 0.16.2 → 0.17.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.
Files changed (45) hide show
  1. package/lib/index.d.ts +5 -5
  2. package/lib/index.js +893 -1775
  3. package/lib/index.js.flow +2 -1
  4. package/lib/shared/common-types.d.ts +3 -4
  5. package/lib/shared/index.d.ts +1 -1
  6. package/lib/shared/index.js.flow +1 -1
  7. package/lib/shared/preprocess-rules/legacy-expand-shorthands.d.ts +4 -0
  8. package/lib/shared/preprocess-rules/legacy-expand-shorthands.js.flow +5 -0
  9. package/lib/shared/stylex-create-theme.d.ts +1 -1
  10. package/lib/shared/stylex-define-vars.d.ts +3 -3
  11. package/lib/shared/types/index.js.flow +12 -12
  12. package/lib/shared/utils/object-utils.js.flow +1 -1
  13. package/lib/shared/when/when.d.ts +5 -5
  14. package/lib/shared/when/when.js.flow +5 -5
  15. package/lib/utils/add-sourcemap-data.js.flow +2 -2
  16. package/lib/utils/ast-helpers.js.flow +3 -3
  17. package/lib/utils/evaluate-path.d.ts +1 -0
  18. package/lib/utils/evaluate-path.js.flow +3 -2
  19. package/lib/utils/js-to-ast.d.ts +0 -4
  20. package/lib/utils/js-to-ast.js.flow +1 -7
  21. package/lib/utils/state-manager.d.ts +37 -19
  22. package/lib/utils/state-manager.js.flow +37 -22
  23. package/lib/utils/validate.d.ts +1 -0
  24. package/lib/utils/validate.js.flow +2 -0
  25. package/lib/visitors/imports.js.flow +2 -2
  26. package/lib/visitors/parse-stylex-create-arg.js.flow +2 -2
  27. package/lib/visitors/stylex-create-theme.js.flow +2 -2
  28. package/lib/visitors/stylex-create.js.flow +2 -2
  29. package/lib/visitors/stylex-default-marker.js.flow +2 -2
  30. package/lib/visitors/stylex-define-consts.js.flow +2 -2
  31. package/lib/visitors/stylex-define-marker.d.ts +22 -0
  32. package/lib/visitors/stylex-define-marker.js.flow +22 -0
  33. package/lib/visitors/stylex-define-vars.js.flow +2 -2
  34. package/lib/visitors/stylex-keyframes.js.flow +2 -2
  35. package/lib/visitors/stylex-merge.js.flow +2 -2
  36. package/lib/visitors/stylex-position-try.js.flow +2 -2
  37. package/lib/visitors/stylex-props.js.flow +2 -2
  38. package/lib/visitors/stylex-view-transition-class.js.flow +2 -2
  39. package/package.json +4 -3
  40. package/flow_modules/@babel/core/index.js.flow +0 -854
  41. package/flow_modules/@babel/generator/index.js.flow +0 -216
  42. package/flow_modules/@babel/helper-module-imports/index.js.flow +0 -182
  43. package/flow_modules/@babel/parser/index.js.flow +0 -253
  44. package/flow_modules/@babel/traverse/index.js.flow +0 -1007
  45. package/flow_modules/@babel/types/index.js.flow +0 -5225
package/lib/index.d.ts CHANGED
@@ -39,10 +39,10 @@ declare function processStylexRules(
39
39
  config?:
40
40
  | boolean
41
41
  | {
42
- useLayers?: boolean,
43
- enableLTRRTLComments?: boolean,
44
- legacyDisableLayers?: boolean,
45
- }
42
+ useLayers?: boolean;
43
+ enableLTRRTLComments?: boolean;
44
+ legacyDisableLayers?: boolean;
45
+ },
46
46
  ): string;
47
47
  export type StyleXTransformObj = Readonly<{
48
48
  (): PluginObj;
@@ -50,4 +50,4 @@ export type StyleXTransformObj = Readonly<{
50
50
  processStylexRules: typeof processStylexRules;
51
51
  }>;
52
52
  declare const $$EXPORT_DEFAULT_DECLARATION$$: StyleXTransformObj;
53
- export = $$EXPORT_DEFAULT_DECLARATION$$;
53
+ export default $$EXPORT_DEFAULT_DECLARATION$$;