@newtonedev/editor 0.1.2 → 0.1.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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/CodeBlock.tsx +1 -1
- package/src/components/EditorHeader.tsx +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2535,7 +2535,7 @@ function EditorHeader({
|
|
|
2535
2535
|
children: STATUS_LABEL[saveStatus]
|
|
2536
2536
|
}
|
|
2537
2537
|
),
|
|
2538
|
-
saveStatus === "error" && /* @__PURE__ */ jsxRuntime.jsx(components.Button, { variant: "
|
|
2538
|
+
saveStatus === "error" && /* @__PURE__ */ jsxRuntime.jsx(components.Button, { variant: "tertiary", semantic: "neutral", size: "sm", icon: "refresh", onPress: onRetry, children: "Retry" }),
|
|
2539
2539
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2540
2540
|
components.Button,
|
|
2541
2541
|
{
|
|
@@ -3282,7 +3282,7 @@ function CopyButton({ text }) {
|
|
|
3282
3282
|
setCopied(true);
|
|
3283
3283
|
setTimeout(() => setCopied(false), 2e3);
|
|
3284
3284
|
}, [text]);
|
|
3285
|
-
return /* @__PURE__ */ jsxRuntime.jsx(components.Button, { variant: "
|
|
3285
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components.Button, { variant: "tertiary", semantic: "neutral", size: "sm", icon: copied ? "check" : "content_copy", onPress: handleCopy, children: copied ? "Copied!" : "Copy" });
|
|
3286
3286
|
}
|
|
3287
3287
|
function CodeBlock({
|
|
3288
3288
|
code
|