@intlayer/design-system 9.5.7 → 9.5.9-canary.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 (85) hide show
  1. package/dist/esm/api/index.mjs +2 -2
  2. package/dist/esm/api/useAuth/useOAuth2.mjs +2 -2
  3. package/dist/esm/api/useAuth/useSession.mjs +1 -1
  4. package/dist/esm/api/useUser/index.mjs +1 -1
  5. package/dist/esm/components/Accordion/Accordion.mjs +1 -1
  6. package/dist/esm/components/Avatar/index.mjs +1 -1
  7. package/dist/esm/components/Badge/index.mjs +1 -1
  8. package/dist/esm/components/Breadcrumb/index.mjs +2 -2
  9. package/dist/esm/components/Browser/Browser.mjs +1 -1
  10. package/dist/esm/components/Button/Button.mjs +1 -1
  11. package/dist/esm/components/Carousel/index.mjs +1 -1
  12. package/dist/esm/components/CollapsibleTable/CollapsibleTable.mjs +2 -2
  13. package/dist/esm/components/Command/index.mjs +1 -1
  14. package/dist/esm/components/Container/index.mjs +1 -1
  15. package/dist/esm/components/ContentEditor/ContentEditor.mjs +1 -1
  16. package/dist/esm/components/ContentEditor/ContentEditorInput.mjs +1 -1
  17. package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs +2 -2
  18. package/dist/esm/components/CopyButton/index.mjs +1 -1
  19. package/dist/esm/components/CopyToClipboard/index.mjs +1 -1
  20. package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +3 -3
  21. package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +1 -1
  22. package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +7 -7
  23. package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +2 -2
  24. package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +2 -2
  25. package/dist/esm/components/DictionaryFieldEditor/NodeEditor.mjs +2 -2
  26. package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +3 -3
  27. package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs +2 -2
  28. package/dist/esm/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs +1 -1
  29. package/dist/esm/components/EditableField/EditableFieldLayout.mjs +1 -1
  30. package/dist/esm/components/Form/elements/OTPElement.mjs +1 -1
  31. package/dist/esm/components/HideShow/index.mjs +1 -1
  32. package/dist/esm/components/IDE/FileTree.mjs +1 -1
  33. package/dist/esm/components/IDE/MarkDownRender.mjs +1 -1
  34. package/dist/esm/components/Input/Checkbox.mjs +1 -1
  35. package/dist/esm/components/Input/Input.mjs +1 -1
  36. package/dist/esm/components/Input/InputPassword.mjs +1 -1
  37. package/dist/esm/components/Input/OTPInput.mjs +2 -2
  38. package/dist/esm/components/Input/Radio.mjs +1 -1
  39. package/dist/esm/components/Input/SearchInput.mjs +1 -1
  40. package/dist/esm/components/Link/Link.mjs +2 -2
  41. package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +2 -2
  42. package/dist/esm/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +1 -1
  43. package/dist/esm/components/MarkDownRender/MarkDownIframe.mjs +1 -1
  44. package/dist/esm/components/MarkdownEditor/generative/AICompletionCommands.mjs +1 -1
  45. package/dist/esm/components/MarkdownEditor/generative/AISelector.mjs +2 -2
  46. package/dist/esm/components/MarkdownEditor/generative/AISelectorCommands.mjs +1 -1
  47. package/dist/esm/components/MarkdownEditor/generative/GenerativeMenuSwitch.mjs +1 -1
  48. package/dist/esm/components/MarkdownEditor/selectors/ColorSelector.mjs +1 -1
  49. package/dist/esm/components/MarkdownEditor/selectors/LinkSelector.mjs +1 -1
  50. package/dist/esm/components/MarkdownEditor/selectors/NodeSelector.mjs +1 -1
  51. package/dist/esm/components/MarkdownEditor/selectors/TextButtons.mjs +1 -1
  52. package/dist/esm/components/MarkdownEditor/slashCommand.mjs +1 -1
  53. package/dist/esm/components/Modal/Modal.mjs +4 -4
  54. package/dist/esm/components/Navbar/MobileNavbar.mjs +1 -1
  55. package/dist/esm/components/Pagination/Pagination.mjs +3 -3
  56. package/dist/esm/components/Pattern/GridDistortionPattern.mjs +1 -1
  57. package/dist/esm/components/RightDrawer/RightDrawer.mjs +4 -4
  58. package/dist/esm/components/Select/Multiselect.mjs +1 -1
  59. package/dist/esm/components/Select/Select.mjs +1 -1
  60. package/dist/esm/components/Status/index.mjs +1 -1
  61. package/dist/esm/components/SwitchSelector/SwitchSelector.mjs +1 -1
  62. package/dist/esm/components/SwitchSelector/VerticalSwitchSelector.mjs +1 -1
  63. package/dist/esm/components/Tab/Tab.mjs +2 -2
  64. package/dist/esm/components/TabSelector/TabSelector.mjs +1 -1
  65. package/dist/esm/components/Table/ExpandButton.mjs +1 -1
  66. package/dist/esm/components/Tag/index.mjs +1 -1
  67. package/dist/esm/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs +1 -1
  68. package/dist/esm/components/ThemeSwitcherDropDown/MobileThemeSwitcher.mjs +1 -1
  69. package/dist/esm/components/Toaster/Toast.mjs +2 -2
  70. package/dist/esm/components/index.mjs +3 -3
  71. package/dist/esm/hooks/index.mjs +9 -9
  72. package/dist/esm/hooks/useRemoteMcpTools.mjs +1 -1
  73. package/dist/esm/hooks/useScrollDetection.mjs +1 -1
  74. package/dist/esm/hooks/useScrollY.mjs +1 -1
  75. package/dist/esm/libs/auth.mjs +1 -1
  76. package/dist/esm/providers/ReactQueryProvider.mjs +1 -1
  77. package/dist/esm/providers/index.mjs +1 -1
  78. package/dist/esm/routes.mjs +1 -4
  79. package/dist/esm/routes.mjs.map +1 -1
  80. package/dist/esm/structured-data/index.mjs +5 -5
  81. package/dist/esm/utils/index.mjs +1 -1
  82. package/dist/esm/webmcp/index.mjs +1 -1
  83. package/dist/types/routes.d.ts +0 -3
  84. package/dist/types/routes.d.ts.map +1 -1
  85. package/package.json +17 -17
