@azohra/meteo.station 0.7.0 → 0.7.2

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 (239) hide show
  1. package/dist/air.d.ts +4 -7
  2. package/dist/air.js +1 -2
  3. package/dist/client/climatology.d.ts +5 -8
  4. package/dist/client/climatology.js +1 -2
  5. package/dist/client/history.d.ts +14 -17
  6. package/dist/client/history.js +2 -3
  7. package/dist/client/index.js +1 -1
  8. package/dist/client/live.d.ts +10 -12
  9. package/dist/client/live.js +1 -2
  10. package/dist/client/poll.d.ts +9 -12
  11. package/dist/client/poll.js +1 -2
  12. package/dist/client/stores.d.ts +9 -11
  13. package/dist/client/stores.js +2 -3
  14. package/dist/client/ticker.d.ts +1 -4
  15. package/dist/client/ticker.js +1 -2
  16. package/dist/climatology.d.ts +13 -15
  17. package/dist/climatology.js +1 -2
  18. package/dist/connectivity.d.ts +7 -10
  19. package/dist/connectivity.js +1 -2
  20. package/dist/contract-climatology.d.ts +11 -14
  21. package/dist/contract-climatology.js +1 -2
  22. package/dist/contract.d.ts +45 -48
  23. package/dist/contract.js +1 -2
  24. package/dist/derive.d.ts +24 -26
  25. package/dist/derive.js +1 -2
  26. package/dist/display.d.ts +7 -10
  27. package/dist/display.js +1 -2
  28. package/dist/elements/elements/AirExtremesElement.d.ts +2 -5
  29. package/dist/elements/elements/AirExtremesElement.js +1 -2
  30. package/dist/elements/elements/AirMatrixElement.d.ts +2 -5
  31. package/dist/elements/elements/AirMatrixElement.js +1 -2
  32. package/dist/elements/elements/ClimatologyDailyPatternElement.d.ts +2 -5
  33. package/dist/elements/elements/ClimatologyDailyPatternElement.js +2 -3
  34. package/dist/elements/elements/ClimatologyRoseElement.d.ts +2 -5
  35. package/dist/elements/elements/ClimatologyRoseElement.js +2 -3
  36. package/dist/elements/elements/CompassFanElement.d.ts +2 -5
  37. package/dist/elements/elements/CompassFanElement.js +1 -2
  38. package/dist/elements/elements/CurrentConditionsElement.d.ts +2 -5
  39. package/dist/elements/elements/CurrentConditionsElement.js +1 -2
  40. package/dist/elements/elements/DailyPatternElement.d.ts +2 -5
  41. package/dist/elements/elements/DailyPatternElement.js +2 -3
  42. package/dist/elements/elements/DialElement.d.ts +2 -5
  43. package/dist/elements/elements/DialElement.js +1 -2
  44. package/dist/elements/elements/FavorableShareElement.d.ts +2 -5
  45. package/dist/elements/elements/FavorableShareElement.js +1 -2
  46. package/dist/elements/elements/FreshnessBadgeElement.d.ts +2 -5
  47. package/dist/elements/elements/FreshnessBadgeElement.js +1 -2
  48. package/dist/elements/elements/RecentSummariesElement.d.ts +2 -5
  49. package/dist/elements/elements/RecentSummariesElement.js +1 -2
  50. package/dist/elements/elements/SparklineElement.d.ts +2 -5
  51. package/dist/elements/elements/SparklineElement.js +1 -2
  52. package/dist/elements/elements/StationCardElement.d.ts +6 -8
  53. package/dist/elements/elements/StationCardElement.js +4 -5
  54. package/dist/elements/elements/StationFeedElement.d.ts +2 -5
  55. package/dist/elements/elements/StationFeedElement.js +3 -4
  56. package/dist/elements/elements/StationStripElement.d.ts +2 -5
  57. package/dist/elements/elements/StationStripElement.js +1 -2
  58. package/dist/elements/elements/StationTableElement.d.ts +3 -6
  59. package/dist/elements/elements/StationTableElement.js +2 -3
  60. package/dist/elements/elements/TrendChartElement.d.ts +2 -5
  61. package/dist/elements/elements/TrendChartElement.js +2 -3
  62. package/dist/elements/elements/WindArrowElement.d.ts +2 -5
  63. package/dist/elements/elements/WindArrowElement.js +1 -2
  64. package/dist/elements/elements/WindHistoryChartElement.d.ts +2 -5
  65. package/dist/elements/elements/WindHistoryChartElement.js +4 -5
  66. package/dist/elements/elements/WindRoseElement.d.ts +2 -5
  67. package/dist/elements/elements/WindRoseElement.js +1 -2
  68. package/dist/elements/elements/atoms.d.ts +9 -11
  69. package/dist/elements/elements/atoms.js +2 -3
  70. package/dist/elements/index.d.ts +4 -6
  71. package/dist/elements/index.js +1 -2
  72. package/dist/elements/lib/ambient.d.ts +2 -5
  73. package/dist/elements/lib/ambient.js +1 -2
  74. package/dist/elements/lib/attributes.js +1 -2
  75. package/dist/elements/lib/base.d.ts +3 -6
  76. package/dist/elements/lib/base.js +2 -3
  77. package/dist/elements/lib/context.js +1 -2
  78. package/dist/elements/lib/fragments.js +2 -3
  79. package/dist/elements/lib/h.js +1 -2
  80. package/dist/elements/lib/pinned-cursor.js +1 -2
  81. package/dist/elements/lib/render.js +1 -2
  82. package/dist/elements/register.js +1 -2
  83. package/dist/endpoints.d.ts +6 -9
  84. package/dist/endpoints.js +6 -3
  85. package/dist/fixtures.d.ts +7 -10
  86. package/dist/fixtures.js +1 -2
  87. package/dist/format.d.ts +11 -14
  88. package/dist/format.js +1 -2
  89. package/dist/geometry.d.ts +36 -39
  90. package/dist/geometry.js +7 -8
  91. package/dist/index.d.ts +6 -6
  92. package/dist/index.js +2 -2
  93. package/dist/instruments.d.ts +37 -40
  94. package/dist/instruments.js +1 -2
  95. package/dist/merge-current.d.ts +4 -7
  96. package/dist/merge-current.js +1 -2
  97. package/dist/react/components/AirExtremes.d.ts +2 -5
  98. package/dist/react/components/AirExtremes.js +1 -2
  99. package/dist/react/components/AirMatrix.d.ts +2 -5
  100. package/dist/react/components/AirMatrix.js +1 -2
  101. package/dist/react/components/ClimatologyDailyPattern.d.ts +2 -5
  102. package/dist/react/components/ClimatologyDailyPattern.js +1 -2
  103. package/dist/react/components/ClimatologyRose.d.ts +2 -5
  104. package/dist/react/components/ClimatologyRose.js +1 -2
  105. package/dist/react/components/CompassFan.d.ts +2 -5
  106. package/dist/react/components/CompassFan.js +1 -2
  107. package/dist/react/components/CurrentConditions.d.ts +2 -5
  108. package/dist/react/components/CurrentConditions.js +3 -4
  109. package/dist/react/components/DailyPattern.d.ts +2 -5
  110. package/dist/react/components/DailyPattern.js +2 -3
  111. package/dist/react/components/Dial.d.ts +2 -5
  112. package/dist/react/components/Dial.js +3 -4
  113. package/dist/react/components/FavorableShare.d.ts +2 -5
  114. package/dist/react/components/FavorableShare.js +1 -2
  115. package/dist/react/components/FreshnessBadge.d.ts +2 -5
  116. package/dist/react/components/FreshnessBadge.js +1 -2
  117. package/dist/react/components/Readout.d.ts +2 -5
  118. package/dist/react/components/Readout.js +1 -2
  119. package/dist/react/components/RecentSummaries.d.ts +2 -5
  120. package/dist/react/components/RecentSummaries.js +1 -2
  121. package/dist/react/components/SceneTree.js +1 -2
  122. package/dist/react/components/Sparkline.d.ts +2 -5
  123. package/dist/react/components/Sparkline.js +2 -3
  124. package/dist/react/components/StationCard.d.ts +6 -8
  125. package/dist/react/components/StationCard.js +4 -5
  126. package/dist/react/components/StationFeedProvider.d.ts +3 -6
  127. package/dist/react/components/StationFeedProvider.js +2 -3
  128. package/dist/react/components/StationStrip.d.ts +2 -5
  129. package/dist/react/components/StationStrip.js +3 -4
  130. package/dist/react/components/StationTable.d.ts +3 -6
  131. package/dist/react/components/StationTable.js +4 -5
  132. package/dist/react/components/TrendChart.d.ts +3 -6
  133. package/dist/react/components/TrendChart.js +3 -4
  134. package/dist/react/components/WindArrow.d.ts +2 -5
  135. package/dist/react/components/WindArrow.js +1 -2
  136. package/dist/react/components/WindHistoryChart.d.ts +2 -5
  137. package/dist/react/components/WindHistoryChart.js +4 -5
  138. package/dist/react/components/WindRose.d.ts +2 -5
  139. package/dist/react/components/WindRose.js +1 -2
  140. package/dist/react/components/WindSampleStrip.d.ts +2 -5
  141. package/dist/react/components/WindSampleStrip.js +4 -5
  142. package/dist/react/components/atoms.d.ts +9 -11
  143. package/dist/react/components/atoms.js +3 -4
  144. package/dist/react/hooks/useFreshness.d.ts +1 -4
  145. package/dist/react/hooks/useFreshness.js +2 -3
  146. package/dist/react/hooks/useMeasuredChartWidth.d.ts +2 -5
  147. package/dist/react/hooks/useMeasuredChartWidth.js +1 -2
  148. package/dist/react/hooks/usePolledJson.js +1 -2
  149. package/dist/react/hooks/useStation.d.ts +2 -5
  150. package/dist/react/hooks/useStation.js +1 -2
  151. package/dist/react/hooks/useStationClimatology.d.ts +2 -5
  152. package/dist/react/hooks/useStationClimatology.js +2 -3
  153. package/dist/react/hooks/useStationCurrent.d.ts +2 -5
  154. package/dist/react/hooks/useStationCurrent.js +1 -2
  155. package/dist/react/hooks/useStationFeed.d.ts +2 -5
  156. package/dist/react/hooks/useStationFeed.js +1 -2
  157. package/dist/react/hooks/useStationLive.d.ts +2 -5
  158. package/dist/react/hooks/useStationLive.js +1 -2
  159. package/dist/react/index.d.ts +1 -1
  160. package/dist/react/index.js +3 -3
  161. package/dist/react/lib/cells.js +1 -2
  162. package/dist/react/lib/use-pinned-cursor.js +1 -2
  163. package/dist/samples.d.ts +8 -11
  164. package/dist/samples.js +1 -2
  165. package/dist/scene/air-extremes.js +1 -2
  166. package/dist/scene/air-matrix.js +1 -2
  167. package/dist/scene/atoms.d.ts +2 -2
  168. package/dist/scene/atoms.js +2 -3
  169. package/dist/scene/card.js +2 -3
  170. package/dist/scene/cells.d.ts +2 -2
  171. package/dist/scene/cells.js +2 -3
  172. package/dist/scene/chart.d.ts +2 -5
  173. package/dist/scene/chart.js +1 -2
  174. package/dist/scene/climatology-pattern.d.ts +2 -2
  175. package/dist/scene/climatology-pattern.js +2 -3
  176. package/dist/scene/climatology-rose.d.ts +2 -2
  177. package/dist/scene/climatology-rose.js +2 -3
  178. package/dist/scene/compass-fan.d.ts +2 -2
  179. package/dist/scene/compass-fan.js +2 -3
  180. package/dist/scene/current.d.ts +2 -2
  181. package/dist/scene/current.js +3 -4
  182. package/dist/scene/daily-pattern.d.ts +2 -2
  183. package/dist/scene/daily-pattern.js +2 -3
  184. package/dist/scene/dial-parts.js +1 -2
  185. package/dist/scene/dial.d.ts +2 -2
  186. package/dist/scene/dial.js +3 -4
  187. package/dist/scene/favorable-share.d.ts +2 -2
  188. package/dist/scene/favorable-share.js +1 -2
  189. package/dist/scene/glyphs.js +1 -2
  190. package/dist/scene/node.js +1 -2
  191. package/dist/scene/recent-summaries.d.ts +2 -2
  192. package/dist/scene/recent-summaries.js +2 -3
  193. package/dist/scene/rose.d.ts +2 -2
  194. package/dist/scene/rose.js +1 -2
  195. package/dist/scene/sample-strip.d.ts +2 -2
  196. package/dist/scene/sample-strip.js +2 -3
  197. package/dist/scene/sparkline.js +2 -3
  198. package/dist/scene/strip.js +3 -4
  199. package/dist/scene/table.js +3 -4
  200. package/dist/scene/trend.d.ts +2 -2
  201. package/dist/scene/trend.js +1 -2
  202. package/dist/scene/wind-history.d.ts +2 -2
  203. package/dist/scene/wind-history.js +3 -4
  204. package/dist/scene/wind-plot.d.ts +1 -1
  205. package/dist/scene/wind-plot.js +2 -3
  206. package/dist/server/adapter.d.ts +7 -10
  207. package/dist/server/adapter.js +1 -2
  208. package/dist/server/adapters/campbell.d.ts +12 -14
  209. package/dist/server/adapters/campbell.js +2 -3
  210. package/dist/server/adapters/ecowitt.d.ts +5 -8
  211. package/dist/server/adapters/ecowitt.js +2 -3
  212. package/dist/server/adapters/tempest.d.ts +5 -8
  213. package/dist/server/adapters/tempest.js +2 -3
  214. package/dist/server/adapters/windnerd-climatology.d.ts +6 -9
  215. package/dist/server/adapters/windnerd-climatology.js +3 -4
  216. package/dist/server/adapters/windnerd-live.d.ts +3 -6
  217. package/dist/server/adapters/windnerd-live.js +1 -2
  218. package/dist/server/adapters/windnerd.d.ts +24 -27
  219. package/dist/server/adapters/windnerd.js +7 -8
  220. package/dist/server/config.d.ts +18 -20
  221. package/dist/server/config.js +1 -2
  222. package/dist/server/environment.d.ts +21 -23
  223. package/dist/server/environment.js +14 -15
  224. package/dist/server/feed.d.ts +20 -22
  225. package/dist/server/feed.js +3 -4
  226. package/dist/server/handler.d.ts +5 -8
  227. package/dist/server/handler.js +3 -4
  228. package/dist/server/hologram.d.ts +9 -12
  229. package/dist/server/hologram.js +1 -2
  230. package/dist/server/index.d.ts +1 -1
  231. package/dist/server/index.js +9 -9
  232. package/dist/server/live.d.ts +2 -5
  233. package/dist/server/live.js +1 -2
  234. package/dist/sse.js +1 -2
  235. package/dist/strings.d.ts +8 -11
  236. package/dist/strings.js +1 -2
  237. package/dist/windnerd.d.ts +4 -7
  238. package/dist/windnerd.js +1 -2
  239. package/package.json +10 -10
