@paris-ias/list 1.0.150 → 1.0.152

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@paris-ias/list",
3
3
  "configKey": "list",
4
- "version": "1.0.150",
4
+ "version": "1.0.152",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -27,14 +27,12 @@
27
27
  import {
28
28
  useNuxtApp,
29
29
  onBeforeUnmount,
30
- onMounted,
31
30
  useI18n,
32
31
  useAppConfig,
33
32
  ref,
34
33
  computed,
35
- watch,
36
34
  } from "#imports"
37
- import SEARCH from "../../../graphql/list/search.gql"
35
+ import SEARCH from "@paris-ias/trees/dist/graphql/client/misc/query.search.all.gql"
38
36
  // Component name for linting
39
37
  defineOptions({
40
38
  name: "SearchResults",
@@ -68,7 +66,7 @@ const sortedModules = computed(() => {
68
66
  // Computed property to filter and sort modules based on selected categories
69
67
  const filteredSortedModules = computed(() => {
70
68
  return sortedModules.value.filter((type) =>
71
- selectedCategories.value.includes(type),
69
+ selectedCategories.value.includes(type)
72
70
  )
73
71
  })
74
72
 
@@ -79,7 +77,7 @@ const { data, pending, error, refresh } = await useAsyncQuery(
79
77
  {
80
78
  key: `search-${$rootStore.search}`, // Unique key for caching
81
79
  server: true, // Enable SSR
82
- },
80
+ }
83
81
  )
84
82
  if (error.value) {
85
83
  console.error("GraphQL query error: ", error.value)
@@ -47,12 +47,10 @@
47
47
 
48
48
  <script setup>
49
49
  import { useRootStore } from "../../stores/root"
50
- import { useNuxtApp, useLocalePath, computed } from "#imports"
50
+ import { computed } from "#imports"
51
51
  import { useDisplay } from "vuetify"
52
52
 
53
53
  const { mdAndUp } = useDisplay()
54
- const { $stores } = useNuxtApp()
55
- const localePath = useLocalePath()
56
54
  const rootStore = useRootStore()
57
55
  const props = defineProps({
58
56
  item: {
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "license": "AGPL-3.0-only",
3
3
  "main": "./dist/module.mjs",
4
- "version": "1.0.150",
4
+ "version": "1.0.152",
5
5
  "name": "@paris-ias/list",
6
6
  "repository": {
7
7
  "url": "git+https://github.com/IEA-Paris/list.git",
8
8
  "type": "git"
9
9
  },
10
10
  "dependencies": {
11
- "@paris-ias/trees": "^2.0.5"
11
+ "@paris-ias/trees": "^2.0.6"
12
12
  },
13
13
  "description": "Paris IAS List Module",
14
14
  "peerDependencies": {