@intlayer/design-system 8.11.0-canary.0 → 8.11.0

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.
Files changed (188) hide show
  1. package/dist/esm/api/hooks/ai.mjs +66 -0
  2. package/dist/esm/api/hooks/ai.mjs.map +1 -0
  3. package/dist/esm/api/hooks/audit.mjs +34 -0
  4. package/dist/esm/api/hooks/audit.mjs.map +1 -0
  5. package/dist/esm/api/hooks/auth.mjs +217 -0
  6. package/dist/esm/api/hooks/auth.mjs.map +1 -0
  7. package/dist/esm/api/hooks/bitbucket.mjs +39 -0
  8. package/dist/esm/api/hooks/bitbucket.mjs.map +1 -0
  9. package/dist/esm/api/hooks/dictionary.mjs +105 -0
  10. package/dist/esm/api/hooks/dictionary.mjs.map +1 -0
  11. package/dist/esm/api/hooks/discussions.mjs +37 -0
  12. package/dist/esm/api/hooks/discussions.mjs.map +1 -0
  13. package/dist/esm/api/hooks/editor.mjs +24 -0
  14. package/dist/esm/api/hooks/editor.mjs.map +1 -0
  15. package/dist/esm/api/hooks/github.mjs +54 -0
  16. package/dist/esm/api/hooks/github.mjs.map +1 -0
  17. package/dist/esm/api/hooks/gitlab.mjs +43 -0
  18. package/dist/esm/api/hooks/gitlab.mjs.map +1 -0
  19. package/dist/esm/api/hooks/newsletter.mjs +31 -0
  20. package/dist/esm/api/hooks/newsletter.mjs.map +1 -0
  21. package/dist/esm/api/hooks/organization.mjs +123 -0
  22. package/dist/esm/api/hooks/organization.mjs.map +1 -0
  23. package/dist/esm/api/hooks/project.mjs +187 -0
  24. package/dist/esm/api/hooks/project.mjs.map +1 -0
  25. package/dist/esm/api/hooks/reviewer.mjs +288 -0
  26. package/dist/esm/api/hooks/reviewer.mjs.map +1 -0
  27. package/dist/esm/api/hooks/search.mjs +18 -0
  28. package/dist/esm/api/hooks/search.mjs.map +1 -0
  29. package/dist/esm/api/hooks/showcaseProject.mjs +95 -0
  30. package/dist/esm/api/hooks/showcaseProject.mjs.map +1 -0
  31. package/dist/esm/api/hooks/stripe.mjs +261 -0
  32. package/dist/esm/api/hooks/stripe.mjs.map +1 -0
  33. package/dist/esm/api/hooks/tag.mjs +45 -0
  34. package/dist/esm/api/hooks/tag.mjs.map +1 -0
  35. package/dist/esm/api/hooks/translate.mjs +47 -0
  36. package/dist/esm/api/hooks/translate.mjs.map +1 -0
  37. package/dist/esm/api/hooks/user.mjs +58 -0
  38. package/dist/esm/api/hooks/user.mjs.map +1 -0
  39. package/dist/esm/api/hooks/utils.mjs +30 -0
  40. package/dist/esm/api/hooks/utils.mjs.map +1 -0
  41. package/dist/esm/api/index.mjs +26 -0
  42. package/dist/esm/{hooks → api}/useAuth/useAuth.mjs +1 -1
  43. package/dist/esm/api/useAuth/useAuth.mjs.map +1 -0
  44. package/dist/esm/{hooks → api}/useAuth/useOAuth2.mjs +2 -2
  45. package/dist/esm/api/useAuth/useOAuth2.mjs.map +1 -0
  46. package/dist/esm/{hooks → api}/useAuth/useSession.mjs +2 -3
  47. package/dist/esm/api/useAuth/useSession.mjs.map +1 -0
  48. package/dist/esm/api/useIntlayerAPI.mjs +123 -0
  49. package/dist/esm/api/useIntlayerAPI.mjs.map +1 -0
  50. package/dist/esm/{hooks → api}/useUser/index.mjs +2 -2
  51. package/dist/esm/api/useUser/index.mjs.map +1 -0
  52. package/dist/esm/components/Badge/index.mjs +1 -3
  53. package/dist/esm/components/Badge/index.mjs.map +1 -1
  54. package/dist/esm/components/Breadcrumb/index.mjs +0 -1
  55. package/dist/esm/components/Breadcrumb/index.mjs.map +1 -1
  56. package/dist/esm/components/Button/Button.mjs +2 -4
  57. package/dist/esm/components/Button/Button.mjs.map +1 -1
  58. package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs +1 -1
  59. package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs.map +1 -1
  60. package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +1 -1
  61. package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
  62. package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +3 -2
  63. package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  64. package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +4 -2
  65. package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  66. package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +3 -2
  67. package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  68. package/dist/esm/components/Input/Checkbox.mjs +0 -2
  69. package/dist/esm/components/Input/Checkbox.mjs.map +1 -1
  70. package/dist/esm/components/Label/index.mjs +2 -2
  71. package/dist/esm/components/Label/index.mjs.map +1 -1
  72. package/dist/esm/components/LanguageBackground/LanguageSection.mjs +8 -6
  73. package/dist/esm/components/LanguageBackground/LanguageSection.mjs.map +1 -1
  74. package/dist/esm/components/LanguageBackground/index.mjs +7 -5
  75. package/dist/esm/components/LanguageBackground/index.mjs.map +1 -1
  76. package/dist/esm/components/Link/Link.mjs +0 -7
  77. package/dist/esm/components/Link/Link.mjs.map +1 -1
  78. package/dist/esm/components/Pagination/Pagination.mjs +1 -2
  79. package/dist/esm/components/Pagination/Pagination.mjs.map +1 -1
  80. package/dist/esm/components/SwitchSelector/SwitchSelector.mjs +3 -5
  81. package/dist/esm/components/SwitchSelector/SwitchSelector.mjs.map +1 -1
  82. package/dist/esm/components/SwitchSelector/VerticalSwitchSelector.mjs +3 -3
  83. package/dist/esm/components/SwitchSelector/VerticalSwitchSelector.mjs.map +1 -1
  84. package/dist/esm/components/TabSelector/TabSelector.mjs +3 -3
  85. package/dist/esm/components/TabSelector/TabSelector.mjs.map +1 -1
  86. package/dist/esm/components/Toaster/Toast.mjs +3 -3
  87. package/dist/esm/components/Toaster/Toast.mjs.map +1 -1
  88. package/dist/esm/hooks/index.mjs +1 -7
  89. package/dist/esm/routes.mjs +4 -1
  90. package/dist/esm/routes.mjs.map +1 -1
  91. package/dist/types/api/hooks/ai.d.ts +12 -0
  92. package/dist/types/api/hooks/ai.d.ts.map +1 -0
  93. package/dist/types/api/hooks/audit.d.ts +10 -0
  94. package/dist/types/api/hooks/audit.d.ts.map +1 -0
  95. package/dist/types/api/hooks/auth.d.ts +29 -0
  96. package/dist/types/api/hooks/auth.d.ts.map +1 -0
  97. package/dist/types/api/hooks/bitbucket.d.ts +8 -0
  98. package/dist/types/api/hooks/bitbucket.d.ts.map +1 -0
  99. package/dist/types/api/hooks/dictionary.d.ts +15 -0
  100. package/dist/types/api/hooks/dictionary.d.ts.map +1 -0
  101. package/dist/types/api/hooks/discussions.d.ts +8 -0
  102. package/dist/types/api/hooks/discussions.d.ts.map +1 -0
  103. package/dist/types/api/hooks/editor.d.ts +6 -0
  104. package/dist/types/api/hooks/editor.d.ts.map +1 -0
  105. package/dist/types/api/hooks/github.d.ts +12 -0
  106. package/dist/types/api/hooks/github.d.ts.map +1 -0
  107. package/dist/types/api/hooks/gitlab.d.ts +8 -0
  108. package/dist/types/api/hooks/gitlab.d.ts.map +1 -0
  109. package/dist/types/api/hooks/newsletter.d.ts +7 -0
  110. package/dist/types/api/hooks/newsletter.d.ts.map +1 -0
  111. package/dist/types/api/hooks/organization.d.ts +16 -0
  112. package/dist/types/api/hooks/organization.d.ts.map +1 -0
  113. package/dist/types/api/hooks/project.d.ts +23 -0
  114. package/dist/types/api/hooks/project.d.ts.map +1 -0
  115. package/dist/types/api/hooks/reviewer.d.ts +39 -0
  116. package/dist/types/api/hooks/reviewer.d.ts.map +1 -0
  117. package/dist/types/api/hooks/search.d.ts +7 -0
  118. package/dist/types/api/hooks/search.d.ts.map +1 -0
  119. package/dist/types/api/hooks/showcaseProject.d.ts +16 -0
  120. package/dist/types/api/hooks/showcaseProject.d.ts.map +1 -0
  121. package/dist/types/api/hooks/stripe.d.ts +33 -0
  122. package/dist/types/api/hooks/stripe.d.ts.map +1 -0
  123. package/dist/types/api/hooks/tag.d.ts +11 -0
  124. package/dist/types/api/hooks/tag.d.ts.map +1 -0
  125. package/dist/types/api/hooks/translate.d.ts +8 -0
  126. package/dist/types/api/hooks/translate.d.ts.map +1 -0
  127. package/dist/types/api/hooks/user.d.ts +13 -0
  128. package/dist/types/api/hooks/user.d.ts.map +1 -0
  129. package/dist/types/api/hooks/utils.d.ts +23 -0
  130. package/dist/types/api/hooks/utils.d.ts.map +1 -0
  131. package/dist/types/api/index.d.ts +25 -0
  132. package/dist/types/{hooks → api}/useAuth/useAuth.d.ts +1 -1
  133. package/dist/types/api/useAuth/useAuth.d.ts.map +1 -0
  134. package/dist/types/{hooks → api}/useAuth/useOAuth2.d.ts +1 -1
  135. package/dist/types/api/useAuth/useOAuth2.d.ts.map +1 -0
  136. package/dist/types/{hooks → api}/useAuth/useSession.d.ts +1 -1
  137. package/dist/types/api/useAuth/useSession.d.ts.map +1 -0
  138. package/dist/types/api/useIntlayerAPI.d.ts +297 -0
  139. package/dist/types/api/useIntlayerAPI.d.ts.map +1 -0
  140. package/dist/types/{hooks → api}/useUser/index.d.ts +1 -1
  141. package/dist/types/api/useUser/index.d.ts.map +1 -0
  142. package/dist/types/components/Badge/index.d.ts +3 -4
  143. package/dist/types/components/Badge/index.d.ts.map +1 -1
  144. package/dist/types/components/Breadcrumb/index.d.ts.map +1 -1
  145. package/dist/types/components/Button/Button.d.ts +5 -6
  146. package/dist/types/components/Button/Button.d.ts.map +1 -1
  147. package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +1 -1
  148. package/dist/types/components/Command/index.d.ts +1 -1
  149. package/dist/types/components/Container/index.d.ts +4 -4
  150. package/dist/types/components/Input/Checkbox.d.ts +1 -2
  151. package/dist/types/components/Input/Checkbox.d.ts.map +1 -1
  152. package/dist/types/components/LanguageBackground/index.d.ts.map +1 -1
  153. package/dist/types/components/Link/Link.d.ts +3 -4
  154. package/dist/types/components/Link/Link.d.ts.map +1 -1
  155. package/dist/types/components/Pagination/Pagination.d.ts +1 -1
  156. package/dist/types/components/Pagination/Pagination.d.ts.map +1 -1
  157. package/dist/types/components/SwitchSelector/SwitchSelector.d.ts +2 -3
  158. package/dist/types/components/SwitchSelector/SwitchSelector.d.ts.map +1 -1
  159. package/dist/types/components/SwitchSelector/VerticalSwitchSelector.d.ts +1 -1
  160. package/dist/types/components/SwitchSelector/VerticalSwitchSelector.d.ts.map +1 -1
  161. package/dist/types/components/TabSelector/TabSelector.d.ts +2 -2
  162. package/dist/types/components/TabSelector/TabSelector.d.ts.map +1 -1
  163. package/dist/types/components/Tag/index.d.ts +2 -2
  164. package/dist/types/components/Toaster/Toast.d.ts +1 -1
  165. package/dist/types/hooks/index.d.ts +1 -7
  166. package/dist/types/providers/ReactQueryProvider.d.ts +1 -1
  167. package/dist/types/routes.d.ts +4 -1
  168. package/dist/types/routes.d.ts.map +1 -1
  169. package/package.json +28 -23
  170. package/tailwind.css +0 -19
  171. package/dist/esm/hooks/reactQuery.mjs +0 -1586
  172. package/dist/esm/hooks/reactQuery.mjs.map +0 -1
  173. package/dist/esm/hooks/useAuth/useAuth.mjs.map +0 -1
  174. package/dist/esm/hooks/useAuth/useOAuth2.mjs.map +0 -1
  175. package/dist/esm/hooks/useAuth/useSession.mjs.map +0 -1
  176. package/dist/esm/hooks/useIntlayerAPI.mjs +0 -22
  177. package/dist/esm/hooks/useIntlayerAPI.mjs.map +0 -1
  178. package/dist/esm/hooks/useUser/index.mjs.map +0 -1
  179. package/dist/types/hooks/reactQuery.d.ts +0 -236
  180. package/dist/types/hooks/reactQuery.d.ts.map +0 -1
  181. package/dist/types/hooks/useAuth/useAuth.d.ts.map +0 -1
  182. package/dist/types/hooks/useAuth/useOAuth2.d.ts.map +0 -1
  183. package/dist/types/hooks/useAuth/useSession.d.ts.map +0 -1
  184. package/dist/types/hooks/useIntlayerAPI.d.ts +0 -14
  185. package/dist/types/hooks/useIntlayerAPI.d.ts.map +0 -1
  186. package/dist/types/hooks/useUser/index.d.ts.map +0 -1
  187. /package/dist/esm/{hooks → api}/useAuth/index.mjs +0 -0
  188. /package/dist/types/{hooks → api}/useAuth/index.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.d.ts","names":[],"sources":["../../../../src/api/hooks/tag.ts"],"mappings":";;;;cAWa,UAAA,GACX,OAAA,GAAU,aAAA,EACV,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAcvB,SAAA;AAAA,cAYA,YAAA;AAAA,cAaA,YAAA"}
