@plaidev/karte-action-sdk 1.1.220 → 1.1.221
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.js +32 -27
- package/dist/index.es.js +32 -27
- package/package.json +10 -10
package/dist/hydrate/index.es.js
CHANGED
@@ -8140,14 +8140,14 @@ function add_css$e(target) {
|
|
8140
8140
|
|
8141
8141
|
function get_each_context$2(ctx, list, i) {
|
8142
8142
|
const child_ctx = ctx.slice();
|
8143
|
-
child_ctx[
|
8143
|
+
child_ctx[14] = list[i];
|
8144
8144
|
return child_ctx;
|
8145
8145
|
}
|
8146
8146
|
|
8147
|
-
// (
|
8147
|
+
// (68:2) {#each [...Array(count).keys()].map(i => i + startingNumber) as i}
|
8148
8148
|
function create_each_block$2(ctx) {
|
8149
8149
|
let button;
|
8150
|
-
let t0_value = /*i*/ ctx[
|
8150
|
+
let t0_value = /*i*/ ctx[14] + "";
|
8151
8151
|
let t0;
|
8152
8152
|
let t1;
|
8153
8153
|
let button_style_value;
|
@@ -8171,7 +8171,7 @@ function create_each_block$2(ctx) {
|
|
8171
8171
|
},
|
8172
8172
|
h() {
|
8173
8173
|
attr(button, "class", "rating-button svelte-9idbf1");
|
8174
|
-
attr(button, "style", button_style_value = /*getTextButtonStyle*/ ctx[
|
8174
|
+
attr(button, "style", button_style_value = /*getTextButtonStyle*/ ctx[5](/*i*/ ctx[14] === /*_value*/ ctx[2]));
|
8175
8175
|
},
|
8176
8176
|
m(target, anchor) {
|
8177
8177
|
insert_hydration(target, button, anchor);
|
@@ -8180,7 +8180,7 @@ function create_each_block$2(ctx) {
|
|
8180
8180
|
|
8181
8181
|
if (!mounted) {
|
8182
8182
|
dispose = listen(button, "click", function () {
|
8183
|
-
if (is_function(/*handleClick*/ ctx[
|
8183
|
+
if (is_function(/*handleClick*/ ctx[4](/*i*/ ctx[14]))) /*handleClick*/ ctx[4](/*i*/ ctx[14]).apply(this, arguments);
|
8184
8184
|
});
|
8185
8185
|
|
8186
8186
|
mounted = true;
|
@@ -8188,9 +8188,9 @@ function create_each_block$2(ctx) {
|
|
8188
8188
|
},
|
8189
8189
|
p(new_ctx, dirty) {
|
8190
8190
|
ctx = new_ctx;
|
8191
|
-
if (dirty & /*count*/
|
8191
|
+
if (dirty & /*count, startingNumber*/ 3 && t0_value !== (t0_value = /*i*/ ctx[14] + "")) set_data(t0, t0_value);
|
8192
8192
|
|
8193
|
-
if (dirty & /*count, _value*/
|
8193
|
+
if (dirty & /*count, startingNumber, _value*/ 7 && button_style_value !== (button_style_value = /*getTextButtonStyle*/ ctx[5](/*i*/ ctx[14] === /*_value*/ ctx[2]))) {
|
8194
8194
|
attr(button, "style", button_style_value);
|
8195
8195
|
}
|
8196
8196
|
},
|
@@ -8204,7 +8204,7 @@ function create_each_block$2(ctx) {
|
|
8204
8204
|
|
8205
8205
|
function create_fragment$f(ctx) {
|
8206
8206
|
let div;
|
8207
|
-
let each_value = [...Array(/*count*/ ctx[0]).keys()].map(func
|
8207
|
+
let each_value = [...Array(/*count*/ ctx[0]).keys()].map(/*func*/ ctx[12]);
|
8208
8208
|
let each_blocks = [];
|
8209
8209
|
|
8210
8210
|
for (let i = 0; i < each_value.length; i += 1) {
|
@@ -8243,8 +8243,8 @@ function create_fragment$f(ctx) {
|
|
8243
8243
|
}
|
8244
8244
|
},
|
8245
8245
|
p(ctx, [dirty]) {
|
8246
|
-
if (dirty & /*getTextButtonStyle, Array, count, _value, handleClick*/
|
8247
|
-
each_value = [...Array(/*count*/ ctx[0]).keys()].map(func
|
8246
|
+
if (dirty & /*getTextButtonStyle, Array, count, startingNumber, _value, handleClick*/ 55) {
|
8247
|
+
each_value = [...Array(/*count*/ ctx[0]).keys()].map(/*func*/ ctx[12]);
|
8248
8248
|
let i;
|
8249
8249
|
|
8250
8250
|
for (i = 0; i < each_value.length; i += 1) {
|
@@ -8275,14 +8275,13 @@ function create_fragment$f(ctx) {
|
|
8275
8275
|
};
|
8276
8276
|
}
|
8277
8277
|
|
8278
|
-
const func$1 = i => i + 1;
|
8279
|
-
|
8280
8278
|
function instance$f($$self, $$props, $$invalidate) {
|
8281
8279
|
let _value;
|
8282
8280
|
let $value;
|
8283
8281
|
let { name = '' } = $$props;
|
8284
8282
|
let { required = false } = $$props;
|
8285
8283
|
let { count = 5 } = $$props;
|
8284
|
+
let { startingNumber = 1 } = $$props;
|
8286
8285
|
let { font = SYSTEM_FONT } = $$props;
|
8287
8286
|
let { buttonStyle = 'width: 32px; height: 32px; font-size: 12px; font-weight: bold; border-radius: 17px; color: #333; background-color: rgba(0, 16, 14, 0.06); box-shadow: 0px 0px 16px 0px rgba(0, 16, 14, 0);' } = $$props;
|
8288
8287
|
let { buttonActiveStyle = 'color: #333; background-color: #2aab9f; box-shadow: 0px 8px 16px 0px rgba(0, 16, 14, 0.3);' } = $$props;
|
@@ -8298,7 +8297,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
8298
8297
|
}
|
8299
8298
|
});
|
8300
8299
|
|
8301
|
-
component_subscribe($$self, value, value => $$invalidate(
|
8300
|
+
component_subscribe($$self, value, value => $$invalidate(11, $value = value));
|
8302
8301
|
|
8303
8302
|
const handleClick = index => event => {
|
8304
8303
|
value.set([String(index)]);
|
@@ -8312,27 +8311,31 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
8312
8311
|
].join(';');
|
8313
8312
|
}
|
8314
8313
|
|
8314
|
+
const func = i => i + startingNumber;
|
8315
|
+
|
8315
8316
|
$$self.$$set = $$props => {
|
8316
|
-
if ('name' in $$props) $$invalidate(
|
8317
|
-
if ('required' in $$props) $$invalidate(
|
8317
|
+
if ('name' in $$props) $$invalidate(6, name = $$props.name);
|
8318
|
+
if ('required' in $$props) $$invalidate(7, required = $$props.required);
|
8318
8319
|
if ('count' in $$props) $$invalidate(0, count = $$props.count);
|
8319
|
-
if ('
|
8320
|
-
if ('
|
8321
|
-
if ('
|
8320
|
+
if ('startingNumber' in $$props) $$invalidate(1, startingNumber = $$props.startingNumber);
|
8321
|
+
if ('font' in $$props) $$invalidate(8, font = $$props.font);
|
8322
|
+
if ('buttonStyle' in $$props) $$invalidate(9, buttonStyle = $$props.buttonStyle);
|
8323
|
+
if ('buttonActiveStyle' in $$props) $$invalidate(10, buttonActiveStyle = $$props.buttonActiveStyle);
|
8322
8324
|
};
|
8323
8325
|
|
8324
8326
|
$$self.$$.update = () => {
|
8325
|
-
if ($$self.$$.dirty & /*font*/
|
8327
|
+
if ($$self.$$.dirty & /*font*/ 256) {
|
8326
8328
|
addFont(font);
|
8327
8329
|
}
|
8328
8330
|
|
8329
|
-
if ($$self.$$.dirty & /*$value*/
|
8330
|
-
$$invalidate(
|
8331
|
+
if ($$self.$$.dirty & /*$value*/ 2048) {
|
8332
|
+
$$invalidate(2, _value = Number($value[0] ?? -1));
|
8331
8333
|
}
|
8332
8334
|
};
|
8333
8335
|
|
8334
8336
|
return [
|
8335
8337
|
count,
|
8338
|
+
startingNumber,
|
8336
8339
|
_value,
|
8337
8340
|
value,
|
8338
8341
|
handleClick,
|
@@ -8342,7 +8345,8 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
8342
8345
|
font,
|
8343
8346
|
buttonStyle,
|
8344
8347
|
buttonActiveStyle,
|
8345
|
-
$value
|
8348
|
+
$value,
|
8349
|
+
func
|
8346
8350
|
];
|
8347
8351
|
}
|
8348
8352
|
|
@@ -8357,12 +8361,13 @@ class FormRatingButtonsNumber extends SvelteComponent {
|
|
8357
8361
|
create_fragment$f,
|
8358
8362
|
safe_not_equal,
|
8359
8363
|
{
|
8360
|
-
name:
|
8361
|
-
required:
|
8364
|
+
name: 6,
|
8365
|
+
required: 7,
|
8362
8366
|
count: 0,
|
8363
|
-
|
8364
|
-
|
8365
|
-
|
8367
|
+
startingNumber: 1,
|
8368
|
+
font: 8,
|
8369
|
+
buttonStyle: 9,
|
8370
|
+
buttonActiveStyle: 10
|
8366
8371
|
},
|
8367
8372
|
add_css$e
|
8368
8373
|
);
|
package/dist/index.es.js
CHANGED
@@ -7783,14 +7783,14 @@ function add_css$e(target) {
|
|
7783
7783
|
|
7784
7784
|
function get_each_context$2(ctx, list, i) {
|
7785
7785
|
const child_ctx = ctx.slice();
|
7786
|
-
child_ctx[
|
7786
|
+
child_ctx[14] = list[i];
|
7787
7787
|
return child_ctx;
|
7788
7788
|
}
|
7789
7789
|
|
7790
|
-
// (
|
7790
|
+
// (68:2) {#each [...Array(count).keys()].map(i => i + startingNumber) as i}
|
7791
7791
|
function create_each_block$2(ctx) {
|
7792
7792
|
let button;
|
7793
|
-
let t0_value = /*i*/ ctx[
|
7793
|
+
let t0_value = /*i*/ ctx[14] + "";
|
7794
7794
|
let t0;
|
7795
7795
|
let t1;
|
7796
7796
|
let button_style_value;
|
@@ -7803,7 +7803,7 @@ function create_each_block$2(ctx) {
|
|
7803
7803
|
t0 = text(t0_value);
|
7804
7804
|
t1 = space();
|
7805
7805
|
attr(button, "class", "rating-button svelte-9idbf1");
|
7806
|
-
attr(button, "style", button_style_value = /*getTextButtonStyle*/ ctx[
|
7806
|
+
attr(button, "style", button_style_value = /*getTextButtonStyle*/ ctx[5](/*i*/ ctx[14] === /*_value*/ ctx[2]));
|
7807
7807
|
},
|
7808
7808
|
m(target, anchor) {
|
7809
7809
|
insert(target, button, anchor);
|
@@ -7812,7 +7812,7 @@ function create_each_block$2(ctx) {
|
|
7812
7812
|
|
7813
7813
|
if (!mounted) {
|
7814
7814
|
dispose = listen(button, "click", function () {
|
7815
|
-
if (is_function(/*handleClick*/ ctx[
|
7815
|
+
if (is_function(/*handleClick*/ ctx[4](/*i*/ ctx[14]))) /*handleClick*/ ctx[4](/*i*/ ctx[14]).apply(this, arguments);
|
7816
7816
|
});
|
7817
7817
|
|
7818
7818
|
mounted = true;
|
@@ -7820,9 +7820,9 @@ function create_each_block$2(ctx) {
|
|
7820
7820
|
},
|
7821
7821
|
p(new_ctx, dirty) {
|
7822
7822
|
ctx = new_ctx;
|
7823
|
-
if (dirty & /*count*/
|
7823
|
+
if (dirty & /*count, startingNumber*/ 3 && t0_value !== (t0_value = /*i*/ ctx[14] + "")) set_data(t0, t0_value);
|
7824
7824
|
|
7825
|
-
if (dirty & /*count, _value*/
|
7825
|
+
if (dirty & /*count, startingNumber, _value*/ 7 && button_style_value !== (button_style_value = /*getTextButtonStyle*/ ctx[5](/*i*/ ctx[14] === /*_value*/ ctx[2]))) {
|
7826
7826
|
attr(button, "style", button_style_value);
|
7827
7827
|
}
|
7828
7828
|
},
|
@@ -7836,7 +7836,7 @@ function create_each_block$2(ctx) {
|
|
7836
7836
|
|
7837
7837
|
function create_fragment$f(ctx) {
|
7838
7838
|
let div;
|
7839
|
-
let each_value = [...Array(/*count*/ ctx[0]).keys()].map(func
|
7839
|
+
let each_value = [...Array(/*count*/ ctx[0]).keys()].map(/*func*/ ctx[12]);
|
7840
7840
|
let each_blocks = [];
|
7841
7841
|
|
7842
7842
|
for (let i = 0; i < each_value.length; i += 1) {
|
@@ -7861,8 +7861,8 @@ function create_fragment$f(ctx) {
|
|
7861
7861
|
}
|
7862
7862
|
},
|
7863
7863
|
p(ctx, [dirty]) {
|
7864
|
-
if (dirty & /*getTextButtonStyle, Array, count, _value, handleClick*/
|
7865
|
-
each_value = [...Array(/*count*/ ctx[0]).keys()].map(func
|
7864
|
+
if (dirty & /*getTextButtonStyle, Array, count, startingNumber, _value, handleClick*/ 55) {
|
7865
|
+
each_value = [...Array(/*count*/ ctx[0]).keys()].map(/*func*/ ctx[12]);
|
7866
7866
|
let i;
|
7867
7867
|
|
7868
7868
|
for (i = 0; i < each_value.length; i += 1) {
|
@@ -7893,14 +7893,13 @@ function create_fragment$f(ctx) {
|
|
7893
7893
|
};
|
7894
7894
|
}
|
7895
7895
|
|
7896
|
-
const func$1 = i => i + 1;
|
7897
|
-
|
7898
7896
|
function instance$f($$self, $$props, $$invalidate) {
|
7899
7897
|
let _value;
|
7900
7898
|
let $value;
|
7901
7899
|
let { name = '' } = $$props;
|
7902
7900
|
let { required = false } = $$props;
|
7903
7901
|
let { count = 5 } = $$props;
|
7902
|
+
let { startingNumber = 1 } = $$props;
|
7904
7903
|
let { font = SYSTEM_FONT } = $$props;
|
7905
7904
|
let { buttonStyle = 'width: 32px; height: 32px; font-size: 12px; font-weight: bold; border-radius: 17px; color: #333; background-color: rgba(0, 16, 14, 0.06); box-shadow: 0px 0px 16px 0px rgba(0, 16, 14, 0);' } = $$props;
|
7906
7905
|
let { buttonActiveStyle = 'color: #333; background-color: #2aab9f; box-shadow: 0px 8px 16px 0px rgba(0, 16, 14, 0.3);' } = $$props;
|
@@ -7916,7 +7915,7 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
7916
7915
|
}
|
7917
7916
|
});
|
7918
7917
|
|
7919
|
-
component_subscribe($$self, value, value => $$invalidate(
|
7918
|
+
component_subscribe($$self, value, value => $$invalidate(11, $value = value));
|
7920
7919
|
|
7921
7920
|
const handleClick = index => event => {
|
7922
7921
|
value.set([String(index)]);
|
@@ -7930,27 +7929,31 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
7930
7929
|
].join(';');
|
7931
7930
|
}
|
7932
7931
|
|
7932
|
+
const func = i => i + startingNumber;
|
7933
|
+
|
7933
7934
|
$$self.$$set = $$props => {
|
7934
|
-
if ('name' in $$props) $$invalidate(
|
7935
|
-
if ('required' in $$props) $$invalidate(
|
7935
|
+
if ('name' in $$props) $$invalidate(6, name = $$props.name);
|
7936
|
+
if ('required' in $$props) $$invalidate(7, required = $$props.required);
|
7936
7937
|
if ('count' in $$props) $$invalidate(0, count = $$props.count);
|
7937
|
-
if ('
|
7938
|
-
if ('
|
7939
|
-
if ('
|
7938
|
+
if ('startingNumber' in $$props) $$invalidate(1, startingNumber = $$props.startingNumber);
|
7939
|
+
if ('font' in $$props) $$invalidate(8, font = $$props.font);
|
7940
|
+
if ('buttonStyle' in $$props) $$invalidate(9, buttonStyle = $$props.buttonStyle);
|
7941
|
+
if ('buttonActiveStyle' in $$props) $$invalidate(10, buttonActiveStyle = $$props.buttonActiveStyle);
|
7940
7942
|
};
|
7941
7943
|
|
7942
7944
|
$$self.$$.update = () => {
|
7943
|
-
if ($$self.$$.dirty & /*font*/
|
7945
|
+
if ($$self.$$.dirty & /*font*/ 256) {
|
7944
7946
|
addFont(font);
|
7945
7947
|
}
|
7946
7948
|
|
7947
|
-
if ($$self.$$.dirty & /*$value*/
|
7948
|
-
$$invalidate(
|
7949
|
+
if ($$self.$$.dirty & /*$value*/ 2048) {
|
7950
|
+
$$invalidate(2, _value = Number($value[0] ?? -1));
|
7949
7951
|
}
|
7950
7952
|
};
|
7951
7953
|
|
7952
7954
|
return [
|
7953
7955
|
count,
|
7956
|
+
startingNumber,
|
7954
7957
|
_value,
|
7955
7958
|
value,
|
7956
7959
|
handleClick,
|
@@ -7960,7 +7963,8 @@ function instance$f($$self, $$props, $$invalidate) {
|
|
7960
7963
|
font,
|
7961
7964
|
buttonStyle,
|
7962
7965
|
buttonActiveStyle,
|
7963
|
-
$value
|
7966
|
+
$value,
|
7967
|
+
func
|
7964
7968
|
];
|
7965
7969
|
}
|
7966
7970
|
|
@@ -7975,12 +7979,13 @@ class FormRatingButtonsNumber extends SvelteComponent {
|
|
7975
7979
|
create_fragment$f,
|
7976
7980
|
safe_not_equal,
|
7977
7981
|
{
|
7978
|
-
name:
|
7979
|
-
required:
|
7982
|
+
name: 6,
|
7983
|
+
required: 7,
|
7980
7984
|
count: 0,
|
7981
|
-
|
7982
|
-
|
7983
|
-
|
7985
|
+
startingNumber: 1,
|
7986
|
+
font: 8,
|
7987
|
+
buttonStyle: 9,
|
7988
|
+
buttonActiveStyle: 10
|
7984
7989
|
},
|
7985
7990
|
add_css$e
|
7986
7991
|
);
|
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.221",
|
4
4
|
"author": "Plaid Inc.",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"module": "./dist/index.es.js",
|
@@ -56,6 +56,7 @@
|
|
56
56
|
"devDependencies": {
|
57
57
|
"@microsoft/api-documenter": "7.19.28",
|
58
58
|
"@microsoft/api-extractor": "7.33.8",
|
59
|
+
"@plaidev/action-compiler": "workspace:*",
|
59
60
|
"@rollup/plugin-alias": "^4.0.0",
|
60
61
|
"@rollup/plugin-commonjs": "^23.0.1",
|
61
62
|
"@rollup/plugin-json": "^5.0.0",
|
@@ -95,14 +96,7 @@
|
|
95
96
|
"tsx": "^3.12.3",
|
96
97
|
"typescript": "^4.7.4",
|
97
98
|
"vitepress": "1.0.0-alpha.30",
|
98
|
-
"vitest": "latest"
|
99
|
-
"@plaidev/action-compiler": "0.4.231"
|
100
|
-
},
|
101
|
-
"publishConfig": {
|
102
|
-
"access": "public"
|
103
|
-
},
|
104
|
-
"dependencies": {
|
105
|
-
"@rollup/plugin-image": "^3.0.2"
|
99
|
+
"vitest": "latest"
|
106
100
|
},
|
107
101
|
"scripts": {
|
108
102
|
"dev": "tsx ./scripts/preview.ts",
|
@@ -131,5 +125,11 @@
|
|
131
125
|
"test:update": "vitest -u",
|
132
126
|
"coverage": "vitest run test --coverage",
|
133
127
|
"icons:update": "tsx ./scripts/update-icons.ts && prettier -w ./src/icons.ts"
|
128
|
+
},
|
129
|
+
"publishConfig": {
|
130
|
+
"access": "public"
|
131
|
+
},
|
132
|
+
"dependencies": {
|
133
|
+
"@rollup/plugin-image": "^3.0.2"
|
134
134
|
}
|
135
|
-
}
|
135
|
+
}
|