@claspo/common 7.0.5 → 7.0.7

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.
@@ -1,4 +1,4 @@
1
- import { ClComponentType } from '../document/Document.interface';
1
+ import { ClBaseComponentI, ClComponentType } from '../document/Document.interface';
2
2
  export interface PropertyPaneManifestI {
3
3
  content: BasePropertyPaneManifestModelI[];
4
4
  general?: BasePropertyPaneManifestModelI[];
@@ -25,6 +25,7 @@ export interface BasePropertyPaneManifestModelI {
25
25
  children?: BasePropertyPaneManifestModelI[];
26
26
  valueTransformers?: ValueTransformerConfig[];
27
27
  mode?: string;
28
+ displayForFocusedElement?: string[];
28
29
  }
29
30
  export interface DisableControlIfPropPathMatchValueParamsI {
30
31
  propPath: string[];
@@ -288,10 +289,14 @@ export interface SelectPropertyPaneManifestModelI extends BasePropertyPaneManife
288
289
  }
289
290
  export interface SelectPropertyPaneManifestParamsI {
290
291
  label: string;
291
- options: SelectOptionI[];
292
+ options?: SelectOptionI[];
293
+ getOptions?: GetSelectOptionsCallbackI;
292
294
  overlayWidth?: number;
293
295
  defaultValue?: any;
294
296
  }
297
+ export type GetSelectOptionsCallbackI = (payload: {
298
+ componentModel: ClBaseComponentI;
299
+ }) => SelectOptionI[];
295
300
  export interface TextStylesPropertyPaneManifestModelI extends BasePropertyPaneManifestModelI {
296
301
  params: TextStylesPropertyPaneManifestParamsI[];
297
302
  }
@@ -398,6 +403,7 @@ export interface IconSelectPaneManifestParamsI {
398
403
  label?: string;
399
404
  excludeImageTypes?: string[];
400
405
  enableCustomIcons?: boolean;
406
+ colorPickerEnabled?: boolean;
401
407
  storageType?: string;
402
408
  }
403
409
  export interface IconSelectOptionForPropertyPaneManifestI {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claspo/common",
3
- "version": "7.0.5",
3
+ "version": "7.0.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "engines": {