@designbasekorea/figma-ui 0.6.4 → 0.6.8

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/index.d.ts CHANGED
@@ -2,12 +2,14 @@ import React from 'react';
2
2
  import { PaymentStatus, UsageResetPeriod, LicenseManagerMessageTypes } from '@designbasekorea/figma-license-core';
3
3
  import { GradientScheme, GradientTone } from '@designbasekorea/ui-wc/react';
4
4
  export * from '@designbasekorea/ui-wc/react';
5
+ export { Accordion, ActivityHeatmap, AdBanner, AiChat, AiChatList, Alert, AnimationBackground, AnimationText, AppBadge, AudioPlayer, Avatar, Backdrop, Badge, Banner, BottomNavigation, BottomSheet, Breadcrumbs, Button, Calendar, Card, Carousel, ChatComposer, ChatList, ChatMessage, ChatOrb, ChatRoom, ChatSuggestions, ChatTyping, ChatWelcome, ChatWidget, Checkbox, Chip, CodeBlock, ColorPicker, ColorSwatch, Confirm, Container, ContextMenu, CookieBanner, Countdown, CursorFollower, DatePicker, Divider, DownloadProgress, Drawer, Dropdown, Dropzone, EmailVerify, EmptyState, FileUploader, FloatingActionButton, Footer, Form, Gantt, Gradient, Grid, GridBackground, GridItem, Image, ImageList, ImagePlaceholder, Indicator, Input, Kanban, Label, Lightbox, List, Logo, MarkdownEditor, Marquee, Masonry, MenuItem, Modal, ModalBody, ModalFooter, ModalHeader, Navbar, OnboardingModal, OtpInput, PageHeader, Pagination, PhoneVerify, Popover, Progress, ProgressStep, Progressbar, Radio, RandomGradient, RangeSlider, Rating, Reorder, ResizablePanels, ScrollArea, SearchBar, Section, SectionAppDownload, SectionContact, SectionCta, SectionFaq, SectionFeature, SectionFeatureGrid, SectionHero, SectionLogoCloud, SectionPricing, SectionStats, SectionTestimonials, SegmentControl, Select, Share, Sidebar, Signature, Skeleton, Spinner, SplitView, Stack, Stat, Stepper, Table, Tabs, Testimonial, Textarea, TimePicker, Timeline, Toast, Toggle, Toolbar, Tooltip, TopBanner, Tutorial, TwoFactor, VideoPlayer, YouTubePlayer, useContextMenu } from '@designbasekorea/ui-wc/react';
5
6
 
6
7
  type I18nText = string | {
7
8
  key: string;
8
9
  values?: Record<string, any>;
9
10
  };
10
11
  type TFunctionLite = (key: string, values?: Record<string, any>) => string;
12
+ declare function interpolateText(template: string, values?: Record<string, unknown>): string;
11
13
  declare function resolveText(t: TFunctionLite | undefined, input: I18nText | undefined, fallback?: string): string | undefined;
12
14
 
