@ably/ui 15.8.1 → 16.0.0-dev.0366f2cc

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.
Files changed (139) hide show
  1. package/core/.DS_Store +0 -0
  2. package/core/FeaturedLink.js +1 -1
  3. package/core/FeaturedLink.js.map +1 -1
  4. package/core/Flyout.js +1 -1
  5. package/core/Flyout.js.map +1 -1
  6. package/core/Footer/data.js +2 -0
  7. package/core/Footer/data.js.map +1 -0
  8. package/core/Footer.js +1 -1
  9. package/core/Footer.js.map +1 -1
  10. package/core/Header/HeaderLinks.js +1 -1
  11. package/core/Header/HeaderLinks.js.map +1 -1
  12. package/core/Header.js +1 -1
  13. package/core/Header.js.map +1 -1
  14. package/core/LegacyFooter/LegacyFooter.js +2 -0
  15. package/core/LegacyFooter/LegacyFooter.js.map +1 -0
  16. package/core/LegacyMeganav/LegacyMeganav.js +2 -0
  17. package/core/LegacyMeganav/LegacyMeganav.js.map +1 -0
  18. package/core/LegacyMeganav/MeganavBlogPostsList/component.js +2 -0
  19. package/core/LegacyMeganav/MeganavBlogPostsList/component.js.map +1 -0
  20. package/core/LegacyMeganav/MeganavBlogPostsList.js +2 -0
  21. package/core/LegacyMeganav/MeganavBlogPostsList.js.map +1 -0
  22. package/core/LegacyMeganav/MeganavContentCompany.js +2 -0
  23. package/core/LegacyMeganav/MeganavContentCompany.js.map +1 -0
  24. package/core/LegacyMeganav/MeganavContentDevelopers.js +2 -0
  25. package/core/LegacyMeganav/MeganavContentDevelopers.js.map +1 -0
  26. package/core/LegacyMeganav/MeganavContentProducts.js +2 -0
  27. package/core/LegacyMeganav/MeganavContentProducts.js.map +1 -0
  28. package/core/LegacyMeganav/MeganavContentUseCases.js +2 -0
  29. package/core/LegacyMeganav/MeganavContentUseCases.js.map +1 -0
  30. package/core/LegacyMeganav/MeganavControl/component.js +2 -0
  31. package/core/LegacyMeganav/MeganavControl/component.js.map +1 -0
  32. package/core/LegacyMeganav/MeganavControl.js +2 -0
  33. package/core/LegacyMeganav/MeganavControl.js.map +1 -0
  34. package/core/LegacyMeganav/MeganavControlMobileDropdown/component.js +2 -0
  35. package/core/LegacyMeganav/MeganavControlMobileDropdown/component.js.map +1 -0
  36. package/core/LegacyMeganav/MeganavControlMobileDropdown.js +2 -0
  37. package/core/LegacyMeganav/MeganavControlMobileDropdown.js.map +1 -0
  38. package/core/LegacyMeganav/MeganavControlMobilePanelClose/component.js +2 -0
  39. package/core/LegacyMeganav/MeganavControlMobilePanelClose/component.js.map +1 -0
  40. package/core/LegacyMeganav/MeganavControlMobilePanelClose.js +2 -0
  41. package/core/LegacyMeganav/MeganavControlMobilePanelClose.js.map +1 -0
  42. package/core/LegacyMeganav/MeganavControlMobilePanelOpen/component.js +2 -0
  43. package/core/LegacyMeganav/MeganavControlMobilePanelOpen/component.js.map +1 -0
  44. package/core/LegacyMeganav/MeganavControlMobilePanelOpen.js +2 -0
  45. package/core/LegacyMeganav/MeganavControlMobilePanelOpen.js.map +1 -0
  46. package/core/LegacyMeganav/MeganavItemsDesktop.js +2 -0
  47. package/core/LegacyMeganav/MeganavItemsDesktop.js.map +1 -0
  48. package/core/LegacyMeganav/MeganavItemsMobile.js +2 -0
  49. package/core/LegacyMeganav/MeganavItemsMobile.js.map +1 -0
  50. package/core/LegacyMeganav/MeganavItemsSignedIn.js.map +1 -0
  51. package/core/LegacyMeganav/MeganavSearch.js +2 -0
  52. package/core/LegacyMeganav/MeganavSearch.js.map +1 -0
  53. package/core/LegacyMeganav/MeganavSearchAutocomplete/component.js +2 -0
  54. package/core/LegacyMeganav/MeganavSearchAutocomplete/component.js.map +1 -0
  55. package/core/LegacyMeganav/MeganavSearchAutocomplete.js.map +1 -0
  56. package/core/LegacyMeganav/MeganavSearchPanel.js +2 -0
  57. package/core/LegacyMeganav/MeganavSearchPanel.js.map +1 -0
  58. package/core/LegacyMeganav/MeganavSearchSuggestions/component.js +2 -0
  59. package/core/LegacyMeganav/MeganavSearchSuggestions/component.js.map +1 -0
  60. package/core/LegacyMeganav/MeganavSearchSuggestions.js +2 -0
  61. package/core/LegacyMeganav/MeganavSearchSuggestions.js.map +1 -0
  62. package/core/LegacyMeganav/SignOutLink.js.map +1 -0
  63. package/core/LegacyMeganav/component.js +2 -0
  64. package/core/{Meganav → LegacyMeganav}/component.js.map +1 -1
  65. package/core/Meganav/.DS_Store +0 -0
  66. package/core/Meganav/MeganavMobile.js +2 -0
  67. package/core/Meganav/MeganavMobile.js.map +1 -0
  68. package/core/Meganav/MeganavPanel.js +2 -0
  69. package/core/Meganav/MeganavPanel.js.map +1 -0
  70. package/core/Meganav/data.js +2 -0
  71. package/core/Meganav/data.js.map +1 -0
  72. package/core/Meganav/images/fan-engagement-nav-image.png +0 -0
  73. package/core/Meganav/images/founders-nav-image.png +0 -0
  74. package/core/Meganav.js +1 -1
  75. package/core/Meganav.js.map +1 -1
  76. package/core/Notice/component.js +1 -1
  77. package/core/Notice/component.js.map +1 -1
  78. package/core/Notice.js +1 -1
  79. package/core/Notice.js.map +1 -1
  80. package/core/ProductTile/ProductDescription.js +1 -1
  81. package/core/ProductTile/ProductDescription.js.map +1 -1
  82. package/core/ProductTile/ProductLabel.js +1 -1
  83. package/core/ProductTile/ProductLabel.js.map +1 -1
  84. package/core/ProductTile/data.js +1 -1
  85. package/core/ProductTile/data.js.map +1 -1
  86. package/index.d.ts +314 -131
  87. package/package.json +1 -1
  88. package/core/Meganav/component.js +0 -2
  89. package/core/MeganavBlogPostsList/component.js +0 -2
  90. package/core/MeganavBlogPostsList/component.js.map +0 -1
  91. package/core/MeganavBlogPostsList.js +0 -2
  92. package/core/MeganavBlogPostsList.js.map +0 -1
  93. package/core/MeganavContentCompany.js +0 -2
  94. package/core/MeganavContentCompany.js.map +0 -1
  95. package/core/MeganavContentDevelopers.js +0 -2
  96. package/core/MeganavContentDevelopers.js.map +0 -1
  97. package/core/MeganavContentProducts.js +0 -2
  98. package/core/MeganavContentProducts.js.map +0 -1
  99. package/core/MeganavContentUseCases.js +0 -2
  100. package/core/MeganavContentUseCases.js.map +0 -1
  101. package/core/MeganavControl/component.js +0 -2
  102. package/core/MeganavControl/component.js.map +0 -1
  103. package/core/MeganavControl.js +0 -2
  104. package/core/MeganavControl.js.map +0 -1
  105. package/core/MeganavControlMobileDropdown/component.js +0 -2
  106. package/core/MeganavControlMobileDropdown/component.js.map +0 -1
  107. package/core/MeganavControlMobileDropdown.js +0 -2
  108. package/core/MeganavControlMobileDropdown.js.map +0 -1
  109. package/core/MeganavControlMobilePanelClose/component.js +0 -2
  110. package/core/MeganavControlMobilePanelClose/component.js.map +0 -1
  111. package/core/MeganavControlMobilePanelClose.js +0 -2
  112. package/core/MeganavControlMobilePanelClose.js.map +0 -1
  113. package/core/MeganavControlMobilePanelOpen/component.js +0 -2
  114. package/core/MeganavControlMobilePanelOpen/component.js.map +0 -1
  115. package/core/MeganavControlMobilePanelOpen.js +0 -2
  116. package/core/MeganavControlMobilePanelOpen.js.map +0 -1
  117. package/core/MeganavItemsDesktop.js +0 -2
  118. package/core/MeganavItemsDesktop.js.map +0 -1
  119. package/core/MeganavItemsMobile.js +0 -2
  120. package/core/MeganavItemsMobile.js.map +0 -1
  121. package/core/MeganavItemsSignedIn.js.map +0 -1
  122. package/core/MeganavSearch.js +0 -2
  123. package/core/MeganavSearch.js.map +0 -1
  124. package/core/MeganavSearchAutocomplete/component.js +0 -2
  125. package/core/MeganavSearchAutocomplete/component.js.map +0 -1
  126. package/core/MeganavSearchAutocomplete.js.map +0 -1
  127. package/core/MeganavSearchPanel.js +0 -2
  128. package/core/MeganavSearchPanel.js.map +0 -1
  129. package/core/MeganavSearchSuggestions/component.js +0 -2
  130. package/core/MeganavSearchSuggestions/component.js.map +0 -1
  131. package/core/MeganavSearchSuggestions.js +0 -2
  132. package/core/MeganavSearchSuggestions.js.map +0 -1
  133. package/core/SignOutLink.js.map +0 -1
  134. /package/core/{Footer → LegacyFooter}/component.css +0 -0
  135. /package/core/{MeganavItemsSignedIn.js → LegacyMeganav/MeganavItemsSignedIn.js} +0 -0
  136. /package/core/{MeganavSearchAutocomplete.js → LegacyMeganav/MeganavSearchAutocomplete.js} +0 -0
  137. /package/core/{SignOutLink.js → LegacyMeganav/SignOutLink.js} +0 -0
  138. /package/core/{Meganav → LegacyMeganav}/component.css +0 -0
  139. /package/core/{Meganav → LegacyMeganav}/component.json +0 -0
