@plaidev/karte-action-sdk 1.0.22 → 1.0.23

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.
@@ -10,11 +10,11 @@ type OPTIONS = {
10
10
  declare const state: Writable<string>;
11
11
  declare const closed: Writable<boolean>;
12
12
  declare const maximumZindex: Writable<number>;
13
- declare const send_event: (event_name: string, values?: any) => void;
14
- declare const initialize: (options?: OPTIONS) => void;
13
+ declare const initialize: (options?: OPTIONS) => () => void;
15
14
  declare const finalize: () => void;
15
+ declare const send_event: (event_name: string, values?: any) => void;
16
16
  declare const isPreview: () => boolean;
17
- declare const setMiximumZindex: (zindex: number | undefined) => void;
17
+ declare const setMiximumZindex: (zindex?: number) => void;
18
18
  // eslint-disable-next-line @typescript-eslint/no-empty-function
19
19
  declare const none: () => () => void;
20
20
  declare const moveTo: (to: string) => () => void;
@@ -30,9 +30,9 @@ declare const handleKeydown: (handlers: {
30
30
  [eventName: string]: (e: any) => void;
31
31
  }) => (e: any) => void;
32
32
  type ModalPosition = "top-left" | "top-center" | "top-right" | "center-left" | "center" | "center-right" | "bottom-left" | "bottom-center" | "bottom-right" | "none";
33
- declare const getPositionStyle: (position: ModalPosition | string) => string;
34
- declare function onScroll(onAppear: Function, rate: number): () => void;
35
- declare function onTime(onAppear: Function, time: number): () => void;
33
+ declare const getPositionStyle: (position: ModalPosition) => string;
34
+ declare function onScroll(fn: Function, rate: number): () => void;
35
+ declare function onTime(fn: Function, time: number): () => void;
36
36
  declare function hasSuffix<Suffix extends "px" | "em" | "rem" | "%" | "fr" | "vw" | "vh" | "">(value: string, suffix: Suffix): value is `${number}${Suffix}`;
37
37
  declare function toBr(text: string): string;
38
38
  declare function randStr(digit?: number): string;
@@ -116,7 +116,7 @@ declare const Repeats: readonly [
116
116
  type Repeat = typeof Repeats[number];
117
117
  type Style = string;
118
118
  type StateName = string;
119
- export { state, closed, maximumZindex, send_event, initialize, finalize, isPreview, setMiximumZindex, none, moveTo, linkTo, closeApp, _default, handleFocus, setPreviousFocus, handleKeydown, ModalPosition, getPositionStyle, onScroll, onTime, hasSuffix, toBr, randStr, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, Repeats, Repeat, Style, StateName };
119
+ export { state, closed, maximumZindex, initialize, finalize, send_event, isPreview, setMiximumZindex, none, moveTo, linkTo, closeApp, _default, handleFocus, setPreviousFocus, handleKeydown, ModalPosition, getPositionStyle, onScroll, onTime, hasSuffix, toBr, randStr, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, Repeats, Repeat, Style, StateName };
120
120
  export { default as State } from './State.svelte';
121
121
  export { default as GridModalState } from './GridModalState.svelte';
122
122
  export { default as GridItem } from './GridItem.svelte';