@sequencing/design-system 1.0.66 → 1.0.68
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/documentation.json +12 -12
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Organisms/Header/Header.d.ts +17 -10
- package/dist/index.d.ts +17 -10
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/components/Organisms/Header/Header.d.ts +17 -10
- package/package.json +1 -1
|
@@ -36,20 +36,33 @@ export interface HeaderProps {
|
|
|
36
36
|
* to support different routers (Next, react-router-dom, etc.).
|
|
37
37
|
* NOTE: When ``preventHardNavigation`` is disabled, it has no effect.
|
|
38
38
|
*/
|
|
39
|
-
onLinkClick?: (
|
|
39
|
+
onLinkClick?: (linkUrl: string) => void;
|
|
40
40
|
/**
|
|
41
41
|
* Called when a user clicks on the site's logo, provide url argument to callback.
|
|
42
42
|
* Typically used to make soft navigation in your framework (React, NextJs, etc).
|
|
43
43
|
* e.g. for NextJs `onRequestHomePage={(url) => router.push(url)}`
|
|
44
44
|
* url argument is the `homePageUrl` prop value.
|
|
45
|
+
* NOTE: When ``preventHardNavigation`` is disabled, it has no effect and the user will be hard redirected
|
|
46
|
+
* to ``homePageUrl``.
|
|
45
47
|
*/
|
|
46
|
-
onRequestHomePage?: (
|
|
47
|
-
/**
|
|
48
|
-
|
|
48
|
+
onRequestHomePage?: (homePageUrl: string) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Called when an authenticated user clicks on the My Account link inside the main right HeaderChip.
|
|
51
|
+
* The url parameter is ``myAccountUrl``.
|
|
52
|
+
* NOTE: When ``preventHardNavigation`` is disabled, it has no effect and the user will be hard redirected
|
|
53
|
+
* to ``myAccountUrl``.
|
|
54
|
+
*/
|
|
55
|
+
onRequestMyAccount?: (myAccountUrl: string) => void;
|
|
49
56
|
/** Called when an anonymous user clicks on the Sign In button inside the auxiliary links section */
|
|
50
57
|
onRequestSignIn?: () => void;
|
|
51
58
|
/** Called when an authenticated user clicks on the Sign Out button inside the main right HeaderChip */
|
|
52
59
|
onRequestSignOut?: () => void;
|
|
60
|
+
/**
|
|
61
|
+
* When enabled, it avoids setting ``document.location.href`` upon link clicks and you will be
|
|
62
|
+
* responsible for handling the navigation through the ``onLinkClick`` function.
|
|
63
|
+
* This enables soft navigation for apps that want to support it.
|
|
64
|
+
*/
|
|
65
|
+
preventHardNavigation?: boolean;
|
|
53
66
|
/**
|
|
54
67
|
* A React node with the search component containing:
|
|
55
68
|
* - A button to toggle the visibility of the search bar
|
|
@@ -60,12 +73,6 @@ export interface HeaderProps {
|
|
|
60
73
|
* If the user is authenticated, pass their name and avatar image here
|
|
61
74
|
*/
|
|
62
75
|
user?: User;
|
|
63
|
-
/**
|
|
64
|
-
* When enabled, it avoids setting ``document.location.href`` upon link clicks and you will be
|
|
65
|
-
* responsible for handling the navigation through the ``onLinkClick`` function.
|
|
66
|
-
* This enables soft navigation for apps that want to support it.
|
|
67
|
-
*/
|
|
68
|
-
preventHardNavigation?: boolean;
|
|
69
76
|
}
|
|
70
77
|
/**
|
|
71
78
|
* This is the default header for Sequencing.
|
package/dist/index.d.ts
CHANGED
|
@@ -513,20 +513,33 @@ interface HeaderProps {
|
|
|
513
513
|
* to support different routers (Next, react-router-dom, etc.).
|
|
514
514
|
* NOTE: When ``preventHardNavigation`` is disabled, it has no effect.
|
|
515
515
|
*/
|
|
516
|
-
onLinkClick?: (
|
|
516
|
+
onLinkClick?: (linkUrl: string) => void;
|
|
517
517
|
/**
|
|
518
518
|
* Called when a user clicks on the site's logo, provide url argument to callback.
|
|
519
519
|
* Typically used to make soft navigation in your framework (React, NextJs, etc).
|
|
520
520
|
* e.g. for NextJs `onRequestHomePage={(url) => router.push(url)}`
|
|
521
521
|
* url argument is the `homePageUrl` prop value.
|
|
522
|
+
* NOTE: When ``preventHardNavigation`` is disabled, it has no effect and the user will be hard redirected
|
|
523
|
+
* to ``homePageUrl``.
|
|
522
524
|
*/
|
|
523
|
-
onRequestHomePage?: (
|
|
524
|
-
/**
|
|
525
|
-
|
|
525
|
+
onRequestHomePage?: (homePageUrl: string) => void;
|
|
526
|
+
/**
|
|
527
|
+
* Called when an authenticated user clicks on the My Account link inside the main right HeaderChip.
|
|
528
|
+
* The url parameter is ``myAccountUrl``.
|
|
529
|
+
* NOTE: When ``preventHardNavigation`` is disabled, it has no effect and the user will be hard redirected
|
|
530
|
+
* to ``myAccountUrl``.
|
|
531
|
+
*/
|
|
532
|
+
onRequestMyAccount?: (myAccountUrl: string) => void;
|
|
526
533
|
/** Called when an anonymous user clicks on the Sign In button inside the auxiliary links section */
|
|
527
534
|
onRequestSignIn?: () => void;
|
|
528
535
|
/** Called when an authenticated user clicks on the Sign Out button inside the main right HeaderChip */
|
|
529
536
|
onRequestSignOut?: () => void;
|
|
537
|
+
/**
|
|
538
|
+
* When enabled, it avoids setting ``document.location.href`` upon link clicks and you will be
|
|
539
|
+
* responsible for handling the navigation through the ``onLinkClick`` function.
|
|
540
|
+
* This enables soft navigation for apps that want to support it.
|
|
541
|
+
*/
|
|
542
|
+
preventHardNavigation?: boolean;
|
|
530
543
|
/**
|
|
531
544
|
* A React node with the search component containing:
|
|
532
545
|
* - A button to toggle the visibility of the search bar
|
|
@@ -537,12 +550,6 @@ interface HeaderProps {
|
|
|
537
550
|
* If the user is authenticated, pass their name and avatar image here
|
|
538
551
|
*/
|
|
539
552
|
user?: User;
|
|
540
|
-
/**
|
|
541
|
-
* When enabled, it avoids setting ``document.location.href`` upon link clicks and you will be
|
|
542
|
-
* responsible for handling the navigation through the ``onLinkClick`` function.
|
|
543
|
-
* This enables soft navigation for apps that want to support it.
|
|
544
|
-
*/
|
|
545
|
-
preventHardNavigation?: boolean;
|
|
546
553
|
}
|
|
547
554
|
/**
|
|
548
555
|
* This is the default header for Sequencing.
|