@stylexjs/babel-plugin 0.17.1 → 0.17.2

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.
@@ -55,7 +55,6 @@ export type StyleXOptions = Readonly<{
55
55
  | 'property-specificity'
56
56
  | 'legacy-expand-shorthands';
57
57
  test: boolean;
58
- ...
59
58
  }>;
60
59
  export type MutableCompiledNamespaces = { [key: string]: FlatCompiledStyles };
61
60
  export type CompiledNamespaces = Readonly<MutableCompiledNamespaces>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stylexjs/babel-plugin",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "description": "StyleX babel plugin.",
5
5
  "main": "lib/index.js",
6
6
  "repository": {
@@ -21,8 +21,8 @@
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/shared": "0.17.1",
25
- "@stylexjs/stylex": "0.17.1",
24
+ "@stylexjs/shared": "0.17.2",
25
+ "@stylexjs/stylex": "0.17.2",
26
26
  "postcss-value-parser": "^4.1.0"
27
27
  },
28
28
  "devDependencies": {
@@ -34,7 +34,7 @@
34
34
  "@rollup/plugin-replace": "^6.0.1",
35
35
  "babel-plugin-syntax-hermes-parser": "^0.32.1",
36
36
  "rollup": "^4.24.0",
37
- "scripts": "0.17.1"
37
+ "scripts": "0.17.2"
38
38
  },
39
39
  "files": [
40
40
  "flow_modules/*",
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- *
8
- */
9
-
10
- export declare const PSEUDO_CLASS_PRIORITIES: Readonly<{
11
- [$$Key$$: string]: number;
12
- }>;
13
- type AtRulePriorities = { '@supports': 30; '@media': 200; '@container': 300 };
14
- export declare const AT_RULE_PRIORITIES: Readonly<AtRulePriorities>;
15
- export declare const PSEUDO_ELEMENT_PRIORITY: number;
16
- declare function getPriority(key: string): number;
17
- export default getPriority;
@@ -1,78 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow strict
8
- */
9
-
10
- // type PseudoClassPriorities = {
11
- // ':is': 40,
12
- // ':where': 40,
13
- // ':not': 40,
14
- // ':has': 45,
15
- // ':dir': 50,
16
- // ':lang': 51,
17
- // ':first-child': 52,
18
- // ':first-of-type': 53,
19
- // ':last-child': 54,
20
- // ':last-of-type': 55,
21
- // ':only-child': 56,
22
- // ':only-of-type': 57,
23
- // ':nth-child': 60,
24
- // ':nth-last-child': 61,
25
- // ':nth-of-type': 62,
26
- // ':nth-last-of-type': 63, // 'nth-last-of-type' is the same priority as 'nth-of-type
27
- // ':empty': 70,
28
- // ':link': 80,
29
- // ':any-link': 81,
30
- // ':local-link': 82,
31
- // ':target-within': 83,
32
- // ':target': 84,
33
- // ':visited': 85,
34
- // ':enabled': 91,
35
- // ':disabled': 92,
36
- // ':required': 93,
37
- // ':optional': 94,
38
- // ':read-only': 95,
39
- // ':read-write': 96,
40
- // ':placeholder-shown': 97,
41
- // ':in-range': 98,
42
- // ':out-of-range': 99,
43
- // ':default': 100,
44
- // ':checked': 101,
45
- // ':indeterminate': 101,
46
- // ':blank': 102,
47
- // ':valid': 103,
48
- // ':invalid': 104,
49
- // ':user-invalid': 105,
50
- // ':autofill': 110,
51
- // ':picture-in-picture': 120,
52
- // ':modal': 121,
53
- // ':fullscreen': 122,
54
- // ':paused': 123,
55
- // ':playing': 124,
56
- // ':current': 125,
57
- // ':past': 126,
58
- // ':future': 127,
59
- // ':hover': 130,
60
- // ':focusWithin': 140,
61
- // ':focus': 150,
62
- // ':focusVisible': 160,
63
- // ':active': 170,
64
- // };
65
-
66
- declare export const PSEUDO_CLASS_PRIORITIES: $ReadOnly<{ [string]: number }>;
67
-
68
- type AtRulePriorities = {
69
- '@supports': 30,
70
- '@media': 200,
71
- '@container': 300,
72
- };
73
-
74
- declare export const AT_RULE_PRIORITIES: $ReadOnly<AtRulePriorities>;
75
-
76
- declare export const PSEUDO_ELEMENT_PRIORITY: number;
77
-
78
- declare export default function getPriority(key: string): number;
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- *
8
- */
9
-
10
- import type { NodePath } from '@babel/traverse';
11
- import type StateManager from '../utils/state-manager';
12
- import * as t from '@babel/types';
13
- /**
14
- * Transform `stylex.defaultTarget` calls and property access to use the configured classNamePrefix
15
- */
16
- declare function transformStyleXDefaultTarget(
17
- path: NodePath<t.CallExpression | t.MemberExpression>,
18
- state: StateManager,
19
- ): void;
20
- export default transformStyleXDefaultTarget;
@@ -1,21 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow strict
8
- */
9
-
10
- import type { NodePath } from '../../flow_modules/@babel/traverse';
11
- import type StateManager from '../utils/state-manager';
12
-
13
- import * as t from '../../flow_modules/@babel/types';
14
-
15
- /**
16
- * Transform `stylex.defaultTarget` calls and property access to use the configured classNamePrefix
17
- */
18
- declare export default function transformStyleXDefaultTarget(
19
- path: NodePath<t.CallExpression | t.MemberExpression>,
20
- state: StateManager,
21
- ): void;