@michelangelo-ai/core 0.3.0 → 0.4.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/actions-buttons/action-button.d.ts +13 -0
- package/dist/components/actions/actions-buttons/action-button.d.ts.map +1 -0
- package/dist/components/actions/actions-buttons/actions-buttons.d.ts.map +1 -1
- package/dist/components/actions/confirm-dispatcher.d.ts.map +1 -1
- package/dist/components/actions/interpolatable-actions-popover.d.ts.map +1 -1
- package/dist/components/actions/types.d.ts +7 -6
- package/dist/components/actions/types.d.ts.map +1 -1
- package/dist/components/actions/use-success-operations.d.ts.map +1 -1
- package/dist/components/cell/components/tooltip/cell-tooltip-hoc.d.ts +1 -1
- package/dist/components/cell/constants.d.ts.map +1 -1
- package/dist/components/form/components/form-error-banner/use-form-error-list.d.ts.map +1 -1
- package/dist/components/form/fields/select/select-field.d.ts.map +1 -1
- package/dist/components/form/fields/select/serialize-key.d.ts.map +1 -1
- package/dist/components/form/types.d.ts +13 -2
- package/dist/components/form/types.d.ts.map +1 -1
- package/dist/components/navigation-bar/__tests__/navigation-bar.test.d.ts +2 -0
- package/dist/components/navigation-bar/__tests__/navigation-bar.test.d.ts.map +1 -0
- package/dist/components/navigation-bar/navigation-bar.d.ts +7 -0
- package/dist/components/navigation-bar/navigation-bar.d.ts.map +1 -0
- package/dist/components/navigation-bar/types.d.ts +12 -0
- package/dist/components/navigation-bar/types.d.ts.map +1 -0
- package/dist/components/table/components/filter/categorical/categorical-filter.d.ts.map +1 -1
- package/dist/components/table/components/filter/categorical/use-filter-display-mapping.d.ts.map +1 -1
- package/dist/components/table/components/filter/datetime/datetime-filter.d.ts.map +1 -1
- package/dist/components/table/components/filter/get-column-filter.d.ts.map +1 -1
- package/dist/components/table/components/table-body/row-transformer.d.ts.map +1 -1
- package/dist/components/table/components/table-cell/column-tooltip-hoc.d.ts +1 -1
- package/dist/components/table/components/table-error-state/table-error-state.d.ts.map +1 -1
- package/dist/components/table/components/table-header/components/table-column-configuration-button/utils.d.ts.map +1 -1
- package/dist/components/table/components/with-sticky-sides/with-sticky-sides.d.ts.map +1 -1
- package/dist/components/table/hooks/use-column-transformer.d.ts.map +1 -1
- package/dist/components/table/plugins/selection/table-selection-provider.d.ts.map +1 -1
- package/dist/components/table/plugins/state-persistence/use-persisted-table-state.d.ts.map +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/types/column-types.d.ts.map +1 -1
- package/dist/components/table/utils/column-resolution-utils.d.ts.map +1 -1
- package/dist/components/table/utils/compose-table-state.d.ts.map +1 -1
- package/dist/components/table/utils/transform-columns.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/components/detail-view-page-renderer/detail-view-page-renderer.d.ts.map +1 -1
- package/dist/components/views/detail-view/types/detail-view-schema-types.d.ts +1 -3
- package/dist/components/views/detail-view/types/detail-view-schema-types.d.ts.map +1 -1
- package/dist/components/views/execution/components/task-details/task-body.d.ts.map +1 -1
- package/dist/components/views/execution/components/task-details/task-header.d.ts.map +1 -1
- package/dist/components/views/execution/utils/build-task-list.d.ts.map +1 -1
- package/dist/components/views/utils/table-view-adapter.d.ts.map +1 -1
- package/dist/config/entities/deployment/list.d.ts.map +1 -1
- package/dist/config/entities/pipeline/create-pipeline-run-form.d.ts.map +1 -1
- package/dist/config/entities/run/list.d.ts.map +1 -1
- package/dist/config/entities/run/types.d.ts +2 -0
- package/dist/config/entities/run/types.d.ts.map +1 -1
- package/dist/config/entities/targets/detail.d.ts.map +1 -1
- package/dist/config/entities/targets/list.d.ts.map +1 -1
- package/dist/config/entities/trigger/trigger.d.ts.map +1 -1
- package/dist/config/entities/trigger/types.d.ts +1 -1
- package/dist/hooks/routing/use-studio-params/use-studio-params.d.ts.map +1 -1
- package/dist/hooks/routing/use-url-query-string.d.ts +3 -3
- package/dist/hooks/routing/use-url-query-string.d.ts.map +1 -1
- package/dist/hooks/use-schema-middleware/apply-middleware.d.ts.map +1 -1
- package/dist/hooks/use-schema-middleware/apply-scaffold.d.ts.map +1 -1
- package/dist/hooks/use-schema-middleware/types.d.ts +4 -1
- package/dist/hooks/use-schema-middleware/types.d.ts.map +1 -1
- package/dist/hooks/use-scroll-ratio.d.ts +6 -0
- package/dist/hooks/use-scroll-ratio.d.ts.map +1 -0
- package/dist/hooks/use-studio-mutation/__tests__/use-studio-mutation.test.d.ts.map +1 -0
- package/dist/hooks/use-studio-mutation/types.d.ts +13 -0
- package/dist/hooks/use-studio-mutation/types.d.ts.map +1 -0
- package/dist/hooks/use-studio-mutation/use-studio-mutation.d.ts +4 -0
- package/dist/hooks/use-studio-mutation/use-studio-mutation.d.ts.map +1 -0
- package/dist/hooks/use-studio-query.d.ts.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/interpolation/base.d.ts.map +1 -1
- package/dist/interpolation/function-interpolation.d.ts.map +1 -1
- package/dist/interpolation/interpolate.d.ts.map +1 -1
- package/dist/interpolation/use-interpolation-resolver.d.ts.map +1 -1
- package/dist/interpolation/utils/clear-unresolved-interpolations.d.ts.map +1 -1
- package/dist/michelangelo-core.cjs +301 -301
- package/dist/michelangelo-core.js +89309 -89183
- package/dist/providers/error-provider/normalize-universal-error.d.ts.map +1 -1
- package/dist/router/entity-detail-route.d.ts.map +1 -1
- package/dist/test/utils/mock-timezone.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/query-types.d.ts +6 -0
- package/dist/types/query-types.d.ts.map +1 -1
- package/dist/utils/local-storage-utils.d.ts.map +1 -1
- package/dist/utils/object-utils.d.ts.map +1 -1
- package/dist/utils/proto/struct-utils.d.ts.map +1 -1
- package/dist/utils/string-utils.d.ts +3 -3
- package/dist/utils/time-utils.d.ts +3 -3
- package/package.json +1 -1
- package/dist/hooks/__tests__/use-studio-mutation.test.d.ts.map +0 -1
- package/dist/hooks/use-scroll.d.ts +0 -6
- package/dist/hooks/use-scroll.d.ts.map +0 -1
- package/dist/hooks/use-studio-mutation.d.ts +0 -5
- package/dist/hooks/use-studio-mutation.d.ts.map +0 -1
- /package/dist/hooks/{__tests__ → use-studio-mutation/__tests__}/use-studio-mutation.test.d.ts +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { SuccessOperation } from '../components/actions/types';
|
|
2
|
+
import type { MiddlewareSchema } from '../hooks/use-schema-middleware/types';
|
|
1
3
|
import type { ApplicationError } from '../types/error-types';
|
|
2
4
|
/**
|
|
3
5
|
* Configuration for a query that can be used by {@link _useStudioQuery}
|
|
@@ -27,6 +29,10 @@ export interface MutationConfig {
|
|
|
27
29
|
mutationName: string;
|
|
28
30
|
/** Options to pass to the mutation, e.g. 'onSuccess', 'onError' */
|
|
29
31
|
clientOptions?: MutationOptions;
|
|
32
|
+
/** Side-effects to run after the mutation succeeds (in order). */
|
|
33
|
+
successOperations?: SuccessOperation[];
|
|
34
|
+
/** Schema-driven transformations applied to variables before the request is sent. */
|
|
35
|
+
middleware?: MiddlewareSchema;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Options that can be passed to mutation hooks.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-types.d.ts","sourceRoot":"","sources":["../../types/query-types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,qEAAqE;IACrE,QAAQ,EAAE,MAAM,CAAC;IAEjB,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;IAEhB,+DAA+D;IAC/D,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAExC,mDAAmD;IACnD,aAAa,CAAC,EAAE,YAAY,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,0CAA0C;IAC1C,OAAO,CAAC,E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AgB,KAAK,IAAI,CAAC;CAC7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-storage-utils.d.ts","sourceRoot":"","sources":["../../utils/local-storage-utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAMrE;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"local-storage-utils.d.ts","sourceRoot":"","sources":["../../utils/local-storage-utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAMrE;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,GAAG,CAAC,CAY1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object-utils.d.ts","sourceRoot":"","sources":["../../utils/object-utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,MAAM,SAAK,GACV,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"object-utils.d.ts","sourceRoot":"","sources":["../../utils/object-utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,MAAM,SAAK,GACV,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAwBzB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,EAC9B,YAAY,CAAC,EAAE,CAAC,GACf,CAAC,GAAG,SAAS,CAUf;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAatE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"struct-utils.d.ts","sourceRoot":"","sources":["../../../utils/proto/struct-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"struct-utils.d.ts","sourceRoot":"","sources":["../../../utils/proto/struct-utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAyB,MAAM,EAAE,MAAM,SAAS,CAAC;AAE5E;;GAEG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,MAAM,CAQ1D;AA6BD;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,aAAa,CAgD3D"}
|
|
@@ -2,17 +2,17 @@ export declare const capitalizeFirstLetter: (str: string) => string;
|
|
|
2
2
|
/**
|
|
3
3
|
* Checks for absolute URLs, including localhost values without a public TLD.
|
|
4
4
|
*/
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const isAbsoluteUrl: (value: string) => boolean;
|
|
6
6
|
/**
|
|
7
7
|
* Checks whether a value is a navigable URL — either an absolute URL or a
|
|
8
8
|
* root-relative path. Use this to decide whether to render a value as a link.
|
|
9
9
|
*
|
|
10
|
-
* Distinct from {@link
|
|
10
|
+
* Distinct from {@link isAbsoluteUrl}, which rejects relative paths and is
|
|
11
11
|
* appropriate for validation (e.g., requiring a fully-qualified URL in a form
|
|
12
12
|
* field). This function is appropriate for display logic where internal
|
|
13
13
|
* navigation paths like `/{namespace}/models/foo` are valid link targets.
|
|
14
14
|
*/
|
|
15
|
-
export declare const
|
|
15
|
+
export declare const isNavigableUrl: (value: string) => boolean;
|
|
16
16
|
/**
|
|
17
17
|
* @description
|
|
18
18
|
* Transforms a string value into a sentence case format. Special handling for
|
|
@@ -28,12 +28,12 @@ export declare function getEpochSecondsFromDate(date: Date): number;
|
|
|
28
28
|
* @returns Object with compact date and time strings, or null if invalid
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
|
-
*
|
|
31
|
+
* parseIsoString("2024-01-01T12:00:00.000Z")
|
|
32
32
|
* // { date: "2024-01-01", time: "12:00:00" }
|
|
33
33
|
*
|
|
34
|
-
*
|
|
34
|
+
* parseIsoString("invalid") // null
|
|
35
35
|
*/
|
|
36
|
-
export declare function
|
|
36
|
+
export declare function parseIsoString(isoString: string): {
|
|
37
37
|
date: string;
|
|
38
38
|
time: string;
|
|
39
39
|
} | null;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-studio-mutation.test.d.ts","sourceRoot":"","sources":["../../../hooks/__tests__/use-studio-mutation.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-scroll.d.ts","sourceRoot":"","sources":["../../hooks/use-scroll.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC9C,uBAAuB,EAAE,MAAM,IAAI,CAAC;CACrC,CA+BA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { UseMutationResult } from '@tanstack/react-query';
|
|
2
|
-
import type { ApplicationError } from '../types/error-types';
|
|
3
|
-
import type { MutationConfig } from '../types/query-types';
|
|
4
|
-
export declare const useStudioMutation: <TData, TVariables extends Record<string, unknown>>(config: MutationConfig | null) => UseMutationResult<TData, ApplicationError, TVariables>;
|
|
5
|
-
//# sourceMappingURL=use-studio-mutation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-studio-mutation.d.ts","sourceRoot":"","sources":["../../hooks/use-studio-mutation.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,eAAO,MAAM,iBAAiB,GAAI,KAAK,EAAE,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,UACzE,cAAc,GAAG,IAAI,KAC5B,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,EAAE,UAAU,CAqBvD,CAAC"}
|
/package/dist/hooks/{__tests__ → use-studio-mutation/__tests__}/use-studio-mutation.test.d.ts
RENAMED
|
File without changes
|