@lokalise/harmony 4.7.1 → 4.7.2
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/harmony107.cjs +2 -2
- package/dist/harmony107.mjs +2 -2
- package/dist/harmony109.cjs +2 -2
- package/dist/harmony109.mjs +2 -2
- package/dist/harmony117.cjs +2 -2
- package/dist/harmony117.mjs +2 -2
- package/dist/harmony119.cjs +166 -11
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +166 -11
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +44 -21
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +43 -20
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony122.cjs +1 -1
- package/dist/harmony122.mjs +1 -1
- package/dist/harmony123.cjs +12 -12
- package/dist/harmony123.mjs +12 -12
- package/dist/harmony126.cjs +1 -1
- package/dist/harmony126.mjs +1 -1
- package/dist/harmony127.cjs +1 -1
- package/dist/harmony127.mjs +1 -1
- package/dist/harmony129.cjs +11 -165
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +11 -165
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +12 -44
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +11 -43
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +9 -10
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +11 -12
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +20 -11
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +20 -11
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony134.cjs +87 -20
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +87 -20
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +30 -8
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +30 -8
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +49 -8
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +49 -8
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +11 -21
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +11 -21
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +8 -49
- package/dist/harmony138.cjs.map +1 -1
- package/dist/harmony138.mjs +8 -49
- package/dist/harmony138.mjs.map +1 -1
- package/dist/harmony139.cjs +8 -11
- package/dist/harmony139.cjs.map +1 -1
- package/dist/harmony139.mjs +8 -11
- package/dist/harmony139.mjs.map +1 -1
- package/dist/harmony140.cjs +21 -9
- package/dist/harmony140.cjs.map +1 -1
- package/dist/harmony140.mjs +20 -8
- package/dist/harmony140.mjs.map +1 -1
- package/dist/harmony141.cjs +20 -12
- package/dist/harmony141.cjs.map +1 -1
- package/dist/harmony141.mjs +20 -12
- package/dist/harmony141.mjs.map +1 -1
- package/dist/harmony142.cjs +9 -15
- package/dist/harmony142.cjs.map +1 -1
- package/dist/harmony142.mjs +8 -14
- package/dist/harmony142.mjs.map +1 -1
- package/dist/harmony143.cjs +4 -11
- package/dist/harmony143.cjs.map +1 -1
- package/dist/harmony143.mjs +7 -14
- package/dist/harmony143.mjs.map +1 -1
- package/dist/harmony144.cjs +12 -7
- package/dist/harmony144.cjs.map +1 -1
- package/dist/harmony144.mjs +14 -9
- package/dist/harmony144.mjs.map +1 -1
- package/dist/harmony145.cjs +11 -18
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +14 -21
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +7 -9
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +9 -11
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +17 -29
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +19 -31
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +4 -4
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +5 -5
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +28 -12
- package/dist/harmony149.cjs.map +1 -1
- package/dist/harmony149.mjs +29 -13
- package/dist/harmony149.mjs.map +1 -1
- package/dist/harmony150.cjs +5 -29
- package/dist/harmony150.cjs.map +1 -1
- package/dist/harmony150.mjs +7 -31
- package/dist/harmony150.mjs.map +1 -1
- package/dist/harmony151.cjs +22 -21
- package/dist/harmony151.cjs.map +1 -1
- package/dist/harmony151.mjs +21 -20
- package/dist/harmony151.mjs.map +1 -1
- package/dist/harmony152.cjs +30 -15
- package/dist/harmony152.cjs.map +1 -1
- package/dist/harmony152.mjs +32 -17
- package/dist/harmony152.mjs.map +1 -1
- package/dist/harmony153.cjs +18 -3
- package/dist/harmony153.cjs.map +1 -1
- package/dist/harmony153.mjs +18 -3
- package/dist/harmony153.mjs.map +1 -1
- package/dist/harmony154.cjs +21 -15
- package/dist/harmony154.cjs.map +1 -1
- package/dist/harmony154.mjs +20 -14
- package/dist/harmony154.mjs.map +1 -1
- package/dist/harmony155.cjs +6 -87
- package/dist/harmony155.cjs.map +1 -1
- package/dist/harmony155.mjs +5 -86
- package/dist/harmony155.mjs.map +1 -1
- package/dist/harmony156.cjs +16 -31
- package/dist/harmony156.cjs.map +1 -1
- package/dist/harmony156.mjs +15 -30
- package/dist/harmony156.mjs.map +1 -1
- package/dist/harmony157.cjs +2 -2
- package/dist/harmony157.mjs +2 -2
- package/dist/harmony158.cjs +2 -2
- package/dist/harmony158.mjs +2 -2
- package/dist/harmony159.cjs +10 -8
- package/dist/harmony159.cjs.map +1 -1
- package/dist/harmony159.mjs +10 -8
- package/dist/harmony159.mjs.map +1 -1
- package/dist/harmony160.cjs +8 -2
- package/dist/harmony160.cjs.map +1 -1
- package/dist/harmony160.mjs +8 -2
- package/dist/harmony160.mjs.map +1 -1
- package/dist/harmony161.cjs +2 -3
- package/dist/harmony161.cjs.map +1 -1
- package/dist/harmony161.mjs +2 -3
- package/dist/harmony161.mjs.map +1 -1
- package/dist/harmony162.cjs +3 -3
- package/dist/harmony162.cjs.map +1 -1
- package/dist/harmony162.mjs +3 -3
- package/dist/harmony162.mjs.map +1 -1
- package/dist/harmony163.cjs +3 -3
- package/dist/harmony163.cjs.map +1 -1
- package/dist/harmony163.mjs +3 -3
- package/dist/harmony163.mjs.map +1 -1
- package/dist/harmony164.cjs +3 -14
- package/dist/harmony164.cjs.map +1 -1
- package/dist/harmony164.mjs +3 -14
- package/dist/harmony164.mjs.map +1 -1
- package/dist/harmony165.cjs +14 -3
- package/dist/harmony165.cjs.map +1 -1
- package/dist/harmony165.mjs +14 -3
- package/dist/harmony165.mjs.map +1 -1
- package/dist/harmony166.cjs +3 -3
- package/dist/harmony166.cjs.map +1 -1
- package/dist/harmony166.mjs +3 -3
- package/dist/harmony166.mjs.map +1 -1
- package/dist/harmony167.cjs +3 -14
- package/dist/harmony167.cjs.map +1 -1
- package/dist/harmony167.mjs +3 -14
- package/dist/harmony167.mjs.map +1 -1
- package/dist/harmony168.cjs +14 -96
- package/dist/harmony168.cjs.map +1 -1
- package/dist/harmony168.mjs +14 -96
- package/dist/harmony168.mjs.map +1 -1
- package/dist/harmony169.cjs +94 -11
- package/dist/harmony169.cjs.map +1 -1
- package/dist/harmony169.mjs +94 -11
- package/dist/harmony169.mjs.map +1 -1
- package/dist/harmony170.cjs +12 -13
- package/dist/harmony170.cjs.map +1 -1
- package/dist/harmony170.mjs +12 -13
- package/dist/harmony170.mjs.map +1 -1
- package/dist/harmony171.cjs +13 -35
- package/dist/harmony171.cjs.map +1 -1
- package/dist/harmony171.mjs +13 -35
- package/dist/harmony171.mjs.map +1 -1
- package/dist/harmony172.cjs +32 -24
- package/dist/harmony172.cjs.map +1 -1
- package/dist/harmony172.mjs +32 -24
- package/dist/harmony172.mjs.map +1 -1
- package/dist/harmony173.cjs +28 -10
- package/dist/harmony173.cjs.map +1 -1
- package/dist/harmony173.mjs +28 -10
- package/dist/harmony173.mjs.map +1 -1
- package/dist/harmony184.cjs +1 -1
- package/dist/harmony184.mjs +1 -1
- package/dist/harmony185.cjs +1 -1
- package/dist/harmony185.mjs +1 -1
- package/dist/harmony187.cjs +3 -3
- package/dist/harmony187.mjs +3 -3
- package/dist/harmony189.cjs +4 -6
- package/dist/harmony189.cjs.map +1 -1
- package/dist/harmony189.mjs +4 -6
- package/dist/harmony189.mjs.map +1 -1
- package/dist/harmony190.cjs +5 -11
- package/dist/harmony190.cjs.map +1 -1
- package/dist/harmony190.mjs +5 -11
- package/dist/harmony190.mjs.map +1 -1
- package/dist/harmony191.cjs +11 -31
- package/dist/harmony191.cjs.map +1 -1
- package/dist/harmony191.mjs +11 -31
- package/dist/harmony191.mjs.map +1 -1
- package/dist/harmony192.cjs +28 -10
- package/dist/harmony192.cjs.map +1 -1
- package/dist/harmony192.mjs +28 -10
- package/dist/harmony192.mjs.map +1 -1
- package/dist/harmony193.cjs +14 -4
- package/dist/harmony193.cjs.map +1 -1
- package/dist/harmony193.mjs +14 -4
- package/dist/harmony193.mjs.map +1 -1
- package/dist/harmony21.cjs +1 -1
- package/dist/harmony21.mjs +1 -1
- package/dist/harmony42.cjs +1 -1
- package/dist/harmony42.mjs +1 -1
- package/dist/harmony43.cjs +1 -1
- package/dist/harmony43.mjs +1 -1
- package/dist/harmony44.cjs +1 -1
- package/dist/harmony44.mjs +1 -1
- package/dist/harmony60.cjs +1 -1
- package/dist/harmony60.mjs +1 -1
- package/dist/harmony62.cjs +1 -1
- package/dist/harmony62.mjs +1 -1
- package/dist/harmony72.cjs +1 -1
- package/dist/harmony72.mjs +1 -1
- package/dist/harmony73.cjs +1 -1
- package/dist/harmony73.mjs +1 -1
- package/dist/harmony78.cjs +1 -1
- package/dist/harmony78.mjs +1 -1
- package/dist/harmony85.cjs +1 -1
- package/dist/harmony85.mjs +1 -1
- package/dist/harmony98.cjs +2 -1
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +2 -1
- package/dist/harmony98.mjs.map +1 -1
- package/dist/types/src/features/navigation/fixtures/AppSidebar.fixtures.d.ts +2 -0
- package/dist/types/src/features/publicApi/team.d.ts +2 -0
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +6 -1
- package/package.json +1 -1
package/dist/harmony156.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=harmony156.cjs.map
|
package/dist/harmony156.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony156.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"harmony156.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
package/dist/harmony156.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=harmony156.mjs.map
|
package/dist/harmony156.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony156.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"harmony156.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/harmony157.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const _commonjsHelpers = require("./
|
|
4
|
-
const debounce$1 = require("./
|
|
3
|
+
const _commonjsHelpers = require("./harmony190.cjs");
|
|
4
|
+
const debounce$1 = require("./harmony169.cjs");
|
|
5
5
|
var debounceExports = debounce$1.__require();
|
|
6
6
|
const debounce = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(debounceExports);
|
|
7
7
|
exports.default = debounce;
|
package/dist/harmony157.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from "./
|
|
2
|
-
import { __require as requireDebounce } from "./
|
|
1
|
+
import { getDefaultExportFromCjs } from "./harmony190.mjs";
|
|
2
|
+
import { __require as requireDebounce } from "./harmony169.mjs";
|
|
3
3
|
var debounceExports = requireDebounce();
|
|
4
4
|
const debounce = /* @__PURE__ */ getDefaultExportFromCjs(debounceExports);
|
|
5
5
|
export {
|
package/dist/harmony158.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const _commonjsHelpers = require("./
|
|
4
|
-
const throttle$1 = require("./
|
|
3
|
+
const _commonjsHelpers = require("./harmony190.cjs");
|
|
4
|
+
const throttle$1 = require("./harmony173.cjs");
|
|
5
5
|
var throttleExports = throttle$1.__require();
|
|
6
6
|
const throttle = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(throttleExports);
|
|
7
7
|
exports.default = throttle;
|
package/dist/harmony158.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs } from "./
|
|
2
|
-
import { __require as requireThrottle } from "./
|
|
1
|
+
import { getDefaultExportFromCjs } from "./harmony190.mjs";
|
|
2
|
+
import { __require as requireThrottle } from "./harmony173.mjs";
|
|
3
3
|
var throttleExports = requireThrottle();
|
|
4
4
|
const throttle = /* @__PURE__ */ getDefaultExportFromCjs(throttleExports);
|
|
5
5
|
export {
|
package/dist/harmony159.cjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
const hasAdminRight = (adminRights, right) => {
|
|
4
|
+
if (!Array.isArray(adminRights)) return false;
|
|
5
|
+
return adminRights.includes(right);
|
|
6
|
+
};
|
|
7
|
+
const hasAnyAdminRight = (adminRights, rights) => {
|
|
8
|
+
if (!Array.isArray(adminRights)) return false;
|
|
9
|
+
return rights.some((right) => adminRights.includes(right));
|
|
10
|
+
};
|
|
11
|
+
exports.hasAdminRight = hasAdminRight;
|
|
12
|
+
exports.hasAnyAdminRight = hasAnyAdminRight;
|
|
11
13
|
//# sourceMappingURL=harmony159.cjs.map
|
package/dist/harmony159.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony159.cjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony159.cjs","sources":["../src/features/auth/utils/permissions.ts"],"sourcesContent":["// Helper function to check if user has a specific admin right\nexport const hasAdminRight = (adminRights: string[], right: string): boolean => {\n\tif (!Array.isArray(adminRights)) return false\n\treturn adminRights.includes(right)\n}\n\n// Helper function to check if user has any of the specified admin rights\nexport const hasAnyAdminRight = (adminRights: string[], rights: string[]): boolean => {\n\tif (!Array.isArray(adminRights)) return false\n\treturn rights.some((right) => adminRights.includes(right))\n}\n"],"names":[],"mappings":";;AACa,MAAA,gBAAgB,CAAC,aAAuB,UAA2B;AAC/E,MAAI,CAAC,MAAM,QAAQ,WAAW,EAAU,QAAA;AACjC,SAAA,YAAY,SAAS,KAAK;AAClC;AAGa,MAAA,mBAAmB,CAAC,aAAuB,WAA8B;AACrF,MAAI,CAAC,MAAM,QAAQ,WAAW,EAAU,QAAA;AACxC,SAAO,OAAO,KAAK,CAAC,UAAU,YAAY,SAAS,KAAK,CAAC;AAC1D;;;"}
|
package/dist/harmony159.mjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const hasAdminRight = (adminRights, right) => {
|
|
2
|
+
if (!Array.isArray(adminRights)) return false;
|
|
3
|
+
return adminRights.includes(right);
|
|
4
|
+
};
|
|
5
|
+
const hasAnyAdminRight = (adminRights, rights) => {
|
|
6
|
+
if (!Array.isArray(adminRights)) return false;
|
|
7
|
+
return rights.some((right) => adminRights.includes(right));
|
|
8
|
+
};
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
+
hasAdminRight,
|
|
11
|
+
hasAnyAdminRight
|
|
10
12
|
};
|
|
11
13
|
//# sourceMappingURL=harmony159.mjs.map
|
package/dist/harmony159.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony159.mjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony159.mjs","sources":["../src/features/auth/utils/permissions.ts"],"sourcesContent":["// Helper function to check if user has a specific admin right\nexport const hasAdminRight = (adminRights: string[], right: string): boolean => {\n\tif (!Array.isArray(adminRights)) return false\n\treturn adminRights.includes(right)\n}\n\n// Helper function to check if user has any of the specified admin rights\nexport const hasAnyAdminRight = (adminRights: string[], rights: string[]): boolean => {\n\tif (!Array.isArray(adminRights)) return false\n\treturn rights.some((right) => adminRights.includes(right))\n}\n"],"names":[],"mappings":"AACa,MAAA,gBAAgB,CAAC,aAAuB,UAA2B;AAC/E,MAAI,CAAC,MAAM,QAAQ,WAAW,EAAU,QAAA;AACjC,SAAA,YAAY,SAAS,KAAK;AAClC;AAGa,MAAA,mBAAmB,CAAC,aAAuB,WAA8B;AACrF,MAAI,CAAC,MAAM,QAAQ,WAAW,EAAU,QAAA;AACxC,SAAO,OAAO,KAAK,CAAC,UAAU,YAAY,SAAS,KAAK,CAAC;AAC1D;"}
|
package/dist/harmony160.cjs
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const canPerformActionByProjectType = require("./harmony184.cjs");
|
|
4
|
+
const projectPermissionTypes = require("./harmony47.cjs");
|
|
5
|
+
const has = require("./harmony139.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;
|
|
5
11
|
//# sourceMappingURL=harmony160.cjs.map
|
package/dist/harmony160.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony160.cjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony160.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/harmony160.mjs
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { canPerformActionByProjectType } from "./harmony184.mjs";
|
|
2
|
+
import { MARKETING_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from "./harmony47.mjs";
|
|
3
|
+
import { has } from "./harmony139.mjs";
|
|
4
|
+
const manageManagementPermissions = ({ projectType, projectPermissions }) => canPerformActionByProjectType(projectType, {
|
|
5
|
+
classic: () => has(projectPermissions, ...PROJECT_PERMISSIONS),
|
|
6
|
+
marketing: () => has(projectPermissions, ...MARKETING_PROJECT_PERMISSIONS)
|
|
7
|
+
});
|
|
2
8
|
export {
|
|
3
|
-
|
|
9
|
+
manageManagementPermissions
|
|
4
10
|
};
|
|
5
11
|
//# sourceMappingURL=harmony160.mjs.map
|
package/dist/harmony160.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony160.mjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony160.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/harmony161.cjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
exports.accessMarketingProjects = accessMarketingProjects;
|
|
3
|
+
const accessExpertFeatures = ({ isExpert }) => isExpert === true;
|
|
4
|
+
exports.accessExpertFeatures = accessExpertFeatures;
|
|
6
5
|
//# sourceMappingURL=harmony161.cjs.map
|
package/dist/harmony161.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony161.cjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony161.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/harmony161.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
const accessMarketingProjects = ({ enabledFeatureFlags }) => has(enabledFeatureFlags, "homeMarketingBeta");
|
|
1
|
+
const accessExpertFeatures = ({ isExpert }) => isExpert === true;
|
|
3
2
|
export {
|
|
4
|
-
|
|
3
|
+
accessExpertFeatures
|
|
5
4
|
};
|
|
6
5
|
//# sourceMappingURL=harmony161.mjs.map
|
package/dist/harmony161.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony161.mjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony161.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/harmony162.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("./harmony139.cjs");
|
|
4
|
+
const accessMarketingProjects = ({ enabledFeatureFlags }) => has.has(enabledFeatureFlags, "homeMarketingBeta");
|
|
5
|
+
exports.accessMarketingProjects = accessMarketingProjects;
|
|
6
6
|
//# sourceMappingURL=harmony162.cjs.map
|
package/dist/harmony162.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony162.cjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony162.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/harmony162.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { has } from "./harmony139.mjs";
|
|
2
|
+
const accessMarketingProjects = ({ enabledFeatureFlags }) => has(enabledFeatureFlags, "homeMarketingBeta");
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
accessMarketingProjects
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=harmony162.mjs.map
|
package/dist/harmony162.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony162.mjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony162.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/harmony163.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("./harmony138.cjs");
|
|
4
|
+
const createProjects = ({ teamRole }) => hasAny.hasAny(teamRole, "owner", "biller", "admin");
|
|
5
|
+
exports.createProjects = createProjects;
|
|
6
6
|
//# sourceMappingURL=harmony163.cjs.map
|
package/dist/harmony163.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony163.cjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony163.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/harmony163.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
1
|
+
import { hasAny } from "./harmony138.mjs";
|
|
2
|
+
const createProjects = ({ teamRole }) => hasAny(teamRole, "owner", "biller", "admin");
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
createProjects
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=harmony163.mjs.map
|
package/dist/harmony163.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony163.mjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony163.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/harmony164.cjs
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
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;
|
|
3
|
+
const has = require("./harmony139.cjs");
|
|
4
|
+
const deleteProjects = ({ projectPermissions }) => has.has(projectPermissions, "settings");
|
|
5
|
+
exports.deleteProjects = deleteProjects;
|
|
17
6
|
//# sourceMappingURL=harmony164.cjs.map
|
package/dist/harmony164.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony164.cjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony164.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/harmony164.mjs
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { hasAny } from "./harmony135.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
|
-
});
|
|
1
|
+
import { has } from "./harmony139.mjs";
|
|
2
|
+
const deleteProjects = ({ projectPermissions }) => has(projectPermissions, "settings");
|
|
14
3
|
export {
|
|
15
|
-
|
|
4
|
+
deleteProjects
|
|
16
5
|
};
|
|
17
6
|
//# sourceMappingURL=harmony164.mjs.map
|
package/dist/harmony164.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony164.mjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony164.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/harmony165.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("./harmony184.cjs");
|
|
4
|
+
const has = require("./harmony139.cjs");
|
|
5
|
+
const hasAny = require("./harmony138.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=harmony165.cjs.map
|
package/dist/harmony165.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony165.cjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony165.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/harmony165.mjs
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { canPerformActionByProjectType } from "./harmony184.mjs";
|
|
2
|
+
import { has } from "./harmony139.mjs";
|
|
3
|
+
import { hasAny } from "./harmony138.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=harmony165.mjs.map
|
package/dist/harmony165.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony165.mjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony165.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;"}
|
package/dist/harmony166.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const has = require("./
|
|
4
|
-
const
|
|
5
|
-
exports.
|
|
3
|
+
const has = require("./harmony139.cjs");
|
|
4
|
+
const manageContributors = ({ projectPermissions }) => has.has(projectPermissions, "contributors");
|
|
5
|
+
exports.manageContributors = manageContributors;
|
|
6
6
|
//# sourceMappingURL=harmony166.cjs.map
|
package/dist/harmony166.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony166.cjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony166.cjs","sources":["../src/features/permissions/actionResolvers/manageContributors.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const manageContributors: ActionResolver = ({ projectPermissions }) =>\n\thas(projectPermissions, 'contributors')\n"],"names":["has"],"mappings":";;;AAGO,MAAM,qBAAqC,CAAC,EAAE,mBACpD,MAAAA,IAAA,IAAI,oBAAoB,cAAc;;"}
|
package/dist/harmony166.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { has } from "./
|
|
2
|
-
const
|
|
1
|
+
import { has } from "./harmony139.mjs";
|
|
2
|
+
const manageContributors = ({ projectPermissions }) => has(projectPermissions, "contributors");
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
manageContributors
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=harmony166.mjs.map
|
package/dist/harmony166.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony166.mjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony166.mjs","sources":["../src/features/permissions/actionResolvers/manageContributors.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const manageContributors: ActionResolver = ({ projectPermissions }) =>\n\thas(projectPermissions, 'contributors')\n"],"names":[],"mappings":";AAGO,MAAM,qBAAqC,CAAC,EAAE,mBACpD,MAAA,IAAI,oBAAoB,cAAc;"}
|
package/dist/harmony167.cjs
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const uploadFiles = ({ projectPermissions, projectType }) => canPerformActionByProjectType.canPerformActionByProjectType(projectType, {
|
|
7
|
-
classic: () => has.has(projectPermissions, "upload"),
|
|
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, "upload")
|
|
15
|
-
});
|
|
16
|
-
exports.uploadFiles = uploadFiles;
|
|
3
|
+
const has = require("./harmony139.cjs");
|
|
4
|
+
const testNewProjectSetupFlow = ({ enabledFeatureFlags }) => has.has(enabledFeatureFlags, "home_feature_contributors_page_in_project_setup_flow");
|
|
5
|
+
exports.testNewProjectSetupFlow = testNewProjectSetupFlow;
|
|
17
6
|
//# sourceMappingURL=harmony167.cjs.map
|
package/dist/harmony167.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony167.cjs","sources":["../src/features/permissions/actionResolvers/
|
|
1
|
+
{"version":3,"file":"harmony167.cjs","sources":["../src/features/permissions/actionResolvers/testNewProjectSetupFlow.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const testNewProjectSetupFlow: ActionResolver = ({ enabledFeatureFlags }) =>\n\thas(enabledFeatureFlags, 'home_feature_contributors_page_in_project_setup_flow')\n"],"names":["has"],"mappings":";;;AAGO,MAAM,0BAA0C,CAAC,EAAE,oBACzD,MAAAA,IAAA,IAAI,qBAAqB,sDAAsD;;"}
|