@designbasekorea/ui-wc 0.8.7 → 0.8.9

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.
Files changed (98) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +5 -1
  3. package/dist/esm/components/animation-background/controls.js +1 -1
  4. package/dist/esm/components/animation-background/layers.js +1 -1
  5. package/dist/esm/components/db-accordion.js +1 -1
  6. package/dist/esm/components/db-activity-heatmap.js +1 -1
  7. package/dist/esm/components/db-ad-banner.js +1 -1
  8. package/dist/esm/components/db-ai-chat.d.ts +2 -1
  9. package/dist/esm/components/db-ai-chat.js +1 -1
  10. package/dist/esm/components/db-alert.js +1 -1
  11. package/dist/esm/components/db-animation-background.js +1 -1
  12. package/dist/esm/components/db-animation-text.js +1 -1
  13. package/dist/esm/components/db-app-badge.js +1 -1
  14. package/dist/esm/components/db-audio-player.js +1 -1
  15. package/dist/esm/components/db-badge.js +1 -1
  16. package/dist/esm/components/db-banner.js +1 -1
  17. package/dist/esm/components/db-breadcrumbs.js +1 -1
  18. package/dist/esm/components/db-button.d.ts +2 -0
  19. package/dist/esm/components/db-button.js +1 -1
  20. package/dist/esm/components/db-carousel.js +1 -1
  21. package/dist/esm/components/db-chat-message.js +1 -1
  22. package/dist/esm/components/db-chat-orb.js +1 -1
  23. package/dist/esm/components/db-chat-room.d.ts +1 -0
  24. package/dist/esm/components/db-chat-room.js +1 -1
  25. package/dist/esm/components/db-checkbox.js +1 -1
  26. package/dist/esm/components/db-color-picker.js +1 -1
  27. package/dist/esm/components/db-color-swatch.js +1 -1
  28. package/dist/esm/components/db-confirm.js +1 -1
  29. package/dist/esm/components/db-cookie-banner.js +1 -1
  30. package/dist/esm/components/db-countdown.js +1 -1
  31. package/dist/esm/components/db-dropzone.js +1 -1
  32. package/dist/esm/components/db-email-verify.js +1 -1
  33. package/dist/esm/components/db-empty-state.js +1 -1
  34. package/dist/esm/components/db-footer.js +1 -1
  35. package/dist/esm/components/db-gradient.js +1 -1
  36. package/dist/esm/components/db-icons.d.ts +1 -1
  37. package/dist/esm/components/db-icons.js +1 -1
  38. package/dist/esm/components/db-kanban.d.ts +0 -1
  39. package/dist/esm/components/db-kanban.js +1 -1
  40. package/dist/esm/components/db-label.js +1 -1
  41. package/dist/esm/components/db-list.js +1 -1
  42. package/dist/esm/components/db-logo-svg.js +1 -1
  43. package/dist/esm/components/db-logo.js +1 -1
  44. package/dist/esm/components/db-markdown-editor.js +1 -1
  45. package/dist/esm/components/db-marquee.js +1 -1
  46. package/dist/esm/components/db-menu-item.js +1 -1
  47. package/dist/esm/components/db-navbar.js +1 -1
  48. package/dist/esm/components/db-otp-input.js +1 -1
  49. package/dist/esm/components/db-page-header.d.ts +1 -0
  50. package/dist/esm/components/db-page-header.js +1 -1
  51. package/dist/esm/components/db-pagination.js +1 -1
  52. package/dist/esm/components/db-phone-verify.js +1 -1
  53. package/dist/esm/components/db-progress-step.js +1 -1
  54. package/dist/esm/components/db-random-gradient.js +1 -1
  55. package/dist/esm/components/db-range-slider.d.ts +0 -1
  56. package/dist/esm/components/db-range-slider.js +1 -1
  57. package/dist/esm/components/db-rating.js +1 -1
  58. package/dist/esm/components/db-reorder.js +1 -1
  59. package/dist/esm/components/db-section-app-download.js +1 -1
  60. package/dist/esm/components/db-section-contact.js +1 -1
  61. package/dist/esm/components/db-section-cta.js +1 -1
  62. package/dist/esm/components/db-section-faq.js +1 -1
  63. package/dist/esm/components/db-section-feature-grid.js +1 -1
  64. package/dist/esm/components/db-section-feature.js +1 -1
  65. package/dist/esm/components/db-section-hero.js +1 -1
  66. package/dist/esm/components/db-section-logo-cloud.js +1 -1
  67. package/dist/esm/components/db-section-pricing.js +1 -1
  68. package/dist/esm/components/db-section-stats.js +1 -1
  69. package/dist/esm/components/db-section-testimonials.js +1 -1
  70. package/dist/esm/components/db-section.js +1 -1
  71. package/dist/esm/components/db-share-icons.js +1 -1
  72. package/dist/esm/components/db-share.d.ts +3 -0
  73. package/dist/esm/components/db-share.js +1 -1
  74. package/dist/esm/components/db-sidebar.js +1 -1
  75. package/dist/esm/components/db-signature.js +1 -1
  76. package/dist/esm/components/db-tabs.js +1 -1
  77. package/dist/esm/components/db-timeline.js +1 -1
  78. package/dist/esm/components/db-toast.js +1 -1
  79. package/dist/esm/components/db-toolbar.js +1 -1
  80. package/dist/esm/components/db-two-factor.js +1 -1
  81. package/dist/esm/components/db-video-player.js +1 -1
  82. package/dist/esm/components/db-youtube-player.js +1 -1
  83. package/dist/esm/components/section-block-header-utils.js +1 -1
  84. package/dist/esm/core/safe-html.d.ts +4 -0
  85. package/dist/esm/core/safe-html.js +1 -0
  86. package/dist/esm/core/safe-url.d.ts +3 -0
  87. package/dist/esm/core/safe-url.js +1 -0
  88. package/dist/esm/index.d.ts +2 -0
  89. package/dist/esm/index.js +1 -1
  90. package/dist/esm/node_modules/@designbasekorea/ui-contracts/dist/components.js +1 -1
  91. package/dist/index.cjs +1 -1
  92. package/dist/index.css +1 -1
  93. package/dist/index.d.ts +16 -5
  94. package/dist/index.esm.js +1 -1
  95. package/dist/react/index.cjs +1 -1
  96. package/dist/react/index.d.ts +10 -4
  97. package/dist/react/index.esm.js +1 -1
  98. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -232,6 +232,11 @@ declare function t(key: DbStringKey | string, fallback?: string): string;
