@buildcanada/charts 0.3.5 → 0.3.7

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 (267) hide show
  1. package/package.json +1 -1
  2. package/src/components/GrapherTabIcon.tsx +1 -1
  3. package/src/components/GrapherTrendArrow.tsx +1 -1
  4. package/src/components/Halo/Halo.tsx +1 -1
  5. package/src/components/LabeledSwitch/LabeledSwitch.tsx +1 -1
  6. package/src/components/MarkdownTextWrap/MarkdownTextWrap.tsx +4 -4
  7. package/src/components/OverlayHeader.tsx +1 -1
  8. package/src/components/SimpleMarkdownText.tsx +1 -1
  9. package/src/components/TextWrap/TextWrap.tsx +2 -2
  10. package/src/components/index.ts +23 -23
  11. package/src/components/loadingIndicator/LoadingIndicator.tsx +1 -1
  12. package/src/config/ChartsProvider.tsx +1 -1
  13. package/src/config/index.ts +2 -2
  14. package/src/core-table/ChartsTable.ts +7 -7
  15. package/src/core-table/CoreTable.ts +6 -6
  16. package/src/core-table/CoreTableColumns.ts +5 -5
  17. package/src/core-table/CoreTableUtils.ts +3 -3
  18. package/src/core-table/ErrorValues.ts +1 -1
  19. package/src/core-table/TableSynthesizers.ts +3 -3
  20. package/src/core-table/TableUtil.ts +2 -2
  21. package/src/core-table/Transforms.ts +3 -3
  22. package/src/core-table/index.ts +8 -8
  23. package/src/explorer/ColumnGrammar.ts +4 -4
  24. package/src/explorer/Explorer.sample.ts +4 -4
  25. package/src/explorer/Explorer.tsx +10 -10
  26. package/src/explorer/ExplorerConstants.ts +2 -2
  27. package/src/explorer/ExplorerControls.tsx +4 -4
  28. package/src/explorer/ExplorerDecisionMatrix.ts +7 -7
  29. package/src/explorer/ExplorerGrammar.ts +4 -4
  30. package/src/explorer/ExplorerProgram.ts +11 -11
  31. package/src/explorer/ExplorerUtils.ts +4 -4
  32. package/src/explorer/GrapherGrammar.ts +3 -3
  33. package/src/explorer/gridLang/GridCell.ts +4 -4
  34. package/src/explorer/gridLang/GridLangConstants.ts +1 -1
  35. package/src/explorer/gridLang/GridProgram.ts +5 -5
  36. package/src/explorer/index.ts +15 -15
  37. package/src/explorer/urlMigrations/CO2UrlMigration.ts +3 -3
  38. package/src/explorer/urlMigrations/CovidUrlMigration.ts +2 -2
  39. package/src/explorer/urlMigrations/EnergyUrlMigration.ts +3 -3
  40. package/src/explorer/urlMigrations/ExplorerPageUrlMigrationSpec.ts +1 -1
  41. package/src/explorer/urlMigrations/ExplorerUrlMigrationUtils.ts +2 -2
  42. package/src/explorer/urlMigrations/ExplorerUrlMigrations.ts +5 -5
  43. package/src/explorer/urlMigrations/LegacyCovidUrlMigration.ts +4 -4
  44. package/src/grapher/axis/Axis.ts +8 -8
  45. package/src/grapher/axis/AxisConfig.ts +4 -4
  46. package/src/grapher/axis/AxisViews.tsx +6 -6
  47. package/src/grapher/barCharts/DiscreteBarChart.tsx +17 -17
  48. package/src/grapher/barCharts/DiscreteBarChartConstants.ts +6 -6
  49. package/src/grapher/barCharts/DiscreteBarChartHelpers.ts +3 -3
  50. package/src/grapher/barCharts/DiscreteBarChartState.ts +13 -13
  51. package/src/grapher/barCharts/DiscreteBarChartThumbnail.tsx +4 -4
  52. package/src/grapher/captionedChart/CaptionedChart.tsx +19 -19
  53. package/src/grapher/captionedChart/Logos.tsx +3 -3
  54. package/src/grapher/captionedChart/StaticChartRasterizer.tsx +1 -1
  55. package/src/grapher/chart/Chart.tsx +5 -5
  56. package/src/grapher/chart/ChartAreaContent.tsx +10 -10
  57. package/src/grapher/chart/ChartDimension.ts +2 -2
  58. package/src/grapher/chart/ChartInterface.ts +7 -7
  59. package/src/grapher/chart/ChartManager.ts +9 -9
  60. package/src/grapher/chart/ChartTabs.ts +1 -1
  61. package/src/grapher/chart/ChartTypeMap.tsx +31 -31
  62. package/src/grapher/chart/ChartTypeSwitcher.tsx +1 -1
  63. package/src/grapher/chart/ChartUtils.tsx +10 -10
  64. package/src/grapher/chart/DimensionSlot.ts +3 -3
  65. package/src/grapher/chart/StaticChartWrapper.tsx +5 -5
  66. package/src/grapher/chart/guidedChartUtils.ts +4 -4
  67. package/src/grapher/color/BinningStrategies.ts +4 -4
  68. package/src/grapher/color/BinningStrategyEqualSizeBins.ts +3 -3
  69. package/src/grapher/color/BinningStrategyLogarithmic.ts +3 -3
  70. package/src/grapher/color/CategoricalColorAssigner.ts +3 -3
  71. package/src/grapher/color/ColorBrewerSchemes.ts +1 -1
  72. package/src/grapher/color/ColorScale.ts +9 -9
  73. package/src/grapher/color/ColorScaleBin.ts +2 -2
  74. package/src/grapher/color/ColorScaleConfig.ts +3 -3
  75. package/src/grapher/color/ColorScheme.ts +3 -3
  76. package/src/grapher/color/ColorSchemes.ts +4 -4
  77. package/src/grapher/color/ColorUtils.ts +1 -1
  78. package/src/grapher/color/CustomSchemes.ts +2 -2
  79. package/src/grapher/comparisonLine/ComparisonLine.tsx +5 -5
  80. package/src/grapher/comparisonLine/ComparisonLineGenerator.ts +1 -1
  81. package/src/grapher/comparisonLine/ComparisonLineHelpers.ts +1 -1
  82. package/src/grapher/comparisonLine/CustomComparisonLine.tsx +8 -8
  83. package/src/grapher/comparisonLine/VerticalComparisonLine.tsx +5 -5
  84. package/src/grapher/controls/ActionButtons.tsx +4 -4
  85. package/src/grapher/controls/CommandPalette.tsx +1 -1
  86. package/src/grapher/controls/ContentSwitchers.tsx +4 -4
  87. package/src/grapher/controls/DataTableFilterDropdown.tsx +7 -7
  88. package/src/grapher/controls/DataTableSearchField.tsx +4 -4
  89. package/src/grapher/controls/Dropdown.tsx +1 -1
  90. package/src/grapher/controls/EntitySelectionToggle.tsx +1 -1
  91. package/src/grapher/controls/MapRegionDropdown.tsx +5 -5
  92. package/src/grapher/controls/MapResetButton.tsx +3 -3
  93. package/src/grapher/controls/MapZoomDropdown.tsx +5 -5
  94. package/src/grapher/controls/MapZoomToSelectionButton.tsx +3 -3
  95. package/src/grapher/controls/SearchField.tsx +1 -1
  96. package/src/grapher/controls/SettingsMenu.tsx +14 -14
  97. package/src/grapher/controls/ShareMenu.tsx +4 -4
  98. package/src/grapher/controls/SortIcon.tsx +1 -1
  99. package/src/grapher/controls/controlsRow/ControlsRow.tsx +11 -11
  100. package/src/grapher/controls/entityPicker/EntityPicker.tsx +7 -7
  101. package/src/grapher/controls/entityPicker/EntityPickerConstants.ts +5 -5
  102. package/src/grapher/controls/globalEntitySelector/GlobalEntitySelector.tsx +7 -7
  103. package/src/grapher/controls/settings/AbsRelToggle.tsx +2 -2
  104. package/src/grapher/controls/settings/AxisScaleToggle.tsx +2 -2
  105. package/src/grapher/controls/settings/FacetStrategySelector.tsx +2 -2
  106. package/src/grapher/controls/settings/FacetYDomainToggle.tsx +3 -3
  107. package/src/grapher/controls/settings/NoDataAreaToggle.tsx +1 -1
  108. package/src/grapher/controls/settings/ZoomToggle.tsx +1 -1
  109. package/src/grapher/core/EntitiesByRegionType.ts +3 -3
  110. package/src/grapher/core/EntityCodes.ts +2 -2
  111. package/src/grapher/core/EntityUrlBuilder.ts +3 -3
  112. package/src/grapher/core/FetchingGrapher.tsx +8 -8
  113. package/src/grapher/core/Grapher.tsx +20 -20
  114. package/src/grapher/core/GrapherAnalytics.ts +1 -1
  115. package/src/grapher/core/GrapherConstants.ts +3 -3
  116. package/src/grapher/core/GrapherState.tsx +38 -38
  117. package/src/grapher/core/GrapherUrl.ts +4 -4
  118. package/src/grapher/core/GrapherUrlMigrations.ts +2 -2
  119. package/src/grapher/core/GrapherUseHelpers.tsx +5 -5
  120. package/src/grapher/core/LegacyToChartsTable.ts +5 -5
  121. package/src/grapher/core/grapher.entry.ts +1 -1
  122. package/src/grapher/core/loadGrapherTableHelpers.ts +4 -4
  123. package/src/grapher/core/loadVariable.ts +2 -2
  124. package/src/grapher/core/relatedQuestion.ts +1 -1
  125. package/src/grapher/dataTable/DataTable.sample.ts +5 -5
  126. package/src/grapher/dataTable/DataTable.tsx +10 -10
  127. package/src/grapher/dataTable/DataTableConstants.ts +5 -5
  128. package/src/grapher/entitySelector/EntitySelector.tsx +15 -15
  129. package/src/grapher/facet/FacetChart.tsx +19 -19
  130. package/src/grapher/facet/FacetChartConstants.ts +4 -4
  131. package/src/grapher/facet/FacetChartUtils.ts +1 -1
  132. package/src/grapher/facet/FacetMap.tsx +15 -15
  133. package/src/grapher/facet/FacetMapConstants.ts +4 -4
  134. package/src/grapher/focus/FocusArray.ts +2 -2
  135. package/src/grapher/footer/Footer.tsx +7 -7
  136. package/src/grapher/footer/FooterManager.ts +4 -4
  137. package/src/grapher/fullScreen/FullScreen.tsx +2 -2
  138. package/src/grapher/header/Header.tsx +6 -6
  139. package/src/grapher/header/HeaderManager.ts +2 -2
  140. package/src/grapher/index.ts +57 -57
  141. package/src/grapher/legend/HorizontalColorLegends.tsx +7 -7
  142. package/src/grapher/legend/LegendInteractionState.ts +1 -1
  143. package/src/grapher/legend/VerticalColorLegend.tsx +6 -6
  144. package/src/grapher/lineCharts/LineChart.tsx +26 -26
  145. package/src/grapher/lineCharts/LineChartConstants.ts +8 -8
  146. package/src/grapher/lineCharts/LineChartHelpers.ts +7 -7
  147. package/src/grapher/lineCharts/LineChartState.ts +17 -17
  148. package/src/grapher/lineCharts/LineChartThumbnail.tsx +15 -15
  149. package/src/grapher/lineCharts/Lines.tsx +6 -6
  150. package/src/grapher/lineLegend/LineLegend.tsx +12 -12
  151. package/src/grapher/lineLegend/LineLegendFilterAlgorithms.ts +2 -2
  152. package/src/grapher/lineLegend/LineLegendHelpers.ts +3 -3
  153. package/src/grapher/lineLegend/LineLegendTypes.ts +4 -4
  154. package/src/grapher/mapCharts/ChoroplethGlobe.tsx +11 -11
  155. package/src/grapher/mapCharts/ChoroplethMap.tsx +11 -11
  156. package/src/grapher/mapCharts/GeoFeatures.ts +5 -5
  157. package/src/grapher/mapCharts/GlobeController.ts +7 -7
  158. package/src/grapher/mapCharts/MapAnnotationPlacements.ts +2 -2
  159. package/src/grapher/mapCharts/MapAnnotations.ts +6 -6
  160. package/src/grapher/mapCharts/MapChart.sample.ts +3 -3
  161. package/src/grapher/mapCharts/MapChart.tsx +23 -23
  162. package/src/grapher/mapCharts/MapChartConstants.ts +10 -10
  163. package/src/grapher/mapCharts/MapChartState.ts +11 -11
  164. package/src/grapher/mapCharts/MapChartThumbnail.tsx +3 -3
  165. package/src/grapher/mapCharts/MapComponents.tsx +8 -8
  166. package/src/grapher/mapCharts/MapConfig.ts +5 -5
  167. package/src/grapher/mapCharts/MapHelpers.ts +6 -6
  168. package/src/grapher/mapCharts/MapProjections.ts +2 -2
  169. package/src/grapher/mapCharts/MapSparkline.tsx +9 -9
  170. package/src/grapher/mapCharts/MapTooltip.tsx +10 -10
  171. package/src/grapher/modal/DownloadModal.tsx +9 -9
  172. package/src/grapher/modal/EmbedModal.tsx +4 -4
  173. package/src/grapher/modal/EntitySelectorModal.tsx +4 -4
  174. package/src/grapher/modal/Modal.tsx +2 -2
  175. package/src/grapher/modal/ModalHeader.tsx +1 -1
  176. package/src/grapher/modal/SourcesDescriptions.tsx +1 -1
  177. package/src/grapher/modal/SourcesKeyDataTable.tsx +2 -2
  178. package/src/grapher/modal/SourcesModal.tsx +10 -10
  179. package/src/grapher/noDataModal/NoDataModal.tsx +4 -4
  180. package/src/grapher/scatterCharts/ConnectedScatterLegend.tsx +4 -4
  181. package/src/grapher/scatterCharts/NoDataSection.tsx +3 -3
  182. package/src/grapher/scatterCharts/ScatterPlotChart.tsx +27 -27
  183. package/src/grapher/scatterCharts/ScatterPlotChartConstants.ts +10 -10
  184. package/src/grapher/scatterCharts/ScatterPlotChartState.ts +15 -15
  185. package/src/grapher/scatterCharts/ScatterPlotChartThumbnail.tsx +12 -12
  186. package/src/grapher/scatterCharts/ScatterPlotTooltip.tsx +6 -6
  187. package/src/grapher/scatterCharts/ScatterPoints.tsx +4 -4
  188. package/src/grapher/scatterCharts/ScatterPointsWithLabels.tsx +11 -11
  189. package/src/grapher/scatterCharts/ScatterSizeLegend.tsx +7 -7
  190. package/src/grapher/scatterCharts/ScatterUtils.ts +5 -5
  191. package/src/grapher/schema/defaultGrapherConfig.ts +1 -1
  192. package/src/grapher/schema/migrations/helpers.ts +1 -1
  193. package/src/grapher/schema/migrations/migrate.ts +4 -4
  194. package/src/grapher/schema/migrations/migrations.ts +2 -2
  195. package/src/grapher/selection/MapSelectionArray.ts +2 -2
  196. package/src/grapher/selection/SelectionArray.ts +1 -1
  197. package/src/grapher/sidePanel/SidePanel.tsx +2 -2
  198. package/src/grapher/slideInDrawer/SlideInDrawer.tsx +1 -1
  199. package/src/grapher/slopeCharts/MarkX.tsx +2 -2
  200. package/src/grapher/slopeCharts/Slope.tsx +3 -3
  201. package/src/grapher/slopeCharts/SlopeChart.tsx +29 -29
  202. package/src/grapher/slopeCharts/SlopeChartConstants.ts +6 -6
  203. package/src/grapher/slopeCharts/SlopeChartHelpers.ts +4 -4
  204. package/src/grapher/slopeCharts/SlopeChartState.ts +14 -14
  205. package/src/grapher/slopeCharts/SlopeChartThumbnail.tsx +14 -14
  206. package/src/grapher/stackedCharts/AbstractStackedChartState.ts +13 -13
  207. package/src/grapher/stackedCharts/MarimekkoBars.tsx +8 -8
  208. package/src/grapher/stackedCharts/MarimekkoBarsForOneEntity.tsx +5 -5
  209. package/src/grapher/stackedCharts/MarimekkoChart.tsx +23 -23
  210. package/src/grapher/stackedCharts/MarimekkoChartConstants.ts +6 -6
  211. package/src/grapher/stackedCharts/MarimekkoChartHelpers.ts +3 -3
  212. package/src/grapher/stackedCharts/MarimekkoChartState.ts +16 -16
  213. package/src/grapher/stackedCharts/MarimekkoChartThumbnail.tsx +13 -13
  214. package/src/grapher/stackedCharts/MarimekkoInternalLabels.tsx +4 -4
  215. package/src/grapher/stackedCharts/StackedAreaChart.tsx +22 -22
  216. package/src/grapher/stackedCharts/StackedAreaChartState.ts +5 -5
  217. package/src/grapher/stackedCharts/StackedAreaChartThumbnail.tsx +14 -14
  218. package/src/grapher/stackedCharts/StackedAreas.tsx +4 -4
  219. package/src/grapher/stackedCharts/StackedBarChart.tsx +21 -21
  220. package/src/grapher/stackedCharts/StackedBarChartState.ts +8 -8
  221. package/src/grapher/stackedCharts/StackedBarChartThumbnail.tsx +14 -14
  222. package/src/grapher/stackedCharts/StackedBarSegment.tsx +3 -3
  223. package/src/grapher/stackedCharts/StackedBars.tsx +6 -6
  224. package/src/grapher/stackedCharts/StackedConstants.ts +6 -6
  225. package/src/grapher/stackedCharts/StackedDiscreteBarChart.tsx +14 -14
  226. package/src/grapher/stackedCharts/StackedDiscreteBarChartState.ts +13 -13
  227. package/src/grapher/stackedCharts/StackedDiscreteBarChartThumbnail.tsx +4 -4
  228. package/src/grapher/stackedCharts/StackedDiscreteBars.tsx +15 -15
  229. package/src/grapher/stackedCharts/StackedUtils.ts +3 -3
  230. package/src/grapher/tabs/TabsWithDropdown.tsx +1 -1
  231. package/src/grapher/testData/TestData.sample.ts +5 -5
  232. package/src/grapher/testData/TestData.ts +2 -2
  233. package/src/grapher/timeline/TimelineComponent.tsx +4 -4
  234. package/src/grapher/timeline/TimelineController.ts +2 -2
  235. package/src/grapher/tooltip/Tooltip.tsx +5 -5
  236. package/src/grapher/tooltip/TooltipContents.tsx +6 -6
  237. package/src/grapher/tooltip/TooltipProps.ts +1 -1
  238. package/src/grapher/tooltip/TooltipState.ts +2 -2
  239. package/src/grapher/verticalLabels/VerticalLabels.tsx +3 -3
  240. package/src/grapher/verticalLabels/VerticalLabelsState.ts +2 -2
  241. package/src/index.ts +55 -55
  242. package/src/types/Origin.ts +1 -1
  243. package/src/types/Variable.ts +3 -3
  244. package/src/types/VariableDisplayConfigInterface.ts +2 -2
  245. package/src/types/domainTypes/ContentGraph.ts +2 -2
  246. package/src/types/domainTypes/CoreTableTypes.ts +5 -5
  247. package/src/types/domainTypes/Posts.ts +4 -4
  248. package/src/types/domainTypes/Search.ts +2 -2
  249. package/src/types/domainTypes/Various.ts +1 -1
  250. package/src/types/gdocTypes/Gdoc.ts +2 -2
  251. package/src/types/grapherTypes/GrapherTypes.ts +9 -9
  252. package/src/types/index.ts +15 -15
  253. package/src/utils/Bounds.ts +2 -2
  254. package/src/utils/FuzzySearch.ts +1 -1
  255. package/src/utils/TimeBounds.ts +2 -2
  256. package/src/utils/Util.ts +3 -3
  257. package/src/utils/Variable.ts +2 -2
  258. package/src/utils/archival/archivalDate.ts +2 -2
  259. package/src/utils/formatValue.ts +2 -2
  260. package/src/utils/grapherConfigUtils.ts +2 -2
  261. package/src/utils/image.ts +2 -2
  262. package/src/utils/index.ts +27 -27
  263. package/src/utils/metadataHelpers.ts +4 -4
  264. package/src/utils/regions.ts +2 -2
  265. package/src/utils/urls/Url.ts +3 -3
  266. package/src/utils/urls/UrlMigration.ts +1 -1
  267. package/src/utils/urls/UrlUtils.ts +2 -2
