builder-settings-types 0.0.220 → 0.0.223

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.
package/dist/index.d.ts CHANGED
@@ -186,6 +186,13 @@ export declare type DeepPartial<T> = {
186
186
  [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
187
187
  };
188
188
 
189
+ export declare type DeleteItemConfig<T> = {
190
+ keyPrefix?: string;
191
+ showDeleteButton?: boolean;
192
+ deleteButtonLabel?: string;
193
+ deleteButtonIconSvg?: string;
194
+ };
195
+
189
196
  export declare class DimensionSetting extends Setting<DimensionValue, DimensionSettingProps> {
190
197
  inputType: {
191
198
  readonly width: "number";
@@ -612,6 +619,7 @@ export declare class SettingGroup<T extends Record<string, Setting<any, any> | S
612
619
  private nestingLevel;
613
620
  private parentNestingLevel;
614
621
  private addItemCfg?;
622
+ private deleteItemCfg?;
615
623
  constructor(groupProps: SettingGroupProps<T>);
616
624
  private propagateNestingLevel;
617
625
  getNestingLevel(): number;
@@ -666,6 +674,7 @@ export declare type SettingGroupProps<T> = {
666
674
  parentNestingLevel?: number;
667
675
  includeGetJson?: boolean;
668
676
  addItem?: AddItemConfig<T>;
677
+ deleteItem?: DeleteItemConfig<T>;
669
678
  };
670
679
 
671
680
  export declare type SettingGroupWithSettings<T extends Record<string, Setting<any, any> | SettingGroup<any>>> = SettingGroup<T> & T;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "builder-settings-types",
3
3
  "description": "builder settings",
4
- "version": "0.0.220",
4
+ "version": "0.0.223",
5
5
  "type": "module",
6
6
  "main": "dist/builder-settings-types.cjs.js",
7
7
  "module": "dist/builder-settings-types.es.js",