@prefecthq/prefect-ui-library 2.4.21 → 2.4.23

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.
@@ -1,13 +1,12 @@
1
1
  import { SavedFlowRunsSearch } from '../compositions/useSavedFlowRunsSearches';
2
- import { SavedSearch } from '../models/SavedSearch';
3
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
3
  savedSearch: SavedFlowRunsSearch | null;
5
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- "update:selectedSearchOption": (value: SavedSearch | null) => void;
5
+ "update:selectedSearchOption": (value: SavedFlowRunsSearch | null) => void;
7
6
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
7
  savedSearch: SavedFlowRunsSearch | null;
9
8
  }>>> & {
10
- "onUpdate:selectedSearchOption"?: ((value: SavedSearch | null) => any) | undefined;
9
+ "onUpdate:selectedSearchOption"?: ((value: SavedFlowRunsSearch | null) => any) | undefined;
11
10
  }, {}, {}>;
12
11
  export default _default;
13
12
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -30,7 +30,7 @@ export type DateRangeAroundResponse = {
30
30
  };
31
31
  export declare function isDateRangeAroundResponse(value: unknown): value is DateRangeAroundResponse;
32
32
  export type DateRangeResponse = DateRangeSpanResponse | DateRangeRangeResponse | DateRangePeriodResponse | DateRangeAroundResponse;
33
- export declare function isDateRangeResponse(value: unknown): value is DateRangeRangeResponse;
33
+ export declare function isDateRangeResponse(value: unknown): value is DateRangeResponse;
34
34
  export type FilterResponseValue = string | string[] | DateRangeResponse;
35
35
  export interface SavedSearchFilterResponse {
36
36
  object?: string;
@@ -9,5 +9,4 @@ export declare class SchemaPropertyAny extends SchemaPropertyService {
9
9
  private referenceResponse;
10
10
  private referenceRequest;
11
11
  private getDefaultValueForFirstDefinition;
12
- private isDefaultValueForReference;
13
12
  }
@@ -58,5 +58,4 @@ export declare abstract class SchemaPropertyService {
58
58
  property: SchemaProperty & Require<SchemaProperty, T>;
59
59
  };
60
60
  protected getSelectOptions(): SelectOption[];
61
- protected isDefaultValue(value: SchemaValue): boolean;
62
61
  }
@@ -29,3 +29,4 @@ export * from './timeIntervals';
29
29
  export * from './timezone';
30
30
  export * from './validation';
31
31
  export * from './variables';
32
+ export * from './tuples';
@@ -0,0 +1,12 @@
1
+ export type TupleType<T extends unknown[]> = {
2
+ values: Readonly<T>;
3
+ isValue: (value: unknown) => value is T[number];
4
+ };
5
+ /**
6
+ * Creates a tuple with the provided values.
7
+ *
8
+ * @template T - The type of the elements in the tuple.
9
+ * @param {T} values - The values to be included in the tuple.
10
+ * @returns {TupleType<T>} An object representing the tuple, with a `values` property containing the tuple values and an `isValue` method to check if a value is part of the tuple.
11
+ */
12
+ export declare function createTuple<const T extends unknown[]>(values: T): TupleType<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefecthq/prefect-ui-library",
3
- "version": "2.4.21",
3
+ "version": "2.4.23",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -58,7 +58,7 @@
58
58
  "vite": "5.0.10",
59
59
  "vite-svg-loader": "^5.1.0",
60
60
  "vitest": "^1.0.4",
61
- "vue-tsc": "1.8.25"
61
+ "vue-tsc": "1.8.27"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "@prefecthq/prefect-design": "^2.2.9",