@plaidev/karte-action-sdk 1.1.115-27927763.3e066f76 → 1.1.115-27927870.66d22842

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.
@@ -4613,7 +4613,7 @@ class ListItem extends SvelteComponent {
4613
4613
  /* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
4614
4614
 
4615
4615
  function add_css$b(target) {
4616
- append_styles(target, "svelte-k86zna", ".embed.svelte-k86zna{position:relative;box-shadow:0 1px rgba(0, 0, 0, 0.06);padding-top:56.25%;overflow:hidden}.embed.svelte-k86zna iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
4616
+ append_styles(target, "svelte-17rkg8u", ".embed.svelte-17rkg8u{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%}.embed.svelte-17rkg8u iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
4617
4617
  }
4618
4618
 
4619
4619
  function create_fragment$c(ctx) {
@@ -4631,7 +4631,7 @@ function create_fragment$c(ctx) {
4631
4631
  this.h();
4632
4632
  },
4633
4633
  h() {
4634
- attr(div, "class", "embed svelte-k86zna");
4634
+ attr(div, "class", "embed svelte-17rkg8u");
4635
4635
  attr(div, "style", /*_style*/ ctx[1]);
4636
4636
  },
4637
4637
  m(target, anchor) {
@@ -4654,7 +4654,7 @@ function create_fragment$c(ctx) {
4654
4654
 
4655
4655
  function instance$c($$self, $$props, $$invalidate) {
4656
4656
  let { code } = $$props;
4657
- let { _style = '' } = $$props;
4657
+ let { _style = "" } = $$props;
4658
4658
 
4659
4659
  $$self.$$set = $$props => {
4660
4660
  if ('code' in $$props) $$invalidate(0, code = $$props.code);
@@ -4674,7 +4674,7 @@ class EmbedElement extends SvelteComponent {
4674
4674
  /* src/components/MovieYouTubeElement.svelte generated by Svelte v3.53.1 */
4675
4675
 
4676
4676
  function add_css$a(target) {
4677
- append_styles(target, "svelte-k86zna", ".embed.svelte-k86zna{position:relative;box-shadow:0 1px rgba(0, 0, 0, 0.06);padding-top:56.25%;overflow:hidden}.embed.svelte-k86zna iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
4677
+ append_styles(target, "svelte-17rkg8u", ".embed.svelte-17rkg8u{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%}.embed.svelte-17rkg8u iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
4678
4678
  }
4679
4679
 
4680
4680
  function create_fragment$b(ctx) {
@@ -4697,7 +4697,7 @@ function create_fragment$b(ctx) {
4697
4697
  },
4698
4698
  h() {
4699
4699
  attr(div0, "class", "karte-player");
4700
- attr(div1, "class", "embed svelte-k86zna");
4700
+ attr(div1, "class", "embed svelte-17rkg8u");
4701
4701
  attr(div1, "style", /*_style*/ ctx[0]);
4702
4702
  },
4703
4703
  m(target, anchor) {
@@ -4722,8 +4722,8 @@ function create_fragment$b(ctx) {
4722
4722
  function instance$b($$self, $$props, $$invalidate) {
4723
4723
  let $system;
4724
4724
  component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
4725
- let { videoId } = $$props;
4726
- let { sendEvent } = $$props;
4725
+ let { videoId = "sSgN-L4DU0c" } = $$props;
4726
+ let { sendEvent = true } = $$props;
4727
4727
  let { autoplay = false } = $$props;
4728
4728
  let { loop = false } = $$props;
4729
4729
  let { mute = false } = $$props;
@@ -4917,7 +4917,7 @@ class MovieYouTubeElement extends SvelteComponent {
4917
4917
  /* src/components/MovieVimeoElement.svelte generated by Svelte v3.53.1 */
4918
4918
 
4919
4919
  function add_css$9(target) {
4920
- append_styles(target, "svelte-5l33p2", ".embed.svelte-5l33p2{position:relative;box-shadow:0 1px rgba(0, 0, 0, 0.06);padding-top:56.25%;overflow:hidden}.embed.svelte-5l33p2 iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
4920
+ append_styles(target, "svelte-17rkg8u", ".embed.svelte-17rkg8u{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%}.embed.svelte-17rkg8u iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
4921
4921
  }
4922
4922
 
4923
4923
  function create_fragment$a(ctx) {
@@ -4940,7 +4940,7 @@ function create_fragment$a(ctx) {
4940
4940
  },
4941
4941
  h() {
4942
4942
  attr(div0, "class", "karte-player");
4943
- attr(div1, "class", "embed svelte-5l33p2");
4943
+ attr(div1, "class", "embed svelte-17rkg8u");
4944
4944
  attr(div1, "style", /*_style*/ ctx[0]);
4945
4945
  },
4946
4946
  m(target, anchor) {
@@ -4965,18 +4965,18 @@ function create_fragment$a(ctx) {
4965
4965
  function instance$a($$self, $$props, $$invalidate) {
4966
4966
  let $system;
4967
4967
  component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
4968
- let { videoId } = $$props;
4969
- let { sendEvent } = $$props;
4968
+ let { videoId = "201239468" } = $$props;
4969
+ let { sendEvent = true } = $$props;
4970
4970
  let { autoplay = false } = $$props;
4971
4971
  let { loop = false } = $$props;
4972
4972
  let { mute = false } = $$props;
4973
- let { _style = '' } = $$props;
4973
+ let { _style = "" } = $$props;
4974
4974
 
4975
4975
  // @ts-ignore
4976
4976
  if (!window.Vimeo) {
4977
- const tag = document.createElement('script');
4978
- tag.src = 'https://player.vimeo.com/api/player.js';
4979
- const firstScriptTag = document.getElementsByTagName('script')[0];
4977
+ const tag = document.createElement("script");
4978
+ tag.src = "https://player.vimeo.com/api/player.js";
4979
+ const firstScriptTag = document.getElementsByTagName("script")[0];
4980
4980
  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
4981
4981
  }
4982
4982
 
@@ -5009,7 +5009,7 @@ function instance$a($$self, $$props, $$invalidate) {
5009
5009
  const playSeconds = Math.round((currentDate - startDate) / 1000);
5010
5010
  totalPlaySeconds += playSeconds;
5011
5011
 
5012
- sendMovieEvent('_movie_playtime', {
5012
+ sendMovieEvent("_movie_playtime", {
5013
5013
  seconds: playSeconds,
5014
5014
  total_seconds: totalPlaySeconds
5015
5015
  });
@@ -5026,7 +5026,7 @@ function instance$a($$self, $$props, $$invalidate) {
5026
5026
 
5027
5027
  if (!alreadyPlay) {
5028
5028
  alreadyPlay = true;
5029
- sendMovieEvent('_movie_play');
5029
+ sendMovieEvent("_movie_play");
5030
5030
  }
5031
5031
  }
5032
5032
 
@@ -5036,7 +5036,7 @@ function instance$a($$self, $$props, $$invalidate) {
5036
5036
  }
5037
5037
 
5038
5038
  function onFinish() {
5039
- sendMovieEvent('_movie_finish');
5039
+ sendMovieEvent("_movie_finish");
5040
5040
  sendPlaytime();
5041
5041
  startDate = null;
5042
5042
  }
@@ -5051,9 +5051,9 @@ function instance$a($$self, $$props, $$invalidate) {
5051
5051
  // @ts-ignore
5052
5052
  player = new window.Vimeo.Player(domRef, playerOptions);
5053
5053
 
5054
- player.on('play', onStart);
5055
- player.on('pause', onPause);
5056
- player.on('ended', onFinish);
5054
+ player.on("play", onStart);
5055
+ player.on("pause", onPause);
5056
+ player.on("ended", onFinish);
5057
5057
  onPlayerReady();
5058
5058
  }
5059
5059
 
@@ -5075,7 +5075,7 @@ function instance$a($$self, $$props, $$invalidate) {
5075
5075
  }
5076
5076
  });
5077
5077
 
5078
- window.addEventListener('beforeunload', () => {
5078
+ window.addEventListener("beforeunload", () => {
5079
5079
  sendPlaytime();
5080
5080
  });
5081
5081
 
package/dist/index.es.js CHANGED
@@ -4497,7 +4497,7 @@ class ListItem extends SvelteComponent {
4497
4497
  /* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
4498
4498
 
4499
4499
  function add_css$b(target) {
4500
- append_styles(target, "svelte-k86zna", ".embed.svelte-k86zna{position:relative;box-shadow:0 1px rgba(0, 0, 0, 0.06);padding-top:56.25%;overflow:hidden}.embed.svelte-k86zna iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
4500
+ append_styles(target, "svelte-17rkg8u", ".embed.svelte-17rkg8u{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%}.embed.svelte-17rkg8u iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
4501
4501
  }
4502
4502
 
4503
4503
  function create_fragment$c(ctx) {
@@ -4506,7 +4506,7 @@ function create_fragment$c(ctx) {
4506
4506
  return {
4507
4507
  c() {
4508
4508
  div = element("div");
4509
- attr(div, "class", "embed svelte-k86zna");
4509
+ attr(div, "class", "embed svelte-17rkg8u");
4510
4510
  attr(div, "style", /*_style*/ ctx[1]);
4511
4511
  },
4512
4512
  m(target, anchor) {
@@ -4529,7 +4529,7 @@ function create_fragment$c(ctx) {
4529
4529
 
4530
4530
  function instance$c($$self, $$props, $$invalidate) {
4531
4531
  let { code } = $$props;
4532
- let { _style = '' } = $$props;
4532
+ let { _style = "" } = $$props;
4533
4533
 
4534
4534
  $$self.$$set = $$props => {
4535
4535
  if ('code' in $$props) $$invalidate(0, code = $$props.code);
@@ -4549,7 +4549,7 @@ class EmbedElement extends SvelteComponent {
4549
4549
  /* src/components/MovieYouTubeElement.svelte generated by Svelte v3.53.1 */
4550
4550
 
4551
4551
  function add_css$a(target) {
4552
- append_styles(target, "svelte-k86zna", ".embed.svelte-k86zna{position:relative;box-shadow:0 1px rgba(0, 0, 0, 0.06);padding-top:56.25%;overflow:hidden}.embed.svelte-k86zna iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
4552
+ append_styles(target, "svelte-17rkg8u", ".embed.svelte-17rkg8u{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%}.embed.svelte-17rkg8u iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
4553
4553
  }
4554
4554
 
4555
4555
  function create_fragment$b(ctx) {
@@ -4561,7 +4561,7 @@ function create_fragment$b(ctx) {
4561
4561
  div1 = element("div");
4562
4562
  div0 = element("div");
4563
4563
  attr(div0, "class", "karte-player");
4564
- attr(div1, "class", "embed svelte-k86zna");
4564
+ attr(div1, "class", "embed svelte-17rkg8u");
4565
4565
  attr(div1, "style", /*_style*/ ctx[0]);
4566
4566
  },
4567
4567
  m(target, anchor) {
@@ -4586,8 +4586,8 @@ function create_fragment$b(ctx) {
4586
4586
  function instance$b($$self, $$props, $$invalidate) {
4587
4587
  let $system;
4588
4588
  component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
4589
- let { videoId } = $$props;
4590
- let { sendEvent } = $$props;
4589
+ let { videoId = "sSgN-L4DU0c" } = $$props;
4590
+ let { sendEvent = true } = $$props;
4591
4591
  let { autoplay = false } = $$props;
4592
4592
  let { loop = false } = $$props;
4593
4593
  let { mute = false } = $$props;
@@ -4781,7 +4781,7 @@ class MovieYouTubeElement extends SvelteComponent {
4781
4781
  /* src/components/MovieVimeoElement.svelte generated by Svelte v3.53.1 */
4782
4782
 
4783
4783
  function add_css$9(target) {
4784
- append_styles(target, "svelte-5l33p2", ".embed.svelte-5l33p2{position:relative;box-shadow:0 1px rgba(0, 0, 0, 0.06);padding-top:56.25%;overflow:hidden}.embed.svelte-5l33p2 iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
4784
+ append_styles(target, "svelte-17rkg8u", ".embed.svelte-17rkg8u{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%}.embed.svelte-17rkg8u iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
4785
4785
  }
4786
4786
 
4787
4787
  function create_fragment$a(ctx) {
@@ -4793,7 +4793,7 @@ function create_fragment$a(ctx) {
4793
4793
  div1 = element("div");
4794
4794
  div0 = element("div");
4795
4795
  attr(div0, "class", "karte-player");
4796
- attr(div1, "class", "embed svelte-5l33p2");
4796
+ attr(div1, "class", "embed svelte-17rkg8u");
4797
4797
  attr(div1, "style", /*_style*/ ctx[0]);
4798
4798
  },
4799
4799
  m(target, anchor) {
@@ -4818,18 +4818,18 @@ function create_fragment$a(ctx) {
4818
4818
  function instance$a($$self, $$props, $$invalidate) {
4819
4819
  let $system;
4820
4820
  component_subscribe($$self, system, $$value => $$invalidate(12, $system = $$value));
4821
- let { videoId } = $$props;
4822
- let { sendEvent } = $$props;
4821
+ let { videoId = "201239468" } = $$props;
4822
+ let { sendEvent = true } = $$props;
4823
4823
  let { autoplay = false } = $$props;
4824
4824
  let { loop = false } = $$props;
4825
4825
  let { mute = false } = $$props;
4826
- let { _style = '' } = $$props;
4826
+ let { _style = "" } = $$props;
4827
4827
 
4828
4828
  // @ts-ignore
4829
4829
  if (!window.Vimeo) {
4830
- const tag = document.createElement('script');
4831
- tag.src = 'https://player.vimeo.com/api/player.js';
4832
- const firstScriptTag = document.getElementsByTagName('script')[0];
4830
+ const tag = document.createElement("script");
4831
+ tag.src = "https://player.vimeo.com/api/player.js";
4832
+ const firstScriptTag = document.getElementsByTagName("script")[0];
4833
4833
  firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
4834
4834
  }
4835
4835
 
@@ -4862,7 +4862,7 @@ function instance$a($$self, $$props, $$invalidate) {
4862
4862
  const playSeconds = Math.round((currentDate - startDate) / 1000);
4863
4863
  totalPlaySeconds += playSeconds;
4864
4864
 
4865
- sendMovieEvent('_movie_playtime', {
4865
+ sendMovieEvent("_movie_playtime", {
4866
4866
  seconds: playSeconds,
4867
4867
  total_seconds: totalPlaySeconds
4868
4868
  });
@@ -4879,7 +4879,7 @@ function instance$a($$self, $$props, $$invalidate) {
4879
4879
 
4880
4880
  if (!alreadyPlay) {
4881
4881
  alreadyPlay = true;
4882
- sendMovieEvent('_movie_play');
4882
+ sendMovieEvent("_movie_play");
4883
4883
  }
4884
4884
  }
4885
4885
 
@@ -4889,7 +4889,7 @@ function instance$a($$self, $$props, $$invalidate) {
4889
4889
  }
4890
4890
 
4891
4891
  function onFinish() {
4892
- sendMovieEvent('_movie_finish');
4892
+ sendMovieEvent("_movie_finish");
4893
4893
  sendPlaytime();
4894
4894
  startDate = null;
4895
4895
  }
@@ -4904,9 +4904,9 @@ function instance$a($$self, $$props, $$invalidate) {
4904
4904
  // @ts-ignore
4905
4905
  player = new window.Vimeo.Player(domRef, playerOptions);
4906
4906
 
4907
- player.on('play', onStart);
4908
- player.on('pause', onPause);
4909
- player.on('ended', onFinish);
4907
+ player.on("play", onStart);
4908
+ player.on("pause", onPause);
4909
+ player.on("ended", onFinish);
4910
4910
  onPlayerReady();
4911
4911
  }
4912
4912
 
@@ -4928,7 +4928,7 @@ function instance$a($$self, $$props, $$invalidate) {
4928
4928
  }
4929
4929
  });
4930
4930
 
4931
- window.addEventListener('beforeunload', () => {
4931
+ window.addEventListener("beforeunload", () => {
4932
4932
  sendPlaytime();
4933
4933
  });
4934
4934
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.115-27927763.3e066f76",
3
+ "version": "1.1.115-27927870.66d22842",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",