@ably/ui 15.6.0-dev.1a416b3 → 15.6.0-dev.274a3001

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.d.ts CHANGED
@@ -343,51 +343,28 @@ declare module '@ably/ui/core/DropdownMenu' {
343
343
  import { ReactNode } from "react";
344
344
  import { IconName } from "@ably/ui/core/Icon/types";
345
345
  type DropdownMenuProps = {
346
- /**
347
- * The content to be displayed within the dropdown menu.
348
- */
349
346
  children: ReactNode;
350
347
  };
351
348
  type TriggerProps = {
352
- /**
353
- * The content to be displayed within the trigger element.
354
- */
355
349
  children: ReactNode;
356
- /**
357
- * Additional class names to apply to the trigger element.
358
- */
359
- triggerClassNames?: string;
360
- /**
361
- * A description for the trigger element, used for accessibility purposes.
362
- */
363
- description?: string;
350
+ additionalTriggerCSS?: string;
364
351
  };
365
352
  type ContentProps = {
366
- /**
367
- * The content to be displayed within the dropdown menu.
368
- */
369
353
  children: ReactNode;
370
- /**
371
- * The position of the dropdown menu relative to the trigger element.
372
- * Defaults to "right".
373
- */
374
354
  anchorPosition?: string;
375
- /**
376
- * Additional class names to apply to the content container.
377
- */
378
- contentClassNames?: string;
355
+ additionalContentCSS?: string;
379
356
  };
380
357
  type LinkProps = {
381
358
  url: string;
382
359
  title: string;
383
- subtitle?: string;
384
- iconName?: IconName;
385
- children?: ReactNode;
360
+ subtitle: string;
361
+ iconName: IconName;
362
+ children: ReactNode;
386
363
  };
387
364
  const DropdownMenu: {
388
365
  ({ children }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
389
- Trigger: ({ children, triggerClassNames, description, }: TriggerProps) => import("react/jsx-runtime").JSX.Element;
390
- Content: ({ children, anchorPosition, contentClassNames, }: ContentProps) => import("react/jsx-runtime").JSX.Element | null;
366
+ Trigger: ({ children, additionalTriggerCSS }: TriggerProps) => import("react/jsx-runtime").JSX.Element;
367
+ Content: ({ children, anchorPosition, additionalContentCSS, }: ContentProps) => import("react/jsx-runtime").JSX.Element | null;
391
368
  Link: ({ url, title, subtitle, iconName, children }: LinkProps) => import("react/jsx-runtime").JSX.Element;
392
369
  };
393
370
  export default DropdownMenu;
@@ -440,7 +417,7 @@ type FlashProps = {
440
417
  };
441
418
  type FlashesProps = {
442
419
  flashes: {
443
- items: FlashProps[];
420
+ items: Pick<FlashProps, "type" | "content">[];
444
421
  };
445
422
  };
446
423
  type BackendFlashesProps = {
@@ -521,10 +498,10 @@ declare module '@ably/ui/core/Footer' {
521
498
  type FooterProps = {
522
499
  paths: {
523
500
  ablyStack: string;
524
- highestPerformer: string;
525
- highestUserAdoption: string;
526
501
  bestSupport: string;
527
- fastestImplementation: string;
502
+ highPerformer: string;
503
+ usersMostLikely: string;
504
+ bestMeetsRequirements: string;
528
505
  };
529
506
  urlBase: string;
530
507
  statusUrl: string;
@@ -549,32 +526,6 @@ export type ThemedScrollpoint = {
549
526
  id: string;
550
527
  className: string;
551
528
  };
552
- /**
553
- * Represents the state of the user session in the header.
554
- */
555
- export type HeaderSessionState = {
556
- /**
557
- * Indicates if the user is signed in.
558
- */
559
- signedIn: boolean;
560
- /**
561
- * Information required to log out the user.
562
- */
563
- logOut: {
564
- /**
565
- * Token used for logging out.
566
- */
567
- token: string;
568
- /**
569
- * URL to log out the user.
570
- */
571
- href: string;
572
- };
573
- /**
574
- * Name of the user's account.
575
- */
576
- accountName: string;
577
- };
578
529
  /**
579
530
  * Props for the Header component.
580
531
  */
@@ -619,7 +570,31 @@ export type HeaderProps = {
619
570
  /**
620
571
  * State of the user session.
621
572
  */
622
- sessionState?: HeaderSessionState;
573
+ sessionState?: {
574
+ /**
575
+ * Indicates if the user is signed in.
576
+ */
577
+ signedIn: boolean;
578
+ /**
579
+ * Account information.
580
+ */
581
+ account: {
582
+ /**
583
+ * Links related to the account.
584
+ */
585
+ links: {
586
+ /**
587
+ * Dashboard link information.
588
+ */
589
+ dashboard: {
590
+ /**
591
+ * URL for the dashboard link.
592
+ */
593
+ href: string;
594
+ };
595
+ };
596
+ };
597
+ };
623
598
  /**
624
599
  * Array of themed scrollpoints. The header will change its appearance based on the scrollpoint in view.
625
600
  */
@@ -751,9 +726,6 @@ export type MeganavPaths = {
751
726
  logo?: string;
752
727
  iconSprites: string;
753
728
  ablyStack: string;
754
- blogThumb1: string;
755
- blogThumb2: string;
756
- blogThumb3: string;
757
729
  awsLogo?: string;
758
730
  };
759
731
  export type MeganavPanels = {
@@ -788,23 +760,26 @@ export type MeganavSessionState = {
788
760
  href: string;
789
761
  };
790
762
  };
791
- type MeganavProps = {
792
- paths?: MeganavPaths;
793
- themeName: "white" | "black" | "transparentToWhite";
794
- notice?: {
795
- props: {
796
- title: string;
797
- bodyText: string;
798
- buttonLink: string;
799
- buttonLabel: string;
800
- closeBtn: boolean;
801
- };
802
- config: {
803
- cookieId: string;
804
- noticeId: string;
763
+ export type NoticeApiProps = {
764
+ props: {
765
+ title: string;
766
+ bodyText: string;
767
+ buttonLink: string;
768
+ buttonLabel: string;
769
+ closeBtn: boolean;
770
+ };
771
+ config: {
772
+ cookieId: string;
773
+ noticeId: string | number;
774
+ options: {
805
775
  collapse: boolean;
806
776
  };
807
777
  };
778
+ };
779
+ type MeganavProps = {
780
+ paths?: MeganavPaths;
781
+ themeName: "white" | "black" | "transparentToWhite";
782
+ notice?: NoticeApiProps;
808
783
  loginLink?: string;
809
784
  urlBase?: string;
810
785
  addSearchApiKey: string;
@@ -1068,19 +1043,22 @@ function Notice({ bannerContainer, cookieId, noticeId, options }: {
1068
1043
  }
1069
1044
 
1070
1045
  declare module '@ably/ui/core/Notice' {
1071
- type NoticeProps = {
1046
+ import { ColorClass, ColorThemeSet } from "@ably/ui/core/styles/colors/types";
1047
+ export type NoticeProps = {
1072
1048
  buttonLink?: string;
1073
1049
  buttonLabel?: string;
1074
1050
  bodyText?: string;
1075
1051
  title?: string;
1076
1052
  closeBtn?: boolean;
1077
1053
  config?: {
1078
- collapse: boolean;
1079
- noticeId: string;
1054
+ options: {
1055
+ collapse: boolean;
1056
+ };
1057
+ noticeId: string | number;
1080
1058
  cookieId: string;
1081
1059
  };
1082
1060
  bgColor?: string;
1083
- textColor?: string;
1061
+ textColor?: ColorClass | ColorThemeSet;
1084
1062
  bannerContainer?: Element | null;
1085
1063
  cookieId?: string;
1086
1064
  noticeId?: string;
@@ -1484,6 +1462,13 @@ export function queryIdAll(val: any, root?: Document): NodeListOf<Element>;
1484
1462
  //# sourceMappingURL=dom-query.d.ts.map
1485
1463
  }
1486
1464
 
1465
+ declare module '@ably/ui/core/hooks/use-rails-ujs-hooks' {
1466
+ import { RefObject } from "react";
1467
+ const useRailsUjsLinks: () => RefObject<HTMLDivElement>;
1468
+ export default useRailsUjsLinks;
1469
+ //# sourceMappingURL=use-rails-ujs-hooks.d.ts.map
1470
+ }
1471
+
1487
1472
  declare module '@ably/ui/core/hubspot-chat-toggle' {
1488
1473
  export default function toggleChatWidget(params: any): (() => void) | undefined;
1489
1474
  //# sourceMappingURL=hubspot-chat-toggle.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ably/ui",
3
- "version": "15.6.0-dev.1a416b3",
3
+ "version": "15.6.0-dev.274a3001",
4
4
  "description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,8 +34,8 @@
34
34
  "@types/lodash.throttle": "^4.1.9",
35
35
  "@types/react-dom": "^18.3.0",
36
36
  "@types/svg-sprite": "^0.0.39",
37
- "@typescript-eslint/eslint-plugin": "^8.16.0",
38
- "@typescript-eslint/parser": "^8.16.0",
37
+ "@typescript-eslint/eslint-plugin": "^8.25.0",
38
+ "@typescript-eslint/parser": "^8.25.0",
39
39
  "@vitejs/plugin-react": "^4.2.1",
40
40
  "@whitespace/storybook-addon-html": "^6.1.1",
41
41
  "autoprefixer": "^10.0.2",
Binary file