@plaidev/karte-action-sdk 1.1.53 → 1.1.56

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.
@@ -314,12 +314,56 @@ declare const handleKeydown: (handlers: {
314
314
  [eventName: string]: (e: any) => void;
315
315
  }) => (e: any) => void;
316
316
  declare const getPositionStyle: (position: ModalPosition) => string;
317
+ declare const getTransform: (position: ModalPosition) => [
318
+ number,
319
+ number
320
+ ];
317
321
  declare const getMarginStyle: (margin: ModalMargin) => string;
318
322
  declare function onScroll(fn: Function, rate: number): () => void;
319
323
  declare function onTime(fn: Function, time: number): () => void;
320
324
  declare function hasSuffix<Suffix extends "px" | "em" | "rem" | "%" | "fr" | "vw" | "vh" | "">(value: string, suffix: Suffix): value is `${number}${Suffix}`;
321
325
  declare function toBr(text: string): string;
322
326
  declare function randStr(digit?: number): string;
327
+ /**
328
+ * An option for svelte custom animation
329
+ */
330
+ interface CustomAnimationOptions {
331
+ /**
332
+ * A Transform value in percent of target element
333
+ */
334
+ transform: [
335
+ number,
336
+ number
337
+ ];
338
+ /**
339
+ * A style of animation(e.g. fade, slide-in)
340
+ */
341
+ animationStyle: AnimationStyle;
342
+ /**
343
+ * A waiting time in milliseconds before starting animation
344
+ *
345
+ * @default 0
346
+ */
347
+ delay?: number;
348
+ /**
349
+ * A total duration time in milliseconds of the animation
350
+ *
351
+ * @default 1000
352
+ */
353
+ duration?: number;
354
+ }
355
+ /**
356
+ * The function to activate svelte animation.
357
+ * @see {@link https://svelte.dev/docs#template-syntax-element-directives-transition-fn-custom-transition-functions| Custom transition functions} for detail documentation
358
+ * @param {Element} node A target node of animation. This argument is passed by svelte, by default.
359
+ * @param {CustomAnimationOptions} customAnimationOptions A custom animation option object
360
+ */
361
+ declare function customAnimation(node: Element, { transform, animationStyle, delay, duration }: CustomAnimationOptions): {
362
+ delay: number;
363
+ duration: number;
364
+ easing: (t: any) => any;
365
+ css: (progress: number) => string;
366
+ };
323
367
  declare function hideOnScroll<Props extends {
324
368
  hide_on_scroll: boolean;
325
369
  hide_on_scroll_rate: number;
@@ -364,7 +408,7 @@ declare const collection: (config: {
364
408
  } | null | undefined, cb: (err: Error | null, items?: any) => void): void;
365
409
  set(key: string, value: string, cb: (err: Error | null) => void): void;
366
410
  };
367
- export { state, closed, maximumZindex, initialize, finalize, send_event, isPreview, setMiximumZindex, none, moveTo, linkTo, closeApp, execOnClickOperation, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getMarginStyle, onScroll, onTime, hasSuffix, toBr, randStr, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, AnimationStyleTranslations, ModalPositions, ModalPosition, ModalPositionTranslations, ModalMarginTranslations, ModalMargin, ModalPlacement, DefaultModalPlacement, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, Repeats, Repeat, BackgroundSizes, BackgroundSize, Style, StateName, hideOnScroll, hideOnTime, showOnScroll, showOnTime, ensureModalRoot, h, createFog, EmbedLogic, embed, collection };
411
+ export { state, closed, maximumZindex, initialize, finalize, send_event, isPreview, setMiximumZindex, none, moveTo, linkTo, closeApp, execOnClickOperation, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getTransform, getMarginStyle, onScroll, onTime, hasSuffix, toBr, randStr, customAnimation, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, AnimationStyleTranslations, ModalPositions, ModalPosition, ModalPositionTranslations, ModalMarginTranslations, ModalMargin, ModalPlacement, DefaultModalPlacement, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, Repeats, Repeat, BackgroundSizes, BackgroundSize, Style, StateName, hideOnScroll, hideOnTime, showOnScroll, showOnTime, ensureModalRoot, h, createFog, EmbedLogic, embed, collection };
368
412
  export { default as State } from './components/State.svelte';
369
413
  export { default as StateItem } from './components/StateItem.svelte';
370
414
  export { default as Modal } from './components/Modal.svelte';