@plaidev/karte-action-sdk 1.0.43 → 1.0.44

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.
@@ -168,6 +168,7 @@ type OperationArgumentTypes = {
168
168
  BooleanKeyword: boolean;
169
169
  NumberKeyword: number;
170
170
  State: string;
171
+ Url: string;
171
172
  };
172
173
  type ConvertOperationOptions<O extends BaseOperationOptions> = ConvertOperationOption<O[number]>;
173
174
  type ConvertOperationOption<Option extends BaseOperationOptions[number]> = Option extends any ? {
@@ -200,7 +201,7 @@ declare const OnClickOperationOptions: readonly [
200
201
  readonly ja: "URL\u3092\u5165\u529B";
201
202
  readonly en: "Enter URL";
202
203
  };
203
- readonly type: "StringKeyword";
204
+ readonly type: "Url";
204
205
  readonly default: "";
205
206
  },
206
207
  {
package/dist/index.es.js CHANGED
@@ -138,7 +138,8 @@ const send_event = (event_name, values) => {
138
138
  options?.send?.(event_name, values);
139
139
  };
140
140
  const isPreview = () => {
141
- return typeof process !== 'undefined' && process.env.IS_PREVIEW === 'true';
141
+ const options = get(functionOptions);
142
+ return !!options?.isPreview;
142
143
  };
143
144
  const setMiximumZindex = (zindex) => {
144
145
  if (!zindex || zindex < get(maximumZindex))
@@ -325,7 +326,7 @@ const OnClickOperationOptions = [
325
326
  name: { ja: 'リンク遷移', en: 'Link To' },
326
327
  operation: 'linkTo',
327
328
  args: [
328
- { name: { ja: 'URLを入力', en: 'Enter URL' }, type: 'StringKeyword', default: '' },
329
+ { name: { ja: 'URLを入力', en: 'Enter URL' }, type: 'Url', default: '' },
329
330
  {
330
331
  name: { ja: '新しいタブで開く', en: 'Open in new tab' },
331
332
  type: 'BooleanKeyword',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",