@kanyun-ai-infra/band-cli 0.1.1 → 0.2.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.
Files changed (72) hide show
  1. package/bundled/examples/aitutor-tool/band/views/release/package.json +1 -1
  2. package/bundled/examples/aitutor-tool/band/views/tool-preview/package.json +1 -1
  3. package/bundled/examples/analysis/band/views/intake/package.json +1 -1
  4. package/bundled/examples/compliance/band/views/compliance/package.json +1 -1
  5. package/bundled/examples/content-review/band/views/checklist/package.json +1 -1
  6. package/bundled/examples/rush-site/band/views/rush-db/package.json +1 -1
  7. package/bundled/examples/rush-site/band/views/rush-deploy/package.json +1 -1
  8. package/bundled/examples/video/band/views/timeline/package.json +1 -1
  9. package/bundled/kernel/fixture.js +1 -1
  10. package/bundled/kernel/index.js +1 -1
  11. package/bundled/official/activity/package.json +4 -4
  12. package/bundled/official/approval/package.json +4 -4
  13. package/bundled/official/artifacts/package.json +4 -4
  14. package/bundled/official/chat/package.json +4 -4
  15. package/bundled/official/chunks/{chunk-SB74RUTN.js → chunk-DIL5YSVK.js} +1 -1
  16. package/bundled/official/comment/dist/index.js +1 -1
  17. package/bundled/official/comment/package.json +4 -4
  18. package/bundled/official/header/package.json +4 -4
  19. package/bundled/official/home/package.json +4 -4
  20. package/bundled/official/layouts/package.json +4 -4
  21. package/bundled/official/library/dist/index.js +1 -1
  22. package/bundled/official/library/package.json +4 -4
  23. package/bundled/official/members/package.json +4 -4
  24. package/bundled/official/memory/package.json +4 -4
  25. package/bundled/official/native/package.json +2 -2
  26. package/bundled/official/params-form/package.json +4 -4
  27. package/bundled/official/plugins/package.json +4 -4
  28. package/bundled/official/project/dist/index.js +1 -1
  29. package/bundled/official/project/package.json +4 -4
  30. package/bundled/official/queue/package.json +4 -4
  31. package/bundled/official/settings/package.json +4 -4
  32. package/bundled/official/shell/dist/index.js +1 -1
  33. package/bundled/official/shell/package.json +4 -4
  34. package/bundled/official/stages/package.json +4 -4
  35. package/bundled/official/threads/package.json +4 -4
  36. package/bundled/official/turn-bar/package.json +4 -4
  37. package/bundled/official/turn-trace/package.json +4 -4
  38. package/bundled/official/version-switch/dist/index.js +1 -1
  39. package/bundled/official/version-switch/package.json +4 -4
  40. package/bundled/official/viewer-entity/package.json +2 -2
  41. package/bundled/official/viewer-external/package.json +2 -2
  42. package/bundled/official/viewer-image/package.json +2 -2
  43. package/bundled/official/viewer-media/package.json +2 -2
  44. package/bundled/official/viewer-storyboard/package.json +2 -2
  45. package/bundled/official/viewer-text/package.json +4 -4
  46. package/bundled/official/viewer-tool/package.json +2 -2
  47. package/bundled/official/viewer-web/package.json +2 -2
  48. package/bundled/official/viewer-web-app/package.json +2 -2
  49. package/bundled/official/workshops/dist/index.js +2 -2
  50. package/bundled/official/workshops/package.json +4 -4
  51. package/bundled/official/workshops/plugin.yaml +2 -2
  52. package/bundled/skills/band-plugin/references/code.md +2 -2
  53. package/bundled/skills/band-plugin/references/manifest.md +2 -2
  54. package/bundled/skills/band-plugin/references/rules.md +1 -0
  55. package/bundled/skills/band-plugin/references/testing-publish.md +1 -1
  56. package/bundled/skills/band-plugin/templates/panel/package.json +1 -1
  57. package/dev-host/app.tsx +9 -5
  58. package/dist/bin.js +3 -3
  59. package/dist/build-plugin.d.ts +1 -1
  60. package/dist/build-plugin.js +1 -1
  61. package/dist/{chunk-TQHHHXXU.js → chunk-LGYGWMSY.js} +18 -16
  62. package/dist/{chunk-VTAJX7NN.js → chunk-Q2XJXNVH.js} +16 -9
  63. package/dist/{chunk-JWZU3NOD.js → chunk-XPLYTHNX.js} +1 -1
  64. package/dist/{dev-server-SB5FMSVP.js → dev-server-Q7NTJ3QD.js} +19 -4
  65. package/dist/fixture.d.ts +11 -0
  66. package/dist/index.d.ts +2 -2
  67. package/dist/index.js +3 -3
  68. package/dist/vite.d.ts +1 -1
  69. package/dist/vite.js +2 -2
  70. package/dist/{workshop-repo-Uq6blxyt.d.ts → workshop-repo-DqoVdcGu.d.ts} +9 -9
  71. package/package.json +9 -7
  72. package/src/dev-managers.ts +16 -0
