@design-edito/tools 0.5.1 → 0.5.2

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 (70) 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 +1 -1
  4. package/agnostic/colors/index.js +1 -1
  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 +12 -12
  8. package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +12 -12
  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 +3 -3
  12. package/agnostic/html/index.js +3 -3
  13. package/agnostic/index.d.ts +3 -3
  14. package/agnostic/index.js +3 -3
  15. package/agnostic/misc/index.d.ts +4 -4
  16. package/agnostic/misc/index.js +4 -4
  17. package/agnostic/misc/logs/index.d.ts +1 -1
  18. package/agnostic/misc/logs/index.js +1 -1
  19. package/agnostic/numbers/index.d.ts +2 -2
  20. package/agnostic/numbers/index.js +2 -2
  21. package/agnostic/objects/index.d.ts +3 -3
  22. package/agnostic/objects/index.js +3 -3
  23. package/agnostic/optim/index.d.ts +1 -1
  24. package/agnostic/optim/index.js +1 -1
  25. package/agnostic/random/index.d.ts +1 -1
  26. package/agnostic/random/index.js +1 -1
  27. package/agnostic/strings/index.d.ts +3 -3
  28. package/agnostic/strings/index.js +3 -3
  29. package/agnostic/time/index.d.ts +1 -1
  30. package/agnostic/time/index.js +1 -1
  31. package/components/Input/index.controlled.d.ts +1 -1
  32. package/components/JsonEditor/index.js +16 -14
  33. package/components/ListLoader/index.controlled.d.ts +78 -0
  34. package/components/ListLoader/index.controlled.js +99 -0
  35. package/components/ListLoader/index.d.ts +69 -0
  36. package/components/ListLoader/index.js +146 -0
  37. package/components/ListLoader/styles.module.css +0 -0
  38. package/components/ListLoader/utils.d.ts +8 -0
  39. package/components/ListLoader/utils.js +10 -0
  40. package/components/index.d.ts +5 -4
  41. package/components/index.js +5 -4
  42. package/components/public-classnames.d.ts +1 -0
  43. package/components/public-classnames.js +1 -0
  44. package/index.d.ts +1 -1
  45. package/index.js +1 -1
  46. package/node/@aws-s3/storage/file/index.d.ts +1 -1
  47. package/node/@aws-s3/storage/file/index.js +1 -1
  48. package/node/@google-cloud/storage/directory/index.d.ts +2 -2
  49. package/node/@google-cloud/storage/directory/index.js +2 -2
  50. package/node/@google-cloud/storage/file/index.d.ts +2 -2
  51. package/node/@google-cloud/storage/file/index.js +2 -2
  52. package/node/cloud-storage/operations/index.d.ts +2 -2
  53. package/node/cloud-storage/operations/index.js +2 -2
  54. package/node/ftps/directory/index.d.ts +1 -1
  55. package/node/ftps/directory/index.js +1 -1
  56. package/node/ftps/file/index.d.ts +2 -2
  57. package/node/ftps/file/index.js +2 -2
  58. package/node/images/index.d.ts +2 -2
  59. package/node/images/index.js +2 -2
  60. package/node/images/transform/operations/index.d.ts +4 -4
  61. package/node/images/transform/operations/index.js +4 -4
  62. package/node/index.d.ts +3 -3
  63. package/node/index.js +3 -3
  64. package/node/process/index.d.ts +1 -1
  65. package/node/process/index.js +1 -1
  66. package/node/sftp/directory/index.d.ts +1 -1
  67. package/node/sftp/directory/index.js +1 -1
  68. package/node/sftp/file/index.d.ts +1 -1
  69. package/node/sftp/file/index.js +1 -1
  70. package/package.json +8 -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
3
  export * as isArrayOf from './is-array-of/index.js'
4
- export * as randomPick from './random-pick/index.js'
5
4
  export * as make from './make/index.js'
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
3
  export * as isArrayOf from './is-array-of/index.js'
4
- export * as randomPick from './random-pick/index.js'
5
4
  export * as make from './make/index.js'
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 channels from './channels/index.js'
2
- export * as convert from './convert/index.js'
3
2
  export * as contrast from './contrast/index.js'