@@ -0,0 +1,8 @@
1
+ //#region src/api/hooks/translate.d.ts
2
+ declare const useFillAllTranslations: () => any;
3
+ declare const useStopTranslationJob: () => any;
4
+ declare const usePauseTranslationJob: () => any;
5
+ declare const useResumeTranslationJob: () => any;
6
+ //#endregion
7
+ export { useFillAllTranslations, usePauseTranslationJob, useResumeTranslationJob, useStopTranslationJob };
8
+ //# sourceMappingURL=translate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translate.d.ts","names":[],"sources":["../../../../src/api/hooks/translate.ts"],"mappings":";cAMa,sBAAA;AAAA,cA2BA,qBAAA;AAAA,cASA,sBAAA;AAAA,cASA,uBAAA"}
@@ -0,0 +1,13 @@
1
+ import { UseQueryOptions } from "@tanstack/react-query";
2
+ import { GetUsersParams } from "@intlayer/backend";
3
+
4
+ //#region src/api/hooks/user.d.ts
5
+ declare const useGetUsers: (filters?: GetUsersParams, options?: Partial<UseQueryOptions>) => QueryObserverResult<TData, TError>;
6
+ declare const useGetUserById: (userId: string) => QueryObserverResult<TData, TError>;
7
+ declare const useCreateUser: () => any;
8
+ declare const useUpdateUser: () => any;
9
+ declare const useDeleteUser: () => any;
10
+ declare const useUploadUserAvatar: () => any;
11
+ //#endregion
12
+ export { useCreateUser, useDeleteUser, useGetUserById, useGetUsers, useUpdateUser, useUploadUserAvatar };
13
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","names":[],"sources":["../../../../src/api/hooks/user.ts"],"mappings":";;;;cAWa,WAAA,GACX,OAAA,GAAU,cAAA,EACV,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAavB,cAAA,GAAkB,MAAA,aAAc,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAUhC,aAAA;AAAA,cASA,aAAA;AAAA,cASA,aAAA;AAAA,cAYA,mBAAA"}
@@ -0,0 +1,23 @@
1
+ import { UseQueryOptions } from "@tanstack/react-query";
2
+
3
+ //#region src/api/hooks/utils.d.ts
4
+ type AuthEnableOptions = {
5
+ requireUser?: boolean;
6
+ requireProject?: boolean;
7
+ requireOrganization?: boolean;
8
+ };
9
+ declare const useAuthEnable: ({
10
+ requireUser,
11
+ requireProject,
12
+ requireOrganization
13
+ }: AuthEnableOptions) => {
14
+ enable: boolean;
15
+ };
16
+ declare const useAppQuery: (options: UseQueryOptions & {
17
+ requireUser?: boolean;
18
+ requireProject?: boolean;
19
+ requireOrganization?: boolean;
20
+ }) => QueryObserverResult<TData, TError>;
21
+ //#endregion
22
+ export { useAppQuery, useAuthEnable };
23
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","names":[],"sources":["../../../../src/api/hooks/utils.ts"],"mappings":";;;KAMK,iBAAA;EACH,WAAA;EACA,cAAA;EACA,mBAAA;AAAA;AAAA,cAGW,aAAA;EAAiB,WAAA;EAAA,cAAA;EAAA;AAAA,GAI3B,iBAAA;;;cA6BU,WAAA,GACX,OAAA,EAAS,eAAA;EACP,WAAA;EACA,cAAA;EACA,mBAAA;AAAA,MACD,mBAAA,CAAA,KAAA,EAAA,MAAA"}
@@ -0,0 +1,25 @@
1
+ import { useAskDocQuestion, useAuditContentDeclaration, useAuditContentDeclarationField, useAuditContentDeclarationMetadata, useAuditTag, useAutocomplete, useChat, useTranslateJSONDeclaration } from "./hooks/ai.js";
2
+ import { useAuditScan, useGetRecursiveAuditStatus, useStartRecursiveAudit } from "./hooks/audit.js";
3
+ import { useAddPasskey, useAskResetPassword, useChangePassword, useDeletePasskey, useDeleteSSOProvider, useDisableTwoFactor, useEnableTwoFactor, useGetUserByAccount, useGetVerifyEmailStatus, useLinkSocial, useListAccounts, useListPasskeys, useListSSOProviders, useLogin, useLogout, useRegister, useRegisterSSO, useResetPassword, useSignInMagicLink, useSignInPasskey, useSignInSSO, useUnlinkAccount, useVerifyBackupCode, useVerifyEmail, useVerifyTotp } from "./hooks/auth.js";
4
+ import { useBitbucketAuth, useBitbucketCheckConfig, useBitbucketGetConfigFile, useBitbucketRepos } from "./hooks/bitbucket.js";
5
+ import { useAddDictionary, useDeleteDictionary, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useInfiniteGetDictionaries, usePushDictionaries, useUpdateDictionary } from "./hooks/dictionary.js";
6
+ import { useGetDiscussions, useGetDiscussionsData } from "./hooks/discussions.js";
7
+ import { useGetEditorDictionaries, useWriteDictionary } from "./hooks/editor.js";
8
+ import { useGithubAuth, useGithubCheckConfig, useGithubGetAuthUrl, useGithubGetConfigFile, useGithubRepos, useGithubToken } from "./hooks/github.js";
9
+ import { useGitlabAuth, useGitlabCheckConfig, useGitlabGetConfigFile, useGitlabProjects } from "./hooks/gitlab.js";
10
+ import { useGetNewsletterStatus, useSubscribeToNewsletter, useUnsubscribeFromNewsletter } from "./hooks/newsletter.js";
11
+ import { useAddOrganization, useAddOrganizationMember, useDeleteOrganization, useDeleteOrganizationById, useGetOrganizations, useSelectOrganization, useUnselectOrganization, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateOrganizationMembersById } from "./hooks/organization.js";
12
+ import { useAddNewAccessKey, useAddProject, useDeleteAccessKey, useDeleteProject, useDeleteProjectById, useGetCIConfig, useGetProjects, usePushCIConfig, usePushProjectConfiguration, useRefreshAccessKey, useSelectProject, useTriggerBuild, useTriggerWebhook, useUnselectProject, useUpdateProject, useUpdateProjectMembers } from "./hooks/project.js";
13
+ import { useContactReviewer, useCreateMission, useDeleteReviewerProfile, useEstimateMission, useGetAdminReviewers, useGetChatHistory, useGetMissionById, useGetMyMissions, useGetMyReviewerProfile, useGetReviewerById, useGetReviewerMarketplace, useGetReviewerPriceDistribution, useGetReviewerReviews, useRegisterAsReviewer, useSendReviewerMessage, useSubmitReview, useUpdateMissionStatus, useUpdateReviewerProfile, useUploadReviewerCoverPicture, useUploadReviewerMainPicture, useValidateReviewerProfile } from "./hooks/reviewer.js";
14
+ import { useSearchDoc } from "./hooks/search.js";
15
+ import { UseIntlayerAuthProps, useAiAPI, useAuditAPI, useBitbucketAPI, useDictionaryAPI, useEditorAPI, useGithubAPI, useGitlabAPI, useIntlayerAuth, useIntlayerOAuth, useIntlayerOAuthOptions, useNewsletterAPI, useOAuthAPI, useOrganizationAPI, useProjectAPI, useReviewerAPI, useSearchAPI, useShowcaseProjectAPI, useStripeAPI, useTagAPI, useTranslateAPI, useUserAPI } from "./useIntlayerAPI.js";
16
+ import { useDeleteShowcaseProject, useGetOtherShowcaseProjects, useGetShowcaseProjectById, useGetShowcaseProjects, useSubmitShowcaseProject, useToggleShowcaseDownvote, useToggleShowcaseUpvote, useUpdateShowcaseProject } from "./hooks/showcaseProject.js";
17
+ import { useAcceptAffiliateInvitation, useCancelSubscription, useCreatePortalSession, useCreatePromoCode, useDeletePromoCode, useGetAffiliate, useGetAffiliateAccountSession, useGetAffiliateById, useGetAffiliateInvitation, useGetAffiliateInvitations, useGetAffiliateOnboardingLink, useGetAffiliatePromoCode, useGetAffiliateStats, useGetAffiliates, useGetInvoices, useGetPaymentMethod, useGetPricing, useGetPromoCodeById, useGetPromoCodes, useGetSubscription, useGrantAffiliateAccess, useSendAffiliateInvitation, useUpdateAffiliateStatus, useUpdatePromoCode } from "./hooks/stripe.js";
18
+ import { useAddTag, useDeleteTag, useGetTags, useUpdateTag } from "./hooks/tag.js";
19
+ import { useFillAllTranslations, usePauseTranslationJob, useResumeTranslationJob, useStopTranslationJob } from "./hooks/translate.js";
20
+ import { useCreateUser, useDeleteUser, useGetUserById, useGetUsers, useUpdateUser, useUploadUserAvatar } from "./hooks/user.js";
21
+ import { useAuth } from "./useAuth/useAuth.js";
22
+ import { useOAuth2 } from "./useAuth/useOAuth2.js";
23
+ import { UseSessionResult, useSession } from "./useAuth/useSession.js";
24
+ import { useUser } from "./useUser/index.js";
25
+ export { UseIntlayerAuthProps, UseSessionResult, useAcceptAffiliateInvitation, useAddDictionary, useAddNewAccessKey, useAddOrganization, useAddOrganizationMember, useAddPasskey, useAddProject, useAddTag, useAiAPI, useAskDocQuestion, useAskResetPassword, useAuditAPI, useAuditContentDeclaration, useAuditContentDeclarationField, useAuditContentDeclarationMetadata, useAuditScan, useAuditTag, useAuth, useAutocomplete, useBitbucketAPI, useBitbucketAuth, useBitbucketCheckConfig, useBitbucketGetConfigFile, useBitbucketRepos, useCancelSubscription, useChangePassword, useChat, useContactReviewer, useCreateMission, useCreatePortalSession, useCreatePromoCode, useCreateUser, useDeleteAccessKey, useDeleteDictionary, useDeleteOrganization, useDeleteOrganizationById, useDeletePasskey, useDeleteProject, useDeleteProjectById, useDeletePromoCode, useDeleteReviewerProfile, useDeleteSSOProvider, useDeleteShowcaseProject, useDeleteTag, useDeleteUser, useDictionaryAPI, useDisableTwoFactor, useEditorAPI, useEnableTwoFactor, useEstimateMission, useFillAllTranslations, useGetAdminReviewers, useGetAffiliate, useGetAffiliateAccountSession, useGetAffiliateById, useGetAffiliateInvitation, useGetAffiliateInvitations, useGetAffiliateOnboardingLink, useGetAffiliatePromoCode, useGetAffiliateStats, useGetAffiliates, useGetCIConfig, useGetChatHistory, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useGetDiscussions, useGetDiscussionsData, useGetEditorDictionaries, useGetInvoices, useGetMissionById, useGetMyMissions, useGetMyReviewerProfile, useGetNewsletterStatus, useGetOrganizations, useGetOtherShowcaseProjects, useGetPaymentMethod, useGetPricing, useGetProjects, useGetPromoCodeById, useGetPromoCodes, useGetRecursiveAuditStatus, useGetReviewerById, useGetReviewerMarketplace, useGetReviewerPriceDistribution, useGetReviewerReviews, useGetShowcaseProjectById, useGetShowcaseProjects, useGetSubscription, useGetTags, useGetUserByAccount, useGetUserById, useGetUsers, useGetVerifyEmailStatus, useGithubAPI, useGithubAuth, useGithubCheckConfig, useGithubGetAuthUrl, useGithubGetConfigFile, useGithubRepos, useGithubToken, useGitlabAPI, useGitlabAuth, useGitlabCheckConfig, useGitlabGetConfigFile, useGitlabProjects, useGrantAffiliateAccess, useInfiniteGetDictionaries, useIntlayerAuth, useIntlayerOAuth, useIntlayerOAuthOptions, useLinkSocial, useListAccounts, useListPasskeys, useListSSOProviders, useLogin, useLogout, useNewsletterAPI, useOAuth2, useOAuthAPI, useOrganizationAPI, usePauseTranslationJob, useProjectAPI, usePushCIConfig, usePushDictionaries, usePushProjectConfiguration, useRefreshAccessKey, useRegister, useRegisterAsReviewer, useRegisterSSO, useResetPassword, useResumeTranslationJob, useReviewerAPI, useSearchAPI, useSearchDoc, useSelectOrganization, useSelectProject, useSendAffiliateInvitation, useSendReviewerMessage, useSession, useShowcaseProjectAPI, useSignInMagicLink, useSignInPasskey, useSignInSSO, useStartRecursiveAudit, useStopTranslationJob, useStripeAPI, useSubmitReview, useSubmitShowcaseProject, useSubscribeToNewsletter, useTagAPI, useToggleShowcaseDownvote, useToggleShowcaseUpvote, useTranslateAPI, useTranslateJSONDeclaration, useTriggerBuild, useTriggerWebhook, useUnlinkAccount, useUnselectOrganization, useUnselectProject, useUnsubscribeFromNewsletter, useUpdateAffiliateStatus, useUpdateDictionary, useUpdateMissionStatus, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateOrganizationMembersById, useUpdateProject, useUpdateProjectMembers, useUpdatePromoCode, useUpdateReviewerProfile, useUpdateShowcaseProject, useUpdateTag, useUpdateUser, useUploadReviewerCoverPicture, useUploadReviewerMainPicture, useUploadUserAvatar, useUser, useUserAPI, useValidateReviewerProfile, useVerifyBackupCode, useVerifyEmail, useVerifyTotp, useWriteDictionary };
@@ -1,7 +1,7 @@
1
1
  import { OAuth2Token, SessionAPI } from "@intlayer/backend";
