@tongfun/ui 0.0.1-alpha.13 → 0.0.1-alpha.15

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
@@ -22,6 +22,7 @@ export declare const TfAlert: Component
22
22
  export declare const TfAnchor: Component
23
23
  export declare const TfApprovalFlow: Component
24
24
  export declare const TfAssetMarket: Component
25
+ export declare const TfAttachmentCard: Component
25
26
  export declare const TfBackTop: Component
26
27
  export declare const TfBadge: Component
27
28
  export declare const TfBarChart: Component
@@ -179,6 +180,7 @@ export declare const TfReportWizard: Component
179
180
  export declare const TfReportWorkbench: Component
180
181
  export declare const TfReviewPacketModal: Component
181
182
  export declare const TfRichTextEditor: Component
183
+ export declare const TfScanUpload: Component
182
184
  export declare const TfScatterChart: Component
183
185
  export declare const TfScoreMetric: Component
184
186
  export declare const TfSealSelector: Component
@@ -744,6 +746,31 @@ export interface SidebarLayoutSlots {
744
746
  }
745
747
 
746
748
 
749
+ export type TfRequestAuthFailureReason = 'refresh-failed' | 'unauthorized'
750
+
751
+ export interface TfRequestAuthContext {
752
+ token?: string
753
+ tenantId?: string
754
+ userId?: string
755
+ refreshToken?: string
756
+ applicationId?: string
757
+ }
758
+
759
+ export interface TfRequestAuthAdapter {
760
+ getContext(): TfRequestAuthContext | null | undefined
761
+ refresh(): Promise<boolean>
762
+ onAuthFailure?(reason: TfRequestAuthFailureReason): void
763
+ }
764
+
765
+
766
+ export declare function configureRequestAuth(adapter: TfRequestAuthAdapter | null): void
767
+ export declare function hasRequestAuthAdapter(): boolean
768
+ export declare function getRegisteredRequestAuthAdapter(): TfRequestAuthAdapter | null
769
+ export declare function getRequestAuthContext(): TfRequestAuthContext | null
770
+ export declare function refreshRequestAuth(): Promise<boolean>
771
+ export declare function notifyRequestAuthFailure(reason: TfRequestAuthFailureReason): void
772
+ export declare function fetchWithRequestAuth(input: RequestInfo | URL, init?: RequestInit): Promise<Response>
773
+
747
774
  export declare const DOCUMENT_FORM_FIELD_ACCESS_KEY: unique symbol
748
775
  export declare const DOCUMENT_FORM_SHELL_CONTEXT_KEY: unique symbol
749
776