@@ -1,13 +1,10 @@
1
1
  import { StationCurrent, StationFeed } from "./contract.js";
2
- //#region src/merge-current.d.ts
3
- type MergeResult = {
2
+ export type MergeResult = {
4
3
  feed: StationFeed;
5
4
  merged: boolean;
6
5
  };
7
- declare function mergeCurrent(feed: StationFeed, current: StationCurrent): MergeResult;
8
- declare function foldCurrent(feed: StationFeed | null, feedReceivedAtMs: number | null, current: StationCurrent | null, currentReceivedAtMs: number | null): {
6
+ export declare function mergeCurrent(feed: StationFeed, current: StationCurrent): MergeResult;
7
+ export declare function foldCurrent(feed: StationFeed | null, feedReceivedAtMs: number | null, current: StationCurrent | null, currentReceivedAtMs: number | null): {
9
8
  feed: StationFeed | null;
10
9
  receivedAtMs: number | null;
11
- };
12
- //#endregion
13
- export { MergeResult, foldCurrent, mergeCurrent };
10
+ };
@@ -1,4 +1,4 @@
1
- //#region src/merge-current.ts
1
+ // src/merge-current.ts
2
2
  function preserveOmitted(incoming, prior) {
3
3
  if (prior == null) return incoming;
4
4
  return {
@@ -51,5 +51,4 @@ function foldCurrent(feed, feedReceivedAtMs, current, currentReceivedAtMs) {
51
51
  receivedAtMs: result.merged ? currentReceivedAtMs : feedReceivedAtMs
52
52
  };
53
53
  }
54
- //#endregion
55
54
  export { foldCurrent, mergeCurrent };
@@ -1,16 +1,13 @@
1
1
  import { Station } from "../../contract.js";
2
2
  import { StationStringOverrides } from "../../strings.js";
3
3
  import "../../index.js";
4
- //#region src/react/components/AirExtremes.d.ts
5
4
  /** Derived atmo tiles from served history: the last completed night's low
6
5
  * (real astronomy — no coordinates, no tile) and the trailing pressure
7
6
  * delta. Nothing derivable, nothing rendered. */
8
- declare function AirExtremes({ station: stationProp, stationId, nowMs, strings: stringsProp }: {
7
+ export declare function AirExtremes({ station: stationProp, stationId, nowMs, strings: stringsProp }: {
9
8
  station?: Station;
10
9
  stationId?: string;
11
10
  /** Pinned in tests; defaults to the wall clock. */
12
11
  nowMs?: number;
13
12
  strings?: StationStringOverrides;
14
- }): import("react").ReactNode;
15
- //#endregion
16
- export { AirExtremes };
13
+ }): import("react").ReactNode;
@@ -3,7 +3,7 @@ import { resolveDisplay } from "../../display.js";
3
3
  import { airExtremesScene } from "../../scene/air-extremes.js";
4
4
  import { renderOptional } from "./SceneTree.js";
5
5
  import { resolveStation, useStationFeedContext } from "./StationFeedProvider.js";
6
- //#region src/react/components/AirExtremes.tsx
6
+ // src/react/components/AirExtremes.tsx
7
7
  /** Derived atmo tiles from served history: the last completed night's low
8
8
  * (real astronomy — no coordinates, no tile) and the trailing pressure
9
9
  * delta. Nothing derivable, nothing rendered. */
@@ -17,5 +17,4 @@ function AirExtremes({ station: stationProp, stationId, nowMs, strings: stringsP
17
17
  words
18
18
  }));
19
19
  }
