@canonry/canonry 7.113.0 → 7.115.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.
- package/assets/assets/AccessControls-BTEv8WEG.js +2 -0
- package/assets/assets/{AgentSetupPage-Bqpw8_pa.js → AgentSetupPage-CgZuonLM.js} +1 -1
- package/assets/assets/{AuditHistoryPanel-0zcL5_KV.js → AuditHistoryPanel-BzSIEL75.js} +1 -1
- package/assets/assets/{BacklinksPage-Kypu_CBg.js → BacklinksPage-ChKIJpMB.js} +1 -1
- package/assets/assets/{ChartPrimitives-CuLSMZRf.js → ChartPrimitives-IodrWRFV.js} +1 -1
- package/assets/assets/{HistoryPage-CsSkwiHD.js → HistoryPage-C3iaKueQ.js} +1 -1
- package/assets/assets/MeasurementPropertyPage-Dd7B-Ixb.js +4 -0
- package/assets/assets/ProjectPage-Ce4gBiK_.js +15 -0
- package/assets/assets/{RunsPage-CtcGk2M9.js → RunsPage-DRGUFx7X.js} +1 -1
- package/assets/assets/{ServerTrafficSection-BWd-wDZM.js → ServerTrafficSection-CrPHSAa5.js} +1 -1
- package/assets/assets/{SettingsPage-DHWJtLmM.js → SettingsPage-D6iGHRSV.js} +1 -1
- package/assets/assets/ToneBadge-D3F2fbxC.js +60 -0
- package/assets/assets/{TrafficPage-C-3_NTXQ.js → TrafficPage-DtUjNJ9U.js} +1 -1
- package/assets/assets/{TrafficSourceDetailPage-CRzsuCei.js → TrafficSourceDetailPage-o-I_uVwZ.js} +1 -1
- package/assets/assets/{account-context-DDb7nBdB.js → account-context-CBRGXimz.js} +1 -1
- package/assets/assets/{agent-trust-copy-DfskKzsn.js → agent-trust-copy-Bfe0oX0J.js} +1 -1
- package/assets/assets/{card-BM8bXgNt.js → card-Biwv3_aH.js} +1 -1
- package/assets/assets/index-CWI3NboX.js +43 -0
- package/assets/assets/{query-client-BQBRNHRa.js → query-client-CsLay1me.js} +1 -1
- package/assets/assets/{react-query-CJRQ352v.js → react-query-DNgX0alO.js} +1 -1
- package/assets/assets/{react-sigma_core.esm.min-BX0xxddn.js → react-sigma_core.esm.min-BN4etdK8.js} +1 -1
- package/assets/assets/{server-traffic-F4hKNLJy.js → server-traffic-CvK4BAVZ.js} +1 -1
- package/assets/assets/service-DxCuciCi.js +1 -0
- package/assets/index.html +8 -8
- package/dist/{ads-RNE2CDPT.js → ads-JE6P76GB.js} +3 -3
- package/dist/{agent-H3RZA7V5.js → agent-BFX6GSRF.js} +7 -7
- package/dist/{agent-ask-ZVM4P74Z.js → agent-ask-SKR5ZR3S.js} +3 -3
- package/dist/{agent-conversations-WTD4LMN3.js → agent-conversations-AI6UIDDB.js} +3 -3
- package/dist/{agent-journeys-YNBUYJH3.js → agent-journeys-PBVXSG4K.js} +3 -3
- package/dist/{agent-memory-KKTISDMW.js → agent-memory-MUPLQMXZ.js} +3 -3
- package/dist/{agent-providers-VW3PJ2CU.js → agent-providers-56SGYO6F.js} +3 -3
- package/dist/{agent-transcript-DSYFCMFG.js → agent-transcript-W2TCKZHU.js} +3 -3
- package/dist/{analytics-RUC5ENEA.js → analytics-E5DJUXYW.js} +3 -3
- package/dist/{apply-3DDFBAE4.js → apply-4BBHEPRB.js} +3 -3
- package/dist/{backfill-MBD5GR5J.js → backfill-BZOT2OWS.js} +10 -10
- package/dist/{backlinks-EWALMBY5.js → backlinks-F7KVYHNP.js} +3 -3
- package/dist/{bing-KKG2726P.js → bing-BKM3V5KY.js} +3 -3
- package/dist/{bootstrap-F4CAPH2R.js → bootstrap-MIVDV6NW.js} +10 -10
- package/dist/{cdp-4VYUIAD6.js → cdp-4DP7RUMV.js} +7 -7
- package/dist/{chunk-IXAVIBKP.js → chunk-2PDXME2V.js} +1 -1
- package/dist/{chunk-WQN32NXS.js → chunk-3BMWBXHZ.js} +1 -1
- package/dist/{chunk-YSDMYHDM.js → chunk-3NUSGD54.js} +1 -1
- package/dist/{chunk-OYOIW25C.js → chunk-4ZMO7NGG.js} +4 -4
- package/dist/{chunk-HL2BOPH3.js → chunk-64EMWVEP.js} +3 -3
- package/dist/{chunk-4HRWQTQY.js → chunk-67YNSJJY.js} +7 -7
- package/dist/{chunk-IMVE7Z6S.js → chunk-A2SB6EMM.js} +1 -1
- package/dist/{chunk-DKFVL2BE.js → chunk-ADBL7P3V.js} +2 -2
- package/dist/{chunk-BHPOICVI.js → chunk-BGIH54A3.js} +1 -1
- package/dist/{chunk-NFWEMRP5.js → chunk-CY52NTTK.js} +21 -21
- package/dist/{chunk-5IEINES2.js → chunk-F44DLEKZ.js} +1 -1
- package/dist/{chunk-3NDZ43NA.js → chunk-FBQ4ACPA.js} +4 -4
- package/dist/{chunk-CAQAEJBN.js → chunk-G5O4D7I6.js} +1 -1
- package/dist/{chunk-UNZJCCDO.js → chunk-GNXQMAHP.js} +2 -2
- package/dist/{chunk-GYFRSG7F.js → chunk-GXMQORTQ.js} +2 -2
- package/dist/{chunk-5A2HNY42.js → chunk-IOMPGPSF.js} +1 -1
- package/dist/{chunk-I2X27ECL.js → chunk-L6TNLBXW.js} +2 -2
- package/dist/{chunk-BN3PZHJW.js → chunk-LA42RIFU.js} +2 -2
- package/dist/{chunk-RFJY5UW2.js → chunk-LABWX26D.js} +240 -168
- package/dist/{chunk-2QSAPDUL.js → chunk-LK6KW5JN.js} +1 -1
- package/dist/{chunk-JEDFYKBL.js → chunk-OE5AMT4X.js} +367 -367
- package/dist/{chunk-CTUWWYNV.js → chunk-OSATM2GX.js} +3 -3
- package/dist/{chunk-VBXXP3YY.js → chunk-OTW4SJ5G.js} +6 -6
- package/dist/{chunk-3TPGHPOR.js → chunk-P5EFITKV.js} +3 -3
- package/dist/{chunk-J6UROG7V.js → chunk-PSP56PWY.js} +1 -1
- package/dist/{chunk-LAGHIZVO.js → chunk-QFIUKE5K.js} +3 -3
- package/dist/{chunk-T3IRL4TY.js → chunk-QNWN7VRZ.js} +1 -1
- package/dist/{chunk-H6LGOLBW.js → chunk-R5G7SFRX.js} +4 -4
- package/dist/{chunk-NLFXESPW.js → chunk-RRBIKOMI.js} +1 -1
- package/dist/{chunk-IXJCFQFA.js → chunk-T2AF4QN7.js} +4 -4
- package/dist/{chunk-67MQRWOS.js → chunk-TKD5RVLL.js} +2 -2
- package/dist/{chunk-OXHJGGXR.js → chunk-VUPCE7GC.js} +5 -5
- package/dist/{chunk-H3OKX3IA.js → chunk-WQXRRCFC.js} +5 -5
- package/dist/{chunk-WPTF34LH.js → chunk-X3ZK4A2L.js} +279 -90
- package/dist/{chunk-TUOPSFAU.js → chunk-YNWBNADZ.js} +3 -3
- package/dist/{chunk-IBX6VC7A.js → chunk-ZPHDPDLL.js} +3 -3
- package/dist/{citations-FWWFTIOT.js → citations-4FVSVZT2.js} +4 -4
- package/dist/{cli-catalog-RCM2HUCT.js → cli-catalog-SAUMPDAU.js} +3 -3
- package/dist/{cli-commands-FGF5ZY2E.js → cli-commands-DPRC73IM.js} +7 -7
- package/dist/cli.js +13 -13
- package/dist/{competitor-KGKTAS53.js → competitor-MJZ2BYYY.js} +3 -3
- package/dist/{content-TXZ4IOGJ.js → content-GRWRFY7N.js} +3 -3
- package/dist/{dashboard-IGBJPCUX.js → dashboard-JBXWQXYU.js} +6 -6
- package/dist/{demo-UXJ6SLWM.js → demo-W3QIXSYT.js} +1 -1
- package/dist/{demo-server-VFRGZEEQ.js → demo-server-E7KMACLN.js} +12 -12
- package/dist/{discover-EJSVZOVY.js → discover-KFWFOOT5.js} +4 -4
- package/dist/{discover-eval-6U5C6O5F.js → discover-eval-DOUPPY2M.js} +3 -3
- package/dist/{doctor-ONEJYJ2A.js → doctor-ZGZ2VEAR.js} +3 -3
- package/dist/{evidence-DRQCHIWI.js → evidence-27V4BDDW.js} +3 -3
- package/dist/{export-cmd-YJ3AFLXR.js → export-cmd-HCS5ILVI.js} +3 -3
- package/dist/{ga-AP4F2LSD.js → ga-MP2CGERV.js} +3 -3
- package/dist/{gbp-W2BZILFX.js → gbp-OLZAMOYH.js} +3 -3
- package/dist/{google-CNY7J4MZ.js → google-QB5MVADA.js} +4 -4
- package/dist/{google-marketing-OT2JSJUY.js → google-marketing-LWQPSXDT.js} +1 -1
- package/dist/{health-cmd-DU33WCDD.js → health-cmd-YITDAMGQ.js} +4 -4
- package/dist/{history-HRY6TLYX.js → history-UUSJUU64.js} +3 -3
- package/dist/index.d.ts +67 -67
- package/dist/index.js +25 -25
- package/dist/{init-XQJZ6DQX.js → init-Z337GCOA.js} +12 -12
- package/dist/{insights-SMURU5LJ.js → insights-Y2CVUEG7.js} +3 -3
- package/dist/intelligence-service-2N3SLVGN.js +16 -0
- package/dist/{journeys-BASXVLUD.js → journeys-DJ7VEJHO.js} +3 -3
- package/dist/{keys-KBHFQCQ5.js → keys-DLI7ZAYO.js} +3 -3
- package/dist/{keyword-EPNX57S2.js → keyword-VXU2JWZW.js} +3 -3
- package/dist/{logs-EHWCAIDD.js → logs-WINF42ZW.js} +3 -3
- package/dist/{mcp-TIMFG2HU.js → mcp-OBWG4O3Z.js} +4 -4
- package/dist/mcp.js +9 -9
- package/dist/{measurement-plan-T2WUFQGZ.js → measurement-plan-MFZD2EVF.js} +5 -5
- package/dist/{notify-EGJHQXJY.js → notify-UXPTKXDA.js} +3 -3
- package/dist/{organic-evidence-NZ4BYT7G.js → organic-evidence-7L6ZTSAH.js} +3 -3
- package/dist/{overview-FSTEFM7S.js → overview-M3OFICCH.js} +5 -5
- package/dist/{project-ZOGGHFMI.js → project-54O4VABG.js} +3 -3
- package/dist/{project-setup-DA55HKTE.js → project-setup-KQBXILOX.js} +3 -3
- package/dist/{query-YSZCPFUW.js → query-QAX5GMLH.js} +3 -3
- package/dist/{research-C3BDNI7X.js → research-5FO3VMLG.js} +3 -3
- package/dist/{results-export-YBHQ4GJY.js → results-export-75SDUK5R.js} +3 -3
- package/dist/{run-OI4Y4CPZ.js → run-ZYFBIQJ4.js} +5 -5
- package/dist/{schedule-HI5QUYZN.js → schedule-5MXMD6MZ.js} +3 -3
- package/dist/{search-H5VREMQP.js → search-AVVB33MS.js} +3 -3
- package/dist/{serve-OVEZ6LLG.js → serve-K7VUWZ3J.js} +26 -26
- package/dist/{session-6HUFUB6Y.js → session-M6ALLPJZ.js} +13 -13
- package/dist/{settings-M3TBHMXQ.js → settings-LJ4W7KYC.js} +3 -3
- package/dist/{sitemaps-6ZZ4LAPG.js → sitemaps-E26UGDHB.js} +3 -3
- package/dist/{skills-HWXV6FII.js → skills-KDKO76BH.js} +2 -2
- package/dist/{snapshot-VSQMPHFQ.js → snapshot-H6ESNKUI.js} +3 -3
- package/dist/{src-54XVRI7X.js → src-YZ5QIJMF.js} +2 -2
- package/dist/{status-6IB2JLE6.js → status-RTXJFACN.js} +5 -5
- package/dist/{technical-aeo-PZHXLFS4.js → technical-aeo-KMN7F4ZM.js} +3 -3
- package/dist/{telemetry-K3XNIML6.js → telemetry-GKKKHJSB.js} +4 -4
- package/dist/{tools-KQD2AZTB.js → tools-J2XJFSXA.js} +11 -11
- package/dist/{traffic-ZRFDZG7J.js → traffic-H57O776E.js} +5 -5
- package/dist/{trends-Q7YV4H6S.js → trends-JD5DR6AW.js} +3 -3
- package/dist/{users-KIC522TT.js → users-TEDPJX74.js} +3 -3
- package/dist/{visibility-stats-MN7367BK.js → visibility-stats-UQLDR4QJ.js} +4 -4
- package/dist/{wordpress-7UL7Q5HH.js → wordpress-NQGK7CYA.js} +3 -3
- package/package.json +1 -1
- package/assets/assets/AccessControls-8KGSA5-k.js +0 -2
- package/assets/assets/MeasurementPropertyPage-D4PDu2k_.js +0 -4
- package/assets/assets/ProjectPage-D00B6b7C.js +0 -15
- package/assets/assets/ToneBadge-Ci54jPqm.js +0 -60
- package/assets/assets/index-IFRMBJbA.js +0 -43
- package/assets/assets/service-D08PUQzL.js +0 -1
- package/dist/intelligence-service-UEIV4CYJ.js +0 -16
|
@@ -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
|
-
};
|