@intlayer/design-system 8.2.4 → 8.3.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/Accordion/Accordion.mjs +1 -1
- package/dist/esm/components/Avatar/index.mjs +1 -1
- package/dist/esm/components/Breadcrumb/index.mjs +1 -1
- package/dist/esm/components/Breadcrumb/index.mjs.map +1 -1
- package/dist/esm/components/Browser/Browser.mjs +1 -1
- package/dist/esm/components/Carousel/index.mjs +4 -4
- package/dist/esm/components/CollapsibleTable/CollapsibleTable.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditor.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorInput.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs +1 -1
- package/dist/esm/components/CopyButton/index.mjs +1 -1
- package/dist/esm/components/CopyToClipboard/index.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs.map +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/ConditionWrapper.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/ConditionWrapper.mjs.map +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.mjs.map +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/FileWrapper.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/FileWrapper.mjs.map +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/HtmlWrapper.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/HtmlWrapper.mjs.map +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/InsertionWrapper.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/InsertionWrapper.mjs.map +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.mjs.map +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs.map +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/TranslationWrapper.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/TranslationWrapper.mjs.map +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/index.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/index.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditor.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/JSONEditor.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/NodeTypeSelector.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/NodeTypeSelector.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/StructureEditor.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/getIsEditableSection.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/getIsEditableSection.mjs.map +1 -1
- package/dist/esm/components/EditableField/EditableFieldLayout.mjs +1 -1
- package/dist/esm/components/ExpandCollapse/ExpandCollapse.mjs +1 -1
- package/dist/esm/components/ExpandCollapse/ExpandCollapse.mjs.map +1 -1
- package/dist/esm/components/Flags/Flag.mjs +1 -1
- package/dist/esm/components/Flags/Flag.mjs.map +1 -1
- package/dist/esm/components/HTMLRender/HTMLRender.mjs.map +1 -1
- package/dist/esm/components/HideShow/index.mjs +1 -1
- package/dist/esm/components/IDE/FileTree.mjs +1 -1
- package/dist/esm/components/Input/InputPassword.mjs +1 -1
- package/dist/esm/components/Input/OTPInput.mjs +2 -2
- package/dist/esm/components/LanguageBackground/index.mjs +1 -1
- package/dist/esm/components/LanguageBackground/index.mjs.map +1 -1
- package/dist/esm/components/Link/Link.mjs +1 -1
- package/dist/esm/components/Link/Link.mjs.map +1 -1
- package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
- package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs.map +1 -1
- package/dist/esm/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +1 -1
- package/dist/esm/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs.map +1 -1
- package/dist/esm/components/MarkDownRender/MarkDownRender.mjs.map +1 -1
- package/dist/esm/components/MaxHeightSmoother/index.mjs +1 -1
- package/dist/esm/components/MaxHeightSmoother/index.mjs.map +1 -1
- package/dist/esm/components/Modal/Modal.mjs +1 -1
- package/dist/esm/components/Pagination/Pagination.mjs +1 -1
- package/dist/esm/components/RightDrawer/RightDrawer.mjs +1 -1
- package/dist/esm/components/Select/Multiselect.mjs +1 -1
- package/dist/esm/components/Table/Table.mjs +1 -1
- package/dist/esm/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs +1 -1
- package/dist/esm/components/ThemeSwitcherDropDown/MobileThemeSwitcher.mjs +1 -1
- package/dist/esm/components/Toaster/Toast.mjs +1 -1
- package/dist/esm/components/index.mjs +1 -1
- package/dist/esm/hooks/reactQuery.mjs +1 -1
- package/dist/esm/hooks/reactQuery.mjs.map +1 -1
- package/dist/esm/hooks/useAuth/useAuth.mjs.map +1 -1
- package/dist/esm/hooks/useAuth/useOAuth2.mjs +1 -1
- package/dist/esm/hooks/useAuth/useOAuth2.mjs.map +1 -1
- package/dist/esm/hooks/useAuth/useSession.mjs +1 -1
- package/dist/esm/hooks/useAuth/useSession.mjs.map +1 -1
- package/dist/esm/hooks/useIntlayerAPI.mjs.map +1 -1
- package/dist/esm/libs/auth.mjs +1 -1
- package/dist/esm/libs/auth.mjs.map +1 -1
- package/dist/esm/providers/ReactQueryProvider.mjs +1 -1
- package/dist/types/components/Breadcrumb/breadcrumb.content.d.ts +3 -3
- package/dist/types/components/Breadcrumb/index.d.ts +1 -1
- package/dist/types/components/Browser/Browser.content.d.ts +17 -17
- package/dist/types/components/Button/Button.d.ts +1 -1
- package/dist/types/components/Carousel/index.content.d.ts +7 -7
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +2 -2
- package/dist/types/components/Command/index.d.ts +1 -1
- package/dist/types/components/Container/index.d.ts +6 -6
- package/dist/types/components/CopyButton/CopyButton.content.d.ts +3 -3
- package/dist/types/components/DictionaryEditor/DictionaryEditor.d.ts +2 -1
- package/dist/types/components/DictionaryEditor/DictionaryEditor.d.ts.map +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts.map +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/ConditionWrapper.d.ts +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/ConditionWrapper.d.ts.map +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts.map +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/FileWrapper.d.ts.map +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/HtmlWrapper.d.ts +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/HtmlWrapper.d.ts.map +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/InsertionWrapper.d.ts +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/InsertionWrapper.d.ts.map +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.d.ts +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.d.ts.map +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts.map +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts.map +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/index.d.ts +3 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/index.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/ContentEditor.d.ts +1 -1
- package/dist/types/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts +2 -1
- package/dist/types/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +25 -25
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts +9 -9
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +55 -55
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +33 -33
- package/dist/types/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts +1 -1
- package/dist/types/components/DictionaryFieldEditor/JSONEditor.d.ts +1 -1
- package/dist/types/components/DictionaryFieldEditor/KeyPathBreadcrumb.d.ts +2 -1
- package/dist/types/components/DictionaryFieldEditor/KeyPathBreadcrumb.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts +4 -4
- package/dist/types/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +25 -25
- package/dist/types/components/DictionaryFieldEditor/NodeTypeSelector.d.ts +2 -1
- package/dist/types/components/DictionaryFieldEditor/NodeTypeSelector.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts +1 -1
- package/dist/types/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +33 -33
- package/dist/types/components/DictionaryFieldEditor/StructureEditor.d.ts +1 -1
- package/dist/types/components/DictionaryFieldEditor/StructureView/StructureView.d.ts +2 -1
- package/dist/types/components/DictionaryFieldEditor/StructureView/StructureView.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts +9 -9
- package/dist/types/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts +7 -7
- package/dist/types/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +5 -5
- package/dist/types/components/DictionaryFieldEditor/getIsEditableSection.d.ts +1 -1
- package/dist/types/components/DictionaryFieldEditor/getIsEditableSection.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +31 -31
- package/dist/types/components/ExpandCollapse/expandCollapse.content.d.ts +3 -3
- package/dist/types/components/Flags/Flag.d.ts +1 -1
- package/dist/types/components/Flags/Flag.d.ts.map +1 -1
- package/dist/types/components/HTMLRender/HTMLRender.d.ts +1 -1
- package/dist/types/components/IDE/code.content.d.ts +5 -5
- package/dist/types/components/IDE/copyCode.content.d.ts +5 -5
- package/dist/types/components/IDE/selectors.content.d.ts +13 -13
- package/dist/types/components/Input/Checkbox.d.ts +1 -1
- package/dist/types/components/LanguageBackground/index.d.ts.map +1 -1
- package/dist/types/components/Link/Link.d.ts +2 -2
- package/dist/types/components/Loader/index.content.d.ts +3 -3
- package/dist/types/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.d.ts.map +1 -1
- package/dist/types/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts +17 -17
- package/dist/types/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts +1 -1
- package/dist/types/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts.map +1 -1
- package/dist/types/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts +13 -13
- package/dist/types/components/MarkDownRender/MarkDownRender.d.ts +2 -2
- package/dist/types/components/MarkDownRender/MarkDownRender.d.ts.map +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +2 -2
- package/dist/types/components/Pagination/pagination.content.d.ts +11 -11
- package/dist/types/components/RightDrawer/rightDrawer.content.d.ts +5 -5
- package/dist/types/components/Tab/Tab.d.ts +1 -1
- package/dist/types/components/TabSelector/TabSelector.d.ts +1 -1
- package/dist/types/components/Table/table.content.d.ts +3 -3
- package/dist/types/components/Tag/index.d.ts +1 -1
- package/dist/types/components/Terminal/terminal.content.d.ts +5 -5
- package/dist/types/hooks/useAuth/useAuth.d.ts +1 -1
- package/dist/types/hooks/useAuth/useOAuth2.d.ts +1 -1
- package/dist/types/hooks/useAuth/useSession.d.ts +1 -1
- package/dist/types/hooks/useIntlayerAPI.d.ts +1 -1
- package/dist/types/libs/auth.d.ts +1 -1
- package/package.json +30 -28
package/dist/esm/libs/auth.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{passkeyClient as e}from"@better-auth/passkey/client";import{ssoClient as t}from"@better-auth/sso/client";import n from"@intlayer/config/built";import{createAuthClient as r}from"better-auth/client";import{magicLinkClient as i,twoFactorClient as a}from"better-auth/client/plugins";const o=n=>r({baseURL:n,withCredentials:!0,plugins:[a({onTwoFactorRedirect:()=>{let e=new URLSearchParams(window.location.search).get(`redirect_url`),t=e?`/auth/2fa?redirect_url=${encodeURIComponent(e)}`:`/auth/2fa`;window.location.href=t}}),e(),i(),t()]}),s=e=>{let t=e?.editor?.backendURL??n?.editor?.backendURL;if(!t)throw Error(`Backend URL is not defined in the Intlayer configuration.`);let r=o(t);return{getAuthClient:()=>r,signInEmail:async(...e)=>r.signIn.email(...e),signUpEmail:async(...e)=>r.signUp.email(...e),signOut:async(...e)=>r.signOut(...e),signInSocial:async(...e)=>r.signIn.social(...e),linkSocial:async(...e)=>r.linkSocial(...e),changePasswordSession:async(...e)=>r.changePassword(...e),requestPasswordResetSession:async(...e)=>r.requestPasswordReset(...e),resetPassword:async(...e)=>r.resetPassword(...e),verifyEmailSession:async(...e)=>r.verifyEmail(...e),getSession:async(...e)=>r.getSession(...e),forgetPassword:async(...e)=>r.requestPasswordReset(...e),sendVerificationEmail:async(...e)=>r.sendVerificationEmail(...e),changeEmail:async(...e)=>r.changeEmail(...e),deleteUser:async(...e)=>r.deleteUser(...e),revokeSession:async(...e)=>r.revokeSession(...e),revokeSessions:async(...e)=>r.revokeSessions(...e),revokeOtherSessions:async(...e)=>r.revokeOtherSessions(...e),listAccounts:async(...e)=>r.listAccounts(...e),unlinkAccount:async(...e)=>r.unlinkAccount(...e),refreshToken:async(...e)=>r.refreshToken(...e),getAccessToken:async(...e)=>r.getAccessToken(...e),accountInfo:async(...e)=>r.accountInfo(...e),updateUser:async(...e)=>r.updateUser(...e),listSessions:async(...e)=>r.listSessions(...e),enableTwoFactor:async(...e)=>r.twoFactor.enable(...e),disableTwoFactor:async(...e)=>r.twoFactor.disable(...e),verifyTotp:async(...e)=>r.twoFactor.verifyTotp(...e),verifyBackupCode:async(...e)=>r.twoFactor.verifyBackupCode(...e),addPasskey:async(...e)=>r.passkey.addPasskey(...e),signInPasskey:async(...e)=>r.signIn.passkey(...e),deletePasskey:async(...e)=>r.passkey.deletePasskey(...e),listPasskeys:async()=>r.$fetch(`/passkey/list-user-passkeys`,{method:`GET`}),signInMagicLink:async(...e)=>r.signIn.magicLink(...e),signInSSO:async(...e)=>r.signIn.sso(...e),registerSSO:async(...e)=>r.sso.register(...e),listSSOProviders:async()=>{},deleteSSOProvider:async e=>{}}};export{s as getAuthAPI};
|
|
2
2
|
//# sourceMappingURL=auth.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.mjs","names":[],"sources":["../../../src/libs/auth.ts"],"sourcesContent":["import { passkeyClient } from '@better-auth/passkey/client';\nimport { ssoClient } from '@better-auth/sso/client';\nimport configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types';\nimport { createAuthClient } from 'better-auth/client';\nimport { magicLinkClient, twoFactorClient } from 'better-auth/client/plugins';\n\nconst getAuthClient = (backendURL: string) =>\n createAuthClient({\n baseURL: backendURL,\n withCredentials: true, // makes fetch forward cookies\n plugins: [\n twoFactorClient({\n onTwoFactorRedirect: () => {\n // Preserve redirect_url when redirecting to 2FA\n const searchParams = new URLSearchParams(window.location.search);\n const redirectUrl = searchParams.get('redirect_url');\n const twoFaUrl = redirectUrl\n ? `/auth/2fa?redirect_url=${encodeURIComponent(redirectUrl)}`\n : '/auth/2fa';\n window.location.href = twoFaUrl;\n },\n }),\n passkeyClient(),\n magicLinkClient() as never,\n ssoClient(),\n ],\n });\n\ntype AuthClient = ReturnType<typeof getAuthClient>;\n\nexport interface AuthAPI {\n getAuthClient: () => AuthClient;\n signInEmail: AuthClient['signIn']['email'];\n signUpEmail: AuthClient['signUp']['email'];\n signOut: AuthClient['signOut'];\n signInSocial: AuthClient['signIn']['social'];\n linkSocial: AuthClient['linkSocial'];\n changePasswordSession: AuthClient['changePassword'];\n requestPasswordResetSession: AuthClient['requestPasswordReset'];\n resetPassword: AuthClient['resetPassword'];\n verifyEmailSession: AuthClient['verifyEmail'];\n getSession: AuthClient['getSession'];\n forgetPassword: AuthClient['requestPasswordReset'];\n sendVerificationEmail: AuthClient['sendVerificationEmail'];\n changeEmail: AuthClient['changeEmail'];\n deleteUser: AuthClient['deleteUser'];\n revokeSession: AuthClient['revokeSession'];\n revokeSessions: AuthClient['revokeSessions'];\n revokeOtherSessions: AuthClient['revokeOtherSessions'];\n listAccounts: AuthClient['listAccounts'];\n unlinkAccount: AuthClient['unlinkAccount'];\n refreshToken: AuthClient['refreshToken'];\n getAccessToken: AuthClient['getAccessToken'];\n accountInfo: AuthClient['accountInfo'];\n updateUser: AuthClient['updateUser'];\n listSessions: AuthClient['listSessions'];\n enableTwoFactor: AuthClient['twoFactor']['enable'];\n disableTwoFactor: AuthClient['twoFactor']['disable'];\n verifyTotp: AuthClient['twoFactor']['verifyTotp'];\n verifyBackupCode: AuthClient['twoFactor']['verifyBackupCode'];\n addPasskey: AuthClient['passkey']['addPasskey'];\n signInPasskey: AuthClient['signIn']['passkey'];\n deletePasskey: AuthClient['passkey']['deletePasskey'];\n listPasskeys: () => Promise<any>;\n signInMagicLink: (\n // Redeclare it because of type inference issues\n input: { email: string; callbackURL: string }\n ) => any;\n registerSSO: AuthClient['sso']['register'];\n listSSOProviders: () => Promise<any>;\n deleteSSOProvider: (args: { providerId: string }) => Promise<any>;\n signInSSO: AuthClient['signIn']['sso'];\n}\n\nexport const getAuthAPI = (intlayerConfig?: IntlayerConfig): AuthAPI => {\n const backendURL =\n intlayerConfig?.editor?.backendURL ?? configuration?.editor?.backendURL;\n\n if (!backendURL) {\n throw new Error(\n 'Backend URL is not defined in the Intlayer configuration.'\n );\n }\n\n const client = getAuthClient(backendURL);\n\n const signInEmail: AuthClient['signIn']['email'] = async (...args) => {\n return client.signIn.email(...args);\n };\n\n const signInSocial: AuthClient['signIn']['social'] = async (...args) => {\n return client.signIn.social(...args);\n };\n\n const signUpEmail: AuthClient['signUp']['email'] = async (...args) => {\n return client.signUp.email(...args);\n };\n\n const signOut: AuthClient['signOut'] = async (...args) => {\n return client.signOut(...args);\n };\n\n const changePasswordSession: AuthClient['changePassword'] = async (\n ...args\n ) => {\n return client.changePassword(...args);\n };\n\n const requestPasswordResetSession: AuthClient['requestPasswordReset'] =\n async (...args) => {\n return client.requestPasswordReset(...args);\n };\n\n // @ts-ignore - resetPassword is not typed\n const resetPassword: AuthClient['resetPassword'] = async (...args) => {\n return client.resetPassword(...args);\n };\n\n const verifyEmailSession: AuthClient['verifyEmail'] = async (...args) => {\n return client.verifyEmail(...args);\n };\n\n const getSession: AuthClient['getSession'] = async (...args) => {\n return client.getSession(...args);\n };\n\n const forgetPassword: AuthClient['requestPasswordReset'] = async (\n ...args\n ) => {\n return client.requestPasswordReset(...args);\n };\n\n const sendVerificationEmail: AuthClient['sendVerificationEmail'] = async (\n ...args\n ) => {\n return client.sendVerificationEmail(...args);\n };\n\n const changeEmail: AuthClient['changeEmail'] = async (...args) => {\n return client.changeEmail(...args);\n };\n\n // @ts-ignore - deleteUser is not typed\n const deleteUser: AuthClient['deleteUser'] = async (...args) => {\n return client.deleteUser(...args);\n };\n\n const revokeSession: AuthClient['revokeSession'] = async (...args) => {\n return client.revokeSession(...args);\n };\n\n const revokeSessions: AuthClient['revokeSessions'] = async (...args) => {\n return client.revokeSessions(...args);\n };\n\n const revokeOtherSessions: AuthClient['revokeOtherSessions'] = async (\n ...args\n ) => {\n return client.revokeOtherSessions(...args);\n };\n\n const linkSocial: AuthClient['linkSocial'] = async (...args) => {\n return client.linkSocial(...args);\n };\n\n const listAccounts: AuthClient['listAccounts'] = async (...args) => {\n return client.listAccounts(...args);\n };\n\n const unlinkAccount: AuthClient['unlinkAccount'] = async (...args) => {\n return client.unlinkAccount(...args);\n };\n\n const refreshToken: AuthClient['refreshToken'] = async (...args) => {\n return client.refreshToken(...args);\n };\n\n const getAccessToken: AuthClient['getAccessToken'] = async (...args) => {\n return client.getAccessToken(...args);\n };\n\n const accountInfo: AuthClient['accountInfo'] = async (...args) => {\n return client.accountInfo(...args);\n };\n\n const updateUser: AuthClient['updateUser'] = async (...args) => {\n return client.updateUser(...args);\n };\n\n const listSessions: AuthClient['listSessions'] = async (...args) => {\n return client.listSessions(...args);\n };\n\n const enableTwoFactor: AuthClient['twoFactor']['enable'] = async (\n ...args\n ) => {\n return client.twoFactor.enable(...args) as ReturnType<\n AuthClient['twoFactor']['enable']\n >;\n };\n\n const disableTwoFactor: AuthClient['twoFactor']['disable'] = async (\n ...args\n ) => {\n return client.twoFactor.disable(...args) as ReturnType<\n AuthClient['twoFactor']['disable']\n >;\n };\n\n const verifyTotp: AuthClient['twoFactor']['verifyTotp'] = async (...args) => {\n return client.twoFactor.verifyTotp(...args) as ReturnType<\n AuthClient['twoFactor']['verifyTotp']\n >;\n };\n\n const verifyBackupCode: AuthClient['twoFactor']['verifyBackupCode'] = async (\n ...args\n ) => {\n return client.twoFactor.verifyBackupCode(...args) as ReturnType<\n AuthClient['twoFactor']['verifyBackupCode']\n >;\n };\n\n const addPasskey: AuthClient['passkey']['addPasskey'] = async (...args) => {\n return client.passkey.addPasskey(...args);\n };\n\n const signInPasskey: AuthClient['signIn']['passkey'] = async (...args) => {\n return client.signIn.passkey(...args);\n };\n\n const deletePasskey: AuthClient['passkey']['deletePasskey'] = async (\n ...args\n ) => {\n return client.passkey.deletePasskey(...args);\n };\n\n const listPasskeys = async () => {\n // @ts-ignore - listPasskeys may not be typed yet\n return client.$fetch('/passkey/list-user-passkeys', {\n method: 'GET',\n });\n };\n\n const signInMagicLink: any = async (...args: any[]) => {\n return (client.signIn as any).magicLink(...args);\n };\n\n const signInSSO: AuthClient['signIn']['sso'] = async (...args) => {\n return client.signIn.sso(...args);\n };\n\n const registerSSO: AuthClient['sso']['register'] = async (...args) => {\n return client.sso.register(...args);\n };\n\n const listSSOProviders = async () => {\n // Not implemented yet\n };\n\n const deleteSSOProvider = async (args: { providerId: string }) => {\n // Not implemented yet\n };\n\n return {\n getAuthClient: () => client,\n signInEmail,\n signUpEmail,\n signOut,\n signInSocial,\n linkSocial,\n changePasswordSession,\n requestPasswordResetSession,\n resetPassword,\n verifyEmailSession,\n getSession,\n forgetPassword,\n sendVerificationEmail,\n changeEmail,\n deleteUser,\n revokeSession,\n revokeSessions,\n revokeOtherSessions,\n listAccounts,\n unlinkAccount,\n refreshToken,\n getAccessToken,\n accountInfo,\n updateUser,\n listSessions,\n enableTwoFactor,\n disableTwoFactor,\n verifyTotp,\n verifyBackupCode,\n addPasskey,\n signInPasskey,\n deletePasskey,\n listPasskeys,\n signInMagicLink,\n signInSSO,\n registerSSO,\n listSSOProviders,\n deleteSSOProvider,\n };\n};\n"],"mappings":"8RAOA,MAAM,EAAiB,GACrB,EAAiB,CACf,QAAS,EACT,gBAAiB,GACjB,QAAS,CACP,EAAgB,CACd,wBAA2B,CAGzB,IAAM,EADe,IAAI,gBAAgB,OAAO,SAAS,OAAO,CAC/B,IAAI,eAAe,CAC9C,EAAW,EACb,0BAA0B,mBAAmB,EAAY,GACzD,YACJ,OAAO,SAAS,KAAO,GAE1B,CAAC,CACF,GAAe,CACf,GAAiB,CACjB,GAAW,CACZ,CACF,CAAC,CAgDS,EAAc,GAA6C,CACtE,IAAM,EACJ,GAAgB,QAAQ,YAAc,GAAe,QAAQ,WAE/D,GAAI,CAAC,EACH,MAAU,MACR,4DACD,CAGH,IAAM,EAAS,EAAc,EAAW,CAoLxC,MAAO,CACL,kBAAqB,EACrB,YApLiD,MAAO,GAAG,IACpD,EAAO,OAAO,MAAM,GAAG,EAAK,CAoLnC,YA7KiD,MAAO,GAAG,IACpD,EAAO,OAAO,MAAM,GAAG,EAAK,CA6KnC,QA1KqC,MAAO,GAAG,IACxC,EAAO,QAAQ,GAAG,EAAK,CA0K9B,aAnLmD,MAAO,GAAG,IACtD,EAAO,OAAO,OAAO,GAAG,EAAK,CAmLpC,WA7G2C,MAAO,GAAG,IAC9C,EAAO,WAAW,GAAG,EAAK,CA6GjC,sBAzK0D,MAC1D,GAAG,IAEI,EAAO,eAAe,GAAG,EAAK,CAuKrC,4BAnKA,MAAO,GAAG,IACD,EAAO,qBAAqB,GAAG,EAAK,CAmK7C,cA/JiD,MAAO,GAAG,IACpD,EAAO,cAAc,GAAG,EAAK,CA+JpC,mBA5JoD,MAAO,GAAG,IACvD,EAAO,YAAY,GAAG,EAAK,CA4JlC,WAzJ2C,MAAO,GAAG,IAC9C,EAAO,WAAW,GAAG,EAAK,CAyJjC,eAtJyD,MACzD,GAAG,IAEI,EAAO,qBAAqB,GAAG,EAAK,CAoJ3C,sBAjJiE,MACjE,GAAG,IAEI,EAAO,sBAAsB,GAAG,EAAK,CA+I5C,YA5I6C,MAAO,GAAG,IAChD,EAAO,YAAY,GAAG,EAAK,CA4IlC,WAxI2C,MAAO,GAAG,IAC9C,EAAO,WAAW,GAAG,EAAK,CAwIjC,cArIiD,MAAO,GAAG,IACpD,EAAO,cAAc,GAAG,EAAK,CAqIpC,eAlImD,MAAO,GAAG,IACtD,EAAO,eAAe,GAAG,EAAK,CAkIrC,oBA/H6D,MAC7D,GAAG,IAEI,EAAO,oBAAoB,GAAG,EAAK,CA6H1C,aAtH+C,MAAO,GAAG,IAClD,EAAO,aAAa,GAAG,EAAK,CAsHnC,cAnHiD,MAAO,GAAG,IACpD,EAAO,cAAc,GAAG,EAAK,CAmHpC,aAhH+C,MAAO,GAAG,IAClD,EAAO,aAAa,GAAG,EAAK,CAgHnC,eA7GmD,MAAO,GAAG,IACtD,EAAO,eAAe,GAAG,EAAK,CA6GrC,YA1G6C,MAAO,GAAG,IAChD,EAAO,YAAY,GAAG,EAAK,CA0GlC,WAvG2C,MAAO,GAAG,IAC9C,EAAO,WAAW,GAAG,EAAK,CAuGjC,aApG+C,MAAO,GAAG,IAClD,EAAO,aAAa,GAAG,EAAK,CAoGnC,gBAjGyD,MACzD,GAAG,IAEI,EAAO,UAAU,OAAO,GAAG,EAAK,CA+FvC,iBA1F2D,MAC3D,GAAG,IAEI,EAAO,UAAU,QAAQ,GAAG,EAAK,CAwFxC,WAnFwD,MAAO,GAAG,IAC3D,EAAO,UAAU,WAAW,GAAG,EAAK,CAmF3C,iBA9EoE,MACpE,GAAG,IAEI,EAAO,UAAU,iBAAiB,GAAG,EAAK,CA4EjD,WAvEsD,MAAO,GAAG,IACzD,EAAO,QAAQ,WAAW,GAAG,EAAK,CAuEzC,cApEqD,MAAO,GAAG,IACxD,EAAO,OAAO,QAAQ,GAAG,EAAK,CAoErC,cAjE4D,MAC5D,GAAG,IAEI,EAAO,QAAQ,cAAc,GAAG,EAAK,CA+D5C,aA5DmB,SAEZ,EAAO,OAAO,8BAA+B,CAClD,OAAQ,MACT,CAAC,CAyDF,gBAtD2B,MAAO,GAAG,IAC7B,EAAO,OAAe,UAAU,GAAG,EAAK,CAsDhD,UAnD6C,MAAO,GAAG,IAChD,EAAO,OAAO,IAAI,GAAG,EAAK,CAmDjC,YAhDiD,MAAO,GAAG,IACpD,EAAO,IAAI,SAAS,GAAG,EAAK,CAgDnC,iBA7CuB,SAAY,GA8CnC,kBA1CwB,KAAO,IAAiC,GA2CjE"}
|
|
1
|
+
{"version":3,"file":"auth.mjs","names":[],"sources":["../../../src/libs/auth.ts"],"sourcesContent":["import { passkeyClient } from '@better-auth/passkey/client';\nimport { ssoClient } from '@better-auth/sso/client';\nimport configuration from '@intlayer/config/built';\nimport type { IntlayerConfig } from '@intlayer/types/config';\nimport { createAuthClient } from 'better-auth/client';\nimport { magicLinkClient, twoFactorClient } from 'better-auth/client/plugins';\n\nconst getAuthClient = (backendURL: string) =>\n createAuthClient({\n baseURL: backendURL,\n withCredentials: true, // makes fetch forward cookies\n plugins: [\n twoFactorClient({\n onTwoFactorRedirect: () => {\n // Preserve redirect_url when redirecting to 2FA\n const searchParams = new URLSearchParams(window.location.search);\n const redirectUrl = searchParams.get('redirect_url');\n const twoFaUrl = redirectUrl\n ? `/auth/2fa?redirect_url=${encodeURIComponent(redirectUrl)}`\n : '/auth/2fa';\n window.location.href = twoFaUrl;\n },\n }),\n passkeyClient(),\n magicLinkClient() as never,\n ssoClient(),\n ],\n });\n\ntype AuthClient = ReturnType<typeof getAuthClient>;\n\nexport interface AuthAPI {\n getAuthClient: () => AuthClient;\n signInEmail: AuthClient['signIn']['email'];\n signUpEmail: AuthClient['signUp']['email'];\n signOut: AuthClient['signOut'];\n signInSocial: AuthClient['signIn']['social'];\n linkSocial: AuthClient['linkSocial'];\n changePasswordSession: AuthClient['changePassword'];\n requestPasswordResetSession: AuthClient['requestPasswordReset'];\n resetPassword: AuthClient['resetPassword'];\n verifyEmailSession: AuthClient['verifyEmail'];\n getSession: AuthClient['getSession'];\n forgetPassword: AuthClient['requestPasswordReset'];\n sendVerificationEmail: AuthClient['sendVerificationEmail'];\n changeEmail: AuthClient['changeEmail'];\n deleteUser: AuthClient['deleteUser'];\n revokeSession: AuthClient['revokeSession'];\n revokeSessions: AuthClient['revokeSessions'];\n revokeOtherSessions: AuthClient['revokeOtherSessions'];\n listAccounts: AuthClient['listAccounts'];\n unlinkAccount: AuthClient['unlinkAccount'];\n refreshToken: AuthClient['refreshToken'];\n getAccessToken: AuthClient['getAccessToken'];\n accountInfo: AuthClient['accountInfo'];\n updateUser: AuthClient['updateUser'];\n listSessions: AuthClient['listSessions'];\n enableTwoFactor: AuthClient['twoFactor']['enable'];\n disableTwoFactor: AuthClient['twoFactor']['disable'];\n verifyTotp: AuthClient['twoFactor']['verifyTotp'];\n verifyBackupCode: AuthClient['twoFactor']['verifyBackupCode'];\n addPasskey: AuthClient['passkey']['addPasskey'];\n signInPasskey: AuthClient['signIn']['passkey'];\n deletePasskey: AuthClient['passkey']['deletePasskey'];\n listPasskeys: () => Promise<any>;\n signInMagicLink: (\n // Redeclare it because of type inference issues\n input: { email: string; callbackURL: string }\n ) => any;\n registerSSO: AuthClient['sso']['register'];\n listSSOProviders: () => Promise<any>;\n deleteSSOProvider: (args: { providerId: string }) => Promise<any>;\n signInSSO: AuthClient['signIn']['sso'];\n}\n\nexport const getAuthAPI = (intlayerConfig?: IntlayerConfig): AuthAPI => {\n const backendURL =\n intlayerConfig?.editor?.backendURL ?? configuration?.editor?.backendURL;\n\n if (!backendURL) {\n throw new Error(\n 'Backend URL is not defined in the Intlayer configuration.'\n );\n }\n\n const client = getAuthClient(backendURL);\n\n const signInEmail: AuthClient['signIn']['email'] = async (...args) => {\n return client.signIn.email(...args);\n };\n\n const signInSocial: AuthClient['signIn']['social'] = async (...args) => {\n return client.signIn.social(...args);\n };\n\n const signUpEmail: AuthClient['signUp']['email'] = async (...args) => {\n return client.signUp.email(...args);\n };\n\n const signOut: AuthClient['signOut'] = async (...args) => {\n return client.signOut(...args);\n };\n\n const changePasswordSession: AuthClient['changePassword'] = async (\n ...args\n ) => {\n return client.changePassword(...args);\n };\n\n const requestPasswordResetSession: AuthClient['requestPasswordReset'] =\n async (...args) => {\n return client.requestPasswordReset(...args);\n };\n\n // @ts-ignore - resetPassword is not typed\n const resetPassword: AuthClient['resetPassword'] = async (...args) => {\n return client.resetPassword(...args);\n };\n\n const verifyEmailSession: AuthClient['verifyEmail'] = async (...args) => {\n return client.verifyEmail(...args);\n };\n\n const getSession: AuthClient['getSession'] = async (...args) => {\n return client.getSession(...args);\n };\n\n const forgetPassword: AuthClient['requestPasswordReset'] = async (\n ...args\n ) => {\n return client.requestPasswordReset(...args);\n };\n\n const sendVerificationEmail: AuthClient['sendVerificationEmail'] = async (\n ...args\n ) => {\n return client.sendVerificationEmail(...args);\n };\n\n const changeEmail: AuthClient['changeEmail'] = async (...args) => {\n return client.changeEmail(...args);\n };\n\n // @ts-ignore - deleteUser is not typed\n const deleteUser: AuthClient['deleteUser'] = async (...args) => {\n return client.deleteUser(...args);\n };\n\n const revokeSession: AuthClient['revokeSession'] = async (...args) => {\n return client.revokeSession(...args);\n };\n\n const revokeSessions: AuthClient['revokeSessions'] = async (...args) => {\n return client.revokeSessions(...args);\n };\n\n const revokeOtherSessions: AuthClient['revokeOtherSessions'] = async (\n ...args\n ) => {\n return client.revokeOtherSessions(...args);\n };\n\n const linkSocial: AuthClient['linkSocial'] = async (...args) => {\n return client.linkSocial(...args);\n };\n\n const listAccounts: AuthClient['listAccounts'] = async (...args) => {\n return client.listAccounts(...args);\n };\n\n const unlinkAccount: AuthClient['unlinkAccount'] = async (...args) => {\n return client.unlinkAccount(...args);\n };\n\n const refreshToken: AuthClient['refreshToken'] = async (...args) => {\n return client.refreshToken(...args);\n };\n\n const getAccessToken: AuthClient['getAccessToken'] = async (...args) => {\n return client.getAccessToken(...args);\n };\n\n const accountInfo: AuthClient['accountInfo'] = async (...args) => {\n return client.accountInfo(...args);\n };\n\n const updateUser: AuthClient['updateUser'] = async (...args) => {\n return client.updateUser(...args);\n };\n\n const listSessions: AuthClient['listSessions'] = async (...args) => {\n return client.listSessions(...args);\n };\n\n const enableTwoFactor: AuthClient['twoFactor']['enable'] = async (\n ...args\n ) => {\n return client.twoFactor.enable(...args) as ReturnType<\n AuthClient['twoFactor']['enable']\n >;\n };\n\n const disableTwoFactor: AuthClient['twoFactor']['disable'] = async (\n ...args\n ) => {\n return client.twoFactor.disable(...args) as ReturnType<\n AuthClient['twoFactor']['disable']\n >;\n };\n\n const verifyTotp: AuthClient['twoFactor']['verifyTotp'] = async (...args) => {\n return client.twoFactor.verifyTotp(...args) as ReturnType<\n AuthClient['twoFactor']['verifyTotp']\n >;\n };\n\n const verifyBackupCode: AuthClient['twoFactor']['verifyBackupCode'] = async (\n ...args\n ) => {\n return client.twoFactor.verifyBackupCode(...args) as ReturnType<\n AuthClient['twoFactor']['verifyBackupCode']\n >;\n };\n\n const addPasskey: AuthClient['passkey']['addPasskey'] = async (...args) => {\n return client.passkey.addPasskey(...args);\n };\n\n const signInPasskey: AuthClient['signIn']['passkey'] = async (...args) => {\n return client.signIn.passkey(...args);\n };\n\n const deletePasskey: AuthClient['passkey']['deletePasskey'] = async (\n ...args\n ) => {\n return client.passkey.deletePasskey(...args);\n };\n\n const listPasskeys = async () => {\n // @ts-ignore - listPasskeys may not be typed yet\n return client.$fetch('/passkey/list-user-passkeys', {\n method: 'GET',\n });\n };\n\n const signInMagicLink: any = async (...args: any[]) => {\n return (client.signIn as any).magicLink(...args);\n };\n\n const signInSSO: AuthClient['signIn']['sso'] = async (...args) => {\n return client.signIn.sso(...args);\n };\n\n const registerSSO: AuthClient['sso']['register'] = async (...args) => {\n return client.sso.register(...args);\n };\n\n const listSSOProviders = async () => {\n // Not implemented yet\n };\n\n const deleteSSOProvider = async (_args: { providerId: string }) => {\n // Not implemented yet\n };\n\n return {\n getAuthClient: () => client,\n signInEmail,\n signUpEmail,\n signOut,\n signInSocial,\n linkSocial,\n changePasswordSession,\n requestPasswordResetSession,\n resetPassword,\n verifyEmailSession,\n getSession,\n forgetPassword,\n sendVerificationEmail,\n changeEmail,\n deleteUser,\n revokeSession,\n revokeSessions,\n revokeOtherSessions,\n listAccounts,\n unlinkAccount,\n refreshToken,\n getAccessToken,\n accountInfo,\n updateUser,\n listSessions,\n enableTwoFactor,\n disableTwoFactor,\n verifyTotp,\n verifyBackupCode,\n addPasskey,\n signInPasskey,\n deletePasskey,\n listPasskeys,\n signInMagicLink,\n signInSSO,\n registerSSO,\n listSSOProviders,\n deleteSSOProvider,\n };\n};\n"],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{useToast as e}from"../components/Toaster/useToast.mjs";import{
|
|
1
|
+
"use client";import{useToast as e}from"../components/Toaster/useToast.mjs";import{MutationCache as t,QueryClient as n,QueryClientProvider as r}from"@tanstack/react-query";import{useRef as i}from"react";import{jsx as a}from"react/jsx-runtime";const o={queries:{retry:1,staleTime:30*1e3,gcTime:300*1e3,refetchOnMount:!0,refetchOnWindowFocus:!1,refetchOnReconnect:!1},mutations:{retry:0}},s=e=>e.split(`_`).join(` `),c=()=>{let{toast:t}=e();return{onError:e=>{[(()=>{try{if(typeof e==`string`)return JSON.parse(e)}catch{}return e})()].flat().forEach(e=>{let n=e?.error??e;t({title:s(n?.title??e?.title??`Error`),description:n?.message??e?.message??String(n??`An error occurred`),variant:`error`})})},onSuccess:e=>{e?.error&&t({title:s(e.error.title??e.error.code??`Error`),description:e.error.message??e.error.code??`An error occurred`,variant:`error`}),e?.message&&t({title:e.message,description:e.description,variant:`success`})}}},l=({children:e})=>{let{onError:s,onSuccess:l}=c(),u=i(null);if(!u.current){let e=new n({defaultOptions:o,mutationCache:new t({onSuccess:l,onError:s,onSettled:(t,n,r,i,a)=>{a.meta?.invalidateQueries&&a.meta.invalidateQueries.forEach(t=>{e.invalidateQueries({queryKey:t})}),a.meta?.resetQueries&&a.meta.resetQueries.forEach(t=>{e.resetQueries({queryKey:t})})}})});u.current=e}return a(r,{client:u.current,children:e})};export{l as ReactQueryProvider};
|
|
2
2
|
//# sourceMappingURL=ReactQueryProvider.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _intlayer_types_nodeType0 from "@intlayer/types/nodeType";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Breadcrumb/breadcrumb.content.d.ts
|
|
4
4
|
declare const breadCrumbContent: {
|
|
5
5
|
key: string;
|
|
6
6
|
content: {
|
|
7
|
-
linkLabel:
|
|
7
|
+
linkLabel: _intlayer_types_nodeType0.TypedNodeModel<_intlayer_types_nodeType0.NodeType.Translation, {
|
|
8
8
|
en: string;
|
|
9
9
|
fr: string;
|
|
10
10
|
es: string;
|
|
@@ -24,7 +24,7 @@ declare const breadCrumbContent: {
|
|
|
24
24
|
vi: string;
|
|
25
25
|
uk: string;
|
|
26
26
|
}, {
|
|
27
|
-
nodeType:
|
|
27
|
+
nodeType: _intlayer_types_nodeType0.NodeType.Translation | "translation";
|
|
28
28
|
} & {
|
|
29
29
|
translation: {
|
|
30
30
|
en: string;
|
|
@@ -2,7 +2,7 @@ import { LinkColor } from "../Link/Link.js";
|
|
|
2
2
|
import { FC, HTMLAttributes, ReactNode } from "react";
|
|
3
3
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
|
-
import { LocalesValues } from "@intlayer/types";
|
|
5
|
+
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
6
6
|
|
|
7
7
|
//#region src/components/Breadcrumb/index.d.ts
|
|
8
8
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _intlayer_types_nodeType0 from "@intlayer/types/nodeType";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Browser/Browser.content.d.ts
|
|
4
4
|
declare const browserContent: {
|
|
5
5
|
key: string;
|
|
6
6
|
content: {
|
|
7
|
-
ariaLabel:
|
|
7
|
+
ariaLabel: _intlayer_types_nodeType0.TypedNodeModel<_intlayer_types_nodeType0.NodeType.Translation, {
|
|
8
8
|
en: string;
|
|
9
9
|
'en-GB': string;
|
|
10
10
|
fr: string;
|
|
@@ -24,7 +24,7 @@ declare const browserContent: {
|
|
|
24
24
|
vi: string;
|
|
25
25
|
uk: string;
|
|
26
26
|
}, {
|
|
27
|
-
nodeType:
|
|
27
|
+
nodeType: _intlayer_types_nodeType0.NodeType.Translation | "translation";
|
|
28
28
|
} & {
|
|
29
29
|
translation: {
|
|
30
30
|
en: string;
|
|
@@ -47,7 +47,7 @@ declare const browserContent: {
|
|
|
47
47
|
uk: string;
|
|
48
48
|
};
|
|
49
49
|
}>;
|
|
50
|
-
urlLabel:
|
|
50
|
+
urlLabel: _intlayer_types_nodeType0.TypedNodeModel<_intlayer_types_nodeType0.NodeType.Translation, {
|
|
51
51
|
en: string;
|
|
52
52
|
'en-GB': string;
|
|
53
53
|
fr: string;
|
|
@@ -67,7 +67,7 @@ declare const browserContent: {
|
|
|
67
67
|
vi: string;
|
|
68
68
|
uk: string;
|
|
69
69
|
}, {
|
|
70
|
-
nodeType:
|
|
70
|
+
nodeType: _intlayer_types_nodeType0.NodeType.Translation | "translation";
|
|
71
71
|
} & {
|
|
72
72
|
translation: {
|
|
73
73
|
en: string;
|
|
@@ -91,7 +91,7 @@ declare const browserContent: {
|
|
|
91
91
|
};
|
|
92
92
|
}>;
|
|
93
93
|
urlPlaceholder: string;
|
|
94
|
-
errorMessage:
|
|
94
|
+
errorMessage: _intlayer_types_nodeType0.TypedNodeModel<_intlayer_types_nodeType0.NodeType.Translation, {
|
|
95
95
|
en: string;
|
|
96
96
|
'en-GB': string;
|
|
97
97
|
fr: string;
|
|
@@ -111,7 +111,7 @@ declare const browserContent: {
|
|
|
111
111
|
vi: string;
|
|
112
112
|
uk: string;
|
|
113
113
|
}, {
|
|
114
|
-
nodeType:
|
|
114
|
+
nodeType: _intlayer_types_nodeType0.NodeType.Translation | "translation";
|
|
115
115
|
} & {
|
|
116
116
|
translation: {
|
|
117
117
|
en: string;
|
|
@@ -134,7 +134,7 @@ declare const browserContent: {
|
|
|
134
134
|
uk: string;
|
|
135
135
|
};
|
|
136
136
|
}>;
|
|
137
|
-
domainRestrictionError:
|
|
137
|
+
domainRestrictionError: _intlayer_types_nodeType0.TypedNodeModel<_intlayer_types_nodeType0.NodeType.Translation, {
|
|
138
138
|
en: string;
|
|
139
139
|
'en-GB': string;
|
|
140
140
|
fr: string;
|
|
@@ -154,7 +154,7 @@ declare const browserContent: {
|
|
|
154
154
|
vi: string;
|
|
155
155
|
uk: string;
|
|
156
156
|
}, {
|
|
157
|
-
nodeType:
|
|
157
|
+
nodeType: _intlayer_types_nodeType0.NodeType.Translation | "translation";
|
|
158
158
|
} & {
|
|
159
159
|
translation: {
|
|
160
160
|
en: string;
|
|
@@ -177,7 +177,7 @@ declare const browserContent: {
|
|
|
177
177
|
uk: string;
|
|
178
178
|
};
|
|
179
179
|
}>;
|
|
180
|
-
backButtonLabel:
|
|
180
|
+
backButtonLabel: _intlayer_types_nodeType0.TypedNodeModel<_intlayer_types_nodeType0.NodeType.Translation, {
|
|
181
181
|
en: string;
|
|
182
182
|
'en-GB': string;
|
|
183
183
|
fr: string;
|
|
@@ -197,7 +197,7 @@ declare const browserContent: {
|
|
|
197
197
|
vi: string;
|
|
198
198
|
uk: string;
|
|
199
199
|
}, {
|
|
200
|
-
nodeType:
|
|
200
|
+
nodeType: _intlayer_types_nodeType0.NodeType.Translation | "translation";
|
|
201
201
|
} & {
|
|
202
202
|
translation: {
|
|
203
203
|
en: string;
|
|
@@ -220,7 +220,7 @@ declare const browserContent: {
|
|
|
220
220
|
uk: string;
|
|
221
221
|
};
|
|
222
222
|
}>;
|
|
223
|
-
forwardButtonLabel:
|
|
223
|
+
forwardButtonLabel: _intlayer_types_nodeType0.TypedNodeModel<_intlayer_types_nodeType0.NodeType.Translation, {
|
|
224
224
|
en: string;
|
|
225
225
|
'en-GB': string;
|
|
226
226
|
fr: string;
|
|
@@ -240,7 +240,7 @@ declare const browserContent: {
|
|
|
240
240
|
vi: string;
|
|
241
241
|
uk: string;
|
|
242
242
|
}, {
|
|
243
|
-
nodeType:
|
|
243
|
+
nodeType: _intlayer_types_nodeType0.NodeType.Translation | "translation";
|
|
244
244
|
} & {
|
|
245
245
|
translation: {
|
|
246
246
|
en: string;
|
|
@@ -263,7 +263,7 @@ declare const browserContent: {
|
|
|
263
263
|
uk: string;
|
|
264
264
|
};
|
|
265
265
|
}>;
|
|
266
|
-
reloadButtonTitle:
|
|
266
|
+
reloadButtonTitle: _intlayer_types_nodeType0.TypedNodeModel<_intlayer_types_nodeType0.NodeType.Translation, {
|
|
267
267
|
en: string;
|
|
268
268
|
'en-GB': string;
|
|
269
269
|
fr: string;
|
|
@@ -283,7 +283,7 @@ declare const browserContent: {
|
|
|
283
283
|
vi: string;
|
|
284
284
|
uk: string;
|
|
285
285
|
}, {
|
|
286
|
-
nodeType:
|
|
286
|
+
nodeType: _intlayer_types_nodeType0.NodeType.Translation | "translation";
|
|
287
287
|
} & {
|
|
288
288
|
translation: {
|
|
289
289
|
en: string;
|
|
@@ -306,7 +306,7 @@ declare const browserContent: {
|
|
|
306
306
|
uk: string;
|
|
307
307
|
};
|
|
308
308
|
}>;
|
|
309
|
-
iframeTitle:
|
|
309
|
+
iframeTitle: _intlayer_types_nodeType0.TypedNodeModel<_intlayer_types_nodeType0.NodeType.Translation, {
|
|
310
310
|
en: string;
|
|
311
311
|
'en-GB': string;
|
|
312
312
|
fr: string;
|
|
@@ -326,7 +326,7 @@ declare const browserContent: {
|
|
|
326
326
|
vi: string;
|
|
327
327
|
uk: string;
|
|
328
328
|
}, {
|
|
329
|
-
nodeType:
|
|
329
|
+
nodeType: _intlayer_types_nodeType0.NodeType.Translation | "translation";
|
|
330
330
|
} & {
|
|
331
331
|
translation: {
|
|
332
332
|
en: string;
|
|
@@ -62,7 +62,7 @@ declare enum ButtonTextAlign {
|
|
|
62
62
|
declare const buttonVariants: (props?: {
|
|
63
63
|
size?: "sm" | "md" | "lg" | "xl" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl";
|
|
64
64
|
color?: "primary" | "secondary" | "destructive" | "success" | "error" | "neutral" | "light" | "dark" | "text" | "custom" | "card" | "current" | "text-inverse";
|
|
65
|
-
roundedSize?: "
|
|
65
|
+
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "4xl" | "5xl" | "full";
|
|
66
66
|
variant?: "input" | "none" | "default" | "outline" | "hoverable" | "link" | "invisible-link" | "fade";
|
|
67
67
|
textAlign?: "left" | "center" | "right";
|
|
68
68
|
isFullWidth?: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _intlayer_types_nodeType0 from "@intlayer/types/nodeType";
|
|
2
2
|
import * as _intlayer_core_transpiler0 from "@intlayer/core/transpiler";
|
|
3
3
|
|
|
4
4
|
//#region src/components/Carousel/index.content.d.ts
|
|
5
5
|
declare const carouselContent: {
|
|
6
6
|
key: string;
|
|
7
7
|
content: {
|
|
8
|
-
goToSlide: _intlayer_core_transpiler0.InsertionContent<
|
|
8
|
+
goToSlide: _intlayer_core_transpiler0.InsertionContent<_intlayer_types_nodeType0.TypedNodeModel<_intlayer_types_nodeType0.NodeType.Translation, {
|
|
9
9
|
ar: string;
|
|
10
10
|
de: string;
|
|
11
11
|
en: string;
|
|
@@ -25,7 +25,7 @@ declare const carouselContent: {
|
|
|
25
25
|
vi: string;
|
|
26
26
|
zh: string;
|
|
27
27
|
}, {
|
|
28
|
-
nodeType:
|
|
28
|
+
nodeType: _intlayer_types_nodeType0.NodeType.Translation | "translation";
|
|
29
29
|
} & {
|
|
30
30
|
translation: {
|
|
31
31
|
ar: string;
|
|
@@ -48,7 +48,7 @@ declare const carouselContent: {
|
|
|
48
48
|
zh: string;
|
|
49
49
|
};
|
|
50
50
|
}>>;
|
|
51
|
-
previousSlide:
|
|
51
|
+
previousSlide: _intlayer_types_nodeType0.TypedNodeModel<_intlayer_types_nodeType0.NodeType.Translation, {
|
|
52
52
|
en: string;
|
|
53
53
|
'en-GB': string;
|
|
54
54
|
ru: string;
|
|
@@ -68,7 +68,7 @@ declare const carouselContent: {
|
|
|
68
68
|
vi: string;
|
|
69
69
|
uk: string;
|
|
70
70
|
}, {
|
|
71
|
-
nodeType:
|
|
71
|
+
nodeType: _intlayer_types_nodeType0.NodeType.Translation | "translation";
|
|
72
72
|
} & {
|
|
73
73
|
translation: {
|
|
74
74
|
en: string;
|
|
@@ -91,7 +91,7 @@ declare const carouselContent: {
|
|
|
91
91
|
uk: string;
|
|
92
92
|
};
|
|
93
93
|
}>;
|
|
94
|
-
nextSlide:
|
|
94
|
+
nextSlide: _intlayer_types_nodeType0.TypedNodeModel<_intlayer_types_nodeType0.NodeType.Translation, {
|
|
95
95
|
en: string;
|
|
96
96
|
'en-GB': string;
|
|
97
97
|
ru: string;
|
|
@@ -111,7 +111,7 @@ declare const carouselContent: {
|
|
|
111
111
|
vi: string;
|
|
112
112
|
uk: string;
|
|
113
113
|
}, {
|
|
114
|
-
nodeType:
|
|
114
|
+
nodeType: _intlayer_types_nodeType0.NodeType.Translation | "translation";
|
|
115
115
|
} & {
|
|
116
116
|
translation: {
|
|
117
117
|
en: 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?: "default" | "
|
|
9
|
-
spacing?: "
|
|
8
|
+
variant?: "default" | "ghost" | "dark" | "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 */
|
|
@@ -73,7 +73,7 @@ declare const Command: {
|
|
|
73
73
|
ref?: React.Ref<HTMLDivElement>;
|
|
74
74
|
} & {
|
|
75
75
|
asChild?: boolean;
|
|
76
|
-
}, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "
|
|
76
|
+
}, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "value" | "disabled"> & {
|
|
77
77
|
disabled?: boolean;
|
|
78
78
|
onSelect?: (value: string) => void;
|
|
79
79
|
value?: string;
|
|
@@ -8,14 +8,14 @@ import { VariantProps } from "class-variance-authority";
|
|
|
8
8
|
* Provides flexible styling options for background, padding, borders, and layout
|
|
9
9
|
*/
|
|
10
10
|
declare const containerVariants: (props?: {
|
|
11
|
-
roundedSize?: "
|
|
12
|
-
transparency?: "
|
|
13
|
-
padding?: "
|
|
11
|
+
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "4xl" | "full";
|
|
12
|
+
transparency?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "full";
|
|
13
|
+
padding?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
|
|
14
14
|
separator?: "both" | "without" | "x" | "y";
|
|
15
15
|
border?: "none" | "with";
|
|
16
|
-
borderColor?: "error" | "success" | "
|
|
17
|
-
background?: "none" | "
|
|
18
|
-
gap?: "
|
|
16
|
+
borderColor?: "error" | "success" | "text" | "primary" | "secondary" | "neutral" | "card" | "warning";
|
|
17
|
+
background?: "none" | "with" | "hoverable";
|
|
18
|
+
gap?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
|
|
19
19
|
} & class_variance_authority_types0.ClassProp) => string;
|
|
20
20
|
/** Available rounded corner sizes for the container */
|
|
21
21
|
declare enum ContainerRoundedSize {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _intlayer_types_nodeType0 from "@intlayer/types/nodeType";
|
|
2
2
|
|
|
3
3
|
//#region src/components/CopyButton/CopyButton.content.d.ts
|
|
4
4
|
declare const copyContentContent: {
|
|
5
5
|
key: string;
|
|
6
6
|
content: {
|
|
7
|
-
label:
|
|
7
|
+
label: _intlayer_types_nodeType0.TypedNodeModel<_intlayer_types_nodeType0.NodeType.Translation, {
|
|
8
8
|
en: string;
|
|
9
9
|
fr: string;
|
|
10
10
|
es: string;
|
|
@@ -24,7 +24,7 @@ declare const copyContentContent: {
|
|
|
24
24
|
vi: string;
|
|
25
25
|
uk: string;
|
|
26
26
|
}, {
|
|
27
|
-
nodeType:
|
|
27
|
+
nodeType: _intlayer_types_nodeType0.NodeType.Translation | "translation";
|
|
28
28
|
} & {
|
|
29
29
|
translation: {
|
|
30
30
|
en: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import { Dictionary
|
|
2
|
+
import { Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
3
4
|
|
|
4
5
|
//#region src/components/DictionaryEditor/DictionaryEditor.d.ts
|
|
5
6
|
type DictionaryEditorProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionaryEditor.d.ts","names":[],"sources":["../../../../src/components/DictionaryEditor/DictionaryEditor.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DictionaryEditor.d.ts","names":[],"sources":["../../../../src/components/DictionaryEditor/DictionaryEditor.tsx"],"mappings":";;;;;KAWK,qBAAA;EACH,UAAA,EAAY,UAAA;EACZ,MAAA,EAAQ,MAAA;EACR,QAAA;AAAA;AAAA,cAGW,gBAAA,EAAkB,EAAA,CAAG,qBAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NodeWrapperProps } from "./index.js";
|
|
2
2
|
import { FC } from "react";
|
|
3
|
-
import { ContentNode } from "@intlayer/types";
|
|
3
|
+
import { ContentNode } from "@intlayer/types/dictionary";
|
|
4
4
|
|
|
5
5
|
//#region src/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts
|
|
6
6
|
type ArrayWrapperProps = Omit<NodeWrapperProps, 'section'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/ArrayWrapper.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"ArrayWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/ArrayWrapper.tsx"],"mappings":";;;;;KAQK,iBAAA,GAAoB,IAAA,CAAK,gBAAA;EAC5B,OAAA,EAAS,WAAA;AAAA;AAAA,cAGE,YAAA,EAAc,EAAA,CAAG,iBAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NodeWrapperProps } from "./index.js";
|
|
2
2
|
import { FC } from "react";
|
|
3
|
-
import { ContentNode } from "@intlayer/types";
|
|
4
3
|
import { ConditionContent } from "@intlayer/core/transpiler";
|
|
4
|
+
import { ContentNode } from "@intlayer/types/dictionary";
|
|
5
5
|
|
|
6
6
|
//#region src/components/DictionaryEditor/NodeWrapper/ConditionWrapper.d.ts
|
|
7
7
|
type ConditionWrapperProps = Omit<NodeWrapperProps, 'section'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/ConditionWrapper.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"ConditionWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/ConditionWrapper.tsx"],"mappings":";;;;;;KAOK,qBAAA,GAAwB,IAAA,CAAK,gBAAA;EAChC,OAAA,EAAS,gBAAA,CAAiB,WAAA;AAAA;AAAA,cAGf,gBAAA,EAAkB,EAAA,CAAG,qBAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NodeWrapperProps } from "./index.js";
|
|
2
2
|
import { FC } from "react";
|
|
3
|
-
import { ContentNode } from "@intlayer/types";
|
|
4
3
|
import { EnumerationContent } from "@intlayer/core/transpiler";
|
|
4
|
+
import { ContentNode } from "@intlayer/types/dictionary";
|
|
5
5
|
|
|
6
6
|
//#region src/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts
|
|
7
7
|
type EnumerationWrapperProps = Omit<NodeWrapperProps, 'section'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnumerationWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"EnumerationWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.tsx"],"mappings":";;;;;;KAOK,uBAAA,GAA0B,IAAA,CAAK,gBAAA;EAClC,OAAA,EAAS,kBAAA,CAAmB,WAAA;AAAA;AAAA,cAGjB,kBAAA,EAAoB,EAAA,CAAG,uBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/FileWrapper.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"FileWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/FileWrapper.tsx"],"mappings":";;;;;KASK,gBAAA,GAAmB,IAAA,CAAK,kBAAA;EAC3B,OAAA,EAAS,WAAA;AAAA;AAAA,cAGE,WAAA,EAAa,EAAA,CAAG,gBAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NodeWrapperProps } from "./index.js";
|
|
2
2
|
import { FC } from "react";
|
|
3
|
-
import { ContentNode } from "@intlayer/types";
|
|
4
3
|
import { HTMLContent } from "@intlayer/core/transpiler";
|
|
4
|
+
import { ContentNode } from "@intlayer/types/dictionary";
|
|
5
5
|
|
|
6
6
|
//#region src/components/DictionaryEditor/NodeWrapper/HtmlWrapper.d.ts
|
|
7
7
|
type HtmlWrapperProps = Omit<NodeWrapperProps, 'section'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HtmlWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/HtmlWrapper.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"HtmlWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/HtmlWrapper.tsx"],"mappings":";;;;;;KAOK,gBAAA,GAAmB,IAAA,CAAK,gBAAA;EAC3B,OAAA,EAAS,WAAA,CAAY,WAAA;AAAA;AAAA,cAGV,WAAA,EAAa,EAAA,CAAG,gBAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NodeWrapperProps } from "./index.js";
|
|
2
2
|
import { FC } from "react";
|
|
3
|
-
import { ContentNode } from "@intlayer/types";
|
|
4
3
|
import { InsertionContent } from "@intlayer/core/transpiler";
|
|
4
|
+
import { ContentNode } from "@intlayer/types/dictionary";
|
|
5
5
|
|
|
6
6
|
//#region src/components/DictionaryEditor/NodeWrapper/InsertionWrapper.d.ts
|
|
7
7
|
type InsertionWrapperProps = Omit<NodeWrapperProps, 'section'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InsertionWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/InsertionWrapper.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"InsertionWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/InsertionWrapper.tsx"],"mappings":";;;;;;KAOK,qBAAA,GAAwB,IAAA,CAAK,gBAAA;EAChC,OAAA,EAAS,gBAAA,CAAiB,WAAA;AAAA;AAAA,cAGf,gBAAA,EAAkB,EAAA,CAAG,qBAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NodeWrapperProps } from "./index.js";
|
|
2
2
|
import { FC } from "react";
|
|
3
|
-
import { ContentNode } from "@intlayer/types";
|
|
4
3
|
import { MarkdownContent } from "@intlayer/core/transpiler";
|
|
4
|
+
import { ContentNode } from "@intlayer/types/dictionary";
|
|
5
5
|
|
|
6
6
|
//#region src/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.d.ts
|
|
7
7
|
type MarkdownWrapperProps = Omit<NodeWrapperProps, 'section'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"MarkdownWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/MarkdownWrapper.tsx"],"mappings":";;;;;;KAOK,oBAAA,GAAuB,IAAA,CAAK,gBAAA;EAC/B,OAAA,EAAS,eAAA,CAAgB,WAAA;AAAA;AAAA,cAGd,eAAA,EAAiB,EAAA,CAAG,oBAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NodeWrapperProps } from "./index.js";
|
|
2
2
|
import { FC } from "react";
|
|
3
|
-
import { ContentNode } from "@intlayer/types";
|
|
3
|
+
import { ContentNode } from "@intlayer/types/dictionary";
|
|
4
4
|
|
|
5
5
|
//#region src/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts
|
|
6
6
|
type NestedObjectWrapperProps = Omit<NodeWrapperProps, 'section'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestedObjectWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"NestedObjectWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.tsx"],"mappings":";;;;;KASK,wBAAA,GAA2B,IAAA,CAAK,gBAAA;EACnC,OAAA,EAAS,MAAA,SAAe,WAAA;AAAA;AAAA,cAGb,mBAAA,EAAqB,EAAA,CAAG,wBAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NodeWrapperProps } from "./index.js";
|
|
2
2
|
import { FC } from "react";
|
|
3
|
-
import { ContentNode } from "@intlayer/types";
|
|
4
3
|
import { TranslationContent } from "@intlayer/core/transpiler";
|
|
4
|
+
import { ContentNode } from "@intlayer/types/dictionary";
|
|
5
5
|
|
|
6
6
|
//#region src/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts
|
|
7
7
|
type TranslationWrapperProps = Omit<NodeWrapperProps, 'section'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranslationWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/TranslationWrapper.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"TranslationWrapper.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/TranslationWrapper.tsx"],"mappings":";;;;;;KAOK,uBAAA,GAA0B,IAAA,CAAK,gBAAA;EAClC,OAAA,EAAS,kBAAA,CAAmB,WAAA;AAAA;AAAA,cAGjB,kBAAA,EAAoB,EAAA,CAAG,uBAAA"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
-
import { ContentNode, Dictionary
|
|
2
|
+
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
+
import { Locale } from "@intlayer/types/allLocales";
|
|
4
|
+
import { KeyPath } from "@intlayer/types/keyPath";
|
|
3
5
|
|
|
4
6
|
//#region src/components/DictionaryEditor/NodeWrapper/index.d.ts
|
|
5
7
|
declare const traceKeys: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/components/DictionaryEditor/NodeWrapper/index.tsx"],"mappings":";;;;;;cAgCa,SAAA;AAAA,KAED,gBAAA;EACV,OAAA,EAAS,OAAA;EACT,UAAA,EAAY,UAAA;EACZ,OAAA,EAAS,WAAA;EACT,eAAA,GAAkB,OAAA;IAAW,OAAA,EAAS,OAAA;IAAW,QAAA;EAAA;EACjD,MAAA,EAAQ,MAAA;EACR,aAAA,EAAe,WAAA;EACf,cAAA,EAAgB,OAAA;EAChB,cAAA,GAAiB,OAAA,EAAS,OAAA;EAC1B,WAAA,IAAe,OAAA,EAAS,OAAA;EACxB,aAAA,IAAiB,OAAA,aAAoB,SAAA;AAAA;AAAA,cAG1B,WAAA,EAAa,EAAA,CAAG,gBAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FC, ReactNode } from "react";
|
|
2
|
-
import { ContentNode, Dictionary
|
|
2
|
+
import { ContentNode, Dictionary } from "@intlayer/types/dictionary";
|
|
3
|
+
import { KeyPath } from "@intlayer/types/keyPath";
|
|
3
4
|
|
|
4
5
|
//#region src/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts
|
|
5
6
|
declare const traceKeys: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextEditor.d.ts","names":[],"sources":["../../../../../src/components/DictionaryFieldEditor/ContentEditorView/TextEditor.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextEditor.d.ts","names":[],"sources":["../../../../../src/components/DictionaryFieldEditor/ContentEditorView/TextEditor.tsx"],"mappings":";;;;;cAyDa,SAAA;AAAA,KA2ID,eAAA;EACV,UAAA,EAAY,UAAA;EACZ,OAAA,EAAS,OAAA;EACT,OAAA,EAAS,WAAA;EACT,UAAA;EACA,aAAA,IAAiB,OAAA,aAAoB,SAAA;EACrC,eAAA,IAAmB,QAAA;AAAA;AAAA,cAmoBR,UAAA,EAAY,EAAA,CAAG,eAAA;AAAA,cAmMf,mBAAA,EAAqB,EAAA,CAAG,eAAA"}
|