232
232
  */
233
233
  declare function labelFrom(el: Element, attribute: string, key: DbStringKey | string): string;
234
234
 
235
+ declare function sanitizeHref(value: string | null | undefined, fallback?: string): string;
236
+
237
+ /** 외부/저장 콘텐츠를 Light DOM에 넣기 전 허용 목록으로 정제합니다. */
238
+ declare function sanitizeHtmlFragment(value: string | null | undefined): DocumentFragment;
239
+
235
240
  /**
236
241
  * 선택적 베이스 클래스.
237
242
  *
@@ -293,6 +298,8 @@ declare class DbButton extends HTMLElement {
293
298
  set accentStyle(value: string);
294
299
  get type(): string;
295
300
  set type(value: string);
301
+ get href(): string;
302
+ set href(value: string);
296
303
  get loadingText(): string;
297
304
  set loadingText(value: string);
298
305
  get disabled(): boolean;
@@ -1662,6 +1669,9 @@ declare class DbShare extends HTMLElement {
1662
1669
  private dropdownEl;
1663
1670
  connectedCallback(): void;
1664
1671
  disconnectedCallback(): void;
1672
+ private getVariant;
1673
+ private getSize;
1674
+ private getPosition;
1665
1675
  attributeChangedCallback(name: string): void;
1666
1676
  get open(): boolean;
1667
1677
  set open(value: boolean);
@@ -2413,7 +2423,6 @@ declare class DbRangeSlider extends HTMLElement {
2413
2423
  private boundTrackClick;
2414
2424
  private boundPointerMove;
2415
2425
  private boundPointerUp;
2416
- private boundContainerKeyDown;
2417
2426
  private eventsBound;
2418
2427
  connectedCallback(): void;
2419
2428
  disconnectedCallback(): void;
@@ -2733,6 +2742,7 @@ declare class DbPageHeader extends HTMLElement {
2733
2742
  private getAlign;
2734
2743
  private handleBack;
2735
2744
  private handleTabChange;
2745
+ private collectLeading;
2736
2746
  private collectActions;
2737
2747
  private collectMeta;
2738
2748
  private renderMinimalAside;
@@ -3631,7 +3641,6 @@ declare class DbKanban extends HTMLElement {
3631
3641
  disconnectedCallback(): void;
3632
3642
  attributeChangedCallback(): void;
3633
3643
  private getBool;
3634
- private getOption;
3635
3644
  private emitChange;
3636
3645
  private emitCardMove;
3637
3646
  private findCardLocation;
@@ -5283,7 +5292,7 @@ declare global {
5283
5292
  }
5284
5293
  }
5285
5294
 
5286
- type DbIconName = 'arrow-bar-left' | 'arrow-bar-right' | 'award' | 'apple' | 'play-store' | 'arrow-right' | 'star' | 'star-filled' | 'star-half' | 'trending-up' | 'cart' | 'bell-active' | 'caret-down-filled' | 'caret-updown-filled' | 'chevron-down' | 'chevron-up' | 'chevron-left' | 'chevron-right' | 'calendar' | 'camera' | 'clock' | 'bulb' | 'circle-checked' | 'cloud-close' | 'close' | 'done' | 'documentation' | 'doughnut-chart' | 'download' | 'error-filled' | 'edit' | 'eyedropper' | 'file-new' | 'folder-open' | 'gallery' | 'globe' | 'hide' | 'info-filled' | 'lock' | 'mail' | 'microphone' | 'minus' | 'moon' | 'more-vertical' | 'paperclip' | 'pause' | 'play' | 'plus' | 'copy' | 'code' | 'write' | 'upload' | 'video' | 'volume-up' | 'mute-filled' | 'package' | 'delivery-filled' | 'repeat' | 'settings' | 'refresh' | 'expand' | 'shrink' | 'grip-vertical' | 'grip-horizontal' | 'search' | 'send' | 'share-alt' | 'show' | 'sparkle' | 'stop' | 'sun' | 'thumb-down' | 'thumb-up' | 'trash' | 'user' | 'warning-filled';
5295
+ type DbIconName = 'arrow-bar-left' | 'arrow-bar-right' | 'award' | 'apple' | 'play-store' | 'arrow-right' | 'star' | 'star-filled' | 'star-half' | 'trending-up' | 'cart' | 'bell-active' | 'caret-down-filled' | 'caret-updown-filled' | 'chevron-down' | 'chevron-up' | 'chevron-left' | 'chevron-right' | 'calendar' | 'camera' | 'clock' | 'bulb' | 'circle-checked' | 'cloud-close' | 'close' | 'done' | 'documentation' | 'doughnut-chart' | 'download' | 'error-filled' | 'edit' | 'eyedropper' | 'file-new' | 'folder-open' | 'gallery' | 'globe' | 'hide' | 'info-filled' | 'lock' | 'mail' | 'menu' | 'microphone' | 'minus' | 'moon' | 'more-vertical' | 'paperclip' | 'pause' | 'play' | 'plus' | 'copy' | 'code' | 'write' | 'upload' | 'video' | 'volume-up' | 'mute-filled' | 'package' | 'delivery-filled' | 'repeat' | 'settings' | 'refresh' | 'expand' | 'shrink' | 'grip-vertical' | 'grip-horizontal' | 'search' | 'send' | 'share-alt' | 'show' | 'sparkle' | 'stop' | 'sun' | 'thumb-down' | 'thumb-up' | 'trash' | 'user' | 'warning-filled';
5287
5296
 
5288
5297
  interface DbChatTool {
5289
5298
  /** 고유 id (이벤트 detail 로 전달) */