package/index.d.ts CHANGED
@@ -420,8 +420,12 @@ type FeaturedLinkProps = {
420
420
  newWindow?: boolean;
421
421
  onClick?: () => void;
422
422
  disabled?: boolean;
423
+ /**
424
+ * Optional class name for the icon.
425
+ */
426
+ iconClassName?: string;
423
427
  };
424
- const FeaturedLink: ({ url, textSize, iconColor, flush, reverse, additionalCSS, newWindow, onClick, children, disabled, }: FeaturedLinkProps) => import("react/jsx-runtime").JSX.Element;
428
+ const FeaturedLink: ({ url, textSize, iconColor, flush, reverse, additionalCSS, newWindow, onClick, children, disabled, iconClassName, }: FeaturedLinkProps) => import("react/jsx-runtime").JSX.Element;
425
429
  export default FeaturedLink;
426
430
  //# sourceMappingURL=FeaturedLink.d.ts.map
427
431
  }
@@ -472,9 +476,9 @@ type FlyoutProps = {
472
476
  */
473
477
  menuItems: {
474
478
  /**
475
- * Label for the menu item.
479
+ * Name for the menu item.
476
480
  */
477
- label: string;
481
+ name: string;
478
482
  /**
479
483
  * Optional content to be displayed in the flyout panel.
480
484
  */
@@ -504,29 +508,39 @@ type FlyoutProps = {
504
508
  * Optional class name for the viewport.
505
509
  */
506
510
  viewPortClassName?: string;
507
- /**
508
- * Flag to indicate if animation should be applied.
509
- */
510
- hasAnimation: boolean;
511
511
  };
512
- const Flyout: ({ menuItems, className, flyOutClassName, menuLinkClassName, viewPortClassName, hasAnimation, }: FlyoutProps) => import("react/jsx-runtime").JSX.Element;
512
+ const Flyout: ({ menuItems, className, flyOutClassName, menuLinkClassName, viewPortClassName, }: FlyoutProps) => import("react/jsx-runtime").JSX.Element;
513
513
  export default Flyout;
514
514
  //# sourceMappingURL=Flyout.d.ts.map
515
515
  }
516
516
 
517
- declare module '@ably/ui/core/Footer' {
518
- type FooterProps = {
519
- paths: {
520
- ablyStack: string;
521
- bestSupport: string;
522
- highPerformer: string;
523
- usersMostLikely: string;
524
- bestMeetsRequirements: string;
525
- };
526
- urlBase: string;
527
- statusUrl: string;
517
+ declare module '@ably/ui/core/Footer/data' {
518
+ import { IconName } from ".@ably/ui/core/Icon/types";
519
+ type FooterLinksProps = {
520
+ title: string;
521
+ links: {
522
+ label: string;
523
+ link: string;
524
+ badge?: string;
525
+ }[];
528
526
  };
529
- const Footer: ({ paths, urlBase, statusUrl }: FooterProps) => import("react/jsx-runtime").JSX.Element;
527
+ export const footerLinks: FooterLinksProps[];
528
+ export const bottomFooterLinks: {
529
+ label: string;
530
+ link: string;
531
+ }[];
532
+ export const socialLinks: {
533
+ key: string;
534
+ colorIcon: IconName;
535
+ monoIcon: IconName;
536
+ link: string;
537
+ }[];
538
+ export {};
539
+ //# sourceMappingURL=data.d.ts.map
540
+ }
541
+
542
+ declare module '@ably/ui/core/Footer' {
543
+ const Footer: () => import("react/jsx-runtime").JSX.Element;
530
544
  export default Footer;
531
545
  //# sourceMappingURL=Footer.d.ts.map
532
546
  }
@@ -534,9 +548,7 @@ export default Footer;
534
548
  declare module '@ably/ui/core/Header/HeaderLinks' {
535
549
  import React from "react";
536
550
  import { HeaderProps } from ".@ably/ui/core/Header";
537
- export const HeaderLinks: React.FC<Pick<HeaderProps, "sessionState" | "headerLinks" | "searchButtonVisibility" | "searchButton"> & {
538
- className?: string;
539
- }>;
551
+ export const HeaderLinks: React.FC<Pick<HeaderProps, "sessionState" | "headerLinks" | "searchButtonVisibility" | "searchButton" | "className">>;
540
552
  //# sourceMappingURL=HeaderLinks.d.ts.map
541
553
  }
542
554
 
@@ -576,6 +588,18 @@ export type HeaderSessionState = {
576
588
  * Props for the Header component.
577
589
  */
578
590
  export type HeaderProps = {
591
+ /**
592
+ * Optional classname for styling the header.
593
+ */
594
+ headerClassName?: string;
595
+ /**
596
+ * Optional classnames to add to the header
597
+ */
598
+ className?: string;
599
+ /**
600
+ * Indicates if the notice banner is visible.
601
+ */
602
+ isNoticeVisible?: boolean;
579
603
  /**
580
604
  * Optional search bar element.
581
605
  */
@@ -605,6 +629,10 @@ export type HeaderProps = {
605
629
  */
606
630
  external?: boolean;
607
631
  }[];
632
+ /**
633
+ * Optional classname for styling the header links container.
634
+ */
635
+ headerLinksClassName?: string;
608
636
  /**
609
637
  * Optional desktop navigation element.
610
638
  */
@@ -684,60 +712,26 @@ export default Icon;
684
712
  //# sourceMappingURL=Icon.d.ts.map
685
713
  }
686
714
 
687
- declare module '@ably/ui/core/LinkButton' {
688
- import React from "react";
689
- import { ButtonPropsBase } from "@ably/ui/core/Button";
690
- import { ColorClass, ColorThemeSet } from "@ably/ui/core/styles/colors/types";
691
- export type LinkButtonProps = ButtonPropsBase & {
692
- disabled?: boolean;
693
- onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
694
- iconColor?: ColorClass | ColorThemeSet;
695
- } & React.AnchorHTMLAttributes<HTMLAnchorElement>;
696
- const LinkButton: React.FC<LinkButtonProps>;
697
- export default LinkButton;
698
- //# sourceMappingURL=LinkButton.d.ts.map
699
- }
700
-
701
- declare module '@ably/ui/core/Loader' {
702
- type LoaderProps = {
703
- size?: string;
704
- ringColor?: string;
705
- additionalCSS?: string;
706
- };
707
- const Loader: ({ ringColor, size, additionalCSS, }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
708
- export default Loader;
709
- //# sourceMappingURL=Loader.d.ts.map
710
- }
711
-
712
- declare module '@ably/ui/core/Logo' {
713
- import React from "react";
714
- type LogoProps = {
715
- dataId?: string;
716
- logoUrl?: string;
717
- logoAlt?: string;
718
- href?: string;
719
- additionalImgAttrs?: object;
720
- additionalLinkAttrs?: object;
721
- theme?: "light" | "dark";
722
- variant?: "default" | "mono";
723
- orientation?: "default" | "stacked";
715
+ declare module '@ably/ui/core/LegacyFooter/LegacyFooter' {
716
+ type LegacyFooterProps = {
717
+ paths: {
718
+ ablyStack: string;
719
+ bestSupport: string;
720
+ highPerformer: string;
721
+ usersMostLikely: string;
722
+ bestMeetsRequirements: string;
723
+ };
724
+ urlBase: string;
725
+ statusUrl: string;
724
726
  };
725
- const _default: React.MemoExoticComponent<({ dataId, href, additionalImgAttrs, additionalLinkAttrs, theme, variant, orientation, logoUrl, logoAlt, }: LogoProps) => import("react/jsx-runtime").JSX.Element>;
726
- export default _default;
727
- //# sourceMappingURL=Logo.d.ts.map
727
+ const LegacyFooter: ({ paths, urlBase, statusUrl }: LegacyFooterProps) => import("react/jsx-runtime").JSX.Element;
728
+ export default LegacyFooter;
729
+ //# sourceMappingURL=LegacyFooter.d.ts.map
728
730
  }
729
731
 
730
- declare module '@ably/ui/core/Meganav/component' {
731
- export default function Meganav({ themeName, addSearchApiKey }: {
732
- themeName: any;
733
- addSearchApiKey: any;
734
- }): () => void;
735
- //# sourceMappingURL=component.d.ts.map
736
- }
737
-
738
- declare module '@ably/ui/core/Meganav' {
732
+ declare module '@ably/ui/core/LegacyMeganav/LegacyMeganav' {
739
733
  import { ReactNode } from "react";
740
- import { ColorClass } from "@ably/ui/core/styles/colors/types";
734
+ import { ColorClass } from ".@ably/ui/core/styles/colors/types";
741
735
  export type MeganavTheme = {
742
736
  backgroundColor?: ColorClass;
743
737
  textColor?: ColorClass;
@@ -815,13 +809,13 @@ type MeganavProps = {
815
809
  statusUrl: string;
816
810
  searchDataId?: string;
817
811
  };
818
- const Meganav: ({ paths, themeName, notice, loginLink, urlBase, addSearchApiKey, statusUrl, searchDataId, }: MeganavProps) => import("react/jsx-runtime").JSX.Element;
819
- export default Meganav;
820
- //# sourceMappingURL=Meganav.d.ts.map
812
+ const LegacyMeganav: ({ paths, themeName, notice, loginLink, urlBase, addSearchApiKey, statusUrl, searchDataId, }: MeganavProps) => import("react/jsx-runtime").JSX.Element;
813
+ export default LegacyMeganav;
814
+ //# sourceMappingURL=LegacyMeganav.d.ts.map
821
815
  }
822
816
 
823
- declare module '@ably/ui/core/MeganavBlogPostsList' {
824
- import { AbsUrl } from "@ably/ui/core/Meganav";
817
+ declare module '@ably/ui/core/LegacyMeganav/MeganavBlogPostsList' {
818
+ import { AbsUrl } from "@ably/ui/core/LegacyMeganav";
825
819
  type MeganavBlogPostsListProps = {
826
820
  recentBlogPosts: {
827
821
  link: string;
@@ -835,8 +829,8 @@ export default MeganavBlogPostsList;
835
829
  //# sourceMappingURL=MeganavBlogPostsList.d.ts.map
836
830
  }
837
831
 
838
- declare module '@ably/ui/core/MeganavContentCompany' {
839
- import { AbsUrl, MeganavPaths } from "@ably/ui/core/Meganav";
832
+ declare module '@ably/ui/core/LegacyMeganav/MeganavContentCompany' {
833
+ import { AbsUrl, MeganavPaths } from "@ably/ui/core/LegacyMeganav";
840
834
  type MeganavContentCompanyProps = {
841
835
  absUrl: AbsUrl;
842
836
  paths?: MeganavPaths;
@@ -846,8 +840,8 @@ export default MeganavContentCompany;
846
840
  //# sourceMappingURL=MeganavContentCompany.d.ts.map
847
841
  }
848
842
 
849
- declare module '@ably/ui/core/MeganavContentDevelopers' {
850
- import { AbsUrl } from "@ably/ui/core/Meganav";
843
+ declare module '@ably/ui/core/LegacyMeganav/MeganavContentDevelopers' {
844
+ import { AbsUrl } from "@ably/ui/core/LegacyMeganav";
851
845
  const MeganavContentDevelopers: ({ absUrl, statusUrl, }: {
852
846
  absUrl: AbsUrl;
853
847
  statusUrl: string;
@@ -856,8 +850,8 @@ export default MeganavContentDevelopers;
856
850
  //# sourceMappingURL=MeganavContentDevelopers.d.ts.map
857
851
  }
858
852
 
859
- declare module '@ably/ui/core/MeganavContentProducts' {
860
- import { AbsUrl, MeganavPaths } from "@ably/ui/core/Meganav";
853
+ declare module '@ably/ui/core/LegacyMeganav/MeganavContentProducts' {
854
+ import { AbsUrl, MeganavPaths } from "@ably/ui/core/LegacyMeganav";
861
855
  type MeganavContentProductsProps = {
862
856
  paths?: MeganavPaths;
863
857
  absUrl: AbsUrl;
@@ -867,8 +861,8 @@ export default MeganavContentProducts;
867
861
  //# sourceMappingURL=MeganavContentProducts.d.ts.map
868
862
  }
869
863
 
870
- declare module '@ably/ui/core/MeganavContentUseCases' {
871
- import { AbsUrl } from "@ably/ui/core/Meganav";
864
+ declare module '@ably/ui/core/LegacyMeganav/MeganavContentUseCases' {
865
+ import { AbsUrl } from "@ably/ui/core/LegacyMeganav";
872
866
  const MeganavContentUseCases: ({ absUrl }: {
873
867
  absUrl: AbsUrl;
874
868
  }) => import("react/jsx-runtime").JSX.Element;
@@ -876,7 +870,7 @@ export default MeganavContentUseCases;
876
870
  //# sourceMappingURL=MeganavContentUseCases.d.ts.map
877
871
  }
878
872
 
879
- declare module '@ably/ui/core/MeganavControl/component' {
873
+ declare module '@ably/ui/core/LegacyMeganav/MeganavControl/component' {
880
874
  export default MeganavControl;
881
875
  function MeganavControl(): {
882
876
  teardown: () => void;
@@ -885,9 +879,9 @@ function MeganavControl(): {
885
879
  //# sourceMappingURL=component.d.ts.map
886
880
  }
887
881
 
888
- declare module '@ably/ui/core/MeganavControl' {
882
+ declare module '@ably/ui/core/LegacyMeganav/MeganavControl' {
889
883
  import { ReactNode } from "react";
890
- import { MeganavTheme } from "@ably/ui/core/Meganav";
884
+ import { MeganavTheme } from "@ably/ui/core/LegacyMeganav";
891
885
  type MeganavControlProps = {
892
886
  ariaControls: string;
893
887
  ariaLabel: string;
@@ -900,7 +894,7 @@ export default MeganavControl;
900
894
  //# sourceMappingURL=MeganavControl.d.ts.map
901
895
  }
902
896
 
903
- declare module '@ably/ui/core/MeganavControlMobileDropdown/component' {
897
+ declare module '@ably/ui/core/LegacyMeganav/MeganavControlMobileDropdown/component' {
904
898
  export default MeganavControlMobileDropdown;
905
899
  function MeganavControlMobileDropdown({ clearPanels }: {
906
900
  clearPanels: any;
@@ -911,8 +905,8 @@ function MeganavControlMobileDropdown({ clearPanels }: {
911
905
  //# sourceMappingURL=component.d.ts.map
912
906
  }
913
907
 
914
- declare module '@ably/ui/core/MeganavControlMobileDropdown' {
915
- import { MeganavTheme } from "@ably/ui/core/Meganav";
908
+ declare module '@ably/ui/core/LegacyMeganav/MeganavControlMobileDropdown' {
909
+ import { MeganavTheme } from "@ably/ui/core/LegacyMeganav";
916
910
  const MeganavControlMobileDropdown: ({ theme }: {
917
911
  theme: MeganavTheme;
918
912
  }) => import("react/jsx-runtime").JSX.Element;
@@ -920,7 +914,7 @@ export default MeganavControlMobileDropdown;
920
914
  //# sourceMappingURL=MeganavControlMobileDropdown.d.ts.map
921
915
  }
922
916
 
923
- declare module '@ably/ui/core/MeganavControlMobilePanelClose/component' {
917
+ declare module '@ably/ui/core/LegacyMeganav/MeganavControlMobilePanelClose/component' {
924
918
  function _default(): {
925
919
  teardown: () => void;
926
920
  clear: () => void;
@@ -929,7 +923,7 @@ export default _default;
929
923
  //# sourceMappingURL=component.d.ts.map
930
924
  }
931
925
 
932
- declare module '@ably/ui/core/MeganavControlMobilePanelClose' {
926
+ declare module '@ably/ui/core/LegacyMeganav/MeganavControlMobilePanelClose' {
933
927
  type MeganavControlMobilePanelCloseProps = {
934
928
  ariaControls: string;
935
929
  displayHr?: boolean;
@@ -939,7 +933,7 @@ export default MeganavControlMobilePanelClose;
939
933
  //# sourceMappingURL=MeganavControlMobilePanelClose.d.ts.map
940
934
  }
941
935
 
942
- declare module '@ably/ui/core/MeganavControlMobilePanelOpen/component' {
936
+ declare module '@ably/ui/core/LegacyMeganav/MeganavControlMobilePanelOpen/component' {
943
937
  function _default(): {
944
938
  teardown: () => void;
945
939
  clear: () => void;
@@ -948,7 +942,7 @@ export default _default;
948
942
  //# sourceMappingURL=component.d.ts.map
949
943
  }
950
944
 
951
- declare module '@ably/ui/core/MeganavControlMobilePanelOpen' {
945
+ declare module '@ably/ui/core/LegacyMeganav/MeganavControlMobilePanelOpen' {
952
946
  import { ReactNode } from "react";
953
947
  type MeganavControlMobilePanelOpenProps = {
954
948
  ariaControls: string;
@@ -959,9 +953,9 @@ export default MeganavControlMobilePanelOpen;
959
953
  //# sourceMappingURL=MeganavControlMobilePanelOpen.d.ts.map
960
954
  }
961
955
 
962
- declare module '@ably/ui/core/MeganavItemsDesktop' {
956
+ declare module '@ably/ui/core/LegacyMeganav/MeganavItemsDesktop' {
963
957
  import React from "react";
964
- import { AbsUrl, MeganavPanels, MeganavPaths, MeganavTheme } from "@ably/ui/core/Meganav";
958
+ import { AbsUrl, MeganavPanels, MeganavPaths, MeganavTheme } from "@ably/ui/core/LegacyMeganav";
965
959
  type MeganavDesktopItems = {
966
960
  panels: MeganavPanels;
967
961
  paths?: MeganavPaths;
@@ -975,9 +969,9 @@ export default _default;
975
969
  //# sourceMappingURL=MeganavItemsDesktop.d.ts.map
976
970
  }
977
971
 
978
- declare module '@ably/ui/core/MeganavItemsMobile' {
972
+ declare module '@ably/ui/core/LegacyMeganav/MeganavItemsMobile' {
979
973
  import React from "react";
980
- import { AbsUrl, MeganavPanels, MeganavPaths, MeganavSessionState, MeganavTheme } from "@ably/ui/core/Meganav";
974
+ import { AbsUrl, MeganavPanels, MeganavPaths, MeganavSessionState, MeganavTheme } from "@ably/ui/core/LegacyMeganav";
981
975
  type MeganavItemsMobileProps = {
982
976
  panels: MeganavPanels;
983
977
  paths?: MeganavPaths;
@@ -993,8 +987,8 @@ export default _default;
993
987
  //# sourceMappingURL=MeganavItemsMobile.d.ts.map
994
988
  }
995
989
 
996
- declare module '@ably/ui/core/MeganavItemsSignedIn' {
997
- import { AbsUrl, MeganavSessionState, MeganavTheme } from "@ably/ui/core/Meganav";
990
+ declare module '@ably/ui/core/LegacyMeganav/MeganavItemsSignedIn' {
991
+ import { AbsUrl, MeganavSessionState, MeganavTheme } from "@ably/ui/core/LegacyMeganav";
998
992
  type MeganavItemsSignedIn = {
999
993
  sessionState: MeganavSessionState;
1000
994
  theme: MeganavTheme;
@@ -1006,8 +1000,8 @@ export default MeganavItemsSignedIn;
1006
1000
  //# sourceMappingURL=MeganavItemsSignedIn.d.ts.map
1007
1001
  }
1008
1002
 
1009
- declare module '@ably/ui/core/MeganavSearch' {
1010
- import { AbsUrl } from "@ably/ui/core/Meganav";
1003
+ declare module '@ably/ui/core/LegacyMeganav/MeganavSearch' {
1004
+ import { AbsUrl } from "@ably/ui/core/LegacyMeganav";
1011
1005
  const MeganavSearch: ({ absUrl, dataId, }: {
1012
1006
  absUrl: AbsUrl;
1013
1007
  dataId?: string;
@@ -1016,7 +1010,7 @@ export default MeganavSearch;
1016
1010
  //# sourceMappingURL=MeganavSearch.d.ts.map
1017
1011
  }
1018
1012
 
1019
- declare module '@ably/ui/core/MeganavSearchAutocomplete/component' {
1013
+ declare module '@ably/ui/core/LegacyMeganav/MeganavSearchAutocomplete/component' {
1020
1014
  function _default(apiKey: any): {
1021
1015
  teardown: () => void;
1022
1016
  clear: () => void;
@@ -1025,14 +1019,14 @@ export default _default;
1025
1019
  //# sourceMappingURL=component.d.ts.map
1026
1020
  }
1027
1021
 
1028
- declare module '@ably/ui/core/MeganavSearchAutocomplete' {
1022
+ declare module '@ably/ui/core/LegacyMeganav/MeganavSearchAutocomplete' {
1029
1023
  const MeganavSearchAutocomplete: () => import("react/jsx-runtime").JSX.Element;
1030
1024
  export default MeganavSearchAutocomplete;
1031
1025
  //# sourceMappingURL=MeganavSearchAutocomplete.d.ts.map
1032
1026
  }
1033
1027
 
1034
- declare module '@ably/ui/core/MeganavSearchPanel' {
1035
- import { AbsUrl } from "@ably/ui/core/Meganav";
1028
+ declare module '@ably/ui/core/LegacyMeganav/MeganavSearchPanel' {
1029
+ import { AbsUrl } from "@ably/ui/core/LegacyMeganav";
1036
1030
  const MeganavSearchPanel: ({ absUrl }: {
1037
1031
  absUrl: AbsUrl;
1038
1032
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1040,7 +1034,7 @@ export default MeganavSearchPanel;
1040
1034
  //# sourceMappingURL=MeganavSearchPanel.d.ts.map
1041
1035
  }
1042
1036
 
1043
- declare module '@ably/ui/core/MeganavSearchSuggestions/component' {
1037
+ declare module '@ably/ui/core/LegacyMeganav/MeganavSearchSuggestions/component' {
1044
1038
  export default MeganavSearchSuggestions;
1045
1039
  function MeganavSearchSuggestions(): {
1046
1040
  teardown: () => void;
@@ -1049,8 +1043,8 @@ function MeganavSearchSuggestions(): {
1049
1043
  //# sourceMappingURL=component.d.ts.map
1050
1044
  }
1051
1045
 
1052
- declare module '@ably/ui/core/MeganavSearchSuggestions' {
1053
- import { AbsUrl } from "@ably/ui/core/Meganav";
1046
+ declare module '@ably/ui/core/LegacyMeganav/MeganavSearchSuggestions' {
1047
+ import { AbsUrl } from "@ably/ui/core/LegacyMeganav";
1054
1048
  type MeganavSearchSuggestionsProps = {
1055
1049
  absUrl: AbsUrl;
1056
1050
  displaySupportLink: boolean;
@@ -1060,7 +1054,214 @@ export default MeganavSearchSuggestions;
1060
1054
  //# sourceMappingURL=MeganavSearchSuggestions.d.ts.map
1061
1055
  }
1062
1056
 
1057
+ declare module '@ably/ui/core/LegacyMeganav/SignOutLink' {
1058
+ import { MouseEventHandler, ReactNode } from "react";
1059
+ import { AbsUrl } from "@ably/ui/core/LegacyMeganav";
1060
+ type SignOutLinkProps = {
1061
+ token: string;
1062
+ href: string;
1063
+ text: string;
1064
+ children: ({ href, text, onClick, }: {
1065
+ href: string;
1066
+ text: string;
1067
+ onClick: MouseEventHandler<HTMLAnchorElement>;
1068
+ }) => ReactNode;
1069
+ absUrl: AbsUrl;
1070
+ };
1071
+ const SignOutLink: ({ token, href, text, children, absUrl, }: SignOutLinkProps) => import("react/jsx-runtime").JSX.Element;
1072
+ export default SignOutLink;
1073
+ //# sourceMappingURL=SignOutLink.d.ts.map
1074
+ }
1075
+
1076
+ declare module '@ably/ui/core/LegacyMeganav/component' {
1077
+ export default function Meganav({ themeName, addSearchApiKey }: {
1078
+ themeName: any;
1079
+ addSearchApiKey: any;
1080
+ }): () => void;
1081
+ //# sourceMappingURL=component.d.ts.map
1082
+ }
1083
+
1084
+ declare module '@ably/ui/core/LinkButton' {
1085
+ import React from "react";
1086
+ import { ButtonPropsBase } from "@ably/ui/core/Button";
1087
+ import { ColorClass, ColorThemeSet } from "@ably/ui/core/styles/colors/types";
1088
+ export type LinkButtonProps = ButtonPropsBase & {
1089
+ disabled?: boolean;
1090
+ onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
1091
+ iconColor?: ColorClass | ColorThemeSet;
1092
+ } & React.AnchorHTMLAttributes<HTMLAnchorElement>;
1093
+ const LinkButton: React.FC<LinkButtonProps>;
1094
+ export default LinkButton;
1095
+ //# sourceMappingURL=LinkButton.d.ts.map
1096
+ }
1097
+
1098
+ declare module '@ably/ui/core/Loader' {
1099
+ type LoaderProps = {
1100
+ size?: string;
1101
+ ringColor?: string;
1102
+ additionalCSS?: string;
1103
+ };
1104
+ const Loader: ({ ringColor, size, additionalCSS, }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
1105
+ export default Loader;
1106
+ //# sourceMappingURL=Loader.d.ts.map
1107
+ }
1108
+
1109
+ declare module '@ably/ui/core/Logo' {
1110
+ import React from "react";
1111
+ type LogoProps = {
1112
+ dataId?: string;
1113
+ logoUrl?: string;
1114
+ logoAlt?: string;
1115
+ href?: string;
1116
+ additionalImgAttrs?: object;
1117
+ additionalLinkAttrs?: object;
1118
+ theme?: "light" | "dark";
1119
+ variant?: "default" | "mono";
1120
+ orientation?: "default" | "stacked";
1121
+ };
1122
+ const _default: React.MemoExoticComponent<({ dataId, href, additionalImgAttrs, additionalLinkAttrs, theme, variant, orientation, logoUrl, logoAlt, }: LogoProps) => import("react/jsx-runtime").JSX.Element>;
1123
+ export default _default;
1124
+ //# sourceMappingURL=Logo.d.ts.map
1125
+ }
1126
+
1127
+ declare module '@ably/ui/core/Meganav/MeganavMobile' {
1128
+ import { AccordionData } from ".@ably/ui/core/Accordion/types";
1129
+ export const MeganavMobile: ({ navItems }: {
1130
+ navItems: AccordionData[];
1131
+ }) => import("react/jsx-runtime").JSX.Element;
1132
+ //# sourceMappingURL=MeganavMobile.d.ts.map
1133
+ }
1134
+
1135
+ declare module '@ably/ui/core/Meganav/MeganavPanel' {
1136
+ import React from "react";
1137
+ import { FlyoutPanelHighlight, FlyoutPanelList } from "@ably/ui/core/data";
1138
+ export const MeganavPanel: ({ displayProductTile, panelLeft, panelLeftClassName, panelRightHeading, panelRightItems, panelRightBottom, }: {
1139
+ displayProductTile?: boolean;
1140
+ panelLeft?: FlyoutPanelHighlight;
1141
+ panelLeftClassName?: string;
1142
+ panelRightHeading?: string;
1143
+ panelRightItems: FlyoutPanelList[];
1144
+ panelRightBottom?: React.ReactNode;
1145
+ }) => import("react/jsx-runtime").JSX.Element;
1146
+ //# sourceMappingURL=MeganavPanel.d.ts.map
1147
+ }
1148
+
1149
+ declare module '@ably/ui/core/Meganav/data' {
1150
+ import React from "react";
1151
+ import { IconName } from ".@ably/ui/core/Icon/types";
1152
+ export type FlyoutPanelList = {
1153
+ label: string;
1154
+ icon: IconName;
1155
+ link: string;
1156
+ isMobile?: boolean;
1157
+ };
1158
+ export type FlyoutPanelHighlight = {
1159
+ heading: string;
1160
+ content: string;
1161
+ labelLink: string;
1162
+ url: string;
1163
+ image: string;
1164
+ };
1165
+ export type MenuItem = {
1166
+ name: string;
1167
+ link?: string;
1168
+ isHiddenMobile?: boolean;
1169
+ content?: React.ReactNode;
1170
+ panelClassName?: string;
1171
+ };
1172
+ export const ablyAwards: {
1173
+ image: string;
1174
+ desc: string;
1175
+ }[];
1176
+ export const menuItemLinks: {
1177
+ name: string;
1178
+ link: string;
1179
+ isHiddenMobile: boolean;
1180
+ }[];
1181
+ export const menuItemsForHeader: MenuItem[];
1182
+ export const productsForNav: {
1183
+ pubsub: {
1184
+ link: string;
1185
+ label: string;
1186
+ description: string;
1187
+ icon?: IconName;
1188
+ hoverIcon?: IconName;
1189
+ unavailable?: boolean;
1190
+ };
1191
+ liveSync: {
1192
+ link: string;
1193
+ label: string;
1194
+ description: string;
1195
+ icon?: IconName;
1196
+ hoverIcon?: IconName;
1197
+ unavailable?: boolean;
1198
+ };
1199
+ chat: {
1200
+ link: string;
1201
+ label: string;
1202
+ description: string;
1203
+ icon?: IconName;
1204
+ hoverIcon?: IconName;
1205
+ unavailable?: boolean;
1206
+ };
1207
+ spaces: {
1208
+ link: string;
1209
+ label: string;
1210
+ description: string;
1211
+ icon?: IconName;
1212
+ hoverIcon?: IconName;
1213
+ unavailable?: boolean;
1214
+ };
1215
+ assetTracking: {
1216
+ label: string;
1217
+ description: string;
1218
+ link?: string;
1219
+ icon?: IconName;
1220
+ hoverIcon?: IconName;
1221
+ unavailable?: boolean;
1222
+ };
1223
+ liveObjects: {
1224
+ label: string;
1225
+ description: string;
1226
+ link?: string;
1227
+ icon?: IconName;
1228
+ hoverIcon?: IconName;
1229
+ unavailable?: boolean;
1230
+ };
1231
+ };
1232
+ //# sourceMappingURL=data.d.ts.map
1233
+ }
1234
+
1235
+ declare module '@ably/ui/core/Meganav' {
1236
+ import { HeaderSessionState } from "@ably/ui/core/Header";
1237
+ export type MeganavNoticeBannerProps = {
1238
+ props: {
1239
+ title: string;
1240
+ bodyText: string;
1241
+ buttonLink: string;
1242
+ buttonLabel: string;
1243
+ closeBtn: boolean;
1244
+ };
1245
+ config: {
1246
+ cookieId: string;
1247
+ noticeId: string | number;
1248
+ options: {
1249
+ collapse: boolean;
1250
+ };
1251
+ };
1252
+ };
1253
+ export type MeganavProps = {
1254
+ sessionState: HeaderSessionState;
1255
+ notice?: MeganavNoticeBannerProps;
1256
+ theme?: string;
1257
+ };
1258
+ const Meganav: ({ sessionState, notice, theme }: MeganavProps) => import("react/jsx-runtime").JSX.Element;
1259
+ export default Meganav;
1260
+ //# sourceMappingURL=Meganav.d.ts.map
1261
+ }
1262
+
1063
1263
  declare module '@ably/ui/core/Notice/component' {
1264
+ export const COLLAPSE_TRIGGER_DISTANCE: 5;
1064
1265
  export default Notice;
1065
1266
  function Notice({ bannerContainer, cookieId, noticeId, options }: {
1066
1267
  bannerContainer: any;
@@ -1206,7 +1407,8 @@ export default ProductLabel;
1206
1407
 
1207
1408
  declare module '@ably/ui/core/ProductTile/data' {
1208
1409
  import { IconName } from ".@ably/ui/core/Icon/types";
1209
- export type ProductName = "pubsub" | "chat" | "spaces" | "liveSync" | "assetTracking" | "liveObjects";
1410
+ export const productNames: readonly ["pubsub", "chat", "spaces", "liveSync", "assetTracking", "liveObjects"];
1411
+ export type ProductName = (typeof productNames)[number];
1210
1412
  type Products = Record<ProductName, {
1211
1413
  label: string;
1212
1414
  description: string;
@@ -1295,25 +1497,6 @@ export default SegmentedControl;
1295
1497
  //# sourceMappingURL=SegmentedControl.d.ts.map
1296
1498
  }
1297
1499
 
1298
- declare module '@ably/ui/core/SignOutLink' {
1299
- import { MouseEventHandler, ReactNode } from "react";
1300
- import { AbsUrl } from "@ably/ui/core/Meganav";
1301
- type SignOutLinkProps = {
1302
- token: string;
1303
- href: string;
1304
- text: string;
1305
- children: ({ href, text, onClick, }: {
1306
- href: string;
1307
- text: string;
1308
- onClick: MouseEventHandler<HTMLAnchorElement>;
1309
- }) => ReactNode;
1310
- absUrl: AbsUrl;
1311
- };
1312
- const SignOutLink: ({ token, href, text, children, absUrl, }: SignOutLinkProps) => import("react/jsx-runtime").JSX.Element;
1313
- export default SignOutLink;
1314
- //# sourceMappingURL=SignOutLink.d.ts.map
1315
- }
1316
-
1317
1500
  declare module '@ably/ui/core/Slider' {
1318
1501
  import { ReactNode } from "react";
1319
1502
  interface SliderProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ably/ui",
3
- "version": "15.8.1",
3
+ "version": "16.0.0-dev.0366f2cc",
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",