@glodon-aiot/agent-cli-ui 3.9.0-beta.9 → 3.9.1
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/dist/es/Dialog/AgentChat/HistoryItem/SessionRefer/index.mjs +8 -8
- package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +4 -4
- package/dist/es/Dialog/AgentChat/index.mjs +84 -84
- package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +51 -51
- package/dist/es/packages/agent-cli-ui/package.json.mjs +3 -3
- package/dist/es/packages/react-components/dist/es/components/Markdown/index.mjs +22 -23
- package/dist/es/packages/react-components/dist/es/index.mjs +1 -1
- package/dist/es/src/style15.css +1 -1
- package/dist/es/src/style16.css +1 -1
- package/dist/es/src/style17.css +1 -1
- package/dist/es/src/style18.css +1 -1
- package/dist/es/src/style19.css +1 -1
- package/dist/es/src/style20.css +1 -1
- package/dist/es/src/style21.css +1 -1
- package/dist/es/src/style24.css +1 -1
- package/dist/es/src/style25.css +1 -1
- package/dist/es/src/style27.css +1 -1
- package/dist/es/src/style29.css +1 -1
- package/dist/es/src/style30.css +1 -1
- package/dist/es/src/style31.css +1 -1
- package/dist/es/src/style32.css +1 -1
- package/dist/es/src/style5.css +1 -1
- package/dist/es/src/style6.css +1 -1
- package/dist/es/src/style7.css +1 -1
- package/dist/es/src/style8.css +1 -1
- package/dist/es/src/style9.css +1 -1
- package/dist/lib/index.js +69 -70
- package/package.json +3 -3
- package/dist/es/node_modules/hast-util-from-parse5/lib/index.mjs +0 -162
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/index.mjs +0 -12
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/aria.mjs +0 -61
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/find.mjs +0 -33
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/html.mjs +0 -368
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/normalize.mjs +0 -6
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/svg.mjs +0 -566
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/create.mjs +0 -14
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/defined-info.mjs +0 -36
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/info.mjs +0 -28
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/merge.mjs +0 -10
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/schema.mjs +0 -21
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xlink.mjs +0 -19
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xml.mjs +0 -15
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/vfile-location/lib/index.mjs +0 -47
- package/dist/es/node_modules/hast-util-from-parse5/node_modules/web-namespaces/index.mjs +0 -11
- package/dist/es/node_modules/rehype-raw/lib/index.mjs +0 -26
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode-codepoint.mjs +0 -38
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/decode.mjs +0 -251
- package/dist/es/node_modules/rehype-raw/node_modules/entities/dist/esm/generated/decode-data-html.mjs +0 -7
- package/dist/es/node_modules/rehype-raw/node_modules/hast-util-raw/lib/index.mjs +0 -249
- package/dist/es/node_modules/rehype-raw/node_modules/hast-util-to-parse5/lib/index.mjs +0 -125
- package/dist/es/node_modules/rehype-raw/node_modules/html-void-elements/index.mjs +0 -4
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/doctype.mjs +0 -34
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/error-codes.mjs +0 -7
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/foreign-content.mjs +0 -103
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/html.mjs +0 -44
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/token.mjs +0 -14
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/common/unicode.mjs +0 -38
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/formatting-element-list.mjs +0 -91
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/index.mjs +0 -2308
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/parser/open-element-stack.mjs +0 -220
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/serializer/index.mjs +0 -2
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/index.mjs +0 -1948
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tokenizer/preprocessor.mjs +0 -92
- package/dist/es/node_modules/rehype-raw/node_modules/parse5/dist/tree-adapters/default.mjs +0 -173
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/index.mjs +0 -12
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/aria.mjs +0 -61
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/find.mjs +0 -33
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/html.mjs +0 -368
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/normalize.mjs +0 -6
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/svg.mjs +0 -566
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/create.mjs +0 -17
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/defined-info.mjs +0 -27
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/info.mjs +0 -23
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/merge.mjs +0 -11
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/schema.mjs +0 -17
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xlink.mjs +0 -19
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xml.mjs +0 -15
- package/dist/es/node_modules/rehype-raw/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/rehype-raw/node_modules/unist-util-visit/lib/index.mjs +0 -16
- package/dist/es/node_modules/rehype-raw/node_modules/web-namespaces/index.mjs +0 -11
- package/dist/es/node_modules/zwitch/index.mjs +0 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glodon-aiot/agent-cli-ui",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.1",
|
|
4
4
|
"module": "./dist/es/index.mjs",
|
|
5
5
|
"main": "./dist/lib/index.js",
|
|
6
6
|
"typings": "./dist/src/index.d.ts",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@ant-design/icons": "^5.3.4",
|
|
40
|
-
"@glodon-aiot/apis": "^3.9.
|
|
41
|
-
"@glodon-aiot/bot-client-sdk": "^3.9.
|
|
40
|
+
"@glodon-aiot/apis": "^3.9.1",
|
|
41
|
+
"@glodon-aiot/bot-client-sdk": "^3.9.1",
|
|
42
42
|
"@matejmazur/react-mathjax": "^0.1.10",
|
|
43
43
|
"@react-pdf-viewer/core": "^3.12.0",
|
|
44
44
|
"@react-pdf-viewer/default-layout": "^3.12.0",
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { ok as x } from "../../devlop/lib/default.mjs";
|
|
2
|
-
import { svg as h, html as T } from "../node_modules/property-information/index.mjs";
|
|
3
|
-
import { webNamespaces as b } from "../node_modules/web-namespaces/index.mjs";
|
|
4
|
-
import { s as L, h as w } from "../../hastscript/lib/index.mjs";
|
|
5
|
-
import { find as C } from "../node_modules/property-information/lib/find.mjs";
|
|
6
|
-
import { location as N } from "../node_modules/vfile-location/lib/index.mjs";
|
|
7
|
-
const v = {}.hasOwnProperty, k = Object.prototype;
|
|
8
|
-
function U(t, n) {
|
|
9
|
-
const e = n || {};
|
|
10
|
-
return m({
|
|
11
|
-
file: e.file || void 0,
|
|
12
|
-
location: !1,
|
|
13
|
-
schema: e.space === "svg" ? h : T,
|
|
14
|
-
verbose: e.verbose || !1
|
|
15
|
-
}, t);
|
|
16
|
-
}
|
|
17
|
-
function m(t, n) {
|
|
18
|
-
let e;
|
|
19
|
-
switch (n.nodeName) {
|
|
20
|
-
case "#comment": {
|
|
21
|
-
const o = (
|
|
22
|
-
/** @type {DefaultTreeAdapterMap['commentNode']} */
|
|
23
|
-
n
|
|
24
|
-
);
|
|
25
|
-
return e = {
|
|
26
|
-
type: "comment",
|
|
27
|
-
value: o.data
|
|
28
|
-
}, l(t, o, e), e;
|
|
29
|
-
}
|
|
30
|
-
case "#document":
|
|
31
|
-
case "#document-fragment": {
|
|
32
|
-
const o = (
|
|
33
|
-
/** @type {DefaultTreeAdapterMap['document'] | DefaultTreeAdapterMap['documentFragment']} */
|
|
34
|
-
n
|
|
35
|
-
), c = "mode" in o ? o.mode === "quirks" || o.mode === "limited-quirks" : !1;
|
|
36
|
-
if (e = {
|
|
37
|
-
type: "root",
|
|
38
|
-
children: y(t, n.childNodes),
|
|
39
|
-
data: {
|
|
40
|
-
quirksMode: c
|
|
41
|
-
}
|
|
42
|
-
}, t.file && t.location) {
|
|
43
|
-
const a = String(t.file), s = N(a), i = s.toPoint(0), r = s.toPoint(a.length);
|
|
44
|
-
e.position = {
|
|
45
|
-
start: i,
|
|
46
|
-
end: r
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
return e;
|
|
50
|
-
}
|
|
51
|
-
case "#documentType": {
|
|
52
|
-
const o = (
|
|
53
|
-
/** @type {DefaultTreeAdapterMap['documentType']} */
|
|
54
|
-
n
|
|
55
|
-
);
|
|
56
|
-
return e = {
|
|
57
|
-
type: "doctype"
|
|
58
|
-
}, l(t, o, e), e;
|
|
59
|
-
}
|
|
60
|
-
case "#text": {
|
|
61
|
-
const o = (
|
|
62
|
-
/** @type {DefaultTreeAdapterMap['textNode']} */
|
|
63
|
-
n
|
|
64
|
-
);
|
|
65
|
-
return e = {
|
|
66
|
-
type: "text",
|
|
67
|
-
value: o.value
|
|
68
|
-
}, l(t, o, e), e;
|
|
69
|
-
}
|
|
70
|
-
default:
|
|
71
|
-
return e = O(
|
|
72
|
-
t,
|
|
73
|
-
/** @type {DefaultTreeAdapterMap['element']} */
|
|
74
|
-
n
|
|
75
|
-
), e;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
function y(t, n) {
|
|
79
|
-
let e = -1;
|
|
80
|
-
const o = [];
|
|
81
|
-
for (; ++e < n.length; ) {
|
|
82
|
-
const c = (
|
|
83
|
-
/** @type {RootContent} */
|
|
84
|
-
m(t, n[e])
|
|
85
|
-
);
|
|
86
|
-
o.push(c);
|
|
87
|
-
}
|
|
88
|
-
return o;
|
|
89
|
-
}
|
|
90
|
-
function O(t, n) {
|
|
91
|
-
const e = t.schema;
|
|
92
|
-
t.schema = n.namespaceURI === b.svg ? h : T;
|
|
93
|
-
let o = -1;
|
|
94
|
-
const c = {};
|
|
95
|
-
for (; ++o < n.attrs.length; ) {
|
|
96
|
-
const i = n.attrs[o], r = (i.prefix ? i.prefix + ":" : "") + i.name;
|
|
97
|
-
v.call(k, r) || (c[r] = i.value);
|
|
98
|
-
}
|
|
99
|
-
const s = (t.schema.space === "svg" ? L : w)(n.tagName, c, y(t, n.childNodes));
|
|
100
|
-
if (l(t, n, s), s.tagName === "template") {
|
|
101
|
-
const i = (
|
|
102
|
-
/** @type {DefaultTreeAdapterMap['template']} */
|
|
103
|
-
n
|
|
104
|
-
), r = i.sourceCodeLocation, f = r && r.startTag && u(r.startTag), p = r && r.endTag && u(r.endTag), d = (
|
|
105
|
-
/** @type {Root} */
|
|
106
|
-
m(t, i.content)
|
|
107
|
-
);
|
|
108
|
-
f && p && t.file && (d.position = {
|
|
109
|
-
start: f.end,
|
|
110
|
-
end: p.start
|
|
111
|
-
}), s.content = d;
|
|
112
|
-
}
|
|
113
|
-
return t.schema = e, s;
|
|
114
|
-
}
|
|
115
|
-
function l(t, n, e) {
|
|
116
|
-
if ("sourceCodeLocation" in n && n.sourceCodeLocation && t.file) {
|
|
117
|
-
const o = P(t, e, n.sourceCodeLocation);
|
|
118
|
-
o && (t.location = !0, e.position = o);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
function P(t, n, e) {
|
|
122
|
-
const o = u(e);
|
|
123
|
-
if (n.type === "element") {
|
|
124
|
-
const c = n.children[n.children.length - 1];
|
|
125
|
-
if (o && !e.endTag && c && c.position && c.position.end && (o.end = Object.assign({}, c.position.end)), t.verbose) {
|
|
126
|
-
const a = {};
|
|
127
|
-
let s;
|
|
128
|
-
if (e.attrs)
|
|
129
|
-
for (s in e.attrs)
|
|
130
|
-
v.call(e.attrs, s) && (a[C(t.schema, s).property] = u(e.attrs[s]));
|
|
131
|
-
x(e.startTag);
|
|
132
|
-
const i = u(e.startTag), r = e.endTag ? u(e.endTag) : void 0, f = {
|
|
133
|
-
opening: i
|
|
134
|
-
};
|
|
135
|
-
r && (f.closing = r), f.properties = a, n.data = {
|
|
136
|
-
position: f
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
return o;
|
|
141
|
-
}
|
|
142
|
-
function u(t) {
|
|
143
|
-
const n = g({
|
|
144
|
-
line: t.startLine,
|
|
145
|
-
column: t.startCol,
|
|
146
|
-
offset: t.startOffset
|
|
147
|
-
}), e = g({
|
|
148
|
-
line: t.endLine,
|
|
149
|
-
column: t.endCol,
|
|
150
|
-
offset: t.endOffset
|
|
151
|
-
});
|
|
152
|
-
return n || e ? {
|
|
153
|
-
start: n,
|
|
154
|
-
end: e
|
|
155
|
-
} : void 0;
|
|
156
|
-
}
|
|
157
|
-
function g(t) {
|
|
158
|
-
return t.line && t.column ? t : void 0;
|
|
159
|
-
}
|
|
160
|
-
export {
|
|
161
|
-
U as fromParse5
|
|
162
|
-
};
|
package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/index.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { merge as m } from "./lib/util/merge.mjs";
|
|
2
|
-
import { aria as o } from "./lib/aria.mjs";
|
|
3
|
-
import { html as s } from "./lib/html.mjs";
|
|
4
|
-
import { svg as p } from "./lib/svg.mjs";
|
|
5
|
-
import { xlink as r } from "./lib/xlink.mjs";
|
|
6
|
-
import { xmlns as t } from "./lib/xmlns.mjs";
|
|
7
|
-
import { xml as i } from "./lib/xml.mjs";
|
|
8
|
-
const x = m([o, s, r, t, i], "html"), e = m([o, p, r, t, i], "svg");
|
|
9
|
-
export {
|
|
10
|
-
x as html,
|
|
11
|
-
e as svg
|
|
12
|
-
};
|
package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/aria.mjs
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { create as l } from "./util/create.mjs";
|
|
2
|
-
import { booleanish as a, number as r, spaceSeparated as i } from "./util/types.mjs";
|
|
3
|
-
const u = l({
|
|
4
|
-
properties: {
|
|
5
|
-
ariaActiveDescendant: null,
|
|
6
|
-
ariaAtomic: a,
|
|
7
|
-
ariaAutoComplete: null,
|
|
8
|
-
ariaBusy: a,
|
|
9
|
-
ariaChecked: a,
|
|
10
|
-
ariaColCount: r,
|
|
11
|
-
ariaColIndex: r,
|
|
12
|
-
ariaColSpan: r,
|
|
13
|
-
ariaControls: i,
|
|
14
|
-
ariaCurrent: null,
|
|
15
|
-
ariaDescribedBy: i,
|
|
16
|
-
ariaDetails: null,
|
|
17
|
-
ariaDisabled: a,
|
|
18
|
-
ariaDropEffect: i,
|
|
19
|
-
ariaErrorMessage: null,
|
|
20
|
-
ariaExpanded: a,
|
|
21
|
-
ariaFlowTo: i,
|
|
22
|
-
ariaGrabbed: a,
|
|
23
|
-
ariaHasPopup: null,
|
|
24
|
-
ariaHidden: a,
|
|
25
|
-
ariaInvalid: null,
|
|
26
|
-
ariaKeyShortcuts: null,
|
|
27
|
-
ariaLabel: null,
|
|
28
|
-
ariaLabelledBy: i,
|
|
29
|
-
ariaLevel: r,
|
|
30
|
-
ariaLive: null,
|
|
31
|
-
ariaModal: a,
|
|
32
|
-
ariaMultiLine: a,
|
|
33
|
-
ariaMultiSelectable: a,
|
|
34
|
-
ariaOrientation: null,
|
|
35
|
-
ariaOwns: i,
|
|
36
|
-
ariaPlaceholder: null,
|
|
37
|
-
ariaPosInSet: r,
|
|
38
|
-
ariaPressed: a,
|
|
39
|
-
ariaReadOnly: a,
|
|
40
|
-
ariaRelevant: null,
|
|
41
|
-
ariaRequired: a,
|
|
42
|
-
ariaRoleDescription: i,
|
|
43
|
-
ariaRowCount: r,
|
|
44
|
-
ariaRowIndex: r,
|
|
45
|
-
ariaRowSpan: r,
|
|
46
|
-
ariaSelected: a,
|
|
47
|
-
ariaSetSize: r,
|
|
48
|
-
ariaSort: null,
|
|
49
|
-
ariaValueMax: r,
|
|
50
|
-
ariaValueMin: r,
|
|
51
|
-
ariaValueNow: r,
|
|
52
|
-
ariaValueText: null,
|
|
53
|
-
role: null
|
|
54
|
-
},
|
|
55
|
-
transform(n, e) {
|
|
56
|
-
return e === "role" ? e : "aria-" + e.slice(4).toLowerCase();
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
export {
|
|
60
|
-
u as aria
|
|
61
|
-
};
|
package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/find.mjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { DefinedInfo as s } from "./util/defined-info.mjs";
|
|
2
|
-
import { Info as p } from "./util/info.mjs";
|
|
3
|
-
import { normalize as f } from "./normalize.mjs";
|
|
4
|
-
const l = /[A-Z]/g, c = /-[a-z]/g, d = /^data[-\w.:]+$/i;
|
|
5
|
-
function y(r, t) {
|
|
6
|
-
const o = f(t);
|
|
7
|
-
let i = t, a = p;
|
|
8
|
-
if (o in r.normal)
|
|
9
|
-
return r.property[r.normal[o]];
|
|
10
|
-
if (o.length > 4 && o.slice(0, 4) === "data" && d.test(t)) {
|
|
11
|
-
if (t.charAt(4) === "-") {
|
|
12
|
-
const e = t.slice(5).replace(c, h);
|
|
13
|
-
i = "data" + e.charAt(0).toUpperCase() + e.slice(1);
|
|
14
|
-
} else {
|
|
15
|
-
const e = t.slice(4);
|
|
16
|
-
if (!c.test(e)) {
|
|
17
|
-
let n = e.replace(l, m);
|
|
18
|
-
n.charAt(0) !== "-" && (n = "-" + n), t = "data" + n;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
a = s;
|
|
22
|
-
}
|
|
23
|
-
return new a(i, t);
|
|
24
|
-
}
|
|
25
|
-
function m(r) {
|
|
26
|
-
return "-" + r.toLowerCase();
|
|
27
|
-
}
|
|
28
|
-
function h(r) {
|
|
29
|
-
return r.charAt(1).toUpperCase();
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
y as find
|
|
33
|
-
};
|
package/dist/es/node_modules/hast-util-from-parse5/node_modules/property-information/lib/html.mjs
DELETED
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
import { caseInsensitiveTransform as t } from "./util/case-insensitive-transform.mjs";
|
|
2
|
-
import { create as r } from "./util/create.mjs";
|
|
3
|
-
import { commaSeparated as u, spaceSeparated as e, boolean as l, number as n, booleanish as o, overloadedBoolean as a } from "./util/types.mjs";
|
|
4
|
-
const d = r({
|
|
5
|
-
attributes: {
|
|
6
|
-
acceptcharset: "accept-charset",
|
|
7
|
-
classname: "class",
|
|
8
|
-
htmlfor: "for",
|
|
9
|
-
httpequiv: "http-equiv"
|
|
10
|
-
},
|
|
11
|
-
mustUseProperty: ["checked", "multiple", "muted", "selected"],
|
|
12
|
-
properties: {
|
|
13
|
-
// Standard Properties.
|
|
14
|
-
abbr: null,
|
|
15
|
-
accept: u,
|
|
16
|
-
acceptCharset: e,
|
|
17
|
-
accessKey: e,
|
|
18
|
-
action: null,
|
|
19
|
-
allow: null,
|
|
20
|
-
allowFullScreen: l,
|
|
21
|
-
allowPaymentRequest: l,
|
|
22
|
-
allowUserMedia: l,
|
|
23
|
-
alt: null,
|
|
24
|
-
as: null,
|
|
25
|
-
async: l,
|
|
26
|
-
autoCapitalize: null,
|
|
27
|
-
autoComplete: e,
|
|
28
|
-
autoFocus: l,
|
|
29
|
-
autoPlay: l,
|
|
30
|
-
blocking: e,
|
|
31
|
-
capture: null,
|
|
32
|
-
charSet: null,
|
|
33
|
-
checked: l,
|
|
34
|
-
cite: null,
|
|
35
|
-
className: e,
|
|
36
|
-
cols: n,
|
|
37
|
-
colSpan: null,
|
|
38
|
-
content: null,
|
|
39
|
-
contentEditable: o,
|
|
40
|
-
controls: l,
|
|
41
|
-
controlsList: e,
|
|
42
|
-
coords: n | u,
|
|
43
|
-
crossOrigin: null,
|
|
44
|
-
data: null,
|
|
45
|
-
dateTime: null,
|
|
46
|
-
decoding: null,
|
|
47
|
-
default: l,
|
|
48
|
-
defer: l,
|
|
49
|
-
dir: null,
|
|
50
|
-
dirName: null,
|
|
51
|
-
disabled: l,
|
|
52
|
-
download: a,
|
|
53
|
-
draggable: o,
|
|
54
|
-
encType: null,
|
|
55
|
-
enterKeyHint: null,
|
|
56
|
-
fetchPriority: null,
|
|
57
|
-
form: null,
|
|
58
|
-
formAction: null,
|
|
59
|
-
formEncType: null,
|
|
60
|
-
formMethod: null,
|
|
61
|
-
formNoValidate: l,
|
|
62
|
-
formTarget: null,
|
|
63
|
-
headers: e,
|
|
64
|
-
height: n,
|
|
65
|
-
hidden: a,
|
|
66
|
-
high: n,
|
|
67
|
-
href: null,
|
|
68
|
-
hrefLang: null,
|
|
69
|
-
htmlFor: e,
|
|
70
|
-
httpEquiv: e,
|
|
71
|
-
id: null,
|
|
72
|
-
imageSizes: null,
|
|
73
|
-
imageSrcSet: null,
|
|
74
|
-
inert: l,
|
|
75
|
-
inputMode: null,
|
|
76
|
-
integrity: null,
|
|
77
|
-
is: null,
|
|
78
|
-
isMap: l,
|
|
79
|
-
itemId: null,
|
|
80
|
-
itemProp: e,
|
|
81
|
-
itemRef: e,
|
|
82
|
-
itemScope: l,
|
|
83
|
-
itemType: e,
|
|
84
|
-
kind: null,
|
|
85
|
-
label: null,
|
|
86
|
-
lang: null,
|
|
87
|
-
language: null,
|
|
88
|
-
list: null,
|
|
89
|
-
loading: null,
|
|
90
|
-
loop: l,
|
|
91
|
-
low: n,
|
|
92
|
-
manifest: null,
|
|
93
|
-
max: null,
|
|
94
|
-
maxLength: n,
|
|
95
|
-
media: null,
|
|
96
|
-
method: null,
|
|
97
|
-
min: null,
|
|
98
|
-
minLength: n,
|
|
99
|
-
multiple: l,
|
|
100
|
-
muted: l,
|
|
101
|
-
name: null,
|
|
102
|
-
nonce: null,
|
|
103
|
-
noModule: l,
|
|
104
|
-
noValidate: l,
|
|
105
|
-
onAbort: null,
|
|
106
|
-
onAfterPrint: null,
|
|
107
|
-
onAuxClick: null,
|
|
108
|
-
onBeforeMatch: null,
|
|
109
|
-
onBeforePrint: null,
|
|
110
|
-
onBeforeToggle: null,
|
|
111
|
-
onBeforeUnload: null,
|
|
112
|
-
onBlur: null,
|
|
113
|
-
onCancel: null,
|
|
114
|
-
onCanPlay: null,
|
|
115
|
-
onCanPlayThrough: null,
|
|
116
|
-
onChange: null,
|
|
117
|
-
onClick: null,
|
|
118
|
-
onClose: null,
|
|
119
|
-
onContextLost: null,
|
|
120
|
-
onContextMenu: null,
|
|
121
|
-
onContextRestored: null,
|
|
122
|
-
onCopy: null,
|
|
123
|
-
onCueChange: null,
|
|
124
|
-
onCut: null,
|
|
125
|
-
onDblClick: null,
|
|
126
|
-
onDrag: null,
|
|
127
|
-
onDragEnd: null,
|
|
128
|
-
onDragEnter: null,
|
|
129
|
-
onDragExit: null,
|
|
130
|
-
onDragLeave: null,
|
|
131
|
-
onDragOver: null,
|
|
132
|
-
onDragStart: null,
|
|
133
|
-
onDrop: null,
|
|
134
|
-
onDurationChange: null,
|
|
135
|
-
onEmptied: null,
|
|
136
|
-
onEnded: null,
|
|
137
|
-
onError: null,
|
|
138
|
-
onFocus: null,
|
|
139
|
-
onFormData: null,
|
|
140
|
-
onHashChange: null,
|
|
141
|
-
onInput: null,
|
|
142
|
-
onInvalid: null,
|
|
143
|
-
onKeyDown: null,
|
|
144
|
-
onKeyPress: null,
|
|
145
|
-
onKeyUp: null,
|
|
146
|
-
onLanguageChange: null,
|
|
147
|
-
onLoad: null,
|
|
148
|
-
onLoadedData: null,
|
|
149
|
-
onLoadedMetadata: null,
|
|
150
|
-
onLoadEnd: null,
|
|
151
|
-
onLoadStart: null,
|
|
152
|
-
onMessage: null,
|
|
153
|
-
onMessageError: null,
|
|
154
|
-
onMouseDown: null,
|
|
155
|
-
onMouseEnter: null,
|
|
156
|
-
onMouseLeave: null,
|
|
157
|
-
onMouseMove: null,
|
|
158
|
-
onMouseOut: null,
|
|
159
|
-
onMouseOver: null,
|
|
160
|
-
onMouseUp: null,
|
|
161
|
-
onOffline: null,
|
|
162
|
-
onOnline: null,
|
|
163
|
-
onPageHide: null,
|
|
164
|
-
onPageShow: null,
|
|
165
|
-
onPaste: null,
|
|
166
|
-
onPause: null,
|
|
167
|
-
onPlay: null,
|
|
168
|
-
onPlaying: null,
|
|
169
|
-
onPopState: null,
|
|
170
|
-
onProgress: null,
|
|
171
|
-
onRateChange: null,
|
|
172
|
-
onRejectionHandled: null,
|
|
173
|
-
onReset: null,
|
|
174
|
-
onResize: null,
|
|
175
|
-
onScroll: null,
|
|
176
|
-
onScrollEnd: null,
|
|
177
|
-
onSecurityPolicyViolation: null,
|
|
178
|
-
onSeeked: null,
|
|
179
|
-
onSeeking: null,
|
|
180
|
-
onSelect: null,
|
|
181
|
-
onSlotChange: null,
|
|
182
|
-
onStalled: null,
|
|
183
|
-
onStorage: null,
|
|
184
|
-
onSubmit: null,
|
|
185
|
-
onSuspend: null,
|
|
186
|
-
onTimeUpdate: null,
|
|
187
|
-
onToggle: null,
|
|
188
|
-
onUnhandledRejection: null,
|
|
189
|
-
onUnload: null,
|
|
190
|
-
onVolumeChange: null,
|
|
191
|
-
onWaiting: null,
|
|
192
|
-
onWheel: null,
|
|
193
|
-
open: l,
|
|
194
|
-
optimum: n,
|
|
195
|
-
pattern: null,
|
|
196
|
-
ping: e,
|
|
197
|
-
placeholder: null,
|
|
198
|
-
playsInline: l,
|
|
199
|
-
popover: null,
|
|
200
|
-
popoverTarget: null,
|
|
201
|
-
popoverTargetAction: null,
|
|
202
|
-
poster: null,
|
|
203
|
-
preload: null,
|
|
204
|
-
readOnly: l,
|
|
205
|
-
referrerPolicy: null,
|
|
206
|
-
rel: e,
|
|
207
|
-
required: l,
|
|
208
|
-
reversed: l,
|
|
209
|
-
rows: n,
|
|
210
|
-
rowSpan: n,
|
|
211
|
-
sandbox: e,
|
|
212
|
-
scope: null,
|
|
213
|
-
scoped: l,
|
|
214
|
-
seamless: l,
|
|
215
|
-
selected: l,
|
|
216
|
-
shadowRootClonable: l,
|
|
217
|
-
shadowRootDelegatesFocus: l,
|
|
218
|
-
shadowRootMode: null,
|
|
219
|
-
shape: null,
|
|
220
|
-
size: n,
|
|
221
|
-
sizes: null,
|
|
222
|
-
slot: null,
|
|
223
|
-
span: n,
|
|
224
|
-
spellCheck: o,
|
|
225
|
-
src: null,
|
|
226
|
-
srcDoc: null,
|
|
227
|
-
srcLang: null,
|
|
228
|
-
srcSet: null,
|
|
229
|
-
start: n,
|
|
230
|
-
step: null,
|
|
231
|
-
style: null,
|
|
232
|
-
tabIndex: n,
|
|
233
|
-
target: null,
|
|
234
|
-
title: null,
|
|
235
|
-
translate: null,
|
|
236
|
-
type: null,
|
|
237
|
-
typeMustMatch: l,
|
|
238
|
-
useMap: null,
|
|
239
|
-
value: o,
|
|
240
|
-
width: n,
|
|
241
|
-
wrap: null,
|
|
242
|
-
writingSuggestions: null,
|
|
243
|
-
// Legacy.
|
|
244
|
-
// See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
|
|
245
|
-
align: null,
|
|
246
|
-
// Several. Use CSS `text-align` instead,
|
|
247
|
-
aLink: null,
|
|
248
|
-
// `<body>`. Use CSS `a:active {color}` instead
|
|
249
|
-
archive: e,
|
|
250
|
-
// `<object>`. List of URIs to archives
|
|
251
|
-
axis: null,
|
|
252
|
-
// `<td>` and `<th>`. Use `scope` on `<th>`
|
|
253
|
-
background: null,
|
|
254
|
-
// `<body>`. Use CSS `background-image` instead
|
|
255
|
-
bgColor: null,
|
|
256
|
-
// `<body>` and table elements. Use CSS `background-color` instead
|
|
257
|
-
border: n,
|
|
258
|
-
// `<table>`. Use CSS `border-width` instead,
|
|
259
|
-
borderColor: null,
|
|
260
|
-
// `<table>`. Use CSS `border-color` instead,
|
|
261
|
-
bottomMargin: n,
|
|
262
|
-
// `<body>`
|
|
263
|
-
cellPadding: null,
|
|
264
|
-
// `<table>`
|
|
265
|
-
cellSpacing: null,
|
|
266
|
-
// `<table>`
|
|
267
|
-
char: null,
|
|
268
|
-
// Several table elements. When `align=char`, sets the character to align on
|
|
269
|
-
charOff: null,
|
|
270
|
-
// Several table elements. When `char`, offsets the alignment
|
|
271
|
-
classId: null,
|
|
272
|
-
// `<object>`
|
|
273
|
-
clear: null,
|
|
274
|
-
// `<br>`. Use CSS `clear` instead
|
|
275
|
-
code: null,
|
|
276
|
-
// `<object>`
|
|
277
|
-
codeBase: null,
|
|
278
|
-
// `<object>`
|
|
279
|
-
codeType: null,
|
|
280
|
-
// `<object>`
|
|
281
|
-
color: null,
|
|
282
|
-
// `<font>` and `<hr>`. Use CSS instead
|
|
283
|
-
compact: l,
|
|
284
|
-
// Lists. Use CSS to reduce space between items instead
|
|
285
|
-
declare: l,
|
|
286
|
-
// `<object>`
|
|
287
|
-
event: null,
|
|
288
|
-
// `<script>`
|
|
289
|
-
face: null,
|
|
290
|
-
// `<font>`. Use CSS instead
|
|
291
|
-
frame: null,
|
|
292
|
-
// `<table>`
|
|
293
|
-
frameBorder: null,
|
|
294
|
-
// `<iframe>`. Use CSS `border` instead
|
|
295
|
-
hSpace: n,
|
|
296
|
-
// `<img>` and `<object>`
|
|
297
|
-
leftMargin: n,
|
|
298
|
-
// `<body>`
|
|
299
|
-
link: null,
|
|
300
|
-
// `<body>`. Use CSS `a:link {color: *}` instead
|
|
301
|
-
longDesc: null,
|
|
302
|
-
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
|
303
|
-
lowSrc: null,
|
|
304
|
-
// `<img>`. Use a `<picture>`
|
|
305
|
-
marginHeight: n,
|
|
306
|
-
// `<body>`
|
|
307
|
-
marginWidth: n,
|
|
308
|
-
// `<body>`
|
|
309
|
-
noResize: l,
|
|
310
|
-
// `<frame>`
|
|
311
|
-
noHref: l,
|
|
312
|
-
// `<area>`. Use no href instead of an explicit `nohref`
|
|
313
|
-
noShade: l,
|
|
314
|
-
// `<hr>`. Use background-color and height instead of borders
|
|
315
|
-
noWrap: l,
|
|
316
|
-
// `<td>` and `<th>`
|
|
317
|
-
object: null,
|
|
318
|
-
// `<applet>`
|
|
319
|
-
profile: null,
|
|
320
|
-
// `<head>`
|
|
321
|
-
prompt: null,
|
|
322
|
-
// `<isindex>`
|
|
323
|
-
rev: null,
|
|
324
|
-
// `<link>`
|
|
325
|
-
rightMargin: n,
|
|
326
|
-
// `<body>`
|
|
327
|
-
rules: null,
|
|
328
|
-
// `<table>`
|
|
329
|
-
scheme: null,
|
|
330
|
-
// `<meta>`
|
|
331
|
-
scrolling: o,
|
|
332
|
-
// `<frame>`. Use overflow in the child context
|
|
333
|
-
standby: null,
|
|
334
|
-
// `<object>`
|
|
335
|
-
summary: null,
|
|
336
|
-
// `<table>`
|
|
337
|
-
text: null,
|
|
338
|
-
// `<body>`. Use CSS `color` instead
|
|
339
|
-
topMargin: n,
|
|
340
|
-
// `<body>`
|
|
341
|
-
valueType: null,
|
|
342
|
-
// `<param>`
|
|
343
|
-
version: null,
|
|
344
|
-
// `<html>`. Use a doctype.
|
|
345
|
-
vAlign: null,
|
|
346
|
-
// Several. Use CSS `vertical-align` instead
|
|
347
|
-
vLink: null,
|
|
348
|
-
// `<body>`. Use CSS `a:visited {color}` instead
|
|
349
|
-
vSpace: n,
|
|
350
|
-
// `<img>` and `<object>`
|
|
351
|
-
// Non-standard Properties.
|
|
352
|
-
allowTransparency: null,
|
|
353
|
-
autoCorrect: null,
|
|
354
|
-
autoSave: null,
|
|
355
|
-
disablePictureInPicture: l,
|
|
356
|
-
disableRemotePlayback: l,
|
|
357
|
-
prefix: null,
|
|
358
|
-
property: null,
|
|
359
|
-
results: n,
|
|
360
|
-
security: null,
|
|
361
|
-
unselectable: null
|
|
362
|
-
},
|
|
363
|
-
space: "html",
|
|
364
|
-
transform: t
|
|
365
|
-
});
|
|
366
|
-
export {
|
|
367
|
-
d as html
|
|
368
|
-
};
|