@plaidev/karte-action-sdk 1.0.25 → 1.0.26

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.
@@ -226,3 +226,6 @@ export { default as GridItem } from './GridItem.svelte';
226
226
  export { default as Flex } from './components/Flex.svelte';
227
227
  export { default as FlexItem } from './components/FlexItem.svelte';
228
228
  export { default as Modal } from './components/Modal.svelte';
229
+ export { default as TextBlock } from './components/TextBlock.svelte';
230
+ export { default as TextButtonBlock } from './components/TextButtonBlock.svelte';
231
+ export { default as ImageBlock } from './components/ImageBlock.svelte';
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { writable, get } from 'svelte/store';
2
- import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, mount_component, insert, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, attr, listen, noop, null_to_empty, svg_element, append, binding_callbacks } from 'svelte/internal';
2
+ import { SvelteComponent, init, safe_not_equal, append_styles, create_slot, create_component, space, mount_component, insert, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, detach, empty, group_outros, check_outros, component_subscribe, element, attr, listen, noop, null_to_empty, svg_element, append, binding_callbacks, src_url_equal } from 'svelte/internal';
3
3
  import { createEventDispatcher, onDestroy, onMount, setContext, getContext } from 'svelte';
4
4
 
5
5
  /**
@@ -310,20 +310,20 @@ const Repeats = ['repeat', 'space', 'round', 'no-repeat'];
310
310
 
311
311
  /* src/components/Normalize.svelte generated by Svelte v3.44.1 */
312
312
 
