impact-nova 3.0.0-alpha.0 → 3.0.0-alpha.2
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/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/utilities.js +4 -0
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +5 -0
- package/dist/components/data/ag-grid-react/cell-renderers/cell-renderer-utils.js +12 -10
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.d.ts +8 -0
- package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +56 -42
- package/dist/components/data/ag-grid-react/cell-renderers/types.d.ts +4 -0
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +115 -111
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +17 -17
- package/dist/components/forms/select/components/SelectTriggerValue.js +6 -6
- package/dist/impact-nova-components.css +85 -0
- package/dist/impact-nova.css +1 -1
- package/dist/lib/overflow/is-text-overflowing.js +24 -6
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
- package/dist/node_modules/bail/index.js +7 -0
- package/dist/node_modules/ccount/index.js +12 -0
- package/dist/node_modules/comma-separated-tokens/index.js +9 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
- package/dist/node_modules/devlop/lib/default.js +8 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
- package/dist/node_modules/extend/index.js +43 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
- package/dist/node_modules/is-plain-obj/index.js +9 -0
- package/dist/node_modules/longest-streak/index.js +12 -0
- package/dist/node_modules/markdown-table/index.js +75 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
- package/dist/node_modules/micromark/lib/constructs.js +85 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
- package/dist/node_modules/micromark/lib/parse.js +32 -0
- package/dist/node_modules/micromark/lib/postprocess.js +9 -0
- package/dist/node_modules/micromark/lib/preprocess.js +44 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
- package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
- package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
- package/dist/node_modules/micromark-factory-destination/index.js +31 -0
- package/dist/node_modules/micromark-factory-label/index.js +28 -0
- package/dist/node_modules/micromark-factory-space/index.js +29 -0
- package/dist/node_modules/micromark-factory-title/index.js +26 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
- package/dist/node_modules/micromark-util-character/index.js +39 -0
- package/dist/node_modules/micromark-util-chunked/index.js +16 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
- package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
- package/dist/node_modules/property-information/index.js +12 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
- package/dist/node_modules/property-information/lib/html.js +378 -0
- package/dist/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/property-information/lib/svg.js +568 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/property-information/lib/util/create.js +19 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
- package/dist/node_modules/property-information/lib/util/info.js +28 -0
- package/dist/node_modules/property-information/lib/util/merge.js +10 -0
- package/dist/node_modules/property-information/lib/util/schema.js +21 -0
- package/dist/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/react-markdown/lib/index.js +102 -0
- package/dist/node_modules/remark-gfm/lib/index.js +13 -0
- package/dist/node_modules/remark-parse/lib/index.js +19 -0
- package/dist/node_modules/remark-rehype/lib/index.js +18 -0
- package/dist/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/node_modules/style-to-js/cjs/index.js +20 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
- package/dist/node_modules/style-to-object/cjs/index.js +28 -0
- package/dist/node_modules/trim-lines/index.js +28 -0
- package/dist/node_modules/trough/lib/index.js +60 -0
- package/dist/node_modules/unified/lib/callable-instance.js +25 -0
- package/dist/node_modules/unified/lib/index.js +529 -0
- package/dist/node_modules/unist-util-is/lib/index.js +91 -0
- package/dist/node_modules/unist-util-position/lib/index.js +23 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
- package/dist/node_modules/vfile/lib/index.js +406 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
- package/dist/node_modules/vfile-message/lib/index.js +91 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { create as n } from "./util/create.js";
|
|
2
|
+
const r = n({
|
|
3
|
+
properties: {
|
|
4
|
+
xLinkActuate: null,
|
|
5
|
+
xLinkArcRole: null,
|
|
6
|
+
xLinkHref: null,
|
|
7
|
+
xLinkRole: null,
|
|
8
|
+
xLinkShow: null,
|
|
9
|
+
xLinkTitle: null,
|
|
10
|
+
xLinkType: null
|
|
11
|
+
},
|
|
12
|
+
space: "xlink",
|
|
13
|
+
transform(e, l) {
|
|
14
|
+
return "xlink:" + l.slice(5).toLowerCase();
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
r as xlink
|
|
19
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { create as n } from "./util/create.js";
|
|
2
|
+
import { caseInsensitiveTransform as s } from "./util/case-insensitive-transform.js";
|
|
3
|
+
const m = n({
|
|
4
|
+
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
5
|
+
properties: { xmlnsXLink: null, xmlns: null },
|
|
6
|
+
space: "xmlns",
|
|
7
|
+
transform: s
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
m as xmlns
|
|
11
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { unreachable as k } from "../../devlop/lib/default.js";
|
|
2
|
+
import { jsxs as b, jsx as O, Fragment as P } from "react/jsx-runtime";
|
|
3
|
+
import "react";
|
|
4
|
+
import { unified as v } from "../../unified/lib/index.js";
|
|
5
|
+
import E from "../../remark-parse/lib/index.js";
|
|
6
|
+
import T from "../../remark-rehype/lib/index.js";
|
|
7
|
+
import { VFile as x } from "../../vfile/lib/index.js";
|
|
8
|
+
import { visit as N } from "../../unist-util-visit/lib/index.js";
|
|
9
|
+
import { toJsxRuntime as R } from "../../hast-util-to-jsx-runtime/lib/index.js";
|
|
10
|
+
import { urlAttributes as a } from "../../html-url-attributes/lib/index.js";
|
|
11
|
+
const j = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", f = [], u = { allowDangerousHtml: !0 }, H = /^(https?|ircs?|mailto|xmpp)$/i, S = [
|
|
12
|
+
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
13
|
+
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
14
|
+
{
|
|
15
|
+
from: "allowNode",
|
|
16
|
+
id: "replace-allownode-allowedtypes-and-disallowedtypes",
|
|
17
|
+
to: "allowElement"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
from: "allowedTypes",
|
|
21
|
+
id: "replace-allownode-allowedtypes-and-disallowedtypes",
|
|
22
|
+
to: "allowedElements"
|
|
23
|
+
},
|
|
24
|
+
{ from: "className", id: "remove-classname" },
|
|
25
|
+
{
|
|
26
|
+
from: "disallowedTypes",
|
|
27
|
+
id: "replace-allownode-allowedtypes-and-disallowedtypes",
|
|
28
|
+
to: "disallowedElements"
|
|
29
|
+
},
|
|
30
|
+
{ from: "escapeHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
31
|
+
{ from: "includeElementIndex", id: "#remove-includeelementindex" },
|
|
32
|
+
{
|
|
33
|
+
from: "includeNodeIndex",
|
|
34
|
+
id: "change-includenodeindex-to-includeelementindex"
|
|
35
|
+
},
|
|
36
|
+
{ from: "linkTarget", id: "remove-linktarget" },
|
|
37
|
+
{ from: "plugins", id: "change-plugins-to-remarkplugins", to: "remarkPlugins" },
|
|
38
|
+
{ from: "rawSourcePos", id: "#remove-rawsourcepos" },
|
|
39
|
+
{ from: "renderers", id: "change-renderers-to-components", to: "components" },
|
|
40
|
+
{ from: "source", id: "change-source-to-children", to: "children" },
|
|
41
|
+
{ from: "sourcePos", id: "#remove-sourcepos" },
|
|
42
|
+
{ from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
|
|
43
|
+
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
44
|
+
];
|
|
45
|
+
function C(r) {
|
|
46
|
+
const e = D(r), t = I(r);
|
|
47
|
+
return U(e.runSync(e.parse(t), t), r);
|
|
48
|
+
}
|
|
49
|
+
function D(r) {
|
|
50
|
+
const e = r.rehypePlugins || f, t = r.remarkPlugins || f, n = r.remarkRehypeOptions ? { ...r.remarkRehypeOptions, ...u } : u;
|
|
51
|
+
return v().use(E).use(t).use(T, n).use(e);
|
|
52
|
+
}
|
|
53
|
+
function I(r) {
|
|
54
|
+
const e = r.children || "", t = new x();
|
|
55
|
+
return typeof e == "string" && (t.value = e), t;
|
|
56
|
+
}
|
|
57
|
+
function U(r, e) {
|
|
58
|
+
const t = e.allowedElements, n = e.allowElement, i = e.components, c = e.disallowedElements, p = e.skipHtml, w = e.unwrapDisallowed, g = e.urlTransform || F;
|
|
59
|
+
for (const o of S)
|
|
60
|
+
Object.hasOwn(e, o.from) && k(
|
|
61
|
+
"Unexpected `" + o.from + "` prop, " + (o.to ? "use `" + o.to + "` instead" : "remove it") + " (see <" + j + "#" + o.id + "> for more info)"
|
|
62
|
+
);
|
|
63
|
+
return N(r, h), R(r, {
|
|
64
|
+
Fragment: P,
|
|
65
|
+
components: i,
|
|
66
|
+
ignoreInvalidStyle: !0,
|
|
67
|
+
jsx: O,
|
|
68
|
+
jsxs: b,
|
|
69
|
+
passKeys: !0,
|
|
70
|
+
passNode: !0
|
|
71
|
+
});
|
|
72
|
+
function h(o, l, m) {
|
|
73
|
+
if (o.type === "raw" && m && typeof l == "number")
|
|
74
|
+
return p ? m.children.splice(l, 1) : m.children[l] = { type: "text", value: o.value }, l;
|
|
75
|
+
if (o.type === "element") {
|
|
76
|
+
let s;
|
|
77
|
+
for (s in a)
|
|
78
|
+
if (Object.hasOwn(a, s) && Object.hasOwn(o.properties, s)) {
|
|
79
|
+
const y = o.properties[s], d = a[s];
|
|
80
|
+
(d === null || d.includes(o.tagName)) && (o.properties[s] = g(String(y || ""), s, o));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (o.type === "element") {
|
|
84
|
+
let s = t ? !t.includes(o.tagName) : c ? c.includes(o.tagName) : !1;
|
|
85
|
+
if (!s && n && typeof l == "number" && (s = !n(o, l, m)), s && m && typeof l == "number")
|
|
86
|
+
return w && o.children ? m.children.splice(l, 1, ...o.children) : m.children.splice(l, 1), l;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function F(r) {
|
|
91
|
+
const e = r.indexOf(":"), t = r.indexOf("?"), n = r.indexOf("#"), i = r.indexOf("/");
|
|
92
|
+
return (
|
|
93
|
+
// If there is no protocol, it’s relative.
|
|
94
|
+
e === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
|
|
95
|
+
i !== -1 && e > i || t !== -1 && e > t || n !== -1 && e > n || // It is a protocol, it should be allowed.
|
|
96
|
+
H.test(r.slice(0, e)) ? r : ""
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
export {
|
|
100
|
+
C as Markdown,
|
|
101
|
+
F as defaultUrlTransform
|
|
102
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { gfm as i } from "../../micromark-extension-gfm/index.js";
|
|
2
|
+
import { gfmFromMarkdown as e, gfmToMarkdown as f } from "../../mdast-util-gfm/lib/index.js";
|
|
3
|
+
const k = {};
|
|
4
|
+
function x(s) {
|
|
5
|
+
const t = (
|
|
6
|
+
/** @type {Processor<Root>} */
|
|
7
|
+
this
|
|
8
|
+
), n = s || k, o = t.data(), r = o.micromarkExtensions || (o.micromarkExtensions = []), m = o.fromMarkdownExtensions || (o.fromMarkdownExtensions = []), a = o.toMarkdownExtensions || (o.toMarkdownExtensions = []);
|
|
9
|
+
r.push(i(n)), m.push(e()), a.push(f(n));
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
x as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { fromMarkdown as a } from "../../mdast-util-from-markdown/lib/index.js";
|
|
2
|
+
function e(s) {
|
|
3
|
+
const r = this;
|
|
4
|
+
r.parser = t;
|
|
5
|
+
function t(n) {
|
|
6
|
+
return a(n, {
|
|
7
|
+
...r.data("settings"),
|
|
8
|
+
...s,
|
|
9
|
+
// Note: these options are not in the readme.
|
|
10
|
+
// The goal is for them to be set by plugins on `data` instead of being
|
|
11
|
+
// passed by users.
|
|
12
|
+
extensions: r.data("micromarkExtensions") || [],
|
|
13
|
+
mdastExtensions: r.data("fromMarkdownExtensions") || []
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
e as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { toHast as e } from "../../mdast-util-to-hast/lib/index.js";
|
|
2
|
+
function f(r, t) {
|
|
3
|
+
return r && "run" in r ? async function(n, u) {
|
|
4
|
+
const a = (
|
|
5
|
+
/** @type {HastRoot} */
|
|
6
|
+
e(n, { file: u, ...t })
|
|
7
|
+
);
|
|
8
|
+
await r.run(a, u);
|
|
9
|
+
} : function(n, u) {
|
|
10
|
+
return (
|
|
11
|
+
/** @type {HastRoot} */
|
|
12
|
+
e(n, { file: u, ...r || t })
|
|
13
|
+
);
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
f as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __require as l } from "../../style-to-object/cjs/index.js";
|
|
2
|
+
import { __require as c } from "./utilities.js";
|
|
3
|
+
var e, _;
|
|
4
|
+
function p() {
|
|
5
|
+
if (_) return e;
|
|
6
|
+
_ = 1;
|
|
7
|
+
var f = e && e.__importDefault || function(r) {
|
|
8
|
+
return r && r.__esModule ? r : { default: r };
|
|
9
|
+
}, n = f(l()), o = c();
|
|
10
|
+
function t(r, s) {
|
|
11
|
+
var i = {};
|
|
12
|
+
return !r || typeof r != "string" || (0, n.default)(r, function(u, a) {
|
|
13
|
+
u && a && (i[(0, o.camelCase)(u, s)] = a);
|
|
14
|
+
}), i;
|
|
15
|
+
}
|
|
16
|
+
return t.default = t, e = t, e;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
p as __require
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __exports as i } from "../../../_virtual/utilities.js";
|
|
2
|
+
var r;
|
|
3
|
+
function R() {
|
|
4
|
+
if (r) return i;
|
|
5
|
+
r = 1, Object.defineProperty(i, "__esModule", { value: !0 }), i.camelCase = void 0;
|
|
6
|
+
var u = /^--[a-zA-Z0-9_-]+$/, c = /-([a-z])/g, n = /^[^-]+$/, s = /^-(webkit|moz|ms|o|khtml)-/, E = /^-(ms)-/, _ = function(e) {
|
|
7
|
+
return !e || n.test(e) || u.test(e);
|
|
8
|
+
}, l = function(e, a) {
|
|
9
|
+
return a.toUpperCase();
|
|
10
|
+
}, t = function(e, a) {
|
|
11
|
+
return "".concat(a, "-");
|
|
12
|
+
}, m = function(e, a) {
|
|
13
|
+
return a === void 0 && (a = {}), _(e) ? e : (e = e.toLowerCase(), a.reactCompat ? e = e.replace(E, t) : e = e.replace(s, t), e.replace(c, l));
|
|
14
|
+
};
|
|
15
|
+
return i.camelCase = m, i;
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
R as __require
|
|
19
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __exports as r } from "../../../_virtual/index3.js";
|
|
2
|
+
import { __require as p } from "../../inline-style-parser/cjs/index.js";
|
|
3
|
+
var f;
|
|
4
|
+
function q() {
|
|
5
|
+
if (f) return r;
|
|
6
|
+
f = 1;
|
|
7
|
+
var s = r && r.__importDefault || function(e) {
|
|
8
|
+
return e && e.__esModule ? e : { default: e };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), r.default = a;
|
|
11
|
+
const _ = s(p());
|
|
12
|
+
function a(e, i) {
|
|
13
|
+
let t = null;
|
|
14
|
+
if (!e || typeof e != "string")
|
|
15
|
+
return t;
|
|
16
|
+
const l = (0, _.default)(e), c = typeof i == "function";
|
|
17
|
+
return l.forEach((u) => {
|
|
18
|
+
if (u.type !== "declaration")
|
|
19
|
+
return;
|
|
20
|
+
const { property: o, value: n } = u;
|
|
21
|
+
c ? i(o, n, u) : n && (t = t || {}, t[o] = n);
|
|
22
|
+
}), t;
|
|
23
|
+
}
|
|
24
|
+
return r;
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
q as __require
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function r(c) {
|
|
2
|
+
const i = String(c), o = /\r?\n|\r/g;
|
|
3
|
+
let e = o.exec(i), t = 0;
|
|
4
|
+
const n = [];
|
|
5
|
+
for (; e; )
|
|
6
|
+
n.push(
|
|
7
|
+
s(i.slice(t, e.index), t > 0, !0),
|
|
8
|
+
e[0]
|
|
9
|
+
), t = e.index + e[0].length, e = o.exec(i);
|
|
10
|
+
return n.push(s(i.slice(t), t > 0, !1)), n.join("");
|
|
11
|
+
}
|
|
12
|
+
function s(c, i, o) {
|
|
13
|
+
let e = 0, t = c.length;
|
|
14
|
+
if (i) {
|
|
15
|
+
let n = c.codePointAt(e);
|
|
16
|
+
for (; n === 9 || n === 32; )
|
|
17
|
+
e++, n = c.codePointAt(e);
|
|
18
|
+
}
|
|
19
|
+
if (o) {
|
|
20
|
+
let n = c.codePointAt(t - 1);
|
|
21
|
+
for (; n === 9 || n === 32; )
|
|
22
|
+
t--, n = c.codePointAt(t - 1);
|
|
23
|
+
}
|
|
24
|
+
return t > e ? c.slice(e, t) : "";
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
r as trimLines
|
|
28
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
function x() {
|
|
2
|
+
const i = [], u = { run: c, use: p };
|
|
3
|
+
return u;
|
|
4
|
+
function c(...n) {
|
|
5
|
+
let h = -1;
|
|
6
|
+
const t = n.pop();
|
|
7
|
+
if (typeof t != "function")
|
|
8
|
+
throw new TypeError("Expected function as last argument, not " + t);
|
|
9
|
+
f(null, ...n);
|
|
10
|
+
function f(e, ...o) {
|
|
11
|
+
const r = i[++h];
|
|
12
|
+
let l = -1;
|
|
13
|
+
if (e) {
|
|
14
|
+
t(e);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
for (; ++l < n.length; )
|
|
18
|
+
(o[l] === null || o[l] === void 0) && (o[l] = n[l]);
|
|
19
|
+
n = o, r ? s(r, f)(...o) : t(null, ...o);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function p(n) {
|
|
23
|
+
if (typeof n != "function")
|
|
24
|
+
throw new TypeError(
|
|
25
|
+
"Expected `middelware` to be a function, not " + n
|
|
26
|
+
);
|
|
27
|
+
return i.push(n), u;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function s(i, u) {
|
|
31
|
+
let c;
|
|
32
|
+
return p;
|
|
33
|
+
function p(...t) {
|
|
34
|
+
const f = i.length > t.length;
|
|
35
|
+
let e;
|
|
36
|
+
f && t.push(n);
|
|
37
|
+
try {
|
|
38
|
+
e = i.apply(this, t);
|
|
39
|
+
} catch (o) {
|
|
40
|
+
const r = (
|
|
41
|
+
/** @type {Error} */
|
|
42
|
+
o
|
|
43
|
+
);
|
|
44
|
+
if (f && c)
|
|
45
|
+
throw r;
|
|
46
|
+
return n(r);
|
|
47
|
+
}
|
|
48
|
+
f || (e && e.then && typeof e.then == "function" ? e.then(h, n) : e instanceof Error ? n(e) : h(e));
|
|
49
|
+
}
|
|
50
|
+
function n(t, ...f) {
|
|
51
|
+
c || (c = !0, u(t, ...f));
|
|
52
|
+
}
|
|
53
|
+
function h(t) {
|
|
54
|
+
n(null, t);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
x as trough,
|
|
59
|
+
s as wrap
|
|
60
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const r = (
|
|
2
|
+
/**
|
|
3
|
+
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
4
|
+
*/
|
|
5
|
+
/** @type {unknown} */
|
|
6
|
+
/**
|
|
7
|
+
* @this {Function}
|
|
8
|
+
* @param {string | symbol} property
|
|
9
|
+
* @returns {(...parameters: Array<unknown>) => unknown}
|
|
10
|
+
*/
|
|
11
|
+
(function(n) {
|
|
12
|
+
const o = (
|
|
13
|
+
/** @type {Record<string | symbol, Function>} */
|
|
14
|
+
// Prototypes do exist.
|
|
15
|
+
// type-coverage:ignore-next-line
|
|
16
|
+
this.constructor.prototype
|
|
17
|
+
), s = o[n], t = function() {
|
|
18
|
+
return s.apply(t, arguments);
|
|
19
|
+
};
|
|
20
|
+
return Object.setPrototypeOf(t, o), t;
|
|
21
|
+
})
|
|
22
|
+
);
|
|
23
|
+
export {
|
|
24
|
+
r as CallableInstance
|
|
25
|
+
};
|