@depay/widgets 6.25.0 → 6.27.0

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 CHANGED
@@ -563,6 +563,18 @@ DePayWidgets.Payment({
563
563
  })
564
564
  ```
565
565
 
566
+ #### container (DePay Payments)
567
+
568
+ `container`
569
+
570
+ Allows you to pass a container element that is supposed to contain the widget:
571
+
572
+ ```javascript
573
+ DePayWidgets.Payment({
574
+ container: document.getElementById('my-container')
575
+ })
576
+ ```
577
+
566
578
  #### style (DePay Payments)
567
579
 
568
580
  `style`
@@ -1369,6 +1381,18 @@ DePayWidgets.Donation({
1369
1381
  })
1370
1382
  ```
1371
1383
 
1384
+ #### container (DePay Donations)
1385
+
1386
+ `container`
1387
+
1388
+ Allows you to pass a container element that is supposed to contain the widget:
1389
+
1390
+ ```javascript
1391
+ DePayWidgets.Dontaion({
1392
+ container: document.getElementById('my-container')
1393
+ })
1394
+ ```
1395
+
1372
1396
  #### style (DePay Donations)
1373
1397
 
1374
1398
  `style`
@@ -49833,7 +49833,7 @@ var CardStyle = (function (style) {
49833
49833
  });
49834
49834
 
49835
49835
  var DialogStyle = (function (style) {
49836
- return "\n\n .ReactDialogBackground {\n backdrop-filter: blur(5px);\n background: rgba(0,0,0,0.7);\n }\n\n .Dialog {\n margin: 0 auto;\n position: relative;\n width: 420px;\n box-shadow: 0 0 20px rgba(0,0,0,0.1);\n border-radius: 0.8rem;\n background: rgb(248,248,248);\n }\n\n @media (max-width: 450px) {\n\n .Dialog {\n border-radius: 0;\n width: 100%;\n }\n }\n\n @media (orientation: portrait) and (max-width: 800px) {\n\n .ReactDialogAnimation {\n width: 100%;\n }\n\n .ReactDialog {\n height: 100%;\n min-height: 100%;\n }\n\n .ReactDialogStack {\n align-items: flex-end;\n }\n\n .Dialog {\n align-content: stretch;\n border-radius: 0.8rem;\n border-top-radius: 0.8rem;\n display: flex;\n flex-direction: column;\n }\n\n .DialogBody {\n flex: 1;\n align-items: flex-end;\n }\n\n .DialogFooter {\n padding-bottom: 20px;\n }\n\n .ReactDialogAnimation {\n margin-bottom: -100px !important;\n top: inherit !important;\n position: relative;\n transition: opacity 0.4s ease, margin-bottom 0.4s ease;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n margin-bottom: 0px !important;\n }\n\n .DialogFooter {\n border-bottom-left-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n }\n\n .ReactShadowDOMInsideContainer > .ReactDialog {\n align-items: flex-end;\n }\n }\n\n .DialogBody {\n background: rgb(248,248,248);\n overflow-x: hidden;\n overflow-y: auto;\n }\n\n .DialogBody.ScrollHeight {\n height: 30vh !important;\n max-height: 30vh !important;\n }\n\n .DialogHeader {\n background: rgb(248,248,248);\n border-top-left-radius: 0.8rem;\n border-top-right-radius: 0.8rem;\n min-height: 3.4rem;\n position: relative;\n width: 100%;\n }\n\n .DialogHeaderActionRight {\n position: absolute;\n top: 0;\n right: 0;\n height: 3rem;\n }\n\n .DialogHeaderActionLeft {\n position: absolute;\n top: 0;\n left: 0;\n height: 3rem;\n }\n\n .DialogFooter {\n background: rgb(248,248,248);\n border-bottom-left-radius: 0.8rem;\n border-bottom-right-radius: 0.8rem;\n line-height: 1.5rem;\n min-height: 2rem;\n position: relative;\n text-align: center;\n }\n\n ";
49836
+ return "\n\n .ReactDialogBackground {\n backdrop-filter: blur(5px);\n background: rgba(0,0,0,0.7);\n }\n\n .contained .ReactDialog {\n position: absolute;\n height: 100%;\n min-height: 100%;\n width: 100%;\n min-width: 100%;\n }\n\n .contained .ReactDialogBackground {\n position: absolute;\n }\n\n .Dialog {\n margin: 0 auto;\n position: relative;\n width: 420px;\n box-shadow: 0 0 20px rgba(0,0,0,0.1);\n border-radius: 0.8rem;\n background: rgb(248,248,248);\n }\n\n @media (max-width: 450px) {\n\n .Dialog {\n border-radius: 0;\n width: 100%;\n }\n }\n\n @media (orientation: portrait) and (max-width: 800px) {\n\n .ReactDialogAnimation {\n width: 100%;\n }\n\n .ReactDialog {\n height: 100%;\n min-height: 100%;\n }\n\n .ReactDialogStack {\n align-items: flex-end;\n }\n\n .Dialog {\n align-content: stretch;\n border-radius: 0.8rem;\n border-top-radius: 0.8rem;\n display: flex;\n flex-direction: column;\n }\n\n .DialogBody {\n flex: 1;\n align-items: flex-end;\n }\n\n .DialogFooter {\n padding-bottom: 20px;\n }\n\n .ReactDialogAnimation {\n margin-bottom: -100px !important;\n top: inherit !important;\n position: relative;\n transition: opacity 0.4s ease, margin-bottom 0.4s ease;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n margin-bottom: 0px !important;\n }\n\n .DialogFooter {\n border-bottom-left-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n }\n\n .ReactShadowDOMInsideContainer > .ReactDialog {\n align-items: flex-end;\n }\n }\n\n .DialogBody {\n background: rgb(248,248,248);\n overflow-x: hidden;\n overflow-y: auto;\n }\n\n .DialogBody.ScrollHeight {\n height: 30vh !important;\n max-height: 30vh !important;\n }\n\n .DialogHeader {\n background: rgb(248,248,248);\n border-top-left-radius: 0.8rem;\n border-top-right-radius: 0.8rem;\n min-height: 3.4rem;\n position: relative;\n width: 100%;\n }\n\n .DialogHeaderActionRight {\n position: absolute;\n top: 0;\n right: 0;\n height: 3rem;\n }\n\n .DialogHeaderActionLeft {\n position: absolute;\n top: 0;\n left: 0;\n height: 3rem;\n }\n\n .DialogFooter {\n background: rgb(248,248,248);\n border-bottom-left-radius: 0.8rem;\n border-bottom-right-radius: 0.8rem;\n line-height: 1.5rem;\n min-height: 2rem;\n position: relative;\n text-align: center;\n }\n\n ";
49837
49837
  });
