@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.
Files changed (55) hide show
  1. package/agnostic/arrays/index.d.ts +1 -1
  2. package/agnostic/arrays/index.js +1 -1
  3. package/agnostic/colors/index.d.ts +3 -3
  4. package/agnostic/colors/index.js +3 -3
  5. package/agnostic/css/index.d.ts +1 -1
  6. package/agnostic/css/index.js +1 -1
  7. package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +10 -10
  8. package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +10 -10
  9. package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +3 -3
  10. package/agnostic/html/hyper-json/smart-tags/isolated/index.js +3 -3
  11. package/agnostic/html/index.d.ts +1 -1
  12. package/agnostic/html/index.js +1 -1
  13. package/agnostic/index.d.ts +1 -1
  14. package/agnostic/index.js +1 -1
  15. package/agnostic/misc/crossenv/index.d.ts +1 -1
  16. package/agnostic/misc/crossenv/index.js +1 -1
  17. package/agnostic/misc/index.d.ts +1 -1
  18. package/agnostic/misc/index.js +1 -1
  19. package/agnostic/misc/logs/index.d.ts +1 -1
  20. package/agnostic/misc/logs/index.js +1 -1
  21. package/agnostic/numbers/index.d.ts +1 -1
  22. package/agnostic/numbers/index.js +1 -1
  23. package/agnostic/objects/index.d.ts +4 -4
  24. package/agnostic/objects/index.js +4 -4
  25. package/agnostic/optim/index.d.ts +1 -1
  26. package/agnostic/optim/index.js +1 -1
  27. package/agnostic/sanitization/index.d.ts +2 -2
  28. package/agnostic/sanitization/index.js +2 -2
  29. package/agnostic/strings/index.d.ts +1 -1
  30. package/agnostic/strings/index.js +1 -1
  31. package/agnostic/time/index.d.ts +1 -1
  32. package/agnostic/time/index.js +1 -1
  33. package/components/Scrllgngn/index.d.ts +10 -1
  34. package/components/Scrllgngn/index.js +7 -4
  35. package/components/index.d.ts +2 -2
  36. package/components/index.js +2 -2
  37. package/index.d.ts +1 -1
  38. package/index.js +1 -1
  39. package/node/@aws-s3/storage/directory/index.d.ts +1 -1
  40. package/node/@aws-s3/storage/directory/index.js +1 -1
  41. package/node/@google-cloud/storage/directory/index.d.ts +1 -1
  42. package/node/@google-cloud/storage/directory/index.js +1 -1
  43. package/node/@google-cloud/storage/file/index.d.ts +1 -1
  44. package/node/@google-cloud/storage/file/index.js +1 -1
  45. package/node/@google-cloud/storage/index.d.ts +1 -1
  46. package/node/@google-cloud/storage/index.js +1 -1
  47. package/node/cloud-storage/operations/index.d.ts +3 -3
  48. package/node/cloud-storage/operations/index.js +3 -3
  49. package/node/files/index.d.ts +1 -1
  50. package/node/files/index.js +1 -1
  51. package/node/images/index.d.ts +1 -1
  52. package/node/images/index.js +1 -1
  53. package/node/sftp/directory/index.d.ts +1 -1
  54. package/node/sftp/directory/index.js +1 -1
  55. 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'
@@ -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 convert from './convert/index.js'
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'
@@ -1,11 +1,11 @@
1
- export * as channels from './channels/index.js'
2
1
  export * as contrast from './contrast/index.js'
3
- export * as convert from './convert/index.js'
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'
@@ -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,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 initialize from './initialize/index.js'
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 replace from './replace/index.js'
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 tonumber from './tonumber/index.js'
45
+ export * as toarray from './toarray/index.js'
47
46
  export * as torecord from './torecord/index.js'
48
- export * as tostring from './tostring/index.js'
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 initialize from './initialize/index.js'
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 replace from './replace/index.js'
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 tonumber from './tonumber/index.js'
45
+ export * as toarray from './toarray/index.js'
47
46
  export * as torecord from './torecord/index.js'
48
- export * as tostring from './tostring/index.js'
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'
@@ -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'
@@ -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'
@@ -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'
@@ -1,2 +1,2 @@
1
- export * as window from './window/index.js'
2
1
  export * as detectRuntime from './detect-runtime/index.js'
2
+ export * as window from './window/index.js'
@@ -1,2 +1,2 @@
1
- export * as window from './window/index.js'
2
1
  export * as detectRuntime from './detect-runtime/index.js'
2
+ export * as window from './window/index.js'
@@ -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'
@@ -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,3 +1,3 @@
1
1
  export * as logger from './logger/index.js'
2
- export * as styles from './styles/index.js'
3
2
  export * as makeTextBlock from './make-text-block/index.js'
3
+ export * as styles from './styles/index.js'
@@ -1,3 +1,3 @@
1
1
  export * as logger from './logger/index.js'
2
- export * as styles from './styles/index.js'
3
2
  export * as makeTextBlock from './make-text-block/index.js'
3
+ export * as styles from './styles/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 deepGetProperty from './deep-get-property/index.js'
1
+ export * as enums from './enums/index.js'
2
2
  export * as flattenGetters from './flatten-getters/index.js'
3
- export * as isRecord from './is-record/index.js'
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 enums from './enums/index.js'
9
+ export * as recordMap from './record-map/index.js'
@@ -1,9 +1,9 @@
1
- export * as deepGetProperty from './deep-get-property/index.js'
1
+ export * as enums from './enums/index.js'
2
2
  export * as flattenGetters from './flatten-getters/index.js'
