@design-edito/tools 0.4.14 → 0.4.15
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/arrays/index.d.ts +1 -1
- package/agnostic/arrays/index.js +1 -1
- package/agnostic/colors/index.d.ts +3 -3
- package/agnostic/colors/index.js +3 -3
- package/agnostic/css/index.d.ts +1 -1
- package/agnostic/css/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +10 -10
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +10 -10
- package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +3 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/index.js +3 -3
- package/agnostic/html/index.d.ts +1 -1
- package/agnostic/html/index.js +1 -1
- package/agnostic/index.d.ts +1 -1
- package/agnostic/index.js +1 -1
- package/agnostic/misc/crossenv/index.d.ts +1 -1
- package/agnostic/misc/crossenv/index.js +1 -1
- package/agnostic/misc/index.d.ts +1 -1
- package/agnostic/misc/index.js +1 -1
- package/agnostic/misc/logs/index.d.ts +1 -1
- package/agnostic/misc/logs/index.js +1 -1
- package/agnostic/numbers/index.d.ts +1 -1
- package/agnostic/numbers/index.js +1 -1
- package/agnostic/objects/index.d.ts +4 -4
- package/agnostic/objects/index.js +4 -4
- package/agnostic/optim/index.d.ts +1 -1
- package/agnostic/optim/index.js +1 -1
- package/agnostic/sanitization/index.d.ts +2 -2
- package/agnostic/sanitization/index.js +2 -2
- package/agnostic/strings/index.d.ts +1 -1
- package/agnostic/strings/index.js +1 -1
- package/agnostic/time/index.d.ts +1 -1
- package/agnostic/time/index.js +1 -1
- package/components/Scrllgngn/index.d.ts +10 -1
- package/components/Scrllgngn/index.js +7 -4
- package/components/index.d.ts +2 -2
- package/components/index.js +2 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/node/@aws-s3/storage/directory/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/index.js +1 -1
- package/node/@google-cloud/storage/directory/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/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/@google-cloud/storage/index.d.ts +1 -1
- package/node/@google-cloud/storage/index.js +1 -1
- package/node/cloud-storage/operations/index.d.ts +3 -3
- package/node/cloud-storage/operations/index.js +3 -3
- package/node/files/index.d.ts +1 -1
- package/node/files/index.js +1 -1
- package/node/images/index.d.ts +1 -1
- package/node/images/index.js +1 -1
- package/node/sftp/directory/index.d.ts +1 -1
- package/node/sftp/directory/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as dedupe from './dedupe/index.js'
|
|
2
2
|
export * as findDuplicates from './find-duplicates/index.js'
|
|
3
|
-
export * as isArrayOf from './is-array-of/index.js'
|
|
4
3
|
export * as make from './make/index.js'
|
|
4
|
+
export * as isArrayOf from './is-array-of/index.js'
|
|
5
5
|
export * as randomPick from './random-pick/index.js'
|
|
6
6
|
export * as shuffle from './shuffle/index.js'
|
package/agnostic/arrays/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as dedupe from './dedupe/index.js'
|
|
2
2
|
export * as findDuplicates from './find-duplicates/index.js'
|
|
3
|
-
export * as isArrayOf from './is-array-of/index.js'
|
|
4
3
|
export * as make from './make/index.js'
|
|
4
|
+
export * as isArrayOf from './is-array-of/index.js'
|
|
5
5
|
export * as randomPick from './random-pick/index.js'
|
|
6
6
|
export * as shuffle from './shuffle/index.js'
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * as channels from './channels/index.js'
|
|
2
1
|
export * as contrast from './contrast/index.js'
|
|
3
|
-
export * as
|
|
2
|
+
export * as channels from './channels/index.js'
|
|
4
3
|
export * as distance from './distance/index.js'
|
|
5
|
-
export * as grayscale from './grayscale/index.js'
|
|
6
4
|
export * as invert from './invert/index.js'
|
|
5
|
+
export * as grayscale from './grayscale/index.js'
|
|
7
6
|
export * as lerp from './lerp/index.js'
|
|
8
7
|
export * as luminance from './luminance/index.js'
|
|
8
|
+
export * as convert from './convert/index.js'
|
|
9
9
|
export * as palette from './palette/index.js'
|
|
10
10
|
export * as rotate from './rotate/index.js'
|
|
11
11
|
export * as tidy from './tidy/index.js'
|
package/agnostic/colors/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * as channels from './channels/index.js'
|
|
2
1
|
export * as contrast from './contrast/index.js'
|
|
3
|
-
export * as
|
|
2
|
+
export * as channels from './channels/index.js'
|
|
4
3
|
export * as distance from './distance/index.js'
|
|
5
|
-
export * as grayscale from './grayscale/index.js'
|
|
6
4
|
export * as invert from './invert/index.js'
|
|
5
|
+
export * as grayscale from './grayscale/index.js'
|
|
7
6
|
export * as lerp from './lerp/index.js'
|
|
8
7
|
export * as luminance from './luminance/index.js'
|
|
8
|
+
export * as convert from './convert/index.js'
|
|
9
9
|
export * as palette from './palette/index.js'
|
|
10
10
|
export * as rotate from './rotate/index.js'
|
|
11
11
|
export * as tidy from './tidy/index.js'
|
package/agnostic/css/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as bem from './bem/index.js'
|
|
2
2
|
export * as clss from './clss/index.js'
|
|
3
|
+
export * as generateNiceColor from './generate-nice-color/index.js'
|
|
3
4
|
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
4
5
|
export * as scale from './scale/index.js'
|
|
5
6
|
export * as stylesSet from './styles-set/index.js'
|
|
6
|
-
export * as generateNiceColor from './generate-nice-color/index.js'
|
package/agnostic/css/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as bem from './bem/index.js'
|
|
2
2
|
export * as clss from './clss/index.js'
|
|
3
|
+
export * as generateNiceColor from './generate-nice-color/index.js'
|
|
3
4
|
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
4
5
|
export * as scale from './scale/index.js'
|
|
5
6
|
export * as stylesSet from './styles-set/index.js'
|
|
6
|
-
export * as generateNiceColor from './generate-nice-color/index.js'
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
export * as add from './add/index.js'
|
|
2
|
+
export * as addclass from './addclass/index.js'
|
|
2
3
|
export * as and from './and/index.js'
|
|
3
4
|
export * as append from './append/index.js'
|
|
4
5
|
export * as at from './at/index.js'
|
|
5
6
|
export * as call from './call/index.js'
|
|
6
7
|
export * as clone from './clone/index.js'
|
|
7
8
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
8
|
-
export * as addclass from './addclass/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'
|
|
12
|
-
export * as getproperty from './getproperty/index.js'
|
|
13
12
|
export * as hjparse from './hjparse/index.js'
|
|
14
|
-
export * as
|
|
13
|
+
export * as getproperty from './getproperty/index.js'
|
|
14
|
+
export * as hjstringify from './hjstringify/index.js'
|
|
15
15
|
export * as if from './if/index.js'
|
|
16
|
+
export * as initialize from './initialize/index.js'
|
|
16
17
|
export * as join from './join/index.js'
|
|
17
18
|
export * as length from './length/index.js'
|
|
18
19
|
export * as map from './map/index.js'
|
|
19
20
|
export * as negate from './negate/index.js'
|
|
20
21
|
export * as notrailing from './notrailing/index.js'
|
|
21
22
|
export * as or from './or/index.js'
|
|
22
|
-
export * as hjstringify from './hjstringify/index.js'
|
|
23
23
|
export * as pickrandom from './pickrandom/index.js'
|
|
24
|
-
export * as populate from './populate/index.js'
|
|
25
24
|
export * as print from './print/index.js'
|
|
26
25
|
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
28
|
export * as removeattribute from './removeattribute/index.js'
|
|
30
29
|
export * as removeclass from './removeclass/index.js'
|
|
30
|
+
export * as replace from './replace/index.js'
|
|
31
31
|
export * as renameproperty from './renameproperty/index.js'
|
|
32
32
|
export * as select from './select/index.js'
|
|
33
|
-
export * as
|
|
33
|
+
export * as populate from './populate/index.js'
|
|
34
34
|
export * as set from './set/index.js'
|
|
35
35
|
export * as setattribute from './setattribute/index.js'
|
|
36
36
|
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'
|
|
42
41
|
export * as toelement from './toelement/index.js'
|
|
43
|
-
export * as toggleclass from './toggleclass/index.js'
|
|
44
42
|
export * as tonodelist from './tonodelist/index.js'
|
|
43
|
+
export * as toggleclass from './toggleclass/index.js'
|
|
45
44
|
export * as tonull from './tonull/index.js'
|
|
46
|
-
export * as
|
|
45
|
+
export * as toarray from './toarray/index.js'
|
|
47
46
|
export * as torecord from './torecord/index.js'
|
|
48
|
-
export * as
|
|
47
|
+
export * as tonumber from './tonumber/index.js'
|
|
49
48
|
export * as toref from './toref/index.js'
|
|
50
49
|
export * as totext from './totext/index.js'
|
|
50
|
+
export * as tostring from './tostring/index.js'
|
|
51
51
|
export * as transformselected from './transformselected/index.js'
|
|
52
52
|
export * as trim from './trim/index.js'
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
export * as add from './add/index.js'
|
|
2
|
+
export * as addclass from './addclass/index.js'
|
|
2
3
|
export * as and from './and/index.js'
|
|
3
4
|
export * as append from './append/index.js'
|
|
4
5
|
export * as at from './at/index.js'
|
|
5
6
|
export * as call from './call/index.js'
|
|
6
7
|
export * as clone from './clone/index.js'
|
|
7
8
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
8
|
-
export * as addclass from './addclass/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'
|
|
12
|
-
export * as getproperty from './getproperty/index.js'
|
|
13
12
|
export * as hjparse from './hjparse/index.js'
|
|
14
|
-
export * as
|
|
13
|
+
export * as getproperty from './getproperty/index.js'
|
|
14
|
+
export * as hjstringify from './hjstringify/index.js'
|
|
15
15
|
export * as if from './if/index.js'
|
|
16
|
+
export * as initialize from './initialize/index.js'
|
|
16
17
|
export * as join from './join/index.js'
|
|
17
18
|
export * as length from './length/index.js'
|
|
18
19
|
export * as map from './map/index.js'
|
|
19
20
|
export * as negate from './negate/index.js'
|
|
20
21
|
export * as notrailing from './notrailing/index.js'
|
|
21
22
|
export * as or from './or/index.js'
|
|
22
|
-
export * as hjstringify from './hjstringify/index.js'
|
|
23
23
|
export * as pickrandom from './pickrandom/index.js'
|
|
24
|
-
export * as populate from './populate/index.js'
|
|
25
24
|
export * as print from './print/index.js'
|
|
26
25
|
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
28
|
export * as removeattribute from './removeattribute/index.js'
|
|
30
29
|
export * as removeclass from './removeclass/index.js'
|
|
30
|
+
export * as replace from './replace/index.js'
|
|
31
31
|
export * as renameproperty from './renameproperty/index.js'
|
|
32
32
|
export * as select from './select/index.js'
|
|
33
|
-
export * as
|
|
33
|
+
export * as populate from './populate/index.js'
|
|
34
34
|
export * as set from './set/index.js'
|
|
35
35
|
export * as setattribute from './setattribute/index.js'
|
|
36
36
|
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'
|
|
42
41
|
export * as toelement from './toelement/index.js'
|
|
43
|
-
export * as toggleclass from './toggleclass/index.js'
|
|
44
42
|
export * as tonodelist from './tonodelist/index.js'
|
|
43
|
+
export * as toggleclass from './toggleclass/index.js'
|
|
45
44
|
export * as tonull from './tonull/index.js'
|
|
46
|
-
export * as
|
|
45
|
+
export * as toarray from './toarray/index.js'
|
|
47
46
|
export * as torecord from './torecord/index.js'
|
|
48
|
-
export * as
|
|
47
|
+
export * as tonumber from './tonumber/index.js'
|
|
49
48
|
export * as toref from './toref/index.js'
|
|
50
49
|
export * as totext from './totext/index.js'
|
|
50
|
+
export * as tostring from './tostring/index.js'
|
|
51
51
|
export * as transformselected from './transformselected/index.js'
|
|
52
52
|
export * as trim from './trim/index.js'
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * as any from './any/index.js'
|
|
2
1
|
export * as array from './array/index.js'
|
|
2
|
+
export * as any from './any/index.js'
|
|
3
3
|
export * as boolean from './boolean/index.js'
|
|
4
4
|
export * as element from './element/index.js'
|
|
5
|
+
export * as get from './get/index.js'
|
|
5
6
|
export * as guess from './guess/index.js'
|
|
6
7
|
export * as nodelist from './nodelist/index.js'
|
|
7
8
|
export * as number from './number/index.js'
|
|
8
|
-
export * as get from './get/index.js'
|
|
9
9
|
export * as record from './record/index.js'
|
|
10
10
|
export * as ref from './ref/index.js'
|
|
11
|
+
export * as null from './null/index.js'
|
|
11
12
|
export * as string from './string/index.js'
|
|
12
13
|
export * as text from './text/index.js'
|
|
13
|
-
export * as null from './null/index.js'
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * as any from './any/index.js'
|
|
2
1
|
export * as array from './array/index.js'
|
|
2
|
+
export * as any from './any/index.js'
|
|
3
3
|
export * as boolean from './boolean/index.js'
|
|
4
4
|
export * as element from './element/index.js'
|
|
5
|
+
export * as get from './get/index.js'
|
|
5
6
|
export * as guess from './guess/index.js'
|
|
6
7
|
export * as nodelist from './nodelist/index.js'
|
|
7
8
|
export * as number from './number/index.js'
|
|
8
|
-
export * as get from './get/index.js'
|
|
9
9
|
export * as record from './record/index.js'
|
|
10
10
|
export * as ref from './ref/index.js'
|
|
11
|
+
export * as null from './null/index.js'
|
|
11
12
|
export * as string from './string/index.js'
|
|
12
13
|
export * as text from './text/index.js'
|
|
13
|
-
export * as null from './null/index.js'
|
package/agnostic/html/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
|
4
4
|
export * as hyperJson from './hyper-json/index.js'
|
|
5
5
|
export * as insertNode from './insert-node/index.js'
|
|
6
6
|
export * as placeholders from './placeholders/index.js'
|
|
7
|
+
export * as replaceInElement from './replace-in-element/index.js'
|
|
7
8
|
export * as selectorToElement from './selector-to-element/index.js'
|
|
8
9
|
export * as stringToNodes from './string-to-nodes/index.js'
|
|
9
10
|
export * as watchSelection from './watch-selection/index.js'
|
|
10
|
-
export * as replaceInElement from './replace-in-element/index.js'
|
package/agnostic/html/index.js
CHANGED
|
@@ -4,7 +4,7 @@ export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
|
4
4
|
export * as hyperJson from './hyper-json/index.js'
|
|
5
5
|
export * as insertNode from './insert-node/index.js'
|
|
6
6
|
export * as placeholders from './placeholders/index.js'
|
|
7
|
+
export * as replaceInElement from './replace-in-element/index.js'
|
|
7
8
|
export * as selectorToElement from './selector-to-element/index.js'
|
|
8
9
|
export * as stringToNodes from './string-to-nodes/index.js'
|
|
9
10
|
export * as watchSelection from './watch-selection/index.js'
|
|
10
|
-
export * as replaceInElement from './replace-in-element/index.js'
|
package/agnostic/index.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ export * as misc from './misc/index.js'
|
|
|
8
8
|
export * as numbers from './numbers/index.js'
|
|
9
9
|
export * as objects from './objects/index.js'
|
|
10
10
|
export * as optim from './optim/index.js'
|
|
11
|
-
export * as random from './random/index.js'
|
|
12
11
|
export * as regexps from './regexps/index.js'
|
|
13
12
|
export * as sanitization from './sanitization/index.js'
|
|
13
|
+
export * as random from './random/index.js'
|
|
14
14
|
export * as strings from './strings/index.js'
|
|
15
15
|
export * as time from './time/index.js'
|
|
16
16
|
export * as typescript from './typescript/index.js'
|
package/agnostic/index.js
CHANGED
|
@@ -8,9 +8,9 @@ export * as misc from './misc/index.js'
|
|
|
8
8
|
export * as numbers from './numbers/index.js'
|
|
9
9
|
export * as objects from './objects/index.js'
|
|
10
10
|
export * as optim from './optim/index.js'
|
|
11
|
-
export * as random from './random/index.js'
|
|
12
11
|
export * as regexps from './regexps/index.js'
|
|
13
12
|
export * as sanitization from './sanitization/index.js'
|
|
13
|
+
export * as random from './random/index.js'
|
|
14
14
|
export * as strings from './strings/index.js'
|
|
15
15
|
export * as time from './time/index.js'
|
|
16
16
|
export * as typescript from './typescript/index.js'
|
package/agnostic/misc/index.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ export * as dataSize from './data-size/index.js'
|
|
|
7
7
|
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
8
8
|
export * as isNullish from './is-nullish/index.js'
|
|
9
9
|
export * as logs from './logs/index.js'
|
|
10
|
+
export * as loremIpsum from './lorem-ipsum/index.js'
|
|
10
11
|
export * as normalizeExtension from './normalize-extension/index.js'
|
|
11
12
|
export * as outcome from './outcome/index.js'
|
|
12
|
-
export * as loremIpsum from './lorem-ipsum/index.js'
|
package/agnostic/misc/index.js
CHANGED
|
@@ -7,6 +7,6 @@ export * as dataSize from './data-size/index.js'
|
|
|
7
7
|
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
8
8
|
export * as isNullish from './is-nullish/index.js'
|
|
9
9
|
export * as logs from './logs/index.js'
|
|
10
|
+
export * as loremIpsum from './lorem-ipsum/index.js'
|
|
10
11
|
export * as normalizeExtension from './normalize-extension/index.js'
|
|
11
12
|
export * as outcome from './outcome/index.js'
|
|
12
|
-
export * as loremIpsum from './lorem-ipsum/index.js'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as approximateRational from './approximate-rational/index.js'
|
|
2
1
|
export * as absoluteModulo from './absolute-modulo/index.js'
|
|
2
|
+
export * as approximateRational from './approximate-rational/index.js'
|
|
3
3
|
export * as clamp from './clamp/index.js'
|
|
4
4
|
export * as geometricProgressions from './geometric-progressions/index.js'
|
|
5
5
|
export * as interpolate from './interpolate/index.js'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as approximateRational from './approximate-rational/index.js'
|
|
2
1
|
export * as absoluteModulo from './absolute-modulo/index.js'
|
|
2
|
+
export * as approximateRational from './approximate-rational/index.js'
|
|
3
3
|
export * as clamp from './clamp/index.js'
|
|
4
4
|
export * as geometricProgressions from './geometric-progressions/index.js'
|
|
5
5
|
export * as interpolate from './interpolate/index.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as enums from './enums/index.js'
|
|
2
2
|
export * as flattenGetters from './flatten-getters/index.js'
|
|
3
|
-
export * as
|
|
3
|
+
export * as deepGetProperty from './deep-get-property/index.js'
|
|
4
4
|
export * as isObject from './is-object/index.js'
|
|
5
|
+
export * as isRecord from './is-record/index.js'
|
|
5
6
|
export * as recordFormat from './record-format/index.js'
|
|
6
7
|
export * as sortKeys from './sort-keys/index.js'
|
|
7
|
-
export * as recordMap from './record-map/index.js'
|
|
8
8
|
export * as validation from './validation/index.js'
|
|
9
|
-
export * as
|
|
9
|
+
export * as recordMap from './record-map/index.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as enums from './enums/index.js'
|
|
2
2
|
export * as flattenGetters from './flatten-getters/index.js'
|
|
3
|
-
export * as
|
|
3
|
+
export * as deepGetProperty from './deep-get-property/index.js'
|
|
4
4
|
export * as isObject from './is-object/index.js'
|
|
5
|
+
export * as isRecord from './is-record/index.js'
|
|
5
6
|
export * as recordFormat from './record-format/index.js'
|
|
6
7
|
export * as sortKeys from './sort-keys/index.js'
|
|
7
|
-
export * as recordMap from './record-map/index.js'
|
|
8
8
|
export * as validation from './validation/index.js'
|
|
9
|
-
export * as
|
|
9
|
+
export * as recordMap from './record-map/index.js'
|
package/agnostic/optim/index.js
CHANGED
|
@@ -4,5 +4,5 @@ export * as normalizeIndent from './normalize-indent/index.js'
|
|
|
4
4
|
export * as parseTable from './parse-table/index.js'
|
|
5
5
|
export * as replaceAll from './replace-all/index.js'
|
|
6
6
|
export * as splitTrim from './split-trim/index.js'
|
|
7
|
-
export * as trim from './trim/index.js'
|
|
8
7
|
export * as toAlphanum from './to-alphanum/index.js'
|
|
8
|
+
export * as trim from './trim/index.js'
|
|
@@ -4,5 +4,5 @@ export * as normalizeIndent from './normalize-indent/index.js'
|
|
|
4
4
|
export * as parseTable from './parse-table/index.js'
|
|
5
5
|
export * as replaceAll from './replace-all/index.js'
|
|
6
6
|
export * as splitTrim from './split-trim/index.js'
|
|
7
|
-
export * as trim from './trim/index.js'
|
|
8
7
|
export * as toAlphanum from './to-alphanum/index.js'
|
|
8
|
+
export * as trim from './trim/index.js'
|
package/agnostic/time/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as dates from './dates/index.js'
|
|
2
2
|
export * as duration from './duration/index.js'
|
|
3
|
-
export * as transitions from './transitions/index.js'
|
|
4
3
|
export * as timeout from './timeout/index.js'
|
|
4
|
+
export * as transitions from './transitions/index.js'
|
|
5
5
|
export * as wait from './wait/index.js'
|
package/agnostic/time/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as dates from './dates/index.js'
|
|
2
2
|
export * as duration from './duration/index.js'
|
|
3
|
-
export * as transitions from './transitions/index.js'
|
|
4
3
|
export * as timeout from './timeout/index.js'
|
|
4
|
+
export * as transitions from './transitions/index.js'
|
|
5
5
|
export * as wait from './wait/index.js'
|
|
@@ -71,13 +71,22 @@ export type PropsPage = {
|
|
|
71
71
|
* - `'after'` — forces blocks from pages after the current one.
|
|
72
72
|
* - `'both'` — forces blocks on both sides.
|
|
73
73
|
* - `'none'` — no forcing (default behaviour).
|
|
74
|
-
* @property
|
|
74
|
+
* @property stateHandlers - Optional callbacks invoked in response to
|
|
75
|
+
* component state changes.
|
|
76
|
+
* @property stateHandlers.pageChanged - Called whenever the current page
|
|
77
|
+
* changes. Receives the zero-based index of the current page and the
|
|
78
|
+
* corresponding page definition, if available.
|
|
79
|
+
* @property className - Optional additional class name(s) applied to the root
|
|
80
|
+
* element.
|
|
75
81
|
*/
|
|
76
82
|
export type Props = WithClassName<{
|
|
77
83
|
pages?: PropsPage[];
|
|
78
84
|
thresholdOffsetPercent?: number;
|
|
79
85
|
stickyBlocksLazyLoadDistance?: number;
|
|
80
86
|
forceStickBlocks?: 'before' | 'after' | 'both' | 'none';
|
|
87
|
+
stateHandlers?: {
|
|
88
|
+
pageChanged?: (currentPagePos: number, pageData?: PropsPage) => void;
|
|
89
|
+
};
|
|
81
90
|
}>;
|
|
82
91
|
/**
|
|
83
92
|
* Scrollytelling engine component. Orchestrates layered sticky blocks (`back`
|
|
@@ -48,7 +48,7 @@ import cssModule from './styles.module.css';
|
|
|
48
48
|
* back-blocks layer, front-blocks layer, paginated scrolling content, and
|
|
49
49
|
* bottom-bound sentinel.
|
|
50
50
|
*/
|
|
51
|
-
export const Scrllgngn = ({ pages, thresholdOffsetPercent, stickyBlocksLazyLoadDistance = 2, forceStickBlocks, className }) => {
|
|
51
|
+
export const Scrllgngn = ({ pages, thresholdOffsetPercent, stickyBlocksLazyLoadDistance = 2, forceStickBlocks, stateHandlers, className }) => {
|
|
52
52
|
// State
|
|
53
53
|
const [topVisible, setTopVis] = useState(false);
|
|
54
54
|
const [contentVisible, setCntVis] = useState(false);
|
|
@@ -113,11 +113,14 @@ export const Scrllgngn = ({ pages, thresholdOffsetPercent, stickyBlocksLazyLoadD
|
|
|
113
113
|
const handleTopBoundDetect = e => setTopVis(e.ioEntry?.isIntersecting ?? false);
|
|
114
114
|
const handleCntDetect = e => setCntVis(e.ioEntry?.isIntersecting ?? false);
|
|
115
115
|
const handleBtmBoundDetect = e => setBtmVis(e.ioEntry?.isIntersecting ?? false);
|
|
116
|
-
const handlePageChange =
|
|
117
|
-
const curPagePos =
|
|
116
|
+
const handlePageChange = statePages => {
|
|
117
|
+
const curPagePos = statePages.findIndex(page => page.position === 'curr');
|
|
118
118
|
if (curPagePos === -1)
|
|
119
119
|
return;
|
|
120
|
-
|
|
120
|
+
if (curPagePos === currentPagePos)
|
|
121
|
+
return;
|
|
122
|
+
setCurrentPagePos(curPagePos);
|
|
123
|
+
stateHandlers?.pageChanged?.(curPagePos, pages?.[curPagePos]);
|
|
121
124
|
};
|
|
122
125
|
const handleResize = ({ boundingClientRect }) => {
|
|
123
126
|
if (partialBoundingRect === undefined
|
package/components/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * as beforeAfter from './BeforeAfter/index.js'
|
|
2
2
|
export * as clippable from './Clippable/index.js'
|
|
3
|
-
export * as disclaimer from './Disclaimer/index.js'
|
|
4
3
|
export * as drawer from './Drawer/index.js'
|
|
5
4
|
export * as eventListener from './EventListener/index.js'
|
|
5
|
+
export * as disclaimer from './Disclaimer/index.js'
|
|
6
6
|
export * as gallery from './Gallery/index.js'
|
|
7
7
|
export * as iframe from './Iframe/index.js'
|
|
8
|
-
export * as intersectionObserver from './IntersectionObserver/index.js'
|
|
9
8
|
export * as image from './Image/index.js'
|
|
9
|
+
export * as intersectionObserver from './IntersectionObserver/index.js'
|
|
10
10
|
export * as overlayer from './Overlayer/index.js'
|
|
11
11
|
export * as paginator from './Paginator/index.js'
|
|
12
12
|
export * as resizeObserver from './ResizeObserver/index.js'
|
package/components/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * as beforeAfter from './BeforeAfter/index.js'
|
|
2
2
|
export * as clippable from './Clippable/index.js'
|
|
3
|
-
export * as disclaimer from './Disclaimer/index.js'
|
|
4
3
|
export * as drawer from './Drawer/index.js'
|
|
5
4
|
export * as eventListener from './EventListener/index.js'
|
|
5
|
+
export * as disclaimer from './Disclaimer/index.js'
|
|
6
6
|
export * as gallery from './Gallery/index.js'
|
|
7
7
|
export * as iframe from './Iframe/index.js'
|
|
8
|
-
export * as intersectionObserver from './IntersectionObserver/index.js'
|
|
9
8
|
export * as image from './Image/index.js'
|
|
9
|
+
export * as intersectionObserver from './IntersectionObserver/index.js'
|
|
10
10
|
export * as overlayer from './Overlayer/index.js'
|
|
11
11
|
export * as paginator from './Paginator/index.js'
|
|
12
12
|
export * as resizeObserver from './ResizeObserver/index.js'
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -8,5 +8,5 @@ export * as move from './move/index.js'
|
|
|
8
8
|
export * as remove from './remove/index.js'
|
|
9
9
|
export * as revokeSignedUrls from './revoke-signed-urls/index.js'
|
|
10
10
|
export * as stat from './stat/index.js'
|
|
11
|
-
export * as updateMetadata from './update-metadata/index.js'
|
|
12
11
|
export * as upload from './upload/index.js'
|
|
12
|
+
export * as updateMetadata from './update-metadata/index.js'
|
|
@@ -8,5 +8,5 @@ export * as move from './move/index.js'
|
|
|
8
8
|
export * as remove from './remove/index.js'
|
|
9
9
|
export * as revokeSignedUrls from './revoke-signed-urls/index.js'
|
|
10
10
|
export * as stat from './stat/index.js'
|
|
11
|
-
export * as updateMetadata from './update-metadata/index.js'
|
|
12
11
|
export * as upload from './upload/index.js'
|
|
12
|
+
export * as updateMetadata from './update-metadata/index.js'
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
export * as moveDir from './move-dir/index.js'
|
|
6
5
|
export * as listDir from './list-dir/index.js'
|
|
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,11 +1,11 @@
|
|
|
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
|
-
export * as moveDir from './move-dir/index.js'
|
|
6
5
|
export * as listDir from './list-dir/index.js'
|
|
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'
|
package/node/files/index.d.ts
CHANGED
package/node/files/index.js
CHANGED
package/node/images/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as create from './create/index.js'
|
|
2
1
|
export * as format from './format/index.js'
|
|
3
2
|
export * as metadata from './metadata/index.js'
|
|
4
3
|
export * as transform from './transform/index.js'
|
|
5
4
|
export * as utils from './utils/index.js'
|
|
5
|
+
export * as create from './create/index.js'
|
package/node/images/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as create from './create/index.js'
|
|
2
1
|
export * as format from './format/index.js'
|
|
3
2
|
export * as metadata from './metadata/index.js'
|
|
4
3
|
export * as transform from './transform/index.js'
|
|
5
4
|
export * as utils from './utils/index.js'
|
|
5
|
+
export * as create from './create/index.js'
|