@lokalise/harmony 1.32.1 → 1.32.2
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/harmony58.cjs +1 -18
- package/dist/harmony58.cjs.map +1 -1
- package/dist/harmony58.mjs +1 -18
- package/dist/harmony58.mjs.map +1 -1
- package/dist/harmony70.cjs +1 -1
- package/dist/harmony70.mjs +1 -1
- package/dist/harmony71.cjs +1 -1
- package/dist/harmony71.mjs +1 -1
- package/dist/harmony72.cjs +1 -1
- package/dist/harmony72.mjs +1 -1
- 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 +2 -2
- package/dist/harmony75.mjs +2 -2
- package/dist/harmony76.cjs +2 -2
- package/dist/harmony76.mjs +2 -2
- package/dist/harmony77.cjs +3 -3
- package/dist/harmony77.mjs +3 -3
- package/dist/harmony81.cjs +2 -2
- package/dist/harmony81.mjs +2 -2
- package/dist/harmony83.cjs +2 -2
- package/dist/harmony83.mjs +2 -2
- package/dist/harmony84.cjs +6 -12
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +5 -11
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +6 -9
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +6 -9
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +10 -12
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +9 -11
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +57 -21
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +56 -20
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +42 -6
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +41 -5
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +6 -10
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +5 -9
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +6 -6
- package/dist/harmony90.mjs +6 -6
- package/dist/harmony91.cjs +24 -57
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +23 -56
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +6 -42
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +5 -41
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +21 -5
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +21 -5
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +7 -4
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +7 -4
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +12 -25
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +11 -24
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +20 -5
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +20 -5
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +9 -18
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +10 -19
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +9 -9
- package/dist/harmony98.mjs +9 -9
- package/dist/types/src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.d.ts +3 -3
- package/dist/types/src/features/publicApi/hooks/useListPermissionTemplates.d.ts +1 -1
- package/dist/types/src/features/publicApi/permissionTemplates.d.ts +5 -5
- package/dist/types/src/features/publicApi/projects.d.ts +15 -15
- package/dist/types/src/features/publicApi/types/permissionTemplateTypes.d.ts +8 -8
- package/dist/types/src/features/publicApi/types/permissionTypes.d.ts +4 -4
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +15 -15
- package/package.json +1 -1
package/dist/harmony58.cjs
CHANGED
@@ -1,24 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const zod = require("zod");
|
4
|
-
const PERMISSION_ID_SCHEMA = zod.z.
|
5
|
-
zod.z.literal("activity"),
|
6
|
-
zod.z.literal("branches_create"),
|
7
|
-
zod.z.literal("branches_main_modify"),
|
8
|
-
zod.z.literal("branches_merge"),
|
9
|
-
zod.z.literal("contributors"),
|
10
|
-
zod.z.literal("custom_status_modify"),
|
11
|
-
zod.z.literal("download"),
|
12
|
-
zod.z.literal("glossary_delete"),
|
13
|
-
zod.z.literal("glossary_edit"),
|
14
|
-
zod.z.literal("manage_keys"),
|
15
|
-
zod.z.literal("manage_languages"),
|
16
|
-
zod.z.literal("review"),
|
17
|
-
zod.z.literal("screenshots"),
|
18
|
-
zod.z.literal("settings"),
|
19
|
-
zod.z.literal("statistics"),
|
20
|
-
zod.z.literal("upload")
|
21
|
-
]);
|
4
|
+
const PERMISSION_ID_SCHEMA = zod.z.string();
|
22
5
|
const PERMISSION_SCOPE_SCHEMA = zod.z.union([
|
23
6
|
zod.z.literal("project"),
|
24
7
|
zod.z.literal("team"),
|
package/dist/harmony58.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony58.cjs","sources":["../src/features/publicApi/types/permissionTypes.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const PERMISSION_ID_SCHEMA = z.
|
1
|
+
{"version":3,"file":"harmony58.cjs","sources":["../src/features/publicApi/types/permissionTypes.ts"],"sourcesContent":["import { z } from 'zod'\n\n// TODO this can be limited by an enum, but we need to align on the values in the future\nexport const PERMISSION_ID_SCHEMA = z.string()\n\nexport type PermissionId = z.infer<typeof PERMISSION_ID_SCHEMA>\n\nexport const PERMISSION_SCOPE_SCHEMA = z.union([\n\tz.literal('project'),\n\tz.literal('team'),\n\tz.literal('user'),\n])\n\nexport type PermissionScope = z.infer<typeof PERMISSION_SCOPE_SCHEMA>\n\nexport const PERMISSION_DETAILS_SCHEMA = z.object({\n\tid: PERMISSION_ID_SCHEMA,\n\tscope: PERMISSION_SCOPE_SCHEMA,\n\ttitle: z.string(),\n\tgroup: z.string(),\n\tdescription: z.string().nullable(),\n\tnew_permission: z.boolean(),\n\tdoes_set_all_read_only_languages: z.boolean(),\n\tis_hidden: z.boolean(),\n})\n\nexport type PermissionDetails = z.infer<typeof PERMISSION_DETAILS_SCHEMA>\n"],"names":["z"],"mappings":";;;AAGa,MAAA,uBAAuBA,MAAE,OAAO;AAIhC,MAAA,0BAA0BA,MAAE,MAAM;AAAA,EAC9CA,IAAA,EAAE,QAAQ,SAAS;AAAA,EACnBA,IAAA,EAAE,QAAQ,MAAM;AAAA,EAChBA,IAAA,EAAE,QAAQ,MAAM;AACjB,CAAC;AAIY,MAAA,4BAA4BA,MAAE,OAAO;AAAA,EACjD,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,OAAOA,MAAE,OAAO;AAAA,EAChB,OAAOA,MAAE,OAAO;AAAA,EAChB,aAAaA,IAAA,EAAE,OAAO,EAAE,SAAS;AAAA,EACjC,gBAAgBA,MAAE,QAAQ;AAAA,EAC1B,kCAAkCA,MAAE,QAAQ;AAAA,EAC5C,WAAWA,MAAE,QAAQ;AACtB,CAAC;;;;"}
|
package/dist/harmony58.mjs
CHANGED
@@ -1,22 +1,5 @@
|
|
1
1
|
import { z } from "zod";
|
2
|
-
const PERMISSION_ID_SCHEMA = z.
|
3
|
-
z.literal("activity"),
|
4
|
-
z.literal("branches_create"),
|
5
|
-
z.literal("branches_main_modify"),
|
6
|
-
z.literal("branches_merge"),
|
7
|
-
z.literal("contributors"),
|
8
|
-
z.literal("custom_status_modify"),
|
9
|
-
z.literal("download"),
|
10
|
-
z.literal("glossary_delete"),
|
11
|
-
z.literal("glossary_edit"),
|
12
|
-
z.literal("manage_keys"),
|
13
|
-
z.literal("manage_languages"),
|
14
|
-
z.literal("review"),
|
15
|
-
z.literal("screenshots"),
|
16
|
-
z.literal("settings"),
|
17
|
-
z.literal("statistics"),
|
18
|
-
z.literal("upload")
|
19
|
-
]);
|
2
|
+
const PERMISSION_ID_SCHEMA = z.string();
|
20
3
|
const PERMISSION_SCOPE_SCHEMA = z.union([
|
21
4
|
z.literal("project"),
|
22
5
|
z.literal("team"),
|
package/dist/harmony58.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony58.mjs","sources":["../src/features/publicApi/types/permissionTypes.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const PERMISSION_ID_SCHEMA = z.
|
1
|
+
{"version":3,"file":"harmony58.mjs","sources":["../src/features/publicApi/types/permissionTypes.ts"],"sourcesContent":["import { z } from 'zod'\n\n// TODO this can be limited by an enum, but we need to align on the values in the future\nexport const PERMISSION_ID_SCHEMA = z.string()\n\nexport type PermissionId = z.infer<typeof PERMISSION_ID_SCHEMA>\n\nexport const PERMISSION_SCOPE_SCHEMA = z.union([\n\tz.literal('project'),\n\tz.literal('team'),\n\tz.literal('user'),\n])\n\nexport type PermissionScope = z.infer<typeof PERMISSION_SCOPE_SCHEMA>\n\nexport const PERMISSION_DETAILS_SCHEMA = z.object({\n\tid: PERMISSION_ID_SCHEMA,\n\tscope: PERMISSION_SCOPE_SCHEMA,\n\ttitle: z.string(),\n\tgroup: z.string(),\n\tdescription: z.string().nullable(),\n\tnew_permission: z.boolean(),\n\tdoes_set_all_read_only_languages: z.boolean(),\n\tis_hidden: z.boolean(),\n})\n\nexport type PermissionDetails = z.infer<typeof PERMISSION_DETAILS_SCHEMA>\n"],"names":[],"mappings":";AAGa,MAAA,uBAAuB,EAAE,OAAO;AAIhC,MAAA,0BAA0B,EAAE,MAAM;AAAA,EAC9C,EAAE,QAAQ,SAAS;AAAA,EACnB,EAAE,QAAQ,MAAM;AAAA,EAChB,EAAE,QAAQ,MAAM;AACjB,CAAC;AAIY,MAAA,4BAA4B,EAAE,OAAO;AAAA,EACjD,IAAI;AAAA,EACJ,OAAO;AAAA,EACP,OAAO,EAAE,OAAO;AAAA,EAChB,OAAO,EAAE,OAAO;AAAA,EAChB,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA,EACjC,gBAAgB,EAAE,QAAQ;AAAA,EAC1B,kCAAkC,EAAE,QAAQ;AAAA,EAC5C,WAAW,EAAE,QAAQ;AACtB,CAAC;"}
|
package/dist/harmony70.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("./harmony84.cjs");
|
5
5
|
const Avatar = ({
|
6
6
|
src,
|
7
7
|
href = "/",
|
package/dist/harmony70.mjs
CHANGED
package/dist/harmony71.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("./harmony66.cjs");
|
6
|
-
const IconLink_module = require("./
|
6
|
+
const IconLink_module = require("./harmony85.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/harmony71.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 "./harmony66.mjs";
|
4
|
-
import styles from "./
|
4
|
+
import styles from "./harmony85.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/harmony72.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("./harmony66.cjs");
|
6
|
-
const Menu_module = require("./
|
6
|
+
const Menu_module = require("./harmony86.cjs");
|
7
7
|
const Menu = ({ children, icon: Icon }) => {
|
8
8
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
9
9
|
louis.Menu,
|
package/dist/harmony72.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 "./harmony66.mjs";
|
4
|
-
import styles from "./
|
4
|
+
import styles from "./harmony86.mjs";
|
5
5
|
const Menu = ({ children, icon: Icon }) => {
|
6
6
|
return /* @__PURE__ */ jsx(
|
7
7
|
Menu$1,
|
package/dist/harmony73.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("./harmony87.cjs");
|
5
|
+
const ProfileMenuProvider = require("./harmony88.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=harmony73.cjs.map
|
package/dist/harmony73.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 "./harmony87.mjs";
|
3
|
+
import { ProfileMenuProvider } from "./harmony88.mjs";
|
4
4
|
const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsx(ProfileMenuProvider, { config, children: /* @__PURE__ */ jsx(ProfileMenuContent, { children }) });
|
5
5
|
export {
|
6
6
|
ProfileMenu
|
package/dist/harmony74.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("./harmony89.cjs");
|
6
|
+
const ProfileSettingsMenuItem_module = require("./harmony90.cjs");
|
7
7
|
const ProfileSettingsMenuItem = ({
|
8
8
|
href,
|
9
9
|
onClick,
|
package/dist/harmony74.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 "./harmony89.mjs";
|
4
|
+
import styles from "./harmony90.mjs";
|
5
5
|
const ProfileSettingsMenuItem = ({
|
6
6
|
href,
|
7
7
|
onClick,
|
package/dist/harmony75.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("./harmony8.cjs");
|
6
|
-
const ProfileMenuContext = require("./
|
7
|
-
const TeamMenuItem_module = require("./
|
6
|
+
const ProfileMenuContext = require("./harmony89.cjs");
|
7
|
+
const TeamMenuItem_module = require("./harmony91.cjs");
|
8
8
|
const TeamMenuItem = ({ team, onClick, hidePlanLabel }) => {
|
9
9
|
const { currentTeam, planId } = ProfileMenuContext.useProfileMenu();
|
10
10
|
const contextTeam = team || currentTeam;
|
package/dist/harmony75.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 "./harmony8.mjs";
|
4
|
-
import { useProfileMenu } from "./
|
5
|
-
import styles from "./
|
4
|
+
import { useProfileMenu } from "./harmony89.mjs";
|
5
|
+
import styles from "./harmony91.mjs";
|
6
6
|
const TeamMenuItem = ({ team, onClick, hidePlanLabel }) => {
|
7
7
|
const { currentTeam, planId } = useProfileMenu();
|
8
8
|
const contextTeam = team || currentTeam;
|
package/dist/harmony76.cjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const ProfileMenuContext = require("./
|
4
|
+
const ProfileMenuContext = require("./harmony89.cjs");
|
5
5
|
const TeamMenuItem = require("./harmony75.cjs");
|
6
|
-
const TeamSwitch_module = require("./
|
6
|
+
const TeamSwitch_module = require("./harmony92.cjs");
|
7
7
|
const TeamSwitch = ({ onSwitchTeam }) => {
|
8
8
|
const { otherTeams } = ProfileMenuContext.useProfileMenu();
|
9
9
|
if (otherTeams.length === 0) {
|
package/dist/harmony76.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { useProfileMenu } from "./
|
2
|
+
import { useProfileMenu } from "./harmony89.mjs";
|
3
3
|
import { TeamMenuItem } from "./harmony75.mjs";
|
4
|
-
import styles from "./
|
4
|
+
import styles from "./harmony92.mjs";
|
5
5
|
const TeamSwitch = ({ onSwitchTeam }) => {
|
6
6
|
const { otherTeams } = useProfileMenu();
|
7
7
|
if (otherTeams.length === 0) {
|
package/dist/harmony77.cjs
CHANGED
@@ -3,9 +3,9 @@ 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("./harmony8.cjs");
|
6
|
-
const UpgradeIcon = require("./
|
7
|
-
const ProfileMenuContext = require("./
|
8
|
-
const UpgradeMenuItem_module = require("./
|
6
|
+
const UpgradeIcon = require("./harmony93.cjs");
|
7
|
+
const ProfileMenuContext = require("./harmony89.cjs");
|
8
|
+
const UpgradeMenuItem_module = require("./harmony94.cjs");
|
9
9
|
const UpgradeMenuItem = ({ upgradeOptionHref }) => {
|
10
10
|
const { planId, trialDaysLeft, showUpgradeCta } = ProfileMenuContext.useProfileMenu();
|
11
11
|
if (!showUpgradeCta) {
|
package/dist/harmony77.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
2
2
|
import { MenuItem } from "@lokalise/louis";
|
3
3
|
import { isFreePlan } from "./harmony8.mjs";
|
4
|
-
import { UpgradeIcon } from "./
|
5
|
-
import { useProfileMenu } from "./
|
6
|
-
import styles from "./
|
4
|
+
import { UpgradeIcon } from "./harmony93.mjs";
|
5
|
+
import { useProfileMenu } from "./harmony89.mjs";
|
6
|
+
import styles from "./harmony94.mjs";
|
7
7
|
const UpgradeMenuItem = ({ upgradeOptionHref }) => {
|
8
8
|
const { planId, trialDaysLeft, showUpgradeCta } = useProfileMenu();
|
9
9
|
if (!showUpgradeCta) {
|
package/dist/harmony81.cjs
CHANGED
@@ -4,8 +4,8 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const clsx = require("./harmony66.cjs");
|
6
6
|
const React = require("react");
|
7
|
-
const NavItemContents = require("./
|
8
|
-
const styles_module = require("./
|
7
|
+
const NavItemContents = require("./harmony95.cjs");
|
8
|
+
const styles_module = require("./harmony96.cjs");
|
9
9
|
const NavigationTabsItem = React.forwardRef(
|
10
10
|
({ label, href = "", disabled = false, badge, onClick, novel }, ref) => /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { tooltip: "You do not have access to this function", show: disabled, children: /* @__PURE__ */ jsxRuntime.jsx(
|
11
11
|
"div",
|
package/dist/harmony81.mjs
CHANGED
@@ -2,8 +2,8 @@ import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip } from "@lokalise/louis";
|
3
3
|
import { clsx } from "./harmony66.mjs";
|
4
4
|
import { forwardRef } from "react";
|
5
|
-
import { NavItemContents } from "./
|
6
|
-
import classes from "./
|
5
|
+
import { NavItemContents } from "./harmony95.mjs";
|
6
|
+
import classes from "./harmony96.mjs";
|
7
7
|
const NavigationTabsItem = forwardRef(
|
8
8
|
({ label, href = "", disabled = false, badge, onClick, novel }, ref) => /* @__PURE__ */ jsx(Tooltip, { tooltip: "You do not have access to this function", show: disabled, children: /* @__PURE__ */ jsx(
|
9
9
|
"div",
|
package/dist/harmony83.cjs
CHANGED
@@ -4,8 +4,8 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const reactTable = require("@tanstack/react-table");
|
6
6
|
const clsx = require("./harmony66.cjs");
|
7
|
-
const SortingIcon = require("./
|
8
|
-
const TableHeaderCell_module = require("./
|
7
|
+
const SortingIcon = require("./harmony97.cjs");
|
8
|
+
const TableHeaderCell_module = require("./harmony98.cjs");
|
9
9
|
const Cell = ({ children, align, className }) => {
|
10
10
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
11
11
|
louis.TableHeaderCell,
|
package/dist/harmony83.mjs
CHANGED
@@ -2,8 +2,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { TableHeaderCell as TableHeaderCell$1 } from "@lokalise/louis";
|
3
3
|
import { flexRender } from "@tanstack/react-table";
|
4
4
|
import { clsx } from "./harmony66.mjs";
|
5
|
-
import { SortingIcon } from "./
|
6
|
-
import styles from "./
|
5
|
+
import { SortingIcon } from "./harmony97.mjs";
|
6
|
+
import styles from "./harmony98.mjs";
|
7
7
|
const Cell = ({ children, align, className }) => {
|
8
8
|
return /* @__PURE__ */ jsx(
|
9
9
|
TableHeaderCell$1,
|
package/dist/harmony84.cjs
CHANGED
@@ -1,15 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
if (direction === "asc") {
|
7
|
-
return /* @__PURE__ */ jsxRuntime.jsx(louis.SortAscendingIcon, { ariaLabel: "ascending sorting" });
|
8
|
-
}
|
9
|
-
if (direction === "desc") {
|
10
|
-
return /* @__PURE__ */ jsxRuntime.jsx(louis.SortDescendingIcon, { ariaLabel: "descending sorting" });
|
11
|
-
}
|
12
|
-
return /* @__PURE__ */ jsxRuntime.jsx(louis.SortIcon, { ariaLabel: "sorting" });
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const logoLink = "_logoLink_1baxb_1";
|
4
|
+
const styles = {
|
5
|
+
logoLink
|
13
6
|
};
|
14
|
-
exports.
|
7
|
+
exports.default = styles;
|
8
|
+
exports.logoLink = logoLink;
|
15
9
|
//# sourceMappingURL=harmony84.cjs.map
|
package/dist/harmony84.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony84.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony84.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony84.mjs
CHANGED
@@ -1,15 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
if (direction === "asc") {
|
5
|
-
return /* @__PURE__ */ jsx(SortAscendingIcon, { ariaLabel: "ascending sorting" });
|
6
|
-
}
|
7
|
-
if (direction === "desc") {
|
8
|
-
return /* @__PURE__ */ jsx(SortDescendingIcon, { ariaLabel: "descending sorting" });
|
9
|
-
}
|
10
|
-
return /* @__PURE__ */ jsx(SortIcon, { ariaLabel: "sorting" });
|
1
|
+
const logoLink = "_logoLink_1baxb_1";
|
2
|
+
const styles = {
|
3
|
+
logoLink
|
11
4
|
};
|
12
5
|
export {
|
13
|
-
|
6
|
+
styles as default,
|
7
|
+
logoLink
|
14
8
|
};
|
15
9
|
//# sourceMappingURL=harmony84.mjs.map
|
package/dist/harmony84.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony84.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony84.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony85.cjs
CHANGED
@@ -1,15 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const rightAlignedCell = "_rightAlignedCell_b5tlh_19";
|
3
|
+
const link = "_link_18vhx_1";
|
4
|
+
const active = "_active_18vhx_18";
|
6
5
|
const styles = {
|
7
|
-
|
8
|
-
|
9
|
-
rightAlignedCell
|
6
|
+
link,
|
7
|
+
active
|
10
8
|
};
|
11
|
-
exports.
|
9
|
+
exports.active = active;
|
12
10
|
exports.default = styles;
|
13
|
-
exports.
|
14
|
-
exports.rightAlignedCell = rightAlignedCell;
|
11
|
+
exports.link = link;
|
15
12
|
//# sourceMappingURL=harmony85.cjs.map
|
package/dist/harmony85.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony85.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony85.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/harmony85.mjs
CHANGED
@@ -1,15 +1,12 @@
|
|
1
|
-
const
|
2
|
-
const
|
3
|
-
const rightAlignedCell = "_rightAlignedCell_b5tlh_19";
|
1
|
+
const link = "_link_18vhx_1";
|
2
|
+
const active = "_active_18vhx_18";
|
4
3
|
const styles = {
|
5
|
-
|
6
|
-
|
7
|
-
rightAlignedCell
|
4
|
+
link,
|
5
|
+
active
|
8
6
|
};
|
9
7
|
export {
|
10
|
-
|
8
|
+
active,
|
11
9
|
styles as default,
|
12
|
-
|
13
|
-
rightAlignedCell
|
10
|
+
link
|
14
11
|
};
|
15
12
|
//# sourceMappingURL=harmony85.mjs.map
|
package/dist/harmony85.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony85.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony85.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/harmony86.cjs
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
] });
|
13
|
-
exports.NavItemContents = NavItemContents;
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const dropdownButton = "_dropdownButton_1naek_1";
|
4
|
+
const dropdownButtonActive = "_dropdownButtonActive_1naek_19";
|
5
|
+
const styles = {
|
6
|
+
dropdownButton,
|
7
|
+
dropdownButtonActive
|
8
|
+
};
|
9
|
+
exports.default = styles;
|
10
|
+
exports.dropdownButton = dropdownButton;
|
11
|
+
exports.dropdownButtonActive = dropdownButtonActive;
|
14
12
|
//# sourceMappingURL=harmony86.cjs.map
|
package/dist/harmony86.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony86.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony86.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/harmony86.mjs
CHANGED
@@ -1,14 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
!!badge && /* @__PURE__ */ jsx("div", { className: classes.badge, "aria-label": `${badge} items requiring attention`, children: badge > 9 ? "9+" : badge })
|
8
|
-
] }),
|
9
|
-
!!novel && /* @__PURE__ */ jsx(Tag, { className: classes.tag, children: novel })
|
10
|
-
] });
|
1
|
+
const dropdownButton = "_dropdownButton_1naek_1";
|
2
|
+
const dropdownButtonActive = "_dropdownButtonActive_1naek_19";
|
3
|
+
const styles = {
|
4
|
+
dropdownButton,
|
5
|
+
dropdownButtonActive
|
6
|
+
};
|
11
7
|
export {
|
12
|
-
|
8
|
+
styles as default,
|
9
|
+
dropdownButton,
|
10
|
+
dropdownButtonActive
|
13
11
|
};
|
14
12
|
//# sourceMappingURL=harmony86.mjs.map
|
package/dist/harmony86.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony86.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony86.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/harmony87.cjs
CHANGED
@@ -1,24 +1,60 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
8
|
-
const
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const clsx = require("./harmony66.cjs");
|
6
|
+
const UpgradeIcon = require("./harmony93.cjs");
|
7
|
+
const ProfileMenuContent_module = require("./harmony102.cjs");
|
8
|
+
const ProfileMenuContext = require("./harmony89.cjs");
|
9
|
+
const ProfileMenuContent = ({ children }) => {
|
10
|
+
const {
|
11
|
+
currentTeam,
|
12
|
+
otherTeams,
|
13
|
+
showUpgradeCta,
|
14
|
+
showBillingButton,
|
15
|
+
allowTeamCreation,
|
16
|
+
isProviderAlpha,
|
17
|
+
canAccessTeamSettings,
|
18
|
+
isEndOfTrialActive,
|
19
|
+
isTeamSuspended,
|
20
|
+
isFullyAuthenticated
|
21
|
+
} = ProfileMenuContext.useProfileMenu();
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
23
|
+
louis.Menu,
|
24
|
+
{
|
25
|
+
menuButton: () => /* @__PURE__ */ jsxRuntime.jsxs("button", { className: ProfileMenuContent_module.default.profileButton, "aria-label": "Profile menu", type: "button", children: [
|
26
|
+
(currentTeam == null ? void 0 : currentTeam.logoUrl) ? /* @__PURE__ */ jsxRuntime.jsx(
|
27
|
+
"img",
|
28
|
+
{
|
29
|
+
src: currentTeam.logoUrl,
|
30
|
+
className: clsx.clsx(ProfileMenuContent_module.default.profileImage, {
|
31
|
+
[ProfileMenuContent_module.default.profileImageHighlight]: showUpgradeCta
|
32
|
+
}),
|
33
|
+
alt: "Team Logo"
|
34
|
+
}
|
35
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
36
|
+
"div",
|
37
|
+
{
|
38
|
+
className: clsx.clsx(ProfileMenuContent_module.default.userIconWrapper, "flex-row", "align-center", "items-center", {
|
39
|
+
[ProfileMenuContent_module.default.profileImageHighlight]: showUpgradeCta
|
40
|
+
}),
|
41
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.UserIcon, { size: "25px" })
|
42
|
+
}
|
43
|
+
),
|
44
|
+
showUpgradeCta && /* @__PURE__ */ jsxRuntime.jsx(UpgradeIcon.UpgradeIcon, { className: ProfileMenuContent_module.default.profileImageUpgradeIcon })
|
45
|
+
] }),
|
46
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.MenuList, { placement: "right-end", className: ProfileMenuContent_module.default.menuContainer, children: children({
|
47
|
+
allowTeamCreation,
|
48
|
+
otherTeams,
|
49
|
+
canAccessTeamSettings,
|
50
|
+
isEndOfTrialActive,
|
51
|
+
isTeamSuspended,
|
52
|
+
showBillingButton,
|
53
|
+
isProviderAlpha,
|
54
|
+
isFullyAuthenticated
|
55
|
+
}) })
|
56
|
+
}
|
57
|
+
);
|
16
58
|
};
|
17
|
-
exports.
|
18
|
-
exports.default = classes;
|
19
|
-
exports.disabled = disabled;
|
20
|
-
exports.projectNavigationItem = projectNavigationItem;
|
21
|
-
exports.projectNavigationItemDisabled = projectNavigationItemDisabled;
|
22
|
-
exports.tag = tag;
|
23
|
-
exports.withNavLinkStyle = withNavLinkStyle;
|
59
|
+
exports.ProfileMenuContent = ProfileMenuContent;
|
24
60
|
//# sourceMappingURL=harmony87.cjs.map
|
package/dist/harmony87.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony87.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony87.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContent.tsx"],"sourcesContent":["import { Menu, MenuList, UserIcon } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { ReactNode } from 'react'\nimport { UpgradeIcon } from '../../UpgradeIcon/UpgradeIcon'\nimport styles from './ProfileMenuContent.module.css'\nimport { useProfileMenu } from './ProfileMenuContext'\nimport type { SidebarProfileMenuRenderProps } from './types'\n\nexport type ProfileMenuContentProps = {\n\tchildren: (props: SidebarProfileMenuRenderProps) => ReactNode\n}\n\nexport const ProfileMenuContent = ({ children }: ProfileMenuContentProps) => {\n\tconst {\n\t\tcurrentTeam,\n\t\totherTeams,\n\t\tshowUpgradeCta,\n\t\tshowBillingButton,\n\t\tallowTeamCreation,\n\t\tisProviderAlpha,\n\t\tcanAccessTeamSettings,\n\t\tisEndOfTrialActive,\n\t\tisTeamSuspended,\n\t\tisFullyAuthenticated,\n\t} = useProfileMenu()\n\n\treturn (\n\t\t<Menu\n\t\t\tmenuButton={() => (\n\t\t\t\t<button className={styles.profileButton} aria-label=\"Profile menu\" type=\"button\">\n\t\t\t\t\t{currentTeam?.logoUrl ? (\n\t\t\t\t\t\t<img\n\t\t\t\t\t\t\tsrc={currentTeam.logoUrl}\n\t\t\t\t\t\t\tclassName={clsx(styles.profileImage, {\n\t\t\t\t\t\t\t\t[styles.profileImageHighlight]: showUpgradeCta,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\talt=\"Team Logo\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclassName={clsx(styles.userIconWrapper, 'flex-row', 'align-center', 'items-center', {\n\t\t\t\t\t\t\t\t[styles.profileImageHighlight]: showUpgradeCta,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<UserIcon size={'25px'} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t{showUpgradeCta && <UpgradeIcon className={styles.profileImageUpgradeIcon} />}\n\t\t\t\t</button>\n\t\t\t)}\n\t\t>\n\t\t\t<MenuList placement=\"right-end\" className={styles.menuContainer}>\n\t\t\t\t{children({\n\t\t\t\t\tallowTeamCreation,\n\t\t\t\t\totherTeams,\n\t\t\t\t\tcanAccessTeamSettings,\n\t\t\t\t\tisEndOfTrialActive,\n\t\t\t\t\tisTeamSuspended,\n\t\t\t\t\tshowBillingButton,\n\t\t\t\t\tisProviderAlpha,\n\t\t\t\t\tisFullyAuthenticated,\n\t\t\t\t})}\n\t\t\t</MenuList>\n\t\t</Menu>\n\t)\n}\n"],"names":["useProfileMenu","jsx","Menu","jsxs","styles","clsx","UserIcon","UpgradeIcon","MenuList"],"mappings":";;;;;;;;AAYO,MAAM,qBAAqB,CAAC,EAAE,eAAwC;AACtE,QAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACGA,kCAAe;AAGlB,SAAAC,2BAAA;AAAA,IAACC,MAAA;AAAA,IAAA;AAAA,MACA,YAAY,MACXC,2BAAAA,KAAC,UAAO,EAAA,WAAWC,0BAAAA,QAAO,eAAe,cAAW,gBAAe,MAAK,UACtE,UAAA;AAAA,SAAA,2CAAa,WACbH,2BAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,KAAK,YAAY;AAAA,YACjB,WAAWI,KAAAA,KAAKD,0BAAA,QAAO,cAAc;AAAA,cACpC,CAACA,0BAAAA,QAAO,qBAAqB,GAAG;AAAA,YAAA,CAChC;AAAA,YACD,KAAI;AAAA,UAAA;AAAA,QAAA,IAGLH,2BAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,WAAWI,KAAK,KAAAD,0BAAA,QAAO,iBAAiB,YAAY,gBAAgB,gBAAgB;AAAA,cACnF,CAACA,0BAAAA,QAAO,qBAAqB,GAAG;AAAA,YAAA,CAChC;AAAA,YAED,UAAAH,2BAAAA,IAACK,MAAAA,UAAS,EAAA,MAAM,OAAQ,CAAA;AAAA,UAAA;AAAA,QACzB;AAAA,QAEA,kBAAkBL,2BAAA,IAACM,YAAY,aAAA,EAAA,WAAWH,0BAAAA,QAAO,wBAAyB,CAAA;AAAA,MAAA,GAC5E;AAAA,MAGD,yCAACI,gBAAS,EAAA,WAAU,aAAY,WAAWJ,kCAAO,eAChD,UAAS,SAAA;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAAA,CACA,EACF,CAAA;AAAA,IAAA;AAAA,EACD;AAEF;;"}
|