builder-settings-types 0.0.219 → 0.0.220

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
@@ -4,6 +4,9 @@ export declare type AddItemConfig<T> = {
4
4
  keyPrefix: string;
5
5
  createItem: (index: number) => Setting<any, any> | SettingGroup<any>;
6
6
  expandNewItem?: boolean;
7
+ showDeleteButton?: boolean;
8
+ deleteButtonLabel?: string;
9
+ deleteButtonIconSvg?: string;
7
10
  };
8
11
 
9
12
  declare class AlignSetting_2 extends Setting<AlignValue, AlignSettingProps> {
@@ -627,6 +630,9 @@ export declare class SettingGroup<T extends Record<string, Setting<any, any> | S
627
630
  /** Attach change/blur bubbling for a newly added child */
628
631
  private wireChild;
629
632
  addSetting(key: string, setting: Setting<any, any> | SettingGroup<any>): void;
633
+ removeSetting(key: string): void;
634
+ private addDeleteButtonToElement;
635
+ private showDeleteConfirmation;
630
636
  private getNextIndexFromPrefix;
631
637
  calculateChanges(oldValues: Record<string, any>, newValues: Record<string, any>): Record<string, any>;
632
638
  hide(): void;
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.219",
4
+ "version": "0.0.220",
5
5
  "type": "module",
6
6
  "main": "dist/builder-settings-types.cjs.js",
7
7
  "module": "dist/builder-settings-types.es.js",