@lokalise/harmony 1.29.4 → 1.29.5-exp-teamSwitch.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 +3 -0
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +5 -2
- package/dist/harmony100.cjs +12 -130
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +12 -130
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +132 -12
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +131 -11
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +13 -6
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +12 -5
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +5 -40
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +5 -40
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +33 -53
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +34 -54
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +59 -6
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +59 -6
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +8 -6
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +7 -5
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +6 -5
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +6 -5
- package/dist/harmony110.cjs +1 -1
- package/dist/harmony110.mjs +1 -1
- package/dist/harmony111.cjs +2 -2
- package/dist/harmony111.mjs +2 -2
- package/dist/harmony113.cjs +13 -62
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +12 -61
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +15 -88
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +15 -88
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +17 -19
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +16 -18
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +62 -13
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +61 -12
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +88 -15
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +88 -15
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +19 -17
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +18 -16
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +10 -15
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +10 -15
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +13 -18
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +13 -18
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +19 -10
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +19 -10
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +11 -10
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +11 -10
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +6 -7
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +6 -7
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +12 -57
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +12 -57
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +30 -58
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +30 -58
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +15 -19
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +14 -18
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +7 -12
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +7 -12
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +56 -31
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +56 -31
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +59 -13
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +59 -13
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +19 -7
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +18 -6
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +1 -1
- package/dist/harmony131.mjs +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/harmony31.cjs +9 -0
- package/dist/harmony31.cjs.map +1 -1
- package/dist/harmony31.mjs +12 -3
- package/dist/harmony31.mjs.map +1 -1
- package/dist/harmony61.cjs +7 -1
- package/dist/harmony61.cjs.map +1 -1
- package/dist/harmony61.mjs +7 -1
- package/dist/harmony61.mjs.map +1 -1
- package/dist/harmony68.cjs +1 -1
- package/dist/harmony68.mjs +1 -1
- package/dist/harmony69.cjs +1 -1
- package/dist/harmony69.mjs +1 -1
- package/dist/harmony70.cjs +1 -1
- package/dist/harmony70.mjs +1 -1
- package/dist/harmony71.cjs +2 -2
- package/dist/harmony71.mjs +2 -2
- package/dist/harmony72.cjs +2 -2
- package/dist/harmony72.mjs +2 -2
- package/dist/harmony73.cjs +2 -2
- package/dist/harmony73.mjs +2 -2
- package/dist/harmony74.cjs +2 -2
- package/dist/harmony74.mjs +2 -2
- package/dist/harmony75.cjs +3 -3
- package/dist/harmony75.mjs +3 -3
- package/dist/harmony76.cjs +6 -6
- package/dist/harmony76.mjs +6 -6
- package/dist/harmony79.cjs +2 -2
- package/dist/harmony79.mjs +2 -2
- package/dist/harmony81.cjs +12 -7
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +11 -6
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +20 -8
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +20 -8
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +3 -6
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +3 -6
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +9 -57
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +8 -56
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +9 -42
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +8 -41
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +57 -5
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +57 -5
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +42 -9
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +41 -8
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +6 -25
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +5 -24
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +6 -3
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +6 -3
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +24 -21
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +23 -20
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +3 -9
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +3 -9
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +19 -9
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +21 -11
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +11 -20
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +11 -20
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +2 -2
- package/dist/harmony94.mjs +2 -2
- package/dist/harmony95.cjs +22 -19
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +21 -18
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +5 -13
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +5 -13
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +5 -21
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +5 -21
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +6 -7
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +5 -6
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +19 -7
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +18 -6
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/features/publicApi/hooks/useSwitchTeamMutation.d.ts +15 -0
- package/dist/types/src/features/publicApi/hooks/useSwitchTeamMutation.test.d.ts +1 -0
- package/dist/types/src/features/publicApi/team.d.ts +61 -0
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +10 -0
- package/dist/types/tests/utils/apiHelpers.d.ts +1 -0
- package/package.json +1 -1
package/dist/harmony93.mjs
CHANGED
@@ -1,24 +1,15 @@
|
|
1
|
-
const
|
2
|
-
const
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
badge,
|
9
|
-
tag,
|
10
|
-
withNavLinkStyle,
|
11
|
-
disabled,
|
12
|
-
projectNavigationItem,
|
13
|
-
projectNavigationItemDisabled
|
1
|
+
const container = "_container_1u995_1";
|
2
|
+
const planCta = "_planCta_1u995_15";
|
3
|
+
const upgradeIconWrapper = "_upgradeIconWrapper_1u995_19";
|
4
|
+
const styles = {
|
5
|
+
container,
|
6
|
+
planCta,
|
7
|
+
upgradeIconWrapper
|
14
8
|
};
|
15
9
|
export {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
projectNavigationItemDisabled,
|
21
|
-
tag,
|
22
|
-
withNavLinkStyle
|
10
|
+
container,
|
11
|
+
styles as default,
|
12
|
+
planCta,
|
13
|
+
upgradeIconWrapper
|
23
14
|
};
|
24
15
|
//# sourceMappingURL=harmony93.mjs.map
|
package/dist/harmony93.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony93.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony93.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony94.cjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const React = require("react");
|
4
|
-
const debounce = require("./
|
5
|
-
const throttle = require("./
|
4
|
+
const debounce = require("./harmony97.cjs");
|
5
|
+
const throttle = require("./harmony98.cjs");
|
6
6
|
function _interopNamespaceDefault(e) {
|
7
7
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
8
8
|
if (e) {
|
package/dist/harmony94.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from "react";
|
2
|
-
import debounce from "./
|
3
|
-
import throttle from "./
|
2
|
+
import debounce from "./harmony97.mjs";
|
3
|
+
import throttle from "./harmony98.mjs";
|
4
4
|
const patchResizeCallback = (resizeCallback, refreshMode, refreshRate, refreshOptions) => {
|
5
5
|
switch (refreshMode) {
|
6
6
|
case "debounce":
|
package/dist/harmony95.cjs
CHANGED
@@ -1,21 +1,24 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
exports.
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const menuContainer = "_menuContainer_1phdw_10";
|
4
|
+
const profileButton = "_profileButton_1phdw_20";
|
5
|
+
const profileImage = "_profileImage_1phdw_33";
|
6
|
+
const profileImageHighlight = "_profileImageHighlight_1phdw_41";
|
7
|
+
const profileImageUpgradeIcon = "_profileImageUpgradeIcon_1phdw_45";
|
8
|
+
const userIconWrapper = "_userIconWrapper_1phdw_51";
|
9
|
+
const styles = {
|
10
|
+
menuContainer,
|
11
|
+
profileButton,
|
12
|
+
profileImage,
|
13
|
+
profileImageHighlight,
|
14
|
+
profileImageUpgradeIcon,
|
15
|
+
userIconWrapper
|
16
|
+
};
|
17
|
+
exports.default = styles;
|
18
|
+
exports.menuContainer = menuContainer;
|
19
|
+
exports.profileButton = profileButton;
|
20
|
+
exports.profileImage = profileImage;
|
21
|
+
exports.profileImageHighlight = profileImageHighlight;
|
22
|
+
exports.profileImageUpgradeIcon = profileImageUpgradeIcon;
|
23
|
+
exports.userIconWrapper = userIconWrapper;
|
21
24
|
//# sourceMappingURL=harmony95.cjs.map
|
package/dist/harmony95.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony95.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony95.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/harmony95.mjs
CHANGED
@@ -1,21 +1,24 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
isFullyAuthenticated: z.boolean(),
|
16
|
-
exp: z.number()
|
17
|
-
});
|
1
|
+
const menuContainer = "_menuContainer_1phdw_10";
|
2
|
+
const profileButton = "_profileButton_1phdw_20";
|
3
|
+
const profileImage = "_profileImage_1phdw_33";
|
4
|
+
const profileImageHighlight = "_profileImageHighlight_1phdw_41";
|
5
|
+
const profileImageUpgradeIcon = "_profileImageUpgradeIcon_1phdw_45";
|
6
|
+
const userIconWrapper = "_userIconWrapper_1phdw_51";
|
7
|
+
const styles = {
|
8
|
+
menuContainer,
|
9
|
+
profileButton,
|
10
|
+
profileImage,
|
11
|
+
profileImageHighlight,
|
12
|
+
profileImageUpgradeIcon,
|
13
|
+
userIconWrapper
|
14
|
+
};
|
18
15
|
export {
|
19
|
-
|
16
|
+
styles as default,
|
17
|
+
menuContainer,
|
18
|
+
profileButton,
|
19
|
+
profileImage,
|
20
|
+
profileImageHighlight,
|
21
|
+
profileImageUpgradeIcon,
|
22
|
+
userIconWrapper
|
20
23
|
};
|
21
24
|
//# sourceMappingURL=harmony95.mjs.map
|
package/dist/harmony95.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony95.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony95.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/harmony96.cjs
CHANGED
@@ -1,17 +1,9 @@
|
|
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
|
-
const
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
detail: { token, payload: jwtTokenPayload.parseJwtTokenPayload(token.accessToken) }
|
11
|
-
});
|
12
|
-
}
|
3
|
+
const SidebarTeamRoles = {
|
4
|
+
admin: "admin",
|
5
|
+
biller: "biller",
|
6
|
+
owner: "owner"
|
13
7
|
};
|
14
|
-
|
15
|
-
let NewJwtIssuedEvent = _NewJwtIssuedEvent;
|
16
|
-
exports.NewJwtIssuedEvent = NewJwtIssuedEvent;
|
8
|
+
exports.SidebarTeamRoles = SidebarTeamRoles;
|
17
9
|
//# sourceMappingURL=harmony96.cjs.map
|
package/dist/harmony96.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony96.cjs","sources":["../src/
|
1
|
+
{"version":3,"file":"harmony96.cjs","sources":["../src/components/Sidebar/types.ts"],"sourcesContent":["import type { TypesFromMap } from '@utils'\n\nexport const SidebarTeamRoles = {\n\tmember: 'member',\n\tadmin: 'admin',\n\tbiller: 'biller',\n\towner: 'owner',\n} as const\n\nexport type SidebarTeamRole = TypesFromMap<typeof SidebarTeamRoles>\n\nexport type SidebarTeam = {\n\tid: number\n\tname: string\n\trole: SidebarTeamRole\n\tlogoUrl: string\n}\n"],"names":[],"mappings":";;AAEO,MAAM,mBAAmB;AAAA,EAE/B,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AACR;;"}
|
package/dist/harmony96.mjs
CHANGED
@@ -1,17 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const _NewJwtIssuedEvent = class _NewJwtIssuedEvent extends CustomEvent {
|
6
|
-
constructor(token) {
|
7
|
-
super(_NewJwtIssuedEvent.eventName, {
|
8
|
-
detail: { token, payload: parseJwtTokenPayload(token.accessToken) }
|
9
|
-
});
|
10
|
-
}
|
1
|
+
const SidebarTeamRoles = {
|
2
|
+
admin: "admin",
|
3
|
+
biller: "biller",
|
4
|
+
owner: "owner"
|
11
5
|
};
|
12
|
-
__publicField(_NewJwtIssuedEvent, "eventName", "new-jwt-issued");
|
13
|
-
let NewJwtIssuedEvent = _NewJwtIssuedEvent;
|
14
6
|
export {
|
15
|
-
|
7
|
+
SidebarTeamRoles
|
16
8
|
};
|
17
9
|
//# sourceMappingURL=harmony96.mjs.map
|
package/dist/harmony96.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony96.mjs","sources":["../src/
|
1
|
+
{"version":3,"file":"harmony96.mjs","sources":["../src/components/Sidebar/types.ts"],"sourcesContent":["import type { TypesFromMap } from '@utils'\n\nexport const SidebarTeamRoles = {\n\tmember: 'member',\n\tadmin: 'admin',\n\tbiller: 'biller',\n\towner: 'owner',\n} as const\n\nexport type SidebarTeamRole = TypesFromMap<typeof SidebarTeamRoles>\n\nexport type SidebarTeam = {\n\tid: number\n\tname: string\n\trole: SidebarTeamRole\n\tlogoUrl: string\n}\n"],"names":[],"mappings":"AAEO,MAAM,mBAAmB;AAAA,EAE/B,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AACR;"}
|
package/dist/harmony97.cjs
CHANGED
@@ -1,24 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
const
|
7
|
-
|
8
|
-
const userIconWrapper = "_userIconWrapper_1phdw_51";
|
9
|
-
const styles = {
|
10
|
-
menuContainer,
|
11
|
-
profileButton,
|
12
|
-
profileImage,
|
13
|
-
profileImageHighlight,
|
14
|
-
profileImageUpgradeIcon,
|
15
|
-
userIconWrapper
|
16
|
-
};
|
17
|
-
exports.default = styles;
|
18
|
-
exports.menuContainer = menuContainer;
|
19
|
-
exports.profileButton = profileButton;
|
20
|
-
exports.profileImage = profileImage;
|
21
|
-
exports.profileImageHighlight = profileImageHighlight;
|
22
|
-
exports.profileImageUpgradeIcon = profileImageUpgradeIcon;
|
23
|
-
exports.userIconWrapper = userIconWrapper;
|
3
|
+
const _commonjsHelpers = require("./harmony123.cjs");
|
4
|
+
const debounce$1 = require("./harmony108.cjs");
|
5
|
+
var debounceExports = debounce$1.__require();
|
6
|
+
const debounce = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(debounceExports);
|
7
|
+
exports.default = debounce;
|
24
8
|
//# sourceMappingURL=harmony97.cjs.map
|
package/dist/harmony97.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony97.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony97.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/harmony97.mjs
CHANGED
@@ -1,24 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const
|
5
|
-
const profileImageUpgradeIcon = "_profileImageUpgradeIcon_1phdw_45";
|
6
|
-
const userIconWrapper = "_userIconWrapper_1phdw_51";
|
7
|
-
const styles = {
|
8
|
-
menuContainer,
|
9
|
-
profileButton,
|
10
|
-
profileImage,
|
11
|
-
profileImageHighlight,
|
12
|
-
profileImageUpgradeIcon,
|
13
|
-
userIconWrapper
|
14
|
-
};
|
1
|
+
import { getDefaultExportFromCjs } from "./harmony123.mjs";
|
2
|
+
import { __require as requireDebounce } from "./harmony108.mjs";
|
3
|
+
var debounceExports = requireDebounce();
|
4
|
+
const debounce = /* @__PURE__ */ getDefaultExportFromCjs(debounceExports);
|
15
5
|
export {
|
16
|
-
|
17
|
-
menuContainer,
|
18
|
-
profileButton,
|
19
|
-
profileImage,
|
20
|
-
profileImageHighlight,
|
21
|
-
profileImageUpgradeIcon,
|
22
|
-
userIconWrapper
|
6
|
+
debounce as default
|
23
7
|
};
|
24
8
|
//# sourceMappingURL=harmony97.mjs.map
|
package/dist/harmony97.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony97.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony97.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony98.cjs
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
exports.SidebarTeamRoles = SidebarTeamRoles;
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const _commonjsHelpers = require("./harmony123.cjs");
|
4
|
+
const throttle$1 = require("./harmony112.cjs");
|
5
|
+
var throttleExports = throttle$1.__require();
|
6
|
+
const throttle = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(throttleExports);
|
7
|
+
exports.default = throttle;
|
9
8
|
//# sourceMappingURL=harmony98.cjs.map
|
package/dist/harmony98.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony98.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony98.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/harmony98.mjs
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
};
|
1
|
+
import { getDefaultExportFromCjs } from "./harmony123.mjs";
|
2
|
+
import { __require as requireThrottle } from "./harmony112.mjs";
|
3
|
+
var throttleExports = requireThrottle();
|
4
|
+
const throttle = /* @__PURE__ */ getDefaultExportFromCjs(throttleExports);
|
6
5
|
export {
|
7
|
-
|
6
|
+
throttle as default
|
8
7
|
};
|
9
8
|
//# sourceMappingURL=harmony98.mjs.map
|
package/dist/harmony98.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony98.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony98.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony99.cjs
CHANGED
@@ -1,9 +1,21 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const zod = require("zod");
|
4
|
+
const teamRoleTypes = require("./harmony60.cjs");
|
5
|
+
const JWT_TOKEN_PAYLOAD_SCHEMA = zod.z.object({
|
6
|
+
userId: zod.z.number(),
|
7
|
+
userUuid: zod.z.string().uuid(),
|
8
|
+
teamId: zod.z.number(),
|
9
|
+
teamUuid: zod.z.string().uuid(),
|
10
|
+
userTeamRole: teamRoleTypes.TEAM_ROLE_SCHEMA,
|
11
|
+
userEmail: zod.z.string().email(),
|
12
|
+
userName: zod.z.string(),
|
13
|
+
userCurrentTeamId: zod.z.number(),
|
14
|
+
planId: zod.z.number(),
|
15
|
+
planName: zod.z.string(),
|
16
|
+
isProviderAlpha: zod.z.boolean(),
|
17
|
+
isFullyAuthenticated: zod.z.boolean(),
|
18
|
+
exp: zod.z.number()
|
19
|
+
});
|
20
|
+
exports.JWT_TOKEN_PAYLOAD_SCHEMA = JWT_TOKEN_PAYLOAD_SCHEMA;
|
9
21
|
//# sourceMappingURL=harmony99.cjs.map
|
package/dist/harmony99.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony99.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony99.cjs","sources":["../src/features/auth/core/types/jwtTokenPayload.ts"],"sourcesContent":["import { z } from 'zod'\nimport { TEAM_ROLE_SCHEMA } from '../../../publicApi/types/teamRoleTypes'\n\nexport const JWT_TOKEN_PAYLOAD_SCHEMA = z.object({\n\tuserId: z.number(),\n\tuserUuid: z.string().uuid(),\n\tteamId: z.number(),\n\tteamUuid: z.string().uuid(),\n\tuserTeamRole: TEAM_ROLE_SCHEMA,\n\tuserEmail: z.string().email(),\n\tuserName: z.string(),\n\tuserCurrentTeamId: z.number(),\n\tplanId: z.number(),\n\tplanName: z.string(),\n\tisProviderAlpha: z.boolean(),\n\tisFullyAuthenticated: z.boolean(),\n\texp: z.number(),\n})\nexport type JwtTokenPayload = z.infer<typeof JWT_TOKEN_PAYLOAD_SCHEMA>\n"],"names":["z","TEAM_ROLE_SCHEMA"],"mappings":";;;;AAGa,MAAA,2BAA2BA,MAAE,OAAO;AAAA,EAChD,QAAQA,MAAE,OAAO;AAAA,EACjB,UAAUA,IAAA,EAAE,OAAO,EAAE,KAAK;AAAA,EAC1B,QAAQA,MAAE,OAAO;AAAA,EACjB,UAAUA,IAAA,EAAE,OAAO,EAAE,KAAK;AAAA,EAC1B,cAAcC,cAAA;AAAA,EACd,WAAWD,IAAA,EAAE,OAAO,EAAE,MAAM;AAAA,EAC5B,UAAUA,MAAE,OAAO;AAAA,EACnB,mBAAmBA,MAAE,OAAO;AAAA,EAC5B,QAAQA,MAAE,OAAO;AAAA,EACjB,UAAUA,MAAE,OAAO;AAAA,EACnB,iBAAiBA,MAAE,QAAQ;AAAA,EAC3B,sBAAsBA,MAAE,QAAQ;AAAA,EAChC,KAAKA,MAAE,OAAO;AACf,CAAC;;"}
|
package/dist/harmony99.mjs
CHANGED
@@ -1,9 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
import { z } from "zod";
|
2
|
+
import { TEAM_ROLE_SCHEMA } from "./harmony60.mjs";
|
3
|
+
const JWT_TOKEN_PAYLOAD_SCHEMA = z.object({
|
4
|
+
userId: z.number(),
|
5
|
+
userUuid: z.string().uuid(),
|
6
|
+
teamId: z.number(),
|
7
|
+
teamUuid: z.string().uuid(),
|
8
|
+
userTeamRole: TEAM_ROLE_SCHEMA,
|
9
|
+
userEmail: z.string().email(),
|
10
|
+
userName: z.string(),
|
11
|
+
userCurrentTeamId: z.number(),
|
12
|
+
planId: z.number(),
|
13
|
+
planName: z.string(),
|
14
|
+
isProviderAlpha: z.boolean(),
|
15
|
+
isFullyAuthenticated: z.boolean(),
|
16
|
+
exp: z.number()
|
17
|
+
});
|
5
18
|
export {
|
6
|
-
|
7
|
-
iconContainer
|
19
|
+
JWT_TOKEN_PAYLOAD_SCHEMA
|
8
20
|
};
|
9
21
|
//# sourceMappingURL=harmony99.mjs.map
|
package/dist/harmony99.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony99.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony99.mjs","sources":["../src/features/auth/core/types/jwtTokenPayload.ts"],"sourcesContent":["import { z } from 'zod'\nimport { TEAM_ROLE_SCHEMA } from '../../../publicApi/types/teamRoleTypes'\n\nexport const JWT_TOKEN_PAYLOAD_SCHEMA = z.object({\n\tuserId: z.number(),\n\tuserUuid: z.string().uuid(),\n\tteamId: z.number(),\n\tteamUuid: z.string().uuid(),\n\tuserTeamRole: TEAM_ROLE_SCHEMA,\n\tuserEmail: z.string().email(),\n\tuserName: z.string(),\n\tuserCurrentTeamId: z.number(),\n\tplanId: z.number(),\n\tplanName: z.string(),\n\tisProviderAlpha: z.boolean(),\n\tisFullyAuthenticated: z.boolean(),\n\texp: z.number(),\n})\nexport type JwtTokenPayload = z.infer<typeof JWT_TOKEN_PAYLOAD_SCHEMA>\n"],"names":[],"mappings":";;AAGa,MAAA,2BAA2B,EAAE,OAAO;AAAA,EAChD,QAAQ,EAAE,OAAO;AAAA,EACjB,UAAU,EAAE,OAAO,EAAE,KAAK;AAAA,EAC1B,QAAQ,EAAE,OAAO;AAAA,EACjB,UAAU,EAAE,OAAO,EAAE,KAAK;AAAA,EAC1B,cAAc;AAAA,EACd,WAAW,EAAE,OAAO,EAAE,MAAM;AAAA,EAC5B,UAAU,EAAE,OAAO;AAAA,EACnB,mBAAmB,EAAE,OAAO;AAAA,EAC5B,QAAQ,EAAE,OAAO;AAAA,EACjB,UAAU,EAAE,OAAO;AAAA,EACnB,iBAAiB,EAAE,QAAQ;AAAA,EAC3B,sBAAsB,EAAE,QAAQ;AAAA,EAChC,KAAK,EAAE,OAAO;AACf,CAAC;"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { HeaderBuilder } from '../../auth/core/headers/headerBuilder';
|
2
|
+
import { ApiMutationOverrides } from '../../../utils/types/apiMutationOverrides';
|
3
|
+
import { Wretch } from 'wretch';
|
4
|
+
import { ProjectApiBaseHeaders } from '../types/projectTypes';
|
5
|
+
import { SwitchTeamRequestBody, SwitchTeamResponse } from '../types/teamTypes';
|
6
|
+
/**
|
7
|
+
* A react-query wrapper about the team switch public API endpoint
|
8
|
+
*
|
9
|
+
* @param wretchClient - Wretch instance configured to a public API instance.
|
10
|
+
* @param headers - Headers to include in the request.
|
11
|
+
* @param overrides - Additional options to pass to the query.
|
12
|
+
*/
|
13
|
+
export declare function useSwitchTeamMutation<T>(wretchClient: Wretch<T>, headers: HeaderBuilder<ProjectApiBaseHeaders>, overrides?: ApiMutationOverrides<SwitchTeamResponse, SwitchTeamRequestBody>): import('@tanstack/react-query').UseMutationResult<void | null, undefined, {
|
14
|
+
id: number;
|
15
|
+
}, undefined>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -374,3 +374,64 @@ export declare const retrieveTeam: import('@lokalise/api-contracts').GetRouteDef
|
|
374
374
|
}, {
|
375
375
|
'X-LOKALISE-PLUGIN': string;
|
376
376
|
}>]>>, false, false>;
|
377
|
+
export declare const switchTeam: import('@lokalise/api-contracts').PayloadRouteDefinition<never, import('zod').ZodObject<{
|
378
|
+
id: import('zod').ZodNumber;
|
379
|
+
}, "strip", import('zod').ZodTypeAny, {
|
380
|
+
id: number;
|
381
|
+
}, {
|
382
|
+
id: number;
|
383
|
+
}>, import('zod').ZodUnion<[import('zod').ZodVoid, import('zod').ZodNull]>, undefined, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
384
|
+
authorization: import('zod').ZodString;
|
385
|
+
}, "strip", import('zod').ZodTypeAny, {
|
386
|
+
authorization: string;
|
387
|
+
}, {
|
388
|
+
authorization: string;
|
389
|
+
}>, import('zod').ZodObject<{
|
390
|
+
AUTHORIZATION: import('zod').ZodString;
|
391
|
+
}, "strip", import('zod').ZodTypeAny, {
|
392
|
+
AUTHORIZATION: string;
|
393
|
+
}, {
|
394
|
+
AUTHORIZATION: string;
|
395
|
+
}>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
396
|
+
'X-API-Token': import('zod').ZodString;
|
397
|
+
}, "strip", import('zod').ZodTypeAny, {
|
398
|
+
'X-API-Token': string;
|
399
|
+
}, {
|
400
|
+
'X-API-Token': string;
|
401
|
+
}>, import('zod').ZodObject<{
|
402
|
+
'X-Api-Token': import('zod').ZodString;
|
403
|
+
}, "strip", import('zod').ZodTypeAny, {
|
404
|
+
'X-Api-Token': string;
|
405
|
+
}, {
|
406
|
+
'X-Api-Token': string;
|
407
|
+
}>, import('zod').ZodObject<{
|
408
|
+
'x-api-token': import('zod').ZodString;
|
409
|
+
}, "strip", import('zod').ZodTypeAny, {
|
410
|
+
'x-api-token': string;
|
411
|
+
}, {
|
412
|
+
'x-api-token': string;
|
413
|
+
}>, import('zod').ZodObject<{
|
414
|
+
'X-API-TOKEN': import('zod').ZodString;
|
415
|
+
}, "strip", import('zod').ZodTypeAny, {
|
416
|
+
'X-API-TOKEN': string;
|
417
|
+
}, {
|
418
|
+
'X-API-TOKEN': string;
|
419
|
+
}>]>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
420
|
+
'X-Lokalise-Plugin': import('zod').ZodString;
|
421
|
+
}, "strip", import('zod').ZodTypeAny, {
|
422
|
+
'X-Lokalise-Plugin': string;
|
423
|
+
}, {
|
424
|
+
'X-Lokalise-Plugin': string;
|
425
|
+
}>, import('zod').ZodObject<{
|
426
|
+
'x-lokalise-plugin': import('zod').ZodString;
|
427
|
+
}, "strip", import('zod').ZodTypeAny, {
|
428
|
+
'x-lokalise-plugin': string;
|
429
|
+
}, {
|
430
|
+
'x-lokalise-plugin': string;
|
431
|
+
}>, import('zod').ZodObject<{
|
432
|
+
'X-LOKALISE-PLUGIN': import('zod').ZodString;
|
433
|
+
}, "strip", import('zod').ZodTypeAny, {
|
434
|
+
'X-LOKALISE-PLUGIN': string;
|
435
|
+
}, {
|
436
|
+
'X-LOKALISE-PLUGIN': string;
|
437
|
+
}>]>>, false, false>;
|
@@ -412,3 +412,13 @@ export declare const RETRIEVE_TEAM_RESPONSE_SCHEMA: z.ZodObject<{
|
|
412
412
|
};
|
413
413
|
}>;
|
414
414
|
export type RetrieveTeamResponse = z.infer<typeof RETRIEVE_TEAM_RESPONSE_SCHEMA>;
|
415
|
+
export declare const SWITCH_TEAM_REQUEST_BODY_SCHEMA: z.ZodObject<{
|
416
|
+
id: z.ZodNumber;
|
417
|
+
}, "strip", z.ZodTypeAny, {
|
418
|
+
id: number;
|
419
|
+
}, {
|
420
|
+
id: number;
|
421
|
+
}>;
|
422
|
+
export type SwitchTeamRequestBody = z.infer<typeof SWITCH_TEAM_REQUEST_BODY_SCHEMA>;
|
423
|
+
export declare const SWITCH_TEAM_RESPONSE_SCHEMA: z.ZodUnion<[z.ZodVoid, z.ZodNull]>;
|
424
|
+
export type SwitchTeamResponse = z.infer<typeof SWITCH_TEAM_RESPONSE_SCHEMA>;
|
@@ -11,6 +11,7 @@ export declare const apiHeaderBuilder: HeaderBuilder<{
|
|
11
11
|
authorization: `Bearer ${string}`;
|
12
12
|
}>;
|
13
13
|
export declare const mockGetResponse: (url: string, responseData?: JsonBodyType) => void;
|
14
|
+
export declare const mockPostResponse: (url: string, responseData?: JsonBodyType) => void;
|
14
15
|
type RenderQueryHookArgs = {
|
15
16
|
client: typeof apiWretchClient;
|
16
17
|
builder: typeof apiHeaderBuilder;
|