@multiversx/sdk-web-wallet-cross-window-provider 0.1.1 → 0.1.3
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.
|
@@ -7,11 +7,12 @@ 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 crossWindowProviderConstants_1 = require("@multiversx/sdk-dapp-utils/out/constants/crossWindowProviderConstants");
|
|
10
11
|
const lit_1 = require("lit");
|
|
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
|
-
|
|
15
|
+
class PopupConsent extends lit_1.LitElement {
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments);
|
|
17
18
|
this.id = exports.confirmationDialogTag;
|
|
@@ -97,7 +98,7 @@ let PopupConsent = class PopupConsent extends lit_1.LitElement {
|
|
|
97
98
|
super.disconnectedCallback();
|
|
98
99
|
this.toggleEvents('removeEventListener');
|
|
99
100
|
}
|
|
100
|
-
}
|
|
101
|
+
}
|
|
101
102
|
__decorate([
|
|
102
103
|
(0, decorators_js_1.property)({ type: String })
|
|
103
104
|
], PopupConsent.prototype, "id", void 0);
|
|
@@ -113,8 +114,9 @@ __decorate([
|
|
|
113
114
|
__decorate([
|
|
114
115
|
(0, decorators_js_1.property)({ type: Function })
|
|
115
116
|
], PopupConsent.prototype, "getTemplate", void 0);
|
|
116
|
-
PopupConsent = __decorate([
|
|
117
|
-
(0, decorators_js_1.customElement)(exports.confirmationDialogTag)
|
|
118
|
-
], PopupConsent);
|
|
119
117
|
exports.PopupConsent = PopupConsent;
|
|
118
|
+
const customElements = crossWindowProviderConstants_1.safeWindow === null || crossWindowProviderConstants_1.safeWindow === void 0 ? void 0 : crossWindowProviderConstants_1.safeWindow.customElements;
|
|
119
|
+
if (customElements && !customElements.get(exports.confirmationDialogTag)) {
|
|
120
|
+
customElements.define(exports.confirmationDialogTag, PopupConsent);
|
|
121
|
+
}
|
|
120
122
|
//# sourceMappingURL=PopupConsent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PopupConsent.js","sourceRoot":"","sources":["../../../src/CrossWindowProvider/PopupConsent/PopupConsent.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6BAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"PopupConsent.js","sourceRoot":"","sources":["../../../src/CrossWindowProvider/PopupConsent/PopupConsent.ts"],"names":[],"mappings":";;;;;;;;;AAAA,wHAAmG;AACnG,6BAAuC;AACvC,qDAA6C;AAC7C,2CAAwC;AAE3B,QAAA,qBAAqB,GAAG,2BAA2B,CAAC;AAEjE,MAAa,YAAa,SAAQ,gBAAU;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,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC1B,CAAC,CAAC;QAEF,WAAM,GAAG;YACP,OAAO,EAAE,GAAG,IAAI,CAAC,EAAE,UAAU;YAC7B,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE,SAAS;YAC3B,OAAO,EAAE,GAAG,IAAI,CAAC,EAAE,UAAU;SAC9B,CAAC;QAMF,mBAAc,GAAG,CAAC,IAAY,EAAE,EAAE;YAChC,MAAM,KAAK,GAAG,IAAI,WAAW,CAAC,IAAI,EAAE;gBAClC,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,IAAI,CAAC,mDAAmD;aACnE,CAAC,CAAC;YACH,IAAI,CAAC,aAAa,CAAC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