@glodon-aiot/agent-cli-ui 2.4.7 → 3.0.4
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/AgentClientUI.mjs +97 -110
- package/dist/es/Dialog/AgentChat/index.mjs +516 -467
- package/dist/es/Dialog/ConnectToNetwork/index.mjs +25 -24
- package/dist/es/Dialog/FileCard/index.mjs +48 -55
- package/dist/es/Dialog/FilePreview/index.mjs +35 -42
- package/dist/es/Dialog/HistoryItem/index.mjs +48 -53
- package/dist/es/Dialog/KnowledgeList/index.mjs +55 -48
- package/dist/es/Dialog/PromptManager/index.mjs +29 -36
- package/dist/es/Dialog/PromptSetting/index.mjs +53 -66
- package/dist/es/Dialog/SessionAction/index.mjs +92 -91
- package/dist/es/Dialog/SessionList/index.mjs +135 -121
- package/dist/es/Dialog/SessionListDrawer/index.mjs +8 -7
- package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +29 -36
- package/dist/es/Dialog/SessionRefer/index.mjs +29 -36
- package/dist/es/Dialog/SessionRelated/index.mjs +17 -14
- package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +125 -132
- package/dist/es/Dialog/index.mjs +125 -93
- package/dist/es/QuillEditor/index.mjs +91 -86
- package/dist/es/_virtual/index.mjs +2 -2
- package/dist/es/components/Markdown/Image/index.mjs +20 -20
- package/dist/es/components/Markdown/index.mjs +27 -22
- package/dist/es/constant.mjs +8 -5
- package/dist/es/index.mjs +178 -152
- package/dist/es/node_modules/classnames/index.mjs +1 -1
- package/dist/es/node_modules/comma-separated-tokens/index.mjs +13 -0
- package/dist/es/node_modules/devlop/lib/default.mjs +5 -0
- package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +93 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/create-h.mjs +126 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/index.mjs +8 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/index.mjs +12 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/aria.mjs +61 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/find.mjs +33 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/html.mjs +368 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/normalize.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/svg.mjs +566 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/create.mjs +14 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/defined-info.mjs +36 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/info.mjs +28 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/merge.mjs +10 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/schema.mjs +21 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xlink.mjs +19 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xml.mjs +15 -0
- package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
- package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
- package/dist/es/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
- package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
- package/dist/es/node_modules/katex/dist/katex.min.css.mjs +4 -0
- package/dist/es/node_modules/katex/dist/katex.mjs +11700 -0
- package/dist/es/node_modules/longest-streak/index.mjs +12 -0
- package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +76 -0
- package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +48 -0
- package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +15 -0
- package/dist/es/node_modules/micromark-factory-space/index.mjs +15 -0
- package/dist/es/node_modules/micromark-util-character/index.mjs +10 -0
- package/dist/es/node_modules/rehype-katex/lib/index.mjs +83 -0
- package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
- package/dist/es/node_modules/space-separated-tokens/index.mjs +7 -0
- package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +32 -0
- package/dist/es/node_modules/unist-util-is/lib/index.mjs +81 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +6 -0
- package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +56 -0
- package/dist/es/node_modules/web-namespaces/index.mjs +11 -0
- package/dist/es/utils/index.mjs +44 -27
- package/dist/lib/index.js +278 -138
- package/dist/src/Dialog/AgentChat/index.d.ts +4 -2
- package/dist/src/Dialog/ConnectToNetwork/index.d.ts +1 -0
- package/dist/src/Dialog/KnowledgeList/KnowledgeSelect/index.d.ts +1 -1
- package/dist/src/Dialog/KnowledgeList/index.d.ts +2 -3
- package/dist/src/Dialog/PromptSetting/index.d.ts +1 -0
- package/dist/src/Dialog/SessionAction/index.d.ts +2 -0
- package/dist/src/Dialog/SessionList/index.d.ts +5 -4
- package/dist/src/QuillEditor/index.d.ts +1 -0
- package/dist/src/components/Markdown/Text/index.d.ts +8 -0
- package/dist/src/components/MathJaxLoader/index.d.ts +7 -0
- package/dist/src/components/MathJaxRender/index.d.ts +6 -0
- package/dist/src/constant.d.ts +1 -1
- package/dist/src/contexts/MathJaxContext.d.ts +12 -0
- package/dist/src/index.d.ts +4 -1
- package/dist/src/types.d.ts +26 -6
- package/dist/src/utils/index.d.ts +15 -0
- package/package.json +18 -17
- package/dist/es/_virtual/index2.mjs +0 -4
- package/dist/es/_virtual/index3.mjs +0 -4
- package/dist/es/_virtual/index4.mjs +0 -4
- package/dist/es/_virtual/minio-zj.mjs +0 -4
- package/dist/es/node_modules/@glodon-aiot/minio/dist/minio-zj.mjs +0 -26485
- package/dist/es/node_modules/@socket.io/component-emitter/lib/esm/index.mjs +0 -54
- package/dist/es/node_modules/base64-js/index.mjs +0 -47
- package/dist/es/node_modules/buffer/index.mjs +0 -927
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/has-cors.mjs +0 -9
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseqs.mjs +0 -18
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/parseuri.mjs +0 -24
- package/dist/es/node_modules/engine.io-client/build/esm/contrib/yeast.mjs +0 -19
- package/dist/es/node_modules/engine.io-client/build/esm/globalThis.browser.mjs +0 -4
- package/dist/es/node_modules/engine.io-client/build/esm/socket.mjs +0 -317
- package/dist/es/node_modules/engine.io-client/build/esm/transport.mjs +0 -113
- package/dist/es/node_modules/engine.io-client/build/esm/transports/index.mjs +0 -11
- package/dist/es/node_modules/engine.io-client/build/esm/transports/polling.mjs +0 -273
- package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.mjs +0 -8
- package/dist/es/node_modules/engine.io-client/build/esm/transports/websocket.mjs +0 -87
- package/dist/es/node_modules/engine.io-client/build/esm/transports/webtransport.mjs +0 -52
- package/dist/es/node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.mjs +0 -21
- package/dist/es/node_modules/engine.io-client/build/esm/util.mjs +0 -23
- package/dist/es/node_modules/engine.io-parser/build/esm/commons.mjs +0 -21
- package/dist/es/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.mjs +0 -14
- package/dist/es/node_modules/engine.io-parser/build/esm/decodePacket.browser.mjs +0 -39
- package/dist/es/node_modules/engine.io-parser/build/esm/encodePacket.browser.mjs +0 -28
- package/dist/es/node_modules/engine.io-parser/build/esm/index.mjs +0 -105
- package/dist/es/node_modules/ieee754/index.mjs +0 -28
- package/dist/es/node_modules/js-base64/base64.mjs +0 -31
- package/dist/es/node_modules/socket.io-client/build/esm/contrib/backo2.mjs +0 -26
- package/dist/es/node_modules/socket.io-client/build/esm/index.mjs +0 -25
- package/dist/es/node_modules/socket.io-client/build/esm/manager.mjs +0 -242
- package/dist/es/node_modules/socket.io-client/build/esm/on.mjs +0 -8
- package/dist/es/node_modules/socket.io-client/build/esm/socket.mjs +0 -608
- package/dist/es/node_modules/socket.io-client/build/esm/url.mjs +0 -19
- package/dist/es/node_modules/socket.io-parser/build/esm/binary.mjs +0 -52
- package/dist/es/node_modules/socket.io-parser/build/esm/index.mjs +0 -203
- package/dist/es/node_modules/socket.io-parser/build/esm/is-binary.mjs +0 -26
- package/dist/es/packages/agent-cli-sdk/src/AgentSession.mjs +0 -243
- package/dist/es/packages/agent-cli-sdk/src/BotClient.mjs +0 -242
- package/dist/es/packages/agent-cli-sdk/src/Config.mjs +0 -34
- package/dist/es/packages/agent-cli-sdk/src/DialogSession.mjs +0 -281
- package/dist/es/packages/agent-cli-sdk/src/EventBus.mjs +0 -64
- package/dist/es/packages/agent-cli-sdk/src/Logger.mjs +0 -31
- package/dist/es/packages/agent-cli-sdk/src/PayloadTypes.mjs +0 -4
- package/dist/es/packages/agent-cli-sdk/src/Session.mjs +0 -527
- package/dist/es/packages/agent-cli-sdk/src/api/fetchEventSource/fetch.mjs +0 -112
- package/dist/es/packages/agent-cli-sdk/src/api/fetchEventSource/parse.mjs +0 -97
- package/dist/es/packages/agent-cli-sdk/src/api/index.mjs +0 -48
- package/dist/es/packages/agent-cli-sdk/src/utils.mjs +0 -11
- package/dist/es/packages/apis/dist/es/aecpilot/cosntant.mjs +0 -5
- package/dist/es/packages/apis/dist/es/aecpilot/model.mjs +0 -9
- package/dist/es/packages/apis/dist/es/aecpilotui/index.mjs +0 -8
- package/dist/es/packages/apis/dist/es/agentcliui/index.mjs +0 -414
- package/dist/es/packages/apis/dist/es/base/index.mjs +0 -154
- package/dist/es/packages/apis/dist/es/cvforce/index.mjs +0 -431
- package/dist/es/packages/apis/dist/es/cvforce/model.mjs +0 -6
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +0 -6
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/rng.mjs +0 -10
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +0 -9
- package/dist/es/packages/apis/dist/es/node_modules/uuid/dist/esm-browser/v4.mjs +0 -19
- package/dist/es/packages/apis/dist/es/utils/fetchEventSource/fetch.mjs +0 -106
- package/dist/es/packages/apis/dist/es/utils/fetchEventSource/parse.mjs +0 -97
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as u } from "../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
-
import { __module as i } from "../../_virtual/
|
|
2
|
+
import { __module as i } from "../../_virtual/index.mjs";
|
|
3
3
|
/*!
|
|
4
4
|
Copyright (c) 2018 Jed Watson.
|
|
5
5
|
Licensed under the MIT License (MIT), see
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function o(l) {
|
|
2
|
+
const s = [], e = String(l || "");
|
|
3
|
+
let t = e.indexOf(","), n = 0, i = !1;
|
|
4
|
+
for (; !i; ) {
|
|
5
|
+
t === -1 && (t = e.length, i = !0);
|
|
6
|
+
const r = e.slice(n, t).trim();
|
|
7
|
+
(r || !i) && s.push(r), n = t + 1, t = e.indexOf(",", n);
|
|
8
|
+
}
|
|
9
|
+
return s;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
o as parse
|
|
13
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { webNamespaces as m } from "../../web-namespaces/index.mjs";
|
|
2
|
+
import { s as l, h as N } from "../node_modules/hastscript/lib/index.mjs";
|
|
3
|
+
function v(t, e) {
|
|
4
|
+
return i(t, e || {}) || {
|
|
5
|
+
type: "root",
|
|
6
|
+
children: []
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function i(t, e) {
|
|
10
|
+
const n = h(t, e);
|
|
11
|
+
return n && e.afterTransform && e.afterTransform(t, n), n;
|
|
12
|
+
}
|
|
13
|
+
function h(t, e) {
|
|
14
|
+
switch (t.nodeType) {
|
|
15
|
+
case 1:
|
|
16
|
+
return x(
|
|
17
|
+
/** @type {Element} */
|
|
18
|
+
t,
|
|
19
|
+
e
|
|
20
|
+
);
|
|
21
|
+
case 3:
|
|
22
|
+
return g(
|
|
23
|
+
/** @type {Text} */
|
|
24
|
+
t
|
|
25
|
+
);
|
|
26
|
+
case 8:
|
|
27
|
+
return y(
|
|
28
|
+
/** @type {Comment} */
|
|
29
|
+
t
|
|
30
|
+
);
|
|
31
|
+
case 9:
|
|
32
|
+
return d(
|
|
33
|
+
/** @type {Document} */
|
|
34
|
+
t,
|
|
35
|
+
e
|
|
36
|
+
);
|
|
37
|
+
case 10:
|
|
38
|
+
return p();
|
|
39
|
+
case 11:
|
|
40
|
+
return d(
|
|
41
|
+
/** @type {DocumentFragment} */
|
|
42
|
+
t,
|
|
43
|
+
e
|
|
44
|
+
);
|
|
45
|
+
default:
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function d(t, e) {
|
|
50
|
+
return {
|
|
51
|
+
type: "root",
|
|
52
|
+
children: f(t, e)
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function p() {
|
|
56
|
+
return {
|
|
57
|
+
type: "doctype"
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function g(t) {
|
|
61
|
+
return {
|
|
62
|
+
type: "text",
|
|
63
|
+
value: t.nodeValue || ""
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function y(t) {
|
|
67
|
+
return {
|
|
68
|
+
type: "comment",
|
|
69
|
+
value: t.nodeValue || ""
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function x(t, e) {
|
|
73
|
+
const n = t.namespaceURI, o = n === m.svg ? l : N, r = n === m.html ? t.tagName.toLowerCase() : t.tagName, c = (
|
|
74
|
+
// @ts-expect-error: DOM types are wrong, content can exist.
|
|
75
|
+
n === m.html && r === "template" ? t.content : t
|
|
76
|
+
), s = t.getAttributeNames(), a = {};
|
|
77
|
+
let u = -1;
|
|
78
|
+
for (; ++u < s.length; )
|
|
79
|
+
a[s[u]] = t.getAttribute(s[u]) || "";
|
|
80
|
+
return o(r, a, f(c, e));
|
|
81
|
+
}
|
|
82
|
+
function f(t, e) {
|
|
83
|
+
const n = t.childNodes, o = [];
|
|
84
|
+
let r = -1;
|
|
85
|
+
for (; ++r < n.length; ) {
|
|
86
|
+
const c = i(n[r], e);
|
|
87
|
+
c !== void 0 && o.push(c);
|
|
88
|
+
}
|
|
89
|
+
return o;
|
|
90
|
+
}
|
|
91
|
+
export {
|
|
92
|
+
v as fromDom
|
|
93
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { parse as d } from "../../../../comma-separated-tokens/index.mjs";
|
|
2
|
+
import { parse as m } from "../../../../space-separated-tokens/index.mjs";
|
|
3
|
+
import { parseSelector as A } from "../../../../hast-util-parse-selector/lib/index.mjs";
|
|
4
|
+
import { find as N } from "../../property-information/lib/find.mjs";
|
|
5
|
+
import { normalize as a } from "../../property-information/lib/normalize.mjs";
|
|
6
|
+
function L(t, r, n) {
|
|
7
|
+
const e = n ? S(n) : void 0;
|
|
8
|
+
function i(o, s, ...p) {
|
|
9
|
+
let f;
|
|
10
|
+
if (o == null) {
|
|
11
|
+
f = {
|
|
12
|
+
type: "root",
|
|
13
|
+
children: []
|
|
14
|
+
};
|
|
15
|
+
const c = (
|
|
16
|
+
/** @type {Child} */
|
|
17
|
+
s
|
|
18
|
+
);
|
|
19
|
+
p.unshift(c);
|
|
20
|
+
} else {
|
|
21
|
+
f = A(o, r);
|
|
22
|
+
const c = f.tagName.toLowerCase(), l = e ? e.get(c) : void 0;
|
|
23
|
+
if (f.tagName = l || c, g(s))
|
|
24
|
+
p.unshift(s);
|
|
25
|
+
else
|
|
26
|
+
for (const [h, b] of Object.entries(s))
|
|
27
|
+
j(t, f.properties, h, b);
|
|
28
|
+
}
|
|
29
|
+
for (const c of p)
|
|
30
|
+
y(f.children, c);
|
|
31
|
+
return f.type === "element" && f.tagName === "template" && (f.content = {
|
|
32
|
+
type: "root",
|
|
33
|
+
children: f.children
|
|
34
|
+
}, f.children = []), f;
|
|
35
|
+
}
|
|
36
|
+
return i;
|
|
37
|
+
}
|
|
38
|
+
function g(t) {
|
|
39
|
+
if (t === null || typeof t != "object" || Array.isArray(t))
|
|
40
|
+
return !0;
|
|
41
|
+
if (typeof t.type != "string")
|
|
42
|
+
return !1;
|
|
43
|
+
const r = (
|
|
44
|
+
/** @type {Record<string, unknown>} */
|
|
45
|
+
t
|
|
46
|
+
), n = Object.keys(t);
|
|
47
|
+
for (const e of n) {
|
|
48
|
+
const i = r[e];
|
|
49
|
+
if (i && typeof i == "object") {
|
|
50
|
+
if (!Array.isArray(i))
|
|
51
|
+
return !0;
|
|
52
|
+
const o = (
|
|
53
|
+
/** @type {ReadonlyArray<unknown>} */
|
|
54
|
+
i
|
|
55
|
+
);
|
|
56
|
+
for (const s of o)
|
|
57
|
+
if (typeof s != "number" && typeof s != "string")
|
|
58
|
+
return !0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return !!("children" in t && Array.isArray(t.children));
|
|
62
|
+
}
|
|
63
|
+
function j(t, r, n, e) {
|
|
64
|
+
const i = N(t, n);
|
|
65
|
+
let o;
|
|
66
|
+
if (e != null) {
|
|
67
|
+
if (typeof e == "number") {
|
|
68
|
+
if (Number.isNaN(e))
|
|
69
|
+
return;
|
|
70
|
+
o = e;
|
|
71
|
+
} else
|
|
72
|
+
typeof e == "boolean" ? o = e : typeof e == "string" ? i.spaceSeparated ? o = m(e) : i.commaSeparated ? o = d(e) : i.commaOrSpaceSeparated ? o = m(d(e).join(" ")) : o = u(i, i.property, e) : Array.isArray(e) ? o = [...e] : o = i.property === "style" ? w(e) : String(e);
|
|
73
|
+
if (Array.isArray(o)) {
|
|
74
|
+
const s = [];
|
|
75
|
+
for (const p of o)
|
|
76
|
+
s.push(
|
|
77
|
+
/** @type {number | string} */
|
|
78
|
+
u(i, i.property, p)
|
|
79
|
+
);
|
|
80
|
+
o = s;
|
|
81
|
+
}
|
|
82
|
+
i.property === "className" && Array.isArray(r.className) && (o = r.className.concat(
|
|
83
|
+
/** @type {Array<number | string> | number | string} */
|
|
84
|
+
o
|
|
85
|
+
)), r[i.property] = o;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function y(t, r) {
|
|
89
|
+
if (r != null)
|
|
90
|
+
if (typeof r == "number" || typeof r == "string")
|
|
91
|
+
t.push({
|
|
92
|
+
type: "text",
|
|
93
|
+
value: String(r)
|
|
94
|
+
});
|
|
95
|
+
else if (Array.isArray(r))
|
|
96
|
+
for (const n of r)
|
|
97
|
+
y(t, n);
|
|
98
|
+
else if (typeof r == "object" && "type" in r)
|
|
99
|
+
r.type === "root" ? y(t, r.children) : t.push(r);
|
|
100
|
+
else
|
|
101
|
+
throw new Error("Expected node, nodes, or string, got `" + r + "`");
|
|
102
|
+
}
|
|
103
|
+
function u(t, r, n) {
|
|
104
|
+
if (typeof n == "string") {
|
|
105
|
+
if (t.number && n && !Number.isNaN(Number(n)))
|
|
106
|
+
return Number(n);
|
|
107
|
+
if ((t.boolean || t.overloadedBoolean) && (n === "" || a(n) === a(r)))
|
|
108
|
+
return !0;
|
|
109
|
+
}
|
|
110
|
+
return n;
|
|
111
|
+
}
|
|
112
|
+
function w(t) {
|
|
113
|
+
const r = [];
|
|
114
|
+
for (const [n, e] of Object.entries(t))
|
|
115
|
+
r.push([n, e].join(": "));
|
|
116
|
+
return r.join("; ");
|
|
117
|
+
}
|
|
118
|
+
function S(t) {
|
|
119
|
+
const r = /* @__PURE__ */ new Map();
|
|
120
|
+
for (const n of t)
|
|
121
|
+
r.set(n.toLowerCase(), n);
|
|
122
|
+
return r;
|
|
123
|
+
}
|
|
124
|
+
export {
|
|
125
|
+
L as createH
|
|
126
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { svg as t, html as m } from "../../property-information/index.mjs";
|
|
2
|
+
import { createH as o } from "./create-h.mjs";
|
|
3
|
+
import { svgCaseSensitiveTagNames as r } from "./svg-case-sensitive-tag-names.mjs";
|
|
4
|
+
const a = o(m, "div"), g = o(t, "g", r);
|
|
5
|
+
export {
|
|
6
|
+
a as h,
|
|
7
|
+
g as s
|
|
8
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e = ["altGlyph", "altGlyphDef", "altGlyphItem", "animateColor", "animateMotion", "animateTransform", "clipPath", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "foreignObject", "glyphRef", "linearGradient", "radialGradient", "solidColor", "textArea", "textPath"];
|
|
2
|
+
export {
|
|
3
|
+
e as svgCaseSensitiveTagNames
|
|
4
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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-dom/node_modules/property-information/lib/aria.mjs
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
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-dom/node_modules/property-information/lib/find.mjs
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
};
|