@multiversx/sdk-web-wallet-cross-window-provider 0.0.34 → 0.0.36
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
1
|
+
import { LitElement } from 'lit-element/lit-element.js';
|
|
2
2
|
export declare const confirmationDialogTag = "mxcwp-confirmation-dialog";
|
|
3
3
|
export declare class PopupConsent extends LitElement {
|
|
4
4
|
id: string;
|
|
@@ -14,8 +14,8 @@ export declare class PopupConsent extends LitElement {
|
|
|
14
14
|
dispatchAction: (type: string) => void;
|
|
15
15
|
handleConfirmEvent({ type }: CustomEvent): void;
|
|
16
16
|
createRenderRoot(): this;
|
|
17
|
-
getTemplate: () => import("lit-html").TemplateResult<1>;
|
|
18
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
17
|
+
getTemplate: () => import("lit-html/lit-html.js").TemplateResult<1>;
|
|
18
|
+
render(): import("lit-html/lit-html.js").TemplateResult<1>;
|
|
19
19
|
toggleEvents(action: 'removeEventListener' | 'addEventListener'): void;
|
|
20
20
|
connectedCallback(): void;
|
|
21
21
|
disconnectedCallback(): void;
|
|
@@ -7,17 +7,22 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.PopupConsent = exports.confirmationDialogTag = void 0;
|
|
10
|
-
const
|
|
10
|
+
const lit_element_js_1 = require("lit-element/lit-element.js");
|
|
11
|
+
const lit_html_js_1 = require("lit-html/lit-html.js");
|
|
11
12
|
const decorators_js_1 = require("lit/decorators.js");
|
|
12
13
|
const getStyles_1 = require("./getStyles");
|
|
13
14
|
exports.confirmationDialogTag = 'mxcwp-confirmation-dialog';
|
|
14
|
-
let PopupConsent = class PopupConsent extends
|
|
15
|
+
let PopupConsent = class PopupConsent extends lit_element_js_1.LitElement {
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments);
|
|
17
18
|
this.id = exports.confirmationDialogTag;
|
|
18
19
|
this.walletUrl = '';
|
|
19
|
-
this.onConfirm = () => {
|
|
20
|
-
|
|
20
|
+
this.onConfirm = () => {
|
|
21
|
+
console.log('onConfirm');
|
|
22
|
+
};
|
|
23
|
+
this.onCancel = () => {
|
|
24
|
+
console.log('onCancel');
|
|
25
|
+
};
|
|
21
26
|
this.events = {
|
|
22
27
|
confirm: `${this.id}-confirm`,
|
|
23
28
|
cancel: `${this.id}-cancel`,
|
|
@@ -30,7 +35,7 @@ let PopupConsent = class PopupConsent extends lit_1.LitElement {
|
|
|
30
35
|
});
|
|
31
36
|
this.dispatchEvent(event);
|
|
32
37
|
};
|
|
33
|
-
this.getTemplate = () => (0,
|
|
38
|
+
this.getTemplate = () => (0, lit_html_js_1.html) `<style>
|
|
34
39
|
${(0, getStyles_1.getStyles)(this.id)}
|
|
35
40
|
</style>
|
|
36
41
|
<div id="${this.id}">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopupConsent.js","sourceRoot":"","sources":["../../../src/CrossWindowProvider/PopupConsent/PopupConsent.ts"],"names":[],"mappings":";;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"PopupConsent.js","sourceRoot":"","sources":["../../../src/CrossWindowProvider/PopupConsent/PopupConsent.ts"],"names":[],"mappings":";;;;;;;;;AAAA,+DAAwD;AACxD,sDAA4C;AAC5C,qDAA4D;AAC5D,2CAAwC;AAE3B,QAAA,qBAAqB,GAAG,2BAA2B,CAAC;AAGjE,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,2BAAU;IAA5C;;QAEE,OAAE,GAAG,6BAAqB,CAAC;QAG3B,cAAS,GAAG,EAAE,CAAC;QAGf,cAAS,GAAG,GAAG,EAAE;YACf,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAC3B,CAAC,CAAC;QAGF,aAAQ,GAAG,GAAG,EAAE;YACd,OAAO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Y,CAsGxB;AAtGY,oCAAY"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiversx/sdk-web-wallet-cross-window-provider",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"description": "Signing provider for dApps: Cross Window",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.js",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"esmify": "2.1.1",
|
|
35
35
|
"jest": "29.6.2",
|
|
36
36
|
"jest-environment-jsdom": "28.1.3",
|
|
37
|
-
"lit": "3.1.2",
|
|
38
37
|
"prettier": "3.1.0",
|
|
39
38
|
"ts-jest": "29.1.1",
|
|
40
39
|
"typescript": "5.0.4"
|
|
41
40
|
},
|
|
42
41
|
"peerDependencies": {
|
|
43
|
-
"@multiversx/sdk-core": ">= 12.18.0"
|
|
42
|
+
"@multiversx/sdk-core": ">= 12.18.0",
|
|
43
|
+
"lit": ">=3.1.2"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@types/jest": "^29.5.11",
|