@lokalise/harmony 1.29.5-exp-teamSwitch.2 → 1.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/harmony.cjs +21 -20
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +25 -24
- package/dist/harmony100.cjs +1 -1
- package/dist/harmony100.mjs +1 -1
- package/dist/harmony103.cjs +2 -2
- package/dist/harmony103.mjs +2 -2
- package/dist/harmony107.cjs +1 -1
- package/dist/harmony107.mjs +1 -1
- package/dist/harmony108.cjs +1 -1
- package/dist/harmony108.mjs +1 -1
- package/dist/harmony109.cjs +95 -61
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +95 -61
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +13 -88
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +13 -88
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +15 -19
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +14 -18
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +34 -94
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +34 -94
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +26 -11
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +26 -11
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +60 -12
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +60 -12
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +88 -36
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +88 -36
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +19 -29
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +18 -28
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +13 -7
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +13 -7
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +15 -57
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +15 -57
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +15 -59
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +15 -59
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +12 -19
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +11 -18
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +15 -12
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +15 -12
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +19 -13
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +19 -13
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +10 -14
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +10 -14
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +7 -11
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +7 -11
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +56 -15
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +56 -15
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +59 -20
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +59 -20
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +19 -13
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +18 -12
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony129.cjs +1 -1
- package/dist/harmony129.mjs +1 -1
- package/dist/harmony15.cjs +1 -1
- package/dist/harmony15.mjs +1 -1
- package/dist/harmony22.cjs +2 -2
- package/dist/harmony22.mjs +2 -2
- package/dist/harmony23.cjs +1 -1
- package/dist/harmony23.mjs +1 -1
- package/dist/harmony24.cjs +1 -1
- package/dist/harmony24.mjs +1 -1
- package/dist/harmony25.cjs +1 -1
- package/dist/harmony25.mjs +1 -1
- package/dist/harmony30.cjs +11 -1
- package/dist/harmony30.cjs.map +1 -1
- package/dist/harmony30.mjs +13 -3
- package/dist/harmony30.mjs.map +1 -1
- package/dist/harmony31.cjs +0 -9
- package/dist/harmony31.cjs.map +1 -1
- package/dist/harmony31.mjs +3 -12
- package/dist/harmony31.mjs.map +1 -1
- package/dist/harmony36.cjs +6 -5
- package/dist/harmony36.cjs.map +1 -1
- package/dist/harmony36.mjs +6 -5
- package/dist/harmony36.mjs.map +1 -1
- package/dist/harmony37.cjs +6 -14
- package/dist/harmony37.cjs.map +1 -1
- package/dist/harmony37.mjs +7 -15
- package/dist/harmony37.mjs.map +1 -1
- package/dist/harmony38.cjs +15 -7
- package/dist/harmony38.cjs.map +1 -1
- package/dist/harmony38.mjs +15 -7
- package/dist/harmony38.mjs.map +1 -1
- package/dist/harmony39.cjs +7 -11
- package/dist/harmony39.cjs.map +1 -1
- package/dist/harmony39.mjs +9 -13
- package/dist/harmony39.mjs.map +1 -1
- package/dist/harmony40.cjs +8 -8
- package/dist/harmony40.cjs.map +1 -1
- package/dist/harmony40.mjs +8 -8
- package/dist/harmony40.mjs.map +1 -1
- package/dist/harmony41.cjs +14 -12
- package/dist/harmony41.cjs.map +1 -1
- package/dist/harmony41.mjs +14 -12
- package/dist/harmony41.mjs.map +1 -1
- package/dist/harmony42.cjs +8 -8
- package/dist/harmony42.cjs.map +1 -1
- package/dist/harmony42.mjs +9 -9
- package/dist/harmony42.mjs.map +1 -1
- package/dist/harmony43.cjs +9 -9
- package/dist/harmony43.cjs.map +1 -1
- package/dist/harmony43.mjs +10 -10
- package/dist/harmony43.mjs.map +1 -1
- package/dist/harmony44.cjs +12 -14
- package/dist/harmony44.cjs.map +1 -1
- package/dist/harmony44.mjs +12 -14
- package/dist/harmony44.mjs.map +1 -1
- package/dist/harmony45.cjs +10 -10
- package/dist/harmony45.cjs.map +1 -1
- package/dist/harmony45.mjs +10 -10
- package/dist/harmony45.mjs.map +1 -1
- package/dist/harmony46.cjs +8 -8
- package/dist/harmony46.cjs.map +1 -1
- package/dist/harmony46.mjs +8 -8
- package/dist/harmony46.mjs.map +1 -1
- package/dist/harmony47.cjs +7 -7
- package/dist/harmony47.cjs.map +1 -1
- package/dist/harmony47.mjs +7 -7
- package/dist/harmony47.mjs.map +1 -1
- package/dist/harmony48.cjs +14 -12
- package/dist/harmony48.cjs.map +1 -1
- package/dist/harmony48.mjs +14 -12
- package/dist/harmony48.mjs.map +1 -1
- package/dist/harmony49.cjs +12 -14
- package/dist/harmony49.cjs.map +1 -1
- package/dist/harmony49.mjs +12 -14
- package/dist/harmony49.mjs.map +1 -1
- package/dist/harmony50.cjs +8 -8
- package/dist/harmony50.cjs.map +1 -1
- package/dist/harmony50.mjs +8 -8
- package/dist/harmony50.mjs.map +1 -1
- package/dist/harmony51.cjs +9 -5
- package/dist/harmony51.cjs.map +1 -1
- package/dist/harmony51.mjs +12 -8
- package/dist/harmony51.mjs.map +1 -1
- package/dist/harmony54.cjs +3 -1
- package/dist/harmony54.cjs.map +1 -1
- package/dist/harmony54.mjs +3 -1
- package/dist/harmony54.mjs.map +1 -1
- package/dist/harmony59.cjs +22 -4
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +22 -4
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony62.cjs +1 -7
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs +1 -7
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony67.cjs +1 -1
- package/dist/harmony67.mjs +1 -1
- package/dist/harmony95.cjs +99 -18
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +82 -18
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +18 -14
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +18 -14
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +11 -96
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +11 -79
- package/dist/harmony97.mjs.map +1 -1
- package/dist/types/src/features/publicApi/hooks/useAddLanguagesToProjectMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useCreateScoreMutation.d.ts +29 -0
- package/dist/types/src/features/publicApi/languages.d.ts +10 -10
- package/dist/types/src/features/publicApi/node.d.ts +1 -1
- package/dist/types/src/features/publicApi/score.d.ts +115 -0
- package/dist/types/src/features/publicApi/team.d.ts +0 -61
- package/dist/types/src/features/publicApi/types/languageTypes.d.ts +10 -10
- package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +73 -11
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +0 -10
- package/dist/types/tests/utils/apiHelpers.d.ts +0 -1
- package/package.json +1 -1
- package/dist/types/src/features/publicApi/hooks/useSwitchTeamMutation.d.ts +0 -15
- package/dist/types/src/features/publicApi/hooks/useSwitchTeamMutation.test.d.ts +0 -1
package/dist/harmony117.mjs
CHANGED
@@ -1,10 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
import { __require as require_freeGlobal } from "./harmony120.mjs";
|
2
|
+
var _root;
|
3
|
+
var hasRequired_root;
|
4
|
+
function require_root() {
|
5
|
+
if (hasRequired_root) return _root;
|
6
|
+
hasRequired_root = 1;
|
7
|
+
var freeGlobal = require_freeGlobal();
|
8
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
9
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
10
|
+
_root = root;
|
11
|
+
return _root;
|
12
|
+
}
|
7
13
|
export {
|
8
|
-
|
14
|
+
require_root as __require
|
9
15
|
};
|
10
16
|
//# sourceMappingURL=harmony117.mjs.map
|
package/dist/harmony117.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony117.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony117.mjs","sources":["../node_modules/lodash/_root.js"],"sourcesContent":["var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,aAAaA,mBAAwB;AAGzC,MAAI,WAAW,OAAO,QAAQ,YAAY,QAAQ,KAAK,WAAW,UAAU;AAG5E,MAAI,OAAO,cAAc,YAAY,SAAS,aAAa,EAAG;AAE9D,UAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony118.cjs
CHANGED
@@ -1,60 +1,18 @@
|
|
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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
{
|
19
|
-
className: clsx.clsx({
|
20
|
-
[TaskLanguage_module.default.langRowCompleted]: languageProgressCompleted
|
21
|
-
}),
|
22
|
-
children: [
|
23
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { children: /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { tooltip: "Open in bilingual view", children: /* @__PURE__ */ jsxRuntime.jsx(
|
24
|
-
louis.Link,
|
25
|
-
{
|
26
|
-
href: getProjectUrl({ task, language }),
|
27
|
-
onClick: () => {
|
28
|
-
langNameOnClick == null ? void 0 : langNameOnClick({ task, language });
|
29
|
-
},
|
30
|
-
children: language.name
|
31
|
-
}
|
32
|
-
) }) }),
|
33
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { className: TaskLanguage_module.default.langCellSecondary, children: languageProgressCompleted || isLanguageCompleted ? "0" : /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { tooltip: "Open uncompleted items", children: /* @__PURE__ */ jsxRuntime.jsx(
|
34
|
-
louis.Link,
|
35
|
-
{
|
36
|
-
href: getProjectUrl({ task, language, taskUncompleted: true }),
|
37
|
-
onClick: () => {
|
38
|
-
langProgressOnClick == null ? void 0 : langProgressOnClick({ task, language });
|
39
|
-
},
|
40
|
-
children: language.base_words_total - language.base_words_done
|
41
|
-
}
|
42
|
-
) }) }),
|
43
|
-
/* @__PURE__ */ jsxRuntime.jsxs("td", { children: [
|
44
|
-
progressValue,
|
45
|
-
"%"
|
46
|
-
] }),
|
47
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { children: languageProgressCompleted ? /* @__PURE__ */ jsxRuntime.jsx(TaskLanguageCompleted.TaskLanguageCompleted, { task, language }) : /* @__PURE__ */ jsxRuntime.jsx(
|
48
|
-
"span",
|
49
|
-
{
|
50
|
-
className: `${TaskLanguage_module.default.langStatus} flex-row items-center justify-start`,
|
51
|
-
"data-status": language.status,
|
52
|
-
children: content.getStatusText(language.status, progressValue)
|
53
|
-
}
|
54
|
-
) })
|
55
|
-
]
|
56
|
-
}
|
57
|
-
);
|
58
|
-
};
|
59
|
-
exports.TaskLanguage = TaskLanguage;
|
3
|
+
const _trimmedEndIndex = require("./harmony121.cjs");
|
4
|
+
var _baseTrim;
|
5
|
+
var hasRequired_baseTrim;
|
6
|
+
function require_baseTrim() {
|
7
|
+
if (hasRequired_baseTrim) return _baseTrim;
|
8
|
+
hasRequired_baseTrim = 1;
|
9
|
+
var trimmedEndIndex = _trimmedEndIndex.__require();
|
10
|
+
var reTrimStart = /^\s+/;
|
11
|
+
function baseTrim(string) {
|
12
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
13
|
+
}
|
14
|
+
_baseTrim = baseTrim;
|
15
|
+
return _baseTrim;
|
16
|
+
}
|
17
|
+
exports.__require = require_baseTrim;
|
60
18
|
//# sourceMappingURL=harmony118.cjs.map
|
package/dist/harmony118.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony118.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony118.cjs","sources":["../node_modules/lodash/_baseTrim.js"],"sourcesContent":["var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,MAAI,kBAAkBA,iBAAAA,UAA6B;AAGnD,MAAI,cAAc;AASlB,WAAS,SAAS,QAAQ;AACxB,WAAO,SACH,OAAO,MAAM,GAAG,gBAAgB,MAAM,IAAI,CAAC,EAAE,QAAQ,aAAa,EAAE,IACpE;AAAA,EACN;AAEA,cAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony118.mjs
CHANGED
@@ -1,60 +1,18 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
"tr",
|
16
|
-
{
|
17
|
-
className: clsx({
|
18
|
-
[styles.langRowCompleted]: languageProgressCompleted
|
19
|
-
}),
|
20
|
-
children: [
|
21
|
-
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Tooltip, { tooltip: "Open in bilingual view", children: /* @__PURE__ */ jsx(
|
22
|
-
Link,
|
23
|
-
{
|
24
|
-
href: getProjectUrl({ task, language }),
|
25
|
-
onClick: () => {
|
26
|
-
langNameOnClick == null ? void 0 : langNameOnClick({ task, language });
|
27
|
-
},
|
28
|
-
children: language.name
|
29
|
-
}
|
30
|
-
) }) }),
|
31
|
-
/* @__PURE__ */ jsx("td", { className: styles.langCellSecondary, children: languageProgressCompleted || isLanguageCompleted ? "0" : /* @__PURE__ */ jsx(Tooltip, { tooltip: "Open uncompleted items", children: /* @__PURE__ */ jsx(
|
32
|
-
Link,
|
33
|
-
{
|
34
|
-
href: getProjectUrl({ task, language, taskUncompleted: true }),
|
35
|
-
onClick: () => {
|
36
|
-
langProgressOnClick == null ? void 0 : langProgressOnClick({ task, language });
|
37
|
-
},
|
38
|
-
children: language.base_words_total - language.base_words_done
|
39
|
-
}
|
40
|
-
) }) }),
|
41
|
-
/* @__PURE__ */ jsxs("td", { children: [
|
42
|
-
progressValue,
|
43
|
-
"%"
|
44
|
-
] }),
|
45
|
-
/* @__PURE__ */ jsx("td", { children: languageProgressCompleted ? /* @__PURE__ */ jsx(TaskLanguageCompleted, { task, language }) : /* @__PURE__ */ jsx(
|
46
|
-
"span",
|
47
|
-
{
|
48
|
-
className: `${styles.langStatus} flex-row items-center justify-start`,
|
49
|
-
"data-status": language.status,
|
50
|
-
children: getStatusText(language.status, progressValue)
|
51
|
-
}
|
52
|
-
) })
|
53
|
-
]
|
54
|
-
}
|
55
|
-
);
|
56
|
-
};
|
1
|
+
import { __require as require_trimmedEndIndex } from "./harmony121.mjs";
|
2
|
+
var _baseTrim;
|
3
|
+
var hasRequired_baseTrim;
|
4
|
+
function require_baseTrim() {
|
5
|
+
if (hasRequired_baseTrim) return _baseTrim;
|
6
|
+
hasRequired_baseTrim = 1;
|
7
|
+
var trimmedEndIndex = require_trimmedEndIndex();
|
8
|
+
var reTrimStart = /^\s+/;
|
9
|
+
function baseTrim(string) {
|
10
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
11
|
+
}
|
12
|
+
_baseTrim = baseTrim;
|
13
|
+
return _baseTrim;
|
14
|
+
}
|
57
15
|
export {
|
58
|
-
|
16
|
+
require_baseTrim as __require
|
59
17
|
};
|
60
18
|
//# sourceMappingURL=harmony118.mjs.map
|
package/dist/harmony118.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony118.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony118.mjs","sources":["../node_modules/lodash/_baseTrim.js"],"sourcesContent":["var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,kBAAkBA,wBAA6B;AAGnD,MAAI,cAAc;AASlB,WAAS,SAAS,QAAQ;AACxB,WAAO,SACH,OAAO,MAAM,GAAG,gBAAgB,MAAM,IAAI,CAAC,EAAE,QAAQ,aAAa,EAAE,IACpE;AAAA,EACN;AAEA,cAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony119.cjs
CHANGED
@@ -1,63 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
case types.SidebarTaskLanguageStatuses.NotStarted:
|
15
|
-
return "Not started";
|
16
|
-
default:
|
17
|
-
return "-";
|
3
|
+
const _baseGetTag = require("./harmony122.cjs");
|
4
|
+
const isObjectLike = require("./harmony123.cjs");
|
5
|
+
var isSymbol_1;
|
6
|
+
var hasRequiredIsSymbol;
|
7
|
+
function requireIsSymbol() {
|
8
|
+
if (hasRequiredIsSymbol) return isSymbol_1;
|
9
|
+
hasRequiredIsSymbol = 1;
|
10
|
+
var baseGetTag = _baseGetTag.__require(), isObjectLike$1 = isObjectLike.__require();
|
11
|
+
var symbolTag = "[object Symbol]";
|
12
|
+
function isSymbol(value) {
|
13
|
+
return typeof value == "symbol" || isObjectLike$1(value) && baseGetTag(value) == symbolTag;
|
18
14
|
}
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
return types.SidebarTaskLanguageStatuses.InProgress;
|
24
|
-
}
|
25
|
-
return language.status;
|
26
|
-
};
|
27
|
-
const tagColor = {
|
28
|
-
[types.SidebarTaskTypeOptions.translation]: "#0891B2",
|
29
|
-
[types.SidebarTaskTypeOptions.review]: "#16922D",
|
30
|
-
[types.SidebarTaskTypeOptions.lqa_by_ai]: "#8B5CF6",
|
31
|
-
[types.SidebarTaskTypeOptions.automatic_translation]: "#60A5FA"
|
32
|
-
};
|
33
|
-
const getTaskLanguages = (langs) => {
|
34
|
-
const statusSortOrder = [
|
35
|
-
types.SidebarTaskLanguageStatuses.InProgress,
|
36
|
-
types.SidebarTaskLanguageStatuses.Created,
|
37
|
-
types.SidebarTaskLanguageStatuses.Completed
|
38
|
-
];
|
39
|
-
return langs.filter((language) => language.status !== "queued").map((lang) => ({ ...lang, status: resolveStatus(lang) })).sort((a, b) => {
|
40
|
-
if (a.status === types.SidebarTaskLanguageStatuses.InProgress && a.progress === 100) {
|
41
|
-
return -1;
|
42
|
-
}
|
43
|
-
if (b.status === types.SidebarTaskLanguageStatuses.InProgress && b.progress === 100) {
|
44
|
-
return 1;
|
45
|
-
}
|
46
|
-
if (a.status === b.status) {
|
47
|
-
return a.name < b.name ? 1 : -1;
|
48
|
-
}
|
49
|
-
return statusSortOrder.indexOf(a.status) - statusSortOrder.indexOf(b.status);
|
50
|
-
});
|
51
|
-
};
|
52
|
-
const isInProgressOrCreated = (status) => {
|
53
|
-
return [types.SidebarTaskStatuses.InProgress, types.SidebarTaskStatuses.Created].includes(status);
|
54
|
-
};
|
55
|
-
const isLanguageProgressCompleted = (task, language) => {
|
56
|
-
return isInProgressOrCreated(task.status) && isInProgressOrCreated(language.status) && (language.progress ?? 0) >= 100;
|
57
|
-
};
|
58
|
-
exports.getStatusText = getStatusText;
|
59
|
-
exports.getTaskLanguages = getTaskLanguages;
|
60
|
-
exports.isLanguageProgressCompleted = isLanguageProgressCompleted;
|
61
|
-
exports.resolveStatus = resolveStatus;
|
62
|
-
exports.tagColor = tagColor;
|
15
|
+
isSymbol_1 = isSymbol;
|
16
|
+
return isSymbol_1;
|
17
|
+
}
|
18
|
+
exports.__require = requireIsSymbol;
|
63
19
|
//# sourceMappingURL=harmony119.cjs.map
|
package/dist/harmony119.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony119.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony119.cjs","sources":["../node_modules/lodash/isSymbol.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n"],"names":["require$$0","isObjectLike","require$$1"],"mappings":";;;;;;;;;AAAA,MAAI,aAAaA,YAAAA,UAAwB,GACrCC,iBAAeC,aAAAA,UAAyB;AAG5C,MAAI,YAAY;AAmBhB,WAAS,SAAS,OAAO;AACvB,WAAO,OAAO,SAAS,YACpBD,eAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA,EACjD;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony119.mjs
CHANGED
@@ -1,63 +1,19 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
case SidebarTaskLanguageStatuses.NotStarted:
|
13
|
-
return "Not started";
|
14
|
-
default:
|
15
|
-
return "-";
|
1
|
+
import { __require as require_baseGetTag } from "./harmony122.mjs";
|
2
|
+
import { __require as requireIsObjectLike } from "./harmony123.mjs";
|
3
|
+
var isSymbol_1;
|
4
|
+
var hasRequiredIsSymbol;
|
5
|
+
function requireIsSymbol() {
|
6
|
+
if (hasRequiredIsSymbol) return isSymbol_1;
|
7
|
+
hasRequiredIsSymbol = 1;
|
8
|
+
var baseGetTag = require_baseGetTag(), isObjectLike = requireIsObjectLike();
|
9
|
+
var symbolTag = "[object Symbol]";
|
10
|
+
function isSymbol(value) {
|
11
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
16
12
|
}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
if (language.status === SidebarTaskLanguageStatuses.Created && progress > 0) {
|
21
|
-
return SidebarTaskLanguageStatuses.InProgress;
|
22
|
-
}
|
23
|
-
return language.status;
|
24
|
-
};
|
25
|
-
const tagColor = {
|
26
|
-
[SidebarTaskTypeOptions.translation]: "#0891B2",
|
27
|
-
[SidebarTaskTypeOptions.review]: "#16922D",
|
28
|
-
[SidebarTaskTypeOptions.lqa_by_ai]: "#8B5CF6",
|
29
|
-
[SidebarTaskTypeOptions.automatic_translation]: "#60A5FA"
|
30
|
-
};
|
31
|
-
const getTaskLanguages = (langs) => {
|
32
|
-
const statusSortOrder = [
|
33
|
-
SidebarTaskLanguageStatuses.InProgress,
|
34
|
-
SidebarTaskLanguageStatuses.Created,
|
35
|
-
SidebarTaskLanguageStatuses.Completed
|
36
|
-
];
|
37
|
-
return langs.filter((language) => language.status !== "queued").map((lang) => ({ ...lang, status: resolveStatus(lang) })).sort((a, b) => {
|
38
|
-
if (a.status === SidebarTaskLanguageStatuses.InProgress && a.progress === 100) {
|
39
|
-
return -1;
|
40
|
-
}
|
41
|
-
if (b.status === SidebarTaskLanguageStatuses.InProgress && b.progress === 100) {
|
42
|
-
return 1;
|
43
|
-
}
|
44
|
-
if (a.status === b.status) {
|
45
|
-
return a.name < b.name ? 1 : -1;
|
46
|
-
}
|
47
|
-
return statusSortOrder.indexOf(a.status) - statusSortOrder.indexOf(b.status);
|
48
|
-
});
|
49
|
-
};
|
50
|
-
const isInProgressOrCreated = (status) => {
|
51
|
-
return [SidebarTaskStatuses.InProgress, SidebarTaskStatuses.Created].includes(status);
|
52
|
-
};
|
53
|
-
const isLanguageProgressCompleted = (task, language) => {
|
54
|
-
return isInProgressOrCreated(task.status) && isInProgressOrCreated(language.status) && (language.progress ?? 0) >= 100;
|
55
|
-
};
|
13
|
+
isSymbol_1 = isSymbol;
|
14
|
+
return isSymbol_1;
|
15
|
+
}
|
56
16
|
export {
|
57
|
-
|
58
|
-
getTaskLanguages,
|
59
|
-
isLanguageProgressCompleted,
|
60
|
-
resolveStatus,
|
61
|
-
tagColor
|
17
|
+
requireIsSymbol as __require
|
62
18
|
};
|
63
19
|
//# sourceMappingURL=harmony119.mjs.map
|
package/dist/harmony119.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony119.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony119.mjs","sources":["../node_modules/lodash/isSymbol.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;AAAA,MAAI,aAAaA,mBAAwB,GACrC,eAAeC,oBAAyB;AAG5C,MAAI,YAAY;AAmBhB,WAAS,SAAS,OAAO;AACvB,WAAO,OAAO,SAAS,YACpB,aAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA,EACjD;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony120.cjs
CHANGED
@@ -1,21 +1,14 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
};
|
15
|
-
exports.default = styles;
|
16
|
-
exports.languagesTable = languagesTable;
|
17
|
-
exports.metadata = metadata;
|
18
|
-
exports.taskContainer = taskContainer;
|
19
|
-
exports.taskDescription = taskDescription;
|
20
|
-
exports.taskTitle = taskTitle;
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const _commonjsHelpers = require("./harmony128.cjs");
|
4
|
+
var _freeGlobal;
|
5
|
+
var hasRequired_freeGlobal;
|
6
|
+
function require_freeGlobal() {
|
7
|
+
if (hasRequired_freeGlobal) return _freeGlobal;
|
8
|
+
hasRequired_freeGlobal = 1;
|
9
|
+
var freeGlobal = typeof _commonjsHelpers.commonjsGlobal == "object" && _commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.Object === Object && _commonjsHelpers.commonjsGlobal;
|
10
|
+
_freeGlobal = freeGlobal;
|
11
|
+
return _freeGlobal;
|
12
|
+
}
|
13
|
+
exports.__require = require_freeGlobal;
|
21
14
|
//# sourceMappingURL=harmony120.cjs.map
|
package/dist/harmony120.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony120.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony120.cjs","sources":["../node_modules/lodash/_freeGlobal.js"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n"],"names":["global"],"mappings":";;;;;;;;AACA,MAAI,aAAa,OAAOA,iBAAAA,kBAAU,YAAYA,iBAAM,kBAAIA,gCAAO,WAAW,UAAUA,iBAAM;AAE1F,gBAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony120.mjs
CHANGED
@@ -1,21 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
metadata
|
12
|
-
};
|
1
|
+
import { commonjsGlobal } from "./harmony128.mjs";
|
2
|
+
var _freeGlobal;
|
3
|
+
var hasRequired_freeGlobal;
|
4
|
+
function require_freeGlobal() {
|
5
|
+
if (hasRequired_freeGlobal) return _freeGlobal;
|
6
|
+
hasRequired_freeGlobal = 1;
|
7
|
+
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
8
|
+
_freeGlobal = freeGlobal;
|
9
|
+
return _freeGlobal;
|
10
|
+
}
|
13
11
|
export {
|
14
|
-
|
15
|
-
languagesTable,
|
16
|
-
metadata,
|
17
|
-
taskContainer,
|
18
|
-
taskDescription,
|
19
|
-
taskTitle
|
12
|
+
require_freeGlobal as __require
|
20
13
|
};
|
21
14
|
//# sourceMappingURL=harmony120.mjs.map
|
package/dist/harmony120.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony120.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony120.mjs","sources":["../node_modules/lodash/_freeGlobal.js"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n"],"names":["global"],"mappings":";;;;;;AACA,MAAI,aAAa,OAAOA,kBAAU,YAAYA,kBAAUA,eAAO,WAAW,UAAUA;AAEpF,gBAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony121.cjs
CHANGED
@@ -1,16 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
var
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
3
|
+
var _trimmedEndIndex;
|
4
|
+
var hasRequired_trimmedEndIndex;
|
5
|
+
function require_trimmedEndIndex() {
|
6
|
+
if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
|
7
|
+
hasRequired_trimmedEndIndex = 1;
|
8
|
+
var reWhitespace = /\s/;
|
9
|
+
function trimmedEndIndex(string) {
|
10
|
+
var index = string.length;
|
11
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
12
|
+
}
|
13
|
+
return index;
|
14
|
+
}
|
15
|
+
_trimmedEndIndex = trimmedEndIndex;
|
16
|
+
return _trimmedEndIndex;
|
14
17
|
}
|
15
|
-
exports.__require =
|
18
|
+
exports.__require = require_trimmedEndIndex;
|
16
19
|
//# sourceMappingURL=harmony121.cjs.map
|
package/dist/harmony121.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony121.cjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony121.cjs","sources":["../node_modules/lodash/_trimmedEndIndex.js"],"sourcesContent":["/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n"],"names":[],"mappings":";;;;;;;AACA,MAAI,eAAe;AAUnB,WAAS,gBAAgB,QAAQ;AAC/B,QAAI,QAAQ,OAAO;AAEnB,WAAO,WAAW,aAAa,KAAK,OAAO,OAAO,KAAK,CAAC,GAAG;AAAA,IAAA;AAC3D,WAAO;AAAA,EACT;AAEA,qBAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony121.mjs
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
|
2
|
-
var
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
var _trimmedEndIndex;
|
2
|
+
var hasRequired_trimmedEndIndex;
|
3
|
+
function require_trimmedEndIndex() {
|
4
|
+
if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
|
5
|
+
hasRequired_trimmedEndIndex = 1;
|
6
|
+
var reWhitespace = /\s/;
|
7
|
+
function trimmedEndIndex(string) {
|
8
|
+
var index = string.length;
|
9
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
10
|
+
}
|
11
|
+
return index;
|
12
|
+
}
|
13
|
+
_trimmedEndIndex = trimmedEndIndex;
|
14
|
+
return _trimmedEndIndex;
|
12
15
|
}
|
13
16
|
export {
|
14
|
-
|
17
|
+
require_trimmedEndIndex as __require
|
15
18
|
};
|
16
19
|
//# sourceMappingURL=harmony121.mjs.map
|
package/dist/harmony121.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony121.mjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony121.mjs","sources":["../node_modules/lodash/_trimmedEndIndex.js"],"sourcesContent":["/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n"],"names":[],"mappings":";;;;;AACA,MAAI,eAAe;AAUnB,WAAS,gBAAgB,QAAQ;AAC/B,QAAI,QAAQ,OAAO;AAEnB,WAAO,WAAW,aAAa,KAAK,OAAO,OAAO,KAAK,CAAC,GAAG;AAAA,IAAA;AAC3D,WAAO;AAAA,EACT;AAEA,qBAAiB;;;","x_google_ignoreList":[0]}
|