@lokalise/harmony 2.1.0-exp-testingContracts.5 → 2.1.0-exp-testingContracts.6
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/harmony103.cjs +1 -1
- package/dist/harmony103.mjs +1 -1
- package/dist/harmony104.cjs +7 -7
- package/dist/harmony104.mjs +7 -7
- package/dist/harmony107.cjs +1 -1
- package/dist/harmony107.mjs +1 -1
- package/dist/harmony108.cjs +1 -1
- package/dist/harmony108.mjs +1 -1
- package/dist/harmony109.cjs +11 -14
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +11 -14
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +22 -4
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +21 -3
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +13 -17
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +13 -17
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +3 -76
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +3 -76
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +17 -11
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +17 -11
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +76 -34
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +76 -34
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +12 -9
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +12 -9
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +34 -47
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +34 -47
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +10 -10
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +9 -9
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +45 -9
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +47 -11
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +8 -20
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +8 -20
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony122.cjs +84 -96
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +84 -79
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +30 -20
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +30 -20
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +20 -7
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +20 -7
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +6 -16
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +7 -17
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +16 -7
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +16 -7
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +3 -3
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +3 -3
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +7 -14
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +7 -14
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +14 -86
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +14 -86
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +98 -29
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +81 -29
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +9 -5
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +9 -5
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +13 -6
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +12 -5
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +15 -9
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +14 -8
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +13 -6
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +15 -8
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +7 -12
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +9 -14
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +20 -13
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +22 -15
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +9 -7
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +11 -9
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +30 -18
- package/dist/harmony138.cjs.map +1 -1
- package/dist/harmony138.mjs +32 -20
- package/dist/harmony138.mjs.map +1 -1
- package/dist/harmony139.cjs +6 -6
- package/dist/harmony139.cjs.map +1 -1
- package/dist/harmony139.mjs +6 -6
- package/dist/harmony139.mjs.map +1 -1
- package/dist/harmony140.cjs +13 -29
- package/dist/harmony140.cjs.map +1 -1
- package/dist/harmony140.mjs +14 -30
- package/dist/harmony140.mjs.map +1 -1
- package/dist/harmony141.cjs +31 -7
- package/dist/harmony141.cjs.map +1 -1
- package/dist/harmony141.mjs +32 -8
- package/dist/harmony141.mjs.map +1 -1
- package/dist/harmony142.cjs +21 -22
- package/dist/harmony142.cjs.map +1 -1
- package/dist/harmony142.mjs +20 -21
- package/dist/harmony142.mjs.map +1 -1
- package/dist/harmony143.cjs +15 -30
- package/dist/harmony143.cjs.map +1 -1
- package/dist/harmony143.mjs +17 -32
- package/dist/harmony143.mjs.map +1 -1
- package/dist/harmony144.cjs +3 -18
- package/dist/harmony144.cjs.map +1 -1
- package/dist/harmony144.mjs +3 -18
- package/dist/harmony144.mjs.map +1 -1
- package/dist/harmony145.cjs +15 -21
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +14 -20
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +10 -6
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +9 -5
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +5 -15
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +5 -15
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +6 -11
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +5 -10
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +1 -1
- package/dist/harmony149.mjs +1 -1
- package/dist/harmony150.cjs +1 -1
- package/dist/harmony150.mjs +1 -1
- package/dist/harmony151.cjs +1 -1
- package/dist/harmony151.mjs +1 -1
- package/dist/harmony152.cjs +3 -3
- package/dist/harmony152.mjs +3 -3
- package/dist/harmony153.cjs +3 -3
- package/dist/harmony153.mjs +3 -3
- package/dist/harmony154.cjs +1 -1
- package/dist/harmony154.mjs +1 -1
- package/dist/harmony157.cjs +1 -1
- package/dist/harmony157.mjs +1 -1
- package/dist/harmony158.cjs +2 -2
- package/dist/harmony158.mjs +2 -2
- package/dist/harmony167.cjs +32 -13
- package/dist/harmony167.cjs.map +1 -1
- package/dist/harmony167.mjs +32 -13
- package/dist/harmony167.mjs.map +1 -1
- package/dist/harmony168.cjs +12 -14
- package/dist/harmony168.cjs.map +1 -1
- package/dist/harmony168.mjs +12 -14
- package/dist/harmony168.mjs.map +1 -1
- package/dist/harmony169.cjs +13 -14
- package/dist/harmony169.cjs.map +1 -1
- package/dist/harmony169.mjs +13 -14
- package/dist/harmony169.mjs.map +1 -1
- package/dist/harmony17.cjs +1 -1
- package/dist/harmony17.mjs +1 -1
- package/dist/harmony170.cjs +15 -31
- package/dist/harmony170.cjs.map +1 -1
- package/dist/harmony170.mjs +15 -31
- package/dist/harmony170.mjs.map +1 -1
- package/dist/harmony171.cjs +1 -1
- package/dist/harmony171.mjs +1 -1
- package/dist/harmony173.cjs +3 -3
- package/dist/harmony173.mjs +3 -3
- package/dist/harmony175.cjs +4 -6
- package/dist/harmony175.cjs.map +1 -1
- package/dist/harmony175.mjs +4 -6
- package/dist/harmony175.mjs.map +1 -1
- package/dist/harmony176.cjs +5 -11
- package/dist/harmony176.cjs.map +1 -1
- package/dist/harmony176.mjs +5 -11
- package/dist/harmony176.mjs.map +1 -1
- package/dist/harmony177.cjs +11 -31
- package/dist/harmony177.cjs.map +1 -1
- package/dist/harmony177.mjs +11 -31
- package/dist/harmony177.mjs.map +1 -1
- package/dist/harmony178.cjs +28 -10
- package/dist/harmony178.cjs.map +1 -1
- package/dist/harmony178.mjs +28 -10
- package/dist/harmony178.mjs.map +1 -1
- package/dist/harmony179.cjs +14 -4
- package/dist/harmony179.cjs.map +1 -1
- package/dist/harmony179.mjs +14 -4
- package/dist/harmony179.mjs.map +1 -1
- package/dist/harmony20.cjs +1 -1
- package/dist/harmony20.mjs +1 -1
- package/dist/harmony28.cjs +1 -1
- package/dist/harmony28.mjs +1 -1
- package/dist/harmony29.cjs +1 -1
- package/dist/harmony29.mjs +1 -1
- package/dist/harmony32.cjs +1 -1
- package/dist/harmony32.mjs +1 -1
- package/dist/harmony33.cjs +1 -1
- package/dist/harmony33.mjs +1 -1
- package/dist/harmony34.cjs +1 -1
- package/dist/harmony34.mjs +1 -1
- package/dist/harmony39.cjs +1 -1
- package/dist/harmony39.mjs +1 -1
- package/dist/harmony40.cjs +1 -1
- package/dist/harmony40.mjs +1 -1
- package/dist/harmony41.cjs +1 -1
- package/dist/harmony41.mjs +1 -1
- package/dist/harmony42.cjs +2 -2
- package/dist/harmony42.mjs +2 -2
- package/dist/harmony43.cjs +2 -2
- package/dist/harmony43.mjs +2 -2
- package/dist/harmony44.cjs +1 -1
- package/dist/harmony44.mjs +1 -1
- package/dist/harmony53.cjs +3 -3
- package/dist/harmony53.cjs.map +1 -1
- package/dist/harmony53.mjs +1 -1
- package/dist/harmony53.mjs.map +1 -1
- package/dist/harmony78.cjs +74 -74
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +1 -1
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +52 -52
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +1 -1
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +4 -4
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +1 -1
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +18 -18
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +1 -1
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +15 -15
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +1 -1
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +96 -96
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +1 -1
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +24 -24
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +1 -1
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +14 -14
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +1 -1
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +2 -2
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +1 -1
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +40 -40
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +1 -1
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +27 -27
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +1 -1
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +10 -10
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +1 -1
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony95.cjs +1 -1
- package/dist/harmony95.mjs +1 -1
- package/dist/harmony97.cjs +2 -2
- package/dist/harmony97.mjs +2 -2
- package/dist/types/src/features/auth/core/types/jwtTokenPayload.d.ts +35 -8
- package/dist/types/src/features/auth/core/types/jwtTokenPayload.fixture.d.ts +1 -1
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedProjectContributor.d.ts +3 -3
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedUser.d.ts +2 -2
- package/dist/types/src/features/auth/frontend/services/generateTokenFromClassicSession.d.ts +4 -1
- package/dist/types/src/features/auth/frontend/services/refreshExpiredToken.d.ts +4 -1
- package/dist/types/src/features/navigation/hooks/useNavigationQueries.d.ts +48 -48
- package/dist/types/src/features/publicApi/TESTING_CONTRACTS.d.ts +238 -1
- package/dist/types/src/features/publicApi/contributors.d.ts +1072 -5
- package/dist/types/src/features/publicApi/hooks/useAddContributorsMutation.d.ts +7 -7
- package/dist/types/src/features/publicApi/hooks/useAddLanguagesToProjectMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useCreateProjectMutation.d.ts +14 -14
- package/dist/types/src/features/publicApi/hooks/useCreateScoreMutation.d.ts +3 -3
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useRetrieveUserPermissions.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useUpdateContributorMutation.d.ts +5 -5
- package/dist/types/src/features/publicApi/hooks/useUpdateProjectMutation.d.ts +13 -13
- package/dist/types/src/features/publicApi/languages.d.ts +368 -3
- package/dist/types/src/features/publicApi/permissionTemplates.d.ts +117 -1
- package/dist/types/src/features/publicApi/projects.d.ts +1965 -6
- package/dist/types/src/features/publicApi/score.d.ts +290 -3
- package/dist/types/src/features/publicApi/team.d.ts +374 -2
- package/dist/types/src/features/publicApi/teamUsers.d.ts +318 -3
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +834 -84
- package/dist/types/src/features/publicApi/types/languageTypes.d.ts +212 -22
- package/dist/types/src/features/publicApi/types/paginationTypes.d.ts +8 -2
- package/dist/types/src/features/publicApi/types/permissionTemplateTypes.d.ts +76 -71
- package/dist/types/src/features/publicApi/types/permissionTypes.d.ts +24 -48
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +1097 -211
- package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +96 -32
- package/dist/types/src/features/publicApi/types/sharedTypes.d.ts +126 -30
- package/dist/types/src/features/publicApi/types/teamRoleTypes.d.ts +2 -7
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +328 -65
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +208 -91
- package/dist/types/src/features/publicApi/types/userTokenTypes.d.ts +39 -9
- package/dist/types/src/features/publicApi/userToken.d.ts +53 -1
- package/package.json +1 -1
package/dist/harmony130.mjs
CHANGED
|
@@ -1,33 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
{
|
|
13
|
-
key: "contributors",
|
|
14
|
-
labelKey: "Contributors",
|
|
15
|
-
path: ({ projectId }) => `/project/${projectId}/contributors`
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
key: "orders",
|
|
19
|
-
labelKey: "Human proofreading",
|
|
20
|
-
path: ({ projectId }) => `/project/${projectId}/orders`,
|
|
21
|
-
shouldShow: ({ flags }) => flags.ap_feature_hraas === "on"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
key: "billing",
|
|
25
|
-
labelKey: "Billing",
|
|
26
|
-
path: ({ projectId }) => `/project/${projectId}/billing`,
|
|
27
|
-
shouldShow: ({ flags }) => flags.ap_feature_billing === "on"
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import debounce from "./harmony147.mjs";
|
|
3
|
+
import throttle from "./harmony148.mjs";
|
|
4
|
+
const patchResizeCallback = (resizeCallback, refreshMode, refreshRate, refreshOptions) => {
|
|
5
|
+
switch (refreshMode) {
|
|
6
|
+
case "debounce":
|
|
7
|
+
return debounce(resizeCallback, refreshRate, refreshOptions);
|
|
8
|
+
case "throttle":
|
|
9
|
+
return throttle(resizeCallback, refreshRate, refreshOptions);
|
|
10
|
+
default:
|
|
11
|
+
return resizeCallback;
|
|
28
12
|
}
|
|
29
|
-
|
|
13
|
+
};
|
|
14
|
+
const useCallbackRef = (
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
+
(callback) => {
|
|
17
|
+
const callbackRef = React.useRef(callback);
|
|
18
|
+
React.useEffect(() => {
|
|
19
|
+
callbackRef.current = callback;
|
|
20
|
+
});
|
|
21
|
+
return React.useMemo(() => (...args) => {
|
|
22
|
+
var _a;
|
|
23
|
+
return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef, ...args);
|
|
24
|
+
}, []);
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
const useRefProxy = (
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
29
|
+
(targetRef) => {
|
|
30
|
+
const [refElement, setRefElement] = React.useState((targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) || null);
|
|
31
|
+
if (targetRef) {
|
|
32
|
+
setTimeout(() => {
|
|
33
|
+
if (targetRef.current !== refElement) {
|
|
34
|
+
setRefElement(targetRef.current);
|
|
35
|
+
}
|
|
36
|
+
}, 0);
|
|
37
|
+
}
|
|
38
|
+
const refProxy = React.useMemo(() => new Proxy((node) => {
|
|
39
|
+
if (node !== refElement) {
|
|
40
|
+
setRefElement(node);
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
get(target, prop) {
|
|
44
|
+
if (prop === "current") {
|
|
45
|
+
return refElement;
|
|
46
|
+
}
|
|
47
|
+
return target[prop];
|
|
48
|
+
},
|
|
49
|
+
set(target, prop, value) {
|
|
50
|
+
if (prop === "current") {
|
|
51
|
+
setRefElement(value);
|
|
52
|
+
} else {
|
|
53
|
+
target[prop] = value;
|
|
54
|
+
}
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
}), [refElement]);
|
|
58
|
+
return { refProxy, refElement, setRefElement };
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
const getDimensions = (entry, box) => {
|
|
62
|
+
if (box === "border-box") {
|
|
63
|
+
return {
|
|
64
|
+
width: entry.borderBoxSize[0].inlineSize,
|
|
65
|
+
height: entry.borderBoxSize[0].blockSize
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
if (box === "content-box") {
|
|
69
|
+
return {
|
|
70
|
+
width: entry.contentBoxSize[0].inlineSize,
|
|
71
|
+
height: entry.contentBoxSize[0].blockSize
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
width: entry.contentRect.width,
|
|
76
|
+
height: entry.contentRect.height
|
|
77
|
+
};
|
|
78
|
+
};
|
|
30
79
|
export {
|
|
31
|
-
|
|
80
|
+
getDimensions,
|
|
81
|
+
patchResizeCallback,
|
|
82
|
+
useCallbackRef,
|
|
83
|
+
useRefProxy
|
|
32
84
|
};
|
|
33
85
|
//# sourceMappingURL=harmony130.mjs.map
|
package/dist/harmony130.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony130.mjs","sources":["../
|
|
1
|
+
{"version":3,"file":"harmony130.mjs","sources":["../node_modules/react-resize-detector/build/utils.js"],"sourcesContent":["import * as React from 'react';\nimport debounce from 'lodash/debounce.js';\nimport throttle from 'lodash/throttle.js';\n\n/**\n * Wraps the resize callback with a lodash debounce / throttle based on the refresh mode\n */\nconst patchResizeCallback = (resizeCallback, refreshMode, refreshRate, refreshOptions) => {\n switch (refreshMode) {\n case 'debounce':\n return debounce(resizeCallback, refreshRate, refreshOptions);\n case 'throttle':\n return throttle(resizeCallback, refreshRate, refreshOptions);\n default:\n return resizeCallback;\n }\n};\n/**\n * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a\n * prop or avoid re-executing effects when passed as a dependency\n */\nconst useCallbackRef = \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n(callback) => {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => ((...args) => { var _a; return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef, ...args); }), []);\n};\n/** `useRef` hook doesn't handle conditional rendering or dynamic ref changes.\n * This hook creates a proxy that ensures that `refElement` is updated whenever the ref is changed. */\nconst useRefProxy = \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n(targetRef) => {\n // we are going to use this ref to store the last element that was passed to the hook\n const [refElement, setRefElement] = React.useState((targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) || null);\n // if targetRef is passed, we need to update the refElement\n // we have to use setTimeout because ref get assigned after the hook is called\n // in the future releases we are going to remove targetRef and force users to use ref returned by the hook\n if (targetRef) {\n setTimeout(() => {\n if (targetRef.current !== refElement) {\n setRefElement(targetRef.current);\n }\n }, 0);\n }\n // this is a memo that will be called every time the ref is changed\n // This proxy will properly call setState either when the ref is called as a function or when `.current` is set\n // we call setState inside to trigger rerender\n const refProxy = React.useMemo(() => new Proxy((node) => {\n if (node !== refElement) {\n setRefElement(node);\n }\n }, {\n get(target, prop) {\n if (prop === 'current') {\n return refElement;\n }\n return target[prop];\n },\n set(target, prop, value) {\n if (prop === 'current') {\n setRefElement(value);\n }\n else {\n target[prop] = value;\n }\n return true;\n },\n }), [refElement]);\n return { refProxy, refElement, setRefElement };\n};\n/** Calculates the dimensions of the element based on the current box model.\n * @see https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/The_box_model\n */\nconst getDimensions = (entry, box) => {\n // Value\t Border\t Padding\t Inner Content\n // ---------------------------------------------------\n // 'border-box'\t Yes\t Yes\t Yes\n // 'content-box'\t No\t No\t Yes\n // undefined No\t No?\t Yes\n if (box === 'border-box') {\n return {\n width: entry.borderBoxSize[0].inlineSize,\n height: entry.borderBoxSize[0].blockSize,\n };\n }\n if (box === 'content-box') {\n return {\n width: entry.contentBoxSize[0].inlineSize,\n height: entry.contentBoxSize[0].blockSize,\n };\n }\n return {\n width: entry.contentRect.width,\n height: entry.contentRect.height,\n };\n};\n\nexport { getDimensions, patchResizeCallback, useCallbackRef, useRefProxy };\n//# sourceMappingURL=utils.js.map\n"],"names":[],"mappings":";;;AAOK,MAAC,sBAAsB,CAAC,gBAAgB,aAAa,aAAa,mBAAmB;AACtF,UAAQ,aAAW;AAAA,IACf,KAAK;AACD,aAAO,SAAS,gBAAgB,aAAa,cAAc;AAAA,IAC/D,KAAK;AACD,aAAO,SAAS,gBAAgB,aAAa,cAAc;AAAA,IAC/D;AACI,aAAO;AAAA,EACnB;AACA;AAKK,MAAC;AAAA;AAAA,EAEN,CAAC,aAAa;AACV,UAAM,cAAc,MAAM,OAAO,QAAQ;AACzC,UAAM,UAAU,MAAM;AAClB,kBAAY,UAAU;AAAA,IAC9B,CAAK;AACD,WAAO,MAAM,QAAQ,MAAO,IAAI,SAAS;AAAE,UAAI;AAAI,cAAQ,KAAK,YAAY,aAAa,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,aAAa,GAAG,IAAI;AAAA,IAAI,GAAG,CAAA,CAAE;AAAA,EACnK;AAAA;AAGK,MAAC;AAAA;AAAA,EAEN,CAAC,cAAc;AAEX,UAAM,CAAC,YAAY,aAAa,IAAI,MAAM,UAAU,cAAc,QAAQ,cAAc,SAAS,SAAS,UAAU,YAAY,IAAI;AAIpI,QAAI,WAAW;AACX,iBAAW,MAAM;AACb,YAAI,UAAU,YAAY,YAAY;AAClC,wBAAc,UAAU,OAAO;AAAA,QAC/C;AAAA,MACS,GAAE,CAAC;AAAA,IACZ;AAII,UAAM,WAAW,MAAM,QAAQ,MAAM,IAAI,MAAM,CAAC,SAAS;AACrD,UAAI,SAAS,YAAY;AACrB,sBAAc,IAAI;AAAA,MAC9B;AAAA,IACA,GAAO;AAAA,MACC,IAAI,QAAQ,MAAM;AACd,YAAI,SAAS,WAAW;AACpB,iBAAO;AAAA,QACvB;AACY,eAAO,OAAO,IAAI;AAAA,MACrB;AAAA,MACD,IAAI,QAAQ,MAAM,OAAO;AACrB,YAAI,SAAS,WAAW;AACpB,wBAAc,KAAK;AAAA,QACnC,OACiB;AACD,iBAAO,IAAI,IAAI;AAAA,QAC/B;AACY,eAAO;AAAA,MACV;AAAA,IACT,CAAK,GAAG,CAAC,UAAU,CAAC;AAChB,WAAO,EAAE,UAAU,YAAY,cAAe;AAAA,EAClD;AAAA;AAIK,MAAC,gBAAgB,CAAC,OAAO,QAAQ;AAMlC,MAAI,QAAQ,cAAc;AACtB,WAAO;AAAA,MACH,OAAO,MAAM,cAAc,CAAC,EAAE;AAAA,MAC9B,QAAQ,MAAM,cAAc,CAAC,EAAE;AAAA,IAClC;AAAA,EACT;AACI,MAAI,QAAQ,eAAe;AACvB,WAAO;AAAA,MACH,OAAO,MAAM,eAAe,CAAC,EAAE;AAAA,MAC/B,QAAQ,MAAM,eAAe,CAAC,EAAE;AAAA,IACnC;AAAA,EACT;AACI,SAAO;AAAA,IACH,OAAO,MAAM,YAAY;AAAA,IACzB,QAAQ,MAAM,YAAY;AAAA,EAC7B;AACL;","x_google_ignoreList":[0]}
|
package/dist/harmony131.cjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
const link = "_link_18vhx_1";
|
|
4
|
+
const active = "_active_18vhx_18";
|
|
5
|
+
const styles = {
|
|
6
|
+
link,
|
|
7
|
+
active
|
|
8
|
+
};
|
|
9
|
+
exports.active = active;
|
|
10
|
+
exports.default = styles;
|
|
11
|
+
exports.link = link;
|
|
8
12
|
//# sourceMappingURL=harmony131.cjs.map
|
package/dist/harmony131.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony131.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harmony131.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/harmony131.mjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const link = "_link_18vhx_1";
|
|
2
|
+
const active = "_active_18vhx_18";
|
|
3
|
+
const styles = {
|
|
4
|
+
link,
|
|
5
|
+
active
|
|
6
|
+
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
8
|
+
active,
|
|
9
|
+
styles as default,
|
|
10
|
+
link
|
|
7
11
|
};
|
|
8
12
|
//# sourceMappingURL=harmony131.mjs.map
|
package/dist/harmony131.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony131.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harmony131.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/harmony132.cjs
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const useSidebar = require("./harmony115.cjs");
|
|
5
|
+
const louis = require("@lokalise/louis");
|
|
6
|
+
const permissions = require("./harmony116.cjs");
|
|
7
|
+
const BillingMenuItem = () => {
|
|
8
|
+
const { jwt } = useSidebar.useSidebar();
|
|
9
|
+
if (!permissions.canChangeBilling(jwt)) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { href: "/team#billing", children: "Billing" });
|
|
13
|
+
};
|
|
14
|
+
exports.BillingMenuItem = BillingMenuItem;
|
|
8
15
|
//# sourceMappingURL=harmony132.cjs.map
|
package/dist/harmony132.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony132.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harmony132.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/BillingMenuItem/BillingMenuItem.tsx"],"sourcesContent":["import { useSidebar } from '@components/Sidebar/hooks/useSidebar'\nimport { MenuItem } from '@lokalise/louis'\nimport { canChangeBilling } from '@utils/user/permissions'\n\n/**\n * A menu item component for navigating to the billing section.\n * Checks the user's permissions using the Sidebar context and renders\n * nothing if the user does not have access.\n *\n * @example\n * ```\n * <BillingMenuItem />\n * ```\n *\n * @note This component must be used within a Sidebar Context.\n */\n\nexport const BillingMenuItem = () => {\n\tconst { jwt } = useSidebar()\n\n\tif (!canChangeBilling(jwt)) {\n\t\treturn null\n\t}\n\n\treturn <MenuItem href=\"/team#billing\">Billing</MenuItem>\n}\n"],"names":["useSidebar","canChangeBilling","jsx","MenuItem"],"mappings":";;;;;;AAiBO,MAAM,kBAAkB,MAAM;AAC9B,QAAA,EAAE,IAAI,IAAIA,sBAAW;AAEvB,MAAA,CAACC,YAAAA,iBAAiB,GAAG,GAAG;AACpB,WAAA;AAAA,EAAA;AAGR,SAAQC,2BAAAA,IAAAC,MAAAA,UAAA,EAAS,MAAK,iBAAgB,UAAO,WAAA;AAC9C;;"}
|
package/dist/harmony132.mjs
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useSidebar } from "./harmony115.mjs";
|
|
3
|
+
import { MenuItem } from "@lokalise/louis";
|
|
4
|
+
import { canChangeBilling } from "./harmony116.mjs";
|
|
5
|
+
const BillingMenuItem = () => {
|
|
6
|
+
const { jwt } = useSidebar();
|
|
7
|
+
if (!canChangeBilling(jwt)) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
return /* @__PURE__ */ jsx(MenuItem, { href: "/team#billing", children: "Billing" });
|
|
11
|
+
};
|
|
5
12
|
export {
|
|
6
|
-
|
|
13
|
+
BillingMenuItem
|
|
7
14
|
};
|
|
8
15
|
//# sourceMappingURL=harmony132.mjs.map
|
package/dist/harmony132.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony132.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
1
|
+
{"version":3,"file":"harmony132.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/BillingMenuItem/BillingMenuItem.tsx"],"sourcesContent":["import { useSidebar } from '@components/Sidebar/hooks/useSidebar'\nimport { MenuItem } from '@lokalise/louis'\nimport { canChangeBilling } from '@utils/user/permissions'\n\n/**\n * A menu item component for navigating to the billing section.\n * Checks the user's permissions using the Sidebar context and renders\n * nothing if the user does not have access.\n *\n * @example\n * ```\n * <BillingMenuItem />\n * ```\n *\n * @note This component must be used within a Sidebar Context.\n */\n\nexport const BillingMenuItem = () => {\n\tconst { jwt } = useSidebar()\n\n\tif (!canChangeBilling(jwt)) {\n\t\treturn null\n\t}\n\n\treturn <MenuItem href=\"/team#billing\">Billing</MenuItem>\n}\n"],"names":[],"mappings":";;;;AAiBO,MAAM,kBAAkB,MAAM;AAC9B,QAAA,EAAE,IAAI,IAAI,WAAW;AAEvB,MAAA,CAAC,iBAAiB,GAAG,GAAG;AACpB,WAAA;AAAA,EAAA;AAGR,SAAQ,oBAAA,UAAA,EAAS,MAAK,iBAAgB,UAAO,WAAA;AAC9C;"}
|
package/dist/harmony133.cjs
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const useSidebar = require("./harmony115.cjs");
|
|
5
|
+
const louis = require("@lokalise/louis");
|
|
6
|
+
const permissions = require("./harmony116.cjs");
|
|
7
|
+
const CreateNewTeam = ({ onCreateTeam }) => {
|
|
8
|
+
const { jwt } = useSidebar.useSidebar();
|
|
9
|
+
if (!permissions.canCreateTeam(jwt)) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
13
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { onClick: onCreateTeam, children: "Create new team" }),
|
|
14
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuDivider, {})
|
|
15
|
+
] });
|
|
8
16
|
};
|
|
9
|
-
exports.
|
|
10
|
-
exports.default = styles;
|
|
11
|
-
exports.link = link;
|
|
17
|
+
exports.CreateNewTeam = CreateNewTeam;
|
|
12
18
|
//# sourceMappingURL=harmony133.cjs.map
|
package/dist/harmony133.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony133.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harmony133.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeam/CreateNewTeam.tsx"],"sourcesContent":["import { useSidebar } from '@components/Sidebar/hooks/useSidebar'\nimport { MenuDivider, MenuItem } from '@lokalise/louis'\nimport { canCreateTeam } from '@utils/user/permissions'\n\ntype CreateNewTeamProps = {\n\tonCreateTeam: () => void\n}\n\n/**\n * A menu item component for creating a new team.\n * Checks the user's permissions using the Sidebar context and renders\n * nothing if the user does not have access.\n *\n * @example\n * ```\n * <CreateNewTeam onCreateTeam={handleCreateTeam} />\n * ```\n *\n * @note This component must be used within a Sidebar Context.\n */\n\nexport const CreateNewTeam = ({ onCreateTeam }: CreateNewTeamProps) => {\n\tconst { jwt } = useSidebar()\n\n\tif (!canCreateTeam(jwt)) {\n\t\treturn null\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<MenuItem onClick={onCreateTeam}>Create new team</MenuItem>\n\t\t\t<MenuDivider />\n\t\t</>\n\t)\n}\n"],"names":["useSidebar","canCreateTeam","jsxs","Fragment","jsx","MenuItem","MenuDivider"],"mappings":";;;;;;AAqBO,MAAM,gBAAgB,CAAC,EAAE,mBAAuC;AAChE,QAAA,EAAE,IAAI,IAAIA,sBAAW;AAEvB,MAAA,CAACC,YAAAA,cAAc,GAAG,GAAG;AACjB,WAAA;AAAA,EAAA;AAGR,SAEEC,2BAAA,KAAAC,qBAAA,EAAA,UAAA;AAAA,IAACC,2BAAA,IAAAC,MAAA,UAAA,EAAS,SAAS,cAAc,UAAe,mBAAA;AAAA,mCAC/CC,MAAY,aAAA,CAAA,CAAA;AAAA,EAAA,GACd;AAEF;;"}
|
package/dist/harmony133.mjs
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useSidebar } from "./harmony115.mjs";
|
|
3
|
+
import { MenuItem, MenuDivider } from "@lokalise/louis";
|
|
4
|
+
import { canCreateTeam } from "./harmony116.mjs";
|
|
5
|
+
const CreateNewTeam = ({ onCreateTeam }) => {
|
|
6
|
+
const { jwt } = useSidebar();
|
|
7
|
+
if (!canCreateTeam(jwt)) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11
|
+
/* @__PURE__ */ jsx(MenuItem, { onClick: onCreateTeam, children: "Create new team" }),
|
|
12
|
+
/* @__PURE__ */ jsx(MenuDivider, {})
|
|
13
|
+
] });
|
|
6
14
|
};
|
|
7
15
|
export {
|
|
8
|
-
|
|
9
|
-
styles as default,
|
|
10
|
-
link
|
|
16
|
+
CreateNewTeam
|
|
11
17
|
};
|
|
12
18
|
//# sourceMappingURL=harmony133.mjs.map
|
package/dist/harmony133.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony133.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harmony133.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeam/CreateNewTeam.tsx"],"sourcesContent":["import { useSidebar } from '@components/Sidebar/hooks/useSidebar'\nimport { MenuDivider, MenuItem } from '@lokalise/louis'\nimport { canCreateTeam } from '@utils/user/permissions'\n\ntype CreateNewTeamProps = {\n\tonCreateTeam: () => void\n}\n\n/**\n * A menu item component for creating a new team.\n * Checks the user's permissions using the Sidebar context and renders\n * nothing if the user does not have access.\n *\n * @example\n * ```\n * <CreateNewTeam onCreateTeam={handleCreateTeam} />\n * ```\n *\n * @note This component must be used within a Sidebar Context.\n */\n\nexport const CreateNewTeam = ({ onCreateTeam }: CreateNewTeamProps) => {\n\tconst { jwt } = useSidebar()\n\n\tif (!canCreateTeam(jwt)) {\n\t\treturn null\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<MenuItem onClick={onCreateTeam}>Create new team</MenuItem>\n\t\t\t<MenuDivider />\n\t\t</>\n\t)\n}\n"],"names":[],"mappings":";;;;AAqBO,MAAM,gBAAgB,CAAC,EAAE,mBAAuC;AAChE,QAAA,EAAE,IAAI,IAAI,WAAW;AAEvB,MAAA,CAAC,cAAc,GAAG,GAAG;AACjB,WAAA;AAAA,EAAA;AAGR,SAEE,qBAAA,UAAA,EAAA,UAAA;AAAA,IAAC,oBAAA,UAAA,EAAS,SAAS,cAAc,UAAe,mBAAA;AAAA,wBAC/C,aAAY,CAAA,CAAA;AAAA,EAAA,GACd;AAEF;"}
|
package/dist/harmony134.cjs
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const useSidebar = require("./
|
|
4
|
+
const useSidebar = require("./harmony115.cjs");
|
|
5
5
|
const louis = require("@lokalise/louis");
|
|
6
|
-
const permissions = require("./
|
|
7
|
-
const
|
|
6
|
+
const permissions = require("./harmony116.cjs");
|
|
7
|
+
const CreateNewTeamPlaceholder_module = require("./harmony160.cjs");
|
|
8
|
+
const CreateNewTeamPlaceholder = ({ onClick }) => {
|
|
8
9
|
const { jwt } = useSidebar.useSidebar();
|
|
9
|
-
if (!permissions.
|
|
10
|
+
if (!permissions.canCreateTeam(jwt)) {
|
|
10
11
|
return null;
|
|
11
12
|
}
|
|
12
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
14
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { onClick, "data-testid": "sidebar-create-new-team-placeholder", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
|
|
15
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: CreateNewTeamPlaceholder_module.default.mainLabel, children: "Create new team" }),
|
|
16
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: CreateNewTeamPlaceholder_module.default.subLabel, children: "Switch to Expert to create a new team" })
|
|
17
|
+
] }) }),
|
|
18
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuDivider, {})
|
|
19
|
+
] });
|
|
13
20
|
};
|
|
14
|
-
exports.
|
|
21
|
+
exports.CreateNewTeamPlaceholder = CreateNewTeamPlaceholder;
|
|
15
22
|
//# sourceMappingURL=harmony134.cjs.map
|
package/dist/harmony134.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony134.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/
|
|
1
|
+
{"version":3,"file":"harmony134.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeamPlaceholder/CreateNewTeamPlaceholder.tsx"],"sourcesContent":["import { useSidebar } from '@components/Sidebar/hooks/useSidebar'\nimport { MenuDivider, MenuItem } from '@lokalise/louis'\nimport { canCreateTeam } from '@utils/user/permissions'\nimport styles from './CreateNewTeamPlaceholder.module.css'\n\ntype CreateNewTeamPlaceholderProps = {\n\tonClick: () => void\n}\n\n/**\n * A placeholder menu item for creating a new team.\n * Checks the user's permissions using the Sidebar context and renders\n * nothing if the user does not have access.\n *\n * @example\n * ```\n * <CreateNewTeamPlaceholder onClick={handleCreateTeam} />\n * ```\n *\n * @note This component must be used within a Sidebar Context.\n */\n\nexport const CreateNewTeamPlaceholder = ({ onClick }: CreateNewTeamPlaceholderProps) => {\n\tconst { jwt } = useSidebar()\n\n\tif (!canCreateTeam(jwt)) {\n\t\treturn null\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<MenuItem onClick={onClick} data-testid=\"sidebar-create-new-team-placeholder\">\n\t\t\t\t<div className=\"flex flex-col\">\n\t\t\t\t\t<span className={styles.mainLabel}>Create new team</span>\n\t\t\t\t\t<span className={styles.subLabel}>Switch to Expert to create a new team</span>\n\t\t\t\t</div>\n\t\t\t</MenuItem>\n\t\t\t<MenuDivider />\n\t\t</>\n\t)\n}\n"],"names":["useSidebar","canCreateTeam","jsxs","Fragment","jsx","MenuItem","styles","MenuDivider"],"mappings":";;;;;;;AAsBO,MAAM,2BAA2B,CAAC,EAAE,cAA6C;AACjF,QAAA,EAAE,IAAI,IAAIA,sBAAW;AAEvB,MAAA,CAACC,YAAAA,cAAc,GAAG,GAAG;AACjB,WAAA;AAAA,EAAA;AAGR,SAEEC,2BAAA,KAAAC,qBAAA,EAAA,UAAA;AAAA,IAAAC,2BAAAA,IAACC,kBAAS,SAAkB,eAAY,uCACvC,UAACH,2BAAAA,KAAA,OAAA,EAAI,WAAU,iBACd,UAAA;AAAA,MAAAE,2BAAA,IAAC,QAAK,EAAA,WAAWE,gCAAO,QAAA,WAAW,UAAe,mBAAA;AAAA,MACjDF,2BAAA,IAAA,QAAA,EAAK,WAAWE,gCAAA,QAAO,UAAU,UAAqC,wCAAA,CAAA;AAAA,IAAA,EAAA,CACxE,EACD,CAAA;AAAA,mCACCC,MAAY,aAAA,CAAA,CAAA;AAAA,EAAA,GACd;AAEF;;"}
|
package/dist/harmony134.mjs
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useSidebar } from "./
|
|
3
|
-
import { MenuItem } from "@lokalise/louis";
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useSidebar } from "./harmony115.mjs";
|
|
3
|
+
import { MenuItem, MenuDivider } from "@lokalise/louis";
|
|
4
|
+
import { canCreateTeam } from "./harmony116.mjs";
|
|
5
|
+
import styles from "./harmony160.mjs";
|
|
6
|
+
const CreateNewTeamPlaceholder = ({ onClick }) => {
|
|
6
7
|
const { jwt } = useSidebar();
|
|
7
|
-
if (!
|
|
8
|
+
if (!canCreateTeam(jwt)) {
|
|
8
9
|
return null;
|
|
9
10
|
}
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12
|
+
/* @__PURE__ */ jsx(MenuItem, { onClick, "data-testid": "sidebar-create-new-team-placeholder", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
13
|
+
/* @__PURE__ */ jsx("span", { className: styles.mainLabel, children: "Create new team" }),
|
|
14
|
+
/* @__PURE__ */ jsx("span", { className: styles.subLabel, children: "Switch to Expert to create a new team" })
|
|
15
|
+
] }) }),
|
|
16
|
+
/* @__PURE__ */ jsx(MenuDivider, {})
|
|
17
|
+
] });
|
|
11
18
|
};
|
|
12
19
|
export {
|
|
13
|
-
|
|
20
|
+
CreateNewTeamPlaceholder
|
|
14
21
|
};
|
|
15
22
|
//# sourceMappingURL=harmony134.mjs.map
|
package/dist/harmony134.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony134.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/
|
|
1
|
+
{"version":3,"file":"harmony134.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeamPlaceholder/CreateNewTeamPlaceholder.tsx"],"sourcesContent":["import { useSidebar } from '@components/Sidebar/hooks/useSidebar'\nimport { MenuDivider, MenuItem } from '@lokalise/louis'\nimport { canCreateTeam } from '@utils/user/permissions'\nimport styles from './CreateNewTeamPlaceholder.module.css'\n\ntype CreateNewTeamPlaceholderProps = {\n\tonClick: () => void\n}\n\n/**\n * A placeholder menu item for creating a new team.\n * Checks the user's permissions using the Sidebar context and renders\n * nothing if the user does not have access.\n *\n * @example\n * ```\n * <CreateNewTeamPlaceholder onClick={handleCreateTeam} />\n * ```\n *\n * @note This component must be used within a Sidebar Context.\n */\n\nexport const CreateNewTeamPlaceholder = ({ onClick }: CreateNewTeamPlaceholderProps) => {\n\tconst { jwt } = useSidebar()\n\n\tif (!canCreateTeam(jwt)) {\n\t\treturn null\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<MenuItem onClick={onClick} data-testid=\"sidebar-create-new-team-placeholder\">\n\t\t\t\t<div className=\"flex flex-col\">\n\t\t\t\t\t<span className={styles.mainLabel}>Create new team</span>\n\t\t\t\t\t<span className={styles.subLabel}>Switch to Expert to create a new team</span>\n\t\t\t\t</div>\n\t\t\t</MenuItem>\n\t\t\t<MenuDivider />\n\t\t</>\n\t)\n}\n"],"names":[],"mappings":";;;;;AAsBO,MAAM,2BAA2B,CAAC,EAAE,cAA6C;AACjF,QAAA,EAAE,IAAI,IAAI,WAAW;AAEvB,MAAA,CAAC,cAAc,GAAG,GAAG;AACjB,WAAA;AAAA,EAAA;AAGR,SAEE,qBAAA,UAAA,EAAA,UAAA;AAAA,IAAA,oBAAC,YAAS,SAAkB,eAAY,uCACvC,UAAC,qBAAA,OAAA,EAAI,WAAU,iBACd,UAAA;AAAA,MAAA,oBAAC,QAAK,EAAA,WAAW,OAAO,WAAW,UAAe,mBAAA;AAAA,MACjD,oBAAA,QAAA,EAAK,WAAW,OAAO,UAAU,UAAqC,wCAAA,CAAA;AAAA,IAAA,EAAA,CACxE,EACD,CAAA;AAAA,wBACC,aAAY,CAAA,CAAA;AAAA,EAAA,GACd;AAEF;"}
|
package/dist/harmony135.cjs
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const useSidebar = require("./harmony113.cjs");
|
|
5
4
|
const louis = require("@lokalise/louis");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
13
|
-
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { onClick: onCreateTeam, children: "Create new team" }),
|
|
14
|
-
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuDivider, {})
|
|
15
|
-
] });
|
|
5
|
+
const DarkModeToggle_module = require("./harmony161.cjs");
|
|
6
|
+
const DarkModeToggle = ({ onToggle, isDarkMode }) => {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { onClick: onToggle, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex-row justify-between gap-1 ${DarkModeToggle_module.default.switchContainer}`, children: [
|
|
8
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Dark mode" }),
|
|
9
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.Switch, { defaultChecked: isDarkMode, "aria-label": "Toggle dark mode" })
|
|
10
|
+
] }) });
|
|
16
11
|
};
|
|
17
|
-
exports.
|
|
12
|
+
exports.DarkModeToggle = DarkModeToggle;
|
|
18
13
|
//# sourceMappingURL=harmony135.cjs.map
|
package/dist/harmony135.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony135.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/
|
|
1
|
+
{"version":3,"file":"harmony135.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/DarkModeToggle/DarkModeToggle.tsx"],"sourcesContent":["import { MenuItem, Switch } from '@lokalise/louis'\nimport styles from './DarkModeToggle.module.css'\n\ntype DarkModeToggleProps = {\n\tonToggle: () => void\n\tisDarkMode: boolean\n}\n\n/**\n * A menu item component for toggling dark mode.\n * Displays a switch and label, and calls the provided onToggle handler when clicked.\n *\n * @example\n * ```\n * <DarkModeToggle\n * isDarkMode={isDarkMode}\n * onToggle={handleToggleDarkMode}\n * />\n * ```\n */\n\nexport const DarkModeToggle = ({ onToggle, isDarkMode }: DarkModeToggleProps) => {\n\treturn (\n\t\t<MenuItem onClick={onToggle}>\n\t\t\t<div className={`flex-row justify-between gap-1 ${styles.switchContainer}`}>\n\t\t\t\t<span>Dark mode</span>\n\t\t\t\t<Switch defaultChecked={isDarkMode} aria-label=\"Toggle dark mode\" />\n\t\t\t</div>\n\t\t</MenuItem>\n\t)\n}\n"],"names":["jsx","MenuItem","jsxs","styles","Switch"],"mappings":";;;;;AAqBO,MAAM,iBAAiB,CAAC,EAAE,UAAU,iBAAsC;AAE/E,SAAAA,2BAAAA,IAACC,MAAAA,UAAS,EAAA,SAAS,UAClB,UAAAC,2BAAA,KAAC,SAAI,WAAW,kCAAkCC,sBAAO,QAAA,eAAe,IACvE,UAAA;AAAA,IAAAH,2BAAAA,IAAC,UAAK,UAAS,YAAA,CAAA;AAAA,IACdA,2BAAA,IAAAI,MAAA,QAAA,EAAO,gBAAgB,YAAY,cAAW,mBAAmB,CAAA;AAAA,EAAA,EAAA,CACnE,EACD,CAAA;AAEF;;"}
|
package/dist/harmony135.mjs
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11
|
-
/* @__PURE__ */ jsx(MenuItem, { onClick: onCreateTeam, children: "Create new team" }),
|
|
12
|
-
/* @__PURE__ */ jsx(MenuDivider, {})
|
|
13
|
-
] });
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { MenuItem, Switch } from "@lokalise/louis";
|
|
3
|
+
import styles from "./harmony161.mjs";
|
|
4
|
+
const DarkModeToggle = ({ onToggle, isDarkMode }) => {
|
|
5
|
+
return /* @__PURE__ */ jsx(MenuItem, { onClick: onToggle, children: /* @__PURE__ */ jsxs("div", { className: `flex-row justify-between gap-1 ${styles.switchContainer}`, children: [
|
|
6
|
+
/* @__PURE__ */ jsx("span", { children: "Dark mode" }),
|
|
7
|
+
/* @__PURE__ */ jsx(Switch, { defaultChecked: isDarkMode, "aria-label": "Toggle dark mode" })
|
|
8
|
+
] }) });
|
|
14
9
|
};
|
|
15
10
|
export {
|
|
16
|
-
|
|
11
|
+
DarkModeToggle
|
|
17
12
|
};
|
|
18
13
|
//# sourceMappingURL=harmony135.mjs.map
|
package/dist/harmony135.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony135.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/
|
|
1
|
+
{"version":3,"file":"harmony135.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/DarkModeToggle/DarkModeToggle.tsx"],"sourcesContent":["import { MenuItem, Switch } from '@lokalise/louis'\nimport styles from './DarkModeToggle.module.css'\n\ntype DarkModeToggleProps = {\n\tonToggle: () => void\n\tisDarkMode: boolean\n}\n\n/**\n * A menu item component for toggling dark mode.\n * Displays a switch and label, and calls the provided onToggle handler when clicked.\n *\n * @example\n * ```\n * <DarkModeToggle\n * isDarkMode={isDarkMode}\n * onToggle={handleToggleDarkMode}\n * />\n * ```\n */\n\nexport const DarkModeToggle = ({ onToggle, isDarkMode }: DarkModeToggleProps) => {\n\treturn (\n\t\t<MenuItem onClick={onToggle}>\n\t\t\t<div className={`flex-row justify-between gap-1 ${styles.switchContainer}`}>\n\t\t\t\t<span>Dark mode</span>\n\t\t\t\t<Switch defaultChecked={isDarkMode} aria-label=\"Toggle dark mode\" />\n\t\t\t</div>\n\t\t</MenuItem>\n\t)\n}\n"],"names":[],"mappings":";;;AAqBO,MAAM,iBAAiB,CAAC,EAAE,UAAU,iBAAsC;AAE/E,SAAA,oBAAC,UAAS,EAAA,SAAS,UAClB,UAAA,qBAAC,SAAI,WAAW,kCAAkC,OAAO,eAAe,IACvE,UAAA;AAAA,IAAA,oBAAC,UAAK,UAAS,YAAA,CAAA;AAAA,IACd,oBAAA,QAAA,EAAO,gBAAgB,YAAY,cAAW,mBAAmB,CAAA;AAAA,EAAA,EAAA,CACnE,EACD,CAAA;AAEF;"}
|
package/dist/harmony136.cjs
CHANGED
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const useSidebar = require("./
|
|
4
|
+
const useSidebar = require("./harmony115.cjs");
|
|
5
5
|
const louis = require("@lokalise/louis");
|
|
6
|
-
const permissions = require("./
|
|
7
|
-
const
|
|
8
|
-
const
|
|
6
|
+
const permissions = require("./harmony116.cjs");
|
|
7
|
+
const ProfileSettingsMenuItem_module = require("./harmony162.cjs");
|
|
8
|
+
const ProfileSettingsMenuItem = ({ onClick }) => {
|
|
9
9
|
const { jwt } = useSidebar.useSidebar();
|
|
10
|
-
if (!permissions.
|
|
10
|
+
if (!permissions.canAccessProfileSettings(jwt)) {
|
|
11
11
|
return null;
|
|
12
12
|
}
|
|
13
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14
|
+
louis.MenuItem,
|
|
15
|
+
{
|
|
16
|
+
"data-testid": "sidebar-profile-settings-menu-item",
|
|
17
|
+
href: "/profile",
|
|
18
|
+
onClick: () => {
|
|
19
|
+
onClick == null ? void 0 : onClick();
|
|
20
|
+
},
|
|
21
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex-col ${ProfileSettingsMenuItem_module.default.container}`, children: [
|
|
22
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Profile Settings" }),
|
|
23
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ProfileSettingsMenuItem_module.default.profileEmail, children: jwt == null ? void 0 : jwt.userEmail })
|
|
24
|
+
] })
|
|
25
|
+
}
|
|
26
|
+
);
|
|
20
27
|
};
|
|
21
|
-
exports.
|
|
28
|
+
exports.ProfileSettingsMenuItem = ProfileSettingsMenuItem;
|
|
22
29
|
//# sourceMappingURL=harmony136.cjs.map
|
package/dist/harmony136.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony136.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/
|
|
1
|
+
{"version":3,"file":"harmony136.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileSettingsMenuItem/ProfileSettingsMenuItem.tsx"],"sourcesContent":["import { useSidebar } from '@components/Sidebar/hooks/useSidebar'\nimport { MenuItem } from '@lokalise/louis'\nimport { canAccessProfileSettings } from '@utils/user/permissions'\nimport styles from './ProfileSettingsMenuItem.module.css'\n\n/**\n * A menu item component for navigating to the profile settings page.\n * Checks the user's permissions using the Sidebar context and renders\n * nothing if the user does not have access.\n *\n * @example\n * ```\n * <ProfileSettingsMenuItem onClick={() => { }} />\n * ```\n *\n * @note This component must be used within a Sidebar Context.\n */\n\ntype ProfileSettingsMenuItem = {\n\tonClick?: () => void\n}\n\nexport const ProfileSettingsMenuItem = ({ onClick }: ProfileSettingsMenuItem) => {\n\tconst { jwt } = useSidebar()\n\n\tif (!canAccessProfileSettings(jwt)) {\n\t\treturn null\n\t}\n\n\treturn (\n\t\t<MenuItem\n\t\t\tdata-testid=\"sidebar-profile-settings-menu-item\"\n\t\t\thref=\"/profile\"\n\t\t\tonClick={() => {\n\t\t\t\tonClick?.()\n\t\t\t}}\n\t\t>\n\t\t\t<div className={`flex-col ${styles.container}`}>\n\t\t\t\t<span>Profile Settings</span>\n\t\t\t\t<span className={styles.profileEmail}>{jwt?.userEmail}</span>\n\t\t\t</div>\n\t\t</MenuItem>\n\t)\n}\n"],"names":["useSidebar","canAccessProfileSettings","jsx","MenuItem","styles"],"mappings":";;;;;;;AAsBO,MAAM,0BAA0B,CAAC,EAAE,cAAuC;AAC1E,QAAA,EAAE,IAAI,IAAIA,sBAAW;AAEvB,MAAA,CAACC,YAAAA,yBAAyB,GAAG,GAAG;AAC5B,WAAA;AAAA,EAAA;AAIP,SAAAC,2BAAA;AAAA,IAACC,MAAA;AAAA,IAAA;AAAA,MACA,eAAY;AAAA,MACZ,MAAK;AAAA,MACL,SAAS,MAAM;AACJ;AAAA,MACX;AAAA,MAEA,0CAAC,OAAI,EAAA,WAAW,YAAYC,uCAAO,SAAS,IAC3C,UAAA;AAAA,QAAAF,2BAAAA,IAAC,UAAK,UAAgB,mBAAA,CAAA;AAAA,uCACrB,QAAK,EAAA,WAAWE,+BAAAA,QAAO,cAAe,qCAAK,UAAU,CAAA;AAAA,MAAA,EACvD,CAAA;AAAA,IAAA;AAAA,EACD;AAEF;;"}
|
package/dist/harmony136.mjs
CHANGED
|
@@ -1,22 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useSidebar } from "./
|
|
3
|
-
import { MenuItem
|
|
4
|
-
import {
|
|
5
|
-
import styles from "./
|
|
6
|
-
const
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useSidebar } from "./harmony115.mjs";
|
|
3
|
+
import { MenuItem } from "@lokalise/louis";
|
|
4
|
+
import { canAccessProfileSettings } from "./harmony116.mjs";
|
|
5
|
+
import styles from "./harmony162.mjs";
|
|
6
|
+
const ProfileSettingsMenuItem = ({ onClick }) => {
|
|
7
7
|
const { jwt } = useSidebar();
|
|
8
|
-
if (!
|
|
8
|
+
if (!canAccessProfileSettings(jwt)) {
|
|
9
9
|
return null;
|
|
10
10
|
}
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
return /* @__PURE__ */ jsx(
|
|
12
|
+
MenuItem,
|
|
13
|
+
{
|
|
14
|
+
"data-testid": "sidebar-profile-settings-menu-item",
|
|
15
|
+
href: "/profile",
|
|
16
|
+
onClick: () => {
|
|
17
|
+
onClick == null ? void 0 : onClick();
|
|
18
|
+
},
|
|
19
|
+
children: /* @__PURE__ */ jsxs("div", { className: `flex-col ${styles.container}`, children: [
|
|
20
|
+
/* @__PURE__ */ jsx("span", { children: "Profile Settings" }),
|
|
21
|
+
/* @__PURE__ */ jsx("span", { className: styles.profileEmail, children: jwt == null ? void 0 : jwt.userEmail })
|
|
22
|
+
] })
|
|
23
|
+
}
|
|
24
|
+
);
|
|
18
25
|
};
|
|
19
26
|
export {
|
|
20
|
-
|
|
27
|
+
ProfileSettingsMenuItem
|
|
21
28
|
};
|
|
22
29
|
//# sourceMappingURL=harmony136.mjs.map
|