@design-edito/tools 0.5.16 → 0.5.17

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.
Files changed (47) hide show
  1. package/agnostic/colors/index.d.ts +4 -4
  2. package/agnostic/colors/index.js +4 -4
  3. package/agnostic/css/index.d.ts +1 -1
  4. package/agnostic/css/index.js +1 -1
  5. package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +14 -14
  6. package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +14 -14
  7. package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +4 -4
  8. package/agnostic/html/hyper-json/smart-tags/isolated/index.js +4 -4
  9. package/agnostic/html/index.d.ts +3 -3
  10. package/agnostic/html/index.js +3 -3
  11. package/agnostic/index.d.ts +3 -3
  12. package/agnostic/index.js +3 -3
  13. package/agnostic/misc/index.d.ts +4 -4
  14. package/agnostic/misc/index.js +4 -4
  15. package/agnostic/numbers/index.d.ts +3 -3
  16. package/agnostic/numbers/index.js +3 -3
  17. package/agnostic/objects/index.d.ts +3 -3
  18. package/agnostic/objects/index.js +3 -3
  19. package/agnostic/optim/index.d.ts +1 -1
  20. package/agnostic/optim/index.js +1 -1
  21. package/agnostic/strings/index.d.ts +2 -2
  22. package/agnostic/strings/index.js +2 -2
  23. package/agnostic/time/index.d.ts +2 -2
  24. package/agnostic/time/index.js +2 -2
  25. package/components/IntersectionObserver/index.d.ts +28 -3
  26. package/components/IntersectionObserver/index.js +51 -20
  27. package/components/Video/index.controlled.d.ts +2 -1
  28. package/components/Video/index.controlled.js +2 -2
  29. package/components/Video/index.d.ts +1 -3
  30. package/components/Video/index.js +15 -12
  31. package/components/index.d.ts +1 -1
  32. package/components/index.js +1 -1
  33. package/components/public-classnames.d.ts +0 -1
  34. package/components/public-classnames.js +0 -1
  35. package/node/@aws-s3/storage/file/index.d.ts +1 -1
  36. package/node/@aws-s3/storage/file/index.js +1 -1
  37. package/node/@google-cloud/storage/file/index.d.ts +3 -3
  38. package/node/@google-cloud/storage/file/index.js +3 -3
  39. package/node/cloud-storage/operations/index.d.ts +1 -1
  40. package/node/cloud-storage/operations/index.js +1 -1
  41. package/node/files/index.d.ts +1 -1
  42. package/node/files/index.js +1 -1
  43. package/node/images/transform/operations/index.d.ts +3 -3
  44. package/node/images/transform/operations/index.js +3 -3
  45. package/node/process/index.d.ts +1 -1
  46. package/node/process/index.js +1 -1
  47. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- export * as convert from './convert/index.js'
1
+ export * as channels from './channels/index.js'
2
2
  export * as contrast from './contrast/index.js'
3
+ export * as convert from './convert/index.js'
3
4
  export * as distance from './distance/index.js'
4
5
  export * as grayscale from './grayscale/index.js'
5
- export * as invert from './invert/index.js'
6
6
  export * as lerp from './lerp/index.js'
7
+ export * as invert from './invert/index.js'
7
8
  export * as palette from './palette/index.js'
8
- export * as luminance from './luminance/index.js'
9
9
  export * as rotate from './rotate/index.js'
10
10
  export * as tidy from './tidy/index.js'
11
11
  export * as typechecks from './typechecks/index.js'
12
- export * as channels from './channels/index.js'
12
+ export * as luminance from './luminance/index.js'
@@ -1,12 +1,12 @@
1
- export * as convert from './convert/index.js'
1
+ export * as channels from './channels/index.js'
2
2
  export * as contrast from './contrast/index.js'
3
+ export * as convert from './convert/index.js'
3
4
  export * as distance from './distance/index.js'
4
5
  export * as grayscale from './grayscale/index.js'
5
- export * as invert from './invert/index.js'
6
6
  export * as lerp from './lerp/index.js'
7
+ export * as invert from './invert/index.js'
7
8
  export * as palette from './palette/index.js'
8
- export * as luminance from './luminance/index.js'
9
9
  export * as rotate from './rotate/index.js'
10
10
  export * as tidy from './tidy/index.js'
11
11
  export * as typechecks from './typechecks/index.js'
12
- export * as channels from './channels/index.js'
12
+ export * as luminance from './luminance/index.js'
@@ -1,6 +1,6 @@
1
1
  export * as bem from './bem/index.js'
2
- export * as generateNiceColor from './generate-nice-color/index.js'
3
2
  export * as clss from './clss/index.js'
3
+ export * as generateNiceColor from './generate-nice-color/index.js'
4
4
  export * as isValidCssClassName from './is-valid-css-class-name/index.js'
5
5
  export * as scale from './scale/index.js'
6
6
  export * as stylesSet from './styles-set/index.js'
@@ -1,6 +1,6 @@
1
1
  export * as bem from './bem/index.js'
2
- export * as generateNiceColor from './generate-nice-color/index.js'
3
2
  export * as clss from './clss/index.js'
3
+ export * as generateNiceColor from './generate-nice-color/index.js'
4
4
  export * as isValidCssClassName from './is-valid-css-class-name/index.js'
5
5
  export * as scale from './scale/index.js'
6
6
  export * as stylesSet from './styles-set/index.js'
@@ -1,11 +1,11 @@
1
+ export * as add from './add/index.js'
1
2
  export * as addclass from './addclass/index.js'
2
3
  export * as and from './and/index.js'
3
- export * as append from './append/index.js'
4
4
  export * as at from './at/index.js'
5
- export * as add from './add/index.js'
5
+ export * as append from './append/index.js'
6
+ export * as clone from './clone/index.js'
6
7
  export * as call from './call/index.js'
7
8
  export * as deleteproperties from './deleteproperties/index.js'
8
- export * as clone from './clone/index.js'
9
9
  export * as equals from './equals/index.js'
10
10
  export * as getattribute from './getattribute/index.js'
11
11
  export * as getproperties from './getproperties/index.js'
@@ -13,40 +13,40 @@ export * as getproperty from './getproperty/index.js'
13
13
  export * as hjparse from './hjparse/index.js'
14
14
  export * as hjstringify from './hjstringify/index.js'
15
15
  export * as initialize from './initialize/index.js'
16
- export * as if from './if/index.js'
17
16
  export * as join from './join/index.js'
18
17
  export * as length from './length/index.js'
18
+ export * as if from './if/index.js'
19
19
  export * as map from './map/index.js'
20
20
  export * as negate from './negate/index.js'
21
- export * as or from './or/index.js'
22
21
  export * as notrailing from './notrailing/index.js'
22
+ export * as or from './or/index.js'
23
23
  export * as pickrandom from './pickrandom/index.js'
24
24
  export * as populate from './populate/index.js'
