dev-process-kit 0.0.12 → 0.0.14
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/dist/chunks/{shared-CLnfjHCQ.js → shared-BESRsbtm.js} +1 -1
- package/dist/chunks/{shared-DBJaP5gF.js → shared-BFTEmZvI.js} +147 -95
- package/dist/chunks/{shared-BwaDMwUS.js → shared-C2gu-y4m.js} +61 -33
- package/dist/chunks/{shared-DkkBQzIf.js → shared-CE1P_7xs.js} +199 -168
- package/dist/chunks/shared-CGPv8MQ7.js +1049 -0
- package/dist/chunks/shared-CTK76mc_.js +2457 -0
- package/dist/chunks/{shared-BvuW5NtY.js → shared-CmBhMY6X.js} +14 -3
- package/dist/chunks/shared-D4K7KsfJ.js +1 -0
- package/dist/chunks/shared-DD-fi15c.js +1104 -0
- package/dist/chunks/shared-DUEkF1z7.js +572 -0
- package/dist/chunks/{shared-CcrRNZCH.js → shared-Dc_FGuLM.js} +1 -1
- package/dist/chunks/shared-DdefS1nG.js +1 -0
- package/dist/chunks/{shared-C__W71Hw.js → shared-DjOBIYHF.js} +1 -1
- package/dist/chunks/{shared-DYe0OZr-.js → shared-NnvpqsPp.js} +19 -10
- package/dist/chunks/shared-rZQ5j0Kh.js +2683 -0
- package/dist/chunks/{shared-DUq2-pM9.js → shared-wtt8CCP_.js} +184 -134
- 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 -1
- package/package.json +1 -1
- package/dist/chunks/shared-BC5MlWBY.js +0 -2209
- package/dist/chunks/shared-CoDXb-Yj.js +0 -556
- package/dist/chunks/shared-D7CMQLaX.js +0 -2323
- package/dist/chunks/shared-DhwK_dh_.js +0 -1093
- package/dist/chunks/shared-aDPp8Vry.js +0 -1
- package/dist/chunks/shared-xrCdgpNS.js +0 -1
- package/dist/chunks/shared-y3FwoRgh.js +0 -1017
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a0 as
|
|
1
|
+
import{a0 as _,ad as N,ae as f,af as c,ag as k,ah as p,aA as R,aj as G,ak as Y,ai as I,V as u,C as v,h as U,a5 as x,a3 as l,a4 as d,b0 as J,aq as V,ab as W,z as Q,a2 as X,T as w}from"./shared-rZQ5j0Kh.js";const m=_({en:{wholeDeck:"Whole deck",slideGroup:"Slide",outline:"Slides",previous:"Previous slide",next:"Next slide",position:(t,e)=>`Slide ${t} of ${e}`,commentOnSlide:"Comment on this slide",commentPlaceholder:"A question, or what should change (passed to the agent)",addComment:"Add comment",deleteComment:"Delete this comment",submitHint:"\u2318 / Ctrl + Enter",fullscreen:"Full screen",fullscreenHint:"\u2190 \u2192 to move \xB7 Esc to leave",noSlidesBefore:"There are no slides yet. Add them to ",noSlidesAfter:" in the base data."},ja:{wholeDeck:"\u30C7\u30C3\u30AD\u5168\u4F53",slideGroup:"\u30B9\u30E9\u30A4\u30C9",outline:"\u30B9\u30E9\u30A4\u30C9",previous:"\u524D\u306E\u30B9\u30E9\u30A4\u30C9",next:"\u6B21\u306E\u30B9\u30E9\u30A4\u30C9",position:(t,e)=>`${e} \u679A\u4E2D ${t} \u679A\u76EE`,commentOnSlide:"\u3053\u306E\u30B9\u30E9\u30A4\u30C9\u306B\u30B3\u30E1\u30F3\u30C8",commentPlaceholder:"\u8CEA\u554F\u3084\u3001\u5909\u3048\u3066\u307B\u3057\u3044\u3053\u3068\uFF08Agent \u306B\u6E21\u308B\uFF09",addComment:"\u30B3\u30E1\u30F3\u30C8\u3092\u8FFD\u52A0",deleteComment:"\u3053\u306E\u30B3\u30E1\u30F3\u30C8\u3092\u524A\u9664",submitHint:"\u2318 / Ctrl + Enter",fullscreen:"\u5168\u753B\u9762\u8868\u793A",fullscreenHint:"\u2190 \u2192 \u3067\u79FB\u52D5 \xB7 Esc \u3067\u623B\u308B",noSlidesBefore:"\u30B9\u30E9\u30A4\u30C9\u304C\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002base data \u306E ",noSlidesAfter:" \u306B\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002"}}),y=["title","section","content"],Z=f({id:R,layout:c(I(y),"content"),title:G(p(),Y(1)),subtitle:c(p(),""),points:c(k(p()),[])}),$=f({title:c(p(),""),slides:c(k(Z),[])}),S=t=>{const e=N($,t),i=new Set;for(const n of e.slides){if(i.has(n.id))throw new Error(`duplicate slide id: ${n.id}`);i.add(n.id)}return{title:e.title,slides:e.slides}},C=()=>({title:"",slides:[]}),r=(t,e)=>e===void 0?-1:t.slides.findIndex(i=>i.id===e),q=(t,e)=>t.slides[r(t,e)],T=t=>t.title===""?"Slides":t.title,h=(t,e)=>`${e+1}. ${t.title}`,E=(t,e,i)=>{switch(i.type){case"slide":{const n=r(e,i.id),s=e.slides[n];return s===void 0?i.id:h(s,n)}case"page":return t.wholeDeck;default:return i.id}},A=(t,e,i)=>({title:e.type,targetLabel:E(t,i,e.target),tone:"meta"}),z=t=>`${t.type} ${u(t.target)} ${JSON.stringify(t.payload)}`,D=(t,e)=>e.slides.map((i,n)=>({value:u({type:"slide",id:i.id}),label:h(i,n),group:t.slideGroup})),M=(t,e,i)=>{const n=r(e,i.slide),s=e.slides[n];return s===void 0?null:{value:u({type:"slide",id:s.id}),label:h(s,n),group:t.slideGroup}},F=(t,e)=>{const i=t.slides[r(t,e.slide)]??t.slides[0],n={...e};return i?n.slide=i.id:delete n.slide,n},H=(t,e)=>{const i=r(t,e.slide),n=i===-1?0:i,s=t.slides[n];return s===void 0?null:{slide:s,index:n,total:t.slides.length,previous:t.slides[n-1],next:t.slides[n+1]}},ee=(t,e)=>t.filter(i=>i.type===v&&i.target.type==="slide"&&i.target.id===e).map(i=>({id:i.id,body:U(i)})).filter(i=>i.body!==""),L=(t,e)=>{switch(e.type){case"slide":return q(t,e.id)!==void 0;case"page":return!0;default:return!1}},O=t=>{const e=m(t);return{name:"slides",label:"Slides",parseBase:S,emptyBase:C,actions:{},apply:()=>null,hasTarget:L,describe:(i,n)=>A(e,i,n),serialize:z,resolveNavigation:F,navigationFor:(i,n)=>n.type==="slide"?{slide:n.id}:null,commentTargets:i=>D(e,i),currentTarget:(i,n)=>M(e,i,n),title:T}},te={ArrowRight:"next",PageDown:"next",ArrowLeft:"previous",PageUp:"previous",Home:"first",End:"last"},P=t=>t.altKey===!0||t.ctrlKey===!0||t.metaKey===!0||t.shiftKey===!0?null:te[t.key]??null,j=(t,e,i)=>{const n=t.slides.length-1;if(n<0)return;const s=Math.max(r(t,e),0),o={next:Math.min(s+1,n),previous:Math.max(s-1,0),first:0,last:n}[i];return t.slides[o]?.id},ie=(t,e)=>{const{state:i,navigation:n}=t,s=n.slide;return d`
|
|
2
2
|
<nav class="outline" aria-label=${e.outline}>
|
|
3
3
|
<div class="outline-head">
|
|
4
4
|
<span class="dpk-label">${e.outline}</span>
|
|
@@ -16,7 +16,7 @@ import{a0 as N,ac as _,ad as f,ae as c,af as k,ag as p,az as R,ai as G,aj as Y,a
|
|
|
16
16
|
`})}
|
|
17
17
|
</ol>
|
|
18
18
|
</nav>
|
|
19
|
-
`},ne=(t,e,i)=>{const n=
|
|
19
|
+
`},ne=(t,e,i)=>{const n=H(t.state,t.navigation);if(n===null)return d`<div class="deck">
|
|
20
20
|
<p class="deck-empty">${e.noSlidesBefore}<code>slides</code>${e.noSlidesAfter}</p>
|
|
21
21
|
</div>`;const{slide:s,index:o,total:a}=n;return d`
|
|
22
22
|
<div class="deck">
|
|
@@ -66,6 +66,7 @@ import{a0 as N,ac as _,ad as f,ae as c,af as k,ag as p,az as R,ai as G,aj as Y,a
|
|
|
66
66
|
<article
|
|
67
67
|
class="slide"
|
|
68
68
|
data-layout=${t.layout}
|
|
69
|
+
data-dpk-target=${u({type:"slide",id:t.id})}
|
|
69
70
|
aria-roledescription="slide"
|
|
70
71
|
aria-label=${`${e+1}. ${t.title}`}
|
|
71
72
|
>
|
|
@@ -91,7 +92,7 @@ import{a0 as N,ac as _,ad as f,ae as c,af as k,ag as p,az as R,ai as G,aj as Y,a
|
|
|
91
92
|
title=${t.deleteComment}
|
|
92
93
|
@click=${()=>n.onDeleteComment(a.id)}
|
|
93
94
|
>
|
|
94
|
-
${
|
|
95
|
+
${Q()}
|
|
95
96
|
</button>
|
|
96
97
|
</li>`)}
|
|
97
98
|
</ul>`}
|
|
@@ -119,7 +120,7 @@ import{a0 as N,ac as _,ad as f,ae as c,af as k,ag as p,az as R,ai as G,aj as Y,a
|
|
|
119
120
|
</section>
|
|
120
121
|
`},oe=(t,e)=>{const i=t.slides.filter(n=>n.id!==e);return i.length===0?l:d`<div class="parked" aria-hidden="true">
|
|
121
122
|
${i.map(n=>d`<slot name=${`preview:${n.id}`}></slot>`)}
|
|
122
|
-
</div>`},de=
|
|
123
|
+
</div>`},de=X`
|
|
123
124
|
/* ------------------------------------------------------------ outline */
|
|
124
125
|
|
|
125
126
|
.outline-head {
|
|
@@ -286,8 +287,10 @@ import{a0 as N,ac as _,ad as f,ae as c,af as k,ag as p,az as R,ai as G,aj as Y,a
|
|
|
286
287
|
display: flex;
|
|
287
288
|
flex-direction: column;
|
|
288
289
|
gap: 2.2cqw;
|
|
289
|
-
|
|
290
|
+
/* The bottom keeps the last line clear of the page number once it scrolls. */
|
|
291
|
+
padding: 5.5cqw 6.5cqw 6cqw;
|
|
290
292
|
overflow: auto;
|
|
293
|
+
overflow-wrap: anywhere;
|
|
291
294
|
font-size: 2.1cqw;
|
|
292
295
|
line-height: 1.55;
|
|
293
296
|
color: var(--dpk-ink-soft);
|
|
@@ -343,10 +346,15 @@ import{a0 as N,ac as _,ad as f,ae as c,af as k,ag as p,az as R,ai as G,aj as Y,a
|
|
|
343
346
|
margin: 0;
|
|
344
347
|
}
|
|
345
348
|
|
|
349
|
+
/* Over the content, which may scroll beneath it: a backdrop keeps both legible. */
|
|
346
350
|
.slide-number {
|
|
347
351
|
position: absolute;
|
|
348
|
-
right:
|
|
349
|
-
bottom:
|
|
352
|
+
right: 2cqw;
|
|
353
|
+
bottom: 1.6cqw;
|
|
354
|
+
z-index: 1;
|
|
355
|
+
padding: 0.3cqw 0.7cqw;
|
|
356
|
+
border-radius: 999px;
|
|
357
|
+
background: color-mix(in srgb, var(--dpk-paper-raised) 88%, transparent);
|
|
350
358
|
font-family: var(--dpk-mono);
|
|
351
359
|
font-size: 1.2cqw;
|
|
352
360
|
font-variant-numeric: tabular-nums;
|
|
@@ -354,8 +362,9 @@ import{a0 as N,ac as _,ad as f,ae as c,af as k,ag as p,az as R,ai as G,aj as Y,a
|
|
|
354
362
|
}
|
|
355
363
|
|
|
356
364
|
/* The cover: large title, the subtitle beneath, an accent rule on the left. */
|
|
365
|
+
/* \`safe\`: content taller than the slide starts at the top, where scrolling reaches it. */
|
|
357
366
|
.slide[data-layout='title'] .slide-content {
|
|
358
|
-
justify-content: center;
|
|
367
|
+
justify-content: safe center;
|
|
359
368
|
padding-left: 9cqw;
|
|
360
369
|
}
|
|
361
370
|
|
|
@@ -387,7 +396,7 @@ import{a0 as N,ac as _,ad as f,ae as c,af as k,ag as p,az as R,ai as G,aj as Y,a
|
|
|
387
396
|
}
|
|
388
397
|
|
|
389
398
|
.slide[data-layout='section'] .slide-content {
|
|
390
|
-
justify-content: center;
|
|
399
|
+
justify-content: safe center;
|
|
391
400
|
}
|
|
392
401
|
|
|
393
402
|
.slide[data-layout='section'] .slide-title {
|
|
@@ -610,4 +619,4 @@ import{a0 as N,ac as _,ad as f,ae as c,af as k,ag as p,az as R,ai as G,aj as Y,a
|
|
|
610
619
|
transition: none;
|
|
611
620
|
}
|
|
612
621
|
}
|
|
613
|
-
`,le='input, textarea, select, [contenteditable]:not([contenteditable="false"])',re=t=>t instanceof HTMLElement&&(t.isContentEditable||t.matches(le));class B extends w{static{this.styles=[w.styles,de]}#e=new Map;#t={slide:"",count:0};definitionFor(e){return
|
|
622
|
+
`,le='input, textarea, select, [contenteditable]:not([contenteditable="false"])',re=t=>t instanceof HTMLElement&&(t.isContentEditable||t.matches(le));class B extends w{static{this.styles=[w.styles,de]}#e=new Map;#t={slide:"",count:0};definitionFor(e){return O(e)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.#s)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.#s)}renderRegions(e){const i=m(this.locale);return{sidebar:ie(e,i),sidebarHidden:e.state.slides.length===0,main:ne(e,i,{canFullscreen:document.fullscreenEnabled===!0,draftFor:n=>this.#e.get(n)??"",onStep:n=>this.#i(n),onFullscreen:()=>this.#d(),onDraft:(n,s)=>this.#n(n,s),onComment:n=>this.#o(n),onDeleteComment:n=>this.removeAction(n)})}}updated(){super.updated(),this.#a()}#a(){const e=this.renderRoot.querySelector(".slide-comment-list"),i={slide:this.navigation.slide??"",count:e?.childElementCount??0},n=this.#t;this.#t=i,!(e===null||i.slide===n.slide&&i.count<=n.count)&&(e.scrollTop=e.scrollHeight)}#i(e){const i=j(this.derivation.state,this.navigation.slide,e);i!==void 0&&this.navigate({slide:i})}#n(e,i){const n=new Map(this.#e);i===""?n.delete(e):n.set(e,i),this.#e=n,this.requestUpdate()}#o(e){const i=(this.#e.get(e)??"").trim();if(i==="")return;this.dispatch({type:v,target:{type:"slide",id:e},payload:{body:i}}).ok&&this.#n(e,"")}#d(){const e=this.renderRoot.querySelector(".stage");!(e instanceof HTMLElement)||document.fullscreenElement!==null||e.requestFullscreen().catch(()=>{})}#s=e=>{if(e.defaultPrevented)return;const i=P(e);i===null||e.composedPath().some(re)||(e.preventDefault(),this.#i(i))}}const K=()=>{customElements.get("dpk-template-slides")||customElements.define("dpk-template-slides",B)},ce=Object.freeze(Object.defineProperty({__proto__:null,DpkTemplateSlides:B,SLIDE_LAYOUTS:y,defineSlidesElement:K,describeSlidesAction:A,emptySlidesBase:C,findSlide:q,findSlideIndex:r,parseSlidesBase:S,resolveSlidesNavigation:F,serializeSlidesAction:z,slideKeyStep:P,slidePosition:H,slidesBaseSchema:$,slidesCommentTargets:D,slidesCurrentTarget:M,slidesDefinitionFor:O,slidesHasTarget:L,slidesMessages:m,slidesTargetLabel:E,slidesTitle:T,stepSlide:j},Symbol.toStringTag,{value:"Module"}));export{K as d,ce as i};
|