@ranty/ranty-sdk 0.0.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 +58 -0
- package/dist/avatar.png +0 -0
- package/dist/card.svg +8 -0
- package/dist/chevron-right.svg +3 -0
- package/dist/circle-dot.svg +5 -0
- package/dist/circle.svg +4 -0
- package/dist/credit-cards/logonxsvg.svg +9 -0
- package/dist/credit-cards/master.png +0 -0
- package/dist/ctp-footer.svg +9 -0
- package/dist/ctp.svg +10 -0
- package/dist/error.svg +5 -0
- package/dist/icon-info.svg +5 -0
- package/dist/icons-checkmark.svg +1 -0
- package/dist/index.js +16804 -0
- package/dist/mastercard-logo.svg +1 -0
- package/dist/naranjax.png +0 -0
- package/dist/nave-icono.svg +29 -0
- package/dist/popup.svg +11 -0
- package/dist/qr.svg +15 -0
- package/dist/shopping-bag.svg +7 -0
- package/dist/system-error.png +0 -0
- package/dist/vite.svg +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="68" width="82" id="svg895" version="1.1" viewBox="-96 -98.908 832 593.448"><defs id="defs879"><style id="style877" type="text/css">.e{fill:#f79e1b}</style></defs><path id="rect887" display="inline" fill="#ff5f00" stroke-width="5.494" d="M224.833 42.298h190.416v311.005H224.833z"/><path id="path889" d="M244.446 197.828a197.448 197.448 0 0175.54-155.475 197.777 197.777 0 100 311.004 197.448 197.448 0 01-75.54-155.53z" fill="#eb001b" stroke-width="5.494"/><path id="path891" d="M621.101 320.394v-6.372h2.747v-1.319h-6.537v1.319h2.582v6.373zm12.691 0v-7.69h-1.978l-2.307 5.493-2.308-5.494h-1.977v7.691h1.428v-5.823l2.143 5h1.483l2.143-5v5.823z" class="e" fill="#f79e1b" stroke-width="5.494"/><path id="path893" d="M640 197.828a197.777 197.777 0 01-320.015 155.474 197.777 197.777 0 000-311.004A197.777 197.777 0 01640 197.773z" class="e" fill="#f79e1b" stroke-width="5.494"/></svg>
|
|
Binary file
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_1948_9282)">
|
|
3
|
+
<g clip-path="url(#clip1_1948_9282)">
|
|
4
|
+
<path d="M31 13.1875V4.42231C31 2.53223 29.4824 1 27.6104 1H18.9286V13.1875H31Z" fill="url(#paint0_linear_1948_9282)"/>
|
|
5
|
+
<path d="M18.9286 13.1875V1H15.5542C13.7189 1 11.9599 1.73086 10.6689 3.02979L1.43455 12.3207C1.11522 12.642 1.34367 13.1875 1.79761 13.1875H18.9286Z" fill="url(#paint1_linear_1948_9282)"/>
|
|
6
|
+
<path d="M18.9286 13.1875H31V16.6695C31 18.5128 30.2761 20.2794 28.9895 21.5761L19.7871 30.8504C19.4689 31.1713 18.9286 30.9417 18.9286 30.4858V13.1875Z" fill="url(#paint2_linear_1948_9282)"/>
|
|
7
|
+
</g>
|
|
8
|
+
</g>
|
|
9
|
+
<defs>
|
|
10
|
+
<linearGradient id="paint0_linear_1948_9282" x1="34.3532" y1="-2.46362" x2="10.7121" y2="19.6817" gradientUnits="userSpaceOnUse">
|
|
11
|
+
<stop offset="0.167296" stop-color="#9D66F3"/>
|
|
12
|
+
<stop offset="0.69456" stop-color="#4A01A3"/>
|
|
13
|
+
</linearGradient>
|
|
14
|
+
<linearGradient id="paint1_linear_1948_9282" x1="23.6283" y1="-1.52081" x2="0.557338" y2="18.005" gradientUnits="userSpaceOnUse">
|
|
15
|
+
<stop stop-color="#FF00B8"/>
|
|
16
|
+
<stop offset="0.848958" stop-color="#FFC700"/>
|
|
17
|
+
</linearGradient>
|
|
18
|
+
<linearGradient id="paint2_linear_1948_9282" x1="34.1106" y1="6.88574" x2="13.704" y2="31.3533" gradientUnits="userSpaceOnUse">
|
|
19
|
+
<stop stop-color="#FF00B8"/>
|
|
20
|
+
<stop offset="0.848958" stop-color="#FFC700"/>
|
|
21
|
+
</linearGradient>
|
|
22
|
+
<clipPath id="clip0_1948_9282">
|
|
23
|
+
<rect width="32" height="32" fill="white"/>
|
|
24
|
+
</clipPath>
|
|
25
|
+
<clipPath id="clip1_1948_9282">
|
|
26
|
+
<rect width="78" height="30" fill="white" transform="translate(-47 1)"/>
|
|
27
|
+
</clipPath>
|
|
28
|
+
</defs>
|
|
29
|
+
</svg>
|
package/dist/popup.svg
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
3
|
+
d="M5.25049 0.25C5.25049 0.111929 5.36242 0 5.50049 0H7.75049C7.88856 0 8.00049 0.111929 8.00049 0.25V2.5C8.00049 2.63807 7.88856 2.75 7.75049 2.75C7.61242 2.75 7.50049 2.63807 7.50049 2.5V0.5H5.50049C5.36242 0.5 5.25049 0.388071 5.25049 0.25Z"
|
|
4
|
+
fill="#BEBEBE" />
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
6
|
+
d="M7.92726 0.0732233C8.0249 0.170854 8.0249 0.329146 7.92726 0.426777L2.92726 5.42678C2.82963 5.52441 2.67134 5.52441 2.57371 5.42678C2.47608 5.32915 2.47608 5.17085 2.57371 5.07322L7.57371 0.0732233C7.67134 -0.0244078 7.82963 -0.0244078 7.92726 0.0732233Z"
|
|
7
|
+
fill="#BEBEBE" />
|
|
8
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
9
|
+
d="M0.000488281 2.25C0.000488281 1.83579 0.336275 1.5 0.750488 1.5H3.75049C3.88856 1.5 4.00049 1.61193 4.00049 1.75C4.00049 1.88807 3.88856 2 3.75049 2H0.750488C0.612417 2 0.500488 2.11193 0.500488 2.25V7.25C0.500488 7.38807 0.612417 7.5 0.750488 7.5H5.75049C5.88856 7.5 6.00049 7.38807 6.00049 7.25V4.25C6.00049 4.11193 6.11242 4 6.25049 4C6.38856 4 6.50049 4.11193 6.50049 4.25V7.25C6.50049 7.66421 6.1647 8 5.75049 8H0.750488C0.336275 8 0.000488281 7.66421 0.000488281 7.25V2.25Z"
|
|
10
|
+
fill="#BEBEBE" />
|
|
11
|
+
</svg>
|
package/dist/qr.svg
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.375 7.4375C6.375 6.8507 6.8507 6.375 7.4375 6.375H11.6875C12.2743 6.375 12.75 6.8507 12.75 7.4375V11.6875C12.75 12.2743 12.2743 12.75 11.6875 12.75H7.4375C6.8507 12.75 6.375 12.2743 6.375 11.6875V7.4375ZM8.5 8.5V10.625H10.625V8.5H8.5Z" fill="#652BDF" />
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.375 22.3125C6.375 21.7257 6.8507 21.25 7.4375 21.25H11.6875C12.2743 21.25 12.75 21.7257 12.75 22.3125V26.5625C12.75 27.1493 12.2743 27.625 11.6875 27.625H7.4375C6.8507 27.625 6.375 27.1493 6.375 26.5625V22.3125ZM8.5 23.375V25.5H10.625V23.375H8.5Z" fill="#652BDF" />
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.25 7.4375C21.25 6.8507 21.7257 6.375 22.3125 6.375H26.5625C27.1493 6.375 27.625 6.8507 27.625 7.4375V11.6875C27.625 12.2743 27.1493 12.75 26.5625 12.75H22.3125C21.7257 12.75 21.25 12.2743 21.25 11.6875V7.4375ZM23.375 8.5V10.625H25.5V8.5H23.375Z" fill="#652BDF" />
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.375 18.0625C6.375 17.4757 6.8507 17 7.4375 17H15.9375C16.5243 17 17 17.4757 17 18.0625V20.1875C17 20.7743 16.5243 21.25 15.9375 21.25C15.3507 21.25 14.875 20.7743 14.875 20.1875V19.125H7.4375C6.8507 19.125 6.375 18.6493 6.375 18.0625Z" fill="#652BDF" />
|
|
6
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20.1875 19.125C20.7743 19.125 21.25 19.6007 21.25 20.1875V25.5H25.5V21.25H24.4375C23.8507 21.25 23.375 20.7743 23.375 20.1875C23.375 19.6007 23.8507 19.125 24.4375 19.125H26.5625C27.1493 19.125 27.625 19.6007 27.625 20.1875V26.5625C27.625 27.1493 27.1493 27.625 26.5625 27.625H20.1875C19.6007 27.625 19.125 27.1493 19.125 26.5625V20.1875C19.125 19.6007 19.6007 19.125 20.1875 19.125Z" fill="#652BDF" />
|
|
7
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.9375 23.375C16.5243 23.375 17 23.8507 17 24.4375V26.5625C17 27.1493 16.5243 27.625 15.9375 27.625C15.3507 27.625 14.875 27.1493 14.875 26.5625V24.4375C14.875 23.8507 15.3507 23.375 15.9375 23.375Z" fill="#652BDF" />
|
|
8
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.9375 6.375C16.5243 6.375 17 6.8507 17 7.4375V12.75H18.0625C18.6493 12.75 19.125 13.2257 19.125 13.8125C19.125 14.3993 18.6493 14.875 18.0625 14.875H15.9375C15.3507 14.875 14.875 14.3993 14.875 13.8125V7.4375C14.875 6.8507 15.3507 6.375 15.9375 6.375Z" fill="#652BDF" />
|
|
9
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.25 15.9375C21.25 15.3507 21.7257 14.875 22.3125 14.875H26.5625C27.1493 14.875 27.625 15.3507 27.625 15.9375C27.625 16.5243 27.1493 17 26.5625 17H22.3125C21.7257 17 21.25 16.5243 21.25 15.9375Z" fill="#652BDF" />
|
|
10
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.1875 2.125C2.6007 2.125 2.125 2.6007 2.125 3.1875V8.5C2.125 9.0868 1.6493 9.5625 1.0625 9.5625C0.475697 9.5625 0 9.0868 0 8.5V3.1875C0 1.42709 1.42709 0 3.1875 0H8.5C9.0868 0 9.5625 0.475697 9.5625 1.0625C9.5625 1.6493 9.0868 2.125 8.5 2.125H3.1875Z" fill="#652BDF" />
|
|
11
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M24.4375 1.0625C24.4375 0.475697 24.9132 0 25.5 0H30.8125C32.5729 0 34 1.42709 34 3.1875V8.5C34 9.0868 33.5243 9.5625 32.9375 9.5625C32.3507 9.5625 31.875 9.0868 31.875 8.5V3.1875C31.875 2.6007 31.3993 2.125 30.8125 2.125H25.5C24.9132 2.125 24.4375 1.6493 24.4375 1.0625Z" fill="#652BDF" />
|
|
12
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.9375 24.4375C33.5243 24.4375 34 24.9132 34 25.5V30.8125C34 32.5729 32.5729 34 30.8125 34H25.5C24.9132 34 24.4375 33.5243 24.4375 32.9375C24.4375 32.3507 24.9132 31.875 25.5 31.875H30.8125C31.3993 31.875 31.875 31.3993 31.875 30.8125V25.5C31.875 24.9132 32.3507 24.4375 32.9375 24.4375Z" fill="#652BDF" />
|
|
13
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.0625 24.4375C1.6493 24.4375 2.125 24.9132 2.125 25.5V30.8125C2.125 31.3993 2.6007 31.875 3.1875 31.875H8.5C9.0868 31.875 9.5625 32.3507 9.5625 32.9375C9.5625 33.5243 9.0868 34 8.5 34H3.1875C1.42709 34 0 32.5729 0 30.8125V25.5C0 24.9132 0.475697 24.4375 1.0625 24.4375Z" fill="#652BDF" />
|
|
14
|
+
</svg>
|
|
15
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.56572 8.403C3.56572 8.40301 3.56573 8.40299 3.56572 8.403L1.70773 22.653C1.67982 22.8669 1.74542 23.0826 1.88778 23.2448C2.03009 23.4069 2.23531 23.4999 2.45102 23.5C2.45109 23.5 2.45096 23.5 2.45102 23.5H8.13883L6.16933 8.40302C6.12062 8.02961 5.80258 7.7502 5.42602 7.75C5.42596 7.75 5.42609 7.75 5.42602 7.75H4.31002C3.9332 7.74985 3.61447 8.02935 3.56572 8.403ZM4.31002 6.25C3.17966 6.2497 2.22452 7.0881 2.07832 8.209L0.220323 22.459C0.220324 22.459 0.220321 22.459 0.220323 22.459C0.136608 23.1009 0.333425 23.7478 0.76048 24.2343C1.18754 24.7208 1.80346 24.9998 2.45082 25H8.99302C9.20885 25 9.41421 24.907 9.55661 24.7448C9.69901 24.5827 9.76464 24.367 9.73672 24.153L7.65672 8.209C7.51059 7.08857 6.55615 6.2503 5.42622 6.25H4.31002Z" fill="#2B2B2B" />
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.4929 7C13.4929 6.58579 13.8287 6.25 14.2429 6.25H19.6759C20.8058 6.2503 21.7605 7.08857 21.9066 8.209L23.7656 22.459C23.8494 23.1012 23.6524 23.7483 23.225 24.2349C22.7976 24.7214 22.1814 25.0002 21.5339 25C21.5338 25 21.534 25 21.5339 25H8.99292C8.57871 25 8.24292 24.6642 8.24292 24.25C8.24292 23.8358 8.57871 23.5 8.99292 23.5H21.5339C21.7498 23.5001 21.9555 23.4072 22.098 23.245C22.2405 23.0828 22.3061 22.8671 22.2782 22.653L20.4192 8.40302C20.3705 8.02961 20.0525 7.7502 19.6759 7.75C19.6759 7.75 19.676 7.75 19.6759 7.75H14.2429C13.8287 7.75 13.4929 7.41421 13.4929 7Z" fill="#2B2B2B" />
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.67603 7C4.67603 6.58579 5.01181 6.25 5.42603 6.25H11.993C12.4072 6.25 12.743 6.58579 12.743 7C12.743 7.41421 12.4072 7.75 11.993 7.75H5.42603C5.01181 7.75 4.67603 7.41421 4.67603 7Z" fill="#2B2B2B" />
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.1182 1.5024C14.2784 0.832532 15.7079 0.832532 16.8682 1.5024C18.0284 2.17228 18.7432 3.41025 18.7432 4.75V11.5C18.7432 11.9142 18.4074 12.25 17.9932 12.25C17.579 12.25 17.2432 11.9142 17.2432 11.5V4.75C17.2432 3.94615 16.8143 3.20337 16.1182 2.80144C15.422 2.39952 14.5643 2.39952 13.8682 2.80144C13.172 3.20337 12.7432 3.94615 12.7432 4.75V11.5C12.7432 11.9142 12.4074 12.25 11.9932 12.25C11.579 12.25 11.2432 11.9142 11.2432 11.5V4.75C11.2432 3.41025 11.9579 2.17228 13.1182 1.5024Z" fill="#2B2B2B" />
|
|
6
|
+
<path d="M10.625 2.29908C9.92885 2.70101 9.5 3.44379 9.5 4.24764V6.24764C9.5 6.66185 9.16421 6.99764 8.75 6.99764C8.33579 6.99764 8 6.66185 8 6.24764V4.24764C8 2.90789 8.75 1.5 9.875 1.00004C11 0.500094 11 1 11 1.50004C11 2.00009 10.625 2.29908 10.625 2.29908Z" fill="#2B2B2B" />
|
|
7
|
+
</svg>
|
|
Binary file
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ranty/ranty-sdk",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Ranty sdk",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"types": "types/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"types"
|
|
13
|
+
],
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": ">=10"
|
|
16
|
+
},
|
|
17
|
+
"type": "module",
|
|
18
|
+
"scripts": {
|
|
19
|
+
"dev": "vite",
|
|
20
|
+
"preview": "vite preview --port 8080",
|
|
21
|
+
"build": "tsc && vite build --mode dev",
|
|
22
|
+
"build:stg": "tsc && vite build --mode staging",
|
|
23
|
+
"build:prod": "tsc && vite build --mode production",
|
|
24
|
+
"lint": "eslint .",
|
|
25
|
+
"lint-fix": "eslint --fix .",
|
|
26
|
+
"prettier:check": "prettier --check '**/*.js' '**/*.ts'",
|
|
27
|
+
"prettier:fix": "prettier --write '**/*.js' '**/*.ts'",
|
|
28
|
+
"test": "echo \"Error: no test specified\" && exit 0",
|
|
29
|
+
"coverage": "jest --coverage --reporter=clover"
|
|
30
|
+
},
|
|
31
|
+
"keywords": [
|
|
32
|
+
"naranja",
|
|
33
|
+
"ranty",
|
|
34
|
+
"ranty sdk"
|
|
35
|
+
],
|
|
36
|
+
"author": "Ranty ecommerce",
|
|
37
|
+
"license": "ISC",
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@jest/globals": "^29.7.0",
|
|
40
|
+
"@types/jest": "^29.5.5",
|
|
41
|
+
"@types/node": "^17.0.25",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^6.7.5",
|
|
43
|
+
"@typescript-eslint/parser": "^6.7.5",
|
|
44
|
+
"eslint": "^8.51.0",
|
|
45
|
+
"eslint-config-prettier": "^9.0.0",
|
|
46
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
47
|
+
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
48
|
+
"jest": "^29.7.0",
|
|
49
|
+
"prettier": "^3.0.2",
|
|
50
|
+
"ts-jest": "^29.1.1",
|
|
51
|
+
"typescript": "^5.0.2",
|
|
52
|
+
"vite": "^4.4.5"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@lit-labs/context": "^0.4.1",
|
|
56
|
+
"aws-amplify": "^5.3.10",
|
|
57
|
+
"axios": "^1.5.0",
|
|
58
|
+
"jsencrypt": "^3.3.2",
|
|
59
|
+
"lit": "^2.8.0",
|
|
60
|
+
"lit-html": "^2.8.0",
|
|
61
|
+
"recaptcha-v3": "^1.10.0",
|
|
62
|
+
"sass": "^1.66.1"
|
|
63
|
+
}
|
|
64
|
+
}
|