kingkont 0.7.28 → 0.7.30

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/assets/icon.png CHANGED
Binary file
Binary file
Binary file
Binary file
package/assets/logo.icns CHANGED
Binary file
package/index.html CHANGED
@@ -2872,7 +2872,10 @@ function askName(title, placeholder = '', initialValue = '') {
2872
2872
  const cancel = document.createElement('button');
2873
2873
  cancel.textContent = 'Отмена';
2874
2874
  const ok = document.createElement('button');
2875
- ok.textContent = 'Создать'; ok.className = 'primary';
2875
+ // Если поле уже заполнено — это редактирование существующего объекта,
2876
+ // показываем «Сохранить». Иначе создание — «Создать».
2877
+ ok.textContent = initialValue ? 'Сохранить' : 'Создать';
2878
+ ok.className = 'primary';
2876
2879
  row.append(cancel, ok);
2877
2880
  box.append(h, inp, row); overlay.append(box);
2878
2881
  document.body.append(overlay);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kingkont",
3
- "version": "0.7.28",
3
+ "version": "0.7.30",
4
4
  "description": "KingKont \u00b7 Chatium \u2014 \u043d\u043e\u0434-\u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0441\u0446\u0435\u043d \u0441 AI-\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 (\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438/\u0432\u0438\u0434\u0435\u043e/\u0433\u043e\u043b\u043e\u0441/SFX/\u043c\u0443\u0437\u044b\u043a\u0430/\u0442\u0435\u043a\u0441\u0442)",
5
5
  "main": "main.js",
6
6
  "bin": {