@plaidev/karte-action-sdk 1.1.226 → 1.1.227
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.
- package/dist/hydrate/index.es.js +33 -31
- package/dist/index.es.js +51 -33
- package/package.json +1 -5
package/dist/hydrate/index.es.js
CHANGED
@@ -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':
|
63
|
-
'top-left':
|
64
|
-
'top-right':
|
65
|
-
'center-left':
|
66
|
-
center:
|
67
|
-
'center-right':
|
68
|
-
'bottom-left':
|
69
|
-
'bottom-center':
|
70
|
-
'bottom-right':
|
71
|
-
none:
|
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, {
|
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-1i2vo31", ".modal.svelte-1i2vo31{position:fixed;box-sizing:border-box;z-index:2147483647;display:flex}.modal.svelte-1i2vo31 > .button{flex:auto;display:flex}.close.svelte-1i2vo31{position:absolute;top:0;right:0}.close.svelte-1i2vo31 > .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-1i2vo31 > .button:hover{transform:rotate(90deg)}.modal-content.svelte-1i2vo31{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-1i2vo31{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-1i2vo31{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
|
-
// (
|
3957
|
+
// (278: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[
|
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*/
|
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
|
-
// (
|
4004
|
+
// (267: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[
|
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[
|
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*/
|
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*/
|
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
|
-
// (
|
4078
|
+
// (265: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
|
-
// (
|
4091
|
+
// (281: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
|
-
|
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
|
-
// (
|
4186
|
+
// (294: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
|
-
// (
|
4258
|
+
// (296: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
|
-
// (
|
4315
|
+
// (293: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
|
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(
|
4635
|
+
$$invalidate(13, backgroundOverlayPC = pc ?? false);
|
4636
4636
|
const sp = breakPoint?.SP?.placement?.backgroundOverlay;
|
4637
|
-
$$invalidate(
|
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*/
|
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
|
-
|
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,8 @@ 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 = { PC: 'screen and (min-width: 641px)', SP: 'screen and (max-width: 640px)' };
|
20
22
|
// -------- The following codes are deprecated --------
|
21
23
|
/**
|
22
24
|
* 非推奨
|
@@ -59,16 +61,16 @@ const POSITION_STYLES = {
|
|
59
61
|
none: 'top: 0; bottom: 0; right: 0; left: 0;',
|
60
62
|
};
|
61
63
|
const TRANSFORM = {
|
62
|
-
'top-center':
|
63
|
-
'top-left':
|
64
|
-
'top-right':
|
65
|
-
'center-left':
|
66
|
-
center:
|
67
|
-
'center-right':
|
68
|
-
'bottom-left':
|
69
|
-
'bottom-center':
|
70
|
-
'bottom-right':
|
71
|
-
none:
|
64
|
+
'top-center': { x: 50, y: 0 },
|
65
|
+
'top-left': { x: 0, y: 0 },
|
66
|
+
'top-right': { x: 0, y: 0 },
|
67
|
+
'center-left': { x: 0, y: -50 },
|
68
|
+
center: { x: -50, y: -50 },
|
69
|
+
'center-right': { x: 0, y: -50 },
|
70
|
+
'bottom-left': { x: 0, y: 0 },
|
71
|
+
'bottom-center': { x: -50, y: 0 },
|
72
|
+
'bottom-right': { x: 0, y: 0 },
|
73
|
+
none: { x: 0, y: 0 },
|
72
74
|
};
|
73
75
|
/** @internal */
|
74
76
|
const getPositionStyle = (position) => {
|
@@ -3362,8 +3364,15 @@ const EASING = {
|
|
3362
3364
|
*
|
3363
3365
|
* @internal
|
3364
3366
|
*/
|
3365
|
-
function customAnimation(node, {
|
3366
|
-
|
3367
|
+
function customAnimation(node, { transforms, animationStyle, delay = 0, duration = 1000 }) {
|
3368
|
+
let [x, y] = [0, 0];
|
3369
|
+
for (const { query, x: tx, y: ty } of transforms) {
|
3370
|
+
if (query == null || window.matchMedia(query).matches) {
|
3371
|
+
x = tx;
|
3372
|
+
y = ty;
|
3373
|
+
break;
|
3374
|
+
}
|
3375
|
+
}
|
3367
3376
|
return {
|
3368
3377
|
delay,
|
3369
3378
|
duration,
|
@@ -3968,14 +3977,14 @@ function add_css$s(target) {
|
|
3968
3977
|
append_styles(target, "svelte-1i2vo31", ".modal.svelte-1i2vo31{position:fixed;box-sizing:border-box;z-index:2147483647;display:flex}.modal.svelte-1i2vo31 > .button{flex:auto;display:flex}.close.svelte-1i2vo31{position:absolute;top:0;right:0}.close.svelte-1i2vo31 > .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-1i2vo31 > .button:hover{transform:rotate(90deg)}.modal-content.svelte-1i2vo31{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-1i2vo31{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-1i2vo31{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
3978
|
}
|
3970
3979
|
|
3971
|
-
// (
|
3980
|
+
// (278:0) {:else}
|
3972
3981
|
function create_else_block$3(ctx) {
|
3973
3982
|
let backgroundoverlay;
|
3974
3983
|
let current;
|
3975
3984
|
|
3976
3985
|
backgroundoverlay = new BackgroundOverlay({
|
3977
3986
|
props: {
|
3978
|
-
backgroundOverlay: /*backgroundOverlay*/ ctx[
|
3987
|
+
backgroundOverlay: /*backgroundOverlay*/ ctx[12]
|
3979
3988
|
}
|
3980
3989
|
});
|
3981
3990
|
|
@@ -3994,7 +4003,7 @@ function create_else_block$3(ctx) {
|
|
3994
4003
|
p(new_ctx, dirty) {
|
3995
4004
|
ctx = new_ctx;
|
3996
4005
|
const backgroundoverlay_changes = {};
|
3997
|
-
if (dirty[0] & /*backgroundOverlay*/
|
4006
|
+
if (dirty[0] & /*backgroundOverlay*/ 4096) backgroundoverlay_changes.backgroundOverlay = /*backgroundOverlay*/ ctx[12];
|
3998
4007
|
backgroundoverlay.$set(backgroundoverlay_changes);
|
3999
4008
|
},
|
4000
4009
|
i(local) {
|
@@ -4012,7 +4021,7 @@ function create_else_block$3(ctx) {
|
|
4012
4021
|
};
|
4013
4022
|
}
|
4014
4023
|
|
4015
|
-
// (
|
4024
|
+
// (267:24)
|
4016
4025
|
function create_if_block_3(ctx) {
|
4017
4026
|
let backgroundoverlay0;
|
4018
4027
|
let t;
|
@@ -4022,7 +4031,7 @@ function create_if_block_3(ctx) {
|
|
4022
4031
|
backgroundoverlay0 = new BackgroundOverlay({
|
4023
4032
|
props: {
|
4024
4033
|
class: "background-bp-pc",
|
4025
|
-
backgroundOverlay: /*backgroundOverlayPC*/ ctx[
|
4034
|
+
backgroundOverlay: /*backgroundOverlayPC*/ ctx[13]
|
4026
4035
|
}
|
4027
4036
|
});
|
4028
4037
|
|
@@ -4033,7 +4042,7 @@ function create_if_block_3(ctx) {
|
|
4033
4042
|
backgroundoverlay1 = new BackgroundOverlay({
|
4034
4043
|
props: {
|
4035
4044
|
class: "background-bp-sp ",
|
4036
|
-
backgroundOverlay: /*backgroundOverlaySP*/ ctx[
|
4045
|
+
backgroundOverlay: /*backgroundOverlaySP*/ ctx[14]
|
4037
4046
|
}
|
4038
4047
|
});
|
4039
4048
|
|
@@ -4056,10 +4065,10 @@ function create_if_block_3(ctx) {
|
|
4056
4065
|
p(new_ctx, dirty) {
|
4057
4066
|
ctx = new_ctx;
|
4058
4067
|
const backgroundoverlay0_changes = {};
|
4059
|
-
if (dirty[0] & /*backgroundOverlayPC*/
|
4068
|
+
if (dirty[0] & /*backgroundOverlayPC*/ 8192) backgroundoverlay0_changes.backgroundOverlay = /*backgroundOverlayPC*/ ctx[13];
|
4060
4069
|
backgroundoverlay0.$set(backgroundoverlay0_changes);
|
4061
4070
|
const backgroundoverlay1_changes = {};
|
4062
|
-
if (dirty[0] & /*backgroundOverlaySP*/
|
4071
|
+
if (dirty[0] & /*backgroundOverlaySP*/ 16384) backgroundoverlay1_changes.backgroundOverlay = /*backgroundOverlaySP*/ ctx[14];
|
4063
4072
|
backgroundoverlay1.$set(backgroundoverlay1_changes);
|
4064
4073
|
},
|
4065
4074
|
i(local) {
|
@@ -4081,7 +4090,7 @@ function create_if_block_3(ctx) {
|
|
4081
4090
|
};
|
4082
4091
|
}
|
4083
4092
|
|
4084
|
-
// (
|
4093
|
+
// (265:0) {#if isPreview()}
|
4085
4094
|
function create_if_block_2(ctx) {
|
4086
4095
|
return {
|
4087
4096
|
c: noop,
|
@@ -4093,7 +4102,7 @@ function create_if_block_2(ctx) {
|
|
4093
4102
|
};
|
4094
4103
|
}
|
4095
4104
|
|
4096
|
-
// (
|
4105
|
+
// (281:0) {#if visible}
|
4097
4106
|
function create_if_block$5(ctx) {
|
4098
4107
|
let div;
|
4099
4108
|
let button;
|
@@ -4150,7 +4159,7 @@ function create_if_block$5(ctx) {
|
|
4150
4159
|
if (!div_intro) {
|
4151
4160
|
add_render_callback(() => {
|
4152
4161
|
div_intro = create_in_transition(div, customAnimation, {
|
4153
|
-
|
4162
|
+
transforms: /*transforms*/ ctx[11],
|
4154
4163
|
animationStyle: /*animation*/ ctx[4]
|
4155
4164
|
});
|
4156
4165
|
|
@@ -4172,7 +4181,7 @@ function create_if_block$5(ctx) {
|
|
4172
4181
|
};
|
4173
4182
|
}
|
4174
4183
|
|
4175
|
-
// (
|
4184
|
+
// (294:6) {#if closable}
|
4176
4185
|
function create_if_block_1$1(ctx) {
|
4177
4186
|
let div;
|
4178
4187
|
let button;
|
@@ -4234,7 +4243,7 @@ function create_if_block_1$1(ctx) {
|
|
4234
4243
|
};
|
4235
4244
|
}
|
4236
4245
|
|
4237
|
-
// (
|
4246
|
+
// (296:10) <Button onClick={onClose} style={_closeStyle} eventName={closeEventName} eventValue={closeEventValue} >
|
4238
4247
|
function create_default_slot_1$1(ctx) {
|
4239
4248
|
let svg;
|
4240
4249
|
let path;
|
@@ -4267,7 +4276,7 @@ function create_default_slot_1$1(ctx) {
|
|
4267
4276
|
};
|
4268
4277
|
}
|
4269
4278
|
|
4270
|
-
// (
|
4279
|
+
// (293:4) <Button {onClick} eventName={clickEventName} eventValue={clickEventValue}>
|
4271
4280
|
function create_default_slot$6(ctx) {
|
4272
4281
|
let t;
|
4273
4282
|
let div;
|
@@ -4515,7 +4524,7 @@ function instance$v($$self, $$props, $$invalidate) {
|
|
4515
4524
|
let backgroundClickFunctionPC = DefaultModalPlacement.backgroundClick;
|
4516
4525
|
let backgroundClickFunctionSP = DefaultModalPlacement.backgroundClick;
|
4517
4526
|
let modalStyles = new Set([]);
|
4518
|
-
let
|
4527
|
+
let transforms = [{ query: null, ...getTransform('center') }];
|
4519
4528
|
let modal;
|
4520
4529
|
|
4521
4530
|
onMount$1(() => {
|
@@ -4567,14 +4576,14 @@ function instance$v($$self, $$props, $$invalidate) {
|
|
4567
4576
|
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/ 50331656) {
|
4568
4577
|
{
|
4569
4578
|
if (placement && placement.backgroundOverlay) {
|
4570
|
-
$$invalidate(
|
4579
|
+
$$invalidate(12, backgroundOverlay = placement.backgroundOverlay);
|
4571
4580
|
}
|
4572
4581
|
|
4573
4582
|
if (useBreakPoint) {
|
4574
4583
|
const pc = breakPoint?.PC?.placement?.backgroundOverlay;
|
4575
|
-
$$invalidate(
|
4584
|
+
$$invalidate(13, backgroundOverlayPC = pc ?? false);
|
4576
4585
|
const sp = breakPoint?.SP?.placement?.backgroundOverlay;
|
4577
|
-
$$invalidate(
|
4586
|
+
$$invalidate(14, backgroundOverlaySP = sp ?? false);
|
4578
4587
|
}
|
4579
4588
|
}
|
4580
4589
|
}
|
@@ -4631,7 +4640,7 @@ function instance$v($$self, $$props, $$invalidate) {
|
|
4631
4640
|
});
|
4632
4641
|
}
|
4633
4642
|
|
4634
|
-
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint*/
|
4643
|
+
if ($$self.$$.dirty[0] & /*placement, useBreakPoint, breakPoint, transforms*/ 50333704) {
|
4635
4644
|
// 表示位置のスタイルとアニメーションの動きを設定
|
4636
4645
|
{
|
4637
4646
|
// 表示位置のスタイルの設定
|
@@ -4647,9 +4656,18 @@ function instance$v($$self, $$props, $$invalidate) {
|
|
4647
4656
|
modalStyles.add(positionStyle);
|
4648
4657
|
}
|
4649
4658
|
|
4659
|
+
$$invalidate(11, transforms = []);
|
4660
|
+
|
4650
4661
|
DEVICE_IDS.forEach(deviceId => {
|
4651
4662
|
if (useBreakPoint) {
|
4652
4663
|
const positionWithBp = breakPoint[deviceId]?.placement?.position;
|
4664
|
+
const mediaQuery = DEVICE_QUERIES[deviceId];
|
4665
|
+
|
4666
|
+
transforms.push({
|
4667
|
+
query: mediaQuery,
|
4668
|
+
...getTransform(positionWithBp)
|
4669
|
+
});
|
4670
|
+
|
4653
4671
|
positionStyle = getPositionStyle(positionWithBp);
|
4654
4672
|
}
|
4655
4673
|
|
@@ -4663,7 +4681,7 @@ function instance$v($$self, $$props, $$invalidate) {
|
|
4663
4681
|
});
|
4664
4682
|
|
4665
4683
|
// アニメーションの動きの設定
|
4666
|
-
|
4684
|
+
transforms.push({ query: null, ...getTransform(position) });
|
4667
4685
|
}
|
4668
4686
|
}
|
4669
4687
|
|
@@ -4747,10 +4765,10 @@ function instance$v($$self, $$props, $$invalidate) {
|
|
4747
4765
|
closeEventValue,
|
4748
4766
|
closeButtonColor,
|
4749
4767
|
_closeStyle,
|
4768
|
+
transforms,
|
4750
4769
|
backgroundOverlay,
|
4751
4770
|
backgroundOverlayPC,
|
4752
4771
|
backgroundOverlaySP,
|
4753
|
-
transform,
|
4754
4772
|
modal,
|
4755
4773
|
visible,
|
4756
4774
|
handle_keydown,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@plaidev/karte-action-sdk",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.227",
|
4
4
|
"author": "Plaid Inc.",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"module": "./dist/index.es.js",
|
@@ -56,10 +56,6 @@
|
|
56
56
|
"publishConfig": {
|
57
57
|
"access": "public"
|
58
58
|
},
|
59
|
-
"repository": {
|
60
|
-
"type": "git",
|
61
|
-
"url": "https://github.com/plaidev/karte-io-systems.git"
|
62
|
-
},
|
63
59
|
"devDependencies": {
|
64
60
|
"@microsoft/api-documenter": "7.19.28",
|
65
61
|
"@microsoft/api-extractor": "7.33.8",
|