@dust-tt/sparkle 0.2.140 → 0.2.141
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 +12 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +12 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -76884,7 +76884,18 @@ function Markdown(_a) {
|
|
|
76884
76884
|
React__default.createElement("blockquote", { className: "s-md:pl-8 s-md:mx-10 s-mx-4 s-my-8 s-border-l-4 s-border-gray-500 s-py-4 s-pl-4 s-italic" },
|
|
76885
76885
|
React__default.createElement("div", { className: "s-text-lg s-font-medium" }, children))),
|
|
76886
76886
|
childrenContent && (React__default.createElement("div", { className: "s-absolute s-right-2 s-top-2 s-mx-2 s-rounded-xl s-bg-structure-50" },
|
|
76887
|
-
React__default.createElement(IconButton, { variant: "tertiary", size: "xs", icon: isCopied ? SvgClipboardCheck$1 : SvgClipboard$1, onClick:
|
|
76887
|
+
React__default.createElement(IconButton, { variant: "tertiary", size: "xs", icon: isCopied ? SvgClipboardCheck$1 : SvgClipboard$1, onClick: function (e) { return __awaiter(_this, void 0, void 0, function () {
|
|
76888
|
+
return __generator(this, function (_a) {
|
|
76889
|
+
switch (_a.label) {
|
|
76890
|
+
case 0:
|
|
76891
|
+
e.preventDefault();
|
|
76892
|
+
return [4 /*yield*/, handleCopy()];
|
|
76893
|
+
case 1:
|
|
76894
|
+
_a.sent();
|
|
76895
|
+
return [2 /*return*/];
|
|
76896
|
+
}
|
|
76897
|
+
});
|
|
76898
|
+
}); } })))));
|
|
76888
76899
|
},
|
|
76889
76900
|
}, className: className }, content));
|
|
76890
76901
|
}
|