@plaidev/karte-action-sdk 1.1.69 → 1.1.70

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.
@@ -41,36 +41,6 @@ declare const AnimationStyles: readonly [
41
41
  "slide-right"
42
42
  ];
43
43
  type AnimationStyle = typeof AnimationStyles[number];
44
- declare const AnimationStyleTranslations: {
45
- none: {
46
- ja: string;
47
- en: string;
48
- };
49
- fade: {
50
- ja: string;
51
- en: string;
52
- };
53
- bounce: {
54
- ja: string;
55
- en: string;
56
- };
57
- "slide-down": {
58
- ja: string;
59
- en: string;
60
- };
61
- "slide-up": {
62
- ja: string;
63
- en: string;
64
- };
65
- "slide-left": {
66
- ja: string;
67
- en: string;
68
- };
69
- "slide-right": {
70
- ja: string;
71
- en: string;
72
- };
73
- };
74
44
  declare const ModalPositions: readonly [
75
45
  "top-left",
76
46
  "top-center",
@@ -84,62 +54,6 @@ declare const ModalPositions: readonly [
84
54
  "none"
85
55
  ];
86
56
  type ModalPosition = typeof ModalPositions[number];
87
- declare const ModalPositionTranslations: {
88
- "top-left": {
89
- ja: string;
90
- en: string;
91
- };
92
- "top-center": {
93
- ja: string;
94
- en: string;
95
- };
96
- "top-right": {
97
- ja: string;
98
- en: string;
99
- };
100
- "center-left": {
101
- ja: string;
102
- en: string;
103
- };
104
- center: {
105
- ja: string;
106
- en: string;
107
- };
108
- "center-right": {
109
- ja: string;
110
- en: string;
111
- };
112
- "bottom-left": {
113
- ja: string;
114
- en: string;
115
- };
116
- "bottom-center": {
117
- ja: string;
118
- en: string;
119
- };
120
- "bottom-right": {
121
- ja: string;
122
- en: string;
123
- };
124
- };
125
- declare const ModalMarginTranslations: {
126
- left: {
127
- ja: string;
128
- en: string;
129
- };
130
- right: {
131
- ja: string;
132
- en: string;
133
- };
134
- top: {
135
- ja: string;
136
- en: string;
137
- };
138
- bottom: {
139
- ja: string;
140
- en: string;
141
- };
142
- };
143
57
  type ModalMargin = {
144
58
  left?: string;
145
59
  right?: string;
@@ -152,18 +66,6 @@ type ModalPlacement<M = ModalMargin> = {
152
66
  backgroundOverlay?: boolean;
153
67
  };
154
68
  declare const DefaultModalPlacement: Required<ModalPlacement<Required<ModalMargin>>>;
155
- type I18nLabel<Locale extends string = "ja" | "en"> = {
156
- [K in Locale]?: string;
157
- };
158
- type BaseOperationOptions = ReadonlyArray<{
159
- name: I18nLabel;
160
- operation: string;
161
- args: ReadonlyArray<{
162
- name: I18nLabel;
163
- type: keyof OperationArgumentTypes;
164
- default: any;
165
- }>;
166
- }>;
167
69
  type OperationArgumentTypes = {
168
70
  StringKeyword: string;
169
71
  BooleanKeyword: boolean;
@@ -171,6 +73,14 @@ type OperationArgumentTypes = {
171
73
  State: string;
172
74
  Url: string;
173
75
  };
76
+ type OperationArgumentType = keyof OperationArgumentTypes;
77
+ type BaseOperationOptions = ReadonlyArray<{
78
+ operation: string;
79
+ args: ReadonlyArray<{
80
+ type: OperationArgumentType;
81
+ default: any;
82
+ }>;
83
+ }>;
174
84
  type ConvertOperationOptions<O extends BaseOperationOptions> = ConvertOperationOption<O[number]>;
175
85
  type ConvertOperationOption<Option extends BaseOperationOptions[number]> = Option extends any ? {
176
86
  operation: Option["operation"];
@@ -182,61 +92,33 @@ type ConvertOperationOptionArguments<Arguments extends BaseOperationOptions[numb
182
92
  type Operation = ConvertOperationOptions<ReadonlyArray<any>>;
183
93
  declare const OnClickOperationOptions: readonly [
184
94
  {
185
- readonly name: {
186
- readonly ja: "\u64CD\u4F5C\u306A\u3057";
187
- readonly en: "No Operation";
188
- };
189
95
  readonly operation: "none";
190
96
  readonly args: readonly [
191
97
  ];
192
98
  },
193
99
  {
194
- readonly name: {
195
- readonly ja: "\u30EA\u30F3\u30AF\u9077\u79FB";
196
- readonly en: "Link To";
197
- };
198
100
  readonly operation: "linkTo";
199
101
  readonly args: readonly [
200
102
  {
201
- readonly name: {
202
- readonly ja: "URL\u3092\u5165\u529B";
203
- readonly en: "Enter URL";
204
- };
205
103
  readonly type: "Url";
206
104
  readonly default: "";
207
105
  },
208
106
  {
209
- readonly name: {
210
- readonly ja: "\u65B0\u3057\u3044\u30BF\u30D6\u3067\u958B\u304F";
211
- readonly en: "Open in new tab";
212
- };
213
107
  readonly type: "BooleanKeyword";
214
108
  readonly default: true;
215
109
  }
216
110
  ];
217
111
  },
218
112
  {
219
- readonly name: {
220
- readonly ja: "\u30B9\u30C6\u30FC\u30C8\u9077\u79FB";
221
- readonly en: "Move To";
222
- };
223
113
  readonly operation: "moveTo";
224
114
  readonly args: readonly [
225
115
  {
226
- readonly name: {
227
- readonly ja: "\u30B9\u30C6\u30FC\u30C8\u3092\u9078\u629E";
228
- readonly en: "State";
229
- };
230
116
  readonly type: "State";
231
117
  readonly default: "/";
232
118
  }
233
119
  ];
234
120
  },
235
121
  {
236
- readonly name: {
237
- readonly ja: "\u9589\u3058\u308B";
238
- readonly en: "Close";
239
- };
240
122
  readonly operation: "closeApp";
241
123
  readonly args: readonly [
242
124
  ];
@@ -313,6 +195,7 @@ declare const moveTo: (to: string) => () => void;
313
195
  declare const linkTo: (to: string, targetBlank?: boolean) => () => void;
314
196
  declare const closeApp: () => () => void;
315
197
  declare const execOnClickOperation: (onClickOperation: OnClickOperation) => void;
198
+ declare const haveFunction: (onClickOperation: OnClickOperation) => boolean;
316
199
  /**
317
200
  * An option for svelte custom animation
318
201
  */
@@ -511,7 +394,7 @@ declare const collection: (config: {
511
394
  } | null | undefined, cb: (err: Error | null, items?: any) => void): void;
512
395
  set(key: string, value: string, cb: (err: Error | null) => void): void;
513
396
  };
514
- export { state, closed, maximumZindex, initialize, finalize, send_event, isPreview, setMiximumZindex, none, moveTo, linkTo, closeApp, execOnClickOperation, customAnimation, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getTransform, 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, Cursors, Cursor, Overflows, Overflow, Style, StateName, hideOnScroll, hideOnTime, showOnScroll, showOnTime, ModalOptions, showModal, ensureModalRoot, h, createFog, EmbedLogic, embed, AppOptions, App, createApp, collection };
397
+ export { state, closed, maximumZindex, initialize, finalize, send_event, isPreview, setMiximumZindex, none, moveTo, linkTo, closeApp, execOnClickOperation, haveFunction, customAnimation, 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, Style, StateName, hideOnScroll, hideOnTime, showOnScroll, showOnTime, ModalOptions, showModal, ensureModalRoot, h, createFog, EmbedLogic, embed, AppOptions, App, createApp, collection };
515
398
  export { default as State } from './components/State.svelte';
516
399
  export { default as StateItem } from './components/StateItem.svelte';
517
400
  export { default as Modal } from './components/Modal.svelte';