@@ -1,13 +1,12 @@
1
1
  import { useAiAPI, useAnalyticsAPI, useAssetAPI, useAuditAPI, useBitbucketAPI, useDictionaryAPI, useEditorAPI, useEnvironmentAPI, useGithubAPI, useGitlabAPI, useIntlayerAuth, useIntlayerOAuth, useIntlayerOAuthOptions, useNewsletterAPI, useOAuthAPI, useOrganizationAPI, useProjectAPI, useReviewerAPI, useSearchAPI, useShowcaseProjectAPI, useStripeAPI, useTagAPI, useTranslateAPI, useUserAPI } from "./useIntlayerAPI.mjs";
2
- 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.mjs";
3
2
  import { useOAuth2 } from "./useAuth/useOAuth2.mjs";
4
3
  import { useSession } from "./useAuth/useSession.mjs";
5
4
  import { useAuth } from "./useAuth/useAuth.mjs";
6
- import { useUser } from "./useUser/index.mjs";
7
5
  import { useAskDocQuestion, useAuditContentDeclaration, useAuditContentDeclarationField, useAuditContentDeclarationMetadata, useAuditTag, useAutocomplete, useChat, useCustomQuery, useGetAIStats, useTranslateJSONDeclaration } from "./hooks/ai.mjs";
8
6
  import { useGetAnalyticsAudience, useGetContentStats, useGetExperimentResults } from "./hooks/analytics.mjs";
9
7
  import { useDeleteAsset, useGetAssetById, useGetAssets, useUpdateAsset, useUploadAsset } from "./hooks/asset.mjs";
10
8
  import { useAuditScan, useGetRecursiveAuditStatus, useStartRecursiveAudit } from "./hooks/audit.mjs";
9
+ 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.mjs";
11
10
  import { useBitbucketAuth, useBitbucketCheckConfig, useBitbucketGetConfigFile, useBitbucketRepos } from "./hooks/bitbucket.mjs";
12
11
  import { useAddDictionary, useDeleteDictionary, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useInfiniteGetDictionaries, usePushDictionaries, useUpdateDictionary } from "./hooks/dictionary.mjs";
13
12
  import { useGetDiscussions, useGetDiscussionsData } from "./hooks/discussions.mjs";
