@backstage/plugin-search-react 1.9.5 → 1.9.6-next.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @backstage/plugin-search-react
2
2
 
3
+ ## 1.9.6-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 05f60e1: Refactored constructor parameter properties to explicit property declarations for compatibility with TypeScript's `erasableSyntaxOnly` setting. This internal refactoring maintains all existing functionality while ensuring TypeScript compilation compatibility.
8
+ - Updated dependencies
9
+ - @backstage/core-plugin-api@1.11.2-next.0
10
+ - @backstage/core-components@0.18.3-next.0
11
+ - @backstage/frontend-plugin-api@0.12.2-next.0
12
+ - @backstage/theme@0.7.0
13
+ - @backstage/types@1.2.2
14
+ - @backstage/version-bridge@1.0.11
15
+ - @backstage/plugin-search-common@1.2.21-next.0
16
+
3
17
  ## 1.9.5
4
18
 
5
19
  ### Patch Changes
package/dist/api.esm.js CHANGED
@@ -4,6 +4,7 @@ const searchApiRef = createApiRef({
4
4
  id: "plugin.search.queryservice"
5
5
  });
6
6
  class MockSearchApi {
7
+ mockedResults;
7
8
  constructor(mockedResults) {
8
9
  this.mockedResults = mockedResults;
9
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"api.esm.js","sources":["../src/api.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { SearchQuery, SearchResultSet } from '@backstage/plugin-search-common';\nimport { createApiRef } from '@backstage/core-plugin-api';\n\n/**\n * @public\n */\nexport const searchApiRef = createApiRef<SearchApi>({\n id: 'plugin.search.queryservice',\n});\n\n/**\n * @public\n */\nexport interface SearchApi {\n query(\n query: SearchQuery,\n options?: { signal?: AbortSignal },\n ): Promise<SearchResultSet>;\n}\n\n/**\n * @public\n *\n * Search Api Mock that can be used in tests and storybooks\n */\nexport class MockSearchApi implements SearchApi {\n constructor(public mockedResults?: SearchResultSet) {}\n\n query(\n _query: SearchQuery,\n _options?: { signal?: AbortSignal },\n ): Promise<SearchResultSet> {\n return Promise.resolve(this.mockedResults || { results: [] });\n }\n}\n"],"names":[],"mappings":";;AAsBO,MAAM,eAAe,YAAA,CAAwB;AAAA,EAClD,EAAA,EAAI;AACN,CAAC;AAiBM,MAAM,aAAA,CAAmC;AAAA,EAC9C,YAAmB,aAAA,EAAiC;AAAjC,IAAA,IAAA,CAAA,aAAA,GAAA,aAAA;AAAA,EAAkC;AAAA,EAErD,KAAA,CACE,QACA,QAAA,EAC0B;AAC1B,IAAA,OAAO,OAAA,CAAQ,QAAQ,IAAA,CAAK,aAAA,IAAiB,EAAE,OAAA,EAAS,IAAI,CAAA;AAAA,EAC9D;AACF;;;;"}
1
+ {"version":3,"file":"api.esm.js","sources":["../src/api.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { SearchQuery, SearchResultSet } from '@backstage/plugin-search-common';\nimport { createApiRef } from '@backstage/core-plugin-api';\n\n/**\n * @public\n */\nexport const searchApiRef = createApiRef<SearchApi>({\n id: 'plugin.search.queryservice',\n});\n\n/**\n * @public\n */\nexport interface SearchApi {\n query(\n query: SearchQuery,\n options?: { signal?: AbortSignal },\n ): Promise<SearchResultSet>;\n}\n\n/**\n * @public\n *\n * Search Api Mock that can be used in tests and storybooks\n */\nexport class MockSearchApi implements SearchApi {\n public mockedResults?: SearchResultSet;\n\n constructor(mockedResults?: SearchResultSet) {\n this.mockedResults = mockedResults;\n }\n\n query(\n _query: SearchQuery,\n _options?: { signal?: AbortSignal },\n ): Promise<SearchResultSet> {\n return Promise.resolve(this.mockedResults || { results: [] });\n }\n}\n"],"names":[],"mappings":";;AAsBO,MAAM,eAAe,YAAA,CAAwB;AAAA,EAClD,EAAA,EAAI;AACN,CAAC;AAiBM,MAAM,aAAA,CAAmC;AAAA,EACvC,aAAA;AAAA,EAEP,YAAY,aAAA,EAAiC;AAC3C,IAAA,IAAA,CAAK,aAAA,GAAgB,aAAA;AAAA,EACvB;AAAA,EAEA,KAAA,CACE,QACA,QAAA,EAC0B;AAC1B,IAAA,OAAO,OAAA,CAAQ,QAAQ,IAAA,CAAK,aAAA,IAAiB,EAAE,OAAA,EAAS,IAAI,CAAA;AAAA,EAC9D;AACF;;;;"}
package/dist/index.d.ts CHANGED
@@ -32,8 +32,8 @@ interface SearchApi {
32
32
  * Search Api Mock that can be used in tests and storybooks
33
33
  */
34
34
  declare class MockSearchApi implements SearchApi {
35
- mockedResults?: SearchResultSet | undefined;
36
- constructor(mockedResults?: SearchResultSet | undefined);
35
+ mockedResults?: SearchResultSet;
36
+ constructor(mockedResults?: SearchResultSet);
37
37
  query(_query: SearchQuery, _options?: {
38
38
  signal?: AbortSignal;
39
39
  }): Promise<SearchResultSet>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-search-react",
3
- "version": "1.9.5",
3
+ "version": "1.9.6-next.0",
4
4
  "backstage": {
5
5
  "role": "web-library",
6
6
  "pluginId": "search",
@@ -64,13 +64,13 @@
64
64
  "test": "backstage-cli package test"
65
65
  },
66
66
  "dependencies": {
67
- "@backstage/core-components": "^0.18.2",
68
- "@backstage/core-plugin-api": "^1.11.1",
69
- "@backstage/frontend-plugin-api": "^0.12.1",
70
- "@backstage/plugin-search-common": "^1.2.20",
71
- "@backstage/theme": "^0.7.0",
72
- "@backstage/types": "^1.2.2",
73
- "@backstage/version-bridge": "^1.0.11",
67
+ "@backstage/core-components": "0.18.3-next.0",
68
+ "@backstage/core-plugin-api": "1.11.2-next.0",
69
+ "@backstage/frontend-plugin-api": "0.12.2-next.0",
70
+ "@backstage/plugin-search-common": "1.2.21-next.0",
71
+ "@backstage/theme": "0.7.0",
72
+ "@backstage/types": "1.2.2",
73
+ "@backstage/version-bridge": "1.0.11",
74
74
  "@material-ui/core": "^4.12.2",
75
75
  "@material-ui/icons": "^4.9.1",
76
76
  "@material-ui/lab": "4.0.0-alpha.61",
@@ -80,11 +80,11 @@
80
80
  "uuid": "^11.0.2"
81
81
  },
82
82
  "devDependencies": {
83
- "@backstage/cli": "^0.34.4",
84
- "@backstage/core-app-api": "^1.19.1",
85
- "@backstage/frontend-app-api": "^0.13.1",
86
- "@backstage/frontend-test-utils": "^0.4.0",
87
- "@backstage/test-utils": "^1.7.12",
83
+ "@backstage/cli": "0.34.5-next.0",
84
+ "@backstage/core-app-api": "1.19.2-next.0",
85
+ "@backstage/frontend-app-api": "0.13.2-next.0",
86
+ "@backstage/frontend-test-utils": "0.4.1-next.0",
87
+ "@backstage/test-utils": "1.7.13-next.0",
88
88
  "@testing-library/dom": "^10.0.0",
89
89
  "@testing-library/jest-dom": "^6.0.0",
90
90
  "@testing-library/react": "^16.0.0",