diff --git a/package-lock.json b/package-lock.json index 857de23..ef92b6e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,21 +1,22 @@ { "name": "@armco/utils", - "version": "0.0.29", + "version": "0.0.30", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@armco/utils", - "version": "0.0.29", + "version": "0.0.30", "license": "ISC", "dependencies": { - "@armco/configs": "^0.0.14" + "@armco/configs": "^0.0.15" }, "devDependencies": { "@armco/types": "^0.0.22", "@types/d3": "^7.4.3", "@types/node": "^24.10.0", "@types/react": "^19.2.2", + "@types/uuid": "^10.0.0", "@vitejs/plugin-react": "^5.1.0", "glob": "^11.0.3", "react-dom": "18.3.1", @@ -25,7 +26,6 @@ "vitest": "^4.0.8" }, "peerDependencies": { - "@armco/types": "^0.0.18", "d3": "^7.9.0", "react-dom": "^18.2.0", "react-router-dom": "^6.18.2", @@ -33,16 +33,10 @@ } }, "node_modules/@armco/configs": { - "version": "0.0.14", - "resolved": "https://registry.npmjs.org/@armco/configs/-/configs-0.0.14.tgz", - "integrity": "sha512-wY1f4Wt+51XGaRaql37c+ycJptLefd7xsLkcmCKf5YkUpTU1X68DLNYQW6mDG89t0T8SkNDdj3uTpWXhreRFmw==", - "license": "ISC", - "dependencies": { - "@types/uuid": "^10.0.0" - }, - "peerDependencies": { - "uuid": "^9.0.1" - } + "version": "0.0.15", + "resolved": "https://registry.npmjs.org/@armco/configs/-/configs-0.0.15.tgz", + "integrity": "sha512-3KpjM7hJFvcMHg0Sw9YiRm9atji0+Mw122UAMRi705fchPU6aazogRWGDMZErsjffrwUUPmOZGclJCNu2e2R5g==", + "license": "ISC" }, "node_modules/@armco/types": { "version": "0.0.22", @@ -1874,6 +1868,7 @@ "version": "10.0.0", "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-10.0.0.tgz", "integrity": "sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==", + "dev": true, "license": "MIT" }, "node_modules/@vitejs/plugin-react": { diff --git a/package.json b/package.json index c6a54ef..5ab8b62 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@armco/utils", - "version": "0.0.29", + "version": "0.0.30", "type": "module", "scripts": { "build": "./build-tools/build.sh", @@ -11,10 +11,9 @@ "publish:local": "./publish-local.sh" }, "dependencies": { - "@armco/configs": "^0.0.14" + "@armco/configs": "^0.0.15" }, "peerDependencies": { - "@armco/types": "^0.0.18", "d3": "^7.9.0", "react-dom": "^18.2.0", "react-router-dom": "^6.18.2", @@ -25,6 +24,7 @@ "@types/d3": "^7.4.3", "@types/node": "^24.10.0", "@types/react": "^19.2.2", + "@types/uuid": "^10.0.0", "@vitejs/plugin-react": "^5.1.0", "glob": "^11.0.3", "react-dom": "18.3.1", diff --git a/src/contexts.ts b/src/contexts.ts index 135c136..2f085ee 100644 --- a/src/contexts.ts +++ b/src/contexts.ts @@ -1,5 +1,7 @@ import { createContext } from "react" -import { ArContextType, ArThemes, FunctionType } from "@armco/types" +import { FunctionType } from "@armco/types" +import { ArContextType } from "./types" +import { ArThemes } from "./enums" import { isMobile } from "./helper" export const SlotterContext = createContext<{ diff --git a/src/hooks.ts b/src/hooks.ts index 23d5a5e..84c468e 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -2,15 +2,15 @@ import { useCallback, useContext, useEffect, useState } from "react" import { useNavigate } from "react-router-dom" import { v4 as uuid } from "uuid" import { - AlertProps, - ArAlertType, - ArThemes, - DrawerProps, - FunctionType, - ModalProps, PanelContent, User, } from "@armco/types" +import { + AlertProps, + DrawerProps, + ModalProps, +} from "./types" +import { ArAlertType, ArThemes } from "./enums" import { SESSION_TOKEN_NAME } from "@armco/configs/constants" import { ENDPOINTS, IAM } from "@armco/configs/endpoints" import { ArContext, SlotterContext } from "./contexts" diff --git a/src/index.ts b/src/index.ts index 46fde27..10136bf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,3 +7,4 @@ export * from "./contexts" export * from "./providers" export * from "./HOC" export * from "./enums" +export type * from "./types" diff --git a/src/providers.tsx b/src/providers.tsx index ffe5182..30d9c82 100644 --- a/src/providers.tsx +++ b/src/providers.tsx @@ -1,12 +1,14 @@ import { ReactNode, useState } from "react" import { - AlertProps, - ArThemes, - DrawerProps, - ModalProps, PanelContent, User, } from "@armco/types" +import { + AlertProps, + DrawerProps, + ModalProps, +} from "./types" +import { ArThemes } from "./enums" import { ArContext } from "./contexts" import { isMobile } from "./helper" diff --git a/src/types.d.ts b/src/types.ts similarity index 100% rename from src/types.d.ts rename to src/types.ts