@pixerate/editor-react 0.110.0 → 0.112.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -248,9 +248,10 @@ function ChartCanvas({ controller, width = 640, height = 400, responsive = true,
248
248
  valueDomain: frozen?.valueDomain,
249
249
  valueDomain2: frozen?.valueDomain2,
250
250
  xDomain: frozen?.xDomain,
251
- readout: frozen?.readout
251
+ readout: frozen?.readout,
252
+ raceFrame: state.raceFrame
252
253
  }),
253
- [state.spec, state.selection, sceneWidth, height, fullTheme, editable, measureText, emptyMessage, frozen]
254
+ [state.spec, state.selection, state.raceFrame, sceneWidth, height, fullTheme, editable, measureText, emptyMessage, frozen]
254
255
  );
255
256
  if (sceneRef) sceneRef.current = scene;
256
257
  const byKey = (0, import_react2.useMemo)(() => new Map(scene.marks.map((m) => [m.key, m])), [scene]);
@@ -708,7 +709,7 @@ function ErrorBarFields({ controller, series, which, idBase }) {
708
709
  ] });
709
710
  }
710
711
  function ChartInspector({ controller, sections, className }) {
711
- const { spec, selectedSeries, selection } = useChartState(controller);
712
+ const { spec, selectedSeries, selection, raceFrame, racePlaying } = useChartState(controller);
712
713
  const idBase = (0, import_react4.useId)();
713
714
  const show = (section) => !sections || sections.includes(section);
714
715
  const cartesian = (0, import_chart4.isCartesianChart)(spec.type);
@@ -779,6 +780,39 @@ function ChartInspector({ controller, sections, className }) {
779
780
  onChange: (e) => controller.update({ gapWidth: Number(e.currentTarget.value) })
780
781
  }
781
782
  ) }),
783
+ spec.type === "choropleth" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Field, { label: "Map", htmlFor: `${idBase}-map`, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("select", { id: `${idBase}-map`, className: chartInputClass, value: spec.map, "data-option": "map", onChange: (e) => controller.update({ map: e.currentTarget.value }), children: [.../* @__PURE__ */ new Set([spec.map, ...(0, import_chart4.listChartMaps)().map((m) => m.id)])].map((id) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("option", { value: id, children: (0, import_chart4.listChartMaps)().find((m) => m.id === id)?.name ?? `${id} (not loaded)` }, id)) }) }),
784
+ spec.type === "choropleth" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Field, { label: "Classes", htmlFor: `${idBase}-map-steps`, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ChartCommitInput, { id: `${idBase}-map-steps`, value: String(spec.mapSteps), inputMode: "numeric", "data-option": "mapSteps", disabled: spec.mapThresholds.length > 0, className: chartInputClass, onCommit: (text) => controller.update({ mapSteps: Number(text) }).ok }) }),
785
+ spec.type === "choropleth" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Field, { label: "Breaks", htmlFor: `${idBase}-map-breaks`, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
786
+ ChartCommitInput,
787
+ {
788
+ id: `${idBase}-map-breaks`,
789
+ value: spec.mapThresholds.join(", "),
790
+ placeholder: "Equal classes",
791
+ "data-option": "mapThresholds",
792
+ className: chartInputClass,
793
+ onCommit: (text) => controller.update({ mapThresholds: text.trim() ? text.split(",").map((t) => Number(t.trim())) : [] }).ok
794
+ }
795
+ ) }),
796
+ spec.type === "barrace" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Field, { label: "Bars", htmlFor: `${idBase}-race-top`, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ChartCommitInput, { id: `${idBase}-race-top`, value: String(spec.raceTopN), inputMode: "numeric", "data-option": "raceTopN", className: chartInputClass, onCommit: (text) => controller.update({ raceTopN: Number(text) }).ok }) }),
797
+ spec.type === "barrace" && spec.categories.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Field, { label: "Time", htmlFor: `${idBase}-race-frame`, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex items-center gap-1", children: [
798
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { type: "button", className: chartButtonClass, "data-action": "race-play", "aria-label": racePlaying ? "Pause the race" : "Play the race", onClick: () => racePlaying ? controller.pauseRace() : controller.playRace(), children: racePlaying ? "Pause" : "Play" }),
799
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
800
+ "input",
801
+ {
802
+ id: `${idBase}-race-frame`,
803
+ type: "range",
804
+ min: 0,
805
+ max: spec.categories.length - 1,
806
+ step: 0.01,
807
+ value: raceFrame ?? spec.categories.length - 1,
808
+ "data-option": "raceFrame",
809
+ "aria-valuetext": spec.categories[Math.round(raceFrame ?? spec.categories.length - 1)],
810
+ className: "min-w-0 flex-1 accent-primary",
811
+ onChange: (e) => controller.setRaceFrame(Number(e.currentTarget.value))
812
+ }
813
+ ),
814
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "w-12 shrink-0 truncate text-right tabular-nums text-muted-foreground", "data-race-time": "", children: spec.categories[Math.round(raceFrame ?? spec.categories.length - 1)] })
815
+ ] }) }),
782
816
  spec.type === "sankey" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Field, { label: "Flows", htmlFor: `${idBase}-sankey-color`, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Select, { id: `${idBase}-sankey-color`, name: "sankeyLinkColor", value: spec.sankeyLinkColor, options: import_chart4.CHART_SANKEY_LINK_COLORS, labels: { source: "Coloured by source", target: "Coloured by target", gray: "Grey" }, onChange: (sankeyLinkColor) => controller.update({ sankeyLinkColor }) }) }),
