@stylexjs/babel-plugin 0.16.2 → 0.16.3

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 (34) hide show
  1. package/lib/index.d.ts +5 -5
  2. package/lib/index.js +58 -14
  3. package/lib/index.js.flow +1 -1
  4. package/lib/shared/common-types.d.ts +3 -4
  5. package/lib/shared/stylex-create-theme.d.ts +1 -1
  6. package/lib/shared/stylex-define-vars.d.ts +3 -3
  7. package/lib/shared/types/index.js.flow +11 -11
  8. package/lib/utils/add-sourcemap-data.js.flow +2 -2
  9. package/lib/utils/ast-helpers.js.flow +3 -3
  10. package/lib/utils/evaluate-path.js.flow +2 -2
  11. package/lib/utils/js-to-ast.js.flow +1 -1
  12. package/lib/utils/state-manager.d.ts +36 -19
  13. package/lib/utils/state-manager.js.flow +36 -22
  14. package/lib/utils/validate.d.ts +1 -0
  15. package/lib/utils/validate.js.flow +2 -0
  16. package/lib/visitors/imports.js.flow +2 -2
  17. package/lib/visitors/parse-stylex-create-arg.js.flow +2 -2
  18. package/lib/visitors/stylex-create-theme.js.flow +2 -2
  19. package/lib/visitors/stylex-create.js.flow +2 -2
  20. package/lib/visitors/stylex-default-marker.js.flow +2 -2
  21. package/lib/visitors/stylex-define-consts.js.flow +2 -2
  22. package/lib/visitors/stylex-define-vars.js.flow +2 -2
  23. package/lib/visitors/stylex-keyframes.js.flow +2 -2
  24. package/lib/visitors/stylex-merge.js.flow +2 -2
  25. package/lib/visitors/stylex-position-try.js.flow +2 -2
  26. package/lib/visitors/stylex-props.js.flow +2 -2
  27. package/lib/visitors/stylex-view-transition-class.js.flow +2 -2
  28. package/package.json +3 -3
  29. package/flow_modules/@babel/core/index.js.flow +0 -854
  30. package/flow_modules/@babel/generator/index.js.flow +0 -216
  31. package/flow_modules/@babel/helper-module-imports/index.js.flow +0 -182
  32. package/flow_modules/@babel/parser/index.js.flow +0 -253
  33. package/flow_modules/@babel/traverse/index.js.flow +0 -1007
  34. package/flow_modules/@babel/types/index.js.flow +0 -5225
@@ -7,8 +7,8 @@
7
7
  * @flow strict
8
8
  */
9
9
 
10
- import type { NodePath } from '../../flow_modules/@babel/traverse';
11
- import * as t from '../../flow_modules/@babel/types';
10
+ import type { NodePath } from '@babel/traverse';
11
+ import * as t from '@babel/types';
12
12
  import StateManager from '../utils/state-manager';
13
13
  /// This function looks for `stylex.defineVars` calls and transforms them.
14
14
  /// 1. It finds the first argument to `stylex.defineVars` and validates it.
@@ -7,8 +7,8 @@
7
7
  * @flow strict
8
8
  */
9
9
 
10
- import type { NodePath } from '../../flow_modules/@babel/traverse';
11
- import * as t from '../../flow_modules/@babel/types';
10
+ import type { NodePath } from '@babel/traverse';
11
+ import * as t from '@babel/types';
12
12
  import StateManager from '../utils/state-manager';
13
13
  /// This function looks for `stylex.keyframes` calls and transforms them.
14
14
  /// 1. It finds the first argument to `stylex.keyframes` and validates it.
@@ -7,9 +7,9 @@
7
7
  * @flow strict
8
8
  */
9
9
 
10
- import type { NodePath } from '../../flow_modules/@babel/traverse';
10
+ import type { NodePath } from '@babel/traverse';
11
11
 
12
- import * as t from '../../flow_modules/@babel/types';
12
+ import * as t from '@babel/types';
13
13
  import StateManager from '../utils/state-manager';
14
14
  declare export function skipStylexMergeChildren(
15
15
  path: NodePath<t.CallExpression>,
@@ -7,8 +7,8 @@
7
7
  * @flow strict
8
8
  */
9
9
 
10
- import type { NodePath } from '../../flow_modules/@babel/traverse';
11
- import * as t from '../../flow_modules/@babel/types';
10
+ import type { NodePath } from '@babel/traverse';
11
+ import * as t from '@babel/types';
12
12
  import StateManager from '../utils/state-manager';
13
13
  /// This function looks for `stylex.positionTry` calls within variable declarations and transforms them.
14
14
  /// 1. It finds the first argument to `stylex.positionTry` and validates it.
@@ -7,8 +7,8 @@
7
7
  * @flow strict
8
8
  */
9
9
 
10
- import type { NodePath } from '../../flow_modules/@babel/traverse';
11
- import * as t from '../../flow_modules/@babel/types';
10
+ import type { NodePath } from '@babel/traverse';
11
+ import * as t from '@babel/types';
12
12
  import StateManager from '../utils/state-manager';
13
13
  declare export function skipStylexPropsChildren(
14
14
  path: NodePath<t.CallExpression>,
@@ -7,8 +7,8 @@
7
7
  * @flow strict
8
8
  */
9
9
 
10
- import type { NodePath } from '../../flow_modules/@babel/traverse';
11
- import * as t from '../../flow_modules/@babel/types';
10
+ import type { NodePath } from '@babel/traverse';
11
+ import * as t from '@babel/types';
12
12
  import StateManager from '../utils/state-manager';
13
13
  /// This function looks for `stylex.viewTransitionClass` calls within variable declarations and transforms them.
14
14
  /// 1. It finds the first argument to `stylex.viewTransitionClass` and validates it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stylexjs/babel-plugin",
3
- "version": "0.16.2",
3
+ "version": "0.16.3",
4
4
  "description": "StyleX babel plugin.",
5
5
  "main": "lib/index.js",
6
6
  "repository": {
@@ -21,7 +21,7 @@
21
21
  "@babel/traverse": "^7.26.8",
22
22
  "@babel/types": "^7.26.8",
23
23
  "@dual-bundle/import-meta-resolve": "^4.1.0",
24
- "@stylexjs/stylex": "0.16.2",
24
+ "@stylexjs/stylex": "0.16.3",
25
25
  "postcss-value-parser": "^4.1.0"
26
26
  },
27
27
  "devDependencies": {
@@ -33,7 +33,7 @@
33
33
  "@rollup/plugin-replace": "^6.0.1",
34
34
  "babel-plugin-syntax-hermes-parser": "^0.26.0",
35
35
  "rollup": "^4.24.0",
36
- "scripts": "0.16.2"
36
+ "scripts": "0.16.3"
37
37
  },
38
38
  "files": [
39
39
  "flow_modules/*",