@designbasekorea/ui-wc 0.8.9 → 0.8.11
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/CHANGELOG.md +19 -0
- package/dist/esm/components/db-ai-glow.d.ts +80 -0
- package/dist/esm/components/db-ai-glow.js +1 -0
- package/dist/esm/components/db-time-picker.d.ts +9 -0
- package/dist/esm/components/db-time-picker.js +1 -1
- package/dist/esm/components/db-toggle.d.ts +2 -0
- package/dist/esm/components/db-toggle.js +1 -1
- package/dist/esm/core/voice-meter.js +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/node_modules/@designbasekorea/ui-contracts/dist/components.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +89 -2
- package/dist/index.esm.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.ts +175 -4
- package/dist/react/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BadgeVariant, BadgeType, TIME_PICKER_FORMATS, DOWNLOAD_PROGRESS_STATUSES, DOWNLOAD_PROGRESS_POSITIONS, OTP_INPUT_SIZES, PHONE_VERIFY_SIZES, EMAIL_VERIFY_SIZES, TWO_FACTOR_SIZES, CHAT_ORB_SIZES, CHAT_ORB_VARIANTS, CHAT_ORB_STATES, CHAT_ORB_THEMES, CHAT_MESSAGE_ROLES, CHAT_WIDGET_VIEWS, CHAT_WIDGET_POSITIONS, ToastVariant, ToastPosition } from '@designbasekorea/ui-contracts';
|
|
1
|
+
import { BadgeVariant, BadgeType, TIME_PICKER_FORMATS, DOWNLOAD_PROGRESS_STATUSES, DOWNLOAD_PROGRESS_POSITIONS, OTP_INPUT_SIZES, PHONE_VERIFY_SIZES, EMAIL_VERIFY_SIZES, TWO_FACTOR_SIZES, AI_GLOW_STATES, AI_GLOW_VARIANTS, AI_GLOW_SIZES, CHAT_ORB_SIZES, CHAT_ORB_VARIANTS, CHAT_ORB_STATES, CHAT_ORB_THEMES, CHAT_MESSAGE_ROLES, CHAT_WIDGET_VIEWS, CHAT_WIDGET_POSITIONS, ToastVariant, ToastPosition } from '@designbasekorea/ui-contracts';
|
|
2
2
|
export { ToastPosition as DbToastPosition, ToastVariant as DbToastVariant } from '@designbasekorea/ui-contracts';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -467,6 +467,8 @@ declare class DbToggle extends HTMLElement {
|
|
|
467
467
|
set readOnly(value: boolean);
|
|
468
468
|
get size(): string;
|
|
469
469
|
set size(value: string);
|
|
470
|
+
get variant(): string;
|
|
471
|
+
set variant(value: string);
|
|
470
472
|
connectedCallback(): void;
|
|
471
473
|
attributeChangedCallback(): void;
|
|
472
474
|
formResetCallback(): void;
|
|
@@ -3146,6 +3148,8 @@ declare class DbTimePicker extends HTMLElement {
|
|
|
3146
3148
|
private tempSeconds;
|
|
3147
3149
|
private tempPeriod;
|
|
3148
3150
|
private boundDocumentMouseDown;
|
|
3151
|
+
private boundViewportChange;
|
|
3152
|
+
private viewportChangeFrame;
|
|
3149
3153
|
connectedCallback(): void;
|
|
3150
3154
|
disconnectedCallback(): void;
|
|
3151
3155
|
/** 열린 드롭다운은 Escape 로 닫히고 포커스는 트리거로 돌아간다 (A11Y-ESCAPE) */
|
|
@@ -3160,6 +3164,10 @@ declare class DbTimePicker extends HTMLElement {
|
|
|
3160
3164
|
private get is12h();
|
|
3161
3165
|
private get showSeconds();
|
|
3162
3166
|
private get minuteStep();
|
|
3167
|
+
private get normalizedSize();
|
|
3168
|
+
private get dropdownPosition();
|
|
3169
|
+
/** CSS wheel item 높이와 스크롤 계산을 같은 값으로 유지한다. */
|
|
3170
|
+
private get itemHeight();
|
|
3163
3171
|
get disabled(): boolean;
|
|
3164
3172
|
set disabled(value: boolean);
|
|
3165
3173
|
get readonly(): boolean;
|
|
@@ -3178,6 +3186,9 @@ declare class DbTimePicker extends HTMLElement {
|
|
|
3178
3186
|
private closePicker;
|
|
3179
3187
|
private toggleOpen;
|
|
3180
3188
|
private handleDocumentMouseDown;
|
|
3189
|
+
private handleViewportChange;
|
|
3190
|
+
/** 드롭다운을 body에 고정해 overflow-hidden 컬럼에서도 잘리지 않게 한다. */
|
|
3191
|
+
private positionDropdown;
|
|
3181
3192
|
private createWheel;
|
|
3182
3193
|
private renderSelector;
|
|
3183
3194
|
private render;
|
|
@@ -5169,6 +5180,82 @@ declare global {
|
|
|
5169
5180
|
}
|
|
5170
5181
|
}
|
|
5171
5182
|
|
|
5183
|
+
type GlowSize = (typeof AI_GLOW_SIZES)[number];
|
|
5184
|
+
type GlowState = (typeof AI_GLOW_STATES)[number];
|
|
5185
|
+
type GlowVariant = (typeof AI_GLOW_VARIANTS)[number];
|
|
5186
|
+
/**
|
|
5187
|
+
* AI 가 생각·작업·청취 중임을 알리는 테두리 글로우.
|
|
5188
|
+
* iOS Siri·브라우저 에이전트처럼 가장자리 안쪽으로 여러 색 그라데이션이 번지며 흐른다.
|
|
5189
|
+
* 콘텐츠 위에 떠 있지만 `pointer-events: none` 이라 조작을 막지 않는다.
|
|
5190
|
+
*
|
|
5191
|
+
* 기본은 뷰포트 전체(`position: fixed`). `contained` 를 주면 가장 가까운 positioned 조상 안에만
|
|
5192
|
+
* 깔리고 모서리 둥글기도 부모를 따른다 — 부모에 `position: relative` 가 필요하다.
|
|
5193
|
+
*
|
|
5194
|
+
* `state="listening"` 은 음성 반응 모드다. `audioStream`(마이크 MediaStream) 또는
|
|
5195
|
+
* `voice-level`(0–1) 을 넣으면 소리 크기에 맞춰 빛의 두께·밝기가 출렁인다.
|
|
5196
|
+
* 둘 다 없으면 청취 중임을 알 수 있도록 말하는 듯한 잔잔한 움직임으로 대신한다.
|
|
5197
|
+
*
|
|
5198
|
+
* @example
|
|
5199
|
+
* <db-ai-glow active></db-ai-glow>
|
|
5200
|
+
*
|
|
5201
|
+
* @example
|
|
5202
|
+
* const glow = document.querySelector('db-ai-glow');
|
|
5203
|
+
* glow.state = 'listening';
|
|
5204
|
+
* glow.audioStream = await navigator.mediaDevices.getUserMedia({ audio: true });
|
|
5205
|
+
* glow.active = true;
|
|
5206
|
+
*/
|
|
5207
|
+
declare class DbAiGlow extends DbElement {
|
|
5208
|
+
static get observedAttributes(): string[];
|
|
5209
|
+
private status;
|
|
5210
|
+
private readonly meter;
|
|
5211
|
+
private inputStream;
|
|
5212
|
+
private rafId;
|
|
5213
|
+
private lastFrame;
|
|
5214
|
+
private startedAt;
|
|
5215
|
+
private level;
|
|
5216
|
+
get active(): boolean;
|
|
5217
|
+
set active(value: boolean);
|
|
5218
|
+
get state(): GlowState;
|
|
5219
|
+
set state(value: GlowState);
|
|
5220
|
+
get variant(): GlowVariant;
|
|
5221
|
+
set variant(value: GlowVariant);
|
|
5222
|
+
get size(): GlowSize;
|
|
5223
|
+
set size(value: GlowSize);
|
|
5224
|
+
get contained(): boolean;
|
|
5225
|
+
set contained(value: boolean);
|
|
5226
|
+
/** 외부 분석기가 전달하는 정규화 음성 레벨(0–1). `listening` 상태에서만 쓰인다. */
|
|
5227
|
+
get voiceLevel(): number;
|
|
5228
|
+
set voiceLevel(value: number);
|
|
5229
|
+
/** 켜질 때 스크린 리더에 알릴 문구(예: "AI가 화면을 제어하는 중"). 없으면 순수 장식이다. */
|
|
5230
|
+
get label(): string;
|
|
5231
|
+
set label(value: string);
|
|
5232
|
+
/**
|
|
5233
|
+
* 실제 마이크/통화 MediaStream. 음량만 분석하며 트랙을 stop() 하지 않는다.
|
|
5234
|
+
* null 을 넣으면 분석만 해제한다.
|
|
5235
|
+
*/
|
|
5236
|
+
get audioStream(): MediaStream | null;
|
|
5237
|
+
set audioStream(stream: MediaStream | null);
|
|
5238
|
+
connectedCallback(): void;
|
|
5239
|
+
disconnectedCallback(): void;
|
|
5240
|
+
attributeChangedCallback(name: string): void;
|
|
5241
|
+
private onMotionChange;
|
|
5242
|
+
/** 구조는 한 번만 만든다 (PERF-RECONCILE) */
|
|
5243
|
+
private ensureStructure;
|
|
5244
|
+
/** 소비자가 붙인 className 은 건드리지 않고 수식어만 교체한다 */
|
|
5245
|
+
private syncClasses;
|
|
5246
|
+
private syncStatus;
|
|
5247
|
+
/** 음성 반응 루프는 청취 중 + 켜짐 + 모션 허용일 때만 돈다. 나머지 애니메이션은 전부 CSS 다. */
|
|
5248
|
+
private syncLoop;
|
|
5249
|
+
private stopLoop;
|
|
5250
|
+
private frame;
|
|
5251
|
+
private sampleLevel;
|
|
5252
|
+
}
|
|
5253
|
+
declare global {
|
|
5254
|
+
interface HTMLElementTagNameMap {
|
|
5255
|
+
'db-ai-glow': DbAiGlow;
|
|
5256
|
+
}
|
|
5257
|
+
}
|
|
5258
|
+
|
|
5172
5259
|
type OrbSize = (typeof CHAT_ORB_SIZES)[number];
|
|
5173
5260
|
type OrbVariant = (typeof CHAT_ORB_VARIANTS)[number];
|
|
5174
5261
|
type OrbState = (typeof CHAT_ORB_STATES)[number];
|
|
@@ -6096,5 +6183,5 @@ interface DbConfirmOptions {
|
|
|
6096
6183
|
/** 확인 대화상자를 띄우고, 확인 시 true / 취소(ESC·배경 포함) 시 false 로 resolve 합니다. */
|
|
6097
6184
|
declare function confirm(options: DbConfirmOptions): Promise<boolean>;
|
|
6098
6185
|
|
|
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 };
|
|
6186
|
+
export { CleanupBag, DbAccordion, DbActivityHeatmap, DbAdBanner, DbAiChat, DbAiChatList, DbAiGlow, 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 };
|
|
6100
6187
|
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 };
|