@design-edito/tools 0.5.18 → 0.5.19
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/agnostic/colors/index.d.ts +1 -1
- package/agnostic/colors/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +9 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +9 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/index.js +4 -4
- package/agnostic/html/index.d.ts +2 -2
- package/agnostic/html/index.js +2 -2
- package/agnostic/index.d.ts +4 -4
- package/agnostic/index.js +4 -4
- package/agnostic/misc/index.d.ts +3 -3
- package/agnostic/misc/index.js +3 -3
- package/agnostic/misc/logs/index.d.ts +1 -1
- package/agnostic/misc/logs/index.js +1 -1
- package/agnostic/numbers/index.d.ts +2 -2
- package/agnostic/numbers/index.js +2 -2
- package/agnostic/objects/index.d.ts +2 -2
- package/agnostic/objects/index.js +2 -2
- package/agnostic/sanitization/index.d.ts +1 -1
- package/agnostic/sanitization/index.js +1 -1
- package/agnostic/strings/index.d.ts +1 -1
- package/agnostic/strings/index.js +1 -1
- package/agnostic/subtitles/index.d.ts +1 -1
- package/agnostic/subtitles/index.js +1 -1
- package/agnostic/time/index.d.ts +2 -2
- package/agnostic/time/index.js +2 -2
- package/components/Video/index.d.ts +8 -0
- package/components/Video/index.js +2 -2
- package/components/Video/types.d.ts +17 -1
- package/components/Video/types.js +30 -1
- package/components/index.d.ts +5 -5
- package/components/index.js +5 -5
- package/components/utils/viewport-behaviours/utils.d.ts +21 -0
- package/components/utils/viewport-behaviours/utils.js +31 -0
- package/node/@aws-s3/storage/file/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/index.js +1 -1
- package/node/@google-cloud/storage/file/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/index.js +1 -1
- package/node/cloud-storage/operations/index.d.ts +1 -1
- package/node/cloud-storage/operations/index.js +1 -1
- package/node/images/index.d.ts +1 -1
- package/node/images/index.js +1 -1
- package/node/images/transform/operations/index.d.ts +2 -2
- package/node/images/transform/operations/index.js +2 -2
- package/package.json +1 -1
|
@@ -3,10 +3,10 @@ export * as contrast from './contrast/index.js'
|
|
|
3
3
|
export * as convert from './convert/index.js'
|
|
4
4
|
export * as distance from './distance/index.js'
|
|
5
5
|
export * as grayscale from './grayscale/index.js'
|
|
6
|
+
export * as invert from './invert/index.js'
|
|
6
7
|
export * as lerp from './lerp/index.js'
|
|
7
8
|
export * as luminance from './luminance/index.js'
|
|
8
9
|
export * as palette from './palette/index.js'
|
|
9
10
|
export * as rotate from './rotate/index.js'
|
|
10
11
|
export * as tidy from './tidy/index.js'
|
|
11
12
|
export * as typechecks from './typechecks/index.js'
|
|
12
|
-
export * as invert from './invert/index.js'
|
package/agnostic/colors/index.js
CHANGED
|
@@ -3,10 +3,10 @@ export * as contrast from './contrast/index.js'
|
|
|
3
3
|
export * as convert from './convert/index.js'
|
|
4
4
|
export * as distance from './distance/index.js'
|
|
5
5
|
export * as grayscale from './grayscale/index.js'
|
|
6
|
+
export * as invert from './invert/index.js'
|
|
6
7
|
export * as lerp from './lerp/index.js'
|
|
7
8
|
export * as luminance from './luminance/index.js'
|
|
8
9
|
export * as palette from './palette/index.js'
|
|
9
10
|
export * as rotate from './rotate/index.js'
|
|
10
11
|
export * as tidy from './tidy/index.js'
|
|
11
12
|
export * as typechecks from './typechecks/index.js'
|
|
12
|
-
export * as invert from './invert/index.js'
|
|
@@ -4,32 +4,32 @@ export * as and from './and/index.js'
|
|
|
4
4
|
export * as append from './append/index.js'
|
|
5
5
|
export * as at from './at/index.js'
|
|
6
6
|
export * as call from './call/index.js'
|
|
7
|
-
export * as clone from './clone/index.js'
|
|
8
7
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
9
8
|
export * as equals from './equals/index.js'
|
|
9
|
+
export * as clone from './clone/index.js'
|
|
10
10
|
export * as getattribute from './getattribute/index.js'
|
|
11
11
|
export * as getproperties from './getproperties/index.js'
|
|
12
12
|
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 if from './if/index.js'
|
|
16
|
-
export * as join from './join/index.js'
|
|
17
|
-
export * as initialize from './initialize/index.js'
|
|
18
16
|
export * as length from './length/index.js'
|
|
17
|
+
export * as initialize from './initialize/index.js'
|
|
18
|
+
export * as join from './join/index.js'
|
|
19
19
|
export * as map from './map/index.js'
|
|
20
20
|
export * as negate from './negate/index.js'
|
|
21
21
|
export * as notrailing from './notrailing/index.js'
|
|
22
22
|
export * as or from './or/index.js'
|
|
23
23
|
export * as pickrandom from './pickrandom/index.js'
|
|
24
|
-
export * as print from './print/index.js'
|
|
25
24
|
export * as populate from './populate/index.js'
|
|
25
|
+
export * as print from './print/index.js'
|
|
26
26
|
export * as push from './push/index.js'
|
|
27
27
|
export * as pusheach from './pusheach/index.js'
|
|
28
28
|
export * as recordtoarray from './recordtoarray/index.js'
|
|
29
29
|
export * as removeattribute from './removeattribute/index.js'
|
|
30
30
|
export * as removeclass from './removeclass/index.js'
|
|
31
|
-
export * as replace from './replace/index.js'
|
|
32
31
|
export * as renameproperty from './renameproperty/index.js'
|
|
32
|
+
export * as replace from './replace/index.js'
|
|
33
33
|
export * as select from './select/index.js'
|
|
34
34
|
export * as set from './set/index.js'
|
|
35
35
|
export * as setattribute from './setattribute/index.js'
|
|
@@ -37,16 +37,16 @@ export * as setproperty from './setproperty/index.js'
|
|
|
37
37
|
export * as sorton from './sorton/index.js'
|
|
38
38
|
export * as split from './split/index.js'
|
|
39
39
|
export * as spread from './spread/index.js'
|
|
40
|
-
export * as toarray from './toarray/index.js'
|
|
41
40
|
export * as toboolean from './toboolean/index.js'
|
|
41
|
+
export * as toarray from './toarray/index.js'
|
|
42
42
|
export * as toelement from './toelement/index.js'
|
|
43
43
|
export * as toggleclass from './toggleclass/index.js'
|
|
44
|
-
export * as tonodelist from './tonodelist/index.js'
|
|
45
44
|
export * as tonull from './tonull/index.js'
|
|
46
45
|
export * as tonumber from './tonumber/index.js'
|
|
46
|
+
export * as tonodelist from './tonodelist/index.js'
|
|
47
47
|
export * as torecord from './torecord/index.js'
|
|
48
|
+
export * as toref from './toref/index.js'
|
|
48
49
|
export * as tostring from './tostring/index.js'
|
|
49
|
-
export * as totext from './totext/index.js'
|
|
50
50
|
export * as transformselected from './transformselected/index.js'
|
|
51
51
|
export * as trim from './trim/index.js'
|
|
52
|
-
export * as
|
|
52
|
+
export * as totext from './totext/index.js'
|
|
@@ -4,32 +4,32 @@ export * as and from './and/index.js'
|
|
|
4
4
|
export * as append from './append/index.js'
|
|
5
5
|
export * as at from './at/index.js'
|
|
6
6
|
export * as call from './call/index.js'
|
|
7
|
-
export * as clone from './clone/index.js'
|
|
8
7
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
9
8
|
export * as equals from './equals/index.js'
|
|
9
|
+
export * as clone from './clone/index.js'
|
|
10
10
|
export * as getattribute from './getattribute/index.js'
|
|
11
11
|
export * as getproperties from './getproperties/index.js'
|
|
12
12
|
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 if from './if/index.js'
|
|
16
|
-
export * as join from './join/index.js'
|
|
17
|
-
export * as initialize from './initialize/index.js'
|
|
18
16
|
export * as length from './length/index.js'
|
|
17
|
+
export * as initialize from './initialize/index.js'
|
|
18
|
+
export * as join from './join/index.js'
|
|
19
19
|
export * as map from './map/index.js'
|
|
20
20
|
export * as negate from './negate/index.js'
|
|
21
21
|
export * as notrailing from './notrailing/index.js'
|
|
22
22
|
export * as or from './or/index.js'
|
|
23
23
|
export * as pickrandom from './pickrandom/index.js'
|
|
24
|
-
export * as print from './print/index.js'
|
|
25
24
|
export * as populate from './populate/index.js'
|
|
25
|
+
export * as print from './print/index.js'
|
|
26
26
|
export * as push from './push/index.js'
|
|
27
27
|
export * as pusheach from './pusheach/index.js'
|
|
28
28
|
export * as recordtoarray from './recordtoarray/index.js'
|
|
29
29
|
export * as removeattribute from './removeattribute/index.js'
|
|
30
30
|
export * as removeclass from './removeclass/index.js'
|
|
31
|
-
export * as replace from './replace/index.js'
|
|
32
31
|
export * as renameproperty from './renameproperty/index.js'
|
|
32
|
+
export * as replace from './replace/index.js'
|
|
33
33
|
export * as select from './select/index.js'
|
|
34
34
|
export * as set from './set/index.js'
|
|
35
35
|
export * as setattribute from './setattribute/index.js'
|
|
@@ -37,16 +37,16 @@ export * as setproperty from './setproperty/index.js'
|
|
|
37
37
|
export * as sorton from './sorton/index.js'
|
|
38
38
|
export * as split from './split/index.js'
|
|
39
39
|
export * as spread from './spread/index.js'
|
|
40
|
-
export * as toarray from './toarray/index.js'
|
|
41
40
|
export * as toboolean from './toboolean/index.js'
|
|
41
|
+
export * as toarray from './toarray/index.js'
|
|
42
42
|
export * as toelement from './toelement/index.js'
|
|
43
43
|
export * as toggleclass from './toggleclass/index.js'
|
|
44
|
-
export * as tonodelist from './tonodelist/index.js'
|
|
45
44
|
export * as tonull from './tonull/index.js'
|
|
46
45
|
export * as tonumber from './tonumber/index.js'
|
|
46
|
+
export * as tonodelist from './tonodelist/index.js'
|
|
47
47
|
export * as torecord from './torecord/index.js'
|
|
48
|
+
export * as toref from './toref/index.js'
|
|
48
49
|
export * as tostring from './tostring/index.js'
|
|
49
|
-
export * as totext from './totext/index.js'
|
|
50
50
|
export * as transformselected from './transformselected/index.js'
|
|
51
51
|
export * as trim from './trim/index.js'
|
|
52
|
-
export * as
|
|
52
|
+
export * as totext from './totext/index.js'
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * as any from './any/index.js'
|
|
2
1
|
export * as array from './array/index.js'
|
|
3
|
-
export * as
|
|
2
|
+
export * as any from './any/index.js'
|
|
4
3
|
export * as element from './element/index.js'
|
|
5
4
|
export * as get from './get/index.js'
|
|
6
5
|
export * as nodelist from './nodelist/index.js'
|
|
6
|
+
export * as guess from './guess/index.js'
|
|
7
7
|
export * as null from './null/index.js'
|
|
8
|
+
export * as boolean from './boolean/index.js'
|
|
8
9
|
export * as number from './number/index.js'
|
|
9
|
-
export * as guess from './guess/index.js'
|
|
10
10
|
export * as record from './record/index.js'
|
|
11
11
|
export * as string from './string/index.js'
|
|
12
|
-
export * as text from './text/index.js'
|
|
13
12
|
export * as ref from './ref/index.js'
|
|
13
|
+
export * as text from './text/index.js'
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * as any from './any/index.js'
|
|
2
1
|
export * as array from './array/index.js'
|
|
3
|
-
export * as
|
|
2
|
+
export * as any from './any/index.js'
|
|
4
3
|
export * as element from './element/index.js'
|
|
5
4
|
export * as get from './get/index.js'
|
|
6
5
|
export * as nodelist from './nodelist/index.js'
|
|
6
|
+
export * as guess from './guess/index.js'
|
|
7
7
|
export * as null from './null/index.js'
|
|
8
|
+
export * as boolean from './boolean/index.js'
|
|
8
9
|
export * as number from './number/index.js'
|
|
9
|
-
export * as guess from './guess/index.js'
|
|
10
10
|
export * as record from './record/index.js'
|
|
11
11
|
export * as string from './string/index.js'
|
|
12
|
-
export * as text from './text/index.js'
|
|
13
12
|
export * as ref from './ref/index.js'
|
|
13
|
+
export * as text from './text/index.js'
|
package/agnostic/html/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * as deepSelect from './deep-select/index.js'
|
|
2
2
|
export * as getNodeAncestors from './get-node-ancestors/index.js'
|
|
3
|
-
export * as hyperJson from './hyper-json/index.js'
|
|
4
3
|
export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
5
4
|
export * as insertNode from './insert-node/index.js'
|
|
6
|
-
export * as
|
|
5
|
+
export * as hyperJson from './hyper-json/index.js'
|
|
7
6
|
export * as replaceInElement from './replace-in-element/index.js'
|
|
8
7
|
export * as selectorToElement from './selector-to-element/index.js'
|
|
8
|
+
export * as placeholders from './placeholders/index.js'
|
|
9
9
|
export * as stringToNodes from './string-to-nodes/index.js'
|
|
10
10
|
export * as watchSelection from './watch-selection/index.js'
|
package/agnostic/html/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * as deepSelect from './deep-select/index.js'
|
|
2
2
|
export * as getNodeAncestors from './get-node-ancestors/index.js'
|
|
3
|
-
export * as hyperJson from './hyper-json/index.js'
|
|
4
3
|
export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
5
4
|
export * as insertNode from './insert-node/index.js'
|
|
6
|
-
export * as
|
|
5
|
+
export * as hyperJson from './hyper-json/index.js'
|
|
7
6
|
export * as replaceInElement from './replace-in-element/index.js'
|
|
8
7
|
export * as selectorToElement from './selector-to-element/index.js'
|
|
8
|
+
export * as placeholders from './placeholders/index.js'
|
|
9
9
|
export * as stringToNodes from './string-to-nodes/index.js'
|
|
10
10
|
export * as watchSelection from './watch-selection/index.js'
|
package/agnostic/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export * as arrays from './arrays/index.js'
|
|
2
2
|
export * as booleans from './booleans/index.js'
|
|
3
3
|
export * as colors from './colors/index.js'
|
|
4
|
+
export * as css from './css/index.js'
|
|
4
5
|
export * as errors from './errors/index.js'
|
|
5
6
|
export * as html from './html/index.js'
|
|
6
|
-
export * as css from './css/index.js'
|
|
7
7
|
export * as misc from './misc/index.js'
|
|
8
|
-
export * as numbers from './numbers/index.js'
|
|
9
|
-
export * as optim from './optim/index.js'
|
|
10
8
|
export * as objects from './objects/index.js'
|
|
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
|
+
export * as regexps from './regexps/index.js'
|
|
12
13
|
export * as sanitization from './sanitization/index.js'
|
|
13
14
|
export * as strings from './strings/index.js'
|
|
14
|
-
export * as regexps from './regexps/index.js'
|
|
15
15
|
export * as subtitles from './subtitles/index.js'
|
|
16
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
1
|
export * as arrays from './arrays/index.js'
|
|
2
2
|
export * as booleans from './booleans/index.js'
|
|
3
3
|
export * as colors from './colors/index.js'
|
|
4
|
+
export * as css from './css/index.js'
|
|
4
5
|
export * as errors from './errors/index.js'
|
|
5
6
|
export * as html from './html/index.js'
|
|
6
|
-
export * as css from './css/index.js'
|
|
7
7
|
export * as misc from './misc/index.js'
|
|
8
|
-
export * as numbers from './numbers/index.js'
|
|
9
|
-
export * as optim from './optim/index.js'
|
|
10
8
|
export * as objects from './objects/index.js'
|
|
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
|
+
export * as regexps from './regexps/index.js'
|
|
12
13
|
export * as sanitization from './sanitization/index.js'
|
|
13
14
|
export * as strings from './strings/index.js'
|
|
14
|
-
export * as regexps from './regexps/index.js'
|
|
15
15
|
export * as subtitles from './subtitles/index.js'
|
|
16
16
|
export * as time from './time/index.js'
|
|
17
17
|
export * as typescript from './typescript/index.js'
|
package/agnostic/misc/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * as cast from './cast/index.js'
|
|
2
1
|
export * as assert from './assert/index.js'
|
|
2
|
+
export * as cast from './cast/index.js'
|
|
3
3
|
export * as crawler from './crawler/index.js'
|
|
4
|
-
export * as connection from './connection/index.js'
|
|
5
4
|
export * as crossenv from './crossenv/index.js'
|
|
5
|
+
export * as connection from './connection/index.js'
|
|
6
|
+
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
6
7
|
export * as dataSize from './data-size/index.js'
|
|
7
8
|
export * as isNullish from './is-nullish/index.js'
|
|
8
|
-
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
9
9
|
export * as logs from './logs/index.js'
|
|
10
10
|
export * as loremIpsum from './lorem-ipsum/index.js'
|
|
11
11
|
export * as normalizeExtension from './normalize-extension/index.js'
|
package/agnostic/misc/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * as cast from './cast/index.js'
|
|
2
1
|
export * as assert from './assert/index.js'
|
|
2
|
+
export * as cast from './cast/index.js'
|
|
3
3
|
export * as crawler from './crawler/index.js'
|
|
4
|
-
export * as connection from './connection/index.js'
|
|
5
4
|
export * as crossenv from './crossenv/index.js'
|
|
5
|
+
export * as connection from './connection/index.js'
|
|
6
|
+
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
6
7
|
export * as dataSize from './data-size/index.js'
|
|
7
8
|
export * as isNullish from './is-nullish/index.js'
|
|
8
|
-
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
9
9
|
export * as logs from './logs/index.js'
|
|
10
10
|
export * as loremIpsum from './lorem-ipsum/index.js'
|
|
11
11
|
export * as normalizeExtension from './normalize-extension/index.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as absoluteModulo from './absolute-modulo/index.js'
|
|
2
|
-
export * as clamp from './clamp/index.js'
|
|
3
2
|
export * as approximateRational from './approximate-rational/index.js'
|
|
3
|
+
export * as clamp from './clamp/index.js'
|
|
4
4
|
export * as geometricProgressions from './geometric-progressions/index.js'
|
|
5
|
-
export * as round from './round/index.js'
|
|
6
5
|
export * as interpolate from './interpolate/index.js'
|
|
6
|
+
export * as round from './round/index.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as absoluteModulo from './absolute-modulo/index.js'
|
|
2
|
-
export * as clamp from './clamp/index.js'
|
|
3
2
|
export * as approximateRational from './approximate-rational/index.js'
|
|
3
|
+
export * as clamp from './clamp/index.js'
|
|
4
4
|
export * as geometricProgressions from './geometric-progressions/index.js'
|
|
5
|
-
export * as round from './round/index.js'
|
|
6
5
|
export * as interpolate from './interpolate/index.js'
|
|
6
|
+
export * as round from './round/index.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as deepGetProperty from './deep-get-property/index.js'
|
|
2
2
|
export * as enums from './enums/index.js'
|
|
3
3
|
export * as flattenGetters from './flatten-getters/index.js'
|
|
4
|
-
export * as isObject from './is-object/index.js'
|
|
5
4
|
export * as isRecord from './is-record/index.js'
|
|
6
5
|
export * as recordFormat from './record-format/index.js'
|
|
7
|
-
export * as
|
|
6
|
+
export * as isObject from './is-object/index.js'
|
|
8
7
|
export * as recordMap from './record-map/index.js'
|
|
8
|
+
export * as sortKeys from './sort-keys/index.js'
|
|
9
9
|
export * as validation from './validation/index.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as deepGetProperty from './deep-get-property/index.js'
|
|
2
2
|
export * as enums from './enums/index.js'
|
|
3
3
|
export * as flattenGetters from './flatten-getters/index.js'
|
|
4
|
-
export * as isObject from './is-object/index.js'
|
|
5
4
|
export * as isRecord from './is-record/index.js'
|
|
6
5
|
export * as recordFormat from './record-format/index.js'
|
|
7
|
-
export * as
|
|
6
|
+
export * as isObject from './is-object/index.js'
|
|
8
7
|
export * as recordMap from './record-map/index.js'
|
|
8
|
+
export * as sortKeys from './sort-keys/index.js'
|
|
9
9
|
export * as validation from './validation/index.js'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as charCodes from './char-codes/index.js'
|
|
2
|
-
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'
|
|
4
|
+
export * as matches from './matches/index.js'
|
|
5
5
|
export * as replaceAll from './replace-all/index.js'
|
|
6
6
|
export * as splitTrim from './split-trim/index.js'
|
|
7
7
|
export * as toAlphanum from './to-alphanum/index.js'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as charCodes from './char-codes/index.js'
|
|
2
|
-
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'
|
|
4
|
+
export * as matches from './matches/index.js'
|
|
5
5
|
export * as replaceAll from './replace-all/index.js'
|
|
6
6
|
export * as splitTrim from './split-trim/index.js'
|
|
7
7
|
export * as toAlphanum from './to-alphanum/index.js'
|
package/agnostic/time/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export * as duration from './duration/index.js'
|
|
1
2
|
export * as timeout from './timeout/index.js'
|
|
3
|
+
export * as dates from './dates/index.js'
|
|
2
4
|
export * as transitions from './transitions/index.js'
|
|
3
5
|
export * as wait from './wait/index.js'
|
|
4
|
-
export * as dates from './dates/index.js'
|
|
5
|
-
export * as duration from './duration/index.js'
|
package/agnostic/time/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export * as duration from './duration/index.js'
|
|
1
2
|
export * as timeout from './timeout/index.js'
|
|
3
|
+
export * as dates from './dates/index.js'
|
|
2
4
|
export * as transitions from './transitions/index.js'
|
|
3
5
|
export * as wait from './wait/index.js'
|
|
4
|
-
export * as dates from './dates/index.js'
|
|
5
|
-
export * as duration from './duration/index.js'
|
|
@@ -6,6 +6,13 @@ import { type Props as ControlledProps } from './index.controlled.js';
|
|
|
6
6
|
* Props for the {@link Video} component.
|
|
7
7
|
*
|
|
8
8
|
* Extends all ControlledVideo props except play, mute, fullscreen, volume, playbackRate, and their associated event handlers
|
|
9
|
+
* @property behavioursSuspended - Holds back the instructions that **start** something,
|
|
10
|
+
* and lets through those that stop it. For a consumer withholding the video behind
|
|
11
|
+
* something — a warning to accept, typically: a video kept back that plays anyway is not
|
|
12
|
+
* withheld, it is merely hard to see. What was held back is replayed the moment this
|
|
13
|
+
* goes false, so lifting the veil on an already-visible video does what was asked, which
|
|
14
|
+
* a crossing-based trigger could never do. `':force'` does not override it: it speaks of
|
|
15
|
+
* consent not yet given, where a surrender speaks of an intention already expressed.
|
|
9
16
|
* @property visibilityThreshold - How much of the video has to be on screen to count as
|
|
10
17
|
* seen. See {@link VisibilityOptions} for this and the four that follow it.
|
|
11
18
|
* @property whenVisible - What to do each time it becomes visible.
|
|
@@ -32,6 +39,7 @@ import { type Props as ControlledProps } from './index.controlled.js';
|
|
|
32
39
|
*/
|
|
33
40
|
export type Props = Omit<ControlledProps, 'play' | 'fullscreen' | 'volume' | 'mute' | 'playbackRate' | 'subtitlesOn' | 'rootRef' | 'videoRef'> & ViewportBehaviours<VideoAction> & {
|
|
34
41
|
defaultSubtitlesOn?: boolean;
|
|
42
|
+
behavioursSuspended?: boolean;
|
|
35
43
|
};
|
|
36
44
|
/**
|
|
37
45
|
* Full-featured video player component. Wraps a native `<video>` element with
|
|
@@ -51,7 +51,7 @@ import { ControlledVideo } from './index.controlled.js';
|
|
|
51
51
|
* The media still won't play, though: autoplay muted, and leave unmuting to the
|
|
52
52
|
* reader.
|
|
53
53
|
*/
|
|
54
|
-
export const Video = ({ defaultSubtitlesOn = true, visibilityThreshold, visibilityRoot, visibilityRootMargin, visibilityOnAfterMs, visibilityOffAfterMs, whenVisible, whenHidden, onVisibilityChanged, onVideoClicked, onPlayButtonClicked, onPauseButtonClicked, onLoudButtonClicked, onMuteButtonClicked, onVolumeRangeChanged, onRateRangeChanged, onFullscreenButtonClicked, onSubtitlesButtonClicked, ...controlledProps }) => {
|
|
54
|
+
export const Video = ({ defaultSubtitlesOn = true, behavioursSuspended, visibilityThreshold, visibilityRoot, visibilityRootMargin, visibilityOnAfterMs, visibilityOffAfterMs, whenVisible, whenHidden, onVisibilityChanged, onVideoClicked, onPlayButtonClicked, onPauseButtonClicked, onLoudButtonClicked, onMuteButtonClicked, onVolumeRangeChanged, onRateRangeChanged, onFullscreenButtonClicked, onSubtitlesButtonClicked, ...controlledProps }) => {
|
|
55
55
|
// State & refs
|
|
56
56
|
const [play, setPlay] = useState(false);
|
|
57
57
|
const [volume, setVolume] = useState(1);
|
|
@@ -101,7 +101,7 @@ export const Video = ({ defaultSubtitlesOn = true, visibilityThreshold, visibili
|
|
|
101
101
|
whenVisible,
|
|
102
102
|
whenHidden,
|
|
103
103
|
onVisibilityChanged
|
|
104
|
-
}, actions);
|
|
104
|
+
}, actions, behavioursSuspended === true);
|
|
105
105
|
// Narrowed back to this component's own domains. The generic layer takes a `string`,
|
|
106
106
|
// having no vocabulary of its own; handing the handlers a typed door means a
|
|
107
107
|
// misspelled domain fails to compile instead of quietly never surrendering anything.
|
|
@@ -4,7 +4,23 @@
|
|
|
4
4
|
* `jump-to` is the only one taking an argument, and the table is keyed by the verb
|
|
5
5
|
* alone — the argument is parsed out of the instruction before the lookup.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export declare const VIDEO_VERBS: readonly ["play", "pause", "loud", "mute", "jump-to", "jump-start", "jump-end"];
|
|
8
|
+
export type VideoVerb = typeof VIDEO_VERBS[number];
|
|
9
|
+
/**
|
|
10
|
+
* How to read the argument of each verb that takes one.
|
|
11
|
+
*
|
|
12
|
+
* **Exported because a consumer has to validate what it is handed**, and a type gives a
|
|
13
|
+
* runtime validator nothing to compare against. lm-link reads an article's props out of
|
|
14
|
+
* static XML and has to reject `'jump-to:banana'` before it ever reaches here — with the
|
|
15
|
+
* list restated on its side, the day a verb is added is the day an article writing it
|
|
16
|
+
* silently gets nothing.
|
|
17
|
+
*
|
|
18
|
+
* A digit string, and deliberately not `Number`: that would take `'1e3'` and `'0x10'`,
|
|
19
|
+
* which nobody means to write in an article.
|
|
20
|
+
*/
|
|
21
|
+
export declare const VIDEO_VERB_ARGUMENTS: {
|
|
22
|
+
readonly 'jump-to': (arg: string) => boolean;
|
|
23
|
+
};
|
|
8
24
|
/**
|
|
9
25
|
* The instructions a consumer writes in `whenVisible` / `whenHidden`.
|
|
10
26
|
*
|
|
@@ -1 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* The verbs a video answers to, as the table keys them.
|
|
3
|
+
*
|
|
4
|
+
* `jump-to` is the only one taking an argument, and the table is keyed by the verb
|
|
5
|
+
* alone — the argument is parsed out of the instruction before the lookup.
|
|
6
|
+
*/
|
|
7
|
+
export const VIDEO_VERBS = [
|
|
8
|
+
'play',
|
|
9
|
+
'pause',
|
|
10
|
+
'loud',
|
|
11
|
+
'mute',
|
|
12
|
+
'jump-to',
|
|
13
|
+
'jump-start',
|
|
14
|
+
'jump-end'
|
|
15
|
+
];
|
|
16
|
+
/**
|
|
17
|
+
* How to read the argument of each verb that takes one.
|
|
18
|
+
*
|
|
19
|
+
* **Exported because a consumer has to validate what it is handed**, and a type gives a
|
|
20
|
+
* runtime validator nothing to compare against. lm-link reads an article's props out of
|
|
21
|
+
* static XML and has to reject `'jump-to:banana'` before it ever reaches here — with the
|
|
22
|
+
* list restated on its side, the day a verb is added is the day an article writing it
|
|
23
|
+
* silently gets nothing.
|
|
24
|
+
*
|
|
25
|
+
* A digit string, and deliberately not `Number`: that would take `'1e3'` and `'0x10'`,
|
|
26
|
+
* which nobody means to write in an article.
|
|
27
|
+
*/
|
|
28
|
+
export const VIDEO_VERB_ARGUMENTS = {
|
|
29
|
+
'jump-to': (arg) => /^-?\d+$/v.test(arg)
|
|
30
|
+
};
|
package/components/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * as beforeAfter from './BeforeAfter/index.js'
|
|
2
2
|
export * as button from './Button/index.js'
|
|
3
|
-
export * as disclaimer from './Disclaimer/index.js'
|
|
4
3
|
export * as clippable from './Clippable/index.js'
|
|
5
|
-
export * as
|
|
4
|
+
export * as disclaimer from './Disclaimer/index.js'
|
|
6
5
|
export * as drawer from './Drawer/index.js'
|
|
7
|
-
export * as
|
|
6
|
+
export * as eventListener from './EventListener/index.js'
|
|
8
7
|
export * as gallery from './Gallery/index.js'
|
|
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'
|
|
11
11
|
export * as intersectionObserver from './IntersectionObserver/index.js'
|
|
@@ -13,15 +13,15 @@ export * as jsonEditor from './JsonEditor/index.js'
|
|
|
13
13
|
export * as lightbox from './Lightbox/index.js'
|
|
14
14
|
export * as listLoader from './ListLoader/index.js'
|
|
15
15
|
export * as overlayer from './Overlayer/index.js'
|
|
16
|
-
export * as resizeObserver from './ResizeObserver/index.js'
|
|
17
16
|
export * as paginator from './Paginator/index.js'
|
|
17
|
+
export * as resizeObserver from './ResizeObserver/index.js'
|
|
18
18
|
export * as scrllgngn from './Scrllgngn/index.js'
|
|
19
19
|
export * as scrollListener from './ScrollListener/index.js'
|
|
20
20
|
export * as select from './Select/index.js'
|
|
21
21
|
export * as sequencer from './Sequencer/index.js'
|
|
22
22
|
export * as shadowRoot from './ShadowRoot/index.js'
|
|
23
|
-
export * as textarea from './Textarea/index.js'
|
|
24
23
|
export * as subtitles from './Subtitles/index.js'
|
|
24
|
+
export * as textarea from './Textarea/index.js'
|
|
25
25
|
export * as uiModule from './UIModule/index.js'
|
|
26
26
|
export * as video from './Video/index.js'
|
|
27
27
|
export * as wipAudioQuote from './_WIP_AudioQuote/index.js'
|
package/components/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * as beforeAfter from './BeforeAfter/index.js'
|
|
2
2
|
export * as button from './Button/index.js'
|
|
3
|
-
export * as disclaimer from './Disclaimer/index.js'
|
|
4
3
|
export * as clippable from './Clippable/index.js'
|
|
5
|
-
export * as
|
|
4
|
+
export * as disclaimer from './Disclaimer/index.js'
|
|
6
5
|
export * as drawer from './Drawer/index.js'
|
|
7
|
-
export * as
|
|
6
|
+
export * as eventListener from './EventListener/index.js'
|
|
8
7
|
export * as gallery from './Gallery/index.js'
|
|
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'
|
|
11
11
|
export * as intersectionObserver from './IntersectionObserver/index.js'
|
|
@@ -13,15 +13,15 @@ export * as jsonEditor from './JsonEditor/index.js'
|
|
|
13
13
|
export * as lightbox from './Lightbox/index.js'
|
|
14
14
|
export * as listLoader from './ListLoader/index.js'
|
|
15
15
|
export * as overlayer from './Overlayer/index.js'
|
|
16
|
-
export * as resizeObserver from './ResizeObserver/index.js'
|
|
17
16
|
export * as paginator from './Paginator/index.js'
|
|
17
|
+
export * as resizeObserver from './ResizeObserver/index.js'
|
|
18
18
|
export * as scrllgngn from './Scrllgngn/index.js'
|
|
19
19
|
export * as scrollListener from './ScrollListener/index.js'
|
|
20
20
|
export * as select from './Select/index.js'
|
|
21
21
|
export * as sequencer from './Sequencer/index.js'
|
|
22
22
|
export * as shadowRoot from './ShadowRoot/index.js'
|
|
23
|
-
export * as textarea from './Textarea/index.js'
|
|
24
23
|
export * as subtitles from './Subtitles/index.js'
|
|
24
|
+
export * as textarea from './Textarea/index.js'
|
|
25
25
|
export * as uiModule from './UIModule/index.js'
|
|
26
26
|
export * as video from './Video/index.js'
|
|
27
27
|
export * as wipAudioQuote from './_WIP_AudioQuote/index.js'
|
|
@@ -24,3 +24,24 @@ export declare function parseInstruction(instruction: string): ParsedInstruction
|
|
|
24
24
|
* @returns The instructions in the order they were given, which is the order they run.
|
|
25
25
|
*/
|
|
26
26
|
export declare function toInstructionList<A extends string>(given: Instruction<A> | Array<Instruction<A>> | undefined): Array<Instruction<A>>;
|
|
27
|
+
/**
|
|
28
|
+
* Whether a string is an instruction this vocabulary answers to.
|
|
29
|
+
*
|
|
30
|
+
* **Exported for the consumers that receive their props as text.** lm-link reads an
|
|
31
|
+
* article's XML, where nothing is typed, and has to reject `'jump-to:banana'` before it
|
|
32
|
+
* reaches a component. Written on its side, the rule would exist twice and drift in
|
|
33
|
+
* silence — a verb added here would be rejected there for no visible reason.
|
|
34
|
+
*
|
|
35
|
+
* Returns a plain boolean rather than a type predicate, and that is not an oversight: a
|
|
36
|
+
* verb taking an argument is written `'jump-to:500'`, which is not a member of the verb
|
|
37
|
+
* list this checks against. Narrowing to `Instruction<A>` would therefore claim more than
|
|
38
|
+
* the list can support, and the caller that needs the narrow type is better off asserting
|
|
39
|
+
* it once, where it can say why.
|
|
40
|
+
*
|
|
41
|
+
* @param value - What the consumer wrote.
|
|
42
|
+
* @param verbs - The vocabulary, bare — `VIDEO_VERBS` and its like.
|
|
43
|
+
* @param withArgument - Those of them that take one, and what a valid one looks like. A
|
|
44
|
+
* verb given an argument it does not take, or denied one it needs, fails either way:
|
|
45
|
+
* both are a consumer meaning something the component cannot do.
|
|
46
|
+
*/
|
|
47
|
+
export declare function isInstruction(value: unknown, verbs: readonly string[], withArgument?: Readonly<Partial<Record<string, (arg: string) => boolean>>>): boolean;
|
|
@@ -53,3 +53,34 @@ export function toInstructionList(given) {
|
|
|
53
53
|
return given;
|
|
54
54
|
return [given];
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Whether a string is an instruction this vocabulary answers to.
|
|
58
|
+
*
|
|
59
|
+
* **Exported for the consumers that receive their props as text.** lm-link reads an
|
|
60
|
+
* article's XML, where nothing is typed, and has to reject `'jump-to:banana'` before it
|
|
61
|
+
* reaches a component. Written on its side, the rule would exist twice and drift in
|
|
62
|
+
* silence — a verb added here would be rejected there for no visible reason.
|
|
63
|
+
*
|
|
64
|
+
* Returns a plain boolean rather than a type predicate, and that is not an oversight: a
|
|
65
|
+
* verb taking an argument is written `'jump-to:500'`, which is not a member of the verb
|
|
66
|
+
* list this checks against. Narrowing to `Instruction<A>` would therefore claim more than
|
|
67
|
+
* the list can support, and the caller that needs the narrow type is better off asserting
|
|
68
|
+
* it once, where it can say why.
|
|
69
|
+
*
|
|
70
|
+
* @param value - What the consumer wrote.
|
|
71
|
+
* @param verbs - The vocabulary, bare — `VIDEO_VERBS` and its like.
|
|
72
|
+
* @param withArgument - Those of them that take one, and what a valid one looks like. A
|
|
73
|
+
* verb given an argument it does not take, or denied one it needs, fails either way:
|
|
74
|
+
* both are a consumer meaning something the component cannot do.
|
|
75
|
+
*/
|
|
76
|
+
export function isInstruction(value, verbs, withArgument = {}) {
|
|
77
|
+
if (typeof value !== 'string')
|
|
78
|
+
return false;
|
|
79
|
+
const { verb, arg } = parseInstruction(value);
|
|
80
|
+
if (!verbs.includes(verb))
|
|
81
|
+
return false;
|
|
82
|
+
const validate = withArgument[verb];
|
|
83
|
+
if (validate === undefined)
|
|
84
|
+
return arg === undefined;
|
|
85
|
+
return arg !== undefined && validate(arg);
|
|
86
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as copy from './copy/index.js'
|
|
2
2
|
export * as exists from './exists/index.js'
|
|
3
|
+
export * as download from './download/index.js'
|
|
3
4
|
export * as move from './move/index.js'
|
|
4
5
|
export * as remove from './remove/index.js'
|
|
5
6
|
export * as stat from './stat/index.js'
|
|
6
7
|
export * as upload from './upload/index.js'
|
|
7
|
-
export * as download from './download/index.js'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as copy from './copy/index.js'
|
|
2
2
|
export * as exists from './exists/index.js'
|
|
3
|
+
export * as download from './download/index.js'
|
|
3
4
|
export * as move from './move/index.js'
|
|
4
5
|
export * as remove from './remove/index.js'
|
|
5
6
|
export * as stat from './stat/index.js'
|
|
6
7
|
export * as upload from './upload/index.js'
|
|
7
|
-
export * as download from './download/index.js'
|
|
@@ -1,8 +1,8 @@
|
|
|
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'
|
|
5
|
+
export * as getMetadata from './get-metadata/index.js'
|
|
6
6
|
export * as getPermissions from './get-permissions/index.js'
|
|
7
7
|
export * as move from './move/index.js'
|
|
8
8
|
export * as remove from './remove/index.js'
|
|
@@ -1,8 +1,8 @@
|
|
|
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'
|
|
5
|
+
export * as getMetadata from './get-metadata/index.js'
|
|
6
6
|
export * as getPermissions from './get-permissions/index.js'
|
|
7
7
|
export * as move from './move/index.js'
|
|
8
8
|
export * as remove from './remove/index.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as copyDir from './copy-dir/index.js'
|
|
2
|
-
export * as copyFile from './copy-file/index.js'
|
|
3
2
|
export * as downloadFile from './download-file/index.js'
|
|
3
|
+
export * as copyFile from './copy-file/index.js'
|
|
4
4
|
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'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as copyDir from './copy-dir/index.js'
|
|
2
|
-
export * as copyFile from './copy-file/index.js'
|
|
3
2
|
export * as downloadFile from './download-file/index.js'
|
|
3
|
+
export * as copyFile from './copy-file/index.js'
|
|
4
4
|
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'
|
package/node/images/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as create from './create/index.js'
|
|
2
|
+
export * as format from './format/index.js'
|
|
2
3
|
export * as metadata from './metadata/index.js'
|
|
3
4
|
export * as transform from './transform/index.js'
|
|
4
5
|
export * as utils from './utils/index.js'
|
|
5
|
-
export * as format from './format/index.js'
|
package/node/images/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as create from './create/index.js'
|
|
2
|
+
export * as format from './format/index.js'
|
|
2
3
|
export * as metadata from './metadata/index.js'
|
|
3
4
|
export * as transform from './transform/index.js'
|
|
4
5
|
export * as utils from './utils/index.js'
|
|
5
|
-
export * as format from './format/index.js'
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export * as blur from './blur/index.js'
|
|
2
|
+
export * as brighten from './brighten/index.js'
|
|
2
3
|
export * as extend from './extend/index.js'
|
|
3
4
|
export * as extract from './extract/index.js'
|
|
4
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
|
-
export * as brighten from './brighten/index.js'
|
|
8
8
|
export * as hue from './hue/index.js'
|
|
9
9
|
export * as level from './level/index.js'
|
|
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
|
-
export * as lighten from './lighten/index.js'
|
|
13
13
|
export * as resize from './resize/index.js'
|
|
14
14
|
export * as rotate from './rotate/index.js'
|
|
15
15
|
export * as saturate from './saturate/index.js'
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export * as blur from './blur/index.js'
|
|
2
|
+
export * as brighten from './brighten/index.js'
|
|
2
3
|
export * as extend from './extend/index.js'
|
|
3
4
|
export * as extract from './extract/index.js'
|
|
4
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
|
-
export * as brighten from './brighten/index.js'
|
|
8
8
|
export * as hue from './hue/index.js'
|
|
9
9
|
export * as level from './level/index.js'
|
|
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
|
-
export * as lighten from './lighten/index.js'
|
|
13
13
|
export * as resize from './resize/index.js'
|
|
14
14
|
export * as rotate from './rotate/index.js'
|
|
15
15
|
export * as saturate from './saturate/index.js'
|