@pimcore/copilot-bundle 2.5.0-canary.20260217-111500-e8a0c1f
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/README.md +11 -0
- package/dist/.gitkeep +0 -0
- package/dist/build/types/config/service-ids.d.ts +22 -0
- package/dist/build/types/main.d.ts +9 -0
- package/dist/build/types/modules/copilot/app/copilot-action-registry.d.ts +26 -0
- package/dist/build/types/modules/copilot/components/copilot-icon/copilot-icon.d.ts +16 -0
- package/dist/build/types/modules/copilot/components/copilot-icon/copilot-icon.styles.d.ts +14 -0
- package/dist/build/types/modules/copilot/components/loader/loader.d.ts +11 -0
- package/dist/build/types/modules/copilot/components/loader/loader.styles.d.ts +12 -0
- package/dist/build/types/modules/copilot/components/log-info/log-info.d.ts +16 -0
- package/dist/build/types/modules/copilot/components/log-info/log-info.styles.d.ts +13 -0
- package/dist/build/types/modules/copilot/components/sender/sender.d.ts +29 -0
- package/dist/build/types/modules/copilot/components/sender/sender.styles.d.ts +15 -0
- package/dist/build/types/modules/copilot/components/thought-chain/thought-chain.d.ts +12 -0
- package/dist/build/types/modules/copilot/components/thought-chain/thought-chain.styles.d.ts +12 -0
- package/dist/build/types/modules/copilot/constants.d.ts +15 -0
- package/dist/build/types/modules/copilot/copilot-api-slice-enhanced.d.ts +1867 -0
- package/dist/build/types/modules/copilot/copilot-api-slice.gen.d.ts +2088 -0
- package/dist/build/types/modules/copilot/copilot-job-runs/components/action-list/action-list.d.ts +17 -0
- package/dist/build/types/modules/copilot/copilot-job-runs/components/action-list/action-list.styles.d.ts +12 -0
- package/dist/build/types/modules/copilot/copilot-job-runs/components/bottom-toolbar/bottom-toolbar.d.ts +21 -0
- package/dist/build/types/modules/copilot/copilot-job-runs/components/info-form/info-form.d.ts +16 -0
- package/dist/build/types/modules/copilot/copilot-job-runs/components/info-form/info-form.styles.d.ts +12 -0
- package/dist/build/types/modules/copilot/copilot-job-runs/constants.d.ts +18 -0
- package/dist/build/types/modules/copilot/copilot-job-runs/copilot-job-runs.d.ts +11 -0
- package/dist/build/types/modules/copilot/copilot-job-runs/hooks/use-columns.d.ts +12 -0
- package/dist/build/types/modules/copilot/copilot-modal/components/copilot-actions/components/action-card/action-card.d.ts +17 -0
- package/dist/build/types/modules/copilot/copilot-modal/components/copilot-actions/components/action-card/action-card.styles.d.ts +12 -0
- package/dist/build/types/modules/copilot/copilot-modal/components/copilot-actions/components/action-card/components/action-expander/action-expander.d.ts +13 -0
- package/dist/build/types/modules/copilot/copilot-modal/components/copilot-actions/copilot-actions.d.ts +11 -0
- package/dist/build/types/modules/copilot/copilot-modal/components/copilot-sidebar/copilot-sidebar.d.ts +12 -0
- package/dist/build/types/modules/copilot/copilot-modal/context/copilot-modal-data-context.d.ts +28 -0
- package/dist/build/types/modules/copilot/copilot-modal/copilot-modal-wrapper.d.ts +11 -0
- package/dist/build/types/modules/copilot/copilot-modal/copilot-modal.d.ts +11 -0
- package/dist/build/types/modules/copilot/copilot-modal/copilot-modal.styles.d.ts +20 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/automation-action-adapter/automation-action-adapter.d.ts +12 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/automation-action-adapter/automation-action-adapter.styles.d.ts +16 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/automation-action-adapter/components/environment-variable-form/components/matrix-grid/matrix-grid.d.ts +22 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/automation-action-adapter/components/environment-variable-form/environment-variable-form.d.ts +22 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/automation-action-adapter/components/job-thought-chain-item/job-thought-chain-item.d.ts +19 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/automation-action-adapter/components/job-thought-chain-item/job-thought-chain-item.styles.d.ts +20 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/automation-action-adapter/hooks/use-automation-actions.d.ts +23 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/automation-action-adapter/hooks/use-automation-handlers.d.ts +26 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/automation-action-adapter/types.d.ts +24 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/chat-interaction-adapter/chat-interaction-adapter.d.ts +12 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/chat-interaction-adapter/chat-interaction-adapter.styles.d.ts +16 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/chat-interaction-adapter/components/chat-thought-chain/chat-thought-chain.d.ts +17 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/chat-interaction-adapter/components/chat-thought-chain/chat-thought-chain.styles.d.ts +16 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/chat-interaction-adapter/hooks/use-chat-actions.d.ts +23 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/chat-interaction-adapter/hooks/use-chat-interaction-handlers.d.ts +33 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/chat-interaction-adapter/types.d.ts +25 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/one-step-interaction-adapter/one-step-interaction-adapter.d.ts +12 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/components/one-step-interaction-adapter/one-step-interaction-adapter.styles.d.ts +12 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/dynamic-type-copilot-definition-abstract.d.ts +21 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/dynamic-type-copilot-definition-registry.d.ts +13 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/types/dynamic-type-copilot-definition-automation-action-adapter.d.ts +20 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/types/dynamic-type-copilot-definition-chat-interaction-adapter.d.ts +20 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/types/dynamic-type-copilot-definition-core-menu-entries-adapter.d.ts +19 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/types/dynamic-type-copilot-definition-custom-reports-adapter.d.ts +19 -0
- package/dist/build/types/modules/copilot/dynamic-types/definitions/types/dynamic-type-copilot-definition-one-step-interaction-adapter.d.ts +20 -0
- package/dist/build/types/modules/copilot/helpers.d.ts +20 -0
- package/dist/build/types/modules/copilot/index.d.ts +11 -0
- package/dist/build/types/modules/copilot/types.d.ts +106 -0
- package/dist/build/types/plugins.d.ts +11 -0
- package/dist/build/types/sdk/index.d.ts +1 -0
- package/dist/build/types/types.d.ts +14 -0
- package/package.json +94 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
11
|
+
highlightedWrapper: any;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { type ReactElement } from 'react';
|
|
11
|
+
import { type DynamicTypeAbstract } from '@pimcore/studio-ui-bundle/modules/element';
|
|
12
|
+
import { type BundleCopilotAction } from '../../copilot-api-slice.gen';
|
|
13
|
+
import { type IGetActionComponentProps, type IRunRegularActionProps } from '../../types';
|
|
14
|
+
export declare abstract class DynamicTypeCopilotDefinitionAbstract implements DynamicTypeAbstract {
|
|
15
|
+
abstract readonly id: string;
|
|
16
|
+
abstract getGroup(props: BundleCopilotAction): string | undefined;
|
|
17
|
+
abstract getActionTagColor(props: BundleCopilotAction): string;
|
|
18
|
+
abstract getIcon(props: BundleCopilotAction): string;
|
|
19
|
+
getActionComponent?(props: IGetActionComponentProps): ReactElement;
|
|
20
|
+
runRegularAction?(props: IRunRegularActionProps): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { DynamicTypeRegistryAbstract } from '@pimcore/studio-ui-bundle/modules/element';
|
|
11
|
+
import { type DynamicTypeCopilotDefinitionAbstract } from './dynamic-type-copilot-definition-abstract';
|
|
12
|
+
export declare class DynamicTypeCopilotDefinitionRegistry extends DynamicTypeRegistryAbstract<DynamicTypeCopilotDefinitionAbstract> {
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { type ReactElement } from 'react';
|
|
11
|
+
import { DynamicTypeCopilotDefinitionAbstract } from '../dynamic-type-copilot-definition-abstract';
|
|
12
|
+
import { type IGetActionComponentProps } from '../../../types';
|
|
13
|
+
import { type BundleCopilotAction } from '../../../copilot-api-slice.gen';
|
|
14
|
+
export declare class DynamicTypeCopilotDefinitionAutomationActionAdapter extends DynamicTypeCopilotDefinitionAbstract {
|
|
15
|
+
id: string;
|
|
16
|
+
getGroup(props: BundleCopilotAction): string;
|
|
17
|
+
getActionTagColor(props: BundleCopilotAction): string;
|
|
18
|
+
getIcon(props: BundleCopilotAction): string;
|
|
19
|
+
getActionComponent(props: IGetActionComponentProps): ReactElement;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { type ReactElement } from 'react';
|
|
11
|
+
import { DynamicTypeCopilotDefinitionAbstract } from '../dynamic-type-copilot-definition-abstract';
|
|
12
|
+
import { type IGetActionComponentProps } from '../../../types';
|
|
13
|
+
import { type BundleCopilotAction } from '../../../copilot-api-slice.gen';
|
|
14
|
+
export declare class DynamicTypeCopilotDefinitionChatInteractionAdapter extends DynamicTypeCopilotDefinitionAbstract {
|
|
15
|
+
id: string;
|
|
16
|
+
getGroup(props: BundleCopilotAction): string;
|
|
17
|
+
getActionTagColor(props: BundleCopilotAction): string;
|
|
18
|
+
getIcon(props: BundleCopilotAction): string;
|
|
19
|
+
getActionComponent(props: IGetActionComponentProps): ReactElement;
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { DynamicTypeCopilotDefinitionAbstract } from '../dynamic-type-copilot-definition-abstract';
|
|
11
|
+
import { type IRunRegularActionProps } from '../../../types';
|
|
12
|
+
import { type BundleCopilotAction } from '../../../copilot-api-slice.gen';
|
|
13
|
+
export declare class DynamicTypeCopilotDefinitionCoreMenuEntriesAdapter extends DynamicTypeCopilotDefinitionAbstract {
|
|
14
|
+
id: string;
|
|
15
|
+
getGroup(props: BundleCopilotAction): string | undefined;
|
|
16
|
+
getActionTagColor(props: BundleCopilotAction): string;
|
|
17
|
+
getIcon(props: BundleCopilotAction): string;
|
|
18
|
+
runRegularAction(props: IRunRegularActionProps): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { DynamicTypeCopilotDefinitionAbstract } from '../dynamic-type-copilot-definition-abstract';
|
|
11
|
+
import { type IRunRegularActionProps } from '../../../types';
|
|
12
|
+
import { type BundleCopilotAction } from '../../../copilot-api-slice.gen';
|
|
13
|
+
export declare class DynamicTypeCopilotDefinitionCustomReportsAdapter extends DynamicTypeCopilotDefinitionAbstract {
|
|
14
|
+
id: string;
|
|
15
|
+
getGroup(props: BundleCopilotAction): string;
|
|
16
|
+
getActionTagColor(props: BundleCopilotAction): string;
|
|
17
|
+
getIcon(props: BundleCopilotAction): string;
|
|
18
|
+
runRegularAction(props: IRunRegularActionProps): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { type ReactElement } from 'react';
|
|
11
|
+
import { DynamicTypeCopilotDefinitionAbstract } from '../dynamic-type-copilot-definition-abstract';
|
|
12
|
+
import { type IGetActionComponentProps } from '../../../types';
|
|
13
|
+
import { type BundleCopilotAction } from '../../../copilot-api-slice.gen';
|
|
14
|
+
export declare class DynamicTypeCopilotDefinitionOneStepInteractionAdapter extends DynamicTypeCopilotDefinitionAbstract {
|
|
15
|
+
id: string;
|
|
16
|
+
getGroup(props: BundleCopilotAction): string;
|
|
17
|
+
getActionTagColor(props: BundleCopilotAction): string;
|
|
18
|
+
getIcon(props: BundleCopilotAction): string;
|
|
19
|
+
getActionComponent(props: IGetActionComponentProps): ReactElement;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { type GlobalElementContext } from '@pimcore/studio-ui-bundle/modules/element';
|
|
11
|
+
import { type IMainNavItem } from '@pimcore/studio-ui-bundle/modules/app';
|
|
12
|
+
import { type PerspectivesApiSlice } from '@pimcore/studio-ui-bundle/modules/perspectives';
|
|
13
|
+
import { type ICopilotActionItem } from './types';
|
|
14
|
+
export declare const normalizeContextData: (contextData?: GlobalElementContext) => string;
|
|
15
|
+
export declare const getCoreMenuEntries: (coreMenuData: IMainNavItem[]) => ICopilotActionItem[];
|
|
16
|
+
export declare const getPerspectiveMenuEntries: ({ perspectives, activePerspective, switchPerspective }: {
|
|
17
|
+
perspectives: PerspectivesApiSlice.PerspectiveConfig[];
|
|
18
|
+
activePerspective: string | null;
|
|
19
|
+
switchPerspective: (perspective: PerspectivesApiSlice.PerspectiveConfig) => void;
|
|
20
|
+
}) => ICopilotActionItem[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { type AbstractModule } from '@pimcore/studio-ui-bundle';
|
|
11
|
+
export declare const CopilotModule: AbstractModule;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { type ReactElement } from 'react';
|
|
11
|
+
import { type GlobalElementContext } from '@pimcore/studio-ui-bundle/modules/element';
|
|
12
|
+
import { type BundleCopilotAction } from './copilot-api-slice.gen';
|
|
13
|
+
export interface ICopilotActionItem extends BundleCopilotAction {
|
|
14
|
+
titleKey?: string;
|
|
15
|
+
group?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare enum ActionCategory {
|
|
18
|
+
REGULAR_ACTION = "regular_action",
|
|
19
|
+
AUTOMATION_ACTION = "automation_action",
|
|
20
|
+
INTERACTION_ACTION = "interaction_action",
|
|
21
|
+
MENU_ACTION = "menu_action"
|
|
22
|
+
}
|
|
23
|
+
export declare enum JobState {
|
|
24
|
+
RUNNING = "running",
|
|
25
|
+
CANCELLED = "cancelled",
|
|
26
|
+
FINISHED = "finished",
|
|
27
|
+
FINISHED_WITH_ERRORS = "finished_with_errors",
|
|
28
|
+
FAILED = "failed"
|
|
29
|
+
}
|
|
30
|
+
export interface ICustomReportsAdapterConfig {
|
|
31
|
+
group?: string;
|
|
32
|
+
groupIconClass?: string;
|
|
33
|
+
iconClass?: string;
|
|
34
|
+
menuShortcut?: boolean;
|
|
35
|
+
name: string;
|
|
36
|
+
niceName: string;
|
|
37
|
+
reportClass?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface IOneStepInteractionAdapterConfig {
|
|
40
|
+
title?: string;
|
|
41
|
+
name: string;
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
}
|
|
44
|
+
export interface IChatInteractionAdapterConfig {
|
|
45
|
+
title?: string;
|
|
46
|
+
name: string;
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
}
|
|
49
|
+
export interface IEnvironmentVariablesItem {
|
|
50
|
+
configuration?: {
|
|
51
|
+
default_value?: any;
|
|
52
|
+
required?: boolean;
|
|
53
|
+
values?: Array<{
|
|
54
|
+
key: string;
|
|
55
|
+
value: string;
|
|
56
|
+
}>;
|
|
57
|
+
columns?: Array<{
|
|
58
|
+
configuration?: {
|
|
59
|
+
default_value?: any;
|
|
60
|
+
required?: boolean;
|
|
61
|
+
values?: Array<{
|
|
62
|
+
key: string;
|
|
63
|
+
value: string;
|
|
64
|
+
}>;
|
|
65
|
+
};
|
|
66
|
+
field_type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'matrix';
|
|
67
|
+
name: string;
|
|
68
|
+
type: string;
|
|
69
|
+
}>;
|
|
70
|
+
};
|
|
71
|
+
field_type: 'text' | 'number' | 'date' | 'checkbox' | 'select' | 'matrix';
|
|
72
|
+
name: string;
|
|
73
|
+
type: string;
|
|
74
|
+
}
|
|
75
|
+
export interface IAutomationActionAdapterConfig {
|
|
76
|
+
title?: string;
|
|
77
|
+
name: string;
|
|
78
|
+
environment_variables: IEnvironmentVariablesItem[];
|
|
79
|
+
post_execution_interaction: 'reload_subject' | 'none';
|
|
80
|
+
[key: string]: any;
|
|
81
|
+
}
|
|
82
|
+
export interface IActiveAction {
|
|
83
|
+
id: string;
|
|
84
|
+
adapterId: BundleCopilotAction['jsAdapterName'];
|
|
85
|
+
config: {
|
|
86
|
+
onClick?: () => void;
|
|
87
|
+
[key: string]: any;
|
|
88
|
+
};
|
|
89
|
+
component?: ReactElement;
|
|
90
|
+
timestamp: number;
|
|
91
|
+
context: string[];
|
|
92
|
+
data?: any;
|
|
93
|
+
state?: any;
|
|
94
|
+
}
|
|
95
|
+
export interface IRunRegularActionProps {
|
|
96
|
+
config: IActiveAction['config'];
|
|
97
|
+
closeModal: () => void;
|
|
98
|
+
}
|
|
99
|
+
export interface IGetActionComponentProps {
|
|
100
|
+
id: IActiveAction['id'];
|
|
101
|
+
context: GlobalElementContext;
|
|
102
|
+
config: IActiveAction['config'];
|
|
103
|
+
timestamp: number;
|
|
104
|
+
}
|
|
105
|
+
export interface IActionAdapterProps extends IGetActionComponentProps {
|
|
106
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { type IAbstractPlugin } from '@pimcore/studio-ui-bundle';
|
|
11
|
+
export declare const CopilotPlugin: IAbstractPlugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../modules/copilot/dynamic-types/definitions/dynamic-type-copilot-definition-abstract';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This source file is available under the terms of the
|
|
3
|
+
* Pimcore Open Core License (POCL)
|
|
4
|
+
* Full copyright and license information is available in
|
|
5
|
+
* LICENSE.md which is distributed with this source code.
|
|
6
|
+
*
|
|
7
|
+
* @copyright Copyright (c) Pimcore GmbH (https://www.pimcore.com)
|
|
8
|
+
* @license Pimcore Open Core License (POCL)
|
|
9
|
+
*/
|
|
10
|
+
import { type tokens, type components } from '@pimcore/studio-ui-bundle/modules/app';
|
|
11
|
+
declare module 'antd-style' {
|
|
12
|
+
interface FullToken extends tokens, components {
|
|
13
|
+
}
|
|
14
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pimcore/copilot-bundle",
|
|
3
|
+
"version": "2.5.0-canary.20260217-111500-e8a0c1f",
|
|
4
|
+
"keywords": [
|
|
5
|
+
"pimcore",
|
|
6
|
+
"pimcore-studio-ui",
|
|
7
|
+
"pimcore-copilot"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"dev": "NODE_ENV=development rsbuild build",
|
|
11
|
+
"dev-server": "NODE_ENV=dev-server rsbuild dev",
|
|
12
|
+
"build": "rsbuild build",
|
|
13
|
+
"build-api-client": "TS_NODE_COMPILER_OPTIONS='{\"moduleResolution\":\"node\"}' npx @rtk-query/codegen-openapi ./build/api/openapi-config.ts",
|
|
14
|
+
"lint": "eslint --ext .js,.jsx,.ts,.tsx ./js",
|
|
15
|
+
"lint-fix": "eslint --ext .js,.jsx,.ts,.tsx ./js --fix",
|
|
16
|
+
"lint-fix-watch": "nodemon --watch './js/**/*' --exec \"eslint --ext .js,.jsx,.ts,.tsx ./js --fix --cache\" -e js,jsx,ts,tsx",
|
|
17
|
+
"check-types": "tsc --noEmit",
|
|
18
|
+
"check-types-watch": "tsc --noEmit --watch",
|
|
19
|
+
"generate-types": "tsc && tsc-alias"
|
|
20
|
+
},
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/build/types/src/sdk/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./*": {
|
|
26
|
+
"types": "./dist/build/types/src/sdk/*/index.d.ts"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"provenance": false
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"license": "proprietary",
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@babel/preset-react": "^7.23.3",
|
|
38
|
+
"@module-federation/rsbuild-plugin": "^0.14.0",
|
|
39
|
+
"@rsbuild/core": "^1.3.21",
|
|
40
|
+
"@rsbuild/plugin-react": "^1.3.1",
|
|
41
|
+
"@rtk-query/codegen-openapi": "^1.2.0",
|
|
42
|
+
"@storybook/addon-a11y": "^8.0.5",
|
|
43
|
+
"@storybook/addon-essentials": "^8.0.5",
|
|
44
|
+
"@storybook/addon-interactions": "^8.0.5",
|
|
45
|
+
"@storybook/addon-links": "^8.0.5",
|
|
46
|
+
"@storybook/addon-onboarding": "^8.0.5",
|
|
47
|
+
"@storybook/addon-webpack5-compiler-swc": "^1.0.2",
|
|
48
|
+
"@storybook/blocks": "^8.0.5",
|
|
49
|
+
"@storybook/react": "^8.0.5",
|
|
50
|
+
"@storybook/react-webpack5": "^8.0.5",
|
|
51
|
+
"@storybook/test": "^8.0.5",
|
|
52
|
+
"@testing-library/dom": "^9.3.4",
|
|
53
|
+
"@testing-library/jest-dom": "^6.4.2",
|
|
54
|
+
"@testing-library/react": "^14.2.2",
|
|
55
|
+
"@testing-library/user-event": "^14.5.2",
|
|
56
|
+
"@types/jest": "^29.5.12",
|
|
57
|
+
"@types/react-dom": "18.3.x",
|
|
58
|
+
"@types/webpack-env": "^1.18.4",
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^6.19.1",
|
|
60
|
+
"eslint": "^8.56.0",
|
|
61
|
+
"eslint-config-standard-with-typescript": "^43.0.1",
|
|
62
|
+
"eslint-plugin-header": "^3.1.1",
|
|
63
|
+
"eslint-plugin-import": "^2.29.1",
|
|
64
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
65
|
+
"eslint-plugin-n": "^16.6.2",
|
|
66
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
67
|
+
"eslint-plugin-react": "^7.33.2",
|
|
68
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
69
|
+
"jest": "^29.7.0",
|
|
70
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
71
|
+
"nodemon": "^3.1.10",
|
|
72
|
+
"react-refresh": "^0.14.2",
|
|
73
|
+
"storybook": "^8.0.5",
|
|
74
|
+
"stream": "^0.0.2",
|
|
75
|
+
"ts-jest": "^29.1.2",
|
|
76
|
+
"ts-loader": "^9.5.1",
|
|
77
|
+
"ts-node": "^10.9.2",
|
|
78
|
+
"tsc-alias": "^1.8.16",
|
|
79
|
+
"typescript": "^5.3.3",
|
|
80
|
+
"whatwg-fetch": "^3.6.20"
|
|
81
|
+
},
|
|
82
|
+
"dependencies": {
|
|
83
|
+
"@ant-design/x": "^2.0.0",
|
|
84
|
+
"@pimcore/studio-ui-bundle": "^1.0.0-canary.20260216-174426-d0b293a",
|
|
85
|
+
"antd-style": "^3.7.1",
|
|
86
|
+
"react": "18.3.x",
|
|
87
|
+
"react-dom": "18.3.x",
|
|
88
|
+
"reflect-metadata": "^0.2.2",
|
|
89
|
+
"uuid": "^13.0.0"
|
|
90
|
+
},
|
|
91
|
+
"overrides": {
|
|
92
|
+
"axios": "1.12.0"
|
|
93
|
+
}
|
|
94
|
+
}
|