25
25
  export * as print from './print/index.js'
26
- export * as push from './push/index.js'
27
26
  export * as pusheach from './pusheach/index.js'
28
27
  export * as recordtoarray from './recordtoarray/index.js'
29
- export * as removeattribute from './removeattribute/index.js'
30
28
  export * as removeclass from './removeclass/index.js'
31
29
  export * as renameproperty from './renameproperty/index.js'
32
30
  export * as replace from './replace/index.js'
31
+ export * as removeattribute from './removeattribute/index.js'
32
+ export * as push from './push/index.js'
33
33
  export * as select from './select/index.js'
34
- export * as setproperty from './setproperty/index.js'
35
- export * as setattribute from './setattribute/index.js'
36
34
  export * as set from './set/index.js'
35
+ export * as setattribute from './setattribute/index.js'
36
+ export * as setproperty from './setproperty/index.js'
37
37
  export * as sorton from './sorton/index.js'
38
- export * as split from './split/index.js'
39
38
  export * as spread from './spread/index.js'
39
+ export * as split from './split/index.js'
40
40
  export * as toarray from './toarray/index.js'
41
41
  export * as toelement from './toelement/index.js'
42
- export * as toggleclass from './toggleclass/index.js'
43
42
  export * as tonodelist from './tonodelist/index.js'
44
43
  export * as tonull from './tonull/index.js'
45
- export * as tonumber from './tonumber/index.js'
46
44
  export * as toboolean from './toboolean/index.js'
45
+ export * as tonumber from './tonumber/index.js'
47
46
  export * as torecord from './torecord/index.js'
48
- export * as tostring from './tostring/index.js'
49
47
  export * as toref from './toref/index.js'
50
- export * as totext from './totext/index.js'
48
+ export * as tostring from './tostring/index.js'
49
+ export * as toggleclass from './toggleclass/index.js'
51
50
  export * as transformselected from './transformselected/index.js'
51
+ export * as totext from './totext/index.js'
52
52
  export * as trim from './trim/index.js'
@@ -1,11 +1,11 @@
1
+ export * as add from './add/index.js'
1
2
  export * as addclass from './addclass/index.js'
2
3
  export * as and from './and/index.js'
3
- export * as append from './append/index.js'
4
4
  export * as at from './at/index.js'
5
- export * as add from './add/index.js'
5
+ export * as append from './append/index.js'
6
+ export * as clone from './clone/index.js'
6
7
  export * as call from './call/index.js'
7
8
  export * as deleteproperties from './deleteproperties/index.js'
8
- export * as clone from './clone/index.js'
9
9
  export * as equals from './equals/index.js'
10
10
  export * as getattribute from './getattribute/index.js'
11
11
  export * as getproperties from './getproperties/index.js'
@@ -13,40 +13,40 @@ export * as getproperty from './getproperty/index.js'
13
13
  export * as hjparse from './hjparse/index.js'
14
14
  export * as hjstringify from './hjstringify/index.js'
15
15
  export * as initialize from './initialize/index.js'
16
- export * as if from './if/index.js'
17
16
  export * as join from './join/index.js'
18
17
  export * as length from './length/index.js'
18
+ export * as if from './if/index.js'
19
19
  export * as map from './map/index.js'
20
20
  export * as negate from './negate/index.js'
21
- export * as or from './or/index.js'
22
21
  export * as notrailing from './notrailing/index.js'
22
+ export * as or from './or/index.js'
23
23
  export * as pickrandom from './pickrandom/index.js'
24
24
  export * as populate from './populate/index.js'
25
25
  export * as print from './print/index.js'
26
- export * as push from './push/index.js'
27
26
  export * as pusheach from './pusheach/index.js'
28
27
  export * as recordtoarray from './recordtoarray/index.js'
29
- export * as removeattribute from './removeattribute/index.js'
30
28
  export * as removeclass from './removeclass/index.js'
31
29
  export * as renameproperty from './renameproperty/index.js'
32
30
  export * as replace from './replace/index.js'
31
+ export * as removeattribute from './removeattribute/index.js'
32
+ export * as push from './push/index.js'
33
33
  export * as select from './select/index.js'
34
- export * as setproperty from './setproperty/index.js'
35
- export * as setattribute from './setattribute/index.js'
36
34
  export * as set from './set/index.js'
35
+ export * as setattribute from './setattribute/index.js'
36
+ export * as setproperty from './setproperty/index.js'
37
37
  export * as sorton from './sorton/index.js'
38
- export * as split from './split/index.js'
39
38
  export * as spread from './spread/index.js'
39
+ export * as split from './split/index.js'
40
40
  export * as toarray from './toarray/index.js'
41
41
  export * as toelement from './toelement/index.js'
42
- export * as toggleclass from './toggleclass/index.js'
43
42
  export * as tonodelist from './tonodelist/index.js'
44
43
  export * as tonull from './tonull/index.js'
45
- export * as tonumber from './tonumber/index.js'
46
44
  export * as toboolean from './toboolean/index.js'
45
+ export * as tonumber from './tonumber/index.js'
47
46
  export * as torecord from './torecord/index.js'
48
- export * as tostring from './tostring/index.js'
49
47
  export * as toref from './toref/index.js'
50
- export * as totext from './totext/index.js'
48
+ export * as tostring from './tostring/index.js'
49
+ export * as toggleclass from './toggleclass/index.js'
51
50
  export * as transformselected from './transformselected/index.js'
51
+ export * as totext from './totext/index.js'
52
52
  export * as trim from './trim/index.js'
@@ -1,13 +1,13 @@
1
- export * as array from './array/index.js'
2
1
  export * as any from './any/index.js'
2
+ export * as array from './array/index.js'
3
3
  export * as boolean from './boolean/index.js'
4
- export * as get from './get/index.js'
5
4
  export * as element from './element/index.js'
6
5
  export * as guess from './guess/index.js'
7
6
  export * as nodelist from './nodelist/index.js'
8
- export * as record from './record/index.js'
7
+ export * as get from './get/index.js'
9
8
  export * as null from './null/index.js'
10
- export * as ref from './ref/index.js'
9
+ export * as record from './record/index.js'
11
10
  export * as string from './string/index.js'
12
11
  export * as text from './text/index.js'
12
+ export * as ref from './ref/index.js'
13
13
  export * as number from './number/index.js'
@@ -1,13 +1,13 @@
1
- export * as array from './array/index.js'
2
1
  export * as any from './any/index.js'
2
+ export * as array from './array/index.js'
3
3
  export * as boolean from './boolean/index.js'
4
- export * as get from './get/index.js'
5
4
  export * as element from './element/index.js'
6
5
  export * as guess from './guess/index.js'
7
6
  export * as nodelist from './nodelist/index.js'
8
- export * as record from './record/index.js'
7
+ export * as get from './get/index.js'
9
8
  export * as null from './null/index.js'
