@apolitical/component-library 10.2.6-beta.3 → 10.2.6-fg-1
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/index.mjs
CHANGED
|
@@ -26060,7 +26060,7 @@ const fF = Vo(() => Promise.resolve().then(() => gx)), E9 = [
|
|
|
26060
26060
|
},
|
|
26061
26061
|
{
|
|
26062
26062
|
key: "microcourses",
|
|
26063
|
-
href: "/
|
|
26063
|
+
href: "/courses/"
|
|
26064
26064
|
},
|
|
26065
26065
|
{
|
|
26066
26066
|
key: "articles",
|
|
@@ -26627,7 +26627,7 @@ const Pd = "cookieBanner_", Rd = [
|
|
|
26627
26627
|
order: ["events", "courses", "articles", "communities", "aiCampus", "climateCampus"],
|
|
26628
26628
|
// An array guarantees the right order
|
|
26629
26629
|
events: { href: "/events/", gtmType: "events-click" },
|
|
26630
|
-
courses: { href: "/
|
|
26630
|
+
courses: { href: "/courses/", gtmType: "courses-click" },
|
|
26631
26631
|
articles: { href: "/articles/", gtmType: "articles-click" },
|
|
26632
26632
|
communities: { href: "/communities/", gtmType: "communities-click" },
|
|
26633
26633
|
aiCampus: { href: "/pages/government-ai-campus", gtmType: "ai-campus-click" },
|
|
@@ -46603,8 +46603,8 @@ const Et = {
|
|
|
46603
46603
|
order: ["events", "courses", "articles", "communities"],
|
|
46604
46604
|
events: { href: "/events/", className: "icon events" },
|
|
46605
46605
|
courses: {
|
|
46606
|
-
href: "/
|
|
46607
|
-
gtmType: "
|
|
46606
|
+
href: "/courses/",
|
|
46607
|
+
gtmType: "courses-click",
|
|
46608
46608
|
className: "icon courses"
|
|
46609
46609
|
},
|
|
46610
46610
|
articles: {
|
|
@@ -47006,7 +47006,7 @@ const f3 = ({
|
|
|
47006
47006
|
locale: a,
|
|
47007
47007
|
suprSendTranslations: o,
|
|
47008
47008
|
onSearchClick: s,
|
|
47009
|
-
|
|
47009
|
+
isV2Search: l = !1
|
|
47010
47010
|
}) => {
|
|
47011
47011
|
var H, U;
|
|
47012
47012
|
const u = pe(), c = Ue(jt), d = yp();
|
|
@@ -47249,7 +47249,7 @@ const f3 = ({
|
|
|
47249
47249
|
}
|
|
47250
47250
|
)
|
|
47251
47251
|
] }), b = window.location.pathname.match(
|
|
47252
|
-
new RegExp("(courses/[^/]+/[^/]+|
|
|
47252
|
+
new RegExp("(courses/[^/]+/[^/]+|courses/[^/]+/[^/]+)")
|
|
47253
47253
|
), q = window.location.pathname.match(new RegExp("academies/[^/]+")), R = (j) => {
|
|
47254
47254
|
var we;
|
|
47255
47255
|
const [V, re] = j.split("?"), Z = new URLSearchParams(re || ""), oe = new URLSearchParams(window.location.search).get("ref");
|
|
@@ -47258,7 +47258,7 @@ const f3 = ({
|
|
|
47258
47258
|
oe || (b ? "course-overview" : "header-banner")
|
|
47259
47259
|
), window.location.pathname) {
|
|
47260
47260
|
const Re = window.location.pathname.match(
|
|
47261
|
-
new RegExp("(courses/([^/]+)/([^/]+)|
|
|
47261
|
+
new RegExp("(courses/([^/]+)/([^/]+)|courses/[^/]+/([^/]+))")
|
|
47262
47262
|
);
|
|
47263
47263
|
if (Re) {
|
|
47264
47264
|
const [, , je, Me, $e] = Re;
|
|
@@ -50433,7 +50433,7 @@ const voe = ({
|
|
|
50433
50433
|
gtmEvent: "event"
|
|
50434
50434
|
},
|
|
50435
50435
|
microcourse: {
|
|
50436
|
-
basePath: "/
|
|
50436
|
+
basePath: "/courses",
|
|
50437
50437
|
className: "course",
|
|
50438
50438
|
gtmEvent: "microcourse-overview"
|
|
50439
50439
|
// 'overview' is needed for legacy reasons
|
|
@@ -51228,7 +51228,7 @@ const _oe = ({
|
|
|
51228
51228
|
children: /* @__PURE__ */ h.jsx(
|
|
51229
51229
|
ja,
|
|
51230
51230
|
{
|
|
51231
|
-
href: F ? `/
|
|
51231
|
+
href: F ? `/courses/${s}/${x}` : void 0,
|
|
51232
51232
|
fallbackElement: "span",
|
|
51233
51233
|
className: "inner",
|
|
51234
51234
|
gtmContext: `MicrocourseOutline${V3(A)}`,
|
|
@@ -16,7 +16,7 @@ interface Props {
|
|
|
16
16
|
/** Callback when search is clicked - when provided, search renders as a button that triggers this callback */
|
|
17
17
|
onSearchClick?: () => void;
|
|
18
18
|
/** Whether to use the new search modal (v2) or old search (v1). Defaults to false for backwards compatibility */
|
|
19
|
-
|
|
19
|
+
isV2Search?: boolean;
|
|
20
20
|
}
|
|
21
21
|
export declare enum NAVIGATION_MENUS {
|
|
22
22
|
NAVIGATION = "navigation",
|
|
@@ -24,5 +24,5 @@ export declare enum NAVIGATION_MENUS {
|
|
|
24
24
|
ACCOUNT = "account-navigation",
|
|
25
25
|
SITE = "site-navigation"
|
|
26
26
|
}
|
|
27
|
-
declare const Header: ({ showNavigation, showLanguageUnavailableMessage, showLanguageSwitcher, onLanguageSwitcherClick, suprSendWorkspaceKey, locale, suprSendTranslations, onSearchClick,
|
|
27
|
+
declare const Header: ({ showNavigation, showLanguageUnavailableMessage, showLanguageSwitcher, onLanguageSwitcherClick, suprSendWorkspaceKey, locale, suprSendTranslations, onSearchClick, isV2Search, }: Props) => import("react/jsx-runtime").JSX.Element | null;
|
|
28
28
|
export default Header;
|