@plaidev/karte-action-sdk 1.1.242-28709353.8f816485 → 1.1.242-28714664.932b9ab6
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.d.ts +8 -8
- package/dist/hydrate/index.es.js +14 -7
- package/dist/index.es.d.ts +8 -8
- package/dist/index.es.js +14 -7
- package/package.json +1 -1
@@ -2382,19 +2382,19 @@ type PaddingProps = {
|
|
2382
2382
|
paddingRight?: Properties["paddingRight"];
|
2383
2383
|
};
|
2384
2384
|
type RadiusProps = {
|
2385
|
-
borderTopLeftRadius
|
2386
|
-
borderTopRightRadius
|
2387
|
-
borderBottomLeftRadius
|
2388
|
-
borderBottomRightRadius
|
2385
|
+
borderTopLeftRadius?: Properties["borderTopLeftRadius"];
|
2386
|
+
borderTopRightRadius?: Properties["borderTopRightRadius"];
|
2387
|
+
borderBottomLeftRadius?: Properties["borderBottomLeftRadius"];
|
2388
|
+
borderBottomRightRadius?: Properties["borderBottomRightRadius"];
|
2389
2389
|
};
|
2390
2390
|
type BackgroundColorProps = {
|
2391
|
-
backgroundColor
|
2391
|
+
backgroundColor?: Properties["backgroundColor"];
|
2392
2392
|
};
|
2393
2393
|
type BackgroundImageProps = {
|
2394
|
-
backgroundImageUrl
|
2394
|
+
backgroundImageUrl?: string;
|
2395
2395
|
};
|
2396
2396
|
type ShadowProps = {
|
2397
|
-
shadow
|
2397
|
+
shadow?: Properties["boxShadow"];
|
2398
2398
|
};
|
2399
2399
|
declare const AVATAR_SIZE: {
|
2400
2400
|
readonly extra_small: "XS\uFF0848 x 48\uFF09";
|
@@ -2620,7 +2620,7 @@ declare const ICON_VARIANTS: {
|
|
2620
2620
|
type IconProps = CommonProps & {
|
2621
2621
|
variant: string;
|
2622
2622
|
size?: keyof typeof ICON_SIZE;
|
2623
|
-
color
|
2623
|
+
color?: Properties$0["color"];
|
2624
2624
|
width?: Properties$0["width"];
|
2625
2625
|
height?: Properties$0["height"];
|
2626
2626
|
};
|
package/dist/hydrate/index.es.js
CHANGED
@@ -1784,6 +1784,11 @@ function createModal(App, options = {
|
|
1784
1784
|
publish: options.publish,
|
1785
1785
|
data,
|
1786
1786
|
};
|
1787
|
+
const sendErrorIfMessageOpenEventNotSent = () => {
|
1788
|
+
if (!hasAlreadySentMessageOpenEvent) {
|
1789
|
+
options.send('_error', { type: 'action', error_type: 'action_message_open_event_not_sent' });
|
1790
|
+
}
|
1791
|
+
};
|
1787
1792
|
const close = (trigger = 'none') => {
|
1788
1793
|
if (!app) {
|
1789
1794
|
return NOOP;
|
@@ -1792,6 +1797,7 @@ function createModal(App, options = {
|
|
1792
1797
|
options.send('message_close', { trigger, state: getState$1() });
|
1793
1798
|
hasAlreadySentMessageCloseEvent = true;
|
1794
1799
|
}
|
1800
|
+
sendErrorIfMessageOpenEventNotSent();
|
1795
1801
|
options.send('_message_state_changed', {
|
1796
1802
|
trigger,
|
1797
1803
|
oldState: getState$1(),
|
@@ -1836,6 +1842,7 @@ function createModal(App, options = {
|
|
1836
1842
|
options.send('message_open', { state: getState$1() });
|
1837
1843
|
hasAlreadySentMessageOpenEvent = true;
|
1838
1844
|
}
|
1845
|
+
sendErrorIfMessageOpenEventNotSent();
|
1839
1846
|
options.send('_message_state_changed', {
|
1840
1847
|
trigger,
|
1841
1848
|
oldState: '',
|
@@ -13990,10 +13997,10 @@ const ICON_VARIANTS = {
|
|
13990
13997
|
/* src/components-flex/icon/Icon.svelte generated by Svelte v3.53.1 */
|
13991
13998
|
|
13992
13999
|
function add_css$8(target) {
|
13993
|
-
append_styles(target, "svelte-
|
14000
|
+
append_styles(target, "svelte-4stwad", ".icon.svelte-4stwad{display:inline-flex;align-items:center;overflow:hidden;width:auto;font-size:0}");
|
13994
14001
|
}
|
13995
14002
|
|
13996
|
-
// (
|
14003
|
+
// (20:0) {#if (IconComponent)}
|
13997
14004
|
function create_if_block$5(ctx) {
|
13998
14005
|
let div;
|
13999
14006
|
let switch_instance;
|
@@ -14002,7 +14009,9 @@ function create_if_block$5(ctx) {
|
|
14002
14009
|
|
14003
14010
|
function switch_props(ctx) {
|
14004
14011
|
return {
|
14005
|
-
props: {
|
14012
|
+
props: {
|
14013
|
+
color: /*props*/ ctx[0].color ?? 'currentColor'
|
14014
|
+
}
|
14006
14015
|
};
|
14007
14016
|
}
|
14008
14017
|
|
@@ -14030,7 +14039,7 @@ function create_if_block$5(ctx) {
|
|
14030
14039
|
},
|
14031
14040
|
h() {
|
14032
14041
|
attr(div, "data-layer-id", /*layerId*/ ctx[1]);
|
14033
|
-
attr(div, "class", "icon svelte-
|
14042
|
+
attr(div, "class", "icon svelte-4stwad");
|
14034
14043
|
attr(div, "style", /*style*/ ctx[3]);
|
14035
14044
|
},
|
14036
14045
|
m(target, anchor) {
|
@@ -14040,7 +14049,7 @@ function create_if_block$5(ctx) {
|
|
14040
14049
|
},
|
14041
14050
|
p(ctx, dirty) {
|
14042
14051
|
const switch_instance_changes = {};
|
14043
|
-
if (dirty & /*props*/ 1) switch_instance_changes.color = /*props*/ ctx[0].color ?? '
|
14052
|
+
if (dirty & /*props*/ 1) switch_instance_changes.color = /*props*/ ctx[0].color ?? 'currentColor';
|
14044
14053
|
|
14045
14054
|
if (switch_value !== (switch_value = /*IconComponent*/ ctx[2])) {
|
14046
14055
|
if (switch_instance) {
|
@@ -14169,8 +14178,6 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
14169
14178
|
};
|
14170
14179
|
};
|
14171
14180
|
|
14172
|
-
console.log(props.color);
|
14173
|
-
|
14174
14181
|
$$self.$$set = $$props => {
|
14175
14182
|
if ('props' in $$props) $$invalidate(0, props = $$props.props);
|
14176
14183
|
if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
|
package/dist/index.es.d.ts
CHANGED
@@ -2382,19 +2382,19 @@ type PaddingProps = {
|
|
2382
2382
|
paddingRight?: Properties["paddingRight"];
|
2383
2383
|
};
|
2384
2384
|
type RadiusProps = {
|
2385
|
-
borderTopLeftRadius
|
2386
|
-
borderTopRightRadius
|
2387
|
-
borderBottomLeftRadius
|
2388
|
-
borderBottomRightRadius
|
2385
|
+
borderTopLeftRadius?: Properties["borderTopLeftRadius"];
|
2386
|
+
borderTopRightRadius?: Properties["borderTopRightRadius"];
|
2387
|
+
borderBottomLeftRadius?: Properties["borderBottomLeftRadius"];
|
2388
|
+
borderBottomRightRadius?: Properties["borderBottomRightRadius"];
|
2389
2389
|
};
|
2390
2390
|
type BackgroundColorProps = {
|
2391
|
-
backgroundColor
|
2391
|
+
backgroundColor?: Properties["backgroundColor"];
|
2392
2392
|
};
|
2393
2393
|
type BackgroundImageProps = {
|
2394
|
-
backgroundImageUrl
|
2394
|
+
backgroundImageUrl?: string;
|
2395
2395
|
};
|
2396
2396
|
type ShadowProps = {
|
2397
|
-
shadow
|
2397
|
+
shadow?: Properties["boxShadow"];
|
2398
2398
|
};
|
2399
2399
|
declare const AVATAR_SIZE: {
|
2400
2400
|
readonly extra_small: "XS\uFF0848 x 48\uFF09";
|
@@ -2620,7 +2620,7 @@ declare const ICON_VARIANTS: {
|
|
2620
2620
|
type IconProps = CommonProps & {
|
2621
2621
|
variant: string;
|
2622
2622
|
size?: keyof typeof ICON_SIZE;
|
2623
|
-
color
|
2623
|
+
color?: Properties$0["color"];
|
2624
2624
|
width?: Properties$0["width"];
|
2625
2625
|
height?: Properties$0["height"];
|
2626
2626
|
};
|
package/dist/index.es.js
CHANGED
@@ -1825,6 +1825,11 @@ function createModal(App, options = {
|
|
1825
1825
|
publish: options.publish,
|
1826
1826
|
data,
|
1827
1827
|
};
|
1828
|
+
const sendErrorIfMessageOpenEventNotSent = () => {
|
1829
|
+
if (!hasAlreadySentMessageOpenEvent) {
|
1830
|
+
options.send('_error', { type: 'action', error_type: 'action_message_open_event_not_sent' });
|
1831
|
+
}
|
1832
|
+
};
|
1828
1833
|
const close = (trigger = 'none') => {
|
1829
1834
|
if (!app) {
|
1830
1835
|
return NOOP;
|
@@ -1833,6 +1838,7 @@ function createModal(App, options = {
|
|
1833
1838
|
options.send('message_close', { trigger, state: getState$1() });
|
1834
1839
|
hasAlreadySentMessageCloseEvent = true;
|
1835
1840
|
}
|
1841
|
+
sendErrorIfMessageOpenEventNotSent();
|
1836
1842
|
options.send('_message_state_changed', {
|
1837
1843
|
trigger,
|
1838
1844
|
oldState: getState$1(),
|
@@ -1874,6 +1880,7 @@ function createModal(App, options = {
|
|
1874
1880
|
options.send('message_open', { state: getState$1() });
|
1875
1881
|
hasAlreadySentMessageOpenEvent = true;
|
1876
1882
|
}
|
1883
|
+
sendErrorIfMessageOpenEventNotSent();
|
1877
1884
|
options.send('_message_state_changed', {
|
1878
1885
|
trigger,
|
1879
1886
|
oldState: '',
|
@@ -12995,10 +13002,10 @@ const ICON_VARIANTS = {
|
|
12995
13002
|
/* src/components-flex/icon/Icon.svelte generated by Svelte v3.53.1 */
|
12996
13003
|
|
12997
13004
|
function add_css$8(target) {
|
12998
|
-
append_styles(target, "svelte-
|
13005
|
+
append_styles(target, "svelte-4stwad", ".icon.svelte-4stwad{display:inline-flex;align-items:center;overflow:hidden;width:auto;font-size:0}");
|
12999
13006
|
}
|
13000
13007
|
|
13001
|
-
// (
|
13008
|
+
// (20:0) {#if (IconComponent)}
|
13002
13009
|
function create_if_block$5(ctx) {
|
13003
13010
|
let div;
|
13004
13011
|
let switch_instance;
|
@@ -13007,7 +13014,9 @@ function create_if_block$5(ctx) {
|
|
13007
13014
|
|
13008
13015
|
function switch_props(ctx) {
|
13009
13016
|
return {
|
13010
|
-
props: {
|
13017
|
+
props: {
|
13018
|
+
color: /*props*/ ctx[0].color ?? 'currentColor'
|
13019
|
+
}
|
13011
13020
|
};
|
13012
13021
|
}
|
13013
13022
|
|
@@ -13020,7 +13029,7 @@ function create_if_block$5(ctx) {
|
|
13020
13029
|
div = element("div");
|
13021
13030
|
if (switch_instance) create_component(switch_instance.$$.fragment);
|
13022
13031
|
attr(div, "data-layer-id", /*layerId*/ ctx[1]);
|
13023
|
-
attr(div, "class", "icon svelte-
|
13032
|
+
attr(div, "class", "icon svelte-4stwad");
|
13024
13033
|
attr(div, "style", /*style*/ ctx[3]);
|
13025
13034
|
},
|
13026
13035
|
m(target, anchor) {
|
@@ -13030,7 +13039,7 @@ function create_if_block$5(ctx) {
|
|
13030
13039
|
},
|
13031
13040
|
p(ctx, dirty) {
|
13032
13041
|
const switch_instance_changes = {};
|
13033
|
-
if (dirty & /*props*/ 1) switch_instance_changes.color = /*props*/ ctx[0].color ?? '
|
13042
|
+
if (dirty & /*props*/ 1) switch_instance_changes.color = /*props*/ ctx[0].color ?? 'currentColor';
|
13034
13043
|
|
13035
13044
|
if (switch_value !== (switch_value = /*IconComponent*/ ctx[2])) {
|
13036
13045
|
if (switch_instance) {
|
@@ -13155,8 +13164,6 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
13155
13164
|
};
|
13156
13165
|
};
|
13157
13166
|
|
13158
|
-
console.log(props.color);
|
13159
|
-
|
13160
13167
|
$$self.$$set = $$props => {
|
13161
13168
|
if ('props' in $$props) $$invalidate(0, props = $$props.props);
|
13162
13169
|
if ('layerId' in $$props) $$invalidate(1, layerId = $$props.layerId);
|