@backstage/plugin-search-react 1.11.1-next.2 → 1.11.2
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,24 @@
|
|
|
1
1
|
# @backstage/plugin-search-react
|
|
2
2
|
|
|
3
|
+
## 1.11.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6b60bd7: Replaced old config schema values from existing extensions and blueprints.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/frontend-plugin-api@0.16.1
|
|
10
|
+
|
|
11
|
+
## 1.11.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @backstage/theme@0.7.3
|
|
17
|
+
- @backstage/frontend-plugin-api@0.16.0
|
|
18
|
+
- @backstage/core-components@0.18.9
|
|
19
|
+
- @backstage/core-plugin-api@1.12.5
|
|
20
|
+
- @backstage/plugin-search-common@1.2.23
|
|
21
|
+
|
|
3
22
|
## 1.11.1-next.2
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { lazy } from 'react';
|
|
3
|
+
import { z } from 'zod/v4';
|
|
3
4
|
import { createExtensionBlueprint, ExtensionBoundary } from '@backstage/frontend-plugin-api';
|
|
4
5
|
import { searchResultListItemDataRef } from './types.esm.js';
|
|
5
6
|
import { SearchResultListItemExtension } from '../../extensions.esm.js';
|
|
@@ -10,10 +11,8 @@ const SearchResultListItemBlueprint = createExtensionBlueprint({
|
|
|
10
11
|
id: "page:search",
|
|
11
12
|
input: "items"
|
|
12
13
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
noTrack: (z) => z.boolean().default(false)
|
|
16
|
-
}
|
|
14
|
+
configSchema: {
|
|
15
|
+
noTrack: z.boolean().default(false)
|
|
17
16
|
},
|
|
18
17
|
output: [searchResultListItemDataRef],
|
|
19
18
|
dataRefs: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchResultListItemBlueprint.esm.js","sources":["../../../src/alpha/blueprints/SearchResultListItemBlueprint.tsx"],"sourcesContent":["/*\n * Copyright 2024 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 { lazy, JSX } from 'react';\nimport {\n createExtensionBlueprint,\n ExtensionBoundary,\n} from '@backstage/frontend-plugin-api';\nimport {\n SearchResultItemExtensionComponent,\n SearchResultItemExtensionPredicate,\n searchResultListItemDataRef,\n} from './types';\nimport {\n SearchResultListItemExtension,\n SearchResultListItemExtensionProps,\n} from '../../extensions';\n\n/** @alpha */\nexport interface SearchResultListItemBlueprintParams {\n /**\n * The extension component.\n */\n component: (options: {\n config: { noTrack?: boolean };\n }) => Promise<SearchResultItemExtensionComponent>;\n /**\n * When an extension defines a predicate, it returns true if the result should be rendered by that extension.\n * Defaults to a predicate that returns true, which means it renders all sorts of results.\n */\n predicate?: SearchResultItemExtensionPredicate;\n\n /**\n * The icon of the result item.\n */\n icon?: JSX.Element;\n}\n\n/**\n * @alpha\n * Creates SearchResultListItem extensions\n */\nexport const SearchResultListItemBlueprint = createExtensionBlueprint({\n kind: 'search-result-list-item',\n attachTo: {\n id: 'page:search',\n input: 'items',\n },\n
|
|
1
|
+
{"version":3,"file":"SearchResultListItemBlueprint.esm.js","sources":["../../../src/alpha/blueprints/SearchResultListItemBlueprint.tsx"],"sourcesContent":["/*\n * Copyright 2024 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 { lazy, JSX } from 'react';\nimport { z } from 'zod/v4';\nimport {\n createExtensionBlueprint,\n ExtensionBoundary,\n} from '@backstage/frontend-plugin-api';\nimport {\n SearchResultItemExtensionComponent,\n SearchResultItemExtensionPredicate,\n searchResultListItemDataRef,\n} from './types';\nimport {\n SearchResultListItemExtension,\n SearchResultListItemExtensionProps,\n} from '../../extensions';\n\n/** @alpha */\nexport interface SearchResultListItemBlueprintParams {\n /**\n * The extension component.\n */\n component: (options: {\n config: { noTrack?: boolean };\n }) => Promise<SearchResultItemExtensionComponent>;\n /**\n * When an extension defines a predicate, it returns true if the result should be rendered by that extension.\n * Defaults to a predicate that returns true, which means it renders all sorts of results.\n */\n predicate?: SearchResultItemExtensionPredicate;\n\n /**\n * The icon of the result item.\n */\n icon?: JSX.Element;\n}\n\n/**\n * @alpha\n * Creates SearchResultListItem extensions\n */\nexport const SearchResultListItemBlueprint = createExtensionBlueprint({\n kind: 'search-result-list-item',\n attachTo: {\n id: 'page:search',\n input: 'items',\n },\n configSchema: {\n noTrack: z.boolean().default(false),\n },\n output: [searchResultListItemDataRef],\n dataRefs: {\n item: searchResultListItemDataRef,\n },\n *factory(params: SearchResultListItemBlueprintParams, { config, node }) {\n const ExtensionComponent = lazy(() =>\n params.component({ config }).then(component => ({ default: component })),\n );\n\n yield searchResultListItemDataRef({\n predicate: params.predicate,\n component: (props: SearchResultListItemExtensionProps) => (\n <ExtensionBoundary node={node}>\n <SearchResultListItemExtension\n rank={props.rank}\n result={props.result}\n noTrack={config.noTrack}\n >\n <ExtensionComponent icon={params.icon} {...props} />\n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name": "@backstage/plugin-search-react",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "web-library",
|
|
6
6
|
"pluginId": "search",
|
|
@@ -64,27 +64,28 @@
|
|
|
64
64
|
"test": "backstage-cli package test"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@backstage/core-components": "0.18.9
|
|
68
|
-
"@backstage/core-plugin-api": "1.12.5
|
|
69
|
-
"@backstage/frontend-plugin-api": "0.16.
|
|
70
|
-
"@backstage/plugin-search-common": "1.2.23
|
|
71
|
-
"@backstage/theme": "0.7.3
|
|
72
|
-
"@backstage/types": "1.2.2",
|
|
73
|
-
"@backstage/version-bridge": "1.0.12",
|
|
67
|
+
"@backstage/core-components": "^0.18.9",
|
|
68
|
+
"@backstage/core-plugin-api": "^1.12.5",
|
|
69
|
+
"@backstage/frontend-plugin-api": "^0.16.1",
|
|
70
|
+
"@backstage/plugin-search-common": "^1.2.23",
|
|
71
|
+
"@backstage/theme": "^0.7.3",
|
|
72
|
+
"@backstage/types": "^1.2.2",
|
|
73
|
+
"@backstage/version-bridge": "^1.0.12",
|
|
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",
|
|
77
77
|
"lodash": "^4.17.21",
|
|
78
78
|
"qs": "^6.9.4",
|
|
79
79
|
"react-use": "^17.3.2",
|
|
80
|
-
"uuid": "^11.0.2"
|
|
80
|
+
"uuid": "^11.0.2",
|
|
81
|
+
"zod": "^3.25.76 || ^4.0.0"
|
|
81
82
|
},
|
|
82
83
|
"devDependencies": {
|
|
83
|
-
"@backstage/cli": "0.36.1
|
|
84
|
-
"@backstage/core-app-api": "1.20.0
|
|
85
|
-
"@backstage/frontend-app-api": "0.16.2
|
|
86
|
-
"@backstage/frontend-test-utils": "0.5.2
|
|
87
|
-
"@backstage/test-utils": "1.7.17
|
|
84
|
+
"@backstage/cli": "^0.36.1",
|
|
85
|
+
"@backstage/core-app-api": "^1.20.0",
|
|
86
|
+
"@backstage/frontend-app-api": "^0.16.2",
|
|
87
|
+
"@backstage/frontend-test-utils": "^0.5.2",
|
|
88
|
+
"@backstage/test-utils": "^1.7.17",
|
|
88
89
|
"@testing-library/dom": "^10.0.0",
|
|
89
90
|
"@testing-library/jest-dom": "^6.0.0",
|
|
90
91
|
"@testing-library/react": "^16.0.0",
|