@lokalise/harmony 1.27.3-exp-fixTeamsTypes.8 → 1.27.3-exp-teamTypes.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/harmony100.cjs +7 -5
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +7 -5
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +18 -40
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +18 -40
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +13 -59
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +13 -59
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +16 -7
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +16 -7
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +6 -5
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +6 -5
- package/dist/harmony105.cjs +5 -5
- package/dist/harmony105.mjs +5 -5
- package/dist/harmony106.cjs +5 -6
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +5 -6
- package/dist/harmony107.cjs +61 -95
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +61 -95
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +88 -13
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +88 -13
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +19 -15
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +18 -14
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +94 -34
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +94 -34
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +11 -26
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +11 -26
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +12 -60
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +12 -60
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +36 -88
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +36 -88
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +29 -19
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +28 -18
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +7 -13
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +7 -13
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +57 -15
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +57 -15
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +59 -15
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +59 -15
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +19 -12
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +18 -11
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +12 -15
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +12 -15
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +13 -19
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +13 -19
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +14 -10
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +14 -10
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +11 -7
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +11 -7
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +15 -56
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +15 -56
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +20 -59
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +20 -59
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +13 -19
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +12 -18
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +46 -6
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +46 -6
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +13 -13
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +12 -12
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +5 -31
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +5 -31
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +11 -13
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +11 -13
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +31 -45
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +31 -45
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +15 -13
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +14 -12
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony15.cjs +1 -1
- package/dist/harmony15.mjs +1 -1
- package/dist/harmony22.cjs +1 -1
- package/dist/harmony22.mjs +1 -1
- package/dist/harmony23.cjs +1 -1
- package/dist/harmony23.mjs +1 -1
- package/dist/harmony30.cjs +1 -1
- package/dist/harmony30.mjs +1 -1
- package/dist/harmony66.cjs +1 -1
- package/dist/harmony66.mjs +1 -1
- package/dist/harmony67.cjs +1 -1
- package/dist/harmony67.mjs +1 -1
- package/dist/harmony68.cjs +1 -1
- package/dist/harmony68.mjs +1 -1
- package/dist/harmony69.cjs +2 -2
- package/dist/harmony69.mjs +2 -2
- package/dist/harmony70.cjs +2 -2
- package/dist/harmony70.mjs +2 -2
- package/dist/harmony71.cjs +2 -2
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +2 -2
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs +2 -2
- package/dist/harmony72.mjs +2 -2
- package/dist/harmony73.cjs +3 -3
- package/dist/harmony73.mjs +3 -3
- package/dist/harmony74.cjs +6 -6
- package/dist/harmony74.mjs +6 -6
- package/dist/harmony77.cjs +2 -2
- package/dist/harmony77.mjs +2 -2
- package/dist/harmony79.cjs +7 -12
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +6 -11
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +8 -20
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +8 -20
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +6 -3
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +6 -3
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +57 -9
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +56 -8
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +33 -9
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +32 -8
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +5 -57
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +5 -57
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +9 -32
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +8 -31
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +25 -6
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +24 -5
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +3 -6
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +3 -6
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +21 -24
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +20 -23
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +9 -3
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +9 -3
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +9 -19
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +11 -21
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +20 -11
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +20 -11
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +2 -2
- package/dist/harmony92.mjs +2 -2
- package/dist/harmony93.cjs +22 -17
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +21 -16
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +6 -18
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +6 -18
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +130 -12
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +130 -12
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +9 -18
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +9 -18
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +5 -5
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +5 -5
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +37 -129
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +37 -129
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +60 -12
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +59 -11
- package/dist/harmony99.mjs.map +1 -1
- package/package.json +1 -1
package/dist/harmony129.cjs
CHANGED
@@ -1,17 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
var
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
var
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
_objectToString = objectToString;
|
14
|
-
return _objectToString;
|
3
|
+
const _root = require("./harmony119.cjs");
|
4
|
+
var _Symbol;
|
5
|
+
var hasRequired_Symbol;
|
6
|
+
function require_Symbol() {
|
7
|
+
if (hasRequired_Symbol) return _Symbol;
|
8
|
+
hasRequired_Symbol = 1;
|
9
|
+
var root = _root.__require();
|
10
|
+
var Symbol2 = root.Symbol;
|
11
|
+
_Symbol = Symbol2;
|
12
|
+
return _Symbol;
|
15
13
|
}
|
16
|
-
exports.__require =
|
14
|
+
exports.__require = require_Symbol;
|
17
15
|
//# sourceMappingURL=harmony129.cjs.map
|
package/dist/harmony129.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony129.cjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony129.cjs","sources":["../node_modules/lodash/_Symbol.js"],"sourcesContent":["var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n"],"names":["require$$0","Symbol"],"mappings":";;;;;;;;AAAA,MAAI,OAAOA,MAAAA,UAAkB;AAG7B,MAAIC,UAAS,KAAK;AAElB,YAAiBA;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony129.mjs
CHANGED
@@ -1,17 +1,15 @@
|
|
1
|
-
|
2
|
-
var
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
var
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
_objectToString = objectToString;
|
12
|
-
return _objectToString;
|
1
|
+
import { __require as require_root } from "./harmony119.mjs";
|
2
|
+
var _Symbol;
|
3
|
+
var hasRequired_Symbol;
|
4
|
+
function require_Symbol() {
|
5
|
+
if (hasRequired_Symbol) return _Symbol;
|
6
|
+
hasRequired_Symbol = 1;
|
7
|
+
var root = require_root();
|
8
|
+
var Symbol = root.Symbol;
|
9
|
+
_Symbol = Symbol;
|
10
|
+
return _Symbol;
|
13
11
|
}
|
14
12
|
export {
|
15
|
-
|
13
|
+
require_Symbol as __require
|
16
14
|
};
|
17
15
|
//# sourceMappingURL=harmony129.mjs.map
|
package/dist/harmony129.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony129.mjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony129.mjs","sources":["../node_modules/lodash/_Symbol.js"],"sourcesContent":["var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,OAAOA,aAAkB;AAG7B,MAAI,SAAS,KAAK;AAElB,YAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony130.cjs
CHANGED
@@ -1,49 +1,35 @@
|
|
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
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
fetchTasks();
|
28
|
-
},
|
29
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(louis.Alert, { status: "info", children: [
|
30
|
-
"Make sure you are finished and ",
|
31
|
-
/* @__PURE__ */ jsxRuntime.jsx("strong", { children: "mark it as done" }),
|
32
|
-
" to notify your team admin. This action cannot be undone, and the language might no longer be available for you to edit."
|
33
|
-
] })
|
3
|
+
const _Symbol = require("./harmony129.cjs");
|
4
|
+
var _getRawTag;
|
5
|
+
var hasRequired_getRawTag;
|
6
|
+
function require_getRawTag() {
|
7
|
+
if (hasRequired_getRawTag) return _getRawTag;
|
8
|
+
hasRequired_getRawTag = 1;
|
9
|
+
var Symbol2 = _Symbol.__require();
|
10
|
+
var objectProto = Object.prototype;
|
11
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
12
|
+
var nativeObjectToString = objectProto.toString;
|
13
|
+
var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
14
|
+
function getRawTag(value) {
|
15
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
16
|
+
try {
|
17
|
+
value[symToStringTag] = void 0;
|
18
|
+
var unmasked = true;
|
19
|
+
} catch (e) {
|
20
|
+
}
|
21
|
+
var result = nativeObjectToString.call(value);
|
22
|
+
if (unmasked) {
|
23
|
+
if (isOwn) {
|
24
|
+
value[symToStringTag] = tag;
|
25
|
+
} else {
|
26
|
+
delete value[symToStringTag];
|
34
27
|
}
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
},
|
43
|
-
children: "Mark as done"
|
44
|
-
}
|
45
|
-
)
|
46
|
-
] });
|
47
|
-
};
|
48
|
-
exports.TaskLanguageCompleted = TaskLanguageCompleted;
|
28
|
+
}
|
29
|
+
return result;
|
30
|
+
}
|
31
|
+
_getRawTag = getRawTag;
|
32
|
+
return _getRawTag;
|
33
|
+
}
|
34
|
+
exports.__require = require_getRawTag;
|
49
35
|
//# sourceMappingURL=harmony130.cjs.map
|
package/dist/harmony130.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony130.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony130.cjs","sources":["../node_modules/lodash/_getRawTag.js"],"sourcesContent":["var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n"],"names":["Symbol","require$$0"],"mappings":";;;;;;;;AAAA,MAAIA,UAASC,QAAAA,UAAoB;AAGjC,MAAI,cAAc,OAAO;AAGzB,MAAI,iBAAiB,YAAY;AAOjC,MAAI,uBAAuB,YAAY;AAGvC,MAAI,iBAAiBD,UAASA,QAAO,cAAc;AASnD,WAAS,UAAU,OAAO;AACxB,QAAI,QAAQ,eAAe,KAAK,OAAO,cAAc,GACjD,MAAM,MAAM,cAAc;AAE9B,QAAI;AACF,YAAM,cAAc,IAAI;AACxB,UAAI,WAAW;AAAA,IAChB,SAAQ,GAAG;AAAA,IAAA;AAEZ,QAAI,SAAS,qBAAqB,KAAK,KAAK;AAC5C,QAAI,UAAU;AACZ,UAAI,OAAO;AACT,cAAM,cAAc,IAAI;AAAA,MAC9B,OAAW;AACL,eAAO,MAAM,cAAc;AAAA,MACjC;AAAA,IACA;AACE,WAAO;AAAA,EACT;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony130.mjs
CHANGED
@@ -1,49 +1,35 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
fetchTasks();
|
26
|
-
},
|
27
|
-
children: /* @__PURE__ */ jsxs(Alert, { status: "info", children: [
|
28
|
-
"Make sure you are finished and ",
|
29
|
-
/* @__PURE__ */ jsx("strong", { children: "mark it as done" }),
|
30
|
-
" to notify your team admin. This action cannot be undone, and the language might no longer be available for you to edit."
|
31
|
-
] })
|
1
|
+
import { __require as require_Symbol } from "./harmony129.mjs";
|
2
|
+
var _getRawTag;
|
3
|
+
var hasRequired_getRawTag;
|
4
|
+
function require_getRawTag() {
|
5
|
+
if (hasRequired_getRawTag) return _getRawTag;
|
6
|
+
hasRequired_getRawTag = 1;
|
7
|
+
var Symbol = require_Symbol();
|
8
|
+
var objectProto = Object.prototype;
|
9
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
10
|
+
var nativeObjectToString = objectProto.toString;
|
11
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
12
|
+
function getRawTag(value) {
|
13
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
14
|
+
try {
|
15
|
+
value[symToStringTag] = void 0;
|
16
|
+
var unmasked = true;
|
17
|
+
} catch (e) {
|
18
|
+
}
|
19
|
+
var result = nativeObjectToString.call(value);
|
20
|
+
if (unmasked) {
|
21
|
+
if (isOwn) {
|
22
|
+
value[symToStringTag] = tag;
|
23
|
+
} else {
|
24
|
+
delete value[symToStringTag];
|
32
25
|
}
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
setIsMarkAsDonePromptShown(true);
|
40
|
-
},
|
41
|
-
children: "Mark as done"
|
42
|
-
}
|
43
|
-
)
|
44
|
-
] });
|
45
|
-
};
|
26
|
+
}
|
27
|
+
return result;
|
28
|
+
}
|
29
|
+
_getRawTag = getRawTag;
|
30
|
+
return _getRawTag;
|
31
|
+
}
|
46
32
|
export {
|
47
|
-
|
33
|
+
require_getRawTag as __require
|
48
34
|
};
|
49
35
|
//# sourceMappingURL=harmony130.mjs.map
|
package/dist/harmony130.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony130.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony130.mjs","sources":["../node_modules/lodash/_getRawTag.js"],"sourcesContent":["var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,SAASA,eAAoB;AAGjC,MAAI,cAAc,OAAO;AAGzB,MAAI,iBAAiB,YAAY;AAOjC,MAAI,uBAAuB,YAAY;AAGvC,MAAI,iBAAiB,SAAS,OAAO,cAAc;AASnD,WAAS,UAAU,OAAO;AACxB,QAAI,QAAQ,eAAe,KAAK,OAAO,cAAc,GACjD,MAAM,MAAM,cAAc;AAE9B,QAAI;AACF,YAAM,cAAc,IAAI;AACxB,UAAI,WAAW;AAAA,IAChB,SAAQ,GAAG;AAAA,IAAA;AAEZ,QAAI,SAAS,qBAAqB,KAAK,KAAK;AAC5C,QAAI,UAAU;AACZ,UAAI,OAAO;AACT,cAAM,cAAc,IAAI;AAAA,MAC9B,OAAW;AACL,eAAO,MAAM,cAAc;AAAA,MACjC;AAAA,IACA;AACE,WAAO;AAAA,EACT;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony131.cjs
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
var _objectToString;
|
4
|
+
var hasRequired_objectToString;
|
5
|
+
function require_objectToString() {
|
6
|
+
if (hasRequired_objectToString) return _objectToString;
|
7
|
+
hasRequired_objectToString = 1;
|
8
|
+
var objectProto = Object.prototype;
|
9
|
+
var nativeObjectToString = objectProto.toString;
|
10
|
+
function objectToString(value) {
|
11
|
+
return nativeObjectToString.call(value);
|
12
|
+
}
|
13
|
+
_objectToString = objectToString;
|
14
|
+
return _objectToString;
|
15
|
+
}
|
16
|
+
exports.__require = require_objectToString;
|
15
17
|
//# sourceMappingURL=harmony131.cjs.map
|
package/dist/harmony131.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony131.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony131.cjs","sources":["../node_modules/lodash/_objectToString.js"],"sourcesContent":["/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n"],"names":[],"mappings":";;;;;;;AACA,MAAI,cAAc,OAAO;AAOzB,MAAI,uBAAuB,YAAY;AASvC,WAAS,eAAe,OAAO;AAC7B,WAAO,qBAAqB,KAAK,KAAK;AAAA,EACxC;AAEA,oBAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony131.mjs
CHANGED
@@ -1,15 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
var _objectToString;
|
2
|
+
var hasRequired_objectToString;
|
3
|
+
function require_objectToString() {
|
4
|
+
if (hasRequired_objectToString) return _objectToString;
|
5
|
+
hasRequired_objectToString = 1;
|
6
|
+
var objectProto = Object.prototype;
|
7
|
+
var nativeObjectToString = objectProto.toString;
|
8
|
+
function objectToString(value) {
|
9
|
+
return nativeObjectToString.call(value);
|
10
|
+
}
|
11
|
+
_objectToString = objectToString;
|
12
|
+
return _objectToString;
|
13
|
+
}
|
9
14
|
export {
|
10
|
-
|
11
|
-
langCellSecondary,
|
12
|
-
langRowCompleted,
|
13
|
-
langStatus
|
15
|
+
require_objectToString as __require
|
14
16
|
};
|
15
17
|
//# sourceMappingURL=harmony131.mjs.map
|
package/dist/harmony131.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony131.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony131.mjs","sources":["../node_modules/lodash/_objectToString.js"],"sourcesContent":["/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n"],"names":[],"mappings":";;;;;AACA,MAAI,cAAc,OAAO;AAOzB,MAAI,uBAAuB,YAAY;AASvC,WAAS,eAAe,OAAO;AAC7B,WAAO,qBAAqB,KAAK,KAAK;AAAA,EACxC;AAEA,oBAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony15.cjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const jwtTokenPayload = require("./
|
3
|
+
const jwtTokenPayload = require("./harmony101.cjs");
|
4
4
|
function parseJwtTokenPayload(token) {
|
5
5
|
try {
|
6
6
|
const payload = token.split(".")[1];
|
package/dist/harmony15.mjs
CHANGED
package/dist/harmony22.cjs
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const useGetUserTokenQuery = require("./harmony40.cjs");
|
4
4
|
const React = require("react");
|
5
|
-
const NewJwtIssuedEvent = require("./
|
5
|
+
const NewJwtIssuedEvent = require("./harmony102.cjs");
|
6
6
|
const cookieTokenUtils = require("./harmony16.cjs");
|
7
7
|
function useGetPromotedClassicSessionJwtQuery(wretchClient, headers, teamId) {
|
8
8
|
const csrf = cookieTokenUtils.getCsrfTokenFromCookie();
|
package/dist/harmony22.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { useGetUserTokenQuery, getUserTokenKey } from "./harmony40.mjs";
|
2
2
|
import { useRef, useEffect } from "react";
|
3
|
-
import { NewJwtIssuedEvent } from "./
|
3
|
+
import { NewJwtIssuedEvent } from "./harmony102.mjs";
|
4
4
|
import { getCsrfTokenFromCookie } from "./harmony16.mjs";
|
5
5
|
function useGetPromotedClassicSessionJwtQuery(wretchClient, headers, teamId) {
|
6
6
|
const csrf = getCsrfTokenFromCookie();
|
package/dist/harmony23.cjs
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const React = require("react");
|
4
4
|
const jwtTokenPayload = require("./harmony15.cjs");
|
5
|
-
const NewJwtIssuedEvent = require("./
|
5
|
+
const NewJwtIssuedEvent = require("./harmony102.cjs");
|
6
6
|
const cookieTokenUtils = require("./harmony16.cjs");
|
7
7
|
function useAuthenticatedSessionPayload() {
|
8
8
|
const [payload, setPayload] = React.useState();
|
package/dist/harmony23.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { useState, useEffect } from "react";
|
2
2
|
import { parseJwtTokenPayload } from "./harmony15.mjs";
|
3
|
-
import { NewJwtIssuedEvent } from "./
|
3
|
+
import { NewJwtIssuedEvent } from "./harmony102.mjs";
|
4
4
|
import { getJwtTokenFromCookie } from "./harmony16.mjs";
|
5
5
|
function useAuthenticatedSessionPayload() {
|
6
6
|
const [payload, setPayload] = useState();
|
package/dist/harmony30.cjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const apiContracts = require("./
|
3
|
+
const apiContracts = require("./harmony103.cjs");
|
4
4
|
const scoreTypes = require("./harmony56.cjs");
|
5
5
|
const sharedTypes = require("./harmony57.cjs");
|
6
6
|
const getScore = apiContracts.buildGetRoute({
|
package/dist/harmony30.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { buildGetRoute } from "./
|
1
|
+
import { buildGetRoute } from "./harmony103.mjs";
|
2
2
|
import { GET_SCORE_RESPONSE_SCHEMA, GET_SCORE_REQUEST_QUERY_SCHEMA } from "./harmony56.mjs";
|
3
3
|
import { BASE_API_ENDPOINT_HEADER_SCHEMA } from "./harmony57.mjs";
|
4
4
|
const getScore = buildGetRoute({
|
package/dist/harmony66.cjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const Avatar_module = require("./
|
4
|
+
const Avatar_module = require("./harmony79.cjs");
|
5
5
|
const Avatar = ({
|
6
6
|
src,
|
7
7
|
href = "/",
|
package/dist/harmony66.mjs
CHANGED
package/dist/harmony67.cjs
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const clsx = require("./harmony62.cjs");
|
6
|
-
const IconLink_module = require("./
|
6
|
+
const IconLink_module = require("./harmony80.cjs");
|
7
7
|
const IconLink = ({ label, to, icon: Icon }) => {
|
8
8
|
return /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsxRuntime.jsx(
|
9
9
|
louis.Link,
|
package/dist/harmony67.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
2
|
import { Tooltip, Link } from "@lokalise/louis";
|
3
3
|
import { clsx } from "./harmony62.mjs";
|
4
|
-
import styles from "./
|
4
|
+
import styles from "./harmony80.mjs";
|
5
5
|
const IconLink = ({ label, to, icon: Icon }) => {
|
6
6
|
return /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsx(
|
7
7
|
Link,
|
package/dist/harmony68.cjs
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const clsx = require("./harmony62.cjs");
|
6
|
-
const Menu_module = require("./
|
6
|
+
const Menu_module = require("./harmony81.cjs");
|
7
7
|
const Menu = ({ children, icon: Icon }) => {
|
8
8
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
9
9
|
louis.Menu,
|
package/dist/harmony68.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
2
|
import { Menu as Menu$1, MenuList, Tooltip } from "@lokalise/louis";
|
3
3
|
import { clsx } from "./harmony62.mjs";
|
4
|
-
import styles from "./
|
4
|
+
import styles from "./harmony81.mjs";
|
5
5
|
const Menu = ({ children, icon: Icon }) => {
|
6
6
|
return /* @__PURE__ */ jsx(
|
7
7
|
Menu$1,
|
package/dist/harmony69.cjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const ProfileMenuContent = require("./
|
5
|
-
const ProfileMenuProvider = require("./
|
4
|
+
const ProfileMenuContent = require("./harmony82.cjs");
|
5
|
+
const ProfileMenuProvider = require("./harmony83.cjs");
|
6
6
|
const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuProvider.ProfileMenuProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContent.ProfileMenuContent, { children }) });
|
7
7
|
exports.ProfileMenu = ProfileMenu;
|
8
8
|
//# sourceMappingURL=harmony69.cjs.map
|
package/dist/harmony69.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { ProfileMenuContent } from "./
|
3
|
-
import { ProfileMenuProvider } from "./
|
2
|
+
import { ProfileMenuContent } from "./harmony82.mjs";
|
3
|
+
import { ProfileMenuProvider } from "./harmony83.mjs";
|
4
4
|
const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsx(ProfileMenuProvider, { config, children: /* @__PURE__ */ jsx(ProfileMenuContent, { children }) });
|
5
5
|
export {
|
6
6
|
ProfileMenu
|
package/dist/harmony70.cjs
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
|
-
const ProfileMenuContext = require("./
|
6
|
-
const ProfileSettingsMenuItem_module = require("./
|
5
|
+
const ProfileMenuContext = require("./harmony84.cjs");
|
6
|
+
const ProfileSettingsMenuItem_module = require("./harmony85.cjs");
|
7
7
|
const ProfileSettingsMenuItem = ({
|
8
8
|
href,
|
9
9
|
onClick,
|
package/dist/harmony70.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
2
2
|
import { MenuItem, MenuDivider } from "@lokalise/louis";
|
3
|
-
import { useProfileMenu } from "./
|
4
|
-
import styles from "./
|
3
|
+
import { useProfileMenu } from "./harmony84.mjs";
|
4
|
+
import styles from "./harmony85.mjs";
|
5
5
|
const ProfileSettingsMenuItem = ({
|
6
6
|
href,
|
7
7
|
onClick,
|
package/dist/harmony71.cjs
CHANGED
@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const plan = require("./harmony7.cjs");
|
6
|
-
const ProfileMenuContext = require("./
|
7
|
-
const TeamMenuItem_module = require("./
|
6
|
+
const ProfileMenuContext = require("./harmony84.cjs");
|
7
|
+
const TeamMenuItem_module = require("./harmony86.cjs");
|
8
8
|
const TeamMenuItem = ({ team, onClick, hidePlanLabel }) => {
|
9
9
|
const { currentTeam, planId } = ProfileMenuContext.useProfileMenu();
|
10
10
|
const contextTeam = team || currentTeam;
|
package/dist/harmony71.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony71.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/TeamMenuItem/TeamMenuItem.tsx"],"sourcesContent":["import { MenuItem, UserIcon } from '@lokalise/louis'\nimport { isFreePlan, isTrialPlan } from '
|
1
|
+
{"version":3,"file":"harmony71.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/TeamMenuItem/TeamMenuItem.tsx"],"sourcesContent":["import { MenuItem, UserIcon } from '@lokalise/louis'\nimport { isFreePlan, isTrialPlan } from '../../../../../utils/billing/plan/plan'\nimport type { SidebarTeam } from '../../../types'\nimport { useProfileMenu } from '../ProfileMenuContext'\nimport styles from './TeamMenuItem.module.css'\n\ntype TeamMenuItemProps = {\n\t/** Team to display. If not provided, uses the current team from context */\n\tteam?: SidebarTeam\n\t/** Callback for when the team item is clicked. If provided, renders as a clickable MenuItem */\n\tonClick?: (team: SidebarTeam) => void\n\t/** Whether to hide the plan label (Free/Trial). Useful when displaying multiple teams */\n\thidePlanLabel?: boolean\n}\n\n/**\n * A component that displays team information in a menu item format.\n * Renders team logo (or default user icon), team name, role, and plan label.\n *\n * The component can be used in two modes:\n * 1. As a static display of the current team (when no onClick handler is provided)\n * 2. As a clickable menu item for team switching (when onClick handler is provided)\n *\n * @example\n * ```tsx\n * // Static current team display\n * <TeamMenuItem />\n *\n * // Clickable team item for switching\n * <TeamMenuItem\n * team={someTeam}\n * onClick={(team) => handleTeamSwitch(team)}\n * hidePlanLabel\n * />\n * ```\n *\n * @note This component must be used within a ProfileMenu component\n * as it requires access to the ProfileMenu context for current team\n * and plan information.\n */\nexport const TeamMenuItem = ({ team, onClick, hidePlanLabel }: TeamMenuItemProps) => {\n\tconst { currentTeam, planId } = useProfileMenu()\n\n\tconst contextTeam = team || currentTeam\n\n\tif (!contextTeam) {\n\t\treturn null\n\t}\n\n\tconst planLabel = isFreePlan(planId) ? 'Free' : isTrialPlan(planId) ? 'Trial' : undefined\n\n\tconst WrapperNode = onClick ? MenuItem : 'div'\n\n\treturn (\n\t\t<WrapperNode\n\t\t\tclassName={styles.wrapper}\n\t\t\t{...(onClick && { onClick: () => onClick(contextTeam) })}\n\t\t>\n\t\t\t{contextTeam.logoUrl ? (\n\t\t\t\t<img className={styles.profileImage} src={contextTeam.logoUrl} alt=\"Team logo\" />\n\t\t\t) : (\n\t\t\t\t<span className={`${styles.defaultProfileImage}`}>\n\t\t\t\t\t<UserIcon size=\"25px\" />\n\t\t\t\t</span>\n\t\t\t)}\n\t\t\t<div className={styles.teamDetails}>\n\t\t\t\t<div className={styles.planWrapper}>\n\t\t\t\t\t<span title={contextTeam.name} className={styles.teamName}>\n\t\t\t\t\t\t{contextTeam.name}\n\t\t\t\t\t</span>\n\t\t\t\t\t{planLabel && !hidePlanLabel && <span className={styles.teamName}>{planLabel}</span>}\n\t\t\t\t</div>\n\t\t\t\t<span className={styles.membership}>{contextTeam.role}</span>\n\t\t\t</div>\n\t\t</WrapperNode>\n\t)\n}\n"],"names":["useProfileMenu","isFreePlan","isTrialPlan","MenuItem","jsxs","styles","jsx","UserIcon"],"mappings":";;;;;;;AAwCO,MAAM,eAAe,CAAC,EAAE,MAAM,SAAS,oBAAuC;AACpF,QAAM,EAAE,aAAa,OAAO,IAAIA,kCAAe;AAE/C,QAAM,cAAc,QAAQ;AAE5B,MAAI,CAAC,aAAa;AACV,WAAA;AAAA,EAAA;AAGF,QAAA,YAAYC,gBAAW,MAAM,IAAI,SAASC,iBAAY,MAAM,IAAI,UAAU;AAE1E,QAAA,cAAc,UAAUC,MAAAA,WAAW;AAGxC,SAAAC,2BAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,WAAWC,oBAAO,QAAA;AAAA,MACjB,GAAI,WAAW,EAAE,SAAS,MAAM,QAAQ,WAAW,EAAE;AAAA,MAErD,UAAA;AAAA,QAAY,YAAA,yCACX,OAAI,EAAA,WAAWA,oBAAAA,QAAO,cAAc,KAAK,YAAY,SAAS,KAAI,YAAA,CAAY,IAE9EC,+BAAA,QAAA,EAAK,WAAW,GAAGD,oBAAO,QAAA,mBAAmB,IAC7C,UAACC,2BAAAA,IAAAC,MAAAA,UAAA,EAAS,MAAK,OAAA,CAAO,EACvB,CAAA;AAAA,QAEAH,2BAAA,KAAA,OAAA,EAAI,WAAWC,oBAAAA,QAAO,aACtB,UAAA;AAAA,UAACD,2BAAA,KAAA,OAAA,EAAI,WAAWC,oBAAAA,QAAO,aACtB,UAAA;AAAA,YAACC,2BAAAA,IAAA,QAAA,EAAK,OAAO,YAAY,MAAM,WAAWD,oBAAAA,QAAO,UAC/C,sBAAY,KACd,CAAA;AAAA,YACC,aAAa,CAAC,iBAAiBC,2BAAAA,IAAC,UAAK,WAAWD,4BAAO,UAAW,UAAU,UAAA,CAAA;AAAA,UAAA,GAC9E;AAAA,yCACC,QAAK,EAAA,WAAWA,oBAAAA,QAAO,YAAa,sBAAY,KAAK,CAAA;AAAA,QAAA,EACvD,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACD;AAEF;;"}
|
package/dist/harmony71.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
2
2
|
import { MenuItem, UserIcon } from "@lokalise/louis";
|
3
3
|
import { isFreePlan, isTrialPlan } from "./harmony7.mjs";
|
4
|
-
import { useProfileMenu } from "./
|
5
|
-
import styles from "./
|
4
|
+
import { useProfileMenu } from "./harmony84.mjs";
|
5
|
+
import styles from "./harmony86.mjs";
|
6
6
|
const TeamMenuItem = ({ team, onClick, hidePlanLabel }) => {
|
7
7
|
const { currentTeam, planId } = useProfileMenu();
|
8
8
|
const contextTeam = team || currentTeam;
|
package/dist/harmony71.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony71.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/TeamMenuItem/TeamMenuItem.tsx"],"sourcesContent":["import { MenuItem, UserIcon } from '@lokalise/louis'\nimport { isFreePlan, isTrialPlan } from '
|
1
|
+
{"version":3,"file":"harmony71.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/TeamMenuItem/TeamMenuItem.tsx"],"sourcesContent":["import { MenuItem, UserIcon } from '@lokalise/louis'\nimport { isFreePlan, isTrialPlan } from '../../../../../utils/billing/plan/plan'\nimport type { SidebarTeam } from '../../../types'\nimport { useProfileMenu } from '../ProfileMenuContext'\nimport styles from './TeamMenuItem.module.css'\n\ntype TeamMenuItemProps = {\n\t/** Team to display. If not provided, uses the current team from context */\n\tteam?: SidebarTeam\n\t/** Callback for when the team item is clicked. If provided, renders as a clickable MenuItem */\n\tonClick?: (team: SidebarTeam) => void\n\t/** Whether to hide the plan label (Free/Trial). Useful when displaying multiple teams */\n\thidePlanLabel?: boolean\n}\n\n/**\n * A component that displays team information in a menu item format.\n * Renders team logo (or default user icon), team name, role, and plan label.\n *\n * The component can be used in two modes:\n * 1. As a static display of the current team (when no onClick handler is provided)\n * 2. As a clickable menu item for team switching (when onClick handler is provided)\n *\n * @example\n * ```tsx\n * // Static current team display\n * <TeamMenuItem />\n *\n * // Clickable team item for switching\n * <TeamMenuItem\n * team={someTeam}\n * onClick={(team) => handleTeamSwitch(team)}\n * hidePlanLabel\n * />\n * ```\n *\n * @note This component must be used within a ProfileMenu component\n * as it requires access to the ProfileMenu context for current team\n * and plan information.\n */\nexport const TeamMenuItem = ({ team, onClick, hidePlanLabel }: TeamMenuItemProps) => {\n\tconst { currentTeam, planId } = useProfileMenu()\n\n\tconst contextTeam = team || currentTeam\n\n\tif (!contextTeam) {\n\t\treturn null\n\t}\n\n\tconst planLabel = isFreePlan(planId) ? 'Free' : isTrialPlan(planId) ? 'Trial' : undefined\n\n\tconst WrapperNode = onClick ? MenuItem : 'div'\n\n\treturn (\n\t\t<WrapperNode\n\t\t\tclassName={styles.wrapper}\n\t\t\t{...(onClick && { onClick: () => onClick(contextTeam) })}\n\t\t>\n\t\t\t{contextTeam.logoUrl ? (\n\t\t\t\t<img className={styles.profileImage} src={contextTeam.logoUrl} alt=\"Team logo\" />\n\t\t\t) : (\n\t\t\t\t<span className={`${styles.defaultProfileImage}`}>\n\t\t\t\t\t<UserIcon size=\"25px\" />\n\t\t\t\t</span>\n\t\t\t)}\n\t\t\t<div className={styles.teamDetails}>\n\t\t\t\t<div className={styles.planWrapper}>\n\t\t\t\t\t<span title={contextTeam.name} className={styles.teamName}>\n\t\t\t\t\t\t{contextTeam.name}\n\t\t\t\t\t</span>\n\t\t\t\t\t{planLabel && !hidePlanLabel && <span className={styles.teamName}>{planLabel}</span>}\n\t\t\t\t</div>\n\t\t\t\t<span className={styles.membership}>{contextTeam.role}</span>\n\t\t\t</div>\n\t\t</WrapperNode>\n\t)\n}\n"],"names":[],"mappings":";;;;;AAwCO,MAAM,eAAe,CAAC,EAAE,MAAM,SAAS,oBAAuC;AACpF,QAAM,EAAE,aAAa,OAAO,IAAI,eAAe;AAE/C,QAAM,cAAc,QAAQ;AAE5B,MAAI,CAAC,aAAa;AACV,WAAA;AAAA,EAAA;AAGF,QAAA,YAAY,WAAW,MAAM,IAAI,SAAS,YAAY,MAAM,IAAI,UAAU;AAE1E,QAAA,cAAc,UAAU,WAAW;AAGxC,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,WAAW,OAAO;AAAA,MACjB,GAAI,WAAW,EAAE,SAAS,MAAM,QAAQ,WAAW,EAAE;AAAA,MAErD,UAAA;AAAA,QAAY,YAAA,8BACX,OAAI,EAAA,WAAW,OAAO,cAAc,KAAK,YAAY,SAAS,KAAI,YAAA,CAAY,IAE9E,oBAAA,QAAA,EAAK,WAAW,GAAG,OAAO,mBAAmB,IAC7C,UAAC,oBAAA,UAAA,EAAS,MAAK,OAAA,CAAO,EACvB,CAAA;AAAA,QAEA,qBAAA,OAAA,EAAI,WAAW,OAAO,aACtB,UAAA;AAAA,UAAC,qBAAA,OAAA,EAAI,WAAW,OAAO,aACtB,UAAA;AAAA,YAAC,oBAAA,QAAA,EAAK,OAAO,YAAY,MAAM,WAAW,OAAO,UAC/C,sBAAY,KACd,CAAA;AAAA,YACC,aAAa,CAAC,iBAAiB,oBAAC,UAAK,WAAW,OAAO,UAAW,UAAU,UAAA,CAAA;AAAA,UAAA,GAC9E;AAAA,8BACC,QAAK,EAAA,WAAW,OAAO,YAAa,sBAAY,KAAK,CAAA;AAAA,QAAA,EACvD,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACD;AAEF;"}
|