@plaidev/karte-action-sdk 1.1.208-28223127.8251d5b4 → 1.1.209-28223230.0a8e06d1
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 +0 -5
- package/dist/hydrate/index.es.js +11 -11
- package/dist/index.es.d.ts +0 -5
- package/dist/index.es.js +11 -11
- package/package.json +1 -1
@@ -607,8 +607,6 @@ declare const variables: Store<{
|
|
607
607
|
* 変数の一覧を取得する
|
608
608
|
*
|
609
609
|
* @returns 現在の変数の一覧
|
610
|
-
*
|
611
|
-
* @internal
|
612
610
|
*/
|
613
611
|
declare function getVariables(): ActionVariables;
|
614
612
|
/**
|
@@ -618,13 +616,10 @@ declare function getVariables(): ActionVariables;
|
|
618
616
|
* 設定した変数は、ビジュアルエディタのテキストフォームなどで利用できます。
|
619
617
|
*
|
620
618
|
* @param vars - 変数
|
621
|
-
*
|
622
|
-
* @internal
|
623
619
|
*/
|
624
620
|
declare function setVariables(vars: ActionVariables): ActionVariables;
|
625
621
|
/**
|
626
622
|
* 変数をリセットする
|
627
|
-
*
|
628
623
|
*/
|
629
624
|
declare function resetVariables(): void;
|
630
625
|
/** @internal */
|
package/dist/hydrate/index.es.js
CHANGED
@@ -956,8 +956,6 @@ const variables = writable({});
|
|
956
956
|
* 変数の一覧を取得する
|
957
957
|
*
|
958
958
|
* @returns 現在の変数の一覧
|
959
|
-
*
|
960
|
-
* @internal
|
961
959
|
*/
|
962
960
|
function getVariables() {
|
963
961
|
return get(variables);
|
@@ -969,8 +967,6 @@ function getVariables() {
|
|
969
967
|
* 設定した変数は、ビジュアルエディタのテキストフォームなどで利用できます。
|
970
968
|
*
|
971
969
|
* @param vars - 変数
|
972
|
-
*
|
973
|
-
* @internal
|
974
970
|
*/
|
975
971
|
function setVariables(vars) {
|
976
972
|
if (!get(variables)) {
|
@@ -983,7 +979,6 @@ function setVariables(vars) {
|
|
983
979
|
}
|
984
980
|
/**
|
985
981
|
* 変数をリセットする
|
986
|
-
*
|
987
982
|
*/
|
988
983
|
function resetVariables() {
|
989
984
|
setVariables({});
|
@@ -1996,21 +1991,26 @@ async function runScript$1(options = {
|
|
1996
1991
|
}) {
|
1997
1992
|
if (!options.onCreate)
|
1998
1993
|
return;
|
1999
|
-
|
1994
|
+
let data = {
|
2000
1995
|
...options.props,
|
2001
1996
|
...options.variables,
|
2002
1997
|
...getVariables(),
|
2003
1998
|
};
|
2004
|
-
const actionProps = {
|
2005
|
-
send: options.send,
|
2006
|
-
publish: options.publish,
|
2007
|
-
data,
|
2008
|
-
};
|
2009
1999
|
initialize({ send: options.send, initialState: data.initial_state });
|
2010
2000
|
initActionTable(options.localVariablesQuery);
|
2011
2001
|
const { success } = await setupActionTable(options.localVariablesQuery, data, data.api_key);
|
2012
2002
|
if (!success)
|
2013
2003
|
return;
|
2004
|
+
// Action Tableの取得結果を反映する
|
2005
|
+
data = {
|
2006
|
+
...data,
|
2007
|
+
...getVariables(),
|
2008
|
+
};
|
2009
|
+
const actionProps = {
|
2010
|
+
send: options.send,
|
2011
|
+
publish: options.publish,
|
2012
|
+
data,
|
2013
|
+
};
|
2014
2014
|
options.send('script_fired');
|
2015
2015
|
// 旧Widget API IFの処理
|
2016
2016
|
const { onCreateHandlers } = getInternalHandlers();
|
package/dist/index.es.d.ts
CHANGED
@@ -607,8 +607,6 @@ declare const variables: Store<{
|
|
607
607
|
* 変数の一覧を取得する
|
608
608
|
*
|
609
609
|
* @returns 現在の変数の一覧
|
610
|
-
*
|
611
|
-
* @internal
|
612
610
|
*/
|
613
611
|
declare function getVariables(): ActionVariables;
|
614
612
|
/**
|
@@ -618,13 +616,10 @@ declare function getVariables(): ActionVariables;
|
|
618
616
|
* 設定した変数は、ビジュアルエディタのテキストフォームなどで利用できます。
|
619
617
|
*
|
620
618
|
* @param vars - 変数
|
621
|
-
*
|
622
|
-
* @internal
|
623
619
|
*/
|
624
620
|
declare function setVariables(vars: ActionVariables): ActionVariables;
|
625
621
|
/**
|
626
622
|
* 変数をリセットする
|
627
|
-
*
|
628
623
|
*/
|
629
624
|
declare function resetVariables(): void;
|
630
625
|
/** @internal */
|
package/dist/index.es.js
CHANGED
@@ -958,8 +958,6 @@ const variables = writable({});
|
|
958
958
|
* 変数の一覧を取得する
|
959
959
|
*
|
960
960
|
* @returns 現在の変数の一覧
|
961
|
-
*
|
962
|
-
* @internal
|
963
961
|
*/
|
964
962
|
function getVariables() {
|
965
963
|
return get(variables);
|
@@ -971,8 +969,6 @@ function getVariables() {
|
|
971
969
|
* 設定した変数は、ビジュアルエディタのテキストフォームなどで利用できます。
|
972
970
|
*
|
973
971
|
* @param vars - 変数
|
974
|
-
*
|
975
|
-
* @internal
|
976
972
|
*/
|
977
973
|
function setVariables(vars) {
|
978
974
|
if (!get(variables)) {
|
@@ -985,7 +981,6 @@ function setVariables(vars) {
|
|
985
981
|
}
|
986
982
|
/**
|
987
983
|
* 変数をリセットする
|
988
|
-
*
|
989
984
|
*/
|
990
985
|
function resetVariables() {
|
991
986
|
setVariables({});
|
@@ -2055,21 +2050,26 @@ async function runScript$1(options = {
|
|
2055
2050
|
}) {
|
2056
2051
|
if (!options.onCreate)
|
2057
2052
|
return;
|
2058
|
-
|
2053
|
+
let data = {
|
2059
2054
|
...options.props,
|
2060
2055
|
...options.variables,
|
2061
2056
|
...getVariables(),
|
2062
2057
|
};
|
2063
|
-
const actionProps = {
|
2064
|
-
send: options.send,
|
2065
|
-
publish: options.publish,
|
2066
|
-
data,
|
2067
|
-
};
|
2068
2058
|
initialize({ send: options.send, initialState: data.initial_state });
|
2069
2059
|
initActionTable(options.localVariablesQuery);
|
2070
2060
|
const { success } = await setupActionTable(options.localVariablesQuery, data, data.api_key);
|
2071
2061
|
if (!success)
|
2072
2062
|
return;
|
2063
|
+
// Action Tableの取得結果を反映する
|
2064
|
+
data = {
|
2065
|
+
...data,
|
2066
|
+
...getVariables(),
|
2067
|
+
};
|
2068
|
+
const actionProps = {
|
2069
|
+
send: options.send,
|
2070
|
+
publish: options.publish,
|
2071
|
+
data,
|
2072
|
+
};
|
2073
2073
|
options.send('script_fired');
|
2074
2074
|
// 旧Widget API IFの処理
|
2075
2075
|
const { onCreateHandlers } = getInternalHandlers();
|