3
+ export * as convert from './convert/index.js'
4
4
  export * as distance from './distance/index.js'
5
5
  export * as grayscale from './grayscale/index.js'
6
6
  export * as invert from './invert/index.js'
@@ -1,6 +1,6 @@
1
1
  export * as channels from './channels/index.js'
2
- export * as convert from './convert/index.js'
3
2
  export * as contrast from './contrast/index.js'
3
+ export * as convert from './convert/index.js'
4
4
  export * as distance from './distance/index.js'
5
5
  export * as grayscale from './grayscale/index.js'
6
6
  export * as invert from './invert/index.js'
@@ -1,6 +1,6 @@
1
- export * as isValidCssClassName from './is-valid-css-class-name/index.js'
2
1
  export * as bem from './bem/index.js'
3
2
  export * as clss from './clss/index.js'
4
3
  export * as generateNiceColor from './generate-nice-color/index.js'
4
+ export * as isValidCssClassName from './is-valid-css-class-name/index.js'
5
5
  export * as scale from './scale/index.js'
6
6
  export * as stylesSet from './styles-set/index.js'
@@ -1,6 +1,6 @@
1
- export * as isValidCssClassName from './is-valid-css-class-name/index.js'
2
1
  export * as bem from './bem/index.js'
3
2
  export * as clss from './clss/index.js'
4
3
  export * as generateNiceColor from './generate-nice-color/index.js'
4
+ export * as isValidCssClassName from './is-valid-css-class-name/index.js'
5
5
  export * as scale from './scale/index.js'
6
6
  export * as stylesSet from './styles-set/index.js'
@@ -1,17 +1,18 @@
1
1
  export * as add from './add/index.js'
2
2
  export * as addclass from './addclass/index.js'
3
3
  export * as and from './and/index.js'
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
- export * as append from './append/index.js'
7
7
  export * as clone from './clone/index.js'
8
- export * as deleteproperties from './deleteproperties/index.js'
9
8
  export * as equals from './equals/index.js'
10
- export * as getproperties from './getproperties/index.js'
9
+ export * as deleteproperties from './deleteproperties/index.js'
11
10
  export * as getattribute from './getattribute/index.js'
11
+ export * as getproperties from './getproperties/index.js'
12
12
  export * as getproperty from './getproperty/index.js'
13
13
  export * as hjstringify from './hjstringify/index.js'
14
14
  export * as hjparse from './hjparse/index.js'
15
+ export * as if from './if/index.js'
15
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'
@@ -20,33 +21,32 @@ 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
23
  export * as pickrandom from './pickrandom/index.js'
23
- export * as if from './if/index.js'
24
24
  export * as populate from './populate/index.js'
25
25
  export * as print from './print/index.js'
26
26
  export * as push from './push/index.js'
27
27
  export * as pusheach from './pusheach/index.js'
28
28
  export * as recordtoarray from './recordtoarray/index.js'
29
- export * as removeattribute from './removeattribute/index.js'
30
29
  export * as removeclass from './removeclass/index.js'
30
+ export * as removeattribute from './removeattribute/index.js'
31
31
  export * as renameproperty from './renameproperty/index.js'
32
32
  export * as replace from './replace/index.js'
33
+ export * as set from './set/index.js'
34
+ export * as select from './select/index.js'
33
35
  export * as setattribute from './setattribute/index.js'
34
- export * as setproperty from './setproperty/index.js'
35
36
  export * as sorton from './sorton/index.js'
36
37
  export * as split from './split/index.js'
37
38
  export * as spread from './spread/index.js'
38
- export * as set from './set/index.js'
39
39
  export * as toarray from './toarray/index.js'
40
- export * as toboolean from './toboolean/index.js'
41
- export * as select from './select/index.js'
42
40
  export * as toelement from './toelement/index.js'
43
- export * as tonumber from './tonumber/index.js'
41
+ export * as setproperty from './setproperty/index.js'
42
+ export * as toggleclass from './toggleclass/index.js'
44
43
  export * as tonodelist from './tonodelist/index.js'
45
44
  export * as tonull from './tonull/index.js'
