@automattic/charts 1.4.1 → 1.4.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.
- package/CHANGELOG.md +6 -0
- package/dist/index.cjs +22 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -19
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.4.2] - 2026-05-21
|
|
9
|
+
### Changed
|
|
10
|
+
- Update package dependencies. [#48405]
|
|
11
|
+
- Update package dependencies. [#49012]
|
|
12
|
+
|
|
8
13
|
## [1.4.1] - 2026-05-19
|
|
9
14
|
### Changed
|
|
10
15
|
- Keep stacked area chart paths mounted on legend toggle so only the hidden series animates down and the y-axis stays fixed. [#48804]
|
|
@@ -833,6 +838,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
833
838
|
- Fixed lints following ESLint rule changes for TS [#40584]
|
|
834
839
|
- Fixing a bug in Chart storybook data. [#40640]
|
|
835
840
|
|
|
841
|
+
[1.4.2]: https://github.com/Automattic/charts/compare/v1.4.1...v1.4.2
|
|
836
842
|
[1.4.1]: https://github.com/Automattic/charts/compare/v1.4.0...v1.4.1
|
|
837
843
|
[1.4.0]: https://github.com/Automattic/charts/compare/v1.3.1...v1.4.0
|
|
838
844
|
[1.3.1]: https://github.com/Automattic/charts/compare/v1.3.0...v1.3.1
|
package/dist/index.cjs
CHANGED
|
@@ -1533,7 +1533,7 @@ var _group = require('@visx/group');
|
|
|
1533
1533
|
var _legend = require('@visx/legend');
|
|
1534
1534
|
|
|
1535
1535
|
|
|
1536
|
-
// ../../../node_modules/.pnpm/@wordpress+element@6.
|
|
1536
|
+
// ../../../node_modules/.pnpm/@wordpress+element@6.46.0/node_modules/@wordpress/element/build-module/react.mjs
|
|
1537
1537
|
|
|
1538
1538
|
|
|
1539
1539
|
|
|
@@ -5868,7 +5868,7 @@ var GeoChartWithProvider = (props) => {
|
|
|
5868
5868
|
GeoChartWithProvider.displayName = "GeoChart";
|
|
5869
5869
|
var GeoChartResponsive = withResponsive(GeoChartWithProvider);
|
|
5870
5870
|
|
|
5871
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
5871
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/hooks/use-update-effect.mjs
|
|
5872
5872
|
function useUpdateEffect(effect, deps) {
|
|
5873
5873
|
const mountedRef = _react.useRef.call(void 0, false);
|
|
5874
5874
|
_react.useEffect.call(void 0, () => {
|
|
@@ -7322,7 +7322,7 @@ var css2 = _createEmotion.css;
|
|
|
7322
7322
|
var sheet = _createEmotion.sheet;
|
|
7323
7323
|
var cache = _createEmotion.cache;
|
|
7324
7324
|
|
|
7325
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
7325
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/hooks/use-cx.mjs
|
|
7326
7326
|
var isSerializedStyles = (o) => typeof o !== "undefined" && o !== null && ["name", "styles"].every((p) => typeof o[p] !== "undefined");
|
|
7327
7327
|
var useCx = () => {
|
|
7328
7328
|
const cache2 = __unsafe_useEmotionCache();
|
|
@@ -7409,7 +7409,7 @@ function memize(fn, options) {
|
|
|
7409
7409
|
return memoized;
|
|
7410
7410
|
}
|
|
7411
7411
|
|
|
7412
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
7412
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/colors-values.mjs
|
|
7413
7413
|
var white = "#fff";
|
|
7414
7414
|
var GRAY = {
|
|
7415
7415
|
900: "#1e1e1e",
|
|
@@ -7490,7 +7490,7 @@ var COLORS = Object.freeze({
|
|
|
7490
7490
|
ui: UI
|
|
7491
7491
|
});
|
|
7492
7492
|
|
|
7493
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
7493
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/config-values.mjs
|
|
7494
7494
|
var CONTROL_HEIGHT = "36px";
|
|
7495
7495
|
var CONTROL_PROPS = {
|
|
7496
7496
|
// These values should be shared with TextControl.
|
|
@@ -7550,6 +7550,9 @@ var config_values_default = Object.assign({}, CONTROL_PROPS, {
|
|
|
7550
7550
|
surfaceBorderSubtleColor: "rgba(0, 0, 0, 0.05)",
|
|
7551
7551
|
surfaceBackgroundTertiaryColor: COLORS.white,
|
|
7552
7552
|
surfaceColor: COLORS.white,
|
|
7553
|
+
// Modal exit animation: `use-modal-exit-animation` parses this for the
|
|
7554
|
+
// `animationend` timeout race; keep the numeric duration equal to
|
|
7555
|
+
// `--wpds-motion-duration-md` on `.components-modal__frame` in modal/style.scss.
|
|
7553
7556
|
transitionDuration: "200ms",
|
|
7554
7557
|
transitionDurationFast: "160ms",
|
|
7555
7558
|
transitionDurationFaster: "120ms",
|
|
@@ -7558,14 +7561,14 @@ var config_values_default = Object.assign({}, CONTROL_PROPS, {
|
|
|
7558
7561
|
transitionTimingFunctionControl: "cubic-bezier(0.12, 0.8, 0.32, 1)"
|
|
7559
7562
|
});
|
|
7560
7563
|
|
|
7561
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
7564
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/context-system-provider.mjs
|
|
7562
7565
|
var import_es6 = _chunkDZUJEN5Ncjs.__toESM.call(void 0, require_es6(), 1);
|
|
7563
7566
|
|
|
7564
7567
|
|
|
7565
|
-
// ../../../node_modules/.pnpm/@wordpress+warning@3.
|
|
7568
|
+
// ../../../node_modules/.pnpm/@wordpress+warning@3.46.0/node_modules/@wordpress/warning/build-module/utils.mjs
|
|
7566
7569
|
var logged = /* @__PURE__ */ new Set();
|
|
7567
7570
|
|
|
7568
|
-
// ../../../node_modules/.pnpm/@wordpress+warning@3.
|
|
7571
|
+
// ../../../node_modules/.pnpm/@wordpress+warning@3.46.0/node_modules/@wordpress/warning/build-module/index.mjs
|
|
7569
7572
|
function isDev() {
|
|
7570
7573
|
return globalThis.SCRIPT_DEBUG === true;
|
|
7571
7574
|
}
|
|
@@ -7584,7 +7587,7 @@ function warning(message) {
|
|
|
7584
7587
|
logged.add(message);
|
|
7585
7588
|
}
|
|
7586
7589
|
|
|
7587
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
7590
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/context-system-provider.mjs
|
|
7588
7591
|
|
|
7589
7592
|
var ComponentsContext = _react.createContext.call(void 0,
|
|
7590
7593
|
/** @type {Record<string, any>} */
|
|
@@ -7627,19 +7630,19 @@ var BaseContextSystemProvider = ({
|
|
|
7627
7630
|
};
|
|
7628
7631
|
var ContextSystemProvider = _react.memo.call(void 0, BaseContextSystemProvider);
|
|
7629
7632
|
|
|
7630
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
7633
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/constants.mjs
|
|
7631
7634
|
var COMPONENT_NAMESPACE = "data-wp-component";
|
|
7632
7635
|
var CONNECTED_NAMESPACE = "data-wp-c16t";
|
|
7633
7636
|
var CONNECT_STATIC_NAMESPACE = "__contextSystemKey__";
|
|
7634
7637
|
|
|
7635
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
7638
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/get-styled-class-name-from-key.mjs
|
|
7636
7639
|
function getStyledClassName(namespace) {
|
|
7637
7640
|
const kebab = paramCase(namespace);
|
|
7638
7641
|
return `components-${kebab}`;
|
|
7639
7642
|
}
|
|
7640
7643
|
var getStyledClassNameFromKey = memize(getStyledClassName);
|
|
7641
7644
|
|
|
7642
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
7645
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/context-connect.mjs
|
|
7643
7646
|
function contextConnect(Component2, namespace) {
|
|
7644
7647
|
return _contextConnect(Component2, namespace, {
|
|
7645
7648
|
forwardsRef: true
|
|
@@ -7664,7 +7667,7 @@ function _contextConnect(Component2, namespace, options) {
|
|
|
7664
7667
|
});
|
|
7665
7668
|
}
|
|
7666
7669
|
|
|
7667
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
7670
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/utils.mjs
|
|
7668
7671
|
function getNamespace(componentName) {
|
|
7669
7672
|
return {
|
|
7670
7673
|
[COMPONENT_NAMESPACE]: componentName
|
|
@@ -7676,7 +7679,7 @@ function getConnectedNamespace() {
|
|
|
7676
7679
|
};
|
|
7677
7680
|
}
|
|
7678
7681
|
|
|
7679
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
7682
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/use-context-system.mjs
|
|
7680
7683
|
function useContextSystem(props, namespace) {
|
|
7681
7684
|
const contextSystemProps = useComponentsContext();
|
|
7682
7685
|
if (typeof namespace === "undefined") {
|
|
@@ -7860,7 +7863,7 @@ var createStyled = function createStyled2(tag, options) {
|
|
|
7860
7863
|
};
|
|
7861
7864
|
};
|
|
7862
7865
|
|
|
7863
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
7866
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/view/component.mjs
|
|
7864
7867
|
|
|
7865
7868
|
var PolymorphicDiv = /* @__PURE__ */ createStyled("div", process.env.NODE_ENV === "production" ? {
|
|
7866
7869
|
target: "e19lxcc00"
|
|
@@ -7883,7 +7886,7 @@ var View = Object.assign(_react.forwardRef.call(void 0, UnforwardedView), {
|
|
|
7883
7886
|
});
|
|
7884
7887
|
var component_default = View;
|
|
7885
7888
|
|
|
7886
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
7889
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/use-responsive-value.mjs
|
|
7887
7890
|
var breakpoints = ["40em", "52em", "64em"];
|
|
7888
7891
|
var useBreakpointIndex = (options = {}) => {
|
|
7889
7892
|
const {
|
|
@@ -7926,7 +7929,7 @@ function useResponsiveValue(values, options = {}) {
|
|
|
7926
7929
|
return array[index >= array.length ? array.length - 1 : index];
|
|
7927
7930
|
}
|
|
7928
7931
|
|
|
7929
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
7932
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/utils.mjs
|
|
7930
7933
|
var ALIGNMENTS = {
|
|
7931
7934
|
bottom: {
|
|
7932
7935
|
alignItems: "flex-end",
|
|
@@ -7977,7 +7980,7 @@ function getAlignmentProps(alignment) {
|
|
|
7977
7980
|
return alignmentProps;
|
|
7978
7981
|
}
|
|
7979
7982
|
|
|
7980
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
7983
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/hook.mjs
|
|
7981
7984
|
function useGrid(props) {
|
|
7982
7985
|
const {
|
|
7983
7986
|
align,
|
|
@@ -8023,7 +8026,7 @@ function useGrid(props) {
|
|
|
8023
8026
|
};
|
|
8024
8027
|
}
|
|
8025
8028
|
|
|
8026
|
-
// ../../../node_modules/.pnpm/@wordpress+components@
|
|
8029
|
+
// ../../../node_modules/.pnpm/@wordpress+components@33.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/component.mjs
|
|
8027
8030
|
|
|
8028
8031
|
function UnconnectedGrid(props, forwardedRef) {
|
|
8029
8032
|
const gridProps = useGrid(props);
|