@boomerang-io/carbon-addons-boomerang-react 4.6.5-beta.16 → 4.6.5-beta.18

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.
@@ -55,14 +55,9 @@ const MenuAriaLabelRecord = {
55
55
  };
56
56
  const headerButtonClassNames = "cds--btn--icon-only cds--header__action cds--btn cds--btn--primary cds--btn--icon-only cds--btn cds--btn--primary";
57
57
  function Header(props) {
58
- const currentURL = window.location.href;
59
- currentURL.startsWith("uki");
60
- currentURL.startsWith("remea");
58
+ // const currentURL= window.location.href;
59
+ const currentURL = "https://canada.ica.ibm.com/ica/launchpad";
61
60
  const isCanadaInstance = currentURL.startsWith("canada");
62
- currentURL.startsWith("us");
63
- currentURL.startsWith("au");
64
- currentURL.startsWith("japan");
65
- currentURL.startsWith("serviceessentials");
66
61
  console.log("currentURL", currentURL);
67
62
  console.log("isCanadaInstance", isCanadaInstance);
68
63
  const { productName, baseEnvUrl, baseServicesUrl, carbonTheme = "g10", className, navLinks, prefixName = "", rightPanel, skipToContentProps, templateMeteringEvent, triggerEvent, userTeams, } = props;
@@ -94,9 +89,13 @@ function InstanceSwitcherMenu(props) {
94
89
  React__default.default.createElement("button", { "aria-controls": MenuListId.instanceSwitcher, "aria-expanded": isOpen, "aria-haspopup": "menu", "aria-label": MenuAriaLabelRecord.instanceSwitcher, className: headerButtonClassNames, "data-testid": "header-instanceSwitcher-link", id: MenuButtonId.InstanceSwitcher, onClick: toggleActive },
95
90
  React__default.default.createElement(icons.Wikis, { size: 20 })),
96
91
  isOpen ? (React__default.default.createElement(HeaderMenu.default, { "aria-labelledby": MenuButtonId.InstanceSwitcher, id: MenuListId.instanceSwitcher },
97
- React__default.default.createElement(react.HeaderMenuItem, { key: "Global", text: "Global", type: "link", kind: "app", href: "https://servicesessentials.ibm.com/launchpad", target: "_self" }, "Global"),
98
- React__default.default.createElement(react.HeaderMenuItem, { key: "Australlia", text: "Australlia", type: "link", kind: "app", href: "https://au.ica.ibm.com", target: "_self" }, "Australlia"),
99
- React__default.default.createElement(react.HeaderMenuItem, { key: "Canada", text: "Australlia", type: "link", kind: "app", href: "https://canada.ica.ibm.com", target: "_self" }, "Canada"))) : null));
92
+ React__default.default.createElement(react.HeaderMenuItem, { key: "UKI", text: "UKI", type: "link", kind: "app", href: "http://uki.ica.ibm.com", target: "_self" }, "UKI"),
93
+ React__default.default.createElement(react.HeaderMenuItem, { key: "R-EMEA", text: "R-EMEA", type: "link", kind: "app", href: "http://remea.ica.ibm.com", target: "_self" }, "R-EMEA"),
94
+ React__default.default.createElement(react.HeaderMenuItem, { key: "Canada", text: "Canada", type: "link", kind: "app", href: "https://canada.ica.ibm.com", target: "_self" }, "Canada"),
95
+ React__default.default.createElement(react.HeaderMenuItem, { key: "USA", text: "USA", type: "link", kind: "app", href: "http://us.ica.ibm.com", target: "_self" }, "USA"),
96
+ React__default.default.createElement(react.HeaderMenuItem, { key: "Australia", text: "Australlia", type: "link", kind: "app", href: "https://au.ica.ibm.com", target: "_self" }, "Australia"),
97
+ React__default.default.createElement(react.HeaderMenuItem, { key: "Japan", text: "Global", type: "link", kind: "app", href: "http://japan.ica.ibm.com", target: "_self" }, "Japan"),
98
+ React__default.default.createElement(react.HeaderMenuItem, { key: "Global", text: "Global", type: "link", kind: "app", href: "https://servicesessentials.ibm.com/launchpad", target: "_self" }, "Global"))) : null));
100
99
  }