3
- export * as isRecord from './is-record/index.js'
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 enums from './enums/index.js'
9
+ export * as recordMap from './record-map/index.js'
@@ -1,2 +1,2 @@
1
- export * as throttleDebounce from './throttle-debounce/index.js'
2
1
  export * as memoize from './memoize/index.js'
2
+ export * as throttleDebounce from './throttle-debounce/index.js'
@@ -1,2 +1,2 @@
1
- export * as throttleDebounce from './throttle-debounce/index.js'
2
1
  export * as memoize from './memoize/index.js'
2
+ export * as throttleDebounce from './throttle-debounce/index.js'
@@ -1,4 +1,4 @@
1
- export * as html from './html/index.js'
2
- export * as path from './path/index.js'
3
1
  export * as fileName from './file-name/index.js'
2
+ export * as path from './path/index.js'
3
+ export * as html from './html/index.js'
4
4
  export * as userInput from './user-input/index.js'
@@ -1,4 +1,4 @@
1
- export * as html from './html/index.js'
2
- export * as path from './path/index.js'
3
1
  export * as fileName from './file-name/index.js'
2
+ export * as path from './path/index.js'
3
+ export * as html from './html/index.js'
4
4
  export * as userInput from './user-input/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'
@@ -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'
@@ -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'
@@ -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 className - Optional additional class name(s) applied to the root element.
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 = pages => {
117
- const curPagePos = pages.findIndex(page => page.position === 'curr');
116
+ const handlePageChange = statePages => {
117
+ const curPagePos = statePages.findIndex(page => page.position === 'curr');
118
118
  if (curPagePos === -1)
119
119
  return;
120
- return setCurrentPagePos(curPagePos);
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
@@ -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'
@@ -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
@@ -1,3 +1,3 @@
1
- export * as agnostic from './agnostic/index.js'
2
1
  export * as components from './components/index.js'
2
+ export * as agnostic from './agnostic/index.js'
3
3
  export * as node from './node/index.js'
package/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * as agnostic from './agnostic/index.js'
2
1
  export * as components from './components/index.js'
2
+ export * as agnostic from './agnostic/index.js'
3
3
  export * as node from './node/index.js'
@@ -1,4 +1,4 @@
1
1
  export * as copyDir from './copy-dir/index.js'
2
- export * as moveDir from './move-dir/index.js'
3
2
  export * as list from './list/index.js'
3
+ export * as moveDir from './move-dir/index.js'
4
4
  export * as removeDir from './remove-dir/index.js'
@@ -1,4 +1,4 @@
1
1
  export * as copyDir from './copy-dir/index.js'
2
- export * as moveDir from './move-dir/index.js'
3
2
  export * as list from './list/index.js'
3
+ export * as moveDir from './move-dir/index.js'
4
4
  export * as removeDir from './remove-dir/index.js'
@@ -1,4 +1,4 @@
1
1
  export * as copyDir from './copy-dir/index.js'
2
- export * as moveDir from './move-dir/index.js'
3
2
  export * as list from './list/index.js'
3
+ export * as moveDir from './move-dir/index.js'
4
4
  export * as removeDir from './remove-dir/index.js'
@@ -1,4 +1,4 @@
1
1
  export * as copyDir from './copy-dir/index.js'
2
- export * as moveDir from './move-dir/index.js'
3
2
  export * as list from './list/index.js'
3
+ export * as moveDir from './move-dir/index.js'
4
4
  export * as removeDir from './remove-dir/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'
@@ -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,3 +1,3 @@
1
1
  export * as bucket from './bucket/index.js'
2
- export * as directory from './directory/index.js'
3
2
  export * as file from './file/index.js'
3
+ export * as directory from './directory/index.js'
@@ -1,3 +1,3 @@
1
1
  export * as bucket from './bucket/index.js'
2
- export * as directory from './directory/index.js'
3
2
  export * as file from './file/index.js'
3
+ export * as directory from './directory/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'
@@ -1,3 +1,3 @@
1
1
  export * as isInDirectory from './is-in-directory/index.js'
2
- export * as readWrite from './read-write/index.js'
3
2
  export * as subpaths from './subpaths/index.js'
3
+ export * as readWrite from './read-write/index.js'
@@ -1,3 +1,3 @@
1
1
  export * as isInDirectory from './is-in-directory/index.js'
2
- export * as readWrite from './read-write/index.js'
3
2
  export * as subpaths from './subpaths/index.js'
3
+ export * as readWrite from './read-write/index.js'
@@ -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'
@@ -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'
@@ -1,4 +1,4 @@
1
- export * as list from './list/index.js'
2
1
  export * as copyDir from './copy-dir/index.js'
2
+ export * as list from './list/index.js'
3
3
  export * as moveDir from './move-dir/index.js'
4
4
  export * as removeDir from './remove-dir/index.js'
@@ -1,4 +1,4 @@
1
- export * as list from './list/index.js'
2
1
  export * as copyDir from './copy-dir/index.js'
2
+ export * as list from './list/index.js'
3
3
  export * as moveDir from './move-dir/index.js'
4
4
  export * as removeDir from './remove-dir/index.js'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design-edito/tools",
3
- "version": "0.4.14",
3
+ "version": "0.4.15",
4
4
  "description": "",
5
5
  "author": "Maxime Fabas",
6
6
  "license": "ISC",