@plaidev/karte-action-sdk 1.1.82 → 1.1.83

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,7 @@ type OPTIONS = {
240
240
  isPreview?: boolean;
241
241
  initialState?: string;
242
242
  };
243
+ declare const isPreview: () => boolean;
243
244
  type CustomVariables = {
244
245
  [key: string]: any;
245
246
  };
@@ -308,7 +309,6 @@ declare const setState: (event: any) => void;
308
309
  declare const initialize: (options?: OPTIONS) => () => void;
309
310
  declare const finalize: () => void;
310
311
  declare const send_event: (event_name: string, values?: any) => void;
311
- declare const isPreview: () => boolean;
312
312
  declare const setMiximumZindex: (zindex?: number) => void;
313
313
  // eslint-disable-next-line @typescript-eslint/no-empty-function
314
314
  declare const none: () => () => void;
@@ -718,7 +718,7 @@ declare const collection: (config: {
718
718
  } | null | undefined, cb: (err: Error | null, items?: any) => void): void;
719
719
  set(key: string, value: string, cb: (err: Error | null) => void): void;
720
720
  };
721
- 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, opened, 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, NOOP, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getTransform, getMarginStyle, ScrollDirection, OnScrollContext, OnScrollFunction, 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, ActionProps, ActionOptions, create, dispatchDestroyEvent, destroy, showAction, closeAction, KARTE_ACTION_ROOT, KARTE_ACTION_RID, ensureActionRoot, onShow, onClose, onDestroy, onChangeState, h, createFog, EmbedLogic, embed, getActionShadowRoot, applyCss, loadStyle, showModal, ModalOptions, KARTE_MODAL_ROOT, ensureModalRoot, show, close, AppOptions, App, createApp, collection };
721
+ export { Store, getStoreState, isPreview, CustomVariables, CloseTrigger, ActionEventHandler, ALL_ACTION_ID, actionId, ACTION_SHOW_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_CHANGE_STATE_EVENT, state, states, opened, closed, maximumZindex, internalHandlers, customHandlers, destroyed, stopped, customVariables, setAutoStart, setState, initialize, finalize, send_event, setMiximumZindex, none, moveTo, linkTo, closeApp, runScript, execOnClickOperation, haveFunction, customAnimation, loadGlobalScript, applyGlobalCss, loadGlobalStyle, hashCode, NOOP, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getTransform, getMarginStyle, ScrollDirection, OnScrollContext, OnScrollFunction, 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, ListSeparatorNone, ListSeparatorBorder, ListSeparatorStripe, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorStripe, DefaultListSeparator, ListDirection, ListItemSize, DefaultListItemSize, ListContext, hideOnScroll, hideOnTime, showOnScroll, showOnTime, ActionProps, ActionOptions, create, dispatchDestroyEvent, destroy, showAction, closeAction, KARTE_ACTION_ROOT, KARTE_ACTION_RID, ensureActionRoot, onShow, onClose, onDestroy, onChangeState, h, createFog, EmbedLogic, embed, getActionShadowRoot, applyCss, loadStyle, showModal, ModalOptions, KARTE_MODAL_ROOT, ensureModalRoot, show, close, AppOptions, App, createApp, collection };
722
722
  export { default as State } from './components/State.svelte';
723
723
  export { default as StateItem } from './components/StateItem.svelte';
724
724
  export { default as Modal } from './components/Modal.svelte';
