@epam/ai-dial-ui-kit 0.14.0-dev.35 → 0.14.0-dev.37
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/dist/CHANGELOG.md +1 -0
- package/dist/DateCellRenderer-DNPEX0I7.cjs +1 -0
- package/dist/{DateCellRenderer-B0o0BqbW.cjs → DateCellRenderer-p6k-mVZt.cjs} +26 -26
- package/dist/IconButton-DWqoaBWf.cjs +1 -0
- package/dist/JsonEditor-BZCyPc2D.cjs +1 -0
- package/dist/MarkdownEditor-CBH7ILah.cjs +1 -0
- package/dist/MarkdownEditor-CMRC_XsQ.cjs +1 -0
- package/dist/MarkdownEditorContainer-B_6-Gd-T.cjs +1 -0
- package/dist/{Switch-CtdhpYik.cjs → Switch-CUKClcEz.cjs} +1 -1
- package/dist/components/Grid/Grid.js +111 -111
- package/dist/components/JsonEditor/lazy.js +4 -0
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +18 -16
- package/dist/components/MarkdownEditor/lazy.js +4 -0
- package/dist/components/New/Grid/Grid.js +129 -129
- package/dist/components/New/MarkdownEditor/lazy.js +4 -0
- package/dist/components/New/Tooltip/TooltipContent.js +16 -16
- package/dist/components/Tooltip/TooltipContent.js +11 -11
- package/dist/components-manifest.json +6 -6
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/dial-ui-kit.js +410 -408
- package/dist/editor-BKQqPhwX.cjs +1 -0
- package/dist/editors.cjs +1 -1
- package/dist/editors.js +10 -7
- package/dist/file-manager.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/hooks/use-has-hover.js +17 -0
- package/dist/lazy-CJ-0Pjkj.cjs +1 -0
- package/dist/migration-guides/0.14.0/button-tooltip-2-0.md +1 -1
- package/dist/src/components/JsonEditor/lazy.d.ts +14 -0
- package/dist/src/components/MarkdownEditor/lazy.d.ts +7 -0
- package/dist/src/components/New/EllipsisTooltip/EllipsisTooltip.d.ts +1 -1
- package/dist/src/components/New/MarkdownEditor/lazy.d.ts +7 -0
- package/dist/src/components/New/Tooltip/Tooltip.d.ts +1 -1
- package/dist/src/components/New/Tooltip/TooltipContent.d.ts +4 -3
- package/dist/src/components/Tooltip/TooltipContent.d.ts +4 -0
- package/dist/src/hooks/use-has-hover.d.ts +20 -0
- package/dist/src/index.d.ts +3 -3
- package/dist/src/subpaths/editors.d.ts +13 -12
- package/dist/src/utils/__tests__/pointer.spec.d.ts +1 -0
- package/dist/src/utils/grid-registration.d.ts +16 -0
- package/dist/src/utils/grid-registration.spec.d.ts +1 -0
- package/dist/src/utils/pointer.d.ts +29 -0
- package/dist/{use-file-manager-tabs-CkYH0CvF.cjs → use-file-manager-tabs-CIQjiyK-.cjs} +2 -2
- package/dist/utils/grid-registration.js +8 -0
- package/dist/utils/pointer.js +5 -0
- package/package.json +1 -1
- package/dist/DateCellRenderer-B41xNX7a.cjs +0 -1
- package/dist/IconButton-BCbBgnzo.cjs +0 -1
- package/dist/JsonEditor-pdzI3xkJ.cjs +0 -1
- package/dist/MarkdownEditor-CNEY8i7O.cjs +0 -1
- package/dist/MarkdownEditor-Dea4eQpw.cjs +0 -1
- package/dist/MarkdownEditorContainer-BO6PafCS.cjs +0 -1
- package/dist/editor-Ba3vCFHk.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./lazy-CJ-0Pjkj.cjs"),o={[r.EditorThemes.dark]:{base:"vs-dark",inherit:!1,rules:[{token:"string.key.json",foreground:"#37BABC"},{token:"string.value.json",foreground:"#5C8DEA"},{token:"number",foreground:"#D97C27"},{token:"keyword.json",foreground:"#F4CE46"},{token:"delimiter",foreground:"#EEF1F7"},{token:"delimiter.bracket.json",foreground:"#A972FF"},{token:"delimiter.parenthesis",foreground:"#A972FF"}],colors:{"editor.foreground":"#F76464","editor.background":"#161B2D","editorCursor.foreground":"#EEF1F7","editor.selectionBackground":"#5C8DEA2B","editorLineNumber.foreground":"#242C42","scrollbarSlider.background":"#242C42","scrollbarSlider.hoverBackground":"#242C42","scrollbarSlider.activeBackground":"#242C42"}},[r.EditorThemes.light]:{base:"vs",inherit:!1,rules:[{token:"string.key.json",foreground:"#009D9F"},{token:"string.value.json",foreground:"#2764D9"},{token:"number",foreground:"#B25500"},{token:"keyword.json",foreground:"#3F3D25"},{token:"delimiter",foreground:"#161B2D"},{token:"delimiter.bracket.json",foreground:"#7E39EC"},{token:"delimiter.parenthesis",foreground:"#7E39EC"}],colors:{"editor.foreground":"#AE2F2F","editor.background":"#EEF1F7","editorCursor.foreground":"#161B2D","editor.selectionBackground":"#5C8DEA2B","editorLineNumber.foreground":"#242C42","scrollbarSlider.background":"#242C42","scrollbarSlider.hoverBackground":"#242C42","scrollbarSlider.activeBackground":"#242C42"}}};exports.EDITOR_THEMES_CONFIG=o;
|
package/dist/editors.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./lazy-CJ-0Pjkj.cjs"),r=()=>Promise.resolve().then(()=>require("./MarkdownEditorContainer-B_6-Gd-T.cjs"));exports.EditorThemes=o.EditorThemes;exports.LazyDialJsonEditor=o.LazyDialJsonEditor;exports.LazyDialMarkdownEditor=o.LazyDialMarkdownEditor;exports.LazyMarkdownEditor=o.LazyMarkdownEditor;exports.LazyDialMarkdownEditorContainer=r;
|
package/dist/editors.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { LazyDialJsonEditor as a } from "./components/JsonEditor/lazy.js";
|
|
2
|
+
import { LazyDialMarkdownEditor as d } from "./components/MarkdownEditor/lazy.js";
|
|
3
|
+
import { LazyMarkdownEditor as n } from "./components/New/MarkdownEditor/lazy.js";
|
|
4
|
+
import { EditorThemes as p } from "./types/editor.js";
|
|
5
|
+
const o = () => import("./components/MarkdownEditor/MarkdownEditorContainer.js");
|
|
3
6
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
p as EditorThemes,
|
|
8
|
+
a as LazyDialJsonEditor,
|
|
9
|
+
d as LazyDialMarkdownEditor,
|
|
10
|
+
o as LazyDialMarkdownEditorContainer,
|
|
11
|
+
n as LazyMarkdownEditor
|
|
9
12
|
};
|
package/dist/file-manager.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./use-file-manager-tabs-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./use-file-manager-tabs-CIQjiyK-.cjs");exports.DialDestinationFolderPopup=e.DialDestinationFolderPopup;exports.DialFileManager=e.DialFileManager;exports.DialFileManagerActions=e.DialFileManagerActions;exports.DialFileManagerTabs=e.DialFileManagerTabs;exports.DialFoldersTree=e.DialFoldersTree;exports.FileManagerColumnKey=e.FileManagerColumnKey;exports.FileManagerProvider=e.FileManagerProvider;exports.NAME_COLUMN=e.NAME_COLUMN;exports.SIZE_COLUMN=e.SIZE_COLUMN;exports.UPDATED_AT_COLUMN=e.UPDATED_AT_COLUMN;exports.useDialFileManagerTabs=e.useDialFileManagerTabs;exports.useFileManagerContext=e.useFileManagerContext;
|
package/dist/grid.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DateCellRenderer-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DateCellRenderer-p6k-mVZt.cjs"),D=require("./DateCellRenderer-DNPEX0I7.cjs");exports.DEFAULT_GRID_DATE_FORMAT_OPTIONS=e.DEFAULT_DATE_FORMAT_OPTIONS;exports.DEFAULT_GRID_DATE_LOCALE=e.DEFAULT_LOCALE;exports.DialDateCellRenderer=e.DialDateCellRenderer;exports.DialGrid=e.DialGrid;exports.GridSelectionMode=e.GridSelectionMode;exports.baseColumnComparator=e.baseColumnComparator;exports.checkColDefsChanges=e.checkColDefsChanges;exports.convertGridDateToDate=e.convertToDate;exports.convertToDate=e.convertToDate;exports.DEFAULT_DATE_FORMAT_OPTIONS=D.DEFAULT_DATE_FORMAT_OPTIONS;exports.DEFAULT_DATE_LOCALE=D.DEFAULT_LOCALE;exports.DateCellRenderer=D.DateCellRenderer;exports.GRID_ALIGN_RIGHT_CLASS=D.GRID_ALIGN_RIGHT_CLASS;exports.GRID_ROOT_CLASS=D.GRID_ROOT_CLASS;exports.GRID_ROW_HEIGHT=D.ROW_HEIGHT;exports.GRID_SELECTION_COLUMN_ID=D.GRID_SELECTION_COLUMN_ID;exports.GRID_THEME_PARAMS=D.GRID_THEME_PARAMS;exports.Grid=D.Grid;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { useState as s, useEffect as i } from "react";
|
|
2
|
+
import { hasNoHoverSupport as a, NO_HOVER_MEDIA_QUERY as c } from "../utils/pointer.js";
|
|
3
|
+
const u = () => {
|
|
4
|
+
const [o, t] = s(() => !a());
|
|
5
|
+
return i(() => {
|
|
6
|
+
if (typeof window > "u" || typeof window.matchMedia != "function")
|
|
7
|
+
return;
|
|
8
|
+
const e = window.matchMedia(c);
|
|
9
|
+
if (t(!e.matches), typeof e.addEventListener != "function")
|
|
10
|
+
return;
|
|
11
|
+
const n = (r) => t(!r.matches);
|
|
12
|
+
return e.addEventListener("change", n), () => e.removeEventListener("change", n);
|
|
13
|
+
}, []), o;
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
u as useHasHover
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=(r=>(r.dark="dark",r.light="light",r))(o||{});const e=()=>Promise.resolve().then(()=>require("./JsonEditor-BZCyPc2D.cjs")),i=()=>Promise.resolve().then(()=>require("./MarkdownEditor-CBH7ILah.cjs")),a=()=>Promise.resolve().then(()=>require("./MarkdownEditor-CMRC_XsQ.cjs"));exports.EditorThemes=o;exports.LazyDialJsonEditor=e;exports.LazyDialMarkdownEditor=i;exports.LazyMarkdownEditor=a;
|
|
@@ -106,6 +106,6 @@ npm run test
|
|
|
106
106
|
## Notes
|
|
107
107
|
|
|
108
108
|
- The 1.0 `DialButton` and `DialIconButton` are untouched and keep the 1.0 tooltip.
|
|
109
|
-
- As in 1.0, the 2.0 tooltip renders nothing on
|
|
109
|
+
- As in 1.0, the 2.0 tooltip renders nothing on a touch-only device, so a tooltip still cannot be a
|
|
110
110
|
control's only accessible name. Both buttons continue to fall back to a string
|
|
111
111
|
`tooltipProps.tooltip` as their `aria-label` when nothing else names them.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared leaf module for the JSON editor's lazy loader. Both `src/index.ts`
|
|
3
|
+
* (root) and `src/subpaths/editors.ts` (`./editors`) re-export this same
|
|
4
|
+
* binding instead of each declaring their own copy of the loader function -
|
|
5
|
+
* see `src/index.ts`'s comment above its own re-export for why the previous
|
|
6
|
+
* per-entry duplication existed, and why it was replaced by this shared
|
|
7
|
+
* module (an emitted-topology defect, not just source-level duplication:
|
|
8
|
+
* a loader function's body containing its own `import()` call, when
|
|
9
|
+
* duplicated verbatim into more than one entry's own emitted chunk, can pull
|
|
10
|
+
* an unrelated dynamically-imported feature into the initial graph in some
|
|
11
|
+
* Vite/Rolldown versions - see `openspec/changes/isolate-heavy-feature-modules`
|
|
12
|
+
* Section 9's `diagnosis-baseline.txt` for the measured reproduction).
|
|
13
|
+
*/
|
|
14
|
+
export declare const LazyDialJsonEditor: () => Promise<typeof import("./JsonEditor")>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared leaf module for the 1.0 Markdown editor's lazy loader. Both
|
|
3
|
+
* `src/index.ts` (root) and `src/subpaths/editors.ts` (`./editors`)
|
|
4
|
+
* re-export this same binding instead of each declaring their own copy -
|
|
5
|
+
* see `src/components/JsonEditor/lazy.ts`'s comment for why.
|
|
6
|
+
*/
|
|
7
|
+
export declare const LazyDialMarkdownEditor: () => Promise<typeof import("./MarkdownEditor")>;
|
|
@@ -22,7 +22,7 @@ export interface EllipsisTooltipProps extends TooltipContainerOptions {
|
|
|
22
22
|
*
|
|
23
23
|
* a11y: while truncated, the full string is exposed as the element's
|
|
24
24
|
* `aria-label`, so a screen reader reads the whole label even though the
|
|
25
|
-
* tooltip itself renders nothing on
|
|
25
|
+
* tooltip itself renders nothing on a touch-only device.
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* ```tsx
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared leaf module for the 2.0 Markdown editor's lazy loader. Both
|
|
3
|
+
* `src/index.ts` (root) and `src/subpaths/editors.ts` (`./editors`)
|
|
4
|
+
* re-export this same binding instead of each declaring their own copy -
|
|
5
|
+
* see `src/components/JsonEditor/lazy.ts`'s comment for why.
|
|
6
|
+
*/
|
|
7
|
+
export declare const LazyMarkdownEditor: () => Promise<typeof import("./MarkdownEditor")>;
|
|
@@ -19,7 +19,7 @@ export interface TooltipProps extends TooltipContainerOptions {
|
|
|
19
19
|
* Tooltip text does not reach assistive technology unless the trigger itself
|
|
20
20
|
* carries it: pass `asChild` so the `aria-describedby` lands on the control
|
|
21
21
|
* rather than on a wrapper `<span>`, and never let a tooltip be the only
|
|
22
|
-
* accessible name of a control — it renders nothing on
|
|
22
|
+
* accessible name of a control — it renders nothing on a touch-only device.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```tsx
|
|
@@ -7,9 +7,10 @@ export interface TooltipContentProps extends HTMLProps<HTMLDivElement> {
|
|
|
7
7
|
* Design system 2.0
|
|
8
8
|
*
|
|
9
9
|
* Rendered in a portal, above popups and dropdowns, with an arrow pointing back
|
|
10
|
-
* at the trigger. Renders nothing on a
|
|
11
|
-
* to reveal it — so a control must never depend on a tooltip alone to be
|
|
12
|
-
* understood, or to have an accessible name.
|
|
10
|
+
* at the trigger. Renders nothing on a touch-only device, where no pointer can
|
|
11
|
+
* hover to reveal it — so a control must never depend on a tooltip alone to be
|
|
12
|
+
* understood, or to have an accessible name. A narrow viewport is not itself
|
|
13
|
+
* disqualifying: an embed a few hundred pixels wide still hovers on a desktop.
|
|
13
14
|
*
|
|
14
15
|
* @param children - The content to display inside the tooltip
|
|
15
16
|
* @param [className] - Additional CSS classes applied to the tooltip bubble
|
|
@@ -6,6 +6,10 @@ export interface Props extends HTMLProps<HTMLDivElement> {
|
|
|
6
6
|
* The content area of a tooltip that displays the tooltip information
|
|
7
7
|
* Design system 1.0
|
|
8
8
|
*
|
|
9
|
+
* Renders nothing on a touch-only device, where no pointer can hover to reveal
|
|
10
|
+
* it. A narrow viewport is not itself disqualifying: an embed a few hundred
|
|
11
|
+
* pixels wide still hovers on a desktop.
|
|
12
|
+
*
|
|
9
13
|
* @param children - The content to display inside the tooltip
|
|
10
14
|
* @param [style] - Additional inline styles for the tooltip content
|
|
11
15
|
*/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A React hook that reports whether the device's primary pointer can hover.
|
|
3
|
+
*
|
|
4
|
+
* Tracks the `hover: none` media query rather than the viewport width, so a
|
|
5
|
+
* narrow embed on a desktop still counts as hover-capable, and re-evaluates
|
|
6
|
+
* when a hybrid device switches input — a tablet that gains a trackpad starts
|
|
7
|
+
* hovering without a reload.
|
|
8
|
+
*
|
|
9
|
+
* Defaults to `true` where the capability cannot be read (SSR, or a browser
|
|
10
|
+
* without `matchMedia`), so hover-only UI is never dropped on a guess.
|
|
11
|
+
*
|
|
12
|
+
* @returns {boolean} `true` when the pointer can hover, `false` on a touch-only device.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* const hasHover = useHasHover();
|
|
16
|
+
* if (!hasHover) {
|
|
17
|
+
* return null; // Nothing would ever reveal a hover-only bubble here
|
|
18
|
+
* }
|
|
19
|
+
*/
|
|
20
|
+
export declare const useHasHover: () => boolean;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -144,8 +144,8 @@ export { NOT_ALLOWED_SYMBOLS, NOT_ALLOWED_SPACES, NOT_ALLOWED_SYMBOLS_REGEXP, NO
|
|
|
144
144
|
export { DialSchemaRenderer } from './components/SchemaRenderer/SchemaRenderer';
|
|
145
145
|
export { SchemaRendererVariant, SchemaDisplayMode, SchemaOrientation, JsonSchemaType, } from './components/SchemaRenderer/types';
|
|
146
146
|
export type { DialSchemaRendererProps, JsonSchema, JsonSchemaDef, ValidationError, } from './components/SchemaRenderer/types';
|
|
147
|
-
export
|
|
148
|
-
export
|
|
147
|
+
export { LazyDialJsonEditor } from './components/JsonEditor/lazy';
|
|
148
|
+
export { LazyDialMarkdownEditor } from './components/MarkdownEditor/lazy';
|
|
149
149
|
export { NotificationVariant, NotificationType } from './types/notification.ts';
|
|
150
150
|
export { Notification } from './components/New/Notification/Notification';
|
|
151
151
|
export { Highlight } from './components/New/Highlight/Highlight';
|
|
@@ -168,7 +168,7 @@ export type { FabButtonProps } from './components/FabButton/FabButton';
|
|
|
168
168
|
export { ButtonDropdown } from './components/New/ButtonDropdown/ButtonDropdown';
|
|
169
169
|
export type { ButtonDropdownProps } from './components/New/ButtonDropdown/ButtonDropdown';
|
|
170
170
|
export type { MarkdownEditorProps } from './components/New/MarkdownEditor/MarkdownEditor';
|
|
171
|
-
export
|
|
171
|
+
export { LazyMarkdownEditor } from './components/New/MarkdownEditor/lazy';
|
|
172
172
|
export { InlineSelect, InlineSelectTrigger, } from './components/New/InlineSelect/InlineSelect';
|
|
173
173
|
export type { InlineSelectProps, InlineSelectTriggerProps, } from './components/New/InlineSelect/InlineSelect';
|
|
174
174
|
export { Select } from './components/New/Select/Select';
|
|
@@ -2,19 +2,20 @@
|
|
|
2
2
|
* `@epam/ai-dial-ui-kit/editors` - curated subpath for the JSON/Markdown
|
|
3
3
|
* editor lazy loaders.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
5
|
+
* The three loaders below are re-exported from the same shared leaf modules
|
|
6
|
+
* `src/index.ts` re-exports (`components/JsonEditor/lazy`,
|
|
7
|
+
* `components/MarkdownEditor/lazy`, `components/New/MarkdownEditor/lazy`),
|
|
8
|
+
* so this entry and the root reference one emitted chunk per loader instead
|
|
9
|
+
* of each carrying its own duplicate copy of the loader's `import()` call -
|
|
10
|
+
* see `components/JsonEditor/lazy.ts`'s comment for the emitted-topology
|
|
11
|
+
* defect that duplication caused. `src/mcp/generate-manifest.ts` follows
|
|
12
|
+
* this re-export back to the leaf module to keep attaching lazy-loading
|
|
13
|
+
* metadata to `DialJsonEditor`/`DialMarkdownEditor`/`MarkdownEditor` (2.0)
|
|
14
|
+
* in the published MCP component manifest.
|
|
14
15
|
*/
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
16
|
+
export { LazyDialJsonEditor } from '../components/JsonEditor/lazy';
|
|
17
|
+
export { LazyDialMarkdownEditor } from '../components/MarkdownEditor/lazy';
|
|
18
|
+
export { LazyMarkdownEditor } from '../components/New/MarkdownEditor/lazy';
|
|
18
19
|
export declare const LazyDialMarkdownEditorContainer: () => Promise<typeof import("../components/MarkdownEditor/MarkdownEditorContainer")>;
|
|
19
20
|
export { EditorThemes } from '../types/editor';
|
|
20
21
|
export type { MarkdownEditorProps } from '../components/New/MarkdownEditor/MarkdownEditor';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registers AG Grid's community modules and configures its test-id
|
|
3
|
+
* attribute exactly once, the first time either Grid generation actually
|
|
4
|
+
* renders - never merely because a module that re-exports `DialGrid`/`Grid`
|
|
5
|
+
* was imported or evaluated.
|
|
6
|
+
*
|
|
7
|
+
* Both Grid generations (`src/components/Grid/Grid.tsx`,
|
|
8
|
+
* `src/components/New/Grid/Grid.tsx`) call this at the top of their render
|
|
9
|
+
* path instead of running the registration at module scope. That keeps the
|
|
10
|
+
* side effect provably absent from the module body itself: a consumer's
|
|
11
|
+
* bundler that ends up retaining either Grid module in its graph for some
|
|
12
|
+
* other reason (e.g. an eager root-barrel re-export it cannot prove is
|
|
13
|
+
* unused) no longer thereby executes `ag-grid-community`/`ag-grid-react`
|
|
14
|
+
* registration - only actually rendering a Grid does.
|
|
15
|
+
*/
|
|
16
|
+
export declare const registerAgGridModulesOnce: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Media query matched only by a device that positively reports it cannot hover
|
|
3
|
+
* its primary pointer — a touch-only phone or tablet.
|
|
4
|
+
*
|
|
5
|
+
* `(hover: none)` is deliberately the whole query. `(pointer: coarse)` would
|
|
6
|
+
* also catch a touchscreen laptop driven by a mouse and a TV remote, both of
|
|
7
|
+
* which hover perfectly well.
|
|
8
|
+
*/
|
|
9
|
+
export declare const NO_HOVER_MEDIA_QUERY = "(hover: none)";
|
|
10
|
+
/**
|
|
11
|
+
* Reports whether the device says its primary pointer cannot hover.
|
|
12
|
+
*
|
|
13
|
+
* Keyed on input capability rather than viewport width on purpose: an app
|
|
14
|
+
* embedded in a narrow desktop iframe sees a `window.innerWidth` of a few
|
|
15
|
+
* hundred pixels while still being driven by a mouse, so a width test would
|
|
16
|
+
* wrongly strip its hover-only affordances.
|
|
17
|
+
*
|
|
18
|
+
* Returns `false` when there is no `window` (SSR) or no `matchMedia` support,
|
|
19
|
+
* so hover-only UI stays rendered rather than silently disappearing wherever
|
|
20
|
+
* the question cannot be answered.
|
|
21
|
+
*
|
|
22
|
+
* @returns {boolean} `true` only when the device reports `hover: none`.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* if (!hasNoHoverSupport()) {
|
|
26
|
+
* console.log('The pointer can hover — hover-only affordances are usable');
|
|
27
|
+
* }
|
|
28
|
+
*/
|
|
29
|
+
export declare const hasNoHoverSupport: () => boolean;
|