@atlaskit/react-select 2.4.8 → 2.4.9
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 +8 -0
- package/dist/cjs/utils.js +26 -18
- package/dist/es2019/utils.js +26 -18
- package/dist/esm/utils.js +26 -18
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/react-select
|
|
2
2
|
|
|
3
|
+
## 2.4.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#156309](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/156309)
|
|
8
|
+
[`684b2b1960644`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/684b2b1960644) -
|
|
9
|
+
Remove all possible CSS selector patterns that would be invalid in inline styles
|
|
10
|
+
|
|
3
11
|
## 2.4.8
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/utils.js
CHANGED
|
@@ -350,27 +350,35 @@ var removeProps = exports.removeProps = function removeProps(propsObj) {
|
|
|
350
350
|
* @returns A new object containing only supported styles.
|
|
351
351
|
*/
|
|
352
352
|
var filterUnsupportedSelectors = exports.filterUnsupportedSelectors = function filterUnsupportedSelectors(styles) {
|
|
353
|
-
var unsupportedSelectors = [':
|
|
354
|
-
//
|
|
355
|
-
'[
|
|
356
|
-
//
|
|
357
|
-
'[attr^=value]',
|
|
358
|
-
// Attribute starts with
|
|
359
|
-
'[attr$=value]',
|
|
360
|
-
// Attribute ends with
|
|
361
|
-
'[attr*=value]',
|
|
362
|
-
// Attribute contains
|
|
363
|
-
'[attr|=value]',
|
|
364
|
-
// Attribute value with hyphen
|
|
365
|
-
'[attr~=value]',
|
|
366
|
-
// Attribute value in space-separated list
|
|
353
|
+
var unsupportedSelectors = [':',
|
|
354
|
+
// pseudo-classes/elements
|
|
355
|
+
'[',
|
|
356
|
+
// attribute selectors
|
|
367
357
|
'>',
|
|
368
|
-
//
|
|
358
|
+
// child combinator
|
|
369
359
|
'+',
|
|
370
|
-
//
|
|
360
|
+
// adjacent sibling combinator
|
|
371
361
|
'~',
|
|
372
|
-
//
|
|
373
|
-
' '
|
|
362
|
+
// general sibling combinator
|
|
363
|
+
' ',
|
|
364
|
+
// descendant combinator
|
|
365
|
+
'*',
|
|
366
|
+
// universal selector
|
|
367
|
+
'#',
|
|
368
|
+
// ID selector
|
|
369
|
+
'.',
|
|
370
|
+
// class selector
|
|
371
|
+
'@',
|
|
372
|
+
// at-rules
|
|
373
|
+
'&',
|
|
374
|
+
// parent selector
|
|
375
|
+
'|',
|
|
376
|
+
// namespace separator
|
|
377
|
+
'^',
|
|
378
|
+
// starts with
|
|
379
|
+
'$',
|
|
380
|
+
// ends with
|
|
381
|
+
'=' // equals
|
|
374
382
|
];
|
|
375
383
|
return Object.keys(styles).reduce(function (filteredStyles, key) {
|
|
376
384
|
if (!unsupportedSelectors.some(function (selector) {
|
package/dist/es2019/utils.js
CHANGED
|
@@ -305,27 +305,35 @@ export const removeProps = (propsObj, ...properties) => {
|
|
|
305
305
|
* @returns A new object containing only supported styles.
|
|
306
306
|
*/
|
|
307
307
|
export const filterUnsupportedSelectors = styles => {
|
|
308
|
-
const unsupportedSelectors = [':
|
|
309
|
-
//
|
|
310
|
-
'[
|
|
311
|
-
//
|
|
312
|
-
'[attr^=value]',
|
|
313
|
-
// Attribute starts with
|
|
314
|
-
'[attr$=value]',
|
|
315
|
-
// Attribute ends with
|
|
316
|
-
'[attr*=value]',
|
|
317
|
-
// Attribute contains
|
|
318
|
-
'[attr|=value]',
|
|
319
|
-
// Attribute value with hyphen
|
|
320
|
-
'[attr~=value]',
|
|
321
|
-
// Attribute value in space-separated list
|
|
308
|
+
const unsupportedSelectors = [':',
|
|
309
|
+
// pseudo-classes/elements
|
|
310
|
+
'[',
|
|
311
|
+
// attribute selectors
|
|
322
312
|
'>',
|
|
323
|
-
//
|
|
313
|
+
// child combinator
|
|
324
314
|
'+',
|
|
325
|
-
//
|
|
315
|
+
// adjacent sibling combinator
|
|
326
316
|
'~',
|
|
327
|
-
//
|
|
328
|
-
' '
|
|
317
|
+
// general sibling combinator
|
|
318
|
+
' ',
|
|
319
|
+
// descendant combinator
|
|
320
|
+
'*',
|
|
321
|
+
// universal selector
|
|
322
|
+
'#',
|
|
323
|
+
// ID selector
|
|
324
|
+
'.',
|
|
325
|
+
// class selector
|
|
326
|
+
'@',
|
|
327
|
+
// at-rules
|
|
328
|
+
'&',
|
|
329
|
+
// parent selector
|
|
330
|
+
'|',
|
|
331
|
+
// namespace separator
|
|
332
|
+
'^',
|
|
333
|
+
// starts with
|
|
334
|
+
'$',
|
|
335
|
+
// ends with
|
|
336
|
+
'=' // equals
|
|
329
337
|
];
|
|
330
338
|
return Object.keys(styles).reduce((filteredStyles, key) => {
|
|
331
339
|
if (!unsupportedSelectors.some(selector => key.includes(selector))) {
|
package/dist/esm/utils.js
CHANGED
|
@@ -323,27 +323,35 @@ export var removeProps = function removeProps(propsObj) {
|
|
|
323
323
|
* @returns A new object containing only supported styles.
|
|
324
324
|
*/
|
|
325
325
|
export var filterUnsupportedSelectors = function filterUnsupportedSelectors(styles) {
|
|
326
|
-
var unsupportedSelectors = [':
|
|
327
|
-
//
|
|
328
|
-
'[
|
|
329
|
-
//
|
|
330
|
-
'[attr^=value]',
|
|
331
|
-
// Attribute starts with
|
|
332
|
-
'[attr$=value]',
|
|
333
|
-
// Attribute ends with
|
|
334
|
-
'[attr*=value]',
|
|
335
|
-
// Attribute contains
|
|
336
|
-
'[attr|=value]',
|
|
337
|
-
// Attribute value with hyphen
|
|
338
|
-
'[attr~=value]',
|
|
339
|
-
// Attribute value in space-separated list
|
|
326
|
+
var unsupportedSelectors = [':',
|
|
327
|
+
// pseudo-classes/elements
|
|
328
|
+
'[',
|
|
329
|
+
// attribute selectors
|
|
340
330
|
'>',
|
|
341
|
-
//
|
|
331
|
+
// child combinator
|
|
342
332
|
'+',
|
|
343
|
-
//
|
|
333
|
+
// adjacent sibling combinator
|
|
344
334
|
'~',
|
|
345
|
-
//
|
|
346
|
-
' '
|
|
335
|
+
// general sibling combinator
|
|
336
|
+
' ',
|
|
337
|
+
// descendant combinator
|
|
338
|
+
'*',
|
|
339
|
+
// universal selector
|
|
340
|
+
'#',
|
|
341
|
+
// ID selector
|
|
342
|
+
'.',
|
|
343
|
+
// class selector
|
|
344
|
+
'@',
|
|
345
|
+
// at-rules
|
|
346
|
+
'&',
|
|
347
|
+
// parent selector
|
|
348
|
+
'|',
|
|
349
|
+
// namespace separator
|
|
350
|
+
'^',
|
|
351
|
+
// starts with
|
|
352
|
+
'$',
|
|
353
|
+
// ends with
|
|
354
|
+
'=' // equals
|
|
347
355
|
];
|
|
348
356
|
return Object.keys(styles).reduce(function (filteredStyles, key) {
|
|
349
357
|
if (!unsupportedSelectors.some(function (selector) {
|