shopify-nuxt 0.0.8 → 0.0.10

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.
Files changed (43) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/ShLoadingIndicator.d.vue.ts +13 -0
  3. package/dist/runtime/components/ShLoadingIndicator.vue +16 -0
  4. package/dist/runtime/components/ShLoadingIndicator.vue.d.ts +13 -0
  5. package/dist/runtime/components/polaris/ShButton.d.vue.ts +1 -1
  6. package/dist/runtime/components/polaris/ShButton.vue.d.ts +1 -1
  7. package/dist/runtime/components/polaris/ShCheckbox.d.vue.ts +2 -2
  8. package/dist/runtime/components/polaris/ShCheckbox.vue.d.ts +2 -2
  9. package/dist/runtime/components/polaris/ShChoiceList.d.vue.ts +2 -2
  10. package/dist/runtime/components/polaris/ShChoiceList.vue.d.ts +2 -2
  11. package/dist/runtime/components/polaris/ShColorField.d.vue.ts +4 -4
  12. package/dist/runtime/components/polaris/ShColorField.vue.d.ts +4 -4
  13. package/dist/runtime/components/polaris/ShColorPicker.d.vue.ts +2 -2
  14. package/dist/runtime/components/polaris/ShColorPicker.vue.d.ts +2 -2
  15. package/dist/runtime/components/polaris/ShDateField.d.vue.ts +4 -4
  16. package/dist/runtime/components/polaris/ShDateField.vue.d.ts +4 -4
  17. package/dist/runtime/components/polaris/ShDatePicker.d.vue.ts +4 -4
  18. package/dist/runtime/components/polaris/ShDatePicker.vue.d.ts +4 -4
  19. package/dist/runtime/components/polaris/ShDropZone.d.vue.ts +2 -2
  20. package/dist/runtime/components/polaris/ShDropZone.vue.d.ts +2 -2
  21. package/dist/runtime/components/polaris/ShEmailField.d.vue.ts +4 -4
  22. package/dist/runtime/components/polaris/ShEmailField.vue.d.ts +4 -4
  23. package/dist/runtime/components/polaris/ShMoneyField.d.vue.ts +4 -4
  24. package/dist/runtime/components/polaris/ShMoneyField.vue.d.ts +4 -4
  25. package/dist/runtime/components/polaris/ShNumberField.d.vue.ts +4 -4
  26. package/dist/runtime/components/polaris/ShNumberField.vue.d.ts +4 -4
  27. package/dist/runtime/components/polaris/ShPasswordField.d.vue.ts +4 -4
  28. package/dist/runtime/components/polaris/ShPasswordField.vue.d.ts +4 -4
  29. package/dist/runtime/components/polaris/ShSearchField.d.vue.ts +4 -4
  30. package/dist/runtime/components/polaris/ShSearchField.vue.d.ts +4 -4
  31. package/dist/runtime/components/polaris/ShSelect.d.vue.ts +2 -2
  32. package/dist/runtime/components/polaris/ShSelect.vue.d.ts +2 -2
  33. package/dist/runtime/components/polaris/ShSwitch.d.vue.ts +2 -2
  34. package/dist/runtime/components/polaris/ShSwitch.vue.d.ts +2 -2
  35. package/dist/runtime/components/polaris/ShTextArea.d.vue.ts +4 -4
  36. package/dist/runtime/components/polaris/ShTextArea.vue.d.ts +4 -4
  37. package/dist/runtime/components/polaris/ShTextField.d.vue.ts +4 -4
  38. package/dist/runtime/components/polaris/ShTextField.vue.d.ts +4 -4
  39. package/dist/runtime/components/polaris/ShUrlField.d.vue.ts +4 -4
  40. package/dist/runtime/components/polaris/ShUrlField.vue.d.ts +4 -4
  41. package/dist/runtime/composables/useShopifyFetch.d.ts +13 -4
  42. package/dist/runtime/composables/useShopifyFetch.js +24 -6
  43. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shopify-nuxt",
3
3
  "configKey": "shopify",
4
- "version": "0.0.8",
4
+ "version": "0.0.10",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,16 @@
1
+ <script setup>
2
+ import { useLoadingIndicator, useAppBridge } from "#imports";
3
+ import { watch, onBeforeUnmount } from "vue";
4
+ const { isLoading } = useLoadingIndicator();
5
+ const shopify = useAppBridge();
6
+ watch(isLoading, (loading) => {
7
+ shopify.loading(loading);
8
+ });
9
+ onBeforeUnmount(() => {
10
+ shopify.loading(false);
11
+ });
12
+ </script>
13
+
14
+ <template>
15
+ <slot />
16
+ </template>
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -22,8 +22,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
22
22
  blur: (event: FocusEvent) => void;
