@lukso/web-components 1.47.0 → 1.48.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/components/index.cjs +5 -6
- package/dist/components/index.js +5 -6
- package/dist/components/lukso-button/index.cjs +20 -20
- package/dist/components/lukso-button/index.d.ts +4 -4
- package/dist/components/lukso-button/index.js +20 -20
- package/dist/components/lukso-card/index.cjs +14 -14
- package/dist/components/lukso-card/index.d.ts +7 -7
- package/dist/components/lukso-card/index.js +14 -14
- package/dist/components/lukso-checkbox/index.cjs +15 -15
- package/dist/components/lukso-checkbox/index.d.ts +5 -5
- package/dist/components/lukso-checkbox/index.js +15 -15
- 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 +26 -26
- package/dist/components/lukso-input/index.d.ts +6 -6
- package/dist/components/lukso-input/index.js +26 -26
- package/dist/components/lukso-modal/index.cjs +6 -6
- package/dist/components/lukso-modal/index.d.ts +1 -1
- package/dist/components/lukso-modal/index.js +6 -6
- package/dist/components/lukso-navbar/index.cjs +15 -15
- package/dist/components/lukso-navbar/index.d.ts +3 -3
- package/dist/components/lukso-navbar/index.js +15 -15
- package/dist/components/lukso-profile/index.cjs +10 -10
- package/dist/components/lukso-profile/index.d.ts +1 -1
- package/dist/components/lukso-profile/index.js +10 -10
- package/dist/components/lukso-progress/index.cjs +9 -9
- package/dist/components/lukso-progress/index.d.ts +1 -1
- package/dist/components/lukso-progress/index.js +9 -9
- 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 +26 -26
- package/dist/components/lukso-search/index.js +26 -26
- 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 +8 -8
- package/dist/components/lukso-switch/index.d.ts +1 -1
- package/dist/components/lukso-switch/index.js +8 -8
- package/dist/components/lukso-tag/index.cjs +9 -9
- package/dist/components/lukso-tag/index.d.ts +1 -1
- package/dist/components/lukso-tag/index.js +9 -9
- package/dist/components/lukso-terms/index.cjs +7 -7
- package/dist/components/lukso-terms/index.d.ts +1 -1
- package/dist/components/lukso-terms/index.js +7 -7
- 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 +16 -16
- package/dist/components/lukso-username/index.d.ts +1 -1
- package/dist/components/lukso-username/index.js +15 -15
- package/dist/components/lukso-wizard/index.cjs +14 -9
- package/dist/components/lukso-wizard/index.d.ts +2 -2
- package/dist/components/lukso-wizard/index.js +13 -8
- package/dist/index-944f6ebe.js +2543 -0
- package/dist/index-97750d66.cjs +2546 -0
- package/dist/index-a03613f8.cjs +46 -0
- package/dist/index-c72ac15f.js +39 -0
- package/dist/index.cjs +6 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -6
- 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-7d8d33bb.js → style-map-cd69bc0c.js} +1 -1
- package/dist/{style-map-bdd4a4b4.cjs → style-map-d09deecd.cjs} +1 -1
- package/dist/vite.full.config.d.ts.map +1 -1
- package/dist/vite.tools.config.d.ts.map +1 -1
- package/package.json +6 -1
- package/tools/cn.cjs +2530 -0
- package/tools/cn.d.ts +3 -0
- package/tools/cn.d.ts.map +1 -0
- package/tools/cn.js +2526 -0
- package/tools/index.cjs +2 -0
- package/tools/index.d.ts +1 -0
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +1 -0
- package/dist/directive-helpers-3445f03f.cjs +0 -16
- package/dist/directive-helpers-3b8282aa.js +0 -9
- package/dist/index-12d3b4a1.js +0 -59
- package/dist/index-26918474.cjs +0 -67
- package/dist/index-5e194caf.js +0 -18
- package/dist/index-e9668573.cjs +0 -20
- package/dist/state-02a92ffa.js +0 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { e as e$2
|
|
1
|
+
import { A, b as T, a as TailwindElement, x } from '../../index-c72ac15f.js';
|
|
2
|
+
import { n, e as e$2 } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { i, t, e as e$1 } from '../../directive-2bb7789e.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -8,7 +8,7 @@ import { i, t, e as e$1 } from '../../directive-2bb7789e.js';
|
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
9
|
*/class e extends i{constructor(i){if(super(i),this.et=A,i.type!==t.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===A||null==r)return this.ft=void 0,this.et=r;if(r===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=e$1(e);
|
|
10
10
|
|
|
11
|
-
/*! @license DOMPurify 3.0.
|
|
11
|
+
/*! @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 */
|
|
12
12
|
|
|
13
13
|
const {
|
|
14
14
|
entries,
|
|
@@ -28,12 +28,6 @@ let {
|
|
|
28
28
|
construct
|
|
29
29
|
} = typeof Reflect !== 'undefined' && Reflect;
|
|
30
30
|
|
|
31
|
-
if (!apply) {
|
|
32
|
-
apply = function apply(fun, thisValue, args) {
|
|
33
|
-
return fun.apply(thisValue, args);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
31
|
if (!freeze) {
|
|
38
32
|
freeze = function freeze(x) {
|
|
39
33
|
return x;
|
|
@@ -46,6 +40,12 @@ if (!seal) {
|
|
|
46
40
|
};
|
|
47
41
|
}
|
|
48
42
|
|
|
43
|
+
if (!apply) {
|
|
44
|
+
apply = function apply(fun, thisValue, args) {
|
|
45
|
+
return fun.apply(thisValue, args);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
49
|
if (!construct) {
|
|
50
50
|
construct = function construct(Func, args) {
|
|
51
51
|
return new Func(...args);
|
|
@@ -63,6 +63,13 @@ const stringIndexOf = unapply(String.prototype.indexOf);
|
|
|
63
63
|
const stringTrim = unapply(String.prototype.trim);
|
|
64
64
|
const regExpTest = unapply(RegExp.prototype.test);
|
|
65
65
|
const typeErrorCreate = unconstruct(TypeError);
|
|
66
|
+
/**
|
|
67
|
+
* Creates a new function that calls the given function with a specified thisArg and arguments.
|
|
68
|
+
*
|
|
69
|
+
* @param {Function} func - The function to be wrapped and called.
|
|
70
|
+
* @returns {Function} A new function that calls the given function with a specified thisArg and arguments.
|
|
71
|
+
*/
|
|
72
|
+
|
|
66
73
|
function unapply(func) {
|
|
67
74
|
return function (thisArg) {
|
|
68
75
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -72,6 +79,14 @@ function unapply(func) {
|
|
|
72
79
|
return apply(func, thisArg, args);
|
|
73
80
|
};
|
|
74
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* Creates a new function that constructs an instance of the given constructor function with the provided arguments.
|
|
84
|
+
*
|
|
85
|
+
* @param {Function} func - The constructor function to be wrapped and called.
|
|
86
|
+
* @returns {Function} A new function that constructs an instance of the given constructor function with the provided arguments.
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
|
|
75
90
|
function unconstruct(func) {
|
|
76
91
|
return function () {
|
|
77
92
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
@@ -81,12 +96,18 @@ function unconstruct(func) {
|
|
|
81
96
|
return construct(func, args);
|
|
82
97
|
};
|
|
83
98
|
}
|
|
84
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Add properties to a lookup table
|
|
101
|
+
*
|
|
102
|
+
* @param {Object} set - The set to which elements will be added.
|
|
103
|
+
* @param {Array} array - The array containing elements to be added to the set.
|
|
104
|
+
* @param {Function} transformCaseFunc - An optional function to transform the case of each element before adding to the set.
|
|
105
|
+
* @returns {Object} The modified set with added elements.
|
|
106
|
+
*/
|
|
85
107
|
|
|
86
|
-
function addToSet(set, array, transformCaseFunc) {
|
|
87
|
-
var _transformCaseFunc;
|
|
88
108
|
|
|
89
|
-
|
|
109
|
+
function addToSet(set, array) {
|
|
110
|
+
let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase;
|
|
90
111
|
|
|
91
112
|
if (setPrototypeOf) {
|
|
92
113
|
// Make 'in' and truthy checks like Boolean(set.constructor)
|
|
@@ -118,19 +139,32 @@ function addToSet(set, array, transformCaseFunc) {
|
|
|
118
139
|
|
|
119
140
|
return set;
|
|
120
141
|
}
|
|
121
|
-
|
|
142
|
+
/**
|
|
143
|
+
* Shallow clone an object
|
|
144
|
+
*
|
|
145
|
+
* @param {Object} object - The object to be cloned.
|
|
146
|
+
* @returns {Object} A new object that copies the original.
|
|
147
|
+
*/
|
|
148
|
+
|
|
122
149
|
|
|
123
150
|
function clone(object) {
|
|
124
151
|
const newObject = create(null);
|
|
125
152
|
|
|
126
153
|
for (const [property, value] of entries(object)) {
|
|
127
|
-
|
|
154
|
+
if (getOwnPropertyDescriptor(object, property) !== undefined) {
|
|
155
|
+
newObject[property] = value;
|
|
156
|
+
}
|
|
128
157
|
}
|
|
129
158
|
|
|
130
159
|
return newObject;
|
|
131
160
|
}
|
|
132
|
-
|
|
133
|
-
* or getter and behaves accordingly.
|
|
161
|
+
/**
|
|
162
|
+
* This method automatically checks if the prop is function or getter and behaves accordingly.
|
|
163
|
+
*
|
|
164
|
+
* @param {Object} object - The object to look up the getter function in its prototype chain.
|
|
165
|
+
* @param {String} prop - The property name for which to find the getter function.
|
|
166
|
+
* @returns {Function} The getter function found in the prototype chain or a fallback function.
|
|
167
|
+
*/
|
|
134
168
|
|
|
135
169
|
function lookupGetter(object, prop) {
|
|
136
170
|
while (object !== null) {
|
|
@@ -205,7 +239,9 @@ var EXPRESSIONS = /*#__PURE__*/Object.freeze({
|
|
|
205
239
|
DOCTYPE_NAME: DOCTYPE_NAME
|
|
206
240
|
});
|
|
207
241
|
|
|
208
|
-
const getGlobal = ()
|
|
242
|
+
const getGlobal = function getGlobal() {
|
|
243
|
+
return typeof window === 'undefined' ? null : window;
|
|
244
|
+
};
|
|
209
245
|
/**
|
|
210
246
|
* Creates a no-op policy for internal use only.
|
|
211
247
|
* Don't export this function outside this module!
|
|
@@ -263,7 +299,7 @@ function createDOMPurify() {
|
|
|
263
299
|
*/
|
|
264
300
|
|
|
265
301
|
|
|
266
|
-
DOMPurify.version = '3.0.
|
|
302
|
+
DOMPurify.version = '3.0.6';
|
|
267
303
|
/**
|
|
268
304
|
* Array of elements that DOMPurify removed during sanitation.
|
|
269
305
|
* Empty if nothing was removed.
|
|
@@ -278,11 +314,11 @@ function createDOMPurify() {
|
|
|
278
314
|
return DOMPurify;
|
|
279
315
|
}
|
|
280
316
|
|
|
281
|
-
const originalDocument = window.document;
|
|
282
|
-
const currentScript = originalDocument.currentScript;
|
|
283
317
|
let {
|
|
284
318
|
document
|
|
285
319
|
} = window;
|
|
320
|
+
const originalDocument = document;
|
|
321
|
+
const currentScript = originalDocument.currentScript;
|
|
286
322
|
const {
|
|
287
323
|
DocumentFragment,
|
|
288
324
|
HTMLTemplateElement,
|
|
@@ -362,7 +398,7 @@ function createDOMPurify() {
|
|
|
362
398
|
* @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`.
|
|
363
399
|
*/
|
|
364
400
|
|
|
365
|
-
let CUSTOM_ELEMENT_HANDLING = Object.seal(
|
|
401
|
+
let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
366
402
|
tagNameCheck: {
|
|
367
403
|
writable: true,
|
|
368
404
|
configurable: false,
|
|
@@ -486,10 +522,10 @@ function createDOMPurify() {
|
|
|
486
522
|
const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString);
|
|
487
523
|
/* Parsing of strict XHTML documents */
|
|
488
524
|
|
|
489
|
-
let PARSER_MEDIA_TYPE;
|
|
525
|
+
let PARSER_MEDIA_TYPE = null;
|
|
490
526
|
const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html'];
|
|
491
527
|
const DEFAULT_PARSER_MEDIA_TYPE = 'text/html';
|
|
492
|
-
let transformCaseFunc;
|
|
528
|
+
let transformCaseFunc = null;
|
|
493
529
|
/* Keep a reference to config to pass to hooks */
|
|
494
530
|
|
|
495
531
|
let CONFIG = null;
|
|
@@ -510,7 +546,9 @@ function createDOMPurify() {
|
|
|
510
546
|
// eslint-disable-next-line complexity
|
|
511
547
|
|
|
512
548
|
|
|
513
|
-
const _parseConfig = function _parseConfig(
|
|
549
|
+
const _parseConfig = function _parseConfig() {
|
|
550
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
551
|
+
|
|
514
552
|
if (CONFIG && CONFIG === cfg) {
|
|
515
553
|
return;
|
|
516
554
|
}
|
|
@@ -729,8 +767,6 @@ function createDOMPurify() {
|
|
|
729
767
|
const ALL_MATHML_TAGS = addToSet({}, mathMl$1);
|
|
730
768
|
addToSet(ALL_MATHML_TAGS, mathMlDisallowed);
|
|
731
769
|
/**
|
|
732
|
-
*
|
|
733
|
-
*
|
|
734
770
|
* @param {Element} element a DOM element whose namespace is being checked
|
|
735
771
|
* @returns {boolean} Return false if the element has a
|
|
736
772
|
* namespace that a spec-compliant parser would never
|
|
@@ -886,8 +922,8 @@ function createDOMPurify() {
|
|
|
886
922
|
|
|
887
923
|
const _initDocument = function _initDocument(dirty) {
|
|
888
924
|
/* Create a HTML document */
|
|
889
|
-
let doc;
|
|
890
|
-
let leadingWhitespace;
|
|
925
|
+
let doc = null;
|
|
926
|
+
let leadingWhitespace = null;
|
|
891
927
|
|
|
892
928
|
if (FORCE_BODY) {
|
|
893
929
|
dirty = '<remove></remove>' + dirty;
|
|
@@ -940,16 +976,16 @@ function createDOMPurify() {
|
|
|
940
976
|
return WHOLE_DOCUMENT ? doc.documentElement : body;
|
|
941
977
|
};
|
|
942
978
|
/**
|
|
943
|
-
*
|
|
979
|
+
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
|
|
944
980
|
*
|
|
945
|
-
* @param {
|
|
946
|
-
* @return {
|
|
981
|
+
* @param {Node} root The root element or node to start traversing on.
|
|
982
|
+
* @return {NodeIterator} The created NodeIterator
|
|
947
983
|
*/
|
|
948
984
|
|
|
949
985
|
|
|
950
|
-
const
|
|
986
|
+
const _createNodeIterator = function _createNodeIterator(root) {
|
|
951
987
|
return createNodeIterator.call(root.ownerDocument || root, root, // eslint-disable-next-line no-bitwise
|
|
952
|
-
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null
|
|
988
|
+
NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null);
|
|
953
989
|
};
|
|
954
990
|
/**
|
|
955
991
|
* _isClobbered
|
|
@@ -963,15 +999,15 @@ function createDOMPurify() {
|
|
|
963
999
|
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');
|
|
964
1000
|
};
|
|
965
1001
|
/**
|
|
966
|
-
*
|
|
1002
|
+
* Checks whether the given object is a DOM node.
|
|
967
1003
|
*
|
|
968
|
-
* @param {Node}
|
|
1004
|
+
* @param {Node} object object to check whether it's a DOM node
|
|
969
1005
|
* @return {Boolean} true is object is a DOM node
|
|
970
1006
|
*/
|
|
971
1007
|
|
|
972
1008
|
|
|
973
1009
|
const _isNode = function _isNode(object) {
|
|
974
|
-
return typeof Node === '
|
|
1010
|
+
return typeof Node === 'function' && object instanceof Node;
|
|
975
1011
|
};
|
|
976
1012
|
/**
|
|
977
1013
|
* _executeHook
|
|
@@ -1005,7 +1041,7 @@ function createDOMPurify() {
|
|
|
1005
1041
|
|
|
1006
1042
|
|
|
1007
1043
|
const _sanitizeElements = function _sanitizeElements(currentNode) {
|
|
1008
|
-
let content;
|
|
1044
|
+
let content = null;
|
|
1009
1045
|
/* Execute a hook if present */
|
|
1010
1046
|
|
|
1011
1047
|
_executeHook('beforeSanitizeElements', currentNode, null);
|
|
@@ -1030,7 +1066,7 @@ function createDOMPurify() {
|
|
|
1030
1066
|
/* Detect mXSS attempts abusing namespace confusion */
|
|
1031
1067
|
|
|
1032
1068
|
|
|
1033
|
-
if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) &&
|
|
1069
|
+
if (currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w]/g, currentNode.innerHTML) && regExpTest(/<[/\w]/g, currentNode.textContent)) {
|
|
1034
1070
|
_forceRemove(currentNode);
|
|
1035
1071
|
|
|
1036
1072
|
return true;
|
|
@@ -1040,9 +1076,14 @@ function createDOMPurify() {
|
|
|
1040
1076
|
|
|
1041
1077
|
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
1042
1078
|
/* Check if we have a custom element to handle */
|
|
1043
|
-
if (!FORBID_TAGS[tagName] &&
|
|
1044
|
-
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName))
|
|
1045
|
-
|
|
1079
|
+
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
1080
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
1081
|
+
return false;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) {
|
|
1085
|
+
return false;
|
|
1086
|
+
}
|
|
1046
1087
|
}
|
|
1047
1088
|
/* Keep content except for bad-listed elements */
|
|
1048
1089
|
|
|
@@ -1086,9 +1127,9 @@ function createDOMPurify() {
|
|
|
1086
1127
|
if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {
|
|
1087
1128
|
/* Get the element's text content */
|
|
1088
1129
|
content = currentNode.textContent;
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1130
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
1131
|
+
content = stringReplace(content, expr, ' ');
|
|
1132
|
+
});
|
|
1092
1133
|
|
|
1093
1134
|
if (currentNode.textContent !== content) {
|
|
1094
1135
|
arrayPush(DOMPurify.removed, {
|
|
@@ -1130,7 +1171,7 @@ function createDOMPurify() {
|
|
|
1130
1171
|
if ( // First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
1131
1172
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1132
1173
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
1133
|
-
|
|
1174
|
+
_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
|
|
1134
1175
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
1135
1176
|
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 {
|
|
1136
1177
|
return false;
|
|
@@ -1144,14 +1185,16 @@ function createDOMPurify() {
|
|
|
1144
1185
|
return true;
|
|
1145
1186
|
};
|
|
1146
1187
|
/**
|
|
1147
|
-
*
|
|
1188
|
+
* _isBasicCustomElement
|
|
1148
1189
|
* checks if at least one dash is included in tagName, and it's not the first char
|
|
1149
1190
|
* for more sophisticated checking see https://github.com/sindresorhus/validate-element-name
|
|
1191
|
+
*
|
|
1150
1192
|
* @param {string} tagName name of the tag of the node to sanitize
|
|
1193
|
+
* @returns {boolean} Returns true if the tag name meets the basic criteria for a custom element, otherwise false.
|
|
1151
1194
|
*/
|
|
1152
1195
|
|
|
1153
1196
|
|
|
1154
|
-
const
|
|
1197
|
+
const _isBasicCustomElement = function _isBasicCustomElement(tagName) {
|
|
1155
1198
|
return tagName.indexOf('-') > 0;
|
|
1156
1199
|
};
|
|
1157
1200
|
/**
|
|
@@ -1167,12 +1210,7 @@ function createDOMPurify() {
|
|
|
1167
1210
|
|
|
1168
1211
|
|
|
1169
1212
|
const _sanitizeAttributes = function _sanitizeAttributes(currentNode) {
|
|
1170
|
-
let attr;
|
|
1171
|
-
let value;
|
|
1172
|
-
let lcName;
|
|
1173
|
-
let l;
|
|
1174
1213
|
/* Execute a hook if present */
|
|
1175
|
-
|
|
1176
1214
|
_executeHook('beforeSanitizeAttributes', currentNode, null);
|
|
1177
1215
|
|
|
1178
1216
|
const {
|
|
@@ -1190,17 +1228,18 @@ function createDOMPurify() {
|
|
|
1190
1228
|
keepAttr: true,
|
|
1191
1229
|
allowedAttributes: ALLOWED_ATTR
|
|
1192
1230
|
};
|
|
1193
|
-
l = attributes.length;
|
|
1231
|
+
let l = attributes.length;
|
|
1194
1232
|
/* Go backwards over all attributes; safely remove bad ones */
|
|
1195
1233
|
|
|
1196
1234
|
while (l--) {
|
|
1197
|
-
attr = attributes[l];
|
|
1235
|
+
const attr = attributes[l];
|
|
1198
1236
|
const {
|
|
1199
1237
|
name,
|
|
1200
|
-
namespaceURI
|
|
1238
|
+
namespaceURI,
|
|
1239
|
+
value: attrValue
|
|
1201
1240
|
} = attr;
|
|
1202
|
-
|
|
1203
|
-
|
|
1241
|
+
const lcName = transformCaseFunc(name);
|
|
1242
|
+
let value = name === 'value' ? attrValue : stringTrim(attrValue);
|
|
1204
1243
|
/* Execute a hook if present */
|
|
1205
1244
|
|
|
1206
1245
|
hookEvent.attrName = lcName;
|
|
@@ -1238,9 +1277,9 @@ function createDOMPurify() {
|
|
|
1238
1277
|
|
|
1239
1278
|
|
|
1240
1279
|
if (SAFE_FOR_TEMPLATES) {
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1280
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
1281
|
+
value = stringReplace(value, expr, ' ');
|
|
1282
|
+
});
|
|
1244
1283
|
}
|
|
1245
1284
|
/* Is `value` valid for this attribute? */
|
|
1246
1285
|
|
|
@@ -1309,9 +1348,9 @@ function createDOMPurify() {
|
|
|
1309
1348
|
|
|
1310
1349
|
|
|
1311
1350
|
const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {
|
|
1312
|
-
let shadowNode;
|
|
1351
|
+
let shadowNode = null;
|
|
1313
1352
|
|
|
1314
|
-
const shadowIterator =
|
|
1353
|
+
const shadowIterator = _createNodeIterator(fragment);
|
|
1315
1354
|
/* Execute a hook if present */
|
|
1316
1355
|
|
|
1317
1356
|
|
|
@@ -1347,17 +1386,17 @@ function createDOMPurify() {
|
|
|
1347
1386
|
* Public method providing core sanitation functionality
|
|
1348
1387
|
*
|
|
1349
1388
|
* @param {String|Node} dirty string or DOM node
|
|
1350
|
-
* @param {Object}
|
|
1389
|
+
* @param {Object} cfg object
|
|
1351
1390
|
*/
|
|
1352
1391
|
// eslint-disable-next-line complexity
|
|
1353
1392
|
|
|
1354
1393
|
|
|
1355
1394
|
DOMPurify.sanitize = function (dirty) {
|
|
1356
1395
|
let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1357
|
-
let body;
|
|
1358
|
-
let importedNode;
|
|
1359
|
-
let currentNode;
|
|
1360
|
-
let returnNode;
|
|
1396
|
+
let body = null;
|
|
1397
|
+
let importedNode = null;
|
|
1398
|
+
let currentNode = null;
|
|
1399
|
+
let returnNode = null;
|
|
1361
1400
|
/* Make sure we have a string to sanitize.
|
|
1362
1401
|
DO NOT return early, as this will return the wrong type if
|
|
1363
1402
|
the user has requested a DOM object rather than a string */
|
|
@@ -1452,7 +1491,7 @@ function createDOMPurify() {
|
|
|
1452
1491
|
/* Get node iterator */
|
|
1453
1492
|
|
|
1454
1493
|
|
|
1455
|
-
const nodeIterator =
|
|
1494
|
+
const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body);
|
|
1456
1495
|
/* Now start iterating over the created document */
|
|
1457
1496
|
|
|
1458
1497
|
|
|
@@ -1517,9 +1556,9 @@ function createDOMPurify() {
|
|
|
1517
1556
|
|
|
1518
1557
|
|
|
1519
1558
|
if (SAFE_FOR_TEMPLATES) {
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1559
|
+
arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => {
|
|
1560
|
+
serializedHTML = stringReplace(serializedHTML, expr, ' ');
|
|
1561
|
+
});
|
|
1523
1562
|
}
|
|
1524
1563
|
|
|
1525
1564
|
return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;
|
|
@@ -1532,7 +1571,9 @@ function createDOMPurify() {
|
|
|
1532
1571
|
*/
|
|
1533
1572
|
|
|
1534
1573
|
|
|
1535
|
-
DOMPurify.setConfig = function (
|
|
1574
|
+
DOMPurify.setConfig = function () {
|
|
1575
|
+
let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1576
|
+
|
|
1536
1577
|
_parseConfig(cfg);
|
|
1537
1578
|
|
|
1538
1579
|
SET_CONFIG = true;
|
|
@@ -1553,9 +1594,9 @@ function createDOMPurify() {
|
|
|
1553
1594
|
* Uses last set config, if any. Otherwise, uses config defaults.
|
|
1554
1595
|
* isValidAttribute
|
|
1555
1596
|
*
|
|
1556
|
-
* @param {
|
|
1557
|
-
* @param {
|
|
1558
|
-
* @param {
|
|
1597
|
+
* @param {String} tag Tag name of containing element.
|
|
1598
|
+
* @param {String} attr Attribute name.
|
|
1599
|
+
* @param {String} value Attribute value.
|
|
1559
1600
|
* @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.
|
|
1560
1601
|
*/
|
|
1561
1602
|
|
|
@@ -1618,7 +1659,6 @@ function createDOMPurify() {
|
|
|
1618
1659
|
/**
|
|
1619
1660
|
* RemoveAllHooks
|
|
1620
1661
|
* Public method to remove all DOMPurify hooks
|
|
1621
|
-
*
|
|
1622
1662
|
*/
|
|
1623
1663
|
|
|
1624
1664
|
|
|
@@ -1664,13 +1704,13 @@ let LuksoSanitize = class extends TailwindElement {
|
|
|
1664
1704
|
}
|
|
1665
1705
|
};
|
|
1666
1706
|
__decorateClass([
|
|
1667
|
-
|
|
1707
|
+
n({ type: String, attribute: "html-content" })
|
|
1668
1708
|
], LuksoSanitize.prototype, "htmlContent", 2);
|
|
1669
1709
|
__decorateClass([
|
|
1670
|
-
|
|
1710
|
+
n({ type: Boolean, attribute: "is-pre" })
|
|
1671
1711
|
], LuksoSanitize.prototype, "isPre", 2);
|
|
1672
1712
|
LuksoSanitize = __decorateClass([
|
|
1673
|
-
e$
|
|
1713
|
+
e$2("lukso-sanitize")
|
|
1674
1714
|
], LuksoSanitize);
|
|
1675
1715
|
|
|
1676
1716
|
export { LuksoSanitize };
|
|
@@ -2,15 +2,15 @@
|
|
|
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-
|
|
7
|
-
const state = require('../../state-
|
|
8
|
-
const index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-a03613f8.cjs');
|
|
6
|
+
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
|
+
const state = require('../../state-f73a8b4f.cjs');
|
|
8
|
+
const index = require('../../index-97750d66.cjs');
|
|
9
9
|
require('../lukso-icon/index.cjs');
|
|
10
10
|
require('../lukso-profile/index.cjs');
|
|
11
11
|
require('../lukso-username/index.cjs');
|
|
12
12
|
require('../../directive-8278ab14.cjs');
|
|
13
|
-
require('../../style-map-
|
|
13
|
+
require('../../style-map-d09deecd.cjs');
|
|
14
14
|
|
|
15
15
|
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
16
16
|
|
|
@@ -333,64 +333,64 @@ exports.LuksoSearch = class LuksoSearch extends shared_tailwindElement_index.Tai
|
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
__decorateClass([
|
|
336
|
-
queryAssignedElements.
|
|
336
|
+
queryAssignedElements.n({ type: String })
|
|
337
337
|
], exports.LuksoSearch.prototype, "value", 2);
|
|
338
338
|
__decorateClass([
|
|
339
|
-
queryAssignedElements.
|
|
339
|
+
queryAssignedElements.n({ type: String })
|
|
340
340
|
], exports.LuksoSearch.prototype, "name", 2);
|
|
341
341
|
__decorateClass([
|
|
342
|
-
queryAssignedElements.
|
|
342
|
+
queryAssignedElements.n({ type: String })
|
|
343
343
|
], exports.LuksoSearch.prototype, "placeholder", 2);
|
|
344
344
|
__decorateClass([
|
|
345
|
-
queryAssignedElements.
|
|
345
|
+
queryAssignedElements.n({ type: String })
|
|
346
346
|
], exports.LuksoSearch.prototype, "label", 2);
|
|
347
347
|
__decorateClass([
|
|
348
|
-
queryAssignedElements.
|
|
348
|
+
queryAssignedElements.n({ type: String })
|
|
349
349
|
], exports.LuksoSearch.prototype, "autocomplete", 2);
|
|
350
350
|
__decorateClass([
|
|
351
|
-
queryAssignedElements.
|
|
351
|
+
queryAssignedElements.n({ type: String })
|
|
352
352
|
], exports.LuksoSearch.prototype, "id", 2);
|
|
353
353
|
__decorateClass([
|
|
354
|
-
queryAssignedElements.
|
|
354
|
+
queryAssignedElements.n({ type: String })
|
|
355
355
|
], exports.LuksoSearch.prototype, "description", 2);
|
|
356
356
|
__decorateClass([
|
|
357
|
-
queryAssignedElements.
|
|
357
|
+
queryAssignedElements.n({ type: String })
|
|
358
358
|
], exports.LuksoSearch.prototype, "error", 2);
|
|
359
359
|
__decorateClass([
|
|
360
|
-
queryAssignedElements.
|
|
360
|
+
queryAssignedElements.n({ type: String, attribute: "custom-class" })
|
|
361
361
|
], exports.LuksoSearch.prototype, "customClass", 2);
|
|
362
362
|
__decorateClass([
|
|
363
|
-
queryAssignedElements.
|
|
363
|
+
queryAssignedElements.n({ type: Boolean, attribute: "is-full-width" })
|
|
364
364
|
], exports.LuksoSearch.prototype, "isFullWidth", 2);
|
|
365
365
|
__decorateClass([
|
|
366
|
-
queryAssignedElements.
|
|
366
|
+
queryAssignedElements.n({ type: Boolean, attribute: "is-readonly" })
|
|
367
367
|
], exports.LuksoSearch.prototype, "isReadonly", 2);
|
|
368
368
|
__decorateClass([
|
|
369
|
-
queryAssignedElements.
|
|
369
|
+
queryAssignedElements.n({ type: Boolean, attribute: "is-disabled" })
|
|
370
370
|
], exports.LuksoSearch.prototype, "isDisabled", 2);
|
|
371
371
|
__decorateClass([
|
|
372
|
-
queryAssignedElements.
|
|
372
|
+
queryAssignedElements.n({ type: Boolean })
|
|
373
373
|
], exports.LuksoSearch.prototype, "autofocus", 2);
|
|
374
374
|
__decorateClass([
|
|
375
|
-
queryAssignedElements.
|
|
375
|
+
queryAssignedElements.n({ type: Boolean })
|
|
376
376
|
], exports.LuksoSearch.prototype, "borderless", 2);
|
|
377
377
|
__decorateClass([
|
|
378
|
-
queryAssignedElements.
|
|
378
|
+
queryAssignedElements.n({ type: String })
|
|
379
379
|
], exports.LuksoSearch.prototype, "results", 2);
|
|
380
380
|
__decorateClass([
|
|
381
|
-
queryAssignedElements.
|
|
381
|
+
queryAssignedElements.n({ type: Number })
|
|
382
382
|
], exports.LuksoSearch.prototype, "debounce", 2);
|
|
383
383
|
__decorateClass([
|
|
384
|
-
queryAssignedElements.
|
|
384
|
+
queryAssignedElements.n({ type: Boolean, attribute: "is-searching" })
|
|
385
385
|
], exports.LuksoSearch.prototype, "isSearching", 2);
|
|
386
386
|
__decorateClass([
|
|
387
|
-
queryAssignedElements.
|
|
387
|
+
queryAssignedElements.n({ type: String, attribute: "no-results-text" })
|
|
388
388
|
], exports.LuksoSearch.prototype, "noResultsText", 2);
|
|
389
389
|
__decorateClass([
|
|
390
|
-
queryAssignedElements.
|
|
390
|
+
queryAssignedElements.n({ type: Boolean, attribute: "show-no-results" })
|
|
391
391
|
], exports.LuksoSearch.prototype, "showNoResults", 2);
|
|
392
392
|
__decorateClass([
|
|
393
|
-
queryAssignedElements.
|
|
393
|
+
queryAssignedElements.n({ type: Number })
|
|
394
394
|
], exports.LuksoSearch.prototype, "selected", 2);
|
|
395
395
|
__decorateClass([
|
|
396
396
|
state.t()
|
|
@@ -411,5 +411,5 @@ __decorateClass([
|
|
|
411
411
|
state.t()
|
|
412
412
|
], exports.LuksoSearch.prototype, "searchTerm", 2);
|
|
413
413
|
exports.LuksoSearch = __decorateClass([
|
|
414
|
-
queryAssignedElements.e
|
|
414
|
+
queryAssignedElements.e("lukso-search")
|
|
415
415
|
], exports.LuksoSearch);
|