@lokalise/harmony 1.38.0 → 1.39.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 +5 -0
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +8 -3
- package/dist/harmony104.cjs +1 -1
- package/dist/harmony104.mjs +1 -1
- package/dist/harmony112.cjs +14 -21
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +13 -20
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +18 -6
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +18 -6
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +21 -132
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +20 -131
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +6 -12
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +5 -11
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +132 -5
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +132 -5
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +12 -40
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +11 -39
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +4 -59
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +5 -60
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +39 -6
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +39 -6
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +59 -13
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +59 -13
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +7 -18
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +7 -18
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +99 -6
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +81 -5
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony125.cjs +6 -99
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +5 -81
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +6 -63
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +5 -62
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +6 -89
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +5 -88
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +63 -19
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +62 -18
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +89 -6
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +88 -5
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +18 -5
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +18 -5
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony132.cjs +96 -7
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +96 -7
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +13 -57
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +13 -57
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +14 -60
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +14 -60
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +37 -19
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +36 -18
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +19 -87
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +19 -87
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +7 -13
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +7 -13
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +57 -14
- package/dist/harmony138.cjs.map +1 -1
- package/dist/harmony138.mjs +57 -14
- package/dist/harmony138.mjs.map +1 -1
- package/dist/harmony139.cjs +57 -33
- package/dist/harmony139.cjs.map +1 -1
- package/dist/harmony139.mjs +57 -33
- package/dist/harmony139.mjs.map +1 -1
- package/dist/harmony14.cjs +1 -1
- package/dist/harmony14.mjs +1 -1
- package/dist/harmony140.cjs +19 -29
- package/dist/harmony140.cjs.map +1 -1
- package/dist/harmony140.mjs +18 -28
- package/dist/harmony140.mjs.map +1 -1
- package/dist/harmony141.cjs +1 -1
- package/dist/harmony141.mjs +1 -1
- package/dist/harmony142.cjs +1 -1
- package/dist/harmony142.mjs +1 -1
- package/dist/harmony143.cjs +2 -2
- package/dist/harmony143.mjs +2 -2
- package/dist/harmony144.cjs +11 -46
- package/dist/harmony144.cjs.map +1 -1
- package/dist/harmony144.mjs +11 -46
- package/dist/harmony144.mjs.map +1 -1
- package/dist/harmony145.cjs +17 -13
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +16 -12
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +20 -10
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +20 -10
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +10 -14
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +10 -14
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +5 -20
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +5 -20
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +11 -11
- package/dist/harmony149.cjs.map +1 -1
- package/dist/harmony149.mjs +11 -11
- package/dist/harmony149.mjs.map +1 -1
- package/dist/harmony150.cjs +31 -5
- package/dist/harmony150.cjs.map +1 -1
- package/dist/harmony150.mjs +31 -5
- package/dist/harmony150.mjs.map +1 -1
- package/dist/harmony151.cjs +13 -11
- package/dist/harmony151.cjs.map +1 -1
- package/dist/harmony151.mjs +13 -11
- package/dist/harmony151.mjs.map +1 -1
- package/dist/harmony152.cjs +45 -31
- package/dist/harmony152.cjs.map +1 -1
- package/dist/harmony152.mjs +45 -31
- package/dist/harmony152.mjs.map +1 -1
- package/dist/harmony153.cjs +13 -15
- package/dist/harmony153.cjs.map +1 -1
- package/dist/harmony153.mjs +12 -14
- package/dist/harmony153.mjs.map +1 -1
- package/dist/harmony17.cjs +1 -1
- package/dist/harmony17.mjs +1 -1
- package/dist/harmony25.cjs +1 -1
- package/dist/harmony25.mjs +1 -1
- package/dist/harmony26.cjs +1 -1
- package/dist/harmony26.mjs +1 -1
- package/dist/harmony35.cjs +10 -0
- package/dist/harmony35.cjs.map +1 -1
- package/dist/harmony35.mjs +12 -2
- package/dist/harmony35.mjs.map +1 -1
- package/dist/harmony64.cjs +19 -0
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +19 -0
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony70.cjs +21 -0
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs +22 -1
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony74.cjs +1 -1
- package/dist/harmony74.mjs +1 -1
- package/dist/harmony84.cjs +6 -6
- package/dist/harmony84.mjs +6 -6
- package/dist/harmony98.cjs +1 -1
- package/dist/harmony98.mjs +1 -1
- package/dist/harmony99.cjs +1 -1
- package/dist/harmony99.mjs +1 -1
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedProjectContributor.d.ts +1 -1
- package/dist/types/src/features/navigation/hooks/useNavigationQueries.d.ts +6 -6
- package/dist/types/src/features/publicApi/contributors.d.ts +16 -16
- package/dist/types/src/features/publicApi/hooks/useAddContributorsMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useCreateProjectMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListContributorsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveUserPermissions.d.ts +23 -0
- package/dist/types/src/features/publicApi/hooks/useUpdateContributorMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useUpdateProjectMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/projects.d.ts +10 -10
- package/dist/types/src/features/publicApi/teamUsers.d.ts +111 -0
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +18 -18
- package/dist/types/src/features/publicApi/types/permissionTypes.d.ts +1 -0
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +6 -6
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +66 -0
- package/package.json +1 -1
package/dist/harmony125.cjs
CHANGED
@@ -1,102 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
function _interopNamespaceDefault(e) {
|
7
|
-
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
8
|
-
if (e) {
|
9
|
-
for (const k in e) {
|
10
|
-
if (k !== "default") {
|
11
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
12
|
-
Object.defineProperty(n, k, d.get ? d : {
|
13
|
-
enumerable: true,
|
14
|
-
get: () => e[k]
|
15
|
-
});
|
16
|
-
}
|
17
|
-
}
|
18
|
-
}
|
19
|
-
n.default = e;
|
20
|
-
return Object.freeze(n);
|
21
|
-
}
|
22
|
-
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
23
|
-
const patchResizeCallback = (resizeCallback, refreshMode, refreshRate, refreshOptions) => {
|
24
|
-
switch (refreshMode) {
|
25
|
-
case "debounce":
|
26
|
-
return debounce.default(resizeCallback, refreshRate, refreshOptions);
|
27
|
-
case "throttle":
|
28
|
-
return throttle.default(resizeCallback, refreshRate, refreshOptions);
|
29
|
-
default:
|
30
|
-
return resizeCallback;
|
31
|
-
}
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const iconContainer = "_iconContainer_nz34m_1";
|
4
|
+
const styles = {
|
5
|
+
iconContainer
|
32
6
|
};
|
33
|
-
|
34
|
-
|
35
|
-
(callback) => {
|
36
|
-
const callbackRef = React__namespace.useRef(callback);
|
37
|
-
React__namespace.useEffect(() => {
|
38
|
-
callbackRef.current = callback;
|
39
|
-
});
|
40
|
-
return React__namespace.useMemo(() => (...args) => {
|
41
|
-
var _a;
|
42
|
-
return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef, ...args);
|
43
|
-
}, []);
|
44
|
-
}
|
45
|
-
);
|
46
|
-
const useRefProxy = (
|
47
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
48
|
-
(targetRef) => {
|
49
|
-
const [refElement, setRefElement] = React__namespace.useState((targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) || null);
|
50
|
-
if (targetRef) {
|
51
|
-
setTimeout(() => {
|
52
|
-
if (targetRef.current !== refElement) {
|
53
|
-
setRefElement(targetRef.current);
|
54
|
-
}
|
55
|
-
}, 0);
|
56
|
-
}
|
57
|
-
const refProxy = React__namespace.useMemo(() => new Proxy((node) => {
|
58
|
-
if (node !== refElement) {
|
59
|
-
setRefElement(node);
|
60
|
-
}
|
61
|
-
}, {
|
62
|
-
get(target, prop) {
|
63
|
-
if (prop === "current") {
|
64
|
-
return refElement;
|
65
|
-
}
|
66
|
-
return target[prop];
|
67
|
-
},
|
68
|
-
set(target, prop, value) {
|
69
|
-
if (prop === "current") {
|
70
|
-
setRefElement(value);
|
71
|
-
} else {
|
72
|
-
target[prop] = value;
|
73
|
-
}
|
74
|
-
return true;
|
75
|
-
}
|
76
|
-
}), [refElement]);
|
77
|
-
return { refProxy, refElement, setRefElement };
|
78
|
-
}
|
79
|
-
);
|
80
|
-
const getDimensions = (entry, box) => {
|
81
|
-
if (box === "border-box") {
|
82
|
-
return {
|
83
|
-
width: entry.borderBoxSize[0].inlineSize,
|
84
|
-
height: entry.borderBoxSize[0].blockSize
|
85
|
-
};
|
86
|
-
}
|
87
|
-
if (box === "content-box") {
|
88
|
-
return {
|
89
|
-
width: entry.contentBoxSize[0].inlineSize,
|
90
|
-
height: entry.contentBoxSize[0].blockSize
|
91
|
-
};
|
92
|
-
}
|
93
|
-
return {
|
94
|
-
width: entry.contentRect.width,
|
95
|
-
height: entry.contentRect.height
|
96
|
-
};
|
97
|
-
};
|
98
|
-
exports.getDimensions = getDimensions;
|
99
|
-
exports.patchResizeCallback = patchResizeCallback;
|
100
|
-
exports.useCallbackRef = useCallbackRef;
|
101
|
-
exports.useRefProxy = useRefProxy;
|
7
|
+
exports.default = styles;
|
8
|
+
exports.iconContainer = iconContainer;
|
102
9
|
//# sourceMappingURL=harmony125.cjs.map
|
package/dist/harmony125.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony125.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony125.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony125.mjs
CHANGED
@@ -1,85 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const patchResizeCallback = (resizeCallback, refreshMode, refreshRate, refreshOptions) => {
|
5
|
-
switch (refreshMode) {
|
6
|
-
case "debounce":
|
7
|
-
return debounce(resizeCallback, refreshRate, refreshOptions);
|
8
|
-
case "throttle":
|
9
|
-
return throttle(resizeCallback, refreshRate, refreshOptions);
|
10
|
-
default:
|
11
|
-
return resizeCallback;
|
12
|
-
}
|
13
|
-
};
|
14
|
-
const useCallbackRef = (
|
15
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
16
|
-
(callback) => {
|
17
|
-
const callbackRef = React.useRef(callback);
|
18
|
-
React.useEffect(() => {
|
19
|
-
callbackRef.current = callback;
|
20
|
-
});
|
21
|
-
return React.useMemo(() => (...args) => {
|
22
|
-
var _a;
|
23
|
-
return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef, ...args);
|
24
|
-
}, []);
|
25
|
-
}
|
26
|
-
);
|
27
|
-
const useRefProxy = (
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
29
|
-
(targetRef) => {
|
30
|
-
const [refElement, setRefElement] = React.useState((targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) || null);
|
31
|
-
if (targetRef) {
|
32
|
-
setTimeout(() => {
|
33
|
-
if (targetRef.current !== refElement) {
|
34
|
-
setRefElement(targetRef.current);
|
35
|
-
}
|
36
|
-
}, 0);
|
37
|
-
}
|
38
|
-
const refProxy = React.useMemo(() => new Proxy((node) => {
|
39
|
-
if (node !== refElement) {
|
40
|
-
setRefElement(node);
|
41
|
-
}
|
42
|
-
}, {
|
43
|
-
get(target, prop) {
|
44
|
-
if (prop === "current") {
|
45
|
-
return refElement;
|
46
|
-
}
|
47
|
-
return target[prop];
|
48
|
-
},
|
49
|
-
set(target, prop, value) {
|
50
|
-
if (prop === "current") {
|
51
|
-
setRefElement(value);
|
52
|
-
} else {
|
53
|
-
target[prop] = value;
|
54
|
-
}
|
55
|
-
return true;
|
56
|
-
}
|
57
|
-
}), [refElement]);
|
58
|
-
return { refProxy, refElement, setRefElement };
|
59
|
-
}
|
60
|
-
);
|
61
|
-
const getDimensions = (entry, box) => {
|
62
|
-
if (box === "border-box") {
|
63
|
-
return {
|
64
|
-
width: entry.borderBoxSize[0].inlineSize,
|
65
|
-
height: entry.borderBoxSize[0].blockSize
|
66
|
-
};
|
67
|
-
}
|
68
|
-
if (box === "content-box") {
|
69
|
-
return {
|
70
|
-
width: entry.contentBoxSize[0].inlineSize,
|
71
|
-
height: entry.contentBoxSize[0].blockSize
|
72
|
-
};
|
73
|
-
}
|
74
|
-
return {
|
75
|
-
width: entry.contentRect.width,
|
76
|
-
height: entry.contentRect.height
|
77
|
-
};
|
1
|
+
const iconContainer = "_iconContainer_nz34m_1";
|
2
|
+
const styles = {
|
3
|
+
iconContainer
|
78
4
|
};
|
79
5
|
export {
|
80
|
-
|
81
|
-
|
82
|
-
useCallbackRef,
|
83
|
-
useRefProxy
|
6
|
+
styles as default,
|
7
|
+
iconContainer
|
84
8
|
};
|
85
9
|
//# sourceMappingURL=harmony125.mjs.map
|
package/dist/harmony125.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony125.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony125.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony126.cjs
CHANGED
@@ -1,65 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
function evaluate(value, param) {
|
9
|
-
return typeof value === "function" ? value(param) : value;
|
10
|
-
}
|
11
|
-
function getSide(placement) {
|
12
|
-
return placement.split("-")[0];
|
13
|
-
}
|
14
|
-
function getOppositeAxis(axis) {
|
15
|
-
return axis === "x" ? "y" : "x";
|
16
|
-
}
|
17
|
-
function getSideAxis(placement) {
|
18
|
-
return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
|
19
|
-
}
|
20
|
-
function expandPaddingObject(padding) {
|
21
|
-
return {
|
22
|
-
top: 0,
|
23
|
-
right: 0,
|
24
|
-
bottom: 0,
|
25
|
-
left: 0,
|
26
|
-
...padding
|
27
|
-
};
|
28
|
-
}
|
29
|
-
function getPaddingObject(padding) {
|
30
|
-
return typeof padding !== "number" ? expandPaddingObject(padding) : {
|
31
|
-
top: padding,
|
32
|
-
right: padding,
|
33
|
-
bottom: padding,
|
34
|
-
left: padding
|
35
|
-
};
|
36
|
-
}
|
37
|
-
function rectToClientRect(rect) {
|
38
|
-
const {
|
39
|
-
x,
|
40
|
-
y,
|
41
|
-
width,
|
42
|
-
height
|
43
|
-
} = rect;
|
44
|
-
return {
|
45
|
-
width,
|
46
|
-
height,
|
47
|
-
top: y,
|
48
|
-
left: x,
|
49
|
-
right: x + width,
|
50
|
-
bottom: y + height,
|
51
|
-
x,
|
52
|
-
y
|
53
|
-
};
|
54
|
-
}
|
55
|
-
exports.clamp = clamp;
|
56
|
-
exports.evaluate = evaluate;
|
57
|
-
exports.expandPaddingObject = expandPaddingObject;
|
58
|
-
exports.getOppositeAxis = getOppositeAxis;
|
59
|
-
exports.getPaddingObject = getPaddingObject;
|
60
|
-
exports.getSide = getSide;
|
61
|
-
exports.getSideAxis = getSideAxis;
|
62
|
-
exports.max = max;
|
63
|
-
exports.min = min;
|
64
|
-
exports.rectToClientRect = rectToClientRect;
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const _commonjsHelpers = require("./harmony148.cjs");
|
4
|
+
const debounce$1 = require("./harmony132.cjs");
|
5
|
+
var debounceExports = debounce$1.__require();
|
6
|
+
const debounce = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(debounceExports);
|
7
|
+
exports.default = debounce;
|
65
8
|
//# sourceMappingURL=harmony126.cjs.map
|
package/dist/harmony126.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony126.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony126.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/harmony126.mjs
CHANGED
@@ -1,65 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
}
|
6
|
-
function evaluate(value, param) {
|
7
|
-
return typeof value === "function" ? value(param) : value;
|
8
|
-
}
|
9
|
-
function getSide(placement) {
|
10
|
-
return placement.split("-")[0];
|
11
|
-
}
|
12
|
-
function getOppositeAxis(axis) {
|
13
|
-
return axis === "x" ? "y" : "x";
|
14
|
-
}
|
15
|
-
function getSideAxis(placement) {
|
16
|
-
return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
|
17
|
-
}
|
18
|
-
function expandPaddingObject(padding) {
|
19
|
-
return {
|
20
|
-
top: 0,
|
21
|
-
right: 0,
|
22
|
-
bottom: 0,
|
23
|
-
left: 0,
|
24
|
-
...padding
|
25
|
-
};
|
26
|
-
}
|
27
|
-
function getPaddingObject(padding) {
|
28
|
-
return typeof padding !== "number" ? expandPaddingObject(padding) : {
|
29
|
-
top: padding,
|
30
|
-
right: padding,
|
31
|
-
bottom: padding,
|
32
|
-
left: padding
|
33
|
-
};
|
34
|
-
}
|
35
|
-
function rectToClientRect(rect) {
|
36
|
-
const {
|
37
|
-
x,
|
38
|
-
y,
|
39
|
-
width,
|
40
|
-
height
|
41
|
-
} = rect;
|
42
|
-
return {
|
43
|
-
width,
|
44
|
-
height,
|
45
|
-
top: y,
|
46
|
-
left: x,
|
47
|
-
right: x + width,
|
48
|
-
bottom: y + height,
|
49
|
-
x,
|
50
|
-
y
|
51
|
-
};
|
52
|
-
}
|
1
|
+
import { getDefaultExportFromCjs } from "./harmony148.mjs";
|
2
|
+
import { __require as requireDebounce } from "./harmony132.mjs";
|
3
|
+
var debounceExports = requireDebounce();
|
4
|
+
const debounce = /* @__PURE__ */ getDefaultExportFromCjs(debounceExports);
|
53
5
|
export {
|
54
|
-
|
55
|
-
evaluate,
|
56
|
-
expandPaddingObject,
|
57
|
-
getOppositeAxis,
|
58
|
-
getPaddingObject,
|
59
|
-
getSide,
|
60
|
-
getSideAxis,
|
61
|
-
max,
|
62
|
-
min,
|
63
|
-
rectToClientRect
|
6
|
+
debounce as default
|
64
7
|
};
|
65
8
|
//# sourceMappingURL=harmony126.mjs.map
|
package/dist/harmony126.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony126.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony126.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony127.cjs
CHANGED
@@ -1,91 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
const
|
7
|
-
|
8
|
-
const dateFns = require("date-fns");
|
9
|
-
const index = require("./harmony132.cjs");
|
10
|
-
const TaskLanguage = require("./harmony133.cjs");
|
11
|
-
const TasksContext = require("./harmony116.cjs");
|
12
|
-
const content = require("./harmony134.cjs");
|
13
|
-
const TaskOverview_module = require("./harmony135.cjs");
|
14
|
-
const TaskOverview = ({ task }) => {
|
15
|
-
const { getProjectUrl, taskTitleOnClick } = TasksContext.useTasks();
|
16
|
-
const taskLanguages = content.getTaskLanguages(task.langs);
|
17
|
-
const handleDownloadStyleGuide = (styleGuide) => {
|
18
|
-
window.open(
|
19
|
-
`/style-guide/${task.team_id}/download/${styleGuide.id}/link`,
|
20
|
-
"_blank",
|
21
|
-
"noopener,noreferrer"
|
22
|
-
);
|
23
|
-
};
|
24
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: TaskOverview_module.default.taskContainer, children: [
|
25
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-row gap-1 items-center", children: [
|
26
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-row gap-1 items-start flex-wrap", children: [
|
27
|
-
/* @__PURE__ */ jsxRuntime.jsx(louis.Tag, { color: content.tagColor[task.task_type], variant: "solid", children: task.task_type.toLocaleUpperCase() }),
|
28
|
-
task.due_date && /* @__PURE__ */ jsxRuntime.jsxs(louis.Tag, { color: "#EAB308", children: [
|
29
|
-
"DUE ",
|
30
|
-
date.formatDate(dateFns.parseISO(task.due_date), "yyyy-MM-dd")
|
31
|
-
] })
|
32
|
-
] }),
|
33
|
-
task.style_guides.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-row", children: task.style_guides.length === 1 ? /* @__PURE__ */ jsxRuntime.jsx(
|
34
|
-
louis.Button,
|
35
|
-
{
|
36
|
-
size: "sm",
|
37
|
-
variant: "secondary",
|
38
|
-
onClick: () => handleDownloadStyleGuide(task.style_guides[0]),
|
39
|
-
children: "Download style guide"
|
40
|
-
}
|
41
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
42
|
-
louis.Menu,
|
43
|
-
{
|
44
|
-
menuButton: /* @__PURE__ */ jsxRuntime.jsx(louis.Button, { variant: "secondary", size: "sm", children: "Download style guide" }),
|
45
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(louis.MenuList, { children: task.style_guides.map((styleGuide) => /* @__PURE__ */ jsxRuntime.jsx(
|
46
|
-
louis.MenuItem,
|
47
|
-
{
|
48
|
-
onClick: () => handleDownloadStyleGuide(styleGuide),
|
49
|
-
children: index.splitFileName(styleGuide.name).name
|
50
|
-
},
|
51
|
-
styleGuide.id
|
52
|
-
)) })
|
53
|
-
}
|
54
|
-
) })
|
55
|
-
] }),
|
56
|
-
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: TaskOverview_module.default.taskTitle, children: /* @__PURE__ */ jsxRuntime.jsx(
|
57
|
-
louis.Link,
|
58
|
-
{
|
59
|
-
href: getProjectUrl({ task, view: "multi" }),
|
60
|
-
onClick: () => {
|
61
|
-
taskTitleOnClick == null ? void 0 : taskTitleOnClick({ task });
|
62
|
-
},
|
63
|
-
children: task.title
|
64
|
-
}
|
65
|
-
) }),
|
66
|
-
task.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TaskOverview_module.default.taskDescription, children: text.convertNewLineToBreakTag(url.makeUrlClickable(task.description)) }),
|
67
|
-
/* @__PURE__ */ jsxRuntime.jsxs("table", { className: TaskOverview_module.default.languagesTable, children: [
|
68
|
-
/* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
69
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { children: "Languages" }),
|
70
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { children: "Words to do" }),
|
71
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { children: "Progress" }),
|
72
|
-
/* @__PURE__ */ jsxRuntime.jsx("th", { children: "Status" })
|
73
|
-
] }) }),
|
74
|
-
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: taskLanguages.map((language) => /* @__PURE__ */ jsxRuntime.jsx(TaskLanguage.TaskLanguage, { language, task }, language.lang_id)) })
|
75
|
-
] }),
|
76
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-testid": "sidebar-task-overview-metadata", className: TaskOverview_module.default.metadata, children: [
|
77
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
78
|
-
"Source: ",
|
79
|
-
task.source_lang_name
|
80
|
-
] }),
|
81
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: task.created_by_fullname }),
|
82
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
83
|
-
"In ",
|
84
|
-
task.project_name,
|
85
|
-
task.master_branching_enabled === "1" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TaskOverview_module.default.tag, children: task.branch_name ? task.branch_name : "master" })
|
86
|
-
] })
|
87
|
-
] })
|
88
|
-
] });
|
89
|
-
};
|
90
|
-
exports.TaskOverview = TaskOverview;
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const _commonjsHelpers = require("./harmony148.cjs");
|
4
|
+
const throttle$1 = require("./harmony136.cjs");
|
5
|
+
var throttleExports = throttle$1.__require();
|
6
|
+
const throttle = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(throttleExports);
|
7
|
+
exports.default = throttle;
|
91
8
|
//# sourceMappingURL=harmony127.cjs.map
|
package/dist/harmony127.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony127.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony127.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/harmony127.mjs
CHANGED
@@ -1,91 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
import { formatDate } from "./harmony12.mjs";
|
6
|
-
import { parseISO } from "date-fns";
|
7
|
-
import { splitFileName } from "./harmony132.mjs";
|
8
|
-
import { TaskLanguage } from "./harmony133.mjs";
|
9
|
-
import { useTasks } from "./harmony116.mjs";
|
10
|
-
import { getTaskLanguages, tagColor } from "./harmony134.mjs";
|
11
|
-
import styles from "./harmony135.mjs";
|
12
|
-
const TaskOverview = ({ task }) => {
|
13
|
-
const { getProjectUrl, taskTitleOnClick } = useTasks();
|
14
|
-
const taskLanguages = getTaskLanguages(task.langs);
|
15
|
-
const handleDownloadStyleGuide = (styleGuide) => {
|
16
|
-
window.open(
|
17
|
-
`/style-guide/${task.team_id}/download/${styleGuide.id}/link`,
|
18
|
-
"_blank",
|
19
|
-
"noopener,noreferrer"
|
20
|
-
);
|
21
|
-
};
|
22
|
-
return /* @__PURE__ */ jsxs("div", { className: styles.taskContainer, children: [
|
23
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-row gap-1 items-center", children: [
|
24
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-row gap-1 items-start flex-wrap", children: [
|
25
|
-
/* @__PURE__ */ jsx(Tag, { color: tagColor[task.task_type], variant: "solid", children: task.task_type.toLocaleUpperCase() }),
|
26
|
-
task.due_date && /* @__PURE__ */ jsxs(Tag, { color: "#EAB308", children: [
|
27
|
-
"DUE ",
|
28
|
-
formatDate(parseISO(task.due_date), "yyyy-MM-dd")
|
29
|
-
] })
|
30
|
-
] }),
|
31
|
-
task.style_guides.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex-row", children: task.style_guides.length === 1 ? /* @__PURE__ */ jsx(
|
32
|
-
Button,
|
33
|
-
{
|
34
|
-
size: "sm",
|
35
|
-
variant: "secondary",
|
36
|
-
onClick: () => handleDownloadStyleGuide(task.style_guides[0]),
|
37
|
-
children: "Download style guide"
|
38
|
-
}
|
39
|
-
) : /* @__PURE__ */ jsx(
|
40
|
-
Menu,
|
41
|
-
{
|
42
|
-
menuButton: /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "sm", children: "Download style guide" }),
|
43
|
-
children: /* @__PURE__ */ jsx(MenuList, { children: task.style_guides.map((styleGuide) => /* @__PURE__ */ jsx(
|
44
|
-
MenuItem,
|
45
|
-
{
|
46
|
-
onClick: () => handleDownloadStyleGuide(styleGuide),
|
47
|
-
children: splitFileName(styleGuide.name).name
|
48
|
-
},
|
49
|
-
styleGuide.id
|
50
|
-
)) })
|
51
|
-
}
|
52
|
-
) })
|
53
|
-
] }),
|
54
|
-
/* @__PURE__ */ jsx("h4", { className: styles.taskTitle, children: /* @__PURE__ */ jsx(
|
55
|
-
Link,
|
56
|
-
{
|
57
|
-
href: getProjectUrl({ task, view: "multi" }),
|
58
|
-
onClick: () => {
|
59
|
-
taskTitleOnClick == null ? void 0 : taskTitleOnClick({ task });
|
60
|
-
},
|
61
|
-
children: task.title
|
62
|
-
}
|
63
|
-
) }),
|
64
|
-
task.description && /* @__PURE__ */ jsx("div", { className: styles.taskDescription, children: convertNewLineToBreakTag(makeUrlClickable(task.description)) }),
|
65
|
-
/* @__PURE__ */ jsxs("table", { className: styles.languagesTable, children: [
|
66
|
-
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
67
|
-
/* @__PURE__ */ jsx("th", { children: "Languages" }),
|
68
|
-
/* @__PURE__ */ jsx("th", { children: "Words to do" }),
|
69
|
-
/* @__PURE__ */ jsx("th", { children: "Progress" }),
|
70
|
-
/* @__PURE__ */ jsx("th", { children: "Status" })
|
71
|
-
] }) }),
|
72
|
-
/* @__PURE__ */ jsx("tbody", { children: taskLanguages.map((language) => /* @__PURE__ */ jsx(TaskLanguage, { language, task }, language.lang_id)) })
|
73
|
-
] }),
|
74
|
-
/* @__PURE__ */ jsxs("div", { "data-testid": "sidebar-task-overview-metadata", className: styles.metadata, children: [
|
75
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
76
|
-
"Source: ",
|
77
|
-
task.source_lang_name
|
78
|
-
] }),
|
79
|
-
/* @__PURE__ */ jsx("span", { children: task.created_by_fullname }),
|
80
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
81
|
-
"In ",
|
82
|
-
task.project_name,
|
83
|
-
task.master_branching_enabled === "1" && /* @__PURE__ */ jsx("div", { className: styles.tag, children: task.branch_name ? task.branch_name : "master" })
|
84
|
-
] })
|
85
|
-
] })
|
86
|
-
] });
|
87
|
-
};
|
1
|
+
import { getDefaultExportFromCjs } from "./harmony148.mjs";
|
2
|
+
import { __require as requireThrottle } from "./harmony136.mjs";
|
3
|
+
var throttleExports = requireThrottle();
|
4
|
+
const throttle = /* @__PURE__ */ getDefaultExportFromCjs(throttleExports);
|
88
5
|
export {
|
89
|
-
|
6
|
+
throttle as default
|
90
7
|
};
|
91
8
|
//# sourceMappingURL=harmony127.mjs.map
|
package/dist/harmony127.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony127.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony127.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|