Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update all non-major dependencies (main) (patch) #6074

Merged
merged 2 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fetch-depth: 0

- name: Setup Node.js environment
uses: actions/[email protected].2
uses: actions/[email protected].3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/[email protected].2
uses: actions/[email protected].3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/[email protected].2
- uses: actions/[email protected].3
with:
node-version-file: '.nvmrc'

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/[email protected].2
- uses: actions/[email protected].3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
Expand All @@ -65,7 +65,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/[email protected].2
- uses: actions/[email protected].3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
Expand All @@ -91,7 +91,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/[email protected].2
- uses: actions/[email protected].3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
Expand All @@ -114,7 +114,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/[email protected].2
uses: actions/[email protected].3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
token: ${{ secrets.ACCESS_TOKEN }}

- name: Setup Node.js environment
uses: actions/[email protected].2
uses: actions/[email protected].3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-custom-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
fetch-depth: 0

- name: Setup Node.js environment
uses: actions/[email protected].2
uses: actions/[email protected].3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fetch-depth: 0

- name: Setup Node.js environment
uses: actions/[email protected].2
uses: actions/[email protected].3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fetch-depth: 0

- name: Setup Node.js environment
uses: actions/[email protected].2
uses: actions/[email protected].3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
fetch-depth: 0

- name: Setup Node.js environment
uses: actions/[email protected].2
uses: actions/[email protected].3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/[email protected].2
- uses: actions/[email protected].3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
},
"devDependencies": {
"@babel/cli": "^7.20.7",
"@babel/core": "7.24.7",
"@babel/preset-env": "7.24.7",
"@babel/core": "7.24.9",
"@babel/preset-env": "7.24.8",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@cypress/code-coverage": "^3.10.0",
Expand All @@ -69,7 +69,7 @@
"@vitejs/plugin-react": "^4.2.0",
"chromatic": "^11.0.0",
"cssnano": "^7.0.0",
"cypress": "13.13.0",
"cypress": "13.13.1",
"cypress-real-events": "^1.8.1",
"dedent": "^1.0.0",
"eslint": "^8.35.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/charts/src/components/BulletChart/BulletChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
* @param measure {IChartMeasure} Current measure object
* @param dataElement {object} Current data element
*/
highlightColor?: (value: number, measure: MeasureConfig, dataElement: Record<string, any>) => CSSProperties['color'];

Check warning on line 69 in packages/charts/src/components/BulletChart/BulletChart.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
}

interface DimensionConfig extends IChartDimension {
Expand Down Expand Up @@ -146,7 +146,7 @@
...rest
} = props;

const [componentRef, chartRef] = useSyncRef<any>(ref);

Check warning on line 149 in packages/charts/src/components/BulletChart/BulletChart.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

const chartConfig: BulletChartProps['chartConfig'] = {
yAxisVisible: false,
Expand Down Expand Up @@ -218,14 +218,14 @@
? payload[key] === payload.value[1] - payload.value[0]
: payload[key] === payload.value && key !== 'value'
)[0]
: payload.dataKey ??
Object.keys(payload).find((key) => payload[key] === payload.value && key !== 'value'),
: (payload.dataKey ??
Object.keys(payload).find((key) => payload[key] === payload.value && key !== 'value')),
payload: payload.payload
})
);
} else {
onDataPointClick(
enrichEventWithDetails({} as any, {

Check warning on line 228 in packages/charts/src/components/BulletChart/BulletChart.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
value: eventOrIndex.value,
dataKey: eventOrIndex.dataKey,
dataIndex: eventOrIndex.index,
Expand Down Expand Up @@ -301,7 +301,7 @@
{chartConfig.xAxisVisible &&
dimensions.map((dimension, index) => {
let AxisComponent;
const axisProps: any = {

Check warning on line 304 in packages/charts/src/components/BulletChart/BulletChart.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
dataKey: dimension.accessor,
interval: dimension?.interval ?? (isBigDataSet ? 'preserveStart' : 0),
tickLine: index < 1,
Expand Down Expand Up @@ -413,8 +413,8 @@
stroke={referenceLine?.color ?? referenceLine?.stroke}
y={referenceLine?.value ? (layout === 'horizontal' ? referenceLine?.value : undefined) : referenceLine?.y}
x={referenceLine?.value ? (layout === 'vertical' ? referenceLine?.value : undefined) : referenceLine?.x}
yAxisId={referenceLine?.yAxisId ?? layout === 'horizontal' ? 'primary' : undefined}
xAxisId={referenceLine?.xAxisId ?? layout === 'vertical' ? 'primary' : undefined}
yAxisId={(referenceLine?.yAxisId ?? layout === 'horizontal') ? 'primary' : undefined}
xAxisId={(referenceLine?.xAxisId ?? layout === 'vertical') ? 'primary' : undefined}
label={referenceLine?.label}
/>
)}
Expand All @@ -439,7 +439,7 @@
/>
)}
{sortedMeasures?.map((element, index) => {
const chartElementProps: any = {

Check warning on line 442 in packages/charts/src/components/BulletChart/BulletChart.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
isAnimationActive: !noAnimation
};
let labelPosition = 'top';
Expand Down
8 changes: 4 additions & 4 deletions packages/charts/src/components/ComposedChart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ const ComposedChart = forwardRef<HTMLDivElement, ComposedChartProps>((props, ref
? payload[key] === payload.value[1] - payload.value[0]
: payload[key] === payload.value && key !== 'value'
)[0]
: payload.dataKey ??
Object.keys(payload).find((key) => payload[key] && payload[key] === payload.value && key !== 'value'),
: (payload.dataKey ??
Object.keys(payload).find((key) => payload[key] && payload[key] === payload.value && key !== 'value')),
payload: payload.payload
})
);
Expand Down Expand Up @@ -419,8 +419,8 @@ const ComposedChart = forwardRef<HTMLDivElement, ComposedChartProps>((props, ref
stroke={referenceLine?.color ?? referenceLine?.stroke}
y={referenceLine?.value ? (layout === 'horizontal' ? referenceLine?.value : undefined) : referenceLine?.y}
x={referenceLine?.value ? (layout === 'vertical' ? referenceLine?.value : undefined) : referenceLine?.x}
yAxisId={referenceLine?.yAxisId ?? layout === 'horizontal' ? 'primary' : undefined}
xAxisId={referenceLine?.xAxisId ?? layout === 'vertical' ? 'primary' : undefined}
yAxisId={(referenceLine?.yAxisId ?? layout === 'horizontal') ? 'primary' : undefined}
xAxisId={(referenceLine?.xAxisId ?? layout === 'vertical') ? 'primary' : undefined}
label={referenceLine?.label}
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/src/hooks/useChartMargin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const useChartMargin = (margin, hasZoomingTool) =>
useMemo(() => {
return {
right: margin?.right ?? 30,
top: margin?.top ?? hasZoomingTool ? 40 : 20,
top: (margin?.top ?? hasZoomingTool) ? 40 : 20,
bottom: margin?.bottom ?? 20,
left: margin?.left ?? 10
};
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/src/internal/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const truncateLongLabel = (value: string, length = 13) => {

export const resolvePrimaryAndSecondaryMeasures = (measures: IChartMeasure[], secondaryAxisDataKey: string) => {
const secondaryMeasure = measures.find((measure) => measure.accessor === secondaryAxisDataKey);
const primaryMeasure = measures[0] === secondaryMeasure ? measures[1] ?? measures[0] : measures[0];
const primaryMeasure = measures[0] === secondaryMeasure ? (measures[1] ?? measures[0]) : measures[0];

return {
primaryMeasure,
Expand Down
Loading
Loading