@design-edito/tools 0.5.38 → 0.5.39
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/@react/effects/index.d.ts +1 -0
- package/agnostic/@react/effects/index.js +1 -0
- package/agnostic/@react/effects/use-state-change-dispatch/index.d.ts +22 -0
- package/agnostic/@react/effects/use-state-change-dispatch/index.js +31 -0
- package/agnostic/@react/index.d.ts +1 -0
- package/agnostic/@react/index.js +1 -0
- package/agnostic/arrays/index.d.ts +2 -1
- package/agnostic/arrays/index.js +2 -1
- package/agnostic/arrays/integers-between/index.d.ts +8 -0
- package/agnostic/arrays/integers-between/index.js +11 -0
- package/agnostic/arrays/integers-between/index.test.d.ts +1 -0
- package/agnostic/arrays/integers-between/index.test.js +16 -0
- package/agnostic/colors/index.d.ts +1 -1
- package/agnostic/colors/index.js +1 -1
- package/agnostic/css/index.d.ts +1 -0
- package/agnostic/css/index.js +1 -0
- package/agnostic/css/merge-class-names/index.d.ts +8 -0
- package/agnostic/css/merge-class-names/index.js +23 -0
- package/agnostic/css/merge-class-names/index.test.d.ts +1 -0
- package/agnostic/css/merge-class-names/index.test.js +52 -0
- 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 +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 -0
- package/agnostic/index.js +1 -0
- package/agnostic/misc/index.d.ts +1 -1
- package/agnostic/misc/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/time/index.d.ts +1 -1
- package/agnostic/time/index.js +1 -1
- package/components/BeforeAfter/index.controlled.js +1 -1
- package/components/BeforeAfter/index.js +2 -2
- package/components/Button/index.js +1 -1
- package/components/Clippable/index.js +1 -1
- package/components/Disclaimer/index.d.ts +2 -2
- package/components/Disclaimer/index.js +4 -3
- package/components/Drawer/index.js +4 -3
- package/components/EventListener/index.js +1 -1
- package/components/Gallery/index.js +5 -4
- package/components/Iframe/index.js +1 -1
- package/components/Image/index.d.ts +1 -1
- package/components/Image/index.js +3 -2
- package/components/Input/index.js +1 -1
- package/components/IntersectionObserver/index.js +1 -1
- package/components/JsonEditor/index.js +1 -1
- package/components/JsonEditor/types.d.ts +0 -6
- package/components/JsonEditor/utils.d.ts +0 -5
- package/components/JsonEditor/utils.js +0 -5
- package/components/Lightbox/index.d.ts +12 -12
- package/components/Lightbox/index.js +37 -35
- package/components/Lightbox/store.d.ts +9 -43
- package/components/Lightbox/store.js +51 -73
- package/components/Lightbox/types.d.ts +16 -0
- package/components/Lightbox/types.js +1 -0
- package/components/ListLoader/index.controlled.js +19 -13
- package/components/ListLoader/index.js +19 -3
- package/components/Overlayer/index.js +1 -1
- package/components/Paginator/index.js +4 -3
- package/components/ResizeObserver/index.js +1 -1
- package/components/Scrllgngn/index.d.ts +4 -4
- package/components/Scrllgngn/index.js +4 -3
- package/components/Scrllgngn/types.d.ts +55 -0
- package/components/Scrllgngn/types.js +24 -0
- package/components/Scrllgngn/utils.d.ts +2 -38
- package/components/ScrollListener/index.d.ts +1 -6
- package/components/ScrollListener/index.js +10 -9
- package/components/ScrollListener/types.d.ts +0 -3
- package/components/Select/index.js +1 -1
- package/components/Sequencer/index.d.ts +2 -9
- package/components/Sequencer/index.js +26 -128
- package/components/Sequencer/types.d.ts +30 -0
- package/components/Sequencer/types.js +30 -0
- package/components/Sequencer/utils.d.ts +4 -0
- package/components/Sequencer/utils.js +25 -0
- package/components/ShadowRoot/index.js +1 -1
- package/components/Subtitles/index.js +3 -5
- package/components/Subtitles/utils.d.ts +0 -51
- package/components/Subtitles/utils.js +0 -41
- package/components/Textarea/index.js +1 -1
- package/components/UIModule/index.js +5 -4
- package/components/Video/index.controlled.d.ts +1 -7
- package/components/Video/index.controlled.js +13 -12
- package/components/Video/index.d.ts +0 -8
- package/components/Video/index.js +11 -15
- package/components/Video/types.d.ts +33 -0
- package/components/Video/utils.d.ts +1 -67
- package/components/Video/utils.js +25 -44
- package/components/index.d.ts +2 -2
- package/components/index.js +2 -2
- package/components/utils/index.d.ts +1 -44
- package/components/utils/index.js +1 -83
- package/components/utils/viewport-behaviours/index.d.ts +8 -14
- package/components/utils/viewport-behaviours/index.js +15 -37
- package/components/utils/viewport-behaviours/types.d.ts +3 -9
- package/components/utils/viewport-behaviours/types.js +3 -4
- 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/ftps/directory/index.d.ts +1 -1
- package/node/ftps/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 +3 -3
- package/node/images/transform/operations/index.js +3 -3
- package/node/index.d.ts +2 -2
- package/node/index.js +2 -2
- package/package.json +44 -1
- package/components/ListLoader/utils.d.ts +0 -8
- package/components/ListLoader/utils.js +0 -10
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* - `once` — runs on the first crossing only. The credit is per (verb, trigger) pair
|
|
5
5
|
* and lives for the mount.
|
|
6
|
-
* - `force` — runs even after the reader has taken over the verb's domain. It
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* its way past a disclaimer would empty it of its purpose.
|
|
6
|
+
* - `force` — runs even after the reader has taken over the verb's domain. It is the
|
|
7
|
+
* one way out of a surrender, and the only one: nothing else holds an instruction
|
|
8
|
+
* back.
|
|
10
9
|
*
|
|
11
10
|
* **They are a set, not a sequence.** `'play:once:force'` and `'play:force:once'` are
|
|
12
11
|
* the same instruction, which is what spares the contract an ordering rule.
|
|
@@ -38,10 +37,6 @@ export type ParsedInstruction = {
|
|
|
38
37
|
/**
|
|
39
38
|
* What a component says about one of its verbs.
|
|
40
39
|
*
|
|
41
|
-
* @property kind - Whether the verb starts something or stops it. A suspension — a
|
|
42
|
-
* lm-link gate, typically — holds back `'start'` and lets `'stop'` through, since a
|
|
43
|
-
* verb that quietens a component can never work against a reader who hasn't consented
|
|
44
|
-
* yet.
|
|
45
40
|
* @property domain - Which of the component's controls this verb competes with.
|
|
46
41
|
* `play` and `pause` share `'playback'`, `loud` and `mute` share `'sound'` — so pausing
|
|
47
42
|
* by hand doesn't stop the sound from being cut on the way out. One flag for all of
|
|
@@ -49,7 +44,6 @@ export type ParsedInstruction = {
|
|
|
49
44
|
* @property run - Does the thing. Receives the verb's argument, when it takes one.
|
|
50
45
|
*/
|
|
51
46
|
export type ActionSpec<D extends string = string> = {
|
|
52
|
-
kind: 'start' | 'stop';
|
|
53
47
|
domain: D;
|
|
54
48
|
run: (arg?: string) => void;
|
|
55
49
|
};
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* - `once` — runs on the first crossing only. The credit is per (verb, trigger) pair
|
|
5
5
|
* and lives for the mount.
|
|
6
|
-
* - `force` — runs even after the reader has taken over the verb's domain. It
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* its way past a disclaimer would empty it of its purpose.
|
|
6
|
+
* - `force` — runs even after the reader has taken over the verb's domain. It is the
|
|
7
|
+
* one way out of a surrender, and the only one: nothing else holds an instruction
|
|
8
|
+
* back.
|
|
10
9
|
*
|
|
11
10
|
* **They are a set, not a sequence.** `'play:once:force'` and `'play:force:once'` are
|
|
12
11
|
* the same instruction, which is what spares the contract an ordering rule.
|
|
@@ -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 move from './move/index.js'
|
|
4
3
|
export * as exists from './exists/index.js'
|
|
4
|
+
export * as move from './move/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 move from './move/index.js'
|
|
4
3
|
export * as exists from './exists/index.js'
|
|
4
|
+
export * as move from './move/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 removeFile from './remove-file/index.js'
|
|
9
8
|
export * as removeDir from './remove-dir/index.js'
|
|
9
|
+
export * as removeFile from './remove-file/index.js'
|
|
10
10
|
export * as statFile from './stat-file/index.js'
|
|
11
11
|
export * as uploadFile from './upload-file/index.js'
|
|
@@ -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 removeFile from './remove-file/index.js'
|
|
9
8
|
export * as removeDir from './remove-dir/index.js'
|
|
9
|
+
export * as removeFile from './remove-file/index.js'
|
|
10
10
|
export * as statFile from './stat-file/index.js'
|
|
11
11
|
export * as uploadFile from './upload-file/index.js'
|
package/node/images/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as create from './create/index.js'
|
|
2
2
|
export * as format from './format/index.js'
|
|
3
|
-
export * as metadata from './metadata/index.js'
|
|
4
3
|
export * as transform from './transform/index.js'
|
|
4
|
+
export * as metadata from './metadata/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
2
|
export * as format from './format/index.js'
|
|
3
|
-
export * as metadata from './metadata/index.js'
|
|
4
3
|
export * as transform from './transform/index.js'
|
|
4
|
+
export * as metadata from './metadata/index.js'
|
|
5
5
|
export * as utils from './utils/index.js'
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export * as blur from './blur/index.js'
|
|
2
2
|
export * as brighten from './brighten/index.js'
|
|
3
|
-
export * as extend from './extend/index.js'
|
|
4
3
|
export * as extract from './extract/index.js'
|
|
5
4
|
export * as flatten from './flatten/index.js'
|
|
5
|
+
export * as extend from './extend/index.js'
|
|
6
6
|
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
10
|
export * as lighten from './lighten/index.js'
|
|
11
11
|
export * as normalize from './normalize/index.js'
|
|
12
|
-
export * as overlay from './overlay/index.js'
|
|
13
|
-
export * as resize from './resize/index.js'
|
|
14
12
|
export * as rotate from './rotate/index.js'
|
|
13
|
+
export * as resize from './resize/index.js'
|
|
15
14
|
export * as saturate from './saturate/index.js'
|
|
15
|
+
export * as overlay from './overlay/index.js'
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
export * as blur from './blur/index.js'
|
|
2
2
|
export * as brighten from './brighten/index.js'
|
|
3
|
-
export * as extend from './extend/index.js'
|
|
4
3
|
export * as extract from './extract/index.js'
|
|
5
4
|
export * as flatten from './flatten/index.js'
|
|
5
|
+
export * as extend from './extend/index.js'
|
|
6
6
|
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
10
|
export * as lighten from './lighten/index.js'
|
|
11
11
|
export * as normalize from './normalize/index.js'
|
|
12
|
-
export * as overlay from './overlay/index.js'
|
|
13
|
-
export * as resize from './resize/index.js'
|
|
14
12
|
export * as rotate from './rotate/index.js'
|
|
13
|
+
export * as resize from './resize/index.js'
|
|
15
14
|
export * as saturate from './saturate/index.js'
|
|
15
|
+
export * as overlay from './overlay/index.js'
|
package/node/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * as awsS3 from './@aws-s3/index.js'
|
|
2
|
-
export * as designEdito from './@design-edito/index.js'
|
|
3
2
|
export * as express from './@express/index.js'
|
|
3
|
+
export * as designEdito from './@design-edito/index.js'
|
|
4
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'
|
|
8
8
|
export * as ftps from './ftps/index.js'
|
|
9
|
-
export * as images from './images/index.js'
|
|
10
9
|
export * as process from './process/index.js'
|
|
10
|
+
export * as images from './images/index.js'
|
|
11
11
|
export * as sftp from './sftp/index.js'
|
package/node/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * as awsS3 from './@aws-s3/index.js'
|
|
2
|
-
export * as designEdito from './@design-edito/index.js'
|
|
3
2
|
export * as express from './@express/index.js'
|
|
3
|
+
export * as designEdito from './@design-edito/index.js'
|
|
4
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'
|
|
8
8
|
export * as ftps from './ftps/index.js'
|
|
9
|
-
export * as images from './images/index.js'
|
|
10
9
|
export * as process from './process/index.js'
|
|
10
|
+
export * as images from './images/index.js'
|
|
11
11
|
export * as sftp from './sftp/index.js'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@design-edito/tools",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.39",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Maxime Fabas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,6 +20,27 @@
|
|
|
20
20
|
"import": "./agnostic/index.js",
|
|
21
21
|
"types": "./agnostic/index.d.ts"
|
|
22
22
|
},
|
|
23
|
+
"./agnostic/@react": {
|
|
24
|
+
"import": "./agnostic/@react/index.js",
|
|
25
|
+
"types": "./agnostic/@react/index.d.ts"
|
|
26
|
+
},
|
|
27
|
+
"./agnostic/@react/effects": {
|
|
28
|
+
"import": "./agnostic/@react/effects/index.js",
|
|
29
|
+
"types": "./agnostic/@react/effects/index.d.ts"
|
|
30
|
+
},
|
|
31
|
+
"./agnostic/@react/effects/index.js": {
|
|
32
|
+
"import": "./agnostic/@react/effects/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./agnostic/@react/effects/use-state-change-dispatch": {
|
|
35
|
+
"import": "./agnostic/@react/effects/use-state-change-dispatch/index.js",
|
|
36
|
+
"types": "./agnostic/@react/effects/use-state-change-dispatch/index.d.ts"
|
|
37
|
+
},
|
|
38
|
+
"./agnostic/@react/effects/use-state-change-dispatch/index.js": {
|
|
39
|
+
"import": "./agnostic/@react/effects/use-state-change-dispatch/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./agnostic/@react/index.js": {
|
|
42
|
+
"import": "./agnostic/@react/index.js"
|
|
43
|
+
},
|
|
23
44
|
"./agnostic/arrays": {
|
|
24
45
|
"import": "./agnostic/arrays/index.js",
|
|
25
46
|
"types": "./agnostic/arrays/index.d.ts"
|
|
@@ -41,6 +62,13 @@
|
|
|
41
62
|
"./agnostic/arrays/index.js": {
|
|
42
63
|
"import": "./agnostic/arrays/index.js"
|
|
43
64
|
},
|
|
65
|
+
"./agnostic/arrays/integers-between": {
|
|
66
|
+
"import": "./agnostic/arrays/integers-between/index.js",
|
|
67
|
+
"types": "./agnostic/arrays/integers-between/index.d.ts"
|
|
68
|
+
},
|
|
69
|
+
"./agnostic/arrays/integers-between/index.js": {
|
|
70
|
+
"import": "./agnostic/arrays/integers-between/index.js"
|
|
71
|
+
},
|
|
44
72
|
"./agnostic/arrays/is-array-of": {
|
|
45
73
|
"import": "./agnostic/arrays/is-array-of/index.js",
|
|
46
74
|
"types": "./agnostic/arrays/is-array-of/index.d.ts"
|
|
@@ -213,6 +241,13 @@
|
|
|
213
241
|
"./agnostic/css/is-valid-css-class-name/index.js": {
|
|
214
242
|
"import": "./agnostic/css/is-valid-css-class-name/index.js"
|
|
215
243
|
},
|
|
244
|
+
"./agnostic/css/merge-class-names": {
|
|
245
|
+
"import": "./agnostic/css/merge-class-names/index.js",
|
|
246
|
+
"types": "./agnostic/css/merge-class-names/index.d.ts"
|
|
247
|
+
},
|
|
248
|
+
"./agnostic/css/merge-class-names/index.js": {
|
|
249
|
+
"import": "./agnostic/css/merge-class-names/index.js"
|
|
250
|
+
},
|
|
216
251
|
"./agnostic/css/scale": {
|
|
217
252
|
"import": "./agnostic/css/scale/index.js",
|
|
218
253
|
"types": "./agnostic/css/scale/index.d.ts"
|
|
@@ -1502,6 +1537,10 @@
|
|
|
1502
1537
|
"./components/Lightbox/index.js": {
|
|
1503
1538
|
"import": "./components/Lightbox/index.js"
|
|
1504
1539
|
},
|
|
1540
|
+
"./components/Lightbox/types.js": {
|
|
1541
|
+
"import": "./components/Lightbox/types.js",
|
|
1542
|
+
"types": "./components/Lightbox/types.d.ts"
|
|
1543
|
+
},
|
|
1505
1544
|
"./components/ListLoader": {
|
|
1506
1545
|
"import": "./components/ListLoader/index.js",
|
|
1507
1546
|
"types": "./components/ListLoader/index.d.ts"
|
|
@@ -1537,6 +1576,10 @@
|
|
|
1537
1576
|
"./components/Scrllgngn/index.js": {
|
|
1538
1577
|
"import": "./components/Scrllgngn/index.js"
|
|
1539
1578
|
},
|
|
1579
|
+
"./components/Scrllgngn/types.js": {
|
|
1580
|
+
"import": "./components/Scrllgngn/types.js",
|
|
1581
|
+
"types": "./components/Scrllgngn/types.d.ts"
|
|
1582
|
+
},
|
|
1540
1583
|
"./components/ScrollListener": {
|
|
1541
1584
|
"import": "./components/ScrollListener/index.js",
|
|
1542
1585
|
"types": "./components/ScrollListener/index.d.ts"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lists every integer from `from` to `to`, both included.
|
|
3
|
-
*
|
|
4
|
-
* @param from - Lower bound.
|
|
5
|
-
* @param to - Upper bound. When lower than `from`, the range is empty.
|
|
6
|
-
* @returns The integers in ascending order.
|
|
7
|
-
*/
|
|
8
|
-
export declare function rangeBetween(from: number, to: number): number[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lists every integer from `from` to `to`, both included.
|
|
3
|
-
*
|
|
4
|
-
* @param from - Lower bound.
|
|
5
|
-
* @param to - Upper bound. When lower than `from`, the range is empty.
|
|
6
|
-
* @returns The integers in ascending order.
|
|
7
|
-
*/
|
|
8
|
-
export function rangeBetween(from, to) {
|
|
9
|
-
return Array.from({ length: Math.max(0, to - from + 1) }, (_, pos) => from + pos);
|
|
10
|
-
}
|