46
- export * as toggleclass from './toggleclass/index.js'
45
+ export * as toboolean from './toboolean/index.js'
47
46
  export * as toref from './toref/index.js'
47
+ export * as torecord from './torecord/index.js'
48
48
  export * as tostring from './tostring/index.js'
49
49
  export * as totext from './totext/index.js'
50
50
  export * as transformselected from './transformselected/index.js'
51
51
  export * as trim from './trim/index.js'
52
- export * as torecord from './torecord/index.js'
52
+ export * as tonumber from './tonumber/index.js'
@@ -1,17 +1,18 @@
1
1
  export * as add from './add/index.js'
2
2
  export * as addclass from './addclass/index.js'
3
3
  export * as and from './and/index.js'
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
- export * as append from './append/index.js'
7
7
  export * as clone from './clone/index.js'
8
- export * as deleteproperties from './deleteproperties/index.js'
9
8
  export * as equals from './equals/index.js'
10
- export * as getproperties from './getproperties/index.js'
9
+ export * as deleteproperties from './deleteproperties/index.js'
11
10
  export * as getattribute from './getattribute/index.js'
11
+ export * as getproperties from './getproperties/index.js'
12
12
  export * as getproperty from './getproperty/index.js'
13
13
  export * as hjstringify from './hjstringify/index.js'
14
14
  export * as hjparse from './hjparse/index.js'
15
+ export * as if from './if/index.js'
15
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'
@@ -20,33 +21,32 @@ 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
23
  export * as pickrandom from './pickrandom/index.js'
23
- export * as if from './if/index.js'
24
24
  export * as populate from './populate/index.js'
25
25
  export * as print from './print/index.js'
26
26
  export * as push from './push/index.js'
27
27
  export * as pusheach from './pusheach/index.js'
28
28
  export * as recordtoarray from './recordtoarray/index.js'
29
- export * as removeattribute from './removeattribute/index.js'
30
29
  export * as removeclass from './removeclass/index.js'
30
+ export * as removeattribute from './removeattribute/index.js'
31
31
  export * as renameproperty from './renameproperty/index.js'
32
32
  export * as replace from './replace/index.js'
33
+ export * as set from './set/index.js'
34
+ export * as select from './select/index.js'
33
35
  export * as setattribute from './setattribute/index.js'
34
- export * as setproperty from './setproperty/index.js'
35
36
  export * as sorton from './sorton/index.js'
36
37
  export * as split from './split/index.js'
37
38
  export * as spread from './spread/index.js'
38
- export * as set from './set/index.js'
39
39
  export * as toarray from './toarray/index.js'
40
- export * as toboolean from './toboolean/index.js'
41
- export * as select from './select/index.js'
42
40
  export * as toelement from './toelement/index.js'
43
- export * as tonumber from './tonumber/index.js'
41
+ export * as setproperty from './setproperty/index.js'
42
+ export * as toggleclass from './toggleclass/index.js'
44
43
  export * as tonodelist from './tonodelist/index.js'
45
44
  export * as tonull from './tonull/index.js'
46
- export * as toggleclass from './toggleclass/index.js'
45
+ export * as toboolean from './toboolean/index.js'
47
46
  export * as toref from './toref/index.js'
47
+ export * as torecord from './torecord/index.js'
48
48
  export * as tostring from './tostring/index.js'
49
49
  export * as totext from './totext/index.js'
50
50
  export * as transformselected from './transformselected/index.js'
51
51
  export * as trim from './trim/index.js'
52
- export * as torecord from './torecord/index.js'
52
+ export * as tonumber from './tonumber/index.js'
@@ -1,13 +1,13 @@
1
1
  export * as any from './any/index.js'
2
- export * as array from './array/index.js'
3
2
  export * as boolean from './boolean/index.js'
4
3
  export * as element from './element/index.js'
5
4
  export * as get from './get/index.js'
6
- export * as nodelist from './nodelist/index.js'
7
5
  export * as guess from './guess/index.js'
6
+ export * as nodelist from './nodelist/index.js'
8
7
  export * as null from './null/index.js'
9
8
  export * as number from './number/index.js'
10
9
  export * as record from './record/index.js'
11
10
  export * as ref from './ref/index.js'
