@lokalise/harmony 1.27.3-exp-fixTeamsTypes.8 → 1.27.3-exp-teamTypes.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.
- package/dist/harmony100.cjs +7 -5
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +7 -5
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +18 -40
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +18 -40
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +13 -59
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +13 -59
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +16 -7
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +16 -7
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +6 -5
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +6 -5
- package/dist/harmony105.cjs +5 -5
- package/dist/harmony105.mjs +5 -5
- package/dist/harmony106.cjs +5 -6
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +5 -6
- package/dist/harmony107.cjs +61 -95
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +61 -95
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +88 -13
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +88 -13
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +19 -15
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +18 -14
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +94 -34
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +94 -34
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +11 -26
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +11 -26
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +12 -60
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +12 -60
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +36 -88
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +36 -88
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +29 -19
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +28 -18
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +7 -13
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +7 -13
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +57 -15
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +57 -15
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +59 -15
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +59 -15
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +19 -12
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +18 -11
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +12 -15
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +12 -15
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +13 -19
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +13 -19
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +14 -10
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +14 -10
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +11 -7
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +11 -7
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +15 -56
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +15 -56
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +20 -59
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +20 -59
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +13 -19
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +12 -18
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +46 -6
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +46 -6
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +13 -13
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +12 -12
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +5 -31
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +5 -31
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +11 -13
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +11 -13
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +31 -45
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +31 -45
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +15 -13
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +14 -12
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony15.cjs +1 -1
- package/dist/harmony15.mjs +1 -1
- package/dist/harmony22.cjs +1 -1
- package/dist/harmony22.mjs +1 -1
- package/dist/harmony23.cjs +1 -1
- package/dist/harmony23.mjs +1 -1
- package/dist/harmony30.cjs +1 -1
- package/dist/harmony30.mjs +1 -1
- package/dist/harmony66.cjs +1 -1
- package/dist/harmony66.mjs +1 -1
- package/dist/harmony67.cjs +1 -1
- package/dist/harmony67.mjs +1 -1
- package/dist/harmony68.cjs +1 -1
- package/dist/harmony68.mjs +1 -1
- package/dist/harmony69.cjs +2 -2
- package/dist/harmony69.mjs +2 -2
- package/dist/harmony70.cjs +2 -2
- package/dist/harmony70.mjs +2 -2
- package/dist/harmony71.cjs +2 -2
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +2 -2
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs +2 -2
- package/dist/harmony72.mjs +2 -2
- package/dist/harmony73.cjs +3 -3
- package/dist/harmony73.mjs +3 -3
- package/dist/harmony74.cjs +6 -6
- package/dist/harmony74.mjs +6 -6
- package/dist/harmony77.cjs +2 -2
- package/dist/harmony77.mjs +2 -2
- package/dist/harmony79.cjs +7 -12
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +6 -11
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +8 -20
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +8 -20
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +6 -3
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +6 -3
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +57 -9
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +56 -8
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +33 -9
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +32 -8
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +5 -57
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +5 -57
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +9 -32
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +8 -31
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +25 -6
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +24 -5
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +3 -6
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +3 -6
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +21 -24
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +20 -23
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +9 -3
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +9 -3
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +9 -19
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +11 -21
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +20 -11
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +20 -11
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +2 -2
- package/dist/harmony92.mjs +2 -2
- package/dist/harmony93.cjs +22 -17
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +21 -16
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +6 -18
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +6 -18
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +130 -12
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +130 -12
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +9 -18
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +9 -18
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +5 -5
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +5 -5
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +37 -129
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +37 -129
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +60 -12
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +59 -11
- package/dist/harmony99.mjs.map +1 -1
- package/package.json +1 -1
package/dist/harmony84.cjs
CHANGED
@@ -1,60 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
const ProfileMenuContext = require("./harmony86.cjs");
|
9
|
-
const ProfileMenuContent = ({ children }) => {
|
10
|
-
const {
|
11
|
-
currentTeam,
|
12
|
-
otherTeams,
|
13
|
-
showUpgradeCta,
|
14
|
-
showBillingButton,
|
15
|
-
allowTeamCreation,
|
16
|
-
isProviderAlpha,
|
17
|
-
canAccessTeamSettings,
|
18
|
-
isEndOfTrialActive,
|
19
|
-
isTeamSuspended,
|
20
|
-
isFullyAuthenticated
|
21
|
-
} = ProfileMenuContext.useProfileMenu();
|
22
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
23
|
-
louis.Menu,
|
24
|
-
{
|
25
|
-
menuButton: () => /* @__PURE__ */ jsxRuntime.jsxs("button", { className: ProfileMenuContent_module.default.profileButton, "aria-label": "Profile menu", type: "button", children: [
|
26
|
-
(currentTeam == null ? void 0 : currentTeam.logoUrl) ? /* @__PURE__ */ jsxRuntime.jsx(
|
27
|
-
"img",
|
28
|
-
{
|
29
|
-
src: currentTeam.logoUrl,
|
30
|
-
className: clsx.clsx(ProfileMenuContent_module.default.profileImage, {
|
31
|
-
[ProfileMenuContent_module.default.profileImageHighlight]: showUpgradeCta
|
32
|
-
}),
|
33
|
-
alt: "Team Logo"
|
34
|
-
}
|
35
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
36
|
-
"div",
|
37
|
-
{
|
38
|
-
className: clsx.clsx(ProfileMenuContent_module.default.userIconWrapper, "flex-row", "align-center", "items-center", {
|
39
|
-
[ProfileMenuContent_module.default.profileImageHighlight]: showUpgradeCta
|
40
|
-
}),
|
41
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(louis.UserIcon, { size: "25px" })
|
42
|
-
}
|
43
|
-
),
|
44
|
-
showUpgradeCta && /* @__PURE__ */ jsxRuntime.jsx(UpgradeIcon.UpgradeIcon, { className: ProfileMenuContent_module.default.profileImageUpgradeIcon })
|
45
|
-
] }),
|
46
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(louis.MenuList, { placement: "right-end", className: ProfileMenuContent_module.default.menuContainer, children: children({
|
47
|
-
allowTeamCreation,
|
48
|
-
otherTeams,
|
49
|
-
canAccessTeamSettings,
|
50
|
-
isEndOfTrialActive,
|
51
|
-
isTeamSuspended,
|
52
|
-
showBillingButton,
|
53
|
-
isProviderAlpha,
|
54
|
-
isFullyAuthenticated
|
55
|
-
}) })
|
56
|
-
}
|
57
|
-
);
|
58
|
-
};
|
59
|
-
exports.ProfileMenuContent = ProfileMenuContent;
|
3
|
+
const React = require("react");
|
4
|
+
const ProfileMenuContext = React.createContext({});
|
5
|
+
const useProfileMenu = () => React.useContext(ProfileMenuContext);
|
6
|
+
exports.ProfileMenuContext = ProfileMenuContext;
|
7
|
+
exports.useProfileMenu = useProfileMenu;
|
60
8
|
//# sourceMappingURL=harmony84.cjs.map
|
package/dist/harmony84.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony84.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/
|
1
|
+
{"version":3,"file":"harmony84.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContext.ts"],"sourcesContent":["import { createContext, useContext } from 'react'\nimport type { SidebarProfileMenuContextProps } from './types'\n\nexport const ProfileMenuContext = createContext({} as SidebarProfileMenuContextProps)\n\nexport const useProfileMenu = () => useContext(ProfileMenuContext)\n"],"names":["createContext","useContext"],"mappings":";;;AAGa,MAAA,qBAAqBA,MAAc,cAAA,CAAoC,CAAA;AAEvE,MAAA,iBAAiB,MAAMC,MAAAA,WAAW,kBAAkB;;;"}
|
package/dist/harmony84.mjs
CHANGED
@@ -1,60 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
import { UpgradeIcon } from "./harmony90.mjs";
|
5
|
-
import styles from "./harmony96.mjs";
|
6
|
-
import { useProfileMenu } from "./harmony86.mjs";
|
7
|
-
const ProfileMenuContent = ({ children }) => {
|
8
|
-
const {
|
9
|
-
currentTeam,
|
10
|
-
otherTeams,
|
11
|
-
showUpgradeCta,
|
12
|
-
showBillingButton,
|
13
|
-
allowTeamCreation,
|
14
|
-
isProviderAlpha,
|
15
|
-
canAccessTeamSettings,
|
16
|
-
isEndOfTrialActive,
|
17
|
-
isTeamSuspended,
|
18
|
-
isFullyAuthenticated
|
19
|
-
} = useProfileMenu();
|
20
|
-
return /* @__PURE__ */ jsx(
|
21
|
-
Menu,
|
22
|
-
{
|
23
|
-
menuButton: () => /* @__PURE__ */ jsxs("button", { className: styles.profileButton, "aria-label": "Profile menu", type: "button", children: [
|
24
|
-
(currentTeam == null ? void 0 : currentTeam.logoUrl) ? /* @__PURE__ */ jsx(
|
25
|
-
"img",
|
26
|
-
{
|
27
|
-
src: currentTeam.logoUrl,
|
28
|
-
className: clsx(styles.profileImage, {
|
29
|
-
[styles.profileImageHighlight]: showUpgradeCta
|
30
|
-
}),
|
31
|
-
alt: "Team Logo"
|
32
|
-
}
|
33
|
-
) : /* @__PURE__ */ jsx(
|
34
|
-
"div",
|
35
|
-
{
|
36
|
-
className: clsx(styles.userIconWrapper, "flex-row", "align-center", "items-center", {
|
37
|
-
[styles.profileImageHighlight]: showUpgradeCta
|
38
|
-
}),
|
39
|
-
children: /* @__PURE__ */ jsx(UserIcon, { size: "25px" })
|
40
|
-
}
|
41
|
-
),
|
42
|
-
showUpgradeCta && /* @__PURE__ */ jsx(UpgradeIcon, { className: styles.profileImageUpgradeIcon })
|
43
|
-
] }),
|
44
|
-
children: /* @__PURE__ */ jsx(MenuList, { placement: "right-end", className: styles.menuContainer, children: children({
|
45
|
-
allowTeamCreation,
|
46
|
-
otherTeams,
|
47
|
-
canAccessTeamSettings,
|
48
|
-
isEndOfTrialActive,
|
49
|
-
isTeamSuspended,
|
50
|
-
showBillingButton,
|
51
|
-
isProviderAlpha,
|
52
|
-
isFullyAuthenticated
|
53
|
-
}) })
|
54
|
-
}
|
55
|
-
);
|
56
|
-
};
|
1
|
+
import { useContext, createContext } from "react";
|
2
|
+
const ProfileMenuContext = createContext({});
|
3
|
+
const useProfileMenu = () => useContext(ProfileMenuContext);
|
57
4
|
export {
|
58
|
-
|
5
|
+
ProfileMenuContext,
|
6
|
+
useProfileMenu
|
59
7
|
};
|
60
8
|
//# sourceMappingURL=harmony84.mjs.map
|
package/dist/harmony84.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony84.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/
|
1
|
+
{"version":3,"file":"harmony84.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContext.ts"],"sourcesContent":["import { createContext, useContext } from 'react'\nimport type { SidebarProfileMenuContextProps } from './types'\n\nexport const ProfileMenuContext = createContext({} as SidebarProfileMenuContextProps)\n\nexport const useProfileMenu = () => useContext(ProfileMenuContext)\n"],"names":[],"mappings":";AAGa,MAAA,qBAAqB,cAAc,CAAoC,CAAA;AAEvE,MAAA,iBAAiB,MAAM,WAAW,kBAAkB;"}
|
package/dist/harmony85.cjs
CHANGED
@@ -1,35 +1,12 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
types.SidebarTeamRoles.biller,
|
9
|
-
types.SidebarTeamRoles.owner
|
10
|
-
];
|
11
|
-
const ProfileMenuProvider = ({ children, config }) => {
|
12
|
-
const { teams, currentTeamId, planId, isEndOfTrialActive, isFullyAuthenticated, userTeamRole } = config;
|
13
|
-
const currentTeam = teams.find((t) => t.id === currentTeamId);
|
14
|
-
const otherTeams = teams.filter((t) => t.id !== currentTeamId);
|
15
|
-
const canChangeBilling = billingRoles.includes(userTeamRole);
|
16
|
-
const canAccessTeamSettings = billingRoles.includes(userTeamRole);
|
17
|
-
const isOnFreeOrTrialPlan = plan.isFreePlan(planId) || plan.isTrialPlan(planId);
|
18
|
-
const showUpgradeCta = isFullyAuthenticated && isOnFreeOrTrialPlan && canChangeBilling;
|
19
|
-
const showBillingButton = isFullyAuthenticated && canAccessTeamSettings && canChangeBilling;
|
20
|
-
const allowTeamCreation = isFullyAuthenticated && !isEndOfTrialActive;
|
21
|
-
const providerValue = {
|
22
|
-
...config,
|
23
|
-
currentTeam,
|
24
|
-
otherTeams,
|
25
|
-
canChangeBilling,
|
26
|
-
canAccessTeamSettings,
|
27
|
-
isOnFreeOrTrialPlan,
|
28
|
-
showUpgradeCta,
|
29
|
-
showBillingButton,
|
30
|
-
allowTeamCreation
|
31
|
-
};
|
32
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContext.ProfileMenuContext.Provider, { value: providerValue, children });
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const container = "_container_q5pot_1";
|
4
|
+
const profileEmail = "_profileEmail_q5pot_5";
|
5
|
+
const styles = {
|
6
|
+
container,
|
7
|
+
profileEmail
|
33
8
|
};
|
34
|
-
exports.
|
9
|
+
exports.container = container;
|
10
|
+
exports.default = styles;
|
11
|
+
exports.profileEmail = profileEmail;
|
35
12
|
//# sourceMappingURL=harmony85.cjs.map
|
package/dist/harmony85.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony85.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony85.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/harmony85.mjs
CHANGED
@@ -1,35 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
SidebarTeamRoles.biller,
|
7
|
-
SidebarTeamRoles.owner
|
8
|
-
];
|
9
|
-
const ProfileMenuProvider = ({ children, config }) => {
|
10
|
-
const { teams, currentTeamId, planId, isEndOfTrialActive, isFullyAuthenticated, userTeamRole } = config;
|
11
|
-
const currentTeam = teams.find((t) => t.id === currentTeamId);
|
12
|
-
const otherTeams = teams.filter((t) => t.id !== currentTeamId);
|
13
|
-
const canChangeBilling = billingRoles.includes(userTeamRole);
|
14
|
-
const canAccessTeamSettings = billingRoles.includes(userTeamRole);
|
15
|
-
const isOnFreeOrTrialPlan = isFreePlan(planId) || isTrialPlan(planId);
|
16
|
-
const showUpgradeCta = isFullyAuthenticated && isOnFreeOrTrialPlan && canChangeBilling;
|
17
|
-
const showBillingButton = isFullyAuthenticated && canAccessTeamSettings && canChangeBilling;
|
18
|
-
const allowTeamCreation = isFullyAuthenticated && !isEndOfTrialActive;
|
19
|
-
const providerValue = {
|
20
|
-
...config,
|
21
|
-
currentTeam,
|
22
|
-
otherTeams,
|
23
|
-
canChangeBilling,
|
24
|
-
canAccessTeamSettings,
|
25
|
-
isOnFreeOrTrialPlan,
|
26
|
-
showUpgradeCta,
|
27
|
-
showBillingButton,
|
28
|
-
allowTeamCreation
|
29
|
-
};
|
30
|
-
return /* @__PURE__ */ jsx(ProfileMenuContext.Provider, { value: providerValue, children });
|
1
|
+
const container = "_container_q5pot_1";
|
2
|
+
const profileEmail = "_profileEmail_q5pot_5";
|
3
|
+
const styles = {
|
4
|
+
container,
|
5
|
+
profileEmail
|
31
6
|
};
|
32
7
|
export {
|
33
|
-
|
8
|
+
container,
|
9
|
+
styles as default,
|
10
|
+
profileEmail
|
34
11
|
};
|
35
12
|
//# sourceMappingURL=harmony85.mjs.map
|
package/dist/harmony85.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony85.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony85.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/harmony86.cjs
CHANGED
@@ -1,8 +1,27 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const wrapper = "_wrapper_1in7x_5";
|
4
|
+
const profileImage = "_profileImage_1in7x_11";
|
5
|
+
const teamDetails = "_teamDetails_1in7x_19";
|
6
|
+
const planWrapper = "_planWrapper_1in7x_28";
|
7
|
+
const teamName = "_teamName_1in7x_36";
|
8
|
+
const membership = "_membership_1in7x_53";
|
9
|
+
const defaultProfileImage = "_defaultProfileImage_1in7x_59";
|
10
|
+
const styles = {
|
11
|
+
wrapper,
|
12
|
+
profileImage,
|
13
|
+
teamDetails,
|
14
|
+
planWrapper,
|
15
|
+
teamName,
|
16
|
+
membership,
|
17
|
+
defaultProfileImage
|
18
|
+
};
|
19
|
+
exports.default = styles;
|
20
|
+
exports.defaultProfileImage = defaultProfileImage;
|
21
|
+
exports.membership = membership;
|
22
|
+
exports.planWrapper = planWrapper;
|
23
|
+
exports.profileImage = profileImage;
|
24
|
+
exports.teamDetails = teamDetails;
|
25
|
+
exports.teamName = teamName;
|
26
|
+
exports.wrapper = wrapper;
|
8
27
|
//# sourceMappingURL=harmony86.cjs.map
|
package/dist/harmony86.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony86.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony86.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/harmony86.mjs
CHANGED
@@ -1,8 +1,27 @@
|
|
1
|
-
|
2
|
-
const
|
3
|
-
const
|
1
|
+
const wrapper = "_wrapper_1in7x_5";
|
2
|
+
const profileImage = "_profileImage_1in7x_11";
|
3
|
+
const teamDetails = "_teamDetails_1in7x_19";
|
4
|
+
const planWrapper = "_planWrapper_1in7x_28";
|
5
|
+
const teamName = "_teamName_1in7x_36";
|
6
|
+
const membership = "_membership_1in7x_53";
|
7
|
+
const defaultProfileImage = "_defaultProfileImage_1in7x_59";
|
8
|
+
const styles = {
|
9
|
+
wrapper,
|
10
|
+
profileImage,
|
11
|
+
teamDetails,
|
12
|
+
planWrapper,
|
13
|
+
teamName,
|
14
|
+
membership,
|
15
|
+
defaultProfileImage
|
16
|
+
};
|
4
17
|
export {
|
5
|
-
|
6
|
-
|
18
|
+
styles as default,
|
19
|
+
defaultProfileImage,
|
20
|
+
membership,
|
21
|
+
planWrapper,
|
22
|
+
profileImage,
|
23
|
+
teamDetails,
|
24
|
+
teamName,
|
25
|
+
wrapper
|
7
26
|
};
|
8
27
|
//# sourceMappingURL=harmony86.mjs.map
|
package/dist/harmony86.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony86.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony86.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
package/dist/harmony87.cjs
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
4
|
-
const profileEmail = "_profileEmail_q5pot_5";
|
3
|
+
const teamsContainer = "_teamsContainer_1ncrr_5";
|
5
4
|
const styles = {
|
6
|
-
|
7
|
-
profileEmail
|
5
|
+
teamsContainer
|
8
6
|
};
|
9
|
-
exports.container = container;
|
10
7
|
exports.default = styles;
|
11
|
-
exports.
|
8
|
+
exports.teamsContainer = teamsContainer;
|
12
9
|
//# sourceMappingURL=harmony87.cjs.map
|
package/dist/harmony87.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony87.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony87.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony87.mjs
CHANGED
@@ -1,12 +1,9 @@
|
|
1
|
-
const
|
2
|
-
const profileEmail = "_profileEmail_q5pot_5";
|
1
|
+
const teamsContainer = "_teamsContainer_1ncrr_5";
|
3
2
|
const styles = {
|
4
|
-
|
5
|
-
profileEmail
|
3
|
+
teamsContainer
|
6
4
|
};
|
7
5
|
export {
|
8
|
-
container,
|
9
6
|
styles as default,
|
10
|
-
|
7
|
+
teamsContainer
|
11
8
|
};
|
12
9
|
//# sourceMappingURL=harmony87.mjs.map
|
package/dist/harmony87.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony87.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony87.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony88.cjs
CHANGED
@@ -1,27 +1,24 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const clsx = require("./harmony62.cjs");
|
6
|
+
const UpgradeIcon_module = require("./harmony104.cjs");
|
7
|
+
const UpgradeIcon = ({ className = "" }) => {
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
9
|
+
"div",
|
10
|
+
{
|
11
|
+
"aria-label": "Upgrade Icon",
|
12
|
+
className: clsx.clsx(
|
13
|
+
UpgradeIcon_module.default.iconContainer,
|
14
|
+
"flex-row",
|
15
|
+
"items-center",
|
16
|
+
"justify-center",
|
17
|
+
className
|
18
|
+
),
|
19
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.CaretUpIcon, {})
|
20
|
+
}
|
21
|
+
);
|
18
22
|
};
|
19
|
-
exports.
|
20
|
-
exports.defaultProfileImage = defaultProfileImage;
|
21
|
-
exports.membership = membership;
|
22
|
-
exports.planWrapper = planWrapper;
|
23
|
-
exports.profileImage = profileImage;
|
24
|
-
exports.teamDetails = teamDetails;
|
25
|
-
exports.teamName = teamName;
|
26
|
-
exports.wrapper = wrapper;
|
23
|
+
exports.UpgradeIcon = UpgradeIcon;
|
27
24
|
//# sourceMappingURL=harmony88.cjs.map
|
package/dist/harmony88.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony88.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony88.cjs","sources":["../src/components/Sidebar/UpgradeIcon/UpgradeIcon.tsx"],"sourcesContent":["import { CaretUpIcon } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport styles from './UpgradeIcon.module.css'\n\ntype UpgradeIconProps = {\n\tclassName?: string\n}\n\nexport const UpgradeIcon = ({ className = '' }: UpgradeIconProps) => {\n\treturn (\n\t\t<div\n\t\t\taria-label={'Upgrade Icon'}\n\t\t\tclassName={clsx(\n\t\t\t\tstyles.iconContainer,\n\t\t\t\t'flex-row',\n\t\t\t\t'items-center',\n\t\t\t\t'justify-center',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t<CaretUpIcon />\n\t\t</div>\n\t)\n}\n"],"names":["jsx","clsx","styles","CaretUpIcon"],"mappings":";;;;;;AAQO,MAAM,cAAc,CAAC,EAAE,YAAY,SAA2B;AAEnE,SAAAA,2BAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAWC,KAAA;AAAA,QACVC,mBAAAA,QAAO;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,MAEA,yCAACC,MAAAA,aAAY,CAAA,CAAA;AAAA,IAAA;AAAA,EACd;AAEF;;"}
|
package/dist/harmony88.mjs
CHANGED
@@ -1,27 +1,24 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { CaretUpIcon } from "@lokalise/louis";
|
3
|
+
import { clsx } from "./harmony62.mjs";
|
4
|
+
import styles from "./harmony104.mjs";
|
5
|
+
const UpgradeIcon = ({ className = "" }) => {
|
6
|
+
return /* @__PURE__ */ jsx(
|
7
|
+
"div",
|
8
|
+
{
|
9
|
+
"aria-label": "Upgrade Icon",
|
10
|
+
className: clsx(
|
11
|
+
styles.iconContainer,
|
12
|
+
"flex-row",
|
13
|
+
"items-center",
|
14
|
+
"justify-center",
|
15
|
+
className
|
16
|
+
),
|
17
|
+
children: /* @__PURE__ */ jsx(CaretUpIcon, {})
|
18
|
+
}
|
19
|
+
);
|
16
20
|
};
|
17
21
|
export {
|
18
|
-
|
19
|
-
defaultProfileImage,
|
20
|
-
membership,
|
21
|
-
planWrapper,
|
22
|
-
profileImage,
|
23
|
-
teamDetails,
|
24
|
-
teamName,
|
25
|
-
wrapper
|
22
|
+
UpgradeIcon
|
26
23
|
};
|
27
24
|
//# sourceMappingURL=harmony88.mjs.map
|
package/dist/harmony88.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony88.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony88.mjs","sources":["../src/components/Sidebar/UpgradeIcon/UpgradeIcon.tsx"],"sourcesContent":["import { CaretUpIcon } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport styles from './UpgradeIcon.module.css'\n\ntype UpgradeIconProps = {\n\tclassName?: string\n}\n\nexport const UpgradeIcon = ({ className = '' }: UpgradeIconProps) => {\n\treturn (\n\t\t<div\n\t\t\taria-label={'Upgrade Icon'}\n\t\t\tclassName={clsx(\n\t\t\t\tstyles.iconContainer,\n\t\t\t\t'flex-row',\n\t\t\t\t'items-center',\n\t\t\t\t'justify-center',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t<CaretUpIcon />\n\t\t</div>\n\t)\n}\n"],"names":[],"mappings":";;;;AAQO,MAAM,cAAc,CAAC,EAAE,YAAY,SAA2B;AAEnE,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAW;AAAA,QACV,OAAO;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,MAEA,8BAAC,aAAY,CAAA,CAAA;AAAA,IAAA;AAAA,EACd;AAEF;"}
|
package/dist/harmony89.cjs
CHANGED
@@ -1,9 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
3
|
+
const container = "_container_1u995_1";
|
4
|
+
const planCta = "_planCta_1u995_15";
|
5
|
+
const upgradeIconWrapper = "_upgradeIconWrapper_1u995_19";
|
4
6
|
const styles = {
|
5
|
-
|
7
|
+
container,
|
8
|
+
planCta,
|
9
|
+
upgradeIconWrapper
|
6
10
|
};
|
11
|
+
exports.container = container;
|
7
12
|
exports.default = styles;
|
8
|
-
exports.
|
13
|
+
exports.planCta = planCta;
|
14
|
+
exports.upgradeIconWrapper = upgradeIconWrapper;
|
9
15
|
//# sourceMappingURL=harmony89.cjs.map
|
package/dist/harmony89.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony89.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony89.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/harmony89.mjs
CHANGED
@@ -1,9 +1,15 @@
|
|
1
|
-
const
|
1
|
+
const container = "_container_1u995_1";
|
2
|
+
const planCta = "_planCta_1u995_15";
|
3
|
+
const upgradeIconWrapper = "_upgradeIconWrapper_1u995_19";
|
2
4
|
const styles = {
|
3
|
-
|
5
|
+
container,
|
6
|
+
planCta,
|
7
|
+
upgradeIconWrapper
|
4
8
|
};
|
5
9
|
export {
|
10
|
+
container,
|
6
11
|
styles as default,
|
7
|
-
|
12
|
+
planCta,
|
13
|
+
upgradeIconWrapper
|
8
14
|
};
|
9
15
|
//# sourceMappingURL=harmony89.mjs.map
|
package/dist/harmony89.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony89.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony89.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony90.cjs
CHANGED
@@ -2,23 +2,13 @@
|
|
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
|
6
|
-
const
|
7
|
-
|
8
|
-
|
9
|
-
"div",
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
"flex-row",
|
15
|
-
"items-center",
|
16
|
-
"justify-center",
|
17
|
-
className
|
18
|
-
),
|
19
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(louis.CaretUpIcon, {})
|
20
|
-
}
|
21
|
-
);
|
22
|
-
};
|
23
|
-
exports.UpgradeIcon = UpgradeIcon;
|
5
|
+
const styles_module = require("./harmony91.cjs");
|
6
|
+
const NavItemContents = ({ label, badge, novel }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-1", children: [
|
7
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
8
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: label }),
|
9
|
+
!!badge && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_module.default.badge, "aria-label": `${badge} items requiring attention`, children: badge > 9 ? "9+" : badge })
|
10
|
+
] }),
|
11
|
+
!!novel && /* @__PURE__ */ jsxRuntime.jsx(louis.Tag, { className: styles_module.default.tag, children: novel })
|
12
|
+
] });
|
13
|
+
exports.NavItemContents = NavItemContents;
|
24
14
|
//# sourceMappingURL=harmony90.cjs.map
|
package/dist/harmony90.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony90.cjs","sources":["../src/components/
|
1
|
+
{"version":3,"file":"harmony90.cjs","sources":["../src/components/NavigationPanel/components/NavigationTabs/NavigationTabsItem/NavItemContents.tsx"],"sourcesContent":["import { Tag } from '@lokalise/louis'\n\nimport classes from './styles.module.css'\n\ninterface NavItemContentProps {\n\tlabel: string\n\tbadge?: number\n\tnovel?: string\n}\nexport const NavItemContents = ({ label, badge, novel }: NavItemContentProps) => (\n\t<div className=\"flex gap-1\">\n\t\t<div>\n\t\t\t<span>{label}</span>\n\t\t\t{!!badge && (\n\t\t\t\t<div className={classes.badge} aria-label={`${badge} items requiring attention`}>\n\t\t\t\t\t{badge > 9 ? '9+' : badge}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t\t{!!novel && <Tag className={classes.tag}>{novel}</Tag>}\n\t</div>\n)\n"],"names":["jsxs","jsx","classes","Tag"],"mappings":";;;;;AASa,MAAA,kBAAkB,CAAC,EAAE,OAAO,OAAO,YAC/CA,2BAAA,KAAC,OAAI,EAAA,WAAU,cACd,UAAA;AAAA,EAAAA,gCAAC,OACA,EAAA,UAAA;AAAA,IAAAC,2BAAAA,IAAC,UAAM,UAAM,MAAA,CAAA;AAAA,IACZ,CAAC,CAAC,SACFA,+BAAC,SAAI,WAAWC,cAAA,QAAQ,OAAO,cAAY,GAAG,KAAK,8BACjD,UAAQ,QAAA,IAAI,OAAO,MACrB,CAAA;AAAA,EAAA,GAEF;AAAA,EACC,CAAC,CAAC,SAASD,2BAAA,IAACE,aAAI,WAAWD,sBAAQ,KAAM,UAAM,MAAA,CAAA;AAAA,EACjD,CAAA;;"}
|