@case-framework/survey-ui 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,11 +44,13 @@ export interface CreateItemContext {
44
44
  addItem: (target: Target, item: SurveyItemCore, content?: SurveyItemTranslations) => void;
45
45
  };
46
46
  targetParentId: string;
47
+ defaultItemKey: string;
47
48
  constructor: ItemCoreConstructor;
48
49
  }
49
50
  export interface EditorItemDefinition {
50
51
  itemType: string;
51
52
  infos: ItemInfos;
53
+ defaultItemKeyPrefix?: string;
52
54
  editorComponent?: React.ComponentType<ItemEditorComponentProps>;
53
55
  renderComponent?: React.ComponentType<ItemRendererComponentProps>;
54
56
  previewComponent?: React.ComponentType<ItemPreviewComponentProps>;
@@ -91,6 +93,8 @@ export interface ItemRegistryEntry {
91
93
  previewComponent?: React.ComponentType<ItemPreviewComponentProps>;
92
94
  /** Editor-only: display metadata */
93
95
  infos?: ItemInfos;
96
+ /** Editor-only: default prefix for auto-generated data names in a parent group. */
97
+ defaultItemKeyPrefix?: string;
94
98
  /** Editor-only: card/editor UI */
95
99
  editorComponent?: React.ComponentType<ItemEditorComponentProps>;
96
100
  /** Shared: higher-level expression templates available for this item type. */