@solidgate/vue-sdk 1.1.2 → 1.3.0
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/CHANGELOG.md +21 -1
- package/README.md +1 -1
- package/dist/lib/Payment.vue.d.ts +5 -0
- package/dist/lib/boot/index.d.ts +6 -0
- package/dist/solid-payment.es.js +14 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,30 @@
|
|
|
1
|
+
**1.3.0**
|
|
2
|
+
|
|
3
|
+
Added **formParams.buttonType** config param
|
|
4
|
+
|
|
5
|
+
You may use it to set **continue** button type
|
|
6
|
+
```typescript
|
|
7
|
+
import { FormButtonType } from '@solidgate/vue-sdk'
|
|
8
|
+
|
|
9
|
+
initConfig.formParams.buttonType = FormButtonType.Continue
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
***
|
|
13
|
+
|
|
14
|
+
**1.2.0**
|
|
15
|
+
|
|
16
|
+
Added **formParams.autoFocus** config param
|
|
17
|
+
|
|
18
|
+
***
|
|
19
|
+
|
|
1
20
|
**1.1.2**
|
|
2
21
|
|
|
3
22
|
Added license
|
|
4
23
|
|
|
24
|
+
***
|
|
25
|
+
|
|
5
26
|
**1.1.0**
|
|
6
27
|
|
|
7
|
-
***
|
|
8
28
|
|
|
9
29
|
- Added **AdditionalFields** enum
|
|
10
30
|
- Fixed types which controlling labels visibility (like **initConfig.formParams.cardNumberLabel**)
|
package/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CustomStylesAppendedMessage, OrderStatusMessage, InteractionMessage, RedirectMessage, MountedMessage, SuccessMessage, ResizeMessage, VerifyMessage, SubmitMessage, ErrorMessage, FailMessage, CardMessage } from '@solidgate/client-sdk-loader';
|
|
2
|
+
import './boot';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
|
3
4
|
merchantData: {
|
|
4
5
|
type: import("vue").PropType<{
|
|
@@ -18,8 +19,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
19
|
formParams: {
|
|
19
20
|
type: import("vue").PropType<Partial<{
|
|
20
21
|
enabled: false;
|
|
22
|
+
autoFocus: boolean;
|
|
21
23
|
submitButtonText: string;
|
|
22
24
|
isCardHolderVisible: boolean;
|
|
25
|
+
buttonType: import("@solidgate/client-sdk-loader/dist/enums/FormButtonType").default;
|
|
23
26
|
headerText: string;
|
|
24
27
|
titleText: string;
|
|
25
28
|
formTypeClass: import("@solidgate/client-sdk-loader/dist/enums/FormType").default;
|
|
@@ -138,8 +141,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
138
141
|
formParams: {
|
|
139
142
|
type: import("vue").PropType<Partial<{
|
|
140
143
|
enabled: false;
|
|
144
|
+
autoFocus: boolean;
|
|
141
145
|
submitButtonText: string;
|
|
142
146
|
isCardHolderVisible: boolean;
|
|
147
|
+
buttonType: import("@solidgate/client-sdk-loader/dist/enums/FormButtonType").default;
|
|
143
148
|
headerText: string;
|
|
144
149
|
titleText: string;
|
|
145
150
|
formTypeClass: import("@solidgate/client-sdk-loader/dist/enums/FormType").default;
|
package/dist/solid-payment.es.js
CHANGED
|
@@ -2052,6 +2052,14 @@ var AdditionalFieldName$1;
|
|
|
2052
2052
|
AdditionalFieldName2["VietnamVnid"] = "vietnamVnid";
|
|
2053
2053
|
})(AdditionalFieldName$1 || (AdditionalFieldName$1 = {}));
|
|
2054
2054
|
AdditionalFieldName$2.default = AdditionalFieldName$1;
|
|
2055
|
+
var FormButtonType$2 = {};
|
|
2056
|
+
Object.defineProperty(FormButtonType$2, "__esModule", { value: true });
|
|
2057
|
+
var FormButtonType$1;
|
|
2058
|
+
(function(FormButtonType2) {
|
|
2059
|
+
FormButtonType2["Default"] = "default";
|
|
2060
|
+
FormButtonType2["Continue"] = "continue";
|
|
2061
|
+
})(FormButtonType$1 || (FormButtonType$1 = {}));
|
|
2062
|
+
FormButtonType$2.default = FormButtonType$1;
|
|
2055
2063
|
var SdkLoader$2 = {};
|
|
2056
2064
|
var __classPrivateFieldGet = commonjsGlobal && commonjsGlobal.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
|
2057
2065
|
if (kind === "a" && !f)
|
|
@@ -2108,7 +2116,7 @@ var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || functi
|
|
|
2108
2116
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
2109
2117
|
};
|
|
2110
2118
|
Object.defineProperty(dist, "__esModule", { value: true });
|
|
2111
|
-
var FormType = dist.FormType = SdkLoader = dist.SdkLoader = CardBrand = dist.CardBrand = FieldName = dist.FieldName = MessageType = dist.MessageType = SecureBrand = dist.SecureBrand = PayableEntity = dist.PayableEntity = InteractionType = dist.InteractionType = AdditionalFieldName = dist.AdditionalFieldName = InteractionTargetType = dist.InteractionTargetType = void 0;
|
|
2119
|
+
var FormType = dist.FormType = SdkLoader = dist.SdkLoader = CardBrand = dist.CardBrand = FieldName = dist.FieldName = MessageType = dist.MessageType = SecureBrand = dist.SecureBrand = PayableEntity = dist.PayableEntity = FormButtonType = dist.FormButtonType = InteractionType = dist.InteractionType = AdditionalFieldName = dist.AdditionalFieldName = InteractionTargetType = dist.InteractionTargetType = void 0;
|
|
2112
2120
|
const MessageType_1 = __importDefault(MessageType$2);
|
|
2113
2121
|
var MessageType = dist.MessageType = MessageType_1.default;
|
|
2114
2122
|
const FieldName_1 = __importDefault(FieldName$2);
|
|
@@ -2127,6 +2135,8 @@ const InteractionTargetType_1 = __importDefault(InteractionTargetType$2);
|
|
|
2127
2135
|
var InteractionTargetType = dist.InteractionTargetType = InteractionTargetType_1.default;
|
|
2128
2136
|
const AdditionalFieldName_1 = __importDefault(AdditionalFieldName$2);
|
|
2129
2137
|
var AdditionalFieldName = dist.AdditionalFieldName = AdditionalFieldName_1.default;
|
|
2138
|
+
const FormButtonType_1 = __importDefault(FormButtonType$2);
|
|
2139
|
+
var FormButtonType = dist.FormButtonType = FormButtonType_1.default;
|
|
2130
2140
|
const SdkLoader_1 = __importDefault(SdkLoader$2);
|
|
2131
2141
|
var SdkLoader = dist.SdkLoader = SdkLoader_1.default;
|
|
2132
2142
|
const payButtonIds = {
|
|
@@ -2200,6 +2210,8 @@ const onSubscribe = (sdkInstanceValue, props) => {
|
|
|
2200
2210
|
sdkInstanceValue.on(MessageType.Resize, (e) => props.onResize(e.data));
|
|
2201
2211
|
sdkInstanceValue.on(MessageType.Card, (e) => props.onCard(e.data));
|
|
2202
2212
|
};
|
|
2213
|
+
const sdkInitType = "vue";
|
|
2214
|
+
window.__SOLIDGATE_PRIVATE__SDK_INIT_TYPE = sdkInitType;
|
|
2203
2215
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2204
2216
|
props: {
|
|
2205
2217
|
merchantData: null,
|
|
@@ -2289,4 +2301,4 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2289
2301
|
};
|
|
2290
2302
|
}
|
|
2291
2303
|
});
|
|
2292
|
-
export { AdditionalFieldName, CardBrand, FieldName, FormType, InteractionTargetType, InteractionType, MessageType, PayableEntity, SdkLoader, SecureBrand, _sfc_main as default };
|
|
2304
|
+
export { AdditionalFieldName, CardBrand, FieldName, FormButtonType, FormType, InteractionTargetType, InteractionType, MessageType, PayableEntity, SdkLoader, SecureBrand, _sfc_main as default };
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"import": "./dist/solid-payment.es.js"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
-
"version": "1.
|
|
13
|
+
"version": "1.3.0",
|
|
14
14
|
"typings": "./dist/lib/index.d.ts",
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
16
|
"scripts": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"vue": "^3.2.25"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@solidgate/client-sdk-loader": "^1.
|
|
28
|
+
"@solidgate/client-sdk-loader": "^1.5.0",
|
|
29
29
|
"vue3-styled-components": "^1.2.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|