@michelangelo-ai/core 0.1.17 → 0.2.0
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/dist/components/actions/action-menu/action-menu-item.d.ts +18 -1
- package/dist/components/actions/action-menu/action-menu-item.d.ts.map +1 -1
- package/dist/components/actions/action-menu/action-menu.d.ts +15 -0
- package/dist/components/actions/action-menu/action-menu.d.ts.map +1 -1
- package/dist/components/actions/actions-popover.d.ts.map +1 -1
- package/dist/components/actions/interpolatable-actions-popover.d.ts +16 -0
- package/dist/components/actions/interpolatable-actions-popover.d.ts.map +1 -0
- package/dist/components/actions/types.d.ts +20 -0
- package/dist/components/actions/types.d.ts.map +1 -1
- package/dist/components/views/detail-view/components/detail-view-header/detail-view-header.d.ts.map +1 -1
- package/dist/components/views/detail-view/types/detail-view-component-types.d.ts +2 -2
- package/dist/components/views/detail-view/types/detail-view-component-types.d.ts.map +1 -1
- package/dist/components/views/project/__tests__/project-detail.test.d.ts +2 -0
- package/dist/components/views/project/__tests__/project-detail.test.d.ts.map +1 -0
- package/dist/components/views/project/__tests__/project-list.test.d.ts +2 -0
- package/dist/components/views/project/__tests__/project-list.test.d.ts.map +1 -0
- package/dist/components/views/project/components/phase-card.d.ts.map +1 -1
- package/dist/components/views/project/project-detail.d.ts +4 -1
- package/dist/components/views/project/project-detail.d.ts.map +1 -1
- package/dist/components/views/sandbox/sandbox.d.ts.map +1 -1
- package/dist/components/views/types.d.ts +2 -2
- package/dist/components/views/types.d.ts.map +1 -1
- package/dist/config/entities/trigger/__tests__/trigger-run-action-form.test.d.ts +2 -0
- package/dist/config/entities/trigger/__tests__/trigger-run-action-form.test.d.ts.map +1 -0
- package/dist/config/entities/trigger/trigger-run-action-form.d.ts +4 -0
- package/dist/config/entities/trigger/trigger-run-action-form.d.ts.map +1 -0
- package/dist/config/entities/trigger/trigger.d.ts.map +1 -1
- package/dist/config/entities/trigger/types.d.ts +50 -0
- package/dist/config/entities/trigger/types.d.ts.map +1 -1
- package/dist/interpolation/types.d.ts +30 -0
- package/dist/interpolation/types.d.ts.map +1 -1
- package/dist/michelangelo-core.cjs +70 -76
- package/dist/michelangelo-core.js +30001 -32896
- package/dist/router/entity-detail-route.d.ts.map +1 -1
- package/dist/router/router.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/common/studio-types.d.ts +2 -2
- package/dist/types/common/studio-types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/components/views/sandbox/fixtures/execution-data.d.ts +0 -327
- package/dist/components/views/sandbox/fixtures/execution-data.d.ts.map +0 -1
|
@@ -5,8 +5,25 @@ export declare const ActionMenuItem: import("react").ForwardRefExoticComponent<{
|
|
|
5
5
|
* Item is the action configuration defined for a specific action in
|
|
6
6
|
* the ActionMenu list, passed as `item` per baseui MenuAdapter props.
|
|
7
7
|
*/
|
|
8
|
-
item: ComponentActionConfig
|
|
8
|
+
item: Omit<ComponentActionConfig, "disabled"> & {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
disabledMessage: string | undefined;
|
|
11
|
+
};
|
|
9
12
|
record: Data;
|
|
10
13
|
onSelectAction: (action: SelectedAction) => void;
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* The action currently under the mouse cursor, or null.
|
|
17
|
+
* Compared by object identity against `action` to derive `isHovered`.
|
|
18
|
+
*/
|
|
19
|
+
hoveredItem: object | null;
|
|
20
|
+
setHoveredItem: (item: object | null) => void;
|
|
21
|
+
/**
|
|
22
|
+
* True after any keydown inside the menu. False on mouse enter.
|
|
23
|
+
* Gates the keyboard tooltip path so auto-highlight on focus
|
|
24
|
+
* doesn't flash a tooltip.
|
|
25
|
+
*/
|
|
26
|
+
keyboardActive: boolean;
|
|
27
|
+
setKeyboardActive: (active: boolean) => void;
|
|
11
28
|
} & Omit<MenuAdapterProps, "children" | "item"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
12
29
|
//# sourceMappingURL=action-menu-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-menu-item.d.ts","sourceRoot":"","sources":["../../../../components/actions/action-menu/action-menu-item.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"action-menu-item.d.ts","sourceRoot":"","sources":["../../../../components/actions/action-menu/action-menu-item.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAqClG,eAAO,MAAM,cAAc;IA1BzB;;;OAGG;UACG,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,GAAG;QAC9C,QAAQ,EAAE,OAAO,CAAC;QAClB,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;KACrC;YACO,IAAI;oBACI,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI;cACtC,MAAM,IAAI;IACpB;;;OAGG;iBACU,MAAM,GAAG,IAAI;oBACV,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI;IAC7C;;;;OAIG;oBACa,OAAO;uBACJ,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI;+FA4E5C,CAAC"}
|
|
@@ -3,7 +3,22 @@ type ActionMenuProps = {
|
|
|
3
3
|
actions: ActionConfig[];
|
|
4
4
|
record: Data;
|
|
5
5
|
onSelectAction: (action: SelectedAction) => void;
|
|
6
|
+
onClose?: () => void;
|
|
6
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* Renders a BaseUI StatefulMenu with tooltip support for disabled items.
|
|
10
|
+
*
|
|
11
|
+
* Disabled items show a tooltip explaining why they're disabled. The tooltip
|
|
12
|
+
* must appear on both mouse hover and keyboard navigation, but NOT on the
|
|
13
|
+
* auto-highlight that StatefulMenu applies to the first item when the menu
|
|
14
|
+
* receives focus. Two pieces of state coordinate this:
|
|
15
|
+
*
|
|
16
|
+
* - `hoveredItem` — tracks which item the mouse is over (object identity).
|
|
17
|
+
* Ensures only one tooltip is visible at a time without manual cleanup.
|
|
18
|
+
* - `keyboardActive` — distinguishes intentional arrow-key navigation from
|
|
19
|
+
* the auto-highlight on focus. Set to `true` on any keydown inside the
|
|
20
|
+
* menu, reset to `false` on mouse enter.
|
|
21
|
+
*/
|
|
7
22
|
export declare function ActionMenu(props: ActionMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
8
23
|
export {};
|
|
9
24
|
//# sourceMappingURL=action-menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-menu.d.ts","sourceRoot":"","sources":["../../../../components/actions/action-menu/action-menu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"action-menu.d.ts","sourceRoot":"","sources":["../../../../components/actions/action-menu/action-menu.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,YAAY,EAEZ,IAAI,EACJ,cAAc,EACf,MAAM,gCAAgC,CAAC;AAExC,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,MAAM,EAAE,IAAI,CAAC;IACb,cAAc,EAAE,CAAC,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAkDhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions-popover.d.ts","sourceRoot":"","sources":["../../../components/actions/actions-popover.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,KAAK,EAAwB,YAAY,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAExE,KAAK,mBAAmB,CAAC,CAAC,SAAS,IAAI,IAAI;IACzC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,EAAE,CAAC,CAAC;IACV,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF,wBAAgB,cAAc,CAAC,CAAC,SAAS,IAAI,EAAE,EAC7C,OAAO,EACP,WAAW,EACX,MAAM,EACN,YAAY,GACb,EAAE,mBAAmB,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"actions-popover.d.ts","sourceRoot":"","sources":["../../../components/actions/actions-popover.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,KAAK,EAAwB,YAAY,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAExE,KAAK,mBAAmB,CAAC,CAAC,SAAS,IAAI,IAAI;IACzC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,EAAE,CAAC,CAAC;IACV,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF,wBAAgB,cAAc,CAAC,CAAC,SAAS,IAAI,EAAE,EAC7C,OAAO,EACP,WAAW,EACX,MAAM,EACN,YAAY,GACb,EAAE,mBAAmB,CAAC,CAAC,CAAC,2CA8ExB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BasePopoverProps } from 'baseui/popover';
|
|
2
|
+
import type { ActionConfigSchema, Data } from './types';
|
|
3
|
+
type InterpolatableActionsPopoverProps = {
|
|
4
|
+
actions: ActionConfigSchema<Data>[];
|
|
5
|
+
record: Data;
|
|
6
|
+
popoverProps?: BasePopoverProps;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Resolves interpolated action configs per-row before delegating to {@link ActionsPopover}.
|
|
10
|
+
*
|
|
11
|
+
* Table action render functions aren't React components and can't use hooks, so this thin
|
|
12
|
+
* wrapper provides the per-row resolution boundary that the table view needs.
|
|
13
|
+
*/
|
|
14
|
+
export declare function InterpolatableActionsPopover({ actions, record, ...rest }: InterpolatableActionsPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=interpolatable-actions-popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interpolatable-actions-popover.d.ts","sourceRoot":"","sources":["../../../components/actions/interpolatable-actions-popover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAgB,kBAAkB,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEtE,KAAK,iCAAiC,GAAG;IACvC,OAAO,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC;IACpC,MAAM,EAAE,IAAI,CAAC;IACb,YAAY,CAAC,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,OAAO,EACP,MAAM,EACN,GAAG,IAAI,EACR,EAAE,iCAAiC,2CAQnC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
|
+
import type { DeepInterpolatable } from '../../interpolation/types';
|
|
2
3
|
export type ActionConfig<T = Data> = ComponentActionConfig<T>;
|
|
3
4
|
/**
|
|
4
5
|
* Base fields shared by all action configurations.
|
|
@@ -26,6 +27,12 @@ export type ActionConfigBase = {
|
|
|
26
27
|
* @see {@link ActionHierarchy}
|
|
27
28
|
*/
|
|
28
29
|
hierarchy?: ActionHierarchy;
|
|
30
|
+
/**
|
|
31
|
+
* Optional rules to disable this action for specific records.
|
|
32
|
+
* Rules are evaluated in order; the first match disables the item and
|
|
33
|
+
* shows its message as a hover tooltip.
|
|
34
|
+
*/
|
|
35
|
+
disabled?: DisabledRule[];
|
|
29
36
|
};
|
|
30
37
|
/**
|
|
31
38
|
* How the action's trigger button is displayed to the user
|
|
@@ -54,5 +61,18 @@ export type SelectedAction = {
|
|
|
54
61
|
component: ComponentType<ActionComponentProps>;
|
|
55
62
|
record: Data;
|
|
56
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* Schema version of {@link ActionConfig} — what config authors write.
|
|
66
|
+
* All leaf fields accept interpolated values via {@link DeepInterpolatable}.
|
|
67
|
+
*
|
|
68
|
+
* Components always receive the resolved {@link ActionConfig} — interpolation
|
|
69
|
+
* is resolved at the per-row boundary before reaching any rendering code.
|
|
70
|
+
*/
|
|
71
|
+
export type ActionConfigSchema<T = Data> = DeepInterpolatable<ActionConfig<T>>;
|
|
72
|
+
/** A condition that disables an action for a specific record, with an optional hover tooltip. */
|
|
73
|
+
type DisabledRule = {
|
|
74
|
+
condition: boolean;
|
|
75
|
+
message?: string;
|
|
76
|
+
};
|
|
57
77
|
export {};
|
|
58
78
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../components/actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../components/actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,IAAI,IAAI,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAE9D;;;;;;;;;;GAUG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;;OAIG;IACH,OAAO,EAAE,oBAAoB,CAAC;IAE9B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,eAAe;IACzB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3C,MAAM,MAAM,qBAAqB,CAAC,CAAC,GAAG,IAAI,IAAI,gBAAgB,GAAG;IAC/D,SAAS,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,IAAI,IAAI;IAC3C,MAAM,EAAE,CAAC,CAAC;IACV,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAC/C,MAAM,EAAE,IAAI,CAAC;CACd,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,IAAI,IAAI,kBAAkB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E,iGAAiG;AACjG,KAAK,YAAY,GAAG;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
package/dist/components/views/detail-view/components/detail-view-header/detail-view-header.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detail-view-header.d.ts","sourceRoot":"","sources":["../../../../../../components/views/detail-view/components/detail-view-header/detail-view-header.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"detail-view-header.d.ts","sourceRoot":"","sources":["../../../../../../components/views/detail-view/components/detail-view-header/detail-view-header.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,MAAM,EACN,OAAO,GACR,EAAE,qBAAqB,2CAsEvB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ActionConfigSchema } from '../../../../components/actions/types';
|
|
2
2
|
export interface DetailViewProps extends DetailHeaderBaseProps {
|
|
3
3
|
/**
|
|
4
4
|
* Content displayed at the bottom of the header container
|
|
@@ -21,7 +21,7 @@ export interface DetailHeaderBaseProps {
|
|
|
21
21
|
* operate on the currently viewed entity record. For example, a "Delete" action would delete
|
|
22
22
|
* the currently viewed entity.
|
|
23
23
|
*/
|
|
24
|
-
actions?:
|
|
24
|
+
actions?: ActionConfigSchema<object>[];
|
|
25
25
|
/** The data for the currently viewed entity. */
|
|
26
26
|
record?: Record<string, unknown>;
|
|
27
27
|
/** Loading state for the currently viewed entity. Indicates that record data may be incomplete. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detail-view-component-types.d.ts","sourceRoot":"","sources":["../../../../../components/views/detail-view/types/detail-view-component-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"detail-view-component-types.d.ts","sourceRoot":"","sources":["../../../../../components/views/detail-view/types/detail-view-component-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,MAAM,WAAW,eAAgB,SAAQ,qBAAqB;IAC5D;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEhC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAEtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;IAEvC,gDAAgD;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEjC,mGAAmG;IACnG,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,aAAa,EAAE,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-detail.test.d.ts","sourceRoot":"","sources":["../../../../../components/views/project/__tests__/project-detail.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-list.test.d.ts","sourceRoot":"","sources":["../../../../../components/views/project/__tests__/project-list.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phase-card.d.ts","sourceRoot":"","sources":["../../../../../components/views/project/components/phase-card.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,wBAAgB,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"phase-card.d.ts","sourceRoot":"","sources":["../../../../../components/views/project/components/phase-card.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,wBAAgB,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,2CAgGnE"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { PhaseConfig } from '../../../types/common/studio-types';
|
|
2
|
+
export declare function ProjectDetail({ phases }: {
|
|
3
|
+
phases: PhaseConfig[];
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
2
5
|
//# sourceMappingURL=project-detail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-detail.d.ts","sourceRoot":"","sources":["../../../../components/views/project/project-detail.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"project-detail.d.ts","sourceRoot":"","sources":["../../../../components/views/project/project-detail.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,WAAW,EAAE,CAAA;CAAE,2CA8DlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../../../components/views/sandbox/sandbox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../../../components/views/sandbox/sandbox.tsx"],"names":[],"mappings":"AAKA,wBAAgB,OAAO,4CAOtB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ActionConfigSchema } from '../../components/actions/types';
|
|
3
3
|
import type { Cell } from '../../components/cell/types';
|
|
4
4
|
import type { EmptyState } from '../../components/table/components/table-empty-state/types';
|
|
5
5
|
import type { PageSizeOption } from '../../components/table/components/table-pagination/types';
|
|
@@ -40,6 +40,6 @@ export interface TableConfig<T extends TableData = TableData> {
|
|
|
40
40
|
/** Whether to enable sticky sides in the table */
|
|
41
41
|
enableStickySides?: boolean;
|
|
42
42
|
/** Optional actions to render in each table row */
|
|
43
|
-
actions?:
|
|
43
|
+
actions?: ActionConfigSchema<T>[];
|
|
44
44
|
}
|
|
45
45
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../components/views/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../components/views/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2DAA2D,CAAC;AAC5F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC/F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mEAAmE,CAAC;AAE1G,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,cAAc,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAE5F,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACzD,IAAI,EAAE,QAAQ,CAAC;IAEf,0DAA0D;IAC1D,QAAQ,EAAE,IAAI,EAAE,CAAC;IAEjB,qDAAqD;IACrD,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC;CAC9B;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS;IAC1D,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAE3B,oDAAoD;IACpD,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,yCAAyC;IACzC,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAE7B,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,mDAAmD;IACnD,OAAO,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC;CACnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger-run-action-form.test.d.ts","sourceRoot":"","sources":["../../../../../config/entities/trigger/__tests__/trigger-run-action-form.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ActionComponentProps } from '../../../components/actions/types';
|
|
2
|
+
import type { TriggerRun } from './types';
|
|
3
|
+
export declare const KillTriggerRunForm: (props: ActionComponentProps<TriggerRun>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=trigger-run-action-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger-run-action-form.d.ts","sourceRoot":"","sources":["../../../../config/entities/trigger/trigger-run-action-form.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAgE1C,eAAO,MAAM,kBAAkB,UAAW,oBAAoB,CAAC,UAAU,CAAC,4CAEzE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../../../config/entities/trigger/trigger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../../../config/entities/trigger/trigger.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAQzE,eAAO,MAAM,qBAAqB,EAAE,iBAqBnC,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mirrors generated types from @michelangelo/rpc trigger_run_pb.
|
|
3
|
+
* Update alongside proto/api/v2/trigger_run.proto.
|
|
4
|
+
*/
|
|
1
5
|
export type Trigger = {
|
|
2
6
|
metadata: {
|
|
3
7
|
name: string;
|
|
@@ -10,4 +14,50 @@ export type Trigger = {
|
|
|
10
14
|
};
|
|
11
15
|
};
|
|
12
16
|
};
|
|
17
|
+
export type TriggerRun = {
|
|
18
|
+
metadata: {
|
|
19
|
+
name: string;
|
|
20
|
+
namespace: string;
|
|
21
|
+
};
|
|
22
|
+
spec: {
|
|
23
|
+
pipeline: {
|
|
24
|
+
name: string;
|
|
25
|
+
namespace: string;
|
|
26
|
+
};
|
|
27
|
+
revision: {
|
|
28
|
+
name: string;
|
|
29
|
+
namespace: string;
|
|
30
|
+
};
|
|
31
|
+
actor: {
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
|
+
sourceTriggerName: string;
|
|
35
|
+
autoFlip: boolean;
|
|
36
|
+
notifications: unknown[];
|
|
37
|
+
/** @deprecated Use action instead (proto field 11). */
|
|
38
|
+
kill: boolean;
|
|
39
|
+
/** proto field 11 — replaces deprecated kill boolean */
|
|
40
|
+
action: TriggerRunAction;
|
|
41
|
+
};
|
|
42
|
+
status: {
|
|
43
|
+
state: TriggerRunState;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
/** Mirrors proto TriggerRunAction enum (trigger_run.proto). */
|
|
47
|
+
export declare enum TriggerRunAction {
|
|
48
|
+
NO_ACTION = 0,
|
|
49
|
+
KILL = 1,
|
|
50
|
+
PAUSE = 2,
|
|
51
|
+
RESUME = 3
|
|
52
|
+
}
|
|
53
|
+
/** Mirrors proto TriggerRunState enum (trigger_run.proto). */
|
|
54
|
+
export declare enum TriggerRunState {
|
|
55
|
+
INVALID = 0,
|
|
56
|
+
RUNNING = 1,
|
|
57
|
+
KILLED = 2,
|
|
58
|
+
FAILED = 3,
|
|
59
|
+
SUCCEEDED = 4,
|
|
60
|
+
PENDING_KILL = 5,
|
|
61
|
+
PAUSED = 6
|
|
62
|
+
}
|
|
13
63
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../config/entities/trigger/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,IAAI,EAAE;QACJ,OAAO,EAAE;YACP,WAAW,EAAE;gBACX,IAAI,EAAE,cAAc,GAAG,YAAY,GAAG,kBAAkB,CAAC;aAC1D,CAAC;SACH,CAAC;KACH,CAAC;CACH,CAAC"}
|
|
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,IAAI;IAChB,MAAM,IAAI;CACX"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
1
2
|
import type { ViewTypeToParamType } from '../hooks/routing/use-studio-params/types';
|
|
2
3
|
import type { RepeatedLayoutState } from '../providers/repeated-layout-provider/types';
|
|
3
4
|
import type { StudioParamsView } from '../types/common/view-types';
|
|
@@ -134,6 +135,35 @@ export interface InterpolationContextExtensions {
|
|
|
134
135
|
* ```
|
|
135
136
|
*/
|
|
136
137
|
export type Interpolatable<T, U extends StudioParamsView = 'base'> = T | string | FunctionInterpolation<T, U> | StringInterpolation<U>;
|
|
138
|
+
/**
|
|
139
|
+
* Recursively wraps all leaf fields of `T` with {@link Interpolatable}, allowing
|
|
140
|
+
* every property in a config object to accept static values or interpolation patterns.
|
|
141
|
+
*
|
|
142
|
+
* - Functions and React components are preserved (not wrapped)
|
|
143
|
+
* - Arrays recurse into their element type
|
|
144
|
+
* - Objects recurse into each property
|
|
145
|
+
* - Primitives become `T | Interpolatable<T>`
|
|
146
|
+
*
|
|
147
|
+
* Use this to derive a "schema" version of a resolved config type:
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* ```typescript
|
|
151
|
+
* type ActionConfigSchema = DeepInterpolatable<ActionConfig>;
|
|
152
|
+
*
|
|
153
|
+
* // Static values still compile — ActionConfig is assignable to ActionConfigSchema:
|
|
154
|
+
* const staticConfig: ActionConfigSchema = { hierarchy: ActionHierarchy.PRIMARY };
|
|
155
|
+
*
|
|
156
|
+
* // Interpolated values also compile:
|
|
157
|
+
* const dynamicConfig: ActionConfigSchema = {
|
|
158
|
+
* hierarchy: interpolate(({ data }) =>
|
|
159
|
+
* data.state === 'PAUSED' ? ActionHierarchy.PRIMARY : ActionHierarchy.TERTIARY
|
|
160
|
+
* ),
|
|
161
|
+
* };
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
export type DeepInterpolatable<T, U extends StudioParamsView = 'base'> = T extends (...args: any[]) => any ? T : T extends ComponentType<any> ? T : T extends Array<infer El> ? Array<DeepInterpolatable<El, U>> : T extends object ? {
|
|
165
|
+
[K in keyof T]: DeepInterpolatable<T[K], U>;
|
|
166
|
+
} : Interpolatable<T, U>;
|
|
137
167
|
/**
|
|
138
168
|
* Function type for checking whether a property should be excluded from interpolation.
|
|
139
169
|
* Called for each object property during recursive interpolation processing.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../interpolation/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,IAAI,EAAE,GAAG,CAAC;IACV;;;OAGG;IACH,aAAa,EAAE,GAAG,CAAC;IACnB;;;OAGG;IACH,QAAQ,EAAE,GAAG,CAAC;IACd;;;OAGG;IACH,GAAG,EAAE,GAAG,CAAC;IACT;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,gBAAgB,GAAG,MAAM,CACvE,SAAQ,8BAA8B,EACpC,eAAe;IACjB;;;;;;OAMG;IACH,qBAAqB,CAAC,EAAE,mBAAmB,CAAC;IAC5C;;;OAGG;IACH,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IAC/B;;;;OAIG;IACH,IAAI,EAAE,GAAG,CAAC;CACX;AAED;;;;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