@lumiapassport/ui-kit 1.14.9 → 1.14.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/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
- import React__default, { ReactNode, MutableRefObject, FC, HTMLAttributes, PropsWithChildren } from 'react';
3
+ import React__default, { ReactNode, MutableRefObject, FC, HTMLAttributes, PropsWithChildren, ButtonHTMLAttributes } from 'react';
4
4
  import * as viem from 'viem';
5
5
  import { Address as Address$1, Hex, Chain, Hash as Hash$1, TransactionReceipt } from 'viem';
6
6
  import * as _tanstack_react_query from '@tanstack/react-query';
@@ -183,7 +183,6 @@ interface LumiaPassportConfig {
183
183
  social: {
184
184
  enabled: boolean;
185
185
  providers: SocialProvider[];
186
- gridColumns: number;
187
186
  };
188
187
  wallet: {
189
188
  enabled: boolean;
@@ -205,7 +204,7 @@ interface LumiaPassportConfig {
205
204
  subtitle?: string;
206
205
  useExternalIcons?: boolean;
207
206
  dialogClassName?: string;
208
- authOrder?: Array<'passkey' | 'email' | 'social' | 'wallet'>;
207
+ authOrder?: ('email' | 'social' | 'wallet')[];
209
208
  branding: {
210
209
  logo?: React__default.ComponentType<{
211
210
  size?: number;
@@ -615,12 +614,14 @@ declare class IframeManager {
615
614
  /**
616
615
  * Get trusted apps for user
617
616
  */
618
- getTrustedApps(userId: string): Promise<Array<{
617
+ getTrustedApps(userId: string): Promise<{
619
618
  userId: string;
620
619
  projectId: string;
621
620
  origin: string;
622
621
  trustedAt: number;
623
- }>>;
622
+ appName?: string;
623
+ appLogo?: string;
624
+ }[]>;
624
625
  /**
625
626
  * Remove app from trusted list
626
627
  */
@@ -818,7 +819,7 @@ declare const buttonVariants: (props?: {
818
819
  variant?: "default" | "outline" | "ghost";
819
820
  size?: "small" | "large" | "medium" | "icon";
820
821
  } & class_variance_authority_types.ClassProp) => string;
821
- interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
822
+ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
822
823
  asChild?: boolean;
823
824
  }
824
825
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
- import React__default, { ReactNode, MutableRefObject, FC, HTMLAttributes, PropsWithChildren } from 'react';
3
+ import React__default, { ReactNode, MutableRefObject, FC, HTMLAttributes, PropsWithChildren, ButtonHTMLAttributes } from 'react';
4
4
  import * as viem from 'viem';
5
5
  import { Address as Address$1, Hex, Chain, Hash as Hash$1, TransactionReceipt } from 'viem';
6
6
  import * as _tanstack_react_query from '@tanstack/react-query';
@@ -183,7 +183,6 @@ interface LumiaPassportConfig {
183
183
  social: {
184
184
  enabled: boolean;
185
185
  providers: SocialProvider[];
186
- gridColumns: number;
187
186
  };
188
187
  wallet: {
189
188
  enabled: boolean;
@@ -205,7 +204,7 @@ interface LumiaPassportConfig {
205
204
  subtitle?: string;
206
205
  useExternalIcons?: boolean;
207
206
  dialogClassName?: string;
208
- authOrder?: Array<'passkey' | 'email' | 'social' | 'wallet'>;
207
+ authOrder?: ('email' | 'social' | 'wallet')[];
209
208
  branding: {
210
209
  logo?: React__default.ComponentType<{
211
210
  size?: number;
@@ -615,12 +614,14 @@ declare class IframeManager {
615
614
  /**
616
615
  * Get trusted apps for user
617
616
  */
618
- getTrustedApps(userId: string): Promise<Array<{
617
+ getTrustedApps(userId: string): Promise<{
619
618
  userId: string;
620
619
  projectId: string;
621
620
  origin: string;
622
621
  trustedAt: number;
623
- }>>;
622
+ appName?: string;
623
+ appLogo?: string;
624
+ }[]>;
624
625
  /**
625
626
  * Remove app from trusted list
626
627
  */
@@ -818,7 +819,7 @@ declare const buttonVariants: (props?: {
818
819
  variant?: "default" | "outline" | "ghost";
819
820
  size?: "small" | "large" | "medium" | "icon";
820
821
  } & class_variance_authority_types.ClassProp) => string;
821
- interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
822
+ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
822
823
  asChild?: boolean;
823
824
  }
824
825