@atlaskit/react-select 2.4.7 → 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 CHANGED
@@ -1,5 +1,19 @@
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
+
11
+ ## 2.4.8
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 2.4.7
4
18
 
5
19
  ### 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 = [':hover', ':focus', ':active', ':visited', ':link', ':checked', ':disabled', ':enabled', ':first-child', ':last-child', ':nth-child', ':nth-last-child', ':only-child', ':first-of-type', ':last-of-type', ':nth-of-type', ':nth-last-of-type', ':only-of-type', ':empty', ':not', ':root', ':target', ':before', ':after', '::before', '::after', '::placeholder', '::selection', '::backdrop', '::marker', '::first-line', '::first-letter', '::spelling-error', '::grammar-error', '[attr]',
354
- // Attribute selectors
355
- '[attr=value]',
356
- // Attribute value selectors
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
- // Child combinator
358
+ // child combinator
369
359
  '+',
370
- // Adjacent sibling combinator
360
+ // adjacent sibling combinator
371
361
  '~',
372
- // General sibling combinator
373
- ' ' // Descendant combinator
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) {
@@ -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 = [':hover', ':focus', ':active', ':visited', ':link', ':checked', ':disabled', ':enabled', ':first-child', ':last-child', ':nth-child', ':nth-last-child', ':only-child', ':first-of-type', ':last-of-type', ':nth-of-type', ':nth-last-of-type', ':only-of-type', ':empty', ':not', ':root', ':target', ':before', ':after', '::before', '::after', '::placeholder', '::selection', '::backdrop', '::marker', '::first-line', '::first-letter', '::spelling-error', '::grammar-error', '[attr]',
309
- // Attribute selectors
310
- '[attr=value]',
311
- // Attribute value selectors
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
- // Child combinator
313
+ // child combinator
324
314
  '+',
325
- // Adjacent sibling combinator
315
+ // adjacent sibling combinator
326
316
  '~',
327
- // General sibling combinator
328
- ' ' // Descendant combinator
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 = [':hover', ':focus', ':active', ':visited', ':link', ':checked', ':disabled', ':enabled', ':first-child', ':last-child', ':nth-child', ':nth-last-child', ':only-child', ':first-of-type', ':last-of-type', ':nth-of-type', ':nth-last-of-type', ':only-of-type', ':empty', ':not', ':root', ':target', ':before', ':after', '::before', '::after', '::placeholder', '::selection', '::backdrop', '::marker', '::first-line', '::first-letter', '::spelling-error', '::grammar-error', '[attr]',
327
- // Attribute selectors
328
- '[attr=value]',
329
- // Attribute value selectors
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
- // Child combinator
331
+ // child combinator
342
332
  '+',
343
- // Adjacent sibling combinator
333
+ // adjacent sibling combinator
344
334
  '~',
345
- // General sibling combinator
346
- ' ' // Descendant combinator
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-select",
3
- "version": "2.4.7",
3
+ "version": "2.4.9",
4
4
  "description": "A forked version of react-select to only be used in atlaskit/select",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@atlaskit/ds-lib": "^4.0.0",
33
- "@atlaskit/icon": "^25.7.0",
33
+ "@atlaskit/icon": "^26.0.0",
34
34
  "@atlaskit/layering": "^2.1.0",
35
35
  "@atlaskit/platform-feature-flags": "^1.1.0",
36
36
  "@atlaskit/primitives": "^14.7.0",