13
15
  interface DonationBadgeProps {
@@ -140,7 +142,11 @@ interface LogoDropdownProps {
140
142
  links?: LogoDropdownLink[];
141
143
  position?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
142
144
  className?: string;
143
- t?: (key: string) => string;
145
+ t?: TFunctionLite;
146
+ showLanguageSelector?: boolean;
147
+ languages?: Language[];
148
+ currentLanguage?: string;
149
+ onLanguageChange?: (languageCode: string) => void;
144
150
  }
145
151
  declare const LogoDropdown: React.FC<LogoDropdownProps>;
146
152
 
@@ -240,6 +246,43 @@ interface InteractionFeedbackProps {
240
246
  }
241
247
  declare const InteractionFeedback: React.FC<InteractionFeedbackProps>;
242
248
 
249
+ interface LanguageSettingsModalProps {
250
+ isOpen: boolean;
251
+ onClose: () => void;
252
+ languages?: Language[];
253
+ currentLanguage?: string;
254
+ onLanguageChange?: (languageCode: string) => void;
255
+ title?: string;
256
+ description?: string;
257
+ className?: string;
258
+ t?: TFunctionLite;
259
+ }
260
+ declare const LanguageSettingsModal: React.FC<LanguageSettingsModalProps>;
261
+
262
+ interface LicenseOfferProps {
263
+ joinUrl?: string;
264
+ guideUrl?: string;
265
+ membershipUrl?: string;
266
+ t?: TFunctionLite;
267
+ className?: string;
268
+ }
269
+ declare const LicenseOffer: React.FC<LicenseOfferProps>;
270
+
271
+ interface LicenseStatusCardProps {
272
+ status: PaymentStatus;
273
+ licenseKey?: string;
274
+ licenseStatus?: string;
275
+ licenseSource?: string;
276
+ accessScope?: string;
277
+ expiresAt?: string;
278
+ lastVerifiedAt?: string;
279
+ validationMessage?: string;
280
+ allowRevealKey?: boolean;
281
+ t?: TFunctionLite;
282
+ className?: string;
283
+ }
284
+ declare const LicenseStatusCard: React.FC<LicenseStatusCardProps>;
285
+
243
286
  interface PricingFeature {
244
287
  name: string;
245
288
  free: string | boolean;
@@ -260,6 +303,7 @@ interface PricingComparisonProps {
260
303
  declare const PricingComparison: React.FC<PricingComparisonProps>;
261
304
 
262
305
  interface WordPressLinks {
306
+ membershipUrl?: string;
263
307
  purchaseUrl?: string;
264
308
  accountUrl?: string;
265
309
  helpUrl?: string;
@@ -281,6 +325,14 @@ interface LicensePageState {
281
325
  usageReason?: 'USAGE_LIMIT_REACHED' | 'FEATURE_NOT_ALLOWED';
282
326
  lastMessage?: string;
283
327
  lastErrorCode?: string;
328
+ deactivateMessage?: string;
329
+ deactivateErrorCode?: string;
330
+ licenseStatus?: string;
331
+ licenseSource?: string;
332
+ accessScope?: string;
333
+ expiresAt?: string;
334
+ lastVerifiedAt?: string;
335
+ validationMessage?: string;
284
336
  }
285
337
  declare const DEFAULT_LICENSE_MESSAGE_TYPES: LicenseManagerMessageTypes;
286
338
  declare const START_DESIGNBASE_AUTH_MESSAGE = "start-designbase-auth";
@@ -309,6 +361,8 @@ interface PageLicenseProps {
309
361
  licenseKey?: string;
310
362
  wordpressLinks?: WordPressLinks;
311
363
  paymentPageUrl?: string;
364
+ mode?: 'pricing' | 'youtube-membership';
365
+ membershipUrl?: string;
312
366
  enableAccountAuth?: boolean;
313
367
  showLicenseKeyInput?: boolean;
314
368
  pricingFeatures?: PricingFeature[];
@@ -336,6 +390,7 @@ interface PaymentBadgeProps {
336
390
  }
337
391
  declare const PaymentBadge: React.FC<PaymentBadgeProps>;
338
392
 
393
+ type PaymentActionFeedbackVariant = 'success' | 'error' | 'info' | 'warning';
339
394
  interface PaymentStatusSectionProps {
340
395
  status: 'PAID' | 'FREE' | 'UNPAID';
341
396
  usageCount?: number;
@@ -345,9 +400,13 @@ interface PaymentStatusSectionProps {
345
400
  onDeactivate: () => void;
346
401
  isDeactivating?: boolean;
347
402
  showDetails?: boolean;
403
+ actionMessage?: I18nText;
404
+ actionMessageVariant?: PaymentActionFeedbackVariant;
405
+ errorCode?: string;
348
406
  className?: string;
349
407
  t?: TFunctionLite;
350
408
  }
409
+ declare function resolvePaymentFeedbackVariant(errorCode?: string, explicitVariant?: PaymentActionFeedbackVariant): PaymentActionFeedbackVariant;
351
410
  declare const PaymentStatusSection: React.FC<PaymentStatusSectionProps>;
352
411
 
353
412
  interface ProgressModalProgress {
@@ -442,5 +501,19 @@ interface UpgradeBannerProps {
442
501
  }
443
502
  declare const UpgradeBanner: React.FC<UpgradeBannerProps>;
444
503
 
445
- export { DEFAULT_LICENSE_MESSAGE_TYPES, DonationBadge, FigmaContainer, FigmaFooter, FigmaHeader, FigmaPageHead, FigmaSection, FigmaSidebar, FigmaToast, FigmaToastProvider, FormWithSubmit, InteractionFeedback, LanguageSelector, LogoDropdown, PageLicense, PaymentBadge, PaymentStatusSection, PricingComparison, ProgressModal, ResizablePlugin, START_DESIGNBASE_AUTH_MESSAGE, SettingsModal, TitleDescription, UpgradeBanner, getActiveSection, resolveText, scrollToSection, useFigmaLicenseBridge, useFigmaToast, useToast };
446
- export type { DonationBadgeProps, FeedbackStatus, FigmaContainerProps, FigmaContainerSize, FigmaFooterProps, FigmaHeaderAction, FigmaHeaderProps, FigmaPageHeadAction, FigmaPageHeadProps, FigmaSectionProps, FigmaSidebarProps, FormWithSubmitProps, I18nText, InteractionFeedbackProps, Language, LanguageSelectorProps, LicensePageState, LogoDropdownLink, LogoDropdownProps, PageLicenseProps, PaymentBadgeProps, PaymentStatusSectionProps, PlanPricing, PricingComparisonProps, PricingFeature, ProgressModalProgress, ProgressModalProps, ResizablePluginProps, SettingsCategory, SettingsCategoryGroup, SettingsModalProps, TFunctionLite, TitleDescriptionProps, UpgradeBannerProps, WordPressLinks };
504
+ type UsagePaymentStatus = 'PAID' | 'FREE' | 'TRIAL' | 'BETA';
505
+ interface UsageStatusPopoverProps {
506
+ paymentStatus: UsagePaymentStatus;
507
+ usageCount?: number;
508
+ maxDailyUsage?: number;
509
+ showUsage?: boolean;
510
+ showPlan?: boolean;
511
+ isLoading?: boolean;
512
+ onLicensePageClick?: () => void;
513
+ t?: TFunctionLite;
514
+ className?: string;
515
+ }
516
+ declare const UsageStatusPopover: React.FC<UsageStatusPopoverProps>;
517
+
518
+ export { DEFAULT_LICENSE_MESSAGE_TYPES, DonationBadge, FigmaContainer, FigmaFooter, FigmaHeader, FigmaPageHead, FigmaSection, FigmaSidebar, FigmaToast, FigmaToastProvider, FormWithSubmit, InteractionFeedback, LanguageSelector, LanguageSettingsModal, LicenseOffer, LicenseStatusCard, LogoDropdown, PageLicense, PaymentBadge, PaymentStatusSection, PricingComparison, ProgressModal, ResizablePlugin, START_DESIGNBASE_AUTH_MESSAGE, SettingsModal, TitleDescription, UpgradeBanner, UsageStatusPopover, getActiveSection, interpolateText, resolvePaymentFeedbackVariant, resolveText, scrollToSection, useFigmaLicenseBridge, useFigmaToast, useToast };
519
+ export type { DonationBadgeProps, FeedbackStatus, FigmaContainerProps, FigmaContainerSize, FigmaFooterProps, FigmaHeaderAction, FigmaHeaderProps, FigmaPageHeadAction, FigmaPageHeadProps, FigmaSectionProps, FigmaSidebarProps, FormWithSubmitProps, I18nText, InteractionFeedbackProps, Language, LanguageSelectorProps, LanguageSettingsModalProps, LicenseOfferProps, LicensePageState, LicenseStatusCardProps, LogoDropdownLink, LogoDropdownProps, PageLicenseProps, PaymentActionFeedbackVariant, PaymentBadgeProps, PaymentStatusSectionProps, PlanPricing, PricingComparisonProps, PricingFeature, ProgressModalProgress, ProgressModalProps, ResizablePluginProps, SettingsCategory, SettingsCategoryGroup, SettingsModalProps, TFunctionLite, TitleDescriptionProps, UpgradeBannerProps, UsagePaymentStatus, UsageStatusPopoverProps, WordPressLinks };