import type { RemoteFeatureDefinition } from '@creatio-devkit/common';

import { RATING_PANEL_TYPE } from './design-feature.ids';

/**
 * Root definition for the design-time feature.
 *
 * Describes the elements this remote package contributes to the designer, such as property panels,
 * and provides the activation entry point for the feature.
 */
export const designFeatureDefinition = {
  id: 'sdk_custom_component_ai-design',
  discovery: {
    viewElements: [{ type: RATING_PANEL_TYPE }],
  },
  activate: () =>
    import('./design.feature-activation').then((m) => m.activateDesignFeature()),
} satisfies RemoteFeatureDefinition;
