@plaidev/karte-action-sdk 1.1.159-28012903.068ffccf → 1.1.159
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 +11 -30
- package/dist/index.es.js +10 -29
- package/package.json +1 -1
package/dist/hydrate/index.es.js
CHANGED
@@ -3992,8 +3992,6 @@ function create_fragment$r(ctx) {
|
|
3992
3992
|
};
|
3993
3993
|
}
|
3994
3994
|
|
3995
|
-
const GRID_ITEM_CONTEXT_KEY = 'GRID_ITEM';
|
3996
|
-
|
3997
3995
|
function instance$r($$self, $$props, $$invalidate) {
|
3998
3996
|
let _style;
|
3999
3997
|
let { $$slots: slots = {}, $$scope } = $$props;
|
@@ -4004,7 +4002,6 @@ function instance$r($$self, $$props, $$invalidate) {
|
|
4004
4002
|
let { z } = $$props;
|
4005
4003
|
let { background = 'transparent' } = $$props;
|
4006
4004
|
let { gridItemId } = $$props;
|
4007
|
-
setContext(GRID_ITEM_CONTEXT_KEY, { gridItemId });
|
4008
4005
|
|
4009
4006
|
onMount$1(() => {
|
4010
4007
|
setMaximumZindex(z);
|
@@ -7362,12 +7359,12 @@ function add_css$a(target) {
|
|
7362
7359
|
|
7363
7360
|
function get_each_context(ctx, list, i) {
|
7364
7361
|
const child_ctx = ctx.slice();
|
7365
|
-
child_ctx[
|
7366
|
-
child_ctx[
|
7362
|
+
child_ctx[58] = list[i];
|
7363
|
+
child_ctx[60] = i;
|
7367
7364
|
return child_ctx;
|
7368
7365
|
}
|
7369
7366
|
|
7370
|
-
// (
|
7367
|
+
// (357:2) {#if isVisiblePrevButton}
|
7371
7368
|
function create_if_block_1(ctx) {
|
7372
7369
|
let div1;
|
7373
7370
|
let div0;
|
@@ -7435,7 +7432,7 @@ function create_if_block_1(ctx) {
|
|
7435
7432
|
};
|
7436
7433
|
}
|
7437
7434
|
|
7438
|
-
// (
|
7435
|
+
// (366:2) {#if isVisibleNextButton}
|
7439
7436
|
function create_if_block$1(ctx) {
|
7440
7437
|
let div1;
|
7441
7438
|
let div0;
|
@@ -7503,7 +7500,7 @@ function create_if_block$1(ctx) {
|
|
7503
7500
|
};
|
7504
7501
|
}
|
7505
7502
|
|
7506
|
-
// (
|
7503
|
+
// (379:4) {#each items as _, i}
|
7507
7504
|
function create_each_block(ctx) {
|
7508
7505
|
let div1;
|
7509
7506
|
let div0;
|
@@ -7513,7 +7510,7 @@ function create_each_block(ctx) {
|
|
7513
7510
|
let dispose;
|
7514
7511
|
|
7515
7512
|
function click_handler() {
|
7516
|
-
return /*click_handler*/ ctx[35](/*i*/ ctx[
|
7513
|
+
return /*click_handler*/ ctx[35](/*i*/ ctx[60]);
|
7517
7514
|
}
|
7518
7515
|
|
7519
7516
|
return {
|
@@ -7534,7 +7531,7 @@ function create_each_block(ctx) {
|
|
7534
7531
|
},
|
7535
7532
|
h() {
|
7536
7533
|
attr(div0, "class", "navigation-item-inner circle svelte-1wlcw5a");
|
7537
|
-
attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[
|
7534
|
+
attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[60]));
|
7538
7535
|
attr(div1, "class", "navigation-item svelte-1wlcw5a");
|
7539
7536
|
attr(div1, "style", /*navigationItemStyle*/ ctx[6]);
|
7540
7537
|
},
|
@@ -7551,7 +7548,7 @@ function create_each_block(ctx) {
|
|
7551
7548
|
p(new_ctx, dirty) {
|
7552
7549
|
ctx = new_ctx;
|
7553
7550
|
|
7554
|
-
if (dirty[0] & /*getNavigationItemInnerStyle*/ 32 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[
|
7551
|
+
if (dirty[0] & /*getNavigationItemInnerStyle*/ 32 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[60]))) {
|
7555
7552
|
attr(div0, "style", div0_style_value);
|
7556
7553
|
}
|
7557
7554
|
|
@@ -7853,8 +7850,6 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
7853
7850
|
}
|
7854
7851
|
});
|
7855
7852
|
|
7856
|
-
const { gridItemId } = getContext(GRID_ITEM_CONTEXT_KEY);
|
7857
|
-
const CHANGE_SLIDE_EVENT_NAME = `CHANGE_SLIDE_${gridItemId}`;
|
7858
7853
|
let containerElement;
|
7859
7854
|
let slideElement;
|
7860
7855
|
let containerWidth;
|
@@ -8056,20 +8051,6 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
8056
8051
|
};
|
8057
8052
|
});
|
8058
8053
|
|
8059
|
-
function handleChangeSlide(e) {
|
8060
|
-
const index = e.detail.index;
|
8061
|
-
|
8062
|
-
if (index >= 0) {
|
8063
|
-
set(index);
|
8064
|
-
}
|
8065
|
-
}
|
8066
|
-
|
8067
|
-
window.addEventListener(CHANGE_SLIDE_EVENT_NAME, handleChangeSlide);
|
8068
|
-
|
8069
|
-
onDestroy$1(() => {
|
8070
|
-
window.removeEventListener(CHANGE_SLIDE_EVENT_NAME, handleChangeSlide);
|
8071
|
-
});
|
8072
|
-
|
8073
8054
|
async function prev() {
|
8074
8055
|
cancelTransition();
|
8075
8056
|
await fixSlidePosition();
|
@@ -8123,7 +8104,7 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
8123
8104
|
}
|
8124
8105
|
|
8125
8106
|
if ($$self.$$.dirty[0] & /*transitioning*/ 536870912) {
|
8126
|
-
$$invalidate(13, slideClass = ['slide', ''].join(' '));
|
8107
|
+
$$invalidate(13, slideClass = ['slide', transitioning ? 'transition' : ''].join(' '));
|
8127
8108
|
}
|
8128
8109
|
|
8129
8110
|
if ($$self.$$.dirty[0] & /*items, loop*/ 262146) {
|
@@ -8249,7 +8230,7 @@ class Slide extends SvelteComponent {
|
|
8249
8230
|
navigationEdgePosition: 26
|
8250
8231
|
},
|
8251
8232
|
add_css$a,
|
8252
|
-
[-1, -1
|
8233
|
+
[-1, -1]
|
8253
8234
|
);
|
8254
8235
|
}
|
8255
8236
|
}
|
@@ -8383,7 +8364,7 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
8383
8364
|
unregisterItem(id);
|
8384
8365
|
});
|
8385
8366
|
|
8386
|
-
let { _style = 'cursor:
|
8367
|
+
let { _style = 'cursor: ' } = $$props;
|
8387
8368
|
let itemWidth = null;
|
8388
8369
|
let itemTransform = 0;
|
8389
8370
|
|
package/dist/index.es.js
CHANGED
@@ -3919,8 +3919,6 @@ function create_fragment$r(ctx) {
|
|
3919
3919
|
};
|
3920
3920
|
}
|
3921
3921
|
|
3922
|
-
const GRID_ITEM_CONTEXT_KEY = 'GRID_ITEM';
|
3923
|
-
|
3924
3922
|
function instance$r($$self, $$props, $$invalidate) {
|
3925
3923
|
let _style;
|
3926
3924
|
let { $$slots: slots = {}, $$scope } = $$props;
|
@@ -3931,7 +3929,6 @@ function instance$r($$self, $$props, $$invalidate) {
|
|
3931
3929
|
let { z } = $$props;
|
3932
3930
|
let { background = 'transparent' } = $$props;
|
3933
3931
|
let { gridItemId } = $$props;
|
3934
|
-
setContext(GRID_ITEM_CONTEXT_KEY, { gridItemId });
|
3935
3932
|
|
3936
3933
|
onMount$1(() => {
|
3937
3934
|
setMaximumZindex(z);
|
@@ -6950,12 +6947,12 @@ function add_css$a(target) {
|
|
6950
6947
|
|
6951
6948
|
function get_each_context(ctx, list, i) {
|
6952
6949
|
const child_ctx = ctx.slice();
|
6953
|
-
child_ctx[
|
6954
|
-
child_ctx[
|
6950
|
+
child_ctx[58] = list[i];
|
6951
|
+
child_ctx[60] = i;
|
6955
6952
|
return child_ctx;
|
6956
6953
|
}
|
6957
6954
|
|
6958
|
-
// (
|
6955
|
+
// (357:2) {#if isVisiblePrevButton}
|
6959
6956
|
function create_if_block_1(ctx) {
|
6960
6957
|
let div1;
|
6961
6958
|
let div0;
|
@@ -7006,7 +7003,7 @@ function create_if_block_1(ctx) {
|
|
7006
7003
|
};
|
7007
7004
|
}
|
7008
7005
|
|
7009
|
-
// (
|
7006
|
+
// (366:2) {#if isVisibleNextButton}
|
7010
7007
|
function create_if_block$1(ctx) {
|
7011
7008
|
let div1;
|
7012
7009
|
let div0;
|
@@ -7057,7 +7054,7 @@ function create_if_block$1(ctx) {
|
|
7057
7054
|
};
|
7058
7055
|
}
|
7059
7056
|
|
7060
|
-
// (
|
7057
|
+
// (379:4) {#each items as _, i}
|
7061
7058
|
function create_each_block(ctx) {
|
7062
7059
|
let div1;
|
7063
7060
|
let div0;
|
@@ -7067,7 +7064,7 @@ function create_each_block(ctx) {
|
|
7067
7064
|
let dispose;
|
7068
7065
|
|
7069
7066
|
function click_handler() {
|
7070
|
-
return /*click_handler*/ ctx[35](/*i*/ ctx[
|
7067
|
+
return /*click_handler*/ ctx[35](/*i*/ ctx[60]);
|
7071
7068
|
}
|
7072
7069
|
|
7073
7070
|
return {
|
@@ -7076,7 +7073,7 @@ function create_each_block(ctx) {
|
|
7076
7073
|
div0 = element("div");
|
7077
7074
|
t = space();
|
7078
7075
|
attr(div0, "class", "navigation-item-inner circle svelte-1wlcw5a");
|
7079
|
-
attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[
|
7076
|
+
attr(div0, "style", div0_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[60]));
|
7080
7077
|
attr(div1, "class", "navigation-item svelte-1wlcw5a");
|
7081
7078
|
attr(div1, "style", /*navigationItemStyle*/ ctx[6]);
|
7082
7079
|
},
|
@@ -7093,7 +7090,7 @@ function create_each_block(ctx) {
|
|
7093
7090
|
p(new_ctx, dirty) {
|
7094
7091
|
ctx = new_ctx;
|
7095
7092
|
|
7096
|
-
if (dirty[0] & /*getNavigationItemInnerStyle*/ 32 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[
|
7093
|
+
if (dirty[0] & /*getNavigationItemInnerStyle*/ 32 && div0_style_value !== (div0_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[60]))) {
|
7097
7094
|
attr(div0, "style", div0_style_value);
|
7098
7095
|
}
|
7099
7096
|
|
@@ -7366,8 +7363,6 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
7366
7363
|
}
|
7367
7364
|
});
|
7368
7365
|
|
7369
|
-
const { gridItemId } = getContext(GRID_ITEM_CONTEXT_KEY);
|
7370
|
-
const CHANGE_SLIDE_EVENT_NAME = `CHANGE_SLIDE_${gridItemId}`;
|
7371
7366
|
let containerElement;
|
7372
7367
|
let slideElement;
|
7373
7368
|
let containerWidth;
|
@@ -7569,20 +7564,6 @@ function instance$b($$self, $$props, $$invalidate) {
|
|
7569
7564
|
};
|
7570
7565
|
});
|
7571
7566
|
|
7572
|
-
function handleChangeSlide(e) {
|
7573
|
-
const index = e.detail.index;
|
7574
|
-
|
7575
|
-
if (index >= 0) {
|
7576
|
-
set(index);
|
7577
|
-
}
|
7578
|
-
}
|
7579
|
-
|
7580
|
-
window.addEventListener(CHANGE_SLIDE_EVENT_NAME, handleChangeSlide);
|
7581
|
-
|
7582
|
-
onDestroy$1(() => {
|
7583
|
-
window.removeEventListener(CHANGE_SLIDE_EVENT_NAME, handleChangeSlide);
|
7584
|
-
});
|
7585
|
-
|
7586
7567
|
async function prev() {
|
7587
7568
|
cancelTransition();
|
7588
7569
|
await fixSlidePosition();
|
@@ -7762,7 +7743,7 @@ class Slide extends SvelteComponent {
|
|
7762
7743
|
navigationEdgePosition: 26
|
7763
7744
|
},
|
7764
7745
|
add_css$a,
|
7765
|
-
[-1, -1
|
7746
|
+
[-1, -1]
|
7766
7747
|
);
|
7767
7748
|
}
|
7768
7749
|
}
|
@@ -7883,7 +7864,7 @@ function instance$a($$self, $$props, $$invalidate) {
|
|
7883
7864
|
unregisterItem(id);
|
7884
7865
|
});
|
7885
7866
|
|
7886
|
-
let { _style = 'cursor:
|
7867
|
+
let { _style = 'cursor: ' } = $$props;
|
7887
7868
|
let itemWidth = null;
|
7888
7869
|
let itemTransform = 0;
|
7889
7870
|
|