@microsoft/sp-search-extensibility 1.19.0 → 1.20.0-beta.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.
@@ -3,7 +3,7 @@
3
3
  "id": "4958ea79-6ff3-4480-8291-0932dd010869",
4
4
  "alias": "SPSearchExtensibility",
5
5
  "componentType": "Library",
6
- "version": "1.19.0",
6
+ "version": "1.20.0",
7
7
  "loaderConfig": {
8
8
  "internalModuleBaseUrls": [
9
9
  "https://localhost:4321/dist/"
@@ -13,8 +13,8 @@
13
13
  "sp-search-extensibility": {
14
14
  "type": "path",
15
15
  "path": {
16
- "path": "sp-search-extensibility_none_1ec75a01c0e321d54858.js",
17
- "integrity": "sha256-UdvPgI8tAwSXGMdZdh4ssq07x8gdnwFTY+uiE83CP5M="
16
+ "path": "sp-search-extensibility_none_e39efa8282d42ec3c93c.js",
17
+ "integrity": "sha256-DZNYq2dtOfNADa/uTpQhGJUK4jM8WJ52vto+ecOSDO4="
18
18
  }
19
19
  },
20
20
  "tslib": {
@@ -25,22 +25,22 @@
25
25
  "@microsoft/sp-extension-base": {
26
26
  "type": "component",
27
27
  "id": "0773bd53-a69e-4293-87e6-ba80ea4d614b",
28
- "version": "1.19.0"
28
+ "version": "1.20.0"
29
29
  },
30
30
  "@microsoft/sp-core-library": {
31
31
  "type": "component",
32
32
  "id": "7263c7d0-1d6a-45ec-8d85-d4d1d234171b",
33
- "version": "1.19.0"
33
+ "version": "1.20.0"
34
34
  },
35
35
  "@microsoft/sp-diagnostics": {
36
36
  "type": "component",
37
37
  "id": "78359e4b-07c2-43c6-8d0b-d060b4d577e8",
38
- "version": "1.19.0"
38
+ "version": "1.20.0"
39
39
  },
40
40
  "@microsoft/sp-loader": {
41
41
  "type": "component",
42
42
  "id": "1c6c9123-7aac-41f3-a376-3caea41ed83f",
43
- "version": "1.19.0"
43
+ "version": "1.20.0"
44
44
  }
45
45
  }
46
46
  }
@@ -1 +1 @@
1
- define("4958ea79-6ff3-4480-8291-0932dd010869_1.19.0",["tslib","@microsoft/sp-extension-base","@microsoft/sp-core-library","@microsoft/sp-diagnostics","@microsoft/sp-loader"],(e,t,n,a,i)=>(()=>{"use strict";var r={878:e=>{e.exports=n},377:e=>{e.exports=a},279:e=>{e.exports=t},37:e=>{e.exports=i},553:t=>{t.exports=e}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{s.r(c),s.d(c,{BaseSearchQueryModifier:()=>a,SearchQueryModifierContext:()=>i,SearchQueryScenario:()=>e,_SearchQueryExtensionManager:()=>l});var e,t=s(553),n=s(279);!function(e){e[e.SearchResults=1]="SearchResults",e[e.SearchSuggestions=2]="SearchSuggestions"}(e||(e={}));const a=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),Object.defineProperty(n.prototype,"timeout",{get:function(){return 1e4},enumerable:!1,configurable:!0}),n.prototype.modifySearchQuery=function(e,t){return Promise.resolve(e)},n}(n.BaseExtension),i=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),n}(n.ExtensionContext);var r=s(878),o=s(377),d=s(37);const l=function(){function s(e){this._extensionManager=new n._ExtensionManager(e,a),this._extensions=[]}return s.prototype.initializeExtensions=function(e){var t=this,n=new o._QosMonitor("SearchQueryExtensionManager.initializeExtensions"),a=this._getCustomActions(e).filter(function(e){return"ClientSideExtension.SearchQueryModifier"===e.location&&!!d.SPComponentLoader.tryGetManifestById(e.clientSideComponentId)}).sort(function(e,t){return(e.sequence||Number.MAX_VALUE)-(t.sequence||Number.MAX_VALUE)}).map(function(e){return t._extensionManager.createExtension(e.clientSideComponentId.toString(),e.clientSideComponentProperties,function(e){return new i(e)})});return Promise.all(a).then(function(e){t._extensions=e;var a=t._extensions.length;return n.writeSuccess({numberOfExtensions:a}),a}).catch(function(e){throw n.writeUnexpectedFailure(void 0,e,{numberOfExtensions:0}),e})},s.prototype.getSearchQuery=function(e){var t=this,n=Promise.resolve({queryText:e,originalQueryText:e});return this._extensions.forEach(function(a){n=n.then(function(n){return t._processQuery(a,n,e)})}),n.then(function(e){return e.queryText})},s.prototype._processQuery=function(n,a,i){var r=new o._QosMonitor("SearchQueryExtensionManager.processQuery"),s={componentId:n.componentId,alias:n.manifest.alias},c=new Promise(function(e){setTimeout(function(){r.writeExpectedFailure("Timeout",void 0,s),e(a)},n.timeout)});return Promise.race([c,n.modifySearchQuery((0,t.__assign)((0,t.__assign)({},a),{originalQueryText:i}),e.SearchResults)]).then(function(e){return r.writeSuccess(s),e}).catch(function(e){throw r.writeUnexpectedFailure(void 0,e,s),e})},s.prototype._getCustomActions=function(e){return this._getDebugCustomActions().concat(e)},s.prototype._getDebugCustomActions=function(){var e=[],t=new URL(window.location.href).searchParams.get("customActions");if(t){var n=decodeURIComponent(t),a=JSON.parse(n);if(a)for(var i=0,o=Object.keys(a);i<o.length;i++){var s=o[i],c=r.Guid.tryParse(s),d=a[s].location,l=a[s].sequence;e.push({clientSideComponentId:c.toString(),location:d,sequence:l})}}return e},s}()})(),c})());
1
+ define("4958ea79-6ff3-4480-8291-0932dd010869_1.20.0",["tslib","@microsoft/sp-extension-base","@microsoft/sp-core-library","@microsoft/sp-diagnostics","@microsoft/sp-loader"],(e,t,n,a,i)=>(()=>{"use strict";var r={878:e=>{e.exports=n},377:e=>{e.exports=a},279:e=>{e.exports=t},37:e=>{e.exports=i},553:t=>{t.exports=e}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var c={};return(()=>{s.r(c),s.d(c,{BaseSearchQueryModifier:()=>a,SearchQueryModifierContext:()=>i,SearchQueryScenario:()=>e,_SearchQueryExtensionManager:()=>l});var e,t=s(553),n=s(279);!function(e){e[e.SearchResults=1]="SearchResults",e[e.SearchSuggestions=2]="SearchSuggestions"}(e||(e={}));const a=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),Object.defineProperty(n.prototype,"timeout",{get:function(){return 1e4},enumerable:!1,configurable:!0}),n.prototype.modifySearchQuery=function(e,t){return Promise.resolve(e)},n}(n.BaseExtension),i=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,t.__extends)(n,e),n}(n.ExtensionContext);var r=s(878),o=s(377),d=s(37);const l=function(){function s(e){this._extensionManager=new n._ExtensionManager(e,a),this._extensions=[]}return s.prototype.initializeExtensions=function(e){var t=this,n=new o._QosMonitor("SearchQueryExtensionManager.initializeExtensions"),a=this._getCustomActions(e).filter(function(e){return"ClientSideExtension.SearchQueryModifier"===e.location&&!!d.SPComponentLoader.tryGetManifestById(e.clientSideComponentId)}).sort(function(e,t){return(e.sequence||Number.MAX_VALUE)-(t.sequence||Number.MAX_VALUE)}).map(function(e){return t._extensionManager.createExtension(e.clientSideComponentId.toString(),e.clientSideComponentProperties,function(e){return new i(e)})});return Promise.all(a).then(function(e){t._extensions=e;var a=t._extensions.length;return n.writeSuccess({numberOfExtensions:a}),a}).catch(function(e){throw n.writeUnexpectedFailure(void 0,e,{numberOfExtensions:0}),e})},s.prototype.getSearchQuery=function(e){var t=this,n=Promise.resolve({queryText:e,originalQueryText:e});return this._extensions.forEach(function(a){n=n.then(function(n){return t._processQuery(a,n,e)})}),n.then(function(e){return e.queryText})},s.prototype._processQuery=function(n,a,i){var r=new o._QosMonitor("SearchQueryExtensionManager.processQuery"),s={componentId:n.componentId,alias:n.manifest.alias},c=new Promise(function(e){setTimeout(function(){r.writeExpectedFailure("Timeout",void 0,s),e(a)},n.timeout)});return Promise.race([c,n.modifySearchQuery((0,t.__assign)((0,t.__assign)({},a),{originalQueryText:i}),e.SearchResults)]).then(function(e){return r.writeSuccess(s),e}).catch(function(e){throw r.writeUnexpectedFailure(void 0,e,s),e})},s.prototype._getCustomActions=function(e){return this._getDebugCustomActions().concat(e)},s.prototype._getDebugCustomActions=function(){var e=[],t=new URL(window.location.href).searchParams.get("customActions");if(t){var n=decodeURIComponent(t),a=JSON.parse(n);if(a)for(var i=0,o=Object.keys(a);i<o.length;i++){var s=o[i],c=r.Guid.tryParse(s),d=a[s].location,l=a[s].sequence;e.push({clientSideComponentId:c.toString(),location:d,sequence:l})}}return e},s}()})(),c})());
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.42.3"
8
+ "packageVersion": "7.47.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -18,7 +18,7 @@ var SearchQueryScenario;
18
18
  * Search suggestions scenario.