@@ -25,5 +24,6 @@ import { useAcceptAffiliateInvitation, useCancelSubscription, useCreatePortalSes
25
24
  import { useAddTag, useDeleteTag, useGetTags, useUpdateTag } from "./hooks/tag.mjs";
26
25
  import { useFillAllTranslations, usePauseTranslationJob, useResumeTranslationJob, useStopTranslationJob } from "./hooks/translate.mjs";
27
26
  import { useCreateUser, useDeleteUser, useGetUserById, useGetUsers, useUpdateUser, useUploadUserAvatar } from "./hooks/user.mjs";
27
+ import { useUser } from "./useUser/index.mjs";
28
28
 
29
29
  export { useAcceptAffiliateInvitation, useAddDictionary, useAddEnvironment, useAddNewAccessKey, useAddOrganization, useAddOrganizationMember, useAddPasskey, useAddProject, useAddTag, useAiAPI, useAnalyticsAPI, useAskDocQuestion, useAskResetPassword, useAssetAPI, useAuditAPI, useAuditContentDeclaration, useAuditContentDeclarationField, useAuditContentDeclarationMetadata, useAuditScan, useAuditTag, useAuth, useAutocomplete, useBitbucketAPI, useBitbucketAuth, useBitbucketCheckConfig, useBitbucketGetConfigFile, useBitbucketRepos, useCancelSubscription, useChangePassword, useChat, useContactReviewer, useCreateMission, useCreatePortalSession, useCreatePromoCode, useCreateUser, useCustomQuery, useDeleteAccessKey, useDeleteAsset, useDeleteDictionary, useDeleteEnvironment, useDeleteOrganization, useDeleteOrganizationById, useDeletePasskey, useDeleteProject, useDeleteProjectById, useDeletePromoCode, useDeleteReviewerProfile, useDeleteSSOProvider, useDeleteShowcaseProject, useDeleteTag, useDeleteUser, useDictionaryAPI, useDisableTwoFactor, useEditorAPI, useEnableTwoFactor, useEnvironmentAPI, useEstimateMission, useFillAllTranslations, useGetAIStats, useGetAdminReviewers, useGetAffiliate, useGetAffiliateAccountSession, useGetAffiliateById, useGetAffiliateInvitation, useGetAffiliateInvitations, useGetAffiliateOnboardingLink, useGetAffiliatePromoCode, useGetAffiliateStats, useGetAffiliates, useGetAnalyticsAudience, useGetAssetById, useGetAssets, useGetCIConfig, useGetChatHistory, useGetContentStats, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useGetDiscussions, useGetDiscussionsData, useGetEditorDictionaries, useGetExperimentResults, useGetInvoices, useGetMissionById, useGetMyMissions, useGetMyReviewerProfile, useGetNewsletterStatus, useGetOrganizations, useGetOtherShowcaseProjects, useGetPaymentMethod, useGetPricing, useGetProjectInsights, 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, useMigrateEnvironment, useNewsletterAPI, useOAuth2, useOAuthAPI, useOrganizationAPI, usePauseTranslationJob, useProjectAPI, usePushCIConfig, usePushDictionaries, usePushProjectConfiguration, useRefreshAccessKey, useRegister, useRegisterAsReviewer, useRegisterSSO, useResetPassword, useResetToProductionEnvironment, useResumeTranslationJob, useReviewerAPI, useSearchAPI, useSearchDoc, useSelectEnvironment, 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, useUpdateAsset, useUpdateDictionary, useUpdateEnvironment, useUpdateMemberAccess, useUpdateMissionStatus, useUpdateOrganization, useUpdateOrganizationMailerConfig, useUpdateOrganizationMembers, useUpdateOrganizationMembersById, useUpdateProject, useUpdateProjectMembers, useUpdatePromoCode, useUpdateReviewerProfile, useUpdateShowcaseProject, useUpdateTag, useUpdateUser, useUploadAsset, useUploadReviewerCoverPicture, useUploadReviewerMainPicture, useUploadUserAvatar, useUser, useUserAPI, useValidateReviewerProfile, useVerifyBackupCode, useVerifyEmail, useVerifyTotp, useWriteDictionary };
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
 
3
3
  import { useIsAuthFetchEnabled } from "../../providers/DeferredAuthProvider.mjs";
4
- import { useQuery } from "@tanstack/react-query";
5
4
  import { getOAuthAPI } from "@intlayer/api";
6
- import { useConfiguration } from "@intlayer/editor-react";
7
5
  import { editor } from "@intlayer/config/built";
6
+ import { useQuery } from "@tanstack/react-query";
7
+ import { useConfiguration } from "@intlayer/editor-react";
8
8
  import { defu } from "defu";
9
9
 
10
10
  //#region src/api/useAuth/useOAuth2.ts
@@ -2,9 +2,9 @@
2
2
 
3
3
  import { getAuthAPI } from "../../libs/auth.mjs";
4
4
  import { useIsAuthFetchEnabled } from "../../providers/DeferredAuthProvider.mjs";
5
+ import { editor } from "@intlayer/config/built";
5
6
  import { useQuery, useQueryClient } from "@tanstack/react-query";
6
7
  import { useConfiguration } from "@intlayer/editor-react";
7
- import { editor } from "@intlayer/config/built";
8
8
 
9
9
  //#region src/api/useAuth/useSession.ts
10
10
  const useSession = (sessionProp, intlayerConfiguration) => {
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import { useLogout } from "../hooks/auth.mjs";
4
3
  import { useAuth } from "../useAuth/useAuth.mjs";
4
+ import { useLogout } from "../hooks/auth.mjs";
5
5
 
6
6
  //#region src/api/useUser/index.ts
7
7
  const useUser = () => {
@@ -3,9 +3,9 @@
3
3
  import { cn } from "../../utils/cn.mjs";
4
4
  import { Button } from "../Button/Button.mjs";
5
5
  import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
6
- import { ChevronDown } from "lucide-react";
7
6
  import { useId, useState } from "react";
8
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { ChevronDown } from "lucide-react";
9
9
 
10
10
  //#region src/components/Accordion/Accordion.tsx
11
11
  /**
@@ -1,8 +1,8 @@
1
1
  import { cn } from "../../utils/cn.mjs";
2
2
  import { Loader } from "../Loader/index.mjs";
3
- import { User } from "lucide-react";
4
3
  import { useMemo } from "react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { User } from "lucide-react";
6
6
 
7
7
  //#region src/components/Avatar/index.tsx
8
8
  /**
@@ -1,6 +1,6 @@
1
1
  import { cn } from "../../utils/cn.mjs";
2
- import { cva } from "class-variance-authority";
3
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { cva } from "class-variance-authority";
4
4
 
5
5
  //#region src/components/Badge/index.tsx
6
6
  /**
@@ -3,10 +3,10 @@
3
3
  import { cn } from "../../utils/cn.mjs";
4
4
  import { Button } from "../Button/Button.mjs";
5
5
  import { Link } from "../Link/Link.mjs";
6
- import { ChevronRightIcon } from "lucide-react";
7
6
  import { Fragment, createElement } from "react";
8
- import { cva } from "class-variance-authority";
9
7
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
+ import { cva } from "class-variance-authority";
9
+ import { ChevronRightIcon } from "lucide-react";
10
10
  import { getIntlayer } from "intlayer";
11
11
  import { useIntlayer } from "react-intlayer";
12
12
 
@@ -6,9 +6,9 @@ import { Container } from "../Container/index.mjs";
6
6
  import { ClickOutsideDiv } from "../ClickOutsideDiv/index.mjs";
7
7
  import { DropDown } from "../DropDown/index.mjs";
8
8
  import { Input, inputVariants } from "../Input/Input.mjs";
9
- import { ArrowLeft, ArrowRight, RotateCw, ScanSearch } from "lucide-react";
10
9
  import { useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
11
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
+ import { ArrowLeft, ArrowRight, RotateCw, ScanSearch } from "lucide-react";
12
12
  import { useIntlayer } from "react-intlayer";
13
13
 
14
14
  //#region src/components/Browser/Browser.tsx
@@ -1,7 +1,7 @@
1
1
  import { cn } from "../../utils/cn.mjs";
2
2
  import { Loader } from "../Loader/index.mjs";
3
- import { cva } from "class-variance-authority";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { cva } from "class-variance-authority";
5
5
 
6
6
  //#region src/components/Button/Button.tsx
7
7
  const buttonIconVariants = cva("flex-none shrink-0", {
@@ -4,9 +4,9 @@ import { cn } from "../../utils/cn.mjs";
4
4
  import { Button } from "../Button/Button.mjs";
5
5
  import { KeyboardShortcut } from "../KeyboardShortcut/KeyboardShortcut.mjs";
6
6
  import { Popover } from "../Popover/dynamic.mjs";
7
- import { ChevronLeft, ChevronRight } from "lucide-react";
8
7
  import { Children, createContext, isValidElement, useContext, useEffect, useLayoutEffect, useRef, useState } from "react";
9
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
+ import { ChevronLeft, ChevronRight } from "lucide-react";
10
10
  import { useIntlayer } from "react-intlayer";
11
11
 
12
12
  //#region src/components/Carousel/index.tsx
@@ -2,10 +2,10 @@
2
2
 
3
3
  import { cn } from "../../utils/cn.mjs";
4
4
  import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
5
- import { ChevronRight } from "lucide-react";
6
5
  import { useState } from "react";
7
- import { cva } from "class-variance-authority";
8
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { cva } from "class-variance-authority";
8
+ import { ChevronRight } from "lucide-react";
9
9
 
10
10
  //#region src/components/CollapsibleTable/CollapsibleTable.tsx
11
11
  const collapsibleTableVariants = cva("w-full max-w-full overflow-hidden rounded-lg border bg-card", {
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
3
  import { cn } from "../../utils/cn.mjs";
4
- import { Search } from "lucide-react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { Search } from "lucide-react";
6
6
  import { Dialog, DialogContent } from "@radix-ui/react-dialog";
7
7
  import { Command as Command$1 } from "cmdk";
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { cn } from "../../utils/cn.mjs";
2
- import { cva } from "class-variance-authority";
3
2
  import { jsx } from "react/jsx-runtime";
3
+ import { cva } from "class-variance-authority";
4
4
 
5
5
  //#region src/components/Container/index.tsx
6
6
  /**
@@ -2,9 +2,9 @@
2
2
 
3
3
  import { cn } from "../../utils/cn.mjs";
4
4
  import { AutoSizedTextArea } from "../TextArea/AutoSizeTextArea.mjs";
5
- import { Check, X } from "lucide-react";
6
5
  import { useState } from "react";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { Check, X } from "lucide-react";
8
8
 
9
9
  //#region src/components/ContentEditor/ContentEditor.tsx
10
10
  /**
@@ -2,9 +2,9 @@
2
2
 
3
3
  import { Button } from "../Button/Button.mjs";
4
4
  import { Input } from "../Input/Input.mjs";
5
- import { Check, X } from "lucide-react";
6
5
  import { useEffect, useState } from "react";
7
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
+ import { Check, X } from "lucide-react";
8
8
 
9
9
  //#region src/components/ContentEditor/ContentEditorInput.tsx
10
10
  /**
@@ -1,11 +1,11 @@
1
1
  'use client';
2
2
 
3
- import { Button } from "../Button/Button.mjs";
4
3
  import { useUser } from "../../api/useUser/index.mjs";
4
+ import { Button } from "../Button/Button.mjs";
5
5
  import { AutoCompleteTextarea } from "../TextArea/AutocompleteTextArea.mjs";
6
- import { Check, X } from "lucide-react";
7
6
  import { useEffect, useState } from "react";
8
7
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
+ import { Check, X } from "lucide-react";
9
9
 
10
10
  //#region src/components/ContentEditor/ContentEditorTextArea.tsx
11
11
  /**
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
3
  import { Button } from "../Button/Button.mjs";
4
- import { CopyCheckIcon, CopyIcon } from "lucide-react";
5
4
  import { useEffect, useState } from "react";
6
5
  import { jsx } from "react/jsx-runtime";
6
+ import { CopyCheckIcon, CopyIcon } from "lucide-react";
7
7
  import { useIntlayer } from "react-intlayer";
8
8
 
9
9
  //#region src/components/CopyButton/index.tsx
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
3
  import { cn } from "../../utils/cn.mjs";
4
- import { CopyCheck, CopyIcon } from "lucide-react";
5
4
  import { useState } from "react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { CopyCheck, CopyIcon } from "lucide-react";
7
7
 
8
8
  //#region src/components/CopyToClipboard/index.tsx
9
9
  const useCopyToClipboard = (text, feedbackDuration = 2e3, onCopySuccess, onCopyError) => {
@@ -1,5 +1,6 @@
1
1
  'use client';
2
2
 
3
+ import { useAuditContentDeclarationField } from "../../../api/hooks/ai.mjs";
3
4
  import { Loader } from "../../Loader/index.mjs";
4
5
  import { Button } from "../../Button/Button.mjs";
5
6
  import { Accordion } from "../../Accordion/Accordion.mjs";
@@ -7,18 +8,17 @@ import { Container } from "../../Container/index.mjs";
7
8
  import { ContentEditorInput as ContentEditorInput$1 } from "../../ContentEditor/ContentEditorInput.mjs";
8
9
  import { ContentEditorTextArea as ContentEditorTextArea$1 } from "../../ContentEditor/ContentEditorTextArea.mjs";
9
10
  import { SwitchSelector } from "../../SwitchSelector/SwitchSelector.mjs";
10
- import { useAuditContentDeclarationField } from "../../../api/hooks/ai.mjs";
11
11
  import { renameKey } from "./object.mjs";
12
12
  import { Label } from "../../Label/index.mjs";
13
13
  import { useLocaleSwitcherContent } from "../../LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs";
14
14
  import { EnumKeyInput } from "../EnumKeyInput.mjs";
15
15
  import { SafeHtmlRenderer } from "./SafeHtmlRenderer.mjs";
16
- import { Plus, Trash, WandSparkles } from "lucide-react";
17
16
  import { Fragment, Suspense, lazy, memo, useState } from "react";
18
17
  import { jsx, jsxs } from "react/jsx-runtime";
18
+ import { Plus, Trash, WandSparkles } from "lucide-react";
19
+ import { useConfiguration, useEditedContent } from "@intlayer/editor-react";
19
20
  import { useIntlayer, useLocale } from "react-intlayer";
20
21
  import { getLocaleName } from "@intlayer/core/localization";
21
- import { useConfiguration, useEditedContent } from "@intlayer/editor-react";
22
22
  import { getEmptyNode, getNodeType } from "@intlayer/core/dictionaryManipulator";
23
23
  import * as NodeTypes from "@intlayer/types/nodeType";
24
24
  import { camelCaseToSentence } from "@intlayer/config/client";
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
- import { Button } from "../../Button/Button.mjs";
4
3
  import { useSession } from "../../../api/useAuth/useSession.mjs";
5
4
  import { useAddDictionary } from "../../../api/hooks/dictionary.mjs";
6
5
  import { useGetProjects } from "../../../api/hooks/project.mjs";
6
+ import { Button } from "../../Button/Button.mjs";
7
7
  import { MultiSelect } from "../../Select/Multiselect.mjs";
8
8
  import { Select } from "../../Select/Select.mjs";
9
9
  import { InputElement } from "../../Form/elements/InputElement.mjs";
@@ -1,16 +1,16 @@
1
1
  'use client';
2
2
 
3
3
  import { cn } from "../../../utils/cn.mjs";
4
- import { Loader } from "../../Loader/index.mjs";
5
- import { Button } from "../../Button/Button.mjs";
6
- import { Container } from "../../Container/index.mjs";
7
- import { Checkbox } from "../../Input/Checkbox.mjs";
8
- import { Input } from "../../Input/Input.mjs";
9
4
  import { useSession } from "../../../api/useAuth/useSession.mjs";
10
5
  import { useAuditContentDeclarationMetadata } from "../../../api/hooks/ai.mjs";
11
6
  import { useGetDictionaries } from "../../../api/hooks/dictionary.mjs";
12
7
  import { useGetProjects } from "../../../api/hooks/project.mjs";
13
8
  import { useGetTags } from "../../../api/hooks/tag.mjs";
9
+ import { Loader } from "../../Loader/index.mjs";
10
+ import { Button } from "../../Button/Button.mjs";
11
+ import { Container } from "../../Container/index.mjs";
12
+ import { Checkbox } from "../../Input/Checkbox.mjs";
13
+ import { Input } from "../../Input/Input.mjs";
14
14
  import { MultiSelect } from "../../Select/Multiselect.mjs";
15
15
  import { Select } from "../../Select/Select.mjs";
16
16
  import { FormItem } from "../../Form/FormItem.mjs";
@@ -27,11 +27,11 @@ import { useForm as useForm$1 } from "../../Form/FormBase.mjs";
27
27
  import { Form } from "../../Form/Form.mjs";
28
28
  import { Pagination } from "../../Pagination/Pagination.mjs";
29
29
  import { useDictionaryDetailsSchema } from "./useDictionaryDetailsSchema.mjs";
30
- import { WandSparkles } from "lucide-react";
31
30
  import { useEffect, useMemo, useState } from "react";
32
31
  import { jsx, jsxs } from "react/jsx-runtime";
33
- import { useIntlayer } from "react-intlayer";
32
+ import { WandSparkles } from "lucide-react";
34
33
  import { useEditedContent } from "@intlayer/editor-react";
34
+ import { useIntlayer } from "react-intlayer";
35
35
  import { useWatch } from "react-hook-form";
36
36
  import { AnimatePresence, motion } from "framer-motion";
37
37
 
@@ -10,11 +10,11 @@ import { JSONEditor } from "./JSONEditor.mjs";
10
10
  import { NodeEditor } from "./NodeEditor.mjs";
11
11
  import { SaveForm } from "./SaveForm/SaveForm.mjs";
12
12
  import { StructureEditor } from "./StructureEditor.mjs";
13
- import { ArrowLeft } from "lucide-react";
14
13
  import { useEffect, useState } from "react";
15
14
  import { jsx, jsxs } from "react/jsx-runtime";
16
- import { useIntlayer } from "react-intlayer";
15
+ import { ArrowLeft } from "lucide-react";
17
16
  import { useConfiguration, useDictionariesRecordActions, useFocusUnmergedDictionary } from "@intlayer/editor-react";
17
+ import { useIntlayer } from "react-intlayer";
18
18
 
19
19
  //#region src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx
20
20
  const DictionaryFieldEditor = ({ dictionary, onClickDictionaryList, isDarkMode, mode, onDelete, onSave, showReturnButton = true, rightContent }) => {
@@ -2,11 +2,11 @@ import { Button } from "../../Button/Button.mjs";
2
2
  import { Accordion } from "../../Accordion/Accordion.mjs";
3
3
  import { useLocaleSwitcherContent } from "../../LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs";
4
4
  import { getIsEditableSection } from "../getIsEditableSection.mjs";
5
- import { ChevronRight, Plus } from "lucide-react";
6
5
  import { useState } from "react";
7
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
- import { useIntlayer } from "react-intlayer";
7
+ import { ChevronRight, Plus } from "lucide-react";
9
8
  import { useEditedContentActions, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
9
+ import { useIntlayer } from "react-intlayer";
10
10
  import { getContentNodeByKeyPath, getEmptyNode, getNodeType } from "@intlayer/core/dictionaryManipulator";
11
11
  import * as NodeTypes from "@intlayer/types/nodeType";
12
12
  import { isSameKeyPath } from "@intlayer/core/utils";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import { Container } from "../Container/index.mjs";
4
3
  import { useGetDictionaries } from "../../api/hooks/dictionary.mjs";
4
+ import { Container } from "../Container/index.mjs";
5
5
  import { LocaleSwitcherContent } from "../LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs";
6
6
  import { TextEditorContainer } from "./ContentEditorView/TextEditor.mjs";
7
7
  import { Pagination } from "../Pagination/Pagination.mjs";
@@ -10,8 +10,8 @@ import { KeyPathBreadcrumb } from "./KeyPathBreadcrumb.mjs";
10
10
  import { NavigationViewNode } from "./NavigationView/NavigationViewNode.mjs";
11
11
  import { useCallback, useDeferredValue, useEffect, useMemo, useState, useTransition } from "react";
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
13
- import { useIntlayer } from "react-intlayer";
14
13
  import { useEditedContent, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
14
+ import { useIntlayer } from "react-intlayer";
15
15
  import { getContentNodeByKeyPath } from "@intlayer/core/dictionaryManipulator";
16
16
 
17
17
  //#region src/components/DictionaryFieldEditor/NodeEditor.tsx
@@ -1,17 +1,17 @@
1
1
  'use client';
2
2
 
3
3
  import { cn } from "../../../utils/cn.mjs";
4
- import { Button } from "../../Button/Button.mjs";
5
4
  import { useSession } from "../../../api/useAuth/useSession.mjs";
6
5
  import { useAuth } from "../../../api/useAuth/useAuth.mjs";
7
6
  import { useDeleteDictionary, usePushDictionaries } from "../../../api/hooks/dictionary.mjs";
8
7
  import { useWriteDictionary } from "../../../api/hooks/editor.mjs";
8
+ import { Button } from "../../Button/Button.mjs";
9
9
  import { Modal } from "../../Modal/Modal.mjs";
10
- import { ArrowUpFromLine, Download, RotateCcw, Save, Trash } from "lucide-react";
11
10
  import { useState } from "react";
12
11
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
13
- import { useIntlayer } from "react-intlayer";
12
+ import { ArrowUpFromLine, Download, RotateCcw, Save, Trash } from "lucide-react";
14
13
  import { useDictionariesRecordActions, useEditedContent } from "@intlayer/editor-react";
14
+ import { useIntlayer } from "react-intlayer";
15
15
 
16
16
  //#region src/components/DictionaryFieldEditor/SaveForm/SaveForm.tsx
17
17
  const SaveForm = ({ dictionary, mode, className, onDelete, onSave, ...props }) => {
@@ -4,10 +4,10 @@ import { Button } from "../../Button/Button.mjs";
4
4
  import { Container } from "../../Container/index.mjs";
5
5
  import { EditableFieldInput } from "../../EditableField/EditableFieldInput.mjs";
6
6
  import { NodeTypeSelector } from "../NodeTypeSelector.mjs";
7
- import { Plus, Trash } from "lucide-react";
8
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
- import { useIntlayer } from "react-intlayer";
8
+ import { Plus, Trash } from "lucide-react";
10
9
  import { useConfiguration, useEditedContentActions, useFocusUnmergedDictionary } from "@intlayer/editor-react";
10
+ import { useIntlayer } from "react-intlayer";
11
11
  import { getDefaultNode, getNodeChildren, getNodeType } from "@intlayer/core/dictionaryManipulator";
12
12
  import * as NodeTypes from "@intlayer/types/nodeType";
13
13
  import { isSameKeyPath } from "@intlayer/core/utils";
@@ -4,8 +4,8 @@ import { Button } from "../../Button/Button.mjs";
4
4
  import { Container } from "../../Container/index.mjs";
5
5
  import { DropDown } from "../../DropDown/index.mjs";
6
6
  import { useVersionSwitcher } from "./VersionSwitcherContext.mjs";
7
- import { MoveVertical } from "lucide-react";
8
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
+ import { MoveVertical } from "lucide-react";
9
9
  import { useIntlayer } from "react-intlayer";
10
10
 
11
11
  //#region src/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.tsx
@@ -2,9 +2,9 @@
2
2
 
3
3
  import { cn } from "../../utils/cn.mjs";
4
4
  import { Button } from "../Button/Button.mjs";
5
- import { Check, Pencil, X } from "lucide-react";
6
5
  import { useCallback, useEffect, useRef, useState } from "react";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { Check, Pencil, X } from "lucide-react";
8
8
 
9
9
  //#region src/components/EditableField/EditableFieldLayout.tsx
10
10
  const EditableFieldLayout = ({ value = "", onCancel, onSave, onClick, children, isDisabled, ...props }) => {
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import { InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "../../Input/OTPInput.mjs";
4
3
  import { useItemSelector } from "../../../hooks/useItemSelector.mjs";
4
+ import { InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "../../Input/OTPInput.mjs";
5
5
  import { FormField, useFormField } from "../FormField.mjs";
6
6
  import { FormItemLayout } from "../layout/FormItemLayout.mjs";
7
7
  import { useEffect, useRef } from "react";
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
3
  import { cn } from "../../utils/cn.mjs";
4
- import { Eye, EyeOff } from "lucide-react";
5
4
  import { useEffect, useMemo, useRef, useState } from "react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { Eye, EyeOff } from "lucide-react";
7
7
 
8
8
  //#region src/components/HideShow/index.tsx
9
9
  const insertBreaks = (str, groupSize = 6) => str.replace(new RegExp(`.{1,${groupSize}}`, "g"), "$&​");
@@ -3,9 +3,9 @@
3
3
  import { cn } from "../../utils/cn.mjs";
4
4
  import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
5
5
  import { createFileTree } from "./createFileTree.mjs";
6
- import { ChevronRight } from "lucide-react";
7
6
  import { useState } from "react";
8
7
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
+ import { ChevronRight } from "lucide-react";
9
9
 
10
10
  //#region src/components/IDE/FileTree.tsx
11
11
  const concatFilePath = (paths) => paths.join("/");
@@ -1,6 +1,6 @@
1
1
  import { Code } from "./Code.mjs";
2
- import cn from "cnfast";
3
2
  import { jsx } from "react/jsx-runtime";
3
+ import cn from "cnfast";
4
4
  import { MarkdownRenderer as MarkdownRenderer$1 } from "react-intlayer/markdown";
5
5
 
6
6
  //#region src/components/IDE/MarkDownRender.tsx
@@ -1,6 +1,6 @@
1
1
  import { cn } from "../../utils/cn.mjs";
2
- import { cva } from "class-variance-authority";
3
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { cva } from "class-variance-authority";
4
4
 
5
5
  //#region src/components/Input/Checkbox.tsx
6
6
  const checkboxVariants = cva([
@@ -1,5 +1,5 @@
1
- import { cva } from "class-variance-authority";
2
1
  import { jsx } from "react/jsx-runtime";
2
+ import { cva } from "class-variance-authority";
3
3
 
4
4
  //#region src/components/Input/Input.tsx
5
5
  const cn = (...classes) => classes.filter(Boolean).join(" ");
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
3
  import { Input } from "./Input.mjs";
4
- import { EyeIcon, EyeOffIcon } from "lucide-react";
5
4
  import { useState } from "react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { EyeIcon, EyeOffIcon } from "lucide-react";
7
7
 
8
8
  //#region src/components/Input/InputPassword.tsx
9
9
  const InputPassword = (props) => {
@@ -2,10 +2,10 @@
2
2
 
3
3
  import { cn } from "../../utils/cn.mjs";
4
4
  import { Button } from "../Button/Button.mjs";
5
- import { MinusIcon } from "lucide-react";
6
5
  import { createContext, useContext, useEffect, useRef, useState } from "react";
7
- import { cva } from "class-variance-authority";
8
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
+ import { cva } from "class-variance-authority";
8
+ import { MinusIcon } from "lucide-react";
9
9
 
10
10
  //#region src/components/Input/OTPInput.tsx
11
11
  /**
@@ -1,6 +1,6 @@
1
1
  import { cn } from "../../utils/cn.mjs";
2
- import { cva } from "class-variance-authority";
3
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { cva } from "class-variance-authority";
4
4
 
5
5
  //#region src/components/Input/Radio.tsx
6
6
  const radioVariants = cva([
@@ -1,7 +1,7 @@
1
1
  import { cn } from "../../utils/cn.mjs";
2
2
  import { Input } from "./Input.mjs";
3
- import { Search } from "lucide-react";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Search } from "lucide-react";
5
5
 
6
6
  //#region src/components/Input/SearchInput.tsx
7
7
  const SearchInput = ({ className, ...props }) => /* @__PURE__ */ jsxs("div", {
@@ -1,8 +1,8 @@
1
1
  import { cn } from "../../utils/cn.mjs";
2
- import { ExternalLink, MoveRight } from "lucide-react";
3
2
  import { isValidElement } from "react";
4
- import { cva } from "class-variance-authority";
5
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { cva } from "class-variance-authority";
5
+ import { ExternalLink, MoveRight } from "lucide-react";
6
6
  import { getLocalizedUrl } from "@intlayer/core/localization";
7
7
 
8
8
  //#region src/components/Link/Link.tsx
@@ -1,15 +1,15 @@
1
1
  'use client';
2
2
 
3
+ import { usePersistedStore } from "../../hooks/usePersistedStore.mjs";
3
4
  import { Button } from "../Button/Button.mjs";
4
5
  import { Container } from "../Container/index.mjs";
5
6
  import { DropDown } from "../DropDown/index.mjs";
6
7
  import { Input } from "../Input/Input.mjs";
7
8
  import { SwitchSelector } from "../SwitchSelector/SwitchSelector.mjs";
8
- import { usePersistedStore } from "../../hooks/usePersistedStore.mjs";
9
9
  import { useLocaleSwitcherContent } from "./LocaleSwitcherContentContext.mjs";
10
- import { Check, Globe, MoveVertical } from "lucide-react";
11
10
  import { useMemo, useRef, useState } from "react";
12
11
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
12
+ import { Check, Globe, MoveVertical } from "lucide-react";
13
13
  import { useIntlayer, useLocale } from "react-intlayer";
14
14
  import { getHTMLTextDir, getLocaleName } from "@intlayer/core/localization";
15
15
  import { ENGLISH } from "@intlayer/types/locales";
@@ -5,9 +5,9 @@ import { Button } from "../Button/Button.mjs";
5
5
  import { Container } from "../Container/index.mjs";
6
6
  import { DropDown } from "../DropDown/index.mjs";
7
7
  import { Input } from "../Input/Input.mjs";
8
- import { MoveVertical } from "lucide-react";
9
8
  import { useCallback, useMemo, useRef, useState } from "react";
10
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
+ import { MoveVertical } from "lucide-react";
11
11
  import { useIntlayer } from "react-intlayer";
12
12
  import { getHTMLTextDir, getLocaleName } from "@intlayer/core/localization";
13
13
  import { ENGLISH } from "@intlayer/types/locales";
@@ -6,9 +6,9 @@ import { Link } from "../Link/Link.mjs";
6
6
  import { Container } from "../Container/index.mjs";
7
7
  import { Modal } from "../Modal/Modal.mjs";
8
8
  import { getYoutubeEmbedUrl, getYoutubeVideoId, getYoutubeWatchUrl } from "./youtubeUrl.mjs";
9
- import { MoveDiagonal } from "lucide-react";
10
9
  import { useEffect, useRef, useState } from "react";
11
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
+ import { MoveDiagonal } from "lucide-react";
12
12
 
13
13
  //#region src/components/MarkDownRender/MarkDownIframe.tsx
14
14
  /**
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { Command } from "../../Command/index.mjs";
4
4
  import { useEditor } from "../novel/components/index.mjs";
5
- import { Check, TextQuote, TrashIcon } from "lucide-react";
6
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
+ import { Check, TextQuote, TrashIcon } from "lucide-react";
7
7
  import { useIntlayer } from "react-intlayer";
8
8
 
9
9
  //#region src/components/MarkdownEditor/generative/AICompletionCommands.tsx