@plaidev/karte-action-sdk 1.1.126 → 1.1.127-27953328.1721c5e0
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/hydrate/index.es.d.ts +69 -2
- package/dist/hydrate/index.es.js +303 -147
- package/dist/index.es.d.ts +69 -2
- package/dist/index.es.js +284 -137
- package/dist/templates.cjs.js +2 -1
- package/dist/templates.js +2 -1
- package/package.json +1 -1
@@ -316,6 +316,13 @@ declare const ListSeparatorTypes: readonly [
|
|
316
316
|
"border",
|
317
317
|
"gap"
|
318
318
|
];
|
319
|
+
/** @internal */
|
320
|
+
interface EdgePosition {
|
321
|
+
edgeDistance: Length;
|
322
|
+
edgeDirectionOffset: Length;
|
323
|
+
}
|
324
|
+
/** @internal */
|
325
|
+
declare const DefaultEdgePosition: EdgePosition;
|
319
326
|
type ListSeparatorType = (typeof ListSeparatorTypes)[number];
|
320
327
|
interface BaseListSeparator {
|
321
328
|
type: ListSeparatorType;
|
@@ -883,21 +890,28 @@ declare function onTime(time: number, fn: Function): () => void;
|
|
883
890
|
/**
|
884
891
|
* アクションのログの記録の管理
|
885
892
|
*/
|
893
|
+
/** @internal */
|
886
894
|
type LogLevel = "info" | "error" | "warn";
|
895
|
+
/** @internal */
|
887
896
|
type Log = {
|
888
897
|
level: LogLevel;
|
889
898
|
messages: any;
|
890
899
|
date?: Date;
|
891
900
|
};
|
901
|
+
/** @internal */
|
892
902
|
type Event = {
|
893
903
|
name: string;
|
894
904
|
values?: any;
|
895
905
|
date?: Date;
|
896
906
|
};
|
907
|
+
/** @internal */
|
897
908
|
declare function getLogs(): Log[];
|
909
|
+
/** @internal */
|
898
910
|
declare function getEvents(): Event[];
|
899
911
|
/**
|
900
912
|
* ログを送信する関数群
|
913
|
+
*
|
914
|
+
* @internal
|
901
915
|
*/
|
902
916
|
declare const logger: {
|
903
917
|
info: (...messages: any[]) => void;
|
@@ -910,6 +924,8 @@ declare const logger: {
|
|
910
924
|
};
|
911
925
|
/**
|
912
926
|
* メッセージを実行ログに表示する
|
927
|
+
*
|
928
|
+
* @internal
|
913
929
|
*/
|
914
930
|
declare function listenLogger(): () => void;
|
915
931
|
/**
|
@@ -1109,6 +1125,13 @@ declare const loadActionTableRows: (config: ActionTableRowsRequestConfig, api_ke
|
|
1109
1125
|
declare const loadActionTableQuery: (config: ActionTableQueryRequestConfig, api_key: string, endpoint?: string) => Promise<unknown>;
|
1110
1126
|
declare const loadActionTable: (config: Array<ActionTableRequestConfig>, api_key: string, endpoint?: string) => Promise<{}>;
|
1111
1127
|
type _Props$0 = Props;
|
1128
|
+
/** @internal */
|
1129
|
+
declare const ACTION_HOOK_LABEL = "__ACTION_HOOK__";
|
1130
|
+
/** @internal */
|
1131
|
+
type ActionHookLog = {
|
1132
|
+
name: string;
|
1133
|
+
values?: any;
|
1134
|
+
};
|
1112
1135
|
/**
|
1113
1136
|
* アクションのライフサイクルで呼び出されるフック
|
1114
1137
|
*
|
@@ -1716,6 +1739,13 @@ declare namespace widget {
|
|
1716
1739
|
"border",
|
1717
1740
|
"gap"
|
1718
1741
|
];
|
1742
|
+
/** @internal */
|
1743
|
+
interface EdgePosition {
|
1744
|
+
edgeDistance: Length;
|
1745
|
+
edgeDirectionOffset: Length;
|
1746
|
+
}
|
1747
|
+
/** @internal */
|
1748
|
+
const DefaultEdgePosition: EdgePosition;
|
1719
1749
|
type ListSeparatorType = (typeof ListSeparatorTypes)[number];
|
1720
1750
|
interface BaseListSeparator {
|
1721
1751
|
type: ListSeparatorType;
|
@@ -2113,6 +2143,8 @@ declare namespace widget {
|
|
2113
2143
|
/**
|
2114
2144
|
* {@link setInternalHandlers} function to set internal event handlers.
|
2115
2145
|
*
|
2146
|
+
* @param handlers - New internal event handlers
|
2147
|
+
*
|
2116
2148
|
* @internal
|
2117
2149
|
*/
|
2118
2150
|
function setInternalHandlers(handlers: {
|
@@ -2130,6 +2162,34 @@ declare namespace widget {
|
|
2130
2162
|
}): {
|
2131
2163
|
[key: string]: ActionEventHandler[];
|
2132
2164
|
};
|
2165
|
+
/**
|
2166
|
+
* Store to handle internal event handlers for widget API
|
2167
|
+
*
|
2168
|
+
* @internal
|
2169
|
+
*/
|
2170
|
+
const widgetHandlers: Store<{
|
2171
|
+
[key: string]: ActionEventHandler[];
|
2172
|
+
}>;
|
2173
|
+
/**
|
2174
|
+
* {@link getWidgetHandlers} function to get internal event handlers for widget API.
|
2175
|
+
*
|
2176
|
+
* @param handlers - New internal widget event handlers
|
2177
|
+
*
|
2178
|
+
* @returns Current internal widget handlers
|
2179
|
+
*
|
2180
|
+
* @internal
|
2181
|
+
*/
|
2182
|
+
function getWidgetHandlers(): {
|
2183
|
+
[key: string]: ActionEventHandler[];
|
2184
|
+
};
|
2185
|
+
/**
|
2186
|
+
* {@link setWidgetHandlers} function to set internal event handlers.
|
2187
|
+
*
|
2188
|
+
* @internal
|
2189
|
+
*/
|
2190
|
+
function setWidgetHandlers(handlers: {
|
2191
|
+
[key: string]: ActionEventHandler[];
|
2192
|
+
}): void;
|
2133
2193
|
/**
|
2134
2194
|
* Store to handle custom event handlers
|
2135
2195
|
*
|
@@ -2542,6 +2602,13 @@ declare namespace widget {
|
|
2542
2602
|
hide_on_time_count?: number;
|
2543
2603
|
}
|
2544
2604
|
type _Props = Props;
|
2605
|
+
/** @internal */
|
2606
|
+
const ACTION_HOOK_LABEL = "__ACTION_HOOK__";
|
2607
|
+
/** @internal */
|
2608
|
+
type ActionHookLog = {
|
2609
|
+
name: string;
|
2610
|
+
values?: any;
|
2611
|
+
};
|
2545
2612
|
/**
|
2546
2613
|
* アクションのライフサイクルで呼び出されるフック
|
2547
2614
|
*
|
@@ -3003,8 +3070,8 @@ declare namespace widget {
|
|
3003
3070
|
*/
|
3004
3071
|
export { showAction as show, closeAction as hide };
|
3005
3072
|
}
|
3006
|
-
export { loadGlobalScript, loadGlobalStyle, applyGlobalCss, initialize, finalize, setAutoStart, getState, setState, getStates, isOpened, getCustomVariables, setCustomVariables, updateCustomVariables, getCustomHandlers, setCustomHandlers, updateCustomHandlers, getSystem, setActionSetting, customHandlers, customVariables, formData, state, opened, closed, destroyed, stopped, isClosed, setClosed, getStoreState, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, Style, StateName, WritingModes, WritingMode, ListSeparatorTypes, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonStyle, DefaultFormButtonStyle, FormSelectStyle, DefaultFormSelectStyle, FormRatingButtonType, FormRatingButtonTypes, DefaultFormRatingButtonType, create, destroy, closeAction, showAction, loadStyle, applyCss, getActionShadowRoot, onCreate, onShow, onClose, onDestroy, onChangeState, showModal, ensureModalRoot, show, close, createApp, createFog, KARTE_MODAL_ROOT, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, widget };
|
3007
|
-
export type { CloseTrigger, CustomVariables, ActionEventHandler, SystemConfig, OnScrollContext, OnScrollFunction, ScrollDirection, LogLevel, Log, Event, ActionProps, ActionOptions, ActionHook, ActionCloseHook, ActionChangeStateHook, SendFunction, CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig };
|
3073
|
+
export { loadGlobalScript, loadGlobalStyle, applyGlobalCss, initialize, finalize, setAutoStart, getState, setState, getStates, isOpened, getCustomVariables, setCustomVariables, updateCustomVariables, getCustomHandlers, setCustomHandlers, updateCustomHandlers, getSystem, setActionSetting, customHandlers, customVariables, formData, state, opened, closed, destroyed, stopped, isClosed, setClosed, getStoreState, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, Style, StateName, WritingModes, WritingMode, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonStyle, DefaultFormButtonStyle, FormSelectStyle, DefaultFormSelectStyle, FormRatingButtonType, FormRatingButtonTypes, DefaultFormRatingButtonType, create, destroy, closeAction, showAction, loadStyle, applyCss, getActionShadowRoot, onCreate, onShow, onClose, onDestroy, onChangeState, showModal, ensureModalRoot, show, close, createApp, createFog, KARTE_MODAL_ROOT, ACTION_HOOK_LABEL, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, widget };
|
3074
|
+
export type { CloseTrigger, CustomVariables, ActionEventHandler, SystemConfig, OnScrollContext, OnScrollFunction, ScrollDirection, LogLevel, Log, Event, ActionProps, ActionOptions, ActionHook, ActionCloseHook, ActionChangeStateHook, SendFunction, ActionHookLog, CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig };
|
3008
3075
|
export { default as State } from './components/State.svelte';
|
3009
3076
|
export { default as StateItem } from './components/StateItem.svelte';
|
3010
3077
|
export { default as Modal } from './components/Modal.svelte';
|