@lokalise/harmony 1.40.3-exp-epic2x.1 → 1.40.3-exp-epic2x.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/harmony100.cjs +10 -8
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +11 -9
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +21 -47
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +20 -46
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +99 -9
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +81 -8
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +11 -96
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +11 -79
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +20 -14
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +20 -14
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +87 -20
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +87 -20
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +31 -10
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +30 -9
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +9 -14
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +8 -13
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +7 -12
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +9 -14
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +6 -12
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +6 -12
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +16 -7
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +18 -9
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +7 -26
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +8 -27
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +22 -9
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +23 -10
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +7 -32
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +9 -34
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +31 -7
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +33 -9
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +8 -18
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +8 -18
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +13 -26
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +14 -27
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +36 -21
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +35 -20
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +21 -21
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +20 -20
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +21 -6
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +20 -5
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +3 -12
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +3 -12
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +15 -87
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +14 -86
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +6 -31
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +5 -30
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +5 -5
- package/dist/harmony123.mjs +5 -5
- package/dist/harmony124.cjs +97 -6
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +96 -5
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +11 -94
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +11 -94
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +13 -12
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +13 -12
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +35 -13
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +35 -13
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +24 -32
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +24 -32
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +10 -28
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +10 -28
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony137.cjs +13 -10
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +13 -10
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +14 -12
- package/dist/harmony138.cjs.map +1 -1
- package/dist/harmony138.mjs +14 -12
- package/dist/harmony138.mjs.map +1 -1
- package/dist/harmony139.cjs +14 -13
- package/dist/harmony139.cjs.map +1 -1
- package/dist/harmony139.mjs +14 -13
- package/dist/harmony139.mjs.map +1 -1
- package/dist/harmony14.cjs +1 -1
- package/dist/harmony14.mjs +1 -1
- package/dist/harmony140.cjs +10 -15
- package/dist/harmony140.cjs.map +1 -1
- package/dist/harmony140.mjs +10 -15
- package/dist/harmony140.mjs.map +1 -1
- package/dist/harmony141.cjs +15 -10
- package/dist/harmony141.cjs.map +1 -1
- package/dist/harmony141.mjs +15 -10
- package/dist/harmony141.mjs.map +1 -1
- package/dist/harmony142.cjs +18 -13
- package/dist/harmony142.cjs.map +1 -1
- package/dist/harmony142.mjs +18 -13
- package/dist/harmony142.mjs.map +1 -1
- package/dist/harmony143.cjs +10 -19
- package/dist/harmony143.cjs.map +1 -1
- package/dist/harmony143.mjs +10 -19
- package/dist/harmony143.mjs.map +1 -1
- package/dist/harmony144.cjs +5 -11
- package/dist/harmony144.cjs.map +1 -1
- package/dist/harmony144.mjs +5 -11
- package/dist/harmony144.mjs.map +1 -1
- package/dist/harmony145.cjs +11 -5
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +11 -5
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +31 -11
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +31 -11
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +10 -28
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +10 -28
- package/dist/harmony147.mjs.map +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/harmony4.cjs +1 -11
- package/dist/harmony4.cjs.map +1 -1
- package/dist/harmony4.mjs +1 -11
- package/dist/harmony4.mjs.map +1 -1
- package/dist/harmony75.cjs +1 -1
- package/dist/harmony75.mjs +1 -1
- package/dist/harmony76.cjs +28 -40
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +28 -40
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +8 -10
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +8 -10
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony80.cjs +2 -2
- package/dist/harmony80.mjs +2 -2
- package/dist/harmony82.cjs +2 -2
- package/dist/harmony82.mjs +2 -2
- package/dist/harmony84.cjs +2 -2
- package/dist/harmony84.mjs +2 -2
- package/dist/harmony88.cjs +165 -11
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +165 -11
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +44 -12
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +43 -11
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +10 -9
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +12 -11
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +11 -20
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +11 -20
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +2 -165
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +3 -166
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +16 -42
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +16 -42
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +74 -25
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +74 -25
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +11 -2
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +12 -3
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +30 -18
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +30 -18
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +8 -74
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +9 -75
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +46 -11
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +46 -11
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +10 -31
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +9 -30
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/components/Sidebar/SidebarProvider.d.ts +1 -1
- package/dist/types/src/components/Sidebar/hooks/useSidebarDataLoader.d.ts +2 -2
- package/dist/types/src/components/Sidebar/types.d.ts +14 -16
- package/dist/types/src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListPermissionTemplates.d.ts +1 -1
- package/dist/types/src/features/publicApi/permissionTemplates.d.ts +4 -4
- package/dist/types/src/features/publicApi/projects.d.ts +4 -4
- package/dist/types/src/features/publicApi/types/permissionTemplateTypes.d.ts +6 -6
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +6 -6
- package/dist/types/tests/mocks/sidebar/sidebar.d.ts +8 -13
- package/package.json +1 -1
- package/dist/harmony148.cjs +0 -17
- package/dist/harmony148.cjs.map +0 -1
- package/dist/harmony148.mjs +0 -17
- package/dist/harmony148.mjs.map +0 -1
package/dist/harmony98.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony98.mjs","sources":["../src/components/Sidebar/
|
1
|
+
{"version":3,"file":"harmony98.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/harmony99.cjs
CHANGED
@@ -1,33 +1,12 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
(jwt) => ["admin", "owner"].includes(jwt.userTeamRole) && jwt.isFullyAuthenticated && !jwt.isEndOfTrialActive
|
13
|
-
);
|
14
|
-
const canUpgradePlan = withJwtCheck(
|
15
|
-
(jwt) => ["admin", "owner", "biller"].includes(jwt.userTeamRole) && jwt.isFullyAuthenticated && (plan.isFreePlan(jwt.planId) || plan.isTrialPlan(jwt.planId))
|
16
|
-
);
|
17
|
-
const canChangeBilling = withJwtCheck(
|
18
|
-
(jwt) => ["admin", "owner", "biller"].includes(jwt.userTeamRole) && jwt.isFullyAuthenticated && !jwt.isTeamSuspended && !jwt.isEndOfTrialActive
|
19
|
-
);
|
20
|
-
const canAccessProviderDashboard = withJwtCheck(
|
21
|
-
(jwt) => jwt.isProviderAlpha && !jwt.isTeamSuspended && jwt.isFullyAuthenticated
|
22
|
-
);
|
23
|
-
const canAccessProfileSettings = withJwtCheck(
|
24
|
-
(jwt) => !jwt.isEndOfTrialActive && !jwt.isTeamSuspended
|
25
|
-
);
|
26
|
-
exports.canAccessProfileSettings = canAccessProfileSettings;
|
27
|
-
exports.canAccessProviderDashboard = canAccessProviderDashboard;
|
28
|
-
exports.canAccessReporting = canAccessReporting;
|
29
|
-
exports.canAccessTeamSettings = canAccessTeamSettings;
|
30
|
-
exports.canChangeBilling = canChangeBilling;
|
31
|
-
exports.canCreateTeam = canCreateTeam;
|
32
|
-
exports.canUpgradePlan = canUpgradePlan;
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const sidebarContainer = "_sidebarContainer_1x0gj_1";
|
4
|
+
const sidebarSkeleton = "_sidebarSkeleton_1x0gj_16";
|
5
|
+
const styles = {
|
6
|
+
sidebarContainer,
|
7
|
+
sidebarSkeleton
|
8
|
+
};
|
9
|
+
exports.default = styles;
|
10
|
+
exports.sidebarContainer = sidebarContainer;
|
11
|
+
exports.sidebarSkeleton = sidebarSkeleton;
|
33
12
|
//# sourceMappingURL=harmony99.cjs.map
|
package/dist/harmony99.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony99.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony99.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/harmony99.mjs
CHANGED
@@ -1,33 +1,12 @@
|
|
1
|
-
|
2
|
-
const
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
(jwt) => ["admin", "biller", "owner"].includes(jwt.userTeamRole) && jwt.isFullyAuthenticated
|
8
|
-
);
|
9
|
-
const canCreateTeam = withJwtCheck(
|
10
|
-
(jwt) => ["admin", "owner"].includes(jwt.userTeamRole) && jwt.isFullyAuthenticated && !jwt.isEndOfTrialActive
|
11
|
-
);
|
12
|
-
const canUpgradePlan = withJwtCheck(
|
13
|
-
(jwt) => ["admin", "owner", "biller"].includes(jwt.userTeamRole) && jwt.isFullyAuthenticated && (isFreePlan(jwt.planId) || isTrialPlan(jwt.planId))
|
14
|
-
);
|
15
|
-
const canChangeBilling = withJwtCheck(
|
16
|
-
(jwt) => ["admin", "owner", "biller"].includes(jwt.userTeamRole) && jwt.isFullyAuthenticated && !jwt.isTeamSuspended && !jwt.isEndOfTrialActive
|
17
|
-
);
|
18
|
-
const canAccessProviderDashboard = withJwtCheck(
|
19
|
-
(jwt) => jwt.isProviderAlpha && !jwt.isTeamSuspended && jwt.isFullyAuthenticated
|
20
|
-
);
|
21
|
-
const canAccessProfileSettings = withJwtCheck(
|
22
|
-
(jwt) => !jwt.isEndOfTrialActive && !jwt.isTeamSuspended
|
23
|
-
);
|
1
|
+
const sidebarContainer = "_sidebarContainer_1x0gj_1";
|
2
|
+
const sidebarSkeleton = "_sidebarSkeleton_1x0gj_16";
|
3
|
+
const styles = {
|
4
|
+
sidebarContainer,
|
5
|
+
sidebarSkeleton
|
6
|
+
};
|
24
7
|
export {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
canAccessTeamSettings,
|
29
|
-
canChangeBilling,
|
30
|
-
canCreateTeam,
|
31
|
-
canUpgradePlan
|
8
|
+
styles as default,
|
9
|
+
sidebarContainer,
|
10
|
+
sidebarSkeleton
|
32
11
|
};
|
33
12
|
//# sourceMappingURL=harmony99.mjs.map
|
package/dist/harmony99.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony99.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony99.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
2
2
|
import { SidebarProviderProps } from './types';
|
3
|
-
export declare const SidebarProvider: ({
|
3
|
+
export declare const SidebarProvider: ({ data, jwt, children, }: PropsWithChildren<SidebarProviderProps>) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import { SidebarDataItem } from '../types';
|
2
2
|
export declare const useSidebarDataLoader: <T, A = void>(callback: (args: A) => Promise<T | null>) => {
|
3
|
-
data:
|
3
|
+
data: SidebarDataItem<T>;
|
4
4
|
loadData: (args: A) => Promise<T | null>;
|
5
5
|
};
|
@@ -42,30 +42,28 @@ export type SidebarWidgetsConfig = {
|
|
42
42
|
profileMenu: ProfileMenuConfig;
|
43
43
|
helpMenu?: HelpMenuConfig;
|
44
44
|
};
|
45
|
-
export type
|
46
|
-
widgets: SidebarWidgetsConfig;
|
47
|
-
getJWTPayload: () => Promise<JwtTokenPayload | null>;
|
48
|
-
getCurrentTeam: (props: {
|
49
|
-
teamId: number;
|
50
|
-
}) => Promise<SidebarTeamExtended | null>;
|
51
|
-
getUserTeams: () => Promise<SidebarTeam[] | null>;
|
52
|
-
};
|
53
|
-
export type SidebarProviderProps = {
|
54
|
-
config: Omit<SidebarConfig, 'widgets'>;
|
55
|
-
};
|
56
|
-
export type SidebarDataBase<T> = {
|
45
|
+
export type SidebarDataItem<T> = {
|
57
46
|
loading: boolean;
|
58
47
|
error: boolean;
|
59
48
|
result: T | null;
|
60
49
|
};
|
61
50
|
type SidebarData = {
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
51
|
+
userTeams: SidebarDataItem<SidebarTeam[]>;
|
52
|
+
currentTeam: SidebarDataItem<SidebarTeamExtended>;
|
53
|
+
otherTeams: SidebarDataItem<SidebarTeam[]>;
|
54
|
+
};
|
55
|
+
export type SidebarConfig = {
|
56
|
+
widgets: SidebarWidgetsConfig;
|
57
|
+
jwt: SidebarDataItem<JwtTokenPayload>;
|
58
|
+
data: Omit<SidebarData, 'otherTeams'>;
|
59
|
+
};
|
60
|
+
export type SidebarProviderProps = {
|
61
|
+
data: SidebarConfig['data'];
|
62
|
+
jwt: SidebarDataItem<JwtTokenPayload>;
|
66
63
|
};
|
67
64
|
export type SidebarContextProps = {
|
68
65
|
data: SidebarData;
|
66
|
+
jwt: SidebarDataItem<JwtTokenPayload>;
|
69
67
|
};
|
70
68
|
export declare const SidebarTeamRoles: {
|
71
69
|
readonly member: "member";
|
@@ -30,8 +30,8 @@ export declare function useGetProjectPermissionMetaQuery<T>(wretchClient: Wretch
|
|
30
30
|
project_id: string;
|
31
31
|
project_uuid: string;
|
32
32
|
roles: {
|
33
|
-
role: string;
|
34
33
|
id: number;
|
34
|
+
role: string;
|
35
35
|
description: string | null;
|
36
36
|
tag: string | null;
|
37
37
|
permissions: string[];
|
@@ -18,8 +18,8 @@ export declare const listPermissionTemplatesKeys: {
|
|
18
18
|
*/
|
19
19
|
export declare const useListPermissionTemplatesQuery: <T>(wretchClient: Wretch<T>, headers: HeaderBuilder<ContributorApiBaseHeader>, overrides: ApiQueryOverrides<ListPermissionTemplatesResponse, typeof listPermissionTemplatesKeys>) => import('@tanstack/react-query').UseQueryResult<{
|
20
20
|
roles: {
|
21
|
-
role: string;
|
22
21
|
id: string;
|
22
|
+
role: string;
|
23
23
|
description: string | null;
|
24
24
|
tag: string | null;
|
25
25
|
permissions: string[];
|
@@ -15,8 +15,8 @@ export declare const listPermissionTemplates: import('@lokalise/api-contracts').
|
|
15
15
|
isForMarketingProjects: import('zod').ZodBoolean;
|
16
16
|
doesEnableAllReadOnlyLanguages: import('zod').ZodBoolean;
|
17
17
|
}, "strip", import('zod').ZodTypeAny, {
|
18
|
-
role: string;
|
19
18
|
id: string;
|
19
|
+
role: string;
|
20
20
|
description: string | null;
|
21
21
|
tag: string | null;
|
22
22
|
permissions: string[];
|
@@ -25,8 +25,8 @@ export declare const listPermissionTemplates: import('@lokalise/api-contracts').
|
|
25
25
|
isForMarketingProjects: boolean;
|
26
26
|
doesEnableAllReadOnlyLanguages: boolean;
|
27
27
|
}, {
|
28
|
-
role: string;
|
29
28
|
id: string;
|
29
|
+
role: string;
|
30
30
|
description: string | null;
|
31
31
|
tag: string | null;
|
32
32
|
permissions: string[];
|
@@ -37,8 +37,8 @@ export declare const listPermissionTemplates: import('@lokalise/api-contracts').
|
|
37
37
|
}>, "many">;
|
38
38
|
}, "strip", import('zod').ZodTypeAny, {
|
39
39
|
roles: {
|
40
|
-
role: string;
|
41
40
|
id: string;
|
41
|
+
role: string;
|
42
42
|
description: string | null;
|
43
43
|
tag: string | null;
|
44
44
|
permissions: string[];
|
@@ -49,8 +49,8 @@ export declare const listPermissionTemplates: import('@lokalise/api-contracts').
|
|
49
49
|
}[];
|
50
50
|
}, {
|
51
51
|
roles: {
|
52
|
-
role: string;
|
53
52
|
id: string;
|
53
|
+
role: string;
|
54
54
|
description: string | null;
|
55
55
|
tag: string | null;
|
56
56
|
permissions: string[];
|
@@ -1780,8 +1780,8 @@ export declare const getProjectPermissionMeta: import('@lokalise/api-contracts')
|
|
1780
1780
|
isForMarketingProjects: import('zod').ZodBoolean;
|
1781
1781
|
doesEnableAllReadOnlyLanguages: import('zod').ZodBoolean;
|
1782
1782
|
}, "strip", import('zod').ZodTypeAny, {
|
1783
|
-
role: string;
|
1784
1783
|
id: number;
|
1784
|
+
role: string;
|
1785
1785
|
description: string | null;
|
1786
1786
|
tag: string | null;
|
1787
1787
|
permissions: string[];
|
@@ -1790,8 +1790,8 @@ export declare const getProjectPermissionMeta: import('@lokalise/api-contracts')
|
|
1790
1790
|
isForMarketingProjects: boolean;
|
1791
1791
|
doesEnableAllReadOnlyLanguages: boolean;
|
1792
1792
|
}, {
|
1793
|
-
role: string;
|
1794
1793
|
id: number;
|
1794
|
+
role: string;
|
1795
1795
|
description: string | null;
|
1796
1796
|
tag: string | null;
|
1797
1797
|
permissions: string[];
|
@@ -1815,8 +1815,8 @@ export declare const getProjectPermissionMeta: import('@lokalise/api-contracts')
|
|
1815
1815
|
project_id: string;
|
1816
1816
|
project_uuid: string;
|
1817
1817
|
roles: {
|
1818
|
-
role: string;
|
1819
1818
|
id: number;
|
1819
|
+
role: string;
|
1820
1820
|
description: string | null;
|
1821
1821
|
tag: string | null;
|
1822
1822
|
permissions: string[];
|
@@ -1840,8 +1840,8 @@ export declare const getProjectPermissionMeta: import('@lokalise/api-contracts')
|
|
1840
1840
|
project_id: string;
|
1841
1841
|
project_uuid: string;
|
1842
1842
|
roles: {
|
1843
|
-
role: string;
|
1844
1843
|
id: number;
|
1844
|
+
role: string;
|
1845
1845
|
description: string | null;
|
1846
1846
|
tag: string | null;
|
1847
1847
|
permissions: string[];
|
@@ -12,8 +12,8 @@ export declare const PERMISSION_TEMPLATE_SCHEMA: z.ZodObject<{
|
|
12
12
|
isForMarketingProjects: z.ZodBoolean;
|
13
13
|
doesEnableAllReadOnlyLanguages: z.ZodBoolean;
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
15
|
-
role: string;
|
16
15
|
id: string;
|
16
|
+
role: string;
|
17
17
|
description: string | null;
|
18
18
|
tag: string | null;
|
19
19
|
permissions: string[];
|
@@ -22,8 +22,8 @@ export declare const PERMISSION_TEMPLATE_SCHEMA: z.ZodObject<{
|
|
22
22
|
isForMarketingProjects: boolean;
|
23
23
|
doesEnableAllReadOnlyLanguages: boolean;
|
24
24
|
}, {
|
25
|
-
role: string;
|
26
25
|
id: string;
|
26
|
+
role: string;
|
27
27
|
description: string | null;
|
28
28
|
tag: string | null;
|
29
29
|
permissions: string[];
|
@@ -53,8 +53,8 @@ export declare const LIST_PERMISSION_TEMPLATES_RESPONSE: z.ZodObject<{
|
|
53
53
|
isForMarketingProjects: z.ZodBoolean;
|
54
54
|
doesEnableAllReadOnlyLanguages: z.ZodBoolean;
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
56
|
-
role: string;
|
57
56
|
id: string;
|
57
|
+
role: string;
|
58
58
|
description: string | null;
|
59
59
|
tag: string | null;
|
60
60
|
permissions: string[];
|
@@ -63,8 +63,8 @@ export declare const LIST_PERMISSION_TEMPLATES_RESPONSE: z.ZodObject<{
|
|
63
63
|
isForMarketingProjects: boolean;
|
64
64
|
doesEnableAllReadOnlyLanguages: boolean;
|
65
65
|
}, {
|
66
|
-
role: string;
|
67
66
|
id: string;
|
67
|
+
role: string;
|
68
68
|
description: string | null;
|
69
69
|
tag: string | null;
|
70
70
|
permissions: string[];
|
@@ -75,8 +75,8 @@ export declare const LIST_PERMISSION_TEMPLATES_RESPONSE: z.ZodObject<{
|
|
75
75
|
}>, "many">;
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
77
77
|
roles: {
|
78
|
-
role: string;
|
79
78
|
id: string;
|
79
|
+
role: string;
|
80
80
|
description: string | null;
|
81
81
|
tag: string | null;
|
82
82
|
permissions: string[];
|
@@ -87,8 +87,8 @@ export declare const LIST_PERMISSION_TEMPLATES_RESPONSE: z.ZodObject<{
|
|
87
87
|
}[];
|
88
88
|
}, {
|
89
89
|
roles: {
|
90
|
-
role: string;
|
91
90
|
id: string;
|
91
|
+
role: string;
|
92
92
|
description: string | null;
|
93
93
|
tag: string | null;
|
94
94
|
permissions: string[];
|
@@ -1201,8 +1201,8 @@ declare const PROJECT_PERMISSION_TEMPLATE_DETAILS_META_SCHEMA: z.ZodObject<{
|
|
1201
1201
|
isForMarketingProjects: z.ZodBoolean;
|
1202
1202
|
doesEnableAllReadOnlyLanguages: z.ZodBoolean;
|
1203
1203
|
}, "strip", z.ZodTypeAny, {
|
1204
|
-
role: string;
|
1205
1204
|
id: number;
|
1205
|
+
role: string;
|
1206
1206
|
description: string | null;
|
1207
1207
|
tag: string | null;
|
1208
1208
|
permissions: string[];
|
@@ -1211,8 +1211,8 @@ declare const PROJECT_PERMISSION_TEMPLATE_DETAILS_META_SCHEMA: z.ZodObject<{
|
|
1211
1211
|
isForMarketingProjects: boolean;
|
1212
1212
|
doesEnableAllReadOnlyLanguages: boolean;
|
1213
1213
|
}, {
|
1214
|
-
role: string;
|
1215
1214
|
id: number;
|
1215
|
+
role: string;
|
1216
1216
|
description: string | null;
|
1217
1217
|
tag: string | null;
|
1218
1218
|
permissions: string[];
|
@@ -1267,8 +1267,8 @@ export declare const GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA: z.ZodObje
|
|
1267
1267
|
isForMarketingProjects: z.ZodBoolean;
|
1268
1268
|
doesEnableAllReadOnlyLanguages: z.ZodBoolean;
|
1269
1269
|
}, "strip", z.ZodTypeAny, {
|
1270
|
-
role: string;
|
1271
1270
|
id: number;
|
1271
|
+
role: string;
|
1272
1272
|
description: string | null;
|
1273
1273
|
tag: string | null;
|
1274
1274
|
permissions: string[];
|
@@ -1277,8 +1277,8 @@ export declare const GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA: z.ZodObje
|
|
1277
1277
|
isForMarketingProjects: boolean;
|
1278
1278
|
doesEnableAllReadOnlyLanguages: boolean;
|
1279
1279
|
}, {
|
1280
|
-
role: string;
|
1281
1280
|
id: number;
|
1281
|
+
role: string;
|
1282
1282
|
description: string | null;
|
1283
1283
|
tag: string | null;
|
1284
1284
|
permissions: string[];
|
@@ -1302,8 +1302,8 @@ export declare const GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA: z.ZodObje
|
|
1302
1302
|
project_id: string;
|
1303
1303
|
project_uuid: string;
|
1304
1304
|
roles: {
|
1305
|
-
role: string;
|
1306
1305
|
id: number;
|
1306
|
+
role: string;
|
1307
1307
|
description: string | null;
|
1308
1308
|
tag: string | null;
|
1309
1309
|
permissions: string[];
|
@@ -1327,8 +1327,8 @@ export declare const GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA: z.ZodObje
|
|
1327
1327
|
project_id: string;
|
1328
1328
|
project_uuid: string;
|
1329
1329
|
roles: {
|
1330
|
-
role: string;
|
1331
1330
|
id: number;
|
1331
|
+
role: string;
|
1332
1332
|
description: string | null;
|
1333
1333
|
tag: string | null;
|
1334
1334
|
permissions: string[];
|
@@ -1,19 +1,14 @@
|
|
1
|
-
import { SidebarConfig, SidebarTeam, SidebarTeamExtended
|
1
|
+
import { SidebarConfig, SidebarDataItem, SidebarTeam, SidebarTeamExtended } from '../../../src/components/Sidebar/types';
|
2
2
|
import { JwtTokenPayload } from '../../../src/features/auth/core/types/jwtTokenPayload';
|
3
|
-
|
3
|
+
import { DeepPartial } from '../../../src/utils/testing/deepOverride';
|
4
|
+
export declare const buildLoaderData: <T>(result: T, statusOverrides?: Partial<Pick<SidebarDataItem<T>, "loading" | "error">>) => SidebarDataItem<T>;
|
4
5
|
export declare const createValidJwt: (overrides?: Partial<JwtTokenPayload>) => JwtTokenPayload;
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
currentTeam:
|
6
|
+
export declare const createValidSidebarConfig: (overrides?: DeepPartial<SidebarConfig>) => SidebarConfig;
|
7
|
+
type DataResults = {
|
8
|
+
jwt: JwtTokenPayload | null;
|
9
|
+
currentTeam: SidebarTeamExtended | null;
|
9
10
|
userTeams: SidebarTeam[] | null;
|
10
|
-
};
|
11
|
-
type CreateValidSidebarConfigReturnProps = {
|
12
|
-
config: SidebarConfig;
|
13
|
-
jwtPayload: JwtTokenPayload;
|
14
|
-
currentTeam: SidebarTeamExtended;
|
15
|
-
userTeams: SidebarTeam[];
|
16
11
|
otherTeams: SidebarTeam[];
|
17
12
|
};
|
18
|
-
export declare const
|
13
|
+
export declare const getDataResultsFromConfig: (config: SidebarConfig) => DataResults;
|
19
14
|
export {};
|
package/package.json
CHANGED
package/dist/harmony148.cjs
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
var _objectToString;
|
4
|
-
var hasRequired_objectToString;
|
5
|
-
function require_objectToString() {
|
6
|
-
if (hasRequired_objectToString) return _objectToString;
|
7
|
-
hasRequired_objectToString = 1;
|
8
|
-
var objectProto = Object.prototype;
|
9
|
-
var nativeObjectToString = objectProto.toString;
|
10
|
-
function objectToString(value) {
|
11
|
-
return nativeObjectToString.call(value);
|
12
|
-
}
|
13
|
-
_objectToString = objectToString;
|
14
|
-
return _objectToString;
|
15
|
-
}
|
16
|
-
exports.__require = require_objectToString;
|
17
|
-
//# sourceMappingURL=harmony148.cjs.map
|
package/dist/harmony148.cjs.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"harmony148.cjs","sources":["../node_modules/lodash/_objectToString.js"],"sourcesContent":["/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n"],"names":[],"mappings":";;;;;;;AACA,MAAI,cAAc,OAAO;AAOzB,MAAI,uBAAuB,YAAY;AASvC,WAAS,eAAe,OAAO;AAC7B,WAAO,qBAAqB,KAAK,KAAK;AAAA,EACxC;AAEA,oBAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony148.mjs
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
var _objectToString;
|
2
|
-
var hasRequired_objectToString;
|
3
|
-
function require_objectToString() {
|
4
|
-
if (hasRequired_objectToString) return _objectToString;
|
5
|
-
hasRequired_objectToString = 1;
|
6
|
-
var objectProto = Object.prototype;
|
7
|
-
var nativeObjectToString = objectProto.toString;
|
8
|
-
function objectToString(value) {
|
9
|
-
return nativeObjectToString.call(value);
|
10
|
-
}
|
11
|
-
_objectToString = objectToString;
|
12
|
-
return _objectToString;
|
13
|
-
}
|
14
|
-
export {
|
15
|
-
require_objectToString as __require
|
16
|
-
};
|
17
|
-
//# sourceMappingURL=harmony148.mjs.map
|
package/dist/harmony148.mjs.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"harmony148.mjs","sources":["../node_modules/lodash/_objectToString.js"],"sourcesContent":["/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n"],"names":[],"mappings":";;;;;AACA,MAAI,cAAc,OAAO;AAOzB,MAAI,uBAAuB,YAAY;AASvC,WAAS,eAAe,OAAO;AAC7B,WAAO,qBAAqB,KAAK,KAAK;AAAA,EACxC;AAEA,oBAAiB;;;","x_google_ignoreList":[0]}
|