@dust-tt/sparkle 0.2.646-rc-4 → 0.2.647
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/cjs/index.js +1 -1
- package/dist/esm/components/DataTable.d.ts +13 -3
- package/dist/esm/components/DataTable.d.ts.map +1 -1
- package/dist/esm/components/DataTable.js +9 -8
- package/dist/esm/components/DataTable.js.map +1 -1
- package/dist/esm/components/markdown/BlockquoteBlock.d.ts +1 -3
- package/dist/esm/components/markdown/BlockquoteBlock.d.ts.map +1 -1
- package/dist/esm/components/markdown/BlockquoteBlock.js +3 -7
- package/dist/esm/components/markdown/BlockquoteBlock.js.map +1 -1
- package/dist/esm/components/markdown/CodeBlockWithExtendedSupport.d.ts +2 -4
- package/dist/esm/components/markdown/CodeBlockWithExtendedSupport.d.ts.map +1 -1
- package/dist/esm/components/markdown/CodeBlockWithExtendedSupport.js +6 -11
- package/dist/esm/components/markdown/CodeBlockWithExtendedSupport.js.map +1 -1
- package/dist/esm/components/markdown/List.d.ts +3 -17
- package/dist/esm/components/markdown/List.d.ts.map +1 -1
- package/dist/esm/components/markdown/List.js +7 -21
- package/dist/esm/components/markdown/List.js.map +1 -1
- package/dist/esm/components/markdown/Markdown.d.ts +9 -2
- package/dist/esm/components/markdown/Markdown.d.ts.map +1 -1
- package/dist/esm/components/markdown/Markdown.js +66 -45
- package/dist/esm/components/markdown/Markdown.js.map +1 -1
- package/dist/esm/components/markdown/ParagraphBlock.d.ts +1 -3
- package/dist/esm/components/markdown/ParagraphBlock.d.ts.map +1 -1
- package/dist/esm/components/markdown/ParagraphBlock.js +3 -7
- package/dist/esm/components/markdown/ParagraphBlock.js.map +1 -1
- package/dist/esm/components/markdown/PreBlock.d.ts +1 -3
- package/dist/esm/components/markdown/PreBlock.d.ts.map +1 -1
- package/dist/esm/components/markdown/PreBlock.js +3 -7
- package/dist/esm/components/markdown/PreBlock.js.map +1 -1
- package/dist/esm/components/markdown/TableBlock.d.ts +11 -17
- package/dist/esm/components/markdown/TableBlock.d.ts.map +1 -1
- package/dist/esm/components/markdown/TableBlock.js +14 -18
- package/dist/esm/components/markdown/TableBlock.js.map +1 -1
- package/dist/esm/components/markdown/index.d.ts +0 -4
- package/dist/esm/components/markdown/index.d.ts.map +1 -1
- package/dist/esm/components/markdown/index.js +0 -4
- package/dist/esm/components/markdown/index.js.map +1 -1
- package/dist/esm/components/markdown/utils.d.ts +0 -11
- package/dist/esm/components/markdown/utils.d.ts.map +1 -1
- package/dist/esm/components/markdown/utils.js +0 -21
- package/dist/esm/components/markdown/utils.js.map +1 -1
- package/dist/esm/icons/actions/Atom.js +1 -1
- package/dist/esm/icons/actions/Atom.js.map +1 -1
- package/dist/esm/icons/app/ArrowDownDash.d.ts +5 -0
- package/dist/esm/icons/app/ArrowDownDash.d.ts.map +1 -0
- package/dist/esm/icons/app/ArrowDownDash.js +6 -0
- package/dist/esm/icons/app/ArrowDownDash.js.map +1 -0
- package/dist/esm/icons/app/Atom.js +1 -1
- package/dist/esm/icons/app/Atom.js.map +1 -1
- package/dist/esm/icons/app/index.d.ts +1 -0
- package/dist/esm/icons/app/index.d.ts.map +1 -1
- package/dist/esm/icons/app/index.js +1 -0
- package/dist/esm/icons/app/index.js.map +1 -1
- package/dist/esm/icons/src/app/arrow-down-dash.svg +3 -0
- package/dist/esm/logo/platforms/Discord.d.ts.map +1 -1
- package/dist/esm/logo/platforms/Discord.js +2 -2
- package/dist/esm/logo/platforms/Discord.js.map +1 -1
- package/dist/esm/logo/src/platforms/Discord.svg +3 -0
- package/dist/esm/stories/DataTable.stories.d.ts +1 -0
- package/dist/esm/stories/DataTable.stories.d.ts.map +1 -1
- package/dist/esm/stories/DataTable.stories.js +188 -0
- package/dist/esm/stories/DataTable.stories.js.map +1 -1
- package/dist/esm/styles/global.css +12 -0
- package/dist/esm/styles/global_with_tw_base.css +12 -0
- package/dist/esm/styles/tailwind.css +11 -0
- package/dist/sparkle.css +390 -348
- package/package.json +1 -2
- package/src/components/DataTable.tsx +31 -2
- package/src/components/markdown/BlockquoteBlock.tsx +29 -36
- package/src/components/markdown/CodeBlockWithExtendedSupport.tsx +131 -142
- package/src/components/markdown/List.tsx +30 -53
- package/src/components/markdown/Markdown.tsx +171 -108
- package/src/components/markdown/ParagraphBlock.tsx +12 -18
- package/src/components/markdown/PreBlock.tsx +18 -28
- package/src/components/markdown/TableBlock.tsx +95 -125
- package/src/components/markdown/index.ts +0 -4
- package/src/components/markdown/utils.ts +0 -37
- package/src/icons/actions/Atom.tsx +1 -1
- package/src/icons/app/ArrowDownDash.tsx +18 -0
- package/src/icons/app/Atom.tsx +1 -1
- package/src/icons/app/index.ts +1 -0
- package/src/icons/src/app/arrow-down-dash.svg +3 -0
- package/src/logo/platforms/Discord.tsx +6 -8
- package/src/logo/src/platforms/Discord.svg +3 -0
- package/src/stories/DataTable.stories.tsx +235 -0
- package/src/styles/global.css +12 -0
- package/src/styles/global_with_tw_base.css +12 -0
- package/src/styles/tailwind.css +11 -0
- package/dist/esm/components/markdown/HeaderBlocks.d.ts +0 -24
- package/dist/esm/components/markdown/HeaderBlocks.d.ts.map +0 -1
- package/dist/esm/components/markdown/HeaderBlocks.js +0 -54
- package/dist/esm/components/markdown/HeaderBlocks.js.map +0 -1
- package/dist/esm/components/markdown/InputBlock.d.ts +0 -10
- package/dist/esm/components/markdown/InputBlock.d.ts.map +0 -1
- package/dist/esm/components/markdown/InputBlock.js +0 -26
- package/dist/esm/components/markdown/InputBlock.js.map +0 -1
- package/dist/esm/components/markdown/LinkBlock.d.ts +0 -10
- package/dist/esm/components/markdown/LinkBlock.d.ts.map +0 -1
- package/dist/esm/components/markdown/LinkBlock.js +0 -11
- package/dist/esm/components/markdown/LinkBlock.js.map +0 -1
- package/dist/esm/components/markdown/TextFormattingBlocks.d.ts +0 -10
- package/dist/esm/components/markdown/TextFormattingBlocks.d.ts.map +0 -1
- package/dist/esm/components/markdown/TextFormattingBlocks.js +0 -12
- package/dist/esm/components/markdown/TextFormattingBlocks.js.map +0 -1
- package/dist/esm/components/markdown/types.d.ts +0 -13
- package/dist/esm/components/markdown/types.d.ts.map +0 -1
- package/dist/esm/components/markdown/types.js +0 -2
- package/dist/esm/components/markdown/types.js.map +0 -1
- package/dist/esm/components/markdown/useAnimatedText.d.ts +0 -2
- package/dist/esm/components/markdown/useAnimatedText.d.ts.map +0 -1
- package/dist/esm/components/markdown/useAnimatedText.js +0 -31
- package/dist/esm/components/markdown/useAnimatedText.js.map +0 -1
- package/src/components/markdown/HeaderBlocks.tsx +0 -160
- package/src/components/markdown/InputBlock.tsx +0 -60
- package/src/components/markdown/LinkBlock.tsx +0 -36
- package/src/components/markdown/TextFormattingBlocks.tsx +0 -31
- package/src/components/markdown/types.ts +0 -5
- package/src/components/markdown/useAnimatedText.ts +0 -36
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __assign, __read, __spreadArray } from "tslib";
|
|
1
|
+
import { __assign, __read, __rest, __spreadArray } from "tslib";
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
3
|
import React, { useMemo } from "react";
|
|
4
4
|
import ReactMarkdown from "react-markdown";
|
|
@@ -7,21 +7,24 @@ import remarkDirective from "remark-directive";
|
|
|
7
7
|
import remarkGfm from "remark-gfm";
|
|
8
8
|
import remarkMath from "remark-math";
|
|
9
9
|
import { visit } from "unist-util-visit";
|
|
10
|
-
import { Chip } from "../../components";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { MemoInputBlock } from "../../components/markdown/InputBlock";
|
|
15
|
-
import { MemoLinkBlock } from "../../components/markdown/LinkBlock";
|
|
16
|
-
import { MemoLiBlock, MemoOlBlock, MemoUlBlock, } from "../../components/markdown/List";
|
|
10
|
+
import { Checkbox, Chip } from "../../components";
|
|
11
|
+
import { BlockquoteBlock } from "../../components/markdown/BlockquoteBlock";
|
|
12
|
+
import { CodeBlockWithExtendedSupport } from "../../components/markdown/CodeBlockWithExtendedSupport";
|
|
13
|
+
import { LiBlock, OlBlock, UlBlock } from "../../components/markdown/List";
|
|
17
14
|
import { MarkdownContentContext } from "../../components/markdown/MarkdownContentContext";
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { MemoHorizontalRuleBlock, MemoStrongBlock, } from "../../components/markdown/TextFormattingBlocks";
|
|
15
|
+
import { ParagraphBlock } from "../../components/markdown/ParagraphBlock";
|
|
16
|
+
import { PreBlock } from "../../components/markdown/PreBlock";
|
|
17
|
+
import { TableBlock, TableBodyBlock, TableDataBlock, TableHeadBlock, TableHeaderBlock, } from "../../components/markdown/TableBlock";
|
|
22
18
|
import { sanitizeContent } from "../../components/markdown/utils";
|
|
23
19
|
import { cn } from "../../lib/utils";
|
|
24
|
-
|
|
20
|
+
export var markdownHeaderClasses = {
|
|
21
|
+
h1: "s-heading-2xl",
|
|
22
|
+
h2: "s-heading-xl",
|
|
23
|
+
h3: "s-heading-lg",
|
|
24
|
+
h4: "s-text-base s-font-semibold",
|
|
25
|
+
h5: "s-text-sm s-font-semibold",
|
|
26
|
+
h6: "s-text-sm s-font-regular s-italic",
|
|
27
|
+
};
|
|
25
28
|
var sizes = __assign({ p: "s-copy-sm @sm:s-text-base @sm:s-leading-7" }, markdownHeaderClasses);
|
|
26
29
|
function showUnsupportedDirective() {
|
|
27
30
|
return function (tree) {
|
|
@@ -35,9 +38,8 @@ function showUnsupportedDirective() {
|
|
|
35
38
|
};
|
|
36
39
|
}
|
|
37
40
|
export function Markdown(_a) {
|
|
38
|
-
var content = _a.content, _b = _a.isStreaming, isStreaming = _b === void 0 ? false : _b, _c = _a.
|
|
41
|
+
var content = _a.content, _b = _a.isStreaming, isStreaming = _b === void 0 ? false : _b, _c = _a.textColor, textColor = _c === void 0 ? "s-text-foreground dark:s-text-foreground-night" : _c, forcedTextSize = _a.forcedTextSize, _d = _a.isLastMessage, isLastMessage = _d === void 0 ? false : _d, additionalMarkdownComponents = _a.additionalMarkdownComponents, additionalMarkdownPlugins = _a.additionalMarkdownPlugins;
|
|
39
42
|
var processedContent = useMemo(function () { return sanitizeContent(content); }, [content]);
|
|
40
|
-
var markdownContent = useAnimatedText(processedContent, isStreaming && shouldHaveStreamingAnimation);
|
|
41
43
|
// Note on re-renderings. A lot of effort has been put into preventing rerendering across markdown
|
|
42
44
|
// AST parsing rounds (happening at each token being streamed).
|
|
43
45
|
//
|
|
@@ -54,42 +56,42 @@ export function Markdown(_a) {
|
|
|
54
56
|
// Memoize markdown components to avoid unnecessary re-renders that disrupt text selection
|
|
55
57
|
var markdownComponents = useMemo(function () {
|
|
56
58
|
return __assign({ pre: function (_a) {
|
|
57
|
-
var children = _a.children
|
|
58
|
-
return
|
|
59
|
-
}, a:
|
|
60
|
-
var children = _a.children
|
|
61
|
-
return (React.createElement(
|
|
59
|
+
var children = _a.children;
|
|
60
|
+
return React.createElement(PreBlock, null, children);
|
|
61
|
+
}, a: LinkBlock, ul: function (_a) {
|
|
62
|
+
var children = _a.children;
|
|
63
|
+
return (React.createElement(UlBlock, { textSize: forcedTextSize ? forcedTextSize : sizes.p, textColor: textColor }, children));
|
|
62
64
|
}, ol: function (_a) {
|
|
63
|
-
var children = _a.children, start = _a.start
|
|
64
|
-
return (React.createElement(
|
|
65
|
+
var children = _a.children, start = _a.start;
|
|
66
|
+
return (React.createElement(OlBlock, { start: start, textColor: textColor, textSize: forcedTextSize ? forcedTextSize : sizes.p }, children));
|
|
65
67
|
}, li: function (_a) {
|
|
66
|
-
var children = _a.children
|
|
67
|
-
return (React.createElement(
|
|
68
|
+
var children = _a.children;
|
|
69
|
+
return (React.createElement(LiBlock, { textColor: textColor, textSize: forcedTextSize ? forcedTextSize : sizes.p }, children));
|
|
68
70
|
}, p: function (_a) {
|
|
69
|
-
var children = _a.children
|
|
70
|
-
return (React.createElement(
|
|
71
|
-
}, table:
|
|
72
|
-
var children = _a.children
|
|
73
|
-
return (React.createElement(
|
|
71
|
+
var children = _a.children;
|
|
72
|
+
return (React.createElement(ParagraphBlock, { textColor: textColor, textSize: forcedTextSize ? forcedTextSize : sizes.p }, children));
|
|
73
|
+
}, table: TableBlock, thead: TableHeadBlock, tbody: TableBodyBlock, th: TableHeaderBlock, td: TableDataBlock, h1: function (_a) {
|
|
74
|
+
var children = _a.children;
|
|
75
|
+
return (React.createElement("h1", { className: cn("s-pb-2 s-pt-4", forcedTextSize ? forcedTextSize : sizes.h1, textColor) }, children));
|
|
74
76
|
}, h2: function (_a) {
|
|
75
|
-
var children = _a.children
|
|
76
|
-
return (React.createElement(
|
|
77
|
+
var children = _a.children;
|
|
78
|
+
return (React.createElement("h2", { className: cn("s-pb-2 s-pt-4", forcedTextSize ? forcedTextSize : sizes.h2, textColor) }, children));
|
|
77
79
|
}, h3: function (_a) {
|
|
78
|
-
var children = _a.children
|
|
79
|
-
return (React.createElement(
|
|
80
|
+
var children = _a.children;
|
|
81
|
+
return (React.createElement("h3", { className: cn("s-pb-2 s-pt-4", forcedTextSize ? forcedTextSize : sizes.h3, textColor) }, children));
|
|
80
82
|
}, h4: function (_a) {
|
|
81
|
-
var children = _a.children
|
|
82
|
-
return (React.createElement(
|
|
83
|
+
var children = _a.children;
|
|
84
|
+
return (React.createElement("h4", { className: cn("s-pb-2 s-pt-3", forcedTextSize ? forcedTextSize : sizes.h4, textColor) }, children));
|
|
83
85
|
}, h5: function (_a) {
|
|
84
|
-
var children = _a.children
|
|
85
|
-
return (React.createElement(
|
|
86
|
+
var children = _a.children;
|
|
87
|
+
return (React.createElement("h5", { className: cn("s-pb-1.5 s-pt-2.5", forcedTextSize ? forcedTextSize : sizes.h5, textColor) }, children));
|
|
86
88
|
}, h6: function (_a) {
|
|
87
|
-
var children = _a.children
|
|
88
|
-
return (React.createElement(
|
|
89
|
+
var children = _a.children;
|
|
90
|
+
return (React.createElement("h6", { className: cn("s-pb-1.5 s-pt-2.5", forcedTextSize ? forcedTextSize : sizes.h6, textColor) }, children));
|
|
89
91
|
}, strong: function (_a) {
|
|
90
|
-
var children = _a.children
|
|
91
|
-
return (React.createElement(
|
|
92
|
-
}, input:
|
|
92
|
+
var children = _a.children;
|
|
93
|
+
return (React.createElement("strong", { className: "s-font-semibold s-text-foreground dark:s-text-foreground-night" }, children));
|
|
94
|
+
}, input: Input, blockquote: BlockquoteBlock, hr: function () { return (React.createElement("div", { className: "s-my-6 s-border-b s-border-primary-150 dark:s-border-primary-150-night" })); }, code: CodeBlockWithExtendedSupport }, additionalMarkdownComponents);
|
|
93
95
|
}, [textColor, additionalMarkdownComponents]);
|
|
94
96
|
var markdownPlugins = useMemo(function () { return __spreadArray(__spreadArray([
|
|
95
97
|
remarkDirective,
|
|
@@ -100,18 +102,37 @@ export function Markdown(_a) {
|
|
|
100
102
|
], false); }, [additionalMarkdownPlugins]);
|
|
101
103
|
var rehypePlugins = [[rehypeKatex, { output: "mathml" }]];
|
|
102
104
|
try {
|
|
103
|
-
return (React.createElement("div", { className: cn("s-w-full") },
|
|
105
|
+
return (React.createElement("div", { className: cn("s-w-full", isStreaming ? "s-blinking-cursor" : "") },
|
|
104
106
|
React.createElement(MarkdownContentContext.Provider, { value: {
|
|
105
107
|
content: processedContent,
|
|
106
108
|
isStreaming: isStreaming,
|
|
107
109
|
isLastMessage: isLastMessage,
|
|
108
110
|
} },
|
|
109
|
-
React.createElement(ReactMarkdown, { linkTarget: "_blank", components: markdownComponents, remarkPlugins: markdownPlugins, rehypePlugins: rehypePlugins },
|
|
111
|
+
React.createElement(ReactMarkdown, { linkTarget: "_blank", components: markdownComponents, remarkPlugins: markdownPlugins, rehypePlugins: rehypePlugins }, processedContent))));
|
|
110
112
|
}
|
|
111
113
|
catch (error) {
|
|
112
|
-
return (React.createElement("div", { className: cn("s-w-full") },
|
|
114
|
+
return (React.createElement("div", { className: cn("s-w-full", isStreaming ? "s-blinking-cursor" : "") },
|
|
113
115
|
React.createElement(Chip, { color: "warning" }, "There was an error parsing this markdown content"),
|
|
114
116
|
processedContent));
|
|
115
117
|
}
|
|
116
118
|
}
|
|
119
|
+
function LinkBlock(_a) {
|
|
120
|
+
var href = _a.href, children = _a.children;
|
|
121
|
+
return (React.createElement("a", { href: href, target: "_blank", rel: "noopener noreferrer", className: cn("s-break-all s-font-semibold s-transition-all s-duration-200 s-ease-in-out hover:s-underline", "s-text-highlight dark:s-text-highlight-night", "hover:s-text-highlight-400 dark:hover:s-text-highlight-400-night", "active:s-text-highlight-dark dark:active:s-text-highlight-dark-night") }, children));
|
|
122
|
+
}
|
|
123
|
+
function Input(_a) {
|
|
124
|
+
var type = _a.type, checked = _a.checked, className = _a.className, onChange = _a.onChange, ref = _a.ref, props = __rest(_a, ["type", "checked", "className", "onChange", "ref"]);
|
|
125
|
+
var inputRef = React.useRef(null);
|
|
126
|
+
React.useImperativeHandle(ref, function () { return inputRef.current; });
|
|
127
|
+
if (type !== "checkbox") {
|
|
128
|
+
return (React.createElement("input", __assign({ ref: inputRef, type: type, checked: checked, className: className }, props)));
|
|
129
|
+
}
|
|
130
|
+
var handleCheckedChange = function (isChecked) {
|
|
131
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
132
|
+
target: { type: "checkbox", checked: isChecked },
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
return (React.createElement("div", { className: "s-inline-flex s-items-center" },
|
|
136
|
+
React.createElement(Checkbox, { ref: inputRef, size: "xs", checked: checked, className: "s-translate-y-[3px]", onCheckedChange: handleCheckedChange })));
|
|
137
|
+
}
|
|
117
138
|
//# sourceMappingURL=Markdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Markdown.js","sourceRoot":"","sources":["../../../../src/components/markdown/Markdown.tsx"],"names":[],"mappings":";AAAA,uDAAuD;AACvD,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,aAAa,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Markdown.js","sourceRoot":"","sources":["../../../../src/components/markdown/Markdown.tsx"],"names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OAAO,CACL,6BAAK,SAAS,EAAC,8BAA8B;QAC3C,oBAAC,QAAQ,IACP,GAAG,EAAE,QAAwC,EAC7C,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,qBAAqB,EAC/B,eAAe,EAAE,mBAAmB,GACpC,CACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { MarkdownNode } from "./types";
|
|
3
2
|
export declare const paragraphBlockVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
4
3
|
interface ParagraphBlockProps {
|
|
5
4
|
children: React.ReactNode;
|
|
6
5
|
textColor: string;
|
|
7
6
|
textSize: string;
|
|
8
|
-
node?: MarkdownNode;
|
|
9
7
|
}
|
|
10
|
-
export declare
|
|
8
|
+
export declare function ParagraphBlock({ children, textColor, textSize, }: ParagraphBlockProps): React.JSX.Element;
|
|
11
9
|
export {};
|
|
12
10
|
//# sourceMappingURL=ParagraphBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParagraphBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/markdown/ParagraphBlock.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"ParagraphBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/markdown/ParagraphBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,sBAAsB,yFAGjC,CAAC;AAEH,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,SAAS,EACT,QAAQ,GACT,EAAE,mBAAmB,qBAMrB"}
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import React
|
|
2
|
+
import React from "react";
|
|
3
3
|
import { cn } from "../../lib";
|
|
4
|
-
import { sameNodePosition, sameTextStyling } from "./utils";
|
|
5
4
|
export var paragraphBlockVariants = cva([
|
|
6
5
|
"s-whitespace-pre-wrap s-break-words s-font-normal first:s-pt-0 last:s-pb-0",
|
|
7
6
|
"s-py-1 @md:s-py-2 @md:s-leading-7",
|
|
8
7
|
]);
|
|
9
|
-
export
|
|
8
|
+
export function ParagraphBlock(_a) {
|
|
10
9
|
var children = _a.children, textColor = _a.textColor, textSize = _a.textSize;
|
|
11
10
|
return (React.createElement("div", { className: cn(paragraphBlockVariants(), textSize, textColor) }, children));
|
|
12
|
-
}
|
|
13
|
-
return sameNodePosition(prev.node, next.node) && sameTextStyling(prev, next);
|
|
14
|
-
});
|
|
15
|
-
MemoParagraphBlock.displayName = "ParagraphBlock";
|
|
11
|
+
}
|
|
16
12
|
//# sourceMappingURL=ParagraphBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParagraphBlock.js","sourceRoot":"","sources":["../../../../src/components/markdown/ParagraphBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ParagraphBlock.js","sourceRoot":"","sources":["../../../../src/components/markdown/ParagraphBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,MAAM,CAAC,IAAM,sBAAsB,GAAG,GAAG,CAAC;IACxC,4EAA4E;IAC5E,mCAAmC;CACpC,CAAC,CAAC;AAQH,MAAM,UAAU,cAAc,CAAC,EAIT;QAHpB,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,QAAQ,cAAA;IAER,OAAO,CACL,6BAAK,SAAS,EAAE,EAAE,CAAC,sBAAsB,EAAE,EAAE,QAAQ,EAAE,SAAS,CAAC,IAC9D,QAAQ,CACL,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { MarkdownNode } from "./types";
|
|
3
2
|
export declare const preBlockVariants: (props?: ({
|
|
4
3
|
variant?: "surface" | null | undefined;
|
|
5
4
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
5
|
interface PreBlockProps {
|
|
7
6
|
children: React.ReactNode;
|
|
8
7
|
variant?: "surface";
|
|
9
|
-
node?: MarkdownNode;
|
|
10
8
|
}
|
|
11
|
-
export declare
|
|
9
|
+
export declare function PreBlock({ children, variant }: PreBlockProps): React.JSX.Element;
|
|
12
10
|
export {};
|
|
13
11
|
//# sourceMappingURL=PreBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/markdown/PreBlock.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"PreBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/markdown/PreBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,gBAAgB;;mFAY5B,CAAC;AAEF,UAAU,aAAa;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,OAAmB,EAAE,EAAE,aAAa,qBAmBxE"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
|
-
import React
|
|
3
|
-
import { sameNodePosition } from "./utils";
|
|
2
|
+
import React from "react";
|
|
4
3
|
export var preBlockVariants = cva([
|
|
5
4
|
"s-my-2 s-w-full s-break-all s-rounded-2xl s-border",
|
|
6
5
|
"s-border-border dark:s-border-border-night",
|
|
@@ -11,7 +10,7 @@ export var preBlockVariants = cva([
|
|
|
11
10
|
},
|
|
12
11
|
},
|
|
13
12
|
});
|
|
14
|
-
export
|
|
13
|
+
export function PreBlock(_a) {
|
|
15
14
|
var _b, _c, _d;
|
|
16
15
|
var children = _a.children, _e = _a.variant, variant = _e === void 0 ? "surface" : _e;
|
|
17
16
|
var validChildrenContent = Array.isArray(children) && children[0]
|
|
@@ -25,8 +24,5 @@ export var MemoPreBlock = memo(function (_a) {
|
|
|
25
24
|
: null;
|
|
26
25
|
}
|
|
27
26
|
return (React.createElement("pre", { className: preBlockVariants({ variant: variant }) }, validChildrenContent ? children : fallbackData || children));
|
|
28
|
-
}
|
|
29
|
-
return sameNodePosition(prev.node, next.node) && prev.variant === next.variant;
|
|
30
|
-
});
|
|
31
|
-
MemoPreBlock.displayName = "PreBlock";
|
|
27
|
+
}
|
|
32
28
|
//# sourceMappingURL=PreBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreBlock.js","sourceRoot":"","sources":["../../../../src/components/markdown/PreBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"PreBlock.js","sourceRoot":"","sources":["../../../../src/components/markdown/PreBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,IAAM,gBAAgB,GAAG,GAAG,CACjC;IACE,oDAAoD;IACpD,4CAA4C;CAC7C,EACD;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,wDAAwD;SAClE;KACF;CACF,CACF,CAAC;AAOF,MAAM,UAAU,QAAQ,CAAC,EAAgD;;QAA9C,QAAQ,cAAA,EAAE,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAA;IACtD,IAAM,oBAAoB,GACxB,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC;QACpC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC/B,CAAC,CAAC,IAAI,CAAC;IAEX,IAAI,YAAY,GAAkB,IAAI,CAAC;IACvC,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC1B,YAAY;YACV,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC;gBACpC,CAAC,CAAC,MAAA,MAAA,MAAA,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,0CAAE,IAAI,0CAAE,IAAI,0CAAE,IAAI;gBACrC,CAAC,CAAC,IAAI,CAAC;IACb,CAAC;IAED,OAAO,CACL,6BAAK,SAAS,EAAE,gBAAgB,CAAC,EAAE,OAAO,SAAA,EAAE,CAAC,IAC1C,oBAAoB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,IAAI,QAAQ,CACvD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
3
|
-
export declare const MemoTableBlock: React.MemoExoticComponent<({ children }: {
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function TableBlock({ children }: {
|
|
4
3
|
children: React.ReactNode;
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export declare const MemoTableHeadBlock: React.MemoExoticComponent<({ children }: {
|
|
4
|
+
}): React.JSX.Element;
|
|
5
|
+
export declare function TableHeadBlock({ children }: {
|
|
8
6
|
children: React.ReactNode;
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
export declare const MemoTableBodyBlock: React.MemoExoticComponent<({ children }: {
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
export declare function TableBodyBlock({ children }: {
|
|
12
9
|
children: React.ReactNode;
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
export declare const MemoTableHeaderBlock: React.MemoExoticComponent<({ children }: {
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
export declare function TableHeaderBlock({ children }: {
|
|
16
12
|
children: React.ReactNode;
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
export declare const MemoTableDataBlock: React.MemoExoticComponent<({ children }: {
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
export declare function TableDataBlock({ children }: {
|
|
20
15
|
children: React.ReactNode;
|
|
21
|
-
|
|
22
|
-
}) => React.JSX.Element>;
|
|
16
|
+
}): React.JSX.Element;
|
|
23
17
|
//# sourceMappingURL=TableBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/markdown/TableBlock.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"TableBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/markdown/TableBlock.tsx"],"names":[],"mappings":"AACA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAmBlD,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAyDrE;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAMzE;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAIzE;AAED,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAM3E;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAezE"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { __read } from "tslib";
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
|
-
import React, {
|
|
3
|
+
import React, { useMemo } from "react";
|
|
4
4
|
import { ScrollArea, ScrollBar } from "../../components";
|
|
5
5
|
import { ContentBlockWrapper } from "../../components/markdown/ContentBlockWrapper";
|
|
6
|
-
import { sameNodePosition } from "./utils";
|
|
7
6
|
var getNodeText = function (node) {
|
|
8
7
|
if (["string", "number"].includes(typeof node)) {
|
|
9
8
|
return node;
|
|
@@ -16,7 +15,7 @@ var getNodeText = function (node) {
|
|
|
16
15
|
}
|
|
17
16
|
return "";
|
|
18
17
|
};
|
|
19
|
-
export
|
|
18
|
+
export function TableBlock(_a) {
|
|
20
19
|
var children = _a.children;
|
|
21
20
|
var tableData = useMemo(function () {
|
|
22
21
|
var _a = __read(Array.from(children), 2), headNode = _a[0], bodyNode = _a[1];
|
|
@@ -26,7 +25,9 @@ export var MemoTableBlock = memo(function (_a) {
|
|
|
26
25
|
!("props" in bodyNode)) {
|
|
27
26
|
return;
|
|
28
27
|
}
|
|
29
|
-
var headCells = headNode.props.children[0].props.children.map(function (c) {
|
|
28
|
+
var headCells = headNode.props.children[0].props.children.map(function (c) {
|
|
29
|
+
return getNodeText(c.props.children);
|
|
30
|
+
});
|
|
30
31
|
var headHtml = "<thead><tr>".concat(headCells
|
|
31
32
|
.map(function (c) { return "<th><b>".concat(c, "</b></th>"); })
|
|
32
33
|
.join(""), "</tr></thead>");
|
|
@@ -56,24 +57,20 @@ export var MemoTableBlock = memo(function (_a) {
|
|
|
56
57
|
React.createElement(ScrollArea, { className: "s-w-full s-rounded-2xl" },
|
|
57
58
|
React.createElement("table", { className: "s-w-full" }, children),
|
|
58
59
|
React.createElement(ScrollBar, { orientation: "horizontal" }))));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export var MemoTableHeadBlock = memo(function (_a) {
|
|
60
|
+
}
|
|
61
|
+
export function TableHeadBlock(_a) {
|
|
62
62
|
var children = _a.children;
|
|
63
63
|
return (React.createElement("thead", { className: "s-bg-muted-background s-px-2 s-py-2 dark:s-bg-muted-background-night" }, children));
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export var MemoTableBodyBlock = memo(function (_a) {
|
|
64
|
+
}
|
|
65
|
+
export function TableBodyBlock(_a) {
|
|
67
66
|
var children = _a.children;
|
|
68
67
|
return (React.createElement("tbody", { className: "s-bg-white dark:s-bg-background-night" }, children));
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export var MemoTableHeaderBlock = memo(function (_a) {
|
|
68
|
+
}
|
|
69
|
+
export function TableHeaderBlock(_a) {
|
|
72
70
|
var children = _a.children;
|
|
73
71
|
return (React.createElement("th", { className: "s-truncate s-whitespace-nowrap s-break-words s-py-3.5 s-pl-4 s-text-left s-text-xs s-font-semibold s-text-muted-foreground dark:s-text-muted-foreground-night" }, children));
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export var MemoTableDataBlock = memo(function (_a) {
|
|
72
|
+
}
|
|
73
|
+
export function TableDataBlock(_a) {
|
|
77
74
|
var children = _a.children;
|
|
78
75
|
return (React.createElement("td", { className: "s-px-4 s-py-3 s-text-sm s-text-foreground dark:s-text-foreground-night" }, Array.isArray(children) ? (children.map(function (child, i) {
|
|
79
76
|
if (child === "<br>") {
|
|
@@ -81,6 +78,5 @@ export var MemoTableDataBlock = memo(function (_a) {
|
|
|
81
78
|
}
|
|
82
79
|
return React.createElement(React.Fragment, { key: i }, child);
|
|
83
80
|
})) : (React.createElement(React.Fragment, null, children))));
|
|
84
|
-
}
|
|
85
|
-
MemoTableDataBlock.displayName = "TableDataBlock";
|
|
81
|
+
}
|
|
86
82
|
//# sourceMappingURL=TableBlock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBlock.js","sourceRoot":"","sources":["../../../../src/components/markdown/TableBlock.tsx"],"names":[],"mappings":";AAAA,uDAAuD;AACvD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TableBlock.js","sourceRoot":"","sources":["../../../../src/components/markdown/TableBlock.tsx"],"names":[],"mappings":";AAAA,uDAAuD;AACvD,OAAO,KAAK,EAAE,EAAa,OAAO,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AAEvF,IAAM,WAAW,GAAG,UAAC,IAAe;IAClC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,IAAI,CAAC,EAAE,CAAC;QAC/C,OAAO,IAAc,CAAC;IACxB,CAAC;IACD,IAAI,IAAI,YAAY,KAAK,EAAE,CAAC;QAC1B,OAAO,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACxC,CAAC;IACD,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;QACxD,OAAO,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC1C,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEF,MAAM,UAAU,UAAU,CAAC,EAA2C;QAAzC,QAAQ,cAAA;IACnC,IAAM,SAAS,GAAG,OAAO,CAAC;QAClB,IAAA,KAAA,OAAuB,KAAK,CAAC,IAAI,CAAC,QAAsB,CAAC,IAAA,EAAxD,QAAQ,QAAA,EAAE,QAAQ,QAAsC,CAAC;QAChE,IACE,CAAC,QAAQ;YACT,CAAC,QAAQ;YACT,CAAC,CAAC,OAAO,IAAI,QAAQ,CAAC;YACtB,CAAC,CAAC,OAAO,IAAI,QAA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AAc,CAAC,EAA2C;QAAzC,QAAQ,cAAA;IACvC,OAAO,CACL,4BAAI,SAAS,EAAC,wEAAwE,IACnF,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CACzB,QAAQ,CAAC,GAAG,CAAC,UAAC,KAAU,EAAE,CAAC;QACzB,IAAI,KAAK,KAAK,MAAM,EAAE,CAAC;YACrB,OAAO,4BAAI,GAAG,EAAE,CAAC,GAAI,CAAC;QACxB,CAAC;QACD,OAAO,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,CAAC,IAAG,KAAK,CAAkB,CAAC;IAC1D,CAAC,CAAC,CACH,CAAC,CAAC,CAAC,CACF,0CAAG,QAAQ,CAAI,CAChB,CACE,CACN,CAAC;AACJ,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
export * from "./CodeBlock";
|
|
2
2
|
export * from "./CodeBlockWithExtendedSupport";
|
|
3
3
|
export * from "./ContentBlockWrapper";
|
|
4
|
-
export * from "./HeaderBlocks";
|
|
5
|
-
export * from "./InputBlock";
|
|
6
|
-
export * from "./LinkBlock";
|
|
7
4
|
export * from "./Markdown";
|
|
8
5
|
export * from "./MarkdownContentContext";
|
|
9
6
|
export * from "./PrettyJsonViewer";
|
|
10
7
|
export * from "./TableBlock";
|
|
11
|
-
export * from "./TextFormattingBlocks";
|
|
12
8
|
export * from "./utils";
|
|
13
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/markdown/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/markdown/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
export * from "./CodeBlock";
|
|
2
2
|
export * from "./CodeBlockWithExtendedSupport";
|
|
3
3
|
export * from "./ContentBlockWrapper";
|
|
4
|
-
export * from "./HeaderBlocks";
|
|
5
|
-
export * from "./InputBlock";
|
|
6
|
-
export * from "./LinkBlock";
|
|
7
4
|
export * from "./Markdown";
|
|
8
5
|
export * from "./MarkdownContentContext";
|
|
9
6
|
export * from "./PrettyJsonViewer";
|
|
10
7
|
export * from "./TableBlock";
|
|
11
|
-
export * from "./TextFormattingBlocks";
|
|
12
8
|
export * from "./utils";
|
|
13
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/markdown/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/markdown/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { MarkdownNode } from "./types";
|
|
3
2
|
export declare function sanitizeContent(str: string): string;
|
|
4
3
|
export declare function detectLanguage(children: React.ReactNode): any;
|
|
5
|
-
export declare function sameNodePosition(prev?: MarkdownNode, next?: MarkdownNode): boolean;
|
|
6
|
-
export declare function sameTextStyling(prev: {
|
|
7
|
-
textColor?: string;
|
|
8
|
-
textSize?: string;
|
|
9
|
-
forcedTextSize?: string;
|
|
10
|
-
}, next: {
|
|
11
|
-
textColor?: string;
|
|
12
|
-
textSize?: string;
|
|
13
|
-
forcedTextSize?: string;
|
|
14
|
-
}): boolean;
|
|
15
4
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/markdown/utils.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/markdown/utils.ts"],"names":[],"mappings":";AAAA,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAgCnD;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,OAMvD"}
|
|
@@ -39,25 +39,4 @@ export function detectLanguage(children) {
|
|
|
39
39
|
}
|
|
40
40
|
return "text";
|
|
41
41
|
}
|
|
42
|
-
export function sameNodePosition(prev, next) {
|
|
43
|
-
if (!((prev === null || prev === void 0 ? void 0 : prev.position) || (next === null || next === void 0 ? void 0 : next.position))) {
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
if (!((prev === null || prev === void 0 ? void 0 : prev.position) && (next === null || next === void 0 ? void 0 : next.position))) {
|
|
47
|
-
return false;
|
|
48
|
-
}
|
|
49
|
-
var prevStart = prev.position.start;
|
|
50
|
-
var nextStart = next.position.start;
|
|
51
|
-
var prevEnd = prev.position.end;
|
|
52
|
-
var nextEnd = next.position.end;
|
|
53
|
-
return ((prevStart === null || prevStart === void 0 ? void 0 : prevStart.line) === (nextStart === null || nextStart === void 0 ? void 0 : nextStart.line) &&
|
|
54
|
-
(prevStart === null || prevStart === void 0 ? void 0 : prevStart.column) === (nextStart === null || nextStart === void 0 ? void 0 : nextStart.column) &&
|
|
55
|
-
(prevEnd === null || prevEnd === void 0 ? void 0 : prevEnd.line) === (nextEnd === null || nextEnd === void 0 ? void 0 : nextEnd.line) &&
|
|
56
|
-
(prevEnd === null || prevEnd === void 0 ? void 0 : prevEnd.column) === (nextEnd === null || nextEnd === void 0 ? void 0 : nextEnd.column));
|
|
57
|
-
}
|
|
58
|
-
export function sameTextStyling(prev, next) {
|
|
59
|
-
return (prev.textColor === next.textColor &&
|
|
60
|
-
prev.textSize === next.textSize &&
|
|
61
|
-
prev.forcedTextSize === next.forcedTextSize);
|
|
62
|
-
}
|
|
63
42
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/markdown/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/markdown/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,eAAe,CAAC,GAAW;IACzC,2FAA2F;IAC3F,4BAA4B;IAE5B,0EAA0E;IAC1E,IAAM,KAAK,GAAG,WAAW,CAAC;IAC1B,IAAI,eAAe,GAAG,CAAC,CAAC;IACxB,IAAI,eAAe,GAAG,CAAC,CAAC;IAExB,2DAA2D;IAC3D,IAAI,KAAK,CAAC;IACV,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;QAC1C,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC;YACvB,eAAe,EAAE,CAAC;QACpB,CAAC;aAAM,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC;YAC5B,eAAe,EAAE,CAAC;QACpB,CAAC;IACH,CAAC;IACD,qCAAqC;IACrC,IAAI,eAAe,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9B,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YACtB,GAAG,IAAI,IAAI,CAAC;QACd,CAAC;aAAM,IAAI,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAC9B,GAAG,IAAI,GAAG,CAAC;QACb,CAAC;aAAM,CAAC;YACN,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;QAC9C,CAAC;IACH,CAAC;SAAM,IAAI,eAAe,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QACrC,GAAG,IAAI,GAAG,CAAC;IACb,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,QAAyB;;IACtD,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3C,OAAO,CAAA,MAAA,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,0CAAE,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,KAAI,MAAM,CAAC;IACzE,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
var SvgAtom = function (props) { return (React.createElement("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 25" }, props),
|
|
4
|
-
React.createElement("path", { fill: "
|
|
4
|
+
React.createElement("path", { fill: "#000", fillRule: "evenodd", d: "M14.974 2.284c.831-.248 1.733-.268 2.526.19.793.458 1.227 1.249 1.428 2.093.2.841.196 1.827.047 2.866-.029.196-.065.396-.104.599.196.068.387.137.571.21.975.39 1.83.88 2.46 1.474C22.531 10.313 23 11.084 23 12c0 .915-.468 1.687-1.099 2.283-.628.594-1.484 1.084-2.459 1.473-.184.074-.375.143-.57.211.038.204.074.404.103.6.15 1.039.153 2.025-.047 2.866-.201.844-.635 1.635-1.428 2.093-.793.458-1.695.438-2.526.19-.83-.247-1.681-.743-2.506-1.392a12.997 12.997 0 0 1-.468-.389c-.157.136-.312.266-.468.389-.825.649-1.677 1.145-2.506 1.392-.831.248-1.733.268-2.526-.19-.793-.458-1.227-1.249-1.428-2.093-.2-.841-.196-1.827-.047-2.866.029-.196.064-.396.103-.6a13.01 13.01 0 0 1-.57-.21c-.975-.39-1.83-.88-2.46-1.474C1.469 13.687 1 12.915 1 12c0-.916.468-1.687 1.099-2.284.628-.594 1.484-1.083 2.459-1.473.184-.074.374-.143.57-.211-.04-.203-.074-.403-.103-.599-.15-1.039-.153-2.025.047-2.866.201-.844.635-1.635 1.428-2.093.793-.458 1.695-.438 2.526-.19.83.247 1.681.743 2.506 1.392.156.123.312.253.468.388.156-.135.312-.265.468-.388.825-.649 1.677-1.145 2.506-1.392ZM7.06 16.502a10.7 10.7 0 0 0-.056.35c-.128.89-.11 1.605.013 2.118.121.51.319.73.482.825.163.094.452.155.955.005.506-.15 1.134-.492 1.84-1.049.092-.07.182-.146.274-.223a21.574 21.574 0 0 1-1.368-1.683 21.558 21.558 0 0 1-2.14-.343Zm9.878 0c-.677.145-1.394.26-2.141.343a21.577 21.577 0 0 1-1.368 1.683c.092.077.183.152.274.224.707.556 1.335.898 1.84 1.048.504.15.793.089.956-.006.163-.094.36-.314.482-.824.123-.513.141-1.229.013-2.119a10.715 10.715 0 0 0-.056-.35ZM12 17l-.114-.002.113.127.114-.127L12 17Zm0-8c-.582 0-1.15.022-1.698.061A23.841 23.841 0 0 0 8.605 12a23.888 23.888 0 0 0 1.697 2.939 23.855 23.855 0 0 0 3.395 0 23.915 23.915 0 0 0 1.697-2.94 23.902 23.902 0 0 0-1.697-2.937A23.853 23.853 0 0 0 12 9Zm4.33 5.5c-.019.033-.04.065-.058.098l.168-.035-.054-.163c-.02.033-.037.067-.056.1Zm-8.77.063.168.034-.058-.097-.057-.1-.053.163Zm10.808-4.59c-.212.66-.47 1.338-.772 2.027.301.688.56 1.366.772 2.025.113-.041.224-.082.331-.125.835-.334 1.445-.708 1.828-1.07.381-.36.473-.642.473-.83 0-.19-.092-.47-.473-.83-.383-.363-.993-.737-1.828-1.07a10.657 10.657 0 0 0-.33-.127Zm-12.737 0c-.113.041-.223.083-.33.126-.835.334-1.445.708-1.828 1.07-.381.36-.473.642-.473.83 0 .19.092.47.473.83.383.363.993.737 1.828 1.071.107.043.217.084.33.125.212-.659.471-1.337.772-2.025a21.546 21.546 0 0 1-.772-2.027Zm1.929-.537.053.162.057-.098.058-.098-.168.034Zm8.77.064.056.098.053-.162-.168-.035.06.099ZM8.455 4.2c-.503-.15-.792-.089-.955.006-.163.094-.36.314-.482.824-.123.513-.141 1.229-.013 2.119.016.114.035.23.056.349a21.543 21.543 0 0 1 2.14-.345c.446-.605.904-1.17 1.368-1.683-.091-.077-.183-.15-.273-.221-.707-.557-1.335-.898-1.84-1.05Zm8.045.006c-.163-.095-.452-.156-.955-.006-.506.15-1.134.492-1.84 1.049-.091.07-.184.144-.275.221a21.56 21.56 0 0 1 1.368 1.683c.747.083 1.464.199 2.14.345.021-.119.04-.235.057-.349.128-.89.11-1.606-.013-2.12-.121-.51-.319-.73-.482-.823ZM11.887 7 12 7h.112A17.69 17.69 0 0 0 12 6.874L11.887 7Z", clipRule: "evenodd" }))); };
|
|
5
5
|
export default SvgAtom;
|
|
6
6
|
//# sourceMappingURL=Atom.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Atom.js","sourceRoot":"","sources":["../../../../src/icons/actions/Atom.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,IAAM,OAAO,GAAG,UAAC,KAA8B,IAAK,OAAA,CAClD,sCACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,IACf,KAAK;IAET,8BACE,IAAI,EAAC,
|
|
1
|
+
{"version":3,"file":"Atom.js","sourceRoot":"","sources":["../../../../src/icons/actions/Atom.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,IAAM,OAAO,GAAG,UAAC,KAA8B,IAAK,OAAA,CAClD,sCACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,IACf,KAAK;IAET,8BACE,IAAI,EAAC,MAAM,EACX,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,s6FAAs6F,EACx6F,QAAQ,EAAC,SAAS,GAClB,CACE,CACP,EAhBmD,CAgBnD,CAAC;AACF,eAAe,OAAO,CAAC"}
|