23
23
  focus: (event: FocusEvent) => void;
24
24
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- onBlur?: ((event: FocusEvent) => any) | undefined;
26
25
  onClick?: ((event: MouseEvent) => any) | undefined;
26
+ onBlur?: ((event: FocusEvent) => any) | undefined;
27
27
  onFocus?: ((event: FocusEvent) => any) | undefined;
28
28
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
29
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -22,8 +22,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
22
22
  blur: (event: FocusEvent) => void;
23
23
  focus: (event: FocusEvent) => void;
24
24
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- onBlur?: ((event: FocusEvent) => any) | undefined;
26
25
  onClick?: ((event: MouseEvent) => any) | undefined;
26
+ onBlur?: ((event: FocusEvent) => any) | undefined;
27
27
  onFocus?: ((event: FocusEvent) => any) | undefined;
28
28
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
29
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -18,11 +18,11 @@ type __VLS_Slots = {} & {
18
18
  };
19
19
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
20
  "update:modelValue": (v: boolean) => void;
21
- input: (event: Event) => void;
22
21
  change: (event: Event) => void;
22
+ input: (event: Event) => void;
23
23
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
24
- onInput?: ((event: Event) => any) | undefined;
25
24
  onChange?: ((event: Event) => any) | undefined;
25
+ onInput?: ((event: Event) => any) | undefined;
26
26
  "onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
27
27
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -18,11 +18,11 @@ type __VLS_Slots = {} & {
18
18
  };
19
19
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
20
  "update:modelValue": (v: boolean) => void;
21
- input: (event: Event) => void;
22
21
  change: (event: Event) => void;
22
+ input: (event: Event) => void;
23
23
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
24
- onInput?: ((event: Event) => any) | undefined;
25
24
  onChange?: ((event: Event) => any) | undefined;
25
+ onInput?: ((event: Event) => any) | undefined;
26
26
  "onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
27
27
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -14,11 +14,11 @@ type __VLS_Slots = {} & {
14
14
  };
15
15
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
16
  "update:modelValue": (v: string[]) => void;
17
- input: (event: Event) => void;
18
17
  change: (event: Event) => void;
18
+ input: (event: Event) => void;
19
19
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
- onInput?: ((event: Event) => any) | undefined;
21
20
  onChange?: ((event: Event) => any) | undefined;
21
+ onInput?: ((event: Event) => any) | undefined;
22
22
  "onUpdate:modelValue"?: ((v: string[]) => any) | undefined;
23
23
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -14,11 +14,11 @@ type __VLS_Slots = {} & {
14
14
  };
15
15
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
16
  "update:modelValue": (v: string[]) => void;
17
- input: (event: Event) => void;
18
17
  change: (event: Event) => void;
18
+ input: (event: Event) => void;
19
19
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
- onInput?: ((event: Event) => any) | undefined;
21
20
  onChange?: ((event: Event) => any) | undefined;
21
+ onInput?: ((event: Event) => any) | undefined;
22
22
  "onUpdate:modelValue"?: ((v: string[]) => any) | undefined;
23
23
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -20,15 +20,15 @@ type __VLS_Slots = {} & {
20
20
  };
21
21
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
22
  "update:modelValue": (v: string) => void;
23
- input: (event: InputEvent) => void;
24
23
  blur: (event: InputEvent) => void;
25
- change: (event: InputEvent) => void;
26
24
  focus: (event: InputEvent) => void;
25
+ change: (event: InputEvent) => void;
26
+ input: (event: InputEvent) => void;
27
27
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
28
- onInput?: ((event: InputEvent) => any) | undefined;
29
28
  onBlur?: ((event: InputEvent) => any) | undefined;
30
- onChange?: ((event: InputEvent) => any) | undefined;
31
29
  onFocus?: ((event: InputEvent) => any) | undefined;
30
+ onChange?: ((event: InputEvent) => any) | undefined;
31
+ onInput?: ((event: InputEvent) => any) | undefined;
32
32
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
33
33
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -20,15 +20,15 @@ type __VLS_Slots = {} & {
20
20
  };
21
21
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
22
  "update:modelValue": (v: string) => void;
