@lukso/web-components 1.46.0 → 1.47.1
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/components/index.cjs +4 -5
- package/dist/components/index.js +4 -5
- package/dist/components/lukso-button/index.cjs +19 -19
- package/dist/components/lukso-button/index.d.ts +4 -4
- package/dist/components/lukso-button/index.js +19 -19
- package/dist/components/lukso-card/index.cjs +13 -13
- package/dist/components/lukso-card/index.d.ts +7 -7
- package/dist/components/lukso-card/index.js +13 -13
- package/dist/components/lukso-checkbox/index.cjs +14 -14
- package/dist/components/lukso-checkbox/index.d.ts +5 -5
- package/dist/components/lukso-checkbox/index.js +14 -14
- package/dist/components/lukso-footer/index.cjs +4 -4
- package/dist/components/lukso-footer/index.d.ts +1 -1
- package/dist/components/lukso-footer/index.js +4 -4
- package/dist/components/lukso-icon/icons/add-photo.d.ts +1 -1
- package/dist/components/lukso-icon/icons/add-photo.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-down-lg.d.ts +1 -1
- package/dist/components/lukso-icon/icons/arrow-down-lg.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-down-sm.d.ts +1 -1
- package/dist/components/lukso-icon/icons/arrow-down-sm.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-left-lg.d.ts +1 -1
- package/dist/components/lukso-icon/icons/arrow-left-lg.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-left-sm.d.ts +1 -1
- package/dist/components/lukso-icon/icons/arrow-left-sm.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-right-lg.d.ts +1 -1
- package/dist/components/lukso-icon/icons/arrow-right-lg.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-right-sm.d.ts +1 -1
- package/dist/components/lukso-icon/icons/arrow-right-sm.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-up-lg.d.ts +1 -1
- package/dist/components/lukso-icon/icons/arrow-up-lg.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/arrow-up-sm.d.ts +1 -1
- package/dist/components/lukso-icon/icons/arrow-up-sm.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/barbell-outline.d.ts +1 -1
- package/dist/components/lukso-icon/icons/barbell-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/bulb-outline.d.ts +1 -1
- package/dist/components/lukso-icon/icons/bulb-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/camera.d.ts +1 -1
- package/dist/components/lukso-icon/icons/camera.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/clipboard.d.ts +1 -1
- package/dist/components/lukso-icon/icons/clipboard.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/clock.d.ts +1 -1
- package/dist/components/lukso-icon/icons/clock.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/close-lg.d.ts +1 -1
- package/dist/components/lukso-icon/icons/close-lg.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/close-sm.d.ts +1 -1
- package/dist/components/lukso-icon/icons/close-sm.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/cloud.d.ts +1 -1
- package/dist/components/lukso-icon/icons/cloud.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/compass-outline.d.ts +1 -1
- package/dist/components/lukso-icon/icons/compass-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/complete-filled-fade-in.d.ts +1 -1
- package/dist/components/lukso-icon/icons/complete-filled-fade-in.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/complete-filled.d.ts +1 -1
- package/dist/components/lukso-icon/icons/complete-filled.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/complete-outline.d.ts +1 -1
- package/dist/components/lukso-icon/icons/complete-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/connect.d.ts +1 -1
- package/dist/components/lukso-icon/icons/connect.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/connections.d.ts +1 -1
- package/dist/components/lukso-icon/icons/connections.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/contract-lock.d.ts +1 -1
- package/dist/components/lukso-icon/icons/contract-lock.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/contract-signed.d.ts +1 -1
- package/dist/components/lukso-icon/icons/contract-signed.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/controller.d.ts +1 -1
- package/dist/components/lukso-icon/icons/controller.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/copy.d.ts +1 -1
- package/dist/components/lukso-icon/icons/copy.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/cross-outline.d.ts +1 -1
- package/dist/components/lukso-icon/icons/cross-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/desktop-sharp.d.ts +1 -1
- package/dist/components/lukso-icon/icons/desktop-sharp.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/dots.d.ts +1 -1
- package/dist/components/lukso-icon/icons/dots.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/edit.d.ts +1 -1
- package/dist/components/lukso-icon/icons/edit.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/error.d.ts +1 -1
- package/dist/components/lukso-icon/icons/error.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/eth-logo.d.ts +1 -1
- package/dist/components/lukso-icon/icons/eth-logo.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/expand.d.ts +1 -1
- package/dist/components/lukso-icon/icons/expand.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/extension.d.ts +1 -1
- package/dist/components/lukso-icon/icons/extension.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/eye-hide.d.ts +1 -1
- package/dist/components/lukso-icon/icons/eye-hide.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/eye-show.d.ts +1 -1
- package/dist/components/lukso-icon/icons/eye-show.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/filter.d.ts +1 -1
- package/dist/components/lukso-icon/icons/filter.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/fish-outline.d.ts +1 -1
- package/dist/components/lukso-icon/icons/fish-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/flip.d.ts +1 -1
- package/dist/components/lukso-icon/icons/flip.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/globe.d.ts +1 -1
- package/dist/components/lukso-icon/icons/globe.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/google-color.d.ts +1 -1
- package/dist/components/lukso-icon/icons/google-color.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/hamburger.d.ts +1 -1
- package/dist/components/lukso-icon/icons/hamburger.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/infinite.d.ts +1 -1
- package/dist/components/lukso-icon/icons/infinite.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/information.d.ts +1 -1
- package/dist/components/lukso-icon/icons/information.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/key-outline.d.ts +1 -1
- package/dist/components/lukso-icon/icons/key-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/link.d.ts +1 -1
- package/dist/components/lukso-icon/icons/link.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/link1.d.ts +1 -1
- package/dist/components/lukso-icon/icons/link1.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/link2.d.ts +1 -1
- package/dist/components/lukso-icon/icons/link2.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/link3.d.ts +1 -1
- package/dist/components/lukso-icon/icons/link3.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/link4.d.ts +1 -1
- package/dist/components/lukso-icon/icons/link4.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/loading.d.ts +1 -1
- package/dist/components/lukso-icon/icons/loading.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/location.d.ts +1 -1
- package/dist/components/lukso-icon/icons/location.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/locked.d.ts +1 -1
- package/dist/components/lukso-icon/icons/locked.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/login-2.d.ts +1 -1
- package/dist/components/lukso-icon/icons/login-2.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/login-3.d.ts +1 -1
- package/dist/components/lukso-icon/icons/login-3.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/login.d.ts +1 -1
- package/dist/components/lukso-icon/icons/login.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-brave.d.ts +1 -1
- package/dist/components/lukso-icon/icons/logo-brave.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-chrome.d.ts +1 -1
- package/dist/components/lukso-icon/icons/logo-chrome.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-edge.d.ts +1 -1
- package/dist/components/lukso-icon/icons/logo-edge.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-firefox.d.ts +1 -1
- package/dist/components/lukso-icon/icons/logo-firefox.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-opera.d.ts +1 -1
- package/dist/components/lukso-icon/icons/logo-opera.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/logo-safari.d.ts +1 -1
- package/dist/components/lukso-icon/icons/logo-safari.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/lyx-logo.d.ts +1 -1
- package/dist/components/lukso-icon/icons/lyx-logo.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/mail.d.ts +1 -1
- package/dist/components/lukso-icon/icons/mail.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/menu-1.d.ts +1 -1
- package/dist/components/lukso-icon/icons/menu-1.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/menu-2.d.ts +1 -1
- package/dist/components/lukso-icon/icons/menu-2.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/migrate.d.ts +1 -1
- package/dist/components/lukso-icon/icons/migrate.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/minimize.d.ts +1 -1
- package/dist/components/lukso-icon/icons/minimize.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/network.d.ts +1 -1
- package/dist/components/lukso-icon/icons/network.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/notifications.d.ts +1 -1
- package/dist/components/lukso-icon/icons/notifications.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/phone-portrait-outline.d.ts +1 -1
- package/dist/components/lukso-icon/icons/phone-portrait-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/pin.d.ts +1 -1
- package/dist/components/lukso-icon/icons/pin.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/play-filled.d.ts +1 -1
- package/dist/components/lukso-icon/icons/play-filled.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/play-outline.d.ts +1 -1
- package/dist/components/lukso-icon/icons/play-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/plus.d.ts +1 -1
- package/dist/components/lukso-icon/icons/plus.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-add.d.ts +1 -1
- package/dist/components/lukso-icon/icons/profile-add.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-export.d.ts +1 -1
- package/dist/components/lukso-icon/icons/profile-export.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-import.d.ts +1 -1
- package/dist/components/lukso-icon/icons/profile-import.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-recovery-2.d.ts +1 -1
- package/dist/components/lukso-icon/icons/profile-recovery-2.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-recovery.d.ts +1 -1
- package/dist/components/lukso-icon/icons/profile-recovery.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile-restore.d.ts +1 -1
- package/dist/components/lukso-icon/icons/profile-restore.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/profile.d.ts +1 -1
- package/dist/components/lukso-icon/icons/profile.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/progress-complete.d.ts +1 -1
- package/dist/components/lukso-icon/icons/progress-complete.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/progress-indicator-alt.d.ts +1 -1
- package/dist/components/lukso-icon/icons/progress-indicator-alt.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/progress-indicator.d.ts +1 -1
- package/dist/components/lukso-icon/icons/progress-indicator.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/pulse-dot.d.ts +1 -1
- package/dist/components/lukso-icon/icons/pulse-dot.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/qr-code.d.ts +1 -1
- package/dist/components/lukso-icon/icons/qr-code.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/relayer.d.ts +1 -1
- package/dist/components/lukso-icon/icons/relayer.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/reload.d.ts +1 -1
- package/dist/components/lukso-icon/icons/reload.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/return-down.d.ts +1 -1
- package/dist/components/lukso-icon/icons/return-down.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/return-left.d.ts +1 -1
- package/dist/components/lukso-icon/icons/return-left.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/return-right.d.ts +1 -1
- package/dist/components/lukso-icon/icons/return-right.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/return-up.d.ts +1 -1
- package/dist/components/lukso-icon/icons/return-up.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/search.d.ts +1 -1
- package/dist/components/lukso-icon/icons/search.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/settings.d.ts +1 -1
- package/dist/components/lukso-icon/icons/settings.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/smart-contract-doc.d.ts +1 -1
- package/dist/components/lukso-icon/icons/smart-contract-doc.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/smart-contract.d.ts +1 -1
- package/dist/components/lukso-icon/icons/smart-contract.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/spinner.d.ts +1 -1
- package/dist/components/lukso-icon/icons/spinner.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/star-filled.d.ts +1 -1
- package/dist/components/lukso-icon/icons/star-filled.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/star-outline.d.ts +1 -1
- package/dist/components/lukso-icon/icons/star-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/step-dot.d.ts +1 -1
- package/dist/components/lukso-icon/icons/step-dot.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/step-progress.d.ts +1 -1
- package/dist/components/lukso-icon/icons/step-progress.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/steps.d.ts +1 -1
- package/dist/components/lukso-icon/icons/steps.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/switched.d.ts +1 -1
- package/dist/components/lukso-icon/icons/switched.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/tick.d.ts +1 -1
- package/dist/components/lukso-icon/icons/tick.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/timer-outline.d.ts +1 -1
- package/dist/components/lukso-icon/icons/timer-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/transaction-receive.d.ts +1 -1
- package/dist/components/lukso-icon/icons/transaction-receive.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/transaction-send.d.ts +1 -1
- package/dist/components/lukso-icon/icons/transaction-send.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/transfer.d.ts +1 -1
- package/dist/components/lukso-icon/icons/transfer.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/trash.d.ts +1 -1
- package/dist/components/lukso-icon/icons/trash.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/turn-down.d.ts +1 -1
- package/dist/components/lukso-icon/icons/turn-down.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/turn-left.d.ts +1 -1
- package/dist/components/lukso-icon/icons/turn-left.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/turn-right.d.ts +1 -1
- package/dist/components/lukso-icon/icons/turn-right.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/turn-up.d.ts +1 -1
- package/dist/components/lukso-icon/icons/turn-up.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/unlocked.d.ts +1 -1
- package/dist/components/lukso-icon/icons/unlocked.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/wallet-outline.d.ts +1 -1
- package/dist/components/lukso-icon/icons/wallet-outline.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/warning-round.d.ts +1 -1
- package/dist/components/lukso-icon/icons/warning-round.d.ts.map +1 -1
- package/dist/components/lukso-icon/icons/warning-triangle.d.ts +1 -1
- package/dist/components/lukso-icon/icons/warning-triangle.d.ts.map +1 -1
- package/dist/components/lukso-icon/index.cjs +8 -8
- package/dist/components/lukso-icon/index.d.ts +1 -1
- package/dist/components/lukso-icon/index.js +8 -8
- package/dist/components/lukso-input/index.cjs +25 -25
- package/dist/components/lukso-input/index.d.ts +6 -6
- package/dist/components/lukso-input/index.js +25 -25
- package/dist/components/lukso-modal/index.cjs +5 -5
- package/dist/components/lukso-modal/index.d.ts +1 -1
- package/dist/components/lukso-modal/index.js +5 -5
- package/dist/components/lukso-navbar/index.cjs +49 -36
- package/dist/components/lukso-navbar/index.d.ts +4 -3
- package/dist/components/lukso-navbar/index.d.ts.map +1 -1
- package/dist/components/lukso-navbar/index.js +49 -36
- package/dist/components/lukso-navbar/lukso-navbar.stories.d.ts +7 -7
- package/dist/components/lukso-navbar/lukso-navbar.stories.d.ts.map +1 -1
- package/dist/components/lukso-profile/index.cjs +9 -9
- package/dist/components/lukso-profile/index.d.ts +1 -1
- package/dist/components/lukso-profile/index.js +9 -9
- package/dist/components/lukso-progress/index.cjs +8 -8
- package/dist/components/lukso-progress/index.d.ts +1 -1
- package/dist/components/lukso-progress/index.js +8 -8
- package/dist/components/lukso-sanitize/index.cjs +121 -81
- package/dist/components/lukso-sanitize/index.d.ts +1 -1
- package/dist/components/lukso-sanitize/index.js +120 -80
- package/dist/components/lukso-search/index.cjs +25 -25
- package/dist/components/lukso-search/index.js +25 -25
- package/dist/components/lukso-share/index.cjs +5 -5
- package/dist/components/lukso-share/index.d.ts +2 -2
- package/dist/components/lukso-share/index.js +5 -5
- package/dist/components/lukso-switch/index.cjs +7 -7
- package/dist/components/lukso-switch/index.d.ts +1 -1
- package/dist/components/lukso-switch/index.js +7 -7
- package/dist/components/lukso-tag/index.cjs +8 -8
- package/dist/components/lukso-tag/index.d.ts +1 -1
- package/dist/components/lukso-tag/index.js +8 -8
- package/dist/components/lukso-terms/index.cjs +6 -6
- package/dist/components/lukso-terms/index.d.ts +1 -1
- package/dist/components/lukso-terms/index.js +6 -6
- package/dist/components/lukso-test/index.cjs +29 -10
- package/dist/components/lukso-test/index.d.ts +1 -1
- package/dist/components/lukso-test/index.js +30 -11
- package/dist/components/lukso-username/index.cjs +15 -15
- package/dist/components/lukso-username/index.d.ts +1 -1
- package/dist/components/lukso-username/index.js +14 -14
- package/dist/components/lukso-wizard/index.cjs +13 -8
- package/dist/components/lukso-wizard/index.d.ts +2 -2
- package/dist/components/lukso-wizard/index.js +12 -7
- package/dist/{index-51cfbd32.js → index-10b4e725.js} +5 -25
- package/dist/{index-c00a1316.cjs → index-416afa07.cjs} +6 -27
- package/dist/index.cjs +4 -5
- package/dist/index.js +4 -5
- package/dist/{query-assigned-elements-5200f974.cjs → query-assigned-elements-1d5d9d4c.cjs} +3 -3
- package/dist/{query-assigned-elements-e36df787.js → query-assigned-elements-5d94572f.js} +2 -2
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/state-0a779257.js +9 -0
- package/dist/{state-51b50a6b.cjs → state-f73a8b4f.cjs} +2 -2
- package/dist/{style-map-bcba103a.js → style-map-5d518e86.js} +1 -1
- package/dist/{style-map-f36ae803.cjs → style-map-f57e0b7e.cjs} +1 -1
- package/package.json +1 -1
- package/dist/directive-helpers-63c6ddf6.js +0 -9
- package/dist/directive-helpers-c00f5d40.cjs +0 -16
- package/dist/state-02a92ffa.js +0 -9
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const queryAssignedElements = require('../../query-assigned-elements-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-416afa07.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const directive = require('../../directive-8278ab14.cjs');
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/class e extends directive.i{constructor(i){if(super(i),this.et=shared_tailwindElement_index.A
|
|
13
|
+
*/class e extends directive.i{constructor(i){if(super(i),this.et=shared_tailwindElement_index.A,i.type!==directive.t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===shared_tailwindElement_index.A||null==r)return this.ft=void 0,this.et=r;if(r===shared_tailwindElement_index.T)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.et)return this.ft;this.et=r;const s=[r];return s.raw=s,this.ft={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const o=directive.e(e);
|
|
14
14
|
|
|
15
|
-
/*! @license DOMPurify 3.0.
|
|
15
|
+
/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */
|
|
16
16
|
|
|
17
17
|
const {
|
|
18
18
|
entries,
|
|
@@ -32,12 +32,6 @@ let {
|
|
|
32
32
|
construct
|
|
33
33
|
} = typeof Reflect !== 'undefined' && Reflect;
|
|
34
34
|
|
|
35
|
-
if (!apply) {
|
|
36
|
-
apply = function apply(fun, thisValue, args) {
|
|
37
|
-
return fun.apply(thisValue, args);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
35
|
if (!freeze) {
|
|
42
36
|
freeze = function freeze(x) {
|
|
43
37
|
return x;
|
|
@@ -50,6 +44,12 @@ if (!seal) {
|
|
|
50
44
|
};
|
|
51
45
|
}
|
|
52
46
|
|
|
47
|
+
if (!apply) {
|
|
48
|
+
apply = function apply(fun, thisValue, args) {
|
|
49
|
+
return fun.apply(thisValue, args);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
53
|
if (!construct) {
|
|
54
54
|
construct = function construct(Func, args) {
|
|
55
55
|
return new Func(...args);
|
|
@@ -67,6 +67,13 @@ const stringIndexOf = unapply(String.prototype.indexOf);
|
|
|
67
67
|
const stringTrim = unapply(String.prototype.trim);
|
|
68
68
|
const regExpTest = unapply(RegExp.prototype.test);
|
|
69
69
|
const typeErrorCreate = unconstruct(TypeError);
|
|
70
|
+
/**
|
|
71
|
+
* Creates a new function that calls the given function with a specified thisArg and arguments.
|
|
72
|
+
*
|
|
73
|
+
* @param {Function} func - The function to be wrapped and called.
|
|
74
|
+
* @returns {Function} A new function that calls the given function with a specified thisArg and arguments.
|
|
75
|
+
*/
|
|
76
|
+
|
|
70
77
|
function unapply(func) {
|
|
71
78
|
return function (thisArg) {
|
|
72
79
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -76,6 +83,14 @@ function unapply(func) {
|
|
|
76
83
|
return apply(func, thisArg, args);
|
|
77
84
|
};
|
|
78
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Creates a new function that constructs an instance of the given constructor function with the provided arguments.
|
|
88
|
+
*
|
|
89
|
+
* @param {Function} func - The constructor function to be wrapped and called.
|
|
90
|
+
* @returns {Function} A new function that constructs an instance of the given constructor function with the provided arguments.
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
|
|
79
94
|
function unconstruct(func) {
|
|
80
95
|
return function () {
|
|
81
96
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
@@ -85,12 +100,18 @@ function unconstruct(func) {
|
|
|
85
100
|
return construct(func, args);
|
|
86
101
|
};
|
|
87
102
|
}
|
|
88
|
-
|
|
103
|
+
/**
|
|
104
|
+
* Add properties to a lookup table
|
|
105
|
+
*
|
|
106
|
+
* @param {Object} set - The set to which elements will be added.
|
|
107
|
+
* @param {Array} array - The array containing elements to be added to the set.
|
|
108
|
+
* @param {Function} transformCaseFunc - An optional function to transform the case of each element before adding to the set.
|
|
109
|
+
* @returns {Object} The modified set with added elements.
|
|
110
|
+
*/
|
|
89
111
|
|
|
90
|
-
function addToSet(set, array, transformCaseFunc) {
|
|
91
|
-
var _transformCaseFunc;
|
|
92
112
|
|
|
93
|
-
|
|
113
|
+
function addToSet(set, array) {
|
|
114
|
+
let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;
|
|
94
115
|
|
|
95
116
|
if (setPrototypeOf) {
|
|
96
117
|
// Make 'in' and truthy checks like Boolean(set.constructor)
|
|
@@ -122,19 +143,32 @@ function addToSet(set, array, transformCaseFunc) {
|
|
|
122
143
|
|
|
123
144
|
return set;
|
|
124
145
|
}
|
|
125
|
-
|
|
146
|
+
/**
|
|
147
|
+
* Shallow clone an object
|
|
148
|
+
*
|
|
149
|
+
* @param {Object} object - The object to be cloned.
|
|
150
|
+
* @returns {Object} A new object that copies the original.
|
|
151
|
+
*/
|
|
152
|
+
|
|
126
153
|
|
|
127
154
|
function clone(object) {
|
|
128
155
|
const newObject = create(null);
|
|
129
156
|
|
|
130
157
|
for (const [property, value] of entries(object)) {
|
|
131
|
-
|
|
158
|
+
if (getOwnPropertyDescriptor(object, property) !== undefined) {
|
|
159
|
+
newObject[property] = value;
|
|
160
|
+
}
|
|
132
161
|
}
|
|
133
162
|
|
|
134
163
|
return newObject;
|
|
135
164
|
}
|
|
136
|
-
|
|
137
|
-
* or getter and behaves accordingly.
|
|
165
|
+
/**
|
|
166
|
+
* This method automatically checks if the prop is function or getter and behaves accordingly.
|
|
167
|
+
*
|
|
168
|
+
* @param {Object} object - The object to look up the getter function in its prototype chain.
|
|
169
|
+
* @param {String} prop - The property name for which to find the getter function.
|
|
170
|
+
* @returns {Function} The getter function found in the prototype chain or a fallback function.
|
|
171
|
+
*/
|
|
138
172
|
|
|
139
173
|
function lookupGetter(object, prop) {
|
|
140
174
|
while (object !== null) {
|
|
@@ -209,7 +243,9 @@ var EXPRESSIONS = /*#__PURE__*/Object.freeze({
|
|
|
209
243
|
DOCTYPE_NAME: DOCTYPE_NAME
|
|
210
244
|
});
|
|
211
245
|
|
|
212
|
-
const getGlobal = ()
|
|
246
|
+
const getGlobal = function getGlobal() {
|
|
247
|
+
return typeof window === 'undefined' ? null : window;
|
|
248
|
+
};
|
|
213
249
|
/**
|
|
214
250
|
* Creates a no-op policy for internal use only.
|
|
215
251
|
* Don't export this function outside this module!
|
|
@@ -267,7 +303,7 @@ function createDOMPurify() {
|
|
|
267
303
|
*/
|
|
268
304
|
|
|
269
305
|
|
|
270
|
-
DOMPurify.version = '3.0.
|
|
306
|
+
DOMPurify.version = '3.0.6';
|
|
271
307
|
/**
|
|
272
308
|
* Array of elements that DOMPurify removed during sanitation.
|
|
273
309
|
* Empty if nothing was removed.
|
|
@@ -282,11 +318,11 @@ function createDOMPurify() {
|
|
|
282
318
|
return DOMPurify;
|
|
283
319
|
}
|
|
284
320
|
|
|
285
|
-
const originalDocument = window.document;
|
|
286
|
-
const currentScript = originalDocument.currentScript;
|
|
287
321
|
let {
|
|
288
322
|
document
|
|
289
323
|
} = window;
|
|
324
|
+
const originalDocument = document;
|
|
325
|
+
const currentScript = originalDocument.currentScript;
|
|
290
326
|
const {
|
|
291
327
|
DocumentFragment,
|
|
292
328
|
HTMLTemplateElement,
|
|
@@ -366,7 +402,7 @@ function createDOMPurify() {
|
|
|
366
402
|
* @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.
|
|
367
403
|
*/
|
|
368
404
|
|
|
369
|
-
let CUSTOM_ELEMENT_HANDLING = Object.seal(
|
|
405
|
+
let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
370
406
|
tagNameCheck: {
|
|
371
407
|
writable: true,
|
|
372
408
|
configurable: false,
|
|
@@ -490,10 +526,10 @@ function createDOMPurify() {
|
|
|
490
526
|
const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
|
|
491
527
|
/* Parsing of strict XHTML documents */
|
|
492
528
|
|
|
493
|
-
let PARSER_MEDIA_TYPE;
|
|
529
|
+
let PARSER_MEDIA_TYPE = null;
|
|
494
530
|
const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];
|
|
495
531
|
const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';
|
|
496
|
-
let transformCaseFunc;
|
|
532
|
+
let transformCaseFunc = null;
|
|
497
533
|
/* Keep a reference to config to pass to hooks */
|
|
498
534
|
|
|
499
535
|
let CONFIG = null;
|
|
@@ -514,7 +550,9 @@ function createDOMPurify() {
|
|
|
514
550
|
// eslint-disable-next-line complexity
|
|
515
551
|
|
|
516
552
|
|
|
517
|
-
const _parseConfig = function _parseConfig(
|
|
553
|
+
const _parseConfig = function _parseConfig() {
|
|
554
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
555
|
+
|
|
518
556
|
if (CONFIG && CONFIG === cfg) {
|
|
519
557
|
return;
|
|
520
558
|
}
|
|
@@ -733,8 +771,6 @@ function createDOMPurify() {
|
|
|
733
771
|
const ALL_MATHML_TAGS = addToSet({}, mathMl$1);
|
|
734
772
|
addToSet(ALL_MATHML_TAGS, mathMlDisallowed);
|
|
735
773
|
/**
|
|
736
|
-
*
|
|
737
|
-
*
|
|
738
774
|
* @param {Element} element a DOM element whose namespace is being checked
|
|
739
775
|
* @returns {boolean} Return false if the element has a
|
|
740
776
|
* namespace that a spec-compliant parser would never
|
|
@@ -890,8 +926,8 @@ function createDOMPurify() {
|
|
|
890
926
|
|
|
891
927
|
const _initDocument = function _initDocument(dirty) {
|
|
892
928
|
/* Create a HTML document */
|
|
893
|
-
let doc;
|
|
894
|
-
let leadingWhitespace;
|
|
929
|
+
let doc = null;
|
|
930
|
+
let leadingWhitespace = null;
|
|
895
931
|
|
|
896
932
|
if (FORCE_BODY) {
|
|
897
933
|
dirty = '<remove></remove>' + dirty;
|
|
@@ -944,16 +980,16 @@ function createDOMPurify() {
|
|
|
944
980
|
return WHOLE_DOCUMENT ? doc.documentElement : body;
|
|
945
981
|
};
|
|
946
982
|
/**
|
|
947
|
-
*
|
|
983
|
+
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
|
|
948
984
|
*
|
|
949
|
-
* @param {
|
|
950
|
-
* @return {
|
|
985
|
+
* @param {Node} root The root element or node to start traversing on.
|
|
986
|
+
* @return {NodeIterator} The created NodeIterator
|
|
951
987
|
*/
|
|
952
988
|
|
|
953
989
|
|
|
954
|
-
const
|
|
990
|
+
const _createNodeIterator = function _createNodeIterator(root) {
|
|
955
991
|
return createNodeIterator.call(root.ownerDocument || root, root, // eslint-disable-next-line no-bitwise
|
|
956
|
-
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null
|
|
992
|
+
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null);
|
|
957
993
|
};
|
|
958
994
|
/**
|
|
959
995
|
* _isClobbered
|
|
@@ -967,15 +1003,15 @@ function createDOMPurify() {
|
|
|
967
1003
|
return elm instanceof HTMLFormElement && (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function' || typeof elm.hasChildNodes !== 'function');
|
|
968
1004
|
};
|
|
969
1005
|
/**
|
|
970
|
-
*
|
|
1006
|
+
* Checks whether the given object is a DOM node.
|
|
971
1007
|
*
|
|
972
|
-
* @param {Node}
|
|
1008
|
+
* @param {Node} object object to check whether it's a DOM node
|
|
973
1009
|
* @return {Boolean} true is object is a DOM node
|
|
974
1010
|
*/
|
|
975
1011
|
|
|
976
1012
|
|
|
977
1013
|
const _isNode = function _isNode(object) {
|
|
978
|
-
return typeof Node === '
|
|
1014
|
+
return typeof Node === 'function' && object instanceof Node;
|
|
979
1015
|
};
|
|
980
1016
|
/**
|
|
981
1017
|
* _executeHook
|
|
@@ -1009,7 +1045,7 @@ function createDOMPurify() {
|
|
|
1009
1045
|
|
|
1010
1046
|
|
|
1011
1047
|
const _sanitizeElements = function _sanitizeElements(currentNode) {
|
|
1012
|
-
let content;
|
|
1048
|
+
let content = null;
|
|
1013
1049
|
/* Execute a hook if present */
|
|
1014
1050
|
|
|
1015
1051
|
_executeHook('beforeSanitizeElements', currentNode, null);
|
|
@@ -1034,7 +1070,7 @@ function createDOMPurify() {
|
|
|
1034
1070
|
/* Detect mXSS attempts abusing namespace confusion */
|
|
1035
1071
|
|
|
1036
1072
|
|
|
1037
|
-
if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) &&
|
|
1073
|
+
if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) {
|
|
1038
1074
|
_forceRemove(currentNode);
|
|
1039
1075
|
|
|
1040
1076
|
return true;
|
|
@@ -1044,9 +1080,14 @@ function createDOMPurify() {
|
|
|
1044
1080
|
|
|
1045
1081
|
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
1046
1082
|
/* Check if we have a custom element to handle */
|
|
1047
|
-
if (!FORBID_TAGS[tagName] &&
|
|
1048
|
-
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName))
|
|
1049
|
-
|
|
1083
|
+
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
1084
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
1085
|
+
return false;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
|
|
1089
|
+
return false;
|
|
1090
|
+
}
|
|
1050
1091
|
}
|
|
1051
1092
|
/* Keep content except for bad-listed elements */
|
|
1052
1093
|
|
|
@@ -1090,9 +1131,9 @@ function createDOMPurify() {
|
|
|
1090
1131
|
if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {
|
|
1091
1132
|
/* Get the element's text content */
|
|
1092
1133
|
content = currentNode.textContent;
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1134
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
1135
|
+
content = stringReplace(content, expr, ' ');
|
|
1136
|
+
});
|
|
1096
1137
|
|
|
1097
1138
|
if (currentNode.textContent !== content) {
|
|
1098
1139
|
arrayPush(DOMPurify.removed, {
|
|
@@ -1134,7 +1175,7 @@ function createDOMPurify() {
|
|
|
1134
1175
|
if ( // First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
1135
1176
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1136
1177
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
1137
|
-
|
|
1178
|
+
_isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
1138
1179
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1139
1180
|
lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else {
|
|
1140
1181
|
return false;
|
|
@@ -1148,14 +1189,16 @@ function createDOMPurify() {
|
|
|
1148
1189
|
return true;
|
|
1149
1190
|
};
|
|
1150
1191
|
/**
|
|
1151
|
-
*
|
|
1192
|
+
* _isBasicCustomElement
|
|
1152
1193
|
* checks if at least one dash is included in tagName, and it's not the first char
|
|
1153
1194
|
* for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
|
|
1195
|
+
*
|
|
1154
1196
|
* @param {string} tagName name of the tag of the node to sanitize
|
|
1197
|
+
* @returns {boolean} Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
|
|
1155
1198
|
*/
|
|
1156
1199
|
|
|
1157
1200
|
|
|
1158
|
-
const
|
|
1201
|
+
const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
|
|
1159
1202
|
return tagName.indexOf('-') > 0;
|
|
1160
1203
|
};
|
|
1161
1204
|
/**
|
|
@@ -1171,12 +1214,7 @@ function createDOMPurify() {
|
|
|
1171
1214
|
|
|
1172
1215
|
|
|
1173
1216
|
const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
|
|
1174
|
-
let attr;
|
|
1175
|
-
let value;
|
|
1176
|
-
let lcName;
|
|
1177
|
-
let l;
|
|
1178
1217
|
/* Execute a hook if present */
|
|
1179
|
-
|
|
1180
1218
|
_executeHook('beforeSanitizeAttributes', currentNode, null);
|
|
1181
1219
|
|
|
1182
1220
|
const {
|
|
@@ -1194,17 +1232,18 @@ function createDOMPurify() {
|
|
|
1194
1232
|
keepAttr: true,
|
|
1195
1233
|
allowedAttributes: ALLOWED_ATTR
|
|
1196
1234
|
};
|
|
1197
|
-
l = attributes.length;
|
|
1235
|
+
let l = attributes.length;
|
|
1198
1236
|
/* Go backwards over all attributes; safely remove bad ones */
|
|
1199
1237
|
|
|
1200
1238
|
while (l--) {
|
|
1201
|
-
attr = attributes[l];
|
|
1239
|
+
const attr = attributes[l];
|
|
1202
1240
|
const {
|
|
1203
1241
|
name,
|
|
1204
|
-
namespaceURI
|
|
1242
|
+
namespaceURI,
|
|
1243
|
+
value: attrValue
|
|
1205
1244
|
} = attr;
|
|
1206
|
-
|
|
1207
|
-
|
|
1245
|
+
const lcName = transformCaseFunc(name);
|
|
1246
|
+
let value = name === 'value' ? attrValue : stringTrim(attrValue);
|
|
1208
1247
|
/* Execute a hook if present */
|
|
1209
1248
|
|
|
1210
1249
|
hookEvent.attrName = lcName;
|
|
@@ -1242,9 +1281,9 @@ function createDOMPurify() {
|
|
|
1242
1281
|
|
|
1243
1282
|
|
|
1244
1283
|
if (SAFE_FOR_TEMPLATES) {
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1284
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
1285
|
+
value = stringReplace(value, expr, ' ');
|
|
1286
|
+
});
|
|
1248
1287
|
}
|
|
1249
1288
|
/* Is `value` valid for this attribute? */
|
|
1250
1289
|
|
|
@@ -1313,9 +1352,9 @@ function createDOMPurify() {
|
|
|
1313
1352
|
|
|
1314
1353
|
|
|
1315
1354
|
const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
|
|
1316
|
-
let shadowNode;
|
|
1355
|
+
let shadowNode = null;
|
|
1317
1356
|
|
|
1318
|
-
const shadowIterator =
|
|
1357
|
+
const shadowIterator = _createNodeIterator(fragment);
|
|
1319
1358
|
/* Execute a hook if present */
|
|
1320
1359
|
|
|
1321
1360
|
|
|
@@ -1351,17 +1390,17 @@ function createDOMPurify() {
|
|
|
1351
1390
|
* Public method providing core sanitation functionality
|
|
1352
1391
|
*
|
|
1353
1392
|
* @param {String|Node} dirty string or DOM node
|
|
1354
|
-
* @param {Object}
|
|
1393
|
+
* @param {Object} cfg object
|
|
1355
1394
|
*/
|
|
1356
1395
|
// eslint-disable-next-line complexity
|
|
1357
1396
|
|
|
1358
1397
|
|
|
1359
1398
|
DOMPurify.sanitize = function (dirty) {
|
|
1360
1399
|
let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1361
|
-
let body;
|
|
1362
|
-
let importedNode;
|
|
1363
|
-
let currentNode;
|
|
1364
|
-
let returnNode;
|
|
1400
|
+
let body = null;
|
|
1401
|
+
let importedNode = null;
|
|
1402
|
+
let currentNode = null;
|
|
1403
|
+
let returnNode = null;
|
|
1365
1404
|
/* Make sure we have a string to sanitize.
|
|
1366
1405
|
DO NOT return early, as this will return the wrong type if
|
|
1367
1406
|
the user has requested a DOM object rather than a string */
|
|
@@ -1456,7 +1495,7 @@ function createDOMPurify() {
|
|
|
1456
1495
|
/* Get node iterator */
|
|
1457
1496
|
|
|
1458
1497
|
|
|
1459
|
-
const nodeIterator =
|
|
1498
|
+
const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
|
|
1460
1499
|
/* Now start iterating over the created document */
|
|
1461
1500
|
|
|
1462
1501
|
|
|
@@ -1521,9 +1560,9 @@ function createDOMPurify() {
|
|
|
1521
1560
|
|
|
1522
1561
|
|
|
1523
1562
|
if (SAFE_FOR_TEMPLATES) {
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1563
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
1564
|
+
serializedHTML = stringReplace(serializedHTML, expr, ' ');
|
|
1565
|
+
});
|
|
1527
1566
|
}
|
|
1528
1567
|
|
|
1529
1568
|
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
|
|
@@ -1536,7 +1575,9 @@ function createDOMPurify() {
|
|
|
1536
1575
|
*/
|
|
1537
1576
|
|
|
1538
1577
|
|
|
1539
|
-
DOMPurify.setConfig = function (
|
|
1578
|
+
DOMPurify.setConfig = function () {
|
|
1579
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1580
|
+
|
|
1540
1581
|
_parseConfig(cfg);
|
|
1541
1582
|
|
|
1542
1583
|
SET_CONFIG = true;
|
|
@@ -1557,9 +1598,9 @@ function createDOMPurify() {
|
|
|
1557
1598
|
* Uses last set config, if any. Otherwise, uses config defaults.
|
|
1558
1599
|
* isValidAttribute
|
|
1559
1600
|
*
|
|
1560
|
-
* @param {
|
|
1561
|
-
* @param {
|
|
1562
|
-
* @param {
|
|
1601
|
+
* @param {String} tag Tag name of containing element.
|
|
1602
|
+
* @param {String} attr Attribute name.
|
|
1603
|
+
* @param {String} value Attribute value.
|
|
1563
1604
|
* @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.
|
|
1564
1605
|
*/
|
|
1565
1606
|
|
|
@@ -1622,7 +1663,6 @@ function createDOMPurify() {
|
|
|
1622
1663
|
/**
|
|
1623
1664
|
* RemoveAllHooks
|
|
1624
1665
|
* Public method to remove all DOMPurify hooks
|
|
1625
|
-
*
|
|
1626
1666
|
*/
|
|
1627
1667
|
|
|
1628
1668
|
|
|
@@ -1668,11 +1708,11 @@ exports.LuksoSanitize = class LuksoSanitize extends shared_tailwindElement_index
|
|
|
1668
1708
|
}
|
|
1669
1709
|
};
|
|
1670
1710
|
__decorateClass([
|
|
1671
|
-
queryAssignedElements.
|
|
1711
|
+
queryAssignedElements.n({ type: String, attribute: "html-content" })
|
|
1672
1712
|
], exports.LuksoSanitize.prototype, "htmlContent", 2);
|
|
1673
1713
|
__decorateClass([
|
|
1674
|
-
queryAssignedElements.
|
|
1714
|
+
queryAssignedElements.n({ type: Boolean, attribute: "is-pre" })
|
|
1675
1715
|
], exports.LuksoSanitize.prototype, "isPre", 2);
|
|
1676
1716
|
exports.LuksoSanitize = __decorateClass([
|
|
1677
|
-
queryAssignedElements.e
|
|
1717
|
+
queryAssignedElements.e("lukso-sanitize")
|
|
1678
1718
|
], exports.LuksoSanitize);
|
|
@@ -4,7 +4,7 @@ export declare class LuksoSanitize extends TailwindElement {
|
|
|
4
4
|
isPre: boolean;
|
|
5
5
|
private options;
|
|
6
6
|
sanitize(): any;
|
|
7
|
-
render(): import("lit").TemplateResult<1>;
|
|
7
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
8
8
|
}
|
|
9
9
|
declare global {
|
|
10
10
|
interface HTMLElementTagNameMap {
|