@design-edito/tools 0.4.14 → 0.4.16
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/css/index.d.ts +1 -1
- package/agnostic/css/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +11 -11
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +11 -11
- 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 +5 -5
- package/agnostic/html/index.js +5 -5
- 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 +2 -2
- package/agnostic/objects/index.js +2 -2
- package/agnostic/optim/index.d.ts +1 -1
- package/agnostic/optim/index.js +1 -1
- package/agnostic/sanitization/index.d.ts +1 -1
- package/agnostic/sanitization/index.js +1 -1
- package/agnostic/strings/index.d.ts +2 -2
- package/agnostic/strings/index.js +2 -2
- package/agnostic/time/index.d.ts +2 -2
- package/agnostic/time/index.js +2 -2
- package/components/Scrllgngn/index.d.ts +10 -1
- package/components/Scrllgngn/index.js +7 -4
- package/components/Scrllgngn/styles.module.css +10 -0
- package/components/index.d.ts +1 -1
- package/components/index.js +1 -1
- 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/@aws-s3/storage/file/index.d.ts +2 -2
- package/node/@aws-s3/storage/file/index.js +2 -2
- package/node/@google-cloud/storage/directory/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/index.js +1 -1
- package/node/cloud-storage/operations/index.d.ts +2 -2
- package/node/cloud-storage/operations/index.js +2 -2
- package/node/ftps/file/index.d.ts +1 -1
- package/node/ftps/file/index.js +1 -1
- package/node/images/transform/operations/index.d.ts +1 -1
- package/node/images/transform/operations/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
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
3
|
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
4
|
+
export * as generateNiceColor from './generate-nice-color/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
3
|
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
4
|
+
export * as generateNiceColor from './generate-nice-color/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
12
|
export * as getproperty from './getproperty/index.js'
|
|
13
13
|
export * as hjparse from './hjparse/index.js'
|
|
14
|
-
export * as
|
|
14
|
+
export * as hjstringify from './hjstringify/index.js'
|
|
15
15
|
export * as if from './if/index.js'
|
|
16
16
|
export * as join from './join/index.js'
|
|
17
|
+
export * as initialize from './initialize/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'
|
|
25
|
+
export * as populate from './populate/index.js'
|
|
26
26
|
export * as push from './push/index.js'
|
|
27
|
-
export * as pusheach from './pusheach/index.js'
|
|
28
|
-
export * as recordtoarray from './recordtoarray/index.js'
|
|
29
27
|
export * as removeattribute from './removeattribute/index.js'
|
|
28
|
+
export * as recordtoarray from './recordtoarray/index.js'
|
|
29
|
+
export * as pusheach from './pusheach/index.js'
|
|
30
30
|
export * as removeclass from './removeclass/index.js'
|
|
31
31
|
export * as renameproperty from './renameproperty/index.js'
|
|
32
|
-
export * as select from './select/index.js'
|
|
33
32
|
export * as replace from './replace/index.js'
|
|
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'
|
|
36
36
|
export * as setproperty from './setproperty/index.js'
|
|
37
|
-
export * as sorton from './sorton/index.js'
|
|
38
37
|
export * as split from './split/index.js'
|
|
38
|
+
export * as sorton from './sorton/index.js'
|
|
39
39
|
export * as spread from './spread/index.js'
|
|
40
40
|
export * as toarray from './toarray/index.js'
|
|
41
41
|
export * as toboolean from './toboolean/index.js'
|
|
42
42
|
export * as toelement from './toelement/index.js'
|
|
43
|
-
export * as toggleclass from './toggleclass/index.js'
|
|
44
43
|
export * as tonodelist from './tonodelist/index.js'
|
|
45
|
-
export * as tonull from './tonull/index.js'
|
|
46
44
|
export * as tonumber from './tonumber/index.js'
|
|
47
45
|
export * as torecord from './torecord/index.js'
|
|
48
|
-
export * as tostring from './tostring/index.js'
|
|
49
46
|
export * as toref from './toref/index.js'
|
|
47
|
+
export * as tostring from './tostring/index.js'
|
|
50
48
|
export * as totext from './totext/index.js'
|
|
51
49
|
export * as transformselected from './transformselected/index.js'
|
|
50
|
+
export * as tonull from './tonull/index.js'
|
|
51
|
+
export * as toggleclass from './toggleclass/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
12
|
export * as getproperty from './getproperty/index.js'
|
|
13
13
|
export * as hjparse from './hjparse/index.js'
|
|
14
|
-
export * as
|
|
14
|
+
export * as hjstringify from './hjstringify/index.js'
|
|
15
15
|
export * as if from './if/index.js'
|
|
16
16
|
export * as join from './join/index.js'
|
|
17
|
+
export * as initialize from './initialize/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'
|
|
25
|
+
export * as populate from './populate/index.js'
|
|
26
26
|
export * as push from './push/index.js'
|
|
27
|
-
export * as pusheach from './pusheach/index.js'
|
|
28
|
-
export * as recordtoarray from './recordtoarray/index.js'
|
|
29
27
|
export * as removeattribute from './removeattribute/index.js'
|
|
28
|
+
export * as recordtoarray from './recordtoarray/index.js'
|
|
29
|
+
export * as pusheach from './pusheach/index.js'
|
|
30
30
|
export * as removeclass from './removeclass/index.js'
|
|
31
31
|
export * as renameproperty from './renameproperty/index.js'
|
|
32
|
-
export * as select from './select/index.js'
|
|
33
32
|
export * as replace from './replace/index.js'
|
|
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'
|
|
36
36
|
export * as setproperty from './setproperty/index.js'
|
|
37
|
-
export * as sorton from './sorton/index.js'
|
|
38
37
|
export * as split from './split/index.js'
|
|
38
|
+
export * as sorton from './sorton/index.js'
|
|
39
39
|
export * as spread from './spread/index.js'
|
|
40
40
|
export * as toarray from './toarray/index.js'
|
|
41
41
|
export * as toboolean from './toboolean/index.js'
|
|
42
42
|
export * as toelement from './toelement/index.js'
|
|
43
|
-
export * as toggleclass from './toggleclass/index.js'
|
|
44
43
|
export * as tonodelist from './tonodelist/index.js'
|
|
45
|
-
export * as tonull from './tonull/index.js'
|
|
46
44
|
export * as tonumber from './tonumber/index.js'
|
|
47
45
|
export * as torecord from './torecord/index.js'
|
|
48
|
-
export * as tostring from './tostring/index.js'
|
|
49
46
|
export * as toref from './toref/index.js'
|
|
47
|
+
export * as tostring from './tostring/index.js'
|
|
50
48
|
export * as totext from './totext/index.js'
|
|
51
49
|
export * as transformselected from './transformselected/index.js'
|
|
50
|
+
export * as tonull from './tonull/index.js'
|
|
51
|
+
export * as toggleclass from './toggleclass/index.js'
|
|
52
52
|
export * as trim from './trim/index.js'
|
|
@@ -2,12 +2,12 @@ export * as any from './any/index.js'
|
|
|
2
2
|
export * as array from './array/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'
|
|
8
|
+
export * as null from './null/index.js'
|
|
7
9
|
export * as number from './number/index.js'
|
|
8
|
-
export * as get from './get/index.js'
|
|
9
10
|
export * as record from './record/index.js'
|
|
10
11
|
export * as ref from './ref/index.js'
|
|
11
|
-
export * as string from './string/index.js'
|
|
12
12
|
export * as text from './text/index.js'
|
|
13
|
-
export * as
|
|
13
|
+
export * as string from './string/index.js'
|
|
@@ -2,12 +2,12 @@ export * as any from './any/index.js'
|
|
|
2
2
|
export * as array from './array/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'
|
|
8
|
+
export * as null from './null/index.js'
|
|
7
9
|
export * as number from './number/index.js'
|
|
8
|
-
export * as get from './get/index.js'
|
|
9
10
|
export * as record from './record/index.js'
|
|
10
11
|
export * as ref from './ref/index.js'
|
|
11
|
-
export * as string from './string/index.js'
|
|
12
12
|
export * as text from './text/index.js'
|
|
13
|
-
export * as
|
|
13
|
+
export * as string from './string/index.js'
|
package/agnostic/html/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * as deepSelect from './deep-select/index.js'
|
|
2
1
|
export * as getNodeAncestors from './get-node-ancestors/index.js'
|
|
3
|
-
export * as
|
|
2
|
+
export * as deepSelect from './deep-select/index.js'
|
|
4
3
|
export * as hyperJson from './hyper-json/index.js'
|
|
5
|
-
export * as insertNode from './insert-node/index.js'
|
|
6
4
|
export * as placeholders from './placeholders/index.js'
|
|
7
|
-
export * as
|
|
5
|
+
export * as replaceInElement from './replace-in-element/index.js'
|
|
6
|
+
export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
8
7
|
export * as stringToNodes from './string-to-nodes/index.js'
|
|
8
|
+
export * as selectorToElement from './selector-to-element/index.js'
|
|
9
9
|
export * as watchSelection from './watch-selection/index.js'
|
|
10
|
-
export * as
|
|
10
|
+
export * as insertNode from './insert-node/index.js'
|
package/agnostic/html/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * as deepSelect from './deep-select/index.js'
|
|
2
1
|
export * as getNodeAncestors from './get-node-ancestors/index.js'
|
|
3
|
-
export * as
|
|
2
|
+
export * as deepSelect from './deep-select/index.js'
|
|
4
3
|
export * as hyperJson from './hyper-json/index.js'
|
|
5
|
-
export * as insertNode from './insert-node/index.js'
|
|
6
4
|
export * as placeholders from './placeholders/index.js'
|
|
7
|
-
export * as
|
|
5
|
+
export * as replaceInElement from './replace-in-element/index.js'
|
|
6
|
+
export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
8
7
|
export * as stringToNodes from './string-to-nodes/index.js'
|
|
8
|
+
export * as selectorToElement from './selector-to-element/index.js'
|
|
9
9
|
export * as watchSelection from './watch-selection/index.js'
|
|
10
|
-
export * as
|
|
10
|
+
export * as insertNode from './insert-node/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
1
|
export * as deepGetProperty from './deep-get-property/index.js'
|
|
2
2
|
export * as flattenGetters from './flatten-getters/index.js'
|
|
3
|
-
export * as isRecord from './is-record/index.js'
|
|
4
3
|
export * as isObject from './is-object/index.js'
|
|
4
|
+
export * as isRecord from './is-record/index.js'
|
|
5
5
|
export * as recordFormat from './record-format/index.js'
|
|
6
|
-
export * as sortKeys from './sort-keys/index.js'
|
|
7
6
|
export * as recordMap from './record-map/index.js'
|
|
7
|
+
export * as sortKeys from './sort-keys/index.js'
|
|
8
8
|
export * as validation from './validation/index.js'
|
|
9
9
|
export * as enums from './enums/index.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as deepGetProperty from './deep-get-property/index.js'
|
|
2
2
|
export * as flattenGetters from './flatten-getters/index.js'
|
|
3
|
-
export * as isRecord from './is-record/index.js'
|
|
4
3
|
export * as isObject from './is-object/index.js'
|
|
4
|
+
export * as isRecord from './is-record/index.js'
|
|
5
5
|
export * as recordFormat from './record-format/index.js'
|
|
6
|
-
export * as sortKeys from './sort-keys/index.js'
|
|
7
6
|
export * as recordMap from './record-map/index.js'
|
|
7
|
+
export * as sortKeys from './sort-keys/index.js'
|
|
8
8
|
export * as validation from './validation/index.js'
|
|
9
9
|
export * as enums from './enums/index.js'
|
package/agnostic/optim/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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'
|
|
5
4
|
export * as replaceAll from './replace-all/index.js'
|
|
6
5
|
export * as splitTrim from './split-trim/index.js'
|
|
7
|
-
export * as trim from './trim/index.js'
|
|
8
6
|
export * as toAlphanum from './to-alphanum/index.js'
|
|
7
|
+
export * as trim from './trim/index.js'
|
|
8
|
+
export * as matches from './matches/index.js'
|
|
@@ -1,8 +1,8 @@
|
|
|
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'
|
|
5
4
|
export * as replaceAll from './replace-all/index.js'
|
|
6
5
|
export * as splitTrim from './split-trim/index.js'
|
|
7
|
-
export * as trim from './trim/index.js'
|
|
8
6
|
export * as toAlphanum from './to-alphanum/index.js'
|
|
7
|
+
export * as trim from './trim/index.js'
|
|
8
|
+
export * as matches from './matches/index.js'
|
package/agnostic/time/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as dates from './dates/index.js'
|
|
2
|
-
export * as duration from './duration/index.js'
|
|
3
|
-
export * as transitions from './transitions/index.js'
|
|
4
2
|
export * as timeout from './timeout/index.js'
|
|
3
|
+
export * as transitions from './transitions/index.js'
|
|
4
|
+
export * as duration from './duration/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
|
-
export * as duration from './duration/index.js'
|
|
3
|
-
export * as transitions from './transitions/index.js'
|
|
4
2
|
export * as timeout from './timeout/index.js'
|
|
3
|
+
export * as transitions from './transitions/index.js'
|
|
4
|
+
export * as duration from './duration/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
|
|
@@ -6,14 +6,19 @@
|
|
|
6
6
|
|
|
7
7
|
.back-blocks {
|
|
8
8
|
z-index: 1;
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
width: 100%;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
.scrolling-content {
|
|
14
|
+
position: relative;
|
|
12
15
|
z-index: 2;
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
.front-blocks {
|
|
16
19
|
z-index: 3;
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
width: 100%;
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
/* Scrllgngn entering the viewport, blocks not fixed yet */
|
|
@@ -72,3 +77,8 @@ Force stick blocks option
|
|
|
72
77
|
left: 0;
|
|
73
78
|
right: 0;
|
|
74
79
|
}
|
|
80
|
+
|
|
81
|
+
.back-block > :where(*),
|
|
82
|
+
.front-block > :where(*) {
|
|
83
|
+
pointer-events: initial;
|
|
84
|
+
}
|
package/components/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export * as drawer from './Drawer/index.js'
|
|
|
5
5
|
export * as eventListener from './EventListener/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
|
@@ -5,8 +5,8 @@ export * as drawer from './Drawer/index.js'
|
|
|
5
5
|
export * as eventListener from './EventListener/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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * as copy from './copy/index.js'
|
|
2
1
|
export * as download from './download/index.js'
|
|
2
|
+
export * as copy from './copy/index.js'
|
|
3
3
|
export * as exists from './exists/index.js'
|
|
4
4
|
export * as move from './move/index.js'
|
|
5
|
-
export * as remove from './remove/index.js'
|
|
6
5
|
export * as stat from './stat/index.js'
|
|
7
6
|
export * as upload from './upload/index.js'
|
|
7
|
+
export * as remove from './remove/index.js'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * as copy from './copy/index.js'
|
|
2
1
|
export * as download from './download/index.js'
|
|
2
|
+
export * as copy from './copy/index.js'
|
|
3
3
|
export * as exists from './exists/index.js'
|
|
4
4
|
export * as move from './move/index.js'
|
|
5
|
-
export * as remove from './remove/index.js'
|
|
6
5
|
export * as stat from './stat/index.js'
|
|
7
6
|
export * as upload from './upload/index.js'
|
|
7
|
+
export * as remove from './remove/index.js'
|
|
@@ -2,10 +2,10 @@ export * as copyDir from './copy-dir/index.js'
|
|
|
2
2
|
export * as copyFile from './copy-file/index.js'
|
|
3
3
|
export * as downloadFile from './download-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'
|
|
@@ -2,10 +2,10 @@ export * as copyDir from './copy-dir/index.js'
|
|
|
2
2
|
export * as copyFile from './copy-file/index.js'
|
|
3
3
|
export * as downloadFile from './download-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,6 +1,6 @@
|
|
|
1
1
|
export * as copy from './copy/index.js'
|
|
2
|
-
export * as download from './download/index.js'
|
|
3
2
|
export * as exists from './exists/index.js'
|
|
3
|
+
export * as download from './download/index.js'
|
|
4
4
|
export * as move from './move/index.js'
|
|
5
5
|
export * as remove from './remove/index.js'
|
|
6
6
|
export * as stat from './stat/index.js'
|
package/node/ftps/file/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as copy from './copy/index.js'
|
|
2
|
-
export * as download from './download/index.js'
|
|
3
2
|
export * as exists from './exists/index.js'
|
|
3
|
+
export * as download from './download/index.js'
|
|
4
4
|
export * as move from './move/index.js'
|
|
5
5
|
export * as remove from './remove/index.js'
|
|
6
6
|
export * as stat from './stat/index.js'
|
|
@@ -4,8 +4,8 @@ export * as extend from './extend/index.js'
|
|
|
4
4
|
export * as extract from './extract/index.js'
|
|
5
5
|
export * as flatten from './flatten/index.js'
|
|
6
6
|
export * as flip from './flip/index.js'
|
|
7
|
-
export * as flop from './flop/index.js'
|
|
8
7
|
export * as hue from './hue/index.js'
|
|
8
|
+
export * as flop from './flop/index.js'
|
|
9
9
|
export * as level from './level/index.js'
|
|
10
10
|
export * as lighten from './lighten/index.js'
|
|
11
11
|
export * as normalize from './normalize/index.js'
|
|
@@ -4,8 +4,8 @@ export * as extend from './extend/index.js'
|
|
|
4
4
|
export * as extract from './extract/index.js'
|
|
5
5
|
export * as flatten from './flatten/index.js'
|
|
6
6
|
export * as flip from './flip/index.js'
|
|
7
|
-
export * as flop from './flop/index.js'
|
|
8
7
|
export * as hue from './hue/index.js'
|
|
8
|
+
export * as flop from './flop/index.js'
|
|
9
9
|
export * as level from './level/index.js'
|
|
10
10
|
export * as lighten from './lighten/index.js'
|
|
11
11
|
export * as normalize from './normalize/index.js'
|