10
- export * as ref from './ref/index.js'
9
+ export * as record from './record/index.js'
11
10
  export * as string from './string/index.js'
12
11
  export * as text from './text/index.js'
12
+ export * as ref from './ref/index.js'
13
13
  export * as number from './number/index.js'
@@ -1,10 +1,10 @@
1
+ export * as deepSelect from './deep-select/index.js'
1
2
  export * as getNodeAncestors from './get-node-ancestors/index.js'
2
3
  export * as getPositionInsideParent from './get-position-inside-parent/index.js'
3
- export * as hyperJson from './hyper-json/index.js'
4
- export * as insertNode from './insert-node/index.js'
5
- export * as deepSelect from './deep-select/index.js'
6
4
  export * as placeholders from './placeholders/index.js'
5
+ export * as insertNode from './insert-node/index.js'
7
6
  export * as replaceInElement from './replace-in-element/index.js'
8
7
  export * as selectorToElement from './selector-to-element/index.js'
9
8
  export * as stringToNodes from './string-to-nodes/index.js'
10
9
  export * as watchSelection from './watch-selection/index.js'
10
+ export * as hyperJson from './hyper-json/index.js'
@@ -1,10 +1,10 @@
1
+ export * as deepSelect from './deep-select/index.js'
1
2
  export * as getNodeAncestors from './get-node-ancestors/index.js'
2
3
  export * as getPositionInsideParent from './get-position-inside-parent/index.js'
3
- export * as hyperJson from './hyper-json/index.js'
4
- export * as insertNode from './insert-node/index.js'
5
- export * as deepSelect from './deep-select/index.js'
6
4
  export * as placeholders from './placeholders/index.js'
5
+ export * as insertNode from './insert-node/index.js'
7
6
  export * as replaceInElement from './replace-in-element/index.js'
8
7
  export * as selectorToElement from './selector-to-element/index.js'
9
8
  export * as stringToNodes from './string-to-nodes/index.js'
10
9
  export * as watchSelection from './watch-selection/index.js'
10
+ export * as hyperJson from './hyper-json/index.js'
@@ -1,17 +1,17 @@
1
+ export * as arrays from './arrays/index.js'
1
2
  export * as booleans from './booleans/index.js'
2
3
  export * as colors from './colors/index.js'
3
4
  export * as css from './css/index.js'
4
5
  export * as errors from './errors/index.js'
5
- export * as arrays from './arrays/index.js'
6
6
  export * as html from './html/index.js'
7
7
  export * as misc from './misc/index.js'
8
- export * as numbers from './numbers/index.js'
9
8
  export * as objects from './objects/index.js'
10
9
  export * as optim from './optim/index.js'
10
+ export * as numbers from './numbers/index.js'
11
11
  export * as random from './random/index.js'
12
12
  export * as regexps from './regexps/index.js'
13
13
  export * as sanitization from './sanitization/index.js'
14
14
  export * as strings from './strings/index.js'
15
- export * as time from './time/index.js'
16
15
  export * as subtitles from './subtitles/index.js'
16
+ export * as time from './time/index.js'
17
17
  export * as typescript from './typescript/index.js'
package/agnostic/index.js CHANGED
@@ -1,17 +1,17 @@
1
+ export * as arrays from './arrays/index.js'
1
2
  export * as booleans from './booleans/index.js'
2
3
  export * as colors from './colors/index.js'
3
4
  export * as css from './css/index.js'
4
5
  export * as errors from './errors/index.js'
5
- export * as arrays from './arrays/index.js'
6
6
  export * as html from './html/index.js'
7
7
  export * as misc from './misc/index.js'
8
- export * as numbers from './numbers/index.js'
9
8
  export * as objects from './objects/index.js'
10
9
  export * as optim from './optim/index.js'
10
+ export * as numbers from './numbers/index.js'
11
11
  export * as random from './random/index.js'
12
12
  export * as regexps from './regexps/index.js'
13
13
  export * as sanitization from './sanitization/index.js'
14
14
  export * as strings from './strings/index.js'
15
- export * as time from './time/index.js'
16
15
  export * as subtitles from './subtitles/index.js'
16
+ export * as time from './time/index.js'
17
17
  export * as typescript from './typescript/index.js'
@@ -1,12 +1,12 @@
1
1
  export * as assert from './assert/index.js'
2
2
  export * as cast from './cast/index.js'
3
- export * as crawler from './crawler/index.js'
4
- export * as dataSize from './data-size/index.js'
5
3
  export * as connection from './connection/index.js'
4
+ export * as crawler from './crawler/index.js'
5
+ export * as crossenv from './crossenv/index.js'
6
6
  export * as isConstructorFunction from './is-constructor-function/index.js'
7
7
  export * as logs from './logs/index.js'
8
8
  export * as loremIpsum from './lorem-ipsum/index.js'
9
- export * as crossenv from './crossenv/index.js'
9
+ export * as normalizeExtension from './normalize-extension/index.js'
10
10
  export * as outcome from './outcome/index.js'
11
+ export * as dataSize from './data-size/index.js'
11
12
  export * as isNullish from './is-nullish/index.js'
12
- export * as normalizeExtension from './normalize-extension/index.js'
@@ -1,12 +1,12 @@
1
1
  export * as assert from './assert/index.js'
2
2
  export * as cast from './cast/index.js'
3
- export * as crawler from './crawler/index.js'
4
- export * as dataSize from './data-size/index.js'
5
3
  export * as connection from './connection/index.js'
4
+ export * as crawler from './crawler/index.js'
5
+ export * as crossenv from './crossenv/index.js'
6
6
  export * as isConstructorFunction from './is-constructor-function/index.js'
7
7
  export * as logs from './logs/index.js'
8
8
  export * as loremIpsum from './lorem-ipsum/index.js'
9
- export * as crossenv from './crossenv/index.js'
9
+ export * as normalizeExtension from './normalize-extension/index.js'
10
10
  export * as outcome from './outcome/index.js'
11
+ export * as dataSize from './data-size/index.js'
11
12
  export * as isNullish from './is-nullish/index.js'
12
- export * as normalizeExtension from './normalize-extension/index.js'
@@ -1,6 +1,6 @@
1
- export * as absoluteModulo from './absolute-modulo/index.js'
2
- export * as approximateRational from './approximate-rational/index.js'
3
1
  export * as clamp from './clamp/index.js'
2
+ export * as absoluteModulo from './absolute-modulo/index.js'
4
3
  export * as geometricProgressions from './geometric-progressions/index.js'
5
- export * as interpolate from './interpolate/index.js'
4
+ export * as approximateRational from './approximate-rational/index.js'
6
5
  export * as round from './round/index.js'
6
+ export * as interpolate from './interpolate/index.js'
@@ -1,6 +1,6 @@
1
- export * as absoluteModulo from './absolute-modulo/index.js'
2
- export * as approximateRational from './approximate-rational/index.js'
3
1
  export * as clamp from './clamp/index.js'
