Update package names

This commit is contained in:
Darren Clarke 2024-06-05 08:52:41 +02:00
parent 89d229eba9
commit 85a0fc11e5
106 changed files with 1908 additions and 2686 deletions

View file

@ -17,7 +17,7 @@ import {
import { signIn } from "next-auth/react";
import Image from "next/image";
import LinkLogo from "public/link-logo-small.png";
import { colors, fonts } from "ui";
import { colors, fonts } from "@link-stack/ui";
import { useSearchParams } from "next/navigation";
type LoginProps = {

View file

@ -1,7 +1,7 @@
"use client";
import { FC } from "react";
import { OpenSearchWrapper } from "leafcutter-ui";
import { OpenSearchWrapper } from "@link-stack/leafcutter-ui";
export const Home: FC = () => (
<OpenSearchWrapper url="/app/visualize#/edit/237b8f00-e6a0-11ee-94b3-d7b7409294e7?embed=true" marginTop="0"

View file

@ -3,7 +3,7 @@ import { usePathname, useRouter } from "next/navigation";
import useSWR from "swr";
import { Grid, Box, TextField, Autocomplete } from "@mui/material";
import { searchQuery } from "@/app/_graphql/searchQuery";
import { colors } from "ui";
import { colors } from "@link-stack/ui";
type SearchResultProps = {
props: any;

View file

@ -35,7 +35,7 @@ import LinkLogo from "public/link-logo-small.png";
import { useSession, signOut } from "next-auth/react";
import { getTicketOverviewCountsQuery } from "app/_graphql/getTicketOverviewCountsQuery";
import { SearchBox } from "./SearchBox";
import { fonts } from "ui";
import { fonts } from "@link-stack/ui";
const openWidth = 270;
const closedWidth = 70;

View file

@ -1,4 +1,4 @@
import { Create } from "bridge-ui";
import { Create } from "@link-stack/bridge-ui";
type PageProps = {
params: { segment: string[] };

View file

@ -1,5 +1,5 @@
import { db } from "bridge-common";
import { serviceConfig, Detail } from "bridge-ui";
import { db } from "@link-stack/bridge-common";
import { serviceConfig, Detail } from "@link-stack/bridge-ui";
type Props = {
params: { segment: string[] };

View file

@ -1,5 +1,5 @@
import { db } from "bridge-common";
import { serviceConfig, Edit } from "bridge-ui";
import { db } from "@link-stack/bridge-common";
import { serviceConfig, Edit } from "@link-stack/bridge-ui";
type PageProps = {
params: { segment: string[] };

View file

@ -1,3 +1,3 @@
import { ServiceLayout } from "bridge-ui";
import { ServiceLayout } from "@link-stack/bridge-ui";
export default ServiceLayout;

View file

@ -1,5 +1,5 @@
import { db } from "bridge-common";
import { serviceConfig, List } from "bridge-ui";
import { db } from "@link-stack/bridge-common";
import { serviceConfig, List } from "@link-stack/bridge-ui";
type PageProps = {
params: {

View file

@ -1,4 +1,4 @@
import { Home } from "bridge-ui";
import { Home } from "@link-stack/bridge-ui";
export default function Page() {
return <Home />;

View file

@ -1,4 +1,4 @@
import { About } from "leafcutter-ui";
import { About } from "@link-stack/leafcutter-ui";
export default function Page() {
return <About />;

View file

@ -1,5 +1,5 @@
import { getTemplates } from "opensearch-common";
import { Create } from "leafcutter-ui";
import { getTemplates } from "@link-stack/opensearch-common";
import { Create } from "@link-stack/leafcutter-ui";
export const dynamic = "force-dynamic";

View file

@ -1,4 +1,4 @@
import { FAQ } from "leafcutter-ui";
import { FAQ } from "@link-stack/leafcutter-ui";
export default function Page() {
return <FAQ />;

View file

@ -1,5 +1,5 @@
import { ReactNode } from "react";
import { LeafcutterWrapper } from "leafcutter-ui";
import { LeafcutterWrapper } from "@link-stack/leafcutter-ui";
type LayoutProps = {
children: ReactNode;

View file

@ -1,4 +1,4 @@
import { Home, LeafcutterWrapper } from "leafcutter-ui";
import { Home, LeafcutterWrapper } from "@link-stack/leafcutter-ui";
export const dynamic = "force-dynamic";

View file

@ -1,4 +1,4 @@
import { Trends } from "leafcutter-ui";
import { Trends } from "@link-stack/leafcutter-ui";
export const dynamic = "force-dynamic";

View file

@ -3,7 +3,7 @@
import { FC } from "react";
import { useFormState } from "react-dom";
import { Grid } from "@mui/material";
import { Dialog, Button, TextField, Autocomplete } from "ui";
import { Dialog, Button, TextField, Autocomplete } from "@link-stack/ui";
import { createTicketAction } from "app/_actions/tickets";
import useSWR from "swr";

View file

@ -4,7 +4,7 @@ import { FC, useState } from "react";
import { Grid, Box } from "@mui/material";
import { GridColDef } from "@mui/x-data-grid-pro";
import { StyledDataGrid } from "app/(main)/_components/StyledDataGrid";
import { Button, List, typography } from "ui";
import { Button, List, typography } from "@link-stack/ui";
import { useRouter } from "next/navigation";
import { TicketCreateDialog } from "./TicketCreateDialog";

View file

@ -1,8 +1,8 @@
import { Metadata } from "next";
import { getServerSession } from "app/_lib/authentication";
import { Home } from "leafcutter-ui";
import { getUserVisualizations } from "opensearch-common";
import { LeafcutterWrapper } from "leafcutter-ui";
import { Home } from "@link-stack/leafcutter-ui";
import { getUserVisualizations } from "@link-stack/opensearch-common";
import { LeafcutterWrapper } from "@link-stack/leafcutter-ui";
export const metadata: Metadata = {
title: "Link",

View file

@ -5,7 +5,7 @@ import useSWR from "swr";
import { getTicketQuery } from "app/_graphql/getTicketQuery";
import { getTicketArticlesQuery } from "app/_graphql/getTicketArticlesQuery";
import { Grid, Box, Typography } from "@mui/material";
import { Button, fonts, colors } from "ui";
import { Button, fonts, colors } from "@link-stack/ui";
import "@chatscope/chat-ui-kit-styles/dist/default/styles.min.css";
import {

View file

@ -3,7 +3,7 @@
import { FC, useEffect, useState } from "react";
import { Grid, Box, MenuItem } from "@mui/material";
import { useFormState } from "react-dom";
import { Select, Button } from "ui";
import { Select, Button } from "@link-stack/ui";
import { MuiChipsInput } from "mui-chips-input";
import useSWR, { useSWRConfig } from "swr";
import { getTicketQuery } from "app/_graphql/getTicketQuery";

View file

@ -11,7 +11,7 @@ import { I18n } from "react-polyglot";
import { AdapterDateFns } from "@mui/x-date-pickers-pro/AdapterDateFnsV3";
import { LocalizationProvider } from "@mui/x-date-pickers-pro";
import { LicenseInfo } from "@mui/x-license";
import { locales, LeafcutterProvider } from "leafcutter-ui";
import { locales, LeafcutterProvider } from "@link-stack/leafcutter-ui";
LicenseInfo.setLicenseKey(
"c787ac6613c5f2aa0494c4285fe3e9f2Tz04OTY1NyxFPTE3NDYzNDE0ODkwMDAsUz1wcm8sTE09c3Vic2NyaXB0aW9uLEtWPTI=",

View file

@ -4,11 +4,11 @@ const nextConfig = {
missingSuspenseWithCSRBailout: false,
},
transpilePackages: [
"leafcutter-ui",
"opensearch-common",
"ui",
"bridge-common",
"bridge-ui",
"@link-stack/leafcutter-ui",
"@link-stack/opensearch-common",
"@link-stack/ui",
"@link-stack/bridge-common",
"@link-stack/bridge-ui",
],
publicRuntimeConfig: {
linkURL: process.env.LINK_URL ?? "http://localhost:3000",

View file

@ -1,5 +1,5 @@
{
"name": "link",
"name": "@link-stack/link",
"version": "0.0.1",
"type": "module",
"scripts": {
@ -19,34 +19,34 @@
"@mui/icons-material": "^5",
"@mui/lab": "^5.0.0-alpha.170",
"@mui/material": "^5",
"@mui/x-data-grid-pro": "^7.4.0",
"@mui/x-date-pickers-pro": "^7.4.0",
"bridge-common": "*",
"bridge-ui": "*",
"@mui/x-data-grid-pro": "^7.6.1",
"@mui/x-date-pickers-pro": "^7.6.1",
"@link-stack/bridge-common": "*",
"@link-stack/bridge-ui": "*",
"date-fns": "^3.6.0",
"graphql": "^16.8.1",
"graphql-request": "^7.0.1",
"leafcutter-ui": "*",
"material-ui-popup-state": "^5.1.0",
"@link-stack/leafcutter-ui": "*",
"material-ui-popup-state": "^5.1.2",
"mui-chips-input": "^2.1.4",
"next": "14.2.3",
"next-auth": "^4.24.7",
"opensearch-common": "*",
"@link-stack/opensearch-common": "*",
"react": "18.3.1",
"react-cookie": "^7.1.4",
"react-dom": "18.3.1",
"react-iframe": "^1.8.5",
"react-polyglot": "^0.7.2",
"sharp": "^0.33.3",
"sharp": "^0.33.4",
"swr": "^2.2.5",
"tss-react": "^4.9.10",
"twilio-client": "^1.15.1",
"ui": "*"
"@link-stack/ui": "*"
},
"devDependencies": {
"@babel/core": "^7.24.5",
"@types/node": "^20.12.12",
"@types/react": "18.3.2",
"@babel/core": "^7.24.6",
"@types/node": "^20.14.1",
"@types/react": "18.3.3",
"@types/uuid": "^9.0.8",
"babel-loader": "^9.1.3",
"eslint": "^8.0.0",
@ -55,7 +55,7 @@
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react": "^7.34.2",
"typescript": "5.4.5"
}
}