@intlayer/design-system 9.0.0-canary.2 → 9.0.0-canary.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/api/hooks/utils.mjs +1 -1
- package/dist/esm/api/index.mjs +2 -2
- package/dist/esm/api/useAuth/useOAuth2.mjs +2 -2
- package/dist/esm/api/useAuth/useSession.mjs +1 -1
- package/dist/esm/components/Breadcrumb/index.mjs +1 -1
- package/dist/esm/components/CollapsibleTable/CollapsibleTable.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/DictionaryEditor.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/BooleanWrapper.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/FileWrapper.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/NumberWrapper.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/index.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditor.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +6 -6
- package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/JSONEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/StructureEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs +1 -1
- package/dist/esm/components/Form/elements/OTPElement.mjs +1 -1
- package/dist/esm/components/Input/OTPInput.mjs +1 -1
- package/dist/esm/components/Link/Link.mjs +1 -1
- package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
- package/dist/esm/components/MarkdownEditor/generative/AISelector.mjs +1 -1
- package/dist/esm/components/Modal/Modal.mjs +3 -3
- package/dist/esm/components/Navbar/MobileNavbar.mjs +1 -1
- package/dist/esm/components/Pagination/Pagination.mjs +2 -2
- package/dist/esm/components/RightDrawer/RightDrawer.mjs +3 -3
- package/dist/esm/components/Tab/Tab.mjs +1 -1
- package/dist/esm/components/Toaster/Toast.mjs +2 -2
- package/dist/esm/components/index.mjs +3 -3
- package/dist/esm/hooks/index.mjs +8 -8
- package/dist/esm/providers/ReactQueryProvider.mjs +2 -2
- package/dist/types/components/Badge/index.d.ts +2 -2
- package/dist/types/components/Button/Button.d.ts +2 -2
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +2 -2
- package/dist/types/components/Command/index.d.ts +2 -2
- package/dist/types/components/Container/index.d.ts +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.d.ts +2 -2
- package/dist/types/components/Input/Checkbox.d.ts +2 -2
- package/dist/types/components/Input/Input.d.ts +1 -1
- package/dist/types/components/Input/Radio.d.ts +2 -2
- package/dist/types/components/Link/Link.d.ts +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +1 -1
- package/dist/types/components/SwitchSelector/SwitchSelector.d.ts +2 -2
- package/dist/types/components/SwitchSelector/VerticalSwitchSelector.d.ts +1 -1
- package/dist/types/components/TabSelector/TabSelector.d.ts +1 -1
- package/dist/types/components/Tag/index.d.ts +1 -1
- package/dist/types/components/Toaster/Toast.d.ts +1 -1
- package/package.json +15 -15
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { useAuth } from "../useAuth/useAuth.mjs";
|
|
4
|
-
import { useQuery } from "@tanstack/react-query";
|
|
5
4
|
import { useConfiguration } from "@intlayer/editor-react";
|
|
5
|
+
import { useQuery } from "@tanstack/react-query";
|
|
6
6
|
|
|
7
7
|
//#region src/api/hooks/utils.ts
|
|
8
8
|
const useAuthEnable = ({ requireUser, requireProject, requireOrganization }) => {
|
package/dist/esm/api/index.mjs
CHANGED
|
@@ -2,11 +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, 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";
|
|
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";
|
|
7
5
|
import { useAskDocQuestion, useAuditContentDeclaration, useAuditContentDeclarationField, useAuditContentDeclarationMetadata, useAuditTag, useAutocomplete, useChat, useCustomQuery, useGetAIStats, useTranslateJSONDeclaration } from "./hooks/ai.mjs";
|
|
8
6
|
import { useDeleteAsset, useGetAssetById, useGetAssets, useUpdateAsset, useUploadAsset } from "./hooks/asset.mjs";
|
|
9
7
|
import { useAuditScan, useGetRecursiveAuditStatus, useStartRecursiveAudit } from "./hooks/audit.mjs";
|
|
8
|
+
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";
|
|
10
9
|
import { useBitbucketAuth, useBitbucketCheckConfig, useBitbucketGetConfigFile, useBitbucketRepos } from "./hooks/bitbucket.mjs";
|
|
11
10
|
import { useAddDictionary, useDeleteDictionary, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useInfiniteGetDictionaries, usePushDictionaries, useUpdateDictionary } from "./hooks/dictionary.mjs";
|
|
12
11
|
import { useGetDiscussions, useGetDiscussionsData } from "./hooks/discussions.mjs";
|
|
@@ -24,5 +23,6 @@ import { useAcceptAffiliateInvitation, useCancelSubscription, useCreatePortalSes
|
|
|
24
23
|
import { useAddTag, useDeleteTag, useGetTags, useUpdateTag } from "./hooks/tag.mjs";
|
|
25
24
|
import { useFillAllTranslations, usePauseTranslationJob, useResumeTranslationJob, useStopTranslationJob } from "./hooks/translate.mjs";
|
|
26
25
|
import { useCreateUser, useDeleteUser, useGetUserById, useGetUsers, useUpdateUser, useUploadUserAvatar } from "./hooks/user.mjs";
|
|
26
|
+
import { useUser } from "./useUser/index.mjs";
|
|
27
27
|
|
|
28
28
|
export { useAcceptAffiliateInvitation, useAddDictionary, useAddEnvironment, useAddNewAccessKey, useAddOrganization, useAddOrganizationMember, useAddPasskey, useAddProject, useAddTag, useAiAPI, 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, useGetAssetById, useGetAssets, useGetCIConfig, useGetChatHistory, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useGetDiscussions, useGetDiscussionsData, useGetEditorDictionaries, 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, useUpdateOrganizationMembers, useUpdateOrganizationMembersById, useUpdateProject, useUpdateProjectMembers, useUpdatePromoCode, useUpdateReviewerProfile, useUpdateShowcaseProject, useUpdateTag, useUpdateUser, useUploadAsset, useUploadReviewerCoverPicture, useUploadReviewerMainPicture, useUploadUserAvatar, useUser, useUserAPI, useValidateReviewerProfile, useVerifyBackupCode, useVerifyEmail, useVerifyTotp, useWriteDictionary };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { editor } from "@intlayer/config/built";
|
|
4
|
-
import { useQuery } from "@tanstack/react-query";
|
|
5
3
|
import { getOAuthAPI } from "@intlayer/api";
|
|
6
4
|
import { useConfiguration } from "@intlayer/editor-react";
|
|
5
|
+
import { editor } from "@intlayer/config/built";
|
|
6
|
+
import { useQuery } from "@tanstack/react-query";
|
|
7
7
|
import { defu } from "defu";
|
|
8
8
|
|
|
9
9
|
//#region src/api/useAuth/useOAuth2.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { getAuthAPI } from "../../libs/auth.mjs";
|
|
4
|
+
import { useConfiguration } from "@intlayer/editor-react";
|
|
4
5
|
import { editor } from "@intlayer/config/built";
|
|
5
6
|
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) => {
|
|
@@ -4,8 +4,8 @@ import { cn } from "../../utils/cn.mjs";
|
|
|
4
4
|
import { Button } from "../Button/Button.mjs";
|
|
5
5
|
import { Link } from "../Link/Link.mjs";
|
|
6
6
|
import { Fragment, createElement } from "react";
|
|
7
|
-
import { cva } from "class-variance-authority";
|
|
8
7
|
import { ChevronRightIcon } from "lucide-react";
|
|
8
|
+
import { cva } from "class-variance-authority";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { getIntlayer } from "intlayer";
|
|
11
11
|
import { useIntlayer } from "react-intlayer";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
|
|
5
5
|
import { useState } from "react";
|
|
6
|
-
import { cva } from "class-variance-authority";
|
|
7
6
|
import { ChevronRight } from "lucide-react";
|
|
7
|
+
import { cva } from "class-variance-authority";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/CollapsibleTable/CollapsibleTable.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
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
6
|
import { useEffect, useState } from "react";
|
|
7
7
|
import { Check, X } from "lucide-react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { NodeWrapper } from "./NodeWrapper/index.mjs";
|
|
4
|
+
import { useEditedContent, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
4
5
|
import { createElement } from "react";
|
|
5
6
|
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 { Fragment, jsx } from "react/jsx-runtime";
|
|
6
5
|
import { useEditorLocale } from "@intlayer/editor-react";
|
|
6
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
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 { jsx, jsxs } from "react/jsx-runtime";
|
|
3
2
|
import { useEditedContent } from "@intlayer/editor-react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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 { Fragment, jsx } from "react/jsx-runtime";
|
|
4
3
|
import { useEditorLocale } from "@intlayer/editor-react";
|
|
4
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
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 { Fragment, jsx } from "react/jsx-runtime";
|
|
4
3
|
import { useEditorLocale } from "@intlayer/editor-react";
|
|
4
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
5
5
|
import { getContentNodeByKeyPath } from "@intlayer/core/dictionaryManipulator";
|
|
6
6
|
|
|
7
7
|
//#region src/components/DictionaryEditor/NodeWrapper/StringWrapper.tsx
|
|
@@ -13,9 +13,9 @@ import { NestedObjectWrapper } from "./NestedObjectWrapper.mjs";
|
|
|
13
13
|
import { NumberWrapper } from "./NumberWrapper.mjs";
|
|
14
14
|
import { PluralWrapper } from "./PluralWrapper.mjs";
|
|
15
15
|
import { TranslationWrapper } from "./TranslationWrapper.mjs";
|
|
16
|
+
import { useEditorLocale } from "@intlayer/editor-react";
|
|
16
17
|
import { memo, useMemo } from "react";
|
|
17
18
|
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
|
|
|
@@ -1,17 +1,17 @@
|
|
|
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 { Pagination } from "../Pagination/Pagination.mjs";
|
|
7
7
|
import { TextEditorContainer } from "./ContentEditorView/TextEditor.mjs";
|
|
8
8
|
import { getIsEditableSection } from "./getIsEditableSection.mjs";
|
|
9
9
|
import { KeyPathBreadcrumb } from "./KeyPathBreadcrumb.mjs";
|
|
10
10
|
import { NavigationViewNode } from "./NavigationView/NavigationViewNode.mjs";
|
|
11
|
+
import { useEditedContent, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
11
12
|
import { useCallback, useDeferredValue, useEffect, useMemo, useState, useTransition } from "react";
|
|
12
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
14
|
import { useIntlayer } from "react-intlayer";
|
|
14
|
-
import { useEditedContent, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
15
15
|
import { getContentNodeByKeyPath } from "@intlayer/core/dictionaryManipulator";
|
|
16
16
|
|
|
17
17
|
//#region src/components/DictionaryFieldEditor/ContentEditor.tsx
|
|
@@ -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 { useLocaleSwitcherContent } from "../../LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.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
|
+
import { useConfiguration, useEditedContent } from "@intlayer/editor-react";
|
|
16
17
|
import { Fragment, Suspense, lazy, memo, useState } from "react";
|
|
17
18
|
import { Plus, Trash, WandSparkles } from "lucide-react";
|
|
18
19
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
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";
|
package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs
CHANGED
|
@@ -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";
|
package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs
CHANGED
|
@@ -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 { Pagination } from "../../Pagination/Pagination.mjs";
|
|
@@ -28,11 +28,11 @@ import { useForm as useForm$1 } from "../../Form/FormBase.mjs";
|
|
|
28
28
|
import { Form } from "../../Form/Form.mjs";
|
|
29
29
|
import { MonacoCode } from "../../IDE/MonacoCode.mjs";
|
|
30
30
|
import { useDictionaryDetailsSchema } from "./useDictionaryDetailsSchema.mjs";
|
|
31
|
+
import { useEditedContent } from "@intlayer/editor-react";
|
|
31
32
|
import { useEffect, useMemo, useState } from "react";
|
|
32
33
|
import { WandSparkles } from "lucide-react";
|
|
33
34
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
34
35
|
import { useIntlayer } from "react-intlayer";
|
|
35
|
-
import { useEditedContent } from "@intlayer/editor-react";
|
|
36
36
|
import { useWatch } from "react-hook-form";
|
|
37
37
|
import { AnimatePresence, motion } from "framer-motion";
|
|
38
38
|
|
|
@@ -10,11 +10,11 @@ import { DictionaryDetailsForm } from "./DictionaryDetails/DictionaryDetailsForm
|
|
|
10
10
|
import { JSONEditor } from "./JSONEditor.mjs";
|
|
11
11
|
import { SaveForm } from "./SaveForm/SaveForm.mjs";
|
|
12
12
|
import { StructureEditor } from "./StructureEditor.mjs";
|
|
13
|
+
import { useConfiguration, useDictionariesRecordActions, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
13
14
|
import { useEffect, useState } from "react";
|
|
14
15
|
import { ArrowLeft } from "lucide-react";
|
|
15
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
17
|
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, rightContent }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MonacoCode } from "../IDE/MonacoCode.mjs";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { useEditedContent } from "@intlayer/editor-react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/DictionaryFieldEditor/JSONEditor.tsx
|
|
6
6
|
const JSONEditor = ({ dictionary, isDarkMode }) => {
|
|
@@ -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 { useEditedContentActions, useEditorLocale, useFocusUnmergedDictionary } from "@intlayer/editor-react";
|
|
5
6
|
import { useState } from "react";
|
|
6
7
|
import { ChevronRight, Plus } from "lucide-react";
|
|
7
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
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,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 { useDictionariesRecordActions, useEditedContent } from "@intlayer/editor-react";
|
|
10
11
|
import { useState } from "react";
|
|
11
12
|
import { ArrowUpFromLine, Download, RotateCcw, Save, Trash } from "lucide-react";
|
|
12
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
14
|
import { useIntlayer } from "react-intlayer";
|
|
14
|
-
import { useDictionariesRecordActions, useEditedContent } from "@intlayer/editor-react";
|
|
15
15
|
|
|
16
16
|
//#region src/components/DictionaryFieldEditor/SaveForm/SaveForm.tsx
|
|
17
17
|
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 { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { useEditedContent } from "@intlayer/editor-react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
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";
|
|
7
8
|
import { Plus, Trash } from "lucide-react";
|
|
8
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
10
|
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 { 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";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
4
|
import { Button } from "../Button/Button.mjs";
|
|
5
5
|
import { createContext, useContext, useEffect, useRef, useState } from "react";
|
|
6
|
-
import { cva } from "class-variance-authority";
|
|
7
6
|
import { MinusIcon } from "lucide-react";
|
|
7
|
+
import { cva } from "class-variance-authority";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/components/Input/OTPInput.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn } from "../../utils/cn.mjs";
|
|
2
2
|
import { isValidElement } from "react";
|
|
3
|
-
import { cva } from "class-variance-authority";
|
|
4
3
|
import { ExternalLink, MoveRight } from "lucide-react";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { getLocalizedUrl } from "@intlayer/core/localization";
|
|
7
7
|
|
|
@@ -1,11 +1,11 @@
|
|
|
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
10
|
import { useMemo, useRef, useState } from "react";
|
|
11
11
|
import { Check, Globe, MoveVertical } from "lucide-react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { toast } from "../../Toaster/useToast.mjs";
|
|
4
3
|
import { Loader } from "../../Loader/index.mjs";
|
|
5
4
|
import { Button } from "../../Button/Button.mjs";
|
|
6
5
|
import { Command, CommandRoot } from "../../Command/index.mjs";
|
|
7
6
|
import { MarkdownRenderer as MarkdownRenderer$1 } from "../../MarkDownRender/MarkDownRender.mjs";
|
|
8
7
|
import { useEditor } from "../novel/components/index.mjs";
|
|
9
8
|
import { addAIHighlight } from "../novel/extensions/ai-highlight.mjs";
|
|
9
|
+
import { toast } from "../../Toaster/useToast.mjs";
|
|
10
10
|
import { AICompletionCommands } from "./AICompletionCommands.mjs";
|
|
11
11
|
import { AISelectorCommands } from "./AISelectorCommands.mjs";
|
|
12
12
|
import { useAICompletion } from "./useAICompletion.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { Button } from "../Button/Button.mjs";
|
|
5
|
-
import { Container } from "../Container/index.mjs";
|
|
6
4
|
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
7
5
|
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
6
|
+
import { Button } from "../Button/Button.mjs";
|
|
7
|
+
import { Container } from "../Container/index.mjs";
|
|
8
8
|
import { H3 } from "../Headers/index.mjs";
|
|
9
9
|
import { useEffect } from "react";
|
|
10
|
-
import { cva } from "class-variance-authority";
|
|
11
10
|
import { X } from "lucide-react";
|
|
11
|
+
import { cva } from "class-variance-authority";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { motion } from "framer-motion";
|
|
14
14
|
import { createPortal } from "react-dom";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
|
|
5
4
|
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
6
5
|
import { useScrollDetection } from "../../hooks/useScrollDetection.mjs";
|
|
6
|
+
import { MaxHeightSmoother } from "../MaxHeightSmoother/index.mjs";
|
|
7
7
|
import { Burger } from "./Burger.mjs";
|
|
8
8
|
import { useRef, useState } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { Button } from "../Button/Button.mjs";
|
|
5
4
|
import { useItemSelector } from "../../hooks/useItemSelector.mjs";
|
|
5
|
+
import { Button } from "../Button/Button.mjs";
|
|
6
6
|
import { useEffect, useRef } from "react";
|
|
7
|
-
import { cva } from "class-variance-authority";
|
|
8
7
|
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
|
|
8
|
+
import { cva } from "class-variance-authority";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useIntlayer } from "react-intlayer";
|
|
11
11
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
4
|
+
import { useDevice } from "../../hooks/useDevice.mjs";
|
|
5
|
+
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
3
6
|
import { Button } from "../Button/Button.mjs";
|
|
4
7
|
import { Container } from "../Container/index.mjs";
|
|
5
|
-
import { useDevice } from "../../hooks/useDevice.mjs";
|
|
6
8
|
import { KeyboardShortcut } from "../KeyboardShortcut/KeyboardShortcut.mjs";
|
|
7
9
|
import { Popover } from "../Popover/dynamic.mjs";
|
|
8
|
-
import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
|
|
9
|
-
import { useScrollBlockage } from "../../hooks/useScrollBlockage/index.mjs";
|
|
10
10
|
import { MaxWidthSmoother } from "../MaxWidthSmoother/index.mjs";
|
|
11
11
|
import { isElementAtTopAndNotCovered } from "./isElementAtTopAndNotCovered.mjs";
|
|
12
12
|
import { useRightDrawer } from "./useRightDrawer.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import { TabSelector } from "../TabSelector/TabSelector.mjs";
|
|
5
4
|
import { useHorizontalSwipe } from "../../hooks/useHorizontalSwipe.mjs";
|
|
5
|
+
import { TabSelector } from "../TabSelector/TabSelector.mjs";
|
|
6
6
|
import { useTabContext } from "./TabContext.mjs";
|
|
7
7
|
import { Children, createContext, isValidElement, useState } from "react";
|
|
8
8
|
import { cva } from "class-variance-authority";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { cn } from "../../utils/cn.mjs";
|
|
4
|
-
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
5
|
-
import { cva } from "class-variance-authority";
|
|
6
4
|
import { X } from "lucide-react";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
8
8
|
|
|
9
9
|
//#region src/components/Toaster/Toast.tsx
|
|
10
10
|
const ToastProvider = ToastPrimitives;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, toastVariants } from "./Toaster/Toast.mjs";
|
|
2
|
-
import { reducer, toast, useToast } from "./Toaster/useToast.mjs";
|
|
3
|
-
import { Toaster } from "./Toaster/Toaster.mjs";
|
|
4
1
|
import { Loader } from "./Loader/index.mjs";
|
|
5
2
|
import { Button, buttonVariants } from "./Button/Button.mjs";
|
|
6
3
|
import { MaxHeightSmoother } from "./MaxHeightSmoother/index.mjs";
|
|
@@ -121,6 +118,9 @@ import { SmartTable } from "./Table/SmartTable.mjs";
|
|
|
121
118
|
import { Hr, Td, Th, Tr } from "./Table/TableElements.mjs";
|
|
122
119
|
import { MarkdownRenderer, baseMarkdownComponents, getIntlayerMarkdownOptions } from "./MarkDownRender/MarkDownRender.mjs";
|
|
123
120
|
import { createEditorUploadFn } from "./MarkdownEditor/imageUpload.mjs";
|
|
121
|
+
import { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, toastVariants } from "./Toaster/Toast.mjs";
|
|
122
|
+
import { reducer, toast, useToast } from "./Toaster/useToast.mjs";
|
|
123
|
+
import { Toaster } from "./Toaster/Toaster.mjs";
|
|
124
124
|
import { MarkdownEditor } from "./MarkdownEditor/MarkdownEditor.mjs";
|
|
125
125
|
import { MaxWidthSmoother } from "./MaxWidthSmoother/index.mjs";
|
|
126
126
|
import { DesktopNavbar } from "./Navbar/DesktopNavbar.mjs";
|
package/dist/esm/hooks/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useItemSelector } from "./useItemSelector.mjs";
|
|
3
|
-
import { usePersistedStore } from "./usePersistedStore.mjs";
|
|
4
|
-
import { useGetElementById } from "./useGetElementById.mjs";
|
|
1
|
+
import { useKeyboardDetector } from "./useKeyboardDetector.mjs";
|
|
5
2
|
import { useGetElementOrWindow } from "./useGetElementOrWindow.mjs";
|
|
3
|
+
import { useScrollY } from "./useScrollY.mjs";
|
|
4
|
+
import { usePersistedStore } from "./usePersistedStore.mjs";
|
|
6
5
|
import { useHorizontalSwipe } from "./useHorizontalSwipe.mjs";
|
|
7
|
-
import {
|
|
6
|
+
import { useItemSelector } from "./useItemSelector.mjs";
|
|
7
|
+
import { calculateIsMobile, checkIsIOS, checkIsIphoneOrSafariDevice, checkIsMac, checkIsMobileScreen, checkIsMobileUserAgent, getBreakpointFromSize, useDevice } from "./useDevice.mjs";
|
|
8
|
+
import { useSearch } from "./useSearch.mjs";
|
|
8
9
|
import { useIsMounted } from "./useIsMounted.mjs";
|
|
9
|
-
import {
|
|
10
|
+
import { useGetElementById } from "./useGetElementById.mjs";
|
|
11
|
+
import { useIsDarkMode } from "./useIsDarkMode.mjs";
|
|
10
12
|
import { useScreenWidth } from "./useScreenWidth.mjs";
|
|
11
13
|
import { useScrollBlockage } from "./useScrollBlockage/index.mjs";
|
|
12
14
|
import { useScrollDetection } from "./useScrollDetection.mjs";
|
|
13
|
-
import { useScrollY } from "./useScrollY.mjs";
|
|
14
|
-
import { useSearch } from "./useSearch.mjs";
|
|
15
15
|
|
|
16
16
|
export { calculateIsMobile, checkIsIOS, checkIsIphoneOrSafariDevice, checkIsMac, checkIsMobileScreen, checkIsMobileUserAgent, getBreakpointFromSize, useDevice, useGetElementById, useGetElementOrWindow, useHorizontalSwipe, useIsDarkMode, useIsMounted, useItemSelector, useKeyboardDetector, usePersistedStore, useScreenWidth, useScrollBlockage, useScrollDetection, useScrollY, useSearch };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { useToast } from "../components/Toaster/useToast.mjs";
|
|
4
|
-
import { createAsyncStoragePersister } from "@tanstack/query-async-storage-persister";
|
|
5
4
|
import { MutationCache, QueryClient, QueryClientProvider, timeoutManager } from "@tanstack/react-query";
|
|
6
|
-
import { PersistQueryClientProvider } from "@tanstack/react-query-persist-client";
|
|
7
5
|
import { useRef } from "react";
|
|
8
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { createAsyncStoragePersister } from "@tanstack/query-async-storage-persister";
|
|
8
|
+
import { PersistQueryClientProvider } from "@tanstack/react-query-persist-client";
|
|
9
9
|
|
|
10
10
|
//#region src/providers/ReactQueryProvider.tsx
|
|
11
11
|
const PERSIST_MAX_AGE = 1e3 * 60 * 60 * 24;
|
|
@@ -23,8 +23,8 @@ type BadgeSize = 'sm' | 'md' | 'lg';
|
|
|
23
23
|
* @description Defines the styling variants for different badge combinations
|
|
24
24
|
*/
|
|
25
25
|
declare const badgeVariants: (props?: {
|
|
26
|
-
color?: "error" | "
|
|
27
|
-
variant?: "
|
|
26
|
+
color?: "error" | "custom" | "primary" | "secondary" | "neutral" | "light" | "dark" | "text" | "success";
|
|
27
|
+
variant?: "none" | "default" | "outline" | "hoverable";
|
|
28
28
|
size?: "sm" | "md" | "lg";
|
|
29
29
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
30
30
|
/**
|
|
@@ -25,9 +25,9 @@ type ButtonTextAlign = 'left' | 'center' | 'right';
|
|
|
25
25
|
*/
|
|
26
26
|
declare const buttonVariants: (props?: {
|
|
27
27
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl" | "custom";
|
|
28
|
-
color?: "error" | "
|
|
28
|
+
color?: "error" | "custom" | "primary" | "secondary" | "neutral" | "card" | "light" | "dark" | "text" | "current" | "text-inverse" | "success";
|
|
29
29
|
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "4xl" | "5xl" | "full";
|
|
30
|
-
variant?: "
|
|
30
|
+
variant?: "none" | "default" | "outline" | "link" | "invisible-link" | "hoverable" | "fade" | "input";
|
|
31
31
|
textAlign?: "left" | "center" | "right";
|
|
32
32
|
isFullWidth?: boolean;
|
|
33
33
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
@@ -5,8 +5,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
//#region src/components/CollapsibleTable/CollapsibleTable.d.ts
|
|
6
6
|
declare const collapsibleTableVariants: (props?: {
|
|
7
7
|
size?: "sm" | "md" | "lg" | "xl" | "full";
|
|
8
|
-
variant?: "
|
|
9
|
-
spacing?: "sm" | "md" | "lg" | "
|
|
8
|
+
variant?: "dark" | "default" | "ghost" | "outlined";
|
|
9
|
+
spacing?: "sm" | "md" | "lg" | "none" | "auto";
|
|
10
10
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
11
11
|
interface CollapsibleTableProps extends Omit<HTMLAttributes<HTMLElement>, 'title'>, VariantProps<typeof collapsibleTableVariants> {
|
|
12
12
|
/** Table title displayed in the header */
|
|
@@ -28,7 +28,7 @@ declare const Command: {
|
|
|
28
28
|
ref?: React.Ref<HTMLInputElement>;
|
|
29
29
|
} & {
|
|
30
30
|
asChild?: boolean;
|
|
31
|
-
}, "key" | keyof _$react.InputHTMLAttributes<HTMLInputElement> | "asChild">, "type" | "
|
|
31
|
+
}, "key" | keyof _$react.InputHTMLAttributes<HTMLInputElement> | "asChild">, "type" | "value" | "onChange"> & {
|
|
32
32
|
value?: string;
|
|
33
33
|
onValueChange?: (search: string) => void;
|
|
34
34
|
} & _$react.RefAttributes<HTMLInputElement>>;
|
|
@@ -72,7 +72,7 @@ declare const Command: {
|
|
|
72
72
|
ref?: React.Ref<HTMLDivElement>;
|
|
73
73
|
} & {
|
|
74
74
|
asChild?: boolean;
|
|
75
|
-
}, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "
|
|
75
|
+
}, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "onSelect" | "disabled"> & {
|
|
76
76
|
disabled?: boolean;
|
|
77
77
|
onSelect?: (value: string) => void;
|
|
78
78
|
value?: string;
|
|
@@ -13,7 +13,7 @@ declare const containerVariants: (props?: {
|
|
|
13
13
|
padding?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
|
|
14
14
|
separator?: "both" | "without" | "x" | "y";
|
|
15
15
|
border?: "with" | "none";
|
|
16
|
-
borderColor?: "error" | "
|
|
16
|
+
borderColor?: "error" | "primary" | "secondary" | "neutral" | "card" | "text" | "success" | "warning";
|
|
17
17
|
background?: "with" | "none" | "hoverable";
|
|
18
18
|
gap?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
|
|
19
19
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
@@ -7,10 +7,10 @@ declare const useDictionarySchema: (projectId: string) => z.ZodObject<{
|
|
|
7
7
|
key: z.ZodDefault<z.ZodString>;
|
|
8
8
|
projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
9
9
|
qualifierType: z.ZodDefault<z.ZodEnum<{
|
|
10
|
-
item: "item";
|
|
11
|
-
variant: "variant";
|
|
12
10
|
none: "none";
|
|
11
|
+
variant: "variant";
|
|
13
12
|
meta: "meta";
|
|
13
|
+
item: "item";
|
|
14
14
|
}>>;
|
|
15
15
|
item: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
16
16
|
variant: z.ZodOptional<z.ZodString>;
|
|
@@ -6,8 +6,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
6
6
|
declare const checkboxVariants: (props?: {
|
|
7
7
|
variant?: "default";
|
|
8
8
|
size?: "xs" | "sm" | "md" | "lg";
|
|
9
|
-
color?: "error" | "
|
|
10
|
-
validationStyleEnabled?: "
|
|
9
|
+
color?: "error" | "custom" | "primary" | "secondary" | "neutral" | "light" | "dark" | "text" | "text-inverse" | "success";
|
|
10
|
+
validationStyleEnabled?: "enabled" | "disabled";
|
|
11
11
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
12
12
|
type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
13
13
|
type CheckboxColor = 'primary' | 'secondary' | 'neutral' | 'light' | 'text' | 'text-inverse' | 'dark' | 'error' | 'success' | 'custom';
|
|
@@ -6,7 +6,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
6
6
|
declare const inputVariants: (props?: {
|
|
7
7
|
variant?: "default" | "invisible";
|
|
8
8
|
size?: "sm" | "md" | "lg";
|
|
9
|
-
validationStyleEnabled?: "
|
|
9
|
+
validationStyleEnabled?: "enabled" | "disabled";
|
|
10
10
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
11
11
|
type InputVariant = 'default' | 'invisible';
|
|
12
12
|
type InputSize = 'md' | 'lg';
|
|
@@ -6,8 +6,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
6
6
|
declare const radioVariants: (props?: {
|
|
7
7
|
variant?: "default";
|
|
8
8
|
size?: "xs" | "sm" | "md" | "lg";
|
|
9
|
-
color?: "error" | "
|
|
10
|
-
validationStyleEnabled?: "
|
|
9
|
+
color?: "error" | "custom" | "primary" | "secondary" | "neutral" | "light" | "dark" | "text" | "text-inverse" | "success";
|
|
10
|
+
validationStyleEnabled?: "enabled" | "disabled";
|
|
11
11
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
12
12
|
type RadioSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
13
13
|
type RadioColor = 'primary' | 'secondary' | 'neutral' | 'light' | 'text' | 'text-inverse' | 'dark' | 'error' | 'success' | 'custom';
|
|
@@ -15,7 +15,7 @@ type LinkUnderlined = 'default' | 'true' | 'false';
|
|
|
15
15
|
declare const linkVariants: (props?: {
|
|
16
16
|
variant?: "default" | "invisible-link" | "hoverable" | "button" | "button-outlined";
|
|
17
17
|
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "full";
|
|
18
|
-
color?: "error" | "
|
|
18
|
+
color?: "error" | "custom" | "primary" | "secondary" | "neutral" | "light" | "dark" | "text" | "text-inverse" | "success";
|
|
19
19
|
size?: "sm" | "md" | "lg" | "xl" | "custom";
|
|
20
20
|
underlined?: boolean | "default";
|
|
21
21
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
@@ -5,7 +5,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
//#region src/components/Pagination/Pagination.d.ts
|
|
6
6
|
declare const paginationVariants: (props?: {
|
|
7
7
|
size?: "sm" | "md" | "lg";
|
|
8
|
-
color?: "
|
|
8
|
+
color?: "primary" | "secondary" | "neutral" | "text";
|
|
9
9
|
variant?: "default" | "bordered" | "ghost";
|
|
10
10
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
11
11
|
type PaginationSize = 'sm' | 'md' | 'lg';
|
|
@@ -25,14 +25,14 @@ type SwitchSelectorBaseProps<T = boolean> = {
|
|
|
25
25
|
};
|
|
26
26
|
type SwitchSelectorProps<T = boolean> = SwitchSelectorBaseProps<T> & VariantProps<typeof switchSelectorVariant> & VariantProps<typeof choiceVariant>;
|
|
27
27
|
declare const switchSelectorVariant: (props?: {
|
|
28
|
-
color?: "
|
|
28
|
+
color?: "primary" | "secondary" | "neutral" | "light" | "dark" | "text";
|
|
29
29
|
disabled?: boolean;
|
|
30
30
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
31
31
|
declare const choiceVariant: (props?: {
|
|
32
32
|
size?: "xs" | "sm" | "md" | "lg";
|
|
33
33
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
34
34
|
declare const indicatorVariant: (props?: {
|
|
35
|
-
color?: "error" | "
|
|
35
|
+
color?: "error" | "primary" | "secondary" | "neutral" | "light" | "dark" | "text";
|
|
36
36
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
37
37
|
/**
|
|
38
38
|
* Component that allows the user to select one of the provided choices.
|
|
@@ -5,7 +5,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
|
|
6
6
|
//#region src/components/SwitchSelector/VerticalSwitchSelector.d.ts
|
|
7
7
|
declare const verticalSwitchSelectorVariant: (props?: {
|
|
8
|
-
color?: "
|
|
8
|
+
color?: "primary" | "secondary" | "neutral" | "light" | "dark" | "text" | "error";
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
11
11
|
declare const verticalChoiceVariant: (props?: {
|
|
@@ -7,7 +7,7 @@ import { ItemSelectorOrientation } from "@hooks/useItemSelector";
|
|
|
7
7
|
//#region src/components/TabSelector/TabSelector.d.ts
|
|
8
8
|
type TabSelectorColor = 'primary' | 'secondary' | 'error' | 'neutral' | 'light' | 'dark' | 'text';
|
|
9
9
|
declare const tabSelectorVariant: (props?: {
|
|
10
|
-
color?: "error" | "
|
|
10
|
+
color?: "error" | "primary" | "secondary" | "neutral" | "light" | "dark" | "text";
|
|
11
11
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
12
12
|
type TabSelectorItemProps = HTMLAttributes<HTMLElement> & {
|
|
13
13
|
key: string | number;
|
|
@@ -147,7 +147,7 @@ type TagBorder = 'none' | 'with';
|
|
|
147
147
|
type TagBackground = 'none' | 'with';
|
|
148
148
|
declare const containerVariants: (props?: {
|
|
149
149
|
roundedSize?: "sm" | "md" | "lg" | "xl" | "none" | "full" | "xxl" | "xxxl";
|
|
150
|
-
color?: "error" | "
|
|
150
|
+
color?: "error" | "primary" | "neutral" | "text" | "success" | "warning" | "black" | "white";
|
|
151
151
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
152
152
|
border?: "with" | "none";
|
|
153
153
|
background?: "with" | "none";
|
|
@@ -25,7 +25,7 @@ declare const ToastViewport: FC<ComponentProps<typeof ToastPrimitives.Viewport>>
|
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
27
|
declare const toastVariants: (props?: {
|
|
28
|
-
variant?: "error" | "
|
|
28
|
+
variant?: "error" | "success" | "default";
|
|
29
29
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
30
30
|
/**
|
|
31
31
|
* Toast Component
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/design-system",
|
|
3
|
-
"version": "9.0.0-canary.
|
|
3
|
+
"version": "9.0.0-canary.3",
|
|
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": [
|
|
@@ -442,13 +442,13 @@
|
|
|
442
442
|
"dependencies": {
|
|
443
443
|
"@better-auth/passkey": "1.6.19",
|
|
444
444
|
"@better-auth/sso": "1.6.19",
|
|
445
|
-
"@intlayer/api": "9.0.0-canary.
|
|
446
|
-
"@intlayer/chokidar": "9.0.0-canary.
|
|
447
|
-
"@intlayer/config": "9.0.0-canary.
|
|
448
|
-
"@intlayer/core": "9.0.0-canary.
|
|
449
|
-
"@intlayer/dictionaries-entry": "9.0.0-canary.
|
|
450
|
-
"@intlayer/editor-react": "9.0.0-canary.
|
|
451
|
-
"@intlayer/types": "9.0.0-canary.
|
|
445
|
+
"@intlayer/api": "9.0.0-canary.3",
|
|
446
|
+
"@intlayer/chokidar": "9.0.0-canary.3",
|
|
447
|
+
"@intlayer/config": "9.0.0-canary.3",
|
|
448
|
+
"@intlayer/core": "9.0.0-canary.3",
|
|
449
|
+
"@intlayer/dictionaries-entry": "9.0.0-canary.3",
|
|
450
|
+
"@intlayer/editor-react": "9.0.0-canary.3",
|
|
451
|
+
"@intlayer/types": "9.0.0-canary.3",
|
|
452
452
|
"@radix-ui/react-dialog": "1.1.17",
|
|
453
453
|
"@radix-ui/react-select": "2.3.1",
|
|
454
454
|
"@radix-ui/react-slot": "1.3.0",
|
|
@@ -480,7 +480,7 @@
|
|
|
480
480
|
"defu": "6.1.7",
|
|
481
481
|
"dompurify": "3.4.10",
|
|
482
482
|
"isomorphic-dompurify": "3.17.0",
|
|
483
|
-
"react-intlayer": "9.0.0-canary.
|
|
483
|
+
"react-intlayer": "9.0.0-canary.3",
|
|
484
484
|
"react-moveable": "^0.56.0",
|
|
485
485
|
"rollup-preserve-directives": "1.1.3",
|
|
486
486
|
"tippy.js": "^6.3.7",
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
"zod": "4.4.3"
|
|
492
492
|
},
|
|
493
493
|
"devDependencies": {
|
|
494
|
-
"@intlayer/backend": "9.0.0-canary.
|
|
494
|
+
"@intlayer/backend": "9.0.0-canary.3",
|
|
495
495
|
"@shikijs/transformers": "4.2.0",
|
|
496
496
|
"@storybook/addon-a11y": "8.6.14",
|
|
497
497
|
"@storybook/addon-essentials": "8.6.14",
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
"@utils/ts-config-types": "1.0.4",
|
|
523
523
|
"clsx": "2.1.1",
|
|
524
524
|
"fast-glob": "3.3.3",
|
|
525
|
-
"intlayer": "9.0.0-canary.
|
|
525
|
+
"intlayer": "9.0.0-canary.3",
|
|
526
526
|
"rimraf": "6.1.3",
|
|
527
527
|
"shiki": "4.2.0",
|
|
528
528
|
"storybook": "8.6.17",
|
|
@@ -530,26 +530,26 @@
|
|
|
530
530
|
"tsdown": "0.21.10",
|
|
531
531
|
"typescript": "6.0.3",
|
|
532
532
|
"vite": "8.0.16",
|
|
533
|
-
"vite-intlayer": "9.0.0-canary.
|
|
533
|
+
"vite-intlayer": "9.0.0-canary.3",
|
|
534
534
|
"vite-plugin-dts": "5.0.2",
|
|
535
535
|
"vitest": "4.1.9"
|
|
536
536
|
},
|
|
537
537
|
"peerDependencies": {
|
|
538
538
|
"@better-fetch/fetch": "1.3.1",
|
|
539
539
|
"@hookform/resolvers": "5.4.0",
|
|
540
|
-
"@intlayer/backend": "9.0.0-canary.
|
|
540
|
+
"@intlayer/backend": "9.0.0-canary.3",
|
|
541
541
|
"@monaco-editor/react": "4.7.0",
|
|
542
542
|
"@shikijs/transformers": "4.2.0",
|
|
543
543
|
"@tanstack/react-query": "5.101.0",
|
|
544
544
|
"@tanstack/react-query-devtools": "5.101.0",
|
|
545
545
|
"framer-motion": "12.40.0",
|
|
546
546
|
"fuse.js": "7.4.2",
|
|
547
|
-
"intlayer": "9.0.0-canary.
|
|
547
|
+
"intlayer": "9.0.0-canary.3",
|
|
548
548
|
"lucide-react": "1.20.0",
|
|
549
549
|
"react": ">=16.0.0",
|
|
550
550
|
"react-dom": ">=16.0.0",
|
|
551
551
|
"react-hook-form": "7.79.0",
|
|
552
|
-
"react-intlayer": "9.0.0-canary.
|
|
552
|
+
"react-intlayer": "9.0.0-canary.3",
|
|
553
553
|
"shiki": "4.2.0",
|
|
554
554
|
"tailwindcss": "4.3.1"
|
|
555
555
|
},
|