@vime/svelte
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -6,2 +6,10 @@ # Change Log | ||
## [4.1.3](https://github.com/vime-js/vime/compare/v4.1.2...v4.1.3) (2020-10-01) | ||
**Note:** Version bump only for package @vime/svelte | ||
## [4.1.2](https://github.com/vime-js/vime/compare/v4.1.1...v4.1.2) (2020-09-26) | ||
@@ -8,0 +16,0 @@ |
@@ -11,4 +11,4 @@ "use strict"; | ||
let dispose; | ||
const default_slot_template = /*$$slots*/ ctx[6].default; | ||
const default_slot = internal_1.create_slot(default_slot_template, ctx, /*$$scope*/ ctx[5], null); | ||
const default_slot_template = /*$$slots*/ ctx[7].default; | ||
const default_slot = internal_1.create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null); | ||
return { | ||
@@ -20,3 +20,4 @@ c() { | ||
internal_1.set_custom_element_data(vime_spinner, "is-video-view", /*isVideoView*/ ctx[0]); | ||
internal_1.set_custom_element_data(vime_spinner, "buffering", /*buffering*/ ctx[1]); | ||
internal_1.set_custom_element_data(vime_spinner, "ready", /*ready*/ ctx[1]); | ||
internal_1.set_custom_element_data(vime_spinner, "buffering", /*buffering*/ ctx[2]); | ||
}, | ||
@@ -28,8 +29,8 @@ m(target, anchor) { | ||
} | ||
/*vime_spinner_binding*/ ctx[7](vime_spinner); | ||
/*vime_spinner_binding*/ ctx[8](vime_spinner); | ||
current = true; | ||
if (!mounted) { | ||
dispose = [ | ||
internal_1.listen(vime_spinner, "vWillShow", /*onEvent*/ ctx[3]), | ||
internal_1.listen(vime_spinner, "vWillHide", /*onEvent*/ ctx[3]) | ||
internal_1.listen(vime_spinner, "vWillShow", /*onEvent*/ ctx[4]), | ||
internal_1.listen(vime_spinner, "vWillHide", /*onEvent*/ ctx[4]) | ||
]; | ||
@@ -41,4 +42,4 @@ mounted = true; | ||
if (default_slot) { | ||
if (default_slot.p && dirty & /*$$scope*/ 32) { | ||
internal_1.update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[5], dirty, null, null); | ||
if (default_slot.p && dirty & /*$$scope*/ 64) { | ||
internal_1.update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[6], dirty, null, null); | ||
} | ||
@@ -49,5 +50,8 @@ } | ||
} | ||
if (!current || dirty & /*buffering*/ 2) { | ||
internal_1.set_custom_element_data(vime_spinner, "buffering", /*buffering*/ ctx[1]); | ||
if (!current || dirty & /*ready*/ 2) { | ||
internal_1.set_custom_element_data(vime_spinner, "ready", /*ready*/ ctx[1]); | ||
} | ||
if (!current || dirty & /*buffering*/ 4) { | ||
internal_1.set_custom_element_data(vime_spinner, "buffering", /*buffering*/ ctx[2]); | ||
} | ||
}, | ||
@@ -69,3 +73,3 @@ i(local) { | ||
default_slot.d(detaching); | ||
/*vime_spinner_binding*/ ctx[7](null); | ||
/*vime_spinner_binding*/ ctx[8](null); | ||
mounted = false; | ||
@@ -81,2 +85,3 @@ internal_1.run_all(dispose); | ||
let { isVideoView = undefined } = $$props; | ||
let { ready = undefined } = $$props; | ||
let { buffering = undefined } = $$props; | ||
@@ -89,3 +94,3 @@ const getWebComponent = () => __ref; | ||
if (__ref) | ||
$$invalidate(2, __ref[prop] = value, __ref); | ||
$$invalidate(3, __ref[prop] = value, __ref); | ||
}; | ||
@@ -100,3 +105,3 @@ const onEvent = e => { | ||
__ref = $$value; | ||
$$invalidate(2, __ref); | ||
$$invalidate(3, __ref); | ||
}); | ||
@@ -107,9 +112,12 @@ } | ||
$$invalidate(0, isVideoView = $$props.isVideoView); | ||
if ("ready" in $$props) | ||
$$invalidate(1, ready = $$props.ready); | ||
if ("buffering" in $$props) | ||
$$invalidate(1, buffering = $$props.buffering); | ||
$$invalidate(2, buffering = $$props.buffering); | ||
if ("$$scope" in $$props) | ||
$$invalidate(5, $$scope = $$props.$$scope); | ||
$$invalidate(6, $$scope = $$props.$$scope); | ||
}; | ||
return [ | ||
isVideoView, | ||
ready, | ||
buffering, | ||
@@ -129,4 +137,5 @@ __ref, | ||
isVideoView: 0, | ||
buffering: 1, | ||
getWebComponent: 4 | ||
ready: 1, | ||
buffering: 2, | ||
getWebComponent: 5 | ||
}); | ||
@@ -141,3 +150,3 @@ } | ||
get getWebComponent() { | ||
return this.$$.ctx[4]; | ||
return this.$$.ctx[5]; | ||
} | ||
@@ -144,0 +153,0 @@ } |
@@ -11,4 +11,4 @@ "use strict"; | ||
let dispose; | ||
const default_slot_template = /*$$slots*/ ctx[16].default; | ||
const default_slot = internal_1.create_slot(default_slot_template, ctx, /*$$scope*/ ctx[15], null); | ||
const default_slot_template = /*$$slots*/ ctx[17].default; | ||
const default_slot = internal_1.create_slot(default_slot_template, ctx, /*$$scope*/ ctx[16], null); | ||
return { | ||
@@ -24,7 +24,8 @@ c() { | ||
internal_1.set_custom_element_data(vime_vimeo, "language", /*language*/ ctx[4]); | ||
internal_1.set_custom_element_data(vime_vimeo, "autoplay", /*autoplay*/ ctx[5]); | ||
internal_1.set_custom_element_data(vime_vimeo, "controls", /*controls*/ ctx[6]); | ||
internal_1.set_custom_element_data(vime_vimeo, "loop", /*loop*/ ctx[7]); | ||
internal_1.set_custom_element_data(vime_vimeo, "muted", /*muted*/ ctx[8]); | ||
internal_1.set_custom_element_data(vime_vimeo, "playsinline", /*playsinline*/ ctx[9]); | ||
internal_1.set_custom_element_data(vime_vimeo, "aspect-ratio", /*aspectRatio*/ ctx[5]); | ||
internal_1.set_custom_element_data(vime_vimeo, "autoplay", /*autoplay*/ ctx[6]); | ||
internal_1.set_custom_element_data(vime_vimeo, "controls", /*controls*/ ctx[7]); | ||
internal_1.set_custom_element_data(vime_vimeo, "loop", /*loop*/ ctx[8]); | ||
internal_1.set_custom_element_data(vime_vimeo, "muted", /*muted*/ ctx[9]); | ||
internal_1.set_custom_element_data(vime_vimeo, "playsinline", /*playsinline*/ ctx[10]); | ||
}, | ||
@@ -36,6 +37,6 @@ m(target, anchor) { | ||
} | ||
/*vime_vimeo_binding*/ ctx[17](vime_vimeo); | ||
/*vime_vimeo_binding*/ ctx[18](vime_vimeo); | ||
current = true; | ||
if (!mounted) { | ||
dispose = internal_1.listen(vime_vimeo, "vLoadStart", /*onEvent*/ ctx[11]); | ||
dispose = internal_1.listen(vime_vimeo, "vLoadStart", /*onEvent*/ ctx[12]); | ||
mounted = true; | ||
@@ -46,4 +47,4 @@ } | ||
if (default_slot) { | ||
if (default_slot.p && dirty & /*$$scope*/ 32768) { | ||
internal_1.update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[15], dirty, null, null); | ||
if (default_slot.p && dirty & /*$$scope*/ 65536) { | ||
internal_1.update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[16], dirty, null, null); | ||
} | ||
@@ -66,17 +67,20 @@ } | ||
} | ||
if (!current || dirty & /*autoplay*/ 32) { | ||
internal_1.set_custom_element_data(vime_vimeo, "autoplay", /*autoplay*/ ctx[5]); | ||
if (!current || dirty & /*aspectRatio*/ 32) { | ||
internal_1.set_custom_element_data(vime_vimeo, "aspect-ratio", /*aspectRatio*/ ctx[5]); | ||
} | ||
if (!current || dirty & /*controls*/ 64) { | ||
internal_1.set_custom_element_data(vime_vimeo, "controls", /*controls*/ ctx[6]); | ||
if (!current || dirty & /*autoplay*/ 64) { | ||
internal_1.set_custom_element_data(vime_vimeo, "autoplay", /*autoplay*/ ctx[6]); | ||
} | ||
if (!current || dirty & /*loop*/ 128) { | ||
internal_1.set_custom_element_data(vime_vimeo, "loop", /*loop*/ ctx[7]); | ||
if (!current || dirty & /*controls*/ 128) { | ||
internal_1.set_custom_element_data(vime_vimeo, "controls", /*controls*/ ctx[7]); | ||
} | ||
if (!current || dirty & /*muted*/ 256) { | ||
internal_1.set_custom_element_data(vime_vimeo, "muted", /*muted*/ ctx[8]); | ||
if (!current || dirty & /*loop*/ 256) { | ||
internal_1.set_custom_element_data(vime_vimeo, "loop", /*loop*/ ctx[8]); | ||
} | ||
if (!current || dirty & /*playsinline*/ 512) { | ||
internal_1.set_custom_element_data(vime_vimeo, "playsinline", /*playsinline*/ ctx[9]); | ||
if (!current || dirty & /*muted*/ 512) { | ||
internal_1.set_custom_element_data(vime_vimeo, "muted", /*muted*/ ctx[9]); | ||
} | ||
if (!current || dirty & /*playsinline*/ 1024) { | ||
internal_1.set_custom_element_data(vime_vimeo, "playsinline", /*playsinline*/ ctx[10]); | ||
} | ||
}, | ||
@@ -98,3 +102,3 @@ i(local) { | ||
default_slot.d(detaching); | ||
/*vime_vimeo_binding*/ ctx[17](null); | ||
/*vime_vimeo_binding*/ ctx[18](null); | ||
mounted = false; | ||
@@ -114,2 +118,3 @@ dispose(); | ||
let { language = undefined } = $$props; | ||
let { aspectRatio = undefined } = $$props; | ||
let { autoplay = undefined } = $$props; | ||
@@ -124,7 +129,7 @@ let { controls = undefined } = $$props; | ||
svelte_1.onMount(() => { | ||
$$invalidate(18, __mounted = true); | ||
$$invalidate(19, __mounted = true); | ||
}); | ||
const setProp = (prop, value) => { | ||
if (__ref) | ||
$$invalidate(10, __ref[prop] = value, __ref); | ||
$$invalidate(11, __ref[prop] = value, __ref); | ||
}; | ||
@@ -139,3 +144,3 @@ const onEvent = e => { | ||
__ref = $$value; | ||
$$invalidate(10, __ref); | ||
$$invalidate(11, __ref); | ||
}); | ||
@@ -154,19 +159,21 @@ } | ||
$$invalidate(4, language = $$props.language); | ||
if ("aspectRatio" in $$props) | ||
$$invalidate(5, aspectRatio = $$props.aspectRatio); | ||
if ("autoplay" in $$props) | ||
$$invalidate(5, autoplay = $$props.autoplay); | ||
$$invalidate(6, autoplay = $$props.autoplay); | ||
if ("controls" in $$props) | ||
$$invalidate(6, controls = $$props.controls); | ||
$$invalidate(7, controls = $$props.controls); | ||
if ("logger" in $$props) | ||
$$invalidate(12, logger = $$props.logger); | ||
$$invalidate(13, logger = $$props.logger); | ||
if ("loop" in $$props) | ||
$$invalidate(7, loop = $$props.loop); | ||
$$invalidate(8, loop = $$props.loop); | ||
if ("muted" in $$props) | ||
$$invalidate(8, muted = $$props.muted); | ||
$$invalidate(9, muted = $$props.muted); | ||
if ("playsinline" in $$props) | ||
$$invalidate(9, playsinline = $$props.playsinline); | ||
$$invalidate(10, playsinline = $$props.playsinline); | ||
if ("$$scope" in $$props) | ||
$$invalidate(15, $$scope = $$props.$$scope); | ||
$$invalidate(16, $$scope = $$props.$$scope); | ||
}; | ||
$$self.$$.update = () => { | ||
if ($$self.$$.dirty & /*__mounted, logger*/ 266240) { | ||
if ($$self.$$.dirty & /*__mounted, logger*/ 532480) { | ||
$: if (__mounted) | ||
@@ -182,2 +189,3 @@ setProp("logger", logger); | ||
language, | ||
aspectRatio, | ||
autoplay, | ||
@@ -207,10 +215,11 @@ controls, | ||
language: 4, | ||
autoplay: 5, | ||
controls: 6, | ||
logger: 12, | ||
loop: 7, | ||
muted: 8, | ||
playsinline: 9, | ||
getAdapter: 13, | ||
getWebComponent: 14 | ||
aspectRatio: 5, | ||
autoplay: 6, | ||
controls: 7, | ||
logger: 13, | ||
loop: 8, | ||
muted: 9, | ||
playsinline: 10, | ||
getAdapter: 14, | ||
getWebComponent: 15 | ||
}); | ||
@@ -226,6 +235,6 @@ } | ||
get getAdapter() { | ||
return this.$$.ctx[13]; | ||
return this.$$.ctx[14]; | ||
} | ||
get getWebComponent() { | ||
return this.$$.ctx[14]; | ||
return this.$$.ctx[15]; | ||
} | ||
@@ -232,0 +241,0 @@ } |
@@ -9,4 +9,4 @@ /* generated by Svelte v3.24.1 */ | ||
let dispose; | ||
const default_slot_template = /*$$slots*/ ctx[6].default; | ||
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[5], null); | ||
const default_slot_template = /*$$slots*/ ctx[7].default; | ||
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null); | ||
return { | ||
@@ -18,3 +18,4 @@ c() { | ||
set_custom_element_data(vime_spinner, "is-video-view", /*isVideoView*/ ctx[0]); | ||
set_custom_element_data(vime_spinner, "buffering", /*buffering*/ ctx[1]); | ||
set_custom_element_data(vime_spinner, "ready", /*ready*/ ctx[1]); | ||
set_custom_element_data(vime_spinner, "buffering", /*buffering*/ ctx[2]); | ||
}, | ||
@@ -26,8 +27,8 @@ m(target, anchor) { | ||
} | ||
/*vime_spinner_binding*/ ctx[7](vime_spinner); | ||
/*vime_spinner_binding*/ ctx[8](vime_spinner); | ||
current = true; | ||
if (!mounted) { | ||
dispose = [ | ||
listen(vime_spinner, "vWillShow", /*onEvent*/ ctx[3]), | ||
listen(vime_spinner, "vWillHide", /*onEvent*/ ctx[3]) | ||
listen(vime_spinner, "vWillShow", /*onEvent*/ ctx[4]), | ||
listen(vime_spinner, "vWillHide", /*onEvent*/ ctx[4]) | ||
]; | ||
@@ -39,4 +40,4 @@ mounted = true; | ||
if (default_slot) { | ||
if (default_slot.p && dirty & /*$$scope*/ 32) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[5], dirty, null, null); | ||
if (default_slot.p && dirty & /*$$scope*/ 64) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[6], dirty, null, null); | ||
} | ||
@@ -47,5 +48,8 @@ } | ||
} | ||
if (!current || dirty & /*buffering*/ 2) { | ||
set_custom_element_data(vime_spinner, "buffering", /*buffering*/ ctx[1]); | ||
if (!current || dirty & /*ready*/ 2) { | ||
set_custom_element_data(vime_spinner, "ready", /*ready*/ ctx[1]); | ||
} | ||
if (!current || dirty & /*buffering*/ 4) { | ||
set_custom_element_data(vime_spinner, "buffering", /*buffering*/ ctx[2]); | ||
} | ||
}, | ||
@@ -67,3 +71,3 @@ i(local) { | ||
default_slot.d(detaching); | ||
/*vime_spinner_binding*/ ctx[7](null); | ||
/*vime_spinner_binding*/ ctx[8](null); | ||
mounted = false; | ||
@@ -79,2 +83,3 @@ run_all(dispose); | ||
let { isVideoView = undefined } = $$props; | ||
let { ready = undefined } = $$props; | ||
let { buffering = undefined } = $$props; | ||
@@ -87,3 +92,3 @@ const getWebComponent = () => __ref; | ||
if (__ref) | ||
$$invalidate(2, __ref[prop] = value, __ref); | ||
$$invalidate(3, __ref[prop] = value, __ref); | ||
}; | ||
@@ -98,3 +103,3 @@ const onEvent = e => { | ||
__ref = $$value; | ||
$$invalidate(2, __ref); | ||
$$invalidate(3, __ref); | ||
}); | ||
@@ -105,9 +110,12 @@ } | ||
$$invalidate(0, isVideoView = $$props.isVideoView); | ||
if ("ready" in $$props) | ||
$$invalidate(1, ready = $$props.ready); | ||
if ("buffering" in $$props) | ||
$$invalidate(1, buffering = $$props.buffering); | ||
$$invalidate(2, buffering = $$props.buffering); | ||
if ("$$scope" in $$props) | ||
$$invalidate(5, $$scope = $$props.$$scope); | ||
$$invalidate(6, $$scope = $$props.$$scope); | ||
}; | ||
return [ | ||
isVideoView, | ||
ready, | ||
buffering, | ||
@@ -127,4 +135,5 @@ __ref, | ||
isVideoView: 0, | ||
buffering: 1, | ||
getWebComponent: 4 | ||
ready: 1, | ||
buffering: 2, | ||
getWebComponent: 5 | ||
}); | ||
@@ -139,3 +148,3 @@ } | ||
get getWebComponent() { | ||
return this.$$.ctx[4]; | ||
return this.$$.ctx[5]; | ||
} | ||
@@ -142,0 +151,0 @@ } |
@@ -9,4 +9,4 @@ /* generated by Svelte v3.24.1 */ | ||
let dispose; | ||
const default_slot_template = /*$$slots*/ ctx[16].default; | ||
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[15], null); | ||
const default_slot_template = /*$$slots*/ ctx[17].default; | ||
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[16], null); | ||
return { | ||
@@ -22,7 +22,8 @@ c() { | ||
set_custom_element_data(vime_vimeo, "language", /*language*/ ctx[4]); | ||
set_custom_element_data(vime_vimeo, "autoplay", /*autoplay*/ ctx[5]); | ||
set_custom_element_data(vime_vimeo, "controls", /*controls*/ ctx[6]); | ||
set_custom_element_data(vime_vimeo, "loop", /*loop*/ ctx[7]); | ||
set_custom_element_data(vime_vimeo, "muted", /*muted*/ ctx[8]); | ||
set_custom_element_data(vime_vimeo, "playsinline", /*playsinline*/ ctx[9]); | ||
set_custom_element_data(vime_vimeo, "aspect-ratio", /*aspectRatio*/ ctx[5]); | ||
set_custom_element_data(vime_vimeo, "autoplay", /*autoplay*/ ctx[6]); | ||
set_custom_element_data(vime_vimeo, "controls", /*controls*/ ctx[7]); | ||
set_custom_element_data(vime_vimeo, "loop", /*loop*/ ctx[8]); | ||
set_custom_element_data(vime_vimeo, "muted", /*muted*/ ctx[9]); | ||
set_custom_element_data(vime_vimeo, "playsinline", /*playsinline*/ ctx[10]); | ||
}, | ||
@@ -34,6 +35,6 @@ m(target, anchor) { | ||
} | ||
/*vime_vimeo_binding*/ ctx[17](vime_vimeo); | ||
/*vime_vimeo_binding*/ ctx[18](vime_vimeo); | ||
current = true; | ||
if (!mounted) { | ||
dispose = listen(vime_vimeo, "vLoadStart", /*onEvent*/ ctx[11]); | ||
dispose = listen(vime_vimeo, "vLoadStart", /*onEvent*/ ctx[12]); | ||
mounted = true; | ||
@@ -44,4 +45,4 @@ } | ||
if (default_slot) { | ||
if (default_slot.p && dirty & /*$$scope*/ 32768) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[15], dirty, null, null); | ||
if (default_slot.p && dirty & /*$$scope*/ 65536) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[16], dirty, null, null); | ||
} | ||
@@ -64,17 +65,20 @@ } | ||
} | ||
if (!current || dirty & /*autoplay*/ 32) { | ||
set_custom_element_data(vime_vimeo, "autoplay", /*autoplay*/ ctx[5]); | ||
if (!current || dirty & /*aspectRatio*/ 32) { | ||
set_custom_element_data(vime_vimeo, "aspect-ratio", /*aspectRatio*/ ctx[5]); | ||
} | ||
if (!current || dirty & /*controls*/ 64) { | ||
set_custom_element_data(vime_vimeo, "controls", /*controls*/ ctx[6]); | ||
if (!current || dirty & /*autoplay*/ 64) { | ||
set_custom_element_data(vime_vimeo, "autoplay", /*autoplay*/ ctx[6]); | ||
} | ||
if (!current || dirty & /*loop*/ 128) { | ||
set_custom_element_data(vime_vimeo, "loop", /*loop*/ ctx[7]); | ||
if (!current || dirty & /*controls*/ 128) { | ||
set_custom_element_data(vime_vimeo, "controls", /*controls*/ ctx[7]); | ||
} | ||
if (!current || dirty & /*muted*/ 256) { | ||
set_custom_element_data(vime_vimeo, "muted", /*muted*/ ctx[8]); | ||
if (!current || dirty & /*loop*/ 256) { | ||
set_custom_element_data(vime_vimeo, "loop", /*loop*/ ctx[8]); | ||
} | ||
if (!current || dirty & /*playsinline*/ 512) { | ||
set_custom_element_data(vime_vimeo, "playsinline", /*playsinline*/ ctx[9]); | ||
if (!current || dirty & /*muted*/ 512) { | ||
set_custom_element_data(vime_vimeo, "muted", /*muted*/ ctx[9]); | ||
} | ||
if (!current || dirty & /*playsinline*/ 1024) { | ||
set_custom_element_data(vime_vimeo, "playsinline", /*playsinline*/ ctx[10]); | ||
} | ||
}, | ||
@@ -96,3 +100,3 @@ i(local) { | ||
default_slot.d(detaching); | ||
/*vime_vimeo_binding*/ ctx[17](null); | ||
/*vime_vimeo_binding*/ ctx[18](null); | ||
mounted = false; | ||
@@ -112,2 +116,3 @@ dispose(); | ||
let { language = undefined } = $$props; | ||
let { aspectRatio = undefined } = $$props; | ||
let { autoplay = undefined } = $$props; | ||
@@ -122,7 +127,7 @@ let { controls = undefined } = $$props; | ||
onMount(() => { | ||
$$invalidate(18, __mounted = true); | ||
$$invalidate(19, __mounted = true); | ||
}); | ||
const setProp = (prop, value) => { | ||
if (__ref) | ||
$$invalidate(10, __ref[prop] = value, __ref); | ||
$$invalidate(11, __ref[prop] = value, __ref); | ||
}; | ||
@@ -137,3 +142,3 @@ const onEvent = e => { | ||
__ref = $$value; | ||
$$invalidate(10, __ref); | ||
$$invalidate(11, __ref); | ||
}); | ||
@@ -152,19 +157,21 @@ } | ||
$$invalidate(4, language = $$props.language); | ||
if ("aspectRatio" in $$props) | ||
$$invalidate(5, aspectRatio = $$props.aspectRatio); | ||
if ("autoplay" in $$props) | ||
$$invalidate(5, autoplay = $$props.autoplay); | ||
$$invalidate(6, autoplay = $$props.autoplay); | ||
if ("controls" in $$props) | ||
$$invalidate(6, controls = $$props.controls); | ||
$$invalidate(7, controls = $$props.controls); | ||
if ("logger" in $$props) | ||
$$invalidate(12, logger = $$props.logger); | ||
$$invalidate(13, logger = $$props.logger); | ||
if ("loop" in $$props) | ||
$$invalidate(7, loop = $$props.loop); | ||
$$invalidate(8, loop = $$props.loop); | ||
if ("muted" in $$props) | ||
$$invalidate(8, muted = $$props.muted); | ||
$$invalidate(9, muted = $$props.muted); | ||
if ("playsinline" in $$props) | ||
$$invalidate(9, playsinline = $$props.playsinline); | ||
$$invalidate(10, playsinline = $$props.playsinline); | ||
if ("$$scope" in $$props) | ||
$$invalidate(15, $$scope = $$props.$$scope); | ||
$$invalidate(16, $$scope = $$props.$$scope); | ||
}; | ||
$$self.$$.update = () => { | ||
if ($$self.$$.dirty & /*__mounted, logger*/ 266240) { | ||
if ($$self.$$.dirty & /*__mounted, logger*/ 532480) { | ||
$: if (__mounted) | ||
@@ -180,2 +187,3 @@ setProp("logger", logger); | ||
language, | ||
aspectRatio, | ||
autoplay, | ||
@@ -205,10 +213,11 @@ controls, | ||
language: 4, | ||
autoplay: 5, | ||
controls: 6, | ||
logger: 12, | ||
loop: 7, | ||
muted: 8, | ||
playsinline: 9, | ||
getAdapter: 13, | ||
getWebComponent: 14 | ||
aspectRatio: 5, | ||
autoplay: 6, | ||
controls: 7, | ||
logger: 13, | ||
loop: 8, | ||
muted: 9, | ||
playsinline: 10, | ||
getAdapter: 14, | ||
getWebComponent: 15 | ||
}); | ||
@@ -224,6 +233,6 @@ } | ||
get getAdapter() { | ||
return this.$$.ctx[13]; | ||
return this.$$.ctx[14]; | ||
} | ||
get getWebComponent() { | ||
return this.$$.ctx[14]; | ||
return this.$$.ctx[15]; | ||
} | ||
@@ -230,0 +239,0 @@ } |
@@ -6,2 +6,4 @@ import { Components, JSX } from '@vime/core'; | ||
/** */ | ||
ready?: Components.VimeSpinner["ready"]; | ||
/** */ | ||
buffering?: Components.VimeSpinner["buffering"]; | ||
@@ -8,0 +10,0 @@ } |
@@ -15,2 +15,4 @@ import { Components, JSX } from '@vime/core'; | ||
/** */ | ||
aspectRatio?: Components.VimeVimeo["aspectRatio"]; | ||
/** */ | ||
autoplay?: Components.VimeVimeo["autoplay"]; | ||
@@ -17,0 +19,0 @@ /** */ |
{ | ||
"name": "@vime/svelte", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "Svelte bindings for the Vime media player.", | ||
@@ -30,3 +30,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@vime/core": "^4.1.2" | ||
"@vime/core": "^4.1.3" | ||
}, | ||
@@ -60,3 +60,3 @@ "devDependencies": { | ||
], | ||
"gitHead": "fb124a81c31b89e32390c99aa25b2b5326a5bd84" | ||
"gitHead": "3b7cef93e3fca82ad184a1f330144f699753f08c" | ||
} |
@@ -13,2 +13,5 @@ /* eslint-disable */ | ||
/** */ | ||
ready?: Components.VimeSpinner["ready"] | ||
/** */ | ||
buffering?: Components.VimeSpinner["buffering"] | ||
@@ -55,4 +58,4 @@ } | ||
let dispose; | ||
const default_slot_template = /*$$slots*/ ctx[6].default; | ||
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[5], null); | ||
const default_slot_template = /*$$slots*/ ctx[7].default; | ||
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[6], null); | ||
@@ -64,3 +67,4 @@ return { | ||
set_custom_element_data(vime_spinner, "is-video-view", /*isVideoView*/ ctx[0]); | ||
set_custom_element_data(vime_spinner, "buffering", /*buffering*/ ctx[1]); | ||
set_custom_element_data(vime_spinner, "ready", /*ready*/ ctx[1]); | ||
set_custom_element_data(vime_spinner, "buffering", /*buffering*/ ctx[2]); | ||
}, | ||
@@ -74,3 +78,3 @@ m(target, anchor) { | ||
/*vime_spinner_binding*/ ctx[7](vime_spinner); | ||
/*vime_spinner_binding*/ ctx[8](vime_spinner); | ||
current = true; | ||
@@ -80,4 +84,4 @@ | ||
dispose = [ | ||
listen(vime_spinner, "vWillShow", /*onEvent*/ ctx[3]), | ||
listen(vime_spinner, "vWillHide", /*onEvent*/ ctx[3]) | ||
listen(vime_spinner, "vWillShow", /*onEvent*/ ctx[4]), | ||
listen(vime_spinner, "vWillHide", /*onEvent*/ ctx[4]) | ||
]; | ||
@@ -90,4 +94,4 @@ | ||
if (default_slot) { | ||
if (default_slot.p && dirty & /*$$scope*/ 32) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[5], dirty, null, null); | ||
if (default_slot.p && dirty & /*$$scope*/ 64) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[6], dirty, null, null); | ||
} | ||
@@ -100,5 +104,9 @@ } | ||
if (!current || dirty & /*buffering*/ 2) { | ||
set_custom_element_data(vime_spinner, "buffering", /*buffering*/ ctx[1]); | ||
if (!current || dirty & /*ready*/ 2) { | ||
set_custom_element_data(vime_spinner, "ready", /*ready*/ ctx[1]); | ||
} | ||
if (!current || dirty & /*buffering*/ 4) { | ||
set_custom_element_data(vime_spinner, "buffering", /*buffering*/ ctx[2]); | ||
} | ||
}, | ||
@@ -117,3 +125,3 @@ i(local) { | ||
if (default_slot) default_slot.d(detaching); | ||
/*vime_spinner_binding*/ ctx[7](null); | ||
/*vime_spinner_binding*/ ctx[8](null); | ||
mounted = false; | ||
@@ -130,2 +138,3 @@ run_all(dispose); | ||
let { isVideoView = undefined } = $$props; | ||
let { ready = undefined } = $$props; | ||
let { buffering = undefined } = $$props; | ||
@@ -139,3 +148,3 @@ const getWebComponent = () => __ref; | ||
const setProp = (prop, value) => { | ||
if (__ref) $$invalidate(2, __ref[prop] = value, __ref); | ||
if (__ref) $$invalidate(3, __ref[prop] = value, __ref); | ||
}; | ||
@@ -153,3 +162,3 @@ | ||
__ref = $$value; | ||
$$invalidate(2, __ref); | ||
$$invalidate(3, __ref); | ||
}); | ||
@@ -160,4 +169,5 @@ } | ||
if ("isVideoView" in $$props) $$invalidate(0, isVideoView = $$props.isVideoView); | ||
if ("buffering" in $$props) $$invalidate(1, buffering = $$props.buffering); | ||
if ("$$scope" in $$props) $$invalidate(5, $$scope = $$props.$$scope); | ||
if ("ready" in $$props) $$invalidate(1, ready = $$props.ready); | ||
if ("buffering" in $$props) $$invalidate(2, buffering = $$props.buffering); | ||
if ("$$scope" in $$props) $$invalidate(6, $$scope = $$props.$$scope); | ||
}; | ||
@@ -167,2 +177,3 @@ | ||
isVideoView, | ||
ready, | ||
buffering, | ||
@@ -196,4 +207,5 @@ __ref, | ||
isVideoView: 0, | ||
buffering: 1, | ||
getWebComponent: 4 | ||
ready: 1, | ||
buffering: 2, | ||
getWebComponent: 5 | ||
}); | ||
@@ -203,3 +215,3 @@ } | ||
get getWebComponent(): HTMLVimeSpinnerElement | undefined { | ||
return this.$$.ctx[4]; | ||
return this.$$.ctx[5]; | ||
} | ||
@@ -206,0 +218,0 @@ } |
@@ -26,2 +26,5 @@ /* eslint-disable */ | ||
/** */ | ||
aspectRatio?: Components.VimeVimeo["aspectRatio"] | ||
/** */ | ||
autoplay?: Components.VimeVimeo["autoplay"] | ||
@@ -79,4 +82,4 @@ | ||
let dispose; | ||
const default_slot_template = /*$$slots*/ ctx[16].default; | ||
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[15], null); | ||
const default_slot_template = /*$$slots*/ ctx[17].default; | ||
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[16], null); | ||
@@ -92,7 +95,8 @@ return { | ||
set_custom_element_data(vime_vimeo, "language", /*language*/ ctx[4]); | ||
set_custom_element_data(vime_vimeo, "autoplay", /*autoplay*/ ctx[5]); | ||
set_custom_element_data(vime_vimeo, "controls", /*controls*/ ctx[6]); | ||
set_custom_element_data(vime_vimeo, "loop", /*loop*/ ctx[7]); | ||
set_custom_element_data(vime_vimeo, "muted", /*muted*/ ctx[8]); | ||
set_custom_element_data(vime_vimeo, "playsinline", /*playsinline*/ ctx[9]); | ||
set_custom_element_data(vime_vimeo, "aspect-ratio", /*aspectRatio*/ ctx[5]); | ||
set_custom_element_data(vime_vimeo, "autoplay", /*autoplay*/ ctx[6]); | ||
set_custom_element_data(vime_vimeo, "controls", /*controls*/ ctx[7]); | ||
set_custom_element_data(vime_vimeo, "loop", /*loop*/ ctx[8]); | ||
set_custom_element_data(vime_vimeo, "muted", /*muted*/ ctx[9]); | ||
set_custom_element_data(vime_vimeo, "playsinline", /*playsinline*/ ctx[10]); | ||
}, | ||
@@ -106,7 +110,7 @@ m(target, anchor) { | ||
/*vime_vimeo_binding*/ ctx[17](vime_vimeo); | ||
/*vime_vimeo_binding*/ ctx[18](vime_vimeo); | ||
current = true; | ||
if (!mounted) { | ||
dispose = listen(vime_vimeo, "vLoadStart", /*onEvent*/ ctx[11]); | ||
dispose = listen(vime_vimeo, "vLoadStart", /*onEvent*/ ctx[12]); | ||
mounted = true; | ||
@@ -117,4 +121,4 @@ } | ||
if (default_slot) { | ||
if (default_slot.p && dirty & /*$$scope*/ 32768) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[15], dirty, null, null); | ||
if (default_slot.p && dirty & /*$$scope*/ 65536) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[16], dirty, null, null); | ||
} | ||
@@ -143,21 +147,25 @@ } | ||
if (!current || dirty & /*autoplay*/ 32) { | ||
set_custom_element_data(vime_vimeo, "autoplay", /*autoplay*/ ctx[5]); | ||
if (!current || dirty & /*aspectRatio*/ 32) { | ||
set_custom_element_data(vime_vimeo, "aspect-ratio", /*aspectRatio*/ ctx[5]); | ||
} | ||
if (!current || dirty & /*controls*/ 64) { | ||
set_custom_element_data(vime_vimeo, "controls", /*controls*/ ctx[6]); | ||
if (!current || dirty & /*autoplay*/ 64) { | ||
set_custom_element_data(vime_vimeo, "autoplay", /*autoplay*/ ctx[6]); | ||
} | ||
if (!current || dirty & /*loop*/ 128) { | ||
set_custom_element_data(vime_vimeo, "loop", /*loop*/ ctx[7]); | ||
if (!current || dirty & /*controls*/ 128) { | ||
set_custom_element_data(vime_vimeo, "controls", /*controls*/ ctx[7]); | ||
} | ||
if (!current || dirty & /*muted*/ 256) { | ||
set_custom_element_data(vime_vimeo, "muted", /*muted*/ ctx[8]); | ||
if (!current || dirty & /*loop*/ 256) { | ||
set_custom_element_data(vime_vimeo, "loop", /*loop*/ ctx[8]); | ||
} | ||
if (!current || dirty & /*playsinline*/ 512) { | ||
set_custom_element_data(vime_vimeo, "playsinline", /*playsinline*/ ctx[9]); | ||
if (!current || dirty & /*muted*/ 512) { | ||
set_custom_element_data(vime_vimeo, "muted", /*muted*/ ctx[9]); | ||
} | ||
if (!current || dirty & /*playsinline*/ 1024) { | ||
set_custom_element_data(vime_vimeo, "playsinline", /*playsinline*/ ctx[10]); | ||
} | ||
}, | ||
@@ -176,3 +184,3 @@ i(local) { | ||
if (default_slot) default_slot.d(detaching); | ||
/*vime_vimeo_binding*/ ctx[17](null); | ||
/*vime_vimeo_binding*/ ctx[18](null); | ||
mounted = false; | ||
@@ -193,2 +201,3 @@ dispose(); | ||
let { language = undefined } = $$props; | ||
let { aspectRatio = undefined } = $$props; | ||
let { autoplay = undefined } = $$props; | ||
@@ -204,7 +213,7 @@ let { controls = undefined } = $$props; | ||
onMount(() => { | ||
$$invalidate(18, __mounted = true); | ||
$$invalidate(19, __mounted = true); | ||
}); | ||
const setProp = (prop, value) => { | ||
if (__ref) $$invalidate(10, __ref[prop] = value, __ref); | ||
if (__ref) $$invalidate(11, __ref[prop] = value, __ref); | ||
}; | ||
@@ -222,3 +231,3 @@ | ||
__ref = $$value; | ||
$$invalidate(10, __ref); | ||
$$invalidate(11, __ref); | ||
}); | ||
@@ -233,13 +242,14 @@ } | ||
if ("language" in $$props) $$invalidate(4, language = $$props.language); | ||
if ("autoplay" in $$props) $$invalidate(5, autoplay = $$props.autoplay); | ||
if ("controls" in $$props) $$invalidate(6, controls = $$props.controls); | ||
if ("logger" in $$props) $$invalidate(12, logger = $$props.logger); | ||
if ("loop" in $$props) $$invalidate(7, loop = $$props.loop); | ||
if ("muted" in $$props) $$invalidate(8, muted = $$props.muted); | ||
if ("playsinline" in $$props) $$invalidate(9, playsinline = $$props.playsinline); | ||
if ("$$scope" in $$props) $$invalidate(15, $$scope = $$props.$$scope); | ||
if ("aspectRatio" in $$props) $$invalidate(5, aspectRatio = $$props.aspectRatio); | ||
if ("autoplay" in $$props) $$invalidate(6, autoplay = $$props.autoplay); | ||
if ("controls" in $$props) $$invalidate(7, controls = $$props.controls); | ||
if ("logger" in $$props) $$invalidate(13, logger = $$props.logger); | ||
if ("loop" in $$props) $$invalidate(8, loop = $$props.loop); | ||
if ("muted" in $$props) $$invalidate(9, muted = $$props.muted); | ||
if ("playsinline" in $$props) $$invalidate(10, playsinline = $$props.playsinline); | ||
if ("$$scope" in $$props) $$invalidate(16, $$scope = $$props.$$scope); | ||
}; | ||
$$self.$$.update = () => { | ||
if ($$self.$$.dirty & /*__mounted, logger*/ 266240) { | ||
if ($$self.$$.dirty & /*__mounted, logger*/ 532480) { | ||
$: if (__mounted) setProp("logger", logger); | ||
@@ -255,2 +265,3 @@ } | ||
language, | ||
aspectRatio, | ||
autoplay, | ||
@@ -294,10 +305,11 @@ controls, | ||
language: 4, | ||
autoplay: 5, | ||
controls: 6, | ||
logger: 12, | ||
loop: 7, | ||
muted: 8, | ||
playsinline: 9, | ||
getAdapter: 13, | ||
getWebComponent: 14 | ||
aspectRatio: 5, | ||
autoplay: 6, | ||
controls: 7, | ||
logger: 13, | ||
loop: 8, | ||
muted: 9, | ||
playsinline: 10, | ||
getAdapter: 14, | ||
getWebComponent: 15 | ||
}); | ||
@@ -309,7 +321,7 @@ } | ||
get getAdapter(): Components.VimeVimeo["getAdapter"] { | ||
return this.$$.ctx[13]; | ||
return this.$$.ctx[14]; | ||
} | ||
get getWebComponent(): HTMLVimeVimeoElement | undefined { | ||
return this.$$.ctx[14]; | ||
return this.$$.ctx[15]; | ||
} | ||
@@ -316,0 +328,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2648406
30702
Updated@vime/core@^4.1.3