Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vime/svelte

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vime/svelte - npm Package Compare versions

Comparing version 2.1.2 to 3.0.0

LICENSE

71

CHANGELOG.md

@@ -1,6 +0,7 @@

# 🤖 Changelog
# Change Log
All notable changes will be listed here.
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [2.1.2](https://github.com/vime-js/vime/compare/@vime/svelte@2.1.1...@vime/svelte@2.1.2) (2020-09-07)
# 3.0.0 (2020-09-10)

@@ -10,38 +11,22 @@

* force native controls if custom ui cannot be shown ([2dac2e1](https://github.com/vime-js/vime/commit/2dac2e1fa2715851ab9fb0af4b4dcf18da2db746))
* make direct adapter calls when playback ready ([c45a548](https://github.com/vime-js/vime/commit/c45a548ae39254704c8feca9d1cbeb087a3e3c7c))
* settings has no bg color ([fd5a35e](https://github.com/vime-js/vime/commit/fd5a35e0c36730df224df9bf60e7470d9a911a54))
* throw error when `findRootPlayer` fails ([7a69721](https://github.com/vime-js/vime/commit/7a69721b898fbfe79878ff0abbc4a5ebeb2a1274))
* **angular:** silence implicit any errors ([8ef955b](https://github.com/vime-js/vime/commit/8ef955b05b652f557687b0eab72327236fb187cf))
* **svelte:** should import player store from dist ([93ebcbf](https://github.com/vime-js/vime/commit/93ebcbf6b1d4bfcfa2d906ac33a08188b73c0733))
* type error thrown when ui root not found ([6f0a19e](https://github.com/vime-js/vime/commit/6f0a19e1701381d4052d66d34826602fad8151a5))
* **svelte:** should import player store from dist ([6edd51b](https://github.com/vime-js/vime/commit/6edd51b43f0c5a4bbe7ca305b78237a082b96453))
* clean up changelogs ([093bcde](https://github.com/vime-js/vime/commit/093bcdec9baea44d46ec217dcdc51c4236eb255b))
* cleanup internals and integrations ([5e21c3b](https://github.com/vime-js/vime/commit/5e21c3b936e7e81fcfd60bb8b14e8f185b701039))
* include auto-gen code for libraries in git ([8bb7cf4](https://github.com/vime-js/vime/commit/8bb7cf4f655f67d2c5838a4f0c1ffb4390eaa8f2))
* packages should use @vime/core@^2 ([9703777](https://github.com/vime-js/vime/commit/9703777d9f1d6dec8f6db7ffb4010f96b0a7d421))
* type error thrown when ui root not found ([b638607](https://github.com/vime-js/vime/commit/b6386077a0266d7ecb6b5049271b45a69cc67f83))
* **core/default-controls:** no scrim on desktop video when using light theme ([1ee8dc0](https://github.com/vime-js/vime/commit/1ee8dc03990a6ec9750d3f46eedb863c1e14ac8a))
## [2.1.1](https://github.com/vime-js/vime/compare/@vime/svelte@2.1.0...@vime/svelte@2.1.1) (2020-09-05)
### Bug Fixes
* packages should use @vime/core@^2 ([ec5cebd](https://github.com/vime-js/vime/commit/ec5cebda41e67d5d10ba5cdfe8308ca7d9a660b3))
# [2.1.0](https://github.com/vime-js/vime/compare/@vime/svelte@2.0.0...@vime/svelte@2.1.0) (2020-09-04)
### Features
* skeleton loading animation ([0a36998](https://github.com/vime-js/vime/commit/0a369988be1c5e45674853cf55326c15b755839e))
* simplify control/icon styling ([7b9aaf6](https://github.com/vime-js/vime/commit/7b9aaf68890b560aad31f6b941082e46f9700930))
* skeleton loading animation ([5afb198](https://github.com/vime-js/vime/commit/5afb19856a8d918200df7a334593b29800358485))
* **providers/file:** watch source elements for changes and call load ([a4e0165](https://github.com/vime-js/vime/commit/a4e0165ee7b323e75694ae44eb52237eb4331c86))
* **svelte:** all new svelte bindings ([acfb943](https://github.com/vime-js/vime/commit/acfb943d12ebabe176dbd5785ea0a3a2b39cc758))
* **svelte:** new usePlayer helper ([f19823b](https://github.com/vime-js/vime/commit/f19823b80b6d3c2dadfd9ad7ba64ea7826fee0d7))
* improve all framework integrations ([3eb4de7](https://github.com/vime-js/vime/commit/3eb4de767c803e3631e7304d2266b9276ec2ecdc))
* new svelte store option ([e49f6f8](https://github.com/vime-js/vime/commit/e49f6f8e1e7e3fd3d521116fc20f641d8a233d6a))
# [2.0.0](https://github.com/vime-js/vime/compare/@vime/svelte@1.2.0...@vime/svelte@2.0.0) (2020-09-03)
### Bug Fixes
* **core/default-controls:** no scrim on desktop video when using light theme ([b94922d](https://github.com/vime-js/vime/commit/b94922db2e1c775838fcee3bb01c8ccd4a695129))
* cleanup internals and integrations ([1eda6b3](https://github.com/vime-js/vime/commit/1eda6b379dc4ad5829906fdb472a5a51a3c9090a))
### Features
* simplify control/icon styling ([f73ead8](https://github.com/vime-js/vime/commit/f73ead8703a9f00c3f308d9a0cc344709769d88b))
### BREAKING CHANGES

@@ -58,21 +43,1 @@

- The `mounted` and `destroyed` props have been replaced with `attached`.
## [1.1.1](https://github.com/vime-js/vime/compare/@vime/svelte@1.1.0...@vime/svelte@1.1.1) (2020-08-28)
### Bug Fixes
- clean up changelogs ([8be2f7e](https://github.com/vime-js/vime/commit/8be2f7ece922c9cad34f6ce5790d493c05de93e0))
# [1.1.0](https://github.com/vime-js/vime/compare/@vime/svelte@1.0.0...@vime/svelte@1.1.0) (2020-08-28)
### Features
- **svelte:** all new svelte bindings ([59e0c23](https://github.com/vime-js/vime/commit/59e0c235c52d89331f88d8a6d8195b2d8de17c89))
- **svelte:** new usePlayer helper ([ce56b1c](https://github.com/vime-js/vime/commit/ce56b1c847ff096dda0a4233b554030f1653c19c))
# 1.0.0 (2020-08-25)
### Features
- improve all framework integrations ([0ef1716](https://github.com/vime-js/vime/commit/0ef171655e8f02c277e0f00e90d87fdba8f74bb4))
- new svelte store option ([ce78e15](https://github.com/vime-js/vime/commit/ce78e1532da638fffacdf6988ec66c9390c31f5d))

@@ -9,4 +9,4 @@ "use strict";

let current;
const default_slot_template = /*$$slots*/ ctx[12].default;
const default_slot = internal_1.create_slot(default_slot_template, ctx, /*$$scope*/ ctx[11], null);
const default_slot_template = /*$$slots*/ ctx[13].default;
const default_slot = internal_1.create_slot(default_slot_template, ctx, /*$$scope*/ ctx[12], null);
return {

@@ -18,5 +18,6 @@ c() {

internal_1.set_custom_element_data(vime_default_settings, "pin", /*pin*/ ctx[0]);
internal_1.set_custom_element_data(vime_default_settings, "playback-rate", /*playbackRate*/ ctx[1]);
internal_1.set_custom_element_data(vime_default_settings, "playback-quality", /*playbackQuality*/ ctx[2]);
internal_1.set_custom_element_data(vime_default_settings, "is-captions-active", /*isCaptionsActive*/ ctx[3]);
internal_1.set_custom_element_data(vime_default_settings, "playback-ready", /*playbackReady*/ ctx[1]);
internal_1.set_custom_element_data(vime_default_settings, "playback-rate", /*playbackRate*/ ctx[2]);
internal_1.set_custom_element_data(vime_default_settings, "playback-quality", /*playbackQuality*/ ctx[3]);
internal_1.set_custom_element_data(vime_default_settings, "is-captions-active", /*isCaptionsActive*/ ctx[4]);
},

@@ -28,3 +29,3 @@ m(target, anchor) {

}
/*vime_default_settings_binding*/ ctx[13](vime_default_settings);
/*vime_default_settings_binding*/ ctx[14](vime_default_settings);
current = true;

@@ -34,4 +35,4 @@ },

if (default_slot) {
if (default_slot.p && dirty & /*$$scope*/ 2048) {
internal_1.update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[11], dirty, null, null);
if (default_slot.p && dirty & /*$$scope*/ 4096) {
internal_1.update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[12], dirty, null, null);
}

@@ -42,11 +43,14 @@ }

}
if (!current || dirty & /*playbackRate*/ 2) {
internal_1.set_custom_element_data(vime_default_settings, "playback-rate", /*playbackRate*/ ctx[1]);
if (!current || dirty & /*playbackReady*/ 2) {
internal_1.set_custom_element_data(vime_default_settings, "playback-ready", /*playbackReady*/ ctx[1]);
}
if (!current || dirty & /*playbackQuality*/ 4) {
internal_1.set_custom_element_data(vime_default_settings, "playback-quality", /*playbackQuality*/ ctx[2]);
if (!current || dirty & /*playbackRate*/ 4) {
internal_1.set_custom_element_data(vime_default_settings, "playback-rate", /*playbackRate*/ ctx[2]);
}
if (!current || dirty & /*isCaptionsActive*/ 8) {
internal_1.set_custom_element_data(vime_default_settings, "is-captions-active", /*isCaptionsActive*/ ctx[3]);
if (!current || dirty & /*playbackQuality*/ 8) {
internal_1.set_custom_element_data(vime_default_settings, "playback-quality", /*playbackQuality*/ ctx[3]);
}
if (!current || dirty & /*isCaptionsActive*/ 16) {
internal_1.set_custom_element_data(vime_default_settings, "is-captions-active", /*isCaptionsActive*/ ctx[4]);
}
},

@@ -68,3 +72,3 @@ i(local) {

default_slot.d(detaching);
/*vime_default_settings_binding*/ ctx[13](null);
/*vime_default_settings_binding*/ ctx[14](null);
}

@@ -79,2 +83,3 @@ };

let { i18n = undefined } = $$props;
let { playbackReady = undefined } = $$props;
let { playbackRate = undefined } = $$props;

@@ -89,7 +94,7 @@ let { playbackRates = undefined } = $$props;

svelte_1.onMount(() => {
$$invalidate(14, __mounted = true);
$$invalidate(15, __mounted = true);
});
const setProp = (prop, value) => {
if (__ref)
$$invalidate(4, __ref[prop] = value, __ref);
$$invalidate(5, __ref[prop] = value, __ref);
};

@@ -104,3 +109,3 @@ const onEvent = e => {

__ref = $$value;
$$invalidate(4, __ref);
$$invalidate(5, __ref);
});

@@ -112,38 +117,40 @@ }

if ("i18n" in $$props)
$$invalidate(5, i18n = $$props.i18n);
$$invalidate(6, i18n = $$props.i18n);
if ("playbackReady" in $$props)
$$invalidate(1, playbackReady = $$props.playbackReady);
if ("playbackRate" in $$props)
$$invalidate(1, playbackRate = $$props.playbackRate);
$$invalidate(2, playbackRate = $$props.playbackRate);
if ("playbackRates" in $$props)
$$invalidate(6, playbackRates = $$props.playbackRates);
$$invalidate(7, playbackRates = $$props.playbackRates);
if ("playbackQuality" in $$props)
$$invalidate(2, playbackQuality = $$props.playbackQuality);
$$invalidate(3, playbackQuality = $$props.playbackQuality);
if ("playbackQualities" in $$props)
$$invalidate(7, playbackQualities = $$props.playbackQualities);
$$invalidate(8, playbackQualities = $$props.playbackQualities);
if ("isCaptionsActive" in $$props)
$$invalidate(3, isCaptionsActive = $$props.isCaptionsActive);
$$invalidate(4, isCaptionsActive = $$props.isCaptionsActive);
if ("currentCaption" in $$props)
$$invalidate(8, currentCaption = $$props.currentCaption);
$$invalidate(9, currentCaption = $$props.currentCaption);
if ("textTracks" in $$props)
$$invalidate(9, textTracks = $$props.textTracks);
$$invalidate(10, textTracks = $$props.textTracks);
if ("$$scope" in $$props)
$$invalidate(11, $$scope = $$props.$$scope);
$$invalidate(12, $$scope = $$props.$$scope);
};
$$self.$$.update = () => {
if ($$self.$$.dirty & /*__mounted, i18n*/ 16416) {
if ($$self.$$.dirty & /*__mounted, i18n*/ 32832) {
$: if (__mounted)
setProp("i18n", i18n);
}
if ($$self.$$.dirty & /*__mounted, playbackRates*/ 16448) {
if ($$self.$$.dirty & /*__mounted, playbackRates*/ 32896) {
$: if (__mounted)
setProp("playbackRates", playbackRates);
}
if ($$self.$$.dirty & /*__mounted, playbackQualities*/ 16512) {
if ($$self.$$.dirty & /*__mounted, playbackQualities*/ 33024) {
$: if (__mounted)
setProp("playbackQualities", playbackQualities);
}
if ($$self.$$.dirty & /*__mounted, currentCaption*/ 16640) {
if ($$self.$$.dirty & /*__mounted, currentCaption*/ 33280) {
$: if (__mounted)
setProp("currentCaption", currentCaption);
}
if ($$self.$$.dirty & /*__mounted, textTracks*/ 16896) {
if ($$self.$$.dirty & /*__mounted, textTracks*/ 33792) {
$: if (__mounted)

@@ -155,2 +162,3 @@ setProp("textTracks", textTracks);

pin,
playbackReady,
playbackRate,

@@ -176,11 +184,12 @@ playbackQuality,

pin: 0,
i18n: 5,
playbackRate: 1,
playbackRates: 6,
playbackQuality: 2,
playbackQualities: 7,
isCaptionsActive: 3,
currentCaption: 8,
textTracks: 9,
getWebComponent: 10
i18n: 6,
playbackReady: 1,
playbackRate: 2,
playbackRates: 7,
playbackQuality: 3,
playbackQualities: 8,
isCaptionsActive: 4,
currentCaption: 9,
textTracks: 10,
getWebComponent: 11
});

@@ -195,3 +204,3 @@ }

get getWebComponent() {
return this.$$.ctx[10];
return this.$$.ctx[11];
}

@@ -198,0 +207,0 @@ }

@@ -7,4 +7,4 @@ /* generated by Svelte v3.24.1 */

let current;
const default_slot_template = /*$$slots*/ ctx[12].default;
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[11], null);
const default_slot_template = /*$$slots*/ ctx[13].default;
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[12], null);
return {

@@ -16,5 +16,6 @@ c() {

set_custom_element_data(vime_default_settings, "pin", /*pin*/ ctx[0]);
set_custom_element_data(vime_default_settings, "playback-rate", /*playbackRate*/ ctx[1]);
set_custom_element_data(vime_default_settings, "playback-quality", /*playbackQuality*/ ctx[2]);
set_custom_element_data(vime_default_settings, "is-captions-active", /*isCaptionsActive*/ ctx[3]);
set_custom_element_data(vime_default_settings, "playback-ready", /*playbackReady*/ ctx[1]);
set_custom_element_data(vime_default_settings, "playback-rate", /*playbackRate*/ ctx[2]);
set_custom_element_data(vime_default_settings, "playback-quality", /*playbackQuality*/ ctx[3]);
set_custom_element_data(vime_default_settings, "is-captions-active", /*isCaptionsActive*/ ctx[4]);
},

@@ -26,3 +27,3 @@ m(target, anchor) {

}
/*vime_default_settings_binding*/ ctx[13](vime_default_settings);
/*vime_default_settings_binding*/ ctx[14](vime_default_settings);
current = true;

@@ -32,4 +33,4 @@ },

if (default_slot) {
if (default_slot.p && dirty & /*$$scope*/ 2048) {
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[11], dirty, null, null);
if (default_slot.p && dirty & /*$$scope*/ 4096) {
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[12], dirty, null, null);
}

@@ -40,11 +41,14 @@ }

}
if (!current || dirty & /*playbackRate*/ 2) {
set_custom_element_data(vime_default_settings, "playback-rate", /*playbackRate*/ ctx[1]);
if (!current || dirty & /*playbackReady*/ 2) {
set_custom_element_data(vime_default_settings, "playback-ready", /*playbackReady*/ ctx[1]);
}
if (!current || dirty & /*playbackQuality*/ 4) {
set_custom_element_data(vime_default_settings, "playback-quality", /*playbackQuality*/ ctx[2]);
if (!current || dirty & /*playbackRate*/ 4) {
set_custom_element_data(vime_default_settings, "playback-rate", /*playbackRate*/ ctx[2]);
}
if (!current || dirty & /*isCaptionsActive*/ 8) {
set_custom_element_data(vime_default_settings, "is-captions-active", /*isCaptionsActive*/ ctx[3]);
if (!current || dirty & /*playbackQuality*/ 8) {
set_custom_element_data(vime_default_settings, "playback-quality", /*playbackQuality*/ ctx[3]);
}
if (!current || dirty & /*isCaptionsActive*/ 16) {
set_custom_element_data(vime_default_settings, "is-captions-active", /*isCaptionsActive*/ ctx[4]);
}
},

@@ -66,3 +70,3 @@ i(local) {

default_slot.d(detaching);
/*vime_default_settings_binding*/ ctx[13](null);
/*vime_default_settings_binding*/ ctx[14](null);
}

@@ -77,2 +81,3 @@ };

let { i18n = undefined } = $$props;
let { playbackReady = undefined } = $$props;
let { playbackRate = undefined } = $$props;

@@ -87,7 +92,7 @@ let { playbackRates = undefined } = $$props;

onMount(() => {
$$invalidate(14, __mounted = true);
$$invalidate(15, __mounted = true);
});
const setProp = (prop, value) => {
if (__ref)
$$invalidate(4, __ref[prop] = value, __ref);
$$invalidate(5, __ref[prop] = value, __ref);
};

@@ -102,3 +107,3 @@ const onEvent = e => {

__ref = $$value;
$$invalidate(4, __ref);
$$invalidate(5, __ref);
});

@@ -110,38 +115,40 @@ }

if ("i18n" in $$props)
$$invalidate(5, i18n = $$props.i18n);
$$invalidate(6, i18n = $$props.i18n);
if ("playbackReady" in $$props)
$$invalidate(1, playbackReady = $$props.playbackReady);
if ("playbackRate" in $$props)
$$invalidate(1, playbackRate = $$props.playbackRate);
$$invalidate(2, playbackRate = $$props.playbackRate);
if ("playbackRates" in $$props)
$$invalidate(6, playbackRates = $$props.playbackRates);
$$invalidate(7, playbackRates = $$props.playbackRates);
if ("playbackQuality" in $$props)
$$invalidate(2, playbackQuality = $$props.playbackQuality);
$$invalidate(3, playbackQuality = $$props.playbackQuality);
if ("playbackQualities" in $$props)
$$invalidate(7, playbackQualities = $$props.playbackQualities);
$$invalidate(8, playbackQualities = $$props.playbackQualities);
if ("isCaptionsActive" in $$props)
$$invalidate(3, isCaptionsActive = $$props.isCaptionsActive);
$$invalidate(4, isCaptionsActive = $$props.isCaptionsActive);
if ("currentCaption" in $$props)
$$invalidate(8, currentCaption = $$props.currentCaption);
$$invalidate(9, currentCaption = $$props.currentCaption);
if ("textTracks" in $$props)
$$invalidate(9, textTracks = $$props.textTracks);
$$invalidate(10, textTracks = $$props.textTracks);
if ("$$scope" in $$props)
$$invalidate(11, $$scope = $$props.$$scope);
$$invalidate(12, $$scope = $$props.$$scope);
};
$$self.$$.update = () => {
if ($$self.$$.dirty & /*__mounted, i18n*/ 16416) {
if ($$self.$$.dirty & /*__mounted, i18n*/ 32832) {
$: if (__mounted)
setProp("i18n", i18n);
}
if ($$self.$$.dirty & /*__mounted, playbackRates*/ 16448) {
if ($$self.$$.dirty & /*__mounted, playbackRates*/ 32896) {
$: if (__mounted)
setProp("playbackRates", playbackRates);
}
if ($$self.$$.dirty & /*__mounted, playbackQualities*/ 16512) {
if ($$self.$$.dirty & /*__mounted, playbackQualities*/ 33024) {
$: if (__mounted)
setProp("playbackQualities", playbackQualities);
}
if ($$self.$$.dirty & /*__mounted, currentCaption*/ 16640) {
if ($$self.$$.dirty & /*__mounted, currentCaption*/ 33280) {
$: if (__mounted)
setProp("currentCaption", currentCaption);
}
if ($$self.$$.dirty & /*__mounted, textTracks*/ 16896) {
if ($$self.$$.dirty & /*__mounted, textTracks*/ 33792) {
$: if (__mounted)

@@ -153,2 +160,3 @@ setProp("textTracks", textTracks);

pin,
playbackReady,
playbackRate,

@@ -174,11 +182,12 @@ playbackQuality,

pin: 0,
i18n: 5,
playbackRate: 1,
playbackRates: 6,
playbackQuality: 2,
playbackQualities: 7,
isCaptionsActive: 3,
currentCaption: 8,
textTracks: 9,
getWebComponent: 10
i18n: 6,
playbackReady: 1,
playbackRate: 2,
playbackRates: 7,
playbackQuality: 3,
playbackQualities: 8,
isCaptionsActive: 4,
currentCaption: 9,
textTracks: 10,
getWebComponent: 11
});

@@ -193,3 +202,3 @@ }

get getWebComponent() {
return this.$$.ctx[10];
return this.$$.ctx[11];
}

@@ -196,0 +205,0 @@ }

@@ -9,2 +9,4 @@ import { Components } from '@vime/core';

/** */
playbackReady?: Components.VimeDefaultSettings["playbackReady"];
/** */
playbackRate?: Components.VimeDefaultSettings["playbackRate"];

@@ -11,0 +13,0 @@ /** */

@@ -7,3 +7,3 @@ import { Components } from '@vime/core';

/** Pins the settings to the defined position inside the video player. This has no effect when
the view is of type `audio`, it will always be `bottomRight`. */
the view is of type `audio` (always `bottomRight`) and on mobile devices (always bottom sheet). */
pin?: Components.VimeSettings["pin"];

@@ -10,0 +10,0 @@ /** Whether the settings menu is opened/closed. */

{
"name": "@vime/svelte",
"version": "2.1.2",
"version": "3.0.0",
"description": "Collection of Svelte components to build and customize your own media player.",

@@ -25,9 +25,8 @@ "license": "MIT",

"scripts": {
"build": "rimraf dist && npm run build:cjs && npm run build:esm",
"build": "rimraf dist && yarn build:cjs && yarn build:esm",
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"build:esm": "tsc --module es6 --outDir dist/esm",
"release": "semantic-release -e ../../scripts/semantic-release"
"build:esm": "tsc --module es6 --outDir dist/esm"
},
"dependencies": {
"@vime/core": "^2.1.0"
"@vime/core": "^3.0.0"
},

@@ -59,3 +58,4 @@ "devDependencies": {

"custom"
]
],
"gitHead": "3f8329f6c748e7ec625c1dcba4601615705804e0"
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc