dev-process-kit 0.3.0-beta.3 → 0.3.1

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 (30) hide show
  1. package/README.md +8 -8
  2. package/dist/boards.js +1 -1
  3. package/dist/chunks/{shared-BzKZc8e7.js → shared-2OsWmhrI.js} +1 -1
  4. package/dist/chunks/{shared-CO-HhC8m.js → shared-B57TT0rn.js} +1 -1
  5. package/dist/chunks/{shared-CXefnQqJ.js → shared-B8ZhyjWv.js} +140 -137
  6. package/dist/chunks/{shared-D9js0mlL.js → shared-BXywwm1a.js} +740 -366
  7. package/dist/chunks/shared-Be43xweD.js +43 -0
  8. package/dist/chunks/{shared-CJnwvCXE.js → shared-C0M3Ib7z.js} +1 -1
  9. package/dist/chunks/{shared-BYr9ZouD.js → shared-C89fKgKG.js} +98 -94
  10. package/dist/chunks/{shared-D6X_HEJN.js → shared-CF2_VP2x.js} +1 -1
  11. package/dist/chunks/{shared-DXPlz1s4.js → shared-CeCpFPDQ.js} +1 -1
  12. package/dist/chunks/{shared-BhUEVKpO.js → shared-DIEJ9E2G.js} +1 -1
  13. package/dist/chunks/shared-DJtGS7Ct.js +1598 -0
  14. package/dist/chunks/{shared-DEco37gW.js → shared-Dd8JfvQe.js} +1 -1
  15. package/dist/chunks/{shared-NkccEMPc.js → shared-Dn92ukYW.js} +1 -1
  16. package/dist/chunks/{shared-BYcLqnFV.js → shared-Dql0ZVdC.js} +1 -1
  17. package/dist/chunks/shared-LHG2FbnK.js +1 -0
  18. package/dist/chunks/{shared-naTB_LaU.js → shared-egtdNQhY.js} +264 -281
  19. package/dist/chunks/{shared-BLzPmv14.js → shared-ubG0-RQ-.js} +1 -1
  20. package/dist/components.js +1 -1
  21. package/dist/index.js +1 -1
  22. package/dist/views/delegation-poker.js +1 -1
  23. package/dist/views/plain.js +1 -1
  24. package/dist/views/prototype.js +1 -1
  25. package/dist/views/slides.js +1 -1
  26. package/dist/views/task-board.js +1 -1
  27. package/dist/views/usm.js +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunks/shared-Bt5HGgX9.js +0 -1636
  30. package/dist/chunks/shared-DIHtcDps.js +0 -1
