chore(plugins): promptlib 1.6.22 市场同步
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m27s

This commit is contained in:
qiqi committed 2026-11-22 22:31:47 +08:00
1 parent 3792081ddd
commit 96c786e8ca
4 files changed
+21 -13

No files matched your search

+3 -3
View File
@@ -44,10 +44,10 @@
"dir": "promptlib",
"main": "main.js",
"style": "styles.css",
"version": "1.6.21",
"version": "1.6.22",
"files": {
"main.js": "a3c340ec7907c2db37d655aa13760214e1e796bd100b3a73ad5e6307cf14a2a3",
"styles.css": "cac78106fe9a6cabc0a944800db048620991d1bab91195a520c3bcc78d2b5cda"
"main.js": "bfca02b84446477e1ad0b75bed99b0a178eb3e75fcfd44e43e0bc6bc87a53edc",
"styles.css": "418edad6a3e37f6bc90e3169651ad02dd12c74b5fc694528d608960ed6b5369f"
}
},
{
+13 -7
View File
@@ -804,17 +804,23 @@
if (st.ghost && st.ghost.parentNode) st.ghost.parentNode.removeChild(st.ghost)
try { document.body.style.cursor = '' } catch (e) { /* ignore */ }
}
// v1.6.22:放置指示改成半透明矩形框(跟手、左上角对齐落点),不再用卡片式幽灵。
function makePlaceGhost (kind) {
var dims = kind === 'ptpl' ? { w: 420, h: 260 } : (kind === 'img' ? { w: 280, h: 180 } : { w: 280, h: 120 })
var box = el('div', { class: 'iwb-plp-placebox' })
box.style.width = dims.w + 'px'
box.style.height = dims.h + 'px'
box.appendChild(el('div', { class: 'iwb-plp-placebox-t', text: '点击放置' }))
return box
}
function beginPlacement (kind, payload) {
cancelPlacement()
var ghost = makeDragGhost(payload)
ghost.classList.add('iwb-plp-placeghost')
var hint = kind === 'img' ? '点击画布放置封面图片 · Esc 取消' : (kind === 'ptpl' ? '点击画布放置模板节点 · Esc 取消' : '点击画布放置提示词 · Esc 取消')
ghost.appendChild(el('div', { class: 'iwb-plp-placehint', text: hint }))
var ghost = makePlaceGhost(kind)
document.body.appendChild(ghost)
var st = { ghost: ghost, kind: kind, payload: payload }
st.move = function (e) {
ghost.style.left = (e.clientX + 14) + 'px'
ghost.style.top = (e.clientY + 14) + 'px'
ghost.style.left = e.clientX + 'px'
ghost.style.top = e.clientY + 'px'
}
st.down = function (e) {
var c = document.querySelector('.iwb-canvas')
@@ -1650,7 +1656,7 @@
global.IWBPluginHost.register({
id: 'promptlib',
name: '提示词库',
version: '1.6.21',
version: '1.6.22',
apiVersion: 1,
capabilities: ['panels', 'promptlib', 'nodeTypes', 'canvas', 'canvasWrite'],
data: { schemaVersion: 3, maxBytes: 4 * 1024 * 1024 },
+3 -3
View File
@@ -1,7 +1,7 @@
{
"id": "promptlib",
"name": "提示词库",
"version": "1.6.21",
"version": "1.6.22",
"apiVersion": 1,
"main": "main.js",
"style": "styles.css",
@@ -13,7 +13,7 @@
"提示词"
],
"files": {
"main.js": "a3c340ec7907c2db37d655aa13760214e1e796bd100b3a73ad5e6307cf14a2a3",
"styles.css": "cac78106fe9a6cabc0a944800db048620991d1bab91195a520c3bcc78d2b5cda"
"main.js": "bfca02b84446477e1ad0b75bed99b0a178eb3e75fcfd44e43e0bc6bc87a53edc",
"styles.css": "418edad6a3e37f6bc90e3169651ad02dd12c74b5fc694528d608960ed6b5369f"
}
}
+2
View File
@@ -391,3 +391,5 @@ box-shadow: 0 24px 60px rgba(0,0,0,.32);
body.iwb-plp-dragging, body.iwb-plp-dragging *{user-select:none!important;-webkit-user-select:none!important}
.iwb-plp-placeghost{border-style:dashed!important;pointer-events:none}
.iwb-plp-placehint{font-size:10.5px;color:var(--iwb-plp-accent,#5a4bd0);margin-top:2px}
.iwb-plp-placebox{position:fixed;left:-9999px;top:0;z-index:99999;pointer-events:none;border:2px dashed var(--iwb-plp-accent,#6b4dff);border-radius:12px;background:color-mix(in srgb,var(--iwb-plp-accent,#6b4dff) 9%,transparent);display:flex;align-items:center;justify-content:center;box-shadow:0 10px 26px rgba(30,20,80,.10)}
.iwb-plp-placebox-t{font-size:12px;color:var(--iwb-plp-accent,#5a3fd0);background:rgba(255,255,255,.82);border-radius:999px;padding:3px 10px}