mkfashion-sdk 2.4.3 → 2.4.4

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/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <meta charset="UTF-8">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
7
  <title>Provador Virtual</title>
8
- <script src="./src/mkfashion.js"></script>
8
+ <script src="https://unpkg.com/mkfashion-sdk/src/mkfashion.js"></script>
9
9
  </head>
10
10
 
11
11
  <body>
@@ -47,10 +47,8 @@
47
47
  });
48
48
  });
49
49
 
50
- mkfashion.onInteraction((payload) => {
51
- if(payload.action == "retry"){
52
- cosole.log('Interação com o botão de retry')
53
- }
50
+ mkfashion.onInteraction((data) => {
51
+ console.log(data.category, data.action)
54
52
  })
55
53
 
56
54
  mkfashion.isAvailable(projectid, identifier)
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mkfashion-sdk",
3
- "version": "2.4.3",
3
+ "version": "2.4.4",
4
4
  "description": "SDK para integrar o provador virtual mKFashion com suporte a Wake Commerce",
5
5
  "main": "src/mkfashion.js",
6
6
  "scripts": {
package/src/mkfashion.js CHANGED
@@ -17,13 +17,13 @@ const mkfashion = {
17
17
 
18
18
  // ============ CONFIGURACAO ============
19
19
 
20
- //appUrl: 'https://mkfashion.mk3dlabs.com/visualizer',
20
+ appUrl: 'https://mkfashion.mk3dlabs.com/visualizer',
21
21
  apiUrl: 'https://mkfashion-new-api.mk3dlabs.com',
22
22
  debug: false,
23
23
 
24
24
  // DEV - Descomentar para desenvolvimento local
25
- appUrl: 'http://localhost:5174/visualizer',
26
- // apiUrl: 'http://localhost:3007',
25
+ //appUrl: 'http://localhost:5174/visualizer',
26
+ //apiUrl: 'http://localhost:3007',
27
27
 
28
28
  // ============ ESTADO INTERNO ============
29
29
 
Binary file