@lokalise/harmony 4.3.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/harmony.cjs +2 -0
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +3 -1
- package/dist/harmony101.cjs +2 -2
- package/dist/harmony101.mjs +2 -2
- package/dist/harmony105.cjs +1 -1
- package/dist/harmony105.mjs +1 -1
- package/dist/harmony106.cjs +7 -7
- package/dist/harmony106.mjs +7 -7
- package/dist/harmony108.cjs +2 -2
- package/dist/harmony108.mjs +2 -2
- package/dist/harmony109.cjs +165 -2
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +166 -3
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +42 -16
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +42 -16
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +13 -75
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +13 -75
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +2 -11
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +3 -12
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +18 -34
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +18 -34
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +75 -8
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +75 -8
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +11 -46
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +11 -46
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +35 -10
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +34 -9
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +8 -10
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +9 -11
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +47 -21
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +46 -20
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +9 -12
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +8 -11
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +12 -13
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +11 -12
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +21 -14
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +20 -13
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +12 -20
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +12 -20
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +13 -22
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +12 -21
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +20 -166
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +20 -166
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +7 -43
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +7 -43
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +3 -3
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +3 -3
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +18 -7
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +18 -7
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +21 -17
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +21 -17
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +84 -96
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +84 -79
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +31 -10
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +30 -9
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +98 -11
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +81 -11
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +9 -15
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +8 -14
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +6 -13
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +8 -15
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +12 -7
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +14 -9
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +13 -20
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +14 -21
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +7 -9
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +9 -11
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +18 -30
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +20 -32
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +6 -6
- package/dist/harmony138.cjs.map +1 -1
- package/dist/harmony138.mjs +6 -6
- package/dist/harmony138.mjs.map +1 -1
- package/dist/harmony139.cjs +29 -13
- package/dist/harmony139.cjs.map +1 -1
- package/dist/harmony139.mjs +30 -14
- package/dist/harmony139.mjs.map +1 -1
- package/dist/harmony140.cjs +7 -31
- package/dist/harmony140.cjs.map +1 -1
- package/dist/harmony140.mjs +8 -32
- package/dist/harmony140.mjs.map +1 -1
- package/dist/harmony141.cjs +22 -21
- package/dist/harmony141.cjs.map +1 -1
- package/dist/harmony141.mjs +21 -20
- package/dist/harmony141.mjs.map +1 -1
- package/dist/harmony142.cjs +30 -15
- package/dist/harmony142.cjs.map +1 -1
- package/dist/harmony142.mjs +32 -17
- package/dist/harmony142.mjs.map +1 -1
- package/dist/harmony143.cjs +18 -3
- package/dist/harmony143.cjs.map +1 -1
- package/dist/harmony143.mjs +18 -3
- package/dist/harmony143.mjs.map +1 -1
- package/dist/harmony144.cjs +21 -15
- package/dist/harmony144.cjs.map +1 -1
- package/dist/harmony144.mjs +20 -14
- package/dist/harmony144.mjs.map +1 -1
- package/dist/harmony145.cjs +6 -87
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +5 -86
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +16 -31
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +15 -30
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +9 -6
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +8 -5
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +3 -6
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +2 -5
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +3 -2
- package/dist/harmony149.cjs.map +1 -1
- package/dist/harmony149.mjs +3 -2
- package/dist/harmony149.mjs.map +1 -1
- package/dist/harmony150.cjs +3 -3
- package/dist/harmony150.cjs.map +1 -1
- package/dist/harmony150.mjs +3 -3
- package/dist/harmony150.mjs.map +1 -1
- package/dist/harmony151.cjs +3 -3
- package/dist/harmony151.cjs.map +1 -1
- package/dist/harmony151.mjs +3 -3
- package/dist/harmony151.mjs.map +1 -1
- package/dist/harmony152.cjs +14 -3
- package/dist/harmony152.cjs.map +1 -1
- package/dist/harmony152.mjs +14 -3
- package/dist/harmony152.mjs.map +1 -1
- package/dist/harmony153.cjs +3 -14
- package/dist/harmony153.cjs.map +1 -1
- package/dist/harmony153.mjs +3 -14
- package/dist/harmony153.mjs.map +1 -1
- package/dist/harmony154.cjs +14 -3
- package/dist/harmony154.cjs.map +1 -1
- package/dist/harmony154.mjs +14 -3
- package/dist/harmony154.mjs.map +1 -1
- package/dist/harmony155.cjs +6 -15
- package/dist/harmony155.cjs.map +1 -1
- package/dist/harmony155.mjs +5 -14
- package/dist/harmony155.mjs.map +1 -1
- package/dist/harmony156.cjs +6 -97
- package/dist/harmony156.cjs.map +1 -1
- package/dist/harmony156.mjs +5 -96
- package/dist/harmony156.mjs.map +1 -1
- package/dist/harmony157.cjs +10 -13
- package/dist/harmony157.cjs.map +1 -1
- package/dist/harmony157.mjs +10 -13
- package/dist/harmony157.mjs.map +1 -1
- package/dist/harmony158.cjs +32 -14
- package/dist/harmony158.cjs.map +1 -1
- package/dist/harmony158.mjs +32 -14
- package/dist/harmony158.mjs.map +1 -1
- package/dist/harmony159.cjs +94 -34
- package/dist/harmony159.cjs.map +1 -1
- package/dist/harmony159.mjs +94 -34
- package/dist/harmony159.mjs.map +1 -1
- package/dist/harmony160.cjs +11 -26
- package/dist/harmony160.cjs.map +1 -1
- package/dist/harmony160.mjs +11 -26
- package/dist/harmony160.mjs.map +1 -1
- package/dist/harmony161.cjs +14 -10
- package/dist/harmony161.cjs.map +1 -1
- package/dist/harmony161.mjs +14 -10
- package/dist/harmony161.mjs.map +1 -1
- package/dist/harmony162.cjs +37 -10
- package/dist/harmony162.cjs.map +1 -1
- package/dist/harmony162.mjs +36 -9
- package/dist/harmony162.mjs.map +1 -1
- package/dist/harmony163.cjs +29 -7
- package/dist/harmony163.cjs.map +1 -1
- package/dist/harmony163.mjs +28 -6
- package/dist/harmony163.mjs.map +1 -1
- package/dist/harmony164.cjs +6 -6
- package/dist/harmony164.mjs +6 -6
- package/dist/harmony165.cjs +3 -21
- package/dist/harmony165.cjs.map +1 -1
- package/dist/harmony165.mjs +3 -21
- package/dist/harmony165.mjs.map +1 -1
- package/dist/harmony166.cjs +6 -3
- package/dist/harmony166.cjs.map +1 -1
- package/dist/harmony166.mjs +6 -3
- package/dist/harmony166.mjs.map +1 -1
- package/dist/harmony167.cjs +21 -9
- package/dist/harmony167.cjs.map +1 -1
- package/dist/harmony167.mjs +21 -9
- package/dist/harmony167.mjs.map +1 -1
- package/dist/harmony168.cjs +3 -3
- package/dist/harmony168.mjs +3 -3
- package/dist/harmony169.cjs +12 -32
- package/dist/harmony169.cjs.map +1 -1
- package/dist/harmony169.mjs +11 -31
- package/dist/harmony169.mjs.map +1 -1
- package/dist/harmony17.cjs +1 -1
- package/dist/harmony17.mjs +1 -1
- package/dist/harmony170.cjs +7 -14
- package/dist/harmony170.cjs.map +1 -1
- package/dist/harmony170.mjs +6 -13
- package/dist/harmony170.mjs.map +1 -1
- package/dist/harmony171.cjs +12 -14
- package/dist/harmony171.cjs.map +1 -1
- package/dist/harmony171.mjs +12 -14
- package/dist/harmony171.mjs.map +1 -1
- package/dist/harmony172.cjs +13 -14
- package/dist/harmony172.cjs.map +1 -1
- package/dist/harmony172.mjs +13 -14
- package/dist/harmony172.mjs.map +1 -1
- package/dist/harmony173.cjs +15 -10
- package/dist/harmony173.cjs.map +1 -1
- package/dist/harmony173.mjs +15 -10
- package/dist/harmony173.mjs.map +1 -1
- package/dist/harmony174.cjs +4 -16
- package/dist/harmony174.cjs.map +1 -1
- package/dist/harmony174.mjs +4 -16
- package/dist/harmony174.mjs.map +1 -1
- package/dist/harmony175.cjs +10 -20
- package/dist/harmony175.cjs.map +1 -1
- package/dist/harmony175.mjs +10 -20
- package/dist/harmony175.mjs.map +1 -1
- package/dist/harmony176.cjs +14 -10
- package/dist/harmony176.cjs.map +1 -1
- package/dist/harmony176.mjs +14 -10
- package/dist/harmony176.mjs.map +1 -1
- package/dist/harmony177.cjs +21 -4
- package/dist/harmony177.cjs.map +1 -1
- package/dist/harmony177.mjs +21 -4
- package/dist/harmony177.mjs.map +1 -1
- package/dist/harmony178.cjs +11 -5
- package/dist/harmony178.cjs.map +1 -1
- package/dist/harmony178.mjs +11 -5
- package/dist/harmony178.mjs.map +1 -1
- package/dist/harmony179.cjs +5 -11
- package/dist/harmony179.cjs.map +1 -1
- package/dist/harmony179.mjs +5 -11
- package/dist/harmony179.mjs.map +1 -1
- package/dist/harmony180.cjs +11 -31
- package/dist/harmony180.cjs.map +1 -1
- package/dist/harmony180.mjs +11 -31
- package/dist/harmony180.mjs.map +1 -1
- package/dist/harmony181.cjs +28 -10
- package/dist/harmony181.cjs.map +1 -1
- package/dist/harmony181.mjs +28 -10
- package/dist/harmony181.mjs.map +1 -1
- package/dist/harmony182.cjs +17 -0
- package/dist/harmony182.cjs.map +1 -0
- package/dist/harmony182.mjs +17 -0
- package/dist/harmony182.mjs.map +1 -0
- 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/harmony4.cjs +2 -17
- package/dist/harmony4.cjs.map +1 -1
- package/dist/harmony4.mjs +2 -17
- package/dist/harmony4.mjs.map +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 +1 -1
- package/dist/harmony42.mjs +1 -1
- package/dist/harmony44.cjs +8 -0
- package/dist/harmony44.cjs.map +1 -1
- package/dist/harmony44.mjs +8 -0
- package/dist/harmony44.mjs.map +1 -1
- package/dist/harmony58.cjs +1 -1
- package/dist/harmony58.mjs +1 -1
- package/dist/harmony68.cjs +1 -1
- package/dist/harmony68.mjs +1 -1
- package/dist/harmony97.cjs +1 -1
- package/dist/harmony97.mjs +1 -1
- package/dist/harmony99.cjs +2 -2
- package/dist/harmony99.mjs +2 -2
- package/dist/types/src/features/navigation/ProjectNavigationPanel.d.ts +1 -1
- package/dist/types/src/features/permissions/actionResolvers/accessExpertFeatures.test.d.ts +1 -0
- package/dist/types/src/features/permissions/actionResolvers/accessMarketingProjects.test.d.ts +1 -0
- package/dist/types/src/features/permissions/actionResolvers/createProjects.test.d.ts +1 -0
- package/dist/types/src/features/permissions/actionResolvers/deleteProjects.test.d.ts +1 -0
- package/dist/types/src/features/permissions/actionResolvers/downloadFiles.test.d.ts +1 -0
- package/dist/types/src/features/permissions/actionResolvers/manageContributors.test.d.ts +1 -0
- package/dist/types/src/features/permissions/actionResolvers/manageManagementPermissions.d.ts +6 -0
- package/dist/types/src/features/permissions/actionResolvers/manageManagementPermissions.test.d.ts +1 -0
- package/dist/types/src/features/permissions/actionResolvers/upgradePlan.test.d.ts +1 -0
- package/dist/types/src/features/permissions/actionResolvers/uploadFiles.test.d.ts +1 -0
- package/dist/types/src/features/permissions/actionResolvers.d.ts +1 -0
- package/dist/types/src/features/permissions/types/projectPermissionTypes.d.ts +7 -0
- package/package.json +1 -1
package/dist/harmony144.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony144.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harmony144.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/UpgradeIcon/UpgradeIcon.tsx"],"sourcesContent":["import { CaretUpIcon } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport styles from './UpgradeIcon.module.css'\n\ntype UpgradeIconProps = {\n\tclassName?: string\n}\n\nexport const UpgradeIcon = ({ className = '' }: UpgradeIconProps) => {\n\treturn (\n\t\t<div\n\t\t\taria-label={'Upgrade Icon'}\n\t\t\tclassName={clsx(\n\t\t\t\tstyles.iconContainer,\n\t\t\t\t'flex-row',\n\t\t\t\t'items-center',\n\t\t\t\t'justify-center',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t<CaretUpIcon />\n\t\t</div>\n\t)\n}\n"],"names":[],"mappings":";;;;AAQO,MAAM,cAAc,CAAC,EAAE,YAAY,SAA2B;AAEnE,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAW;AAAA,QACV,OAAO;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,MAEA,8BAAC,aAAY,CAAA,CAAA;AAAA,IAAA;AAAA,EACd;AAEF;"}
|
package/dist/harmony145.cjs
CHANGED
|
@@ -1,90 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
return {
|
|
7
|
-
upload: {
|
|
8
|
-
visible: permissions.hasAdminRight(adminRights, "upload"),
|
|
9
|
-
disabled: false
|
|
10
|
-
},
|
|
11
|
-
download: {
|
|
12
|
-
visible: permissions.hasAdminRight(adminRights, "download"),
|
|
13
|
-
disabled: false
|
|
14
|
-
},
|
|
15
|
-
// TODO: HOME-1009, Clean up after permission management
|
|
16
|
-
// -- There is a plan for "Install apps" permission. Right..?
|
|
17
|
-
apps: {
|
|
18
|
-
visible: true,
|
|
19
|
-
disabled: false
|
|
20
|
-
},
|
|
21
|
-
// TODO: HOME-1009, Clean up after permission management
|
|
22
|
-
// -- There is a plan for "Install apps" permission. Right..?
|
|
23
|
-
contentManagement: {
|
|
24
|
-
visible: project.project_type === "content_integration" && permissions.hasAdminRight(adminRights, "keys"),
|
|
25
|
-
disabled: false
|
|
26
|
-
},
|
|
27
|
-
editor: {
|
|
28
|
-
visible: true,
|
|
29
|
-
disabled: false
|
|
30
|
-
},
|
|
31
|
-
files: {
|
|
32
|
-
visible: isFeatureEnabled("lionLfcFilesManagement") && project.project_type === "paged_documents" && permissions.hasAnyAdminRight(adminRights, ["upload", "download"]),
|
|
33
|
-
disabled: false
|
|
34
|
-
},
|
|
35
|
-
tasks: {
|
|
36
|
-
visible: permissions.hasAdminRight(adminRights, "tasks"),
|
|
37
|
-
disabled: false
|
|
38
|
-
},
|
|
39
|
-
contributors: {
|
|
40
|
-
visible: permissions.hasAdminRight(adminRights, "contributors"),
|
|
41
|
-
disabled: false
|
|
42
|
-
},
|
|
43
|
-
workflows: {
|
|
44
|
-
visible: permissions.hasAdminRight(adminRights, "settings"),
|
|
45
|
-
disabled: false
|
|
46
|
-
},
|
|
47
|
-
screenshots: {
|
|
48
|
-
visible: permissions.hasAdminRight(adminRights, "screenshots"),
|
|
49
|
-
disabled: false
|
|
50
|
-
},
|
|
51
|
-
glossary: {
|
|
52
|
-
visible: permissions.hasAdminRight(adminRights, "glossary"),
|
|
53
|
-
disabled: false
|
|
54
|
-
},
|
|
55
|
-
more: {
|
|
56
|
-
visible: true,
|
|
57
|
-
disabled: false
|
|
58
|
-
},
|
|
59
|
-
settings: {
|
|
60
|
-
visible: permissions.hasAdminRight(adminRights, "settings"),
|
|
61
|
-
disabled: false
|
|
62
|
-
},
|
|
63
|
-
branches: {
|
|
64
|
-
visible: !!((_a = project.settings) == null ? void 0 : _a.branching) && permissions.hasAnyAdminRight(adminRights, ["branches_create", "create_branches", "branches_merge"]),
|
|
65
|
-
disabled: false
|
|
66
|
-
},
|
|
67
|
-
otaBundles: {
|
|
68
|
-
visible: permissions.hasAnyAdminRight(adminRights, ["download", "settings", "keys"]) && project.project_type === "localization_files",
|
|
69
|
-
disabled: false
|
|
70
|
-
},
|
|
71
|
-
automations: {
|
|
72
|
-
visible: permissions.hasAdminRight(adminRights, "settings"),
|
|
73
|
-
disabled: false
|
|
74
|
-
},
|
|
75
|
-
duplicateFinder: {
|
|
76
|
-
visible: permissions.hasAdminRight(adminRights, "keys") && project.project_type === "localization_files",
|
|
77
|
-
disabled: false
|
|
78
|
-
},
|
|
79
|
-
activity: {
|
|
80
|
-
visible: !!((_b = project.settings) == null ? void 0 : _b.offline_translation) || permissions.hasAdminRight(adminRights, "activity"),
|
|
81
|
-
disabled: false
|
|
82
|
-
},
|
|
83
|
-
statistics: {
|
|
84
|
-
visible: permissions.hasAdminRight(adminRights, "statistics"),
|
|
85
|
-
disabled: false
|
|
86
|
-
}
|
|
87
|
-
};
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const logoLink = "_logoLink_1baxb_1";
|
|
4
|
+
const styles = {
|
|
5
|
+
logoLink
|
|
88
6
|
};
|
|
89
|
-
exports.
|
|
7
|
+
exports.default = styles;
|
|
8
|
+
exports.logoLink = logoLink;
|
|
90
9
|
//# sourceMappingURL=harmony145.cjs.map
|
package/dist/harmony145.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony145.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"harmony145.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony145.mjs
CHANGED
|
@@ -1,90 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
return {
|
|
5
|
-
upload: {
|
|
6
|
-
visible: hasAdminRight(adminRights, "upload"),
|
|
7
|
-
disabled: false
|
|
8
|
-
},
|
|
9
|
-
download: {
|
|
10
|
-
visible: hasAdminRight(adminRights, "download"),
|
|
11
|
-
disabled: false
|
|
12
|
-
},
|
|
13
|
-
// TODO: HOME-1009, Clean up after permission management
|
|
14
|
-
// -- There is a plan for "Install apps" permission. Right..?
|
|
15
|
-
apps: {
|
|
16
|
-
visible: true,
|
|
17
|
-
disabled: false
|
|
18
|
-
},
|
|
19
|
-
// TODO: HOME-1009, Clean up after permission management
|
|
20
|
-
// -- There is a plan for "Install apps" permission. Right..?
|
|
21
|
-
contentManagement: {
|
|
22
|
-
visible: project.project_type === "content_integration" && hasAdminRight(adminRights, "keys"),
|
|
23
|
-
disabled: false
|
|
24
|
-
},
|
|
25
|
-
editor: {
|
|
26
|
-
visible: true,
|
|
27
|
-
disabled: false
|
|
28
|
-
},
|
|
29
|
-
files: {
|
|
30
|
-
visible: isFeatureEnabled("lionLfcFilesManagement") && project.project_type === "paged_documents" && hasAnyAdminRight(adminRights, ["upload", "download"]),
|
|
31
|
-
disabled: false
|
|
32
|
-
},
|
|
33
|
-
tasks: {
|
|
34
|
-
visible: hasAdminRight(adminRights, "tasks"),
|
|
35
|
-
disabled: false
|
|
36
|
-
},
|
|
37
|
-
contributors: {
|
|
38
|
-
visible: hasAdminRight(adminRights, "contributors"),
|
|
39
|
-
disabled: false
|
|
40
|
-
},
|
|
41
|
-
workflows: {
|
|
42
|
-
visible: hasAdminRight(adminRights, "settings"),
|
|
43
|
-
disabled: false
|
|
44
|
-
},
|
|
45
|
-
screenshots: {
|
|
46
|
-
visible: hasAdminRight(adminRights, "screenshots"),
|
|
47
|
-
disabled: false
|
|
48
|
-
},
|
|
49
|
-
glossary: {
|
|
50
|
-
visible: hasAdminRight(adminRights, "glossary"),
|
|
51
|
-
disabled: false
|
|
52
|
-
},
|
|
53
|
-
more: {
|
|
54
|
-
visible: true,
|
|
55
|
-
disabled: false
|
|
56
|
-
},
|
|
57
|
-
settings: {
|
|
58
|
-
visible: hasAdminRight(adminRights, "settings"),
|
|
59
|
-
disabled: false
|
|
60
|
-
},
|
|
61
|
-
branches: {
|
|
62
|
-
visible: !!((_a = project.settings) == null ? void 0 : _a.branching) && hasAnyAdminRight(adminRights, ["branches_create", "create_branches", "branches_merge"]),
|
|
63
|
-
disabled: false
|
|
64
|
-
},
|
|
65
|
-
otaBundles: {
|
|
66
|
-
visible: hasAnyAdminRight(adminRights, ["download", "settings", "keys"]) && project.project_type === "localization_files",
|
|
67
|
-
disabled: false
|
|
68
|
-
},
|
|
69
|
-
automations: {
|
|
70
|
-
visible: hasAdminRight(adminRights, "settings"),
|
|
71
|
-
disabled: false
|
|
72
|
-
},
|
|
73
|
-
duplicateFinder: {
|
|
74
|
-
visible: hasAdminRight(adminRights, "keys") && project.project_type === "localization_files",
|
|
75
|
-
disabled: false
|
|
76
|
-
},
|
|
77
|
-
activity: {
|
|
78
|
-
visible: !!((_b = project.settings) == null ? void 0 : _b.offline_translation) || hasAdminRight(adminRights, "activity"),
|
|
79
|
-
disabled: false
|
|
80
|
-
},
|
|
81
|
-
statistics: {
|
|
82
|
-
visible: hasAdminRight(adminRights, "statistics"),
|
|
83
|
-
disabled: false
|
|
84
|
-
}
|
|
85
|
-
};
|
|
1
|
+
const logoLink = "_logoLink_1baxb_1";
|
|
2
|
+
const styles = {
|
|
3
|
+
logoLink
|
|
86
4
|
};
|
|
87
5
|
export {
|
|
88
|
-
|
|
6
|
+
styles as default,
|
|
7
|
+
logoLink
|
|
89
8
|
};
|
|
90
9
|
//# sourceMappingURL=harmony145.mjs.map
|
package/dist/harmony145.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony145.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"harmony145.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony146.cjs
CHANGED
|
@@ -1,33 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
key: "orders",
|
|
21
|
-
labelKey: "Human proofreading",
|
|
22
|
-
path: ({ projectId }) => `/project/${projectId}/orders`,
|
|
23
|
-
shouldShow: ({ flags }) => flags.ap_feature_hraas === "on"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
key: "billing",
|
|
27
|
-
labelKey: "Billing",
|
|
28
|
-
path: ({ projectId }) => `/project/${projectId}/billing`,
|
|
29
|
-
shouldShow: ({ flags }) => flags.ap_feature_billing === "on"
|
|
30
|
-
}
|
|
31
|
-
];
|
|
32
|
-
exports.navigationItems = navigationItems;
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const shortcutMenu = "_shortcutMenu_ujdmb_1";
|
|
4
|
+
const shortcutLabel = "_shortcutLabel_ujdmb_5";
|
|
5
|
+
const dropdownButton = "_dropdownButton_ujdmb_12";
|
|
6
|
+
const dropdownButtonActive = "_dropdownButtonActive_ujdmb_30";
|
|
7
|
+
const styles = {
|
|
8
|
+
shortcutMenu,
|
|
9
|
+
shortcutLabel,
|
|
10
|
+
dropdownButton,
|
|
11
|
+
dropdownButtonActive
|
|
12
|
+
};
|
|
13
|
+
exports.default = styles;
|
|
14
|
+
exports.dropdownButton = dropdownButton;
|
|
15
|
+
exports.dropdownButtonActive = dropdownButtonActive;
|
|
16
|
+
exports.shortcutLabel = shortcutLabel;
|
|
17
|
+
exports.shortcutMenu = shortcutMenu;
|
|
33
18
|
//# sourceMappingURL=harmony146.cjs.map
|
package/dist/harmony146.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony146.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"harmony146.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
package/dist/harmony146.mjs
CHANGED
|
@@ -1,33 +1,18 @@
|
|
|
1
|
-
const
|
|
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"
|
|
28
|
-
}
|
|
29
|
-
];
|
|
1
|
+
const shortcutMenu = "_shortcutMenu_ujdmb_1";
|
|
2
|
+
const shortcutLabel = "_shortcutLabel_ujdmb_5";
|
|
3
|
+
const dropdownButton = "_dropdownButton_ujdmb_12";
|
|
4
|
+
const dropdownButtonActive = "_dropdownButtonActive_ujdmb_30";
|
|
5
|
+
const styles = {
|
|
6
|
+
shortcutMenu,
|
|
7
|
+
shortcutLabel,
|
|
8
|
+
dropdownButton,
|
|
9
|
+
dropdownButtonActive
|
|
10
|
+
};
|
|
30
11
|
export {
|
|
31
|
-
|
|
12
|
+
styles as default,
|
|
13
|
+
dropdownButton,
|
|
14
|
+
dropdownButtonActive,
|
|
15
|
+
shortcutLabel,
|
|
16
|
+
shortcutMenu
|
|
32
17
|
};
|
|
33
18
|
//# sourceMappingURL=harmony146.mjs.map
|
package/dist/harmony146.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony146.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"harmony146.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/harmony147.cjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const canPerformActionByProjectType = require("./harmony158.cjs");
|
|
4
|
+
const projectPermissionTypes = require("./harmony44.cjs");
|
|
5
|
+
const has = require("./harmony126.cjs");
|
|
6
|
+
const manageManagementPermissions = ({ projectType, projectPermissions }) => canPerformActionByProjectType.canPerformActionByProjectType(projectType, {
|
|
7
|
+
classic: () => has.has(projectPermissions, ...projectPermissionTypes.PROJECT_PERMISSIONS),
|
|
8
|
+
marketing: () => has.has(projectPermissions, ...projectPermissionTypes.MARKETING_PROJECT_PERMISSIONS)
|
|
9
|
+
});
|
|
10
|
+
exports.manageManagementPermissions = manageManagementPermissions;
|
|
8
11
|
//# sourceMappingURL=harmony147.cjs.map
|
package/dist/harmony147.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony147.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harmony147.cjs","sources":["../src/features/permissions/actionResolvers/manageManagementPermissions.ts"],"sourcesContent":["import { canPerformActionByProjectType } from '@features/permissions/utils/canPerformActionByProjectType'\nimport type { ActionResolver } from '../types/actionResolver'\nimport { MARKETING_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from '../types/projectPermissionTypes'\nimport { has } from '../utils/has'\n\n/**\n * To manage management permissions, the user has to have all permissions assigned.\n * Checking for each project type as the list of \"all\" permissions is different.\n */\nexport const manageManagementPermissions: ActionResolver = ({ projectType, projectPermissions }) =>\n\tcanPerformActionByProjectType(projectType, {\n\t\tclassic: () => has(projectPermissions, ...PROJECT_PERMISSIONS),\n\t\tmarketing: () => has(projectPermissions, ...MARKETING_PROJECT_PERMISSIONS),\n\t})\n"],"names":["canPerformActionByProjectType","has","PROJECT_PERMISSIONS","MARKETING_PROJECT_PERMISSIONS"],"mappings":";;;;;AASO,MAAM,8BAA8C,CAAC,EAAE,aAAa,mBAAmB,MAC7FA,8BAAAA,8BAA8B,aAAa;AAAA,EAC1C,SAAS,MAAMC,IAAAA,IAAI,oBAAoB,GAAGC,uBAAAA,mBAAmB;AAAA,EAC7D,WAAW,MAAMD,IAAAA,IAAI,oBAAoB,GAAGE,uBAA6B,6BAAA;AAC1E,CAAC;;"}
|
package/dist/harmony147.mjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const
|
|
1
|
+
import { canPerformActionByProjectType } from "./harmony158.mjs";
|
|
2
|
+
import { MARKETING_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from "./harmony44.mjs";
|
|
3
|
+
import { has } from "./harmony126.mjs";
|
|
4
|
+
const manageManagementPermissions = ({ projectType, projectPermissions }) => canPerformActionByProjectType(projectType, {
|
|
5
|
+
classic: () => has(projectPermissions, ...PROJECT_PERMISSIONS),
|
|
6
|
+
marketing: () => has(projectPermissions, ...MARKETING_PROJECT_PERMISSIONS)
|
|
7
|
+
});
|
|
5
8
|
export {
|
|
6
|
-
|
|
9
|
+
manageManagementPermissions
|
|
7
10
|
};
|
|
8
11
|
//# sourceMappingURL=harmony147.mjs.map
|
package/dist/harmony147.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony147.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harmony147.mjs","sources":["../src/features/permissions/actionResolvers/manageManagementPermissions.ts"],"sourcesContent":["import { canPerformActionByProjectType } from '@features/permissions/utils/canPerformActionByProjectType'\nimport type { ActionResolver } from '../types/actionResolver'\nimport { MARKETING_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from '../types/projectPermissionTypes'\nimport { has } from '../utils/has'\n\n/**\n * To manage management permissions, the user has to have all permissions assigned.\n * Checking for each project type as the list of \"all\" permissions is different.\n */\nexport const manageManagementPermissions: ActionResolver = ({ projectType, projectPermissions }) =>\n\tcanPerformActionByProjectType(projectType, {\n\t\tclassic: () => has(projectPermissions, ...PROJECT_PERMISSIONS),\n\t\tmarketing: () => has(projectPermissions, ...MARKETING_PROJECT_PERMISSIONS),\n\t})\n"],"names":[],"mappings":";;;AASO,MAAM,8BAA8C,CAAC,EAAE,aAAa,mBAAmB,MAC7F,8BAA8B,aAAa;AAAA,EAC1C,SAAS,MAAM,IAAI,oBAAoB,GAAG,mBAAmB;AAAA,EAC7D,WAAW,MAAM,IAAI,oBAAoB,GAAG,6BAA6B;AAC1E,CAAC;"}
|
package/dist/harmony148.cjs
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
var throttleExports = throttle$1.__require();
|
|
6
|
-
const throttle = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(throttleExports);
|
|
7
|
-
exports.default = throttle;
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const accessExpertFeatures = ({ isExpert }) => isExpert === true;
|
|
4
|
+
exports.accessExpertFeatures = accessExpertFeatures;
|
|
8
5
|
//# sourceMappingURL=harmony148.cjs.map
|
package/dist/harmony148.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony148.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harmony148.cjs","sources":["../src/features/permissions/actionResolvers/accessExpertFeatures.ts"],"sourcesContent":["import type { ActionResolver } from '@features/permissions/types/actionResolver'\n\nexport const accessExpertFeatures: ActionResolver = ({ isExpert }) => isExpert === true\n"],"names":[],"mappings":";;AAEO,MAAM,uBAAuC,CAAC,EAAE,eAAe,aAAa;;"}
|
package/dist/harmony148.mjs
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as requireThrottle } from "./harmony160.mjs";
|
|
3
|
-
var throttleExports = requireThrottle();
|
|
4
|
-
const throttle = /* @__PURE__ */ getDefaultExportFromCjs(throttleExports);
|
|
1
|
+
const accessExpertFeatures = ({ isExpert }) => isExpert === true;
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
accessExpertFeatures
|
|
7
4
|
};
|
|
8
5
|
//# sourceMappingURL=harmony148.mjs.map
|
package/dist/harmony148.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony148.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harmony148.mjs","sources":["../src/features/permissions/actionResolvers/accessExpertFeatures.ts"],"sourcesContent":["import type { ActionResolver } from '@features/permissions/types/actionResolver'\n\nexport const accessExpertFeatures: ActionResolver = ({ isExpert }) => isExpert === true\n"],"names":[],"mappings":"AAEO,MAAM,uBAAuC,CAAC,EAAE,eAAe,aAAa;"}
|
package/dist/harmony149.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const has = require("./harmony126.cjs");
|
|
4
|
+
const accessMarketingProjects = ({ enabledFeatureFlags }) => has.has(enabledFeatureFlags, "homeMarketingBeta");
|
|
5
|
+
exports.accessMarketingProjects = accessMarketingProjects;
|
|
5
6
|
//# sourceMappingURL=harmony149.cjs.map
|
package/dist/harmony149.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony149.cjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony149.cjs","sources":["../src/features/permissions/actionResolvers/accessMarketingProjects.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const accessMarketingProjects: ActionResolver = ({ enabledFeatureFlags }) =>\n\thas(enabledFeatureFlags, 'homeMarketingBeta')\n"],"names":["has"],"mappings":";;;AAGO,MAAM,0BAA0C,CAAC,EAAE,oBACzD,MAAAA,IAAA,IAAI,qBAAqB,mBAAmB;;"}
|
package/dist/harmony149.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { has } from "./harmony126.mjs";
|
|
2
|
+
const accessMarketingProjects = ({ enabledFeatureFlags }) => has(enabledFeatureFlags, "homeMarketingBeta");
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
accessMarketingProjects
|
|
4
5
|
};
|
|
5
6
|
//# sourceMappingURL=harmony149.mjs.map
|
package/dist/harmony149.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony149.mjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony149.mjs","sources":["../src/features/permissions/actionResolvers/accessMarketingProjects.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const accessMarketingProjects: ActionResolver = ({ enabledFeatureFlags }) =>\n\thas(enabledFeatureFlags, 'homeMarketingBeta')\n"],"names":[],"mappings":";AAGO,MAAM,0BAA0C,CAAC,EAAE,oBACzD,MAAA,IAAI,qBAAqB,mBAAmB;"}
|
package/dist/harmony150.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
exports.
|
|
3
|
+
const hasAny = require("./harmony125.cjs");
|
|
4
|
+
const createProjects = ({ teamRole }) => hasAny.hasAny(teamRole, "owner", "biller", "admin");
|
|
5
|
+
exports.createProjects = createProjects;
|
|
6
6
|
//# sourceMappingURL=harmony150.cjs.map
|
package/dist/harmony150.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony150.cjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony150.cjs","sources":["../src/features/permissions/actionResolvers/createProjects.ts"],"sourcesContent":["import { hasAny } from '../utils/hasAny'\n\nimport type { ActionResolver } from '../types/actionResolver'\n\nexport const createProjects: ActionResolver = ({ teamRole }) =>\n\thasAny(teamRole, 'owner', 'biller', 'admin')\n"],"names":["hasAny"],"mappings":";;;AAIa,MAAA,iBAAiC,CAAC,EAAE,eAChDA,OAAO,OAAA,UAAU,SAAS,UAAU,OAAO;;"}
|
package/dist/harmony150.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { hasAny } from "./harmony125.mjs";
|
|
2
|
+
const createProjects = ({ teamRole }) => hasAny(teamRole, "owner", "biller", "admin");
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
createProjects
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=harmony150.mjs.map
|
package/dist/harmony150.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony150.mjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony150.mjs","sources":["../src/features/permissions/actionResolvers/createProjects.ts"],"sourcesContent":["import { hasAny } from '../utils/hasAny'\n\nimport type { ActionResolver } from '../types/actionResolver'\n\nexport const createProjects: ActionResolver = ({ teamRole }) =>\n\thasAny(teamRole, 'owner', 'biller', 'admin')\n"],"names":[],"mappings":";AAIa,MAAA,iBAAiC,CAAC,EAAE,eAChD,OAAO,UAAU,SAAS,UAAU,OAAO;"}
|
package/dist/harmony151.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
exports.
|
|
3
|
+
const has = require("./harmony126.cjs");
|
|
4
|
+
const deleteProjects = ({ projectPermissions }) => has.has(projectPermissions, "settings");
|
|
5
|
+
exports.deleteProjects = deleteProjects;
|
|
6
6
|
//# sourceMappingURL=harmony151.cjs.map
|
package/dist/harmony151.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony151.cjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony151.cjs","sources":["../src/features/permissions/actionResolvers/deleteProjects.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const deleteProjects: ActionResolver = ({ projectPermissions }) =>\n\thas(projectPermissions, 'settings')\n"],"names":["has"],"mappings":";;;AAGO,MAAM,iBAAiC,CAAC,EAAE,mBAChD,MAAAA,IAAA,IAAI,oBAAoB,UAAU;;"}
|
package/dist/harmony151.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { has } from "./harmony126.mjs";
|
|
2
|
+
const deleteProjects = ({ projectPermissions }) => has(projectPermissions, "settings");
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
deleteProjects
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=harmony151.mjs.map
|
package/dist/harmony151.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony151.mjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony151.mjs","sources":["../src/features/permissions/actionResolvers/deleteProjects.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const deleteProjects: ActionResolver = ({ projectPermissions }) =>\n\thas(projectPermissions, 'settings')\n"],"names":[],"mappings":";AAGO,MAAM,iBAAiC,CAAC,EAAE,mBAChD,MAAA,IAAI,oBAAoB,UAAU;"}
|
package/dist/harmony152.cjs
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
3
|
+
const canPerformActionByProjectType = require("./harmony158.cjs");
|
|
4
|
+
const has = require("./harmony126.cjs");
|
|
5
|
+
const hasAny = require("./harmony125.cjs");
|
|
6
|
+
const downloadFiles = ({ projectType, projectPermissions }) => canPerformActionByProjectType.canPerformActionByProjectType(projectType, {
|
|
7
|
+
classic: () => has.has(projectPermissions, "download"),
|
|
8
|
+
// This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported
|
|
9
|
+
// so to restrict translators from accessing the upload/download page we are checking that they have any permissions at all.
|
|
10
|
+
// The reason for this is that, at the moment, the Translators role will assign no permissions to the user. So we are effectively
|
|
11
|
+
// simulating a check for 'is this user a translator?' (since project 'roles' don't actually exist).
|
|
12
|
+
// The correct check is to check for upload permission, so when that is implemented this will continue to work as expected,
|
|
13
|
+
// but will need to remove this first part of the check.
|
|
14
|
+
marketing: () => hasAny.hasAny(projectPermissions, "contributors", "settings", "manage_languages") || has.has(projectPermissions, "download")
|
|
15
|
+
});
|
|
16
|
+
exports.downloadFiles = downloadFiles;
|
|
6
17
|
//# sourceMappingURL=harmony152.cjs.map
|
package/dist/harmony152.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony152.cjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony152.cjs","sources":["../src/features/permissions/actionResolvers/downloadFiles.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { canPerformActionByProjectType } from '../utils/canPerformActionByProjectType'\nimport { has } from '../utils/has'\nimport { hasAny } from '../utils/hasAny'\n\nexport const downloadFiles: ActionResolver = ({ projectType, projectPermissions }) =>\n\tcanPerformActionByProjectType(projectType, {\n\t\tclassic: () => has(projectPermissions, 'download'),\n\n\t\t// This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported\n\t\t// so to restrict translators from accessing the upload/download page we are checking that they have any permissions at all.\n\t\t// The reason for this is that, at the moment, the Translators role will assign no permissions to the user. So we are effectively\n\t\t// simulating a check for 'is this user a translator?' (since project 'roles' don't actually exist).\n\t\t// The correct check is to check for upload permission, so when that is implemented this will continue to work as expected,\n\t\t// but will need to remove this first part of the check.\n\t\tmarketing: () =>\n\t\t\thasAny(projectPermissions, 'contributors', 'settings', 'manage_languages') ||\n\t\t\thas(projectPermissions, 'download'),\n\t})\n"],"names":["canPerformActionByProjectType","has","hasAny"],"mappings":";;;;;AAKO,MAAM,gBAAgC,CAAC,EAAE,aAAa,mBAAmB,MAC/EA,8BAAAA,8BAA8B,aAAa;AAAA,EAC1C,SAAS,MAAMC,IAAAA,IAAI,oBAAoB,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjD,WAAW,MACVC,cAAO,oBAAoB,gBAAgB,YAAY,kBAAkB,KACzED,QAAI,oBAAoB,UAAU;AACpC,CAAC;;"}
|
package/dist/harmony152.mjs
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { canPerformActionByProjectType } from "./harmony158.mjs";
|
|
2
|
+
import { has } from "./harmony126.mjs";
|
|
3
|
+
import { hasAny } from "./harmony125.mjs";
|
|
4
|
+
const downloadFiles = ({ projectType, projectPermissions }) => canPerformActionByProjectType(projectType, {
|
|
5
|
+
classic: () => has(projectPermissions, "download"),
|
|
6
|
+
// This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported
|
|
7
|
+
// so to restrict translators from accessing the upload/download page we are checking that they have any permissions at all.
|
|
8
|
+
// The reason for this is that, at the moment, the Translators role will assign no permissions to the user. So we are effectively
|
|
9
|
+
// simulating a check for 'is this user a translator?' (since project 'roles' don't actually exist).
|
|
10
|
+
// The correct check is to check for upload permission, so when that is implemented this will continue to work as expected,
|
|
11
|
+
// but will need to remove this first part of the check.
|
|
12
|
+
marketing: () => hasAny(projectPermissions, "contributors", "settings", "manage_languages") || has(projectPermissions, "download")
|
|
13
|
+
});
|
|
3
14
|
export {
|
|
4
|
-
|
|
15
|
+
downloadFiles
|
|
5
16
|
};
|
|
6
17
|
//# sourceMappingURL=harmony152.mjs.map
|
package/dist/harmony152.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony152.mjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony152.mjs","sources":["../src/features/permissions/actionResolvers/downloadFiles.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { canPerformActionByProjectType } from '../utils/canPerformActionByProjectType'\nimport { has } from '../utils/has'\nimport { hasAny } from '../utils/hasAny'\n\nexport const downloadFiles: ActionResolver = ({ projectType, projectPermissions }) =>\n\tcanPerformActionByProjectType(projectType, {\n\t\tclassic: () => has(projectPermissions, 'download'),\n\n\t\t// This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported\n\t\t// so to restrict translators from accessing the upload/download page we are checking that they have any permissions at all.\n\t\t// The reason for this is that, at the moment, the Translators role will assign no permissions to the user. So we are effectively\n\t\t// simulating a check for 'is this user a translator?' (since project 'roles' don't actually exist).\n\t\t// The correct check is to check for upload permission, so when that is implemented this will continue to work as expected,\n\t\t// but will need to remove this first part of the check.\n\t\tmarketing: () =>\n\t\t\thasAny(projectPermissions, 'contributors', 'settings', 'manage_languages') ||\n\t\t\thas(projectPermissions, 'download'),\n\t})\n"],"names":[],"mappings":";;;AAKO,MAAM,gBAAgC,CAAC,EAAE,aAAa,mBAAmB,MAC/E,8BAA8B,aAAa;AAAA,EAC1C,SAAS,MAAM,IAAI,oBAAoB,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjD,WAAW,MACV,OAAO,oBAAoB,gBAAgB,YAAY,kBAAkB,KACzE,IAAI,oBAAoB,UAAU;AACpC,CAAC;"}
|