12
- export * as string from './string/index.js'
13
11
  export * as text from './text/index.js'
12
+ export * as string from './string/index.js'
13
+ export * as array from './array/index.js'
@@ -1,13 +1,13 @@
1
1
  export * as any from './any/index.js'
2
- export * as array from './array/index.js'
3
2
  export * as boolean from './boolean/index.js'
4
3
  export * as element from './element/index.js'
5
4
  export * as get from './get/index.js'
6
- export * as nodelist from './nodelist/index.js'
7
5
  export * as guess from './guess/index.js'
6
+ export * as nodelist from './nodelist/index.js'
8
7
  export * as null from './null/index.js'
9
8
  export * as number from './number/index.js'
10
9
  export * as record from './record/index.js'
11
10
  export * as ref from './ref/index.js'
12
- export * as string from './string/index.js'
13
11
  export * as text from './text/index.js'
12
+ export * as string from './string/index.js'
13
+ export * as array from './array/index.js'
@@ -1,10 +1,10 @@
1
- export * as getNodeAncestors from './get-node-ancestors/index.js'
2
1
  export * as deepSelect from './deep-select/index.js'
2
+ export * as getNodeAncestors from './get-node-ancestors/index.js'
3
3
  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
- export * as replaceInElement from './replace-in-element/index.js'
7
6
  export * as placeholders from './placeholders/index.js'
8
- export * as stringToNodes from './string-to-nodes/index.js'
7
+ export * as replaceInElement from './replace-in-element/index.js'
9
8
  export * as selectorToElement from './selector-to-element/index.js'
10
9
  export * as watchSelection from './watch-selection/index.js'
10
+ export * as stringToNodes from './string-to-nodes/index.js'
@@ -1,10 +1,10 @@
1
- export * as getNodeAncestors from './get-node-ancestors/index.js'
2
1
  export * as deepSelect from './deep-select/index.js'
2
+ export * as getNodeAncestors from './get-node-ancestors/index.js'
3
3
  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
- export * as replaceInElement from './replace-in-element/index.js'
7
6
  export * as placeholders from './placeholders/index.js'
8
- export * as stringToNodes from './string-to-nodes/index.js'
7
+ export * as replaceInElement from './replace-in-element/index.js'
9
8
  export * as selectorToElement from './selector-to-element/index.js'
10
9
  export * as watchSelection from './watch-selection/index.js'
10
+ export * as stringToNodes from './string-to-nodes/index.js'
@@ -1,16 +1,16 @@
1
+ export * as arrays from './arrays/index.js'
1
2
  export * as booleans from './booleans/index.js'
2
3
  export * as colors from './colors/index.js'
3
- export * as arrays from './arrays/index.js'
4
4
  export * as css from './css/index.js'
5
5
  export * as errors from './errors/index.js'
6
- export * as misc from './misc/index.js'
7
6
  export * as html from './html/index.js'
7
+ 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
11
  export * as random from './random/index.js'
12
+ export * as regexps from './regexps/index.js'
12
13
  export * as sanitization from './sanitization/index.js'
13
14
  export * as strings from './strings/index.js'
14
- export * as regexps from './regexps/index.js'
15
15
  export * as time from './time/index.js'
16
16
  export * as typescript from './typescript/index.js'
package/agnostic/index.js CHANGED
@@ -1,16 +1,16 @@
1
+ export * as arrays from './arrays/index.js'
1
2
  export * as booleans from './booleans/index.js'
2
3
  export * as colors from './colors/index.js'
3
- export * as arrays from './arrays/index.js'
4
4
  export * as css from './css/index.js'
5
5
  export * as errors from './errors/index.js'
6
- export * as misc from './misc/index.js'
7
6
  export * as html from './html/index.js'
7
+ 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
11
  export * as random from './random/index.js'
12
+ export * as regexps from './regexps/index.js'
12
13
  export * as sanitization from './sanitization/index.js'
13
14
  export * as strings from './strings/index.js'
14
- export * as regexps from './regexps/index.js'
15
15
  export * as time from './time/index.js'
16
16
  export * as typescript from './typescript/index.js'