20
- //#endregion
21
20
  export { AirExtremes };
@@ -1,11 +1,8 @@
1
1
  import { Station } from "../../contract.js";
2
2
  import { FormatTime, StationStringOverrides } from "../../strings.js";
3
3
  import "../../index.js";
4
- //#region src/react/components/AirMatrix.d.ts
5
- declare function AirMatrix({ stations: stationsProp, strings: stringsProp, formatTime: formatTimeProp }: {
4
+ export declare function AirMatrix({ stations: stationsProp, strings: stringsProp, formatTime: formatTimeProp }: {
6
5
  stations?: readonly Station[];
7
6
  strings?: StationStringOverrides;
8
7
  formatTime?: FormatTime;
9
- }): import("react").JSX.Element | null;
10
- //#endregion
11
- export { AirMatrix };
8
+ }): import("react").JSX.Element | null;
@@ -5,7 +5,7 @@ import { renderChildren } from "./SceneTree.js";
5
5
  import { requireResolved, useStationFeedContext } from "./StationFeedProvider.js";
6
6
  import { useId, useState } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
- //#region src/react/components/AirMatrix.tsx
8
+ // src/react/components/AirMatrix.tsx
9
9
  function AirMatrix({ stations: stationsProp, strings: stringsProp, formatTime: formatTimeProp }) {
10
10
  const context = useStationFeedContext();
11
11
  const stations = requireResolved("AirMatrix", "stations", stationsProp ?? context?.feed?.stations);
@@ -45,5 +45,4 @@ function AirMatrix({ stations: stationsProp, strings: stringsProp, formatTime: f
45
45
  })]
