@laserfiche/types-lf-ui-components 14.1.2 → 14.1.3--preview-5325565176

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.
Files changed (2) hide show
  1. package/index.d.ts +22 -4
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -33,6 +33,7 @@
33
33
 
34
34
 
35
35
 
36
+
36
37
 
37
38
 
38
39
  export declare interface AbortedLoginError {
@@ -508,6 +509,12 @@ export declare class LfLoginComponent {
508
509
 
509
510
 
510
511
  mode: LoginMode;
512
+ /**
513
+ * @return {HttpRequestHandler}
514
+ * Returns the HttpRequestHandler that can be used
515
+ * to instantiate a repository API client.
516
+ */
517
+ authorizationRequestHandler: HttpRequestHandler;
511
518
 
512
519
 
513
520
 
@@ -538,6 +545,11 @@ export declare class LfLoginComponent {
538
545
  logoutInitiated: CustomEvent<string>;
539
546
  loginCompleted: CustomEvent<void>;
540
547
  logoutCompleted: CustomEvent<void | AbortedLoginError>;
548
+ /**
549
+ * Refreshes and returns the access token
550
+ * @param initiateLoginFlowOnRefreshFailure
551
+ * @returns {Promise<string | undefined>}
552
+ */
541
553
  refreshTokenAsync: (initiateLoginFlowOnRefreshFailure: boolean) => Promise<string | undefined>;
542
554
  initLoginFlowAsync: () => Promise<string | undefined>;
543
555
  handleRedirectURICallbackAsync: (url: string) => Promise<void>;
@@ -570,6 +582,8 @@ export declare class LfLoginComponent {
570
582
 
571
583
 
572
584
 
585
+ private afterFetchResponseAsync;
586
+ private beforeFetchRequestAsync;
573
587
  }
574
588
 
575
589
  export declare class LfLoginModule {
@@ -656,10 +670,10 @@ export declare class LfRepositoryBrowserComponent {
656
670
  setColumnsToDisplay: (cols: ColumnDef[]) => void;
657
671
  /**
658
672
  * Function to initialize the lf-repository-browser component
659
- * @param provider LfRepositoryService service
660
- * @param selectedNode the id of the node to select, or a Entry starting from the selected entry
673
+ * @param treeNodeService LfRepositoryService service
674
+ * @param initialOpenedNode The LfTreeNode that you would like to open, or the identifier of the LfTreeNode. The identifier should match the implementation of service.getTreeNodeByIdentifierAsync(..) (i.e. id, path, etc.)
661
675
  */
662
- initAsync: (treeNodeService: LfTreeNodeService, selectedNode?: LfTreeNode) => Promise<void>;
676
+ initAsync: (treeNodeService: LfTreeNodeService, initialOpenedNode?: LfTreeNode | string) => Promise<void>;
663
677
  /**
664
678
  * This function will be called for each LfTreeNode to determine if it is selectable, when it is rendered
665
679
  */
@@ -746,7 +760,6 @@ export declare class LfRepositoryBrowserComponent {
746
760
 
747
761
 
748
762
 
749
-
750
763
 
751
764
 
752
765
  }
@@ -803,6 +816,11 @@ export declare interface LfTreeNodeService {
803
816
  * returns - Promise with the parent of the parameter LfTreeNode or undefined if its the root LfTreeNode and does not have a parent
804
817
  */
805
818
  getParentTreeNodeAsync(treeNode: LfTreeNode): Promise<LfTreeNode | undefined>;
819
+ /**
820
+ * Gets the LfTreeNode referenced by the identifier. This can be specific to the implementation of the service (i.e. id, path, etc.)
821
+ * @param identifier Identifier for the LfTreeNode.
822
+ */
823
+ getTreeNodeByIdentifierAsync?(identifier: string): Promise<LfTreeNode | undefined>;
806
824
  }
807
825
 
808
826
  export declare class LfUserFeedbackComponent {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laserfiche/types-lf-ui-components",
3
- "version": "14.1.2",
3
+ "version": "14.1.3--preview-5325565176",
4
4
  "scripts": {},
5
5
  "dependencies": {},
6
6
  "devDependencies": {},