@lokalise/harmony 1.36.1 → 1.37.1-exp-epic2x.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/harmony.cjs +1 -3
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.css +110 -317
- package/dist/harmony.mjs +2 -4
- package/dist/harmony100.cjs +10 -12
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +9 -11
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +27 -9
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +29 -11
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +14 -21
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +13 -20
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +35 -12
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +35 -12
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +14 -18
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +14 -18
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +22 -21
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +21 -20
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +34 -5
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +34 -5
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +21 -132
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +20 -131
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +21 -12
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +20 -11
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +7 -6
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +6 -5
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +15 -40
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +14 -39
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +6 -61
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +5 -60
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +6 -8
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +5 -7
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +6 -3
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +6 -3
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +6 -99
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +5 -81
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +10 -63
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +9 -62
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +24 -88
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +23 -87
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +3 -15
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +3 -15
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +12 -5
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +12 -5
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +6 -5
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +6 -5
- package/dist/harmony122.cjs +1 -1
- package/dist/harmony122.mjs +1 -1
- package/dist/harmony123.cjs +2 -2
- package/dist/harmony123.mjs +2 -2
- package/dist/harmony125.cjs +13 -7
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +13 -7
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +15 -57
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +15 -57
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +15 -59
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +15 -59
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +12 -19
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +11 -18
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +15 -12
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +15 -12
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony13.cjs +1 -1
- package/dist/harmony13.mjs +1 -1
- package/dist/harmony130.cjs +19 -13
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +19 -13
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +10 -14
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +10 -14
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +5 -10
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +5 -10
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +11 -15
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +11 -15
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +28 -17
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +28 -17
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +12 -10
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +12 -10
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony16.cjs +1 -1
- package/dist/harmony16.mjs +1 -1
- package/dist/harmony23.cjs +1 -1
- package/dist/harmony23.mjs +1 -1
- package/dist/harmony24.cjs +1 -1
- package/dist/harmony24.mjs +1 -1
- package/dist/harmony31.cjs +4 -4
- package/dist/harmony31.cjs.map +1 -1
- package/dist/harmony31.mjs +5 -5
- package/dist/harmony31.mjs.map +1 -1
- package/dist/harmony38.cjs.map +1 -1
- package/dist/harmony38.mjs.map +1 -1
- package/dist/harmony4.cjs +15 -24
- package/dist/harmony4.cjs.map +1 -1
- package/dist/harmony4.mjs +15 -24
- package/dist/harmony4.mjs.map +1 -1
- package/dist/harmony40.cjs.map +1 -1
- package/dist/harmony40.mjs.map +1 -1
- package/dist/harmony44.cjs.map +1 -1
- package/dist/harmony44.mjs.map +1 -1
- package/dist/harmony5.cjs +1 -1
- package/dist/harmony5.mjs +1 -1
- package/dist/harmony6.cjs +3 -3
- package/dist/harmony6.mjs +3 -3
- package/dist/harmony64.cjs +4 -15
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +4 -15
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony7.cjs +1 -1
- package/dist/harmony7.mjs +1 -1
- package/dist/harmony72.cjs +1 -1
- package/dist/harmony72.mjs +1 -1
- package/dist/harmony73.cjs +51 -6
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs +50 -5
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs +38 -8
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs +38 -8
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs +9 -18
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs +8 -17
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony76.cjs +6 -21
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +8 -23
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +28 -4
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +28 -4
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +3 -32
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +3 -32
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +30 -29
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +31 -30
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +25 -17
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +25 -17
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +3 -31
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +3 -31
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +12 -53
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +14 -55
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +75 -9
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +74 -8
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +11 -7
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +12 -8
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +29 -28
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +29 -28
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +9 -3
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +9 -3
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +42 -28
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +44 -30
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +6 -3
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +6 -3
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +12 -10
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +11 -9
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +20 -8
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +20 -8
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +9 -54
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +11 -56
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +12 -42
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +11 -41
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +98 -4
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +82 -5
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +14 -9
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +13 -8
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +21 -25
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +20 -24
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +6 -3
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +6 -3
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +11 -18
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +12 -19
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +17 -12
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +16 -11
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +17 -8
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +19 -10
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/components/Sidebar/Sidebar.d.ts +15 -49
- package/dist/types/src/components/Sidebar/SidebarContent/SidebarContent.d.ts +7 -0
- package/dist/types/src/components/Sidebar/SidebarContext.d.ts +3 -0
- package/dist/types/src/components/Sidebar/SidebarProvider.d.ts +3 -0
- package/dist/types/src/components/Sidebar/Widgets/Avatar/Avatar.d.ts +5 -0
- package/dist/types/src/components/Sidebar/Widgets/HelpMenu/HelpMenu.d.ts +13 -0
- package/dist/types/src/components/Sidebar/Widgets/HelpMenu/HelpMenu.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/IconLink/IconLink.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/Menu/Menu.d.ts +3 -2
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/BillingMenuItem/BillingMenuItem.d.ts +13 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeam/CreateNewTeam.d.ts +17 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeam/CreateNewTeam.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeamPlaceholder/CreateNewTeamPlaceholder.d.ts +17 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeamPlaceholder/CreateNewTeamPlaceholder.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/DarkModeToggle/DarkModeToggle.d.ts +18 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenu.d.ts +11 -24
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenu.stories.d.ts +3 -5
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileSettingsMenuItem/ProfileSettingsMenuItem.d.ts +10 -35
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileSettingsMenuItem/ProfileSettingsMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProviderMenuItem/ProviderMenuItem.d.ts +13 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProviderMenuItem/ProviderMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamMenuItem/TeamMenuItem.d.ts +1 -3
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamMenuItem/TeamMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamSettingsMenuItem/TeamSettingsMenuItem.d.ts +13 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamSettingsMenuItem/TeamSettingsMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamSwitch/TeamSwitch.d.ts +5 -7
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamSwitch/TeamSwitch.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/UpgradeMenuItem/UpgradeMenuItem.d.ts +6 -9
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/UpgradeMenuItem/UpgradeMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/Tasks/utils/content.d.ts +4 -0
- package/dist/types/src/components/Sidebar/hooks/useSidebar.d.ts +1 -0
- package/dist/types/src/components/Sidebar/hooks/useSidebarDataLoader.d.ts +5 -0
- package/dist/types/src/components/Sidebar/types.d.ts +72 -0
- package/dist/types/src/features/auth/core/types/jwtTokenPayload.d.ts +16 -10
- package/dist/types/src/features/auth/core/types/jwtTokenPayload.fixture.d.ts +15 -11
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedSessionPayload.d.ts +7 -5
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedUser.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useCreateProjectMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useCreateScoreMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useDeleteScoreMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useGetScoreQuery.d.ts +4 -3
- package/dist/types/src/features/publicApi/hooks/useGetTeamUsersQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListPermissionTemplates.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListTeamUsersQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useUpdateProjectMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/permissionTemplates.d.ts +4 -4
- package/dist/types/src/features/publicApi/projects.d.ts +18 -18
- package/dist/types/src/features/publicApi/score.d.ts +8 -4
- package/dist/types/src/features/publicApi/teamUsers.d.ts +8 -8
- package/dist/types/src/features/publicApi/types/permissionTemplateTypes.d.ts +6 -6
- package/dist/types/src/features/publicApi/types/permissionTypes.d.ts +2 -2
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +18 -18
- package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +8 -33
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +10 -10
- package/dist/types/src/utils/user/permissions.d.ts +9 -0
- package/dist/types/src/utils/user/permissions.test.d.ts +1 -0
- package/dist/types/tests/mocks/sidebar/sidebar.d.ts +19 -0
- package/dist/types/tests/utils/sidebar.d.ts +4 -0
- package/package.json +1 -1
- package/dist/harmony136.cjs +0 -9
- package/dist/harmony136.cjs.map +0 -1
- package/dist/harmony136.mjs +0 -9
- package/dist/harmony136.mjs.map +0 -1
- package/dist/harmony137.cjs +0 -15
- package/dist/harmony137.cjs.map +0 -1
- package/dist/harmony137.mjs +0 -15
- package/dist/harmony137.mjs.map +0 -1
- package/dist/harmony138.cjs +0 -35
- package/dist/harmony138.cjs.map +0 -1
- package/dist/harmony138.mjs +0 -35
- package/dist/harmony138.mjs.map +0 -1
- package/dist/harmony139.cjs +0 -17
- package/dist/harmony139.cjs.map +0 -1
- package/dist/harmony139.mjs +0 -17
- package/dist/harmony139.mjs.map +0 -1
- package/dist/harmony140.cjs +0 -49
- package/dist/harmony140.cjs.map +0 -1
- package/dist/harmony140.mjs +0 -49
- package/dist/harmony140.mjs.map +0 -1
- package/dist/harmony141.cjs +0 -15
- package/dist/harmony141.cjs.map +0 -1
- package/dist/harmony141.mjs +0 -15
- package/dist/harmony141.mjs.map +0 -1
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContent.d.ts +0 -6
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContext.d.ts +0 -3
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuProvider.d.ts +0 -7
- package/dist/types/src/components/Sidebar/utils/index.d.ts +0 -4
- /package/dist/types/src/components/Sidebar/Widgets/{ProfileMenu/ProfileMenu.test.d.ts → Avatar/Avatar.test.d.ts} +0 -0
- /package/dist/types/src/components/Sidebar/{UpgradeIcon → Widgets/ProfileMenu/UpgradeIcon}/UpgradeIcon.d.ts +0 -0
package/dist/harmony95.cjs
CHANGED
@@ -1,27 +1,23 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
exports.
|
23
|
-
exports.profileImage = profileImage;
|
24
|
-
exports.teamDetails = teamDetails;
|
25
|
-
exports.teamName = teamName;
|
26
|
-
exports.wrapper = wrapper;
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const zod = require("zod");
|
4
|
+
const teamRoleTypes = require("./harmony66.cjs");
|
5
|
+
const JWT_TOKEN_PAYLOAD_SCHEMA = zod.z.object({
|
6
|
+
userId: zod.z.number(),
|
7
|
+
userUuid: zod.z.string().uuid(),
|
8
|
+
teamId: zod.z.number(),
|
9
|
+
teamUuid: zod.z.string().uuid(),
|
10
|
+
userTeamRole: teamRoleTypes.TEAM_ROLE_SCHEMA,
|
11
|
+
userEmail: zod.z.string().email(),
|
12
|
+
userName: zod.z.string(),
|
13
|
+
userCurrentTeamId: zod.z.number(),
|
14
|
+
planId: zod.z.number(),
|
15
|
+
planName: zod.z.string(),
|
16
|
+
isProviderAlpha: zod.z.boolean(),
|
17
|
+
isFullyAuthenticated: zod.z.boolean(),
|
18
|
+
isEndOfTrialActive: zod.z.boolean(),
|
19
|
+
isTeamSuspended: zod.z.boolean(),
|
20
|
+
exp: zod.z.number()
|
21
|
+
});
|
22
|
+
exports.JWT_TOKEN_PAYLOAD_SCHEMA = JWT_TOKEN_PAYLOAD_SCHEMA;
|
27
23
|
//# sourceMappingURL=harmony95.cjs.map
|
package/dist/harmony95.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony95.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony95.cjs","sources":["../src/features/auth/core/types/jwtTokenPayload.ts"],"sourcesContent":["import { z } from 'zod'\nimport { TEAM_ROLE_SCHEMA } from '../../../publicApi/types/teamRoleTypes'\n\nexport const JWT_TOKEN_PAYLOAD_SCHEMA = z.object({\n\tuserId: z.number(),\n\tuserUuid: z.string().uuid(),\n\tteamId: z.number(),\n\tteamUuid: z.string().uuid(),\n\tuserTeamRole: TEAM_ROLE_SCHEMA,\n\tuserEmail: z.string().email(),\n\tuserName: z.string(),\n\tuserCurrentTeamId: z.number(),\n\tplanId: z.number(),\n\tplanName: z.string(),\n\tisProviderAlpha: z.boolean(),\n\tisFullyAuthenticated: z.boolean(),\n\tisEndOfTrialActive: z.boolean(),\n\tisTeamSuspended: z.boolean(),\n\texp: z.number(),\n})\nexport type JwtTokenPayload = z.infer<typeof JWT_TOKEN_PAYLOAD_SCHEMA>\n"],"names":["z","TEAM_ROLE_SCHEMA"],"mappings":";;;;AAGa,MAAA,2BAA2BA,MAAE,OAAO;AAAA,EAChD,QAAQA,MAAE,OAAO;AAAA,EACjB,UAAUA,IAAA,EAAE,OAAO,EAAE,KAAK;AAAA,EAC1B,QAAQA,MAAE,OAAO;AAAA,EACjB,UAAUA,IAAA,EAAE,OAAO,EAAE,KAAK;AAAA,EAC1B,cAAcC,cAAA;AAAA,EACd,WAAWD,IAAA,EAAE,OAAO,EAAE,MAAM;AAAA,EAC5B,UAAUA,MAAE,OAAO;AAAA,EACnB,mBAAmBA,MAAE,OAAO;AAAA,EAC5B,QAAQA,MAAE,OAAO;AAAA,EACjB,UAAUA,MAAE,OAAO;AAAA,EACnB,iBAAiBA,MAAE,QAAQ;AAAA,EAC3B,sBAAsBA,MAAE,QAAQ;AAAA,EAChC,oBAAoBA,MAAE,QAAQ;AAAA,EAC9B,iBAAiBA,MAAE,QAAQ;AAAA,EAC3B,KAAKA,MAAE,OAAO;AACf,CAAC;;"}
|
package/dist/harmony95.mjs
CHANGED
@@ -1,27 +1,23 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
1
|
+
import { z } from "zod";
|
2
|
+
import { TEAM_ROLE_SCHEMA } from "./harmony66.mjs";
|
3
|
+
const JWT_TOKEN_PAYLOAD_SCHEMA = z.object({
|
4
|
+
userId: z.number(),
|
5
|
+
userUuid: z.string().uuid(),
|
6
|
+
teamId: z.number(),
|
7
|
+
teamUuid: z.string().uuid(),
|
8
|
+
userTeamRole: TEAM_ROLE_SCHEMA,
|
9
|
+
userEmail: z.string().email(),
|
10
|
+
userName: z.string(),
|
11
|
+
userCurrentTeamId: z.number(),
|
12
|
+
planId: z.number(),
|
13
|
+
planName: z.string(),
|
14
|
+
isProviderAlpha: z.boolean(),
|
15
|
+
isFullyAuthenticated: z.boolean(),
|
16
|
+
isEndOfTrialActive: z.boolean(),
|
17
|
+
isTeamSuspended: z.boolean(),
|
18
|
+
exp: z.number()
|
19
|
+
});
|
17
20
|
export {
|
18
|
-
|
19
|
-
defaultProfileImage,
|
20
|
-
membership,
|
21
|
-
planWrapper,
|
22
|
-
profileImage,
|
23
|
-
teamDetails,
|
24
|
-
teamName,
|
25
|
-
wrapper
|
21
|
+
JWT_TOKEN_PAYLOAD_SCHEMA
|
26
22
|
};
|
27
23
|
//# sourceMappingURL=harmony95.mjs.map
|
package/dist/harmony95.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony95.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony95.mjs","sources":["../src/features/auth/core/types/jwtTokenPayload.ts"],"sourcesContent":["import { z } from 'zod'\nimport { TEAM_ROLE_SCHEMA } from '../../../publicApi/types/teamRoleTypes'\n\nexport const JWT_TOKEN_PAYLOAD_SCHEMA = z.object({\n\tuserId: z.number(),\n\tuserUuid: z.string().uuid(),\n\tteamId: z.number(),\n\tteamUuid: z.string().uuid(),\n\tuserTeamRole: TEAM_ROLE_SCHEMA,\n\tuserEmail: z.string().email(),\n\tuserName: z.string(),\n\tuserCurrentTeamId: z.number(),\n\tplanId: z.number(),\n\tplanName: z.string(),\n\tisProviderAlpha: z.boolean(),\n\tisFullyAuthenticated: z.boolean(),\n\tisEndOfTrialActive: z.boolean(),\n\tisTeamSuspended: z.boolean(),\n\texp: z.number(),\n})\nexport type JwtTokenPayload = z.infer<typeof JWT_TOKEN_PAYLOAD_SCHEMA>\n"],"names":[],"mappings":";;AAGa,MAAA,2BAA2B,EAAE,OAAO;AAAA,EAChD,QAAQ,EAAE,OAAO;AAAA,EACjB,UAAU,EAAE,OAAO,EAAE,KAAK;AAAA,EAC1B,QAAQ,EAAE,OAAO;AAAA,EACjB,UAAU,EAAE,OAAO,EAAE,KAAK;AAAA,EAC1B,cAAc;AAAA,EACd,WAAW,EAAE,OAAO,EAAE,MAAM;AAAA,EAC5B,UAAU,EAAE,OAAO;AAAA,EACnB,mBAAmB,EAAE,OAAO;AAAA,EAC5B,QAAQ,EAAE,OAAO;AAAA,EACjB,UAAU,EAAE,OAAO;AAAA,EACnB,iBAAiB,EAAE,QAAQ;AAAA,EAC3B,sBAAsB,EAAE,QAAQ;AAAA,EAChC,oBAAoB,EAAE,QAAQ;AAAA,EAC9B,iBAAiB,EAAE,QAAQ;AAAA,EAC3B,KAAK,EAAE,OAAO;AACf,CAAC;"}
|
package/dist/harmony96.cjs
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
3
|
+
const link = "_link_18vhx_1";
|
4
|
+
const active = "_active_18vhx_18";
|
4
5
|
const styles = {
|
5
|
-
|
6
|
+
link,
|
7
|
+
active
|
6
8
|
};
|
9
|
+
exports.active = active;
|
7
10
|
exports.default = styles;
|
8
|
-
exports.
|
11
|
+
exports.link = link;
|
9
12
|
//# sourceMappingURL=harmony96.cjs.map
|
package/dist/harmony96.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony96.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony96.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/harmony96.mjs
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
-
const
|
1
|
+
const link = "_link_18vhx_1";
|
2
|
+
const active = "_active_18vhx_18";
|
2
3
|
const styles = {
|
3
|
-
|
4
|
+
link,
|
5
|
+
active
|
4
6
|
};
|
5
7
|
export {
|
8
|
+
active,
|
6
9
|
styles as default,
|
7
|
-
|
10
|
+
link
|
8
11
|
};
|
9
12
|
//# sourceMappingURL=harmony96.mjs.map
|
package/dist/harmony96.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony96.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony96.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/harmony97.cjs
CHANGED
@@ -1,24 +1,17 @@
|
|
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("./harmony84.cjs");
|
4
5
|
const louis = require("@lokalise/louis");
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
8
|
-
|
9
|
-
|
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
|
-
);
|
6
|
+
const permissions = require("./harmony85.cjs");
|
7
|
+
const BillingMenuItem = () => {
|
8
|
+
const {
|
9
|
+
data: { jwt }
|
10
|
+
} = useSidebar.useSidebar();
|
11
|
+
if (!permissions.canChangeBilling(jwt.result)) {
|
12
|
+
return null;
|
13
|
+
}
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { href: "/team#billing", children: "Billing" });
|
22
15
|
};
|
23
|
-
exports.
|
16
|
+
exports.BillingMenuItem = BillingMenuItem;
|
24
17
|
//# sourceMappingURL=harmony97.cjs.map
|
package/dist/harmony97.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony97.cjs","sources":["../src/components/Sidebar/
|
1
|
+
{"version":3,"file":"harmony97.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 {\n\t\tdata: { jwt },\n\t} = useSidebar()\n\n\tif (!canChangeBilling(jwt.result)) {\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;AAAA,IACL,MAAM,EAAE,IAAI;AAAA,MACTA,sBAAW;AAEf,MAAI,CAACC,YAAA,iBAAiB,IAAI,MAAM,GAAG;AAC3B,WAAA;AAAA,EAAA;AAGR,SAAQC,2BAAAA,IAAAC,MAAAA,UAAA,EAAS,MAAK,iBAAgB,UAAO,WAAA;AAC9C;;"}
|
package/dist/harmony97.mjs
CHANGED
@@ -1,24 +1,17 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
"items-center",
|
14
|
-
"justify-center",
|
15
|
-
className
|
16
|
-
),
|
17
|
-
children: /* @__PURE__ */ jsx(CaretUpIcon, {})
|
18
|
-
}
|
19
|
-
);
|
2
|
+
import { useSidebar } from "./harmony84.mjs";
|
3
|
+
import { MenuItem } from "@lokalise/louis";
|
4
|
+
import { canChangeBilling } from "./harmony85.mjs";
|
5
|
+
const BillingMenuItem = () => {
|
6
|
+
const {
|
7
|
+
data: { jwt }
|
8
|
+
} = useSidebar();
|
9
|
+
if (!canChangeBilling(jwt.result)) {
|
10
|
+
return null;
|
11
|
+
}
|
12
|
+
return /* @__PURE__ */ jsx(MenuItem, { href: "/team#billing", children: "Billing" });
|
20
13
|
};
|
21
14
|
export {
|
22
|
-
|
15
|
+
BillingMenuItem
|
23
16
|
};
|
24
17
|
//# sourceMappingURL=harmony97.mjs.map
|
package/dist/harmony97.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony97.mjs","sources":["../src/components/Sidebar/
|
1
|
+
{"version":3,"file":"harmony97.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 {\n\t\tdata: { jwt },\n\t} = useSidebar()\n\n\tif (!canChangeBilling(jwt.result)) {\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;AAAA,IACL,MAAM,EAAE,IAAI;AAAA,MACT,WAAW;AAEf,MAAI,CAAC,iBAAiB,IAAI,MAAM,GAAG;AAC3B,WAAA;AAAA,EAAA;AAGR,SAAQ,oBAAA,UAAA,EAAS,MAAK,iBAAgB,UAAO,WAAA;AAC9C;"}
|
package/dist/harmony98.cjs
CHANGED
@@ -1,15 +1,20 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
|
8
|
-
|
9
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const useSidebar = require("./harmony84.cjs");
|
5
|
+
const louis = require("@lokalise/louis");
|
6
|
+
const permissions = require("./harmony85.cjs");
|
7
|
+
const CreateNewTeam = ({ onCreateTeam }) => {
|
8
|
+
const {
|
9
|
+
data: { jwt }
|
10
|
+
} = useSidebar.useSidebar();
|
11
|
+
if (!permissions.canCreateTeam(jwt.result)) {
|
12
|
+
return null;
|
13
|
+
}
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
15
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { onClick: onCreateTeam, children: "Create new team" }),
|
16
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuDivider, {})
|
17
|
+
] });
|
10
18
|
};
|
11
|
-
exports.
|
12
|
-
exports.default = styles;
|
13
|
-
exports.planCta = planCta;
|
14
|
-
exports.upgradeIconWrapper = upgradeIconWrapper;
|
19
|
+
exports.CreateNewTeam = CreateNewTeam;
|
15
20
|
//# sourceMappingURL=harmony98.cjs.map
|
package/dist/harmony98.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony98.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony98.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 {\n\t\tdata: { jwt },\n\t} = useSidebar()\n\n\tif (!canCreateTeam(jwt.result)) {\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;AAAA,IACL,MAAM,EAAE,IAAI;AAAA,MACTA,sBAAW;AAEf,MAAI,CAACC,YAAA,cAAc,IAAI,MAAM,GAAG;AACxB,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/harmony98.mjs
CHANGED
@@ -1,15 +1,20 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
2
|
+
import { useSidebar } from "./harmony84.mjs";
|
3
|
+
import { MenuItem, MenuDivider } from "@lokalise/louis";
|
4
|
+
import { canCreateTeam } from "./harmony85.mjs";
|
5
|
+
const CreateNewTeam = ({ onCreateTeam }) => {
|
6
|
+
const {
|
7
|
+
data: { jwt }
|
8
|
+
} = useSidebar();
|
9
|
+
if (!canCreateTeam(jwt.result)) {
|
10
|
+
return null;
|
11
|
+
}
|
12
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
13
|
+
/* @__PURE__ */ jsx(MenuItem, { onClick: onCreateTeam, children: "Create new team" }),
|
14
|
+
/* @__PURE__ */ jsx(MenuDivider, {})
|
15
|
+
] });
|
8
16
|
};
|
9
17
|
export {
|
10
|
-
|
11
|
-
styles as default,
|
12
|
-
planCta,
|
13
|
-
upgradeIconWrapper
|
18
|
+
CreateNewTeam
|
14
19
|
};
|
15
20
|
//# sourceMappingURL=harmony98.mjs.map
|
package/dist/harmony98.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony98.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony98.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 {\n\t\tdata: { jwt },\n\t} = useSidebar()\n\n\tif (!canCreateTeam(jwt.result)) {\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;AAAA,IACL,MAAM,EAAE,IAAI;AAAA,MACT,WAAW;AAEf,MAAI,CAAC,cAAc,IAAI,MAAM,GAAG;AACxB,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/harmony99.cjs
CHANGED
@@ -1,15 +1,24 @@
|
|
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("./harmony84.cjs");
|
4
5
|
const louis = require("@lokalise/louis");
|
5
|
-
const
|
6
|
-
|
7
|
-
|
6
|
+
const permissions = require("./harmony85.cjs");
|
7
|
+
const CreateNewTeamPlaceholder_module = require("./harmony113.cjs");
|
8
|
+
const CreateNewTeamPlaceholder = ({ onClick }) => {
|
9
|
+
const {
|
10
|
+
data: { jwt }
|
11
|
+
} = useSidebar.useSidebar();
|
12
|
+
if (!permissions.canCreateTeam(jwt.result)) {
|
13
|
+
return null;
|
8
14
|
}
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
16
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { onClick, "data-testid": "sidebar-create-new-team-placeholder", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
|
17
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: CreateNewTeamPlaceholder_module.default.mainLabel, children: "Create new team" }),
|
18
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: CreateNewTeamPlaceholder_module.default.subLabel, children: "Switch to Expert to create a new team" })
|
19
|
+
] }) }),
|
20
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuDivider, {})
|
21
|
+
] });
|
13
22
|
};
|
14
|
-
exports.
|
23
|
+
exports.CreateNewTeamPlaceholder = CreateNewTeamPlaceholder;
|
15
24
|
//# sourceMappingURL=harmony99.cjs.map
|
package/dist/harmony99.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony99.cjs","sources":["../src/components/
|
1
|
+
{"version":3,"file":"harmony99.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 {\n\t\tdata: { jwt },\n\t} = useSidebar()\n\n\tif (!canCreateTeam(jwt.result)) {\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;AAAA,IACL,MAAM,EAAE,IAAI;AAAA,MACTA,sBAAW;AAEf,MAAI,CAACC,YAAA,cAAc,IAAI,MAAM,GAAG;AACxB,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/harmony99.mjs
CHANGED
@@ -1,15 +1,24 @@
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
2
|
+
import { useSidebar } from "./harmony84.mjs";
|
3
|
+
import { MenuItem, MenuDivider } from "@lokalise/louis";
|
4
|
+
import { canCreateTeam } from "./harmony85.mjs";
|
5
|
+
import styles from "./harmony113.mjs";
|
6
|
+
const CreateNewTeamPlaceholder = ({ onClick }) => {
|
7
|
+
const {
|
8
|
+
data: { jwt }
|
9
|
+
} = useSidebar();
|
10
|
+
if (!canCreateTeam(jwt.result)) {
|
11
|
+
return null;
|
6
12
|
}
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
13
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
14
|
+
/* @__PURE__ */ jsx(MenuItem, { onClick, "data-testid": "sidebar-create-new-team-placeholder", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
15
|
+
/* @__PURE__ */ jsx("span", { className: styles.mainLabel, children: "Create new team" }),
|
16
|
+
/* @__PURE__ */ jsx("span", { className: styles.subLabel, children: "Switch to Expert to create a new team" })
|
17
|
+
] }) }),
|
18
|
+
/* @__PURE__ */ jsx(MenuDivider, {})
|
19
|
+
] });
|
11
20
|
};
|
12
21
|
export {
|
13
|
-
|
22
|
+
CreateNewTeamPlaceholder
|
14
23
|
};
|
15
24
|
//# sourceMappingURL=harmony99.mjs.map
|
package/dist/harmony99.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony99.mjs","sources":["../src/components/
|
1
|
+
{"version":3,"file":"harmony99.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 {\n\t\tdata: { jwt },\n\t} = useSidebar()\n\n\tif (!canCreateTeam(jwt.result)) {\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;AAAA,IACL,MAAM,EAAE,IAAI;AAAA,MACT,WAAW;AAEf,MAAI,CAAC,cAAc,IAAI,MAAM,GAAG;AACxB,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;"}
|
@@ -1,53 +1,19 @@
|
|
1
|
-
import { HTMLProps
|
1
|
+
import { HTMLProps } from 'react';
|
2
|
+
import { SidebarContentProps } from './SidebarContent/SidebarContent';
|
3
|
+
import { SidebarConfig } from './types';
|
2
4
|
type SidebarProps = HTMLProps<HTMLElement> & {
|
3
|
-
|
5
|
+
config: SidebarConfig;
|
6
|
+
children?: SidebarContentProps['children'];
|
4
7
|
};
|
5
8
|
/**
|
6
|
-
* Sidebar
|
9
|
+
* The main Sidebar component. Wraps children with SidebarProvider and renders SidebarContent.
|
10
|
+
*
|
11
|
+
* @example
|
12
|
+
* ```
|
13
|
+
* <Sidebar config={sidebarConfig}>
|
14
|
+
* <YourAppContent />
|
15
|
+
* </Sidebar>
|
16
|
+
* ```
|
7
17
|
*/
|
8
|
-
declare const Sidebar: {
|
9
|
-
|
10
|
-
Top: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
11
|
-
Bottom: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
12
|
-
Avatar: ({ src, href, ariaLabel, alt, }: {
|
13
|
-
src: string;
|
14
|
-
href?: string;
|
15
|
-
ariaLabel?: string;
|
16
|
-
alt?: string;
|
17
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
18
|
-
IconLink: ({ label, to, icon: Icon }: {
|
19
|
-
to: string;
|
20
|
-
label: string;
|
21
|
-
icon: import('react').FC<import('@lokalise/louis').SvgIconProps>;
|
22
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
23
|
-
Menu: ({ children, icon: Icon }: {
|
24
|
-
icon: import('react').FC<import('@lokalise/louis').SvgIconProps>;
|
25
|
-
} & {
|
26
|
-
children?: ReactNode | undefined;
|
27
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
28
|
-
ProfileMenu: ({ config, children }: {
|
29
|
-
config: import('./Widgets/ProfileMenu/types').SidebarProfileMenuConfig;
|
30
|
-
children: import('./Widgets/ProfileMenu/ProfileMenuContent').ProfileMenuContentProps["children"];
|
31
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
32
|
-
TeamSwitch: ({ onSwitchTeam }: {
|
33
|
-
onSwitchTeam: (team: import('./types').SidebarTeam) => void;
|
34
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
35
|
-
TeamMenuItem: ({ team, onClick, hidePlanLabel }: {
|
36
|
-
team?: import('./types').SidebarTeam;
|
37
|
-
onClick?: (team: import('./types').SidebarTeam) => void;
|
38
|
-
hidePlanLabel?: boolean;
|
39
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
40
|
-
UpgradeMenuItem: ({ upgradeOptionHref }: {
|
41
|
-
upgradeOptionHref: string;
|
42
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
43
|
-
ProfileSettingsMenuItem: ({ href, onClick, userEmail, hideBottomDivider, }: {
|
44
|
-
href: string;
|
45
|
-
userEmail: string;
|
46
|
-
onClick?: () => void;
|
47
|
-
hideBottomDivider?: boolean;
|
48
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
49
|
-
Tasks: (props: {
|
50
|
-
config: import('./Widgets/Tasks/types').SidebarTasksConfig;
|
51
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
52
|
-
};
|
53
|
-
export { Sidebar };
|
18
|
+
export declare const Sidebar: ({ config, children, ...navProps }: SidebarProps) => import("react/jsx-runtime").JSX.Element;
|
19
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { SidebarWidgetsConfig, SidebarContextProps } from '../types';
|
2
|
+
import { HTMLProps, ReactNode } from 'react';
|
3
|
+
export type SidebarContentProps = HTMLProps<HTMLElement> & {
|
4
|
+
widgetsConfig: SidebarWidgetsConfig;
|
5
|
+
children?: ((props: SidebarContextProps) => ReactNode) | ReactNode;
|
6
|
+
};
|
7
|
+
export declare const SidebarContent: ({ widgetsConfig, children, ...navProps }: SidebarContentProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -11,6 +11,11 @@ type AvatarProps = {
|
|
11
11
|
/**
|
12
12
|
* Display company main avatar / logo in the top section of the Sidebar.
|
13
13
|
* Used as the main branding element and home navigation link.
|
14
|
+
*
|
15
|
+
* @example
|
16
|
+
* ```
|
17
|
+
* <Avatar src="/logo.png" href="/" ariaLabel="Home" alt="" />
|
18
|
+
* ```
|
14
19
|
*/
|
15
20
|
export declare const Avatar: ({ src, href, ariaLabel, alt, }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
16
21
|
export {};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { HelpMenuConfig } from '../../types';
|
2
|
+
/**
|
3
|
+
* Help menu component that provides links to tutorials, documentation, support, and more.
|
4
|
+
*
|
5
|
+
* @example
|
6
|
+
* ```
|
7
|
+
* <HelpMenu
|
8
|
+
* contactSupport={{ onClick: handleContactSupport }}
|
9
|
+
* keyboardShortcuts={{ onClick: handleShowShortcuts, label: '⌘K' }}
|
10
|
+
* />
|
11
|
+
* ```
|
12
|
+
*/
|
13
|
+
export declare const HelpMenu: ({ contactSupport, keyboardShortcuts }: HelpMenuConfig) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { SvgIconProps } from '@lokalise/louis';
|
2
|
-
import { FC, PropsWithChildren } from 'react';
|
2
|
+
import { ButtonHTMLAttributes, FC, PropsWithChildren } from 'react';
|
3
3
|
type MenuProps = PropsWithChildren<{
|
4
4
|
/** Icon component from @lokalise/louis to display in the menu button */
|
5
5
|
icon: FC<SvgIconProps>;
|
6
|
+
buttonProps?: Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'type'>;
|
6
7
|
}>;
|
7
8
|
/**
|
8
9
|
* A dropdown menu component that displays an icon button which reveals a menu list when clicked.
|
@@ -20,5 +21,5 @@ type MenuProps = PropsWithChildren<{
|
|
20
21
|
* </Menu>
|
21
22
|
* ```
|
22
23
|
*/
|
23
|
-
export declare const Menu: ({ children, icon: Icon }: MenuProps) => import("react/jsx-runtime").JSX.Element;
|
24
|
+
export declare const Menu: ({ children, icon: Icon, buttonProps }: MenuProps) => import("react/jsx-runtime").JSX.Element;
|
24
25
|
export {};
|
package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/BillingMenuItem/BillingMenuItem.d.ts
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* A menu item component for navigating to the billing section.
|
3
|
+
* Checks the user's permissions using the Sidebar context and renders
|
4
|
+
* nothing if the user does not have access.
|
5
|
+
*
|
6
|
+
* @example
|
7
|
+
* ```
|
8
|
+
* <BillingMenuItem />
|
9
|
+
* ```
|
10
|
+
*
|
11
|
+
* @note This component must be used within a Sidebar Context.
|
12
|
+
*/
|
13
|
+
export declare const BillingMenuItem: () => import("react/jsx-runtime").JSX.Element | null;
|
package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeam/CreateNewTeam.d.ts
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
type CreateNewTeamProps = {
|
2
|
+
onCreateTeam: () => void;
|
3
|
+
};
|
4
|
+
/**
|
5
|
+
* A menu item component for creating a new team.
|
6
|
+
* Checks the user's permissions using the Sidebar context and renders
|
7
|
+
* nothing if the user does not have access.
|
8
|
+
*
|
9
|
+
* @example
|
10
|
+
* ```
|
11
|
+
* <CreateNewTeam onCreateTeam={handleCreateTeam} />
|
12
|
+
* ```
|
13
|
+
*
|
14
|
+
* @note This component must be used within a Sidebar Context.
|
15
|
+
*/
|
16
|
+
export declare const CreateNewTeam: ({ onCreateTeam }: CreateNewTeamProps) => import("react/jsx-runtime").JSX.Element | null;
|
17
|
+
export {};
|
package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeam/CreateNewTeam.test.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|