@design-edito/tools 0.4.13 → 0.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agnostic/arrays/index.d.ts +2 -2
- package/agnostic/arrays/index.js +2 -2
- package/agnostic/colors/index.d.ts +4 -4
- package/agnostic/colors/index.js +4 -4
- package/agnostic/errors/index.d.ts +1 -1
- package/agnostic/errors/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +9 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +9 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +3 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/index.js +3 -3
- package/agnostic/index.d.ts +2 -2
- package/agnostic/index.js +2 -2
- package/agnostic/misc/index.d.ts +2 -2
- package/agnostic/misc/index.js +2 -2
- package/agnostic/misc/logs/index.d.ts +1 -1
- package/agnostic/misc/logs/index.js +1 -1
- package/agnostic/objects/index.d.ts +3 -3
- package/agnostic/objects/index.js +3 -3
- package/agnostic/time/index.d.ts +1 -1
- package/agnostic/time/index.js +1 -1
- package/components/Clippable/index.d.ts +49 -0
- package/components/Clippable/index.js +72 -0
- package/components/Clippable/styles.module.css +0 -0
- package/components/Iframe/index.d.ts +48 -0
- package/components/Iframe/index.js +43 -0
- package/components/Iframe/styles.module.css +0 -0
- package/components/Scrllgngn/index.d.ts +10 -1
- package/components/Scrllgngn/index.js +7 -4
- package/components/index.d.ts +4 -2
- package/components/index.js +4 -2
- package/components/public-classnames.d.ts +2 -0
- package/components/public-classnames.js +2 -0
- package/index.d.ts +1 -1
- package/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/@google-cloud/storage/file/index.d.ts +2 -2
- package/node/@google-cloud/storage/file/index.js +2 -2
- package/node/@google-cloud/storage/index.d.ts +1 -1
- package/node/@google-cloud/storage/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/files/index.d.ts +1 -1
- package/node/files/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 +1 -1
- package/node/images/transform/operations/index.js +1 -1
- package/package.json +34 -18
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export * as dedupe from './dedupe/index.js'
|
|
1
2
|
export * as findDuplicates from './find-duplicates/index.js'
|
|
3
|
+
export * as make from './make/index.js'
|
|
2
4
|
export * as isArrayOf from './is-array-of/index.js'
|
|
3
5
|
export * as randomPick from './random-pick/index.js'
|
|
4
|
-
export * as make from './make/index.js'
|
|
5
6
|
export * as shuffle from './shuffle/index.js'
|
|
6
|
-
export * as dedupe from './dedupe/index.js'
|
package/agnostic/arrays/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export * as dedupe from './dedupe/index.js'
|
|
1
2
|
export * as findDuplicates from './find-duplicates/index.js'
|
|
3
|
+
export * as make from './make/index.js'
|
|
2
4
|
export * as isArrayOf from './is-array-of/index.js'
|
|
3
5
|
export * as randomPick from './random-pick/index.js'
|
|
4
|
-
export * as make from './make/index.js'
|
|
5
6
|
export * as shuffle from './shuffle/index.js'
|
|
6
|
-
export * as dedupe from './dedupe/index.js'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * as channels from './channels/index.js'
|
|
2
1
|
export * as contrast from './contrast/index.js'
|
|
3
|
-
export * as
|
|
2
|
+
export * as channels from './channels/index.js'
|
|
4
3
|
export * as distance from './distance/index.js'
|
|
5
|
-
export * as grayscale from './grayscale/index.js'
|
|
6
4
|
export * as invert from './invert/index.js'
|
|
5
|
+
export * as grayscale from './grayscale/index.js'
|
|
7
6
|
export * as lerp from './lerp/index.js'
|
|
7
|
+
export * as luminance from './luminance/index.js'
|
|
8
|
+
export * as convert from './convert/index.js'
|
|
8
9
|
export * as palette from './palette/index.js'
|
|
9
10
|
export * as rotate from './rotate/index.js'
|
|
10
11
|
export * as tidy from './tidy/index.js'
|
|
11
12
|
export * as typechecks from './typechecks/index.js'
|
|
12
|
-
export * as luminance from './luminance/index.js'
|
package/agnostic/colors/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * as channels from './channels/index.js'
|
|
2
1
|
export * as contrast from './contrast/index.js'
|
|
3
|
-
export * as
|
|
2
|
+
export * as channels from './channels/index.js'
|
|
4
3
|
export * as distance from './distance/index.js'
|
|
5
|
-
export * as grayscale from './grayscale/index.js'
|
|
6
4
|
export * as invert from './invert/index.js'
|
|
5
|
+
export * as grayscale from './grayscale/index.js'
|
|
7
6
|
export * as lerp from './lerp/index.js'
|
|
7
|
+
export * as luminance from './luminance/index.js'
|
|
8
|
+
export * as convert from './convert/index.js'
|
|
8
9
|
export * as palette from './palette/index.js'
|
|
9
10
|
export * as rotate from './rotate/index.js'
|
|
10
11
|
export * as tidy from './tidy/index.js'
|
|
11
12
|
export * as typechecks from './typechecks/index.js'
|
|
12
|
-
export * as luminance from './luminance/index.js'
|
package/agnostic/errors/index.js
CHANGED
|
@@ -6,11 +6,11 @@ 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
8
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
9
|
-
export * as getattribute from './getattribute/index.js'
|
|
10
9
|
export * as equals from './equals/index.js'
|
|
10
|
+
export * as getattribute from './getattribute/index.js'
|
|
11
11
|
export * as getproperties from './getproperties/index.js'
|
|
12
|
-
export * as getproperty from './getproperty/index.js'
|
|
13
12
|
export * as hjparse from './hjparse/index.js'
|
|
13
|
+
export * as getproperty from './getproperty/index.js'
|
|
14
14
|
export * as hjstringify from './hjstringify/index.js'
|
|
15
15
|
export * as if from './if/index.js'
|
|
16
16
|
export * as initialize from './initialize/index.js'
|
|
@@ -20,7 +20,6 @@ export * as map from './map/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'
|
|
23
|
-
export * as populate from './populate/index.js'
|
|
24
23
|
export * as pickrandom from './pickrandom/index.js'
|
|
25
24
|
export * as print from './print/index.js'
|
|
26
25
|
export * as push from './push/index.js'
|
|
@@ -29,24 +28,25 @@ export * as recordtoarray from './recordtoarray/index.js'
|
|
|
29
28
|
export * as removeattribute from './removeattribute/index.js'
|
|
30
29
|
export * as removeclass from './removeclass/index.js'
|
|
31
30
|
export * as replace from './replace/index.js'
|
|
31
|
+
export * as renameproperty from './renameproperty/index.js'
|
|
32
32
|
export * as select from './select/index.js'
|
|
33
|
+
export * as populate from './populate/index.js'
|
|
33
34
|
export * as set from './set/index.js'
|
|
34
35
|
export * as setattribute from './setattribute/index.js'
|
|
35
36
|
export * as setproperty from './setproperty/index.js'
|
|
36
37
|
export * as sorton from './sorton/index.js'
|
|
37
38
|
export * as split from './split/index.js'
|
|
38
39
|
export * as spread from './spread/index.js'
|
|
39
|
-
export * as toarray from './toarray/index.js'
|
|
40
40
|
export * as toboolean from './toboolean/index.js'
|
|
41
|
-
export * as renameproperty from './renameproperty/index.js'
|
|
42
41
|
export * as toelement from './toelement/index.js'
|
|
43
|
-
export * as toggleclass from './toggleclass/index.js'
|
|
44
42
|
export * as tonodelist from './tonodelist/index.js'
|
|
43
|
+
export * as toggleclass from './toggleclass/index.js'
|
|
45
44
|
export * as tonull from './tonull/index.js'
|
|
46
|
-
export * as
|
|
45
|
+
export * as toarray from './toarray/index.js'
|
|
47
46
|
export * as torecord from './torecord/index.js'
|
|
48
|
-
export * as
|
|
49
|
-
export * as totext from './totext/index.js'
|
|
47
|
+
export * as tonumber from './tonumber/index.js'
|
|
50
48
|
export * as toref from './toref/index.js'
|
|
49
|
+
export * as totext from './totext/index.js'
|
|
50
|
+
export * as tostring from './tostring/index.js'
|
|
51
51
|
export * as transformselected from './transformselected/index.js'
|
|
52
52
|
export * as trim from './trim/index.js'
|
|
@@ -6,11 +6,11 @@ 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
8
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
9
|
-
export * as getattribute from './getattribute/index.js'
|
|
10
9
|
export * as equals from './equals/index.js'
|
|
10
|
+
export * as getattribute from './getattribute/index.js'
|
|
11
11
|
export * as getproperties from './getproperties/index.js'
|
|
12
|
-
export * as getproperty from './getproperty/index.js'
|
|
13
12
|
export * as hjparse from './hjparse/index.js'
|
|
13
|
+
export * as getproperty from './getproperty/index.js'
|
|
14
14
|
export * as hjstringify from './hjstringify/index.js'
|
|
15
15
|
export * as if from './if/index.js'
|
|
16
16
|
export * as initialize from './initialize/index.js'
|
|
@@ -20,7 +20,6 @@ export * as map from './map/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'
|
|
23
|
-
export * as populate from './populate/index.js'
|
|
24
23
|
export * as pickrandom from './pickrandom/index.js'
|
|
25
24
|
export * as print from './print/index.js'
|
|
26
25
|
export * as push from './push/index.js'
|
|
@@ -29,24 +28,25 @@ export * as recordtoarray from './recordtoarray/index.js'
|
|
|
29
28
|
export * as removeattribute from './removeattribute/index.js'
|
|
30
29
|
export * as removeclass from './removeclass/index.js'
|
|
31
30
|
export * as replace from './replace/index.js'
|
|
31
|
+
export * as renameproperty from './renameproperty/index.js'
|
|
32
32
|
export * as select from './select/index.js'
|
|
33
|
+
export * as populate from './populate/index.js'
|
|
33
34
|
export * as set from './set/index.js'
|
|
34
35
|
export * as setattribute from './setattribute/index.js'
|
|
35
36
|
export * as setproperty from './setproperty/index.js'
|
|
36
37
|
export * as sorton from './sorton/index.js'
|
|
37
38
|
export * as split from './split/index.js'
|
|
38
39
|
export * as spread from './spread/index.js'
|
|
39
|
-
export * as toarray from './toarray/index.js'
|
|
40
40
|
export * as toboolean from './toboolean/index.js'
|
|
41
|
-
export * as renameproperty from './renameproperty/index.js'
|
|
42
41
|
export * as toelement from './toelement/index.js'
|
|
43
|
-
export * as toggleclass from './toggleclass/index.js'
|
|
44
42
|
export * as tonodelist from './tonodelist/index.js'
|
|
43
|
+
export * as toggleclass from './toggleclass/index.js'
|
|
45
44
|
export * as tonull from './tonull/index.js'
|
|
46
|
-
export * as
|
|
45
|
+
export * as toarray from './toarray/index.js'
|
|
47
46
|
export * as torecord from './torecord/index.js'
|
|
48
|
-
export * as
|
|
49
|
-
export * as totext from './totext/index.js'
|
|
47
|
+
export * as tonumber from './tonumber/index.js'
|
|
50
48
|
export * as toref from './toref/index.js'
|
|
49
|
+
export * as totext from './totext/index.js'
|
|
50
|
+
export * as tostring from './tostring/index.js'
|
|
51
51
|
export * as transformselected from './transformselected/index.js'
|
|
52
52
|
export * as trim from './trim/index.js'
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export * as array from './array/index.js'
|
|
2
|
+
export * as any from './any/index.js'
|
|
2
3
|
export * as boolean from './boolean/index.js'
|
|
3
4
|
export * as element from './element/index.js'
|
|
4
5
|
export * as get from './get/index.js'
|
|
5
6
|
export * as guess from './guess/index.js'
|
|
6
7
|
export * as nodelist from './nodelist/index.js'
|
|
7
|
-
export * as null from './null/index.js'
|
|
8
8
|
export * as number from './number/index.js'
|
|
9
|
-
export * as any from './any/index.js'
|
|
10
9
|
export * as record from './record/index.js'
|
|
11
10
|
export * as ref from './ref/index.js'
|
|
12
|
-
export * as
|
|
11
|
+
export * as null from './null/index.js'
|
|
13
12
|
export * as string from './string/index.js'
|
|
13
|
+
export * as text from './text/index.js'
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export * as array from './array/index.js'
|
|
2
|
+
export * as any from './any/index.js'
|
|
2
3
|
export * as boolean from './boolean/index.js'
|
|
3
4
|
export * as element from './element/index.js'
|
|
4
5
|
export * as get from './get/index.js'
|
|
5
6
|
export * as guess from './guess/index.js'
|
|
6
7
|
export * as nodelist from './nodelist/index.js'
|
|
7
|
-
export * as null from './null/index.js'
|
|
8
8
|
export * as number from './number/index.js'
|
|
9
|
-
export * as any from './any/index.js'
|
|
10
9
|
export * as record from './record/index.js'
|
|
11
10
|
export * as ref from './ref/index.js'
|
|
12
|
-
export * as
|
|
11
|
+
export * as null from './null/index.js'
|
|
13
12
|
export * as string from './string/index.js'
|
|
13
|
+
export * as text from './text/index.js'
|
package/agnostic/index.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ export * as css from './css/index.js'
|
|
|
5
5
|
export * as errors from './errors/index.js'
|
|
6
6
|
export * as html from './html/index.js'
|
|
7
7
|
export * as misc from './misc/index.js'
|
|
8
|
+
export * as numbers from './numbers/index.js'
|
|
8
9
|
export * as objects from './objects/index.js'
|
|
9
10
|
export * as optim from './optim/index.js'
|
|
10
|
-
export * as numbers from './numbers/index.js'
|
|
11
|
-
export * as random from './random/index.js'
|
|
12
11
|
export * as regexps from './regexps/index.js'
|
|
13
12
|
export * as sanitization from './sanitization/index.js'
|
|
13
|
+
export * as random from './random/index.js'
|
|
14
14
|
export * as strings from './strings/index.js'
|
|
15
15
|
export * as time from './time/index.js'
|
|
16
16
|
export * as typescript from './typescript/index.js'
|
package/agnostic/index.js
CHANGED
|
@@ -5,12 +5,12 @@ export * as css from './css/index.js'
|
|
|
5
5
|
export * as errors from './errors/index.js'
|
|
6
6
|
export * as html from './html/index.js'
|
|
7
7
|
export * as misc from './misc/index.js'
|
|
8
|
+
export * as numbers from './numbers/index.js'
|
|
8
9
|
export * as objects from './objects/index.js'
|
|
9
10
|
export * as optim from './optim/index.js'
|
|
10
|
-
export * as numbers from './numbers/index.js'
|
|
11
|
-
export * as random from './random/index.js'
|
|
12
11
|
export * as regexps from './regexps/index.js'
|
|
13
12
|
export * as sanitization from './sanitization/index.js'
|
|
13
|
+
export * as random from './random/index.js'
|
|
14
14
|
export * as strings from './strings/index.js'
|
|
15
15
|
export * as time from './time/index.js'
|
|
16
16
|
export * as typescript from './typescript/index.js'
|
package/agnostic/misc/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * as assert from './assert/index.js'
|
|
2
|
+
export * as cast from './cast/index.js'
|
|
2
3
|
export * as connection from './connection/index.js'
|
|
3
4
|
export * as crawler from './crawler/index.js'
|
|
4
5
|
export * as crossenv from './crossenv/index.js'
|
|
5
6
|
export * as dataSize from './data-size/index.js'
|
|
6
7
|
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
7
|
-
export * as cast from './cast/index.js'
|
|
8
8
|
export * as isNullish from './is-nullish/index.js'
|
|
9
|
-
export * as loremIpsum from './lorem-ipsum/index.js'
|
|
10
9
|
export * as logs from './logs/index.js'
|
|
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
|
+
export * as cast from './cast/index.js'
|
|
2
3
|
export * as connection from './connection/index.js'
|
|
3
4
|
export * as crawler from './crawler/index.js'
|
|
4
5
|
export * as crossenv from './crossenv/index.js'
|
|
5
6
|
export * as dataSize from './data-size/index.js'
|
|
6
7
|
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
7
|
-
export * as cast from './cast/index.js'
|
|
8
8
|
export * as isNullish from './is-nullish/index.js'
|
|
9
|
-
export * as loremIpsum from './lorem-ipsum/index.js'
|
|
10
9
|
export * as logs from './logs/index.js'
|
|
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,9 +1,9 @@
|
|
|
1
1
|
export * as enums from './enums/index.js'
|
|
2
2
|
export * as flattenGetters from './flatten-getters/index.js'
|
|
3
|
+
export * as deepGetProperty from './deep-get-property/index.js'
|
|
3
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
|
-
export * as recordMap from './record-map/index.js'
|
|
7
|
-
export * as validation from './validation/index.js'
|
|
8
7
|
export * as sortKeys from './sort-keys/index.js'
|
|
9
|
-
export * as
|
|
8
|
+
export * as validation from './validation/index.js'
|
|
9
|
+
export * as recordMap from './record-map/index.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * as enums from './enums/index.js'
|
|
2
2
|
export * as flattenGetters from './flatten-getters/index.js'
|
|
3
|
+
export * as deepGetProperty from './deep-get-property/index.js'
|
|
3
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
|
-
export * as recordMap from './record-map/index.js'
|
|
7
|
-
export * as validation from './validation/index.js'
|
|
8
7
|
export * as sortKeys from './sort-keys/index.js'
|
|
9
|
-
export * as
|
|
8
|
+
export * as validation from './validation/index.js'
|
|
9
|
+
export * as recordMap from './record-map/index.js'
|
package/agnostic/time/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as duration from './duration/index.js'
|
|
2
1
|
export * as dates from './dates/index.js'
|
|
2
|
+
export * as duration from './duration/index.js'
|
|
3
3
|
export * as timeout from './timeout/index.js'
|
|
4
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
|
-
export * as duration from './duration/index.js'
|
|
2
1
|
export * as dates from './dates/index.js'
|
|
2
|
+
export * as duration from './duration/index.js'
|
|
3
3
|
export * as timeout from './timeout/index.js'
|
|
4
4
|
export * as transitions from './transitions/index.js'
|
|
5
5
|
export * as wait from './wait/index.js'
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type PropsWithChildren, type FunctionComponent, type MouseEvent } from 'react';
|
|
2
|
+
import type { WithClassName } from '../utils/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link Clippable} component.
|
|
5
|
+
*
|
|
6
|
+
* Extends {@link WithClassName} with clipboard-related configuration and callbacks.
|
|
7
|
+
*
|
|
8
|
+
* @property toClip - Content written to the clipboard. When omitted, the current
|
|
9
|
+
* content container's `innerHTML` is used. A function may be provided to transform
|
|
10
|
+
* the current content before it is written.
|
|
11
|
+
* @property actionHandlers - Optional user action callbacks:
|
|
12
|
+
* - `clicked` — called when the copy button is clicked, before clipboard content is resolved.
|
|
13
|
+
* @property stateHandlers - Optional callbacks invoked when derived state changes:
|
|
14
|
+
* - `clipped` — called after content has been successfully written to the clipboard.
|
|
15
|
+
* @property className - Additional class name(s) applied to the root element.
|
|
16
|
+
* @property children - Content rendered inside the copyable container.
|
|
17
|
+
*/
|
|
18
|
+
export type Props = PropsWithChildren<WithClassName<{
|
|
19
|
+
toClip?: string | ((curr: string | undefined) => string | undefined);
|
|
20
|
+
actionHandlers?: {
|
|
21
|
+
clicked?: (e: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>, rawContent: string | undefined) => void;
|
|
22
|
+
};
|
|
23
|
+
stateHandlers?: {
|
|
24
|
+
clipped?: (content: string) => void;
|
|
25
|
+
};
|
|
26
|
+
}>>;
|
|
27
|
+
/**
|
|
28
|
+
* Clipboard-enabled container component.
|
|
29
|
+
*
|
|
30
|
+
* Renders arbitrary content alongside a copy control. When activated,
|
|
31
|
+
* the component writes HTML content to the clipboard using the
|
|
32
|
+
* `text/html` MIME type.
|
|
33
|
+
*
|
|
34
|
+
* Supports content overriding and transformation through the `toClip`
|
|
35
|
+
* prop, as well as action and state callbacks.
|
|
36
|
+
*
|
|
37
|
+
* ### CSS modifiers
|
|
38
|
+
* The following modifiers are applied automatically:
|
|
39
|
+
* - `clipped` — `true` during the 3 seconds following a successful clipboard write.
|
|
40
|
+
*
|
|
41
|
+
* ### CSS elements
|
|
42
|
+
* - `copy`
|
|
43
|
+
* - `content`
|
|
44
|
+
*
|
|
45
|
+
* @param props - Component properties.
|
|
46
|
+
* @see {@link Props}
|
|
47
|
+
* @returns A copy-enabled content container with clipboard state modifiers applied.
|
|
48
|
+
*/
|
|
49
|
+
export declare const Clippable: FunctionComponent<Props>;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useState } from 'react';
|
|
3
|
+
import { clss } from '../../agnostic/css/clss/index.js';
|
|
4
|
+
import { mergeClassNames } from '../utils/index.js';
|
|
5
|
+
import { clippable as publicClassName } from '../public-classnames.js';
|
|
6
|
+
import cssModule from './styles.module.css';
|
|
7
|
+
/**
|
|
8
|
+
* Clipboard-enabled container component.
|
|
9
|
+
*
|
|
10
|
+
* Renders arbitrary content alongside a copy control. When activated,
|
|
11
|
+
* the component writes HTML content to the clipboard using the
|
|
12
|
+
* `text/html` MIME type.
|
|
13
|
+
*
|
|
14
|
+
* Supports content overriding and transformation through the `toClip`
|
|
15
|
+
* prop, as well as action and state callbacks.
|
|
16
|
+
*
|
|
17
|
+
* ### CSS modifiers
|
|
18
|
+
* The following modifiers are applied automatically:
|
|
19
|
+
* - `clipped` — `true` during the 3 seconds following a successful clipboard write.
|
|
20
|
+
*
|
|
21
|
+
* ### CSS elements
|
|
22
|
+
* - `copy`
|
|
23
|
+
* - `content`
|
|
24
|
+
*
|
|
25
|
+
* @param props - Component properties.
|
|
26
|
+
* @see {@link Props}
|
|
27
|
+
* @returns A copy-enabled content container with clipboard state modifiers applied.
|
|
28
|
+
*/
|
|
29
|
+
export const Clippable = ({ className, children, toClip, actionHandlers, stateHandlers }) => {
|
|
30
|
+
// State & refs
|
|
31
|
+
const [beenRecentlyClipped, setBeenRecentlyClipped] = useState(false);
|
|
32
|
+
const contentRef = useRef(null);
|
|
33
|
+
const clippedTimeoutRef = useRef(null);
|
|
34
|
+
// User action handlers
|
|
35
|
+
const handleCopyClick = async (e) => {
|
|
36
|
+
const rawhHtml = contentRef.current?.innerHTML;
|
|
37
|
+
actionHandlers?.clicked?.(e, rawhHtml);
|
|
38
|
+
const html = typeof toClip === 'string'
|
|
39
|
+
? toClip
|
|
40
|
+
: typeof toClip === 'function'
|
|
41
|
+
? toClip(rawhHtml)
|
|
42
|
+
: rawhHtml;
|
|
43
|
+
if (html === undefined)
|
|
44
|
+
return;
|
|
45
|
+
try {
|
|
46
|
+
await navigator.clipboard.write([
|
|
47
|
+
new ClipboardItem({
|
|
48
|
+
'text/html': new Blob([html], { type: 'text/html' }),
|
|
49
|
+
'text/plain': new Blob([html], { type: 'text/plain' })
|
|
50
|
+
})
|
|
51
|
+
]);
|
|
52
|
+
}
|
|
53
|
+
catch (err) {
|
|
54
|
+
console.error(err);
|
|
55
|
+
}
|
|
56
|
+
stateHandlers?.clipped?.(html);
|
|
57
|
+
setBeenRecentlyClipped(true);
|
|
58
|
+
if (clippedTimeoutRef.current !== null)
|
|
59
|
+
clearTimeout(clippedTimeoutRef.current);
|
|
60
|
+
clippedTimeoutRef.current = setTimeout(() => {
|
|
61
|
+
setBeenRecentlyClipped(false);
|
|
62
|
+
}, 3000);
|
|
63
|
+
};
|
|
64
|
+
// Rendering
|
|
65
|
+
const c = clss(publicClassName, { cssModule });
|
|
66
|
+
const rootClss = mergeClassNames(c(null, {
|
|
67
|
+
clipped: beenRecentlyClipped
|
|
68
|
+
}), className);
|
|
69
|
+
const copyClss = c('copy');
|
|
70
|
+
const contentClss = c('content');
|
|
71
|
+
return _jsxs("div", { className: rootClss, children: [_jsx("button", { type: 'button', className: copyClss, onClick: e => { void handleCopyClick(e); } }), _jsx("div", { ref: contentRef, className: contentClss, children: children })] });
|
|
72
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type FunctionComponent, type IframeHTMLAttributes, type PropsWithChildren } from 'react';
|
|
2
|
+
import type { WithClassName } from '../utils/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link Iframe} component.
|
|
5
|
+
*
|
|
6
|
+
* Extends native {@link IframeHTMLAttributes} with optional class name support.
|
|
7
|
+
*
|
|
8
|
+
* @property className - Additional class name(s) applied to the root element.
|
|
9
|
+
* @property children - React content rendered as the iframe document body.
|
|
10
|
+
* @property srcDoc - Raw HTML string used as iframe content when `children` is not provided.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* This component behaves as a hybrid between a native `<iframe>` and a React renderer.
|
|
14
|
+
*
|
|
15
|
+
* Rendering priority:
|
|
16
|
+
* - `children` takes precedence over `srcDoc` when provided.
|
|
17
|
+
* - If `children` is `null` or `undefined`, `srcDoc` is used directly.
|
|
18
|
+
*
|
|
19
|
+
* When `children` is provided, it is converted to static HTML using
|
|
20
|
+
* `renderToStaticMarkup` and injected into a complete HTML document:
|
|
21
|
+
* `<!doctype html><html><body>...</body></html>`.
|
|
22
|
+
*/
|
|
23
|
+
export type Props = PropsWithChildren<WithClassName<Record<never, never>>> & Omit<IframeHTMLAttributes<HTMLIFrameElement>, 'children'>;
|
|
24
|
+
/**
|
|
25
|
+
* Iframe component with React-to-HTML rendering support.
|
|
26
|
+
*
|
|
27
|
+
* Renders either:
|
|
28
|
+
* - A raw HTML string via the `srcDoc` attribute, or
|
|
29
|
+
* - A ReactNode rendered into static HTML via `renderToStaticMarkup`.
|
|
30
|
+
*
|
|
31
|
+
* ### Rendering strategy
|
|
32
|
+
* 1. If `children` is defined (non-nullish), it is rendered to static HTML
|
|
33
|
+
* and used as iframe content.
|
|
34
|
+
* 2. Otherwise, `srcDoc` is used as-is.
|
|
35
|
+
*
|
|
36
|
+
* The resulting content is wrapped in a minimal HTML document:
|
|
37
|
+
* `<!doctype html><html><body>...</body></html>`.
|
|
38
|
+
*
|
|
39
|
+
* ### Notes
|
|
40
|
+
* - The iframe content is static (no hydration, no client-side React inside iframe).
|
|
41
|
+
* - `children` overrides `srcDoc`.
|
|
42
|
+
* - Useful for embedding server-rendered UI fragments or documentation blocks.
|
|
43
|
+
*
|
|
44
|
+
* @param props - Component properties.
|
|
45
|
+
* @see {@link Props}
|
|
46
|
+
* @returns A styled iframe element with computed HTML document content.
|
|
47
|
+
*/
|
|
48
|
+
export declare const Iframe: FunctionComponent<Props>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import { renderToStaticMarkup } from 'react-dom/server';
|
|
4
|
+
import { clss } from '../../agnostic/css/clss/index.js';
|
|
5
|
+
import { mergeClassNames } from '../utils/index.js';
|
|
6
|
+
import { iframe as publicClassName } from '../public-classnames.js';
|
|
7
|
+
import cssModule from './styles.module.css';
|
|
8
|
+
import { isNotNullish } from '../../agnostic/misc/is-nullish/index.js';
|
|
9
|
+
/**
|
|
10
|
+
* Iframe component with React-to-HTML rendering support.
|
|
11
|
+
*
|
|
12
|
+
* Renders either:
|
|
13
|
+
* - A raw HTML string via the `srcDoc` attribute, or
|
|
14
|
+
* - A ReactNode rendered into static HTML via `renderToStaticMarkup`.
|
|
15
|
+
*
|
|
16
|
+
* ### Rendering strategy
|
|
17
|
+
* 1. If `children` is defined (non-nullish), it is rendered to static HTML
|
|
18
|
+
* and used as iframe content.
|
|
19
|
+
* 2. Otherwise, `srcDoc` is used as-is.
|
|
20
|
+
*
|
|
21
|
+
* The resulting content is wrapped in a minimal HTML document:
|
|
22
|
+
* `<!doctype html><html><body>...</body></html>`.
|
|
23
|
+
*
|
|
24
|
+
* ### Notes
|
|
25
|
+
* - The iframe content is static (no hydration, no client-side React inside iframe).
|
|
26
|
+
* - `children` overrides `srcDoc`.
|
|
27
|
+
* - Useful for embedding server-rendered UI fragments or documentation blocks.
|
|
28
|
+
*
|
|
29
|
+
* @param props - Component properties.
|
|
30
|
+
* @see {@link Props}
|
|
31
|
+
* @returns A styled iframe element with computed HTML document content.
|
|
32
|
+
*/
|
|
33
|
+
export const Iframe = ({ className, children, srcDoc, ...iframeProps }) => {
|
|
34
|
+
const c = clss(publicClassName, { cssModule });
|
|
35
|
+
const rootClss = mergeClassNames(c(), className);
|
|
36
|
+
const html = useMemo(() => {
|
|
37
|
+
const body = isNotNullish(children)
|
|
38
|
+
? renderToStaticMarkup(children)
|
|
39
|
+
: srcDoc;
|
|
40
|
+
return `<!doctype html><html><body>${body}</body></html>`;
|
|
41
|
+
}, [children, srcDoc]);
|
|
42
|
+
return _jsx("iframe", { ...iframeProps, className: rootClss, srcDoc: html });
|
|
43
|
+
};
|
|
File without changes
|
|
@@ -71,13 +71,22 @@ export type PropsPage = {
|
|
|
71
71
|
* - `'after'` — forces blocks from pages after the current one.
|
|
72
72
|
* - `'both'` — forces blocks on both sides.
|
|
73
73
|
* - `'none'` — no forcing (default behaviour).
|
|
74
|
-
* @property
|
|
74
|
+
* @property stateHandlers - Optional callbacks invoked in response to
|
|
75
|
+
* component state changes.
|
|
76
|
+
* @property stateHandlers.pageChanged - Called whenever the current page
|
|
77
|
+
* changes. Receives the zero-based index of the current page and the
|
|
78
|
+
* corresponding page definition, if available.
|
|
79
|
+
* @property className - Optional additional class name(s) applied to the root
|
|
80
|
+
* element.
|
|
75
81
|
*/
|
|
76
82
|
export type Props = WithClassName<{
|
|
77
83
|
pages?: PropsPage[];
|
|
78
84
|
thresholdOffsetPercent?: number;
|
|
79
85
|
stickyBlocksLazyLoadDistance?: number;
|
|
80
86
|
forceStickBlocks?: 'before' | 'after' | 'both' | 'none';
|
|
87
|
+
stateHandlers?: {
|
|
88
|
+
pageChanged?: (currentPagePos: number, pageData?: PropsPage) => void;
|
|
89
|
+
};
|
|
81
90
|
}>;
|
|
82
91
|
/**
|
|
83
92
|
* Scrollytelling engine component. Orchestrates layered sticky blocks (`back`
|
|
@@ -48,7 +48,7 @@ import cssModule from './styles.module.css';
|
|
|
48
48
|
* back-blocks layer, front-blocks layer, paginated scrolling content, and
|
|
49
49
|
* bottom-bound sentinel.
|
|
50
50
|
*/
|
|
51
|
-
export const Scrllgngn = ({ pages, thresholdOffsetPercent, stickyBlocksLazyLoadDistance = 2, forceStickBlocks, className }) => {
|
|
51
|
+
export const Scrllgngn = ({ pages, thresholdOffsetPercent, stickyBlocksLazyLoadDistance = 2, forceStickBlocks, stateHandlers, className }) => {
|
|
52
52
|
// State
|
|
53
53
|
const [topVisible, setTopVis] = useState(false);
|
|
54
54
|
const [contentVisible, setCntVis] = useState(false);
|
|
@@ -113,11 +113,14 @@ export const Scrllgngn = ({ pages, thresholdOffsetPercent, stickyBlocksLazyLoadD
|
|
|
113
113
|
const handleTopBoundDetect = e => setTopVis(e.ioEntry?.isIntersecting ?? false);
|
|
114
114
|
const handleCntDetect = e => setCntVis(e.ioEntry?.isIntersecting ?? false);
|
|
115
115
|
const handleBtmBoundDetect = e => setBtmVis(e.ioEntry?.isIntersecting ?? false);
|
|
116
|
-
const handlePageChange =
|
|
117
|
-
const curPagePos =
|
|
116
|
+
const handlePageChange = statePages => {
|
|
117
|
+
const curPagePos = statePages.findIndex(page => page.position === 'curr');
|
|
118
118
|
if (curPagePos === -1)
|
|
119
119
|
return;
|
|
120
|
-
|
|
120
|
+
if (curPagePos === currentPagePos)
|
|
121
|
+
return;
|
|
122
|
+
setCurrentPagePos(curPagePos);
|
|
123
|
+
stateHandlers?.pageChanged?.(curPagePos, pages?.[curPagePos]);
|
|
121
124
|
};
|
|
122
125
|
const handleResize = ({ boundingClientRect }) => {
|
|
123
126
|
if (partialBoundingRect === undefined
|
package/components/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
export * as beforeAfter from './BeforeAfter/index.js'
|
|
2
|
-
export * as
|
|
2
|
+
export * as clippable from './Clippable/index.js'
|
|
3
3
|
export * as drawer from './Drawer/index.js'
|
|
4
4
|
export * as eventListener from './EventListener/index.js'
|
|
5
|
+
export * as disclaimer from './Disclaimer/index.js'
|
|
5
6
|
export * as gallery from './Gallery/index.js'
|
|
7
|
+
export * as iframe from './Iframe/index.js'
|
|
6
8
|
export * as image from './Image/index.js'
|
|
7
9
|
export * as intersectionObserver from './IntersectionObserver/index.js'
|
|
8
10
|
export * as overlayer from './Overlayer/index.js'
|
|
9
|
-
export * as resizeObserver from './ResizeObserver/index.js'
|
|
10
11
|
export * as paginator from './Paginator/index.js'
|
|
12
|
+
export * as resizeObserver from './ResizeObserver/index.js'
|
|
11
13
|
export * as scrllgngn from './Scrllgngn/index.js'
|
|
12
14
|
export * as scrollListener from './ScrollListener/index.js'
|
|
13
15
|
export * as sequencer from './Sequencer/index.js'
|
package/components/index.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
export * as beforeAfter from './BeforeAfter/index.js'
|
|
2
|
-
export * as
|
|
2
|
+
export * as clippable from './Clippable/index.js'
|
|
3
3
|
export * as drawer from './Drawer/index.js'
|
|
4
4
|
export * as eventListener from './EventListener/index.js'
|
|
5
|
+
export * as disclaimer from './Disclaimer/index.js'
|
|
5
6
|
export * as gallery from './Gallery/index.js'
|
|
7
|
+
export * as iframe from './Iframe/index.js'
|
|
6
8
|
export * as image from './Image/index.js'
|
|
7
9
|
export * as intersectionObserver from './IntersectionObserver/index.js'
|
|
8
10
|
export * as overlayer from './Overlayer/index.js'
|
|
9
|
-
export * as resizeObserver from './ResizeObserver/index.js'
|
|
10
11
|
export * as paginator from './Paginator/index.js'
|
|
12
|
+
export * as resizeObserver from './ResizeObserver/index.js'
|
|
11
13
|
export * as scrllgngn from './Scrllgngn/index.js'
|
|
12
14
|
export * as scrollListener from './ScrollListener/index.js'
|
|
13
15
|
export * as sequencer from './Sequencer/index.js'
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export declare const beforeAfter = "dsed-before-after";
|
|
2
|
+
export declare const clippable = "dsed-clippable";
|
|
2
3
|
export declare const disclaimer = "dsed-disclaimer";
|
|
3
4
|
export declare const drawer = "dsed-drawer";
|
|
4
5
|
export declare const eventListener = "dsed-event-listener";
|
|
5
6
|
export declare const gallery = "dsed-gallery";
|
|
7
|
+
export declare const iframe = "dsed-iframe";
|
|
6
8
|
export declare const image = "dsed-image";
|
|
7
9
|
export declare const intersectionObserver = "dsed-intersection-observer";
|
|
8
10
|
export declare const overlayer = "dsed-overlayer";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export const beforeAfter = 'dsed-before-after';
|
|
2
|
+
export const clippable = 'dsed-clippable';
|
|
2
3
|
export const disclaimer = 'dsed-disclaimer';
|
|
3
4
|
export const drawer = 'dsed-drawer';
|
|
4
5
|
export const eventListener = 'dsed-event-listener';
|
|
5
6
|
export const gallery = 'dsed-gallery';
|
|
7
|
+
export const iframe = 'dsed-iframe';
|
|
6
8
|
export const image = 'dsed-image';
|
|
7
9
|
export const intersectionObserver = 'dsed-intersection-observer';
|
|
8
10
|
export const overlayer = 'dsed-overlayer';
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -3,5 +3,5 @@ export * as download from './download/index.js'
|
|
|
3
3
|
export * as exists from './exists/index.js'
|
|
4
4
|
export * as move from './move/index.js'
|
|
5
5
|
export * as remove from './remove/index.js'
|
|
6
|
-
export * as upload from './upload/index.js'
|
|
7
6
|
export * as stat from './stat/index.js'
|
|
7
|
+
export * as upload from './upload/index.js'
|
|
@@ -3,5 +3,5 @@ export * as download from './download/index.js'
|
|
|
3
3
|
export * as exists from './exists/index.js'
|
|
4
4
|
export * as move from './move/index.js'
|
|
5
5
|
export * as remove from './remove/index.js'
|
|
6
|
-
export * as upload from './upload/index.js'
|
|
7
6
|
export * as stat from './stat/index.js'
|
|
7
|
+
export * as upload from './upload/index.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as copy from './copy/index.js'
|
|
2
|
-
export * as exists from './exists/index.js'
|
|
3
2
|
export * as download from './download/index.js'
|
|
3
|
+
export * as exists from './exists/index.js'
|
|
4
4
|
export * as generateSignedUrl from './generate-signed-url/index.js'
|
|
5
5
|
export * as getMetadata from './get-metadata/index.js'
|
|
6
6
|
export * as getPermissions from './get-permissions/index.js'
|
|
@@ -8,5 +8,5 @@ export * as move from './move/index.js'
|
|
|
8
8
|
export * as remove from './remove/index.js'
|
|
9
9
|
export * as revokeSignedUrls from './revoke-signed-urls/index.js'
|
|
10
10
|
export * as stat from './stat/index.js'
|
|
11
|
-
export * as updateMetadata from './update-metadata/index.js'
|
|
12
11
|
export * as upload from './upload/index.js'
|
|
12
|
+
export * as updateMetadata from './update-metadata/index.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as copy from './copy/index.js'
|
|
2
|
-
export * as exists from './exists/index.js'
|
|
3
2
|
export * as download from './download/index.js'
|
|
3
|
+
export * as exists from './exists/index.js'
|
|
4
4
|
export * as generateSignedUrl from './generate-signed-url/index.js'
|
|
5
5
|
export * as getMetadata from './get-metadata/index.js'
|
|
6
6
|
export * as getPermissions from './get-permissions/index.js'
|
|
@@ -8,5 +8,5 @@ export * as move from './move/index.js'
|
|
|
8
8
|
export * as remove from './remove/index.js'
|
|
9
9
|
export * as revokeSignedUrls from './revoke-signed-urls/index.js'
|
|
10
10
|
export * as stat from './stat/index.js'
|
|
11
|
-
export * as updateMetadata from './update-metadata/index.js'
|
|
12
11
|
export * as upload from './upload/index.js'
|
|
12
|
+
export * as updateMetadata from './update-metadata/index.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as copyDir from './copy-dir/index.js'
|
|
2
|
-
export * as copyFile from './copy-file/index.js'
|
|
3
2
|
export * as downloadFile from './download-file/index.js'
|
|
3
|
+
export * as copyFile from './copy-file/index.js'
|
|
4
4
|
export * as existsFile from './exists-file/index.js'
|
|
5
5
|
export * as listDir from './list-dir/index.js'
|
|
6
6
|
export * as moveDir from './move-dir/index.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as copyDir from './copy-dir/index.js'
|
|
2
|
-
export * as copyFile from './copy-file/index.js'
|
|
3
2
|
export * as downloadFile from './download-file/index.js'
|
|
3
|
+
export * as copyFile from './copy-file/index.js'
|
|
4
4
|
export * as existsFile from './exists-file/index.js'
|
|
5
5
|
export * as listDir from './list-dir/index.js'
|
|
6
6
|
export * as moveDir from './move-dir/index.js'
|
package/node/files/index.d.ts
CHANGED
package/node/files/index.js
CHANGED
package/node/images/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as create from './create/index.js'
|
|
2
1
|
export * as format from './format/index.js'
|
|
3
2
|
export * as metadata from './metadata/index.js'
|
|
4
3
|
export * as transform from './transform/index.js'
|
|
5
4
|
export * as utils from './utils/index.js'
|
|
5
|
+
export * as create from './create/index.js'
|
package/node/images/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as create from './create/index.js'
|
|
2
1
|
export * as format from './format/index.js'
|
|
3
2
|
export * as metadata from './metadata/index.js'
|
|
4
3
|
export * as transform from './transform/index.js'
|
|
5
4
|
export * as utils from './utils/index.js'
|
|
5
|
+
export * as create from './create/index.js'
|
|
@@ -7,8 +7,8 @@ export * as flip from './flip/index.js'
|
|
|
7
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
|
-
export * as normalize from './normalize/index.js'
|
|
11
10
|
export * as lighten from './lighten/index.js'
|
|
11
|
+
export * as normalize from './normalize/index.js'
|
|
12
12
|
export * as overlay from './overlay/index.js'
|
|
13
13
|
export * as resize from './resize/index.js'
|
|
14
14
|
export * as rotate from './rotate/index.js'
|
|
@@ -7,8 +7,8 @@ export * as flip from './flip/index.js'
|
|
|
7
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
|
-
export * as normalize from './normalize/index.js'
|
|
11
10
|
export * as lighten from './lighten/index.js'
|
|
11
|
+
export * as normalize from './normalize/index.js'
|
|
12
12
|
export * as overlay from './overlay/index.js'
|
|
13
13
|
export * as resize from './resize/index.js'
|
|
14
14
|
export * as rotate from './rotate/index.js'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@design-edito/tools",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.15",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Maxime Fabas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -1360,6 +1360,13 @@
|
|
|
1360
1360
|
"./components/BeforeAfter/index.js": {
|
|
1361
1361
|
"import": "./components/BeforeAfter/index.js"
|
|
1362
1362
|
},
|
|
1363
|
+
"./components/Clippable": {
|
|
1364
|
+
"import": "./components/Clippable/index.js",
|
|
1365
|
+
"types": "./components/Clippable/index.d.ts"
|
|
1366
|
+
},
|
|
1367
|
+
"./components/Clippable/index.js": {
|
|
1368
|
+
"import": "./components/Clippable/index.js"
|
|
1369
|
+
},
|
|
1363
1370
|
"./components/Disclaimer": {
|
|
1364
1371
|
"import": "./components/Disclaimer/index.js",
|
|
1365
1372
|
"types": "./components/Disclaimer/index.d.ts"
|
|
@@ -1388,6 +1395,13 @@
|
|
|
1388
1395
|
"./components/Gallery/index.js": {
|
|
1389
1396
|
"import": "./components/Gallery/index.js"
|
|
1390
1397
|
},
|
|
1398
|
+
"./components/Iframe": {
|
|
1399
|
+
"import": "./components/Iframe/index.js",
|
|
1400
|
+
"types": "./components/Iframe/index.d.ts"
|
|
1401
|
+
},
|
|
1402
|
+
"./components/Iframe/index.js": {
|
|
1403
|
+
"import": "./components/Iframe/index.js"
|
|
1404
|
+
},
|
|
1391
1405
|
"./components/Image": {
|
|
1392
1406
|
"import": "./components/Image/index.js",
|
|
1393
1407
|
"types": "./components/Image/index.d.ts"
|
|
@@ -2332,25 +2346,27 @@
|
|
|
2332
2346
|
}
|
|
2333
2347
|
},
|
|
2334
2348
|
"dependencies": {
|
|
2335
|
-
"@aws-sdk/client-s3": "^3.
|
|
2336
|
-
"@aws-sdk/lib-storage": "^3.
|
|
2349
|
+
"@aws-sdk/client-s3": "^3.1066.0",
|
|
2350
|
+
"@aws-sdk/lib-storage": "^3.1066.0",
|
|
2337
2351
|
"@google-cloud/storage": "^7.19.0",
|
|
2338
|
-
"@inquirer/prompts": "^8.
|
|
2352
|
+
"@inquirer/prompts": "^8.5.2",
|
|
2339
2353
|
"ansi-regex": "^6.2.2",
|
|
2340
2354
|
"archiver": "^7.0.1",
|
|
2341
2355
|
"basic-ftp": "^5.1.0",
|
|
2342
2356
|
"chalk": "^5.6.2",
|
|
2343
2357
|
"express": "^5.2.1",
|
|
2358
|
+
"i": "^0.3.7",
|
|
2344
2359
|
"multer": "^2.0.0",
|
|
2345
|
-
"
|
|
2360
|
+
"npm": "^11.16.0",
|
|
2361
|
+
"preact-render-to-string": "^6.7.0",
|
|
2346
2362
|
"quantize": "^1.0.2",
|
|
2347
|
-
"react": "^19.2.
|
|
2348
|
-
"react-dom": "^19.2.
|
|
2363
|
+
"react": "^19.2.7",
|
|
2364
|
+
"react-dom": "^19.2.7",
|
|
2349
2365
|
"sharp": "^0.34.5",
|
|
2350
2366
|
"ssh2": "^1.17.0",
|
|
2351
|
-
"ssh2-sftp-client": "^12.1.
|
|
2367
|
+
"ssh2-sftp-client": "^12.1.1",
|
|
2352
2368
|
"xss": "^1.0.15",
|
|
2353
|
-
"zod": "^4.3
|
|
2369
|
+
"zod": "^4.4.3"
|
|
2354
2370
|
},
|
|
2355
2371
|
"devDependencies": {
|
|
2356
2372
|
"@preact/preset-vite": "^2.10.3",
|
|
@@ -2359,12 +2375,12 @@
|
|
|
2359
2375
|
"@testing-library/react": "^16.3.2",
|
|
2360
2376
|
"@types/archiver": "^7.0.0",
|
|
2361
2377
|
"@types/express": "^5.0.6",
|
|
2362
|
-
"@types/jsdom": "^28.0.
|
|
2378
|
+
"@types/jsdom": "^28.0.3",
|
|
2363
2379
|
"@types/multer": "^2.1.0",
|
|
2364
|
-
"@types/node": "^25.
|
|
2380
|
+
"@types/node": "^25.9.3",
|
|
2365
2381
|
"@types/prompts": "^2.4.9",
|
|
2366
2382
|
"@types/quantize": "^1.0.2",
|
|
2367
|
-
"@types/react": "^19.2.
|
|
2383
|
+
"@types/react": "^19.2.17",
|
|
2368
2384
|
"@types/react-dom": "^19.2.3",
|
|
2369
2385
|
"@types/semver": "^7.7.1",
|
|
2370
2386
|
"@types/sharp": "^0.31.1",
|
|
@@ -2374,21 +2390,21 @@
|
|
|
2374
2390
|
"@vitejs/plugin-react": "^5.1.3",
|
|
2375
2391
|
"change-case": "^5.4.4",
|
|
2376
2392
|
"chokidar-cli": "^3.0.0",
|
|
2377
|
-
"concurrently": "^
|
|
2378
|
-
"esbuild": "^0.
|
|
2393
|
+
"concurrently": "^10.0.3",
|
|
2394
|
+
"esbuild": "^0.28.0",
|
|
2379
2395
|
"eslint": "^8.44.0",
|
|
2380
2396
|
"eslint-config-standard-with-typescript": "^43.0.1",
|
|
2381
2397
|
"eslint-plugin-import": "^2.32.0",
|
|
2382
2398
|
"eslint-plugin-n": "^16.2.0",
|
|
2383
2399
|
"eslint-plugin-promise": "^6.1.1",
|
|
2384
|
-
"jsdom": "^
|
|
2400
|
+
"jsdom": "^29.1.1",
|
|
2385
2401
|
"prompts": "^2.4.2",
|
|
2386
|
-
"puppeteer": "^
|
|
2387
|
-
"semver": "^7.
|
|
2402
|
+
"puppeteer": "^25.1.0",
|
|
2403
|
+
"semver": "^7.8.4",
|
|
2388
2404
|
"simple-git": "^3.33.0",
|
|
2389
2405
|
"standard": "^17.1.2",
|
|
2390
2406
|
"typescript": "^5.3.3",
|
|
2391
2407
|
"vite": "^6.4.1",
|
|
2392
|
-
"vitest": "^4.1.
|
|
2408
|
+
"vitest": "^4.1.8"
|
|
2393
2409
|
}
|
|
2394
2410
|
}
|