@microsoft/sp-search-extensibility 1.15.0-beta.1 → 1.15.0
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/4958ea79-6ff3-4480-8291-0932dd010869.manifest.json +2 -2
- package/dist/index-internal.d.ts +4 -71
- package/dist/{sp-search-extensibility_none_78d3312af37751eb75c1.js → sp-search-extensibility_none_fdb6f0ef1959cb9349fd.js} +0 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/lib-commonjs/index.js +7 -3
- package/lib-commonjs/tab/SearchQueryModifier.js +2 -2
- package/package.json +6 -6
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"scriptResources": {
|
|
13
13
|
"sp-search-extensibility": {
|
|
14
14
|
"type": "path",
|
|
15
|
-
"path": "sp-search-
|
|
15
|
+
"path": "sp-search-extensibility_none_fdb6f0ef1959cb9349fd.js"
|
|
16
16
|
},
|
|
17
17
|
"tslib": {
|
|
18
18
|
"type": "component",
|
|
19
19
|
"id": "01c4df03-e775-48cb-aa14-171ee5199a15",
|
|
20
|
-
"version": "
|
|
20
|
+
"version": "2.3.1"
|
|
21
21
|
},
|
|
22
22
|
"@microsoft/sp-loader": {
|
|
23
23
|
"type": "component",
|
package/dist/index-internal.d.ts
CHANGED
|
@@ -8,85 +8,18 @@ import { BaseExtension } from '@microsoft/sp-extension-base';
|
|
|
8
8
|
import { ExtensionContext } from '@microsoft/sp-extension-base';
|
|
9
9
|
import { ServiceScope } from '@microsoft/sp-core-library';
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
* This is the base class that third parties should extend when implementing
|
|
13
|
-
* a client-side extension that can modify the search query.
|
|
14
|
-
*
|
|
15
|
-
* In the component manifest, the "extensionType" should be set to "SearchQueryModifier".
|
|
16
|
-
*
|
|
17
|
-
* @beta
|
|
18
|
-
*/
|
|
19
|
-
export declare abstract class BaseSearchQueryModifier<TProperties> extends BaseExtension<TProperties> {
|
|
20
|
-
/**
|
|
21
|
-
* {@inheritDoc @microsoft/sp-component-base#BaseComponent.context}
|
|
22
|
-
*/
|
|
23
|
-
protected readonly context: SearchQueryModifierContext;
|
|
24
|
-
/**
|
|
25
|
-
* Timeout for the search query modifier in milliseconds.
|
|
26
|
-
* If the execution takes longer than the timeout, the original query will be used instead of the modified one.
|
|
27
|
-
*
|
|
28
|
-
* @virtual
|
|
29
|
-
*/
|
|
30
|
-
get timeout(): number;
|
|
31
|
-
/**
|
|
32
|
-
* Returns a modified search query.
|
|
33
|
-
*
|
|
34
|
-
* @param query - Query to modify.
|
|
35
|
-
* @param scenario - Search scenario.
|
|
36
|
-
* @returns - Modified query.
|
|
37
|
-
*
|
|
38
|
-
* @virtual
|
|
39
|
-
*/
|
|
40
|
-
modifySearchQuery(query: IQuery, scenario: SearchQueryScenario): Promise<IQuery>;
|
|
41
|
-
}
|
|
11
|
+
/* Excluded from this release type: BaseSearchQueryModifier */
|
|
42
12
|
|
|
43
13
|
/* Excluded from this release type: _IPreloadedCustomAction */
|
|
44
14
|
|
|
45
|
-
|
|
46
|
-
* Query object. Includes the query text that will be used for search and exposed through dynamic data.
|
|
47
|
-
*
|
|
48
|
-
* @remarks
|
|
49
|
-
* Additional properties can be added to the object to pass data between extensions.
|
|
50
|
-
*
|
|
51
|
-
* @beta
|
|
52
|
-
*/
|
|
53
|
-
export declare interface IQuery {
|
|
54
|
-
/**
|
|
55
|
-
* Text of the query.
|
|
56
|
-
*/
|
|
57
|
-
queryText: string;
|
|
58
|
-
/**
|
|
59
|
-
* Query text that the user provided.
|
|
60
|
-
*/
|
|
61
|
-
originalQueryText: string;
|
|
62
|
-
}
|
|
15
|
+
/* Excluded from this release type: IQuery */
|
|
63
16
|
|
|
64
17
|
/* Excluded from this release type: _ISearchQueryExtensionManager */
|
|
65
18
|
|
|
66
19
|
/* Excluded from this release type: _SearchQueryExtensionManager */
|
|
67
20
|
|
|
68
|
-
|
|
69
|
-
* Context for the search query modifier extensions.
|
|
70
|
-
*
|
|
71
|
-
* @beta
|
|
72
|
-
*/
|
|
73
|
-
export declare class SearchQueryModifierContext extends ExtensionContext {
|
|
74
|
-
}
|
|
21
|
+
/* Excluded from this release type: SearchQueryModifierContext */
|
|
75
22
|
|
|
76
|
-
|
|
77
|
-
* Scenario for the search query modifier.
|
|
78
|
-
*
|
|
79
|
-
* @beta
|
|
80
|
-
*/
|
|
81
|
-
export declare enum SearchQueryScenario {
|
|
82
|
-
/**
|
|
83
|
-
* Search results scenario.
|
|
84
|
-
*/
|
|
85
|
-
SearchResults = 1,
|
|
86
|
-
/**
|
|
87
|
-
* Search suggestions scenario.
|
|
88
|
-
*/
|
|
89
|
-
SearchSuggestions = 2
|
|
90
|
-
}
|
|
23
|
+
/* Excluded from this release type: SearchQueryScenario */
|
|
91
24
|
|
|
92
25
|
export { }
|
|
File without changes
|
package/dist/tsdoc-metadata.json
CHANGED
package/lib-commonjs/index.js
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports._SearchQueryExtensionManager = exports.SearchQueryModifierContext = exports.SearchQueryScenario = exports.BaseSearchQueryModifier = void 0;
|
|
3
7
|
/**
|
|
4
8
|
* SharePoint Framework developer support for customizing search.
|
|
5
9
|
*
|
|
6
10
|
* @packagedocumentation
|
|
7
11
|
*/
|
|
8
12
|
var BaseSearchQueryModifier_1 = require("./BaseSearchQueryModifier");
|
|
9
|
-
Object.defineProperty(exports, "BaseSearchQueryModifier", { enumerable: true, get: function () { return BaseSearchQueryModifier_1.default; } });
|
|
13
|
+
Object.defineProperty(exports, "BaseSearchQueryModifier", { enumerable: true, get: function () { return __importDefault(BaseSearchQueryModifier_1).default; } });
|
|
10
14
|
Object.defineProperty(exports, "SearchQueryScenario", { enumerable: true, get: function () { return BaseSearchQueryModifier_1.SearchQueryScenario; } });
|
|
11
15
|
var SearchQueryModifierContext_1 = require("./SearchQueryModifierContext");
|
|
12
|
-
Object.defineProperty(exports, "SearchQueryModifierContext", { enumerable: true, get: function () { return SearchQueryModifierContext_1.default; } });
|
|
16
|
+
Object.defineProperty(exports, "SearchQueryModifierContext", { enumerable: true, get: function () { return __importDefault(SearchQueryModifierContext_1).default; } });
|
|
13
17
|
var SearchQueryExtensionManager_1 = require("./SearchQueryExtensionManager");
|
|
14
|
-
Object.defineProperty(exports, "_SearchQueryExtensionManager", { enumerable: true, get: function () { return SearchQueryExtensionManager_1.default; } });
|
|
18
|
+
Object.defineProperty(exports, "_SearchQueryExtensionManager", { enumerable: true, get: function () { return __importDefault(SearchQueryExtensionManager_1).default; } });
|
|
15
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -127,11 +127,11 @@ var SearchQueryModifier = /** @class */ (function () {
|
|
|
127
127
|
}));
|
|
128
128
|
TAB.AddTask(TAB.MakeTask(function () {
|
|
129
129
|
var ddValue = _this._getDynamicDataValue(); // tslint:disable-line: no-any
|
|
130
|
-
TAB.Log.Verify(ddValue && ddValue.searchQuery === value, message
|
|
130
|
+
TAB.Log.Verify(ddValue && ddValue.searchQuery === value, "".concat(message, " - The actual value was \"").concat(JSON.stringify(ddValue), "\"."));
|
|
131
131
|
}));
|
|
132
132
|
};
|
|
133
133
|
SearchQueryModifier.prototype._getPageUrl = function (params, customActions) {
|
|
134
|
-
return SPTaskLib.PageUtil.CreatePageUrl("/SitePages/"
|
|
134
|
+
return SPTaskLib.PageUtil.CreatePageUrl("/SitePages/".concat(this._pageName, ".aspx"), { params: params, customActions: customActions });
|
|
135
135
|
};
|
|
136
136
|
/**
|
|
137
137
|
* Returns the object stored in the dynamic data value as a JSON. Returns undefined when there is no value or
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/sp-search-extensibility",
|
|
3
|
-
"version": "1.15.0
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "SharePoint Framework developer support for customizing search",
|
|
5
5
|
"license": "SEE LICENSE IN \"EULA\" FOLDER",
|
|
6
6
|
"main": "lib-commonjs/index.js",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"node": ">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0 || >=16.13.0 <17.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@microsoft/sp-core-library": "1.15.0
|
|
18
|
-
"@microsoft/sp-diagnostics": "1.15.0
|
|
19
|
-
"@microsoft/sp-extension-base": "1.15.0
|
|
20
|
-
"@microsoft/sp-loader": "1.15.0
|
|
21
|
-
"tslib": "
|
|
17
|
+
"@microsoft/sp-core-library": "1.15.0",
|
|
18
|
+
"@microsoft/sp-diagnostics": "1.15.0",
|
|
19
|
+
"@microsoft/sp-extension-base": "1.15.0",
|
|
20
|
+
"@microsoft/sp-loader": "1.15.0",
|
|
21
|
+
"tslib": "2.3.1"
|
|
22
22
|
}
|
|
23
23
|
}
|