23
- input: (event: InputEvent) => void;
24
23
  blur: (event: InputEvent) => void;
25
- change: (event: InputEvent) => void;
26
24
  focus: (event: InputEvent) => void;
25
+ change: (event: InputEvent) => void;
26
+ input: (event: InputEvent) => void;
27
27
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
28
- onInput?: ((event: InputEvent) => any) | undefined;
29
28
  onBlur?: ((event: InputEvent) => any) | undefined;
30
- onChange?: ((event: InputEvent) => any) | undefined;
31
29
  onFocus?: ((event: InputEvent) => any) | undefined;
30
+ onChange?: ((event: InputEvent) => any) | undefined;
31
+ onInput?: ((event: InputEvent) => any) | undefined;
32
32
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
33
33
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
34
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -10,11 +10,11 @@ type __VLS_Slots = {} & {
10
10
  };
11
11
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
12
  "update:modelValue": (v: string) => void;
13
- input: (event: Event) => void;
14
13
  change: (event: Event) => void;
14
+ input: (event: Event) => void;
15
15
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
- onInput?: ((event: Event) => any) | undefined;
17
16
  onChange?: ((event: Event) => any) | undefined;
17
+ onInput?: ((event: Event) => any) | undefined;
18
18
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
19
19
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -10,11 +10,11 @@ type __VLS_Slots = {} & {
10
10
  };
11
11
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
12
  "update:modelValue": (v: string) => void;
13
- input: (event: Event) => void;
14
13
  change: (event: Event) => void;
14
+ input: (event: Event) => void;
15
15
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
- onInput?: ((event: Event) => any) | undefined;
17
16
  onChange?: ((event: Event) => any) | undefined;
17
+ onInput?: ((event: Event) => any) | undefined;
18
18
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
19
19
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -25,17 +25,17 @@ type __VLS_Slots = {} & {
25
25
  };
26
26
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
27
  "update:modelValue": (v: string) => void;
28
- input: (event: Event) => void;
29
28
  blur: (event: Event) => void;
30
- change: (event: Event) => void;
31
29
  focus: (event: Event) => void;
30
+ change: (event: Event) => void;
31
+ input: (event: Event) => void;
32
32
  invalid: (event: Event) => void;
33
33
  viewchange: (event: Event) => void;
34
34
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
35
- onInput?: ((event: Event) => any) | undefined;
36
35
  onBlur?: ((event: Event) => any) | undefined;
37
- onChange?: ((event: Event) => any) | undefined;
38
36
  onFocus?: ((event: Event) => any) | undefined;
37
+ onChange?: ((event: Event) => any) | undefined;
38
+ onInput?: ((event: Event) => any) | undefined;
39
39
  onInvalid?: ((event: Event) => any) | undefined;
40
40
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
41
41
  onViewchange?: ((event: Event) => any) | undefined;
@@ -25,17 +25,17 @@ type __VLS_Slots = {} & {
25
25
  };
26
26
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
27
  "update:modelValue": (v: string) => void;
28
- input: (event: Event) => void;
29
28
  blur: (event: Event) => void;
30
- change: (event: Event) => void;
31
29
  focus: (event: Event) => void;
30
+ change: (event: Event) => void;
31
+ input: (event: Event) => void;
32
32
  invalid: (event: Event) => void;
33
33
  viewchange: (event: Event) => void;
34
34
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
35
- onInput?: ((event: Event) => any) | undefined;
36
35
  onBlur?: ((event: Event) => any) | undefined;
37
- onChange?: ((event: Event) => any) | undefined;
38
36
  onFocus?: ((event: Event) => any) | undefined;
37
+ onChange?: ((event: Event) => any) | undefined;
38
+ onInput?: ((event: Event) => any) | undefined;
39
39
  onInvalid?: ((event: Event) => any) | undefined;
40
40
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
41
41
  onViewchange?: ((event: Event) => any) | undefined;
@@ -16,16 +16,16 @@ type __VLS_Slots = {} & {
16
16
  };
17
17
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
18
  "update:modelValue": (v: string) => void;
19
- input: (event: Event) => void;
20
19
  blur: (event: Event) => void;
21
- change: (event: Event) => void;
22
20
  focus: (event: Event) => void;
21
+ change: (event: Event) => void;
22
+ input: (event: Event) => void;
23
23
  viewchange: (event: Event) => void;