@@ -1 +1 @@
1
- import{activePair}from"../../chunks/chunk-SB74RUTN.js";import"../../chunks/chunk-N6N56MWF.js";import"../../chunks/chunk-TWQQ2CCT.js";import"../../chunks/chunk-JFPQMFKF.js";import{ErrorNote,ExternalImportPanel,Mount,importConnector,importFrom,reactMount,shortTime,useCtxData,useSlotEntries,versionLabel}from"@kanyun-ai-infra/band-plugin-react";import{definePlugin}from"@kanyun-ai-infra/band-plugin-sdk";import{useEffect,useMemo,useState,useSyncExternalStore}from"react";import{jsx,jsxs}from"react/jsx-runtime";if(typeof document!=="undefined"&&document.head){const css="/* src/version-switch.css */\n.band-version-switch {\n display: flex;\n align-items: center;\n gap: 8px;\n flex-wrap: wrap;\n padding: 10px 14px 4px;\n}\n:where([data-band-page=review]) .band-version-switch {\n padding: 0;\n}\n.band-version-switch:where(.compact) {\n padding: 0;\n flex-wrap: nowrap;\n}\n@media (max-width: 860px) {\n .band-version-switch:where(.compact) {\n flex-wrap: wrap;\n min-width: 0;\n max-width: 100%;\n }\n .band-version-switch:where(.compact) .band-version-switch-picker {\n max-width: 100%;\n }\n .band-version-switch:where(.compact) .band-version-switch-select.select {\n max-width: 100%;\n }\n}\n.band-version-switch-name {\n font-weight: 600;\n}\n.band-version-switch-select.select {\n max-width: min(100%, 420px);\n min-height: 32px;\n border-radius: 8px;\n}\n.band-version-switch-old {\n font-size: var(--fs-dense);\n color: var(--warn);\n background: var(--warn-soft);\n padding: 5px 8px;\n border-radius: 7px;\n}\n.band-version-switch-spacer {\n flex: 1;\n}\n.band-version-switch-actions {\n display: flex;\n align-items: center;\n}\n.band-version-switch-picker {\n position: relative;\n min-width: 0;\n}\n.band-version-switch-import {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 20;\n width: min(340px, calc(100vw - 32px));\n padding: 14px;\n background: var(--panel);\n border-radius: var(--r-xl);\n box-shadow: var(--shadow-pop);\n}\n.band-version-switch:where(:has(.band-version-switch-notice)) {\n flex-wrap: wrap;\n}\n.band-version-switch-notice {\n flex-basis: 100%;\n max-width: 340px;\n color: var(--muted);\n font-size: var(--fs-ui);\n}\n.band-version-switch > :where(.btn) {\n min-height: 32px;\n border-radius: 8px;\n}\n";let el=document.head.querySelector('style[data-band-style="@kanyun-ai-infra/band-version-switch"]');if(!el){el=document.createElement("style");el.setAttribute("data-band-style","@kanyun-ai-infra/band-version-switch");document.head.prepend(el)}el.textContent=css}var noSubscribe=()=>()=>{};var ACTIONS_SLOT="@kanyun-ai-infra/band-version-switch/actions";var src_default=definePlugin({surfaces:{"version-switch":reactMount((ctx,props)=>jsx(VersionBar,{ctx,artifactId:props.owner.artifactId,artifactName:props.owner.artifactName,compare:props.owner.compare,onVersionChange:props.owner.onVersionChange,compact:props.config.compact===true},props.owner.artifactId))}});function ActionsSlot({ctx,artifactId}){const entries=useSlotEntries(ctx,ACTIONS_SLOT);if(entries.length===0)return null;return jsx("span",{className:"band-version-switch-actions","data-band-slot":ACTIONS_SLOT,children:entries.map(e=>jsx(Mount,{mount:el=>ctx.slots.mount(el,ACTIONS_SLOT,{key:e.key,owner:{projectId:ctx.project.id,artifactId}}),deps:[ctx,artifactId,e.key]},e.key))})}function VersionBar({ctx,artifactId,artifactName,compare,compact=false,onVersionChange}){const versions=useCtxData(ctx,()=>ctx.version.list(artifactId),[artifactId],"version.*");const[current,setCurrent]=useState(ctx.version.current());useEffect(()=>ctx.version.subscribe(setCurrent),[ctx]);const[imported,setImported]=useState(null);const[notice,setNotice]=useState("");const persisted=versions.data??[];const list=imported&&!persisted.some(v=>v.id===imported.id)?[...persisted,imported]:persisted;const latest=list.at(-1);const shown=current?list.find(v=>v.id===current.id)??current:latest??null;const old=!!shown&&!!latest&&shown.id!==latest.id;const artifacts=useCtxData(ctx,()=>ctx.artifacts.list(),[],"version.*");const artifact=artifacts.data?.find(a=>a.id===artifactId);const[importOpen,setImportOpen]=useState(false);const[importBusy,setImportBusy]=useState(false);const read=ctx.attachments.importExternal;const connections=ctx.app.data.write?.personalConnections;const canImport=artifact?.storage==="external"&&(artifact.key??"main")==="main"&&ctx.project.access==="member"&&ctx.member.can("submit-change");const via=importConnector(artifact?.source);const source=useMemo(()=>{if(!canImport||!read||!connections&&!via.exchange||!artifact?.runId||!artifact.stage)return void 0;const target={runId:artifact.runId,stage:artifact.stage,type:artifact.artifactType};return{label:via.label,connected:async()=>via.exchange||connections!==void 0&&(await connections.list()).some(c=>c.connector===via.connector&&c.status==="active"),manage:()=>ctx.app.navigate({page:"@kanyun-ai-infra/band-settings/connections"}),read:async ref=>{const result=await read({connector:via.connector,ref,target});if(result.kind==="versions"&&result.versions.length===0)return null;const version=result.kind==="versions"?result.versions.find(v=>v.artifactId===artifactId):void 0;if(!version)throw new Error("\u5BFC\u5165\u6CA1\u6709\u8FD4\u56DE\u5F53\u524D\u4EA7\u7269\u7684\u7248\u672C\uFF0C\u8BF7\u68C0\u67E5\u94FE\u63A5\u540E\u91CD\u65B0\u5BFC\u5165");return version}}},[ctx,canImport,read,connections,artifact?.runId,artifact?.stage,artifact?.artifactType,artifactId,via.connector,via.label,via.exchange]);const prev=shown?list[list.findIndex(v=>v.id===shown.id)-1]:void 0;const pair=useSyncExternalStore(compare?.subscribe??noSubscribe,()=>compare?.get()??null,()=>null);const comparing=!!compare&&activePair(pair,shown)!==null;return jsxs("div",{className:compact?"band-version-switch compact":"band-version-switch",children:[artifactName&&jsx("b",{className:"band-version-switch-name",children:artifactName}),(list.length>0||source)&&jsxs("span",{className:"band-version-switch-picker",children:[jsxs("select",{"aria-label":"\u7248\u672C",className:"select band-version-switch-select","data-band-guide":"versions",disabled:importBusy,value:shown?.id??"",onChange:e=>{if(e.target.value==="import-external"){setNotice("");setImportOpen(true);return}const v=list.find(x=>x.id===e.target.value)??null;ctx.collab.showVersion(v&&v.id===latest?.id?null:v);if(v)onVersionChange?.(v.id)},children:[!shown&&jsx("option",{value:"",children:"\u8FD8\u6CA1\u6709\u7248\u672C"}),[...list].reverse().map(v=>jsxs("option",{value:v.id,children:[versionLabel(v),typeof v.meta?.note==="string"?` \xB7 ${v.meta.note}`:""," \xB7"," ",shortTime(v.createdAt),v.id===latest?.id?" \xB7 \u6700\u65B0":""]},v.id)),source&&jsx("option",{value:"import-external",children:importFrom(via.label,"\u5BFC\u5165\u65B0\u7248\u672C")})]}),importOpen&&source&&jsx("div",{className:"band-version-switch-import",children:jsx(ExternalImportPanel,{source,onAdd:version=>{if(version===null){setNotice("\u5FEB\u7167\u4E0E\u5DF2\u6709\u7248\u672C\u5185\u5BB9\u76F8\u540C\uFF0C\u6CA1\u6709\u4EA7\u751F\u65B0\u7248\u672C");return}setImported({...version,meta:{...version.meta,label:version.meta?.label??"\u65B0\u7248\u672C"}});ctx.collab.showVersion(version);onVersionChange?.(version.id);versions.reload()},onClose:()=>setImportOpen(false),onBusy:setImportBusy})})]}),old&&shown&&jsx("span",{className:"band-version-switch-old",title:compact?`\u53EA\u8BFB\u67E5\u770B ${versionLabel(shown)}\uFF1B\u53EF\u5728\u8FD9\u4E00\u7248\u8BC4\u8BBA\uFF1B\u56DE\u5230\u6700\u65B0\u7248\u624D\u80FD\u7F16\u8F91`:void 0,children:compact?"\u53EA\u8BFB":`\u53EA\u8BFB\u67E5\u770B ${versionLabel(shown)}\uFF1B\u53EF\u5728\u8FD9\u4E00\u7248\u8BC4\u8BBA\uFF1B\u56DE\u5230\u6700\u65B0\u7248\u624D\u80FD\u7F16\u8F91`}),!compact&&jsx("span",{className:"band-version-switch-spacer"}),old&&jsx("button",{type:"button",className:"btn sm",onClick:()=>{ctx.collab.showVersion(null);if(latest)onVersionChange?.(latest.id)},children:"\u56DE\u5230\u6700\u65B0"}),compare&&(prev||comparing)&&jsx("button",{type:"button",className:comparing?"btn primary sm":"btn sm",title:comparing?"\u4E5F\u53EF\u4EE5\u6309 Esc":`\u548C\u4E0A\u4E00\u7248 ${prev?versionLabel(prev):""} \u5E76\u6392\u770B`,onClick:()=>compare.set(comparing||!prev||!shown?null:{against:prev,with:shown.id}),children:comparing?"\u9000\u51FA\u5BF9\u6BD4":`\u5BF9\u6BD4 ${prev?versionLabel(prev):""}`}),!comparing&&jsx(ActionsSlot,{ctx,artifactId}),notice&&jsx("output",{className:"band-version-switch-notice",children:notice}),jsx(ErrorNote,{retry:artifacts.reload,children:artifacts.error}),jsx(ErrorNote,{retry:versions.reload,children:versions.error})]})}export{ACTIONS_SLOT,VersionBar,src_default as default,versionLabel};
1
+ import{activePair}from"../../chunks/chunk-DIL5YSVK.js";import"../../chunks/chunk-N6N56MWF.js";import"../../chunks/chunk-TWQQ2CCT.js";import"../../chunks/chunk-JFPQMFKF.js";import{ErrorNote,ExternalImportPanel,Mount,importConnector,importFrom,reactMount,shortTime,useCtxData,useSlotEntries,versionLabel}from"@kanyun-ai-infra/band-plugin-react";import{definePlugin}from"@kanyun-ai-infra/band-plugin-sdk";import{useEffect,useMemo,useState,useSyncExternalStore}from"react";import{jsx,jsxs}from"react/jsx-runtime";if(typeof document!=="undefined"&&document.head){const css="/* src/version-switch.css */\n.band-version-switch {\n display: flex;\n align-items: center;\n gap: 8px;\n flex-wrap: wrap;\n padding: 10px 14px 4px;\n}\n:where([data-band-page=review]) .band-version-switch {\n padding: 0;\n}\n.band-version-switch:where(.compact) {\n padding: 0;\n flex-wrap: nowrap;\n}\n@media (max-width: 860px) {\n .band-version-switch:where(.compact) {\n flex-wrap: wrap;\n min-width: 0;\n max-width: 100%;\n }\n .band-version-switch:where(.compact) .band-version-switch-picker {\n max-width: 100%;\n }\n .band-version-switch:where(.compact) .band-version-switch-select.select {\n max-width: 100%;\n }\n}\n.band-version-switch-name {\n font-weight: 600;\n}\n.band-version-switch-select.select {\n max-width: min(100%, 420px);\n min-height: 32px;\n border-radius: 8px;\n}\n.band-version-switch-old {\n font-size: var(--fs-dense);\n color: var(--warn);\n background: var(--warn-soft);\n padding: 5px 8px;\n border-radius: 7px;\n}\n.band-version-switch-spacer {\n flex: 1;\n}\n.band-version-switch-actions {\n display: flex;\n align-items: center;\n}\n.band-version-switch-picker {\n position: relative;\n min-width: 0;\n}\n.band-version-switch-import {\n position: absolute;\n top: 100%;\n left: 0;\n z-index: 20;\n width: min(340px, calc(100vw - 32px));\n padding: 14px;\n background: var(--panel);\n border-radius: var(--r-xl);\n box-shadow: var(--shadow-pop);\n}\n.band-version-switch:where(:has(.band-version-switch-notice)) {\n flex-wrap: wrap;\n}\n.band-version-switch-notice {\n flex-basis: 100%;\n max-width: 340px;\n color: var(--muted);\n font-size: var(--fs-ui);\n}\n.band-version-switch > :where(.btn) {\n min-height: 32px;\n border-radius: 8px;\n}\n";let el=document.head.querySelector('style[data-band-style="@kanyun-ai-infra/band-version-switch"]');if(!el){el=document.createElement("style");el.setAttribute("data-band-style","@kanyun-ai-infra/band-version-switch");document.head.prepend(el)}el.textContent=css}var noSubscribe=()=>()=>{};var ACTIONS_SLOT="@kanyun-ai-infra/band-version-switch/actions";var src_default=definePlugin({surfaces:{"version-switch":reactMount((ctx,props)=>jsx(VersionBar,{ctx,artifactId:props.owner.artifactId,artifactName:props.owner.artifactName,compare:props.owner.compare,onVersionChange:props.owner.onVersionChange,compact:props.config.compact===true},props.owner.artifactId))}});function ActionsSlot({ctx,artifactId}){const entries=useSlotEntries(ctx,ACTIONS_SLOT);if(entries.length===0)return null;return jsx("span",{className:"band-version-switch-actions","data-band-slot":ACTIONS_SLOT,children:entries.map(e=>jsx(Mount,{mount:el=>ctx.slots.mount(el,ACTIONS_SLOT,{key:e.key,owner:{projectId:ctx.project.id,artifactId}}),deps:[ctx,artifactId,e.key]},e.key))})}function VersionBar({ctx,artifactId,artifactName,compare,compact=false,onVersionChange}){const versions=useCtxData(ctx,()=>ctx.version.list(artifactId),[artifactId],"version.*");const[current,setCurrent]=useState(ctx.version.current());useEffect(()=>ctx.version.subscribe(setCurrent),[ctx]);const[imported,setImported]=useState(null);const[notice,setNotice]=useState("");const persisted=versions.data??[];const list=imported&&!persisted.some(v=>v.id===imported.id)?[...persisted,imported]:persisted;const latest=list.at(-1);const shown=current?list.find(v=>v.id===current.id)??current:latest??null;const old=!!shown&&!!latest&&shown.id!==latest.id;const artifacts=useCtxData(ctx,()=>ctx.artifacts.list(),[],"version.*");const artifact=artifacts.data?.find(a=>a.id===artifactId);const[importOpen,setImportOpen]=useState(false);const[importBusy,setImportBusy]=useState(false);const read=ctx.attachments.importExternal;const connections=ctx.app.data.write?.personalConnections;const canImport=artifact?.storage==="external"&&(artifact.key??"main")==="main"&&ctx.project.access==="member"&&ctx.member.can("submit-change");const via=importConnector(artifact?.source);const source=useMemo(()=>{if(!canImport||!read||!connections&&!via.exchange||!artifact?.runId||!artifact.stage)return void 0;const target={runId:artifact.runId,stage:artifact.stage,type:artifact.artifactType};return{label:via.label,connected:async()=>via.exchange||connections!==void 0&&(await connections.list()).some(c=>c.connector===via.connector&&c.status==="active"),manage:()=>ctx.app.navigate({page:"@kanyun-ai-infra/band-settings/connections"}),read:async ref=>{const result=await read({connector:via.connector,ref,target});if(result.kind==="versions"&&result.versions.length===0)return null;const version=result.kind==="versions"?result.versions.find(v=>v.artifactId===artifactId):void 0;if(!version)throw new Error("\u5BFC\u5165\u6CA1\u6709\u8FD4\u56DE\u5F53\u524D\u4EA7\u7269\u7684\u7248\u672C\uFF0C\u8BF7\u68C0\u67E5\u94FE\u63A5\u540E\u91CD\u65B0\u5BFC\u5165");return version}}},[ctx,canImport,read,connections,artifact?.runId,artifact?.stage,artifact?.artifactType,artifactId,via.connector,via.label,via.exchange]);const prev=shown?list[list.findIndex(v=>v.id===shown.id)-1]:void 0;const pair=useSyncExternalStore(compare?.subscribe??noSubscribe,()=>compare?.get()??null,()=>null);const comparing=!!compare&&activePair(pair,shown)!==null;return jsxs("div",{className:compact?"band-version-switch compact":"band-version-switch",children:[artifactName&&jsx("b",{className:"band-version-switch-name",children:artifactName}),(list.length>0||source)&&jsxs("span",{className:"band-version-switch-picker",children:[jsxs("select",{"aria-label":"\u7248\u672C",className:"select band-version-switch-select","data-band-guide":"versions",disabled:importBusy,value:shown?.id??"",onChange:e=>{if(e.target.value==="import-external"){setNotice("");setImportOpen(true);return}const v=list.find(x=>x.id===e.target.value)??null;ctx.collab.showVersion(v&&v.id===latest?.id?null:v);if(v)onVersionChange?.(v.id)},children:[!shown&&jsx("option",{value:"",children:"\u8FD8\u6CA1\u6709\u7248\u672C"}),[...list].reverse().map(v=>jsxs("option",{value:v.id,children:[versionLabel(v),typeof v.meta?.note==="string"?` \xB7 ${v.meta.note}`:""," \xB7"," ",shortTime(v.createdAt),v.id===latest?.id?" \xB7 \u6700\u65B0":""]},v.id)),source&&jsx("option",{value:"import-external",children:importFrom(via.label,"\u5BFC\u5165\u65B0\u7248\u672C")})]}),importOpen&&source&&jsx("div",{className:"band-version-switch-import",children:jsx(ExternalImportPanel,{source,onAdd:version=>{if(version===null){setNotice("\u5FEB\u7167\u4E0E\u5DF2\u6709\u7248\u672C\u5185\u5BB9\u76F8\u540C\uFF0C\u6CA1\u6709\u4EA7\u751F\u65B0\u7248\u672C");return}setImported({...version,meta:{...version.meta,label:version.meta?.label??"\u65B0\u7248\u672C"}});ctx.collab.showVersion(version);onVersionChange?.(version.id);versions.reload()},onClose:()=>setImportOpen(false),onBusy:setImportBusy})})]}),old&&shown&&jsx("span",{className:"band-version-switch-old",title:compact?`\u53EA\u8BFB\u67E5\u770B ${versionLabel(shown)}\uFF1B\u53EF\u5728\u8FD9\u4E00\u7248\u8BC4\u8BBA\uFF1B\u56DE\u5230\u6700\u65B0\u7248\u624D\u80FD\u7F16\u8F91`:void 0,children:compact?"\u53EA\u8BFB":`\u53EA\u8BFB\u67E5\u770B ${versionLabel(shown)}\uFF1B\u53EF\u5728\u8FD9\u4E00\u7248\u8BC4\u8BBA\uFF1B\u56DE\u5230\u6700\u65B0\u7248\u624D\u80FD\u7F16\u8F91`}),!compact&&jsx("span",{className:"band-version-switch-spacer"}),old&&jsx("button",{type:"button",className:"btn sm",onClick:()=>{ctx.collab.showVersion(null);if(latest)onVersionChange?.(latest.id)},children:"\u56DE\u5230\u6700\u65B0"}),compare&&(prev||comparing)&&jsx("button",{type:"button",className:comparing?"btn primary sm":"btn sm",title:comparing?"\u4E5F\u53EF\u4EE5\u6309 Esc":`\u548C\u4E0A\u4E00\u7248 ${prev?versionLabel(prev):""} \u5E76\u6392\u770B`,onClick:()=>compare.set(comparing||!prev||!shown?null:{against:prev,with:shown.id}),children:comparing?"\u9000\u51FA\u5BF9\u6BD4":`\u5BF9\u6BD4 ${prev?versionLabel(prev):""}`}),!comparing&&jsx(ActionsSlot,{ctx,artifactId}),notice&&jsx("output",{className:"band-version-switch-notice",children:notice}),jsx(ErrorNote,{retry:artifacts.reload,children:artifacts.error}),jsx(ErrorNote,{retry:versions.reload,children:versions.error})]})}export{ACTIONS_SLOT,VersionBar,src_default as default,versionLabel};
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@kanyun-ai-infra/band-version-switch",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "版本切换:在一份产物的各个版本间来回看",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./dist/index.js"
8
8
  },
