dev-process-kit 0.0.8 → 0.0.9
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 +1 -0
- package/dist/chunks/shared-7qenhU4J.js +2173 -0
- package/dist/chunks/{shared-Dn4XK7mS.js → shared-8lYUcRvS.js} +25 -15
- package/dist/chunks/shared-BHGClRU3.js +29 -0
- package/dist/chunks/{shared-DNk3phV5.js → shared-BIdQ89rB.js} +1 -1
- package/dist/chunks/{shared-BTlCV660.js → shared-BOFIcKZe.js} +8 -8
- package/dist/chunks/shared-Cia5FdOF.js +1112 -0
- package/dist/chunks/shared-D4czF1TI.js +1252 -0
- package/dist/chunks/{shared-DEdm-PCj.js → shared-D6Yx-euS.js} +2 -2
- package/dist/chunks/{shared-CwwZhA40.js → shared-Dkx_2Lbf.js} +336 -268
- package/dist/chunks/shared-Dn5j0MCU.js +1 -0
- package/dist/chunks/{shared-CupreHTH.js → shared-SGSKyTNs.js} +7 -7
- package/dist/chunks/shared-U2T3astJ.js +1094 -0
- package/dist/chunks/shared-nW8tfMgg.js +556 -0
- package/dist/chunks/{shared-CaLe76va.js → shared-p8037r6P.js} +2 -2
- package/dist/components.js +1 -1
- package/dist/index.js +1 -1
- package/dist/templates/delegation-poker.js +1 -1
- package/dist/templates/event-storming.js +1 -1
- package/dist/templates/example-mapping.js +1 -1
- package/dist/templates/grill.js +1 -1
- package/dist/templates/plain.js +1 -1
- package/dist/templates/prototype.js +1 -1
- package/dist/templates/slides.js +1 -1
- package/dist/templates/task-board.js +1 -1
- package/dist/templates/usm.js +1 -1
- package/dist/templates/whiteboard.js +1 -0
- package/package.json +3 -2
- package/dist/chunks/shared-1AA-0t4O.js +0 -29
- package/dist/chunks/shared-BAePwoKi.js +0 -679
- package/dist/chunks/shared-BYZoeQ97.js +0 -1963
- package/dist/chunks/shared-CSV1HkB2.js +0 -1
- package/dist/chunks/shared-Csmm_KdH.js +0 -761
- package/dist/chunks/shared-VNSWugEg.js +0 -556
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as w,a9 as v,aa as s,ab as o,ac as _,ad as l,at as B,af as E,ag as $,V as j,T as x}from"./shared-BYZoeQ97.js";const r=w({en:{wholePage:"Whole page",sectionGroup:"Section"},ja:{wholePage:"\u30DA\u30FC\u30B8\u5168\u4F53",sectionGroup:"\u30BB\u30AF\u30B7\u30E7\u30F3"}}),O=s({id:B,title:E(l(),$(1))}),c=s({title:o(l(),""),sections:o(_(O),[])}),p=t=>{const e=v(c,t),a=new Set;for(const n of e.sections){if(a.has(n.id))throw new Error(`duplicate section id: ${n.id}`);a.add(n.id)}return{title:e.title,sections:e.sections}},d=()=>({title:"",sections:[]}),i=(t,e)=>t.sections.find(a=>a.id===e),m=t=>t.title===""?"Plain":t.title,u=(t,e,a)=>{switch(a.type){case"section":return i(e,a.id)?.title??a.id;case"page":return t.wholePage;default:return a.id}},g=(t,e,a)=>({title:e.type,targetLabel:u(t,a,e.target),tone:"meta"}),f=t=>`${t.type} ${j(t.target)} ${JSON.stringify(t.payload)}`,h=(t,e)=>e.sections.map(a=>({value:`section:${a.id}`,label:a.title,group:t.sectionGroup})),y=(t,e)=>e,P=(t,e)=>{switch(e.type){case"section":return i(t,e.id)!==void 0;case"page":return!0;default:return!1}},b=t=>{const e=r(t);return{name:"plain",label:"Plain",parseBase:p,emptyBase:d,actions:{},apply:()=>null,hasTarget:P,describe:(a,n)=>g(e,a,n),serialize:f,resolveNavigation:y,commentTargets:a=>h(e,a),title:m}};class T extends x{definitionFor(e){return b(e)}renderRegions(e){return{}}}const S=()=>{customElements.get("dpk-template-plain")||customElements.define("dpk-template-plain",T)},k=Object.freeze(Object.defineProperty({__proto__:null,DpkTemplatePlain:T,definePlainElement:S,describePlainAction:g,emptyPlainBase:d,findSection:i,parsePlainBase:p,plainBaseSchema:c,plainCommentTargets:h,plainDefinitionFor:b,plainHasTarget:P,plainMessages:r,plainTargetLabel:u,plainTitle:m,resolvePlainNavigation:y,serializePlainAction:f},Symbol.toStringTag,{value:"Module"}));export{S as d,k as i};
|