46
46
  });
47
47
  }
48
- //#endregion
49
48
  export { AirMatrix };
@@ -3,10 +3,9 @@ import { SpeedThresholds } from "../../derive.js";
3
3
  import { StationStringOverrides } from "../../strings.js";
4
4
  import { FavorableDirection } from "../../instruments.js";
5
5
  import "../../index.js";
6
- //#region src/react/components/ClimatologyDailyPattern.d.ts
7
6
  /** The cube's typical day through the daily-pattern drawing, month-filtered
8
7
  * client-side. The host owns the document and the filters. */
9
- declare function ClimatologyDailyPattern({ document, months, favorableDirections: favorableDirectionsProp, thresholds: thresholdsProp, unit: unitProp, plotHeight, stationName, strings: stringsProp }: {
8
+ export declare function ClimatologyDailyPattern({ document, months, favorableDirections: favorableDirectionsProp, thresholds: thresholdsProp, unit: unitProp, plotHeight, stationName, strings: stringsProp }: {
10
9
  document: StationClimatology | null | undefined;
11
10
  months?: ReadonlyArray<number>;
12
11
  favorableDirections?: FavorableDirection[] | null;
@@ -15,6 +14,4 @@ declare function ClimatologyDailyPattern({ document, months, favorableDirections
15
14
  plotHeight?: number;
16
15
  stationName?: string;
17
16
  strings?: StationStringOverrides;
18
- }): string | number | bigint | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
19
- //#endregion
20
- export { ClimatologyDailyPattern };
17
+ }): string | number | bigint | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
@@ -6,7 +6,7 @@ import { renderChildren } from "./SceneTree.js";
6
6
  import { useStationFeedContext } from "./StationFeedProvider.js";
7
7
  import { useEffect, useId, useRef, useState } from "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
- //#region src/react/components/ClimatologyDailyPattern.tsx
9
+ // src/react/components/ClimatologyDailyPattern.tsx
10
10
  /** The cube's typical day through the daily-pattern drawing, month-filtered
11
11
  * client-side. The host owns the document and the filters. */
12
12
  function ClimatologyDailyPattern({ document, months, favorableDirections: favorableDirectionsProp, thresholds: thresholdsProp, unit: unitProp, plotHeight, stationName, strings: stringsProp }) {
@@ -61,5 +61,4 @@ function ClimatologyDailyPattern({ document, months, favorableDirections: favora
61
61
  }))
62
62
  });
63
63
  }
64
- //#endregion
65
64
  export { ClimatologyDailyPattern };
@@ -2,17 +2,14 @@ import { StationClimatology } from "../../contract-climatology.js";
2
2
  import { StationStringOverrides } from "../../strings.js";
3
3
  import { FavorableDirection } from "../../instruments.js";
4
4
  import "../../index.js";
5
- //#region src/react/components/ClimatologyRose.d.ts
6
5
  /** The whole archive as a stacked rose: the cube's sectors, each wedge split
7
6
  * by the document's own thresholds, with the honesty captions beneath. The
8
7
  * host owns the document (a fetch-once store) and the filters. */
9
- declare function ClimatologyRose({ document, months, slots, favorableDirections: favorableDirectionsProp, stationName, strings: stringsProp }: {
8
+ export declare function ClimatologyRose({ document, months, slots, favorableDirections: favorableDirectionsProp, stationName, strings: stringsProp }: {
10
9
  document: StationClimatology | null | undefined;
11
10
  months?: ReadonlyArray<number>;
12
11
  slots?: ReadonlyArray<number>;
13
12
  favorableDirections?: FavorableDirection[] | null;
14
13
  stationName?: string;
15
14
  strings?: StationStringOverrides;
16
- }): import("react").ReactNode;
17
- //#endregion
18
- export { ClimatologyRose };
15
+ }): import("react").ReactNode;
@@ -3,7 +3,7 @@ import { resolveDisplay } from "../../display.js";
3
3
  import { climatologyRoseScene } from "../../scene/climatology-rose.js";
4
4
  import { renderScene } from "./SceneTree.js";
5
5
  import { useStationFeedContext } from "./StationFeedProvider.js";
6
- //#region src/react/components/ClimatologyRose.tsx
6
+ // src/react/components/ClimatologyRose.tsx
7
7
  /** The whole archive as a stacked rose: the cube's sectors, each wedge split
8
8
  * by the document's own thresholds, with the honesty captions beneath. The
9
9
  * host owns the document (a fetch-once store) and the filters. */
@@ -24,5 +24,4 @@ function ClimatologyRose({ document, months, slots, favorableDirections: favorab
24
24
  words
25
25
  }));
26
26
  }
27
- //#endregion
28
27
  export { ClimatologyRose };
@@ -2,16 +2,13 @@ import { LiveSamples, Station } from "../../contract.js";
2
2
  import { StationStringOverrides } from "../../strings.js";
3
3
  import { FavorableDirection } from "../../instruments.js";
4
4
  import "../../index.js";
5
- //#region src/react/components/CompassFan.d.ts
6
5
  /** The live compass: the newest sample as the solid needle, every sample of
7
6
  * the rolling window as a faint fan aged by tenth — a tight fan means
8
7
  * steady direction. */
