@design-edito/tools 0.5.36 → 0.5.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agnostic/arrays/index.d.ts +1 -1
- package/agnostic/arrays/index.js +1 -1
- package/agnostic/css/index.d.ts +2 -2
- package/agnostic/css/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +13 -13
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +13 -13
- package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/index.js +2 -2
- package/agnostic/html/index.d.ts +2 -2
- package/agnostic/html/index.js +2 -2
- package/agnostic/index.d.ts +1 -1
- package/agnostic/index.js +1 -1
- package/agnostic/misc/index.d.ts +2 -2
- package/agnostic/misc/index.js +2 -2
- package/agnostic/numbers/index.d.ts +1 -1
- package/agnostic/numbers/index.js +1 -1
- package/agnostic/objects/index.d.ts +1 -1
- package/agnostic/objects/index.js +1 -1
- package/agnostic/random/index.d.ts +1 -1
- package/agnostic/random/index.js +1 -1
- package/agnostic/strings/index.d.ts +3 -3
- package/agnostic/strings/index.js +3 -3
- package/agnostic/time/dates/index.d.ts +1 -1
- package/agnostic/time/dates/index.js +1 -1
- package/agnostic/time/index.d.ts +1 -1
- package/agnostic/time/index.js +1 -1
- package/components/UIModule/index.d.ts +6 -3
- package/components/UIModule/index.js +11 -2
- package/components/index.d.ts +3 -3
- package/components/index.js +3 -3
- package/node/@aws-s3/storage/directory/index.d.ts +1 -1
- package/node/@aws-s3/storage/directory/index.js +1 -1
- package/node/images/index.d.ts +1 -1
- package/node/images/index.js +1 -1
- package/node/images/transform/operations/index.d.ts +2 -2
- package/node/images/transform/operations/index.js +2 -2
- package/node/index.d.ts +2 -2
- package/node/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as dedupe from './dedupe/index.js'
|
|
2
|
-
export * as findDuplicates from './find-duplicates/index.js'
|
|
3
2
|
export * as isArrayOf from './is-array-of/index.js'
|
|
4
3
|
export * as make from './make/index.js'
|
|
5
4
|
export * as randomPick from './random-pick/index.js'
|
|
6
5
|
export * as shuffle from './shuffle/index.js'
|
|
6
|
+
export * as findDuplicates from './find-duplicates/index.js'
|
package/agnostic/arrays/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as dedupe from './dedupe/index.js'
|
|
2
|
-
export * as findDuplicates from './find-duplicates/index.js'
|
|
3
2
|
export * as isArrayOf from './is-array-of/index.js'
|
|
4
3
|
export * as make from './make/index.js'
|
|
5
4
|
export * as randomPick from './random-pick/index.js'
|
|
6
5
|
export * as shuffle from './shuffle/index.js'
|
|
6
|
+
export * as findDuplicates from './find-duplicates/index.js'
|
package/agnostic/css/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export * as bem from './bem/index.js'
|
|
1
2
|
export * as clss from './clss/index.js'
|
|
2
3
|
export * as generateNiceColor from './generate-nice-color/index.js'
|
|
3
|
-
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
4
4
|
export * as scale from './scale/index.js'
|
|
5
|
+
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
5
6
|
export * as stylesSet from './styles-set/index.js'
|
|
6
|
-
export * as bem from './bem/index.js'
|
package/agnostic/css/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export * as bem from './bem/index.js'
|
|
1
2
|
export * as clss from './clss/index.js'
|
|
2
3
|
export * as generateNiceColor from './generate-nice-color/index.js'
|
|
3
|
-
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
4
4
|
export * as scale from './scale/index.js'
|
|
5
|
+
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
5
6
|
export * as stylesSet from './styles-set/index.js'
|
|
6
|
-
export * as bem from './bem/index.js'
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
export * as add from './add/index.js'
|
|
2
2
|
export * as addclass from './addclass/index.js'
|
|
3
3
|
export * as append from './append/index.js'
|
|
4
|
+
export * as and from './and/index.js'
|
|
4
5
|
export * as at from './at/index.js'
|
|
5
6
|
export * as call from './call/index.js'
|
|
6
|
-
export * as and from './and/index.js'
|
|
7
7
|
export * as clone from './clone/index.js'
|
|
8
8
|
export * as equals from './equals/index.js'
|
|
9
9
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
10
|
-
export * as getproperties from './getproperties/index.js'
|
|
11
10
|
export * as getattribute from './getattribute/index.js'
|
|
11
|
+
export * as getproperties from './getproperties/index.js'
|
|
12
|
+
export * as hjparse from './hjparse/index.js'
|
|
12
13
|
export * as getproperty from './getproperty/index.js'
|
|
13
14
|
export * as if from './if/index.js'
|
|
14
|
-
export * as hjparse from './hjparse/index.js'
|
|
15
|
-
export * as hjstringify from './hjstringify/index.js'
|
|
16
15
|
export * as initialize from './initialize/index.js'
|
|
17
16
|
export * as join from './join/index.js'
|
|
18
17
|
export * as length from './length/index.js'
|
|
19
18
|
export * as map from './map/index.js'
|
|
19
|
+
export * as hjstringify from './hjstringify/index.js'
|
|
20
20
|
export * as negate from './negate/index.js'
|
|
21
21
|
export * as notrailing from './notrailing/index.js'
|
|
22
|
+
export * as or from './or/index.js'
|
|
22
23
|
export * as pickrandom from './pickrandom/index.js'
|
|
23
24
|
export * as populate from './populate/index.js'
|
|
24
25
|
export * as print from './print/index.js'
|
|
25
26
|
export * as push from './push/index.js'
|
|
26
|
-
export * as recordtoarray from './recordtoarray/index.js'
|
|
27
27
|
export * as pusheach from './pusheach/index.js'
|
|
28
|
-
export * as
|
|
28
|
+
export * as recordtoarray from './recordtoarray/index.js'
|
|
29
29
|
export * as removeattribute from './removeattribute/index.js'
|
|
30
|
-
export * as renameproperty from './renameproperty/index.js'
|
|
31
30
|
export * as removeclass from './removeclass/index.js'
|
|
31
|
+
export * as renameproperty from './renameproperty/index.js'
|
|
32
32
|
export * as replace from './replace/index.js'
|
|
33
33
|
export * as select from './select/index.js'
|
|
34
34
|
export * as set from './set/index.js'
|
|
35
35
|
export * as setattribute from './setattribute/index.js'
|
|
36
|
-
export * as setproperty from './setproperty/index.js'
|
|
37
36
|
export * as sorton from './sorton/index.js'
|
|
38
37
|
export * as spread from './spread/index.js'
|
|
39
38
|
export * as toarray from './toarray/index.js'
|
|
40
39
|
export * as toboolean from './toboolean/index.js'
|
|
41
|
-
export * as split from './split/index.js'
|
|
42
40
|
export * as toelement from './toelement/index.js'
|
|
43
41
|
export * as toggleclass from './toggleclass/index.js'
|
|
42
|
+
export * as setproperty from './setproperty/index.js'
|
|
43
|
+
export * as split from './split/index.js'
|
|
44
44
|
export * as tonodelist from './tonodelist/index.js'
|
|
45
|
-
export * as tonumber from './tonumber/index.js'
|
|
46
|
-
export * as torecord from './torecord/index.js'
|
|
47
45
|
export * as tonull from './tonull/index.js'
|
|
48
|
-
export * as
|
|
46
|
+
export * as tonumber from './tonumber/index.js'
|
|
49
47
|
export * as toref from './toref/index.js'
|
|
50
|
-
export * as
|
|
48
|
+
export * as tostring from './tostring/index.js'
|
|
49
|
+
export * as torecord from './torecord/index.js'
|
|
51
50
|
export * as totext from './totext/index.js'
|
|
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
2
|
export * as addclass from './addclass/index.js'
|
|
3
3
|
export * as append from './append/index.js'
|
|
4
|
+
export * as and from './and/index.js'
|
|
4
5
|
export * as at from './at/index.js'
|
|
5
6
|
export * as call from './call/index.js'
|
|
6
|
-
export * as and from './and/index.js'
|
|
7
7
|
export * as clone from './clone/index.js'
|
|
8
8
|
export * as equals from './equals/index.js'
|
|
9
9
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
10
|
-
export * as getproperties from './getproperties/index.js'
|
|
11
10
|
export * as getattribute from './getattribute/index.js'
|
|
11
|
+
export * as getproperties from './getproperties/index.js'
|
|
12
|
+
export * as hjparse from './hjparse/index.js'
|
|
12
13
|
export * as getproperty from './getproperty/index.js'
|
|
13
14
|
export * as if from './if/index.js'
|
|
14
|
-
export * as hjparse from './hjparse/index.js'
|
|
15
|
-
export * as hjstringify from './hjstringify/index.js'
|
|
16
15
|
export * as initialize from './initialize/index.js'
|
|
17
16
|
export * as join from './join/index.js'
|
|
18
17
|
export * as length from './length/index.js'
|
|
19
18
|
export * as map from './map/index.js'
|
|
19
|
+
export * as hjstringify from './hjstringify/index.js'
|
|
20
20
|
export * as negate from './negate/index.js'
|
|
21
21
|
export * as notrailing from './notrailing/index.js'
|
|
22
|
+
export * as or from './or/index.js'
|
|
22
23
|
export * as pickrandom from './pickrandom/index.js'
|
|
23
24
|
export * as populate from './populate/index.js'
|
|
24
25
|
export * as print from './print/index.js'
|
|
25
26
|
export * as push from './push/index.js'
|
|
26
|
-
export * as recordtoarray from './recordtoarray/index.js'
|
|
27
27
|
export * as pusheach from './pusheach/index.js'
|
|
28
|
-
export * as
|
|
28
|
+
export * as recordtoarray from './recordtoarray/index.js'
|
|
29
29
|
export * as removeattribute from './removeattribute/index.js'
|
|
30
|
-
export * as renameproperty from './renameproperty/index.js'
|
|
31
30
|
export * as removeclass from './removeclass/index.js'
|
|
31
|
+
export * as renameproperty from './renameproperty/index.js'
|
|
32
32
|
export * as replace from './replace/index.js'
|
|
33
33
|
export * as select from './select/index.js'
|
|
34
34
|
export * as set from './set/index.js'
|
|
35
35
|
export * as setattribute from './setattribute/index.js'
|
|
36
|
-
export * as setproperty from './setproperty/index.js'
|
|
37
36
|
export * as sorton from './sorton/index.js'
|
|
38
37
|
export * as spread from './spread/index.js'
|
|
39
38
|
export * as toarray from './toarray/index.js'
|
|
40
39
|
export * as toboolean from './toboolean/index.js'
|
|
41
|
-
export * as split from './split/index.js'
|
|
42
40
|
export * as toelement from './toelement/index.js'
|
|
43
41
|
export * as toggleclass from './toggleclass/index.js'
|
|
42
|
+
export * as setproperty from './setproperty/index.js'
|
|
43
|
+
export * as split from './split/index.js'
|
|
44
44
|
export * as tonodelist from './tonodelist/index.js'
|
|
45
|
-
export * as tonumber from './tonumber/index.js'
|
|
46
|
-
export * as torecord from './torecord/index.js'
|
|
47
45
|
export * as tonull from './tonull/index.js'
|
|
48
|
-
export * as
|
|
46
|
+
export * as tonumber from './tonumber/index.js'
|
|
49
47
|
export * as toref from './toref/index.js'
|
|
50
|
-
export * as
|
|
48
|
+
export * as tostring from './tostring/index.js'
|
|
49
|
+
export * as torecord from './torecord/index.js'
|
|
51
50
|
export * as totext from './totext/index.js'
|
|
51
|
+
export * as transformselected from './transformselected/index.js'
|
|
52
52
|
export * as trim from './trim/index.js'
|
|
@@ -3,11 +3,11 @@ 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
5
|
export * as get from './get/index.js'
|
|
6
|
-
export * as guess from './guess/index.js'
|
|
7
6
|
export * as nodelist from './nodelist/index.js'
|
|
7
|
+
export * as guess from './guess/index.js'
|
|
8
8
|
export * as null from './null/index.js'
|
|
9
9
|
export * as number from './number/index.js'
|
|
10
|
-
export * as ref from './ref/index.js'
|
|
11
10
|
export * as record from './record/index.js'
|
|
11
|
+
export * as ref from './ref/index.js'
|
|
12
12
|
export * as string from './string/index.js'
|
|
13
13
|
export * as text from './text/index.js'
|
|
@@ -3,11 +3,11 @@ 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
5
|
export * as get from './get/index.js'
|
|
6
|
-
export * as guess from './guess/index.js'
|
|
7
6
|
export * as nodelist from './nodelist/index.js'
|
|
7
|
+
export * as guess from './guess/index.js'
|
|
8
8
|
export * as null from './null/index.js'
|
|
9
9
|
export * as number from './number/index.js'
|
|
10
|
-
export * as ref from './ref/index.js'
|
|
11
10
|
export * as record from './record/index.js'
|
|
11
|
+
export * as ref from './ref/index.js'
|
|
12
12
|
export * as string from './string/index.js'
|
|
13
13
|
export * as text from './text/index.js'
|
package/agnostic/html/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ 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 selectorToElement from './selector-to-element/index.js'
|
|
7
6
|
export * as placeholders from './placeholders/index.js'
|
|
8
|
-
export * as stringToNodes from './string-to-nodes/index.js'
|
|
9
7
|
export * as replaceInElement from './replace-in-element/index.js'
|
|
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'
|
package/agnostic/html/index.js
CHANGED
|
@@ -3,8 +3,8 @@ 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 selectorToElement from './selector-to-element/index.js'
|
|
7
6
|
export * as placeholders from './placeholders/index.js'
|
|
8
|
-
export * as stringToNodes from './string-to-nodes/index.js'
|
|
9
7
|
export * as replaceInElement from './replace-in-element/index.js'
|
|
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'
|
package/agnostic/index.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ export * as random from './random/index.js'
|
|
|
12
12
|
export * as regexps from './regexps/index.js'
|
|
13
13
|
export * as sanitization from './sanitization/index.js'
|
|
14
14
|
export * as strings from './strings/index.js'
|
|
15
|
-
export * as subtitles from './subtitles/index.js'
|
|
16
15
|
export * as time from './time/index.js'
|
|
16
|
+
export * as subtitles from './subtitles/index.js'
|
|
17
17
|
export * as typescript from './typescript/index.js'
|
package/agnostic/index.js
CHANGED
|
@@ -12,6 +12,6 @@ export * as random from './random/index.js'
|
|
|
12
12
|
export * as regexps from './regexps/index.js'
|
|
13
13
|
export * as sanitization from './sanitization/index.js'
|
|
14
14
|
export * as strings from './strings/index.js'
|
|
15
|
-
export * as subtitles from './subtitles/index.js'
|
|
16
15
|
export * as time from './time/index.js'
|
|
16
|
+
export * as subtitles from './subtitles/index.js'
|
|
17
17
|
export * as typescript from './typescript/index.js'
|
package/agnostic/misc/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * as assert from './assert/index.js'
|
|
2
2
|
export * as cast from './cast/index.js'
|
|
3
3
|
export * as connection from './connection/index.js'
|
|
4
|
-
export * as crossenv from './crossenv/index.js'
|
|
5
4
|
export * as crawler from './crawler/index.js'
|
|
5
|
+
export * as crossenv from './crossenv/index.js'
|
|
6
6
|
export * as dataSize from './data-size/index.js'
|
|
7
7
|
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
8
|
-
export * as logs from './logs/index.js'
|
|
9
8
|
export * as isNullish from './is-nullish/index.js'
|
|
9
|
+
export * as logs from './logs/index.js'
|
|
10
10
|
export * as loremIpsum from './lorem-ipsum/index.js'
|
|
11
11
|
export * as normalizeExtension from './normalize-extension/index.js'
|
|
12
12
|
export * as outcome from './outcome/index.js'
|
package/agnostic/misc/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * as assert from './assert/index.js'
|
|
2
2
|
export * as cast from './cast/index.js'
|
|
3
3
|
export * as connection from './connection/index.js'
|
|
4
|
-
export * as crossenv from './crossenv/index.js'
|
|
5
4
|
export * as crawler from './crawler/index.js'
|
|
5
|
+
export * as crossenv from './crossenv/index.js'
|
|
6
6
|
export * as dataSize from './data-size/index.js'
|
|
7
7
|
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
8
|
-
export * as logs from './logs/index.js'
|
|
9
8
|
export * as isNullish from './is-nullish/index.js'
|
|
9
|
+
export * as logs from './logs/index.js'
|
|
10
10
|
export * as loremIpsum from './lorem-ipsum/index.js'
|
|
11
11
|
export * as normalizeExtension from './normalize-extension/index.js'
|
|
12
12
|
export * as outcome from './outcome/index.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as absoluteModulo from './absolute-modulo/index.js'
|
|
2
2
|
export * as approximateRational from './approximate-rational/index.js'
|
|
3
3
|
export * as clamp from './clamp/index.js'
|
|
4
|
-
export * as geometricProgressions from './geometric-progressions/index.js'
|
|
5
4
|
export * as interpolate from './interpolate/index.js'
|
|
6
5
|
export * as round from './round/index.js'
|
|
6
|
+
export * as geometricProgressions from './geometric-progressions/index.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as absoluteModulo from './absolute-modulo/index.js'
|
|
2
2
|
export * as approximateRational from './approximate-rational/index.js'
|
|
3
3
|
export * as clamp from './clamp/index.js'
|
|
4
|
-
export * as geometricProgressions from './geometric-progressions/index.js'
|
|
5
4
|
export * as interpolate from './interpolate/index.js'
|
|
6
5
|
export * as round from './round/index.js'
|
|
6
|
+
export * as geometricProgressions from './geometric-progressions/index.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as deepGetProperty from './deep-get-property/index.js'
|
|
2
2
|
export * as enums from './enums/index.js'
|
|
3
3
|
export * as flattenGetters from './flatten-getters/index.js'
|
|
4
|
-
export * as isObject from './is-object/index.js'
|
|
5
4
|
export * as isRecord from './is-record/index.js'
|
|
6
5
|
export * as recordFormat from './record-format/index.js'
|
|
7
6
|
export * as recordMap from './record-map/index.js'
|
|
8
7
|
export * as sortKeys from './sort-keys/index.js'
|
|
9
8
|
export * as validation from './validation/index.js'
|
|
9
|
+
export * as isObject from './is-object/index.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as deepGetProperty from './deep-get-property/index.js'
|
|
2
2
|
export * as enums from './enums/index.js'
|
|
3
3
|
export * as flattenGetters from './flatten-getters/index.js'
|
|
4
|
-
export * as isObject from './is-object/index.js'
|
|
5
4
|
export * as isRecord from './is-record/index.js'
|
|
6
5
|
export * as recordFormat from './record-format/index.js'
|
|
7
6
|
export * as recordMap from './record-map/index.js'
|
|
8
7
|
export * as sortKeys from './sort-keys/index.js'
|
|
9
8
|
export * as validation from './validation/index.js'
|
|
9
|
+
export * as isObject from './is-object/index.js'
|
package/agnostic/random/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * as matches from './matches/index.js'
|
|
2
|
-
export * as parseTable from './parse-table/index.js'
|
|
3
1
|
export * as charCodes from './char-codes/index.js'
|
|
2
|
+
export * as matches from './matches/index.js'
|
|
4
3
|
export * as normalizeIndent from './normalize-indent/index.js'
|
|
4
|
+
export * as parseTable from './parse-table/index.js'
|
|
5
5
|
export * as replaceAll from './replace-all/index.js'
|
|
6
|
-
export * as toAlphanum from './to-alphanum/index.js'
|
|
7
6
|
export * as splitTrim from './split-trim/index.js'
|
|
7
|
+
export * as toAlphanum from './to-alphanum/index.js'
|
|
8
8
|
export * as trim from './trim/index.js'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * as matches from './matches/index.js'
|
|
2
|
-
export * as parseTable from './parse-table/index.js'
|
|
3
1
|
export * as charCodes from './char-codes/index.js'
|
|
2
|
+
export * as matches from './matches/index.js'
|
|
4
3
|
export * as normalizeIndent from './normalize-indent/index.js'
|
|
4
|
+
export * as parseTable from './parse-table/index.js'
|
|
5
5
|
export * as replaceAll from './replace-all/index.js'
|
|
6
|
-
export * as toAlphanum from './to-alphanum/index.js'
|
|
7
6
|
export * as splitTrim from './split-trim/index.js'
|
|
7
|
+
export * as toAlphanum from './to-alphanum/index.js'
|
|
8
8
|
export * as trim from './trim/index.js'
|
package/agnostic/time/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as dates from './dates/index.js'
|
|
2
2
|
export * as duration from './duration/index.js'
|
|
3
|
-
export * as transitions from './transitions/index.js'
|
|
4
3
|
export * as timeout from './timeout/index.js'
|
|
4
|
+
export * as transitions from './transitions/index.js'
|
|
5
5
|
export * as wait from './wait/index.js'
|
package/agnostic/time/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as dates from './dates/index.js'
|
|
2
2
|
export * as duration from './duration/index.js'
|
|
3
|
-
export * as transitions from './transitions/index.js'
|
|
4
3
|
export * as timeout from './timeout/index.js'
|
|
4
|
+
export * as transitions from './transitions/index.js'
|
|
5
5
|
export * as wait from './wait/index.js'
|
|
@@ -11,7 +11,9 @@ import type { WithClassName } from '../utils/types.js';
|
|
|
11
11
|
* error state.
|
|
12
12
|
* @property postInit - Optional. Called once, right after the element returned by
|
|
13
13
|
* `init` has been appended. First point at which the module holds an attached
|
|
14
|
-
* element: layout can be measured and ancestors reached.
|
|
14
|
+
* element: layout can be measured and ancestors reached. **May return a teardown
|
|
15
|
+
* function**, run at unmount before `destroy` — which lets whatever it set up stay in
|
|
16
|
+
* its own closure instead of being filed somewhere `destroy` can find it again.
|
|
15
17
|
* @property update - Optional. Called when the `props` object changes identity,
|
|
16
18
|
* once the module is live. Compared by reference, not by value — a consumer passing
|
|
17
19
|
* an inline object gets one call per render, one passing a stable reference gets one
|
|
@@ -25,7 +27,7 @@ import type { WithClassName } from '../utils/types.js';
|
|
|
25
27
|
*/
|
|
26
28
|
type ModuleData = {
|
|
27
29
|
init: (props: Record<string, unknown>) => Element;
|
|
28
|
-
postInit?: (target: Element, props: Record<string, unknown>) => void;
|
|
30
|
+
postInit?: (target: Element, props: Record<string, unknown>) => void | (() => void);
|
|
29
31
|
update?: (target: Element, props: Record<string, unknown>) => void;
|
|
30
32
|
destroy?: (target: Element) => void;
|
|
31
33
|
css?: string[];
|
|
@@ -69,7 +71,8 @@ export type Props = WithClassName<{
|
|
|
69
71
|
* ### Lifecycle
|
|
70
72
|
* `init(props)` builds the element, **detached**. It is appended, then `postInit`
|
|
71
73
|
* runs on it attached. `update` follows each change of the `props` object's
|
|
72
|
-
* identity
|
|
74
|
+
* identity. At unmount, or when `src` changes, the teardown `postInit` returned runs
|
|
75
|
+
* first, then `destroy`.
|
|
73
76
|
*
|
|
74
77
|
* ### CSS modifiers
|
|
75
78
|
* Reflecting the current load lifecycle:
|
|
@@ -20,7 +20,8 @@ import cssModule from './styles.module.css';
|
|
|
20
20
|
* ### Lifecycle
|
|
21
21
|
* `init(props)` builds the element, **detached**. It is appended, then `postInit`
|
|
22
22
|
* runs on it attached. `update` follows each change of the `props` object's
|
|
23
|
-
* identity
|
|
23
|
+
* identity. At unmount, or when `src` changes, the teardown `postInit` returned runs
|
|
24
|
+
* first, then `destroy`.
|
|
24
25
|
*
|
|
25
26
|
* ### CSS modifiers
|
|
26
27
|
* Reflecting the current load lifecycle:
|
|
@@ -113,6 +114,9 @@ export const UIModule = ({ src, props, onIdGenerated, onIsLoadingChanged, onLoad
|
|
|
113
114
|
const liveInstance = liveInstanceRef.current;
|
|
114
115
|
if (liveInstance === null)
|
|
115
116
|
return;
|
|
117
|
+
// The teardown `postInit` handed back first: it undoes what `postInit` did, so it
|
|
118
|
+
// runs in reverse order of construction.
|
|
119
|
+
liveInstance.cleanup?.();
|
|
116
120
|
liveInstance.module.destroy?.(liveInstance.target);
|
|
117
121
|
liveInstanceRef.current = null;
|
|
118
122
|
};
|
|
@@ -132,7 +136,12 @@ export const UIModule = ({ src, props, onIdGenerated, onIsLoadingChanged, onLoad
|
|
|
132
136
|
if (rootRef.current === null)
|
|
133
137
|
return;
|
|
134
138
|
rootRef.current.appendChild(moduleTarget);
|
|
135
|
-
liveInstanceRef.current
|
|
139
|
+
const liveInstance = liveInstanceRef.current;
|
|
140
|
+
if (liveInstance === null)
|
|
141
|
+
return;
|
|
142
|
+
const cleanup = liveInstance.module.postInit?.(moduleTarget, propsRef.current ?? {});
|
|
143
|
+
if (typeof cleanup === 'function')
|
|
144
|
+
liveInstance.cleanup = cleanup;
|
|
136
145
|
}, [moduleTarget]);
|
|
137
146
|
// Fx. dep. `props` - hand a props change to a module that is already live. Compared
|
|
138
147
|
// by reference: the component knows nothing of the values, so it leaves the call to
|
package/components/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as beforeAfter from './BeforeAfter/index.js'
|
|
2
|
-
export * as button from './Button/index.js'
|
|
3
2
|
export * as clippable from './Clippable/index.js'
|
|
4
|
-
export * as
|
|
3
|
+
export * as button from './Button/index.js'
|
|
5
4
|
export * as drawer from './Drawer/index.js'
|
|
6
5
|
export * as eventListener from './EventListener/index.js'
|
|
6
|
+
export * as disclaimer from './Disclaimer/index.js'
|
|
7
7
|
export * as gallery from './Gallery/index.js'
|
|
8
8
|
export * as iframe from './Iframe/index.js'
|
|
9
9
|
export * as image from './Image/index.js'
|
|
@@ -16,8 +16,8 @@ export * as overlayer from './Overlayer/index.js'
|
|
|
16
16
|
export * as paginator from './Paginator/index.js'
|
|
17
17
|
export * as resizeObserver from './ResizeObserver/index.js'
|
|
18
18
|
export * as scrllgngn from './Scrllgngn/index.js'
|
|
19
|
-
export * as scrollListener from './ScrollListener/index.js'
|
|
20
19
|
export * as select from './Select/index.js'
|
|
20
|
+
export * as scrollListener from './ScrollListener/index.js'
|
|
21
21
|
export * as sequencer from './Sequencer/index.js'
|
|
22
22
|
export * as shadowRoot from './ShadowRoot/index.js'
|
|
23
23
|
export * as subtitles from './Subtitles/index.js'
|
package/components/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as beforeAfter from './BeforeAfter/index.js'
|
|
2
|
-
export * as button from './Button/index.js'
|
|
3
2
|
export * as clippable from './Clippable/index.js'
|
|
4
|
-
export * as
|
|
3
|
+
export * as button from './Button/index.js'
|
|
5
4
|
export * as drawer from './Drawer/index.js'
|
|
6
5
|
export * as eventListener from './EventListener/index.js'
|
|
6
|
+
export * as disclaimer from './Disclaimer/index.js'
|
|
7
7
|
export * as gallery from './Gallery/index.js'
|
|
8
8
|
export * as iframe from './Iframe/index.js'
|
|
9
9
|
export * as image from './Image/index.js'
|
|
@@ -16,8 +16,8 @@ export * as overlayer from './Overlayer/index.js'
|
|
|
16
16
|
export * as paginator from './Paginator/index.js'
|
|
17
17
|
export * as resizeObserver from './ResizeObserver/index.js'
|
|
18
18
|
export * as scrllgngn from './Scrllgngn/index.js'
|
|
19
|
-
export * as scrollListener from './ScrollListener/index.js'
|
|
20
19
|
export * as select from './Select/index.js'
|
|
20
|
+
export * as scrollListener from './ScrollListener/index.js'
|
|
21
21
|
export * as sequencer from './Sequencer/index.js'
|
|
22
22
|
export * as shadowRoot from './ShadowRoot/index.js'
|
|
23
23
|
export * as subtitles from './Subtitles/index.js'
|
package/node/images/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as create from './create/index.js'
|
|
2
|
-
export * as metadata from './metadata/index.js'
|
|
3
2
|
export * as format from './format/index.js'
|
|
3
|
+
export * as metadata from './metadata/index.js'
|
|
4
4
|
export * as transform from './transform/index.js'
|
|
5
5
|
export * as utils from './utils/index.js'
|
package/node/images/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as create from './create/index.js'
|
|
2
|
-
export * as metadata from './metadata/index.js'
|
|
3
2
|
export * as format from './format/index.js'
|
|
3
|
+
export * as metadata from './metadata/index.js'
|
|
4
4
|
export * as transform from './transform/index.js'
|
|
5
5
|
export * as utils from './utils/index.js'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * as brighten from './brighten/index.js'
|
|
2
1
|
export * as blur from './blur/index.js'
|
|
2
|
+
export * as brighten from './brighten/index.js'
|
|
3
3
|
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
|
-
export * as flop from './flop/index.js'
|
|
7
6
|
export * as flip from './flip/index.js'
|
|
7
|
+
export * as flop from './flop/index.js'
|
|
8
8
|
export * as hue from './hue/index.js'
|
|
9
9
|
export * as level from './level/index.js'
|
|
10
10
|
export * as lighten from './lighten/index.js'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * as brighten from './brighten/index.js'
|
|
2
1
|
export * as blur from './blur/index.js'
|
|
2
|
+
export * as brighten from './brighten/index.js'
|
|
3
3
|
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
|
-
export * as flop from './flop/index.js'
|
|
7
6
|
export * as flip from './flip/index.js'
|
|
7
|
+
export * as flop from './flop/index.js'
|
|
8
8
|
export * as hue from './hue/index.js'
|
|
9
9
|
export * as level from './level/index.js'
|
|
10
10
|
export * as lighten from './lighten/index.js'
|
package/node/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * as designEdito from './@design-edito/index.js'
|
|
2
1
|
export * as awsS3 from './@aws-s3/index.js'
|
|
3
|
-
export * as
|
|
2
|
+
export * as designEdito from './@design-edito/index.js'
|
|
4
3
|
export * as googleCloud from './@google-cloud/index.js'
|
|
4
|
+
export * as express from './@express/index.js'
|
|
5
5
|
export * as cloudStorage from './cloud-storage/index.js'
|
|
6
6
|
export * as encryption from './encryption/index.js'
|
|
7
7
|
export * as files from './files/index.js'
|
package/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * as designEdito from './@design-edito/index.js'
|
|
2
1
|
export * as awsS3 from './@aws-s3/index.js'
|
|
3
|
-
export * as
|
|
2
|
+
export * as designEdito from './@design-edito/index.js'
|
|
4
3
|
export * as googleCloud from './@google-cloud/index.js'
|
|
4
|
+
export * as express from './@express/index.js'
|
|
5
5
|
export * as cloudStorage from './cloud-storage/index.js'
|
|
6
6
|
export * as encryption from './encryption/index.js'
|
|
7
7
|
export * as files from './files/index.js'
|