@logictan/dsh-easyrewrite 2.6.0 → 2.7.0
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/lib/client.js +5 -5
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -83,7 +83,7 @@ window.__ModuleLoader__.load({
|
|
|
83
83
|
function recallVisualMode() { return getSetting(SETTING_KEYS.visualMode, "simple"); }
|
|
84
84
|
function showOriginalImages() { return getBool("dsh-easyrewrite:showOriginalImages", true); }
|
|
85
85
|
// 行为开关(设置页控制)
|
|
86
|
-
function rewriteOnClick() { return getBool("dsh-easyrewrite:rewriteOnClick",
|
|
86
|
+
function rewriteOnClick() { return getBool("dsh-easyrewrite:rewriteOnClick", false); }
|
|
87
87
|
function editOffShowRecall() { return getBool("dsh-easyrewrite:editOffShowRecall", true); }
|
|
88
88
|
function recallConfirmEnabled() { return getBool("dsh-easyrewrite:recallConfirm", true); }
|
|
89
89
|
|
|
@@ -3849,7 +3849,7 @@ window.__ModuleLoader__.load({
|
|
|
3849
3849
|
),
|
|
3850
3850
|
React.createElement(
|
|
3851
3851
|
"div", { style: actionsStyle },
|
|
3852
|
-
actionButton(
|
|
3852
|
+
actionButton(L.sectionRecall, L.sectionRecall, function (e) {
|
|
3853
3853
|
e.stopPropagation();
|
|
3854
3854
|
// 编辑态直接转撤回:丢弃编辑草稿 → 确认胶囊(首条消息同样走确认,确定后重置对话)
|
|
3855
3855
|
if (isEditPending) writePending(sessionId, null);
|
|
@@ -3879,7 +3879,7 @@ window.__ModuleLoader__.load({
|
|
|
3879
3879
|
"div", { style: rowStyle, "data-dsh-easyrewrite": "user", "data-time-hover-root": true },
|
|
3880
3880
|
renderMessageImagesCompat(msgImages, props),
|
|
3881
3881
|
React.createElement(
|
|
3882
|
-
"div", { className: "dsh-easyrewrite-bubble", style: bubbleStyle, onClick: onBubbleClick, title: L.clickEdit },
|
|
3882
|
+
"div", { className: "dsh-easyrewrite-bubble", style: bubbleStyle, onClick: onBubbleClick, title: rewriteOnClick() ? L.clickEdit : undefined },
|
|
3883
3883
|
text || L.emptyMsg
|
|
3884
3884
|
),
|
|
3885
3885
|
confirming
|
|
@@ -3946,7 +3946,7 @@ window.__ModuleLoader__.load({
|
|
|
3946
3946
|
// 撤回键:rewrite 关闭且二级「关闭时显示撤回键」也关闭 → 隐藏
|
|
3947
3947
|
(!rewriteOnClick() && !editOffShowRecall())
|
|
3948
3948
|
? null
|
|
3949
|
-
: actionButton(
|
|
3949
|
+
: actionButton(L.sectionRecall, L.sectionRecall, function (e) {
|
|
3950
3950
|
e.stopPropagation();
|
|
3951
3951
|
if (pending && pending.type === "recall") {
|
|
3952
3952
|
log("warn", "recall", "已有待处理撤回(单待定约束)");
|
|
@@ -3977,7 +3977,7 @@ window.__ModuleLoader__.load({
|
|
|
3977
3977
|
}
|
|
3978
3978
|
}, iconImg(ICONS.recall, L.recall), "recall-key"),
|
|
3979
3979
|
// 编辑键:rewrite 关闭时显示(与撤回键同时)
|
|
3980
|
-
rewriteOnClick() ? null : actionButton(
|
|
3980
|
+
rewriteOnClick() ? null : actionButton(L.sectionEdit, L.sectionEdit, function (e) {
|
|
3981
3981
|
e.stopPropagation();
|
|
3982
3982
|
enterEdit(e.currentTarget ? e.currentTarget.offsetWidth : 0);
|
|
3983
3983
|
}, iconImg(ICONS.edit, "编辑")),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logictan/dsh-easyrewrite",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "DSH Web内目前最无感的消息撤回、重编辑插件,原版体验,兼容性强,功能简单可开关,设置丰富,现代化轻量ui框架。The most seamless message recall & re-edit plugin for DSH Web — native experience, strong compatibility, simple toggles, rich settings, modern lightweight UI. DSH Web で最もシームレスなメッセージ撤回・再編集プラグイン——ネイティブ体験、高い互換性、シンプルなトグル、充実した設定、モダンで軽量な UI。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|