@atlaskit/eslint-plugin-ui-styling-standard 1.6.1 → 1.6.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.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/rules/no-unsafe-selectors/constants.js +3 -1
- package/dist/es2019/rules/no-unsafe-selectors/constants.js +3 -1
- package/dist/esm/rules/no-unsafe-selectors/constants.js +3 -1
- package/dist/types/rules/no-unsafe-selectors/constants.d.ts +1 -1
- package/dist/types-ts4.5/rules/no-unsafe-selectors/constants.d.ts +17 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-ui-styling-standard
|
|
2
2
|
|
|
3
|
+
## 1.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2c00950ad9e0b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c00950ad9e0b) -
|
|
8
|
+
Align no-unsafe-selectors allowed pseudos with @compiled/react CSSPseudos: add &:popover-open and
|
|
9
|
+
chained pseudos (e.g. &:hover::after, &:focus::before, &:visited:focus) so the constants tuple
|
|
10
|
+
type-checks. Rule behavior unchanged; only type-sync with the platform.
|
|
11
|
+
|
|
3
12
|
## 1.6.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -13,7 +13,9 @@ exports.legacyPseudoElements = exports.ignoredAtRules = exports.allowedPseudos =
|
|
|
13
13
|
* Exporting this so it isn't considered unused.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
var cssPseudos = ['&:active', '&:autofill', '&:blank', '&:checked', '&:default', '&:defined', '&:disabled', '&:empty', '&:enabled', '&:first', '&:focus', '&:focus-visible', '&:focus-within', '&:fullscreen', '&:hover', '&:in-range', '&:indeterminate', '&:invalid', '&:left', '&:link', '&:local-link', '&:optional', '&:out-of-range', '&:paused', '&:picture-in-picture', '&:placeholder-shown', '&:playing', '&:read-only', '&:read-write', '&:required', '&:right', '&:target', '&:user-invalid', '&:user-valid', '&:valid', '&:visited', '&::after', '&::backdrop', '&::before', '&::cue', '&::cue-region', '&::first-letter', '&::first-line', '&::grammar-error', '&::marker', '&::placeholder', '&::selection', '&::spelling-error', '&::target-text', '&::view-transition', '&::-webkit-details-marker'
|
|
16
|
+
var cssPseudos = ['&:active', '&:autofill', '&:blank', '&:checked', '&:default', '&:defined', '&:disabled', '&:empty', '&:enabled', '&:first', '&:focus', '&:focus-visible', '&:focus-within', '&:fullscreen', '&:hover', '&:in-range', '&:indeterminate', '&:invalid', '&:left', '&:link', '&:local-link', '&:optional', '&:out-of-range', '&:paused', '&:picture-in-picture', '&:placeholder-shown', '&:playing', '&:popover-open', '&:read-only', '&:read-write', '&:required', '&:right', '&:target', '&:user-invalid', '&:user-valid', '&:valid', '&:visited', '&::after', '&::backdrop', '&::before', '&::cue', '&::cue-region', '&::first-letter', '&::first-line', '&::grammar-error', '&::marker', '&::placeholder', '&::selection', '&::spelling-error', '&::target-text', '&::view-transition', '&::-webkit-details-marker',
|
|
17
|
+
// Chained pseudos (CSSFlattenedChainedPsuedos from @compiled/react)
|
|
18
|
+
'&:active:visited', '&:focus:not(:focus-visible)', '&:focus::after', '&:focus::before', '&:focus-visible::after', '&:focus-visible::before', '&:focus-within::after', '&:focus-within::before', '&:hover::after', '&:hover::before', '&:visited:active', '&:visited:hover', '&:visited:focus', '&:visited:focus-visible', '&:visited:focus-within'];
|
|
17
19
|
var allowedPseudos = exports.allowedPseudos = new Set(
|
|
18
20
|
/**
|
|
19
21
|
* The `&` is included above for type checking reasons,
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
* Exporting this so it isn't considered unused.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
const cssPseudos = ['&:active', '&:autofill', '&:blank', '&:checked', '&:default', '&:defined', '&:disabled', '&:empty', '&:enabled', '&:first', '&:focus', '&:focus-visible', '&:focus-within', '&:fullscreen', '&:hover', '&:in-range', '&:indeterminate', '&:invalid', '&:left', '&:link', '&:local-link', '&:optional', '&:out-of-range', '&:paused', '&:picture-in-picture', '&:placeholder-shown', '&:playing', '&:read-only', '&:read-write', '&:required', '&:right', '&:target', '&:user-invalid', '&:user-valid', '&:valid', '&:visited', '&::after', '&::backdrop', '&::before', '&::cue', '&::cue-region', '&::first-letter', '&::first-line', '&::grammar-error', '&::marker', '&::placeholder', '&::selection', '&::spelling-error', '&::target-text', '&::view-transition', '&::-webkit-details-marker'
|
|
10
|
+
const cssPseudos = ['&:active', '&:autofill', '&:blank', '&:checked', '&:default', '&:defined', '&:disabled', '&:empty', '&:enabled', '&:first', '&:focus', '&:focus-visible', '&:focus-within', '&:fullscreen', '&:hover', '&:in-range', '&:indeterminate', '&:invalid', '&:left', '&:link', '&:local-link', '&:optional', '&:out-of-range', '&:paused', '&:picture-in-picture', '&:placeholder-shown', '&:playing', '&:popover-open', '&:read-only', '&:read-write', '&:required', '&:right', '&:target', '&:user-invalid', '&:user-valid', '&:valid', '&:visited', '&::after', '&::backdrop', '&::before', '&::cue', '&::cue-region', '&::first-letter', '&::first-line', '&::grammar-error', '&::marker', '&::placeholder', '&::selection', '&::spelling-error', '&::target-text', '&::view-transition', '&::-webkit-details-marker',
|
|
11
|
+
// Chained pseudos (CSSFlattenedChainedPsuedos from @compiled/react)
|
|
12
|
+
'&:active:visited', '&:focus:not(:focus-visible)', '&:focus::after', '&:focus::before', '&:focus-visible::after', '&:focus-visible::before', '&:focus-within::after', '&:focus-within::before', '&:hover::after', '&:hover::before', '&:visited:active', '&:visited:hover', '&:visited:focus', '&:visited:focus-visible', '&:visited:focus-within'];
|
|
11
13
|
export const allowedPseudos = new Set(
|
|
12
14
|
/**
|
|
13
15
|
* The `&` is included above for type checking reasons,
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
* Exporting this so it isn't considered unused.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var cssPseudos = ['&:active', '&:autofill', '&:blank', '&:checked', '&:default', '&:defined', '&:disabled', '&:empty', '&:enabled', '&:first', '&:focus', '&:focus-visible', '&:focus-within', '&:fullscreen', '&:hover', '&:in-range', '&:indeterminate', '&:invalid', '&:left', '&:link', '&:local-link', '&:optional', '&:out-of-range', '&:paused', '&:picture-in-picture', '&:placeholder-shown', '&:playing', '&:read-only', '&:read-write', '&:required', '&:right', '&:target', '&:user-invalid', '&:user-valid', '&:valid', '&:visited', '&::after', '&::backdrop', '&::before', '&::cue', '&::cue-region', '&::first-letter', '&::first-line', '&::grammar-error', '&::marker', '&::placeholder', '&::selection', '&::spelling-error', '&::target-text', '&::view-transition', '&::-webkit-details-marker'
|
|
10
|
+
var cssPseudos = ['&:active', '&:autofill', '&:blank', '&:checked', '&:default', '&:defined', '&:disabled', '&:empty', '&:enabled', '&:first', '&:focus', '&:focus-visible', '&:focus-within', '&:fullscreen', '&:hover', '&:in-range', '&:indeterminate', '&:invalid', '&:left', '&:link', '&:local-link', '&:optional', '&:out-of-range', '&:paused', '&:picture-in-picture', '&:placeholder-shown', '&:playing', '&:popover-open', '&:read-only', '&:read-write', '&:required', '&:right', '&:target', '&:user-invalid', '&:user-valid', '&:valid', '&:visited', '&::after', '&::backdrop', '&::before', '&::cue', '&::cue-region', '&::first-letter', '&::first-line', '&::grammar-error', '&::marker', '&::placeholder', '&::selection', '&::spelling-error', '&::target-text', '&::view-transition', '&::-webkit-details-marker',
|
|
11
|
+
// Chained pseudos (CSSFlattenedChainedPsuedos from @compiled/react)
|
|
12
|
+
'&:active:visited', '&:focus:not(:focus-visible)', '&:focus::after', '&:focus::before', '&:focus-visible::after', '&:focus-visible::before', '&:focus-within::after', '&:focus-within::before', '&:hover::after', '&:hover::before', '&:visited:active', '&:visited:hover', '&:visited:focus', '&:visited:focus-visible', '&:visited:focus-within'];
|
|
11
13
|
export var allowedPseudos = new Set(
|
|
12
14
|
/**
|
|
13
15
|
* The `&` is included above for type checking reasons,
|
|
@@ -13,7 +13,7 @@ type HasAllUnique<Tuple, Union, Seen = never> = Tuple extends readonly [infer He
|
|
|
13
13
|
* Exporting this so it isn't considered unused.
|
|
14
14
|
*/
|
|
15
15
|
export type _ = Validate<HasAllUnique<typeof cssPseudos, CSSPseudos>>;
|
|
16
|
-
declare const cssPseudos: readonly ["&:active", "&:autofill", "&:blank", "&:checked", "&:default", "&:defined", "&:disabled", "&:empty", "&:enabled", "&:first", "&:focus", "&:focus-visible", "&:focus-within", "&:fullscreen", "&:hover", "&:in-range", "&:indeterminate", "&:invalid", "&:left", "&:link", "&:local-link", "&:optional", "&:out-of-range", "&:paused", "&:picture-in-picture", "&:placeholder-shown", "&:playing", "&:read-only", "&:read-write", "&:required", "&:right", "&:target", "&:user-invalid", "&:user-valid", "&:valid", "&:visited", "&::after", "&::backdrop", "&::before", "&::cue", "&::cue-region", "&::first-letter", "&::first-line", "&::grammar-error", "&::marker", "&::placeholder", "&::selection", "&::spelling-error", "&::target-text", "&::view-transition", "&::-webkit-details-marker"];
|
|
16
|
+
declare const cssPseudos: readonly ["&:active", "&:autofill", "&:blank", "&:checked", "&:default", "&:defined", "&:disabled", "&:empty", "&:enabled", "&:first", "&:focus", "&:focus-visible", "&:focus-within", "&:fullscreen", "&:hover", "&:in-range", "&:indeterminate", "&:invalid", "&:left", "&:link", "&:local-link", "&:optional", "&:out-of-range", "&:paused", "&:picture-in-picture", "&:placeholder-shown", "&:playing", "&:popover-open", "&:read-only", "&:read-write", "&:required", "&:right", "&:target", "&:user-invalid", "&:user-valid", "&:valid", "&:visited", "&::after", "&::backdrop", "&::before", "&::cue", "&::cue-region", "&::first-letter", "&::first-line", "&::grammar-error", "&::marker", "&::placeholder", "&::selection", "&::spelling-error", "&::target-text", "&::view-transition", "&::-webkit-details-marker", "&:active:visited", "&:focus:not(:focus-visible)", "&:focus::after", "&:focus::before", "&:focus-visible::after", "&:focus-visible::before", "&:focus-within::after", "&:focus-within::before", "&:hover::after", "&:hover::before", "&:visited:active", "&:visited:hover", "&:visited:focus", "&:visited:focus-visible", "&:visited:focus-within"];
|
|
17
17
|
export declare const allowedPseudos: Set<string>;
|
|
18
18
|
export declare const legacyPseudoElements: Set<string>;
|
|
19
19
|
export declare const ignoredAtRules: Set<string>;
|
|
@@ -54,6 +54,7 @@ declare const cssPseudos: readonly [
|
|
|
54
54
|
"&:picture-in-picture",
|
|
55
55
|
"&:placeholder-shown",
|
|
56
56
|
"&:playing",
|
|
57
|
+
"&:popover-open",
|
|
57
58
|
"&:read-only",
|
|
58
59
|
"&:read-write",
|
|
59
60
|
"&:required",
|
|
@@ -77,7 +78,22 @@ declare const cssPseudos: readonly [
|
|
|
77
78
|
"&::spelling-error",
|
|
78
79
|
"&::target-text",
|
|
79
80
|
"&::view-transition",
|
|
80
|
-
"&::-webkit-details-marker"
|
|
81
|
+
"&::-webkit-details-marker",
|
|
82
|
+
"&:active:visited",
|
|
83
|
+
"&:focus:not(:focus-visible)",
|
|
84
|
+
"&:focus::after",
|
|
85
|
+
"&:focus::before",
|
|
86
|
+
"&:focus-visible::after",
|
|
87
|
+
"&:focus-visible::before",
|
|
88
|
+
"&:focus-within::after",
|
|
89
|
+
"&:focus-within::before",
|
|
90
|
+
"&:hover::after",
|
|
91
|
+
"&:hover::before",
|
|
92
|
+
"&:visited:active",
|
|
93
|
+
"&:visited:hover",
|
|
94
|
+
"&:visited:focus",
|
|
95
|
+
"&:visited:focus-visible",
|
|
96
|
+
"&:visited:focus-within"
|
|
81
97
|
];
|
|
82
98
|
export declare const allowedPseudos: Set<string>;
|
|
83
99
|
export declare const legacyPseudoElements: Set<string>;
|
package/package.json
CHANGED