@design-edito/tools 0.5.37 → 0.5.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agnostic/arrays/index.d.ts +1 -1
- package/agnostic/arrays/index.js +1 -1
- package/agnostic/colors/index.d.ts +1 -1
- package/agnostic/colors/index.js +1 -1
- package/agnostic/css/index.d.ts +1 -1
- package/agnostic/css/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +10 -10
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +10 -10
- package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/index.js +1 -1
- 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/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/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 +8 -6
- package/components/UIModule/index.js +6 -10
- 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/@aws-s3/storage/file/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/index.js +1 -1
- package/node/cloud-storage/operations/index.d.ts +1 -1
- package/node/cloud-storage/operations/index.js +1 -1
- package/node/encryption/@aes-256-gcm/index.d.ts +1 -1
- package/node/encryption/@aes-256-gcm/index.js +1 -1
- package/node/index.d.ts +1 -1
- package/node/index.js +1 -1
- 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'
|
|
2
3
|
export * as isArrayOf from './is-array-of/index.js'
|
|
3
4
|
export * as make from './make/index.js'
|
|
4
5
|
export * as randomPick from './random-pick/index.js'
|
|
5
6
|
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'
|
|
2
3
|
export * as isArrayOf from './is-array-of/index.js'
|
|
3
4
|
export * as make from './make/index.js'
|
|
4
5
|
export * as randomPick from './random-pick/index.js'
|
|
5
6
|
export * as shuffle from './shuffle/index.js'
|
|
6
|
-
export * as findDuplicates from './find-duplicates/index.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as channels from './channels/index.js'
|
|
2
|
-
export * as contrast from './contrast/index.js'
|
|
3
2
|
export * as convert from './convert/index.js'
|
|
3
|
+
export * as contrast from './contrast/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'
|
package/agnostic/colors/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as channels from './channels/index.js'
|
|
2
|
-
export * as contrast from './contrast/index.js'
|
|
3
2
|
export * as convert from './convert/index.js'
|
|
3
|
+
export * as contrast from './contrast/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'
|
package/agnostic/css/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as bem from './bem/index.js'
|
|
2
2
|
export * as clss from './clss/index.js'
|
|
3
3
|
export * as generateNiceColor from './generate-nice-color/index.js'
|
|
4
|
-
export * as scale from './scale/index.js'
|
|
5
4
|
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
5
|
+
export * as scale from './scale/index.js'
|
|
6
6
|
export * as stylesSet from './styles-set/index.js'
|
package/agnostic/css/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as bem from './bem/index.js'
|
|
2
2
|
export * as clss from './clss/index.js'
|
|
3
3
|
export * as generateNiceColor from './generate-nice-color/index.js'
|
|
4
|
-
export * as scale from './scale/index.js'
|
|
5
4
|
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
5
|
+
export * as scale from './scale/index.js'
|
|
6
6
|
export * as stylesSet from './styles-set/index.js'
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export * as add from './add/index.js'
|
|
2
|
+
export * as and from './and/index.js'
|
|
2
3
|
export * as addclass from './addclass/index.js'
|
|
3
4
|
export * as append from './append/index.js'
|
|
4
|
-
export * as and from './and/index.js'
|
|
5
5
|
export * as at from './at/index.js'
|
|
6
6
|
export * as call from './call/index.js'
|
|
7
7
|
export * as clone from './clone/index.js'
|
|
8
|
-
export * as equals from './equals/index.js'
|
|
9
8
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
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 hjparse from './hjparse/index.js'
|
|
13
12
|
export * as getproperty from './getproperty/index.js'
|
|
13
|
+
export * as hjparse from './hjparse/index.js'
|
|
14
|
+
export * as hjstringify from './hjstringify/index.js'
|
|
14
15
|
export * as if from './if/index.js'
|
|
15
|
-
export * as initialize from './initialize/index.js'
|
|
16
16
|
export * as join from './join/index.js'
|
|
17
|
+
export * as initialize from './initialize/index.js'
|
|
17
18
|
export * as length from './length/index.js'
|
|
18
19
|
export * as map from './map/index.js'
|
|
19
|
-
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
22
|
export * as or from './or/index.js'
|
|
@@ -25,28 +25,28 @@ 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
|
-
export * as recordtoarray from './recordtoarray/index.js'
|
|
29
28
|
export * as removeattribute from './removeattribute/index.js'
|
|
29
|
+
export * as recordtoarray from './recordtoarray/index.js'
|
|
30
30
|
export * as removeclass from './removeclass/index.js'
|
|
31
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'
|
|
36
37
|
export * as sorton from './sorton/index.js'
|
|
38
|
+
export * as split from './split/index.js'
|
|
37
39
|
export * as spread from './spread/index.js'
|
|
38
40
|
export * as toarray from './toarray/index.js'
|
|
39
41
|
export * as toboolean from './toboolean/index.js'
|
|
40
42
|
export * as toelement from './toelement/index.js'
|
|
41
43
|
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
45
|
export * as tonull from './tonull/index.js'
|
|
46
46
|
export * as tonumber from './tonumber/index.js'
|
|
47
|
-
export * as toref from './toref/index.js'
|
|
48
|
-
export * as tostring from './tostring/index.js'
|
|
49
47
|
export * as torecord from './torecord/index.js'
|
|
48
|
+
export * as tostring from './tostring/index.js'
|
|
50
49
|
export * as totext from './totext/index.js'
|
|
51
50
|
export * as transformselected from './transformselected/index.js'
|
|
52
51
|
export * as trim from './trim/index.js'
|
|
52
|
+
export * as toref from './toref/index.js'
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export * as add from './add/index.js'
|
|
2
|
+
export * as and from './and/index.js'
|
|
2
3
|
export * as addclass from './addclass/index.js'
|
|
3
4
|
export * as append from './append/index.js'
|
|
4
|
-
export * as and from './and/index.js'
|
|
5
5
|
export * as at from './at/index.js'
|
|
6
6
|
export * as call from './call/index.js'
|
|
7
7
|
export * as clone from './clone/index.js'
|
|
8
|
-
export * as equals from './equals/index.js'
|
|
9
8
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
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 hjparse from './hjparse/index.js'
|
|
13
12
|
export * as getproperty from './getproperty/index.js'
|
|
13
|
+
export * as hjparse from './hjparse/index.js'
|
|
14
|
+
export * as hjstringify from './hjstringify/index.js'
|
|
14
15
|
export * as if from './if/index.js'
|
|
15
|
-
export * as initialize from './initialize/index.js'
|
|
16
16
|
export * as join from './join/index.js'
|
|
17
|
+
export * as initialize from './initialize/index.js'
|
|
17
18
|
export * as length from './length/index.js'
|
|
18
19
|
export * as map from './map/index.js'
|
|
19
|
-
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
22
|
export * as or from './or/index.js'
|
|
@@ -25,28 +25,28 @@ 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
|
-
export * as recordtoarray from './recordtoarray/index.js'
|
|
29
28
|
export * as removeattribute from './removeattribute/index.js'
|
|
29
|
+
export * as recordtoarray from './recordtoarray/index.js'
|
|
30
30
|
export * as removeclass from './removeclass/index.js'
|
|
31
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'
|
|
36
37
|
export * as sorton from './sorton/index.js'
|
|
38
|
+
export * as split from './split/index.js'
|
|
37
39
|
export * as spread from './spread/index.js'
|
|
38
40
|
export * as toarray from './toarray/index.js'
|
|
39
41
|
export * as toboolean from './toboolean/index.js'
|
|
40
42
|
export * as toelement from './toelement/index.js'
|
|
41
43
|
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
45
|
export * as tonull from './tonull/index.js'
|
|
46
46
|
export * as tonumber from './tonumber/index.js'
|
|
47
|
-
export * as toref from './toref/index.js'
|
|
48
|
-
export * as tostring from './tostring/index.js'
|
|
49
47
|
export * as torecord from './torecord/index.js'
|
|
48
|
+
export * as tostring from './tostring/index.js'
|
|
50
49
|
export * as totext from './totext/index.js'
|
|
51
50
|
export * as transformselected from './transformselected/index.js'
|
|
52
51
|
export * as trim from './trim/index.js'
|
|
52
|
+
export * as toref from './toref/index.js'
|
|
@@ -3,8 +3,8 @@ 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 nodelist from './nodelist/index.js'
|
|
7
6
|
export * as guess from './guess/index.js'
|
|
7
|
+
export * as nodelist from './nodelist/index.js'
|
|
8
8
|
export * as null from './null/index.js'
|
|
9
9
|
export * as number from './number/index.js'
|
|
10
10
|
export * as record from './record/index.js'
|
|
@@ -3,8 +3,8 @@ 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 nodelist from './nodelist/index.js'
|
|
7
6
|
export * as guess from './guess/index.js'
|
|
7
|
+
export * as nodelist from './nodelist/index.js'
|
|
8
8
|
export * as null from './null/index.js'
|
|
9
9
|
export * as number from './number/index.js'
|
|
10
10
|
export * as record from './record/index.js'
|
package/agnostic/html/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
|
4
4
|
export * as hyperJson from './hyper-json/index.js'
|
|
5
5
|
export * as insertNode from './insert-node/index.js'
|
|
6
6
|
export * as placeholders from './placeholders/index.js'
|
|
7
|
-
export * as replaceInElement from './replace-in-element/index.js'
|
|
8
7
|
export * as selectorToElement from './selector-to-element/index.js'
|
|
9
|
-
export * as
|
|
8
|
+
export * as replaceInElement from './replace-in-element/index.js'
|
|
10
9
|
export * as stringToNodes from './string-to-nodes/index.js'
|
|
10
|
+
export * as watchSelection from './watch-selection/index.js'
|
package/agnostic/html/index.js
CHANGED
|
@@ -4,7 +4,7 @@ export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
|
4
4
|
export * as hyperJson from './hyper-json/index.js'
|
|
5
5
|
export * as insertNode from './insert-node/index.js'
|
|
6
6
|
export * as placeholders from './placeholders/index.js'
|
|
7
|
-
export * as replaceInElement from './replace-in-element/index.js'
|
|
8
7
|
export * as selectorToElement from './selector-to-element/index.js'
|
|
9
|
-
export * as
|
|
8
|
+
export * as replaceInElement from './replace-in-element/index.js'
|
|
10
9
|
export * as stringToNodes from './string-to-nodes/index.js'
|
|
10
|
+
export * as watchSelection from './watch-selection/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 time from './time/index.js'
|
|
16
15
|
export * as subtitles from './subtitles/index.js'
|
|
16
|
+
export * as time from './time/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 time from './time/index.js'
|
|
16
15
|
export * as subtitles from './subtitles/index.js'
|
|
16
|
+
export * as time from './time/index.js'
|
|
17
17
|
export * as typescript from './typescript/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'
|
|
4
5
|
export * as interpolate from './interpolate/index.js'
|
|
5
6
|
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'
|
|
4
5
|
export * as interpolate from './interpolate/index.js'
|
|
5
6
|
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'
|
|
4
5
|
export * as isRecord from './is-record/index.js'
|
|
5
6
|
export * as recordFormat from './record-format/index.js'
|
|
6
7
|
export * as recordMap from './record-map/index.js'
|
|
7
8
|
export * as sortKeys from './sort-keys/index.js'
|
|
8
9
|
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'
|
|
4
5
|
export * as isRecord from './is-record/index.js'
|
|
5
6
|
export * as recordFormat from './record-format/index.js'
|
|
6
7
|
export * as recordMap from './record-map/index.js'
|
|
7
8
|
export * as sortKeys from './sort-keys/index.js'
|
|
8
9
|
export * as validation from './validation/index.js'
|
|
9
|
-
export * as isObject from './is-object/index.js'
|
package/agnostic/random/index.js
CHANGED
package/agnostic/time/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as dates from './dates/index.js'
|
|
2
1
|
export * as duration from './duration/index.js'
|
|
3
2
|
export * as timeout from './timeout/index.js'
|
|
4
3
|
export * as transitions from './transitions/index.js'
|
|
5
4
|
export * as wait from './wait/index.js'
|
|
5
|
+
export * as dates from './dates/index.js'
|
package/agnostic/time/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as dates from './dates/index.js'
|
|
2
1
|
export * as duration from './duration/index.js'
|
|
3
2
|
export * as timeout from './timeout/index.js'
|
|
4
3
|
export * as transitions from './transitions/index.js'
|
|
5
4
|
export * as wait from './wait/index.js'
|
|
5
|
+
export * as dates from './dates/index.js'
|
|
@@ -21,16 +21,18 @@ import type { WithClassName } from '../utils/types.js';
|
|
|
21
21
|
* @property destroy - Optional. Called when the component unmounts or `src` changes.
|
|
22
22
|
* Receives the `Element` previously returned by `init`. Use it to tear down event
|
|
23
23
|
* listeners, timers, or third-party instances.
|
|
24
|
-
* @property css - Optional
|
|
25
|
-
*
|
|
26
|
-
*
|
|
24
|
+
* @property css - Optional stylesheet, injected in a `<style>` and wrapped in
|
|
25
|
+
* `.<publicClassName>#<id> { … }` so it reaches this instance and nothing else.
|
|
26
|
+
* **Write rules, not bare declarations**: a declaration would land on the host, which
|
|
27
|
+
* the module does not own — the consumer styles it, and the two would fight. Rules are
|
|
28
|
+
* resolved by CSS nesting, so they need only name what `init` built.
|
|
27
29
|
*/
|
|
28
30
|
type ModuleData = {
|
|
29
31
|
init: (props: Record<string, unknown>) => Element;
|
|
30
32
|
postInit?: (target: Element, props: Record<string, unknown>) => void | (() => void);
|
|
31
33
|
update?: (target: Element, props: Record<string, unknown>) => void;
|
|
32
34
|
destroy?: (target: Element) => void;
|
|
33
|
-
css?: string
|
|
35
|
+
css?: string;
|
|
34
36
|
};
|
|
35
37
|
/**
|
|
36
38
|
* Props for the {@link UIModule} component.
|
|
@@ -85,13 +87,13 @@ export type Props = WithClassName<{
|
|
|
85
87
|
*
|
|
86
88
|
* ### Root element attributes
|
|
87
89
|
* - `id` — a stable generated id, assigned once on mount and used to scope the
|
|
88
|
-
* module's `css`
|
|
90
|
+
* module's `css` to this specific instance.
|
|
89
91
|
*
|
|
90
92
|
* @param props - Component properties.
|
|
91
93
|
* @see {@link Props}
|
|
92
94
|
* @see {@link ModuleData}
|
|
93
95
|
* @returns A host `<div>` into which the module's root `Element` is appended,
|
|
94
|
-
* along with
|
|
96
|
+
* along with the `<style>` the module exported, if any.
|
|
95
97
|
*/
|
|
96
98
|
export declare const UIModule: FunctionComponent<Props>;
|
|
97
99
|
export {};
|
|
@@ -34,13 +34,13 @@ import cssModule from './styles.module.css';
|
|
|
34
34
|
*
|
|
35
35
|
* ### Root element attributes
|
|
36
36
|
* - `id` — a stable generated id, assigned once on mount and used to scope the
|
|
37
|
-
* module's `css`
|
|
37
|
+
* module's `css` to this specific instance.
|
|
38
38
|
*
|
|
39
39
|
* @param props - Component properties.
|
|
40
40
|
* @see {@link Props}
|
|
41
41
|
* @see {@link ModuleData}
|
|
42
42
|
* @returns A host `<div>` into which the module's root `Element` is appended,
|
|
43
|
-
* along with
|
|
43
|
+
* along with the `<style>` the module exported, if any.
|
|
44
44
|
*/
|
|
45
45
|
export const UIModule = ({ src, props, onIdGenerated, onIsLoadingChanged, onLoadedModuleChanged, onModuleTargetChanged, className }) => {
|
|
46
46
|
// State & refs
|
|
@@ -80,12 +80,8 @@ export const UIModule = ({ src, props, onIdGenerated, onIsLoadingChanged, onLoad
|
|
|
80
80
|
return setLoadedModule(new Error('Module exported member `destroy` must be a function'));
|
|
81
81
|
if ('postInit' in data && typeof data.postInit !== 'function')
|
|
82
82
|
return setLoadedModule(new Error('Module exported member `postInit` must be a function'));
|
|
83
|
-
if ('css' in data)
|
|
84
|
-
|
|
85
|
-
return setLoadedModule(new Error('Module exported member `css` must be an array of strings'));
|
|
86
|
-
if (data.css.some(entry => typeof entry !== 'string'))
|
|
87
|
-
return setLoadedModule(new Error('Module exported member `css` must be an array of strings'));
|
|
88
|
-
}
|
|
83
|
+
if ('css' in data && typeof data.css !== 'string')
|
|
84
|
+
return setLoadedModule(new Error('Module exported member `css` must be a string'));
|
|
89
85
|
if ('update' in data && typeof data.update !== 'function')
|
|
90
86
|
return setLoadedModule(new Error('Module exported member `update` must be a function'));
|
|
91
87
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- shape fully validated by the checks above
|
|
@@ -162,6 +158,6 @@ export const UIModule = ({ src, props, onIdGenerated, onIsLoadingChanged, onLoad
|
|
|
162
158
|
'loaded': !isLoading && loadedModule !== null && !hasErrored,
|
|
163
159
|
'initialized': moduleTarget !== null
|
|
164
160
|
}), className);
|
|
165
|
-
const moduleCss = hasErrored || loadedModule === null ?
|
|
166
|
-
return _jsx("div", { className: rootClss, ref: rootRef, id: id, children: moduleCss
|
|
161
|
+
const moduleCss = hasErrored || loadedModule === null ? undefined : loadedModule.css;
|
|
162
|
+
return _jsx("div", { className: rootClss, ref: rootRef, id: id, children: moduleCss !== undefined && _jsx("style", { children: `.${publicClassName}#${id} { ${moduleCss} }` }) });
|
|
167
163
|
};
|
package/components/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as beforeAfter from './BeforeAfter/index.js'
|
|
2
2
|
export * as clippable from './Clippable/index.js'
|
|
3
3
|
export * as button from './Button/index.js'
|
|
4
|
+
export * as disclaimer from './Disclaimer/index.js'
|
|
4
5
|
export * as drawer from './Drawer/index.js'
|
|
5
6
|
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'
|
|
@@ -11,13 +11,13 @@ export * as input from './Input/index.js'
|
|
|
11
11
|
export * as intersectionObserver from './IntersectionObserver/index.js'
|
|
12
12
|
export * as jsonEditor from './JsonEditor/index.js'
|
|
13
13
|
export * as lightbox from './Lightbox/index.js'
|
|
14
|
-
export * as listLoader from './ListLoader/index.js'
|
|
15
14
|
export * as overlayer from './Overlayer/index.js'
|
|
15
|
+
export * as listLoader from './ListLoader/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 select from './Select/index.js'
|
|
20
19
|
export * as scrollListener from './ScrollListener/index.js'
|
|
20
|
+
export * as select from './Select/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
2
|
export * as clippable from './Clippable/index.js'
|
|
3
3
|
export * as button from './Button/index.js'
|
|
4
|
+
export * as disclaimer from './Disclaimer/index.js'
|
|
4
5
|
export * as drawer from './Drawer/index.js'
|
|
5
6
|
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'
|
|
@@ -11,13 +11,13 @@ export * as input from './Input/index.js'
|
|
|
11
11
|
export * as intersectionObserver from './IntersectionObserver/index.js'
|
|
12
12
|
export * as jsonEditor from './JsonEditor/index.js'
|
|
13
13
|
export * as lightbox from './Lightbox/index.js'
|
|
14
|
-
export * as listLoader from './ListLoader/index.js'
|
|
15
14
|
export * as overlayer from './Overlayer/index.js'
|
|
15
|
+
export * as listLoader from './ListLoader/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 select from './Select/index.js'
|
|
20
19
|
export * as scrollListener from './ScrollListener/index.js'
|
|
20
|
+
export * as select from './Select/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'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as copy from './copy/index.js'
|
|
2
2
|
export * as download from './download/index.js'
|
|
3
|
-
export * as exists from './exists/index.js'
|
|
4
3
|
export * as move from './move/index.js'
|
|
4
|
+
export * as exists from './exists/index.js'
|
|
5
5
|
export * as remove from './remove/index.js'
|
|
6
6
|
export * as stat from './stat/index.js'
|
|
7
7
|
export * as upload from './upload/index.js'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as copy from './copy/index.js'
|
|
2
2
|
export * as download from './download/index.js'
|
|
3
|
-
export * as exists from './exists/index.js'
|
|
4
3
|
export * as move from './move/index.js'
|
|
4
|
+
export * as exists from './exists/index.js'
|
|
5
5
|
export * as remove from './remove/index.js'
|
|
6
6
|
export * as stat from './stat/index.js'
|
|
7
7
|
export * as upload from './upload/index.js'
|
|
@@ -5,7 +5,7 @@ export * as existsFile from './exists-file/index.js'
|
|
|
5
5
|
export * as listDir from './list-dir/index.js'
|
|
6
6
|
export * as moveDir from './move-dir/index.js'
|
|
7
7
|
export * as moveFile from './move-file/index.js'
|
|
8
|
-
export * as removeDir from './remove-dir/index.js'
|
|
9
8
|
export * as removeFile from './remove-file/index.js'
|
|
9
|
+
export * as removeDir from './remove-dir/index.js'
|
|
10
10
|
export * as statFile from './stat-file/index.js'
|
|
11
11
|
export * as uploadFile from './upload-file/index.js'
|
|
@@ -5,7 +5,7 @@ export * as existsFile from './exists-file/index.js'
|
|
|
5
5
|
export * as listDir from './list-dir/index.js'
|
|
6
6
|
export * as moveDir from './move-dir/index.js'
|
|
7
7
|
export * as moveFile from './move-file/index.js'
|
|
8
|
-
export * as removeDir from './remove-dir/index.js'
|
|
9
8
|
export * as removeFile from './remove-file/index.js'
|
|
9
|
+
export * as removeDir from './remove-dir/index.js'
|
|
10
10
|
export * as statFile from './stat-file/index.js'
|
|
11
11
|
export * as uploadFile from './upload-file/index.js'
|
package/node/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as awsS3 from './@aws-s3/index.js'
|
|
2
2
|
export * as designEdito from './@design-edito/index.js'
|
|
3
|
-
export * as googleCloud from './@google-cloud/index.js'
|
|
4
3
|
export * as express from './@express/index.js'
|
|
4
|
+
export * as googleCloud from './@google-cloud/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
1
|
export * as awsS3 from './@aws-s3/index.js'
|
|
2
2
|
export * as designEdito from './@design-edito/index.js'
|
|
3
|
-
export * as googleCloud from './@google-cloud/index.js'
|
|
4
3
|
export * as express from './@express/index.js'
|
|
4
|
+
export * as googleCloud from './@google-cloud/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'
|