2
+ export * as absoluteModulo from './absolute-modulo/index.js'
4
3
  export * as geometricProgressions from './geometric-progressions/index.js'
5
- export * as interpolate from './interpolate/index.js'
4
+ export * as approximateRational from './approximate-rational/index.js'
6
5
  export * as round from './round/index.js'
6
+ export * as interpolate from './interpolate/index.js'
@@ -1,9 +1,9 @@
1
1
  export * as deepGetProperty from './deep-get-property/index.js'
2
+ export * as enums from './enums/index.js'
2
3
  export * as flattenGetters from './flatten-getters/index.js'
3
- export * as isObject from './is-object/index.js'
4
4
  export * as isRecord from './is-record/index.js'
5
5
  export * as recordFormat from './record-format/index.js'
6
- export * as recordMap from './record-map/index.js'
7
- export * as enums from './enums/index.js'
6
+ export * as isObject from './is-object/index.js'
8
7
  export * as sortKeys from './sort-keys/index.js'
9
8
  export * as validation from './validation/index.js'
9
+ export * as recordMap from './record-map/index.js'
@@ -1,9 +1,9 @@
1
1
  export * as deepGetProperty from './deep-get-property/index.js'
2
+ export * as enums from './enums/index.js'
2
3
  export * as flattenGetters from './flatten-getters/index.js'
3
- export * as isObject from './is-object/index.js'
4
4
  export * as isRecord from './is-record/index.js'
5
5
  export * as recordFormat from './record-format/index.js'
6
- export * as recordMap from './record-map/index.js'
7
- export * as enums from './enums/index.js'
6
+ export * as isObject from './is-object/index.js'
8
7
  export * as sortKeys from './sort-keys/index.js'
9
8
  export * as validation from './validation/index.js'
9
+ export * as recordMap from './record-map/index.js'
@@ -1,2 +1,2 @@
1
- export * as memoize from './memoize/index.js'
2
1
  export * as throttleDebounce from './throttle-debounce/index.js'
2
+ export * as memoize from './memoize/index.js'
@@ -1,2 +1,2 @@
1
- export * as memoize from './memoize/index.js'
2
1
  export * as throttleDebounce from './throttle-debounce/index.js'
2
+ export * as memoize from './memoize/index.js'
@@ -1,8 +1,8 @@
1
- export * as charCodes from './char-codes/index.js'
2
1
  export * as matches from './matches/index.js'
3
2
  export * as normalizeIndent from './normalize-indent/index.js'
4
3
  export * as parseTable from './parse-table/index.js'
5
- export * as replaceAll from './replace-all/index.js'
6
4
  export * as splitTrim from './split-trim/index.js'
5
+ export * as replaceAll from './replace-all/index.js'
6
+ export * as charCodes from './char-codes/index.js'
7
7
  export * as toAlphanum from './to-alphanum/index.js'
8
8
  export * as trim from './trim/index.js'
@@ -1,8 +1,8 @@
1
- export * as charCodes from './char-codes/index.js'
2
1
  export * as matches from './matches/index.js'
3
2
  export * as normalizeIndent from './normalize-indent/index.js'
4
3
  export * as parseTable from './parse-table/index.js'
5
- export * as replaceAll from './replace-all/index.js'
6
4
  export * as splitTrim from './split-trim/index.js'
5
+ export * as replaceAll from './replace-all/index.js'
6
+ export * as charCodes from './char-codes/index.js'
7
7
  export * as toAlphanum from './to-alphanum/index.js'
8
8
  export * as trim from './trim/index.js'
@@ -1,5 +1,5 @@
1
- export * as dates from './dates/index.js'
2
1
  export * as duration from './duration/index.js'
2
+ export * as dates from './dates/index.js'
3
3
  export * as timeout from './timeout/index.js'
4
- export * as transitions from './transitions/index.js'
5
4
  export * as wait from './wait/index.js'
5
+ export * as transitions from './transitions/index.js'
@@ -1,5 +1,5 @@
1
- export * as dates from './dates/index.js'
2
1
  export * as duration from './duration/index.js'
2
+ export * as dates from './dates/index.js'
3
3
  export * as timeout from './timeout/index.js'
4
- export * as transitions from './transitions/index.js'
5
4
  export * as wait from './wait/index.js'
5
+ export * as transitions from './transitions/index.js'
@@ -1,4 +1,4 @@
1
- import { type PropsWithChildren, type FunctionComponent } from 'react';
1
+ import { type PropsWithChildren, type FunctionComponent, type RefObject } from 'react';
2
2
  import type { WithClassName } from '../utils/types.js';
3
3
  /** Alias for the native IntersectionObserver interface. */
4
4
  export type IO = IntersectionObserver;
@@ -40,18 +40,43 @@ export type Props = PropsWithChildren<WithClassName<{
40
40
  observer: IO;
41
41
  }) => void;
42
42
  } & ObserverOptions>>;
43
+ /**
44
+ * Observes an element a caller already renders, rather than one wrapped in a div of
45
+ * our own.
46
+ *
47
+ * This is the whole of the behaviour; {@link IntersectionObserverComponent} is this
48
+ * hook plus a div to hang it on. Reach for the hook when the element to watch is
49
+ * already in the tree — a component's own root, typically — and for the component
50
+ * when there is nothing to watch yet and a box has to be created.
51
+ *
52
+ * @param targetRef - The element to observe. Nothing happens until it is attached.
53
+ * @param options - See {@link ObserverOptions}.
54
+ * @param onIntersected - Called on every intersection change.
55
+ * @param enabled - `false` skips the observer entirely, for a caller whose need for
56
+ * it depends on its own props. A hook cannot be called conditionally; this is how
57
+ * the condition is expressed.
58
+ *
59
+ * @returns The latest {@link IntersectionObserverEntry}, or `null` before the first.
60
+ *
61
+ * @remarks
62
+ * - Automatically creates and disconnects the {@link IntersectionObserver} instance.
63
+ * - Re-observes the element shortly after mount to handle late layout changes.
64
+ */
65
+ export declare function useIntersectionObserver(targetRef: RefObject<Element | null>, { root, rootMargin, threshold }: ObserverOptions, onIntersected?: Props['onIntersected'], enabled?: boolean): IOE | null;
43
66
  /**
44
67
  * Component that observes its root element using the IntersectionObserver API
45
68
  * and notifies consumers about visibility changes.
46
69
  *
70
+ * A div and {@link useIntersectionObserver}, and nothing else. A component that
71
+ * already renders the element it wants watched should use the hook and keep its own
72
+ * root, rather than gain a wrapper it has no other use for.
73
+ *
47
74
  * @param props - Component properties.
48
75
  * @see {@link Props}
49
76
  *
50
77
  * @returns A div element wrapping `children`, observed for intersection changes.
51
78
  *
52
79
  * @remarks
53
- * - Automatically creates and disconnects the {@link IntersectionObserver} instance.
54
- * - Re-observes the element shortly after mount to handle late layout changes.
55
80
  * - Adds an `is-intersecting` modifier class when the element is intersecting.
56
81
  */
