@breadstone-infrastructure/nx-tasks 0.0.230 → 0.0.232
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/executors/doppler-config-sync/executor.task.d.ts.map +1 -1
- package/executors/doppler-config-sync/executor.task.js +37 -18
- package/executors/doppler-config-sync/executor.task.js.map +1 -1
- package/executors/doppler-vercel-sync/executor.d.ts +11 -0
- package/executors/doppler-vercel-sync/executor.d.ts.map +1 -0
- package/executors/doppler-vercel-sync/executor.js +71 -0
- package/executors/doppler-vercel-sync/executor.js.map +1 -0
- package/executors/doppler-vercel-sync/executor.options.d.ts +8 -0
- package/executors/doppler-vercel-sync/executor.options.d.ts.map +1 -0
- package/executors/doppler-vercel-sync/executor.options.js +4 -0
- package/executors/doppler-vercel-sync/executor.options.js.map +1 -0
- package/executors/doppler-vercel-sync/executor.task.d.ts +30 -0
- package/executors/doppler-vercel-sync/executor.task.d.ts.map +1 -0
- package/executors/doppler-vercel-sync/executor.task.js +522 -0
- package/executors/doppler-vercel-sync/executor.task.js.map +1 -0
- package/executors/doppler-vercel-sync/schema.json +95 -0
- package/executors/generate-package-docs/executor.d.ts +6 -0
- package/executors/generate-package-docs/executor.d.ts.map +1 -0
- package/executors/generate-package-docs/executor.js +72 -0
- package/executors/generate-package-docs/executor.js.map +1 -0
- package/executors/generate-package-docs/executor.options.d.ts +6 -0
- package/executors/generate-package-docs/executor.options.d.ts.map +1 -0
- package/executors/generate-package-docs/executor.options.js +4 -0
- package/executors/generate-package-docs/executor.options.js.map +1 -0
- package/executors/generate-package-docs/executor.task.d.ts +103 -0
- package/executors/generate-package-docs/executor.task.d.ts.map +1 -0
- package/executors/generate-package-docs/executor.task.js +259 -0
- package/executors/generate-package-docs/executor.task.js.map +1 -0
- package/executors/generate-package-docs/schema.json +258 -0
- package/executors/icon-collection-builder/executor.d.ts.map +1 -1
- package/executors/icon-collection-builder/executor.js +3 -2
- package/executors/icon-collection-builder/executor.js.map +1 -1
- package/executors/icon-collection-builder/executor.task.d.ts +1 -0
- package/executors/icon-collection-builder/executor.task.d.ts.map +1 -1
- package/executors/icon-collection-builder/executor.task.js +73 -11
- package/executors/icon-collection-builder/executor.task.js.map +1 -1
- package/executors/icon-collection-builder/svg.d.ts +19 -0
- package/executors/icon-collection-builder/svg.d.ts.map +1 -1
- package/executors/icon-collection-builder/svg.js +106 -0
- package/executors/icon-collection-builder/svg.js.map +1 -1
- package/executors/icon-collection-downloader/executor.d.ts.map +1 -1
- package/executors/icon-collection-downloader/executor.js +3 -2
- package/executors/icon-collection-downloader/executor.js.map +1 -1
- package/executors/icon-collection-downloader/executor.task.d.ts +2 -0
- package/executors/icon-collection-downloader/executor.task.d.ts.map +1 -1
- package/executors/icon-collection-downloader/executor.task.js +130 -15
- package/executors/icon-collection-downloader/executor.task.js.map +1 -1
- package/executors/lit-docs/ComponentDocFixer.d.ts +176 -0
- package/executors/lit-docs/ComponentDocFixer.d.ts.map +1 -0
- package/executors/lit-docs/ComponentDocFixer.js +424 -0
- package/executors/lit-docs/ComponentDocFixer.js.map +1 -0
- package/executors/lit-docs/JSDocFixer.d.ts +97 -0
- package/executors/lit-docs/JSDocFixer.d.ts.map +1 -0
- package/executors/lit-docs/JSDocFixer.js +200 -0
- package/executors/lit-docs/JSDocFixer.js.map +1 -0
- package/executors/lit-docs/executor.d.ts.map +1 -1
- package/executors/lit-docs/executor.js +2 -1
- package/executors/lit-docs/executor.js.map +1 -1
- package/executors/lit-docs/executor.task.d.ts +1 -0
- package/executors/lit-docs/executor.task.d.ts.map +1 -1
- package/executors/lit-docs/executor.task.js +71 -24
- package/executors/lit-docs/executor.task.js.map +1 -1
- package/executors/lit-style-transform/executor.js +1 -1
- package/executors/lit-style-transform/executor.js.map +1 -1
- package/executors/prisma-seeds/executor.d.ts +10 -0
- package/executors/prisma-seeds/executor.d.ts.map +1 -0
- package/executors/prisma-seeds/executor.js +68 -0
- package/executors/prisma-seeds/executor.js.map +1 -0
- package/executors/prisma-seeds/executor.options.d.ts +16 -0
- package/executors/prisma-seeds/executor.options.d.ts.map +1 -0
- package/executors/prisma-seeds/executor.options.js +3 -0
- package/executors/prisma-seeds/executor.options.js.map +1 -0
- package/executors/prisma-seeds/executor.task.d.ts +29 -0
- package/executors/prisma-seeds/executor.task.d.ts.map +1 -0
- package/executors/prisma-seeds/executor.task.js +54 -0
- package/executors/prisma-seeds/executor.task.js.map +1 -0
- package/executors/prisma-seeds/schema.json +35 -0
- package/executors/secrets-config-sync/executor.d.ts +11 -0
- package/executors/secrets-config-sync/executor.d.ts.map +1 -0
- package/executors/secrets-config-sync/executor.js +64 -0
- package/executors/secrets-config-sync/executor.js.map +1 -0
- package/executors/secrets-config-sync/executor.options.d.ts +6 -0
- package/executors/secrets-config-sync/executor.options.d.ts.map +1 -0
- package/executors/secrets-config-sync/executor.options.js +4 -0
- package/executors/secrets-config-sync/executor.options.js.map +1 -0
- package/executors/secrets-config-sync/executor.task.d.ts +14 -0
- package/executors/secrets-config-sync/executor.task.d.ts.map +1 -0
- package/executors/secrets-config-sync/executor.task.js +157 -0
- package/executors/secrets-config-sync/executor.task.js.map +1 -0
- package/executors/secrets-config-sync/providers/azure-keyvault.provider.d.ts +42 -0
- package/executors/secrets-config-sync/providers/azure-keyvault.provider.d.ts.map +1 -0
- package/executors/secrets-config-sync/providers/azure-keyvault.provider.js +120 -0
- package/executors/secrets-config-sync/providers/azure-keyvault.provider.js.map +1 -0
- package/executors/secrets-config-sync/providers/doppler.provider.d.ts +18 -0
- package/executors/secrets-config-sync/providers/doppler.provider.d.ts.map +1 -0
- package/executors/secrets-config-sync/providers/doppler.provider.js +53 -0
- package/executors/secrets-config-sync/providers/doppler.provider.js.map +1 -0
- package/executors/secrets-config-sync/providers/secrets-provider.factory.d.ts +17 -0
- package/executors/secrets-config-sync/providers/secrets-provider.factory.d.ts.map +1 -0
- package/executors/secrets-config-sync/providers/secrets-provider.factory.js +25 -0
- package/executors/secrets-config-sync/providers/secrets-provider.factory.js.map +1 -0
- package/executors/secrets-config-sync/providers/secrets-provider.interface.d.ts +28 -0
- package/executors/secrets-config-sync/providers/secrets-provider.interface.d.ts.map +1 -0
- package/executors/secrets-config-sync/providers/secrets-provider.interface.js +4 -0
- package/executors/secrets-config-sync/providers/secrets-provider.interface.js.map +1 -0
- package/executors/secrets-config-sync/schema.json +44 -0
- package/executors/secrets-vercel-sync/executor.d.ts +11 -0
- package/executors/secrets-vercel-sync/executor.d.ts.map +1 -0
- package/executors/secrets-vercel-sync/executor.js +74 -0
- package/executors/secrets-vercel-sync/executor.js.map +1 -0
- package/executors/secrets-vercel-sync/executor.options.d.ts +8 -0
- package/executors/secrets-vercel-sync/executor.options.d.ts.map +1 -0
- package/executors/secrets-vercel-sync/executor.options.js +4 -0
- package/executors/secrets-vercel-sync/executor.options.js.map +1 -0
- package/executors/secrets-vercel-sync/executor.task.d.ts +34 -0
- package/executors/secrets-vercel-sync/executor.task.d.ts.map +1 -0
- package/executors/secrets-vercel-sync/executor.task.js +492 -0
- package/executors/secrets-vercel-sync/executor.task.js.map +1 -0
- package/executors/secrets-vercel-sync/providers/azure-keyvault.provider.d.ts +42 -0
- package/executors/secrets-vercel-sync/providers/azure-keyvault.provider.d.ts.map +1 -0
- package/executors/secrets-vercel-sync/providers/azure-keyvault.provider.js +118 -0
- package/executors/secrets-vercel-sync/providers/azure-keyvault.provider.js.map +1 -0
- package/executors/secrets-vercel-sync/providers/doppler.provider.d.ts +18 -0
- package/executors/secrets-vercel-sync/providers/doppler.provider.d.ts.map +1 -0
- package/executors/secrets-vercel-sync/providers/doppler.provider.js +61 -0
- package/executors/secrets-vercel-sync/providers/doppler.provider.js.map +1 -0
- package/executors/secrets-vercel-sync/providers/secrets-provider.factory.d.ts +17 -0
- package/executors/secrets-vercel-sync/providers/secrets-provider.factory.d.ts.map +1 -0
- package/executors/secrets-vercel-sync/providers/secrets-provider.factory.js +25 -0
- package/executors/secrets-vercel-sync/providers/secrets-provider.factory.js.map +1 -0
- package/executors/secrets-vercel-sync/providers/secrets-provider.interface.d.ts +28 -0
- package/executors/secrets-vercel-sync/providers/secrets-provider.interface.d.ts.map +1 -0
- package/executors/secrets-vercel-sync/providers/secrets-provider.interface.js +4 -0
- package/executors/secrets-vercel-sync/providers/secrets-provider.interface.js.map +1 -0
- package/executors/secrets-vercel-sync/schema.json +112 -0
- package/executors/token-linter/executor.d.ts +10 -0
- package/executors/token-linter/executor.d.ts.map +1 -0
- package/executors/token-linter/executor.js +67 -0
- package/executors/token-linter/executor.js.map +1 -0
- package/executors/token-linter/executor.options.d.ts +19 -0
- package/executors/token-linter/executor.options.d.ts.map +1 -0
- package/executors/token-linter/executor.options.js +4 -0
- package/executors/token-linter/executor.options.js.map +1 -0
- package/executors/token-linter/executor.task.d.ts +33 -0
- package/executors/token-linter/executor.task.d.ts.map +1 -0
- package/executors/token-linter/executor.task.js +60 -0
- package/executors/token-linter/executor.task.js.map +1 -0
- package/executors/token-linter/schema.json +63 -0
- package/executors.json +48 -28
- package/index.d.ts +4 -3
- package/index.d.ts.map +1 -1
- package/index.js +41 -39
- package/index.js.map +1 -1
- package/package.json +21 -17
- package/utils/markdown-processing.d.ts +43 -0
- package/utils/markdown-processing.d.ts.map +1 -0
- package/utils/markdown-processing.js +186 -0
- package/utils/markdown-processing.js.map +1 -0
- package/utils/valid-html-tags.d.ts +6 -0
- package/utils/valid-html-tags.d.ts.map +1 -0
- package/utils/valid-html-tags.js +83 -0
- package/utils/valid-html-tags.js.map +1 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Shared Markdown post-processing utilities for TypeDoc-generated documentation.
|
|
4
|
+
* All functions are stateless and operate on individual files.
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.normalizeFrontmatter = normalizeFrontmatter;
|
|
41
|
+
exports.rewriteLinks = rewriteLinks;
|
|
42
|
+
exports.stripPackageBackLink = stripPackageBackLink;
|
|
43
|
+
exports.resolveInlineLinks = resolveInlineLinks;
|
|
44
|
+
exports.escapeAngleBrackets = escapeAngleBrackets;
|
|
45
|
+
exports.countMarkdownFiles = countMarkdownFiles;
|
|
46
|
+
exports.processMarkdownFiles = processMarkdownFiles;
|
|
47
|
+
// gray-matter is CJS — use import = require() to avoid ESM interop issues in NX JIT
|
|
48
|
+
const matter = require("gray-matter");
|
|
49
|
+
const fs = __importStar(require("node:fs"));
|
|
50
|
+
const path = __importStar(require("node:path"));
|
|
51
|
+
const valid_html_tags_1 = require("./valid-html-tags");
|
|
52
|
+
/**
|
|
53
|
+
* Ensures the Markdown file has valid frontmatter with a title.
|
|
54
|
+
* Optionally marks the file as auto-generated.
|
|
55
|
+
*/
|
|
56
|
+
function normalizeFrontmatter(filePath, options = {}) {
|
|
57
|
+
const content = fs.readFileSync(filePath, 'utf-8');
|
|
58
|
+
const parsed = matter(content);
|
|
59
|
+
if (!parsed.data['title'] && parsed.content) {
|
|
60
|
+
const h1Match = parsed.content.match(/^#\s+(.+)$/m);
|
|
61
|
+
if (h1Match) {
|
|
62
|
+
parsed.data['title'] = h1Match[1].trim();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (options.generated) {
|
|
66
|
+
parsed.data['generated'] = true;
|
|
67
|
+
parsed.data['editUrl'] = false;
|
|
68
|
+
}
|
|
69
|
+
const updated = matter.stringify(parsed.content, parsed.data);
|
|
70
|
+
fs.writeFileSync(filePath, updated, 'utf-8');
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Rewrites `.md` extensions to clean URLs and README links to parent directory.
|
|
74
|
+
* Required for VitePress compatibility.
|
|
75
|
+
*/
|
|
76
|
+
function rewriteLinks(filePath) {
|
|
77
|
+
let content = fs.readFileSync(filePath, 'utf-8');
|
|
78
|
+
content = content.replace(/\]\(([^)]+?)\.md(#[^)]*?)?\)/g, (match, linkPath, anchor) => {
|
|
79
|
+
if (linkPath.startsWith('http://') || linkPath.startsWith('https://')) {
|
|
80
|
+
return match;
|
|
81
|
+
}
|
|
82
|
+
return `](${linkPath}${anchor ?? ''})`;
|
|
83
|
+
});
|
|
84
|
+
content = content.replace(/\]\((?:\.\/)?README(#[^)]*?)?\)/g, (_match, anchor) => `](../${anchor ?? ''})`);
|
|
85
|
+
fs.writeFileSync(filePath, content, 'utf-8');
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Removes the TypeDoc-generated package back-link and separator at the top.
|
|
89
|
+
* Matches any scoped package pattern: `[**@scope/package-name**](../)`
|
|
90
|
+
*/
|
|
91
|
+
function stripPackageBackLink(filePath) {
|
|
92
|
+
let content = fs.readFileSync(filePath, 'utf-8');
|
|
93
|
+
content = content.replace(/\[?\[?\*\*@[^*]+\*\*\]?\(\.\.\/?\)\]?\s*\n+\*{3}\s*\n+/g, '');
|
|
94
|
+
fs.writeFileSync(filePath, content, 'utf-8');
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Resolves unresolved `{@link Foo}` TSDoc references in inline code.
|
|
98
|
+
* Converts `{@link Foo}` → `Foo`.
|
|
99
|
+
*/
|
|
100
|
+
function resolveInlineLinks(filePath) {
|
|
101
|
+
let content = fs.readFileSync(filePath, 'utf-8');
|
|
102
|
+
content = content.replace(/\{@link\s+([^}]+)\}/g, '$1');
|
|
103
|
+
fs.writeFileSync(filePath, content, 'utf-8');
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Escapes angle brackets in TypeDoc-generated Markdown that Vue's compiler
|
|
107
|
+
* would misinterpret as HTML/component tags (e.g. `Promise<boolean>`).
|
|
108
|
+
* Only processes lines outside fenced code blocks and inline code spans.
|
|
109
|
+
*/
|
|
110
|
+
function escapeAngleBrackets(filePath) {
|
|
111
|
+
const content = fs.readFileSync(filePath, 'utf-8');
|
|
112
|
+
const lines = content.split('\n');
|
|
113
|
+
let insideCodeFence = false;
|
|
114
|
+
const result = [];
|
|
115
|
+
for (const line of lines) {
|
|
116
|
+
if (/^```/.test(line.trimStart())) {
|
|
117
|
+
insideCodeFence = !insideCodeFence;
|
|
118
|
+
result.push(line);
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
if (insideCodeFence) {
|
|
122
|
+
result.push(line);
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
const segments = line.split(/(`[^`]*`)/g);
|
|
126
|
+
const escaped = segments
|
|
127
|
+
.map((segment, index) => {
|
|
128
|
+
if (index % 2 === 1)
|
|
129
|
+
return segment;
|
|
130
|
+
return segment.replace(/(?<!\\)<(\/?[A-Za-z][A-Za-z0-9., |_[\]]*?)(?<!\\)>/g, (_match, inner) => {
|
|
131
|
+
const tagName = inner
|
|
132
|
+
.replace(/^\//, '')
|
|
133
|
+
.split(/[\s,.[|]/)[0]
|
|
134
|
+
.toLowerCase();
|
|
135
|
+
if (valid_html_tags_1.VALID_HTML_TAGS.has(tagName))
|
|
136
|
+
return _match;
|
|
137
|
+
return `\\<${inner}\\>`;
|
|
138
|
+
});
|
|
139
|
+
})
|
|
140
|
+
.join('');
|
|
141
|
+
result.push(escaped);
|
|
142
|
+
}
|
|
143
|
+
const updated = result.join('\n');
|
|
144
|
+
if (updated !== content) {
|
|
145
|
+
fs.writeFileSync(filePath, updated, 'utf-8');
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Recursively counts Markdown files in a directory.
|
|
150
|
+
*/
|
|
151
|
+
function countMarkdownFiles(dir) {
|
|
152
|
+
if (!fs.existsSync(dir))
|
|
153
|
+
return 0;
|
|
154
|
+
let count = 0;
|
|
155
|
+
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
156
|
+
if (entry.isDirectory()) {
|
|
157
|
+
count += countMarkdownFiles(path.join(dir, entry.name));
|
|
158
|
+
}
|
|
159
|
+
else if (entry.name.endsWith('.md')) {
|
|
160
|
+
count++;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return count;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Recursively processes all Markdown files in a directory,
|
|
167
|
+
* applying normalization, link rewriting, and escaping.
|
|
168
|
+
*/
|
|
169
|
+
function processMarkdownFiles(dir, options = {}) {
|
|
170
|
+
if (!fs.existsSync(dir))
|
|
171
|
+
return;
|
|
172
|
+
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
173
|
+
const fullPath = path.join(dir, entry.name);
|
|
174
|
+
if (entry.isDirectory()) {
|
|
175
|
+
processMarkdownFiles(fullPath, options);
|
|
176
|
+
}
|
|
177
|
+
else if (entry.name.endsWith('.md')) {
|
|
178
|
+
normalizeFrontmatter(fullPath, options);
|
|
179
|
+
rewriteLinks(fullPath);
|
|
180
|
+
if (options.generated) {
|
|
181
|
+
escapeAngleBrackets(fullPath);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
//# sourceMappingURL=markdown-processing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-processing.js","sourceRoot":"","sources":["../../src/utils/markdown-processing.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBH,oDAkBC;AAMD,oCAmBC;AAMD,oDAIC;AAMD,gDAIC;AAOD,kDA6CC;AAKD,gDAaC;AAMD,oDAeC;AAxKD,oFAAoF;AACpF,sCAAuC;AACvC,4CAA8B;AAC9B,gDAAkC;AAClC,uDAAoD;AAMpD;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,QAAgB,EAAE,UAAwC,EAAE;IAC/F,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACnD,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IAE/B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QAC5C,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACpD,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC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C,EAAE,CAAC;YACtC,KAAK,EAAE,CAAC;QACV,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;GAGG;AACH,SAAgB,oBAAoB,CAAC,GAAW,EAAE,UAAwC,EAAE;IAC1F,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO;IAEhC,KAAK,MAAM,KAAK,IAAI,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QACjE,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QAC5C,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC;YACxB,oBAAoB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAC1C,CAAC;aAAM,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACtC,oBAAoB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YACxC,YAAY,CAAC,QAAQ,CAAC,CAAC;YACvB,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;gBACtB,mBAAmB,CAAC,QAAQ,CAAC,CAAC;YAChC,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valid-html-tags.d.ts","sourceRoot":"","sources":["../../src/utils/valid-html-tags.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,eAAe,aA0E1B,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VALID_HTML_TAGS = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Comprehensive set of valid HTML tags that should not be escaped
|
|
6
|
+
* when processing TypeDoc-generated Markdown for VitePress.
|
|
7
|
+
*/
|
|
8
|
+
exports.VALID_HTML_TAGS = new Set([
|
|
9
|
+
'a',
|
|
10
|
+
'abbr',
|
|
11
|
+
'article',
|
|
12
|
+
'aside',
|
|
13
|
+
'b',
|
|
14
|
+
'blockquote',
|
|
15
|
+
'body',
|
|
16
|
+
'br',
|
|
17
|
+
'button',
|
|
18
|
+
'code',
|
|
19
|
+
'dd',
|
|
20
|
+
'del',
|
|
21
|
+
'details',
|
|
22
|
+
'div',
|
|
23
|
+
'dl',
|
|
24
|
+
'dt',
|
|
25
|
+
'em',
|
|
26
|
+
'fieldset',
|
|
27
|
+
'figcaption',
|
|
28
|
+
'figure',
|
|
29
|
+
'footer',
|
|
30
|
+
'form',
|
|
31
|
+
'h1',
|
|
32
|
+
'h2',
|
|
33
|
+
'h3',
|
|
34
|
+
'h4',
|
|
35
|
+
'h5',
|
|
36
|
+
'h6',
|
|
37
|
+
'head',
|
|
38
|
+
'header',
|
|
39
|
+
'hr',
|
|
40
|
+
'html',
|
|
41
|
+
'i',
|
|
42
|
+
'img',
|
|
43
|
+
'input',
|
|
44
|
+
'kbd',
|
|
45
|
+
'label',
|
|
46
|
+
'legend',
|
|
47
|
+
'li',
|
|
48
|
+
'link',
|
|
49
|
+
'main',
|
|
50
|
+
'mark',
|
|
51
|
+
'meta',
|
|
52
|
+
'nav',
|
|
53
|
+
'ol',
|
|
54
|
+
'option',
|
|
55
|
+
'p',
|
|
56
|
+
'picture',
|
|
57
|
+
'pre',
|
|
58
|
+
'ruby',
|
|
59
|
+
's',
|
|
60
|
+
'script',
|
|
61
|
+
'section',
|
|
62
|
+
'select',
|
|
63
|
+
'small',
|
|
64
|
+
'source',
|
|
65
|
+
'span',
|
|
66
|
+
'strong',
|
|
67
|
+
'style',
|
|
68
|
+
'sub',
|
|
69
|
+
'summary',
|
|
70
|
+
'sup',
|
|
71
|
+
'table',
|
|
72
|
+
'tbody',
|
|
73
|
+
'td',
|
|
74
|
+
'textarea',
|
|
75
|
+
'tfoot',
|
|
76
|
+
'th',
|
|
77
|
+
'thead',
|
|
78
|
+
'tr',
|
|
79
|
+
'u',
|
|
80
|
+
'ul',
|
|
81
|
+
'video',
|
|
82
|
+
]);
|
|
83
|
+
//# sourceMappingURL=valid-html-tags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valid-html-tags.js","sourceRoot":"","sources":["../../src/utils/valid-html-tags.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,eAAe,GAAG,IAAI,GAAG,CAAS;IAC7C,GAAG;IACH,MAAM;IACN,SAAS;IACT,OAAO;IACP,GAAG;IACH,YAAY;IACZ,MAAM;IACN,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,IAAI;IACJ,KAAK;IACL,SAAS;IACT,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,UAAU;IACV,YAAY;IACZ,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,MAAM;IACN,QAAQ;IACR,IAAI;IACJ,MAAM;IACN,GAAG;IACH,KAAK;IACL,OAAO;IACP,KAAK;IACL,OAAO;IACP,QAAQ;IACR,IAAI;IACJ,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,KAAK;IACL,IAAI;IACJ,QAAQ;IACR,GAAG;IACH,SAAS;IACT,KAAK;IACL,MAAM;IACN,GAAG;IACH,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,OAAO;IACP,KAAK;IACL,SAAS;IACT,KAAK;IACL,OAAO;IACP,OAAO;IACP,IAAI;IACJ,UAAU;IACV,OAAO;IACP,IAAI;IACJ,OAAO;IACP,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,OAAO;CACR,CAAC,CAAC"}
|