braid-design-system 32.23.0 → 32.24.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.
- package/CHANGELOG.md +64 -0
- package/codemod/dist/index.js +55 -110
- package/codemod/dist/wrapper.js +26135 -36560
- package/dist/lib/components/Autosuggest/Autosuggest.cjs +5 -5
- package/dist/lib/components/Autosuggest/Autosuggest.mjs +5 -5
- package/dist/lib/components/Autosuggest/reverseMatches.cjs +17 -0
- package/dist/lib/components/Autosuggest/reverseMatches.mjs +18 -0
- package/dist/lib/components/Divider/Divider.cjs +3 -2
- package/dist/lib/components/Divider/Divider.mjs +3 -2
- package/dist/lib/components/MenuRenderer/MenuRenderer.cjs +1 -1
- package/dist/lib/components/MenuRenderer/MenuRenderer.css.cjs +7 -0
- package/dist/lib/components/MenuRenderer/MenuRenderer.css.mjs +7 -0
- package/dist/lib/components/MenuRenderer/MenuRenderer.mjs +2 -2
- package/dist/lib/components/Stack/Stack.cjs +29 -1
- package/dist/lib/components/Stack/Stack.mjs +28 -1
- package/dist/lib/components/TextLink/TextLink.cjs +1 -1
- package/dist/lib/components/TextLink/TextLink.mjs +1 -1
- package/dist/lib/components/Tiles/Tiles.cjs +87 -50
- package/dist/lib/components/Tiles/Tiles.mjs +85 -50
- package/dist/lib/components/private/Field/Field.cjs +1 -1
- package/dist/lib/components/private/Field/Field.mjs +1 -1
- package/dist/lib/components/private/FieldGroup/FieldGroup.cjs +1 -1
- package/dist/lib/components/private/FieldGroup/FieldGroup.mjs +1 -1
- package/dist/lib/components/private/InlineField/InlineField.cjs +1 -1
- package/dist/lib/components/private/InlineField/InlineField.css.cjs +11 -0
- package/dist/lib/components/private/InlineField/InlineField.css.mjs +11 -0
- package/dist/lib/components/private/InlineField/InlineField.mjs +1 -1
- package/dist/lib/components/private/InlineField/StyledInput.cjs +15 -13
- package/dist/lib/components/private/InlineField/StyledInput.mjs +16 -14
- package/dist/wireframe.chunk.d.ts +21 -5
- package/package.json +3 -3
- package/dist/lib/components/Autosuggest/useScrollIntoView.cjs +0 -19
- package/dist/lib/components/Autosuggest/useScrollIntoView.mjs +0 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,69 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
+
## 32.24.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- **Autosuggest**: Optimise automatic scrolling to selected suggestion by using native browser methods. ([#1571](https://github.com/seek-oss/braid-design-system/pull/1571))
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- **Stack, Tiles:** Deprecate `dividers` prop ([#1574](https://github.com/seek-oss/braid-design-system/pull/1574))
|
|
12
|
+
|
|
13
|
+
In preparation for migrating Braid layout components to use [CSS gap], the `dividers` prop has been deprecated on `Stack` and `Tiles`.
|
|
14
|
+
|
|
15
|
+
Consumers are encouraged to migrate now in advance of its removal in v33.
|
|
16
|
+
|
|
17
|
+
#### Migration Guide
|
|
18
|
+
|
|
19
|
+
See [the migration guide] for details on how to migrate off the `dividers` prop.
|
|
20
|
+
|
|
21
|
+
[CSS gap]: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
|
|
22
|
+
[migration guide]: https://github.com/seek-oss/braid-design-system/blob/master/docs/Removing%20dividers%20support%20from%20layout%20components.md
|
|
23
|
+
|
|
24
|
+
- **Autosuggest**: Improve handling of `suggestionHighlight` prop when set to `remaining` ([#1572](https://github.com/seek-oss/braid-design-system/pull/1572))
|
|
25
|
+
|
|
26
|
+
Fixes a bug in `Autosuggest` when using `suggestionHighlight` prop set to `remaining`.
|
|
27
|
+
If the input contained multiple words, the highlighted portion would be appended to the end of matching suggestions.
|
|
28
|
+
|
|
29
|
+
- **Divider:** Ensure full width in flex container ([#1574](https://github.com/seek-oss/braid-design-system/pull/1574))
|
|
30
|
+
|
|
31
|
+
Ensures the `Divider` component remains full width when used as a flex child inside a flex container.
|
|
32
|
+
|
|
33
|
+
## 32.23.1
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- **RadioItem:** Improve `checked` visual affordance when `disabled` ([#1564](https://github.com/seek-oss/braid-design-system/pull/1564))
|
|
38
|
+
|
|
39
|
+
Improve the visual affordance of the `checked` state when `disabled` across all themes and colour modes.
|
|
40
|
+
|
|
41
|
+
- **MenuRenderer, OverflowMenu:** Limit the menu height ([#1567](https://github.com/seek-oss/braid-design-system/pull/1567))
|
|
42
|
+
|
|
43
|
+
Limit the menu to show a maximum of around 10 items before scrolling (a little less so it's evident there is more to scroll to).
|
|
44
|
+
|
|
45
|
+
- **TextLink:** Default to weak inside secondary tone ([#1561](https://github.com/seek-oss/braid-design-system/pull/1561))
|
|
46
|
+
|
|
47
|
+
Align the `secondary` tone with other non-neutral text tones, making the foreground color of links inherit the tone of the wrapping `Text` component.
|
|
48
|
+
|
|
49
|
+
**EXAMPLE USAGE:**
|
|
50
|
+
In the following example the `TextLink` will now follow the `secondary` tone from the wrapping `Text` component:
|
|
51
|
+
|
|
52
|
+
```jsx
|
|
53
|
+
<Text tone="secondary">
|
|
54
|
+
<TextLink href="#">Link</TextLink>
|
|
55
|
+
</Text>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Previously this would have retained the default link colour from the theme.
|
|
59
|
+
|
|
60
|
+
- Standardise `disabled` & `critical` state across form fields ([#1564](https://github.com/seek-oss/braid-design-system/pull/1564))
|
|
61
|
+
|
|
62
|
+
Improves the consistency of form fields when combining both `disabled` and `critical` tone, which includes:
|
|
63
|
+
|
|
64
|
+
- Hiding `critical` borders
|
|
65
|
+
- Hiding `message` and not reserving space for it unless explicitly providing the `reserveMessageSpace` prop.
|
|
66
|
+
|
|
3
67
|
## 32.23.0
|
|
4
68
|
|
|
5
69
|
### Minor Changes
|
package/codemod/dist/index.js
CHANGED
|
@@ -153,8 +153,7 @@ var require_is_extglob = __commonJS({
|
|
|
153
153
|
}
|
|
154
154
|
var match;
|
|
155
155
|
while (match = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
|
|
156
|
-
if (match[2])
|
|
157
|
-
return true;
|
|
156
|
+
if (match[2]) return true;
|
|
158
157
|
str = str.slice(match.index + match[0].length);
|
|
159
158
|
}
|
|
160
159
|
return false;
|
|
@@ -337,16 +336,13 @@ var require_utils = __commonJS({
|
|
|
337
336
|
};
|
|
338
337
|
exports2.find = (node, type) => node.nodes.find((node2) => node2.type === type);
|
|
339
338
|
exports2.exceedsLimit = (min, max, step = 1, limit) => {
|
|
340
|
-
if (limit === false)
|
|
341
|
-
|
|
342
|
-
if (!exports2.isInteger(min) || !exports2.isInteger(max))
|
|
343
|
-
return false;
|
|
339
|
+
if (limit === false) return false;
|
|
340
|
+
if (!exports2.isInteger(min) || !exports2.isInteger(max)) return false;
|
|
344
341
|
return (Number(max) - Number(min)) / Number(step) >= limit;
|
|
345
342
|
};
|
|
346
343
|
exports2.escapeNode = (block, n = 0, type) => {
|
|
347
344
|
let node = block.nodes[n];
|
|
348
|
-
if (!node)
|
|
349
|
-
return;
|
|
345
|
+
if (!node) return;
|
|
350
346
|
if (type && node.type === type || node.type === "open" || node.type === "close") {
|
|
351
347
|
if (node.escaped !== true) {
|
|
352
348
|
node.value = "\\" + node.value;
|
|
@@ -355,8 +351,7 @@ var require_utils = __commonJS({
|
|
|
355
351
|
}
|
|
356
352
|
};
|
|
357
353
|
exports2.encloseBrace = (node) => {
|
|
358
|
-
if (node.type !== "brace")
|
|
359
|
-
return false;
|
|
354
|
+
if (node.type !== "brace") return false;
|
|
360
355
|
if (node.commas >> 0 + node.ranges >> 0 === 0) {
|
|
361
356
|
node.invalid = true;
|
|
362
357
|
return true;
|
|
@@ -364,10 +359,8 @@ var require_utils = __commonJS({
|
|
|
364
359
|
return false;
|
|
365
360
|
};
|
|
366
361
|
exports2.isInvalidBrace = (block) => {
|
|
367
|
-
if (block.type !== "brace")
|
|
368
|
-
|
|
369
|
-
if (block.invalid === true || block.dollar)
|
|
370
|
-
return true;
|
|
362
|
+
if (block.type !== "brace") return false;
|
|
363
|
+
if (block.invalid === true || block.dollar) return true;
|
|
371
364
|
if (block.commas >> 0 + block.ranges >> 0 === 0) {
|
|
372
365
|
block.invalid = true;
|
|
373
366
|
return true;
|
|
@@ -385,10 +378,8 @@ var require_utils = __commonJS({
|
|
|
385
378
|
return node.open === true || node.close === true;
|
|
386
379
|
};
|
|
387
380
|
exports2.reduce = (nodes) => nodes.reduce((acc, node) => {
|
|
388
|
-
if (node.type === "text")
|
|
389
|
-
|
|
390
|
-
if (node.type === "range")
|
|
391
|
-
node.type = "text";
|
|
381
|
+
if (node.type === "text") acc.push(node.value);
|
|
382
|
+
if (node.type === "range") node.type = "text";
|
|
392
383
|
return acc;
|
|
393
384
|
}, []);
|
|
394
385
|
exports2.flatten = (...args) => {
|
|
@@ -612,8 +603,7 @@ var require_to_regex_range = __commonJS({
|
|
|
612
603
|
}
|
|
613
604
|
function zip(a, b) {
|
|
614
605
|
let arr = [];
|
|
615
|
-
for (let i = 0; i < a.length; i++)
|
|
616
|
-
arr.push([a[i], b[i]]);
|
|
606
|
+
for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
|
|
617
607
|
return arr;
|
|
618
608
|
}
|
|
619
609
|
function compare(a, b) {
|
|
@@ -682,12 +672,9 @@ var require_fill_range = __commonJS({
|
|
|
682
672
|
var zeros = (input) => {
|
|
683
673
|
let value = `${input}`;
|
|
684
674
|
let index = -1;
|
|
685
|
-
if (value[0] === "-")
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
return false;
|
|
689
|
-
while (value[++index] === "0")
|
|
690
|
-
;
|
|
675
|
+
if (value[0] === "-") value = value.slice(1);
|
|
676
|
+
if (value === "0") return false;
|
|
677
|
+
while (value[++index] === "0") ;
|
|
691
678
|
return index > 0;
|
|
692
679
|
};
|
|
693
680
|
var stringify = (start, end, options) => {
|
|
@@ -699,8 +686,7 @@ var require_fill_range = __commonJS({
|
|
|
699
686
|
var pad = (input, maxLength, toNumber) => {
|
|
700
687
|
if (maxLength > 0) {
|
|
701
688
|
let dash = input[0] === "-" ? "-" : "";
|
|
702
|
-
if (dash)
|
|
703
|
-
input = input.slice(1);
|
|
689
|
+
if (dash) input = input.slice(1);
|
|
704
690
|
input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0");
|
|
705
691
|
}
|
|
706
692
|
if (toNumber === false) {
|
|
@@ -714,8 +700,7 @@ var require_fill_range = __commonJS({
|
|
|
714
700
|
input = input.slice(1);
|
|
715
701
|
maxLength--;
|
|
716
702
|
}
|
|
717
|
-
while (input.length < maxLength)
|
|
718
|
-
input = "0" + input;
|
|
703
|
+
while (input.length < maxLength) input = "0" + input;
|
|
719
704
|
return negative ? "-" + input : input;
|
|
720
705
|
};
|
|
721
706
|
var toSequence = (parts, options) => {
|
|
@@ -746,8 +731,7 @@ var require_fill_range = __commonJS({
|
|
|
746
731
|
return toRegexRange(a, b, { wrap: false, ...options });
|
|
747
732
|
}
|
|
748
733
|
let start = String.fromCharCode(a);
|
|
749
|
-
if (a === b)
|
|
750
|
-
return start;
|
|
734
|
+
if (a === b) return start;
|
|
751
735
|
let stop = String.fromCharCode(b);
|
|
752
736
|
return `[${start}-${stop}]`;
|
|
753
737
|
};
|
|
@@ -763,8 +747,7 @@ var require_fill_range = __commonJS({
|
|
|
763
747
|
return new RangeError("Invalid range arguments: " + util.inspect(...args));
|
|
764
748
|
};
|
|
765
749
|
var invalidRange = (start, end, options) => {
|
|
766
|
-
if (options.strictRanges === true)
|
|
767
|
-
throw rangeError([start, end]);
|
|
750
|
+
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
768
751
|
return [];
|
|
769
752
|
};
|
|
770
753
|
var invalidStep = (step, options) => {
|
|
@@ -777,14 +760,11 @@ var require_fill_range = __commonJS({
|
|
|
777
760
|
let a = Number(start);
|
|
778
761
|
let b = Number(end);
|
|
779
762
|
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
780
|
-
if (options.strictRanges === true)
|
|
781
|
-
throw rangeError([start, end]);
|
|
763
|
+
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
782
764
|
return [];
|
|
783
765
|
}
|
|
784
|
-
if (a === 0)
|
|
785
|
-
|
|
786
|
-
if (b === 0)
|
|
787
|
-
b = 0;
|
|
766
|
+
if (a === 0) a = 0;
|
|
767
|
+
if (b === 0) b = 0;
|
|
788
768
|
let descending = a > b;
|
|
789
769
|
let startString = String(start);
|
|
790
770
|
let endString = String(end);
|
|
@@ -854,12 +834,10 @@ var require_fill_range = __commonJS({
|
|
|
854
834
|
return fill(start, end, 0, step);
|
|
855
835
|
}
|
|
856
836
|
let opts = { ...options };
|
|
857
|
-
if (opts.capture === true)
|
|
858
|
-
opts.wrap = true;
|
|
837
|
+
if (opts.capture === true) opts.wrap = true;
|
|
859
838
|
step = step || opts.step || 1;
|
|
860
839
|
if (!isNumber(step)) {
|
|
861
|
-
if (step != null && !isObject(step))
|
|
862
|
-
return invalidStep(step, opts);
|
|
840
|
+
if (step != null && !isObject(step)) return invalidStep(step, opts);
|
|
863
841
|
return fill(start, end, 1, step);
|
|
864
842
|
}
|
|
865
843
|
if (isNumber(start) && isNumber(end)) {
|
|
@@ -933,8 +911,7 @@ var require_expand = __commonJS({
|
|
|
933
911
|
let result = [];
|
|
934
912
|
queue = [].concat(queue);
|
|
935
913
|
stash = [].concat(stash);
|
|
936
|
-
if (!stash.length)
|
|
937
|
-
return queue;
|
|
914
|
+
if (!stash.length) return queue;
|
|
938
915
|
if (!queue.length) {
|
|
939
916
|
return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
940
917
|
}
|
|
@@ -945,8 +922,7 @@ var require_expand = __commonJS({
|
|
|
945
922
|
}
|
|
946
923
|
} else {
|
|
947
924
|
for (let ele of stash) {
|
|
948
|
-
if (enclose === true && typeof ele === "string")
|
|
949
|
-
ele = `{${ele}}`;
|
|
925
|
+
if (enclose === true && typeof ele === "string") ele = `{${ele}}`;
|
|
950
926
|
result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
951
927
|
}
|
|
952
928
|
}
|
|
@@ -994,8 +970,7 @@ var require_expand = __commonJS({
|
|
|
994
970
|
for (let i = 0; i < node.nodes.length; i++) {
|
|
995
971
|
let child = node.nodes[i];
|
|
996
972
|
if (child.type === "comma" && node.type === "brace") {
|
|
997
|
-
if (i === 1)
|
|
998
|
-
queue.push("");
|
|
973
|
+
if (i === 1) queue.push("");
|
|
999
974
|
queue.push("");
|
|
1000
975
|
continue;
|
|
1001
976
|
}
|
|
@@ -1255,8 +1230,7 @@ var require_parse = __commonJS({
|
|
|
1255
1230
|
continue;
|
|
1256
1231
|
}
|
|
1257
1232
|
if (next === open) {
|
|
1258
|
-
if (options.keepQuotes === true)
|
|
1259
|
-
value += next;
|
|
1233
|
+
if (options.keepQuotes === true) value += next;
|
|
1260
1234
|
break;
|
|
1261
1235
|
}
|
|
1262
1236
|
value += next;
|
|
@@ -1343,12 +1317,9 @@ var require_parse = __commonJS({
|
|
|
1343
1317
|
if (block.type !== "root") {
|
|
1344
1318
|
block.nodes.forEach((node) => {
|
|
1345
1319
|
if (!node.nodes) {
|
|
1346
|
-
if (node.type === "open")
|
|
1347
|
-
|
|
1348
|
-
if (node.type
|
|
1349
|
-
node.isClose = true;
|
|
1350
|
-
if (!node.nodes)
|
|
1351
|
-
node.type = "text";
|
|
1320
|
+
if (node.type === "open") node.isOpen = true;
|
|
1321
|
+
if (node.type === "close") node.isClose = true;
|
|
1322
|
+
if (!node.nodes) node.type = "text";
|
|
1352
1323
|
node.invalid = true;
|
|
1353
1324
|
}
|
|
1354
1325
|
});
|
|
@@ -1661,10 +1632,8 @@ var require_utils2 = __commonJS({
|
|
|
1661
1632
|
};
|
|
1662
1633
|
exports2.escapeLast = (input, char, lastIdx) => {
|
|
1663
1634
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
1664
|
-
if (idx === -1)
|
|
1665
|
-
|
|
1666
|
-
if (input[idx - 1] === "\\")
|
|
1667
|
-
return exports2.escapeLast(input, char, idx - 1);
|
|
1635
|
+
if (idx === -1) return input;
|
|
1636
|
+
if (input[idx - 1] === "\\") return exports2.escapeLast(input, char, idx - 1);
|
|
1668
1637
|
return `${input.slice(0, idx)}\\${input.slice(idx)}`;
|
|
1669
1638
|
};
|
|
1670
1639
|
exports2.removePrefix = (input, state = {}) => {
|
|
@@ -1823,8 +1792,7 @@ var require_scan = __commonJS({
|
|
|
1823
1792
|
slashes.push(index);
|
|
1824
1793
|
tokens.push(token);
|
|
1825
1794
|
token = { value: "", depth: 0, isGlob: false };
|
|
1826
|
-
if (finished === true)
|
|
1827
|
-
continue;
|
|
1795
|
+
if (finished === true) continue;
|
|
1828
1796
|
if (prev === CHAR_DOT && index === start + 1) {
|
|
1829
1797
|
start += 2;
|
|
1830
1798
|
continue;
|
|
@@ -1860,8 +1828,7 @@ var require_scan = __commonJS({
|
|
|
1860
1828
|
}
|
|
1861
1829
|
}
|
|
1862
1830
|
if (code === CHAR_ASTERISK) {
|
|
1863
|
-
if (prev === CHAR_ASTERISK)
|
|
1864
|
-
isGlobstar = token.isGlobstar = true;
|
|
1831
|
+
if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
|
|
1865
1832
|
isGlob = token.isGlob = true;
|
|
1866
1833
|
finished = true;
|
|
1867
1834
|
if (scanToEnd === true) {
|
|
@@ -1954,8 +1921,7 @@ var require_scan = __commonJS({
|
|
|
1954
1921
|
}
|
|
1955
1922
|
}
|
|
1956
1923
|
if (opts.unescape === true) {
|
|
1957
|
-
if (glob2)
|
|
1958
|
-
glob2 = utils.removeBackslashes(glob2);
|
|
1924
|
+
if (glob2) glob2 = utils.removeBackslashes(glob2);
|
|
1959
1925
|
if (base && backslashes === true) {
|
|
1960
1926
|
base = utils.removeBackslashes(base);
|
|
1961
1927
|
}
|
|
@@ -2165,8 +2131,7 @@ var require_parse2 = __commonJS({
|
|
|
2165
2131
|
if (extglobs.length && tok.type !== "paren") {
|
|
2166
2132
|
extglobs[extglobs.length - 1].inner += tok.value;
|
|
2167
2133
|
}
|
|
2168
|
-
if (tok.value || tok.output)
|
|
2169
|
-
append(tok);
|
|
2134
|
+
if (tok.value || tok.output) append(tok);
|
|
2170
2135
|
if (prev && prev.type === "text" && tok.type === "text") {
|
|
2171
2136
|
prev.value += tok.value;
|
|
2172
2137
|
prev.output = (prev.output || "") + tok.value;
|
|
@@ -2481,8 +2446,7 @@ var require_parse2 = __commonJS({
|
|
|
2481
2446
|
}
|
|
2482
2447
|
if (value === ".") {
|
|
2483
2448
|
if (state.braces > 0 && prev.type === "dot") {
|
|
2484
|
-
if (prev.value === ".")
|
|
2485
|
-
prev.output = DOT_LITERAL;
|
|
2449
|
+
if (prev.value === ".") prev.output = DOT_LITERAL;
|
|
2486
2450
|
const brace = braces[braces.length - 1];
|
|
2487
2451
|
prev.type = "dots";
|
|
2488
2452
|
prev.output += value;
|
|
@@ -2697,20 +2661,17 @@ var require_parse2 = __commonJS({
|
|
|
2697
2661
|
push(token);
|
|
2698
2662
|
}
|
|
2699
2663
|
while (state.brackets > 0) {
|
|
2700
|
-
if (opts.strictBrackets === true)
|
|
2701
|
-
throw new SyntaxError(syntaxError("closing", "]"));
|
|
2664
|
+
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
|
|
2702
2665
|
state.output = utils.escapeLast(state.output, "[");
|
|
2703
2666
|
decrement("brackets");
|
|
2704
2667
|
}
|
|
2705
2668
|
while (state.parens > 0) {
|
|
2706
|
-
if (opts.strictBrackets === true)
|
|
2707
|
-
throw new SyntaxError(syntaxError("closing", ")"));
|
|
2669
|
+
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
|
|
2708
2670
|
state.output = utils.escapeLast(state.output, "(");
|
|
2709
2671
|
decrement("parens");
|
|
2710
2672
|
}
|
|
2711
2673
|
while (state.braces > 0) {
|
|
2712
|
-
if (opts.strictBrackets === true)
|
|
2713
|
-
throw new SyntaxError(syntaxError("closing", "}"));
|
|
2674
|
+
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
|
|
2714
2675
|
state.output = utils.escapeLast(state.output, "{");
|
|
2715
2676
|
decrement("braces");
|
|
2716
2677
|
}
|
|
@@ -2757,8 +2718,7 @@ var require_parse2 = __commonJS({
|
|
|
2757
2718
|
star = `(${star})`;
|
|
2758
2719
|
}
|
|
2759
2720
|
const globstar = (opts2) => {
|
|
2760
|
-
if (opts2.noglobstar === true)
|
|
2761
|
-
return star;
|
|
2721
|
+
if (opts2.noglobstar === true) return star;
|
|
2762
2722
|
return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
|
|
2763
2723
|
};
|
|
2764
2724
|
const create = (str) => {
|
|
@@ -2781,11 +2741,9 @@ var require_parse2 = __commonJS({
|
|
|
2781
2741
|
return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
2782
2742
|
default: {
|
|
2783
2743
|
const match = /^(.*?)\.(\w+)$/.exec(str);
|
|
2784
|
-
if (!match)
|
|
2785
|
-
return;
|
|
2744
|
+
if (!match) return;
|
|
2786
2745
|
const source2 = create(match[1]);
|
|
2787
|
-
if (!source2)
|
|
2788
|
-
return;
|
|
2746
|
+
if (!source2) return;
|
|
2789
2747
|
return source2 + DOT_LITERAL + match[2];
|
|
2790
2748
|
}
|
|
2791
2749
|
}
|
|
@@ -2817,8 +2775,7 @@ var require_picomatch = __commonJS({
|
|
|
2817
2775
|
const arrayMatcher = (str) => {
|
|
2818
2776
|
for (const isMatch of fns) {
|
|
2819
2777
|
const state2 = isMatch(str);
|
|
2820
|
-
if (state2)
|
|
2821
|
-
return state2;
|
|
2778
|
+
if (state2) return state2;
|
|
2822
2779
|
}
|
|
2823
2780
|
return false;
|
|
2824
2781
|
};
|
|
@@ -2895,8 +2852,7 @@ var require_picomatch = __commonJS({
|
|
|
2895
2852
|
};
|
|
2896
2853
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
2897
2854
|
picomatch.parse = (pattern, options) => {
|
|
2898
|
-
if (Array.isArray(pattern))
|
|
2899
|
-
return pattern.map((p) => picomatch.parse(p, options));
|
|
2855
|
+
if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options));
|
|
2900
2856
|
return parse(pattern, { ...options, fastpaths: false });
|
|
2901
2857
|
};
|
|
2902
2858
|
picomatch.scan = (input, options) => scan(input, options);
|
|
@@ -2935,8 +2891,7 @@ var require_picomatch = __commonJS({
|
|
|
2935
2891
|
const opts = options || {};
|
|
2936
2892
|
return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
|
|
2937
2893
|
} catch (err) {
|
|
2938
|
-
if (options && options.debug === true)
|
|
2939
|
-
throw err;
|
|
2894
|
+
if (options && options.debug === true) throw err;
|
|
2940
2895
|
return /$^/;
|
|
2941
2896
|
}
|
|
2942
2897
|
};
|
|
@@ -2978,13 +2933,11 @@ var require_micromatch = __commonJS({
|
|
|
2978
2933
|
for (let i = 0; i < patterns.length; i++) {
|
|
2979
2934
|
let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
|
|
2980
2935
|
let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
|
|
2981
|
-
if (negated)
|
|
2982
|
-
negatives++;
|
|
2936
|
+
if (negated) negatives++;
|
|
2983
2937
|
for (let item of list) {
|
|
2984
2938
|
let matched = isMatch(item, true);
|
|
2985
2939
|
let match = negated ? !matched.isMatch : matched.isMatch;
|
|
2986
|
-
if (!match)
|
|
2987
|
-
continue;
|
|
2940
|
+
if (!match) continue;
|
|
2988
2941
|
if (negated) {
|
|
2989
2942
|
omit.add(matched.output);
|
|
2990
2943
|
} else {
|
|
@@ -3014,8 +2967,7 @@ var require_micromatch = __commonJS({
|
|
|
3014
2967
|
let result = /* @__PURE__ */ new Set();
|
|
3015
2968
|
let items = [];
|
|
3016
2969
|
let onResult = (state) => {
|
|
3017
|
-
if (options.onResult)
|
|
3018
|
-
options.onResult(state);
|
|
2970
|
+
if (options.onResult) options.onResult(state);
|
|
3019
2971
|
items.push(state.output);
|
|
3020
2972
|
};
|
|
3021
2973
|
let matches = new Set(micromatch(list, patterns, { ...options, onResult }));
|
|
@@ -3049,8 +3001,7 @@ var require_micromatch = __commonJS({
|
|
|
3049
3001
|
}
|
|
3050
3002
|
let keys = micromatch(Object.keys(obj), patterns, options);
|
|
3051
3003
|
let res = {};
|
|
3052
|
-
for (let key of keys)
|
|
3053
|
-
res[key] = obj[key];
|
|
3004
|
+
for (let key of keys) res[key] = obj[key];
|
|
3054
3005
|
return res;
|
|
3055
3006
|
};
|
|
3056
3007
|
micromatch.some = (list, patterns, options) => {
|
|
@@ -3099,16 +3050,14 @@ var require_micromatch = __commonJS({
|
|
|
3099
3050
|
return res;
|
|
3100
3051
|
};
|
|
3101
3052
|
micromatch.braces = (pattern, options) => {
|
|
3102
|
-
if (typeof pattern !== "string")
|
|
3103
|
-
throw new TypeError("Expected a string");
|
|
3053
|
+
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
3104
3054
|
if (options && options.nobrace === true || !/\{.*\}/.test(pattern)) {
|
|
3105
3055
|
return [pattern];
|
|
3106
3056
|
}
|
|
3107
3057
|
return braces(pattern, options);
|
|
3108
3058
|
};
|
|
3109
3059
|
micromatch.braceExpand = (pattern, options) => {
|
|
3110
|
-
if (typeof pattern !== "string")
|
|
3111
|
-
throw new TypeError("Expected a string");
|
|
3060
|
+
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
3112
3061
|
return micromatch.braces(pattern, { ...options, expand: true });
|
|
3113
3062
|
};
|
|
3114
3063
|
module2.exports = micromatch;
|
|
@@ -3716,14 +3665,11 @@ var require_run_parallel = __commonJS({
|
|
|
3716
3665
|
}
|
|
3717
3666
|
function done(err) {
|
|
3718
3667
|
function end() {
|
|
3719
|
-
if (cb)
|
|
3720
|
-
cb(err, results);
|
|
3668
|
+
if (cb) cb(err, results);
|
|
3721
3669
|
cb = null;
|
|
3722
3670
|
}
|
|
3723
|
-
if (isSync)
|
|
3724
|
-
|
|
3725
|
-
else
|
|
3726
|
-
end();
|
|
3671
|
+
if (isSync) queueMicrotask2(end);
|
|
3672
|
+
else end();
|
|
3727
3673
|
}
|
|
3728
3674
|
function each(i, err, result) {
|
|
3729
3675
|
results[i] = result;
|
|
@@ -4173,8 +4119,7 @@ var require_queue = __commonJS({
|
|
|
4173
4119
|
return tasks;
|
|
4174
4120
|
}
|
|
4175
4121
|
function resume() {
|
|
4176
|
-
if (!self2.paused)
|
|
4177
|
-
return;
|
|
4122
|
+
if (!self2.paused) return;
|
|
4178
4123
|
self2.paused = false;
|
|
4179
4124
|
for (var i = 0; i < self2.concurrency; i++) {
|
|
4180
4125
|
_running++;
|