@@ -1,4 +1,4 @@
1
- import { SubNavId } from "../types/index.ts"
1
+ import { SubNavId } from "../types/index.js"
2
2
  import {
3
3
  CellDef,
4
4
  BooleanCellDef,
@@ -11,9 +11,9 @@ import {
11
11
  Grammar,
12
12
  EnumCellDef,
13
13
  StringDeclarationDef,
14
- } from "./gridLang/GridLangConstants.ts"
15
- import { GrapherGrammar } from "./GrapherGrammar.ts"
16
- import { ColumnGrammar } from "./ColumnGrammar.ts"
14
+ } from "./gridLang/GridLangConstants.js"
15
+ import { GrapherGrammar } from "./GrapherGrammar.js"
16
+ import { ColumnGrammar } from "./ColumnGrammar.js"
17
17
 
18
18
  const ExplorerFormControlCellDeff: CellDef = {
19
19
  ...StringDeclarationDef,
@@ -11,19 +11,19 @@ import {
11
11
  GrapherInterface,
12
12
  AxisMinMaxValueStr,
13
13
  GrapherChartType,
14
- } from "../types/index.ts"
14
+ } from "../types/index.js"
15
15
  import {
16
16
  CoreTable,
17
17
  ChartsTable,
18
18
  isNotErrorValue,
19
- } from "../core-table/index.ts"
19
+ } from "../core-table/index.js"
20
20
  import {
21
21
  GitCommit,
22
22
  PromiseCache,
23
23
  SerializedGridProgram,
24
24
  trimObject,
25
25
  fetchWithRetry,
26
- } from "../utils/index.ts"
26
+ } from "../utils/index.js"
27
27
  import {
28
28
  CellDef,
29
29
  Grammar,
@@ -31,19 +31,19 @@ import {
31
31
  GRID_CELL_DELIMITER,
32
32
  GRID_NODE_DELIMITER,
33
33
  RootKeywordCellDef,
34
- } from "./gridLang/GridLangConstants.ts"
35
- import { GridProgram } from "./gridLang/GridProgram.ts"
36
- import { ColumnGrammar } from "./ColumnGrammar.ts"
34
+ } from "./gridLang/GridLangConstants.js"
35
+ import { GridProgram } from "./gridLang/GridProgram.js"
36
+ import { ColumnGrammar } from "./ColumnGrammar.js"
37
37
  import {
38
38
  DefaultNewExplorerSlug,
39
39
  ExplorerChartCreationMode,
40
40
  ExplorerChoiceParams,
41
41
  EXPLORERS_ROUTE_FOLDER,
42
- } from "./ExplorerConstants.ts"
43
- import { DecisionMatrix } from "./ExplorerDecisionMatrix.ts"
44
- import { ExplorerGrammar } from "./ExplorerGrammar.ts"
45
- import { GrapherGrammar } from "./GrapherGrammar.ts"
46
- import { latestGrapherConfigSchema } from "../grapher/index.ts"
42
+ } from "./ExplorerConstants.js"
43
+ import { DecisionMatrix } from "./ExplorerDecisionMatrix.js"
44
+ import { ExplorerGrammar } from "./ExplorerGrammar.js"
45
+ import { GrapherGrammar } from "./GrapherGrammar.js"
46
+ import { latestGrapherConfigSchema } from "../grapher/index.js"
47
47
 
