@nuxt/scripts 1.0.0-rc.1 → 1.0.0-rc.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.
Files changed (69) hide show
  1. package/dist/devtools-client/200.html +1 -1
  2. package/dist/devtools-client/404.html +1 -1
  3. package/dist/devtools-client/_nuxt/builds/latest.json +1 -1
  4. package/dist/devtools-client/_nuxt/builds/meta/cb4e67c6-e8b7-4205-95b7-708fd96ffab6.json +1 -0
  5. package/dist/devtools-client/docs/index.html +1 -1
  6. package/dist/devtools-client/first-party/index.html +1 -1
  7. package/dist/devtools-client/index.html +1 -1
  8. package/dist/devtools-client/registry/index.html +1 -1
  9. package/dist/module.json +1 -1
  10. package/dist/module.mjs +3 -2
  11. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.d.vue.ts +5 -9
  12. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.vue +1 -0
  13. package/dist/runtime/components/GoogleMaps/ScriptGoogleMaps.vue.d.ts +5 -9
  14. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsInfoWindow.d.vue.ts +2 -3
  15. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsInfoWindow.vue +1 -0
  16. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsInfoWindow.vue.d.ts +2 -3
  17. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarker.d.vue.ts +2 -3
  18. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarker.vue +1 -0
  19. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarker.vue.d.ts +2 -3
  20. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.d.vue.ts +6 -1
  21. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.vue +1 -0
  22. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsMarkerClusterer.vue.d.ts +6 -1
  23. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.d.vue.ts +3 -4
  24. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue +1 -0
  25. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsOverlayView.vue.d.ts +3 -4
  26. package/dist/runtime/components/GoogleMaps/ScriptGoogleMapsStaticMap.vue +1 -0
  27. package/dist/runtime/components/ScriptBlueskyEmbed.d.vue.ts +10 -11
  28. package/dist/runtime/components/ScriptBlueskyEmbed.vue +1 -0
  29. package/dist/runtime/components/ScriptBlueskyEmbed.vue.d.ts +10 -11
  30. package/dist/runtime/components/ScriptCarbonAds.d.vue.ts +4 -7
  31. package/dist/runtime/components/ScriptCarbonAds.vue +1 -0
  32. package/dist/runtime/components/ScriptCarbonAds.vue.d.ts +4 -7
  33. package/dist/runtime/components/ScriptCrisp.d.vue.ts +7 -11
  34. package/dist/runtime/components/ScriptCrisp.vue +1 -0
  35. package/dist/runtime/components/ScriptCrisp.vue.d.ts +7 -11
  36. package/dist/runtime/components/ScriptGoogleAdsense.d.vue.ts +4 -7
  37. package/dist/runtime/components/ScriptGoogleAdsense.vue +1 -0
  38. package/dist/runtime/components/ScriptGoogleAdsense.vue.d.ts +4 -7
  39. package/dist/runtime/components/ScriptInstagramEmbed.d.vue.ts +11 -13
  40. package/dist/runtime/components/ScriptInstagramEmbed.vue +1 -0
  41. package/dist/runtime/components/ScriptInstagramEmbed.vue.d.ts +11 -13
  42. package/dist/runtime/components/ScriptIntercom.d.vue.ts +7 -11
  43. package/dist/runtime/components/ScriptIntercom.vue +1 -0
  44. package/dist/runtime/components/ScriptIntercom.vue.d.ts +7 -11
  45. package/dist/runtime/components/ScriptLemonSqueezy.d.vue.ts +2 -3
  46. package/dist/runtime/components/ScriptLemonSqueezy.vue +1 -0
  47. package/dist/runtime/components/ScriptLemonSqueezy.vue.d.ts +2 -3
  48. package/dist/runtime/components/ScriptPayPalButtons.d.vue.ts +8 -13
  49. package/dist/runtime/components/ScriptPayPalButtons.vue +1 -0
  50. package/dist/runtime/components/ScriptPayPalButtons.vue.d.ts +8 -13
  51. package/dist/runtime/components/ScriptPayPalMessages.d.vue.ts +8 -13
  52. package/dist/runtime/components/ScriptPayPalMessages.vue +1 -0
  53. package/dist/runtime/components/ScriptPayPalMessages.vue.d.ts +8 -13
  54. package/dist/runtime/components/ScriptStripePricingTable.d.vue.ts +5 -9
  55. package/dist/runtime/components/ScriptStripePricingTable.vue +1 -0
  56. package/dist/runtime/components/ScriptStripePricingTable.vue.d.ts +5 -9
  57. package/dist/runtime/components/ScriptVimeoPlayer.d.vue.ts +8 -11
  58. package/dist/runtime/components/ScriptVimeoPlayer.vue +1 -0
  59. package/dist/runtime/components/ScriptVimeoPlayer.vue.d.ts +8 -11
  60. package/dist/runtime/components/ScriptXEmbed.d.vue.ts +10 -11
  61. package/dist/runtime/components/ScriptXEmbed.vue +1 -0
  62. package/dist/runtime/components/ScriptXEmbed.vue.d.ts +10 -11
  63. package/dist/runtime/components/ScriptYouTubePlayer.d.vue.ts +8 -13
  64. package/dist/runtime/components/ScriptYouTubePlayer.vue +1 -0
  65. package/dist/runtime/components/ScriptYouTubePlayer.vue.d.ts +8 -13
  66. package/dist/runtime/types.d.ts +6 -3
  67. package/dist/types-source.mjs +421 -0
  68. package/package.json +1 -1
  69. package/dist/devtools-client/_nuxt/builds/meta/b800a0be-5cab-4ea6-89e3-dd3a85690a73.json +0 -1
