wysimark-lite 0.16.0 → 0.16.1
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.js +40 -40
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8086,7 +8086,7 @@ function Editable2({
|
|
|
8086
8086
|
};
|
|
8087
8087
|
return /* @__PURE__ */ jsxs31("div", { style: { position: "relative" }, children: [
|
|
8088
8088
|
/* @__PURE__ */ jsx59("div", { style: { position: "absolute", top: "5px", right: "25px", zIndex: 10 }, children: /* @__PURE__ */ jsx59(
|
|
8089
|
-
"
|
|
8089
|
+
"div",
|
|
8090
8090
|
{
|
|
8091
8091
|
onClick: handleRawModeToggle,
|
|
8092
8092
|
style: {
|
|
@@ -8103,6 +8103,14 @@ function Editable2({
|
|
|
8103
8103
|
justifyContent: "center"
|
|
8104
8104
|
},
|
|
8105
8105
|
title: isRawMode ? t("switchToVisualEditor") : t("switchToRawMarkdown"),
|
|
8106
|
+
role: "button",
|
|
8107
|
+
tabIndex: 0,
|
|
8108
|
+
onKeyDown: (e) => {
|
|
8109
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
8110
|
+
handleRawModeToggle();
|
|
8111
|
+
e.preventDefault();
|
|
8112
|
+
}
|
|
8113
|
+
},
|
|
8106
8114
|
children: /* @__PURE__ */ jsxs31("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
8107
8115
|
/* @__PURE__ */ jsx59(
|
|
8108
8116
|
"rect",
|