@adminforth/agent 1.14.0 → 1.14.1

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/build.log CHANGED
@@ -31,5 +31,5 @@ custom/skills/fetch_data/SKILL.md
31
31
  custom/skills/mutate_data/
32
32
  custom/skills/mutate_data/SKILL.md
33
33
 
34
- sent 180,294 bytes received 436 bytes 361,460.00 bytes/sec
35
- total size is 178,505 speedup is 0.99
34
+ sent 180,483 bytes received 436 bytes 361,838.00 bytes/sec
35
+ total size is 178,690 speedup is 0.99
@@ -57,10 +57,12 @@
57
57
  import { computed, defineAsyncComponent, onMounted, ref, watch } from 'vue';
58
58
  import { useRouter } from 'vue-router';
59
59
  import { IconAngleDownOutline } from '@iconify-prerendered/vue-flowbite';
60
-
60
+ import { useAgentStore } from './composables/useAgentStore';
61
61
  const IncremarkContent = defineAsyncComponent(() => import('@incremark/vue').then(module => module.IncremarkContent))
62
62
  const ShikiCodeBlock = defineAsyncComponent(() => import('./incremark_code_renderers/IncremarkShikiCodeBlock.vue'))
63
63
 
64
+ const agentStore = useAgentStore();
65
+
64
66
  const incremarkComponents = {
65
67
  code: ShikiCodeBlock,
66
68
  };
@@ -132,6 +134,9 @@
132
134
 
133
135
  const internalRoute = resolveInternalRoute(href);
134
136
  if (internalRoute !== null) {
137
+ if (agentStore.isFullScreen) {
138
+ agentStore.setFullScreen(false);
139
+ }
135
140
  void router.push(internalRoute);
136
141
  return;
137
142
  }
@@ -57,10 +57,12 @@
57
57
  import { computed, defineAsyncComponent, onMounted, ref, watch } from 'vue';
58
58
  import { useRouter } from 'vue-router';
59
59
  import { IconAngleDownOutline } from '@iconify-prerendered/vue-flowbite';
60
-
60
+ import { useAgentStore } from './composables/useAgentStore';
61
61
  const IncremarkContent = defineAsyncComponent(() => import('@incremark/vue').then(module => module.IncremarkContent))
62
62
  const ShikiCodeBlock = defineAsyncComponent(() => import('./incremark_code_renderers/IncremarkShikiCodeBlock.vue'))
63
63
 
64
+ const agentStore = useAgentStore();
65
+
64
66
  const incremarkComponents = {
65
67
  code: ShikiCodeBlock,
66
68
  };
@@ -132,6 +134,9 @@
132
134
 
133
135
  const internalRoute = resolveInternalRoute(href);
134
136
  if (internalRoute !== null) {
137
+ if (agentStore.isFullScreen) {
138
+ agentStore.setFullScreen(false);
139
+ }
135
140
  void router.push(internalRoute);
136
141
  return;
137
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/agent",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",