@plaidev/karte-action-sdk 1.0.19 → 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.
@@ -0,0 +1,125 @@
1
+ /**
2
+ * UIから選択できる関数
3
+ */
4
+ import { Writable } from "svelte/store";
5
+ type OPTIONS = {
6
+ send?: (event_name: string, values?: any) => void;
7
+ isPreview?: boolean;
8
+ initialState?: string;
9
+ };
10
+ declare const state: Writable<string>;
11
+ declare const closed: Writable<boolean>;
12
+ declare const maximumZindex: Writable<number>;
13
+ declare const initialize: (options?: OPTIONS) => () => void;
14
+ declare const finalize: () => void;
15
+ declare const send_event: (event_name: string, values?: any) => void;
16
+ declare const isPreview: () => boolean;
17
+ declare const setMiximumZindex: (zindex?: number) => void;
18
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
19
+ declare const none: () => () => void;
20
+ declare const moveTo: (to: string) => () => void;
21
+ declare const linkTo: (to: string, targetBlank?: boolean) => () => void;
22
+ declare const closeApp: () => () => void;
23
+ declare const _default: "dummy";
24
+ /**
25
+ * 内部的に使われている、UIから選択できない関数
26
+ */
27
+ declare const handleFocus: (node: HTMLElement | null) => (e: any) => void;
28
+ declare const setPreviousFocus: () => void;
29
+ declare const handleKeydown: (handlers: {
30
+ [eventName: string]: (e: any) => void;
31
+ }) => (e: any) => void;
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;
34
+ declare function onScroll(fn: Function, rate: number): () => void;
35
+ declare function onTime(fn: Function, time: number): () => void;
36
+ declare function hasSuffix<Suffix extends "px" | "em" | "rem" | "%" | "fr" | "vw" | "vh" | "">(value: string, suffix: Suffix): value is `${number}${Suffix}`;
37
+ declare function toBr(text: string): string;
38
+ declare function randStr(digit?: number): string;
39
+ declare const _default: "dummy";
40
+ declare const PropTypes: readonly [
41
+ "BooleanKeyword",
42
+ "NumberKeyword",
43
+ "StringKeyword",
44
+ "Function",
45
+ "Enum",
46
+ "Code",
47
+ "Direction",
48
+ "Url",
49
+ "Image",
50
+ "AnimationStyle",
51
+ "LongText",
52
+ "Length",
53
+ "Color",
54
+ "Alignment",
55
+ "Style"
56
+ ];
57
+ type PropType = typeof PropTypes[number];
58
+ type Code = string;
59
+ declare const MediaQueries: {
60
+ [key: string]: string;
61
+ };
62
+ type MediaQuery = string;
63
+ declare const Directions: readonly [
64
+ "row",
65
+ "column"
66
+ ];
67
+ type Direction = typeof Directions[number];
68
+ declare const AnimationStyles: readonly [
69
+ "none",
70
+ "fade",
71
+ "bounce",
72
+ "slide-down",
73
+ "slide-up",
74
+ "slide-left",
75
+ "slide-right"
76
+ ];
77
+ type AnimationStyle = typeof AnimationStyles[number];
78
+ type LongText = string;
79
+ type Url = string;
80
+ type Image = string;
81
+ declare const LengthUnits: readonly [
82
+ "px",
83
+ "em",
84
+ "rem",
85
+ "vw",
86
+ "fr",
87
+ "%"
88
+ ];
89
+ type LengthUnit = typeof LengthUnits[number];
90
+ type Length = `${number}${LengthUnit}` | "auto";
91
+ type Color = `#${string}`;
92
+ declare const Justifies: readonly [
93
+ "flex-start",
94
+ "center",
95
+ "flex-end"
96
+ ];
97
+ type Justify = typeof Justifies[number];
98
+ declare const Alignments: readonly [
99
+ "flex-start",
100
+ "center",
101
+ "flex-end"
102
+ ];
103
+ type Alignment = typeof Alignments[number];
104
+ declare const ObjectFits: readonly [
105
+ "fill",
106
+ "contain",
107
+ "cover"
108
+ ];
109
+ type ObjectFit = typeof ObjectFits[number];
110
+ declare const Repeats: readonly [
111
+ "repeat",
112
+ "space",
113
+ "round",
114
+ "no-repeat"
115
+ ];
116
+ type Repeat = typeof Repeats[number];
117
+ type Style = string;
118
+ type StateName = string;
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
+ export { default as State } from './State.svelte';
121
+ export { default as GridModalState } from './GridModalState.svelte';
122
+ export { default as GridItem } from './GridItem.svelte';
123
+ export { default as Flex } from './components/Flex.svelte';
124
+ export { default as FlexItem } from './components/FlexItem.svelte';
125
+ export { default as Modal } from './components/Modal.svelte';