@@ -191,9 +191,12 @@ function randStr(digit = 8) {
191
191
  * UIから選択できる関数
192
192
  */
193
193
  const getStoreState = get;
194
+ const isPreview = () => {
195
+ return true;
196
+ };
194
197
  const ALL_ACTION_ID = 'KARTE_ALL_ACTION_ID';
195
198
  const functionOptions = writable({});
196
- const actionId = randStr();
199
+ const actionId = ALL_ACTION_ID ;
197
200
  const ACTION_SHOW_EVENT = `KARTE-ACTION-SHOW-${actionId}`;
198
201
  const ACTION_CLOSE_EVENT = `KARTE-ACTION-CLOSE-${actionId}`;
199
202
  const ACTION_DESTROY_EVENT = `KARTE-ACTION-DESTROY-${actionId}`;
@@ -268,9 +271,6 @@ const send_event = (event_name, values) => {
268
271
  const options = getStoreState(functionOptions);
269
272
  options?.send?.(event_name, values);
270
273
  };
271
- const isPreview = () => {
272
- return true;
273
- };
274
274
  const setMiximumZindex = (zindex) => {
275
275
  if (!zindex || zindex < getStoreState(maximumZindex))
276
276
  return;
@@ -240,6 +240,7 @@ type OPTIONS = {
240
240
  isPreview?: boolean;
241
241
  initialState?: string;
242
242
  };
243
+ declare const isPreview: () => boolean;
243
244
  type CustomVariables = {
244
245
  [key: string]: any;
245
246
  };
@@ -308,7 +309,6 @@ declare const setState: (event: any) => void;
308
309
  declare const initialize: (options?: OPTIONS) => () => void;
309
310
  declare const finalize: () => void;
310
311
  declare const send_event: (event_name: string, values?: any) => void;
311
- declare const isPreview: () => boolean;
312
312
  declare const setMiximumZindex: (zindex?: number) => void;
313
313
  // eslint-disable-next-line @typescript-eslint/no-empty-function
314
314
  declare const none: () => () => void;
@@ -718,7 +718,7 @@ declare const collection: (config: {
718
718
  } | null | undefined, cb: (err: Error | null, items?: any) => void): void;
719
719
  set(key: string, value: string, cb: (err: Error | null) => void): void;
720
720
  };
721
- 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, opened, 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, NOOP, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getTransform, getMarginStyle, ScrollDirection, OnScrollContext, OnScrollFunction, 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, ActionProps, ActionOptions, create, dispatchDestroyEvent, destroy, showAction, closeAction, KARTE_ACTION_ROOT, KARTE_ACTION_RID, ensureActionRoot, onShow, onClose, onDestroy, onChangeState, h, createFog, EmbedLogic, embed, getActionShadowRoot, applyCss, loadStyle, showModal, ModalOptions, KARTE_MODAL_ROOT, ensureModalRoot, show, close, AppOptions, App, createApp, collection };
721
+ export { Store, getStoreState, isPreview, CustomVariables, CloseTrigger, ActionEventHandler, ALL_ACTION_ID, actionId, ACTION_SHOW_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_CHANGE_STATE_EVENT, state, states, opened, closed, maximumZindex, internalHandlers, customHandlers, destroyed, stopped, customVariables, setAutoStart, setState, initialize, finalize, send_event, setMiximumZindex, none, moveTo, linkTo, closeApp, runScript, execOnClickOperation, haveFunction, customAnimation, loadGlobalScript, applyGlobalCss, loadGlobalStyle, hashCode, NOOP, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getTransform, getMarginStyle, ScrollDirection, OnScrollContext, OnScrollFunction, 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, ListSeparatorNone, ListSeparatorBorder, ListSeparatorStripe, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorStripe, DefaultListSeparator, ListDirection, ListItemSize, DefaultListItemSize, ListContext, hideOnScroll, hideOnTime, showOnScroll, showOnTime, ActionProps, ActionOptions, create, dispatchDestroyEvent, destroy, showAction, closeAction, KARTE_ACTION_ROOT, KARTE_ACTION_RID, ensureActionRoot, onShow, onClose, onDestroy, onChangeState, h, createFog, EmbedLogic, embed, getActionShadowRoot, applyCss, loadStyle, showModal, ModalOptions, KARTE_MODAL_ROOT, ensureModalRoot, show, close, AppOptions, App, createApp, collection };
722
722
  export { default as State } from './components/State.svelte';
723
723
  export { default as StateItem } from './components/StateItem.svelte';
724
724
  export { default as Modal } from './components/Modal.svelte';
package/dist/index.es.js CHANGED
@@ -191,6 +191,9 @@ function randStr(digit = 8) {
191
191
  * UIから選択できる関数
192
192
  */
193
193
  const getStoreState = get;
194
+ const isPreview = () => {
195
+ return false;
196
+ };
194
197
  const ALL_ACTION_ID = 'KARTE_ALL_ACTION_ID';
195
198
  const functionOptions = writable({});
196
199
  const actionId = randStr();
@@ -268,9 +271,6 @@ const send_event = (event_name, values) => {
268
271
  const options = getStoreState(functionOptions);
269
272
  options?.send?.(event_name, values);
270
273
  };
271
- const isPreview = () => {
272
- return false;
273
- };
274
274
  const setMiximumZindex = (zindex) => {
275
275
  if (!zindex || zindex < getStoreState(maximumZindex))
276
276
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.82",
3
+ "version": "1.1.83",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",