@lokalise/harmony 1.39.4 → 1.40.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/harmony100.cjs +9 -12
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +8 -11
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +57 -12
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +56 -11
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +42 -6
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +41 -5
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +6 -10
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +5 -9
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +6 -6
- package/dist/harmony104.mjs +6 -6
- package/dist/harmony105.cjs +24 -57
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +23 -56
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +6 -42
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +5 -41
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +21 -5
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +21 -5
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +7 -4
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +7 -4
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +12 -25
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +11 -24
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +20 -5
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +20 -5
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +164 -19
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +164 -19
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +44 -12
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +43 -11
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +2 -2
- package/dist/harmony113.mjs +2 -2
- package/dist/harmony114.cjs +13 -86
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +13 -86
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +18 -30
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +18 -30
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +21 -14
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +20 -13
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +6 -18
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +6 -18
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +132 -21
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +131 -20
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +12 -6
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +11 -5
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +5 -132
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +5 -132
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +40 -12
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +39 -11
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +59 -4
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +60 -5
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +6 -39
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +6 -39
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +6 -60
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +5 -59
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +6 -8
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +5 -7
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +4 -4
- package/dist/harmony126.mjs +4 -4
- package/dist/harmony127.cjs +88 -6
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +87 -5
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +31 -7
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +30 -6
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +96 -10
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +96 -10
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +11 -94
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +11 -94
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +13 -12
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +13 -12
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +35 -13
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +35 -13
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +24 -32
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +24 -32
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +62 -28
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +61 -27
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +87 -61
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +87 -61
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +18 -88
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +17 -87
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +10 -18
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +9 -17
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony14.cjs +1 -1
- package/dist/harmony14.mjs +1 -1
- package/dist/harmony142.cjs +1 -1
- package/dist/harmony142.mjs +1 -1
- package/dist/harmony153.cjs +1 -1
- package/dist/harmony153.mjs +1 -1
- package/dist/harmony17.cjs +1 -1
- package/dist/harmony17.mjs +1 -1
- package/dist/harmony25.cjs +1 -1
- package/dist/harmony25.mjs +1 -1
- package/dist/harmony26.cjs +1 -1
- package/dist/harmony26.mjs +1 -1
- package/dist/harmony67.cjs +2 -1
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs +2 -1
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony77.cjs +1 -1
- package/dist/harmony77.mjs +1 -1
- package/dist/harmony78.cjs +1 -1
- package/dist/harmony78.mjs +1 -1
- package/dist/harmony79.cjs +1 -1
- package/dist/harmony79.mjs +1 -1
- package/dist/harmony80.cjs +2 -2
- package/dist/harmony80.mjs +2 -2
- package/dist/harmony81.cjs +2 -2
- package/dist/harmony81.mjs +2 -2
- package/dist/harmony82.cjs +2 -2
- package/dist/harmony82.mjs +2 -2
- package/dist/harmony83.cjs +2 -2
- package/dist/harmony83.mjs +2 -2
- package/dist/harmony84.cjs +3 -3
- package/dist/harmony84.mjs +3 -3
- package/dist/harmony85.cjs +6 -6
- package/dist/harmony85.mjs +6 -6
- package/dist/harmony88.cjs +2 -2
- package/dist/harmony88.mjs +2 -2
- package/dist/harmony90.cjs +2 -2
- package/dist/harmony90.mjs +2 -2
- package/dist/harmony92.cjs +2 -2
- package/dist/harmony92.mjs +2 -2
- 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 +6 -166
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +5 -165
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +9 -44
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +8 -43
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/features/publicApi/hooks/useCreateScoreMutation.d.ts +1 -0
- package/dist/types/src/features/publicApi/hooks/useGetScoreQuery.d.ts +1 -0
- package/dist/types/src/features/publicApi/score.d.ts +10 -0
- package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +13 -0
- package/package.json +1 -1
package/dist/harmony105.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony105.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony105.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
package/dist/harmony106.cjs
CHANGED
@@ -1,45 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
const ProfileMenuContext = require("./harmony107.cjs");
|
7
|
-
const billingRoles = [
|
8
|
-
types.SidebarTeamRoles.biller,
|
9
|
-
types.SidebarTeamRoles.owner,
|
10
|
-
types.SidebarTeamRoles.admin
|
11
|
-
];
|
12
|
-
const teamSettingsRoles = [
|
13
|
-
types.SidebarTeamRoles.biller,
|
14
|
-
types.SidebarTeamRoles.owner,
|
15
|
-
types.SidebarTeamRoles.admin
|
16
|
-
];
|
17
|
-
const upgradeCtaRoles = [
|
18
|
-
types.SidebarTeamRoles.biller,
|
19
|
-
types.SidebarTeamRoles.owner
|
20
|
-
];
|
21
|
-
const ProfileMenuProvider = ({ children, config }) => {
|
22
|
-
const { teams, currentTeamId, planId, isEndOfTrialActive, isFullyAuthenticated, userTeamRole } = config;
|
23
|
-
const currentTeam = teams.find((t) => t.id === currentTeamId);
|
24
|
-
const otherTeams = teams.filter((t) => t.id !== currentTeamId);
|
25
|
-
const canChangeBilling = billingRoles.includes(userTeamRole);
|
26
|
-
const canAccessTeamSettings = teamSettingsRoles.includes(userTeamRole);
|
27
|
-
const isOnFreeOrTrialPlan = plan.isFreePlan(planId) || plan.isTrialPlan(planId);
|
28
|
-
const showUpgradeCta = isFullyAuthenticated && isOnFreeOrTrialPlan && upgradeCtaRoles.includes(userTeamRole);
|
29
|
-
const showBillingButton = isFullyAuthenticated && canAccessTeamSettings && canChangeBilling;
|
30
|
-
const allowTeamCreation = isFullyAuthenticated && !isEndOfTrialActive;
|
31
|
-
const providerValue = {
|
32
|
-
...config,
|
33
|
-
currentTeam,
|
34
|
-
otherTeams,
|
35
|
-
canChangeBilling,
|
36
|
-
canAccessTeamSettings,
|
37
|
-
isOnFreeOrTrialPlan,
|
38
|
-
showUpgradeCta,
|
39
|
-
showBillingButton,
|
40
|
-
allowTeamCreation
|
41
|
-
};
|
42
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContext.ProfileMenuContext.Provider, { value: providerValue, children });
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const teamsContainer = "_teamsContainer_1ncrr_5";
|
4
|
+
const styles = {
|
5
|
+
teamsContainer
|
43
6
|
};
|
44
|
-
exports.
|
7
|
+
exports.default = styles;
|
8
|
+
exports.teamsContainer = teamsContainer;
|
45
9
|
//# sourceMappingURL=harmony106.cjs.map
|
package/dist/harmony106.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony106.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony106.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony106.mjs
CHANGED
@@ -1,45 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
import { ProfileMenuContext } from "./harmony107.mjs";
|
5
|
-
const billingRoles = [
|
6
|
-
SidebarTeamRoles.biller,
|
7
|
-
SidebarTeamRoles.owner,
|
8
|
-
SidebarTeamRoles.admin
|
9
|
-
];
|
10
|
-
const teamSettingsRoles = [
|
11
|
-
SidebarTeamRoles.biller,
|
12
|
-
SidebarTeamRoles.owner,
|
13
|
-
SidebarTeamRoles.admin
|
14
|
-
];
|
15
|
-
const upgradeCtaRoles = [
|
16
|
-
SidebarTeamRoles.biller,
|
17
|
-
SidebarTeamRoles.owner
|
18
|
-
];
|
19
|
-
const ProfileMenuProvider = ({ children, config }) => {
|
20
|
-
const { teams, currentTeamId, planId, isEndOfTrialActive, isFullyAuthenticated, userTeamRole } = config;
|
21
|
-
const currentTeam = teams.find((t) => t.id === currentTeamId);
|
22
|
-
const otherTeams = teams.filter((t) => t.id !== currentTeamId);
|
23
|
-
const canChangeBilling = billingRoles.includes(userTeamRole);
|
24
|
-
const canAccessTeamSettings = teamSettingsRoles.includes(userTeamRole);
|
25
|
-
const isOnFreeOrTrialPlan = isFreePlan(planId) || isTrialPlan(planId);
|
26
|
-
const showUpgradeCta = isFullyAuthenticated && isOnFreeOrTrialPlan && upgradeCtaRoles.includes(userTeamRole);
|
27
|
-
const showBillingButton = isFullyAuthenticated && canAccessTeamSettings && canChangeBilling;
|
28
|
-
const allowTeamCreation = isFullyAuthenticated && !isEndOfTrialActive;
|
29
|
-
const providerValue = {
|
30
|
-
...config,
|
31
|
-
currentTeam,
|
32
|
-
otherTeams,
|
33
|
-
canChangeBilling,
|
34
|
-
canAccessTeamSettings,
|
35
|
-
isOnFreeOrTrialPlan,
|
36
|
-
showUpgradeCta,
|
37
|
-
showBillingButton,
|
38
|
-
allowTeamCreation
|
39
|
-
};
|
40
|
-
return /* @__PURE__ */ jsx(ProfileMenuContext.Provider, { value: providerValue, children });
|
1
|
+
const teamsContainer = "_teamsContainer_1ncrr_5";
|
2
|
+
const styles = {
|
3
|
+
teamsContainer
|
41
4
|
};
|
42
5
|
export {
|
43
|
-
|
6
|
+
styles as default,
|
7
|
+
teamsContainer
|
44
8
|
};
|
45
9
|
//# sourceMappingURL=harmony106.mjs.map
|
package/dist/harmony106.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony106.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony106.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony107.cjs
CHANGED
@@ -1,8 +1,24 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const clsx = require("./harmony73.cjs");
|
6
|
+
const UpgradeIcon_module = require("./harmony124.cjs");
|
7
|
+
const UpgradeIcon = ({ className = "" }) => {
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
9
|
+
"div",
|
10
|
+
{
|
11
|
+
"aria-label": "Upgrade Icon",
|
12
|
+
className: clsx.clsx(
|
13
|
+
UpgradeIcon_module.default.iconContainer,
|
14
|
+
"flex-row",
|
15
|
+
"items-center",
|
16
|
+
"justify-center",
|
17
|
+
className
|
18
|
+
),
|
19
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.CaretUpIcon, {})
|
20
|
+
}
|
21
|
+
);
|
22
|
+
};
|
23
|
+
exports.UpgradeIcon = UpgradeIcon;
|
8
24
|
//# sourceMappingURL=harmony107.cjs.map
|
package/dist/harmony107.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony107.cjs","sources":["../src/components/Sidebar/
|
1
|
+
{"version":3,"file":"harmony107.cjs","sources":["../src/components/Sidebar/UpgradeIcon/UpgradeIcon.tsx"],"sourcesContent":["import { CaretUpIcon } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport styles from './UpgradeIcon.module.css'\n\ntype UpgradeIconProps = {\n\tclassName?: string\n}\n\nexport const UpgradeIcon = ({ className = '' }: UpgradeIconProps) => {\n\treturn (\n\t\t<div\n\t\t\taria-label={'Upgrade Icon'}\n\t\t\tclassName={clsx(\n\t\t\t\tstyles.iconContainer,\n\t\t\t\t'flex-row',\n\t\t\t\t'items-center',\n\t\t\t\t'justify-center',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t<CaretUpIcon />\n\t\t</div>\n\t)\n}\n"],"names":["jsx","clsx","styles","CaretUpIcon"],"mappings":";;;;;;AAQO,MAAM,cAAc,CAAC,EAAE,YAAY,SAA2B;AAEnE,SAAAA,2BAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAWC,KAAA;AAAA,QACVC,mBAAAA,QAAO;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,MAEA,yCAACC,MAAAA,aAAY,CAAA,CAAA;AAAA,IAAA;AAAA,EACd;AAEF;;"}
|
package/dist/harmony107.mjs
CHANGED
@@ -1,8 +1,24 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { CaretUpIcon } from "@lokalise/louis";
|
3
|
+
import { clsx } from "./harmony73.mjs";
|
4
|
+
import styles from "./harmony124.mjs";
|
5
|
+
const UpgradeIcon = ({ className = "" }) => {
|
6
|
+
return /* @__PURE__ */ jsx(
|
7
|
+
"div",
|
8
|
+
{
|
9
|
+
"aria-label": "Upgrade Icon",
|
10
|
+
className: clsx(
|
11
|
+
styles.iconContainer,
|
12
|
+
"flex-row",
|
13
|
+
"items-center",
|
14
|
+
"justify-center",
|
15
|
+
className
|
16
|
+
),
|
17
|
+
children: /* @__PURE__ */ jsx(CaretUpIcon, {})
|
18
|
+
}
|
19
|
+
);
|
20
|
+
};
|
4
21
|
export {
|
5
|
-
|
6
|
-
useProfileMenu
|
22
|
+
UpgradeIcon
|
7
23
|
};
|
8
24
|
//# sourceMappingURL=harmony107.mjs.map
|
package/dist/harmony107.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony107.mjs","sources":["../src/components/Sidebar/
|
1
|
+
{"version":3,"file":"harmony107.mjs","sources":["../src/components/Sidebar/UpgradeIcon/UpgradeIcon.tsx"],"sourcesContent":["import { CaretUpIcon } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport styles from './UpgradeIcon.module.css'\n\ntype UpgradeIconProps = {\n\tclassName?: string\n}\n\nexport const UpgradeIcon = ({ className = '' }: UpgradeIconProps) => {\n\treturn (\n\t\t<div\n\t\t\taria-label={'Upgrade Icon'}\n\t\t\tclassName={clsx(\n\t\t\t\tstyles.iconContainer,\n\t\t\t\t'flex-row',\n\t\t\t\t'items-center',\n\t\t\t\t'justify-center',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t<CaretUpIcon />\n\t\t</div>\n\t)\n}\n"],"names":[],"mappings":";;;;AAQO,MAAM,cAAc,CAAC,EAAE,YAAY,SAA2B;AAEnE,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAW;AAAA,QACV,OAAO;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,MAEA,8BAAC,aAAY,CAAA,CAAA;AAAA,IAAA;AAAA,EACd;AAEF;"}
|
package/dist/harmony108.cjs
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const container = "
|
4
|
-
const
|
3
|
+
const container = "_container_1u995_1";
|
4
|
+
const planCta = "_planCta_1u995_15";
|
5
|
+
const upgradeIconWrapper = "_upgradeIconWrapper_1u995_19";
|
5
6
|
const styles = {
|
6
7
|
container,
|
7
|
-
|
8
|
+
planCta,
|
9
|
+
upgradeIconWrapper
|
8
10
|
};
|
9
11
|
exports.container = container;
|
10
12
|
exports.default = styles;
|
11
|
-
exports.
|
13
|
+
exports.planCta = planCta;
|
14
|
+
exports.upgradeIconWrapper = upgradeIconWrapper;
|
12
15
|
//# sourceMappingURL=harmony108.cjs.map
|
package/dist/harmony108.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony108.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony108.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/harmony108.mjs
CHANGED
@@ -1,12 +1,15 @@
|
|
1
|
-
const container = "
|
2
|
-
const
|
1
|
+
const container = "_container_1u995_1";
|
2
|
+
const planCta = "_planCta_1u995_15";
|
3
|
+
const upgradeIconWrapper = "_upgradeIconWrapper_1u995_19";
|
3
4
|
const styles = {
|
4
5
|
container,
|
5
|
-
|
6
|
+
planCta,
|
7
|
+
upgradeIconWrapper
|
6
8
|
};
|
7
9
|
export {
|
8
10
|
container,
|
9
11
|
styles as default,
|
10
|
-
|
12
|
+
planCta,
|
13
|
+
upgradeIconWrapper
|
11
14
|
};
|
12
15
|
//# sourceMappingURL=harmony108.mjs.map
|
package/dist/harmony108.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony108.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony108.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony109.cjs
CHANGED
@@ -1,27 +1,14 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
planWrapper,
|
15
|
-
teamName,
|
16
|
-
membership,
|
17
|
-
defaultProfileImage
|
18
|
-
};
|
19
|
-
exports.default = styles;
|
20
|
-
exports.defaultProfileImage = defaultProfileImage;
|
21
|
-
exports.membership = membership;
|
22
|
-
exports.planWrapper = planWrapper;
|
23
|
-
exports.profileImage = profileImage;
|
24
|
-
exports.teamDetails = teamDetails;
|
25
|
-
exports.teamName = teamName;
|
26
|
-
exports.wrapper = wrapper;
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const styles_module = require("./harmony110.cjs");
|
6
|
+
const NavItemContents = ({ label, badge, novel }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-1", children: [
|
7
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
8
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: label }),
|
9
|
+
!!badge && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_module.default.badge, "aria-label": `${badge} items requiring attention`, children: badge > 9 ? "9+" : badge })
|
10
|
+
] }),
|
11
|
+
!!novel && /* @__PURE__ */ jsxRuntime.jsx(louis.Tag, { className: styles_module.default.tag, children: novel })
|
12
|
+
] });
|
13
|
+
exports.NavItemContents = NavItemContents;
|
27
14
|
//# sourceMappingURL=harmony109.cjs.map
|
package/dist/harmony109.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony109.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony109.cjs","sources":["../src/components/NavigationPanel/components/NavigationTabs/NavigationTabsItem/NavItemContents.tsx"],"sourcesContent":["import { Tag } from '@lokalise/louis'\n\nimport classes from './styles.module.css'\n\ninterface NavItemContentProps {\n\tlabel: string\n\tbadge?: number\n\tnovel?: string\n}\nexport const NavItemContents = ({ label, badge, novel }: NavItemContentProps) => (\n\t<div className=\"flex gap-1\">\n\t\t<div>\n\t\t\t<span>{label}</span>\n\t\t\t{!!badge && (\n\t\t\t\t<div className={classes.badge} aria-label={`${badge} items requiring attention`}>\n\t\t\t\t\t{badge > 9 ? '9+' : badge}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t\t{!!novel && <Tag className={classes.tag}>{novel}</Tag>}\n\t</div>\n)\n"],"names":["jsxs","jsx","classes","Tag"],"mappings":";;;;;AASa,MAAA,kBAAkB,CAAC,EAAE,OAAO,OAAO,YAC/CA,2BAAA,KAAC,OAAI,EAAA,WAAU,cACd,UAAA;AAAA,EAAAA,gCAAC,OACA,EAAA,UAAA;AAAA,IAAAC,2BAAAA,IAAC,UAAM,UAAM,MAAA,CAAA;AAAA,IACZ,CAAC,CAAC,SACFA,+BAAC,SAAI,WAAWC,cAAA,QAAQ,OAAO,cAAY,GAAG,KAAK,8BACjD,UAAQ,QAAA,IAAI,OAAO,MACrB,CAAA;AAAA,EAAA,GAEF;AAAA,EACC,CAAC,CAAC,SAASD,2BAAA,IAACE,aAAI,WAAWD,sBAAQ,KAAM,UAAM,MAAA,CAAA;AAAA,EACjD,CAAA;;"}
|
package/dist/harmony109.mjs
CHANGED
@@ -1,27 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
teamDetails,
|
12
|
-
planWrapper,
|
13
|
-
teamName,
|
14
|
-
membership,
|
15
|
-
defaultProfileImage
|
16
|
-
};
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
2
|
+
import { Tag } from "@lokalise/louis";
|
3
|
+
import classes from "./harmony110.mjs";
|
4
|
+
const NavItemContents = ({ label, badge, novel }) => /* @__PURE__ */ jsxs("div", { className: "flex gap-1", children: [
|
5
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
6
|
+
/* @__PURE__ */ jsx("span", { children: label }),
|
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
|
+
] });
|
17
11
|
export {
|
18
|
-
|
19
|
-
defaultProfileImage,
|
20
|
-
membership,
|
21
|
-
planWrapper,
|
22
|
-
profileImage,
|
23
|
-
teamDetails,
|
24
|
-
teamName,
|
25
|
-
wrapper
|
12
|
+
NavItemContents
|
26
13
|
};
|
27
14
|
//# sourceMappingURL=harmony109.mjs.map
|
package/dist/harmony109.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony109.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony109.mjs","sources":["../src/components/NavigationPanel/components/NavigationTabs/NavigationTabsItem/NavItemContents.tsx"],"sourcesContent":["import { Tag } from '@lokalise/louis'\n\nimport classes from './styles.module.css'\n\ninterface NavItemContentProps {\n\tlabel: string\n\tbadge?: number\n\tnovel?: string\n}\nexport const NavItemContents = ({ label, badge, novel }: NavItemContentProps) => (\n\t<div className=\"flex gap-1\">\n\t\t<div>\n\t\t\t<span>{label}</span>\n\t\t\t{!!badge && (\n\t\t\t\t<div className={classes.badge} aria-label={`${badge} items requiring attention`}>\n\t\t\t\t\t{badge > 9 ? '9+' : badge}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t\t{!!novel && <Tag className={classes.tag}>{novel}</Tag>}\n\t</div>\n)\n"],"names":[],"mappings":";;;AASa,MAAA,kBAAkB,CAAC,EAAE,OAAO,OAAO,YAC/C,qBAAC,OAAI,EAAA,WAAU,cACd,UAAA;AAAA,EAAA,qBAAC,OACA,EAAA,UAAA;AAAA,IAAA,oBAAC,UAAM,UAAM,MAAA,CAAA;AAAA,IACZ,CAAC,CAAC,SACF,oBAAC,SAAI,WAAW,QAAQ,OAAO,cAAY,GAAG,KAAK,8BACjD,UAAQ,QAAA,IAAI,OAAO,MACrB,CAAA;AAAA,EAAA,GAEF;AAAA,EACC,CAAC,CAAC,SAAS,oBAAC,OAAI,WAAW,QAAQ,KAAM,UAAM,MAAA,CAAA;AAAA,EACjD,CAAA;"}
|
package/dist/harmony110.cjs
CHANGED
@@ -1,9 +1,24 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
3
|
+
const badge = "_badge_1pc1v_1";
|
4
|
+
const tag = "_tag_1pc1v_15";
|
5
|
+
const withNavLinkStyle = "_withNavLinkStyle_1pc1v_42 _withLinkStyle_1pc1v_21";
|
6
|
+
const disabled = "_disabled_1pc1v_57";
|
7
|
+
const projectNavigationItem = "_projectNavigationItem_1pc1v_61";
|
8
|
+
const projectNavigationItemDisabled = "_projectNavigationItemDisabled_1pc1v_67";
|
9
|
+
const classes = {
|
10
|
+
badge,
|
11
|
+
tag,
|
12
|
+
withNavLinkStyle,
|
13
|
+
disabled,
|
14
|
+
projectNavigationItem,
|
15
|
+
projectNavigationItemDisabled
|
6
16
|
};
|
7
|
-
exports.
|
8
|
-
exports.
|
17
|
+
exports.badge = badge;
|
18
|
+
exports.default = classes;
|
19
|
+
exports.disabled = disabled;
|
20
|
+
exports.projectNavigationItem = projectNavigationItem;
|
21
|
+
exports.projectNavigationItemDisabled = projectNavigationItemDisabled;
|
22
|
+
exports.tag = tag;
|
23
|
+
exports.withNavLinkStyle = withNavLinkStyle;
|
9
24
|
//# sourceMappingURL=harmony110.cjs.map
|
package/dist/harmony110.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony110.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony110.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/harmony110.mjs
CHANGED
@@ -1,9 +1,24 @@
|
|
1
|
-
const
|
2
|
-
const
|
3
|
-
|
1
|
+
const badge = "_badge_1pc1v_1";
|
2
|
+
const tag = "_tag_1pc1v_15";
|
3
|
+
const withNavLinkStyle = "_withNavLinkStyle_1pc1v_42 _withLinkStyle_1pc1v_21";
|
4
|
+
const disabled = "_disabled_1pc1v_57";
|
5
|
+
const projectNavigationItem = "_projectNavigationItem_1pc1v_61";
|
6
|
+
const projectNavigationItemDisabled = "_projectNavigationItemDisabled_1pc1v_67";
|
7
|
+
const classes = {
|
8
|
+
badge,
|
9
|
+
tag,
|
10
|
+
withNavLinkStyle,
|
11
|
+
disabled,
|
12
|
+
projectNavigationItem,
|
13
|
+
projectNavigationItemDisabled
|
4
14
|
};
|
5
15
|
export {
|
6
|
-
|
7
|
-
|
16
|
+
badge,
|
17
|
+
classes as default,
|
18
|
+
disabled,
|
19
|
+
projectNavigationItem,
|
20
|
+
projectNavigationItemDisabled,
|
21
|
+
tag,
|
22
|
+
withNavLinkStyle
|
8
23
|
};
|
9
24
|
//# sourceMappingURL=harmony110.mjs.map
|
package/dist/harmony110.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony110.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony110.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/harmony111.cjs
CHANGED
@@ -1,24 +1,169 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
"flex-row",
|
15
|
-
"items-center",
|
16
|
-
"justify-center",
|
17
|
-
className
|
18
|
-
),
|
19
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(louis.CaretUpIcon, {})
|
3
|
+
const React = require("react");
|
4
|
+
const NavigationClientProvider = require("./harmony94.cjs");
|
5
|
+
const toolbarVisibility = require("./harmony127.cjs");
|
6
|
+
const useExpertNavigation = (enabled, project, contributor) => {
|
7
|
+
const adminRights = (contributor == null ? void 0 : contributor.admin_rights) || [];
|
8
|
+
const marketingSupportProjectSelectedAppSlug = "selected-app-slug";
|
9
|
+
const navigationClient = NavigationClientProvider.useNavigationClient();
|
10
|
+
const expertUrl = navigationClient.getExpertUrl();
|
11
|
+
return React.useMemo(() => {
|
12
|
+
if (!project || !enabled) {
|
13
|
+
return [];
|
20
14
|
}
|
21
|
-
|
15
|
+
const navigationVisibility = toolbarVisibility.getProjectNavigationVisibilityMap(
|
16
|
+
project,
|
17
|
+
adminRights,
|
18
|
+
() => true
|
19
|
+
);
|
20
|
+
const appsNavigationItem = {
|
21
|
+
key: "apps",
|
22
|
+
label: "Apps",
|
23
|
+
isActive: (input) => input === "apps",
|
24
|
+
link: `${expertUrl}/apps/${project.project_id}/`,
|
25
|
+
...navigationVisibility.apps
|
26
|
+
};
|
27
|
+
const appsNavigationItemArrInMainMenu = [];
|
28
|
+
const appsNavigationItemArrInMoreMenu = [];
|
29
|
+
if (project.project_type === "content_integration") {
|
30
|
+
appsNavigationItemArrInMoreMenu.push(appsNavigationItem);
|
31
|
+
} else {
|
32
|
+
appsNavigationItemArrInMainMenu.push(appsNavigationItem);
|
33
|
+
}
|
34
|
+
return [
|
35
|
+
{
|
36
|
+
key: "edit",
|
37
|
+
label: "Editor",
|
38
|
+
link: `${expertUrl}/project/${project.project_id}/`,
|
39
|
+
isActive: (input) => input === "edit",
|
40
|
+
...navigationVisibility.editor
|
41
|
+
},
|
42
|
+
{
|
43
|
+
key: "files",
|
44
|
+
label: "Files",
|
45
|
+
link: `${expertUrl}/files/${project.project_id}/`,
|
46
|
+
isActive: (input) => input === "files",
|
47
|
+
...navigationVisibility.files
|
48
|
+
},
|
49
|
+
...project.project_type === "content_integration" ? [
|
50
|
+
{
|
51
|
+
key: "contentManagement",
|
52
|
+
label: "Content management",
|
53
|
+
isActive: (input) => input === "apps",
|
54
|
+
link: `${expertUrl}/apps/${project.project_id}/${marketingSupportProjectSelectedAppSlug}`,
|
55
|
+
...navigationVisibility.contentManagement
|
56
|
+
}
|
57
|
+
] : [
|
58
|
+
{
|
59
|
+
key: "upload",
|
60
|
+
label: "Upload",
|
61
|
+
link: `${expertUrl}/upload/${project.project_id}/`,
|
62
|
+
isActive: (input) => input === "upload",
|
63
|
+
...navigationVisibility.upload
|
64
|
+
},
|
65
|
+
{
|
66
|
+
key: "download",
|
67
|
+
label: "Download",
|
68
|
+
link: `${expertUrl}/download/${project.project_id}/`,
|
69
|
+
isActive: (input) => input === "download",
|
70
|
+
...navigationVisibility.download
|
71
|
+
}
|
72
|
+
],
|
73
|
+
{
|
74
|
+
key: "tasks",
|
75
|
+
label: "Tasks",
|
76
|
+
link: `${expertUrl}/tasks/${project.project_id}/`,
|
77
|
+
isActive: (input) => input === "tasks",
|
78
|
+
// TODO: Add task count
|
79
|
+
// badge: taskCount,
|
80
|
+
...navigationVisibility.tasks
|
81
|
+
},
|
82
|
+
{
|
83
|
+
key: "workflows",
|
84
|
+
label: "Workflows",
|
85
|
+
link: `${expertUrl}/workflows/${project.project_id}/`,
|
86
|
+
isActive: (input) => input === "workflows",
|
87
|
+
novel: "New",
|
88
|
+
onClick: () => {
|
89
|
+
window.location.assign(`${expertUrl}/workflows/${project.project_id}/`);
|
90
|
+
},
|
91
|
+
...navigationVisibility.workflows
|
92
|
+
},
|
93
|
+
{
|
94
|
+
key: "contributors",
|
95
|
+
label: "Contributors",
|
96
|
+
link: `${expertUrl}/contributors/${project.project_id}/`,
|
97
|
+
isActive: (input) => input === "contributors",
|
98
|
+
...navigationVisibility.contributors
|
99
|
+
},
|
100
|
+
{
|
101
|
+
key: "screenshots",
|
102
|
+
label: "Screenshots",
|
103
|
+
link: `${expertUrl}/screenshots/${project.project_id}/`,
|
104
|
+
isActive: (input) => input === "screenshots",
|
105
|
+
...navigationVisibility.screenshots
|
106
|
+
},
|
107
|
+
{
|
108
|
+
key: "glossary",
|
109
|
+
label: "Glossary",
|
110
|
+
link: `${expertUrl}/glossary/${project.project_id}/`,
|
111
|
+
isActive: (input) => input === "glossary",
|
112
|
+
...navigationVisibility.glossary
|
113
|
+
},
|
114
|
+
...appsNavigationItemArrInMainMenu,
|
115
|
+
{
|
116
|
+
key: "more",
|
117
|
+
label: "More...",
|
118
|
+
isActive: (input) => ["settings", "statistics", "duplicates", "live edit"].includes(input),
|
119
|
+
...navigationVisibility.more,
|
120
|
+
dropdown: [
|
121
|
+
[
|
122
|
+
{
|
123
|
+
link: `${expertUrl}/settings/${project.project_id}/`,
|
124
|
+
label: "Settings",
|
125
|
+
...navigationVisibility.settings
|
126
|
+
},
|
127
|
+
{
|
128
|
+
link: `${expertUrl}/settings/${project.project_id}/#branches`,
|
129
|
+
label: "Branches",
|
130
|
+
...navigationVisibility.branches
|
131
|
+
},
|
132
|
+
{
|
133
|
+
link: `${expertUrl}/settings/${project.project_id}/#ota-bundles`,
|
134
|
+
label: "OTA Bundles",
|
135
|
+
...navigationVisibility.otaBundles
|
136
|
+
},
|
137
|
+
{
|
138
|
+
link: `${expertUrl}/settings/${project.project_id}/#project-automations`,
|
139
|
+
label: "Automations",
|
140
|
+
...navigationVisibility.automations
|
141
|
+
},
|
142
|
+
{
|
143
|
+
link: `${expertUrl}/dupes/${project.project_id}/`,
|
144
|
+
label: "Duplicate finder",
|
145
|
+
...navigationVisibility.duplicateFinder
|
146
|
+
}
|
147
|
+
],
|
148
|
+
[
|
149
|
+
...appsNavigationItemArrInMoreMenu,
|
150
|
+
{
|
151
|
+
// TODO: This could be problematic tab, because it is not a link and we can't just redirect. We need to find a workaround for that.
|
152
|
+
label: "Activity",
|
153
|
+
onClick: () => {
|
154
|
+
},
|
155
|
+
...navigationVisibility.activity
|
156
|
+
},
|
157
|
+
{
|
158
|
+
link: `${expertUrl}/statistics/${project.project_id}/`,
|
159
|
+
label: "Statistics",
|
160
|
+
...navigationVisibility.statistics
|
161
|
+
}
|
162
|
+
]
|
163
|
+
]
|
164
|
+
}
|
165
|
+
];
|
166
|
+
}, [project, adminRights, enabled, expertUrl]);
|
22
167
|
};
|
23
|
-
exports.
|
168
|
+
exports.useExpertNavigation = useExpertNavigation;
|
24
169
|
//# sourceMappingURL=harmony111.cjs.map
|