@canonry/canonry 7.113.0 → 7.114.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 (142) hide show
  1. package/assets/assets/AccessControls-CZ9e8JQj.js +2 -0
  2. package/assets/assets/{AgentSetupPage-Bqpw8_pa.js → AgentSetupPage-GAYSye6c.js} +1 -1
  3. package/assets/assets/{AuditHistoryPanel-0zcL5_KV.js → AuditHistoryPanel-B8Nvxw1T.js} +1 -1
  4. package/assets/assets/{BacklinksPage-Kypu_CBg.js → BacklinksPage-DYDrtPvl.js} +1 -1
  5. package/assets/assets/{ChartPrimitives-CuLSMZRf.js → ChartPrimitives-D5jY1n81.js} +1 -1
  6. package/assets/assets/{HistoryPage-CsSkwiHD.js → HistoryPage-oWlfgq2q.js} +1 -1
  7. package/assets/assets/MeasurementPropertyPage-8_IMBhbd.js +4 -0
  8. package/assets/assets/ProjectPage-mopnzPrl.js +15 -0
  9. package/assets/assets/{RunsPage-CtcGk2M9.js → RunsPage-BQVy2FfY.js} +1 -1
  10. package/assets/assets/{ServerTrafficSection-BWd-wDZM.js → ServerTrafficSection-rxO0hr0U.js} +1 -1
  11. package/assets/assets/{SettingsPage-DHWJtLmM.js → SettingsPage-DNd1rljp.js} +1 -1
  12. package/assets/assets/ToneBadge-ClBoU45-.js +60 -0
  13. package/assets/assets/{TrafficPage-C-3_NTXQ.js → TrafficPage-DS7e2HJF.js} +1 -1
  14. package/assets/assets/{TrafficSourceDetailPage-CRzsuCei.js → TrafficSourceDetailPage-GM_NYof2.js} +1 -1
  15. package/assets/assets/{account-context-DDb7nBdB.js → account-context-DPSUr6ab.js} +1 -1
  16. package/assets/assets/{agent-trust-copy-DfskKzsn.js → agent-trust-copy-CzC0CyvN.js} +1 -1
  17. package/assets/assets/{card-BM8bXgNt.js → card-BuGARNWu.js} +1 -1
  18. package/assets/assets/index-7gTTbr2Y.js +43 -0
  19. package/assets/assets/{query-client-BQBRNHRa.js → query-client-20-WKWRF.js} +1 -1
  20. package/assets/assets/{react-query-CJRQ352v.js → react-query-BcbS-PEL.js} +1 -1
  21. package/assets/assets/{react-sigma_core.esm.min-BX0xxddn.js → react-sigma_core.esm.min-BPHKUIql.js} +1 -1
  22. package/assets/assets/{server-traffic-F4hKNLJy.js → server-traffic-k9hvgv11.js} +1 -1
  23. package/assets/assets/service-CNCw9nYd.js +1 -0
  24. package/assets/index.html +8 -8
  25. package/dist/{ads-RNE2CDPT.js → ads-MBUYUCIO.js} +3 -3
  26. package/dist/{agent-H3RZA7V5.js → agent-H4TXDFUY.js} +7 -7
  27. package/dist/{agent-ask-ZVM4P74Z.js → agent-ask-VYCPGN7W.js} +3 -3
  28. package/dist/{agent-conversations-WTD4LMN3.js → agent-conversations-HOAJSJ2V.js} +3 -3
  29. package/dist/{agent-journeys-YNBUYJH3.js → agent-journeys-GCN2DMNW.js} +3 -3
  30. package/dist/{agent-memory-KKTISDMW.js → agent-memory-5ZY5GMXL.js} +3 -3
  31. package/dist/{agent-providers-VW3PJ2CU.js → agent-providers-3BFMXJZZ.js} +3 -3
  32. package/dist/{agent-transcript-DSYFCMFG.js → agent-transcript-BMGQADZ2.js} +3 -3
  33. package/dist/{analytics-RUC5ENEA.js → analytics-4OBHR4V2.js} +3 -3
  34. package/dist/{apply-3DDFBAE4.js → apply-JQHWDI43.js} +3 -3
  35. package/dist/{backfill-MBD5GR5J.js → backfill-XU4QLLNT.js} +10 -10
  36. package/dist/{backlinks-EWALMBY5.js → backlinks-LFDFDL4X.js} +3 -3
  37. package/dist/{bing-KKG2726P.js → bing-HSZ2HYX4.js} +3 -3
  38. package/dist/{bootstrap-F4CAPH2R.js → bootstrap-5M3WJOHV.js} +10 -10
  39. package/dist/{cdp-4VYUIAD6.js → cdp-3L2UFZ6G.js} +7 -7
  40. package/dist/{chunk-NLFXESPW.js → chunk-3T6YDOJX.js} +1 -1
  41. package/dist/{chunk-TUOPSFAU.js → chunk-4IB3LHZV.js} +3 -3
  42. package/dist/{chunk-BHPOICVI.js → chunk-4UZR7UUC.js} +1 -1
  43. package/dist/{chunk-UNZJCCDO.js → chunk-AP7ZGBXF.js} +2 -2
  44. package/dist/{chunk-IMVE7Z6S.js → chunk-BRAUKTBG.js} +1 -1
  45. package/dist/{chunk-I2X27ECL.js → chunk-CD5JEVPS.js} +2 -2
  46. package/dist/{chunk-CTUWWYNV.js → chunk-CHDPNIRF.js} +3 -3
  47. package/dist/{chunk-WPTF34LH.js → chunk-D7KVKYYT.js} +279 -90
  48. package/dist/{chunk-OYOIW25C.js → chunk-EUQ6F4FY.js} +4 -4
  49. package/dist/{chunk-LAGHIZVO.js → chunk-FXMIX2BP.js} +3 -3
  50. package/dist/{chunk-67MQRWOS.js → chunk-GLAOBAJP.js} +2 -2
  51. package/dist/{chunk-H3OKX3IA.js → chunk-HDCBIMFZ.js} +5 -5
  52. package/dist/{chunk-BN3PZHJW.js → chunk-HK72OBW5.js} +2 -2
  53. package/dist/{chunk-2QSAPDUL.js → chunk-HNHJ7HQK.js} +1 -1
  54. package/dist/{chunk-YSDMYHDM.js → chunk-K3H67IQZ.js} +1 -1
  55. package/dist/{chunk-T3IRL4TY.js → chunk-KOMFBAUK.js} +1 -1
  56. package/dist/{chunk-OXHJGGXR.js → chunk-M5C7R7OF.js} +5 -5
  57. package/dist/{chunk-5A2HNY42.js → chunk-MHNMMFON.js} +1 -1
  58. package/dist/{chunk-3TPGHPOR.js → chunk-MSBSKTO2.js} +3 -3
  59. package/dist/{chunk-5IEINES2.js → chunk-ODFPL6P5.js} +1 -1
  60. package/dist/{chunk-HL2BOPH3.js → chunk-PPM2ZLVN.js} +3 -3
  61. package/dist/{chunk-J6UROG7V.js → chunk-QDBKBXC7.js} +1 -1
  62. package/dist/{chunk-WQN32NXS.js → chunk-RFJM6G7L.js} +1 -1
  63. package/dist/{chunk-IBX6VC7A.js → chunk-RSTJWK3S.js} +3 -3
  64. package/dist/{chunk-4HRWQTQY.js → chunk-SGQGEKBN.js} +7 -7
  65. package/dist/{chunk-VBXXP3YY.js → chunk-TCCGE2WF.js} +6 -6
  66. package/dist/{chunk-IXJCFQFA.js → chunk-TJGGK6IQ.js} +4 -4
  67. package/dist/{chunk-IXAVIBKP.js → chunk-UK2WX3PM.js} +1 -1
  68. package/dist/{chunk-DKFVL2BE.js → chunk-VTT4VYJC.js} +2 -2
  69. package/dist/{chunk-GYFRSG7F.js → chunk-WBGBCRVH.js} +2 -2
  70. package/dist/{chunk-3NDZ43NA.js → chunk-WMMIMZHL.js} +4 -4
  71. package/dist/{chunk-H6LGOLBW.js → chunk-WW7XJXSQ.js} +4 -4
  72. package/dist/{chunk-NFWEMRP5.js → chunk-X5ITRJ5N.js} +21 -21
  73. package/dist/{chunk-JEDFYKBL.js → chunk-Y2ZQFWH2.js} +367 -367
  74. package/dist/{chunk-CAQAEJBN.js → chunk-ZWWEWFCM.js} +1 -1
  75. package/dist/{citations-FWWFTIOT.js → citations-KLOXXIX5.js} +4 -4
  76. package/dist/{cli-catalog-RCM2HUCT.js → cli-catalog-SPUYWLST.js} +3 -3
  77. package/dist/{cli-commands-FGF5ZY2E.js → cli-commands-4WVVOSGO.js} +7 -7
  78. package/dist/cli.js +13 -13
  79. package/dist/{competitor-KGKTAS53.js → competitor-TVOPWBTO.js} +3 -3
  80. package/dist/{content-TXZ4IOGJ.js → content-FOHOEMPN.js} +3 -3
  81. package/dist/{dashboard-IGBJPCUX.js → dashboard-Y2MWS75I.js} +6 -6
  82. package/dist/{demo-UXJ6SLWM.js → demo-KKYQOGOL.js} +1 -1
  83. package/dist/{demo-server-VFRGZEEQ.js → demo-server-7W7G3WBF.js} +12 -12
  84. package/dist/{discover-EJSVZOVY.js → discover-NEFL3GNJ.js} +4 -4
  85. package/dist/{discover-eval-6U5C6O5F.js → discover-eval-5UTXVZN2.js} +3 -3
  86. package/dist/{doctor-ONEJYJ2A.js → doctor-IPEY4PEU.js} +3 -3
  87. package/dist/{evidence-DRQCHIWI.js → evidence-2I55I5RU.js} +3 -3
  88. package/dist/{export-cmd-YJ3AFLXR.js → export-cmd-CMCUOJY4.js} +3 -3
  89. package/dist/{ga-AP4F2LSD.js → ga-HBFR7YAV.js} +3 -3
  90. package/dist/{gbp-W2BZILFX.js → gbp-6KGE44C3.js} +3 -3
  91. package/dist/{google-CNY7J4MZ.js → google-PFQMLRET.js} +4 -4
  92. package/dist/{google-marketing-OT2JSJUY.js → google-marketing-DKZPDKSJ.js} +1 -1
  93. package/dist/{health-cmd-DU33WCDD.js → health-cmd-YQ2CYZJF.js} +4 -4
  94. package/dist/{history-HRY6TLYX.js → history-GC6KSYLZ.js} +3 -3
  95. package/dist/index.d.ts +70 -70
  96. package/dist/index.js +25 -25
  97. package/dist/{init-XQJZ6DQX.js → init-YOI6WNXX.js} +12 -12
  98. package/dist/{insights-SMURU5LJ.js → insights-M5H3P2VD.js} +3 -3
  99. package/dist/intelligence-service-ODVPS6D6.js +16 -0
  100. package/dist/{journeys-BASXVLUD.js → journeys-EXIVMEY7.js} +3 -3
  101. package/dist/{keys-KBHFQCQ5.js → keys-VFAC5KWZ.js} +3 -3
  102. package/dist/{keyword-EPNX57S2.js → keyword-I5TY67XC.js} +3 -3
  103. package/dist/{logs-EHWCAIDD.js → logs-3LEGAI5D.js} +3 -3
  104. package/dist/{mcp-TIMFG2HU.js → mcp-6TETRXJ2.js} +4 -4
  105. package/dist/mcp.js +9 -9
  106. package/dist/{measurement-plan-T2WUFQGZ.js → measurement-plan-76O3EEXW.js} +5 -5
  107. package/dist/{notify-EGJHQXJY.js → notify-KIUJJX7L.js} +3 -3
  108. package/dist/{organic-evidence-NZ4BYT7G.js → organic-evidence-R7TA4MZM.js} +3 -3
  109. package/dist/{overview-FSTEFM7S.js → overview-PMD3GYMJ.js} +5 -5
  110. package/dist/{project-ZOGGHFMI.js → project-R7AAYKYH.js} +3 -3
  111. package/dist/{project-setup-DA55HKTE.js → project-setup-VDEHXJ6V.js} +3 -3
  112. package/dist/{query-YSZCPFUW.js → query-QPPVYE6C.js} +3 -3
  113. package/dist/{research-C3BDNI7X.js → research-UZCT66YL.js} +3 -3
  114. package/dist/{results-export-YBHQ4GJY.js → results-export-YITLJ6QN.js} +3 -3
  115. package/dist/{run-OI4Y4CPZ.js → run-6WWMQSYW.js} +5 -5
  116. package/dist/{schedule-HI5QUYZN.js → schedule-ZZ4N4NWR.js} +3 -3
  117. package/dist/{search-H5VREMQP.js → search-PFNLSSB2.js} +3 -3
  118. package/dist/{serve-OVEZ6LLG.js → serve-7OKBRXOG.js} +26 -26
  119. package/dist/{session-6HUFUB6Y.js → session-UOJNPN2F.js} +13 -13
  120. package/dist/{settings-M3TBHMXQ.js → settings-J5DVHHRL.js} +3 -3
  121. package/dist/{sitemaps-6ZZ4LAPG.js → sitemaps-E4EEEB2G.js} +3 -3
  122. package/dist/{skills-HWXV6FII.js → skills-XOEQIEV6.js} +2 -2
  123. package/dist/{snapshot-VSQMPHFQ.js → snapshot-MHNO5GFX.js} +3 -3
  124. package/dist/{src-54XVRI7X.js → src-TWXSURXK.js} +2 -2
  125. package/dist/{status-6IB2JLE6.js → status-CASSB3RI.js} +5 -5
  126. package/dist/{technical-aeo-PZHXLFS4.js → technical-aeo-WNNXAOVE.js} +3 -3
  127. package/dist/{telemetry-K3XNIML6.js → telemetry-5PJFKHDT.js} +4 -4
  128. package/dist/{tools-KQD2AZTB.js → tools-OACYTLJ5.js} +11 -11
  129. package/dist/{traffic-ZRFDZG7J.js → traffic-Q5QRTBKR.js} +5 -5
  130. package/dist/{trends-Q7YV4H6S.js → trends-4X5EDJAA.js} +3 -3
  131. package/dist/{users-KIC522TT.js → users-5FZLNPXR.js} +3 -3
  132. package/dist/{visibility-stats-MN7367BK.js → visibility-stats-AKIM3332.js} +4 -4
  133. package/dist/{wordpress-7UL7Q5HH.js → wordpress-CO6XLP53.js} +3 -3
  134. package/package.json +1 -1
  135. package/assets/assets/AccessControls-8KGSA5-k.js +0 -2
  136. package/assets/assets/MeasurementPropertyPage-D4PDu2k_.js +0 -4
  137. package/assets/assets/ProjectPage-D00B6b7C.js +0 -15
  138. package/assets/assets/ToneBadge-Ci54jPqm.js +0 -60
  139. package/assets/assets/index-IFRMBJbA.js +0 -43
  140. package/assets/assets/service-D08PUQzL.js +0 -1
  141. package/dist/intelligence-service-UEIV4CYJ.js +0 -16
  142. /package/dist/{chunk-RFJY5UW2.js → chunk-B4CKWKSX.js} +0 -0
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{$ as t,Q as n,et as r,ft as i}from"./vendor-lucide-iE5MEh2-.js";import{r as a}from"./vendor-markdown-BBGbNklj.js";import{Aa as o,Ai as s,Ba as c,Ca as l,Da as u,Ea as d,Fa as f,Ga as p,Ha as m,Ia as h,La as g,Na as _,Oa as v,Pa as y,Ra as b,Sa as x,Ta as S,Tt as C,Ua as w,Va as T,Wa as E,bt as D,ja as O,ka as k,o as A,tl as j,wa as M,wi as N,za as P}from"./ToneBadge-Ci54jPqm.js";import{E as F,H as I}from"./AccessControls-8KGSA5-k.js";import{B as L}from"./ChartPrimitives-CuLSMZRf.js";var R=a();function z({provider:e}){let t=j(e);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`span`,{className:`block text-label-14-strong text-primary`,children:t?I(t):F(e)}),t&&(0,R.jsxs)(R.Fragment,{children:[` `,(0,R.jsx)(`span`,{className:`block text-label-13 text-secondary`,children:`via OpenRouter`})]})]})}var B=e(i(),1),V=`min-h-11 w-full rounded-md border border-default bg-surface px-3 py-2 text-label-14 text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,H=`flex min-h-11 w-full items-center justify-between gap-3 rounded px-2 text-left text-label-14 text-primary hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,U=e=>e.kind===`project`?`Whole site`:e.label,W={allMarkets:`All markets`,browse:e=>`Browse ${e}`,select:e=>`Select ${e}`,browseAll:`Browse all properties`},ee=e=>e?.kind===`group`&&e.marketKeys?.length===1?e.marketKeys[0]:void 0,G=e=>`${e} ${e===1?`property`:`properties`}`;function K({options:e,selected:i,onSelect:a,marketKey:o,label:s=`Measurement scope`,labelVisibility:c=`visible`,allowGroupSelect:l=!0}){let u=[...e].sort((e,t)=>e.label.localeCompare(t.label,void 0,{numeric:!0})||e.id.localeCompare(t.id)),[d,f]=(0,B.useState)(``),[p,m]=(0,B.useState)([]),[h,g]=(0,B.useState)(!1),_=(0,B.useRef)(null),v=(0,B.useRef)(null),y=(0,B.useId)(),b=u.filter(e=>e.kind===`group`),x=new Map(b.map(e=>[e.id,e])),S=x.get(p.at(-1)??``),C=x.get(p.at(-2)??``),w=d.trim().toLocaleLowerCase(),T=b.filter(e=>!e.parentGroupIds?.some(e=>x.has(e))),E=u.filter(e=>e.kind===`property`),D=e=>(e.parentGroupIds??[]).map(e=>x.get(e)?.label).filter(Boolean).join(` · `),O=e=>`${U(e)} ${D(e)}`.toLocaleLowerCase().includes(w),k=e=>{let t=[...e.parentGroupIds??[]],n=new Set;for(;t.length;){let e=t.pop();if(e===S?.id)return!0;n.has(e)||(n.add(e),t.push(...x.get(e)?.parentGroupIds??[]))}return!1},A=(h?[]:S?b.filter(e=>w?k(e):e.parentGroupIds?.includes(S.id)):w?b:T).filter(O),j=u.find(e=>e.kind===`market`&&e.id===(o??(i.kind===`market`?i.id:void 0))),M=S&&j&&(S.marketKeys?.includes(j.id)||j.parentGroupIds?.includes(S.id))?j.id:void 0,N=l?M??ee(S):void 0,P=(S?E.filter(e=>e.parentGroupIds?.includes(S.id)&&(!N||e.marketKeys?.includes(N))):w||h||b.length===0?E:[]).filter(O),F=u.filter(e=>e.kind!==`market`||h||!l&&!S&&!w&&b.length>0||l&&S?.marketKeys?.length===1&&!w?!1:(S?w?k(e):e.parentGroupIds?.includes(S.id):w||!e.parentGroupIds?.some(e=>x.has(e)))&&O(e)),I=S||h?[]:u.filter(e=>e.kind===`project`&&O(e));(0,B.useEffect)(()=>{let e=e=>{_.current?.open&&e.target instanceof Node&&!_.current.contains(e.target)&&(_.current.open=!1)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[]);let L=e=>{_.current&&(_.current.open=!1,_.current.querySelector(`summary`)?.focus());let t=l?e.kind===`property`?N:e.kind===`group`&&e.id===S?.id?M:void 0:void 0;t?a(e,t):a(e)},z=e=>{let t=[],n=x.get(e.parentGroupIds?.[0]??``);for(;n&&!t.includes(n.id)&&n.id!==e.id;)t.unshift(n.id),n=x.get(n.parentGroupIds?.[0]??``);return[...t,e.id]},K=()=>{let e=i.kind===`group`?x.get(i.id):void 0,t=x.get(j?.parentGroupIds?.[0]??``),n=(i.parentGroupIds??[]).flatMap(e=>{let t=x.get(e);return t?[z(t)]:[]}),r=n.find(e=>e.at(-1)===S?.id)??n.sort((e,t)=>t.length-e.length)[0]??[],a=t?z(t):i.marketKeys?.length?[]:r;m(e?z(e):a),g(i.kind===`property`&&a.length===0&&b.length>0),f(``)},q=e=>{m(z(e)),g(!1),f(``),v.current?.focus()},J=(e,t=U(e))=>(0,R.jsxs)(`div`,{className:`flex items-stretch`,children:[(0,R.jsxs)(`button`,{type:`button`,className:H,"aria-label":e.kind===`group`&&!l?W.browse(U(e)):W.select(U(e)),"aria-current":i.kind===e.kind&&i.id===e.id?`true`:void 0,onClick:()=>e.kind===`group`&&!l?q(e):L(e),children:[(0,R.jsxs)(`span`,{className:`min-w-0 break-words`,children:[t,w&&D(e)?(0,R.jsx)(`span`,{className:`block text-label-13 text-secondary`,children:D(e)}):null]}),(0,R.jsx)(`span`,{className:`shrink-0 text-right text-label-13 text-secondary`,children:e.kind===`market`?l?`Query context`:`Market`:e.kind===`property`?`Property`:G(e.targetCount)})]}),l&&e.kind===`group`&&e.id!==S?.id&&u.some(t=>t.parentGroupIds?.includes(e.id))?(0,R.jsx)(`button`,{type:`button`,"aria-label":W.browse(e.label),title:`Browse ${e.label}`,className:`flex min-h-11 min-w-11 items-center justify-center rounded text-secondary hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,onClick:()=>q(e),children:(0,R.jsx)(n,{size:18,"aria-hidden":`true`})}):null]},`${e.kind}:${e.id}`),Y=(e,t)=>t.length>0?(0,R.jsxs)(`section`,{"aria-label":e,className:`mt-2`,children:[(0,R.jsx)(`h3`,{className:`px-2 py-2 text-heading-14 text-secondary`,children:e}),t.map(e=>J(e))]}):null,X=(e,t,n)=>t.length>0?(0,R.jsxs)(`details`,{open:n,className:`mt-2 border-y border-default`,children:[(0,R.jsxs)(`summary`,{className:`min-h-11 cursor-pointer px-2 py-3 text-label-14 text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,children:[e,` (`,t.length,`)`]}),t.map(e=>J(e))]},`${S?.id??`root`}:${e}`):null;return(0,R.jsxs)(`div`,{className:`min-w-0`,children:[(0,R.jsx)(`span`,{id:`${y}-label`,className:c===`sr-only`?`sr-only`:`mb-1 block text-label-14-strong text-heading`,children:s}),(0,R.jsxs)(`details`,{ref:_,className:`relative`,onToggle:e=>{e.target===e.currentTarget&&e.currentTarget.open&&v.current?.focus()},onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.currentTarget.open=!1,e.currentTarget.querySelector(`summary`)?.focus())},children:[(0,R.jsxs)(`summary`,{id:`${y}-value`,"aria-labelledby":`${y}-label ${y}-value`,className:`${V} visibility-scope-trigger`,onClick:()=>{_.current?.open||K()},children:[`${U(i)}${i.kind===`group`?` · ${G(i.targetCount)}`:i.kind===`property`?` · ${u.find(e=>e.kind===`market`&&e.id===o)?.label??(i.marketKeys?.length?W.allMarkets:`Property`)}`:i.kind===`market`?` · Market`:``}`,(0,R.jsx)(r,{size:16,"aria-hidden":`true`,className:`shrink-0 text-secondary`})]}),(0,R.jsxs)(`div`,{className:`visibility-scope-menu`,children:[S||h?(0,R.jsxs)(`div`,{className:`mb-2 border-b border-default pb-2`,children:[(0,R.jsx)(`button`,{type:`button`,className:H,"aria-label":`Back to ${C?.label??`all groups`}`,onClick:()=>{m(p.slice(0,-1)),g(!1),f(``),v.current?.focus()},children:(0,R.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,R.jsx)(t,{size:16,"aria-hidden":`true`}),C?.label??`All groups`]})}),(0,R.jsx)(`p`,{className:`px-2 py-1 text-copy-14-strong text-heading`,"aria-live":`polite`,children:S?.label??`All properties`})]}):null,(0,R.jsx)(`input`,{ref:v,type:`search`,"aria-label":`Search scopes`,className:V,placeholder:S?`Search within this group`:h?`Search properties`:`Search groups or properties`,value:d,onChange:e=>f(e.target.value)}),(0,R.jsxs)(`div`,{className:`mt-2 max-h-80 overflow-y-auto`,children:[l&&S&&!w?J(S,`All properties in this group`):null,I.map(e=>J(e)),S&&!w?X(`Subgroups`,A,!0):Y(S?`Subgroups`:`Groups`,A),w?Y(`Properties`,P):X(S&&A.length>0?`All properties`:`Properties`,P,!S||A.length===0),Y(`Markets`,F),!S&&!h&&!w&&b.length>0&&E.length>0?(0,R.jsxs)(`button`,{type:`button`,className:`${H} mt-2 border-t border-default`,"aria-label":W.browseAll,onClick:()=>{g(!0),v.current?.focus()},children:[(0,R.jsx)(`span`,{children:`All properties`}),(0,R.jsx)(n,{size:18,"aria-hidden":`true`})]}):null,w&&A.length+P.length+F.length+I.length===0?(0,R.jsx)(`p`,{className:`py-3 text-copy-14 text-secondary`,children:`No matching scopes.`}):null]})]})]})]})}function q(e){let t=e[0];return!t||e.every(e=>e.mode===t.mode&&e.scope.kind===t.scope.kind&&e.scope.key===t.scope.key&&e.queryClass===t.queryClass&&e.measurement.displayedRunId===t.measurement.displayedRunId)}function J(e){return e.state===`unavailable`?{numerator:null,denominator:null,reason:e.reason}:e.numerator===void 0||e.denominator===void 0||e.denominator<=0?{numerator:null,denominator:null,reason:`not_applicable`}:{numerator:e.numerator,denominator:e.denominator,...e.unattributed===void 0?{}:{unattributed:e.unattributed},...e.unchecked===void 0?{}:{unchecked:e.unchecked},...e.citationNotMeasured===void 0?{}:{citationNotMeasured:e.citationNotMeasured}}}function Y(e){return e.kind===`exact`?e.url:e.kind===`prefix`?`https://${e.host}${e.pathPrefix===`/`?``:e.pathPrefix}/*`:`https://${e.host}/*`}function X(e){return e===`assigned`?`this-property`:e===`sibling`?`another-property`:e===`ownedUnmapped`?`owned-unassigned`:e===`external`?`external`:e===`ambiguous`?`multiple-properties`:`invalid-url`}function te(e){return e===`assigned`?`positive`:e===`external`?`neutral`:e===`invalid`?`negative`:`caution`}function Z(e){return`target:${e.targetKey}:${e.queryId}:${e.executionNodeKey}`}function ne(e,t,n){let r=new Map;if(!t)return r;let i=new Map(e.usageEdges.map(e=>[Z(e),e.targetKey])),a=new Map(e.assignments.map(e=>[`${e.targetKey}:${e.queryId}`,e.queryClass])),o=new Map(e.usageEdges.map(e=>[Z(e),a.get(`${e.targetKey}:${e.queryId}`)]));for(let e of t.evidence){if(n&&o.get(e.usageEdgeId)!==n)continue;let t=i.get(e.usageEdgeId);if(!t)continue;let a=r.get(t)??[];a.push({id:`${e.observationId}:${e.expectedSlotId}:${e.usageEdgeId}:${e.sourceUrl}`,kind:X(e.classification),query:e.queryText,provider:e.provider,location:e.location,url:e.sourceUrl,tone:te(e.classification),historical:e.historical||e.bridged}),r.set(t,a)}return r}function re(e){if(e.flags>0)return{label:`Review`,tone:`caution`};let t=[e.mentionCoverage,e.citationCoverage].filter(e=>e.state===`unavailable`).map(e=>e.reason);return t.includes(`no_completed_run`)?{label:`Not measured`,tone:`neutral`}:t.includes(`plan_v1`)?{label:`Update setup`,tone:`caution`}:t.includes(`evidence_incomplete`)?{label:`Evidence incomplete`,tone:`caution`}:t.includes(`identity_ambiguous`)?{label:L.ambiguous,tone:`caution`}:t.includes(`no_population`)?{label:`No queries`,tone:`neutral`}:t.includes(`not_applicable`)?{label:`Not applicable`,tone:`neutral`}:t.includes(`citation_not_measured`)?{label:`Citation not measured`,tone:`neutral`}:{label:`Complete`,tone:`positive`}}function ie(e){return e===`complete`?{label:`Complete`,tone:`positive`}:e===`partial`?{label:`Partial`,tone:`caution`}:e===`queued`?{label:`Queued`,tone:`neutral`}:e===`running`?{label:`Running`,tone:`neutral`}:e===`failed`?{label:`Failed`,tone:`negative`}:{label:`Not measured`,tone:`neutral`}}function ae(e){if(!e)return``;let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,timeZone:`UTC`}):``}function Q(e){let t=e.nextAction.count??e.flags.total;if(e.nextAction.kind===`review_flags`)return`${t} flagged ${t===1?`result needs`:`results need`} review.`;if(e.nextAction.kind===`complete_setup`)return`Finish setup.`;if(e.nextAction.kind===`republish_setup`)return`Setup update required.`;if(e.nextAction.kind===`run_measurement`)return`Ready to measure.`}function oe({overview:e,activePlan:t,report:n,reportState:r=n?`ready`:`loading`,sort:i}){if(t.plan.schemaVersion!==2||e.mode!==`active-v2`)throw Error(`The current overview requires an active version-two setup.`);if(e.scope.kind!==`all`&&e.scope.kind!==`group`)throw Error(`The current overview requires an All Properties or group scope.`);let a=t.plan,o=new Map(a.targets.map(e=>[e.stableKey,e])),s=new Map(a.querySnapshots.map(e=>[e.queryId,e.queryText])),c=new Map;for(let t of a.assignments){if(e.queryClass!==`all`&&t.queryClass!==e.queryClass)continue;let n=s.get(t.queryId);if(!n)continue;let r=c.get(t.targetKey)??new Set;r.add(n),c.set(t.targetKey,r)}let l=n?.revision===t.revision&&n.run?.id===e.measurement.displayedRunId?n:null,u=e.measurement.displayedRunId===void 0||l?`ready`:r===`error`||n!=null?`error`:`loading`,d=ne(a,l,e.queryClass===`all`?void 0:e.queryClass),f=new Map;for(let e of a.groups)for(let t of e.targetKeys)f.has(t)||f.set(t,e.label);let p=e.properties.items.map(e=>{let t=o.get(e.targetKey),n=d.get(e.targetKey)??[];return{id:e.targetKey,name:e.label,mentionCoverage:J(e.mentionCoverage),citationCoverage:J(e.citationCoverage),status:re(e),providers:e.providers?.map(e=>({provider:e.provider,mentionCoverage:J(e.mentionCoverage),citationCoverage:J(e.citationCoverage)})),market:f.get(e.targetKey),assignedQueries:[...c.get(e.targetKey)??[]],urls:t?.urlMatchers.map(Y)??[],evidence:n,evidenceState:u,historical:n.some(e=>e.historical)}}),m=e.namedShareOfVoice?.entries.map(t=>({name:t.label,coverage:{numerator:t.credits,denominator:e.namedShareOfVoice.denominator}})),h=e.properties.items.flatMap(e=>e.flags>0?[{id:`property:${e.targetKey}`,property:e.label,summary:`${e.flags} ${e.flags===1?`result needs`:`results need`} review.`,tone:`caution`,count:e.flags}]:[]);return{classReporting:`available`,latestMeasurement:{status:ie(e.measurement.state),completedSlots:e.measurement.completed,totalSlots:e.measurement.expected,date:ae(e.measurement.completedAt),includesBridgedHistory:e.measurement.includesHistoricalData===!0},currentView:{scope:e.scope.kind===`group`?{kind:`group`,...e.scope.key?{key:e.scope.key}:{}}:{kind:`all`},queryClass:e.queryClass,aggregate:{metrics:{propertiesMentioned:J(e.metrics.propertiesMentioned),mentionCoverage:J(e.metrics.mentionCoverage),citationCoverage:J(e.metrics.citationCoverage)},properties:p,...m?{shareOfVoice:m}:{}},propertyTotal:e.properties.totalEstimate??p.length,outcomes:e.outcomes,nextCursor:e.properties.nextCursor,...i?{sort:i}:{}},availableGroups:a.groups.map(e=>({id:e.stableKey,label:e.label})),...Q(e)?{nextActionText:Q(e)}:{},flaggedResultsTotal:e.flags.total,flaggedResults:h}}function se(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():`web-${Date.now()}-${Math.random().toString(36).slice(2)}`}function $(e){return{"If-Match":e,"Idempotency-Key":se()}}function ce(e){return e instanceof A&&(e.statusCode===404||e.statusCode===409||e.statusCode===412)}function le(e,t){return e instanceof A?t:(e instanceof Error?e.message.trim():``)||t}function ue(e){let t=`Could not calculate assignment impact.`;if(!(e instanceof A)||e.code!==`VALIDATION_ERROR`)return t;let n=e.message.trim();return e.details?.displayToOperator===!0&&n?n:t}var de={loadSetup:e=>C(()=>s({client:D,path:{name:e}})),loadDraft:e=>C(()=>N({client:D,path:{name:e}})),createDraft:(e,t)=>C(()=>u({client:D,path:{name:e},headers:{"Idempotency-Key":se()},body:{expectedActiveRevision:t}})),importSitemap:(e,t,n)=>C(()=>O({client:D,path:{name:e},headers:$(t),body:n})),applySitemapSelection:(e,t,n,r)=>C(()=>S({client:D,path:{name:e},headers:$(t),body:{selections:n,selectedTargetKeys:r}})),previewAssignments:(e,t)=>C(()=>_({client:D,path:{name:e},body:t})),applyAssignments:(e,t,n)=>C(()=>x({client:D,path:{name:e},headers:$(t),body:n})),replaceAssignments:(e,t,n)=>C(()=>c({client:D,path:{name:e},headers:$(t),body:n})),applyPairedAssignments:(e,t,n,r)=>C(()=>M({client:D,path:{name:e},headers:$(t),body:{pairs:n,...r?{contextOverride:r}:{}}})),previewMarketRouting:(e,t)=>C(()=>f({client:D,path:{name:e},body:t})),routeMarkets:(e,t,n)=>C(()=>T({client:D,path:{name:e},headers:$(t),body:n})),removeAssignment:(e,t,n,r)=>C(()=>g({client:D,path:{name:e},headers:$(t),body:{targetKeys:n,queryId:r}})),excludeTarget:(e,t,n)=>C(()=>o({client:D,path:{name:e},headers:$(t),body:{targetKey:n,cleanup:`assignments-and-group-memberships`}})),upsertTarget:(e,t,n)=>C(()=>p({client:D,path:{name:e},headers:$(t),body:{target:n}})),upsertMarket:(e,t,n)=>C(()=>E({client:D,path:{name:e},headers:$(t),body:{market:n}})),upsertGroup:(e,t,n)=>C(()=>w({client:D,path:{name:e},headers:$(t),body:{group:n}})),removeGroup:(e,t,n)=>C(()=>P({client:D,path:{name:e},headers:$(t),body:{groupKey:n}})),upsertCompetitor:(e,t,n)=>C(()=>m({client:D,path:{name:e},headers:$(t),body:n})),removeCompetitor:(e,t,n,r)=>C(()=>b({client:D,path:{name:e},headers:$(t),body:{groupKey:n,competitorKey:r}})),previewGroupMembership:(e,t)=>C(()=>y({client:D,path:{name:e},body:t})),applyGroupMembership:(e,t,n)=>C(()=>l({client:D,path:{name:e},headers:$(t),body:n})),compilePreview:e=>C(()=>d({client:D,path:{name:e}})),diffPreview:e=>C(()=>v({client:D,path:{name:e}})),publish:(e,t,n)=>C(()=>h({client:D,path:{name:e},headers:$(t),body:n})),discard:(e,t)=>C(()=>k({client:D,path:{name:e},headers:$(t)}))};export{oe as a,W as c,le as i,K as l,ue as n,q as o,ce as r,Y as s,de as t,z as u};
@@ -1,16 +0,0 @@
1
- import {
2
- HISTORY_WINDOW_RUNS,
3
- IntelligenceService
4
- } from "./chunk-H3OKX3IA.js";
5
- import "./chunk-J6UROG7V.js";
6
- import "./chunk-UNZJCCDO.js";
7
- import "./chunk-H6LGOLBW.js";
8
- import "./chunk-YSDMYHDM.js";
9
- import "./chunk-BHPOICVI.js";
10
- import "./chunk-IXAVIBKP.js";
11
- import "./chunk-RFJY5UW2.js";
12
- import "./chunk-MLKGABMK.js";
13
- export {
14
- HISTORY_WINDOW_RUNS,
15
- IntelligenceService
16
- };
File without changes