@plaidev/karte-action-sdk 1.1.157 → 1.1.158-28012700.23c1725b

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.
@@ -2510,18 +2510,6 @@ declare namespace widget {
2510
2510
  * @public
2511
2511
  */
2512
2512
  function loadGlobalStyle(href: string): Promise<any>;
2513
- /**
2514
- * {@link hashCode} generate hash with FNV-1a hash
2515
- *
2516
- * @param s - Inputed string
2517
- *
2518
- * @returns Hashed string
2519
- *
2520
- * @see https://stackoverflow.com/a/22429679
2521
- *
2522
- * @internal
2523
- */
2524
- function hashCode(s: string): string;
2525
2513
  // @internal
2526
2514
  function getCssVariables<Props extends _Props, Variables>(data: Writable<Props & Variables & ActionVariables & VariableQuery>): string;
2527
2515
  type _Props$0 = Props;
@@ -3939,7 +3939,7 @@ function create_fragment$r(ctx) {
3939
3939
  h() {
3940
3940
  attr(div0, "class", "grid-item-inner svelte-n7kdl3");
3941
3941
  attr(div1, "class", "grid-item svelte-n7kdl3");
3942
- attr(div1, "data-grid-item-id", /*id*/ ctx[0]);
3942
+ attr(div1, "data-grid-item-id", /*gridItemId*/ ctx[0]);
3943
3943
  attr(div1, "style", /*_style*/ ctx[1]);
3944
3944
  },
3945
3945
  m(target, anchor) {
@@ -3968,8 +3968,8 @@ function create_fragment$r(ctx) {
3968
3968
  }
3969
3969
  }
3970
3970
 
3971
- if (!current || dirty & /*id*/ 1) {
3972
- attr(div1, "data-grid-item-id", /*id*/ ctx[0]);
3971
+ if (!current || dirty & /*gridItemId*/ 1) {
3972
+ attr(div1, "data-grid-item-id", /*gridItemId*/ ctx[0]);
3973
3973
  }
3974
3974
 
3975
3975
  if (!current || dirty & /*_style*/ 2) {
@@ -4001,7 +4001,7 @@ function instance$r($$self, $$props, $$invalidate) {
4001
4001
  let { y2 } = $$props;
4002
4002
  let { z } = $$props;
4003
4003
  let { background = 'transparent' } = $$props;
4004
- let { id } = $$props;
4004
+ let { gridItemId } = $$props;
4005
4005
 
4006
4006
  onMount$1(() => {
4007
4007
  setMaximumZindex(z);
@@ -4014,7 +4014,7 @@ function instance$r($$self, $$props, $$invalidate) {
4014
4014
  if ('y2' in $$props) $$invalidate(5, y2 = $$props.y2);
4015
4015
  if ('z' in $$props) $$invalidate(6, z = $$props.z);
4016
4016
  if ('background' in $$props) $$invalidate(7, background = $$props.background);
4017
- if ('id' in $$props) $$invalidate(0, id = $$props.id);
4017
+ if ('gridItemId' in $$props) $$invalidate(0, gridItemId = $$props.gridItemId);
4018
4018
  if ('$$scope' in $$props) $$invalidate(8, $$scope = $$props.$$scope);
4019
4019
  };
4020
4020
 
@@ -4030,7 +4030,7 @@ function instance$r($$self, $$props, $$invalidate) {
4030
4030
  }
4031
4031
  };
4032
4032
 
4033
- return [id, _style, x1, x2, y1, y2, z, background, $$scope, slots];
4033
+ return [gridItemId, _style, x1, x2, y1, y2, z, background, $$scope, slots];
4034
4034
  }
4035
4035
 
4036
4036
  class GridItem extends SvelteComponent {
@@ -4050,7 +4050,7 @@ class GridItem extends SvelteComponent {
4050
4050
  y2: 5,
4051
4051
  z: 6,
4052
4052
  background: 7,
4053
- id: 0
4053
+ gridItemId: 0
4054
4054
  },
4055
4055
  add_css$p
4056
4056
  );
@@ -4065,7 +4065,7 @@ function get_each_context$6(ctx, list, i) {
4065
4065
  return child_ctx;
4066
4066
  }
4067
4067
 
4068
- // (12:2) {:else}
4068
+ // (13:2) {:else}
4069
4069
  function create_else_block$1(ctx) {
4070
4070
  let t_value = /*item*/ ctx[2] + "";
4071
4071
  let t;
@@ -4089,7 +4089,7 @@ function create_else_block$1(ctx) {
4089
4089
  };
4090
4090
  }
4091
4091
 
4092
- // (10:2) {#if item.match(regexp)}
4092
+ // (11:2) {#if item.match(regexp)}
4093
4093
  function create_if_block$4(ctx) {
4094
4094
  let br;
4095
4095
 
@@ -4110,7 +4110,7 @@ function create_if_block$4(ctx) {
4110
4110
  };
4111
4111
  }
4112
4112
 
4113
- // (9:0) {#each items as item}
4113
+ // (10:0) {#each items as item}
4114
4114
  function create_each_block$6(ctx) {
4115
4115
  let show_if;
4116
4116
  let if_block_anchor;
@@ -4234,7 +4234,8 @@ function instance$q($$self, $$props, $$invalidate) {
4234
4234
 
4235
4235
  $$self.$$.update = () => {
4236
4236
  if ($$self.$$.dirty & /*text*/ 2) {
4237
- $$invalidate(0, items = text.split(regexp));
4237
+ // numberが渡ってくるケースへ対処
4238
+ $$invalidate(0, items = text.toString().split(regexp));
4238
4239
  }
4239
4240
  };
4240
4241
 
@@ -2510,18 +2510,6 @@ declare namespace widget {
2510
2510
  * @public
2511
2511
  */
2512
2512
  function loadGlobalStyle(href: string): Promise<any>;
2513
- /**
2514
- * {@link hashCode} generate hash with FNV-1a hash
2515
- *
2516
- * @param s - Inputed string
2517
- *
2518
- * @returns Hashed string
2519
- *
2520
- * @see https://stackoverflow.com/a/22429679
2521
- *
2522
- * @internal
2523
- */
2524
- function hashCode(s: string): string;
2525
2513
  // @internal
2526
2514
  function getCssVariables<Props extends _Props, Variables>(data: Writable<Props & Variables & ActionVariables & VariableQuery>): string;
2527
2515
  type _Props$0 = Props;
package/dist/index.es.js CHANGED
@@ -3866,7 +3866,7 @@ function create_fragment$r(ctx) {
3866
3866
  if (default_slot) default_slot.c();
3867
3867
  attr(div0, "class", "grid-item-inner svelte-n7kdl3");
3868
3868
  attr(div1, "class", "grid-item svelte-n7kdl3");
3869
- attr(div1, "data-grid-item-id", /*id*/ ctx[0]);
3869
+ attr(div1, "data-grid-item-id", /*gridItemId*/ ctx[0]);
3870
3870
  attr(div1, "style", /*_style*/ ctx[1]);
3871
3871
  },
3872
3872
  m(target, anchor) {
@@ -3895,8 +3895,8 @@ function create_fragment$r(ctx) {
3895
3895
  }
3896
3896
  }
3897
3897
 
3898
- if (!current || dirty & /*id*/ 1) {
3899
- attr(div1, "data-grid-item-id", /*id*/ ctx[0]);
3898
+ if (!current || dirty & /*gridItemId*/ 1) {
3899
+ attr(div1, "data-grid-item-id", /*gridItemId*/ ctx[0]);
3900
3900
  }
3901
3901
 
3902
3902
  if (!current || dirty & /*_style*/ 2) {
@@ -3928,7 +3928,7 @@ function instance$r($$self, $$props, $$invalidate) {
3928
3928
  let { y2 } = $$props;
3929
3929
  let { z } = $$props;
3930
3930
  let { background = 'transparent' } = $$props;
3931
- let { id } = $$props;
3931
+ let { gridItemId } = $$props;
3932
3932
 
3933
3933
  onMount$1(() => {
3934
3934
  setMaximumZindex(z);
@@ -3941,7 +3941,7 @@ function instance$r($$self, $$props, $$invalidate) {
3941
3941
  if ('y2' in $$props) $$invalidate(5, y2 = $$props.y2);
3942
3942
  if ('z' in $$props) $$invalidate(6, z = $$props.z);
3943
3943
  if ('background' in $$props) $$invalidate(7, background = $$props.background);
3944
- if ('id' in $$props) $$invalidate(0, id = $$props.id);
3944
+ if ('gridItemId' in $$props) $$invalidate(0, gridItemId = $$props.gridItemId);
3945
3945
  if ('$$scope' in $$props) $$invalidate(8, $$scope = $$props.$$scope);
3946
3946
  };
3947
3947
 
@@ -3957,7 +3957,7 @@ function instance$r($$self, $$props, $$invalidate) {
3957
3957
  }
3958
3958
  };
3959
3959
 
3960
- return [id, _style, x1, x2, y1, y2, z, background, $$scope, slots];
3960
+ return [gridItemId, _style, x1, x2, y1, y2, z, background, $$scope, slots];
3961
3961
  }
3962
3962
 
3963
3963
  class GridItem extends SvelteComponent {
@@ -3977,7 +3977,7 @@ class GridItem extends SvelteComponent {
3977
3977
  y2: 5,
3978
3978
  z: 6,
3979
3979
  background: 7,
3980
- id: 0
3980
+ gridItemId: 0
3981
3981
  },
3982
3982
  add_css$p
3983
3983
  );
@@ -3992,7 +3992,7 @@ function get_each_context$6(ctx, list, i) {
3992
3992
  return child_ctx;
3993
3993
  }
3994
3994
 
3995
- // (12:2) {:else}
3995
+ // (13:2) {:else}
3996
3996
  function create_else_block$1(ctx) {
3997
3997
  let t_value = /*item*/ ctx[2] + "";
3998
3998
  let t;
@@ -4013,7 +4013,7 @@ function create_else_block$1(ctx) {
4013
4013
  };
4014
4014
  }
4015
4015
 
4016
- // (10:2) {#if item.match(regexp)}
4016
+ // (11:2) {#if item.match(regexp)}
4017
4017
  function create_if_block$4(ctx) {
4018
4018
  let br;
4019
4019
 
@@ -4031,7 +4031,7 @@ function create_if_block$4(ctx) {
4031
4031
  };
4032
4032
  }
4033
4033
 
4034
- // (9:0) {#each items as item}
4034
+ // (10:0) {#each items as item}
4035
4035
  function create_each_block$6(ctx) {
4036
4036
  let show_if;
4037
4037
  let if_block_anchor;
@@ -4144,7 +4144,8 @@ function instance$q($$self, $$props, $$invalidate) {
4144
4144
 
4145
4145
  $$self.$$.update = () => {
4146
4146
  if ($$self.$$.dirty & /*text*/ 2) {
4147
- $$invalidate(0, items = text.split(regexp));
4147
+ // numberが渡ってくるケースへ対処
4148
+ $$invalidate(0, items = text.toString().split(regexp));
4148
4149
  }
4149
4150
  };
4150
4151
 
@@ -19,6 +19,7 @@ import { writable } from 'svelte/store';
19
19
  import {
20
20
  state,
21
21
  variables as actionVariables,
22
+ eventHandlers as actionEventHandlers,
22
23
  getCssVariables,
23
24
  State,
24
25
  StateItem,
@@ -70,7 +71,7 @@ $: {
70
71
 
71
72
  $: {
72
73
  data.update(current => {
73
- return { ...current, ...$actionVariables };
74
+ return { ...current, ...$actionVariables, ...$actionEventHandlers };
74
75
  });
75
76
  }
76
77
 
package/dist/templates.js CHANGED
@@ -17,6 +17,7 @@ import { writable } from 'svelte/store';
17
17
  import {
18
18
  state,
19
19
  variables as actionVariables,
20
+ eventHandlers as actionEventHandlers,
20
21
  getCssVariables,
21
22
  State,
22
23
  StateItem,
@@ -68,7 +69,7 @@ $: {
68
69
 
69
70
  $: {
70
71
  data.update(current => {
71
- return { ...current, ...$actionVariables };
72
+ return { ...current, ...$actionVariables, ...$actionEventHandlers };
72
73
  });
73
74
  }
74
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.157",
3
+ "version": "1.1.158-28012700.23c1725b",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",