9
- declare function CompassFan({ samples, station: stationProp, stationId, favorableDirections: favorableDirectionsProp, strings: stringsProp }: {
8
+ export declare function CompassFan({ samples, station: stationProp, stationId, favorableDirections: favorableDirectionsProp, strings: stringsProp }: {
10
9
  samples?: LiveSamples | null;
11
10
  station?: Station;
12
11
  stationId?: string;
13
12
  favorableDirections?: FavorableDirection[] | null;
14
13
  strings?: StationStringOverrides;
15
- }): import("react").ReactNode;
16
- //#endregion
17
- export { CompassFan };
14
+ }): import("react").ReactNode;
@@ -3,7 +3,7 @@ import { resolveDisplay } from "../../display.js";
3
3
  import { compassFanScene, compassFanSource } from "../../scene/compass-fan.js";
4
4
  import { renderOptional } from "./SceneTree.js";
5
5
  import { resolveStation, useStationFeedContext } from "./StationFeedProvider.js";
6
- //#region src/react/components/CompassFan.tsx
6
+ // src/react/components/CompassFan.tsx
7
7
  /** The live compass: the newest sample as the solid needle, every sample of
8
8
  * the rolling window as a faint fan aged by tenth — a tight fan means
9
9
  * steady direction. */
@@ -22,5 +22,4 @@ function CompassFan({ samples, station: stationProp, stationId, favorableDirecti
22
22
  words
23
23
  }));
24
24
  }
25
- //#endregion
26
25
  export { CompassFan };
@@ -2,8 +2,7 @@ import { Station } from "../../contract.js";
2
2
  import { SpeedThresholds, SpeedUnit } from "../../derive.js";
3
3
  import { FormatTime, StationStringOverrides } from "../../strings.js";
4
4
  import "../../index.js";
