@designbasekorea/figma-ui 0.6.10 → 0.7.1

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
@@ -162,10 +162,24 @@ interface FigmaFooterProps {
162
162
  onLicensePageClick?: () => void;
163
163
  paymentStatus?: 'PAID' | 'FREE' | 'TRIAL' | 'BETA';
164
164
  usageCount?: number;
165
+ remainingUsage?: number;
166
+ listenForUsageMessages?: boolean;
165
167
  isLoading?: boolean;
166
168
  showPaymentStatus?: boolean;
167
169
  showUsageInfo?: boolean;
168
170
  maxDailyUsage?: number;
171
+ licenseSource?: string;
172
+ accessScope?: string;
173
+ expiresAt?: string;
174
+ lastVerifiedAt?: string;
175
+ showLowUsageWarning?: boolean;
176
+ lowUsageThresholdPercent?: number;
177
+ lowUsageWarningText?: I18nText;
178
+ onLowUsageWarning?: (details: {
179
+ remaining: number;
180
+ percent: number;
181
+ limit: number;
182
+ }) => void;
169
183
  showPaymentBadge?: boolean;
170
184
  showDonation?: boolean;
171
185
  donationUrl?: string;
@@ -221,7 +235,7 @@ interface FigmaToastProps {
221
235
  }
222
236
  declare const FigmaToast: React.FC<FigmaToastProps>;
223
237
  declare const useFigmaToast: () => {
224
- showToast: (message: string, _type?: ToastStatus) => void;
238
+ showToast: (message: string, type?: ToastStatus) => void;
225
239
  toastComponent: React.JSX.Element | null;
226
240
  };
227
241
 
@@ -288,6 +302,7 @@ interface LicenseStatusCardProps {
288
302
  expiresAt?: string;
289
303
  lastVerifiedAt?: string;
290
304
  validationMessage?: string;
305
+ showHeader?: boolean;
291
306
  allowRevealKey?: boolean;
292
307
  t?: TFunctionLite;
293
308
  locale?: string;
@@ -374,6 +389,11 @@ interface PageLicenseProps {
374
389
  status: PaymentStatus;
375
390
  onClose: () => void;
376
391
  licenseKey?: string;
392
+ licenseStatus?: string;
393
+ licenseSource?: string;
394
+ accessScope?: string;
395
+ expiresAt?: string;
396
+ lastVerifiedAt?: string;
377
397
  wordpressLinks?: WordPressLinks;
378
398
  paymentPageUrl?: string;
379
399
  mode?: 'pricing' | 'youtube-membership';
@@ -527,11 +547,16 @@ type UsagePaymentStatus = 'PAID' | 'FREE' | 'TRIAL' | 'BETA';
527
547
  interface UsageStatusPopoverProps {
528
548
  paymentStatus: UsagePaymentStatus;
529
549
  usageCount?: number;
550
+ remainingUsage?: number;
530
551
  maxDailyUsage?: number;
531
552
  showUsage?: boolean;
532
553
  showPlan?: boolean;
533
554
  isLoading?: boolean;
534
555
  onLicensePageClick?: () => void;
556
+ licenseSource?: string;
557
+ accessScope?: string;
558
+ expiresAt?: string;
559
+ lastVerifiedAt?: string;
535
560
  t?: TFunctionLite;
536
561
  locale?: string;
537
562
  className?: string;