@lokalise/harmony 1.39.3 → 1.40.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.
Files changed (262) hide show
  1. package/dist/harmony100.cjs +6 -3
  2. package/dist/harmony100.cjs.map +1 -1
  3. package/dist/harmony100.mjs +6 -3
  4. package/dist/harmony100.mjs.map +1 -1
  5. package/dist/harmony101.cjs +57 -9
  6. package/dist/harmony101.cjs.map +1 -1
  7. package/dist/harmony101.mjs +56 -8
  8. package/dist/harmony101.mjs.map +1 -1
  9. package/dist/harmony102.cjs +42 -9
  10. package/dist/harmony102.cjs.map +1 -1
  11. package/dist/harmony102.mjs +41 -8
  12. package/dist/harmony102.mjs.map +1 -1
  13. package/dist/harmony103.cjs +5 -57
  14. package/dist/harmony103.cjs.map +1 -1
  15. package/dist/harmony103.mjs +5 -57
  16. package/dist/harmony103.mjs.map +1 -1
  17. package/dist/harmony104.cjs +9 -42
  18. package/dist/harmony104.cjs.map +1 -1
  19. package/dist/harmony104.mjs +8 -41
  20. package/dist/harmony104.mjs.map +1 -1
  21. package/dist/harmony105.cjs +25 -6
  22. package/dist/harmony105.cjs.map +1 -1
  23. package/dist/harmony105.mjs +24 -5
  24. package/dist/harmony105.mjs.map +1 -1
  25. package/dist/harmony106.cjs +3 -6
  26. package/dist/harmony106.cjs.map +1 -1
  27. package/dist/harmony106.mjs +3 -6
  28. package/dist/harmony106.mjs.map +1 -1
  29. package/dist/harmony107.cjs +21 -24
  30. package/dist/harmony107.cjs.map +1 -1
  31. package/dist/harmony107.mjs +20 -23
  32. package/dist/harmony107.mjs.map +1 -1
  33. package/dist/harmony108.cjs +9 -3
  34. package/dist/harmony108.cjs.map +1 -1
  35. package/dist/harmony108.mjs +9 -3
  36. package/dist/harmony108.mjs.map +1 -1
  37. package/dist/harmony109.cjs +9 -19
  38. package/dist/harmony109.cjs.map +1 -1
  39. package/dist/harmony109.mjs +11 -21
  40. package/dist/harmony109.mjs.map +1 -1
  41. package/dist/harmony110.cjs +20 -11
  42. package/dist/harmony110.cjs.map +1 -1
  43. package/dist/harmony110.mjs +20 -11
  44. package/dist/harmony110.mjs.map +1 -1
  45. package/dist/harmony111.cjs +166 -11
  46. package/dist/harmony111.cjs.map +1 -1
  47. package/dist/harmony111.mjs +166 -11
  48. package/dist/harmony111.mjs.map +1 -1
  49. package/dist/harmony112.cjs +44 -21
  50. package/dist/harmony112.cjs.map +1 -1
  51. package/dist/harmony112.mjs +43 -20
  52. package/dist/harmony112.mjs.map +1 -1
  53. package/dist/harmony113.cjs +96 -11
  54. package/dist/harmony113.cjs.map +1 -1
  55. package/dist/harmony113.mjs +79 -11
  56. package/dist/harmony113.mjs.map +1 -1
  57. package/dist/harmony114.cjs +14 -18
  58. package/dist/harmony114.cjs.map +1 -1
  59. package/dist/harmony114.mjs +14 -18
  60. package/dist/harmony114.mjs.map +1 -1
  61. package/dist/harmony115.cjs +19 -22
  62. package/dist/harmony115.cjs.map +1 -1
  63. package/dist/harmony115.mjs +18 -21
  64. package/dist/harmony115.mjs.map +1 -1
  65. package/dist/harmony116.cjs +21 -6
  66. package/dist/harmony116.cjs.map +1 -1
  67. package/dist/harmony116.mjs +20 -5
  68. package/dist/harmony116.mjs.map +1 -1
  69. package/dist/harmony117.cjs +5 -86
  70. package/dist/harmony117.cjs.map +1 -1
  71. package/dist/harmony117.mjs +5 -86
  72. package/dist/harmony117.mjs.map +1 -1
  73. package/dist/harmony118.cjs +131 -29
  74. package/dist/harmony118.cjs.map +1 -1
  75. package/dist/harmony118.mjs +131 -29
  76. package/dist/harmony118.mjs.map +1 -1
  77. package/dist/harmony119.cjs +12 -99
  78. package/dist/harmony119.cjs.map +1 -1
  79. package/dist/harmony119.mjs +11 -81
  80. package/dist/harmony119.mjs.map +1 -1
  81. package/dist/harmony120.cjs +5 -132
  82. package/dist/harmony120.cjs.map +1 -1
  83. package/dist/harmony120.mjs +5 -132
  84. package/dist/harmony120.mjs.map +1 -1
  85. package/dist/harmony121.cjs +40 -12
  86. package/dist/harmony121.cjs.map +1 -1
  87. package/dist/harmony121.mjs +39 -11
  88. package/dist/harmony121.mjs.map +1 -1
  89. package/dist/harmony122.cjs +59 -4
  90. package/dist/harmony122.cjs.map +1 -1
  91. package/dist/harmony122.mjs +60 -5
  92. package/dist/harmony122.mjs.map +1 -1
  93. package/dist/harmony123.cjs +6 -39
  94. package/dist/harmony123.cjs.map +1 -1
  95. package/dist/harmony123.mjs +6 -39
  96. package/dist/harmony123.mjs.map +1 -1
  97. package/dist/harmony124.cjs +6 -60
  98. package/dist/harmony124.cjs.map +1 -1
  99. package/dist/harmony124.mjs +5 -59
  100. package/dist/harmony124.mjs.map +1 -1
  101. package/dist/harmony125.cjs +6 -8
  102. package/dist/harmony125.cjs.map +1 -1
  103. package/dist/harmony125.mjs +5 -7
  104. package/dist/harmony125.mjs.map +1 -1
  105. package/dist/harmony126.cjs +5 -6
  106. package/dist/harmony126.cjs.map +1 -1
  107. package/dist/harmony126.mjs +5 -6
  108. package/dist/harmony127.cjs +88 -6
  109. package/dist/harmony127.cjs.map +1 -1
  110. package/dist/harmony127.mjs +87 -5
  111. package/dist/harmony127.mjs.map +1 -1
  112. package/dist/harmony128.cjs +31 -6
  113. package/dist/harmony128.cjs.map +1 -1
  114. package/dist/harmony128.mjs +30 -5
  115. package/dist/harmony128.mjs.map +1 -1
  116. package/dist/harmony129.cjs +96 -10
  117. package/dist/harmony129.cjs.map +1 -1
  118. package/dist/harmony129.mjs +96 -10
  119. package/dist/harmony129.mjs.map +1 -1
  120. package/dist/harmony130.cjs +13 -62
  121. package/dist/harmony130.cjs.map +1 -1
  122. package/dist/harmony130.mjs +12 -61
  123. package/dist/harmony130.mjs.map +1 -1
  124. package/dist/harmony131.cjs +13 -87
  125. package/dist/harmony131.cjs.map +1 -1
  126. package/dist/harmony131.mjs +13 -87
  127. package/dist/harmony131.mjs.map +1 -1
  128. package/dist/harmony132.cjs +37 -19
  129. package/dist/harmony132.cjs.map +1 -1
  130. package/dist/harmony132.mjs +36 -18
  131. package/dist/harmony132.mjs.map +1 -1
  132. package/dist/harmony133.cjs +19 -87
  133. package/dist/harmony133.cjs.map +1 -1
  134. package/dist/harmony133.mjs +19 -87
  135. package/dist/harmony133.mjs.map +1 -1
  136. package/dist/harmony134.cjs +62 -13
  137. package/dist/harmony134.cjs.map +1 -1
  138. package/dist/harmony134.mjs +61 -12
  139. package/dist/harmony134.mjs.map +1 -1
  140. package/dist/harmony135.cjs +87 -13
  141. package/dist/harmony135.cjs.map +1 -1
  142. package/dist/harmony135.mjs +87 -13
  143. package/dist/harmony135.mjs.map +1 -1
  144. package/dist/harmony136.cjs +19 -37
  145. package/dist/harmony136.cjs.map +1 -1
  146. package/dist/harmony136.mjs +18 -36
  147. package/dist/harmony136.mjs.map +1 -1
  148. package/dist/harmony137.cjs +10 -28
  149. package/dist/harmony137.cjs.map +1 -1
  150. package/dist/harmony137.mjs +10 -28
  151. package/dist/harmony137.mjs.map +1 -1
  152. package/dist/harmony138.cjs +13 -7
  153. package/dist/harmony138.cjs.map +1 -1
  154. package/dist/harmony138.mjs +13 -7
  155. package/dist/harmony138.mjs.map +1 -1
  156. package/dist/harmony139.cjs +15 -57
  157. package/dist/harmony139.cjs.map +1 -1
  158. package/dist/harmony139.mjs +15 -57
  159. package/dist/harmony139.mjs.map +1 -1
  160. package/dist/harmony14.cjs +1 -1
  161. package/dist/harmony14.mjs +1 -1
  162. package/dist/harmony140.cjs +15 -59
  163. package/dist/harmony140.cjs.map +1 -1
  164. package/dist/harmony140.mjs +15 -59
  165. package/dist/harmony140.mjs.map +1 -1
  166. package/dist/harmony141.cjs +7 -18
  167. package/dist/harmony141.cjs.map +1 -1
  168. package/dist/harmony141.mjs +6 -17
  169. package/dist/harmony141.mjs.map +1 -1
  170. package/dist/harmony142.cjs +57 -13
  171. package/dist/harmony142.cjs.map +1 -1
  172. package/dist/harmony142.mjs +57 -13
  173. package/dist/harmony142.mjs.map +1 -1
  174. package/dist/harmony143.cjs +59 -14
  175. package/dist/harmony143.cjs.map +1 -1
  176. package/dist/harmony143.mjs +59 -14
  177. package/dist/harmony143.mjs.map +1 -1
  178. package/dist/harmony144.cjs +19 -17
  179. package/dist/harmony144.cjs.map +1 -1
  180. package/dist/harmony144.mjs +18 -16
  181. package/dist/harmony144.mjs.map +1 -1
  182. package/dist/harmony145.cjs +1 -1
  183. package/dist/harmony145.mjs +1 -1
  184. package/dist/harmony147.cjs +3 -3
  185. package/dist/harmony147.mjs +3 -3
  186. package/dist/harmony149.cjs +6 -46
  187. package/dist/harmony149.cjs.map +1 -1
  188. package/dist/harmony149.mjs +6 -46
  189. package/dist/harmony149.mjs.map +1 -1
  190. package/dist/harmony150.cjs +13 -13
  191. package/dist/harmony150.cjs.map +1 -1
  192. package/dist/harmony150.mjs +12 -12
  193. package/dist/harmony150.mjs.map +1 -1
  194. package/dist/harmony151.cjs +31 -5
  195. package/dist/harmony151.cjs.map +1 -1
  196. package/dist/harmony151.mjs +31 -5
  197. package/dist/harmony151.mjs.map +1 -1
  198. package/dist/harmony152.cjs +13 -11
  199. package/dist/harmony152.cjs.map +1 -1
  200. package/dist/harmony152.mjs +13 -11
  201. package/dist/harmony152.mjs.map +1 -1
  202. package/dist/harmony153.cjs +45 -31
  203. package/dist/harmony153.cjs.map +1 -1
  204. package/dist/harmony153.mjs +45 -31
  205. package/dist/harmony153.mjs.map +1 -1
  206. package/dist/harmony154.cjs +13 -15
  207. package/dist/harmony154.cjs.map +1 -1
  208. package/dist/harmony154.mjs +12 -14
  209. package/dist/harmony154.mjs.map +1 -1
  210. package/dist/harmony17.cjs +1 -1
  211. package/dist/harmony17.mjs +1 -1
  212. package/dist/harmony25.cjs +1 -1
  213. package/dist/harmony25.mjs +1 -1
  214. package/dist/harmony26.cjs +1 -1
  215. package/dist/harmony26.mjs +1 -1
  216. package/dist/harmony67.cjs +2 -1
  217. package/dist/harmony67.cjs.map +1 -1
  218. package/dist/harmony67.mjs +2 -1
  219. package/dist/harmony67.mjs.map +1 -1
  220. package/dist/harmony71.cjs +1 -1
  221. package/dist/harmony71.cjs.map +1 -1
  222. package/dist/harmony71.mjs +1 -1
  223. package/dist/harmony71.mjs.map +1 -1
  224. package/dist/harmony75.cjs +1 -1
  225. package/dist/harmony75.mjs +1 -1
  226. package/dist/harmony77.cjs +1 -1
  227. package/dist/harmony77.mjs +1 -1
  228. package/dist/harmony78.cjs +1 -1
  229. package/dist/harmony78.mjs +1 -1
  230. package/dist/harmony79.cjs +1 -1
  231. package/dist/harmony79.mjs +1 -1
  232. package/dist/harmony80.cjs +2 -2
  233. package/dist/harmony80.mjs +2 -2
  234. package/dist/harmony81.cjs +2 -2
  235. package/dist/harmony81.mjs +2 -2
  236. package/dist/harmony82.cjs +2 -2
  237. package/dist/harmony82.mjs +2 -2
  238. package/dist/harmony83.cjs +2 -2
  239. package/dist/harmony83.mjs +2 -2
  240. package/dist/harmony84.cjs +3 -3
  241. package/dist/harmony84.mjs +3 -3
  242. package/dist/harmony85.cjs +6 -6
  243. package/dist/harmony85.mjs +6 -6
  244. package/dist/harmony88.cjs +2 -2
  245. package/dist/harmony88.mjs +2 -2
  246. package/dist/harmony92.cjs +2 -2
  247. package/dist/harmony92.mjs +2 -2
  248. package/dist/harmony98.cjs +6 -166
  249. package/dist/harmony98.cjs.map +1 -1
  250. package/dist/harmony98.mjs +5 -165
  251. package/dist/harmony98.mjs.map +1 -1
  252. package/dist/harmony99.cjs +9 -44
  253. package/dist/harmony99.cjs.map +1 -1
  254. package/dist/harmony99.mjs +8 -43
  255. package/dist/harmony99.mjs.map +1 -1
  256. package/dist/types/src/features/publicApi/hooks/useCreateScoreMutation.d.ts +1 -0
  257. package/dist/types/src/features/publicApi/hooks/useGetScoreQuery.d.ts +1 -0
  258. package/dist/types/src/features/publicApi/score.d.ts +10 -0
  259. package/dist/types/src/features/publicApi/teamUsers.d.ts +1 -1
  260. package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +13 -0
  261. package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +1 -1
  262. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { Menu as Menu$1, MenuList, Tooltip } from "@lokalise/louis";