24
24
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- onInput?: ((event: Event) => any) | undefined;
26
25
  onBlur?: ((event: Event) => any) | undefined;
27
- onChange?: ((event: Event) => any) | undefined;
28
26
  onFocus?: ((event: Event) => any) | undefined;
27
+ onChange?: ((event: Event) => any) | undefined;
28
+ onInput?: ((event: Event) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
30
30
  onViewchange?: ((event: Event) => any) | undefined;
31
31
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -16,16 +16,16 @@ type __VLS_Slots = {} & {
16
16
  };
17
17
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
18
  "update:modelValue": (v: string) => void;
19
- input: (event: Event) => void;
20
19
  blur: (event: Event) => void;
21
- change: (event: Event) => void;
22
20
  focus: (event: Event) => void;
21
+ change: (event: Event) => void;
22
+ input: (event: Event) => void;
23
23
  viewchange: (event: Event) => void;
24
24
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- onInput?: ((event: Event) => any) | undefined;
26
25
  onBlur?: ((event: Event) => any) | undefined;
27
- onChange?: ((event: Event) => any) | undefined;
28
26
  onFocus?: ((event: Event) => any) | undefined;
27
+ onChange?: ((event: Event) => any) | undefined;
28
+ onInput?: ((event: Event) => any) | undefined;
29
29
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
30
30
  onViewchange?: ((event: Event) => any) | undefined;
31
31
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -16,12 +16,12 @@ type __VLS_Slots = {} & {
16
16
  };
17
17
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
18
  "update:modelValue": (v: string) => void;
19
- input: (event: Event) => void;
20
19
  change: (event: Event) => void;
20
+ input: (event: Event) => void;
21
21
  droprejected: (event: Event) => void;
22
22
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- onInput?: ((event: Event) => any) | undefined;
24
23
  onChange?: ((event: Event) => any) | undefined;
24
+ onInput?: ((event: Event) => any) | undefined;
25
25
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
26
26
  onDroprejected?: ((event: Event) => any) | undefined;
27
27
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -16,12 +16,12 @@ type __VLS_Slots = {} & {
16
16
  };
17
17
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
18
  "update:modelValue": (v: string) => void;
19
- input: (event: Event) => void;
20
19
  change: (event: Event) => void;
20
+ input: (event: Event) => void;
21
21
  droprejected: (event: Event) => void;
22
22
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- onInput?: ((event: Event) => any) | undefined;
24
23
  onChange?: ((event: Event) => any) | undefined;
24
+ onInput?: ((event: Event) => any) | undefined;
25
25
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
26
26
  onDroprejected?: ((event: Event) => any) | undefined;
27
27
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -21,15 +21,15 @@ type __VLS_Slots = {} & {
21
21
  };
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
23
  "update:modelValue": (v: string) => void;
24
- input: (event: InputEvent) => void;
25
24
  blur: (event: InputEvent) => void;
26
- change: (event: InputEvent) => void;
27
25
  focus: (event: InputEvent) => void;
26
+ change: (event: InputEvent) => void;
27
+ input: (event: InputEvent) => void;
28
28
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- onInput?: ((event: InputEvent) => any) | undefined;
30
29
  onBlur?: ((event: InputEvent) => any) | undefined;
31
- onChange?: ((event: InputEvent) => any) | undefined;
32
30
  onFocus?: ((event: InputEvent) => any) | undefined;
31
+ onChange?: ((event: InputEvent) => any) | undefined;
32
+ onInput?: ((event: InputEvent) => any) | undefined;
33
33
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -21,15 +21,15 @@ type __VLS_Slots = {} & {
21
21
  };
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
23
  "update:modelValue": (v: string) => void;
24
- input: (event: InputEvent) => void;
25
24
  blur: (event: InputEvent) => void;
26
- change: (event: InputEvent) => void;
27
25
  focus: (event: InputEvent) => void;
26
+ change: (event: InputEvent) => void;
27
+ input: (event: InputEvent) => void;
28
28
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- onInput?: ((event: InputEvent) => any) | undefined;
30
29
  onBlur?: ((event: InputEvent) => any) | undefined;
31
- onChange?: ((event: InputEvent) => any) | undefined;
32
30
  onFocus?: ((event: InputEvent) => any) | undefined;
31
+ onChange?: ((event: InputEvent) => any) | undefined;
32
+ onInput?: ((event: InputEvent) => any) | undefined;
33
33
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -21,15 +21,15 @@ type __VLS_Slots = {} & {
21
21
  };
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
23
  "update:modelValue": (v: string) => void;
24
- input: (event: InputEvent) => void;
25
24
  blur: (event: InputEvent) => void;
26
- change: (event: InputEvent) => void;
27
25
  focus: (event: InputEvent) => void;
26
+ change: (event: InputEvent) => void;
27
+ input: (event: InputEvent) => void;
28
28
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- onInput?: ((event: InputEvent) => any) | undefined;
30
29
  onBlur?: ((event: InputEvent) => any) | undefined;
31
- onChange?: ((event: InputEvent) => any) | undefined;
32
30
  onFocus?: ((event: InputEvent) => any) | undefined;
31
+ onChange?: ((event: InputEvent) => any) | undefined;
32
+ onInput?: ((event: InputEvent) => any) | undefined;
33
33
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -21,15 +21,15 @@ type __VLS_Slots = {} & {
21
21
  };
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
23
  "update:modelValue": (v: string) => void;
24
- input: (event: InputEvent) => void;
25
24
  blur: (event: InputEvent) => void;
26
- change: (event: InputEvent) => void;
27
25
  focus: (event: InputEvent) => void;
26
+ change: (event: InputEvent) => void;
27
+ input: (event: InputEvent) => void;
28
28
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- onInput?: ((event: InputEvent) => any) | undefined;
30
29
  onBlur?: ((event: InputEvent) => any) | undefined;
31
- onChange?: ((event: InputEvent) => any) | undefined;
32
30
  onFocus?: ((event: InputEvent) => any) | undefined;
31
+ onChange?: ((event: InputEvent) => any) | undefined;
32
+ onInput?: ((event: InputEvent) => any) | undefined;
33
33
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -25,15 +25,15 @@ type __VLS_Slots = {} & {
25
25
  };
26
26
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
27
  "update:modelValue": (v: string) => void;
28
- input: (event: InputEvent) => void;
29
28
  blur: (event: InputEvent) => void;
30
- change: (event: InputEvent) => void;
31
29
  focus: (event: InputEvent) => void;
30
+ change: (event: InputEvent) => void;
31
+ input: (event: InputEvent) => void;
32
32
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
33
- onInput?: ((event: InputEvent) => any) | undefined;
34
33
  onBlur?: ((event: InputEvent) => any) | undefined;
35
- onChange?: ((event: InputEvent) => any) | undefined;
36
34
  onFocus?: ((event: InputEvent) => any) | undefined;
35
+ onChange?: ((event: InputEvent) => any) | undefined;
36
+ onInput?: ((event: InputEvent) => any) | undefined;
37
37
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
38
38
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
39
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -25,15 +25,15 @@ type __VLS_Slots = {} & {
25
25
  };
26
26
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
27
  "update:modelValue": (v: string) => void;
28
- input: (event: InputEvent) => void;
29
28
  blur: (event: InputEvent) => void;
30
- change: (event: InputEvent) => void;
31
29
  focus: (event: InputEvent) => void;
30
+ change: (event: InputEvent) => void;
31
+ input: (event: InputEvent) => void;
32
32
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
33
- onInput?: ((event: InputEvent) => any) | undefined;
34
33
  onBlur?: ((event: InputEvent) => any) | undefined;
35
- onChange?: ((event: InputEvent) => any) | undefined;
36
34
  onFocus?: ((event: InputEvent) => any) | undefined;
35
+ onChange?: ((event: InputEvent) => any) | undefined;
36
+ onInput?: ((event: InputEvent) => any) | undefined;
37
37
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
38
38
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
39
39
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -21,15 +21,15 @@ type __VLS_Slots = {} & {
21
21
  };
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
23
  "update:modelValue": (v: string) => void;
24
- input: (event: InputEvent) => void;
25
24
  blur: (event: InputEvent) => void;
26
- change: (event: InputEvent) => void;
27
25
  focus: (event: InputEvent) => void;
26
+ change: (event: InputEvent) => void;
27
+ input: (event: InputEvent) => void;
28
28
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- onInput?: ((event: InputEvent) => any) | undefined;
30
29
  onBlur?: ((event: InputEvent) => any) | undefined;
31
- onChange?: ((event: InputEvent) => any) | undefined;
32
30
  onFocus?: ((event: InputEvent) => any) | undefined;
31
+ onChange?: ((event: InputEvent) => any) | undefined;
32
+ onInput?: ((event: InputEvent) => any) | undefined;
33
33
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -21,15 +21,15 @@ type __VLS_Slots = {} & {
21
21
  };
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
23
  "update:modelValue": (v: string) => void;
24
- input: (event: InputEvent) => void;
25
24
  blur: (event: InputEvent) => void;
26
- change: (event: InputEvent) => void;
27
25
  focus: (event: InputEvent) => void;
26
+ change: (event: InputEvent) => void;
27
+ input: (event: InputEvent) => void;
28
28
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- onInput?: ((event: InputEvent) => any) | undefined;
30
29
  onBlur?: ((event: InputEvent) => any) | undefined;
31
- onChange?: ((event: InputEvent) => any) | undefined;
32
30
  onFocus?: ((event: InputEvent) => any) | undefined;
31
+ onChange?: ((event: InputEvent) => any) | undefined;
32
+ onInput?: ((event: InputEvent) => any) | undefined;
33
33
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -21,15 +21,15 @@ type __VLS_Slots = {} & {
21
21
  };
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
23
  "update:modelValue": (v: string) => void;
24
- input: (event: InputEvent) => void;
25
24
  blur: (event: InputEvent) => void;
26
- change: (event: InputEvent) => void;
27
25
  focus: (event: InputEvent) => void;
26
+ change: (event: InputEvent) => void;
27
+ input: (event: InputEvent) => void;
28
28
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- onInput?: ((event: InputEvent) => any) | undefined;
30
29
  onBlur?: ((event: InputEvent) => any) | undefined;
31
- onChange?: ((event: InputEvent) => any) | undefined;
32
30
  onFocus?: ((event: InputEvent) => any) | undefined;
31
+ onChange?: ((event: InputEvent) => any) | undefined;
32
+ onInput?: ((event: InputEvent) => any) | undefined;
33
33
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -21,15 +21,15 @@ type __VLS_Slots = {} & {
21
21
  };
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
23
  "update:modelValue": (v: string) => void;
24
- input: (event: InputEvent) => void;
25
24
  blur: (event: InputEvent) => void;
26
- change: (event: InputEvent) => void;
27
25
  focus: (event: InputEvent) => void;
26
+ change: (event: InputEvent) => void;
27
+ input: (event: InputEvent) => void;
28
28
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- onInput?: ((event: InputEvent) => any) | undefined;
30
29
  onBlur?: ((event: InputEvent) => any) | undefined;
31
- onChange?: ((event: InputEvent) => any) | undefined;
32
30
  onFocus?: ((event: InputEvent) => any) | undefined;
31
+ onChange?: ((event: InputEvent) => any) | undefined;
32
+ onInput?: ((event: InputEvent) => any) | undefined;
33
33
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -17,11 +17,11 @@ type __VLS_Slots = {} & {
17
17
  };
18
18
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
19
  "update:modelValue": (v: string) => void;
20
- input: (event: Event) => void;
21
20
  change: (event: Event) => void;
21
+ input: (event: Event) => void;
22
22
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- onInput?: ((event: Event) => any) | undefined;
24
23
  onChange?: ((event: Event) => any) | undefined;
24
+ onInput?: ((event: Event) => any) | undefined;
25
25
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
26
26
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
27
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -17,11 +17,11 @@ type __VLS_Slots = {} & {
17
17
  };
18
18
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
19
  "update:modelValue": (v: string) => void;
20
- input: (event: Event) => void;
21
20
  change: (event: Event) => void;
21
+ input: (event: Event) => void;
22
22
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- onInput?: ((event: Event) => any) | undefined;
24
23
  onChange?: ((event: Event) => any) | undefined;
24
+ onInput?: ((event: Event) => any) | undefined;
25
25
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
26
26
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
27
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -17,11 +17,11 @@ type __VLS_Slots = {} & {
17
17
  };
18
18
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
19
  "update:modelValue": (v: boolean) => void;
20
- input: (event: Event) => void;
21
20
  change: (event: Event) => void;
21
+ input: (event: Event) => void;
22
22
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- onInput?: ((event: Event) => any) | undefined;
24
23
  onChange?: ((event: Event) => any) | undefined;
24
+ onInput?: ((event: Event) => any) | undefined;
25
25
  "onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
26
26
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
27
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -17,11 +17,11 @@ type __VLS_Slots = {} & {
17
17
  };
18
18
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
19
  "update:modelValue": (v: boolean) => void;
20
- input: (event: Event) => void;
21
20
  change: (event: Event) => void;
21
+ input: (event: Event) => void;
22
22
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- onInput?: ((event: Event) => any) | undefined;
24
23
  onChange?: ((event: Event) => any) | undefined;
24
+ onInput?: ((event: Event) => any) | undefined;
25
25
  "onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
26
26
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
27
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -22,15 +22,15 @@ type __VLS_Slots = {} & {
22
22
  };
23
23
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
24
  "update:modelValue": (v: string) => void;
25
- input: (event: InputEvent) => void;
26
25
  blur: (event: InputEvent) => void;
27
- change: (event: InputEvent) => void;
28
26
  focus: (event: InputEvent) => void;
27
+ change: (event: InputEvent) => void;
28
+ input: (event: InputEvent) => void;
29
29
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
30
- onInput?: ((event: InputEvent) => any) | undefined;
31
30
  onBlur?: ((event: InputEvent) => any) | undefined;
32
- onChange?: ((event: InputEvent) => any) | undefined;
33
31
  onFocus?: ((event: InputEvent) => any) | undefined;
32
+ onChange?: ((event: InputEvent) => any) | undefined;
33
+ onInput?: ((event: InputEvent) => any) | undefined;
34
34
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
35
35
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
36
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -22,15 +22,15 @@ type __VLS_Slots = {} & {
22
22
  };
23
23
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
24
  "update:modelValue": (v: string) => void;
25
- input: (event: InputEvent) => void;
26
25
  blur: (event: InputEvent) => void;
27
- change: (event: InputEvent) => void;
28
26
  focus: (event: InputEvent) => void;
27
+ change: (event: InputEvent) => void;
28
+ input: (event: InputEvent) => void;
29
29
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
30
- onInput?: ((event: InputEvent) => any) | undefined;
31
30
  onBlur?: ((event: InputEvent) => any) | undefined;
32
- onChange?: ((event: InputEvent) => any) | undefined;
33
31
  onFocus?: ((event: InputEvent) => any) | undefined;
32
+ onChange?: ((event: InputEvent) => any) | undefined;
33
+ onInput?: ((event: InputEvent) => any) | undefined;
34
34
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
35
35
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
36
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -24,15 +24,15 @@ type __VLS_Slots = {} & {
24
24
  };
25
25
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
26
  "update:modelValue": (v: string) => void;
27
- input: (event: InputEvent) => void;
28
27
  blur: (event: InputEvent) => void;
29
- change: (event: InputEvent) => void;
30
28
  focus: (event: InputEvent) => void;
29
+ change: (event: InputEvent) => void;
30
+ input: (event: InputEvent) => void;
31
31
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
32
- onInput?: ((event: InputEvent) => any) | undefined;
33
32
  onBlur?: ((event: InputEvent) => any) | undefined;
34
- onChange?: ((event: InputEvent) => any) | undefined;
35
33
  onFocus?: ((event: InputEvent) => any) | undefined;
34
+ onChange?: ((event: InputEvent) => any) | undefined;
35
+ onInput?: ((event: InputEvent) => any) | undefined;
36
36
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
37
37
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
38
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -24,15 +24,15 @@ type __VLS_Slots = {} & {
24
24
  };
25
25
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
26
  "update:modelValue": (v: string) => void;
27
- input: (event: InputEvent) => void;
28
27
  blur: (event: InputEvent) => void;
29
- change: (event: InputEvent) => void;
30
28
  focus: (event: InputEvent) => void;
29
+ change: (event: InputEvent) => void;
30
+ input: (event: InputEvent) => void;
31
31
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
32
- onInput?: ((event: InputEvent) => any) | undefined;
33
32
  onBlur?: ((event: InputEvent) => any) | undefined;
34
- onChange?: ((event: InputEvent) => any) | undefined;
35
33
  onFocus?: ((event: InputEvent) => any) | undefined;
34
+ onChange?: ((event: InputEvent) => any) | undefined;
35
+ onInput?: ((event: InputEvent) => any) | undefined;
36
36
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
37
37
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
38
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -21,15 +21,15 @@ type __VLS_Slots = {} & {
21
21
  };
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
23
  "update:modelValue": (v: string) => void;
24
- input: (event: InputEvent) => void;
25
24
  blur: (event: InputEvent) => void;
26
- change: (event: InputEvent) => void;
27
25
  focus: (event: InputEvent) => void;
26
+ change: (event: InputEvent) => void;
27
+ input: (event: InputEvent) => void;
28
28
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- onInput?: ((event: InputEvent) => any) | undefined;
30
29
  onBlur?: ((event: InputEvent) => any) | undefined;
31
- onChange?: ((event: InputEvent) => any) | undefined;
32
30
  onFocus?: ((event: InputEvent) => any) | undefined;
31
+ onChange?: ((event: InputEvent) => any) | undefined;
32
+ onInput?: ((event: InputEvent) => any) | undefined;
33
33
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -21,15 +21,15 @@ type __VLS_Slots = {} & {
21
21
  };
22
22
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
23
  "update:modelValue": (v: string) => void;
24
- input: (event: InputEvent) => void;
25
24
  blur: (event: InputEvent) => void;
26
- change: (event: InputEvent) => void;
27
25
  focus: (event: InputEvent) => void;
26
+ change: (event: InputEvent) => void;
27
+ input: (event: InputEvent) => void;
28
28
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- onInput?: ((event: InputEvent) => any) | undefined;
30
29
  onBlur?: ((event: InputEvent) => any) | undefined;
31
- onChange?: ((event: InputEvent) => any) | undefined;
32
30
  onFocus?: ((event: InputEvent) => any) | undefined;
31
+ onChange?: ((event: InputEvent) => any) | undefined;
32
+ onInput?: ((event: InputEvent) => any) | undefined;
33
33
  "onUpdate:modelValue"?: ((v: string) => any) | undefined;
34
34
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,4 +1,13 @@
1
- export declare function useShopifyFetch(): (url: string, options?: RequestInit) => Promise<{
2
- data: any;
3
- response: Response;
4
- }>;
1
+ import type { NitroFetchRequest, TypedInternalResponse, AvailableRouterMethod } from 'nitropack/types';
2
+ import type { RouterMethod } from 'h3';
3
+ type ShopifyFetchData<T, R extends NitroFetchRequest, M extends RouterMethod> = [T] extends [undefined] ? TypedInternalResponse<R, unknown, M> : T;
4
+ interface ShopifyFetchFunction {
5
+ <T = undefined, R extends NitroFetchRequest = NitroFetchRequest, M extends AvailableRouterMethod<R> = 'get' extends AvailableRouterMethod<R> ? 'get' : AvailableRouterMethod<R>>(url: R, options?: Omit<RequestInit, 'method'> & {
6
+ method?: Uppercase<M> | M;
7
+ }): Promise<{
8
+ data: ShopifyFetchData<T, R, Extract<Lowercase<M>, RouterMethod>>;
9
+ response: Response;
10
+ }>;
11
+ }
12
+ export declare function useShopifyFetch(): ShopifyFetchFunction;
13
+ export {};
@@ -1,12 +1,30 @@
1
- import { useNuxtApp } from "#app";
1
+ import { useNuxtApp, useRequestEvent } from "#app";
2
2
  export function useShopifyFetch() {
3
3
  if (import.meta.server) {
4
- return async (_url, _options) => {
5
- return { data: null, response: null };
6
- };
4
+ const event = useRequestEvent();
5
+ return (async (url, options = {}) => {
6
+ const headers = {};
7
+ const authHeader = event?.headers.get("authorization");
8
+ if (authHeader) {
9
+ headers["Authorization"] = authHeader;
10
+ }
11
+ if (options.headers) {
12
+ const incoming = new Headers(options.headers);
13
+ incoming.forEach((value, key) => {
14
+ headers[key] = value;
15
+ });
16
+ }
17
+ const { method, ...rest } = options;
18
+ const response = await globalThis.$fetch.raw(url, {
19
+ ...rest,
20
+ method,
21
+ headers
22
+ });
23
+ return { data: response._data, response };
24
+ });
7
25
  }
8
26
  const nuxtApp = useNuxtApp();
9
- return async (url, options = {}) => {
27
+ return (async (url, options = {}) => {
10
28
  const shopify = nuxtApp.$shopify;
11
29
  if (!shopify) {
12
30
  throw new Error(
@@ -30,5 +48,5 @@ export function useShopifyFetch() {
30
48
  return { data: await response.json(), response };
31
49
  }
32
50
  return { data: await response.text(), response };
33
- };
51
+ });
34
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopify-nuxt",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Shopify app integration for Nuxt - authentication, webhooks, billing, and App Bridge",
5
5
  "repository": "kiriminaja/shopify-nuxt",
6
6
  "license": "MIT",