@depay/widgets 3.0.0 → 3.0.4
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/dist/cjs/index.bundle.js
CHANGED
|
@@ -49441,10 +49441,6 @@ function createInsideContainer({ document, shadow, style }) {
|
|
|
49441
49441
|
|
|
49442
49442
|
const outsideContainerClass = 'ReactShadowDOMOutsideContainer';
|
|
49443
49443
|
|
|
49444
|
-
function getOutsideContainer(element) {
|
|
49445
|
-
return element.getElementsByClassName(outsideContainerClass)[0]
|
|
49446
|
-
}
|
|
49447
|
-
|
|
49448
49444
|
function createOutsideContainer({ document, element, style }) {
|
|
49449
49445
|
const container = document.createElement('div');
|
|
49450
49446
|
container.setAttribute('class', outsideContainerClass);
|
|
@@ -49469,8 +49465,7 @@ function trimStyle(style) {
|
|
|
49469
49465
|
return style.replace(/\s*[\r\n]\s*/g, '')
|
|
49470
49466
|
}
|
|
49471
49467
|
|
|
49472
|
-
function unmount(
|
|
49473
|
-
const outsideContainer = getOutsideContainer(element);
|
|
49468
|
+
function unmount(outsideContainer) {
|
|
49474
49469
|
|
|
49475
49470
|
if (outsideContainer && outsideContainer.shadowRoot) {
|
|
49476
49471
|
const shadowRoot = outsideContainer.shadowRoot;
|
|
@@ -49487,8 +49482,6 @@ function unmount(element) {
|
|
|
49487
49482
|
}
|
|
49488
49483
|
|
|
49489
49484
|
function ReactShadowDOM({ document, element, content, outsideStyle = '', insideStyle = '' }) {
|
|
49490
|
-
unmount(element);
|
|
49491
|
-
|
|
49492
49485
|
const outsideContainer = createOutsideContainer({
|
|
49493
49486
|
document,
|
|
49494
49487
|
element,
|
|
@@ -49505,7 +49498,7 @@ function ReactShadowDOM({ document, element, content, outsideStyle = '', insideS
|
|
|
49505
49498
|
|
|
49506
49499
|
ReactDOM__default['default'].render(content, insideContainer);
|
|
49507
49500
|
|
|
49508
|
-
return { content, unmount: () => unmount(
|
|
49501
|
+
return { content, unmount: () => unmount(outsideContainer) }
|
|
49509
49502
|
}
|
|
49510
49503
|
|
|
49511
49504
|
var ReactShadowDOM_1 = ReactShadowDOM;
|
package/dist/es/index.bundle.js
CHANGED
|
@@ -49439,10 +49439,6 @@ function createInsideContainer({ document, shadow, style }) {
|
|
|
49439
49439
|
|
|
49440
49440
|
const outsideContainerClass = 'ReactShadowDOMOutsideContainer';
|
|
49441
49441
|
|
|
49442
|
-
function getOutsideContainer(element) {
|
|
49443
|
-
return element.getElementsByClassName(outsideContainerClass)[0]
|
|
49444
|
-
}
|
|
49445
|
-
|
|
49446
49442
|
function createOutsideContainer({ document, element, style }) {
|
|
49447
49443
|
const container = document.createElement('div');
|
|
49448
49444
|
container.setAttribute('class', outsideContainerClass);
|
|
@@ -49467,8 +49463,7 @@ function trimStyle(style) {
|
|
|
49467
49463
|
return style.replace(/\s*[\r\n]\s*/g, '')
|
|
49468
49464
|
}
|
|
49469
49465
|
|
|
49470
|
-
function unmount(
|
|
49471
|
-
const outsideContainer = getOutsideContainer(element);
|
|
49466
|
+
function unmount(outsideContainer) {
|
|
49472
49467
|
|
|
49473
49468
|
if (outsideContainer && outsideContainer.shadowRoot) {
|
|
49474
49469
|
const shadowRoot = outsideContainer.shadowRoot;
|
|
@@ -49485,8 +49480,6 @@ function unmount(element) {
|
|
|
49485
49480
|
}
|
|
49486
49481
|
|
|
49487
49482
|
function ReactShadowDOM({ document, element, content, outsideStyle = '', insideStyle = '' }) {
|
|
49488
|
-
unmount(element);
|
|
49489
|
-
|
|
49490
49483
|
const outsideContainer = createOutsideContainer({
|
|
49491
49484
|
document,
|
|
49492
49485
|
element,
|
|
@@ -49503,7 +49496,7 @@ function ReactShadowDOM({ document, element, content, outsideStyle = '', insideS
|
|
|
49503
49496
|
|
|
49504
49497
|
ReactDOM__default['default'].render(content, insideContainer);
|
|
49505
49498
|
|
|
49506
|
-
return { content, unmount: () => unmount(
|
|
49499
|
+
return { content, unmount: () => unmount(outsideContainer) }
|
|
49507
49500
|
}
|
|
49508
49501
|
|
|
49509
49502
|
var ReactShadowDOM_1 = ReactShadowDOM;
|
package/dist/umd/index.bundle.js
CHANGED
|
@@ -49445,10 +49445,6 @@
|
|
|
49445
49445
|
|
|
49446
49446
|
const outsideContainerClass = 'ReactShadowDOMOutsideContainer';
|
|
49447
49447
|
|
|
49448
|
-
function getOutsideContainer(element) {
|
|
49449
|
-
return element.getElementsByClassName(outsideContainerClass)[0]
|
|
49450
|
-
}
|
|
49451
|
-
|
|
49452
49448
|
function createOutsideContainer({ document, element, style }) {
|
|
49453
49449
|
const container = document.createElement('div');
|
|
49454
49450
|
container.setAttribute('class', outsideContainerClass);
|
|
@@ -49473,8 +49469,7 @@
|
|
|
49473
49469
|
return style.replace(/\s*[\r\n]\s*/g, '')
|
|
49474
49470
|
}
|
|
49475
49471
|
|
|
49476
|
-
function unmount(
|
|
49477
|
-
const outsideContainer = getOutsideContainer(element);
|
|
49472
|
+
function unmount(outsideContainer) {
|
|
49478
49473
|
|
|
49479
49474
|
if (outsideContainer && outsideContainer.shadowRoot) {
|
|
49480
49475
|
const shadowRoot = outsideContainer.shadowRoot;
|
|
@@ -49491,8 +49486,6 @@
|
|
|
49491
49486
|
}
|
|
49492
49487
|
|
|
49493
49488
|
function ReactShadowDOM({ document, element, content, outsideStyle = '', insideStyle = '' }) {
|
|
49494
|
-
unmount(element);
|
|
49495
|
-
|
|
49496
49489
|
const outsideContainer = createOutsideContainer({
|
|
49497
49490
|
document,
|
|
49498
49491
|
element,
|
|
@@ -49509,7 +49502,7 @@
|
|
|
49509
49502
|
|
|
49510
49503
|
ReactDOM__default['default'].render(content, insideContainer);
|
|
49511
49504
|
|
|
49512
|
-
return { content, unmount: () => unmount(
|
|
49505
|
+
return { content, unmount: () => unmount(outsideContainer) }
|
|
49513
49506
|
}
|
|
49514
49507
|
|
|
49515
49508
|
var ReactShadowDOM_1 = ReactShadowDOM;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/widgets",
|
|
3
3
|
"moduleName": "DePayWidgets",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.4",
|
|
5
5
|
"description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
7
7
|
"files": [
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@depay/walletconnect": "^1.0.2",
|
|
36
36
|
"depay-local-currency": "^1.1.0",
|
|
37
37
|
"depay-react-dialog-stack": "^2.1.0",
|
|
38
|
-
"depay-react-shadow-dom": "^2.0.
|
|
38
|
+
"depay-react-shadow-dom": "^2.0.4",
|
|
39
39
|
"depay-react-token-image": "^1.1.3",
|
|
40
40
|
"depay-web3-assets": "^2.2.0",
|
|
41
41
|
"depay-web3-blockchains": "^2.6.0",
|