@lukoweb/apitogo-plugin-dev-portal-billing 0.1.53 → 0.1.55

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 (2) hide show
  1. package/dist/index.mjs +0 -13
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1055,23 +1055,10 @@ function withoutPricingNavigation(items) {
1055
1055
 
1056
1056
  //#endregion
1057
1057
  //#region src/utils/header-navigation.ts
1058
- function hasHeaderLink(navigation, path) {
1059
- return navigation.some((item) => "to" in item && item.to === path);
1060
- }
1061
1058
  function buildDevPortalHeaderNavigation({ navigation, pricingEnabled, authNavEnabled }) {
1062
1059
  let items = [...navigation ?? []];
1063
1060
  if (!pricingEnabled) items = withoutPricingNavigation(items);
1064
- else if (!hasHeaderLink(items, PRICING_PATH)) items = [...items, {
1065
- label: "Pricing",
1066
- to: PRICING_PATH,
1067
- display: "anon"
1068
- }];
1069
1061
  if (!authNavEnabled) items = withoutLoginNavigation(items);
1070
- else if (!hasHeaderLink(items, LOGIN_NAV_PATH)) items = [...items, {
1071
- label: "Login",
1072
- to: LOGIN_NAV_PATH,
1073
- display: "anon"
1074
- }];
1075
1062
  return items;
1076
1063
  }
1077
1064
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukoweb/apitogo-plugin-dev-portal-billing",
3
- "version": "0.1.53",
3
+ "version": "0.1.55",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/zuplo/zudoku",
@@ -46,7 +46,7 @@
46
46
  "react": "19.2.4",
47
47
  "react-dom": "19.2.4",
48
48
  "tsdown": "0.20.3",
49
- "@lukoweb/apitogo": "0.1.53"
49
+ "@lukoweb/apitogo": "0.1.55"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "react": ">=19.2.0",