5
- //#region src/react/components/CurrentConditions.d.ts
6
- declare function CurrentConditions({ station: stationProp, stationId, servedAt: servedAtProp, receivedAtMs: receivedAtMsProp, thresholds: thresholdsProp, unit: unitProp, strings: stringsProp, formatTime: formatTimeProp }: {
5
+ export declare function CurrentConditions({ station: stationProp, stationId, servedAt: servedAtProp, receivedAtMs: receivedAtMsProp, thresholds: thresholdsProp, unit: unitProp, strings: stringsProp, formatTime: formatTimeProp }: {
7
6
  station?: Station;
8
7
  stationId?: string;
9
8
  servedAt?: string | null;
@@ -12,6 +11,4 @@ declare function CurrentConditions({ station: stationProp, stationId, servedAt:
12
11
  unit?: SpeedUnit;
13
12
  strings?: StationStringOverrides;
14
13
  formatTime?: FormatTime;
15
- }): import("react").ReactNode;
16
- //#endregion
17
- export { CurrentConditions };
14
+ }): import("react").ReactNode;
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { stationFreshnessThresholds } from "../../derive.js";
3
2
  import { resolveDisplay } from "../../display.js";
3
+ import { stationFreshnessThresholds } from "../../derive.js";
4
4
  import { currentConditionsScene } from "../../scene/current.js";
5
+ import { useFreshness } from "../hooks/useFreshness.js";
5
6
  import { renderScene } from "./SceneTree.js";
6
7
  import { requireResolved, resolveStation, useStationFeedContext } from "./StationFeedProvider.js";
7
- import { useFreshness } from "../hooks/useFreshness.js";
8
8
  import { useId } from "react";
9
- //#region src/react/components/CurrentConditions.tsx
9
+ // src/react/components/CurrentConditions.tsx
10
10
  function CurrentConditions({ station: stationProp, stationId, servedAt: servedAtProp, receivedAtMs: receivedAtMsProp, thresholds: thresholdsProp, unit: unitProp, strings: stringsProp, formatTime: formatTimeProp }) {
11
11
  const context = useStationFeedContext();
12
12
  const bezelId = useId();
@@ -31,5 +31,4 @@ function CurrentConditions({ station: stationProp, stationId, servedAt: servedAt
31
31
  words
32
32
  }));
33
33
  }
34
- //#endregion
35
34
  export { CurrentConditions };
@@ -3,8 +3,7 @@ import { SpeedThresholds, SpeedUnit } from "../../derive.js";
3
3
  import { StationStringOverrides } from "../../strings.js";
4
4
  import { FavorableDirection } from "../../instruments.js";
5
5
  import "../../index.js";
6
- //#region src/react/components/DailyPattern.d.ts
7
- declare function DailyPattern({ station: stationProp, stationId, points, slotMinutes, utcOffsetMinutes, thresholds: thresholdsProp, favorableDirections: favorableDirectionsProp, unit: unitProp, plotHeight, strings: stringsProp }: {
6
+ export declare function DailyPattern({ station: stationProp, stationId, points, slotMinutes, utcOffsetMinutes, thresholds: thresholdsProp, favorableDirections: favorableDirectionsProp, unit: unitProp, plotHeight, strings: stringsProp }: {
8
7
  station?: Station;
9
8
  stationId?: string;
10
9
  points?: HistoryPoint[];
@@ -15,6 +14,4 @@ declare function DailyPattern({ station: stationProp, stationId, points, slotMin
15
14
  unit?: SpeedUnit;
16
15
  plotHeight?: number;
17
16
  strings?: StationStringOverrides;
18
- }): import("react").JSX.Element;
19
- //#endregion
20
- export { DailyPattern };
17
+ }): import("react").JSX.Element;
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { resolveDisplay } from "../../display.js";
3
2
  import { measuredChartWidth } from "../../geometry.js";
3
+ import { resolveDisplay } from "../../display.js";
4
4
  import { DAILY_PATTERN_CLASS, dailyPatternGate, dailyPatternScene, dailyPatternSource } from "../../scene/daily-pattern.js";
5
5
  import { renderChildren } from "./SceneTree.js";
6
6
  import { resolveStation, useStationFeedContext } from "./StationFeedProvider.js";
7
7
  import { useEffect, useId, useRef, useState } from "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
- //#region src/react/components/DailyPattern.tsx
9
+ // src/react/components/DailyPattern.tsx
10
10
  function DailyPattern({ station: stationProp, stationId, points, slotMinutes = 180, utcOffsetMinutes = 0, thresholds: thresholdsProp, favorableDirections: favorableDirectionsProp, unit: unitProp, plotHeight, strings: stringsProp }) {
11
11
  const context = useStationFeedContext();
12
12
  const station = stationProp ?? (points == null ? resolveStation(context, stationId) ?? void 0 : void 0);
@@ -75,5 +75,4 @@ function MeasuredDailyPattern({ favorableDirections, periodMinutes, plotHeight,
75
75
  });
76
76
  return renderChildren(scene);
77
77
  }
78
- //#endregion
79
78
  export { DailyPattern };
@@ -3,8 +3,7 @@ import { SpeedThresholds, SpeedUnit } from "../../derive.js";
3
3
  import { StationStringOverrides } from "../../strings.js";
4
4
  import { FavorableDirection } from "../../instruments.js";
5
5
  import "../../index.js";
6
- //#region src/react/components/Dial.d.ts
7
- declare function Dial({ station: stationProp, stationId, thresholds: thresholdsProp, favorableDirections: favorableDirectionsProp, unit: unitProp, size, calmWord, strings: stringsProp }: {
6
+ export declare function Dial({ station: stationProp, stationId, thresholds: thresholdsProp, favorableDirections: favorableDirectionsProp, unit: unitProp, size, calmWord, strings: stringsProp }: {
8
7
  station?: Station;
9
8
  stationId?: string;
10
9
  thresholds?: SpeedThresholds | null;
@@ -13,6 +12,4 @@ declare function Dial({ station: stationProp, stationId, thresholds: thresholdsP
13
12
  size?: number;
14
13
  calmWord?: boolean;
15
14
  strings?: StationStringOverrides;
16
- }): import("react").ReactNode;
17
- //#endregion
18
- export { Dial };
15
+ }): import("react").ReactNode;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { resolveDisplay } from "../../display.js";
3
2
  import "../../instruments.js";
3
+ import { resolveDisplay } from "../../display.js";
4
4
  import { dialScene } from "../../scene/dial.js";
5
- import { renderScene } from "./SceneTree.js";
6
5
  import { requireResolved, resolveStation, useStationFeedContext } from "./StationFeedProvider.js";
6
+ import { renderScene } from "./SceneTree.js";
7
7
  import { useId } from "react";
8
- //#region src/react/components/Dial.tsx
8
+ // src/react/components/Dial.tsx
9
9
  function Dial({ station: stationProp, stationId, thresholds: thresholdsProp, favorableDirections: favorableDirectionsProp, unit: unitProp, size = 160, calmWord = true, strings: stringsProp }) {
10
10
  const context = useStationFeedContext();
11
11
  const station = requireResolved("Dial", "station", stationProp ?? resolveStation(context, stationId));
@@ -27,5 +27,4 @@ function Dial({ station: stationProp, stationId, thresholds: thresholdsProp, fav
27
27
  words
28
28
  }));
29
29
  }
30
- //#endregion
31
30
  export { Dial };
@@ -2,13 +2,10 @@ import { HistoryPoint, Station } from "../../contract.js";
2
2
  import { StationStringOverrides } from "../../strings.js";
3
3
  import { FavorableDirection } from "../../instruments.js";
4
4
  import "../../index.js";
5
- //#region src/react/components/FavorableShare.d.ts
6
- declare function FavorableShare({ station: stationProp, stationId, points, favorableDirections: favorableDirectionsProp, strings: stringsProp }: {
5
+ export declare function FavorableShare({ station: stationProp, stationId, points, favorableDirections: favorableDirectionsProp, strings: stringsProp }: {
7
6
  station?: Station;
8
7
  stationId?: string;
9
8
  points?: HistoryPoint[];
10
9
  favorableDirections?: FavorableDirection[] | null;
11
10
  strings?: StationStringOverrides;
12
- }): import("react").ReactNode;
13
- //#endregion
14
- export { FavorableShare };
11
+ }): import("react").ReactNode;
@@ -3,7 +3,7 @@ import { resolveDisplay } from "../../display.js";
3
3
  import { favorableShareScene, favorableShareSource } from "../../scene/favorable-share.js";
4
4
  import { renderOptional } from "./SceneTree.js";
5
5
  import { resolveStation, useStationFeedContext } from "./StationFeedProvider.js";
6
- //#region src/react/components/FavorableShare.tsx
6
+ // src/react/components/FavorableShare.tsx
7
7
  function FavorableShare({ station: stationProp, stationId, points, favorableDirections: favorableDirectionsProp, strings: stringsProp }) {
8
8
  const context = useStationFeedContext();
9
9
  const station = stationProp ?? (points == null ? resolveStation(context, stationId) ?? void 0 : void 0);
@@ -18,5 +18,4 @@ function FavorableShare({ station: stationProp, stationId, points, favorableDire
18
18
  words
19
19
  }));
20
20
  }
21
- //#endregion
22
21
  export { FavorableShare };
@@ -1,10 +1,7 @@
1
1
  import { FreshnessStatus } from "../../derive.js";
2
2
  import { StationStringOverrides } from "../../strings.js";
3
3
  import "../../index.js";
4
- //#region src/react/components/FreshnessBadge.d.ts
5
- declare function FreshnessBadge({ status, strings }: {
4
+ export declare function FreshnessBadge({ status, strings }: {
6
5
  status: FreshnessStatus;
7
6
  strings?: StationStringOverrides;
8
- }): import("react").ReactNode;
9
- //#endregion
10
- export { FreshnessBadge };
7
+ }): import("react").ReactNode;
@@ -3,11 +3,10 @@ import { resolveDisplay } from "../../display.js";
3
3
  import { freshnessBadgeNode } from "../../scene/glyphs.js";
4
4
  import { renderScene } from "./SceneTree.js";
5
5
  import { useStationFeedContext } from "./StationFeedProvider.js";
6
- //#region src/react/components/FreshnessBadge.tsx
6
+ // src/react/components/FreshnessBadge.tsx
7
7
  function FreshnessBadge({ status, strings }) {
8
8
  const context = useStationFeedContext();
9
9
  const { words } = resolveDisplay(context, { strings });
10
10
  return renderScene(freshnessBadgeNode(status, words));
11
11
  }
12
- //#endregion
13
12
  export { FreshnessBadge };
@@ -1,12 +1,9 @@
1
1
  import { ReadoutPart } from "../../scene/chart.js";
2
2
  import "../../scene/index.js";
3
- //#region src/react/components/Readout.d.ts
4
- declare function Readout({ ariaLabel, ariaLive, className, strong, parts }: {
3
+ export declare function Readout({ ariaLabel, ariaLive, className, strong, parts }: {
5
4
  ariaLabel: string;
6
5
  ariaLive: "off" | "polite";
7
6
  className: string;
8
7
  strong: string;
9
8
  parts: ReadoutPart[];
10
- }): import("react").JSX.Element;
11
- //#endregion
12
- export { Readout };
9
+ }): import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { WindArrow } from "./WindArrow.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/react/components/Readout.tsx
4
+ // src/react/components/Readout.tsx
5
5
  function Readout({ ariaLabel, ariaLive, className, strong, parts }) {
6
6
  return /* @__PURE__ */ jsxs("output", {
7
7
  "aria-label": ariaLabel,
@@ -10,5 +10,4 @@ function Readout({ ariaLabel, ariaLive, className, strong, parts }) {
10
10
  children: [/* @__PURE__ */ jsx("strong", { children: strong }), /* @__PURE__ */ jsx("span", { children: parts.map((part, index) => part.kind === "arrow" ? /* @__PURE__ */ jsx(WindArrow, { deg: part.deg }, index) : part.text) })]
11
11
  });
12
12
  }
13
- //#endregion
14
13
  export { Readout };
@@ -3,16 +3,13 @@ import { SpeedUnit } from "../../derive.js";
3
3
  import { StationStringOverrides } from "../../strings.js";
4
4
  import { FavorableDirection } from "../../instruments.js";
5
5
  import "../../index.js";
6
- //#region src/react/components/RecentSummaries.d.ts
7
6
  /** The source's own step digests as summary panels: per window, the
8
7
  * average, gust, and lull beside one small arrow per step. */
9
- declare function RecentSummaries({ summaries, station: stationProp, stationId, favorableDirections: favorableDirectionsProp, unit: unitProp, strings: stringsProp }: {
8
+ export declare function RecentSummaries({ summaries, station: stationProp, stationId, favorableDirections: favorableDirectionsProp, unit: unitProp, strings: stringsProp }: {
10
9
  summaries?: RecentSummary[] | null;
11
10
  station?: Station;
12
11
  stationId?: string;
13
12
  favorableDirections?: FavorableDirection[] | null;
14
13
  unit?: SpeedUnit;
15
14
  strings?: StationStringOverrides;
16
- }): import("react").ReactNode;
17
- //#endregion
18
- export { RecentSummaries };
15
+ }): import("react").ReactNode;
@@ -3,7 +3,7 @@ import { resolveDisplay } from "../../display.js";
3
3
  import { recentSummariesScene } from "../../scene/recent-summaries.js";
4
4
  import { renderOptional } from "./SceneTree.js";
5
5
  import { resolveStation, useStationFeedContext } from "./StationFeedProvider.js";
6
- //#region src/react/components/RecentSummaries.tsx
6
+ // src/react/components/RecentSummaries.tsx
7
7
  /** The source's own step digests as summary panels: per window, the
8
8
  * average, gust, and lull beside one small arrow per step. */
9
9
  function RecentSummaries({ summaries, station: stationProp, stationId, favorableDirections: favorableDirectionsProp, unit: unitProp, strings: stringsProp }) {
@@ -22,5 +22,4 @@ function RecentSummaries({ summaries, station: stationProp, stationId, favorable
22
22
  words
23
23
  }));
24
24
  }
25
- //#endregion
26
25
  export { RecentSummaries };
@@ -1,5 +1,5 @@
1
1
  import { createElement } from "react";
2
- //#region src/react/components/SceneTree.tsx
2
+ // src/react/components/SceneTree.tsx
3
3
  function reactName(name) {
4
4
  if (name === "class") return "className";
5
5
  if (name.startsWith("aria-") || name.startsWith("data-") || !name.includes("-")) return name;
@@ -34,5 +34,4 @@ function renderOptional(node) {
34
34
  function renderChildren(children) {
35
35
  return children.map(renderChild);
36
36
  }
37
- //#endregion
38
37
  export { renderChild, renderChildren, renderOptional, renderScene };
@@ -2,8 +2,7 @@ import { Station } from "../../contract.js";
2
2
  import { SpeedThresholds, SpeedUnit } from "../../derive.js";
3
3
  import { StationStringOverrides } from "../../strings.js";
4
4
  import "../../index.js";
5
- //#region src/react/components/Sparkline.d.ts
6
- declare function Sparkline({ station: stationProp, stationId, width, height, showBand, thresholds: thresholdsProp, strings: stringsProp }: {
5
+ export declare function Sparkline({ station: stationProp, stationId, width, height, showBand, thresholds: thresholdsProp, strings: stringsProp }: {
7
6
  station?: Station;
8
7
  stationId?: string;
9
8
  width?: number;
@@ -12,6 +11,4 @@ declare function Sparkline({ station: stationProp, stationId, width, height, sho
12
11
  thresholds?: SpeedThresholds | null;
13
12
  unit?: SpeedUnit;
14
13
  strings?: StationStringOverrides;
15
- }): import("react").ReactNode;
16
- //#endregion
17
- export { Sparkline };
14
+ }): import("react").ReactNode;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { resolveDisplay } from "../../display.js";
3
3
  import { sparklineScene } from "../../scene/sparkline.js";
4
- import { renderScene } from "./SceneTree.js";
5
4
  import { requireResolved, resolveStation, useStationFeedContext } from "./StationFeedProvider.js";
6
- //#region src/react/components/Sparkline.tsx
5
+ import { renderScene } from "./SceneTree.js";
6
+ // src/react/components/Sparkline.tsx
7
7
  function Sparkline({ station: stationProp, stationId, width = 120, height = 32, showBand = true, thresholds: thresholdsProp, strings: stringsProp }) {
8
8
  const context = useStationFeedContext();
9
9
  const station = requireResolved("Sparkline", "station", stationProp ?? resolveStation(context, stationId));
@@ -20,5 +20,4 @@ function Sparkline({ station: stationProp, stationId, width = 120, height = 32,
20
20
  words
21
21
  }));
22
22
  }
23
- //#endregion
24
23
  export { Sparkline };
@@ -3,7 +3,6 @@ import { SpeedThresholds, SpeedUnit } from "../../derive.js";
3
3
  import { FormatTime, StationStringOverrides } from "../../strings.js";
4
4
  import "../../index.js";
5
5
  import { ReactNode } from "react";
6
- //#region src/react/components/StationCard.d.ts
7
6
  declare function StationCardRoot({ station: stationProp, stationId, servedAt: servedAtProp, receivedAtMs: receivedAtMsProp, thresholds: thresholdsProp, unit: unitProp, strings: stringsProp, formatTime: formatTimeProp, children }: {
8
7
  station?: Station;
9
8
  stationId?: string;
@@ -15,32 +14,31 @@ declare function StationCardRoot({ station: stationProp, stationId, servedAt: se
15
14
  formatTime?: FormatTime;
16
15
  children?: ReactNode;
17
16
  }): import("react").JSX.Element;
18
- declare function StationCardHeader({ strings }?: {
17
+ export declare function StationCardHeader({ strings }?: {
19
18
  strings?: StationStringOverrides;
20
19
  }): ReactNode;
21
- declare function StationCardInstrument({ thresholds, unit, strings, formatTime }?: {
20
+ export declare function StationCardInstrument({ thresholds, unit, strings, formatTime }?: {
22
21
  thresholds?: SpeedThresholds | null;
23
22
  unit?: SpeedUnit;
24
23
  strings?: StationStringOverrides;
25
24
  formatTime?: FormatTime;
26
25
  }): import("react").JSX.Element;
27
- declare function StationCardChart({ thresholds, unit, plotHeight, strings, formatTime }?: {
26
+ export declare function StationCardChart({ thresholds, unit, plotHeight, strings, formatTime }?: {
28
27
  thresholds?: SpeedThresholds | null;
29
28
  unit?: SpeedUnit;
30
29
  plotHeight?: number;
31
30
  strings?: StationStringOverrides;
32
31
  formatTime?: FormatTime;
33
32
  }): import("react").JSX.Element;
34
- declare function StationCardSummary({ unit, strings, formatTime }?: {
33
+ export declare function StationCardSummary({ unit, strings, formatTime }?: {
35
34
  unit?: SpeedUnit;
36
35
  strings?: StationStringOverrides;
37
36
  formatTime?: FormatTime;
38
37
  }): ReactNode;
39
- declare const StationCard: typeof StationCardRoot & {
38
+ export declare const StationCard: typeof StationCardRoot & {
40
39
  Header: typeof StationCardHeader;
41
40
  Instrument: typeof StationCardInstrument;
42
41
  Chart: typeof StationCardChart;
43
42
  Summary: typeof StationCardSummary;
44
43
  };
45
- //#endregion
46
- export { StationCard, StationCardChart, StationCardHeader, StationCardInstrument, StationCardSummary };
44
+ export {};
@@ -1,16 +1,16 @@
1
1
  "use client";
2
+ import { resolveDisplay } from "../../display.js";
2
3
  import { stationFreshnessThresholds } from "../../derive.js";
3
4
  import { mergeStringOverrides } from "../../strings.js";
4
- import { resolveDisplay } from "../../display.js";
5
5
  import { STATION_CARD_CLASS, cardHeaderNode, cardPartThresholds, cardPartWiringError, summaryNode } from "../../scene/card.js";
6
- import { renderOptional, renderScene } from "./SceneTree.js";
7
- import { requireResolved, resolveStation, useStationFeedContext } from "./StationFeedProvider.js";
8
6
  import { useFreshness } from "../hooks/useFreshness.js";
9
7
  import { CurrentConditions } from "./CurrentConditions.js";
8
+ import { renderOptional, renderScene } from "./SceneTree.js";
9
+ import { requireResolved, resolveStation, useStationFeedContext } from "./StationFeedProvider.js";
10
10
  import { WindHistoryChart } from "./WindHistoryChart.js";
11
11
  import { createContext, useContext } from "react";
12
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
- //#region src/react/components/StationCard.tsx
13
+ // src/react/components/StationCard.tsx
14
14
  const StationCardContext = createContext(null);
15
15
  function useStationCardContext(subcomponent) {
16
16
  const context = useContext(StationCardContext);
@@ -96,5 +96,4 @@ const StationCard = Object.assign(StationCardRoot, {
96
96
  Chart: StationCardChart,
97
97
  Summary: StationCardSummary
98
98
  });
99
- //#endregion
100
99
  export { StationCard, StationCardChart, StationCardHeader, StationCardInstrument, StationCardSummary };
@@ -4,8 +4,7 @@ import { FormatTime, StationStringOverrides } from "../../strings.js";
4
4
  import { FavorableDirection } from "../../instruments.js";
5
5
  import "../../index.js";
6
6
  import { ReactNode } from "react";
7
- //#region src/react/components/StationFeedProvider.d.ts
8
- type StationFeedContextValue = {
7
+ export type StationFeedContextValue = {
9
8
  feed: StationFeed | null;
10
9
  receivedAtMs: number | null;
11
10
  strings: StationStringOverrides | undefined;
@@ -14,7 +13,7 @@ type StationFeedContextValue = {
14
13
  thresholds: SpeedThresholds | undefined;
15
14
  favorableDirections: FavorableDirection[] | undefined;
16
15
  };
17
- declare function StationFeedProvider({ feed, receivedAtMs, strings, unit, formatTime, thresholds, favorableDirections, locale, children }: {
16
+ export declare function StationFeedProvider({ feed, receivedAtMs, strings, unit, formatTime, thresholds, favorableDirections, locale, children }: {
18
17
  feed: StationFeed | null;
19
18
  receivedAtMs: number | null;
20
19
  strings?: StationStringOverrides;
@@ -25,6 +24,4 @@ declare function StationFeedProvider({ feed, receivedAtMs, strings, unit, format
25
24
  locale?: string;
26
25
  children?: ReactNode;
27
26
  }): import("react").JSX.Element;
28
- declare function useStationFeedContext(): StationFeedContextValue | null;
29
- //#endregion
30
- export { StationFeedContextValue, StationFeedProvider, useStationFeedContext };
27
+ export declare function useStationFeedContext(): StationFeedContextValue | null;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { localeFormatTime } from "../../strings.js";
3
2
  import { requireResolved as requireResolved$1, resolveStation as resolveStation$1 } from "../../display.js";
3
+ import { localeFormatTime } from "../../strings.js";
4
4
  import { createContext, useContext, useMemo } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
- //#region src/react/components/StationFeedProvider.tsx
6
+ // src/react/components/StationFeedProvider.tsx
7
7
  const StationFeedContext = createContext(null);
8
8
  function StationFeedProvider({ feed, receivedAtMs, strings, unit, formatTime, thresholds, favorableDirections, locale, children }) {
9
9
  const resolvedFormatTime = formatTime ?? (locale == null ? void 0 : localeFormatTime(locale));
@@ -38,5 +38,4 @@ function resolveStation(context, stationId) {
38
38
  function requireResolved(component, what, value) {
39
39
  return requireResolved$1(component, what, value, "render inside <StationFeedProvider> with a feed");
40
40
  }
41
- //#endregion
42
41
  export { StationFeedProvider, requireResolved, resolveStation, useStationFeedContext };