@streamoid/settings 0.3.2 → 0.3.4

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.mts CHANGED
@@ -265,6 +265,7 @@ interface SubscriptionPlan {
265
265
  id: string;
266
266
  name: string;
267
267
  amount: number;
268
+ type?: string;
268
269
  subscriptionEndDate?: string;
269
270
  /** Three-letter currency code (lowercase) when known, e.g. "inr" / "usd". */
270
271
  currency?: string;
@@ -276,6 +277,10 @@ interface BillingSubscription {
276
277
  downgradeScheduled: boolean;
277
278
  stripeCustomerId: string;
278
279
  plan: SubscriptionPlan;
280
+ scheduledDowngradeEffectiveDate?: number | string;
281
+ preDowngradeStripePriceData?: SubscriptionPlan & {
282
+ credits?: string;
283
+ };
279
284
  /** Stripe product id; used to look up the matching product in fetched plans. */
280
285
  stripeProductId?: string;
281
286
  }
@@ -583,8 +588,12 @@ type IconProps = Omit<SVGProps<SVGSVGElement>, 'color' | 'strokeWidth' | 'width'
583
588
  };
584
589
  declare const SiconKey: ({ color, strokeWidth, size, ...props }: IconProps) => react_jsx_runtime.JSX.Element;
585
590
 
586
- declare function BillingContent({ embedded, }?: {
591
+ declare function BillingContent({ embedded, showPlans: showPlansProp, onShowPlansChange, }?: {
587
592
  embedded?: boolean;
593
+ /** Controlled "plans" sub-view flag. When provided, the host (settings
594
+ * wrapper) owns it so it can hide the sub-nav + show the Plans breadcrumb. */
595
+ showPlans?: boolean;
596
+ onShowPlansChange?: (open: boolean) => void;
588
597
  }): react_jsx_runtime.JSX.Element;
589
598
 
590
599
  declare function TeamsContent({ embedded, onInviteOpen, onInviteOpenChange, }?: {
package/dist/index.d.ts CHANGED
@@ -265,6 +265,7 @@ interface SubscriptionPlan {
265
265
  id: string;
266
266
  name: string;
267
267
  amount: number;
268
+ type?: string;
268
269
  subscriptionEndDate?: string;
269
270
  /** Three-letter currency code (lowercase) when known, e.g. "inr" / "usd". */
270
271
  currency?: string;
@@ -276,6 +277,10 @@ interface BillingSubscription {
276
277
  downgradeScheduled: boolean;
277
278
  stripeCustomerId: string;
278
279
  plan: SubscriptionPlan;
280
+ scheduledDowngradeEffectiveDate?: number | string;
281
+ preDowngradeStripePriceData?: SubscriptionPlan & {
282
+ credits?: string;
283
+ };
279
284
  /** Stripe product id; used to look up the matching product in fetched plans. */
280
285
  stripeProductId?: string;
281
286
  }
@@ -583,8 +588,12 @@ type IconProps = Omit<SVGProps<SVGSVGElement>, 'color' | 'strokeWidth' | 'width'
583
588
  };
584
589
  declare const SiconKey: ({ color, strokeWidth, size, ...props }: IconProps) => react_jsx_runtime.JSX.Element;
585
590
 
586
- declare function BillingContent({ embedded, }?: {
591
+ declare function BillingContent({ embedded, showPlans: showPlansProp, onShowPlansChange, }?: {
587
592
  embedded?: boolean;
593
+ /** Controlled "plans" sub-view flag. When provided, the host (settings
594
+ * wrapper) owns it so it can hide the sub-nav + show the Plans breadcrumb. */
595
+ showPlans?: boolean;
596
+ onShowPlansChange?: (open: boolean) => void;
588
597
  }): react_jsx_runtime.JSX.Element;
589
598
 
590
599
  declare function TeamsContent({ embedded, onInviteOpen, onInviteOpenChange, }?: {