semiotic 3.13.2 → 3.13.3
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/README.md +47 -46
- package/ai/artifact-surface-inventory.json +1 -1
- package/ai/dist/mcp-server.js +4 -4
- package/ai/reference.md +23 -12
- package/ai/schema.json +258 -96
- package/ai/surface-manifest.json +1 -1
- package/ai/task-packets/compare-category-totals.json +5 -5
- package/ai/task-packets/compare-category-totals.md +2 -2
- package/ai/task-packets/correct-published-chart.json +5 -5
- package/ai/task-packets/correct-published-chart.md +2 -2
- package/ai/task-packets/index.json +6 -6
- package/ai/task-packets/update-live-chart.json +5 -5
- package/ai/task-packets/update-live-chart.md +2 -2
- package/dist/c-2YFVDRU4.min.js +1 -0
- package/dist/c-4OVDIXAR.min.js +1 -0
- package/dist/c-57IIWW46.min.js +1 -0
- package/dist/c-62UTMRQE.min.js +1 -0
- package/dist/c-6QV6F3U7.min.js +1 -0
- package/dist/c-7S46KBYD.min.js +2 -0
- package/dist/c-AJSS332Z.min.js +2 -0
- package/dist/c-B3X2IJRQ.min.js +1 -0
- package/dist/c-BLLDBVFK.min.js +38 -0
- package/dist/c-C7TT4J7K.min.js +1 -0
- package/dist/{c-ZMB3VTD4.min.js → c-CJ5GA7DM.min.js} +1 -1
- package/dist/c-D7YDFHLY.min.js +1 -0
- package/dist/{c-BR2TOCUN.min.js → c-DMDFJQU4.min.js} +1 -1
- package/dist/{c-JDU4Y4IW.min.js → c-FRVHZIGR.min.js} +1 -1
- package/dist/{c-MSZ3ZDAP.min.js → c-HAZCVHI7.min.js} +1 -1
- package/dist/c-HN5U72U7.min.js +1 -0
- package/dist/c-JA5F7ITS.min.js +1 -0
- package/dist/{c-ISHYKYII.min.js → c-JVZRD4GL.min.js} +1 -1
- package/dist/{c-OOR2LN4A.min.js → c-KJGJEOSV.min.js} +1 -1
- package/dist/c-M2TPZE7P.min.js +1 -0
- package/dist/c-OA6RJZ7S.min.js +1 -0
- package/dist/c-OBBSIOYU.min.js +1 -0
- package/dist/{c-SQQZPFVY.min.js → c-QPHM7AWW.min.js} +1 -1
- package/dist/{c-HOMJ3C6B.min.js → c-QSEAAHEU.min.js} +1 -1
- package/dist/c-RQWI623R.min.js +1 -0
- package/dist/{c-WFSEQ2XG.min.js → c-RWFADOKS.min.js} +1 -1
- package/dist/{c-SDGGMIYI.min.js → c-TJGC5JEM.min.js} +1 -1
- package/dist/{c-H5THWQI4.min.js → c-TOXWQRXS.min.js} +3 -3
- package/dist/c-VBDWHTC7.min.js +1 -0
- package/dist/c-VBIPDCE7.min.js +1 -0
- package/dist/c-WTNRBWZZ.min.js +51 -0
- package/dist/{c-3GIPT46Z.min.js → c-XG4LL2VI.min.js} +1 -1
- package/dist/c-XPNBS3W2.min.js +1 -0
- package/dist/c-XT3G3YWU.min.js +1 -0
- package/dist/c-ZP6O6UHV.min.js +1 -0
- package/dist/c-ZVL7ULNH.min.js +1 -0
- package/dist/components/ChartErrorBoundary.d.ts +5 -1
- package/dist/components/ai/intentWeights.d.ts +22 -0
- package/dist/components/ai/streamSchema.d.ts +98 -0
- package/dist/components/ai/streamingTypes.d.ts +27 -4
- package/dist/components/ai/suggestCharts.d.ts +10 -2
- package/dist/components/ai/suggestStreamCharts.d.ts +60 -13
- package/dist/components/ai/suggestStreamDashboard.d.ts +9 -1
- package/dist/components/charts/network/processSankey/frameMargins.d.ts +1 -1
- package/dist/components/charts/network/processSankey/labelPlacement.d.ts +1 -1
- package/dist/components/charts/physics/physicsHocUtils.d.ts +1 -1
- package/dist/components/charts/realtime/RealtimeAccumulator.d.ts +7 -0
- package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +9 -2
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +13 -1
- package/dist/components/charts/realtime/RealtimeLineChart.types.d.ts +5 -1
- package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +5 -1
- package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +7 -1
- package/dist/components/charts/realtime/TemporalHistogram.capability.d.ts +5 -3
- package/dist/components/charts/realtime/aggregate.d.ts +11 -12
- package/dist/components/charts/realtime/defaultRealtimeTooltip.d.ts +9 -0
- package/dist/components/charts/realtime/eventTime.d.ts +7 -1
- package/dist/components/charts/realtime/useRealtimeLineIngestion.d.ts +13 -0
- package/dist/components/charts/shared/ChartError.d.ts +4 -6
- package/dist/components/charts/shared/GaugeReadout.d.ts +39 -4
- package/dist/components/charts/shared/axisExtent.d.ts +2 -1
- package/dist/components/charts/shared/chartMode.d.ts +2 -2
- package/dist/components/charts/shared/gaugeLayout.d.ts +69 -0
- package/dist/components/charts/shared/types.d.ts +3 -0
- package/dist/components/charts/shared/useNetworkChartSetup.d.ts +3 -0
- package/dist/components/charts/shared/useStreamStatus.d.ts +2 -2
- package/dist/components/charts/shared/withChartErrorBoundary.d.ts +14 -0
- package/dist/components/charts/xy/Scatterplot.streamCapability.d.ts +2 -0
- package/dist/components/charts/xy/WaterfallChart.d.ts +2 -0
- package/dist/components/charts/xy/WaterfallIndex.d.ts +12 -0
- package/dist/components/charts/xy/lineGapStrategy.d.ts +15 -3
- package/dist/components/legendGeometry.d.ts +148 -0
- package/dist/components/legendLayout.d.ts +20 -38
- package/dist/components/realtime/ReorderBuffer.d.ts +14 -0
- package/dist/components/realtime/SlidingExtent.d.ts +18 -0
- package/dist/components/realtime/WindowAccumulator.d.ts +5 -1
- package/dist/components/realtime/renderers/types.d.ts +1 -0
- package/dist/components/realtime/renderers/waterfallRenderer.d.ts +1 -1
- package/dist/components/recipes/compositional/edgeRouting.d.ts +9 -0
- package/dist/components/recipes/compositional/metrics.d.ts +2 -2
- package/dist/components/recipes/compositional/projection.d.ts +3 -1
- package/dist/components/recipes/compositional/routing.d.ts +3 -1
- package/dist/components/recipes/compositional/testFixtures.d.ts +4 -0
- package/dist/components/recipes/compositional/topology.d.ts +2 -0
- package/dist/components/recipes/compositional/types.d.ts +10 -1
- package/dist/components/recipes/compositional/useCompositionalInterfaces.d.ts +20 -0
- package/dist/components/semiotic-ai-core.d.ts +3 -2
- package/dist/components/semiotic-ai-stream.d.ts +3 -2
- package/dist/components/semiotic-recipes-react.d.ts +2 -0
- package/dist/components/semiotic-utils-core.d.ts +2 -0
- package/dist/components/server/serverChartConfigHeatmap.d.ts +13 -0
- package/dist/components/server/staticLegend.d.ts +5 -0
- package/dist/components/server/staticLegendText.d.ts +13 -0
- package/dist/components/server/staticSVGChrome.d.ts +2 -2
- package/dist/components/stream/DataSourceAdapter.d.ts +15 -62
- package/dist/components/stream/FrameRuntime.d.ts +3 -0
- package/dist/components/stream/GeoPipelineStore.d.ts +2 -0
- package/dist/components/stream/IngestActivity.d.ts +9 -0
- package/dist/components/stream/NetworkPipelineStore.d.ts +3 -1
- package/dist/components/stream/OrdinalPipelineStore.d.ts +5 -2
- package/dist/components/stream/OrdinalSVGOverlay.d.ts +1 -1
- package/dist/components/stream/PipelineStore.d.ts +8 -3
- package/dist/components/stream/accessibleDataRows.d.ts +1 -0
- package/dist/components/stream/axisTickUtils.d.ts +25 -5
- package/dist/components/stream/frameDefaultMargins.d.ts +26 -4
- package/dist/components/stream/frameKeyboardNavigation.d.ts +8 -1
- package/dist/components/stream/geoTypes.d.ts +2 -0
- package/dist/components/stream/graphKeyboardNavigation.d.ts +4 -2
- package/dist/components/stream/hitTestUtils.d.ts +7 -0
- package/dist/components/stream/keyboardNav.d.ts +3 -1
- package/dist/components/stream/navigationGraph.d.ts +10 -3
- package/dist/components/stream/networkFrameKeyboardNavigation.d.ts +2 -0
- package/dist/components/stream/networkNavGroups.d.ts +3 -0
- package/dist/components/stream/networkPipelineConfig.d.ts +1 -0
- package/dist/components/stream/networkSceneTypes.d.ts +10 -0
- package/dist/components/stream/networkSpatialNavigation.d.ts +3 -0
- package/dist/components/stream/networkTypes.d.ts +2 -0
- package/dist/components/stream/ordinalAxisTicks.d.ts +27 -0
- package/dist/components/stream/ordinalSceneBuilders/pieScene.d.ts +10 -0
- package/dist/components/stream/ordinalSceneBuilders/types.d.ts +2 -0
- package/dist/components/stream/ordinalTypes.d.ts +11 -2
- package/dist/components/stream/pipelineBufferUtils.d.ts +9 -0
- package/dist/components/stream/pipelineConfig.d.ts +7 -0
- package/dist/components/stream/pipelineDomainResolution.d.ts +3 -2
- package/dist/components/stream/roundScaleDomain.d.ts +9 -0
- package/dist/components/stream/stalenessBands.d.ts +1 -1
- package/dist/components/stream/svgOverlayUtils.d.ts +12 -0
- package/dist/components/stream/types.d.ts +10 -2
- package/dist/components/stream/useFrame.d.ts +7 -4
- package/dist/components/stream/useOrdinalFrameHandle.d.ts +4 -14
- package/dist/components/stream/useStalenessCheck.d.ts +5 -3
- package/dist/components/stream/useStreamingDataHandle.d.ts +24 -0
- package/dist/components/stream/useXYFrameHandle.d.ts +4 -14
- package/dist/components/stream/xyDateTicks.d.ts +33 -4
- package/dist/components/stream/xyFrameAxisTypes.d.ts +2 -0
- package/dist/components/stream/xyPlugins/registry.d.ts +7 -0
- package/dist/components/stream/xySceneBuilders/heatmapScene.d.ts +11 -2
- package/dist/components/stream/xySceneBuilders/types.d.ts +4 -0
- package/dist/components/types/legendTypes.d.ts +12 -1
- package/dist/geo.min.js +155 -152
- package/dist/geo.module.min.js +1 -1
- package/dist/network.module.min.js +1 -1
- package/dist/ordinal.module.min.js +1 -1
- package/dist/physics.module.min.js +1 -1
- package/dist/processSankeyLayoutWorker.js +1 -1
- package/dist/semiotic-ai-core.d.ts +3 -2
- package/dist/semiotic-ai-core.min.js +5 -5
- package/dist/semiotic-ai-core.module.min.js +4 -4
- package/dist/semiotic-ai.module.min.js +2 -2
- package/dist/semiotic-artifact.min.js +6 -6
- package/dist/semiotic-artifact.module.min.js +5 -5
- package/dist/semiotic-atlas-selection.module.min.js +1 -1
- package/dist/semiotic-atlas.module.min.js +1 -1
- package/dist/semiotic-client-cjs-shared.min.js +1022 -1018
- package/dist/semiotic-client-compositional.module.min.js +1 -1
- package/dist/semiotic-client-shared.module.min.js +1 -1
- package/dist/semiotic-experimental-auxiliary.module.min.js +1 -1
- package/dist/semiotic-experimental-node-auxiliary.module.min.js +1 -1
- package/dist/semiotic-line.module.min.js +1 -1
- package/dist/semiotic-realtime-core.module.min.js +1 -1
- package/dist/semiotic-realtime-react.module.min.js +1 -1
- package/dist/semiotic-recipes-core-cjs-base.min.js +101 -101
- package/dist/semiotic-recipes-core.module.min.js +1 -1
- package/dist/semiotic-recipes-react.d.ts +2 -0
- package/dist/semiotic-recipes-react.min.js +8 -8
- package/dist/semiotic-server-edge-node.module.min.js +3 -3
- package/dist/semiotic-server-edge.min.js +399 -394
- package/dist/semiotic-server-edge.module.min.js +3 -3
- package/dist/semiotic-server-node.min.js +399 -394
- package/dist/semiotic-utils-core.d.ts +2 -0
- package/dist/semiotic-utils-core.min.js +11 -11
- package/dist/semiotic-utils-core.module.min.js +3 -3
- package/dist/semiotic-value.module.min.js +1 -1
- package/dist/semiotic.module.min.js +1 -1
- package/dist/server.min.js +399 -394
- package/dist/server.module.min.js +3 -3
- package/dist/xy.module.min.js +1 -1
- package/package.json +11 -11
- package/dist/c-27SDQN3J.min.js +0 -1
- package/dist/c-2N7IU2NY.min.js +0 -1
- package/dist/c-4EUQNA7N.min.js +0 -2
- package/dist/c-5EPR4KFB.min.js +0 -1
- package/dist/c-5KZ3NO6X.min.js +0 -1
- package/dist/c-7UN2WUMI.min.js +0 -1
- package/dist/c-BRBTXINY.min.js +0 -1
- package/dist/c-C3Z7ZRAA.min.js +0 -1
- package/dist/c-C4WRRUZ5.min.js +0 -1
- package/dist/c-CXDAWBOW.min.js +0 -1
- package/dist/c-DJ6DT5BL.min.js +0 -51
- package/dist/c-DNBFFE3P.min.js +0 -1
- package/dist/c-HR5AH3MA.min.js +0 -1
- package/dist/c-HTL37JCD.min.js +0 -1
- package/dist/c-JS2D7A2P.min.js +0 -1
- package/dist/c-L6OT4OVA.min.js +0 -1
- package/dist/c-NB2UEX5C.min.js +0 -1
- package/dist/c-OU7A3IUL.min.js +0 -1
- package/dist/c-PNLTF6YG.min.js +0 -37
- package/dist/c-QVKOXC3S.min.js +0 -1
- package/dist/c-SIQVOV6A.min.js +0 -1
- package/dist/c-TBMFC5CR.min.js +0 -1
- package/dist/c-XF5ILLBG.min.js +0 -1
- package/dist/c-YQHGEETR.min.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{
|
|
2
|
+
export{f as LineChart}from"./c-JA5F7ITS.min.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
function t(i,t){if("string"==typeof i.id&&i.id.length>0)return i.id;if(!i.row)return;if("function"==typeof t)return t(i.row);let o=i.row[t];return null==o?void 0:String(o)}function r(i,t){let o=new Set;for(let r of i){let i="function"==typeof t?t(r):r[t];null!=i&&o.add(String(i))}return o}function m(i,o,m){let e=!1!==m.coalesce?Array.from(o.reduce((i,o)=>{let r=t(o,m.key);return r&&(i.delete(r),i.set(r,o)),i},new Map).values()):[...o],n=r(i.getData(),m.key),s=[],a=0,p=0,c=0,j=()=>{0!==s.length&&(i.pushMany(s),c+=s.length,a+=s.length,s.length=0)};for(let o of e){let r=t(o,m.key);if(r){if("delete"===o.op||"retract"===o.op){j(),i.remove(r),n.delete(r),p+=1,c+=1;continue}o.row&&(n.has(r)?(j(),i.update(r,()=>o.row).length>0?(a+=1,c+=1):s.push(o.row)):(s.push(o.row),n.add(r)))}}return j(),{applied:c,upserts:a,retracts:p}}export{a as registerBuiltInXYPlugins}from"./c-
|
|
2
|
+
function t(i,t){if("string"==typeof i.id&&i.id.length>0)return i.id;if(!i.row)return;if("function"==typeof t)return t(i.row);let o=i.row[t];return null==o?void 0:String(o)}function r(i,t){let o=new Set;for(let r of i){let i="function"==typeof t?t(r):r[t];null!=i&&o.add(String(i))}return o}function m(i,o,m){let e=!1!==m.coalesce?Array.from(o.reduce((i,o)=>{let r=t(o,m.key);return r&&(i.delete(r),i.set(r,o)),i},new Map).values()):[...o],n=r(i.getData(),m.key),s=[],a=0,p=0,c=0,j=()=>{0!==s.length&&(i.pushMany(s),c+=s.length,a+=s.length,s.length=0)};for(let o of e){let r=t(o,m.key);if(r){if("delete"===o.op||"retract"===o.op){j(),i.remove(r),n.delete(r),p+=1,c+=1;continue}o.row&&(n.has(r)?(j(),i.update(r,()=>o.row).length>0?(a+=1,c+=1):s.push(o.row)):(s.push(o.row),n.add(r)))}}return j(),{applied:c,upserts:a,retracts:p}}export{a as IncrementalExtent}from"./c-OA6RJZ7S.min.js";export{a as registerBuiltInXYPlugins}from"./c-XPNBS3W2.min.js";export{b as HyperLogLog,p as RealtimeHeatmap,k as RealtimeHistogram,i as RealtimeLineChart,n as RealtimeSwarmChart,o as RealtimeWaterfallChart,h as ReorderBuffer,a as RunningStats,c as TDigest,l as TemporalHistogram,d as WindowAccumulator,f as bandBounds,j as histogramBinSelectionDatum,g as parseWindowDuration,e as statValue}from"./c-BLLDBVFK.min.js";import"./c-ZVL7ULNH.min.js";import"./c-5NAU4JAY.min.js";export{f as StreamXYFrame}from"./c-4OVDIXAR.min.js";export{a as RingBuffer}from"./c-VBIPDCE7.min.js";export{b as StreamNetworkFrame}from"./c-6QV6F3U7.min.js";export{c as DEFAULT_LIFECYCLE_THRESHOLDS,aM as MultiLineTooltip,aR as MultiPointTooltip,aL as Tooltip,d as bandFromAge,f as compileMotionEncoding,j as deriveMotionVector,h as opacityFromAge,e as resolveMotionAccessor,i as resolveMotionVector}from"./c-62UTMRQE.min.js";export{B as TooltipRoot,E as hasOwnTooltipChrome,x as hasTooltipContent,D as markTooltipChrome}from"./c-B3X2IJRQ.min.js";export{c as getSourceRows}from"./c-5PCO2P5Q.min.js";export{m as applyChangelog};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
function e(e={}){let{staleThresholdMs:t=5e3,pollIntervalMs:
|
|
2
|
+
function e(e={}){let{staleThresholdMs:t=5e3,pollIntervalMs:r=1e3}=e,n=d(null),[l,s]=g({status:"idle",lastPushTime:null}),u=d(l),o=f((e,t)=>{u.current.status===e&&u.current.lastPushTime===t||(u.current={status:e,lastPushTime:t},s(u.current))},[]),a=f(()=>{let e=typeof performance<"u"?performance.now():Date.now();n.current=e,"active"!==u.current.status&&o("active",e)},[o]),i=h(()=>{let e=null,t=null;return{get current(){return t},set current(r){if(r===e||r===t)return;if(e=r,!r)return void(t=null);let n=new Map;t=new Proxy({},{get(t,l){let s=Reflect.get(r,l,r);if("function"!=typeof s)return s;let u=n.get(l);return u||(u=(...t)=>{let n=Reflect.get(r,l,r);if("function"!=typeof n)throw new TypeError(`Stream handle ${String(l)} is no longer callable`);let s=Reflect.apply(n,r,t);return e===r&&("push"===l||"pushMany"===l&&Array.isArray(t[0])&&t[0].length>0)&&a(),s},n.set(l,u)),u},has:(e,t)=>t in r,ownKeys:()=>Reflect.ownKeys(r),getOwnPropertyDescriptor(e,t){let n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{...n,configurable:!0}},getPrototypeOf:()=>Reflect.getPrototypeOf(r),set:(e,t,n)=>Reflect.set(r,t,n,r)})}}},[a]);return p(()=>()=>{i.current=null},[i]),p(()=>{let e=setInterval(()=>{let e=n.current;if(null==e)return;let r=typeof performance<"u"?performance.now():Date.now();o(r-e>t?"stale":"active",e)},r);return()=>clearInterval(e)},[t,r,o]),{ref:i,...l}}function t(e,t,l,s){let u=new Map,o=null==s;if(l.forEach((e,t)=>{let r=s?.(e,t);(null==r||u.has(r))&&(o=!0),u.set(r??String(t),e)}),o&&(u.clear(),l.forEach((e,t)=>u.set(String(t),e))),0===t.size)return r(e,[...l]),u;let a=[...t.values()],i=null==s||[...t.keys()].some((e,t)=>s(a[t],t)!==e);if(o||i)return a.length<=l.length&&a.every((e,t)=>e===l[t])&&o===i?r(e,l.slice(a.length)):n(e,l),u;let c=[];if(t.forEach((e,t)=>{u.has(t)||c.push(t)}),c.length>0&&!e.remove||!e.update&&!e.remove&&[...u].some(([e,r])=>t.has(e)&&t.get(e)!==r))return n(e,l),u;c.length>0&&e.remove?.(c);let f=[];return u.forEach((r,n)=>{let l=t.get(n);void 0===l?f.push(r):l!==r&&(e.update?e.update(n,()=>r):(e.remove?.(n),f.push(r)))}),r(e,f),u}function r(e,t){if(0!==t.length)if(e.pushMany)e.pushMany(t);else if(e.push)for(let r of t)e.push(r)}function n(e,t){if(!e.clear)throw new Error("Synchronizing these changed rows requires a clear() handle");e.clear(),r(e,[...t])}function l(e,r,n={}){let{id:l,resetKey:s}=n,u=y(()=>function(e){return null==e?null:"function"==typeof e?(t,r)=>{let n=e(t,r);return null==n?null:String(n)}:t=>{let r=t[e];return null==r?null:String(r)}}(l),[l]),o=w({map:new Map,handle:null,resetKey:void 0});m(()=>{let n=e.current;if(!n)return;let l=o.current;(l.handle!==n||l.resetKey!==s)&&(n.clear?.(),l.map=new Map,l.handle=n,l.resetKey=s),l.map=t(n,l.map,r,u)},[e,r,u,s])}function s(e,t){return e===t||!(!e||!t||e.xValue!==t.xValue||e.sourceId!==t.sourceId||!!e.locked!=!!t.locked)}function u(e){return e&&Number.isFinite(e.xValue)?{...e,sourceId:e.sourceId??"external"}:null}function o(){return E??(E=function(){let e=new Map,t=new Set;return{getSnapshot:()=>e,subscribe:e=>(t.add(e),()=>t.delete(e)),set:(r,n)=>{if(!s(e.get(r)??null,n)){e=new Map(e),n?e.set(r,n):e.delete(r);for(let e of t)e()}}}}())}function a(e,t){let r=e=>t?.name===e&&void 0!==t.position,n=n=>r(n)?u(t.position):e.getSnapshot().get(n)??null,l=(l,o)=>{let a=u(o);s(n(l),a)||(r(l)||e.set(l,a),t?.name===l&&t.onPositionChange?.(a))};return{setPosition:l,setCrosshairPosition(e,t,r){n(e)?.locked||l(e,{xValue:t,sourceId:r})},clearCrosshairPosition(e,t){let r=n(e);r&&!r.locked&&r.sourceId===t&&l(e,null)},toggleCrosshairLock:(e,t,r)=>n(e)?.locked?(l(e,null),!1):(l(e,{xValue:t,sourceId:r,locked:!0}),!0),unlockCrosshair(e,t){let r=n(e);r?.locked&&(!t||r.sourceId===t)&&l(e,null)},releaseCrosshair(e,t){!r(e)&&n(e)?.sourceId===t&&l(e,null)}}}function i(e){let t=P(b),r=t?.store??o(),n=C(e?r.subscribe:D,r.getSnapshot,K),l=t?.control,s=null!=l&&l.name===e&&void 0!==l.position,a=s?l.position??null:null,i=k(()=>u(a),[a]);return s?i:e?n.get(e)??null:null}function c(e){let t=i(e),r=function(){let e=P(b),t=e?.store??o(),r=null!==e;return k(()=>({...a(t,e?.control),handlesEscape:r}),[t,e?.control,r])}();return{position:t,setPosition:S(t=>r.setPosition(e,t),[r,e])}}import{useCallback as f,useEffect as p,useMemo as h,useRef as d,useState as g}from"react";import{useEffect as m,useMemo as y,useRef as w}from"react";import{createContext as v,useCallback as S,useContext as P,useEffect as M,useMemo as k,useState as x,useSyncExternalStore as C}from"react";import{jsx as I}from"react/jsx-runtime";var E,b=/*#__PURE__*/v(null),R=/*#__PURE__*/new Map,K=()=>R,D=()=>()=>{};export{t as syncPushBuffer,i as useCrosshairPosition,c as useLinkedCrosshair,e as useStreamStatus,l as useSyncedPushData};
|