@wso2/am-core-ui 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wso2/am-core-ui",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -20,7 +20,8 @@
20
20
  },
21
21
  "scripts": {
22
22
  "dev": "VITE_WATCH=1 vite build --watch",
23
- "build": "vite build",
23
+ "build": "vite build && npm run build:types",
24
+ "build:types": "rollup -c rollup.dts.config.mjs --silent",
24
25
  "lint": "eslint .",
25
26
  "lint:fix": "eslint . --fix",
26
27
  "preview": "vite preview",
@@ -1,5 +0,0 @@
1
- import { ExternalModule } from '../../libs/views/src';
2
- declare function CoreUI(props: {
3
- externalPageModules?: ExternalModule[];
4
- }): import("react/jsx-runtime").JSX.Element;
5
- export default CoreUI;
@@ -1,22 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface NavigationItem {
3
- label: string;
4
- icon?: ReactNode;
5
- href?: string;
6
- isActive?: boolean;
7
- type: 'item';
8
- }
9
- export interface NavigationSection {
10
- title: string;
11
- items: Array<NavigationItem>;
12
- icon?: ReactNode;
13
- type: 'section';
14
- }
15
- interface LeftNavigationProps {
16
- collapsed: boolean;
17
- activeItem: string;
18
- mainItems: NavigationItem[];
19
- groupedItems: NavigationSection[];
20
- }
21
- export declare function LeftNavigation({ collapsed, activeItem, mainItems, groupedItems, }: LeftNavigationProps): import("react/jsx-runtime").JSX.Element;
22
- export {};
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export declare function OxygenLayout(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function TopNavigation(): import("react/jsx-runtime").JSX.Element;
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export * from './OxygenLayout';
@@ -1,5 +0,0 @@
1
- import { NavigationItem, NavigationSection } from './LeftNavigation';
2
- /**
3
- * TODO: Use nav bar instead of navigate to the items.
4
- */
5
- export declare function useNavigationItems(): Array<NavigationSection | NavigationItem>;
@@ -1,6 +0,0 @@
1
- export declare function usePagePath(path: string): {
2
- page: string | null;
3
- };
4
- export declare function useActiveOrgPage(): string | null;
5
- export declare function useActiveProjectPage(): string | null;
6
- export declare function useActiveAgentPage(): string | null;
@@ -1,30 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export declare const createUserMenuItems: ({ logout }: {
19
- logout: () => Promise<void>;
20
- }) => ({
21
- label: string;
22
- href: string;
23
- icon: import("react/jsx-runtime").JSX.Element;
24
- onClick?: undefined;
25
- } | {
26
- label: string;
27
- onClick: () => Promise<void>;
28
- icon: import("react/jsx-runtime").JSX.Element;
29
- href: string;
30
- })[];
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export * from './OxygenLayout';
@@ -1,5 +0,0 @@
1
- import { ExternalModule } from '../../../../libs/views/src';
2
- export declare const GlobalProviders: ({ children, externalPageModules, }: {
3
- children: React.ReactNode;
4
- externalPageModules?: ExternalModule[];
5
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export * from './GlobalProviders';
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export declare const Protected: ({ children }: {
19
- children: React.ReactNode;
20
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export * from './Protected';
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export * from './GlobalProviders';
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export declare function RootRouter(): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export * from './Route';
19
- export { relativeRouteMap, absoluteRouteMap } from '../../../libs/types/src';
@@ -1,2 +0,0 @@
1
- import { FC } from 'react';
2
- export declare const LoadingFallback: FC;
@@ -1,24 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export { default as CoreUI } from './CoreUI';
19
- export * from '../../libs/views/src';
20
- export * from '../../libs/auth/src';
21
- export * from '../../libs/api-client/src';
22
- export * from '../../libs/types/src';
23
- export { useConfirmationDialog } from '../../libs/shared-component/src';
24
- export * from './types';
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export declare function Login(): import("react/jsx-runtime").JSX.Element;
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export * from './Login';
@@ -1,40 +0,0 @@
1
- import { ComponentType, FC } from 'react';
2
- export * from './Login';
3
- export declare const LazyOverviewOrg: FC;
4
- export declare const LazyOverviewProject: FC;
5
- export declare const LazyOverviewComponent: FC;
6
- export declare const LazyBuildComponent: FC;
7
- export declare const LazySecurityComponent: FC;
8
- export declare const LazyConfigureComponent: FC;
9
- export declare const LazyAddLLMProvidersComponent: FC;
10
- export declare const LazyViewLLMProviderComponent: FC;
11
- export declare const LazyAddMCPServerComponent: FC;
12
- export declare const LazyViewMCPServerComponent: FC;
13
- export declare const LazyDeploymentComponent: FC;
14
- export declare const LazyTestComponent: FC;
15
- export declare const LazyTracesComponent: FC;
16
- export declare const LazyLogsComponent: FC;
17
- export declare const LazyMetricsComponent: FC;
18
- export declare const LazyEvalEvaluatorsOrg: FC;
19
- export declare const LazyCreateEvaluatorOrg: FC;
20
- export declare const LazyViewEvaluatorOrg: FC;
21
- export declare const LazyEditEvaluatorOrg: FC;
22
- export declare const LazyEvalMonitorsComponent: FC;
23
- export declare const LazyCreateMonitorComponent: FC;
24
- export declare const LazyEditMonitorComponent: FC;
25
- export declare const LazyViewMonitorComponent: FC;
26
- export declare const LazyCompareMonitorComponent: FC;
27
- export declare const LazyLLMProvidersOrg: FC;
28
- export declare const LazyLLMProvidersComponent: FC;
29
- export declare const LazyAddLLMProvidersOrg: FC;
30
- export declare const LazyMCPProxiesOrg: FC;
31
- export declare const LazyGatewaysOrg: FC;
32
- export declare const LazyIdentitiesOrg: FC;
33
- export declare const LazyDeploymentPipelinesOrg: FC;
34
- export declare const LazyEnvironmentsOrg: FC;
35
- export declare const LazyCatalogOrg: FC;
36
- export declare const LazyPublishComponent: FC;
37
- export declare const LazyPublishOrg: FC;
38
- export declare const LazyAddNewAgent: import('react').LazyExoticComponent<ComponentType>;
39
- export declare const LazyAddNewProject: import('react').LazyExoticComponent<ComponentType>;
40
- export declare const LazyProfilePage: import('react').LazyExoticComponent<ComponentType>;
@@ -1,18 +0,0 @@
1
- /**
2
- * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export * from './mountPoints';
@@ -1,32 +0,0 @@
1
- /**
2
- * Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
3
- *
4
- * WSO2 LLC. licenses this file to you under the Apache License,
5
- * Version 2.0 (the "License"); you may not use this file except
6
- * in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- export declare enum MountPoints {
19
- ComponentLevelPage = "component-level-page",
20
- OrgLevelPage = "org-level-page",
21
- ProjectLevelPage = "project-level-page",
22
- TopLeftPanel = "top-left-panel",
23
- TopRightPanel = "top-right-panel",
24
- TopLogo = "top-logo",
25
- BottomLeftPanel = "bottom-left-panel",
26
- BottomRightPanel = "bottom-right-panel",
27
- LeftNavItem = "left-nav-item",
28
- PrivateRepoSupport = "private-repo-support",
29
- IdentityProviderMode = "identity-provider-mode",
30
- EnvironmentCreateDrawer = "environment-create-drawer",
31
- EnvironmentDeleteDrawer = "environment-delete-drawer"
32
- }