feat(promptlib): 1.3.1 详情页插入画布后关闭弹窗
validate / validate (push) Canceled after 0s

This commit is contained in:
qiqi committed 2026-11-21 21:34:00 +08:00
1 parent 59588ef4cc
commit b0258f9ab6
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@iwb-plugin/promptlib",
"private": true,
"version": "1.3.0",
"version": "1.3.1",
"description": "提示词库:右栏提示词列表(搜索/分组/收藏/新建编辑/插入画布/复制/删除),数据由宿主 promptlib 能力提供",
"ibwPlugin": {
"id": "promptlib",
+2 -2
View File
@@ -601,7 +601,7 @@
})
})
cp.addEventListener('click', function () { Promise.resolve(api.copy(p.text || '')).then(function (r) { if (r && r.ok === false) notify('复制失败', 'err'); else notify('已复制全文') }) })
ins.addEventListener('click', function () { Promise.resolve(api.insert(p.text || '', p.name || '')).then(function () { notify('已插入画布:' + (p.name || '提示词')) }).catch(function () { notify('插入画布失败', 'err') }) })
ins.addEventListener('click', function () { Promise.resolve(api.insert(p.text || '', p.name || '')).then(function () { notify('已插入画布:' + (p.name || '提示词')); dlg.close() }).catch(function () { notify('插入画布失败', 'err') }) })
footEl.appendChild(del); footEl.appendChild(el('span', { class: 'iwb-drawer-spacer' })); footEl.appendChild(cp); footEl.appendChild(ins)
},
})
@@ -837,7 +837,7 @@
global.IWBPluginHost.register({
id: 'promptlib',
name: '提示词库',
version: '1.3.0',
version: '1.3.1',
apiVersion: 1,
capabilities: ['panels', 'promptlib'],
data: { schemaVersion: 1, maxBytes: 65536 },