57
82
  export declare const IntersectionObserverComponent: FunctionComponent<Props>;
@@ -5,23 +5,29 @@ import { mergeClassNames } from '../utils/index.js';
5
5
  import { intersectionObserver as publicClassName } from '../public-classnames.js';
6
6
  import cssModule from './styles.module.css';
7
7
  /**
8
- * Component that observes its root element using the IntersectionObserver API
9
- * and notifies consumers about visibility changes.
8
+ * Observes an element a caller already renders, rather than one wrapped in a div of
9
+ * our own.
10
10
  *
11
- * @param props - Component properties.
12
- * @see {@link Props}
11
+ * This is the whole of the behaviour; {@link IntersectionObserverComponent} is this
12
+ * hook plus a div to hang it on. Reach for the hook when the element to watch is
13
+ * already in the tree — a component's own root, typically — and for the component
14
+ * when there is nothing to watch yet and a box has to be created.
13
15
  *
14
- * @returns A div element wrapping `children`, observed for intersection changes.
16
+ * @param targetRef - The element to observe. Nothing happens until it is attached.
17
+ * @param options - See {@link ObserverOptions}.
18
+ * @param onIntersected - Called on every intersection change.
19
+ * @param enabled - `false` skips the observer entirely, for a caller whose need for
20
+ * it depends on its own props. A hook cannot be called conditionally; this is how
21
+ * the condition is expressed.
22
+ *
23
+ * @returns The latest {@link IntersectionObserverEntry}, or `null` before the first.
15
24
  *
16
25
  * @remarks
17
26
  * - Automatically creates and disconnects the {@link IntersectionObserver} instance.
18
27
  * - Re-observes the element shortly after mount to handle late layout changes.
19
- * - Adds an `is-intersecting` modifier class when the element is intersecting.
20
28
  */