313
- function add_css$6(target) {
313
+ function add_css$9(target) {
314
314
  append_styles(target, "svelte-zmz1k7", "@import 'https://cdn.skypack.dev/normalize.css';");
315
315
  }
316
316
 
317
317
  class Normalize extends SvelteComponent {
318
318
  constructor(options) {
319
319
  super();
320
- init(this, options, null, null, safe_not_equal, {}, add_css$6);
320
+ init(this, options, null, null, safe_not_equal, {}, add_css$9);
321
321
  }
322
322
  }
323
323
 
324
324
  /* src/State.svelte generated by Svelte v3.44.1 */
325
325
 
326
- function create_fragment$9(ctx) {
326
+ function create_fragment$c(ctx) {
327
327
  let normalize;
328
328
  let t;
329
329
  let current;
@@ -382,7 +382,7 @@ function create_fragment$9(ctx) {
382
382
  };
383
383
  }
384
384
 
385
- function instance$9($$self, $$props, $$invalidate) {
385
+ function instance$c($$self, $$props, $$invalidate) {
386
386
  let { $$slots: slots = {}, $$scope } = $$props;
387
387
 
388
388
  $$self.$$set = $$props => {
@@ -395,7 +395,7 @@ function instance$9($$self, $$props, $$invalidate) {
395
395
  class State extends SvelteComponent {
396
396
  constructor(options) {
397
397
  super();
398
- init(this, options, instance$9, create_fragment$9, safe_not_equal, {});
398
+ init(this, options, instance$c, create_fragment$c, safe_not_equal, {});
399
399
  }
400
400
  }
401
401
 
@@ -448,7 +448,7 @@ function create_if_block$2(ctx) {
448
448
  };
449
449
  }
450
450
 
451
- function create_fragment$8(ctx) {
451
+ function create_fragment$b(ctx) {
452
452
  let if_block_anchor;
453
453
  let current;
454
454
  let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$2(ctx);
@@ -503,7 +503,7 @@ function create_fragment$8(ctx) {
503
503
  };
504
504
  }
505
505
 
506
- function instance$8($$self, $$props, $$invalidate) {
506
+ function instance$b($$self, $$props, $$invalidate) {
507
507
  let $state;
508
508
  component_subscribe($$self, state, $$value => $$invalidate(1, $state = $$value));
509
509
  let { $$slots: slots = {}, $$scope } = $$props;
@@ -520,13 +520,13 @@ function instance$8($$self, $$props, $$invalidate) {
520
520
  class StateItem extends SvelteComponent {
521
521
  constructor(options) {
522
522
  super();
523
- init(this, options, instance$8, create_fragment$8, safe_not_equal, { path: 0 });
523
+ init(this, options, instance$b, create_fragment$b, safe_not_equal, { path: 0 });
524
524
  }
525
525
  }
526
526
 
527
527
  /* src/components/BackgroundOverray.svelte generated by Svelte v3.44.1 */
528
528
 
529
- function add_css$5(target) {
529
+ function add_css$8(target) {
530
530
  append_styles(target, "svelte-1h4b6e3", ".background.svelte-1h4b6e3{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3)}");
531
531
  }
532
532
 
@@ -558,7 +558,7 @@ function create_if_block$1(ctx) {
558
558
  };
559
559
  }
560
560
 
561
- function create_fragment$7(ctx) {
561
+ function create_fragment$a(ctx) {
562
562
  let if_block_anchor;
563
563
  let if_block = /*backgroundOverray*/ ctx[0] && create_if_block$1(ctx);
564
564
 
@@ -594,7 +594,7 @@ function create_fragment$7(ctx) {
594
594
  };
595
595
  }
596
596
 
597
- function instance$7($$self, $$props, $$invalidate) {
597
+ function instance$a($$self, $$props, $$invalidate) {
598
598
  let { backgroundOverray = false } = $$props;
599
599
  const dispatch = createEventDispatcher();
600
600
  const click_handler = () => dispatch('click');
@@ -609,17 +609,17 @@ function instance$7($$self, $$props, $$invalidate) {
609
609
  class BackgroundOverray extends SvelteComponent {
610
610
  constructor(options) {
611
611
  super();
612
- init(this, options, instance$7, create_fragment$7, safe_not_equal, { backgroundOverray: 0 }, add_css$5);
612
+ init(this, options, instance$a, create_fragment$a, safe_not_equal, { backgroundOverray: 0 }, add_css$8);
613
613
  }
614
614
  }
615
615
 
616
616
  /* src/components/Animation.svelte generated by Svelte v3.44.1 */
617
617
 
618
- function add_css$4(target) {
618
+ function add_css$7(target) {
619
619
  append_styles(target, "svelte-sa0cac", "@keyframes svelte-sa0cac-fade{0%{opacity:0}100%{opacity:1}}.fade.svelte-sa0cac{animation-name:svelte-sa0cac-fade;animation-duration:1s}@keyframes svelte-sa0cac-bounce{0%{opacity:0;transform:scale(0.3)}50%{opacity:1;transform:scale(1.05)}70%{transform:scale(0.9)}100%{transform:scale(1)}}.bounce.svelte-sa0cac{animation-name:svelte-sa0cac-bounce;animation-duration:1s}@keyframes svelte-sa0cac-slide-down{0%{transform:translate3d(0, -100%, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-down.svelte-sa0cac{animation-name:svelte-sa0cac-slide-down;animation-duration:1s;animation-delay:0.1s}@keyframes svelte-sa0cac-slide-up{0%{transform:translate3d(0, 100%, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-up.svelte-sa0cac{animation-name:svelte-sa0cac-slide-up;animation-duration:1s;animation-delay:0.1s}@keyframes svelte-sa0cac-slide-left{0%{transform:translate3d(100%, 0, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-left.svelte-sa0cac{animation-name:svelte-sa0cac-slide-left;animation-duration:1s;animation-delay:0.1s}@keyframes svelte-sa0cac-slide-right{0%{transform:translate3d(-100%, 0, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-right.svelte-sa0cac{animation-name:svelte-sa0cac-slide-right;animation-duration:1s;animation-delay:0.1s}");
620
620
  }
621
621
 
622
- function create_fragment$6(ctx) {
622
+ function create_fragment$9(ctx) {
623
623
  let div;
624
624
  let current;
625
625
  const default_slot_template = /*#slots*/ ctx[3].default;
@@ -672,7 +672,7 @@ function create_fragment$6(ctx) {
672
672
  };
673
673
  }
674
674
 
675
- function instance$6($$self, $$props, $$invalidate) {
675
+ function instance$9($$self, $$props, $$invalidate) {
676
676
  let { $$slots: slots = {}, $$scope } = $$props;
677
677
  let { animation = 'none' } = $$props;
678
678
  const overwriteAnimation = isPreview() ? 'none' : animation;
@@ -688,13 +688,13 @@ function instance$6($$self, $$props, $$invalidate) {
688
688
  class Animation extends SvelteComponent {
689
689
  constructor(options) {
690
690
  super();
691
- init(this, options, instance$6, create_fragment$6, safe_not_equal, { animation: 1 }, add_css$4);
691
+ init(this, options, instance$9, create_fragment$9, safe_not_equal, { animation: 1 }, add_css$7);
692
692
  }
693
693
  }
694
694
 
695
695
  /* src/components/Modal.svelte generated by Svelte v3.44.1 */
696
696
 
697
- function add_css$3(target) {
697
+ function add_css$6(target) {
698
698
  append_styles(target, "svelte-1bxl6mz", ".modal.svelte-1bxl6mz{position:fixed;box-sizing:border-box;z-index:2147483647}.close.svelte-1bxl6mz{position:absolute;display:flex;justify-content:center;align-items:center;background-color:transparent;border:none;cursor:pointer;padding:0;transition:all 0.25s}.close.svelte-1bxl6mz:hover{transform:rotate(90deg)}");
699
699
  }
700
700
 
@@ -750,7 +750,7 @@ function create_if_block(ctx) {
750
750
  };
751
751
  }
752
752
 
753
- function create_fragment$5(ctx) {
753
+ function create_fragment$8(ctx) {
754
754
  let div;
755
755
  let t;
756
756
  let div_style_value;
@@ -842,7 +842,7 @@ function create_fragment$5(ctx) {
842
842
  };
843
843
  }
844
844
 
845
- function instance$5($$self, $$props, $$invalidate) {
845
+ function instance$8($$self, $$props, $$invalidate) {
846
846
  let pos;
847
847
  let margin;
848
848
  let $maximumZindex;
@@ -933,8 +933,8 @@ class Modal extends SvelteComponent {
933
933
  init(
934
934
  this,
935
935
  options,
936
- instance$5,
937
- create_fragment$5,
936
+ instance$8,
937
+ create_fragment$8,
938
938
  safe_not_equal,
939
939
  {
940
940
  closable: 0,
@@ -947,14 +947,14 @@ class Modal extends SvelteComponent {
947
947
  _style: 2,
948
948
  _closeStyle: 3
949
949
  },
950
- add_css$3
950
+ add_css$6
951
951
  );
952
952
  }
953
953
  }
954
954
 
955
955
  /* src/components/Grid.svelte generated by Svelte v3.44.1 */
956
956
 
957
- function create_fragment$4(ctx) {
957
+ function create_fragment$7(ctx) {
958
958
  let div;
959
959
  let current;
960
960
  const default_slot_template = /*#slots*/ ctx[8].default;
@@ -1012,7 +1012,7 @@ function create_fragment$4(ctx) {
1012
1012
  };
1013
1013
  }
1014
1014
 
1015
- function instance$4($$self, $$props, $$invalidate) {
1015
+ function instance$7($$self, $$props, $$invalidate) {
1016
1016
  let _style;
1017
1017
  let { $$slots: slots = {}, $$scope } = $$props;
1018
1018
  let { width = '512px' } = $$props;
@@ -1057,7 +1057,7 @@ class Grid extends SvelteComponent {
1057
1057
  constructor(options) {
1058
1058
  super();
1059
1059
 
1060
- init(this, options, instance$4, create_fragment$4, safe_not_equal, {
1060
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, {
1061
1061
  width: 1,
1062
1062
  height: 2,
1063
1063
  rows: 3,
@@ -1300,7 +1300,7 @@ function create_default_slot(ctx) {
1300
1300
  };
1301
1301
  }
1302
1302
 
1303
- function create_fragment$3(ctx) {
1303
+ function create_fragment$6(ctx) {
1304
1304
  let stateitem;
1305
1305
  let current;
1306
1306
 
@@ -1345,7 +1345,7 @@ function create_fragment$3(ctx) {
1345
1345
  };
1346
1346
  }
1347
1347
 
1348
- function instance$3($$self, $$props, $$invalidate) {
1348
+ function instance$6($$self, $$props, $$invalidate) {
1349
1349
  let { $$slots: slots = {}, $$scope } = $$props;
1350
1350
  let { path } = $$props;
1351
1351
  let { position = 'center' } = $$props;
@@ -1430,7 +1430,7 @@ class GridModalState extends SvelteComponent {
1430
1430
  constructor(options) {
1431
1431
  super();
1432
1432
 
1433
- init(this, options, instance$3, create_fragment$3, safe_not_equal, {
1433
+ init(this, options, instance$6, create_fragment$6, safe_not_equal, {
1434
1434
  path: 0,
1435
1435
  position: 1,
1436
1436
  modalMarginX: 2,
@@ -1455,11 +1455,11 @@ class GridModalState extends SvelteComponent {
1455
1455
 
1456
1456
  /* src/GridItem.svelte generated by Svelte v3.44.1 */
1457
1457
 
1458
- function add_css$2(target) {
1458
+ function add_css$5(target) {
1459
1459
  append_styles(target, "svelte-g0rfgr", ".grid-item.svelte-g0rfgr{word-break:break-all}");
1460
1460
  }
1461
1461
 
1462
- function create_fragment$2(ctx) {
1462
+ function create_fragment$5(ctx) {
1463
1463
  let div;
1464
1464
  let current;
1465
1465
  const default_slot_template = /*#slots*/ ctx[8].default;
@@ -1517,7 +1517,7 @@ function create_fragment$2(ctx) {
1517
1517
  };
1518
1518
  }
1519
1519
 
1520
- function instance$2($$self, $$props, $$invalidate) {
1520
+ function instance$5($$self, $$props, $$invalidate) {
1521
1521
  let _style;
1522
1522
  let { $$slots: slots = {}, $$scope } = $$props;
1523
1523
  let { x1 } = $$props;
@@ -1563,8 +1563,8 @@ class GridItem extends SvelteComponent {
1563
1563
  init(
1564
1564
  this,
1565
1565
  options,
1566
- instance$2,
1567
- create_fragment$2,
1566
+ instance$5,
1567
+ create_fragment$5,
1568
1568
  safe_not_equal,
1569
1569
  {
1570
1570
  x1: 1,
@@ -1574,18 +1574,18 @@ class GridItem extends SvelteComponent {
1574
1574
  z: 5,
1575
1575
  background: 6
1576
1576
  },
1577
- add_css$2
1577
+ add_css$5
1578
1578
  );
1579
1579
  }
1580
1580
  }
1581
1581
 
1582
1582
  /* src/components/Flex.svelte generated by Svelte v3.44.1 */
1583
1583
 
1584
- function add_css$1(target) {
1584
+ function add_css$4(target) {
1585
1585
  append_styles(target, "svelte-1e71ejc", ".flex.svelte-1e71ejc{display:flex}");
1586
1586
  }
1587
1587
 
1588
- function create_fragment$1(ctx) {
1588
+ function create_fragment$4(ctx) {
1589
1589
  let div;
1590
1590
  let div_style_value;
1591
1591
  let current;
@@ -1650,7 +1650,7 @@ function getFlexContext() {
1650
1650
  return getContext(FlexContextKey);
1651
1651
  }
1652
1652
 
1653
- function instance$1($$self, $$props, $$invalidate) {
1653
+ function instance$4($$self, $$props, $$invalidate) {
1654
1654
  let { $$slots: slots = {}, $$scope } = $$props;
1655
1655
  let { direction = 'row' } = $$props;
1656
1656
  let { width = '100%' } = $$props;
@@ -1676,8 +1676,8 @@ class Flex extends SvelteComponent {
1676
1676
  init(
1677
1677
  this,
1678
1678
  options,
1679
- instance$1,
1680
- create_fragment$1,
1679
+ instance$4,
1680
+ create_fragment$4,
1681
1681
  safe_not_equal,
1682
1682
  {
1683
1683
  direction: 0,
@@ -1685,18 +1685,18 @@ class Flex extends SvelteComponent {
1685
1685
  height: 2,
1686
1686
  _style: 3
1687
1687
  },
1688
- add_css$1
1688
+ add_css$4
1689
1689
  );
1690
1690
  }
1691
1691
  }
1692
1692
 
1693
1693
  /* src/components/FlexItem.svelte generated by Svelte v3.44.1 */
1694
1694
 
1695
- function add_css(target) {
1695
+ function add_css$3(target) {
1696
1696
  append_styles(target, "svelte-1p0bk1x", ".flex-item.svelte-1p0bk1x{max-width:100%;max-height:100%;position:relative;isolation:isolate}");
1697
1697
  }
1698
1698
 
1699
- function create_fragment(ctx) {
1699
+ function create_fragment$3(ctx) {
1700
1700
  let div;
1701
1701
  let current;
1702
1702
  const default_slot_template = /*#slots*/ ctx[4].default;
@@ -1754,7 +1754,7 @@ function create_fragment(ctx) {
1754
1754
  };
1755
1755
  }
1756
1756
 
1757
- function instance($$self, $$props, $$invalidate) {
1757
+ function instance$3($$self, $$props, $$invalidate) {
1758
1758
  let { $$slots: slots = {}, $$scope } = $$props;
1759
1759
  let { length } = $$props;
1760
1760
  let { _style = '' } = $$props;
@@ -1797,8 +1797,293 @@ function instance($$self, $$props, $$invalidate) {
1797
1797
  class FlexItem extends SvelteComponent {
1798
1798
  constructor(options) {
1799
1799
  super();
1800
- init(this, options, instance, create_fragment, safe_not_equal, { length: 1, _style: 2 }, add_css);
1800
+ init(this, options, instance$3, create_fragment$3, safe_not_equal, { length: 1, _style: 2 }, add_css$3);
1801
+ }
1802
+ }
1803
+
1804
+ /* src/components/TextBlock.svelte generated by Svelte v3.44.1 */
1805
+
1806
+ function add_css$2(target) {
1807
+ append_styles(target, "svelte-1xf20ux", ".text-block.svelte-1xf20ux{display:flex;width:100%;height:100%;box-sizing:border-box}.text-block-inner.svelte-1xf20ux{width:100%}");
1808
+ }
1809
+
1810
+ function create_fragment$2(ctx) {
1811
+ let div1;
1812
+ let div0;
1813
+ let raw_value = toBr(/*text*/ ctx[0]) + "";
1814
+
1815
+ return {
1816
+ c() {
1817
+ div1 = element("div");
1818
+ div0 = element("div");
1819
+ attr(div0, "class", "text-block-inner svelte-1xf20ux");
1820
+ attr(div1, "class", "text-block svelte-1xf20ux");
1821
+ attr(div1, "style", /*_style*/ ctx[1]);
1822
+ },
1823
+ m(target, anchor) {
1824
+ insert(target, div1, anchor);
1825
+ append(div1, div0);
1826
+ div0.innerHTML = raw_value;
1827
+ },
1828
+ p(ctx, [dirty]) {
1829
+ if (dirty & /*text*/ 1 && raw_value !== (raw_value = toBr(/*text*/ ctx[0]) + "")) div0.innerHTML = raw_value;
1830
+ if (dirty & /*_style*/ 2) {
1831
+ attr(div1, "style", /*_style*/ ctx[1]);
1832
+ }
1833
+ },
1834
+ i: noop,
1835
+ o: noop,
1836
+ d(detaching) {
1837
+ if (detaching) detach(div1);
1838
+ }
1839
+ };
1840
+ }
1841
+
1842
+ function instance$2($$self, $$props, $$invalidate) {
1843
+ let { text = 'サンプルSample' } = $$props;
1844
+ let { _style = 'font-size:12px;' } = $$props;
1845
+
1846
+ $$self.$$set = $$props => {
1847
+ if ('text' in $$props) $$invalidate(0, text = $$props.text);
1848
+ if ('_style' in $$props) $$invalidate(1, _style = $$props._style);
1849
+ };
1850
+
1851
+ return [text, _style];
1852
+ }
1853
+
1854
+ class TextBlock extends SvelteComponent {
1855
+ constructor(options) {
1856
+ super();
1857
+ init(this, options, instance$2, create_fragment$2, safe_not_equal, { text: 0, _style: 1 }, add_css$2);
1858
+ }
1859
+ }
1860
+
1861
+ /* src/components/TextButtonBlock.svelte generated by Svelte v3.44.1 */
1862
+
1863
+ function add_css$1(target) {
1864
+ append_styles(target, "svelte-1t5i3za", ".text-button-block.svelte-1t5i3za{width:100%;height:100%}.text-button.svelte-1t5i3za{display:flex;justify-content:center;align-items:center;width:100%;height:100%;background-color:transparent;border:none;box-shadow:transparent;box-sizing:border-box;cursor:pointer;transition:box-shadow 0.2s}.text-button.svelte-1t5i3za:active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button.svelte-1t5i3za:hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
1865
+ }
1866
+
1867
+ function create_fragment$1(ctx) {
1868
+ let div;
1869
+ let button;
1870
+ let raw_value = toBr(/*text*/ ctx[0]) + "";
1871
+ let mounted;
1872
+ let dispose;
1873
+
1874
+ return {
1875
+ c() {
1876
+ div = element("div");
1877
+ button = element("button");
1878
+ attr(button, "class", "text-button svelte-1t5i3za");
1879
+ attr(button, "style", /*_buttonStyle*/ ctx[1]);
1880
+ attr(div, "class", "text-button-block svelte-1t5i3za");
1881
+ attr(div, "style", /*_style*/ ctx[2]);
1882
+ },
1883
+ m(target, anchor) {
1884
+ insert(target, div, anchor);
1885
+ append(div, button);
1886
+ button.innerHTML = raw_value;
1887
+
1888
+ if (!mounted) {
1889
+ dispose = listen(button, "click", /*click*/ ctx[3]);
1890
+ mounted = true;
1891
+ }
1892
+ },
1893
+ p(ctx, [dirty]) {
1894
+ if (dirty & /*text*/ 1 && raw_value !== (raw_value = toBr(/*text*/ ctx[0]) + "")) button.innerHTML = raw_value;
1895
+ if (dirty & /*_buttonStyle*/ 2) {
1896
+ attr(button, "style", /*_buttonStyle*/ ctx[1]);
1897
+ }
1898
+
1899
+ if (dirty & /*_style*/ 4) {
1900
+ attr(div, "style", /*_style*/ ctx[2]);
1901
+ }
1902
+ },
1903
+ i: noop,
1904
+ o: noop,
1905
+ d(detaching) {
1906
+ if (detaching) detach(div);
1907
+ mounted = false;
1908
+ dispose();
1909
+ }
1910
+ };
1911
+ }
1912
+
1913
+ function instance$1($$self, $$props, $$invalidate) {
1914
+ let { text = 'クリック' } = $$props;
1915
+
1916
+ /**
1917
+ * {
1918
+ * "title": {"ja": "クリック", "en": "Click"},
1919
+ * "folder": {"ja": "クリック時の動作", "en": "Behavior when clicking"}
1920
+ * }
1921
+ */
1922
+ const dispatch = createEventDispatcher();
1923
+
1924
+ const click = () => {
1925
+ if (eventName) {
1926
+ send_event(eventName, eventValue);
1927
+ }
1928
+
1929
+ dispatch('click');
1930
+ };
1931
+
1932
+ let { eventName = '' } = $$props;
1933
+ let { eventValue = null } = $$props;
1934
+ let { _buttonStyle = 'color:#ffffff; font-size:14px; font-weight:bold; justify-content:center; align-items:center; padding:1px 6px 1px 6px;' } = $$props;
1935
+ let { _style = 'background-color: #000000; border-radius:4px;' } = $$props;
1936
+
1937
+ $$self.$$set = $$props => {
1938
+ if ('text' in $$props) $$invalidate(0, text = $$props.text);
1939
+ if ('eventName' in $$props) $$invalidate(4, eventName = $$props.eventName);
1940
+ if ('eventValue' in $$props) $$invalidate(5, eventValue = $$props.eventValue);
1941
+ if ('_buttonStyle' in $$props) $$invalidate(1, _buttonStyle = $$props._buttonStyle);
1942
+ if ('_style' in $$props) $$invalidate(2, _style = $$props._style);
1943
+ };
1944
+
1945
+ return [text, _buttonStyle, _style, click, eventName, eventValue];
1946
+ }
1947
+
1948
+ class TextButtonBlock extends SvelteComponent {
1949
+ constructor(options) {
1950
+ super();
1951
+
1952
+ init(
1953
+ this,
1954
+ options,
1955
+ instance$1,
1956
+ create_fragment$1,
1957
+ safe_not_equal,
1958
+ {
1959
+ text: 0,
1960
+ eventName: 4,
1961
+ eventValue: 5,
1962
+ _buttonStyle: 1,
1963
+ _style: 2
1964
+ },
1965
+ add_css$1
1966
+ );
1967
+ }
1968
+ }
1969
+
1970
+ /* src/components/ImageBlock.svelte generated by Svelte v3.44.1 */
1971
+
1972
+ function add_css(target) {
1973
+ append_styles(target, "svelte-95tcq4", ".image-block.svelte-95tcq4{display:flex;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;overflow:hidden;box-sizing:border-box}.image.svelte-95tcq4{width:100%;height:100%}");
1974
+ }
1975
+
1976
+ function create_fragment(ctx) {
1977
+ let div;
1978
+ let img;
1979
+ let img_src_value;
1980
+ let mounted;
1981
+ let dispose;
1982
+
1983
+ return {
1984
+ c() {
1985
+ div = element("div");
1986
+ img = element("img");
1987
+ attr(img, "class", "image svelte-95tcq4");
1988
+ attr(img, "loading", "lazy");
1989
+ attr(img, "width", "auto");
1990
+ attr(img, "height", "auto");
1991
+ attr(img, "style", /*_imageStyle*/ ctx[2]);
1992
+ if (!src_url_equal(img.src, img_src_value = /*src*/ ctx[0])) attr(img, "src", img_src_value);
1993
+ attr(img, "alt", /*alt*/ ctx[1]);
1994
+ attr(div, "class", "image-block svelte-95tcq4");
1995
+ attr(div, "style", /*_style*/ ctx[3]);
1996
+ },
1997
+ m(target, anchor) {
1998
+ insert(target, div, anchor);
1999
+ append(div, img);
2000
+
2001
+ if (!mounted) {
2002
+ dispose = listen(div, "click", /*click*/ ctx[4]);
2003
+ mounted = true;
2004
+ }
2005
+ },
2006
+ p(ctx, [dirty]) {
2007
+ if (dirty & /*_imageStyle*/ 4) {
2008
+ attr(img, "style", /*_imageStyle*/ ctx[2]);
2009
+ }
2010
+
2011
+ if (dirty & /*src*/ 1 && !src_url_equal(img.src, img_src_value = /*src*/ ctx[0])) {
2012
+ attr(img, "src", img_src_value);
2013
+ }
2014
+
2015
+ if (dirty & /*alt*/ 2) {
2016
+ attr(img, "alt", /*alt*/ ctx[1]);
2017
+ }
2018
+
2019
+ if (dirty & /*_style*/ 8) {
2020
+ attr(div, "style", /*_style*/ ctx[3]);
2021
+ }
2022
+ },
2023
+ i: noop,
2024
+ o: noop,
2025
+ d(detaching) {
2026
+ if (detaching) detach(div);
2027
+ mounted = false;
2028
+ dispose();
2029
+ }
2030
+ };
2031
+ }
2032
+
2033
+ function instance($$self, $$props, $$invalidate) {
2034
+ let { src = '' } = $$props;
2035
+ let { alt = '' } = $$props;
2036
+ let { eventName = '' } = $$props;
2037
+ let { eventValue = null } = $$props;
2038
+ let { _imageStyle = 'object-fit: contain;' } = $$props;
2039
+ let { _style = '' } = $$props;
2040
+
2041
+ /**
2042
+ * {"title": {"ja": "クリック", "en": "Click"}}
2043
+ */
2044
+ const dispatch = createEventDispatcher();
2045
+
2046
+ const click = () => {
2047
+ if (eventName) {
2048
+ send_event(eventName, eventValue);
2049
+ }
2050
+
2051
+ dispatch('click');
2052
+ };
2053
+
2054
+ $$self.$$set = $$props => {
2055
+ if ('src' in $$props) $$invalidate(0, src = $$props.src);
2056
+ if ('alt' in $$props) $$invalidate(1, alt = $$props.alt);
2057
+ if ('eventName' in $$props) $$invalidate(5, eventName = $$props.eventName);
2058
+ if ('eventValue' in $$props) $$invalidate(6, eventValue = $$props.eventValue);
2059
+ if ('_imageStyle' in $$props) $$invalidate(2, _imageStyle = $$props._imageStyle);
2060
+ if ('_style' in $$props) $$invalidate(3, _style = $$props._style);
2061
+ };
2062
+
2063
+ return [src, alt, _imageStyle, _style, click, eventName, eventValue];
2064
+ }
2065
+
2066
+ class ImageBlock extends SvelteComponent {
2067
+ constructor(options) {
2068
+ super();
2069
+
2070
+ init(
2071
+ this,
2072
+ options,
2073
+ instance,
2074
+ create_fragment,
2075
+ safe_not_equal,
2076
+ {
2077
+ src: 0,
2078
+ alt: 1,
2079
+ eventName: 5,
2080
+ eventValue: 6,
2081
+ _imageStyle: 2,
2082
+ _style: 3
2083
+ },
2084
+ add_css
2085
+ );
1801
2086
  }
1802
2087
  }
1803
2088
 
1804
- export { Alignments, AnimationStyleTranslations, AnimationStyles, Directions, Flex, FlexItem, GridItem, GridModalState, Justifies, LengthUnits, MediaQueries, Modal, ModalMarginTranslations, ModalPositionTranslations, ModalPositions, ObjectFits, PropTypes, Repeats, State, closeApp, closed, finalize, getMarginStyle, getPositionStyle, handleFocus, handleKeydown, hasSuffix, initialize, isPreview, linkTo, maximumZindex, moveTo, none, onScroll, onTime, randStr, send_event, setMiximumZindex, setPreviousFocus, state, toBr };
2089
+ export { Alignments, AnimationStyleTranslations, AnimationStyles, Directions, Flex, FlexItem, GridItem, GridModalState, ImageBlock, Justifies, LengthUnits, MediaQueries, Modal, ModalMarginTranslations, ModalPositionTranslations, ModalPositions, ObjectFits, PropTypes, Repeats, State, TextBlock, TextButtonBlock, closeApp, closed, finalize, getMarginStyle, getPositionStyle, handleFocus, handleKeydown, hasSuffix, initialize, isPreview, linkTo, maximumZindex, moveTo, none, onScroll, onTime, randStr, send_event, setMiximumZindex, setPreviousFocus, state, toBr };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",
@@ -23,7 +23,9 @@
23
23
  "LICENSE"
24
24
  ],
25
25
  "devDependencies": {
26
- "@plaidev/action-compiler": "^0.4.178",
26
+ "@plaidev/action-compiler": "^0.4.180",
27
+ "@plaidev/sender-types": "^0.4.140",
28
+ "@rollup/plugin-alias": "^3.1.9",
27
29
  "@rollup/plugin-commonjs": "^22.0.0",
28
30
  "@rollup/plugin-json": "^4.1.0",
29
31
  "@rollup/plugin-node-resolve": "^13.3.0",
@@ -31,17 +33,26 @@
31
33
  "@sveltejs/vite-plugin-svelte": "1.0.0-next.37",
32
34
  "@testing-library/svelte": "^3.1.3",
33
35
  "@tsconfig/svelte": "^2.0.1",
36
+ "@types/serve-static": "^1.13.10",
34
37
  "@vitest/ui": "latest",
38
+ "c8": "^7.12.0",
35
39
  "happy-dom": "^6.0.3",
36
- "jiti": "1.14.0",
40
+ "isomorphic-fetch": "3.0.0",
41
+ "jiti": "^1.14.0",
42
+ "listhen": "^0.2.13",
37
43
  "node-fetch": "2.6.7",
44
+ "picocolors": "^1.0.0",
45
+ "playwright": "^1.23.4",
38
46
  "rimraf": "^3.0.2",
39
47
  "rollup": "^2.75.7",
40
48
  "rollup-plugin-http-resolve": "4.0.1-alpha.0",
41
49
  "rollup-plugin-livereload": "^2.0.0",
42
50
  "rollup-plugin-serve": "^2.0.0",
43
51
  "rollup-plugin-svelte": "^7.1.0",
52
+ "rollup-plugin-terser": "7.0.2",
44
53
  "rollup-plugin-ts": "^2.0.7",
54
+ "serve": "^14.0.1",
55
+ "serve-static": "^1.15.0",
45
56
  "svelte": "3.44.1",
46
57
  "svelte-check": "^2.2.7",
47
58
  "svelte-preprocess": "4.9.8",
@@ -51,13 +62,19 @@
51
62
  },
52
63
  "scripts": {
53
64
  "dev": "jiti ./scripts/preview.ts",
65
+ "setup:default": "jiti ./scripts/default.ts",
66
+ "setup:template": "jiti ./scripts/template.ts",
67
+ "setup:concat": "jiti ./scripts/concat.ts",
68
+ "setup:compile": "jiti ./scripts/compile.ts",
69
+ "prepare": "npm run setup:default && npm run setup:template && npm run setup:concat",
54
70
  "build": "rollup -c",
55
71
  "build:watch": "rollup -c -w",
56
72
  "check": "svelte-check --tsconfig ./tsconfig.json",
57
- "test": "vitest run",
58
- "test:watch": "vitest",
59
- "test:ui": "vitest --ui",
60
- "coverage": "vitest run --coverage"
73
+ "test": "vitest run test",
74
+ "test:watch": "vitest test",
75
+ "test:ui": "vitest test --ui",
76
+ "test:e2e": "vitest run spec",
77
+ "coverage": "vitest run test --coverage"
61
78
  },
62
79
  "publishConfig": {
63
80
  "access": "public"