@plaidev/karte-action-sdk 1.1.226-28565789.7d347a9b → 1.1.226-28567498.f94b4f1a

Sign up to get free protection for your applications and to get access to all the features.
@@ -59,16 +59,16 @@ const POSITION_STYLES = {
59
59
  none: 'top: 0; bottom: 0; right: 0; left: 0;',
60
60
  };
61
61
  const TRANSFORM = {
62
- 'top-center': [50, 0],
63
- 'top-left': [0, 0],
64
- 'top-right': [0, 0],
65
- 'center-left': [0, -50],
66
- center: [-50, -50],
67
- 'center-right': [0, -50],
68
- 'bottom-left': [0, 0],
69
- 'bottom-center': [-50, 0],
70
- 'bottom-right': [0, 0],
71
- none: [0, 0],
62
+ 'top-center': { x: 50, y: 0 },
63
+ 'top-left': { x: 0, y: 0 },
64
+ 'top-right': { x: 0, y: 0 },
65
+ 'center-left': { x: 0, y: -50 },
66
+ center: { x: -50, y: -50 },
67
+ 'center-right': { x: 0, y: -50 },
68
+ 'bottom-left': { x: 0, y: 0 },
69
+ 'bottom-center': { x: -50, y: 0 },
70
+ 'bottom-right': { x: 0, y: 0 },
71
+ none: { x: 0, y: 0 },
72
72
  };
73
73
  /** @internal */