@@ -1,12 +1,12 @@
1
1
  export * as assert from './assert/index.js'
2
- export * as cast from './cast/index.js'
3
2
  export * as connection from './connection/index.js'
3
+ export * as cast from './cast/index.js'
4
4
  export * as crawler from './crawler/index.js'
5
5
  export * as crossenv from './crossenv/index.js'
6
- export * as dataSize from './data-size/index.js'
7
- export * as isConstructorFunction from './is-constructor-function/index.js'
8
6
  export * as isNullish from './is-nullish/index.js'
9
- export * as outcome from './outcome/index.js'
10
7
  export * as logs from './logs/index.js'
11
8
  export * as loremIpsum from './lorem-ipsum/index.js'
12
9
  export * as normalizeExtension from './normalize-extension/index.js'
10
+ export * as outcome from './outcome/index.js'
11
+ export * as dataSize from './data-size/index.js'
12
+ export * as isConstructorFunction from './is-constructor-function/index.js'
@@ -1,12 +1,12 @@
1
1
  export * as assert from './assert/index.js'
2
- export * as cast from './cast/index.js'
3
2
  export * as connection from './connection/index.js'
3
+ export * as cast from './cast/index.js'
4
4
  export * as crawler from './crawler/index.js'
5
5
  export * as crossenv from './crossenv/index.js'
6
- export * as dataSize from './data-size/index.js'
7
- export * as isConstructorFunction from './is-constructor-function/index.js'
8
6
  export * as isNullish from './is-nullish/index.js'
9
- export * as outcome from './outcome/index.js'
10
7
  export * as logs from './logs/index.js'
11
8
  export * as loremIpsum from './lorem-ipsum/index.js'
12
9
  export * as normalizeExtension from './normalize-extension/index.js'
10
+ export * as outcome from './outcome/index.js'
11
+ export * as dataSize from './data-size/index.js'
12
+ export * as isConstructorFunction from './is-constructor-function/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,6 +1,6 @@
1
- export * as clamp from './clamp/index.js'
2
- export * as approximateRational from './approximate-rational/index.js'
3
1
  export * as absoluteModulo from './absolute-modulo/index.js'
2
+ export * as approximateRational from './approximate-rational/index.js'
3
+ export * as clamp from './clamp/index.js'
4
4
  export * as geometricProgressions from './geometric-progressions/index.js'
5
5
  export * as round from './round/index.js'
6
6
  export * as interpolate from './interpolate/index.js'
@@ -1,6 +1,6 @@
1
- export * as clamp from './clamp/index.js'
2
- export * as approximateRational from './approximate-rational/index.js'
3
1
  export * as absoluteModulo from './absolute-modulo/index.js'
2
+ export * as approximateRational from './approximate-rational/index.js'
3
+ export * as clamp from './clamp/index.js'
4
4
  export * as geometricProgressions from './geometric-progressions/index.js'
5
5
  export * as round from './round/index.js'
6
6
  export * as interpolate from './interpolate/index.js'
@@ -1,9 +1,9 @@
1
- export * as enums from './enums/index.js'
2
1
  export * as deepGetProperty from './deep-get-property/index.js'
2
+ export * as enums from './enums/index.js'
3
3
  export * as flattenGetters from './flatten-getters/index.js'
4
- export * as isRecord from './is-record/index.js'
5
4
  export * as isObject from './is-object/index.js'
6
- export * as recordMap from './record-map/index.js'
5
+ export * as isRecord from './is-record/index.js'
7
6
  export * as recordFormat from './record-format/index.js'
7
+ export * as recordMap from './record-map/index.js'
8
8
  export * as sortKeys from './sort-keys/index.js'
9
9
  export * as validation from './validation/index.js'
@@ -1,9 +1,9 @@
1
- export * as enums from './enums/index.js'
2
1
  export * as deepGetProperty from './deep-get-property/index.js'
2
+ export * as enums from './enums/index.js'
3
3
  export * as flattenGetters from './flatten-getters/index.js'
4
- export * as isRecord from './is-record/index.js'
5
4
  export * as isObject from './is-object/index.js'
