@plaidev/karte-action-sdk 1.1.78 → 1.1.79

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.
@@ -240,6 +240,9 @@ type OPTIONS = {
240
240
  isPreview?: boolean;
241
241
  initialState?: string;
242
242
  };
243
+ type CustomVariables = {
244
+ [key: string]: any;
245
+ };
243
246
  type CloseTrigger = "button" | "overlay";
244
247
  type ActionEventHandler = (...args: any[]) => any | Promise<any>;
245
248
  declare const ALL_ACTION_ID = "KARTE_ALL_ACTION_ID";
@@ -415,10 +418,10 @@ declare function showOnTime<Props extends {
415
418
  }>(props: Props, fn?: Function): (() => void) | null;
416
419
  declare const NOOP: Function;
417
420
  interface ActionProps<Props, Variables> {
418
- send: Function;
419
- data: Props & Variables;
420
- onShow?: (props: ActionProps<Props, Variables>) => void | Promise<void>;
421
- onChangeState?: (props: ActionProps<Props, Variables>) => void | Promise<void>;
421
+ send: (event_name: string, values?: any) => void;
422
+ data: Props & Variables & CustomVariables;
423
+ onShow?: (props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>;
424
+ onChangeState?: (props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>;
422
425
  }
423
426
  /**
424
427
  * An options for {@link create}
@@ -429,7 +432,7 @@ interface ActionOptions<Props, Variables> {
429
432
  *
430
433
  * @default () => {}
431
434
  */
432
- send?: Function;
435
+ send?: (event_name: string, values?: any) => void;
433
436
  /**
434
437
  * {@link Props} used in KARTE action.
435
438
  *
@@ -447,19 +450,19 @@ interface ActionOptions<Props, Variables> {
447
450
  *
448
451
  * @default () => {}
449
452
  */
450
- onShow?: (props: ActionProps<Props, Variables>) => void | Promise<void>;
453
+ onShow?: (props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>;
451
454
  /**
452
455
  * {@link onClose} function to hook the phase of closing action in KARTE action.
453
456
  *
454
457
  * @default () => {}
455
458
  */
456
- onClose?: (props: ActionProps<Props, Variables>, trigger: CloseTrigger) => void | Promise<void>;
459
+ onClose?: (props: ActionProps<Props, Variables & CustomVariables>, trigger: CloseTrigger) => void | Promise<void>;
457
460
  /**
458
461
  * {@link onClose} function to hook the phase of changing action state in KARTE action.
459
462
  *
460
463
  * @default () => {}
461
464
  */
462
- onChangeState?: (props: ActionProps<Props, Variables>, newState: string) => void | Promise<void>;
465
+ onChangeState?: (props: ActionProps<Props, Variables & CustomVariables>, newState: string) => void | Promise<void>;
463
466
  }
464
467
  // types of props to reference for internaly
465
468
  interface _Props {
@@ -509,42 +512,42 @@ declare function ensureActionRoot(useShadow?: boolean): ShadowRoot | HTMLElement
509
512
  * @param {(props: ActionProps<Props, Variables>) => void | Promise<void>} fn Callback
510
513
  */
511
514
  declare function onShow<Props extends _Props, Variables>(/**
512
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
515
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
513
516
  * @returns {void|Promise<void>}
514
517
  */
515
- fn: (props: ActionProps<Props, Variables>) => void | Promise<void>): void;
518
+ fn: (props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>): void;
516
519
  /**
517
520
  * {@link onClose} function to set the function to hook the phase before closing action.
518
521
  *
519
- * @param {(props: ActionProps<Props, Variables>) => void | Promise<void>} fn Callback
522
+ * @param {(props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>} fn Callback
520
523
  * @param {ClosePlace} fn Callback
521
524
  */
522
525
  declare function onClose<Props extends _Props, Variables>(/**
523
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
526
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
524
527
  * @returns {void|Promise<void>}
525
528
  */
526
- fn: (props: ActionProps<Props, Variables>, trigger: CloseTrigger) => void | Promise<void>): void;
529
+ fn: (props: ActionProps<Props, Variables & CustomVariables>, trigger: CloseTrigger) => void | Promise<void>): void;
527
530
  /**
528
531
  * {@link onDestory} function to set the function to hook the phase before destroying action.
529
532
  *
530
- * @param {(props: ActionProps<Props, Variables>) => void | Promise<void>} fn Callback
533
+ * @param {(props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>} fn Callback
531
534
  */
532
535
  declare function onDestroy<Props extends _Props, Variables>(/**
533
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
536
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
534
537
  * @returns {void|Promise<void>}
535
538
  */
536
- fn: (props: ActionProps<Props, Variables>) => void | Promise<void>): void;
539
+ fn: (props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>): void;
537
540
  /**
538
541
  * {@link onChangeState} function to set the function to hook the phase after changing action state.
539
542
  *
540
- * @param {(props: ActionProps, newState: string) => void | Promise<void>} fn Callback
543
+ * @param {(props: ActionProps<Props, Variables & CustomVariables>, newState: string) => void | Promise<void>} fn Callback
541
544
  */
542
545
  declare function onChangeState<Props extends _Props, Variables>(/**
543
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
546
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
544
547
  * @param {string} newState New state of KARTE action
545
548
  * @returns {void|Promise<void>}
546
549
  */
547
- fn: (props: ActionProps<Props, Variables>, newState: string) => void | Promise<void>): void;
550
+ fn: (props: ActionProps<Props, Variables & CustomVariables>, newState: string) => void | Promise<void>): void;
548
551
  declare const h: (type: string, props: any, ...children: Array<any>) => HTMLElement;
549
552
  /**
550
553
  * @deprecated
@@ -622,7 +625,7 @@ declare const collection: (config: {
622
625
  } | null | undefined, cb: (err: Error | null, items?: any) => void): void;
623
626
  set(key: string, value: string, cb: (err: Error | null) => void): void;
624
627
  };
625
- export { Store, getStoreState, CloseTrigger, ActionEventHandler, ALL_ACTION_ID, actionId, ACTION_SHOW_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_CHANGE_STATE_EVENT, state, states, closed, maximumZindex, internalHandlers, customHandlers, destroyed, stopped, customVariables, setAutoStart, setState, initialize, finalize, send_event, isPreview, setMiximumZindex, none, moveTo, linkTo, closeApp, runScript, execOnClickOperation, haveFunction, customAnimation, loadGlobalScript, applyGlobalCss, loadGlobalStyle, hashCode, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getTransform, getMarginStyle, onScroll, onTime, hasSuffix, toBr, randStr, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, Style, StateName, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorStripe, DefaultListSeparator, ListDirection, ListItemSize, DefaultListItemSize, ListContext, hideOnScroll, hideOnTime, showOnScroll, showOnTime, NOOP, ActionProps, ActionOptions, create, dispatchDestroyEvent, destroy, show, close, KARTE_ACTION_ROOT, KARTE_ACTION_RID, ensureActionRoot, onShow, onClose, onDestroy, onChangeState, h, createFog, EmbedLogic, embed, getActionShadowRoot, applyCss, loadStyle, showModal, ModalOptions, KARTE_MODAL_ROOT, ensureModalRoot, AppOptions, App, createApp, collection };
628
+ export { Store, getStoreState, CustomVariables, CloseTrigger, ActionEventHandler, ALL_ACTION_ID, actionId, ACTION_SHOW_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_CHANGE_STATE_EVENT, state, states, closed, maximumZindex, internalHandlers, customHandlers, destroyed, stopped, customVariables, setAutoStart, setState, initialize, finalize, send_event, isPreview, setMiximumZindex, none, moveTo, linkTo, closeApp, runScript, execOnClickOperation, haveFunction, customAnimation, loadGlobalScript, applyGlobalCss, loadGlobalStyle, hashCode, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getTransform, getMarginStyle, onScroll, onTime, hasSuffix, toBr, randStr, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, Style, StateName, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorStripe, DefaultListSeparator, ListDirection, ListItemSize, DefaultListItemSize, ListContext, hideOnScroll, hideOnTime, showOnScroll, showOnTime, NOOP, ActionProps, ActionOptions, create, dispatchDestroyEvent, destroy, show, close, KARTE_ACTION_ROOT, KARTE_ACTION_RID, ensureActionRoot, onShow, onClose, onDestroy, onChangeState, h, createFog, EmbedLogic, embed, getActionShadowRoot, applyCss, loadStyle, showModal, ModalOptions, KARTE_MODAL_ROOT, ensureModalRoot, AppOptions, App, createApp, collection };
626
629
  export { default as State } from './components/State.svelte';
627
630
  export { default as StateItem } from './components/StateItem.svelte';
628
631
  export { default as Modal } from './components/Modal.svelte';
@@ -611,7 +611,7 @@ function ensureActionRoot(useShadow = true) {
611
611
  */
612
612
  function onShow(
613
613
  /**
614
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
614
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
615
615
  * @returns {void|Promise<void>}
616
616
  */
617
617
  fn) {
@@ -623,12 +623,12 @@ fn) {
623
623
  /**
624
624
  * {@link onClose} function to set the function to hook the phase before closing action.
625
625
  *
626
- * @param {(props: ActionProps<Props, Variables>) => void | Promise<void>} fn Callback
626
+ * @param {(props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>} fn Callback
627
627
  * @param {ClosePlace} fn Callback
628
628
  */
629
629
  function onClose(
630
630
  /**
631
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
631
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
632
632
  * @returns {void|Promise<void>}
633
633
  */
634
634
  fn) {
@@ -640,11 +640,11 @@ fn) {
640
640
  /**
641
641
  * {@link onDestory} function to set the function to hook the phase before destroying action.
642
642
  *
643
- * @param {(props: ActionProps<Props, Variables>) => void | Promise<void>} fn Callback
643
+ * @param {(props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>} fn Callback
644
644
  */
645
645
  function onDestroy(
646
646
  /**
647
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
647
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
648
648
  * @returns {void|Promise<void>}
649
649
  */
650
650
  fn) {
@@ -656,11 +656,11 @@ fn) {
656
656
  /**
657
657
  * {@link onChangeState} function to set the function to hook the phase after changing action state.
658
658
  *
659
- * @param {(props: ActionProps, newState: string) => void | Promise<void>} fn Callback
659
+ * @param {(props: ActionProps<Props, Variables & CustomVariables>, newState: string) => void | Promise<void>} fn Callback
660
660
  */
661
661
  function onChangeState(
662
662
  /**
663
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
663
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
664
664
  * @param {string} newState New state of KARTE action
665
665
  * @returns {void|Promise<void>}
666
666
  */
@@ -240,6 +240,9 @@ type OPTIONS = {
240
240
  isPreview?: boolean;
241
241
  initialState?: string;
242
242
  };
243
+ type CustomVariables = {
244
+ [key: string]: any;
245
+ };
243
246
  type CloseTrigger = "button" | "overlay";
244
247
  type ActionEventHandler = (...args: any[]) => any | Promise<any>;
245
248
  declare const ALL_ACTION_ID = "KARTE_ALL_ACTION_ID";
@@ -415,10 +418,10 @@ declare function showOnTime<Props extends {
415
418
  }>(props: Props, fn?: Function): (() => void) | null;
416
419
  declare const NOOP: Function;
417
420
  interface ActionProps<Props, Variables> {
418
- send: Function;
419
- data: Props & Variables;
420
- onShow?: (props: ActionProps<Props, Variables>) => void | Promise<void>;
421
- onChangeState?: (props: ActionProps<Props, Variables>) => void | Promise<void>;
421
+ send: (event_name: string, values?: any) => void;
422
+ data: Props & Variables & CustomVariables;
423
+ onShow?: (props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>;
424
+ onChangeState?: (props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>;
422
425
  }
423
426
  /**
424
427
  * An options for {@link create}
@@ -429,7 +432,7 @@ interface ActionOptions<Props, Variables> {
429
432
  *
430
433
  * @default () => {}
431
434
  */
432
- send?: Function;
435
+ send?: (event_name: string, values?: any) => void;
433
436
  /**
434
437
  * {@link Props} used in KARTE action.
435
438
  *
@@ -447,19 +450,19 @@ interface ActionOptions<Props, Variables> {
447
450
  *
448
451
  * @default () => {}
449
452
  */
450
- onShow?: (props: ActionProps<Props, Variables>) => void | Promise<void>;
453
+ onShow?: (props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>;
451
454
  /**
452
455
  * {@link onClose} function to hook the phase of closing action in KARTE action.
453
456
  *
454
457
  * @default () => {}
455
458
  */
456
- onClose?: (props: ActionProps<Props, Variables>, trigger: CloseTrigger) => void | Promise<void>;
459
+ onClose?: (props: ActionProps<Props, Variables & CustomVariables>, trigger: CloseTrigger) => void | Promise<void>;
457
460
  /**
458
461
  * {@link onClose} function to hook the phase of changing action state in KARTE action.
459
462
  *
460
463
  * @default () => {}
461
464
  */
462
- onChangeState?: (props: ActionProps<Props, Variables>, newState: string) => void | Promise<void>;
465
+ onChangeState?: (props: ActionProps<Props, Variables & CustomVariables>, newState: string) => void | Promise<void>;
463
466
  }
464
467
  // types of props to reference for internaly
465
468
  interface _Props {
@@ -509,42 +512,42 @@ declare function ensureActionRoot(useShadow?: boolean): ShadowRoot | HTMLElement
509
512
  * @param {(props: ActionProps<Props, Variables>) => void | Promise<void>} fn Callback
510
513
  */
511
514
  declare function onShow<Props extends _Props, Variables>(/**
512
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
515
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
513
516
  * @returns {void|Promise<void>}
514
517
  */
515
- fn: (props: ActionProps<Props, Variables>) => void | Promise<void>): void;
518
+ fn: (props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>): void;
516
519
  /**
517
520
  * {@link onClose} function to set the function to hook the phase before closing action.
518
521
  *
519
- * @param {(props: ActionProps<Props, Variables>) => void | Promise<void>} fn Callback
522
+ * @param {(props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>} fn Callback
520
523
  * @param {ClosePlace} fn Callback
521
524
  */
522
525
  declare function onClose<Props extends _Props, Variables>(/**
523
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
526
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
524
527
  * @returns {void|Promise<void>}
525
528
  */
526
- fn: (props: ActionProps<Props, Variables>, trigger: CloseTrigger) => void | Promise<void>): void;
529
+ fn: (props: ActionProps<Props, Variables & CustomVariables>, trigger: CloseTrigger) => void | Promise<void>): void;
527
530
  /**
528
531
  * {@link onDestory} function to set the function to hook the phase before destroying action.
529
532
  *
530
- * @param {(props: ActionProps<Props, Variables>) => void | Promise<void>} fn Callback
533
+ * @param {(props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>} fn Callback
531
534
  */
532
535
  declare function onDestroy<Props extends _Props, Variables>(/**
533
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
536
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
534
537
  * @returns {void|Promise<void>}
535
538
  */
536
- fn: (props: ActionProps<Props, Variables>) => void | Promise<void>): void;
539
+ fn: (props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>): void;
537
540
  /**
538
541
  * {@link onChangeState} function to set the function to hook the phase after changing action state.
539
542
  *
540
- * @param {(props: ActionProps, newState: string) => void | Promise<void>} fn Callback
543
+ * @param {(props: ActionProps<Props, Variables & CustomVariables>, newState: string) => void | Promise<void>} fn Callback
541
544
  */
542
545
  declare function onChangeState<Props extends _Props, Variables>(/**
543
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
546
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
544
547
  * @param {string} newState New state of KARTE action
545
548
  * @returns {void|Promise<void>}
546
549
  */
547
- fn: (props: ActionProps<Props, Variables>, newState: string) => void | Promise<void>): void;
550
+ fn: (props: ActionProps<Props, Variables & CustomVariables>, newState: string) => void | Promise<void>): void;
548
551
  declare const h: (type: string, props: any, ...children: Array<any>) => HTMLElement;
549
552
  /**
550
553
  * @deprecated
@@ -622,7 +625,7 @@ declare const collection: (config: {
622
625
  } | null | undefined, cb: (err: Error | null, items?: any) => void): void;
623
626
  set(key: string, value: string, cb: (err: Error | null) => void): void;
624
627
  };
625
- export { Store, getStoreState, CloseTrigger, ActionEventHandler, ALL_ACTION_ID, actionId, ACTION_SHOW_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_CHANGE_STATE_EVENT, state, states, closed, maximumZindex, internalHandlers, customHandlers, destroyed, stopped, customVariables, setAutoStart, setState, initialize, finalize, send_event, isPreview, setMiximumZindex, none, moveTo, linkTo, closeApp, runScript, execOnClickOperation, haveFunction, customAnimation, loadGlobalScript, applyGlobalCss, loadGlobalStyle, hashCode, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getTransform, getMarginStyle, onScroll, onTime, hasSuffix, toBr, randStr, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, Style, StateName, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorStripe, DefaultListSeparator, ListDirection, ListItemSize, DefaultListItemSize, ListContext, hideOnScroll, hideOnTime, showOnScroll, showOnTime, NOOP, ActionProps, ActionOptions, create, dispatchDestroyEvent, destroy, show, close, KARTE_ACTION_ROOT, KARTE_ACTION_RID, ensureActionRoot, onShow, onClose, onDestroy, onChangeState, h, createFog, EmbedLogic, embed, getActionShadowRoot, applyCss, loadStyle, showModal, ModalOptions, KARTE_MODAL_ROOT, ensureModalRoot, AppOptions, App, createApp, collection };
628
+ export { Store, getStoreState, CustomVariables, CloseTrigger, ActionEventHandler, ALL_ACTION_ID, actionId, ACTION_SHOW_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_CHANGE_STATE_EVENT, state, states, closed, maximumZindex, internalHandlers, customHandlers, destroyed, stopped, customVariables, setAutoStart, setState, initialize, finalize, send_event, isPreview, setMiximumZindex, none, moveTo, linkTo, closeApp, runScript, execOnClickOperation, haveFunction, customAnimation, loadGlobalScript, applyGlobalCss, loadGlobalStyle, hashCode, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getTransform, getMarginStyle, onScroll, onTime, hasSuffix, toBr, randStr, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, Style, StateName, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorStripe, DefaultListSeparator, ListDirection, ListItemSize, DefaultListItemSize, ListContext, hideOnScroll, hideOnTime, showOnScroll, showOnTime, NOOP, ActionProps, ActionOptions, create, dispatchDestroyEvent, destroy, show, close, KARTE_ACTION_ROOT, KARTE_ACTION_RID, ensureActionRoot, onShow, onClose, onDestroy, onChangeState, h, createFog, EmbedLogic, embed, getActionShadowRoot, applyCss, loadStyle, showModal, ModalOptions, KARTE_MODAL_ROOT, ensureModalRoot, AppOptions, App, createApp, collection };
626
629
  export { default as State } from './components/State.svelte';
627
630
  export { default as StateItem } from './components/StateItem.svelte';
628
631
  export { default as Modal } from './components/Modal.svelte';
package/dist/index.es.js CHANGED
@@ -721,7 +721,7 @@ function ensureActionRoot(useShadow = true) {
721
721
  */
722
722
  function onShow(
723
723
  /**
724
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
724
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
725
725
  * @returns {void|Promise<void>}
726
726
  */
727
727
  fn) {
@@ -733,12 +733,12 @@ fn) {
733
733
  /**
734
734
  * {@link onClose} function to set the function to hook the phase before closing action.
735
735
  *
736
- * @param {(props: ActionProps<Props, Variables>) => void | Promise<void>} fn Callback
736
+ * @param {(props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>} fn Callback
737
737
  * @param {ClosePlace} fn Callback
738
738
  */
739
739
  function onClose(
740
740
  /**
741
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
741
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
742
742
  * @returns {void|Promise<void>}
743
743
  */
744
744
  fn) {
@@ -750,11 +750,11 @@ fn) {
750
750
  /**
751
751
  * {@link onDestory} function to set the function to hook the phase before destroying action.
752
752
  *
753
- * @param {(props: ActionProps<Props, Variables>) => void | Promise<void>} fn Callback
753
+ * @param {(props: ActionProps<Props, Variables & CustomVariables>) => void | Promise<void>} fn Callback
754
754
  */
755
755
  function onDestroy(
756
756
  /**
757
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
757
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
758
758
  * @returns {void|Promise<void>}
759
759
  */
760
760
  fn) {
@@ -766,11 +766,11 @@ fn) {
766
766
  /**
767
767
  * {@link onChangeState} function to set the function to hook the phase after changing action state.
768
768
  *
769
- * @param {(props: ActionProps, newState: string) => void | Promise<void>} fn Callback
769
+ * @param {(props: ActionProps<Props, Variables & CustomVariables>, newState: string) => void | Promise<void>} fn Callback
770
770
  */
771
771
  function onChangeState(
772
772
  /**
773
- * @param {ActionProps<Props, Variables>} props Properties of KARTE action
773
+ * @param {ActionProps<Props, Variables & CustomVariables>} props Properties of KARTE action
774
774
  * @param {string} newState New state of KARTE action
775
775
  * @returns {void|Promise<void>}
776
776
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.78",
3
+ "version": "1.1.79",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",