@intlayer/design-system 8.12.0 → 8.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/esm/api/hooks/utils.mjs +1 -1
  2. package/dist/esm/api/index.mjs +2 -2
  3. package/dist/esm/api/useAuth/useOAuth2.mjs +1 -1
  4. package/dist/esm/api/useAuth/useSession.mjs +1 -1
  5. package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs +1 -1
  6. package/dist/esm/components/DictionaryEditor/DictionaryEditor.mjs +1 -1
  7. package/dist/esm/components/DictionaryEditor/NodeWrapper/BooleanWrapper.mjs +1 -1
  8. package/dist/esm/components/DictionaryEditor/NodeWrapper/FileWrapper.mjs +1 -1
  9. package/dist/esm/components/DictionaryEditor/NodeWrapper/NumberWrapper.mjs +1 -1
  10. package/dist/esm/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs +1 -1
  11. package/dist/esm/components/DictionaryEditor/NodeWrapper/index.mjs +1 -1
  12. package/dist/esm/components/DictionaryFieldEditor/ContentEditor.mjs +1 -1
  13. package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +2 -2
  14. package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +3 -3
  15. package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +1 -1
  16. package/dist/esm/components/DictionaryFieldEditor/JSONEditor.mjs +1 -1
  17. package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +1 -1
  18. package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +2 -2
  19. package/dist/esm/components/DictionaryFieldEditor/StructureEditor.mjs +1 -1
  20. package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs +1 -1
  21. package/dist/esm/components/KeyboardScreenAdapter/index.mjs +1 -1
  22. package/dist/esm/components/KeyboardShortcut/KeyboardShortcut.mjs +1 -1
  23. package/dist/esm/components/Modal/Modal.mjs +1 -1
  24. package/dist/esm/components/Navbar/MobileNavbar.mjs +1 -1
  25. package/dist/esm/components/Pagination/Pagination.mjs +1 -1
  26. package/dist/esm/components/Tab/Tab.mjs +1 -1
  27. package/dist/esm/components/TabSelector/TabSelector.mjs +1 -1
  28. package/dist/esm/providers/ReactQueryProvider.mjs +2 -2
  29. package/dist/types/api/useIntlayerAPI.d.ts +1 -1
  30. package/dist/types/components/Badge/index.d.ts +1 -1
  31. package/dist/types/components/Button/Button.d.ts +3 -3
  32. package/dist/types/components/Command/index.d.ts +2 -2
  33. package/dist/types/components/Container/index.d.ts +1 -1
  34. package/dist/types/components/Input/Checkbox.d.ts +2 -2
  35. package/dist/types/components/Input/Input.d.ts +1 -1
  36. package/dist/types/components/Input/Radio.d.ts +2 -2
  37. package/dist/types/components/Link/Link.d.ts +2 -2
  38. package/dist/types/components/SwitchSelector/VerticalSwitchSelector.d.ts +1 -1
  39. package/dist/types/components/Tag/index.d.ts +1 -1
  40. package/package.json +14 -14
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
3
  import { useAuth } from "../useAuth/useAuth.mjs";
4
- import { useConfiguration } from "@intlayer/editor-react";
5
4
  import { useQuery } from "@tanstack/react-query";
5
+ import { useConfiguration } from "@intlayer/editor-react";
6
6
 
7
7
  //#region src/api/hooks/utils.ts
