dsh-quick-phrases 0.6.0 → 0.9.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/README.md +18 -2
- package/client.js +559 -98
- package/cordis.patch.yml +6 -1
- package/docs/DETAIL.de.md +89 -0
- package/docs/DETAIL.en.md +9 -7
- package/docs/DETAIL.es.md +89 -0
- package/docs/DETAIL.fr.md +89 -0
- package/docs/DETAIL.md +9 -7
- package/docs/DETAIL.pt.md +89 -0
- package/docs/DETAIL.ru.md +89 -0
- package/docs/images/dock-icons-expanded.png +0 -0
- package/docs/images/dock-icons-folded.png +0 -0
- package/docs/images/settings-preview-compact.png +0 -0
- package/docs/images/settings-preview-small-scrolled.png +0 -0
- package/docs/images/settings-preview-small.png +0 -0
- package/docs/images/settings-preview-star-link.png +0 -0
- package/docs/images/settings-preview-star.png +0 -0
- package/docs/images/settings-preview-wide.png +0 -0
- package/index.js +36 -1
- package/locale/de.json +7 -0
- package/locale/en.json +1 -1
- package/locale/es.json +7 -0
- package/locale/fr.json +7 -0
- package/locale/pt.json +7 -0
- package/locale/ru.json +7 -0
- package/locale/zh.json +1 -1
- package/package.json +4 -1
package/index.js
CHANGED
|
@@ -4,5 +4,40 @@
|
|
|
4
4
|
* The feature is entirely client-side (phrase chips under the composer plus a
|
|
5
5
|
* Settings section that edits them), so the Host row only has to exist for the
|
|
6
6
|
* bundle to activate. See client.js for the UI.
|
|
7
|
+
*
|
|
8
|
+
* NOTE: `Config` is declarative metadata shown by the plugin manager. The
|
|
9
|
+
* client bundle has no bridge that reads the Host row's config, so changing a
|
|
10
|
+
* value here does not drive the client behavior. Adjust the behavior in the
|
|
11
|
+
* "Settings -> Quick phrases" section, which persists to localStorage.
|
|
7
12
|
*/
|
|
8
|
-
|
|
13
|
+
import z from '@deepseek-ai/schemastery'
|
|
14
|
+
|
|
15
|
+
export const Config = z.object({
|
|
16
|
+
// Where the phrase row lives; mirrors client.js PLACEMENTS.
|
|
17
|
+
placement: z
|
|
18
|
+
.union([z.const('composer-dock'), z.const('input-dock'), z.const('tool-right')])
|
|
19
|
+
.default('composer-dock')
|
|
20
|
+
.description('Where the phrase row appears'),
|
|
21
|
+
// What a chip click does; mirrors client.js CLICK_MODES.
|
|
22
|
+
click: z
|
|
23
|
+
.union([z.const('send'), z.const('fill')])
|
|
24
|
+
.default('send')
|
|
25
|
+
.description('What a chip click does'),
|
|
26
|
+
// Phrase row display; mirrors the client.js row-mode dropdown.
|
|
27
|
+
rowMode: z
|
|
28
|
+
.union([z.const('full'), z.const('pill'), z.const('hidden')])
|
|
29
|
+
.default('full')
|
|
30
|
+
.description('Phrase row display mode'),
|
|
31
|
+
// Manager entry at the end of the row; mirrors client.js MANAGE_MODES.
|
|
32
|
+
manage: z
|
|
33
|
+
.union([z.const('text'), z.const('icon'), z.const('hidden')])
|
|
34
|
+
.default('text')
|
|
35
|
+
.description('Manager entry style'),
|
|
36
|
+
// Row behavior when the composer already has content; mirrors client.js AUTO_HIDE_MODES.
|
|
37
|
+
autoHide: z
|
|
38
|
+
.union([z.const('fold'), z.const('keep')])
|
|
39
|
+
.default('fold')
|
|
40
|
+
.description('Behavior when the input has content'),
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
export function apply(ctx, config) {}
|
package/locale/de.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Schnellphrasen",
|
|
4
|
+
"description": "Eine Reihe von Schnellphrasen-Schaltflächen neben dem Eingabefeld; Beschriftung und gesendeter Text jeder Schaltfläche werden getrennt bearbeitet. Unter „Einstellungen → Schnellphrasen“ lassen sich fünf Optionen umschalten: Position (unter dem Eingabefeld / über dem Eingabefeld / rechts in der Werkzeugleiste, Standard: unter dem Eingabefeld), Beim Klick auf eine Phrase (sofort senden / in das Eingabefeld einfügen, Standard: sofort senden), Phrasenreihe (ganze Reihe anzeigen / zu einer Pille einklappen / vollständig ausblenden, Standard: ganze Reihe anzeigen), Verwaltungszugang (Textschaltfläche / Zahnrad-Symbol / ausgeblendet, Standard: Textschaltfläche) und Wenn das Eingabefeld Inhalt hat (automatisch einklappen / sichtbar lassen, Standard: automatisch einklappen).",
|
|
5
|
+
"detail": "docs/DETAIL.de.md"
|
|
6
|
+
}
|
|
7
|
+
}
|
package/locale/en.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "Quick phrases",
|
|
4
|
-
"description": "A row of phrase chips
|
|
4
|
+
"description": "A row of phrase chips next to the composer; each chip's caption and sent text are edited separately. Under Settings → Quick phrases, five options are available: Position (below the composer / above the composer / composer tool row, default below), On click (send right away / fill the composer, default send right away), Phrase row (show the full row / fold into a pill / hide completely, default show the full row), Manage button (text button / gear icon / hidden, default text button), and When the composer has text (fold automatically / keep it visible, default fold automatically).",
|
|
5
5
|
"detail": "docs/DETAIL.en.md"
|
|
6
6
|
}
|
|
7
7
|
}
|
package/locale/es.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Frases rápidas",
|
|
4
|
+
"description": "Una fila de botones de frases rápidas junto al campo de entrada; el texto del botón y el contenido que se envía se editan por separado. En «Ajustes → Frases rápidas» se pueden cambiar cinco opciones: Posición (debajo del campo de entrada / encima del campo de entrada / a la derecha de la barra de herramientas, por defecto debajo del campo de entrada), Al pulsar una frase (enviar de inmediato / rellenar el campo de entrada, por defecto enviar de inmediato), Fila de frases (mostrar la fila completa / plegarla en una pastilla / ocultarla por completo, por defecto mostrar la fila completa), Botón de gestión (botón de texto / icono de engranaje / oculto, por defecto botón de texto) y Cuando el campo de entrada tiene contenido (plegar automáticamente / mantener visible, por defecto plegar automáticamente).",
|
|
5
|
+
"detail": "docs/DETAIL.es.md"
|
|
6
|
+
}
|
|
7
|
+
}
|
package/locale/fr.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Phrases rapides",
|
|
4
|
+
"description": "Une rangée de boutons de phrases rapides à côté du champ de saisie ; le libellé du bouton et le texte envoyé sont modifiés séparément. Dans « Paramètres → Phrases rapides », cinq options sont disponibles : Position (sous le champ de saisie / au-dessus du champ de saisie / à droite de la barre d'outils, par défaut sous le champ de saisie), Au clic sur une phrase (envoyer immédiatement / insérer dans le champ de saisie, par défaut envoyer immédiatement), Affichage de la rangée (afficher toute la rangée / replier en pastille / masquer complètement, par défaut afficher toute la rangée), Bouton de gestion (bouton texte / icône d'engrenage / masqué, par défaut bouton texte) et Quand le champ de saisie contient du texte (replier automatiquement / garder visible, par défaut replier automatiquement).",
|
|
5
|
+
"detail": "docs/DETAIL.fr.md"
|
|
6
|
+
}
|
|
7
|
+
}
|
package/locale/pt.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Frases rápidas",
|
|
4
|
+
"description": "Uma linha de botões de frases rápidas ao lado do campo de entrada; a legenda do botão e o texto enviado são editados separadamente. Em «Configurações → Frases rápidas», cinco opções podem ser alternadas: Posição (abaixo do campo de entrada / acima do campo de entrada / à direita da barra de ferramentas, por padrão abaixo do campo de entrada), Ao clicar na frase (enviar imediatamente / preencher o campo de entrada, por padrão enviar imediatamente), Linha de frases (mostrar a linha inteira / recolher em uma pílula / ocultar completamente, por padrão mostrar a linha inteira), Entrada de gerenciamento (botão de texto / ícone de engrenagem / oculto, por padrão botão de texto) e Quando o campo de entrada tem conteúdo (recolher automaticamente / manter visível, por padrão recolher automaticamente).",
|
|
5
|
+
"detail": "docs/DETAIL.pt.md"
|
|
6
|
+
}
|
|
7
|
+
}
|
package/locale/ru.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Быстрые фразы",
|
|
4
|
+
"description": "Ряд кнопок быстрых фраз рядом с полем ввода; надпись кнопки и отправляемый текст редактируются отдельно. В разделе «Настройки → Быстрые фразы» можно переключить пять параметров: Положение (под полем ввода / над полем ввода / справа в строке инструментов, по умолчанию под полем ввода), При нажатии на фразу (отправить сразу / вставить в поле ввода, по умолчанию отправить сразу), Отображение строки фраз (показывать всю строку / свернуть в пилюлю / полностью скрыть, по умолчанию показывать всю строку), Вход в управление (текстовая кнопка / значок шестерни / скрыть, по умолчанию текстовая кнопка) и Когда в поле ввода есть текст (сворачивать автоматически / оставлять видимой, по умолчанию сворачивать автоматически).",
|
|
5
|
+
"detail": "docs/DETAIL.ru.md"
|
|
6
|
+
}
|
|
7
|
+
}
|
package/locale/zh.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"meta": {
|
|
3
3
|
"title": "快捷短语",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "在会话输入框旁放一排快捷短语按钮,按钮文字与发送内容分开编辑。在「设置 → 快捷短语」可切换五项行为:显示位置(输入框下方/输入框上方/工具行右侧,默认输入框下方)、点按短语时(直接发送/填入输入框,默认直接发送)、短语行显示(显示整排/收成胶囊/彻底隐藏,默认显示整排)、管理入口(文字按钮/齿轮图标/隐藏入口,默认文字按钮)、输入框有内容时(自动收起/保持显示,默认自动收起)。",
|
|
5
5
|
"detail": "docs/DETAIL.md"
|
|
6
6
|
}
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-quick-phrases",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "DSH 快捷短语:输入框旁一排短语按钮,点按即发送;短语行支持显示整排 / 收成胶囊 / 彻底隐藏三态,管理入口可换齿轮图标或隐藏,输入框有内容时自动收起,单条短语可隐藏;管理页可增删改、拖动排序,显示名称与发送内容分离,显示位置可选。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -28,6 +28,9 @@
|
|
|
28
28
|
"node": ">=20",
|
|
29
29
|
"dsh": "^0.2.2-rc.3"
|
|
30
30
|
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@deepseek-ai/schemastery": "~3.19.0"
|
|
33
|
+
},
|
|
31
34
|
"type": "module",
|
|
32
35
|
"exports": {
|
|
33
36
|
".": "./index.js",
|