19
19
  */
20
20
  SearchQueryScenario[SearchQueryScenario["SearchSuggestions"] = 2] = "SearchSuggestions";
21
- })(SearchQueryScenario = exports.SearchQueryScenario || (exports.SearchQueryScenario = {}));
21
+ })(SearchQueryScenario || (exports.SearchQueryScenario = SearchQueryScenario = {}));
22
22
  /**
23
23
  * This is the base class that third parties should extend when implementing
24
24
  * a client-side extension that can modify the search query.
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  /// <reference types='@ms/sp-tab-tasklib' />
3
+ Object.defineProperty(exports, "__esModule", { value: true });
3
4
  /**
4
5
  * Tests to verify Search Query Modifier behavior.
5
6
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/sp-search-extensibility",
3
- "version": "1.19.0",
3
+ "version": "1.20.0-beta.0",
4
4
  "description": "SharePoint Framework developer support for customizing search",
5
5
  "license": "https://aka.ms/spfx/license",
6
6
  "homepage": "http://aka.ms/spfx",
@@ -15,16 +15,18 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "tslib": "2.3.1",
18
- "@microsoft/sp-core-library": "1.19.0",
19
- "@microsoft/sp-diagnostics": "1.19.0",
20
- "@microsoft/sp-loader": "1.19.0",
21
- "@microsoft/sp-extension-base": "1.19.0"
18
+ "@microsoft/sp-core-library": "1.20.0-beta.0",
19
+ "@microsoft/sp-diagnostics": "1.20.0-beta.0",
20
+ "@microsoft/sp-loader": "1.20.0-beta.0",
21
+ "@microsoft/sp-extension-base": "1.20.0-beta.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@rushstack/heft": "0.66.0",
25
- "eslint": "8.7.0",
24
+ "@playwright/test": "1.43.1",
25
+ "@rushstack/heft": "0.66.19",
26
+ "eslint": "8.57.0",
27
+ "@ms/spfx-internal-web-build-rig": "0.1.0",
26
28
  "@ms/sp-tab-tasklib": "0.0.4",
27
- "@ms/spfx-internal-web-build-rig": "0.1.0"
29
+ "@odsp-web-tools/playwright-tab-utilities": "0.1.0"
28
30
  },
29
31
  "scripts": {
30
32
  "build": "heft test --clean",
@@ -38,6 +40,8 @@
38
40
  "_phase:test": "heft run --only test -- --clean",
39
41
  "_phase:build-incremental": "heft run --only build --",
40
42
  "_phase:depscan": "heft depscan",
41
- "_phase:tablink": "heft tablink"
43
+ "_phase:tablink": "heft tablink",
44
+ "playwright": "heft playwright",
45
+ "playwright-debug": "heft playwright --debug-mode"
42
46
  }
43
47
  }