@stephenchenorg/astro 4.0.2 → 4.0.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.
@@ -5,7 +5,8 @@
5
5
  <script setup lang="ts">
6
6
  import type { Rule } from '../types'
7
7
  import { inject, ref } from 'vue'
8
- import { formValidatorInjectionKey } from '../injectionKey'
8
+ // Must be imported from the regular package path to avoid duplicate instances
9
+ import { formValidatorInjectionKey } from '@stephenchenorg/astro/form-validator'
9
10
 
10
11
  const props = defineProps<{
11
12
  id: string
@@ -1,6 +1,6 @@
1
- import { formValidatorInjectionKey } from "@stephenchenorg/astro/form-validator";
2
1
  import { defineComponent, onMounted, provide } from "vue";
3
2
  import { FormValidator } from "../FormValidator.js";
3
+ import { formValidatorInjectionKey } from "../injectionKey.js";
4
4
  const FormValidatorProvider = defineComponent({
5
5
  name: "FormValidatorProvider",
6
6
  props: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stephenchenorg/astro",
3
3
  "type": "module",
4
- "version": "4.0.2",
4
+ "version": "4.0.3",
5
5
  "description": "Stephenchenorg Astro 前端通用套件",
6
6
  "license": "MIT",
7
7
  "homepage": "https://stephenchenorg-astro.netlify.app",