48
48
  export const EXPLORER_FILE_SUFFIX = ".explorer.tsv"
49
49
 
@@ -1,13 +1,13 @@
1
1
  import * as _ from "lodash-es"
2
- import { SelectionArray } from "../grapher/index.ts"
3
- import { Bounds, deserializeJSONFromHTML } from "../utils/index.ts"
2
+ import { SelectionArray } from "../grapher/index.js"
3
+ import { Bounds, deserializeJSONFromHTML } from "../utils/index.js"
4
4
  import {
5
5
  EMBEDDED_EXPLORER_DELIMITER,
6
6
  EMBEDDED_EXPLORER_GRAPHER_CONFIGS,
7
7
  EMBEDDED_EXPLORER_PARTIAL_GRAPHER_CONFIGS,
8
8
  EXPLORER_CONSTANTS_DELIMITER,
9
- } from "./ExplorerConstants.ts"
10
- import { ExplorerProps } from "./Explorer.tsx"
9
+ } from "./ExplorerConstants.js"
10
+ import { ExplorerProps } from "./Explorer.js"
11
11
 
12
12
  export async function buildExplorerProps(
13
13
  html: string,
@@ -8,8 +8,8 @@ import {
8
8
  GrapherChartType,
9
9
  MissingDataStrategy,
10
10
  StackMode,
11
- } from "../types/index.ts"
12
- import { SortBy, SortOrder } from "../utils/index.ts"
11
+ } from "../types/index.js"
12
+ import { SortBy, SortOrder } from "../utils/index.js"
13
13
  import {
14
14
  GridBoolean,
15
15
  BooleanCellDef,
@@ -26,7 +26,7 @@ import {
26
26
  IndicatorIdOrEtlPathCellDef,
27
27
  SlugOrIndicatorIdOrEtlPathCellDef,
28
28
  GrapherCellDef,
29
- } from "./gridLang/GridLangConstants.ts"
29
+ } from "./gridLang/GridLangConstants.js"
30
30
  import * as R from "remeda"
