Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add EUI testing package for resolving color calculations
Browse files Browse the repository at this point in the history
mgadewoll committed Aug 30, 2024
1 parent db96596 commit 22ea34b
Showing 4 changed files with 14 additions and 6 deletions.
Binary file added elastic_eui_95.9.0_VR_option_3_01.tgz
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -115,7 +115,7 @@
"@elastic/ecs": "^8.11.1",
"@elastic/elasticsearch": "^8.15.0",
"@elastic/ems-client": "8.5.3",
"@elastic/eui": "95.9.0",
"@elastic/eui": "./elastic_eui_95.9.0_VR_option3_01.tgz",
"@elastic/filesaver": "1.1.2",
"@elastic/node-crypto": "1.2.1",
"@elastic/numeral": "^2.5.1",
@@ -1816,4 +1816,4 @@
"zod-to-json-schema": "^3.23.0"
},
"packageManager": "yarn@1.22.21"
}
}
11 changes: 10 additions & 1 deletion packages/react/kibana_context/root/root_provider.tsx
Original file line number Diff line number Diff line change
@@ -47,14 +47,23 @@ export const KibanaRootContextProvider: FC<PropsWithChildren<KibanaRootContextPr
}) => {
const hasEuiProvider = useIsNestedEuiProvider();

const overrides = JSON.parse(localStorage.getItem('kbn-theme-overrides') || '{}');
const enhancedProps = {
...props,
modify: {
...props.modify,
...overrides,
},
};

if (hasEuiProvider) {
emitEuiProviderWarning(
'KibanaRootContextProvider has likely been nested in this React tree, either by direct reference or by KibanaRenderContextProvider. The result of this nesting is a nesting of EuiProvider, which has negative effects. Check your React tree for nested Kibana context providers.'
);
return <i18n.Context>{children}</i18n.Context>;
} else {
return (
<KibanaEuiProvider {...props}>
<KibanaEuiProvider {...enhancedProps}>
<i18n.Context>{children}</i18n.Context>
</KibanaEuiProvider>
);
5 changes: 2 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -1741,10 +1741,9 @@
resolved "https://registry.yarnpkg.com/@elastic/eslint-plugin-eui/-/eslint-plugin-eui-0.0.2.tgz#56b9ef03984a05cc213772ae3713ea8ef47b0314"
integrity sha512-IoxURM5zraoQ7C8f+mJb9HYSENiZGgRVcG4tLQxE61yHNNRDXtGDWTZh8N1KIHcsqN1CEPETjuzBXkJYF/fDiQ==

"@elastic/eui@95.9.0":
"@elastic/eui@file:../eui/packages/eui/elastic_eui_95.9.0_VR_option3_01.tgz":
version "95.9.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-95.9.0.tgz#23fbafd7613fb6b41b4925ec4977a0c1e075b455"
integrity sha512-Ppna5bGjamttqHdwhYYrdXOprF3OpEY0schX7mOVJmtpcBtp7wAMYQq/bBELBVb7idO4NytbzI1Q6R6NYs5Tdg==
resolved "file:../eui/packages/eui/elastic_eui_95.9.0_VR_option3_01.tgz#bda04851eb637c13955a44e6877c38ad6c01db72"
dependencies:
"@hello-pangea/dnd" "^16.6.0"
"@types/lodash" "^4.14.202"

0 comments on commit 22ea34b

Please sign in to comment.