@lokalise/harmony 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/harmony.cjs +1 -1
- package/dist/harmony.mjs +3 -3
- package/dist/harmony102.cjs +1 -1
- package/dist/harmony102.mjs +1 -1
- package/dist/harmony103.cjs +7 -7
- package/dist/harmony103.mjs +7 -7
- package/dist/harmony105.cjs +2 -2
- package/dist/harmony105.mjs +2 -2
- package/dist/harmony106.cjs +2 -165
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +3 -166
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +16 -42
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +16 -42
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +75 -13
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +75 -13
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +10 -10
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +10 -10
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +35 -13
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +34 -12
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +9 -3
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +9 -3
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +41 -12
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +43 -14
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +9 -76
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +8 -75
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +10 -10
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +10 -10
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +13 -35
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +12 -34
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +10 -8
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +11 -9
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +21 -47
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +20 -46
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +166 -9
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +165 -8
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +44 -11
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +44 -11
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +14 -21
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +13 -20
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +98 -6
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +82 -7
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +6 -16
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +7 -17
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +16 -7
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +16 -7
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +3 -3
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +3 -3
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +7 -14
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +7 -14
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +15 -20
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +15 -20
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +20 -87
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +20 -87
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +10 -31
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +9 -30
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +11 -98
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +11 -81
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +15 -9
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +14 -8
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +13 -6
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +15 -8
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +7 -12
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +9 -14
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +20 -13
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +22 -15
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +9 -7
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +11 -9
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +30 -18
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +32 -20
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +6 -6
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +6 -6
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +13 -29
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +14 -30
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +31 -7
- package/dist/harmony138.cjs.map +1 -1
- package/dist/harmony138.mjs +32 -8
- package/dist/harmony138.mjs.map +1 -1
- package/dist/harmony139.cjs +21 -22
- package/dist/harmony139.cjs.map +1 -1
- package/dist/harmony139.mjs +20 -21
- package/dist/harmony139.mjs.map +1 -1
- package/dist/harmony140.cjs +15 -30
- package/dist/harmony140.cjs.map +1 -1
- package/dist/harmony140.mjs +17 -32
- package/dist/harmony140.mjs.map +1 -1
- package/dist/harmony141.cjs +3 -18
- package/dist/harmony141.cjs.map +1 -1
- package/dist/harmony141.mjs +3 -18
- package/dist/harmony141.mjs.map +1 -1
- package/dist/harmony142.cjs +15 -21
- package/dist/harmony142.cjs.map +1 -1
- package/dist/harmony142.mjs +14 -20
- package/dist/harmony142.mjs.map +1 -1
- package/dist/harmony143.cjs +87 -6
- package/dist/harmony143.cjs.map +1 -1
- package/dist/harmony143.mjs +86 -5
- package/dist/harmony143.mjs.map +1 -1
- package/dist/harmony144.cjs +31 -16
- package/dist/harmony144.cjs.map +1 -1
- package/dist/harmony144.mjs +30 -15
- package/dist/harmony144.mjs.map +1 -1
- package/dist/harmony145.cjs +6 -4
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +5 -3
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +6 -4
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +5 -3
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +3 -3
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +3 -3
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +3 -14
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +3 -14
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +3 -14
- package/dist/harmony149.cjs.map +1 -1
- package/dist/harmony149.mjs +3 -14
- package/dist/harmony149.mjs.map +1 -1
- package/dist/harmony150.cjs +14 -3
- package/dist/harmony150.cjs.map +1 -1
- package/dist/harmony150.mjs +14 -3
- package/dist/harmony150.mjs.map +1 -1
- package/dist/harmony151.cjs +15 -6
- package/dist/harmony151.cjs.map +1 -1
- package/dist/harmony151.mjs +14 -5
- package/dist/harmony151.mjs.map +1 -1
- package/dist/harmony152.cjs +4 -6
- package/dist/harmony152.cjs.map +1 -1
- package/dist/harmony152.mjs +3 -5
- package/dist/harmony152.mjs.map +1 -1
- package/dist/harmony153.cjs +96 -10
- package/dist/harmony153.cjs.map +1 -1
- package/dist/harmony153.mjs +96 -10
- package/dist/harmony153.mjs.map +1 -1
- package/dist/harmony154.cjs +14 -10
- package/dist/harmony154.cjs.map +1 -1
- package/dist/harmony154.mjs +13 -9
- package/dist/harmony154.mjs.map +1 -1
- package/dist/harmony155.cjs +15 -7
- package/dist/harmony155.cjs.map +1 -1
- package/dist/harmony155.mjs +14 -6
- package/dist/harmony155.mjs.map +1 -1
- package/dist/harmony156.cjs +37 -10
- package/dist/harmony156.cjs.map +1 -1
- package/dist/harmony156.mjs +36 -9
- package/dist/harmony156.mjs.map +1 -1
- package/dist/harmony157.cjs +29 -25
- package/dist/harmony157.cjs.map +1 -1
- package/dist/harmony157.mjs +28 -24
- package/dist/harmony157.mjs.map +1 -1
- package/dist/harmony158.cjs +6 -3
- package/dist/harmony158.cjs.map +1 -1
- package/dist/harmony158.mjs +6 -3
- package/dist/harmony158.mjs.map +1 -1
- package/dist/harmony159.cjs +3 -9
- package/dist/harmony159.cjs.map +1 -1
- package/dist/harmony159.mjs +3 -9
- package/dist/harmony159.mjs.map +1 -1
- package/dist/harmony160.cjs +6 -3
- package/dist/harmony160.cjs.map +1 -1
- package/dist/harmony160.mjs +6 -3
- package/dist/harmony160.mjs.map +1 -1
- package/dist/harmony161.cjs +24 -32
- package/dist/harmony161.cjs.map +1 -1
- package/dist/harmony161.mjs +23 -31
- package/dist/harmony161.mjs.map +1 -1
- package/dist/harmony162.cjs +7 -97
- package/dist/harmony162.cjs.map +1 -1
- package/dist/harmony162.mjs +6 -96
- package/dist/harmony162.mjs.map +1 -1
- package/dist/harmony163.cjs +13 -14
- package/dist/harmony163.cjs.map +1 -1
- package/dist/harmony163.mjs +12 -13
- package/dist/harmony163.mjs.map +1 -1
- package/dist/harmony164.cjs +7 -15
- package/dist/harmony164.cjs.map +1 -1
- package/dist/harmony164.mjs +6 -14
- package/dist/harmony164.mjs.map +1 -1
- package/dist/harmony165.cjs +10 -36
- package/dist/harmony165.cjs.map +1 -1
- package/dist/harmony165.mjs +10 -36
- package/dist/harmony165.mjs.map +1 -1
- package/dist/harmony166.cjs +31 -27
- package/dist/harmony166.cjs.map +1 -1
- package/dist/harmony166.mjs +31 -27
- package/dist/harmony166.mjs.map +1 -1
- package/dist/harmony167.cjs +1 -1
- package/dist/harmony167.mjs +1 -1
- package/dist/harmony168.cjs +1 -1
- package/dist/harmony168.mjs +1 -1
- package/dist/harmony169.cjs +2 -2
- package/dist/harmony169.mjs +2 -2
- package/dist/harmony17.cjs +1 -1
- package/dist/harmony17.mjs +1 -1
- package/dist/harmony170.cjs +11 -4
- package/dist/harmony170.cjs.map +1 -1
- package/dist/harmony170.mjs +11 -4
- package/dist/harmony170.mjs.map +1 -1
- package/dist/harmony171.cjs +15 -10
- package/dist/harmony171.cjs.map +1 -1
- package/dist/harmony171.mjs +15 -10
- package/dist/harmony171.mjs.map +1 -1
- package/dist/harmony172.cjs +18 -13
- package/dist/harmony172.cjs.map +1 -1
- package/dist/harmony172.mjs +18 -13
- package/dist/harmony172.mjs.map +1 -1
- package/dist/harmony173.cjs +10 -19
- package/dist/harmony173.cjs.map +1 -1
- package/dist/harmony173.mjs +10 -19
- package/dist/harmony173.mjs.map +1 -1
- package/dist/harmony174.cjs +4 -12
- package/dist/harmony174.cjs.map +1 -1
- package/dist/harmony174.mjs +4 -12
- package/dist/harmony174.mjs.map +1 -1
- package/dist/harmony20.cjs +1 -1
- package/dist/harmony20.mjs +1 -1
- package/dist/harmony28.cjs +1 -1
- package/dist/harmony28.mjs +1 -1
- package/dist/harmony29.cjs +1 -1
- package/dist/harmony29.mjs +1 -1
- package/dist/harmony32.cjs +1 -1
- package/dist/harmony32.mjs +1 -1
- package/dist/harmony33.cjs +1 -1
- package/dist/harmony33.mjs +1 -1
- package/dist/harmony34.cjs +1 -1
- package/dist/harmony34.mjs +1 -1
- package/dist/harmony39.cjs +1 -1
- package/dist/harmony39.mjs +1 -1
- package/dist/harmony40.cjs +1 -1
- package/dist/harmony40.mjs +1 -1
- package/dist/harmony41.cjs +1 -1
- package/dist/harmony41.mjs +1 -1
- package/dist/harmony42.cjs +2 -2
- package/dist/harmony42.mjs +2 -2
- package/dist/harmony43.cjs +2 -2
- package/dist/harmony43.mjs +2 -2
- package/dist/harmony44.cjs +1 -1
- package/dist/harmony44.mjs +1 -1
- package/dist/harmony45.cjs +2 -0
- package/dist/harmony45.cjs.map +1 -1
- package/dist/harmony45.mjs +2 -0
- package/dist/harmony45.mjs.map +1 -1
- package/dist/harmony81.cjs +5 -20
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +5 -20
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +5 -1
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +5 -1
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony88.cjs +2 -1
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +3 -2
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony94.cjs +1 -1
- package/dist/harmony94.mjs +1 -1
- package/dist/harmony96.cjs +2 -2
- package/dist/harmony96.mjs +2 -2
- package/dist/harmony98.cjs +2 -2
- package/dist/harmony98.mjs +2 -2
- package/dist/types/src/features/permissions/types.d.ts +5 -1
- package/dist/types/src/features/publicApi/permissionTemplates.d.ts +5 -5
- package/dist/types/src/features/publicApi/projects.d.ts +15 -15
- package/dist/types/src/features/publicApi/teamUsers.d.ts +5 -5
- package/dist/types/src/features/publicApi/types/permissionTemplateTypes.d.ts +9 -10
- package/dist/types/src/features/publicApi/types/permissionTypes.d.ts +4 -4
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +24 -24
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +8 -8
- package/package.json +1 -1
package/dist/harmony162.mjs
CHANGED
|
@@ -1,99 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var hasRequiredDebounce;
|
|
6
|
-
function requireDebounce() {
|
|
7
|
-
if (hasRequiredDebounce) return debounce_1;
|
|
8
|
-
hasRequiredDebounce = 1;
|
|
9
|
-
var isObject = requireIsObject(), now = requireNow(), toNumber = requireToNumber();
|
|
10
|
-
var FUNC_ERROR_TEXT = "Expected a function";
|
|
11
|
-
var nativeMax = Math.max, nativeMin = Math.min;
|
|
12
|
-
function debounce(func, wait, options) {
|
|
13
|
-
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
14
|
-
if (typeof func != "function") {
|
|
15
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
16
|
-
}
|
|
17
|
-
wait = toNumber(wait) || 0;
|
|
18
|
-
if (isObject(options)) {
|
|
19
|
-
leading = !!options.leading;
|
|
20
|
-
maxing = "maxWait" in options;
|
|
21
|
-
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
22
|
-
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
23
|
-
}
|
|
24
|
-
function invokeFunc(time) {
|
|
25
|
-
var args = lastArgs, thisArg = lastThis;
|
|
26
|
-
lastArgs = lastThis = void 0;
|
|
27
|
-
lastInvokeTime = time;
|
|
28
|
-
result = func.apply(thisArg, args);
|
|
29
|
-
return result;
|
|
30
|
-
}
|
|
31
|
-
function leadingEdge(time) {
|
|
32
|
-
lastInvokeTime = time;
|
|
33
|
-
timerId = setTimeout(timerExpired, wait);
|
|
34
|
-
return leading ? invokeFunc(time) : result;
|
|
35
|
-
}
|
|
36
|
-
function remainingWait(time) {
|
|
37
|
-
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
|
38
|
-
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
39
|
-
}
|
|
40
|
-
function shouldInvoke(time) {
|
|
41
|
-
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
|
42
|
-
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
43
|
-
}
|
|
44
|
-
function timerExpired() {
|
|
45
|
-
var time = now();
|
|
46
|
-
if (shouldInvoke(time)) {
|
|
47
|
-
return trailingEdge(time);
|
|
48
|
-
}
|
|
49
|
-
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
50
|
-
}
|
|
51
|
-
function trailingEdge(time) {
|
|
52
|
-
timerId = void 0;
|
|
53
|
-
if (trailing && lastArgs) {
|
|
54
|
-
return invokeFunc(time);
|
|
55
|
-
}
|
|
56
|
-
lastArgs = lastThis = void 0;
|
|
57
|
-
return result;
|
|
58
|
-
}
|
|
59
|
-
function cancel() {
|
|
60
|
-
if (timerId !== void 0) {
|
|
61
|
-
clearTimeout(timerId);
|
|
62
|
-
}
|
|
63
|
-
lastInvokeTime = 0;
|
|
64
|
-
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
65
|
-
}
|
|
66
|
-
function flush() {
|
|
67
|
-
return timerId === void 0 ? result : trailingEdge(now());
|
|
68
|
-
}
|
|
69
|
-
function debounced() {
|
|
70
|
-
var time = now(), isInvoking = shouldInvoke(time);
|
|
71
|
-
lastArgs = arguments;
|
|
72
|
-
lastThis = this;
|
|
73
|
-
lastCallTime = time;
|
|
74
|
-
if (isInvoking) {
|
|
75
|
-
if (timerId === void 0) {
|
|
76
|
-
return leadingEdge(lastCallTime);
|
|
77
|
-
}
|
|
78
|
-
if (maxing) {
|
|
79
|
-
clearTimeout(timerId);
|
|
80
|
-
timerId = setTimeout(timerExpired, wait);
|
|
81
|
-
return invokeFunc(lastCallTime);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
if (timerId === void 0) {
|
|
85
|
-
timerId = setTimeout(timerExpired, wait);
|
|
86
|
-
}
|
|
87
|
-
return result;
|
|
88
|
-
}
|
|
89
|
-
debounced.cancel = cancel;
|
|
90
|
-
debounced.flush = flush;
|
|
91
|
-
return debounced;
|
|
92
|
-
}
|
|
93
|
-
debounce_1 = debounce;
|
|
94
|
-
return debounce_1;
|
|
95
|
-
}
|
|
1
|
+
const teamsContainer = "_teamsContainer_1ncrr_5";
|
|
2
|
+
const styles = {
|
|
3
|
+
teamsContainer
|
|
4
|
+
};
|
|
96
5
|
export {
|
|
97
|
-
|
|
6
|
+
styles as default,
|
|
7
|
+
teamsContainer
|
|
98
8
|
};
|
|
99
9
|
//# sourceMappingURL=harmony162.mjs.map
|
package/dist/harmony162.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony162.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"harmony162.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony163.cjs
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
exports.__require = requireIsObject;
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const container = "_container_1u995_1";
|
|
4
|
+
const planCta = "_planCta_1u995_15";
|
|
5
|
+
const upgradeIconWrapper = "_upgradeIconWrapper_1u995_19";
|
|
6
|
+
const styles = {
|
|
7
|
+
container,
|
|
8
|
+
planCta,
|
|
9
|
+
upgradeIconWrapper
|
|
10
|
+
};
|
|
11
|
+
exports.container = container;
|
|
12
|
+
exports.default = styles;
|
|
13
|
+
exports.planCta = planCta;
|
|
14
|
+
exports.upgradeIconWrapper = upgradeIconWrapper;
|
|
16
15
|
//# sourceMappingURL=harmony163.cjs.map
|
package/dist/harmony163.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony163.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"harmony163.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/harmony163.mjs
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
isObject_1 = isObject;
|
|
11
|
-
return isObject_1;
|
|
12
|
-
}
|
|
1
|
+
const container = "_container_1u995_1";
|
|
2
|
+
const planCta = "_planCta_1u995_15";
|
|
3
|
+
const upgradeIconWrapper = "_upgradeIconWrapper_1u995_19";
|
|
4
|
+
const styles = {
|
|
5
|
+
container,
|
|
6
|
+
planCta,
|
|
7
|
+
upgradeIconWrapper
|
|
8
|
+
};
|
|
13
9
|
export {
|
|
14
|
-
|
|
10
|
+
container,
|
|
11
|
+
styles as default,
|
|
12
|
+
planCta,
|
|
13
|
+
upgradeIconWrapper
|
|
15
14
|
};
|
|
16
15
|
//# sourceMappingURL=harmony163.mjs.map
|
package/dist/harmony163.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony163.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"harmony163.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony164.cjs
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var root = _root.__require();
|
|
10
|
-
var now = function() {
|
|
11
|
-
return root.Date.now();
|
|
12
|
-
};
|
|
13
|
-
now_1 = now;
|
|
14
|
-
return now_1;
|
|
15
|
-
}
|
|
16
|
-
exports.__require = requireNow;
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const iconContainer = "_iconContainer_nz34m_1";
|
|
4
|
+
const styles = {
|
|
5
|
+
iconContainer
|
|
6
|
+
};
|
|
7
|
+
exports.default = styles;
|
|
8
|
+
exports.iconContainer = iconContainer;
|
|
17
9
|
//# sourceMappingURL=harmony164.cjs.map
|
package/dist/harmony164.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony164.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"harmony164.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony164.mjs
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (hasRequiredNow) return now_1;
|
|
6
|
-
hasRequiredNow = 1;
|
|
7
|
-
var root = require_root();
|
|
8
|
-
var now = function() {
|
|
9
|
-
return root.Date.now();
|
|
10
|
-
};
|
|
11
|
-
now_1 = now;
|
|
12
|
-
return now_1;
|
|
13
|
-
}
|
|
1
|
+
const iconContainer = "_iconContainer_nz34m_1";
|
|
2
|
+
const styles = {
|
|
3
|
+
iconContainer
|
|
4
|
+
};
|
|
14
5
|
export {
|
|
15
|
-
|
|
6
|
+
styles as default,
|
|
7
|
+
iconContainer
|
|
16
8
|
};
|
|
17
9
|
//# sourceMappingURL=harmony164.mjs.map
|
package/dist/harmony164.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony164.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"harmony164.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony165.cjs
CHANGED
|
@@ -1,39 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
14
|
-
var reIsBinary = /^0b[01]+$/i;
|
|
15
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
|
16
|
-
var freeParseInt = parseInt;
|
|
17
|
-
function toNumber(value) {
|
|
18
|
-
if (typeof value == "number") {
|
|
19
|
-
return value;
|
|
20
|
-
}
|
|
21
|
-
if (isSymbol$1(value)) {
|
|
22
|
-
return NAN;
|
|
23
|
-
}
|
|
24
|
-
if (isObject$1(value)) {
|
|
25
|
-
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
26
|
-
value = isObject$1(other) ? other + "" : other;
|
|
27
|
-
}
|
|
28
|
-
if (typeof value != "string") {
|
|
29
|
-
return value === 0 ? value : +value;
|
|
30
|
-
}
|
|
31
|
-
value = baseTrim(value);
|
|
32
|
-
var isBinary = reIsBinary.test(value);
|
|
33
|
-
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
34
|
-
}
|
|
35
|
-
toNumber_1 = toNumber;
|
|
36
|
-
return toNumber_1;
|
|
37
|
-
}
|
|
38
|
-
exports.__require = requireToNumber;
|
|
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;
|
|
39
13
|
//# sourceMappingURL=harmony165.cjs.map
|
package/dist/harmony165.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony165.cjs","sources":["../
|
|
1
|
+
{"version":3,"file":"harmony165.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/harmony165.mjs
CHANGED
|
@@ -1,39 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var baseTrim = require_baseTrim(), isObject = requireIsObject(), isSymbol = requireIsSymbol();
|
|
10
|
-
var NAN = 0 / 0;
|
|
11
|
-
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
12
|
-
var reIsBinary = /^0b[01]+$/i;
|
|
13
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
|
14
|
-
var freeParseInt = parseInt;
|
|
15
|
-
function toNumber(value) {
|
|
16
|
-
if (typeof value == "number") {
|
|
17
|
-
return value;
|
|
18
|
-
}
|
|
19
|
-
if (isSymbol(value)) {
|
|
20
|
-
return NAN;
|
|
21
|
-
}
|
|
22
|
-
if (isObject(value)) {
|
|
23
|
-
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
24
|
-
value = isObject(other) ? other + "" : other;
|
|
25
|
-
}
|
|
26
|
-
if (typeof value != "string") {
|
|
27
|
-
return value === 0 ? value : +value;
|
|
28
|
-
}
|
|
29
|
-
value = baseTrim(value);
|
|
30
|
-
var isBinary = reIsBinary.test(value);
|
|
31
|
-
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
32
|
-
}
|
|
33
|
-
toNumber_1 = toNumber;
|
|
34
|
-
return toNumber_1;
|
|
35
|
-
}
|
|
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
|
+
};
|
|
36
9
|
export {
|
|
37
|
-
|
|
10
|
+
hasAdminRight,
|
|
11
|
+
hasAnyAdminRight
|
|
38
12
|
};
|
|
39
13
|
//# sourceMappingURL=harmony165.mjs.map
|
package/dist/harmony165.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony165.mjs","sources":["../
|
|
1
|
+
{"version":3,"file":"harmony165.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/harmony166.cjs
CHANGED
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
|
|
10
|
-
var debounce$1 = debounce.__require(), isObject$1 = isObject.__require();
|
|
11
|
-
var FUNC_ERROR_TEXT = "Expected a function";
|
|
12
|
-
function throttle(func, wait, options) {
|
|
13
|
-
var leading = true, trailing = true;
|
|
14
|
-
if (typeof func != "function") {
|
|
15
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
16
|
-
}
|
|
17
|
-
if (isObject$1(options)) {
|
|
18
|
-
leading = "leading" in options ? !!options.leading : leading;
|
|
19
|
-
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
20
|
-
}
|
|
21
|
-
return debounce$1(func, wait, {
|
|
22
|
-
"leading": leading,
|
|
23
|
-
"maxWait": wait,
|
|
24
|
-
"trailing": trailing
|
|
25
|
-
});
|
|
3
|
+
const assertIsNever = require("./harmony174.cjs");
|
|
4
|
+
const isCategoryProjectTypeMatch = (matcher) => "marketing" in matcher && typeof matcher.marketing === "function" && "classic" in matcher && typeof matcher.classic === "function";
|
|
5
|
+
const isPartialProjectTypeMatch = (matcher) => "otherwise" in matcher && typeof matcher.otherwise === "function";
|
|
6
|
+
const isFullProjectTypeMatch = (matcher) => !isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher);
|
|
7
|
+
const callMatchFunction = (matcher, category, projectType) => {
|
|
8
|
+
if (isFullProjectTypeMatch(matcher)) {
|
|
9
|
+
return matcher[projectType]();
|
|
26
10
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
11
|
+
if (isPartialProjectTypeMatch(matcher)) {
|
|
12
|
+
return (matcher[projectType] || matcher.otherwise)();
|
|
13
|
+
}
|
|
14
|
+
if (isCategoryProjectTypeMatch(matcher)) {
|
|
15
|
+
return matcher[category]();
|
|
16
|
+
}
|
|
17
|
+
return false;
|
|
18
|
+
};
|
|
19
|
+
const canPerformActionByProjectType = (projectType, match) => {
|
|
20
|
+
switch (projectType) {
|
|
21
|
+
case void 0:
|
|
22
|
+
return false;
|
|
23
|
+
case "localization_files":
|
|
24
|
+
case "paged_documents":
|
|
25
|
+
case "content_integration":
|
|
26
|
+
return callMatchFunction(match, "classic", projectType);
|
|
27
|
+
case "marketing":
|
|
28
|
+
case "marketing_integrations":
|
|
29
|
+
return callMatchFunction(match, "marketing", projectType);
|
|
30
|
+
default:
|
|
31
|
+
return assertIsNever.assertIsNever(projectType);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.canPerformActionByProjectType = canPerformActionByProjectType;
|
|
31
35
|
//# sourceMappingURL=harmony166.cjs.map
|
package/dist/harmony166.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony166.cjs","sources":["../
|
|
1
|
+
{"version":3,"file":"harmony166.cjs","sources":["../src/features/permissions/utils/canPerformActionByProjectType.ts"],"sourcesContent":["import { assertIsNever } from '@utils/types/assertIsNever'\nimport type { ProjectType } from '../types'\n\ntype FullProjectTypeMatch = { [K in ProjectType]: () => boolean }\ntype PartialProjectTypeMatch = { [K in ProjectType]?: () => boolean } & { otherwise: () => boolean }\ntype CategoryProjectTypeMatch = { classic: () => boolean; marketing: () => boolean }\n\ntype ProjectTypeMatch = FullProjectTypeMatch | PartialProjectTypeMatch | CategoryProjectTypeMatch\n\nconst isCategoryProjectTypeMatch = (\n\tmatcher: ProjectTypeMatch,\n): matcher is CategoryProjectTypeMatch =>\n\t'marketing' in matcher &&\n\ttypeof matcher.marketing === 'function' &&\n\t'classic' in matcher &&\n\ttypeof matcher.classic === 'function'\n\nconst isPartialProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is PartialProjectTypeMatch =>\n\t'otherwise' in matcher && typeof matcher.otherwise === 'function'\n\nconst isFullProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is FullProjectTypeMatch =>\n\t!isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher)\n\nconst callMatchFunction = (\n\tmatcher: ProjectTypeMatch,\n\tcategory: 'classic' | 'marketing',\n\tprojectType: ProjectType,\n): boolean => {\n\tif (isFullProjectTypeMatch(matcher)) {\n\t\treturn matcher[projectType]()\n\t}\n\n\tif (isPartialProjectTypeMatch(matcher)) {\n\t\treturn (matcher[projectType] || matcher.otherwise)()\n\t}\n\n\tif (isCategoryProjectTypeMatch(matcher)) {\n\t\treturn matcher[category]()\n\t}\n\n\treturn false\n}\n\nexport const canPerformActionByProjectType = (\n\tprojectType: ProjectType | undefined,\n\tmatch: ProjectTypeMatch,\n) => {\n\tswitch (projectType) {\n\t\tcase undefined:\n\t\t\treturn false\n\n\t\tcase 'localization_files':\n\t\tcase 'paged_documents':\n\t\tcase 'content_integration':\n\t\t\treturn callMatchFunction(match, 'classic', projectType)\n\n\t\tcase 'marketing':\n\t\tcase 'marketing_integrations':\n\t\t\treturn callMatchFunction(match, 'marketing', projectType)\n\n\t\tdefault:\n\t\t\treturn assertIsNever(projectType)\n\t}\n}\n"],"names":["assertIsNever"],"mappings":";;;AASA,MAAM,6BAA6B,CAClC,YAEA,eAAe,WACf,OAAO,QAAQ,cAAc,cAC7B,aAAa,WACb,OAAO,QAAQ,YAAY;AAE5B,MAAM,4BAA4B,CAAC,YAClC,eAAe,WAAW,OAAO,QAAQ,cAAc;AAExD,MAAM,yBAAyB,CAAC,YAC/B,CAAC,2BAA2B,OAAO,KAAK,CAAC,0BAA0B,OAAO;AAE3E,MAAM,oBAAoB,CACzB,SACA,UACA,gBACa;AACT,MAAA,uBAAuB,OAAO,GAAG;AAC7B,WAAA,QAAQ,WAAW,EAAE;AAAA,EAAA;AAGzB,MAAA,0BAA0B,OAAO,GAAG;AACvC,YAAQ,QAAQ,WAAW,KAAK,QAAQ,WAAW;AAAA,EAAA;AAGhD,MAAA,2BAA2B,OAAO,GAAG;AACjC,WAAA,QAAQ,QAAQ,EAAE;AAAA,EAAA;AAGnB,SAAA;AACR;AAEa,MAAA,gCAAgC,CAC5C,aACA,UACI;AACJ,UAAQ,aAAa;AAAA,IACpB,KAAK;AACG,aAAA;AAAA,IAER,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,WAAW,WAAW;AAAA,IAEvD,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,aAAa,WAAW;AAAA,IAEzD;AACC,aAAOA,cAAAA,cAAc,WAAW;AAAA,EAAA;AAEnC;;"}
|
package/dist/harmony166.mjs
CHANGED
|
@@ -1,31 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
var debounce = requireDebounce(), isObject = requireIsObject();
|
|
9
|
-
var FUNC_ERROR_TEXT = "Expected a function";
|
|
10
|
-
function throttle(func, wait, options) {
|
|
11
|
-
var leading = true, trailing = true;
|
|
12
|
-
if (typeof func != "function") {
|
|
13
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
14
|
-
}
|
|
15
|
-
if (isObject(options)) {
|
|
16
|
-
leading = "leading" in options ? !!options.leading : leading;
|
|
17
|
-
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
18
|
-
}
|
|
19
|
-
return debounce(func, wait, {
|
|
20
|
-
"leading": leading,
|
|
21
|
-
"maxWait": wait,
|
|
22
|
-
"trailing": trailing
|
|
23
|
-
});
|
|
1
|
+
import { assertIsNever } from "./harmony174.mjs";
|
|
2
|
+
const isCategoryProjectTypeMatch = (matcher) => "marketing" in matcher && typeof matcher.marketing === "function" && "classic" in matcher && typeof matcher.classic === "function";
|
|
3
|
+
const isPartialProjectTypeMatch = (matcher) => "otherwise" in matcher && typeof matcher.otherwise === "function";
|
|
4
|
+
const isFullProjectTypeMatch = (matcher) => !isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher);
|
|
5
|
+
const callMatchFunction = (matcher, category, projectType) => {
|
|
6
|
+
if (isFullProjectTypeMatch(matcher)) {
|
|
7
|
+
return matcher[projectType]();
|
|
24
8
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
9
|
+
if (isPartialProjectTypeMatch(matcher)) {
|
|
10
|
+
return (matcher[projectType] || matcher.otherwise)();
|
|
11
|
+
}
|
|
12
|
+
if (isCategoryProjectTypeMatch(matcher)) {
|
|
13
|
+
return matcher[category]();
|
|
14
|
+
}
|
|
15
|
+
return false;
|
|
16
|
+
};
|
|
17
|
+
const canPerformActionByProjectType = (projectType, match) => {
|
|
18
|
+
switch (projectType) {
|
|
19
|
+
case void 0:
|
|
20
|
+
return false;
|
|
21
|
+
case "localization_files":
|
|
22
|
+
case "paged_documents":
|
|
23
|
+
case "content_integration":
|
|
24
|
+
return callMatchFunction(match, "classic", projectType);
|
|
25
|
+
case "marketing":
|
|
26
|
+
case "marketing_integrations":
|
|
27
|
+
return callMatchFunction(match, "marketing", projectType);
|
|
28
|
+
default:
|
|
29
|
+
return assertIsNever(projectType);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
28
32
|
export {
|
|
29
|
-
|
|
33
|
+
canPerformActionByProjectType
|
|
30
34
|
};
|
|
31
35
|
//# sourceMappingURL=harmony166.mjs.map
|
package/dist/harmony166.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony166.mjs","sources":["../
|
|
1
|
+
{"version":3,"file":"harmony166.mjs","sources":["../src/features/permissions/utils/canPerformActionByProjectType.ts"],"sourcesContent":["import { assertIsNever } from '@utils/types/assertIsNever'\nimport type { ProjectType } from '../types'\n\ntype FullProjectTypeMatch = { [K in ProjectType]: () => boolean }\ntype PartialProjectTypeMatch = { [K in ProjectType]?: () => boolean } & { otherwise: () => boolean }\ntype CategoryProjectTypeMatch = { classic: () => boolean; marketing: () => boolean }\n\ntype ProjectTypeMatch = FullProjectTypeMatch | PartialProjectTypeMatch | CategoryProjectTypeMatch\n\nconst isCategoryProjectTypeMatch = (\n\tmatcher: ProjectTypeMatch,\n): matcher is CategoryProjectTypeMatch =>\n\t'marketing' in matcher &&\n\ttypeof matcher.marketing === 'function' &&\n\t'classic' in matcher &&\n\ttypeof matcher.classic === 'function'\n\nconst isPartialProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is PartialProjectTypeMatch =>\n\t'otherwise' in matcher && typeof matcher.otherwise === 'function'\n\nconst isFullProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is FullProjectTypeMatch =>\n\t!isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher)\n\nconst callMatchFunction = (\n\tmatcher: ProjectTypeMatch,\n\tcategory: 'classic' | 'marketing',\n\tprojectType: ProjectType,\n): boolean => {\n\tif (isFullProjectTypeMatch(matcher)) {\n\t\treturn matcher[projectType]()\n\t}\n\n\tif (isPartialProjectTypeMatch(matcher)) {\n\t\treturn (matcher[projectType] || matcher.otherwise)()\n\t}\n\n\tif (isCategoryProjectTypeMatch(matcher)) {\n\t\treturn matcher[category]()\n\t}\n\n\treturn false\n}\n\nexport const canPerformActionByProjectType = (\n\tprojectType: ProjectType | undefined,\n\tmatch: ProjectTypeMatch,\n) => {\n\tswitch (projectType) {\n\t\tcase undefined:\n\t\t\treturn false\n\n\t\tcase 'localization_files':\n\t\tcase 'paged_documents':\n\t\tcase 'content_integration':\n\t\t\treturn callMatchFunction(match, 'classic', projectType)\n\n\t\tcase 'marketing':\n\t\tcase 'marketing_integrations':\n\t\t\treturn callMatchFunction(match, 'marketing', projectType)\n\n\t\tdefault:\n\t\t\treturn assertIsNever(projectType)\n\t}\n}\n"],"names":[],"mappings":";AASA,MAAM,6BAA6B,CAClC,YAEA,eAAe,WACf,OAAO,QAAQ,cAAc,cAC7B,aAAa,WACb,OAAO,QAAQ,YAAY;AAE5B,MAAM,4BAA4B,CAAC,YAClC,eAAe,WAAW,OAAO,QAAQ,cAAc;AAExD,MAAM,yBAAyB,CAAC,YAC/B,CAAC,2BAA2B,OAAO,KAAK,CAAC,0BAA0B,OAAO;AAE3E,MAAM,oBAAoB,CACzB,SACA,UACA,gBACa;AACT,MAAA,uBAAuB,OAAO,GAAG;AAC7B,WAAA,QAAQ,WAAW,EAAE;AAAA,EAAA;AAGzB,MAAA,0BAA0B,OAAO,GAAG;AACvC,YAAQ,QAAQ,WAAW,KAAK,QAAQ,WAAW;AAAA,EAAA;AAGhD,MAAA,2BAA2B,OAAO,GAAG;AACjC,WAAA,QAAQ,QAAQ,EAAE;AAAA,EAAA;AAGnB,SAAA;AACR;AAEa,MAAA,gCAAgC,CAC5C,aACA,UACI;AACJ,UAAQ,aAAa;AAAA,IACpB,KAAK;AACG,aAAA;AAAA,IAER,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,WAAW,WAAW;AAAA,IAEvD,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,aAAa,WAAW;AAAA,IAEzD;AACC,aAAO,cAAc,WAAW;AAAA,EAAA;AAEnC;"}
|
package/dist/harmony167.cjs
CHANGED
package/dist/harmony167.mjs
CHANGED
package/dist/harmony168.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const _trimmedEndIndex = require("./
|
|
3
|
+
const _trimmedEndIndex = require("./harmony171.cjs");
|
|
4
4
|
var _baseTrim;
|
|
5
5
|
var hasRequired_baseTrim;
|
|
6
6
|
function require_baseTrim() {
|
package/dist/harmony168.mjs
CHANGED