@backstage/plugin-search-react 1.10.5-next.1 → 1.11.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.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0be2541: Promoted the plugin's translation ref to the stable package entry point. It was previously only available through the alpha entry point.
8
+
9
+ ### Patch Changes
10
+
11
+ - d5eb954: Fixes the search component not registering the first search on navigate to the search page.
12
+ - Updated dependencies
13
+ - @backstage/core-plugin-api@1.12.4
14
+ - @backstage/core-components@0.18.8
15
+ - @backstage/frontend-plugin-api@0.15.0
16
+
3
17
  ## 1.10.5-next.1
4
18
 
5
19
  ### Patch Changes
package/dist/alpha.d.ts CHANGED
@@ -132,6 +132,7 @@ declare const SearchFilterBlueprint: _backstage_frontend_plugin_api.ExtensionBlu
132
132
 
133
133
  /**
134
134
  * @alpha
135
+ * @deprecated Import from `@backstage/plugin-search-react` instead.
135
136
  */
136
137
  declare const searchReactTranslationRef: _backstage_frontend_plugin_api.TranslationRef<"search-react", {
137
138
  readonly "searchBar.title": "Search";
package/dist/alpha.esm.js CHANGED
@@ -1,5 +1,9 @@
1
1
  export { SearchResultListItemBlueprint } from './alpha/blueprints/SearchResultListItemBlueprint.esm.js';
2
2
  export { SearchFilterResultTypeBlueprint } from './alpha/blueprints/SearchFilterResultTypeBlueprint.esm.js';
3
3
  export { SearchFilterBlueprint } from './alpha/blueprints/SearchFilterBlueprint.esm.js';
4
- export { searchReactTranslationRef } from './translation.esm.js';
4
+ import { searchReactTranslationRef as searchReactTranslationRef$1 } from './translation.esm.js';
5
+
6
+ const searchReactTranslationRef = searchReactTranslationRef$1;
7
+
8
+ export { searchReactTranslationRef };
5
9
  //# sourceMappingURL=alpha.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"alpha.esm.js","sources":["../src/alpha/index.ts"],"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 */\nexport * from './blueprints';\nimport { searchReactTranslationRef as _searchReactTranslationRef } from '../translation';\n\n/**\n * @alpha\n * @deprecated Import from `@backstage/plugin-search-react` instead.\n */\nexport const searchReactTranslationRef = _searchReactTranslationRef;\n"],"names":["_searchReactTranslationRef"],"mappings":";;;;;AAsBO,MAAM,yBAAA,GAA4BA;;;;"}
package/dist/index.d.ts CHANGED
@@ -769,5 +769,22 @@ type SearchContextProviderProps = PropsWithChildren<{
769
769
  */
770
770
  declare const SearchContextProvider: (props: SearchContextProviderProps) => react_jsx_runtime.JSX.Element;
771
771
 
772
- export { AutocompleteFilter, CheckboxFilter, HigherOrderDefaultResultListItem as DefaultResultListItem, HighlightedSearchResultText, MockSearchApi, SearchAutocomplete, SearchAutocompleteDefaultOption, SearchBar, SearchBarBase, SearchContextProvider, SearchFilter, SearchPagination, SearchPaginationBase, SearchResult, SearchResultApi, SearchResultComponent, SearchResultContext, SearchResultGroup, SearchResultGroupFilterFieldLayout, SearchResultGroupLayout, SearchResultGroupSelectFilterField, SearchResultGroupTextFilterField, SearchResultList, SearchResultListItemExtensions, SearchResultListLayout, SearchResultPager, SearchResultState, SelectFilter, createSearchResultListItemExtension, searchApiRef, useSearch, useSearchContextCheck, useSearchResultListItemExtensions };
772
+ /**
773
+ * @public
774
+ */
775
+ declare const searchReactTranslationRef: _backstage_frontend_plugin_api.TranslationRef<"search-react", {
776
+ readonly "searchBar.title": "Search";
777
+ readonly "searchBar.placeholder": "Search in {{org}}";
778
+ readonly "searchBar.clearButtonTitle": "Clear";
779
+ readonly "searchFilter.allOptionTitle": "All";
780
+ readonly "searchPagination.limitLabel": "Results per page:";
781
+ readonly "searchPagination.limitText": "of {{num}}";
782
+ readonly noResultsDescription: "Sorry, no results were found";
783
+ readonly "searchResultGroup.linkTitle": "See All";
784
+ readonly "searchResultGroup.addFilterButtonTitle": "Add filter";
785
+ readonly "searchResultPager.next": "Next";
786
+ readonly "searchResultPager.previous": "Previous";
787
+ }>;
788
+
789
+ export { AutocompleteFilter, CheckboxFilter, HigherOrderDefaultResultListItem as DefaultResultListItem, HighlightedSearchResultText, MockSearchApi, SearchAutocomplete, SearchAutocompleteDefaultOption, SearchBar, SearchBarBase, SearchContextProvider, SearchFilter, SearchPagination, SearchPaginationBase, SearchResult, SearchResultApi, SearchResultComponent, SearchResultContext, SearchResultGroup, SearchResultGroupFilterFieldLayout, SearchResultGroupLayout, SearchResultGroupSelectFilterField, SearchResultGroupTextFilterField, SearchResultList, SearchResultListItemExtensions, SearchResultListLayout, SearchResultPager, SearchResultState, SelectFilter, createSearchResultListItemExtension, searchApiRef, searchReactTranslationRef, useSearch, useSearchContextCheck, useSearchResultListItemExtensions };
773
790
  export type { DefaultResultListItemProps, FilterValue, FilterValueWithLabel, HighlightedSearchResultTextClassKey, HighlightedSearchResultTextProps, SearchApi, SearchAutocompleteComponent, SearchAutocompleteDefaultOptionProps, SearchAutocompleteFilterProps, SearchAutocompleteProps, SearchBarBaseProps, SearchBarProps, SearchContextProviderProps, SearchContextState, SearchContextValue, SearchFilterComponentProps, SearchFilterWrapperProps, SearchPaginationBaseProps, SearchPaginationLimitOption, SearchPaginationLimitText, SearchPaginationProps, SearchResultApiProps, SearchResultContextProps, SearchResultGroupFilterFieldLayoutProps, SearchResultGroupFilterFieldPropsWith, SearchResultGroupLayoutProps, SearchResultGroupProps, SearchResultGroupSelectFilterFieldProps, SearchResultGroupTextFilterFieldProps, SearchResultListItemExtensionOptions, SearchResultListItemExtensionProps, SearchResultListItemExtensionsProps, SearchResultListLayoutProps, SearchResultListProps, SearchResultProps, SearchResultStateProps };
package/dist/index.esm.js CHANGED
@@ -13,4 +13,5 @@ export { SearchResultGroup, SearchResultGroupFilterFieldLayout, SearchResultGrou
13
13
  export { SearchResultPager } from './components/SearchResultPager/SearchResultPager.esm.js';
14
14
  export { DefaultResultListItem } from './components/DefaultResultListItem/DefaultResultListItem.esm.js';
15
15
  export { SearchContextProvider, useSearch, useSearchContextCheck } from './context/SearchContext.esm.js';
16
+ export { searchReactTranslationRef } from './translation.esm.js';
16
17
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"translation.esm.js","sources":["../src/translation.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { createTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/**\n * @alpha\n */\nexport const searchReactTranslationRef = createTranslationRef({\n id: 'search-react',\n messages: {\n searchBar: {\n title: 'Search',\n placeholder: 'Search in {{org}}',\n clearButtonTitle: 'Clear',\n },\n searchFilter: {\n allOptionTitle: 'All',\n },\n searchPagination: {\n limitLabel: 'Results per page:',\n limitText: 'of {{num}}',\n },\n noResultsDescription: 'Sorry, no results were found',\n searchResultGroup: {\n linkTitle: 'See All',\n addFilterButtonTitle: 'Add filter',\n },\n searchResultPager: {\n previous: 'Previous',\n next: 'Next',\n },\n },\n});\n"],"names":[],"mappings":";;AAqBO,MAAM,4BAA4B,oBAAA,CAAqB;AAAA,EAC5D,EAAA,EAAI,cAAA;AAAA,EACJ,QAAA,EAAU;AAAA,IACR,SAAA,EAAW;AAAA,MACT,KAAA,EAAO,QAAA;AAAA,MACP,WAAA,EAAa,mBAAA;AAAA,MACb,gBAAA,EAAkB;AAAA,KACpB;AAAA,IACA,YAAA,EAAc;AAAA,MACZ,cAAA,EAAgB;AAAA,KAClB;AAAA,IACA,gBAAA,EAAkB;AAAA,MAChB,UAAA,EAAY,mBAAA;AAAA,MACZ,SAAA,EAAW;AAAA,KACb;AAAA,IACA,oBAAA,EAAsB,8BAAA;AAAA,IACtB,iBAAA,EAAmB;AAAA,MACjB,SAAA,EAAW,SAAA;AAAA,MACX,oBAAA,EAAsB;AAAA,KACxB;AAAA,IACA,iBAAA,EAAmB;AAAA,MACjB,QAAA,EAAU,UAAA;AAAA,MACV,IAAA,EAAM;AAAA;AACR;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"translation.esm.js","sources":["../src/translation.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { createTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/**\n * @public\n */\nexport const searchReactTranslationRef = createTranslationRef({\n id: 'search-react',\n messages: {\n searchBar: {\n title: 'Search',\n placeholder: 'Search in {{org}}',\n clearButtonTitle: 'Clear',\n },\n searchFilter: {\n allOptionTitle: 'All',\n },\n searchPagination: {\n limitLabel: 'Results per page:',\n limitText: 'of {{num}}',\n },\n noResultsDescription: 'Sorry, no results were found',\n searchResultGroup: {\n linkTitle: 'See All',\n addFilterButtonTitle: 'Add filter',\n },\n searchResultPager: {\n previous: 'Previous',\n next: 'Next',\n },\n },\n});\n"],"names":[],"mappings":";;AAqBO,MAAM,4BAA4B,oBAAA,CAAqB;AAAA,EAC5D,EAAA,EAAI,cAAA;AAAA,EACJ,QAAA,EAAU;AAAA,IACR,SAAA,EAAW;AAAA,MACT,KAAA,EAAO,QAAA;AAAA,MACP,WAAA,EAAa,mBAAA;AAAA,MACb,gBAAA,EAAkB;AAAA,KACpB;AAAA,IACA,YAAA,EAAc;AAAA,MACZ,cAAA,EAAgB;AAAA,KAClB;AAAA,IACA,gBAAA,EAAkB;AAAA,MAChB,UAAA,EAAY,mBAAA;AAAA,MACZ,SAAA,EAAW;AAAA,KACb;AAAA,IACA,oBAAA,EAAsB,8BAAA;AAAA,IACtB,iBAAA,EAAmB;AAAA,MACjB,SAAA,EAAW,SAAA;AAAA,MACX,oBAAA,EAAsB;AAAA,KACxB;AAAA,IACA,iBAAA,EAAmB;AAAA,MACjB,QAAA,EAAU,UAAA;AAAA,MACV,IAAA,EAAM;AAAA;AACR;AAEJ,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-search-react",
3
- "version": "1.10.5-next.1",
3
+ "version": "1.11.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.8-next.1",
68
- "@backstage/core-plugin-api": "1.12.4-next.1",
69
- "@backstage/frontend-plugin-api": "0.15.0-next.1",
70
- "@backstage/plugin-search-common": "1.2.22",
71
- "@backstage/theme": "0.7.2",
72
- "@backstage/types": "1.2.2",
73
- "@backstage/version-bridge": "1.0.12",
67
+ "@backstage/core-components": "^0.18.8",
68
+ "@backstage/core-plugin-api": "^1.12.4",
69
+ "@backstage/frontend-plugin-api": "^0.15.0",
70
+ "@backstage/plugin-search-common": "^1.2.22",
71
+ "@backstage/theme": "^0.7.2",
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",
@@ -80,11 +80,11 @@
80
80
  "uuid": "^11.0.2"
81
81
  },
82
82
  "devDependencies": {
83
- "@backstage/cli": "0.36.0-next.2",
84
- "@backstage/core-app-api": "1.19.6-next.1",
85
- "@backstage/frontend-app-api": "0.16.0-next.1",
86
- "@backstage/frontend-test-utils": "0.5.1-next.2",
87
- "@backstage/test-utils": "1.7.16-next.0",
83
+ "@backstage/cli": "^0.36.0",
84
+ "@backstage/core-app-api": "^1.19.6",
85
+ "@backstage/frontend-app-api": "^0.16.0",
86
+ "@backstage/frontend-test-utils": "^0.5.1",
87
+ "@backstage/test-utils": "^1.7.16",
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",