@red-hat-developer-hub/backstage-plugin-global-header 1.15.1 → 1.16.1

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/components/HeaderDropdownComponent/ApplicationLauncherDropdown.esm.js +7 -3
  3. package/dist/components/HeaderDropdownComponent/ApplicationLauncherDropdown.esm.js.map +1 -1
  4. package/dist/components/HeaderDropdownComponent/CreateDropdown.esm.js +6 -1
  5. package/dist/components/HeaderDropdownComponent/CreateDropdown.esm.js.map +1 -1
  6. package/dist/components/HeaderDropdownComponent/DropdownEmptyState.esm.js +34 -25
  7. package/dist/components/HeaderDropdownComponent/DropdownEmptyState.esm.js.map +1 -1
  8. package/dist/components/HeaderDropdownComponent/HelpDropdown.esm.js +7 -3
  9. package/dist/components/HeaderDropdownComponent/HelpDropdown.esm.js.map +1 -1
  10. package/dist/components/HeaderDropdownComponent/MenuSection.esm.js +4 -1
  11. package/dist/components/HeaderDropdownComponent/MenuSection.esm.js.map +1 -1
  12. package/dist/components/HeaderDropdownComponent/ProfileDropdown.esm.js +8 -4
  13. package/dist/components/HeaderDropdownComponent/ProfileDropdown.esm.js.map +1 -1
  14. package/dist/components/HeaderDropdownComponent/RegisterAComponentSection.esm.js +4 -2
  15. package/dist/components/HeaderDropdownComponent/RegisterAComponentSection.esm.js.map +1 -1
  16. package/dist/components/HeaderDropdownComponent/SoftwareTemplatesSection.esm.js +6 -4
  17. package/dist/components/HeaderDropdownComponent/SoftwareTemplatesSection.esm.js.map +1 -1
  18. package/dist/components/HeaderDropdownComponent/StarredDropdown.esm.js +22 -6
  19. package/dist/components/HeaderDropdownComponent/StarredDropdown.esm.js.map +1 -1
  20. package/dist/components/LogoutButton/LogoutButton.esm.js +3 -1
  21. package/dist/components/LogoutButton/LogoutButton.esm.js.map +1 -1
  22. package/dist/components/MenuItemLink/MenuItemLink.esm.js +5 -2
  23. package/dist/components/MenuItemLink/MenuItemLink.esm.js.map +1 -1
  24. package/dist/components/NotificationBanner.esm.js +6 -2
  25. package/dist/components/NotificationBanner.esm.js.map +1 -1
  26. package/dist/components/NotificationButton/NotificationButton.esm.js +6 -3
  27. package/dist/components/NotificationButton/NotificationButton.esm.js.map +1 -1
  28. package/dist/components/SearchComponent/SearchBar.esm.js +4 -2
  29. package/dist/components/SearchComponent/SearchBar.esm.js.map +1 -1
  30. package/dist/components/SearchComponent/SearchInput.esm.js +23 -19
  31. package/dist/components/SearchComponent/SearchInput.esm.js.map +1 -1
  32. package/dist/components/SupportButton/SupportButton.esm.js +5 -2
  33. package/dist/components/SupportButton/SupportButton.esm.js.map +1 -1
  34. package/dist/defaultMountPoints/defaultMountPoints.esm.js +7 -7
  35. package/dist/defaultMountPoints/defaultMountPoints.esm.js.map +1 -1
  36. package/dist/hooks/useTranslation.esm.js +8 -0
  37. package/dist/hooks/useTranslation.esm.js.map +1 -0
  38. package/dist/index.d.ts +49 -1
  39. package/dist/index.esm.js +2 -0
  40. package/dist/index.esm.js.map +1 -1
  41. package/dist/plugin.esm.js +2 -0
  42. package/dist/plugin.esm.js.map +1 -1
  43. package/dist/translations/de.esm.js +43 -0
  44. package/dist/translations/de.esm.js.map +1 -0
  45. package/dist/translations/es.esm.js +43 -0
  46. package/dist/translations/es.esm.js.map +1 -0
  47. package/dist/translations/fr.esm.js +43 -0
  48. package/dist/translations/fr.esm.js.map +1 -0
  49. package/dist/translations/index.esm.js +15 -0
  50. package/dist/translations/index.esm.js.map +1 -0
  51. package/dist/translations/it.esm.js +43 -0
  52. package/dist/translations/it.esm.js.map +1 -0
  53. package/dist/translations/ref.esm.js +63 -0
  54. package/dist/translations/ref.esm.js.map +1 -0
  55. package/package.json +1 -1
