@lokalise/harmony 1.29.1 → 1.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/harmony100.cjs +12 -40
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +11 -39
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +4 -59
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +5 -60
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +39 -6
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +39 -6
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +60 -21
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +59 -20
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +6 -5
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +6 -5
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony106.cjs +1 -1
- package/dist/harmony106.mjs +1 -1
- package/dist/harmony107.cjs +1 -1
- package/dist/harmony107.mjs +1 -1
- package/dist/harmony109.cjs +1 -1
- package/dist/harmony109.mjs +1 -1
- package/dist/harmony120.cjs +1 -1
- package/dist/harmony120.mjs +1 -1
- package/dist/harmony123.cjs +1 -1
- package/dist/harmony123.mjs +1 -1
- package/dist/harmony125.cjs +3 -3
- package/dist/harmony125.mjs +3 -3
- package/dist/harmony127.cjs +5 -11
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +5 -11
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +11 -31
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +11 -31
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +28 -10
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +28 -10
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +13 -5
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +13 -5
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +1 -1
- package/dist/harmony131.mjs +1 -1
- package/dist/harmony15.cjs +1 -1
- package/dist/harmony15.mjs +1 -1
- package/dist/harmony22.cjs +1 -1
- package/dist/harmony22.mjs +1 -1
- package/dist/harmony23.cjs +1 -1
- package/dist/harmony23.mjs +1 -1
- package/dist/harmony61.cjs +2 -2
- package/dist/harmony61.cjs.map +1 -1
- package/dist/harmony61.mjs +2 -2
- package/dist/harmony61.mjs.map +1 -1
- package/dist/harmony66.cjs +1 -1
- package/dist/harmony66.mjs +1 -1
- package/dist/harmony68.cjs +1 -1
- package/dist/harmony68.mjs +1 -1
- package/dist/harmony69.cjs +1 -1
- package/dist/harmony69.mjs +1 -1
- package/dist/harmony70.cjs +1 -1
- package/dist/harmony70.mjs +1 -1
- package/dist/harmony71.cjs +2 -2
- package/dist/harmony71.mjs +2 -2
- package/dist/harmony72.cjs +2 -2
- package/dist/harmony72.mjs +2 -2
- package/dist/harmony73.cjs +2 -2
- package/dist/harmony73.mjs +2 -2
- package/dist/harmony74.cjs +2 -2
- package/dist/harmony74.mjs +2 -2
- package/dist/harmony75.cjs +3 -3
- package/dist/harmony75.mjs +3 -3
- package/dist/harmony76.cjs +6 -6
- package/dist/harmony76.mjs +6 -6
- package/dist/harmony79.cjs +2 -2
- package/dist/harmony79.mjs +2 -2
- package/dist/harmony81.cjs +7 -12
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +6 -11
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +8 -20
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +8 -20
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +6 -3
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +6 -3
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +57 -9
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +56 -8
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +33 -9
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +32 -8
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +5 -57
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +5 -57
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +9 -33
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +8 -32
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +25 -6
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +24 -5
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +3 -6
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +3 -6
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +21 -24
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +20 -23
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +9 -3
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +9 -3
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +9 -19
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +11 -21
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +20 -11
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +20 -11
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +99 -18
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +82 -18
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +18 -14
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +18 -14
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +11 -96
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +11 -79
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +21 -132
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +20 -131
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +6 -12
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +5 -11
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +132 -5
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +132 -5
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/team.d.ts +10 -10
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +10 -10
- package/package.json +1 -1
package/dist/harmony61.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony61.cjs","sources":["../src/features/publicApi/types/teamTypes.ts"],"sourcesContent":["import { PAGINATION_QUERY_PARAMS_SCHEMA } from '@features/publicApi/types/paginationTypes'\nimport { BASE_API_ENDPOINT_HEADER_SCHEMA } from '@features/publicApi/types/sharedTypes'\nimport { z } from 'zod'\n\n// Shared schema\nexport const TEAM_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA\n\nexport type TeamApiBaseHeaders = z.infer<typeof TEAM_API_BASE_HEADERS_SCHEMA>\n\n/**\n * TODO - created_at is using custom format like 2024-10-03 09:45:52 (Etc/UTC)\n * instead of ISO 8601 which is expected by ZOD and we need a custom datetime schema\n */\nconst EXTENDED_DATE_TIME_SCHEMA = z.union([\n\tz.string().refine((val) => /^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2} \\(.*\\)$/.test(val), {\n\t\tmessage: 'Invalid datetime format',\n\t}),\n\tz.string().datetime({ offset: true }),\n\tz.string().datetime(),\n])\n\n// There are too many differences between teams list and retrieving team\n// It is better to keep schemas separately\n\n// List teams\nexport const TEAMS_QUOTA_METRICS = [\n\t'users',\n\t'keys',\n\t'projects',\n\t'mau',\n\t'trafficBytes',\n\t'ai_words',\n] as const\n\nexport const TEAMS_QUOTA_METRICS_SCHEMA = z.enum(TEAMS_QUOTA_METRICS)\nexport type TeamsQuotaMetrics = z.infer<typeof TEAMS_QUOTA_METRICS_SCHEMA>\n\nexport const TEAMS_QUOTA_USAGE_SCHEMA = z.record(TEAMS_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamsQuotaUsage = z.infer<typeof TEAMS_QUOTA_USAGE_SCHEMA>\n\nexport const TEAMS_QUOTA_ALLOWED_SCHEMA = z.record(TEAMS_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamsQuotaAllowed = z.infer<typeof TEAMS_QUOTA_ALLOWED_SCHEMA>\n\nexport const LIST_TEAMS_QUERY_SCHEMA = PAGINATION_QUERY_PARAMS_SCHEMA\nexport type ListTeamsQueryParams = z.infer<typeof LIST_TEAMS_QUERY_SCHEMA>\n\nexport const LIST_TEAMS_RESPONSE_SCHEMA = z.object({\n\tteams: z.array(\n\t\tz.object({\n\t\t\tteam_id: z.number(),\n\t\t\t// TODO: This should not be optional, but the API is not consistent yet\n\t\t\tuuid: z.string().uuid().optional(),\n\t\t\tname: z.string(),\n\t\t\tplan: z.string(),\n\t\t\tlogo_url: z.string(),\n\t\t\trole: z.string(),\n\t\t\tcreated_at: EXTENDED_DATE_TIME_SCHEMA,\n\t\t\tcreated_at_timestamp: z.number(),\n\t\t\tquota_usage: TEAMS_QUOTA_USAGE_SCHEMA,\n\t\t\tquota_allowed: TEAMS_QUOTA_ALLOWED_SCHEMA,\n\t\t}),\n\t),\n})\n\nexport type ListTeamsResponse = z.infer<typeof LIST_TEAMS_RESPONSE_SCHEMA>\n\n// Retrieve team\nexport const TEAM_QUOTA_METRICS_SCHEMA = z.object({\n\tid: z.number().nullable().optional(),\n\tusers: z.number(),\n\tkeys: z.number(),\n\tprojects: z.number(),\n\tmau: z.number(),\n\ttrafficBytes: z.number(),\n\taiWords: z.number(),\n})\n\nexport type TeamQuotaMetrics = z.infer<typeof TEAM_QUOTA_METRICS_SCHEMA>\n\nexport const TEAM_QUOTA_USAGE_SCHEMA = TEAM_QUOTA_METRICS_SCHEMA\nexport type TeamQuotaUsage = z.infer<typeof TEAM_QUOTA_USAGE_SCHEMA>\n\nexport const TEAM_QUOTA_ALLOWED_SCHEMA = TEAM_QUOTA_METRICS_SCHEMA\nexport type TeamQuotaAllowed = z.infer<typeof TEAM_QUOTA_ALLOWED_SCHEMA>\n\nexport const RETRIEVE_TEAM_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.union([z.string().uuid(), z.number()]),\n})\n\nexport type RetrieveTeamPathParams = z.infer<typeof RETRIEVE_TEAM_PATH_PARAMS_SCHEMA>\n\nexport const RETRIEVE_TEAM_RESPONSE_SCHEMA = z.object({\n\tteam: z.object({\n\t\tteam_id: z.number(),\n\t\t// TODO: This should not be optional, but the API is not consistent yet\n\t\tuuid: z.string().uuid().optional(),\n\t\tname: z.string(),\n\t\tplan_name: z.string(),\n\t\tcreated_at: EXTENDED_DATE_TIME_SCHEMA,\n\t\tcreated_at_timestamp: z.number(),\n\t\tlogo_url: z.string(),\n\t\trole: z.string(),\n\t\tquota_usage: TEAM_QUOTA_USAGE_SCHEMA,\n\t\tquota_allowed: TEAM_QUOTA_ALLOWED_SCHEMA,\n\t\tis_team_suspended: z.boolean(),\n\t\tis_end_of_trial_active: z.boolean(),\n\t\ttrial_days_left: z.number(),\n\t}),\n})\n\nexport type RetrieveTeamResponse = z.infer<typeof RETRIEVE_TEAM_RESPONSE_SCHEMA>\n"],"names":["BASE_API_ENDPOINT_HEADER_SCHEMA","z","PAGINATION_QUERY_PARAMS_SCHEMA"],"mappings":";;;;;AAKO,MAAM,+BAA+BA,YAAAA;AAQ5C,MAAM,4BAA4BC,MAAE,MAAM;AAAA,EACzCA,MAAE,OAAS,EAAA,OAAO,CAAC,QAAQ,+CAA+C,KAAK,GAAG,GAAG;AAAA,IACpF,SAAS;AAAA,EAAA,CACT;AAAA,EACDA,MAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,MAAM;AAAA,EACpCA,IAAA,EAAE,OAAO,EAAE,SAAS;AACrB,CAAC;AAMM,MAAM,sBAAsB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEa,MAAA,6BAA6BA,IAAAA,EAAE,KAAK,mBAAmB;AAG7D,MAAM,2BAA2BA,IAAAA,EAAE,OAAO,4BAA4BA,IAAAA,EAAE,OAAQ,CAAA;AAGhF,MAAM,6BAA6BA,IAAAA,EAAE,OAAO,4BAA4BA,IAAAA,EAAE,OAAQ,CAAA;AAGlF,MAAM,0BAA0BC,gBAAAA;AAG1B,MAAA,6BAA6BD,MAAE,OAAO;AAAA,EAClD,OAAOA,IAAE,EAAA;AAAA,IACRA,IAAAA,EAAE,OAAO;AAAA,MACR,SAASA,MAAE,OAAO;AAAA;AAAA,MAElB,MAAMA,IAAAA,EAAE,OAAS,EAAA,KAAA,EAAO,SAAS;AAAA,MACjC,MAAMA,MAAE,OAAO;AAAA,MACf,MAAMA,MAAE,OAAO;AAAA,MACf,UAAUA,
|
1
|
+
{"version":3,"file":"harmony61.cjs","sources":["../src/features/publicApi/types/teamTypes.ts"],"sourcesContent":["import { PAGINATION_QUERY_PARAMS_SCHEMA } from '@features/publicApi/types/paginationTypes'\nimport { BASE_API_ENDPOINT_HEADER_SCHEMA } from '@features/publicApi/types/sharedTypes'\nimport { z } from 'zod'\n\n// Shared schema\nexport const TEAM_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA\n\nexport type TeamApiBaseHeaders = z.infer<typeof TEAM_API_BASE_HEADERS_SCHEMA>\n\n/**\n * TODO - created_at is using custom format like 2024-10-03 09:45:52 (Etc/UTC)\n * instead of ISO 8601 which is expected by ZOD and we need a custom datetime schema\n */\nconst EXTENDED_DATE_TIME_SCHEMA = z.union([\n\tz.string().refine((val) => /^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2} \\(.*\\)$/.test(val), {\n\t\tmessage: 'Invalid datetime format',\n\t}),\n\tz.string().datetime({ offset: true }),\n\tz.string().datetime(),\n])\n\n// There are too many differences between teams list and retrieving team\n// It is better to keep schemas separately\n\n// List teams\nexport const TEAMS_QUOTA_METRICS = [\n\t'users',\n\t'keys',\n\t'projects',\n\t'mau',\n\t'trafficBytes',\n\t'ai_words',\n] as const\n\nexport const TEAMS_QUOTA_METRICS_SCHEMA = z.enum(TEAMS_QUOTA_METRICS)\nexport type TeamsQuotaMetrics = z.infer<typeof TEAMS_QUOTA_METRICS_SCHEMA>\n\nexport const TEAMS_QUOTA_USAGE_SCHEMA = z.record(TEAMS_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamsQuotaUsage = z.infer<typeof TEAMS_QUOTA_USAGE_SCHEMA>\n\nexport const TEAMS_QUOTA_ALLOWED_SCHEMA = z.record(TEAMS_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamsQuotaAllowed = z.infer<typeof TEAMS_QUOTA_ALLOWED_SCHEMA>\n\nexport const LIST_TEAMS_QUERY_SCHEMA = PAGINATION_QUERY_PARAMS_SCHEMA\nexport type ListTeamsQueryParams = z.infer<typeof LIST_TEAMS_QUERY_SCHEMA>\n\nexport const LIST_TEAMS_RESPONSE_SCHEMA = z.object({\n\tteams: z.array(\n\t\tz.object({\n\t\t\tteam_id: z.number(),\n\t\t\t// TODO: This should not be optional, but the API is not consistent yet\n\t\t\tuuid: z.string().uuid().optional(),\n\t\t\tname: z.string(),\n\t\t\tplan: z.string(),\n\t\t\tlogo_url: z.string().nullable(),\n\t\t\trole: z.string(),\n\t\t\tcreated_at: EXTENDED_DATE_TIME_SCHEMA,\n\t\t\tcreated_at_timestamp: z.number(),\n\t\t\tquota_usage: TEAMS_QUOTA_USAGE_SCHEMA,\n\t\t\tquota_allowed: TEAMS_QUOTA_ALLOWED_SCHEMA,\n\t\t}),\n\t),\n})\n\nexport type ListTeamsResponse = z.infer<typeof LIST_TEAMS_RESPONSE_SCHEMA>\n\n// Retrieve team\nexport const TEAM_QUOTA_METRICS_SCHEMA = z.object({\n\tid: z.number().nullable().optional(),\n\tusers: z.number(),\n\tkeys: z.number(),\n\tprojects: z.number(),\n\tmau: z.number(),\n\ttrafficBytes: z.number(),\n\taiWords: z.number(),\n})\n\nexport type TeamQuotaMetrics = z.infer<typeof TEAM_QUOTA_METRICS_SCHEMA>\n\nexport const TEAM_QUOTA_USAGE_SCHEMA = TEAM_QUOTA_METRICS_SCHEMA\nexport type TeamQuotaUsage = z.infer<typeof TEAM_QUOTA_USAGE_SCHEMA>\n\nexport const TEAM_QUOTA_ALLOWED_SCHEMA = TEAM_QUOTA_METRICS_SCHEMA\nexport type TeamQuotaAllowed = z.infer<typeof TEAM_QUOTA_ALLOWED_SCHEMA>\n\nexport const RETRIEVE_TEAM_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.union([z.string().uuid(), z.number()]),\n})\n\nexport type RetrieveTeamPathParams = z.infer<typeof RETRIEVE_TEAM_PATH_PARAMS_SCHEMA>\n\nexport const RETRIEVE_TEAM_RESPONSE_SCHEMA = z.object({\n\tteam: z.object({\n\t\tteam_id: z.number(),\n\t\t// TODO: This should not be optional, but the API is not consistent yet\n\t\tuuid: z.string().uuid().optional(),\n\t\tname: z.string(),\n\t\tplan_name: z.string(),\n\t\tcreated_at: EXTENDED_DATE_TIME_SCHEMA,\n\t\tcreated_at_timestamp: z.number(),\n\t\tlogo_url: z.string().nullable(),\n\t\trole: z.string(),\n\t\tquota_usage: TEAM_QUOTA_USAGE_SCHEMA,\n\t\tquota_allowed: TEAM_QUOTA_ALLOWED_SCHEMA,\n\t\tis_team_suspended: z.boolean(),\n\t\tis_end_of_trial_active: z.boolean(),\n\t\ttrial_days_left: z.number(),\n\t}),\n})\n\nexport type RetrieveTeamResponse = z.infer<typeof RETRIEVE_TEAM_RESPONSE_SCHEMA>\n"],"names":["BASE_API_ENDPOINT_HEADER_SCHEMA","z","PAGINATION_QUERY_PARAMS_SCHEMA"],"mappings":";;;;;AAKO,MAAM,+BAA+BA,YAAAA;AAQ5C,MAAM,4BAA4BC,MAAE,MAAM;AAAA,EACzCA,MAAE,OAAS,EAAA,OAAO,CAAC,QAAQ,+CAA+C,KAAK,GAAG,GAAG;AAAA,IACpF,SAAS;AAAA,EAAA,CACT;AAAA,EACDA,MAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,MAAM;AAAA,EACpCA,IAAA,EAAE,OAAO,EAAE,SAAS;AACrB,CAAC;AAMM,MAAM,sBAAsB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEa,MAAA,6BAA6BA,IAAAA,EAAE,KAAK,mBAAmB;AAG7D,MAAM,2BAA2BA,IAAAA,EAAE,OAAO,4BAA4BA,IAAAA,EAAE,OAAQ,CAAA;AAGhF,MAAM,6BAA6BA,IAAAA,EAAE,OAAO,4BAA4BA,IAAAA,EAAE,OAAQ,CAAA;AAGlF,MAAM,0BAA0BC,gBAAAA;AAG1B,MAAA,6BAA6BD,MAAE,OAAO;AAAA,EAClD,OAAOA,IAAE,EAAA;AAAA,IACRA,IAAAA,EAAE,OAAO;AAAA,MACR,SAASA,MAAE,OAAO;AAAA;AAAA,MAElB,MAAMA,IAAAA,EAAE,OAAS,EAAA,KAAA,EAAO,SAAS;AAAA,MACjC,MAAMA,MAAE,OAAO;AAAA,MACf,MAAMA,MAAE,OAAO;AAAA,MACf,UAAUA,IAAA,EAAE,OAAO,EAAE,SAAS;AAAA,MAC9B,MAAMA,MAAE,OAAO;AAAA,MACf,YAAY;AAAA,MACZ,sBAAsBA,MAAE,OAAO;AAAA,MAC/B,aAAa;AAAA,MACb,eAAe;AAAA,IACf,CAAA;AAAA,EAAA;AAEH,CAAC;AAKY,MAAA,4BAA4BA,MAAE,OAAO;AAAA,EACjD,IAAIA,IAAAA,EAAE,OAAS,EAAA,SAAA,EAAW,SAAS;AAAA,EACnC,OAAOA,MAAE,OAAO;AAAA,EAChB,MAAMA,MAAE,OAAO;AAAA,EACf,UAAUA,MAAE,OAAO;AAAA,EACnB,KAAKA,MAAE,OAAO;AAAA,EACd,cAAcA,MAAE,OAAO;AAAA,EACvB,SAASA,MAAE,OAAO;AACnB,CAAC;AAIM,MAAM,0BAA0B;AAGhC,MAAM,4BAA4B;AAG5B,MAAA,mCAAmCA,MAAE,OAAO;AAAA,EACxD,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAE,EAAA,OAAS,EAAA,KAAQ,GAAAA,MAAE,QAAQ,CAAC;AAChD,CAAC;AAIY,MAAA,gCAAgCA,MAAE,OAAO;AAAA,EACrD,MAAMA,MAAE,OAAO;AAAA,IACd,SAASA,MAAE,OAAO;AAAA;AAAA,IAElB,MAAMA,IAAAA,EAAE,OAAS,EAAA,KAAA,EAAO,SAAS;AAAA,IACjC,MAAMA,MAAE,OAAO;AAAA,IACf,WAAWA,MAAE,OAAO;AAAA,IACpB,YAAY;AAAA,IACZ,sBAAsBA,MAAE,OAAO;AAAA,IAC/B,UAAUA,IAAA,EAAE,OAAO,EAAE,SAAS;AAAA,IAC9B,MAAMA,MAAE,OAAO;AAAA,IACf,aAAa;AAAA,IACb,eAAe;AAAA,IACf,mBAAmBA,MAAE,QAAQ;AAAA,IAC7B,wBAAwBA,MAAE,QAAQ;AAAA,IAClC,iBAAiBA,MAAE,OAAO;AAAA,EAC1B,CAAA;AACF,CAAC;;;;;;;;;;;;;"}
|
package/dist/harmony61.mjs
CHANGED
@@ -29,7 +29,7 @@ const LIST_TEAMS_RESPONSE_SCHEMA = z.object({
|
|
29
29
|
uuid: z.string().uuid().optional(),
|
30
30
|
name: z.string(),
|
31
31
|
plan: z.string(),
|
32
|
-
logo_url: z.string(),
|
32
|
+
logo_url: z.string().nullable(),
|
33
33
|
role: z.string(),
|
34
34
|
created_at: EXTENDED_DATE_TIME_SCHEMA,
|
35
35
|
created_at_timestamp: z.number(),
|
@@ -61,7 +61,7 @@ const RETRIEVE_TEAM_RESPONSE_SCHEMA = z.object({
|
|
61
61
|
plan_name: z.string(),
|
62
62
|
created_at: EXTENDED_DATE_TIME_SCHEMA,
|
63
63
|
created_at_timestamp: z.number(),
|
64
|
-
logo_url: z.string(),
|
64
|
+
logo_url: z.string().nullable(),
|
65
65
|
role: z.string(),
|
66
66
|
quota_usage: TEAM_QUOTA_USAGE_SCHEMA,
|
67
67
|
quota_allowed: TEAM_QUOTA_ALLOWED_SCHEMA,
|
package/dist/harmony61.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony61.mjs","sources":["../src/features/publicApi/types/teamTypes.ts"],"sourcesContent":["import { PAGINATION_QUERY_PARAMS_SCHEMA } from '@features/publicApi/types/paginationTypes'\nimport { BASE_API_ENDPOINT_HEADER_SCHEMA } from '@features/publicApi/types/sharedTypes'\nimport { z } from 'zod'\n\n// Shared schema\nexport const TEAM_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA\n\nexport type TeamApiBaseHeaders = z.infer<typeof TEAM_API_BASE_HEADERS_SCHEMA>\n\n/**\n * TODO - created_at is using custom format like 2024-10-03 09:45:52 (Etc/UTC)\n * instead of ISO 8601 which is expected by ZOD and we need a custom datetime schema\n */\nconst EXTENDED_DATE_TIME_SCHEMA = z.union([\n\tz.string().refine((val) => /^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2} \\(.*\\)$/.test(val), {\n\t\tmessage: 'Invalid datetime format',\n\t}),\n\tz.string().datetime({ offset: true }),\n\tz.string().datetime(),\n])\n\n// There are too many differences between teams list and retrieving team\n// It is better to keep schemas separately\n\n// List teams\nexport const TEAMS_QUOTA_METRICS = [\n\t'users',\n\t'keys',\n\t'projects',\n\t'mau',\n\t'trafficBytes',\n\t'ai_words',\n] as const\n\nexport const TEAMS_QUOTA_METRICS_SCHEMA = z.enum(TEAMS_QUOTA_METRICS)\nexport type TeamsQuotaMetrics = z.infer<typeof TEAMS_QUOTA_METRICS_SCHEMA>\n\nexport const TEAMS_QUOTA_USAGE_SCHEMA = z.record(TEAMS_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamsQuotaUsage = z.infer<typeof TEAMS_QUOTA_USAGE_SCHEMA>\n\nexport const TEAMS_QUOTA_ALLOWED_SCHEMA = z.record(TEAMS_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamsQuotaAllowed = z.infer<typeof TEAMS_QUOTA_ALLOWED_SCHEMA>\n\nexport const LIST_TEAMS_QUERY_SCHEMA = PAGINATION_QUERY_PARAMS_SCHEMA\nexport type ListTeamsQueryParams = z.infer<typeof LIST_TEAMS_QUERY_SCHEMA>\n\nexport const LIST_TEAMS_RESPONSE_SCHEMA = z.object({\n\tteams: z.array(\n\t\tz.object({\n\t\t\tteam_id: z.number(),\n\t\t\t// TODO: This should not be optional, but the API is not consistent yet\n\t\t\tuuid: z.string().uuid().optional(),\n\t\t\tname: z.string(),\n\t\t\tplan: z.string(),\n\t\t\tlogo_url: z.string(),\n\t\t\trole: z.string(),\n\t\t\tcreated_at: EXTENDED_DATE_TIME_SCHEMA,\n\t\t\tcreated_at_timestamp: z.number(),\n\t\t\tquota_usage: TEAMS_QUOTA_USAGE_SCHEMA,\n\t\t\tquota_allowed: TEAMS_QUOTA_ALLOWED_SCHEMA,\n\t\t}),\n\t),\n})\n\nexport type ListTeamsResponse = z.infer<typeof LIST_TEAMS_RESPONSE_SCHEMA>\n\n// Retrieve team\nexport const TEAM_QUOTA_METRICS_SCHEMA = z.object({\n\tid: z.number().nullable().optional(),\n\tusers: z.number(),\n\tkeys: z.number(),\n\tprojects: z.number(),\n\tmau: z.number(),\n\ttrafficBytes: z.number(),\n\taiWords: z.number(),\n})\n\nexport type TeamQuotaMetrics = z.infer<typeof TEAM_QUOTA_METRICS_SCHEMA>\n\nexport const TEAM_QUOTA_USAGE_SCHEMA = TEAM_QUOTA_METRICS_SCHEMA\nexport type TeamQuotaUsage = z.infer<typeof TEAM_QUOTA_USAGE_SCHEMA>\n\nexport const TEAM_QUOTA_ALLOWED_SCHEMA = TEAM_QUOTA_METRICS_SCHEMA\nexport type TeamQuotaAllowed = z.infer<typeof TEAM_QUOTA_ALLOWED_SCHEMA>\n\nexport const RETRIEVE_TEAM_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.union([z.string().uuid(), z.number()]),\n})\n\nexport type RetrieveTeamPathParams = z.infer<typeof RETRIEVE_TEAM_PATH_PARAMS_SCHEMA>\n\nexport const RETRIEVE_TEAM_RESPONSE_SCHEMA = z.object({\n\tteam: z.object({\n\t\tteam_id: z.number(),\n\t\t// TODO: This should not be optional, but the API is not consistent yet\n\t\tuuid: z.string().uuid().optional(),\n\t\tname: z.string(),\n\t\tplan_name: z.string(),\n\t\tcreated_at: EXTENDED_DATE_TIME_SCHEMA,\n\t\tcreated_at_timestamp: z.number(),\n\t\tlogo_url: z.string(),\n\t\trole: z.string(),\n\t\tquota_usage: TEAM_QUOTA_USAGE_SCHEMA,\n\t\tquota_allowed: TEAM_QUOTA_ALLOWED_SCHEMA,\n\t\tis_team_suspended: z.boolean(),\n\t\tis_end_of_trial_active: z.boolean(),\n\t\ttrial_days_left: z.number(),\n\t}),\n})\n\nexport type RetrieveTeamResponse = z.infer<typeof RETRIEVE_TEAM_RESPONSE_SCHEMA>\n"],"names":[],"mappings":";;;AAKO,MAAM,+BAA+B;AAQ5C,MAAM,4BAA4B,EAAE,MAAM;AAAA,EACzC,EAAE,OAAS,EAAA,OAAO,CAAC,QAAQ,+CAA+C,KAAK,GAAG,GAAG;AAAA,IACpF,SAAS;AAAA,EAAA,CACT;AAAA,EACD,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,MAAM;AAAA,EACpC,EAAE,OAAO,EAAE,SAAS;AACrB,CAAC;AAMM,MAAM,sBAAsB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEa,MAAA,6BAA6B,EAAE,KAAK,mBAAmB;AAG7D,MAAM,2BAA2B,EAAE,OAAO,4BAA4B,EAAE,OAAQ,CAAA;AAGhF,MAAM,6BAA6B,EAAE,OAAO,4BAA4B,EAAE,OAAQ,CAAA;AAGlF,MAAM,0BAA0B;AAG1B,MAAA,6BAA6B,EAAE,OAAO;AAAA,EAClD,OAAO,EAAE;AAAA,IACR,EAAE,OAAO;AAAA,MACR,SAAS,EAAE,OAAO;AAAA;AAAA,MAElB,MAAM,EAAE,OAAS,EAAA,KAAA,EAAO,SAAS;AAAA,MACjC,MAAM,EAAE,OAAO;AAAA,MACf,MAAM,EAAE,OAAO;AAAA,MACf,UAAU,EAAE,OAAO;AAAA,
|
1
|
+
{"version":3,"file":"harmony61.mjs","sources":["../src/features/publicApi/types/teamTypes.ts"],"sourcesContent":["import { PAGINATION_QUERY_PARAMS_SCHEMA } from '@features/publicApi/types/paginationTypes'\nimport { BASE_API_ENDPOINT_HEADER_SCHEMA } from '@features/publicApi/types/sharedTypes'\nimport { z } from 'zod'\n\n// Shared schema\nexport const TEAM_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA\n\nexport type TeamApiBaseHeaders = z.infer<typeof TEAM_API_BASE_HEADERS_SCHEMA>\n\n/**\n * TODO - created_at is using custom format like 2024-10-03 09:45:52 (Etc/UTC)\n * instead of ISO 8601 which is expected by ZOD and we need a custom datetime schema\n */\nconst EXTENDED_DATE_TIME_SCHEMA = z.union([\n\tz.string().refine((val) => /^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2} \\(.*\\)$/.test(val), {\n\t\tmessage: 'Invalid datetime format',\n\t}),\n\tz.string().datetime({ offset: true }),\n\tz.string().datetime(),\n])\n\n// There are too many differences between teams list and retrieving team\n// It is better to keep schemas separately\n\n// List teams\nexport const TEAMS_QUOTA_METRICS = [\n\t'users',\n\t'keys',\n\t'projects',\n\t'mau',\n\t'trafficBytes',\n\t'ai_words',\n] as const\n\nexport const TEAMS_QUOTA_METRICS_SCHEMA = z.enum(TEAMS_QUOTA_METRICS)\nexport type TeamsQuotaMetrics = z.infer<typeof TEAMS_QUOTA_METRICS_SCHEMA>\n\nexport const TEAMS_QUOTA_USAGE_SCHEMA = z.record(TEAMS_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamsQuotaUsage = z.infer<typeof TEAMS_QUOTA_USAGE_SCHEMA>\n\nexport const TEAMS_QUOTA_ALLOWED_SCHEMA = z.record(TEAMS_QUOTA_METRICS_SCHEMA, z.number())\nexport type TeamsQuotaAllowed = z.infer<typeof TEAMS_QUOTA_ALLOWED_SCHEMA>\n\nexport const LIST_TEAMS_QUERY_SCHEMA = PAGINATION_QUERY_PARAMS_SCHEMA\nexport type ListTeamsQueryParams = z.infer<typeof LIST_TEAMS_QUERY_SCHEMA>\n\nexport const LIST_TEAMS_RESPONSE_SCHEMA = z.object({\n\tteams: z.array(\n\t\tz.object({\n\t\t\tteam_id: z.number(),\n\t\t\t// TODO: This should not be optional, but the API is not consistent yet\n\t\t\tuuid: z.string().uuid().optional(),\n\t\t\tname: z.string(),\n\t\t\tplan: z.string(),\n\t\t\tlogo_url: z.string().nullable(),\n\t\t\trole: z.string(),\n\t\t\tcreated_at: EXTENDED_DATE_TIME_SCHEMA,\n\t\t\tcreated_at_timestamp: z.number(),\n\t\t\tquota_usage: TEAMS_QUOTA_USAGE_SCHEMA,\n\t\t\tquota_allowed: TEAMS_QUOTA_ALLOWED_SCHEMA,\n\t\t}),\n\t),\n})\n\nexport type ListTeamsResponse = z.infer<typeof LIST_TEAMS_RESPONSE_SCHEMA>\n\n// Retrieve team\nexport const TEAM_QUOTA_METRICS_SCHEMA = z.object({\n\tid: z.number().nullable().optional(),\n\tusers: z.number(),\n\tkeys: z.number(),\n\tprojects: z.number(),\n\tmau: z.number(),\n\ttrafficBytes: z.number(),\n\taiWords: z.number(),\n})\n\nexport type TeamQuotaMetrics = z.infer<typeof TEAM_QUOTA_METRICS_SCHEMA>\n\nexport const TEAM_QUOTA_USAGE_SCHEMA = TEAM_QUOTA_METRICS_SCHEMA\nexport type TeamQuotaUsage = z.infer<typeof TEAM_QUOTA_USAGE_SCHEMA>\n\nexport const TEAM_QUOTA_ALLOWED_SCHEMA = TEAM_QUOTA_METRICS_SCHEMA\nexport type TeamQuotaAllowed = z.infer<typeof TEAM_QUOTA_ALLOWED_SCHEMA>\n\nexport const RETRIEVE_TEAM_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.union([z.string().uuid(), z.number()]),\n})\n\nexport type RetrieveTeamPathParams = z.infer<typeof RETRIEVE_TEAM_PATH_PARAMS_SCHEMA>\n\nexport const RETRIEVE_TEAM_RESPONSE_SCHEMA = z.object({\n\tteam: z.object({\n\t\tteam_id: z.number(),\n\t\t// TODO: This should not be optional, but the API is not consistent yet\n\t\tuuid: z.string().uuid().optional(),\n\t\tname: z.string(),\n\t\tplan_name: z.string(),\n\t\tcreated_at: EXTENDED_DATE_TIME_SCHEMA,\n\t\tcreated_at_timestamp: z.number(),\n\t\tlogo_url: z.string().nullable(),\n\t\trole: z.string(),\n\t\tquota_usage: TEAM_QUOTA_USAGE_SCHEMA,\n\t\tquota_allowed: TEAM_QUOTA_ALLOWED_SCHEMA,\n\t\tis_team_suspended: z.boolean(),\n\t\tis_end_of_trial_active: z.boolean(),\n\t\ttrial_days_left: z.number(),\n\t}),\n})\n\nexport type RetrieveTeamResponse = z.infer<typeof RETRIEVE_TEAM_RESPONSE_SCHEMA>\n"],"names":[],"mappings":";;;AAKO,MAAM,+BAA+B;AAQ5C,MAAM,4BAA4B,EAAE,MAAM;AAAA,EACzC,EAAE,OAAS,EAAA,OAAO,CAAC,QAAQ,+CAA+C,KAAK,GAAG,GAAG;AAAA,IACpF,SAAS;AAAA,EAAA,CACT;AAAA,EACD,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,MAAM;AAAA,EACpC,EAAE,OAAO,EAAE,SAAS;AACrB,CAAC;AAMM,MAAM,sBAAsB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEa,MAAA,6BAA6B,EAAE,KAAK,mBAAmB;AAG7D,MAAM,2BAA2B,EAAE,OAAO,4BAA4B,EAAE,OAAQ,CAAA;AAGhF,MAAM,6BAA6B,EAAE,OAAO,4BAA4B,EAAE,OAAQ,CAAA;AAGlF,MAAM,0BAA0B;AAG1B,MAAA,6BAA6B,EAAE,OAAO;AAAA,EAClD,OAAO,EAAE;AAAA,IACR,EAAE,OAAO;AAAA,MACR,SAAS,EAAE,OAAO;AAAA;AAAA,MAElB,MAAM,EAAE,OAAS,EAAA,KAAA,EAAO,SAAS;AAAA,MACjC,MAAM,EAAE,OAAO;AAAA,MACf,MAAM,EAAE,OAAO;AAAA,MACf,UAAU,EAAE,OAAO,EAAE,SAAS;AAAA,MAC9B,MAAM,EAAE,OAAO;AAAA,MACf,YAAY;AAAA,MACZ,sBAAsB,EAAE,OAAO;AAAA,MAC/B,aAAa;AAAA,MACb,eAAe;AAAA,IACf,CAAA;AAAA,EAAA;AAEH,CAAC;AAKY,MAAA,4BAA4B,EAAE,OAAO;AAAA,EACjD,IAAI,EAAE,OAAS,EAAA,SAAA,EAAW,SAAS;AAAA,EACnC,OAAO,EAAE,OAAO;AAAA,EAChB,MAAM,EAAE,OAAO;AAAA,EACf,UAAU,EAAE,OAAO;AAAA,EACnB,KAAK,EAAE,OAAO;AAAA,EACd,cAAc,EAAE,OAAO;AAAA,EACvB,SAAS,EAAE,OAAO;AACnB,CAAC;AAIM,MAAM,0BAA0B;AAGhC,MAAM,4BAA4B;AAG5B,MAAA,mCAAmC,EAAE,OAAO;AAAA,EACxD,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAS,EAAA,KAAQ,GAAA,EAAE,QAAQ,CAAC;AAChD,CAAC;AAIY,MAAA,gCAAgC,EAAE,OAAO;AAAA,EACrD,MAAM,EAAE,OAAO;AAAA,IACd,SAAS,EAAE,OAAO;AAAA;AAAA,IAElB,MAAM,EAAE,OAAS,EAAA,KAAA,EAAO,SAAS;AAAA,IACjC,MAAM,EAAE,OAAO;AAAA,IACf,WAAW,EAAE,OAAO;AAAA,IACpB,YAAY;AAAA,IACZ,sBAAsB,EAAE,OAAO;AAAA,IAC/B,UAAU,EAAE,OAAO,EAAE,SAAS;AAAA,IAC9B,MAAM,EAAE,OAAO;AAAA,IACf,aAAa;AAAA,IACb,eAAe;AAAA,IACf,mBAAmB,EAAE,QAAQ;AAAA,IAC7B,wBAAwB,EAAE,QAAQ;AAAA,IAClC,iBAAiB,EAAE,OAAO;AAAA,EAC1B,CAAA;AACF,CAAC;"}
|
package/dist/harmony66.cjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const React = require("react");
|
4
|
-
const utils = require("./
|
4
|
+
const utils = require("./harmony94.cjs");
|
5
5
|
function useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1e3, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize } = {}) {
|
6
6
|
const skipResize = React.useRef(skipOnMount);
|
7
7
|
const onResizeRef = utils.useCallbackRef(onResize);
|
package/dist/harmony66.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { useRef, useState, useCallback, useEffect } from "react";
|
2
|
-
import { useCallbackRef, useRefProxy, getDimensions, patchResizeCallback } from "./
|
2
|
+
import { useCallbackRef, useRefProxy, getDimensions, patchResizeCallback } from "./harmony94.mjs";
|
3
3
|
function useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1e3, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize } = {}) {
|
4
4
|
const skipResize = useRef(skipOnMount);
|
5
5
|
const onResizeRef = useCallbackRef(onResize);
|
package/dist/harmony68.cjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const Avatar_module = require("./
|
4
|
+
const Avatar_module = require("./harmony81.cjs");
|
5
5
|
const Avatar = ({
|
6
6
|
src,
|
7
7
|
href = "/",
|
package/dist/harmony68.mjs
CHANGED
package/dist/harmony69.cjs
CHANGED
@@ -3,7 +3,7 @@ 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 clsx = require("./harmony64.cjs");
|
6
|
-
const IconLink_module = require("./
|
6
|
+
const IconLink_module = require("./harmony82.cjs");
|
7
7
|
const IconLink = ({ label, to, icon: Icon }) => {
|
8
8
|
return /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsxRuntime.jsx(
|
9
9
|
louis.Link,
|
package/dist/harmony69.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
2
|
import { Tooltip, Link } from "@lokalise/louis";
|
3
3
|
import { clsx } from "./harmony64.mjs";
|
4
|
-
import styles from "./
|
4
|
+
import styles from "./harmony82.mjs";
|
5
5
|
const IconLink = ({ label, to, icon: Icon }) => {
|
6
6
|
return /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsx(
|
7
7
|
Link,
|
package/dist/harmony70.cjs
CHANGED
@@ -3,7 +3,7 @@ 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 clsx = require("./harmony64.cjs");
|
6
|
-
const Menu_module = require("./
|
6
|
+
const Menu_module = require("./harmony83.cjs");
|
7
7
|
const Menu = ({ children, icon: Icon }) => {
|
8
8
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
9
9
|
louis.Menu,
|
package/dist/harmony70.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
2
|
import { Menu as Menu$1, MenuList, Tooltip } from "@lokalise/louis";
|
3
3
|
import { clsx } from "./harmony64.mjs";
|
4
|
-
import styles from "./
|
4
|
+
import styles from "./harmony83.mjs";
|
5
5
|
const Menu = ({ children, icon: Icon }) => {
|
6
6
|
return /* @__PURE__ */ jsx(
|
7
7
|
Menu$1,
|
package/dist/harmony71.cjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const ProfileMenuContent = require("./
|
5
|
-
const ProfileMenuProvider = require("./
|
4
|
+
const ProfileMenuContent = require("./harmony84.cjs");
|
5
|
+
const ProfileMenuProvider = require("./harmony85.cjs");
|
6
6
|
const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuProvider.ProfileMenuProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContent.ProfileMenuContent, { children }) });
|
7
7
|
exports.ProfileMenu = ProfileMenu;
|
8
8
|
//# sourceMappingURL=harmony71.cjs.map
|
package/dist/harmony71.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { ProfileMenuContent } from "./
|
3
|
-
import { ProfileMenuProvider } from "./
|
2
|
+
import { ProfileMenuContent } from "./harmony84.mjs";
|
3
|
+
import { ProfileMenuProvider } from "./harmony85.mjs";
|
4
4
|
const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsx(ProfileMenuProvider, { config, children: /* @__PURE__ */ jsx(ProfileMenuContent, { children }) });
|
5
5
|
export {
|
6
6
|
ProfileMenu
|
package/dist/harmony72.cjs
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
|
-
const ProfileMenuContext = require("./
|
6
|
-
const ProfileSettingsMenuItem_module = require("./
|
5
|
+
const ProfileMenuContext = require("./harmony86.cjs");
|
6
|
+
const ProfileSettingsMenuItem_module = require("./harmony87.cjs");
|
7
7
|
const ProfileSettingsMenuItem = ({
|
8
8
|
href,
|
9
9
|
onClick,
|
package/dist/harmony72.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
2
2
|
import { MenuItem, MenuDivider } from "@lokalise/louis";
|
3
|
-
import { useProfileMenu } from "./
|
4
|
-
import styles from "./
|
3
|
+
import { useProfileMenu } from "./harmony86.mjs";
|
4
|
+
import styles from "./harmony87.mjs";
|
5
5
|
const ProfileSettingsMenuItem = ({
|
6
6
|
href,
|
7
7
|
onClick,
|
package/dist/harmony73.cjs
CHANGED
@@ -3,8 +3,8 @@ 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 plan = require("./harmony7.cjs");
|
6
|
-
const ProfileMenuContext = require("./
|
7
|
-
const TeamMenuItem_module = require("./
|
6
|
+
const ProfileMenuContext = require("./harmony86.cjs");
|
7
|
+
const TeamMenuItem_module = require("./harmony88.cjs");
|
8
8
|
const TeamMenuItem = ({ team, onClick, hidePlanLabel }) => {
|
9
9
|
const { currentTeam, planId } = ProfileMenuContext.useProfileMenu();
|
10
10
|
const contextTeam = team || currentTeam;
|
package/dist/harmony73.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
2
2
|
import { MenuItem, UserIcon } from "@lokalise/louis";
|
3
3
|
import { isFreePlan, isTrialPlan } from "./harmony7.mjs";
|
4
|
-
import { useProfileMenu } from "./
|
5
|
-
import styles from "./
|
4
|
+
import { useProfileMenu } from "./harmony86.mjs";
|
5
|
+
import styles from "./harmony88.mjs";
|
6
6
|
const TeamMenuItem = ({ team, onClick, hidePlanLabel }) => {
|
7
7
|
const { currentTeam, planId } = useProfileMenu();
|
8
8
|
const contextTeam = team || currentTeam;
|
package/dist/harmony74.cjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const ProfileMenuContext = require("./
|
4
|
+
const ProfileMenuContext = require("./harmony86.cjs");
|
5
5
|
const TeamMenuItem = require("./harmony73.cjs");
|
6
|
-
const TeamSwitch_module = require("./
|
6
|
+
const TeamSwitch_module = require("./harmony89.cjs");
|
7
7
|
const TeamSwitch = ({ onSwitchTeam }) => {
|
8
8
|
const { otherTeams } = ProfileMenuContext.useProfileMenu();
|
9
9
|
if (otherTeams.length === 0) {
|
package/dist/harmony74.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { useProfileMenu } from "./
|
2
|
+
import { useProfileMenu } from "./harmony86.mjs";
|
3
3
|
import { TeamMenuItem } from "./harmony73.mjs";
|
4
|
-
import styles from "./
|
4
|
+
import styles from "./harmony89.mjs";
|
5
5
|
const TeamSwitch = ({ onSwitchTeam }) => {
|
6
6
|
const { otherTeams } = useProfileMenu();
|
7
7
|
if (otherTeams.length === 0) {
|
package/dist/harmony75.cjs
CHANGED
@@ -3,9 +3,9 @@ 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 plan = require("./harmony7.cjs");
|
6
|
-
const UpgradeIcon = require("./
|
7
|
-
const ProfileMenuContext = require("./
|
8
|
-
const UpgradeMenuItem_module = require("./
|
6
|
+
const UpgradeIcon = require("./harmony90.cjs");
|
7
|
+
const ProfileMenuContext = require("./harmony86.cjs");
|
8
|
+
const UpgradeMenuItem_module = require("./harmony91.cjs");
|
9
9
|
const UpgradeMenuItem = ({ upgradeOptionHref }) => {
|
10
10
|
const { planId, trialDaysLeft, showUpgradeCta } = ProfileMenuContext.useProfileMenu();
|
11
11
|
if (!showUpgradeCta) {
|
package/dist/harmony75.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
2
2
|
import { MenuItem } from "@lokalise/louis";
|
3
3
|
import { isFreePlan } from "./harmony7.mjs";
|
4
|
-
import { UpgradeIcon } from "./
|
5
|
-
import { useProfileMenu } from "./
|
6
|
-
import styles from "./
|
4
|
+
import { UpgradeIcon } from "./harmony90.mjs";
|
5
|
+
import { useProfileMenu } from "./harmony86.mjs";
|
6
|
+
import styles from "./harmony91.mjs";
|
7
7
|
const UpgradeMenuItem = ({ upgradeOptionHref }) => {
|
8
8
|
const { planId, trialDaysLeft, showUpgradeCta } = useProfileMenu();
|
9
9
|
if (!showUpgradeCta) {
|
package/dist/harmony76.cjs
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const floatingUi_core = require("./
|
4
|
+
const floatingUi_core = require("./harmony99.cjs");
|
5
5
|
const louis = require("@lokalise/louis");
|
6
6
|
const useEffectOnce = require("./harmony11.cjs");
|
7
7
|
const clsx = require("./harmony64.cjs");
|
8
8
|
const React = require("react");
|
9
|
-
const Tasks_module = require("./
|
10
|
-
const TasksContext = require("./
|
11
|
-
const TasksPopover = require("./
|
12
|
-
const TasksProvider = require("./
|
13
|
-
const taskEvents = require("./
|
9
|
+
const Tasks_module = require("./harmony100.cjs");
|
10
|
+
const TasksContext = require("./harmony101.cjs");
|
11
|
+
const TasksPopover = require("./harmony102.cjs");
|
12
|
+
const TasksProvider = require("./harmony103.cjs");
|
13
|
+
const taskEvents = require("./harmony104.cjs");
|
14
14
|
const Tasks = TasksProvider.withTasksContext(() => {
|
15
15
|
const [open, setOpen] = React.useState(false);
|
16
16
|
const { tasksCount } = TasksContext.useTasks();
|
package/dist/harmony76.mjs
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
-
import { shift } from "./
|
2
|
+
import { shift } from "./harmony99.mjs";
|
3
3
|
import { Tooltip, Popover, Button, JobIcon } from "@lokalise/louis";
|
4
4
|
import { useEffectOnce } from "./harmony11.mjs";
|
5
5
|
import { clsx } from "./harmony64.mjs";
|
6
6
|
import { useState } from "react";
|
7
|
-
import styles from "./
|
8
|
-
import { useTasks } from "./
|
9
|
-
import { TasksPopover } from "./
|
10
|
-
import { withTasksContext } from "./
|
11
|
-
import { TaskEvents } from "./
|
7
|
+
import styles from "./harmony100.mjs";
|
8
|
+
import { useTasks } from "./harmony101.mjs";
|
9
|
+
import { TasksPopover } from "./harmony102.mjs";
|
10
|
+
import { withTasksContext } from "./harmony103.mjs";
|
11
|
+
import { TaskEvents } from "./harmony104.mjs";
|
12
12
|
const Tasks = withTasksContext(() => {
|
13
13
|
const [open, setOpen] = useState(false);
|
14
14
|
const { tasksCount } = useTasks();
|
package/dist/harmony79.cjs
CHANGED
@@ -4,8 +4,8 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const clsx = require("./harmony64.cjs");
|
6
6
|
const React = require("react");
|
7
|
-
const NavItemContents = require("./
|
8
|
-
const styles_module = require("./
|
7
|
+
const NavItemContents = require("./harmony92.cjs");
|
8
|
+
const styles_module = require("./harmony93.cjs");
|
9
9
|
const NavigationTabsItem = React.forwardRef(
|
10
10
|
({ label, href = "", disabled = false, badge, onClick, novel }, ref) => /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { tooltip: "You do not have access to this function", show: disabled, children: /* @__PURE__ */ jsxRuntime.jsx(
|
11
11
|
"div",
|
package/dist/harmony79.mjs
CHANGED
@@ -2,8 +2,8 @@ import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip } from "@lokalise/louis";
|
3
3
|
import { clsx } from "./harmony64.mjs";
|
4
4
|
import { forwardRef } from "react";
|
5
|
-
import { NavItemContents } from "./
|
6
|
-
import classes from "./
|
5
|
+
import { NavItemContents } from "./harmony92.mjs";
|
6
|
+
import classes from "./harmony93.mjs";
|
7
7
|
const NavigationTabsItem = forwardRef(
|
8
8
|
({ label, href = "", disabled = false, badge, onClick, novel }, ref) => /* @__PURE__ */ jsx(Tooltip, { tooltip: "You do not have access to this function", show: disabled, children: /* @__PURE__ */ jsx(
|
9
9
|
"div",
|
package/dist/harmony81.cjs
CHANGED
@@ -1,14 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
!!badge && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_module.default.badge, "aria-label": `${badge} items requiring attention`, children: badge > 9 ? "9+" : badge })
|
10
|
-
] }),
|
11
|
-
!!novel && /* @__PURE__ */ jsxRuntime.jsx(louis.Tag, { className: styles_module.default.tag, children: novel })
|
12
|
-
] });
|
13
|
-
exports.NavItemContents = NavItemContents;
|
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;
|
14
9
|
//# sourceMappingURL=harmony81.cjs.map
|
package/dist/harmony81.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony81.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony81.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony81.mjs
CHANGED
@@ -1,14 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
6
|
-
/* @__PURE__ */ jsx("span", { children: label }),
|
7
|
-
!!badge && /* @__PURE__ */ jsx("div", { className: classes.badge, "aria-label": `${badge} items requiring attention`, children: badge > 9 ? "9+" : badge })
|
8
|
-
] }),
|
9
|
-
!!novel && /* @__PURE__ */ jsx(Tag, { className: classes.tag, children: novel })
|
10
|
-
] });
|
1
|
+
const logoLink = "_logoLink_1baxb_1";
|
2
|
+
const styles = {
|
3
|
+
logoLink
|
4
|
+
};
|
11
5
|
export {
|
12
|
-
|
6
|
+
styles as default,
|
7
|
+
logoLink
|
13
8
|
};
|
14
9
|
//# sourceMappingURL=harmony81.mjs.map
|
package/dist/harmony81.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony81.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony81.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony82.cjs
CHANGED
@@ -1,24 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
const projectNavigationItemDisabled = "_projectNavigationItemDisabled_1pc1v_67";
|
9
|
-
const classes = {
|
10
|
-
badge,
|
11
|
-
tag,
|
12
|
-
withNavLinkStyle,
|
13
|
-
disabled,
|
14
|
-
projectNavigationItem,
|
15
|
-
projectNavigationItemDisabled
|
3
|
+
const link = "_link_18vhx_1";
|
4
|
+
const active = "_active_18vhx_18";
|
5
|
+
const styles = {
|
6
|
+
link,
|
7
|
+
active
|
16
8
|
};
|
17
|
-
exports.
|
18
|
-
exports.default =
|
19
|
-
exports.
|
20
|
-
exports.projectNavigationItem = projectNavigationItem;
|
21
|
-
exports.projectNavigationItemDisabled = projectNavigationItemDisabled;
|
22
|
-
exports.tag = tag;
|
23
|
-
exports.withNavLinkStyle = withNavLinkStyle;
|
9
|
+
exports.active = active;
|
10
|
+
exports.default = styles;
|
11
|
+
exports.link = link;
|
24
12
|
//# sourceMappingURL=harmony82.cjs.map
|
package/dist/harmony82.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony82.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony82.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/harmony82.mjs
CHANGED
@@ -1,24 +1,12 @@
|
|
1
|
-
const
|
2
|
-
const
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
const projectNavigationItemDisabled = "_projectNavigationItemDisabled_1pc1v_67";
|
7
|
-
const classes = {
|
8
|
-
badge,
|
9
|
-
tag,
|
10
|
-
withNavLinkStyle,
|
11
|
-
disabled,
|
12
|
-
projectNavigationItem,
|
13
|
-
projectNavigationItemDisabled
|
1
|
+
const link = "_link_18vhx_1";
|
2
|
+
const active = "_active_18vhx_18";
|
3
|
+
const styles = {
|
4
|
+
link,
|
5
|
+
active
|
14
6
|
};
|
15
7
|
export {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
projectNavigationItem,
|
20
|
-
projectNavigationItemDisabled,
|
21
|
-
tag,
|
22
|
-
withNavLinkStyle
|
8
|
+
active,
|
9
|
+
styles as default,
|
10
|
+
link
|
23
11
|
};
|
24
12
|
//# sourceMappingURL=harmony82.mjs.map
|
package/dist/harmony82.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony82.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony82.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/harmony83.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 dropdownButton = "_dropdownButton_1naek_1";
|
4
|
+
const dropdownButtonActive = "_dropdownButtonActive_1naek_19";
|
4
5
|
const styles = {
|
5
|
-
|
6
|
+
dropdownButton,
|
7
|
+
dropdownButtonActive
|
6
8
|
};
|
7
9
|
exports.default = styles;
|
8
|
-
exports.
|
10
|
+
exports.dropdownButton = dropdownButton;
|
11
|
+
exports.dropdownButtonActive = dropdownButtonActive;
|
9
12
|
//# sourceMappingURL=harmony83.cjs.map
|
package/dist/harmony83.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony83.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony83.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/harmony83.mjs
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
-
const
|
1
|
+
const dropdownButton = "_dropdownButton_1naek_1";
|
2
|
+
const dropdownButtonActive = "_dropdownButtonActive_1naek_19";
|
2
3
|
const styles = {
|
3
|
-
|
4
|
+
dropdownButton,
|
5
|
+
dropdownButtonActive
|
4
6
|
};
|
5
7
|
export {
|
6
8
|
styles as default,
|
7
|
-
|
9
|
+
dropdownButton,
|
10
|
+
dropdownButtonActive
|
8
11
|
};
|
9
12
|
//# sourceMappingURL=harmony83.mjs.map
|
package/dist/harmony83.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony83.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony83.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/harmony84.cjs
CHANGED
@@ -1,12 +1,60 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const clsx = require("./harmony64.cjs");
|
6
|
+
const UpgradeIcon = require("./harmony90.cjs");
|
7
|
+
const ProfileMenuContent_module = require("./harmony97.cjs");
|
8
|
+
const ProfileMenuContext = require("./harmony86.cjs");
|
9
|
+
const ProfileMenuContent = ({ children }) => {
|
10
|
+
const {
|
11
|
+
currentTeam,
|
12
|
+
otherTeams,
|
13
|
+
showUpgradeCta,
|
14
|
+
showBillingButton,
|
15
|
+
allowTeamCreation,
|
16
|
+
isProviderAlpha,
|
17
|
+
canAccessTeamSettings,
|
18
|
+
isEndOfTrialActive,
|
19
|
+
isTeamSuspended,
|
20
|
+
isFullyAuthenticated
|
21
|
+
} = ProfileMenuContext.useProfileMenu();
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
23
|
+
louis.Menu,
|
24
|
+
{
|
25
|
+
menuButton: () => /* @__PURE__ */ jsxRuntime.jsxs("button", { className: ProfileMenuContent_module.default.profileButton, "aria-label": "Profile menu", type: "button", children: [
|
26
|
+
(currentTeam == null ? void 0 : currentTeam.logoUrl) ? /* @__PURE__ */ jsxRuntime.jsx(
|
27
|
+
"img",
|
28
|
+
{
|
29
|
+
src: currentTeam.logoUrl,
|
30
|
+
className: clsx.clsx(ProfileMenuContent_module.default.profileImage, {
|
31
|
+
[ProfileMenuContent_module.default.profileImageHighlight]: showUpgradeCta
|
32
|
+
}),
|
33
|
+
alt: "Team Logo"
|
34
|
+
}
|
35
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
36
|
+
"div",
|
37
|
+
{
|
38
|
+
className: clsx.clsx(ProfileMenuContent_module.default.userIconWrapper, "flex-row", "align-center", "items-center", {
|
39
|
+
[ProfileMenuContent_module.default.profileImageHighlight]: showUpgradeCta
|
40
|
+
}),
|
41
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.UserIcon, { size: "25px" })
|
42
|
+
}
|
43
|
+
),
|
44
|
+
showUpgradeCta && /* @__PURE__ */ jsxRuntime.jsx(UpgradeIcon.UpgradeIcon, { className: ProfileMenuContent_module.default.profileImageUpgradeIcon })
|
45
|
+
] }),
|
46
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.MenuList, { placement: "right-end", className: ProfileMenuContent_module.default.menuContainer, children: children({
|
47
|
+
allowTeamCreation,
|
48
|
+
otherTeams,
|
49
|
+
canAccessTeamSettings,
|
50
|
+
isEndOfTrialActive,
|
51
|
+
isTeamSuspended,
|
52
|
+
showBillingButton,
|
53
|
+
isProviderAlpha,
|
54
|
+
isFullyAuthenticated
|
55
|
+
}) })
|
56
|
+
}
|
57
|
+
);
|
8
58
|
};
|
9
|
-
exports.
|
10
|
-
exports.default = styles;
|
11
|
-
exports.link = link;
|
59
|
+
exports.ProfileMenuContent = ProfileMenuContent;
|
12
60
|
//# sourceMappingURL=harmony84.cjs.map
|
package/dist/harmony84.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony84.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony84.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContent.tsx"],"sourcesContent":["import { Menu, MenuList, UserIcon } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { ReactNode } from 'react'\nimport { UpgradeIcon } from '../../UpgradeIcon/UpgradeIcon'\nimport styles from './ProfileMenuContent.module.css'\nimport { useProfileMenu } from './ProfileMenuContext'\nimport type { SidebarProfileMenuRenderProps } from './types'\n\nexport type ProfileMenuContentProps = {\n\tchildren: (props: SidebarProfileMenuRenderProps) => ReactNode\n}\n\nexport const ProfileMenuContent = ({ children }: ProfileMenuContentProps) => {\n\tconst {\n\t\tcurrentTeam,\n\t\totherTeams,\n\t\tshowUpgradeCta,\n\t\tshowBillingButton,\n\t\tallowTeamCreation,\n\t\tisProviderAlpha,\n\t\tcanAccessTeamSettings,\n\t\tisEndOfTrialActive,\n\t\tisTeamSuspended,\n\t\tisFullyAuthenticated,\n\t} = useProfileMenu()\n\n\treturn (\n\t\t<Menu\n\t\t\tmenuButton={() => (\n\t\t\t\t<button className={styles.profileButton} aria-label=\"Profile menu\" type=\"button\">\n\t\t\t\t\t{currentTeam?.logoUrl ? (\n\t\t\t\t\t\t<img\n\t\t\t\t\t\t\tsrc={currentTeam.logoUrl}\n\t\t\t\t\t\t\tclassName={clsx(styles.profileImage, {\n\t\t\t\t\t\t\t\t[styles.profileImageHighlight]: showUpgradeCta,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\talt=\"Team Logo\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclassName={clsx(styles.userIconWrapper, 'flex-row', 'align-center', 'items-center', {\n\t\t\t\t\t\t\t\t[styles.profileImageHighlight]: showUpgradeCta,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<UserIcon size={'25px'} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t{showUpgradeCta && <UpgradeIcon className={styles.profileImageUpgradeIcon} />}\n\t\t\t\t</button>\n\t\t\t)}\n\t\t>\n\t\t\t<MenuList placement=\"right-end\" className={styles.menuContainer}>\n\t\t\t\t{children({\n\t\t\t\t\tallowTeamCreation,\n\t\t\t\t\totherTeams,\n\t\t\t\t\tcanAccessTeamSettings,\n\t\t\t\t\tisEndOfTrialActive,\n\t\t\t\t\tisTeamSuspended,\n\t\t\t\t\tshowBillingButton,\n\t\t\t\t\tisProviderAlpha,\n\t\t\t\t\tisFullyAuthenticated,\n\t\t\t\t})}\n\t\t\t</MenuList>\n\t\t</Menu>\n\t)\n}\n"],"names":["useProfileMenu","jsx","Menu","jsxs","styles","clsx","UserIcon","UpgradeIcon","MenuList"],"mappings":";;;;;;;;AAYO,MAAM,qBAAqB,CAAC,EAAE,eAAwC;AACtE,QAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACGA,kCAAe;AAGlB,SAAAC,2BAAA;AAAA,IAACC,MAAA;AAAA,IAAA;AAAA,MACA,YAAY,MACXC,2BAAAA,KAAC,UAAO,EAAA,WAAWC,0BAAAA,QAAO,eAAe,cAAW,gBAAe,MAAK,UACtE,UAAA;AAAA,SAAA,2CAAa,WACbH,2BAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,KAAK,YAAY;AAAA,YACjB,WAAWI,KAAAA,KAAKD,0BAAA,QAAO,cAAc;AAAA,cACpC,CAACA,0BAAAA,QAAO,qBAAqB,GAAG;AAAA,YAAA,CAChC;AAAA,YACD,KAAI;AAAA,UAAA;AAAA,QAAA,IAGLH,2BAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,WAAWI,KAAK,KAAAD,0BAAA,QAAO,iBAAiB,YAAY,gBAAgB,gBAAgB;AAAA,cACnF,CAACA,0BAAAA,QAAO,qBAAqB,GAAG;AAAA,YAAA,CAChC;AAAA,YAED,UAAAH,2BAAAA,IAACK,MAAAA,UAAS,EAAA,MAAM,OAAQ,CAAA;AAAA,UAAA;AAAA,QACzB;AAAA,QAEA,kBAAkBL,2BAAA,IAACM,YAAY,aAAA,EAAA,WAAWH,0BAAAA,QAAO,wBAAyB,CAAA;AAAA,MAAA,GAC5E;AAAA,MAGD,yCAACI,gBAAS,EAAA,WAAU,aAAY,WAAWJ,kCAAO,eAChD,UAAS,SAAA;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAAA,CACA,EACF,CAAA;AAAA,IAAA;AAAA,EACD;AAEF;;"}
|