9
9
  "peerDependencies": {
10
- "@kanyun-ai-infra/band-plugin-sdk": "^1.222.0",
10
+ "@kanyun-ai-infra/band-plugin-sdk": "^2.0.0",
11
11
  "@kanyun-ai-infra/band-project": "*",
12
- "react": "^18.3.1",
13
- "react-dom": "^18.3.1"
12
+ "react": "^19.0.0",
13
+ "react-dom": "^19.0.0"
14
14
  }
15
15
  }
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@kanyun-ai-infra/band-viewer-entity",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
4
4
  "description": "实体集合(角色表这类结构化条目),按条目提意见,新版本里同一条目接住意见",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./index.js"
8
8
  },
9
9
  "peerDependencies": {
10
- "@kanyun-ai-infra/band-plugin-sdk": "^1.222.0",
10
+ "@kanyun-ai-infra/band-plugin-sdk": "^2.0.0",
11
11
  "@kanyun-ai-infra/band-project": "*"
12
12
  }
13
13
  }
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@kanyun-ai-infra/band-viewer-external",
3
- "version": "0.0.2",
3
+ "version": "0.1.0",
4
4
  "description": "外部文档的快照,按文档块提意见,原文改了会标出来",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./index.js"
8
8
  },
9
9
  "peerDependencies": {
10
- "@kanyun-ai-infra/band-plugin-sdk": "^1.222.0",
10
+ "@kanyun-ai-infra/band-plugin-sdk": "^2.0.0",
11
11
  "@kanyun-ai-infra/band-project": "*"
12
12
  }
