tonder-web-sdk 1.16.1 → 1.16.6-beta.DEV-1433.1
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/README.md +134 -40
- package/package.json +29 -6
- package/types/card.d.ts +17 -17
- package/types/checkout.d.ts +85 -87
- package/types/common.d.ts +8 -2
- package/types/customer.d.ts +10 -10
- package/types/index.d.ts +9 -11
- package/types/inlineCheckout.d.ts +81 -61
- package/types/liteInlineCheckout.d.ts +78 -83
- package/types/paymentMethod.d.ts +17 -17
- package/types/transaction.d.ts +94 -94
- package/v1/bundle.min.js +1 -18
- package/.env-example +0 -1
- package/cypress/e2e/1-getting-started/todo.cy.js +0 -143
- package/cypress/e2e/2-advanced-examples/actions.cy.js +0 -299
- package/cypress/e2e/2-advanced-examples/aliasing.cy.js +0 -39
- package/cypress/e2e/2-advanced-examples/assertions.cy.js +0 -176
- package/cypress/e2e/2-advanced-examples/connectors.cy.js +0 -98
- package/cypress/e2e/2-advanced-examples/cookies.cy.js +0 -118
- package/cypress/e2e/2-advanced-examples/cypress_api.cy.js +0 -185
- package/cypress/e2e/2-advanced-examples/files.cy.js +0 -85
- package/cypress/e2e/2-advanced-examples/location.cy.js +0 -32
- package/cypress/e2e/2-advanced-examples/misc.cy.js +0 -104
- package/cypress/e2e/2-advanced-examples/navigation.cy.js +0 -56
- package/cypress/e2e/2-advanced-examples/network_requests.cy.js +0 -163
- package/cypress/e2e/2-advanced-examples/querying.cy.js +0 -114
- package/cypress/e2e/2-advanced-examples/spies_stubs_clocks.cy.js +0 -201
- package/cypress/e2e/2-advanced-examples/storage.cy.js +0 -110
- package/cypress/e2e/2-advanced-examples/traversal.cy.js +0 -121
- package/cypress/e2e/2-advanced-examples/utilities.cy.js +0 -108
- package/cypress/e2e/2-advanced-examples/viewport.cy.js +0 -58
- package/cypress/e2e/2-advanced-examples/waiting.cy.js +0 -30
- package/cypress/e2e/2-advanced-examples/window.cy.js +0 -22
- package/cypress/fixtures/example.json +0 -5
- package/cypress/support/commands.js +0 -25
- package/cypress/support/e2e.js +0 -20
- package/cypress.config.js +0 -9
- package/index.js.example +0 -50
- package/samples/react/README.md +0 -70
- package/samples/react/build/asset-manifest.json +0 -16
- package/samples/react/build/favicon.ico +0 -0
- package/samples/react/build/index.html +0 -1
- package/samples/react/build/logo192.png +0 -0
- package/samples/react/build/logo512.png +0 -0
- package/samples/react/build/manifest.json +0 -25
- package/samples/react/build/robots.txt +0 -3
- package/samples/react/build/static/css/main.073c9b0a.css +0 -2
- package/samples/react/build/static/css/main.073c9b0a.css.map +0 -1
- package/samples/react/build/static/js/787.b83ed06f.chunk.js +0 -2
- package/samples/react/build/static/js/787.b83ed06f.chunk.js.map +0 -1
- package/samples/react/build/static/js/main.0a848807.js +0 -3
- package/samples/react/build/static/js/main.0a848807.js.LICENSE.txt +0 -39
- package/samples/react/build/static/js/main.0a848807.js.map +0 -1
- package/samples/react/build/static/media/sdk-icons.b491623214b2af4cccdb.png +0 -0
- package/samples/react/package-lock.json +0 -28973
- package/samples/react/package.json +0 -44
- package/samples/react/public/favicon.ico +0 -0
- package/samples/react/public/index.html +0 -43
- package/samples/react/public/logo192.png +0 -0
- package/samples/react/public/logo512.png +0 -0
- package/samples/react/public/manifest.json +0 -25
- package/samples/react/public/robots.txt +0 -3
- package/samples/react/src/App.css +0 -38
- package/samples/react/src/App.js +0 -22
- package/samples/react/src/App.test.js +0 -8
- package/samples/react/src/assets/img/sdk-icons.png +0 -0
- package/samples/react/src/components/Cart.js +0 -29
- package/samples/react/src/components/ProductCard.js +0 -27
- package/samples/react/src/context/CartContext.js +0 -116
- package/samples/react/src/index.css +0 -13
- package/samples/react/src/index.js +0 -17
- package/samples/react/src/logo.svg +0 -1
- package/samples/react/src/reportWebVitals.js +0 -13
- package/samples/react/src/screens/Checkout.js +0 -82
- package/samples/react/src/screens/Store.js +0 -21
- package/samples/react/src/setupTests.js +0 -5
- package/samples/react/src/storeProducts.js +0 -30
- package/src/classes/3dsHandler.js +0 -203
- package/src/classes/BaseInlineCheckout.js +0 -324
- package/src/classes/LiteInlineCheckout.js +0 -220
- package/src/classes/checkout.js +0 -125
- package/src/classes/globalLoader.js +0 -29
- package/src/classes/inlineCheckout.js +0 -515
- package/src/data/apmApi.js +0 -44
- package/src/data/businessApi.js +0 -19
- package/src/data/cardApi.js +0 -143
- package/src/data/checkoutApi.js +0 -92
- package/src/data/customerApi.js +0 -37
- package/src/data/index.js +0 -17
- package/src/data/openPayApi.js +0 -16
- package/src/data/skyflowApi.js +0 -18
- package/src/helpers/skyflow.js +0 -361
- package/src/helpers/styles.js +0 -61
- package/src/helpers/template-skeleton.js +0 -59
- package/src/helpers/template.js +0 -743
- package/src/helpers/utils.js +0 -163
- package/src/helpers/validations.js +0 -54
- package/src/index-dev.js +0 -307
- package/src/index.html +0 -172
- package/src/index.js +0 -15
- package/src/shared/catalog/paymentMethodsCatalog.js +0 -247
- package/src/shared/constants/messages.js +0 -10
- package/src/shared/constants/paymentMethodAPM.js +0 -63
- package/src/shared/constants/tonderUrl.js +0 -8
- package/webpack.config.js +0 -77
package/src/helpers/styles.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export const defaultStyles = {
|
|
2
|
-
inputStyles: {
|
|
3
|
-
base: {
|
|
4
|
-
border: "1px solid #e0e0e0",
|
|
5
|
-
padding: "10px 7px",
|
|
6
|
-
borderRadius: "5px",
|
|
7
|
-
color: "#1d1d1d",
|
|
8
|
-
marginTop: "2px",
|
|
9
|
-
backgroundColor: "white",
|
|
10
|
-
fontFamily: '"Inter", sans-serif',
|
|
11
|
-
fontSize: '16px',
|
|
12
|
-
'&::placeholder': {
|
|
13
|
-
color: "#ccc",
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
cardIcon: {
|
|
17
|
-
position: 'absolute',
|
|
18
|
-
left: '6px',
|
|
19
|
-
bottom: 'calc(50% - 12px)',
|
|
20
|
-
},
|
|
21
|
-
complete: {
|
|
22
|
-
color: "#4caf50",
|
|
23
|
-
},
|
|
24
|
-
empty: {},
|
|
25
|
-
focus: {},
|
|
26
|
-
invalid: {
|
|
27
|
-
border: "1px solid #f44336",
|
|
28
|
-
},
|
|
29
|
-
global: {
|
|
30
|
-
'@import': 'url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap")',
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
labelStyles: {
|
|
34
|
-
base: {
|
|
35
|
-
fontSize: '12px',
|
|
36
|
-
fontWeight: '500',
|
|
37
|
-
fontFamily: '"Inter", sans-serif'
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
errorTextStyles: {
|
|
41
|
-
base: {
|
|
42
|
-
fontSize: '12px',
|
|
43
|
-
fontWeight: '500',
|
|
44
|
-
color: "#f44336",
|
|
45
|
-
fontFamily: '"Inter", sans-serif'
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
labels: {
|
|
49
|
-
nameLabel: 'Titular de la tarjeta',
|
|
50
|
-
cardLabel: 'Número de tarjeta',
|
|
51
|
-
cvvLabel: 'CVC/CVV',
|
|
52
|
-
expiryDateLabel: 'Fecha de expiración',
|
|
53
|
-
},
|
|
54
|
-
placeholders: {
|
|
55
|
-
namePlaceholder: 'Nombre como aparece en la tarjeta',
|
|
56
|
-
cardPlaceholder: '1234 1234 1234 1234',
|
|
57
|
-
cvvPlaceholder: '3-4 dígitos',
|
|
58
|
-
expiryMonthPlaceholder: 'MM',
|
|
59
|
-
expiryYearPlaceholder: 'AA'
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export const cardTemplateSkeleton = `
|
|
2
|
-
<div class="container-tonder-skeleton">
|
|
3
|
-
<div class="skeleton-loader"></div>
|
|
4
|
-
<div class="skeleton-loader"></div>
|
|
5
|
-
<div class="collect-row-skeleton">
|
|
6
|
-
<div class="skeleton-loader skeleton-loader-item"></div>
|
|
7
|
-
<div class="skeleton-loader skeleton-loader-item"></div>
|
|
8
|
-
<div class="skeleton-loader skeleton-loader-item"></div>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<style>
|
|
13
|
-
.container-tonder-skeleton {
|
|
14
|
-
background-color: #F9F9F9;
|
|
15
|
-
margin: 0 auto !important;
|
|
16
|
-
padding: 30px 10px 30px 10px;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
transition: max-height 0.5s ease-out;
|
|
19
|
-
max-width: 600px;
|
|
20
|
-
height: 100%;
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
gap: 45px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.collect-row-skeleton {
|
|
27
|
-
display: flex !important;
|
|
28
|
-
justify-content: space-between !important;
|
|
29
|
-
margin-left: 10px !important;
|
|
30
|
-
margin-right: 10px !important;
|
|
31
|
-
gap: 10px;
|
|
32
|
-
}
|
|
33
|
-
.skeleton-loader {
|
|
34
|
-
height: 45px !important;
|
|
35
|
-
border-radius: 8px;
|
|
36
|
-
margin-top: 2px;
|
|
37
|
-
margin-bottom: 4px;
|
|
38
|
-
margin-left: 10px !important;
|
|
39
|
-
margin-right: 10px !important;
|
|
40
|
-
background-color: #e0e0e0;
|
|
41
|
-
animation: pulse 1.5s infinite ease-in-out;
|
|
42
|
-
}
|
|
43
|
-
.skeleton-loader-item{
|
|
44
|
-
width: 35%;
|
|
45
|
-
margin: 0 !important;
|
|
46
|
-
}
|
|
47
|
-
@keyframes pulse {
|
|
48
|
-
0% {
|
|
49
|
-
background-color: #e0e0e0;
|
|
50
|
-
}
|
|
51
|
-
50% {
|
|
52
|
-
background-color: #f0f0f0;
|
|
53
|
-
}
|
|
54
|
-
100% {
|
|
55
|
-
background-color: #e0e0e0;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
</style>
|
|
59
|
-
`
|