49838
49838
 
49839
49839
  var FontStyle = (function (style) {
@@ -49939,9 +49939,9 @@ var styleRenderer = (function (style) {
49939
49939
 
49940
49940
  const insideContainerClass = 'ReactShadowDOMInsideContainer';
49941
49941
 
49942
- function createInsideContainer({ document, shadow, style }) {
49942
+ function createInsideContainer({ document, shadow, style, classes = [] }) {
49943
49943
  const container = document.createElement('div');
49944
- container.setAttribute('class', insideContainerClass);
49944
+ container.setAttribute('class', [insideContainerClass].concat(classes).join(' '));
49945
49945
  shadow.appendChild(container);
49946
49946
 
49947
49947
  if (style && style.length) {
@@ -49995,7 +49995,14 @@ function unmount(outsideContainer) {
49995
49995
  }
49996
49996
  }
49997
49997
 
49998
- function ReactShadowDOM({ document, element, content, outsideStyle = '', insideStyle = '' }) {
49998
+ function ReactShadowDOM({
49999
+ document,
50000
+ element,
50001
+ content,
50002
+ outsideStyle = '',
50003
+ insideStyle = '',
50004
+ insideClasses = [],
50005
+ }) {
49999
50006
  const outsideContainer = createOutsideContainer({
50000
50007
  document,
50001
50008
  element,
@@ -50004,7 +50011,12 @@ function ReactShadowDOM({ document, element, content, outsideStyle = '', insideS
50004
50011
 
50005
50012
  const shadow = createShadow(outsideContainer);
50006
50013
 
50007
- const insideContainer = createInsideContainer({ document, shadow, style: trimStyle(insideStyle) });
50014
+ const insideContainer = createInsideContainer({
50015
+ document,
50016
+ shadow,
50017
+ style: trimStyle(insideStyle),
50018
+ classes: insideClasses,
50019
+ });
50008
50020
 
50009
50021
  if (typeof content === 'function') {
50010
50022
  content = content(insideContainer);
@@ -50017,6 +50029,7 @@ function ReactShadowDOM({ document, element, content, outsideStyle = '', insideS
50017
50029
 
50018
50030
  var mount = (function (_ref, content) {
50019
50031
  var style = _ref.style,
50032
+ container = _ref.container,
50020
50033
  document = _ref.document,
50021
50034
  closed = _ref.closed;
50022
50035
  var insideStyle = styleRenderer(style);
@@ -50036,12 +50049,21 @@ var mount = (function (_ref, content) {
50036
50049
  }, 300);
50037
50050
  };
50038
50051
 
50052
+ var outsideStyle;
50053
+
50054
+ if (container) {
50055
+ outsideStyle = "\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 99999;\n ";
50056
+ } else {
50057
+ outsideStyle = "\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 99999;\n ";
50058
+ }
50059
+
50039
50060
  var _ReactShadowDOM = ReactShadowDOM({
50040
50061
  document: document,
50041
- element: document.body,
50062
+ element: container || document.body,
50042
50063
  content: content(unmountShadowDOM),
50064
+ outsideStyle: outsideStyle,
50043
50065
  insideStyle: insideStyle,
50044
- outsideStyle: "\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 99999;\n "
50066
+ insideClasses: ['contained']
50045
50067
  }),
50046
50068
  unmount = _ReactShadowDOM.unmount;
50047
50069
 
@@ -89168,12 +89190,12 @@ var preflight$2 = /*#__PURE__*/function () {
89168
89190
 
89169
89191
  var Donation = /*#__PURE__*/function () {
89170
89192
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(_ref3) {
89171
- var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, closable, integration, document, unmount;
89193
+ var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, closable, integration, container, document, unmount;
89172
89194
  return regenerator.wrap(function _callee2$(_context2) {
89173
89195
  while (1) {
89174
89196
  switch (_context2.prev = _context2.next) {
89175
89197
  case 0:
89176
- amount = _ref3.amount, accept = _ref3.accept, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, closable = _ref3.closable, integration = _ref3.integration, document = _ref3.document;
89198
+ amount = _ref3.amount, accept = _ref3.accept, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, closable = _ref3.closable, integration = _ref3.integration, container = _ref3.container, document = _ref3.document;
89177
89199
  requireReactVersion();
89178
89200
  _context2.prev = 2;
89179
89201
  _context2.next = 5;
@@ -89184,6 +89206,7 @@ var Donation = /*#__PURE__*/function () {
89184
89206
  case 5:
89185
89207
  unmount = mount({
89186
89208
  style: style,
89209
+ container: container,
89187
89210
  document: ensureDocument(document),
89188
89211
  closed: closed
89189
89212
  }, function (unmount) {
@@ -89674,12 +89697,12 @@ var preflight$1 = /*#__PURE__*/function () {
89674
89697
 
89675
89698
  var Payment = /*#__PURE__*/function () {
89676
89699
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(_ref3) {
89677
- var accept, amount, event, sent, confirmed, failed, error, critical, style, whitelist, blacklist, providers, currency, connected, closed, track, fee, recover, closable, integration, document, unmount;
89700
+ var accept, amount, event, sent, confirmed, failed, error, critical, style, whitelist, blacklist, providers, currency, connected, closed, track, fee, recover, closable, integration, container, document, unmount;
89678
89701
  return regenerator.wrap(function _callee2$(_context2) {
89679
89702
  while (1) {
89680
89703
  switch (_context2.prev = _context2.next) {
89681
89704
  case 0:
89682
- accept = _ref3.accept, amount = _ref3.amount, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, whitelist = _ref3.whitelist, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, track = _ref3.track, fee = _ref3.fee, recover = _ref3.recover, closable = _ref3.closable, integration = _ref3.integration, document = _ref3.document;
89705
+ accept = _ref3.accept, amount = _ref3.amount, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, whitelist = _ref3.whitelist, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, track = _ref3.track, fee = _ref3.fee, recover = _ref3.recover, closable = _ref3.closable, integration = _ref3.integration, container = _ref3.container, document = _ref3.document;
89683
89706
  requireReactVersion();
89684
89707
  _context2.prev = 2;
89685
89708
  _context2.next = 5;
@@ -89691,6 +89714,7 @@ var Payment = /*#__PURE__*/function () {
89691
89714
  case 5:
89692
89715
  unmount = mount({
89693
89716
  style: style,
89717
+ container: container,
89694
89718
  document: ensureDocument(document),
89695
89719
  closed: closed
89696
89720
  }, function (unmount) {
package/dist/esm/index.js CHANGED
@@ -1694,7 +1694,7 @@ var CardStyle = (function (style) {
1694
1694
  });
1695
1695
 
1696
1696
  var DialogStyle = (function (style) {
1697
- return "\n\n .ReactDialogBackground {\n backdrop-filter: blur(5px);\n background: rgba(0,0,0,0.7);\n }\n\n .Dialog {\n margin: 0 auto;\n position: relative;\n width: 420px;\n box-shadow: 0 0 20px rgba(0,0,0,0.1);\n border-radius: 0.8rem;\n background: rgb(248,248,248);\n }\n\n @media (max-width: 450px) {\n\n .Dialog {\n border-radius: 0;\n width: 100%;\n }\n }\n\n @media (orientation: portrait) and (max-width: 800px) {\n\n .ReactDialogAnimation {\n width: 100%;\n }\n\n .ReactDialog {\n height: 100%;\n min-height: 100%;\n }\n\n .ReactDialogStack {\n align-items: flex-end;\n }\n\n .Dialog {\n align-content: stretch;\n border-radius: 0.8rem;\n border-top-radius: 0.8rem;\n display: flex;\n flex-direction: column;\n }\n\n .DialogBody {\n flex: 1;\n align-items: flex-end;\n }\n\n .DialogFooter {\n padding-bottom: 20px;\n }\n\n .ReactDialogAnimation {\n margin-bottom: -100px !important;\n top: inherit !important;\n position: relative;\n transition: opacity 0.4s ease, margin-bottom 0.4s ease;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n margin-bottom: 0px !important;\n }\n\n .DialogFooter {\n border-bottom-left-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n }\n\n .ReactShadowDOMInsideContainer > .ReactDialog {\n align-items: flex-end;\n }\n }\n\n .DialogBody {\n background: rgb(248,248,248);\n overflow-x: hidden;\n overflow-y: auto;\n }\n\n .DialogBody.ScrollHeight {\n height: 30vh !important;\n max-height: 30vh !important;\n }\n\n .DialogHeader {\n background: rgb(248,248,248);\n border-top-left-radius: 0.8rem;\n border-top-right-radius: 0.8rem;\n min-height: 3.4rem;\n position: relative;\n width: 100%;\n }\n\n .DialogHeaderActionRight {\n position: absolute;\n top: 0;\n right: 0;\n height: 3rem;\n }\n\n .DialogHeaderActionLeft {\n position: absolute;\n top: 0;\n left: 0;\n height: 3rem;\n }\n\n .DialogFooter {\n background: rgb(248,248,248);\n border-bottom-left-radius: 0.8rem;\n border-bottom-right-radius: 0.8rem;\n line-height: 1.5rem;\n min-height: 2rem;\n position: relative;\n text-align: center;\n }\n\n ";
1697
+ return "\n\n .ReactDialogBackground {\n backdrop-filter: blur(5px);\n background: rgba(0,0,0,0.7);\n }\n\n .contained .ReactDialog {\n position: absolute;\n height: 100%;\n min-height: 100%;\n width: 100%;\n min-width: 100%;\n }\n\n .contained .ReactDialogBackground {\n position: absolute;\n }\n\n .Dialog {\n margin: 0 auto;\n position: relative;\n width: 420px;\n box-shadow: 0 0 20px rgba(0,0,0,0.1);\n border-radius: 0.8rem;\n background: rgb(248,248,248);\n }\n\n @media (max-width: 450px) {\n\n .Dialog {\n border-radius: 0;\n width: 100%;\n }\n }\n\n @media (orientation: portrait) and (max-width: 800px) {\n\n .ReactDialogAnimation {\n width: 100%;\n }\n\n .ReactDialog {\n height: 100%;\n min-height: 100%;\n }\n\n .ReactDialogStack {\n align-items: flex-end;\n }\n\n .Dialog {\n align-content: stretch;\n border-radius: 0.8rem;\n border-top-radius: 0.8rem;\n display: flex;\n flex-direction: column;\n }\n\n .DialogBody {\n flex: 1;\n align-items: flex-end;\n }\n\n .DialogFooter {\n padding-bottom: 20px;\n }\n\n .ReactDialogAnimation {\n margin-bottom: -100px !important;\n top: inherit !important;\n position: relative;\n transition: opacity 0.4s ease, margin-bottom 0.4s ease;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n margin-bottom: 0px !important;\n }\n\n .DialogFooter {\n border-bottom-left-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n }\n\n .ReactShadowDOMInsideContainer > .ReactDialog {\n align-items: flex-end;\n }\n }\n\n .DialogBody {\n background: rgb(248,248,248);\n overflow-x: hidden;\n overflow-y: auto;\n }\n\n .DialogBody.ScrollHeight {\n height: 30vh !important;\n max-height: 30vh !important;\n }\n\n .DialogHeader {\n background: rgb(248,248,248);\n border-top-left-radius: 0.8rem;\n border-top-right-radius: 0.8rem;\n min-height: 3.4rem;\n position: relative;\n width: 100%;\n }\n\n .DialogHeaderActionRight {\n position: absolute;\n top: 0;\n right: 0;\n height: 3rem;\n }\n\n .DialogHeaderActionLeft {\n position: absolute;\n top: 0;\n left: 0;\n height: 3rem;\n }\n\n .DialogFooter {\n background: rgb(248,248,248);\n border-bottom-left-radius: 0.8rem;\n border-bottom-right-radius: 0.8rem;\n line-height: 1.5rem;\n min-height: 2rem;\n position: relative;\n text-align: center;\n }\n\n ";
1698
1698
  });
1699
1699
 
1700
1700
  var FontStyle = (function (style) {
@@ -1800,6 +1800,7 @@ var styleRenderer = (function (style) {
1800
1800
 
1801
1801
  var mount = (function (_ref, content) {
1802
1802
  var style = _ref.style,
1803
+ container = _ref.container,
1803
1804
  document = _ref.document,
1804
1805
  closed = _ref.closed;
1805
1806
  var insideStyle = styleRenderer(style);
@@ -1819,12 +1820,21 @@ var mount = (function (_ref, content) {
1819
1820
  }, 300);
1820
1821
  };
1821
1822
 
1823
+ var outsideStyle;
1824
+
1825
+ if (container) {
1826
+ outsideStyle = "\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 99999;\n ";
1827
+ } else {
1828
+ outsideStyle = "\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 99999;\n ";
1829
+ }
1830
+
1822
1831
  var _ReactShadowDOM = ReactShadowDOM({
1823
1832
  document: document,
1824
- element: document.body,
1833
+ element: container || document.body,
1825
1834
  content: content(unmountShadowDOM),
1835
+ outsideStyle: outsideStyle,
1826
1836
  insideStyle: insideStyle,
1827
- outsideStyle: "\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 99999;\n "
1837
+ insideClasses: ['contained']
1828
1838
  }),
1829
1839
  unmount = _ReactShadowDOM.unmount;
1830
1840
 
@@ -4329,12 +4339,12 @@ var preflight$2 = /*#__PURE__*/function () {
4329
4339
 
4330
4340
  var Donation = /*#__PURE__*/function () {
4331
4341
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(_ref3) {
4332
- var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, closable, integration, document, unmount;
4342
+ var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, closable, integration, container, document, unmount;
4333
4343
  return regenerator.wrap(function _callee2$(_context2) {
4334
4344
  while (1) {
4335
4345
  switch (_context2.prev = _context2.next) {
4336
4346
  case 0:
4337
- amount = _ref3.amount, accept = _ref3.accept, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, closable = _ref3.closable, integration = _ref3.integration, document = _ref3.document;
4347
+ amount = _ref3.amount, accept = _ref3.accept, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, closable = _ref3.closable, integration = _ref3.integration, container = _ref3.container, document = _ref3.document;
4338
4348
  requireReactVersion();
4339
4349
  _context2.prev = 2;
4340
4350
  _context2.next = 5;
@@ -4345,6 +4355,7 @@ var Donation = /*#__PURE__*/function () {
4345
4355
  case 5:
4346
4356
  unmount = mount({
4347
4357
  style: style,
4358
+ container: container,
4348
4359
  document: ensureDocument(document),
4349
4360
  closed: closed
4350
4361
  }, function (unmount) {
@@ -4835,12 +4846,12 @@ var preflight$1 = /*#__PURE__*/function () {
4835
4846
 
4836
4847
  var Payment = /*#__PURE__*/function () {
4837
4848
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(_ref3) {
4838
- var accept, amount, event, sent, confirmed, failed, error, critical, style, whitelist, blacklist, providers, currency, connected, closed, track, fee, recover, closable, integration, document, unmount;
4849
+ var accept, amount, event, sent, confirmed, failed, error, critical, style, whitelist, blacklist, providers, currency, connected, closed, track, fee, recover, closable, integration, container, document, unmount;
4839
4850
  return regenerator.wrap(function _callee2$(_context2) {
4840
4851
  while (1) {
4841
4852
  switch (_context2.prev = _context2.next) {
4842
4853
  case 0:
4843
- accept = _ref3.accept, amount = _ref3.amount, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, whitelist = _ref3.whitelist, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, track = _ref3.track, fee = _ref3.fee, recover = _ref3.recover, closable = _ref3.closable, integration = _ref3.integration, document = _ref3.document;
4854
+ accept = _ref3.accept, amount = _ref3.amount, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, whitelist = _ref3.whitelist, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, track = _ref3.track, fee = _ref3.fee, recover = _ref3.recover, closable = _ref3.closable, integration = _ref3.integration, container = _ref3.container, document = _ref3.document;
4844
4855
  requireReactVersion();
4845
4856
  _context2.prev = 2;
4846
4857
  _context2.next = 5;
@@ -4852,6 +4863,7 @@ var Payment = /*#__PURE__*/function () {
4852
4863
  case 5:
4853
4864
  unmount = mount({
4854
4865
  style: style,
4866
+ container: container,
4855
4867
  document: ensureDocument(document),
4856
4868
  closed: closed
4857
4869
  }, function (unmount) {
@@ -49839,7 +49839,7 @@
49839
49839
  });
49840
49840
 
49841
49841
  var DialogStyle = (function (style) {
49842
- return "\n\n .ReactDialogBackground {\n backdrop-filter: blur(5px);\n background: rgba(0,0,0,0.7);\n }\n\n .Dialog {\n margin: 0 auto;\n position: relative;\n width: 420px;\n box-shadow: 0 0 20px rgba(0,0,0,0.1);\n border-radius: 0.8rem;\n background: rgb(248,248,248);\n }\n\n @media (max-width: 450px) {\n\n .Dialog {\n border-radius: 0;\n width: 100%;\n }\n }\n\n @media (orientation: portrait) and (max-width: 800px) {\n\n .ReactDialogAnimation {\n width: 100%;\n }\n\n .ReactDialog {\n height: 100%;\n min-height: 100%;\n }\n\n .ReactDialogStack {\n align-items: flex-end;\n }\n\n .Dialog {\n align-content: stretch;\n border-radius: 0.8rem;\n border-top-radius: 0.8rem;\n display: flex;\n flex-direction: column;\n }\n\n .DialogBody {\n flex: 1;\n align-items: flex-end;\n }\n\n .DialogFooter {\n padding-bottom: 20px;\n }\n\n .ReactDialogAnimation {\n margin-bottom: -100px !important;\n top: inherit !important;\n position: relative;\n transition: opacity 0.4s ease, margin-bottom 0.4s ease;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n margin-bottom: 0px !important;\n }\n\n .DialogFooter {\n border-bottom-left-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n }\n\n .ReactShadowDOMInsideContainer > .ReactDialog {\n align-items: flex-end;\n }\n }\n\n .DialogBody {\n background: rgb(248,248,248);\n overflow-x: hidden;\n overflow-y: auto;\n }\n\n .DialogBody.ScrollHeight {\n height: 30vh !important;\n max-height: 30vh !important;\n }\n\n .DialogHeader {\n background: rgb(248,248,248);\n border-top-left-radius: 0.8rem;\n border-top-right-radius: 0.8rem;\n min-height: 3.4rem;\n position: relative;\n width: 100%;\n }\n\n .DialogHeaderActionRight {\n position: absolute;\n top: 0;\n right: 0;\n height: 3rem;\n }\n\n .DialogHeaderActionLeft {\n position: absolute;\n top: 0;\n left: 0;\n height: 3rem;\n }\n\n .DialogFooter {\n background: rgb(248,248,248);\n border-bottom-left-radius: 0.8rem;\n border-bottom-right-radius: 0.8rem;\n line-height: 1.5rem;\n min-height: 2rem;\n position: relative;\n text-align: center;\n }\n\n ";
49842
+ return "\n\n .ReactDialogBackground {\n backdrop-filter: blur(5px);\n background: rgba(0,0,0,0.7);\n }\n\n .contained .ReactDialog {\n position: absolute;\n height: 100%;\n min-height: 100%;\n width: 100%;\n min-width: 100%;\n }\n\n .contained .ReactDialogBackground {\n position: absolute;\n }\n\n .Dialog {\n margin: 0 auto;\n position: relative;\n width: 420px;\n box-shadow: 0 0 20px rgba(0,0,0,0.1);\n border-radius: 0.8rem;\n background: rgb(248,248,248);\n }\n\n @media (max-width: 450px) {\n\n .Dialog {\n border-radius: 0;\n width: 100%;\n }\n }\n\n @media (orientation: portrait) and (max-width: 800px) {\n\n .ReactDialogAnimation {\n width: 100%;\n }\n\n .ReactDialog {\n height: 100%;\n min-height: 100%;\n }\n\n .ReactDialogStack {\n align-items: flex-end;\n }\n\n .Dialog {\n align-content: stretch;\n border-radius: 0.8rem;\n border-top-radius: 0.8rem;\n display: flex;\n flex-direction: column;\n }\n\n .DialogBody {\n flex: 1;\n align-items: flex-end;\n }\n\n .DialogFooter {\n padding-bottom: 20px;\n }\n\n .ReactDialogAnimation {\n margin-bottom: -100px !important;\n top: inherit !important;\n position: relative;\n transition: opacity 0.4s ease, margin-bottom 0.4s ease;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n margin-bottom: 0px !important;\n }\n\n .DialogFooter {\n border-bottom-left-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n }\n\n .ReactShadowDOMInsideContainer > .ReactDialog {\n align-items: flex-end;\n }\n }\n\n .DialogBody {\n background: rgb(248,248,248);\n overflow-x: hidden;\n overflow-y: auto;\n }\n\n .DialogBody.ScrollHeight {\n height: 30vh !important;\n max-height: 30vh !important;\n }\n\n .DialogHeader {\n background: rgb(248,248,248);\n border-top-left-radius: 0.8rem;\n border-top-right-radius: 0.8rem;\n min-height: 3.4rem;\n position: relative;\n width: 100%;\n }\n\n .DialogHeaderActionRight {\n position: absolute;\n top: 0;\n right: 0;\n height: 3rem;\n }\n\n .DialogHeaderActionLeft {\n position: absolute;\n top: 0;\n left: 0;\n height: 3rem;\n }\n\n .DialogFooter {\n background: rgb(248,248,248);\n border-bottom-left-radius: 0.8rem;\n border-bottom-right-radius: 0.8rem;\n line-height: 1.5rem;\n min-height: 2rem;\n position: relative;\n text-align: center;\n }\n\n ";
49843
49843
  });
49844
49844
 
49845
49845
  var FontStyle = (function (style) {
@@ -49945,9 +49945,9 @@
49945
49945
 
49946
49946
  const insideContainerClass = 'ReactShadowDOMInsideContainer';
49947
49947
 
49948
- function createInsideContainer({ document, shadow, style }) {
49948
+ function createInsideContainer({ document, shadow, style, classes = [] }) {
49949
49949
  const container = document.createElement('div');
49950
- container.setAttribute('class', insideContainerClass);
49950
+ container.setAttribute('class', [insideContainerClass].concat(classes).join(' '));
49951
49951
  shadow.appendChild(container);
49952
49952
 
49953
49953
  if (style && style.length) {
@@ -50001,7 +50001,14 @@
50001
50001
  }
50002
50002
  }
50003
50003
 
50004
- function ReactShadowDOM({ document, element, content, outsideStyle = '', insideStyle = '' }) {
50004
+ function ReactShadowDOM({
50005
+ document,
50006
+ element,
50007
+ content,
50008
+ outsideStyle = '',
50009
+ insideStyle = '',
50010
+ insideClasses = [],
50011
+ }) {
50005
50012
  const outsideContainer = createOutsideContainer({
50006
50013
  document,
50007
50014
  element,
@@ -50010,7 +50017,12 @@
50010
50017
 
50011
50018
  const shadow = createShadow(outsideContainer);
50012
50019
 
50013
- const insideContainer = createInsideContainer({ document, shadow, style: trimStyle(insideStyle) });
50020
+ const insideContainer = createInsideContainer({
50021
+ document,
50022
+ shadow,
50023
+ style: trimStyle(insideStyle),
50024
+ classes: insideClasses,
50025
+ });
50014
50026
 
50015
50027
  if (typeof content === 'function') {
50016
50028
  content = content(insideContainer);
@@ -50023,6 +50035,7 @@
50023
50035
 
50024
50036
  var mount = (function (_ref, content) {
50025
50037
  var style = _ref.style,
50038
+ container = _ref.container,
50026
50039
  document = _ref.document,
50027
50040
  closed = _ref.closed;
50028
50041
  var insideStyle = styleRenderer(style);
@@ -50042,12 +50055,21 @@
50042
50055
  }, 300);
50043
50056
  };
50044
50057
 
50058
+ var outsideStyle;
50059
+
50060
+ if (container) {
50061
+ outsideStyle = "\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 99999;\n ";
50062
+ } else {
50063
+ outsideStyle = "\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 99999;\n ";
50064
+ }
50065
+
50045
50066
  var _ReactShadowDOM = ReactShadowDOM({
50046
50067
  document: document,
50047
- element: document.body,
50068
+ element: container || document.body,
50048
50069
  content: content(unmountShadowDOM),
50070
+ outsideStyle: outsideStyle,
50049
50071
  insideStyle: insideStyle,
50050
- outsideStyle: "\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 99999;\n "
50072
+ insideClasses: ['contained']
50051
50073
  }),
50052
50074
  unmount = _ReactShadowDOM.unmount;
50053
50075
 
@@ -89174,12 +89196,12 @@
89174
89196
 
89175
89197
  var Donation = /*#__PURE__*/function () {
89176
89198
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(_ref3) {
89177
- var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, closable, integration, document, unmount;
89199
+ var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, closable, integration, container, document, unmount;
89178
89200
  return regenerator.wrap(function _callee2$(_context2) {
89179
89201
  while (1) {
89180
89202
  switch (_context2.prev = _context2.next) {
89181
89203
  case 0:
89182
- amount = _ref3.amount, accept = _ref3.accept, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, closable = _ref3.closable, integration = _ref3.integration, document = _ref3.document;
89204
+ amount = _ref3.amount, accept = _ref3.accept, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, closable = _ref3.closable, integration = _ref3.integration, container = _ref3.container, document = _ref3.document;
89183
89205
  requireReactVersion();
89184
89206
  _context2.prev = 2;
89185
89207
  _context2.next = 5;
@@ -89190,6 +89212,7 @@
89190
89212
  case 5:
89191
89213
  unmount = mount({
89192
89214
  style: style,
89215
+ container: container,
89193
89216
  document: ensureDocument(document),
89194
89217
  closed: closed
89195
89218
  }, function (unmount) {
@@ -89680,12 +89703,12 @@
89680
89703
 
89681
89704
  var Payment = /*#__PURE__*/function () {
89682
89705
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(_ref3) {
89683
- var accept, amount, event, sent, confirmed, failed, error, critical, style, whitelist, blacklist, providers, currency, connected, closed, track, fee, recover, closable, integration, document, unmount;
89706
+ var accept, amount, event, sent, confirmed, failed, error, critical, style, whitelist, blacklist, providers, currency, connected, closed, track, fee, recover, closable, integration, container, document, unmount;
89684
89707
  return regenerator.wrap(function _callee2$(_context2) {
89685
89708
  while (1) {
89686
89709
  switch (_context2.prev = _context2.next) {
89687
89710
  case 0:
89688
- accept = _ref3.accept, amount = _ref3.amount, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, whitelist = _ref3.whitelist, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, track = _ref3.track, fee = _ref3.fee, recover = _ref3.recover, closable = _ref3.closable, integration = _ref3.integration, document = _ref3.document;
89711
+ accept = _ref3.accept, amount = _ref3.amount, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, whitelist = _ref3.whitelist, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, track = _ref3.track, fee = _ref3.fee, recover = _ref3.recover, closable = _ref3.closable, integration = _ref3.integration, container = _ref3.container, document = _ref3.document;
89689
89712
  requireReactVersion();
89690
89713
  _context2.prev = 2;
89691
89714
  _context2.next = 5;
@@ -89697,6 +89720,7 @@
89697
89720
  case 5:
89698
89721
  unmount = mount({
89699
89722
  style: style,
89723
+ container: container,
89700
89724
  document: ensureDocument(document),
89701
89725
  closed: closed
89702
89726
  }, function (unmount) {
package/dist/umd/index.js CHANGED
@@ -1689,7 +1689,7 @@
1689
1689
  });
1690
1690
 
1691
1691
  var DialogStyle = (function (style) {
1692
- return "\n\n .ReactDialogBackground {\n backdrop-filter: blur(5px);\n background: rgba(0,0,0,0.7);\n }\n\n .Dialog {\n margin: 0 auto;\n position: relative;\n width: 420px;\n box-shadow: 0 0 20px rgba(0,0,0,0.1);\n border-radius: 0.8rem;\n background: rgb(248,248,248);\n }\n\n @media (max-width: 450px) {\n\n .Dialog {\n border-radius: 0;\n width: 100%;\n }\n }\n\n @media (orientation: portrait) and (max-width: 800px) {\n\n .ReactDialogAnimation {\n width: 100%;\n }\n\n .ReactDialog {\n height: 100%;\n min-height: 100%;\n }\n\n .ReactDialogStack {\n align-items: flex-end;\n }\n\n .Dialog {\n align-content: stretch;\n border-radius: 0.8rem;\n border-top-radius: 0.8rem;\n display: flex;\n flex-direction: column;\n }\n\n .DialogBody {\n flex: 1;\n align-items: flex-end;\n }\n\n .DialogFooter {\n padding-bottom: 20px;\n }\n\n .ReactDialogAnimation {\n margin-bottom: -100px !important;\n top: inherit !important;\n position: relative;\n transition: opacity 0.4s ease, margin-bottom 0.4s ease;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n margin-bottom: 0px !important;\n }\n\n .DialogFooter {\n border-bottom-left-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n }\n\n .ReactShadowDOMInsideContainer > .ReactDialog {\n align-items: flex-end;\n }\n }\n\n .DialogBody {\n background: rgb(248,248,248);\n overflow-x: hidden;\n overflow-y: auto;\n }\n\n .DialogBody.ScrollHeight {\n height: 30vh !important;\n max-height: 30vh !important;\n }\n\n .DialogHeader {\n background: rgb(248,248,248);\n border-top-left-radius: 0.8rem;\n border-top-right-radius: 0.8rem;\n min-height: 3.4rem;\n position: relative;\n width: 100%;\n }\n\n .DialogHeaderActionRight {\n position: absolute;\n top: 0;\n right: 0;\n height: 3rem;\n }\n\n .DialogHeaderActionLeft {\n position: absolute;\n top: 0;\n left: 0;\n height: 3rem;\n }\n\n .DialogFooter {\n background: rgb(248,248,248);\n border-bottom-left-radius: 0.8rem;\n border-bottom-right-radius: 0.8rem;\n line-height: 1.5rem;\n min-height: 2rem;\n position: relative;\n text-align: center;\n }\n\n ";
1692
+ return "\n\n .ReactDialogBackground {\n backdrop-filter: blur(5px);\n background: rgba(0,0,0,0.7);\n }\n\n .contained .ReactDialog {\n position: absolute;\n height: 100%;\n min-height: 100%;\n width: 100%;\n min-width: 100%;\n }\n\n .contained .ReactDialogBackground {\n position: absolute;\n }\n\n .Dialog {\n margin: 0 auto;\n position: relative;\n width: 420px;\n box-shadow: 0 0 20px rgba(0,0,0,0.1);\n border-radius: 0.8rem;\n background: rgb(248,248,248);\n }\n\n @media (max-width: 450px) {\n\n .Dialog {\n border-radius: 0;\n width: 100%;\n }\n }\n\n @media (orientation: portrait) and (max-width: 800px) {\n\n .ReactDialogAnimation {\n width: 100%;\n }\n\n .ReactDialog {\n height: 100%;\n min-height: 100%;\n }\n\n .ReactDialogStack {\n align-items: flex-end;\n }\n\n .Dialog {\n align-content: stretch;\n border-radius: 0.8rem;\n border-top-radius: 0.8rem;\n display: flex;\n flex-direction: column;\n }\n\n .DialogBody {\n flex: 1;\n align-items: flex-end;\n }\n\n .DialogFooter {\n padding-bottom: 20px;\n }\n\n .ReactDialogAnimation {\n margin-bottom: -100px !important;\n top: inherit !important;\n position: relative;\n transition: opacity 0.4s ease, margin-bottom 0.4s ease;\n }\n\n .ReactDialog.ReactDialogOpen .ReactDialogAnimation {\n margin-bottom: 0px !important;\n }\n\n .DialogFooter {\n border-bottom-left-radius: 0 !important;\n border-bottom-right-radius: 0 !important;\n }\n\n .ReactShadowDOMInsideContainer > .ReactDialog {\n align-items: flex-end;\n }\n }\n\n .DialogBody {\n background: rgb(248,248,248);\n overflow-x: hidden;\n overflow-y: auto;\n }\n\n .DialogBody.ScrollHeight {\n height: 30vh !important;\n max-height: 30vh !important;\n }\n\n .DialogHeader {\n background: rgb(248,248,248);\n border-top-left-radius: 0.8rem;\n border-top-right-radius: 0.8rem;\n min-height: 3.4rem;\n position: relative;\n width: 100%;\n }\n\n .DialogHeaderActionRight {\n position: absolute;\n top: 0;\n right: 0;\n height: 3rem;\n }\n\n .DialogHeaderActionLeft {\n position: absolute;\n top: 0;\n left: 0;\n height: 3rem;\n }\n\n .DialogFooter {\n background: rgb(248,248,248);\n border-bottom-left-radius: 0.8rem;\n border-bottom-right-radius: 0.8rem;\n line-height: 1.5rem;\n min-height: 2rem;\n position: relative;\n text-align: center;\n }\n\n ";
1693
1693
  });
1694
1694
 
1695
1695
  var FontStyle = (function (style) {
@@ -1795,6 +1795,7 @@
1795
1795
 
1796
1796
  var mount = (function (_ref, content) {
1797
1797
  var style = _ref.style,
1798
+ container = _ref.container,
1798
1799
  document = _ref.document,
1799
1800
  closed = _ref.closed;
1800
1801
  var insideStyle = styleRenderer(style);
@@ -1814,12 +1815,21 @@
1814
1815
  }, 300);
1815
1816
  };
1816
1817
 
1818
+ var outsideStyle;
1819
+
1820
+ if (container) {
1821
+ outsideStyle = "\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 99999;\n ";
1822
+ } else {
1823
+ outsideStyle = "\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 99999;\n ";
1824
+ }
1825
+
1817
1826
  var _ReactShadowDOM = reactShadowDom.ReactShadowDOM({
1818
1827
  document: document,
1819
- element: document.body,
1828
+ element: container || document.body,
1820
1829
  content: content(unmountShadowDOM),
1830
+ outsideStyle: outsideStyle,
1821
1831
  insideStyle: insideStyle,
1822
- outsideStyle: "\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 99999;\n "
1832
+ insideClasses: ['contained']
1823
1833
  }),
1824
1834
  unmount = _ReactShadowDOM.unmount;
1825
1835
 
@@ -4324,12 +4334,12 @@
4324
4334
 
4325
4335
  var Donation = /*#__PURE__*/function () {
4326
4336
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(_ref3) {
4327
- var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, closable, integration, document, unmount;
4337
+ var amount, accept, event, sent, confirmed, failed, error, critical, style, blacklist, providers, currency, connected, closed, closable, integration, container, document, unmount;
4328
4338
  return regenerator.wrap(function _callee2$(_context2) {
4329
4339
  while (1) {
4330
4340
  switch (_context2.prev = _context2.next) {
4331
4341
  case 0:
4332
- amount = _ref3.amount, accept = _ref3.accept, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, closable = _ref3.closable, integration = _ref3.integration, document = _ref3.document;
4342
+ amount = _ref3.amount, accept = _ref3.accept, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, closable = _ref3.closable, integration = _ref3.integration, container = _ref3.container, document = _ref3.document;
4333
4343
  requireReactVersion();
4334
4344
  _context2.prev = 2;
4335
4345
  _context2.next = 5;
@@ -4340,6 +4350,7 @@
4340
4350
  case 5:
4341
4351
  unmount = mount({
4342
4352
  style: style,
4353
+ container: container,
4343
4354
  document: ensureDocument(document),
4344
4355
  closed: closed
4345
4356
  }, function (unmount) {
@@ -4830,12 +4841,12 @@
4830
4841
 
4831
4842
  var Payment = /*#__PURE__*/function () {
4832
4843
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(_ref3) {
4833
- var accept, amount, event, sent, confirmed, failed, error, critical, style, whitelist, blacklist, providers, currency, connected, closed, track, fee, recover, closable, integration, document, unmount;
4844
+ var accept, amount, event, sent, confirmed, failed, error, critical, style, whitelist, blacklist, providers, currency, connected, closed, track, fee, recover, closable, integration, container, document, unmount;
4834
4845
  return regenerator.wrap(function _callee2$(_context2) {
4835
4846
  while (1) {
4836
4847
  switch (_context2.prev = _context2.next) {
4837
4848
  case 0:
4838
- accept = _ref3.accept, amount = _ref3.amount, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, whitelist = _ref3.whitelist, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, track = _ref3.track, fee = _ref3.fee, recover = _ref3.recover, closable = _ref3.closable, integration = _ref3.integration, document = _ref3.document;
4849
+ accept = _ref3.accept, amount = _ref3.amount, event = _ref3.event, sent = _ref3.sent, confirmed = _ref3.confirmed, failed = _ref3.failed, error = _ref3.error, critical = _ref3.critical, style = _ref3.style, whitelist = _ref3.whitelist, blacklist = _ref3.blacklist, providers = _ref3.providers, currency = _ref3.currency, connected = _ref3.connected, closed = _ref3.closed, track = _ref3.track, fee = _ref3.fee, recover = _ref3.recover, closable = _ref3.closable, integration = _ref3.integration, container = _ref3.container, document = _ref3.document;
4839
4850
  requireReactVersion();
4840
4851
  _context2.prev = 2;
4841
4852
  _context2.next = 5;
@@ -4847,6 +4858,7 @@
4847
4858
  case 5:
4848
4859
  unmount = mount({
4849
4860
  style: style,
4861
+ container: container,
4850
4862
  document: ensureDocument(document),
4851
4863
  closed: closed
4852
4864
  }, function (unmount) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/widgets",
3
3
  "moduleName": "DePayWidgets",
4
- "version": "6.25.0",
4
+ "version": "6.27.0",
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/umd/index.js",
7
7
  "module": "./dist/esm/index.js",
@@ -36,7 +36,7 @@
36
36
  "@depay/coinbase-wallet-sdk": "^1.0.5",
37
37
  "@depay/local-currency": "^3.2.2",
38
38
  "@depay/react-dialog-stack": "^5.0.1",
39
- "@depay/react-shadow-dom": "^4.0.0",
39
+ "@depay/react-shadow-dom": "^4.2.0",
40
40
  "@depay/react-token-image": "^3.0.0",
41
41
  "@depay/walletconnect-v1": "^1.1.0",
42
42
  "@depay/web3-assets": "^6.2.1",