783
817
  spec.type === "sunburst" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Field, { label: "Caption", htmlFor: `${idBase}-sunburst-label`, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ChartCommitInput, { id: `${idBase}-sunburst-label`, value: spec.sunburstLabel, placeholder: "Under the total", "data-option": "sunburstLabel", className: chartInputClass, onCommit: (sunburstLabel) => controller.update({ sunburstLabel }).ok }) }),
784
818
  spec.type === "likert" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Field, { label: "Neutral", htmlFor: `${idBase}-likert-neutral`, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Select, { id: `${idBase}-likert-neutral`, name: "likertNeutral", value: spec.likertNeutral, options: import_chart4.CHART_LIKERT_NEUTRALS, labels: { split: "Across the centre", separate: "In its own column" }, onChange: (likertNeutral) => controller.update({ likertNeutral }) }) }),
@@ -22,7 +22,7 @@ import {
22
22
  useChartState,
23
23
  useChartToolProvider,
24
24
  useOfficeChartToolProvider
25
- } from "../chunk-MST2H6JB.js";
25
+ } from "../chunk-3MUK5ASL.js";
26
26
  import {
27
27
  PresenceLayer,
28
28
  useAgentPlayback,
@@ -197,9 +197,10 @@ function ChartCanvas({ controller, width = 640, height = 400, responsive = true,
197
197
  valueDomain: frozen?.valueDomain,
198
198
  valueDomain2: frozen?.valueDomain2,
199
199
  xDomain: frozen?.xDomain,
200
- readout: frozen?.readout
200
+ readout: frozen?.readout,
201
+ raceFrame: state.raceFrame
201
202
  }),
202
- [state.spec, state.selection, sceneWidth, height, fullTheme, editable, measureText, emptyMessage, frozen]
203
+ [state.spec, state.selection, state.raceFrame, sceneWidth, height, fullTheme, editable, measureText, emptyMessage, frozen]
203
204
  );
204
205
  if (sceneRef) sceneRef.current = scene;
205
206
  const byKey = useMemo2(() => new Map(scene.marks.map((m) => [m.key, m])), [scene]);
@@ -549,6 +550,7 @@ import {
549
550
  parseChartAmountList,
550
551
  chartSeriesType,
551
552
  isCartesianChart,
553
+ listChartMaps,
552
554
  suggestChartReferences
553
555
  } from "@pixerate/editor/chart";
554
556
  import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
@@ -713,7 +715,7 @@ function ErrorBarFields({ controller, series, which, idBase }) {
713
715
  ] });
714
716
  }
715
717
  function ChartInspector({ controller, sections, className }) {
716
- const { spec, selectedSeries, selection } = useChartState(controller);
718
+ const { spec, selectedSeries, selection, raceFrame, racePlaying } = useChartState(controller);
717
719
  const idBase = useId();
718
720
  const show = (section) => !sections || sections.includes(section);
719
721
  const cartesian = isCartesianChart(spec.type);
@@ -784,6 +786,39 @@ function ChartInspector({ controller, sections, className }) {
784
786
  onChange: (e) => controller.update({ gapWidth: Number(e.currentTarget.value) })
785
787
  }
786
788
  ) }),
