diff --git a/public/config.ts b/common/config.ts similarity index 100% rename from public/config.ts rename to common/config.ts diff --git a/public/application.tsx b/public/application.tsx index b2b32e89..024af68b 100644 --- a/public/application.tsx +++ b/public/application.tsx @@ -9,7 +9,7 @@ import { AppMountParameters } from '../../../src/core/public'; import { MapServices } from './types'; import { MapsDashboardsApp } from './components/app'; import { OpenSearchDashboardsContextProvider } from '../../../src/plugins/opensearch_dashboards_react/public'; -import { ConfigSchema } from './config'; +import { ConfigSchema } from '../common/config'; export const renderApp = ( { element }: AppMountParameters, diff --git a/public/components/add_layer_panel/add_layer_panel.tsx b/public/components/add_layer_panel/add_layer_panel.tsx index 8b0c4f03..75dc7b84 100644 --- a/public/components/add_layer_panel/add_layer_panel.tsx +++ b/public/components/add_layer_panel/add_layer_panel.tsx @@ -28,7 +28,7 @@ import { NEW_MAP_LAYER_DEFAULT_PREFIX, } from '../../../common'; import { getLayerConfigMap } from '../../utils/getIntialConfig'; -import { ConfigSchema } from '../../config'; +import { ConfigSchema } from '../../../common/config'; interface Props { setIsLayerConfigVisible: Function; diff --git a/public/components/app.tsx b/public/components/app.tsx index 4f301eba..79e07c1c 100644 --- a/public/components/app.tsx +++ b/public/components/app.tsx @@ -11,7 +11,7 @@ import { MapPage } from './map_page'; import { APP_PATH } from '../../common'; import { useOpenSearchDashboards } from '../../../../src/plugins/opensearch_dashboards_react/public'; import { MapServices } from '../types'; -import { ConfigSchema } from '../config'; +import { ConfigSchema } from '../../common/config'; interface Props { mapConfig: ConfigSchema; diff --git a/public/components/layer_control_panel/layer_control_panel.tsx b/public/components/layer_control_panel/layer_control_panel.tsx index 3f5ac934..dd191989 100644 --- a/public/components/layer_control_panel/layer_control_panel.tsx +++ b/public/components/layer_control_panel/layer_control_panel.tsx @@ -47,7 +47,7 @@ import { handleReferenceLayerRender, } from '../../model/layerRenderController'; import { MapState } from '../../model/mapState'; -import { ConfigSchema } from '../../config'; +import { ConfigSchema } from '../../../common/config'; interface MaplibreRef { current: Maplibre | null; diff --git a/public/components/map_container/map_container.tsx b/public/components/map_container/map_container.tsx index aa88e751..3f215365 100644 --- a/public/components/map_container/map_container.tsx +++ b/public/components/map_container/map_container.tsx @@ -17,7 +17,7 @@ import { createPopup, getPopupLngLat, isTooltipEnabledLayer } from '../tooltip/c import { handleDataLayerRender } from '../../model/layerRenderController'; import { useOpenSearchDashboards } from '../../../../../src/plugins/opensearch_dashboards_react/public'; import { MapServices } from '../../types'; -import { ConfigSchema } from '../../config'; +import { ConfigSchema } from '../../../common/config'; interface MapContainerProps { setLayers: (layers: MapLayerSpecification[]) => void; diff --git a/public/components/map_page/map_page.tsx b/public/components/map_page/map_page.tsx index 668865af..26beef27 100644 --- a/public/components/map_page/map_page.tsx +++ b/public/components/map_page/map_page.tsx @@ -20,7 +20,7 @@ import { import { getLayerConfigMap, getInitialMapState } from '../../utils/getIntialConfig'; import { IndexPattern } from '../../../../../src/plugins/data/public'; import { MapState } from '../../model/mapState'; -import { ConfigSchema } from '../../config'; +import { ConfigSchema } from '../../../common/config'; interface Props { mapConfig: ConfigSchema; diff --git a/public/index.ts b/public/index.ts index d2c5cbed..28b01b0e 100644 --- a/public/index.ts +++ b/public/index.ts @@ -7,7 +7,7 @@ import './index.scss'; import { PluginInitializerContext } from '../../../src/core/server'; import { CustomImportMapPlugin } from './plugin'; -import { ConfigSchema } from './config'; +import { ConfigSchema } from '../common/config'; // This exports static code and TypeScript types, // as well as, OpenSearch Dashboards Platform `plugin()` initializer. diff --git a/public/plugin.tsx b/public/plugin.tsx index 1b47aa87..6b4f8526 100644 --- a/public/plugin.tsx +++ b/public/plugin.tsx @@ -23,7 +23,7 @@ import { PLUGIN_NAVIGATION_BAR_ID, PLUGIN_NAVIGATION_BAR_TILE, } from '../common/constants/shared'; -import { ConfigSchema } from './config'; +import { ConfigSchema } from '../common/config'; import { AppPluginSetupDependencies } from './types'; import { RegionMapVisualizationDependencies } from '../../../src/plugins/region_map/public'; diff --git a/public/utils/getIntialConfig.ts b/public/utils/getIntialConfig.ts index 92085289..f9c4b97a 100644 --- a/public/utils/getIntialConfig.ts +++ b/public/utils/getIntialConfig.ts @@ -20,7 +20,7 @@ import { CUSTOM_MAP, } from '../../common'; import { MapState } from '../model/mapState'; -import { ConfigSchema } from '../config'; +import { ConfigSchema } from '../../common/config'; export const getLayerConfigMap = (mapConfig: ConfigSchema) => ({ [OPENSEARCH_MAP_LAYER.type]: { diff --git a/server/index.ts b/server/index.ts index af17a99b..5bfb4ad1 100644 --- a/server/index.ts +++ b/server/index.ts @@ -5,7 +5,7 @@ import { PluginConfigDescriptor, PluginInitializerContext } from '../../../src/core/server'; import { CustomImportMapPlugin } from './plugin'; -import { ConfigSchema, configSchema } from '../public/config'; +import { ConfigSchema, configSchema } from '../common/config'; // This exports static code and TypeScript types, // as well as, OpenSearch Dashboards Platform `plugin()` initializer.