13
13
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanyun-ai-infra/band-viewer-image",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "description": "图片与候选网格,框选区域提意见,版本并排对比",
5
5
  "type": "module",
6
6
  "exports": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "peerDependencies": {
10
10
  "@kanyun-ai-infra/band-native": "*",
11
- "@kanyun-ai-infra/band-plugin-sdk": "^1.222.0",
11
+ "@kanyun-ai-infra/band-plugin-sdk": "^2.0.0",
12
12
  "@kanyun-ai-infra/band-project": "*"
13
13
  },
14
14
  "peerDependenciesMeta": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanyun-ai-infra/band-viewer-media",
3
- "version": "0.3.8",
3
+ "version": "0.4.0",
4
4
  "description": "音频与视频,按时间点提意见,逐帧对齐",
5
5
  "type": "module",
6
6
  "exports": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "peerDependencies": {
10
10
  "@kanyun-ai-infra/band-native": "*",
11
- "@kanyun-ai-infra/band-plugin-sdk": "^1.222.0",
11
+ "@kanyun-ai-infra/band-plugin-sdk": "^2.0.0",
12
12
  "@kanyun-ai-infra/band-project": "*"
13
13
  },
14
14
  "peerDependenciesMeta": {
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@kanyun-ai-infra/band-viewer-storyboard",
3
- "version": "0.3.6",
3
+ "version": "0.4.0",
4
4
  "description": "分镜镜头表:一行一个镜头(静帧、区间与时长、画面、旁白),按镜头 id 和上一版对比",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./index.js"
8
8
  },