789
+ spec.type === "choropleth" && /* @__PURE__ */ jsx3(Field, { label: "Map", htmlFor: `${idBase}-map`, children: /* @__PURE__ */ jsx3("select", { id: `${idBase}-map`, className: chartInputClass, value: spec.map, "data-option": "map", onChange: (e) => controller.update({ map: e.currentTarget.value }), children: [.../* @__PURE__ */ new Set([spec.map, ...listChartMaps().map((m) => m.id)])].map((id) => /* @__PURE__ */ jsx3("option", { value: id, children: listChartMaps().find((m) => m.id === id)?.name ?? `${id} (not loaded)` }, id)) }) }),
790
+ spec.type === "choropleth" && /* @__PURE__ */ jsx3(Field, { label: "Classes", htmlFor: `${idBase}-map-steps`, children: /* @__PURE__ */ jsx3(ChartCommitInput, { id: `${idBase}-map-steps`, value: String(spec.mapSteps), inputMode: "numeric", "data-option": "mapSteps", disabled: spec.mapThresholds.length > 0, className: chartInputClass, onCommit: (text) => controller.update({ mapSteps: Number(text) }).ok }) }),
791
+ spec.type === "choropleth" && /* @__PURE__ */ jsx3(Field, { label: "Breaks", htmlFor: `${idBase}-map-breaks`, children: /* @__PURE__ */ jsx3(
792
+ ChartCommitInput,
793
+ {
794
+ id: `${idBase}-map-breaks`,
795
+ value: spec.mapThresholds.join(", "),
796
+ placeholder: "Equal classes",
797
+ "data-option": "mapThresholds",
798
+ className: chartInputClass,
799
+ onCommit: (text) => controller.update({ mapThresholds: text.trim() ? text.split(",").map((t) => Number(t.trim())) : [] }).ok
800
+ }
801
+ ) }),
802
+ spec.type === "barrace" && /* @__PURE__ */ jsx3(Field, { label: "Bars", htmlFor: `${idBase}-race-top`, children: /* @__PURE__ */ jsx3(ChartCommitInput, { id: `${idBase}-race-top`, value: String(spec.raceTopN), inputMode: "numeric", "data-option": "raceTopN", className: chartInputClass, onCommit: (text) => controller.update({ raceTopN: Number(text) }).ok }) }),
803
+ spec.type === "barrace" && spec.categories.length > 1 && /* @__PURE__ */ jsx3(Field, { label: "Time", htmlFor: `${idBase}-race-frame`, children: /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-1", children: [
804
+ /* @__PURE__ */ jsx3("button", { type: "button", className: chartButtonClass, "data-action": "race-play", "aria-label": racePlaying ? "Pause the race" : "Play the race", onClick: () => racePlaying ? controller.pauseRace() : controller.playRace(), children: racePlaying ? "Pause" : "Play" }),
805
+ /* @__PURE__ */ jsx3(
806
+ "input",
807
+ {
808
+ id: `${idBase}-race-frame`,
809
+ type: "range",
810
+ min: 0,
811
+ max: spec.categories.length - 1,
812
+ step: 0.01,
813
+ value: raceFrame ?? spec.categories.length - 1,
814
+ "data-option": "raceFrame",
815
+ "aria-valuetext": spec.categories[Math.round(raceFrame ?? spec.categories.length - 1)],
816
+ className: "min-w-0 flex-1 accent-primary",
817
+ onChange: (e) => controller.setRaceFrame(Number(e.currentTarget.value))
818
+ }
819
+ ),
820
+ /* @__PURE__ */ jsx3("span", { className: "w-12 shrink-0 truncate text-right tabular-nums text-muted-foreground", "data-race-time": "", children: spec.categories[Math.round(raceFrame ?? spec.categories.length - 1)] })
821
+ ] }) }),
787
822
  spec.type === "sankey" && /* @__PURE__ */ jsx3(Field, { label: "Flows", htmlFor: `${idBase}-sankey-color`, children: /* @__PURE__ */ jsx3(Select, { id: `${idBase}-sankey-color`, name: "sankeyLinkColor", value: spec.sankeyLinkColor, options: CHART_SANKEY_LINK_COLORS, labels: { source: "Coloured by source", target: "Coloured by target", gray: "Grey" }, onChange: (sankeyLinkColor) => controller.update({ sankeyLinkColor }) }) }),
