@design-edito/tools 0.1.43 → 0.1.45
Sign up to get free protection for your applications and to get access to all the features.
- package/agnostic/arrays/index.d.ts +2 -2
- package/agnostic/arrays/is-array-of/index.d.ts +3 -3
- package/agnostic/arrays/random-pick/index.d.ts +2 -2
- package/agnostic/arrays/random-pick/index.js +13 -5
- package/agnostic/css/index.d.ts +2 -2
- package/agnostic/css/index.js +14 -14
- package/agnostic/errors/index.js +2 -2
- package/agnostic/html/hyper-json/cast/index.js +4 -3
- package/agnostic/html/hyper-json/index.js +5 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +4 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +4 -3
- package/agnostic/html/hyper-json/tree/index.js +4 -3
- package/agnostic/html/hyper-json/utils/index.js +4 -3
- package/agnostic/html/index.js +18 -17
- package/agnostic/html/sanitize/index.js +4 -4
- package/agnostic/html/selector-to-element/index.js +4 -4
- package/agnostic/html/string-to-nodes/index.js +5 -5
- package/agnostic/misc/assert/index.d.ts +4 -2
- package/agnostic/misc/assert/index.js +5 -1
- package/agnostic/misc/index.d.ts +0 -2
- package/agnostic/misc/index.js +21 -19
- package/agnostic/misc/is-constructor-function/index.d.ts +1 -1
- package/agnostic/misc/lorem-ipsum/index.js +14 -6
- package/agnostic/numbers/index.js +8 -8
- package/agnostic/objects/index.js +9 -9
- package/agnostic/strings/index.d.ts +3 -0
- package/agnostic/strings/index.js +8 -2
- package/agnostic/strings/trim/index.d.ts +2 -0
- package/agnostic/strings/trim/index.js +8 -0
- package/agnostic/time/index.js +3 -3
- package/chunks/chunk-2HU2AWWJ.js +35 -0
- package/chunks/chunk-36CTYZYA.js +28 -0
- package/chunks/chunk-65YZMVWZ.js +35 -0
- package/chunks/chunk-6XL25OZX.js +12 -0
- package/chunks/chunk-6Z6GDMOR.js +28 -0
- package/chunks/chunk-72NLUT3X.js +29 -0
- package/chunks/chunk-72U4TDEB.js +127 -0
- package/chunks/chunk-7DNQ6RM2.js +211 -0
- package/chunks/chunk-7K2EL46G.js +2391 -0
- package/chunks/chunk-AQBJ6HNB.js +29 -0
- package/chunks/chunk-B446JIN3.js +29 -0
- package/chunks/chunk-C7SRAQMW.js +29 -0
- package/chunks/chunk-CHUOCTRP.js +26 -0
- package/chunks/chunk-CQEDNACN.js +28 -0
- package/chunks/chunk-CRGUZBZX.js +37 -0
- package/chunks/chunk-E4FJHD5R.js +67 -0
- package/chunks/chunk-FHEUGVMU.js +37 -0
- package/chunks/chunk-FQD3VK47.js +37 -0
- package/chunks/chunk-GGT2PUZH.js +21 -0
- package/chunks/chunk-HNB6B4FO.js +37 -0
- package/chunks/chunk-HP722G2E.js +211 -0
- package/chunks/chunk-HQACEDCF.js +37 -0
- package/chunks/chunk-IECKIGM7.js +2391 -0
- package/chunks/chunk-JJK5733Z.js +211 -0
- package/chunks/chunk-JWF5EKM2.js +127 -0
- package/chunks/chunk-JYW5L62E.js +211 -0
- package/chunks/chunk-LLGU4W6F.js +37 -0
- package/chunks/chunk-MTT7TVR3.js +127 -0
- package/chunks/chunk-MW3KNVTG.js +29 -0
- package/chunks/chunk-N37FT2RW.js +2391 -0
- package/chunks/chunk-NHQVXC4Y.js +2391 -0
- package/chunks/chunk-P2H6PV4O.js +26 -0
- package/chunks/chunk-PIIE3634.js +37 -0
- package/chunks/chunk-QAQZEKIF.js +20 -0
- package/chunks/chunk-RDQJSWRC.js +127 -0
- package/chunks/chunk-RX3BKRJU.js +2407 -0
- package/chunks/chunk-SA2IY5LN.js +35 -0
- package/chunks/chunk-SBAY4ZKE.js +211 -0
- package/chunks/chunk-SJLH36CH.js +26 -0
- package/chunks/chunk-SKBOSWM2.js +35 -0
- package/chunks/chunk-TIER4TF4.js +26 -0
- package/chunks/chunk-TL3JMADI.js +2391 -0
- package/chunks/chunk-WAMSK4A3.js +67 -0
- package/chunks/chunk-WC2LQPQP.js +26 -0
- package/chunks/chunk-X5HMM3LD.js +35 -0
- package/chunks/chunk-XB3EGDBI.js +127 -0
- package/chunks/chunk-XWU7O5KD.js +211 -0
- package/chunks/chunk-YCZQAM7E.js +2407 -0
- package/chunks/chunk-YVHJ7TUJ.js +211 -0
- package/chunks/chunk-ZBBU2P4D.js +28 -0
- package/chunks/chunk-ZNPRJEP5.js +28 -0
- package/node/files/index.js +3 -3
- package/package.json +1 -1
- package/shared/errors/index.d.ts +38 -1
package/agnostic/html/index.js
CHANGED
@@ -1,49 +1,50 @@
|
|
1
|
+
import {
|
2
|
+
stringToNodes
|
3
|
+
} from "../../chunks/chunk-ZBBU2P4D.js";
|
1
4
|
import {
|
2
5
|
selectorToElement
|
3
|
-
} from "../../chunks/chunk-
|
6
|
+
} from "../../chunks/chunk-SKBOSWM2.js";
|
7
|
+
import {
|
8
|
+
Sanitize
|
9
|
+
} from "../../chunks/chunk-XB3EGDBI.js";
|
4
10
|
import {
|
5
11
|
HyperJson
|
6
|
-
} from "../../chunks/chunk-
|
7
|
-
import "../../chunks/chunk-
|
12
|
+
} from "../../chunks/chunk-FHEUGVMU.js";
|
13
|
+
import "../../chunks/chunk-YCZQAM7E.js";
|
8
14
|
import "../../chunks/chunk-QAVYONH6.js";
|
9
15
|
import "../../chunks/chunk-XEQ2PBT2.js";
|
10
16
|
import "../../chunks/chunk-FHLCPVND.js";
|
11
|
-
import "../../chunks/chunk-
|
17
|
+
import "../../chunks/chunk-QAQZEKIF.js";
|
12
18
|
import "../../chunks/chunk-UT2J62LH.js";
|
13
19
|
import "../../chunks/chunk-SXRWMH3U.js";
|
14
20
|
import "../../chunks/chunk-BKO7GLC2.js";
|
15
21
|
import "../../chunks/chunk-RW7VAKJW.js";
|
16
|
-
import {
|
17
|
-
getPositionInsideParent
|
18
|
-
} from "../../chunks/chunk-VTPRO4NJ.js";
|
19
22
|
import {
|
20
23
|
getNodeAncestors
|
21
24
|
} from "../../chunks/chunk-LUPVHC73.js";
|
25
|
+
import {
|
26
|
+
getPositionInsideParent
|
27
|
+
} from "../../chunks/chunk-VTPRO4NJ.js";
|
22
28
|
import {
|
23
29
|
insertNode
|
24
30
|
} from "../../chunks/chunk-XA4HVHJ4.js";
|
25
31
|
import {
|
26
32
|
Placeholders
|
27
33
|
} from "../../chunks/chunk-VYW4IADX.js";
|
28
|
-
import {
|
29
|
-
stringToNodes
|
30
|
-
} from "../../chunks/chunk-EX7FS6IR.js";
|
31
|
-
import {
|
32
|
-
Sanitize
|
33
|
-
} from "../../chunks/chunk-WXXW6YLW.js";
|
34
34
|
import "../../chunks/chunk-E6MSDKON.js";
|
35
|
-
import "../../chunks/chunk-YDIBNEGA.js";
|
36
35
|
import "../../chunks/chunk-XNF5MLCQ.js";
|
36
|
+
import "../../chunks/chunk-YDIBNEGA.js";
|
37
37
|
import "../../chunks/chunk-JMU5PDBD.js";
|
38
|
+
import "../../chunks/chunk-6XL25OZX.js";
|
38
39
|
import "../../chunks/chunk-ZTDVUXPR.js";
|
39
|
-
import "../../chunks/chunk-
|
40
|
+
import "../../chunks/chunk-TIER4TF4.js";
|
40
41
|
import "../../chunks/chunk-FR5H2OCV.js";
|
41
42
|
import "../../chunks/chunk-S2NMAH7K.js";
|
42
43
|
import "../../chunks/chunk-LV2VMOWR.js";
|
43
44
|
import "../../chunks/chunk-RLJOYG64.js";
|
44
|
-
import "../../chunks/chunk-
|
45
|
-
import "../../chunks/chunk-FENXVJYO.js";
|
45
|
+
import "../../chunks/chunk-WH6BPDAC.js";
|
46
46
|
import "../../chunks/chunk-QHLQVR3E.js";
|
47
|
+
import "../../chunks/chunk-FENXVJYO.js";
|
47
48
|
|
48
49
|
// src/agnostic/html/index.ts
|
49
50
|
var Html;
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import {
|
2
2
|
Sanitize
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-XB3EGDBI.js";
|
4
|
+
import "../../../chunks/chunk-TIER4TF4.js";
|
5
5
|
import "../../../chunks/chunk-FR5H2OCV.js";
|
6
6
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
7
7
|
import "../../../chunks/chunk-LV2VMOWR.js";
|
8
8
|
import "../../../chunks/chunk-RLJOYG64.js";
|
9
|
-
import "../../../chunks/chunk-
|
10
|
-
import "../../../chunks/chunk-FENXVJYO.js";
|
9
|
+
import "../../../chunks/chunk-WH6BPDAC.js";
|
11
10
|
import "../../../chunks/chunk-QHLQVR3E.js";
|
11
|
+
import "../../../chunks/chunk-FENXVJYO.js";
|
12
12
|
export {
|
13
13
|
Sanitize
|
14
14
|
};
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import {
|
2
2
|
selectorToElement
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-SKBOSWM2.js";
|
4
|
+
import "../../../chunks/chunk-TIER4TF4.js";
|
5
5
|
import "../../../chunks/chunk-FR5H2OCV.js";
|
6
6
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
7
7
|
import "../../../chunks/chunk-LV2VMOWR.js";
|
8
8
|
import "../../../chunks/chunk-RLJOYG64.js";
|
9
|
-
import "../../../chunks/chunk-
|
10
|
-
import "../../../chunks/chunk-FENXVJYO.js";
|
9
|
+
import "../../../chunks/chunk-WH6BPDAC.js";
|
11
10
|
import "../../../chunks/chunk-QHLQVR3E.js";
|
11
|
+
import "../../../chunks/chunk-FENXVJYO.js";
|
12
12
|
export {
|
13
13
|
selectorToElement
|
14
14
|
};
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import {
|
2
2
|
stringToNodes
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-
|
5
|
-
import "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-ZBBU2P4D.js";
|
4
|
+
import "../../../chunks/chunk-XB3EGDBI.js";
|
5
|
+
import "../../../chunks/chunk-TIER4TF4.js";
|
6
6
|
import "../../../chunks/chunk-FR5H2OCV.js";
|
7
7
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
8
8
|
import "../../../chunks/chunk-LV2VMOWR.js";
|
9
9
|
import "../../../chunks/chunk-RLJOYG64.js";
|
10
|
-
import "../../../chunks/chunk-
|
11
|
-
import "../../../chunks/chunk-FENXVJYO.js";
|
10
|
+
import "../../../chunks/chunk-WH6BPDAC.js";
|
12
11
|
import "../../../chunks/chunk-QHLQVR3E.js";
|
12
|
+
import "../../../chunks/chunk-FENXVJYO.js";
|
13
13
|
export {
|
14
14
|
stringToNodes
|
15
15
|
};
|
@@ -1,5 +1,7 @@
|
|
1
|
+
import { Outcome } from '../outcome';
|
1
2
|
export declare namespace Assert {
|
2
|
-
type Assertion = (() => boolean) | boolean;
|
3
|
-
export function assert(label: string, assertion: Assertion | Array<Assertion>):
|
3
|
+
type Assertion = (() => boolean) | (() => Promise<boolean>) | boolean;
|
4
|
+
export function assert(label: string, assertion: Assertion | Array<Assertion> | Map<string, Assertion> | Record<string, Assertion>): Promise<Outcome.Either<string, string>>;
|
5
|
+
export function assertVerbose(label: string, assertion: Assertion | Array<Assertion> | Map<string, Assertion>): Promise<void | Outcome.Success<string>>;
|
4
6
|
export {};
|
5
7
|
}
|
@@ -1,6 +1,10 @@
|
|
1
1
|
import {
|
2
2
|
Assert
|
3
|
-
} from "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-WAMSK4A3.js";
|
4
|
+
import "../../../chunks/chunk-JMU5PDBD.js";
|
5
|
+
import "../../../chunks/chunk-WH6BPDAC.js";
|
6
|
+
import "../../../chunks/chunk-QHLQVR3E.js";
|
7
|
+
import "../../../chunks/chunk-FENXVJYO.js";
|
4
8
|
export {
|
5
9
|
Assert
|
6
10
|
};
|
package/agnostic/misc/index.d.ts
CHANGED
@@ -7,7 +7,6 @@ import { ConstructorFunction as ConstructorFunctionType, isConstructorFunction a
|
|
7
7
|
import { Nullish as NullishType, isNullish as isNullishFunc, isNotNullish as isNotNullishFunc } from './is-nullish';
|
8
8
|
import { Logs as LogsNamespace } from './logs';
|
9
9
|
import { LoremIpsum as LoremIpsumNamespace } from './lorem-ipsum';
|
10
|
-
import { Random as RandomNamespace } from '../random';
|
11
10
|
export declare namespace Misc {
|
12
11
|
export import Assert = AssertNamespace;
|
13
12
|
export import Cast = CastNamespace;
|
@@ -22,5 +21,4 @@ export declare namespace Misc {
|
|
22
21
|
const isNotNullish: typeof isNotNullishFunc;
|
23
22
|
export import Logs = LogsNamespace;
|
24
23
|
export import LoremIpsum = LoremIpsumNamespace;
|
25
|
-
export import Random = RandomNamespace;
|
26
24
|
}
|
package/agnostic/misc/index.js
CHANGED
@@ -5,40 +5,43 @@ import "../../chunks/chunk-RASMASS4.js";
|
|
5
5
|
import "../../chunks/chunk-L3OCRR3V.js";
|
6
6
|
import "../../chunks/chunk-H4PP6AHP.js";
|
7
7
|
import {
|
8
|
-
|
9
|
-
} from "../../chunks/chunk-
|
8
|
+
Assert
|
9
|
+
} from "../../chunks/chunk-WAMSK4A3.js";
|
10
|
+
import "../../chunks/chunk-JMU5PDBD.js";
|
10
11
|
import {
|
11
12
|
Cast
|
12
13
|
} from "../../chunks/chunk-SNJJII7A.js";
|
14
|
+
import {
|
15
|
+
Crawler
|
16
|
+
} from "../../chunks/chunk-YUP434IY.js";
|
13
17
|
import {
|
14
18
|
getCurrentDownlink
|
15
19
|
} from "../../chunks/chunk-7AWTHZLY.js";
|
16
20
|
import {
|
17
21
|
LoremIpsum
|
18
|
-
} from "../../chunks/chunk-
|
22
|
+
} from "../../chunks/chunk-7DNQ6RM2.js";
|
19
23
|
import "../../chunks/chunk-4CIS3R7T.js";
|
24
|
+
import "../../chunks/chunk-YS6WMSWC.js";
|
25
|
+
import "../../chunks/chunk-AQBJ6HNB.js";
|
26
|
+
import "../../chunks/chunk-RLAZR3NL.js";
|
27
|
+
import "../../chunks/chunk-6RGDWX4A.js";
|
20
28
|
import {
|
21
|
-
|
22
|
-
} from "../../chunks/chunk-
|
29
|
+
isConstructorFunction
|
30
|
+
} from "../../chunks/chunk-RCO57B6F.js";
|
31
|
+
import "../../chunks/chunk-S32K7POB.js";
|
32
|
+
import "../../chunks/chunk-D3ERTRDW.js";
|
33
|
+
import "../../chunks/chunk-75BICI4L.js";
|
34
|
+
import "../../chunks/chunk-OGBUSUE6.js";
|
35
|
+
import "../../chunks/chunk-TIER4TF4.js";
|
23
36
|
import {
|
24
37
|
Crossenv
|
25
38
|
} from "../../chunks/chunk-FR5H2OCV.js";
|
26
39
|
import "../../chunks/chunk-S2NMAH7K.js";
|
27
40
|
import "../../chunks/chunk-LV2VMOWR.js";
|
28
41
|
import "../../chunks/chunk-RLJOYG64.js";
|
29
|
-
import
|
30
|
-
|
31
|
-
|
32
|
-
import "../../chunks/chunk-D3ERTRDW.js";
|
33
|
-
import "../../chunks/chunk-75BICI4L.js";
|
34
|
-
import "../../chunks/chunk-OGBUSUE6.js";
|
35
|
-
import "../../chunks/chunk-YS6WMSWC.js";
|
36
|
-
import "../../chunks/chunk-RLAZR3NL.js";
|
37
|
-
import "../../chunks/chunk-FCU6IHKD.js";
|
38
|
-
import "../../chunks/chunk-6RGDWX4A.js";
|
39
|
-
import {
|
40
|
-
isConstructorFunction
|
41
|
-
} from "../../chunks/chunk-RCO57B6F.js";
|
42
|
+
import "../../chunks/chunk-WH6BPDAC.js";
|
43
|
+
import "../../chunks/chunk-QHLQVR3E.js";
|
44
|
+
import "../../chunks/chunk-FENXVJYO.js";
|
42
45
|
import "../../chunks/chunk-QXAJXTXV.js";
|
43
46
|
import {
|
44
47
|
isNotNullish,
|
@@ -60,7 +63,6 @@ var Misc;
|
|
60
63
|
Misc2.isNotNullish = isNotNullish;
|
61
64
|
Misc2.Logs = Logs;
|
62
65
|
Misc2.LoremIpsum = LoremIpsum;
|
63
|
-
Misc2.Random = Random;
|
64
66
|
})(Misc || (Misc = {}));
|
65
67
|
export {
|
66
68
|
Misc
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export type ConstructorFunction = new (...args: any[]) =>
|
1
|
+
export type ConstructorFunction<T extends any = any> = new (...args: any[]) => T;
|
2
2
|
export declare function isConstructorFunction(input: unknown): input is ConstructorFunction;
|
@@ -1,15 +1,23 @@
|
|
1
1
|
import {
|
2
2
|
LoremIpsum
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-S32K7POB.js";
|
5
|
-
import "../../../chunks/chunk-D3ERTRDW.js";
|
6
|
-
import "../../../chunks/chunk-75BICI4L.js";
|
7
|
-
import "../../../chunks/chunk-OGBUSUE6.js";
|
3
|
+
} from "../../../chunks/chunk-7DNQ6RM2.js";
|
8
4
|
import "../../../chunks/chunk-YS6WMSWC.js";
|
5
|
+
import "../../../chunks/chunk-AQBJ6HNB.js";
|
9
6
|
import "../../../chunks/chunk-RLAZR3NL.js";
|
10
|
-
import "../../../chunks/chunk-FCU6IHKD.js";
|
11
7
|
import "../../../chunks/chunk-6RGDWX4A.js";
|
12
8
|
import "../../../chunks/chunk-RCO57B6F.js";
|
9
|
+
import "../../../chunks/chunk-S32K7POB.js";
|
10
|
+
import "../../../chunks/chunk-D3ERTRDW.js";
|
11
|
+
import "../../../chunks/chunk-75BICI4L.js";
|
12
|
+
import "../../../chunks/chunk-OGBUSUE6.js";
|
13
|
+
import "../../../chunks/chunk-TIER4TF4.js";
|
14
|
+
import "../../../chunks/chunk-FR5H2OCV.js";
|
15
|
+
import "../../../chunks/chunk-S2NMAH7K.js";
|
16
|
+
import "../../../chunks/chunk-LV2VMOWR.js";
|
17
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
18
|
+
import "../../../chunks/chunk-WH6BPDAC.js";
|
19
|
+
import "../../../chunks/chunk-QHLQVR3E.js";
|
20
|
+
import "../../../chunks/chunk-FENXVJYO.js";
|
13
21
|
export {
|
14
22
|
LoremIpsum
|
15
23
|
};
|
@@ -1,19 +1,19 @@
|
|
1
|
-
import {
|
2
|
-
createScale,
|
3
|
-
getHarmonic
|
4
|
-
} from "../../chunks/chunk-UYTXXUU7.js";
|
5
1
|
import {
|
6
2
|
absoluteModulo
|
7
3
|
} from "../../chunks/chunk-DNIOWD7K.js";
|
8
4
|
import {
|
9
|
-
|
10
|
-
} from "../../chunks/chunk-
|
5
|
+
interpolate
|
6
|
+
} from "../../chunks/chunk-BJAYUP7M.js";
|
7
|
+
import {
|
8
|
+
createScale,
|
9
|
+
getHarmonic
|
10
|
+
} from "../../chunks/chunk-UYTXXUU7.js";
|
11
11
|
import {
|
12
12
|
round
|
13
13
|
} from "../../chunks/chunk-32IRF4OP.js";
|
14
14
|
import {
|
15
|
-
|
16
|
-
} from "../../chunks/chunk-
|
15
|
+
clamp
|
16
|
+
} from "../../chunks/chunk-OSAXBA7G.js";
|
17
17
|
|
18
18
|
// src/agnostic/numbers/index.ts
|
19
19
|
var Numbers;
|
@@ -1,29 +1,29 @@
|
|
1
|
+
import {
|
2
|
+
Validation
|
3
|
+
} from "../../chunks/chunk-FPEW3A27.js";
|
1
4
|
import {
|
2
5
|
Enums
|
3
6
|
} from "../../chunks/chunk-WOAYU6LB.js";
|
4
7
|
import "../../chunks/chunk-E6MSDKON.js";
|
5
|
-
import {
|
6
|
-
deepGetProperty
|
7
|
-
} from "../../chunks/chunk-SKMCIFS3.js";
|
8
8
|
import {
|
9
9
|
flattenGetters
|
10
10
|
} from "../../chunks/chunk-VFJYLXCI.js";
|
11
|
+
import {
|
12
|
+
deepGetProperty
|
13
|
+
} from "../../chunks/chunk-SKMCIFS3.js";
|
11
14
|
import {
|
12
15
|
isNonNullObject,
|
13
16
|
isObject
|
14
17
|
} from "../../chunks/chunk-HQLRJ7XW.js";
|
15
|
-
import {
|
16
|
-
isRecord
|
17
|
-
} from "../../chunks/chunk-YDIBNEGA.js";
|
18
18
|
import {
|
19
19
|
recordFormat
|
20
20
|
} from "../../chunks/chunk-YP64J65L.js";
|
21
|
-
import {
|
22
|
-
Validation
|
23
|
-
} from "../../chunks/chunk-FPEW3A27.js";
|
24
21
|
import {
|
25
22
|
recordMap
|
26
23
|
} from "../../chunks/chunk-XNF5MLCQ.js";
|
24
|
+
import {
|
25
|
+
isRecord
|
26
|
+
} from "../../chunks/chunk-YDIBNEGA.js";
|
27
27
|
import "../../chunks/chunk-SNJJII7A.js";
|
28
28
|
import "../../chunks/chunk-QXAJXTXV.js";
|
29
29
|
import "../../chunks/chunk-HC6ZOHCS.js";
|
@@ -3,6 +3,7 @@ import { matches as matchesFunc, matchesSome as matchesSomeFunc, matchesEvery as
|
|
3
3
|
import { replaceAll as replaceAllFunc } from './replace-all';
|
4
4
|
import { normalizeIndent as normalizeIndentFunc } from './normalize-indent';
|
5
5
|
import { toAlphanum as toAlphanumFunc } from './to-alphanum';
|
6
|
+
import { trimStart as trimStartFunc, trimEnd as trimEndFunc } from './trim';
|
6
7
|
export declare namespace Strings {
|
7
8
|
export import CharCodes = CharCodesNamespace;
|
8
9
|
const matches: typeof matchesFunc;
|
@@ -11,4 +12,6 @@ export declare namespace Strings {
|
|
11
12
|
const normalizeIndent: typeof normalizeIndentFunc;
|
12
13
|
const replaceAll: typeof replaceAllFunc;
|
13
14
|
const toAlphanum: typeof toAlphanumFunc;
|
15
|
+
const trimStart: typeof trimStartFunc;
|
16
|
+
const trimEnd: typeof trimEndFunc;
|
14
17
|
}
|
@@ -2,13 +2,17 @@ import {
|
|
2
2
|
toAlphanum
|
3
3
|
} from "../../chunks/chunk-COVPTTAD.js";
|
4
4
|
import {
|
5
|
-
|
6
|
-
|
5
|
+
trimEnd,
|
6
|
+
trimStart
|
7
|
+
} from "../../chunks/chunk-6XL25OZX.js";
|
7
8
|
import {
|
8
9
|
matches,
|
9
10
|
matchesEvery,
|
10
11
|
matchesSome
|
11
12
|
} from "../../chunks/chunk-LQFKUNVQ.js";
|
13
|
+
import {
|
14
|
+
CharCodes
|
15
|
+
} from "../../chunks/chunk-34U4HX4V.js";
|
12
16
|
import {
|
13
17
|
replaceAll
|
14
18
|
} from "../../chunks/chunk-ZTDVUXPR.js";
|
@@ -26,6 +30,8 @@ var Strings;
|
|
26
30
|
Strings2.normalizeIndent = normalizeIndent;
|
27
31
|
Strings2.replaceAll = replaceAll;
|
28
32
|
Strings2.toAlphanum = toAlphanum;
|
33
|
+
Strings2.trimStart = trimStart;
|
34
|
+
Strings2.trimEnd = trimEnd;
|
29
35
|
})(Strings || (Strings = {}));
|
30
36
|
export {
|
31
37
|
Strings
|
package/agnostic/time/index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
timeout
|
3
|
-
} from "../../chunks/chunk-Z7ZDDBV5.js";
|
4
1
|
import {
|
5
2
|
Duration
|
6
3
|
} from "../../chunks/chunk-6NYUQXJT.js";
|
4
|
+
import {
|
5
|
+
timeout
|
6
|
+
} from "../../chunks/chunk-Z7ZDDBV5.js";
|
7
7
|
import {
|
8
8
|
Transitions
|
9
9
|
} from "../../chunks/chunk-ENMBK6H7.js";
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import {
|
2
|
+
register
|
3
|
+
} from "./chunk-WC2LQPQP.js";
|
4
|
+
|
5
|
+
// src/agnostic/html/selector-to-element/index.ts
|
6
|
+
function selectorToElement(selector, documentObj) {
|
7
|
+
const actualDocument = documentObj ?? window.document;
|
8
|
+
if (actualDocument === null) throw register.getError("no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */, "The optional second parameter expects a Document object");
|
9
|
+
const tagRegexp = /^[A-Za-z]+/;
|
10
|
+
const idRegexp = /#[A-Za-z]+[\w\-\:]*/;
|
11
|
+
const classRegexp = /\.[A-Za-z]+[\w\-]*/;
|
12
|
+
const attributeRegexp = /\[[A-Za-z]+[\w\-]*(="[\w\-]+")?\]/;
|
13
|
+
const matchedTags = selector.match(tagRegexp) ?? [];
|
14
|
+
const matchedIds = selector.match(idRegexp) ?? [];
|
15
|
+
const matchedClasses = selector.match(classRegexp) ?? [];
|
16
|
+
const matchedAttrs = selector.match(attributeRegexp) ?? [];
|
17
|
+
const tag = matchedTags[matchedTags.length - 1] ?? "div";
|
18
|
+
const id = matchedIds[matchedIds.length - 1] ?? null;
|
19
|
+
const classes = matchedClasses.map((matchedClass) => matchedClass.replace(/^\./, ""));
|
20
|
+
const attributes = matchedAttrs.map((matchedAttr) => matchedAttr.replace(/^\[/, "").replace(/\]$/, "").split("="));
|
21
|
+
const element = actualDocument.createElement(tag);
|
22
|
+
if (id !== null) {
|
23
|
+
element.id = id;
|
24
|
+
}
|
25
|
+
element.classList.add(...classes);
|
26
|
+
attributes.forEach(([name, value = ""]) => {
|
27
|
+
if (name === void 0) return;
|
28
|
+
element.setAttribute(name, value);
|
29
|
+
});
|
30
|
+
return element;
|
31
|
+
}
|
32
|
+
|
33
|
+
export {
|
34
|
+
selectorToElement
|
35
|
+
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import {
|
2
|
+
Sanitize
|
3
|
+
} from "./chunk-JWF5EKM2.js";
|
4
|
+
import {
|
5
|
+
register
|
6
|
+
} from "./chunk-CHUOCTRP.js";
|
7
|
+
|
8
|
+
// src/agnostic/html/string-to-nodes/index.ts
|
9
|
+
function stringToNodes(dirtyStr, options) {
|
10
|
+
const actualDocument = options?.documentObj ?? window.document;
|
11
|
+
if (actualDocument === null) throw register.getError("no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */, "See documentObj in the options object");
|
12
|
+
const sanitizeOptions = {
|
13
|
+
...options?.sanitize,
|
14
|
+
documentObj: options?.sanitize?.documentObj ?? options?.documentObj
|
15
|
+
};
|
16
|
+
const str = options?.sanitize !== void 0 ? Sanitize.sanitize(dirtyStr, sanitizeOptions) : dirtyStr;
|
17
|
+
const wrapperDiv = actualDocument.createElement("div");
|
18
|
+
wrapperDiv.innerHTML = str;
|
19
|
+
const nodes = Array.from(wrapperDiv.childNodes).filter((node) => {
|
20
|
+
const allowedNodeTypes = [Node.ELEMENT_NODE, Node.TEXT_NODE];
|
21
|
+
return allowedNodeTypes.includes(node.nodeType);
|
22
|
+
});
|
23
|
+
return nodes;
|
24
|
+
}
|
25
|
+
|
26
|
+
export {
|
27
|
+
stringToNodes
|
28
|
+
};
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import {
|
2
|
+
register
|
3
|
+
} from "./chunk-SJLH36CH.js";
|
4
|
+
|
5
|
+
// src/agnostic/html/selector-to-element/index.ts
|
6
|
+
function selectorToElement(selector, documentObj) {
|
7
|
+
const actualDocument = documentObj ?? window.document;
|
8
|
+
if (actualDocument === null) throw register.getError("no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */, "The optional second parameter expects a Document object");
|
9
|
+
const tagRegexp = /^[A-Za-z]+/;
|
10
|
+
const idRegexp = /#[A-Za-z]+[\w\-\:]*/;
|
11
|
+
const classRegexp = /\.[A-Za-z]+[\w\-]*/;
|
12
|
+
const attributeRegexp = /\[[A-Za-z]+[\w\-]*(="[\w\-]+")?\]/;
|
13
|
+
const matchedTags = selector.match(tagRegexp) ?? [];
|
14
|
+
const matchedIds = selector.match(idRegexp) ?? [];
|
15
|
+
const matchedClasses = selector.match(classRegexp) ?? [];
|
16
|
+
const matchedAttrs = selector.match(attributeRegexp) ?? [];
|
17
|
+
const tag = matchedTags[matchedTags.length - 1] ?? "div";
|
18
|
+
const id = matchedIds[matchedIds.length - 1] ?? null;
|
19
|
+
const classes = matchedClasses.map((matchedClass) => matchedClass.replace(/^\./, ""));
|
20
|
+
const attributes = matchedAttrs.map((matchedAttr) => matchedAttr.replace(/^\[/, "").replace(/\]$/, "").split("="));
|
21
|
+
const element = actualDocument.createElement(tag);
|
22
|
+
if (id !== null) {
|
23
|
+
element.id = id;
|
24
|
+
}
|
25
|
+
element.classList.add(...classes);
|
26
|
+
attributes.forEach(([name, value = ""]) => {
|
27
|
+
if (name === void 0) return;
|
28
|
+
element.setAttribute(name, value);
|
29
|
+
});
|
30
|
+
return element;
|
31
|
+
}
|
32
|
+
|
33
|
+
export {
|
34
|
+
selectorToElement
|
35
|
+
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import {
|
2
|
+
Sanitize
|
3
|
+
} from "./chunk-MTT7TVR3.js";
|
4
|
+
import {
|
5
|
+
register
|
6
|
+
} from "./chunk-WC2LQPQP.js";
|
7
|
+
|
8
|
+
// src/agnostic/html/string-to-nodes/index.ts
|
9
|
+
function stringToNodes(dirtyStr, options) {
|
10
|
+
const actualDocument = options?.documentObj ?? window.document;
|
11
|
+
if (actualDocument === null) throw register.getError("no-window-document-on-runtime-please-provide" /* NO_DOCUMENT_PLEASE_PROVIDE */, "See documentObj in the options object");
|
12
|
+
const sanitizeOptions = {
|
13
|
+
...options?.sanitize,
|
14
|
+
documentObj: options?.sanitize?.documentObj ?? options?.documentObj
|
15
|
+
};
|
16
|
+
const str = options?.sanitize !== void 0 ? Sanitize.sanitize(dirtyStr, sanitizeOptions) : dirtyStr;
|
17
|
+
const wrapperDiv = actualDocument.createElement("div");
|
18
|
+
wrapperDiv.innerHTML = str;
|
19
|
+
const nodes = Array.from(wrapperDiv.childNodes).filter((node) => {
|
20
|
+
const allowedNodeTypes = [Node.ELEMENT_NODE, Node.TEXT_NODE];
|
21
|
+
return allowedNodeTypes.includes(node.nodeType);
|
22
|
+
});
|
23
|
+
return nodes;
|
24
|
+
}
|
25
|
+
|
26
|
+
export {
|
27
|
+
stringToNodes
|
28
|
+
};
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import {
|
2
|
+
register
|
3
|
+
} from "./chunk-SJLH36CH.js";
|
4
|
+
|
5
|
+
// src/agnostic/arrays/random-pick/index.ts
|
6
|
+
function randomPick(arr, exclude = []) {
|
7
|
+
const filteredArr = [...arr].filter((elt) => !exclude.includes(elt));
|
8
|
+
const length = filteredArr.length;
|
9
|
+
if (length === 0) throw register.getError("impossible-to-pick-in-array" /* IMPOSSIBLE_TO_PICK_IN_ARRAY */, arr);
|
10
|
+
const pos = Math.floor(Math.random() * length);
|
11
|
+
const found = filteredArr[pos];
|
12
|
+
return found;
|
13
|
+
}
|
14
|
+
function randomPickMany(howMuch, arr, exclude = []) {
|
15
|
+
const grindedArr = [...arr];
|
16
|
+
const pickedSelection = [];
|
17
|
+
for (let i = 0; i < howMuch; i++) {
|
18
|
+
const picked = randomPick(grindedArr, exclude);
|
19
|
+
const indexOfPicked = grindedArr.indexOf(picked);
|
20
|
+
grindedArr.splice(indexOfPicked, 1);
|
21
|
+
pickedSelection.push(picked);
|
22
|
+
}
|
23
|
+
return pickedSelection;
|
24
|
+
}
|
25
|
+
|
26
|
+
export {
|
27
|
+
randomPick,
|
28
|
+
randomPickMany
|
29
|
+
};
|