21
- export const IntersectionObserverComponent = ({ onIntersected, root, rootMargin, threshold, className, children }) => {
22
- // Refs, handlers and effects
29
+ export function useIntersectionObserver(targetRef, { root, rootMargin, threshold }, onIntersected, enabled = true) {
23
30
  const [ioEntry, setIoEntry] = useState(null);
24
- const rootRef = useRef(null);
25
31
  const observerRef = useRef(null);
26
32
  const observation = useCallback((entries, observer) => {
27
33
  const thisEntry = entries[0];
@@ -31,33 +37,58 @@ export const IntersectionObserverComponent = ({ onIntersected, root, rootMargin,
31
37
  setIoEntry(thisEntry);
32
38
  }, [onIntersected]);
33
39
  const forceObservation = useCallback(() => {
34
- const rootEl = rootRef.current;
40
+ const targetEl = targetRef.current;
35
41
  const observer = observerRef.current;
36
- if (rootEl === null || observer === null)
42
+ if (targetEl === null || observer === null)
37
43
  return;
38
- observer.unobserve(rootEl);
39
- observer.observe(rootEl);
40
- }, []);
44
+ observer.unobserve(targetEl);
45
+ observer.observe(targetEl);
46
+ }, [targetRef]);
41
47
  useEffect(() => {
42
- const rootEl = rootRef.current;
43
- if (rootEl === null) {
48
+ if (!enabled)
49
+ return;
50
+ const targetEl = targetRef.current;
51
+ if (targetEl === null) {
44
52
  // eslint-disable-next-line no-console
45
- console.warn('rootRef.current should not be null');
53
+ console.warn('targetRef.current should not be null');
46
54
  return;
47
55
  }
48
56
  const observer = new IntersectionObserver(observation, { root, rootMargin, threshold });
49
57
  observerRef.current = observer;
50
- observer.observe(rootEl);
58
+ observer.observe(targetEl);
51
59
  return () => observer.disconnect();
52
- }, [root, rootMargin, threshold, observation]);
60
+ }, [enabled, targetRef, root, rootMargin, threshold, observation]);
53
61
  useEffect(() => {
62
+ if (!enabled)
63
+ return;
54
64
  const timeout1 = window.setTimeout(forceObservation, 100);
55
65
  const timeout2 = window.setTimeout(forceObservation, 500);
56
66
  return () => {
57
67
  window.clearTimeout(timeout1);
58
68
  window.clearTimeout(timeout2);
59
69
  };
60
- }, [forceObservation]);
70
+ }, [enabled, forceObservation]);
71
+ return ioEntry;
72
+ }
73
+ /**
74
+ * Component that observes its root element using the IntersectionObserver API
75
+ * and notifies consumers about visibility changes.
76
+ *
77
+ * A div and {@link useIntersectionObserver}, and nothing else. A component that
78
+ * already renders the element it wants watched should use the hook and keep its own
79
+ * root, rather than gain a wrapper it has no other use for.
80
+ *
81
+ * @param props - Component properties.
82
+ * @see {@link Props}
83
+ *
84
+ * @returns A div element wrapping `children`, observed for intersection changes.
85
+ *
86
+ * @remarks
87
+ * - Adds an `is-intersecting` modifier class when the element is intersecting.
88
+ */
89
+ export const IntersectionObserverComponent = ({ onIntersected, root, rootMargin, threshold, className, children }) => {
90
+ const rootRef = useRef(null);
91
+ const ioEntry = useIntersectionObserver(rootRef, { root, rootMargin, threshold }, onIntersected);
61
92
  // Rendering
62
93
  const c = clss(publicClassName, { cssModule });
63
94
  const isIntersecting = ioEntry?.isIntersecting ?? false;
@@ -1,4 +1,4 @@
1
- import { type FunctionComponent, type PropsWithChildren, type VideoHTMLAttributes } from 'react';
1
+ import { type FunctionComponent, type PropsWithChildren, type Ref, type VideoHTMLAttributes } from 'react';
2
2
  import type { WithClassName } from '../utils/types.js';
3
3
  import { type Props as SubsProps } from '../Subtitles/index.js';
4
4
  /**
@@ -113,6 +113,7 @@ type TrackData = {
113
113
  * Also inherits all standard HTML props for a <video> element.
114
114
  */
115
115
  export type Props = PropsWithChildren<WithClassName<{
116
+ rootRef?: Ref<HTMLElement>;
116
117
  sources?: string | string[] | SourceData[];
117
118
  tracks?: string | string[] | TrackData[];
118
119
  subtitles?: SubsProps;
@@ -57,7 +57,7 @@ subtitlesOn = true, mute, muted, volume = 1, playbackRate = 1, currentTimeMs: gi
57
57
  // Milliseconds by default, which is what this component has always rendered — a
58
58
  // default that changes under a consumer is a change nobody asked for. An article
59
59
  // usually wants `'{{mm}}:{{ss}}'` and says so.
60
- timeFormat = '{{mm}}:{{ss}}:{{ms}}', onPlayButtonClicked, onPauseButtonClicked, onLoudButtonClicked, onMuteButtonClicked, onVolumeRangeChanged, onRateRangeChanged, onFullscreenButtonClicked, onSubtitlesButtonClicked, onTimelineClicked, onIsPlayingChanged, onIsFullscreenChanged, onIsLoudChanged, onIsSubtitlesOnChanged, onIsEndedChanged, onVolumeChanged, onPlaybackRateChanged, onCurrentTimeMsChanged, onFullscreenChange, children, className, ...intrinsicVideoAttributes }) => {
60
+ timeFormat = '{{mm}}:{{ss}}:{{ms}}', onPlayButtonClicked, onPauseButtonClicked, onLoudButtonClicked, onMuteButtonClicked, onVolumeRangeChanged, onRateRangeChanged, onFullscreenButtonClicked, onSubtitlesButtonClicked, onTimelineClicked, onIsPlayingChanged, onIsFullscreenChanged, onIsLoudChanged, onIsSubtitlesOnChanged, onIsEndedChanged, onVolumeChanged, onPlaybackRateChanged, onCurrentTimeMsChanged, onFullscreenChange, children, className, rootRef, ...intrinsicVideoAttributes }) => {
61
61
  const videoRef = useRef(null);
62
62
  const [totalTime, setTotalTime] = useState(0);
63
63
  const totalTimeMs = useMemo(() => secondsToMs(totalTime), [totalTime]);
@@ -318,7 +318,7 @@ timeFormat = '{{mm}}:{{ss}}:{{ms}}', onPlayButtonClicked, onPauseButtonClicked,
318
318
  useChangeDispatch(isEnded, onIsEndedChanged);
319
319
  useChangeDispatch(volume, onVolumeChanged);
320
320
  useChangeDispatch(playbackRate, onPlaybackRateChanged);
321
- return _jsxs("figure", { className: rootClss, style: rootStyles, ...rootAttributes, children: [_jsxs("video", { ref: videoRef, className: videoClss, ...intrinsicVideoAttributes, autoPlay: isTimeControlled ? false : intrinsicVideoAttributes.autoPlay, onLoadedMetadata: handleMetadataLoadEvent, onTimeUpdate: handleOnTimeUpdateEvent, onEnded: handleEndedEvent, onPlay: handlePlayEvent, onPause: handlePauseEvent, children: [parsedSources.map((source, index) => typeof source === 'string'
321
+ return _jsxs("figure", { ref: rootRef, className: rootClss, style: rootStyles, ...rootAttributes, children: [_jsxs("video", { ref: videoRef, className: videoClss, ...intrinsicVideoAttributes, autoPlay: isTimeControlled ? false : intrinsicVideoAttributes.autoPlay, onLoadedMetadata: handleMetadataLoadEvent, onTimeUpdate: handleOnTimeUpdateEvent, onEnded: handleEndedEvent, onPlay: handlePlayEvent, onPause: handlePauseEvent, children: [parsedSources.map((source, index) => typeof source === 'string'
322
322
  ? _jsx("source", { src: source }, index)
323
323
  : _jsx("source", { src: source.src, type: source.type }, index)), parsedTracks.map((track, index) => typeof track === 'string'
324
324
  ? _jsx("track", { src: track }, index)
@@ -30,7 +30,6 @@ import { type Props as ControlledProps } from './index.controlled.js';
30
30
  * stopped video, since a playing element would advance a value it does not own:
31
31
  * `autoPlay`, `autoPlayWhenVisible` and the play button have no effect for as
32
32
  * long as this prop is provided.
33
- * @property wrapperClassName - Optional additional class name(s) applied to the root wrapper element.
34
33
  * @property defaultSubtitlesOn - Whether the subtitles start shown. `true` by default —
35
34
  * an article that supplies cues means them to be read. The reader's button takes it from
36
35
  * there, so this is a starting point and not a setting: `default…` and never `initial…`,
@@ -39,7 +38,7 @@ import { type Props as ControlledProps } from './index.controlled.js';
39
38
  * @property children - React children rendered inside the `<video>` element itself
40
39
  * (e.g. fallback content).
41
40
  */
42
- export type Props = WithViewportObservation<Omit<ControlledProps, 'play' | 'fullscreen' | 'volume' | 'mute' | 'playbackRate' | 'subtitlesOn'>> & {
41
+ export type Props = WithViewportObservation<Omit<ControlledProps, 'play' | 'fullscreen' | 'volume' | 'mute' | 'playbackRate' | 'subtitlesOn' | 'rootRef'>> & {
43
42
  defaultSubtitlesOn?: boolean;
44
43
  autoPlayWhenVisible?: boolean;
45
44
  autoPlayOnceVisible?: boolean;
@@ -49,7 +48,6 @@ export type Props = WithViewportObservation<Omit<ControlledProps, 'play' | 'full
49
48
  autoLoudOnceVisible?: boolean;
50
49
  autoMuteWhenHidden?: boolean;
51
50
  autoMuteOnceHidden?: boolean;
52
- wrapperClassName?: string;
53
51
  };
54
52
  /**
55
53
  * Full-featured video player component. Wraps a native `<video>` element with
@@ -1,11 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
3
- import { clss } from '../../agnostic/css/clss/index.js';
4
- import { IntersectionObserverComponent } from '../IntersectionObserver/index.js';
5
- import { mergeClassNames } from '../utils/index.js';
6
- import { videoWrapper as publicClassName } from '../public-classnames.js';
3
+ import { useIntersectionObserver } from '../IntersectionObserver/index.js';
7
4
  import { muteAttributeWorkaround, shouldRunAutoBehaviour } from './utils.js';
8
- import cssModule from './styles.module.css';
9
5
  import { ControlledVideo } from './index.controlled.js';
10
6
  /**
11
7
  * Full-featured video player component. Wraps a native `<video>` element with
@@ -48,7 +44,7 @@ import { ControlledVideo } from './index.controlled.js';
48
44
  * The media still won't play, though: autoplay muted, and leave unmuting to the
49
45
  * reader.
50
46
  */
51
- export const Video = ({ defaultSubtitlesOn = true, autoPlayWhenVisible, autoPlayOnceVisible, autoPauseWhenHidden, autoPauseOnceHidden, autoMuteWhenHidden, autoMuteOnceHidden, autoLoudWhenVisible, autoLoudOnceVisible, threshold, root, rootMargin, onVisibilityChanged, wrapperClassName, onPlayButtonClicked, onPauseButtonClicked, onLoudButtonClicked, onMuteButtonClicked, onVolumeRangeChanged, onRateRangeChanged, onFullscreenButtonClicked, onSubtitlesButtonClicked, ...controlledProps }) => {
47
+ export const Video = ({ defaultSubtitlesOn = true, autoPlayWhenVisible, autoPlayOnceVisible, autoPauseWhenHidden, autoPauseOnceHidden, autoMuteWhenHidden, autoMuteOnceHidden, autoLoudWhenVisible, autoLoudOnceVisible, threshold, root, rootMargin, onVisibilityChanged, onPlayButtonClicked, onPauseButtonClicked, onLoudButtonClicked, onMuteButtonClicked, onVolumeRangeChanged, onRateRangeChanged, onFullscreenButtonClicked, onSubtitlesButtonClicked, ...controlledProps }) => {
52
48
  // State & refs
53
49
  const [play, setPlay] = useState(false);
54
50
  const [volume, setVolume] = useState(1);
@@ -69,6 +65,7 @@ export const Video = ({ defaultSubtitlesOn = true, autoPlayWhenVisible, autoPlay
69
65
  // invariant is applied where the state is forwarded rather than guarded at each
70
66
  // of those call sites.
71
67
  const isTimeControlled = controlledProps.currentTimeMs !== undefined;
68
+ const rootRef = useRef(null);
72
69
  const needsObserve = useMemo(() => onVisibilityChanged !== undefined
73
70
  || autoLoudWhenVisible === true
74
71
  || autoLoudOnceVisible === true
@@ -201,11 +198,17 @@ export const Video = ({ defaultSubtitlesOn = true, autoPlayWhenVisible, autoPlay
201
198
  if (controlledProps.autoPlay === true)
202
199
  setPlay(true);
203
200
  }, []);
201
+ // The observer watches the `<figure>` itself. `needsObserve` says whether anything
202
+ // asked for it — a hook cannot be skipped, so the condition is passed in rather than
203
+ // wrapped around the call, and no `IntersectionObserver` is created without a reason
204
+ // to create one.
205
+ useIntersectionObserver(rootRef, { threshold, root, rootMargin }, onIntersected, needsObserve);
204
206
  // Render
205
- const c = clss(publicClassName, { cssModule });
206
- const rootClss = mergeClassNames(c(), wrapperClassName);
207
- const videoContent = _jsx(ControlledVideo, { ...controlledProps, play: play && !isTimeControlled, volume: volume, mute: mute, playbackRate: playbackRate, fullscreen: fullscreen, subtitlesOn: subtitlesOn, onPlay: handleOnPlayEvent, onPause: handleOnPauseEvent, onIsPlayingChanged: handleIsPlayingChanged, onVolumeChange: handleOnVolumeChangeEvent, onRateChange: handleOnRateChangeEvent, onLoadedMetadata: handleOnLoadedMetadataEvent, onFullscreenChange: handleFullscreenChange, onPlayButtonClicked: handlePlayButtonClick, onPauseButtonClicked: handlePauseButtonClick, onLoudButtonClicked: handleLoudButtonClick, onMuteButtonClicked: handleMuteButtonClick, onVolumeRangeChanged: handleVolumeRangeChange, onRateRangeChanged: handleRateRangeChange, onFullscreenButtonClicked: handleFullscreenButtonClick, onSubtitlesButtonClicked: handleSubtitlesButtonClick });
208
- return _jsx("div", { className: rootClss, children: needsObserve
209
- ? _jsx(IntersectionObserverComponent, { threshold: threshold, root: root, rootMargin: rootMargin, onIntersected: onIntersected, children: videoContent })
210
- : videoContent });
207
+ //
208
+ // **The `<figure>` is the root, and there is nothing above it.** The observer runs on
209
+ // that element rather than on a box built to hold it: a wrapper would take the outer
210
+ // position — the one a consumer lays out — and leave `className` naming an inner
211
+ // element, which is the wrong way round. So no wrapper, and no second class-name prop
212
+ // to reach past it.
213
+ return _jsx(ControlledVideo, { ...controlledProps, rootRef: rootRef, play: play && !isTimeControlled, volume: volume, mute: mute, playbackRate: playbackRate, fullscreen: fullscreen, subtitlesOn: subtitlesOn, onPlay: handleOnPlayEvent, onPause: handleOnPauseEvent, onIsPlayingChanged: handleIsPlayingChanged, onVolumeChange: handleOnVolumeChangeEvent, onRateChange: handleOnRateChangeEvent, onLoadedMetadata: handleOnLoadedMetadataEvent, onFullscreenChange: handleFullscreenChange, onPlayButtonClicked: handlePlayButtonClick, onPauseButtonClicked: handlePauseButtonClick, onLoudButtonClicked: handleLoudButtonClick, onMuteButtonClicked: handleMuteButtonClick, onVolumeRangeChanged: handleVolumeRangeChange, onRateRangeChanged: handleRateRangeChange, onFullscreenButtonClicked: handleFullscreenButtonClick, onSubtitlesButtonClicked: handleSubtitlesButtonClick });
211
214
  };
@@ -3,8 +3,8 @@ export * as button from './Button/index.js'
3
3
  export * as clippable from './Clippable/index.js'
4
4
  export * as disclaimer from './Disclaimer/index.js'
5
5
  export * as drawer from './Drawer/index.js'
6
- export * as eventListener from './EventListener/index.js'
7
6
  export * as gallery from './Gallery/index.js'
7
+ export * as eventListener from './EventListener/index.js'
8
8
  export * as iframe from './Iframe/index.js'
9
9
  export * as image from './Image/index.js'
10
10
  export * as input from './Input/index.js'
@@ -3,8 +3,8 @@ export * as button from './Button/index.js'
3
3
  export * as clippable from './Clippable/index.js'
4
4
  export * as disclaimer from './Disclaimer/index.js'
5
5
  export * as drawer from './Drawer/index.js'
6
- export * as eventListener from './EventListener/index.js'
7
6
  export * as gallery from './Gallery/index.js'
7
+ export * as eventListener from './EventListener/index.js'
8
8
  export * as iframe from './Iframe/index.js'
9
9
  export * as image from './Image/index.js'
10
10
  export * as input from './Input/index.js'
@@ -24,4 +24,3 @@ export declare const subtitles = "lm-subtitles";
24
24
  export declare const textarea = "lm-textarea";
25
25
  export declare const uiModule = "lm-ui-module";
26
26
  export declare const video = "lm-video";
27
- export declare const videoWrapper = "lm-video-wrapper";
@@ -24,4 +24,3 @@ export const subtitles = 'lm-subtitles';
24
24
  export const textarea = 'lm-textarea';
25
25
  export const uiModule = 'lm-ui-module';
26
26
  export const video = 'lm-video';
27
- export const videoWrapper = 'lm-video-wrapper';
@@ -2,6 +2,6 @@ export * as copy from './copy/index.js'
2
2
  export * as download from './download/index.js'
3
3
  export * as exists from './exists/index.js'
4
4
  export * as move from './move/index.js'
5
- export * as stat from './stat/index.js'
6
5
  export * as remove from './remove/index.js'
6
+ export * as stat from './stat/index.js'
7
7
  export * as upload from './upload/index.js'
@@ -2,6 +2,6 @@ export * as copy from './copy/index.js'
2
2
  export * as download from './download/index.js'
3
3
  export * as exists from './exists/index.js'
4
4
  export * as move from './move/index.js'
5
- export * as stat from './stat/index.js'
6
5
  export * as remove from './remove/index.js'
6
+ export * as stat from './stat/index.js'
7
7
  export * as upload from './upload/index.js'
@@ -1,12 +1,12 @@
1
1
  export * as copy from './copy/index.js'
2
2
  export * as download from './download/index.js'
3
3
  export * as exists from './exists/index.js'
4
- export * as getMetadata from './get-metadata/index.js'
5
4
  export * as generateSignedUrl from './generate-signed-url/index.js'
6
- export * as move from './move/index.js'
5
+ export * as getMetadata from './get-metadata/index.js'
7
6
  export * as getPermissions from './get-permissions/index.js'
8
- export * as revokeSignedUrls from './revoke-signed-urls/index.js'
7
+ export * as move from './move/index.js'
9
8
  export * as remove from './remove/index.js'
9
+ export * as revokeSignedUrls from './revoke-signed-urls/index.js'
10
10
  export * as stat from './stat/index.js'
11
11
  export * as updateMetadata from './update-metadata/index.js'
12
12
  export * as upload from './upload/index.js'
@@ -1,12 +1,12 @@
1
1
  export * as copy from './copy/index.js'
2
2
  export * as download from './download/index.js'
3
3
  export * as exists from './exists/index.js'
4
- export * as getMetadata from './get-metadata/index.js'
5
4
  export * as generateSignedUrl from './generate-signed-url/index.js'
6
- export * as move from './move/index.js'
5
+ export * as getMetadata from './get-metadata/index.js'
7
6
  export * as getPermissions from './get-permissions/index.js'
8
- export * as revokeSignedUrls from './revoke-signed-urls/index.js'
7
+ export * as move from './move/index.js'
9
8
  export * as remove from './remove/index.js'
9
+ export * as revokeSignedUrls from './revoke-signed-urls/index.js'
10
10
  export * as stat from './stat/index.js'
11
11
  export * as updateMetadata from './update-metadata/index.js'
12
12
  export * as upload from './upload/index.js'
@@ -5,7 +5,7 @@ export * as existsFile from './exists-file/index.js'
5
5
  export * as listDir from './list-dir/index.js'
6
6
  export * as moveDir from './move-dir/index.js'
7
7
  export * as moveFile from './move-file/index.js'
8
- export * as removeFile from './remove-file/index.js'
9
8
  export * as removeDir from './remove-dir/index.js'
9
+ export * as removeFile from './remove-file/index.js'
10
10
  export * as statFile from './stat-file/index.js'
11
11
  export * as uploadFile from './upload-file/index.js'
@@ -5,7 +5,7 @@ export * as existsFile from './exists-file/index.js'
5
5
  export * as listDir from './list-dir/index.js'
6
6
  export * as moveDir from './move-dir/index.js'
7
7
  export * as moveFile from './move-file/index.js'
8
- export * as removeFile from './remove-file/index.js'
9
8
  export * as removeDir from './remove-dir/index.js'
9
+ export * as removeFile from './remove-file/index.js'
10
10
  export * as statFile from './stat-file/index.js'
11
11
  export * as uploadFile from './upload-file/index.js'
@@ -1,4 +1,4 @@
1
1
  export * as getSize from './get-size/index.js'
2
2
  export * as isInDirectory from './is-in-directory/index.js'
3
- export * as subpaths from './subpaths/index.js'
4
3
  export * as readWrite from './read-write/index.js'
4
+ export * as subpaths from './subpaths/index.js'
@@ -1,4 +1,4 @@
1
1
  export * as getSize from './get-size/index.js'
2
2
  export * as isInDirectory from './is-in-directory/index.js'
3
- export * as subpaths from './subpaths/index.js'
4
3
  export * as readWrite from './read-write/index.js'
4
+ export * as subpaths from './subpaths/index.js'
@@ -1,15 +1,15 @@
1
+ export * as blur from './blur/index.js'
1
2
  export * as brighten from './brighten/index.js'
2
3
  export * as extend from './extend/index.js'
3
- export * as flatten from './flatten/index.js'
4
4
  export * as extract from './extract/index.js'
5
+ export * as flatten from './flatten/index.js'
5
6
  export * as flip from './flip/index.js'
6
7
  export * as flop from './flop/index.js'
7
8
  export * as hue from './hue/index.js'
8
- export * as blur from './blur/index.js'
9
+ export * as level from './level/index.js'
9
10
  export * as lighten from './lighten/index.js'
10
11
  export * as normalize from './normalize/index.js'
11
12
  export * as overlay from './overlay/index.js'
12
13
  export * as resize from './resize/index.js'
13
14
  export * as rotate from './rotate/index.js'
14
15
  export * as saturate from './saturate/index.js'
15
- export * as level from './level/index.js'
@@ -1,15 +1,15 @@
1
+ export * as blur from './blur/index.js'
1
2
  export * as brighten from './brighten/index.js'
2
3
  export * as extend from './extend/index.js'
3
- export * as flatten from './flatten/index.js'
4
4
  export * as extract from './extract/index.js'
5
+ export * as flatten from './flatten/index.js'
5
6
  export * as flip from './flip/index.js'
6
7
  export * as flop from './flop/index.js'
7
8
  export * as hue from './hue/index.js'
8
- export * as blur from './blur/index.js'
9
+ export * as level from './level/index.js'
9
10
  export * as lighten from './lighten/index.js'
10
11
  export * as normalize from './normalize/index.js'
11
12
  export * as overlay from './overlay/index.js'
12
13
  export * as resize from './resize/index.js'
13
14
  export * as rotate from './rotate/index.js'
14
15
  export * as saturate from './saturate/index.js'
15
- export * as level from './level/index.js'
@@ -1,3 +1,3 @@
1
1
  export * as onExit from './on-exit/index.js'
2
- export * as spawner from './spawner/index.js'
3
2
  export * as promptContinue from './prompt-continue/index.js'
3
+ export * as spawner from './spawner/index.js'
@@ -1,3 +1,3 @@
1
1
  export * as onExit from './on-exit/index.js'
2
- export * as spawner from './spawner/index.js'
3
2
  export * as promptContinue from './prompt-continue/index.js'
3
+ export * as spawner from './spawner/index.js'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design-edito/tools",
3
- "version": "0.5.16",
3
+ "version": "0.5.17",
4
4
  "description": "",
5
5
  "author": "Maxime Fabas",
6
6
  "license": "ISC",