788
823
  spec.type === "sunburst" && /* @__PURE__ */ jsx3(Field, { label: "Caption", htmlFor: `${idBase}-sunburst-label`, children: /* @__PURE__ */ jsx3(ChartCommitInput, { id: `${idBase}-sunburst-label`, value: spec.sunburstLabel, placeholder: "Under the total", "data-option": "sunburstLabel", className: chartInputClass, onCommit: (sunburstLabel) => controller.update({ sunburstLabel }).ok }) }),
789
824
  spec.type === "likert" && /* @__PURE__ */ jsx3(Field, { label: "Neutral", htmlFor: `${idBase}-likert-neutral`, children: /* @__PURE__ */ jsx3(Select, { id: `${idBase}-likert-neutral`, name: "likertNeutral", value: spec.likertNeutral, options: CHART_LIKERT_NEUTRALS, labels: { split: "Across the centre", separate: "In its own column" }, onChange: (likertNeutral) => controller.update({ likertNeutral }) }) }),
package/dist/index.cjs CHANGED
@@ -11349,9 +11349,10 @@ function ChartCanvas({ controller, width = 640, height = 400, responsive = true,
11349
11349
  valueDomain: frozen?.valueDomain,
11350
11350
  valueDomain2: frozen?.valueDomain2,
11351
11351
  xDomain: frozen?.xDomain,
11352
- readout: frozen?.readout
11352
+ readout: frozen?.readout,
11353
+ raceFrame: state.raceFrame
11353
11354
  }),
11354
- [state.spec, state.selection, sceneWidth, height, fullTheme, editable, measureText, emptyMessage, frozen]
11355
+ [state.spec, state.selection, state.raceFrame, sceneWidth, height, fullTheme, editable, measureText, emptyMessage, frozen]
11355
11356
  );
11356
11357
  if (sceneRef) sceneRef.current = scene;
11357
11358
  const byKey = (0, import_react83.useMemo)(() => new Map(scene.marks.map((m) => [m.key, m])), [scene]);
@@ -11820,7 +11821,7 @@ function ErrorBarFields({ controller, series, which, idBase }) {
11820
11821
  ] });
11821
11822
  }
11822
11823
  function ChartInspector({ controller, sections, className }) {
11823
- const { spec, selectedSeries, selection } = useChartState(controller);
11824
+ const { spec, selectedSeries, selection, raceFrame, racePlaying } = useChartState(controller);
11824
11825
  const idBase = (0, import_react85.useId)();
11825
11826
  const show = (section) => !sections || sections.includes(section);
11826
11827
  const cartesian = (0, import_chart4.isCartesianChart)(spec.type);
@@ -11891,6 +11892,39 @@ function ChartInspector({ controller, sections, className }) {
11891
11892
  onChange: (e) => controller.update({ gapWidth: Number(e.currentTarget.value) })
11892
11893
  }
11893
11894
  ) }),
