highsoft-ui 1.0.177 → 1.0.179
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/CLAUDE.md +130 -0
- package/dist/Accordion-NPNV0Rdr.js +73 -0
- package/dist/{Breadcrumb-CyaMrJfW.js → Breadcrumb-BQzfkMH0.js} +2 -2
- package/dist/{BrowserFrame-_qNod9an.js → BrowserFrame-Bs2fIKzy.js} +4 -4
- package/dist/{Button-DFcjZsF4.js → Button-DtCIaVhq.js} +1 -1
- package/dist/{ButtonGroup-dTeFICBP.js → ButtonGroup-6tLQmpEH.js} +1 -1
- package/dist/{Checkbox-X7FrR_6F.js → Checkbox-CqFkzrVk.js} +1 -1
- package/dist/{CodeBlock-rPC0sIvR.js → CodeBlock-BM_Vefdj.js} +4 -4
- package/dist/{CookiePolicyModal-D-IOZSoU.js → CookiePolicyModal-BXIr4v-D.js} +2 -2
- package/dist/{CopyCode-DS2T69as.js → CopyCode-4IXo0bTs.js} +2 -2
- package/dist/{Dropdown-Ck7IASlc.js → Dropdown-BgY76epB.js} +1 -1
- package/dist/{Footer-8oEBlwJ5.js → Footer-hAk1PceF.js} +7 -7
- package/dist/{FooterBottom-BPuLsXI1.js → FooterBottom-CT_vF7Wo.js} +1 -1
- package/dist/{FooterHelp-99gRcRar.js → FooterHelp-VHhF9ED6.js} +1 -1
- package/dist/{FooterLinks-DXTz-d8e.js → FooterLinks-DsCivmiy.js} +2 -2
- package/dist/{Header-DqE0a41T.js → Header-CEV_MWep.js} +24 -24
- package/dist/{InputGrouped-DNiMvxxa.js → InputGrouped-y1UNKVd4.js} +11 -11
- package/dist/{Label-DTIv_3zs.js → Label-DwiX1ZiD.js} +1 -1
- package/dist/{List-CdwPhveO.js → List-gHC2SJgK.js} +1 -1
- package/dist/{LogoCarousel-BsmxIlzx.js → LogoCarousel-e-1WK43R.js} +3 -3
- package/dist/{NewsletterSignup-CTbjNSnk.js → NewsletterSignup-Dk1cwk-W.js} +2 -2
- package/dist/{Notification-CTSGBhJk.js → Notification-D93nzw6M.js} +3 -3
- package/dist/{PrefPanel-CwrWfi3R.js → PrefPanel-DTbo6QDa.js} +7 -7
- package/dist/{PrevNextNav-BwP-lRaG.js → PrevNextNav-C406puU6.js} +2 -2
- package/dist/ProductNotice-CtgDdo5_.js +144 -0
- package/dist/{RoadmapDetails-B-2pgXHz.js → RoadmapDetails-DIByXo2r.js} +5 -5
- package/dist/{SearchDropdown-g3g30peB.js → SearchDropdown-cml8LqKq.js} +1 -1
- package/dist/{VideoPlayer-C0pHiwYx.js → VideoPlayer-Cg9MFkP5.js} +7 -7
- package/dist/{VideoPlayerModal-Bh2u5h8g.js → VideoPlayerModal-BzYnI2f2.js} +2 -2
- package/dist/{YoutubeModal-B6yOEOaP.js → YoutubeModal-8iX4sMik.js} +1 -1
- package/dist/components/Accordion/index.js +2 -0
- package/dist/components/Breadcrumb/index.js +1 -1
- package/dist/components/BrowserFrame/index.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/CodeBlock/index.js +1 -1
- package/dist/components/CopyCode/index.js +1 -1
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/Figure/ZoomImage.js +2 -2
- package/dist/components/Footer/CookiePolicyModal.js +1 -1
- package/dist/components/Footer/FooterBottom.js +1 -1
- package/dist/components/Footer/FooterHelp.js +1 -1
- package/dist/components/Footer/FooterLinks.js +1 -1
- package/dist/components/Footer/YoutubeModal.js +1 -1
- package/dist/components/Footer/index.js +1 -1
- package/dist/components/Header/index.js +1 -1
- package/dist/components/InputGrouped/index.js +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/LogoCarousel/index.js +1 -1
- package/dist/components/Modal/ModalContactFooter.js +2 -2
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/NewsletterSignup/index.js +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/PrefPanel/index.js +1 -1
- package/dist/components/PrevNextNav/index.js +1 -1
- package/dist/components/ProductNotice/index.js +4 -0
- package/dist/components/ProductNotice/tracking.js +25 -0
- package/dist/components/PromoBanner/index.js +2 -2
- package/dist/components/RoadmapDetails/index.js +1 -1
- package/dist/components/Search/SearchDialog.js +12 -12
- package/dist/components/Search/index.js +2 -2
- package/dist/components/SearchDropdown/index.js +1 -1
- package/dist/components/Sidebar/NavDisclosure.js +1 -1
- package/dist/components/Sidebar/NavGroup.js +1 -1
- package/dist/components/Sidebar/Sidebar.js +10 -10
- package/dist/components/Sidebar/SidebarLayout.js +1 -1
- package/dist/components/Sidebar/SidebarSwitcher.js +1 -1
- package/dist/components/VideoCover/index.js +1 -1
- package/dist/components/VideoPlayer/VideoPlayerModal.js +1 -1
- package/dist/components/VideoPlayer/index.js +1 -1
- package/dist/{create-element-DHbI55TT.js → create-element-ChcNUMOL.js} +1 -1
- package/dist/{esm-DQBytmnt.js → esm-CqcQTziN.js} +57 -29
- package/dist/highsoft-ui.css +1 -1
- package/dist/lib/components/Accordion/index.d.ts +24 -0
- package/dist/lib/components/ProductNotice/index.d.ts +60 -0
- package/dist/lib/components/ProductNotice/tracking.d.ts +40 -0
- package/dist/lib/main.d.ts +6 -0
- package/dist/lib/tracking.d.ts +52 -0
- package/dist/main.js +61 -57
- package/dist/{prism-light-D9OePufj.js → prism-light-B3J0jr_a.js} +1 -1
- package/dist/tracking.js +47 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DetailsHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
/** The title element: `<h2>`–`<h6>`. Unset, the title is plain text. */
|
|
3
|
+
export type AccordionHeadingLevel = 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
export interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Renders every item's title as an `<h2>`–`<h6>` (default: plain text). An item's own `headingLevel` wins. */
|
|
6
|
+
headingLevel?: AccordionHeadingLevel;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const Accordion: import('react').ForwardRefExoticComponent<AccordionProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export interface AccordionItemProps extends Omit<DetailsHTMLAttributes<HTMLDetailsElement>, 'title' | 'open' | 'onToggle'> {
|
|
11
|
+
/** The headline. It is the `<summary>`: a click anywhere on it opens or closes the item. */
|
|
12
|
+
title: ReactNode;
|
|
13
|
+
/** Renders the title as an `<h2>`–`<h6>` inside the summary. Defaults to the Accordion's, else plain text. */
|
|
14
|
+
headingLevel?: AccordionHeadingLevel;
|
|
15
|
+
/** Controlled open state. Pair with `onOpenChange`. */
|
|
16
|
+
open?: boolean;
|
|
17
|
+
/** Initial open state when uncontrolled (default `false`) */
|
|
18
|
+
defaultOpen?: boolean;
|
|
19
|
+
/** Called with the new state whenever the item opens or closes */
|
|
20
|
+
onOpenChange?: (open: boolean) => void;
|
|
21
|
+
/** The body shown while open: text, links, a row of Buttons */
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare const AccordionItem: import('react').ForwardRefExoticComponent<AccordionItemProps & import('react').RefAttributes<HTMLDetailsElement>>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, HTMLAttributes, MouseEvent, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { ProductIconName } from '../ProductIcon';
|
|
3
|
+
import { Tracker } from '../../tracking';
|
|
4
|
+
import { ProductNoticeActionTracking, ProductNoticeTracking } from './tracking';
|
|
5
|
+
export type { ProductNoticeActionTracking, ProductNoticeInteraction, ProductNoticeTracking, ProductNoticeTrackingParams } from './tracking';
|
|
6
|
+
export { PRODUCT_NOTICE_EVENTS } from './tracking';
|
|
7
|
+
/** One of the (at most two) buttons of the notice. */
|
|
8
|
+
export interface ProductNoticeAction {
|
|
9
|
+
/** Button text. Also sent as `link_text` on the click event. */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Link destination — the button renders as an `<a>`. Sent as `link_url`. */
|
|
12
|
+
href?: string;
|
|
13
|
+
/** Click handler, for an action that isn't a navigation. */
|
|
14
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
15
|
+
iconLeft?: ReactNode;
|
|
16
|
+
iconRight?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Extra props forwarded to the Button (`target`, `rel`, `aria-label`, …).
|
|
19
|
+
* Each action renders twice, once per layout, so don't pass an `id`.
|
|
20
|
+
*/
|
|
21
|
+
buttonProps?: AnchorHTMLAttributes<HTMLAnchorElement> & Record<string, unknown>;
|
|
22
|
+
/** Override this button's click event, or `false` to not track it. */
|
|
23
|
+
tracking?: ProductNoticeActionTracking | false;
|
|
24
|
+
}
|
|
25
|
+
interface ProductNoticeBaseProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
26
|
+
/** Semibold run-in lead, e.g. "Highcharts Orbit is here." */
|
|
27
|
+
title?: ReactNode;
|
|
28
|
+
/** Regular text after the title. */
|
|
29
|
+
description?: ReactNode;
|
|
30
|
+
/** Shorter description for the compact layout (under 760px). Defaults to `description`. */
|
|
31
|
+
compactDescription?: ReactNode;
|
|
32
|
+
/** One or two buttons. */
|
|
33
|
+
actions?: readonly [ProductNoticeAction, ProductNoticeAction?];
|
|
34
|
+
/** Show the close button. Default `true`. */
|
|
35
|
+
closable?: boolean;
|
|
36
|
+
/** Called after the notice hides itself. */
|
|
37
|
+
onClose?: () => void;
|
|
38
|
+
/** Accessible name of the close button. Default `'Close'`. */
|
|
39
|
+
closeLabel?: string;
|
|
40
|
+
/** Sends this notice's events instead of the nearest `TrackingProvider`. */
|
|
41
|
+
tracker?: Tracker;
|
|
42
|
+
}
|
|
43
|
+
interface ProductNoticeProductProps {
|
|
44
|
+
/** Product whose icon leads the notice; also its default `promotion_id` and `item_id`. Default `'orbit'`. */
|
|
45
|
+
product?: ProductIconName;
|
|
46
|
+
icon?: undefined;
|
|
47
|
+
/** Event names and parameters, or `false` to send nothing. */
|
|
48
|
+
tracking?: ProductNoticeTracking | false;
|
|
49
|
+
}
|
|
50
|
+
interface ProductNoticeIconProps {
|
|
51
|
+
product?: undefined;
|
|
52
|
+
/** Any other logo or image in place of the product icon. Decorative. */
|
|
53
|
+
icon: ReactElement;
|
|
54
|
+
/** With no product to report as, a tracked notice needs an `id`. */
|
|
55
|
+
tracking: (ProductNoticeTracking & {
|
|
56
|
+
id: string;
|
|
57
|
+
}) | false;
|
|
58
|
+
}
|
|
59
|
+
export type ProductNoticeProps = ProductNoticeBaseProps & (ProductNoticeProductProps | ProductNoticeIconProps);
|
|
60
|
+
export declare function ProductNotice({ product, icon, title, description, compactDescription, actions, closable, onClose, closeLabel, tracking, tracker, className, ...props }: ProductNoticeProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Tracker, TrackingItem, TrackingParams } from '../../tracking';
|
|
2
|
+
/** The interactions a ProductNotice reports. */
|
|
3
|
+
export type ProductNoticeInteraction = 'view' | 'click' | 'close';
|
|
4
|
+
export type ProductNoticeTrackingParams = TrackingParams;
|
|
5
|
+
export interface ProductNoticeTracking {
|
|
6
|
+
/** Identifies the banner in reports, sent as `promotion_id`. Defaults to `product`. */
|
|
7
|
+
id?: string;
|
|
8
|
+
/** Readable name, sent as `promotion_name`. Defaults to `id`. */
|
|
9
|
+
name?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The event name for each interaction; `false` skips it. Defaults:
|
|
12
|
+
* `view_promotion`, `select_promotion`, `dismiss_promotion`.
|
|
13
|
+
*/
|
|
14
|
+
events?: Partial<Record<ProductNoticeInteraction, string | false>>;
|
|
15
|
+
/**
|
|
16
|
+
* The GA4 `items` sent with the view and click events. GA4 requires them on
|
|
17
|
+
* `view_promotion`, and the Promotions report leaves out a `select_promotion`
|
|
18
|
+
* without them. Defaults to the product, `[{ item_id: 'orbit' }]` (with a
|
|
19
|
+
* custom `icon`, the `id`); `false` sends none.
|
|
20
|
+
*/
|
|
21
|
+
items?: ReadonlyArray<TrackingItem> | false;
|
|
22
|
+
/** Extra parameters sent with every event, e.g. `{ creative_slot: 'shop' }`. */
|
|
23
|
+
params?: ProductNoticeTrackingParams;
|
|
24
|
+
}
|
|
25
|
+
/** Per-button override of the click event. */
|
|
26
|
+
export interface ProductNoticeActionTracking {
|
|
27
|
+
/** Event name for this button's click; `false` skips it. */
|
|
28
|
+
event?: string | false;
|
|
29
|
+
/** Extra parameters for this button's click, e.g. `{ cta: 'contact_sales' }`. */
|
|
30
|
+
params?: ProductNoticeTrackingParams;
|
|
31
|
+
}
|
|
32
|
+
export declare const PRODUCT_NOTICE_EVENTS: Record<ProductNoticeInteraction, string>;
|
|
33
|
+
/**
|
|
34
|
+
* `product` is what the notice promotes: the default `promotion_id` and
|
|
35
|
+
* `item_id`. It's `undefined` for a notice with a custom icon, which names
|
|
36
|
+
* itself with `tracking.id`.
|
|
37
|
+
*/
|
|
38
|
+
export declare function trackProductNotice(send: Tracker, tracking: ProductNoticeTracking | false | undefined, interaction: ProductNoticeInteraction, product: string | undefined, override?: ProductNoticeActionTracking & {
|
|
39
|
+
defaults?: ProductNoticeTrackingParams;
|
|
40
|
+
}): void;
|
package/dist/lib/main.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export type { InputGroupedProps, SelectGroupedProps, FormGroupProps, FormRowProp
|
|
|
17
17
|
export type { BoxProps } from './components/Box';
|
|
18
18
|
export type { HeaderProps, HeaderPosition, SubHeaderItem } from './components/Header';
|
|
19
19
|
export { Box } from './components/Box';
|
|
20
|
+
export { Accordion, AccordionItem } from './components/Accordion';
|
|
21
|
+
export type { AccordionProps, AccordionItemProps, AccordionHeadingLevel } from './components/Accordion';
|
|
20
22
|
export { BrowserFrame } from './components/BrowserFrame';
|
|
21
23
|
export type { BrowserFrameProps, BrowserFrameAction } from './components/BrowserFrame';
|
|
22
24
|
export { Figure } from './components/Figure';
|
|
@@ -79,6 +81,10 @@ export { PrefPanel } from './components/PrefPanel';
|
|
|
79
81
|
export { PrevNextNav } from './components/PrevNextNav';
|
|
80
82
|
export { PromoBanner } from './components/PromoBanner';
|
|
81
83
|
export type { PromoBannerProps, PromoBannerAction, PromoBannerProduct } from './components/PromoBanner';
|
|
84
|
+
export { ProductNotice, PRODUCT_NOTICE_EVENTS } from './components/ProductNotice';
|
|
85
|
+
export type { ProductNoticeProps, ProductNoticeAction, ProductNoticeActionTracking, ProductNoticeInteraction, ProductNoticeTracking, ProductNoticeTrackingParams } from './components/ProductNotice';
|
|
86
|
+
export { TrackingProvider, useTracker, dataLayerTracker, gtagTracker } from './tracking';
|
|
87
|
+
export type { Tracker, TrackingEvent, TrackingItem, TrackingParams } from './tracking';
|
|
82
88
|
export { Breadcrumb } from './components/Breadcrumb';
|
|
83
89
|
export type { BreadcrumbProps, BreadcrumbItem, BreadcrumbSeparator } from './components/Breadcrumb';
|
|
84
90
|
export type { PrevNextNavProps, PrevNextNavItem, PrevNextNavBack } from './components/PrevNextNav';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** One entry of a GA4 `items` array; needs an `item_id` or an `item_name`. */
|
|
3
|
+
export type TrackingItem = Record<string, string | number | undefined>;
|
|
4
|
+
/**
|
|
5
|
+
* Event parameters, GA4 style: snake_case keys, primitive values, plus the
|
|
6
|
+
* `items` array GA4's ecommerce and promotion events carry.
|
|
7
|
+
*/
|
|
8
|
+
export type TrackingParams = Record<string, string | number | boolean | undefined | ReadonlyArray<TrackingItem>>;
|
|
9
|
+
/** One analytics event: a GA4 event name and its parameters. */
|
|
10
|
+
export interface TrackingEvent {
|
|
11
|
+
event: string;
|
|
12
|
+
params: TrackingParams;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Sends an event to whatever analytics the site runs. Components call it on
|
|
16
|
+
* the interactions they track; the site decides where the event goes.
|
|
17
|
+
*/
|
|
18
|
+
export type Tracker = (event: TrackingEvent) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Google Tag Manager: pushes `{ event, ...params }` onto the data layer, where
|
|
21
|
+
* a Custom Event trigger picks it up. `name` is the data layer variable when a
|
|
22
|
+
* site renamed it in its GTM snippet.
|
|
23
|
+
*/
|
|
24
|
+
export declare function dataLayerTracker({ name }?: {
|
|
25
|
+
name?: string;
|
|
26
|
+
}): Tracker;
|
|
27
|
+
/**
|
|
28
|
+
* Google tag (gtag.js): `gtag('event', event, params)`. `sendTo` routes the
|
|
29
|
+
* event to specific GA4 measurement IDs (`'G-XXXXXXX'`) when the page loads
|
|
30
|
+
* more than one. Does nothing until the gtag snippet has run.
|
|
31
|
+
*/
|
|
32
|
+
export declare function gtagTracker({ sendTo }?: {
|
|
33
|
+
sendTo?: string | Array<string>;
|
|
34
|
+
}): Tracker;
|
|
35
|
+
/**
|
|
36
|
+
* Sets the tracker for everything inside it. Wrap the app once, and every
|
|
37
|
+
* tracked component sends its events there:
|
|
38
|
+
*
|
|
39
|
+
* ```tsx
|
|
40
|
+
* <TrackingProvider tracker={dataLayerTracker()}>…</TrackingProvider>
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare function TrackingProvider({ tracker, children }: {
|
|
44
|
+
tracker?: Tracker;
|
|
45
|
+
children?: ReactNode;
|
|
46
|
+
}): import("react").JSX.Element;
|
|
47
|
+
/**
|
|
48
|
+
* The tracker a component should use: its own `tracker` prop if it has one,
|
|
49
|
+
* otherwise the nearest `TrackingProvider`'s. The returned function never
|
|
50
|
+
* throws — an analytics failure must not break the click that triggered it.
|
|
51
|
+
*/
|
|
52
|
+
export declare function useTracker(tracker?: Tracker): Tracker;
|
package/dist/main.js
CHANGED
|
@@ -1,59 +1,63 @@
|
|
|
1
1
|
import { c as e, d as t, r as n, s as r, u as i } from "./utils-bAjntFD8.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import {
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import {
|
|
27
|
-
import { t as
|
|
28
|
-
import { n as
|
|
29
|
-
import {
|
|
30
|
-
import { t as
|
|
31
|
-
import {
|
|
32
|
-
import { t as
|
|
33
|
-
import {
|
|
34
|
-
import { t as
|
|
35
|
-
import { n as
|
|
36
|
-
import { t as
|
|
37
|
-
import { n as
|
|
38
|
-
import {
|
|
39
|
-
import { t as
|
|
40
|
-
import { t as
|
|
41
|
-
import { t as
|
|
42
|
-
import {
|
|
43
|
-
import { t as
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
2
|
+
import { TrackingProvider as a, dataLayerTracker as o, gtagTracker as s, useTracker as c } from "./tracking.js";
|
|
3
|
+
import { t as l } from "./Box-BZgeSeCV.js";
|
|
4
|
+
import { t as u } from "./Button-DtCIaVhq.js";
|
|
5
|
+
import { n as d } from "./Typography-DI1AkqiO.js";
|
|
6
|
+
import { n as f, t as p } from "./Accordion-NPNV0Rdr.js";
|
|
7
|
+
import { t as m } from "./BrowserFrame-Bs2fIKzy.js";
|
|
8
|
+
import { t as h } from "./Icon-DJTgdvsG.js";
|
|
9
|
+
import { Figure as g } from "./components/Figure/index.js";
|
|
10
|
+
import { t as _ } from "./CopyCode-4IXo0bTs.js";
|
|
11
|
+
import { t as v } from "./FrameworkIcon-B8GmMx0r.js";
|
|
12
|
+
import { t as y } from "./CodeBlock-BM_Vefdj.js";
|
|
13
|
+
import { n as b, t as x } from "./ClientLogo-Dj7K48YL.js";
|
|
14
|
+
import { t as S } from "./LogoCarousel-e-1WK43R.js";
|
|
15
|
+
import { t as C } from "./Link-CYR92_U0.js";
|
|
16
|
+
import { t as w } from "./ProductIcon-Cr6E2K9a.js";
|
|
17
|
+
import { t as T } from "./ButtonGroup-6tLQmpEH.js";
|
|
18
|
+
import { t as E } from "./InputSolo-CbnsJlJu.js";
|
|
19
|
+
import { t as D } from "./SearchDropdown-cml8LqKq.js";
|
|
20
|
+
import { i as O, n as k, r as A, t as j } from "./InputGrouped-y1UNKVd4.js";
|
|
21
|
+
import { t as M } from "./Container-BDssaLig.js";
|
|
22
|
+
import { t as N } from "./DiscordInvite-DfPVlJ5G.js";
|
|
23
|
+
import { t as P } from "./Heading-DNDHqYWO.js";
|
|
24
|
+
import { n as F, t as I } from "./List-gHC2SJgK.js";
|
|
25
|
+
import { n as L, t as R } from "./Features-BQ5o3wcc.js";
|
|
26
|
+
import { t as z } from "./Logo-Bz0G2G-k.js";
|
|
27
|
+
import { t as B } from "./NewsletterSignup-Dk1cwk-W.js";
|
|
28
|
+
import { n as V, r as H, t as U } from "./Dropdown-BgY76epB.js";
|
|
29
|
+
import { t as W } from "./PrefPanel-DTbo6QDa.js";
|
|
30
|
+
import { n as G, t as K } from "./Label-DwiX1ZiD.js";
|
|
31
|
+
import { VideoCover as q } from "./components/VideoCover/index.js";
|
|
32
|
+
import { t as J } from "./VideoPlayer-Cg9MFkP5.js";
|
|
33
|
+
import { t as Y } from "./VideoPlayerModal-BzYnI2f2.js";
|
|
34
|
+
import { t as X } from "./Footer-hAk1PceF.js";
|
|
35
|
+
import { n as Z } from "./GPTInput-g460kfc6.js";
|
|
36
|
+
import { t as Q } from "./Notification-D93nzw6M.js";
|
|
37
|
+
import { n as $, t as ee } from "./Header-CEV_MWep.js";
|
|
38
|
+
import { t as te } from "./Tabs-TRXBM5Zr.js";
|
|
39
|
+
import { n as ne, t as re } from "./RadioBox-C7bDjItJ.js";
|
|
40
|
+
import { n as ie, t as ae } from "./Checkbox-CqFkzrVk.js";
|
|
41
|
+
import { t as oe } from "./Toggle-BHjptO7-.js";
|
|
42
|
+
import { t as se } from "./ToggleCard-kMpxzTnh.js";
|
|
43
|
+
import { t as ce } from "./ToggleList-Dh7wb2-W.js";
|
|
44
|
+
import { Modal as le } from "./components/Modal/index.js";
|
|
45
|
+
import { t as ue } from "./RoadmapDetails-DIByXo2r.js";
|
|
46
|
+
import { ModalContactFooter as de } from "./components/Modal/ModalContactFooter.js";
|
|
47
|
+
import { useOptionalSidebarLayout as fe, useSidebarLayout as pe } from "./components/Sidebar/context.js";
|
|
48
|
+
import { SidebarLayout as me, SidebarMain as he } from "./components/Sidebar/SidebarLayout.js";
|
|
49
|
+
import { SidebarResizer as ge } from "./components/Sidebar/SidebarResizer.js";
|
|
50
|
+
import { Sidebar as _e, SidebarBody as ve, SidebarHeader as ye, SidebarSection as be } from "./components/Sidebar/Sidebar.js";
|
|
51
|
+
import { SidebarSwitcher as xe } from "./components/Sidebar/SidebarSwitcher.js";
|
|
52
|
+
import { NavItem as Se } from "./components/Sidebar/NavItem.js";
|
|
53
|
+
import { NavGroup as Ce } from "./components/Sidebar/NavGroup.js";
|
|
54
|
+
import { NavDisclosure as we } from "./components/Sidebar/NavDisclosure.js";
|
|
53
55
|
import "./components/Sidebar/index.js";
|
|
54
|
-
import { t as
|
|
55
|
-
import { PromoBanner as
|
|
56
|
-
import {
|
|
57
|
-
import { t as
|
|
58
|
-
import {
|
|
59
|
-
|
|
56
|
+
import { t as Te } from "./PrevNextNav-C406puU6.js";
|
|
57
|
+
import { PromoBanner as Ee } from "./components/PromoBanner/index.js";
|
|
58
|
+
import { PRODUCT_NOTICE_EVENTS as De } from "./components/ProductNotice/tracking.js";
|
|
59
|
+
import { t as Oe } from "./ProductNotice-CtgDdo5_.js";
|
|
60
|
+
import { t as ke } from "./Breadcrumb-BQzfkMH0.js";
|
|
61
|
+
import { t as Ae } from "./TableOfContents-d26S7KYx.js";
|
|
62
|
+
import { ThemeLoader as je, themeLoaderScript as Me } from "./components/ThemeLoader/index.js";
|
|
63
|
+
export { p as Accordion, f as AccordionItem, l as Box, ke as Breadcrumb, m as BrowserFrame, u as Button, T as ButtonGroup, ae as Checkbox, ie as CheckboxGroup, x as ClientLogo, y as CodeBlock, M as Container, _ as CopyCode, N as DiscordInvite, U as Dropdown, V as DropdownItem, H as DropdownSeparator, R as FeatureItem, L as Features, g as Figure, X as Footer, j as FormGroup, k as FormRow, v as FrameworkIcon, Z as GPTInput, ee as Header, P as Heading, h as Icon, A as InputGrouped, E as InputSolo, K as Label, C as Link, I as List, F as ListItem, z as Logo, S as LogoCarousel, le as Modal, de as ModalContactFooter, we as NavDisclosure, Ce as NavGroup, Se as NavItem, G as NewTag, B as NewsletterSignup, Q as Notification, De as PRODUCT_NOTICE_EVENTS, W as PrefPanel, Te as PrevNextNav, w as ProductIcon, Oe as ProductNotice, Ee as PromoBanner, re as RadioBox, ne as RadioBoxGroup, ue as RoadmapDetails, D as SearchDropdown, O as SelectGrouped, _e as Sidebar, ve as SidebarBody, ye as SidebarHeader, me as SidebarLayout, he as SidebarMain, ge as SidebarResizer, be as SidebarSection, xe as SidebarSwitcher, $ as SubHeader, Ae as TableOfContents, te as Tabs, je as ThemeLoader, i as ThemeProvider, oe as Toggle, se as ToggleCard, ce as ToggleList, a as TrackingProvider, d as Typography, q as VideoCover, J as VideoPlayer, Y as VideoPlayerModal, b as clientLogoLabels, o as dataLayerTracker, s as gtagTracker, Me as themeLoaderScript, n as useClipboard, t as useNextTheme, fe as useOptionalSidebarLayout, pe as useSidebarLayout, r as useSuccessFlash, e as useTheme, c as useTracker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "./chunk-jwUa06l-.js";
|
|
2
|
-
import { r as t, t as n } from "./create-element-
|
|
2
|
+
import { r as t, t as n } from "./create-element-ChcNUMOL.js";
|
|
3
3
|
import r from "react";
|
|
4
4
|
//#region node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
5
5
|
function i(e, t) {
|
package/dist/tracking.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContext as e, useCallback as t, useContext as n } from "react";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
//#region lib/tracking.tsx
|
|
5
|
+
function i() {
|
|
6
|
+
return typeof window > "u" ? void 0 : window;
|
|
7
|
+
}
|
|
8
|
+
function a(e) {
|
|
9
|
+
return Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0));
|
|
10
|
+
}
|
|
11
|
+
function o({ name: e = "dataLayer" } = {}) {
|
|
12
|
+
return ({ event: t, params: n }) => {
|
|
13
|
+
let r = i();
|
|
14
|
+
r && (Array.isArray(r[e]) || (r[e] = []), r[e].push({
|
|
15
|
+
event: t,
|
|
16
|
+
...a(n)
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function s({ sendTo: e } = {}) {
|
|
21
|
+
return ({ event: t, params: n }) => {
|
|
22
|
+
let r = i()?.gtag;
|
|
23
|
+
typeof r == "function" && r("event", t, {
|
|
24
|
+
...a(n),
|
|
25
|
+
...e ? { send_to: e } : {}
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
var c = e(void 0);
|
|
30
|
+
function l({ tracker: e, children: t }) {
|
|
31
|
+
return /* @__PURE__ */ r(c.Provider, {
|
|
32
|
+
value: e,
|
|
33
|
+
children: t
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function u(e) {
|
|
37
|
+
let r = n(c), i = e ?? r;
|
|
38
|
+
return t((e) => {
|
|
39
|
+
if (i) try {
|
|
40
|
+
i(e);
|
|
41
|
+
} catch (e) {
|
|
42
|
+
console.error("[highsoft-ui] tracker failed", e);
|
|
43
|
+
}
|
|
44
|
+
}, [i]);
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { l as TrackingProvider, o as dataLayerTracker, s as gtagTracker, u as useTracker };
|