tetrons 2.3.95 → 2.3.96
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 +8 -5
- package/dist/index.mjs +8 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -16963,7 +16963,7 @@ function AiGroup({ editor, enabledFeatures }) {
|
|
|
16963
16963
|
}
|
|
16964
16964
|
};
|
|
16965
16965
|
if (!enabledFeatures.includes("voice to text")) return null;
|
|
16966
|
-
return /* @__PURE__ */ import_react18.default.createElement("div", { className: "group flex flex-col gap-2 items-start" }, /* @__PURE__ */ import_react18.default.createElement("div", { className: "flex gap-2 items-center" },
|
|
16966
|
+
return /* @__PURE__ */ import_react18.default.createElement("div", { className: "group flex flex-col gap-2 items-start" }, /* @__PURE__ */ import_react18.default.createElement("div", { className: "flex gap-2 items-center" }, enabledFeatures.includes("voice to text") && !isRecording && /* @__PURE__ */ import_react18.default.createElement(
|
|
16967
16967
|
"button",
|
|
16968
16968
|
{
|
|
16969
16969
|
type: "button",
|
|
@@ -16972,7 +16972,7 @@ function AiGroup({ editor, enabledFeatures }) {
|
|
|
16972
16972
|
title: "Start Voice Input"
|
|
16973
16973
|
},
|
|
16974
16974
|
/* @__PURE__ */ import_react18.default.createElement(import_fa2.FaMicrophone, { size: 18 })
|
|
16975
|
-
),
|
|
16975
|
+
), enabledFeatures.includes("voice to text") && isRecording && /* @__PURE__ */ import_react18.default.createElement(
|
|
16976
16976
|
"button",
|
|
16977
16977
|
{
|
|
16978
16978
|
type: "button",
|
|
@@ -17190,9 +17190,12 @@ function TetronsToolbar({
|
|
|
17190
17190
|
AiGroup,
|
|
17191
17191
|
{
|
|
17192
17192
|
editor,
|
|
17193
|
-
enabledFeatures:
|
|
17194
|
-
|
|
17195
|
-
|
|
17193
|
+
enabledFeatures: [
|
|
17194
|
+
...version === "platinum" ? ["ai"] : [],
|
|
17195
|
+
...effectiveAddOns.filter(
|
|
17196
|
+
(a) => ["ai", "voice to text"].includes(a)
|
|
17197
|
+
)
|
|
17198
|
+
]
|
|
17196
17199
|
}
|
|
17197
17200
|
), effectiveAddOns.some((a) => a === "math" || a === "code") && /* @__PURE__ */ import_react23.default.createElement(
|
|
17198
17201
|
AddOnGroup_default,
|
package/dist/index.mjs
CHANGED
|
@@ -16972,7 +16972,7 @@ function AiGroup({ editor, enabledFeatures }) {
|
|
|
16972
16972
|
}
|
|
16973
16973
|
};
|
|
16974
16974
|
if (!enabledFeatures.includes("voice to text")) return null;
|
|
16975
|
-
return /* @__PURE__ */ React12.createElement("div", { className: "group flex flex-col gap-2 items-start" }, /* @__PURE__ */ React12.createElement("div", { className: "flex gap-2 items-center" },
|
|
16975
|
+
return /* @__PURE__ */ React12.createElement("div", { className: "group flex flex-col gap-2 items-start" }, /* @__PURE__ */ React12.createElement("div", { className: "flex gap-2 items-center" }, enabledFeatures.includes("voice to text") && !isRecording && /* @__PURE__ */ React12.createElement(
|
|
16976
16976
|
"button",
|
|
16977
16977
|
{
|
|
16978
16978
|
type: "button",
|
|
@@ -16981,7 +16981,7 @@ function AiGroup({ editor, enabledFeatures }) {
|
|
|
16981
16981
|
title: "Start Voice Input"
|
|
16982
16982
|
},
|
|
16983
16983
|
/* @__PURE__ */ React12.createElement(FaMicrophone, { size: 18 })
|
|
16984
|
-
),
|
|
16984
|
+
), enabledFeatures.includes("voice to text") && isRecording && /* @__PURE__ */ React12.createElement(
|
|
16985
16985
|
"button",
|
|
16986
16986
|
{
|
|
16987
16987
|
type: "button",
|
|
@@ -17199,9 +17199,12 @@ function TetronsToolbar({
|
|
|
17199
17199
|
AiGroup,
|
|
17200
17200
|
{
|
|
17201
17201
|
editor,
|
|
17202
|
-
enabledFeatures:
|
|
17203
|
-
|
|
17204
|
-
|
|
17202
|
+
enabledFeatures: [
|
|
17203
|
+
...version === "platinum" ? ["ai"] : [],
|
|
17204
|
+
...effectiveAddOns.filter(
|
|
17205
|
+
(a) => ["ai", "voice to text"].includes(a)
|
|
17206
|
+
)
|
|
17207
|
+
]
|
|
17205
17208
|
}
|
|
17206
17209
|
), effectiveAddOns.some((a) => a === "math" || a === "code") && /* @__PURE__ */ React16.createElement(
|
|
17207
17210
|
AddOnGroup_default,
|