@mirodan/ai-insight 0.1.1 → 0.1.3

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.
@@ -8,7 +8,7 @@ interface Props {
8
8
  position?: 'top' | 'bottom'
9
9
  }
10
10
 
11
- withDefaults(defineProps<Props>(), { position: 'top' })
11
+ withDefaults(defineProps<Props>(), { title: '', prompt: '', position: 'top' })
12
12
  const dialogOpen = ref(false)
13
13
  </script>
14
14
  <template>
@@ -11,7 +11,7 @@ interface Props {
11
11
  locale?: string
12
12
  }
13
13
 
14
- const props = withDefaults(defineProps<Props>(), { open: false })
14
+ const props = withDefaults(defineProps<Props>(), { title: '', prompt: '', locale: '', open: false })
15
15
  const emit = defineEmits<{ 'update:open': [value: boolean] }>()
16
16
 
17
17
  const panelEl = ref<HTMLElement | null>(null)
@@ -1,3 +1,5 @@
1
+ import { defineEventHandler, readBody, setHeaders, useRuntimeConfig } from 'h3'
2
+
1
3
  export default defineEventHandler(async (event) => {
2
4
  const config = useRuntimeConfig(event)
3
5
  const body = await readBody(event)
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@mirodan/ai-insight",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "AI-powered insight tooltip component for Nuxt",
5
5
  "type": "module",
6
- "main": "./dist/module.mjs",
6
+ "main": "./dist/module.js",
7
7
  "types": "./dist/module.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./dist/module.d.ts",
11
- "import": "./dist/module.mjs"
11
+ "import": "./dist/module.js"
12
12
  }
13
13
  },
14
14
  "files": [