3
3
  import { clsx } from "./harmony73.mjs";
4
- import styles from "./harmony102.mjs";
4
+ import styles from "./harmony100.mjs";
5
5
  const Menu = ({ children, icon: Icon }) => {
6
6
  return /* @__PURE__ */ jsx(
7
7
  Menu$1,
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const ProfileMenuContent = require("./harmony103.cjs");
5
- const ProfileMenuProvider = require("./harmony104.cjs");
4
+ const ProfileMenuContent = require("./harmony101.cjs");
5
+ const ProfileMenuProvider = require("./harmony102.cjs");
6
6
  const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuProvider.ProfileMenuProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContent.ProfileMenuContent, { children }) });
7
7
  exports.ProfileMenu = ProfileMenu;
8
8
  //# sourceMappingURL=harmony80.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { ProfileMenuContent } from "./harmony103.mjs";
3
- import { ProfileMenuProvider } from "./harmony104.mjs";
2
+ import { ProfileMenuContent } from "./harmony101.mjs";
3
+ import { ProfileMenuProvider } from "./harmony102.mjs";
4
4
  const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsx(ProfileMenuProvider, { config, children: /* @__PURE__ */ jsx(ProfileMenuContent, { children }) });
5
5
  export {
6
6
  ProfileMenu
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const louis = require("@lokalise/louis");
5
- const ProfileMenuContext = require("./harmony105.cjs");
6
- const ProfileSettingsMenuItem_module = require("./harmony106.cjs");
5
+ const ProfileMenuContext = require("./harmony103.cjs");
6
+ const ProfileSettingsMenuItem_module = require("./harmony104.cjs");
7
7
  const ProfileSettingsMenuItem = ({
8
8
  href,
9
9
  onClick,
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { MenuItem, MenuDivider } from "@lokalise/louis";
3
- import { useProfileMenu } from "./harmony105.mjs";
4
- import styles from "./harmony106.mjs";
3
+ import { useProfileMenu } from "./harmony103.mjs";
4
+ import styles from "./harmony104.mjs";
5
5
  const ProfileSettingsMenuItem = ({
6
6
  href,
7
7
  onClick,
@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const louis = require("@lokalise/louis");
5
5
  const plan = require("./harmony9.cjs");
6
- const ProfileMenuContext = require("./harmony105.cjs");
7
- const TeamMenuItem_module = require("./harmony107.cjs");
6
+ const ProfileMenuContext = require("./harmony103.cjs");
7
+ const TeamMenuItem_module = require("./harmony105.cjs");
8
8
  const TeamMenuItem = ({ team, onClick, hidePlanLabel }) => {
9
9
  const { currentTeam, planId } = ProfileMenuContext.useProfileMenu();
10
10
  const contextTeam = team || currentTeam;
@@ -1,8 +1,8 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { MenuItem, UserIcon } from "@lokalise/louis";
3
3
  import { isFreePlan, isTrialPlan } from "./harmony9.mjs";
4
- import { useProfileMenu } from "./harmony105.mjs";
5
- import styles from "./harmony107.mjs";
4
+ import { useProfileMenu } from "./harmony103.mjs";
5
+ import styles from "./harmony105.mjs";
6
6
  const TeamMenuItem = ({ team, onClick, hidePlanLabel }) => {
7
7
  const { currentTeam, planId } = useProfileMenu();
8
8
  const contextTeam = team || currentTeam;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const ProfileMenuContext = require("./harmony105.cjs");
4
+ const ProfileMenuContext = require("./harmony103.cjs");
5
5
  const TeamMenuItem = require("./harmony82.cjs");
6
- const TeamSwitch_module = require("./harmony108.cjs");
6
+ const TeamSwitch_module = require("./harmony106.cjs");
7
7
  const TeamSwitch = ({ onSwitchTeam }) => {
8
8
  const { otherTeams } = ProfileMenuContext.useProfileMenu();
9
9
  if (otherTeams.length === 0) {
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useProfileMenu } from "./harmony105.mjs";
2
+ import { useProfileMenu } from "./harmony103.mjs";
3
3
  import { TeamMenuItem } from "./harmony82.mjs";
4
- import styles from "./harmony108.mjs";
4
+ import styles from "./harmony106.mjs";
5
5
  const TeamSwitch = ({ onSwitchTeam }) => {
6
6
  const { otherTeams } = useProfileMenu();
7
7
  if (otherTeams.length === 0) {
@@ -3,9 +3,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const louis = require("@lokalise/louis");
5
5
  const plan = require("./harmony9.cjs");
6
- const UpgradeIcon = require("./harmony109.cjs");
7
- const ProfileMenuContext = require("./harmony105.cjs");
8
- const UpgradeMenuItem_module = require("./harmony110.cjs");
6
+ const UpgradeIcon = require("./harmony107.cjs");
7
+ const ProfileMenuContext = require("./harmony103.cjs");
8
+ const UpgradeMenuItem_module = require("./harmony108.cjs");
9
9
  const UpgradeMenuItem = ({ upgradeOptionHref }) => {
10
10
  const { planId, trialDaysLeft, showUpgradeCta } = ProfileMenuContext.useProfileMenu();
11
11
  if (!showUpgradeCta) {
@@ -1,9 +1,9 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { MenuItem } from "@lokalise/louis";
3
3
  import { isFreePlan } from "./harmony9.mjs";
4
- import { UpgradeIcon } from "./harmony109.mjs";
5
- import { useProfileMenu } from "./harmony105.mjs";
6
- import styles from "./harmony110.mjs";
4
+ import { UpgradeIcon } from "./harmony107.mjs";
5
+ import { useProfileMenu } from "./harmony103.mjs";
6
+ import styles from "./harmony108.mjs";
7
7
  const UpgradeMenuItem = ({ upgradeOptionHref }) => {
8
8
  const { planId, trialDaysLeft, showUpgradeCta } = useProfileMenu();
9
9
  if (!showUpgradeCta) {
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const floatingUi_core = require("./harmony120.cjs");
4
+ const floatingUi_core = require("./harmony118.cjs");
5
5
  const louis = require("@lokalise/louis");
6
6
  const useEffectOnce = require("./harmony13.cjs");
7
7
  const clsx = require("./harmony73.cjs");
8
8
  const React = require("react");
9
- const Tasks_module = require("./harmony121.cjs");
10
- const TasksContext = require("./harmony122.cjs");
11
- const TasksPopover = require("./harmony123.cjs");
12
- const TasksProvider = require("./harmony124.cjs");
13
- const taskEvents = require("./harmony125.cjs");
9
+ const Tasks_module = require("./harmony119.cjs");
10
+ const TasksContext = require("./harmony120.cjs");
11
+ const TasksPopover = require("./harmony121.cjs");
12
+ const TasksProvider = require("./harmony122.cjs");
13
+ const taskEvents = require("./harmony123.cjs");
14
14
  const Tasks = TasksProvider.withTasksContext(() => {
15
15
  const [open, setOpen] = React.useState(false);
16
16
  const { tasksCount } = TasksContext.useTasks();
@@ -1,14 +1,14 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { shift } from "./harmony120.mjs";
2
+ import { shift } from "./harmony118.mjs";
3
3
  import { Tooltip, Popover, Button, JobIcon } from "@lokalise/louis";
4
4
  import { useEffectOnce } from "./harmony13.mjs";
5
5
  import { clsx } from "./harmony73.mjs";
6
6
  import { useState } from "react";
7
- import styles from "./harmony121.mjs";
8
- import { useTasks } from "./harmony122.mjs";
9
- import { TasksPopover } from "./harmony123.mjs";
10
- import { withTasksContext } from "./harmony124.mjs";
11
- import { TaskEvents } from "./harmony125.mjs";
7
+ import styles from "./harmony119.mjs";
8
+ import { useTasks } from "./harmony120.mjs";
9
+ import { TasksPopover } from "./harmony121.mjs";
10
+ import { withTasksContext } from "./harmony122.mjs";
11
+ import { TaskEvents } from "./harmony123.mjs";
12
12
  const Tasks = withTasksContext(() => {
13
13
  const [open, setOpen] = useState(false);
14
14
  const { tasksCount } = useTasks();
@@ -4,8 +4,8 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const louis = require("@lokalise/louis");
5
5
  const clsx = require("./harmony73.cjs");
6
6
  const React = require("react");
7
- const NavItemContents = require("./harmony111.cjs");
8
- const styles_module = require("./harmony112.cjs");
7
+ const NavItemContents = require("./harmony109.cjs");
8
+ const styles_module = require("./harmony110.cjs");
9
9
  const NavigationTabsItem = React.forwardRef(
10
10
  ({ label, href = "", disabled = false, badge, onClick, novel }, ref) => /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { tooltip: "You do not have access to this function", show: disabled, children: /* @__PURE__ */ jsxRuntime.jsx(
11
11
  "div",
@@ -2,8 +2,8 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { Tooltip } from "@lokalise/louis";
3
3
  import { clsx } from "./harmony73.mjs";
4
4
  import { forwardRef } from "react";
5
- import { NavItemContents } from "./harmony111.mjs";
6
- import classes from "./harmony112.mjs";
5
+ import { NavItemContents } from "./harmony109.mjs";
6
+ import classes from "./harmony110.mjs";
7
7
  const NavigationTabsItem = forwardRef(
8
8
  ({ label, href = "", disabled = false, badge, onClick, novel }, ref) => /* @__PURE__ */ jsx(Tooltip, { tooltip: "You do not have access to this function", show: disabled, children: /* @__PURE__ */ jsx(
9
9
  "div",
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
- const useExpertNavigation = require("./harmony98.cjs");
5
- const useNextgenNavigation = require("./harmony99.cjs");
4
+ const useExpertNavigation = require("./harmony111.cjs");
5
+ const useNextgenNavigation = require("./harmony112.cjs");
6
6
  const isLegacyProject = (type) => {
7
7
  return type !== "marketing";
8
8
  };
@@ -1,6 +1,6 @@
1
1
  import { useMemo } from "react";
2
- import { useExpertNavigation } from "./harmony98.mjs";
3
- import { useNextgenNavigation } from "./harmony99.mjs";
2
+ import { useExpertNavigation } from "./harmony111.mjs";
3
+ import { useNextgenNavigation } from "./harmony112.mjs";
4
4
  const isLegacyProject = (type) => {
5
5
  return type !== "marketing";
6
6
  };
@@ -1,169 +1,9 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const React = require("react");
4
- const NavigationClientProvider = require("./harmony94.cjs");
5
- const toolbarVisibility = require("./harmony117.cjs");
6
- const useExpertNavigation = (enabled, project, contributor) => {
7
- const adminRights = (contributor == null ? void 0 : contributor.admin_rights) || [];
8
- const marketingSupportProjectSelectedAppSlug = "selected-app-slug";
9
- const navigationClient = NavigationClientProvider.useNavigationClient();
10
- const expertUrl = navigationClient.getExpertUrl();
11
- return React.useMemo(() => {
12
- if (!project || !enabled) {
13
- return [];
14
- }
15
- const navigationVisibility = toolbarVisibility.getProjectNavigationVisibilityMap(
16
- project,
17
- adminRights,
18
- () => true
19
- );
20
- const appsNavigationItem = {
21
- key: "apps",
22
- label: "Apps",
23
- isActive: (input) => input === "apps",
24
- link: `${expertUrl}/apps/${project.project_id}/`,
25
- ...navigationVisibility.apps
26
- };
27
- const appsNavigationItemArrInMainMenu = [];
28
- const appsNavigationItemArrInMoreMenu = [];
29
- if (project.project_type === "content_integration") {
30
- appsNavigationItemArrInMoreMenu.push(appsNavigationItem);
31
- } else {
32
- appsNavigationItemArrInMainMenu.push(appsNavigationItem);
33
- }
34
- return [
35
- {
36
- key: "edit",
37
- label: "Editor",
38
- link: `${expertUrl}/project/${project.project_id}/`,
39
- isActive: (input) => input === "edit",
40
- ...navigationVisibility.editor
41
- },
42
- {
43
- key: "files",
44
- label: "Files",
45
- link: `${expertUrl}/files/${project.project_id}/`,
46
- isActive: (input) => input === "files",
47
- ...navigationVisibility.files
48
- },
49
- ...project.project_type === "content_integration" ? [
50
- {
51
- key: "contentManagement",
52
- label: "Content management",
53
- isActive: (input) => input === "apps",
54
- link: `${expertUrl}/apps/${project.project_id}/${marketingSupportProjectSelectedAppSlug}`,
55
- ...navigationVisibility.contentManagement
56
- }
57
- ] : [
58
- {
59
- key: "upload",
60
- label: "Upload",
61
- link: `${expertUrl}/upload/${project.project_id}/`,
62
- isActive: (input) => input === "upload",
63
- ...navigationVisibility.upload
64
- },
65
- {
66
- key: "download",
67
- label: "Download",
68
- link: `${expertUrl}/download/${project.project_id}/`,
69
- isActive: (input) => input === "download",
70
- ...navigationVisibility.download
71
- }
72
- ],
73
- {
74
- key: "tasks",
75
- label: "Tasks",
76
- link: `${expertUrl}/tasks/${project.project_id}/`,
77
- isActive: (input) => input === "tasks",
78
- // TODO: Add task count
79
- // badge: taskCount,
80
- ...navigationVisibility.tasks
81
- },
82
- {
83
- key: "workflows",
84
- label: "Workflows",
85
- link: `${expertUrl}/workflows/${project.project_id}/`,
86
- isActive: (input) => input === "workflows",
87
- novel: "New",
88
- onClick: () => {
89
- window.location.assign(`${expertUrl}/workflows/${project.project_id}/`);
90
- },
91
- ...navigationVisibility.workflows
92
- },
93
- {
94
- key: "contributors",
95
- label: "Contributors",
96
- link: `${expertUrl}/contributors/${project.project_id}/`,
97
- isActive: (input) => input === "contributors",
98
- ...navigationVisibility.contributors
99
- },
100
- {
101
- key: "screenshots",
102
- label: "Screenshots",
103
- link: `${expertUrl}/screenshots/${project.project_id}/`,
104
- isActive: (input) => input === "screenshots",
105
- ...navigationVisibility.screenshots
106
- },
107
- {
108
- key: "glossary",
109
- label: "Glossary",
110
- link: `${expertUrl}/glossary/${project.project_id}/`,
111
- isActive: (input) => input === "glossary",
112
- ...navigationVisibility.glossary
113
- },
114
- ...appsNavigationItemArrInMainMenu,
115
- {
116
- key: "more",
117
- label: "More...",
118
- isActive: (input) => ["settings", "statistics", "duplicates", "live edit"].includes(input),
119
- ...navigationVisibility.more,
120
- dropdown: [
121
- [
122
- {
123
- link: `${expertUrl}/settings/${project.project_id}/`,
124
- label: "Settings",
125
- ...navigationVisibility.settings
126
- },
127
- {
128
- link: `${expertUrl}/settings/${project.project_id}/#branches`,
129
- label: "Branches",
130
- ...navigationVisibility.branches
131
- },
132
- {
133
- link: `${expertUrl}/settings/${project.project_id}/#ota-bundles`,
134
- label: "OTA Bundles",
135
- ...navigationVisibility.otaBundles
136
- },
137
- {
138
- link: `${expertUrl}/settings/${project.project_id}/#project-automations`,
139
- label: "Automations",
140
- ...navigationVisibility.automations
141
- },
142
- {
143
- link: `${expertUrl}/dupes/${project.project_id}/`,
144
- label: "Duplicate finder",
145
- ...navigationVisibility.duplicateFinder
146
- }
147
- ],
148
- [
149
- ...appsNavigationItemArrInMoreMenu,
150
- {
151
- // TODO: This could be problematic tab, because it is not a link and we can't just redirect. We need to find a workaround for that.
152
- label: "Activity",
153
- onClick: () => {
154
- },
155
- ...navigationVisibility.activity
156
- },
157
- {
158
- link: `${expertUrl}/statistics/${project.project_id}/`,
159
- label: "Statistics",
160
- ...navigationVisibility.statistics
161
- }
162
- ]
163
- ]
164
- }
165
- ];
166
- }, [project, adminRights, enabled, expertUrl]);
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const logoLink = "_logoLink_1baxb_1";
4
+ const styles = {
5
+ logoLink
167
6
  };
168
- exports.useExpertNavigation = useExpertNavigation;
7
+ exports.default = styles;
8
+ exports.logoLink = logoLink;
169
9
  //# sourceMappingURL=harmony98.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony98.cjs","sources":["../src/features/navigation/hooks/useExpertNavigation.ts"],"sourcesContent":["import type { Contributor, Project } from '@features/node'\nimport { useMemo } from 'react'\nimport { useNavigationClient } from '../providers/NavigationClientProvider'\nimport type { NavigationTabsItem } from '../types/navigation'\nimport { getProjectNavigationVisibilityMap } from '../utils/toolbarVisibility'\n\n// TODO: Validate features types\nexport const getIsFeatureEnabled = (features: Record<string, boolean>, name: string) => {\n\tconst featureState = features[name]\n\n\treturn (\n\t\tfeatureState !== null &&\n\t\tfeatureState !== undefined &&\n\t\t[true, 'on', 'true'].includes(featureState)\n\t)\n}\n\n/**\n * Hook to generate legacy navigation items using the existing structure\n * but with context API instead of Redux\n */\nexport const useExpertNavigation = (\n\tenabled: boolean,\n\tproject?: Project,\n\tcontributor?: Contributor,\n) => {\n\t// Use contributor data if provided, otherwise use defaults\n\tconst adminRights = contributor?.admin_rights || []\n\t// TODO: Implement selected app slug, small investigation is needed\n\tconst marketingSupportProjectSelectedAppSlug = 'selected-app-slug'\n\tconst navigationClient = useNavigationClient()\n\tconst expertUrl = navigationClient.getExpertUrl()\n\n\treturn useMemo(() => {\n\t\t// Get data from contexts instead of Redux, or use provided data\n\t\tif (!project || !enabled) {\n\t\t\treturn []\n\t\t}\n\t\t/* TODO: We're missing badges API. We need to get it from the backend or find alternative way to get task count\n\t\t * Fetch tasks and calculate count is not a good idea, because it can have pagination, therefore we can\n\t\t * ask for an additional prop in tasks response: task_count based on branch_id + project_id + task_status\n\t\t */\n\t\t// const taskCount = getTaskCount(project, branch, badges.tasks)\n\n\t\t// TODO: Implement feature flags functionality, most likely separate package\n\t\t// const isFeatureEnabled = (feature: string) => getIsFeatureEnabled(features, feature)\n\n\t\tconst navigationVisibility = getProjectNavigationVisibilityMap(\n\t\t\tproject,\n\t\t\tadminRights,\n\t\t\t() => true /*isFeatureEnabled*/,\n\t\t)\n\n\t\tconst appsNavigationItem: NavigationTabsItem = {\n\t\t\tkey: 'apps',\n\t\t\tlabel: 'Apps',\n\t\t\tisActive: (input: string) => input === 'apps',\n\t\t\tlink: `${expertUrl}/apps/${project.project_id}/`,\n\t\t\t...navigationVisibility.apps,\n\t\t}\n\n\t\tconst appsNavigationItemArrInMainMenu: NavigationTabsItem[] = []\n\t\tconst appsNavigationItemArrInMoreMenu: NavigationTabsItem[] = []\n\n\t\tif (project.project_type === 'content_integration') {\n\t\t\tappsNavigationItemArrInMoreMenu.push(appsNavigationItem)\n\t\t} else {\n\t\t\tappsNavigationItemArrInMainMenu.push(appsNavigationItem)\n\t\t}\n\n\t\treturn [\n\t\t\t{\n\t\t\t\tkey: 'edit',\n\t\t\t\tlabel: 'Editor',\n\t\t\t\tlink: `${expertUrl}/project/${project.project_id}/`,\n\t\t\t\tisActive: (input: string) => input === 'edit',\n\t\t\t\t...navigationVisibility.editor,\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: 'files',\n\t\t\t\tlabel: 'Files',\n\t\t\t\tlink: `${expertUrl}/files/${project.project_id}/`,\n\t\t\t\tisActive: (input: string) => input === 'files',\n\t\t\t\t...navigationVisibility.files,\n\t\t\t},\n\t\t\t...(project.project_type === 'content_integration'\n\t\t\t\t? [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tkey: 'contentManagement',\n\t\t\t\t\t\t\tlabel: 'Content management',\n\t\t\t\t\t\t\tisActive: (input: string) => input === 'apps',\n\t\t\t\t\t\t\tlink: `${expertUrl}/apps/${project.project_id}/${marketingSupportProjectSelectedAppSlug}`,\n\t\t\t\t\t\t\t...navigationVisibility.contentManagement,\n\t\t\t\t\t\t},\n\t\t\t\t\t]\n\t\t\t\t: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tkey: 'upload',\n\t\t\t\t\t\t\tlabel: 'Upload',\n\t\t\t\t\t\t\tlink: `${expertUrl}/upload/${project.project_id}/`,\n\t\t\t\t\t\t\tisActive: (input: string) => input === 'upload',\n\t\t\t\t\t\t\t...navigationVisibility.upload,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tkey: 'download',\n\t\t\t\t\t\t\tlabel: 'Download',\n\t\t\t\t\t\t\tlink: `${expertUrl}/download/${project.project_id}/`,\n\t\t\t\t\t\t\tisActive: (input: string) => input === 'download',\n\t\t\t\t\t\t\t...navigationVisibility.download,\n\t\t\t\t\t\t},\n\t\t\t\t\t]),\n\t\t\t{\n\t\t\t\tkey: 'tasks',\n\t\t\t\tlabel: 'Tasks',\n\t\t\t\tlink: `${expertUrl}/tasks/${project.project_id}/`,\n\t\t\t\tisActive: (input: string) => input === 'tasks',\n\t\t\t\t// TODO: Add task count\n\t\t\t\t// badge: taskCount,\n\t\t\t\t...navigationVisibility.tasks,\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: 'workflows',\n\t\t\t\tlabel: 'Workflows',\n\t\t\t\tlink: `${expertUrl}/workflows/${project.project_id}/`,\n\t\t\t\tisActive: (input: string) => input === 'workflows',\n\t\t\t\tnovel: 'New',\n\t\t\t\tonClick: () => {\n\t\t\t\t\t// TODO: Resolve analytics globally, most likely separate package\n\t\t\t\t\t// track(AnalyticsEventName.EDITOR_WORKFLOWS_TAB_CLICKED);\n\t\t\t\t\twindow.location.assign(`${expertUrl}/workflows/${project.project_id}/`)\n\t\t\t\t},\n\t\t\t\t...navigationVisibility.workflows,\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: 'contributors',\n\t\t\t\tlabel: 'Contributors',\n\t\t\t\tlink: `${expertUrl}/contributors/${project.project_id}/`,\n\t\t\t\tisActive: (input: string) => input === 'contributors',\n\t\t\t\t...navigationVisibility.contributors,\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: 'screenshots',\n\t\t\t\tlabel: 'Screenshots',\n\t\t\t\tlink: `${expertUrl}/screenshots/${project.project_id}/`,\n\t\t\t\tisActive: (input: string) => input === 'screenshots',\n\t\t\t\t...navigationVisibility.screenshots,\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: 'glossary',\n\t\t\t\tlabel: 'Glossary',\n\t\t\t\tlink: `${expertUrl}/glossary/${project.project_id}/`,\n\t\t\t\tisActive: (input: string) => input === 'glossary',\n\t\t\t\t...navigationVisibility.glossary,\n\t\t\t},\n\t\t\t...appsNavigationItemArrInMainMenu,\n\t\t\t{\n\t\t\t\tkey: 'more',\n\t\t\t\tlabel: 'More...',\n\t\t\t\tisActive: (input: string) =>\n\t\t\t\t\t['settings', 'statistics', 'duplicates', 'live edit'].includes(input),\n\t\t\t\t...navigationVisibility.more,\n\t\t\t\tdropdown: [\n\t\t\t\t\t[\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlink: `${expertUrl}/settings/${project.project_id}/`,\n\t\t\t\t\t\t\tlabel: 'Settings',\n\t\t\t\t\t\t\t...navigationVisibility.settings,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlink: `${expertUrl}/settings/${project.project_id}/#branches`,\n\t\t\t\t\t\t\tlabel: 'Branches',\n\t\t\t\t\t\t\t...navigationVisibility.branches,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlink: `${expertUrl}/settings/${project.project_id}/#ota-bundles`,\n\t\t\t\t\t\t\tlabel: 'OTA Bundles',\n\t\t\t\t\t\t\t...navigationVisibility.otaBundles,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlink: `${expertUrl}/settings/${project.project_id}/#project-automations`,\n\t\t\t\t\t\t\tlabel: 'Automations',\n\t\t\t\t\t\t\t...navigationVisibility.automations,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlink: `${expertUrl}/dupes/${project.project_id}/`,\n\t\t\t\t\t\t\tlabel: 'Duplicate finder',\n\t\t\t\t\t\t\t...navigationVisibility.duplicateFinder,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t...appsNavigationItemArrInMoreMenu,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// TODO: This could be problematic tab, because it is not a link and we can't just redirect. We need to find a workaround for that.\n\t\t\t\t\t\t\tlabel: 'Activity',\n\t\t\t\t\t\t\tonClick: () => {\n\t\t\t\t\t\t\t\t// const showActivityEvent = new CustomEvent(\"show-activity\", {\n\t\t\t\t\t\t\t\t// \tdetail: {\n\t\t\t\t\t\t\t\t// \t\tprojectId: project.id,\n\t\t\t\t\t\t\t\t// \t\tbranchId: branch.branchId,\n\t\t\t\t\t\t\t\t// \t\tbranchName: branch.branchName,\n\t\t\t\t\t\t\t\t// \t},\n\t\t\t\t\t\t\t\t// });\n\t\t\t\t\t\t\t\t// document.dispatchEvent(showActivityEvent);\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t...navigationVisibility.activity,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlink: `${expertUrl}/statistics/${project.project_id}/`,\n\t\t\t\t\t\t\tlabel: 'Statistics',\n\t\t\t\t\t\t\t...navigationVisibility.statistics,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t},\n\t\t]\n\t}, [project, adminRights, enabled, expertUrl])\n}\n\n// TODO: Helper function for getting task count from badge data\n// const _getTaskCount = (project: any, branch: any, taskBadges: any) => {\n// \tif (!taskBadges) return 0\n\n// \t// Implementation would depend on your getTaskCountFromTasks utility\n// \t// Simplified version:\n// \tconst projectTasks = taskBadges[project.id] || {}\n// \treturn projectTasks[branch.branchId || 'master'] || 0\n// }\n"],"names":["useNavigationClient","useMemo","getProjectNavigationVisibilityMap"],"mappings":";;;;;AAqBO,MAAM,sBAAsB,CAClC,SACA,SACA,gBACI;AAEE,QAAA,eAAc,2CAAa,iBAAgB,CAAC;AAElD,QAAM,yCAAyC;AAC/C,QAAM,mBAAmBA,yBAAAA,oBAAoB;AACvC,QAAA,YAAY,iBAAiB,aAAa;AAEhD,SAAOC,cAAQ,MAAM;AAEhB,QAAA,CAAC,WAAW,CAAC,SAAS;AACzB,aAAO,CAAC;AAAA,IAAA;AAWT,UAAM,uBAAuBC,kBAAA;AAAA,MAC5B;AAAA,MACA;AAAA,MACA,MAAM;AAAA,IACP;AAEA,UAAM,qBAAyC;AAAA,MAC9C,KAAK;AAAA,MACL,OAAO;AAAA,MACP,UAAU,CAAC,UAAkB,UAAU;AAAA,MACvC,MAAM,GAAG,SA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zB;AAAA,YACA;AAAA,cACC,MAAM,GAAG,SAAS,aAAa,QAAQ,UAAU;AAAA,cACjD,OAAO;AAAA,cACP,GAAG,qBAAqB;AAAA,YACzB;AAAA,YACA;AAAA,cACC,MAAM,GAAG,SAAS,aAAa,QAAQ,UAAU;AAAA,cACjD,OAAO;AAAA,cACP,GAAG,qBAAqB;AAAA,YACzB;AAAA,YACA;AAAA,cACC,MAAM,GAAG,SAAS,aAAa,QAAQ,UAAU;AAAA,cACjD,OAAO;AAAA,cACP,GAAG,qBAAqB;AAAA,YACzB;AAAA,YACA;AAAA,cACC,MAAM,GAAG,SAAS,UAAU,QAAQ,UAAU;AAAA,cAC9C,OAAO;AAAA,cACP,GAAG,qBAAqB;AAAA,YAAA;AAAA,UAE1B;AAAA,UACA;AAAA,YACC,GAAG;AAAA,YACH;AAAA;AAAA,cAEC,OAAO;AAAA,cACP,SAAS,MAAM;AAAA,cASf;AAAA,cACA,GAAG,qBAAqB;AAAA,YACzB;AAAA,YACA;AAAA,cACC,MAAM,GAAG,SAAS,eAAe,QAAQ,UAAU;AAAA,cACnD,OAAO;AAAA,cACP,GAAG,qBAAqB;AAAA,YAAA;AAAA,UACzB;AAAA,QACD;AAAA,MACD;AAAA,IAEF;AAAA,KACE,CAAC,SAAS,aAAa,SAAS,SAAS,CAAC;AAC9C;;"}
1
+ {"version":3,"file":"harmony98.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,169 +1,9 @@
1
- import { useMemo } from "react";
2
- import { useNavigationClient } from "./harmony94.mjs";
3
- import { getProjectNavigationVisibilityMap } from "./harmony117.mjs";
4
- const useExpertNavigation = (enabled, project, contributor) => {
5
- const adminRights = (contributor == null ? void 0 : contributor.admin_rights) || [];
6
- const marketingSupportProjectSelectedAppSlug = "selected-app-slug";
7
- const navigationClient = useNavigationClient();
8
- const expertUrl = navigationClient.getExpertUrl();
9
- return useMemo(() => {
10
- if (!project || !enabled) {
11
- return [];
12
- }
13
- const navigationVisibility = getProjectNavigationVisibilityMap(
14
- project,
15
- adminRights,
16
- () => true
17
- );
18
- const appsNavigationItem = {
19
- key: "apps",
20
- label: "Apps",
21
- isActive: (input) => input === "apps",
22
- link: `${expertUrl}/apps/${project.project_id}/`,
23
- ...navigationVisibility.apps
24
- };
25
- const appsNavigationItemArrInMainMenu = [];
26
- const appsNavigationItemArrInMoreMenu = [];
27
- if (project.project_type === "content_integration") {
28
- appsNavigationItemArrInMoreMenu.push(appsNavigationItem);
29
- } else {
30
- appsNavigationItemArrInMainMenu.push(appsNavigationItem);
31
- }
32
- return [
33
- {
34
- key: "edit",
35
- label: "Editor",
36
- link: `${expertUrl}/project/${project.project_id}/`,
37
- isActive: (input) => input === "edit",
38
- ...navigationVisibility.editor
39
- },
40
- {
41
- key: "files",
42
- label: "Files",
43
- link: `${expertUrl}/files/${project.project_id}/`,
44
- isActive: (input) => input === "files",
45
- ...navigationVisibility.files
46
- },
47
- ...project.project_type === "content_integration" ? [
48
- {
49
- key: "contentManagement",
50
- label: "Content management",
51
- isActive: (input) => input === "apps",
52
- link: `${expertUrl}/apps/${project.project_id}/${marketingSupportProjectSelectedAppSlug}`,
53
- ...navigationVisibility.contentManagement
54
- }
55
- ] : [
56
- {
57
- key: "upload",
58
- label: "Upload",
59
- link: `${expertUrl}/upload/${project.project_id}/`,
60
- isActive: (input) => input === "upload",
61
- ...navigationVisibility.upload
62
- },
63
- {
64
- key: "download",
65
- label: "Download",
66
- link: `${expertUrl}/download/${project.project_id}/`,
67
- isActive: (input) => input === "download",
68
- ...navigationVisibility.download
69
- }
70
- ],
71
- {
72
- key: "tasks",
73
- label: "Tasks",
74
- link: `${expertUrl}/tasks/${project.project_id}/`,
75
- isActive: (input) => input === "tasks",
76
- // TODO: Add task count
77
- // badge: taskCount,
78
- ...navigationVisibility.tasks
79
- },
80
- {
81
- key: "workflows",
82
- label: "Workflows",
83
- link: `${expertUrl}/workflows/${project.project_id}/`,
84
- isActive: (input) => input === "workflows",
85
- novel: "New",
86
- onClick: () => {
87
- window.location.assign(`${expertUrl}/workflows/${project.project_id}/`);
88
- },
89
- ...navigationVisibility.workflows
90
- },
91
- {
92
- key: "contributors",
93
- label: "Contributors",
94
- link: `${expertUrl}/contributors/${project.project_id}/`,
95
- isActive: (input) => input === "contributors",
96
- ...navigationVisibility.contributors
97
- },
98
- {
99
- key: "screenshots",
100
- label: "Screenshots",
101
- link: `${expertUrl}/screenshots/${project.project_id}/`,
102
- isActive: (input) => input === "screenshots",
103
- ...navigationVisibility.screenshots
104
- },
105
- {
106
- key: "glossary",
107
- label: "Glossary",
108
- link: `${expertUrl}/glossary/${project.project_id}/`,
109
- isActive: (input) => input === "glossary",
110
- ...navigationVisibility.glossary
111
- },
112
- ...appsNavigationItemArrInMainMenu,
113
- {
114
- key: "more",
115
- label: "More...",
116
- isActive: (input) => ["settings", "statistics", "duplicates", "live edit"].includes(input),
117
- ...navigationVisibility.more,
118
- dropdown: [
119
- [
120
- {
121
- link: `${expertUrl}/settings/${project.project_id}/`,
122
- label: "Settings",
123
- ...navigationVisibility.settings
124
- },
125
- {
126
- link: `${expertUrl}/settings/${project.project_id}/#branches`,
127
- label: "Branches",
128
- ...navigationVisibility.branches
129
- },
130
- {
131
- link: `${expertUrl}/settings/${project.project_id}/#ota-bundles`,
132
- label: "OTA Bundles",
133
- ...navigationVisibility.otaBundles
134
- },
135
- {
136
- link: `${expertUrl}/settings/${project.project_id}/#project-automations`,
137
- label: "Automations",
138
- ...navigationVisibility.automations
139
- },
140
- {
141
- link: `${expertUrl}/dupes/${project.project_id}/`,
142
- label: "Duplicate finder",
143
- ...navigationVisibility.duplicateFinder
144
- }
145
- ],
146
- [
147
- ...appsNavigationItemArrInMoreMenu,
148
- {
149
- // TODO: This could be problematic tab, because it is not a link and we can't just redirect. We need to find a workaround for that.
150
- label: "Activity",
151
- onClick: () => {
152
- },
153
- ...navigationVisibility.activity
154
- },
155
- {
156
- link: `${expertUrl}/statistics/${project.project_id}/`,
157
- label: "Statistics",
158
- ...navigationVisibility.statistics
159
- }
160
- ]
161
- ]
162
- }
163
- ];
164
- }, [project, adminRights, enabled, expertUrl]);
1
+ const logoLink = "_logoLink_1baxb_1";
2
+ const styles = {
3
+ logoLink
165
4
  };
166
5
  export {
167
- useExpertNavigation
6
+ styles as default,
7
+ logoLink
168
8
  };
169
9
  //# sourceMappingURL=harmony98.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony98.mjs","sources":["../src/features/navigation/hooks/useExpertNavigation.ts"],"sourcesContent":["import type { Contributor, Project } from '@features/node'\nimport { useMemo } from 'react'\nimport { useNavigationClient } from '../providers/NavigationClientProvider'\nimport type { NavigationTabsItem } from '../types/navigation'\nimport { getProjectNavigationVisibilityMap } from '../utils/toolbarVisibility'\n\n// TODO: Validate features types\nexport const getIsFeatureEnabled = (features: Record<string, boolean>, name: string) => {\n\tconst featureState = features[name]\n\n\treturn (\n\t\tfeatureState !== null &&\n\t\tfeatureState !== undefined &&\n\t\t[true, 'on', 'true'].includes(featureState)\n\t)\n}\n\n/**\n * Hook to generate legacy navigation items using the existing structure\n * but with context API instead of Redux\n */\nexport const useExpertNavigation = (\n\tenabled: boolean,\n\tproject?: Project,\n\tcontributor?: Contributor,\n) => {\n\t// Use contributor data if provided, otherwise use defaults\n\tconst adminRights = contributor?.admin_rights || []\n\t// TODO: Implement selected app slug, small investigation is needed\n\tconst marketingSupportProjectSelectedAppSlug = 'selected-app-slug'\n\tconst navigationClient = useNavigationClient()\n\tconst expertUrl = navigationClient.getExpertUrl()\n\n\treturn useMemo(() => {\n\t\t// Get data from contexts instead of Redux, or use provided data\n\t\tif (!project || !enabled) {\n\t\t\treturn []\n\t\t}\n\t\t/* TODO: We're missing badges API. We need to get it from the backend or find alternative way to get task count\n\t\t * Fetch tasks and calculate count is not a good idea, because it can have pagination, therefore we can\n\t\t * ask for an additional prop in tasks response: task_count based on branch_id + project_id + task_status\n\t\t */\n\t\t// const taskCount = getTaskCount(project, branch, badges.tasks)\n\n\t\t// TODO: Implement feature flags functionality, most likely separate package\n\t\t// const isFeatureEnabled = (feature: string) => getIsFeatureEnabled(features, feature)\n\n\t\tconst navigationVisibility = getProjectNavigationVisibilityMap(\n\t\t\tproject,\n\t\t\tadminRights,\n\t\t\t() => true /*isFeatureEnabled*/,\n\t\t)\n\n\t\tconst appsNavigationItem: NavigationTabsItem = {\n\t\t\tkey: 'apps',\n\t\t\tlabel: 'Apps',\n\t\t\tisActive: (input: string) => input === 'apps',\n\t\t\tlink: `${expertUrl}/apps/${project.project_id}/`,\n\t\t\t...navigationVisibility.apps,\n\t\t}\n\n\t\tconst appsNavigationItemArrInMainMenu: NavigationTabsItem[] = []\n\t\tconst appsNavigationItemArrInMoreMenu: NavigationTabsItem[] = []\n\n\t\tif (project.project_type === 'content_integration') {\n\t\t\tappsNavigationItemArrInMoreMenu.push(appsNavigationItem)\n\t\t} else {\n\t\t\tappsNavigationItemArrInMainMenu.push(appsNavigationItem)\n\t\t}\n\n\t\treturn [\n\t\t\t{\n\t\t\t\tkey: 'edit',\n\t\t\t\tlabel: 'Editor',\n\t\t\t\tlink: `${expertUrl}/project/${project.project_id}/`,\n\t\t\t\tisActive: (input: string) => input === 'edit',\n\t\t\t\t...navigationVisibility.editor,\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: 'files',\n\t\t\t\tlabel: 'Files',\n\t\t\t\tlink: `${expertUrl}/files/${project.project_id}/`,\n\t\t\t\tisActive: (input: string) => input === 'files',\n\t\t\t\t...navigationVisibility.files,\n\t\t\t},\n\t\t\t...(project.project_type === 'content_integration'\n\t\t\t\t? [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tkey: 'contentManagement',\n\t\t\t\t\t\t\tlabel: 'Content management',\n\t\t\t\t\t\t\tisActive: (input: string) => input === 'apps',\n\t\t\t\t\t\t\tlink: `${expertUrl}/apps/${project.project_id}/${marketingSupportProjectSelectedAppSlug}`,\n\t\t\t\t\t\t\t...navigationVisibility.contentManagement,\n\t\t\t\t\t\t},\n\t\t\t\t\t]\n\t\t\t\t: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tkey: 'upload',\n\t\t\t\t\t\t\tlabel: 'Upload',\n\t\t\t\t\t\t\tlink: `${expertUrl}/upload/${project.project_id}/`,\n\t\t\t\t\t\t\tisActive: (input: string) => input === 'upload',\n\t\t\t\t\t\t\t...navigationVisibility.upload,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tkey: 'download',\n\t\t\t\t\t\t\tlabel: 'Download',\n\t\t\t\t\t\t\tlink: `${expertUrl}/download/${project.project_id}/`,\n\t\t\t\t\t\t\tisActive: (input: string) => input === 'download',\n\t\t\t\t\t\t\t...navigationVisibility.download,\n\t\t\t\t\t\t},\n\t\t\t\t\t]),\n\t\t\t{\n\t\t\t\tkey: 'tasks',\n\t\t\t\tlabel: 'Tasks',\n\t\t\t\tlink: `${expertUrl}/tasks/${project.project_id}/`,\n\t\t\t\tisActive: (input: string) => input === 'tasks',\n\t\t\t\t// TODO: Add task count\n\t\t\t\t// badge: taskCount,\n\t\t\t\t...navigationVisibility.tasks,\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: 'workflows',\n\t\t\t\tlabel: 'Workflows',\n\t\t\t\tlink: `${expertUrl}/workflows/${project.project_id}/`,\n\t\t\t\tisActive: (input: string) => input === 'workflows',\n\t\t\t\tnovel: 'New',\n\t\t\t\tonClick: () => {\n\t\t\t\t\t// TODO: Resolve analytics globally, most likely separate package\n\t\t\t\t\t// track(AnalyticsEventName.EDITOR_WORKFLOWS_TAB_CLICKED);\n\t\t\t\t\twindow.location.assign(`${expertUrl}/workflows/${project.project_id}/`)\n\t\t\t\t},\n\t\t\t\t...navigationVisibility.workflows,\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: 'contributors',\n\t\t\t\tlabel: 'Contributors',\n\t\t\t\tlink: `${expertUrl}/contributors/${project.project_id}/`,\n\t\t\t\tisActive: (input: string) => input === 'contributors',\n\t\t\t\t...navigationVisibility.contributors,\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: 'screenshots',\n\t\t\t\tlabel: 'Screenshots',\n\t\t\t\tlink: `${expertUrl}/screenshots/${project.project_id}/`,\n\t\t\t\tisActive: (input: string) => input === 'screenshots',\n\t\t\t\t...navigationVisibility.screenshots,\n\t\t\t},\n\t\t\t{\n\t\t\t\tkey: 'glossary',\n\t\t\t\tlabel: 'Glossary',\n\t\t\t\tlink: `${expertUrl}/glossary/${project.project_id}/`,\n\t\t\t\tisActive: (input: string) => input === 'glossary',\n\t\t\t\t...navigationVisibility.glossary,\n\t\t\t},\n\t\t\t...appsNavigationItemArrInMainMenu,\n\t\t\t{\n\t\t\t\tkey: 'more',\n\t\t\t\tlabel: 'More...',\n\t\t\t\tisActive: (input: string) =>\n\t\t\t\t\t['settings', 'statistics', 'duplicates', 'live edit'].includes(input),\n\t\t\t\t...navigationVisibility.more,\n\t\t\t\tdropdown: [\n\t\t\t\t\t[\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlink: `${expertUrl}/settings/${project.project_id}/`,\n\t\t\t\t\t\t\tlabel: 'Settings',\n\t\t\t\t\t\t\t...navigationVisibility.settings,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlink: `${expertUrl}/settings/${project.project_id}/#branches`,\n\t\t\t\t\t\t\tlabel: 'Branches',\n\t\t\t\t\t\t\t...navigationVisibility.branches,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlink: `${expertUrl}/settings/${project.project_id}/#ota-bundles`,\n\t\t\t\t\t\t\tlabel: 'OTA Bundles',\n\t\t\t\t\t\t\t...navigationVisibility.otaBundles,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlink: `${expertUrl}/settings/${project.project_id}/#project-automations`,\n\t\t\t\t\t\t\tlabel: 'Automations',\n\t\t\t\t\t\t\t...navigationVisibility.automations,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlink: `${expertUrl}/dupes/${project.project_id}/`,\n\t\t\t\t\t\t\tlabel: 'Duplicate finder',\n\t\t\t\t\t\t\t...navigationVisibility.duplicateFinder,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t...appsNavigationItemArrInMoreMenu,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// TODO: This could be problematic tab, because it is not a link and we can't just redirect. We need to find a workaround for that.\n\t\t\t\t\t\t\tlabel: 'Activity',\n\t\t\t\t\t\t\tonClick: () => {\n\t\t\t\t\t\t\t\t// const showActivityEvent = new CustomEvent(\"show-activity\", {\n\t\t\t\t\t\t\t\t// \tdetail: {\n\t\t\t\t\t\t\t\t// \t\tprojectId: project.id,\n\t\t\t\t\t\t\t\t// \t\tbranchId: branch.branchId,\n\t\t\t\t\t\t\t\t// \t\tbranchName: branch.branchName,\n\t\t\t\t\t\t\t\t// \t},\n\t\t\t\t\t\t\t\t// });\n\t\t\t\t\t\t\t\t// document.dispatchEvent(showActivityEvent);\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t...navigationVisibility.activity,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlink: `${expertUrl}/statistics/${project.project_id}/`,\n\t\t\t\t\t\t\tlabel: 'Statistics',\n\t\t\t\t\t\t\t...navigationVisibility.statistics,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t],\n\t\t\t},\n\t\t]\n\t}, [project, adminRights, enabled, expertUrl])\n}\n\n// TODO: Helper function for getting task count from badge data\n// const _getTaskCount = (project: any, branch: any, taskBadges: any) => {\n// \tif (!taskBadges) return 0\n\n// \t// Implementation would depend on your getTaskCountFromTasks utility\n// \t// Simplified version:\n// \tconst projectTasks = taskBadges[project.id] || {}\n// \treturn projectTasks[branch.branchId || 'master'] || 0\n// }\n"],"names":[],"mappings":";;;AAqBO,MAAM,sBAAsB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