@@ -0,0 +1,43 @@
1
+ import{aj as l,ah as d,B as u,as as p,ax as h,bi as k,bJ as f,ac as g}from"./shared-B8ZhyjWv.js";const m={github:l`<path fill-rule="evenodd" d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"></path>`,gitlab:l`<path d="M8 15 1.2 9.9a.7.7 0 0 1-.25-.78L2.7 2.6a.35.35 0 0 1 .66 0L5.1 7.6h5.8l1.74-5a.35.35 0 0 1 .66 0l1.75 6.52a.7.7 0 0 1-.25.78z"></path>`,jira:l`<path d="M14.6 7.4 8.6 1.4 8 .8 3.5 5.3 1.4 7.4a.85.85 0 0 0 0 1.2l4.1 4.1L8 15.2l4.5-4.5.07-.07 2.03-2.03a.85.85 0 0 0 0-1.2zM8 9.9 5.9 8 8 5.9 10.1 8z"></path>`,linear:l`<path d="M1.2 9.4a6.9 6.9 0 0 0 5.4 5.4zM1 7.3l7.7 7.7a7 7 0 0 0 1.9-.5L1.5 5.4a7 7 0 0 0-.5 1.9zm1.2-3.1 9.6 9.6a7 7 0 0 0 1.2-1.1L3.3 3a7 7 0 0 0-1.1 1.2zM4.3 2.3a7 7 0 1 1 9.4 9.4z"></path>`,figma:l`<path d="M5.5 1h2.3v4.6H5.5a2.3 2.3 0 1 1 0-4.6zm2.3 0h2.3a2.3 2.3 0 1 1 0 4.6H7.8zm2.3 4.6a2.3 2.3 0 1 1 0 4.6 2.3 2.3 0 0 1 0-4.6zM5.5 5.6h2.3v4.6H5.5a2.3 2.3 0 1 1 0-4.6zm0 4.6h2.3v2.3a2.3 2.3 0 1 1-2.3-2.3z"></path>`,notion:l`<path fill-rule="evenodd" d="M2.5 1.6 11 1c1 0 1.3.1 2 .6l2.1 1.5c.4.3.5.4.5.7v9.6c0 .7-.3 1.1-1.1 1.2l-9.4.6c-.6 0-.9-.1-1.2-.5L1.9 12c-.3-.5-.5-.8-.5-1.3V2.8c0-.6.3-1.1 1.1-1.2zM5 4.4v8.9l8.6-.5V4zm1 1.2 2.9-.2 3 4.7V5.6l-.8-.1v-.5l2-.1v.6l-.6.1v6.1l-.9.1-3.5-5.4v4.9l.8.2v.5l-2.3.1v-.5l.6-.2V6.4l-.8-.1z"></path>`},x=i=>i==="web"?u():p`<svg class="link-mark" viewBox="0 0 16 16" aria-hidden="true">${m[i]}</svg>`,b=d`
2
+ .link-mark {
3
+ fill: currentColor;
4
+ }
5
+ .link-chip {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ gap: 5px;
9
+ min-width: 0;
10
+ max-width: 100%;
11
+ padding: 1px 8px 1px 6px;
12
+ border: 1px solid var(--dpk-rule-strong);
13
+ border-radius: 999px;
14
+ background: var(--dpk-paper-raised);
15
+ color: var(--dpk-ink-soft);
16
+ font-family: var(--dpk-mono);
17
+ font-size: 10.5px;
18
+ font-weight: 600;
19
+ line-height: 18px;
20
+ text-decoration: none;
21
+ transition:
22
+ color 140ms var(--dpk-ease),
23
+ border-color 140ms var(--dpk-ease);
24
+ }
25
+ .link-chip:hover {
26
+ border-color: var(--dpk-ink-faint);
27
+ color: var(--dpk-ink);
28
+ }
29
+ .link-chip:focus-visible {
30
+ outline: none;
31
+ box-shadow: var(--dpk-focus);
32
+ }
33
+ .link-chip svg {
34
+ flex: none;
35
+ width: 12px;
36
+ height: 12px;
37
+ }
38
+ .link-chip span {
39
+ overflow: hidden;
40
+ text-overflow: ellipsis;
41
+ white-space: nowrap;
42
+ }
43
+ `,s=/^[A-Z][A-Z0-9]+-\d+$/,c=i=>{let e=i;try{e=decodeURIComponent(i)}catch{}return e.replace(/[-_+]+/g," ").trim()},v=(i,e)=>{if(i!=="github.com")return null;const[t,n,r,a]=e;if(t===void 0)return{kind:"github",text:"GitHub",title:"github.com"};if(n===void 0)return{kind:"github",text:t,title:t};const o=`${t}/${n}`;return(r==="issues"||r==="pull"||r==="discussions")&&a&&/^\d+$/.test(a)?{kind:"github",text:`#${a}`,title:`${o}#${a}`}:r==="commit"&&a?{kind:"github",text:a.slice(0,7),title:`${o}@${a}`}:{kind:"github",text:o,title:o}},w=(i,e)=>{if(i!=="gitlab.com")return null;const t=e.indexOf("-"),n=(t<0?e:e.slice(0,t)).join("/"),r=t<0?void 0:e[t+1],a=t<0?void 0:e[t+2];if(a&&/^\d+$/.test(a)){if(r==="issues")return{kind:"gitlab",text:`#${a}`,title:`${n}#${a}`};if(r==="merge_requests")return{kind:"gitlab",text:`!${a}`,title:`${n}!${a}`}}return{kind:"gitlab",text:n||"GitLab",title:n||i}},$=(i,e,t)=>{if(!e.endsWith(".atlassian.net")&&!e.startsWith("jira."))return null;const n=(t[0]==="browse"?t[1]:void 0)??i.searchParams.get("selectedIssue")??t.find(r=>s.test(r));return n&&s.test(n)?{kind:"jira",text:n,title:`${e} ${n}`}:{kind:"jira",text:"Jira",title:e}},z=(i,e)=>{if(i!=="linear.app")return null;const t=e[1]==="issue"?e[2]?.toUpperCase():void 0;return t&&s.test(t)?{kind:"linear",text:t,title:t}:{kind:"linear",text:"Linear",title:i}},L=(i,e)=>{if(i!=="figma.com")return null;const[t,,n]=e;if((t==="file"||t==="design"||t==="proto"||t==="board")&&n){const r=c(n);return{kind:"figma",text:r,title:r}}return{kind:"figma",text:"Figma",title:i}},M=(i,e)=>{if(i!=="notion.so"&&!i.endsWith(".notion.site"))return null;const n=(e.at(-1)??"").replace(/-?[0-9a-f]{32}$/i,""),r=n===""?"Notion":c(n);return{kind:"notion",text:r,title:r}},j=i=>{let e;try{e=new URL(i)}catch{return{kind:"web",text:i,title:i}}const t=e.hostname.replace(/^www\./,""),n=e.pathname.split("/").filter(r=>r!=="");return v(t,n)??w(t,n)??$(e,t,n)??z(t,n)??L(t,n)??M(t,n)??{kind:"web",text:t,title:i}},y=h(g(),f(),k(i=>/^https?:\/\//i.test(i),"a link must be an http(s) URL"));export{x as a,j as d,y as h,b as l};
@@ -1,4 +1,4 @@
1
- import{ah as e,bA as t,bB as o,bC as n}from"./shared-CXefnQqJ.js";import{a as d,c as i}from"./shared-NkccEMPc.js";import{m as p}from"./shared-BzKZc8e7.js";const r=e`
1
+ import{ah as e,bA as t,bB as o,bC as n}from"./shared-B8ZhyjWv.js";import{a as d,c as i}from"./shared-Dn92ukYW.js";import{m as p}from"./shared-2OsWmhrI.js";const r=e`
2
2
  /*
3
3
  * A chart: a framed plot with its head above it. CSS only — the author draws
4
4
  * the SVG and this styles it, so a line chart reads as the kit's own: rules