This commit is contained in:
23
package-lock.json
generated
23
package-lock.json
generated
@@ -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": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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<{
|
||||
|
||||
12
src/hooks.ts
12
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"
|
||||
|
||||
@@ -7,3 +7,4 @@ export * from "./contexts"
|
||||
export * from "./providers"
|
||||
export * from "./HOC"
|
||||
export * from "./enums"
|
||||
export type * from "./types"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user