@michelangelo-ai/core 0.2.0 → 0.2.2
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/breadcrumb-bar/__tests__/use-scrolling-navbar-shadow.test.d.ts +2 -0
- package/dist/components/breadcrumb-bar/__tests__/use-scrolling-navbar-shadow.test.d.ts.map +1 -0
- package/dist/components/breadcrumb-bar/breadcrumb-bar.d.ts.map +1 -1
- package/dist/components/breadcrumb-bar/styled-components.d.ts +3 -1
- package/dist/components/breadcrumb-bar/styled-components.d.ts.map +1 -1
- package/dist/components/breadcrumb-bar/use-scrolling-navbar-shadow.d.ts +4 -0
- package/dist/components/breadcrumb-bar/use-scrolling-navbar-shadow.d.ts.map +1 -0
- package/dist/components/form/fields/date/use-date-formatters.d.ts +4 -6
- package/dist/components/form/fields/date/use-date-formatters.d.ts.map +1 -1
- package/dist/components/form/layout/form-group/form-group.d.ts.map +1 -1
- package/dist/components/form/layout/form-group/types.d.ts +16 -7
- package/dist/components/form/layout/form-group/types.d.ts.map +1 -1
- package/dist/config/entities/deployment/__tests__/deployment-page.test.d.ts +2 -0
- package/dist/config/entities/deployment/__tests__/deployment-page.test.d.ts.map +1 -0
- package/dist/config/entities/deployment/deployment.d.ts +3 -0
- package/dist/config/entities/deployment/deployment.d.ts.map +1 -0
- package/dist/config/entities/deployment/detail.d.ts +3 -0
- package/dist/config/entities/deployment/detail.d.ts.map +1 -0
- package/dist/config/entities/deployment/list.d.ts +3 -0
- package/dist/config/entities/deployment/list.d.ts.map +1 -0
- package/dist/config/entities/deployment/shared.d.ts +30 -0
- package/dist/config/entities/deployment/shared.d.ts.map +1 -0
- package/dist/config/entities/targets/__tests__/target-page.test.d.ts +2 -0
- package/dist/config/entities/targets/__tests__/target-page.test.d.ts.map +1 -0
- package/dist/config/entities/targets/detail.d.ts +3 -0
- package/dist/config/entities/targets/detail.d.ts.map +1 -0
- package/dist/config/entities/targets/list.d.ts +3 -0
- package/dist/config/entities/targets/list.d.ts.map +1 -0
- package/dist/config/entities/targets/shared.d.ts +19 -0
- package/dist/config/entities/targets/shared.d.ts.map +1 -0
- package/dist/config/entities/targets/target.d.ts +3 -0
- package/dist/config/entities/targets/target.d.ts.map +1 -0
- package/dist/config/entities/trigger/trigger-run-action-form.d.ts.map +1 -1
- package/dist/config/phases/deploy.d.ts.map +1 -1
- package/dist/hooks/use-schema-middleware/__tests__/use-schema-middleware.test.d.ts +2 -0
- package/dist/hooks/use-schema-middleware/__tests__/use-schema-middleware.test.d.ts.map +1 -0
- package/dist/hooks/use-schema-middleware/apply-middleware.d.ts +4 -0
- package/dist/hooks/use-schema-middleware/apply-middleware.d.ts.map +1 -0
- package/dist/hooks/use-schema-middleware/apply-scaffold.d.ts +3 -0
- package/dist/hooks/use-schema-middleware/apply-scaffold.d.ts.map +1 -0
- package/dist/hooks/use-schema-middleware/types.d.ts +42 -0
- package/dist/hooks/use-schema-middleware/types.d.ts.map +1 -0
- package/dist/hooks/use-schema-middleware/use-schema-middleware.d.ts +5 -0
- package/dist/hooks/use-schema-middleware/use-schema-middleware.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/michelangelo-core.cjs +65 -65
- package/dist/michelangelo-core.js +18761 -18418
- package/dist/providers/icon-provider/icon-provider.d.ts +3 -0
- package/dist/providers/icon-provider/icon-provider.d.ts.map +1 -1
- package/dist/providers/user-provider/user-provider.d.ts +3 -0
- package/dist/providers/user-provider/user-provider.d.ts.map +1 -1
- package/dist/test/wrappers/get-router-wrapper.d.ts +16 -9
- package/dist/test/wrappers/get-router-wrapper.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/object-utils.d.ts +12 -0
- package/dist/utils/object-utils.d.ts.map +1 -1
- package/dist/utils/string-utils.d.ts +3 -0
- package/dist/utils/string-utils.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-scrolling-navbar-shadow.test.d.ts","sourceRoot":"","sources":["../../../../components/breadcrumb-bar/__tests__/use-scrolling-navbar-shadow.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb-bar.d.ts","sourceRoot":"","sources":["../../../components/breadcrumb-bar/breadcrumb-bar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"breadcrumb-bar.d.ts","sourceRoot":"","sources":["../../../components/breadcrumb-bar/breadcrumb-bar.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,aAAa,GACd,EAAE;IACD,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC;CAC3B,2CAqCA"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const PlainLink: import("styletron-react").StyletronComponent<import("react").ForwardRefExoticComponent<import("react-router-dom-v5-compat").LinkProps & import("react").RefAttributes<HTMLAnchorElement>>, {}>;
|
|
2
2
|
export declare const TopLevelNavLink: import("styletron-react").StyletronComponent<import("react").ForwardRefExoticComponent<import("react-router-dom-v5-compat").LinkProps & import("react").RefAttributes<HTMLAnchorElement>>, {}>;
|
|
3
|
-
export declare const BreadcrumbContainer: import("styletron-react").StyletronComponent<"div", {
|
|
3
|
+
export declare const BreadcrumbContainer: import("styletron-react").StyletronComponent<"div", {
|
|
4
|
+
$scrolled: boolean;
|
|
5
|
+
}>;
|
|
4
6
|
export declare const PhaseHeader: import("styletron-react").StyletronComponent<"li", {
|
|
5
7
|
$disabled?: boolean;
|
|
6
8
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled-components.d.ts","sourceRoot":"","sources":["../../../components/breadcrumb-bar/styled-components.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,gMAKnB,CAAC;AAEJ,eAAO,MAAM,eAAe,gMAYzB,CAAC;AAEJ,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"styled-components.d.ts","sourceRoot":"","sources":["../../../components/breadcrumb-bar/styled-components.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,gMAKnB,CAAC;AAEJ,eAAO,MAAM,eAAe,gMAYzB,CAAC;AAEJ,eAAO,MAAM,mBAAmB;eAA8B,OAAO;EAgBpE,CAAC;AAEF,eAAO,MAAM,WAAW;gBAA8B,OAAO;EAe3D,CAAC;AAEH,eAAO,MAAM,UAAU;gBAA8B,OAAO;EAYzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-scrolling-navbar-shadow.d.ts","sourceRoot":"","sources":["../../../components/breadcrumb-bar/use-scrolling-navbar-shadow.ts"],"names":[],"mappings":"AAEA,wBAAgB,wBAAwB;;EAgBvC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { DateFormat } from './types';
|
|
2
|
-
type UseDateFormattersReturn = {
|
|
3
|
-
format: (value: string) => Date | null;
|
|
4
|
-
parse: (value: Date | null) => string;
|
|
5
|
-
};
|
|
6
2
|
/**
|
|
7
3
|
* Returns `format` and `parse` functions that translate between date formats
|
|
8
4
|
* (epoch seconds string or ISO string) and the Date objects expected by BaseUI's DatePicker.
|
|
@@ -15,6 +11,8 @@ type UseDateFormattersReturn = {
|
|
|
15
11
|
*
|
|
16
12
|
* @param dateFormat - Controls the persisted date format (epoch or ISO).
|
|
17
13
|
*/
|
|
18
|
-
export declare function useDateFormatters(dateFormat?: DateFormat):
|
|
19
|
-
|
|
14
|
+
export declare function useDateFormatters(dateFormat?: DateFormat): {
|
|
15
|
+
format: (value: string) => Date | null;
|
|
16
|
+
parse: (value: Date | null) => string;
|
|
17
|
+
};
|
|
20
18
|
//# sourceMappingURL=use-date-formatters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-date-formatters.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/date/use-date-formatters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,
|
|
1
|
+
{"version":3,"file":"use-date-formatters.d.ts","sourceRoot":"","sources":["../../../../../components/form/fields/date/use-date-formatters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,GAAE,UAAuC,GAAG;IACtF,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;IACvC,KAAK,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,KAAK,MAAM,CAAC;CACvC,CAeA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-group.d.ts","sourceRoot":"","sources":["../../../../../components/form/layout/form-group/form-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"form-group.d.ts","sourceRoot":"","sources":["../../../../../components/form/layout/form-group/form-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiF9C,CAAC"}
|
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { BoxOverrides } from '../../../../components/box/types';
|
|
3
|
-
|
|
3
|
+
interface FormGroupBaseProps {
|
|
4
4
|
title?: string;
|
|
5
5
|
/** Text displayed below title, **Markdown supported** */
|
|
6
6
|
description?: string;
|
|
7
7
|
/** Help tooltip text, displayed next to title. **Markdown supported** */
|
|
8
8
|
tooltip?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Controls whether the group can be collapsed to hide its children
|
|
11
|
-
*
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
collapsible?: boolean;
|
|
15
9
|
/** Additional content for the header (e.g., action buttons) */
|
|
16
10
|
endEnhancer?: ReactNode;
|
|
17
11
|
/** BaseUI overrides for the underlying Box container */
|
|
18
12
|
overrides?: BoxOverrides;
|
|
19
13
|
children: ReactNode;
|
|
20
14
|
}
|
|
15
|
+
interface StaticFormGroupProps extends FormGroupBaseProps {
|
|
16
|
+
collapsible?: false;
|
|
17
|
+
expanded?: never;
|
|
18
|
+
onToggle?: never;
|
|
19
|
+
}
|
|
20
|
+
interface CollapsibleFormGroupProps extends FormGroupBaseProps {
|
|
21
|
+
/** Enables collapsing the group to hide its children */
|
|
22
|
+
collapsible: true;
|
|
23
|
+
/** Controlled expanded state — requires `onToggle` to respond to user interaction */
|
|
24
|
+
expanded?: boolean;
|
|
25
|
+
/** Called when the collapsible group is toggled */
|
|
26
|
+
onToggle?: (expanded: boolean) => void;
|
|
27
|
+
}
|
|
28
|
+
export type FormGroupProps = StaticFormGroupProps | CollapsibleFormGroupProps;
|
|
29
|
+
export {};
|
|
21
30
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/layout/form-group/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/layout/form-group/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,+DAA+D;IAC/D,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,wDAAwD;IACxD,SAAS,CAAC,EAAE,YAAY,CAAC;IAEzB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,UAAU,oBAAqB,SAAQ,kBAAkB;IACvD,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED,UAAU,yBAA0B,SAAQ,kBAAkB;IAC5D,wDAAwD;IACxD,WAAW,EAAE,IAAI,CAAC;IAElB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAED,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment-page.test.d.ts","sourceRoot":"","sources":["../../../../../config/entities/deployment/__tests__/deployment-page.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment.d.ts","sourceRoot":"","sources":["../../../../config/entities/deployment/deployment.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEzE,eAAO,MAAM,wBAAwB,EAAE,iBAMtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detail.d.ts","sourceRoot":"","sources":["../../../../config/entities/deployment/detail.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,eAAO,MAAM,wBAAwB,EAAE,gBAqEtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../config/entities/deployment/list.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AA8CnE,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAAC,MAAM,CAKzD,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Cell } from '../../../components/cell/types';
|
|
2
|
+
export declare const DEPLOYMENT_CONDITION_STATUS: {
|
|
3
|
+
readonly UNKNOWN: 0;
|
|
4
|
+
readonly TRUE: 1;
|
|
5
|
+
readonly FALSE: 2;
|
|
6
|
+
};
|
|
7
|
+
export declare const DEPLOYMENT_STAGE: {
|
|
8
|
+
readonly INVALID: 0;
|
|
9
|
+
readonly VALIDATION: 1;
|
|
10
|
+
readonly PLACEMENT: 2;
|
|
11
|
+
readonly RESOURCE_ACQUISITION: 3;
|
|
12
|
+
readonly ROLLOUT_COMPLETE: 4;
|
|
13
|
+
readonly ROLLOUT_FAILED: 5;
|
|
14
|
+
readonly ROLLBACK_IN_PROGRESS: 6;
|
|
15
|
+
readonly ROLLBACK_COMPLETE: 7;
|
|
16
|
+
readonly ROLLBACK_FAILED: 8;
|
|
17
|
+
readonly CLEAN_UP_IN_PROGRESS: 9;
|
|
18
|
+
readonly CLEAN_UP_COMPLETE: 10;
|
|
19
|
+
readonly CLEAN_UP_FAILED: 11;
|
|
20
|
+
};
|
|
21
|
+
export declare const DEPLOYMENT_STATE: {
|
|
22
|
+
readonly INVALID: 0;
|
|
23
|
+
readonly INITIALIZING: 1;
|
|
24
|
+
readonly HEALTHY: 2;
|
|
25
|
+
readonly UNHEALTHY: 3;
|
|
26
|
+
readonly EMPTY: 4;
|
|
27
|
+
};
|
|
28
|
+
export declare const DEPLOYMENT_STAGE_CELL: Cell;
|
|
29
|
+
export declare const DEPLOYMENT_STATE_CELL: Cell;
|
|
30
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../config/entities/deployment/shared.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAExD,eAAO,MAAM,2BAA2B;;;;CAI9B,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;CAanB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAEX,eAAO,MAAM,qBAAqB,EAAE,IAkBnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,IAkBnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"target-page.test.d.ts","sourceRoot":"","sources":["../../../../../config/entities/targets/__tests__/target-page.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detail.d.ts","sourceRoot":"","sources":["../../../../config/entities/targets/detail.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAErE,eAAO,MAAM,oBAAoB,EAAE,gBAwElC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../config/entities/targets/list.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AA2BnE,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,MAAM,CAKrD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Cell } from '../../../components/cell/types';
|
|
2
|
+
export declare const INFERENCE_SERVER_STATE: {
|
|
3
|
+
readonly INVALID: 0;
|
|
4
|
+
readonly INITIALIZED: 1;
|
|
5
|
+
readonly CREATE_PENDING: 2;
|
|
6
|
+
readonly SERVING: 3;
|
|
7
|
+
readonly FAILED: 4;
|
|
8
|
+
readonly DELETE_PENDING: 5;
|
|
9
|
+
readonly CREATING: 6;
|
|
10
|
+
readonly DELETING: 7;
|
|
11
|
+
readonly DELETED: 8;
|
|
12
|
+
};
|
|
13
|
+
export declare const CONDITION_STATUS: {
|
|
14
|
+
readonly UNKNOWN: 0;
|
|
15
|
+
readonly TRUE: 1;
|
|
16
|
+
readonly FALSE: 2;
|
|
17
|
+
};
|
|
18
|
+
export declare const INFERENCE_SERVER_STATE_CELL: Cell;
|
|
19
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../config/entities/targets/shared.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAExD,eAAO,MAAM,sBAAsB;;;;;;;;;;CAUzB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX,eAAO,MAAM,2BAA2B,EAAE,IA0BzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../config/entities/targets/target.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEzE,eAAO,MAAM,oBAAoB,EAAE,iBAMlC,CAAC"}
|
|
@@ -1 +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;
|
|
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;AA8D1C,eAAO,MAAM,kBAAkB,UAAW,oBAAoB,CAAC,UAAU,CAAC,4CAEzE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../config/phases/deploy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../config/phases/deploy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAEnE,eAAO,MAAM,YAAY,EAAE,WAO1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-schema-middleware.test.d.ts","sourceRoot":"","sources":["../../../../hooks/use-schema-middleware/__tests__/use-schema-middleware.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { StudioParamsBase } from '../../hooks/routing/use-studio-params/types';
|
|
2
|
+
import type { MiddlewareOptions, MiddlewareSchema } from './types';
|
|
3
|
+
export declare function applyMiddleware<T extends object>(record: T, schema: MiddlewareSchema, context?: StudioParamsBase, options?: MiddlewareOptions): T;
|
|
4
|
+
//# sourceMappingURL=apply-middleware.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-middleware.d.ts","sourceRoot":"","sources":["../../../hooks/use-schema-middleware/apply-middleware.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEnE,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAC9C,MAAM,EAAE,CAAC,EACT,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,gBAAgB,EAC1B,OAAO,CAAC,EAAE,iBAAiB,GAC1B,CAAC,CA+BH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply-scaffold.d.ts","sourceRoot":"","sources":["../../../hooks/use-schema-middleware/apply-scaffold.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,gBAAgB,GAAG,CAAC,CASpF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export type MiddlewareOperation = {
|
|
2
|
+
source?: string;
|
|
3
|
+
destination: string;
|
|
4
|
+
/**
|
|
5
|
+
* Value to set when `source` is absent or resolves to nil.
|
|
6
|
+
* Can be a function `({ studio }) => value` to derive the default from routing context.
|
|
7
|
+
*/
|
|
8
|
+
default?: unknown;
|
|
9
|
+
/**
|
|
10
|
+
* Function applied to the source value before writing to `destination`.
|
|
11
|
+
* Use `'unset'` to delete the destination path from the record entirely.
|
|
12
|
+
*/
|
|
13
|
+
transformation?: 'unset' | ((source: unknown) => unknown);
|
|
14
|
+
/**
|
|
15
|
+
* When set, this operation only runs if the record's subType (at `subTypePath`) is one of these values.
|
|
16
|
+
* Requires `subTypePath` on the schema.
|
|
17
|
+
*/
|
|
18
|
+
subTypes?: string[];
|
|
19
|
+
};
|
|
20
|
+
export type MiddlewareSchema = {
|
|
21
|
+
operations?: MiddlewareOperation[];
|
|
22
|
+
/**
|
|
23
|
+
* YAML string merged into the record as defaults before operations run.
|
|
24
|
+
* Existing data values always win over scaffold values.
|
|
25
|
+
*/
|
|
26
|
+
scaffold?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Per-subType YAML scaffolds, keyed by the value at `subTypePath`.
|
|
29
|
+
* Requires `subTypePath`.
|
|
30
|
+
*/
|
|
31
|
+
scaffoldBySubType?: Record<string, string>;
|
|
32
|
+
/** Dot-path into the record used to read the subType for `subTypes` filtering and `scaffoldBySubType`. */
|
|
33
|
+
subTypePath?: string;
|
|
34
|
+
};
|
|
35
|
+
export type MiddlewareOptions = {
|
|
36
|
+
/**
|
|
37
|
+
* When provided, operation `source` paths are read from this object instead of the data record.
|
|
38
|
+
* Results are still written to the data record.
|
|
39
|
+
*/
|
|
40
|
+
sourceFromObject?: object;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../hooks/use-schema-middleware/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,CAAC;IAC1D;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACnC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3C,0GAA0G;IAC1G,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { MiddlewareOptions, MiddlewareSchema } from './types';
|
|
2
|
+
export declare function useSchemaMiddleware(schema?: MiddlewareSchema | null): {
|
|
3
|
+
applyMiddleware: <T extends object>(data: T, options?: MiddlewareOptions) => T;
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=use-schema-middleware.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-schema-middleware.d.ts","sourceRoot":"","sources":["../../../hooks/use-schema-middleware/use-schema-middleware.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEnE,wBAAgB,mBAAmB,CAAC,MAAM,CAAC,EAAE,gBAAgB,GAAG,IAAI;sBAGzC,CAAC,SAAS,MAAM,QAAQ,CAAC,YAAY,iBAAiB,KAAG,CAAC;EAMpF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -121,4 +121,7 @@ export { FormBanner } from './components/form/layout/form-banner/form-banner';
|
|
|
121
121
|
export { FormStep } from './components/form/layout/form-step/form-step';
|
|
122
122
|
export { ArrayFormRow } from './components/form/layout/array-form-row/array-form-row';
|
|
123
123
|
export { ArrayFormGroup } from './components/form/layout/array-form-group/array-form-group';
|
|
124
|
+
export { DetailView } from './components/views/detail-view/detail-view';
|
|
125
|
+
export { DetailViewPages } from './components/views/detail-view/components/detail-view-pages/detail-view-pages';
|
|
126
|
+
export type { DetailViewProps, DetailViewTab, DetailViewPagesProps, } from './components/views/detail-view/types/detail-view-component-types';
|
|
124
127
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3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