@plaidev/karte-action-sdk 1.1.123 → 1.1.124
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 +3 -5
- package/dist/hydrate/index.es.js +12 -7
- package/dist/index.es.d.ts +3 -5
- package/dist/index.es.js +12 -7
- package/package.json +1 -1
|
@@ -892,10 +892,8 @@ type Event = {
|
|
|
892
892
|
values?: any;
|
|
893
893
|
date?: Date;
|
|
894
894
|
};
|
|
895
|
-
|
|
896
|
-
declare
|
|
897
|
-
// KARTEイベント
|
|
898
|
-
declare let events: Event[];
|
|
895
|
+
declare function getLogs(): Log[];
|
|
896
|
+
declare function getEvents(): Event[];
|
|
899
897
|
/**
|
|
900
898
|
* ログを送信する関数群
|
|
901
899
|
*/
|
|
@@ -2878,7 +2876,7 @@ declare namespace widget {
|
|
|
2878
2876
|
*/
|
|
2879
2877
|
export { showAction as show, closeAction as hide };
|
|
2880
2878
|
}
|
|
2881
|
-
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,
|
|
2879
|
+
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, listenConsoleLogger, 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, widget };
|
|
2882
2880
|
export type { CloseTrigger, CustomVariables, ActionEventHandler, SystemConfig, OnScrollContext, OnScrollFunction, ScrollDirection, LogLevel, Log, Event, ActionProps, ActionOptions, ActionHook, ActionCloseHook, ActionChangeStateHook, SendFunction, CollectionConfig };
|
|
2883
2881
|
export { default as State } from './components/State.svelte';
|
|
2884
2882
|
export { default as StateItem } from './components/StateItem.svelte';
|
package/dist/hydrate/index.es.js
CHANGED
|
@@ -910,9 +910,15 @@ const setAutoStart = (on = true) => {
|
|
|
910
910
|
const MESSAGES_LIMIT = 1000;
|
|
911
911
|
const EVENTS_LIMIT = 1000;
|
|
912
912
|
// 実行ログ
|
|
913
|
-
let
|
|
913
|
+
let logs = [];
|
|
914
914
|
// KARTEイベント
|
|
915
915
|
let events = [];
|
|
916
|
+
function getLogs() {
|
|
917
|
+
return logs;
|
|
918
|
+
}
|
|
919
|
+
function getEvents() {
|
|
920
|
+
return events;
|
|
921
|
+
}
|
|
916
922
|
// iframe内の場合は親windowを参照する
|
|
917
923
|
function w(w) {
|
|
918
924
|
return w.parent === w ? w : w.parent;
|
|
@@ -935,7 +941,6 @@ const logger = {
|
|
|
935
941
|
},
|
|
936
942
|
warn: (...messages) => {
|
|
937
943
|
const log = { level: 'warn', message: formatLog(messages), date: new Date() };
|
|
938
|
-
console.log('aaaaaaaaa', w);
|
|
939
944
|
w(window).postMessage({ type: 'KARTE-ACTION-LOGGER', detail: { method: 'log', log } }, '*');
|
|
940
945
|
},
|
|
941
946
|
event: (name, values) => {
|
|
@@ -962,18 +967,18 @@ function listenLogger() {
|
|
|
962
967
|
return;
|
|
963
968
|
}
|
|
964
969
|
if (detail.method === 'clear') {
|
|
965
|
-
|
|
970
|
+
logs = [];
|
|
966
971
|
}
|
|
967
972
|
else if (detail.method === 'clearEvents') {
|
|
968
973
|
events = [];
|
|
969
974
|
}
|
|
970
975
|
else if (detail.method === 'log') {
|
|
971
|
-
if (MESSAGES_LIMIT <=
|
|
972
|
-
|
|
976
|
+
if (MESSAGES_LIMIT <= logs.length) {
|
|
977
|
+
logs.shift();
|
|
973
978
|
}
|
|
974
979
|
const { level, message } = detail.log;
|
|
975
980
|
const log = { level, message, date: new Date() };
|
|
976
|
-
|
|
981
|
+
logs.push(log);
|
|
977
982
|
}
|
|
978
983
|
else if (detail.method === 'event') {
|
|
979
984
|
if (EVENTS_LIMIT <= events.length) {
|
|
@@ -8389,4 +8394,4 @@ class ImageBlock extends SvelteComponent {
|
|
|
8389
8394
|
}
|
|
8390
8395
|
}
|
|
8391
8396
|
|
|
8392
|
-
export { Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultFormButtonStyle, DefaultFormRatingButtonType, DefaultFormSelectStyle, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtonTypes, FormRatingButtons, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, applyCss, applyGlobalCss, close, closeAction, closed, collection$1 as collection, create, createApp, createFog, customHandlers, customVariables, destroy, destroyed, ensureModalRoot,
|
|
8397
|
+
export { Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultFormButtonStyle, DefaultFormRatingButtonType, DefaultFormSelectStyle, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtonTypes, FormRatingButtons, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, applyCss, applyGlobalCss, close, closeAction, closed, collection$1 as collection, create, createApp, createFog, customHandlers, customVariables, destroy, destroyed, ensureModalRoot, finalize, formData, getActionShadowRoot, getCustomHandlers, getCustomVariables, getEvents, getLogs, getState$1 as getState, getStates, getStoreState, getSystem, hideOnScroll, hideOnTime, initialize, isClosed, isOpened, listenConsoleLogger, listenLogger, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setState$1 as setState, show, showAction, showModal, showOnScroll, showOnTime, state, stopped, updateCustomHandlers, updateCustomVariables, widget };
|
package/dist/index.es.d.ts
CHANGED
|
@@ -892,10 +892,8 @@ type Event = {
|
|
|
892
892
|
values?: any;
|
|
893
893
|
date?: Date;
|
|
894
894
|
};
|
|
895
|
-
|
|
896
|
-
declare
|
|
897
|
-
// KARTEイベント
|
|
898
|
-
declare let events: Event[];
|
|
895
|
+
declare function getLogs(): Log[];
|
|
896
|
+
declare function getEvents(): Event[];
|
|
899
897
|
/**
|
|
900
898
|
* ログを送信する関数群
|
|
901
899
|
*/
|
|
@@ -2878,7 +2876,7 @@ declare namespace widget {
|
|
|
2878
2876
|
*/
|
|
2879
2877
|
export { showAction as show, closeAction as hide };
|
|
2880
2878
|
}
|
|
2881
|
-
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,
|
|
2879
|
+
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, listenConsoleLogger, 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, widget };
|
|
2882
2880
|
export type { CloseTrigger, CustomVariables, ActionEventHandler, SystemConfig, OnScrollContext, OnScrollFunction, ScrollDirection, LogLevel, Log, Event, ActionProps, ActionOptions, ActionHook, ActionCloseHook, ActionChangeStateHook, SendFunction, CollectionConfig };
|
|
2883
2881
|
export { default as State } from './components/State.svelte';
|
|
2884
2882
|
export { default as StateItem } from './components/StateItem.svelte';
|
package/dist/index.es.js
CHANGED
|
@@ -962,9 +962,15 @@ const setAutoStart = (on = true) => {
|
|
|
962
962
|
const MESSAGES_LIMIT = 1000;
|
|
963
963
|
const EVENTS_LIMIT = 1000;
|
|
964
964
|
// 実行ログ
|
|
965
|
-
let
|
|
965
|
+
let logs = [];
|
|
966
966
|
// KARTEイベント
|
|
967
967
|
let events = [];
|
|
968
|
+
function getLogs() {
|
|
969
|
+
return logs;
|
|
970
|
+
}
|
|
971
|
+
function getEvents() {
|
|
972
|
+
return events;
|
|
973
|
+
}
|
|
968
974
|
// iframe内の場合は親windowを参照する
|
|
969
975
|
function w(w) {
|
|
970
976
|
return w.parent === w ? w : w.parent;
|
|
@@ -987,7 +993,6 @@ const logger = {
|
|
|
987
993
|
},
|
|
988
994
|
warn: (...messages) => {
|
|
989
995
|
const log = { level: 'warn', message: formatLog(messages), date: new Date() };
|
|
990
|
-
console.log('aaaaaaaaa', w);
|
|
991
996
|
w(window).postMessage({ type: 'KARTE-ACTION-LOGGER', detail: { method: 'log', log } }, '*');
|
|
992
997
|
},
|
|
993
998
|
event: (name, values) => {
|
|
@@ -1014,18 +1019,18 @@ function listenLogger() {
|
|
|
1014
1019
|
return;
|
|
1015
1020
|
}
|
|
1016
1021
|
if (detail.method === 'clear') {
|
|
1017
|
-
|
|
1022
|
+
logs = [];
|
|
1018
1023
|
}
|
|
1019
1024
|
else if (detail.method === 'clearEvents') {
|
|
1020
1025
|
events = [];
|
|
1021
1026
|
}
|
|
1022
1027
|
else if (detail.method === 'log') {
|
|
1023
|
-
if (MESSAGES_LIMIT <=
|
|
1024
|
-
|
|
1028
|
+
if (MESSAGES_LIMIT <= logs.length) {
|
|
1029
|
+
logs.shift();
|
|
1025
1030
|
}
|
|
1026
1031
|
const { level, message } = detail.log;
|
|
1027
1032
|
const log = { level, message, date: new Date() };
|
|
1028
|
-
|
|
1033
|
+
logs.push(log);
|
|
1029
1034
|
}
|
|
1030
1035
|
else if (detail.method === 'event') {
|
|
1031
1036
|
if (EVENTS_LIMIT <= events.length) {
|
|
@@ -7887,4 +7892,4 @@ class ImageBlock extends SvelteComponent {
|
|
|
7887
7892
|
}
|
|
7888
7893
|
}
|
|
7889
7894
|
|
|
7890
|
-
export { Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultFormButtonStyle, DefaultFormRatingButtonType, DefaultFormSelectStyle, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtonTypes, FormRatingButtons, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, applyCss, applyGlobalCss, close, closeAction, closed, collection$1 as collection, create, createApp, createFog, customHandlers, customVariables, destroy, destroyed, ensureModalRoot,
|
|
7895
|
+
export { Alignments, AnimationStyles, BackgroundSizes, ClipPaths, Cursors, DefaultFormButtonStyle, DefaultFormRatingButtonType, DefaultFormSelectStyle, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, EmbedElement, Flex, FlexItem, FormCheckBoxes, FormRadioButtons, FormRatingButtonTypes, FormRatingButtons, FormSelect, FormTextarea, Grid, GridItem, GridModalState, ImageBlock, ImageElement, Justifies, KARTE_MODAL_ROOT, LengthUnits, List, ListBackgroundTypes, ListDirections, ListItem, ListSeparatorTypes, MediaQueries, Modal, ModalPositions, MovieVimeoElement, MovieYouTubeElement, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, Repeats, Slide, SlideItem, State, StateItem, TextBlock, TextButtonBlock, TextButtonElement, TextDirections, TextElement, WritingModes, applyCss, applyGlobalCss, close, closeAction, closed, collection$1 as collection, create, createApp, createFog, customHandlers, customVariables, destroy, destroyed, ensureModalRoot, finalize, formData, getActionShadowRoot, getCustomHandlers, getCustomVariables, getEvents, getLogs, getState$1 as getState, getStates, getStoreState, getSystem, hideOnScroll, hideOnTime, initialize, isClosed, isOpened, listenConsoleLogger, listenLogger, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestroy, onScroll, onShow, onTime, opened, setActionSetting, setAutoStart, setClosed, setCustomHandlers, setCustomVariables, setState$1 as setState, show, showAction, showModal, showOnScroll, showOnTime, state, stopped, updateCustomHandlers, updateCustomVariables, widget };
|