@plaidev/karte-action-sdk 1.1.207-28212888.037c8e0f → 1.1.207-28216182.2d812378

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.
@@ -1,6 +1,6 @@
1
1
  import { writable, get } from 'svelte/store';
2
2
  import { onMount as onMount$1, onDestroy as onDestroy$1, beforeUpdate as beforeUpdate$1, afterUpdate as afterUpdate$1, tick as tick$1, setContext, getContext, createEventDispatcher } from 'svelte';
3
- import { SvelteComponent, init, safe_not_equal, element, claim_element, children, detach, insert_hydration, noop, component_subscribe, attr, create_slot, create_component, space, claim_component, claim_space, mount_component, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, append_styles, empty, group_outros, check_outros, listen, assign, set_attributes, toggle_class, get_spread_update, null_to_empty, prevent_default, is_function, add_render_callback, create_in_transition, binding_callbacks, set_style, svg_element, claim_svg_element, append_hydration, destroy_each, text, claim_text, set_data, src_url_equal, HtmlTagHydration, claim_html_tag, construct_svelte_component, subscribe } from 'svelte/internal';
3
+ import { SvelteComponent, init, safe_not_equal, element, claim_element, children, detach, insert_hydration, noop, component_subscribe, attr, create_slot, create_component, space, claim_component, claim_space, mount_component, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, append_styles, empty, group_outros, check_outros, null_to_empty, listen, assign, set_attributes, toggle_class, get_spread_update, prevent_default, is_function, add_render_callback, create_in_transition, binding_callbacks, set_style, svg_element, claim_svg_element, append_hydration, destroy_each, text, claim_text, set_data, src_url_equal, HtmlTagHydration, claim_html_tag, construct_svelte_component, subscribe } from 'svelte/internal';
4
4
  import 'svelte/easing';
5
5
 
6
6
  /** @internal */
