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/builder-settings-types.cjs.js +101 -29
- package/dist/builder-settings-types.es.js +480 -316
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
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