podlite 0.0.25 → 0.0.26
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/CHANGELOG.md +42 -1
- package/README.md +39 -0
- package/jest.config.js +0 -1
- package/jest.tsconfig.json +1 -1
- package/lib/ids.d.ts +1 -1
- package/lib/ids.js +8 -7
- package/lib/ids.js.map +1 -0
- package/lib/index.d.ts +1 -25
- package/lib/index.js +4 -88
- package/lib/index.js.map +1 -0
- package/lib/plugins/extrnal.js +1 -0
- package/lib/plugins/extrnal.js.map +1 -0
- package/package.json +13 -9
- package/src/ids.ts +51 -50
- package/src/index.ts +8 -124
- package/src/plugins/extrnal.ts +11 -11
- package/t/fill-fixtures-md-to-pod6.ts +21 -28
- package/t/process.ts +10 -16
- package/t/test-api.ts +28 -30
- package/tsconfig.json +14 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/index.js +0 -2
- package/lib/plugins/index.d.ts +0 -12
- package/lib/plugins/index.js +0 -25
- package/src/plugins/index.ts +0 -23
- package/t/ids.test.ts +0 -31
- package/t/plugin.test.ts +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,48 +1,89 @@
|
|
|
1
1
|
# @podlite
|
|
2
2
|
|
|
3
3
|
## Upcoming
|
|
4
|
+
|
|
5
|
+
## 0.0.26
|
|
6
|
+
|
|
7
|
+
- move plugins object to @podlite/schema package
|
|
8
|
+
|
|
4
9
|
## 0.0.25
|
|
10
|
+
|
|
5
11
|
- improve blocks linking
|
|
12
|
+
|
|
6
13
|
## 0.0.24
|
|
14
|
+
|
|
7
15
|
- clean source
|
|
16
|
+
|
|
8
17
|
## 0.0.23
|
|
18
|
+
|
|
9
19
|
- update deps
|
|
20
|
+
|
|
10
21
|
## 0.0.22
|
|
22
|
+
|
|
11
23
|
- update deps
|
|
24
|
+
|
|
12
25
|
## 0.0.21
|
|
26
|
+
|
|
13
27
|
- add =Markdown plugin
|
|
28
|
+
|
|
14
29
|
## 0.0.20
|
|
30
|
+
|
|
15
31
|
- update deps
|
|
32
|
+
|
|
16
33
|
## 0.0.19
|
|
34
|
+
|
|
17
35
|
- update depends
|
|
36
|
+
|
|
18
37
|
## 0.0.18
|
|
38
|
+
|
|
19
39
|
- update depends
|
|
40
|
+
|
|
20
41
|
## 0.0.17
|
|
42
|
+
|
|
21
43
|
- update depends
|
|
44
|
+
|
|
22
45
|
## 0.0.16
|
|
46
|
+
|
|
23
47
|
- update depends
|
|
48
|
+
|
|
24
49
|
## 0.0.15
|
|
50
|
+
|
|
25
51
|
- update depends
|
|
52
|
+
|
|
26
53
|
## 0.0.14
|
|
54
|
+
|
|
27
55
|
- update depends
|
|
56
|
+
|
|
28
57
|
## 0.0.13
|
|
58
|
+
|
|
29
59
|
- fix npm
|
|
60
|
+
|
|
30
61
|
## 0.0.12
|
|
62
|
+
|
|
31
63
|
- add id prop to AST Schema
|
|
32
64
|
- add =Toc plugin
|
|
65
|
+
|
|
33
66
|
## 0.0.10
|
|
67
|
+
|
|
34
68
|
- update deps
|
|
69
|
+
|
|
35
70
|
## 0.0.9
|
|
71
|
+
|
|
36
72
|
- fix md transforms
|
|
73
|
+
|
|
37
74
|
## 0.0.8
|
|
75
|
+
|
|
38
76
|
- update deps
|
|
39
77
|
|
|
40
78
|
## 0.0.7
|
|
79
|
+
|
|
41
80
|
- update deps
|
|
42
81
|
|
|
43
82
|
## 0.0.6
|
|
83
|
+
|
|
44
84
|
- enable tests
|
|
45
85
|
- update deps
|
|
46
86
|
|
|
47
87
|
## 0.0.5
|
|
48
|
-
|
|
88
|
+
|
|
89
|
+
- import from original repo
|
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
[](https://podlite.org)
|
|
4
|
+
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
**Podlite is a lightweight block-based markup language designed for flexibility and ease of use.**
|
|
8
|
+
|
|
9
|
+
Unbound by any specific domain, programming language, or concept, Podlite stands out as a universal markup language. It's versatile enough to be successfully implemented across various development fields, from web development to scientific research.
|
|
10
|
+
|
|
11
|
+
Podlite is not limited to any specific application domain, programming language, or concept.
|
|
12
|
+
|
|
13
|
+
In addition, the support for Markdown markup as a standard block adds convenience and allows for the use of familiar syntax for text formatting.
|
|
14
|
+
|
|
15
|
+
One of the key features of Podlite is its extensibility. This allows for defining unique and domain-specific blocks and expanding the language's functionality according to the requirements of your project.
|
|
16
|
+
|
|
17
|
+
Its flexibility makes it an ideal tool for creating documentation, blogs, educational materials, and much more.
|
|
18
|
+
|
|
19
|
+
Podlite aims to provide users with a means for creativity and expressing ideas in a structured form, while ensuring ease of use and high flexibility in content creation.
|
|
20
|
+
|
|
21
|
+
## Useful links
|
|
22
|
+
|
|
23
|
+
📖 _Project site_: [podlite.org](https://podlite.org)
|
|
24
|
+
|
|
25
|
+
📌 _Github_: [github.com/podlite](https://github.com/podlite/) 🤩
|
|
26
|
+
|
|
27
|
+
🖥️ _Online editor_: [pod6.in](https://pod6.in/)
|
|
28
|
+
|
|
29
|
+
🖥️ _Desktop editor/viewer_: [github.com/podlite/podlite-desktop](https://github.com/podlite/podlite-desktop) - the viewer and editor of `.podlite` and `.pod6` files for Windows, Linux and Mac.
|
|
30
|
+
|
|
31
|
+
📚 _Podlite for web_ - static site generator: [github.com/podlite/podlite-web](https://github.com/podlite/podlite-web)
|
|
32
|
+
|
|
33
|
+
## AUTHOR
|
|
34
|
+
|
|
35
|
+
Copyright (c) 2021-2024 Aliaksandr Zahatski
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
Released under a MIT License.
|
package/jest.config.js
CHANGED
package/jest.tsconfig.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"extends": "../../jest.tsconfig.json"}
|
|
1
|
+
{ "extends": "../../jest.tsconfig.json" }
|
package/lib/ids.d.ts
CHANGED
package/lib/ids.js
CHANGED
|
@@ -7,7 +7,7 @@ const nanoid_1 = require("nanoid");
|
|
|
7
7
|
* Clean ids from tree
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
|
-
const cleanIds = (src = { skipChain: 0, podMode: 1 }) =>
|
|
10
|
+
const cleanIds = (src = { skipChain: 0, podMode: 1 }) => tree => {
|
|
11
11
|
const transformerBlocks = (0, schema_1.makeTransformer)({
|
|
12
12
|
'*': (node, ctx, visiter) => {
|
|
13
13
|
if ('id' in node) {
|
|
@@ -15,10 +15,10 @@ const cleanIds = (src = { skipChain: 0, podMode: 1 }) => (tree) => {
|
|
|
15
15
|
node.content = visiter(node.content, ctx);
|
|
16
16
|
}
|
|
17
17
|
const { id, ...rest } = node;
|
|
18
|
-
return { ...rest
|
|
18
|
+
return { ...rest };
|
|
19
19
|
}
|
|
20
20
|
return node;
|
|
21
|
-
}
|
|
21
|
+
},
|
|
22
22
|
});
|
|
23
23
|
return transformerBlocks(tree, {});
|
|
24
24
|
};
|
|
@@ -26,7 +26,7 @@ exports.cleanIds = cleanIds;
|
|
|
26
26
|
/**
|
|
27
27
|
* Add set id to 'id' to each blocks
|
|
28
28
|
*/
|
|
29
|
-
const frozenIds = (src = { skipChain: 0, podMode: 1 }) =>
|
|
29
|
+
const frozenIds = (src = { skipChain: 0, podMode: 1 }) => tree => {
|
|
30
30
|
const transformerBlocks = (0, schema_1.makeTransformer)({
|
|
31
31
|
'*': (node, ctx, visiter) => {
|
|
32
32
|
if ('id' in node) {
|
|
@@ -37,12 +37,12 @@ const frozenIds = (src = { skipChain: 0, podMode: 1 }) => (tree) => {
|
|
|
37
37
|
return { ...rest, id: 'id' };
|
|
38
38
|
}
|
|
39
39
|
return node;
|
|
40
|
-
}
|
|
40
|
+
},
|
|
41
41
|
});
|
|
42
42
|
return transformerBlocks(tree, {});
|
|
43
43
|
};
|
|
44
44
|
exports.frozenIds = frozenIds;
|
|
45
|
-
const middleware = () =>
|
|
45
|
+
const middleware = () => tree => {
|
|
46
46
|
const transformerBlocks = (0, schema_1.makeTransformer)({
|
|
47
47
|
'*': (node, ctx, visiter) => {
|
|
48
48
|
const addIdField = (node) => {
|
|
@@ -66,8 +66,9 @@ const middleware = () => (tree) => {
|
|
|
66
66
|
return node;
|
|
67
67
|
};
|
|
68
68
|
return processContent(addIdField(node));
|
|
69
|
-
}
|
|
69
|
+
},
|
|
70
70
|
});
|
|
71
71
|
return transformerBlocks(tree, {});
|
|
72
72
|
};
|
|
73
73
|
exports.default = middleware;
|
|
74
|
+
//# sourceMappingURL=ids.js.map
|
package/lib/ids.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ids.js","sourceRoot":"","sources":["../src/ids.ts"],"names":[],"mappings":";;;AAAA,4CAAoF;AAEpF,mCAA+B;AAG/B;;;GAGG;AAEI,MAAM,QAAQ,GACnB,CAAC,GAAG,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CACvC,IAAI,CAAC,EAAE;IACL,MAAM,iBAAiB,GAAG,IAAA,wBAAe,EAAC;QACxC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;YAC1B,IAAI,IAAI,IAAI,IAAI,EAAE;gBAChB,IAAI,SAAS,IAAI,IAAI,EAAE;oBACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;iBAC1C;gBACD,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAA;gBAC5B,OAAO,EAAE,GAAG,IAAI,EAAE,CAAA;aACnB;YACD,OAAO,IAAI,CAAA;QACb,CAAC;KACF,CAAC,CAAA;IACF,OAAO,iBAAiB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;AACpC,CAAC,CAAA;AAhBU,QAAA,QAAQ,YAgBlB;AAEH;;GAEG;AACI,MAAM,SAAS,GACpB,CAAC,GAAG,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CACvC,IAAI,CAAC,EAAE;IACL,MAAM,iBAAiB,GAAG,IAAA,wBAAe,EAAC;QACxC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;YAC1B,IAAI,IAAI,IAAI,IAAI,EAAE;gBAChB,IAAI,SAAS,IAAI,IAAI,EAAE;oBACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;iBAC1C;gBACD,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAA;gBAC5B,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAA;aAC7B;YACD,OAAO,IAAI,CAAA;QACb,CAAC;KACF,CAAC,CAAA;IACF,OAAO,iBAAiB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;AACpC,CAAC,CAAA;AAhBU,QAAA,SAAS,aAgBnB;AAEH,MAAM,UAAU,GAAiB,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE;IAC5C,MAAM,iBAAiB,GAAG,IAAA,wBAAe,EAAC;QACxC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE;YAC1B,MAAM,UAAU,GAAG,CAAC,IAAa,EAAW,EAAE;gBAC5C,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,OAAO,EAAE;oBACtE,IAAI,IAAI,CAAC,IAAI,IAAI,SAAS,EAAE;wBAC1B,OAAO,IAAI,CAAA;qBACZ;yBAAM,IAAI,IAAI,CAAC,IAAI,IAAI,MAAM,EAAE;wBAC9B,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,IAAA,+BAAsB,EAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAe,CAAA;qBACzE;yBAAM;wBACL,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,IAAA,eAAM,GAAE,EAAa,CAAA;qBAC5C;iBACF;gBACD,OAAO,IAAI,CAAA;YACb,CAAC,CAAA;YACD,MAAM,cAAc,GAAG,CAAC,IAAa,EAAW,EAAE;gBAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,SAAS,IAAI,IAAI,EAAE;oBACjD,OAAO,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE,CAAA;iBACxD;gBACD,OAAO,IAAI,CAAA;YACb,CAAC,CAAA;YACD,OAAO,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;QACzC,CAAC;KACF,CAAC,CAAA;IACF,OAAO,iBAAiB,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;AACpC,CAAC,CAAA;AACD,kBAAe,UAAU,CAAA"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,31 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cleanIds, frozenIds } from './ids';
|
|
3
|
-
export { cleanIds, frozenIds };
|
|
1
|
+
import { Podlite } from '@podlite/schema';
|
|
4
2
|
export interface PodliteOpt {
|
|
5
3
|
importPlugins: boolean;
|
|
6
4
|
}
|
|
7
|
-
export interface PodliteExport {
|
|
8
|
-
errors: any;
|
|
9
|
-
toString: () => string;
|
|
10
|
-
valueOf: () => string;
|
|
11
|
-
indexingTerms: any;
|
|
12
|
-
annotations: any;
|
|
13
|
-
defenitions: any;
|
|
14
|
-
interator: any;
|
|
15
|
-
}
|
|
16
|
-
export interface Podlite {
|
|
17
|
-
toAstResult: (ast: PodliteDocument) => PodliteExport;
|
|
18
|
-
(): any;
|
|
19
|
-
use: (plugin: Plugins) => Podlite;
|
|
20
|
-
parse: (text: string, opt?: {
|
|
21
|
-
skipChain: number;
|
|
22
|
-
podMode: number;
|
|
23
|
-
}) => PodliteDocument;
|
|
24
|
-
toHtml: (ast: PodliteDocument) => string;
|
|
25
|
-
toAst: (ast: PodliteDocument) => PodliteDocument;
|
|
26
|
-
getPlugins: () => Array<Plugins>;
|
|
27
|
-
}
|
|
28
|
-
export declare const toAnyRules: (method: any, allplugins: Plugins[]) => {};
|
|
29
5
|
export declare const podlite: ({ importPlugins }: PodliteOpt) => Podlite;
|
|
30
6
|
declare const VERSION: any;
|
|
31
7
|
export { VERSION as version };
|
package/lib/index.js
CHANGED
|
@@ -3,100 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.version = exports.podlite =
|
|
6
|
+
exports.version = exports.podlite = void 0;
|
|
7
7
|
const schema_1 = require("@podlite/schema");
|
|
8
|
-
const plugins_1 = __importDefault(require("./plugins"));
|
|
9
8
|
const extrnal_1 = __importDefault(require("./plugins/extrnal"));
|
|
10
|
-
const ids_1 = __importDefault(require("./ids"));
|
|
11
|
-
const ids_2 = require("./ids");
|
|
12
|
-
Object.defineProperty(exports, "cleanIds", { enumerable: true, get: function () { return ids_2.cleanIds; } });
|
|
13
|
-
Object.defineProperty(exports, "frozenIds", { enumerable: true, get: function () { return ids_2.frozenIds; } });
|
|
14
|
-
const toAnyRules = (method, allplugins) => {
|
|
15
|
-
// make uniq plugins
|
|
16
|
-
const resultMap = allplugins.reverse().reduce((result, plugins) => {
|
|
17
|
-
for (const plugin of Object.entries(plugins)) {
|
|
18
|
-
const [key, val] = plugin;
|
|
19
|
-
if (!(key in result)) {
|
|
20
|
-
result[key] = val;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return result;
|
|
24
|
-
}, {});
|
|
25
|
-
let result = {};
|
|
26
|
-
// prepare plugins for export <method>
|
|
27
|
-
for (const plugin of Object.entries(resultMap)) {
|
|
28
|
-
const [key, val = {}] = plugin;
|
|
29
|
-
//@ts-ignore
|
|
30
|
-
if (method in val) {
|
|
31
|
-
result[key] = val[method];
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
exports.toAnyRules = toAnyRules;
|
|
37
9
|
const podlite = ({ importPlugins = true }) => {
|
|
38
|
-
let
|
|
39
|
-
|
|
40
|
-
instance.use = (onj) => {
|
|
41
|
-
for (const plugin of Object.entries(onj)) {
|
|
42
|
-
const [key, val] = plugin;
|
|
43
|
-
if (typeof val === 'function') {
|
|
44
|
-
plugins.push({ [key]: { toAst: val } });
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
plugins.push({ [key]: val });
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return instance;
|
|
51
|
-
};
|
|
52
|
-
instance.parse = (text, opt = { skipChain: 0, podMode: 1 }) => {
|
|
53
|
-
const rawTree = (0, schema_1.toTree)().use(ids_1.default).parse(text, opt);
|
|
54
|
-
const root = (0, schema_1.mkRootBlock)({ margin: "" }, rawTree);
|
|
55
|
-
return root;
|
|
56
|
-
};
|
|
57
|
-
instance.toAst = (ast) => {
|
|
58
|
-
return instance.toAstResult(ast).interator;
|
|
59
|
-
};
|
|
60
|
-
instance.toAstResult = (ast) => {
|
|
61
|
-
// get plugins for Ast
|
|
62
|
-
const toAstPlugins = (0, exports.toAnyRules)('toAst', instance.getPlugins());
|
|
63
|
-
const result = (0, schema_1.toAny)().use({
|
|
64
|
-
'*': () => (node, ctx, interator) => {
|
|
65
|
-
if ('content' in node) {
|
|
66
|
-
node.content = interator(node.content, ctx);
|
|
67
|
-
}
|
|
68
|
-
return node;
|
|
69
|
-
}
|
|
70
|
-
}).use(toAstPlugins).run(ast);
|
|
71
|
-
// add second pass
|
|
72
|
-
const toAstAfterPlugins = (0, exports.toAnyRules)('toAstAfter', instance.getPlugins());
|
|
73
|
-
if (Object.keys(toAstAfterPlugins).length) {
|
|
74
|
-
const resultAfter = (0, schema_1.toAny)().use({
|
|
75
|
-
'*': () => (node, ctx, interator) => {
|
|
76
|
-
if ('content' in node) {
|
|
77
|
-
node.content = interator(node.content, ctx);
|
|
78
|
-
}
|
|
79
|
-
return node;
|
|
80
|
-
}
|
|
81
|
-
}).use(toAstAfterPlugins).run(ast);
|
|
82
|
-
return resultAfter;
|
|
83
|
-
}
|
|
84
|
-
return result;
|
|
85
|
-
};
|
|
86
|
-
instance.toHtml = (ast) => {
|
|
87
|
-
const toHtmlPlugins = (0, exports.toAnyRules)('toHtml', instance.getPlugins());
|
|
88
|
-
return (0, schema_1.toHtml)({}).use(toHtmlPlugins).run(ast, null);
|
|
89
|
-
};
|
|
90
|
-
instance.getPlugins = () => plugins;
|
|
91
|
-
// init core plugins
|
|
92
|
-
instance.use(plugins_1.default);
|
|
93
|
-
if (importPlugins) {
|
|
94
|
-
instance.use(extrnal_1.default);
|
|
95
|
-
}
|
|
96
|
-
return instance;
|
|
10
|
+
let plugins = importPlugins ? extrnal_1.default : {};
|
|
11
|
+
return (0, schema_1.podlitePluggable)({ plugins });
|
|
97
12
|
};
|
|
98
13
|
exports.podlite = podlite;
|
|
99
14
|
// Cannot be `import` as it's not under TS root dir
|
|
100
15
|
// https://stackoverflow.com/questions/51070138/how-to-import-package-json-into-typescript-file-without-including-it-in-the-comp
|
|
101
16
|
const { version: VERSION } = require('../package.json');
|
|
102
17
|
exports.version = VERSION;
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,4CAA2D;AAC3D,gEAA+C;AAKxC,MAAM,OAAO,GAAG,CAAC,EAAE,aAAa,GAAG,IAAI,EAAc,EAAW,EAAE;IACvE,IAAI,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,iBAAe,CAAC,CAAC,CAAC,EAAE,CAAA;IAClD,OAAO,IAAA,yBAAgB,EAAC,EAAE,OAAO,EAAE,CAAC,CAAA;AACtC,CAAC,CAAA;AAHY,QAAA,OAAO,WAGnB;AAED,mDAAmD;AACnD,gIAAgI;AAEhI,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;AACnC,0BAAO"}
|
package/lib/plugins/extrnal.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extrnal.js","sourceRoot":"","sources":["../../src/plugins/extrnal.ts"],"names":[],"mappings":";;AACA,0CAA+C;AAC/C,8CAAoE;AACpE,gDAAsE;AACtE,sCAA4D;AAC5D,MAAM,QAAQ,GAAY;IACxB,GAAG,wBAAe;IAClB,GAAG,yBAAgB;IACnB,GAAG,sBAAc;IACjB,GAAG,oBAAW;CACf,CAAA;AAED,kBAAe,QAAQ,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "podlite",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Podlite - a block-based
|
|
5
|
-
"main": "index.js",
|
|
3
|
+
"version": "0.0.26",
|
|
4
|
+
"description": "Podlite - a lightweight block-based markup language",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "yarn g:jest --passWithNoTests",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"author": "Aliaksandr Zahatski",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@podlite/diagram": "^0.0.
|
|
25
|
-
"@podlite/image": "^0.0.
|
|
26
|
-
"@podlite/markdown": "0.0.
|
|
27
|
-
"@podlite/schema": "^0.0.
|
|
28
|
-
"@podlite/toc": "0.0.
|
|
24
|
+
"@podlite/diagram": "^0.0.17",
|
|
25
|
+
"@podlite/image": "^0.0.12",
|
|
26
|
+
"@podlite/markdown": "0.0.6",
|
|
27
|
+
"@podlite/schema": "^0.0.13",
|
|
28
|
+
"@podlite/toc": "0.0.6",
|
|
29
29
|
"nanoid": "3.1.30"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -34,8 +34,12 @@
|
|
|
34
34
|
"npm-run-all": "^4.1.5",
|
|
35
35
|
"typescript": "4.5.5"
|
|
36
36
|
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"react": "^16.0.0 || ^17.0.0",
|
|
39
|
+
"react-dom": "^16.0.0 || ^17.0.0"
|
|
40
|
+
},
|
|
37
41
|
"publishConfig": {
|
|
38
42
|
"access": "public",
|
|
39
|
-
"main": "index.js"
|
|
43
|
+
"main": "./lib/index.js"
|
|
40
44
|
}
|
|
41
45
|
}
|
package/src/ids.ts
CHANGED
|
@@ -1,75 +1,76 @@
|
|
|
1
|
-
import {BlockHead, getTextContentFromNode, makeTransformer} from
|
|
2
|
-
import { ParserPlugin
|
|
1
|
+
import { BlockHead, getTextContentFromNode, makeTransformer } from '@podlite/schema'
|
|
2
|
+
import { ParserPlugin } from '@podlite/schema'
|
|
3
3
|
import { nanoid } from 'nanoid'
|
|
4
|
-
import {
|
|
4
|
+
import { PodNode } from '@podlite/schema'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* Clean ids from tree
|
|
8
|
-
* @returns
|
|
7
|
+
* Clean ids from tree
|
|
8
|
+
* @returns
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
export const cleanIds =
|
|
11
|
+
export const cleanIds =
|
|
12
|
+
(src = { skipChain: 0, podMode: 1 }) =>
|
|
13
|
+
tree => {
|
|
12
14
|
const transformerBlocks = makeTransformer({
|
|
13
15
|
'*': (node, ctx, visiter) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
const {id, ...rest} = node
|
|
19
|
-
return { ...rest, }
|
|
16
|
+
if ('id' in node) {
|
|
17
|
+
if ('content' in node) {
|
|
18
|
+
node.content = visiter(node.content, ctx)
|
|
20
19
|
}
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
const { id, ...rest } = node
|
|
21
|
+
return { ...rest }
|
|
22
|
+
}
|
|
23
|
+
return node
|
|
24
|
+
},
|
|
23
25
|
})
|
|
24
|
-
return transformerBlocks(tree,{})
|
|
26
|
+
return transformerBlocks(tree, {})
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
/**
|
|
28
30
|
* Add set id to 'id' to each blocks
|
|
29
31
|
*/
|
|
30
|
-
export const frozenIds =
|
|
32
|
+
export const frozenIds =
|
|
33
|
+
(src = { skipChain: 0, podMode: 1 }) =>
|
|
34
|
+
tree => {
|
|
31
35
|
const transformerBlocks = makeTransformer({
|
|
32
36
|
'*': (node, ctx, visiter) => {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
const {id, ...rest} = node
|
|
38
|
-
return { ...rest, id: 'id' }
|
|
37
|
+
if ('id' in node) {
|
|
38
|
+
if ('content' in node) {
|
|
39
|
+
node.content = visiter(node.content, ctx)
|
|
39
40
|
}
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
const { id, ...rest } = node
|
|
42
|
+
return { ...rest, id: 'id' }
|
|
43
|
+
}
|
|
44
|
+
return node
|
|
45
|
+
},
|
|
42
46
|
})
|
|
43
|
-
return transformerBlocks(tree,{})
|
|
44
|
-
}
|
|
45
|
-
|
|
47
|
+
return transformerBlocks(tree, {})
|
|
48
|
+
}
|
|
46
49
|
|
|
47
|
-
const middleware:ParserPlugin = () =>
|
|
48
|
-
|
|
50
|
+
const middleware: ParserPlugin = () => tree => {
|
|
49
51
|
const transformerBlocks = makeTransformer({
|
|
50
52
|
'*': (node, ctx, visiter) => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
return node
|
|
68
|
-
}
|
|
69
|
-
return processContent( addIdField(node) )
|
|
53
|
+
const addIdField = (node: PodNode): PodNode => {
|
|
54
|
+
if (typeof node === 'object' && 'type' in node && node.type == 'block') {
|
|
55
|
+
if (node.name == 'caption') {
|
|
56
|
+
return node
|
|
57
|
+
} else if (node.name == 'head') {
|
|
58
|
+
return { ...node, id: getTextContentFromNode(node).trim() } as BlockHead
|
|
59
|
+
} else {
|
|
60
|
+
return { ...node, id: nanoid() } as PodNode
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return node
|
|
64
|
+
}
|
|
65
|
+
const processContent = (node: PodNode): PodNode => {
|
|
66
|
+
if (typeof node === 'object' && 'content' in node) {
|
|
67
|
+
return { ...node, content: visiter(node.content, ctx) }
|
|
70
68
|
}
|
|
69
|
+
return node
|
|
70
|
+
}
|
|
71
|
+
return processContent(addIdField(node))
|
|
72
|
+
},
|
|
71
73
|
})
|
|
72
|
-
return transformerBlocks(tree,{})
|
|
74
|
+
return transformerBlocks(tree, {})
|
|
73
75
|
}
|
|
74
76
|
export default middleware
|
|
75
|
-
|
package/src/index.ts
CHANGED
|
@@ -1,132 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import externalPlugins from './plugins/extrnal'
|
|
4
|
-
import idMiddleware from "./ids"
|
|
5
|
-
import { cleanIds, frozenIds } from './ids'
|
|
6
|
-
export {cleanIds, frozenIds}
|
|
7
|
-
|
|
1
|
+
import { podlitePluggable, Podlite } from '@podlite/schema'
|
|
2
|
+
import externalPlugins from './plugins/extrnal'
|
|
8
3
|
export interface PodliteOpt {
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface PodliteExport {
|
|
13
|
-
errors: any;
|
|
14
|
-
toString: () => string;
|
|
15
|
-
valueOf: () => string;
|
|
16
|
-
indexingTerms: any;
|
|
17
|
-
annotations: any;
|
|
18
|
-
defenitions: any;
|
|
19
|
-
interator: any;
|
|
4
|
+
importPlugins: boolean
|
|
20
5
|
}
|
|
21
|
-
export interface Podlite {
|
|
22
|
-
toAstResult: (ast:PodliteDocument) => PodliteExport;
|
|
23
|
-
(): any,
|
|
24
|
-
use:(plugin:Plugins)=>Podlite,
|
|
25
|
-
parse:(text:string, opt? : {skipChain:number, podMode:number})=>PodliteDocument,
|
|
26
|
-
toHtml: (ast:PodliteDocument)=>string,
|
|
27
|
-
toAst: (ast:PodliteDocument)=>PodliteDocument,
|
|
28
|
-
getPlugins: ()=>Array<Plugins>
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export const toAnyRules =(method, allplugins:Plugins[])=>{
|
|
33
|
-
// make uniq plugins
|
|
34
|
-
const resultMap:Plugins = allplugins.reverse().reduce((result:Plugins, plugins:Plugins)=>{
|
|
35
|
-
for ( const plugin of Object.entries(plugins) ) {
|
|
36
|
-
const [ key, val ] = plugin
|
|
37
|
-
if (!( key in result ) ) {
|
|
38
|
-
result[key] = val
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return result
|
|
42
|
-
},<Plugins>{})
|
|
43
|
-
|
|
44
|
-
let result = {}
|
|
45
|
-
// prepare plugins for export <method>
|
|
46
|
-
for ( const plugin of Object.entries(resultMap) ) {
|
|
47
|
-
const [ key, val = {} ] = plugin
|
|
48
|
-
//@ts-ignore
|
|
49
|
-
if ( method in val ) {
|
|
50
|
-
result[key] = val[method]
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return result
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export const podlite = ({ importPlugins = true }:PodliteOpt):Podlite => {
|
|
57
|
-
let instance= <Podlite>function(){}
|
|
58
|
-
let plugins:Plugins[] = []
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
instance.use = (onj:Plugins) =>{
|
|
62
|
-
for ( const plugin of Object.entries(onj) ) {
|
|
63
|
-
const [ key, val ] = plugin
|
|
64
|
-
if ( typeof val === 'function' ) {
|
|
65
|
-
plugins.push( {[key]:{toAst:val}})
|
|
66
|
-
} else {
|
|
67
|
-
plugins.push( {[key]:val} )
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return instance
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
instance.parse = ( text, opt = {skipChain: 0, podMode: 1}) => {
|
|
74
|
-
const rawTree = toTree().use(idMiddleware).parse(text, opt)
|
|
75
|
-
const root = mkRootBlock({margin:""}, rawTree)
|
|
76
|
-
return root;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
instance.toAst = (ast) =>{
|
|
80
|
-
return <PodliteDocument>instance.toAstResult(ast).interator
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
instance.toAstResult = (ast) =>{
|
|
84
|
-
// get plugins for Ast
|
|
85
|
-
const toAstPlugins= toAnyRules('toAst', instance.getPlugins())
|
|
86
|
-
const result:PodliteExport = toAny().use({
|
|
87
|
-
'*':( )=>( node, ctx, interator )=>{
|
|
88
|
-
if ( 'content' in node ) {
|
|
89
|
-
node.content = interator(node.content, ctx)
|
|
90
|
-
}
|
|
91
|
-
return node
|
|
92
|
-
}
|
|
93
|
-
}).use(toAstPlugins).run(ast)
|
|
94
|
-
// add second pass
|
|
95
|
-
const toAstAfterPlugins= toAnyRules('toAstAfter', instance.getPlugins())
|
|
96
|
-
if (Object.keys(toAstAfterPlugins).length) {
|
|
97
|
-
const resultAfter:PodliteExport = toAny().use({
|
|
98
|
-
'*':( )=>( node, ctx, interator )=>{
|
|
99
|
-
if ( 'content' in node ) {
|
|
100
|
-
node.content = interator(node.content, ctx)
|
|
101
|
-
}
|
|
102
|
-
return node
|
|
103
|
-
}
|
|
104
|
-
}).use(toAstAfterPlugins).run(ast)
|
|
105
|
-
return resultAfter
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
return result
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
instance.toHtml = ( ast ) => {
|
|
112
|
-
const toHtmlPlugins= toAnyRules('toHtml', instance.getPlugins())
|
|
113
|
-
return toHtml({}).use(toHtmlPlugins).run(ast,null)
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
instance.getPlugins = ()=>plugins
|
|
117
|
-
|
|
118
|
-
// init core plugins
|
|
119
|
-
instance.use( core )
|
|
120
|
-
if (importPlugins) {
|
|
121
|
-
instance.use( externalPlugins )
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
return instance
|
|
125
6
|
|
|
7
|
+
export const podlite = ({ importPlugins = true }: PodliteOpt): Podlite => {
|
|
8
|
+
let plugins = importPlugins ? externalPlugins : {}
|
|
9
|
+
return podlitePluggable({ plugins })
|
|
126
10
|
}
|
|
127
11
|
|
|
128
12
|
// Cannot be `import` as it's not under TS root dir
|
|
129
13
|
// https://stackoverflow.com/questions/51070138/how-to-import-package-json-into-typescript-file-without-including-it-in-the-comp
|
|
130
14
|
|
|
131
|
-
const {version: VERSION} = require('../package.json')
|
|
132
|
-
export { VERSION as version}
|
|
15
|
+
const { version: VERSION } = require('../package.json')
|
|
16
|
+
export { VERSION as version }
|
package/src/plugins/extrnal.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {Plugins} from '@podlite/schema'
|
|
2
|
-
import {PluginRegister} from '@podlite/image'
|
|
3
|
-
import { PluginRegister as DiagramRegister } from '@podlite/diagram'
|
|
4
|
-
import { PluginRegister as MarkdownRegister } from '@podlite/markdown'
|
|
5
|
-
import { PluginRegister as TocRegister } from '@podlite/toc'
|
|
6
|
-
const external:Plugins = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { Plugins } from '@podlite/schema'
|
|
2
|
+
import { PluginRegister } from '@podlite/image'
|
|
3
|
+
import { PluginRegister as DiagramRegister } from '@podlite/diagram'
|
|
4
|
+
import { PluginRegister as MarkdownRegister } from '@podlite/markdown'
|
|
5
|
+
import { PluginRegister as TocRegister } from '@podlite/toc'
|
|
6
|
+
const external: Plugins = {
|
|
7
|
+
...DiagramRegister,
|
|
8
|
+
...MarkdownRegister,
|
|
9
|
+
...PluginRegister,
|
|
10
|
+
...TocRegister,
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export default external
|
|
13
|
+
export default external
|
|
@@ -1,35 +1,28 @@
|
|
|
1
|
-
import * as fs
|
|
1
|
+
import * as fs from 'fs'
|
|
2
2
|
|
|
3
|
+
import { loadSrcFixtures } from './test-api'
|
|
4
|
+
import { mdToPod6 } from '../src'
|
|
5
|
+
const log = t => JSON.stringify(t, null, 2)
|
|
6
|
+
const allSrcFixtures = loadSrcFixtures('t/fixtures-md/*.t', 't/fixtures-md-to-pod6')
|
|
3
7
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const log = (t)=> JSON.stringify(t, null,2)
|
|
7
|
-
const allSrcFixtures = loadSrcFixtures('t/fixtures-md/*.t', 't/fixtures-md-to-pod6')
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const notExistsTests = allSrcFixtures.filter( r => !fs.existsSync(r.testFile))
|
|
11
|
-
const byName = allSrcFixtures.filter( r => r.testFile === 't/fixtures/00-main_links.txt1')
|
|
8
|
+
const notExistsTests = allSrcFixtures.filter(r => !fs.existsSync(r.testFile))
|
|
9
|
+
const byName = allSrcFixtures.filter(r => r.testFile === 't/fixtures/00-main_links.txt1')
|
|
12
10
|
|
|
13
11
|
// get fixture to test
|
|
14
|
-
const fixture = byName[0] ? byName[0]
|
|
15
|
-
if (1 && fixture) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
console.log('s')
|
|
23
|
-
const saveTest = (filename, src, tree) =>{
|
|
24
|
-
fs.writeFileSync( filename, [src, tree].join('~~~~~~~\n'))
|
|
25
|
-
}
|
|
26
|
-
// saveTest(fixture.testFile, fixture.text, test)
|
|
27
|
-
console.log('sadasd')
|
|
12
|
+
const fixture = byName[0] ? byName[0] : notExistsTests && notExistsTests[0] ? notExistsTests[0] : null
|
|
13
|
+
if (1 && fixture) {
|
|
14
|
+
console.log([fixture.testFile, '\n.\n', fixture.text, '.\n'].join(''))
|
|
15
|
+
const test = mdToPod6(fixture.text, {})
|
|
16
|
+
if (fixture.testFile === 't/fixtures-md-to-pod6/01-node-api_1.txt') {
|
|
17
|
+
console.log('s')
|
|
18
|
+
const saveTest = (filename, src, tree) => {
|
|
19
|
+
fs.writeFileSync(filename, [src, tree].join('~~~~~~~\n'))
|
|
28
20
|
}
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
// saveTest(fixture.testFile, fixture.text, test)
|
|
22
|
+
console.log('sadasd')
|
|
23
|
+
}
|
|
24
|
+
console.log(test)
|
|
25
|
+
// console.log(JSON.stringify(test ,null, 2))
|
|
31
26
|
} else {
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
console.log('no new fixtures')
|
|
34
28
|
}
|
|
35
|
-
|
package/t/process.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
// import unified from 'unified'
|
|
3
2
|
// import markdown from 'remark-parse'
|
|
4
3
|
// import { Interface } from 'readline'
|
|
@@ -35,13 +34,13 @@
|
|
|
35
34
|
// return mkNode({ type:'fcode', ...attrs, content})
|
|
36
35
|
// }
|
|
37
36
|
// const mkBlock = ( attrs, content ) => {
|
|
38
|
-
|
|
37
|
+
|
|
39
38
|
// const type="block"
|
|
40
39
|
// const name = attrs.name
|
|
41
40
|
// const contents = content
|
|
42
41
|
// const attributres = {...attrs}
|
|
43
42
|
// var result = mkNode({type,...attributres })
|
|
44
|
-
|
|
43
|
+
|
|
45
44
|
// result.toJSON = ()=>{
|
|
46
45
|
// return { type, ...attributres, content: contents.filter(i=>i).map(i=> { return ('function' === typeof i ) ? i.toJSON() : i })}
|
|
47
46
|
// }
|
|
@@ -50,13 +49,13 @@
|
|
|
50
49
|
|
|
51
50
|
// //markdown specific
|
|
52
51
|
// const mkReference = ( attrs, content, writer ) => {
|
|
53
|
-
|
|
52
|
+
|
|
54
53
|
// const type="block"
|
|
55
54
|
// const name = attrs.name
|
|
56
55
|
// const contents = content
|
|
57
56
|
// const attributres = {...attrs}
|
|
58
57
|
// var result = mkNode({type,...attributres })
|
|
59
|
-
|
|
58
|
+
|
|
60
59
|
// result.toJSON = ()=>{
|
|
61
60
|
// const definition = writer.linkmap[attributres.identifier]
|
|
62
61
|
// const meta = definition.url
|
|
@@ -66,20 +65,18 @@
|
|
|
66
65
|
|
|
67
66
|
// }
|
|
68
67
|
|
|
69
|
-
|
|
70
|
-
|
|
71
68
|
// const rules = {
|
|
72
69
|
// '*' : ( writer, processor )=>( node, ctx, interator )=>{
|
|
73
|
-
// const { children, position, ...attr} = node
|
|
70
|
+
// const { children, position, ...attr} = node
|
|
74
71
|
// console.error(attr)
|
|
75
72
|
// return null
|
|
76
73
|
// },
|
|
77
74
|
// ':root' : ( writer, processor )=>( node, ctx, interator )=>{
|
|
78
|
-
// const { children, position, ...attr} = node
|
|
75
|
+
// const { children, position, ...attr} = node
|
|
79
76
|
// return mkBlock({name:"pod", location:position}, interator(children, ctx))
|
|
80
77
|
// },
|
|
81
78
|
// ':html': ( writer, processor )=>( node, ctx, interator )=>{
|
|
82
|
-
// const { children, position, ...attr} = node
|
|
79
|
+
// const { children, position, ...attr} = node
|
|
83
80
|
// return mkBlock({type:'block', name:'Html', location:position},[mkVerbatim(node.value)]);
|
|
84
81
|
// },
|
|
85
82
|
// ':heading' : ( writer, processor )=>( node, ctx, interator )=>{
|
|
@@ -138,7 +135,7 @@
|
|
|
138
135
|
// const { children, position, ...attr} = node
|
|
139
136
|
// return mkBlock({type:'block', name:'code', location:position},[mkVerbatim(node.value)]);
|
|
140
137
|
// },
|
|
141
|
-
// }
|
|
138
|
+
// }
|
|
142
139
|
// // console.log(toAny)
|
|
143
140
|
// const toF = toAny({processor:1})
|
|
144
141
|
// .use( rules )
|
|
@@ -152,20 +149,19 @@
|
|
|
152
149
|
// // sds **sd**
|
|
153
150
|
// // `)
|
|
154
151
|
|
|
155
|
-
|
|
156
152
|
// const log = (t)=> JSON.stringify(t, null,2)
|
|
157
153
|
// // console.log(toF.run(tree).interator)
|
|
158
154
|
// const t = JSON.parse(JSON.stringify(toF.run(tree).interator.toJSON()))
|
|
159
155
|
// const t2 = toF.run(tree).interator.toJSON()
|
|
160
156
|
// // console.log(t.content[2].content[0].content[0].content)
|
|
161
|
-
// // console.log(log(t.interator.toJSON()))
|
|
157
|
+
// // console.log(log(t.interator.toJSON()))
|
|
162
158
|
// // fs.writeFileSync("out.json", log(t.interator.toJSON()))
|
|
163
159
|
// const r = toHtml().run(t).toString()
|
|
164
160
|
// r
|
|
165
161
|
// // fs.writeFileSync("out.html", r.toString())
|
|
166
162
|
// // console.log(r.toString())
|
|
167
163
|
// // const process = (node, content )=>{
|
|
168
|
-
// // // convert position
|
|
164
|
+
// // // convert position
|
|
169
165
|
// // const {position} = node
|
|
170
166
|
// // switch (node.type) {
|
|
171
167
|
// // case 'root':
|
|
@@ -212,5 +208,3 @@
|
|
|
212
208
|
// // const new_tree = visit(tree)
|
|
213
209
|
// // console.log(log(new_tree.toJSON()))
|
|
214
210
|
// // console.log(log(tree))
|
|
215
|
-
|
|
216
|
-
|
package/t/test-api.ts
CHANGED
|
@@ -1,37 +1,35 @@
|
|
|
1
|
-
|
|
2
1
|
import * as path from 'path'
|
|
3
|
-
import * as fs
|
|
2
|
+
import * as fs from 'fs'
|
|
4
3
|
const glob = require('glob')
|
|
5
4
|
import { parse } from 'pod6'
|
|
6
5
|
import makeAttrs from 'pod6/built/helpers/config'
|
|
7
|
-
import toAny
|
|
6
|
+
import toAny from 'pod6/built/exportAny'
|
|
8
7
|
|
|
9
|
-
export const loadFixture = (filename = 't/fixtures/01-delimited_3.txt', testPath:string) =>{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
8
|
+
export const loadFixture = (filename = 't/fixtures/01-delimited_3.txt', testPath: string) => {
|
|
9
|
+
const content = fs.readFileSync(filename)
|
|
10
|
+
const tree = parse(content.toString())
|
|
11
|
+
let codeBlocks = []
|
|
12
|
+
let id = 0
|
|
13
|
+
const rules = {
|
|
14
|
+
code: () => (node, ctx) => {
|
|
15
|
+
const { dir, name } = path.parse(filename)
|
|
16
|
+
const attr = makeAttrs(node, ctx)
|
|
17
|
+
// overwrite id from block attributes
|
|
18
|
+
const fid = attr.exists('id') ? attr.getFirstValue('id') : ++id
|
|
19
|
+
if (node.content[0].value)
|
|
20
|
+
codeBlocks.push({
|
|
21
|
+
filename,
|
|
22
|
+
id: fid,
|
|
23
|
+
testFile: `${testPath}/${name}_${fid}.txt`,
|
|
24
|
+
text: node.content[0].value,
|
|
25
|
+
})
|
|
26
|
+
},
|
|
27
|
+
}
|
|
28
|
+
const toF = toAny({ processor: 1 }).use(rules).run(tree)
|
|
29
|
+
return codeBlocks
|
|
31
30
|
}
|
|
32
31
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
32
|
+
export const loadSrcFixtures = (path: string, testPath: string) => {
|
|
33
|
+
const rawSrcFixtures = glob.sync(path)
|
|
34
|
+
return rawSrcFixtures.map(filename => loadFixture(filename, testPath)).flat()
|
|
35
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -3,8 +3,14 @@
|
|
|
3
3
|
"outDir": "./lib",
|
|
4
4
|
"rootDir": "./src",
|
|
5
5
|
"allowJs": true,
|
|
6
|
-
|
|
6
|
+
// "target": "es2019",
|
|
7
|
+
"target": "ESNext",
|
|
8
|
+
// "target": "es5",
|
|
9
|
+
// "lib": ["es2020", "dom"],
|
|
10
|
+
"lib": ["dom", "esnext", "dom.iterable"],
|
|
11
|
+
|
|
7
12
|
"module": "commonjs",
|
|
13
|
+
// "module": "esnext",
|
|
8
14
|
"esModuleInterop": true,
|
|
9
15
|
// "allowSyntheticDefaultImports":false,
|
|
10
16
|
"moduleResolution": "node",
|
|
@@ -12,7 +18,13 @@
|
|
|
12
18
|
"declaration": true,
|
|
13
19
|
"composite": true,
|
|
14
20
|
"jsx": "react",
|
|
15
|
-
|
|
21
|
+
// "jsx": "preserve",
|
|
22
|
+
"sourceMap": true,
|
|
23
|
+
"allowSyntheticDefaultImports": true,
|
|
24
|
+
"noEmit": false,
|
|
25
|
+
// "emitDeclarationOnly": true,
|
|
26
|
+
|
|
27
|
+
},
|
|
16
28
|
|
|
17
29
|
"include": ["./src/**/*", "./package.json"],
|
|
18
30
|
"exclude": ["definitions"],
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../node_modules/typescript/lib/lib.scripthost.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/typescript/lib/lib.es2019.full.d.ts","../../node_modules/ajv/dist/compile/codegen/code.d.ts","../../node_modules/ajv/dist/compile/codegen/scope.d.ts","../../node_modules/ajv/dist/compile/codegen/index.d.ts","../../node_modules/ajv/dist/compile/rules.d.ts","../../node_modules/ajv/dist/compile/subschema.d.ts","../../node_modules/ajv/dist/compile/context.d.ts","../../node_modules/ajv/dist/compile/validate/dataType.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/contains.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/not.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/if.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/index.d.ts","../../node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts","../../node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts","../../node_modules/ajv/dist/vocabularies/validation/pattern.d.ts","../../node_modules/ajv/dist/vocabularies/validation/required.d.ts","../../node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts","../../node_modules/ajv/dist/vocabularies/validation/const.d.ts","../../node_modules/ajv/dist/vocabularies/validation/enum.d.ts","../../node_modules/ajv/dist/vocabularies/validation/index.d.ts","../../node_modules/ajv/dist/vocabularies/format/format.d.ts","../../node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts","../../node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts","../../node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts","../../node_modules/ajv/dist/vocabularies/errors.d.ts","../../node_modules/ajv/dist/types/json-schema.d.ts","../../node_modules/ajv/dist/types/jtd-schema.d.ts","../../node_modules/ajv/dist/compile/error_classes.d.ts","../../node_modules/ajv/dist/core.d.ts","../../node_modules/uri-js/dist/es5/uri.all.d.ts","../../node_modules/ajv/dist/compile/resolve.d.ts","../../node_modules/ajv/dist/compile/index.d.ts","../../node_modules/ajv/dist/types/index.d.ts","../../node_modules/ajv/dist/ajv.d.ts","../podlite-schema/lib/types.d.ts","../podlite-schema/lib/blocks-helpers.d.ts","../podlite-schema/lib/query-helpers.d.ts","../podlite-schema/lib/helpers/config.d.ts","../podlite-schema/lib/ast-helpers.d.ts","../../node_modules/@types/node/assert.d.ts","../../node_modules/@types/node/assert/strict.d.ts","../../node_modules/@types/node/globals.d.ts","../../node_modules/@types/node/async_hooks.d.ts","../../node_modules/@types/node/buffer.d.ts","../../node_modules/@types/node/child_process.d.ts","../../node_modules/@types/node/cluster.d.ts","../../node_modules/@types/node/console.d.ts","../../node_modules/@types/node/constants.d.ts","../../node_modules/@types/node/crypto.d.ts","../../node_modules/@types/node/dgram.d.ts","../../node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/@types/node/dns.d.ts","../../node_modules/@types/node/dns/promises.d.ts","../../node_modules/@types/node/domain.d.ts","../../node_modules/@types/node/events.d.ts","../../node_modules/@types/node/fs.d.ts","../../node_modules/@types/node/fs/promises.d.ts","../../node_modules/@types/node/http.d.ts","../../node_modules/@types/node/http2.d.ts","../../node_modules/@types/node/https.d.ts","../../node_modules/@types/node/inspector.d.ts","../../node_modules/@types/node/module.d.ts","../../node_modules/@types/node/net.d.ts","../../node_modules/@types/node/os.d.ts","../../node_modules/@types/node/path.d.ts","../../node_modules/@types/node/perf_hooks.d.ts","../../node_modules/@types/node/process.d.ts","../../node_modules/@types/node/punycode.d.ts","../../node_modules/@types/node/querystring.d.ts","../../node_modules/@types/node/readline.d.ts","../../node_modules/@types/node/repl.d.ts","../../node_modules/@types/node/stream.d.ts","../../node_modules/@types/node/stream/promises.d.ts","../../node_modules/@types/node/stream/consumers.d.ts","../../node_modules/@types/node/stream/web.d.ts","../../node_modules/@types/node/string_decoder.d.ts","../../node_modules/@types/node/timers.d.ts","../../node_modules/@types/node/timers/promises.d.ts","../../node_modules/@types/node/tls.d.ts","../../node_modules/@types/node/trace_events.d.ts","../../node_modules/@types/node/tty.d.ts","../../node_modules/@types/node/url.d.ts","../../node_modules/@types/node/util.d.ts","../../node_modules/@types/node/v8.d.ts","../../node_modules/@types/node/vm.d.ts","../../node_modules/@types/node/wasi.d.ts","../../node_modules/@types/node/worker_threads.d.ts","../../node_modules/@types/node/zlib.d.ts","../../node_modules/@types/node/globals.global.d.ts","../../node_modules/@types/node/index.d.ts","../podlite-schema/lib/writer.d.ts","../podlite-schema/lib/helpers/makeQuery.d.ts","../podlite-schema/lib/helpers/handlers.d.ts","../podlite-schema/lib/ast-inerator.d.ts","../podlite-schema/lib/helpers/makeTransformer.d.ts","../podlite-schema/lib/exportAny.d.ts","../podlite-schema/lib/plugin-clean-location.d.ts","../podlite-schema/lib/exportHtml.d.ts","../podlite-schema/lib/index.d.ts","../../node_modules/nanoid/index.d.ts","./src/ids.ts","./src/plugins/index.ts","../podlite-image/lib/index.d.ts","../../node_modules/@types/react/global.d.ts","../../node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../../node_modules/@types/react/index.d.ts","../podlite-diagrams/lib/index.d.ts","../podlite-markdown/lib/tools.d.ts","../podlite-markdown/lib/index.d.ts","../podlite-toc/lib/index.d.ts","./src/plugins/extrnal.ts","./src/index.ts","../../node_modules/jest-diff/build/cleanupSemantic.d.ts","../../node_modules/jest-diff/build/types.d.ts","../../node_modules/jest-diff/build/diffLines.d.ts","../../node_modules/jest-diff/build/printDiffs.d.ts","../../node_modules/jest-diff/build/index.d.ts","../../node_modules/pretty-format/build/types.d.ts","../../node_modules/pretty-format/build/index.d.ts","./node_modules/@types/jest/index.d.ts","../../node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__generator/index.d.ts","../../node_modules/@babel/parser/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/@types/babel__template/index.d.ts","../../node_modules/@types/babel__traverse/index.d.ts","../../node_modules/@types/babel__core/index.d.ts","../../node_modules/@types/ms/index.d.ts","../../node_modules/@types/debug/index.d.ts","../../node_modules/@types/graceful-fs/index.d.ts","../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../node_modules/@types/istanbul-lib-report/index.d.ts","../../node_modules/@types/istanbul-reports/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/json5/index.d.ts","../../node_modules/@types/unist/index.d.ts","../../node_modules/@types/mdast/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/minimist/index.d.ts","../../node_modules/@types/normalize-package-data/index.d.ts","../../node_modules/@types/parse-json/index.d.ts","../../node_modules/@types/prettier/index.d.ts","../../node_modules/@types/react-dom/index.d.ts","../../node_modules/@types/scheduler/index.d.ts","../../node_modules/@types/stack-utils/index.d.ts","../../node_modules/@types/yargs-parser/index.d.ts","../../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"1f03b495671c3a1bd24510f38b8947f0991dfd6bf0278c68eca14af15b306e1f","2274b0f0e4f20a1af3309985337bd8a7f45610145db3c37485ea8697c0778eda","60bb0e47502bf8716d1230288b4e6387c1d34cded12752ab5338108e2e662e67","b250a278297e209148e3ee53c5f27b773a351618b0a0c5b8fe0397d2fbd08576","b3ae4ded82f27cabba780b9af9647f6e08c9a4cabe8fbb7a0cca69c7add9ef4b","b57d661f8123e266307b11fbf08ec29363f84f482622f99e42cf3fdf94059255","726416fd6b5f6d16c91fe5f2dee9ac722bceddd8f8e5d0fc9c3399c7c2efd9b1","1a23b521db8d7ec9e2b96c6fbd4c7e96d12f408b1e03661b3b9f7da7291103e6","1c68c3020dfada02f9e9671c7c13fb7adea15118f3acc2d21f02a7b3c632482c","ae0951e44973e928fe2e999b11960493835d094b16adac0b085a79cff181bcb9","9e8575c515e21e1b51ab7eb78cfd763ec857cfd7b4f985a4f394f9ea8c0ac36d","1609ad4d488c356ee91eba7d7aa87cc6fb59bc8ac05c1a8f08665285ba3b71ad","8add088f72326098d68d622ddb024c00ae56a912383efe96b03f0481db88f7c9","dd17fe6332567b8f13e33dd3ff8926553cdcea2ad32d4350ce0063a2addaa764","4091d56a4622480549350b8811ec64c7826cd41a70ce5d9c1cc20384bb144049","353c0125b9e50c2a71e18394d46be5ccb37161cc0f0e7c69216aa6932c8cdafb","9c5d5f167e86b6ddf7142559a17d13fd39c34e868ae947c40381db866eed6609","6539823527c9349664b239204197757434e287e9ef7c2c29afaad10a79f3348a","aae698ceead4edad0695b9ea87e43f274e698bdb302c8cb5fd2cab4dc496ccf0","51631e9a0c041e12479ab01f5801d8a237327d19e9ee37d5f1f66be912631425","c9d5d8adb1455f49182751ce885745dcc5f9697e9c260388bc3ae9d1860d5d10","f64289e3fa8d5719eaf5ba1bb02dd32dbbf7c603dda75c16770a6bc6e9c6b6d9","b1aa0e2e3511a8d10990f35866405c64c9e576258ef99eeb9ebafed980fd7506","2d255a5287f2fb5295688cb25bd18e1cd59866179f795f3f1fd6b71b7f0edf8f","43c1dbb78d5277a5fdd8fddce8b257f84ffa2b4253f58b95c04a310710d19e97","6c669d7e080344c1574aa276a89e57c3b9f0e97fab96a09427e7dfb19ca261bf","b71ac126853867d8e64c910f47d46d05c5ea797987d2604f63d401507dc43b6d","9a37238558d28b7ee06d08599e92eab30b90704541cc85e6448009d6d55fffa9","120b14d66a061910309ff97e7b06b5c6c09444218178b80b687a92af4d22d5dc","3de958065e3a44cbe0bfa667813bc59c63e63c9ce522af8dc1b64714910fa9ba","4dbd5a4e8c71e60af9af1d38d1ac5f6eedef3591afb556ed164f169061706f15","5db5754073f92ef99fef159a3415a733db507af67126b287daa51553cb9107d2","ac162509239b1a48ab6aa39a3fc34dd7d8cde209c59188f699b3ef78964165e0","44fa175d725f678ed47ee3cbaf2fcdf688559e672352ac24c721dd9ceef7d7c1","9556b6427e049169448398e1e59fb393e4de91852abda84dd569d0e7b038e641","9f3c5498245c38c9016a369795ec5ef1768d09db63643c8dba9656e5ab294825","8f35095ce6914b0e95d563adae6f2546dddd8f85c4034d9050530076d860b5b8","893edbff0dcaf7c4ef650c24cfcf87e6ad63d3e0457f7524d5706f8599e7bac3","06f6c325a4cec7589a46fb8c335b4da840b125bf20d514411fead13478b008b9","a3b6fafae3db815903c6ee13b8c77a43a89fba98fabf263a254f015b388cf190","aad69465794f04cbb182a5bf7b235696117236b96f0c8d1031b7842878a9071a","8500f1c50ee5fb526b737dd167c81077ca11d9c50afb15851b50ff81324b8088","8db4789c08e463840af20c7f5440a3945987cdf14820b60fff63e03a75bd0c90","7d172510abda2eb827b492615c40cde28e1a899c5241dd0c3cc25cdcc636aef3","859f7f021bb081aa1da8a57ed935f65555340e5cb4f3d67b53bdade24ad9503e","0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"c2ab70bbc7a24c42a790890739dd8a0ba9d2e15038b40dff8163a97a5d148c00","affectsGlobalScope":true},"422dbb183fdced59425ca072c8bd09efaa77ce4e2ab928ec0d8a1ce062d2a45a",{"version":"19fa46aae5c730811087296a9dff1dbb7be3b63170668628c3018b28775d1b4d","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","98a3ebfa494b46265634a73459050befba5da8fdc6ca0ef9b7269421780f4ff3","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","cc0b61316c4f37393f1f9595e93b673f4184e9d07f4c127165a490ec4a928668","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"7a5459efa09ea82088234e6533a203d528c594b01787fb90fba148885a36e8b6","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","ad41bb744149e92adb06eb953da195115620a3f2ad48e7d3ae04d10762dae197","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"5d0a9ea09d990b5788f867f1c79d4878f86f7384cb7dab38eecbf22f9efd063d","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"cfe724f7c694aab65a9bdd1acb05997848c504548c9d4c71645c187a091cfa2a","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"3345c276cab0e76dda86c0fb79104ff915a4580ba0f3e440870e183b1baec476","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","e383ff72aabf294913f8c346f5da1445ae6ad525836d28efd52cbadc01a361a6","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8","6f310052978d351ebf9033e90bf009e718522c7cb7c148cc9cb9413a73657250","142f7ea2d6affb8c5f4c14723ad122124f1fd1a29aa6ef9b5c46daf6cda719ce","dd6fc277379bfe5da22e38dae767e07da2abad6faf9fc1e0fa6e927b99a91bba","16eea98e8cae4cf865f5102513430ed361c16973d431f6c3b77db95ad3493902","12e3c9f17fa31bcbdb082f5fe8a85ab102748c6b21d2b18ea51440d6bb6736e6","4dd326a132f4f5925c45895f192fa3d313fe46e6e6d42b2aca7cf83fd76efd88","fe1089035b474a7af21cdcc063bd625ffba806ef64634b02e682c9fc9cba0f14","05455184c5dd8d248ae921fc1bf1aa48a8960622112f93fd7decb45c5fc4ec63","af39de60be2e87a808cd82e83930deed586fab5c2ac4583a5a46c88b2e404b01","84d6554f8e476560c42512aabe6b9dfd19922e51d3a5d0adcb18bb92d6639533","59afdb9cd00d662e748081779ae4f2424f816b93f70a09415ff5a979491a4c78","210e738a0843e77a51075a67ce3b93c753493a296416e18e3eaa6561a819210e","3070873923600558a2fe92dab123b4a315864defa06d8f59cfa283e7b4d0e8ce",{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"381899b8d1d4c1be716f18cb5242ba39f66f4b1e31d45af62a32a99f8edcb39d","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"5a1b30146d105f86b15aaf11ff43af00c29972d18bc3b16c8b8f56aa47801733","affectsGlobalScope":true},"87912fef55e90f538e12ecdbdc2e05df5f385e519b0023dd5bfb7996cf26056c","34dcd461bc084c63ca1d8792ce9147311ba2b94ff049062110dd268ab7131eba","8725240a6699dd78057daed3ef346ba1582cab180a17ea93dd61c4a56a139a18","51ea8a0564e75d36c1a84a9dd762c6effade5cb0beff3c481ded9bebdd5393c7","5486900108e374e89b0bcf8ea0b4c8da9e08fd83f206d27e8a2b4a7df4e69a10","39ed5cf17fa46324549937771f01733e470b42333bf315550f13255e0d70777c","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"516a426e3960379f310107635b8f3a7e8c307c6c665080b128039d9299ec4087","affectsGlobalScope":true},"b668b7fb7c52a05fb9233a27ba5099a73cd8e157b037d67399336635495ab483","b25c5f2970d06c729f464c0aeaa64b1a5b5f1355aa93554bb5f9c199b8624b1e","272c2dac4baaf7fdd2d7efeef0fa2547af54cc21883c5e138b8c4d1661697a54","069733dc220affbe58d9c1d1a93af3707bc515aaed761701d8741b57da4cb964","3051751533eee92572241b3cef28333212401408c4e7aa21718714b793c0f4ed","691aea9772797ca98334eb743e7686e29325b02c6931391bcee4cc7bf27a9f3b","6f1d39d26959517da3bd105c552eded4c34702705c64d75b03f54d864b6e41c2","6a9c5127096b35264eb7cd21b2417bfc1d42cceca9ba4ce2bb0c3410b7816042","78828b06c0d3b586954015e9ebde5480b009e166c71244763bda328ec0920f41","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","905c3e8f7ddaa6c391b60c05b2f4c3931d7127ad717a080359db3df510b7bdab","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","cddf5c26907c0b8378bc05543161c11637b830da9fadf59e02a11e675d11e180","2a2e2c6463bcf3c59f31bc9ab4b6ef963bbf7dffb049cd017e2c1834e3adca63","95c22bc19835e28e2e524a4bb8898eb5f2107b640d7279a6d3aade261916bbf2","e437d83044ba17246a861aa9691aa14223ff4a9d6f338ab1269c41c758586a88","c9ad058b2cc9ce6dc2ed92960d6d009e8c04bef46d3f5312283debca6869f613","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","08b428a44bc98005536a12456518797e9afe2a08e8b5d9785641713a54475881","45a63e17814c570ea59407f231ef9c561510bd6edb36f17479b09b44619496c6","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57","c6c4fea9acc55d5e38ff2b70d57ab0b5cdbd08f8bc5d7a226e322cea128c5b57","3bdd93ec24853e61bfa4c63ebaa425ff3e474156e87a47d90122e1d8cc717c1f","5a2a25feca554a8f289ed62114771b8c63d89f2b58325e2f8b7043e4e0160d11"],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"jsx":2,"module":1,"outDir":"./lib","rootDir":"./src","target":6},"fileIdsList":[[131],[131,173],[131,171,172,174,175,176],[131,171],[131,171,174],[131,178],[104,131,138],[131,181],[131,182],[131,186],[88,131],[91,131],[92,97,131],[93,103,104,111,120,130,131],[93,94,103,111,131],[95,131],[96,97,104,112,131],[97,120,127,131],[98,100,103,111,131],[99,131],[100,101,131],[102,103,131],[103,131],[103,104,105,120,130,131],[103,104,105,120,131],[106,111,120,130,131],[103,104,106,107,111,120,127,130,131],[106,108,120,127,130,131],[88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137],[103,109,131],[110,130,131],[100,103,111,120,131],[112,131],[113,131],[91,114,131],[115,129,131,135],[116,131],[117,131],[103,118,131],[118,119,131,133],[103,120,121,122,131],[120,122,131],[120,121,131],[123,131],[124,131],[103,125,126,131],[125,126,131],[97,111,120,127,131],[128,131],[111,129,131],[92,106,117,130,131],[97,131],[120,131,132],[131,133],[131,134],[92,97,103,105,114,120,130,131,133,135],[120,131,136],[131,156],[131,152,153,154,155],[131,196],[46,47,49,73,74,77,80,81,131],[44,45,131],[44,131],[46,47,48,80,81,131],[81,131],[46,47,77,79,81,131],[78,81,82,131],[46,47,80,81,131],[46,47,49,73,74,75,76,80,81,131],[46,47,49,77,80,131],[49,81,131],[51,52,53,54,55,56,57,58,59,81,131],[50,60,68,69,70,71,72,131],[53,81,131],[61,62,63,64,65,66,67,81,131],[131,163,164],[131,163,164,165,166],[131,168],[131,167,169],[131,147,148],[131,147,149,150,161],[131,147,151,157,159,160],[131,147],[131,147,156],[131,147,158],[86,131],[83,131],[131,140],[131,139],[82,83,84,85,86,87,131,139,141,142,143,144,145,146],[103,131,138]],"referencedMap":[[173,1],[174,2],[171,1],[177,3],[172,4],[175,5],[176,4],[179,6],[180,7],[181,1],[182,8],[183,9],[184,1],[185,1],[187,10],[188,1],[189,1],[178,1],[88,11],[89,11],[91,12],[92,13],[93,14],[94,15],[95,16],[96,17],[97,18],[98,19],[99,20],[100,21],[101,21],[102,22],[103,23],[104,24],[105,25],[90,1],[137,1],[106,26],[107,27],[108,28],[138,29],[109,30],[110,31],[111,32],[112,33],[113,34],[114,35],[115,36],[116,37],[117,38],[118,39],[119,40],[120,41],[122,42],[121,43],[123,44],[124,45],[125,46],[126,47],[127,48],[128,49],[129,50],[130,51],[131,52],[132,53],[133,54],[134,55],[135,56],[136,57],[190,1],[191,1],[192,1],[154,1],[193,58],[152,1],[156,59],[194,1],[155,1],[195,1],[186,1],[196,1],[197,60],[82,61],[44,1],[46,62],[45,63],[49,64],[76,65],[80,66],[79,67],[47,65],[48,68],[50,68],[77,69],[81,70],[74,1],[75,1],[51,65],[55,65],[57,65],[52,65],[53,71],[59,65],[60,72],[56,65],[58,65],[54,65],[73,73],[69,65],[71,65],[70,65],[66,65],[72,74],[67,65],[68,75],[61,65],[62,65],[63,65],[64,65],[65,65],[153,1],[163,1],[165,76],[167,77],[166,76],[164,1],[148,1],[169,78],[168,1],[8,1],[9,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[43,1],[33,1],[34,1],[35,1],[36,1],[7,1],[41,1],[37,1],[38,1],[39,1],[40,1],[1,1],[42,1],[11,1],[10,1],[78,1],[170,79],[149,80],[162,81],[161,82],[150,83],[157,84],[151,83],[159,85],[158,83],[87,86],[142,1],[84,87],[144,1],[146,1],[86,1],[141,88],[140,89],[143,1],[147,90],[145,1],[85,87],[83,1],[139,91],[160,83]],"exportedModulesMap":[[173,1],[174,2],[171,1],[177,3],[172,4],[175,5],[176,4],[179,6],[180,7],[181,1],[182,8],[183,9],[184,1],[185,1],[187,10],[188,1],[189,1],[178,1],[88,11],[89,11],[91,12],[92,13],[93,14],[94,15],[95,16],[96,17],[97,18],[98,19],[99,20],[100,21],[101,21],[102,22],[103,23],[104,24],[105,25],[90,1],[137,1],[106,26],[107,27],[108,28],[138,29],[109,30],[110,31],[111,32],[112,33],[113,34],[114,35],[115,36],[116,37],[117,38],[118,39],[119,40],[120,41],[122,42],[121,43],[123,44],[124,45],[125,46],[126,47],[127,48],[128,49],[129,50],[130,51],[131,52],[132,53],[133,54],[134,55],[135,56],[136,57],[190,1],[191,1],[192,1],[154,1],[193,58],[152,1],[156,59],[194,1],[155,1],[195,1],[186,1],[196,1],[197,60],[82,61],[44,1],[46,62],[45,63],[49,64],[76,65],[80,66],[79,67],[47,65],[48,68],[50,68],[77,69],[81,70],[74,1],[75,1],[51,65],[55,65],[57,65],[52,65],[53,71],[59,65],[60,72],[56,65],[58,65],[54,65],[73,73],[69,65],[71,65],[70,65],[66,65],[72,74],[67,65],[68,75],[61,65],[62,65],[63,65],[64,65],[65,65],[153,1],[163,1],[165,76],[167,77],[166,76],[164,1],[148,1],[169,78],[168,1],[8,1],[9,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[43,1],[33,1],[34,1],[35,1],[36,1],[7,1],[41,1],[37,1],[38,1],[39,1],[40,1],[1,1],[42,1],[11,1],[10,1],[78,1],[170,79],[149,80],[162,81],[161,82],[150,83],[157,84],[151,83],[159,85],[158,83],[87,86],[142,1],[84,87],[144,1],[146,1],[86,1],[141,88],[140,89],[143,1],[147,90],[145,1],[85,87],[83,1],[139,91],[160,83]],"semanticDiagnosticsPerFile":[173,174,171,177,172,175,176,179,180,181,182,183,184,185,187,188,189,178,88,89,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,90,137,106,107,108,138,109,110,111,112,113,114,115,116,117,118,119,120,122,121,123,124,125,126,127,128,129,130,131,132,133,134,135,136,190,191,192,154,193,152,156,194,155,195,186,196,197,82,44,46,45,49,76,80,79,47,48,50,77,81,74,75,51,55,57,52,53,59,60,56,58,54,73,69,71,70,66,72,67,68,61,62,63,64,65,153,163,165,167,166,164,148,169,168,8,9,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,43,33,34,35,36,7,41,37,38,39,40,1,42,11,10,78,170,149,162,161,150,157,151,159,158,87,142,84,144,146,86,141,140,143,147,145,85,83,139,160]},"version":"4.5.5"}
|
|
1
|
+
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/ajv/dist/compile/codegen/code.d.ts","../../node_modules/ajv/dist/compile/codegen/scope.d.ts","../../node_modules/ajv/dist/compile/codegen/index.d.ts","../../node_modules/ajv/dist/compile/rules.d.ts","../../node_modules/ajv/dist/compile/subschema.d.ts","../../node_modules/ajv/dist/compile/context.d.ts","../../node_modules/ajv/dist/compile/validate/dataType.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/contains.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/not.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/if.d.ts","../../node_modules/ajv/dist/vocabularies/applicator/index.d.ts","../../node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts","../../node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts","../../node_modules/ajv/dist/vocabularies/validation/pattern.d.ts","../../node_modules/ajv/dist/vocabularies/validation/required.d.ts","../../node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts","../../node_modules/ajv/dist/vocabularies/validation/const.d.ts","../../node_modules/ajv/dist/vocabularies/validation/enum.d.ts","../../node_modules/ajv/dist/vocabularies/validation/index.d.ts","../../node_modules/ajv/dist/vocabularies/format/format.d.ts","../../node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts","../../node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts","../../node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts","../../node_modules/ajv/dist/vocabularies/errors.d.ts","../../node_modules/ajv/dist/types/json-schema.d.ts","../../node_modules/ajv/dist/types/jtd-schema.d.ts","../../node_modules/ajv/dist/compile/error_classes.d.ts","../../node_modules/ajv/dist/core.d.ts","../../node_modules/uri-js/dist/es5/uri.all.d.ts","../../node_modules/ajv/dist/compile/resolve.d.ts","../../node_modules/ajv/dist/compile/index.d.ts","../../node_modules/ajv/dist/types/index.d.ts","../../node_modules/ajv/dist/ajv.d.ts","../podlite-schema/lib/types.d.ts","../podlite-schema/lib/blocks-helpers.d.ts","../podlite-schema/lib/query-helpers.d.ts","../podlite-schema/lib/helpers/config.d.ts","../podlite-schema/lib/ast-helpers.d.ts","../../node_modules/@types/node/assert.d.ts","../../node_modules/@types/node/assert/strict.d.ts","../../node_modules/@types/node/globals.d.ts","../../node_modules/@types/node/async_hooks.d.ts","../../node_modules/@types/node/buffer.d.ts","../../node_modules/@types/node/child_process.d.ts","../../node_modules/@types/node/cluster.d.ts","../../node_modules/@types/node/console.d.ts","../../node_modules/@types/node/constants.d.ts","../../node_modules/@types/node/crypto.d.ts","../../node_modules/@types/node/dgram.d.ts","../../node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/@types/node/dns.d.ts","../../node_modules/@types/node/dns/promises.d.ts","../../node_modules/@types/node/domain.d.ts","../../node_modules/@types/node/events.d.ts","../../node_modules/@types/node/fs.d.ts","../../node_modules/@types/node/fs/promises.d.ts","../../node_modules/@types/node/http.d.ts","../../node_modules/@types/node/http2.d.ts","../../node_modules/@types/node/https.d.ts","../../node_modules/@types/node/inspector.d.ts","../../node_modules/@types/node/module.d.ts","../../node_modules/@types/node/net.d.ts","../../node_modules/@types/node/os.d.ts","../../node_modules/@types/node/path.d.ts","../../node_modules/@types/node/perf_hooks.d.ts","../../node_modules/@types/node/process.d.ts","../../node_modules/@types/node/punycode.d.ts","../../node_modules/@types/node/querystring.d.ts","../../node_modules/@types/node/readline.d.ts","../../node_modules/@types/node/repl.d.ts","../../node_modules/@types/node/stream.d.ts","../../node_modules/@types/node/stream/promises.d.ts","../../node_modules/@types/node/stream/consumers.d.ts","../../node_modules/@types/node/stream/web.d.ts","../../node_modules/@types/node/string_decoder.d.ts","../../node_modules/@types/node/timers.d.ts","../../node_modules/@types/node/timers/promises.d.ts","../../node_modules/@types/node/tls.d.ts","../../node_modules/@types/node/trace_events.d.ts","../../node_modules/@types/node/tty.d.ts","../../node_modules/@types/node/url.d.ts","../../node_modules/@types/node/util.d.ts","../../node_modules/@types/node/v8.d.ts","../../node_modules/@types/node/vm.d.ts","../../node_modules/@types/node/wasi.d.ts","../../node_modules/@types/node/worker_threads.d.ts","../../node_modules/@types/node/zlib.d.ts","../../node_modules/@types/node/globals.global.d.ts","../../node_modules/@types/node/index.d.ts","../podlite-schema/lib/writer.d.ts","../podlite-schema/lib/helpers/makeQuery.d.ts","../podlite-schema/lib/helpers/handlers.d.ts","../podlite-schema/lib/ast-inerator.d.ts","../podlite-schema/lib/helpers/makeTransformer.d.ts","../podlite-schema/lib/exportAny.d.ts","../podlite-schema/lib/plugin-clean-location.d.ts","../podlite-schema/lib/helpers/plugins.d.ts","../podlite-schema/lib/helpers/ids.d.ts","../podlite-schema/lib/pluggableParser.d.ts","../podlite-schema/lib/exportHtml.d.ts","../podlite-schema/lib/index.d.ts","../../node_modules/nanoid/index.d.ts","./src/ids.ts","../podlite-image/lib/index.d.ts","../../node_modules/@types/react/global.d.ts","../../node_modules/csstype/index.d.ts","../../node_modules/@types/prop-types/index.d.ts","../../node_modules/@types/scheduler/tracing.d.ts","../../node_modules/@types/react/index.d.ts","../podlite-diagrams/lib/index.d.ts","../podlite-markdown/lib/tools.d.ts","../podlite-markdown/lib/index.d.ts","../podlite-toc/lib/index.d.ts","./src/plugins/extrnal.ts","./src/index.ts","../../node_modules/jest-diff/build/cleanupSemantic.d.ts","../../node_modules/jest-diff/build/types.d.ts","../../node_modules/jest-diff/build/diffLines.d.ts","../../node_modules/jest-diff/build/printDiffs.d.ts","../../node_modules/jest-diff/build/index.d.ts","../../node_modules/pretty-format/build/types.d.ts","../../node_modules/pretty-format/build/index.d.ts","./node_modules/@types/jest/index.d.ts","../../node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__generator/index.d.ts","../../node_modules/@babel/parser/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/@types/babel__template/index.d.ts","../../node_modules/@types/babel__traverse/index.d.ts","../../node_modules/@types/babel__core/index.d.ts","../../node_modules/@types/ms/index.d.ts","../../node_modules/@types/debug/index.d.ts","../../node_modules/@types/graceful-fs/index.d.ts","../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../node_modules/@types/istanbul-lib-report/index.d.ts","../../node_modules/@types/istanbul-reports/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/json5/index.d.ts","../../node_modules/@types/unist/index.d.ts","../../node_modules/@types/mdast/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/minimist/index.d.ts","../../node_modules/@types/normalize-package-data/index.d.ts","../../node_modules/@types/parse-json/index.d.ts","../../node_modules/@types/prettier/index.d.ts","../../node_modules/@types/react-dom/index.d.ts","../../node_modules/@types/scheduler/index.d.ts","../../node_modules/@types/stack-utils/index.d.ts","../../node_modules/@types/yargs-parser/index.d.ts","../../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"2274b0f0e4f20a1af3309985337bd8a7f45610145db3c37485ea8697c0778eda","60bb0e47502bf8716d1230288b4e6387c1d34cded12752ab5338108e2e662e67","b250a278297e209148e3ee53c5f27b773a351618b0a0c5b8fe0397d2fbd08576","b3ae4ded82f27cabba780b9af9647f6e08c9a4cabe8fbb7a0cca69c7add9ef4b","b57d661f8123e266307b11fbf08ec29363f84f482622f99e42cf3fdf94059255","726416fd6b5f6d16c91fe5f2dee9ac722bceddd8f8e5d0fc9c3399c7c2efd9b1","1a23b521db8d7ec9e2b96c6fbd4c7e96d12f408b1e03661b3b9f7da7291103e6","1c68c3020dfada02f9e9671c7c13fb7adea15118f3acc2d21f02a7b3c632482c","ae0951e44973e928fe2e999b11960493835d094b16adac0b085a79cff181bcb9","9e8575c515e21e1b51ab7eb78cfd763ec857cfd7b4f985a4f394f9ea8c0ac36d","1609ad4d488c356ee91eba7d7aa87cc6fb59bc8ac05c1a8f08665285ba3b71ad","8add088f72326098d68d622ddb024c00ae56a912383efe96b03f0481db88f7c9","dd17fe6332567b8f13e33dd3ff8926553cdcea2ad32d4350ce0063a2addaa764","4091d56a4622480549350b8811ec64c7826cd41a70ce5d9c1cc20384bb144049","353c0125b9e50c2a71e18394d46be5ccb37161cc0f0e7c69216aa6932c8cdafb","9c5d5f167e86b6ddf7142559a17d13fd39c34e868ae947c40381db866eed6609","6539823527c9349664b239204197757434e287e9ef7c2c29afaad10a79f3348a","aae698ceead4edad0695b9ea87e43f274e698bdb302c8cb5fd2cab4dc496ccf0","51631e9a0c041e12479ab01f5801d8a237327d19e9ee37d5f1f66be912631425","c9d5d8adb1455f49182751ce885745dcc5f9697e9c260388bc3ae9d1860d5d10","f64289e3fa8d5719eaf5ba1bb02dd32dbbf7c603dda75c16770a6bc6e9c6b6d9","b1aa0e2e3511a8d10990f35866405c64c9e576258ef99eeb9ebafed980fd7506","2d255a5287f2fb5295688cb25bd18e1cd59866179f795f3f1fd6b71b7f0edf8f","43c1dbb78d5277a5fdd8fddce8b257f84ffa2b4253f58b95c04a310710d19e97","6c669d7e080344c1574aa276a89e57c3b9f0e97fab96a09427e7dfb19ca261bf","b71ac126853867d8e64c910f47d46d05c5ea797987d2604f63d401507dc43b6d","9a37238558d28b7ee06d08599e92eab30b90704541cc85e6448009d6d55fffa9","120b14d66a061910309ff97e7b06b5c6c09444218178b80b687a92af4d22d5dc","3de958065e3a44cbe0bfa667813bc59c63e63c9ce522af8dc1b64714910fa9ba","4dbd5a4e8c71e60af9af1d38d1ac5f6eedef3591afb556ed164f169061706f15","5db5754073f92ef99fef159a3415a733db507af67126b287daa51553cb9107d2","ac162509239b1a48ab6aa39a3fc34dd7d8cde209c59188f699b3ef78964165e0","44fa175d725f678ed47ee3cbaf2fcdf688559e672352ac24c721dd9ceef7d7c1","9556b6427e049169448398e1e59fb393e4de91852abda84dd569d0e7b038e641","9f3c5498245c38c9016a369795ec5ef1768d09db63643c8dba9656e5ab294825","8f35095ce6914b0e95d563adae6f2546dddd8f85c4034d9050530076d860b5b8","893edbff0dcaf7c4ef650c24cfcf87e6ad63d3e0457f7524d5706f8599e7bac3","06f6c325a4cec7589a46fb8c335b4da840b125bf20d514411fead13478b008b9","a3b6fafae3db815903c6ee13b8c77a43a89fba98fabf263a254f015b388cf190","9b689183acbd47d9e35c4a348ecd0dfc9ab65dc66fe8522f415477b132ab9575","170dc96be6d2fcfecf7348404d6adf230fbaa74a60c9b65918c518a1fb0f14e4","8db4789c08e463840af20c7f5440a3945987cdf14820b60fff63e03a75bd0c90","7d172510abda2eb827b492615c40cde28e1a899c5241dd0c3cc25cdcc636aef3","859f7f021bb081aa1da8a57ed935f65555340e5cb4f3d67b53bdade24ad9503e","0cba3a5d7b81356222594442753cf90dd2892e5ccfe1d262aaca6896ba6c1380","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"c2ab70bbc7a24c42a790890739dd8a0ba9d2e15038b40dff8163a97a5d148c00","affectsGlobalScope":true},"422dbb183fdced59425ca072c8bd09efaa77ce4e2ab928ec0d8a1ce062d2a45a",{"version":"19fa46aae5c730811087296a9dff1dbb7be3b63170668628c3018b28775d1b4d","affectsGlobalScope":true},"1dab5ab6bcf11de47ab9db295df8c4f1d92ffa750e8f095e88c71ce4c3299628","f71f46ccd5a90566f0a37b25b23bc4684381ab2180bdf6733f4e6624474e1894",{"version":"54e65985a3ee3cec182e6a555e20974ea936fc8b8d1738c14e8ed8a42bd921d4","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","98a3ebfa494b46265634a73459050befba5da8fdc6ca0ef9b7269421780f4ff3","34e5de87d983bc6aefef8b17658556e3157003e8d9555d3cb098c6bef0b5fbc8","cc0b61316c4f37393f1f9595e93b673f4184e9d07f4c127165a490ec4a928668","f27371653aded82b2b160f7a7033fb4a5b1534b6f6081ef7be1468f0f15327d3","c762cd6754b13a461c54b59d0ae0ab7aeef3c292c6cf889873f786ee4d8e75c9","f4ea7d5df644785bd9fbf419930cbaec118f0d8b4160037d2339b8e23c059e79",{"version":"bfea28e6162ed21a0aeed181b623dcf250aa79abf49e24a6b7e012655af36d81","affectsGlobalScope":true},"7a5459efa09ea82088234e6533a203d528c594b01787fb90fba148885a36e8b6","ae97e20f2e10dbeec193d6a2f9cd9a367a1e293e7d6b33b68bacea166afd7792","10d4796a130577d57003a77b95d8723530bbec84718e364aa2129fa8ffba0378","ad41bb744149e92adb06eb953da195115620a3f2ad48e7d3ae04d10762dae197","bf73c576885408d4a176f44a9035d798827cc5020d58284cb18d7573430d9022","7ae078ca42a670445ae0c6a97c029cb83d143d62abd1730efb33f68f0b2c0e82",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"5d0a9ea09d990b5788f867f1c79d4878f86f7384cb7dab38eecbf22f9efd063d","12eea70b5e11e924bb0543aea5eadc16ced318aa26001b453b0d561c2fd0bd1e","08777cd9318d294646b121838574e1dd7acbb22c21a03df84e1f2c87b1ad47f2","08a90bcdc717df3d50a2ce178d966a8c353fd23e5c392fd3594a6e39d9bb6304",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"2a12d2da5ac4c4979401a3f6eaafa874747a37c365e4bc18aa2b171ae134d21b","002b837927b53f3714308ecd96f72ee8a053b8aeb28213d8ec6de23ed1608b66","1dc9c847473bb47279e398b22c740c83ea37a5c88bf66629666e3cf4c5b9f99c","a9e4a5a24bf2c44de4c98274975a1a705a0abbaad04df3557c2d3cd8b1727949","00fa7ce8bc8acc560dc341bbfdf37840a8c59e6a67c9bfa3fa5f36254df35db2","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"cfe724f7c694aab65a9bdd1acb05997848c504548c9d4c71645c187a091cfa2a","5f0ed51db151c2cdc4fa3bb0f44ce6066912ad001b607a34e65a96c52eb76248",{"version":"3345c276cab0e76dda86c0fb79104ff915a4580ba0f3e440870e183b1baec476","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","e383ff72aabf294913f8c346f5da1445ae6ad525836d28efd52cbadc01a361a6","f52fbf64c7e480271a9096763c4882d356b05cab05bf56a64e68a95313cd2ce2","59bdb65f28d7ce52ccfc906e9aaf422f8b8534b2d21c32a27d7819be5ad81df7",{"version":"3a2da34079a2567161c1359316a32e712404b56566c45332ac9dcee015ecce9f","affectsGlobalScope":true},"28a2e7383fd898c386ffdcacedf0ec0845e5d1a86b5a43f25b86bc315f556b79","3aff9c8c36192e46a84afe7b926136d520487155154ab9ba982a8b544ea8fc95","a880cf8d85af2e4189c709b0fea613741649c0e40fffb4360ec70762563d5de0","85bbf436a15bbeda4db888be3062d47f99c66fd05d7c50f0f6473a9151b6a070","9f9c49c95ecd25e0cb2587751925976cf64fd184714cb11e213749c80cf0f927","f0c75c08a71f9212c93a719a25fb0320d53f2e50ca89a812640e08f8ad8c408c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"9cafe917bf667f1027b2bb62e2de454ecd2119c80873ad76fc41d941089753b8","6f310052978d351ebf9033e90bf009e718522c7cb7c148cc9cb9413a73657250","142f7ea2d6affb8c5f4c14723ad122124f1fd1a29aa6ef9b5c46daf6cda719ce","dd6fc277379bfe5da22e38dae767e07da2abad6faf9fc1e0fa6e927b99a91bba","d624acaa27aac918d6264edc0d53ec1261a2d53214dd85f6cfd3b43db815b4b8","12e3c9f17fa31bcbdb082f5fe8a85ab102748c6b21d2b18ea51440d6bb6736e6","4dd326a132f4f5925c45895f192fa3d313fe46e6e6d42b2aca7cf83fd76efd88","fe1089035b474a7af21cdcc063bd625ffba806ef64634b02e682c9fc9cba0f14","6747ec8ef994e5047516c03ba0ee1cf0dbebf53843638207d3e73f10864d892b","0d9697ac268816705b887507a283a763e950b7ac29ae8f437fe583e9da18be62","86d5507f162b09b1088aafd9866d1e35661b475b45a01a9a81e5745a994a6d7b","05455184c5dd8d248ae921fc1bf1aa48a8960622112f93fd7decb45c5fc4ec63","3bbbc76268462d388d3cc02a3f58354bc5ea93d179344825142b649b8febd134","84d6554f8e476560c42512aabe6b9dfd19922e51d3a5d0adcb18bb92d6639533","517f94f6cfbc18bbdabf9632c88499b9be47f172789e6b5cba65a5014aa8309b","3070873923600558a2fe92dab123b4a315864defa06d8f59cfa283e7b4d0e8ce",{"version":"3b75495c77f85fef76a898491b2eff2e4eb80a37d798a8ad8b39a578c2303859","affectsGlobalScope":true},"381899b8d1d4c1be716f18cb5242ba39f66f4b1e31d45af62a32a99f8edcb39d","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"7e6f46ed7dbebb2b1a5bdfac5a41582dfd266217a30387d9cbdeb2af84a39c52","affectsGlobalScope":true},"890115c97a4a9930e1121f15019cceff3a9c23888a35f61f3decdc41772f47d0","34dcd461bc084c63ca1d8792ce9147311ba2b94ff049062110dd268ab7131eba","8725240a6699dd78057daed3ef346ba1582cab180a17ea93dd61c4a56a139a18","51ea8a0564e75d36c1a84a9dd762c6effade5cb0beff3c481ded9bebdd5393c7","97f0e0c422efca9baa2220c4db311596c187217ff82ca142e4cdbc980f199e9b","699dbc47dc35cc47d0e0af74b0371e7f3e0ceaaed444cfaed64cea066680da70","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"516a426e3960379f310107635b8f3a7e8c307c6c665080b128039d9299ec4087","affectsGlobalScope":true},"b668b7fb7c52a05fb9233a27ba5099a73cd8e157b037d67399336635495ab483","b25c5f2970d06c729f464c0aeaa64b1a5b5f1355aa93554bb5f9c199b8624b1e","272c2dac4baaf7fdd2d7efeef0fa2547af54cc21883c5e138b8c4d1661697a54","069733dc220affbe58d9c1d1a93af3707bc515aaed761701d8741b57da4cb964","3051751533eee92572241b3cef28333212401408c4e7aa21718714b793c0f4ed","691aea9772797ca98334eb743e7686e29325b02c6931391bcee4cc7bf27a9f3b","6f1d39d26959517da3bd105c552eded4c34702705c64d75b03f54d864b6e41c2","6a9c5127096b35264eb7cd21b2417bfc1d42cceca9ba4ce2bb0c3410b7816042","78828b06c0d3b586954015e9ebde5480b009e166c71244763bda328ec0920f41","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","905c3e8f7ddaa6c391b60c05b2f4c3931d7127ad717a080359db3df510b7bdab","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","cddf5c26907c0b8378bc05543161c11637b830da9fadf59e02a11e675d11e180","2a2e2c6463bcf3c59f31bc9ab4b6ef963bbf7dffb049cd017e2c1834e3adca63","95c22bc19835e28e2e524a4bb8898eb5f2107b640d7279a6d3aade261916bbf2","e437d83044ba17246a861aa9691aa14223ff4a9d6f338ab1269c41c758586a88","c9ad058b2cc9ce6dc2ed92960d6d009e8c04bef46d3f5312283debca6869f613","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","08b428a44bc98005536a12456518797e9afe2a08e8b5d9785641713a54475881","8a02143a323c05741ec49533d54c4928dbf6618d297d855f12114304c3b69846","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57","c6c4fea9acc55d5e38ff2b70d57ab0b5cdbd08f8bc5d7a226e322cea128c5b57","3bdd93ec24853e61bfa4c63ebaa425ff3e474156e87a47d90122e1d8cc717c1f","5a2a25feca554a8f289ed62114771b8c63d89f2b58325e2f8b7043e4e0160d11"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"esModuleInterop":true,"jsx":2,"module":1,"outDir":"./lib","rootDir":"./src","sourceMap":true,"target":99},"fileIdsList":[[134],[134,178],[134,176,177,179,180,181],[134,176],[134,176,179],[134,183],[107,134,141],[134,186],[134,187],[134,191],[91,134],[94,134],[95,100,134],[96,106,107,114,123,133,134],[96,97,106,114,134],[98,134],[99,100,107,115,134],[100,123,130,134],[101,103,106,114,134],[102,134],[103,104,134],[105,106,134],[106,134],[106,107,108,123,133,134],[106,107,108,123,134],[109,114,123,133,134],[106,107,109,110,114,123,130,133,134],[109,111,123,130,133,134],[91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140],[106,112,134],[113,133,134],[103,106,114,123,134],[115,134],[116,134],[94,117,134],[118,132,134,138],[119,134],[120,134],[106,121,134],[121,122,134,136],[106,123,124,125,134],[123,125,134],[123,124,134],[126,134],[127,134],[106,128,129,134],[128,129,134],[100,114,123,130,134],[131,134],[114,132,134],[95,109,120,133,134],[100,134],[123,134,135],[134,136],[134,137],[95,100,106,108,117,123,133,134,136,138],[123,134,139],[134,161],[134,157,158,159,160],[134,201],[49,50,52,76,77,80,83,84,134],[47,48,134],[47,134],[49,50,51,83,84,134],[84,134],[49,50,80,82,84,134],[81,84,85,134],[49,50,83,84,134],[49,50,52,76,77,78,79,83,84,134],[49,50,52,80,83,134],[52,84,134],[54,55,56,57,58,59,60,61,62,84,134],[53,63,71,72,73,74,75,134],[56,84,134],[64,65,66,67,68,69,70,84,134],[134,168,169],[134,168,169,170,171],[134,173],[134,172,174],[134,153,154],[134,153,166],[134,153,156,162,164,165],[134,153,161],[134,153],[134,153,163],[89,134],[86,134],[134,143],[134,142],[85,86,87,88,89,90,134,142,144,145,146,147,148,149,151,152],[134,150,153],[106,134,141]],"referencedMap":[[178,1],[179,2],[176,1],[182,3],[177,4],[180,5],[181,4],[184,6],[185,7],[186,1],[187,8],[188,9],[189,1],[190,1],[192,10],[193,1],[194,1],[183,1],[91,11],[92,11],[94,12],[95,13],[96,14],[97,15],[98,16],[99,17],[100,18],[101,19],[102,20],[103,21],[104,21],[105,22],[106,23],[107,24],[108,25],[93,1],[140,1],[109,26],[110,27],[111,28],[141,29],[112,30],[113,31],[114,32],[115,33],[116,34],[117,35],[118,36],[119,37],[120,38],[121,39],[122,40],[123,41],[125,42],[124,43],[126,44],[127,45],[128,46],[129,47],[130,48],[131,49],[132,50],[133,51],[134,52],[135,53],[136,54],[137,55],[138,56],[139,57],[195,1],[196,1],[197,1],[159,1],[198,58],[157,1],[161,59],[199,1],[160,1],[200,1],[191,1],[201,1],[202,60],[85,61],[47,1],[49,62],[48,63],[52,64],[79,65],[83,66],[82,67],[50,65],[51,68],[53,68],[80,69],[84,70],[77,1],[78,1],[54,65],[58,65],[60,65],[55,65],[56,71],[62,65],[63,72],[59,65],[61,65],[57,65],[76,73],[72,65],[74,65],[73,65],[69,65],[75,74],[70,65],[71,75],[64,65],[65,65],[66,65],[67,65],[68,65],[158,1],[168,1],[170,76],[172,77],[171,76],[169,1],[154,1],[174,78],[173,1],[10,1],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[33,1],[34,1],[35,1],[36,1],[7,1],[41,1],[37,1],[38,1],[39,1],[40,1],[8,1],[45,1],[42,1],[43,1],[44,1],[1,1],[9,1],[46,1],[81,1],[175,79],[155,80],[167,81],[166,82],[162,83],[156,84],[164,85],[163,84],[90,86],[145,1],[87,87],[147,1],[152,1],[89,1],[144,88],[150,84],[143,89],[146,1],[149,84],[153,90],[151,91],[148,1],[88,87],[86,1],[142,92],[165,84]],"exportedModulesMap":[[178,1],[179,2],[176,1],[182,3],[177,4],[180,5],[181,4],[184,6],[185,7],[186,1],[187,8],[188,9],[189,1],[190,1],[192,10],[193,1],[194,1],[183,1],[91,11],[92,11],[94,12],[95,13],[96,14],[97,15],[98,16],[99,17],[100,18],[101,19],[102,20],[103,21],[104,21],[105,22],[106,23],[107,24],[108,25],[93,1],[140,1],[109,26],[110,27],[111,28],[141,29],[112,30],[113,31],[114,32],[115,33],[116,34],[117,35],[118,36],[119,37],[120,38],[121,39],[122,40],[123,41],[125,42],[124,43],[126,44],[127,45],[128,46],[129,47],[130,48],[131,49],[132,50],[133,51],[134,52],[135,53],[136,54],[137,55],[138,56],[139,57],[195,1],[196,1],[197,1],[159,1],[198,58],[157,1],[161,59],[199,1],[160,1],[200,1],[191,1],[201,1],[202,60],[85,61],[47,1],[49,62],[48,63],[52,64],[79,65],[83,66],[82,67],[50,65],[51,68],[53,68],[80,69],[84,70],[77,1],[78,1],[54,65],[58,65],[60,65],[55,65],[56,71],[62,65],[63,72],[59,65],[61,65],[57,65],[76,73],[72,65],[74,65],[73,65],[69,65],[75,74],[70,65],[71,75],[64,65],[65,65],[66,65],[67,65],[68,65],[158,1],[168,1],[170,76],[172,77],[171,76],[169,1],[154,1],[174,78],[173,1],[10,1],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[33,1],[34,1],[35,1],[36,1],[7,1],[41,1],[37,1],[38,1],[39,1],[40,1],[8,1],[45,1],[42,1],[43,1],[44,1],[1,1],[9,1],[46,1],[81,1],[175,79],[155,80],[167,81],[166,82],[162,83],[156,84],[164,85],[163,84],[90,86],[145,1],[87,87],[147,1],[152,1],[89,1],[144,88],[150,84],[143,89],[146,1],[149,84],[153,90],[151,91],[148,1],[88,87],[86,1],[142,92],[165,84]],"semanticDiagnosticsPerFile":[178,179,176,182,177,180,181,184,185,186,187,188,189,190,192,193,194,183,91,92,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,93,140,109,110,111,141,112,113,114,115,116,117,118,119,120,121,122,123,125,124,126,127,128,129,130,131,132,133,134,135,136,137,138,139,195,196,197,159,198,157,161,199,160,200,191,201,202,85,47,49,48,52,79,83,82,50,51,53,80,84,77,78,54,58,60,55,56,62,63,59,61,57,76,72,74,73,69,75,70,71,64,65,66,67,68,158,168,170,172,171,169,154,174,173,10,11,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,33,34,35,36,7,41,37,38,39,40,8,45,42,43,44,1,9,46,81,175,155,167,166,162,156,164,163,90,145,87,147,152,89,144,150,143,146,149,153,151,148,88,86,142,165]},"version":"4.5.5"}
|
package/index.js
DELETED
package/lib/plugins/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const core: {
|
|
2
|
-
':image': {
|
|
3
|
-
toHtml: (writer: any) => (node: any) => void;
|
|
4
|
-
};
|
|
5
|
-
image: {
|
|
6
|
-
toHtml: import("@podlite/schema/lib/helpers/makeQuery").RuleHandler<any>;
|
|
7
|
-
};
|
|
8
|
-
root: {
|
|
9
|
-
toHtml: import("@podlite/schema/lib/helpers/makeQuery").RuleHandler<any>;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default core;
|
package/lib/plugins/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.core = void 0;
|
|
4
|
-
const schema_1 = require("@podlite/schema");
|
|
5
|
-
exports.core = {
|
|
6
|
-
':image': {
|
|
7
|
-
toHtml: (writer) => (node) => {
|
|
8
|
-
if (typeof node !== "string" && 'type' in node && node.type === 'image') {
|
|
9
|
-
writer.writeRaw(`<img`);
|
|
10
|
-
writer.writeRaw(` src="${node.src}"`);
|
|
11
|
-
if (node.alt) {
|
|
12
|
-
writer.writeRaw(` alt="${node.alt}"`);
|
|
13
|
-
}
|
|
14
|
-
writer.writeRaw(`/>`);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
'image': {
|
|
19
|
-
toHtml: schema_1.content
|
|
20
|
-
},
|
|
21
|
-
'root': {
|
|
22
|
-
toHtml: schema_1.content
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
exports.default = exports.core;
|
package/src/plugins/index.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { content } from "@podlite/schema";
|
|
2
|
-
|
|
3
|
-
export const core = {
|
|
4
|
-
':image':{
|
|
5
|
-
toHtml:(writer)=>(node)=>{
|
|
6
|
-
if (typeof node !== "string" && 'type' in node && node.type === 'image') {
|
|
7
|
-
writer.writeRaw(`<img`);
|
|
8
|
-
writer.writeRaw(` src="${node.src}"`)
|
|
9
|
-
if (node.alt) {
|
|
10
|
-
writer.writeRaw(` alt="${node.alt}"`)
|
|
11
|
-
}
|
|
12
|
-
writer.writeRaw(`/>`)
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
'image': {
|
|
17
|
-
toHtml: content
|
|
18
|
-
},
|
|
19
|
-
'root' : {
|
|
20
|
-
toHtml: content
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export default core
|
package/t/ids.test.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { getFromTree, getNodeId, mkRootBlock, PodliteDocument, toTree, validatePodliteAst } from "@podlite/schema";
|
|
2
|
-
import middleware from "../src/ids"
|
|
3
|
-
|
|
4
|
-
export const parse = (text:string, opt?): PodliteDocument => {
|
|
5
|
-
const rawTree = toTree().use(middleware).parse(text, opt={skipChain: 0, podMode: 1})
|
|
6
|
-
const root = mkRootBlock({margin:""}, rawTree)
|
|
7
|
-
return root;
|
|
8
|
-
};
|
|
9
|
-
const pod=`=begin
|
|
10
|
-
=for para :id<test>
|
|
11
|
-
test
|
|
12
|
-
=end`
|
|
13
|
-
|
|
14
|
-
it("[ID] validate", () => {
|
|
15
|
-
const p = parse(pod);
|
|
16
|
-
const r = validatePodliteAst(p);
|
|
17
|
-
expect(r).toEqual([]);
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it("[ID] custom id", () => {
|
|
21
|
-
const p = parse(pod);
|
|
22
|
-
const para = getFromTree(p, "para")[0];
|
|
23
|
-
const id = getNodeId(para,{})
|
|
24
|
-
expect(id).toEqual("test");
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it("[ID] validate =item", () => {
|
|
28
|
-
const p = parse(`=item1 test`);
|
|
29
|
-
const r = validatePodliteAst(p);
|
|
30
|
-
expect(r).toEqual([]);
|
|
31
|
-
});
|
package/t/plugin.test.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Plugin } from "@podlite/schema";
|
|
2
|
-
import { podlite, toAnyRules } from "../src";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const testPlugin:Plugin = {
|
|
6
|
-
toAst: () => () => {
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
toHtml: () => () => {
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
test("plugin", () => {
|
|
15
|
-
const proc = podlite({importPlugins:false}).use({Test:testPlugin})
|
|
16
|
-
const toAstPlugins= toAnyRules('toAst', proc.getPlugins())
|
|
17
|
-
const toHtmlPlugins= toAnyRules('toHtml', proc.getPlugins())
|
|
18
|
-
const toUNKNOWNPlugins= toAnyRules('toUNKNOWN', proc.getPlugins())
|
|
19
|
-
expect(toAstPlugins).toHaveProperty("Test");
|
|
20
|
-
expect(toHtmlPlugins).toHaveProperty("Test");
|
|
21
|
-
expect(toUNKNOWNPlugins).not.toHaveProperty("Test");
|
|
22
|
-
|
|
23
|
-
})
|