6
- export * as recordMap from './record-map/index.js'
5
+ export * as isRecord from './is-record/index.js'
7
6
  export * as recordFormat from './record-format/index.js'
7
+ export * as recordMap from './record-map/index.js'
8
8
  export * as sortKeys from './sort-keys/index.js'
9
9
  export * as validation from './validation/index.js'
@@ -1,2 +1,2 @@
1
- export * as memoize from './memoize/index.js'
2
1
  export * as throttleDebounce from './throttle-debounce/index.js'
2
+ export * as memoize from './memoize/index.js'
@@ -1,2 +1,2 @@
1
- export * as memoize from './memoize/index.js'
2
1
  export * as throttleDebounce from './throttle-debounce/index.js'
2
+ export * as memoize from './memoize/index.js'
@@ -1,3 +1,3 @@
1
+ export * as hexChar from './hex-char/index.js'
1
2
  export * as random from './random/index.js'
2
3
  export * as uuid from './uuid/index.js'
3
- export * as hexChar from './hex-char/index.js'
@@ -1,3 +1,3 @@
1
+ export * as hexChar from './hex-char/index.js'
1
2
  export * as random from './random/index.js'
2
3
  export * as uuid from './uuid/index.js'
3
- export * as hexChar from './hex-char/index.js'
@@ -1,8 +1,8 @@
1
- export * as matches from './matches/index.js'
2
1
  export * as charCodes from './char-codes/index.js'
3
- export * as splitTrim from './split-trim/index.js'
2
+ export * as matches from './matches/index.js'
3
+ 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 toAlphanum from './to-alphanum/index.js'
7
- export * as normalizeIndent from './normalize-indent/index.js'
7
+ export * as splitTrim from './split-trim/index.js'
8
8
  export * as trim from './trim/index.js'
@@ -1,8 +1,8 @@
1
- export * as matches from './matches/index.js'
2
1
  export * as charCodes from './char-codes/index.js'
3
- export * as splitTrim from './split-trim/index.js'
2
+ export * as matches from './matches/index.js'
3
+ 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 toAlphanum from './to-alphanum/index.js'
7
- export * as normalizeIndent from './normalize-indent/index.js'
7
+ export * as splitTrim from './split-trim/index.js'
8
8
  export * as trim from './trim/index.js'
@@ -1,5 +1,5 @@
1
1
  export * as dates from './dates/index.js'
2
- export * as duration from './duration/index.js'
3
2
  export * as timeout from './timeout/index.js'
3
+ export * as duration from './duration/index.js'
4
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
- export * as duration from './duration/index.js'
3
2
  export * as timeout from './timeout/index.js'
3
+ export * as duration from './duration/index.js'
4
4
  export * as transitions from './transitions/index.js'
5
5
  export * as wait from './wait/index.js'
@@ -1,7 +1,7 @@
1
1
  import { type FunctionComponent, type InputHTMLAttributes, type ReactNode } from 'react';
2
2
  import type { WithClassName } from '../utils/types.js';