@@ -0,0 +1,63 @@
1
+ import { createTranslationRef } from '@backstage/core-plugin-api/alpha';
2
+
3
+ const globalHeaderMessages = {
4
+ help: {
5
+ tooltip: "Help",
6
+ noSupportLinks: "No support links",
7
+ noSupportLinksSubtitle: "Your administrator needs to set up support links.",
8
+ quickStart: "Quick start",
9
+ supportTitle: "Support"
10
+ },
11
+ profile: {
12
+ picture: "Profile picture",
13
+ settings: "Settings",
14
+ myProfile: "My profile",
15
+ signOut: "Sign out"
16
+ },
17
+ search: {
18
+ placeholder: "Search...",
19
+ noResults: "No results found",
20
+ errorFetching: "Error fetching results"
21
+ },
22
+ applicationLauncher: {
23
+ tooltip: "Application launcher",
24
+ noLinksTitle: "No application links configured",
25
+ noLinksSubtitle: "Configure application links in dynamic plugin config for quick access from here.",
26
+ developerHub: "Developer Hub",
27
+ rhdhLocal: "RHDH Local",
28
+ sections: {
29
+ documentation: "Documentation",
30
+ developerTools: "Developer Tools"
31
+ }
32
+ },
33
+ starred: {
34
+ title: "Your starred items",
35
+ removeTooltip: "Remove from list",
36
+ noItemsTitle: "No starred items yet",
37
+ noItemsSubtitle: "Click the star icon next to an entity's name to save it here for quick access."
38
+ },
39
+ notifications: {
40
+ title: "Notifications",
41
+ unsupportedDismissOption: 'Unsupported dismiss option "{{option}}", currently supported "none", "session" or "localstorage"!'
42
+ },
43
+ create: {
44
+ title: "Self-service",
45
+ registerComponent: {
46
+ title: "Register a component",
47
+ subtitle: "Import it to the catalog page"
48
+ },
49
+ templates: {
50
+ sectionTitle: "Use a template",
51
+ allTemplates: "All templates",
52
+ errorFetching: "Error fetching templates",
53
+ noTemplatesAvailable: "No templates available"
54
+ }
55
+ }
56
+ };
57
+ const globalHeaderTranslationRef = createTranslationRef({
58
+ id: "plugin.global-header",
59
+ messages: globalHeaderMessages
60
+ });
61
+
62
+ export { globalHeaderMessages, globalHeaderTranslationRef };
63
+ //# sourceMappingURL=ref.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ref.esm.js","sources":["../../src/translations/ref.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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// Export messages separately for testing\nexport const globalHeaderMessages = {\n help: {\n tooltip: 'Help',\n noSupportLinks: 'No support links',\n noSupportLinksSubtitle: 'Your administrator needs to set up support links.',\n quickStart: 'Quick start',\n supportTitle: 'Support',\n },\n profile: {\n picture: 'Profile picture',\n settings: 'Settings',\n myProfile: 'My profile',\n signOut: 'Sign out',\n },\n search: {\n placeholder: 'Search...',\n noResults: 'No results found',\n errorFetching: 'Error fetching results',\n },\n applicationLauncher: {\n tooltip: 'Application launcher',\n noLinksTitle: 'No application links configured',\n noLinksSubtitle:\n 'Configure application links in dynamic plugin config for quick access from here.',\n developerHub: 'Developer Hub',\n rhdhLocal: 'RHDH Local',\n sections: {\n documentation: 'Documentation',\n developerTools: 'Developer Tools',\n },\n },\n starred: {\n title: 'Your starred items',\n removeTooltip: 'Remove from list',\n noItemsTitle: 'No starred items yet',\n noItemsSubtitle:\n \"Click the star icon next to an entity's name to save it here for quick access.\",\n },\n notifications: {\n title: 'Notifications',\n unsupportedDismissOption:\n 'Unsupported dismiss option \"{{option}}\", currently supported \"none\", \"session\" or \"localstorage\"!',\n },\n create: {\n title: 'Self-service',\n registerComponent: {\n title: 'Register a component',\n subtitle: 'Import it to the catalog page',\n },\n templates: {\n sectionTitle: 'Use a template',\n allTemplates: 'All templates',\n errorFetching: 'Error fetching templates',\n noTemplatesAvailable: 'No templates available',\n },\n },\n};\n\n/**\n * Translation reference for the global header plugin.\n *\n * @public\n */\nexport const globalHeaderTranslationRef = createTranslationRef({\n id: 'plugin.global-header',\n messages: globalHeaderMessages,\n});\n"],"names":[],"mappings":";;AAmBO,MAAM,oBAAuB,GAAA;AAAA,EAClC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EJ;AAOO,MAAM,6BAA6B,oBAAqB,CAAA;AAAA,EAC7D,EAAI,EAAA,sBAAA;AAAA,EACJ,QAAU,EAAA;AACZ,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@red-hat-developer-hub/backstage-plugin-global-header",
3
- "version": "1.15.1",
3
+ "version": "1.16.1",
4
4
  "main": "dist/index.esm.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "Apache-2.0",