@plaidev/karte-action-sdk 1.1.182 → 1.1.183-28059103.79845c01
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 +88 -18
- package/dist/hydrate/index.es.js +237 -126
- package/dist/index.es.d.ts +88 -18
- package/dist/index.es.js +205 -92
- package/package.json +1 -1
@@ -36,15 +36,6 @@ type ActionEventHandler = (...args: any[]) => any | Promise<any>;
|
|
36
36
|
type ActionVariables = {
|
37
37
|
[key: string]: any;
|
38
38
|
};
|
39
|
-
/**
|
40
|
-
* アクション設定
|
41
|
-
*
|
42
|
-
* @public
|
43
|
-
*/
|
44
|
-
type ActionSetting = {
|
45
|
-
send?: (event_name: string, values?: any) => void;
|
46
|
-
initialState?: string;
|
47
|
-
};
|
48
39
|
/**
|
49
40
|
* アクションの send 関数
|
50
41
|
*
|
@@ -57,6 +48,16 @@ type SendFunction = (event_name: string, values?: any) => void;
|
|
57
48
|
* @public
|
58
49
|
*/
|
59
50
|
type PublishFunction = (topic: string, values?: any) => void;
|
51
|
+
/**
|
52
|
+
* アクション設定
|
53
|
+
*
|
54
|
+
* @public
|
55
|
+
*/
|
56
|
+
type ActionSetting = {
|
57
|
+
send?: SendFunction;
|
58
|
+
publish?: PublishFunction;
|
59
|
+
initialState?: string;
|
60
|
+
};
|
60
61
|
/**
|
61
62
|
* アクションのライフサイクル changeState で呼び出されるフック関数
|
62
63
|
*
|
@@ -732,6 +733,7 @@ type OperationArgumentTypes = {
|
|
732
733
|
NumberKeyword: number;
|
733
734
|
TransitState: string;
|
734
735
|
Url: string;
|
736
|
+
Color: string;
|
735
737
|
Handler: string;
|
736
738
|
Trigger: string;
|
737
739
|
};
|
@@ -740,6 +742,7 @@ type OperationArgumentType = keyof OperationArgumentTypes;
|
|
740
742
|
type BaseOperationOptions = ReadonlyArray<{
|
741
743
|
operation: string;
|
742
744
|
args: ReadonlyArray<{
|
745
|
+
name: string;
|
743
746
|
type: OperationArgumentType;
|
744
747
|
default: any;
|
745
748
|
}>;
|
@@ -765,10 +768,12 @@ declare const OnClickOperationOptions: readonly [
|
|
765
768
|
readonly operation: "linkTo";
|
766
769
|
readonly args: readonly [
|
767
770
|
{
|
771
|
+
readonly name: "url";
|
768
772
|
readonly type: "Url";
|
769
773
|
readonly default: "";
|
770
774
|
},
|
771
775
|
{
|
776
|
+
readonly name: "open_new_tab";
|
772
777
|
readonly type: "BooleanKeyword";
|
773
778
|
readonly default: true;
|
774
779
|
}
|
@@ -778,6 +783,7 @@ declare const OnClickOperationOptions: readonly [
|
|
778
783
|
readonly operation: "moveTo";
|
779
784
|
readonly args: readonly [
|
780
785
|
{
|
786
|
+
readonly name: "state";
|
781
787
|
readonly type: "TransitState";
|
782
788
|
readonly default: "/";
|
783
789
|
}
|
@@ -787,6 +793,7 @@ declare const OnClickOperationOptions: readonly [
|
|
787
793
|
readonly operation: "closeApp";
|
788
794
|
readonly args: readonly [
|
789
795
|
{
|
796
|
+
readonly name: "trigger";
|
790
797
|
readonly type: "Trigger";
|
791
798
|
readonly default: "button";
|
792
799
|
}
|
@@ -796,6 +803,7 @@ declare const OnClickOperationOptions: readonly [
|
|
796
803
|
readonly operation: "runScript";
|
797
804
|
readonly args: readonly [
|
798
805
|
{
|
806
|
+
readonly name: "handler";
|
799
807
|
readonly type: "Handler";
|
800
808
|
readonly default: "";
|
801
809
|
}
|
@@ -805,10 +813,71 @@ declare const OnClickOperationOptions: readonly [
|
|
805
813
|
readonly operation: "submitForm";
|
806
814
|
readonly args: readonly [
|
807
815
|
{
|
816
|
+
readonly name: "state";
|
808
817
|
readonly type: "TransitState";
|
809
818
|
readonly default: "/";
|
810
819
|
}
|
811
820
|
];
|
821
|
+
},
|
822
|
+
{
|
823
|
+
readonly operation: "bootChat";
|
824
|
+
readonly args: readonly [
|
825
|
+
{
|
826
|
+
readonly name: "hide_launcher";
|
827
|
+
readonly type: "BooleanKeyword";
|
828
|
+
readonly default: false;
|
829
|
+
},
|
830
|
+
{
|
831
|
+
readonly name: "placement_pc";
|
832
|
+
readonly type: "StringKeyword";
|
833
|
+
readonly default: "left";
|
834
|
+
},
|
835
|
+
{
|
836
|
+
readonly name: "placement_mobile";
|
837
|
+
readonly type: "StringKeyword";
|
838
|
+
readonly default: "left";
|
839
|
+
},
|
840
|
+
{
|
841
|
+
readonly name: "horizontal_spacing_pc";
|
842
|
+
readonly type: "NumberKeyword";
|
843
|
+
readonly default: 20;
|
844
|
+
},
|
845
|
+
{
|
846
|
+
readonly name: "horizontal_spacing_mobile";
|
847
|
+
readonly type: "NumberKeyword";
|
848
|
+
readonly default: 20;
|
849
|
+
},
|
850
|
+
{
|
851
|
+
readonly name: "vertical_spacing_pc";
|
852
|
+
readonly type: "NumberKeyword";
|
853
|
+
readonly default: 20;
|
854
|
+
},
|
855
|
+
{
|
856
|
+
readonly name: "vertical_spacing_mobile";
|
857
|
+
readonly type: "NumberKeyword";
|
858
|
+
readonly default: 20;
|
859
|
+
},
|
860
|
+
{
|
861
|
+
readonly name: "theme_color";
|
862
|
+
readonly type: "Color";
|
863
|
+
readonly default: "#2aab9f";
|
864
|
+
},
|
865
|
+
{
|
866
|
+
readonly name: "header_title";
|
867
|
+
readonly type: "StringKeyword";
|
868
|
+
readonly default: "KARTE\u30B5\u30DD\u30FC\u30C8\u30C1\u30FC\u30E0";
|
869
|
+
},
|
870
|
+
{
|
871
|
+
readonly name: "header_description";
|
872
|
+
readonly type: "StringKeyword";
|
873
|
+
readonly default: "\u3054\u8CEA\u554F\u304C\u3042\u308C\u3070\u304A\u5C0B\u306D\u304F\u3060\u3055\u3044\u3002\nKARTE\u30B5\u30DD\u30FC\u30C8\u62C5\u5F53\u8005\u306B\u3064\u306A\u304C\u308A\u307E\u3059\u3002\u30B5\u30DD\u30FC\u30C8\u53D7\u4ED8\u6642\u9593\u306F\u5E73\u65E510:30-17:30\u3067\u3059\u3002";
|
874
|
+
},
|
875
|
+
{
|
876
|
+
readonly name: "launcher_image";
|
877
|
+
readonly type: "StringKeyword";
|
878
|
+
readonly default: "";
|
879
|
+
}
|
880
|
+
];
|
812
881
|
}
|
813
882
|
];
|
814
883
|
/** @internal */
|
@@ -1397,15 +1466,6 @@ declare namespace widget {
|
|
1397
1466
|
type ActionVariables = {
|
1398
1467
|
[key: string]: any;
|
1399
1468
|
};
|
1400
|
-
/**
|
1401
|
-
* アクション設定
|
1402
|
-
*
|
1403
|
-
* @public
|
1404
|
-
*/
|
1405
|
-
type ActionSetting = {
|
1406
|
-
send?: (event_name: string, values?: any) => void;
|
1407
|
-
initialState?: string;
|
1408
|
-
};
|
1409
1469
|
/**
|
1410
1470
|
* アクションの send 関数
|
1411
1471
|
*
|
@@ -1418,6 +1478,16 @@ declare namespace widget {
|
|
1418
1478
|
* @public
|
1419
1479
|
*/
|
1420
1480
|
type PublishFunction = (topic: string, values?: any) => void;
|
1481
|
+
/**
|
1482
|
+
* アクション設定
|
1483
|
+
*
|
1484
|
+
* @public
|
1485
|
+
*/
|
1486
|
+
type ActionSetting = {
|
1487
|
+
send?: SendFunction;
|
1488
|
+
publish?: PublishFunction;
|
1489
|
+
initialState?: string;
|
1490
|
+
};
|
1421
1491
|
/**
|
1422
1492
|
* アクションのライフサイクル changeState で呼び出されるフック関数
|
1423
1493
|
*
|