@directus/composables 9.25.2 → 9.26.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.
@@ -1,5 +1,5 @@
1
1
  import type { AppCollection, Field } from '@directus/types';
2
- import { ComputedRef, Ref } from 'vue';
2
+ import type { ComputedRef, Ref } from 'vue';
3
3
  export type UsableCollection = {
4
4
  info: ComputedRef<AppCollection | null>;
5
5
  fields: ComputedRef<Field[]>;
@@ -1,4 +1,4 @@
1
- import { ComputedRef, Ref } from 'vue';
1
+ import type { ComputedRef, Ref } from 'vue';
2
2
  export type UsableCustomSelection = {
3
3
  otherValue: Ref<string | null>;
4
4
  usesOtherValue: ComputedRef<boolean>;
@@ -1,4 +1,4 @@
1
- import { Ref } from 'vue';
1
+ import type { Ref } from 'vue';
2
2
  declare global {
3
3
  interface Window {
4
4
  ResizeObserver: any;
@@ -1,5 +1,5 @@
1
1
  import type { Field } from '@directus/types';
2
- import { Ref, ComputedRef } from 'vue';
2
+ import type { ComputedRef, Ref } from 'vue';
3
3
  export declare function useFilterFields<T extends string>(fields: Ref<Field[]>, filters: Record<T, (field: Field) => boolean>): {
4
4
  fieldGroups: ComputedRef<Record<Extract<T, string>, Field[]>>;
5
5
  };
@@ -1,4 +1,4 @@
1
- import { Ref } from 'vue';
1
+ import type { Ref } from 'vue';
2
2
  export type GroupableInstance = {
3
3
  active: Ref<boolean>;
4
4
  value: string | number | undefined;
@@ -1,5 +1,5 @@
1
1
  import type { Item, Query } from '@directus/types';
2
- import { ComputedRef, Ref, WritableComputedRef } from 'vue';
2
+ import type { ComputedRef, Ref, WritableComputedRef } from 'vue';
3
3
  export type ManualSortData = {
4
4
  item: string | number;
5
5
  to: string | number;
@@ -1,4 +1,4 @@
1
- import { Component, ComputedRef, Ref } from 'vue';
1
+ import type { Component, ComputedRef, Ref } from 'vue';
2
2
  export declare function useLayout<Options = any, Query = any>(layoutId: Ref<string | null>): {
3
3
  layoutWrapper: ComputedRef<Component>;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ComputedRef } from 'vue';
1
+ import type { ComputedRef } from 'vue';
2
2
  export declare const sizeProps: {
3
3
  xSmall: {
4
4
  type: BooleanConstructor;
@@ -1,2 +1,2 @@
1
- import { Ref } from 'vue';
1
+ import type { Ref } from 'vue';
2
2
  export declare function useSync<T, K extends keyof T & string, E extends (event: `update:${K}`, ...args: any[]) => void>(props: T, key: K, emit: E): Ref<T[K]>;
@@ -1,5 +1,5 @@
1
- import type { AxiosInstance } from 'axios';
2
1
  import type { AppExtensionConfigs, RefRecord } from '@directus/types';
2
+ import type { AxiosInstance } from 'axios';
3
3
  export declare function useStores(): Record<string, any>;
4
4
  export declare function useApi(): AxiosInstance;
5
5
  export declare function useExtensions(): RefRecord<AppExtensionConfigs>;
@@ -1,5 +1,5 @@
1
- import { inject } from 'vue';
2
1
  import { API_INJECT, EXTENSIONS_INJECT, STORES_INJECT } from '@directus/constants';
2
+ import { inject } from 'vue';
3
3
  export function useStores() {
4
4
  const stores = inject(STORES_INJECT);
5
5
  if (!stores)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@directus/composables",
3
- "version": "9.25.2",
3
+ "version": "9.26.0",
4
4
  "type": "module",
5
5
  "description": "Shared Vue composables for Directus use",
6
6
  "repository": {
@@ -24,21 +24,21 @@
24
24
  "access": "public"
25
25
  },
26
26
  "devDependencies": {
27
- "@directus/tsconfig": "0.0.6",
27
+ "@directus/tsconfig": "0.0.7",
28
28
  "@types/lodash-es": "4.17.7",
29
- "@vitest/coverage-c8": "0.29.3",
30
- "@vue/test-utils": "2.3.1",
31
- "axios": "1.3.4",
32
- "typescript": "4.9.5",
33
- "vitest": "0.29.3",
34
- "@directus/types": "9.25.2"
29
+ "@vitest/coverage-c8": "0.30.1",
30
+ "@vue/test-utils": "2.3.2",
31
+ "axios": "1.3.6",
32
+ "typescript": "5.0.4",
33
+ "vitest": "0.30.1",
34
+ "@directus/types": "9.26.0"
35
35
  },
36
36
  "dependencies": {
37
37
  "lodash-es": "4.17.21",
38
38
  "nanoid": "4.0.2",
39
39
  "vue": "3.2.47",
40
- "@directus/constants": "9.25.2",
41
- "@directus/utils": "9.25.2"
40
+ "@directus/constants": "9.26.0",
41
+ "@directus/utils": "9.26.0"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsc --build",