9
9
  "peerDependencies": {
10
- "@kanyun-ai-infra/band-plugin-sdk": "^1.222.0",
10
+ "@kanyun-ai-infra/band-plugin-sdk": "^2.0.0",
11
11
  "@kanyun-ai-infra/band-project": "*",
12
12
  "@kanyun-ai-infra/band-threads": "*",
13
13
  "@kanyun-ai-infra/band-viewer-entity": "*",
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@kanyun-ai-infra/band-viewer-text",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "description": "Markdown 与纯文本,按段落、选中文字提意见",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./dist/index.js"
8
8
  },
9
9
  "peerDependencies": {
10
- "@kanyun-ai-infra/band-plugin-sdk": "^1.222.0",
10
+ "@kanyun-ai-infra/band-plugin-sdk": "^2.0.0",
11
11
  "@kanyun-ai-infra/band-project": "*",
12
- "react": "^18.3.1",
13
- "react-dom": "^18.3.1"
12
+ "react": "^19.0.0",
13
+ "react-dom": "^19.0.0"
14
14
  }
15
15
  }
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@kanyun-ai-infra/band-viewer-tool",
3
- "version": "0.1.5",
3
+ "version": "0.2.0",
4
4
  "description": "教具包查看器:直接体验(投屏、平板、手机三种尺寸)与指令调试,意见挂在画面元素或某条指令上",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./index.js"
