@omnia/workplace 7.8.40-preview → 7.8.42-preview

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,6 +1,6 @@
1
1
  import { PropertyMapping, Enums } from ".";
2
2
  import { TargetingFilterProperty } from "@omnia/fx-sp-models";
3
- import { MultilingualString, GuidValue } from "@omnia/fx-models";
3
+ import { MultilingualString, GuidValue, FilterComponent } from "@omnia/fx-models";
4
4
  export interface SearchCategoryBase {
5
5
  id: GuidValue;
6
6
  providerId: GuidValue;
@@ -40,9 +40,7 @@ export interface SemanticSearchCategory extends SearchCategoryBase {
40
40
  providerSettings: SemanticSearchSettings;
41
41
  }
42
42
  export interface SemanticSearchSettings extends ProviderSettings {
43
- propertiesFilter?: {
44
- [internalName: string]: any;
45
- };
43
+ propertiesFilter?: FilterComponent[];
46
44
  includeSemanticSummaryEnabled: boolean;
47
45
  showReferencesEnabled: boolean;
48
46
  includeParagraphsEnabled: boolean;
@@ -0,0 +1,4 @@
1
+ export interface SemanticSearchFilterValue {
2
+ propertyName: string;
3
+ value: any;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  import { GuidValue, SemanticSearchPropertyDefinition, SemanticSearchReference } from "@omnia/fx-models";
2
+ import { SemanticSearchFilterValue } from "./SemanticSearchFilterValue";
2
3
  export declare abstract class SemanticSearchReferenceProvider {
3
4
  providerId: GuidValue;
4
5
  typeId: GuidValue;
@@ -6,8 +7,8 @@ export declare abstract class SemanticSearchReferenceProvider {
6
7
  ensureReferencesLoaded: (references: string[]) => Promise<void>;
7
8
  renderReference: (item: SemanticSearchReference) => JSX.Element;
8
9
  renderReferenceIcon: (item: SemanticSearchReference) => JSX.Element;
9
- getBuiltinProperties?: () => SemanticSearchPropertyDefinition[];
10
- renderPropertyFilterValueSelection?: (internalName: string) => JSX.Element;
11
- onSelectFilterValue?: (filterValue: any) => void;
12
- renderPropertyValue?: (internalName: string, propertyValue: any) => JSX.Element;
10
+ getCustomProperties?: () => SemanticSearchPropertyDefinition[];
11
+ renderPropertyFilterValueSelection?: (filterValue: SemanticSearchFilterValue) => JSX.Element;
12
+ onSelectFilterValue?: (filterValue: SemanticSearchFilterValue) => void;
13
+ renderPropertyValue?: (filterValue: SemanticSearchFilterValue) => JSX.Element;
13
14
  }
@@ -1,2 +1,3 @@
1
1
  export * from "./SemanticSearchProvider";
2
2
  export * from "./SemanticSearchApi";
3
+ export * from "./SemanticSearchFilterValue";
@@ -3,3 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./SemanticSearchProvider"), exports);
5
5
  tslib_1.__exportStar(require("./SemanticSearchApi"), exports);
6
+ tslib_1.__exportStar(require("./SemanticSearchFilterValue"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/workplace",
3
3
  "license": "MIT",
4
- "version": "7.8.40-preview",
4
+ "version": "7.8.42-preview",
5
5
  "description": "Omnia Workplace.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"