@@ -3070,9 +3070,10 @@ function add_css$s(target) {
3070
3070
  append_styles(target, "svelte-1d4fta", ".background.svelte-1d4fta{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
3071
3071
  }
3072
3072
 
3073
- // (9:0) {#if backgroundOverlay}
3073
+ // (14:0) {#if backgroundOverlay}
3074
3074
  function create_if_block$7(ctx) {
3075
3075
  let div;
3076
+ let div_class_value;
3076
3077
  let mounted;
3077
3078
  let dispose;
3078
3079
 
@@ -3087,17 +3088,21 @@ function create_if_block$7(ctx) {
3087
3088
  this.h();
3088
3089
  },
3089
3090
  h() {
3090
- attr(div, "class", "background svelte-1d4fta");
3091
+ attr(div, "class", div_class_value = "" + (null_to_empty(['background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-1d4fta"));
3091
3092
  },
3092
3093
  m(target, anchor) {
3093
3094
  insert_hydration(target, div, anchor);
3094
3095
 
3095
3096
  if (!mounted) {
3096
- dispose = listen(div, "click", /*click_handler*/ ctx[2]);
3097
+ dispose = listen(div, "click", /*click_handler*/ ctx[3]);
3097
3098
  mounted = true;
3098
3099
  }
3099
3100
  },
3100
- p: noop,
3101
+ p(ctx, dirty) {
3102
+ if (dirty & /*className*/ 2 && div_class_value !== (div_class_value = "" + (null_to_empty(['background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-1d4fta"))) {
3103
+ attr(div, "class", div_class_value);
3104
+ }
3105
+ },
3101
3106
  d(detaching) {
3102
3107
  if (detaching) detach(div);
3103
3108
  mounted = false;
@@ -3148,20 +3153,22 @@ function create_fragment$v(ctx) {
3148
3153
 
3149
3154
  function instance$v($$self, $$props, $$invalidate) {
3150
3155
  let { backgroundOverlay = false } = $$props;
3156
+ let { class: className = undefined } = $$props;
3151
3157
  const dispatch = createEventDispatcher();
3152
3158
  const click_handler = () => dispatch('click');
3153
3159
 
3154
3160
  $$self.$$set = $$props => {
3155
3161
  if ('backgroundOverlay' in $$props) $$invalidate(0, backgroundOverlay = $$props.backgroundOverlay);
3162
+ if ('class' in $$props) $$invalidate(1, className = $$props.class);
3156
3163
  };
3157
3164
 
3158
- return [backgroundOverlay, dispatch, click_handler];
3165
+ return [backgroundOverlay, className, dispatch, click_handler];
3159
3166
  }
3160
3167
 
3161
3168
  class BackgroundOverlay extends SvelteComponent {
3162
3169
  constructor(options) {
3163
3170
  super();
3164
- init(this, options, instance$v, create_fragment$v, safe_not_equal, { backgroundOverlay: 0 }, add_css$s);
3171
+ init(this, options, instance$v, create_fragment$v, safe_not_equal, { backgroundOverlay: 0, class: 1 }, add_css$s);
3165
3172
  }
3166
3173
  }
3167
3174
 
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { writable, get } from 'svelte/store';
2
2
  import { onMount as onMount$1, onDestroy as onDestroy$1, beforeUpdate as beforeUpdate$1, afterUpdate as afterUpdate$1, tick as tick$1, setContext, getContext, createEventDispatcher } from 'svelte';
3
- import { SvelteComponent, init, safe_not_equal, element, insert, noop, detach, component_subscribe, attr, create_slot, create_component, space, mount_component, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, append_styles, empty, group_outros, check_outros, listen, assign, set_attributes, toggle_class, get_spread_update, null_to_empty, prevent_default, is_function, add_render_callback, create_in_transition, binding_callbacks, set_style, svg_element, append, destroy_each, text, set_data, src_url_equal, HtmlTag, construct_svelte_component, subscribe } from 'svelte/internal';
3
+ import { SvelteComponent, init, safe_not_equal, element, insert, noop, detach, component_subscribe, attr, create_slot, create_component, space, mount_component, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, destroy_component, append_styles, empty, group_outros, check_outros, null_to_empty, listen, assign, set_attributes, toggle_class, get_spread_update, prevent_default, is_function, add_render_callback, create_in_transition, binding_callbacks, set_style, svg_element, append, destroy_each, text, set_data, src_url_equal, HtmlTag, construct_svelte_component, subscribe } from 'svelte/internal';
4
4
  import { linear, elasticOut, cubicOut } from 'svelte/easing';
5
5
 
6
6
  /** @internal */
@@ -3141,26 +3141,31 @@ function add_css$s(target) {
3141
3141
  append_styles(target, "svelte-1d4fta", ".background.svelte-1d4fta{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
3142
3142
  }
3143
3143
 
3144
- // (9:0) {#if backgroundOverlay}
3144
+ // (14:0) {#if backgroundOverlay}
3145
3145
  function create_if_block$7(ctx) {
3146
3146
  let div;
3147
+ let div_class_value;
3147
3148
  let mounted;
3148
3149
  let dispose;
3149
3150
 
3150
3151
  return {
3151
3152
  c() {
3152
3153
  div = element("div");
3153
- attr(div, "class", "background svelte-1d4fta");
3154
+ attr(div, "class", div_class_value = "" + (null_to_empty(['background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-1d4fta"));
3154
3155
  },
3155
3156
  m(target, anchor) {
3156
3157
  insert(target, div, anchor);
3157
3158
 
3158
3159
  if (!mounted) {
3159
- dispose = listen(div, "click", /*click_handler*/ ctx[2]);
3160
+ dispose = listen(div, "click", /*click_handler*/ ctx[3]);
3160
3161
  mounted = true;
3161
3162
  }
3162
3163
  },
3163
- p: noop,
3164
+ p(ctx, dirty) {
3165
+ if (dirty & /*className*/ 2 && div_class_value !== (div_class_value = "" + (null_to_empty(['background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-1d4fta"))) {
3166
+ attr(div, "class", div_class_value);
3167
+ }
3168
+ },
3164
3169
  d(detaching) {
3165
3170
  if (detaching) detach(div);
3166
3171
  mounted = false;
@@ -3207,20 +3212,22 @@ function create_fragment$v(ctx) {
3207
3212
 
3208
3213
  function instance$v($$self, $$props, $$invalidate) {
3209
3214
  let { backgroundOverlay = false } = $$props;
3215
+ let { class: className = undefined } = $$props;
3210
3216
  const dispatch = createEventDispatcher();
3211
3217
  const click_handler = () => dispatch('click');
3212
3218
 
3213
3219
  $$self.$$set = $$props => {
3214
3220
  if ('backgroundOverlay' in $$props) $$invalidate(0, backgroundOverlay = $$props.backgroundOverlay);
3221
+ if ('class' in $$props) $$invalidate(1, className = $$props.class);
3215
3222
  };
3216
3223
 
3217
- return [backgroundOverlay, dispatch, click_handler];
3224
+ return [backgroundOverlay, className, dispatch, click_handler];
3218
3225
  }
3219
3226
 
3220
3227
  class BackgroundOverlay extends SvelteComponent {
3221
3228
  constructor(options) {
3222
3229
  super();
3223
- init(this, options, instance$v, create_fragment$v, safe_not_equal, { backgroundOverlay: 0 }, add_css$s);
3230
+ init(this, options, instance$v, create_fragment$v, safe_not_equal, { backgroundOverlay: 0, class: 1 }, add_css$s);
3224
3231
  }
3225
3232
  }
3226
3233
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.207-28212888.037c8e0f",
3
+ "version": "1.1.207-28216182.2d812378",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",