@lokalise/harmony 1.27.3 → 1.28.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 +33 -26
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +34 -27
- package/dist/harmony.mjs.map +1 -1
- package/dist/harmony101.cjs +2 -2
- package/dist/harmony101.mjs +2 -2
- package/dist/harmony104.cjs +6 -5
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +6 -5
- package/dist/harmony105.cjs +100 -6
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +82 -5
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +63 -7
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +62 -6
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +85 -93
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +85 -93
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +19 -14
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +18 -13
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +6 -15
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +5 -14
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +6 -37
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +5 -36
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +87 -19
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +87 -19
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +13 -62
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +12 -61
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +13 -87
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +13 -87
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +37 -19
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +36 -18
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +27 -12
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +27 -12
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +7 -15
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +7 -15
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +57 -16
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +57 -16
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +60 -11
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +60 -11
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +19 -17
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +18 -16
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +12 -20
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +12 -20
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +13 -10
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +13 -10
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +15 -5
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +15 -5
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +11 -7
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +11 -7
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +15 -56
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +15 -56
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +20 -59
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +20 -59
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +13 -19
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +12 -18
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +46 -12
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +46 -12
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +13 -33
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +12 -32
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +5 -13
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +5 -13
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +12 -46
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +12 -46
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +33 -13
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +32 -12
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +17 -0
- package/dist/harmony132.cjs.map +1 -0
- package/dist/harmony132.mjs +17 -0
- package/dist/harmony132.mjs.map +1 -0
- package/dist/harmony22.cjs +1 -1
- package/dist/harmony22.mjs +1 -1
- package/dist/harmony24.cjs +1 -1
- package/dist/harmony24.mjs +1 -1
- package/dist/harmony25.cjs +1 -1
- package/dist/harmony25.mjs +1 -1
- package/dist/harmony26.cjs +2 -2
- package/dist/harmony26.mjs +2 -2
- package/dist/harmony27.cjs +2 -2
- package/dist/harmony27.mjs +2 -2
- package/dist/harmony28.cjs +2 -2
- package/dist/harmony28.mjs +2 -2
- package/dist/harmony29.cjs +11 -1
- package/dist/harmony29.cjs.map +1 -1
- package/dist/harmony29.mjs +12 -2
- package/dist/harmony29.mjs.map +1 -1
- package/dist/harmony3.cjs +3 -3
- package/dist/harmony3.mjs +3 -3
- package/dist/harmony30.cjs +2 -2
- package/dist/harmony30.mjs +2 -2
- package/dist/harmony31.cjs +1 -1
- package/dist/harmony31.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/harmony37.cjs +7 -11
- package/dist/harmony37.cjs.map +1 -1
- package/dist/harmony37.mjs +9 -13
- package/dist/harmony37.mjs.map +1 -1
- package/dist/harmony38.cjs +8 -8
- package/dist/harmony38.cjs.map +1 -1
- package/dist/harmony38.mjs +8 -8
- package/dist/harmony38.mjs.map +1 -1
- package/dist/harmony39.cjs +14 -12
- package/dist/harmony39.cjs.map +1 -1
- package/dist/harmony39.mjs +14 -12
- package/dist/harmony39.mjs.map +1 -1
- package/dist/harmony4.cjs +10 -10
- package/dist/harmony4.mjs +10 -10
- package/dist/harmony40.cjs +8 -8
- package/dist/harmony40.cjs.map +1 -1
- package/dist/harmony40.mjs +9 -9
- package/dist/harmony40.mjs.map +1 -1
- package/dist/harmony41.cjs +9 -9
- package/dist/harmony41.cjs.map +1 -1
- package/dist/harmony41.mjs +10 -10
- package/dist/harmony41.mjs.map +1 -1
- package/dist/harmony42.cjs +12 -14
- package/dist/harmony42.cjs.map +1 -1
- package/dist/harmony42.mjs +12 -14
- package/dist/harmony42.mjs.map +1 -1
- package/dist/harmony43.cjs +10 -10
- package/dist/harmony43.cjs.map +1 -1
- package/dist/harmony43.mjs +10 -10
- package/dist/harmony43.mjs.map +1 -1
- package/dist/harmony44.cjs +8 -8
- package/dist/harmony44.cjs.map +1 -1
- package/dist/harmony44.mjs +8 -8
- package/dist/harmony44.mjs.map +1 -1
- package/dist/harmony45.cjs +7 -7
- package/dist/harmony45.cjs.map +1 -1
- package/dist/harmony45.mjs +7 -7
- package/dist/harmony45.mjs.map +1 -1
- package/dist/harmony46.cjs +14 -12
- package/dist/harmony46.cjs.map +1 -1
- package/dist/harmony46.mjs +14 -12
- package/dist/harmony46.mjs.map +1 -1
- package/dist/harmony47.cjs +12 -14
- package/dist/harmony47.cjs.map +1 -1
- package/dist/harmony47.mjs +12 -14
- package/dist/harmony47.mjs.map +1 -1
- package/dist/harmony48.cjs +8 -8
- package/dist/harmony48.cjs.map +1 -1
- package/dist/harmony48.mjs +8 -8
- package/dist/harmony48.mjs.map +1 -1
- package/dist/harmony49.cjs +10 -7
- package/dist/harmony49.cjs.map +1 -1
- package/dist/harmony49.mjs +12 -9
- package/dist/harmony49.mjs.map +1 -1
- package/dist/harmony5.cjs +1 -1
- package/dist/harmony5.mjs +1 -1
- package/dist/harmony50.cjs +14 -56
- package/dist/harmony50.cjs.map +1 -1
- package/dist/harmony50.mjs +14 -56
- package/dist/harmony50.mjs.map +1 -1
- package/dist/harmony51.cjs +48 -72
- package/dist/harmony51.cjs.map +1 -1
- package/dist/harmony51.mjs +47 -71
- package/dist/harmony51.mjs.map +1 -1
- package/dist/harmony52.cjs +78 -4
- package/dist/harmony52.cjs.map +1 -1
- package/dist/harmony52.mjs +78 -4
- package/dist/harmony52.mjs.map +1 -1
- package/dist/harmony53.cjs +4 -21
- package/dist/harmony53.cjs.map +1 -1
- package/dist/harmony53.mjs +4 -21
- package/dist/harmony53.mjs.map +1 -1
- package/dist/harmony54.cjs +20 -34
- package/dist/harmony54.cjs.map +1 -1
- package/dist/harmony54.mjs +20 -34
- package/dist/harmony54.mjs.map +1 -1
- package/dist/harmony55.cjs +35 -115
- package/dist/harmony55.cjs.map +1 -1
- package/dist/harmony55.mjs +34 -114
- package/dist/harmony55.mjs.map +1 -1
- package/dist/harmony56.cjs +121 -20
- package/dist/harmony56.cjs.map +1 -1
- package/dist/harmony56.mjs +120 -19
- package/dist/harmony56.mjs.map +1 -1
- package/dist/harmony57.cjs +20 -25
- package/dist/harmony57.cjs.map +1 -1
- package/dist/harmony57.mjs +20 -25
- package/dist/harmony57.mjs.map +1 -1
- package/dist/harmony58.cjs +24 -6
- package/dist/harmony58.cjs.map +1 -1
- package/dist/harmony58.mjs +24 -6
- package/dist/harmony58.mjs.map +1 -1
- package/dist/harmony59.cjs +6 -48
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +6 -48
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony6.cjs +4 -4
- package/dist/harmony6.mjs +4 -4
- package/dist/harmony60.cjs +80 -20
- package/dist/harmony60.cjs.map +1 -1
- package/dist/harmony60.mjs +80 -20
- package/dist/harmony60.mjs.map +1 -1
- package/dist/harmony61.cjs +22 -16
- package/dist/harmony61.cjs.map +1 -1
- package/dist/harmony61.mjs +22 -16
- package/dist/harmony61.mjs.map +1 -1
- package/dist/harmony62.cjs +19 -16
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs +18 -15
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony63.cjs +15 -18
- package/dist/harmony63.cjs.map +1 -1
- package/dist/harmony63.mjs +15 -18
- package/dist/harmony63.mjs.map +1 -1
- package/dist/harmony64.cjs +18 -61
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +18 -61
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony65.cjs +61 -6
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs +61 -6
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony66.cjs +7 -10
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs +6 -9
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony67.cjs +8 -17
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs +8 -17
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony68.cjs +13 -18
- package/dist/harmony68.cjs.map +1 -1
- package/dist/harmony68.mjs +14 -19
- package/dist/harmony68.mjs.map +1 -1
- package/dist/harmony69.cjs +22 -4
- package/dist/harmony69.cjs.map +1 -1
- package/dist/harmony69.mjs +22 -4
- package/dist/harmony69.mjs.map +1 -1
- package/dist/harmony70.cjs +4 -31
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs +5 -32
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony71.cjs +26 -26
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +28 -28
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs +25 -12
- package/dist/harmony72.cjs.map +1 -1
- package/dist/harmony72.mjs +26 -13
- package/dist/harmony72.mjs.map +1 -1
- package/dist/harmony73.cjs +12 -24
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs +13 -25
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs +27 -55
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs +29 -57
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs +60 -10
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs +59 -9
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony76.cjs +10 -9
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +9 -8
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +5 -26
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +8 -29
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +29 -3
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +29 -3
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +3 -11
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +3 -11
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +5 -20
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +5 -20
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +6 -3
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +6 -3
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +6 -6
- package/dist/harmony82.mjs +6 -6
- package/dist/harmony83.cjs +57 -9
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +56 -8
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +27 -51
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +28 -52
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +5 -32
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +5 -32
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +10 -6
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +9 -5
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +21 -6
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +21 -6
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +3 -21
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +3 -21
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +21 -6
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +20 -5
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +12 -21
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +11 -20
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +12 -13
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +11 -12
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +21 -99
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +20 -81
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +1 -1
- package/dist/harmony93.mjs +1 -1
- package/dist/harmony97.cjs +1 -0
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +1 -0
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +1 -1
- package/dist/harmony98.mjs +1 -1
- package/dist/types/src/features/publicApi/hooks/useDeleteProjectMutation.d.ts +16 -0
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +7 -9
- package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +24 -11
- package/dist/types/src/features/publicApi/node.d.ts +1 -0
- package/dist/types/src/features/publicApi/projects.d.ts +72 -0
- package/dist/types/src/features/publicApi/team.d.ts +187 -108
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +11 -0
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +272 -115
- package/package.json +1 -1
package/dist/harmony.cjs
CHANGED
@@ -35,31 +35,32 @@ const userToken = require("./harmony33.cjs");
|
|
35
35
|
const useAddLanguagesToProjectMutation = require("./harmony34.cjs");
|
36
36
|
const useBulkUpdateProjectLanguagesMutation = require("./harmony35.cjs");
|
37
37
|
const useCreateProjectMutation = require("./harmony36.cjs");
|
38
|
-
const
|
39
|
-
const
|
40
|
-
const
|
41
|
-
const
|
42
|
-
const
|
43
|
-
const
|
44
|
-
const
|
45
|
-
const
|
46
|
-
const
|
47
|
-
const
|
48
|
-
const
|
49
|
-
const
|
50
|
-
const
|
51
|
-
const
|
52
|
-
const
|
53
|
-
const
|
54
|
-
const
|
55
|
-
const
|
56
|
-
const
|
57
|
-
const
|
58
|
-
const
|
59
|
-
const
|
60
|
-
const
|
61
|
-
const
|
62
|
-
const
|
38
|
+
const useDeleteProjectMutation = require("./harmony37.cjs");
|
39
|
+
const useGetProjectPermissionMetaQuery = require("./harmony38.cjs");
|
40
|
+
const useGetScoreQuery = require("./harmony39.cjs");
|
41
|
+
const useGetTeamUsersQuery = require("./harmony40.cjs");
|
42
|
+
const useGetUserTokenQuery = require("./harmony41.cjs");
|
43
|
+
const useListContributorsQuery = require("./harmony42.cjs");
|
44
|
+
const useListPermissionTemplates = require("./harmony43.cjs");
|
45
|
+
const useListProjectLanguagesQuery = require("./harmony44.cjs");
|
46
|
+
const useListProjectsQuery = require("./harmony45.cjs");
|
47
|
+
const useListTeamsQuery = require("./harmony46.cjs");
|
48
|
+
const useRetrieveContributorQuery = require("./harmony47.cjs");
|
49
|
+
const useRetrieveProjectQuery = require("./harmony48.cjs");
|
50
|
+
const useRetrieveTeamQuery = require("./harmony49.cjs");
|
51
|
+
const useUpdateProjectMutation = require("./harmony50.cjs");
|
52
|
+
const contributorTypes = require("./harmony51.cjs");
|
53
|
+
const languageTypes = require("./harmony52.cjs");
|
54
|
+
const paginationTypes = require("./harmony53.cjs");
|
55
|
+
const permissionTemplateTypes = require("./harmony54.cjs");
|
56
|
+
const permissionTypes = require("./harmony55.cjs");
|
57
|
+
const projectTypes = require("./harmony56.cjs");
|
58
|
+
const scoreTypes = require("./harmony57.cjs");
|
59
|
+
const sharedTypes = require("./harmony58.cjs");
|
60
|
+
const teamRoleTypes = require("./harmony59.cjs");
|
61
|
+
const teamTypes = require("./harmony60.cjs");
|
62
|
+
const teamUserTypes = require("./harmony61.cjs");
|
63
|
+
const userTokenTypes = require("./harmony62.cjs");
|
63
64
|
exports.SidebarTaskLanguageStatuses = types.SidebarTaskLanguageStatuses;
|
64
65
|
exports.SidebarTaskStatuses = types.SidebarTaskStatuses;
|
65
66
|
exports.SidebarTaskTypeOptions = types.SidebarTaskTypeOptions;
|
@@ -109,6 +110,7 @@ exports.bulkUpdateProjectLanguages = languages.bulkUpdateProjectLanguages;
|
|
109
110
|
exports.listProjectLanguages = languages.listProjectLanguages;
|
110
111
|
exports.listPermissionTemplates = permissionTemplates.listPermissionTemplates;
|
111
112
|
exports.createProject = projects.createProject;
|
113
|
+
exports.deleteProject = projects.deleteProject;
|
112
114
|
exports.getProjectPermissionMeta = projects.getProjectPermissionMeta;
|
113
115
|
exports.listProjects = projects.listProjects;
|
114
116
|
exports.retrieveProject = projects.retrieveProject;
|
@@ -121,6 +123,7 @@ exports.getUserToken = userToken.getUserToken;
|
|
121
123
|
exports.useAddLanguagesToProjectMutation = useAddLanguagesToProjectMutation.useAddLanguagesToProjectMutation;
|
122
124
|
exports.useBulkUpdateProjectLanguagesMutation = useBulkUpdateProjectLanguagesMutation.useBulkUpdateProjectLanguagesMutation;
|
123
125
|
exports.useCreateProjectMutation = useCreateProjectMutation.useCreateProjectMutation;
|
126
|
+
exports.useDeleteProjectMutation = useDeleteProjectMutation.useDeleteProjectMutation;
|
124
127
|
exports.getProjectPermissionMetaQueryKey = useGetProjectPermissionMetaQuery.getProjectPermissionMetaQueryKey;
|
125
128
|
exports.useGetProjectPermissionMetaQuery = useGetProjectPermissionMetaQuery.useGetProjectPermissionMetaQuery;
|
126
129
|
exports.getScoreKey = useGetScoreQuery.getScoreKey;
|
@@ -172,6 +175,7 @@ exports.PERMISSION_DETAILS_SCHEMA = permissionTypes.PERMISSION_DETAILS_SCHEMA;
|
|
172
175
|
exports.PERMISSION_ID_SCHEMA = permissionTypes.PERMISSION_ID_SCHEMA;
|
173
176
|
exports.PERMISSION_SCOPE_SCHEMA = permissionTypes.PERMISSION_SCOPE_SCHEMA;
|
174
177
|
exports.CREATE_PROJECT_REQUEST_BODY_SCHEMA = projectTypes.CREATE_PROJECT_REQUEST_BODY_SCHEMA;
|
178
|
+
exports.DELETE_PROJECT_RESPONSE_SCHEMA = projectTypes.DELETE_PROJECT_RESPONSE_SCHEMA;
|
175
179
|
exports.GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA = projectTypes.GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA;
|
176
180
|
exports.LIST_PROJECTS_REQUEST_QUERY_SCHEMA = projectTypes.LIST_PROJECTS_REQUEST_QUERY_SCHEMA;
|
177
181
|
exports.LIST_PROJECTS_SUCCESS_RESPONSE_BODY = projectTypes.LIST_PROJECTS_SUCCESS_RESPONSE_BODY;
|
@@ -199,9 +203,12 @@ exports.LIST_TEAMS_QUERY_SCHEMA = teamTypes.LIST_TEAMS_QUERY_SCHEMA;
|
|
199
203
|
exports.LIST_TEAMS_RESPONSE_SCHEMA = teamTypes.LIST_TEAMS_RESPONSE_SCHEMA;
|
200
204
|
exports.RETRIEVE_TEAM_PATH_PARAMS_SCHEMA = teamTypes.RETRIEVE_TEAM_PATH_PARAMS_SCHEMA;
|
201
205
|
exports.RETRIEVE_TEAM_RESPONSE_SCHEMA = teamTypes.RETRIEVE_TEAM_RESPONSE_SCHEMA;
|
206
|
+
exports.TEAMS_QUOTA_ALLOWED_SCHEMA = teamTypes.TEAMS_QUOTA_ALLOWED_SCHEMA;
|
207
|
+
exports.TEAMS_QUOTA_METRICS = teamTypes.TEAMS_QUOTA_METRICS;
|
208
|
+
exports.TEAMS_QUOTA_METRICS_SCHEMA = teamTypes.TEAMS_QUOTA_METRICS_SCHEMA;
|
209
|
+
exports.TEAMS_QUOTA_USAGE_SCHEMA = teamTypes.TEAMS_QUOTA_USAGE_SCHEMA;
|
202
210
|
exports.TEAM_API_BASE_HEADERS_SCHEMA = teamTypes.TEAM_API_BASE_HEADERS_SCHEMA;
|
203
211
|
exports.TEAM_QUOTA_ALLOWED_SCHEMA = teamTypes.TEAM_QUOTA_ALLOWED_SCHEMA;
|
204
|
-
exports.TEAM_QUOTA_METRICS = teamTypes.TEAM_QUOTA_METRICS;
|
205
212
|
exports.TEAM_QUOTA_METRICS_SCHEMA = teamTypes.TEAM_QUOTA_METRICS_SCHEMA;
|
206
213
|
exports.TEAM_QUOTA_USAGE_SCHEMA = teamTypes.TEAM_QUOTA_USAGE_SCHEMA;
|
207
214
|
exports.TEAM_USER_API_BASE_HEADERS_SCHEMA = teamUserTypes.TEAM_USER_API_BASE_HEADERS_SCHEMA;
|
package/dist/harmony.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/harmony.mjs
CHANGED
@@ -25,7 +25,7 @@ import { useAuthenticatedProjectContributor } from "./harmony25.mjs";
|
|
25
25
|
import { listContributors, retrieveContributor } from "./harmony26.mjs";
|
26
26
|
import { addLanguagesToProject, bulkUpdateProjectLanguages, listProjectLanguages } from "./harmony27.mjs";
|
27
27
|
import { listPermissionTemplates } from "./harmony28.mjs";
|
28
|
-
import { createProject, getProjectPermissionMeta, listProjects, retrieveProject, updateProject } from "./harmony29.mjs";
|
28
|
+
import { createProject, deleteProject, getProjectPermissionMeta, listProjects, retrieveProject, updateProject } from "./harmony29.mjs";
|
29
29
|
import { getScore } from "./harmony30.mjs";
|
30
30
|
import { listTeams, retrieveTeam } from "./harmony31.mjs";
|
31
31
|
import { getTeamUser } from "./harmony32.mjs";
|
@@ -33,31 +33,32 @@ import { getUserToken } from "./harmony33.mjs";
|
|
33
33
|
import { useAddLanguagesToProjectMutation } from "./harmony34.mjs";
|
34
34
|
import { useBulkUpdateProjectLanguagesMutation } from "./harmony35.mjs";
|
35
35
|
import { useCreateProjectMutation } from "./harmony36.mjs";
|
36
|
-
import {
|
37
|
-
import {
|
38
|
-
import {
|
39
|
-
import {
|
40
|
-
import {
|
41
|
-
import {
|
42
|
-
import {
|
43
|
-
import {
|
44
|
-
import {
|
45
|
-
import {
|
46
|
-
import {
|
47
|
-
import {
|
48
|
-
import {
|
49
|
-
import {
|
50
|
-
import {
|
51
|
-
import {
|
52
|
-
import {
|
53
|
-
import {
|
54
|
-
import {
|
55
|
-
import {
|
56
|
-
import {
|
57
|
-
import {
|
58
|
-
import {
|
59
|
-
import {
|
60
|
-
import {
|
36
|
+
import { useDeleteProjectMutation } from "./harmony37.mjs";
|
37
|
+
import { getProjectPermissionMetaQueryKey, useGetProjectPermissionMetaQuery } from "./harmony38.mjs";
|
38
|
+
import { getScoreKey, useGetScoreQuery } from "./harmony39.mjs";
|
39
|
+
import { getTeamUsersQueryKey, useGetTeamUsersQuery } from "./harmony40.mjs";
|
40
|
+
import { getUserTokenKey, useGetUserTokenQuery } from "./harmony41.mjs";
|
41
|
+
import { listContributorsKeys, useListContributorsQuery } from "./harmony42.mjs";
|
42
|
+
import { listPermissionTemplatesKeys, useListPermissionTemplatesQuery } from "./harmony43.mjs";
|
43
|
+
import { listProjectLanguagesKey, useListProjectLanguagesQuery } from "./harmony44.mjs";
|
44
|
+
import { listProjectsKey, useListProjectsQuery } from "./harmony45.mjs";
|
45
|
+
import { listTeamsKey, useListTeamsQuery } from "./harmony46.mjs";
|
46
|
+
import { retrieveContributorKeys, useRetrieveContributorQuery } from "./harmony47.mjs";
|
47
|
+
import { retrieveProjectQueryKey, useRetrieveProjectQuery } from "./harmony48.mjs";
|
48
|
+
import { retrieveTeamQueryKey, useRetrieveTeamQuery } from "./harmony49.mjs";
|
49
|
+
import { useUpdateProjectMutation } from "./harmony50.mjs";
|
50
|
+
import { CONTRIBUTOR_API_BASE_HEADER_SCHEMA, CONTRIBUTOR_LANGUAGE_SCHEMA, CONTRIBUTOR_SCHEMA, LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA, LIST_CONTRIBUTORS_RESPONSE_SCHEMA, RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA, RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA } from "./harmony51.mjs";
|
51
|
+
import { ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA, ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA, ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA, BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA, BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA, BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA, LANGUAGE_ISO_SCHEMA, LANGUAGE_SCHEMA, LANGUAGE_STATISTICS_SCHEMA, LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA, LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA } from "./harmony52.mjs";
|
52
|
+
import { PAGINATION_QUERY_PARAMS_SCHEMA } from "./harmony53.mjs";
|
53
|
+
import { LIST_PERMISSION_TEMPLATES_PATH_PARAMS, LIST_PERMISSION_TEMPLATES_RESPONSE, PERMISSION_TEMPLATE_SCHEMA } from "./harmony54.mjs";
|
54
|
+
import { PERMISSION_DETAILS_SCHEMA, PERMISSION_ID_SCHEMA, PERMISSION_SCOPE_SCHEMA } from "./harmony55.mjs";
|
55
|
+
import { CREATE_PROJECT_REQUEST_BODY_SCHEMA, DELETE_PROJECT_RESPONSE_SCHEMA, GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA, LIST_PROJECTS_REQUEST_QUERY_SCHEMA, LIST_PROJECTS_SUCCESS_RESPONSE_BODY, PROJECT_API_BASE_HEADERS_SCHEMA, PROJECT_ID_OR_UUID_SCHEMA, PROJECT_ID_PATH_PARAM_SCHEMA, PROJECT_ID_SCHEMA, PROJECT_QA_ISSUES_SCHEMA, PROJECT_SCHEMA, PROJECT_SETTINGS_SCHEMA, PROJECT_STATISTICS_SCHEMA, PROJECT_TYPE_SCHEMA, UPDATE_PROJECT_REQUEST_BODY_SCHEMA } from "./harmony56.mjs";
|
56
|
+
import { GET_SCORE_REQUEST_QUERY_SCHEMA, GET_SCORE_RESPONSE_SCHEMA, ISSUE_SCHEMA, SEVERITY_ENUM } from "./harmony57.mjs";
|
57
|
+
import { API_PLUGIN_HEADER_SCHEMA, APU_TOKEN_AUTH_HEADER_SCHEMA, AUTHENTICATION_HEADERS_SCHEMA, AUTHORIZATION_HEADER_SCHEMA, BASE_API_ENDPOINT_HEADER_SCHEMA } from "./harmony58.mjs";
|
58
|
+
import { TEAM_ROLE_SCHEMA } from "./harmony59.mjs";
|
59
|
+
import { LIST_TEAMS_QUERY_SCHEMA, LIST_TEAMS_RESPONSE_SCHEMA, RETRIEVE_TEAM_PATH_PARAMS_SCHEMA, RETRIEVE_TEAM_RESPONSE_SCHEMA, TEAMS_QUOTA_ALLOWED_SCHEMA, TEAMS_QUOTA_METRICS, TEAMS_QUOTA_METRICS_SCHEMA, TEAMS_QUOTA_USAGE_SCHEMA, TEAM_API_BASE_HEADERS_SCHEMA, TEAM_QUOTA_ALLOWED_SCHEMA, TEAM_QUOTA_METRICS_SCHEMA, TEAM_QUOTA_USAGE_SCHEMA } from "./harmony60.mjs";
|
60
|
+
import { TEAM_USER_API_BASE_HEADERS_SCHEMA, TEAM_USER_PATH_PARAMS_SCHEMA, TEAM_USER_RESPONSE_SCHEMA, TEAM_USER_SCHEMA } from "./harmony61.mjs";
|
61
|
+
import { JWT_TOKEN_SCHEMA, USER_TOKEN_REQUEST_HEADER_SCHEMA } from "./harmony62.mjs";
|
61
62
|
export {
|
62
63
|
ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA,
|
63
64
|
ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA,
|
@@ -75,6 +76,7 @@ export {
|
|
75
76
|
CONTRIBUTOR_LANGUAGE_SCHEMA,
|
76
77
|
CONTRIBUTOR_SCHEMA,
|
77
78
|
CREATE_PROJECT_REQUEST_BODY_SCHEMA,
|
79
|
+
DELETE_PROJECT_RESPONSE_SCHEMA,
|
78
80
|
ENTERPRISE_OPENSOURCE_PLAN_ID,
|
79
81
|
ENTERPRISE_PLAN_IDS,
|
80
82
|
ESSENTIAL_PLAN_IDS,
|
@@ -127,9 +129,12 @@ export {
|
|
127
129
|
SidebarTaskLanguageStatuses,
|
128
130
|
SidebarTaskStatuses,
|
129
131
|
SidebarTaskTypeOptions,
|
132
|
+
TEAMS_QUOTA_ALLOWED_SCHEMA,
|
133
|
+
TEAMS_QUOTA_METRICS,
|
134
|
+
TEAMS_QUOTA_METRICS_SCHEMA,
|
135
|
+
TEAMS_QUOTA_USAGE_SCHEMA,
|
130
136
|
TEAM_API_BASE_HEADERS_SCHEMA,
|
131
137
|
TEAM_QUOTA_ALLOWED_SCHEMA,
|
132
|
-
TEAM_QUOTA_METRICS,
|
133
138
|
TEAM_QUOTA_METRICS_SCHEMA,
|
134
139
|
TEAM_QUOTA_USAGE_SCHEMA,
|
135
140
|
TEAM_ROLE_SCHEMA,
|
@@ -146,6 +151,7 @@ export {
|
|
146
151
|
convertNewLineToBreakTag,
|
147
152
|
createHeaderBuilderMiddleware,
|
148
153
|
createProject,
|
154
|
+
deleteProject,
|
149
155
|
formatDate,
|
150
156
|
formatDateTz,
|
151
157
|
generateTokenFromClassicSession,
|
@@ -194,6 +200,7 @@ export {
|
|
194
200
|
useAuthenticatedUser,
|
195
201
|
useBulkUpdateProjectLanguagesMutation,
|
196
202
|
useCreateProjectMutation,
|
203
|
+
useDeleteProjectMutation,
|
197
204
|
useEffectOnce,
|
198
205
|
useGetProjectPermissionMetaQuery,
|
199
206
|
useGetPromotedClassicSessionJwtQuery,
|
package/dist/harmony.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/harmony101.cjs
CHANGED
@@ -3,10 +3,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const useEffectOnce = require("./harmony11.cjs");
|
6
|
-
const TaskOverview = require("./
|
6
|
+
const TaskOverview = require("./harmony107.cjs");
|
7
7
|
const TasksContext = require("./harmony100.cjs");
|
8
8
|
const taskEvents = require("./harmony103.cjs");
|
9
|
-
const TasksPopover_module = require("./
|
9
|
+
const TasksPopover_module = require("./harmony108.cjs");
|
10
10
|
const TasksPopover = () => {
|
11
11
|
const { tasks, onTasksWidgetOpen, loadingTasks, fetchTasks } = TasksContext.useTasks();
|
12
12
|
useEffectOnce.useEffectOnce(() => {
|
package/dist/harmony101.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
2
2
|
import { Loading, Link } from "@lokalise/louis";
|
3
3
|
import { useEffectOnce } from "./harmony11.mjs";
|
4
|
-
import { TaskOverview } from "./
|
4
|
+
import { TaskOverview } from "./harmony107.mjs";
|
5
5
|
import { useTasks } from "./harmony100.mjs";
|
6
6
|
import { TaskEvents } from "./harmony103.mjs";
|
7
|
-
import styles from "./
|
7
|
+
import styles from "./harmony108.mjs";
|
8
8
|
const TasksPopover = () => {
|
9
9
|
const { tasks, onTasksWidgetOpen, loadingTasks, fetchTasks } = useTasks();
|
10
10
|
useEffectOnce(() => {
|
package/dist/harmony104.cjs
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
exports.default =
|
3
|
+
const iconContainer = "_iconContainer_nz34m_1";
|
4
|
+
const styles = {
|
5
|
+
iconContainer
|
6
|
+
};
|
7
|
+
exports.default = styles;
|
8
|
+
exports.iconContainer = iconContainer;
|
8
9
|
//# sourceMappingURL=harmony104.cjs.map
|
package/dist/harmony104.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony104.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony104.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony104.mjs
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
const iconContainer = "_iconContainer_nz34m_1";
|
2
|
+
const styles = {
|
3
|
+
iconContainer
|
4
|
+
};
|
5
5
|
export {
|
6
|
-
|
6
|
+
styles as default,
|
7
|
+
iconContainer
|
7
8
|
};
|
8
9
|
//# sourceMappingURL=harmony104.mjs.map
|
package/dist/harmony105.cjs
CHANGED
@@ -1,8 +1,102 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const React = require("react");
|
4
|
+
const debounce = require("./harmony109.cjs");
|
5
|
+
const throttle = require("./harmony110.cjs");
|
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
|
+
}
|
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;
|
8
102
|
//# sourceMappingURL=harmony105.cjs.map
|
package/dist/harmony105.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony105.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony105.cjs","sources":["../node_modules/react-resize-detector/build/utils.js"],"sourcesContent":["import * as React from 'react';\nimport debounce from 'lodash/debounce.js';\nimport throttle from 'lodash/throttle.js';\n\n/**\n * Wraps the resize callback with a lodash debounce / throttle based on the refresh mode\n */\nconst patchResizeCallback = (resizeCallback, refreshMode, refreshRate, refreshOptions) => {\n switch (refreshMode) {\n case 'debounce':\n return debounce(resizeCallback, refreshRate, refreshOptions);\n case 'throttle':\n return throttle(resizeCallback, refreshRate, refreshOptions);\n default:\n return resizeCallback;\n }\n};\n/**\n * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a\n * prop or avoid re-executing effects when passed as a dependency\n */\nconst useCallbackRef = \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n(callback) => {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => ((...args) => { var _a; return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef, ...args); }), []);\n};\n/** `useRef` hook doesn't handle conditional rendering or dynamic ref changes.\n * This hook creates a proxy that ensures that `refElement` is updated whenever the ref is changed. */\nconst useRefProxy = \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n(targetRef) => {\n // we are going to use this ref to store the last element that was passed to the hook\n const [refElement, setRefElement] = React.useState((targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) || null);\n // if targetRef is passed, we need to update the refElement\n // we have to use setTimeout because ref get assigned after the hook is called\n // in the future releases we are going to remove targetRef and force users to use ref returned by the hook\n if (targetRef) {\n setTimeout(() => {\n if (targetRef.current !== refElement) {\n setRefElement(targetRef.current);\n }\n }, 0);\n }\n // this is a memo that will be called every time the ref is changed\n // This proxy will properly call setState either when the ref is called as a function or when `.current` is set\n // we call setState inside to trigger rerender\n const refProxy = React.useMemo(() => new Proxy((node) => {\n if (node !== refElement) {\n setRefElement(node);\n }\n }, {\n get(target, prop) {\n if (prop === 'current') {\n return refElement;\n }\n return target[prop];\n },\n set(target, prop, value) {\n if (prop === 'current') {\n setRefElement(value);\n }\n else {\n target[prop] = value;\n }\n return true;\n },\n }), [refElement]);\n return { refProxy, refElement, setRefElement };\n};\n/** Calculates the dimensions of the element based on the current box model.\n * @see https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/The_box_model\n */\nconst getDimensions = (entry, box) => {\n // Value\t Border\t Padding\t Inner Content\n // ---------------------------------------------------\n // 'border-box'\t Yes\t Yes\t Yes\n // 'content-box'\t No\t No\t Yes\n // undefined No\t No?\t Yes\n if (box === 'border-box') {\n return {\n width: entry.borderBoxSize[0].inlineSize,\n height: entry.borderBoxSize[0].blockSize,\n };\n }\n if (box === 'content-box') {\n return {\n width: entry.contentBoxSize[0].inlineSize,\n height: entry.contentBoxSize[0].blockSize,\n };\n }\n return {\n width: entry.contentRect.width,\n height: entry.contentRect.height,\n };\n};\n\nexport { getDimensions, patchResizeCallback, useCallbackRef, useRefProxy };\n//# sourceMappingURL=utils.js.map\n"],"names":["debounce","throttle","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAOK,MAAC,sBAAsB,CAAC,gBAAgB,aAAa,aAAa,mBAAmB;AACtF,UAAQ,aAAW;AAAA,IACf,KAAK;AACD,aAAOA,iBAAS,gBAAgB,aAAa,cAAc;AAAA,IAC/D,KAAK;AACD,aAAOC,iBAAS,gBAAgB,aAAa,cAAc;AAAA,IAC/D;AACI,aAAO;AAAA,EACnB;AACA;AAKK,MAAC;AAAA;AAAA,EAEN,CAAC,aAAa;AACV,UAAM,cAAcC,iBAAM,OAAO,QAAQ;AACzCA,qBAAM,UAAU,MAAM;AAClB,kBAAY,UAAU;AAAA,IAC9B,CAAK;AACD,WAAOA,iBAAM,QAAQ,MAAO,IAAI,SAAS;AAAE,UAAI;AAAI,cAAQ,KAAK,YAAY,aAAa,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,aAAa,GAAG,IAAI;AAAA,IAAI,GAAG,CAAA,CAAE;AAAA,EACnK;AAAA;AAGK,MAAC;AAAA;AAAA,EAEN,CAAC,cAAc;AAEX,UAAM,CAAC,YAAY,aAAa,IAAIA,iBAAM,UAAU,cAAc,QAAQ,cAAc,SAAS,SAAS,UAAU,YAAY,IAAI;AAIpI,QAAI,WAAW;AACX,iBAAW,MAAM;AACb,YAAI,UAAU,YAAY,YAAY;AAClC,wBAAc,UAAU,OAAO;AAAA,QAC/C;AAAA,MACS,GAAE,CAAC;AAAA,IACZ;AAII,UAAM,WAAWA,iBAAM,QAAQ,MAAM,IAAI,MAAM,CAAC,SAAS;AACrD,UAAI,SAAS,YAAY;AACrB,sBAAc,IAAI;AAAA,MAC9B;AAAA,IACA,GAAO;AAAA,MACC,IAAI,QAAQ,MAAM;AACd,YAAI,SAAS,WAAW;AACpB,iBAAO;AAAA,QACvB;AACY,eAAO,OAAO,IAAI;AAAA,MACrB;AAAA,MACD,IAAI,QAAQ,MAAM,OAAO;AACrB,YAAI,SAAS,WAAW;AACpB,wBAAc,KAAK;AAAA,QACnC,OACiB;AACD,iBAAO,IAAI,IAAI;AAAA,QAC/B;AACY,eAAO;AAAA,MACV;AAAA,IACT,CAAK,GAAG,CAAC,UAAU,CAAC;AAChB,WAAO,EAAE,UAAU,YAAY,cAAe;AAAA,EAClD;AAAA;AAIK,MAAC,gBAAgB,CAAC,OAAO,QAAQ;AAMlC,MAAI,QAAQ,cAAc;AACtB,WAAO;AAAA,MACH,OAAO,MAAM,cAAc,CAAC,EAAE;AAAA,MAC9B,QAAQ,MAAM,cAAc,CAAC,EAAE;AAAA,IAClC;AAAA,EACT;AACI,MAAI,QAAQ,eAAe;AACvB,WAAO;AAAA,MACH,OAAO,MAAM,eAAe,CAAC,EAAE;AAAA,MAC/B,QAAQ,MAAM,eAAe,CAAC,EAAE;AAAA,IACnC;AAAA,EACT;AACI,SAAO;AAAA,IACH,OAAO,MAAM,YAAY;AAAA,IACzB,QAAQ,MAAM,YAAY;AAAA,EAC7B;AACL;;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony105.mjs
CHANGED
@@ -1,8 +1,85 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
|
4
|
-
const
|
1
|
+
import * as React from "react";
|
2
|
+
import debounce from "./harmony109.mjs";
|
3
|
+
import throttle from "./harmony110.mjs";
|
4
|
+
const patchResizeCallback = (resizeCallback, refreshMode, refreshRate, refreshOptions) => {
|
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
|
+
};
|
5
79
|
export {
|
6
|
-
|
80
|
+
getDimensions,
|
81
|
+
patchResizeCallback,
|
82
|
+
useCallbackRef,
|
83
|
+
useRefProxy
|
7
84
|
};
|
8
85
|
//# sourceMappingURL=harmony105.mjs.map
|
package/dist/harmony105.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony105.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony105.mjs","sources":["../node_modules/react-resize-detector/build/utils.js"],"sourcesContent":["import * as React from 'react';\nimport debounce from 'lodash/debounce.js';\nimport throttle from 'lodash/throttle.js';\n\n/**\n * Wraps the resize callback with a lodash debounce / throttle based on the refresh mode\n */\nconst patchResizeCallback = (resizeCallback, refreshMode, refreshRate, refreshOptions) => {\n switch (refreshMode) {\n case 'debounce':\n return debounce(resizeCallback, refreshRate, refreshOptions);\n case 'throttle':\n return throttle(resizeCallback, refreshRate, refreshOptions);\n default:\n return resizeCallback;\n }\n};\n/**\n * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a\n * prop or avoid re-executing effects when passed as a dependency\n */\nconst useCallbackRef = \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n(callback) => {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => ((...args) => { var _a; return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef, ...args); }), []);\n};\n/** `useRef` hook doesn't handle conditional rendering or dynamic ref changes.\n * This hook creates a proxy that ensures that `refElement` is updated whenever the ref is changed. */\nconst useRefProxy = \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n(targetRef) => {\n // we are going to use this ref to store the last element that was passed to the hook\n const [refElement, setRefElement] = React.useState((targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) || null);\n // if targetRef is passed, we need to update the refElement\n // we have to use setTimeout because ref get assigned after the hook is called\n // in the future releases we are going to remove targetRef and force users to use ref returned by the hook\n if (targetRef) {\n setTimeout(() => {\n if (targetRef.current !== refElement) {\n setRefElement(targetRef.current);\n }\n }, 0);\n }\n // this is a memo that will be called every time the ref is changed\n // This proxy will properly call setState either when the ref is called as a function or when `.current` is set\n // we call setState inside to trigger rerender\n const refProxy = React.useMemo(() => new Proxy((node) => {\n if (node !== refElement) {\n setRefElement(node);\n }\n }, {\n get(target, prop) {\n if (prop === 'current') {\n return refElement;\n }\n return target[prop];\n },\n set(target, prop, value) {\n if (prop === 'current') {\n setRefElement(value);\n }\n else {\n target[prop] = value;\n }\n return true;\n },\n }), [refElement]);\n return { refProxy, refElement, setRefElement };\n};\n/** Calculates the dimensions of the element based on the current box model.\n * @see https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/The_box_model\n */\nconst getDimensions = (entry, box) => {\n // Value\t Border\t Padding\t Inner Content\n // ---------------------------------------------------\n // 'border-box'\t Yes\t Yes\t Yes\n // 'content-box'\t No\t No\t Yes\n // undefined No\t No?\t Yes\n if (box === 'border-box') {\n return {\n width: entry.borderBoxSize[0].inlineSize,\n height: entry.borderBoxSize[0].blockSize,\n };\n }\n if (box === 'content-box') {\n return {\n width: entry.contentBoxSize[0].inlineSize,\n height: entry.contentBoxSize[0].blockSize,\n };\n }\n return {\n width: entry.contentRect.width,\n height: entry.contentRect.height,\n };\n};\n\nexport { getDimensions, patchResizeCallback, useCallbackRef, useRefProxy };\n//# sourceMappingURL=utils.js.map\n"],"names":[],"mappings":";;;AAOK,MAAC,sBAAsB,CAAC,gBAAgB,aAAa,aAAa,mBAAmB;AACtF,UAAQ,aAAW;AAAA,IACf,KAAK;AACD,aAAO,SAAS,gBAAgB,aAAa,cAAc;AAAA,IAC/D,KAAK;AACD,aAAO,SAAS,gBAAgB,aAAa,cAAc;AAAA,IAC/D;AACI,aAAO;AAAA,EACnB;AACA;AAKK,MAAC;AAAA;AAAA,EAEN,CAAC,aAAa;AACV,UAAM,cAAc,MAAM,OAAO,QAAQ;AACzC,UAAM,UAAU,MAAM;AAClB,kBAAY,UAAU;AAAA,IAC9B,CAAK;AACD,WAAO,MAAM,QAAQ,MAAO,IAAI,SAAS;AAAE,UAAI;AAAI,cAAQ,KAAK,YAAY,aAAa,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,aAAa,GAAG,IAAI;AAAA,IAAI,GAAG,CAAA,CAAE;AAAA,EACnK;AAAA;AAGK,MAAC;AAAA;AAAA,EAEN,CAAC,cAAc;AAEX,UAAM,CAAC,YAAY,aAAa,IAAI,MAAM,UAAU,cAAc,QAAQ,cAAc,SAAS,SAAS,UAAU,YAAY,IAAI;AAIpI,QAAI,WAAW;AACX,iBAAW,MAAM;AACb,YAAI,UAAU,YAAY,YAAY;AAClC,wBAAc,UAAU,OAAO;AAAA,QAC/C;AAAA,MACS,GAAE,CAAC;AAAA,IACZ;AAII,UAAM,WAAW,MAAM,QAAQ,MAAM,IAAI,MAAM,CAAC,SAAS;AACrD,UAAI,SAAS,YAAY;AACrB,sBAAc,IAAI;AAAA,MAC9B;AAAA,IACA,GAAO;AAAA,MACC,IAAI,QAAQ,MAAM;AACd,YAAI,SAAS,WAAW;AACpB,iBAAO;AAAA,QACvB;AACY,eAAO,OAAO,IAAI;AAAA,MACrB;AAAA,MACD,IAAI,QAAQ,MAAM,OAAO;AACrB,YAAI,SAAS,WAAW;AACpB,wBAAc,KAAK;AAAA,QACnC,OACiB;AACD,iBAAO,IAAI,IAAI;AAAA,QAC/B;AACY,eAAO;AAAA,MACV;AAAA,IACT,CAAK,GAAG,CAAC,UAAU,CAAC;AAChB,WAAO,EAAE,UAAU,YAAY,cAAe;AAAA,EAClD;AAAA;AAIK,MAAC,gBAAgB,CAAC,OAAO,QAAQ;AAMlC,MAAI,QAAQ,cAAc;AACtB,WAAO;AAAA,MACH,OAAO,MAAM,cAAc,CAAC,EAAE;AAAA,MAC9B,QAAQ,MAAM,cAAc,CAAC,EAAE;AAAA,IAClC;AAAA,EACT;AACI,MAAI,QAAQ,eAAe;AACvB,WAAO;AAAA,MACH,OAAO,MAAM,eAAe,CAAC,EAAE;AAAA,MAC/B,QAAQ,MAAM,eAAe,CAAC,EAAE;AAAA,IACnC;AAAA,EACT;AACI,SAAO;AAAA,IACH,OAAO,MAAM,YAAY;AAAA,IACzB,QAAQ,MAAM,YAAY;AAAA,EAC7B;AACL;","x_google_ignoreList":[0]}
|
package/dist/harmony106.cjs
CHANGED
@@ -1,9 +1,65 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const min = Math.min;
|
4
|
+
const max = Math.max;
|
5
|
+
function clamp(start, value, end) {
|
6
|
+
return max(start, min(value, end));
|
7
|
+
}
|
8
|
+
function evaluate(value, param) {
|
9
|
+
return typeof value === "function" ? value(param) : value;
|
10
|
+
}
|
11
|
+
function getSide(placement) {
|
12
|
+
return placement.split("-")[0];
|
13
|
+
}
|
14
|
+
function getOppositeAxis(axis) {
|
15
|
+
return axis === "x" ? "y" : "x";
|
16
|
+
}
|
17
|
+
function getSideAxis(placement) {
|
18
|
+
return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
|
19
|
+
}
|
20
|
+
function expandPaddingObject(padding) {
|
21
|
+
return {
|
22
|
+
top: 0,
|
23
|
+
right: 0,
|
24
|
+
bottom: 0,
|
25
|
+
left: 0,
|
26
|
+
...padding
|
27
|
+
};
|
28
|
+
}
|
29
|
+
function getPaddingObject(padding) {
|
30
|
+
return typeof padding !== "number" ? expandPaddingObject(padding) : {
|
31
|
+
top: padding,
|
32
|
+
right: padding,
|
33
|
+
bottom: padding,
|
34
|
+
left: padding
|
35
|
+
};
|
36
|
+
}
|
37
|
+
function rectToClientRect(rect) {
|
38
|
+
const {
|
39
|
+
x,
|
40
|
+
y,
|
41
|
+
width,
|
42
|
+
height
|
43
|
+
} = rect;
|
44
|
+
return {
|
45
|
+
width,
|
46
|
+
height,
|
47
|
+
top: y,
|
48
|
+
left: x,
|
49
|
+
right: x + width,
|
50
|
+
bottom: y + height,
|
51
|
+
x,
|
52
|
+
y
|
53
|
+
};
|
54
|
+
}
|
55
|
+
exports.clamp = clamp;
|
56
|
+
exports.evaluate = evaluate;
|
57
|
+
exports.expandPaddingObject = expandPaddingObject;
|
58
|
+
exports.getOppositeAxis = getOppositeAxis;
|
59
|
+
exports.getPaddingObject = getPaddingObject;
|
60
|
+
exports.getSide = getSide;
|
61
|
+
exports.getSideAxis = getSideAxis;
|
62
|
+
exports.max = max;
|
63
|
+
exports.min = min;
|
64
|
+
exports.rectToClientRect = rectToClientRect;
|
9
65
|
//# sourceMappingURL=harmony106.cjs.map
|
package/dist/harmony106.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony106.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony106.cjs","sources":["../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n const lr = ['left', 'right'];\n const rl = ['right', 'left'];\n const tb = ['top', 'bottom'];\n const bt = ['bottom', 'top'];\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rl : lr;\n return isStart ? lr : rl;\n case 'left':\n case 'right':\n return isStart ? tb : bt;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n"],"names":[],"mappings":";;AAQK,MAAC,MAAM,KAAK;AACZ,MAAC,MAAM,KAAK;AAiBjB,SAAS,MAAM,OAAO,OAAO,KAAK;AAChC,SAAO,IAAI,OAAO,IAAI,OAAO,GAAG,CAAC;AACnC;AACA,SAAS,SAAS,OAAO,OAAO;AAC9B,SAAO,OAAO,UAAU,aAAa,MAAM,KAAK,IAAI;AACtD;AACA,SAAS,QAAQ,WAAW;AAC1B,SAAO,UAAU,MAAM,GAAG,EAAE,CAAC;AAC/B;AAIA,SAAS,gBAAgB,MAAM;AAC7B,SAAO,SAAS,MAAM,MAAM;AAC9B;AAIA,SAAS,YAAY,WAAW;AAC9B,SAAO,CAAC,OAAO,QAAQ,EAAE,SAAS,QAAQ,SAAS,CAAC,IAAI,MAAM;AAChE;AAuDA,SAAS,oBAAoB,SAAS;AACpC,SAAO;AAAA,IACL,KAAK;AAAA,IACL,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,GAAG;AAAA,EACJ;AACH;AACA,SAAS,iBAAiB,SAAS;AACjC,SAAO,OAAO,YAAY,WAAW,oBAAoB,OAAO,IAAI;AAAA,IAClE,KAAK;AAAA,IACL,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,MAAM;AAAA,EACP;AACH;AACA,SAAS,iBAAiB,MAAM;AAC9B,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ,IAAM;AACJ,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,KAAK;AAAA,IACL,MAAM;AAAA,IACN,OAAO,IAAI;AAAA,IACX,QAAQ,IAAI;AAAA,IACZ;AAAA,IACA;AAAA,EACD;AACH;;;;;;;;;;;","x_google_ignoreList":[0]}
|