[Canvas] Fix image upload component not loading for image elements (#154385)

## Summary

Fixes a regression where the image upload component does not load for
Canvas image elements.

Starting with PR #145633 modules in
`@kbn/presentation-util-plugin/common` are no longer exported from the
`@kbn/presentation-util-plugin/public` module. The imports in the
`ImageUpload` module should have also been updated to the
`@kbn/presentation-util-plugin/common` module.

Fixes #154356
This commit is contained in:
Nick Peihl 2023-04-04 16:38:58 -04:00 committed by GitHub
parent 3b951e16cb
commit 8724518804
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -39,7 +39,9 @@ export {
getElasticLogo,
getElasticOutline,
isValidUrl,
isValidHttpUrl,
resolveWithMissingImage,
resolveFromArgs,
encode,
parseDataUrl,
} from './lib';

View file

@ -14,7 +14,7 @@ import {
getElasticOutline,
isValidHttpUrl,
resolveFromArgs,
} from '@kbn/presentation-util-plugin/public';
} from '@kbn/presentation-util-plugin/common';
import { AssetPicker } from '../../../../public/components/asset_picker';
import { templateFromReactComponent } from '../../../../public/lib/template_from_react_component';
import { VALID_IMAGE_TYPES } from '../../../../common/lib/constants';