@@ -5704,7 +5713,8 @@ interface DbArtifactOptions {
5704
5713
  title?: string;
5705
5714
  /** 헤더 부제(선택) */
5706
5715
  subtitle?: string;
5707
- /** 본문 HTML (setArtifactContent 로 요소를 직접 넣을 수도 있음) */
5716
+ /** 허용 목록으로 정제할 본문 HTML (직접 요소를 넣으려면 setArtifactContent 사용) */
5717
+ /** 허용 목록으로 정제할 HTML 본문 (text 대신) */
5708
5718
  html?: string;
5709
5719
  /** 인라인 카드와 동기화할 id (toggle 용) */
5710
5720
  id?: string;
@@ -5937,6 +5947,7 @@ interface DbChatRoomMessage {
5937
5947
  /** 내가 보낸 메시지면 true(우측 정렬). 아니면 상대(좌측) */
5938
5948
  mine?: boolean;
5939
5949
  text?: string;
5950
+ /** 허용 목록으로 정제할 HTML 본문 (text 대신) */
5940
5951
  html?: string;
5941
5952
  time?: string;
5942
5953
  /** 상대 이름(그룹 채팅에서 유용) */
@@ -6085,5 +6096,5 @@ interface DbConfirmOptions {
6085
6096
  /** 확인 대화상자를 띄우고, 확인 시 true / 취소(ESC·배경 포함) 시 false 로 resolve 합니다. */
6086
6097
  declare function confirm(options: DbConfirmOptions): Promise<boolean>;
6087
6098
 
6088
- export { CleanupBag, DbAccordion, DbActivityHeatmap, DbAdBanner, DbAiChat, DbAiChatList, DbAlert, DbAnimationBackground, DbAnimationText, DbAppBadge, DbAudioPlayer, DbAvatar, DbBackdrop, DbBadge, DbBanner, DbBottomNavigation, DbBottomSheet, DbBreadcrumbs, DbButton, DbCalendar, DbCard, DbCarousel, DbChatComposer, DbChatList, DbChatMessage, DbChatOrb, DbChatRoom, DbChatSuggestions, DbChatTyping, DbChatWelcome, DbChatWidget, DbCheckbox, DbChip, DbCodeBlock, DbColorPicker, DbColorSwatch, DbConfirm, DbContainer, DbContextMenu, DbCookieBanner, DbCountdown, DbCursorFollower, DbDatePicker, DbDivider, DbDownloadProgress, DbDrawer, DbDropdown, DbDropzone, DbElement, DbEmailVerify, DbEmptyState, DbFileUploader, DbFloatingActionButton, DbFooter, DbForm, DbGantt, DbGradient, DbGrid, DbGridBackground, DbGridItem, DbImage, DbImageList, DbImagePlaceholder, DbIndicator, DbInput, DbKanban, DbLabel, DbLightbox, DbList, DbLogo, DbMarkdownEditor, DbMarquee, DbMasonry, DbMenuItem, DbModal, DbNavbar, DbOnboardingModal, DbOtpInput, DbPageHeader, DbPagination, DbPhoneVerify, DbPopover, DbProgress, DbProgressStep, DbProgressbar, DbRadio, DbRandomGradient, DbRangeSlider, DbRating, DbReorder, DbResizablePanels, DbScrollArea, DbSearchBar, DbSection, DbSectionAppDownload, DbSectionContact, DbSectionCta, DbSectionFaq, DbSectionFeature, DbSectionFeatureGrid, DbSectionHero, DbSectionLogoCloud, DbSectionPricing, DbSectionStats, DbSectionTestimonials, DbSegmentControl, DbSelect, DbShare, DbSidebar, DbSignature, DbSkeleton, DbSpinner, DbSplitView, DbStack, DbStat, DbStepper, DbTable, DbTabs, DbTestimonial, DbTextarea, DbTimePicker, DbTimeline, DbToast, DbToggle, DbToolbar, DbTooltip, DbTopBanner, DbTutorial, DbTwoFactor, DbVideoPlayer, DbYouTubePlayer, activateOnKey, announce, confirm, createFocusTrap, createSrOnly, confirm as dbConfirm, dbResetLocale, dbSetLocale, toast as dbToast, dbUid, ensureId, getTabbables, labelFrom, lockScroll, politenessForTone, rafThrottle, scrollLockDepth, setAccessibleName, showToast, t, toast, unlockScroll };
6099
+ export { CleanupBag, DbAccordion, DbActivityHeatmap, DbAdBanner, DbAiChat, DbAiChatList, DbAlert, DbAnimationBackground, DbAnimationText, DbAppBadge, DbAudioPlayer, DbAvatar, DbBackdrop, DbBadge, DbBanner, DbBottomNavigation, DbBottomSheet, DbBreadcrumbs, DbButton, DbCalendar, DbCard, DbCarousel, DbChatComposer, DbChatList, DbChatMessage, DbChatOrb, DbChatRoom, DbChatSuggestions, DbChatTyping, DbChatWelcome, DbChatWidget, DbCheckbox, DbChip, DbCodeBlock, DbColorPicker, DbColorSwatch, DbConfirm, DbContainer, DbContextMenu, DbCookieBanner, DbCountdown, DbCursorFollower, DbDatePicker, DbDivider, DbDownloadProgress, DbDrawer, DbDropdown, DbDropzone, DbElement, DbEmailVerify, DbEmptyState, DbFileUploader, DbFloatingActionButton, DbFooter, DbForm, DbGantt, DbGradient, DbGrid, DbGridBackground, DbGridItem, DbImage, DbImageList, DbImagePlaceholder, DbIndicator, DbInput, DbKanban, DbLabel, DbLightbox, DbList, DbLogo, DbMarkdownEditor, DbMarquee, DbMasonry, DbMenuItem, DbModal, DbNavbar, DbOnboardingModal, DbOtpInput, DbPageHeader, DbPagination, DbPhoneVerify, DbPopover, DbProgress, DbProgressStep, DbProgressbar, DbRadio, DbRandomGradient, DbRangeSlider, DbRating, DbReorder, DbResizablePanels, DbScrollArea, DbSearchBar, DbSection, DbSectionAppDownload, DbSectionContact, DbSectionCta, DbSectionFaq, DbSectionFeature, DbSectionFeatureGrid, DbSectionHero, DbSectionLogoCloud, DbSectionPricing, DbSectionStats, DbSectionTestimonials, DbSegmentControl, DbSelect, DbShare, DbSidebar, DbSignature, DbSkeleton, DbSpinner, DbSplitView, DbStack, DbStat, DbStepper, DbTable, DbTabs, DbTestimonial, DbTextarea, DbTimePicker, DbTimeline, DbToast, DbToggle, DbToolbar, DbTooltip, DbTopBanner, DbTutorial, DbTwoFactor, DbVideoPlayer, DbYouTubePlayer, activateOnKey, announce, confirm, createFocusTrap, createSrOnly, confirm as dbConfirm, dbResetLocale, dbSetLocale, toast as dbToast, dbUid, ensureId, getTabbables, labelFrom, lockScroll, politenessForTone, rafThrottle, sanitizeHref, sanitizeHtmlFragment, scrollLockDepth, setAccessibleName, showToast, t, toast, unlockScroll };
6089
6100
  export type { CalendarEventData, CalendarEventType, Cleanup, DbActivityHeatmapCellDetail, DbActivityHeatmapItem, DbAiChatItem, DbAlertAction, DbArtifactOptions, DbBannerAction, DbBottomNavigationItem, DbChatArtifactRef, DbChatAttachOption, DbChatListItem, DbChatMessageAttachment, DbChatMessageData, DbChatRoomMessage, DbChatSuggestion, DbChatTool, DbChatWidgetArticle, DbChatWidgetConversation, DbChatWidgetMenuAction, DbChatWidgetMenuItem, DbChatWidgetMessage, DbColorSwatchCustomType, DbColorSwatchItem, DbColorSwatchShape, DbColorSwatchSize, DbConfirmOptions, DbConfirmVariant, DbFooterCompanyInfo, DbFooterFamilySite, DbFooterLink, DbFooterLinkColumn, DbFooterSocialLink, DbFormFieldData, DbGanttAssignee, DbGanttGroup, DbGanttItem, DbGanttItemStatus, DbGanttRow, DbImageListItem, DbKanbanAssignee, DbKanbanCard, DbKanbanColumn, DbKanbanPriority, DbKanbanTag, DbLightboxImage, DbNavbarItem, DbNavbarUserProfile, DbPageHeaderTabItem, DbSharePlatform, DbShareVariant, DbSidebarItem, DbSidebarProject, DbSidebarPromoBanner, DbSidebarSection, DbSidebarUserProfile, DbSignaturePoint, DbSignatureVariant, DbStatChange, DbStringKey, DbStrings, DbTimelineItem, DbToastApi, DbToastHandle, DbToastOptions, FocusTrap, FocusTrapOptions };