@access-ci/ui 0.19.0-beta3 → 0.19.0-beta4
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/access-ci-ui-react.d.ts +108 -0
- package/dist/access-ci-ui.bundle.js +34 -34
- package/dist/access-ci-ui.js +13 -22
- package/dist/access-ci-ui.umd.cjs +30 -30
- package/dist/{access-qa-bot-CHkBf16I.js → access-qa-bot-Df44Trak.js} +1 -1
- package/dist/{icon-cJmGylOm.js → icon-Bq3zRcnO.js} +1 -1
- package/dist/{index-CrKdAxQz.js → index-2HXoEOSB.js} +325 -334
- package/dist/{resource-group-detail-Dxt8iVRs.js → resource-group-detail-CI_ldjMw.js} +2 -2
- package/dist/{resource-home-ChfTC5Qa.js → resource-home-dD3bW3v7.js} +2 -2
- package/package.json +3 -2
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
|
|
3
|
+
export interface BreadcrumbItem {
|
|
4
|
+
name: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
classes?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface BreadcrumbsProps {
|
|
10
|
+
expandWidth?: boolean;
|
|
11
|
+
homeTitle?: string;
|
|
12
|
+
homeUrl?: string;
|
|
13
|
+
items?: BreadcrumbItem[];
|
|
14
|
+
topBorder?: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface FooterProps {
|
|
18
|
+
/** Scroll distance in pixels before the "Return to Top" button appears. Default: 300 */
|
|
19
|
+
showAfterScroll?: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface HeaderProps {
|
|
23
|
+
nsfUrl?: string;
|
|
24
|
+
/** Where the logo is placed; affects layout. Default: "header" */
|
|
25
|
+
placement?: string;
|
|
26
|
+
siteName?: string;
|
|
27
|
+
siteUrl?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface MenuItem {
|
|
31
|
+
name?: string;
|
|
32
|
+
href?: string;
|
|
33
|
+
/** Raw HTML string to render in place of a standard link or submenu. */
|
|
34
|
+
html?: string;
|
|
35
|
+
items?: MenuItem[];
|
|
36
|
+
classes?: string;
|
|
37
|
+
autoOpenMode?: string;
|
|
38
|
+
onClick?: () => void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface FooterMenusProps {
|
|
42
|
+
items: MenuItem[];
|
|
43
|
+
siteName?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface SiteMenusProps {
|
|
47
|
+
items: MenuItem[];
|
|
48
|
+
siteName: string;
|
|
49
|
+
target?: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface UniversalMenusProps {
|
|
53
|
+
/** Overrides the default ACCESS universal menu items. */
|
|
54
|
+
items?: MenuItem[];
|
|
55
|
+
/** Defaults to detecting the ACCESS SSO cookie when not provided. */
|
|
56
|
+
isLoggedIn?: boolean;
|
|
57
|
+
loginUrl?: string;
|
|
58
|
+
logoutUrl?: string;
|
|
59
|
+
siteName?: string;
|
|
60
|
+
target?: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface QABotProps {
|
|
64
|
+
welcome?: string;
|
|
65
|
+
/** Defaults to detecting the ACCESS SSO cookie when not provided. */
|
|
66
|
+
isLoggedIn?: boolean;
|
|
67
|
+
open?: boolean;
|
|
68
|
+
onOpenChange?: (open: boolean) => void;
|
|
69
|
+
/** Falls back to the VITE_QA_BOT_API_KEY environment variable when not provided. */
|
|
70
|
+
apiKey?: string;
|
|
71
|
+
embedded?: boolean;
|
|
72
|
+
loginUrl?: string;
|
|
73
|
+
userEmail?: string;
|
|
74
|
+
userName?: string;
|
|
75
|
+
accessId?: string;
|
|
76
|
+
onAnalyticsEvent?: (...args: unknown[]) => void;
|
|
77
|
+
qaEndpoint?: string;
|
|
78
|
+
ratingEndpoint?: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface ResourceCatalogProps {
|
|
82
|
+
accessId?: string;
|
|
83
|
+
/** Base URL path for the resource catalog routes. Default: "/resources" */
|
|
84
|
+
baseUri?: string;
|
|
85
|
+
/** Defaults to detecting the ACCESS SSO cookie when not provided. */
|
|
86
|
+
isLoggedIn?: boolean;
|
|
87
|
+
qaBotApiKey?: string;
|
|
88
|
+
showTitle?: boolean;
|
|
89
|
+
title?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface TableOfContentsProps {
|
|
93
|
+
/** Array of heading elements to build the TOC from. H1 is used as the TOC title; H2s become the links. */
|
|
94
|
+
headings?: HTMLElement[];
|
|
95
|
+
/** Prefix applied to auto-generated heading IDs. Default: "" */
|
|
96
|
+
idPrefix?: string;
|
|
97
|
+
smoothScroll?: boolean;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export declare const Breadcrumbs: FC<BreadcrumbsProps>;
|
|
101
|
+
export declare const Footer: FC<FooterProps>;
|
|
102
|
+
export declare const FooterMenus: FC<FooterMenusProps>;
|
|
103
|
+
export declare const Header: FC<HeaderProps>;
|
|
104
|
+
export declare const QABot: FC<QABotProps>;
|
|
105
|
+
export declare const ResourceCatalog: FC<ResourceCatalogProps>;
|
|
106
|
+
export declare const SiteMenus: FC<SiteMenusProps>;
|
|
107
|
+
export declare const TableOfContents: FC<TableOfContentsProps>;
|
|
108
|
+
export declare const UniversalMenus: FC<UniversalMenusProps>;
|