31
31
  const toTerminalOptions = (keywords: string[]): CellDef[] => {
32
32
  return keywords.map((keyword) => ({
@@ -1,7 +1,7 @@
1
- import { trimArray } from "../../core-table/index.ts"
2
- import { imemo, isPresent } from "../../utils/index.ts"
1
+ import { trimArray } from "../../core-table/index.js"
2
+ import { imemo, isPresent } from "../../utils/index.js"
3
3
 
4
- import { didYouMean, isBlankLine, isEmpty } from "./GrammarUtils.ts"
4
+ import { didYouMean, isBlankLine, isEmpty } from "./GrammarUtils.js"
5
5
  import {
6
6
  CellPosition,
7
7
  CellDef,
@@ -15,7 +15,7 @@ import {
15
15
  SubTableValueCellDef,
16
16
  WorkInProgressCellDef,
17
17
  NothingGoesThereCellDef,
18
- } from "./GridLangConstants.ts"
18
+ } from "./GridLangConstants.js"
19
19
 
20
20
  export class GridCell implements ParsedCell {
21
21
  private position: CellPosition
@@ -1,4 +1,4 @@
1
- import { GrapherInterface } from "../../types/index.ts"
1
+ import { GrapherInterface } from "../../types/index.js"
2
2
 
3
3
  export const CellHasErrorsClass = "CellHasErrorsClass"
4
4
 
@@ -1,11 +1,11 @@
1
- import { trimMatrix } from "../../core-table/index.ts"
1
+ import { trimMatrix } from "../../core-table/index.js"
2
2
  import {
3
3
  isPresent,
4
4
  GitCommit,
5
5
  SerializedGridProgram,
6
- } from "../../utils/index.ts"
6
+ } from "../../utils/index.js"
7
7
 
8
- import { GridCell } from "./GridCell.ts"
8
+ import { GridCell } from "./GridCell.js"
9
9
  import {
10
10
  CellDef,
11
11
  CellPosition,
@@ -14,8 +14,8 @@ import {
14
14
  GRID_NODE_DELIMITER,
15
15
  Origin,
16
16
  ParsedCell,
17
- } from "./GridLangConstants.ts"
18
- import { tsvToMatrix } from "./GrammarUtils.ts"
17
+ } from "./GridLangConstants.js"
18
+ import { tsvToMatrix } from "./GrammarUtils.js"
19
19
 
20
20
  /**
21
21
  * Block location for the below would be like (numRows = 2)
@@ -1,6 +1,6 @@
1
- export { Explorer, type ExplorerProps } from "./Explorer.tsx"
1
+ export { Explorer, type ExplorerProps } from "./Explorer.js"
2
2
 
3
- export { buildExplorerProps } from "./ExplorerUtils.ts"
3
+ export { buildExplorerProps } from "./ExplorerUtils.js"
4
4
 
5
5
  export {
6
6
  DefaultNewExplorerSlug,
@@ -29,7 +29,7 @@ export {
29
29
  type ExplorerStandardQueryParams,
30
30
  UNSAVED_EXPLORER_DRAFT,
31
31
  UNSAVED_EXPLORER_PREVIEW_QUERYPARAMS,
32
- } from "./ExplorerConstants.ts"
32
+ } from "./ExplorerConstants.js"
33
33
 
34
34
  export {
35
35
  type TableDef,
@@ -37,33 +37,33 @@ export {
37
37
  EXPLORER_FILE_SUFFIX,
38
38
  makeFullPath,
39
39
  type ExplorerGrapherInterface,
40
- } from "./ExplorerProgram.ts"
40
+ } from "./ExplorerProgram.js"
41
41
 
42
- export { type ExplorerPageUrlMigrationSpec } from "./urlMigrations/ExplorerPageUrlMigrationSpec.ts"
42
+ export { type ExplorerPageUrlMigrationSpec } from "./urlMigrations/ExplorerPageUrlMigrationSpec.js"
43
43
 
44
44
  export {
45
45
  explorerUrlMigrationsById,
46
46
  migrateExplorerUrl,
47
- } from "./urlMigrations/ExplorerUrlMigrations.ts"
47
+ } from "./urlMigrations/ExplorerUrlMigrations.js"
48
48
 
49
- export { isEmpty } from "./gridLang/GrammarUtils.ts"
49
+ export { isEmpty } from "./gridLang/GrammarUtils.js"
50
50
 
51
- export { ColumnGrammar } from "./ColumnGrammar.ts"
51
+ export { ColumnGrammar } from "./ColumnGrammar.js"
52
52
 
53
- export { GridCell } from "./gridLang/GridCell.ts"
53
+ export { GridCell } from "./gridLang/GridCell.js"
54
54
 
55
- export { GridProgram } from "./gridLang/GridProgram.ts"
55
+ export { GridProgram } from "./gridLang/GridProgram.js"
56
56
 
57
- export { ExplorerGrammar } from "./ExplorerGrammar.ts"
57
+ export { ExplorerGrammar } from "./ExplorerGrammar.js"
58
58
 
59
- export { ExplorerUrlMigrationId } from "./urlMigrations/ExplorerUrlMigrations.ts"
59
+ export { ExplorerUrlMigrationId } from "./urlMigrations/ExplorerUrlMigrations.js"
60
60
 
61
- export { DecisionMatrix } from "./ExplorerDecisionMatrix.ts"
61
+ export { DecisionMatrix } from "./ExplorerDecisionMatrix.js"
62
62
 
63
63
  export {
64
64
  GridBoolean,
65
65
  type CellPosition,
66
66
  type ParsedCell,
67
- } from "./gridLang/GridLangConstants.ts"
67
+ } from "./gridLang/GridLangConstants.js"
68
68
 
69
- export { GrapherGrammar } from "./GrapherGrammar.ts"
69
+ export { GrapherGrammar } from "./GrapherGrammar.js"
@@ -1,11 +1,11 @@
1
- import { legacyToCurrentGrapherUrl } from "../../grapher/index.ts"
2
- import { Url, UrlMigration } from "../../utils/index.ts"
1
+ import { legacyToCurrentGrapherUrl } from "../../grapher/index.js"
2
+ import { Url, UrlMigration } from "../../utils/index.js"
3
3
  import {
4
4
  decodeURIComponentOrUndefined,
5
5
  getExplorerSlugFromUrl,
6
6
  QueryParamTransformMap,
7
7
  transformQueryParams,
8
- } from "./ExplorerUrlMigrationUtils.ts"
8
+ } from "./ExplorerUrlMigrationUtils.js"
9
9
 
10
10
  const EXPLORER_SLUG = "co2"
11
11
 
@@ -1,9 +1,9 @@
1
- import { Url, UrlMigration } from "../../utils/index.ts"
1
+ import { Url, UrlMigration } from "../../utils/index.js"
2
2
  import {
3
3
  getExplorerSlugFromUrl,
4
4
  QueryParamTransformMap,
5
5
  transformQueryParams,
6
- } from "./ExplorerUrlMigrationUtils.ts"
6
+ } from "./ExplorerUrlMigrationUtils.js"
7
7
 
8
8
  const EXPLORER_SLUG = "coronavirus-data-explorer"
9
9
 
@@ -1,11 +1,11 @@
1
- import { legacyToCurrentGrapherUrl } from "../../grapher/index.ts"
2
- import { Url, UrlMigration } from "../../utils/index.ts"
1
+ import { legacyToCurrentGrapherUrl } from "../../grapher/index.js"
2
+ import { Url, UrlMigration } from "../../utils/index.js"
3
3
  import {
4
4
  decodeURIComponentOrUndefined,
5
5
  getExplorerSlugFromUrl,
6
6
  QueryParamTransformMap,
7
7
  transformQueryParams,
8
- } from "./ExplorerUrlMigrationUtils.ts"
8
+ } from "./ExplorerUrlMigrationUtils.js"
9
9
 
10
10
  const EXPLORER_SLUG = "energy"
11
11
 
@@ -1,4 +1,4 @@
1
- import { ExplorerUrlMigrationId } from "./ExplorerUrlMigrations.ts"
1
+ import { ExplorerUrlMigrationId } from "./ExplorerUrlMigrations.js"
2
2
 
3
3
  /**
4
4
  * An object spec that gets encoded into pages that redirect to an explorer.
@@ -1,7 +1,7 @@
1
1
  import * as _ from "lodash-es"
2
- import { Url, QueryParams } from "../../utils/index.ts"
2
+ import { Url, QueryParams } from "../../utils/index.js"
3
3
 
4
- import { EXPLORERS_ROUTE_FOLDER } from "../ExplorerConstants.ts"
4
+ import { EXPLORERS_ROUTE_FOLDER } from "../ExplorerConstants.js"
5
5
 
6
6
  export const decodeURIComponentOrUndefined = (value: string | undefined) =>
7
7
  value !== undefined
@@ -1,9 +1,9 @@
1
- import { Url, UrlMigration, performUrlMigrations } from "../../utils/index.ts"
1
+ import { Url, UrlMigration, performUrlMigrations } from "../../utils/index.js"
2
2
 
3
- import { legacyCovidMigrationSpec } from "./LegacyCovidUrlMigration.ts"
4
- import { co2UrlMigration } from "./CO2UrlMigration.ts"
5
- import { energyUrlMigration } from "./EnergyUrlMigration.ts"
6
- import { covidUrlMigration } from "./CovidUrlMigration.ts"
3
+ import { legacyCovidMigrationSpec } from "./LegacyCovidUrlMigration.js"
4
+ import { co2UrlMigration } from "./CO2UrlMigration.js"
5
+ import { energyUrlMigration } from "./EnergyUrlMigration.js"
6
+ import { covidUrlMigration } from "./CovidUrlMigration.js"
7
7
 
8
8
  export enum ExplorerUrlMigrationId {
9
9
  legacyToGridCovidExplorer = "legacyToGridCovidExplorer",
@@ -1,8 +1,8 @@
1
1
  import * as _ from "lodash-es"
2
- import { legacyToCurrentGrapherUrl } from "../../grapher/index.ts"
3
- import { QueryParams, Url } from "../../utils/index.ts"
4
- import { EXPLORERS_ROUTE_FOLDER } from "../ExplorerConstants.ts"
5
- import { ExplorerUrlMigrationSpec } from "./ExplorerUrlMigrations.ts"
2
+ import { legacyToCurrentGrapherUrl } from "../../grapher/index.js"
3
+ import { QueryParams, Url } from "../../utils/index.js"
4
+ import { EXPLORERS_ROUTE_FOLDER } from "../ExplorerConstants.js"
5
+ import { ExplorerUrlMigrationSpec } from "./ExplorerUrlMigrations.js"
6
6
 
7
7
  const covidMetricFromLegacyQueryParams = (queryParams: QueryParams) => {
8
8
  if (queryParams.casesMetric) {
@@ -14,20 +14,20 @@ import {
14
14
  Tickmark,
15
15
  ValueRange,
16
16
  VariableRoundingMode,
17
- } from "../../utils/index.ts"
18
- import { ComparisonLineConfig } from "../../types/index.ts"
19
- import { AxisConfig, AxisManager } from "./AxisConfig"
20
- import { MarkdownTextWrap } from "../../components/index.ts"
21
- import { CoreColumn } from "../../core-table/index.ts"
17
+ } from "../../utils/index.js"
18
+ import { ComparisonLineConfig } from "../../types/index.js"
19
+ import { AxisConfig, AxisManager } from "./AxisConfig.js"
20
+ import { MarkdownTextWrap } from "../../components/index.js"
21
+ import { CoreColumn } from "../../core-table/index.js"
22
22
  import {
23
23
  DEFAULT_GRAPHER_BOUNDS,
24
24
  GRAPHER_FONT_SCALE_10_5,
25
25
  GRAPHER_FONT_SCALE_11,
26
26
  GRAPHER_FONT_SCALE_12,
27
- } from "../core/GrapherConstants.ts"
28
- import { makeAxisLabel } from "../chart/ChartUtils"
27
+ } from "../core/GrapherConstants.js"
28
+ import { makeAxisLabel } from "../chart/ChartUtils.js"
29
29
  import * as R from "remeda"
30
- import { isValidVerticalComparisonLineConfig } from "../comparisonLine/ComparisonLineHelpers"
30
+ import { isValidVerticalComparisonLineConfig } from "../comparisonLine/ComparisonLineHelpers.js"
31
31
 
32
32
  interface TickLabelPlacement {
33
33
  value: number
@@ -1,5 +1,5 @@
1
1
  import * as _ from "lodash-es"
2
- import { BASE_FONT_SIZE } from "../core/GrapherConstants"
2
+ import { BASE_FONT_SIZE } from "../core/GrapherConstants.js"
3
3
  import {
4
4
  trimObject,
5
5
  deleteRuntimeAndUnchangedProps,
@@ -8,16 +8,16 @@ import {
8
8
  Position,
9
9
  TickFormattingOptions,
10
10
  Bounds,
11
- } from "../../utils/index.ts"
11
+ } from "../../utils/index.js"
12
12
  import { observable, computed, makeObservable } from "mobx"
13
- import { HorizontalAxis, VerticalAxis } from "./Axis"
13
+ import { HorizontalAxis, VerticalAxis } from "./Axis.js"
14
14
  import {
15
15
  AxisMinMaxValueStr,
16
16
  AxisConfigInterface,
17
17
  FacetAxisDomain,
18
18
  ScaleType,
19
19
  Tickmark,
20
- } from "../../types/index.ts"
20
+ } from "../../types/index.js"
21
21
 
22
22
  export interface AxisManager {
23
23
  fontSize: number
@@ -10,13 +10,13 @@ import {
10
10
  dyFromAlign,
11
11
  textAnchorFromAlign,
12
12
  makeIdForHumanConsumption,
13
- } from "../../utils/index.ts"
14
- import { VerticalAxis, HorizontalAxis, DualAxis } from "./Axis"
13
+ } from "../../utils/index.js"
14
+ import { VerticalAxis, HorizontalAxis, DualAxis } from "./Axis.js"
15
15
  import classNames from "classnames"
16
- import { GRAPHER_DARK_TEXT } from "../color/ColorConstants"
17
- import { ScaleType, DetailsMarker } from "../../types/index.ts"
18
- import { ComparisonLine } from "../comparisonLine/ComparisonLine"
19
- import { DEFAULT_GRAPHER_BOUNDS } from "../core/GrapherConstants"
16
+ import { GRAPHER_DARK_TEXT } from "../color/ColorConstants.js"
17
+ import { ScaleType, DetailsMarker } from "../../types/index.js"
18
+ import { ComparisonLine } from "../comparisonLine/ComparisonLine.js"
19
+ import { DEFAULT_GRAPHER_BOUNDS } from "../core/GrapherConstants.js"
20
20
 
21
21
  const TICK_COLOR = "#ddd"
22
22
  const FAINT_TICK_COLOR = "#eee"
@@ -9,10 +9,10 @@ import {
9
9
  AxisAlign,
10
10
  makeIdForHumanConsumption,
11
11
  dyFromAlign,
12
- } from "../../utils/index.ts"
12
+ } from "../../utils/index.js"
13
13
  import { computed, makeObservable } from "mobx"
14
14
  import { observer } from "mobx-react"
15
- import { ScaleType, VerticalAlign } from "../../types/index.ts"
15
+ import { ScaleType, VerticalAlign } from "../../types/index.js"
16
16
  import {
17
17
  BASE_FONT_SIZE,
18
18
  DEFAULT_GRAPHER_BOUNDS,
@@ -20,11 +20,11 @@ import {
20
20
  GRAPHER_AREA_OPACITY_DEFAULT,
21
21
  GRAPHER_OPACITY_MUTE,
22
22
  GRAPHER_AREA_OPACITY_MUTE,
23
- } from "../core/GrapherConstants"
24
- import { NoDataModal } from "../noDataModal/NoDataModal"
25
- import { HorizontalAxisZeroLine } from "../axis/AxisViews"
26
- import { AxisConfig, AxisManager } from "../axis/AxisConfig"
27
- import { ChartInterface } from "../chart/ChartInterface"
23
+ } from "../core/GrapherConstants.js"
24
+ import { NoDataModal } from "../noDataModal/NoDataModal.js"
25
+ import { HorizontalAxisZeroLine } from "../axis/AxisViews.js"
26
+ import { AxisConfig, AxisManager } from "../axis/AxisConfig.js"
27
+ import { ChartInterface } from "../chart/ChartInterface.js"
28
28
  import {
29
29
  BAR_SPACING_FACTOR,
30
30
  DiscreteBarChartManager,
@@ -32,23 +32,23 @@ import {
32
32
  FontSettings,
33
33
  PlacedDiscreteBarSeries,
34
34
  SizedDiscreteBarSeries,
35
- } from "./DiscreteBarChartConstants"
36
- import { CategoricalBin, ColorScaleBin } from "../color/ColorScaleBin"
35
+ } from "./DiscreteBarChartConstants.js"
36
+ import { CategoricalBin, ColorScaleBin } from "../color/ColorScaleBin.js"
37
37
  import {
38
38
  HorizontalColorLegendManager,
39
39
  HorizontalNumericColorLegend,
40
- } from "../legend/HorizontalColorLegends"
41
- import { DiscreteBarChartState } from "./DiscreteBarChartState"
42
- import { ChartComponentProps } from "../chart/ChartTypeMap.tsx"
40
+ } from "../legend/HorizontalColorLegends.js"
41
+ import { DiscreteBarChartState } from "./DiscreteBarChartState.js"
42
+ import { ChartComponentProps } from "../chart/ChartTypeMap.js"
43
43
  import {
44
44
  makeProjectedDataPatternId,
45
45
  enrichSeriesWithLabels,
46
- } from "./DiscreteBarChartHelpers"
47
- import { ChartsTable } from "../../core-table/index.ts"
48
- import { HorizontalAxis } from "../axis/Axis"
49
- import { GRAPHER_DARK_TEXT } from "../color/ColorConstants"
46
+ } from "./DiscreteBarChartHelpers.js"
47
+ import { ChartsTable } from "../../core-table/index.js"
48
+ import { HorizontalAxis } from "../axis/Axis.js"
49
+ import { GRAPHER_DARK_TEXT } from "../color/ColorConstants.js"
50
50
  import type { BaseType, Selection } from "d3-selection"
51
- import { NUMERIC_LEGEND_STYLE } from "../lineCharts/LineChartConstants"
51
+ import { NUMERIC_LEGEND_STYLE } from "../lineCharts/LineChartConstants.js"
52
52
 
53
53
  const DEFAULT_PROJECTED_DATA_COLOR_IN_LEGEND = "#787878"
54
54
 
@@ -1,9 +1,9 @@
1
- import { ChartManager } from "../chart/ChartManager"
2
- import { CoreColumn } from "../../core-table/index.ts"
3
- import { ChartSeries } from "../chart/ChartInterface"
4
- import { Color, CoreValueType, Time } from "../../types/index.ts"
5
- import { TextWrap } from "../../components/index.ts"
6
- import { InteractionState } from "../interaction/InteractionState.ts"
1
+ import { ChartManager } from "../chart/ChartManager.js"
2
+ import { CoreColumn } from "../../core-table/index.js"
3
+ import { ChartSeries } from "../chart/ChartInterface.js"
4
+ import { Color, CoreValueType, Time } from "../../types/index.js"
5
+ import { TextWrap } from "../../components/index.js"
6
+ import { InteractionState } from "../interaction/InteractionState.js"
7
7
 
8
8
  export interface DiscreteBarSeries extends ChartSeries {
9
9
  entityName: string
@@ -1,7 +1,7 @@
1
1
  import * as _ from "lodash-es"
2
- import { TextWrap, shortenWithEllipsis } from "../../components/index.ts"
3
- import { EntityName } from "../../types/index.ts"
4
- import { FontSettings } from "./DiscreteBarChartConstants.ts"
2
+ import { TextWrap, shortenWithEllipsis } from "../../components/index.js"
3
+ import { EntityName } from "../../types/index.js"
4
+ import { FontSettings } from "./DiscreteBarChartConstants.js"
5
5
 
6
6
  const ANNOTATION_PADDING = 2
7
7
 
@@ -1,30 +1,30 @@
1
1
  import * as _ from "lodash-es"
2
2
  import { computed, makeObservable } from "mobx"
3
- import { ChartState } from "../chart/ChartInterface"
3
+ import { ChartState } from "../chart/ChartInterface.js"
4
4
  import {
5
5
  DiscreteBarChartManager,
6
6
  DiscreteBarItem,
7
7
  DiscreteBarSeries,
8
- } from "./DiscreteBarChartConstants"
8
+ } from "./DiscreteBarChartConstants.js"
9
9
  import {
10
10
  CoreColumn,
11
11
  isNotErrorValue,
12
12
  ChartsTable,
13
- } from "../../core-table/index.ts"
14
- import { ColorScale, ColorScaleManager } from "../color/ColorScale"
15
- import { SelectionArray } from "../selection/SelectionArray"
13
+ } from "../../core-table/index.js"
14
+ import { ColorScale, ColorScaleManager } from "../color/ColorScale.js"
15
+ import { SelectionArray } from "../selection/SelectionArray.js"
16
16
  import {
17
17
  autoDetectSeriesStrategy,
18
18
  autoDetectYColumnSlugs,
19
19
  getDefaultFailMessage,
20
20
  getShortNameForEntity,
21
21
  makeSelectionArray,
22
- } from "../chart/ChartUtils"
22
+ } from "../chart/ChartUtils.js"
23
23
  import {
24
24
  AnnotationsMap,
25
25
  getAnnotationsForSeries,
26
26
  getAnnotationsMap,
27
- } from "../lineCharts/LineChartHelpers"
27
+ } from "../lineCharts/LineChartHelpers.js"
28
28
  import {
29
29
  ChartErrorInfo,
30
30
  ColorScaleConfigInterface,
@@ -34,12 +34,12 @@ import {
34
34
  SortBy,
35
35
  SortConfig,
36
36
  SortOrder,
37
- } from "../../types/index.ts"
38
- import { ERROR_COLOR, NO_DATA_GRAY } from "../color/ColorConstants"
39
- import { ColorScheme } from "../color/ColorScheme"
40
- import { ColorSchemes } from "../color/ColorSchemes"
41
- import { ColorScaleConfig } from "../color/ColorScaleConfig"
42
- import { FocusArray } from "../focus/FocusArray"
37
+ } from "../../types/index.js"
38
+ import { ERROR_COLOR, NO_DATA_GRAY } from "../color/ColorConstants.js"
39
+ import { ColorScheme } from "../color/ColorScheme.js"
40
+ import { ColorSchemes } from "../color/ColorSchemes.js"
41
+ import { ColorScaleConfig } from "../color/ColorScaleConfig.js"
42
+ import { FocusArray } from "../focus/FocusArray.js"
43
43
 
44
44
  export class DiscreteBarChartState implements ChartState, ColorScaleManager {
45
45
  manager: DiscreteBarChartManager
@@ -1,14 +1,14 @@
1
1
  import React from "react"
2
2
  import { computed, makeObservable } from "mobx"
3
3
  import { observer } from "mobx-react"
4
- import { ChartInterface } from "../chart/ChartInterface"
5
- import { DiscreteBarChartState } from "./DiscreteBarChartState"
4
+ import { ChartInterface } from "../chart/ChartInterface.js"
5
+ import { DiscreteBarChartState } from "./DiscreteBarChartState.js"
6
6
  import {
7
7
  DiscreteBarChart,
8
8
  type DiscreteBarChartProps,
9
- } from "./DiscreteBarChart.tsx"
9
+ } from "./DiscreteBarChart.js"
10
10
 
11
- import { DiscreteBarChartManager } from "./DiscreteBarChartConstants.ts"
11
+ import { DiscreteBarChartManager } from "./DiscreteBarChartConstants.js"
12
12
 
13
13
  @observer
14
14
  export class DiscreteBarChartThumbnail
@@ -6,44 +6,44 @@ import {
6
6
  Bounds,
7
7
  exposeInstanceOnWindow,
8
8
  makeIdForHumanConsumption,
9
- } from "../../utils/index.ts"
10
- import { MarkdownTextWrap, LoadingIndicator } from "../../components/index.ts"
11
- import { Header, StaticHeader } from "../header/Header"
12
- import { Footer, StaticFooter } from "../footer/Footer"
9
+ } from "../../utils/index.js"
10
+ import { MarkdownTextWrap, LoadingIndicator } from "../../components/index.js"
11
+ import { Header, StaticHeader } from "../header/Header.js"
12
+ import { Footer, StaticFooter } from "../footer/Footer.js"
13
13
  import {
14
14
  STATIC_EXPORT_DETAIL_SPACING,
15
15
  GRAPHER_FRAME_PADDING_VERTICAL,
16
16
  GRAPHER_FRAME_PADDING_HORIZONTAL,
17
17
  DEFAULT_GRAPHER_BOUNDS,
18
- } from "../core/GrapherConstants"
19
- import { MapChartManager } from "../mapCharts/MapChartConstants"
20
- import { ChartManager } from "../chart/ChartManager"
18
+ } from "../core/GrapherConstants.js"
19
+ import { MapChartManager } from "../mapCharts/MapChartConstants.js"
20
+ import { ChartManager } from "../chart/ChartManager.js"
21
21
  import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons"
22
22
  import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
23
- import { FooterManager } from "../footer/FooterManager"
24
- import { HeaderManager } from "../header/HeaderManager"
25
- import { SelectionArray } from "../selection/SelectionArray"
23
+ import { FooterManager } from "../footer/FooterManager.js"
24
+ import { HeaderManager } from "../header/HeaderManager.js"
25
+ import { SelectionArray } from "../selection/SelectionArray.js"
26
26
  import {
27
27
  EntityName,
28
28
  RelatedQuestionsConfig,
29
29
  Color,
30
30
  GrapherTabName,
31
31
  GrapherChartType,
32
- } from "../../types/index.ts"
33
- import { DataTableManager } from "../dataTable/DataTableConstants"
32
+ } from "../../types/index.js"
33
+ import { DataTableManager } from "../dataTable/DataTableConstants.js"
34
34
  import {
35
35
  TimelineComponent,
36
36
  TIMELINE_HEIGHT,
37
- } from "../timeline/TimelineComponent"
38
- import { TimelineController } from "../timeline/TimelineController"
37
+ } from "../timeline/TimelineComponent.js"
38
+ import { TimelineController } from "../timeline/TimelineController.js"
39
39
  import {
40
40
  ControlsRow,
41
41
  ControlsRowManager,
42
- } from "../controls/controlsRow/ControlsRow"
43
- import { GRAPHER_BACKGROUND_DEFAULT } from "../color/ColorConstants.ts"
44
- import { ChartAreaContent } from "../chart/ChartAreaContent"
45
- import { getChartSvgProps } from "../chart/ChartUtils"
46
- import { StaticChartWrapper } from "../chart/StaticChartWrapper"
42
+ } from "../controls/controlsRow/ControlsRow.js"
43
+ import { GRAPHER_BACKGROUND_DEFAULT } from "../color/ColorConstants.js"
44
+ import { ChartAreaContent } from "../chart/ChartAreaContent.js"
45
+ import { getChartSvgProps } from "../chart/ChartUtils.js"
46
+ import { StaticChartWrapper } from "../chart/StaticChartWrapper.js"
47
47
 
48
48
  export interface CaptionedChartManager
49
49
  extends ChartManager,