dev-process-kit 0.0.12 → 0.0.13
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-DBJaP5gF.js → shared-0MFKKPnB.js} +144 -92
- package/dist/chunks/{shared-DUq2-pM9.js → shared-B2YRwZ0P.js} +99 -60
- package/dist/chunks/{shared-y3FwoRgh.js → shared-B4Mwapvi.js} +88 -62
- package/dist/chunks/shared-BDUe3aT-.js +1 -0
- package/dist/chunks/{shared-BwaDMwUS.js → shared-C1KQ5iU8.js} +55 -32
- package/dist/chunks/{shared-BvuW5NtY.js → shared-CQG0dnvb.js} +15 -5
- package/dist/chunks/{shared-BC5MlWBY.js → shared-CSC14I4g.js} +248 -87
- package/dist/chunks/{shared-D7CMQLaX.js → shared-Cd8A5TjZ.js} +140 -35
- package/dist/chunks/{shared-CcrRNZCH.js → shared-CirHYajF.js} +1 -1
- package/dist/chunks/shared-D4K7KsfJ.js +1 -0
- package/dist/chunks/{shared-DYe0OZr-.js → shared-D7poXZ0z.js} +15 -7
- package/dist/chunks/shared-DO0pUSjw.js +571 -0
- package/dist/chunks/shared-DdefS1nG.js +1 -0
- package/dist/chunks/{shared-C__W71Hw.js → shared-DjmQsa0n.js} +1 -1
- package/dist/chunks/{shared-CLnfjHCQ.js → shared-DklLt1Sc.js} +1 -1
- package/dist/chunks/{shared-DkkBQzIf.js → shared-DrMSORn-.js} +31 -8
- package/dist/chunks/shared-DxAiavwJ.js +1102 -0
- 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-CoDXb-Yj.js +0 -556
- package/dist/chunks/shared-DhwK_dh_.js +0 -1093
- package/dist/chunks/shared-xrCdgpNS.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a0 as r,a3 as a,a4 as o}from"./shared-
|
|
1
|
+
import{a0 as r,a3 as a,a4 as o}from"./shared-CSC14I4g.js";const i=r({en:{comment:"Comment",commentOn:s=>`Comment on ${s}`,submit:"Send",cancel:"Cancel"},ja:{comment:"\u30B3\u30E1\u30F3\u30C8",commentOn:s=>`${s}\u3078\u306E\u30B3\u30E1\u30F3\u30C8`,submit:"\u9001\u4FE1",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB"}}),c=(s,t,n={})=>({body:s,notes:t,submission:s.trim()||null,label:n.label??null,error:n.error??null,key:n.key??null}),p=(s,t,n)=>{const l=()=>{t.submission!==null&&n({kind:"comment",body:t.submission})};return o`<div
|
|
2
2
|
class="comment-pop"
|
|
3
3
|
popover="manual"
|
|
4
4
|
role="dialog"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function l(n){return n===null?1:n===void 0?2:0}function a(n,r){const t=l(n),e=l(r);return t<e?-1:t>e?1:t!==0?0:n<r?-1:n>r?1:0}function h(n,r,t){return t==="asc"?a(n,r):a(r,n)}function p(n,r,t){return n.slice().sort((e,i)=>{const c=t.length;for(let o=0;o<r.length;o++){const g=c>o?t[o]:t[c-1],u=r[o],s=typeof u=="function",f=h(s?u(e):e[u],s?u(i):i[u],g);if(f!==0)return f}return 0})}function d(n,r){return p(n,r,["asc"])}export{d as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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,ah as I,V as u,C as v,h as U,a5 as x,a3 as l,a4 as d,aX as J,ap as V,aa as W,z as X,a2 as Q,T as w}from"./shared-
|
|
1
|
+
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,ah as I,V as u,C as v,h as U,a5 as x,a3 as l,a4 as d,aX as J,ap as V,aa as W,z as X,a2 as Q,T as w}from"./shared-CSC14I4g.js";const m=N({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=_($,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),T=(t,e)=>t.slides[r(t,e)],q=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}},z=(t,e,i)=>({title:e.type,targetLabel:E(t,i,e.target),tone:"meta"}),A=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}},H=(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},L=(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!==""),O=(t,e)=>{switch(e.type){case"slide":return T(t,e.id)!==void 0;case"page":return!0;default:return!1}},P=t=>{const e=m(t);return{name:"slides",label:"Slides",parseBase:S,emptyBase:C,actions:{},apply:()=>null,hasTarget:O,describe:(i,n)=>z(e,i,n),serialize:A,resolveNavigation:H,commentTargets:i=>D(e,i),currentTarget:(i,n)=>M(e,i,n),title:q}},te={ArrowRight:"next",PageDown:"next",ArrowLeft:"previous",PageUp:"previous",Home:"first",End:"last"},j=t=>t.altKey===!0||t.ctrlKey===!0||t.metaKey===!0||t.shiftKey===!0?null:te[t.key]??null,F=(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>
|
|
@@ -286,8 +286,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
286
|
display: flex;
|
|
287
287
|
flex-direction: column;
|
|
288
288
|
gap: 2.2cqw;
|
|
289
|
-
|
|
289
|
+
/* The bottom keeps the last line clear of the page number once it scrolls. */
|
|
290
|
+
padding: 5.5cqw 6.5cqw 6cqw;
|
|
290
291
|
overflow: auto;
|
|
292
|
+
overflow-wrap: anywhere;
|
|
291
293
|
font-size: 2.1cqw;
|
|
292
294
|
line-height: 1.55;
|
|
293
295
|
color: var(--dpk-ink-soft);
|
|
@@ -343,10 +345,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
345
|
margin: 0;
|
|
344
346
|
}
|
|
345
347
|
|
|
348
|
+
/* Over the content, which may scroll beneath it: a backdrop keeps both legible. */
|
|
346
349
|
.slide-number {
|
|
347
350
|
position: absolute;
|
|
348
|
-
right:
|
|
349
|
-
bottom:
|
|
351
|
+
right: 2cqw;
|
|
352
|
+
bottom: 1.6cqw;
|
|
353
|
+
z-index: 1;
|
|
354
|
+
padding: 0.3cqw 0.7cqw;
|
|
355
|
+
border-radius: 999px;
|
|
356
|
+
background: color-mix(in srgb, var(--dpk-paper-raised) 88%, transparent);
|
|
350
357
|
font-family: var(--dpk-mono);
|
|
351
358
|
font-size: 1.2cqw;
|
|
352
359
|
font-variant-numeric: tabular-nums;
|
|
@@ -354,8 +361,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
361
|
}
|
|
355
362
|
|
|
356
363
|
/* The cover: large title, the subtitle beneath, an accent rule on the left. */
|
|
364
|
+
/* \`safe\`: content taller than the slide starts at the top, where scrolling reaches it. */
|
|
357
365
|
.slide[data-layout='title'] .slide-content {
|
|
358
|
-
justify-content: center;
|
|
366
|
+
justify-content: safe center;
|
|
359
367
|
padding-left: 9cqw;
|
|
360
368
|
}
|
|
361
369
|
|
|
@@ -387,7 +395,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
395
|
}
|
|
388
396
|
|
|
389
397
|
.slide[data-layout='section'] .slide-content {
|
|
390
|
-
justify-content: center;
|
|
398
|
+
justify-content: safe center;
|
|
391
399
|
}
|
|
392
400
|
|
|
393
401
|
.slide[data-layout='section'] .slide-title {
|
|
@@ -610,4 +618,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
618
|
transition: none;
|
|
611
619
|
}
|
|
612
620
|
}
|
|
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
|
|
621
|
+
`,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 P(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=F(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=j(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:z,emptySlidesBase:C,findSlide:T,findSlideIndex:r,parseSlidesBase:S,resolveSlidesNavigation:H,serializeSlidesAction:A,slideKeyStep:j,slidePosition:L,slidesBaseSchema:$,slidesCommentTargets:D,slidesCurrentTarget:M,slidesDefinitionFor:P,slidesHasTarget:O,slidesMessages:m,slidesTargetLabel:E,slidesTitle:q,stepSlide:F},Symbol.toStringTag,{value:"Module"}));export{K as d,ce as i};
|