adobe / aem-spa-page-model-manager

Interface between Adobe Experience Manager and Single Page Application framework.
Apache License 2.0
33 stars 24 forks source link

[feature] expose ModelManagerConfiguration #93

Open Giwayume opened 1 year ago

Giwayume commented 1 year ago

Is your feature request related to a problem? Please describe. Export ModelManagerConfiguration interface from ModelClient.ts to root import so end user may use it.

Describe the solution you'd like Can't do this without hax:

import { ModelManagerConfiguration } from '@adobe/aem-spa-page-model-manager';
const config: ModelManagerConfiguration = {};
config.modelClient = whatever;
ModelManager.initialize(config);

Describe alternatives you've considered I can workaround by using import { ModelManagerConfiguration } from '@adobe/aem-spa-page-model-manager/dist/ModelManager';, but importing anything directly from a dist folder is usually risky behavior as it is more prone to implementation change without notice or documentation.