Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
Add simple search engine for entity names (#9)
Brad Barbine4351d463ce9
diff --git a/apps/carbon/app/components/Layout/Topbar/Topbar.tsx b/apps/carbon/app/components/Layout/Topbar/Topbar.tsxindex a5ac466dc2..0ec3ea2cfa 100644--- a/apps/carbon/app/components/Layout/Topbar/Topbar.tsx+++ b/apps/carbon/app/components/Layout/Topbar/Topbar.tsx@@ -1,10 +1,10 @@import { useColor } from "@carbon/react";-import { Button, Flex, GridItem, HStack, Kbd } from "@chakra-ui/react";+import { Button, GridItem, HStack } from "@chakra-ui/react";import { BiHelpCircle } from "react-icons/bi";-import { FaSearch } from "react-icons/fa";+import { BsChatSquare } from "react-icons/bs";+import { SearchButton } from "~/components/Search";import AvatarMenu from "./AvatarMenu";import Breadcrumbs from "./Breadcrumbs";-import Logo from "./Logo";import useBreadcrumbs from "./useBreadcrumbs";const Topbar = () => {@@ -15,7 +15,7 @@ const Topbar = () => {<GridItemdisplay="grid"gap={4}- gridTemplateColumns="auto 1fr auto 1fr"+ gridTemplateColumns="1fr auto 1fr"// backdropFilter="auto"// backdropBlur="8px"bg={useColor("white")}@@ -23,26 +23,13 @@ const Topbar = () => {borderBottomColor={borderColor}borderBottomStyle="solid"position="sticky"+ px={4}top={0}zIndex={1}>- <Logo /><Breadcrumbs links={breadcrumbLinks} />- <Button- colorScheme="gray"- leftIcon={<FaSearch />}- variant="outline"- boxShadow="sm"- color="gray.500"- w={200}- mt={2}- >- <HStack w="full">- <Flex flexGrow={1}>Search</Flex>- <Kbd size="lg">/</Kbd>- </HStack>- </Button>- <HStack py={2} pr={4} justifyContent="end">+ <SearchButton />+ <HStack py={2} justifyContent="end"><ButtoncolorScheme="gray"leftIcon={<BiHelpCircle />}@@ -55,7 +42,7 @@ const Topbar = () => {</Button><ButtoncolorScheme="gray"- leftIcon={<FaSearch />}+ leftIcon={<BsChatSquare />}variant="solid"border={1}borderColor={borderColor}diff --git a/apps/carbon/app/components/Layout/Topbar/useBreadcrumbs.tsx b/apps/carbon/app/components/Layout/Topbar/useBreadcrumbs.tsxindex 862e1a89f9..2a2acbea59 100644--- a/apps/carbon/app/components/Layout/Topbar/useBreadcrumbs.tsx+++ b/apps/carbon/app/components/Layout/Topbar/useBreadcrumbs.tsx@@ -49,6 +49,16 @@ export default function useBreadcrumbs(): Route[] {name: "Parts",to: match.pathname,});+ case "routes/app.people":+ return acc.concat({+ name: "People",+ to: match.pathname,+ });+ case "routes/app.people.attributes":+ return acc.concat({+ name: "Attributes",+ to: match.pathname,+ });case "routes/app.purchasing":return acc.concat({name: "Purchasing",diff --git a/apps/carbon/app/components/Search/SearchButton/SearchButton.tsx b/apps/carbon/app/components/Search/SearchButton/SearchButton.tsxnew file mode 100644index 0000000000..d14267608a--- /dev/null+++ b/apps/carbon/app/components/Search/SearchButton/SearchButton.tsx@@ -0,0 +1,374 @@+import { useColor, useDebounce, useKeyboardShortcuts } from "@carbon/react";+import { clip } from "@carbon/utils";+import type { ButtonProps } from "@chakra-ui/react";+import {+ Box,+ Icon,+ Input,+ InputGroup,+ InputLeftElement,+ List,+ ListItem,+ Modal,+ ModalBody,+ ModalContent,+ ModalOverlay,+ Text,+ VStack,+ useDisclosure,+} from "@chakra-ui/react";+import { Button, Flex, HStack, Kbd } from "@chakra-ui/react";+import { Link, useNavigate } from "@remix-run/react";+import { useCallback, useEffect, useRef, useState } from "react";+import { AiOutlinePartition } from "react-icons/ai";+import { BiListCheck } from "react-icons/bi";+import { BsArrowReturnLeft, BsCartDash, BsCartPlus } from "react-icons/bs";+import { CgProfile } from "react-icons/cg";+import { FaSearch } from "react-icons/fa";+import { HiOutlineDocumentDuplicate } from "react-icons/hi";+import { SiHandshake } from "react-icons/si";+import { useSidebar } from "~/components/Layout/Sidebar/useSidebar";+import { useSupabase } from "~/lib/supabase";+import type { NavItem } from "~/types";++type SearchResult = {+ id: number;+ name: string;+ entity:+ | "People"+ | "Customer"+ | "Supplier"+ | "Job"+ | "Part"+ | "Purchase Order"+ | "Sales Order"+ | "Document"+ | null;+ uuid: string | null;+ link: string;+ description: string | null;+};++const SearchModal = ({+ isOpen,+ onClose,+}: {+ isOpen: boolean;+ onClose: () => void;+}) => {+ const { supabase } = useSupabase();+ const navigate = useNavigate();++ const [query, setQuery] = useState("");+ const [debouncedQuery] = useDebounce(query, 500);++ const [searchResults, setSearchResults] = useState<SearchResult[]>([]);+ const [selectedIndex, setSelectedIndex] = useState<number>(0);+ const defaultResults = useSidebar();++ const listboxRef = useRef<HTMLUListElement>(null);++ const onResultClick = () => {+ onClose();+ console.log("clearing query");+ setQuery("");+ };++ const getSearchResults = useCallback(+ async (q: string) => {+ const tokens = q.split(" ");+ const search =+ tokens.length > 1+ ? tokens.map((token) => `"${token}"`).join(" <-> ")+ : q;++ const result = await supabase+ ?.from("search")+ .select()+ .textSearch("fts", search)+ .limit(20);+ if (result?.data) {+ setSearchResults(result.data);+ return result.data;+ } else {+ setSearchResults([]);+ return [];+ }+ },+ [supabase]+ );++ const onKeyDown = useCallback(+ (event: React.KeyboardEvent<HTMLInputElement>) => {+ const results =+ debouncedQuery.length === 0 ? defaultResults : searchResults;+ switch (event.code) {+ case "ArrowDown":+ setSelectedIndex((prev) => clip(prev + 1, 0, results.length - 1));+ break;+ case "ArrowUp":+ setSelectedIndex((prev) => clip(prev - 1, 0, results.length - 1));+ break;+ case "Enter":+ const selectedResult = results[selectedIndex];+ if (selectedResult) {+ if ("link" in selectedResult) {+ navigate(selectedResult.link);+ } else {+ navigate(selectedResult.to);+ }+ onClose();+ }+ break;+ default:+ break;+ }+ },+ // eslint-disable-next-line react-hooks/exhaustive-deps+ [debouncedQuery.length, navigate, searchResults, selectedIndex]+ );++ useEffect(() => {+ if (listboxRef.current) {+ const listbox = listboxRef.current;+ const listboxItems = listbox.querySelectorAll("li");+ const activeItem = listboxItems[selectedIndex];+ if (activeItem) {+ activeItem.scrollIntoView({ block: "nearest" });+ }+ }+ }, [searchResults, selectedIndex]);++ useEffect(() => {+ setSelectedIndex(0);+ if (debouncedQuery) {+ getSearchResults(debouncedQuery);+ } else {+ setSearchResults([]);+ }+ }, [debouncedQuery, getSearchResults]);++ return (+ <Modal+ isOpen={isOpen}+ onClose={() => {+ onClose();+ setQuery("");+ }}+ >+ <ModalOverlay />+ <ModalContent>+ <ModalBody p={0}>+ <InputGroup size="lg">+ <InputLeftElement+ pointerEvents="none"+ children={<Icon as={FaSearch} color="gray.500" />}+ />+ <Input+ placeholder="Search..."+ value={query}+ variant="flushed"+ onChange={(e) => setQuery(e.target.value)}+ onKeyDown={onKeyDown}+ _focus={{+ borderBottomColor: "transparent",+ boxShadow: "none",+ outline: "none",+ }}+ />+ </InputGroup>+ {(searchResults.length > 0 || debouncedQuery.length === 0) && (+ <Box+ bg="white"+ borderBottomRadius="lg"+ boxShadow="lg"+ maxH="66vh"+ overflowY="scroll"+ px={4}+ pt={0}+ pb={4}+ >+ <List role="listbox" ref={listboxRef}>+ {searchResults.length > 0+ ? searchResults.map((result, resultIndex) => (+ <Result+ key={result.uuid}+ result={result}+ selected={selectedIndex === resultIndex}+ onClick={onResultClick}+ onHover={() => setSelectedIndex(resultIndex)}+ />+ ))+ : defaultResults.map((item, itemIndex) => (+ <Module+ key={item.to}+ item={item}+ selected={selectedIndex === itemIndex}+ onClick={onResultClick}+ onHover={() => setSelectedIndex(itemIndex)}+ />+ ))}+ </List>+ </Box>+ )}+ </ModalBody>+ </ModalContent>+ </Modal>+ );+};++const resultIconProps = {+ mr: 4,+ w: 8,+ h: 8,+ color: "gray.500",+};++function ResultIcon({ entity }: { entity: SearchResult["entity"] }) {+ switch (entity) {+ case "Customer":+ return <Icon as={SiHandshake} {...resultIconProps} />;+ case "Document":+ return <Icon as={HiOutlineDocumentDuplicate} {...resultIconProps} />;+ case "Job":+ return <Icon as={BiListCheck} {...resultIconProps} />;+ case "Part":+ return <Icon as={AiOutlinePartition} {...resultIconProps} />;+ case "People":+ return <Icon as={CgProfile} {...resultIconProps} />;+ case "Purchase Order":+ return <Icon as={BsCartDash} {...resultIconProps} />;+ case "Sales Order":+ return <Icon as={BsCartPlus} {...resultIconProps} />;+ case "Supplier":+ return <Icon as={SiHandshake} {...resultIconProps} />;+ default:+ return null;+ }+}++function EnterIcon() {+ return <Icon h={6} w={6} color="gray.500" as={BsArrowReturnLeft} />;+}++function Result({+ result,+ selected,+ onClick,+ onHover,+}: {+ result: SearchResult;+ selected: boolean;+ onClick: () => void;+ onHover: () => void;+}) {+ const bgColor = useColor("gray.100");+ return (+ <Link to={result.link} onClick={onClick}>+ <HStack+ as={ListItem}+ role="option"+ bg={selected ? "gray.900" : bgColor}+ borderRadius="lg"+ color={selected ? "white" : undefined}+ minH={16}+ mt={2}+ px={4}+ py={2}+ onMouseOver={onHover}+ _hover={{+ bg: "gray.900",+ color: "white",+ }}+ >+ <ResultIcon entity={result.entity} />+ <VStack alignItems="start" flexGrow={1} spacing={0} w="full">+ <Text fontSize="sm" color="gray.500">+ {result.entity}+ </Text>+ <Text fontWeight="bold">{result.name}</Text>+ </VStack>+ <EnterIcon />+ </HStack>+ </Link>+ );+}++function Module({+ item,+ selected,+ onClick,+ onHover,+}: {+ item: NavItem;+ selected: boolean;+ onClick: () => void;+ onHover: () => void;+}) {+ const bgColor = useColor("gray.100");+ return (+ <Link to={item.to} onClick={onClick}>+ <HStack+ as={ListItem}+ role="option"+ bg={selected ? "gray.900" : bgColor}+ borderRadius="lg"+ color={selected ? "white" : undefined}+ minH={16}+ mt={2}+ px={4}+ py={2}+ onMouseOver={onHover}+ _hover={{+ bg: "gray.900",+ color: "white",+ }}+ >+ {/* {item.icon && ( // @ts-expect-error+ <Icon as={item.icon} {...resultIconProps} />+ )} */}+ <VStack alignItems="start" flexGrow={1} spacing={0} w="full">+ <Text fontSize="sm" color="gray.500">+ Module+ </Text>+ <Text fontWeight="bold">{item.name}</Text>+ </VStack>+ <EnterIcon />+ </HStack>+ </Link>+ );+}++const SearchButton = (props: ButtonProps) => {+ const searchModal = useDisclosure();+ useKeyboardShortcuts(+ {+ "/": searchModal.onOpen,+ },+ ["INPUT", "TEXTAREA", "SELECT"]+ );++ return (+ <>+ <Button+ colorScheme="gray"+ leftIcon={<FaSearch />}+ variant="outline"+ boxShadow="sm"+ color="gray.500"+ w={200}+ mt={2}+ onClick={searchModal.onOpen}+ {...props}+ >+ <HStack w="full">+ <Flex flexGrow={1}>Search</Flex>+ <Kbd size="lg">/</Kbd>+ </HStack>+ </Button>+ <SearchModal isOpen={searchModal.isOpen} onClose={searchModal.onClose} />+ </>+ );+};++export default SearchButton;diff --git a/apps/carbon/app/components/Search/SearchButton/index.ts b/apps/carbon/app/components/Search/SearchButton/index.tsnew file mode 100644index 0000000000..a8a26d771f--- /dev/null+++ b/apps/carbon/app/components/Search/SearchButton/index.ts@@ -0,0 +1,3 @@+import SearchButton from "./SearchButton";++export default SearchButton;diff --git a/apps/carbon/app/components/Search/index.ts b/apps/carbon/app/components/Search/index.tsindex fba102dda9..bd7892bdff 100644--- a/apps/carbon/app/components/Search/index.ts+++ b/apps/carbon/app/components/Search/index.ts@@ -1,3 +1,4 @@import DebouncedInput from "./DebouncedInput";+import SearchButton from "./SearchButton";-export { DebouncedInput };+export { DebouncedInput, SearchButton };diff --git a/apps/carbon/app/lib/supabase/provider.tsx b/apps/carbon/app/lib/supabase/provider.tsxindex 5cc74c422e..327ab538a5 100644--- a/apps/carbon/app/lib/supabase/provider.tsx+++ b/apps/carbon/app/lib/supabase/provider.tsx@@ -1,3 +1,4 @@+import type { Database } from "@carbon/database";import { useInterval } from "@carbon/react";import { isBrowser } from "@carbon/utils";import { useFetcher } from "@remix-run/react";@@ -93,7 +94,7 @@ import { getSupabase } from "./client";*/const SupabaseContext = createContext<{- supabase: SupabaseClient | undefined;+ supabase: SupabaseClient<Database> | undefined;accessToken: string | undefined;}>({ supabase: undefined, accessToken: undefined });diff --git a/apps/carbon/app/services/session/session.server.ts b/apps/carbon/app/services/session/session.server.tsindex db4bd101c1..d1ce415097 100644--- a/apps/carbon/app/services/session/session.server.ts+++ b/apps/carbon/app/services/session/session.server.ts@@ -1,4 +1,4 @@-import { createCookieSessionStorage, json, redirect } from "@remix-run/node";+import { createCookieSessionStorage, redirect } from "@remix-run/node";import {getCurrentPath,@@ -97,26 +97,14 @@ export async function commitAuthSession(return sessionStorage.commitSession(session, { maxAge: SESSION_MAX_AGE });}-export async function destroyAuthSession(- request: Request,- shouldRedirect = true-) {+export async function destroyAuthSession(request: Request) {const session = await getSession(request);- return shouldRedirect- ? redirect("/", {- headers: {- "Set-Cookie": await sessionStorage.destroySession(session),- },- })- : json(- {},- {- headers: {- "Set-Cookie": await sessionStorage.destroySession(session),- },- }- );+ return redirect("/", {+ headers: {+ "Set-Cookie": await sessionStorage.destroySession(session),+ },+ });}export async function flash(request: Request, result: Result) {diff --git a/apps/carbon/app/utils/http.ts b/apps/carbon/app/utils/http.tsindex 31cf945c96..e700411d9a 100644--- a/apps/carbon/app/utils/http.ts+++ b/apps/carbon/app/utils/http.ts@@ -3,7 +3,10 @@ export function getCurrentPath(request: Request) {}export function makeRedirectToFromHere(request: Request) {- return new URLSearchParams([["redirectTo", getCurrentPath(request)]]);+ const currentPath = getCurrentPath(request);+ return new URLSearchParams([+ ["redirectTo", currentPath.includes("resource") ? "/app" : currentPath],+ ]);}export function getRedirectTo(request: Request, defaultRedirectTo = "/app") {diff --git a/apps/carbon/package.json b/apps/carbon/package.jsonindex bfcb092939..0107ff4ea0 100644--- a/apps/carbon/package.json+++ b/apps/carbon/package.json@@ -30,15 +30,15 @@"@tanstack/react-table": "^8.7.3","@vercel/node": "^2.8.0","bullmq": "~3.5.1",- "framer-motion": "^7.6.19",+ "framer-motion": "^8.5.2","lodash.debounce": "^4.0.8","lodash.words": "^4.2.0","performant-array-to-tree": "1.11.0","react": "^18.2.0","react-dom": "^18.2.0",- "react-icons": "4.6.0",+ "react-icons": "4.7.1","react-virtual": "2.10.4",- "reactflow": "^11.3.3",+ "reactflow": "^11.4.1","remix-flat-routes": "^0.5.6","remix-validated-form": "^4.6.5","zod": "^3.20.2",diff --git a/packages/carbon-database/src/types.ts b/packages/carbon-database/src/types.tsindex 31d9f86b94..31381bac58 100644--- a/packages/carbon-database/src/types.ts+++ b/packages/carbon-database/src/types.ts@@ -446,6 +446,35 @@ export interface Database {memberUserId?: string | null}}+ search: {+ Row: {+ id: number+ name: string+ description: string | null+ entity: Database["public"]["Enums"]["search_entity"] | null+ uuid: string | null+ link: string+ fts: unknown | null+ }+ Insert: {+ id?: number+ name: string+ description?: string | null+ entity?: Database["public"]["Enums"]["search_entity"] | null+ uuid?: string | null+ link: string+ fts?: unknown | null+ }+ Update: {+ id?: number+ name?: string+ description?: string | null+ entity?: Database["public"]["Enums"]["search_entity"] | null+ uuid?: string | null+ link?: string+ fts?: unknown | null+ }+ }supplier: {Row: {id: string@@ -885,7 +914,15 @@ export interface Database {}}Enums: {- [_ in never]: never+ search_entity:+ | "People"+ | "Customer"+ | "Supplier"+ | "Job"+ | "Part"+ | "Purchase Order"+ | "Sales Order"+ | "Document"}}}diff --git a/packages/carbon-database/supabase/migrations/20230123004316_users.sql b/packages/carbon-database/supabase/migrations/20230123004316_users.sqlindex df1a6491c6..06a495702c 100644--- a/packages/carbon-database/supabase/migrations/20230123004316_users.sql+++ b/packages/carbon-database/supabase/migrations/20230123004316_users.sql@@ -14,8 +14,8 @@ CREATE TABLE "user" (CONSTRAINT "user_pkey" PRIMARY KEY ("id"));-CREATE UNIQUE INDEX "user_email_key" ON "user"("email");-CREATE INDEX "user_fullName_key" ON "user"("fullName");+CREATE UNIQUE INDEX "index_user_email_key" ON "user"("email");+CREATE INDEX "index_user_fullName" ON "user"("fullName");ALTER TABLE "user" ENABLE ROW LEVEL SECURITY;diff --git a/packages/carbon-database/supabase/migrations/20230123004632_groups.sql b/packages/carbon-database/supabase/migrations/20230123004632_groups.sqlindex 6f22b9ab15..cd6ef6da23 100644--- a/packages/carbon-database/supabase/migrations/20230123004632_groups.sql+++ b/packages/carbon-database/supabase/migrations/20230123004632_groups.sql@@ -103,27 +103,27 @@ BEGINEND;$$ LANGUAGE plpgsql SECURITY DEFINER;-CREATE TRIGGER on_employee_type_created+CREATE TRIGGER create_employee_type_groupAFTER INSERT on public."employeeType"FOR EACH ROW EXECUTE PROCEDURE public.create_employee_type_group();-CREATE TRIGGER on_user_created+CREATE TRIGGER create_user_identity_groupAFTER INSERT on public.userFOR EACH ROW EXECUTE PROCEDURE public.create_user_identity_group();-CREATE TRIGGER on_employee_created+CREATE TRIGGER add_employee_to_employee_type_groupAFTER INSERT on public.employeeFOR EACH ROW EXECUTE PROCEDURE public.add_employee_to_employee_type_group();-CREATE TRIGGER on_user_updated+CREATE TRIGGER update_user_identity_groupAFTER UPDATE on public.userFOR EACH ROW EXECUTE PROCEDURE public.update_user_identity_group();-CREATE TRIGGER on_employee_updated+CREATE TRIGGER update_employee_to_employee_type_groupAFTER UPDATE on public.employeeFOR EACH ROW EXECUTE PROCEDURE public.update_employee_to_employee_type_group();-CREATE TRIGGER on_employee_type_updated+CREATE TRIGGER update_employee_type_groupAFTER UPDATE on public."employeeType"FOR EACH ROW EXECUTE PROCEDURE public.update_employee_type_group();@@ -426,43 +426,43 @@ BEGINEND;$$ LANGUAGE plpgsql SECURITY DEFINER;-CREATE TRIGGER on_customer_type_created+CREATE TRIGGER create_customer_type_groupAFTER INSERT on public."customerType"FOR EACH ROW EXECUTE PROCEDURE public.create_customer_type_group();-CREATE TRIGGER on_supplier_type_created+CREATE TRIGGER create_supplier_type_groupAFTER INSERT on public."supplierType"FOR EACH ROW EXECUTE PROCEDURE public.create_supplier_type_group();-CREATE TRIGGER on_customer_org_created+CREATE TRIGGER create_customer_org_groupAFTER INSERT on public.customerFOR EACH ROW EXECUTE PROCEDURE public.create_customer_org_group();-CREATE TRIGGER on_supplier_org_created+CREATE TRIGGER create_supplier_org_groupAFTER INSERT on public.supplierFOR EACH ROW EXECUTE PROCEDURE public.create_supplier_org_group();-CREATE TRIGGER on_customer_created+CREATE TRIGGER create_customer_account_groupAFTER INSERT on public."customerAccount"FOR EACH ROW EXECUTE PROCEDURE public.add_customer_account_to_customer_group();-CREATE TRIGGER on_supplier_created+CREATE TRIGGER create_supplier_account_groupAFTER INSERT on public."supplierAccount"FOR EACH ROW EXECUTE PROCEDURE public.add_supplier_account_to_supplier_group();-CREATE TRIGGER on_customer_updated+CREATE TRIGGER create_customer_groupAFTER UPDATE on public.customerFOR EACH ROW EXECUTE PROCEDURE public.update_customer_to_customer_type_group();-CREATE TRIGGER on_supplier_updated+CREATE TRIGGER create_supplier_groupAFTER UPDATE on public.supplierFOR EACH ROW EXECUTE PROCEDURE public.update_supplier_to_supplier_type_group();-CREATE TRIGGER on_customer_type_updated+CREATE TRIGGER update_customer_type_groupAFTER UPDATE on public."customerType"FOR EACH ROW EXECUTE PROCEDURE public.update_customer_type_group();-CREATE TRIGGER on_supplier_type_updated+CREATE TRIGGER update_supplier_type_groupAFTER UPDATE on public."supplierType"FOR EACH ROW EXECUTE PROCEDURE public.update_supplier_type_group();diff --git a/packages/carbon-database/supabase/migrations/20230123212853_search.sql b/packages/carbon-database/supabase/migrations/20230123212853_search.sqlnew file mode 100644index 0000000000..02e67242d9--- /dev/null+++ b/packages/carbon-database/supabase/migrations/20230123212853_search.sql@@ -0,0 +1,138 @@++CREATE TYPE search_entity AS enum ('People', 'Customer', 'Supplier', 'Job', 'Part', 'Purchase Order', 'Sales Order', 'Document');++CREATE TABLE search (+ id BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,+ name TEXT NOT NULL,+ description TEXT DEFAULT '',+ entity search_entity,+ uuid TEXT,+ link TEXT NOT NULL+);++ALTER TABLE+ public.search+ADD COLUMN+ fts tsvector GENERATED always as (to_tsvector('english', name || ' ' || description)) STORED;++CREATE INDEX index_search_uuid ON public.search (uuid);+CREATE INDEX index_search_fts ON public.search USING GIN (fts);++CREATE FUNCTION public.create_employee_search_result()+RETURNS TRIGGER AS $$+DECLARE+ employee TEXT;+BEGIN+ employee := (SELECT u."fullName" FROM public.user u WHERE u.id = new.id);+ INSERT INTO public.search(name, entity, uuid, link)+ VALUES (employee, 'People', new.id, '/app/people/' || new.id);+ RETURN new;+END;+$$ LANGUAGE plpgsql SECURITY DEFINER;++CREATE TRIGGER create_employee_search_result+ AFTER INSERT on public.user+ FOR EACH ROW EXECUTE PROCEDURE public.create_employee_search_result();++CREATE FUNCTION public.update_employee_search_result()+RETURNS TRIGGER AS $$+BEGIN+ IF (new.active = false) THEN+ DELETE FROM public.search+ WHERE entity = 'People' AND uuid = new.id;+ RETURN new;+ END IF;+ IF (old."fullName" <> new."fullName") THEN+ UPDATE public.search SET name = new."fullName", link = '/app/people/' || new.id+ WHERE entity = 'People' AND uuid = new.id;+ END IF;+ RETURN new;+END;+$$ LANGUAGE plpgsql SECURITY DEFINER;++CREATE TRIGGER update_employee_search_result+ AFTER UPDATE on public.user+ FOR EACH ROW EXECUTE PROCEDURE public.update_employee_search_result();++CREATE FUNCTION public.create_customer_search_result()+RETURNS TRIGGER AS $$+BEGIN+ INSERT INTO public.search(name, entity, uuid, link)+ VALUES (new.name, 'Customer', new.id, '/app/sales/customers/' || new.id);+ RETURN new;+END;+$$ LANGUAGE plpgsql SECURITY DEFINER;++CREATE TRIGGER create_customer_search_result+ AFTER INSERT on public.customer+ FOR EACH ROW EXECUTE PROCEDURE public.create_customer_search_result();++CREATE FUNCTION public.update_customer_search_result()+RETURNS TRIGGER AS $$+BEGIN+ IF (old.name <> new.name) THEN+ UPDATE public.search SET name = new.name+ WHERE entity = 'Customer' AND uuid = new.id;+ END IF;+ RETURN new;+END;+$$ LANGUAGE plpgsql SECURITY DEFINER;++CREATE TRIGGER update_customer_search_result+ AFTER UPDATE on public.customer+ FOR EACH ROW EXECUTE PROCEDURE public.update_customer_search_result();++CREATE FUNCTION public.create_supplier_search_result()+RETURNS TRIGGER AS $$+BEGIN+ INSERT INTO public.search(name, entity, uuid, link)+ VALUES (new.name, 'Supplier', new.id, '/app/purchasing/suppliers/' || new.id);+ RETURN new;+END;+$$ LANGUAGE plpgsql SECURITY DEFINER;++CREATE TRIGGER create_supplier_search_result+ AFTER INSERT on public.supplier+ FOR EACH ROW EXECUTE PROCEDURE public.create_supplier_search_result();++CREATE FUNCTION public.update_supplier_search_result()+RETURNS TRIGGER AS $$+BEGIN+ IF (old.name <> new.name) THEN+ UPDATE public.search SET name = new.name+ WHERE entity = 'Supplier' AND uuid = new.id;+ END IF;+ RETURN new;+END;+$$ LANGUAGE plpgsql SECURITY DEFINER;++CREATE TRIGGER update_supplier_search_result+ AFTER UPDATE on public.supplier+ FOR EACH ROW EXECUTE PROCEDURE public.update_supplier_search_result();++ALTER TABLE "search" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Users with sales_view can search for customers and sales orders" ON "search"+ FOR SELECT+ USING (coalesce(get_my_claim('sales_view')::boolean, false) = true AND entity IN ('Customer', 'Sales Order'));++CREATE POLICY "Users with purchasing_view can search for suppliers and purchase orders" ON "search"+ FOR SELECT+ USING (coalesce(get_my_claim('purchasing_view')::boolean, false) = true AND entity IN ('Supplier', 'Purchase Order'));++CREATE POLICY "Users with people_view can search for people" ON "search"+ FOR SELECT+ USING (coalesce(get_my_claim('people_view')::boolean, false) = true AND entity = 'People');++-- TODO: documents will probably need some additional filtering+CREATE POLICY "Users with document_view can search for documents" ON "search"+ FOR SELECT+ USING (coalesce(get_my_claim('document_view')::boolean, false) = true AND entity = 'Document');++CREATE POLICY "Users with parts_view can search for parts" ON "search"+ FOR SELECT+ USING (coalesce(get_my_claim('parts_view')::boolean, false) = true AND entity = 'Part');++CREATE POLICY "Users with jobs_view can search for jobs" ON "search"+ FOR SELECT+ USING (coalesce(get_my_claim('jobs_view')::boolean, false) = true AND entity = 'Job');diff --git a/packages/carbon-react/package.json b/packages/carbon-react/package.jsonindex f697828389..2a8f88740b 100644--- a/packages/carbon-react/package.json+++ b/packages/carbon-react/package.json@@ -33,10 +33,10 @@"@react-types/button": "^3.7.0","@react-types/calendar": "^3.0.5","@react-types/datepicker": "^3.1.4",- "framer-motion": "^7.5.4",+ "framer-motion": "^8.5.2","react-colorful": "^5.6.1","react-hook-form": "^7.37.0",- "react-icons": "^4.6.0",+ "react-icons": "^4.7.1","react-select": "^5.5.1"},"devDependencies": {diff --git a/packages/carbon-react/src/hooks/useKeyboardShortcuts.ts b/packages/carbon-react/src/hooks/useKeyboardShortcuts.tsindex 96e5ebfde4..eee442d43d 100644--- a/packages/carbon-react/src/hooks/useKeyboardShortcuts.ts+++ b/packages/carbon-react/src/hooks/useKeyboardShortcuts.ts@@ -30,7 +30,7 @@ export default function useKeyboardShortcuts(return;}- let keyPressed = getKeyPresses(event);+ const keyPressed = getKeyPresses(event);if (keyMap[keyPressed]) {/**diff --git a/yarn.lock b/yarn.lockindex 2d1c41913c..89b8745c5c 100644--- a/yarn.lock+++ b/yarn.lock@@ -2521,56 +2521,56 @@"@jridgewell/resolve-uri" "3.1.0""@jridgewell/sourcemap-codec" "1.4.14"-"@motionone/animation@^10.13.1":- version "10.14.0"- resolved "https://registry.yarnpkg.com/@motionone/animation/-/animation-10.14.0.tgz#2f2a3517183bb58d82e389aac777fe0850079de6"- integrity sha512-h+1sdyBP8vbxEBW5gPFDnj+m2DCqdlAuf2g6Iafb1lcMnqjsRXWlPw1AXgvUMXmreyhqmPbJqoNfIKdytampRQ==- dependencies:- "@motionone/easing" "^10.14.0"- "@motionone/types" "^10.14.0"- "@motionone/utils" "^10.14.0"+"@motionone/animation@^10.15.1":+ version "10.15.1"+ resolved "https://registry.yarnpkg.com/@motionone/animation/-/animation-10.15.1.tgz#4a85596c31cbc5100ae8eb8b34c459fb0ccf6807"+ integrity sha512-mZcJxLjHor+bhcPuIFErMDNyrdb2vJur8lSfMCsuCB4UyV8ILZLvK+t+pg56erv8ud9xQGK/1OGPt10agPrCyQ==+ dependencies:+ "@motionone/easing" "^10.15.1"+ "@motionone/types" "^10.15.1"+ "@motionone/utils" "^10.15.1"tslib "^2.3.1"-"@motionone/[email protected]":- version "10.13.1"- resolved "https://registry.yarnpkg.com/@motionone/dom/-/dom-10.13.1.tgz#fc29ea5d12538f21b211b3168e502cfc07a24882"- integrity sha512-zjfX+AGMIt/fIqd/SL1Lj93S6AiJsEA3oc5M9VkUr+Gz+juRmYN1vfvZd6MvEkSqEjwPQgcjN7rGZHrDB9APfQ==+"@motionone/dom@^10.15.3":+ version "10.15.5"+ resolved "https://registry.yarnpkg.com/@motionone/dom/-/dom-10.15.5.tgz#4af18f8136d85c2fc997cac98121c969f6731802"+ integrity sha512-Xc5avlgyh3xukU9tydh9+8mB8+2zAq+WlLsC3eEIp7Ax7DnXgY7Bj/iv0a4X2R9z9ZFZiaXK3BO0xMYHKbAAdA==dependencies:- "@motionone/animation" "^10.13.1"- "@motionone/generators" "^10.13.1"- "@motionone/types" "^10.13.0"- "@motionone/utils" "^10.13.1"+ "@motionone/animation" "^10.15.1"+ "@motionone/generators" "^10.15.1"+ "@motionone/types" "^10.15.1"+ "@motionone/utils" "^10.15.1"hey-listen "^1.0.8"tslib "^2.3.1"-"@motionone/easing@^10.14.0":- version "10.14.0"- resolved "https://registry.yarnpkg.com/@motionone/easing/-/easing-10.14.0.tgz#d8154b7f71491414f3cdee23bd3838d763fffd00"- integrity sha512-2vUBdH9uWTlRbuErhcsMmt1jvMTTqvGmn9fHq8FleFDXBlHFs5jZzHJT9iw+4kR1h6a4SZQuCf72b9ji92qNYA==+"@motionone/easing@^10.15.1":+ version "10.15.1"+ resolved "https://registry.yarnpkg.com/@motionone/easing/-/easing-10.15.1.tgz#95cf3adaef34da6deebb83940d8143ede3deb693"+ integrity sha512-6hIHBSV+ZVehf9dcKZLT7p5PEKHGhDwky2k8RKkmOvUoYP3S+dXsKupyZpqx5apjd9f+php4vXk4LuS+ADsrWw==dependencies:- "@motionone/utils" "^10.14.0"+ "@motionone/utils" "^10.15.1"tslib "^2.3.1"-"@motionone/generators@^10.13.1":- version "10.14.0"- resolved "https://registry.yarnpkg.com/@motionone/generators/-/generators-10.14.0.tgz#e05d9dd56da78a4b92db99185848a0f3db62242d"- integrity sha512-6kRHezoFfIjFN7pPpaxmkdZXD36tQNcyJe3nwVqwJ+ZfC0e3rFmszR8kp9DEVFs9QL/akWjuGPSLBI1tvz+Vjg==+"@motionone/generators@^10.15.1":+ version "10.15.1"+ resolved "https://registry.yarnpkg.com/@motionone/generators/-/generators-10.15.1.tgz#dc6abb11139d1bafe758a41c134d4c753a9b871c"+ integrity sha512-67HLsvHJbw6cIbLA/o+gsm7h+6D4Sn7AUrB/GPxvujse1cGZ38F5H7DzoH7PhX+sjvtDnt2IhFYF2Zp1QTMKWQ==dependencies:- "@motionone/types" "^10.14.0"- "@motionone/utils" "^10.14.0"+ "@motionone/types" "^10.15.1"+ "@motionone/utils" "^10.15.1"tslib "^2.3.1"-"@motionone/types@^10.13.0", "@motionone/types@^10.14.0":- version "10.14.0"- resolved "https://registry.yarnpkg.com/@motionone/types/-/types-10.14.0.tgz#148c34f3270b175397e49c3058b33fab405c21e3"- integrity sha512-3bNWyYBHtVd27KncnJLhksMFQ5o2MSdk1cA/IZqsHtA9DnRM1SYgN01CTcJ8Iw8pCXF5Ocp34tyAjY7WRpOJJQ==+"@motionone/types@^10.15.1":+ version "10.15.1"+ resolved "https://registry.yarnpkg.com/@motionone/types/-/types-10.15.1.tgz#89441b54285012795cbba8612cbaa0fa420db3eb"+ integrity sha512-iIUd/EgUsRZGrvW0jqdst8st7zKTzS9EsKkP+6c6n4MPZoQHwiHuVtTQLD6Kp0bsBLhNzKIBlHXponn/SDT4hA==-"@motionone/utils@^10.13.1", "@motionone/utils@^10.14.0":- version "10.14.0"- resolved "https://registry.yarnpkg.com/@motionone/utils/-/utils-10.14.0.tgz#a19a3464ed35b08506747b062d035c7bc9bbe708"- integrity sha512-sLWBLPzRqkxmOTRzSaD3LFQXCPHvDzyHJ1a3VP9PRzBxyVd2pv51/gMOsdAcxQ9n+MIeGJnxzXBYplUHKj4jkw==+"@motionone/utils@^10.15.1":+ version "10.15.1"+ resolved "https://registry.yarnpkg.com/@motionone/utils/-/utils-10.15.1.tgz#6b5f51bde75be88b5411e084310299050368a438"+ integrity sha512-p0YncgU+iklvYr/Dq4NobTRdAPv9PveRDUXabPEeOjBLSO/1FNB2phNTZxOxpi1/GZwYpAoECEa0Wam+nsmhSw==dependencies:- "@motionone/types" "^10.14.0"+ "@motionone/types" "^10.15.1"hey-listen "^1.0.8"tslib "^2.3.1"@@ -2918,29 +2918,27 @@resolved "https://registry.yarnpkg.com/@react-types/shared/-/shared-3.16.0.tgz#cab7bf0376969d1773480ecb2d6da5aa91391db5"integrity sha512-IQgU4oAEvMwylEvaTsr2XB1G/mAoMe1JFYLD6G78v++oAR9l8o9MQxZ0YSeANDkqTamb2gKezGoT1RxvSKjVxw==-"@reactflow/[email protected]":- version "11.0.7"- resolved "https://registry.yarnpkg.com/@reactflow/background/-/background-11.0.7.tgz#e9f41e3794bb2b9d52af78647254857085e38cee"- integrity sha512-oHaR0OzWKWv2FF8xqZQqS3Z4aizUl5g7tzcftFLkt6XekEzfjZq7tpJVckFCJ8EtdzsLky047cIXoJp3KNdCPA==+"@reactflow/[email protected]":+ version "11.1.2"+ resolved "https://registry.yarnpkg.com/@reactflow/background/-/background-11.1.2.tgz#6f4e5d8ae6bc0b5d76f4394ab7a2ae59b568aa02"+ integrity sha512-A/Hfah+l9C7mzZ4IG2Kw9phOTLUPIie2zRFE59EXEwHUmSS91SPaFE464ydclj1Y4+OEYZb7cTiaHiKEzp3OkA==dependencies:- "@babel/runtime" "^7.18.9"- "@reactflow/core" "11.3.2"+ "@reactflow/core" "11.4.2"classcat "^5.0.3"- zustand "^4.1.1"+ zustand "^4.3.1"-"@reactflow/[email protected]":- version "11.0.7"- resolved "https://registry.yarnpkg.com/@reactflow/controls/-/controls-11.0.7.tgz#28f1bf9db363ba8744008f837b51fd97e7cb9189"- integrity sha512-AMfqIqzmmJvD/zXKIj0xrc+PTNcVsREsf4fxYvOdA1uxRvz/+qtUT/SFmZUg6WAvwSz8yImsS3myENqJCNc+0Q==+"@reactflow/[email protected]":+ version "11.1.2"+ resolved "https://registry.yarnpkg.com/@reactflow/controls/-/controls-11.1.2.tgz#2701c32c7ae718bb7c59fb99e64e33a37799f386"+ integrity sha512-XyZuMOxSmqYnH+MpRxMiZS8uCdPqaWg4Ju4Sv4B1WW6ae5YsgqG9MGgHF1mOc63BhK6gchRtxV9mW+EJoB+6Pg==dependencies:- "@babel/runtime" "^7.18.9"- "@reactflow/core" "11.3.2"+ "@reactflow/core" "11.4.2"classcat "^5.0.3"-"@reactflow/[email protected]":- version "11.3.2"- resolved "https://registry.yarnpkg.com/@reactflow/core/-/core-11.3.2.tgz#21fc9745d1dfe9964b62ce8108e92d96a2fe8337"- integrity sha512-hQXy8Gp5fKqjvHHPbmvBB16NBfzrtBH13ooX2+Ip1F9balUeKZg6TSoDST5H4+6oJC+q2TCQu3bP/d82SeQRBA==+"@reactflow/[email protected]":+ version "11.4.2"+ resolved "https://registry.yarnpkg.com/@reactflow/core/-/core-11.4.2.tgz#70d6e7f1d33b93cc8a75a72192a06397bc05c9cf"+ integrity sha512-JVKFNJ3LTVyQXkZCnk5X5bGo01k4uCyYLlenkCEHL7HZ65v9k6WjD+tY4mdO/t1LIZ18t3j7wlhEhvTrjupN9Q==dependencies:"@types/d3" "^7.4.0""@types/d3-drag" "^3.0.1"@@ -2950,31 +2948,29 @@d3-drag "^3.0.0"d3-selection "^3.0.0"d3-zoom "^3.0.0"- zustand "^4.1.1"+ zustand "^4.3.1"-"@reactflow/[email protected]":- version "11.2.3"- resolved "https://registry.yarnpkg.com/@reactflow/minimap/-/minimap-11.2.3.tgz#679713b356a6bb3aaeb42665ae5ab99ee24a1906"- integrity sha512-LdPQxsd5IICdMj0WuGvF0Gl2dY7IVr1j+5gDF8LhjherKU2RlkgUp0AMk0/GMariM6odXw20yQH2qumN6T03Hw==+"@reactflow/[email protected]":+ version "11.3.2"+ resolved "https://registry.yarnpkg.com/@reactflow/minimap/-/minimap-11.3.2.tgz#5d00a2f6d74c4da4c5740985126dded56e870f12"+ integrity sha512-tdzV+pJqNxfEdLMZIgIBOhdIxM04PWsWUKx9RdZlZBmo+28RV/lVNh77Qu4L74eNuDTn9CrKH3UmRPy9H0LlfQ==dependencies:- "@babel/runtime" "^7.18.9"- "@reactflow/core" "11.3.2"+ "@reactflow/core" "11.4.2""@types/d3-selection" "^3.0.3""@types/d3-zoom" "^3.0.1"classcat "^5.0.3"d3-selection "^3.0.0"d3-zoom "^3.0.0"- zustand "^4.1.1"+ zustand "^4.3.1"-"@reactflow/[email protected]":- version "1.0.2"- resolved "https://registry.yarnpkg.com/@reactflow/node-toolbar/-/node-toolbar-1.0.2.tgz#96b3158fca3366a7c0963a2e27bda6b6311806db"- integrity sha512-KksBwYjEa7LKwn4y6EdZPknfmwFLAbw2eXLXqiy9LldnUFXi4I1vDyY2rhBrypWTD4LSbXl/mlfJRSE0j0JALQ==+"@reactflow/[email protected]":+ version "1.1.2"+ resolved "https://registry.yarnpkg.com/@reactflow/node-toolbar/-/node-toolbar-1.1.2.tgz#577c63429526950083663dd869bc2c53eca9ea36"+ integrity sha512-zzG+s5jY9F1VbBh0na71AuarlQi8BHnkbd6mUCWJf50DPnmk05sEdurky7C9oNccm7wxEYBirBLyW4+1vnn4Nw==dependencies:- "@babel/runtime" "^7.18.9"- "@reactflow/core" "11.3.2"+ "@reactflow/core" "11.4.2"classcat "^5.0.3"- zustand "^4.1.1"+ zustand "^4.3.1""@remix-run/dev@^1.10.1":version "1.10.1"@@ -6848,30 +6844,14 @@ fragment-cache@^0.2.1:dependencies:map-cache "^0.2.2"-framer-motion@^7.5.4:- version "7.6.1"- resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-7.6.1.tgz#45356eb5519275bce42121a3b3849a6243d45a22"- integrity sha512-8US03IWJKrLoSb81l5OahNzB9Sv7Jo1RhIwUoTG/25BRUdO9lOqq/klsdZqNmNG0ua9IEJJQ8hkYpETJ4N6VSw==- dependencies:- "@motionone/dom" "10.13.1"- framesync "6.1.2"- hey-listen "^1.0.8"- popmotion "11.0.5"- style-value-types "5.1.2"- tslib "2.4.0"- optionalDependencies:- "@emotion/is-prop-valid" "^0.8.2"--framer-motion@^7.6.19:- version "7.6.19"- resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-7.6.19.tgz#a24ea890881374f4184be5abb773ce8e4a0d3734"- integrity sha512-U+ogwGwNw6Y+pdq6GZB5xvnvLDlq3FTmcKaG5MCUjXuqRLrjKbKTqN4iwZISv3ajwUfgNHM6+tu31LRbYfF9YQ==+framer-motion@^8.5.2:+ version "8.5.2"+ resolved "https://registry.yarnpkg.com/framer-motion/-/framer-motion-8.5.2.tgz#8f14c5bbbd429e7add5a3098de5f50e32a074d32"+ integrity sha512-dt1WwCUIlJ24N/PCCayr0BZJcHOfU/L7kO8fgG8SxcAiGufaNg+Xl0oD14z7mRTGLrqRdA1ZlMW5Wr77aO1Xuw==dependencies:- "@motionone/dom" "10.13.1"- framesync "6.1.2"+ "@motionone/dom" "^10.15.3"hey-listen "^1.0.8"- style-value-types "5.1.2"- tslib "2.4.0"+ tslib "^2.4.0"optionalDependencies:"@emotion/is-prop-valid" "^0.8.2"@@ -6882,13 +6862,6 @@ [email protected]:dependencies:tslib "^2.1.0"- version "6.1.2"- resolved "https://registry.yarnpkg.com/framesync/-/framesync-6.1.2.tgz#755eff2fb5b8f3b4d2b266dd18121b300aefea27"- integrity sha512-jBTqhX6KaQVDyus8muwZbBeGGP0XgujBRbQ7gM7BRdS3CadCZIHiawyzYLnafYcvZIh5j8WE7cxZKFn7dXhu9g==- dependencies:- tslib "2.4.0"-version "0.5.2"resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"@@ -10092,16 +10065,6 @@ pkg-dir@^4.2.0:dependencies:find-up "^4.0.0"- version "11.0.5"- resolved "https://registry.yarnpkg.com/popmotion/-/popmotion-11.0.5.tgz#8e3e014421a0ffa30ecd722564fd2558954e1f7d"- integrity sha512-la8gPM1WYeFznb/JqF4GiTkRRPZsfaj2+kCxqQgr2MJylMmIKUwBfWW8Wa5fml/8gmtlD5yI01MP1QCZPWmppA==- dependencies:- framesync "6.1.2"- hey-listen "^1.0.8"- style-value-types "5.1.2"- tslib "2.4.0"-posix-character-classes@^0.1.0:version "0.1.1"resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"@@ -10344,10 +10307,10 @@ react-hook-form@^7.37.0:resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.38.0.tgz#53d6a68df587ce4ce88352f63e0ecc7fc8779320"integrity sha512-gxWW1kMeru9xR1GoR+Iw4hA+JBOM3SHfr4DWCUKY0xc7Vv1MLsF109oHtBeWl9shcyPFx67KHru44DheN0XY5A==[email protected], react-icons@^4.6.0:- version "4.6.0"- resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.6.0.tgz#f83eda179af5d02c047449a20b702c858653d397"- integrity sha512-rR/L9m9340yO8yv1QT1QurxWQvWpbNHqVX0fzMln2HEb9TEIrQRGsqiNFQfiv9/JEUbyHmHPlNTB2LWm2Ttz0g==[email protected], react-icons@^4.7.1:+ version "4.7.1"+ resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.7.1.tgz#0f4b25a5694e6972677cb189d2a72eabea7a8345"+ integrity sha512-yHd3oKGMgm7zxo3EA7H2n7vxSoiGmHk5t6Ou4bXsfcgWyhfDKMpyKfhHR6Bjnn63c+YXBLBPUql9H4wPJM6sXw==react-is@^16.13.1, react-is@^16.7.0:version "16.13.1"@@ -10441,16 +10404,16 @@ react@^18.2.0:dependencies:loose-envify "^1.1.0"-reactflow@^11.3.3:- version "11.3.3"- resolved "https://registry.yarnpkg.com/reactflow/-/reactflow-11.3.3.tgz#4967260541cb64fccbe0d9de2245358864ba4bb0"- integrity sha512-vuPhZDtnJSqH1HI71RdFLu5+iv6uggjQEBtblFbrAHlgiBTSFosvUYSgaNd9EpPKM6KNWX4u/mPqrLG5vK2fTQ==+reactflow@^11.4.1:+ version "11.4.2"+ resolved "https://registry.yarnpkg.com/reactflow/-/reactflow-11.4.2.tgz#8aeee24baf53bb7938ad41e57a6bbb4d84ca7261"+ integrity sha512-kedccI6S/+/Fj+MFqEqb5bUncyTsr5DTxeAG5TZ6QB6wwNEE6KG3UFsqRaa1wbOtKnEWwOOupq0fDPE1ePUAZQ==dependencies:- "@reactflow/background" "11.0.7"- "@reactflow/controls" "11.0.7"- "@reactflow/core" "11.3.2"- "@reactflow/minimap" "11.2.3"- "@reactflow/node-toolbar" "1.0.2"+ "@reactflow/background" "11.1.2"+ "@reactflow/controls" "11.1.2"+ "@reactflow/core" "11.4.2"+ "@reactflow/minimap" "11.3.2"+ "@reactflow/node-toolbar" "1.1.2"read-cmd-shim@^4.0.0:version "4.0.0"@@ -11428,14 +11391,6 @@ style-to-object@^0.3.0:dependencies:inline-style-parser "0.1.1"- version "5.1.2"- resolved "https://registry.yarnpkg.com/style-value-types/-/style-value-types-5.1.2.tgz#6be66b237bd546048a764883528072ed95713b62"- integrity sha512-Vs9fNreYF9j6W2VvuDTP7kepALi7sk0xtk2Tu8Yxi9UoajJdEVpNpCov0HsLTqXvNGKX+Uv09pkozVITi1jf3Q==- dependencies:- hey-listen "^1.0.8"- tslib "2.4.0"-version "4.0.13"resolved "https://registry.yarnpkg.com/stylis/-/stylis-4.0.13.tgz#f5db332e376d13cc84ecfe5dace9a2a51d954c91"@@ -11819,16 +11774,16 @@ tsconfig-paths@^4.0.0:minimist "^1.2.6"strip-bom "^3.0.0"[email protected], tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.1, tslib@^2.4.0:- version "2.4.0"- resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"- integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==-tslib@^1.8.1:version "1.14.1"resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==+tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.1, tslib@^2.4.0:+ version "2.4.0"+ resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"+ integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==+tsup@^6.2.3:version "6.3.0"resolved "https://registry.yarnpkg.com/tsup/-/tsup-6.3.0.tgz#aa270a788e54248d4a5541f722c8763bca778e3c"@@ -12681,13 +12636,20 @@ zod@^3.20.2:resolved "https://registry.yarnpkg.com/zod/-/zod-3.20.2.tgz#068606642c8f51b3333981f91c0a8ab37dfc2807"integrity sha512-1MzNQdAvO+54H+EaK5YpyEy0T+Ejo/7YLHS93G3RnYWh5gaotGHwGeN/ZO687qEDU2y4CdStQYXVHIgrUl5UVQ==-zustand@^4.0.0-rc.1, zustand@^4.1.1:+zustand@^4.0.0-rc.1:version "4.1.4"resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.1.4.tgz#b0286da4cc9edd35e91c96414fa54bfa4652a54d"integrity sha512-k2jVOlWo8p4R83mQ+/uyB8ILPO2PCJOf+QVjcL+1PbMCk1w5OoPYpAIxy9zd93FSfmJqoH6lGdwzzjwqJIRU5A==dependencies:use-sync-external-store "1.2.0"+zustand@^4.3.1:+ version "4.3.2"+ resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.3.2.tgz#bb121fcad84c5a569e94bd1a2695e1a93ba85d39"+ integrity sha512-rd4haDmlwMTVWVqwvgy00ny8rtti/klRoZjFbL/MAcDnmD5qSw/RZc+Vddstdv90M5Lv6RPgWvm1Hivyn0QgJw==+ dependencies:+ use-sync-external-store "1.2.0"+zwitch@^2.0.0:version "2.0.2"resolved "https://registry.yarnpkg.com/zwitch/-/zwitch-2.0.2.tgz#91f8d0e901ffa3d66599756dde7f57b17c95dce1"