@graphysdk/react-renderer 1.9.0-beta.1791545910919 → 1.9.0-beta.1791559652655

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.
@@ -145,11 +145,11 @@ export declare const CaptionSection: ({ title, layout, preview }: OverridableSec
145
145
  /** Every phrase a chart can say. The editing surface adds its own — see `editable/i18n/editor-i18n`. */
146
146
  declare type ChartPhrases = typeof EN_GB;
147
147
 
148
- /** A grid of colour chips, for picking one colour from a fixed set such as the palette. */
148
+ /** A grid of color chips, for picking one color from a fixed set such as the palette. */
149
149
  export declare const ColorSwatches: ({ title, colors, value, onChange, trailing, isClearable, isDisabled, id, ariaLabel, ariaLabelledBy, }: ColorSwatchesControlProps) => JSX.Element;
150
150
 
151
151
  /**
152
- * A grid of colour chips. A click reports the colour.
152
+ * A grid of color chips. A click reports the color.
153
153
  * `value` is `null` when no chip matches, as for a mixed selection.
154
154
  */
155
155
  export declare interface ColorSwatchesControlProps extends Omit<DiscreteControlProps<string | null>, 'onChange'> {
@@ -157,9 +157,9 @@ export declare interface ColorSwatchesControlProps extends Omit<DiscreteControlP
157
157
  title?: string;
158
158
  colors: readonly string[];
159
159
  onChange: (value: string) => void;
160
- /** Chips after the colours and a separator, such as a custom picker's trigger. They wrap with the colours. */
160
+ /** Chips after the colors and a separator, such as a custom picker's trigger. They wrap with the colors. */
161
161
  trailing?: ReactNode;
162
- /** Ends the row in a chip for no colour at all, after `trailing`, reported as `TRANSPARENT_COLOR`. */
162
+ /** Ends the row in a chip for no color at all, after `trailing`, reported as `TRANSPARENT_COLOR`. */
163
163
  isClearable?: boolean;
164
164
  }
165
165
 
@@ -187,7 +187,7 @@ export declare interface ContinuousControlProps<Value> extends ControlBaseProps
187
187
  /** Props every control shares. */
188
188
  export declare interface ControlBaseProps {
189
189
  isDisabled?: boolean;
190
- /** Required unless the control is labelled by a section row, which passes `ariaLabelledBy` instead. */
190
+ /** Required unless the control is labeled by a section row, which passes `ariaLabelledBy` instead. */
191
191
  ariaLabel?: string;
192
192
  ariaLabelledBy?: string;
193
193
  /**
@@ -264,12 +264,12 @@ export declare interface ControlTooltipProps {
264
264
  children: ReactElement;
265
265
  }
266
266
 
267
- /** A hex picker behind a trigger, for a colour none of the swatches offer. */
267
+ /** A hex picker behind a trigger, for a color none of the swatches offer. */
268
268
  export declare const CustomColor: ({ value, onChange, onCommit, popupAttributes, variant, }: CustomColorControlProps) => JSX.Element;
269
269
 
270
270
  /**
271
- * A custom colour: a trigger that opens a hex picker. Each drag frame and typed change is reported,
272
- * then `onCommit` once the picker closes. `null` when there is no single colour.
271
+ * A custom color: a trigger that opens a hex picker. Each drag frame and typed change is reported,
272
+ * then `onCommit` once the picker closes. `null` when there is no single color.
273
273
  */
274
274
  export declare interface CustomColorControlProps extends Omit<ContinuousControlProps<string | null>, 'onChange'> {
275
275
  onChange: (value: string) => void;
@@ -1223,7 +1223,7 @@ export declare const PolarSection: ({ title, layout, preview }: OverridableSecti
1223
1223
 
1224
1224
  /**
1225
1225
  * A grid of picture-led choices, for settings that read faster as shapes than as words — chart
1226
- * type, text size, a row of colour chips.
1226
+ * type, text size, a row of color chips.
1227
1227
  *
1228
1228
  * A click is a whole gesture and commits immediately. A held arrow key is not: it sweeps the
1229
1229
  * selection across the options, firing a change for each one it passes through, so the run is
@@ -1248,7 +1248,7 @@ export declare interface RadioGridControlProps extends ContinuousControlProps<st
1248
1248
  columns?: number;
1249
1249
  /**
1250
1250
  * `tile` (default) captions each icon; `swatch` drops the caption for a dense grid of pure
1251
- * pictures — colour chips a name would only clutter — naming each through `aria-label` instead;
1251
+ * pictures — color chips a name would only clutter — naming each through `aria-label` instead;
1252
1252
  * `icon` drops the tile too, names each in a tooltip and thickens the checked stroke for a 24-unit viewBox.
1253
1253
  */
1254
1254
  itemLayout?: 'tile' | 'swatch' | 'icon';
@@ -1277,7 +1277,7 @@ declare interface ResizeObserverState {
1277
1277
  export declare type ResolvedControlRegistry = Required<ControlRegistry>;
1278
1278
 
1279
1279
  /**
1280
- * One labelled setting, wiring its own control: the row publishes its ids and each control takes the
1280
+ * One labeled setting, wiring its own control: the row publishes its ids and each control takes the
1281
1281
  * half it can carry. The label reaches it with `htmlFor` rather than wrapping it, because a wrapping
1282
1282
  * `<label>` makes Base UI rename every option of a group inside it to the row's text.
1283
1283
  */
@@ -1446,11 +1446,11 @@ declare type SwatchShape = 'square' | 'line' | 'circle' | 'area' | 'slice' | 'in
1446
1446
  */
1447
1447
  declare interface SwatchSlotProps {
1448
1448
  shape: SwatchShape;
1449
- /** The colour a stroke swatch draws with, and what a filled one falls back to without `paint`. */
1449
+ /** The color a stroke swatch draws with, and what a filled one falls back to without `paint`. */
1450
1450
  color: string;
1451
1451
  /**
1452
1452
  * The owning geom's gradient, pattern or image `fill`. A square or slice draws it; every other shape
1453
- * draws the one colour it stands in as, as its geom does.
1453
+ * draws the one color it stands in as, as its geom does.
1454
1454
  */
1455
1455
  paint?: ResolvedPaint;
1456
1456
  surface: SwatchSurface;
@@ -1531,7 +1531,7 @@ declare interface ToggledSectionProps extends Omit<SectionProps, 'layout' | 'acc
1531
1531
  * Built on the radio primitive rather than the toggle one, which it resembles more closely by
1532
1532
  * name. Picking one of a fixed set is what a radio group is for, and the primitive is what makes
1533
1533
  * arrow keys move the selection instead of only the focus. Toggle buttons would have given the
1534
- * behaviour of a radio group while announcing itself as something else.
1534
+ * behavior of a radio group while announcing itself as something else.
1535
1535
  *
1536
1536
  * That makes this the picture grid in different clothes: same primitive, same contract, same
1537
1537
  * transient run committed on key up. Only the layout differs — a row of words here, a grid of pictures
package/dist/editable.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as jr, $t as Zr, At as te, Bt as Yr, C as Fi, Ct as zi, D as Bi, E as Hi, Et as he, F as Gi, G as $, H as Vi, I as k, J as $i, Jt as Wi, K as Ui, Mt as Ki, N as qi, O as Jr, P as Xi, Q as mn, Qt as Qr, S as ji, T as Le, Tt as Zi, U as Yi, Ut as Ji, W as Q, X as U, Xt as Qi, Y as el, Yt as ea, Z as gn, _ as Ne, _n as z, _t as tl, an as nl, b as ta, c as na, cn as rl, ct as al, d as ol, dn as ra, dt as se, en as de, et as vn, f as il, g as aa, gt as ll, h as St, hn as D, i as oa, it as ia, jt as sl, k as Ct, kt as Ze, l as cl, lt as Vn, m as dl, n as le, nn as Ge, nt as ul, o as hl, on as pl, ot as ml, p as la, pn as j, pt as xt, q as $n, qt as gl, r as K, rt as sa, st as vl, t as fl, tn as fn, tt as wt, u as bl, ut as yl, v as Sl, vt as I, wt as Cl, x as xl, xt as Re, y as wl, yn as bn, yt as Tl, z as Al, zt as kl } from "./history-chords-DOlobsvb.js";
1
+ import { $ as jr, $t as Zr, At as te, Bt as Yr, C as Fi, Ct as zi, D as Bi, E as Hi, Et as he, F as Gi, G as $, H as Vi, I as k, J as $i, Jt as Wi, K as Ui, Mt as Ki, N as qi, O as Jr, P as Xi, Q as mn, Qt as Qr, S as ji, T as Le, Tt as Zi, U as Yi, Ut as Ji, W as Q, X as U, Xt as Qi, Y as el, Yt as ea, Z as gn, _ as Ne, _n as z, _t as tl, an as nl, b as ta, c as na, cn as rl, ct as al, d as ol, dn as ra, dt as se, en as de, et as vn, f as il, g as aa, gt as ll, h as St, hn as D, i as oa, it as ia, jt as sl, k as Ct, kt as Ze, l as cl, lt as Vn, m as dl, n as le, nn as Ge, nt as ul, o as hl, on as pl, ot as ml, p as la, pn as j, pt as xt, q as $n, qt as gl, r as K, rt as sa, st as vl, t as fl, tn as fn, tt as wt, u as bl, ut as yl, v as Sl, vt as I, wt as Cl, x as xl, xt as Re, y as wl, yn as bn, yt as Tl, z as Al, zt as kl } from "./history-chords-COqPVoES.js";
2
2
  import { ARROW_DEFAULTS as Ll, ARROW_STICKER_DECLARATIONS as Pl, ARROW_STROKE_WIDTHS_PX as Bt, AddAnnotationCommand as we, AddHighlightCommand as Il, BORDER_RADIUS_TOKENS as Wn, COMBO_TYPES as Un, CONSTANT_VARIABLES as El, DASH_PRESETS as Ol, DEFAULT_BAR_CORNER_RADIUS as Ml, DEFAULT_GEOM_COLOR as Nl, DEFAULT_POINT_SIZE_PX as Rl, DEFAULT_STROKE_WIDTH_PX as Dl, DIFFERENCE_ARROW_DEFAULTS as ca, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Kn, InternalError as _l, MAX_BAR_WIDTH_FRACTION as Fl, MIN_BAR_WIDTH_FRACTION as zl, MoveAnnotationCommand as Bl, RESTING_HOVER_STATE as yn, RemoveAnnotationCommand as We, RemoveHighlightCommand as Hl, SHAPE_DEFAULTS as Gl, SequenceCommand as Vl, SetAxisLabelCommand as da, SetAxisPositionCommand as ua, SetAxisTickModeCommand as ha, SetAxisTicksVisibilityCommand as $l, SetAxisVisibilityCommand as Kt, SetBarCornerRadiusCommand as Wl, SetBarWidthCommand as Ul, SetChartTypeCommand as pa, SetContentCaptionCommand as ma, SetContentSourceCommand as Kl, SetContentSubtitleCommand as ga, SetContentTitleCommand as va, SetDataLabelsFormatCommand as fa, SetDifferenceArrowStyleCommand as ql, SetGridLineStyleCommand as Xl, SetGridLineWidthCommand as jl, SetGridVisibilityCommand as qt, SetHeadlineCompareWithCommand as Zl, SetHeadlinePositionCommand as Yl, SetHeadlineShowCommand as qn, SetHeadlineSizeCommand as Jl, SetHighlightDimStyleCommand as Ql, SetLayerYScaleTypeCommand as es, SetLegendAlignCommand as ts, SetLegendDisplayCommand as ns, SetLegendPlacementCommand as rs, SetLegendPositionCommand as Xt, SetLineCurveCommand as as, SetLineMissingValuesCommand as os, SetLineWidthCommand as Xn, SetMappingCommand as is, SetNumberFormatAbbreviationCommand as ls, SetNumberFormatDecimalsCommand as jn, SetObservationsColorCommand as ss, SetPointSizeCommand as cs, SetPolarInnerRadiusCommand as ds, SetPolarStartAngleCommand as us, SetRuleLabelCommand as hs, SetRuleValueCommand as ps, SetScaleDomainCommand as Ie, SetScaleReverseCommand as ms, SetScaleTransformCommand as ba, SetStatLineCommand as gs, SetStyleRuleCommand as Oe, TEXT_ANNOTATION_DEFAULTS as vs, TEXT_ANNOTATION_FADE_ALPHA as fs, ToggleCategoryLabelsCommand as ya, ToggleContentVisibilityCommand as Tt, ToggleDataLabelsCommand as Sa, ToggleGoalLineCommand as bs, ToggleLineFillCommand as ys, ToggleLinePointsCommand as Ss, ToggleStackTotalsCommand as Ca, UpdateAnnotationCommand as pe, alignUnitFractions as Cs, areAnchorsEqual as xa, areEditTargetsEqual as Sn, areEndpointsComparable as xs, buildEditMenuTriggerRegion as ws, buildLayerStyleAddress as Ts, buildObservationPredicate as As, buildObservationsTarget as Ye, buildObservationsTargetAtValue as wa, canAnchorDirectLabels as ks, canBecomeCombo as Ls, canBecomeHeatmap as Ps, clampAnnotationTranslation as Is, combineKindStyleDeclarations as Zn, computeArrow as Ta, createObservationAnchorBuilder as Es, createObservationAnchorParser as Os, createStyleResolver as Ms, createValueFormatter as Aa, createXValueReader as Ns, filterLayersByGeoms as jt, findAnnotation as Rs, findAverageLineLayer as Ds, findAxisGuide as _s, findCompanionLayers as ka, findGoalLineLayer as Fs, findHighlightsAtObservation as zs, findHostLayer as Bs, findLayerByGeom as La, findLayerById as fe, findObservationAttachment as Hs, findStyleRule as Ae, findTrendLineLayer as Gs, formatDifferenceLabel as Vs, getBoundingRect as Zt, getGroupVariables as $s, getXBand as Ws, getYBand as Us, hasMainAxisBand as Ks, hasMultipleGroups as qs, inferDefaultDifferenceArrowEndpoints as Xs, inferDifferenceArrowEndpoints as js, isComboChartType as Ee, isCompanionLayer as Pa, isObservationAttachmentKind as Zs, isPointWithinEditMenuTrigger as Cn, isSafeUrl as Ys, isZeroAnchoredAxis as Ia, measureObservationsBoxes as Ea, projectAnchorToPanel as ut, readBroadestObservationsScope as Js, readChartType as Oa, readComboLineLayerId as Qs, readCompanionRowsAtScopeKey as ec, readConstantValue as tc, readEditTargetKey as At, readGeomColor as nc, readHighlightDimStyle as rc, readMainAxis as ac, readMappableAesthetics as oc, readMappedVariable as ic, readObservationIndex as Ma, readObservationsColorRoute as lc, readPaletteChoices as sc, readPresentedObservationsColor as cc, readReachableLevels as dc, readRowScopeKey as uc, readRowsAtScopeKey as hc, readScopeXVariable as pc, readStyleCoord as De, readStyleRulesBeneath as mc, readVariableName as kt, resolveArrowAnnotationStyle as xn, resolveBarBandFraction as gc, resolveComparisonBasis as vc, resolveDifferenceArrowAnnotationStyle as fc, resolveEditOutlineStyle as bc, resolveObservationPoint as Na, resolveObservationsTarget as Yn, stepDifferenceArrowEndpoint as yc, toDashPreset as Yt, toPaintColor as ht, toPanelCursor as Lt } from "@graphysdk/viz-engine";
3
3
  import { Fragment as Sc, createContext as _e, memo as Ra, useCallback as re, useContext as be, useEffect as F, useId as ke, useLayoutEffect as Me, useMemo as O, useRef as ae, useState as X } from "react";
4
4
  import { Fragment as q, jsx as r, jsxs as g } from "react/jsx-runtime";
@@ -22,7 +22,7 @@ import './history-chords.css';var Vn = Object.defineProperty, Hl = (e, t) => {
22
22
  });
23
23
  return t || Vn(r, Symbol.toStringTag, { value: "Module" }), r;
24
24
  };
25
- typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1791545910919");
25
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1791559652655");
26
26
  function Fl(e) {
27
27
  for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
28
28
  }