@lokalise/harmony 1.36.1 → 1.37.1-exp-epic2x.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/harmony.cjs +1 -3
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.css +110 -317
- package/dist/harmony.mjs +2 -4
- package/dist/harmony100.cjs +10 -12
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +9 -11
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +27 -9
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +29 -11
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +14 -21
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +13 -20
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +35 -12
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +35 -12
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +14 -18
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +14 -18
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +22 -21
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +21 -20
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +34 -5
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +34 -5
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +21 -132
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +20 -131
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +21 -12
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +20 -11
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +7 -6
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +6 -5
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +15 -40
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +14 -39
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +6 -61
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +5 -60
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +6 -8
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +5 -7
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +6 -3
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +6 -3
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +6 -99
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +5 -81
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +10 -63
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +9 -62
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +24 -88
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +23 -87
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +3 -15
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +3 -15
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +12 -5
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +12 -5
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +6 -5
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +6 -5
- package/dist/harmony122.cjs +1 -1
- package/dist/harmony122.mjs +1 -1
- package/dist/harmony123.cjs +2 -2
- package/dist/harmony123.mjs +2 -2
- package/dist/harmony125.cjs +13 -7
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +13 -7
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +15 -57
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +15 -57
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +15 -59
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +15 -59
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +12 -19
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +11 -18
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +15 -12
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +15 -12
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony13.cjs +1 -1
- package/dist/harmony13.mjs +1 -1
- package/dist/harmony130.cjs +19 -13
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +19 -13
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +10 -14
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +10 -14
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +5 -10
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +5 -10
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +11 -15
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +11 -15
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +28 -17
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +28 -17
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +12 -10
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +12 -10
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony16.cjs +1 -1
- package/dist/harmony16.mjs +1 -1
- package/dist/harmony23.cjs +1 -1
- package/dist/harmony23.mjs +1 -1
- package/dist/harmony24.cjs +1 -1
- package/dist/harmony24.mjs +1 -1
- package/dist/harmony31.cjs +4 -4
- package/dist/harmony31.cjs.map +1 -1
- package/dist/harmony31.mjs +5 -5
- package/dist/harmony31.mjs.map +1 -1
- package/dist/harmony38.cjs.map +1 -1
- package/dist/harmony38.mjs.map +1 -1
- package/dist/harmony4.cjs +15 -24
- package/dist/harmony4.cjs.map +1 -1
- package/dist/harmony4.mjs +15 -24
- package/dist/harmony4.mjs.map +1 -1
- package/dist/harmony40.cjs.map +1 -1
- package/dist/harmony40.mjs.map +1 -1
- package/dist/harmony44.cjs.map +1 -1
- package/dist/harmony44.mjs.map +1 -1
- package/dist/harmony5.cjs +1 -1
- package/dist/harmony5.mjs +1 -1
- package/dist/harmony6.cjs +3 -3
- package/dist/harmony6.mjs +3 -3
- package/dist/harmony64.cjs +4 -15
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +4 -15
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony7.cjs +1 -1
- package/dist/harmony7.mjs +1 -1
- package/dist/harmony72.cjs +1 -1
- package/dist/harmony72.mjs +1 -1
- package/dist/harmony73.cjs +51 -6
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs +50 -5
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs +38 -8
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs +38 -8
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs +9 -18
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs +8 -17
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony76.cjs +6 -21
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +8 -23
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +28 -4
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +28 -4
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +3 -32
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +3 -32
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +30 -29
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +31 -30
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +25 -17
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +25 -17
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +3 -31
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +3 -31
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +12 -53
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +14 -55
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +75 -9
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +74 -8
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +11 -7
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +12 -8
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +29 -28
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +29 -28
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +9 -3
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +9 -3
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +42 -28
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +44 -30
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +6 -3
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +6 -3
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +12 -10
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +11 -9
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +20 -8
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +20 -8
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +9 -54
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +11 -56
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +12 -42
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +11 -41
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +98 -4
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +82 -5
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +14 -9
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +13 -8
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +21 -25
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +20 -24
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +6 -3
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +6 -3
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +11 -18
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +12 -19
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +17 -12
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +16 -11
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +17 -8
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +19 -10
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/components/Sidebar/Sidebar.d.ts +15 -49
- package/dist/types/src/components/Sidebar/SidebarContent/SidebarContent.d.ts +7 -0
- package/dist/types/src/components/Sidebar/SidebarContext.d.ts +3 -0
- package/dist/types/src/components/Sidebar/SidebarProvider.d.ts +3 -0
- package/dist/types/src/components/Sidebar/Widgets/Avatar/Avatar.d.ts +5 -0
- package/dist/types/src/components/Sidebar/Widgets/HelpMenu/HelpMenu.d.ts +13 -0
- package/dist/types/src/components/Sidebar/Widgets/HelpMenu/HelpMenu.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/IconLink/IconLink.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/Menu/Menu.d.ts +3 -2
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/BillingMenuItem/BillingMenuItem.d.ts +13 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeam/CreateNewTeam.d.ts +17 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeam/CreateNewTeam.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeamPlaceholder/CreateNewTeamPlaceholder.d.ts +17 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeamPlaceholder/CreateNewTeamPlaceholder.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/DarkModeToggle/DarkModeToggle.d.ts +18 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenu.d.ts +11 -24
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenu.stories.d.ts +3 -5
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileSettingsMenuItem/ProfileSettingsMenuItem.d.ts +10 -35
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileSettingsMenuItem/ProfileSettingsMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProviderMenuItem/ProviderMenuItem.d.ts +13 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProviderMenuItem/ProviderMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamMenuItem/TeamMenuItem.d.ts +1 -3
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamMenuItem/TeamMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamSettingsMenuItem/TeamSettingsMenuItem.d.ts +13 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamSettingsMenuItem/TeamSettingsMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamSwitch/TeamSwitch.d.ts +5 -7
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamSwitch/TeamSwitch.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/UpgradeMenuItem/UpgradeMenuItem.d.ts +6 -9
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/UpgradeMenuItem/UpgradeMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/Tasks/utils/content.d.ts +4 -0
- package/dist/types/src/components/Sidebar/hooks/useSidebar.d.ts +1 -0
- package/dist/types/src/components/Sidebar/hooks/useSidebarDataLoader.d.ts +5 -0
- package/dist/types/src/components/Sidebar/types.d.ts +72 -0
- package/dist/types/src/features/auth/core/types/jwtTokenPayload.d.ts +16 -10
- package/dist/types/src/features/auth/core/types/jwtTokenPayload.fixture.d.ts +15 -11
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedSessionPayload.d.ts +7 -5
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedUser.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useCreateProjectMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useCreateScoreMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useDeleteScoreMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useGetScoreQuery.d.ts +4 -3
- package/dist/types/src/features/publicApi/hooks/useGetTeamUsersQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListPermissionTemplates.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListTeamUsersQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useUpdateProjectMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/permissionTemplates.d.ts +4 -4
- package/dist/types/src/features/publicApi/projects.d.ts +18 -18
- package/dist/types/src/features/publicApi/score.d.ts +8 -4
- package/dist/types/src/features/publicApi/teamUsers.d.ts +8 -8
- package/dist/types/src/features/publicApi/types/permissionTemplateTypes.d.ts +6 -6
- package/dist/types/src/features/publicApi/types/permissionTypes.d.ts +2 -2
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +18 -18
- package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +8 -33
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +10 -10
- package/dist/types/src/utils/user/permissions.d.ts +9 -0
- package/dist/types/src/utils/user/permissions.test.d.ts +1 -0
- package/dist/types/tests/mocks/sidebar/sidebar.d.ts +19 -0
- package/dist/types/tests/utils/sidebar.d.ts +4 -0
- package/package.json +1 -1
- package/dist/harmony136.cjs +0 -9
- package/dist/harmony136.cjs.map +0 -1
- package/dist/harmony136.mjs +0 -9
- package/dist/harmony136.mjs.map +0 -1
- package/dist/harmony137.cjs +0 -15
- package/dist/harmony137.cjs.map +0 -1
- package/dist/harmony137.mjs +0 -15
- package/dist/harmony137.mjs.map +0 -1
- package/dist/harmony138.cjs +0 -35
- package/dist/harmony138.cjs.map +0 -1
- package/dist/harmony138.mjs +0 -35
- package/dist/harmony138.mjs.map +0 -1
- package/dist/harmony139.cjs +0 -17
- package/dist/harmony139.cjs.map +0 -1
- package/dist/harmony139.mjs +0 -17
- package/dist/harmony139.mjs.map +0 -1
- package/dist/harmony140.cjs +0 -49
- package/dist/harmony140.cjs.map +0 -1
- package/dist/harmony140.mjs +0 -49
- package/dist/harmony140.mjs.map +0 -1
- package/dist/harmony141.cjs +0 -15
- package/dist/harmony141.cjs.map +0 -1
- package/dist/harmony141.mjs +0 -15
- package/dist/harmony141.mjs.map +0 -1
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContent.d.ts +0 -6
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContext.d.ts +0 -3
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuProvider.d.ts +0 -7
- package/dist/types/src/components/Sidebar/utils/index.d.ts +0 -4
- /package/dist/types/src/components/Sidebar/Widgets/{ProfileMenu/ProfileMenu.test.d.ts → Avatar/Avatar.test.d.ts} +0 -0
- /package/dist/types/src/components/Sidebar/{UpgradeIcon → Widgets/ProfileMenu/UpgradeIcon}/UpgradeIcon.d.ts +0 -0
package/dist/harmony108.mjs
CHANGED
@@ -1,15 +1,24 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { CaretUpIcon } from "@lokalise/louis";
|
3
|
+
import { clsx } from "./harmony70.mjs";
|
4
|
+
import styles from "./harmony119.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
|
+
);
|
8
20
|
};
|
9
21
|
export {
|
10
|
-
|
11
|
-
badge,
|
12
|
-
styles as default,
|
13
|
-
navItem
|
22
|
+
UpgradeIcon
|
14
23
|
};
|
15
24
|
//# 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":["../src/components/Sidebar/Widgets/ProfileMenu/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/harmony109.cjs
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
exports.
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const logoLink = "_logoLink_1baxb_1";
|
4
|
+
const styles = {
|
5
|
+
logoLink
|
6
|
+
};
|
7
|
+
exports.default = styles;
|
8
|
+
exports.logoLink = logoLink;
|
8
9
|
//# sourceMappingURL=harmony109.cjs.map
|
package/dist/harmony109.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony109.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony109.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony109.mjs
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
|
2
|
-
const
|
3
|
-
|
1
|
+
const logoLink = "_logoLink_1baxb_1";
|
2
|
+
const styles = {
|
3
|
+
logoLink
|
4
|
+
};
|
4
5
|
export {
|
5
|
-
|
6
|
-
|
6
|
+
styles as default,
|
7
|
+
logoLink
|
7
8
|
};
|
8
9
|
//# sourceMappingURL=harmony109.mjs.map
|
package/dist/harmony109.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony109.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony109.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony110.cjs
CHANGED
@@ -1,43 +1,18 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
useEffectOnce.useEffectOnce(() => {
|
13
|
-
const handleTaskPopoverOpen = async () => {
|
14
|
-
const contextTasks = await fetchTasks();
|
15
|
-
onTasksWidgetOpen == null ? void 0 : onTasksWidgetOpen({ tasks: contextTasks });
|
16
|
-
};
|
17
|
-
handleTaskPopoverOpen();
|
18
|
-
document.addEventListener(taskEvents.TaskEvents.TaskCompleted, fetchTasks);
|
19
|
-
document.addEventListener(taskEvents.TaskEvents.TaskClosed, fetchTasks);
|
20
|
-
document.addEventListener(taskEvents.TaskEvents.Refresh, fetchTasks);
|
21
|
-
return () => {
|
22
|
-
document.removeEventListener(taskEvents.TaskEvents.TaskCompleted, fetchTasks);
|
23
|
-
document.removeEventListener(taskEvents.TaskEvents.TaskClosed, fetchTasks);
|
24
|
-
document.removeEventListener(taskEvents.TaskEvents.Refresh, fetchTasks);
|
25
|
-
};
|
26
|
-
});
|
27
|
-
if (loadingTasks) {
|
28
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-testid": "sidebar-tasks-loading-popover", className: TasksPopover_module.default.loadingContainer, children: /* @__PURE__ */ jsxRuntime.jsx(louis.Loading, {}) });
|
29
|
-
}
|
30
|
-
if (tasks.length === 0) {
|
31
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-testid": "sidebar-no-tasks-popover", className: TasksPopover_module.default.noTasksContainer, children: [
|
32
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: TasksPopover_module.default.noTasksHeading, children: "No tasks" }),
|
33
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: TasksPopover_module.default.noTasksText, children: [
|
34
|
-
"Your incoming tasks will appear here.",
|
35
|
-
/* @__PURE__ */ jsxRuntime.jsx("br", {}),
|
36
|
-
/* @__PURE__ */ jsxRuntime.jsx(louis.Link, { href: "https://docs.lokalise.com/translation-workflow/tasks", target: "_new", children: "Learn more" })
|
37
|
-
] })
|
38
|
-
] });
|
39
|
-
}
|
40
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-testid": "sidebar-tasks-popover", className: TasksPopover_module.default.tasksContainer, children: tasks.map((task) => /* @__PURE__ */ jsxRuntime.jsx(TaskOverview.TaskOverview, { task }, task.id)) });
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const shortcutMenu = "_shortcutMenu_ujdmb_1";
|
4
|
+
const shortcutLabel = "_shortcutLabel_ujdmb_5";
|
5
|
+
const dropdownButton = "_dropdownButton_ujdmb_12";
|
6
|
+
const dropdownButtonActive = "_dropdownButtonActive_ujdmb_30";
|
7
|
+
const styles = {
|
8
|
+
shortcutMenu,
|
9
|
+
shortcutLabel,
|
10
|
+
dropdownButton,
|
11
|
+
dropdownButtonActive
|
41
12
|
};
|
42
|
-
exports.
|
13
|
+
exports.default = styles;
|
14
|
+
exports.dropdownButton = dropdownButton;
|
15
|
+
exports.dropdownButtonActive = dropdownButtonActive;
|
16
|
+
exports.shortcutLabel = shortcutLabel;
|
17
|
+
exports.shortcutMenu = shortcutMenu;
|
43
18
|
//# sourceMappingURL=harmony110.cjs.map
|
package/dist/harmony110.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony110.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony110.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
package/dist/harmony110.mjs
CHANGED
@@ -1,43 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
useEffectOnce(() => {
|
11
|
-
const handleTaskPopoverOpen = async () => {
|
12
|
-
const contextTasks = await fetchTasks();
|
13
|
-
onTasksWidgetOpen == null ? void 0 : onTasksWidgetOpen({ tasks: contextTasks });
|
14
|
-
};
|
15
|
-
handleTaskPopoverOpen();
|
16
|
-
document.addEventListener(TaskEvents.TaskCompleted, fetchTasks);
|
17
|
-
document.addEventListener(TaskEvents.TaskClosed, fetchTasks);
|
18
|
-
document.addEventListener(TaskEvents.Refresh, fetchTasks);
|
19
|
-
return () => {
|
20
|
-
document.removeEventListener(TaskEvents.TaskCompleted, fetchTasks);
|
21
|
-
document.removeEventListener(TaskEvents.TaskClosed, fetchTasks);
|
22
|
-
document.removeEventListener(TaskEvents.Refresh, fetchTasks);
|
23
|
-
};
|
24
|
-
});
|
25
|
-
if (loadingTasks) {
|
26
|
-
return /* @__PURE__ */ jsx("div", { "data-testid": "sidebar-tasks-loading-popover", className: styles.loadingContainer, children: /* @__PURE__ */ jsx(Loading, {}) });
|
27
|
-
}
|
28
|
-
if (tasks.length === 0) {
|
29
|
-
return /* @__PURE__ */ jsxs("div", { "data-testid": "sidebar-no-tasks-popover", className: styles.noTasksContainer, children: [
|
30
|
-
/* @__PURE__ */ jsx("h3", { className: styles.noTasksHeading, children: "No tasks" }),
|
31
|
-
/* @__PURE__ */ jsxs("div", { className: styles.noTasksText, children: [
|
32
|
-
"Your incoming tasks will appear here.",
|
33
|
-
/* @__PURE__ */ jsx("br", {}),
|
34
|
-
/* @__PURE__ */ jsx(Link, { href: "https://docs.lokalise.com/translation-workflow/tasks", target: "_new", children: "Learn more" })
|
35
|
-
] })
|
36
|
-
] });
|
37
|
-
}
|
38
|
-
return /* @__PURE__ */ jsx("div", { "data-testid": "sidebar-tasks-popover", className: styles.tasksContainer, children: tasks.map((task) => /* @__PURE__ */ jsx(TaskOverview, { task }, task.id)) });
|
1
|
+
const shortcutMenu = "_shortcutMenu_ujdmb_1";
|
2
|
+
const shortcutLabel = "_shortcutLabel_ujdmb_5";
|
3
|
+
const dropdownButton = "_dropdownButton_ujdmb_12";
|
4
|
+
const dropdownButtonActive = "_dropdownButtonActive_ujdmb_30";
|
5
|
+
const styles = {
|
6
|
+
shortcutMenu,
|
7
|
+
shortcutLabel,
|
8
|
+
dropdownButton,
|
9
|
+
dropdownButtonActive
|
39
10
|
};
|
40
11
|
export {
|
41
|
-
|
12
|
+
styles as default,
|
13
|
+
dropdownButton,
|
14
|
+
dropdownButtonActive,
|
15
|
+
shortcutLabel,
|
16
|
+
shortcutMenu
|
42
17
|
};
|
43
18
|
//# sourceMappingURL=harmony110.mjs.map
|
package/dist/harmony110.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony110.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony110.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/harmony111.cjs
CHANGED
@@ -1,63 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
const
|
7
|
-
|
8
|
-
const TasksProvider = ({ children, config }) => {
|
9
|
-
const [tasks, setTasks] = React.useState([]);
|
10
|
-
const [loadingTasks, setLoadingTasks] = React.useState(true);
|
11
|
-
const [tasksCount, setTaskCount] = React.useState(0);
|
12
|
-
const {
|
13
|
-
getProjectUrl,
|
14
|
-
onLanguageCompleteConfirm,
|
15
|
-
onTasksWidgetOpen,
|
16
|
-
langNameOnClick,
|
17
|
-
langProgressOnClick,
|
18
|
-
taskTitleOnClick
|
19
|
-
} = config;
|
20
|
-
const { getTasks, getTasksCount } = config;
|
21
|
-
const fetchTasks = async () => {
|
22
|
-
setLoadingTasks(true);
|
23
|
-
const result = await getTasks();
|
24
|
-
setTasks(result);
|
25
|
-
setLoadingTasks(false);
|
26
|
-
return result;
|
27
|
-
};
|
28
|
-
const fetchTaskCount = async () => {
|
29
|
-
const result = await getTasksCount();
|
30
|
-
setTaskCount(result);
|
31
|
-
};
|
32
|
-
useEffectOnce.useEffectOnce(() => {
|
33
|
-
fetchTaskCount();
|
34
|
-
document.addEventListener(taskEvents.TaskEvents.TaskCompleted, fetchTaskCount);
|
35
|
-
document.addEventListener(taskEvents.TaskEvents.TaskClosed, fetchTaskCount);
|
36
|
-
document.addEventListener(taskEvents.TaskEvents.Refresh, fetchTaskCount);
|
37
|
-
return () => {
|
38
|
-
document.removeEventListener(taskEvents.TaskEvents.TaskCompleted, fetchTaskCount);
|
39
|
-
document.removeEventListener(taskEvents.TaskEvents.TaskClosed, fetchTaskCount);
|
40
|
-
document.removeEventListener(taskEvents.TaskEvents.Refresh, fetchTaskCount);
|
41
|
-
};
|
42
|
-
});
|
43
|
-
const providerValue = {
|
44
|
-
fetchTasks,
|
45
|
-
tasks,
|
46
|
-
tasksCount,
|
47
|
-
loadingTasks,
|
48
|
-
getProjectUrl,
|
49
|
-
onLanguageCompleteConfirm,
|
50
|
-
onTasksWidgetOpen,
|
51
|
-
langNameOnClick,
|
52
|
-
langProgressOnClick,
|
53
|
-
taskTitleOnClick
|
54
|
-
};
|
55
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TasksContext.TasksContext.Provider, { value: providerValue, children });
|
56
|
-
};
|
57
|
-
const withTasksContext = (WrappedComponent) => function withTasksContextFn(props) {
|
58
|
-
const { config, ...rest } = props;
|
59
|
-
return /* @__PURE__ */ jsxRuntime.jsx(TasksProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(WrappedComponent, { ...rest }) });
|
60
|
-
};
|
61
|
-
exports.TasksProvider = TasksProvider;
|
62
|
-
exports.withTasksContext = withTasksContext;
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const _commonjsHelpers = require("./harmony132.cjs");
|
4
|
+
const debounce$1 = require("./harmony120.cjs");
|
5
|
+
var debounceExports = debounce$1.__require();
|
6
|
+
const debounce = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(debounceExports);
|
7
|
+
exports.default = debounce;
|
63
8
|
//# sourceMappingURL=harmony111.cjs.map
|
package/dist/harmony111.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony111.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony111.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/harmony111.mjs
CHANGED
@@ -1,63 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
import { TaskEvents } from "./harmony112.mjs";
|
6
|
-
const TasksProvider = ({ children, config }) => {
|
7
|
-
const [tasks, setTasks] = useState([]);
|
8
|
-
const [loadingTasks, setLoadingTasks] = useState(true);
|
9
|
-
const [tasksCount, setTaskCount] = useState(0);
|
10
|
-
const {
|
11
|
-
getProjectUrl,
|
12
|
-
onLanguageCompleteConfirm,
|
13
|
-
onTasksWidgetOpen,
|
14
|
-
langNameOnClick,
|
15
|
-
langProgressOnClick,
|
16
|
-
taskTitleOnClick
|
17
|
-
} = config;
|
18
|
-
const { getTasks, getTasksCount } = config;
|
19
|
-
const fetchTasks = async () => {
|
20
|
-
setLoadingTasks(true);
|
21
|
-
const result = await getTasks();
|
22
|
-
setTasks(result);
|
23
|
-
setLoadingTasks(false);
|
24
|
-
return result;
|
25
|
-
};
|
26
|
-
const fetchTaskCount = async () => {
|
27
|
-
const result = await getTasksCount();
|
28
|
-
setTaskCount(result);
|
29
|
-
};
|
30
|
-
useEffectOnce(() => {
|
31
|
-
fetchTaskCount();
|
32
|
-
document.addEventListener(TaskEvents.TaskCompleted, fetchTaskCount);
|
33
|
-
document.addEventListener(TaskEvents.TaskClosed, fetchTaskCount);
|
34
|
-
document.addEventListener(TaskEvents.Refresh, fetchTaskCount);
|
35
|
-
return () => {
|
36
|
-
document.removeEventListener(TaskEvents.TaskCompleted, fetchTaskCount);
|
37
|
-
document.removeEventListener(TaskEvents.TaskClosed, fetchTaskCount);
|
38
|
-
document.removeEventListener(TaskEvents.Refresh, fetchTaskCount);
|
39
|
-
};
|
40
|
-
});
|
41
|
-
const providerValue = {
|
42
|
-
fetchTasks,
|
43
|
-
tasks,
|
44
|
-
tasksCount,
|
45
|
-
loadingTasks,
|
46
|
-
getProjectUrl,
|
47
|
-
onLanguageCompleteConfirm,
|
48
|
-
onTasksWidgetOpen,
|
49
|
-
langNameOnClick,
|
50
|
-
langProgressOnClick,
|
51
|
-
taskTitleOnClick
|
52
|
-
};
|
53
|
-
return /* @__PURE__ */ jsx(TasksContext.Provider, { value: providerValue, children });
|
54
|
-
};
|
55
|
-
const withTasksContext = (WrappedComponent) => function withTasksContextFn(props) {
|
56
|
-
const { config, ...rest } = props;
|
57
|
-
return /* @__PURE__ */ jsx(TasksProvider, { config, children: /* @__PURE__ */ jsx(WrappedComponent, { ...rest }) });
|
58
|
-
};
|
1
|
+
import { getDefaultExportFromCjs } from "./harmony132.mjs";
|
2
|
+
import { __require as requireDebounce } from "./harmony120.mjs";
|
3
|
+
var debounceExports = requireDebounce();
|
4
|
+
const debounce = /* @__PURE__ */ getDefaultExportFromCjs(debounceExports);
|
59
5
|
export {
|
60
|
-
|
61
|
-
withTasksContext
|
6
|
+
debounce as default
|
62
7
|
};
|
63
8
|
//# sourceMappingURL=harmony111.mjs.map
|
package/dist/harmony111.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony111.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony111.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony112.cjs
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
};
|
9
|
-
exports.TaskEvents = TaskEvents;
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const _commonjsHelpers = require("./harmony132.cjs");
|
4
|
+
const throttle$1 = require("./harmony124.cjs");
|
5
|
+
var throttleExports = throttle$1.__require();
|
6
|
+
const throttle = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(throttleExports);
|
7
|
+
exports.default = throttle;
|
10
8
|
//# sourceMappingURL=harmony112.cjs.map
|
package/dist/harmony112.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony112.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony112.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/harmony112.mjs
CHANGED
@@ -1,10 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
ShowDialog: "show_dialog"
|
6
|
-
};
|
1
|
+
import { getDefaultExportFromCjs } from "./harmony132.mjs";
|
2
|
+
import { __require as requireThrottle } from "./harmony124.mjs";
|
3
|
+
var throttleExports = requireThrottle();
|
4
|
+
const throttle = /* @__PURE__ */ getDefaultExportFromCjs(throttleExports);
|
7
5
|
export {
|
8
|
-
|
6
|
+
throttle as default
|
9
7
|
};
|
10
8
|
//# sourceMappingURL=harmony112.mjs.map
|
package/dist/harmony112.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony112.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony112.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony113.cjs
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
3
|
+
const mainLabel = "_mainLabel_1baso_1";
|
4
|
+
const subLabel = "_subLabel_1baso_5";
|
4
5
|
const styles = {
|
5
|
-
|
6
|
+
mainLabel,
|
7
|
+
subLabel
|
6
8
|
};
|
7
9
|
exports.default = styles;
|
8
|
-
exports.
|
10
|
+
exports.mainLabel = mainLabel;
|
11
|
+
exports.subLabel = subLabel;
|
9
12
|
//# sourceMappingURL=harmony113.cjs.map
|
package/dist/harmony113.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony113.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony113.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/harmony113.mjs
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
-
const
|
1
|
+
const mainLabel = "_mainLabel_1baso_1";
|
2
|
+
const subLabel = "_subLabel_1baso_5";
|
2
3
|
const styles = {
|
3
|
-
|
4
|
+
mainLabel,
|
5
|
+
subLabel
|
4
6
|
};
|
5
7
|
export {
|
6
8
|
styles as default,
|
7
|
-
|
9
|
+
mainLabel,
|
10
|
+
subLabel
|
8
11
|
};
|
9
12
|
//# sourceMappingURL=harmony113.mjs.map
|
package/dist/harmony113.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony113.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony113.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/harmony114.cjs
CHANGED
@@ -1,102 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
function _interopNamespaceDefault(e) {
|
7
|
-
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
8
|
-
if (e) {
|
9
|
-
for (const k in e) {
|
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
|
-
}
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const switchContainer = "_switchContainer_9byp6_1";
|
4
|
+
const styles = {
|
5
|
+
switchContainer
|
32
6
|
};
|
33
|
-
|
34
|
-
|
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;
|
7
|
+
exports.default = styles;
|
8
|
+
exports.switchContainer = switchContainer;
|
102
9
|
//# sourceMappingURL=harmony114.cjs.map
|
package/dist/harmony114.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony114.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony114.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|