101
100
  function RequestsMenu(props) {
102
101
  const { isOpen, toggleActive, ref } = useHeaderMenu.default(MenuButtonId.Requests);
@@ -47,14 +47,9 @@ const MenuAriaLabelRecord = {
47
47
  };
48
48
  const headerButtonClassNames = "cds--btn--icon-only cds--header__action cds--btn cds--btn--primary cds--btn--icon-only cds--btn cds--btn--primary";
49
49
  function Header(props) {
50
- const currentURL = window.location.href;
51
- currentURL.startsWith("uki");
52
- currentURL.startsWith("remea");
50
+ // const currentURL= window.location.href;
51
+ const currentURL = "https://canada.ica.ibm.com/ica/launchpad";
53
52
  const isCanadaInstance = currentURL.startsWith("canada");
54
- currentURL.startsWith("us");
55
- currentURL.startsWith("au");
56
- currentURL.startsWith("japan");
57
- currentURL.startsWith("serviceessentials");
58
53
  console.log("currentURL", currentURL);
59
54
  console.log("isCanadaInstance", isCanadaInstance);
60
55
  const { productName, baseEnvUrl, baseServicesUrl, carbonTheme = "g10", className, navLinks, prefixName = "", rightPanel, skipToContentProps, templateMeteringEvent, triggerEvent, userTeams, } = props;
@@ -86,9 +81,13 @@ function InstanceSwitcherMenu(props) {
86
81
  React.createElement("button", { "aria-controls": MenuListId.instanceSwitcher, "aria-expanded": isOpen, "aria-haspopup": "menu", "aria-label": MenuAriaLabelRecord.instanceSwitcher, className: headerButtonClassNames, "data-testid": "header-instanceSwitcher-link", id: MenuButtonId.InstanceSwitcher, onClick: toggleActive },
87
82
  React.createElement(Wikis, { size: 20 })),
88
83
  isOpen ? (React.createElement(HeaderMenu, { "aria-labelledby": MenuButtonId.InstanceSwitcher, id: MenuListId.instanceSwitcher },
89
- React.createElement(HeaderMenuItem, { key: "Global", text: "Global", type: "link", kind: "app", href: "https://servicesessentials.ibm.com/launchpad", target: "_self" }, "Global"),
90
- React.createElement(HeaderMenuItem, { key: "Australlia", text: "Australlia", type: "link", kind: "app", href: "https://au.ica.ibm.com", target: "_self" }, "Australlia"),
91
- React.createElement(HeaderMenuItem, { key: "Canada", text: "Australlia", type: "link", kind: "app", href: "https://canada.ica.ibm.com", target: "_self" }, "Canada"))) : null));
84
+ React.createElement(HeaderMenuItem, { key: "UKI", text: "UKI", type: "link", kind: "app", href: "http://uki.ica.ibm.com", target: "_self" }, "UKI"),
85
+ React.createElement(HeaderMenuItem, { key: "R-EMEA", text: "R-EMEA", type: "link", kind: "app", href: "http://remea.ica.ibm.com", target: "_self" }, "R-EMEA"),
86
+ React.createElement(HeaderMenuItem, { key: "Canada", text: "Canada", type: "link", kind: "app", href: "https://canada.ica.ibm.com", target: "_self" }, "Canada"),
87
+ React.createElement(HeaderMenuItem, { key: "USA", text: "USA", type: "link", kind: "app", href: "http://us.ica.ibm.com", target: "_self" }, "USA"),
88
+ React.createElement(HeaderMenuItem, { key: "Australia", text: "Australlia", type: "link", kind: "app", href: "https://au.ica.ibm.com", target: "_self" }, "Australia"),
89
+ React.createElement(HeaderMenuItem, { key: "Japan", text: "Global", type: "link", kind: "app", href: "http://japan.ica.ibm.com", target: "_self" }, "Japan"),
90
+ React.createElement(HeaderMenuItem, { key: "Global", text: "Global", type: "link", kind: "app", href: "https://servicesessentials.ibm.com/launchpad", target: "_self" }, "Global"))) : null));
92
91
  }
93
92
  function RequestsMenu(props) {
94
93
  const { isOpen, toggleActive, ref } = useHeaderMenu(MenuButtonId.Requests);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@boomerang-io/carbon-addons-boomerang-react",
3
3
  "description": "Carbon Addons for Boomerang apps",
4
- "version": "4.6.5-beta.16",
4
+ "version": "4.6.5-beta.18",
5
5
  "author": {
6
6
  "name": "Tim Bula",
7
7
  "email": "timrbula@gmail.com"