urnovl-web-components 0.0.260 → 0.0.261
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/radio-DWksGWLi.js +170 -0
- package/dist/cjs/{tab-panel-BS_8ksq9.js → tab-BVwUIXQ4.js} +0 -49
- package/dist/cjs/tab-panel-KdoHPsyE.js +54 -0
- package/dist/cjs/ur-ad-banner.cjs.entry.js +3 -3
- package/dist/cjs/ur-author-page-profile.cjs.entry.js +3 -3
- package/dist/cjs/ur-autosave-drawer.cjs.entry.js +1 -1
- package/dist/cjs/{ur-avatar-COaGB2q6.js → ur-avatar-BV3tq4vp.js} +13 -6
- package/dist/cjs/ur-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ur-bottom-sheet.cjs.entry.js +1 -1
- package/dist/cjs/ur-button-arrow-left_2.cjs.entry.js +2 -2
- package/dist/cjs/ur-button-icon.cjs.entry.js +1 -1
- package/dist/cjs/ur-button.cjs.entry.js +3 -1
- package/dist/cjs/ur-chapter-item.cjs.entry.js +1 -1
- package/dist/cjs/ur-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/ur-circular-progress.cjs.entry.js +1 -1
- package/dist/cjs/ur-comment-form.cjs.entry.js +5 -2
- package/dist/cjs/ur-competition-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ur-competition-novl-card_2.cjs.entry.js +8 -8
- package/dist/cjs/ur-competition-overview.cjs.entry.js +3 -2
- package/dist/cjs/ur-competition.cjs.entry.js +5 -5
- package/dist/cjs/ur-dialog.cjs.entry.js +3 -3
- package/dist/cjs/ur-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/ur-editor.cjs.entry.js +2 -2
- package/dist/cjs/ur-form.cjs.entry.js +1 -1
- package/dist/cjs/ur-grid-col.cjs.entry.js +1 -1
- package/dist/cjs/ur-grid-row.cjs.entry.js +1 -1
- package/dist/cjs/ur-grid.cjs.entry.js +2 -2
- package/dist/cjs/ur-hero.cjs.entry.js +4 -4
- package/dist/cjs/ur-icon.cjs.entry.js +1 -1
- package/dist/cjs/ur-image-uploader.cjs.entry.js +1 -1
- package/dist/cjs/ur-library-shelf-creator.cjs.entry.js +1 -1
- package/dist/cjs/ur-library-shelf-selector.cjs.entry.js +1 -1
- package/dist/cjs/ur-linear-progress.cjs.entry.js +2 -2
- package/dist/cjs/ur-list-subheader.cjs.entry.js +1 -1
- package/dist/cjs/ur-list.cjs.entry.js +1 -1
- package/dist/cjs/ur-loader.cjs.entry.js +1 -1
- package/dist/cjs/ur-locale-filter-button.cjs.entry.js +2 -2
- package/dist/cjs/ur-locale-filter-panel.cjs.entry.js +2 -2
- package/dist/cjs/ur-logo.cjs.entry.js +1 -1
- package/dist/cjs/ur-main-desktop-top-app-bar.cjs.entry.js +2 -2
- package/dist/cjs/ur-main-menu.cjs.entry.js +1 -1
- package/dist/cjs/ur-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/ur-menu-profile.cjs.entry.js +1 -1
- package/dist/cjs/ur-navigation-bar.cjs.entry.js +1 -1
- package/dist/cjs/ur-navigation-drawer-global.cjs.entry.js +1 -1
- package/dist/cjs/ur-navigation-drawer.cjs.entry.js +1 -1
- package/dist/cjs/ur-notification-tabs.cjs.entry.js +3 -2
- package/dist/cjs/ur-novl-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ur-novl-overview-info.cjs.entry.js +5 -5
- package/dist/cjs/ur-novl-summary.cjs.entry.js +4 -4
- package/dist/cjs/ur-page-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ur-page-profile-tabs.cjs.entry.js +9 -2
- package/dist/cjs/ur-page-profile.cjs.entry.js +3 -3
- package/dist/cjs/ur-page-shared-list-tabs.cjs.entry.js +3 -2
- package/dist/cjs/ur-player.cjs.entry.js +3 -3
- package/dist/cjs/ur-post-card.cjs.entry.js +311 -0
- package/dist/cjs/ur-post-detail.cjs.entry.js +286 -0
- package/dist/cjs/ur-post-editor.cjs.entry.js +388 -0
- package/dist/cjs/ur-post-prompt.cjs.entry.js +55 -0
- package/dist/cjs/ur-profile-card.cjs.entry.js +2 -2
- package/dist/cjs/ur-profile.cjs.entry.js +3 -3
- package/dist/cjs/ur-radio-button.cjs.entry.js +57 -0
- package/dist/cjs/{ur-radio-button_2.cjs.entry.js → ur-radio-group.cjs.entry.js} +9 -199
- package/dist/cjs/ur-read-mobile-top-app-bar.cjs.entry.js +1 -1
- package/dist/cjs/ur-read-rail-mobile.cjs.entry.js +2 -2
- package/dist/cjs/ur-read-rail.cjs.entry.js +2 -2
- package/dist/cjs/ur-read-top-app-bar.cjs.entry.js +1 -1
- package/dist/cjs/ur-segment-button.cjs.entry.js +1 -1
- package/dist/cjs/ur-select.cjs.entry.js +2 -2
- package/dist/cjs/ur-snackbar.cjs.entry.js +2 -2
- package/dist/cjs/ur-stepper.cjs.entry.js +1 -1
- package/dist/cjs/ur-subscription-card.cjs.entry.js +1 -1
- package/dist/cjs/ur-subscription-tiers-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ur-switch.cjs.entry.js +1 -1
- package/dist/cjs/ur-tabs.cjs.entry.js +3 -2
- package/dist/cjs/ur-thumbs-rating.cjs.entry.js +3 -3
- package/dist/cjs/ur-time-ago.cjs.entry.js +1 -1
- package/dist/cjs/ur-top-app-bar.cjs.entry.js +2 -2
- package/dist/cjs/ur-user-carousel.cjs.entry.js +1 -1
- package/dist/cjs/ur-user-page-profile.cjs.entry.js +3 -3
- package/dist/cjs/ur-user-partnership-application.cjs.entry.js +1 -1
- package/dist/cjs/ur-user-profile-settings-form.cjs.entry.js +27 -2
- package/dist/cjs/ur-user-profile-tabs.cjs.entry.js +9 -2
- package/dist/cjs/ur-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/ur-work-overview.cjs.entry.js +6 -6
- package/dist/cjs/urnovl-web-components.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +6 -2
- package/dist/collection/components/ur-ad-banner/ur-ad-banner.js +3 -3
- package/dist/collection/components/ur-author-page-profile/ur-author-page-profile.js +2 -2
- package/dist/collection/components/ur-autosave-drawer/ur-autosave-drawer.js +1 -1
- package/dist/collection/components/ur-avatar/ur-avatar.js +14 -8
- package/dist/collection/components/ur-bottom-sheet/ur-bottom-sheet.js +1 -1
- package/dist/collection/components/ur-button/ur-button.js +22 -1
- package/dist/collection/components/ur-button-arrow-left/ur-button-arrow-left.js +1 -1
- package/dist/collection/components/ur-button-arrow-right/ur-button-arrow-right.js +1 -1
- package/dist/collection/components/ur-button-icon/ur-button-icon.js +1 -1
- package/dist/collection/components/ur-chapter-item/ur-chapter-item.js +1 -1
- package/dist/collection/components/ur-checkbox-group/ur-checkbox-group.js +1 -1
- package/dist/collection/components/ur-circular-progress/ur-circular-progress.js +1 -1
- package/dist/collection/components/ur-comment-form/ur-comment-form.css +14 -3
- package/dist/collection/components/ur-comment-form/ur-comment-form.js +64 -1
- package/dist/collection/components/ur-competition/ur-competition.js +5 -5
- package/dist/collection/components/ur-competition-carousel/ur-competition-carousel.js +1 -1
- package/dist/collection/components/ur-competition-novl-card/ur-competition-novl-card.js +6 -6
- package/dist/collection/components/ur-competition-overview/ur-competition-overview.js +1 -1
- package/dist/collection/components/ur-dialog/ur-dialog.js +3 -3
- package/dist/collection/components/ur-dropdown/ur-dropdown.js +1 -1
- package/dist/collection/components/ur-editor/ur-editor.js +2 -2
- package/dist/collection/components/ur-form/ur-form.js +1 -1
- package/dist/collection/components/ur-grid/ur-grid-col.js +1 -1
- package/dist/collection/components/ur-grid/ur-grid-row.js +1 -1
- package/dist/collection/components/ur-grid/ur-grid.js +2 -2
- package/dist/collection/components/ur-hero/ur-hero.js +4 -4
- package/dist/collection/components/ur-icon/ur-icon.js +1 -1
- package/dist/collection/components/ur-image-uploader/ur-image-uploader.js +1 -1
- package/dist/collection/components/ur-library-shelf-creator/ur-library-shelf-creator.js +1 -1
- package/dist/collection/components/ur-library-shelf-selector/ur-library-shelf-selector.js +1 -1
- package/dist/collection/components/ur-linear-progress/ur-linear-progress.js +2 -2
- package/dist/collection/components/ur-list/ur-list.js +1 -1
- package/dist/collection/components/ur-list-subheader/ur-list-subheader.js +1 -1
- package/dist/collection/components/ur-loader/ur-loader.js +1 -1
- package/dist/collection/components/ur-locale-filter-button/ur-locale-filter-button.js +2 -2
- package/dist/collection/components/ur-locale-filter-panel/ur-locale-filter-panel.js +2 -2
- package/dist/collection/components/ur-logo/ur-logo.js +1 -1
- package/dist/collection/components/ur-main-desktop-top-app-bar/ur-main-desktop-top-app-bar.js +2 -2
- package/dist/collection/components/ur-main-menu/ur-main-menu.js +1 -1
- package/dist/collection/components/ur-menu-item/ur-menu-item.js +2 -2
- package/dist/collection/components/ur-menu-profile/ur-menu-profile.js +1 -1
- package/dist/collection/components/ur-navigation-bar/ur-navigation-bar.js +1 -1
- package/dist/collection/components/ur-navigation-drawer/ur-navigation-drawer.js +1 -1
- package/dist/collection/components/ur-navigation-drawer-global/ur-navigation-drawer-global.js +1 -1
- package/dist/collection/components/ur-notification-tabs/ur-notification-tabs.js +1 -1
- package/dist/collection/components/ur-novl-carousel/ur-novl-carousel.js +1 -1
- package/dist/collection/components/ur-novl-overview-info/ur-novl-overview-info.js +4 -4
- package/dist/collection/components/ur-novl-summary/ur-novl-summary.js +3 -3
- package/dist/collection/components/ur-page-carousel/ur-page-carousel.js +1 -1
- package/dist/collection/components/ur-page-profile/ur-page-profile.js +2 -2
- package/dist/collection/components/ur-page-profile-tabs/ur-page-profile-tabs.js +27 -1
- package/dist/collection/components/ur-page-shared-list-tabs/ur-page-shared-list-tabs.js +1 -1
- package/dist/collection/components/ur-player/ur-player.js +3 -3
- package/dist/collection/components/ur-post-card/ur-post-card.css +651 -0
- package/dist/collection/components/ur-post-card/ur-post-card.js +996 -0
- package/dist/collection/components/ur-post-card/ur-post-card.types.js +1 -0
- package/dist/collection/components/ur-post-detail/ur-post-detail.css +439 -0
- package/dist/collection/components/ur-post-detail/ur-post-detail.js +865 -0
- package/dist/collection/components/ur-post-detail/ur-post-detail.types.js +1 -0
- package/dist/collection/components/ur-post-editor/ur-post-editor.css +425 -0
- package/dist/collection/components/ur-post-editor/ur-post-editor.js +1371 -0
- package/dist/collection/components/ur-post-prompt/ur-post-prompt.css +53 -0
- package/dist/collection/components/ur-post-prompt/ur-post-prompt.js +283 -0
- package/dist/collection/components/ur-profile/ur-profile.js +3 -3
- package/dist/collection/components/ur-profile-card/ur-profile-card.js +1 -1
- package/dist/collection/components/ur-radio-button/ur-radio-button.js +12 -8
- package/dist/collection/components/ur-radio-group/ur-radio-group.js +1 -1
- package/dist/collection/components/ur-read-mobile-top-app-bar/ur-read-mobile-top-app-bar.js +1 -1
- package/dist/collection/components/ur-read-rail/ur-read-rail.js +2 -2
- package/dist/collection/components/ur-read-rail-mobile/ur-read-rail-mobile.js +2 -2
- package/dist/collection/components/ur-read-top-app-bar/ur-read-top-app-bar.js +1 -1
- package/dist/collection/components/ur-segment-button/ur-segment-button.js +1 -1
- package/dist/collection/components/ur-select/ur-select.css +5 -2
- package/dist/collection/components/ur-select/ur-select.js +1 -1
- package/dist/collection/components/ur-snackbar/ur-snackbar.js +2 -2
- package/dist/collection/components/ur-stats/ur-stats.js +2 -2
- package/dist/collection/components/ur-stepper/ur-stepper.js +1 -1
- package/dist/collection/components/ur-subscription-card/ur-subscription-card.js +1 -1
- package/dist/collection/components/ur-subscription-tiers-carousel/ur-subscription-tiers-carousel.js +1 -1
- package/dist/collection/components/ur-switch/ur-switch.js +1 -1
- package/dist/collection/components/ur-tabs/ur-tabs.js +1 -1
- package/dist/collection/components/ur-thumbs-rating/ur-thumbs-rating.js +3 -3
- package/dist/collection/components/ur-time-ago/ur-time-ago.js +1 -1
- package/dist/collection/components/ur-top-app-bar/ur-top-app-bar.js +2 -2
- package/dist/collection/components/ur-user-carousel/ur-user-carousel.js +1 -1
- package/dist/collection/components/ur-user-page-profile/ur-user-page-profile.js +2 -2
- package/dist/collection/components/ur-user-partnership-application/ur-user-partnership-application.js +1 -1
- package/dist/collection/components/ur-user-profile/ur-user-profile.js +1 -1
- package/dist/collection/components/ur-user-profile-settings-form/ur-user-profile-settings-form.css +54 -0
- package/dist/collection/components/ur-user-profile-settings-form/ur-user-profile-settings-form.js +263 -2
- package/dist/collection/components/ur-user-profile-tabs/ur-user-profile-tabs.js +27 -1
- package/dist/collection/components/ur-work-overview/ur-work-overview.js +5 -5
- package/dist/collection/stories/CommentForm.stories.js +22 -0
- package/dist/collection/stories/PostCard.stories.js +770 -0
- package/dist/collection/stories/PostDetail.stories.js +406 -0
- package/dist/collection/stories/PostEditor.stories.js +416 -0
- package/dist/collection/stories/PostPrompt.stories.js +185 -0
- package/dist/collection/stories/UserProfileSettingsForm.stories.js +70 -0
- package/dist/components/{p-BKchntfo.js → p-03wkTPxQ.js} +1 -1
- package/dist/components/{p-Bfz4JsuD.js → p-2DKsUy-2.js} +0 -49
- package/dist/components/{p-Bx6fE2l3.js → p-BY4DFbqH.js} +4 -1
- package/dist/components/{p-D614DE4A.js → p-BprsjaxF.js} +1 -1
- package/dist/components/{p-DSQlUWyM.js → p-BxphUdOx.js} +1 -1
- package/dist/components/{p-m3l6rpTl.js → p-C8X80qyp.js} +1 -1
- package/dist/components/{p-C3v4NYCZ.js → p-C92dQzDo.js} +1 -1
- package/dist/components/p-CC8esrW-.js +52 -0
- package/dist/components/{p-DV782yr8.js → p-CFJcUF9w.js} +1 -1
- package/dist/components/{p-zT_m5cqn.js → p-CVMqpnJb.js} +1 -1
- package/dist/components/{p-DIsqN2af.js → p-CcsOJD5k.js} +3 -3
- package/dist/components/{p-viReDfYk.js → p-Ce3HFAVh.js} +1 -1
- package/dist/components/{p-DUoVib83.js → p-CfldtLQf.js} +13 -6
- package/dist/components/{p-KEnip_eJ.js → p-CiihVtnt.js} +2 -2
- package/dist/components/{p-hq0QnQ__.js → p-CvIyrJOF.js} +1 -1
- package/dist/components/{p-BZPQ9A0k.js → p-DE-Ebb0W.js} +1 -1
- package/dist/components/{p-CMaS5_FI.js → p-DIrqGiUJ.js} +2 -2
- package/dist/components/{p-CYZhNTeP.js → p-DNOMxgVq.js} +1 -1
- package/dist/components/{p-DvK12rWN.js → p-DQohMME6.js} +1 -1
- package/dist/components/{p-ByNX7rB1.js → p-DR_e7_h1.js} +6 -6
- package/dist/components/{p-DWw8j4-8.js → p-DmcTV8ow.js} +1 -1
- package/dist/components/p-E7oF2Ho9.js +533 -0
- package/dist/components/{p-Bpxw55nt.js → p-GadDdSTq.js} +5 -5
- package/dist/components/{p-C3xJtl8A.js → p-K79NbcgI.js} +6 -6
- package/dist/components/{p-DodTpF-h.js → p-YHtvjamV.js} +13 -9
- package/dist/components/{p-DQR9IkCh.js → p-Yub-kvNT.js} +2 -2
- package/dist/components/{p-CAPHCTJl.js → p-cEpNt5Cx.js} +1 -1
- package/dist/components/{p-DnPjaZVg.js → p-qe3zXShw.js} +1 -1
- package/dist/components/ur-ad-banner.js +3 -3
- package/dist/components/ur-author-page-profile.js +4 -4
- package/dist/components/ur-autosave-drawer.js +3 -3
- package/dist/components/ur-avatar.js +1 -1
- package/dist/components/ur-bottom-sheet.js +1 -1
- package/dist/components/ur-bravo.js +1 -1
- package/dist/components/ur-button-arrow-left.js +1 -1
- package/dist/components/ur-button-arrow-right.js +1 -1
- package/dist/components/ur-button-icon.js +1 -1
- package/dist/components/ur-button.js +1 -1
- package/dist/components/ur-chapter-item.js +4 -4
- package/dist/components/ur-checkbox-group.js +1 -1
- package/dist/components/ur-circular-progress.js +1 -1
- package/dist/components/ur-comment-form.js +11 -5
- package/dist/components/ur-comment.js +2 -2
- package/dist/components/ur-competition-carousel.js +5 -5
- package/dist/components/ur-competition-novl-card.js +1 -1
- package/dist/components/ur-competition-overview.js +10 -9
- package/dist/components/ur-competition.js +1 -1
- package/dist/components/ur-data-list.js +2 -2
- package/dist/components/ur-dialog.js +3 -3
- package/dist/components/ur-dropdown.js +1 -1
- package/dist/components/ur-editor.js +3 -3
- package/dist/components/ur-feedback.js +3 -3
- package/dist/components/ur-form.js +1 -1
- package/dist/components/ur-grid-col.js +1 -1
- package/dist/components/ur-grid-row.js +1 -1
- package/dist/components/ur-grid.js +3 -3
- package/dist/components/ur-hero.js +5 -5
- package/dist/components/ur-icon.js +1 -1
- package/dist/components/ur-image-uploader.js +1 -1
- package/dist/components/ur-library-shelf-creator.js +3 -3
- package/dist/components/ur-library-shelf-selector.js +4 -4
- package/dist/components/ur-linear-progress.js +1 -1
- package/dist/components/ur-list-subheader.js +1 -1
- package/dist/components/ur-list.js +1 -1
- package/dist/components/ur-loader.js +1 -1
- package/dist/components/ur-locale-filter-button.js +2 -2
- package/dist/components/ur-locale-filter-panel.js +3 -3
- package/dist/components/ur-logo.js +1 -1
- package/dist/components/ur-main-desktop-top-app-bar.js +5 -5
- package/dist/components/ur-main-menu.js +7 -7
- package/dist/components/ur-menu-item.js +2 -2
- package/dist/components/ur-menu-profile.js +1 -1
- package/dist/components/ur-navigation-bar.js +1 -1
- package/dist/components/ur-navigation-drawer-global.js +1 -1
- package/dist/components/ur-navigation-drawer.js +1 -1
- package/dist/components/ur-notification-tabs.js +3 -2
- package/dist/components/ur-notification.js +4 -4
- package/dist/components/ur-novl-carousel.js +5 -5
- package/dist/components/ur-novl-overview-info.js +11 -11
- package/dist/components/ur-novl-summary.js +6 -6
- package/dist/components/ur-novl.js +1 -1
- package/dist/components/ur-page-carousel.js +5 -5
- package/dist/components/ur-page-list.js +1 -1
- package/dist/components/ur-page-partnership-application.js +3 -3
- package/dist/components/ur-page-profile-tabs.js +10 -2
- package/dist/components/ur-page-profile.js +6 -6
- package/dist/components/ur-page-shared-list-tabs.js +3 -2
- package/dist/components/ur-page.js +1 -1
- package/dist/components/ur-player.js +5 -5
- package/dist/components/ur-post-card.d.ts +11 -0
- package/dist/components/ur-post-card.js +371 -0
- package/dist/components/ur-post-detail.d.ts +11 -0
- package/dist/components/ur-post-detail.js +343 -0
- package/dist/components/ur-post-editor.d.ts +11 -0
- package/dist/components/ur-post-editor.js +458 -0
- package/dist/components/ur-post-prompt.d.ts +11 -0
- package/dist/components/ur-post-prompt.js +103 -0
- package/dist/components/ur-pricing-card.js +1 -1
- package/dist/components/ur-profile-card.js +1 -1
- package/dist/components/ur-profile-completion-card.js +1 -1
- package/dist/components/ur-profile-completion-fab.js +6 -6
- package/dist/components/ur-profile.js +3 -3
- package/dist/components/ur-radio-button.js +1 -1
- package/dist/components/ur-radio-group.js +1 -1
- package/dist/components/ur-read-mobile-top-app-bar.js +2 -2
- package/dist/components/ur-read-rail-mobile.js +4 -4
- package/dist/components/ur-read-rail.js +4 -4
- package/dist/components/ur-read-top-app-bar.js +2 -2
- package/dist/components/ur-reader.js +2 -2
- package/dist/components/ur-segment-button.js +1 -1
- package/dist/components/ur-select.js +1 -531
- package/dist/components/ur-shelf-card.js +1 -1
- package/dist/components/ur-snackbar.js +2 -2
- package/dist/components/ur-stats.js +1 -1
- package/dist/components/ur-stepper.js +2 -2
- package/dist/components/ur-subscription-card.js +2 -2
- package/dist/components/ur-subscription-tier-editor.js +1 -1
- package/dist/components/ur-subscription-tiers-carousel.js +5 -5
- package/dist/components/ur-switch.js +1 -1
- package/dist/components/ur-tabs.js +3 -2
- package/dist/components/ur-thumbs-rating.js +4 -4
- package/dist/components/ur-time-ago.js +1 -1
- package/dist/components/ur-top-app-bar.js +3 -3
- package/dist/components/ur-user-carousel.js +5 -5
- package/dist/components/ur-user-page-profile.js +7 -7
- package/dist/components/ur-user-partnership-application.js +4 -4
- package/dist/components/ur-user-profile-settings-form.js +41 -6
- package/dist/components/ur-user-profile-tabs.js +10 -2
- package/dist/components/ur-user-profile.js +1 -1
- package/dist/components/ur-user.js +1 -1
- package/dist/components/ur-work-overview.js +9 -9
- package/dist/components/ur-work.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/radio-B2MeJZg9.js +168 -0
- package/dist/esm/{tab-panel-YMLschUK.js → tab-JcwwlhqJ.js} +0 -49
- package/dist/esm/tab-panel-mttybgVa.js +52 -0
- package/dist/esm/ur-ad-banner.entry.js +3 -3
- package/dist/esm/ur-author-page-profile.entry.js +3 -3
- package/dist/esm/ur-autosave-drawer.entry.js +1 -1
- package/dist/esm/{ur-avatar-n6L9PEnR.js → ur-avatar-DXF3lVCQ.js} +13 -6
- package/dist/esm/ur-avatar_3.entry.js +1 -1
- package/dist/esm/ur-bottom-sheet.entry.js +1 -1
- package/dist/esm/ur-button-arrow-left_2.entry.js +2 -2
- package/dist/esm/ur-button-icon.entry.js +1 -1
- package/dist/esm/ur-button.entry.js +3 -1
- package/dist/esm/ur-chapter-item.entry.js +1 -1
- package/dist/esm/ur-checkbox-group.entry.js +1 -1
- package/dist/esm/ur-circular-progress.entry.js +1 -1
- package/dist/esm/ur-comment-form.entry.js +5 -2
- package/dist/esm/ur-competition-carousel.entry.js +1 -1
- package/dist/esm/ur-competition-novl-card_2.entry.js +8 -8
- package/dist/esm/ur-competition-overview.entry.js +3 -2
- package/dist/esm/ur-competition.entry.js +5 -5
- package/dist/esm/ur-dialog.entry.js +3 -3
- package/dist/esm/ur-dropdown_2.entry.js +1 -1
- package/dist/esm/ur-editor.entry.js +2 -2
- package/dist/esm/ur-form.entry.js +1 -1
- package/dist/esm/ur-grid-col.entry.js +1 -1
- package/dist/esm/ur-grid-row.entry.js +1 -1
- package/dist/esm/ur-grid.entry.js +2 -2
- package/dist/esm/ur-hero.entry.js +4 -4
- package/dist/esm/ur-icon.entry.js +1 -1
- package/dist/esm/ur-image-uploader.entry.js +1 -1
- package/dist/esm/ur-library-shelf-creator.entry.js +1 -1
- package/dist/esm/ur-library-shelf-selector.entry.js +1 -1
- package/dist/esm/ur-linear-progress.entry.js +2 -2
- package/dist/esm/ur-list-subheader.entry.js +1 -1
- package/dist/esm/ur-list.entry.js +1 -1
- package/dist/esm/ur-loader.entry.js +1 -1
- package/dist/esm/ur-locale-filter-button.entry.js +2 -2
- package/dist/esm/ur-locale-filter-panel.entry.js +2 -2
- package/dist/esm/ur-logo.entry.js +1 -1
- package/dist/esm/ur-main-desktop-top-app-bar.entry.js +2 -2
- package/dist/esm/ur-main-menu.entry.js +1 -1
- package/dist/esm/ur-menu-item.entry.js +2 -2
- package/dist/esm/ur-menu-profile.entry.js +1 -1
- package/dist/esm/ur-navigation-bar.entry.js +1 -1
- package/dist/esm/ur-navigation-drawer-global.entry.js +1 -1
- package/dist/esm/ur-navigation-drawer.entry.js +1 -1
- package/dist/esm/ur-notification-tabs.entry.js +3 -2
- package/dist/esm/ur-novl-carousel.entry.js +1 -1
- package/dist/esm/ur-novl-overview-info.entry.js +5 -5
- package/dist/esm/ur-novl-summary.entry.js +4 -4
- package/dist/esm/ur-page-carousel.entry.js +1 -1
- package/dist/esm/ur-page-profile-tabs.entry.js +9 -2
- package/dist/esm/ur-page-profile.entry.js +3 -3
- package/dist/esm/ur-page-shared-list-tabs.entry.js +3 -2
- package/dist/esm/ur-player.entry.js +3 -3
- package/dist/esm/ur-post-card.entry.js +309 -0
- package/dist/esm/ur-post-detail.entry.js +284 -0
- package/dist/esm/ur-post-editor.entry.js +386 -0
- package/dist/esm/ur-post-prompt.entry.js +53 -0
- package/dist/esm/ur-profile-card.entry.js +2 -2
- package/dist/esm/ur-profile.entry.js +3 -3
- package/dist/esm/ur-radio-button.entry.js +55 -0
- package/dist/esm/{ur-radio-button_2.entry.js → ur-radio-group.entry.js} +19 -208
- package/dist/esm/ur-read-mobile-top-app-bar.entry.js +1 -1
- package/dist/esm/ur-read-rail-mobile.entry.js +2 -2
- package/dist/esm/ur-read-rail.entry.js +2 -2
- package/dist/esm/ur-read-top-app-bar.entry.js +1 -1
- package/dist/esm/ur-segment-button.entry.js +1 -1
- package/dist/esm/ur-select.entry.js +2 -2
- package/dist/esm/ur-snackbar.entry.js +2 -2
- package/dist/esm/ur-stepper.entry.js +1 -1
- package/dist/esm/ur-subscription-card.entry.js +1 -1
- package/dist/esm/ur-subscription-tiers-carousel.entry.js +1 -1
- package/dist/esm/ur-switch.entry.js +1 -1
- package/dist/esm/ur-tabs.entry.js +3 -2
- package/dist/esm/ur-thumbs-rating.entry.js +3 -3
- package/dist/esm/ur-time-ago.entry.js +1 -1
- package/dist/esm/ur-top-app-bar.entry.js +2 -2
- package/dist/esm/ur-user-carousel.entry.js +1 -1
- package/dist/esm/ur-user-page-profile.entry.js +3 -3
- package/dist/esm/ur-user-partnership-application.entry.js +1 -1
- package/dist/esm/ur-user-profile-settings-form.entry.js +28 -3
- package/dist/esm/ur-user-profile-tabs.entry.js +9 -2
- package/dist/esm/ur-user-profile.entry.js +1 -1
- package/dist/esm/ur-work-overview.entry.js +6 -6
- package/dist/esm/urnovl-web-components.js +1 -1
- package/dist/types/components/ur-avatar/ur-avatar.d.ts +1 -0
- package/dist/types/components/ur-button/ur-button.d.ts +1 -0
- package/dist/types/components/ur-comment-form/ur-comment-form.d.ts +3 -0
- package/dist/types/components/ur-page-profile-tabs/ur-page-profile-tabs.d.ts +1 -0
- package/dist/types/components/ur-post-card/ur-post-card.d.ts +76 -0
- package/dist/types/components/ur-post-card/ur-post-card.types.d.ts +46 -0
- package/dist/types/components/ur-post-detail/ur-post-detail.d.ts +72 -0
- package/dist/types/components/ur-post-detail/ur-post-detail.types.d.ts +40 -0
- package/dist/types/components/ur-post-editor/ur-post-editor.d.ts +158 -0
- package/dist/types/components/ur-post-prompt/ur-post-prompt.d.ts +22 -0
- package/dist/types/components/ur-radio-button/ur-radio-button.d.ts +2 -1
- package/dist/types/components/ur-user-profile-settings-form/ur-user-profile-settings-form.d.ts +20 -0
- package/dist/types/components/ur-user-profile-tabs/ur-user-profile-tabs.d.ts +1 -0
- package/dist/types/components.d.ts +4832 -3682
- package/dist/types/stories/CommentForm.stories.d.ts +30 -0
- package/dist/types/stories/PostCard.stories.d.ts +578 -0
- package/dist/types/stories/PostDetail.stories.d.ts +350 -0
- package/dist/types/stories/PostEditor.stories.d.ts +417 -0
- package/dist/types/stories/PostPrompt.stories.d.ts +12 -0
- package/dist/types/stories/UserProfileSettingsForm.stories.d.ts +33 -0
- package/dist/urnovl-web-components/p-01757565.entry.js +1 -1
- package/dist/urnovl-web-components/{p-65bec9fc.entry.js → p-06bbc9fe.entry.js} +2 -2
- package/{www/build/p-d56433f6.entry.js → dist/urnovl-web-components/p-0fc280ea.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-ccf5473e.entry.js → p-11473976.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-2e35d885.entry.js → p-1491f43a.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-04e00f30.entry.js → p-16250027.entry.js} +1 -1
- package/{www/build/p-2462786c.entry.js → dist/urnovl-web-components/p-178828b9.entry.js} +1 -1
- package/{www/build/p-981382ab.entry.js → dist/urnovl-web-components/p-1afbea38.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-4aa0540c.entry.js → p-1f152f8a.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-f4681bcd.entry.js → p-1f60a6be.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-a712a3df.entry.js → p-240289e9.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-624543fe.entry.js → p-2444c265.entry.js} +1 -1
- package/{www/build/p-baef18c0.entry.js → dist/urnovl-web-components/p-2472848c.entry.js} +1 -1
- package/{www/build/p-56a033f3.entry.js → dist/urnovl-web-components/p-257815b1.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-be46aea1.entry.js → p-283a26c0.entry.js} +1 -1
- package/dist/urnovl-web-components/p-30980b12.entry.js +1 -0
- package/{www/build/p-d8a58171.entry.js → dist/urnovl-web-components/p-30ef8fce.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-abc5b014.entry.js → p-343ad683.entry.js} +1 -1
- package/{www/build/p-76fd07ad.entry.js → dist/urnovl-web-components/p-343d4de6.entry.js} +1 -1
- package/{www/build/p-4bd2dfab.entry.js → dist/urnovl-web-components/p-346853b2.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-c39f0b47.entry.js → p-35d81850.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-1c69e7f0.entry.js → p-37c2f592.entry.js} +1 -1
- package/{www/build/p-d8e1e17f.entry.js → dist/urnovl-web-components/p-38c450cb.entry.js} +1 -1
- package/dist/urnovl-web-components/p-3a956b23.entry.js +1 -0
- package/dist/urnovl-web-components/{p-da9fd305.entry.js → p-3d11160e.entry.js} +1 -1
- package/dist/urnovl-web-components/p-403f60d4.entry.js +1 -0
- package/{www/build/p-b086c8e2.entry.js → dist/urnovl-web-components/p-4118c49f.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-88bac6fe.entry.js → p-4420499c.entry.js} +1 -1
- package/dist/urnovl-web-components/p-44c8ac2e.entry.js +1 -0
- package/dist/urnovl-web-components/{p-f0b2862a.entry.js → p-45126fa8.entry.js} +1 -1
- package/{www/build/p-f82dd515.entry.js → dist/urnovl-web-components/p-4bd4960f.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-4d1821af.entry.js → p-5c8253d7.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-5c9578ac.entry.js → p-5f0ca3b4.entry.js} +1 -1
- package/dist/urnovl-web-components/p-60481eb4.entry.js +1 -0
- package/{www/build/p-7e1ac458.entry.js → dist/urnovl-web-components/p-6ff378f1.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-6ba85c1c.entry.js → p-71de6e85.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-f1b1525f.entry.js → p-72d505c7.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-ee1599b6.entry.js → p-72f4fb72.entry.js} +1 -1
- package/{www/build/p-c80dfc35.entry.js → dist/urnovl-web-components/p-74534238.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-8076962b.entry.js → p-75483926.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-3586bdaf.entry.js → p-7f8a77e0.entry.js} +1 -1
- package/dist/urnovl-web-components/p-852ff3f7.entry.js +1 -0
- package/{www/build/p-5566b17c.entry.js → dist/urnovl-web-components/p-88e526fb.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-68391a31.entry.js → p-89ac2a2c.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-593c5f5d.entry.js → p-8c7af8f6.entry.js} +1 -1
- package/dist/urnovl-web-components/p-8e3404f8.entry.js +1 -0
- package/dist/urnovl-web-components/p-910ae64b.entry.js +1 -0
- package/dist/urnovl-web-components/{p-0cf7981e.entry.js → p-96018122.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-CWeg8sEj.js → p-BnHMCPA5.js} +1 -1
- package/dist/urnovl-web-components/p-FXZebMHX.js +1 -0
- package/dist/urnovl-web-components/p-YvOYo-vb.js +1 -0
- package/{www/build/p-6d29e790.entry.js → dist/urnovl-web-components/p-a02a44c5.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-1e41d132.entry.js → p-a07f78d9.entry.js} +1 -1
- package/dist/urnovl-web-components/p-aa9b5fb1.entry.js +1 -0
- package/dist/urnovl-web-components/p-ac784ceb.entry.js +1 -1
- package/dist/urnovl-web-components/{p-bf80387d.entry.js → p-b1da8f4f.entry.js} +1 -1
- package/dist/urnovl-web-components/p-b629cb93.entry.js +1 -0
- package/dist/urnovl-web-components/{p-67316cbc.entry.js → p-b6778ee0.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-700b9b7e.entry.js → p-bb369731.entry.js} +1 -1
- package/dist/urnovl-web-components/p-bbf6cece.entry.js +1 -0
- package/dist/urnovl-web-components/{p-bb83fdf6.entry.js → p-bbf6f750.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-8f055e80.entry.js → p-c057f347.entry.js} +1 -1
- package/{www/build/p-bb145920.entry.js → dist/urnovl-web-components/p-c33254fb.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-28a77b70.entry.js → p-c7666b66.entry.js} +1 -1
- package/{www/build/p-c21abd37.entry.js → dist/urnovl-web-components/p-c7983e8a.entry.js} +1 -1
- package/{www/build/p-82997757.entry.js → dist/urnovl-web-components/p-c873abca.entry.js} +1 -1
- package/{www/build/p-86f826f4.entry.js → dist/urnovl-web-components/p-c8818032.entry.js} +1 -1
- package/{www/build/p-c14f3e7b.entry.js → dist/urnovl-web-components/p-c8f68cfe.entry.js} +1 -1
- package/dist/urnovl-web-components/p-caaac073.entry.js +1 -0
- package/dist/urnovl-web-components/p-cb516edc.entry.js +1 -0
- package/dist/urnovl-web-components/p-cb79d059.entry.js +1 -1
- package/dist/urnovl-web-components/{p-9e19f4e8.entry.js → p-cd1dcff4.entry.js} +1 -1
- package/dist/urnovl-web-components/p-ce268bc2.entry.js +1 -0
- package/dist/urnovl-web-components/p-cf90d565.entry.js +1 -0
- package/{www/build/p-f044459d.entry.js → dist/urnovl-web-components/p-d210bed2.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-b50e8cad.entry.js → p-d348963a.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-e659d21c.entry.js → p-d4da4e68.entry.js} +1 -1
- package/dist/urnovl-web-components/p-d6e78266.entry.js +1 -0
- package/{www/build/p-693b5b1e.entry.js → dist/urnovl-web-components/p-db9079e2.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-7f399549.entry.js → p-dfa6c13e.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-cfedfdac.entry.js → p-e2518029.entry.js} +1 -1
- package/{www/build/p-7d403b3e.entry.js → dist/urnovl-web-components/p-e3982059.entry.js} +1 -1
- package/{www/build/p-d02abe61.entry.js → dist/urnovl-web-components/p-e3b98dfd.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-0588ba08.entry.js → p-e659c8bb.entry.js} +1 -1
- package/dist/urnovl-web-components/p-ec006f46.entry.js +1 -1
- package/dist/urnovl-web-components/{p-dbde8c6e.entry.js → p-ed59b299.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-d11cd455.entry.js → p-f16c01bf.entry.js} +1 -1
- package/dist/urnovl-web-components/{p-73fca060.entry.js → p-fb6cbf1d.entry.js} +1 -1
- package/dist/urnovl-web-components/p-pLhWehn7.js +1 -0
- package/dist/urnovl-web-components/urnovl-web-components.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/p-01757565.entry.js +1 -1
- package/www/build/p-018dfa52.js +1 -0
- package/www/build/{p-65bec9fc.entry.js → p-06bbc9fe.entry.js} +2 -2
- package/{dist/urnovl-web-components/p-d56433f6.entry.js → www/build/p-0fc280ea.entry.js} +1 -1
- package/www/build/{p-ccf5473e.entry.js → p-11473976.entry.js} +1 -1
- package/www/build/{p-2e35d885.entry.js → p-1491f43a.entry.js} +1 -1
- package/www/build/{p-04e00f30.entry.js → p-16250027.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-2462786c.entry.js → www/build/p-178828b9.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-981382ab.entry.js → www/build/p-1afbea38.entry.js} +1 -1
- package/www/build/{p-4aa0540c.entry.js → p-1f152f8a.entry.js} +1 -1
- package/www/build/{p-f4681bcd.entry.js → p-1f60a6be.entry.js} +1 -1
- package/www/build/{p-a712a3df.entry.js → p-240289e9.entry.js} +1 -1
- package/www/build/{p-624543fe.entry.js → p-2444c265.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-baef18c0.entry.js → www/build/p-2472848c.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-56a033f3.entry.js → www/build/p-257815b1.entry.js} +1 -1
- package/www/build/{p-be46aea1.entry.js → p-283a26c0.entry.js} +1 -1
- package/www/build/p-30980b12.entry.js +1 -0
- package/{dist/urnovl-web-components/p-d8a58171.entry.js → www/build/p-30ef8fce.entry.js} +1 -1
- package/www/build/{p-abc5b014.entry.js → p-343ad683.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-76fd07ad.entry.js → www/build/p-343d4de6.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-4bd2dfab.entry.js → www/build/p-346853b2.entry.js} +1 -1
- package/www/build/{p-c39f0b47.entry.js → p-35d81850.entry.js} +1 -1
- package/www/build/{p-1c69e7f0.entry.js → p-37c2f592.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-d8e1e17f.entry.js → www/build/p-38c450cb.entry.js} +1 -1
- package/www/build/p-3a956b23.entry.js +1 -0
- package/www/build/{p-da9fd305.entry.js → p-3d11160e.entry.js} +1 -1
- package/www/build/p-403f60d4.entry.js +1 -0
- package/{dist/urnovl-web-components/p-b086c8e2.entry.js → www/build/p-4118c49f.entry.js} +1 -1
- package/www/build/{p-88bac6fe.entry.js → p-4420499c.entry.js} +1 -1
- package/www/build/p-44c8ac2e.entry.js +1 -0
- package/www/build/{p-f0b2862a.entry.js → p-45126fa8.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-f82dd515.entry.js → www/build/p-4bd4960f.entry.js} +1 -1
- package/www/build/{p-4d1821af.entry.js → p-5c8253d7.entry.js} +1 -1
- package/www/build/{p-5c9578ac.entry.js → p-5f0ca3b4.entry.js} +1 -1
- package/www/build/p-60481eb4.entry.js +1 -0
- package/{dist/urnovl-web-components/p-7e1ac458.entry.js → www/build/p-6ff378f1.entry.js} +1 -1
- package/www/build/{p-6ba85c1c.entry.js → p-71de6e85.entry.js} +1 -1
- package/www/build/{p-f1b1525f.entry.js → p-72d505c7.entry.js} +1 -1
- package/www/build/{p-ee1599b6.entry.js → p-72f4fb72.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-c80dfc35.entry.js → www/build/p-74534238.entry.js} +1 -1
- package/www/build/{p-8076962b.entry.js → p-75483926.entry.js} +1 -1
- package/www/build/{p-3586bdaf.entry.js → p-7f8a77e0.entry.js} +1 -1
- package/www/build/p-852ff3f7.entry.js +1 -0
- package/{dist/urnovl-web-components/p-5566b17c.entry.js → www/build/p-88e526fb.entry.js} +1 -1
- package/www/build/{p-68391a31.entry.js → p-89ac2a2c.entry.js} +1 -1
- package/www/build/{p-593c5f5d.entry.js → p-8c7af8f6.entry.js} +1 -1
- package/www/build/p-8e3404f8.entry.js +1 -0
- package/www/build/p-910ae64b.entry.js +1 -0
- package/www/build/{p-0cf7981e.entry.js → p-96018122.entry.js} +1 -1
- package/www/build/{p-CWeg8sEj.js → p-BnHMCPA5.js} +1 -1
- package/www/build/p-FXZebMHX.js +1 -0
- package/www/build/p-YvOYo-vb.js +1 -0
- package/{dist/urnovl-web-components/p-6d29e790.entry.js → www/build/p-a02a44c5.entry.js} +1 -1
- package/www/build/{p-1e41d132.entry.js → p-a07f78d9.entry.js} +1 -1
- package/www/build/p-aa9b5fb1.entry.js +1 -0
- package/www/build/p-ac784ceb.entry.js +1 -1
- package/www/build/{p-bf80387d.entry.js → p-b1da8f4f.entry.js} +1 -1
- package/www/build/p-b629cb93.entry.js +1 -0
- package/www/build/{p-67316cbc.entry.js → p-b6778ee0.entry.js} +1 -1
- package/www/build/{p-700b9b7e.entry.js → p-bb369731.entry.js} +1 -1
- package/www/build/p-bbf6cece.entry.js +1 -0
- package/www/build/{p-bb83fdf6.entry.js → p-bbf6f750.entry.js} +1 -1
- package/www/build/{p-8f055e80.entry.js → p-c057f347.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-bb145920.entry.js → www/build/p-c33254fb.entry.js} +1 -1
- package/www/build/{p-28a77b70.entry.js → p-c7666b66.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-c21abd37.entry.js → www/build/p-c7983e8a.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-82997757.entry.js → www/build/p-c873abca.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-86f826f4.entry.js → www/build/p-c8818032.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-c14f3e7b.entry.js → www/build/p-c8f68cfe.entry.js} +1 -1
- package/www/build/p-caaac073.entry.js +1 -0
- package/www/build/p-cb516edc.entry.js +1 -0
- package/www/build/p-cb79d059.entry.js +1 -1
- package/www/build/{p-9e19f4e8.entry.js → p-cd1dcff4.entry.js} +1 -1
- package/www/build/p-ce268bc2.entry.js +1 -0
- package/www/build/p-cf90d565.entry.js +1 -0
- package/{dist/urnovl-web-components/p-f044459d.entry.js → www/build/p-d210bed2.entry.js} +1 -1
- package/www/build/{p-b50e8cad.entry.js → p-d348963a.entry.js} +1 -1
- package/www/build/{p-e659d21c.entry.js → p-d4da4e68.entry.js} +1 -1
- package/www/build/p-d6e78266.entry.js +1 -0
- package/{dist/urnovl-web-components/p-693b5b1e.entry.js → www/build/p-db9079e2.entry.js} +1 -1
- package/www/build/{p-7f399549.entry.js → p-dfa6c13e.entry.js} +1 -1
- package/www/build/{p-cfedfdac.entry.js → p-e2518029.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-7d403b3e.entry.js → www/build/p-e3982059.entry.js} +1 -1
- package/{dist/urnovl-web-components/p-d02abe61.entry.js → www/build/p-e3b98dfd.entry.js} +1 -1
- package/www/build/{p-0588ba08.entry.js → p-e659c8bb.entry.js} +1 -1
- package/www/build/p-ec006f46.entry.js +1 -1
- package/www/build/{p-dbde8c6e.entry.js → p-ed59b299.entry.js} +1 -1
- package/www/build/{p-d11cd455.entry.js → p-f16c01bf.entry.js} +1 -1
- package/www/build/{p-73fca060.entry.js → p-fb6cbf1d.entry.js} +1 -1
- package/www/build/p-pLhWehn7.js +1 -0
- package/www/build/urnovl-web-components.esm.js +1 -1
- package/dist/urnovl-web-components/p-2d6036d2.entry.js +0 -1
- package/dist/urnovl-web-components/p-49a4a16e.entry.js +0 -1
- package/dist/urnovl-web-components/p-5f8d9c20.entry.js +0 -1
- package/dist/urnovl-web-components/p-6f5e2c16.entry.js +0 -1
- package/dist/urnovl-web-components/p-95669140.entry.js +0 -1
- package/dist/urnovl-web-components/p-DieZm0eP.js +0 -1
- package/dist/urnovl-web-components/p-a66d6eed.entry.js +0 -1
- package/dist/urnovl-web-components/p-c35bfee6.entry.js +0 -1
- package/dist/urnovl-web-components/p-de47e53f.entry.js +0 -1
- package/dist/urnovl-web-components/p-e5fbc770.entry.js +0 -1
- package/dist/urnovl-web-components/p-f1b64b86.entry.js +0 -1
- package/dist/urnovl-web-components/p-fc668d06.entry.js +0 -1
- package/www/build/p-2d6036d2.entry.js +0 -1
- package/www/build/p-49a4a16e.entry.js +0 -1
- package/www/build/p-5f8d9c20.entry.js +0 -1
- package/www/build/p-6f5e2c16.entry.js +0 -1
- package/www/build/p-95669140.entry.js +0 -1
- package/www/build/p-9e272440.js +0 -1
- package/www/build/p-DieZm0eP.js +0 -1
- package/www/build/p-a66d6eed.entry.js +0 -1
- package/www/build/p-c35bfee6.entry.js +0 -1
- package/www/build/p-de47e53f.entry.js +0 -1
- package/www/build/p-e5fbc770.entry.js +0 -1
- package/www/build/p-f1b64b86.entry.js +0 -1
- package/www/build/p-fc668d06.entry.js +0 -1
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DvddpEp7.js';
|
|
2
|
+
import './ur-avatar-DXF3lVCQ.js';
|
|
3
|
+
import './ur-icon.entry.js';
|
|
4
|
+
import './ur-button.entry.js';
|
|
5
|
+
import './ur-time-ago.entry.js';
|
|
6
|
+
import './ur-tooltip-CTvIaeKz.js';
|
|
7
|
+
import './index-DZdO-mMi.js';
|
|
8
|
+
import './component-style-zh2SzAzp.js';
|
|
9
|
+
import './directive-Cdjto-xB.js';
|
|
10
|
+
import './extend-CivLoY3b.js';
|
|
11
|
+
import './get-Bo_xHyoL.js';
|
|
12
|
+
import './has-slot-BUAeIuVe.js';
|
|
13
|
+
import './index-hBNOs3uJ.js';
|
|
14
|
+
import './ref-Bz3X8sIV.js';
|
|
15
|
+
import './attr-x5F1K2Wv.js';
|
|
16
|
+
import './template-Dv4lqTb2.js';
|
|
17
|
+
import './button-base-Ch4mNZf9.js';
|
|
18
|
+
import './if-defined-BYHxg-DB.js';
|
|
19
|
+
import './anchor-BI6JNVb4.js';
|
|
20
|
+
import './form-BgKWWIji.js';
|
|
21
|
+
import './ripple-mixin-B-KYfpV5.js';
|
|
22
|
+
import './children-C1xUAMVf.js';
|
|
23
|
+
import './state-VNaKC22C.js';
|
|
24
|
+
import './class-map-DhnCnSWX.js';
|
|
25
|
+
import './appendTo-Bs3lgi94.js';
|
|
26
|
+
import './index-Co79ZtG7.js';
|
|
27
|
+
|
|
28
|
+
const urPostCardCss = ":host {\n --post-width: 100%;\n --post-border-radius: 8px;\n --ur-color-on-background: var(--mdui-color-on-background);\n --ur-color-background: var(--mdui-color-background);\n --ur-color-primary: var(--mdui-color-primary);\n --ur-color-surface-variant: var(--mdui-color-surface-variant);\n --ur-color-on-surface-variant: var(--mdui-color-on-surface-variant);\n}\n\n@keyframes placeholderAnimate {\n 0% { background-position: -650px 0; }\n 100% { background-position: 650px 0; }\n}\n\n:host {\n display: flex;\n flex-direction: column;\n box-sizing: content-box;\n container-type: inline-size;\n container-name: post;\n}\n\n:host .post {\n overflow: hidden;\n width: var(--post-width);\n border-radius: var(--post-border-radius);\n cursor: pointer;\n display: block;\n text-decoration: none;\n color: inherit;\n padding: 12px;\n box-sizing: border-box;\n}\n\n:host .post:hover {\n background: rgba(var(--ur-color-on-background), 0.12);\n}\n\n:host .post.loading {\n cursor: default;\n}\n\n:host .post.loading:hover {\n background: transparent;\n}\n\n/* Header */\n:host .header {\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: 8px;\n margin-bottom: 8px;\n}\n\n:host .owner-info {\n display: flex;\n align-items: center;\n gap: 10px;\n flex: 1;\n min-width: 0;\n}\n\n:host .header-text {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n:host .owner-name {\n font-size: 14px;\n font-weight: 600;\n color: rgb(var(--ur-color-on-background));\n line-height: 1.3;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n:host .meta-row {\n display: flex;\n align-items: center;\n gap: 6px;\n flex-wrap: wrap;\n}\n\n:host .timestamp {\n font-size: 12px;\n font-weight: 400;\n color: rgba(var(--ur-color-on-background), 0.6);\n}\n\n:host .meta-separator {\n font-size: 12px;\n color: rgba(var(--ur-color-on-background), 0.4);\n margin: 0 4px;\n}\n\n:host .meta-row ur-tooltip {\n position: relative;\n top: 2px;\n}\n\n:host .audience-icon {\n color: rgba(var(--ur-color-on-background), 0.6);\n}\n\n/* Menu */\n:host .menu-container {\n position: relative;\n flex-shrink: 0;\n}\n\n:host .menu-button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n border: none;\n background: transparent;\n border-radius: 50%;\n cursor: pointer;\n color: rgba(var(--ur-color-on-background), 0.6);\n transition: background-color 0.2s;\n}\n\n:host .menu-button:hover {\n background: rgba(var(--ur-color-on-background), 0.08);\n}\n\n:host .menu-dropdown {\n position: absolute;\n top: 100%;\n right: 0;\n min-width: 120px;\n background: rgb(var(--ur-color-background));\n border-radius: 8px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n overflow: hidden;\n z-index: 10;\n}\n\n:host .menu-item {\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n padding: 10px 12px;\n border: none;\n background: transparent;\n font-size: 13px;\n color: rgb(var(--ur-color-on-background));\n cursor: pointer;\n transition: background-color 0.2s;\n text-align: left;\n}\n\n:host .menu-item:hover {\n background: rgba(var(--ur-color-on-background), 0.08);\n}\n\n:host .menu-item.delete {\n color: rgb(var(--mdui-color-error));\n}\n\n/* Content */\n:host .content {\n position: relative;\n}\n\n:host .content.blurred > *:not(.spoiler-overlay):not(.locked-overlay) {\n filter: blur(8px);\n pointer-events: none;\n user-select: none;\n}\n\n/* Content type wrappers */\n:host .text-content,\n:host .link-content,\n:host .media-content,\n:host .poll-content {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n:host .post-title {\n margin: 0;\n font-size: 15px;\n font-weight: 700;\n line-height: 1.4;\n color: rgb(var(--ur-color-on-background));\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n\n:host .post-body {\n margin: 0;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.5;\n color: rgba(var(--ur-color-on-background), 0.8);\n white-space: pre-wrap;\n word-break: break-word;\n display: -webkit-box;\n -webkit-line-clamp: 4;\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n\n/* Spoiler overlay */\n:host .spoiler-overlay {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(var(--ur-color-background), 0.5);\n backdrop-filter: blur(4px);\n border-radius: 8px;\n}\n\n:host .spoiler-content {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n text-align: center;\n padding: 16px;\n}\n\n:host .spoiler-content ur-icon {\n color: rgba(var(--ur-color-on-background), 0.6);\n}\n\n:host .spoiler-warning {\n font-size: 13px;\n font-weight: 500;\n color: rgb(var(--ur-color-on-background));\n}\n\n/* Locked overlay */\n:host .locked-overlay {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(var(--ur-color-background), 0.5);\n backdrop-filter: blur(4px);\n border-radius: 8px;\n}\n\n:host .locked-content {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n text-align: center;\n padding: 16px;\n}\n\n:host .locked-content ur-icon {\n color: rgba(var(--ur-color-on-background), 0.6);\n}\n\n:host .locked-message {\n font-size: 13px;\n font-weight: 500;\n color: rgb(var(--ur-color-on-background));\n max-width: 200px;\n}\n\n/* Locked placeholder content */\n:host .locked-placeholder {\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-height: 80px;\n}\n\n:host .locked-placeholder-body {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n:host .placeholder-line {\n height: 12px;\n background: rgba(var(--ur-color-on-background), 0.1);\n border-radius: 4px;\n width: 100%;\n}\n\n:host .placeholder-line.short {\n width: 60%;\n}\n\n/* Link content */\n:host .link-preview {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 12px;\n background: rgba(var(--ur-color-surface-variant), 0.3);\n border: 1px solid transparent;\n border-radius: 8px;\n text-decoration: none;\n color: rgb(var(--ur-color-primary));\n cursor: pointer;\n transition: background-color 0.2s, border-color 0.2s;\n}\n\n:host .link-preview:hover {\n background: rgba(var(--ur-color-primary), 0.08);\n border-color: rgba(var(--ur-color-primary), 0.3);\n}\n\n:host .link-url {\n flex: 1;\n font-size: 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* Media content */\n:host .media-grid {\n display: grid;\n gap: 2px;\n border-radius: 12px;\n overflow: hidden;\n}\n\n:host .media-grid:has(.media-item:nth-child(2)) {\n grid-template-columns: 1fr 1fr;\n}\n\n:host .media-item {\n position: relative;\n aspect-ratio: 1;\n overflow: hidden;\n background: rgba(var(--ur-color-surface-variant), 0.3);\n}\n\n/* Single image: natural height, full width */\n:host .media-item.single {\n aspect-ratio: auto;\n grid-column: 1 / -1;\n}\n\n:host .media-item.single img {\n width: 100%;\n height: auto;\n max-height: 70vh;\n object-fit: contain;\n}\n\n/* 3 images: 3rd item spans full width */\n:host .media-grid:has(.media-item:nth-child(3):last-child) .media-item:nth-child(3) {\n grid-column: 1 / -1;\n aspect-ratio: 2/1;\n}\n\n:host .media-item img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n:host .video-thumbnail {\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n:host .video-thumbnail img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n:host .play-icon {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0, 0, 0, 0.3);\n color: white;\n}\n\n:host .media-more {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0, 0, 0, 0.6);\n font-size: 20px;\n font-weight: 600;\n color: white;\n}\n\n:host .image-hover-overlay {\n position: absolute;\n inset: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 4px;\n background: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: opacity 0.2s ease;\n cursor: pointer;\n}\n\n:host .image-hover-overlay span {\n font-size: 12px;\n font-weight: 500;\n color: white;\n}\n\n:host .image-hover-overlay ur-icon {\n color: white;\n}\n\n:host .media-item:hover .image-hover-overlay {\n opacity: 1;\n}\n\n/* Poll content */\n:host .poll-options {\n display: flex;\n flex-direction: column;\n gap: 6px;\n}\n\n:host .poll-option {\n position: relative;\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 10px 12px;\n border: 1px solid rgba(var(--ur-color-on-background), 0.15);\n background: transparent;\n border-radius: 8px;\n font-size: 13px;\n text-align: left;\n cursor: pointer;\n transition: all 0.2s;\n overflow: hidden;\n}\n\n:host .poll-option:not(.voted):hover {\n border-color: rgb(var(--ur-color-primary));\n background: rgba(var(--ur-color-primary), 0.05);\n}\n\n:host .poll-option.voted {\n cursor: default;\n}\n\n:host .poll-option.selected {\n border-color: rgb(var(--ur-color-primary));\n}\n\n:host .poll-bar {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n background: rgba(var(--ur-color-primary), 0.12);\n border-radius: 7px;\n transition: width 0.3s ease;\n}\n\n:host .poll-option.selected .poll-bar {\n background: rgba(var(--ur-color-primary), 0.2);\n}\n\n:host .poll-text {\n position: relative;\n flex: 1;\n color: rgb(var(--ur-color-on-background));\n z-index: 1;\n}\n\n:host .poll-percentage {\n position: relative;\n font-weight: 600;\n font-size: 12px;\n color: rgb(var(--ur-color-on-background));\n z-index: 1;\n}\n\n:host .poll-check {\n position: relative;\n color: rgb(var(--ur-color-primary));\n z-index: 1;\n}\n\n:host .poll-meta {\n font-size: 12px;\n font-weight: 400;\n color: rgba(var(--ur-color-on-background), 0.6);\n}\n\n/* Actions */\n:host .actions {\n display: flex;\n align-items: center;\n gap: 4px;\n margin-top: 8px;\n}\n\n:host .action-group {\n display: flex;\n align-items: center;\n}\n\n:host .action-button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 34px;\n height: 34px;\n padding: 0;\n border: none;\n background: transparent;\n border-radius: 50%;\n color: rgba(var(--ur-color-on-background), 0.6);\n cursor: pointer;\n transition: background-color 0.15s ease;\n overflow: hidden;\n}\n\n:host .action-button ur-icon {\n flex-shrink: 0;\n}\n\n:host .action-button:hover {\n background: rgba(var(--ur-color-on-background), 0.08);\n}\n\n:host .action-button.active {\n color: rgb(var(--ur-color-primary));\n}\n\n:host .action-count {\n font-size: 12px;\n font-weight: 500;\n color: rgba(var(--ur-color-on-background), 0.6);\n padding: 0 4px;\n margin-right: 8px;\n}\n\n/* Skeleton loading */\n:host .loading-el {\n animation-duration: 1.7s;\n animation-fill-mode: forwards;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n animation-name: placeholderAnimate;\n background: linear-gradient(\n to right,\n rgba(var(--ur-color-on-background), 0.04) 2%,\n rgba(var(--ur-color-on-background), 0.12) 18%,\n rgba(var(--ur-color-on-background), 0.04) 33%\n );\n background-size: 1000px;\n}\n\n:host .avatar-skeleton {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n flex-shrink: 0;\n}\n\n:host .name-skeleton {\n width: 100px;\n height: 14px;\n border-radius: 4px;\n}\n\n:host .timestamp-skeleton {\n width: 60px;\n height: 12px;\n border-radius: 4px;\n}\n\n:host .title-skeleton {\n width: 85%;\n height: 16px;\n border-radius: 4px;\n margin-bottom: 8px;\n}\n\n:host .body-skeleton {\n width: 100%;\n height: 14px;\n border-radius: 4px;\n margin-bottom: 6px;\n}\n\n:host .body-skeleton.short {\n width: 65%;\n}\n\n:host .actions-skeleton {\n display: flex;\n gap: 8px;\n margin-top: 10px;\n}\n\n:host .action-skeleton {\n width: 50px;\n height: 28px;\n border-radius: 14px;\n}\n\n/* Container queries for responsive */\n@container post (max-width: 350px) {\n :host .post {\n padding: 10px;\n }\n\n :host .post-title {\n font-size: 14px;\n }\n\n :host .post-body {\n font-size: 13px;\n }\n\n :host .owner-name {\n font-size: 13px;\n }\n\n :host .poll-option {\n padding: 8px 10px;\n font-size: 12px;\n }\n}\n";
|
|
29
|
+
|
|
30
|
+
const UrPostCard = class {
|
|
31
|
+
constructor(hostRef) {
|
|
32
|
+
registerInstance(this, hostRef);
|
|
33
|
+
this.postCardEvent = createEvent(this, "postCardEvent");
|
|
34
|
+
this.ownerType = 'user';
|
|
35
|
+
this.isOwner = false;
|
|
36
|
+
this.liked = false;
|
|
37
|
+
this.likeCount = 0;
|
|
38
|
+
this.commentCount = 0;
|
|
39
|
+
this.skeleton = false;
|
|
40
|
+
this.userPollVote = -1; // Index of option user voted for, -1 if not voted
|
|
41
|
+
this.totalPollVotes = 0;
|
|
42
|
+
this.mobile = false;
|
|
43
|
+
// Text props for i18n
|
|
44
|
+
this.spoilerWarningText = 'Spoiler warning';
|
|
45
|
+
this.showSpoilerText = 'Show anyway';
|
|
46
|
+
this.editText = 'Edit';
|
|
47
|
+
this.deleteText = 'Delete';
|
|
48
|
+
this.reportText = 'Report';
|
|
49
|
+
this.likeText = 'Like';
|
|
50
|
+
this.commentText = 'Comment';
|
|
51
|
+
this.publicText = 'Public';
|
|
52
|
+
this.privateText = 'Private';
|
|
53
|
+
this.followersOnlyText = 'Followers only';
|
|
54
|
+
this.subscribersOnlyText = 'Subscribers only';
|
|
55
|
+
this.votesText = 'votes';
|
|
56
|
+
// Locked post text props for i18n
|
|
57
|
+
this.lockedLoginText = 'Sign in to view this post';
|
|
58
|
+
this.lockedFollowText = 'Follow to view this post';
|
|
59
|
+
this.lockedSubscribeText = 'Subscribe to view this post';
|
|
60
|
+
this.lockedTierText = 'Join {tiers} to view this post';
|
|
61
|
+
this.loginBtnText = 'Sign in';
|
|
62
|
+
this.followBtnText = 'Follow';
|
|
63
|
+
this.subscribeBtnText = 'Subscribe';
|
|
64
|
+
this.viewImageText = 'View image';
|
|
65
|
+
this.spoilerRevealed = false;
|
|
66
|
+
this.menuOpen = false;
|
|
67
|
+
this.handlePostClick = () => {
|
|
68
|
+
this.emitEvent('post_click');
|
|
69
|
+
};
|
|
70
|
+
this.handleLikeClick = (e) => {
|
|
71
|
+
e.stopPropagation();
|
|
72
|
+
this.emitEvent('like');
|
|
73
|
+
};
|
|
74
|
+
this.handleCommentClick = (e) => {
|
|
75
|
+
e.stopPropagation();
|
|
76
|
+
this.emitEvent('comment');
|
|
77
|
+
};
|
|
78
|
+
this.handleOwnerClick = (_e) => {
|
|
79
|
+
// TODO: Navigate to owner profile
|
|
80
|
+
// For now, let click bubble up to open post
|
|
81
|
+
};
|
|
82
|
+
this.handleLinkClick = (e) => {
|
|
83
|
+
e.stopPropagation();
|
|
84
|
+
// Let the link open naturally in new tab (target="_blank")
|
|
85
|
+
this.emitEvent('link_click');
|
|
86
|
+
};
|
|
87
|
+
this.handlePollVote = (e, optionIndex) => {
|
|
88
|
+
e.stopPropagation();
|
|
89
|
+
if (this.userPollVote === -1) {
|
|
90
|
+
this.emitEvent('poll_vote', { pollOptionIndex: optionIndex });
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
this.handleImageClick = (e, index) => {
|
|
94
|
+
e.stopPropagation();
|
|
95
|
+
this.emitEvent('image_click', { mediaIndex: index });
|
|
96
|
+
};
|
|
97
|
+
this.handleSpoilerReveal = (e) => {
|
|
98
|
+
e.stopPropagation();
|
|
99
|
+
this.spoilerRevealed = true;
|
|
100
|
+
this.emitEvent('spoiler_reveal');
|
|
101
|
+
};
|
|
102
|
+
this.handleUnlockClick = (e) => {
|
|
103
|
+
var _a;
|
|
104
|
+
e.stopPropagation();
|
|
105
|
+
const lockReason = (_a = this.post) === null || _a === void 0 ? void 0 : _a.lockReason;
|
|
106
|
+
if (lockReason === 'login') {
|
|
107
|
+
this.emitEvent('unlock_login');
|
|
108
|
+
}
|
|
109
|
+
else if (lockReason === 'followers') {
|
|
110
|
+
this.emitEvent('unlock_follow');
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
// 'subscribers' or 'tier'
|
|
114
|
+
this.emitEvent('unlock_subscribe');
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
this.handleMenuAction = (e, action) => {
|
|
118
|
+
e.stopPropagation();
|
|
119
|
+
this.menuOpen = false;
|
|
120
|
+
this.emitEvent(action);
|
|
121
|
+
};
|
|
122
|
+
this.toggleMenu = (e) => {
|
|
123
|
+
e.stopPropagation();
|
|
124
|
+
if (this.mobile) {
|
|
125
|
+
const menuActions = [];
|
|
126
|
+
if (this.isOwner) {
|
|
127
|
+
menuActions.push({ id: 'edit', label: this.editText, icon: 'edit' }, { id: 'delete', label: this.deleteText, icon: 'delete' });
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
menuActions.push({ id: 'report', label: this.reportText, icon: 'flag' });
|
|
131
|
+
}
|
|
132
|
+
this.postCardEvent.emit({
|
|
133
|
+
type: 'menu_open',
|
|
134
|
+
post: this.post,
|
|
135
|
+
menuActions,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
this.menuOpen = !this.menuOpen;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
handleWindowClick(event) {
|
|
144
|
+
var _a;
|
|
145
|
+
if (!this.menuOpen)
|
|
146
|
+
return;
|
|
147
|
+
const path = event.composedPath();
|
|
148
|
+
const menuContainer = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.menu-container');
|
|
149
|
+
if (menuContainer && !path.includes(menuContainer)) {
|
|
150
|
+
this.menuOpen = false;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
emitEvent(type, options) {
|
|
154
|
+
this.postCardEvent.emit({
|
|
155
|
+
type,
|
|
156
|
+
post: this.post,
|
|
157
|
+
pollOptionIndex: options === null || options === void 0 ? void 0 : options.pollOptionIndex,
|
|
158
|
+
mediaIndex: options === null || options === void 0 ? void 0 : options.mediaIndex,
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
formatCount(count) {
|
|
162
|
+
if (count >= 1000000) {
|
|
163
|
+
return `${(count / 1000000).toFixed(1)}M`;
|
|
164
|
+
}
|
|
165
|
+
if (count >= 1000) {
|
|
166
|
+
return `${(count / 1000).toFixed(1)}K`;
|
|
167
|
+
}
|
|
168
|
+
return count.toString();
|
|
169
|
+
}
|
|
170
|
+
getAudienceIcon() {
|
|
171
|
+
var _a;
|
|
172
|
+
switch ((_a = this.post) === null || _a === void 0 ? void 0 : _a.audience) {
|
|
173
|
+
case 'public':
|
|
174
|
+
return 'public';
|
|
175
|
+
case 'private':
|
|
176
|
+
return 'lock';
|
|
177
|
+
case 'followers':
|
|
178
|
+
return 'group';
|
|
179
|
+
case 'subscribers':
|
|
180
|
+
return 'loyalty';
|
|
181
|
+
default:
|
|
182
|
+
return 'public';
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
getAudienceTooltip() {
|
|
186
|
+
var _a, _b, _c;
|
|
187
|
+
switch ((_a = this.post) === null || _a === void 0 ? void 0 : _a.audience) {
|
|
188
|
+
case 'public':
|
|
189
|
+
return this.publicText;
|
|
190
|
+
case 'private':
|
|
191
|
+
return this.privateText;
|
|
192
|
+
case 'followers':
|
|
193
|
+
return this.followersOnlyText;
|
|
194
|
+
case 'subscribers':
|
|
195
|
+
// Show tier names for owner only
|
|
196
|
+
if (this.isOwner && ((_c = (_b = this.post) === null || _b === void 0 ? void 0 : _b.audienceTierNames) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
|
197
|
+
return `${this.subscribersOnlyText} (${this.post.audienceTierNames.join(', ')})`;
|
|
198
|
+
}
|
|
199
|
+
return this.subscribersOnlyText;
|
|
200
|
+
default:
|
|
201
|
+
return this.publicText;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
renderSkeleton() {
|
|
205
|
+
return (h(Host, null, h("div", { class: "post loading" }, h("div", { class: "header" }, h("div", { class: "owner-info" }, h("div", { class: "avatar-skeleton loading-el" }), h("div", { class: "header-text" }, h("div", { class: "name-skeleton loading-el" }), h("div", { class: "timestamp-skeleton loading-el" })))), h("div", { class: "content" }, h("div", { class: "title-skeleton loading-el" }), h("div", { class: "body-skeleton loading-el" }), h("div", { class: "body-skeleton short loading-el" })), h("div", { class: "actions-skeleton" }, h("div", { class: "action-skeleton loading-el" }), h("div", { class: "action-skeleton loading-el" })))));
|
|
206
|
+
}
|
|
207
|
+
renderHeader() {
|
|
208
|
+
return (h("div", { class: "header" }, h("div", { class: "owner-info", onClick: this.handleOwnerClick }, h("ur-avatar", { class: "avatar clickable", src: this.ownerImage, name: this.ownerName, size: "40px", variant: this.ownerType }), h("div", { class: "header-text" }, h("span", { class: "owner-name clickable" }, this.ownerName), h("div", { class: "meta-row" }, h("ur-time-ago", { class: "timestamp", date: this.timestamp }), h("span", { class: "meta-separator" }, "\u00B7"), h("ur-tooltip", { content: this.getAudienceTooltip(), placement: "bottom" }, h("ur-icon", { class: "audience-icon", name: this.getAudienceIcon(), size: "14px" }))))), h("div", { class: "menu-container" }, h("button", { class: "menu-button", onClick: this.toggleMenu }, h("ur-icon", { name: "more_vert", size: "20px" })), this.menuOpen && (h("div", { class: "menu-dropdown" }, this.isOwner ? ([
|
|
209
|
+
h("button", { class: "menu-item", onClick: (e) => this.handleMenuAction(e, 'edit') }, h("ur-icon", { name: "edit", size: "16px" }), this.editText),
|
|
210
|
+
h("button", { class: "menu-item delete", onClick: (e) => this.handleMenuAction(e, 'delete') }, h("ur-icon", { name: "delete", size: "16px" }), this.deleteText)
|
|
211
|
+
]) : (h("button", { class: "menu-item", onClick: (e) => this.handleMenuAction(e, 'report') }, h("ur-icon", { name: "flag", size: "16px" }), this.reportText)))))));
|
|
212
|
+
}
|
|
213
|
+
renderSpoilerOverlay() {
|
|
214
|
+
return (h("div", { class: "spoiler-overlay" }, h("div", { class: "spoiler-content" }, h("ur-icon", { name: "visibility_off", size: "32px" }), h("span", { class: "spoiler-warning" }, this.spoilerWarningText), h("ur-button", { variant: "outlined", onClick: this.handleSpoilerReveal }, this.showSpoilerText))));
|
|
215
|
+
}
|
|
216
|
+
getLockedMessage() {
|
|
217
|
+
var _a, _b, _c;
|
|
218
|
+
const lockReason = (_a = this.post) === null || _a === void 0 ? void 0 : _a.lockReason;
|
|
219
|
+
if (lockReason === 'login') {
|
|
220
|
+
return this.lockedLoginText;
|
|
221
|
+
}
|
|
222
|
+
if (lockReason === 'followers') {
|
|
223
|
+
return this.lockedFollowText;
|
|
224
|
+
}
|
|
225
|
+
if (lockReason === 'tier' && ((_c = (_b = this.post) === null || _b === void 0 ? void 0 : _b.requiredTierNames) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
226
|
+
return this.lockedTierText.replace('{tiers}', this.post.requiredTierNames.join(' or '));
|
|
227
|
+
}
|
|
228
|
+
return this.lockedSubscribeText;
|
|
229
|
+
}
|
|
230
|
+
getUnlockButtonText() {
|
|
231
|
+
var _a;
|
|
232
|
+
const lockReason = (_a = this.post) === null || _a === void 0 ? void 0 : _a.lockReason;
|
|
233
|
+
if (lockReason === 'login') {
|
|
234
|
+
return this.loginBtnText;
|
|
235
|
+
}
|
|
236
|
+
if (lockReason === 'followers') {
|
|
237
|
+
return this.followBtnText;
|
|
238
|
+
}
|
|
239
|
+
return this.subscribeBtnText;
|
|
240
|
+
}
|
|
241
|
+
renderLockedOverlay() {
|
|
242
|
+
return (h("div", { class: "locked-overlay" }, h("div", { class: "locked-content" }, h("ur-icon", { name: "lock", size: "32px" }), h("span", { class: "locked-message" }, this.getLockedMessage()), h("ur-button", { variant: "filled", onClick: this.handleUnlockClick }, this.getUnlockButtonText()))));
|
|
243
|
+
}
|
|
244
|
+
renderTextContent() {
|
|
245
|
+
return (h("div", { class: "text-content" }, h("h3", { class: "post-title" }, this.post.title), this.post.body && (h("p", { class: "post-body" }, this.post.body))));
|
|
246
|
+
}
|
|
247
|
+
renderLinkContent() {
|
|
248
|
+
return (h("div", { class: "link-content" }, h("h3", { class: "post-title" }, this.post.title), this.post.body && (h("p", { class: "post-body" }, this.post.body)), h("a", { class: "link-preview", href: this.post.linkUrl, target: "_blank", rel: "noopener noreferrer", onClick: this.handleLinkClick }, h("ur-icon", { name: "link", size: "16px" }), h("span", { class: "link-url" }, this.post.linkUrl), h("ur-icon", { name: "open_in_new", size: "14px" }))));
|
|
249
|
+
}
|
|
250
|
+
renderMediaContent() {
|
|
251
|
+
const hasMedia = this.post.media && this.post.media.length > 0;
|
|
252
|
+
return (h("div", { class: "media-content" }, h("h3", { class: "post-title" }, this.post.title), hasMedia && (h("div", { class: "media-grid" }, this.post.media.slice(0, 4).map((media, index) => (h("div", { class: `media-item ${this.post.media.length === 1 ? 'single' : ''}`, key: index, onClick: (e) => this.handleImageClick(e, index) }, media.type === 'image' ? (h("img", { src: media.url, alt: "", loading: "lazy" })) : (h("div", { class: "video-thumbnail" }, h("img", { src: media.thumbnailUrl || media.url, alt: "", loading: "lazy" }), h("div", { class: "play-icon" }, h("ur-icon", { name: "play_circle", size: "48px" })))), index === 3 && this.post.media.length > 4 && (h("div", { class: "media-more" }, "+", this.post.media.length - 4)), media.type === 'image' && (h("div", { class: "image-hover-overlay" }, h("ur-icon", { name: "visibility", size: "20px" }), h("span", null, this.viewImageText)))))))), this.post.body && (h("p", { class: "post-body" }, this.post.body))));
|
|
253
|
+
}
|
|
254
|
+
renderPollContent() {
|
|
255
|
+
var _a;
|
|
256
|
+
const hasVoted = this.userPollVote !== -1;
|
|
257
|
+
const hasPollResults = this.post.pollResults && this.post.pollResults.length > 0;
|
|
258
|
+
// Calculate total votes from pollResults if available, otherwise use prop
|
|
259
|
+
const totalVotes = hasPollResults
|
|
260
|
+
? this.post.pollResults.reduce((sum, r) => sum + r.count, 0)
|
|
261
|
+
: this.totalPollVotes;
|
|
262
|
+
return (h("div", { class: "poll-content" }, h("h3", { class: "post-title" }, this.post.title), h("div", { class: "poll-options" }, (_a = this.post.pollOptions) === null || _a === void 0 ? void 0 : _a.map((option, index) => {
|
|
263
|
+
// Use pollResults if available, otherwise fall back to option.votes
|
|
264
|
+
const result = hasPollResults
|
|
265
|
+
? this.post.pollResults.find(r => r.index === index)
|
|
266
|
+
: null;
|
|
267
|
+
const votes = result ? result.count : (option.votes || 0);
|
|
268
|
+
const percentage = result
|
|
269
|
+
? result.percentage
|
|
270
|
+
: (totalVotes > 0 ? Math.round((votes / totalVotes) * 100) : 0);
|
|
271
|
+
const isSelected = this.userPollVote === index;
|
|
272
|
+
return (h("button", { class: {
|
|
273
|
+
'poll-option': true,
|
|
274
|
+
'voted': hasVoted,
|
|
275
|
+
'selected': isSelected,
|
|
276
|
+
}, onClick: (e) => this.handlePollVote(e, index), disabled: hasVoted, key: index }, hasVoted && (h("div", { class: "poll-bar", style: { width: `${percentage}%` } })), h("span", { class: "poll-text" }, option.text), hasVoted && (h("span", { class: "poll-percentage" }, percentage, "%")), isSelected && (h("ur-icon", { name: "check_circle", size: "16px", class: "poll-check" }))));
|
|
277
|
+
})), h("div", { class: "poll-meta" }, h("span", null, totalVotes, " ", this.votesText))));
|
|
278
|
+
}
|
|
279
|
+
renderLockedContent() {
|
|
280
|
+
// For locked posts, show placeholder content to blur
|
|
281
|
+
return (h("div", { class: "locked-placeholder" }, h("h3", { class: "post-title" }, this.post.title), h("div", { class: "locked-placeholder-body" }, h("div", { class: "placeholder-line" }), h("div", { class: "placeholder-line" }), h("div", { class: "placeholder-line short" }))));
|
|
282
|
+
}
|
|
283
|
+
renderContent() {
|
|
284
|
+
var _a, _b, _c, _d, _f, _g;
|
|
285
|
+
const showSpoiler = ((_a = this.post) === null || _a === void 0 ? void 0 : _a.isSpoiler) && !this.spoilerRevealed;
|
|
286
|
+
const isLocked = ((_b = this.post) === null || _b === void 0 ? void 0 : _b.locked) === true;
|
|
287
|
+
// Locked state takes precedence
|
|
288
|
+
if (isLocked) {
|
|
289
|
+
return (h("div", { class: "content blurred" }, this.renderLockedContent(), this.renderLockedOverlay()));
|
|
290
|
+
}
|
|
291
|
+
return (h("div", { class: { 'content': true, 'blurred': showSpoiler } }, ((_c = this.post) === null || _c === void 0 ? void 0 : _c.type) === 'text' && this.renderTextContent(), ((_d = this.post) === null || _d === void 0 ? void 0 : _d.type) === 'link' && this.renderLinkContent(), ((_f = this.post) === null || _f === void 0 ? void 0 : _f.type) === 'media' && this.renderMediaContent(), ((_g = this.post) === null || _g === void 0 ? void 0 : _g.type) === 'poll' && this.renderPollContent(), showSpoiler && this.renderSpoilerOverlay()));
|
|
292
|
+
}
|
|
293
|
+
renderActions() {
|
|
294
|
+
return (h("div", { class: "actions" }, h("div", { class: "action-group" }, h("button", { class: { 'action-button': true, 'active': this.liked }, onClick: this.handleLikeClick }, h("ur-icon", { name: this.liked ? 'thumb_up' : 'thumb_up_outline', size: "18px" })), this.likeCount > 0 && (h("span", { class: "action-count" }, this.formatCount(this.likeCount)))), h("div", { class: "action-group" }, h("button", { class: "action-button", onClick: this.handleCommentClick }, h("ur-icon", { name: "comment--outlined", size: "18px" })), this.commentCount > 0 && (h("span", { class: "action-count" }, this.formatCount(this.commentCount))))));
|
|
295
|
+
}
|
|
296
|
+
render() {
|
|
297
|
+
if (this.skeleton) {
|
|
298
|
+
return this.renderSkeleton();
|
|
299
|
+
}
|
|
300
|
+
if (!this.post) {
|
|
301
|
+
return null;
|
|
302
|
+
}
|
|
303
|
+
return (h(Host, null, h("div", { class: "post", onClick: this.handlePostClick }, this.renderHeader(), this.renderContent(), this.renderActions())));
|
|
304
|
+
}
|
|
305
|
+
get el() { return getElement(this); }
|
|
306
|
+
};
|
|
307
|
+
UrPostCard.style = urPostCardCss;
|
|
308
|
+
|
|
309
|
+
export { UrPostCard as ur_post_card };
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-DvddpEp7.js';
|
|
2
|
+
import './ur-avatar-DXF3lVCQ.js';
|
|
3
|
+
import './ur-icon.entry.js';
|
|
4
|
+
import './ur-button.entry.js';
|
|
5
|
+
import './ur-time-ago.entry.js';
|
|
6
|
+
import './ur-tooltip-CTvIaeKz.js';
|
|
7
|
+
import './index-DZdO-mMi.js';
|
|
8
|
+
import './component-style-zh2SzAzp.js';
|
|
9
|
+
import './directive-Cdjto-xB.js';
|
|
10
|
+
import './extend-CivLoY3b.js';
|
|
11
|
+
import './get-Bo_xHyoL.js';
|
|
12
|
+
import './has-slot-BUAeIuVe.js';
|
|
13
|
+
import './index-hBNOs3uJ.js';
|
|
14
|
+
import './ref-Bz3X8sIV.js';
|
|
15
|
+
import './attr-x5F1K2Wv.js';
|
|
16
|
+
import './template-Dv4lqTb2.js';
|
|
17
|
+
import './button-base-Ch4mNZf9.js';
|
|
18
|
+
import './if-defined-BYHxg-DB.js';
|
|
19
|
+
import './anchor-BI6JNVb4.js';
|
|
20
|
+
import './form-BgKWWIji.js';
|
|
21
|
+
import './ripple-mixin-B-KYfpV5.js';
|
|
22
|
+
import './children-C1xUAMVf.js';
|
|
23
|
+
import './state-VNaKC22C.js';
|
|
24
|
+
import './class-map-DhnCnSWX.js';
|
|
25
|
+
import './appendTo-Bs3lgi94.js';
|
|
26
|
+
import './index-Co79ZtG7.js';
|
|
27
|
+
|
|
28
|
+
const urPostDetailCss = ":host{--ur-color-on-background:var(--mdui-color-on-background);--ur-color-background:var(--mdui-color-background);--ur-color-primary:var(--mdui-color-primary);--ur-color-surface-variant:var(--mdui-color-surface-variant);--ur-color-on-surface-variant:var(--mdui-color-on-surface-variant);--ur-color-border:var(--mdui-color-outline-variant);display:block}.post-detail{display:flex;flex-direction:column}.header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:16px}.owner-info{display:flex;align-items:center;gap:12px;flex:1;min-width:0;cursor:pointer}.header-text{display:flex;flex-direction:column;gap:2px;min-width:0}.owner-name{font-size:15px;font-weight:600;color:rgb(var(--ur-color-on-background));line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.owner-name.clickable:hover{text-decoration:underline}.meta-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.timestamp{font-size:13px;font-weight:400;color:rgba(var(--ur-color-on-background), 0.6)}.meta-separator{font-size:12px;color:rgba(var(--ur-color-on-background), 0.4)}.meta-row ur-tooltip{position:relative;top:2px}.audience-icon{color:rgba(var(--ur-color-on-background), 0.6)}.content{position:relative}.content.blurred>*:not(.spoiler-overlay):not(.locked-overlay){filter:blur(8px);pointer-events:none;user-select:none}.text-content,.link-content,.media-content,.poll-content{display:flex;flex-direction:column;gap:12px}.text-content,.link-content,.poll-content{padding:0 16px}.post-title{margin:0;font-size:16px;font-weight:700;line-height:1.4;color:rgb(var(--ur-color-on-background))}.post-body{margin:0;font-size:15px;font-weight:400;line-height:1.6;color:rgba(var(--ur-color-on-background), 0.9);white-space:pre-wrap;word-break:break-word}.media-content .post-title,.media-content .post-body{padding:0 16px}.spoiler-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(var(--ur-color-background), 0.5);backdrop-filter:blur(4px);border-radius:8px}.spoiler-content{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:16px}.spoiler-content ur-icon{color:rgba(var(--ur-color-on-background), 0.6)}.spoiler-warning{font-size:14px;font-weight:500;color:rgb(var(--ur-color-on-background))}.locked-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(var(--ur-color-background), 0.5);backdrop-filter:blur(4px);border-radius:8px}.locked-content{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:16px}.locked-content ur-icon{color:rgba(var(--ur-color-on-background), 0.6)}.locked-message{font-size:14px;font-weight:500;color:rgb(var(--ur-color-on-background));max-width:200px}.locked-placeholder{display:flex;flex-direction:column;gap:8px;min-height:80px;padding:0 16px}.locked-placeholder-body{display:flex;flex-direction:column;gap:6px}.placeholder-line{height:14px;background:rgba(var(--ur-color-on-background), 0.1);border-radius:4px;width:100%}.placeholder-line.short{width:60%}.link-preview{display:flex;align-items:center;gap:8px;padding:12px 14px;background:rgba(var(--ur-color-surface-variant), 0.3);border:1px solid transparent;border-radius:8px;text-decoration:none;color:rgb(var(--ur-color-primary));cursor:pointer;transition:background-color 0.2s, border-color 0.2s}.link-preview:hover{background:rgba(var(--ur-color-primary), 0.08);border-color:rgba(var(--ur-color-primary), 0.3)}.link-url{flex:1;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-carousel-container{position:relative;background:rgb(var(--ur-color-surface-variant))}swiper-container{width:100%}swiper-slide{display:flex;align-items:center;justify-content:center}.media-slide{width:100%;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;background:rgb(var(--ur-color-surface-variant))}.media-slide img{width:100%;height:100%;object-fit:cover}.media-slide .video-player{width:100%;height:100%;object-fit:cover}.media-navigation{position:absolute;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:space-between;padding:0 8px}.nav-button{pointer-events:auto;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:none;border-radius:50%;background:rgba(0, 0, 0, 0.5);color:white;cursor:pointer;transition:background-color 0.2s, opacity 0.2s}.nav-button:hover:not(:disabled){background:rgba(0, 0, 0, 0.7)}.nav-button:disabled{opacity:0.3;cursor:not-allowed}.poll-options{display:flex;flex-direction:column;gap:8px}.poll-option{position:relative;display:flex;align-items:center;gap:8px;padding:12px 14px;border:1px solid rgba(var(--ur-color-on-background), 0.15);background:transparent;border-radius:8px;font-size:14px;text-align:left;cursor:pointer;transition:all 0.2s;overflow:hidden}.poll-option:not(.voted):hover{border-color:rgb(var(--ur-color-primary));background:rgba(var(--ur-color-primary), 0.05)}.poll-option.voted{cursor:default}.poll-option.selected{border-color:rgb(var(--ur-color-primary))}.poll-bar{position:absolute;left:0;top:0;bottom:0;background:rgba(var(--ur-color-primary), 0.12);border-radius:7px;transition:width 0.3s ease}.poll-option.selected .poll-bar{background:rgba(var(--ur-color-primary), 0.2)}.poll-text{position:relative;flex:1;color:rgb(var(--ur-color-on-background));z-index:1}.poll-percentage{position:relative;font-weight:600;font-size:13px;color:rgb(var(--ur-color-on-background));z-index:1}.poll-check{position:relative;color:rgb(var(--ur-color-primary));z-index:1}.poll-meta{font-size:13px;font-weight:400;color:rgba(var(--ur-color-on-background), 0.6)}.stats{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;font-size:14px;color:rgba(var(--ur-color-on-background), 0.6)}.stat-item{display:flex;align-items:center;gap:6px}.stat-item.clickable{cursor:pointer}.stat-item.clickable:hover{text-decoration:underline}.divider{height:1px;background:rgb(var(--ur-color-border));margin:0 16px}.actions{display:flex;align-items:center;padding:8px 12px;gap:8px}.clickable{cursor:pointer}";
|
|
29
|
+
|
|
30
|
+
const UrPostDetail = class {
|
|
31
|
+
constructor(hostRef) {
|
|
32
|
+
registerInstance(this, hostRef);
|
|
33
|
+
this.postDetailEvent = createEvent(this, "postDetailEvent");
|
|
34
|
+
this.ownerType = 'user';
|
|
35
|
+
this.liked = false;
|
|
36
|
+
this.likeCount = 0;
|
|
37
|
+
this.commentCount = 0;
|
|
38
|
+
this.userPollVote = -1;
|
|
39
|
+
this.totalPollVotes = 0;
|
|
40
|
+
this.initialMediaIndex = 0;
|
|
41
|
+
// Text props for i18n
|
|
42
|
+
this.spoilerWarningText = 'Spoiler warning';
|
|
43
|
+
this.showSpoilerText = 'Show anyway';
|
|
44
|
+
this.likeText = 'Like';
|
|
45
|
+
this.likedText = 'Liked';
|
|
46
|
+
this.commentText = 'Comment';
|
|
47
|
+
this.publicText = 'Public';
|
|
48
|
+
this.privateText = 'Private';
|
|
49
|
+
this.followersOnlyText = 'Followers only';
|
|
50
|
+
this.subscribersOnlyText = 'Subscribers only';
|
|
51
|
+
this.votesText = 'votes';
|
|
52
|
+
this.lockedLoginText = 'Sign in to view this post';
|
|
53
|
+
this.lockedFollowText = 'Follow to view this post';
|
|
54
|
+
this.lockedSubscribeText = 'Subscribe to view this post';
|
|
55
|
+
this.lockedTierText = 'Join {tiers} to view this post';
|
|
56
|
+
this.loginBtnText = 'Sign in';
|
|
57
|
+
this.followBtnText = 'Follow';
|
|
58
|
+
this.subscribeBtnText = 'Subscribe';
|
|
59
|
+
this.spoilerRevealed = false;
|
|
60
|
+
this.currentMediaIndex = 0;
|
|
61
|
+
this.handleLikeClick = (e) => {
|
|
62
|
+
e.stopPropagation();
|
|
63
|
+
this.emitEvent('like');
|
|
64
|
+
};
|
|
65
|
+
this.handleCommentClick = (e) => {
|
|
66
|
+
e.stopPropagation();
|
|
67
|
+
this.emitEvent('comment');
|
|
68
|
+
};
|
|
69
|
+
this.handleOwnerClick = (e) => {
|
|
70
|
+
e.stopPropagation();
|
|
71
|
+
this.emitEvent('owner_click');
|
|
72
|
+
};
|
|
73
|
+
this.handleLinkClick = (e) => {
|
|
74
|
+
e.stopPropagation();
|
|
75
|
+
this.emitEvent('link_click');
|
|
76
|
+
};
|
|
77
|
+
this.handlePollVote = (e, optionIndex) => {
|
|
78
|
+
e.stopPropagation();
|
|
79
|
+
if (this.userPollVote === -1) {
|
|
80
|
+
this.emitEvent('poll_vote', { pollOptionIndex: optionIndex });
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
this.handleSpoilerReveal = (e) => {
|
|
84
|
+
e.stopPropagation();
|
|
85
|
+
this.spoilerRevealed = true;
|
|
86
|
+
this.emitEvent('spoiler_reveal');
|
|
87
|
+
};
|
|
88
|
+
this.handleUnlockClick = (e) => {
|
|
89
|
+
var _a;
|
|
90
|
+
e.stopPropagation();
|
|
91
|
+
const lockReason = (_a = this.post) === null || _a === void 0 ? void 0 : _a.lockReason;
|
|
92
|
+
if (lockReason === 'login') {
|
|
93
|
+
this.emitEvent('unlock_login');
|
|
94
|
+
}
|
|
95
|
+
else if (lockReason === 'followers') {
|
|
96
|
+
this.emitEvent('unlock_follow');
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
this.emitEvent('unlock_subscribe');
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
this.handlePrevMedia = () => {
|
|
103
|
+
var _a;
|
|
104
|
+
if ((_a = this.swiperContainer) === null || _a === void 0 ? void 0 : _a.swiper) {
|
|
105
|
+
this.swiperContainer.swiper.slidePrev();
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
this.handleNextMedia = () => {
|
|
109
|
+
var _a;
|
|
110
|
+
if ((_a = this.swiperContainer) === null || _a === void 0 ? void 0 : _a.swiper) {
|
|
111
|
+
this.swiperContainer.swiper.slideNext();
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
onInitialMediaIndexChange(newValue) {
|
|
116
|
+
var _a;
|
|
117
|
+
this.currentMediaIndex = newValue;
|
|
118
|
+
if ((_a = this.swiperContainer) === null || _a === void 0 ? void 0 : _a.swiper) {
|
|
119
|
+
this.swiperContainer.swiper.slideTo(newValue, 0);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
componentDidLoad() {
|
|
123
|
+
this.currentMediaIndex = this.initialMediaIndex || 0;
|
|
124
|
+
this.initSwiper();
|
|
125
|
+
}
|
|
126
|
+
initSwiper() {
|
|
127
|
+
var _a, _b, _c;
|
|
128
|
+
if (!((_b = (_a = this.post) === null || _a === void 0 ? void 0 : _a.media) === null || _b === void 0 ? void 0 : _b.length))
|
|
129
|
+
return;
|
|
130
|
+
this.swiperContainer = (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector('swiper-container');
|
|
131
|
+
if (!this.swiperContainer)
|
|
132
|
+
return;
|
|
133
|
+
// Wait for swiper to initialize
|
|
134
|
+
customElements.whenDefined('swiper-container').then(() => {
|
|
135
|
+
setTimeout(() => {
|
|
136
|
+
var _a;
|
|
137
|
+
if ((_a = this.swiperContainer) === null || _a === void 0 ? void 0 : _a.swiper) {
|
|
138
|
+
this.swiperContainer.swiper.on('slideChange', () => {
|
|
139
|
+
this.currentMediaIndex = this.swiperContainer.swiper.activeIndex;
|
|
140
|
+
this.emitEvent('media_change', { mediaIndex: this.currentMediaIndex });
|
|
141
|
+
});
|
|
142
|
+
// Go to initial slide
|
|
143
|
+
if (this.initialMediaIndex > 0) {
|
|
144
|
+
this.swiperContainer.swiper.slideTo(this.initialMediaIndex, 0);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}, 100);
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
emitEvent(type, options) {
|
|
151
|
+
this.postDetailEvent.emit({
|
|
152
|
+
type,
|
|
153
|
+
post: this.post,
|
|
154
|
+
pollOptionIndex: options === null || options === void 0 ? void 0 : options.pollOptionIndex,
|
|
155
|
+
mediaIndex: options === null || options === void 0 ? void 0 : options.mediaIndex,
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
formatCount(count) {
|
|
159
|
+
if (count >= 1000000) {
|
|
160
|
+
return `${(count / 1000000).toFixed(1)}M`;
|
|
161
|
+
}
|
|
162
|
+
if (count >= 1000) {
|
|
163
|
+
return `${(count / 1000).toFixed(1)}K`;
|
|
164
|
+
}
|
|
165
|
+
return count.toString();
|
|
166
|
+
}
|
|
167
|
+
getAudienceIcon() {
|
|
168
|
+
var _a;
|
|
169
|
+
switch ((_a = this.post) === null || _a === void 0 ? void 0 : _a.audience) {
|
|
170
|
+
case 'public': return 'public';
|
|
171
|
+
case 'private': return 'lock';
|
|
172
|
+
case 'followers': return 'group';
|
|
173
|
+
case 'subscribers': return 'loyalty';
|
|
174
|
+
default: return 'public';
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
getAudienceTooltip() {
|
|
178
|
+
var _a;
|
|
179
|
+
switch ((_a = this.post) === null || _a === void 0 ? void 0 : _a.audience) {
|
|
180
|
+
case 'public': return this.publicText;
|
|
181
|
+
case 'private': return this.privateText;
|
|
182
|
+
case 'followers': return this.followersOnlyText;
|
|
183
|
+
case 'subscribers': return this.subscribersOnlyText;
|
|
184
|
+
default: return this.publicText;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
renderHeader() {
|
|
188
|
+
return (h("div", { class: "header" }, h("div", { class: "owner-info", onClick: this.handleOwnerClick }, h("ur-avatar", { class: "avatar clickable", src: this.ownerImage, name: this.ownerName, size: "40px", variant: this.ownerType }), h("div", { class: "header-text" }, h("span", { class: "owner-name clickable" }, this.ownerName), h("div", { class: "meta-row" }, h("ur-time-ago", { class: "timestamp", date: this.timestamp }), h("span", { class: "meta-separator" }, "\u00B7"), h("ur-tooltip", { content: this.getAudienceTooltip(), placement: "bottom" }, h("ur-icon", { class: "audience-icon", name: this.getAudienceIcon(), size: "14px" })))))));
|
|
189
|
+
}
|
|
190
|
+
renderSpoilerOverlay() {
|
|
191
|
+
return (h("div", { class: "spoiler-overlay" }, h("div", { class: "spoiler-content" }, h("ur-icon", { name: "visibility_off", size: "32px" }), h("span", { class: "spoiler-warning" }, this.spoilerWarningText), h("ur-button", { variant: "outlined", onClick: this.handleSpoilerReveal }, this.showSpoilerText))));
|
|
192
|
+
}
|
|
193
|
+
getLockedMessage() {
|
|
194
|
+
var _a, _b, _c;
|
|
195
|
+
const lockReason = (_a = this.post) === null || _a === void 0 ? void 0 : _a.lockReason;
|
|
196
|
+
if (lockReason === 'login')
|
|
197
|
+
return this.lockedLoginText;
|
|
198
|
+
if (lockReason === 'followers')
|
|
199
|
+
return this.lockedFollowText;
|
|
200
|
+
if (lockReason === 'tier' && ((_c = (_b = this.post) === null || _b === void 0 ? void 0 : _b.requiredTierNames) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
201
|
+
return this.lockedTierText.replace('{tiers}', this.post.requiredTierNames.join(' or '));
|
|
202
|
+
}
|
|
203
|
+
return this.lockedSubscribeText;
|
|
204
|
+
}
|
|
205
|
+
getUnlockButtonText() {
|
|
206
|
+
var _a;
|
|
207
|
+
const lockReason = (_a = this.post) === null || _a === void 0 ? void 0 : _a.lockReason;
|
|
208
|
+
if (lockReason === 'login')
|
|
209
|
+
return this.loginBtnText;
|
|
210
|
+
if (lockReason === 'followers')
|
|
211
|
+
return this.followBtnText;
|
|
212
|
+
return this.subscribeBtnText;
|
|
213
|
+
}
|
|
214
|
+
renderLockedOverlay() {
|
|
215
|
+
return (h("div", { class: "locked-overlay" }, h("div", { class: "locked-content" }, h("ur-icon", { name: "lock", size: "32px" }), h("span", { class: "locked-message" }, this.getLockedMessage()), h("ur-button", { variant: "filled", onClick: this.handleUnlockClick }, this.getUnlockButtonText()))));
|
|
216
|
+
}
|
|
217
|
+
renderTextContent() {
|
|
218
|
+
return (h("div", { class: "text-content" }, this.post.title && h("h3", { class: "post-title" }, this.post.title), this.post.body && h("p", { class: "post-body" }, this.post.body)));
|
|
219
|
+
}
|
|
220
|
+
renderLinkContent() {
|
|
221
|
+
return (h("div", { class: "link-content" }, this.post.title && h("h3", { class: "post-title" }, this.post.title), this.post.body && h("p", { class: "post-body" }, this.post.body), h("a", { class: "link-preview", href: this.post.linkUrl, target: "_blank", rel: "noopener noreferrer", onClick: this.handleLinkClick }, h("ur-icon", { name: "link", size: "16px" }), h("span", { class: "link-url" }, this.post.linkUrl), h("ur-icon", { name: "open_in_new", size: "14px" }))));
|
|
222
|
+
}
|
|
223
|
+
renderMediaContent() {
|
|
224
|
+
const hasMedia = this.post.media && this.post.media.length > 0;
|
|
225
|
+
const hasMultipleMedia = this.post.media && this.post.media.length > 1;
|
|
226
|
+
return (h("div", { class: "media-content" }, this.post.title && h("h3", { class: "post-title" }, this.post.title), hasMedia && (h("div", { class: "media-carousel-container" }, h("swiper-container", { init: true, "slides-per-view": 1, "space-between": 0, pagination: true, "pagination-clickable": true }, this.post.media.map((media, index) => (h("swiper-slide", { key: index }, h("div", { class: "media-slide" }, media.type === 'image' ? (h("img", { src: media.url, alt: "", loading: "lazy" })) : (h("video", { src: media.url, controls: true, class: "video-player" }))))))), hasMultipleMedia && (h("div", { class: "media-navigation" }, h("button", { class: "nav-button prev", onClick: this.handlePrevMedia, disabled: this.currentMediaIndex === 0 }, h("ur-icon", { name: "chevron_left", size: "24px" })), h("button", { class: "nav-button next", onClick: this.handleNextMedia, disabled: this.currentMediaIndex === this.post.media.length - 1 }, h("ur-icon", { name: "chevron_right", size: "24px" })))))), this.post.body && h("p", { class: "post-body" }, this.post.body)));
|
|
227
|
+
}
|
|
228
|
+
renderPollContent() {
|
|
229
|
+
var _a;
|
|
230
|
+
const hasVoted = this.userPollVote !== -1;
|
|
231
|
+
const hasPollResults = this.post.pollResults && this.post.pollResults.length > 0;
|
|
232
|
+
const totalVotes = hasPollResults
|
|
233
|
+
? this.post.pollResults.reduce((sum, r) => sum + r.count, 0)
|
|
234
|
+
: this.totalPollVotes;
|
|
235
|
+
return (h("div", { class: "poll-content" }, this.post.title && h("h3", { class: "post-title" }, this.post.title), h("div", { class: "poll-options" }, (_a = this.post.pollOptions) === null || _a === void 0 ? void 0 : _a.map((option, index) => {
|
|
236
|
+
const result = hasPollResults
|
|
237
|
+
? this.post.pollResults.find(r => r.index === index)
|
|
238
|
+
: null;
|
|
239
|
+
const votes = result ? result.count : (option.votes || 0);
|
|
240
|
+
const percentage = result
|
|
241
|
+
? result.percentage
|
|
242
|
+
: (totalVotes > 0 ? Math.round((votes / totalVotes) * 100) : 0);
|
|
243
|
+
const isSelected = this.userPollVote === index;
|
|
244
|
+
return (h("button", { class: {
|
|
245
|
+
'poll-option': true,
|
|
246
|
+
'voted': hasVoted,
|
|
247
|
+
'selected': isSelected,
|
|
248
|
+
}, onClick: (e) => this.handlePollVote(e, index), disabled: hasVoted, key: index }, hasVoted && (h("div", { class: "poll-bar", style: { width: `${percentage}%` } })), h("span", { class: "poll-text" }, option.text), hasVoted && (h("span", { class: "poll-percentage" }, percentage, "%")), isSelected && (h("ur-icon", { name: "check_circle", size: "16px", class: "poll-check" }))));
|
|
249
|
+
})), h("div", { class: "poll-meta" }, h("span", null, totalVotes, " ", this.votesText))));
|
|
250
|
+
}
|
|
251
|
+
renderLockedContent() {
|
|
252
|
+
return (h("div", { class: "locked-placeholder" }, this.post.title && h("h3", { class: "post-title" }, this.post.title), h("div", { class: "locked-placeholder-body" }, h("div", { class: "placeholder-line" }), h("div", { class: "placeholder-line" }), h("div", { class: "placeholder-line short" }))));
|
|
253
|
+
}
|
|
254
|
+
renderContent() {
|
|
255
|
+
var _a, _b, _c, _d, _e, _f;
|
|
256
|
+
const showSpoiler = ((_a = this.post) === null || _a === void 0 ? void 0 : _a.isSpoiler) && !this.spoilerRevealed;
|
|
257
|
+
const isLocked = ((_b = this.post) === null || _b === void 0 ? void 0 : _b.locked) === true;
|
|
258
|
+
if (isLocked) {
|
|
259
|
+
return (h("div", { class: "content blurred" }, this.renderLockedContent(), this.renderLockedOverlay()));
|
|
260
|
+
}
|
|
261
|
+
return (h("div", { class: { 'content': true, 'blurred': showSpoiler } }, ((_c = this.post) === null || _c === void 0 ? void 0 : _c.type) === 'text' && this.renderTextContent(), ((_d = this.post) === null || _d === void 0 ? void 0 : _d.type) === 'link' && this.renderLinkContent(), ((_e = this.post) === null || _e === void 0 ? void 0 : _e.type) === 'media' && this.renderMediaContent(), ((_f = this.post) === null || _f === void 0 ? void 0 : _f.type) === 'poll' && this.renderPollContent(), showSpoiler && this.renderSpoilerOverlay()));
|
|
262
|
+
}
|
|
263
|
+
renderStats() {
|
|
264
|
+
return (h("div", { class: "stats" }, this.likeCount > 0 && (h("span", { class: "stat-item" }, h("ur-icon", { name: "thumb_up", size: "16px" }), this.formatCount(this.likeCount))), this.commentCount > 0 && (h("span", { class: "stat-item clickable", onClick: this.handleCommentClick }, this.formatCount(this.commentCount), " comments"))));
|
|
265
|
+
}
|
|
266
|
+
renderActions() {
|
|
267
|
+
const defaultColor = 'rgba(var(--ur-color-on-background), 0.7)';
|
|
268
|
+
const activeColor = 'rgb(var(--ur-color-primary))';
|
|
269
|
+
return (h("div", { class: "actions" }, h("ur-button", { variant: "text", icon: this.liked ? 'thumb_up' : 'thumb_up--outlined', color: this.liked ? activeColor : defaultColor, fullWidth: true, onClick: this.handleLikeClick }, this.liked ? this.likedText : this.likeText), h("ur-button", { variant: "text", icon: "comment--outlined", color: defaultColor, fullWidth: true, onClick: this.handleCommentClick }, this.commentText)));
|
|
270
|
+
}
|
|
271
|
+
render() {
|
|
272
|
+
if (!this.post) {
|
|
273
|
+
return null;
|
|
274
|
+
}
|
|
275
|
+
return (h(Host, null, h("div", { class: "post-detail" }, this.renderHeader(), this.renderContent(), this.renderStats(), h("div", { class: "divider" }), this.renderActions(), h("div", { class: "divider" }))));
|
|
276
|
+
}
|
|
277
|
+
get el() { return getElement(this); }
|
|
278
|
+
static get watchers() { return {
|
|
279
|
+
"initialMediaIndex": ["onInitialMediaIndexChange"]
|
|
280
|
+
}; }
|
|
281
|
+
};
|
|
282
|
+
UrPostDetail.style = urPostDetailCss;
|
|
283
|
+
|
|
284
|
+
export { UrPostDetail as ur_post_detail };
|