@lokalise/harmony 2.0.3 → 2.0.4
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/harmony102.cjs +1 -1
- package/dist/harmony102.mjs +1 -1
- package/dist/harmony103.cjs +7 -7
- package/dist/harmony103.mjs +7 -7
- package/dist/harmony105.cjs +2 -2
- package/dist/harmony105.mjs +2 -2
- package/dist/harmony109.cjs +12 -3
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +12 -3
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +12 -18
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +11 -17
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +3 -76
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +3 -76
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +17 -11
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +17 -11
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +76 -34
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +76 -34
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +12 -9
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +12 -9
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +34 -47
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +34 -47
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +10 -10
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +9 -9
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +44 -9
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +46 -11
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +6 -9
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +6 -9
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony121.cjs +6 -98
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +7 -82
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +16 -6
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +17 -7
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +7 -16
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +7 -16
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +3 -3
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +3 -3
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +14 -7
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +14 -7
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +20 -15
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +20 -15
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +1 -1
- package/dist/harmony127.mjs +1 -1
- package/dist/harmony129.cjs +99 -20
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +82 -20
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony131.cjs +2 -2
- package/dist/harmony131.mjs +2 -2
- package/dist/harmony132.cjs +2 -2
- package/dist/harmony132.mjs +2 -2
- package/dist/harmony133.cjs +2 -2
- package/dist/harmony133.mjs +2 -2
- package/dist/harmony135.cjs +2 -2
- package/dist/harmony135.mjs +2 -2
- package/dist/harmony136.cjs +2 -2
- package/dist/harmony136.mjs +2 -2
- package/dist/harmony137.cjs +1 -1
- package/dist/harmony137.mjs +1 -1
- package/dist/harmony138.cjs +2 -2
- package/dist/harmony138.mjs +2 -2
- package/dist/harmony139.cjs +1 -1
- package/dist/harmony139.mjs +1 -1
- package/dist/harmony140.cjs +2 -2
- package/dist/harmony140.mjs +2 -2
- package/dist/harmony145.cjs +4 -6
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +3 -5
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +4 -6
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +3 -5
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +3 -10
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +3 -10
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +14 -3
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +14 -3
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +14 -3
- package/dist/harmony149.cjs.map +1 -1
- package/dist/harmony149.mjs +14 -3
- package/dist/harmony149.mjs.map +1 -1
- package/dist/harmony150.cjs +3 -3
- package/dist/harmony150.cjs.map +1 -1
- package/dist/harmony150.mjs +3 -3
- package/dist/harmony150.mjs.map +1 -1
- package/dist/harmony151.cjs +6 -15
- package/dist/harmony151.cjs.map +1 -1
- package/dist/harmony151.mjs +5 -14
- package/dist/harmony151.mjs.map +1 -1
- package/dist/harmony152.cjs +6 -15
- package/dist/harmony152.cjs.map +1 -1
- package/dist/harmony152.mjs +5 -14
- package/dist/harmony152.mjs.map +1 -1
- package/dist/harmony153.cjs +10 -3
- package/dist/harmony153.cjs.map +1 -1
- package/dist/harmony153.mjs +10 -3
- package/dist/harmony153.mjs.map +1 -1
- package/dist/harmony161.cjs +31 -95
- package/dist/harmony161.cjs.map +1 -1
- package/dist/harmony161.mjs +31 -95
- package/dist/harmony161.mjs.map +1 -1
- package/dist/harmony162.cjs +94 -11
- package/dist/harmony162.cjs.map +1 -1
- package/dist/harmony162.mjs +94 -11
- package/dist/harmony162.mjs.map +1 -1
- package/dist/harmony163.cjs +12 -13
- package/dist/harmony163.cjs.map +1 -1
- package/dist/harmony163.mjs +12 -13
- package/dist/harmony163.mjs.map +1 -1
- package/dist/harmony164.cjs +13 -35
- package/dist/harmony164.cjs.map +1 -1
- package/dist/harmony164.mjs +13 -35
- package/dist/harmony164.mjs.map +1 -1
- package/dist/harmony165.cjs +32 -24
- package/dist/harmony165.cjs.map +1 -1
- package/dist/harmony165.mjs +32 -24
- package/dist/harmony165.mjs.map +1 -1
- package/dist/harmony166.cjs +27 -31
- package/dist/harmony166.cjs.map +1 -1
- package/dist/harmony166.mjs +27 -31
- package/dist/harmony166.mjs.map +1 -1
- package/dist/harmony167.cjs +1 -1
- package/dist/harmony167.mjs +1 -1
- package/dist/harmony168.cjs +1 -1
- package/dist/harmony168.mjs +1 -1
- package/dist/harmony169.cjs +2 -2
- package/dist/harmony169.mjs +2 -2
- package/dist/harmony170.cjs +4 -11
- package/dist/harmony170.cjs.map +1 -1
- package/dist/harmony170.mjs +4 -11
- package/dist/harmony170.mjs.map +1 -1
- package/dist/harmony171.cjs +10 -15
- package/dist/harmony171.cjs.map +1 -1
- package/dist/harmony171.mjs +10 -15
- package/dist/harmony171.mjs.map +1 -1
- package/dist/harmony172.cjs +13 -18
- package/dist/harmony172.cjs.map +1 -1
- package/dist/harmony172.mjs +13 -18
- package/dist/harmony172.mjs.map +1 -1
- package/dist/harmony173.cjs +19 -10
- package/dist/harmony173.cjs.map +1 -1
- package/dist/harmony173.mjs +19 -10
- package/dist/harmony173.mjs.map +1 -1
- package/dist/harmony174.cjs +12 -4
- package/dist/harmony174.cjs.map +1 -1
- package/dist/harmony174.mjs +12 -4
- package/dist/harmony174.mjs.map +1 -1
- package/dist/harmony20.cjs +1 -1
- package/dist/harmony20.mjs +1 -1
- package/dist/harmony32.cjs +1 -1
- package/dist/harmony32.mjs +1 -1
- package/dist/harmony33.cjs +1 -1
- package/dist/harmony33.mjs +1 -1
- package/dist/harmony34.cjs +1 -1
- package/dist/harmony34.mjs +1 -1
- package/dist/harmony39.cjs +1 -1
- package/dist/harmony39.mjs +1 -1
- package/dist/harmony40.cjs +1 -1
- package/dist/harmony40.mjs +1 -1
- package/dist/harmony41.cjs +1 -1
- package/dist/harmony41.mjs +1 -1
- package/dist/harmony42.cjs +2 -2
- package/dist/harmony42.mjs +2 -2
- package/dist/harmony43.cjs +2 -2
- package/dist/harmony43.mjs +2 -2
- package/dist/harmony44.cjs +1 -1
- package/dist/harmony44.mjs +1 -1
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony63.cjs.map +1 -1
- package/dist/harmony63.mjs.map +1 -1
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony68.cjs.map +1 -1
- package/dist/harmony68.mjs.map +1 -1
- package/dist/harmony69.cjs.map +1 -1
- package/dist/harmony69.mjs.map +1 -1
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs.map +1 -1
- package/dist/harmony72.mjs.map +1 -1
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony94.cjs +1 -1
- package/dist/harmony94.mjs +1 -1
- package/dist/types/src/features/auth/frontend/hooks/useGetPromotedClassicSessionJwtQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.d.ts +1 -26
- package/dist/types/src/features/publicApi/hooks/useGetScoreQuery.d.ts +1 -11
- package/dist/types/src/features/publicApi/hooks/useGetTeamUsersQuery.d.ts +1 -11
- package/dist/types/src/features/publicApi/hooks/useGetUserTokenQuery.d.ts +1 -4
- package/dist/types/src/features/publicApi/hooks/useListContributorsQuery.d.ts +1 -25
- package/dist/types/src/features/publicApi/hooks/useListPermissionTemplates.d.ts +1 -13
- package/dist/types/src/features/publicApi/hooks/useListProjectLanguagesQuery.d.ts +1 -13
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -65
- package/dist/types/src/features/publicApi/hooks/useListTeamUsersQuery.d.ts +1 -11
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +1 -14
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +1 -25
- package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +1 -63
- package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +1 -33
- package/dist/types/src/features/publicApi/hooks/useRetrieveUserPermissions.d.ts +1 -8
- package/dist/types/src/utils/types/apiQueryOverrides.d.ts +1 -1
- package/package.json +1 -1
package/dist/harmony115.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony115.mjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"harmony115.mjs","sources":["../src/utils/user/permissions.ts"],"sourcesContent":["import type { JwtTokenPayload } from '@features/auth/core/types/jwtTokenPayload'\nimport { isFreePlan, isTrialPlan } from '@utils'\n\ntype JwtCheckFn = (jwt: JwtTokenPayload) => boolean\n\nconst withJwtCheck =\n\t(checkFn: JwtCheckFn) =>\n\t(jwtPayload: JwtTokenPayload | null | undefined): boolean =>\n\t\t!!jwtPayload && checkFn(jwtPayload)\n\nexport const canAccessStyleGuide = withJwtCheck((jwt) =>\n\t['admin', 'biller', 'owner'].includes(jwt.userTeamRole),\n)\n\nexport const canAccessReporting = withJwtCheck((jwt) =>\n\t['admin', 'owner'].includes(jwt.userTeamRole),\n)\n\nexport const canAccessTeamSettings = withJwtCheck(\n\t(jwt) =>\n\t\t['admin', 'biller', 'owner'].includes(jwt.userTeamRole) &&\n\t\tjwt.isFullyAuthenticated &&\n\t\t!jwt.isEndOfTrialActive,\n)\n\nexport const canCreateTeam = withJwtCheck(\n\t(jwt) =>\n\t\t['admin', 'owner'].includes(jwt.userTeamRole) &&\n\t\tjwt.isFullyAuthenticated &&\n\t\t!jwt.isEndOfTrialActive,\n)\n\nexport const canUpgradePlan = withJwtCheck(\n\t(jwt) =>\n\t\t['owner', 'biller'].includes(jwt.userTeamRole) &&\n\t\tjwt.isFullyAuthenticated &&\n\t\t(isFreePlan(jwt.planId) || isTrialPlan(jwt.planId)),\n)\n\nexport const canChangeBilling = withJwtCheck(\n\t(jwt) =>\n\t\t['admin', 'owner', 'biller'].includes(jwt.userTeamRole) &&\n\t\tjwt.isFullyAuthenticated &&\n\t\t!jwt.isTeamSuspended &&\n\t\t!jwt.isEndOfTrialActive,\n)\n\nexport const canAccessProviderDashboard = withJwtCheck(\n\t(jwt) => jwt.isProviderAlpha && !jwt.isTeamSuspended && jwt.isFullyAuthenticated,\n)\n\nexport const canAccessProfileSettings = withJwtCheck(\n\t(jwt) => !jwt.isEndOfTrialActive && !jwt.isTeamSuspended,\n)\n"],"names":[],"mappings":";AAKA,MAAM,eACL,CAAC,YACD,CAAC,eACA,CAAC,CAAC,cAAc,QAAQ,UAAU;AAE7B,MAAM,sBAAsB;AAAA,EAAa,CAAC,QAChD,CAAC,SAAS,UAAU,OAAO,EAAE,SAAS,IAAI,YAAY;AACvD;AAEO,MAAM,qBAAqB;AAAA,EAAa,CAAC,QAC/C,CAAC,SAAS,OAAO,EAAE,SAAS,IAAI,YAAY;AAC7C;AAEO,MAAM,wBAAwB;AAAA,EACpC,CAAC,QACA,CAAC,SAAS,UAAU,OAAO,EAAE,SAAS,IAAI,YAAY,KACtD,IAAI,wBACJ,CAAC,IAAI;AACP;AAEO,MAAM,gBAAgB;AAAA,EAC5B,CAAC,QACA,CAAC,SAAS,OAAO,EAAE,SAAS,IAAI,YAAY,KAC5C,IAAI,wBACJ,CAAC,IAAI;AACP;AAEO,MAAM,iBAAiB;AAAA,EAC7B,CAAC,QACA,CAAC,SAAS,QAAQ,EAAE,SAAS,IAAI,YAAY,KAC7C,IAAI,yBACH,WAAW,IAAI,MAAM,KAAK,YAAY,IAAI,MAAM;AACnD;AAEO,MAAM,mBAAmB;AAAA,EAC/B,CAAC,QACA,CAAC,SAAS,SAAS,QAAQ,EAAE,SAAS,IAAI,YAAY,KACtD,IAAI,wBACJ,CAAC,IAAI,mBACL,CAAC,IAAI;AACP;AAEO,MAAM,6BAA6B;AAAA,EACzC,CAAC,QAAQ,IAAI,mBAAmB,CAAC,IAAI,mBAAmB,IAAI;AAC7D;AAEO,MAAM,2BAA2B;AAAA,EACvC,CAAC,QAAQ,CAAC,IAAI,sBAAsB,CAAC,IAAI;AAC1C;"}
|
package/dist/harmony116.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
exports.
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const Avatar_module = require("./harmony143.cjs");
|
|
5
|
+
const Avatar = ({
|
|
6
|
+
src,
|
|
7
|
+
href = "/",
|
|
8
|
+
ariaLabel = "Lokalise App Home",
|
|
9
|
+
alt = "Lokalise Logo"
|
|
10
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx("a", { className: Avatar_module.default.logoLink, href, "aria-label": ariaLabel, children: /* @__PURE__ */ jsxRuntime.jsx("img", { src, alt }) });
|
|
11
|
+
exports.Avatar = Avatar;
|
|
12
12
|
//# sourceMappingURL=harmony116.cjs.map
|
package/dist/harmony116.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony116.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harmony116.cjs","sources":["../src/components/Sidebar/Widgets/Avatar/Avatar.tsx"],"sourcesContent":["import styles from './Avatar.module.css'\n\ntype AvatarProps = {\n\t/** URL of the avatar/logo image */\n\tsrc: string\n\t/** Link destination when avatar is clicked. Defaults to '/' */\n\thref?: string\n\t/** Accessibility label for the avatar link. Defaults to 'Home' */\n\tariaLabel?: string\n\t/** Alt text for the avatar image. Defaults to 'Lokalise' */\n\talt?: string\n}\n\n/**\n * Display company main avatar / logo in the top section of the Sidebar.\n * Used as the main branding element and home navigation link.\n *\n * @example\n * ```\n * <Avatar src=\"/logo.png\" href=\"/\" ariaLabel=\"Home\" alt=\"\" />\n * ```\n */\n\nexport const Avatar = ({\n\tsrc,\n\thref = '/',\n\tariaLabel = 'Lokalise App Home',\n\talt = 'Lokalise Logo',\n}: AvatarProps) => (\n\t<a className={styles.logoLink} href={href} aria-label={ariaLabel}>\n\t\t<img src={src} alt={alt} />\n\t</a>\n)\n"],"names":["jsx","styles"],"mappings":";;;;AAuBO,MAAM,SAAS,CAAC;AAAA,EACtB;AAAA,EACA,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,MAAM;AACP,MACEA,2BAAAA,IAAA,KAAA,EAAE,WAAWC,cAAA,QAAO,UAAU,MAAY,cAAY,WACtD,UAACD,2BAAAA,IAAA,OAAA,EAAI,KAAU,IAAA,CAAU,EAC1B,CAAA;;"}
|
package/dist/harmony116.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./harmony143.mjs";
|
|
3
|
+
const Avatar = ({
|
|
4
|
+
src,
|
|
5
|
+
href = "/",
|
|
6
|
+
ariaLabel = "Lokalise App Home",
|
|
7
|
+
alt = "Lokalise Logo"
|
|
8
|
+
}) => /* @__PURE__ */ jsx("a", { className: styles.logoLink, href, "aria-label": ariaLabel, children: /* @__PURE__ */ jsx("img", { src, alt }) });
|
|
7
9
|
export {
|
|
8
|
-
|
|
9
|
-
sidebarContainer,
|
|
10
|
-
sidebarSkeleton
|
|
10
|
+
Avatar
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=harmony116.mjs.map
|
package/dist/harmony116.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony116.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harmony116.mjs","sources":["../src/components/Sidebar/Widgets/Avatar/Avatar.tsx"],"sourcesContent":["import styles from './Avatar.module.css'\n\ntype AvatarProps = {\n\t/** URL of the avatar/logo image */\n\tsrc: string\n\t/** Link destination when avatar is clicked. Defaults to '/' */\n\thref?: string\n\t/** Accessibility label for the avatar link. Defaults to 'Home' */\n\tariaLabel?: string\n\t/** Alt text for the avatar image. Defaults to 'Lokalise' */\n\talt?: string\n}\n\n/**\n * Display company main avatar / logo in the top section of the Sidebar.\n * Used as the main branding element and home navigation link.\n *\n * @example\n * ```\n * <Avatar src=\"/logo.png\" href=\"/\" ariaLabel=\"Home\" alt=\"\" />\n * ```\n */\n\nexport const Avatar = ({\n\tsrc,\n\thref = '/',\n\tariaLabel = 'Lokalise App Home',\n\talt = 'Lokalise Logo',\n}: AvatarProps) => (\n\t<a className={styles.logoLink} href={href} aria-label={ariaLabel}>\n\t\t<img src={src} alt={alt} />\n\t</a>\n)\n"],"names":[],"mappings":";;AAuBO,MAAM,SAAS,CAAC;AAAA,EACtB;AAAA,EACA,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,MAAM;AACP,MACE,oBAAA,KAAA,EAAE,WAAW,OAAO,UAAU,MAAY,cAAY,WACtD,UAAC,oBAAA,OAAA,EAAI,KAAU,IAAA,CAAU,EAC1B,CAAA;"}
|
package/dist/harmony117.cjs
CHANGED
|
@@ -2,14 +2,49 @@
|
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
const clsx = require("./harmony92.cjs");
|
|
6
|
+
const HelpMenu_module = require("./harmony144.cjs");
|
|
7
|
+
const HelpMenu = ({ contactSupport, keyboardShortcuts }) => {
|
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
+
louis.Menu,
|
|
10
|
+
{
|
|
11
|
+
menuButton: ({ opened }) => /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12
|
+
"button",
|
|
13
|
+
{
|
|
14
|
+
type: "button",
|
|
15
|
+
className: clsx.clsx(HelpMenu_module.default.dropdownButton, {
|
|
16
|
+
[HelpMenu_module.default.dropdownButtonActive]: opened
|
|
17
|
+
}),
|
|
18
|
+
"data-testid": "sidebar-help-menu-button",
|
|
19
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.HelpCenterIcon, { size: "25px" })
|
|
20
|
+
}
|
|
21
|
+
) }),
|
|
22
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(louis.MenuList, { placement: "right-start", children: [
|
|
23
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { href: "https://lokalise.com/blog/category/tutorials/", target: "_blank", children: "Tutorials" }),
|
|
24
|
+
contactSupport && /* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { onClick: contactSupport.onClick, children: "Contact support" }),
|
|
25
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { href: "https://docs.lokalise.com/en/", target: "_blank", children: "Documentation" }),
|
|
26
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuDivider, {}),
|
|
27
|
+
keyboardShortcuts && /* @__PURE__ */ jsxRuntime.jsxs(louis.MenuItem, { className: HelpMenu_module.default.shortcutMenu, onClick: keyboardShortcuts.onClick, children: [
|
|
28
|
+
"Keyboard shortcuts",
|
|
29
|
+
" ",
|
|
30
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: HelpMenu_module.default.shortcutLabel, children: keyboardShortcuts.label })
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33
|
+
louis.MenuItem,
|
|
34
|
+
{
|
|
35
|
+
href: "https://developers.lokalise.com/reference/lokalise-rest-api",
|
|
36
|
+
target: "_blank",
|
|
37
|
+
children: "API reference"
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { href: "https://github.com/lokalise/lokalise-cli-2-go", target: "_blank", children: "CLI tool" }),
|
|
41
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuDivider, {}),
|
|
42
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { href: "https://lokalise.com/blog/category/product-updates/", target: "_blank", children: "What’s new" }),
|
|
43
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { href: "https://lokalise.com/blog/", target: "_blank", children: "Blog" }),
|
|
44
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { href: "https://lokalise.com/product/apps", target: "_blank", children: "Apps" })
|
|
45
|
+
] })
|
|
46
|
+
}
|
|
47
|
+
);
|
|
13
48
|
};
|
|
14
|
-
exports.
|
|
49
|
+
exports.HelpMenu = HelpMenu;
|
|
15
50
|
//# sourceMappingURL=harmony117.cjs.map
|
package/dist/harmony117.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony117.cjs","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"harmony117.cjs","sources":["../src/components/Sidebar/Widgets/HelpMenu/HelpMenu.tsx"],"sourcesContent":["import type { HelpMenuConfig } from '@components/Sidebar/types'\nimport { HelpCenterIcon, Menu, MenuDivider, MenuItem, MenuList, Tooltip } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport styles from './HelpMenu.module.css'\n\n/**\n * Help menu component that provides links to tutorials, documentation, support, and more.\n *\n * @example\n * ```\n * <HelpMenu\n * contactSupport={{ onClick: handleContactSupport }}\n * keyboardShortcuts={{ onClick: handleShowShortcuts, label: '⌘K' }}\n * />\n * ```\n */\n\nexport const HelpMenu = ({ contactSupport, keyboardShortcuts }: HelpMenuConfig) => {\n\treturn (\n\t\t<Menu\n\t\t\tmenuButton={({ opened }) => (\n\t\t\t\t<Tooltip placement=\"right\" tooltip=\"Help\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclassName={clsx(styles.dropdownButton, {\n\t\t\t\t\t\t\t[styles.dropdownButtonActive]: opened,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tdata-testid=\"sidebar-help-menu-button\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<HelpCenterIcon size=\"25px\" />\n\t\t\t\t\t</button>\n\t\t\t\t</Tooltip>\n\t\t\t)}\n\t\t>\n\t\t\t<MenuList placement=\"right-start\">\n\t\t\t\t<MenuItem href=\"https://lokalise.com/blog/category/tutorials/\" target=\"_blank\">\n\t\t\t\t\tTutorials\n\t\t\t\t</MenuItem>\n\t\t\t\t{contactSupport && <MenuItem onClick={contactSupport.onClick}>Contact support</MenuItem>}\n\t\t\t\t<MenuItem href=\"https://docs.lokalise.com/en/\" target=\"_blank\">\n\t\t\t\t\tDocumentation\n\t\t\t\t</MenuItem>\n\t\t\t\t<MenuDivider />\n\t\t\t\t{keyboardShortcuts && (\n\t\t\t\t\t<MenuItem className={styles.shortcutMenu} onClick={keyboardShortcuts.onClick}>\n\t\t\t\t\t\tKeyboard shortcuts{' '}\n\t\t\t\t\t\t<span className={styles.shortcutLabel}>{keyboardShortcuts.label}</span>\n\t\t\t\t\t</MenuItem>\n\t\t\t\t)}\n\t\t\t\t<MenuItem\n\t\t\t\t\thref=\"https://developers.lokalise.com/reference/lokalise-rest-api\"\n\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t>\n\t\t\t\t\tAPI reference\n\t\t\t\t</MenuItem>\n\t\t\t\t<MenuItem href=\"https://github.com/lokalise/lokalise-cli-2-go\" target=\"_blank\">\n\t\t\t\t\tCLI tool\n\t\t\t\t</MenuItem>\n\t\t\t\t<MenuDivider />\n\t\t\t\t<MenuItem href=\"https://lokalise.com/blog/category/product-updates/\" target=\"_blank\">\n\t\t\t\t\tWhat’s new\n\t\t\t\t</MenuItem>\n\t\t\t\t<MenuItem href=\"https://lokalise.com/blog/\" target=\"_blank\">\n\t\t\t\t\tBlog\n\t\t\t\t</MenuItem>\n\t\t\t\t<MenuItem href=\"https://lokalise.com/product/apps\" target=\"_blank\">\n\t\t\t\t\tApps\n\t\t\t\t</MenuItem>\n\t\t\t</MenuList>\n\t\t</Menu>\n\t)\n}\n"],"names":["jsx","Menu","Tooltip","clsx","styles","HelpCenterIcon","jsxs","MenuList","MenuItem","MenuDivider"],"mappings":";;;;;;AAiBO,MAAM,WAAW,CAAC,EAAE,gBAAgB,wBAAwC;AAEjF,SAAAA,2BAAA;AAAA,IAACC,MAAA;AAAA,IAAA;AAAA,MACA,YAAY,CAAC,EAAE,OAAO,qCACpBC,MAAQ,SAAA,EAAA,WAAU,SAAQ,SAAQ,QAClC,UAAAF,2BAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,MAAK;AAAA,UACL,WAAWG,KAAAA,KAAKC,gBAAA,QAAO,gBAAgB;AAAA,YACtC,CAACA,gBAAAA,QAAO,oBAAoB,GAAG;AAAA,UAAA,CAC/B;AAAA,UACD,eAAY;AAAA,UAEZ,UAAAJ,2BAAAA,IAACK,MAAAA,gBAAe,EAAA,MAAK,OAAO,CAAA;AAAA,QAAA;AAAA,MAAA,GAE9B;AAAA,MAGD,UAAAC,2BAAA,KAACC,MAAS,UAAA,EAAA,WAAU,eACnB,UAAA;AAAA,QAAAP,+BAACQ,MAAAA,UAAS,EAAA,MAAK,iDAAgD,QAAO,UAAS,UAE/E,aAAA;AAAA,QACC,kBAAmBR,2BAAAA,IAAAQ,MAAAA,UAAA,EAAS,SAAS,eAAe,SAAS,UAAe,mBAAA;AAAA,uCAC5EA,MAAAA,UAAS,EAAA,MAAK,iCAAgC,QAAO,UAAS,UAE/D,iBAAA;AAAA,uCACCC,MAAY,aAAA,EAAA;AAAA,QACZ,qDACCD,gBAAS,EAAA,WAAWJ,gBAAAA,QAAO,cAAc,SAAS,kBAAkB,SAAS,UAAA;AAAA,UAAA;AAAA,UAC1D;AAAA,yCAClB,QAAK,EAAA,WAAWA,gBAAAA,QAAO,eAAgB,4BAAkB,MAAM,CAAA;AAAA,QAAA,GACjE;AAAA,QAEDJ,2BAAA;AAAA,UAACQ,MAAA;AAAA,UAAA;AAAA,YACA,MAAK;AAAA,YACL,QAAO;AAAA,YACP,UAAA;AAAA,UAAA;AAAA,QAED;AAAA,uCACCA,MAAAA,UAAS,EAAA,MAAK,iDAAgD,QAAO,UAAS,UAE/E,YAAA;AAAA,uCACCC,MAAY,aAAA,EAAA;AAAA,uCACZD,MAAAA,UAAS,EAAA,MAAK,uDAAsD,QAAO,UAAS,UAErF,cAAA;AAAA,uCACCA,MAAAA,UAAS,EAAA,MAAK,8BAA6B,QAAO,UAAS,UAE5D,QAAA;AAAA,uCACCA,MAAAA,UAAS,EAAA,MAAK,qCAAoC,QAAO,UAAS,UAEnE,OAAA,CAAA;AAAA,MAAA,EACD,CAAA;AAAA,IAAA;AAAA,EACD;AAEF;;"}
|
package/dist/harmony117.mjs
CHANGED
|
@@ -1,15 +1,50 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Menu, MenuList, MenuItem, MenuDivider, Tooltip, HelpCenterIcon } from "@lokalise/louis";
|
|
3
|
+
import { clsx } from "./harmony92.mjs";
|
|
4
|
+
import styles from "./harmony144.mjs";
|
|
5
|
+
const HelpMenu = ({ contactSupport, keyboardShortcuts }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(
|
|
7
|
+
Menu,
|
|
8
|
+
{
|
|
9
|
+
menuButton: ({ opened }) => /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ jsx(
|
|
10
|
+
"button",
|
|
11
|
+
{
|
|
12
|
+
type: "button",
|
|
13
|
+
className: clsx(styles.dropdownButton, {
|
|
14
|
+
[styles.dropdownButtonActive]: opened
|
|
15
|
+
}),
|
|
16
|
+
"data-testid": "sidebar-help-menu-button",
|
|
17
|
+
children: /* @__PURE__ */ jsx(HelpCenterIcon, { size: "25px" })
|
|
18
|
+
}
|
|
19
|
+
) }),
|
|
20
|
+
children: /* @__PURE__ */ jsxs(MenuList, { placement: "right-start", children: [
|
|
21
|
+
/* @__PURE__ */ jsx(MenuItem, { href: "https://lokalise.com/blog/category/tutorials/", target: "_blank", children: "Tutorials" }),
|
|
22
|
+
contactSupport && /* @__PURE__ */ jsx(MenuItem, { onClick: contactSupport.onClick, children: "Contact support" }),
|
|
23
|
+
/* @__PURE__ */ jsx(MenuItem, { href: "https://docs.lokalise.com/en/", target: "_blank", children: "Documentation" }),
|
|
24
|
+
/* @__PURE__ */ jsx(MenuDivider, {}),
|
|
25
|
+
keyboardShortcuts && /* @__PURE__ */ jsxs(MenuItem, { className: styles.shortcutMenu, onClick: keyboardShortcuts.onClick, children: [
|
|
26
|
+
"Keyboard shortcuts",
|
|
27
|
+
" ",
|
|
28
|
+
/* @__PURE__ */ jsx("span", { className: styles.shortcutLabel, children: keyboardShortcuts.label })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ jsx(
|
|
31
|
+
MenuItem,
|
|
32
|
+
{
|
|
33
|
+
href: "https://developers.lokalise.com/reference/lokalise-rest-api",
|
|
34
|
+
target: "_blank",
|
|
35
|
+
children: "API reference"
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ jsx(MenuItem, { href: "https://github.com/lokalise/lokalise-cli-2-go", target: "_blank", children: "CLI tool" }),
|
|
39
|
+
/* @__PURE__ */ jsx(MenuDivider, {}),
|
|
40
|
+
/* @__PURE__ */ jsx(MenuItem, { href: "https://lokalise.com/blog/category/product-updates/", target: "_blank", children: "What’s new" }),
|
|
41
|
+
/* @__PURE__ */ jsx(MenuItem, { href: "https://lokalise.com/blog/", target: "_blank", children: "Blog" }),
|
|
42
|
+
/* @__PURE__ */ jsx(MenuItem, { href: "https://lokalise.com/product/apps", target: "_blank", children: "Apps" })
|
|
43
|
+
] })
|
|
44
|
+
}
|
|
45
|
+
);
|
|
11
46
|
};
|
|
12
47
|
export {
|
|
13
|
-
|
|
48
|
+
HelpMenu
|
|
14
49
|
};
|
|
15
50
|
//# sourceMappingURL=harmony117.mjs.map
|
package/dist/harmony117.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony117.mjs","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"harmony117.mjs","sources":["../src/components/Sidebar/Widgets/HelpMenu/HelpMenu.tsx"],"sourcesContent":["import type { HelpMenuConfig } from '@components/Sidebar/types'\nimport { HelpCenterIcon, Menu, MenuDivider, MenuItem, MenuList, Tooltip } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport styles from './HelpMenu.module.css'\n\n/**\n * Help menu component that provides links to tutorials, documentation, support, and more.\n *\n * @example\n * ```\n * <HelpMenu\n * contactSupport={{ onClick: handleContactSupport }}\n * keyboardShortcuts={{ onClick: handleShowShortcuts, label: '⌘K' }}\n * />\n * ```\n */\n\nexport const HelpMenu = ({ contactSupport, keyboardShortcuts }: HelpMenuConfig) => {\n\treturn (\n\t\t<Menu\n\t\t\tmenuButton={({ opened }) => (\n\t\t\t\t<Tooltip placement=\"right\" tooltip=\"Help\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclassName={clsx(styles.dropdownButton, {\n\t\t\t\t\t\t\t[styles.dropdownButtonActive]: opened,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tdata-testid=\"sidebar-help-menu-button\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<HelpCenterIcon size=\"25px\" />\n\t\t\t\t\t</button>\n\t\t\t\t</Tooltip>\n\t\t\t)}\n\t\t>\n\t\t\t<MenuList placement=\"right-start\">\n\t\t\t\t<MenuItem href=\"https://lokalise.com/blog/category/tutorials/\" target=\"_blank\">\n\t\t\t\t\tTutorials\n\t\t\t\t</MenuItem>\n\t\t\t\t{contactSupport && <MenuItem onClick={contactSupport.onClick}>Contact support</MenuItem>}\n\t\t\t\t<MenuItem href=\"https://docs.lokalise.com/en/\" target=\"_blank\">\n\t\t\t\t\tDocumentation\n\t\t\t\t</MenuItem>\n\t\t\t\t<MenuDivider />\n\t\t\t\t{keyboardShortcuts && (\n\t\t\t\t\t<MenuItem className={styles.shortcutMenu} onClick={keyboardShortcuts.onClick}>\n\t\t\t\t\t\tKeyboard shortcuts{' '}\n\t\t\t\t\t\t<span className={styles.shortcutLabel}>{keyboardShortcuts.label}</span>\n\t\t\t\t\t</MenuItem>\n\t\t\t\t)}\n\t\t\t\t<MenuItem\n\t\t\t\t\thref=\"https://developers.lokalise.com/reference/lokalise-rest-api\"\n\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t>\n\t\t\t\t\tAPI reference\n\t\t\t\t</MenuItem>\n\t\t\t\t<MenuItem href=\"https://github.com/lokalise/lokalise-cli-2-go\" target=\"_blank\">\n\t\t\t\t\tCLI tool\n\t\t\t\t</MenuItem>\n\t\t\t\t<MenuDivider />\n\t\t\t\t<MenuItem href=\"https://lokalise.com/blog/category/product-updates/\" target=\"_blank\">\n\t\t\t\t\tWhat’s new\n\t\t\t\t</MenuItem>\n\t\t\t\t<MenuItem href=\"https://lokalise.com/blog/\" target=\"_blank\">\n\t\t\t\t\tBlog\n\t\t\t\t</MenuItem>\n\t\t\t\t<MenuItem href=\"https://lokalise.com/product/apps\" target=\"_blank\">\n\t\t\t\t\tApps\n\t\t\t\t</MenuItem>\n\t\t\t</MenuList>\n\t\t</Menu>\n\t)\n}\n"],"names":[],"mappings":";;;;AAiBO,MAAM,WAAW,CAAC,EAAE,gBAAgB,wBAAwC;AAEjF,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,YAAY,CAAC,EAAE,OAAO,0BACpB,SAAQ,EAAA,WAAU,SAAQ,SAAQ,QAClC,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,MAAK;AAAA,UACL,WAAW,KAAK,OAAO,gBAAgB;AAAA,YACtC,CAAC,OAAO,oBAAoB,GAAG;AAAA,UAAA,CAC/B;AAAA,UACD,eAAY;AAAA,UAEZ,UAAA,oBAAC,gBAAe,EAAA,MAAK,OAAO,CAAA;AAAA,QAAA;AAAA,MAAA,GAE9B;AAAA,MAGD,UAAA,qBAAC,UAAS,EAAA,WAAU,eACnB,UAAA;AAAA,QAAA,oBAAC,UAAS,EAAA,MAAK,iDAAgD,QAAO,UAAS,UAE/E,aAAA;AAAA,QACC,kBAAmB,oBAAA,UAAA,EAAS,SAAS,eAAe,SAAS,UAAe,mBAAA;AAAA,4BAC5E,UAAS,EAAA,MAAK,iCAAgC,QAAO,UAAS,UAE/D,iBAAA;AAAA,4BACC,aAAY,EAAA;AAAA,QACZ,0CACC,UAAS,EAAA,WAAW,OAAO,cAAc,SAAS,kBAAkB,SAAS,UAAA;AAAA,UAAA;AAAA,UAC1D;AAAA,8BAClB,QAAK,EAAA,WAAW,OAAO,eAAgB,4BAAkB,MAAM,CAAA;AAAA,QAAA,GACjE;AAAA,QAED;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,MAAK;AAAA,YACL,QAAO;AAAA,YACP,UAAA;AAAA,UAAA;AAAA,QAED;AAAA,4BACC,UAAS,EAAA,MAAK,iDAAgD,QAAO,UAAS,UAE/E,YAAA;AAAA,4BACC,aAAY,EAAA;AAAA,4BACZ,UAAS,EAAA,MAAK,uDAAsD,QAAO,UAAS,UAErF,cAAA;AAAA,4BACC,UAAS,EAAA,MAAK,8BAA6B,QAAO,UAAS,UAE5D,QAAA;AAAA,4BACC,UAAS,EAAA,MAAK,qCAAoC,QAAO,UAAS,UAEnE,OAAA,CAAA;AAAA,MAAA,EACD,CAAA;AAAA,IAAA;AAAA,EACD;AAEF;"}
|
package/dist/harmony118.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 sidebarContainer = "_sidebarContainer_1x0gj_1";
|
|
4
|
+
const sidebarSkeleton = "_sidebarSkeleton_1x0gj_16";
|
|
6
5
|
const styles = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
rightAlignedCell
|
|
6
|
+
sidebarContainer,
|
|
7
|
+
sidebarSkeleton
|
|
10
8
|
};
|
|
11
|
-
exports.centeredCell = centeredCell;
|
|
12
9
|
exports.default = styles;
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
10
|
+
exports.sidebarContainer = sidebarContainer;
|
|
11
|
+
exports.sidebarSkeleton = sidebarSkeleton;
|
|
15
12
|
//# sourceMappingURL=harmony118.cjs.map
|
package/dist/harmony118.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony118.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harmony118.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/harmony118.mjs
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const rightAlignedCell = "_rightAlignedCell_b5tlh_19";
|
|
1
|
+
const sidebarContainer = "_sidebarContainer_1x0gj_1";
|
|
2
|
+
const sidebarSkeleton = "_sidebarSkeleton_1x0gj_16";
|
|
4
3
|
const styles = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
rightAlignedCell
|
|
4
|
+
sidebarContainer,
|
|
5
|
+
sidebarSkeleton
|
|
8
6
|
};
|
|
9
7
|
export {
|
|
10
|
-
centeredCell,
|
|
11
8
|
styles as default,
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
sidebarContainer,
|
|
10
|
+
sidebarSkeleton
|
|
14
11
|
};
|
|
15
12
|
//# sourceMappingURL=harmony118.mjs.map
|
package/dist/harmony118.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony118.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harmony118.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/harmony121.cjs
CHANGED
|
@@ -1,102 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (k !== "default") {
|
|
11
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: () => e[k]
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
n.default = e;
|
|
20
|
-
return Object.freeze(n);
|
|
21
|
-
}
|
|
22
|
-
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
23
|
-
const patchResizeCallback = (resizeCallback, refreshMode, refreshRate, refreshOptions) => {
|
|
24
|
-
switch (refreshMode) {
|
|
25
|
-
case "debounce":
|
|
26
|
-
return debounce.default(resizeCallback, refreshRate, refreshOptions);
|
|
27
|
-
case "throttle":
|
|
28
|
-
return throttle.default(resizeCallback, refreshRate, refreshOptions);
|
|
29
|
-
default:
|
|
30
|
-
return resizeCallback;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
const useCallbackRef = (
|
|
34
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
35
|
-
(callback) => {
|
|
36
|
-
const callbackRef = React__namespace.useRef(callback);
|
|
37
|
-
React__namespace.useEffect(() => {
|
|
38
|
-
callbackRef.current = callback;
|
|
39
|
-
});
|
|
40
|
-
return React__namespace.useMemo(() => (...args) => {
|
|
41
|
-
var _a;
|
|
42
|
-
return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef, ...args);
|
|
43
|
-
}, []);
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
const useRefProxy = (
|
|
47
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
48
|
-
(targetRef) => {
|
|
49
|
-
const [refElement, setRefElement] = React__namespace.useState((targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) || null);
|
|
50
|
-
if (targetRef) {
|
|
51
|
-
setTimeout(() => {
|
|
52
|
-
if (targetRef.current !== refElement) {
|
|
53
|
-
setRefElement(targetRef.current);
|
|
54
|
-
}
|
|
55
|
-
}, 0);
|
|
56
|
-
}
|
|
57
|
-
const refProxy = React__namespace.useMemo(() => new Proxy((node) => {
|
|
58
|
-
if (node !== refElement) {
|
|
59
|
-
setRefElement(node);
|
|
60
|
-
}
|
|
61
|
-
}, {
|
|
62
|
-
get(target, prop) {
|
|
63
|
-
if (prop === "current") {
|
|
64
|
-
return refElement;
|
|
65
|
-
}
|
|
66
|
-
return target[prop];
|
|
67
|
-
},
|
|
68
|
-
set(target, prop, value) {
|
|
69
|
-
if (prop === "current") {
|
|
70
|
-
setRefElement(value);
|
|
71
|
-
} else {
|
|
72
|
-
target[prop] = value;
|
|
73
|
-
}
|
|
74
|
-
return true;
|
|
75
|
-
}
|
|
76
|
-
}), [refElement]);
|
|
77
|
-
return { refProxy, refElement, setRefElement };
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
const getDimensions = (entry, box) => {
|
|
81
|
-
if (box === "border-box") {
|
|
82
|
-
return {
|
|
83
|
-
width: entry.borderBoxSize[0].inlineSize,
|
|
84
|
-
height: entry.borderBoxSize[0].blockSize
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
if (box === "content-box") {
|
|
88
|
-
return {
|
|
89
|
-
width: entry.contentBoxSize[0].inlineSize,
|
|
90
|
-
height: entry.contentBoxSize[0].blockSize
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
return {
|
|
94
|
-
width: entry.contentRect.width,
|
|
95
|
-
height: entry.contentRect.height
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
exports.getDimensions = getDimensions;
|
|
99
|
-
exports.patchResizeCallback = patchResizeCallback;
|
|
100
|
-
exports.useCallbackRef = useCallbackRef;
|
|
101
|
-
exports.useRefProxy = useRefProxy;
|
|
4
|
+
const featureFlagContext = React.createContext(void 0);
|
|
5
|
+
const teamContext = React.createContext(void 0);
|
|
6
|
+
const projectPermissionsContext = React.createContext({});
|
|
7
|
+
exports.featureFlagContext = featureFlagContext;
|
|
8
|
+
exports.projectPermissionsContext = projectPermissionsContext;
|
|
9
|
+
exports.teamContext = teamContext;
|
|
102
10
|
//# sourceMappingURL=harmony121.cjs.map
|
package/dist/harmony121.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony121.cjs","sources":["../
|
|
1
|
+
{"version":3,"file":"harmony121.cjs","sources":["../src/features/permissions/context/ActionsContext.tsx"],"sourcesContent":["import type {\n\tFeatureFlag,\n\tProjectPermission,\n\tProjectType,\n\tTeamRole,\n} from '@features/permissions/types'\nimport { createContext } from 'react'\n\nexport const featureFlagContext = createContext<FeatureFlag[] | undefined>(undefined)\n\nexport const teamContext = createContext<TeamRole | undefined>(undefined)\n\ntype ProjectPermissionsContextType = {\n\tpermissions?: ProjectPermission[]\n\tprojectType?: ProjectType\n}\nexport const projectPermissionsContext = createContext<ProjectPermissionsContextType>({})\n"],"names":["createContext"],"mappings":";;;AAQa,MAAA,qBAAqBA,oBAAyC,MAAS;AAEvE,MAAA,cAAcA,oBAAoC,MAAS;AAM3D,MAAA,4BAA4BA,MAA6C,cAAA,CAAE,CAAA;;;;"}
|
package/dist/harmony121.mjs
CHANGED
|
@@ -1,85 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
switch (refreshMode) {
|
|
6
|
-
case "debounce":
|
|
7
|
-
return debounce(resizeCallback, refreshRate, refreshOptions);
|
|
8
|
-
case "throttle":
|
|
9
|
-
return throttle(resizeCallback, refreshRate, refreshOptions);
|
|
10
|
-
default:
|
|
11
|
-
return resizeCallback;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
const useCallbackRef = (
|
|
15
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
-
(callback) => {
|
|
17
|
-
const callbackRef = React.useRef(callback);
|
|
18
|
-
React.useEffect(() => {
|
|
19
|
-
callbackRef.current = callback;
|
|
20
|
-
});
|
|
21
|
-
return React.useMemo(() => (...args) => {
|
|
22
|
-
var _a;
|
|
23
|
-
return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef, ...args);
|
|
24
|
-
}, []);
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
const useRefProxy = (
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
29
|
-
(targetRef) => {
|
|
30
|
-
const [refElement, setRefElement] = React.useState((targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) || null);
|
|
31
|
-
if (targetRef) {
|
|
32
|
-
setTimeout(() => {
|
|
33
|
-
if (targetRef.current !== refElement) {
|
|
34
|
-
setRefElement(targetRef.current);
|
|
35
|
-
}
|
|
36
|
-
}, 0);
|
|
37
|
-
}
|
|
38
|
-
const refProxy = React.useMemo(() => new Proxy((node) => {
|
|
39
|
-
if (node !== refElement) {
|
|
40
|
-
setRefElement(node);
|
|
41
|
-
}
|
|
42
|
-
}, {
|
|
43
|
-
get(target, prop) {
|
|
44
|
-
if (prop === "current") {
|
|
45
|
-
return refElement;
|
|
46
|
-
}
|
|
47
|
-
return target[prop];
|
|
48
|
-
},
|
|
49
|
-
set(target, prop, value) {
|
|
50
|
-
if (prop === "current") {
|
|
51
|
-
setRefElement(value);
|
|
52
|
-
} else {
|
|
53
|
-
target[prop] = value;
|
|
54
|
-
}
|
|
55
|
-
return true;
|
|
56
|
-
}
|
|
57
|
-
}), [refElement]);
|
|
58
|
-
return { refProxy, refElement, setRefElement };
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
const getDimensions = (entry, box) => {
|
|
62
|
-
if (box === "border-box") {
|
|
63
|
-
return {
|
|
64
|
-
width: entry.borderBoxSize[0].inlineSize,
|
|
65
|
-
height: entry.borderBoxSize[0].blockSize
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
if (box === "content-box") {
|
|
69
|
-
return {
|
|
70
|
-
width: entry.contentBoxSize[0].inlineSize,
|
|
71
|
-
height: entry.contentBoxSize[0].blockSize
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
width: entry.contentRect.width,
|
|
76
|
-
height: entry.contentRect.height
|
|
77
|
-
};
|
|
78
|
-
};
|
|
1
|
+
import { createContext } from "react";
|
|
2
|
+
const featureFlagContext = createContext(void 0);
|
|
3
|
+
const teamContext = createContext(void 0);
|
|
4
|
+
const projectPermissionsContext = createContext({});
|
|
79
5
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
useRefProxy
|
|
6
|
+
featureFlagContext,
|
|
7
|
+
projectPermissionsContext,
|
|
8
|
+
teamContext
|
|
84
9
|
};
|
|
85
10
|
//# sourceMappingURL=harmony121.mjs.map
|
package/dist/harmony121.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony121.mjs","sources":["../
|
|
1
|
+
{"version":3,"file":"harmony121.mjs","sources":["../src/features/permissions/context/ActionsContext.tsx"],"sourcesContent":["import type {\n\tFeatureFlag,\n\tProjectPermission,\n\tProjectType,\n\tTeamRole,\n} from '@features/permissions/types'\nimport { createContext } from 'react'\n\nexport const featureFlagContext = createContext<FeatureFlag[] | undefined>(undefined)\n\nexport const teamContext = createContext<TeamRole | undefined>(undefined)\n\ntype ProjectPermissionsContextType = {\n\tpermissions?: ProjectPermission[]\n\tprojectType?: ProjectType\n}\nexport const projectPermissionsContext = createContext<ProjectPermissionsContextType>({})\n"],"names":[],"mappings":";AAQa,MAAA,qBAAqB,cAAyC,MAAS;AAEvE,MAAA,cAAc,cAAoC,MAAS;AAM3D,MAAA,4BAA4B,cAA6C,CAAE,CAAA;"}
|
package/dist/harmony122.cjs
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const ActionsContext = require("./harmony121.cjs");
|
|
3
4
|
const React = require("react");
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
const useActionResolverPayload = () => {
|
|
6
|
+
const teamRole = React.useContext(ActionsContext.teamContext);
|
|
7
|
+
const enabledFeatureFlags = React.useContext(ActionsContext.featureFlagContext);
|
|
8
|
+
const { permissions: projectPermissions, projectType } = React.useContext(ActionsContext.projectPermissionsContext);
|
|
9
|
+
return React.useMemo(
|
|
10
|
+
() => ({
|
|
11
|
+
enabledFeatureFlags,
|
|
12
|
+
teamRole,
|
|
13
|
+
projectPermissions,
|
|
14
|
+
projectType
|
|
15
|
+
}),
|
|
16
|
+
[enabledFeatureFlags, teamRole, projectPermissions, projectType]
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
exports.useActionResolverPayload = useActionResolverPayload;
|
|
10
20
|
//# sourceMappingURL=harmony122.cjs.map
|
package/dist/harmony122.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony122.cjs","sources":["../src/features/permissions/
|
|
1
|
+
{"version":3,"file":"harmony122.cjs","sources":["../src/features/permissions/hooks/useActionResolverPayload.ts"],"sourcesContent":["import {\n\tfeatureFlagContext,\n\tprojectPermissionsContext,\n\tteamContext,\n} from '@features/permissions/context/ActionsContext'\nimport type { ActionResolverPayload } from '@features/permissions/types'\nimport { useContext, useMemo } from 'react'\n\nexport const useActionResolverPayload = (): ActionResolverPayload => {\n\tconst teamRole = useContext(teamContext)\n\tconst enabledFeatureFlags = useContext(featureFlagContext)\n\tconst { permissions: projectPermissions, projectType } = useContext(projectPermissionsContext)\n\n\treturn useMemo(\n\t\t() =>\n\t\t\t({\n\t\t\t\tenabledFeatureFlags,\n\t\t\t\tteamRole,\n\t\t\t\tprojectPermissions,\n\t\t\t\tprojectType,\n\t\t\t}) satisfies ActionResolverPayload,\n\t\t[enabledFeatureFlags, teamRole, projectPermissions, projectType],\n\t)\n}\n"],"names":["useContext","teamContext","featureFlagContext","projectPermissionsContext","useMemo"],"mappings":";;;;AAQO,MAAM,2BAA2B,MAA6B;AAC9D,QAAA,WAAWA,iBAAWC,0BAAW;AACjC,QAAA,sBAAsBD,iBAAWE,iCAAkB;AACzD,QAAM,EAAE,aAAa,oBAAoB,YAAY,IAAIF,MAAAA,WAAWG,eAAAA,yBAAyB;AAEtF,SAAAC,MAAA;AAAA,IACN,OACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAAA;AAAA,IAEF,CAAC,qBAAqB,UAAU,oBAAoB,WAAW;AAAA,EAChE;AACD;;"}
|