@stephenchenorg/astro 4.0.0 → 4.0.2

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,6 +1,6 @@
1
1
  import type { PropType } from 'vue';
2
2
  import type { FormErrors } from '../types';
3
- import { FormValidator } from '../form-validator';
3
+ import { FormValidator } from '../FormValidator';
4
4
  export interface FormValidatorProviderExposed {
5
5
  formValidator: () => FormValidator;
6
6
  }
@@ -1,6 +1,6 @@
1
+ import { formValidatorInjectionKey } from "@stephenchenorg/astro/form-validator";
1
2
  import { defineComponent, onMounted, provide } from "vue";
2
- import { FormValidator } from "../form-validator.js";
3
- import { formValidatorInjectionKey } from "../injectionKey.js";
3
+ import { FormValidator } from "../FormValidator.js";
4
4
  const FormValidatorProvider = defineComponent({
5
5
  name: "FormValidatorProvider",
6
6
  props: {
@@ -1,4 +1,6 @@
1
1
  export { default as FormField } from './components/FormField.vue';
2
2
  export { default as FormValidatorProvider } from './components/FormValidatorProvider';
3
- export * from './form-validator';
3
+ export type { FormValidatorProviderExposed } from './components/FormValidatorProvider';
4
+ export * from './FormValidator';
5
+ export * from './injectionKey';
4
6
  export * from './types';
@@ -1,4 +1,5 @@
1
1
  export { default as FormField } from "./components/FormField.vue";
2
2
  export { default as FormValidatorProvider } from "./components/FormValidatorProvider.js";
3
- export * from "./form-validator.js";
3
+ export * from "./FormValidator.js";
4
+ export * from "./injectionKey.js";
4
5
  export * from "./types.js";
@@ -1,3 +1,3 @@
1
1
  import type { InjectionKey } from 'vue';
2
- import type { FormValidator } from './form-validator';
2
+ import type { FormValidator } from './FormValidator';
3
3
  export declare const formValidatorInjectionKey: InjectionKey<FormValidator>;
@@ -18,6 +18,7 @@ window.__astro_provide_url_config__ = config;
18
18
  </script>
19
19
 
20
20
  <script>
21
+ // Must be imported from the regular package path to avoid duplicate instances
21
22
  import { urlConfigStore } from '@stephenchenorg/astro/query-params'
22
23
 
23
24
  const props = window.__astro_provide_url_config__
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stephenchenorg/astro",
3
3
  "type": "module",
4
- "version": "4.0.0",
4
+ "version": "4.0.2",
5
5
  "description": "Stephenchenorg Astro 前端通用套件",
6
6
  "license": "MIT",
7
7
  "homepage": "https://stephenchenorg-astro.netlify.app",