@solidgate/vue-sdk 1.1.1 → 1.2.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 CHANGED
@@ -1,3 +1,11 @@
1
+ **1.2.0**
2
+
3
+ Added **formParams.autoFocus** config param
4
+
5
+ **1.1.2**
6
+
7
+ Added license
8
+
1
9
  **1.1.0**
2
10
 
3
11
  ***
@@ -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,6 +19,7 @@ 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;
23
25
  headerText: string;
@@ -138,6 +140,7 @@ declare const _default: import("vue").DefineComponent<{
138
140
  formParams: {
139
141
  type: import("vue").PropType<Partial<{
140
142
  enabled: false;
143
+ autoFocus: boolean;
141
144
  submitButtonText: string;
142
145
  isCardHolderVisible: boolean;
143
146
  headerText: string;
@@ -0,0 +1,6 @@
1
+ declare global {
2
+ interface Window {
3
+ __SOLIDGATE_PRIVATE__SDK_INIT_TYPE: string;
4
+ }
5
+ }
6
+ export {};
@@ -2200,6 +2200,8 @@ const onSubscribe = (sdkInstanceValue, props) => {
2200
2200
  sdkInstanceValue.on(MessageType.Resize, (e) => props.onResize(e.data));
2201
2201
  sdkInstanceValue.on(MessageType.Card, (e) => props.onCard(e.data));
2202
2202
  };
2203
+ const sdkInitType = "vue";
2204
+ window.__SOLIDGATE_PRIVATE__SDK_INIT_TYPE = sdkInitType;
2203
2205
  const _sfc_main = /* @__PURE__ */ defineComponent({
2204
2206
  props: {
2205
2207
  merchantData: null,
package/package.json CHANGED
@@ -10,8 +10,9 @@
10
10
  "import": "./dist/solid-payment.es.js"
11
11
  }
12
12
  },
13
- "version": "1.1.1",
13
+ "version": "1.2.0",
14
14
  "typings": "./dist/lib/index.d.ts",
15
+ "license": "Apache-2.0",
15
16
  "scripts": {
16
17
  "start": "vite",
17
18
  "build": "vite build && vue-tsc --emitDeclarationOnly",
@@ -24,7 +25,7 @@
24
25
  "vue": "^3.2.25"
25
26
  },
26
27
  "dependencies": {
27
- "@solidgate/client-sdk-loader": "^1.3.1",
28
+ "@solidgate/client-sdk-loader": "^1.4.0",
28
29
  "vue3-styled-components": "^1.2.1"
29
30
  },
30
31
  "devDependencies": {