chore: remove data-provider and use npm package instead (#713)

* chore: remove data-provider, install npm package

* chore: replace monorepo package with npm package: librechat-data-provider

* chore: remove data-provider scripts

* chore: remove data-provider from .eslintrc.js
This commit is contained in:
Danny Avila 2023-07-27 14:49:47 -04:00 committed by GitHub
parent 777d64088b
commit 369b1f4eba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 1403 additions and 3415 deletions

View file

@ -6,7 +6,7 @@ import { useNavigate } from 'react-router-dom';
import { useRecoilValue } from 'recoil';
import store from '~/store';
import { localize } from '~/localization/Translation';
import { useGetStartupConfig } from '@librechat/data-provider';
import { useGetStartupConfig } from 'librechat-data-provider';
import { GoogleIcon, OpenIDIcon, GithubIcon, DiscordIcon } from '~/components';
function Login() {

View file

@ -2,7 +2,7 @@ import { useForm } from 'react-hook-form';
import { useRecoilValue } from 'recoil';
import store from '~/store';
import { localize } from '~/localization/Translation';
import { TLoginUser } from '@librechat/data-provider';
import { TLoginUser } from 'librechat-data-provider';
type TLoginFormProps = {
onSubmit: (data: TLoginUser) => void;

View file

@ -8,7 +8,7 @@ import {
useRegisterUserMutation,
TRegisterUser,
useGetStartupConfig,
} from '@librechat/data-provider';
} from 'librechat-data-provider';
import { GoogleIcon, OpenIDIcon, GithubIcon, DiscordIcon } from '~/components';
function Registration() {

View file

@ -7,7 +7,7 @@ import {
useRequestPasswordResetMutation,
TRequestPasswordReset,
TRequestPasswordResetResponse,
} from '@librechat/data-provider';
} from 'librechat-data-provider';
function RequestPasswordReset() {
const lang = useRecoilValue(store.lang);

View file

@ -1,6 +1,6 @@
import { useState } from 'react';
import { useForm } from 'react-hook-form';
import { useResetPasswordMutation, TResetPassword } from '@librechat/data-provider';
import { useResetPasswordMutation, TResetPassword } from 'librechat-data-provider';
import { useNavigate, useSearchParams } from 'react-router-dom';
import { useRecoilValue } from 'recoil';
import store from '~/store';

View file

@ -1,9 +1,9 @@
import { render, waitFor } from 'layout-test-utils';
import userEvent from '@testing-library/user-event';
import Login from '../Login';
import * as mockDataProvider from '@librechat/data-provider';
import * as mockDataProvider from 'librechat-data-provider';
jest.mock('@librechat/data-provider');
jest.mock('librechat-data-provider');
const setup = ({
useGetUserQueryReturnValue = {

View file

@ -1,9 +1,9 @@
import { render, waitFor } from 'layout-test-utils';
import userEvent from '@testing-library/user-event';
import Registration from '../Registration';
import * as mockDataProvider from '@librechat/data-provider';
import * as mockDataProvider from 'librechat-data-provider';
jest.mock('@librechat/data-provider');
jest.mock('librechat-data-provider');
const setup = ({
useGetUserQueryReturnValue = {