2
2
  import { IntlayerConfig } from "@intlayer/types/config";
3
3
 
4
- //#region src/hooks/useAuth/useAuth.d.ts
4
+ //#region src/api/useAuth/useAuth.d.ts
5
5
  type SessionContextProps = {
6
6
  session: SessionAPI | null | undefined;
7
7
  setSession: (session: SessionAPI | null) => void;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAuth.d.ts","names":[],"sources":["../../../../src/api/useAuth/useAuth.ts"],"mappings":";;;;KAOK,mBAAA;EACH,OAAA,EAAS,UAAA;EACT,UAAA,GAAa,OAAA,EAAS,UAAA;EACtB,YAAA,QAAoB,OAAA,CAAQ,UAAA;EAC5B,iBAAA,QAAyB,OAAA,CAAQ,UAAA;EACjC,eAAA;EACA,iBAAA,EAAmB,WAAA;AAAA;AAAA,cAGR,OAAA;EAAW,OAAA,EAAA,WAAA;EAAA;AAAA;EAItB,OAAA,GAAU,UAAA;EACV,qBAAA,GAAwB,cAAA;AAAA,MACjB,mBAAA"}
@@ -1,6 +1,6 @@
1
1
  import { IntlayerConfig } from "@intlayer/types/config";
2
2
 
3
- //#region src/hooks/useAuth/useOAuth2.d.ts
3
+ //#region src/api/useAuth/useOAuth2.d.ts
4
4
  declare const useOAuth2: (intlayerConfiguration?: IntlayerConfig) => {
5
5
  oAuth2AccessToken: any;
6
6
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOAuth2.d.ts","names":[],"sources":["../../../../src/api/useAuth/useOAuth2.ts"],"mappings":";;;cASa,SAAA,GAAa,qBAAA,GAAwB,cAAc"}
@@ -1,7 +1,7 @@
1
1
  import { SessionAPI } from "@intlayer/backend";
2
2
  import { IntlayerConfig } from "@intlayer/types/config";
3
3
 
4
- //#region src/hooks/useAuth/useSession.d.ts
4
+ //#region src/api/useAuth/useSession.d.ts
5
5
  type UseSessionResult = {
6
6
  /** The current session: `undefined` while loading, `null` if fetched and no session, otherwise the session. */session: SessionAPI | null | undefined; /** Refetches the session and returns it (undefined while loading). */
7
7
  fetchSession: () => Promise<SessionAPI | null | undefined>; /** Alias of `fetchSession` for ergonomics. */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSession.d.ts","names":[],"sources":["../../../../src/api/useAuth/useSession.ts"],"mappings":";;;;KASY,gBAAA;iHAEV,OAAA,EAAS,UAAA,qBAFiB;EAI1B,YAAA,QAAoB,OAAA,CAAQ,UAAA,sBAFnB;EAIT,iBAAA,QAAyB,OAAA,CAAQ,UAAA,sBAFb;EAIpB,UAAA,GAAa,WAAA,EAAa,UAAA;AAAA;AAAA,cAGf,UAAA,GACX,WAAA,GAAc,UAAA,SACd,qBAAA,GAAwB,cAAA,KACvB,gBAAA"}
@@ -0,0 +1,297 @@
1
+ import { AuthAPI } from "../libs/auth.js";
2
+ import { FetcherOptions, IntlayerAPI } from "@intlayer/api";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/api/useIntlayerAPI.d.ts
6
+ type UseIntlayerAuthProps = {
7
+ options?: FetcherOptions;
8
+ intlayerConfiguration?: IntlayerConfig;
9
+ };
10
+ declare const useIntlayerOAuthOptions: (props?: UseIntlayerAuthProps) => {
11
+ options: {
12
+ cache?: RequestCache;
13
+ credentials?: RequestCredentials;
14
+ headers: HeadersInit;
15
+ integrity?: string;
16
+ keepalive?: boolean;
17
+ method?: string;
18
+ mode?: RequestMode;
19
+ priority?: RequestPriority;
20
+ redirect?: RequestRedirect;
21
+ referrer?: string;
22
+ referrerPolicy?: ReferrerPolicy;
23
+ signal?: AbortSignal | null;
24
+ window?: null;
25
+ body?: Record<string, unknown>;
26
+ params?: Record<string, string | string[] | undefined> | string[] | URLSearchParams;
27
+ };
28
+ resolvedConfig: IntlayerConfig;
29
+ };
30
+ declare const useIntlayerOAuth: (props?: UseIntlayerAuthProps) => IntlayerAPI;
31
+ declare const useIntlayerAuth: (props?: UseIntlayerAuthProps) => AuthAPI;
32
+ declare const useOrganizationAPI: (props?: UseIntlayerAuthProps) => {
33
+ getOrganizations: (filters?: import("@intlayer/backend").GetOrganizationsParams, otherOptions?: FetcherOptions) => Promise<GetOrganizationsResult>;
34
+ getOrganization: (organizationId: import("@intlayer/backend").GetOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<GetOrganizationResult>;
35
+ addOrganization: (organization: import("@intlayer/backend").AddOrganizationBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationResult>;
36
+ addOrganizationMember: (body: import("@intlayer/backend").AddOrganizationMemberBody, otherOptions?: FetcherOptions) => Promise<AddOrganizationMemberResult>;
37
+ updateOrganization: (organization: import("@intlayer/backend").UpdateOrganizationBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationResult>;
38
+ updateOrganizationMembers: (body: import("@intlayer/backend").UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
39
+ updateOrganizationMembersById: (organizationId: string, body: import("@intlayer/backend").UpdateOrganizationMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateOrganizationMembersResult>;
40
+ deleteOrganization: (otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
41
+ deleteOrganizationByIdAdmin: (organizationId: string, otherOptions?: FetcherOptions) => Promise<DeleteOrganizationResult>;
42
+ selectOrganization: (organizationId: import("@intlayer/backend").SelectOrganizationParam["organizationId"], otherOptions?: FetcherOptions) => Promise<SelectOrganizationResult>;
43
+ unselectOrganization: (otherOptions?: FetcherOptions) => Promise<UnselectOrganizationResult>;
44
+ };
45
+ declare const useProjectAPI: (props?: UseIntlayerAuthProps) => {
46
+ getProjects: (filters?: import("@intlayer/backend").GetProjectsParams, otherOptions?: FetcherOptions) => Promise<GetProjectsResult>;
47
+ addProject: (project: import("@intlayer/backend").AddProjectBody, otherOptions?: FetcherOptions) => Promise<AddProjectResult>;
48
+ updateProject: (project: import("@intlayer/backend").UpdateProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectResult>;
49
+ updateProjectMembers: (body: import("@intlayer/backend").UpdateProjectMembersBody, otherOptions?: FetcherOptions) => Promise<UpdateProjectMembersResult>;
50
+ pushProjectConfiguration: (projectConfiguration: import("@intlayer/backend").PushProjectConfigurationBody, otherOptions?: FetcherOptions) => Promise<PushProjectConfigurationResult>;
51
+ deleteProject: (otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
52
+ deleteProjectByIdAdmin: (projectId: string, otherOptions?: FetcherOptions) => Promise<DeleteProjectResult>;
53
+ selectProject: (projectId: import("@intlayer/backend").SelectProjectParam["projectId"], otherOptions?: FetcherOptions) => Promise<SelectProjectResult>;
54
+ unselectProject: (otherOptions?: FetcherOptions) => Promise<UnselectProjectResult>;
55
+ addNewAccessKey: (accessKey: import("@intlayer/backend").AddNewAccessKeyBody, otherOptions?: FetcherOptions) => Promise<AddNewAccessKeyResponse>;
56
+ deleteAccessKey: (clientId: import("@intlayer/backend").DeleteAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<DeleteAccessKeyResponse>;
57
+ refreshAccessKey: (clientId: import("@intlayer/backend").RefreshAccessKeyBody["clientId"], otherOptions?: FetcherOptions) => Promise<RefreshAccessKeyResponse>;
58
+ triggerBuild: (otherOptions?: FetcherOptions) => Promise<TriggerBuildResult>;
59
+ triggerWebhook: (webhookIndex: import("@intlayer/backend").TriggerWebhookBody["webhookIndex"], otherOptions?: FetcherOptions) => Promise<TriggerWebhookResult>;
60
+ getCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
61
+ pushCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
62
+ };
63
+ declare const useUserAPI: (props?: UseIntlayerAuthProps) => {
64
+ createUser: (user: import("@intlayer/backend").CreateUserBody, otherOptions?: FetcherOptions) => Promise<CreateUserResult>;
65
+ getUsers: (filters?: import("@intlayer/backend").GetUsersParams, otherOptions?: FetcherOptions) => Promise<GetUsersResult>;
66
+ getUserById: (userId: import("@intlayer/backend").GetUserByIdParams["userId"], otherOptions?: FetcherOptions) => Promise<GetUserByIdResult>;
67
+ getUserByAccount: (providerAccountId: string, provider: string, otherOptions?: FetcherOptions) => Promise<any>;
68
+ getUserByEmail: (email: import("@intlayer/backend").GetUserByEmailParams["email"], otherOptions?: FetcherOptions) => Promise<GetUserByEmailResult>;
69
+ updateUser: (user: import("@intlayer/backend").UpdateUserBody, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
70
+ deleteUser: (userId: string, otherOptions?: FetcherOptions) => Promise<UpdateUserResult>;
71
+ uploadAvatar: (file: File, otherOptions?: FetcherOptions) => Promise<UploadUserAvatarResult>;
72
+ getVerifyEmailStatusURL: (userId: string | import("@intlayer/backend").UserAPI["id"]) => string;
73
+ };
74
+ declare const useOAuthAPI: (props?: UseIntlayerAuthProps) => {
75
+ getOAuth2AccessToken: (otherOptions?: FetcherOptions) => Promise<GetOAuth2TokenResult>;
76
+ createCliSessionToken: (otherOptions?: FetcherOptions) => Promise<CreateCliSessionTokenResult>;
77
+ getCliSessionMe: (otherOptions?: FetcherOptions) => Promise<GetCliSessionMeResult>;
78
+ };
79
+ declare const useDictionaryAPI: (props?: UseIntlayerAuthProps) => {
80
+ getDictionaries: (filters?: import("@intlayer/backend").GetDictionariesParams, otherOptions?: FetcherOptions) => Promise<GetDictionariesResult>;
81
+ getDictionariesKeys: (otherOptions?: FetcherOptions) => Promise<GetDictionariesKeysResult>;
82
+ getDictionariesUpdateTimestamp: (otherOptions?: FetcherOptions) => Promise<GetDictionariesUpdateTimestampResult>;
83
+ getDictionary: (dictionaryKey: import("@intlayer/backend").GetDictionaryParams["dictionaryKey"], version?: import("@intlayer/backend").GetDictionaryQuery["version"], otherOptions?: FetcherOptions) => Promise<GetDictionaryResult>;
84
+ pushDictionaries: (dictionaries: import("@intlayer/backend").PushDictionariesBody["dictionaries"], otherOptions?: FetcherOptions) => Promise<PushDictionariesResult>;
85
+ addDictionary: (body: import("@intlayer/backend").AddDictionaryBody, otherOptions?: FetcherOptions) => Promise<AddDictionaryResult>;
86
+ updateDictionary: (dictionary: import("@intlayer/backend").UpdateDictionaryBody, otherOptions?: FetcherOptions) => Promise<UpdateDictionaryResult>;
87
+ deleteDictionary: (id: import("@intlayer/backend").DeleteDictionaryParam["dictionaryId"], otherOptions?: FetcherOptions) => Promise<DeleteDictionaryResult>;
88
+ };
89
+ declare const useStripeAPI: (props?: UseIntlayerAuthProps) => {
90
+ getPricing: (body?: import("@intlayer/backend").GetPricingBody, otherOptions?: FetcherOptions) => Promise<GetPricingResult>;
91
+ getSubscription: (body?: import("@intlayer/backend").GetCheckoutSessionBody, otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>;
92
+ cancelSubscription: (otherOptions?: FetcherOptions) => Promise<GetCheckoutSessionResult>;
93
+ getInvoices: (otherOptions?: FetcherOptions) => Promise<GetInvoicesResult>;
94
+ getPaymentMethod: (otherOptions?: FetcherOptions) => Promise<GetPaymentMethodResult>;
95
+ createPortalSession: (otherOptions?: FetcherOptions) => Promise<CreatePortalSessionResult>;
96
+ grantAffiliateAccess: (body: import("@intlayer/backend").GrantAffiliateAccessBody, otherOptions?: FetcherOptions) => Promise<GrantAffiliateAccessResult>;
97
+ getAffiliates: (params?: import("@intlayer/backend").GetAffiliatesParams, otherOptions?: FetcherOptions) => Promise<GetAffiliatesResult>;
98
+ getAffiliateById: ({
99
+ id
100
+ }: {
101
+ id: string;
102
+ }, otherOptions?: FetcherOptions) => Promise<GetAffiliateByIdResult>;
103
+ getAffiliate: (otherOptions?: FetcherOptions) => Promise<GetAffiliateResult>;
104
+ getAffiliateAccountSession: (otherOptions?: FetcherOptions) => Promise<GetAffiliateAccountSessionResult>;
105
+ getAffiliateOnboardingLink: (params?: {
106
+ returnUrl?: string;
107
+ }, otherOptions?: FetcherOptions) => Promise<GetAffiliateOnboardingLinkResult>;
108
+ getAffiliateStats: (otherOptions?: FetcherOptions) => Promise<GetAffiliateStatsResult>;
109
+ getAffiliateInvitations: (params?: import("@intlayer/backend").GetAffiliatesParams, otherOptions?: FetcherOptions) => Promise<GetAffiliateInvitationsResult>;
110
+ sendAffiliateInvitation: (body: import("@intlayer/backend").SendAffiliateInvitationBody, otherOptions?: FetcherOptions) => Promise<SendAffiliateInvitationResult>;
111
+ getAffiliateInvitation: ({
112
+ token
113
+ }: {
114
+ token: string;
115
+ }, otherOptions?: FetcherOptions) => Promise<GetAffiliateInvitationResult>;
116
+ acceptAffiliateInvitation: ({
117
+ token,
118
+ country,
119
+ stripeAccountType
120
+ }: {
121
+ token: string;
122
+ country?: string;
123
+ stripeAccountType?: "express" | "standard";
124
+ }, otherOptions?: FetcherOptions) => Promise<AcceptAffiliateInvitationResult>;
125
+ updateAffiliateStatus: ({
126
+ id
127
+ }: {
128
+ id: string;
129
+ }, body: import("@intlayer/backend").UpdateAffiliateStatusBody, otherOptions?: FetcherOptions) => Promise<UpdateAffiliateStatusResult>;
130
+ getPromoCodeById: (id: string, otherOptions?: FetcherOptions) => Promise<GetPromoCodeByIdResult>;
131
+ getPromoCodes: (params?: {
132
+ affiliateId?: string;
133
+ }, otherOptions?: FetcherOptions) => Promise<GetPromoCodesResult>;
134
+ createPromoCode: (body: import("@intlayer/backend").CreatePromoCodeBody, otherOptions?: FetcherOptions) => Promise<CreatePromoCodeResult>;
135
+ updatePromoCode: ({
136
+ id,
137
+ ...body
138
+ }: {
139
+ id: string;
140
+ } & import("@intlayer/backend").UpdatePromoCodeBody, otherOptions?: FetcherOptions) => Promise<UpdatePromoCodeResult>;
141
+ deletePromoCode: ({
142
+ id
143
+ }: {
144
+ id: string;
145
+ }, otherOptions?: FetcherOptions) => Promise<DeletePromoCodeResult>;
146
+ getAffiliatePromoCode: (referralCode: string, otherOptions?: FetcherOptions) => Promise<any>;
147
+ };
148
+ declare const useAiAPI: (props?: UseIntlayerAuthProps) => {
149
+ customQuery: (body?: import("@intlayer/backend").CustomQueryBody, otherOptions?: FetcherOptions) => Promise<CustomQueryResult>;
150
+ translateJSON: (body?: import("@intlayer/backend").TranslateJSONBody, otherOptions?: FetcherOptions) => Promise<TranslateJSONResult>;
151
+ auditContentDeclaration: (body?: import("@intlayer/backend").AuditContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationResult>;
152
+ auditContentDeclarationField: (body?: import("@intlayer/backend").AuditContentDeclarationFieldBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationFieldResult>;
153
+ auditContentDeclarationMetadata: (body?: import("@intlayer/backend").AuditContentDeclarationMetadataBody, otherOptions?: FetcherOptions) => Promise<AuditContentDeclarationMetadataResult>;
154
+ auditTag: (body?: import("@intlayer/backend").AuditTagBody, otherOptions?: FetcherOptions) => Promise<AuditTagResult>;
155
+ askDocQuestion: (body?: import("@intlayer/api").AskDocQuestionBody, otherOptions?: FetcherOptions) => Promise<void>;
156
+ chat: (body?: import("@intlayer/api").ChatBody, otherOptions?: FetcherOptions) => Promise<void>;
157
+ autocomplete: (body?: import("@intlayer/api").AutocompleteBody, otherOptions?: FetcherOptions) => Promise<AutocompleteResponse>;
158
+ getDiscussions: (params?: import("@intlayer/backend").GetDiscussionsParams, otherOptions?: FetcherOptions) => Promise<GetDiscussionsResult>;
159
+ };
160
+ declare const useAuditAPI: (props?: UseIntlayerAuthProps) => {
161
+ discoverUrls: (params?: import("@intlayer/api").DiscoverUrlsParams, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").DiscoverUrlsResult>;
162
+ scanUrl: (body?: import("@intlayer/api").ScanUrlBody, otherOptions?: FetcherOptions) => Promise<void>;
163
+ startRecursiveAudit: (body?: import("@intlayer/api").StartRecursiveAuditBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").StartRecursiveAuditResult>;
164
+ getRecursiveAuditStatus: (params?: import("@intlayer/api").GetRecursiveAuditStatusParams, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").GetRecursiveAuditStatusResult>;
165
+ cancelRecursiveAudit: (params?: import("@intlayer/api").RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
166
+ success: boolean;
167
+ }>;
168
+ pauseRecursiveAudit: (params?: import("@intlayer/api").RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
169
+ success: boolean;
170
+ }>;
171
+ resumeRecursiveAudit: (params?: import("@intlayer/api").RecursiveAuditJobParams, otherOptions?: FetcherOptions) => Promise<{
172
+ success: boolean;
173
+ }>;
174
+ };
175
+ declare const useTagAPI: (props?: UseIntlayerAuthProps) => {
176
+ getTags: (filters?: import("@intlayer/backend").GetTagsParams, otherOptions?: FetcherOptions) => Promise<GetTagsResult>;
177
+ addTag: (tag: import("@intlayer/backend").AddTagBody, otherOptions?: FetcherOptions) => Promise<AddTagResult>;
178
+ updateTag: (tagId: import("@intlayer/backend").UpdateTagParams["tagId"], tag: import("@intlayer/backend").UpdateTagBody, otherOptions?: FetcherOptions) => Promise<UpdateTagResult>;
179
+ deleteTag: (tagId: import("@intlayer/backend").DeleteTagParams["tagId"], otherOptions?: FetcherOptions) => Promise<DeleteTagResult>;
180
+ };
181
+ declare const useSearchAPI: (props?: UseIntlayerAuthProps) => {
182
+ searchDoc: (params?: import("@intlayer/backend").SearchDocUtilParams, otherOptions?: FetcherOptions) => Promise<SearchDocUtilResult>;
183
+ };
184
+ declare const useEditorAPI: (props?: UseIntlayerAuthProps) => {
185
+ getDictionaries: (otherOptions?: FetcherOptions) => Promise<GetEditorDictionariesResult>;
186
+ getConfiguration: (otherOptions?: FetcherOptions) => Promise<GetConfigurationResult>;
187
+ writeDictionary: (body: WriteContentDeclarationBody, otherOptions?: FetcherOptions) => Promise<WriteContentDeclarationResult>;
188
+ };
189
+ declare const useNewsletterAPI: (props?: UseIntlayerAuthProps) => {
190
+ subscribeToNewsletter: (body: import("@intlayer/backend").NewsletterSubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
191
+ unsubscribeFromNewsletter: (body: import("@intlayer/backend").NewsletterUnsubscriptionBody, otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
192
+ getNewsletterStatus: (otherOptions?: FetcherOptions) => Promise<NewsletterSubscriptionResult>;
193
+ };
194
+ declare const useGithubAPI: (props?: UseIntlayerAuthProps) => {
195
+ getAuthUrl: (redirectUri: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitHubGetAuthUrlResult>;
196
+ authenticate: (code: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitHubAuthCallbackResult>;
197
+ getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitHubListReposResult>;
198
+ checkIntlayerConfig: (token: string | null | undefined, owner: string, repository: string, branch?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitHubCheckConfigResult>;
199
+ getConfigFile: (token: string | null | undefined, owner: string, repository: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitHubGetConfigFileResult>;
200
+ getToken: (otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitHubGetTokenResult>;
201
+ };
202
+ declare const useGitlabAPI: (props?: UseIntlayerAuthProps) => {
203
+ getAuthUrl: (redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitLabGetAuthUrlResult>;
204
+ authenticate: (code: string, redirectUri: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitLabAuthCallbackResult>;
205
+ getProjects: (token?: string | null, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitLabListProjectsResult>;
206
+ checkIntlayerConfig: (token: string | null | undefined, projectId: number, branch?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitLabCheckConfigResult>;
207
+ getConfigFile: (token: string | null | undefined, projectId: number, branch?: string, path?: string, instanceUrl?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").GitLabGetConfigFileResult>;
208
+ };
209
+ declare const useBitbucketAPI: (props?: UseIntlayerAuthProps) => {
210
+ getAuthUrl: (redirectUri: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").BitbucketGetAuthUrlResult>;
211
+ authenticate: (code: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").BitbucketAuthCallbackResult>;
212
+ getRepositories: (token?: string | null, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").BitbucketListReposResult>;
213
+ checkIntlayerConfig: (token: string | null | undefined, workspace: string, repoSlug: string, branch?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").BitbucketCheckConfigResult>;
214
+ getConfigFile: (token: string | null | undefined, workspace: string, repoSlug: string, branch?: string, path?: string, otherOptions?: FetcherOptions) => Promise<import("@intlayer/api").BitbucketGetConfigFileResult>;
215
+ };
216
+ declare const useShowcaseProjectAPI: (props?: UseIntlayerAuthProps) => {
217
+ getShowcaseProjects: (query?: import("@intlayer/api").ShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectsResult>;
218
+ getShowcaseProjectById: (projectId: import("@intlayer/backend").GetShowcaseProjectByIdParams["projectId"], otherOptions?: FetcherOptions) => Promise<GetShowcaseProjectByIdResult>;
219
+ getOtherShowcaseProjects: (query: import("@intlayer/api").OtherShowcaseProjectsQuery, otherOptions?: FetcherOptions) => Promise<GetOtherShowcaseProjectsResult>;
220
+ submitShowcaseProject: (body: import("@intlayer/backend").SubmitShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<SubmitShowcaseProjectResult>;
221
+ toggleShowcaseUpvote: (body: import("@intlayer/backend").ToggleShowcaseUpvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseUpvoteResult>;
222
+ toggleShowcaseDownvote: (body: import("@intlayer/backend").ToggleShowcaseDownvoteBody, otherOptions?: FetcherOptions) => Promise<ToggleShowcaseDownvoteResult>;
223
+ deleteShowcaseProject: (projectId: import("@intlayer/backend").GetShowcaseProjectByIdParams["projectId"], otherOptions?: FetcherOptions) => Promise<{
224
+ data: {
225
+ success: boolean;
226
+ };
227
+ }>;
228
+ updateShowcaseProject: (projectId: import("@intlayer/backend").GetShowcaseProjectByIdParams["projectId"], body: import("@intlayer/backend").UpdateShowcaseProjectBody, otherOptions?: FetcherOptions) => Promise<UpdateShowcaseProjectResult>;
229
+ };
230
+ declare const useTranslateAPI: (props?: UseIntlayerAuthProps) => {
231
+ translateDictionaries: (body: import("@intlayer/backend").TranslateDictionariesBody, otherOptions?: FetcherOptions) => Promise<import("@intlayer/backend").TranslateDictionariesResult>;
232
+ pauseTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
233
+ data: {
234
+ jobId: string;
235
+ };
236
+ }>;
237
+ resumeTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
238
+ data: {
239
+ jobId: string;
240
+ };
241
+ }>;
242
+ stopTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
243
+ data: {
244
+ jobId: string;
245
+ };
246
+ }>;
247
+ retryTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
248
+ data: {
249
+ jobId: string;
250
+ };
251
+ }>;
252
+ restartTranslationJob: (jobId: string, otherOptions?: FetcherOptions) => Promise<{
253
+ data: {
254
+ jobId: string;
255
+ };
256
+ }>;
257
+ };
258
+ declare const useReviewerAPI: (props?: UseIntlayerAuthProps) => {
259
+ getMarketplace: (params?: import("@intlayer/backend").GetMarketplaceQuery, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
260
+ getPriceDistribution: (params?: Pick<import("@intlayer/backend").GetMarketplaceQuery, "fromLocale" | "toLocale" | "minRating" | "categories">, otherOptions?: FetcherOptions) => Promise<ResponseData<PriceDistributionData>>;
261
+ getReviewerById: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
262
+ getReviewerReviews: (reviewerId: string, params?: {
263
+ page?: number;
264
+ pageSize?: number;
265
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerReviewAPI>>;
266
+ getMyReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
267
+ registerAsReviewer: (body: import("@intlayer/backend").RegisterReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
268
+ updateReviewerProfile: (body: import("@intlayer/backend").UpdateReviewerBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
269
+ deleteReviewerProfile: (otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
270
+ estimateMission: (body: import("@intlayer/backend").EstimateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<MissionEstimate>>;
271
+ createMission: (body: import("@intlayer/backend").CreateMissionBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
272
+ getMyMissions: (params?: {
273
+ role?: "client" | "reviewer";
274
+ page?: number;
275
+ pageSize?: number;
276
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<TranslationMissionAPI>>;
277
+ getMissionById: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
278
+ updateMissionStatus: (missionId: string, body: import("@intlayer/backend").UpdateMissionStatusBody, otherOptions?: FetcherOptions) => Promise<ResponseData<TranslationMissionAPI>>;
279
+ submitReview: (missionId: string, body: import("@intlayer/backend").SubmitReviewBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerReviewAPI>>;
280
+ contactReviewer: (reviewerId: string, body: {
281
+ message: string;
282
+ }, otherOptions?: FetcherOptions) => Promise<ResponseData<null>>;
283
+ getChatHistory: (missionId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerMessageAPI[]>>;
284
+ sendMessage: (missionId: string, body: import("@intlayer/backend").SendMessageBody, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerMessageAPI>>;
285
+ getChatStreamUrl: (missionId: string) => string;
286
+ uploadMainPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
287
+ uploadCoverPicture: (file: File, otherOptions?: FetcherOptions) => Promise<UploadReviewerPictureResult>;
288
+ validateReviewerProfile: (reviewerId: string, otherOptions?: FetcherOptions) => Promise<ResponseData<ReviewerProfileAPI>>;
289
+ getAdminReviewers: (params?: {
290
+ page?: number;
291
+ pageSize?: number;
292
+ status?: string;
293
+ }, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
294
+ };
295
+ //#endregion
296
+ export { UseIntlayerAuthProps, useAiAPI, useAuditAPI, useBitbucketAPI, useDictionaryAPI, useEditorAPI, useGithubAPI, useGitlabAPI, useIntlayerAuth, useIntlayerOAuth, useIntlayerOAuthOptions, useNewsletterAPI, useOAuthAPI, useOrganizationAPI, useProjectAPI, useReviewerAPI, useSearchAPI, useShowcaseProjectAPI, useStripeAPI, useTagAPI, useTranslateAPI, useUserAPI };
297
+ //# sourceMappingURL=useIntlayerAPI.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIntlayerAPI.d.ts","names":[],"sources":["../../../src/api/useIntlayerAPI.ts"],"mappings":";;;;;KA8BY,oBAAA;EACV,OAAA,GAAU,cAAA;EACV,qBAAA,GAAwB,cAAc;AAAA;AAAA,cAG3B,uBAAA,GAA2B,KAAA,GAAQ,oBAAA;;;;;;;;;;;;;;;;;;;;cAsBnC,gBAAA,GAAoB,KAAA,GAAQ,oBAAA,KAAuB,WAG/D;AAAA,cAEY,eAAA,GAAmB,KAAA,GAAQ,oBAAA,KAAuB,OAI9D;AAAA,cAEY,kBAAA,GAAsB,KAAA,GAAQ,oBAAA;2DAtD7B,sBAAA,EAAA,YAAA,GAAuC,cAAA,KAAA,OAAA,CAChC,sBAAA;uHAEF,cAAA,KAAA,OAAA,CAA6B,qBAAA;kGAEpB,cAAA,KAAA,OAAA,CACxB,qBAAA;sGACyB,cAAA,KAAA,OAAA,CACxB,2BAAA;wGAEF,cAAA,KAA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C9C,YAAA;qDAE0B,cAAA,KAAA,OAAA,CAG3C,YAAA,CAAa,kBAAA;qGACyB,cAAA,KAAA,OAAA,CACzC,YAAA,CAAa,kBAAA;;iDAIH,cAAA,KAAA,OAAA,CAA6B,2BAAA;kDAEzC,cAAA,KAAA,OAAA,CAE0B,2BAAA;+DAC4B,cAAA,KAAA,OAAA,CACzC,YAAA,CAAa,kBAAA;;;;;oBAIuB,cAAA,KAAA,OAAA,CACxC,iBAAA,CAAiB,kBAAA;AAAA"}
@@ -1,4 +1,4 @@
1
- //#region src/hooks/useUser/index.d.ts
1
+ //#region src/api/useUser/index.d.ts
2
2
  declare const useUser: () => {
3
3
  isAuthenticated: boolean;
4
4
  isUnauthenticated: boolean;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/api/useUser/index.ts"],"mappings":";cAKa,OAAA;;;;2BAuBZ,OAAA;gBAAA,OAAA;AAAA"}
@@ -9,7 +9,6 @@ import { VariantProps } from "class-variance-authority";
9
9
  declare enum BadgeColor {
10
10
  PRIMARY = "primary",
11
11
  SECONDARY = "secondary",
12
- DESTRUCTIVE = "destructive",
13
12
  SUCCESS = "success",
14
13
  ERROR = "error",
15
14
  NEUTRAL = "neutral",
@@ -42,8 +41,8 @@ declare enum BadgeSize {
42
41
  * @description Defines the styling variants for different badge combinations
43
42
  */
44
43
  declare const badgeVariants: (props?: {
45
- color?: "text" | "error" | "custom" | "primary" | "secondary" | "destructive" | "success" | "neutral" | "light" | "dark";
46
- variant?: "none" | "default" | "outline" | "hoverable";
44
+ color?: "error" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark" | "success" | "custom";
45
+ variant?: "default" | "none" | "outline" | "hoverable";
47
46
  size?: "sm" | "md" | "lg";
48
47
  } & import("class-variance-authority/types").ClassProp) => string;
49
48
  /**
@@ -79,7 +78,7 @@ type BadgeVariantProps = VariantProps<typeof badgeVariants>;
79
78
  * <Badge>New</Badge>
80
79
  *
81
80
  * // Colored badge
82
- * <Badge color={BadgeColor.DESTRUCTIVE}>Error</Badge>
81
+ * <Badge color={BadgeColor.ERROR}>Error</Badge>
83
82
  *
84
83
  * // Clickable badge
85
84
  * <Badge clickable onClick={() => console.log('clicked')}>
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/Badge/index.tsx"],"mappings":";;;;;;AAQA;;aAAY,UAAA;EACV,OAAA;EACA,SAAA;EACA,WAAA;EACA,OAAA;EACA,KAAA;EACA,OAAA;EACA,KAAA;EACA,IAAA;EACA,IAAA;EACA,MAAA;AAAA;;AAAM;AAOR;;aAAY,YAAA;EACV,OAAA;EACA,IAAA;EACA,OAAA;EACA,SAAA;AAAA;;AAAS;AAOX;;aAAY,SAAA;EACV,KAAA;EACA,MAAA;EACA,KAAA;AAAA;;AAAK;AAOP;;cAAa,aAAA,GAAa,KAAA;;;;;;;;;KAoDd,UAAA,GAAa,cAAA,CAAe,WAAA;EAAlB,8CAEpB,QAAA,GAAW,KAAA,CAAM,SAAA,EAFqB;EAItC,KAAA,GAAQ,UAAA,MAAgB,UAAA,IAFb;EAIX,OAAA,GAAU,YAAA,MAAkB,YAAA,IAFJ;EAIxB,IAAA,GAAO,SAAA,MAAe,SAAA,IAFM;EAI5B,SAAA,YAFsB;EAItB,WAAA,YAEkB;EAAlB,OAAA,IAAW,KAAA,EAAO,KAAA,CAAM,UAAA,CAAW,WAAA,YAAD;EAElC,SAAA,eAhBsC;EAkBtC,YAAA,WAhBW;EAkBX,IAAA,oCAhBA;EAkBA,QAAA;AAAA;;;;KAMU,iBAAA,GAAoB,YAAY,QAAQ,aAAA;;;;;;;;;;;;;;;AAN1C;AAMV;;;;AAAiE;AA2BjE;;;;;cAAa,KAAA,EAAO,KAAA,CAAM,EAAE,CAAC,UAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/Badge/index.tsx"],"mappings":";;;;;;AAQA;;aAAY,UAAA;EACV,OAAA;EACA,SAAA;EACA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AAA;EAKA;;;;EAAA,SAAA,GAAY,SAAA;EAeV;;;;EAVF,SAAA;EAW+B;AA4BjC;;;EAlCE,qBAAA;EAkCyC;;;EA9BzC,QAAA;AAAA,IACE,YAAA,QAAoB,kBAAA,IACtB,cAAA,CAAe,gBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BJ,UAAA,EAAY,EAAE,CAAC,eAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/Breadcrumb/index.tsx"],"mappings":";;;;;;;;;cA0EM,kBAAA,GAAkB,KAAA;;;;;;;KA4InB,sBAAA;;;;EAIH,IAAA;;;;EAIA,IAAA;EAIA;;AAAO;EAAP,OAAA;AAAA;;;AAQ0D;AAE5D;;KAFY,cAAA,YAA0B,sBAAsB;AAAA,KAEhD,eAAA;EASF;;;EALR,KAAA,EAAO,cAAA;EAkCe;;;;EA7BtB,KAAA,GAAQ,SAAA,MAAe,SAAA;EA8BT;;;EA1Bd,MAAA,GAAS,aAAA;EAJD;;;;EASR,WAAA;EAKA;;;;EAAA,SAAA,GAAY,SAAA;EAeV;;;;EAVF,SAAA;EAW+B;AA4BjC;;;EAlCE,qBAAA;EAkCyC;;;EA9BzC,QAAA;AAAA,IACE,YAAA,QAAoB,kBAAA,IACtB,cAAA,CAAe,gBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BJ,UAAA,EAAY,EAAE,CAAC,eAAA"}
@@ -36,7 +36,6 @@ declare enum ButtonVariant {
36
36
  declare enum ButtonColor {
37
37
  PRIMARY = "primary",
38
38
  SECONDARY = "secondary",
39
- DESTRUCTIVE = "destructive",
40
39
  NEUTRAL = "neutral",
41
40
  LIGHT = "light",
42
41
  DARK = "dark",
@@ -61,9 +60,9 @@ declare enum ButtonTextAlign {
61
60
  */
62
61
  declare const buttonVariants: (props?: {
63
62
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl";
64
- color?: "text" | "error" | "custom" | "primary" | "secondary" | "destructive" | "success" | "neutral" | "light" | "dark" | "card" | "current" | "text-inverse";
65
- roundedSize?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "full";
66
- variant?: "input" | "none" | "default" | "outline" | "hoverable" | "link" | "invisible-link" | "fade";
63
+ color?: "error" | "text" | "primary" | "secondary" | "neutral" | "card" | "light" | "dark" | "current" | "text-inverse" | "success" | "custom";
64
+ roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "4xl" | "5xl" | "full";
65
+ variant?: "input" | "default" | "none" | "outline" | "link" | "invisible-link" | "hoverable" | "fade";
67
66
  textAlign?: "left" | "center" | "right";
68
67
  isFullWidth?: boolean;
69
68
  } & import("class-variance-authority/types").ClassProp) => string;
@@ -148,10 +147,10 @@ type ButtonProps = DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HT
148
147
  * Save
149
148
  * </Button>
150
149
  *
151
- * // Destructive action button
150
+ * // Error action button
152
151
  * <Button
153
152
  * variant={`${ButtonVariant.OUTLINE}`}
154
- * color={ButtonColor.DESTRUCTIVE}
153
+ * color={ButtonColor.ERROR}
155
154
  * label="Delete item permanently"
156
155
  * aria-describedby="delete-warning"
157
156
  * >
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","names":[],"sources":["../../../../src/components/Button/Button.tsx"],"mappings":";;;;;;;AAUA;aAAY,UAAA;EACV,EAAA;EACA,EAAA;EACA,EAAA;EACA,EAAA;EACA,EAAA;EACA,OAAA;EACA,OAAA;EACA,OAAA;EACA,OAAA;AAAA;;;AAAO;aAyBG,aAAA;EACV,OAAA;EACA,IAAA;EACA,OAAA;EACA,IAAA;EACA,cAAA;EACA,SAAA;EACA,IAAA;EACA,KAAA;AAAA;;;;aAMU,WAAA;EACV,OAAA;EACA,SAAA;EACA,WAAA;EACA,OAAA;EACA,KAAA;EACA,IAAA;EACA,IAAA;EACA,IAAA;EACA,YAAA;EACA,OAAA;EACA,KAAA;EACA,OAAA;EACA,MAAA;AAAA;;;;aAMU,eAAA;EACV,IAAA;EACA,MAAA;EACA,KAAA;AAAA;;;;cAMW,cAAA,GAAc,KAAA;;;;;;;;;;;KAmJf,WAAA,GAAc,iBAAA,CACxB,oBAAA,CAAqB,iBAAA,GACrB,iBAAA,IAEA,YAAA,QAAoB,cAAA;;;;;EAKlB,KAAA;EATQ;;;EAcR,IAAA,GAAO,EAAA,GAAK,UAAA;EAbd;;;EAkBE,SAAA,GAAY,EAAA,GAAK,UAAA;EAfnB;;;EAoBE,aAAA;EALiB;;;EAUjB,SAAA;EA5BF;;;EAiCE,QAAA;EA9BkB;;;EAmClB,UAAA;EAzBY;;;EA8BZ,WAAA;EApBA;;;EAyBA,kBAAA;EALA;;;EAUA,eAAA;EAkBA;;AAAc;EAbd,eAAA;EAwKH;;;EA3JG,cAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyCS,MAAA,EAAQ,EAAE,CAAC,WAAA"}
1
+ {"version":3,"file":"Button.d.ts","names":[],"sources":["../../../../src/components/Button/Button.tsx"],"mappings":";;;;;;;AAUA;aAAY,UAAA;EACV,EAAA;EACA,EAAA;EACA,EAAA;EACA,EAAA;EACA,EAAA;EACA,OAAA;EACA,OAAA;EACA,OAAA;EACA,OAAA;AAAA;;;AAAO;aAyBG,aAAA;EACV,OAAA;EACA,IAAA;EACA,OAAA;EACA,IAAA;EACA,cAAA;EACA,SAAA;EACA,IAAA;EACA,KAAA;AAAA;;;;aAMU,WAAA;EACV,OAAA;EACA,SAAA;EACA,OAAA;EACA,KAAA;EACA,IAAA;EACA,IAAA;EACA,IAAA;EACA,YAAA;EACA,OAAA;EACA,KAAA;EACA,OAAA;EACA,MAAA;AAAA;;;;aAMU,eAAA;EACV,IAAA;EACA,MAAA;EACA,KAAA;AAAA;;;;cAMW,cAAA,GAAc,KAAA;;;;;;;;;;;KAiJf,WAAA,GAAc,iBAAA,CACxB,oBAAA,CAAqB,iBAAA,GACrB,iBAAA,IAEA,YAAA,QAAoB,cAAA;;;;;EAKlB,KAAA;EATQ;;;EAcR,IAAA,GAAO,EAAA,GAAK,UAAA;EAbd;;;EAkBE,SAAA,GAAY,EAAA,GAAK,UAAA;EAfnB;;;EAoBE,aAAA;EALiB;;;EAUjB,SAAA;EA5BF;;;EAiCE,QAAA;EA9BkB;;;EAmClB,UAAA;EAzBY;;;EA8BZ,WAAA;EApBA;;;EAyBA,kBAAA;EALA;;;EAUA,eAAA;EAkBA;;AAAc;EAbd,eAAA;EAwKH;;;EA3JG,cAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyCS,MAAA,EAAQ,EAAE,CAAC,WAAA"}
@@ -5,7 +5,7 @@ import { VariantProps } from "class-variance-authority";
5
5
  declare const collapsibleTableVariants: (props?: {
6
6
  size?: "sm" | "md" | "lg" | "xl" | "full";
7
7
  variant?: "default" | "ghost" | "dark" | "outlined";
8
- spacing?: "none" | "sm" | "md" | "lg" | "auto";
8
+ spacing?: "sm" | "md" | "lg" | "auto" | "none";
9
9
  } & import("class-variance-authority/types").ClassProp) => string;
10
10
  interface CollapsibleTableProps extends Omit<HTMLAttributes<HTMLElement>, 'title'>, VariantProps<typeof collapsibleTableVariants> {
11
11
  /** Table title displayed in the header */
@@ -27,7 +27,7 @@ declare const Command: {
27
27
  ref?: React.Ref<HTMLInputElement>;
28
28
  } & {
29
29
  asChild?: boolean;
30
- }, "key" | "asChild" | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, "type" | "onChange" | "value"> & {
30
+ }, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement> | "asChild">, "type" | "onChange" | "value"> & {
31
31
  value?: string;
32
32
  onValueChange?: (search: string) => void;
33
33
  } & import("react").RefAttributes<HTMLInputElement>>;
@@ -7,14 +7,14 @@ import { VariantProps } from "class-variance-authority";
7
7
  * Provides flexible styling options for background, padding, borders, and layout
8
8
  */
9
9
  declare const containerVariants: (props?: {
10
- roundedSize?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "full";
11
- transparency?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full";
12
- padding?: "none" | "sm" | "md" | "lg" | "xl" | "2xl";
10
+ roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "4xl" | "full";
11
+ transparency?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "full";
12
+ padding?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
13
13
  separator?: "both" | "without" | "x" | "y";
14
14
  border?: "with" | "none";
15
15
  borderColor?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "card" | "warning";
16
16
  background?: "with" | "none" | "hoverable";
17
- gap?: "none" | "sm" | "md" | "lg" | "xl" | "2xl";
17
+ gap?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
18
18
  } & import("class-variance-authority/types").ClassProp) => string;
19
19
  /** Available rounded corner sizes for the container */
20
20
  declare enum ContainerRoundedSize {