@plaidev/karte-action-sdk 1.0.23 → 1.0.26
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.
- package/dist/index.es.d.ts +123 -17
- package/dist/index.es.js +568 -157
- package/package.json +24 -7
package/dist/index.es.d.ts
CHANGED
|
@@ -21,22 +21,6 @@ declare const moveTo: (to: string) => () => void;
|
|
|
21
21
|
declare const linkTo: (to: string, targetBlank?: boolean) => () => void;
|
|
22
22
|
declare const closeApp: () => () => void;
|
|
23
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
24
|
declare const PropTypes: readonly [
|
|
41
25
|
"BooleanKeyword",
|
|
42
26
|
"NumberKeyword",
|
|
@@ -75,6 +59,112 @@ declare const AnimationStyles: readonly [
|
|
|
75
59
|
"slide-right"
|
|
76
60
|
];
|
|
77
61
|
type AnimationStyle = typeof AnimationStyles[number];
|
|
62
|
+
declare const AnimationStyleTranslations: {
|
|
63
|
+
none: {
|
|
64
|
+
ja: string;
|
|
65
|
+
en: string;
|
|
66
|
+
};
|
|
67
|
+
fade: {
|
|
68
|
+
ja: string;
|
|
69
|
+
en: string;
|
|
70
|
+
};
|
|
71
|
+
bounce: {
|
|
72
|
+
ja: string;
|
|
73
|
+
en: string;
|
|
74
|
+
};
|
|
75
|
+
"slide-down": {
|
|
76
|
+
ja: string;
|
|
77
|
+
en: string;
|
|
78
|
+
};
|
|
79
|
+
"slide-up": {
|
|
80
|
+
ja: string;
|
|
81
|
+
en: string;
|
|
82
|
+
};
|
|
83
|
+
"slide-left": {
|
|
84
|
+
ja: string;
|
|
85
|
+
en: string;
|
|
86
|
+
};
|
|
87
|
+
"slide-right": {
|
|
88
|
+
ja: string;
|
|
89
|
+
en: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
declare const ModalPositions: readonly [
|
|
93
|
+
"top-left",
|
|
94
|
+
"top-center",
|
|
95
|
+
"top-right",
|
|
96
|
+
"center-left",
|
|
97
|
+
"center",
|
|
98
|
+
"center-right",
|
|
99
|
+
"bottom-left",
|
|
100
|
+
"bottom-center",
|
|
101
|
+
"bottom-right",
|
|
102
|
+
"none"
|
|
103
|
+
];
|
|
104
|
+
type ModalPosition = typeof ModalPositions[number];
|
|
105
|
+
declare const ModalPositionTranslations: {
|
|
106
|
+
"top-left": {
|
|
107
|
+
ja: string;
|
|
108
|
+
en: string;
|
|
109
|
+
};
|
|
110
|
+
"top-center": {
|
|
111
|
+
ja: string;
|
|
112
|
+
en: string;
|
|
113
|
+
};
|
|
114
|
+
"top-right": {
|
|
115
|
+
ja: string;
|
|
116
|
+
en: string;
|
|
117
|
+
};
|
|
118
|
+
"center-left": {
|
|
119
|
+
ja: string;
|
|
120
|
+
en: string;
|
|
121
|
+
};
|
|
122
|
+
center: {
|
|
123
|
+
ja: string;
|
|
124
|
+
en: string;
|
|
125
|
+
};
|
|
126
|
+
"center-right": {
|
|
127
|
+
ja: string;
|
|
128
|
+
en: string;
|
|
129
|
+
};
|
|
130
|
+
"bottom-left": {
|
|
131
|
+
ja: string;
|
|
132
|
+
en: string;
|
|
133
|
+
};
|
|
134
|
+
"bottom-center": {
|
|
135
|
+
ja: string;
|
|
136
|
+
en: string;
|
|
137
|
+
};
|
|
138
|
+
"bottom-right": {
|
|
139
|
+
ja: string;
|
|
140
|
+
en: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
type ModalMarginSides = "left" | "right" | "top" | "bottom";
|
|
144
|
+
type ModalMargin<T extends ModalMarginSides = ModalMarginSides> = {
|
|
145
|
+
side: T;
|
|
146
|
+
length: string;
|
|
147
|
+
};
|
|
148
|
+
type ModalMarginX = ModalMargin<"left" | "right">;
|
|
149
|
+
type ModalMarginY = ModalMargin<"top" | "bottom">;
|
|
150
|
+
declare const ModalMarginTranslations: {
|
|
151
|
+
left: {
|
|
152
|
+
ja: string;
|
|
153
|
+
en: string;
|
|
154
|
+
};
|
|
155
|
+
right: {
|
|
156
|
+
ja: string;
|
|
157
|
+
en: string;
|
|
158
|
+
};
|
|
159
|
+
top: {
|
|
160
|
+
ja: string;
|
|
161
|
+
en: string;
|
|
162
|
+
};
|
|
163
|
+
bottom: {
|
|
164
|
+
ja: string;
|
|
165
|
+
en: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
78
168
|
type LongText = string;
|
|
79
169
|
type Url = string;
|
|
80
170
|
type Image = string;
|
|
@@ -116,10 +206,26 @@ declare const Repeats: readonly [
|
|
|
116
206
|
type Repeat = typeof Repeats[number];
|
|
117
207
|
type Style = string;
|
|
118
208
|
type StateName = string;
|
|
119
|
-
|
|
209
|
+
declare const handleFocus: (node: HTMLElement | null) => (e: any) => void;
|
|
210
|
+
declare const setPreviousFocus: () => void;
|
|
211
|
+
declare const handleKeydown: (handlers: {
|
|
212
|
+
[eventName: string]: (e: any) => void;
|
|
213
|
+
}) => (e: any) => void;
|
|
214
|
+
declare const getPositionStyle: (position: ModalPosition) => string;
|
|
215
|
+
declare const getMarginStyle: (modalMargins: ModalMargin[]) => string;
|
|
216
|
+
declare function onScroll(fn: Function, rate: number): () => void;
|
|
217
|
+
declare function onTime(fn: Function, time: number): () => void;
|
|
218
|
+
declare function hasSuffix<Suffix extends "px" | "em" | "rem" | "%" | "fr" | "vw" | "vh" | "">(value: string, suffix: Suffix): value is `${number}${Suffix}`;
|
|
219
|
+
declare function toBr(text: string): string;
|
|
220
|
+
declare function randStr(digit?: number): string;
|
|
221
|
+
declare const _default: "dummy";
|
|
222
|
+
export { state, closed, maximumZindex, initialize, finalize, send_event, isPreview, setMiximumZindex, none, moveTo, linkTo, closeApp, _default, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getMarginStyle, onScroll, onTime, hasSuffix, toBr, randStr, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, AnimationStyleTranslations, ModalPositions, ModalPosition, ModalPositionTranslations, ModalMargin, ModalMarginX, ModalMarginY, ModalMarginTranslations, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, Repeats, Repeat, Style, StateName };
|
|
120
223
|
export { default as State } from './State.svelte';
|
|
121
224
|
export { default as GridModalState } from './GridModalState.svelte';
|
|
122
225
|
export { default as GridItem } from './GridItem.svelte';
|
|
123
226
|
export { default as Flex } from './components/Flex.svelte';
|
|
124
227
|
export { default as FlexItem } from './components/FlexItem.svelte';
|
|
125
228
|
export { default as Modal } from './components/Modal.svelte';
|
|
229
|
+
export { default as TextBlock } from './components/TextBlock.svelte';
|
|
230
|
+
export { default as TextButtonBlock } from './components/TextButtonBlock.svelte';
|
|
231
|
+
export { default as ImageBlock } from './components/ImageBlock.svelte';
|