3
3
  /**
4
- * Props for the {@link Input} component.
4
+ * Props for the {@link ControlledInput} component.
5
5
  *
6
6
  * Extends all native {@link InputHTMLAttributes} and {@link WithClassName}
7
7
  * with optional label and error content.
@@ -60,11 +60,19 @@ export const JsonEditor = ({ defaultValue = null, onChange, onValidationError, s
60
60
  const rootClss = mergeClassNames(c(null, {}), className);
61
61
  return _jsxs("div", { className: rootClss, children: [_jsx(ValueEditor, { defaultValue: defaultValue, onChange: val => setValueAndDispatch(val), path: [] }), _jsx("pre", { children: JSON.stringify(value, null, 2) })] });
62
62
  };
63
- /* * * * * * * * * * * * * * * * *
64
- *
65
- * Value
66
- *
67
- * * * * * * * * * * * * * * * * */
63
+ function getValueType(value) {
64
+ if (value === null)
65
+ return 'null';
66
+ if (Array.isArray(value))
67
+ return 'array';
68
+ if (isNonNullObject(value))
69
+ return 'record';
70
+ if (typeof value === 'string')
71
+ return 'string';
72
+ if (typeof value === 'number')
73
+ return 'number';
74
+ return 'boolean';
75
+ }
68
76
  export const ValueEditor = ({ defaultValue = {}, onChange, path = [] }) => {
69
77
  // State
70
78
  const [value, setValue] = useState(defaultValue);
@@ -94,16 +102,10 @@ export const ValueEditor = ({ defaultValue = {}, onChange, path = [] }) => {
94
102
  const handleRecordValueChange = e => setValueAndDispatch(e);
95
103
  const handleArrayValueChange = e => setValueAndDispatch(e);
96
104
  // Rendering
97
- const valueEditorClss = c('value', {
98
- string: typeof value === 'string',
99
- number: typeof value === 'number',
100
- boolean: typeof value === 'boolean',
101
- null: value === null,
102
- array: Array.isArray(value),
103
- record: !Array.isArray(value) && isNonNullObject(value)
104
- });
105
+ const valueType = getValueType(value);
106
+ const valueEditorClss = c('value', valueType);
105
107
  const pathStringDataAttr = path.map(e => e.toString()).join('.');
106
- return _jsxs("span", { className: valueEditorClss, "data-path": pathStringDataAttr, children: [_jsxs(Select, { className: c('type'), onChange: handleTypeSelectChange, children: [_jsx("option", { value: 'string', selected: typeof value === 'string', children: "string" }), _jsx("option", { value: 'number', selected: typeof value === 'number', children: "number" }), _jsx("option", { value: 'boolean', selected: typeof value === 'boolean', children: "boolean" }), _jsx("option", { value: 'null', selected: value === null, children: "null" }), _jsx("option", { value: 'record', selected: isNonNullObject(value) && !Array.isArray(value), children: "record" }), _jsx("option", { value: 'array', selected: Array.isArray(value), children: "array" })] }), typeof value === 'string' && _jsx(StringEditor, { type: 'textarea', defaultValue: value, onChange: handleStringValueChange }), typeof value === 'number' && _jsx(NumberEditor, { defaultValue: value, onChange: handleNumberValueChange }), typeof value === 'boolean' && _jsx(BooleanEditor, { defaultValue: value, onChange: handleBooleanValueChange }), value === null && _jsx(NullEditor, { defaultValue: value }), isNonNullObject(value) && !Array.isArray(value) && _jsx(RecordEditor, { defaultValue: value, onChange: handleRecordValueChange, path: path }), Array.isArray(value) && _jsx(ArrayEditor, { defaultValue: value, onChange: handleArrayValueChange, path: path })] });
108
+ return _jsxs("span", { className: valueEditorClss, "data-path": pathStringDataAttr, children: [_jsxs(Select, { className: c('type'), value: valueType, onChange: handleTypeSelectChange, children: [_jsx("option", { value: 'string', children: "string" }), _jsx("option", { value: 'number', children: "number" }), _jsx("option", { value: 'boolean', children: "boolean" }), _jsx("option", { value: 'null', children: "null" }), _jsx("option", { value: 'record', children: "record" }), _jsx("option", { value: 'array', children: "array" })] }), typeof value === 'string' && _jsx(StringEditor, { type: 'textarea', defaultValue: value, onChange: handleStringValueChange }), typeof value === 'number' && _jsx(NumberEditor, { defaultValue: value, onChange: handleNumberValueChange }), typeof value === 'boolean' && _jsx(BooleanEditor, { defaultValue: value, onChange: handleBooleanValueChange }), value === null && _jsx(NullEditor, { defaultValue: value }), isNonNullObject(value) && !Array.isArray(value) && _jsx(RecordEditor, { defaultValue: value, onChange: handleRecordValueChange, path: path }), Array.isArray(value) && _jsx(ArrayEditor, { defaultValue: value, onChange: handleArrayValueChange, path: path })] });
107
109
  };
108
110
  /* * * * * * * * * * * * * * * * *
109
111
  *
@@ -0,0 +1,78 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { WithClassName } from '../utils/types.js';
3
+ /**
4
+ * Props for the {@link ListLoaderControlled} component.
5
+ *
6
+ * @template T - The item type carried by each page.
7
+ *
8
+ * @property pages - Page positions the consumer wants rendered. Entries outside
9
+ * `firstPagePos`–`lastPagePos` are ignored, as are entries absent from `itemsPages`.
10
+ * @property firstPagePos - Lowest page position that exists. No load button is
11
+ * ever rendered below it.
12
+ * @property lastPagePos - Highest page position that exists. No load button is
13
+ * ever rendered above it.
14
+ * @property itemsPages - Already-loaded items, keyed by page position. The
15
+ * component holds no data of its own and renders only what this map contains.
16
+ * @property filter - Decides whether an item is rendered. Applied before deduplication.
17
+ * @property display - Renders a single item.
18
+ * @property getIdentifier - Item identity, used as React key and to deduplicate.
19
+ * When two rendered items share an identifier, only the later one in page order
20
+ * survives. Returning `undefined` opts an item out of deduplication, and falls
21
+ * back to a positional key.
22
+ * @property loadingPages - Page positions currently being fetched. Exposed on the
23
+ * root element as `data-loading-pages`.
24
+ * @property onLoadPageClick - Called with the page position a load button targets,
25
+ * either on click or on viewport entry when auto-loading is enabled.
26
+ * @property autoLoadPrevWhenVisible - Wraps the leading load button in an
27
+ * {@link IntersectionObserverComponent} and fires `onLoadPageClick` when it enters the viewport.
28
+ * @property autoLoadNextWhenVisible - Same, for the trailing load button.
29
+ * @property className - Additional class name(s) applied to the root element.
30
+ */
31
+ export type Props<T> = WithClassName<{
32
+ pages: number[];
33
+ firstPagePos: number;
34
+ lastPagePos: number;
35
+ itemsPages: Map<number, T[]>;
36
+ filter: (item: T) => boolean;
37
+ display: (item: T) => ReactNode;
38
+ getIdentifier?: (item: T) => string | undefined;
39
+ loadingPages?: number[];
40
+ onLoadPageClick?: (pagePos: number) => void;
41
+ autoLoadPrevWhenVisible?: boolean;
42
+ autoLoadNextWhenVisible?: boolean;
43
+ }>;
44
+ /**
45
+ * Presentational layer of the paginated list. Renders already-loaded pages as a
46
+ * single flat item list, and interleaves load buttons wherever a page is missing.
47
+ *
48
+ * This component holds no state and performs no fetching. Loaded pages are sorted
49
+ * by position and flattened, so items appear in page order then in item order,
50
+ * with no per-page wrapper element.
51
+ *
52
+ * ### Load buttons
53
+ * One button is rendered per missing page position:
54
+ * - before the first loaded page, unless it is already `firstPagePos`,
55
+ * - in place of each page missing between two loaded pages,
56
+ * - after the last loaded page, unless it is already `lastPagePos`.
57
+ *
58
+ * ### CSS elements
59
+ * - `item` — wraps each rendered item. Carries `data-page`.
60
+ * - `load` — a load button. Rendered empty, so its label belongs in CSS.
61
+ * Carries `data-page` and a `prev`, `next` or `gap` modifier.
62
+ * - `load-observer` — the intersection observer wrapping an auto-loading button.
63
+ * Present only when `autoLoadPrevWhenVisible` or `autoLoadNextWhenVisible` is on.
64
+ * Carries a `prev` or `next` modifier.
65
+ *
66
+ * ### Data attributes on the root element
67
+ * - `data-loading-pages` — comma-separated ascending list of the pages being
68
+ * fetched, e.g. `"1,3,6"`. Absent entirely when nothing is loading.
69
+ *
70
+ * @param props - Component properties.
71
+ * @see {@link Props}
72
+ * @returns A flat list of items with load buttons in place of missing pages.
73
+ *
74
+ * @remarks
75
+ * Deduplication runs after `filter`, so an item hidden by `filter` never evicts
76
+ * an earlier duplicate.
77
+ */
78
+ export declare const ListLoaderControlled: <T>({ className, pages, firstPagePos, lastPagePos, itemsPages, filter, display, getIdentifier, loadingPages, onLoadPageClick, autoLoadPrevWhenVisible, autoLoadNextWhenVisible }: Props<T>) => ReactNode;