Files
conductor-oss--conductor/ui-next/vite.lib-peer-external.ts
Andrew Lai (AJ) 4ea3031fa8
CI / build-ui (push) Has been cancelled
CI / build (push) Has been cancelled
CI / test-harness (push) Has been cancelled
CI / generate-e2e-matrix (push) Has been cancelled
CI / e2e (push) Has been cancelled
Package updates (#1033)
* Update packages and remove unused packages

* Update typescript

* Don't make unnecessary fetches for endpoints that don't exist on OSS

* - Fix switch
- Update packages

* Remove plugin registered console.log

* Fix getRoutes type

* - Allow assistant sidebar button to toggle assistant panel when in Execution page
- Remove console.log
- Coerce value to boolean for checked prop in FormControlLabel

---------

Co-authored-by: Viren Baraiya <virenx@gmail.com>
Co-authored-by: Naomi Most <naomi.most@orkes.io>
2026-04-28 10:56:45 -07:00

35 lines
829 B
TypeScript

/** Package roots supplied by the host app (see package.json peerDependencies). Lib build must not bundle these. */
export const LIB_PEER_ROOTS = [
"react",
"react-dom",
"react-router",
"react-router-dom",
"react-router-use-location-state",
"@emotion/react",
"@emotion/styled",
"@mui/material",
"@mui/icons-material",
"@mui/system",
"@mui/x-date-pickers",
"@jsonforms/core",
"@jsonforms/material-renderers",
"@jsonforms/react",
"@monaco-editor/react",
"monaco-editor",
"@dnd-kit/core",
"@dnd-kit/sortable",
"react-hook-form",
"@hookform/resolvers",
"yup",
"styled-components",
] as const;
export function isLibPeerExternal(id: string): boolean {
for (const root of LIB_PEER_ROOTS) {
if (id === root || id.startsWith(`${root}/`)) {
return true;
}
}
return false;
}