@design-edito/tools 0.1.51 → 0.1.52
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.js +8 -8
- package/agnostic/arrays/random-pick/index.js +4 -4
- package/agnostic/css/bem/index.js +2 -2
- package/agnostic/css/index.js +11 -11
- package/agnostic/css/styles-set/index.js +4 -4
- 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 +18 -18
- 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/crossenv/index.js +2 -2
- package/agnostic/misc/data-size/index.d.ts +14 -14
- package/agnostic/misc/data-size/index.js +1 -1
- package/agnostic/misc/index.js +18 -18
- package/agnostic/misc/logs/index.js +2 -2
- package/agnostic/misc/lorem-ipsum/index.js +9 -9
- package/agnostic/numbers/index.js +6 -6
- package/agnostic/objects/index.js +14 -14
- package/agnostic/strings/index.js +6 -6
- package/agnostic/time/index.js +3 -3
- package/chunks/chunk-2UJYUMTT.js +37 -0
- package/chunks/chunk-5ZTW4PHE.js +173 -0
- package/chunks/chunk-CRGU2EHQ.js +31 -0
- package/chunks/chunk-GQMFBT5T.js +191 -0
- package/chunks/chunk-RTFKMYT7.js +2369 -0
- package/node/files/index.js +3 -3
- package/package.json +1 -1
package/agnostic/html/index.js
CHANGED
@@ -1,24 +1,27 @@
|
|
1
1
|
import {
|
2
2
|
selectorToElement
|
3
|
-
} from "../../chunks/chunk-
|
3
|
+
} from "../../chunks/chunk-X5HMM3LD.js";
|
4
4
|
import {
|
5
5
|
stringToNodes
|
6
|
-
} from "../../chunks/chunk-
|
7
|
-
import {
|
8
|
-
Sanitize
|
9
|
-
} from "../../chunks/chunk-MTT7TVR3.js";
|
6
|
+
} from "../../chunks/chunk-CQEDNACN.js";
|
10
7
|
import {
|
11
8
|
HyperJson
|
12
|
-
} from "../../chunks/chunk-
|
13
|
-
import "../../chunks/chunk-
|
9
|
+
} from "../../chunks/chunk-2UJYUMTT.js";
|
10
|
+
import "../../chunks/chunk-RTFKMYT7.js";
|
14
11
|
import "../../chunks/chunk-QAVYONH6.js";
|
12
|
+
import "../../chunks/chunk-SXRWMH3U.js";
|
15
13
|
import "../../chunks/chunk-XEQ2PBT2.js";
|
16
14
|
import "../../chunks/chunk-FHLCPVND.js";
|
17
15
|
import "../../chunks/chunk-QAQZEKIF.js";
|
18
16
|
import "../../chunks/chunk-UT2J62LH.js";
|
19
|
-
import "../../chunks/chunk-SXRWMH3U.js";
|
20
17
|
import "../../chunks/chunk-BKO7GLC2.js";
|
21
18
|
import "../../chunks/chunk-RW7VAKJW.js";
|
19
|
+
import {
|
20
|
+
getNodeAncestors
|
21
|
+
} from "../../chunks/chunk-LUPVHC73.js";
|
22
|
+
import {
|
23
|
+
Placeholders
|
24
|
+
} from "../../chunks/chunk-VYW4IADX.js";
|
22
25
|
import {
|
23
26
|
getPositionInsideParent
|
24
27
|
} from "../../chunks/chunk-VTPRO4NJ.js";
|
@@ -26,22 +29,19 @@ import {
|
|
26
29
|
insertNode
|
27
30
|
} from "../../chunks/chunk-XA4HVHJ4.js";
|
28
31
|
import {
|
29
|
-
|
30
|
-
} from "../../chunks/chunk-
|
31
|
-
import {
|
32
|
-
getNodeAncestors
|
33
|
-
} from "../../chunks/chunk-LUPVHC73.js";
|
34
|
-
import "../../chunks/chunk-JMU5PDBD.js";
|
35
|
-
import "../../chunks/chunk-XNF5MLCQ.js";
|
32
|
+
Sanitize
|
33
|
+
} from "../../chunks/chunk-RDQJSWRC.js";
|
36
34
|
import "../../chunks/chunk-E6MSDKON.js";
|
37
35
|
import "../../chunks/chunk-YDIBNEGA.js";
|
36
|
+
import "../../chunks/chunk-XNF5MLCQ.js";
|
37
|
+
import "../../chunks/chunk-JMU5PDBD.js";
|
38
38
|
import "../../chunks/chunk-ZTDVUXPR.js";
|
39
39
|
import "../../chunks/chunk-6XL25OZX.js";
|
40
|
-
import "../../chunks/chunk-
|
41
|
-
import "../../chunks/chunk-
|
42
|
-
import "../../chunks/chunk-RLJOYG64.js";
|
40
|
+
import "../../chunks/chunk-P2H6PV4O.js";
|
41
|
+
import "../../chunks/chunk-FR5H2OCV.js";
|
43
42
|
import "../../chunks/chunk-S2NMAH7K.js";
|
44
43
|
import "../../chunks/chunk-LV2VMOWR.js";
|
44
|
+
import "../../chunks/chunk-RLJOYG64.js";
|
45
45
|
import "../../chunks/chunk-2KT7AKRW.js";
|
46
46
|
import "../../chunks/chunk-FENXVJYO.js";
|
47
47
|
import "../../chunks/chunk-QHLQVR3E.js";
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import {
|
2
2
|
Sanitize
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-
|
5
|
-
import "../../../chunks/chunk-
|
6
|
-
import "../../../chunks/chunk-RLJOYG64.js";
|
3
|
+
} from "../../../chunks/chunk-RDQJSWRC.js";
|
4
|
+
import "../../../chunks/chunk-P2H6PV4O.js";
|
5
|
+
import "../../../chunks/chunk-FR5H2OCV.js";
|
7
6
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
8
7
|
import "../../../chunks/chunk-LV2VMOWR.js";
|
8
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
9
9
|
import "../../../chunks/chunk-2KT7AKRW.js";
|
10
10
|
import "../../../chunks/chunk-FENXVJYO.js";
|
11
11
|
import "../../../chunks/chunk-QHLQVR3E.js";
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import {
|
2
2
|
selectorToElement
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-
|
5
|
-
import "../../../chunks/chunk-
|
6
|
-
import "../../../chunks/chunk-RLJOYG64.js";
|
3
|
+
} from "../../../chunks/chunk-X5HMM3LD.js";
|
4
|
+
import "../../../chunks/chunk-P2H6PV4O.js";
|
5
|
+
import "../../../chunks/chunk-FR5H2OCV.js";
|
7
6
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
8
7
|
import "../../../chunks/chunk-LV2VMOWR.js";
|
8
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
9
9
|
import "../../../chunks/chunk-2KT7AKRW.js";
|
10
10
|
import "../../../chunks/chunk-FENXVJYO.js";
|
11
11
|
import "../../../chunks/chunk-QHLQVR3E.js";
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import {
|
2
2
|
stringToNodes
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-
|
5
|
-
import "../../../chunks/chunk-
|
6
|
-
import "../../../chunks/chunk-
|
7
|
-
import "../../../chunks/chunk-RLJOYG64.js";
|
3
|
+
} from "../../../chunks/chunk-CQEDNACN.js";
|
4
|
+
import "../../../chunks/chunk-RDQJSWRC.js";
|
5
|
+
import "../../../chunks/chunk-P2H6PV4O.js";
|
6
|
+
import "../../../chunks/chunk-FR5H2OCV.js";
|
8
7
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
9
8
|
import "../../../chunks/chunk-LV2VMOWR.js";
|
9
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
10
10
|
import "../../../chunks/chunk-2KT7AKRW.js";
|
11
11
|
import "../../../chunks/chunk-FENXVJYO.js";
|
12
12
|
import "../../../chunks/chunk-QHLQVR3E.js";
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
Crossenv
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-RLJOYG64.js";
|
3
|
+
} from "../../../chunks/chunk-FR5H2OCV.js";
|
5
4
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
6
5
|
import "../../../chunks/chunk-LV2VMOWR.js";
|
6
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
7
7
|
export {
|
8
8
|
Crossenv
|
9
9
|
};
|
@@ -24,18 +24,18 @@ export declare namespace DataSize {
|
|
24
24
|
toPebibytes(): number;
|
25
25
|
toExbibytes(): number;
|
26
26
|
}
|
27
|
-
function
|
28
|
-
function
|
29
|
-
function
|
30
|
-
function
|
31
|
-
function
|
32
|
-
function
|
33
|
-
function
|
34
|
-
function
|
35
|
-
function
|
36
|
-
function
|
37
|
-
function
|
38
|
-
function
|
39
|
-
function
|
40
|
-
function
|
27
|
+
function bits(value: number): DataSize;
|
28
|
+
function bytes(value: number, unit: Unit | UnitShort): DataSize;
|
29
|
+
function kiloBytes(value: number): DataSize;
|
30
|
+
function megaBytes(value: number): DataSize;
|
31
|
+
function gigabytes(value: number): DataSize;
|
32
|
+
function terabytes(value: number): DataSize;
|
33
|
+
function petabytes(value: number): DataSize;
|
34
|
+
function exabytes(value: number): DataSize;
|
35
|
+
function kibibytes(value: number): DataSize;
|
36
|
+
function mebibytes(value: number): DataSize;
|
37
|
+
function gibibytes(value: number): DataSize;
|
38
|
+
function tebibytes(value: number): DataSize;
|
39
|
+
function pebibytes(value: number): DataSize;
|
40
|
+
function exbibytes(value: number): DataSize;
|
41
41
|
}
|
package/agnostic/misc/index.js
CHANGED
@@ -1,28 +1,28 @@
|
|
1
|
-
import {
|
2
|
-
getCurrentDownlink
|
3
|
-
} from "../../chunks/chunk-7AWTHZLY.js";
|
4
1
|
import {
|
5
2
|
LoremIpsum
|
6
|
-
} from "../../chunks/chunk-
|
3
|
+
} from "../../chunks/chunk-GQMFBT5T.js";
|
7
4
|
import {
|
8
5
|
Logs
|
9
|
-
} from "../../chunks/chunk-
|
10
|
-
import "../../chunks/chunk-RASMASS4.js";
|
6
|
+
} from "../../chunks/chunk-QN3UAKIU.js";
|
11
7
|
import "../../chunks/chunk-L3OCRR3V.js";
|
8
|
+
import "../../chunks/chunk-RASMASS4.js";
|
12
9
|
import "../../chunks/chunk-H4PP6AHP.js";
|
13
10
|
import {
|
14
11
|
Assert
|
15
12
|
} from "../../chunks/chunk-E4FJHD5R.js";
|
16
|
-
import {
|
17
|
-
Outcome
|
18
|
-
} from "../../chunks/chunk-JMU5PDBD.js";
|
19
13
|
import {
|
20
14
|
Crawler
|
21
15
|
} from "../../chunks/chunk-YUP434IY.js";
|
22
16
|
import "../../chunks/chunk-4CIS3R7T.js";
|
23
17
|
import {
|
24
18
|
DataSize
|
25
|
-
} from "../../chunks/chunk-
|
19
|
+
} from "../../chunks/chunk-D6VWX3D6.js";
|
20
|
+
import {
|
21
|
+
Outcome
|
22
|
+
} from "../../chunks/chunk-JMU5PDBD.js";
|
23
|
+
import {
|
24
|
+
getCurrentDownlink
|
25
|
+
} from "../../chunks/chunk-7AWTHZLY.js";
|
26
26
|
import {
|
27
27
|
Cast
|
28
28
|
} from "../../chunks/chunk-SNJJII7A.js";
|
@@ -36,25 +36,25 @@ import {
|
|
36
36
|
isNullish,
|
37
37
|
nullishValues
|
38
38
|
} from "../../chunks/chunk-HC6ZOHCS.js";
|
39
|
-
import "../../chunks/chunk-
|
39
|
+
import "../../chunks/chunk-CRGU2EHQ.js";
|
40
|
+
import "../../chunks/chunk-YS6WMSWC.js";
|
40
41
|
import "../../chunks/chunk-6RGDWX4A.js";
|
41
42
|
import {
|
42
43
|
isConstructorFunction
|
43
44
|
} from "../../chunks/chunk-RCO57B6F.js";
|
44
|
-
import "../../chunks/chunk-
|
45
|
-
import "../../chunks/chunk-
|
46
|
-
import "../../chunks/chunk-
|
45
|
+
import "../../chunks/chunk-VJJIYJMY.js";
|
46
|
+
import "../../chunks/chunk-RLAZR3NL.js";
|
47
|
+
import "../../chunks/chunk-C7SRAQMW.js";
|
48
|
+
import "../../chunks/chunk-P2H6PV4O.js";
|
47
49
|
import {
|
48
50
|
Crossenv
|
49
|
-
} from "../../chunks/chunk-
|
50
|
-
import "../../chunks/chunk-RLJOYG64.js";
|
51
|
+
} from "../../chunks/chunk-FR5H2OCV.js";
|
51
52
|
import "../../chunks/chunk-S2NMAH7K.js";
|
52
53
|
import "../../chunks/chunk-LV2VMOWR.js";
|
54
|
+
import "../../chunks/chunk-RLJOYG64.js";
|
53
55
|
import "../../chunks/chunk-2KT7AKRW.js";
|
54
56
|
import "../../chunks/chunk-FENXVJYO.js";
|
55
57
|
import "../../chunks/chunk-QHLQVR3E.js";
|
56
|
-
import "../../chunks/chunk-VJJIYJMY.js";
|
57
|
-
import "../../chunks/chunk-RLAZR3NL.js";
|
58
58
|
|
59
59
|
// src/agnostic/misc/index.ts
|
60
60
|
var Misc;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import {
|
2
2
|
Logs
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-RASMASS4.js";
|
3
|
+
} from "../../../chunks/chunk-QN3UAKIU.js";
|
5
4
|
import "../../../chunks/chunk-L3OCRR3V.js";
|
5
|
+
import "../../../chunks/chunk-RASMASS4.js";
|
6
6
|
import "../../../chunks/chunk-H4PP6AHP.js";
|
7
7
|
export {
|
8
8
|
Logs
|
@@ -1,25 +1,25 @@
|
|
1
1
|
import {
|
2
2
|
LoremIpsum
|
3
|
-
} from "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-GQMFBT5T.js";
|
4
4
|
import "../../../chunks/chunk-OVG5RGI3.js";
|
5
5
|
import "../../../chunks/chunk-75BICI4L.js";
|
6
6
|
import "../../../chunks/chunk-OGBUSUE6.js";
|
7
7
|
import "../../../chunks/chunk-D3ERTRDW.js";
|
8
|
-
import "../../../chunks/chunk-
|
8
|
+
import "../../../chunks/chunk-CRGU2EHQ.js";
|
9
|
+
import "../../../chunks/chunk-YS6WMSWC.js";
|
9
10
|
import "../../../chunks/chunk-6RGDWX4A.js";
|
10
11
|
import "../../../chunks/chunk-RCO57B6F.js";
|
11
|
-
import "../../../chunks/chunk-
|
12
|
-
import "../../../chunks/chunk-
|
13
|
-
import "../../../chunks/chunk-
|
14
|
-
import "../../../chunks/chunk-
|
15
|
-
import "../../../chunks/chunk-
|
12
|
+
import "../../../chunks/chunk-VJJIYJMY.js";
|
13
|
+
import "../../../chunks/chunk-RLAZR3NL.js";
|
14
|
+
import "../../../chunks/chunk-C7SRAQMW.js";
|
15
|
+
import "../../../chunks/chunk-P2H6PV4O.js";
|
16
|
+
import "../../../chunks/chunk-FR5H2OCV.js";
|
16
17
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
17
18
|
import "../../../chunks/chunk-LV2VMOWR.js";
|
19
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
18
20
|
import "../../../chunks/chunk-2KT7AKRW.js";
|
19
21
|
import "../../../chunks/chunk-FENXVJYO.js";
|
20
22
|
import "../../../chunks/chunk-QHLQVR3E.js";
|
21
|
-
import "../../../chunks/chunk-VJJIYJMY.js";
|
22
|
-
import "../../../chunks/chunk-RLAZR3NL.js";
|
23
23
|
export {
|
24
24
|
LoremIpsum
|
25
25
|
};
|
@@ -1,3 +1,6 @@
|
|
1
|
+
import {
|
2
|
+
absoluteModulo
|
3
|
+
} from "../../chunks/chunk-DNIOWD7K.js";
|
1
4
|
import {
|
2
5
|
clamp
|
3
6
|
} from "../../chunks/chunk-OSAXBA7G.js";
|
@@ -5,15 +8,12 @@ import {
|
|
5
8
|
createScale,
|
6
9
|
getHarmonic
|
7
10
|
} from "../../chunks/chunk-UYTXXUU7.js";
|
8
|
-
import {
|
9
|
-
round
|
10
|
-
} from "../../chunks/chunk-32IRF4OP.js";
|
11
|
-
import {
|
12
|
-
absoluteModulo
|
13
|
-
} from "../../chunks/chunk-DNIOWD7K.js";
|
14
11
|
import {
|
15
12
|
interpolate
|
16
13
|
} from "../../chunks/chunk-BJAYUP7M.js";
|
14
|
+
import {
|
15
|
+
round
|
16
|
+
} from "../../chunks/chunk-32IRF4OP.js";
|
17
17
|
|
18
18
|
// src/agnostic/numbers/index.ts
|
19
19
|
var Numbers;
|
@@ -1,20 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
isNonNullObject,
|
3
|
-
isObject
|
4
|
-
} from "../../chunks/chunk-HQLRJ7XW.js";
|
5
|
-
import {
|
6
|
-
flattenGetters
|
7
|
-
} from "../../chunks/chunk-VFJYLXCI.js";
|
8
|
-
import "../../chunks/chunk-SNJJII7A.js";
|
9
|
-
import {
|
10
|
-
recordFormat
|
11
|
-
} from "../../chunks/chunk-YP64J65L.js";
|
12
1
|
import {
|
13
2
|
Validation
|
14
3
|
} from "../../chunks/chunk-FPEW3A27.js";
|
15
|
-
import {
|
16
|
-
recordMap
|
17
|
-
} from "../../chunks/chunk-XNF5MLCQ.js";
|
18
4
|
import {
|
19
5
|
Enums
|
20
6
|
} from "../../chunks/chunk-WOAYU6LB.js";
|
@@ -22,9 +8,23 @@ import "../../chunks/chunk-E6MSDKON.js";
|
|
22
8
|
import {
|
23
9
|
deepGetProperty
|
24
10
|
} from "../../chunks/chunk-SKMCIFS3.js";
|
11
|
+
import {
|
12
|
+
flattenGetters
|
13
|
+
} from "../../chunks/chunk-VFJYLXCI.js";
|
14
|
+
import {
|
15
|
+
isNonNullObject,
|
16
|
+
isObject
|
17
|
+
} from "../../chunks/chunk-HQLRJ7XW.js";
|
18
|
+
import {
|
19
|
+
recordFormat
|
20
|
+
} from "../../chunks/chunk-YP64J65L.js";
|
25
21
|
import {
|
26
22
|
isRecord
|
27
23
|
} from "../../chunks/chunk-YDIBNEGA.js";
|
24
|
+
import {
|
25
|
+
recordMap
|
26
|
+
} from "../../chunks/chunk-XNF5MLCQ.js";
|
27
|
+
import "../../chunks/chunk-SNJJII7A.js";
|
28
28
|
import "../../chunks/chunk-QXAJXTXV.js";
|
29
29
|
import "../../chunks/chunk-HC6ZOHCS.js";
|
30
30
|
|
@@ -1,24 +1,24 @@
|
|
1
|
-
import {
|
2
|
-
CharCodes
|
3
|
-
} from "../../chunks/chunk-34U4HX4V.js";
|
4
1
|
import {
|
5
2
|
matches,
|
6
3
|
matchesEvery,
|
7
4
|
matchesSome
|
8
5
|
} from "../../chunks/chunk-LQFKUNVQ.js";
|
6
|
+
import {
|
7
|
+
CharCodes
|
8
|
+
} from "../../chunks/chunk-34U4HX4V.js";
|
9
9
|
import {
|
10
10
|
normalizeIndent
|
11
11
|
} from "../../chunks/chunk-JQXNEJAP.js";
|
12
12
|
import {
|
13
13
|
replaceAll
|
14
14
|
} from "../../chunks/chunk-ZTDVUXPR.js";
|
15
|
-
import {
|
16
|
-
toAlphanum
|
17
|
-
} from "../../chunks/chunk-COVPTTAD.js";
|
18
15
|
import {
|
19
16
|
trimEnd,
|
20
17
|
trimStart
|
21
18
|
} from "../../chunks/chunk-6XL25OZX.js";
|
19
|
+
import {
|
20
|
+
toAlphanum
|
21
|
+
} from "../../chunks/chunk-COVPTTAD.js";
|
22
22
|
|
23
23
|
// src/agnostic/strings/index.ts
|
24
24
|
var Strings;
|
package/agnostic/time/index.js
CHANGED
@@ -2,15 +2,15 @@ import {
|
|
2
2
|
Dates
|
3
3
|
} from "../../chunks/chunk-FZOU4OAW.js";
|
4
4
|
import "../../chunks/chunk-YQWZ3EP2.js";
|
5
|
-
import {
|
6
|
-
timeout
|
7
|
-
} from "../../chunks/chunk-Z7ZDDBV5.js";
|
8
5
|
import {
|
9
6
|
Duration
|
10
7
|
} from "../../chunks/chunk-6NYUQXJT.js";
|
11
8
|
import {
|
12
9
|
Transitions
|
13
10
|
} from "../../chunks/chunk-ENMBK6H7.js";
|
11
|
+
import {
|
12
|
+
timeout
|
13
|
+
} from "../../chunks/chunk-Z7ZDDBV5.js";
|
14
14
|
import {
|
15
15
|
wait
|
16
16
|
} from "../../chunks/chunk-4CIS3R7T.js";
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import {
|
2
|
+
Cast,
|
3
|
+
Tree,
|
4
|
+
Utils
|
5
|
+
} from "./chunk-RTFKMYT7.js";
|
6
|
+
import {
|
7
|
+
Serialize
|
8
|
+
} from "./chunk-SXRWMH3U.js";
|
9
|
+
import {
|
10
|
+
Types
|
11
|
+
} from "./chunk-XEQ2PBT2.js";
|
12
|
+
import {
|
13
|
+
SmartTags
|
14
|
+
} from "./chunk-UT2J62LH.js";
|
15
|
+
import {
|
16
|
+
Transformer
|
17
|
+
} from "./chunk-BKO7GLC2.js";
|
18
|
+
import {
|
19
|
+
Method
|
20
|
+
} from "./chunk-RW7VAKJW.js";
|
21
|
+
|
22
|
+
// src/agnostic/html/hyper-json/index.ts
|
23
|
+
var HyperJson;
|
24
|
+
((HyperJson2) => {
|
25
|
+
HyperJson2.Cast = Cast;
|
26
|
+
HyperJson2.Method = Method;
|
27
|
+
HyperJson2.Serialize = Serialize;
|
28
|
+
HyperJson2.SmartTags = SmartTags;
|
29
|
+
HyperJson2.Transformer = Transformer;
|
30
|
+
HyperJson2.Tree = Tree;
|
31
|
+
HyperJson2.Types = Types;
|
32
|
+
HyperJson2.Utils = Utils;
|
33
|
+
})(HyperJson || (HyperJson = {}));
|
34
|
+
|
35
|
+
export {
|
36
|
+
HyperJson
|
37
|
+
};
|
@@ -0,0 +1,173 @@
|
|
1
|
+
import {
|
2
|
+
Random
|
3
|
+
} from "./chunk-OVG5RGI3.js";
|
4
|
+
import {
|
5
|
+
register
|
6
|
+
} from "./chunk-P2H6PV4O.js";
|
7
|
+
|
8
|
+
// src/agnostic/css/styles-set/index.tsx
|
9
|
+
import { Component } from "react";
|
10
|
+
import { createRoot as reactCreateRoot } from "react-dom/client";
|
11
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
12
|
+
var StylesSet = class _StylesSet {
|
13
|
+
static defaultPrivateIDAttribute = "data-styleset-private-id";
|
14
|
+
static defaultPublicIDAttribute = "data-styleset-public-id";
|
15
|
+
tagsPrivateIDAttribute = _StylesSet.defaultPrivateIDAttribute;
|
16
|
+
tagsPublicIDAttribute = _StylesSet.defaultPublicIDAttribute;
|
17
|
+
_items = /* @__PURE__ */ new Map();
|
18
|
+
get items() {
|
19
|
+
const sortedItemsArray = Array.from(this._items).map(([privateId, item]) => {
|
20
|
+
const targetPosition = this.getTargetPosition(privateId) ?? 0;
|
21
|
+
return { targetPosition, privateId, item };
|
22
|
+
}).sort((a, b) => a.targetPosition - b.targetPosition).map(({ item, privateId }) => [privateId, item]);
|
23
|
+
const sortedItemsMap = new Map(sortedItemsArray);
|
24
|
+
return sortedItemsMap;
|
25
|
+
}
|
26
|
+
getTargetPosition(privateId) {
|
27
|
+
const orderedStyles = Array.from(this._items).map(([privateId2, data]) => ({ privateId: privateId2, data })).sort((a, b) => {
|
28
|
+
const aPos = a.data.position ?? 0;
|
29
|
+
const bPos = b.data.position ?? 0;
|
30
|
+
return aPos - bPos;
|
31
|
+
});
|
32
|
+
const foundIndex = orderedStyles.findIndex((item) => item.privateId === privateId);
|
33
|
+
return foundIndex === -1 ? null : foundIndex;
|
34
|
+
}
|
35
|
+
setTagsPrivateIDAttribute(str) {
|
36
|
+
this.tagsPrivateIDAttribute = str;
|
37
|
+
return this;
|
38
|
+
}
|
39
|
+
setTagsPublicIDAttribute(str) {
|
40
|
+
this.tagsPublicIDAttribute = str;
|
41
|
+
return this;
|
42
|
+
}
|
43
|
+
getById(id) {
|
44
|
+
const found = Array.from(this._items.values()).find((entry) => entry.id === id);
|
45
|
+
if (found === void 0) return void 0;
|
46
|
+
return found;
|
47
|
+
}
|
48
|
+
generateUniquePrivateId() {
|
49
|
+
const existingIds = Array.from(this._items.keys());
|
50
|
+
const generated = Random.randomHash(12);
|
51
|
+
if (existingIds.includes(generated)) return this.generateUniquePrivateId();
|
52
|
+
return generated;
|
53
|
+
}
|
54
|
+
_rendered = /* @__PURE__ */ new Map();
|
55
|
+
render(element) {
|
56
|
+
const root = reactCreateRoot(element);
|
57
|
+
const items = this.items;
|
58
|
+
root.render(/* @__PURE__ */ jsx(
|
59
|
+
StylesSetComp,
|
60
|
+
{
|
61
|
+
items,
|
62
|
+
privateIDAttribute: this.tagsPrivateIDAttribute,
|
63
|
+
publicIDAttribute: this.tagsPublicIDAttribute
|
64
|
+
}
|
65
|
+
));
|
66
|
+
this._rendered.set(element, root);
|
67
|
+
return this;
|
68
|
+
}
|
69
|
+
unmount(element) {
|
70
|
+
if (!this._rendered.has(element)) return this;
|
71
|
+
const root = this._rendered.get(element);
|
72
|
+
if (root === void 0) return this;
|
73
|
+
root.unmount();
|
74
|
+
this._rendered.delete(element);
|
75
|
+
return this;
|
76
|
+
}
|
77
|
+
updateRendered() {
|
78
|
+
const { items } = this;
|
79
|
+
this._rendered.forEach((root) => root.render(/* @__PURE__ */ jsx(
|
80
|
+
StylesSetComp,
|
81
|
+
{
|
82
|
+
items,
|
83
|
+
privateIDAttribute: this.tagsPrivateIDAttribute,
|
84
|
+
publicIDAttribute: this.tagsPublicIDAttribute
|
85
|
+
}
|
86
|
+
)));
|
87
|
+
return this;
|
88
|
+
}
|
89
|
+
addItem(item, abortIfIdExists = true) {
|
90
|
+
const existing = Array.from(this._items.entries()).map(([privateId2, entry]) => ({ privateId: privateId2, entry })).find(({ entry }) => entry.id !== void 0 && entry.id === item.id);
|
91
|
+
if (existing !== void 0) {
|
92
|
+
if (abortIfIdExists) return this;
|
93
|
+
this._items.delete(existing.privateId);
|
94
|
+
}
|
95
|
+
const privateId = this.generateUniquePrivateId();
|
96
|
+
this._items.set(privateId, item);
|
97
|
+
this.updateRendered();
|
98
|
+
return this;
|
99
|
+
}
|
100
|
+
removeItem(idOrPosition) {
|
101
|
+
if (typeof idOrPosition === "string") {
|
102
|
+
const existing = Array.from(this._items.entries()).map(([privateId, entry]) => ({ privateId, entry })).find(({ entry }) => entry.id !== void 0 && entry.id === idOrPosition);
|
103
|
+
if (existing === void 0) return this;
|
104
|
+
this._items.delete(existing.privateId);
|
105
|
+
this.updateRendered();
|
106
|
+
return this;
|
107
|
+
}
|
108
|
+
const toRemove = Array.from(this._items).map(([privateId, entry]) => ({ privateId, entry })).at(idOrPosition);
|
109
|
+
if (toRemove === void 0) return this;
|
110
|
+
this._items.delete(toRemove.privateId);
|
111
|
+
this.updateRendered();
|
112
|
+
return this;
|
113
|
+
}
|
114
|
+
async getDomString(documentObj) {
|
115
|
+
const actualDocumentObj = documentObj ?? window.document;
|
116
|
+
if (actualDocumentObj === null) throw register.getError("no-window-document-on-runtime" /* NO_DOCUMENT */);
|
117
|
+
return new Promise((resolve) => {
|
118
|
+
const tempElt = actualDocumentObj.createElement("div");
|
119
|
+
const tempRoot = reactCreateRoot(tempElt);
|
120
|
+
const { items } = this;
|
121
|
+
const onRendered = () => {
|
122
|
+
resolve(tempElt.innerHTML);
|
123
|
+
tempRoot.unmount();
|
124
|
+
tempElt.remove();
|
125
|
+
};
|
126
|
+
tempRoot.render(/* @__PURE__ */ jsx(
|
127
|
+
StylesSetComp,
|
128
|
+
{
|
129
|
+
items,
|
130
|
+
privateIDAttribute: this.tagsPrivateIDAttribute,
|
131
|
+
publicIDAttribute: this.tagsPublicIDAttribute,
|
132
|
+
onRendered
|
133
|
+
}
|
134
|
+
));
|
135
|
+
});
|
136
|
+
}
|
137
|
+
};
|
138
|
+
var StylesSetComp = class extends Component {
|
139
|
+
componentDidMount() {
|
140
|
+
const { props } = this;
|
141
|
+
const { onRendered } = props;
|
142
|
+
if (onRendered !== void 0) onRendered();
|
143
|
+
}
|
144
|
+
componentDidUpdate() {
|
145
|
+
const { props } = this;
|
146
|
+
const { onRendered } = props;
|
147
|
+
if (onRendered !== void 0) onRendered();
|
148
|
+
}
|
149
|
+
render() {
|
150
|
+
const { props } = this;
|
151
|
+
const items = props.items ?? /* @__PURE__ */ new Map();
|
152
|
+
const pidAttr = props.privateIDAttribute ?? StylesSet.defaultPrivateIDAttribute;
|
153
|
+
const idAttr = props.publicIDAttribute ?? StylesSet.defaultPublicIDAttribute;
|
154
|
+
return /* @__PURE__ */ jsx(Fragment, { children: Array.from(items).map(([privateId, itemData]) => {
|
155
|
+
const customAttributes = { [pidAttr]: privateId, [idAttr]: itemData.id };
|
156
|
+
if (itemData.type === "url") return /* @__PURE__ */ jsx(
|
157
|
+
"link",
|
158
|
+
{
|
159
|
+
onLoad: itemData.onLoad,
|
160
|
+
rel: "stylesheet",
|
161
|
+
href: itemData.content,
|
162
|
+
...customAttributes
|
163
|
+
}
|
164
|
+
);
|
165
|
+
return /* @__PURE__ */ jsx("style", { ...customAttributes, children: itemData.content });
|
166
|
+
}) });
|
167
|
+
}
|
168
|
+
};
|
169
|
+
|
170
|
+
export {
|
171
|
+
StylesSet,
|
172
|
+
StylesSetComp
|
173
|
+
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import {
|
2
|
+
findDuplicates
|
3
|
+
} from "./chunk-YS6WMSWC.js";
|
4
|
+
import {
|
5
|
+
isArrayOf
|
6
|
+
} from "./chunk-6RGDWX4A.js";
|
7
|
+
import {
|
8
|
+
shuffle
|
9
|
+
} from "./chunk-VJJIYJMY.js";
|
10
|
+
import {
|
11
|
+
make
|
12
|
+
} from "./chunk-RLAZR3NL.js";
|
13
|
+
import {
|
14
|
+
randomPick,
|
15
|
+
randomPickMany
|
16
|
+
} from "./chunk-C7SRAQMW.js";
|
17
|
+
|
18
|
+
// src/agnostic/arrays/index.tsx
|
19
|
+
var Arrays;
|
20
|
+
((Arrays2) => {
|
21
|
+
Arrays2.findDuplicates = findDuplicates;
|
22
|
+
Arrays2.isArrayOf = isArrayOf;
|
23
|
+
Arrays2.make = make;
|
24
|
+
Arrays2.randomPick = randomPick;
|
25
|
+
Arrays2.randomPickMany = randomPickMany;
|
26
|
+
Arrays2.shuffle = shuffle;
|
27
|
+
})(Arrays || (Arrays = {}));
|
28
|
+
|
29
|
+
export {
|
30
|
+
Arrays
|
31
|
+
};
|