@lokalise/harmony 1.32.4-exp-expertJWTSidebar.1 → 1.33.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 +36 -32
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +37 -33
- package/dist/harmony100.cjs +2 -2
- package/dist/harmony100.mjs +2 -2
- package/dist/harmony101.cjs +19 -22
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +18 -21
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +13 -5
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +13 -5
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +1 -1
- package/dist/harmony103.mjs +1 -1
- package/dist/harmony106.cjs +2 -2
- package/dist/harmony106.mjs +2 -2
- package/dist/harmony109.cjs +18 -3
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +18 -3
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +6 -18
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +6 -18
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +6 -5
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +6 -5
- package/dist/harmony112.cjs +5 -5
- package/dist/harmony112.mjs +5 -5
- package/dist/harmony113.cjs +6 -63
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +5 -62
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +61 -87
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +61 -87
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +88 -18
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +87 -17
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +19 -97
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +18 -96
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +94 -11
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +94 -11
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +12 -13
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +12 -13
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +13 -35
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +13 -35
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +32 -24
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +32 -24
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +28 -7
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +28 -7
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +13 -57
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +13 -57
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +14 -59
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +14 -59
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +17 -19
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +16 -18
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +7 -13
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +7 -13
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +57 -15
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +57 -15
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +59 -15
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +59 -15
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +19 -12
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +18 -11
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +10 -15
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +10 -15
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +13 -18
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +13 -18
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +19 -10
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +19 -10
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +12 -46
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +12 -46
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +7 -13
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +6 -12
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +11 -5
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +11 -5
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +31 -11
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +31 -11
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +10 -28
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +10 -28
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +46 -14
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +46 -14
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +15 -0
- package/dist/harmony138.cjs.map +1 -0
- package/dist/harmony138.mjs +15 -0
- package/dist/harmony138.mjs.map +1 -0
- package/dist/harmony16.cjs +1 -1
- package/dist/harmony16.mjs +1 -1
- package/dist/harmony20.cjs +12 -12
- package/dist/harmony20.cjs.map +1 -1
- package/dist/harmony20.mjs +12 -12
- package/dist/harmony20.mjs.map +1 -1
- package/dist/harmony21.cjs +16 -13
- package/dist/harmony21.cjs.map +1 -1
- package/dist/harmony21.mjs +16 -13
- package/dist/harmony21.mjs.map +1 -1
- package/dist/harmony22.cjs +9 -8
- package/dist/harmony22.cjs.map +1 -1
- package/dist/harmony22.mjs +9 -8
- package/dist/harmony22.mjs.map +1 -1
- package/dist/harmony23.cjs +18 -16
- package/dist/harmony23.cjs.map +1 -1
- package/dist/harmony23.mjs +18 -16
- package/dist/harmony23.mjs.map +1 -1
- package/dist/harmony24.cjs +16 -16
- package/dist/harmony24.cjs.map +1 -1
- package/dist/harmony24.mjs +18 -18
- package/dist/harmony24.mjs.map +1 -1
- package/dist/harmony25.cjs +9 -19
- package/dist/harmony25.cjs.map +1 -1
- package/dist/harmony25.mjs +9 -19
- package/dist/harmony25.mjs.map +1 -1
- package/dist/harmony26.cjs +8 -7
- package/dist/harmony26.cjs.map +1 -1
- package/dist/harmony26.mjs +8 -7
- package/dist/harmony26.mjs.map +1 -1
- package/dist/harmony27.cjs +27 -11
- package/dist/harmony27.cjs.map +1 -1
- package/dist/harmony27.mjs +27 -11
- package/dist/harmony27.mjs.map +1 -1
- package/dist/harmony28.cjs +25 -21
- package/dist/harmony28.cjs.map +1 -1
- package/dist/harmony28.mjs +26 -22
- package/dist/harmony28.mjs.map +1 -1
- package/dist/harmony29.cjs +7 -27
- package/dist/harmony29.cjs.map +1 -1
- package/dist/harmony29.mjs +8 -28
- package/dist/harmony29.mjs.map +1 -1
- package/dist/harmony30.cjs +54 -10
- package/dist/harmony30.cjs.map +1 -1
- package/dist/harmony30.mjs +54 -10
- package/dist/harmony30.mjs.map +1 -1
- package/dist/harmony31.cjs +25 -50
- package/dist/harmony31.cjs.map +1 -1
- package/dist/harmony31.mjs +26 -51
- package/dist/harmony31.mjs.map +1 -1
- package/dist/harmony32.cjs +15 -27
- package/dist/harmony32.cjs.map +1 -1
- package/dist/harmony32.mjs +16 -28
- package/dist/harmony32.mjs.map +1 -1
- package/dist/harmony33.cjs +15 -15
- package/dist/harmony33.cjs.map +1 -1
- package/dist/harmony33.mjs +15 -15
- package/dist/harmony33.mjs.map +1 -1
- package/dist/harmony34.cjs +12 -8
- package/dist/harmony34.cjs.map +1 -1
- package/dist/harmony34.mjs +13 -9
- package/dist/harmony34.mjs.map +1 -1
- package/dist/harmony35.cjs +14 -14
- package/dist/harmony35.cjs.map +1 -1
- package/dist/harmony35.mjs +14 -14
- package/dist/harmony35.mjs.map +1 -1
- package/dist/harmony36.cjs +4 -4
- package/dist/harmony36.cjs.map +1 -1
- package/dist/harmony36.mjs +4 -4
- package/dist/harmony36.mjs.map +1 -1
- package/dist/harmony37.cjs +6 -6
- package/dist/harmony37.cjs.map +1 -1
- package/dist/harmony37.mjs +6 -6
- package/dist/harmony37.mjs.map +1 -1
- package/dist/harmony38.cjs +5 -6
- package/dist/harmony38.cjs.map +1 -1
- package/dist/harmony38.mjs +5 -6
- package/dist/harmony38.mjs.map +1 -1
- package/dist/harmony39.cjs +14 -6
- package/dist/harmony39.cjs.map +1 -1
- package/dist/harmony39.mjs +15 -7
- package/dist/harmony39.mjs.map +1 -1
- package/dist/harmony40.cjs +7 -15
- package/dist/harmony40.cjs.map +1 -1
- package/dist/harmony40.mjs +7 -15
- package/dist/harmony40.mjs.map +1 -1
- package/dist/harmony41.cjs +11 -7
- package/dist/harmony41.cjs.map +1 -1
- package/dist/harmony41.mjs +13 -9
- package/dist/harmony41.mjs.map +1 -1
- package/dist/harmony42.cjs +8 -8
- package/dist/harmony42.cjs.map +1 -1
- package/dist/harmony42.mjs +8 -8
- package/dist/harmony42.mjs.map +1 -1
- package/dist/harmony43.cjs +12 -14
- package/dist/harmony43.cjs.map +1 -1
- package/dist/harmony43.mjs +12 -14
- package/dist/harmony43.mjs.map +1 -1
- package/dist/harmony44.cjs +8 -8
- package/dist/harmony44.cjs.map +1 -1
- package/dist/harmony44.mjs +9 -9
- package/dist/harmony44.mjs.map +1 -1
- package/dist/harmony45.cjs +9 -9
- package/dist/harmony45.cjs.map +1 -1
- package/dist/harmony45.mjs +10 -10
- package/dist/harmony45.mjs.map +1 -1
- package/dist/harmony46.cjs +14 -12
- package/dist/harmony46.cjs.map +1 -1
- package/dist/harmony46.mjs +14 -12
- package/dist/harmony46.mjs.map +1 -1
- package/dist/harmony47.cjs +10 -10
- package/dist/harmony47.cjs.map +1 -1
- package/dist/harmony47.mjs +10 -10
- package/dist/harmony47.mjs.map +1 -1
- package/dist/harmony48.cjs +8 -8
- package/dist/harmony48.cjs.map +1 -1
- package/dist/harmony48.mjs +8 -8
- package/dist/harmony48.mjs.map +1 -1
- package/dist/harmony49.cjs +7 -7
- package/dist/harmony49.cjs.map +1 -1
- package/dist/harmony49.mjs +7 -7
- 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 +1 -1
- package/dist/harmony51.mjs +1 -1
- package/dist/harmony52.cjs +1 -1
- package/dist/harmony52.mjs +1 -1
- package/dist/harmony53.cjs +1 -1
- package/dist/harmony53.mjs +1 -1
- package/dist/harmony54.cjs +1 -1
- package/dist/harmony54.mjs +1 -1
- package/dist/harmony65.cjs +9 -0
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs +9 -0
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony82.cjs +2 -2
- package/dist/harmony82.mjs +2 -2
- package/dist/harmony84.cjs +2 -2
- package/dist/harmony84.mjs +2 -2
- package/dist/harmony88.cjs +1 -1
- package/dist/harmony88.mjs +1 -1
- package/dist/harmony89.cjs +1 -1
- package/dist/harmony89.mjs +1 -1
- package/dist/harmony94.cjs +1 -1
- package/dist/harmony94.mjs +1 -1
- package/dist/harmony96.cjs +10 -9
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +12 -11
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +11 -20
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +11 -20
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +9 -10
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +11 -12
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +20 -11
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +20 -11
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/features/auth/node.d.ts +0 -1
- package/dist/types/src/features/publicApi/hooks/useListTeamUsersQuery.d.ts +32 -0
- package/dist/types/src/features/publicApi/node.d.ts +1 -0
- package/dist/types/src/features/publicApi/teamUsers.d.ts +110 -0
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +54 -0
- package/package.json +1 -1
package/dist/harmony135.cjs
CHANGED
@@ -1,15 +1,35 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
var
|
5
|
-
var
|
6
|
-
function
|
7
|
-
if (
|
8
|
-
|
9
|
-
var
|
10
|
-
var
|
11
|
-
|
12
|
-
|
3
|
+
const _Symbol = require("./harmony134.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];
|
27
|
+
}
|
28
|
+
}
|
29
|
+
return result;
|
30
|
+
}
|
31
|
+
_getRawTag = getRawTag;
|
32
|
+
return _getRawTag;
|
13
33
|
}
|
14
|
-
exports.__require =
|
34
|
+
exports.__require = require_getRawTag;
|
15
35
|
//# sourceMappingURL=harmony135.cjs.map
|
package/dist/harmony135.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony135.cjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony135.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/harmony135.mjs
CHANGED
@@ -1,15 +1,35 @@
|
|
1
|
-
import { __require as
|
2
|
-
var
|
3
|
-
var
|
4
|
-
function
|
5
|
-
if (
|
6
|
-
|
7
|
-
var
|
8
|
-
var
|
9
|
-
|
10
|
-
|
1
|
+
import { __require as require_Symbol } from "./harmony134.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];
|
25
|
+
}
|
26
|
+
}
|
27
|
+
return result;
|
28
|
+
}
|
29
|
+
_getRawTag = getRawTag;
|
30
|
+
return _getRawTag;
|
11
31
|
}
|
12
32
|
export {
|
13
|
-
|
33
|
+
require_getRawTag as __require
|
14
34
|
};
|
15
35
|
//# sourceMappingURL=harmony135.mjs.map
|
package/dist/harmony135.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony135.mjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony135.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/harmony136.cjs
CHANGED
@@ -1,35 +1,17 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
var
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
hasRequired_getRawTag = 1;
|
9
|
-
var Symbol2 = _Symbol.__require();
|
3
|
+
var _objectToString;
|
4
|
+
var hasRequired_objectToString;
|
5
|
+
function require_objectToString() {
|
6
|
+
if (hasRequired_objectToString) return _objectToString;
|
7
|
+
hasRequired_objectToString = 1;
|
10
8
|
var objectProto = Object.prototype;
|
11
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
12
9
|
var nativeObjectToString = objectProto.toString;
|
13
|
-
|
14
|
-
|
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];
|
27
|
-
}
|
28
|
-
}
|
29
|
-
return result;
|
10
|
+
function objectToString(value) {
|
11
|
+
return nativeObjectToString.call(value);
|
30
12
|
}
|
31
|
-
|
32
|
-
return
|
13
|
+
_objectToString = objectToString;
|
14
|
+
return _objectToString;
|
33
15
|
}
|
34
|
-
exports.__require =
|
16
|
+
exports.__require = require_objectToString;
|
35
17
|
//# sourceMappingURL=harmony136.cjs.map
|
package/dist/harmony136.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony136.cjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony136.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/harmony136.mjs
CHANGED
@@ -1,35 +1,17 @@
|
|
1
|
-
|
2
|
-
var
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
hasRequired_getRawTag = 1;
|
7
|
-
var Symbol = require_Symbol();
|
1
|
+
var _objectToString;
|
2
|
+
var hasRequired_objectToString;
|
3
|
+
function require_objectToString() {
|
4
|
+
if (hasRequired_objectToString) return _objectToString;
|
5
|
+
hasRequired_objectToString = 1;
|
8
6
|
var objectProto = Object.prototype;
|
9
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
10
7
|
var nativeObjectToString = objectProto.toString;
|
11
|
-
|
12
|
-
|
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];
|
25
|
-
}
|
26
|
-
}
|
27
|
-
return result;
|
8
|
+
function objectToString(value) {
|
9
|
+
return nativeObjectToString.call(value);
|
28
10
|
}
|
29
|
-
|
30
|
-
return
|
11
|
+
_objectToString = objectToString;
|
12
|
+
return _objectToString;
|
31
13
|
}
|
32
14
|
export {
|
33
|
-
|
15
|
+
require_objectToString as __require
|
34
16
|
};
|
35
17
|
//# sourceMappingURL=harmony136.mjs.map
|
package/dist/harmony136.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony136.mjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony136.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/harmony137.cjs
CHANGED
@@ -1,17 +1,49 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
return
|
15
|
-
|
16
|
-
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const React = require("react");
|
6
|
+
const TasksContext = require("./harmony105.cjs");
|
7
|
+
const TaskLanguageCompleted = ({ task, language }) => {
|
8
|
+
const [loading, setLoading] = React.useState(false);
|
9
|
+
const [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = React.useState(false);
|
10
|
+
const { onLanguageCompleteConfirm, fetchTasks } = TasksContext.useTasks();
|
11
|
+
const closePrompt = () => {
|
12
|
+
setIsMarkAsDonePromptShown(false);
|
13
|
+
};
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
15
|
+
isMarkAsDonePromptShown && /* @__PURE__ */ jsxRuntime.jsx(
|
16
|
+
louis.ConfirmModal,
|
17
|
+
{
|
18
|
+
opened: true,
|
19
|
+
loading,
|
20
|
+
title: `Are you finished with ${language.name}?`,
|
21
|
+
confirmText: "Mark as done",
|
22
|
+
closeText: "Cancel",
|
23
|
+
onClose: closePrompt,
|
24
|
+
onConfirm: async () => {
|
25
|
+
setLoading(true);
|
26
|
+
await onLanguageCompleteConfirm({ task, language, closePrompt });
|
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
|
+
] })
|
34
|
+
}
|
35
|
+
),
|
36
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
37
|
+
louis.Link,
|
38
|
+
{
|
39
|
+
disabled: loading,
|
40
|
+
onClick: () => {
|
41
|
+
setIsMarkAsDonePromptShown(true);
|
42
|
+
},
|
43
|
+
children: "Mark as done"
|
44
|
+
}
|
45
|
+
)
|
46
|
+
] });
|
47
|
+
};
|
48
|
+
exports.TaskLanguageCompleted = TaskLanguageCompleted;
|
17
49
|
//# sourceMappingURL=harmony137.cjs.map
|
package/dist/harmony137.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony137.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony137.cjs","sources":["../src/components/Sidebar/Widgets/Tasks/TaskLanguageCompleted/TaskLanguageCompleted.tsx"],"sourcesContent":["import { Alert, ConfirmModal, Link } from '@lokalise/louis'\nimport { useState } from 'react'\nimport { useTasks } from '../TasksContext'\nimport type { SidebarTask, SidebarTaskLanguage } from '../types'\n\ntype TaskLanguageCompletedProps = {\n\ttask: SidebarTask\n\tlanguage: SidebarTaskLanguage\n}\n\nexport const TaskLanguageCompleted = ({ task, language }: TaskLanguageCompletedProps) => {\n\tconst [loading, setLoading] = useState(false)\n\n\tconst [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = useState(false)\n\n\tconst { onLanguageCompleteConfirm, fetchTasks } = useTasks()\n\n\tconst closePrompt = () => {\n\t\tsetIsMarkAsDonePromptShown(false)\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{isMarkAsDonePromptShown && (\n\t\t\t\t<ConfirmModal\n\t\t\t\t\topened\n\t\t\t\t\tloading={loading}\n\t\t\t\t\ttitle={`Are you finished with ${language.name}?`}\n\t\t\t\t\tconfirmText=\"Mark as done\"\n\t\t\t\t\tcloseText=\"Cancel\"\n\t\t\t\t\tonClose={closePrompt}\n\t\t\t\t\tonConfirm={async () => {\n\t\t\t\t\t\tsetLoading(true)\n\t\t\t\t\t\tawait onLanguageCompleteConfirm({ task, language, closePrompt })\n\t\t\t\t\t\tfetchTasks()\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Alert status=\"info\">\n\t\t\t\t\t\tMake sure you are finished and <strong>mark it as done</strong> to notify your team\n\t\t\t\t\t\tadmin. This action cannot be undone, and the language might no longer be available for\n\t\t\t\t\t\tyou to edit.\n\t\t\t\t\t</Alert>\n\t\t\t\t</ConfirmModal>\n\t\t\t)}\n\t\t\t<Link\n\t\t\t\tdisabled={loading}\n\t\t\t\tonClick={() => {\n\t\t\t\t\tsetIsMarkAsDonePromptShown(true)\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tMark as done\n\t\t\t</Link>\n\t\t</>\n\t)\n}\n"],"names":["useState","useTasks","jsxs","Fragment","jsx","ConfirmModal","Alert","Link"],"mappings":";;;;;;AAUO,MAAM,wBAAwB,CAAC,EAAE,MAAM,eAA2C;AACxF,QAAM,CAAC,SAAS,UAAU,IAAIA,MAAAA,SAAS,KAAK;AAE5C,QAAM,CAAC,yBAAyB,0BAA0B,IAAIA,MAAAA,SAAS,KAAK;AAE5E,QAAM,EAAE,2BAA2B,WAAW,IAAIC,sBAAS;AAE3D,QAAM,cAAc,MAAM;AACzB,+BAA2B,KAAK;AAAA,EACjC;AAEA,SAEGC,2BAAA,KAAAC,qBAAA,EAAA,UAAA;AAAA,IACA,2BAAAC,2BAAA;AAAA,MAACC,MAAA;AAAA,MAAA;AAAA,QACA,QAAM;AAAA,QACN;AAAA,QACA,OAAO,yBAAyB,SAAS,IAAI;AAAA,QAC7C,aAAY;AAAA,QACZ,WAAU;AAAA,QACV,SAAS;AAAA,QACT,WAAW,YAAY;AACtB,qBAAW,IAAI;AACf,gBAAM,0BAA0B,EAAE,MAAM,UAAU,aAAa;AACpD,qBAAA;AAAA,QACZ;AAAA,QAEA,UAAAH,2BAAA,KAACI,MAAM,OAAA,EAAA,QAAO,QAAO,UAAA;AAAA,UAAA;AAAA,UACWF,2BAAAA,IAAC,YAAO,UAAe,kBAAA,CAAA;AAAA,UAAS;AAAA,QAAA,EAGhE,CAAA;AAAA,MAAA;AAAA,IACD;AAAA,IAEDA,2BAAA;AAAA,MAACG,MAAA;AAAA,MAAA;AAAA,QACA,UAAU;AAAA,QACV,SAAS,MAAM;AACd,qCAA2B,IAAI;AAAA,QAChC;AAAA,QACA,UAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAED,GACD;AAEF;;"}
|
package/dist/harmony137.mjs
CHANGED
@@ -1,17 +1,49 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
return
|
13
|
-
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
2
|
+
import { ConfirmModal, Alert, Link } from "@lokalise/louis";
|
3
|
+
import { useState } from "react";
|
4
|
+
import { useTasks } from "./harmony105.mjs";
|
5
|
+
const TaskLanguageCompleted = ({ task, language }) => {
|
6
|
+
const [loading, setLoading] = useState(false);
|
7
|
+
const [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = useState(false);
|
8
|
+
const { onLanguageCompleteConfirm, fetchTasks } = useTasks();
|
9
|
+
const closePrompt = () => {
|
10
|
+
setIsMarkAsDonePromptShown(false);
|
11
|
+
};
|
12
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
13
|
+
isMarkAsDonePromptShown && /* @__PURE__ */ jsx(
|
14
|
+
ConfirmModal,
|
15
|
+
{
|
16
|
+
opened: true,
|
17
|
+
loading,
|
18
|
+
title: `Are you finished with ${language.name}?`,
|
19
|
+
confirmText: "Mark as done",
|
20
|
+
closeText: "Cancel",
|
21
|
+
onClose: closePrompt,
|
22
|
+
onConfirm: async () => {
|
23
|
+
setLoading(true);
|
24
|
+
await onLanguageCompleteConfirm({ task, language, closePrompt });
|
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
|
+
] })
|
32
|
+
}
|
33
|
+
),
|
34
|
+
/* @__PURE__ */ jsx(
|
35
|
+
Link,
|
36
|
+
{
|
37
|
+
disabled: loading,
|
38
|
+
onClick: () => {
|
39
|
+
setIsMarkAsDonePromptShown(true);
|
40
|
+
},
|
41
|
+
children: "Mark as done"
|
42
|
+
}
|
43
|
+
)
|
44
|
+
] });
|
45
|
+
};
|
14
46
|
export {
|
15
|
-
|
47
|
+
TaskLanguageCompleted
|
16
48
|
};
|
17
49
|
//# sourceMappingURL=harmony137.mjs.map
|
package/dist/harmony137.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony137.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony137.mjs","sources":["../src/components/Sidebar/Widgets/Tasks/TaskLanguageCompleted/TaskLanguageCompleted.tsx"],"sourcesContent":["import { Alert, ConfirmModal, Link } from '@lokalise/louis'\nimport { useState } from 'react'\nimport { useTasks } from '../TasksContext'\nimport type { SidebarTask, SidebarTaskLanguage } from '../types'\n\ntype TaskLanguageCompletedProps = {\n\ttask: SidebarTask\n\tlanguage: SidebarTaskLanguage\n}\n\nexport const TaskLanguageCompleted = ({ task, language }: TaskLanguageCompletedProps) => {\n\tconst [loading, setLoading] = useState(false)\n\n\tconst [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = useState(false)\n\n\tconst { onLanguageCompleteConfirm, fetchTasks } = useTasks()\n\n\tconst closePrompt = () => {\n\t\tsetIsMarkAsDonePromptShown(false)\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{isMarkAsDonePromptShown && (\n\t\t\t\t<ConfirmModal\n\t\t\t\t\topened\n\t\t\t\t\tloading={loading}\n\t\t\t\t\ttitle={`Are you finished with ${language.name}?`}\n\t\t\t\t\tconfirmText=\"Mark as done\"\n\t\t\t\t\tcloseText=\"Cancel\"\n\t\t\t\t\tonClose={closePrompt}\n\t\t\t\t\tonConfirm={async () => {\n\t\t\t\t\t\tsetLoading(true)\n\t\t\t\t\t\tawait onLanguageCompleteConfirm({ task, language, closePrompt })\n\t\t\t\t\t\tfetchTasks()\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Alert status=\"info\">\n\t\t\t\t\t\tMake sure you are finished and <strong>mark it as done</strong> to notify your team\n\t\t\t\t\t\tadmin. This action cannot be undone, and the language might no longer be available for\n\t\t\t\t\t\tyou to edit.\n\t\t\t\t\t</Alert>\n\t\t\t\t</ConfirmModal>\n\t\t\t)}\n\t\t\t<Link\n\t\t\t\tdisabled={loading}\n\t\t\t\tonClick={() => {\n\t\t\t\t\tsetIsMarkAsDonePromptShown(true)\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tMark as done\n\t\t\t</Link>\n\t\t</>\n\t)\n}\n"],"names":[],"mappings":";;;;AAUO,MAAM,wBAAwB,CAAC,EAAE,MAAM,eAA2C;AACxF,QAAM,CAAC,SAAS,UAAU,IAAI,SAAS,KAAK;AAE5C,QAAM,CAAC,yBAAyB,0BAA0B,IAAI,SAAS,KAAK;AAE5E,QAAM,EAAE,2BAA2B,WAAW,IAAI,SAAS;AAE3D,QAAM,cAAc,MAAM;AACzB,+BAA2B,KAAK;AAAA,EACjC;AAEA,SAEG,qBAAA,UAAA,EAAA,UAAA;AAAA,IACA,2BAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,QAAM;AAAA,QACN;AAAA,QACA,OAAO,yBAAyB,SAAS,IAAI;AAAA,QAC7C,aAAY;AAAA,QACZ,WAAU;AAAA,QACV,SAAS;AAAA,QACT,WAAW,YAAY;AACtB,qBAAW,IAAI;AACf,gBAAM,0BAA0B,EAAE,MAAM,UAAU,aAAa;AACpD,qBAAA;AAAA,QACZ;AAAA,QAEA,UAAA,qBAAC,OAAM,EAAA,QAAO,QAAO,UAAA;AAAA,UAAA;AAAA,UACW,oBAAC,YAAO,UAAe,kBAAA,CAAA;AAAA,UAAS;AAAA,QAAA,EAGhE,CAAA;AAAA,MAAA;AAAA,IACD;AAAA,IAED;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,UAAU;AAAA,QACV,SAAS,MAAM;AACd,qCAA2B,IAAI;AAAA,QAChC;AAAA,QACA,UAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAED,GACD;AAEF;"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const langRowCompleted = "_langRowCompleted_vpgdi_1";
|
4
|
+
const langCellSecondary = "_langCellSecondary_vpgdi_15";
|
5
|
+
const langStatus = "_langStatus_vpgdi_20";
|
6
|
+
const styles = {
|
7
|
+
langRowCompleted,
|
8
|
+
langCellSecondary,
|
9
|
+
langStatus
|
10
|
+
};
|
11
|
+
exports.default = styles;
|
12
|
+
exports.langCellSecondary = langCellSecondary;
|
13
|
+
exports.langRowCompleted = langRowCompleted;
|
14
|
+
exports.langStatus = langStatus;
|
15
|
+
//# sourceMappingURL=harmony138.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony138.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
const langRowCompleted = "_langRowCompleted_vpgdi_1";
|
2
|
+
const langCellSecondary = "_langCellSecondary_vpgdi_15";
|
3
|
+
const langStatus = "_langStatus_vpgdi_20";
|
4
|
+
const styles = {
|
5
|
+
langRowCompleted,
|
6
|
+
langCellSecondary,
|
7
|
+
langStatus
|
8
|
+
};
|
9
|
+
export {
|
10
|
+
styles as default,
|
11
|
+
langCellSecondary,
|
12
|
+
langRowCompleted,
|
13
|
+
langStatus
|
14
|
+
};
|
15
|
+
//# sourceMappingURL=harmony138.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony138.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony16.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/harmony16.mjs
CHANGED
package/dist/harmony20.cjs
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
5
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
6
3
|
const jwtTokenPayload = require("./harmony16.cjs");
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
4
|
+
const cookieTokenUtils = require("./harmony17.cjs");
|
5
|
+
function getAuthenticatedSessionDetailFromRequest() {
|
6
|
+
const cookie = cookieTokenUtils.getJwtTokenFromCookie();
|
7
|
+
if (!cookie) {
|
8
|
+
return void 0;
|
12
9
|
}
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
10
|
+
const payload = jwtTokenPayload.parseJwtTokenPayload(cookie.accessToken);
|
11
|
+
if (!payload) {
|
12
|
+
return void 0;
|
13
|
+
}
|
14
|
+
return { ...cookie, payload };
|
15
|
+
}
|
16
|
+
exports.getAuthenticatedSessionDetailFromRequest = getAuthenticatedSessionDetailFromRequest;
|
17
17
|
//# sourceMappingURL=harmony20.cjs.map
|
package/dist/harmony20.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony20.cjs","sources":["../src/features/auth/
|
1
|
+
{"version":3,"file":"harmony20.cjs","sources":["../src/features/auth/backend/services/getAuthenticatedSessionDetailFromRequest.ts"],"sourcesContent":["import type { JwtTokenPayload } from '@features/auth/core/types/jwtTokenPayload'\nimport { parseJwtTokenPayload } from '@features/auth/core/utils/jwtTokenPayload'\nimport { getJwtTokenFromCookie } from '@features/auth/frontend/utils/cookieTokenUtils'\nimport type { JwtToken } from '@features/publicApi/types/userTokenTypes'\n\ntype AuthenticatedSessionDetail = JwtToken & { payload: JwtTokenPayload }\n\n/**\n * Returns the JWT tokens and parses the attached payload.\n */\nexport function getAuthenticatedSessionDetailFromRequest(): AuthenticatedSessionDetail | undefined {\n\tconst cookie = getJwtTokenFromCookie()\n\tif (!cookie) {\n\t\treturn undefined\n\t}\n\n\tconst payload = parseJwtTokenPayload(cookie.accessToken)\n\tif (!payload) {\n\t\treturn undefined\n\t}\n\n\treturn { ...cookie, payload }\n}\n"],"names":["getJwtTokenFromCookie","parseJwtTokenPayload"],"mappings":";;;;AAUO,SAAS,2CAAmF;AAClG,QAAM,SAASA,iBAAAA,sBAAsB;AACrC,MAAI,CAAC,QAAQ;AACL,WAAA;AAAA,EAAA;AAGF,QAAA,UAAUC,gBAAAA,qBAAqB,OAAO,WAAW;AACvD,MAAI,CAAC,SAAS;AACN,WAAA;AAAA,EAAA;AAGD,SAAA,EAAE,GAAG,QAAQ,QAAQ;AAC7B;;"}
|
package/dist/harmony20.mjs
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
var __defProp = Object.defineProperty;
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
4
1
|
import { parseJwtTokenPayload } from "./harmony16.mjs";
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
2
|
+
import { getJwtTokenFromCookie } from "./harmony17.mjs";
|
3
|
+
function getAuthenticatedSessionDetailFromRequest() {
|
4
|
+
const cookie = getJwtTokenFromCookie();
|
5
|
+
if (!cookie) {
|
6
|
+
return void 0;
|
10
7
|
}
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
const payload = parseJwtTokenPayload(cookie.accessToken);
|
9
|
+
if (!payload) {
|
10
|
+
return void 0;
|
11
|
+
}
|
12
|
+
return { ...cookie, payload };
|
13
|
+
}
|
14
14
|
export {
|
15
|
-
|
15
|
+
getAuthenticatedSessionDetailFromRequest
|
16
16
|
};
|
17
17
|
//# sourceMappingURL=harmony20.mjs.map
|
package/dist/harmony20.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony20.mjs","sources":["../src/features/auth/
|
1
|
+
{"version":3,"file":"harmony20.mjs","sources":["../src/features/auth/backend/services/getAuthenticatedSessionDetailFromRequest.ts"],"sourcesContent":["import type { JwtTokenPayload } from '@features/auth/core/types/jwtTokenPayload'\nimport { parseJwtTokenPayload } from '@features/auth/core/utils/jwtTokenPayload'\nimport { getJwtTokenFromCookie } from '@features/auth/frontend/utils/cookieTokenUtils'\nimport type { JwtToken } from '@features/publicApi/types/userTokenTypes'\n\ntype AuthenticatedSessionDetail = JwtToken & { payload: JwtTokenPayload }\n\n/**\n * Returns the JWT tokens and parses the attached payload.\n */\nexport function getAuthenticatedSessionDetailFromRequest(): AuthenticatedSessionDetail | undefined {\n\tconst cookie = getJwtTokenFromCookie()\n\tif (!cookie) {\n\t\treturn undefined\n\t}\n\n\tconst payload = parseJwtTokenPayload(cookie.accessToken)\n\tif (!payload) {\n\t\treturn undefined\n\t}\n\n\treturn { ...cookie, payload }\n}\n"],"names":[],"mappings":";;AAUO,SAAS,2CAAmF;AAClG,QAAM,SAAS,sBAAsB;AACrC,MAAI,CAAC,QAAQ;AACL,WAAA;AAAA,EAAA;AAGF,QAAA,UAAU,qBAAqB,OAAO,WAAW;AACvD,MAAI,CAAC,SAAS;AACN,WAAA;AAAA,EAAA;AAGD,SAAA,EAAE,GAAG,QAAQ,QAAQ;AAC7B;"}
|
package/dist/harmony21.cjs
CHANGED
@@ -1,17 +1,20 @@
|
|
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
|
-
|
3
|
+
const headerBuilder = require("./harmony19.cjs");
|
4
|
+
const UnauthorizedError = require("./harmony15.cjs");
|
5
|
+
const userToken = require("./harmony34.cjs");
|
6
|
+
const frontendHttpClient = require("@lokalise/frontend-http-client");
|
7
|
+
function generateTokenFromClassicSession(authenticationProvider, getCsrfToken, getTeamId) {
|
8
|
+
return async () => {
|
9
|
+
const csrfToken = getCsrfToken();
|
10
|
+
if (!csrfToken) {
|
11
|
+
throw new UnauthorizedError.UnauthorizedError();
|
12
|
+
}
|
13
|
+
return frontendHttpClient.sendByPayloadRoute(authenticationProvider, userToken.getUserToken, {
|
14
|
+
pathParams: { teamId: Number(await getTeamId()) },
|
15
|
+
headers: await headerBuilder.HeaderBuilder.create().add("x-csrf-token", csrfToken).resolve()
|
16
|
+
});
|
17
|
+
};
|
15
18
|
}
|
16
|
-
exports.
|
19
|
+
exports.generateTokenFromClassicSession = generateTokenFromClassicSession;
|
17
20
|
//# sourceMappingURL=harmony21.cjs.map
|
package/dist/harmony21.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony21.cjs","sources":["../src/features/auth/
|
1
|
+
{"version":3,"file":"harmony21.cjs","sources":["../src/features/auth/frontend/services/generateTokenFromClassicSession.ts"],"sourcesContent":["import { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { UnauthorizedError } from '@features/auth/errors/UnauthorizedError'\nimport { getUserToken } from '@features/publicApi/userToken'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport type { Wretch } from 'wretch'\n\nexport function generateTokenFromClassicSession<T>(\n\tauthenticationProvider: Wretch<T>,\n\tgetCsrfToken: () => string | null,\n\tgetTeamId: () => Promise<string>,\n) {\n\treturn async () => {\n\t\tconst csrfToken = getCsrfToken()\n\n\t\tif (!csrfToken) {\n\t\t\tthrow new UnauthorizedError()\n\t\t}\n\n\t\treturn sendByPayloadRoute(authenticationProvider, getUserToken, {\n\t\t\tpathParams: { teamId: Number(await getTeamId()) },\n\t\t\theaders: await HeaderBuilder.create().add('x-csrf-token', csrfToken).resolve(),\n\t\t})\n\t}\n}\n"],"names":["UnauthorizedError","sendByPayloadRoute","getUserToken","HeaderBuilder"],"mappings":";;;;;;AAMgB,SAAA,gCACf,wBACA,cACA,WACC;AACD,SAAO,YAAY;AAClB,UAAM,YAAY,aAAa;AAE/B,QAAI,CAAC,WAAW;AACf,YAAM,IAAIA,kBAAAA,kBAAkB;AAAA,IAAA;AAGtB,WAAAC,mBAAA,mBAAmB,wBAAwBC,wBAAc;AAAA,MAC/D,YAAY,EAAE,QAAQ,OAAO,MAAM,UAAW,CAAA,EAAE;AAAA,MAChD,SAAS,MAAMC,cAAAA,cAAc,OAAA,EAAS,IAAI,gBAAgB,SAAS,EAAE,QAAQ;AAAA,IAAA,CAC7E;AAAA,EACF;AACD;;"}
|
package/dist/harmony21.mjs
CHANGED
@@ -1,17 +1,20 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
import { HeaderBuilder } from "./harmony19.mjs";
|
2
|
+
import { UnauthorizedError } from "./harmony15.mjs";
|
3
|
+
import { getUserToken } from "./harmony34.mjs";
|
4
|
+
import { sendByPayloadRoute } from "@lokalise/frontend-http-client";
|
5
|
+
function generateTokenFromClassicSession(authenticationProvider, getCsrfToken, getTeamId) {
|
6
|
+
return async () => {
|
7
|
+
const csrfToken = getCsrfToken();
|
8
|
+
if (!csrfToken) {
|
9
|
+
throw new UnauthorizedError();
|
10
|
+
}
|
11
|
+
return sendByPayloadRoute(authenticationProvider, getUserToken, {
|
12
|
+
pathParams: { teamId: Number(await getTeamId()) },
|
13
|
+
headers: await HeaderBuilder.create().add("x-csrf-token", csrfToken).resolve()
|
14
|
+
});
|
15
|
+
};
|
13
16
|
}
|
14
17
|
export {
|
15
|
-
|
18
|
+
generateTokenFromClassicSession
|
16
19
|
};
|
17
20
|
//# sourceMappingURL=harmony21.mjs.map
|