@multiversx/sdk-web-wallet-cross-window-provider 0.0.38-alpha.1 → 0.0.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiversx/sdk-web-wallet-cross-window-provider",
3
- "version": "0.0.38-alpha.1",
3
+ "version": "0.0.39",
4
4
  "description": "Signing provider for dApps: Cross Window",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.js",
@@ -1,4 +0,0 @@
1
- export declare const dialogId = "mxcwp_confirmation-dialog";
2
- export declare const confirmId = "mxcwp_confirm-button";
3
- export declare const cancelId = "mxcwp_cancel-button";
4
- export declare const getMarkup: (walletUrl: string) => string;
@@ -1,121 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getMarkup = exports.cancelId = exports.confirmId = exports.dialogId = void 0;
4
- exports.dialogId = 'mxcwp_confirmation-dialog';
5
- exports.confirmId = 'mxcwp_confirm-button';
6
- exports.cancelId = 'mxcwp_cancel-button';
7
- const getStyle = () => `
8
- <style>
9
- #${exports.dialogId} {
10
- position: fixed;
11
- z-index: 9999;
12
- padding-top: 100px;
13
- left: 50%;
14
- top: 50%;
15
- transform: translate(-50%, -50%);
16
- width: 100%;
17
- height: 100%;
18
- overflow: auto;
19
- background-color: rgba(0, 0, 0, 0.4);
20
- display: flex;
21
- align-items: center;
22
- }
23
-
24
- #${exports.dialogId}:modal {
25
- max-width: 100vw;
26
- width: 100vw;
27
- max-height: 100vh;
28
- height: 100vh;
29
-
30
- }
31
-
32
- #${exports.dialogId} .content {
33
- background: #fff;
34
- border-radius: 20px;
35
- z-index: 9999;
36
- max-width: 500px;
37
- margin: auto;
38
- padding: 0;
39
- position: relative;
40
- width: 100%;
41
- }
42
-
43
- #${exports.dialogId} .body {
44
- padding: 50px 0;
45
- color: #262525;
46
-
47
- }
48
-
49
- #${exports.dialogId} .title {
50
- text-align: center;
51
- font-size: 1.5rem;
52
- }
53
- #${exports.dialogId} .subtitle {
54
- margin-top: 10px;
55
- text-align: center;
56
- }
57
-
58
- #${exports.dialogId} .actions-container {
59
- margin-top: 40px;
60
- margin-bottom: 10px;
61
- display: flex;
62
- justify-content: center;
63
- gap: 20px;
64
- }
65
-
66
- #${exports.dialogId} .button {
67
- max-width: 200px;
68
- margin-top: 10px;
69
- }
70
-
71
-
72
- #${exports.dialogId} button {
73
- border-radius: 8px;
74
- border: 1px solid transparent;
75
- padding: 0.6em 1.2em;
76
- font-size: 1em;
77
- font-weight: 500;
78
- font-family: inherit;
79
- background-color: #efeeee;
80
- cursor: pointer;
81
- transition: border-color 0.25s;
82
- }
83
- #${exports.dialogId} button:hover {
84
- border-color: #cacaca;
85
- }
86
- #${exports.dialogId} button:focus,
87
- #${exports.dialogId} button:focus-visible {
88
- outline: 4px auto -webkit-focus-ring-color;
89
- }
90
-
91
- #${exports.dialogId} .btn-proceed {
92
- background-color: #262626;
93
- color: #fff;
94
- padding-left: 40px;
95
- padding-right: 40px;
96
- }
97
- </style>`;
98
- const getMarkup = (walletUrl) => {
99
- return `
100
- ${getStyle()}
101
- <div class="content">
102
- <div class="body">
103
- <div class="title">Confirm on MultiversX Wallet</div>
104
- <div class="subtitle">
105
- Continue to ${walletUrl}
106
- </div>
107
-
108
- <div class="actions-container">
109
- <button id="${exports.cancelId}" class="button">
110
- Cancel
111
- </button>
112
- <button id="${exports.confirmId}" class="button btn-proceed">
113
- Continue →
114
- </button>
115
- </div>
116
- </div>
117
- </div>
118
- `;
119
- };
120
- exports.getMarkup = getMarkup;
121
- //# sourceMappingURL=popupConsent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"popupConsent.js","sourceRoot":"","sources":["../../src/CrossWindowProvider/popupConsent.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG,2BAA2B,CAAC;AACvC,QAAA,SAAS,GAAG,sBAAsB,CAAC;AACnC,QAAA,QAAQ,GAAG,qBAAqB,CAAC;AAE9C,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC;;GAEpB,gBAAQ;;;;;;;;;;;;;;;GAeR,gBAAQ;;;;;;;;KAQN,gBAAQ;;;;;;;;;;;KAWR,gBAAQ;;;;;;KAMR,gBAAQ;;;;KAIR,gBAAQ;;;;;KAKR,gBAAQ;;;;;;;;KAQR,gBAAQ;;;;;;KAMR,gBAAQ;;;;;;;;;;;KAWR,gBAAQ;;;KAGR,gBAAQ;KACR,gBAAQ;;;;KAIR,gBAAQ;;;;;;SAMJ,CAAC;AAEH,MAAM,SAAS,GAAG,CAAC,SAAiB,EAAE,EAAE;IAC7C,OAAO;IACL,QAAQ,EAAE;;;;;wBAKU,SAAS;;;;0BAIP,gBAAQ;;;0BAGR,iBAAS;;;;;;CAMlC,CAAC;AACF,CAAC,CAAC;AArBW,QAAA,SAAS,aAqBpB"}