8
8
  const useAuthEnable = ({ requireUser, requireProject, requireOrganization }) => {
@@ -2,9 +2,10 @@ import { useOAuth2 } from "./useAuth/useOAuth2.mjs";
2
2
  import { useSession } from "./useAuth/useSession.mjs";
3
3
  import { useAuth } from "./useAuth/useAuth.mjs";
4
4
  import { useAiAPI, useAuditAPI, useBitbucketAPI, useDictionaryAPI, useEditorAPI, useGithubAPI, useGitlabAPI, useIntlayerAuth, useIntlayerOAuth, useIntlayerOAuthOptions, useNewsletterAPI, useOAuthAPI, useOrganizationAPI, useProjectAPI, useReviewerAPI, useSearchAPI, useShowcaseProjectAPI, useStripeAPI, useTagAPI, useTranslateAPI, useUserAPI } from "./useIntlayerAPI.mjs";
5
+ 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";
6
+ import { useUser } from "./useUser/index.mjs";
5
7
  import { useAskDocQuestion, useAuditContentDeclaration, useAuditContentDeclarationField, useAuditContentDeclarationMetadata, useAuditTag, useAutocomplete, useChat, useTranslateJSONDeclaration } from "./hooks/ai.mjs";
6
8
  import { useAuditScan, useGetRecursiveAuditStatus, useStartRecursiveAudit } from "./hooks/audit.mjs";
7
- 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";
8
9
  import { useBitbucketAuth, useBitbucketCheckConfig, useBitbucketGetConfigFile, useBitbucketRepos } from "./hooks/bitbucket.mjs";
9
10
  import { useAddDictionary, useDeleteDictionary, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useInfiniteGetDictionaries, usePushDictionaries, useUpdateDictionary } from "./hooks/dictionary.mjs";
10
11
  import { useGetDiscussions, useGetDiscussionsData } from "./hooks/discussions.mjs";
@@ -21,6 +22,5 @@ import { useAcceptAffiliateInvitation, useCancelSubscription, useCreatePortalSes
21
22
  import { useAddTag, useDeleteTag, useGetTags, useUpdateTag } from "./hooks/tag.mjs";
22
23
  import { useFillAllTranslations, usePauseTranslationJob, useResumeTranslationJob, useStopTranslationJob } from "./hooks/translate.mjs";
23
24
  import { useCreateUser, useDeleteUser, useGetUserById, useGetUsers, useUpdateUser, useUploadUserAvatar } from "./hooks/user.mjs";
24
- import { useUser } from "./useUser/index.mjs";
25
25
 
26
26
  export { useAcceptAffiliateInvitation, useAddDictionary, useAddEnvironment, 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, useDeleteEnvironment, 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, 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, useUpdateDictionary, useUpdateEnvironment, useUpdateMemberAccess, useUpdateMissionStatus, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateOrganizationMembersById, useUpdateProject, useUpdateProjectMembers, useUpdatePromoCode, useUpdateReviewerProfile, useUpdateShowcaseProject, useUpdateTag, useUpdateUser, useUploadReviewerCoverPicture, useUploadReviewerMainPicture, useUploadUserAvatar, useUser, useUserAPI, useValidateReviewerProfile, useVerifyBackupCode, useVerifyEmail, useVerifyTotp, useWriteDictionary };
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
 
3
3
  import { editor } from "@intlayer/config/built";
4
+ import { useQuery } from "@tanstack/react-query";
4
5
  import { getOAuthAPI } from "@intlayer/api";
5
6
  import { useConfiguration } from "@intlayer/editor-react";
6
- import { useQuery } from "@tanstack/react-query";
7
7
  import { defu } from "defu";
8
8
 
9
9
  //#region src/api/useAuth/useOAuth2.ts
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { getAuthAPI } from "../../libs/auth.mjs";
4
4
  import { editor } from "@intlayer/config/built";
5
- import { useConfiguration } from "@intlayer/editor-react";
6
5
  import { useQuery, useQueryClient } from "@tanstack/react-query";
6
+ import { useConfiguration } from "@intlayer/editor-react";
7
7
 
8
8
  //#region src/api/useAuth/useSession.ts
9
9
  const useSession = (sessionProp, intlayerConfiguration) => {
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import { useUser } from "../../api/useUser/index.mjs";
4
3
  import { Button } from "../Button/Button.mjs";
4
+ import { useUser } from "../../api/useUser/index.mjs";
5
5
  import { AutoCompleteTextarea } from "../TextArea/AutocompleteTextArea.mjs";
6
6
  import { useEffect, useState } from "react";
7
7
  import { Check, X } from "lucide-react";
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { NodeWrapper } from "./NodeWrapper/index.mjs";
4
4
  import { createElement } from "react";
5
- import { useEditedContent, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
6
5
  import { jsx } from "react/jsx-runtime";
6
+ import { useEditedContent, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
7
7
 
8
8
  //#region src/components/DictionaryEditor/DictionaryEditor.tsx
9
9
  const DictionaryEditor = ({ dictionary, ...props }) => {
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { cn } from "../../../utils/cn.mjs";
4
4
  import { SwitchSelector } from "../../SwitchSelector/SwitchSelector.mjs";
5
- import { useEditorLocale } from "@intlayer/editor-react";
6
5
  import { Fragment, jsx } from "react/jsx-runtime";
6
+ import { useEditorLocale } from "@intlayer/editor-react";
7
7
  import { getContentNodeByKeyPath } from "@intlayer/core/dictionaryManipulator";
8
8
 
9
9
  //#region src/components/DictionaryEditor/NodeWrapper/BooleanWrapper.tsx
@@ -1,6 +1,6 @@
1
1
  import { StringWrapper } from "./StringWrapper.mjs";
2
- import { useEditedContent } from "@intlayer/editor-react";
3
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useEditedContent } from "@intlayer/editor-react";
4
4
  import { getContentNodeByKeyPath } from "@intlayer/core/dictionaryManipulator";
5
5
  import * as NodeTypes from "@intlayer/types/nodeType";
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { cn } from "../../../utils/cn.mjs";
2
2
  import { EditableFieldInput } from "../../EditableField/EditableFieldInput.mjs";
3
- import { useEditorLocale } from "@intlayer/editor-react";
4
3
  import { Fragment, jsx } from "react/jsx-runtime";
4
+ import { useEditorLocale } from "@intlayer/editor-react";
5
5
  import { getContentNodeByKeyPath } from "@intlayer/core/dictionaryManipulator";
6
6
 
7
7
  //#region src/components/DictionaryEditor/NodeWrapper/NumberWrapper.tsx
@@ -1,7 +1,7 @@
1
1
  import { cn } from "../../../utils/cn.mjs";
2
2
  import { EditableFieldTextArea } from "../../EditableField/EditableFieldTextArea.mjs";
3
- import { useEditorLocale } from "@intlayer/editor-react";
4
3
  import { Fragment, jsx } from "react/jsx-runtime";
4
+ import { useEditorLocale } from "@intlayer/editor-react";
5
5
  import { getContentNodeByKeyPath } from "@intlayer/core/dictionaryManipulator";
6
6
 
7
7
  //#region src/components/DictionaryEditor/NodeWrapper/StringWrapper.tsx
@@ -14,8 +14,8 @@ import { NumberWrapper } from "./NumberWrapper.mjs";
14
14
  import { PluralWrapper } from "./PluralWrapper.mjs";
15
15
  import { TranslationWrapper } from "./TranslationWrapper.mjs";
16
16
  import { memo, useMemo } from "react";
17
- import { useEditorLocale } from "@intlayer/editor-react";
18
17
  import { jsx } from "react/jsx-runtime";
18
+ import { useEditorLocale } from "@intlayer/editor-react";
19
19
  import { getContentNodeByKeyPath, getNodeType } from "@intlayer/core/dictionaryManipulator";
20
20
  import * as NodeTypes from "@intlayer/types/nodeType";
21
21
 
@@ -7,8 +7,8 @@ import { getIsEditableSection } from "./getIsEditableSection.mjs";
7
7
  import { KeyPathBreadcrumb } from "./KeyPathBreadcrumb.mjs";
8
8
  import { NavigationViewNode } from "./NavigationView/NavigationViewNode.mjs";
9
9
  import { useDeferredValue, useEffect, useTransition } from "react";
10
- import { useEditedContent, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
11
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
+ import { useEditedContent, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
12
12
  import { getContentNodeByKeyPath } from "@intlayer/core/dictionaryManipulator";
13
13
 
14
14
  //#region src/components/DictionaryFieldEditor/ContentEditor.tsx
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import { useAuditContentDeclarationField } from "../../../api/hooks/ai.mjs";
4
3
  import { Loader } from "../../Loader/index.mjs";
5
4
  import { Button } from "../../Button/Button.mjs";
6
5
  import { Accordion } from "../../Accordion/Accordion.mjs";
@@ -9,16 +8,17 @@ import { ContentEditorInput as ContentEditorInput$1 } from "../../ContentEditor/
9
8
  import { ContentEditorTextArea as ContentEditorTextArea$1 } from "../../ContentEditor/ContentEditorTextArea.mjs";
10
9
  import { SwitchSelector } from "../../SwitchSelector/SwitchSelector.mjs";
11
10
  import { useLocaleSwitcherContent } from "../../LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs";
11
+ import { useAuditContentDeclarationField } from "../../../api/hooks/ai.mjs";
12
12
  import { renameKey } from "./object.mjs";
13
13
  import { Label } from "../../Label/index.mjs";
14
14
  import { EnumKeyInput } from "../EnumKeyInput.mjs";
15
15
  import { SafeHtmlRenderer } from "./SafeHtmlRenderer.mjs";
16
16
  import { Fragment, Suspense, lazy, memo, useState } from "react";
17
- import { useConfiguration, useEditedContent } from "@intlayer/editor-react";
18
17
  import { Plus, Trash, WandSparkles } from "lucide-react";
19
18
  import { jsx, jsxs } from "react/jsx-runtime";
20
19
  import { useIntlayer, useLocale } from "react-intlayer";
21
20
  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,21 +1,21 @@
1
1
  'use client';
2
2
 
3
+ import { Loader } from "../../Loader/index.mjs";
4
+ import { Checkbox } from "../../Input/Checkbox.mjs";
3
5
  import { useSession } from "../../../api/useAuth/useSession.mjs";
4
6
  import { useAuditContentDeclarationMetadata } from "../../../api/hooks/ai.mjs";
5
7
  import { useGetProjects } from "../../../api/hooks/project.mjs";
6
8
  import { useGetTags } from "../../../api/hooks/tag.mjs";
7
- import { Loader } from "../../Loader/index.mjs";
8
- import { Checkbox } from "../../Input/Checkbox.mjs";
9
9
  import { MultiSelect } from "../../Select/Multiselect.mjs";
10
10
  import { Select } from "../../Select/Select.mjs";
11
11
  import { useForm as useForm$1 } from "../../Form/FormBase.mjs";
12
12
  import { Form } from "../../Form/Form.mjs";
13
13
  import { useDictionaryDetailsSchema } from "./useDictionaryDetailsSchema.mjs";
14
14
  import { useEffect } from "react";
15
- import { useEditedContent } from "@intlayer/editor-react";
16
15
  import { WandSparkles } from "lucide-react";
17
16
  import { jsx, jsxs } from "react/jsx-runtime";
18
17
  import { useIntlayer } from "react-intlayer";
18
+ import { useEditedContent } from "@intlayer/editor-react";
19
19
  import { useWatch } from "react-hook-form";
20
20
  import { AnimatePresence, motion } from "framer-motion";
21
21
 
@@ -11,10 +11,10 @@ import { JSONEditor } from "./JSONEditor.mjs";
11
11
  import { SaveForm } from "./SaveForm/SaveForm.mjs";
12
12
  import { StructureEditor } from "./StructureEditor.mjs";
13
13
  import { useEffect, useState } from "react";
14
- import { useConfiguration, useDictionariesRecordActions, useFocusUnmergedDictionary } from "@intlayer/editor-react";
15
14
  import { ArrowLeft } from "lucide-react";
16
15
  import { jsx, jsxs } from "react/jsx-runtime";
17
16
  import { useIntlayer } from "react-intlayer";
17
+ import { useConfiguration, useDictionariesRecordActions, useFocusUnmergedDictionary } from "@intlayer/editor-react";
18
18
 
19
19
  //#region src/components/DictionaryFieldEditor/DictionaryFieldEditor.tsx
20
20
  const DictionaryFieldEditor = ({ dictionary, onClickDictionaryList, isDarkMode, mode, onDelete, onSave, showReturnButton = true }) => {
@@ -1,6 +1,6 @@
1
1
  import { MonacoCode } from "../IDE/MonacoCode.mjs";
2
- import { useEditedContent } from "@intlayer/editor-react";
3
2
  import { jsx } from "react/jsx-runtime";
3
+ import { useEditedContent } from "@intlayer/editor-react";
4
4
 
5
5
  //#region src/components/DictionaryFieldEditor/JSONEditor.tsx
6
6
  const JSONEditor = ({ dictionary, isDarkMode }) => {
@@ -3,10 +3,10 @@ import { Accordion } from "../../Accordion/Accordion.mjs";
3
3
  import { useLocaleSwitcherContent } from "../../LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs";
4
4
  import { getIsEditableSection } from "../getIsEditableSection.mjs";
5
5
  import { useState } from "react";
6
- import { useEditedContentActions, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
7
6
  import { ChevronRight, Plus } from "lucide-react";
8
7
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
8
  import { useIntlayer } from "react-intlayer";
9
+ import { useEditedContentActions, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
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,16 +1,16 @@
1
1
  'use client';
2
2
 
3
+ import { cn } from "../../../utils/cn.mjs";
3
4
  import { useAuth } from "../../../api/useAuth/useAuth.mjs";
4
5
  import { useDeleteDictionary, usePushDictionaries } from "../../../api/hooks/dictionary.mjs";
5
6
  import { useWriteDictionary } from "../../../api/hooks/editor.mjs";
6
- import { cn } from "../../../utils/cn.mjs";
7
7
  import { Form } from "../../Form/Form.mjs";
8
8
  import { Modal } from "../../Modal/Modal.mjs";
9
9
  import { useState } from "react";
10
- import { useDictionariesRecordActions, useEditedContent } from "@intlayer/editor-react";
11
10
  import { ArrowUpFromLine, Download, RotateCcw, Save, Trash } from "lucide-react";
12
11
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
13
12
  import { useIntlayer } from "react-intlayer";
13
+ import { useDictionariesRecordActions, useEditedContent } from "@intlayer/editor-react";
14
14
 
15
15
  //#region src/components/DictionaryFieldEditor/SaveForm/SaveForm.tsx
16
16
  const SaveForm = ({ dictionary, mode, className, onDelete, onSave, ...props }) => {
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
3
  import { NodeView } from "./StructureView/StructureView.mjs";
4
- import { useEditedContent } from "@intlayer/editor-react";
5
4
  import { jsx } from "react/jsx-runtime";
5
+ import { useEditedContent } from "@intlayer/editor-react";
6
6
 
7
7
  //#region src/components/DictionaryFieldEditor/StructureEditor.tsx
8
8
  const StructureEditor = ({ dictionary }) => {
@@ -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 { useConfiguration, useEditedContentActions, useFocusUnmergedDictionary } from "@intlayer/editor-react";
8
7
  import { Plus, Trash } from "lucide-react";
9
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
9
  import { useIntlayer } from "react-intlayer";
10
+ import { useConfiguration, useEditedContentActions, useFocusUnmergedDictionary } from "@intlayer/editor-react";
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";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import { useKeyboardDetector } from "../../hooks/useKeyboardDetector.mjs";
4
3
  import { cn } from "../../utils/cn.mjs";
4
+ import { useKeyboardDetector } from "../../hooks/useKeyboardDetector.mjs";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
 
7
7
  //#region src/components/KeyboardScreenAdapter/index.tsx
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import { useDevice } from "../../hooks/useDevice.mjs";
4
3
  import { cn } from "../../utils/cn.mjs";
4
+ import { useDevice } from "../../hooks/useDevice.mjs";
5
5
  import { useEffect, useState } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
 
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
+ import { cn } from "../../utils/cn.mjs";
3
4
  import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
4
5
  import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
5
- import { cn } from "../../utils/cn.mjs";
6
6
  import { Button } from "../Button/Button.mjs";
7
7
  import { Container } from "../Container/index.mjs";
8
8
  import { H3 } from "../Headers/index.mjs";
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
+ import { cn } from "../../utils/cn.mjs";
3
4
  import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
4
5
  import { useScrollDetection } from "../../hooks/useScrollDetection.mjs";
5
- import { cn } from "../../utils/cn.mjs";
6
6
  import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
7
7
  import { Burger } from "./Burger.mjs";
8
8
  import { useRef, useState } from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import { useItemSelector } from "../../hooks/useItemSelector.mjs";
4
3
  import { cn } from "../../utils/cn.mjs";
4
+ import { useItemSelector } from "../../hooks/useItemSelector.mjs";
5
5
  import { Button } from "../Button/Button.mjs";
6
6
  import { useEffect, useRef } from "react";
7
7
  import { cva } from "class-variance-authority";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import { useHorizontalSwipe } from "../../hooks/useHorizontalSwipe.mjs";
4
3
  import { cn } from "../../utils/cn.mjs";
4
+ import { useHorizontalSwipe } from "../../hooks/useHorizontalSwipe.mjs";
5
5
  import { TabSelector } from "../TabSelector/TabSelector.mjs";
6
6
  import { useTabContext } from "./TabContext.mjs";
7
7
  import { Children, createContext, isValidElement, useState } from "react";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import { useItemSelector } from "../../hooks/useItemSelector.mjs";
4
3
  import { cn } from "../../utils/cn.mjs";
4
+ import { useItemSelector } from "../../hooks/useItemSelector.mjs";
5
5
  import { cloneElement, useEffect, useRef } from "react";
6
6
  import { cva } from "class-variance-authority";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
 
3
3
  import { useToast } from "../components/Toaster/useToast.mjs";
4
- import { useRef } from "react";
5
- import { MutationCache, QueryClient, QueryClientProvider } from "@tanstack/react-query";
6
4
  import { createAsyncStoragePersister } from "@tanstack/query-async-storage-persister";
5
+ import { MutationCache, QueryClient, QueryClientProvider } from "@tanstack/react-query";
7
6
  import { PersistQueryClientProvider } from "@tanstack/react-query-persist-client";
7
+ import { useRef } from "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
 
10
10
  //#region src/providers/ReactQueryProvider.tsx
@@ -9,13 +9,13 @@ type UseIntlayerAuthProps = {
9
9
  };
10
10
  declare const useIntlayerOAuthOptions: (props?: UseIntlayerAuthProps) => {
11
11
  options: {
12
- mode?: RequestMode;
13
12
  cache?: RequestCache;
14
13
  credentials?: RequestCredentials;
15
14
  headers: HeadersInit;
16
15
  integrity?: string;
17
16
  keepalive?: boolean;
18
17
  method?: string;
18
+ mode?: RequestMode;
19
19
  priority?: RequestPriority;
20
20
  redirect?: RequestRedirect;
21
21
  referrer?: string;
@@ -22,7 +22,7 @@ type BadgeSize = 'sm' | 'md' | 'lg';
22
22
  * @description Defines the styling variants for different badge combinations
23
23
  */
24
24
  declare const badgeVariants: (props?: {
25
- color?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark" | "custom";
25
+ color?: "error" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark" | "success" | "custom";
26
26
  variant?: "default" | "none" | "outline" | "hoverable";
27
27
  size?: "sm" | "md" | "lg";
28
28
  } & import("class-variance-authority/types").ClassProp) => string;
@@ -24,10 +24,10 @@ type ButtonTextAlign = 'left' | 'center' | 'right';
24
24
  */
25
25
  declare const buttonVariants: (props?: {
26
26
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl";
27
- color?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "card" | "light" | "dark" | "current" | "text-inverse" | "custom";
27
+ color?: "error" | "text" | "primary" | "secondary" | "neutral" | "light" | "text-inverse" | "dark" | "success" | "custom" | "card" | "current";
28
28
  roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "4xl" | "5xl" | "full";
29
- variant?: "link" | "input" | "default" | "none" | "outline" | "invisible-link" | "hoverable" | "fade";
30
- textAlign?: "left" | "center" | "right";
29
+ variant?: "default" | "input" | "none" | "link" | "outline" | "invisible-link" | "hoverable" | "fade";
30
+ textAlign?: "center" | "left" | "right";
31
31
  isFullWidth?: boolean;
32
32
  } & import("class-variance-authority/types").ClassProp) => string;
33
33
  /**
@@ -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">, "value" | "onChange" | "type"> & {
31
31
  value?: string;
32
32
  onValueChange?: (search: string) => void;
33
33
  } & import("react").RefAttributes<HTMLInputElement>>;
@@ -71,7 +71,7 @@ declare const Command: {
71
71
  ref?: React.Ref<HTMLDivElement>;
72
72
  } & {
73
73
  asChild?: boolean;
74
- }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "onSelect" | "value"> & {
74
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "value" | "onSelect"> & {
75
75
  disabled?: boolean;
76
76
  onSelect?: (value: string) => void;
77
77
  value?: string;
@@ -12,7 +12,7 @@ declare const containerVariants: (props?: {
12
12
  padding?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
13
13
  separator?: "both" | "without" | "x" | "y";
14
14
  border?: "with" | "none";
15
- borderColor?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "card" | "warning";
15
+ borderColor?: "error" | "text" | "primary" | "secondary" | "neutral" | "success" | "card" | "warning";
16
16
  background?: "with" | "none" | "hoverable";
17
17
  gap?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
18
18
  } & import("class-variance-authority/types").ClassProp) => string;
@@ -5,8 +5,8 @@ import { VariantProps } from "class-variance-authority";
5
5
  declare const checkboxVariants: (props?: {
6
6
  variant?: "default";
7
7
  size?: "xs" | "sm" | "md" | "lg";
8
- color?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark" | "text-inverse" | "custom";
9
- validationStyleEnabled?: "enabled" | "disabled";
8
+ color?: "error" | "text" | "primary" | "secondary" | "neutral" | "light" | "text-inverse" | "dark" | "success" | "custom";
9
+ validationStyleEnabled?: "disabled" | "enabled";
10
10
  } & import("class-variance-authority/types").ClassProp) => string;
11
11
  type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg';
12
12
  type CheckboxColor = 'primary' | 'secondary' | 'neutral' | 'light' | 'text' | 'text-inverse' | 'dark' | 'error' | 'success' | 'custom';
@@ -5,7 +5,7 @@ import { VariantProps } from "class-variance-authority";
5
5
  declare const inputVariants: (props?: {
6
6
  variant?: "default" | "invisible";
7
7
  size?: "sm" | "md" | "lg";
8
- validationStyleEnabled?: "enabled" | "disabled";
8
+ validationStyleEnabled?: "disabled" | "enabled";
9
9
  } & import("class-variance-authority/types").ClassProp) => string;
10
10
  type InputVariant = 'default' | 'invisible';
11
11
  type InputSize = 'md' | 'lg';
@@ -5,8 +5,8 @@ import { VariantProps } from "class-variance-authority";
5
5
  declare const radioVariants: (props?: {
6
6
  variant?: "default";
7
7
  size?: "xs" | "sm" | "md" | "lg";
8
- color?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark" | "text-inverse" | "custom";
9
- validationStyleEnabled?: "enabled" | "disabled";
8
+ color?: "error" | "text" | "primary" | "secondary" | "neutral" | "light" | "text-inverse" | "dark" | "success" | "custom";
9
+ validationStyleEnabled?: "disabled" | "enabled";
10
10
  } & import("class-variance-authority/types").ClassProp) => string;
11
11
  type RadioSize = 'xs' | 'sm' | 'md' | 'lg';
12
12
  type RadioColor = 'primary' | 'secondary' | 'neutral' | 'light' | 'text' | 'text-inverse' | 'dark' | 'error' | 'success' | 'custom';
@@ -12,9 +12,9 @@ type LinkRoundedSize = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'ful
12
12
  type LinkSize = 'sm' | 'md' | 'lg' | 'xl' | 'custom';
13
13
  type LinkUnderlined = 'default' | 'true' | 'false';
14
14
  declare const linkVariants: (props?: {
15
- variant?: "default" | "invisible-link" | "hoverable" | "button" | "button-outlined";
15
+ variant?: "default" | "button" | "invisible-link" | "hoverable" | "button-outlined";
16
16
  roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "full";
17
- color?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark" | "text-inverse" | "custom";
17
+ color?: "error" | "text" | "primary" | "secondary" | "neutral" | "light" | "text-inverse" | "dark" | "success" | "custom";
18
18
  size?: "sm" | "md" | "lg" | "xl" | "custom";
19
19
  underlined?: boolean | "default";
20
20
  } & import("class-variance-authority/types").ClassProp) => string;
@@ -3,7 +3,7 @@ import { VariantProps } from "class-variance-authority";
3
3
 
4
4
  //#region src/components/SwitchSelector/VerticalSwitchSelector.d.ts
5
5
  declare const verticalSwitchSelectorVariant: (props?: {
6
- color?: "error" | "text" | "primary" | "secondary" | "neutral" | "light" | "dark";
6
+ color?: "text" | "error" | "primary" | "secondary" | "neutral" | "light" | "dark";
7
7
  disabled?: boolean;
8
8
  } & import("class-variance-authority/types").ClassProp) => string;
9
9
  declare const verticalChoiceVariant: (props?: {
@@ -146,7 +146,7 @@ type TagBorder = 'none' | 'with';
146
146
  type TagBackground = 'none' | 'with';
147
147
  declare const containerVariants: (props?: {
148
148
  roundedSize?: "sm" | "md" | "lg" | "xl" | "none" | "full" | "xxl" | "xxxl";
149
- color?: "error" | "success" | "text" | "primary" | "neutral" | "warning" | "blue" | "yellow" | "green" | "red" | "orange" | "purple" | "pink" | "brown" | "gray" | "black" | "white";
149
+ color?: "error" | "text" | "primary" | "neutral" | "success" | "warning" | "blue" | "yellow" | "green" | "red" | "orange" | "purple" | "pink" | "brown" | "gray" | "black" | "white";
150
150
  size?: "xs" | "sm" | "md" | "lg" | "xl";
151
151
  border?: "with" | "none";
152
152
  background?: "with" | "none";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/design-system",
3
- "version": "8.12.0",
3
+ "version": "8.12.1",
4
4
  "private": false,
5
5
  "description": "Intlayer design system, including UI components used in the Intlayer editor, website, and visual editor/CMS.",
6
6
  "keywords": [
@@ -430,12 +430,12 @@
430
430
  "dependencies": {
431
431
  "@better-auth/passkey": "1.6.14",
432
432
  "@better-auth/sso": "1.6.14",
433
- "@intlayer/api": "8.12.0",
434
- "@intlayer/config": "8.12.0",
435
- "@intlayer/core": "8.12.0",
436
- "@intlayer/dictionaries-entry": "8.12.0",
437
- "@intlayer/editor-react": "8.12.0",
438
- "@intlayer/types": "8.12.0",
433
+ "@intlayer/api": "8.12.1",
434
+ "@intlayer/config": "8.12.1",
435
+ "@intlayer/core": "8.12.1",
436
+ "@intlayer/dictionaries-entry": "8.12.1",
437
+ "@intlayer/editor-react": "8.12.1",
438
+ "@intlayer/types": "8.12.1",
439
439
  "@radix-ui/react-dialog": "1.1.15",
440
440
  "@radix-ui/react-select": "2.2.6",
441
441
  "@radix-ui/react-slot": "1.2.4",
@@ -450,12 +450,12 @@
450
450
  "defu": "6.1.7",
451
451
  "dompurify": "^3.4.7",
452
452
  "isomorphic-dompurify": "^3.15.0",
453
- "react-intlayer": "8.12.0",
453
+ "react-intlayer": "8.12.1",
454
454
  "rollup-preserve-directives": "1.1.3",
455
455
  "zod": "4.4.3"
456
456
  },
457
457
  "devDependencies": {
458
- "@intlayer/backend": "8.12.0",
458
+ "@intlayer/backend": "8.12.1",
459
459
  "@shikijs/transformers": "4.1.0",
460
460
  "@storybook/addon-a11y": "8.6.14",
461
461
  "@storybook/addon-essentials": "8.6.14",
@@ -486,7 +486,7 @@
486
486
  "@utils/ts-config-types": "1.0.4",
487
487
  "clsx": "2.1.1",
488
488
  "fast-glob": "3.3.3",
489
- "intlayer": "8.12.0",
489
+ "intlayer": "8.12.1",
490
490
  "rimraf": "6.1.3",
491
491
  "shiki": "4.1.0",
492
492
  "storybook": "8.6.17",
@@ -494,26 +494,26 @@
494
494
  "tsdown": "0.22.1",
495
495
  "typescript": "6.0.3",
496
496
  "vite": "8.0.16",
497
- "vite-intlayer": "8.12.0",
497
+ "vite-intlayer": "8.12.1",
498
498
  "vite-plugin-dts": "5.0.1",
499
499
  "vitest": "4.1.8"
500
500
  },
501
501
  "peerDependencies": {
502
502
  "@better-fetch/fetch": "1.1.21",
503
503
  "@hookform/resolvers": "^5.4.0",
504
- "@intlayer/backend": "8.12.0",
504
+ "@intlayer/backend": "8.12.1",
505
505
  "@monaco-editor/react": "4.7.0",
506
506
  "@shikijs/transformers": "4.1.0",
507
507
  "@tanstack/react-query": "5.101.0",
508
508
  "@tanstack/react-query-devtools": "5.101.0",
509
509
  "framer-motion": "12.40.0",
510
510
  "fuse.js": "7.4.1",
511
- "intlayer": "8.12.0",
511
+ "intlayer": "8.12.1",
512
512
  "lucide-react": "1.17.0",
513
513
  "react": ">=16.0.0",
514
514
  "react-dom": ">=16.0.0",
515
515
  "react-hook-form": "7.77.0",
516
- "react-intlayer": "8.12.0",
516
+ "react-intlayer": "8.12.1",
517
517
  "shiki": "4.1.0",
518
518
  "tailwindcss": "4.3.0"
519
519
  },