stripe-pwa-elements 2.1.0 → 3.0.0-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/dist/cjs/{index-aec82bce.js → index-0cec7387.js} +616 -261
- package/dist/cjs/index-0cec7387.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/ion-icon.cjs.entry.js +68 -43
- package/dist/cjs/ion-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +6 -3
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/stripe-elements.cjs.js +12 -3
- package/dist/cjs/stripe-elements.cjs.js.map +1 -0
- package/dist/cjs/stripe-payment-request-button.cjs.entry.js +26 -20
- package/dist/cjs/stripe-payment-request-button.cjs.entry.js.map +1 -0
- package/dist/cjs/stripe-payment-sheet.cjs.entry.js +11 -27
- package/dist/cjs/stripe-payment-sheet.cjs.entry.js.map +1 -0
- package/dist/cjs/stripe-payment_2.cjs.entry.js +753 -729
- package/dist/cjs/stripe-payment_2.cjs.entry.js.map +1 -0
- package/dist/cjs/{stripe.esm-648239f0.js → stripe.esm-603f3c17.js} +4 -2
- package/dist/cjs/stripe.esm-603f3c17.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/stripe-element-modal/stripe-element-modal.js +115 -116
- package/dist/collection/components/stripe-element-modal/stripe-element-modal.js.map +1 -0
- package/dist/collection/components/stripe-element-modal/test/stripe-element-modal.e2e.js +10 -0
- package/dist/collection/components/stripe-element-modal/test/stripe-element-modal.e2e.js.map +1 -0
- package/dist/collection/components/stripe-element-modal/test/stripe-element-modal.spec.js +120 -0
- package/dist/collection/components/stripe-element-modal/test/stripe-element-modal.spec.js.map +1 -0
- package/dist/collection/components/stripe-payment-request-button/stripe-payment-request-button.js +342 -328
- package/dist/collection/components/stripe-payment-request-button/stripe-payment-request-button.js.map +1 -0
- package/dist/collection/components/stripe-payment-request-button/test/stripe-payment-request-button.e2e.js +10 -0
- package/dist/collection/components/stripe-payment-request-button/test/stripe-payment-request-button.e2e.js.map +1 -0
- package/dist/collection/components/stripe-payment-request-button/test/stripe-payment-request-button.spec.js +18 -0
- package/dist/collection/components/stripe-payment-request-button/test/stripe-payment-request-button.spec.js.map +1 -0
- package/dist/collection/components/stripe-payment-sheet/stripe-payment-sheet.js +483 -539
- package/dist/collection/components/stripe-payment-sheet/stripe-payment-sheet.js.map +1 -0
- package/dist/collection/components/stripe-payment-sheet/test/stripe-payment-sheet.e2e.js +10 -0
- package/dist/collection/components/stripe-payment-sheet/test/stripe-payment-sheet.e2e.js.map +1 -0
- package/dist/collection/components/stripe-payment-sheet/test/stripe-payment-sheet.spec.js +111 -0
- package/dist/collection/components/stripe-payment-sheet/test/stripe-payment-sheet.spec.js.map +1 -0
- package/dist/collection/components/stripe-payment-sheet-modal/stripe-payment-sheet-modal.js +393 -401
- package/dist/collection/components/stripe-payment-sheet-modal/stripe-payment-sheet-modal.js.map +1 -0
- package/dist/collection/components/stripe-payment-sheet-modal/test/stripe-payment-sheet-modal.e2e.js +10 -0
- package/dist/collection/components/stripe-payment-sheet-modal/test/stripe-payment-sheet-modal.e2e.js.map +1 -0
- package/dist/collection/components/stripe-payment-sheet-modal/test/stripe-payment-sheet-modal.spec.js +16 -0
- package/dist/collection/components/stripe-payment-sheet-modal/test/stripe-payment-sheet-modal.spec.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/interfaces.js +1 -0
- package/dist/collection/interfaces.js.map +1 -0
- package/dist/collection/utils/i18n.js +1 -0
- package/dist/collection/utils/i18n.js.map +1 -0
- package/dist/collection/utils/platform.js +1 -0
- package/dist/collection/utils/platform.js.map +1 -0
- package/dist/collection/utils/utils.js +1 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/icon.js +360 -0
- package/dist/components/icon.js.map +1 -0
- package/dist/components/index.d.ts +27 -0
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/ion-icon.js +8 -0
- package/dist/components/ion-icon.js.map +1 -0
- package/dist/components/stripe-element-modal.js +75 -0
- package/dist/components/stripe-element-modal.js.map +1 -0
- package/dist/components/stripe-payment-request-button.d.ts +11 -0
- package/dist/components/stripe-payment-request-button.js +8 -0
- package/dist/components/stripe-payment-request-button.js.map +1 -0
- package/dist/components/stripe-payment-request-button2.js +337 -0
- package/dist/components/stripe-payment-request-button2.js.map +1 -0
- package/dist/components/stripe-payment-sheet.d.ts +11 -0
- package/dist/components/stripe-payment-sheet.js +153 -0
- package/dist/components/stripe-payment-sheet.js.map +1 -0
- package/dist/{custom-elements/index.js → components/stripe-payment-sheet2.js} +798 -1607
- package/dist/components/stripe-payment-sheet2.js.map +1 -0
- package/dist/components/stripe-payment.d.ts +11 -0
- package/dist/components/stripe-payment.js +8 -0
- package/dist/components/stripe-payment.js.map +1 -0
- package/dist/components/stripe-sheet.d.ts +11 -0
- package/dist/components/stripe-sheet.js +8 -0
- package/dist/components/stripe-sheet.js.map +1 -0
- package/dist/components/utils.js +105 -0
- package/dist/components/utils.js.map +1 -0
- package/dist/esm/{index-a7e5d6fd.js → index-58f9666b.js} +616 -262
- package/dist/esm/index-58f9666b.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/ion-icon.entry.js +68 -43
- package/dist/esm/ion-icon.entry.js.map +1 -0
- package/dist/esm/loader.js +6 -3
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/stripe-elements.js +9 -3
- package/dist/esm/stripe-elements.js.map +1 -0
- package/dist/esm/stripe-payment-request-button.entry.js +26 -20
- package/dist/esm/stripe-payment-request-button.entry.js.map +1 -0
- package/dist/esm/stripe-payment-sheet.entry.js +11 -27
- package/dist/esm/stripe-payment-sheet.entry.js.map +1 -0
- package/dist/esm/stripe-payment_2.entry.js +753 -729
- package/dist/esm/stripe-payment_2.entry.js.map +1 -0
- package/dist/esm/{stripe.esm-ea56157a.js → stripe.esm-bad47977.js} +4 -2
- package/dist/esm/stripe.esm-bad47977.js.map +1 -0
- package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +46 -4
- package/dist/stripe-elements/index.esm.js +2 -0
- package/dist/stripe-elements/index.esm.js.map +1 -0
- package/dist/stripe-elements/p-06c00b5c.entry.js +2 -0
- package/dist/stripe-elements/p-06c00b5c.entry.js.map +1 -0
- package/dist/stripe-elements/p-1b4515a4.js +3 -0
- package/dist/stripe-elements/p-1b4515a4.js.map +1 -0
- package/dist/stripe-elements/p-3458123a.entry.js +2 -0
- package/dist/stripe-elements/p-3458123a.entry.js.map +1 -0
- package/dist/stripe-elements/p-3a90ad5d.entry.js +2 -0
- package/dist/stripe-elements/p-3a90ad5d.entry.js.map +1 -0
- package/dist/stripe-elements/p-b10d8613.js +2 -0
- package/dist/stripe-elements/p-b10d8613.js.map +1 -0
- package/dist/stripe-elements/p-c5a2b2e8.entry.js +2 -0
- package/dist/stripe-elements/p-c5a2b2e8.entry.js.map +1 -0
- package/dist/stripe-elements/stripe-elements.esm.js +2 -1
- package/dist/stripe-elements/stripe-elements.esm.js.map +1 -0
- package/dist/stripe-elements/svg/accessibility-outline.svg +1 -1
- package/dist/stripe-elements/svg/accessibility-sharp.svg +1 -1
- package/dist/stripe-elements/svg/accessibility.svg +1 -1
- package/dist/stripe-elements/svg/add-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/add-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/add-circle.svg +1 -1
- package/dist/stripe-elements/svg/add-outline.svg +1 -1
- package/dist/stripe-elements/svg/add-sharp.svg +1 -1
- package/dist/stripe-elements/svg/add.svg +1 -1
- package/dist/stripe-elements/svg/airplane-outline.svg +1 -1
- package/dist/stripe-elements/svg/airplane-sharp.svg +1 -1
- package/dist/stripe-elements/svg/airplane.svg +1 -1
- package/dist/stripe-elements/svg/alarm-outline.svg +1 -1
- package/dist/stripe-elements/svg/alarm-sharp.svg +1 -1
- package/dist/stripe-elements/svg/alarm.svg +1 -1
- package/dist/stripe-elements/svg/albums-outline.svg +1 -1
- package/dist/stripe-elements/svg/albums-sharp.svg +1 -1
- package/dist/stripe-elements/svg/albums.svg +1 -1
- package/dist/stripe-elements/svg/alert-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/alert-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/alert-circle.svg +1 -1
- package/dist/stripe-elements/svg/alert-outline.svg +1 -1
- package/dist/stripe-elements/svg/alert-sharp.svg +1 -1
- package/dist/stripe-elements/svg/alert.svg +1 -1
- package/dist/stripe-elements/svg/american-football-outline.svg +1 -1
- package/dist/stripe-elements/svg/american-football-sharp.svg +1 -1
- package/dist/stripe-elements/svg/american-football.svg +1 -1
- package/dist/stripe-elements/svg/analytics-outline.svg +1 -1
- package/dist/stripe-elements/svg/analytics-sharp.svg +1 -1
- package/dist/stripe-elements/svg/analytics.svg +1 -1
- package/dist/stripe-elements/svg/aperture-outline.svg +1 -1
- package/dist/stripe-elements/svg/aperture-sharp.svg +1 -1
- package/dist/stripe-elements/svg/aperture.svg +1 -1
- package/dist/stripe-elements/svg/apps-outline.svg +1 -1
- package/dist/stripe-elements/svg/apps-sharp.svg +1 -1
- package/dist/stripe-elements/svg/apps.svg +1 -1
- package/dist/stripe-elements/svg/archive-outline.svg +1 -1
- package/dist/stripe-elements/svg/archive-sharp.svg +1 -1
- package/dist/stripe-elements/svg/archive.svg +1 -1
- package/dist/stripe-elements/svg/arrow-back-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/arrow-back-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/arrow-back-circle.svg +1 -1
- package/dist/stripe-elements/svg/arrow-back-outline.svg +1 -1
- package/dist/stripe-elements/svg/arrow-back-sharp.svg +1 -1
- package/dist/stripe-elements/svg/arrow-back.svg +1 -1
- package/dist/stripe-elements/svg/arrow-down-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/arrow-down-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/arrow-down-circle.svg +1 -1
- package/dist/stripe-elements/svg/arrow-down-outline.svg +1 -1
- package/dist/stripe-elements/svg/arrow-down-sharp.svg +1 -1
- package/dist/stripe-elements/svg/arrow-down.svg +1 -1
- package/dist/stripe-elements/svg/arrow-forward-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/arrow-forward-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/arrow-forward-circle.svg +1 -1
- package/dist/stripe-elements/svg/arrow-forward-outline.svg +1 -1
- package/dist/stripe-elements/svg/arrow-forward-sharp.svg +1 -1
- package/dist/stripe-elements/svg/arrow-forward.svg +1 -1
- package/dist/stripe-elements/svg/arrow-redo-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/arrow-redo-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/arrow-redo-circle.svg +1 -1
- package/dist/stripe-elements/svg/arrow-redo-outline.svg +1 -1
- package/dist/stripe-elements/svg/arrow-redo-sharp.svg +1 -1
- package/dist/stripe-elements/svg/arrow-redo.svg +1 -1
- package/dist/stripe-elements/svg/arrow-undo-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/arrow-undo-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/arrow-undo-circle.svg +1 -1
- package/dist/stripe-elements/svg/arrow-undo-outline.svg +1 -1
- package/dist/stripe-elements/svg/arrow-undo-sharp.svg +1 -1
- package/dist/stripe-elements/svg/arrow-undo.svg +1 -1
- package/dist/stripe-elements/svg/arrow-up-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/arrow-up-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/arrow-up-circle.svg +1 -1
- package/dist/stripe-elements/svg/arrow-up-outline.svg +1 -1
- package/dist/stripe-elements/svg/arrow-up-sharp.svg +1 -1
- package/dist/stripe-elements/svg/arrow-up.svg +1 -1
- package/dist/stripe-elements/svg/at-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/at-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/at-circle.svg +1 -1
- package/dist/stripe-elements/svg/at-outline.svg +1 -1
- package/dist/stripe-elements/svg/at-sharp.svg +1 -1
- package/dist/stripe-elements/svg/at.svg +1 -1
- package/dist/stripe-elements/svg/attach-outline.svg +1 -1
- package/dist/stripe-elements/svg/attach-sharp.svg +1 -1
- package/dist/stripe-elements/svg/attach.svg +1 -1
- package/dist/stripe-elements/svg/backspace-outline.svg +1 -1
- package/dist/stripe-elements/svg/backspace-sharp.svg +1 -1
- package/dist/stripe-elements/svg/backspace.svg +1 -1
- package/dist/stripe-elements/svg/bag-add-outline.svg +1 -1
- package/dist/stripe-elements/svg/bag-add-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bag-add.svg +1 -1
- package/dist/stripe-elements/svg/bag-check-outline.svg +1 -1
- package/dist/stripe-elements/svg/bag-check-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bag-check.svg +1 -1
- package/dist/stripe-elements/svg/bag-handle-outline.svg +1 -1
- package/dist/stripe-elements/svg/bag-handle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bag-handle.svg +1 -1
- package/dist/stripe-elements/svg/bag-outline.svg +1 -1
- package/dist/stripe-elements/svg/bag-remove-outline.svg +1 -1
- package/dist/stripe-elements/svg/bag-remove-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bag-remove.svg +1 -1
- package/dist/stripe-elements/svg/bag-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bag.svg +1 -1
- package/dist/stripe-elements/svg/balloon-outline.svg +1 -1
- package/dist/stripe-elements/svg/balloon-sharp.svg +1 -1
- package/dist/stripe-elements/svg/balloon.svg +1 -1
- package/dist/stripe-elements/svg/ban-outline.svg +1 -1
- package/dist/stripe-elements/svg/ban-sharp.svg +1 -1
- package/dist/stripe-elements/svg/ban.svg +1 -1
- package/dist/stripe-elements/svg/bandage-outline.svg +1 -1
- package/dist/stripe-elements/svg/bandage-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bandage.svg +1 -1
- package/dist/stripe-elements/svg/bar-chart-outline.svg +1 -1
- package/dist/stripe-elements/svg/bar-chart-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bar-chart.svg +1 -1
- package/dist/stripe-elements/svg/barbell-outline.svg +1 -1
- package/dist/stripe-elements/svg/barbell-sharp.svg +1 -1
- package/dist/stripe-elements/svg/barbell.svg +1 -1
- package/dist/stripe-elements/svg/barcode-outline.svg +1 -1
- package/dist/stripe-elements/svg/barcode-sharp.svg +1 -1
- package/dist/stripe-elements/svg/barcode.svg +1 -1
- package/dist/stripe-elements/svg/baseball-outline.svg +1 -1
- package/dist/stripe-elements/svg/baseball-sharp.svg +1 -1
- package/dist/stripe-elements/svg/baseball.svg +1 -1
- package/dist/stripe-elements/svg/basket-outline.svg +1 -1
- package/dist/stripe-elements/svg/basket-sharp.svg +1 -1
- package/dist/stripe-elements/svg/basket.svg +1 -1
- package/dist/stripe-elements/svg/basketball-outline.svg +1 -1
- package/dist/stripe-elements/svg/basketball-sharp.svg +1 -1
- package/dist/stripe-elements/svg/basketball.svg +1 -1
- package/dist/stripe-elements/svg/battery-charging-outline.svg +1 -1
- package/dist/stripe-elements/svg/battery-charging-sharp.svg +1 -1
- package/dist/stripe-elements/svg/battery-charging.svg +1 -1
- package/dist/stripe-elements/svg/battery-dead-outline.svg +1 -1
- package/dist/stripe-elements/svg/battery-dead-sharp.svg +1 -1
- package/dist/stripe-elements/svg/battery-dead.svg +1 -1
- package/dist/stripe-elements/svg/battery-full-outline.svg +1 -1
- package/dist/stripe-elements/svg/battery-full-sharp.svg +1 -1
- package/dist/stripe-elements/svg/battery-full.svg +1 -1
- package/dist/stripe-elements/svg/battery-half-outline.svg +1 -1
- package/dist/stripe-elements/svg/battery-half-sharp.svg +1 -1
- package/dist/stripe-elements/svg/battery-half.svg +1 -1
- package/dist/stripe-elements/svg/beaker-outline.svg +1 -1
- package/dist/stripe-elements/svg/beaker-sharp.svg +1 -1
- package/dist/stripe-elements/svg/beaker.svg +1 -1
- package/dist/stripe-elements/svg/bed-outline.svg +1 -1
- package/dist/stripe-elements/svg/bed-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bed.svg +1 -1
- package/dist/stripe-elements/svg/beer-outline.svg +1 -1
- package/dist/stripe-elements/svg/beer-sharp.svg +1 -1
- package/dist/stripe-elements/svg/beer.svg +1 -1
- package/dist/stripe-elements/svg/bicycle-outline.svg +1 -1
- package/dist/stripe-elements/svg/bicycle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bicycle.svg +1 -1
- package/dist/stripe-elements/svg/bluetooth-outline.svg +1 -1
- package/dist/stripe-elements/svg/bluetooth-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bluetooth.svg +1 -1
- package/dist/stripe-elements/svg/boat-outline.svg +1 -1
- package/dist/stripe-elements/svg/boat-sharp.svg +1 -1
- package/dist/stripe-elements/svg/boat.svg +1 -1
- package/dist/stripe-elements/svg/body-outline.svg +1 -1
- package/dist/stripe-elements/svg/body-sharp.svg +1 -1
- package/dist/stripe-elements/svg/body.svg +1 -1
- package/dist/stripe-elements/svg/bonfire-outline.svg +1 -1
- package/dist/stripe-elements/svg/bonfire-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bonfire.svg +1 -1
- package/dist/stripe-elements/svg/book-outline.svg +1 -1
- package/dist/stripe-elements/svg/book-sharp.svg +1 -1
- package/dist/stripe-elements/svg/book.svg +1 -1
- package/dist/stripe-elements/svg/bookmark-outline.svg +1 -1
- package/dist/stripe-elements/svg/bookmark-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bookmark.svg +1 -1
- package/dist/stripe-elements/svg/bookmarks-outline.svg +1 -1
- package/dist/stripe-elements/svg/bookmarks-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bookmarks.svg +1 -1
- package/dist/stripe-elements/svg/bowling-ball-outline.svg +1 -1
- package/dist/stripe-elements/svg/bowling-ball-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bowling-ball.svg +1 -1
- package/dist/stripe-elements/svg/briefcase-outline.svg +1 -1
- package/dist/stripe-elements/svg/briefcase-sharp.svg +1 -1
- package/dist/stripe-elements/svg/briefcase.svg +1 -1
- package/dist/stripe-elements/svg/browsers-outline.svg +1 -1
- package/dist/stripe-elements/svg/browsers-sharp.svg +1 -1
- package/dist/stripe-elements/svg/browsers.svg +1 -1
- package/dist/stripe-elements/svg/brush-outline.svg +1 -1
- package/dist/stripe-elements/svg/brush-sharp.svg +1 -1
- package/dist/stripe-elements/svg/brush.svg +1 -1
- package/dist/stripe-elements/svg/bug-outline.svg +1 -1
- package/dist/stripe-elements/svg/bug-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bug.svg +1 -1
- package/dist/stripe-elements/svg/build-outline.svg +1 -1
- package/dist/stripe-elements/svg/build-sharp.svg +1 -1
- package/dist/stripe-elements/svg/build.svg +1 -1
- package/dist/stripe-elements/svg/bulb-outline.svg +1 -1
- package/dist/stripe-elements/svg/bulb-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bulb.svg +1 -1
- package/dist/stripe-elements/svg/bus-outline.svg +1 -1
- package/dist/stripe-elements/svg/bus-sharp.svg +1 -1
- package/dist/stripe-elements/svg/bus.svg +1 -1
- package/dist/stripe-elements/svg/business-outline.svg +1 -1
- package/dist/stripe-elements/svg/business-sharp.svg +1 -1
- package/dist/stripe-elements/svg/business.svg +1 -1
- package/dist/stripe-elements/svg/cafe-outline.svg +1 -1
- package/dist/stripe-elements/svg/cafe-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cafe.svg +1 -1
- package/dist/stripe-elements/svg/calculator-outline.svg +1 -1
- package/dist/stripe-elements/svg/calculator-sharp.svg +1 -1
- package/dist/stripe-elements/svg/calculator.svg +1 -1
- package/dist/stripe-elements/svg/calendar-clear-outline.svg +1 -1
- package/dist/stripe-elements/svg/calendar-clear-sharp.svg +1 -1
- package/dist/stripe-elements/svg/calendar-clear.svg +1 -1
- package/dist/stripe-elements/svg/calendar-number-outline.svg +1 -1
- package/dist/stripe-elements/svg/calendar-number-sharp.svg +1 -1
- package/dist/stripe-elements/svg/calendar-number.svg +1 -1
- package/dist/stripe-elements/svg/calendar-outline.svg +1 -1
- package/dist/stripe-elements/svg/calendar-sharp.svg +1 -1
- package/dist/stripe-elements/svg/calendar.svg +1 -1
- package/dist/stripe-elements/svg/call-outline.svg +1 -1
- package/dist/stripe-elements/svg/call-sharp.svg +1 -1
- package/dist/stripe-elements/svg/call.svg +1 -1
- package/dist/stripe-elements/svg/camera-outline.svg +1 -1
- package/dist/stripe-elements/svg/camera-reverse-outline.svg +1 -1
- package/dist/stripe-elements/svg/camera-reverse-sharp.svg +1 -1
- package/dist/stripe-elements/svg/camera-reverse.svg +1 -1
- package/dist/stripe-elements/svg/camera-sharp.svg +1 -1
- package/dist/stripe-elements/svg/camera.svg +1 -1
- package/dist/stripe-elements/svg/car-outline.svg +1 -1
- package/dist/stripe-elements/svg/car-sharp.svg +1 -1
- package/dist/stripe-elements/svg/car-sport-outline.svg +1 -1
- package/dist/stripe-elements/svg/car-sport-sharp.svg +1 -1
- package/dist/stripe-elements/svg/car-sport.svg +1 -1
- package/dist/stripe-elements/svg/car.svg +1 -1
- package/dist/stripe-elements/svg/card-outline.svg +1 -1
- package/dist/stripe-elements/svg/card-sharp.svg +1 -1
- package/dist/stripe-elements/svg/card.svg +1 -1
- package/dist/stripe-elements/svg/caret-back-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/caret-back-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/caret-back-circle.svg +1 -1
- package/dist/stripe-elements/svg/caret-back-outline.svg +1 -1
- package/dist/stripe-elements/svg/caret-back-sharp.svg +1 -1
- package/dist/stripe-elements/svg/caret-back.svg +1 -1
- package/dist/stripe-elements/svg/caret-down-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/caret-down-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/caret-down-circle.svg +1 -1
- package/dist/stripe-elements/svg/caret-down-outline.svg +1 -1
- package/dist/stripe-elements/svg/caret-down-sharp.svg +1 -1
- package/dist/stripe-elements/svg/caret-down.svg +1 -1
- package/dist/stripe-elements/svg/caret-forward-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/caret-forward-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/caret-forward-circle.svg +1 -1
- package/dist/stripe-elements/svg/caret-forward-outline.svg +1 -1
- package/dist/stripe-elements/svg/caret-forward-sharp.svg +1 -1
- package/dist/stripe-elements/svg/caret-forward.svg +1 -1
- package/dist/stripe-elements/svg/caret-up-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/caret-up-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/caret-up-circle.svg +1 -1
- package/dist/stripe-elements/svg/caret-up-outline.svg +1 -1
- package/dist/stripe-elements/svg/caret-up-sharp.svg +1 -1
- package/dist/stripe-elements/svg/caret-up.svg +1 -1
- package/dist/stripe-elements/svg/cart-outline.svg +1 -1
- package/dist/stripe-elements/svg/cart-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cart.svg +1 -1
- package/dist/stripe-elements/svg/cash-outline.svg +1 -1
- package/dist/stripe-elements/svg/cash-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cash.svg +1 -1
- package/dist/stripe-elements/svg/cellular-outline.svg +1 -1
- package/dist/stripe-elements/svg/cellular-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cellular.svg +1 -1
- package/dist/stripe-elements/svg/chatbox-ellipses-outline.svg +1 -1
- package/dist/stripe-elements/svg/chatbox-ellipses-sharp.svg +1 -1
- package/dist/stripe-elements/svg/chatbox-ellipses.svg +1 -1
- package/dist/stripe-elements/svg/chatbox-outline.svg +1 -1
- package/dist/stripe-elements/svg/chatbox-sharp.svg +1 -1
- package/dist/stripe-elements/svg/chatbox.svg +1 -1
- package/dist/stripe-elements/svg/chatbubble-ellipses-outline.svg +1 -1
- package/dist/stripe-elements/svg/chatbubble-ellipses-sharp.svg +1 -1
- package/dist/stripe-elements/svg/chatbubble-ellipses.svg +1 -1
- package/dist/stripe-elements/svg/chatbubble-outline.svg +1 -1
- package/dist/stripe-elements/svg/chatbubble-sharp.svg +1 -1
- package/dist/stripe-elements/svg/chatbubble.svg +1 -1
- package/dist/stripe-elements/svg/chatbubbles-outline.svg +1 -1
- package/dist/stripe-elements/svg/chatbubbles-sharp.svg +1 -1
- package/dist/stripe-elements/svg/chatbubbles.svg +1 -1
- package/dist/stripe-elements/svg/checkbox-outline.svg +1 -1
- package/dist/stripe-elements/svg/checkbox-sharp.svg +1 -1
- package/dist/stripe-elements/svg/checkbox.svg +1 -1
- package/dist/stripe-elements/svg/checkmark-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/checkmark-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/checkmark-circle.svg +1 -1
- package/dist/stripe-elements/svg/checkmark-done-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/checkmark-done-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/checkmark-done-circle.svg +1 -1
- package/dist/stripe-elements/svg/checkmark-done-outline.svg +1 -1
- package/dist/stripe-elements/svg/checkmark-done-sharp.svg +1 -1
- package/dist/stripe-elements/svg/checkmark-done.svg +1 -1
- package/dist/stripe-elements/svg/checkmark-outline.svg +1 -1
- package/dist/stripe-elements/svg/checkmark-sharp.svg +1 -1
- package/dist/stripe-elements/svg/checkmark.svg +1 -1
- package/dist/stripe-elements/svg/chevron-back-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/chevron-back-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/chevron-back-circle.svg +1 -1
- package/dist/stripe-elements/svg/chevron-back-outline.svg +1 -1
- package/dist/stripe-elements/svg/chevron-back-sharp.svg +1 -1
- package/dist/stripe-elements/svg/chevron-back.svg +1 -1
- package/dist/stripe-elements/svg/chevron-collapse-outline.svg +1 -0
- package/dist/stripe-elements/svg/chevron-collapse-sharp.svg +1 -0
- package/dist/stripe-elements/svg/chevron-collapse.svg +1 -0
- package/dist/stripe-elements/svg/chevron-down-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/chevron-down-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/chevron-down-circle.svg +1 -1
- package/dist/stripe-elements/svg/chevron-down-outline.svg +1 -1
- package/dist/stripe-elements/svg/chevron-down-sharp.svg +1 -1
- package/dist/stripe-elements/svg/chevron-down.svg +1 -1
- package/dist/stripe-elements/svg/chevron-expand-outline.svg +1 -0
- package/dist/stripe-elements/svg/chevron-expand-sharp.svg +1 -0
- package/dist/stripe-elements/svg/chevron-expand.svg +1 -0
- package/dist/stripe-elements/svg/chevron-forward-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/chevron-forward-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/chevron-forward-circle.svg +1 -1
- package/dist/stripe-elements/svg/chevron-forward-outline.svg +1 -1
- package/dist/stripe-elements/svg/chevron-forward-sharp.svg +1 -1
- package/dist/stripe-elements/svg/chevron-forward.svg +1 -1
- package/dist/stripe-elements/svg/chevron-up-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/chevron-up-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/chevron-up-circle.svg +1 -1
- package/dist/stripe-elements/svg/chevron-up-outline.svg +1 -1
- package/dist/stripe-elements/svg/chevron-up-sharp.svg +1 -1
- package/dist/stripe-elements/svg/chevron-up.svg +1 -1
- package/dist/stripe-elements/svg/clipboard-outline.svg +1 -1
- package/dist/stripe-elements/svg/clipboard-sharp.svg +1 -1
- package/dist/stripe-elements/svg/clipboard.svg +1 -1
- package/dist/stripe-elements/svg/close-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/close-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/close-circle.svg +1 -1
- package/dist/stripe-elements/svg/close-outline.svg +1 -1
- package/dist/stripe-elements/svg/close-sharp.svg +1 -1
- package/dist/stripe-elements/svg/close.svg +1 -1
- package/dist/stripe-elements/svg/cloud-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/cloud-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cloud-circle.svg +1 -1
- package/dist/stripe-elements/svg/cloud-done-outline.svg +1 -1
- package/dist/stripe-elements/svg/cloud-done-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cloud-done.svg +1 -1
- package/dist/stripe-elements/svg/cloud-download-outline.svg +1 -1
- package/dist/stripe-elements/svg/cloud-download-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cloud-download.svg +1 -1
- package/dist/stripe-elements/svg/cloud-offline-outline.svg +1 -1
- package/dist/stripe-elements/svg/cloud-offline-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cloud-offline.svg +1 -1
- package/dist/stripe-elements/svg/cloud-outline.svg +1 -1
- package/dist/stripe-elements/svg/cloud-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cloud-upload-outline.svg +1 -1
- package/dist/stripe-elements/svg/cloud-upload-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cloud-upload.svg +1 -1
- package/dist/stripe-elements/svg/cloud.svg +1 -1
- package/dist/stripe-elements/svg/cloudy-night-outline.svg +1 -1
- package/dist/stripe-elements/svg/cloudy-night-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cloudy-night.svg +1 -1
- package/dist/stripe-elements/svg/cloudy-outline.svg +1 -1
- package/dist/stripe-elements/svg/cloudy-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cloudy.svg +1 -1
- package/dist/stripe-elements/svg/code-download-outline.svg +1 -1
- package/dist/stripe-elements/svg/code-download-sharp.svg +1 -1
- package/dist/stripe-elements/svg/code-download.svg +1 -1
- package/dist/stripe-elements/svg/code-outline.svg +1 -1
- package/dist/stripe-elements/svg/code-sharp.svg +1 -1
- package/dist/stripe-elements/svg/code-slash-outline.svg +1 -1
- package/dist/stripe-elements/svg/code-slash-sharp.svg +1 -1
- package/dist/stripe-elements/svg/code-slash.svg +1 -1
- package/dist/stripe-elements/svg/code-working-outline.svg +1 -1
- package/dist/stripe-elements/svg/code-working-sharp.svg +1 -1
- package/dist/stripe-elements/svg/code-working.svg +1 -1
- package/dist/stripe-elements/svg/code.svg +1 -1
- package/dist/stripe-elements/svg/cog-outline.svg +1 -1
- package/dist/stripe-elements/svg/cog-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cog.svg +1 -1
- package/dist/stripe-elements/svg/color-fill-outline.svg +1 -1
- package/dist/stripe-elements/svg/color-fill-sharp.svg +1 -1
- package/dist/stripe-elements/svg/color-fill.svg +1 -1
- package/dist/stripe-elements/svg/color-filter-outline.svg +1 -1
- package/dist/stripe-elements/svg/color-filter-sharp.svg +1 -1
- package/dist/stripe-elements/svg/color-filter.svg +1 -1
- package/dist/stripe-elements/svg/color-palette-outline.svg +1 -1
- package/dist/stripe-elements/svg/color-palette-sharp.svg +1 -1
- package/dist/stripe-elements/svg/color-palette.svg +1 -1
- package/dist/stripe-elements/svg/color-wand-outline.svg +1 -1
- package/dist/stripe-elements/svg/color-wand-sharp.svg +1 -1
- package/dist/stripe-elements/svg/color-wand.svg +1 -1
- package/dist/stripe-elements/svg/compass-outline.svg +1 -1
- package/dist/stripe-elements/svg/compass-sharp.svg +1 -1
- package/dist/stripe-elements/svg/compass.svg +1 -1
- package/dist/stripe-elements/svg/construct-outline.svg +1 -1
- package/dist/stripe-elements/svg/construct-sharp.svg +1 -1
- package/dist/stripe-elements/svg/construct.svg +1 -1
- package/dist/stripe-elements/svg/contract-outline.svg +1 -1
- package/dist/stripe-elements/svg/contract-sharp.svg +1 -1
- package/dist/stripe-elements/svg/contract.svg +1 -1
- package/dist/stripe-elements/svg/contrast-outline.svg +1 -1
- package/dist/stripe-elements/svg/contrast-sharp.svg +1 -1
- package/dist/stripe-elements/svg/contrast.svg +1 -1
- package/dist/stripe-elements/svg/copy-outline.svg +1 -1
- package/dist/stripe-elements/svg/copy-sharp.svg +1 -1
- package/dist/stripe-elements/svg/copy.svg +1 -1
- package/dist/stripe-elements/svg/create-outline.svg +1 -1
- package/dist/stripe-elements/svg/create-sharp.svg +1 -1
- package/dist/stripe-elements/svg/create.svg +1 -1
- package/dist/stripe-elements/svg/crop-outline.svg +1 -1
- package/dist/stripe-elements/svg/crop-sharp.svg +1 -1
- package/dist/stripe-elements/svg/crop.svg +1 -1
- package/dist/stripe-elements/svg/cube-outline.svg +1 -1
- package/dist/stripe-elements/svg/cube-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cube.svg +1 -1
- package/dist/stripe-elements/svg/cut-outline.svg +1 -1
- package/dist/stripe-elements/svg/cut-sharp.svg +1 -1
- package/dist/stripe-elements/svg/cut.svg +1 -1
- package/dist/stripe-elements/svg/desktop-outline.svg +1 -1
- package/dist/stripe-elements/svg/desktop-sharp.svg +1 -1
- package/dist/stripe-elements/svg/desktop.svg +1 -1
- package/dist/stripe-elements/svg/diamond-outline.svg +1 -1
- package/dist/stripe-elements/svg/diamond-sharp.svg +1 -1
- package/dist/stripe-elements/svg/diamond.svg +1 -1
- package/dist/stripe-elements/svg/dice-outline.svg +1 -1
- package/dist/stripe-elements/svg/dice-sharp.svg +1 -1
- package/dist/stripe-elements/svg/dice.svg +1 -1
- package/dist/stripe-elements/svg/disc-outline.svg +1 -1
- package/dist/stripe-elements/svg/disc-sharp.svg +1 -1
- package/dist/stripe-elements/svg/disc.svg +1 -1
- package/dist/stripe-elements/svg/document-attach-outline.svg +1 -1
- package/dist/stripe-elements/svg/document-attach-sharp.svg +1 -1
- package/dist/stripe-elements/svg/document-attach.svg +1 -1
- package/dist/stripe-elements/svg/document-lock-outline.svg +1 -1
- package/dist/stripe-elements/svg/document-lock-sharp.svg +1 -1
- package/dist/stripe-elements/svg/document-lock.svg +1 -1
- package/dist/stripe-elements/svg/document-outline.svg +1 -1
- package/dist/stripe-elements/svg/document-sharp.svg +1 -1
- package/dist/stripe-elements/svg/document-text-outline.svg +1 -1
- package/dist/stripe-elements/svg/document-text-sharp.svg +1 -1
- package/dist/stripe-elements/svg/document-text.svg +1 -1
- package/dist/stripe-elements/svg/document.svg +1 -1
- package/dist/stripe-elements/svg/documents-outline.svg +1 -1
- package/dist/stripe-elements/svg/documents-sharp.svg +1 -1
- package/dist/stripe-elements/svg/documents.svg +1 -1
- package/dist/stripe-elements/svg/download-outline.svg +1 -1
- package/dist/stripe-elements/svg/download-sharp.svg +1 -1
- package/dist/stripe-elements/svg/download.svg +1 -1
- package/dist/stripe-elements/svg/duplicate-outline.svg +1 -1
- package/dist/stripe-elements/svg/duplicate-sharp.svg +1 -1
- package/dist/stripe-elements/svg/duplicate.svg +1 -1
- package/dist/stripe-elements/svg/ear-outline.svg +1 -1
- package/dist/stripe-elements/svg/ear-sharp.svg +1 -1
- package/dist/stripe-elements/svg/ear.svg +1 -1
- package/dist/stripe-elements/svg/earth-outline.svg +1 -1
- package/dist/stripe-elements/svg/earth-sharp.svg +1 -1
- package/dist/stripe-elements/svg/earth.svg +1 -1
- package/dist/stripe-elements/svg/easel-outline.svg +1 -1
- package/dist/stripe-elements/svg/easel-sharp.svg +1 -1
- package/dist/stripe-elements/svg/easel.svg +1 -1
- package/dist/stripe-elements/svg/egg-outline.svg +1 -1
- package/dist/stripe-elements/svg/egg-sharp.svg +1 -1
- package/dist/stripe-elements/svg/egg.svg +1 -1
- package/dist/stripe-elements/svg/ellipse-outline.svg +1 -1
- package/dist/stripe-elements/svg/ellipse-sharp.svg +1 -1
- package/dist/stripe-elements/svg/ellipse.svg +1 -1
- package/dist/stripe-elements/svg/ellipsis-horizontal-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/ellipsis-horizontal-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/ellipsis-horizontal-circle.svg +1 -1
- package/dist/stripe-elements/svg/ellipsis-horizontal-outline.svg +1 -1
- package/dist/stripe-elements/svg/ellipsis-horizontal-sharp.svg +1 -1
- package/dist/stripe-elements/svg/ellipsis-horizontal.svg +1 -1
- package/dist/stripe-elements/svg/ellipsis-vertical-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/ellipsis-vertical-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/ellipsis-vertical-circle.svg +1 -1
- package/dist/stripe-elements/svg/ellipsis-vertical-outline.svg +1 -1
- package/dist/stripe-elements/svg/ellipsis-vertical-sharp.svg +1 -1
- package/dist/stripe-elements/svg/ellipsis-vertical.svg +1 -1
- package/dist/stripe-elements/svg/enter-outline.svg +1 -1
- package/dist/stripe-elements/svg/enter-sharp.svg +1 -1
- package/dist/stripe-elements/svg/enter.svg +1 -1
- package/dist/stripe-elements/svg/exit-outline.svg +1 -1
- package/dist/stripe-elements/svg/exit-sharp.svg +1 -1
- package/dist/stripe-elements/svg/exit.svg +1 -1
- package/dist/stripe-elements/svg/expand-outline.svg +1 -1
- package/dist/stripe-elements/svg/expand-sharp.svg +1 -1
- package/dist/stripe-elements/svg/expand.svg +1 -1
- package/dist/stripe-elements/svg/extension-puzzle-outline.svg +1 -1
- package/dist/stripe-elements/svg/extension-puzzle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/extension-puzzle.svg +1 -1
- package/dist/stripe-elements/svg/eye-off-outline.svg +1 -1
- package/dist/stripe-elements/svg/eye-off-sharp.svg +1 -1
- package/dist/stripe-elements/svg/eye-off.svg +1 -1
- package/dist/stripe-elements/svg/eye-outline.svg +1 -1
- package/dist/stripe-elements/svg/eye-sharp.svg +1 -1
- package/dist/stripe-elements/svg/eye.svg +1 -1
- package/dist/stripe-elements/svg/eyedrop-outline.svg +1 -1
- package/dist/stripe-elements/svg/eyedrop-sharp.svg +1 -1
- package/dist/stripe-elements/svg/eyedrop.svg +1 -1
- package/dist/stripe-elements/svg/fast-food-outline.svg +1 -1
- package/dist/stripe-elements/svg/fast-food-sharp.svg +1 -1
- package/dist/stripe-elements/svg/fast-food.svg +1 -1
- package/dist/stripe-elements/svg/female-outline.svg +1 -1
- package/dist/stripe-elements/svg/female-sharp.svg +1 -1
- package/dist/stripe-elements/svg/female.svg +1 -1
- package/dist/stripe-elements/svg/file-tray-full-outline.svg +1 -1
- package/dist/stripe-elements/svg/file-tray-full-sharp.svg +1 -1
- package/dist/stripe-elements/svg/file-tray-full.svg +1 -1
- package/dist/stripe-elements/svg/file-tray-outline.svg +1 -1
- package/dist/stripe-elements/svg/file-tray-sharp.svg +1 -1
- package/dist/stripe-elements/svg/file-tray-stacked-outline.svg +1 -1
- package/dist/stripe-elements/svg/file-tray-stacked-sharp.svg +1 -1
- package/dist/stripe-elements/svg/file-tray-stacked.svg +1 -1
- package/dist/stripe-elements/svg/file-tray.svg +1 -1
- package/dist/stripe-elements/svg/film-outline.svg +1 -1
- package/dist/stripe-elements/svg/film-sharp.svg +1 -1
- package/dist/stripe-elements/svg/film.svg +1 -1
- package/dist/stripe-elements/svg/filter-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/filter-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/filter-circle.svg +1 -1
- package/dist/stripe-elements/svg/filter-outline.svg +1 -1
- package/dist/stripe-elements/svg/filter-sharp.svg +1 -1
- package/dist/stripe-elements/svg/filter.svg +1 -1
- package/dist/stripe-elements/svg/finger-print-outline.svg +1 -1
- package/dist/stripe-elements/svg/finger-print-sharp.svg +1 -1
- package/dist/stripe-elements/svg/finger-print.svg +1 -1
- package/dist/stripe-elements/svg/fish-outline.svg +1 -1
- package/dist/stripe-elements/svg/fish-sharp.svg +1 -1
- package/dist/stripe-elements/svg/fish.svg +1 -1
- package/dist/stripe-elements/svg/fitness-outline.svg +1 -1
- package/dist/stripe-elements/svg/fitness-sharp.svg +1 -1
- package/dist/stripe-elements/svg/fitness.svg +1 -1
- package/dist/stripe-elements/svg/flag-outline.svg +1 -1
- package/dist/stripe-elements/svg/flag-sharp.svg +1 -1
- package/dist/stripe-elements/svg/flag.svg +1 -1
- package/dist/stripe-elements/svg/flame-outline.svg +1 -1
- package/dist/stripe-elements/svg/flame-sharp.svg +1 -1
- package/dist/stripe-elements/svg/flame.svg +1 -1
- package/dist/stripe-elements/svg/flash-off-outline.svg +1 -1
- package/dist/stripe-elements/svg/flash-off-sharp.svg +1 -1
- package/dist/stripe-elements/svg/flash-off.svg +1 -1
- package/dist/stripe-elements/svg/flash-outline.svg +1 -1
- package/dist/stripe-elements/svg/flash-sharp.svg +1 -1
- package/dist/stripe-elements/svg/flash.svg +1 -1
- package/dist/stripe-elements/svg/flashlight-outline.svg +1 -1
- package/dist/stripe-elements/svg/flashlight-sharp.svg +1 -1
- package/dist/stripe-elements/svg/flashlight.svg +1 -1
- package/dist/stripe-elements/svg/flask-outline.svg +1 -1
- package/dist/stripe-elements/svg/flask-sharp.svg +1 -1
- package/dist/stripe-elements/svg/flask.svg +1 -1
- package/dist/stripe-elements/svg/flower-outline.svg +1 -1
- package/dist/stripe-elements/svg/flower-sharp.svg +1 -1
- package/dist/stripe-elements/svg/flower.svg +1 -1
- package/dist/stripe-elements/svg/folder-open-outline.svg +1 -1
- package/dist/stripe-elements/svg/folder-open-sharp.svg +1 -1
- package/dist/stripe-elements/svg/folder-open.svg +1 -1
- package/dist/stripe-elements/svg/folder-outline.svg +1 -1
- package/dist/stripe-elements/svg/folder-sharp.svg +1 -1
- package/dist/stripe-elements/svg/folder.svg +1 -1
- package/dist/stripe-elements/svg/football-outline.svg +1 -1
- package/dist/stripe-elements/svg/football-sharp.svg +1 -1
- package/dist/stripe-elements/svg/football.svg +1 -1
- package/dist/stripe-elements/svg/footsteps-outline.svg +1 -1
- package/dist/stripe-elements/svg/footsteps-sharp.svg +1 -1
- package/dist/stripe-elements/svg/footsteps.svg +1 -1
- package/dist/stripe-elements/svg/funnel-outline.svg +1 -1
- package/dist/stripe-elements/svg/funnel-sharp.svg +1 -1
- package/dist/stripe-elements/svg/funnel.svg +1 -1
- package/dist/stripe-elements/svg/game-controller-outline.svg +1 -1
- package/dist/stripe-elements/svg/game-controller-sharp.svg +1 -1
- package/dist/stripe-elements/svg/game-controller.svg +1 -1
- package/dist/stripe-elements/svg/gift-outline.svg +1 -1
- package/dist/stripe-elements/svg/gift-sharp.svg +1 -1
- package/dist/stripe-elements/svg/gift.svg +1 -1
- package/dist/stripe-elements/svg/git-branch-outline.svg +1 -1
- package/dist/stripe-elements/svg/git-branch-sharp.svg +1 -1
- package/dist/stripe-elements/svg/git-branch.svg +1 -1
- package/dist/stripe-elements/svg/git-commit-outline.svg +1 -1
- package/dist/stripe-elements/svg/git-commit-sharp.svg +1 -1
- package/dist/stripe-elements/svg/git-commit.svg +1 -1
- package/dist/stripe-elements/svg/git-compare-outline.svg +1 -1
- package/dist/stripe-elements/svg/git-compare-sharp.svg +1 -1
- package/dist/stripe-elements/svg/git-compare.svg +1 -1
- package/dist/stripe-elements/svg/git-merge-outline.svg +1 -1
- package/dist/stripe-elements/svg/git-merge-sharp.svg +1 -1
- package/dist/stripe-elements/svg/git-merge.svg +1 -1
- package/dist/stripe-elements/svg/git-network-outline.svg +1 -1
- package/dist/stripe-elements/svg/git-network-sharp.svg +1 -1
- package/dist/stripe-elements/svg/git-network.svg +1 -1
- package/dist/stripe-elements/svg/git-pull-request-outline.svg +1 -1
- package/dist/stripe-elements/svg/git-pull-request-sharp.svg +1 -1
- package/dist/stripe-elements/svg/git-pull-request.svg +1 -1
- package/dist/stripe-elements/svg/glasses-outline.svg +1 -1
- package/dist/stripe-elements/svg/glasses-sharp.svg +1 -1
- package/dist/stripe-elements/svg/glasses.svg +1 -1
- package/dist/stripe-elements/svg/globe-outline.svg +1 -1
- package/dist/stripe-elements/svg/globe-sharp.svg +1 -1
- package/dist/stripe-elements/svg/globe.svg +1 -1
- package/dist/stripe-elements/svg/golf-outline.svg +1 -1
- package/dist/stripe-elements/svg/golf-sharp.svg +1 -1
- package/dist/stripe-elements/svg/golf.svg +1 -1
- package/dist/stripe-elements/svg/grid-outline.svg +1 -1
- package/dist/stripe-elements/svg/grid-sharp.svg +1 -1
- package/dist/stripe-elements/svg/grid.svg +1 -1
- package/dist/stripe-elements/svg/hammer-outline.svg +1 -1
- package/dist/stripe-elements/svg/hammer-sharp.svg +1 -1
- package/dist/stripe-elements/svg/hammer.svg +1 -1
- package/dist/stripe-elements/svg/hand-left-outline.svg +1 -1
- package/dist/stripe-elements/svg/hand-left-sharp.svg +1 -1
- package/dist/stripe-elements/svg/hand-left.svg +1 -1
- package/dist/stripe-elements/svg/hand-right-outline.svg +1 -1
- package/dist/stripe-elements/svg/hand-right-sharp.svg +1 -1
- package/dist/stripe-elements/svg/hand-right.svg +1 -1
- package/dist/stripe-elements/svg/happy-outline.svg +1 -1
- package/dist/stripe-elements/svg/happy-sharp.svg +1 -1
- package/dist/stripe-elements/svg/happy.svg +1 -1
- package/dist/stripe-elements/svg/hardware-chip-outline.svg +1 -1
- package/dist/stripe-elements/svg/hardware-chip-sharp.svg +1 -1
- package/dist/stripe-elements/svg/hardware-chip.svg +1 -1
- package/dist/stripe-elements/svg/headset-outline.svg +1 -1
- package/dist/stripe-elements/svg/headset-sharp.svg +1 -1
- package/dist/stripe-elements/svg/headset.svg +1 -1
- package/dist/stripe-elements/svg/heart-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/heart-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/heart-circle.svg +1 -1
- package/dist/stripe-elements/svg/heart-dislike-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/heart-dislike-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/heart-dislike-circle.svg +1 -1
- package/dist/stripe-elements/svg/heart-dislike-outline.svg +1 -1
- package/dist/stripe-elements/svg/heart-dislike-sharp.svg +1 -1
- package/dist/stripe-elements/svg/heart-dislike.svg +1 -1
- package/dist/stripe-elements/svg/heart-half-outline.svg +1 -1
- package/dist/stripe-elements/svg/heart-half-sharp.svg +1 -1
- package/dist/stripe-elements/svg/heart-half.svg +1 -1
- package/dist/stripe-elements/svg/heart-outline.svg +1 -1
- package/dist/stripe-elements/svg/heart-sharp.svg +1 -1
- package/dist/stripe-elements/svg/heart.svg +1 -1
- package/dist/stripe-elements/svg/help-buoy-outline.svg +1 -1
- package/dist/stripe-elements/svg/help-buoy-sharp.svg +1 -1
- package/dist/stripe-elements/svg/help-buoy.svg +1 -1
- package/dist/stripe-elements/svg/help-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/help-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/help-circle.svg +1 -1
- package/dist/stripe-elements/svg/help-outline.svg +1 -1
- package/dist/stripe-elements/svg/help-sharp.svg +1 -1
- package/dist/stripe-elements/svg/help.svg +1 -1
- package/dist/stripe-elements/svg/home-outline.svg +1 -1
- package/dist/stripe-elements/svg/home-sharp.svg +1 -1
- package/dist/stripe-elements/svg/home.svg +1 -1
- package/dist/stripe-elements/svg/hourglass-outline.svg +1 -1
- package/dist/stripe-elements/svg/hourglass-sharp.svg +1 -1
- package/dist/stripe-elements/svg/hourglass.svg +1 -1
- package/dist/stripe-elements/svg/ice-cream-outline.svg +1 -1
- package/dist/stripe-elements/svg/ice-cream-sharp.svg +1 -1
- package/dist/stripe-elements/svg/ice-cream.svg +1 -1
- package/dist/stripe-elements/svg/id-card-outline.svg +1 -1
- package/dist/stripe-elements/svg/id-card-sharp.svg +1 -1
- package/dist/stripe-elements/svg/id-card.svg +1 -1
- package/dist/stripe-elements/svg/image-outline.svg +1 -1
- package/dist/stripe-elements/svg/image-sharp.svg +1 -1
- package/dist/stripe-elements/svg/image.svg +1 -1
- package/dist/stripe-elements/svg/images-outline.svg +1 -1
- package/dist/stripe-elements/svg/images-sharp.svg +1 -1
- package/dist/stripe-elements/svg/images.svg +1 -1
- package/dist/stripe-elements/svg/infinite-outline.svg +1 -1
- package/dist/stripe-elements/svg/infinite-sharp.svg +1 -1
- package/dist/stripe-elements/svg/infinite.svg +1 -1
- package/dist/stripe-elements/svg/information-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/information-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/information-circle.svg +1 -1
- package/dist/stripe-elements/svg/information-outline.svg +1 -1
- package/dist/stripe-elements/svg/information-sharp.svg +1 -1
- package/dist/stripe-elements/svg/information.svg +1 -1
- package/dist/stripe-elements/svg/invert-mode-outline.svg +1 -1
- package/dist/stripe-elements/svg/invert-mode-sharp.svg +1 -1
- package/dist/stripe-elements/svg/invert-mode.svg +1 -1
- package/dist/stripe-elements/svg/journal-outline.svg +1 -1
- package/dist/stripe-elements/svg/journal-sharp.svg +1 -1
- package/dist/stripe-elements/svg/journal.svg +1 -1
- package/dist/stripe-elements/svg/key-outline.svg +1 -1
- package/dist/stripe-elements/svg/key-sharp.svg +1 -1
- package/dist/stripe-elements/svg/key.svg +1 -1
- package/dist/stripe-elements/svg/keypad-outline.svg +1 -1
- package/dist/stripe-elements/svg/keypad-sharp.svg +1 -1
- package/dist/stripe-elements/svg/keypad.svg +1 -1
- package/dist/stripe-elements/svg/language-outline.svg +1 -1
- package/dist/stripe-elements/svg/language-sharp.svg +1 -1
- package/dist/stripe-elements/svg/language.svg +1 -1
- package/dist/stripe-elements/svg/laptop-outline.svg +1 -1
- package/dist/stripe-elements/svg/laptop-sharp.svg +1 -1
- package/dist/stripe-elements/svg/laptop.svg +1 -1
- package/dist/stripe-elements/svg/layers-outline.svg +1 -1
- package/dist/stripe-elements/svg/layers-sharp.svg +1 -1
- package/dist/stripe-elements/svg/layers.svg +1 -1
- package/dist/stripe-elements/svg/leaf-outline.svg +1 -1
- package/dist/stripe-elements/svg/leaf-sharp.svg +1 -1
- package/dist/stripe-elements/svg/leaf.svg +1 -1
- package/dist/stripe-elements/svg/library-outline.svg +1 -1
- package/dist/stripe-elements/svg/library-sharp.svg +1 -1
- package/dist/stripe-elements/svg/library.svg +1 -1
- package/dist/stripe-elements/svg/link-outline.svg +1 -1
- package/dist/stripe-elements/svg/link-sharp.svg +1 -1
- package/dist/stripe-elements/svg/link.svg +1 -1
- package/dist/stripe-elements/svg/list-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/list-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/list-circle.svg +1 -1
- package/dist/stripe-elements/svg/list-outline.svg +1 -1
- package/dist/stripe-elements/svg/list-sharp.svg +1 -1
- package/dist/stripe-elements/svg/list.svg +1 -1
- package/dist/stripe-elements/svg/locate-outline.svg +1 -1
- package/dist/stripe-elements/svg/locate-sharp.svg +1 -1
- package/dist/stripe-elements/svg/locate.svg +1 -1
- package/dist/stripe-elements/svg/location-outline.svg +1 -1
- package/dist/stripe-elements/svg/location-sharp.svg +1 -1
- package/dist/stripe-elements/svg/location.svg +1 -1
- package/dist/stripe-elements/svg/lock-closed-outline.svg +1 -1
- package/dist/stripe-elements/svg/lock-closed-sharp.svg +1 -1
- package/dist/stripe-elements/svg/lock-closed.svg +1 -1
- package/dist/stripe-elements/svg/lock-open-outline.svg +1 -1
- package/dist/stripe-elements/svg/lock-open-sharp.svg +1 -1
- package/dist/stripe-elements/svg/lock-open.svg +1 -1
- package/dist/stripe-elements/svg/log-in-outline.svg +1 -1
- package/dist/stripe-elements/svg/log-in-sharp.svg +1 -1
- package/dist/stripe-elements/svg/log-in.svg +1 -1
- package/dist/stripe-elements/svg/log-out-outline.svg +1 -1
- package/dist/stripe-elements/svg/log-out-sharp.svg +1 -1
- package/dist/stripe-elements/svg/log-out.svg +1 -1
- package/dist/stripe-elements/svg/logo-alipay.svg +1 -1
- package/dist/stripe-elements/svg/logo-amazon.svg +1 -1
- package/dist/stripe-elements/svg/logo-amplify.svg +1 -1
- package/dist/stripe-elements/svg/logo-android.svg +1 -1
- package/dist/stripe-elements/svg/logo-angular.svg +1 -1
- package/dist/stripe-elements/svg/logo-apple-appstore.svg +1 -1
- package/dist/stripe-elements/svg/logo-apple-ar.svg +1 -1
- package/dist/stripe-elements/svg/logo-apple.svg +1 -1
- package/dist/stripe-elements/svg/logo-behance.svg +1 -1
- package/dist/stripe-elements/svg/logo-bitbucket.svg +1 -1
- package/dist/stripe-elements/svg/logo-bitcoin.svg +1 -1
- package/dist/stripe-elements/svg/logo-buffer.svg +1 -1
- package/dist/stripe-elements/svg/logo-capacitor.svg +1 -1
- package/dist/stripe-elements/svg/logo-chrome.svg +1 -1
- package/dist/stripe-elements/svg/logo-closed-captioning.svg +1 -1
- package/dist/stripe-elements/svg/logo-codepen.svg +1 -1
- package/dist/stripe-elements/svg/logo-css3.svg +1 -1
- package/dist/stripe-elements/svg/logo-designernews.svg +1 -1
- package/dist/stripe-elements/svg/logo-deviantart.svg +1 -1
- package/dist/stripe-elements/svg/logo-discord.svg +1 -1
- package/dist/stripe-elements/svg/logo-docker.svg +1 -1
- package/dist/stripe-elements/svg/logo-dribbble.svg +1 -1
- package/dist/stripe-elements/svg/logo-dropbox.svg +1 -1
- package/dist/stripe-elements/svg/logo-edge.svg +1 -1
- package/dist/stripe-elements/svg/logo-electron.svg +1 -1
- package/dist/stripe-elements/svg/logo-euro.svg +1 -1
- package/dist/stripe-elements/svg/logo-facebook.svg +1 -1
- package/dist/stripe-elements/svg/logo-figma.svg +1 -1
- package/dist/stripe-elements/svg/logo-firebase.svg +1 -1
- package/dist/stripe-elements/svg/logo-firefox.svg +1 -1
- package/dist/stripe-elements/svg/logo-flickr.svg +1 -1
- package/dist/stripe-elements/svg/logo-foursquare.svg +1 -1
- package/dist/stripe-elements/svg/logo-github.svg +1 -1
- package/dist/stripe-elements/svg/logo-gitlab.svg +1 -1
- package/dist/stripe-elements/svg/logo-google-playstore.svg +1 -1
- package/dist/stripe-elements/svg/logo-google.svg +1 -1
- package/dist/stripe-elements/svg/logo-hackernews.svg +1 -1
- package/dist/stripe-elements/svg/logo-html5.svg +1 -1
- package/dist/stripe-elements/svg/logo-instagram.svg +1 -1
- package/dist/stripe-elements/svg/logo-ionic.svg +1 -1
- package/dist/stripe-elements/svg/logo-ionitron.svg +1 -1
- package/dist/stripe-elements/svg/logo-javascript.svg +1 -1
- package/dist/stripe-elements/svg/logo-laravel.svg +1 -1
- package/dist/stripe-elements/svg/logo-linkedin.svg +1 -1
- package/dist/stripe-elements/svg/logo-markdown.svg +1 -1
- package/dist/stripe-elements/svg/logo-mastodon.svg +1 -1
- package/dist/stripe-elements/svg/logo-medium.svg +1 -1
- package/dist/stripe-elements/svg/logo-microsoft.svg +1 -1
- package/dist/stripe-elements/svg/logo-no-smoking.svg +1 -1
- package/dist/stripe-elements/svg/logo-nodejs.svg +1 -1
- package/dist/stripe-elements/svg/logo-npm.svg +1 -1
- package/dist/stripe-elements/svg/logo-octocat.svg +1 -1
- package/dist/stripe-elements/svg/logo-paypal.svg +1 -1
- package/dist/stripe-elements/svg/logo-pinterest.svg +1 -1
- package/dist/stripe-elements/svg/logo-playstation.svg +1 -1
- package/dist/stripe-elements/svg/logo-pwa.svg +1 -1
- package/dist/stripe-elements/svg/logo-python.svg +1 -1
- package/dist/stripe-elements/svg/logo-react.svg +1 -1
- package/dist/stripe-elements/svg/logo-reddit.svg +1 -1
- package/dist/stripe-elements/svg/logo-rss.svg +1 -1
- package/dist/stripe-elements/svg/logo-sass.svg +1 -1
- package/dist/stripe-elements/svg/logo-skype.svg +1 -1
- package/dist/stripe-elements/svg/logo-slack.svg +1 -1
- package/dist/stripe-elements/svg/logo-snapchat.svg +1 -1
- package/dist/stripe-elements/svg/logo-soundcloud.svg +1 -1
- package/dist/stripe-elements/svg/logo-stackoverflow.svg +1 -1
- package/dist/stripe-elements/svg/logo-steam.svg +1 -1
- package/dist/stripe-elements/svg/logo-stencil.svg +1 -1
- package/dist/stripe-elements/svg/logo-tableau.svg +1 -1
- package/dist/stripe-elements/svg/logo-tiktok.svg +1 -1
- package/dist/stripe-elements/svg/logo-tumblr.svg +1 -1
- package/dist/stripe-elements/svg/logo-tux.svg +1 -1
- package/dist/stripe-elements/svg/logo-twitch.svg +1 -1
- package/dist/stripe-elements/svg/logo-twitter.svg +1 -1
- package/dist/stripe-elements/svg/logo-usd.svg +1 -1
- package/dist/stripe-elements/svg/logo-venmo.svg +1 -1
- package/dist/stripe-elements/svg/logo-vercel.svg +1 -1
- package/dist/stripe-elements/svg/logo-vimeo.svg +1 -1
- package/dist/stripe-elements/svg/logo-vk.svg +1 -1
- package/dist/stripe-elements/svg/logo-vue.svg +1 -1
- package/dist/stripe-elements/svg/logo-web-component.svg +1 -1
- package/dist/stripe-elements/svg/logo-wechat.svg +1 -1
- package/dist/stripe-elements/svg/logo-whatsapp.svg +1 -1
- package/dist/stripe-elements/svg/logo-windows.svg +1 -1
- package/dist/stripe-elements/svg/logo-wordpress.svg +1 -1
- package/dist/stripe-elements/svg/logo-xbox.svg +1 -1
- package/dist/stripe-elements/svg/logo-xing.svg +1 -1
- package/dist/stripe-elements/svg/logo-yahoo.svg +1 -1
- package/dist/stripe-elements/svg/logo-yen.svg +1 -1
- package/dist/stripe-elements/svg/logo-youtube.svg +1 -1
- package/dist/stripe-elements/svg/magnet-outline.svg +1 -1
- package/dist/stripe-elements/svg/magnet-sharp.svg +1 -1
- package/dist/stripe-elements/svg/magnet.svg +1 -1
- package/dist/stripe-elements/svg/mail-open-outline.svg +1 -1
- package/dist/stripe-elements/svg/mail-open-sharp.svg +1 -1
- package/dist/stripe-elements/svg/mail-open.svg +1 -1
- package/dist/stripe-elements/svg/mail-outline.svg +1 -1
- package/dist/stripe-elements/svg/mail-sharp.svg +1 -1
- package/dist/stripe-elements/svg/mail-unread-outline.svg +1 -1
- package/dist/stripe-elements/svg/mail-unread-sharp.svg +1 -1
- package/dist/stripe-elements/svg/mail-unread.svg +1 -1
- package/dist/stripe-elements/svg/mail.svg +1 -1
- package/dist/stripe-elements/svg/male-female-outline.svg +1 -1
- package/dist/stripe-elements/svg/male-female-sharp.svg +1 -1
- package/dist/stripe-elements/svg/male-female.svg +1 -1
- package/dist/stripe-elements/svg/male-outline.svg +1 -1
- package/dist/stripe-elements/svg/male-sharp.svg +1 -1
- package/dist/stripe-elements/svg/male.svg +1 -1
- package/dist/stripe-elements/svg/man-outline.svg +1 -1
- package/dist/stripe-elements/svg/man-sharp.svg +1 -1
- package/dist/stripe-elements/svg/man.svg +1 -1
- package/dist/stripe-elements/svg/map-outline.svg +1 -1
- package/dist/stripe-elements/svg/map-sharp.svg +1 -1
- package/dist/stripe-elements/svg/map.svg +1 -1
- package/dist/stripe-elements/svg/medal-outline.svg +1 -1
- package/dist/stripe-elements/svg/medal-sharp.svg +1 -1
- package/dist/stripe-elements/svg/medal.svg +1 -1
- package/dist/stripe-elements/svg/medical-outline.svg +1 -1
- package/dist/stripe-elements/svg/medical-sharp.svg +1 -1
- package/dist/stripe-elements/svg/medical.svg +1 -1
- package/dist/stripe-elements/svg/medkit-outline.svg +1 -1
- package/dist/stripe-elements/svg/medkit-sharp.svg +1 -1
- package/dist/stripe-elements/svg/medkit.svg +1 -1
- package/dist/stripe-elements/svg/megaphone-outline.svg +1 -1
- package/dist/stripe-elements/svg/megaphone-sharp.svg +1 -1
- package/dist/stripe-elements/svg/megaphone.svg +1 -1
- package/dist/stripe-elements/svg/menu-outline.svg +1 -1
- package/dist/stripe-elements/svg/menu-sharp.svg +1 -1
- package/dist/stripe-elements/svg/menu.svg +1 -1
- package/dist/stripe-elements/svg/mic-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/mic-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/mic-circle.svg +1 -1
- package/dist/stripe-elements/svg/mic-off-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/mic-off-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/mic-off-circle.svg +1 -1
- package/dist/stripe-elements/svg/mic-off-outline.svg +1 -1
- package/dist/stripe-elements/svg/mic-off-sharp.svg +1 -1
- package/dist/stripe-elements/svg/mic-off.svg +1 -1
- package/dist/stripe-elements/svg/mic-outline.svg +1 -1
- package/dist/stripe-elements/svg/mic-sharp.svg +1 -1
- package/dist/stripe-elements/svg/mic.svg +1 -1
- package/dist/stripe-elements/svg/moon-outline.svg +1 -1
- package/dist/stripe-elements/svg/moon-sharp.svg +1 -1
- package/dist/stripe-elements/svg/moon.svg +1 -1
- package/dist/stripe-elements/svg/move-outline.svg +1 -1
- package/dist/stripe-elements/svg/move-sharp.svg +1 -1
- package/dist/stripe-elements/svg/move.svg +1 -1
- package/dist/stripe-elements/svg/musical-note-outline.svg +1 -1
- package/dist/stripe-elements/svg/musical-note-sharp.svg +1 -1
- package/dist/stripe-elements/svg/musical-note.svg +1 -1
- package/dist/stripe-elements/svg/musical-notes-outline.svg +1 -1
- package/dist/stripe-elements/svg/musical-notes-sharp.svg +1 -1
- package/dist/stripe-elements/svg/musical-notes.svg +1 -1
- package/dist/stripe-elements/svg/navigate-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/navigate-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/navigate-circle.svg +1 -1
- package/dist/stripe-elements/svg/navigate-outline.svg +1 -1
- package/dist/stripe-elements/svg/navigate-sharp.svg +1 -1
- package/dist/stripe-elements/svg/navigate.svg +1 -1
- package/dist/stripe-elements/svg/newspaper-outline.svg +1 -1
- package/dist/stripe-elements/svg/newspaper-sharp.svg +1 -1
- package/dist/stripe-elements/svg/newspaper.svg +1 -1
- package/dist/stripe-elements/svg/notifications-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/notifications-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/notifications-circle.svg +1 -1
- package/dist/stripe-elements/svg/notifications-off-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/notifications-off-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/notifications-off-circle.svg +1 -1
- package/dist/stripe-elements/svg/notifications-off-outline.svg +1 -1
- package/dist/stripe-elements/svg/notifications-off-sharp.svg +1 -1
- package/dist/stripe-elements/svg/notifications-off.svg +1 -1
- package/dist/stripe-elements/svg/notifications-outline.svg +1 -1
- package/dist/stripe-elements/svg/notifications-sharp.svg +1 -1
- package/dist/stripe-elements/svg/notifications.svg +1 -1
- package/dist/stripe-elements/svg/nuclear-outline.svg +1 -1
- package/dist/stripe-elements/svg/nuclear-sharp.svg +1 -1
- package/dist/stripe-elements/svg/nuclear.svg +1 -1
- package/dist/stripe-elements/svg/nutrition-outline.svg +1 -1
- package/dist/stripe-elements/svg/nutrition-sharp.svg +1 -1
- package/dist/stripe-elements/svg/nutrition.svg +1 -1
- package/dist/stripe-elements/svg/open-outline.svg +1 -1
- package/dist/stripe-elements/svg/open-sharp.svg +1 -1
- package/dist/stripe-elements/svg/open.svg +1 -1
- package/dist/stripe-elements/svg/options-outline.svg +1 -1
- package/dist/stripe-elements/svg/options-sharp.svg +1 -1
- package/dist/stripe-elements/svg/options.svg +1 -1
- package/dist/stripe-elements/svg/paper-plane-outline.svg +1 -1
- package/dist/stripe-elements/svg/paper-plane-sharp.svg +1 -1
- package/dist/stripe-elements/svg/paper-plane.svg +1 -1
- package/dist/stripe-elements/svg/partly-sunny-outline.svg +1 -1
- package/dist/stripe-elements/svg/partly-sunny-sharp.svg +1 -1
- package/dist/stripe-elements/svg/partly-sunny.svg +1 -1
- package/dist/stripe-elements/svg/pause-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/pause-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/pause-circle.svg +1 -1
- package/dist/stripe-elements/svg/pause-outline.svg +1 -1
- package/dist/stripe-elements/svg/pause-sharp.svg +1 -1
- package/dist/stripe-elements/svg/pause.svg +1 -1
- package/dist/stripe-elements/svg/paw-outline.svg +1 -1
- package/dist/stripe-elements/svg/paw-sharp.svg +1 -1
- package/dist/stripe-elements/svg/paw.svg +1 -1
- package/dist/stripe-elements/svg/pencil-outline.svg +1 -1
- package/dist/stripe-elements/svg/pencil-sharp.svg +1 -1
- package/dist/stripe-elements/svg/pencil.svg +1 -1
- package/dist/stripe-elements/svg/people-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/people-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/people-circle.svg +1 -1
- package/dist/stripe-elements/svg/people-outline.svg +1 -1
- package/dist/stripe-elements/svg/people-sharp.svg +1 -1
- package/dist/stripe-elements/svg/people.svg +1 -1
- package/dist/stripe-elements/svg/person-add-outline.svg +1 -1
- package/dist/stripe-elements/svg/person-add-sharp.svg +1 -1
- package/dist/stripe-elements/svg/person-add.svg +1 -1
- package/dist/stripe-elements/svg/person-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/person-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/person-circle.svg +1 -1
- package/dist/stripe-elements/svg/person-outline.svg +1 -1
- package/dist/stripe-elements/svg/person-remove-outline.svg +1 -1
- package/dist/stripe-elements/svg/person-remove-sharp.svg +1 -1
- package/dist/stripe-elements/svg/person-remove.svg +1 -1
- package/dist/stripe-elements/svg/person-sharp.svg +1 -1
- package/dist/stripe-elements/svg/person.svg +1 -1
- package/dist/stripe-elements/svg/phone-landscape-outline.svg +1 -1
- package/dist/stripe-elements/svg/phone-landscape-sharp.svg +1 -1
- package/dist/stripe-elements/svg/phone-landscape.svg +1 -1
- package/dist/stripe-elements/svg/phone-portrait-outline.svg +1 -1
- package/dist/stripe-elements/svg/phone-portrait-sharp.svg +1 -1
- package/dist/stripe-elements/svg/phone-portrait.svg +1 -1
- package/dist/stripe-elements/svg/pie-chart-outline.svg +1 -1
- package/dist/stripe-elements/svg/pie-chart-sharp.svg +1 -1
- package/dist/stripe-elements/svg/pie-chart.svg +1 -1
- package/dist/stripe-elements/svg/pin-outline.svg +1 -1
- package/dist/stripe-elements/svg/pin-sharp.svg +1 -1
- package/dist/stripe-elements/svg/pin.svg +1 -1
- package/dist/stripe-elements/svg/pint-outline.svg +1 -1
- package/dist/stripe-elements/svg/pint-sharp.svg +1 -1
- package/dist/stripe-elements/svg/pint.svg +1 -1
- package/dist/stripe-elements/svg/pizza-outline.svg +1 -1
- package/dist/stripe-elements/svg/pizza-sharp.svg +1 -1
- package/dist/stripe-elements/svg/pizza.svg +1 -1
- package/dist/stripe-elements/svg/planet-outline.svg +1 -1
- package/dist/stripe-elements/svg/planet-sharp.svg +1 -1
- package/dist/stripe-elements/svg/planet.svg +1 -1
- package/dist/stripe-elements/svg/play-back-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/play-back-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/play-back-circle.svg +1 -1
- package/dist/stripe-elements/svg/play-back-outline.svg +1 -1
- package/dist/stripe-elements/svg/play-back-sharp.svg +1 -1
- package/dist/stripe-elements/svg/play-back.svg +1 -1
- package/dist/stripe-elements/svg/play-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/play-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/play-circle.svg +1 -1
- package/dist/stripe-elements/svg/play-forward-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/play-forward-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/play-forward-circle.svg +1 -1
- package/dist/stripe-elements/svg/play-forward-outline.svg +1 -1
- package/dist/stripe-elements/svg/play-forward-sharp.svg +1 -1
- package/dist/stripe-elements/svg/play-forward.svg +1 -1
- package/dist/stripe-elements/svg/play-outline.svg +1 -1
- package/dist/stripe-elements/svg/play-sharp.svg +1 -1
- package/dist/stripe-elements/svg/play-skip-back-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/play-skip-back-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/play-skip-back-circle.svg +1 -1
- package/dist/stripe-elements/svg/play-skip-back-outline.svg +1 -1
- package/dist/stripe-elements/svg/play-skip-back-sharp.svg +1 -1
- package/dist/stripe-elements/svg/play-skip-back.svg +1 -1
- package/dist/stripe-elements/svg/play-skip-forward-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/play-skip-forward-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/play-skip-forward-circle.svg +1 -1
- package/dist/stripe-elements/svg/play-skip-forward-outline.svg +1 -1
- package/dist/stripe-elements/svg/play-skip-forward-sharp.svg +1 -1
- package/dist/stripe-elements/svg/play-skip-forward.svg +1 -1
- package/dist/stripe-elements/svg/play.svg +1 -1
- package/dist/stripe-elements/svg/podium-outline.svg +1 -1
- package/dist/stripe-elements/svg/podium-sharp.svg +1 -1
- package/dist/stripe-elements/svg/podium.svg +1 -1
- package/dist/stripe-elements/svg/power-outline.svg +1 -1
- package/dist/stripe-elements/svg/power-sharp.svg +1 -1
- package/dist/stripe-elements/svg/power.svg +1 -1
- package/dist/stripe-elements/svg/pricetag-outline.svg +1 -1
- package/dist/stripe-elements/svg/pricetag-sharp.svg +1 -1
- package/dist/stripe-elements/svg/pricetag.svg +1 -1
- package/dist/stripe-elements/svg/pricetags-outline.svg +1 -1
- package/dist/stripe-elements/svg/pricetags-sharp.svg +1 -1
- package/dist/stripe-elements/svg/pricetags.svg +1 -1
- package/dist/stripe-elements/svg/print-outline.svg +1 -1
- package/dist/stripe-elements/svg/print-sharp.svg +1 -1
- package/dist/stripe-elements/svg/print.svg +1 -1
- package/dist/stripe-elements/svg/prism-outline.svg +1 -1
- package/dist/stripe-elements/svg/prism-sharp.svg +1 -1
- package/dist/stripe-elements/svg/prism.svg +1 -1
- package/dist/stripe-elements/svg/pulse-outline.svg +1 -1
- package/dist/stripe-elements/svg/pulse-sharp.svg +1 -1
- package/dist/stripe-elements/svg/pulse.svg +1 -1
- package/dist/stripe-elements/svg/push-outline.svg +1 -1
- package/dist/stripe-elements/svg/push-sharp.svg +1 -1
- package/dist/stripe-elements/svg/push.svg +1 -1
- package/dist/stripe-elements/svg/qr-code-outline.svg +1 -1
- package/dist/stripe-elements/svg/qr-code-sharp.svg +1 -1
- package/dist/stripe-elements/svg/qr-code.svg +1 -1
- package/dist/stripe-elements/svg/radio-button-off-outline.svg +1 -1
- package/dist/stripe-elements/svg/radio-button-off-sharp.svg +1 -1
- package/dist/stripe-elements/svg/radio-button-off.svg +1 -1
- package/dist/stripe-elements/svg/radio-button-on-outline.svg +1 -1
- package/dist/stripe-elements/svg/radio-button-on-sharp.svg +1 -1
- package/dist/stripe-elements/svg/radio-button-on.svg +1 -1
- package/dist/stripe-elements/svg/radio-outline.svg +1 -1
- package/dist/stripe-elements/svg/radio-sharp.svg +1 -1
- package/dist/stripe-elements/svg/radio.svg +1 -1
- package/dist/stripe-elements/svg/rainy-outline.svg +1 -1
- package/dist/stripe-elements/svg/rainy-sharp.svg +1 -1
- package/dist/stripe-elements/svg/rainy.svg +1 -1
- package/dist/stripe-elements/svg/reader-outline.svg +1 -1
- package/dist/stripe-elements/svg/reader-sharp.svg +1 -1
- package/dist/stripe-elements/svg/reader.svg +1 -1
- package/dist/stripe-elements/svg/receipt-outline.svg +1 -1
- package/dist/stripe-elements/svg/receipt-sharp.svg +1 -1
- package/dist/stripe-elements/svg/receipt.svg +1 -1
- package/dist/stripe-elements/svg/recording-outline.svg +1 -1
- package/dist/stripe-elements/svg/recording-sharp.svg +1 -1
- package/dist/stripe-elements/svg/recording.svg +1 -1
- package/dist/stripe-elements/svg/refresh-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/refresh-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/refresh-circle.svg +1 -1
- package/dist/stripe-elements/svg/refresh-outline.svg +1 -1
- package/dist/stripe-elements/svg/refresh-sharp.svg +1 -1
- package/dist/stripe-elements/svg/refresh.svg +1 -1
- package/dist/stripe-elements/svg/reload-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/reload-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/reload-circle.svg +1 -1
- package/dist/stripe-elements/svg/reload-outline.svg +1 -1
- package/dist/stripe-elements/svg/reload-sharp.svg +1 -1
- package/dist/stripe-elements/svg/reload.svg +1 -1
- package/dist/stripe-elements/svg/remove-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/remove-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/remove-circle.svg +1 -1
- package/dist/stripe-elements/svg/remove-outline.svg +1 -1
- package/dist/stripe-elements/svg/remove-sharp.svg +1 -1
- package/dist/stripe-elements/svg/remove.svg +1 -1
- package/dist/stripe-elements/svg/reorder-four-outline.svg +1 -1
- package/dist/stripe-elements/svg/reorder-four-sharp.svg +1 -1
- package/dist/stripe-elements/svg/reorder-four.svg +1 -1
- package/dist/stripe-elements/svg/reorder-three-outline.svg +1 -1
- package/dist/stripe-elements/svg/reorder-three-sharp.svg +1 -1
- package/dist/stripe-elements/svg/reorder-three.svg +1 -1
- package/dist/stripe-elements/svg/reorder-two-outline.svg +1 -1
- package/dist/stripe-elements/svg/reorder-two-sharp.svg +1 -1
- package/dist/stripe-elements/svg/reorder-two.svg +1 -1
- package/dist/stripe-elements/svg/repeat-outline.svg +1 -1
- package/dist/stripe-elements/svg/repeat-sharp.svg +1 -1
- package/dist/stripe-elements/svg/repeat.svg +1 -1
- package/dist/stripe-elements/svg/resize-outline.svg +1 -1
- package/dist/stripe-elements/svg/resize-sharp.svg +1 -1
- package/dist/stripe-elements/svg/resize.svg +1 -1
- package/dist/stripe-elements/svg/restaurant-outline.svg +1 -1
- package/dist/stripe-elements/svg/restaurant-sharp.svg +1 -1
- package/dist/stripe-elements/svg/restaurant.svg +1 -1
- package/dist/stripe-elements/svg/return-down-back-outline.svg +1 -1
- package/dist/stripe-elements/svg/return-down-back-sharp.svg +1 -1
- package/dist/stripe-elements/svg/return-down-back.svg +1 -1
- package/dist/stripe-elements/svg/return-down-forward-outline.svg +1 -1
- package/dist/stripe-elements/svg/return-down-forward-sharp.svg +1 -1
- package/dist/stripe-elements/svg/return-down-forward.svg +1 -1
- package/dist/stripe-elements/svg/return-up-back-outline.svg +1 -1
- package/dist/stripe-elements/svg/return-up-back-sharp.svg +1 -1
- package/dist/stripe-elements/svg/return-up-back.svg +1 -1
- package/dist/stripe-elements/svg/return-up-forward-outline.svg +1 -1
- package/dist/stripe-elements/svg/return-up-forward-sharp.svg +1 -1
- package/dist/stripe-elements/svg/return-up-forward.svg +1 -1
- package/dist/stripe-elements/svg/ribbon-outline.svg +1 -1
- package/dist/stripe-elements/svg/ribbon-sharp.svg +1 -1
- package/dist/stripe-elements/svg/ribbon.svg +1 -1
- package/dist/stripe-elements/svg/rocket-outline.svg +1 -1
- package/dist/stripe-elements/svg/rocket-sharp.svg +1 -1
- package/dist/stripe-elements/svg/rocket.svg +1 -1
- package/dist/stripe-elements/svg/rose-outline.svg +1 -1
- package/dist/stripe-elements/svg/rose-sharp.svg +1 -1
- package/dist/stripe-elements/svg/rose.svg +1 -1
- package/dist/stripe-elements/svg/sad-outline.svg +1 -1
- package/dist/stripe-elements/svg/sad-sharp.svg +1 -1
- package/dist/stripe-elements/svg/sad.svg +1 -1
- package/dist/stripe-elements/svg/save-outline.svg +1 -1
- package/dist/stripe-elements/svg/save-sharp.svg +1 -1
- package/dist/stripe-elements/svg/save.svg +1 -1
- package/dist/stripe-elements/svg/scale-outline.svg +1 -1
- package/dist/stripe-elements/svg/scale-sharp.svg +1 -1
- package/dist/stripe-elements/svg/scale.svg +1 -1
- package/dist/stripe-elements/svg/scan-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/scan-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/scan-circle.svg +1 -1
- package/dist/stripe-elements/svg/scan-outline.svg +1 -1
- package/dist/stripe-elements/svg/scan-sharp.svg +1 -1
- package/dist/stripe-elements/svg/scan.svg +1 -1
- package/dist/stripe-elements/svg/school-outline.svg +1 -1
- package/dist/stripe-elements/svg/school-sharp.svg +1 -1
- package/dist/stripe-elements/svg/school.svg +1 -1
- package/dist/stripe-elements/svg/search-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/search-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/search-circle.svg +1 -1
- package/dist/stripe-elements/svg/search-outline.svg +1 -1
- package/dist/stripe-elements/svg/search-sharp.svg +1 -1
- package/dist/stripe-elements/svg/search.svg +1 -1
- package/dist/stripe-elements/svg/send-outline.svg +1 -1
- package/dist/stripe-elements/svg/send-sharp.svg +1 -1
- package/dist/stripe-elements/svg/send.svg +1 -1
- package/dist/stripe-elements/svg/server-outline.svg +1 -1
- package/dist/stripe-elements/svg/server-sharp.svg +1 -1
- package/dist/stripe-elements/svg/server.svg +1 -1
- package/dist/stripe-elements/svg/settings-outline.svg +1 -1
- package/dist/stripe-elements/svg/settings-sharp.svg +1 -1
- package/dist/stripe-elements/svg/settings.svg +1 -1
- package/dist/stripe-elements/svg/shapes-outline.svg +1 -1
- package/dist/stripe-elements/svg/shapes-sharp.svg +1 -1
- package/dist/stripe-elements/svg/shapes.svg +1 -1
- package/dist/stripe-elements/svg/share-outline.svg +1 -1
- package/dist/stripe-elements/svg/share-sharp.svg +1 -1
- package/dist/stripe-elements/svg/share-social-outline.svg +1 -1
- package/dist/stripe-elements/svg/share-social-sharp.svg +1 -1
- package/dist/stripe-elements/svg/share-social.svg +1 -1
- package/dist/stripe-elements/svg/share.svg +1 -1
- package/dist/stripe-elements/svg/shield-checkmark-outline.svg +1 -1
- package/dist/stripe-elements/svg/shield-checkmark-sharp.svg +1 -1
- package/dist/stripe-elements/svg/shield-checkmark.svg +1 -1
- package/dist/stripe-elements/svg/shield-half-outline.svg +1 -1
- package/dist/stripe-elements/svg/shield-half-sharp.svg +1 -1
- package/dist/stripe-elements/svg/shield-half.svg +1 -1
- package/dist/stripe-elements/svg/shield-outline.svg +1 -1
- package/dist/stripe-elements/svg/shield-sharp.svg +1 -1
- package/dist/stripe-elements/svg/shield.svg +1 -1
- package/dist/stripe-elements/svg/shirt-outline.svg +1 -1
- package/dist/stripe-elements/svg/shirt-sharp.svg +1 -1
- package/dist/stripe-elements/svg/shirt.svg +1 -1
- package/dist/stripe-elements/svg/shuffle-outline.svg +1 -1
- package/dist/stripe-elements/svg/shuffle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/shuffle.svg +1 -1
- package/dist/stripe-elements/svg/skull-outline.svg +1 -1
- package/dist/stripe-elements/svg/skull-sharp.svg +1 -1
- package/dist/stripe-elements/svg/skull.svg +1 -1
- package/dist/stripe-elements/svg/snow-outline.svg +1 -1
- package/dist/stripe-elements/svg/snow-sharp.svg +1 -1
- package/dist/stripe-elements/svg/snow.svg +1 -1
- package/dist/stripe-elements/svg/sparkles-outline.svg +1 -1
- package/dist/stripe-elements/svg/sparkles-sharp.svg +1 -1
- package/dist/stripe-elements/svg/sparkles.svg +1 -1
- package/dist/stripe-elements/svg/speedometer-outline.svg +1 -1
- package/dist/stripe-elements/svg/speedometer-sharp.svg +1 -1
- package/dist/stripe-elements/svg/speedometer.svg +1 -1
- package/dist/stripe-elements/svg/square-outline.svg +1 -1
- package/dist/stripe-elements/svg/square-sharp.svg +1 -1
- package/dist/stripe-elements/svg/square.svg +1 -1
- package/dist/stripe-elements/svg/star-half-outline.svg +1 -1
- package/dist/stripe-elements/svg/star-half-sharp.svg +1 -1
- package/dist/stripe-elements/svg/star-half.svg +1 -1
- package/dist/stripe-elements/svg/star-outline.svg +1 -1
- package/dist/stripe-elements/svg/star-sharp.svg +1 -1
- package/dist/stripe-elements/svg/star.svg +1 -1
- package/dist/stripe-elements/svg/stats-chart-outline.svg +1 -1
- package/dist/stripe-elements/svg/stats-chart-sharp.svg +1 -1
- package/dist/stripe-elements/svg/stats-chart.svg +1 -1
- package/dist/stripe-elements/svg/stop-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/stop-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/stop-circle.svg +1 -1
- package/dist/stripe-elements/svg/stop-outline.svg +1 -1
- package/dist/stripe-elements/svg/stop-sharp.svg +1 -1
- package/dist/stripe-elements/svg/stop.svg +1 -1
- package/dist/stripe-elements/svg/stopwatch-outline.svg +1 -1
- package/dist/stripe-elements/svg/stopwatch-sharp.svg +1 -1
- package/dist/stripe-elements/svg/stopwatch.svg +1 -1
- package/dist/stripe-elements/svg/storefront-outline.svg +1 -1
- package/dist/stripe-elements/svg/storefront-sharp.svg +1 -1
- package/dist/stripe-elements/svg/storefront.svg +1 -1
- package/dist/stripe-elements/svg/subway-outline.svg +1 -1
- package/dist/stripe-elements/svg/subway-sharp.svg +1 -1
- package/dist/stripe-elements/svg/subway.svg +1 -1
- package/dist/stripe-elements/svg/sunny-outline.svg +1 -1
- package/dist/stripe-elements/svg/sunny-sharp.svg +1 -1
- package/dist/stripe-elements/svg/sunny.svg +1 -1
- package/dist/stripe-elements/svg/swap-horizontal-outline.svg +1 -1
- package/dist/stripe-elements/svg/swap-horizontal-sharp.svg +1 -1
- package/dist/stripe-elements/svg/swap-horizontal.svg +1 -1
- package/dist/stripe-elements/svg/swap-vertical-outline.svg +1 -1
- package/dist/stripe-elements/svg/swap-vertical-sharp.svg +1 -1
- package/dist/stripe-elements/svg/swap-vertical.svg +1 -1
- package/dist/stripe-elements/svg/sync-circle-outline.svg +1 -1
- package/dist/stripe-elements/svg/sync-circle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/sync-circle.svg +1 -1
- package/dist/stripe-elements/svg/sync-outline.svg +1 -1
- package/dist/stripe-elements/svg/sync-sharp.svg +1 -1
- package/dist/stripe-elements/svg/sync.svg +1 -1
- package/dist/stripe-elements/svg/tablet-landscape-outline.svg +1 -1
- package/dist/stripe-elements/svg/tablet-landscape-sharp.svg +1 -1
- package/dist/stripe-elements/svg/tablet-landscape.svg +1 -1
- package/dist/stripe-elements/svg/tablet-portrait-outline.svg +1 -1
- package/dist/stripe-elements/svg/tablet-portrait-sharp.svg +1 -1
- package/dist/stripe-elements/svg/tablet-portrait.svg +1 -1
- package/dist/stripe-elements/svg/telescope-outline.svg +1 -1
- package/dist/stripe-elements/svg/telescope-sharp.svg +1 -1
- package/dist/stripe-elements/svg/telescope.svg +1 -1
- package/dist/stripe-elements/svg/tennisball-outline.svg +1 -1
- package/dist/stripe-elements/svg/tennisball-sharp.svg +1 -1
- package/dist/stripe-elements/svg/tennisball.svg +1 -1
- package/dist/stripe-elements/svg/terminal-outline.svg +1 -1
- package/dist/stripe-elements/svg/terminal-sharp.svg +1 -1
- package/dist/stripe-elements/svg/terminal.svg +1 -1
- package/dist/stripe-elements/svg/text-outline.svg +1 -1
- package/dist/stripe-elements/svg/text-sharp.svg +1 -1
- package/dist/stripe-elements/svg/text.svg +1 -1
- package/dist/stripe-elements/svg/thermometer-outline.svg +1 -1
- package/dist/stripe-elements/svg/thermometer-sharp.svg +1 -1
- package/dist/stripe-elements/svg/thermometer.svg +1 -1
- package/dist/stripe-elements/svg/thumbs-down-outline.svg +1 -1
- package/dist/stripe-elements/svg/thumbs-down-sharp.svg +1 -1
- package/dist/stripe-elements/svg/thumbs-down.svg +1 -1
- package/dist/stripe-elements/svg/thumbs-up-outline.svg +1 -1
- package/dist/stripe-elements/svg/thumbs-up-sharp.svg +1 -1
- package/dist/stripe-elements/svg/thumbs-up.svg +1 -1
- package/dist/stripe-elements/svg/thunderstorm-outline.svg +1 -1
- package/dist/stripe-elements/svg/thunderstorm-sharp.svg +1 -1
- package/dist/stripe-elements/svg/thunderstorm.svg +1 -1
- package/dist/stripe-elements/svg/ticket-outline.svg +1 -1
- package/dist/stripe-elements/svg/ticket-sharp.svg +1 -1
- package/dist/stripe-elements/svg/ticket.svg +1 -1
- package/dist/stripe-elements/svg/time-outline.svg +1 -1
- package/dist/stripe-elements/svg/time-sharp.svg +1 -1
- package/dist/stripe-elements/svg/time.svg +1 -1
- package/dist/stripe-elements/svg/timer-outline.svg +1 -1
- package/dist/stripe-elements/svg/timer-sharp.svg +1 -1
- package/dist/stripe-elements/svg/timer.svg +1 -1
- package/dist/stripe-elements/svg/today-outline.svg +1 -1
- package/dist/stripe-elements/svg/today-sharp.svg +1 -1
- package/dist/stripe-elements/svg/today.svg +1 -1
- package/dist/stripe-elements/svg/toggle-outline.svg +1 -1
- package/dist/stripe-elements/svg/toggle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/toggle.svg +1 -1
- package/dist/stripe-elements/svg/trail-sign-outline.svg +1 -1
- package/dist/stripe-elements/svg/trail-sign-sharp.svg +1 -1
- package/dist/stripe-elements/svg/trail-sign.svg +1 -1
- package/dist/stripe-elements/svg/train-outline.svg +1 -1
- package/dist/stripe-elements/svg/train-sharp.svg +1 -1
- package/dist/stripe-elements/svg/train.svg +1 -1
- package/dist/stripe-elements/svg/transgender-outline.svg +1 -1
- package/dist/stripe-elements/svg/transgender-sharp.svg +1 -1
- package/dist/stripe-elements/svg/transgender.svg +1 -1
- package/dist/stripe-elements/svg/trash-bin-outline.svg +1 -1
- package/dist/stripe-elements/svg/trash-bin-sharp.svg +1 -1
- package/dist/stripe-elements/svg/trash-bin.svg +1 -1
- package/dist/stripe-elements/svg/trash-outline.svg +1 -1
- package/dist/stripe-elements/svg/trash-sharp.svg +1 -1
- package/dist/stripe-elements/svg/trash.svg +1 -1
- package/dist/stripe-elements/svg/trending-down-outline.svg +1 -1
- package/dist/stripe-elements/svg/trending-down-sharp.svg +1 -1
- package/dist/stripe-elements/svg/trending-down.svg +1 -1
- package/dist/stripe-elements/svg/trending-up-outline.svg +1 -1
- package/dist/stripe-elements/svg/trending-up-sharp.svg +1 -1
- package/dist/stripe-elements/svg/trending-up.svg +1 -1
- package/dist/stripe-elements/svg/triangle-outline.svg +1 -1
- package/dist/stripe-elements/svg/triangle-sharp.svg +1 -1
- package/dist/stripe-elements/svg/triangle.svg +1 -1
- package/dist/stripe-elements/svg/trophy-outline.svg +1 -1
- package/dist/stripe-elements/svg/trophy-sharp.svg +1 -1
- package/dist/stripe-elements/svg/trophy.svg +1 -1
- package/dist/stripe-elements/svg/tv-outline.svg +1 -1
- package/dist/stripe-elements/svg/tv-sharp.svg +1 -1
- package/dist/stripe-elements/svg/tv.svg +1 -1
- package/dist/stripe-elements/svg/umbrella-outline.svg +1 -1
- package/dist/stripe-elements/svg/umbrella-sharp.svg +1 -1
- package/dist/stripe-elements/svg/umbrella.svg +1 -1
- package/dist/stripe-elements/svg/unlink-outline.svg +1 -1
- package/dist/stripe-elements/svg/unlink-sharp.svg +1 -1
- package/dist/stripe-elements/svg/unlink.svg +1 -1
- package/dist/stripe-elements/svg/videocam-off-outline.svg +1 -1
- package/dist/stripe-elements/svg/videocam-off-sharp.svg +1 -1
- package/dist/stripe-elements/svg/videocam-off.svg +1 -1
- package/dist/stripe-elements/svg/videocam-outline.svg +1 -1
- package/dist/stripe-elements/svg/videocam-sharp.svg +1 -1
- package/dist/stripe-elements/svg/videocam.svg +1 -1
- package/dist/stripe-elements/svg/volume-high-outline.svg +1 -1
- package/dist/stripe-elements/svg/volume-high-sharp.svg +1 -1
- package/dist/stripe-elements/svg/volume-high.svg +1 -1
- package/dist/stripe-elements/svg/volume-low-outline.svg +1 -1
- package/dist/stripe-elements/svg/volume-low-sharp.svg +1 -1
- package/dist/stripe-elements/svg/volume-low.svg +1 -1
- package/dist/stripe-elements/svg/volume-medium-outline.svg +1 -1
- package/dist/stripe-elements/svg/volume-medium-sharp.svg +1 -1
- package/dist/stripe-elements/svg/volume-medium.svg +1 -1
- package/dist/stripe-elements/svg/volume-mute-outline.svg +1 -1
- package/dist/stripe-elements/svg/volume-mute-sharp.svg +1 -1
- package/dist/stripe-elements/svg/volume-mute.svg +1 -1
- package/dist/stripe-elements/svg/volume-off-outline.svg +1 -1
- package/dist/stripe-elements/svg/volume-off-sharp.svg +1 -1
- package/dist/stripe-elements/svg/volume-off.svg +1 -1
- package/dist/stripe-elements/svg/walk-outline.svg +1 -1
- package/dist/stripe-elements/svg/walk-sharp.svg +1 -1
- package/dist/stripe-elements/svg/walk.svg +1 -1
- package/dist/stripe-elements/svg/wallet-outline.svg +1 -1
- package/dist/stripe-elements/svg/wallet-sharp.svg +1 -1
- package/dist/stripe-elements/svg/wallet.svg +1 -1
- package/dist/stripe-elements/svg/warning-outline.svg +1 -1
- package/dist/stripe-elements/svg/warning-sharp.svg +1 -1
- package/dist/stripe-elements/svg/warning.svg +1 -1
- package/dist/stripe-elements/svg/watch-outline.svg +1 -1
- package/dist/stripe-elements/svg/watch-sharp.svg +1 -1
- package/dist/stripe-elements/svg/watch.svg +1 -1
- package/dist/stripe-elements/svg/water-outline.svg +1 -1
- package/dist/stripe-elements/svg/water-sharp.svg +1 -1
- package/dist/stripe-elements/svg/water.svg +1 -1
- package/dist/stripe-elements/svg/wifi-outline.svg +1 -1
- package/dist/stripe-elements/svg/wifi-sharp.svg +1 -1
- package/dist/stripe-elements/svg/wifi.svg +1 -1
- package/dist/stripe-elements/svg/wine-outline.svg +1 -1
- package/dist/stripe-elements/svg/wine-sharp.svg +1 -1
- package/dist/stripe-elements/svg/wine.svg +1 -1
- package/dist/stripe-elements/svg/woman-outline.svg +1 -1
- package/dist/stripe-elements/svg/woman-sharp.svg +1 -1
- package/dist/stripe-elements/svg/woman.svg +1 -1
- package/dist/types/components.d.ts +3 -0
- package/dist/types/interfaces.d.ts +12 -12
- package/dist/types/stencil-public-runtime.d.ts +92 -19
- package/dist/types/utils/platform.d.ts +1 -1
- package/loader/index.d.ts +9 -0
- package/loader/package.json +1 -0
- package/package.json +24 -24
- package/dist/custom-elements/index.d.ts +0 -63
- package/dist/stripe-elements/p-3922cc8d.js +0 -2
- package/dist/stripe-elements/p-50848f78.entry.js +0 -1
- package/dist/stripe-elements/p-56a89bc1.js +0 -1
- package/dist/stripe-elements/p-61d8b918.entry.js +0 -1
- package/dist/stripe-elements/p-9232a32e.entry.js +0 -1
- package/dist/stripe-elements/p-cdf60a81.entry.js +0 -1
|
@@ -22,6 +22,14 @@ function _interopNamespace(e) {
|
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'stripe-elements';
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Virtual DOM patching algorithm based on Snabbdom by
|
|
27
|
+
* Simon Friis Vindum (@paldepind)
|
|
28
|
+
* Licensed under the MIT License
|
|
29
|
+
* https://github.com/snabbdom/snabbdom/blob/master/LICENSE
|
|
30
|
+
*
|
|
31
|
+
* Modified for Stencil's renderer and slot projection
|
|
32
|
+
*/
|
|
25
33
|
let scopeId;
|
|
26
34
|
let contentRef;
|
|
27
35
|
let hostTagName;
|
|
@@ -30,29 +38,10 @@ let checkSlotFallbackVisibility = false;
|
|
|
30
38
|
let checkSlotRelocate = false;
|
|
31
39
|
let isSvgMode = false;
|
|
32
40
|
let queuePending = false;
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
$flags$: 0,
|
|
37
|
-
$resourcesUrl$: '',
|
|
38
|
-
jmp: (h) => h(),
|
|
39
|
-
raf: (h) => requestAnimationFrame(h),
|
|
40
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
41
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
42
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
41
|
+
const getAssetPath = (path) => {
|
|
42
|
+
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
43
|
+
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
43
44
|
};
|
|
44
|
-
const promiseResolve = (v) => Promise.resolve(v);
|
|
45
|
-
const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
|
|
46
|
-
try {
|
|
47
|
-
new CSSStyleSheet();
|
|
48
|
-
return typeof new CSSStyleSheet().replace === 'function';
|
|
49
|
-
}
|
|
50
|
-
catch (e) { }
|
|
51
|
-
return false;
|
|
52
|
-
})()
|
|
53
|
-
;
|
|
54
|
-
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
55
|
-
const XLINK_NS = 'http://www.w3.org/1999/xlink';
|
|
56
45
|
const createTime = (fnName, tagName = '') => {
|
|
57
46
|
{
|
|
58
47
|
return () => {
|
|
@@ -67,71 +56,8 @@ const uniqueTime = (key, measureText) => {
|
|
|
67
56
|
};
|
|
68
57
|
}
|
|
69
58
|
};
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
let style = styles.get(scopeId);
|
|
73
|
-
if (supportsConstructibleStylesheets && allowCS) {
|
|
74
|
-
style = (style || new CSSStyleSheet());
|
|
75
|
-
style.replace(cssText);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
style = cssText;
|
|
79
|
-
}
|
|
80
|
-
styles.set(scopeId, style);
|
|
81
|
-
};
|
|
82
|
-
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
83
|
-
let scopeId = getScopeId(cmpMeta);
|
|
84
|
-
const style = styles.get(scopeId);
|
|
85
|
-
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
86
|
-
// so the fallback is to always use the document for the root node in those cases
|
|
87
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
88
|
-
if (style) {
|
|
89
|
-
if (typeof style === 'string') {
|
|
90
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
91
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
92
|
-
let styleElm;
|
|
93
|
-
if (!appliedStyles) {
|
|
94
|
-
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
95
|
-
}
|
|
96
|
-
if (!appliedStyles.has(scopeId)) {
|
|
97
|
-
{
|
|
98
|
-
{
|
|
99
|
-
styleElm = doc.createElement('style');
|
|
100
|
-
styleElm.innerHTML = style;
|
|
101
|
-
}
|
|
102
|
-
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
103
|
-
}
|
|
104
|
-
if (appliedStyles) {
|
|
105
|
-
appliedStyles.add(scopeId);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
110
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return scopeId;
|
|
114
|
-
};
|
|
115
|
-
const attachStyles = (hostRef) => {
|
|
116
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
117
|
-
const elm = hostRef.$hostElement$;
|
|
118
|
-
const flags = cmpMeta.$flags$;
|
|
119
|
-
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
120
|
-
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
121
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
122
|
-
// only required when we're NOT using native shadow dom (slot)
|
|
123
|
-
// or this browser doesn't support native shadow dom
|
|
124
|
-
// and this host element was NOT created with SSR
|
|
125
|
-
// let's pick out the inner content for slot projection
|
|
126
|
-
// create a node to represent where the original
|
|
127
|
-
// content was first placed, which is useful later on
|
|
128
|
-
// DOM WRITE!!
|
|
129
|
-
elm['s-sc'] = scopeId;
|
|
130
|
-
elm.classList.add(scopeId + '-h');
|
|
131
|
-
}
|
|
132
|
-
endAttachStyles();
|
|
133
|
-
};
|
|
134
|
-
const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
59
|
+
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
60
|
+
const XLINK_NS = 'http://www.w3.org/1999/xlink';
|
|
135
61
|
/**
|
|
136
62
|
* Default style mode id
|
|
137
63
|
*/
|
|
@@ -141,11 +67,30 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
141
67
|
*/
|
|
142
68
|
const EMPTY_OBJ = {};
|
|
143
69
|
const isDef = (v) => v != null;
|
|
70
|
+
/**
|
|
71
|
+
* Check whether a value is a 'complex type', defined here as an object or a
|
|
72
|
+
* function.
|
|
73
|
+
*
|
|
74
|
+
* @param o the value to check
|
|
75
|
+
* @returns whether it's a complex type or not
|
|
76
|
+
*/
|
|
144
77
|
const isComplexType = (o) => {
|
|
145
78
|
// https://jsperf.com/typeof-fn-object/5
|
|
146
79
|
o = typeof o;
|
|
147
80
|
return o === 'object' || o === 'function';
|
|
148
81
|
};
|
|
82
|
+
/**
|
|
83
|
+
* Helper method for querying a `meta` tag that contains a nonce value
|
|
84
|
+
* out of a DOM's head.
|
|
85
|
+
*
|
|
86
|
+
* @param doc The DOM containing the `head` to query against
|
|
87
|
+
* @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
|
|
88
|
+
* exists or the tag has no content.
|
|
89
|
+
*/
|
|
90
|
+
function queryNonceMetaTagContent(doc) {
|
|
91
|
+
var _a, _b, _c;
|
|
92
|
+
return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
|
|
93
|
+
}
|
|
149
94
|
/**
|
|
150
95
|
* Production h() function based on Preact by
|
|
151
96
|
* Jason Miller (@developit)
|
|
@@ -154,7 +99,6 @@ const isComplexType = (o) => {
|
|
|
154
99
|
*
|
|
155
100
|
* Modified for Stencil's compiler and vdom
|
|
156
101
|
*/
|
|
157
|
-
// const stack: any[] = [];
|
|
158
102
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
|
|
159
103
|
// export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
|
|
160
104
|
const h = (nodeName, vnodeData, ...children) => {
|
|
@@ -220,6 +164,14 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
220
164
|
}
|
|
221
165
|
return vnode;
|
|
222
166
|
};
|
|
167
|
+
/**
|
|
168
|
+
* A utility function for creating a virtual DOM node from a tag and some
|
|
169
|
+
* possible text content.
|
|
170
|
+
*
|
|
171
|
+
* @param tag the tag for this element
|
|
172
|
+
* @param text possible text content for the node
|
|
173
|
+
* @returns a newly-minted virtual DOM node
|
|
174
|
+
*/
|
|
223
175
|
const newVNode = (tag, text) => {
|
|
224
176
|
const vnode = {
|
|
225
177
|
$flags$: 0,
|
|
@@ -240,7 +192,160 @@ const newVNode = (tag, text) => {
|
|
|
240
192
|
return vnode;
|
|
241
193
|
};
|
|
242
194
|
const Host = {};
|
|
195
|
+
/**
|
|
196
|
+
* Check whether a given node is a Host node or not
|
|
197
|
+
*
|
|
198
|
+
* @param node the virtual DOM node to check
|
|
199
|
+
* @returns whether it's a Host node or not
|
|
200
|
+
*/
|
|
243
201
|
const isHost = (node) => node && node.$tag$ === Host;
|
|
202
|
+
/**
|
|
203
|
+
* Parse a new property value for a given property type.
|
|
204
|
+
*
|
|
205
|
+
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
206
|
+
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
207
|
+
* 1. `any`, the type given to `propValue` in the function signature
|
|
208
|
+
* 2. the type stored from `propType`.
|
|
209
|
+
*
|
|
210
|
+
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
211
|
+
*
|
|
212
|
+
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
213
|
+
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
214
|
+
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
215
|
+
* ```tsx
|
|
216
|
+
* <my-cmp prop-val={0}></my-cmp>
|
|
217
|
+
* ```
|
|
218
|
+
*
|
|
219
|
+
* HTML prop values on the other hand, will always a string
|
|
220
|
+
*
|
|
221
|
+
* @param propValue the new value to coerce to some type
|
|
222
|
+
* @param propType the type of the prop, expressed as a binary number
|
|
223
|
+
* @returns the parsed/coerced value
|
|
224
|
+
*/
|
|
225
|
+
const parsePropertyValue = (propValue, propType) => {
|
|
226
|
+
// ensure this value is of the correct prop type
|
|
227
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
228
|
+
if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
|
|
229
|
+
// per the HTML spec, any string value means it is a boolean true value
|
|
230
|
+
// but we'll cheat here and say that the string "false" is the boolean false
|
|
231
|
+
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
232
|
+
}
|
|
233
|
+
if (propType & 1 /* MEMBER_FLAGS.String */) {
|
|
234
|
+
// could have been passed as a number or boolean
|
|
235
|
+
// but we still want it as a string
|
|
236
|
+
return String(propValue);
|
|
237
|
+
}
|
|
238
|
+
// redundant return here for better minification
|
|
239
|
+
return propValue;
|
|
240
|
+
}
|
|
241
|
+
// not sure exactly what type we want
|
|
242
|
+
// so no need to change to a different type
|
|
243
|
+
return propValue;
|
|
244
|
+
};
|
|
245
|
+
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
246
|
+
const createEvent = (ref, name, flags) => {
|
|
247
|
+
const elm = getElement(ref);
|
|
248
|
+
return {
|
|
249
|
+
emit: (detail) => {
|
|
250
|
+
return emitEvent(elm, name, {
|
|
251
|
+
bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
|
|
252
|
+
composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
|
|
253
|
+
cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
|
|
254
|
+
detail,
|
|
255
|
+
});
|
|
256
|
+
},
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* Helper function to create & dispatch a custom Event on a provided target
|
|
261
|
+
* @param elm the target of the Event
|
|
262
|
+
* @param name the name to give the custom Event
|
|
263
|
+
* @param opts options for configuring a custom Event
|
|
264
|
+
* @returns the custom Event
|
|
265
|
+
*/
|
|
266
|
+
const emitEvent = (elm, name, opts) => {
|
|
267
|
+
const ev = plt.ce(name, opts);
|
|
268
|
+
elm.dispatchEvent(ev);
|
|
269
|
+
return ev;
|
|
270
|
+
};
|
|
271
|
+
const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
|
|
272
|
+
const registerStyle = (scopeId, cssText, allowCS) => {
|
|
273
|
+
let style = styles.get(scopeId);
|
|
274
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
275
|
+
style = (style || new CSSStyleSheet());
|
|
276
|
+
if (typeof style === 'string') {
|
|
277
|
+
style = cssText;
|
|
278
|
+
}
|
|
279
|
+
else {
|
|
280
|
+
style.replaceSync(cssText);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
style = cssText;
|
|
285
|
+
}
|
|
286
|
+
styles.set(scopeId, style);
|
|
287
|
+
};
|
|
288
|
+
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
289
|
+
var _a;
|
|
290
|
+
let scopeId = getScopeId(cmpMeta);
|
|
291
|
+
const style = styles.get(scopeId);
|
|
292
|
+
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
293
|
+
// so the fallback is to always use the document for the root node in those cases
|
|
294
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
|
|
295
|
+
if (style) {
|
|
296
|
+
if (typeof style === 'string') {
|
|
297
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
298
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
299
|
+
let styleElm;
|
|
300
|
+
if (!appliedStyles) {
|
|
301
|
+
rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
|
|
302
|
+
}
|
|
303
|
+
if (!appliedStyles.has(scopeId)) {
|
|
304
|
+
{
|
|
305
|
+
// TODO(STENCIL-659): Remove code implementing the CSS variable shim
|
|
306
|
+
{
|
|
307
|
+
styleElm = doc.createElement('style');
|
|
308
|
+
styleElm.innerHTML = style;
|
|
309
|
+
}
|
|
310
|
+
// Apply CSP nonce to the style tag if it exists
|
|
311
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
312
|
+
if (nonce != null) {
|
|
313
|
+
styleElm.setAttribute('nonce', nonce);
|
|
314
|
+
}
|
|
315
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
|
|
316
|
+
}
|
|
317
|
+
if (appliedStyles) {
|
|
318
|
+
appliedStyles.add(scopeId);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
323
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return scopeId;
|
|
327
|
+
};
|
|
328
|
+
const attachStyles = (hostRef) => {
|
|
329
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
330
|
+
const elm = hostRef.$hostElement$;
|
|
331
|
+
const flags = cmpMeta.$flags$;
|
|
332
|
+
const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
|
|
333
|
+
const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
|
|
334
|
+
// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
|
|
335
|
+
if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
|
|
336
|
+
// only required when we're NOT using native shadow dom (slot)
|
|
337
|
+
// or this browser doesn't support native shadow dom
|
|
338
|
+
// and this host element was NOT created with SSR
|
|
339
|
+
// let's pick out the inner content for slot projection
|
|
340
|
+
// create a node to represent where the original
|
|
341
|
+
// content was first placed, which is useful later on
|
|
342
|
+
// DOM WRITE!!
|
|
343
|
+
elm['s-sc'] = scopeId;
|
|
344
|
+
elm.classList.add(scopeId + '-h');
|
|
345
|
+
}
|
|
346
|
+
endAttachStyles();
|
|
347
|
+
};
|
|
348
|
+
const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
244
349
|
/**
|
|
245
350
|
* Production setAccessor() function based on Preact by
|
|
246
351
|
* Jason Miller (@developit)
|
|
@@ -377,7 +482,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
377
482
|
}
|
|
378
483
|
}
|
|
379
484
|
}
|
|
380
|
-
else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
485
|
+
else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
|
|
381
486
|
newValue = newValue === true ? '' : newValue;
|
|
382
487
|
if (xlink) {
|
|
383
488
|
elm.setAttributeNS(XLINK_NS, memberName, newValue);
|
|
@@ -395,7 +500,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
395
500
|
// if the element passed in is a shadow root, which is a document fragment
|
|
396
501
|
// then we want to be adding attrs/props to the shadow root's "host" element
|
|
397
502
|
// if it's not a shadow root, then we add attrs/props to the same element
|
|
398
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
|
|
503
|
+
const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
|
|
399
504
|
? newVnode.$elm$.host
|
|
400
505
|
: newVnode.$elm$;
|
|
401
506
|
const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
|
|
@@ -413,6 +518,16 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
413
518
|
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
|
|
414
519
|
}
|
|
415
520
|
};
|
|
521
|
+
/**
|
|
522
|
+
* Create a DOM Node corresponding to one of the children of a given VNode.
|
|
523
|
+
*
|
|
524
|
+
* @param oldParentVNode the parent VNode from the previous render
|
|
525
|
+
* @param newParentVNode the parent VNode from the current render
|
|
526
|
+
* @param childIndex the index of the VNode, in the _new_ parent node's
|
|
527
|
+
* children, for which we will create a new DOM node
|
|
528
|
+
* @param parentElm the parent DOM node which our new node will be a child of
|
|
529
|
+
* @returns the newly created node
|
|
530
|
+
*/
|
|
416
531
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
417
532
|
// tslint:disable-next-line: prefer-const
|
|
418
533
|
const newVNode = newParentVNode.$children$[childIndex];
|
|
@@ -430,23 +545,23 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
430
545
|
}
|
|
431
546
|
newVNode.$flags$ |= newVNode.$children$
|
|
432
547
|
? // slot element has fallback content
|
|
433
|
-
2 /* isSlotFallback */
|
|
548
|
+
2 /* VNODE_FLAGS.isSlotFallback */
|
|
434
549
|
: // slot element does not have fallback content
|
|
435
|
-
1 /* isSlotReference */;
|
|
550
|
+
1 /* VNODE_FLAGS.isSlotReference */;
|
|
436
551
|
}
|
|
437
552
|
}
|
|
438
553
|
if (newVNode.$text$ !== null) {
|
|
439
554
|
// create text node
|
|
440
555
|
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
441
556
|
}
|
|
442
|
-
else if (newVNode.$flags$ & 1 /* isSlotReference */) {
|
|
557
|
+
else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
|
|
443
558
|
// create a slot reference node
|
|
444
559
|
elm = newVNode.$elm$ =
|
|
445
560
|
doc.createTextNode('');
|
|
446
561
|
}
|
|
447
562
|
else {
|
|
448
563
|
// create element
|
|
449
|
-
elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* isSlotFallback */
|
|
564
|
+
elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
|
|
450
565
|
? 'slot-fb'
|
|
451
566
|
: newVNode.$tag$));
|
|
452
567
|
// add css classes, attrs, props, listeners, etc.
|
|
@@ -472,7 +587,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
472
587
|
}
|
|
473
588
|
{
|
|
474
589
|
elm['s-hn'] = hostTagName;
|
|
475
|
-
if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
590
|
+
if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
|
|
476
591
|
// remember the content reference comment
|
|
477
592
|
elm['s-sr'] = true;
|
|
478
593
|
// remember the content reference comment
|
|
@@ -491,7 +606,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
491
606
|
return elm;
|
|
492
607
|
};
|
|
493
608
|
const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
494
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
609
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
495
610
|
const oldSlotChildNodes = parentElm.childNodes;
|
|
496
611
|
for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
|
|
497
612
|
const childNode = oldSlotChildNodes[i];
|
|
@@ -512,8 +627,23 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
512
627
|
putBackInOriginalLocation(childNode, recursive);
|
|
513
628
|
}
|
|
514
629
|
}
|
|
515
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
630
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
516
631
|
};
|
|
632
|
+
/**
|
|
633
|
+
* Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
|
|
634
|
+
* add them to the DOM in the appropriate place.
|
|
635
|
+
*
|
|
636
|
+
* @param parentElm the DOM node which should be used as a parent for the new
|
|
637
|
+
* DOM nodes
|
|
638
|
+
* @param before a child of the `parentElm` which the new children should be
|
|
639
|
+
* inserted before (optional)
|
|
640
|
+
* @param parentVNode the parent virtual DOM node
|
|
641
|
+
* @param vnodes the new child virtual DOM nodes to produce DOM nodes for
|
|
642
|
+
* @param startIdx the index in the child virtual DOM nodes at which to start
|
|
643
|
+
* creating DOM nodes (inclusive)
|
|
644
|
+
* @param endIdx the index in the child virtual DOM nodes at which to stop
|
|
645
|
+
* creating DOM nodes (inclusive)
|
|
646
|
+
*/
|
|
517
647
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
518
648
|
let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
|
|
519
649
|
let childNode;
|
|
@@ -530,30 +660,112 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
530
660
|
}
|
|
531
661
|
}
|
|
532
662
|
};
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
663
|
+
/**
|
|
664
|
+
* Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
|
|
665
|
+
* This can be used to, for instance, clean up after a list of children which
|
|
666
|
+
* should no longer be shown.
|
|
667
|
+
*
|
|
668
|
+
* This function also handles some of Stencil's slot relocation logic.
|
|
669
|
+
*
|
|
670
|
+
* @param vnodes a list of virtual DOM nodes to remove
|
|
671
|
+
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
672
|
+
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
673
|
+
*/
|
|
674
|
+
const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
675
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
676
|
+
const vnode = vnodes[index];
|
|
677
|
+
if (vnode) {
|
|
678
|
+
const elm = vnode.$elm$;
|
|
679
|
+
nullifyVNodeRefs(vnode);
|
|
680
|
+
if (elm) {
|
|
681
|
+
{
|
|
682
|
+
// we're removing this element
|
|
683
|
+
// so it's possible we need to show slot fallback content now
|
|
684
|
+
checkSlotFallbackVisibility = true;
|
|
685
|
+
if (elm['s-ol']) {
|
|
686
|
+
// remove the original location comment
|
|
687
|
+
elm['s-ol'].remove();
|
|
688
|
+
}
|
|
689
|
+
else {
|
|
690
|
+
// it's possible that child nodes of the node
|
|
691
|
+
// that's being removed are slot nodes
|
|
692
|
+
putBackInOriginalLocation(elm, true);
|
|
693
|
+
}
|
|
550
694
|
}
|
|
695
|
+
// remove the vnode's element from the dom
|
|
696
|
+
elm.remove();
|
|
551
697
|
}
|
|
552
|
-
// remove the vnode's element from the dom
|
|
553
|
-
elm.remove();
|
|
554
698
|
}
|
|
555
699
|
}
|
|
556
700
|
};
|
|
701
|
+
/**
|
|
702
|
+
* Reconcile the children of a new VNode with the children of an old VNode by
|
|
703
|
+
* traversing the two collections of children, identifying nodes that are
|
|
704
|
+
* conserved or changed, calling out to `patch` to make any necessary
|
|
705
|
+
* updates to the DOM, and rearranging DOM nodes as needed.
|
|
706
|
+
*
|
|
707
|
+
* The algorithm for reconciling children works by analyzing two 'windows' onto
|
|
708
|
+
* the two arrays of children (`oldCh` and `newCh`). We keep track of the
|
|
709
|
+
* 'windows' by storing start and end indices and references to the
|
|
710
|
+
* corresponding array entries. Initially the two 'windows' are basically equal
|
|
711
|
+
* to the entire array, but we progressively narrow the windows until there are
|
|
712
|
+
* no children left to update by doing the following:
|
|
713
|
+
*
|
|
714
|
+
* 1. Skip any `null` entries at the beginning or end of the two arrays, so
|
|
715
|
+
* that if we have an initial array like the following we'll end up dealing
|
|
716
|
+
* only with a window bounded by the highlighted elements:
|
|
717
|
+
*
|
|
718
|
+
* [null, null, VNode1 , ... , VNode2, null, null]
|
|
719
|
+
* ^^^^^^ ^^^^^^
|
|
720
|
+
*
|
|
721
|
+
* 2. Check to see if the elements at the head and tail positions are equal
|
|
722
|
+
* across the windows. This will basically detect elements which haven't
|
|
723
|
+
* been added, removed, or changed position, i.e. if you had the following
|
|
724
|
+
* VNode elements (represented as HTML):
|
|
725
|
+
*
|
|
726
|
+
* oldVNode: `<div><p><span>HEY</span></p></div>`
|
|
727
|
+
* newVNode: `<div><p><span>THERE</span></p></div>`
|
|
728
|
+
*
|
|
729
|
+
* Then when comparing the children of the `<div>` tag we check the equality
|
|
730
|
+
* of the VNodes corresponding to the `<p>` tags and, since they are the
|
|
731
|
+
* same tag in the same position, we'd be able to avoid completely
|
|
732
|
+
* re-rendering the subtree under them with a new DOM element and would just
|
|
733
|
+
* call out to `patch` to handle reconciling their children and so on.
|
|
734
|
+
*
|
|
735
|
+
* 3. Check, for both windows, to see if the element at the beginning of the
|
|
736
|
+
* window corresponds to the element at the end of the other window. This is
|
|
737
|
+
* a heuristic which will let us identify _some_ situations in which
|
|
738
|
+
* elements have changed position, for instance it _should_ detect that the
|
|
739
|
+
* children nodes themselves have not changed but merely moved in the
|
|
740
|
+
* following example:
|
|
741
|
+
*
|
|
742
|
+
* oldVNode: `<div><element-one /><element-two /></div>`
|
|
743
|
+
* newVNode: `<div><element-two /><element-one /></div>`
|
|
744
|
+
*
|
|
745
|
+
* If we find cases like this then we also need to move the concrete DOM
|
|
746
|
+
* elements corresponding to the moved children to write the re-order to the
|
|
747
|
+
* DOM.
|
|
748
|
+
*
|
|
749
|
+
* 4. Finally, if VNodes have the `key` attribute set on them we check for any
|
|
750
|
+
* nodes in the old children which have the same key as the first element in
|
|
751
|
+
* our window on the new children. If we find such a node we handle calling
|
|
752
|
+
* out to `patch`, moving relevant DOM nodes, and so on, in accordance with
|
|
753
|
+
* what we find.
|
|
754
|
+
*
|
|
755
|
+
* Finally, once we've narrowed our 'windows' to the point that either of them
|
|
756
|
+
* collapse (i.e. they have length 0) we then handle any remaining VNode
|
|
757
|
+
* insertion or deletion that needs to happen to get a DOM state that correctly
|
|
758
|
+
* reflects the new child VNodes. If, for instance, after our window on the old
|
|
759
|
+
* children has collapsed we still have more nodes on the new children that
|
|
760
|
+
* we haven't dealt with yet then we need to add them, or if the new children
|
|
761
|
+
* collapse but we still have unhandled _old_ children then we need to make
|
|
762
|
+
* sure the corresponding DOM nodes are removed.
|
|
763
|
+
*
|
|
764
|
+
* @param parentElm the node into which the parent VNode is rendered
|
|
765
|
+
* @param oldCh the old children of the parent node
|
|
766
|
+
* @param newVNode the new VNode which will replace the parent
|
|
767
|
+
* @param newCh the new children of the parent node
|
|
768
|
+
*/
|
|
557
769
|
const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
558
770
|
let oldStartIdx = 0;
|
|
559
771
|
let newStartIdx = 0;
|
|
@@ -569,7 +781,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
569
781
|
let elmToMove;
|
|
570
782
|
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
571
783
|
if (oldStartVnode == null) {
|
|
572
|
-
//
|
|
784
|
+
// VNode might have been moved left
|
|
573
785
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
574
786
|
}
|
|
575
787
|
else if (oldEndVnode == null) {
|
|
@@ -582,37 +794,100 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
582
794
|
newEndVnode = newCh[--newEndIdx];
|
|
583
795
|
}
|
|
584
796
|
else if (isSameVnode(oldStartVnode, newStartVnode)) {
|
|
797
|
+
// if the start nodes are the same then we should patch the new VNode
|
|
798
|
+
// onto the old one, and increment our `newStartIdx` and `oldStartIdx`
|
|
799
|
+
// indices to reflect that. We don't need to move any DOM Nodes around
|
|
800
|
+
// since things are matched up in order.
|
|
585
801
|
patch(oldStartVnode, newStartVnode);
|
|
586
802
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
587
803
|
newStartVnode = newCh[++newStartIdx];
|
|
588
804
|
}
|
|
589
805
|
else if (isSameVnode(oldEndVnode, newEndVnode)) {
|
|
806
|
+
// likewise, if the end nodes are the same we patch new onto old and
|
|
807
|
+
// decrement our end indices, and also likewise in this case we don't
|
|
808
|
+
// need to move any DOM Nodes.
|
|
590
809
|
patch(oldEndVnode, newEndVnode);
|
|
591
810
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
592
811
|
newEndVnode = newCh[--newEndIdx];
|
|
593
812
|
}
|
|
594
813
|
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
595
|
-
// Vnode moved right
|
|
814
|
+
// case: "Vnode moved right"
|
|
815
|
+
//
|
|
816
|
+
// We've found that the last node in our window on the new children is
|
|
817
|
+
// the same VNode as the _first_ node in our window on the old children
|
|
818
|
+
// we're dealing with now. Visually, this is the layout of these two
|
|
819
|
+
// nodes:
|
|
820
|
+
//
|
|
821
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
822
|
+
// ^^^^^^^^^^^
|
|
823
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
824
|
+
// ^^^^^^^^^^^^^
|
|
825
|
+
//
|
|
826
|
+
// In this situation we need to patch `newEndVnode` onto `oldStartVnode`
|
|
827
|
+
// and move the DOM element for `oldStartVnode`.
|
|
596
828
|
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
597
829
|
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
598
830
|
}
|
|
599
831
|
patch(oldStartVnode, newEndVnode);
|
|
832
|
+
// We need to move the element for `oldStartVnode` into a position which
|
|
833
|
+
// will be appropriate for `newEndVnode`. For this we can use
|
|
834
|
+
// `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
|
|
835
|
+
// sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
|
|
836
|
+
// `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
|
|
837
|
+
//
|
|
838
|
+
// <old-start-node />
|
|
839
|
+
// <some-intervening-node />
|
|
840
|
+
// <old-end-node />
|
|
841
|
+
// <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
|
|
842
|
+
// <next-sibling />
|
|
843
|
+
//
|
|
844
|
+
// If instead `oldEndVnode.$elm$` has no sibling then we just want to put
|
|
845
|
+
// the node for `oldStartVnode` at the end of the children of
|
|
846
|
+
// `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
|
|
847
|
+
// aren't any siblings, and passing `null` to `Node.insertBefore` will
|
|
848
|
+
// append it to the children of the parent element.
|
|
600
849
|
parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
601
850
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
602
851
|
newEndVnode = newCh[--newEndIdx];
|
|
603
852
|
}
|
|
604
853
|
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
605
|
-
// Vnode moved left
|
|
854
|
+
// case: "Vnode moved left"
|
|
855
|
+
//
|
|
856
|
+
// We've found that the first node in our window on the new children is
|
|
857
|
+
// the same VNode as the _last_ node in our window on the old children.
|
|
858
|
+
// Visually, this is the layout of these two nodes:
|
|
859
|
+
//
|
|
860
|
+
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
861
|
+
// ^^^^^^^^^^^^^
|
|
862
|
+
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
863
|
+
// ^^^^^^^^^^^
|
|
864
|
+
//
|
|
865
|
+
// In this situation we need to patch `newStartVnode` onto `oldEndVnode`
|
|
866
|
+
// (which will handle updating any changed attributes, reconciling their
|
|
867
|
+
// children etc) but we also need to move the DOM node to which
|
|
868
|
+
// `oldEndVnode` corresponds.
|
|
606
869
|
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
607
870
|
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
608
871
|
}
|
|
609
872
|
patch(oldEndVnode, newStartVnode);
|
|
873
|
+
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
874
|
+
// the same node, so since we're here we know that they are not. Thus we
|
|
875
|
+
// can move the element for `oldEndVnode` _before_ the element for
|
|
876
|
+
// `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
|
|
877
|
+
// future.
|
|
610
878
|
parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
611
879
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
612
880
|
newStartVnode = newCh[++newStartIdx];
|
|
613
881
|
}
|
|
614
882
|
else {
|
|
615
|
-
//
|
|
883
|
+
// Here we do some checks to match up old and new nodes based on the
|
|
884
|
+
// `$key$` attribute, which is set by putting a `key="my-key"` attribute
|
|
885
|
+
// in the JSX for a DOM element in the implementation of a Stencil
|
|
886
|
+
// component.
|
|
887
|
+
//
|
|
888
|
+
// First we check to see if there are any nodes in the array of old
|
|
889
|
+
// children which have the same key as the first node in the new
|
|
890
|
+
// children.
|
|
616
891
|
idxInOld = -1;
|
|
617
892
|
{
|
|
618
893
|
for (i = oldStartIdx; i <= oldEndIdx; ++i) {
|
|
@@ -623,23 +898,32 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
623
898
|
}
|
|
624
899
|
}
|
|
625
900
|
if (idxInOld >= 0) {
|
|
901
|
+
// We found a node in the old children which matches up with the first
|
|
902
|
+
// node in the new children! So let's deal with that
|
|
626
903
|
elmToMove = oldCh[idxInOld];
|
|
627
904
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
905
|
+
// the tag doesn't match so we'll need a new DOM element
|
|
628
906
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
|
|
629
907
|
}
|
|
630
908
|
else {
|
|
631
909
|
patch(elmToMove, newStartVnode);
|
|
910
|
+
// invalidate the matching old node so that we won't try to update it
|
|
911
|
+
// again later on
|
|
632
912
|
oldCh[idxInOld] = undefined;
|
|
633
913
|
node = elmToMove.$elm$;
|
|
634
914
|
}
|
|
635
915
|
newStartVnode = newCh[++newStartIdx];
|
|
636
916
|
}
|
|
637
917
|
else {
|
|
638
|
-
//
|
|
918
|
+
// We either didn't find an element in the old children that matches
|
|
919
|
+
// the key of the first new child OR the build is not using `key`
|
|
920
|
+
// attributes at all. In either case we need to create a new element
|
|
921
|
+
// for the new node.
|
|
639
922
|
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
|
|
640
923
|
newStartVnode = newCh[++newStartIdx];
|
|
641
924
|
}
|
|
642
925
|
if (node) {
|
|
926
|
+
// if we created a new node then handle inserting it to the DOM
|
|
643
927
|
{
|
|
644
928
|
parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
|
|
645
929
|
}
|
|
@@ -647,21 +931,44 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
647
931
|
}
|
|
648
932
|
}
|
|
649
933
|
if (oldStartIdx > oldEndIdx) {
|
|
934
|
+
// we have some more new nodes to add which don't match up with old nodes
|
|
650
935
|
addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
|
|
651
936
|
}
|
|
652
937
|
else if (newStartIdx > newEndIdx) {
|
|
938
|
+
// there are nodes in the `oldCh` array which no longer correspond to nodes
|
|
939
|
+
// in the new array, so lets remove them (which entails cleaning up the
|
|
940
|
+
// relevant DOM nodes)
|
|
653
941
|
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
654
942
|
}
|
|
655
943
|
};
|
|
656
|
-
|
|
944
|
+
/**
|
|
945
|
+
* Compare two VNodes to determine if they are the same
|
|
946
|
+
*
|
|
947
|
+
* **NB**: This function is an equality _heuristic_ based on the available
|
|
948
|
+
* information set on the two VNodes and can be misleading under certain
|
|
949
|
+
* circumstances. In particular, if the two nodes do not have `key` attrs
|
|
950
|
+
* (available under `$key$` on VNodes) then the function falls back on merely
|
|
951
|
+
* checking that they have the same tag.
|
|
952
|
+
*
|
|
953
|
+
* So, in other words, if `key` attrs are not set on VNodes which may be
|
|
954
|
+
* changing order within a `children` array or something along those lines then
|
|
955
|
+
* we could obtain a false negative and then have to do needless re-rendering
|
|
956
|
+
* (i.e. we'd say two VNodes aren't equal when in fact they should be).
|
|
957
|
+
*
|
|
958
|
+
* @param leftVNode the first VNode to check
|
|
959
|
+
* @param rightVNode the second VNode to check
|
|
960
|
+
* @returns whether they're equal or not
|
|
961
|
+
*/
|
|
962
|
+
const isSameVnode = (leftVNode, rightVNode) => {
|
|
657
963
|
// compare if two vnode to see if they're "technically" the same
|
|
658
964
|
// need to have the same element tag, and same key to be the same
|
|
659
|
-
if (
|
|
660
|
-
if (
|
|
661
|
-
return
|
|
965
|
+
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
966
|
+
if (leftVNode.$tag$ === 'slot') {
|
|
967
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
662
968
|
}
|
|
969
|
+
// this will be set if components in the build have `key` attrs set on them
|
|
663
970
|
{
|
|
664
|
-
return
|
|
971
|
+
return leftVNode.$key$ === rightVNode.$key$;
|
|
665
972
|
}
|
|
666
973
|
}
|
|
667
974
|
return false;
|
|
@@ -674,6 +981,14 @@ const referenceNode = (node) => {
|
|
|
674
981
|
return (node && node['s-ol']) || node;
|
|
675
982
|
};
|
|
676
983
|
const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
|
|
984
|
+
/**
|
|
985
|
+
* Handle reconciling an outdated VNode with a new one which corresponds to
|
|
986
|
+
* it. This function handles flushing updates to the DOM and reconciling the
|
|
987
|
+
* children of the two nodes (if any).
|
|
988
|
+
*
|
|
989
|
+
* @param oldVNode an old VNode whose DOM element and children we want to update
|
|
990
|
+
* @param newVNode a new VNode representing an updated version of the old one
|
|
991
|
+
*/
|
|
677
992
|
const patch = (oldVNode, newVNode) => {
|
|
678
993
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
679
994
|
const oldChildren = oldVNode.$children$;
|
|
@@ -682,7 +997,6 @@ const patch = (oldVNode, newVNode) => {
|
|
|
682
997
|
const text = newVNode.$text$;
|
|
683
998
|
let defaultHolder;
|
|
684
999
|
if (text === null) {
|
|
685
|
-
// element node
|
|
686
1000
|
{
|
|
687
1001
|
if (tag === 'slot')
|
|
688
1002
|
;
|
|
@@ -695,6 +1009,7 @@ const patch = (oldVNode, newVNode) => {
|
|
|
695
1009
|
}
|
|
696
1010
|
if (oldChildren !== null && newChildren !== null) {
|
|
697
1011
|
// looks like there's child vnodes for both the old and new vnodes
|
|
1012
|
+
// so we need to call `updateChildren` to reconcile them
|
|
698
1013
|
updateChildren(elm, oldChildren, newVNode, newChildren);
|
|
699
1014
|
}
|
|
700
1015
|
else if (newChildren !== null) {
|
|
@@ -732,7 +1047,7 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
732
1047
|
let nodeType;
|
|
733
1048
|
for (i = 0, ilen = childNodes.length; i < ilen; i++) {
|
|
734
1049
|
childNode = childNodes[i];
|
|
735
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1050
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
736
1051
|
if (childNode['s-sr']) {
|
|
737
1052
|
// this is a slot fallback node
|
|
738
1053
|
// get the slot name for this slot reference node
|
|
@@ -744,7 +1059,7 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
744
1059
|
nodeType = childNodes[j].nodeType;
|
|
745
1060
|
if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
|
|
746
1061
|
// this sibling node is from a different component OR is a named fallback slot node
|
|
747
|
-
if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
1062
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
748
1063
|
childNode.hidden = true;
|
|
749
1064
|
break;
|
|
750
1065
|
}
|
|
@@ -753,8 +1068,8 @@ const updateFallbackSlotVisibility = (elm) => {
|
|
|
753
1068
|
// this is a default fallback slot node
|
|
754
1069
|
// any element or text node (with content)
|
|
755
1070
|
// should hide the default fallback slot node
|
|
756
|
-
if (nodeType === 1 /* ElementNode */ ||
|
|
757
|
-
(nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
1071
|
+
if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
|
|
1072
|
+
(nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
758
1073
|
childNode.hidden = true;
|
|
759
1074
|
break;
|
|
760
1075
|
}
|
|
@@ -832,13 +1147,13 @@ const relocateSlotContent = (elm) => {
|
|
|
832
1147
|
}
|
|
833
1148
|
}
|
|
834
1149
|
}
|
|
835
|
-
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1150
|
+
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
836
1151
|
relocateSlotContent(childNode);
|
|
837
1152
|
}
|
|
838
1153
|
}
|
|
839
1154
|
};
|
|
840
1155
|
const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
|
|
841
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1156
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
842
1157
|
if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
|
|
843
1158
|
return true;
|
|
844
1159
|
}
|
|
@@ -852,12 +1167,31 @@ const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
|
|
|
852
1167
|
}
|
|
853
1168
|
return slotNameAttr === '';
|
|
854
1169
|
};
|
|
855
|
-
|
|
1170
|
+
/**
|
|
1171
|
+
* 'Nullify' any VDom `ref` callbacks on a VDom node or its children by
|
|
1172
|
+
* calling them with `null`. This signals that the DOM element corresponding to
|
|
1173
|
+
* the VDom node has been removed from the DOM.
|
|
1174
|
+
*
|
|
1175
|
+
* @param vNode a virtual DOM node
|
|
1176
|
+
*/
|
|
1177
|
+
const nullifyVNodeRefs = (vNode) => {
|
|
856
1178
|
{
|
|
857
1179
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
858
|
-
vNode.$children$ && vNode.$children$.map(
|
|
1180
|
+
vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
|
|
859
1181
|
}
|
|
860
1182
|
};
|
|
1183
|
+
/**
|
|
1184
|
+
* The main entry point for Stencil's virtual DOM-based rendering engine
|
|
1185
|
+
*
|
|
1186
|
+
* Given a {@link d.HostRef} container and some virtual DOM nodes, this
|
|
1187
|
+
* function will handle creating a virtual DOM tree with a single root, patching
|
|
1188
|
+
* the current virtual DOM tree onto an old one (if any), dealing with slot
|
|
1189
|
+
* relocation, and reflecting attributes.
|
|
1190
|
+
*
|
|
1191
|
+
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
1192
|
+
* the DOM node into which it should be rendered.
|
|
1193
|
+
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
1194
|
+
*/
|
|
861
1195
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
862
1196
|
const hostElm = hostRef.$hostElement$;
|
|
863
1197
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
@@ -869,7 +1203,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
869
1203
|
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
870
1204
|
}
|
|
871
1205
|
rootVnode.$tag$ = null;
|
|
872
|
-
rootVnode.$flags$ |= 4 /* isHost */;
|
|
1206
|
+
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
873
1207
|
hostRef.$vnode$ = rootVnode;
|
|
874
1208
|
rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
|
|
875
1209
|
{
|
|
@@ -877,7 +1211,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
877
1211
|
}
|
|
878
1212
|
{
|
|
879
1213
|
contentRef = hostElm['s-cr'];
|
|
880
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
1214
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
|
|
881
1215
|
// always reset
|
|
882
1216
|
checkSlotFallbackVisibility = false;
|
|
883
1217
|
}
|
|
@@ -886,7 +1220,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
886
1220
|
{
|
|
887
1221
|
// while we're moving nodes around existing nodes, temporarily disable
|
|
888
1222
|
// the disconnectCallback from working
|
|
889
|
-
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1223
|
+
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
890
1224
|
if (checkSlotRelocate) {
|
|
891
1225
|
relocateSlotContent(rootVnode.$elm$);
|
|
892
1226
|
let relocateData;
|
|
@@ -944,7 +1278,7 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
944
1278
|
}
|
|
945
1279
|
else {
|
|
946
1280
|
// this node doesn't have a slot home to go to, so let's hide it
|
|
947
|
-
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1281
|
+
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
948
1282
|
nodeToRelocate.hidden = true;
|
|
949
1283
|
}
|
|
950
1284
|
}
|
|
@@ -955,37 +1289,11 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
955
1289
|
}
|
|
956
1290
|
// done moving nodes around
|
|
957
1291
|
// allow the disconnect callback to work again
|
|
958
|
-
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1292
|
+
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
959
1293
|
// always reset
|
|
960
1294
|
relocateNodes.length = 0;
|
|
961
1295
|
}
|
|
962
1296
|
};
|
|
963
|
-
const getElement = (ref) => (getHostRef(ref).$hostElement$ );
|
|
964
|
-
const createEvent = (ref, name, flags) => {
|
|
965
|
-
const elm = getElement(ref);
|
|
966
|
-
return {
|
|
967
|
-
emit: (detail) => {
|
|
968
|
-
return emitEvent(elm, name, {
|
|
969
|
-
bubbles: !!(flags & 4 /* Bubbles */),
|
|
970
|
-
composed: !!(flags & 2 /* Composed */),
|
|
971
|
-
cancelable: !!(flags & 1 /* Cancellable */),
|
|
972
|
-
detail,
|
|
973
|
-
});
|
|
974
|
-
},
|
|
975
|
-
};
|
|
976
|
-
};
|
|
977
|
-
/**
|
|
978
|
-
* Helper function to create & dispatch a custom Event on a provided target
|
|
979
|
-
* @param elm the target of the Event
|
|
980
|
-
* @param name the name to give the custom Event
|
|
981
|
-
* @param opts options for configuring a custom Event
|
|
982
|
-
* @returns the custom Event
|
|
983
|
-
*/
|
|
984
|
-
const emitEvent = (elm, name, opts) => {
|
|
985
|
-
const ev = plt.ce(name, opts);
|
|
986
|
-
elm.dispatchEvent(ev);
|
|
987
|
-
return ev;
|
|
988
|
-
};
|
|
989
1297
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
990
1298
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
991
1299
|
ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
|
|
@@ -993,10 +1301,10 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
|
993
1301
|
};
|
|
994
1302
|
const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
995
1303
|
{
|
|
996
|
-
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
1304
|
+
hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
997
1305
|
}
|
|
998
|
-
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
999
|
-
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
1306
|
+
if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
|
|
1307
|
+
hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
|
|
1000
1308
|
return;
|
|
1001
1309
|
}
|
|
1002
1310
|
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
@@ -1006,25 +1314,74 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
1006
1314
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
1007
1315
|
return writeTask(dispatch) ;
|
|
1008
1316
|
};
|
|
1317
|
+
/**
|
|
1318
|
+
* Dispatch initial-render and update lifecycle hooks, enqueuing calls to
|
|
1319
|
+
* component lifecycle methods like `componentWillLoad` as well as
|
|
1320
|
+
* {@link updateComponent}, which will kick off the virtual DOM re-render.
|
|
1321
|
+
*
|
|
1322
|
+
* @param hostRef a reference to a host DOM node
|
|
1323
|
+
* @param isInitialLoad whether we're on the initial load or not
|
|
1324
|
+
* @returns an empty Promise which is used to enqueue a series of operations for
|
|
1325
|
+
* the component
|
|
1326
|
+
*/
|
|
1009
1327
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
1010
1328
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
1011
1329
|
const instance = hostRef.$lazyInstance$ ;
|
|
1012
|
-
|
|
1330
|
+
// We're going to use this variable together with `enqueue` to implement a
|
|
1331
|
+
// little promise-based queue. We start out with it `undefined`. When we add
|
|
1332
|
+
// the first function to the queue we'll set this variable to be that
|
|
1333
|
+
// function's return value. When we attempt to add subsequent values to the
|
|
1334
|
+
// queue we'll check that value and, if it was a `Promise`, we'll then chain
|
|
1335
|
+
// the new function off of that `Promise` using `.then()`. This will give our
|
|
1336
|
+
// queue two nice properties:
|
|
1337
|
+
//
|
|
1338
|
+
// 1. If all functions added to the queue are synchronous they'll be called
|
|
1339
|
+
// synchronously right away.
|
|
1340
|
+
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
1341
|
+
// called in order after `dispatchHooks` exits.
|
|
1342
|
+
let maybePromise;
|
|
1013
1343
|
if (isInitialLoad) {
|
|
1014
1344
|
{
|
|
1015
|
-
|
|
1345
|
+
// If `componentWillLoad` returns a `Promise` then we want to wait on
|
|
1346
|
+
// whatever's going on in that `Promise` before we launch into
|
|
1347
|
+
// rendering the component, doing other lifecycle stuff, etc. So
|
|
1348
|
+
// in that case we assign the returned promise to the variable we
|
|
1349
|
+
// declared above to hold a possible 'queueing' Promise
|
|
1350
|
+
maybePromise = safeCall(instance, 'componentWillLoad');
|
|
1016
1351
|
}
|
|
1017
1352
|
}
|
|
1018
1353
|
else {
|
|
1019
1354
|
{
|
|
1020
|
-
|
|
1355
|
+
// Like `componentWillLoad` above, we allow Stencil component
|
|
1356
|
+
// authors to return a `Promise` from this lifecycle callback, and
|
|
1357
|
+
// we specify that our runtime will wait for that `Promise` to
|
|
1358
|
+
// resolve before the component re-renders. So if the method
|
|
1359
|
+
// returns a `Promise` we need to keep it around!
|
|
1360
|
+
maybePromise = safeCall(instance, 'componentWillUpdate');
|
|
1021
1361
|
}
|
|
1022
1362
|
}
|
|
1023
1363
|
endSchedule();
|
|
1024
|
-
return
|
|
1364
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1025
1365
|
};
|
|
1366
|
+
/**
|
|
1367
|
+
* This function uses a Promise to implement a simple first-in, first-out queue
|
|
1368
|
+
* of functions to be called.
|
|
1369
|
+
*
|
|
1370
|
+
* The queue is ordered on the basis of the first argument. If it's
|
|
1371
|
+
* `undefined`, then nothing is on the queue yet, so the provided function can
|
|
1372
|
+
* be called synchronously (although note that this function may return a
|
|
1373
|
+
* `Promise`). The idea is that then the return value of that enqueueing
|
|
1374
|
+
* operation is kept around, so that if it was a `Promise` then subsequent
|
|
1375
|
+
* functions can be enqueued by calling this function again with that `Promise`
|
|
1376
|
+
* as the first argument.
|
|
1377
|
+
*
|
|
1378
|
+
* @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
|
|
1379
|
+
* @param fn a function to enqueue
|
|
1380
|
+
* @returns either a `Promise` or the return value of the provided function
|
|
1381
|
+
*/
|
|
1382
|
+
const enqueue = (maybePromise, fn) => maybePromise instanceof Promise ? maybePromise.then(fn) : fn();
|
|
1026
1383
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1027
|
-
|
|
1384
|
+
var _a;
|
|
1028
1385
|
const elm = hostRef.$hostElement$;
|
|
1029
1386
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
1030
1387
|
const rc = elm['s-rc'];
|
|
@@ -1046,14 +1403,14 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1046
1403
|
endRender();
|
|
1047
1404
|
endUpdate();
|
|
1048
1405
|
{
|
|
1049
|
-
const childrenPromises = elm['s-p'];
|
|
1406
|
+
const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
|
|
1050
1407
|
const postUpdate = () => postUpdateComponent(hostRef);
|
|
1051
1408
|
if (childrenPromises.length === 0) {
|
|
1052
1409
|
postUpdate();
|
|
1053
1410
|
}
|
|
1054
1411
|
else {
|
|
1055
1412
|
Promise.all(childrenPromises).then(postUpdate);
|
|
1056
|
-
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
1413
|
+
hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
|
|
1057
1414
|
childrenPromises.length = 0;
|
|
1058
1415
|
}
|
|
1059
1416
|
}
|
|
@@ -1062,10 +1419,10 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
1062
1419
|
try {
|
|
1063
1420
|
instance = instance.render() ;
|
|
1064
1421
|
{
|
|
1065
|
-
hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
|
|
1422
|
+
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
1066
1423
|
}
|
|
1067
1424
|
{
|
|
1068
|
-
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
1425
|
+
hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
|
|
1069
1426
|
}
|
|
1070
1427
|
{
|
|
1071
1428
|
{
|
|
@@ -1089,8 +1446,8 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1089
1446
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
1090
1447
|
const instance = hostRef.$lazyInstance$ ;
|
|
1091
1448
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1092
|
-
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
1093
|
-
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
1449
|
+
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
1450
|
+
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
1094
1451
|
{
|
|
1095
1452
|
// DOM WRITE!
|
|
1096
1453
|
addHydratedFlag(elm);
|
|
@@ -1119,10 +1476,10 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1119
1476
|
hostRef.$onRenderResolve$();
|
|
1120
1477
|
hostRef.$onRenderResolve$ = undefined;
|
|
1121
1478
|
}
|
|
1122
|
-
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
1479
|
+
if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
|
|
1123
1480
|
nextTick(() => scheduleUpdate(hostRef, false));
|
|
1124
1481
|
}
|
|
1125
|
-
hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
|
|
1482
|
+
hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
|
|
1126
1483
|
}
|
|
1127
1484
|
// ( •_•)
|
|
1128
1485
|
// ( •_•)>⌐■-■
|
|
@@ -1147,54 +1504,8 @@ const safeCall = (instance, method, arg) => {
|
|
|
1147
1504
|
}
|
|
1148
1505
|
return undefined;
|
|
1149
1506
|
};
|
|
1150
|
-
const then = (promise, thenFn) => {
|
|
1151
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
1152
|
-
};
|
|
1153
1507
|
const addHydratedFlag = (elm) => elm.classList.add('hydrated')
|
|
1154
1508
|
;
|
|
1155
|
-
/**
|
|
1156
|
-
* Parse a new property value for a given property type.
|
|
1157
|
-
*
|
|
1158
|
-
* While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
|
|
1159
|
-
* it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
|
|
1160
|
-
* 1. `any`, the type given to `propValue` in the function signature
|
|
1161
|
-
* 2. the type stored from `propType`.
|
|
1162
|
-
*
|
|
1163
|
-
* This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
|
|
1164
|
-
*
|
|
1165
|
-
* Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
|
|
1166
|
-
* a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
|
|
1167
|
-
* based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
|
|
1168
|
-
* ```tsx
|
|
1169
|
-
* <my-cmp prop-val={0}></my-cmp>
|
|
1170
|
-
* ```
|
|
1171
|
-
*
|
|
1172
|
-
* HTML prop values on the other hand, will always a string
|
|
1173
|
-
*
|
|
1174
|
-
* @param propValue the new value to coerce to some type
|
|
1175
|
-
* @param propType the type of the prop, expressed as a binary number
|
|
1176
|
-
* @returns the parsed/coerced value
|
|
1177
|
-
*/
|
|
1178
|
-
const parsePropertyValue = (propValue, propType) => {
|
|
1179
|
-
// ensure this value is of the correct prop type
|
|
1180
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
1181
|
-
if (propType & 4 /* Boolean */) {
|
|
1182
|
-
// per the HTML spec, any string value means it is a boolean true value
|
|
1183
|
-
// but we'll cheat here and say that the string "false" is the boolean false
|
|
1184
|
-
return propValue === 'false' ? false : propValue === '' || !!propValue;
|
|
1185
|
-
}
|
|
1186
|
-
if (propType & 1 /* String */) {
|
|
1187
|
-
// could have been passed as a number or boolean
|
|
1188
|
-
// but we still want it as a string
|
|
1189
|
-
return String(propValue);
|
|
1190
|
-
}
|
|
1191
|
-
// redundant return here for better minification
|
|
1192
|
-
return propValue;
|
|
1193
|
-
}
|
|
1194
|
-
// not sure exactly what type we want
|
|
1195
|
-
// so no need to change to a different type
|
|
1196
|
-
return propValue;
|
|
1197
|
-
};
|
|
1198
1509
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1199
1510
|
const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1200
1511
|
// check our new property value against our internal value
|
|
@@ -1207,13 +1518,13 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1207
1518
|
// explicitly check for NaN on both sides, as `NaN === NaN` is always false
|
|
1208
1519
|
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
1209
1520
|
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
1210
|
-
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
1521
|
+
if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
|
|
1211
1522
|
// gadzooks! the property's value has changed!!
|
|
1212
1523
|
// set our new value!
|
|
1213
1524
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1214
1525
|
if (instance) {
|
|
1215
1526
|
// get an array of method names of watch functions to call
|
|
1216
|
-
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1527
|
+
if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
|
|
1217
1528
|
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1218
1529
|
if (watchMethods) {
|
|
1219
1530
|
// this instance is watching for when this property changed
|
|
@@ -1228,7 +1539,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1228
1539
|
});
|
|
1229
1540
|
}
|
|
1230
1541
|
}
|
|
1231
|
-
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1542
|
+
if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
|
|
1232
1543
|
// looks like this value actually changed, so we've got work to do!
|
|
1233
1544
|
// but only if we've already rendered, otherwise just chill out
|
|
1234
1545
|
// queue that we need to do an update, but don't worry about queuing
|
|
@@ -1238,6 +1549,16 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1238
1549
|
}
|
|
1239
1550
|
}
|
|
1240
1551
|
};
|
|
1552
|
+
/**
|
|
1553
|
+
* Attach a series of runtime constructs to a compiled Stencil component
|
|
1554
|
+
* constructor, including getters and setters for the `@Prop` and `@State`
|
|
1555
|
+
* decorators, callbacks for when attributes change, and so on.
|
|
1556
|
+
*
|
|
1557
|
+
* @param Cstr the constructor for a component that we need to process
|
|
1558
|
+
* @param cmpMeta metadata collected previously about the component
|
|
1559
|
+
* @param flags a number used to store a series of bit flags
|
|
1560
|
+
* @returns a reference to the same constructor passed in (but now mutated)
|
|
1561
|
+
*/
|
|
1241
1562
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1242
1563
|
if (cmpMeta.$members$) {
|
|
1243
1564
|
if (Cstr.watchers) {
|
|
@@ -1247,8 +1568,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1247
1568
|
const members = Object.entries(cmpMeta.$members$);
|
|
1248
1569
|
const prototype = Cstr.prototype;
|
|
1249
1570
|
members.map(([memberName, [memberFlags]]) => {
|
|
1250
|
-
if ((memberFlags & 31 /* Prop */ ||
|
|
1251
|
-
((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
|
|
1571
|
+
if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
|
|
1572
|
+
((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
|
|
1252
1573
|
// proxyComponent - prop
|
|
1253
1574
|
Object.defineProperty(prototype, memberName, {
|
|
1254
1575
|
get() {
|
|
@@ -1263,8 +1584,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1263
1584
|
enumerable: true,
|
|
1264
1585
|
});
|
|
1265
1586
|
}
|
|
1266
|
-
else if (flags & 1 /* isElementConstructor */ &&
|
|
1267
|
-
memberFlags & 64 /* Method */) {
|
|
1587
|
+
else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
|
|
1588
|
+
memberFlags & 64 /* MEMBER_FLAGS.Method */) {
|
|
1268
1589
|
// proxyComponent - method
|
|
1269
1590
|
Object.defineProperty(prototype, memberName, {
|
|
1270
1591
|
value(...args) {
|
|
@@ -1274,7 +1595,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1274
1595
|
});
|
|
1275
1596
|
}
|
|
1276
1597
|
});
|
|
1277
|
-
if ((flags & 1 /* isElementConstructor */)) {
|
|
1598
|
+
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
1278
1599
|
const attrNameToPropName = new Map();
|
|
1279
1600
|
prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
|
|
1280
1601
|
plt.jmp(() => {
|
|
@@ -1330,11 +1651,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1330
1651
|
// create an array of attributes to observe
|
|
1331
1652
|
// and also create a map of html attribute name to js property name
|
|
1332
1653
|
Cstr.observedAttributes = members
|
|
1333
|
-
.filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
|
|
1654
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
|
|
1334
1655
|
.map(([propName, m]) => {
|
|
1335
1656
|
const attrName = m[1] || propName;
|
|
1336
1657
|
attrNameToPropName.set(attrName, propName);
|
|
1337
|
-
if (m[0] & 512 /* ReflectAttr */) {
|
|
1658
|
+
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
|
1338
1659
|
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1339
1660
|
}
|
|
1340
1661
|
return attrName;
|
|
@@ -1345,10 +1666,10 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1345
1666
|
};
|
|
1346
1667
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1347
1668
|
// initializeComponent
|
|
1348
|
-
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1669
|
+
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1670
|
+
// Let the runtime know that the component has been initialized
|
|
1671
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1349
1672
|
{
|
|
1350
|
-
// we haven't initialized this element yet
|
|
1351
|
-
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1352
1673
|
// lazy loaded components
|
|
1353
1674
|
// request the component's implementation to be
|
|
1354
1675
|
// wired up with the host element
|
|
@@ -1366,7 +1687,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1366
1687
|
{
|
|
1367
1688
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1368
1689
|
}
|
|
1369
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1690
|
+
proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
|
|
1370
1691
|
Cstr.isProxied = true;
|
|
1371
1692
|
}
|
|
1372
1693
|
const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
|
|
@@ -1374,7 +1695,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1374
1695
|
// but let's keep track of when we start and stop
|
|
1375
1696
|
// so that the getters/setters don't incorrectly step on data
|
|
1376
1697
|
{
|
|
1377
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1698
|
+
hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1378
1699
|
}
|
|
1379
1700
|
// construct the lazy-loaded component implementation
|
|
1380
1701
|
// passing the hostRef is very important during
|
|
@@ -1387,10 +1708,10 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1387
1708
|
consoleError(e);
|
|
1388
1709
|
}
|
|
1389
1710
|
{
|
|
1390
|
-
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1711
|
+
hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
|
|
1391
1712
|
}
|
|
1392
1713
|
{
|
|
1393
|
-
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1714
|
+
hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
|
|
1394
1715
|
}
|
|
1395
1716
|
endNewInstance();
|
|
1396
1717
|
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
@@ -1401,7 +1722,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1401
1722
|
const scopeId = getScopeId(cmpMeta);
|
|
1402
1723
|
if (!styles.has(scopeId)) {
|
|
1403
1724
|
const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
|
|
1404
|
-
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1725
|
+
registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
|
|
1405
1726
|
endRegisterStyles();
|
|
1406
1727
|
}
|
|
1407
1728
|
}
|
|
@@ -1428,19 +1749,20 @@ const fireConnectedCallback = (instance) => {
|
|
|
1428
1749
|
}
|
|
1429
1750
|
};
|
|
1430
1751
|
const connectedCallback = (elm) => {
|
|
1431
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1752
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1432
1753
|
const hostRef = getHostRef(elm);
|
|
1433
1754
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
1434
1755
|
const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
|
|
1435
|
-
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1756
|
+
if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
|
|
1436
1757
|
// first time this component has connected
|
|
1437
|
-
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1758
|
+
hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
|
|
1438
1759
|
{
|
|
1439
1760
|
// initUpdate
|
|
1440
1761
|
// if the slot polyfill is required we'll need to put some nodes
|
|
1441
1762
|
// in here to act as original content anchors as we move nodes around
|
|
1442
1763
|
// host element has been connected to the DOM
|
|
1443
|
-
if ((
|
|
1764
|
+
if ((// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
|
|
1765
|
+
cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
|
|
1444
1766
|
setContentReference(elm);
|
|
1445
1767
|
}
|
|
1446
1768
|
}
|
|
@@ -1463,7 +1785,7 @@ const connectedCallback = (elm) => {
|
|
|
1463
1785
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
1464
1786
|
if (cmpMeta.$members$) {
|
|
1465
1787
|
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1466
|
-
if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1788
|
+
if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
|
|
1467
1789
|
const value = elm[memberName];
|
|
1468
1790
|
delete elm[memberName];
|
|
1469
1791
|
elm[memberName] = value;
|
|
@@ -1493,7 +1815,7 @@ const setContentReference = (elm) => {
|
|
|
1493
1815
|
elm.insertBefore(contentRefElm, elm.firstChild);
|
|
1494
1816
|
};
|
|
1495
1817
|
const disconnectedCallback = (elm) => {
|
|
1496
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1818
|
+
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1497
1819
|
const hostRef = getHostRef(elm);
|
|
1498
1820
|
const instance = hostRef.$lazyInstance$ ;
|
|
1499
1821
|
{
|
|
@@ -1502,6 +1824,7 @@ const disconnectedCallback = (elm) => {
|
|
|
1502
1824
|
}
|
|
1503
1825
|
};
|
|
1504
1826
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1827
|
+
var _a;
|
|
1505
1828
|
const endBootstrap = createTime();
|
|
1506
1829
|
const cmpTags = [];
|
|
1507
1830
|
const exclude = options.exclude || [];
|
|
@@ -1539,7 +1862,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1539
1862
|
super(self);
|
|
1540
1863
|
self = this;
|
|
1541
1864
|
registerHost(self, cmpMeta);
|
|
1542
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1865
|
+
if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
|
|
1543
1866
|
// this component is using shadow dom
|
|
1544
1867
|
// and this browser supports shadow dom
|
|
1545
1868
|
// add the read-only property "shadowRoot" to the host element
|
|
@@ -1574,13 +1897,18 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1574
1897
|
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1575
1898
|
if (!exclude.includes(tagName) && !customElements.get(tagName)) {
|
|
1576
1899
|
cmpTags.push(tagName);
|
|
1577
|
-
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
|
|
1900
|
+
customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
|
|
1578
1901
|
}
|
|
1579
1902
|
});
|
|
1580
1903
|
});
|
|
1581
1904
|
{
|
|
1582
1905
|
visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
|
|
1583
1906
|
visibilityStyle.setAttribute('data-styles', '');
|
|
1907
|
+
// Apply CSP nonce to the style tag if it exists
|
|
1908
|
+
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
1909
|
+
if (nonce != null) {
|
|
1910
|
+
visibilityStyle.setAttribute('nonce', nonce);
|
|
1911
|
+
}
|
|
1584
1912
|
head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1585
1913
|
}
|
|
1586
1914
|
// Process deferred connectedCallbacks now all components have been registered
|
|
@@ -1596,11 +1924,14 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1596
1924
|
// Fallback appLoad event
|
|
1597
1925
|
endBootstrap();
|
|
1598
1926
|
};
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1927
|
+
/**
|
|
1928
|
+
* Assigns the given value to the nonce property on the runtime platform object.
|
|
1929
|
+
* During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
|
|
1930
|
+
* @param nonce The value to be assigned to the platform nonce property.
|
|
1931
|
+
* @returns void
|
|
1932
|
+
*/
|
|
1933
|
+
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1934
|
+
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1604
1935
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1605
1936
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1606
1937
|
const registerHost = (elm, cmpMeta) => {
|
|
@@ -1644,14 +1975,35 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1644
1975
|
return importedModule[exportName];
|
|
1645
1976
|
}, consoleError);
|
|
1646
1977
|
};
|
|
1647
|
-
const styles = new Map();
|
|
1978
|
+
const styles = /*@__PURE__*/ new Map();
|
|
1979
|
+
const win = typeof window !== 'undefined' ? window : {};
|
|
1980
|
+
const doc = win.document || { head: {} };
|
|
1981
|
+
const plt = {
|
|
1982
|
+
$flags$: 0,
|
|
1983
|
+
$resourcesUrl$: '',
|
|
1984
|
+
jmp: (h) => h(),
|
|
1985
|
+
raf: (h) => requestAnimationFrame(h),
|
|
1986
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
1987
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
1988
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts),
|
|
1989
|
+
};
|
|
1990
|
+
const promiseResolve = (v) => Promise.resolve(v);
|
|
1991
|
+
const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
|
|
1992
|
+
try {
|
|
1993
|
+
new CSSStyleSheet();
|
|
1994
|
+
return typeof new CSSStyleSheet().replaceSync === 'function';
|
|
1995
|
+
}
|
|
1996
|
+
catch (e) { }
|
|
1997
|
+
return false;
|
|
1998
|
+
})()
|
|
1999
|
+
;
|
|
1648
2000
|
const queueDomReads = [];
|
|
1649
2001
|
const queueDomWrites = [];
|
|
1650
2002
|
const queueTask = (queue, write) => (cb) => {
|
|
1651
2003
|
queue.push(cb);
|
|
1652
2004
|
if (!queuePending) {
|
|
1653
2005
|
queuePending = true;
|
|
1654
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
2006
|
+
if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
|
|
1655
2007
|
nextTick(flush);
|
|
1656
2008
|
}
|
|
1657
2009
|
else {
|
|
@@ -1696,3 +2048,6 @@ exports.getElement = getElement;
|
|
|
1696
2048
|
exports.h = h;
|
|
1697
2049
|
exports.promiseResolve = promiseResolve;
|
|
1698
2050
|
exports.registerInstance = registerInstance;
|
|
2051
|
+
exports.setNonce = setNonce;
|
|
2052
|
+
|
|
2053
|
+
//# sourceMappingURL=index-0cec7387.js.map
|