11895
+ spec.type === "choropleth" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field, { label: "Map", htmlFor: `${idBase}-map`, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("select", { id: `${idBase}-map`, className: chartInputClass, value: spec.map, "data-option": "map", onChange: (e) => controller.update({ map: e.currentTarget.value }), children: [.../* @__PURE__ */ new Set([spec.map, ...(0, import_chart4.listChartMaps)().map((m) => m.id)])].map((id) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("option", { value: id, children: (0, import_chart4.listChartMaps)().find((m) => m.id === id)?.name ?? `${id} (not loaded)` }, id)) }) }),
11896
+ spec.type === "choropleth" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field, { label: "Classes", htmlFor: `${idBase}-map-steps`, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ChartCommitInput, { id: `${idBase}-map-steps`, value: String(spec.mapSteps), inputMode: "numeric", "data-option": "mapSteps", disabled: spec.mapThresholds.length > 0, className: chartInputClass, onCommit: (text) => controller.update({ mapSteps: Number(text) }).ok }) }),
11897
+ spec.type === "choropleth" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field, { label: "Breaks", htmlFor: `${idBase}-map-breaks`, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
11898
+ ChartCommitInput,
11899
+ {
11900
+ id: `${idBase}-map-breaks`,
11901
+ value: spec.mapThresholds.join(", "),
11902
+ placeholder: "Equal classes",
11903
+ "data-option": "mapThresholds",
11904
+ className: chartInputClass,
11905
+ onCommit: (text) => controller.update({ mapThresholds: text.trim() ? text.split(",").map((t) => Number(t.trim())) : [] }).ok
11906
+ }
11907
+ ) }),
11908
+ spec.type === "barrace" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field, { label: "Bars", htmlFor: `${idBase}-race-top`, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ChartCommitInput, { id: `${idBase}-race-top`, value: String(spec.raceTopN), inputMode: "numeric", "data-option": "raceTopN", className: chartInputClass, onCommit: (text) => controller.update({ raceTopN: Number(text) }).ok }) }),
11909
+ spec.type === "barrace" && spec.categories.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field, { label: "Time", htmlFor: `${idBase}-race-frame`, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex items-center gap-1", children: [
11910
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("button", { type: "button", className: chartButtonClass, "data-action": "race-play", "aria-label": racePlaying ? "Pause the race" : "Play the race", onClick: () => racePlaying ? controller.pauseRace() : controller.playRace(), children: racePlaying ? "Pause" : "Play" }),
11911
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
11912
+ "input",
11913
+ {
11914
+ id: `${idBase}-race-frame`,
11915
+ type: "range",
11916
+ min: 0,
11917
+ max: spec.categories.length - 1,
11918
+ step: 0.01,
11919
+ value: raceFrame ?? spec.categories.length - 1,
11920
+ "data-option": "raceFrame",
11921
+ "aria-valuetext": spec.categories[Math.round(raceFrame ?? spec.categories.length - 1)],
11922
+ className: "min-w-0 flex-1 accent-primary",
11923
+ onChange: (e) => controller.setRaceFrame(Number(e.currentTarget.value))
11924
+ }
11925
+ ),
11926
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "w-12 shrink-0 truncate text-right tabular-nums text-muted-foreground", "data-race-time": "", children: spec.categories[Math.round(raceFrame ?? spec.categories.length - 1)] })
11927
+ ] }) }),
11894
11928
  spec.type === "sankey" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field, { label: "Flows", htmlFor: `${idBase}-sankey-color`, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Select, { id: `${idBase}-sankey-color`, name: "sankeyLinkColor", value: spec.sankeyLinkColor, options: import_chart4.CHART_SANKEY_LINK_COLORS, labels: { source: "Coloured by source", target: "Coloured by target", gray: "Grey" }, onChange: (sankeyLinkColor) => controller.update({ sankeyLinkColor }) }) }),
11895
11929
  spec.type === "sunburst" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field, { label: "Caption", htmlFor: `${idBase}-sunburst-label`, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ChartCommitInput, { id: `${idBase}-sunburst-label`, value: spec.sunburstLabel, placeholder: "Under the total", "data-option": "sunburstLabel", className: chartInputClass, onCommit: (sunburstLabel) => controller.update({ sunburstLabel }).ok }) }),
11896
11930
  spec.type === "likert" && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Field, { label: "Neutral", htmlFor: `${idBase}-likert-neutral`, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Select, { id: `${idBase}-likert-neutral`, name: "likertNeutral", value: spec.likertNeutral, options: import_chart4.CHART_LIKERT_NEUTRALS, labels: { split: "Across the centre", separate: "In its own column" }, onChange: (likertNeutral) => controller.update({ likertNeutral }) }) }),
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  ChartDataGrid,
7
7
  ChartInspector,
8
8
  chartButtonClass
9
- } from "./chunk-MST2H6JB.js";
9
+ } from "./chunk-3MUK5ASL.js";
10
10
  import {
11
11
  FormulaHints,
12
12
  NameManager,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor-react",
3
- "version": "0.110.0",
3
+ "version": "0.112.0",
4
4
  "description": "React bindings and prompt/rich-text components for @pixerate/editor",
5
5
  "author": "Pixerate",
6
6
  "license": "MIT",
@@ -258,7 +258,7 @@
258
258
  },
259
259
  "peerDependencies": {
260
260
  "@dagrejs/dagre": "^1.1.8",
261
- "@pixerate/editor": ">=0.165.0 <1.0.0-0",
261
+ "@pixerate/editor": ">=0.167.0 <1.0.0-0",
262
262
  "@tiptap/core": "^2.27.3",
263
263
  "@tiptap/pm": "^2.27.3",
264
264
  "@tiptap/react": "^2.27.3",
@@ -285,7 +285,7 @@
285
285
  "tsup": "^9.0.0",
286
286
  "typescript": "^5.7.3",
287
287
  "vitest": "^5.0.5",
288
- "@pixerate/editor": "0.165.0"
288
+ "@pixerate/editor": "0.167.0"
289
289
  },
290
290
  "scripts": {
291
291
  "build": "tsup && tsc -p tsconfig.build.json && node ../../scripts/finalize-declarations.mjs dist",