@intlayer/design-system 8.12.0 → 8.12.2
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/environment.mjs +111 -0
- package/dist/esm/api/hooks/environment.mjs.map +1 -0
- package/dist/esm/api/hooks/project.mjs +1 -102
- package/dist/esm/api/hooks/project.mjs.map +1 -1
- package/dist/esm/api/hooks/utils.mjs +1 -1
- package/dist/esm/api/index.mjs +4 -3
- package/dist/esm/api/useAuth/useOAuth2.mjs +1 -1
- package/dist/esm/api/useAuth/useSession.mjs +1 -1
- package/dist/esm/api/useIntlayerAPI.mjs +6 -1
- package/dist/esm/api/useIntlayerAPI.mjs.map +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 +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +1 -1
- 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/FormBase.mjs +11 -0
- package/dist/esm/components/Form/FormBase.mjs.map +1 -1
- package/dist/esm/components/Form/elements/OTPElement.mjs +1 -1
- package/dist/esm/components/Form/elements/SwitchSelectorElement.mjs +4 -0
- package/dist/esm/components/Form/elements/SwitchSelectorElement.mjs.map +1 -1
- package/dist/esm/components/KeyboardScreenAdapter/index.mjs +1 -1
- package/dist/esm/components/KeyboardShortcut/KeyboardShortcut.mjs +1 -1
- package/dist/esm/components/Link/Link.mjs +7 -6
- package/dist/esm/components/Link/Link.mjs.map +1 -1
- package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
- package/dist/esm/components/Modal/Modal.mjs +2 -2
- package/dist/esm/components/Navbar/MobileNavbar.mjs +2 -2
- package/dist/esm/components/Pagination/Pagination.mjs +1 -1
- package/dist/esm/components/RightDrawer/RightDrawer.mjs +3 -3
- package/dist/esm/components/Steps/index.mjs +3 -1
- package/dist/esm/components/Steps/index.mjs.map +1 -1
- package/dist/esm/components/SwitchSelector/SwitchSelector.mjs +1 -0
- package/dist/esm/components/SwitchSelector/SwitchSelector.mjs.map +1 -1
- package/dist/esm/components/Tab/Tab.mjs +1 -1
- package/dist/esm/components/TabSelector/TabSelector.mjs +1 -1
- package/dist/esm/hooks/index.mjs +8 -8
- package/dist/esm/libs/auth.mjs +3 -3
- package/dist/esm/libs/auth.mjs.map +1 -1
- package/dist/esm/providers/ReactQueryProvider.mjs +3 -3
- package/dist/esm/providers/ReactQueryProvider.mjs.map +1 -1
- package/dist/types/api/hooks/environment.d.ts +10 -0
- package/dist/types/api/hooks/environment.d.ts.map +1 -0
- package/dist/types/api/hooks/project.d.ts +1 -7
- package/dist/types/api/hooks/project.d.ts.map +1 -1
- package/dist/types/api/index.d.ts +4 -3
- package/dist/types/api/useIntlayerAPI.d.ts +10 -8
- package/dist/types/api/useIntlayerAPI.d.ts.map +1 -1
- package/dist/types/components/Badge/index.d.ts +1 -1
- package/dist/types/components/Button/Button.d.ts +1 -1
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +1 -1
- package/dist/types/components/Command/index.d.ts +2 -2
- package/dist/types/components/Container/index.d.ts +2 -2
- package/dist/types/components/Form/FormBase.d.ts.map +1 -1
- package/dist/types/components/Form/elements/SwitchSelectorElement.d.ts.map +1 -1
- 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/Link/Link.d.ts.map +1 -1
- package/dist/types/components/Steps/index.d.ts.map +1 -1
- package/dist/types/components/SwitchSelector/SwitchSelector.d.ts +1 -1
- 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/package.json +19 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactQueryProvider.mjs","names":[],"sources":["../../../src/providers/ReactQueryProvider.tsx"],"sourcesContent":["'use client';\n\nimport { createAsyncStoragePersister } from '@tanstack/query-async-storage-persister';\nimport {\n type DefaultOptions,\n MutationCache,\n QueryClient,\n QueryClientProvider,\n type QueryKey,\n type UseMutationOptions,\n} from '@tanstack/react-query';\nimport { PersistQueryClientProvider } from '@tanstack/react-query-persist-client';\nimport { type FC, type PropsWithChildren, useRef } from 'react';\nimport { useToast } from '../components/Toaster';\n\nconst PERSIST_MAX_AGE = 1000 * 60 * 60 * 24; // 24h\n// Bump to invalidate every persisted cache after a breaking change in query shapes\nconst PERSIST_BUSTER = 'v1';\n\nconst defaultQueryOptions: DefaultOptions = {\n queries: {\n retry: 1,\n // Keep data fresh for 30 seconds to avoid unnecessary refetches during navigation\n staleTime: 30 * 1000,\n // gcTime must be >= persist maxAge, otherwise restored entries are dropped on rehydrate\n gcTime: PERSIST_MAX_AGE,\n // Only refetch on mount if data is stale (not every single mount)\n refetchOnMount: true,\n refetchOnWindowFocus: false,\n refetchOnReconnect: false,\n },\n mutations: {\n retry: 0,\n },\n};\n\nconst browserLocalStorage = {\n getItem: (key: string) => Promise.resolve(window.localStorage.getItem(key)),\n setItem: (key: string, value: string) =>\n Promise.resolve(window.localStorage.setItem(key, value)),\n removeItem: (key: string) =>\n Promise.resolve(window.localStorage.removeItem(key)),\n};\n\nconst noopStorage = {\n getItem: () => Promise.resolve(null),\n setItem: () => Promise.resolve(),\n removeItem: () => Promise.resolve(),\n};\n\nconst persister = createAsyncStoragePersister({\n storage: typeof window !== 'undefined' ? browserLocalStorage : noopStorage,\n key: 'intlayer-rq-cache',\n});\n\nconst SHOW_ERROR_CODE = false;\n\ndeclare module '@tanstack/react-query' {\n interface Register {\n mutationMeta: {\n onSuccess?: UseMutationOptions['onSuccess'];\n onError?: UseMutationOptions['onError'];\n invalidateQueries?: QueryKey[];\n resetQueries?: QueryKey[];\n };\n }\n}\n\nconst formatErrorCode = (errorCode: string) => errorCode.split('_').join(' ');\n\n/**\n * Hook to handle error logging and toast notifications\n */\nconst useToastEvents = () => {\n const { toast } = useToast();\n\n const onError: MutationCache['config']['onError'] = (error: any) => {\n const parsed = (() => {\n try {\n if (typeof error === 'string') return JSON.parse(error);\n if (error instanceof Error) return JSON.parse(error.message);\n } catch (_) {}\n return error;\n })();\n\n [parsed].flat().forEach((err: any) => {\n // Check for nested error object (standard in your API responses: { statusCode, error: { ... } })\n const apiError = err?.error ?? err;\n\n if (apiError?.code === 'RATE_LIMIT_EXCEEDED_UNAUTHENTICATED') {\n toast({\n title: apiError.message,\n variant: 'error',\n });\n return;\n }\n\n toast({\n title: formatErrorCode(\n SHOW_ERROR_CODE\n ? (apiError?.code ?? err?.code)\n : (apiError?.title ?? err?.title ?? 'Error')\n ),\n description:\n apiError?.message ??\n err?.message ??\n String(apiError ?? 'An error occurred'),\n variant: 'error',\n });\n });\n };\n\n const onSuccess: MutationCache['config']['onSuccess'] = (data: any) => {\n if (data?.error) {\n toast({\n title: formatErrorCode(data.error.title ?? data.error.code ?? 'Error'),\n description:\n data.error.message ?? data.error.code ?? 'An error occurred',\n variant: 'error',\n });\n }\n\n if (data?.message) {\n toast({\n title: data.message,\n description: data.description,\n variant: 'success',\n });\n }\n };\n\n return {\n onError,\n onSuccess,\n };\n};\n\nexport const getQueryClient = () =>\n new QueryClient({ defaultOptions: defaultQueryOptions });\n\ninterface ReactQueryProviderProps {\n client?: QueryClient;\n}\n\nexport const ReactQueryProvider: FC<\n PropsWithChildren<ReactQueryProviderProps>\n> = ({ children, client }) => {\n const { onError, onSuccess } = useToastEvents();\n // Keep handlers in a ref so the cache config (set once below) always calls\n // the latest closures from useToastEvents without needing re-wiring.\n const handlersRef = useRef({ onSuccess, onError });\n handlersRef.current = { onSuccess, onError };\n\n const clientRef = useRef<QueryClient>(client ?? null);\n\n if (!clientRef.current) {\n clientRef.current = new QueryClient({\n defaultOptions: defaultQueryOptions,\n mutationCache: new MutationCache(),\n });\n }\n\n // Wire toast handlers + meta-driven invalidation onto whatever client we\n // ended up with. Required even when the client is created externally (e.g.\n // via getQueryClient() in TanStack Router context), since the externally\n // created client ships with a bare MutationCache.\n const wiredRef = useRef(false);\n if (!wiredRef.current) {\n wiredRef.current = true;\n const cache = clientRef.current.getMutationCache();\n cache.config.onSuccess = (\n data,\n variables,\n onMutateResult,\n mutation,\n context\n ) =>\n handlersRef.current.onSuccess?.(\n data,\n variables,\n onMutateResult,\n mutation,\n context\n );\n cache.config.onError = (\n error,\n variables,\n onMutateResult,\n mutation,\n context\n ) =>\n handlersRef.current.onError?.(\n error,\n variables,\n onMutateResult,\n mutation,\n context\n );\n cache.config.onSettled = (\n _data,\n _error,\n _variables,\n _onMutateResult,\n mutation\n ) => {\n if (mutation.meta?.invalidateQueries) {\n mutation.meta.invalidateQueries.forEach((queryKey) => {\n clientRef.current?.invalidateQueries({ queryKey });\n });\n }\n\n if (mutation.meta?.resetQueries) {\n mutation.meta.resetQueries.forEach((queryKey) => {\n clientRef.current?.resetQueries({ queryKey });\n });\n }\n };\n }\n\n if (client) {\n return (\n <QueryClientProvider client={clientRef.current}>\n {children}\n </QueryClientProvider>\n );\n }\n\n return (\n <PersistQueryClientProvider\n client={clientRef.current}\n persistOptions={{\n persister,\n maxAge: PERSIST_MAX_AGE,\n buster: PERSIST_BUSTER,\n dehydrateOptions: {\n shouldDehydrateQuery: (query) => query.state.status === 'success',\n },\n }}\n >\n {children}\n </PersistQueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AAeA,MAAM,kBAAkB,MAAO,KAAK,KAAK;AAEzC,MAAM,iBAAiB;AAEvB,MAAM,sBAAsC;CAC1C,SAAS;EACP,OAAO;EAEP,WAAW,KAAK;EAEhB,QAAQ;EAER,gBAAgB;EAChB,sBAAsB;EACtB,oBAAoB;CACtB;CACA,WAAW,EACT,OAAO,EACT;AACF;AAgBA,MAAM,YAAY,4BAA4B;CAC5C,SAAS,OAAO,WAAW,cAAc;EAdzC,UAAU,QAAgB,QAAQ,QAAQ,OAAO,aAAa,QAAQ,GAAG,CAAC;EAC1E,UAAU,KAAa,UACrB,QAAQ,QAAQ,OAAO,aAAa,QAAQ,KAAK,KAAK,CAAC;EACzD,aAAa,QACX,QAAQ,QAAQ,OAAO,aAAa,WAAW,GAAG,CAAC;CAUM,IAAI;EAN/D,eAAe,QAAQ,QAAQ,IAAI;EACnC,eAAe,QAAQ,QAAQ;EAC/B,kBAAkB,QAAQ,QAAQ;CAIuC;CACzE,KAAK;AACP,CAAC;AAeD,MAAM,mBAAmB,cAAsB,UAAU,MAAM,GAAG,EAAE,KAAK,GAAG;;;;AAK5E,MAAM,uBAAuB;CAC3B,MAAM,EAAE,UAAU,SAAS;CAE3B,MAAM,WAA+C,UAAe;EASlE,QARsB;GACpB,IAAI;IACF,IAAI,OAAO,UAAU,UAAU,OAAO,KAAK,MAAM,KAAK;IACtD,IAAI,iBAAiB,OAAO,OAAO,KAAK,MAAM,MAAM,OAAO;GAC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,WACA,gBACA,UACA,OACF;EACF,MAAM,OAAO,WACX,OACA,WACA,gBACA,UACA,YAEA,YAAY,QAAQ,UAClB,OACA,WACA,gBACA,UACA,OACF;EACF,MAAM,OAAO,aACX,OACA,QACA,YACA,iBACA,aACG;GACH,IAAI,SAAS,MAAM,mBACjB,SAAS,KAAK,kBAAkB,SAAS,aAAa;IACpD,UAAU,SAAS,kBAAkB,EAAE,SAAS,CAAC;GACnD,CAAC;GAGH,IAAI,SAAS,MAAM,cACjB,SAAS,KAAK,aAAa,SAAS,aAAa;IAC/C,UAAU,SAAS,aAAa,EAAE,SAAS,CAAC;GAC9C,CAAC;EAEL;CACF;CAEA,IAAI,
|
|
1
|
+
{"version":3,"file":"ReactQueryProvider.mjs","names":[],"sources":["../../../src/providers/ReactQueryProvider.tsx"],"sourcesContent":["'use client';\n\nimport { createAsyncStoragePersister } from '@tanstack/query-async-storage-persister';\nimport {\n type DefaultOptions,\n MutationCache,\n QueryClient,\n QueryClientProvider,\n type QueryKey,\n type UseMutationOptions,\n} from '@tanstack/react-query';\nimport { PersistQueryClientProvider } from '@tanstack/react-query-persist-client';\nimport { type FC, type PropsWithChildren, useRef } from 'react';\nimport { useToast } from '../components/Toaster';\n\nconst PERSIST_MAX_AGE = 1000 * 60 * 60 * 24; // 24h\n// Bump to invalidate every persisted cache after a breaking change in query shapes\nconst PERSIST_BUSTER = 'v1';\n\nconst defaultQueryOptions: DefaultOptions = {\n queries: {\n retry: 1,\n // Keep data fresh for 30 seconds to avoid unnecessary refetches during navigation\n staleTime: 30 * 1000,\n // gcTime must be >= persist maxAge, otherwise restored entries are dropped on rehydrate\n gcTime: PERSIST_MAX_AGE,\n // Only refetch on mount if data is stale (not every single mount)\n refetchOnMount: true,\n refetchOnWindowFocus: false,\n refetchOnReconnect: false,\n },\n mutations: {\n retry: 0,\n },\n};\n\nconst browserLocalStorage = {\n getItem: (key: string) => Promise.resolve(window.localStorage.getItem(key)),\n setItem: (key: string, value: string) =>\n Promise.resolve(window.localStorage.setItem(key, value)),\n removeItem: (key: string) =>\n Promise.resolve(window.localStorage.removeItem(key)),\n};\n\nconst noopStorage = {\n getItem: () => Promise.resolve(null),\n setItem: () => Promise.resolve(),\n removeItem: () => Promise.resolve(),\n};\n\nconst persister = createAsyncStoragePersister({\n storage: typeof window !== 'undefined' ? browserLocalStorage : noopStorage,\n key: 'intlayer-rq-cache',\n});\n\nconst SHOW_ERROR_CODE = false;\n\ndeclare module '@tanstack/react-query' {\n interface Register {\n mutationMeta: {\n onSuccess?: UseMutationOptions['onSuccess'];\n onError?: UseMutationOptions['onError'];\n invalidateQueries?: QueryKey[];\n resetQueries?: QueryKey[];\n };\n }\n}\n\nconst formatErrorCode = (errorCode: string) => errorCode.split('_').join(' ');\n\n/**\n * Hook to handle error logging and toast notifications\n */\nconst useToastEvents = () => {\n const { toast } = useToast();\n\n const onError: MutationCache['config']['onError'] = (error: any) => {\n const parsed = (() => {\n try {\n if (typeof error === 'string') return JSON.parse(error);\n if (error instanceof Error) return JSON.parse(error.message);\n } catch (_) {}\n return error;\n })();\n\n [parsed].flat().forEach((err: any) => {\n // Check for nested error object (standard in your API responses: { statusCode, error: { ... } })\n const apiError = err?.error ?? err;\n\n if (apiError?.code === 'RATE_LIMIT_EXCEEDED_UNAUTHENTICATED') {\n toast({\n title: apiError.message,\n variant: 'error',\n });\n return;\n }\n\n toast({\n title: formatErrorCode(\n SHOW_ERROR_CODE\n ? (apiError?.code ?? err?.code)\n : (apiError?.title ?? err?.title ?? 'Error')\n ),\n description:\n apiError?.message ??\n err?.message ??\n String(apiError ?? 'An error occurred'),\n variant: 'error',\n });\n });\n };\n\n const onSuccess: MutationCache['config']['onSuccess'] = (data: any) => {\n if (data?.error) {\n toast({\n title: formatErrorCode(data.error.title ?? data.error.code ?? 'Error'),\n description:\n data.error.message ?? data.error.code ?? 'An error occurred',\n variant: 'error',\n });\n }\n\n if (data?.message) {\n toast({\n title: data.message,\n description: data.description,\n variant: 'success',\n });\n }\n };\n\n return {\n onError,\n onSuccess,\n };\n};\n\nexport const getQueryClient = () =>\n new QueryClient({ defaultOptions: defaultQueryOptions });\n\ninterface ReactQueryProviderProps {\n client?: QueryClient;\n}\n\nexport const ReactQueryProvider: FC<\n PropsWithChildren<ReactQueryProviderProps>\n> = ({ children, client }) => {\n const { onError, onSuccess } = useToastEvents();\n // Keep handlers in a ref so the cache config (set once below) always calls\n // the latest closures from useToastEvents without needing re-wiring.\n const handlersRef = useRef({ onSuccess, onError });\n handlersRef.current = { onSuccess, onError };\n\n const clientRef = useRef<QueryClient>(client ?? null);\n\n if (!clientRef.current) {\n clientRef.current = new QueryClient({\n defaultOptions: defaultQueryOptions,\n mutationCache: new MutationCache(),\n });\n }\n\n // Wire toast handlers + meta-driven invalidation onto whatever client we\n // ended up with. Required even when the client is created externally (e.g.\n // via getQueryClient() in TanStack Router context), since the externally\n // created client ships with a bare MutationCache.\n const wiredRef = useRef(false);\n if (!wiredRef.current) {\n wiredRef.current = true;\n const cache = clientRef.current.getMutationCache();\n cache.config.onSuccess = (\n data,\n variables,\n onMutateResult,\n mutation,\n context\n ) =>\n handlersRef.current.onSuccess?.(\n data,\n variables,\n onMutateResult,\n mutation,\n context\n );\n cache.config.onError = (\n error,\n variables,\n onMutateResult,\n mutation,\n context\n ) =>\n handlersRef.current.onError?.(\n error,\n variables,\n onMutateResult,\n mutation,\n context\n );\n cache.config.onSettled = (\n _data,\n _error,\n _variables,\n _onMutateResult,\n mutation\n ) => {\n if (mutation.meta?.invalidateQueries) {\n mutation.meta.invalidateQueries.forEach((queryKey) => {\n clientRef.current?.invalidateQueries({ queryKey });\n });\n }\n\n if (mutation.meta?.resetQueries) {\n mutation.meta.resetQueries.forEach((queryKey) => {\n clientRef.current?.resetQueries({ queryKey });\n });\n }\n };\n }\n\n if (client || typeof window === 'undefined') {\n return (\n <QueryClientProvider client={clientRef.current}>\n {children}\n </QueryClientProvider>\n );\n }\n\n return (\n <PersistQueryClientProvider\n client={clientRef.current}\n persistOptions={{\n persister,\n maxAge: PERSIST_MAX_AGE,\n buster: PERSIST_BUSTER,\n dehydrateOptions: {\n shouldDehydrateQuery: (query) => query.state.status === 'success',\n },\n }}\n >\n {children}\n </PersistQueryClientProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AAeA,MAAM,kBAAkB,MAAO,KAAK,KAAK;AAEzC,MAAM,iBAAiB;AAEvB,MAAM,sBAAsC;CAC1C,SAAS;EACP,OAAO;EAEP,WAAW,KAAK;EAEhB,QAAQ;EAER,gBAAgB;EAChB,sBAAsB;EACtB,oBAAoB;CACtB;CACA,WAAW,EACT,OAAO,EACT;AACF;AAgBA,MAAM,YAAY,4BAA4B;CAC5C,SAAS,OAAO,WAAW,cAAc;EAdzC,UAAU,QAAgB,QAAQ,QAAQ,OAAO,aAAa,QAAQ,GAAG,CAAC;EAC1E,UAAU,KAAa,UACrB,QAAQ,QAAQ,OAAO,aAAa,QAAQ,KAAK,KAAK,CAAC;EACzD,aAAa,QACX,QAAQ,QAAQ,OAAO,aAAa,WAAW,GAAG,CAAC;CAUM,IAAI;EAN/D,eAAe,QAAQ,QAAQ,IAAI;EACnC,eAAe,QAAQ,QAAQ;EAC/B,kBAAkB,QAAQ,QAAQ;CAIuC;CACzE,KAAK;AACP,CAAC;AAeD,MAAM,mBAAmB,cAAsB,UAAU,MAAM,GAAG,EAAE,KAAK,GAAG;;;;AAK5E,MAAM,uBAAuB;CAC3B,MAAM,EAAE,UAAU,SAAS;CAE3B,MAAM,WAA+C,UAAe;EASlE,QARsB;GACpB,IAAI;IACF,IAAI,OAAO,UAAU,UAAU,OAAO,KAAK,MAAM,KAAK;IACtD,IAAI,iBAAiB,OAAO,OAAO,KAAK,MAAM,MAAM,OAAO;GAC7D,SAAS,GAAG,CAAC;GACb,OAAO;EACT,GAEM,CAAC,EAAE,KAAK,EAAE,SAAS,QAAa;GAEpC,MAAM,WAAW,KAAK,SAAS;GAE/B,IAAI,UAAU,SAAS,uCAAuC;IAC5D,MAAM;KACJ,OA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IAAI,SAAS,MAAM,mBACjB,SAAS,KAAK,kBAAkB,SAAS,aAAa;IACpD,UAAU,SAAS,kBAAkB,EAAE,SAAS,CAAC;GACnD,CAAC;GAGH,IAAI,SAAS,MAAM,cACjB,SAAS,KAAK,aAAa,SAAS,aAAa;IAC/C,UAAU,SAAS,aAAa,EAAE,SAAS,CAAC;GAC9C,CAAC;EAEL;CACF;CAEA,IAAI,UAAU,OAAO,WAAW,aAC9B,OACE,oBAAC,qBAAD;EAAqB,QAAQ,UAAU;EACpC;CACkB;CAIzB,OACE,oBAAC,4BAAD;EACE,QAAQ,UAAU;EAClB,gBAAgB;GACd;GACA,QAAQ;GACR,QAAQ;GACR,kBAAkB,EAChB,uBAAuB,UAAU,MAAM,MAAM,WAAW,UAC1D;EACF;EAEC;CACyB;AAEhC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/api/hooks/environment.d.ts
|
|
2
|
+
declare const useAddEnvironment: () => any;
|
|
3
|
+
declare const useUpdateEnvironment: () => any;
|
|
4
|
+
declare const useDeleteEnvironment: () => any;
|
|
5
|
+
declare const useSelectEnvironment: () => any;
|
|
6
|
+
declare const useResetToProductionEnvironment: () => any;
|
|
7
|
+
declare const useMigrateEnvironment: () => any;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { useAddEnvironment, useDeleteEnvironment, useMigrateEnvironment, useResetToProductionEnvironment, useSelectEnvironment, useUpdateEnvironment };
|
|
10
|
+
//# sourceMappingURL=environment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment.d.ts","names":[],"sources":["../../../../src/api/hooks/environment.ts"],"mappings":";cAUa,iBAAA;AAAA,cAsBA,oBAAA;AAAA,cAyBA,oBAAA;AAAA,cAwBA,oBAAA;AAAA,cAmBA,+BAAA;AAAA,cAkBA,qBAAA"}
|
|
@@ -15,16 +15,10 @@ declare const useGetCIConfig: (options?: Partial<UseQueryOptions>) => QueryObser
|
|
|
15
15
|
declare const usePushCIConfig: () => any;
|
|
16
16
|
declare const useTriggerBuild: () => any;
|
|
17
17
|
declare const useTriggerWebhook: () => any;
|
|
18
|
-
declare const useAddEnvironment: () => any;
|
|
19
|
-
declare const useUpdateEnvironment: () => any;
|
|
20
|
-
declare const useDeleteEnvironment: () => any;
|
|
21
|
-
declare const useSelectEnvironment: () => any;
|
|
22
|
-
declare const useResetToProductionEnvironment: () => any;
|
|
23
|
-
declare const useMigrateEnvironment: () => any;
|
|
24
18
|
declare const useAddNewAccessKey: () => any;
|
|
25
19
|
declare const useDeleteAccessKey: () => any;
|
|
26
20
|
declare const useRefreshAccessKey: () => any;
|
|
27
21
|
declare const useUpdateMemberAccess: () => any;
|
|
28
22
|
//#endregion
|
|
29
|
-
export {
|
|
23
|
+
export { useAddNewAccessKey, useAddProject, useDeleteAccessKey, useDeleteProject, useDeleteProjectById, useGetCIConfig, useGetProjects, usePushCIConfig, usePushProjectConfiguration, useRefreshAccessKey, useSelectProject, useTriggerBuild, useTriggerWebhook, useUnselectProject, useUpdateMemberAccess, useUpdateProject, useUpdateProjectMembers };
|
|
30
24
|
//# sourceMappingURL=project.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","names":[],"sources":["../../../../src/api/hooks/project.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"project.d.ts","names":[],"sources":["../../../../src/api/hooks/project.ts"],"mappings":";;;;cAsBa,cAAA,GACX,OAAA,GAAU,iBAAA,EACV,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAcvB,aAAA;AAAA,cAYA,gBAAA;AAAA,cAqBA,2BAAA;AAAA,cAmBA,uBAAA;AAAA,cAaA,gBAAA;AAAA,cAYA,oBAAA;AAAA,cAaA,gBAAA;AAAA,cA4BA,kBAAA;AAAA,cA4BA,cAAA,GAAkB,OAAA,GAAU,OAAA,CAAQ,eAAA,MAAgB,mBAAA,CAAA,KAAA,EAAA,MAAA;AAAA,cAWpD,eAAA;AAAA,cAYA,eAAA;AAAA,cAYA,iBAAA;AAAA,cAaA,kBAAA;AAAA,cAYA,kBAAA;AAAA,cAYA,mBAAA;AAAA,cAaA,qBAAA"}
|
|
@@ -5,14 +5,15 @@ import { useBitbucketAuth, useBitbucketCheckConfig, useBitbucketGetConfigFile, u
|
|
|
5
5
|
import { useAddDictionary, useDeleteDictionary, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useInfiniteGetDictionaries, usePushDictionaries, useUpdateDictionary } from "./hooks/dictionary.js";
|
|
6
6
|
import { useGetDiscussions, useGetDiscussionsData } from "./hooks/discussions.js";
|
|
7
7
|
import { useGetEditorDictionaries, useWriteDictionary } from "./hooks/editor.js";
|
|
8
|
+
import { useAddEnvironment, useDeleteEnvironment, useMigrateEnvironment, useResetToProductionEnvironment, useSelectEnvironment, useUpdateEnvironment } from "./hooks/environment.js";
|
|
8
9
|
import { useGithubAuth, useGithubCheckConfig, useGithubGetAuthUrl, useGithubGetConfigFile, useGithubRepos, useGithubToken } from "./hooks/github.js";
|
|
9
10
|
import { useGitlabAuth, useGitlabCheckConfig, useGitlabGetConfigFile, useGitlabProjects } from "./hooks/gitlab.js";
|
|
10
11
|
import { useGetNewsletterStatus, useSubscribeToNewsletter, useUnsubscribeFromNewsletter } from "./hooks/newsletter.js";
|
|
11
12
|
import { useAddOrganization, useAddOrganizationMember, useDeleteOrganization, useDeleteOrganizationById, useGetOrganizations, useSelectOrganization, useUnselectOrganization, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateOrganizationMembersById } from "./hooks/organization.js";
|
|
12
|
-
import {
|
|
13
|
+
import { useAddNewAccessKey, useAddProject, useDeleteAccessKey, useDeleteProject, useDeleteProjectById, useGetCIConfig, useGetProjects, usePushCIConfig, usePushProjectConfiguration, useRefreshAccessKey, useSelectProject, useTriggerBuild, useTriggerWebhook, useUnselectProject, useUpdateMemberAccess, useUpdateProject, useUpdateProjectMembers } from "./hooks/project.js";
|
|
13
14
|
import { useContactReviewer, useCreateMission, useDeleteReviewerProfile, useEstimateMission, useGetAdminReviewers, useGetChatHistory, useGetMissionById, useGetMyMissions, useGetMyReviewerProfile, useGetReviewerById, useGetReviewerMarketplace, useGetReviewerPriceDistribution, useGetReviewerReviews, useRegisterAsReviewer, useSendReviewerMessage, useSubmitReview, useUpdateMissionStatus, useUpdateReviewerProfile, useUploadReviewerCoverPicture, useUploadReviewerMainPicture, useValidateReviewerProfile } from "./hooks/reviewer.js";
|
|
14
15
|
import { useSearchDoc } from "./hooks/search.js";
|
|
15
|
-
import { UseIntlayerAuthProps, useAiAPI, useAuditAPI, useBitbucketAPI, useDictionaryAPI, useEditorAPI, useGithubAPI, useGitlabAPI, useIntlayerAuth, useIntlayerOAuth, useIntlayerOAuthOptions, useNewsletterAPI, useOAuthAPI, useOrganizationAPI, useProjectAPI, useReviewerAPI, useSearchAPI, useShowcaseProjectAPI, useStripeAPI, useTagAPI, useTranslateAPI, useUserAPI } from "./useIntlayerAPI.js";
|
|
16
|
+
import { UseIntlayerAuthProps, useAiAPI, useAuditAPI, useBitbucketAPI, useDictionaryAPI, useEditorAPI, useEnvironmentAPI, useGithubAPI, useGitlabAPI, useIntlayerAuth, useIntlayerOAuth, useIntlayerOAuthOptions, useNewsletterAPI, useOAuthAPI, useOrganizationAPI, useProjectAPI, useReviewerAPI, useSearchAPI, useShowcaseProjectAPI, useStripeAPI, useTagAPI, useTranslateAPI, useUserAPI } from "./useIntlayerAPI.js";
|
|
16
17
|
import { useDeleteShowcaseProject, useGetOtherShowcaseProjects, useGetShowcaseProjectById, useGetShowcaseProjects, useSubmitShowcaseProject, useToggleShowcaseDownvote, useToggleShowcaseUpvote, useUpdateShowcaseProject } from "./hooks/showcaseProject.js";
|
|
17
18
|
import { useAcceptAffiliateInvitation, useCancelSubscription, useCreatePortalSession, useCreatePromoCode, useDeletePromoCode, useGetAffiliate, useGetAffiliateAccountSession, useGetAffiliateById, useGetAffiliateInvitation, useGetAffiliateInvitations, useGetAffiliateOnboardingLink, useGetAffiliatePromoCode, useGetAffiliateStats, useGetAffiliates, useGetInvoices, useGetPaymentMethod, useGetPricing, useGetPromoCodeById, useGetPromoCodes, useGetSubscription, useGrantAffiliateAccess, useSendAffiliateInvitation, useUpdateAffiliateStatus, useUpdatePromoCode } from "./hooks/stripe.js";
|
|
18
19
|
import { useAddTag, useDeleteTag, useGetTags, useUpdateTag } from "./hooks/tag.js";
|
|
@@ -22,4 +23,4 @@ import { useAuth } from "./useAuth/useAuth.js";
|
|
|
22
23
|
import { useOAuth2 } from "./useAuth/useOAuth2.js";
|
|
23
24
|
import { UseSessionResult, useSession } from "./useAuth/useSession.js";
|
|
24
25
|
import { useUser } from "./useUser/index.js";
|
|
25
|
-
export { UseIntlayerAuthProps, UseSessionResult, useAcceptAffiliateInvitation, useAddDictionary, useAddEnvironment, useAddNewAccessKey, useAddOrganization, useAddOrganizationMember, useAddPasskey, useAddProject, useAddTag, useAiAPI, useAskDocQuestion, useAskResetPassword, useAuditAPI, useAuditContentDeclaration, useAuditContentDeclarationField, useAuditContentDeclarationMetadata, useAuditScan, useAuditTag, useAuth, useAutocomplete, useBitbucketAPI, useBitbucketAuth, useBitbucketCheckConfig, useBitbucketGetConfigFile, useBitbucketRepos, useCancelSubscription, useChangePassword, useChat, useContactReviewer, useCreateMission, useCreatePortalSession, useCreatePromoCode, useCreateUser, useDeleteAccessKey, useDeleteDictionary, useDeleteEnvironment, useDeleteOrganization, useDeleteOrganizationById, useDeletePasskey, useDeleteProject, useDeleteProjectById, useDeletePromoCode, useDeleteReviewerProfile, useDeleteSSOProvider, useDeleteShowcaseProject, useDeleteTag, useDeleteUser, useDictionaryAPI, useDisableTwoFactor, useEditorAPI, useEnableTwoFactor, useEstimateMission, useFillAllTranslations, useGetAdminReviewers, useGetAffiliate, useGetAffiliateAccountSession, useGetAffiliateById, useGetAffiliateInvitation, useGetAffiliateInvitations, useGetAffiliateOnboardingLink, useGetAffiliatePromoCode, useGetAffiliateStats, useGetAffiliates, useGetCIConfig, useGetChatHistory, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useGetDiscussions, useGetDiscussionsData, useGetEditorDictionaries, useGetInvoices, useGetMissionById, useGetMyMissions, useGetMyReviewerProfile, useGetNewsletterStatus, useGetOrganizations, useGetOtherShowcaseProjects, useGetPaymentMethod, useGetPricing, useGetProjects, useGetPromoCodeById, useGetPromoCodes, useGetRecursiveAuditStatus, useGetReviewerById, useGetReviewerMarketplace, useGetReviewerPriceDistribution, useGetReviewerReviews, useGetShowcaseProjectById, useGetShowcaseProjects, useGetSubscription, useGetTags, useGetUserByAccount, useGetUserById, useGetUsers, useGetVerifyEmailStatus, useGithubAPI, useGithubAuth, useGithubCheckConfig, useGithubGetAuthUrl, useGithubGetConfigFile, useGithubRepos, useGithubToken, useGitlabAPI, useGitlabAuth, useGitlabCheckConfig, useGitlabGetConfigFile, useGitlabProjects, useGrantAffiliateAccess, useInfiniteGetDictionaries, useIntlayerAuth, useIntlayerOAuth, useIntlayerOAuthOptions, useLinkSocial, useListAccounts, useListPasskeys, useListSSOProviders, useLogin, useLogout, useMigrateEnvironment, useNewsletterAPI, useOAuth2, useOAuthAPI, useOrganizationAPI, usePauseTranslationJob, useProjectAPI, usePushCIConfig, usePushDictionaries, usePushProjectConfiguration, useRefreshAccessKey, useRegister, useRegisterAsReviewer, useRegisterSSO, useResetPassword, useResetToProductionEnvironment, useResumeTranslationJob, useReviewerAPI, useSearchAPI, useSearchDoc, useSelectEnvironment, useSelectOrganization, useSelectProject, useSendAffiliateInvitation, useSendReviewerMessage, useSession, useShowcaseProjectAPI, useSignInMagicLink, useSignInPasskey, useSignInSSO, useStartRecursiveAudit, useStopTranslationJob, useStripeAPI, useSubmitReview, useSubmitShowcaseProject, useSubscribeToNewsletter, useTagAPI, useToggleShowcaseDownvote, useToggleShowcaseUpvote, useTranslateAPI, useTranslateJSONDeclaration, useTriggerBuild, useTriggerWebhook, useUnlinkAccount, useUnselectOrganization, useUnselectProject, useUnsubscribeFromNewsletter, useUpdateAffiliateStatus, useUpdateDictionary, useUpdateEnvironment, useUpdateMemberAccess, useUpdateMissionStatus, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateOrganizationMembersById, useUpdateProject, useUpdateProjectMembers, useUpdatePromoCode, useUpdateReviewerProfile, useUpdateShowcaseProject, useUpdateTag, useUpdateUser, useUploadReviewerCoverPicture, useUploadReviewerMainPicture, useUploadUserAvatar, useUser, useUserAPI, useValidateReviewerProfile, useVerifyBackupCode, useVerifyEmail, useVerifyTotp, useWriteDictionary };
|
|
26
|
+
export { UseIntlayerAuthProps, UseSessionResult, useAcceptAffiliateInvitation, useAddDictionary, useAddEnvironment, useAddNewAccessKey, useAddOrganization, useAddOrganizationMember, useAddPasskey, useAddProject, useAddTag, useAiAPI, useAskDocQuestion, useAskResetPassword, useAuditAPI, useAuditContentDeclaration, useAuditContentDeclarationField, useAuditContentDeclarationMetadata, useAuditScan, useAuditTag, useAuth, useAutocomplete, useBitbucketAPI, useBitbucketAuth, useBitbucketCheckConfig, useBitbucketGetConfigFile, useBitbucketRepos, useCancelSubscription, useChangePassword, useChat, useContactReviewer, useCreateMission, useCreatePortalSession, useCreatePromoCode, useCreateUser, useDeleteAccessKey, useDeleteDictionary, useDeleteEnvironment, useDeleteOrganization, useDeleteOrganizationById, useDeletePasskey, useDeleteProject, useDeleteProjectById, useDeletePromoCode, useDeleteReviewerProfile, useDeleteSSOProvider, useDeleteShowcaseProject, useDeleteTag, useDeleteUser, useDictionaryAPI, useDisableTwoFactor, useEditorAPI, useEnableTwoFactor, useEnvironmentAPI, useEstimateMission, useFillAllTranslations, useGetAdminReviewers, useGetAffiliate, useGetAffiliateAccountSession, useGetAffiliateById, useGetAffiliateInvitation, useGetAffiliateInvitations, useGetAffiliateOnboardingLink, useGetAffiliatePromoCode, useGetAffiliateStats, useGetAffiliates, useGetCIConfig, useGetChatHistory, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useGetDiscussions, useGetDiscussionsData, useGetEditorDictionaries, useGetInvoices, useGetMissionById, useGetMyMissions, useGetMyReviewerProfile, useGetNewsletterStatus, useGetOrganizations, useGetOtherShowcaseProjects, useGetPaymentMethod, useGetPricing, useGetProjects, useGetPromoCodeById, useGetPromoCodes, useGetRecursiveAuditStatus, useGetReviewerById, useGetReviewerMarketplace, useGetReviewerPriceDistribution, useGetReviewerReviews, useGetShowcaseProjectById, useGetShowcaseProjects, useGetSubscription, useGetTags, useGetUserByAccount, useGetUserById, useGetUsers, useGetVerifyEmailStatus, useGithubAPI, useGithubAuth, useGithubCheckConfig, useGithubGetAuthUrl, useGithubGetConfigFile, useGithubRepos, useGithubToken, useGitlabAPI, useGitlabAuth, useGitlabCheckConfig, useGitlabGetConfigFile, useGitlabProjects, useGrantAffiliateAccess, useInfiniteGetDictionaries, useIntlayerAuth, useIntlayerOAuth, useIntlayerOAuthOptions, useLinkSocial, useListAccounts, useListPasskeys, useListSSOProviders, useLogin, useLogout, useMigrateEnvironment, useNewsletterAPI, useOAuth2, useOAuthAPI, useOrganizationAPI, usePauseTranslationJob, useProjectAPI, usePushCIConfig, usePushDictionaries, usePushProjectConfiguration, useRefreshAccessKey, useRegister, useRegisterAsReviewer, useRegisterSSO, useResetPassword, useResetToProductionEnvironment, useResumeTranslationJob, useReviewerAPI, useSearchAPI, useSearchDoc, useSelectEnvironment, useSelectOrganization, useSelectProject, useSendAffiliateInvitation, useSendReviewerMessage, useSession, useShowcaseProjectAPI, useSignInMagicLink, useSignInPasskey, useSignInSSO, useStartRecursiveAudit, useStopTranslationJob, useStripeAPI, useSubmitReview, useSubmitShowcaseProject, useSubscribeToNewsletter, useTagAPI, useToggleShowcaseDownvote, useToggleShowcaseUpvote, useTranslateAPI, useTranslateJSONDeclaration, useTriggerBuild, useTriggerWebhook, useUnlinkAccount, useUnselectOrganization, useUnselectProject, useUnsubscribeFromNewsletter, useUpdateAffiliateStatus, useUpdateDictionary, useUpdateEnvironment, useUpdateMemberAccess, useUpdateMissionStatus, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateOrganizationMembersById, useUpdateProject, useUpdateProjectMembers, useUpdatePromoCode, useUpdateReviewerProfile, useUpdateShowcaseProject, useUpdateTag, useUpdateUser, useUploadReviewerCoverPicture, useUploadReviewerMainPicture, useUploadUserAvatar, useUser, useUserAPI, useValidateReviewerProfile, useVerifyBackupCode, useVerifyEmail, useVerifyTotp, useWriteDictionary };
|
|
@@ -9,13 +9,13 @@ type UseIntlayerAuthProps = {
|
|
|
9
9
|
};
|
|
10
10
|
declare const useIntlayerOAuthOptions: (props?: UseIntlayerAuthProps) => {
|
|
11
11
|
options: {
|
|
12
|
-
mode?: RequestMode;
|
|
13
12
|
cache?: RequestCache;
|
|
14
13
|
credentials?: RequestCredentials;
|
|
15
14
|
headers: HeadersInit;
|
|
16
15
|
integrity?: string;
|
|
17
16
|
keepalive?: boolean;
|
|
18
17
|
method?: string;
|
|
18
|
+
mode?: RequestMode;
|
|
19
19
|
priority?: RequestPriority;
|
|
20
20
|
redirect?: RequestRedirect;
|
|
21
21
|
referrer?: string;
|
|
@@ -59,12 +59,6 @@ declare const useProjectAPI: (props?: UseIntlayerAuthProps) => {
|
|
|
59
59
|
triggerWebhook: (webhookIndex: import("@intlayer/backend").TriggerWebhookBody["webhookIndex"], otherOptions?: FetcherOptions) => Promise<TriggerWebhookResult>;
|
|
60
60
|
getCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
61
61
|
pushCIConfig: (otherOptions?: FetcherOptions) => Promise<ResponseData<any>>;
|
|
62
|
-
addEnvironment: (body: import("@intlayer/backend").AddEnvironmentBody, otherOptions?: FetcherOptions) => Promise<AddEnvironmentResult>;
|
|
63
|
-
updateEnvironment: (environmentId: string, body: import("@intlayer/backend").UpdateEnvironmentBody, otherOptions?: FetcherOptions) => Promise<UpdateEnvironmentResult>;
|
|
64
|
-
deleteEnvironment: (environmentId: string, otherOptions?: FetcherOptions) => Promise<DeleteEnvironmentResult>;
|
|
65
|
-
selectEnvironment: (environmentId: string, otherOptions?: FetcherOptions) => Promise<SelectEnvironmentResult>;
|
|
66
|
-
resetToProductionEnvironment: (otherOptions?: FetcherOptions) => Promise<ResetToProductionEnvironmentResult>;
|
|
67
|
-
migrateEnvironment: (body: import("@intlayer/backend").MigrateEnvironmentBody, otherOptions?: FetcherOptions) => Promise<MigrateEnvironmentResult>;
|
|
68
62
|
updateMemberAccess: (userId: string, body: import("@intlayer/backend").UpdateMemberAccessBody, otherOptions?: FetcherOptions) => Promise<UpdateMemberAccessResult>;
|
|
69
63
|
};
|
|
70
64
|
declare const useUserAPI: (props?: UseIntlayerAuthProps) => {
|
|
@@ -299,6 +293,14 @@ declare const useReviewerAPI: (props?: UseIntlayerAuthProps) => {
|
|
|
299
293
|
status?: string;
|
|
300
294
|
}, otherOptions?: FetcherOptions) => Promise<PaginatedResponse<ReviewerProfileAPI>>;
|
|
301
295
|
};
|
|
296
|
+
declare const useEnvironmentAPI: (props?: UseIntlayerAuthProps) => {
|
|
297
|
+
addEnvironment: (body: import("@intlayer/backend").AddEnvironmentBody, otherOptions?: FetcherOptions) => Promise<AddEnvironmentResult>;
|
|
298
|
+
updateEnvironment: (environmentId: string, body: import("@intlayer/backend").UpdateEnvironmentBody, otherOptions?: FetcherOptions) => Promise<UpdateEnvironmentResult>;
|
|
299
|
+
deleteEnvironment: (environmentId: string, otherOptions?: FetcherOptions) => Promise<DeleteEnvironmentResult>;
|
|
300
|
+
selectEnvironment: (environmentId: string, otherOptions?: FetcherOptions) => Promise<SelectEnvironmentResult>;
|
|
301
|
+
resetToProductionEnvironment: (otherOptions?: FetcherOptions) => Promise<ResetToProductionEnvironmentResult>;
|
|
302
|
+
migrateEnvironment: (body: import("@intlayer/backend").MigrateEnvironmentBody, otherOptions?: FetcherOptions) => Promise<MigrateEnvironmentResult>;
|
|
303
|
+
};
|
|
302
304
|
//#endregion
|
|
303
|
-
export { UseIntlayerAuthProps, useAiAPI, useAuditAPI, useBitbucketAPI, useDictionaryAPI, useEditorAPI, useGithubAPI, useGitlabAPI, useIntlayerAuth, useIntlayerOAuth, useIntlayerOAuthOptions, useNewsletterAPI, useOAuthAPI, useOrganizationAPI, useProjectAPI, useReviewerAPI, useSearchAPI, useShowcaseProjectAPI, useStripeAPI, useTagAPI, useTranslateAPI, useUserAPI };
|
|
305
|
+
export { UseIntlayerAuthProps, useAiAPI, useAuditAPI, useBitbucketAPI, useDictionaryAPI, useEditorAPI, useEnvironmentAPI, useGithubAPI, useGitlabAPI, useIntlayerAuth, useIntlayerOAuth, useIntlayerOAuthOptions, useNewsletterAPI, useOAuthAPI, useOrganizationAPI, useProjectAPI, useReviewerAPI, useSearchAPI, useShowcaseProjectAPI, useStripeAPI, useTagAPI, useTranslateAPI, useUserAPI };
|
|
304
306
|
//# sourceMappingURL=useIntlayerAPI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIntlayerAPI.d.ts","names":[],"sources":["../../../src/api/useIntlayerAPI.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"useIntlayerAPI.d.ts","names":[],"sources":["../../../src/api/useIntlayerAPI.ts"],"mappings":";;;;;KA+BY,oBAAA;EACV,OAAA,GAAU,cAAA;EACV,qBAAA,GAAwB,cAAc;AAAA;AAAA,cAG3B,uBAAA,GAA2B,KAAA,GAAQ,oBAAA;;;;;;;;;;;;;;;;;;;;cAsBnC,gBAAA,GAAoB,KAAA,GAAQ,oBAAA,KAAuB,WAG/D;AAAA,cAEY,eAAA,GAAmB,KAAA,GAAQ,oBAAA,KAAuB,OAI9D;AAAA,cAEY,kBAAA,GAAsB,KAAA,GAAQ,oBAAA;2DAvDvC,sBAAA,EAAA,YAAA,GAAuC,cAAA,KAAA,OAAA,CACxB,sBAAA;uHAEE,cAAA,KAAA,OAAA,CAA6B,qBAAA;kGAE5B,cAAA,KAAA,OAAA,CAA6B,qBAAA;sGAEd,cAAA,KAAA,OAAA,CAA6B,2BAAA;wGAEpB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AAA;;;oBAIhB,cAAA,KAAA,OAAA,CAA6B,YAAA;qDACJ,cAAA,KAAA,OAAA,CAEhB,YAAA,CAAa,kBAAA;qGAGuB,cAAA,KAAA,OAAA,CACxC,YAAA,CAAY,kBAAA;;iDAIR,cAAA,KAAA,OAAA,CAA6B,2BAAA;kDACa,cAAA,KAAA,OAAA,CACzC,2BAAA;+DAGsC,cAAA,KAAA,OAAA,CACjC,YAAA,CAAc,kBAAA;;;;;oBAIe,cAAA,KAAA,OAAA,CAClC,iBAAA,CAAmB,kBAAA;AAAA;AAAA,cA0ErB,iBAAA,GAAqB,KAAA,GAAQ,oBAAA;wFAnJF,cAAA,KAAA,OAAA,CACjC,oBAAA;qHAEG,cAAA,KAAA,OAAA,CAA6B,uBAAA;4DAE5B,cAAA,KAAA,OAAA,CAA6B,uBAAA;4DAEpC,cAAA,KAAA,OAAA,CAA6B,uBAAA;gDACe,cAAA,KAAA,OAAA,CACxB,kCAAA;gGAErB,cAAA,KAAA,OAAA,CAA6B,wBAAA;AAAA"}
|
|
@@ -22,7 +22,7 @@ type BadgeSize = 'sm' | 'md' | 'lg';
|
|
|
22
22
|
* @description Defines the styling variants for different badge combinations
|
|
23
23
|
*/
|
|
24
24
|
declare const badgeVariants: (props?: {
|
|
25
|
-
color?: "
|
|
25
|
+
color?: "text" | "error" | "primary" | "secondary" | "neutral" | "light" | "dark" | "success" | "custom";
|
|
26
26
|
variant?: "default" | "none" | "outline" | "hoverable";
|
|
27
27
|
size?: "sm" | "md" | "lg";
|
|
28
28
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
@@ -24,7 +24,7 @@ type ButtonTextAlign = 'left' | 'center' | 'right';
|
|
|
24
24
|
*/
|
|
25
25
|
declare const buttonVariants: (props?: {
|
|
26
26
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl";
|
|
27
|
-
color?: "
|
|
27
|
+
color?: "text" | "error" | "primary" | "secondary" | "neutral" | "card" | "light" | "dark" | "current" | "text-inverse" | "success" | "custom";
|
|
28
28
|
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "4xl" | "5xl" | "full";
|
|
29
29
|
variant?: "link" | "input" | "default" | "none" | "outline" | "invisible-link" | "hoverable" | "fade";
|
|
30
30
|
textAlign?: "left" | "center" | "right";
|
|
@@ -4,7 +4,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
4
4
|
//#region src/components/CollapsibleTable/CollapsibleTable.d.ts
|
|
5
5
|
declare const collapsibleTableVariants: (props?: {
|
|
6
6
|
size?: "sm" | "md" | "lg" | "xl" | "full";
|
|
7
|
-
variant?: "default" | "
|
|
7
|
+
variant?: "default" | "ghost" | "dark" | "outlined";
|
|
8
8
|
spacing?: "sm" | "md" | "lg" | "auto" | "none";
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
10
10
|
interface CollapsibleTableProps extends Omit<HTMLAttributes<HTMLElement>, 'title'>, VariantProps<typeof collapsibleTableVariants> {
|
|
@@ -27,7 +27,7 @@ declare const Command: {
|
|
|
27
27
|
ref?: React.Ref<HTMLInputElement>;
|
|
28
28
|
} & {
|
|
29
29
|
asChild?: boolean;
|
|
30
|
-
}, "key" |
|
|
30
|
+
}, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement> | "asChild">, "type" | "onChange" | "value"> & {
|
|
31
31
|
value?: string;
|
|
32
32
|
onValueChange?: (search: string) => void;
|
|
33
33
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -71,7 +71,7 @@ declare const Command: {
|
|
|
71
71
|
ref?: React.Ref<HTMLDivElement>;
|
|
72
72
|
} & {
|
|
73
73
|
asChild?: boolean;
|
|
74
|
-
}, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "
|
|
74
|
+
}, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
75
75
|
disabled?: boolean;
|
|
76
76
|
onSelect?: (value: string) => void;
|
|
77
77
|
value?: string;
|
|
@@ -10,9 +10,9 @@ declare const containerVariants: (props?: {
|
|
|
10
10
|
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "4xl" | "full";
|
|
11
11
|
transparency?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "full";
|
|
12
12
|
padding?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
|
|
13
|
-
separator?: "
|
|
13
|
+
separator?: "without" | "both" | "x" | "y";
|
|
14
14
|
border?: "with" | "none";
|
|
15
|
-
borderColor?: "
|
|
15
|
+
borderColor?: "text" | "error" | "primary" | "secondary" | "neutral" | "card" | "success" | "warning";
|
|
16
16
|
background?: "with" | "none" | "hoverable";
|
|
17
17
|
gap?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
|
|
18
18
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormBase.d.ts","names":[],"sources":["../../../../src/components/Form/FormBase.tsx"],"mappings":";;;;;KAcK,SAAA,WAAoB,SAAA,IAAa,cAAA,CAAe,eAAA,IACnD,iBAAA,CAAkB,CAAA,CAAE,KAAA,CAAM,CAAA;EACxB,MAAA,GAAS,CAAA;EACT,QAAA,IAAY,IAAA,EAAM,CAAA,CAAE,KAAA,CAAM,CAAA,aAAc,OAAA;EACxC,eAAA,IAAmB,IAAA,EAAM,CAAA,CAAE,KAAA,CAAM,CAAA,aAAc,OAAA;EAC/C,aAAA,IAAiB,KAAA,EAAO,KAAA,YAAiB,OAAA;EACzC,YAAA;AAAA;AAAA,cAcS,IAAA,aAAkB,SAAA;EAAW,MAAA;EAAA,QAAA,EAAA,YAAA;EAAA,eAAA,EAAA,mBAAA;EAAA,aAAA,EAAA,iBAAA;EAAA,SAAA;EAAA,QAAA;EAAA,YAAA;EAAA,MAAA;EAAA,GAAA;AAAA,GAUvC,SAAA,CAAU,CAAA;EAAO,MAAA;AAAA,sBAAiB,GAAA,CAAA,OAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"FormBase.d.ts","names":[],"sources":["../../../../src/components/Form/FormBase.tsx"],"mappings":";;;;;KAcK,SAAA,WAAoB,SAAA,IAAa,cAAA,CAAe,eAAA,IACnD,iBAAA,CAAkB,CAAA,CAAE,KAAA,CAAM,CAAA;EACxB,MAAA,GAAS,CAAA;EACT,QAAA,IAAY,IAAA,EAAM,CAAA,CAAE,KAAA,CAAM,CAAA,aAAc,OAAA;EACxC,eAAA,IAAmB,IAAA,EAAM,CAAA,CAAE,KAAA,CAAM,CAAA,aAAc,OAAA;EAC/C,aAAA,IAAiB,KAAA,EAAO,KAAA,YAAiB,OAAA;EACzC,YAAA;AAAA;AAAA,cAcS,IAAA,aAAkB,SAAA;EAAW,MAAA;EAAA,QAAA,EAAA,YAAA;EAAA,eAAA,EAAA,mBAAA;EAAA,aAAA,EAAA,iBAAA;EAAA,SAAA;EAAA,QAAA;EAAA,YAAA;EAAA,MAAA;EAAA,GAAA;AAAA,GAUvC,SAAA,CAAU,CAAA;EAAO,MAAA;AAAA,sBAAiB,GAAA,CAAA,OAAA;AAAA,cAwDxB,OAAA,aAAqB,SAAA,EAChC,MAAA,EAAQ,CAAA,EACR,KAAA,GAAQ,YAAA,CAAa,CAAA,CAAE,KAAA,CAAM,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwitchSelectorElement.d.ts","names":[],"sources":["../../../../../src/components/Form/elements/SwitchSelectorElement.tsx"],"mappings":";;;;;KAUK,0BAAA,GAA6B,IAAA,CAChC,gBAAA,QAAwB,cAAA,gBAGxB,cAAA,QAAsB,cAAA;EACpB,IAAA;EACA,WAAA;EACA,WAAA;EACA,SAAA;EACA,QAAA,GAAW,SAAA;AAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"SwitchSelectorElement.d.ts","names":[],"sources":["../../../../../src/components/Form/elements/SwitchSelectorElement.tsx"],"mappings":";;;;;KAUK,0BAAA,GAA6B,IAAA,CAChC,gBAAA,QAAwB,cAAA,gBAGxB,cAAA,QAAsB,cAAA;EACpB,IAAA;EACA,WAAA;EACA,WAAA;EACA,SAAA;EACA,QAAA,GAAW,SAAA;AAAA;AAAA,cAwCF,qBAAA;EAAyB,IAAA;EAAA,WAAA;EAAA,KAAA;EAAA,UAAA;EAAA,IAAA;EAAA,gBAAA;EAAA,QAAA;EAAA,GAAA;AAAA,GASnC,0BAAA,qBAA0B,GAAA,CAAA,OAAA"}
|
|
@@ -5,8 +5,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
declare const checkboxVariants: (props?: {
|
|
6
6
|
variant?: "default";
|
|
7
7
|
size?: "xs" | "sm" | "md" | "lg";
|
|
8
|
-
color?: "
|
|
9
|
-
validationStyleEnabled?: "
|
|
8
|
+
color?: "text" | "error" | "primary" | "secondary" | "neutral" | "light" | "dark" | "text-inverse" | "success" | "custom";
|
|
9
|
+
validationStyleEnabled?: "disabled" | "enabled";
|
|
10
10
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
11
11
|
type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
12
12
|
type CheckboxColor = 'primary' | 'secondary' | 'neutral' | 'light' | 'text' | 'text-inverse' | 'dark' | 'error' | 'success' | 'custom';
|
|
@@ -5,7 +5,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
declare const inputVariants: (props?: {
|
|
6
6
|
variant?: "default" | "invisible";
|
|
7
7
|
size?: "sm" | "md" | "lg";
|
|
8
|
-
validationStyleEnabled?: "
|
|
8
|
+
validationStyleEnabled?: "disabled" | "enabled";
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
10
10
|
type InputVariant = 'default' | 'invisible';
|
|
11
11
|
type InputSize = 'md' | 'lg';
|
|
@@ -5,8 +5,8 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
declare const radioVariants: (props?: {
|
|
6
6
|
variant?: "default";
|
|
7
7
|
size?: "xs" | "sm" | "md" | "lg";
|
|
8
|
-
color?: "
|
|
9
|
-
validationStyleEnabled?: "
|
|
8
|
+
color?: "text" | "error" | "primary" | "secondary" | "neutral" | "light" | "dark" | "text-inverse" | "success" | "custom";
|
|
9
|
+
validationStyleEnabled?: "disabled" | "enabled";
|
|
10
10
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
11
11
|
type RadioSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
12
12
|
type RadioColor = 'primary' | 'secondary' | 'neutral' | 'light' | 'text' | 'text-inverse' | 'dark' | 'error' | 'success' | 'custom';
|
|
@@ -14,7 +14,7 @@ type LinkUnderlined = 'default' | 'true' | 'false';
|
|
|
14
14
|
declare const linkVariants: (props?: {
|
|
15
15
|
variant?: "default" | "invisible-link" | "hoverable" | "button" | "button-outlined";
|
|
16
16
|
roundedSize?: "sm" | "md" | "lg" | "xl" | "2xl" | "none" | "3xl" | "full";
|
|
17
|
-
color?: "
|
|
17
|
+
color?: "text" | "error" | "primary" | "secondary" | "neutral" | "light" | "dark" | "text-inverse" | "success" | "custom";
|
|
18
18
|
size?: "sm" | "md" | "lg" | "xl" | "custom";
|
|
19
19
|
underlined?: boolean | "default";
|
|
20
20
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","names":[],"sources":["../../../../src/components/Link/Link.tsx"],"mappings":";;;;;KAaY,WAAA;;AAAZ;;KAUY,SAAA;AAAA,KAYA,eAAA;AAAA,KAUA,QAAA;AAAA,KAEA,cAAA;AAAA,cAEC,YAAA,GAAY,KAAA;;;;;;;
|
|
1
|
+
{"version":3,"file":"Link.d.ts","names":[],"sources":["../../../../src/components/Link/Link.tsx"],"mappings":";;;;;KAaY,WAAA;;AAAZ;;KAUY,SAAA;AAAA,KAYA,eAAA;AAAA,KAUA,QAAA;AAAA,KAEA,cAAA;AAAA,cAEC,YAAA,GAAY,KAAA;;;;;;;KA4Jb,SAAA,GAAY,iBAAA,CACtB,oBAAA,CAAqB,iBAAA,GACrB,iBAAA,IAEA,YAAA,QAAoB,YAAA;EAClB,KAAA;EACA,cAAA;EACA,aAAA;EACA,QAAA;EACA,MAAA,GAAS,aAAA;AAAA;AAAA,cAGA,mBAAA;EACX,IAAA;EAAA,cAAA,EAAA;AAAA,GAGG,IAAA,CAAK,SAAA,8BACR,GAAA;AAAA,cAwCW,cAAA,GAAkB,QAAmB,EAAT,SAAS;AAAA,cAerC,IAAA,EAAM,EAAE,CAAC,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/Steps/index.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/Steps/index.tsx"],"mappings":";;;KAYK,SAAA,GAAY,cAAA,CAAe,aAAA;EAC9B,MAAA;EACA,KAAA;EACA,UAAA;EACA,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,IAAA,EAAM,EAAE,CAAC,SAAA;AAAA,KAyDjB,UAAA,GAAa,gBAAA,CAAiB,gBAAA;EACjC,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,KAAA,EAAO,EAAE,CAAC,UAAA"}
|
|
@@ -30,7 +30,7 @@ declare const choiceVariant: (props?: {
|
|
|
30
30
|
size?: "xs" | "sm" | "md" | "lg";
|
|
31
31
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
32
32
|
declare const indicatorVariant: (props?: {
|
|
33
|
-
color?: "
|
|
33
|
+
color?: "text" | "error" | "primary" | "secondary" | "neutral" | "light" | "dark";
|
|
34
34
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
35
35
|
/**
|
|
36
36
|
* Component that allows the user to select one of the provided choices.
|
|
@@ -3,7 +3,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
3
3
|
|
|
4
4
|
//#region src/components/SwitchSelector/VerticalSwitchSelector.d.ts
|
|
5
5
|
declare const verticalSwitchSelectorVariant: (props?: {
|
|
6
|
-
color?: "
|
|
6
|
+
color?: "text" | "error" | "primary" | "secondary" | "neutral" | "light" | "dark";
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
9
9
|
declare const verticalChoiceVariant: (props?: {
|
|
@@ -5,7 +5,7 @@ import { ItemSelectorOrientation } from "@hooks/useItemSelector";
|
|
|
5
5
|
//#region src/components/TabSelector/TabSelector.d.ts
|
|
6
6
|
type TabSelectorColor = 'primary' | 'secondary' | 'error' | 'neutral' | 'light' | 'dark' | 'text';
|
|
7
7
|
declare const tabSelectorVariant: (props?: {
|
|
8
|
-
color?: "
|
|
8
|
+
color?: "text" | "error" | "primary" | "secondary" | "neutral" | "light" | "dark";
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
10
10
|
type TabSelectorItemProps = HTMLAttributes<HTMLElement> & {
|
|
11
11
|
key: string | number;
|
|
@@ -146,7 +146,7 @@ type TagBorder = 'none' | 'with';
|
|
|
146
146
|
type TagBackground = 'none' | 'with';
|
|
147
147
|
declare const containerVariants: (props?: {
|
|
148
148
|
roundedSize?: "sm" | "md" | "lg" | "xl" | "none" | "full" | "xxl" | "xxxl";
|
|
149
|
-
color?: "
|
|
149
|
+
color?: "text" | "error" | "primary" | "neutral" | "success" | "warning" | "blue" | "yellow" | "green" | "red" | "orange" | "purple" | "pink" | "brown" | "gray" | "black" | "white";
|
|
150
150
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
151
151
|
border?: "with" | "none";
|
|
152
152
|
background?: "with" | "none";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/design-system",
|
|
3
|
-
"version": "8.12.
|
|
3
|
+
"version": "8.12.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Intlayer design system, including UI components used in the Intlayer editor, website, and visual editor/CMS.",
|
|
6
6
|
"keywords": [
|
|
@@ -430,12 +430,12 @@
|
|
|
430
430
|
"dependencies": {
|
|
431
431
|
"@better-auth/passkey": "1.6.14",
|
|
432
432
|
"@better-auth/sso": "1.6.14",
|
|
433
|
-
"@intlayer/api": "8.12.
|
|
434
|
-
"@intlayer/config": "8.12.
|
|
435
|
-
"@intlayer/core": "8.12.
|
|
436
|
-
"@intlayer/dictionaries-entry": "8.12.
|
|
437
|
-
"@intlayer/editor-react": "8.12.
|
|
438
|
-
"@intlayer/types": "8.12.
|
|
433
|
+
"@intlayer/api": "8.12.2",
|
|
434
|
+
"@intlayer/config": "8.12.2",
|
|
435
|
+
"@intlayer/core": "8.12.2",
|
|
436
|
+
"@intlayer/dictionaries-entry": "8.12.2",
|
|
437
|
+
"@intlayer/editor-react": "8.12.2",
|
|
438
|
+
"@intlayer/types": "8.12.2",
|
|
439
439
|
"@radix-ui/react-dialog": "1.1.15",
|
|
440
440
|
"@radix-ui/react-select": "2.2.6",
|
|
441
441
|
"@radix-ui/react-slot": "1.2.4",
|
|
@@ -443,19 +443,19 @@
|
|
|
443
443
|
"@tailwindcss/aspect-ratio": "0.4.2",
|
|
444
444
|
"@tanstack/query-async-storage-persister": "5.100.14",
|
|
445
445
|
"@tanstack/react-query-persist-client": "5.100.14",
|
|
446
|
-
"@tanstack/react-virtual": "
|
|
446
|
+
"@tanstack/react-virtual": "3.13.26",
|
|
447
447
|
"better-auth": "1.6.14",
|
|
448
448
|
"class-variance-authority": "0.7.1",
|
|
449
449
|
"cmdk": "1.1.1",
|
|
450
450
|
"defu": "6.1.7",
|
|
451
|
-
"dompurify": "
|
|
452
|
-
"isomorphic-dompurify": "
|
|
453
|
-
"react-intlayer": "8.12.
|
|
451
|
+
"dompurify": "3.4.7",
|
|
452
|
+
"isomorphic-dompurify": "3.15.0",
|
|
453
|
+
"react-intlayer": "8.12.2",
|
|
454
454
|
"rollup-preserve-directives": "1.1.3",
|
|
455
455
|
"zod": "4.4.3"
|
|
456
456
|
},
|
|
457
457
|
"devDependencies": {
|
|
458
|
-
"@intlayer/backend": "8.12.
|
|
458
|
+
"@intlayer/backend": "8.12.1",
|
|
459
459
|
"@shikijs/transformers": "4.1.0",
|
|
460
460
|
"@storybook/addon-a11y": "8.6.14",
|
|
461
461
|
"@storybook/addon-essentials": "8.6.14",
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
"@testing-library/jest-dom": "6.9.1",
|
|
478
478
|
"@testing-library/react": "16.3.2",
|
|
479
479
|
"@testing-library/user-event": "14.6.1",
|
|
480
|
-
"@types/dompurify": "
|
|
480
|
+
"@types/dompurify": "3.2.0",
|
|
481
481
|
"@types/espree": "11.1.0",
|
|
482
482
|
"@types/node": "25.9.1",
|
|
483
483
|
"@types/react": "19.2.16",
|
|
@@ -486,7 +486,7 @@
|
|
|
486
486
|
"@utils/ts-config-types": "1.0.4",
|
|
487
487
|
"clsx": "2.1.1",
|
|
488
488
|
"fast-glob": "3.3.3",
|
|
489
|
-
"intlayer": "8.12.
|
|
489
|
+
"intlayer": "8.12.2",
|
|
490
490
|
"rimraf": "6.1.3",
|
|
491
491
|
"shiki": "4.1.0",
|
|
492
492
|
"storybook": "8.6.17",
|
|
@@ -494,26 +494,26 @@
|
|
|
494
494
|
"tsdown": "0.22.1",
|
|
495
495
|
"typescript": "6.0.3",
|
|
496
496
|
"vite": "8.0.16",
|
|
497
|
-
"vite-intlayer": "8.12.
|
|
497
|
+
"vite-intlayer": "8.12.2",
|
|
498
498
|
"vite-plugin-dts": "5.0.1",
|
|
499
499
|
"vitest": "4.1.8"
|
|
500
500
|
},
|
|
501
501
|
"peerDependencies": {
|
|
502
502
|
"@better-fetch/fetch": "1.1.21",
|
|
503
|
-
"@hookform/resolvers": "
|
|
504
|
-
"@intlayer/backend": "8.12.
|
|
503
|
+
"@hookform/resolvers": "5.4.0",
|
|
504
|
+
"@intlayer/backend": "8.12.1",
|
|
505
505
|
"@monaco-editor/react": "4.7.0",
|
|
506
506
|
"@shikijs/transformers": "4.1.0",
|
|
507
507
|
"@tanstack/react-query": "5.101.0",
|
|
508
508
|
"@tanstack/react-query-devtools": "5.101.0",
|
|
509
509
|
"framer-motion": "12.40.0",
|
|
510
510
|
"fuse.js": "7.4.1",
|
|
511
|
-
"intlayer": "8.12.
|
|
511
|
+
"intlayer": "8.12.2",
|
|
512
512
|
"lucide-react": "1.17.0",
|
|
513
513
|
"react": ">=16.0.0",
|
|
514
514
|
"react-dom": ">=16.0.0",
|
|
515
515
|
"react-hook-form": "7.77.0",
|
|
516
|
-
"react-intlayer": "8.12.
|
|
516
|
+
"react-intlayer": "8.12.2",
|
|
517
517
|
"shiki": "4.1.0",
|
|
518
518
|
"tailwindcss": "4.3.0"
|
|
519
519
|
},
|