@@ -9,6 +9,7 @@ const props = defineProps({
9
9
  apiEndpoint: { type: String, required: false, default: void 0 },
10
10
  rootAttrs: { type: Object, required: false }
11
11
  });
12
+ defineSlots();
12
13
  const prefix = scriptsPrefix();
13
14
  const apiEndpoint = computed(() => props.apiEndpoint || `${prefix}/embed/instagram`);
14
15
  if (!props.apiEndpoint)
@@ -19,20 +19,18 @@ type __VLS_Props = {
19
19
  */
20
20
  rootAttrs?: HTMLAttributes;
21
21
  };
22
- declare var __VLS_1: {}, __VLS_3: {
23
- error: import("nuxt/app").NuxtError<unknown> | undefined;
24
- }, __VLS_5: {
25
- html: string;
26
- shortcode: string | undefined;
27
- postUrl: string;
28
- };
29
- type __VLS_Slots = {} & {
30
- loading?: (props: typeof __VLS_1) => any;
31
- } & {
32
- error?: (props: typeof __VLS_3) => any;
33
- } & {
34
- default?: (props: typeof __VLS_5) => any;
22
+ type __VLS_Slots = {
23
+ default?: (props: {
24
+ html: string;
25
+ shortcode: string | undefined;
26
+ postUrl: string;
27
+ }) => any;
28
+ loading?: () => any;
29
+ error?: (props: {
30
+ error: typeof error.value;
31
+ }) => any;
35
32
  };
33
+ declare const error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined, import("nuxt/app").NuxtError<unknown> | undefined>;
36
34
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
37
35
  html: import("vue").Ref<string | undefined, string | undefined>;
38
36
  status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
@@ -13,17 +13,13 @@ type __VLS_Props = {
13
13
  */
14
14
  trigger?: ElementScriptTrigger;
15
15
  };
16
- declare var __VLS_1: {
17
- ready: boolean;
18
- }, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
19
- type __VLS_Slots = {} & {
20
- default?: (props: typeof __VLS_1) => any;
21
- } & {
22
- awaitingLoad?: (props: typeof __VLS_3) => any;
23
- } & {
24
- loading?: (props: typeof __VLS_5) => any;
25
- } & {
26
- error?: (props: typeof __VLS_7) => any;
16
+ type __VLS_Slots = {
17
+ default?: (props: {
18
+ ready: boolean;
19
+ }) => any;
20
+ awaitingLoad?: () => any;
21
+ loading?: () => any;
22
+ error?: () => any;
27
23
  };
28
24
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
29
25
  intercom: import("#nuxt-scripts/types").UseScriptContext<import("../registry/intercom.js").IntercomApi>;
@@ -14,6 +14,7 @@ const props = defineProps({
14
14
  trigger: { type: [String, Array, Boolean], required: false, default: "click" }
15
15
  });
16
16
  const emits = defineEmits(["ready", "error"]);
17
+ defineSlots();
17
18
  const rootEl = ref(null);
18
19
  const trigger = useScriptTriggerElement({ trigger: props.trigger, el: rootEl });
19
20
  const isReady = ref(false);
@@ -13,17 +13,13 @@ type __VLS_Props = {
13
13
  */
14
14
  trigger?: ElementScriptTrigger;
15
15
  };
16
- declare var __VLS_1: {
17
- ready: boolean;
18
- }, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
19
- type __VLS_Slots = {} & {
20
- default?: (props: typeof __VLS_1) => any;
21
- } & {
22
- awaitingLoad?: (props: typeof __VLS_3) => any;
23
- } & {
24
- loading?: (props: typeof __VLS_5) => any;
25
- } & {
26
- error?: (props: typeof __VLS_7) => any;
16
+ type __VLS_Slots = {
17
+ default?: (props: {
18
+ ready: boolean;
19
+ }) => any;
20
+ awaitingLoad?: () => any;
21
+ loading?: () => any;
22
+ error?: () => any;
27
23
  };
28
24
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
29
25
  intercom: import("#nuxt-scripts/types").UseScriptContext<import("../registry/intercom.js").IntercomApi>;
@@ -2,9 +2,8 @@ import type { ElementScriptTrigger } from '../types.js';
2
2
  type __VLS_Props = {
3
3
  trigger?: ElementScriptTrigger;
4
4
  };
5
- declare var __VLS_1: {};
6
- type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_1) => any;
5
+ type __VLS_Slots = {
6
+ default?: () => any;
8
7
  };
9
8
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
9
  ready: (args_0: import("../types.js").UseScriptContext<import("../registry/lemon-squeezy.js").LemonSqueezyApi>) => any;
@@ -6,6 +6,7 @@ const props = defineProps({
6
6
  trigger: { type: [String, Array, Boolean], required: false, default: "visible" }
7
7
  });
8
8
  const emits = defineEmits(["ready", "lemonSqueezyEvent"]);
9
+ defineSlots();
9
10
  const rootEl = ref(null);
10
11
  const trigger = useScriptTriggerElement({ trigger: props.trigger, el: rootEl });
11
12
  const instance = useScriptLemonSqueezy({
@@ -2,9 +2,8 @@ import type { ElementScriptTrigger } from '../types.js';
2
2
  type __VLS_Props = {
3
3
  trigger?: ElementScriptTrigger;
4
4
  };
5
- declare var __VLS_1: {};
6
- type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_1) => any;
5
+ type __VLS_Slots = {
6
+ default?: () => any;
8
7
  };
9
8
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
9
  ready: (args_0: import("../types.js").UseScriptContext<import("../registry/lemon-squeezy.js").LemonSqueezyApi>) => any;
@@ -45,19 +45,14 @@ type __VLS_Props = {
45
45
  */
46
46
  paypalScriptOptions?: Partial<PayPalInput>;
47
47
  };
48
- declare var __VLS_1: {
49
- sdkInstance: SdkInstance<Components[]> | undefined;
50
- }, __VLS_3: {}, __VLS_5: {}, __VLS_12: {}, __VLS_14: {};
51
- type __VLS_Slots = {} & {
52
- default?: (props: typeof __VLS_1) => any;
53
- } & {
54
- placeholder?: (props: typeof __VLS_3) => any;
55
- } & {
56
- loading?: (props: typeof __VLS_5) => any;
57
- } & {
58
- awaitingLoad?: (props: typeof __VLS_12) => any;
59
- } & {
60
- error?: (props: typeof __VLS_14) => any;
48
+ type __VLS_Slots = {
49
+ default?: (props: {
50
+ sdkInstance: SdkInstance<Components[]> | undefined;
51
+ }) => any;
52
+ placeholder?: () => any;
53
+ loading?: () => any;
54
+ awaitingLoad?: () => any;
55
+ error?: () => any;
61
56
  };
62
57
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
63
58
  /** The PayPal SDK v6 instance for creating payment sessions, checking eligibility, etc. */
@@ -16,6 +16,7 @@ const props = defineProps({
16
16
  paypalScriptOptions: { type: Object, required: false, default: () => ({}) }
17
17
  });
18
18
  const emit = defineEmits(["ready", "error"]);
19
+ defineSlots();
19
20
  const el = ref(null);
20
21
  const rootEl = ref(null);
21
22
  const ready = ref(false);
@@ -45,19 +45,14 @@ type __VLS_Props = {
45
45
  */
46
46
  paypalScriptOptions?: Partial<PayPalInput>;
47
47
  };
48
- declare var __VLS_1: {
49
- sdkInstance: SdkInstance<Components[]> | undefined;
50
- }, __VLS_3: {}, __VLS_5: {}, __VLS_12: {}, __VLS_14: {};
51
- type __VLS_Slots = {} & {
52
- default?: (props: typeof __VLS_1) => any;
53
- } & {
54
- placeholder?: (props: typeof __VLS_3) => any;
55
- } & {
56
- loading?: (props: typeof __VLS_5) => any;
57
- } & {
58
- awaitingLoad?: (props: typeof __VLS_12) => any;
59
- } & {
60
- error?: (props: typeof __VLS_14) => any;
48
+ type __VLS_Slots = {
49
+ default?: (props: {
50
+ sdkInstance: SdkInstance<Components[]> | undefined;
51
+ }) => any;
52
+ placeholder?: () => any;
53
+ loading?: () => any;
54
+ awaitingLoad?: () => any;
55
+ error?: () => any;
61
56
  };
62
57
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
63
58
  /** The PayPal SDK v6 instance for creating payment sessions, checking eligibility, etc. */
@@ -44,19 +44,14 @@ type __VLS_Props = {
44
44
  */
45
45
  paypalScriptOptions?: Partial<PayPalInput>;
46
46
  };
47
- declare var __VLS_1: {
48
- messagesSession: PayPalMessagesSession | undefined;
49
- }, __VLS_3: {}, __VLS_5: {}, __VLS_12: {}, __VLS_14: {};
50
- type __VLS_Slots = {} & {
51
- default?: (props: typeof __VLS_1) => any;
52
- } & {
53
- placeholder?: (props: typeof __VLS_3) => any;
54
- } & {
55
- loading?: (props: typeof __VLS_5) => any;
56
- } & {
57
- awaitingLoad?: (props: typeof __VLS_12) => any;
58
- } & {
59
- error?: (props: typeof __VLS_14) => any;
47
+ type __VLS_Slots = {
48
+ default?: (props: {
49
+ messagesSession: PayPalMessagesSession | undefined;
50
+ }) => any;
51
+ placeholder?: () => any;
52
+ loading?: () => any;
53
+ awaitingLoad?: () => any;
54
+ error?: () => any;
60
55
  };
61
56
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
62
57
  messagesSession: import("vue").ShallowRef<PayPalMessagesSession | undefined, PayPalMessagesSession | undefined>;
@@ -16,6 +16,7 @@ const props = defineProps({
16
16
  paypalScriptOptions: { type: Object, required: false, default: () => ({}) }
17
17
  });
18
18
  const emit = defineEmits(["ready", "error"]);
19
+ defineSlots();
19
20
  const el = ref(null);
20
21
  const rootEl = ref(null);
21
22
  const ready = ref(false);
@@ -44,19 +44,14 @@ type __VLS_Props = {
44
44
  */
45
45
  paypalScriptOptions?: Partial<PayPalInput>;
46
46
  };
47
- declare var __VLS_1: {
48
- messagesSession: PayPalMessagesSession | undefined;
49
- }, __VLS_3: {}, __VLS_5: {}, __VLS_12: {}, __VLS_14: {};
50
- type __VLS_Slots = {} & {
51
- default?: (props: typeof __VLS_1) => any;
52
- } & {
53
- placeholder?: (props: typeof __VLS_3) => any;
54
- } & {
55
- loading?: (props: typeof __VLS_5) => any;
56
- } & {
57
- awaitingLoad?: (props: typeof __VLS_12) => any;
58
- } & {
59
- error?: (props: typeof __VLS_14) => any;
47
+ type __VLS_Slots = {
48
+ default?: (props: {
49
+ messagesSession: PayPalMessagesSession | undefined;
50
+ }) => any;
51
+ placeholder?: () => any;
52
+ loading?: () => any;
53
+ awaitingLoad?: () => any;
54
+ error?: () => any;
60
55
  };
61
56
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
62
57
  messagesSession: import("vue").ShallowRef<PayPalMessagesSession | undefined, PayPalMessagesSession | undefined>;
@@ -7,15 +7,11 @@ type __VLS_Props = {
7
7
  customerEmail?: string;
8
8
  customerSessionClientSecret?: string;
9
9
  };
10
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
11
- type __VLS_Slots = {} & {
12
- loading?: (props: typeof __VLS_1) => any;
13
- } & {
14
- awaitingLoad?: (props: typeof __VLS_3) => any;
15
- } & {
16
- error?: (props: typeof __VLS_5) => any;
17
- } & {
18
- default?: (props: typeof __VLS_7) => any;
10
+ type __VLS_Slots = {
11
+ default?: () => any;
12
+ loading?: () => any;
13
+ awaitingLoad?: () => any;
14
+ error?: () => any;
19
15
  };
20
16
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
17
  error: () => any;
@@ -11,6 +11,7 @@ const props = defineProps({
11
11
  customerSessionClientSecret: { type: String, required: false }
12
12
  });
13
13
  const emit = defineEmits(["ready", "error"]);
14
+ defineSlots();
14
15
  const rootEl = ref();
15
16
  const containerEl = ref();
16
17
  const trigger = useScriptTriggerElement({ trigger: props.trigger, el: rootEl });
@@ -7,15 +7,11 @@ type __VLS_Props = {
7
7
  customerEmail?: string;
8
8
  customerSessionClientSecret?: string;
9
9
  };
10
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
11
- type __VLS_Slots = {} & {
12
- loading?: (props: typeof __VLS_1) => any;
13
- } & {
14
- awaitingLoad?: (props: typeof __VLS_3) => any;
15
- } & {
16
- error?: (props: typeof __VLS_5) => any;
17
- } & {
18
- default?: (props: typeof __VLS_7) => any;
10
+ type __VLS_Slots = {
11
+ default?: () => any;
12
+ loading?: () => any;
13
+ awaitingLoad?: () => any;
14
+ error?: () => any;
19
15
  };
20
16
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
17
  error: () => any;
@@ -44,17 +44,14 @@ type __VLS_Props = {
44
44
  */
45
45
  placeholderObjectFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
46
46
  };
47
- declare var __VLS_1: any, __VLS_3: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {};
48
- type __VLS_Slots = {} & {
49
- placeholder?: (props: typeof __VLS_1) => any;
50
- } & {
51
- loading?: (props: typeof __VLS_3) => any;
52
- } & {
53
- awaitingLoad?: (props: typeof __VLS_10) => any;
54
- } & {
55
- error?: (props: typeof __VLS_12) => any;
56
- } & {
57
- default?: (props: typeof __VLS_14) => any;
47
+ type __VLS_Slots = {
48
+ default?: () => any;
49
+ placeholder?: (props: {
50
+ placeholder: string | undefined;
51
+ }) => any;
52
+ loading?: () => any;
53
+ awaitingLoad?: () => any;
54
+ error?: () => any;
58
55
  };
59
56
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
60
57
  play: () => Promise<void> | undefined;
@@ -17,6 +17,7 @@ const props = defineProps({
17
17
  placeholderObjectFit: { type: String, required: false, default: "contain" }
18
18
  });
19
19
  const emits = defineEmits(["play", "playing", "pause", "ended", "timeupdate", "progress", "seeking", "seeked", "texttrackchange", "chapterchange", "cuechange", "cuepoint", "volumechange", "playbackratechange", "bufferstart", "bufferend", "error", "loaded", "durationchange", "fullscreenchange", "qualitychange", "camerachange", "resize", "enterpictureinpicture", "leavepictureinpicture"]);
20
+ defineSlots();
20
21
  const events = [
21
22
  "play",
22
23
  "playing",
@@ -44,17 +44,14 @@ type __VLS_Props = {
44
44
  */
45
45
  placeholderObjectFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
46
46
  };
47
- declare var __VLS_1: any, __VLS_3: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {};
48
- type __VLS_Slots = {} & {
49
- placeholder?: (props: typeof __VLS_1) => any;
50
- } & {
51
- loading?: (props: typeof __VLS_3) => any;
52
- } & {
53
- awaitingLoad?: (props: typeof __VLS_10) => any;
54
- } & {
55
- error?: (props: typeof __VLS_12) => any;
56
- } & {
57
- default?: (props: typeof __VLS_14) => any;
47
+ type __VLS_Slots = {
48
+ default?: () => any;
49
+ placeholder?: (props: {
50
+ placeholder: string | undefined;
51
+ }) => any;
52
+ loading?: () => any;
53
+ awaitingLoad?: () => any;
54
+ error?: () => any;
58
55
  };
59
56
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
60
57
  play: () => Promise<void> | undefined;
@@ -18,9 +18,15 @@ type __VLS_Props = {
18
18
  */
19
19
  rootAttrs?: HTMLAttributes;
20
20
  };
21
- declare var __VLS_1: {}, __VLS_3: {
22
- error: import("nuxt/app").NuxtError<unknown> | undefined;
23
- }, __VLS_5: {
21
+ type __VLS_Slots = {
22
+ default?: (props: NonNullable<typeof slotProps.value>) => any;
23
+ loading?: () => any;
24
+ error?: (props: {
25
+ error: typeof error.value;
26
+ }) => any;
27
+ };
28
+ declare const error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined, import("nuxt/app").NuxtError<unknown> | undefined>;
29
+ declare const slotProps: import("vue").ComputedRef<{
24
30
  tweet: XEmbedTweetData;
25
31
  userName: string;
26
32
  userHandle: string;
@@ -54,14 +60,7 @@ declare var __VLS_1: {}, __VLS_3: {
54
60
  isReply: boolean;
55
61
  replyToUser: string | undefined;
56
62
  proxyImage: (url: string) => string;
57
- };
58
- type __VLS_Slots = {} & {
59
- loading?: (props: typeof __VLS_1) => any;
60
- } & {
61
- error?: (props: typeof __VLS_3) => any;
62
- } & {
63
- default?: (props: typeof __VLS_5) => any;
64
- };
63
+ } | null>;
65
64
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
66
65
  tweet: import("vue").Ref<XEmbedTweetData | undefined, XEmbedTweetData | undefined>;
67
66
  status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
@@ -9,6 +9,7 @@ const props = defineProps({
9
9
  imageProxyEndpoint: { type: String, required: false, default: void 0 },
10
10
  rootAttrs: { type: Object, required: false }
11
11
  });
12
+ defineSlots();
12
13
  const prefix = scriptsPrefix();
13
14
  const apiEndpoint = computed(() => props.apiEndpoint || `${prefix}/embed/x`);
14
15
  const resolvedImageProxyEndpoint = computed(() => props.imageProxyEndpoint || `${prefix}/embed/x-image`);
@@ -18,9 +18,15 @@ type __VLS_Props = {
18
18
  */
19
19
  rootAttrs?: HTMLAttributes;
20
20
  };
21
- declare var __VLS_1: {}, __VLS_3: {
22
- error: import("nuxt/app").NuxtError<unknown> | undefined;
23
- }, __VLS_5: {
21
+ type __VLS_Slots = {
22
+ default?: (props: NonNullable<typeof slotProps.value>) => any;
23
+ loading?: () => any;
24
+ error?: (props: {
25
+ error: typeof error.value;
26
+ }) => any;
27
+ };
28
+ declare const error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined, import("nuxt/app").NuxtError<unknown> | undefined>;
29
+ declare const slotProps: import("vue").ComputedRef<{
24
30
  tweet: XEmbedTweetData;
25
31
  userName: string;
26
32
  userHandle: string;
@@ -54,14 +60,7 @@ declare var __VLS_1: {}, __VLS_3: {
54
60
  isReply: boolean;
55
61
  replyToUser: string | undefined;
56
62
  proxyImage: (url: string) => string;
57
- };
58
- type __VLS_Slots = {} & {
59
- loading?: (props: typeof __VLS_1) => any;
60
- } & {
61
- error?: (props: typeof __VLS_3) => any;
62
- } & {
63
- default?: (props: typeof __VLS_5) => any;
64
- };
63
+ } | null>;
65
64
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
66
65
  tweet: import("vue").Ref<XEmbedTweetData | undefined, XEmbedTweetData | undefined>;
67
66
  status: import("vue").Ref<import("nuxt/app").AsyncDataRequestStatus, import("nuxt/app").AsyncDataRequestStatus>;
@@ -27,19 +27,14 @@ type __VLS_Props = {
27
27
  */
28
28
  placeholderObjectFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
29
29
  };
30
- declare var __VLS_1: {
31
- placeholder: string;
32
- }, __VLS_3: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {};
33
- type __VLS_Slots = {} & {
34
- placeholder?: (props: typeof __VLS_1) => any;
35
- } & {
36
- loading?: (props: typeof __VLS_3) => any;
37
- } & {
38
- awaitingLoad?: (props: typeof __VLS_10) => any;
39
- } & {
40
- error?: (props: typeof __VLS_12) => any;
41
- } & {
42
- default?: (props: typeof __VLS_14) => any;
30
+ type __VLS_Slots = {
31
+ default?: () => any;
32
+ placeholder?: (props: {
33
+ placeholder: string;
34
+ }) => any;
35
+ loading?: () => any;
36
+ awaitingLoad?: () => any;
37
+ error?: () => any;
43
38
  };
44
39
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
45
40
  player: Ref<YT.Player | undefined, YT.Player | undefined>;
@@ -22,6 +22,7 @@ const props = defineProps({
22
22
  placeholderObjectFit: { type: String, required: false, default: "cover" }
23
23
  });
24
24
  const emits = defineEmits(["ready", "state-change", "playback-quality-change", "playback-rate-change", "error", "api-change"]);
25
+ defineSlots();
25
26
  const events = [
26
27
  "onReady",
27
28
  "onStateChange",
@@ -27,19 +27,14 @@ type __VLS_Props = {
27
27
  */
28
28
  placeholderObjectFit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
29
29
  };
30
- declare var __VLS_1: {
31
- placeholder: string;
32
- }, __VLS_3: {}, __VLS_10: {}, __VLS_12: {}, __VLS_14: {};
33
- type __VLS_Slots = {} & {
34
- placeholder?: (props: typeof __VLS_1) => any;
35
- } & {
36
- loading?: (props: typeof __VLS_3) => any;
37
- } & {
38
- awaitingLoad?: (props: typeof __VLS_10) => any;
39
- } & {
40
- error?: (props: typeof __VLS_12) => any;
41
- } & {
42
- default?: (props: typeof __VLS_14) => any;
30
+ type __VLS_Slots = {
31
+ default?: () => any;
32
+ placeholder?: (props: {
33
+ placeholder: string;
34
+ }) => any;
35
+ loading?: () => any;
36
+ awaitingLoad?: () => any;
37
+ error?: () => any;
43
38
  };
44
39
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
45
40
  player: Ref<YT.Player | undefined, YT.Player | undefined>;
@@ -241,9 +241,12 @@ export type NuxtConfigScriptRegistryEntry<T> = true | false | 'mock' | (Registry
241
241
  partytown?: boolean;
242
242
  privacy?: ProxyPrivacyInput;
243
243
  });
244
- export type NuxtConfigScriptRegistry<T extends keyof ScriptRegistry = keyof ScriptRegistry> = Partial<{
245
- [key in T]: NuxtConfigScriptRegistryEntry<ScriptRegistry[key]>;
246
- }> & Record<string & {}, NuxtConfigScriptRegistryEntry<any>>;
244
+ type _NuxtConfigScriptRegistryEntries = {
245
+ [K in keyof ScriptRegistry as K extends `${string}-npm` ? never : K]?: NuxtConfigScriptRegistryEntry<ScriptRegistry[K]>;
246
+ };
247
+ export interface NuxtConfigScriptRegistry extends _NuxtConfigScriptRegistryEntries {
248
+ [key: string]: any;
249
+ }
247
250
  export type UseFunctionType<T, U> = T extends {
248
251
  use: infer V;
249
252
  } ? V extends (...args: any) => any ? ReturnType<V> : U : U;