@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.
- package/lib/index.d.ts +5 -5
- package/lib/index.js +58 -14
- package/lib/index.js.flow +1 -1
- package/lib/shared/common-types.d.ts +3 -4
- package/lib/shared/stylex-create-theme.d.ts +1 -1
- package/lib/shared/stylex-define-vars.d.ts +3 -3
- package/lib/shared/types/index.js.flow +11 -11
- package/lib/utils/add-sourcemap-data.js.flow +2 -2
- package/lib/utils/ast-helpers.js.flow +3 -3
- package/lib/utils/evaluate-path.js.flow +2 -2
- package/lib/utils/js-to-ast.js.flow +1 -1
- package/lib/utils/state-manager.d.ts +36 -19
- package/lib/utils/state-manager.js.flow +36 -22
- package/lib/utils/validate.d.ts +1 -0
- package/lib/utils/validate.js.flow +2 -0
- package/lib/visitors/imports.js.flow +2 -2
- package/lib/visitors/parse-stylex-create-arg.js.flow +2 -2
- package/lib/visitors/stylex-create-theme.js.flow +2 -2
- package/lib/visitors/stylex-create.js.flow +2 -2
- package/lib/visitors/stylex-default-marker.js.flow +2 -2
- package/lib/visitors/stylex-define-consts.js.flow +2 -2
- package/lib/visitors/stylex-define-vars.js.flow +2 -2
- package/lib/visitors/stylex-keyframes.js.flow +2 -2
- package/lib/visitors/stylex-merge.js.flow +2 -2
- package/lib/visitors/stylex-position-try.js.flow +2 -2
- package/lib/visitors/stylex-props.js.flow +2 -2
- package/lib/visitors/stylex-view-transition-class.js.flow +2 -2
- package/package.json +3 -3
- package/flow_modules/@babel/core/index.js.flow +0 -854
- package/flow_modules/@babel/generator/index.js.flow +0 -216
- package/flow_modules/@babel/helper-module-imports/index.js.flow +0 -182
- package/flow_modules/@babel/parser/index.js.flow +0 -253
- package/flow_modules/@babel/traverse/index.js.flow +0 -1007
- 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 '
|
|
11
|
-
import * as t from '
|
|
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 '
|
|
11
|
-
import * as t from '
|
|
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 '
|
|
10
|
+
import type { NodePath } from '@babel/traverse';
|
|
11
11
|
|
|
12
|
-
import * as t from '
|
|
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 '
|
|
11
|
-
import * as t from '
|
|
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 '
|
|
11
|
-
import * as t from '
|
|
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 '
|
|
11
|
-
import * as t from '
|
|
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.
|
|
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.
|
|
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.
|
|
36
|
+
"scripts": "0.16.3"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"flow_modules/*",
|