@stylexjs/babel-plugin 0.14.3 → 0.15.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.
@@ -46,6 +46,7 @@ export type StyleXOptions = Readonly<{
46
46
  enableDebugDataProp?: null | undefined | boolean;
47
47
  enableDevClassNames?: null | undefined | boolean;
48
48
  enableFontSizePxToRem?: null | undefined | boolean;
49
+ enableMediaQueryOrder?: null | undefined | boolean;
49
50
  enableLegacyValueFlipping?: null | undefined | boolean;
50
51
  enableLogicalStylesPolyfill?: null | undefined | boolean;
51
52
  enableMinifiedKeys?: null | undefined | boolean;
@@ -52,6 +52,7 @@ export type StyleXOptions = $ReadOnly<{
52
52
  enableDebugDataProp?: ?boolean,
53
53
  enableDevClassNames?: ?boolean,
54
54
  enableFontSizePxToRem?: ?boolean,
55
+ enableMediaQueryOrder?: ?boolean,
55
56
  enableLegacyValueFlipping?: ?boolean,
56
57
  enableLogicalStylesPolyfill?: ?boolean,
57
58
  enableMinifiedKeys?: ?boolean,
@@ -25,6 +25,7 @@ export declare const ILLEGAL_NAMESPACE_VALUE: 'A StyleX namespace must be an obj
25
25
  export declare const INVALID_CONST_KEY: 'Keys in defineConsts() cannot start with "--".';
26
26
  export declare const INVALID_PSEUDO: 'Invalid pseudo selector, not on the whitelist.';
27
27
  export declare const INVALID_PSEUDO_OR_AT_RULE: 'Invalid pseudo or at-rule.';
28
+ export declare const INVALID_MEDIA_QUERY_SYNTAX: 'Invalid media query syntax.';
28
29
  export declare const LINT_UNCLOSED_FUNCTION: 'Rule contains an unclosed function';
29
30
  export declare const LOCAL_ONLY: 'The return value of create() should not be exported.';
30
31
  export declare const NON_OBJECT_KEYFRAME: 'Every frame within a keyframes() call must be an object.';
@@ -29,6 +29,7 @@ declare export const ILLEGAL_NAMESPACE_VALUE: 'A StyleX namespace must be an obj
29
29
  declare export const INVALID_CONST_KEY: 'Keys in defineConsts() cannot start with "--".';
30
30
  declare export const INVALID_PSEUDO: 'Invalid pseudo selector, not on the whitelist.';
31
31
  declare export const INVALID_PSEUDO_OR_AT_RULE: 'Invalid pseudo or at-rule.';
32
+ declare export const INVALID_MEDIA_QUERY_SYNTAX: 'Invalid media query syntax.';
32
33
  declare export const LINT_UNCLOSED_FUNCTION: 'Rule contains an unclosed function';
33
34
  declare export const LOCAL_ONLY: 'The return value of create() should not be exported.';
34
35
  declare export const NON_OBJECT_KEYFRAME: 'Every frame within a keyframes() call must be an object.';
@@ -65,7 +65,7 @@ export interface CSSType<+_T: string | number = string | number> {
65
65
 
66
66
  declare export const isCSSType: (
67
67
  value: mixed,
68
- ) => implies value is CSSType<string | number>;
68
+ ) => value is CSSType<string | number>;
69
69
 
70
70
  type AngleValue = string;
71
71
  declare export class Angle<+T: AngleValue>
@@ -14,7 +14,7 @@ import type { CompiledStyles } from '../common-types';
14
14
  // eslint-disable-next-line no-unused-vars
15
15
  type AnyObject = { +[string]: mixed };
16
16
 
17
- declare export function isPlainObject(obj: mixed): implies obj is AnyObject;
17
+ declare export function isPlainObject(obj: mixed): obj is AnyObject;
18
18
 
19
19
  declare export function flattenObject(obj: CompiledStyles): {
20
20
  +[string]: null | string,
@@ -46,6 +46,7 @@ export type StyleXOptions = Readonly<
46
46
  enableDebugDataProp?: boolean;
47
47
  enableDevClassNames?: boolean;
48
48
  enableInlinedConditionalMerge?: boolean;
49
+ enableMediaQueryOrder?: boolean;
49
50
  enableLegacyValueFlipping?: boolean;
50
51
  enableLogicalStylesPolyfill?: boolean;
51
52
  enableMinifiedKeys?: boolean;
@@ -69,6 +70,7 @@ export type StyleXOptions = Readonly<
69
70
  enableDebugDataProp?: boolean;
70
71
  enableDevClassNames?: boolean;
71
72
  enableInlinedConditionalMerge?: boolean;
73
+ enableMediaQueryOrder?: boolean;
72
74
  enableLegacyValueFlipping?: boolean;
73
75
  enableLogicalStylesPolyfill?: boolean;
74
76
  enableMinifiedKeys?: boolean;
@@ -48,6 +48,7 @@ export type StyleXOptions = $ReadOnly<{
48
48
  enableDebugDataProp?: boolean,
49
49
  enableDevClassNames?: boolean,
50
50
  enableInlinedConditionalMerge?: boolean,
51
+ enableMediaQueryOrder?: boolean,
51
52
  enableLegacyValueFlipping?: boolean,
52
53
  enableLogicalStylesPolyfill?: boolean,
53
54
  enableMinifiedKeys?: boolean,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stylexjs/babel-plugin",
3
- "version": "0.14.3",
3
+ "version": "0.15.0",
4
4
  "description": "StyleX babel plugin.",
5
5
  "main": "lib/index.js",
6
6
  "repository": {
@@ -21,8 +21,9 @@
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.14.3",
25
- "postcss-value-parser": "^4.1.0"
24
+ "@stylexjs/stylex": "0.15.0",
25
+ "postcss-value-parser": "^4.1.0",
26
+ "style-value-parser": "0.15.0"
26
27
  },
27
28
  "devDependencies": {
28
29
  "@rollup/plugin-alias": "^5.1.1",
@@ -33,7 +34,7 @@
33
34
  "@rollup/plugin-replace": "^6.0.1",
34
35
  "babel-plugin-syntax-hermes-parser": "^0.26.0",
35
36
  "rollup": "^4.24.0",
36
- "scripts": "0.14.3"
37
+ "scripts": "0.15.0"
37
38
  },
38
39
  "files": [
39
40
  "flow_modules/*",