@ably/ui 17.12.0-dev.dcf685cd → 17.13.0-dev.2764bbe8
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/core/Accordion/types.js.map +1 -1
- package/core/Accordion.js +1 -1
- package/core/Accordion.js.map +1 -1
- package/core/Expander.js +1 -1
- package/core/Expander.js.map +1 -1
- package/core/Header/types.js +2 -0
- package/core/Header/types.js.map +1 -0
- package/core/Header.js +1 -1
- package/core/Header.js.map +1 -1
- package/core/Icon/components/icon-gui-checklist-checked.js +1 -1
- package/core/Icon/components/icon-gui-checklist-checked.js.map +1 -1
- package/core/Icon/components/icon-gui-code-doc.js +1 -1
- package/core/Icon/components/icon-gui-code-doc.js.map +1 -1
- package/core/Icon/components/icon-gui-cursor.js +1 -1
- package/core/Icon/components/icon-gui-cursor.js.map +1 -1
- package/core/Icon/components/icon-gui-expand.js +1 -1
- package/core/Icon/components/icon-gui-expand.js.map +1 -1
- package/core/Icon/components/icon-gui-filter-flow-step-0.js +1 -1
- package/core/Icon/components/icon-gui-filter-flow-step-0.js.map +1 -1
- package/core/Icon/components/icon-gui-flower-growth.js +1 -1
- package/core/Icon/components/icon-gui-flower-growth.js.map +1 -1
- package/core/Icon/components/icon-gui-glasses.js +1 -1
- package/core/Icon/components/icon-gui-glasses.js.map +1 -1
- package/core/Icon/components/icon-gui-mouse.js +1 -1
- package/core/Icon/components/icon-gui-mouse.js.map +1 -1
- package/core/Icon/components/icon-gui-pitfall.js +1 -1
- package/core/Icon/components/icon-gui-pitfall.js.map +1 -1
- package/core/Icon/components/icon-gui-quote-marks-fill.js +1 -1
- package/core/Icon/components/icon-gui-quote-marks-fill.js.map +1 -1
- package/core/Meganav.js +1 -1
- package/core/Meganav.js.map +1 -1
- package/core/Notice.js +1 -1
- package/core/Notice.js.map +1 -1
- package/core/hooks/use-content-height.js +2 -0
- package/core/hooks/use-content-height.js.map +1 -0
- package/core/hooks/use-themed-scrollpoints.js +2 -0
- package/core/hooks/use-themed-scrollpoints.js.map +1 -0
- package/core/hooks/use-themed-scrollpoints.test.js +2 -0
- package/core/hooks/use-themed-scrollpoints.test.js.map +1 -0
- package/core/icons/gui/icon-gui-checklist-checked.svg +1 -1
- package/core/icons/gui/icon-gui-code-doc.svg +1 -1
- package/core/icons/gui/icon-gui-cursor.svg +1 -1
- package/core/icons/gui/icon-gui-expand.svg +1 -1
- package/core/icons/gui/icon-gui-filter-flow-step-0.svg +3 -3
- package/core/icons/gui/icon-gui-flower-growth.svg +1 -1
- package/core/icons/gui/icon-gui-glasses.svg +1 -1
- package/core/icons/gui/icon-gui-mouse.svg +1 -1
- package/core/icons/gui/icon-gui-pitfall.svg +1 -1
- package/core/icons/gui/icon-gui-quote-marks-fill.svg +2 -2
- package/core/sprites-gui.svg +1 -1
- package/index.d.ts +44 -15
- package/package.json +4 -3
- package/core/Icon/components/icon-gui-square-3-stack-3d.js +0 -2
- package/core/Icon/components/icon-gui-square-3-stack-3d.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -10,12 +10,12 @@ import { ColorThemeSet } from ".@ably/ui/core/styles/colors/types";
|
|
|
10
10
|
export type AccordionData = {
|
|
11
11
|
/**
|
|
12
12
|
* The name of the accordion item.
|
|
13
|
-
* @deprecated Use `heading` for custom heading content. This will be used as fallback if `heading` is not provided.
|
|
14
13
|
*/
|
|
15
14
|
name: string;
|
|
16
15
|
/**
|
|
17
16
|
* Custom heading content. If provided, this will be used instead of `name`.
|
|
18
|
-
* Can be a ReactNode or a function that receives the index and isOpen state
|
|
17
|
+
* Can be a ReactNode or a function that receives the index and isOpen state
|
|
18
|
+
* and returns ReactNode.
|
|
19
19
|
*/
|
|
20
20
|
heading?: ReactNode | ((index: number, isOpen: boolean) => ReactNode);
|
|
21
21
|
/**
|
|
@@ -140,6 +140,11 @@ export type AccordionOptions = {
|
|
|
140
140
|
* @default ""
|
|
141
141
|
*/
|
|
142
142
|
contentCSS?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Custom CSS classes to apply to the accordion item wrapper when it is open/active.
|
|
145
|
+
* @default ""
|
|
146
|
+
*/
|
|
147
|
+
selectedItemCSS?: string;
|
|
143
148
|
};
|
|
144
149
|
//# sourceMappingURL=types.d.ts.map
|
|
145
150
|
}
|
|
@@ -779,12 +784,18 @@ export const HeaderLinks: React.FC<Pick<HeaderProps, "sessionState" | "headerLin
|
|
|
779
784
|
//# sourceMappingURL=HeaderLinks.d.ts.map
|
|
780
785
|
}
|
|
781
786
|
|
|
782
|
-
declare module '@ably/ui/core/Header' {
|
|
783
|
-
import React, { ReactNode } from "react";
|
|
787
|
+
declare module '@ably/ui/core/Header/types' {
|
|
784
788
|
export type ThemedScrollpoint = {
|
|
785
789
|
id: string;
|
|
786
790
|
className: string;
|
|
787
791
|
};
|
|
792
|
+
//# sourceMappingURL=types.d.ts.map
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
declare module '@ably/ui/core/Header' {
|
|
796
|
+
import React, { ReactNode } from "react";
|
|
797
|
+
import { ThemedScrollpoint } from "@ably/ui/core/Header/types";
|
|
798
|
+
export type { ThemedScrollpoint };
|
|
788
799
|
/**
|
|
789
800
|
* Represents the state of the user session in the header.
|
|
790
801
|
*/
|
|
@@ -2485,17 +2496,6 @@ export default ForwardRef;
|
|
|
2485
2496
|
//# sourceMappingURL=icon-gui-spinner-light.d.ts.map
|
|
2486
2497
|
}
|
|
2487
2498
|
|
|
2488
|
-
declare module '@ably/ui/core/Icon/components/icon-gui-square-3-stack-3d' {
|
|
2489
|
-
import * as React from "react";
|
|
2490
|
-
interface SVGRProps {
|
|
2491
|
-
title?: string;
|
|
2492
|
-
titleId?: string;
|
|
2493
|
-
}
|
|
2494
|
-
const ForwardRef: React.ForwardRefExoticComponent<Omit<React.SVGProps<SVGSVGElement> & SVGRProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
2495
|
-
export default ForwardRef;
|
|
2496
|
-
//# sourceMappingURL=icon-gui-square-3-stack-3d.d.ts.map
|
|
2497
|
-
}
|
|
2498
|
-
|
|
2499
2499
|
declare module '@ably/ui/core/Icon/components/icon-product-ai-transport-mono' {
|
|
2500
2500
|
import * as React from "react";
|
|
2501
2501
|
interface SVGRProps {
|
|
@@ -6237,6 +6237,21 @@ export const queryIdAll: (val: string, root?: ParentNode) => NodeListOf<Element>
|
|
|
6237
6237
|
//# sourceMappingURL=dom-query.d.ts.map
|
|
6238
6238
|
}
|
|
6239
6239
|
|
|
6240
|
+
declare module '@ably/ui/core/hooks/use-content-height' {
|
|
6241
|
+
import { RefObject } from "react";
|
|
6242
|
+
/**
|
|
6243
|
+
* Custom hook that tracks the content height of an element using ResizeObserver.
|
|
6244
|
+
* This eliminates forced reflows by using the browser's native resize observation API
|
|
6245
|
+
* instead of synchronous clientHeight/getBoundingClientRect queries.
|
|
6246
|
+
*
|
|
6247
|
+
* @param ref - React ref to the element to observe
|
|
6248
|
+
* @param initialHeight - Initial height value (default: 0)
|
|
6249
|
+
* @returns Current content height in pixels
|
|
6250
|
+
*/
|
|
6251
|
+
export function useContentHeight(ref: RefObject<HTMLElement>, initialHeight?: number): number;
|
|
6252
|
+
//# sourceMappingURL=use-content-height.d.ts.map
|
|
6253
|
+
}
|
|
6254
|
+
|
|
6240
6255
|
declare module '@ably/ui/core/hooks/use-rails-ujs-hooks' {
|
|
6241
6256
|
import { RefObject } from "react";
|
|
6242
6257
|
const useRailsUjsLinks: (containerRef: RefObject<HTMLElement>) => void;
|
|
@@ -6244,6 +6259,20 @@ export default useRailsUjsLinks;
|
|
|
6244
6259
|
//# sourceMappingURL=use-rails-ujs-hooks.d.ts.map
|
|
6245
6260
|
}
|
|
6246
6261
|
|
|
6262
|
+
declare module '@ably/ui/core/hooks/use-themed-scrollpoints' {
|
|
6263
|
+
import { ThemedScrollpoint } from ".@ably/ui/core/Header/types";
|
|
6264
|
+
export function useThemedScrollpoints(scrollpoints: ThemedScrollpoint[]): string;
|
|
6265
|
+
//# sourceMappingURL=use-themed-scrollpoints.d.ts.map
|
|
6266
|
+
}
|
|
6267
|
+
|
|
6268
|
+
declare module '@ably/ui/core/hooks/use-themed-scrollpoints.test' {
|
|
6269
|
+
/**
|
|
6270
|
+
* @vitest-environment jsdom
|
|
6271
|
+
*/
|
|
6272
|
+
export {};
|
|
6273
|
+
//# sourceMappingURL=use-themed-scrollpoints.test.d.ts.map
|
|
6274
|
+
}
|
|
6275
|
+
|
|
6247
6276
|
declare module '@ably/ui/core/insights/command-queue' {
|
|
6248
6277
|
import { AnalyticsService, InsightsConfig, InsightsIdentity, TrackPageViewOptions } from "@ably/ui/core/types";
|
|
6249
6278
|
export class InsightsCommandQueue implements AnalyticsService {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ably/ui",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.13.0-dev.2764bbe8",
|
|
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",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"@swc/cli": "^0.7.8",
|
|
32
32
|
"@swc/core": "^1.13.5",
|
|
33
33
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
34
|
+
"@testing-library/react": "^16.3.0",
|
|
34
35
|
"@types/js-cookie": "^3.0.6",
|
|
35
36
|
"@types/node": "^20",
|
|
36
37
|
"@types/react": "^18.3.1",
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
"msw": "2.12.0",
|
|
57
58
|
"msw-storybook-addon": "^2.0.5",
|
|
58
59
|
"playwright": "^1.49.1",
|
|
59
|
-
"posthog-js": "^1.
|
|
60
|
+
"posthog-js": "^1.328.0",
|
|
60
61
|
"prettier": "^3.8.0",
|
|
61
62
|
"storybook": "^10.1.10",
|
|
62
63
|
"svg-sprite": "^2.0.4",
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
"embla-carousel": "^8.6.0",
|
|
82
83
|
"embla-carousel-autoplay": "^8.6.0",
|
|
83
84
|
"embla-carousel-react": "^8.6.0",
|
|
84
|
-
"es-toolkit": "^1.
|
|
85
|
+
"es-toolkit": "^1.44.0",
|
|
85
86
|
"highlight.js": "^11.11.1",
|
|
86
87
|
"highlightjs-curl": "^1.3.0",
|
|
87
88
|
"js-cookie": "^3.0.5",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import*as React from"react";import{forwardRef}from"react";const IconGuiSquare3Stack3d=({title,titleId,...props},ref)=>React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"currentColor",viewBox:"0 0 24 24",ref:ref,"aria-labelledby":titleId,...props},title?React.createElement("title",{id:titleId},title):null,React.createElement("path",{stroke:"#03020D",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"}));const ForwardRef=forwardRef(IconGuiSquare3Stack3d);export default ForwardRef;
|
|
2
|
-
//# sourceMappingURL=icon-gui-square-3-stack-3d.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/core/Icon/components/icon-gui-square-3-stack-3d.tsx"],"sourcesContent":["import * as React from \"react\";\nimport type { SVGProps } from \"react\";\nimport { Ref, forwardRef } from \"react\";\ninterface SVGRProps {\n title?: string;\n titleId?: string;\n}\nconst IconGuiSquare3Stack3d = ({\n title,\n titleId,\n ...props\n}: SVGProps<SVGSVGElement> & SVGRProps, ref: Ref<SVGSVGElement>) => <svg xmlns=\"http://www.w3.org/2000/svg\" width={24} height={24} fill=\"currentColor\" viewBox=\"0 0 24 24\" ref={ref} aria-labelledby={titleId} {...props}>{title ? <title id={titleId}>{title}</title> : null}<path stroke=\"#03020D\" strokeLinecap=\"round\" strokeLinejoin=\"round\" strokeWidth={1.5} d=\"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3\" /></svg>;\nconst ForwardRef = forwardRef(IconGuiSquare3Stack3d);\nexport default ForwardRef;"],"names":["React","forwardRef","IconGuiSquare3Stack3d","title","titleId","props","ref","svg","xmlns","width","height","fill","viewBox","aria-labelledby","id","path","stroke","strokeLinecap","strokeLinejoin","strokeWidth","d","ForwardRef"],"mappings":"AAAA,UAAYA,UAAW,OAAQ,AAE/B,QAAcC,UAAU,KAAQ,OAAQ,CAKxC,MAAMC,sBAAwB,CAAC,CAC7BC,KAAK,CACLC,OAAO,CACP,GAAGC,MACiC,CAAEC,MAA4B,oBAACC,OAAIC,MAAM,6BAA6BC,MAAO,GAAIC,OAAQ,GAAIC,KAAK,eAAeC,QAAQ,YAAYN,IAAKA,IAAKO,kBAAiBT,QAAU,GAAGC,KAAK,EAAGF,MAAQ,oBAACA,SAAMW,GAAIV,SAAUD,OAAiB,KAAK,oBAACY,QAAKC,OAAO,UAAUC,cAAc,QAAQC,eAAe,QAAQC,YAAa,IAAKC,EAAE,yMACtW,MAAMC,WAAapB,WAAWC,sBAC9B,gBAAemB,UAAW"}
|