@design-edito/tools 0.1.21 → 0.1.22
Sign up to get free protection for your applications and to get access to all the features.
- package/agnostic/arrays/find-duplicates/index.d.ts +1 -0
- package/agnostic/arrays/find-duplicates/index.js +6 -0
- package/agnostic/arrays/index.d.ts +8 -7
- package/agnostic/arrays/make/index.d.ts +3 -0
- package/agnostic/arrays/make/index.js +6 -0
- package/agnostic/arrays/random-pick/index.d.ts +2 -0
- package/agnostic/arrays/random-pick/index.js +8 -0
- package/agnostic/css/index.js +10 -10
- package/agnostic/errors/index.js +2 -2
- package/agnostic/html/hyper-json/cast/index.d.ts +18 -0
- package/agnostic/html/hyper-json/cast/index.js +11 -0
- package/agnostic/html/hyper-json/crossenv/index.d.ts +13 -0
- package/agnostic/html/hyper-json/crossenv/index.js +6 -0
- package/agnostic/html/hyper-json/index.d.ts +14 -43
- package/agnostic/html/hyper-json/index.js +32 -2
- package/agnostic/html/hyper-json/serialize/index.d.ts +5 -0
- package/agnostic/html/hyper-json/serialize/index.js +7 -0
- package/agnostic/html/hyper-json/transformers/append/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/append/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/classList/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/classList/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/index.d.ts +4 -0
- package/agnostic/html/hyper-json/transformers/index.js +39 -0
- package/agnostic/html/hyper-json/transformers/join/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/join/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/length/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/length/index.js +8 -0
- package/agnostic/html/hyper-json/transformers/print/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/print/index.js +7 -0
- package/agnostic/html/hyper-json/transformers/push/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/push/index.js +7 -0
- package/agnostic/html/hyper-json/transformers/querySelector/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/querySelector/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/ref/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/ref/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/replace/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/replace/index.js +13 -0
- package/agnostic/html/hyper-json/transformers/split/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/split/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/toArray/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/toArray/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/toBoolean/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/toBoolean/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/toElement/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/toElement/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/toNodeList/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/toNodeList/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/toNull/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/toNull/index.js +7 -0
- package/agnostic/html/hyper-json/transformers/toNumber/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/toNumber/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/toRecord/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/toRecord/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/toRef/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/toRef/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/toString/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/toString/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/toText/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/toText/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/toTransformer/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/toTransformer/index.js +12 -0
- package/agnostic/html/hyper-json/transformers/transformSelected/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/transformSelected/index.js +39 -0
- package/agnostic/html/hyper-json/transformers/trim/index.d.ts +2 -0
- package/agnostic/html/hyper-json/transformers/trim/index.js +12 -0
- package/agnostic/html/hyper-json/tree/index.d.ts +56 -0
- package/agnostic/html/hyper-json/tree/index.js +39 -0
- package/agnostic/html/hyper-json/types/index.d.ts +86 -0
- package/agnostic/html/hyper-json/types/index.js +6 -0
- package/agnostic/html/hyper-json/utils/index.d.ts +10 -0
- package/agnostic/html/hyper-json/utils/index.js +6 -0
- package/agnostic/html/index.js +51 -19
- package/agnostic/html/replace-in-element/index.d.ts +1 -0
- package/agnostic/html/replace-in-element/index.js +6 -0
- package/agnostic/html/sanitize/index.js +7 -5
- package/agnostic/html/selector-to-element/index.js +7 -5
- package/agnostic/html/string-to-nodes/index.js +8 -6
- package/agnostic/index.d.ts +0 -2
- package/agnostic/misc/{web-crawler → crawler}/index.d.ts +1 -1
- package/agnostic/misc/crawler/index.js +7 -0
- package/agnostic/misc/crossenv/get-document/index.d.ts +2 -0
- package/agnostic/misc/crossenv/get-document/index.js +7 -0
- package/agnostic/misc/crossenv/get-window/browser.d.ts +2 -0
- package/agnostic/misc/crossenv/get-window/index.d.ts +2 -0
- package/agnostic/misc/crossenv/get-window/index.js +6 -0
- package/agnostic/misc/crossenv/index.d.ts +4 -1
- package/agnostic/misc/crossenv/index.js +3 -1
- package/agnostic/misc/crossenv/types.d.ts +3 -0
- package/agnostic/misc/index.d.ts +3 -1
- package/agnostic/misc/index.js +24 -14
- package/agnostic/misc/lorem-ipsum/index.js +5 -2
- package/agnostic/numbers/index.js +3 -3
- package/agnostic/objects/index.js +10 -10
- package/agnostic/optim/index.js +3 -3
- package/agnostic/random/index.js +6 -0
- package/agnostic/strings/index.js +9 -9
- package/agnostic/time/duration/index.d.ts +26 -0
- package/agnostic/time/duration/index.js +6 -0
- package/agnostic/time/index.d.ts +8 -7
- package/agnostic/time/index.js +17 -28
- package/agnostic/time/timeout/index.d.ts +1 -0
- package/agnostic/time/timeout/index.js +6 -0
- package/agnostic/time/transitions/index.js +7 -0
- package/agnostic/time/wait/index.js +6 -0
- package/chunks/chunk-2DMWYLFG.js +16 -0
- package/chunks/chunk-2KT7AKRW.js +17 -0
- package/chunks/{chunk-UCV2AZZV.js → chunk-2PI5AZIL.js} +14 -25
- package/chunks/chunk-3KQRMKQJ.js +27 -0
- package/chunks/chunk-3LVR6KZH.js +22 -0
- package/chunks/chunk-3PHPA25U.js +18 -0
- package/chunks/chunk-3PM7GZ6B.js +33 -0
- package/chunks/chunk-3SQJEEBK.js +642 -0
- package/chunks/chunk-3UURICGY.js +211 -0
- package/chunks/chunk-3X6RXJBR.js +37 -0
- package/chunks/{chunk-DQNJQBC6.js → chunk-4CIS3R7T.js} +1 -1
- package/chunks/chunk-4F7ZVE7T.js +332 -0
- package/chunks/chunk-4GUDL44X.js +13 -0
- package/chunks/chunk-4RDW62CU.js +36 -0
- package/chunks/chunk-5IR2PWO6.js +211 -0
- package/chunks/chunk-6CM2SWSX.js +35 -0
- package/chunks/chunk-6EYBQHJS.js +33 -0
- package/chunks/chunk-6NYUQXJT.js +109 -0
- package/chunks/chunk-6NZCBAT4.js +19 -0
- package/chunks/chunk-6V23XMYE.js +982 -0
- package/chunks/chunk-73V5RDSG.js +13 -0
- package/chunks/chunk-7IGZP4TV.js +30 -0
- package/chunks/chunk-7QMAYGNV.js +25 -0
- package/chunks/chunk-7YW5HL6N.js +168 -0
- package/chunks/chunk-AFFLZUW5.js +33 -0
- package/chunks/chunk-AMS3FB24.js +85 -0
- package/chunks/chunk-AXMPRLPI.js +35 -0
- package/chunks/chunk-B6CSCX7J.js +278 -0
- package/chunks/chunk-BDHNULU7.js +211 -0
- package/chunks/chunk-BNB7LEMQ.js +35 -0
- package/chunks/chunk-CECF6UZV.js +29 -0
- package/chunks/chunk-DBAJ66BR.js +18 -0
- package/chunks/chunk-DGQLPQS2.js +33 -0
- package/chunks/chunk-DLLTITVO.js +33 -0
- package/chunks/chunk-DMDOCC72.js +18 -0
- package/chunks/{chunk-IFT6HLDW.js → chunk-DRH7Q4FL.js} +3 -6
- package/chunks/chunk-DRNK3RLE.js +64 -0
- package/chunks/chunk-EAY65ZP6.js +22 -0
- package/chunks/{chunk-4GDNHUCZ.js → chunk-ENMBK6H7.js} +2 -2
- package/chunks/chunk-F5YMP5WU.js +18 -0
- package/chunks/chunk-F7EVMWVG.js +27 -0
- package/chunks/chunk-F7XWUG2V.js +18 -0
- package/chunks/chunk-FCU6IHKD.js +15 -0
- package/chunks/chunk-FFOATPL4.js +211 -0
- package/chunks/chunk-FWHUASVA.js +22 -0
- package/chunks/chunk-GBMHGF7P.js +20 -0
- package/chunks/{chunk-GJOU3UAL.js → chunk-GDYVCEWA.js} +8 -6
- package/chunks/chunk-GNBIAWSY.js +278 -0
- package/chunks/chunk-GQSPY2CV.js +19 -0
- package/chunks/chunk-HDALT7XM.js +620 -0
- package/chunks/chunk-HUKHWFVL.js +19 -0
- package/chunks/chunk-IGD53YL5.js +870 -0
- package/chunks/chunk-ILEM73XB.js +981 -0
- package/chunks/{chunk-DMGR57KA.js → chunk-IPB3U2PD.js} +20 -18
- package/chunks/chunk-JY3QZ2YO.js +211 -0
- package/chunks/chunk-K3OQEJI3.js +33 -0
- package/chunks/chunk-KXBKJ3GS.js +642 -0
- package/chunks/chunk-LCFDDWJR.js +278 -0
- package/chunks/chunk-LGECI2WL.js +306 -0
- package/chunks/chunk-LGUEB5L5.js +211 -0
- package/chunks/chunk-LI6QDZCA.js +211 -0
- package/chunks/{chunk-ZMHKLIP2.js → chunk-LYMZZ4BB.js} +1 -1
- package/chunks/chunk-MDEDNPU5.js +38 -0
- package/chunks/chunk-MQHKEGP4.js +33 -0
- package/chunks/chunk-NF5ACCXZ.js +211 -0
- package/chunks/chunk-NK557MKV.js +35 -0
- package/chunks/chunk-NWMEWFTK.js +33 -0
- package/chunks/chunk-O5OTBN22.js +35 -0
- package/chunks/chunk-O7MDUYEF.js +211 -0
- package/chunks/{chunk-LI5KVXAJ.js → chunk-OO5SJJDW.js} +2 -5
- package/chunks/chunk-Q52UJOBC.js +18 -0
- package/chunks/chunk-QFEF4EET.js +211 -0
- package/chunks/chunk-QHSVCGLD.js +280 -0
- package/chunks/chunk-QO64L4KB.js +97 -0
- package/chunks/{chunk-WLL3FNVL.js → chunk-R6KCN6CK.js} +1 -1
- package/chunks/chunk-RJ5E22H5.js +15 -0
- package/chunks/chunk-RLAZR3NL.js +8 -0
- package/chunks/chunk-RWUPHV54.js +25 -0
- package/chunks/chunk-S2757FI3.js +36 -0
- package/chunks/chunk-S42P73SC.js +30 -0
- package/chunks/chunk-S5XDYLJH.js +18 -0
- package/chunks/chunk-SCM6NACT.js +15 -0
- package/chunks/chunk-SH3Y2I5P.js +18 -0
- package/chunks/chunk-SMLKMOAX.js +18 -0
- package/chunks/chunk-TATRVKBS.js +211 -0
- package/chunks/chunk-UODQZRY2.js +620 -0
- package/chunks/chunk-UOULDS6J.js +33 -0
- package/chunks/chunk-UUDXUSI5.js +211 -0
- package/chunks/{chunk-GL23YDEH.js → chunk-UWAMSJ2X.js} +3 -6
- package/chunks/chunk-UZUXLD2Q.js +35 -0
- package/chunks/chunk-VA6HXRX4.js +211 -0
- package/chunks/chunk-VRUJR6WR.js +39 -0
- package/chunks/chunk-W6YBEEZM.js +211 -0
- package/chunks/chunk-WECTUHS5.js +127 -0
- package/chunks/chunk-YE5HI3RK.js +211 -0
- package/chunks/chunk-YEBOL67V.js +32 -0
- package/chunks/chunk-YS6WMSWC.js +15 -0
- package/{agnostic/misc/web-crawler/index.js → chunks/chunk-YUP434IY.js} +8 -7
- package/chunks/chunk-YYE2MVZO.js +211 -0
- package/chunks/chunk-Z7ZDDBV5.js +18 -0
- package/chunks/chunk-ZB73RE7P.js +35 -0
- package/chunks/chunk-ZONKYNKA.js +28 -0
- package/node/files/index.js +3 -3
- package/package.json +4 -1
- package/agnostic/async/index.d.ts +0 -8
- package/agnostic/async/index.js +0 -20
- package/agnostic/async/timeout-call/index.d.ts +0 -1
- package/agnostic/async/timeout-call/index.js +0 -6
- package/agnostic/async/transitions/index.js +0 -7
- package/agnostic/async/wait/index.js +0 -6
- package/agnostic/misc/random/index.js +0 -6
- package/chunks/chunk-4VC5PT5T.js +0 -13
- /package/agnostic/{misc/random → random}/index.d.ts +0 -0
- /package/agnostic/{async → time}/transitions/index.d.ts +0 -0
- /package/agnostic/{async → time}/wait/index.d.ts +0 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
import {
|
2
|
+
toRef
|
3
|
+
} from "../../../../../chunks/chunk-4RDW62CU.js";
|
4
|
+
import "../../../../../chunks/chunk-QO64L4KB.js";
|
5
|
+
import "../../../../../chunks/chunk-3LVR6KZH.js";
|
6
|
+
import "../../../../../chunks/chunk-YEBOL67V.js";
|
7
|
+
import "../../../../../chunks/chunk-YDIBNEGA.js";
|
8
|
+
import "../../../../../chunks/chunk-QXAJXTXV.js";
|
9
|
+
import "../../../../../chunks/chunk-HC6ZOHCS.js";
|
10
|
+
export {
|
11
|
+
toRef
|
12
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import {
|
2
|
+
toString
|
3
|
+
} from "../../../../../chunks/chunk-DMDOCC72.js";
|
4
|
+
import "../../../../../chunks/chunk-QO64L4KB.js";
|
5
|
+
import "../../../../../chunks/chunk-3LVR6KZH.js";
|
6
|
+
import "../../../../../chunks/chunk-YEBOL67V.js";
|
7
|
+
import "../../../../../chunks/chunk-YDIBNEGA.js";
|
8
|
+
import "../../../../../chunks/chunk-QXAJXTXV.js";
|
9
|
+
import "../../../../../chunks/chunk-HC6ZOHCS.js";
|
10
|
+
export {
|
11
|
+
toString
|
12
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import {
|
2
|
+
toText
|
3
|
+
} from "../../../../../chunks/chunk-3PHPA25U.js";
|
4
|
+
import "../../../../../chunks/chunk-QO64L4KB.js";
|
5
|
+
import "../../../../../chunks/chunk-3LVR6KZH.js";
|
6
|
+
import "../../../../../chunks/chunk-YEBOL67V.js";
|
7
|
+
import "../../../../../chunks/chunk-YDIBNEGA.js";
|
8
|
+
import "../../../../../chunks/chunk-QXAJXTXV.js";
|
9
|
+
import "../../../../../chunks/chunk-HC6ZOHCS.js";
|
10
|
+
export {
|
11
|
+
toText
|
12
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import {
|
2
|
+
toTransformer
|
3
|
+
} from "../../../../../chunks/chunk-SMLKMOAX.js";
|
4
|
+
import "../../../../../chunks/chunk-QO64L4KB.js";
|
5
|
+
import "../../../../../chunks/chunk-3LVR6KZH.js";
|
6
|
+
import "../../../../../chunks/chunk-YEBOL67V.js";
|
7
|
+
import "../../../../../chunks/chunk-YDIBNEGA.js";
|
8
|
+
import "../../../../../chunks/chunk-QXAJXTXV.js";
|
9
|
+
import "../../../../../chunks/chunk-HC6ZOHCS.js";
|
10
|
+
export {
|
11
|
+
toTransformer
|
12
|
+
};
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import {
|
2
|
+
transformSelected
|
3
|
+
} from "../../../../../chunks/chunk-KXBKJ3GS.js";
|
4
|
+
import "../../../../../chunks/chunk-S5XDYLJH.js";
|
5
|
+
import "../../../../../chunks/chunk-4RDW62CU.js";
|
6
|
+
import "../../../../../chunks/chunk-DMDOCC72.js";
|
7
|
+
import "../../../../../chunks/chunk-F5YMP5WU.js";
|
8
|
+
import "../../../../../chunks/chunk-3PHPA25U.js";
|
9
|
+
import "../../../../../chunks/chunk-SMLKMOAX.js";
|
10
|
+
import "../../../../../chunks/chunk-7IGZP4TV.js";
|
11
|
+
import "../../../../../chunks/chunk-MDEDNPU5.js";
|
12
|
+
import "../../../../../chunks/chunk-3X6RXJBR.js";
|
13
|
+
import "../../../../../chunks/chunk-6CM2SWSX.js";
|
14
|
+
import "../../../../../chunks/chunk-SH3Y2I5P.js";
|
15
|
+
import "../../../../../chunks/chunk-Q52UJOBC.js";
|
16
|
+
import "../../../../../chunks/chunk-DBAJ66BR.js";
|
17
|
+
import "../../../../../chunks/chunk-F7XWUG2V.js";
|
18
|
+
import "../../../../../chunks/chunk-RJ5E22H5.js";
|
19
|
+
import "../../../../../chunks/chunk-VRUJR6WR.js";
|
20
|
+
import "../../../../../chunks/chunk-K3OQEJI3.js";
|
21
|
+
import "../../../../../chunks/chunk-RWUPHV54.js";
|
22
|
+
import "../../../../../chunks/chunk-S42P73SC.js";
|
23
|
+
import "../../../../../chunks/chunk-FWHUASVA.js";
|
24
|
+
import "../../../../../chunks/chunk-2DMWYLFG.js";
|
25
|
+
import "../../../../../chunks/chunk-BNB7LEMQ.js";
|
26
|
+
import "../../../../../chunks/chunk-DRNK3RLE.js";
|
27
|
+
import "../../../../../chunks/chunk-QO64L4KB.js";
|
28
|
+
import "../../../../../chunks/chunk-3LVR6KZH.js";
|
29
|
+
import "../../../../../chunks/chunk-7QMAYGNV.js";
|
30
|
+
import "../../../../../chunks/chunk-YEBOL67V.js";
|
31
|
+
import "../../../../../chunks/chunk-GBMHGF7P.js";
|
32
|
+
import "../../../../../chunks/chunk-YDIBNEGA.js";
|
33
|
+
import "../../../../../chunks/chunk-E6MSDKON.js";
|
34
|
+
import "../../../../../chunks/chunk-MF56TTC5.js";
|
35
|
+
import "../../../../../chunks/chunk-QXAJXTXV.js";
|
36
|
+
import "../../../../../chunks/chunk-HC6ZOHCS.js";
|
37
|
+
export {
|
38
|
+
transformSelected
|
39
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import {
|
2
|
+
trim
|
3
|
+
} from "../../../../../chunks/chunk-7IGZP4TV.js";
|
4
|
+
import "../../../../../chunks/chunk-QO64L4KB.js";
|
5
|
+
import "../../../../../chunks/chunk-3LVR6KZH.js";
|
6
|
+
import "../../../../../chunks/chunk-YEBOL67V.js";
|
7
|
+
import "../../../../../chunks/chunk-YDIBNEGA.js";
|
8
|
+
import "../../../../../chunks/chunk-QXAJXTXV.js";
|
9
|
+
import "../../../../../chunks/chunk-HC6ZOHCS.js";
|
10
|
+
export {
|
11
|
+
trim
|
12
|
+
};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { Types } from '../types';
|
2
|
+
export declare namespace Tree {
|
3
|
+
const defaultKeyAttribute = "_key";
|
4
|
+
const defaultActionAttribute = "_action";
|
5
|
+
const defaultRootKey = "_ROOT_";
|
6
|
+
function mergeValues(currentValue: Types.Value, incomingValue: Types.Value, mergeKey: string | number, initiatorTree: Tree): Types.Value;
|
7
|
+
function mergeRootNodes(...args: Parameters<typeof mergeNodes>): Element | Text;
|
8
|
+
function mergeNodes(nodes: Array<Element | Text>, options?: {
|
9
|
+
actionAttribute?: string;
|
10
|
+
keyAttribute?: string;
|
11
|
+
rootKey?: string;
|
12
|
+
}): Element | Text;
|
13
|
+
class Tree<T extends Element | Text = Element | Text> {
|
14
|
+
readonly node: T;
|
15
|
+
readonly name: string | null;
|
16
|
+
readonly parent: Tree | null;
|
17
|
+
readonly root: Tree;
|
18
|
+
readonly isRoot: boolean;
|
19
|
+
readonly path: ReadonlyArray<string | number>;
|
20
|
+
readonly pathString: string;
|
21
|
+
readonly tagName: T extends Element ? Element['tagName'] : null;
|
22
|
+
readonly attributes: T extends Element ? ReadonlyArray<Readonly<Attr>> : null;
|
23
|
+
readonly subtrees: ReadonlyMap<string | number, Tree>;
|
24
|
+
readonly children: ReadonlyArray<Tree>;
|
25
|
+
readonly type: 'element' | 'text' | 'null' | 'number' | 'string' | 'boolean' | 'nodelist' | 'array' | 'record' | 'transformer';
|
26
|
+
readonly generators: ReadonlyMap<string, Types.TransformerGenerator>;
|
27
|
+
keyAttribute: string;
|
28
|
+
actionAttribute: string;
|
29
|
+
constructor(node: T, parentOrOptions?: Partial<Types.TreeOptions>);
|
30
|
+
constructor(node: T, parentOrOptions: Tree, pathFromParent: number | string, options?: Partial<Types.TreeOptions>);
|
31
|
+
resolve: Types.Resolver;
|
32
|
+
getGenerator(this: Tree, name: string): Types.TransformerGenerator | undefined;
|
33
|
+
initValue(this: Tree<T>): string | number | false | NodeListOf<Element | Text> | Types.Value[] | {
|
34
|
+
[k: string]: Types.Value;
|
35
|
+
} | null;
|
36
|
+
getInnerValue(this: Tree<T>, initialValue: ReturnType<typeof this.initValue>): Types.Value;
|
37
|
+
wrapInnerValue(this: Tree<T>, innerValue: Types.Value): Types.Value | Types.Transformer;
|
38
|
+
private cache;
|
39
|
+
private setCache;
|
40
|
+
perfCounters: {
|
41
|
+
computed: number;
|
42
|
+
computeTime: number;
|
43
|
+
computeTimeAvg: number;
|
44
|
+
cached: number;
|
45
|
+
cacheTime: number;
|
46
|
+
cacheTimeAvg: number;
|
47
|
+
totalTime: number;
|
48
|
+
};
|
49
|
+
getPerfCounters(): [string, this["perfCounters"]][];
|
50
|
+
printPerfCounters(): void;
|
51
|
+
callstack: string[];
|
52
|
+
pushToEvalCallStack(path: string): void;
|
53
|
+
flushEvalCallStack(): void;
|
54
|
+
evaluate(this: Tree<T>): Types.Value;
|
55
|
+
}
|
56
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import {
|
2
|
+
Tree
|
3
|
+
} from "../../../../chunks/chunk-KXBKJ3GS.js";
|
4
|
+
import "../../../../chunks/chunk-S5XDYLJH.js";
|
5
|
+
import "../../../../chunks/chunk-4RDW62CU.js";
|
6
|
+
import "../../../../chunks/chunk-DMDOCC72.js";
|
7
|
+
import "../../../../chunks/chunk-F5YMP5WU.js";
|
8
|
+
import "../../../../chunks/chunk-3PHPA25U.js";
|
9
|
+
import "../../../../chunks/chunk-SMLKMOAX.js";
|
10
|
+
import "../../../../chunks/chunk-7IGZP4TV.js";
|
11
|
+
import "../../../../chunks/chunk-MDEDNPU5.js";
|
12
|
+
import "../../../../chunks/chunk-3X6RXJBR.js";
|
13
|
+
import "../../../../chunks/chunk-6CM2SWSX.js";
|
14
|
+
import "../../../../chunks/chunk-SH3Y2I5P.js";
|
15
|
+
import "../../../../chunks/chunk-Q52UJOBC.js";
|
16
|
+
import "../../../../chunks/chunk-DBAJ66BR.js";
|
17
|
+
import "../../../../chunks/chunk-F7XWUG2V.js";
|
18
|
+
import "../../../../chunks/chunk-RJ5E22H5.js";
|
19
|
+
import "../../../../chunks/chunk-VRUJR6WR.js";
|
20
|
+
import "../../../../chunks/chunk-K3OQEJI3.js";
|
21
|
+
import "../../../../chunks/chunk-RWUPHV54.js";
|
22
|
+
import "../../../../chunks/chunk-S42P73SC.js";
|
23
|
+
import "../../../../chunks/chunk-FWHUASVA.js";
|
24
|
+
import "../../../../chunks/chunk-2DMWYLFG.js";
|
25
|
+
import "../../../../chunks/chunk-BNB7LEMQ.js";
|
26
|
+
import "../../../../chunks/chunk-DRNK3RLE.js";
|
27
|
+
import "../../../../chunks/chunk-QO64L4KB.js";
|
28
|
+
import "../../../../chunks/chunk-3LVR6KZH.js";
|
29
|
+
import "../../../../chunks/chunk-7QMAYGNV.js";
|
30
|
+
import "../../../../chunks/chunk-YEBOL67V.js";
|
31
|
+
import "../../../../chunks/chunk-GBMHGF7P.js";
|
32
|
+
import "../../../../chunks/chunk-YDIBNEGA.js";
|
33
|
+
import "../../../../chunks/chunk-E6MSDKON.js";
|
34
|
+
import "../../../../chunks/chunk-MF56TTC5.js";
|
35
|
+
import "../../../../chunks/chunk-QXAJXTXV.js";
|
36
|
+
import "../../../../chunks/chunk-HC6ZOHCS.js";
|
37
|
+
export {
|
38
|
+
Tree
|
39
|
+
};
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import { Tree } from '../tree';
|
2
|
+
export declare namespace Types {
|
3
|
+
enum TyperTagName {
|
4
|
+
NULL = "null",
|
5
|
+
BOOLEAN = "boolean",
|
6
|
+
NUMBER = "number",
|
7
|
+
STRING = "string",
|
8
|
+
TEXT = "text",
|
9
|
+
NODELIST = "nodelist",
|
10
|
+
ARRAY = "array",
|
11
|
+
RECORD = "record"
|
12
|
+
}
|
13
|
+
type PrimitiveValue = null | string | number | boolean | Element | Text | NodeListOf<Text | Element> | Transformer;
|
14
|
+
type Value = PrimitiveValue | Value[] | {
|
15
|
+
[k: string]: Value;
|
16
|
+
};
|
17
|
+
type TransformerHooks = {
|
18
|
+
resolver: Tree.Tree['resolve'];
|
19
|
+
getGenerator: Tree.Tree['getGenerator'];
|
20
|
+
};
|
21
|
+
type TransformerErrorReturnType = {
|
22
|
+
action: 'ERROR';
|
23
|
+
value: Value;
|
24
|
+
};
|
25
|
+
type TransformerReplaceReturnType = {
|
26
|
+
action: 'REPLACE';
|
27
|
+
value: Value;
|
28
|
+
};
|
29
|
+
type TransformerMergeReturnType = {
|
30
|
+
action: 'MERGE';
|
31
|
+
value: Value;
|
32
|
+
};
|
33
|
+
type TransformerNullReturnType = {
|
34
|
+
action: null;
|
35
|
+
};
|
36
|
+
type TransformerReturnType = TransformerErrorReturnType | TransformerReplaceReturnType | TransformerMergeReturnType | TransformerNullReturnType;
|
37
|
+
type AnonymousTransformer = (currentValue: Value, callerTree: Tree.Tree) => TransformerReturnType;
|
38
|
+
type Transformer = AnonymousTransformer & {
|
39
|
+
transformerName: string;
|
40
|
+
};
|
41
|
+
type TransformerGenerator = (name: string, ...args: Value[]) => Transformer;
|
42
|
+
type Resolver = (path: Tree.Tree['path']) => Tree.Tree | undefined;
|
43
|
+
type TreeOptions = {
|
44
|
+
generatorsMap: Map<string, Types.TransformerGenerator>;
|
45
|
+
keyAttribute: string;
|
46
|
+
actionAttribute: string;
|
47
|
+
};
|
48
|
+
enum ReductionAction {
|
49
|
+
APPEND = "append",
|
50
|
+
PREPEND = "prepend",
|
51
|
+
REPLACE = "replace"
|
52
|
+
}
|
53
|
+
type Serialized = {
|
54
|
+
type: 'null';
|
55
|
+
value: null;
|
56
|
+
} | {
|
57
|
+
type: 'boolean';
|
58
|
+
value: boolean;
|
59
|
+
} | {
|
60
|
+
type: 'number';
|
61
|
+
value: number;
|
62
|
+
} | {
|
63
|
+
type: 'string';
|
64
|
+
value: string;
|
65
|
+
} | {
|
66
|
+
type: 'text';
|
67
|
+
value: string;
|
68
|
+
} | {
|
69
|
+
type: 'element';
|
70
|
+
value: string;
|
71
|
+
} | {
|
72
|
+
type: 'nodelist';
|
73
|
+
value: string;
|
74
|
+
} | {
|
75
|
+
type: 'array';
|
76
|
+
value: Array<Serialized>;
|
77
|
+
} | {
|
78
|
+
type: 'record';
|
79
|
+
value: {
|
80
|
+
[k: string]: Serialized;
|
81
|
+
};
|
82
|
+
} | {
|
83
|
+
type: 'transformer';
|
84
|
+
value: Transformer;
|
85
|
+
};
|
86
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Tree } from '../tree';
|
2
|
+
import { Types } from '../types';
|
3
|
+
export declare namespace Utils {
|
4
|
+
export const pathStringToPath: (pathString: Tree.Tree["pathString"]) => Tree.Tree["path"];
|
5
|
+
export const pathToPathString: (path: Tree.Tree["path"]) => string;
|
6
|
+
type ErrReturn = Types.TransformerErrorReturnType;
|
7
|
+
export const makeTransformerError: (value: ErrReturn["value"]) => ErrReturn;
|
8
|
+
export const toNamedTransformer: (name: string, anonymous: Types.AnonymousTransformer) => Types.Transformer;
|
9
|
+
export {};
|
10
|
+
}
|
package/agnostic/html/index.js
CHANGED
@@ -1,34 +1,66 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
} from "../../chunks/chunk-
|
2
|
+
stringToNodes
|
3
|
+
} from "../../chunks/chunk-ZONKYNKA.js";
|
4
4
|
import {
|
5
|
-
|
6
|
-
} from "../../chunks/chunk-
|
5
|
+
HyperJson
|
6
|
+
} from "../../chunks/chunk-NK557MKV.js";
|
7
|
+
import "../../chunks/chunk-KXBKJ3GS.js";
|
8
|
+
import "../../chunks/chunk-S5XDYLJH.js";
|
9
|
+
import "../../chunks/chunk-4RDW62CU.js";
|
10
|
+
import "../../chunks/chunk-DMDOCC72.js";
|
11
|
+
import "../../chunks/chunk-F5YMP5WU.js";
|
12
|
+
import "../../chunks/chunk-3PHPA25U.js";
|
13
|
+
import "../../chunks/chunk-SMLKMOAX.js";
|
14
|
+
import "../../chunks/chunk-7IGZP4TV.js";
|
15
|
+
import "../../chunks/chunk-MDEDNPU5.js";
|
16
|
+
import "../../chunks/chunk-3X6RXJBR.js";
|
17
|
+
import "../../chunks/chunk-6CM2SWSX.js";
|
18
|
+
import "../../chunks/chunk-SH3Y2I5P.js";
|
19
|
+
import "../../chunks/chunk-Q52UJOBC.js";
|
20
|
+
import "../../chunks/chunk-DBAJ66BR.js";
|
21
|
+
import "../../chunks/chunk-F7XWUG2V.js";
|
22
|
+
import "../../chunks/chunk-RJ5E22H5.js";
|
23
|
+
import "../../chunks/chunk-VRUJR6WR.js";
|
24
|
+
import "../../chunks/chunk-K3OQEJI3.js";
|
25
|
+
import "../../chunks/chunk-RWUPHV54.js";
|
26
|
+
import "../../chunks/chunk-S42P73SC.js";
|
27
|
+
import "../../chunks/chunk-FWHUASVA.js";
|
28
|
+
import "../../chunks/chunk-2DMWYLFG.js";
|
29
|
+
import "../../chunks/chunk-BNB7LEMQ.js";
|
30
|
+
import "../../chunks/chunk-DRNK3RLE.js";
|
31
|
+
import "../../chunks/chunk-QO64L4KB.js";
|
32
|
+
import "../../chunks/chunk-3LVR6KZH.js";
|
33
|
+
import "../../chunks/chunk-7QMAYGNV.js";
|
34
|
+
import "../../chunks/chunk-YEBOL67V.js";
|
7
35
|
import {
|
8
36
|
getNodeAncestors
|
9
37
|
} from "../../chunks/chunk-SQZGZ3VT.js";
|
10
|
-
import {
|
11
|
-
selectorToElement
|
12
|
-
} from "../../chunks/chunk-LI5KVXAJ.js";
|
13
|
-
import {
|
14
|
-
HyperJson
|
15
|
-
} from "../../chunks/chunk-DMGR57KA.js";
|
16
|
-
import "../../chunks/chunk-E6MSDKON.js";
|
17
|
-
import "../../chunks/chunk-YDIBNEGA.js";
|
18
38
|
import {
|
19
39
|
insertNode
|
20
40
|
} from "../../chunks/chunk-XA4HVHJ4.js";
|
21
41
|
import {
|
22
|
-
|
23
|
-
} from "../../chunks/chunk-
|
42
|
+
getPositionInsideParent
|
43
|
+
} from "../../chunks/chunk-VTPRO4NJ.js";
|
44
|
+
import {
|
45
|
+
Placeholders
|
46
|
+
} from "../../chunks/chunk-VYW4IADX.js";
|
47
|
+
import {
|
48
|
+
selectorToElement
|
49
|
+
} from "../../chunks/chunk-OO5SJJDW.js";
|
24
50
|
import {
|
25
51
|
Sanitize
|
26
|
-
} from "../../chunks/chunk-
|
27
|
-
import "../../chunks/chunk-
|
28
|
-
import "../../chunks/chunk-
|
29
|
-
import "../../chunks/chunk-
|
30
|
-
import "../../chunks/chunk-
|
52
|
+
} from "../../chunks/chunk-WECTUHS5.js";
|
53
|
+
import "../../chunks/chunk-GBMHGF7P.js";
|
54
|
+
import "../../chunks/chunk-YDIBNEGA.js";
|
55
|
+
import "../../chunks/chunk-E6MSDKON.js";
|
56
|
+
import "../../chunks/chunk-MF56TTC5.js";
|
57
|
+
import "../../chunks/chunk-EAY65ZP6.js";
|
58
|
+
import "../../chunks/chunk-GDYVCEWA.js";
|
59
|
+
import "../../chunks/chunk-73V5RDSG.js";
|
60
|
+
import "../../chunks/chunk-4GUDL44X.js";
|
61
|
+
import "../../chunks/chunk-2KT7AKRW.js";
|
31
62
|
import "../../chunks/chunk-FENXVJYO.js";
|
63
|
+
import "../../chunks/chunk-QHLQVR3E.js";
|
32
64
|
import "../../chunks/chunk-QXAJXTXV.js";
|
33
65
|
import "../../chunks/chunk-HC6ZOHCS.js";
|
34
66
|
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function replaceInElement(inputElement: Element, replaceMap: Map<Element, Element>): Element;
|
@@ -1,11 +1,13 @@
|
|
1
1
|
import {
|
2
2
|
Sanitize
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-
|
5
|
-
import "../../../chunks/chunk-
|
6
|
-
import "../../../chunks/chunk-
|
7
|
-
import "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-WECTUHS5.js";
|
4
|
+
import "../../../chunks/chunk-EAY65ZP6.js";
|
5
|
+
import "../../../chunks/chunk-GDYVCEWA.js";
|
6
|
+
import "../../../chunks/chunk-73V5RDSG.js";
|
7
|
+
import "../../../chunks/chunk-4GUDL44X.js";
|
8
|
+
import "../../../chunks/chunk-2KT7AKRW.js";
|
8
9
|
import "../../../chunks/chunk-FENXVJYO.js";
|
10
|
+
import "../../../chunks/chunk-QHLQVR3E.js";
|
9
11
|
export {
|
10
12
|
Sanitize
|
11
13
|
};
|
@@ -1,11 +1,13 @@
|
|
1
1
|
import {
|
2
2
|
selectorToElement
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-
|
5
|
-
import "../../../chunks/chunk-
|
6
|
-
import "../../../chunks/chunk-
|
7
|
-
import "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-OO5SJJDW.js";
|
4
|
+
import "../../../chunks/chunk-EAY65ZP6.js";
|
5
|
+
import "../../../chunks/chunk-GDYVCEWA.js";
|
6
|
+
import "../../../chunks/chunk-73V5RDSG.js";
|
7
|
+
import "../../../chunks/chunk-4GUDL44X.js";
|
8
|
+
import "../../../chunks/chunk-2KT7AKRW.js";
|
8
9
|
import "../../../chunks/chunk-FENXVJYO.js";
|
10
|
+
import "../../../chunks/chunk-QHLQVR3E.js";
|
9
11
|
export {
|
10
12
|
selectorToElement
|
11
13
|
};
|
@@ -1,12 +1,14 @@
|
|
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-
|
8
|
-
import "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-ZONKYNKA.js";
|
4
|
+
import "../../../chunks/chunk-WECTUHS5.js";
|
5
|
+
import "../../../chunks/chunk-EAY65ZP6.js";
|
6
|
+
import "../../../chunks/chunk-GDYVCEWA.js";
|
7
|
+
import "../../../chunks/chunk-73V5RDSG.js";
|
8
|
+
import "../../../chunks/chunk-4GUDL44X.js";
|
9
|
+
import "../../../chunks/chunk-2KT7AKRW.js";
|
9
10
|
import "../../../chunks/chunk-FENXVJYO.js";
|
11
|
+
import "../../../chunks/chunk-QHLQVR3E.js";
|
10
12
|
export {
|
11
13
|
stringToNodes
|
12
14
|
};
|
package/agnostic/index.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Arrays as ArraysNamespace } from './arrays';
|
2
|
-
import { Async as AsyncNamespace } from './async';
|
3
2
|
import { Booleans as BooleansNamespace } from './booleans';
|
4
3
|
import { Css as CssNamespace } from './css';
|
5
4
|
import { Errors as ErrorsNamespace } from './errors';
|
@@ -12,7 +11,6 @@ import { Regexps as RegexpsNamespace } from './regexps';
|
|
12
11
|
import { Strings as StringsNamespace } from './strings';
|
13
12
|
export declare namespace Agnostic {
|
14
13
|
export import Arrays = ArraysNamespace;
|
15
|
-
export import Async = AsyncNamespace;
|
16
14
|
export import Booleans = BooleansNamespace;
|
17
15
|
export import Css = CssNamespace;
|
18
16
|
export import Errors = ErrorsNamespace;
|
@@ -1,3 +1,5 @@
|
|
1
|
+
import { getWindow as getWindowFunction } from './get-window';
|
2
|
+
import { getDocument as getDocumentFunction } from './get-document';
|
1
3
|
export declare namespace Crossenv {
|
2
4
|
enum RuntimeName {
|
3
5
|
NODE = "Node.js",
|
@@ -9,5 +11,6 @@ export declare namespace Crossenv {
|
|
9
11
|
AWS_LAMBDA = "AWS Lambda"
|
10
12
|
}
|
11
13
|
function detectRuntime(): RuntimeName | null;
|
12
|
-
|
14
|
+
const getWindow: typeof getWindowFunction;
|
15
|
+
const getDocument: typeof getDocumentFunction;
|
13
16
|
}
|
package/agnostic/misc/index.d.ts
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
import { Assert as AssertNamespace } from './assert';
|
2
2
|
import { Cast as CastNamespace } from './cast';
|
3
|
+
import { Crawler as CrawlerNamespace } from './crawler';
|
3
4
|
import { Crossenv as CrossenvNamespace } from './crossenv';
|
4
5
|
import { getCurrentDownlink as getCurrentDownlinkFunc } from './get-current-downlink';
|
5
6
|
import { ConstructorFunction as ConstructorFunctionType, isConstructorFunction as isConstructorFunctionFunc } from './is-constructor-function';
|
6
7
|
import { Nullish as NullishType, isNullish as isNullishFunc, isNotNullish as isNotNullishFunc } from './is-nullish';
|
7
8
|
import { Logs as LogsNamespace } from './logs';
|
8
9
|
import { LoremIpsum as LoremIpsumNamespace } from './lorem-ipsum';
|
9
|
-
import { Random as RandomNamespace } from '
|
10
|
+
import { Random as RandomNamespace } from '../random';
|
10
11
|
export declare namespace Misc {
|
11
12
|
export import Assert = AssertNamespace;
|
12
13
|
export import Cast = CastNamespace;
|
14
|
+
export import Crawler = CrawlerNamespace;
|
13
15
|
export import Crossenv = CrossenvNamespace;
|
14
16
|
const getCurrentDownlink: typeof getCurrentDownlinkFunc;
|
15
17
|
type ConstructorFunction = ConstructorFunctionType;
|