74
74
  const getPositionStyle = (position) => {
@@ -3290,7 +3290,7 @@ const haveFunction = (onClickOperation) => {
3290
3290
  *
3291
3291
  * @internal
3292
3292
  */
3293
- function customAnimation(node, { transform, animationStyle, delay = 0, duration = 1000 }) {
3293
+ function customAnimation(node, { transforms, animationStyle, delay = 0, duration = 1000 }) {
3294
3294
  {
3295
3295
  return {};
3296
3296
  }
@@ -3954,14 +3954,14 @@ function add_css$s(target) {
3954
3954
  append_styles(target, "svelte-1ijkyzl", ".modal.svelte-1ijkyzl{position:fixed;box-sizing:border-box;z-index:2147483647;display:flex}.modal.svelte-1ijkyzl > .button{flex:auto;display:flex}.close.svelte-1ijkyzl{position:absolute;top:0;right:0}.close.svelte-1ijkyzl > .button{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-1ijkyzl > .button:hover{transform:rotate(90deg)}.modal-content.svelte-1ijkyzl{flex:auto;display:flex;justify-content:center;align-items:center;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}@media screen and (min-width: 641px){.modal-bp.svelte-1ijkyzl{height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important}.background-bp-pc{display:block}.background-bp-sp{display:none}}@media screen and (max-width: 640px){.modal-bp.svelte-1ijkyzl{height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
3955
3955
  }
3956
3956
 
3957
- // (275:0) {:else}
3957
+ // (277:0) {:else}
3958
3958
  function create_else_block$3(ctx) {
3959
3959
  let backgroundoverlay;
3960
3960
  let current;
3961
3961
 
3962
3962
  backgroundoverlay = new BackgroundOverlay({
3963
3963
  props: {
3964
- backgroundOverlay: /*backgroundOverlay*/ ctx[11]
3964
+ backgroundOverlay: /*backgroundOverlay*/ ctx[12]
3965
3965
  }
3966
3966
  });
3967
3967
 
@@ -3983,7 +3983,7 @@ function create_else_block$3(ctx) {
3983
3983
  p(new_ctx, dirty) {
3984
3984
  ctx = new_ctx;
3985
3985
  const backgroundoverlay_changes = {};
3986
- if (dirty[0] & /*backgroundOverlay*/ 2048) backgroundoverlay_changes.backgroundOverlay = /*backgroundOverlay*/ ctx[11];
3986
+ if (dirty[0] & /*backgroundOverlay*/ 4096) backgroundoverlay_changes.backgroundOverlay = /*backgroundOverlay*/ ctx[12];
3987
3987
  backgroundoverlay.$set(backgroundoverlay_changes);
3988
3988
  },
3989
3989
  i(local) {
@@ -4001,7 +4001,7 @@ function create_else_block$3(ctx) {
4001
4001
  };
4002
4002
  }
4003
4003
 
4004
- // (264:24)
4004
+ // (266:24)
4005
4005
  function create_if_block_3(ctx) {
4006
4006
  let backgroundoverlay0;
4007
4007
  let t;
@@ -4011,7 +4011,7 @@ function create_if_block_3(ctx) {
4011
4011
  backgroundoverlay0 = new BackgroundOverlay({
4012
4012
  props: {
4013
4013
  class: "background-bp-pc",
4014
- backgroundOverlay: /*backgroundOverlayPC*/ ctx[12]
4014
+ backgroundOverlay: /*backgroundOverlayPC*/ ctx[13]
4015
4015
  }
4016
4016
  });
4017
4017
 
@@ -4022,7 +4022,7 @@ function create_if_block_3(ctx) {
4022
4022
  backgroundoverlay1 = new BackgroundOverlay({
4023
4023
  props: {
4024
4024
  class: "background-bp-sp ",
4025
- backgroundOverlay: /*backgroundOverlaySP*/ ctx[13]
4025
+ backgroundOverlay: /*backgroundOverlaySP*/ ctx[14]
4026
4026
  }
4027
4027
  });
4028
4028
 
@@ -4050,10 +4050,10 @@ function create_if_block_3(ctx) {
4050
4050
  p(new_ctx, dirty) {
4051
4051
  ctx = new_ctx;
4052
4052
  const backgroundoverlay0_changes = {};
4053
- if (dirty[0] & /*backgroundOverlayPC*/ 4096) backgroundoverlay0_changes.backgroundOverlay = /*backgroundOverlayPC*/ ctx[12];
4053
+ if (dirty[0] & /*backgroundOverlayPC*/ 8192) backgroundoverlay0_changes.backgroundOverlay = /*backgroundOverlayPC*/ ctx[13];
4054
4054
  backgroundoverlay0.$set(backgroundoverlay0_changes);
4055
4055
  const backgroundoverlay1_changes = {};
4056
- if (dirty[0] & /*backgroundOverlaySP*/ 8192) backgroundoverlay1_changes.backgroundOverlay = /*backgroundOverlaySP*/ ctx[13];
4056
+ if (dirty[0] & /*backgroundOverlaySP*/ 16384) backgroundoverlay1_changes.backgroundOverlay = /*backgroundOverlaySP*/ ctx[14];
4057
4057
  backgroundoverlay1.$set(backgroundoverlay1_changes);
4058
4058
  },
4059
4059
  i(local) {
@@ -4075,7 +4075,7 @@ function create_if_block_3(ctx) {
4075
4075
  };
4076
4076
  }
4077
4077
 
4078
- // (262:0) {#if isPreview()}
4078
+ // (264:0) {#if isPreview()}
4079
4079
  function create_if_block_2(ctx) {
4080
4080
  return {
4081
4081
  c: noop,
@@ -4088,7 +4088,7 @@ function create_if_block_2(ctx) {
4088
4088
  };
4089
4089
  }
4090
4090
 
4091
- // (278:0) {#if visible}
4091
+ // (280:0) {#if visible}
4092
4092
  function create_if_block$5(ctx) {
4093
4093
  let div;
4094
4094
  let button;
@@ -4161,7 +4161,7 @@ function create_if_block$5(ctx) {
4161
4161
  if (!div_intro) {
4162
4162
  add_render_callback(() => {
4163
4163
  div_intro = create_in_transition(div, customAnimation, {
4164
- transform: /*transform*/ ctx[14],
4164
+ transforms: /*transforms*/ ctx[11],
4165
4165
  animationStyle: /*animation*/ ctx[4]
4166
4166
  });
4167
4167
 
@@ -4183,7 +4183,7 @@ function create_if_block$5(ctx) {
4183
4183
  };
4184
4184
  }
4185
4185
 
4186
- // (291:6) {#if closable}
4186
+ // (293:6) {#if closable}
4187
4187
  function create_if_block_1$1(ctx) {
4188
4188
  let div;
4189
4189
  let button;
@@ -4255,7 +4255,7 @@ function create_if_block_1$1(ctx) {
4255
4255
  };
4256
4256
  }
4257
4257
 
4258
- // (293:10) <Button onClick={onClose} style={_closeStyle} eventName={closeEventName} eventValue={closeEventValue} >
4258
+ // (295:10) <Button onClick={onClose} style={_closeStyle} eventName={closeEventName} eventValue={closeEventValue} >
4259
4259
  function create_default_slot_1$1(ctx) {
4260
4260
  let svg;
4261
4261
  let path;
@@ -4312,7 +4312,7 @@ function create_default_slot_1$1(ctx) {
4312
4312
  };
4313
4313
  }
4314
4314
 
4315
- // (290:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
4315
+ // (292:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
4316
4316
  function create_default_slot$6(ctx) {
4317
4317
  let t;
4318
4318
  let div;
@@ -4578,7 +4578,7 @@ function instance$v($$self, $$props, $$invalidate) {
4578
4578
  let backgroundClickFunctionPC = DefaultModalPlacement.backgroundClick;
4579
4579
  let backgroundClickFunctionSP = DefaultModalPlacement.backgroundClick;
4580
4580
  let modalStyles = new Set([]);
4581
- let transform = getTransform('center');
4581
+ let transforms = [{ query: null, ...getTransform('center') }];
4582
4582
  let modal;
4583
4583
 
4584
4584
  onMount$1(() => {
@@ -4632,9 +4632,9 @@ function instance$v($$self, $$props, $$invalidate) {
4632
4632
 
4633
4633
  if (useBreakPoint) {
4634
4634
  const pc = breakPoint?.PC?.placement?.backgroundOverlay;
4635
- $$invalidate(12, backgroundOverlayPC = pc ?? false);
4635
+ $$invalidate(13, backgroundOverlayPC = pc ?? false);
4636
4636
  const sp = breakPoint?.SP?.placement?.backgroundOverlay;
4637
- $$invalidate(13, backgroundOverlaySP = sp ?? false);
4637
+ $$invalidate(14, backgroundOverlaySP = sp ?? false);
4638
4638
  }
4639
4639
  }
4640
4640
  }
@@ -4691,7 +4691,7 @@ function instance$v($$self, $$props, $$invalidate) {
4691
4691
  });
4692
4692
  }
4693
4693
 
4694
- if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 50331656) {
4694
+ if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint, transforms*/ 50333704) {
4695
4695
  // 表示位置のスタイルとアニメーションの動きを設定
4696
4696
  {
4697
4697
  // 表示位置のスタイルの設定
@@ -4703,6 +4703,8 @@ function instance$v($$self, $$props, $$invalidate) {
4703
4703
  modalStyles.add(positionStyle);
4704
4704
  }
4705
4705
 
4706
+ $$invalidate(11, transforms = []);
4707
+
4706
4708
  DEVICE_IDS.forEach(deviceId => {
4707
4709
 
4708
4710
  const positionVariables = stringifyStyleObj(formatObjectKey({
@@ -4715,7 +4717,7 @@ function instance$v($$self, $$props, $$invalidate) {
4715
4717
  });
4716
4718
 
4717
4719
  // アニメーションの動きの設定
4718
- $$invalidate(14, transform = getTransform(position));
4720
+ transforms.push({ query: null, ...getTransform(position) });
4719
4721
  }
4720
4722
  }
4721
4723
 
@@ -4787,10 +4789,10 @@ function instance$v($$self, $$props, $$invalidate) {
4787
4789
  closeEventValue,
4788
4790
  closeButtonColor,
4789
4791
  _closeStyle,
4792
+ transforms,
4790
4793
  backgroundOverlay,
4791
4794
  backgroundOverlayPC,
4792
4795
  backgroundOverlaySP,
4793
- transform,
4794
4796
  modal,
4795
4797
  visible,
4796
4798
  handle_keydown,
package/dist/index.es.js CHANGED
@@ -17,6 +17,11 @@ const ALL_ACTION_ID = 'KARTE_ALL_ACTION_ID';
17
17
  const ALL_ACTION_SHORTEN_ID = 'KARTE_ALL_ACTION_SHORTEN_ID';
18
18
  /** @internal */
19
19
  const DEVICE_IDS = ['PC', 'SP'];
20
+ /** @internal */
21
+ const DEVICE_QUERIES = {
22
+ PC: 'screen and (min-width: 641px)',
23
+ SP: 'screen and (max-width: 640px)',
24
+ };
20
25
  // -------- The following codes are deprecated --------
21
26
  /**
22
27
  * 非推奨
@@ -59,16 +64,16 @@ const POSITION_STYLES = {
59
64
  none: 'top: 0; bottom: 0; right: 0; left: 0;',
60
65
  };
61
66
  const TRANSFORM = {
62
- 'top-center': [50, 0],
63
- 'top-left': [0, 0],
64
- 'top-right': [0, 0],
65
- 'center-left': [0, -50],
66
- center: [-50, -50],
67
- 'center-right': [0, -50],
68
- 'bottom-left': [0, 0],
69
- 'bottom-center': [-50, 0],
70
- 'bottom-right': [0, 0],
71
- none: [0, 0],
67
+ 'top-center': { x: 50, y: 0 },
68
+ 'top-left': { x: 0, y: 0 },
69
+ 'top-right': { x: 0, y: 0 },
70
+ 'center-left': { x: 0, y: -50 },
71
+ center: { x: -50, y: -50 },
72
+ 'center-right': { x: 0, y: -50 },
73
+ 'bottom-left': { x: 0, y: 0 },
74
+ 'bottom-center': { x: -50, y: 0 },
75
+ 'bottom-right': { x: 0, y: 0 },
76
+ none: { x: 0, y: 0 },
72
77
  };
73
78
  /** @internal */
74
79
  const getPositionStyle = (position) => {
@@ -3362,8 +3367,15 @@ const EASING = {
3362
3367
  *
3363
3368
  * @internal
3364
3369
  */
3365
- function customAnimation(node, { transform, animationStyle, delay = 0, duration = 1000 }) {
3366
- const [x, y] = transform;
3370
+ function customAnimation(node, { transforms, animationStyle, delay = 0, duration = 1000 }) {
3371
+ let [x, y] = [0, 0];
3372
+ for (const { query, x: tx, y: ty } of transforms) {
3373
+ if (query == null || window.matchMedia(query).matches) {
3374
+ x = tx;
3375
+ y = ty;
3376
+ break;
3377
+ }
3378
+ }
3367
3379
  return {
3368
3380
  delay,
3369
3381
  duration,
@@ -3968,14 +3980,14 @@ function add_css$s(target) {
3968
3980
  append_styles(target, "svelte-1ijkyzl", ".modal.svelte-1ijkyzl{position:fixed;box-sizing:border-box;z-index:2147483647;display:flex}.modal.svelte-1ijkyzl > .button{flex:auto;display:flex}.close.svelte-1ijkyzl{position:absolute;top:0;right:0}.close.svelte-1ijkyzl > .button{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-1ijkyzl > .button:hover{transform:rotate(90deg)}.modal-content.svelte-1ijkyzl{flex:auto;display:flex;justify-content:center;align-items:center;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}@media screen and (min-width: 641px){.modal-bp.svelte-1ijkyzl{height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important}.background-bp-pc{display:block}.background-bp-sp{display:none}}@media screen and (max-width: 640px){.modal-bp.svelte-1ijkyzl{height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
3969
3981
  }
3970
3982
 
3971
- // (275:0) {:else}
3983
+ // (277:0) {:else}
3972
3984
  function create_else_block$3(ctx) {
3973
3985
  let backgroundoverlay;
3974
3986
  let current;
3975
3987
 
3976
3988
  backgroundoverlay = new BackgroundOverlay({
3977
3989
  props: {
3978
- backgroundOverlay: /*backgroundOverlay*/ ctx[11]
3990
+ backgroundOverlay: /*backgroundOverlay*/ ctx[12]
3979
3991
  }
3980
3992
  });
3981
3993
 
@@ -3994,7 +4006,7 @@ function create_else_block$3(ctx) {
3994
4006
  p(new_ctx, dirty) {
3995
4007
  ctx = new_ctx;
3996
4008
  const backgroundoverlay_changes = {};
3997
- if (dirty[0] & /*backgroundOverlay*/ 2048) backgroundoverlay_changes.backgroundOverlay = /*backgroundOverlay*/ ctx[11];
4009
+ if (dirty[0] & /*backgroundOverlay*/ 4096) backgroundoverlay_changes.backgroundOverlay = /*backgroundOverlay*/ ctx[12];
3998
4010
  backgroundoverlay.$set(backgroundoverlay_changes);
3999
4011
  },
4000
4012
  i(local) {
@@ -4012,7 +4024,7 @@ function create_else_block$3(ctx) {
4012
4024
  };
4013
4025
  }
4014
4026
 
4015
- // (264:24)
4027
+ // (266:24)
4016
4028
  function create_if_block_3(ctx) {
4017
4029
  let backgroundoverlay0;
4018
4030
  let t;
@@ -4022,7 +4034,7 @@ function create_if_block_3(ctx) {
4022
4034
  backgroundoverlay0 = new BackgroundOverlay({
4023
4035
  props: {
4024
4036
  class: "background-bp-pc",
4025
- backgroundOverlay: /*backgroundOverlayPC*/ ctx[12]
4037
+ backgroundOverlay: /*backgroundOverlayPC*/ ctx[13]
4026
4038
  }
4027
4039
  });
4028
4040
 
@@ -4033,7 +4045,7 @@ function create_if_block_3(ctx) {
4033
4045
  backgroundoverlay1 = new BackgroundOverlay({
4034
4046
  props: {
4035
4047
  class: "background-bp-sp ",
4036
- backgroundOverlay: /*backgroundOverlaySP*/ ctx[13]
4048
+ backgroundOverlay: /*backgroundOverlaySP*/ ctx[14]
4037
4049
  }
4038
4050
  });
4039
4051
 
@@ -4056,10 +4068,10 @@ function create_if_block_3(ctx) {
4056
4068
  p(new_ctx, dirty) {
4057
4069
  ctx = new_ctx;
4058
4070
  const backgroundoverlay0_changes = {};
4059
- if (dirty[0] & /*backgroundOverlayPC*/ 4096) backgroundoverlay0_changes.backgroundOverlay = /*backgroundOverlayPC*/ ctx[12];
4071
+ if (dirty[0] & /*backgroundOverlayPC*/ 8192) backgroundoverlay0_changes.backgroundOverlay = /*backgroundOverlayPC*/ ctx[13];
4060
4072
  backgroundoverlay0.$set(backgroundoverlay0_changes);
4061
4073
  const backgroundoverlay1_changes = {};
4062
- if (dirty[0] & /*backgroundOverlaySP*/ 8192) backgroundoverlay1_changes.backgroundOverlay = /*backgroundOverlaySP*/ ctx[13];
4074
+ if (dirty[0] & /*backgroundOverlaySP*/ 16384) backgroundoverlay1_changes.backgroundOverlay = /*backgroundOverlaySP*/ ctx[14];
4063
4075
  backgroundoverlay1.$set(backgroundoverlay1_changes);
4064
4076
  },
4065
4077
  i(local) {
@@ -4081,7 +4093,7 @@ function create_if_block_3(ctx) {
4081
4093
  };
4082
4094
  }
4083
4095
 
4084
- // (262:0) {#if isPreview()}
4096
+ // (264:0) {#if isPreview()}
4085
4097
  function create_if_block_2(ctx) {
4086
4098
  return {
4087
4099
  c: noop,
@@ -4093,7 +4105,7 @@ function create_if_block_2(ctx) {
4093
4105
  };
4094
4106
  }
4095
4107
 
4096
- // (278:0) {#if visible}
4108
+ // (280:0) {#if visible}
4097
4109
  function create_if_block$5(ctx) {
4098
4110
  let div;
4099
4111
  let button;
@@ -4150,7 +4162,7 @@ function create_if_block$5(ctx) {
4150
4162
  if (!div_intro) {
4151
4163
  add_render_callback(() => {
4152
4164
  div_intro = create_in_transition(div, customAnimation, {
4153
- transform: /*transform*/ ctx[14],
4165
+ transforms: /*transforms*/ ctx[11],
4154
4166
  animationStyle: /*animation*/ ctx[4]
4155
4167
  });
4156
4168
 
@@ -4172,7 +4184,7 @@ function create_if_block$5(ctx) {
4172
4184
  };
4173
4185
  }
4174
4186
 
4175
- // (291:6) {#if closable}
4187
+ // (293:6) {#if closable}
4176
4188
  function create_if_block_1$1(ctx) {
4177
4189
  let div;
4178
4190
  let button;
@@ -4234,7 +4246,7 @@ function create_if_block_1$1(ctx) {
4234
4246
  };
4235
4247
  }
4236
4248
 
4237
- // (293:10) <Button onClick={onClose} style={_closeStyle} eventName={closeEventName} eventValue={closeEventValue} >
4249
+ // (295:10) <Button onClick={onClose} style={_closeStyle} eventName={closeEventName} eventValue={closeEventValue} >
4238
4250
  function create_default_slot_1$1(ctx) {
4239
4251
  let svg;
4240
4252
  let path;
@@ -4267,7 +4279,7 @@ function create_default_slot_1$1(ctx) {
4267
4279
  };
4268
4280
  }
4269
4281
 
4270
- // (290:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
4282
+ // (292:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
4271
4283
  function create_default_slot$6(ctx) {
4272
4284
  let t;
4273
4285
  let div;
@@ -4515,7 +4527,7 @@ function instance$v($$self, $$props, $$invalidate) {
4515
4527
  let backgroundClickFunctionPC = DefaultModalPlacement.backgroundClick;
4516
4528
  let backgroundClickFunctionSP = DefaultModalPlacement.backgroundClick;
4517
4529
  let modalStyles = new Set([]);
4518
- let transform = getTransform('center');
4530
+ let transforms = [{ query: null, ...getTransform('center') }];
4519
4531
  let modal;
4520
4532
 
4521
4533
  onMount$1(() => {
@@ -4567,14 +4579,14 @@ function instance$v($$self, $$props, $$invalidate) {
4567
4579
  if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 50331656) {
4568
4580
  {
4569
4581
  if (placement && placement.backgroundOverlay) {
4570
- $$invalidate(11, backgroundOverlay = placement.backgroundOverlay);
4582
+ $$invalidate(12, backgroundOverlay = placement.backgroundOverlay);
4571
4583
  }
4572
4584
 
4573
4585
  if (useBreakPoint) {
4574
4586
  const pc = breakPoint?.PC?.placement?.backgroundOverlay;
4575
- $$invalidate(12, backgroundOverlayPC = pc ?? false);
4587
+ $$invalidate(13, backgroundOverlayPC = pc ?? false);
4576
4588
  const sp = breakPoint?.SP?.placement?.backgroundOverlay;
4577
- $$invalidate(13, backgroundOverlaySP = sp ?? false);
4589
+ $$invalidate(14, backgroundOverlaySP = sp ?? false);
4578
4590
  }
4579
4591
  }
4580
4592
  }
@@ -4631,7 +4643,7 @@ function instance$v($$self, $$props, $$invalidate) {
4631
4643
  });
4632
4644
  }
4633
4645
 
4634
- if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 50331656) {
4646
+ if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint, transforms*/ 50333704) {
4635
4647
  // 表示位置のスタイルとアニメーションの動きを設定
4636
4648
  {
4637
4649
  // 表示位置のスタイルの設定
@@ -4647,9 +4659,17 @@ function instance$v($$self, $$props, $$invalidate) {
4647
4659
  modalStyles.add(positionStyle);
4648
4660
  }
4649
4661
 
4662
+ $$invalidate(11, transforms = []);
4663
+
4650
4664
  DEVICE_IDS.forEach(deviceId => {
4651
4665
  if (useBreakPoint) {
4652
4666
  const positionWithBp = breakPoint[deviceId]?.placement?.position;
4667
+
4668
+ transforms.push({
4669
+ query: DEVICE_QUERIES[deviceId],
4670
+ ...getTransform(positionWithBp)
4671
+ });
4672
+
4653
4673
  positionStyle = getPositionStyle(positionWithBp);
4654
4674
  }
4655
4675
 
@@ -4663,7 +4683,7 @@ function instance$v($$self, $$props, $$invalidate) {
4663
4683
  });
4664
4684
 
4665
4685
  // アニメーションの動きの設定
4666
- $$invalidate(14, transform = getTransform(position));
4686
+ transforms.push({ query: null, ...getTransform(position) });
4667
4687
  }
4668
4688
  }
4669
4689
 
@@ -4747,10 +4767,10 @@ function instance$v($$self, $$props, $$invalidate) {
4747
4767
  closeEventValue,
4748
4768
  closeButtonColor,
4749
4769
  _closeStyle,
4770
+ transforms,
4750
4771
  backgroundOverlay,
4751
4772
  backgroundOverlayPC,
4752
4773
  backgroundOverlaySP,
4753
- transform,
4754
4774
  modal,
4755
4775
  visible,
4756
4776
  handle_keydown,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.226-28565789.7d347a9b",
3
+ "version": "1.1.226-28567498.f94b4f1a",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",