8
8
  },
9
9
  "peerDependencies": {
10
- "@kanyun-ai-infra/band-plugin-sdk": "^1.222.0",
10
+ "@kanyun-ai-infra/band-plugin-sdk": "^2.0.0",
11
11
  "@kanyun-ai-infra/band-project": "*"
12
12
  }
13
13
  }
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@kanyun-ai-infra/band-viewer-web",
3
- "version": "0.0.6",
3
+ "version": "0.1.0",
4
4
  "description": "网页类产物:独立预览源里打开,支持元素标注、实时预览与直接编辑",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./dist/index.js"
8
8
  },
9
9
  "peerDependencies": {
10
- "@kanyun-ai-infra/band-plugin-sdk": "^1.222.0",
10
+ "@kanyun-ai-infra/band-plugin-sdk": "^2.0.0",
11
11
  "@kanyun-ai-infra/band-project": "*"
12
12
  }
13
13
  }
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@kanyun-ai-infra/band-viewer-web-app",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Web 应用走查:在项目里内嵌打开加了走查 SDK 的真实页面,按设备尺寸看、点元素提意见",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./index.js"
8
8
  },
9
9
  "peerDependencies": {
10
- "@kanyun-ai-infra/band-plugin-sdk": "^1.222.0",
10
+ "@kanyun-ai-infra/band-plugin-sdk": "^2.0.0",
11
11
  "@kanyun-ai-infra/band-project": "*"
12
12
  }
13
13
  }