@design-edito/tools 0.1.43 → 0.1.44
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 +15 -15
- package/agnostic/errors/index.js +2 -2
- package/agnostic/html/hyper-json/cast/index.js +4 -4
- package/agnostic/html/hyper-json/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +4 -4
- package/agnostic/html/hyper-json/tree/index.js +4 -4
- package/agnostic/html/hyper-json/utils/index.js +4 -4
- package/agnostic/html/index.js +23 -23
- package/agnostic/html/sanitize/index.js +6 -6
- package/agnostic/html/selector-to-element/index.js +6 -6
- package/agnostic/html/string-to-nodes/index.js +7 -7
- package/agnostic/misc/assert/index.d.ts +4 -2
- package/agnostic/misc/assert/index.js +5 -1
- package/agnostic/misc/crossenv/index.js +2 -2
- package/agnostic/misc/index.d.ts +0 -2
- package/agnostic/misc/index.js +27 -25
- package/agnostic/misc/is-constructor-function/index.d.ts +1 -1
- package/agnostic/misc/lorem-ipsum/index.js +12 -4
- package/agnostic/numbers/index.js +5 -5
- package/agnostic/objects/index.js +7 -7
- package/agnostic/random/index.js +2 -2
- package/agnostic/strings/index.d.ts +3 -0
- package/agnostic/strings/index.js +11 -5
- 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-7K2EL46G.js +2391 -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-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-RDQJSWRC.js +127 -0
- package/chunks/chunk-SA2IY5LN.js +35 -0
- package/chunks/chunk-SJLH36CH.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-XWU7O5KD.js +211 -0
- package/chunks/chunk-YVHJ7TUJ.js +211 -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
@@ -1,19 +1,19 @@
|
|
1
1
|
import {
|
2
2
|
Utils
|
3
|
-
} from "../../../../chunks/chunk-
|
3
|
+
} from "../../../../chunks/chunk-NHQVXC4Y.js";
|
4
4
|
import "../../../../chunks/chunk-QAVYONH6.js";
|
5
|
+
import "../../../../chunks/chunk-VDNIN3V5.js";
|
5
6
|
import "../../../../chunks/chunk-XEQ2PBT2.js";
|
6
7
|
import "../../../../chunks/chunk-FHLCPVND.js";
|
7
|
-
import "../../../../chunks/chunk-VDNIN3V5.js";
|
8
8
|
import "../../../../chunks/chunk-UT2J62LH.js";
|
9
9
|
import "../../../../chunks/chunk-SXRWMH3U.js";
|
10
10
|
import "../../../../chunks/chunk-BKO7GLC2.js";
|
11
11
|
import "../../../../chunks/chunk-RW7VAKJW.js";
|
12
12
|
import "../../../../chunks/chunk-XA4HVHJ4.js";
|
13
|
-
import "../../../../chunks/chunk-
|
13
|
+
import "../../../../chunks/chunk-JMU5PDBD.js";
|
14
14
|
import "../../../../chunks/chunk-YDIBNEGA.js";
|
15
15
|
import "../../../../chunks/chunk-XNF5MLCQ.js";
|
16
|
-
import "../../../../chunks/chunk-
|
16
|
+
import "../../../../chunks/chunk-E6MSDKON.js";
|
17
17
|
import "../../../../chunks/chunk-ZTDVUXPR.js";
|
18
18
|
import "../../../../chunks/chunk-RLJOYG64.js";
|
19
19
|
export {
|
package/agnostic/html/index.js
CHANGED
@@ -1,49 +1,49 @@
|
|
1
|
+
import {
|
2
|
+
Placeholders
|
3
|
+
} from "../../chunks/chunk-VYW4IADX.js";
|
4
|
+
import {
|
5
|
+
stringToNodes
|
6
|
+
} from "../../chunks/chunk-ZNPRJEP5.js";
|
7
|
+
import {
|
8
|
+
Sanitize
|
9
|
+
} from "../../chunks/chunk-72U4TDEB.js";
|
1
10
|
import {
|
2
11
|
selectorToElement
|
3
|
-
} from "../../chunks/chunk-
|
12
|
+
} from "../../chunks/chunk-65YZMVWZ.js";
|
4
13
|
import {
|
5
14
|
HyperJson
|
6
|
-
} from "../../chunks/chunk-
|
7
|
-
import "../../chunks/chunk-
|
15
|
+
} from "../../chunks/chunk-CRGUZBZX.js";
|
16
|
+
import "../../chunks/chunk-NHQVXC4Y.js";
|
8
17
|
import "../../chunks/chunk-QAVYONH6.js";
|
18
|
+
import "../../chunks/chunk-VDNIN3V5.js";
|
9
19
|
import "../../chunks/chunk-XEQ2PBT2.js";
|
10
20
|
import "../../chunks/chunk-FHLCPVND.js";
|
11
|
-
import "../../chunks/chunk-VDNIN3V5.js";
|
12
21
|
import "../../chunks/chunk-UT2J62LH.js";
|
13
22
|
import "../../chunks/chunk-SXRWMH3U.js";
|
14
23
|
import "../../chunks/chunk-BKO7GLC2.js";
|
15
24
|
import "../../chunks/chunk-RW7VAKJW.js";
|
25
|
+
import {
|
26
|
+
insertNode
|
27
|
+
} from "../../chunks/chunk-XA4HVHJ4.js";
|
16
28
|
import {
|
17
29
|
getPositionInsideParent
|
18
30
|
} from "../../chunks/chunk-VTPRO4NJ.js";
|
19
31
|
import {
|
20
32
|
getNodeAncestors
|
21
33
|
} from "../../chunks/chunk-LUPVHC73.js";
|
22
|
-
import
|
23
|
-
insertNode
|
24
|
-
} from "../../chunks/chunk-XA4HVHJ4.js";
|
25
|
-
import {
|
26
|
-
Placeholders
|
27
|
-
} 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
|
-
import "../../chunks/chunk-E6MSDKON.js";
|
34
|
+
import "../../chunks/chunk-JMU5PDBD.js";
|
35
35
|
import "../../chunks/chunk-YDIBNEGA.js";
|
36
36
|
import "../../chunks/chunk-XNF5MLCQ.js";
|
37
|
-
import "../../chunks/chunk-
|
37
|
+
import "../../chunks/chunk-E6MSDKON.js";
|
38
38
|
import "../../chunks/chunk-ZTDVUXPR.js";
|
39
|
-
import "../../chunks/chunk-
|
40
|
-
import "../../chunks/chunk-
|
39
|
+
import "../../chunks/chunk-SJLH36CH.js";
|
40
|
+
import "../../chunks/chunk-GGT2PUZH.js";
|
41
41
|
import "../../chunks/chunk-S2NMAH7K.js";
|
42
|
-
import "../../chunks/chunk-LV2VMOWR.js";
|
43
42
|
import "../../chunks/chunk-RLJOYG64.js";
|
44
|
-
import "../../chunks/chunk-
|
45
|
-
import "../../chunks/chunk-
|
43
|
+
import "../../chunks/chunk-LV2VMOWR.js";
|
44
|
+
import "../../chunks/chunk-WH6BPDAC.js";
|
46
45
|
import "../../chunks/chunk-QHLQVR3E.js";
|
46
|
+
import "../../chunks/chunk-FENXVJYO.js";
|
47
47
|
|
48
48
|
// src/agnostic/html/index.ts
|
49
49
|
var Html;
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import {
|
2
2
|
Sanitize
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-
|
5
|
-
import "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-72U4TDEB.js";
|
4
|
+
import "../../../chunks/chunk-SJLH36CH.js";
|
5
|
+
import "../../../chunks/chunk-GGT2PUZH.js";
|
6
6
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
7
|
-
import "../../../chunks/chunk-LV2VMOWR.js";
|
8
7
|
import "../../../chunks/chunk-RLJOYG64.js";
|
9
|
-
import "../../../chunks/chunk-
|
10
|
-
import "../../../chunks/chunk-
|
8
|
+
import "../../../chunks/chunk-LV2VMOWR.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-
|
5
|
-
import "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-65YZMVWZ.js";
|
4
|
+
import "../../../chunks/chunk-SJLH36CH.js";
|
5
|
+
import "../../../chunks/chunk-GGT2PUZH.js";
|
6
6
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
7
|
-
import "../../../chunks/chunk-LV2VMOWR.js";
|
8
7
|
import "../../../chunks/chunk-RLJOYG64.js";
|
9
|
-
import "../../../chunks/chunk-
|
10
|
-
import "../../../chunks/chunk-
|
8
|
+
import "../../../chunks/chunk-LV2VMOWR.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-
|
6
|
-
import "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-ZNPRJEP5.js";
|
4
|
+
import "../../../chunks/chunk-72U4TDEB.js";
|
5
|
+
import "../../../chunks/chunk-SJLH36CH.js";
|
6
|
+
import "../../../chunks/chunk-GGT2PUZH.js";
|
7
7
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
8
|
-
import "../../../chunks/chunk-LV2VMOWR.js";
|
9
8
|
import "../../../chunks/chunk-RLJOYG64.js";
|
10
|
-
import "../../../chunks/chunk-
|
11
|
-
import "../../../chunks/chunk-
|
9
|
+
import "../../../chunks/chunk-LV2VMOWR.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
|
};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
Crossenv
|
3
|
-
} from "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-GGT2PUZH.js";
|
4
4
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
5
|
-
import "../../../chunks/chunk-LV2VMOWR.js";
|
6
5
|
import "../../../chunks/chunk-RLJOYG64.js";
|
6
|
+
import "../../../chunks/chunk-LV2VMOWR.js";
|
7
7
|
export {
|
8
8
|
Crossenv
|
9
9
|
};
|
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
@@ -1,50 +1,53 @@
|
|
1
|
+
import {
|
2
|
+
LoremIpsum
|
3
|
+
} from "../../chunks/chunk-JJK5733Z.js";
|
1
4
|
import {
|
2
5
|
Logs
|
3
6
|
} from "../../chunks/chunk-MJQF3YZO.js";
|
4
7
|
import "../../chunks/chunk-RASMASS4.js";
|
5
8
|
import "../../chunks/chunk-L3OCRR3V.js";
|
6
9
|
import "../../chunks/chunk-H4PP6AHP.js";
|
10
|
+
import {
|
11
|
+
Assert
|
12
|
+
} from "../../chunks/chunk-WAMSK4A3.js";
|
13
|
+
import "../../chunks/chunk-JMU5PDBD.js";
|
7
14
|
import {
|
8
15
|
Crawler
|
9
16
|
} from "../../chunks/chunk-YUP434IY.js";
|
10
|
-
import {
|
11
|
-
Cast
|
12
|
-
} from "../../chunks/chunk-SNJJII7A.js";
|
13
17
|
import {
|
14
18
|
getCurrentDownlink
|
15
19
|
} from "../../chunks/chunk-7AWTHZLY.js";
|
16
|
-
import {
|
17
|
-
LoremIpsum
|
18
|
-
} from "../../chunks/chunk-XH6TZMNR.js";
|
19
20
|
import "../../chunks/chunk-4CIS3R7T.js";
|
20
21
|
import {
|
21
|
-
|
22
|
-
} from "../../chunks/chunk-
|
23
|
-
import
|
24
|
-
Crossenv
|
25
|
-
} from "../../chunks/chunk-FR5H2OCV.js";
|
26
|
-
import "../../chunks/chunk-S2NMAH7K.js";
|
27
|
-
import "../../chunks/chunk-LV2VMOWR.js";
|
28
|
-
import "../../chunks/chunk-RLJOYG64.js";
|
29
|
-
import {
|
30
|
-
Random
|
31
|
-
} from "../../chunks/chunk-S32K7POB.js";
|
32
|
-
import "../../chunks/chunk-D3ERTRDW.js";
|
22
|
+
Cast
|
23
|
+
} from "../../chunks/chunk-SNJJII7A.js";
|
24
|
+
import "../../chunks/chunk-DCKTGQOX.js";
|
33
25
|
import "../../chunks/chunk-75BICI4L.js";
|
26
|
+
import "../../chunks/chunk-D3ERTRDW.js";
|
34
27
|
import "../../chunks/chunk-OGBUSUE6.js";
|
28
|
+
import "../../chunks/chunk-QXAJXTXV.js";
|
29
|
+
import {
|
30
|
+
isNotNullish,
|
31
|
+
isNullish,
|
32
|
+
nullishValues
|
33
|
+
} from "../../chunks/chunk-HC6ZOHCS.js";
|
35
34
|
import "../../chunks/chunk-YS6WMSWC.js";
|
36
35
|
import "../../chunks/chunk-RLAZR3NL.js";
|
37
|
-
import "../../chunks/chunk-FCU6IHKD.js";
|
38
36
|
import "../../chunks/chunk-6RGDWX4A.js";
|
39
37
|
import {
|
40
38
|
isConstructorFunction
|
41
39
|
} from "../../chunks/chunk-RCO57B6F.js";
|
42
|
-
import "../../chunks/chunk-
|
40
|
+
import "../../chunks/chunk-72NLUT3X.js";
|
41
|
+
import "../../chunks/chunk-SJLH36CH.js";
|
43
42
|
import {
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
43
|
+
Crossenv
|
44
|
+
} from "../../chunks/chunk-GGT2PUZH.js";
|
45
|
+
import "../../chunks/chunk-S2NMAH7K.js";
|
46
|
+
import "../../chunks/chunk-RLJOYG64.js";
|
47
|
+
import "../../chunks/chunk-LV2VMOWR.js";
|
48
|
+
import "../../chunks/chunk-WH6BPDAC.js";
|
49
|
+
import "../../chunks/chunk-QHLQVR3E.js";
|
50
|
+
import "../../chunks/chunk-FENXVJYO.js";
|
48
51
|
|
49
52
|
// src/agnostic/misc/index.ts
|
50
53
|
var Misc;
|
@@ -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-
|
5
|
-
import "../../../chunks/chunk-D3ERTRDW.js";
|
3
|
+
} from "../../../chunks/chunk-JJK5733Z.js";
|
4
|
+
import "../../../chunks/chunk-DCKTGQOX.js";
|
6
5
|
import "../../../chunks/chunk-75BICI4L.js";
|
6
|
+
import "../../../chunks/chunk-D3ERTRDW.js";
|
7
7
|
import "../../../chunks/chunk-OGBUSUE6.js";
|
8
8
|
import "../../../chunks/chunk-YS6WMSWC.js";
|
9
9
|
import "../../../chunks/chunk-RLAZR3NL.js";
|
10
|
-
import "../../../chunks/chunk-FCU6IHKD.js";
|
11
10
|
import "../../../chunks/chunk-6RGDWX4A.js";
|
12
11
|
import "../../../chunks/chunk-RCO57B6F.js";
|
12
|
+
import "../../../chunks/chunk-72NLUT3X.js";
|
13
|
+
import "../../../chunks/chunk-SJLH36CH.js";
|
14
|
+
import "../../../chunks/chunk-GGT2PUZH.js";
|
15
|
+
import "../../../chunks/chunk-S2NMAH7K.js";
|
16
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
17
|
+
import "../../../chunks/chunk-LV2VMOWR.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,3 +1,6 @@
|
|
1
|
+
import {
|
2
|
+
interpolate
|
3
|
+
} from "../../chunks/chunk-BJAYUP7M.js";
|
1
4
|
import {
|
2
5
|
createScale,
|
3
6
|
getHarmonic
|
@@ -5,15 +8,12 @@ import {
|
|
5
8
|
import {
|
6
9
|
absoluteModulo
|
7
10
|
} from "../../chunks/chunk-DNIOWD7K.js";
|
8
|
-
import {
|
9
|
-
clamp
|
10
|
-
} from "../../chunks/chunk-OSAXBA7G.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,13 +1,10 @@
|
|
1
|
-
import {
|
2
|
-
Enums
|
3
|
-
} from "../../chunks/chunk-WOAYU6LB.js";
|
4
|
-
import "../../chunks/chunk-E6MSDKON.js";
|
5
1
|
import {
|
6
2
|
deepGetProperty
|
7
3
|
} from "../../chunks/chunk-SKMCIFS3.js";
|
8
4
|
import {
|
9
5
|
flattenGetters
|
10
6
|
} from "../../chunks/chunk-VFJYLXCI.js";
|
7
|
+
import "../../chunks/chunk-SNJJII7A.js";
|
11
8
|
import {
|
12
9
|
isNonNullObject,
|
13
10
|
isObject
|
@@ -18,13 +15,16 @@ import {
|
|
18
15
|
import {
|
19
16
|
recordFormat
|
20
17
|
} from "../../chunks/chunk-YP64J65L.js";
|
18
|
+
import {
|
19
|
+
recordMap
|
20
|
+
} from "../../chunks/chunk-XNF5MLCQ.js";
|
21
21
|
import {
|
22
22
|
Validation
|
23
23
|
} from "../../chunks/chunk-FPEW3A27.js";
|
24
24
|
import {
|
25
|
-
|
26
|
-
} from "../../chunks/chunk-
|
27
|
-
import "../../chunks/chunk-
|
25
|
+
Enums
|
26
|
+
} from "../../chunks/chunk-WOAYU6LB.js";
|
27
|
+
import "../../chunks/chunk-E6MSDKON.js";
|
28
28
|
import "../../chunks/chunk-QXAJXTXV.js";
|
29
29
|
import "../../chunks/chunk-HC6ZOHCS.js";
|
30
30
|
|
package/agnostic/random/index.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import {
|
2
2
|
Random
|
3
|
-
} from "../../chunks/chunk-
|
4
|
-
import "../../chunks/chunk-D3ERTRDW.js";
|
3
|
+
} from "../../chunks/chunk-DCKTGQOX.js";
|
5
4
|
import "../../chunks/chunk-75BICI4L.js";
|
5
|
+
import "../../chunks/chunk-D3ERTRDW.js";
|
6
6
|
import "../../chunks/chunk-OGBUSUE6.js";
|
7
7
|
export {
|
8
8
|
Random
|
@@ -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
|
}
|
@@ -1,6 +1,3 @@
|
|
1
|
-
import {
|
2
|
-
toAlphanum
|
3
|
-
} from "../../chunks/chunk-COVPTTAD.js";
|
4
1
|
import {
|
5
2
|
CharCodes
|
6
3
|
} from "../../chunks/chunk-34U4HX4V.js";
|
@@ -9,12 +6,19 @@ import {
|
|
9
6
|
matchesEvery,
|
10
7
|
matchesSome
|
11
8
|
} from "../../chunks/chunk-LQFKUNVQ.js";
|
9
|
+
import {
|
10
|
+
normalizeIndent
|
11
|
+
} from "../../chunks/chunk-JQXNEJAP.js";
|
12
|
+
import {
|
13
|
+
toAlphanum
|
14
|
+
} from "../../chunks/chunk-COVPTTAD.js";
|
12
15
|
import {
|
13
16
|
replaceAll
|
14
17
|
} from "../../chunks/chunk-ZTDVUXPR.js";
|
15
18
|
import {
|
16
|
-
|
17
|
-
|
19
|
+
trimEnd,
|
20
|
+
trimStart
|
21
|
+
} from "../../chunks/chunk-6XL25OZX.js";
|
18
22
|
|
19
23
|
// src/agnostic/strings/index.ts
|
20
24
|
var Strings;
|
@@ -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
|
+
};
|