@gooddata/sdk-ui-kit 11.68.0-alpha.2 → 11.68.0-alpha.4

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 (89) hide show
  1. package/esm/@ui/UiAsyncTable/UiAsyncTable/SkeletonItemFactory.d.ts.map +1 -1
  2. package/esm/@ui/UiAsyncTable/UiAsyncTable/SkeletonItemFactory.js +2 -2
  3. package/esm/@ui/UiConfigEditor/UiConfigEditor.d.ts +1 -1
  4. package/esm/@ui/UiConfigEditor/UiConfigEditor.d.ts.map +1 -1
  5. package/esm/@ui/UiConfigEditor/UiConfigEditor.js +62 -25
  6. package/esm/@ui/UiConfigEditor/configEditorDiagnostics.d.ts +10 -0
  7. package/esm/@ui/UiConfigEditor/configEditorDiagnostics.d.ts.map +1 -0
  8. package/esm/@ui/UiConfigEditor/configEditorDiagnostics.js +65 -0
  9. package/esm/@ui/UiConfigEditor/configEditorYamlIndent.d.ts +8 -0
  10. package/esm/@ui/UiConfigEditor/configEditorYamlIndent.d.ts.map +1 -0
  11. package/esm/@ui/UiConfigEditor/configEditorYamlIndent.js +33 -0
  12. package/esm/@ui/UiConfigEditor/types.d.ts +9 -6
  13. package/esm/@ui/UiConfigEditor/types.d.ts.map +1 -1
  14. package/esm/@ui/UiDrawer/UiDrawer.d.ts.map +1 -1
  15. package/esm/@ui/UiDrawer/UiDrawer.js +14 -4
  16. package/esm/@ui/UiFocusManager/UiAutofocus.d.ts.map +1 -1
  17. package/esm/@ui/UiFocusManager/UiAutofocus.js +22 -2
  18. package/esm/@ui/UiFocusManager/UiModalOwner.d.ts +11 -0
  19. package/esm/@ui/UiFocusManager/UiModalOwner.d.ts.map +1 -0
  20. package/esm/@ui/UiFocusManager/UiModalOwner.js +18 -0
  21. package/esm/@ui/UiModalDialog/UiDialogHeader.d.ts +1 -9
  22. package/esm/@ui/UiModalDialog/UiDialogHeader.d.ts.map +1 -1
  23. package/esm/@ui/UiModalDialog/UiDialogHeader.js +5 -4
  24. package/esm/@ui/UiModalDialog/UiModalDialog.d.ts +16 -2
  25. package/esm/@ui/UiModalDialog/UiModalDialog.d.ts.map +1 -1
  26. package/esm/@ui/UiModalDialog/UiModalDialog.js +13 -5
  27. package/esm/@ui/UiSearchableSelect/UiSearchableSelect.d.ts +14 -1
  28. package/esm/@ui/UiSearchableSelect/UiSearchableSelect.d.ts.map +1 -1
  29. package/esm/@ui/UiSearchableSelect/UiSearchableSelect.js +76 -38
  30. package/esm/@ui/UiSearchableSelect/UiSearchableSelectContext.d.ts +12 -2
  31. package/esm/@ui/UiSearchableSelect/UiSearchableSelectContext.d.ts.map +1 -1
  32. package/esm/@ui/UiSearchableSelect/UiSearchableSelectList.d.ts.map +1 -1
  33. package/esm/@ui/UiSearchableSelect/UiSearchableSelectList.js +7 -13
  34. package/esm/@ui/UiSearchableSelect/UiSearchableSelectSearch.d.ts.map +1 -1
  35. package/esm/@ui/UiSearchableSelect/UiSearchableSelectSearch.js +6 -12
  36. package/esm/ChartSorting/ChartSorting.d.ts.map +1 -1
  37. package/esm/ChartSorting/ChartSorting.js +2 -2
  38. package/esm/ColorPicker/ColorPicker.d.ts.map +1 -1
  39. package/esm/ColorPicker/ColorPicker.js +2 -2
  40. package/esm/DescriptionPanel/DescriptionPanel.d.ts.map +1 -1
  41. package/esm/DescriptionPanel/DescriptionPanel.js +2 -2
  42. package/esm/DescriptionPanel/MetadataList.d.ts.map +1 -1
  43. package/esm/DescriptionPanel/MetadataList.js +2 -3
  44. package/esm/Dialog/DialogBase.d.ts.map +1 -1
  45. package/esm/Dialog/DialogBase.js +6 -2
  46. package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/NumericInput.d.ts.map +1 -1
  47. package/esm/Dialog/EmbedInsightDialog/EmbedInsightDialogBase/components/NumericInput.js +4 -4
  48. package/esm/Dialog/ShareDialog/ShareDialogBase/types.d.ts.map +1 -1
  49. package/esm/Dialog/ShareDialog/ShareDialogBase/types.js +10 -10
  50. package/esm/Dialog/ShareDialog/ShareDialogBase/useShareDialogBase.d.ts.map +1 -1
  51. package/esm/Dialog/ShareDialog/ShareDialogBase/useShareDialogBase.js +3 -3
  52. package/esm/Dropdown/DropdownInvertableSelect.d.ts.map +1 -1
  53. package/esm/Dropdown/DropdownInvertableSelect.js +2 -2
  54. package/esm/Header/Header.d.ts.map +1 -1
  55. package/esm/Header/Header.js +3 -1
  56. package/esm/Header/HeaderHelp.d.ts.map +1 -1
  57. package/esm/Header/HeaderHelp.js +2 -2
  58. package/esm/Hyperlink/Hyperlink.d.ts.map +1 -1
  59. package/esm/Hyperlink/Hyperlink.js +3 -3
  60. package/esm/Overlay/Overlay.d.ts.map +1 -1
  61. package/esm/Overlay/Overlay.js +18 -11
  62. package/esm/RichText/plugins/rehype-references.js +1 -1
  63. package/esm/index.d.ts +4 -3
  64. package/esm/index.d.ts.map +1 -1
  65. package/esm/index.js +3 -2
  66. package/esm/sdk-ui-kit.d.ts +60 -37
  67. package/esm/syntaxHighlightingInput/hooks/useCodemirrorKeymap.d.ts +2 -0
  68. package/esm/syntaxHighlightingInput/hooks/useCodemirrorKeymap.d.ts.map +1 -1
  69. package/esm/syntaxHighlightingInput/hooks/useCodemirrorKeymap.js +6 -3
  70. package/esm/syntaxHighlightingInput/syntaxErrorLinter.d.ts +2 -2
  71. package/esm/syntaxHighlightingInput/syntaxErrorLinter.d.ts.map +1 -1
  72. package/esm/syntaxHighlightingInput/syntaxErrorLinter.js +10 -5
  73. package/package.json +11 -11
  74. package/src/@ui/UiListbox/UiListbox.scss +4 -2
  75. package/src/@ui/UiModalDialog/UiModalDialog.scss +49 -7
  76. package/src/@ui/UiSearchableSelect/UiSearchableSelect.scss +31 -0
  77. package/src/@ui/UiToast/UiToast.scss +7 -0
  78. package/styles/css/avenirFontPatch.css +111 -0
  79. package/styles/css/avenirFontPatch.css.map +1 -0
  80. package/styles/css/main.css +187 -6
  81. package/styles/css/main.css.map +1 -1
  82. package/styles/css/richText.css +2 -1
  83. package/styles/css/richText.css.map +1 -1
  84. package/styles/scss/avenirFontPatch.scss +63 -0
  85. package/styles/scss/main.scss +2 -1
  86. package/styles/scss/richText.scss +2 -1
  87. package/esm/@ui/UiConfigEditor/configEditorWarnings.d.ts +0 -10
  88. package/esm/@ui/UiConfigEditor/configEditorWarnings.d.ts.map +0 -1
  89. package/esm/@ui/UiConfigEditor/configEditorWarnings.js +0 -42
package/esm/index.js CHANGED
@@ -29,6 +29,7 @@ export { createTemplates, createAllTemplates, createAdvancedTemplates, STANDARD_
29
29
  export { useMetricTypePresets, useStandardPresets, useFormatTemplates, } from "./measureNumberFormat/hooks/useMetricTypePresets.js";
30
30
  export { SyntaxHighlightingInput, DefaultSyntaxHighlightingInput, } from "./syntaxHighlightingInput/SyntaxHighlightingInput.js";
31
31
  export { defaultSyntaxHighlightStyle } from "./syntaxHighlightingInput/defaultHighlightStyle.js";
32
+ export { isApplePlatform } from "./syntaxHighlightingInput/hooks/useCodemirrorKeymap.js";
32
33
  export { yamlPositionAt, } from "./syntaxHighlightingInput/yamlPosition.js";
33
34
  export { Button } from "./Button/Button.js";
34
35
  export { Datepicker } from "./Datepicker/Datepicker.js";
@@ -440,11 +441,11 @@ export { groupParametersByTag, } from "./ParameterPicker/groupParametersByTag.js
440
441
  export { ParameterControlButton, } from "./ParameterControl/ParameterControlButton.js";
441
442
  export { ParameterControl } from "./ParameterControl/ParameterControl.js";
442
443
  export { UiSectionHeading } from "./@ui/UiSectionHeading/UiSectionHeading.js";
443
- export { UiDialogHeader, } from "./@ui/UiModalDialog/UiDialogHeader.js";
444
+ export { UiDialogHeader } from "./@ui/UiModalDialog/UiDialogHeader.js";
444
445
  export { UiDialogFooter } from "./@ui/UiModalDialog/UiDialogFooter.js";
445
446
  export { UiConfirmDialog } from "./@ui/UiConfirmDialog/UiConfirmDialog.js";
446
447
  export { UiConfirmDialogCard, } from "./@ui/UiConfirmDialog/UiConfirmDialogCard.js";
447
- export { UiModalDialog } from "./@ui/UiModalDialog/UiModalDialog.js";
448
+ export { UiModalDialog, } from "./@ui/UiModalDialog/UiModalDialog.js";
448
449
  export { UiSearchableSelect, } from "./@ui/UiSearchableSelect/UiSearchableSelect.js";
449
450
  export { UiSearchableSelectDivider } from "./@ui/UiSearchableSelect/UiSearchableSelectDivider.js";
450
451
  export { UiSearchableSelectItem, } from "./@ui/UiSearchableSelect/UiSearchableSelectItem.js";
@@ -905,13 +905,6 @@ export declare const DialogBase: NamedExoticComponent<IDialogBaseProps>;
905
905
  */
906
906
  export declare function DialogCloseButton(props: IDialogCloseButtonProps): JSX.Element;
907
907
 
908
- /**
909
- * Title sizing variant.
910
- *
911
- * @internal
912
- */
913
- export declare type DialogHeaderTitleSize = "default" | "large";
914
-
915
908
  /**
916
909
  * @internal
917
910
  */
@@ -5782,6 +5775,9 @@ export declare interface IRowsIconProps extends IIconProps {
5782
5775
  */
5783
5776
  export declare const isActionKey: (event: KeyboardEvent_2) => boolean;
5784
5777
 
5778
+ /** @internal */
5779
+ export declare function isApplePlatform(): boolean;
5780
+
5785
5781
  /**
5786
5782
  * Checks if the given keyboard event is triggered by an ArrowDown key.
5787
5783
  *
@@ -7561,6 +7557,29 @@ export declare interface IUiConfigEditorContextMenuProps {
7561
7557
  };
7562
7558
  }
7563
7559
 
7560
+ /**
7561
+ * An error or warning about a value in the editor's text, shown in the lint gutter. It does not stop
7562
+ * the value being edited or emitted.
7563
+ *
7564
+ * @internal
7565
+ */
7566
+ export declare interface IUiConfigEditorDiagnostic {
7567
+ /**
7568
+ * Where the value sits in the parsed document, as object keys and array indexes. The same path
7569
+ * finds it whichever language is displayed.
7570
+ */
7571
+ path: ReadonlyArray<string | number>;
7572
+ /**
7573
+ * A piece of the value's text to mark, such as one marker in a string, at each place the value
7574
+ * holds it. The whole value is marked when it is absent or the value does not hold it.
7575
+ */
7576
+ part?: string;
7577
+ /** `"key"` marks the key that names the value instead of the value, such as an unknown key. */
7578
+ target?: "key";
7579
+ severity: "error" | "warning";
7580
+ message: string;
7581
+ }
7582
+
7564
7583
  /**
7565
7584
  * The editor's localized texts, gathered in one object so adding a text does not grow the prop
7566
7585
  * list. The caller localizes them, as with the other kit primitives; every key is optional.
@@ -7640,10 +7659,10 @@ export declare interface IUiConfigEditorProps {
7640
7659
  /** The editor's localized texts. Anything omitted falls back to a neutral default. */
7641
7660
  labels?: IUiConfigEditorLabels;
7642
7661
  /**
7643
- * Warnings about values, shown in the lint gutter next to any syntax error. A warning whose path
7644
- * the displayed text does not hold is not shown.
7662
+ * Errors and warnings about values, shown in the lint gutter next to any syntax error. A
7663
+ * diagnostic whose path the displayed text does not hold is not shown.
7645
7664
  */
7646
- warnings?: readonly IUiConfigEditorWarning[];
7665
+ diagnostics?: readonly IUiConfigEditorDiagnostic[];
7647
7666
  /**
7648
7667
  * Renders the contents of the toolbar's context menu, usually a `UiMenu`.
7649
7668
  *
@@ -7672,26 +7691,6 @@ export declare interface IUiConfigEditorProps {
7672
7691
  editorRef?: Ref<IUiConfigEditorApi>;
7673
7692
  }
7674
7693
 
7675
- /**
7676
- * A warning about a value in the editor's text, shown in the lint gutter. It does not stop the value
7677
- * being edited or emitted.
7678
- *
7679
- * @internal
7680
- */
7681
- export declare interface IUiConfigEditorWarning {
7682
- /**
7683
- * Where the value sits in the parsed document, as object keys and array indexes. The same path
7684
- * finds it whichever language is displayed.
7685
- */
7686
- path: ReadonlyArray<string | number>;
7687
- /**
7688
- * A piece of the value's text to mark, such as one marker in a string, at each place the value
7689
- * holds it. The whole value is marked when it is absent or the value does not hold it.
7690
- */
7691
- part?: string;
7692
- message: string;
7693
- }
7694
-
7695
7694
  /**
7696
7695
  * @internal
7697
7696
  */
@@ -7816,8 +7815,6 @@ export declare interface IUiDialogFooterProps {
7816
7815
  export declare interface IUiDialogHeaderProps {
7817
7816
  /** Title shown in the header. */
7818
7817
  title: string;
7819
- /** Title size — `"default"` = 18/26, `"large"` = 20/26. */
7820
- titleSize?: DialogHeaderTitleSize;
7821
7818
  /** Fires when the user clicks the X close button. Omit to hide the X. */
7822
7819
  onClose?: () => void;
7823
7820
  /** Optional leading slot rendered before the title (e.g. a back button). */
@@ -9016,8 +9013,10 @@ export declare interface IUiModalDialogProps {
9016
9013
  closeOnOutsideClick?: boolean;
9017
9014
  /** Fires when the user dismisses via Esc, backdrop press, or `onClose` from inside. */
9018
9015
  onClose: () => void;
9019
- /** Card width in px. Defaults to 540. */
9016
+ /** Card width in px. Defaults to 540. Ignored when `isFullscreen` is set. */
9020
9017
  width?: number;
9018
+ /** The size of the header: its title and close button. Ignored when `isFullscreen` is set. */
9019
+ size?: UiModalDialogSize;
9021
9020
  /** Initial keyboard focus target. Defaults to the first tabbable element. */
9022
9021
  initialFocus?: RefObject<HTMLElement | null>;
9023
9022
  /**
@@ -9032,6 +9031,10 @@ export declare interface IUiModalDialogProps {
9032
9031
  };
9033
9032
  /** Test id forwarded to the overlay element. */
9034
9033
  dataTestId?: string;
9034
+ /** Id of the dialog element, e.g. for the `aria-controls` of the button that opens it. */
9035
+ id?: string;
9036
+ /** Whether the dialog fills the viewport instead of showing as a card, e.g. on mobile. */
9037
+ isFullscreen?: boolean;
9035
9038
  }
9036
9039
 
9037
9040
  /**
@@ -9784,9 +9787,22 @@ export declare interface IUiSearchableSelectProps<T> {
9784
9787
  * while searching: without a query, all items show.
9785
9788
  */
9786
9789
  filter?: (item: T, query: string) => boolean;
9790
+ isOpen?: boolean;
9787
9791
  items: T[];
9788
9792
  onChange: (value: string) => void;
9793
+ onOpenChange?: (isOpen: boolean) => void;
9789
9794
  placeholder: string;
9795
+ /**
9796
+ * Only null for now as proper custom anchor is not needed. Null is supported only in fullscreen mode as
9797
+ * desktop mode would for that need `anchorRef` prop or something similar which is not needed.
9798
+ * You can extend this if you find the need for any of those in the future.
9799
+ */
9800
+ renderButton?: null;
9801
+ shouldCloseOnSelect?: boolean;
9802
+ /**
9803
+ * The heading of the full-screen view on mobile, which also names its dialog.
9804
+ */
9805
+ title: string;
9790
9806
  value: string | null;
9791
9807
  }
9792
9808
 
@@ -12583,7 +12599,7 @@ export declare function UiComboboxPopup({ children, style }: IUiComboboxPopupPro
12583
12599
  *
12584
12600
  * @internal
12585
12601
  */
12586
- export declare function UiConfigEditor({ value, onChange, primaryLanguage, languages, language, onLanguageChange, completionSource, labels, warnings, renderContextMenu, label, placeholder, readOnly, disabled, rows, dataTestId, editorRef, }: IUiConfigEditorProps): JSX.Element;
12602
+ export declare function UiConfigEditor({ value, onChange, primaryLanguage, languages, language, onLanguageChange, completionSource, labels, diagnostics, renderContextMenu, label, placeholder, readOnly, disabled, rows, dataTestId, editorRef, }: IUiConfigEditorProps): JSX.Element;
12587
12603
 
12588
12604
  /**
12589
12605
  * Modal confirm dialog used for actions that need explicit user confirmation
@@ -12651,7 +12667,7 @@ export declare function UiDialogFooter({ children, divider }: IUiDialogFooterPro
12651
12667
  *
12652
12668
  * @internal
12653
12669
  */
12654
- export declare function UiDialogHeader({ title, titleSize, onClose, leading }: IUiDialogHeaderProps): JSX.Element;
12670
+ export declare function UiDialogHeader({ title, onClose, leading }: IUiDialogHeaderProps): JSX.Element;
12655
12671
 
12656
12672
  /**
12657
12673
  * @internal
@@ -12918,7 +12934,14 @@ export declare function UiMenu<T extends IUiMenuItemData = object, M extends obj
12918
12934
  *
12919
12935
  * @internal
12920
12936
  */
12921
- export declare function UiModalDialog({ children, variant, isOpen, onClose, width, initialFocus, closeOnOutsideClick, accessibilityConfig, dataTestId, }: IUiModalDialogProps): JSX.Element | null;
12937
+ export declare function UiModalDialog({ children, variant, isOpen, onClose, width, size, initialFocus, closeOnOutsideClick, accessibilityConfig, dataTestId, id, isFullscreen, }: IUiModalDialogProps): JSX.Element | null;
12938
+
12939
+ /**
12940
+ * The size of the dialog's header: its title and close button.
12941
+ *
12942
+ * @internal
12943
+ */
12944
+ export declare type UiModalDialogSize = "default" | "large";
12922
12945
 
12923
12946
  /**
12924
12947
  * @internal
@@ -13126,7 +13149,7 @@ export declare function UiReturnFocusOnUnmount({ children, ...options }: IUiRetu
13126
13149
  /**
13127
13150
  * @internal
13128
13151
  */
13129
- export declare function UiSearchableSelect<T>({ accessibilityConfig, children, items, filter, placeholder, defaultOpen, value, onChange, }: IUiSearchableSelectProps<T>): JSX.Element;
13152
+ export declare function UiSearchableSelect<T>({ accessibilityConfig, children, items, filter, placeholder, title, defaultOpen, isOpen, onOpenChange, renderButton: renderButtonProp, shouldCloseOnSelect, value, onChange, }: IUiSearchableSelectProps<T>): JSX.Element;
13130
13153
 
13131
13154
  /**
13132
13155
  * Only here for the markup. This component is searched from the parent.
@@ -1,5 +1,7 @@
1
1
  import { type RefObject } from "react";
2
2
  import { type EditorView } from "@codemirror/view";
3
+ /** @internal */
4
+ export declare function isApplePlatform(): boolean;
3
5
  export declare function useCodemirrorKeymap({ handleKeyDown, }: {
4
6
  handleKeyDown: RefObject<((event: KeyboardEvent, view: EditorView) => boolean) | undefined>;
5
7
  }): {
@@ -1 +1 @@
1
- {"version":3,"file":"useCodemirrorKeymap.d.ts","sourceRoot":"","sources":["../../../src/syntaxHighlightingInput/hooks/useCodemirrorKeymap.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAE,KAAK,UAAU,EAAU,MAAM,kBAAkB,CAAC;AAE3D,wBAAgB,mBAAmB,CAAC,EAChC,aAAa,GAChB,EAAE;IACC,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC;CAC/F;;EA8BA"}
1
+ {"version":3,"file":"useCodemirrorKeymap.d.ts","sourceRoot":"","sources":["../../../src/syntaxHighlightingInput/hooks/useCodemirrorKeymap.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAE,KAAK,UAAU,EAAU,MAAM,kBAAkB,CAAC;AAE3D,gBAAgB;AAChB,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAED,wBAAgB,mBAAmB,CAAC,EAChC,aAAa,GAChB,EAAE;IACC,aAAa,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC;CAC/F;;EA6BA"}
@@ -3,6 +3,10 @@ import { useMemo } from "react";
3
3
  import { startCompletion } from "@codemirror/autocomplete";
4
4
  import { defaultKeymap, history, historyKeymap } from "@codemirror/commands";
5
5
  import { keymap } from "@codemirror/view";
6
+ /** @internal */
7
+ export function isApplePlatform() {
8
+ return /Mac|iPhone|iPad|iPod/.test(globalThis.navigator?.platform ?? "");
9
+ }
6
10
  export function useCodemirrorKeymap({ handleKeyDown, }) {
7
11
  // Keymap extension. The history state extension comes with it: `historyKeymap` binds the
8
12
  // undo/redo commands, but without `history()` installed they have nothing to operate on.
@@ -16,12 +20,11 @@ export function useCodemirrorKeymap({ handleKeyDown, }) {
16
20
  return handleKeyDown.current?.(event, view) ?? false;
17
21
  },
18
22
  },
19
- // "Mod" is Ctrl on Windows/Linux, Cmd on macOS
23
+ // Both Meta-i and Ctrl-i are bound so the named shortcut works even when the platform check is wrong.
20
24
  {
21
- key: "Mod-i",
25
+ key: "Meta-i",
22
26
  run: startCompletion,
23
27
  },
24
- // Ctrl on Windows
25
28
  {
26
29
  key: "Ctrl-i",
27
30
  run: startCompletion,
@@ -14,8 +14,8 @@ export declare function getSyntaxErrorDiagnostics(state: EditorState, message: s
14
14
  * Creates a CodeMirror linter extension that reports syntax errors by walking the parse tree for
15
15
  * error nodes.
16
16
  *
17
- * Language-agnostic: it reads the tree the language extension already built for highlighting, so it
18
- * works for any grammar and costs no extra parse and no extra dependency.
17
+ * Language-agnostic: it reads the tree the language extension builds, so it works for any grammar.
18
+ * Each lint finishes an unfinished parse on the main thread, within a bounded time budget.
19
19
  *
20
20
  * @param message - localized message shown on each syntax-error diagnostic
21
21
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"syntaxErrorLinter.d.ts","sourceRoot":"","sources":["../../src/syntaxHighlightingInput/syntaxErrorLinter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,UAAU,EAAU,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,EAAE,CA0B3F;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,yCAEtD"}
1
+ {"version":3,"file":"syntaxErrorLinter.d.ts","sourceRoot":"","sources":["../../src/syntaxHighlightingInput/syntaxErrorLinter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,UAAU,EAAU,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU,EAAE,CA8B3F;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,yCAEtD"}
@@ -1,6 +1,7 @@
1
1
  // (C) 2026 GoodData Corporation
2
- import { syntaxTree } from "@codemirror/language";
2
+ import { ensureSyntaxTree, syntaxTree } from "@codemirror/language";
3
3
  import { linter } from "@codemirror/lint";
4
+ const PARSE_BUDGET_MS = 200;
4
5
  /**
5
6
  * Collects syntax-error diagnostics by walking the parse tree for error nodes.
6
7
  *
@@ -15,10 +16,14 @@ export function getSyntaxErrorDiagnostics(state, message) {
15
16
  return [];
16
17
  }
17
18
  const diagnostics = [];
18
- const tree = syntaxTree(state);
19
+ const completeTree = ensureSyntaxTree(state, state.doc.length, PARSE_BUDGET_MS);
20
+ const tree = completeTree ?? syntaxTree(state);
21
+ // A parse stopped before the end of the document ends with error nodes at the stop position,
22
+ // where the text itself has no error.
23
+ const isBeforeParseCut = (to) => completeTree !== null || to < tree.length;
19
24
  tree.iterate({
20
25
  enter(node) {
21
- if (node.type.isError) {
26
+ if (node.type.isError && isBeforeParseCut(node.to)) {
22
27
  diagnostics.push({
23
28
  from: node.from,
24
29
  // Zero-width error nodes are widened so the marker has something to underline —
@@ -38,8 +43,8 @@ export function getSyntaxErrorDiagnostics(state, message) {
38
43
  * Creates a CodeMirror linter extension that reports syntax errors by walking the parse tree for
39
44
  * error nodes.
40
45
  *
41
- * Language-agnostic: it reads the tree the language extension already built for highlighting, so it
42
- * works for any grammar and costs no extra parse and no extra dependency.
46
+ * Language-agnostic: it reads the tree the language extension builds, so it works for any grammar.
47
+ * Each lint finishes an unfinished parse on the main thread, within a bounded time budget.
43
48
  *
44
49
  * @param message - localized message shown on each syntax-error diagnostic
45
50
  * @internal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-kit",
3
- "version": "11.68.0-alpha.2",
3
+ "version": "11.68.0-alpha.4",
4
4
  "description": "GoodData SDK - UI Building Components",
5
5
  "license": "MIT",
6
6
  "author": "GoodData Corporation",
@@ -79,11 +79,11 @@
79
79
  "unified": "^11.0.5",
80
80
  "uuid": "11.1.1",
81
81
  "yaml": "2.9.1",
82
- "@gooddata/sdk-backend-spi": "11.68.0-alpha.2",
83
- "@gooddata/sdk-model": "11.68.0-alpha.2",
84
- "@gooddata/sdk-ui": "11.68.0-alpha.2",
85
- "@gooddata/util": "11.68.0-alpha.2",
86
- "@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.2"
82
+ "@gooddata/sdk-backend-spi": "11.68.0-alpha.4",
83
+ "@gooddata/sdk-model": "11.68.0-alpha.4",
84
+ "@gooddata/sdk-ui": "11.68.0-alpha.4",
85
+ "@gooddata/util": "11.68.0-alpha.4",
86
+ "@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.4"
87
87
  },
88
88
  "devDependencies": {
89
89
  "@microsoft/api-documenter": "7.30.20",
@@ -128,11 +128,11 @@
128
128
  "svgo": "2.8.4",
129
129
  "typescript": "7.0.2",
130
130
  "vitest": "5.0.4",
131
- "@gooddata/eslint-config": "11.68.0-alpha.2",
132
- "@gooddata/oxlint-config": "11.68.0-alpha.2",
133
- "@gooddata/reference-workspace": "11.68.0-alpha.2",
134
- "@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.2",
135
- "@gooddata/stylelint-config": "11.68.0-alpha.2"
131
+ "@gooddata/eslint-config": "11.68.0-alpha.4",
132
+ "@gooddata/oxlint-config": "11.68.0-alpha.4",
133
+ "@gooddata/reference-workspace": "11.68.0-alpha.4",
134
+ "@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.4",
135
+ "@gooddata/stylelint-config": "11.68.0-alpha.4"
136
136
  },
137
137
  "peerDependencies": {
138
138
  "react": "^18.0.0 || ^19.0.0",
@@ -44,7 +44,9 @@
44
44
  }
45
45
 
46
46
  &__item {
47
- padding: 8px 10px;
47
+ box-sizing: border-box;
48
+ min-height: 32px;
49
+ padding: var(--gd-spacing-5px) var(--gd-spacing-10px);
48
50
  cursor: pointer;
49
51
  display: flex;
50
52
  align-items: center;
@@ -85,9 +87,9 @@
85
87
  }
86
88
 
87
89
  &--isCompact {
90
+ min-height: 28px;
88
91
  font-size: 12px;
89
92
  line-height: 18px;
90
- padding: 5px 10px;
91
93
  }
92
94
  }
93
95
 
@@ -29,6 +29,37 @@
29
29
  box-shadow: 0 2px 8px var(--gd-shadow-color);
30
30
  overflow-wrap: break-word;
31
31
 
32
+ &--isFullscreen {
33
+ box-sizing: border-box;
34
+ width: 100vw; // Fallback
35
+ height: 100vh; // Fallback
36
+ width: 100dvw;
37
+ height: 100dvh;
38
+ max-width: none;
39
+ max-height: none;
40
+ padding: 0;
41
+ border-radius: 0;
42
+ box-shadow: none;
43
+
44
+ .gd-ui-kit-dialog-header {
45
+ box-sizing: border-box;
46
+ flex-shrink: 0;
47
+ height: 56px;
48
+ margin-bottom: 0;
49
+ padding: 0 var(--gd-spacing-15px);
50
+ border-bottom: 1px solid var(--gd-palette-complementary-3);
51
+ }
52
+
53
+ .gd-ui-kit-dialog-body {
54
+ padding: var(--gd-spacing-15px) var(--gd-spacing-15px) 0;
55
+ }
56
+
57
+ .gd-ui-kit-dialog-footer {
58
+ padding-right: var(--gd-spacing-15px);
59
+ padding-left: var(--gd-spacing-15px);
60
+ }
61
+ }
62
+
32
63
  &--variant-confirmation {
33
64
  box-sizing: border-box;
34
65
  border: 1px solid var(--gd-modal-borderColor);
@@ -58,15 +89,25 @@
58
89
  flex-shrink: 0;
59
90
  }
60
91
 
61
- // The close button's 32px hit area is taller than the title's 23px line box. Left to
62
- // stretch the row it would push the title down and the content below further away than
63
- // the design places them, so pull the extra back at both ends. The target size itself
64
- // is untouched: only the button's contribution to the row's height changes.
92
+ &--size-default {
93
+ --dialog-header-line-height: 23px;
94
+ --dialog-header-close-icon-size: 18px;
95
+ --dialog-header-close-button-size: var(--gd-button-M);
96
+ }
97
+
98
+ &--size-large {
99
+ --dialog-header-line-height: 26px;
100
+ --dialog-header-close-icon-size: 20px;
101
+ --dialog-header-close-button-size: var(--gd-button-L);
102
+ }
103
+
65
104
  &__close {
66
105
  display: inline-flex;
67
106
  align-items: center;
68
107
  flex-shrink: 0;
69
- margin-block: calc((23px - 32px) / 2);
108
+ margin: calc((var(--dialog-header-line-height) - var(--dialog-header-close-button-size)) / 2)
109
+ calc((var(--dialog-header-close-icon-size) - var(--dialog-header-close-button-size)) / 2)
110
+ calc((var(--dialog-header-line-height) - var(--dialog-header-close-button-size)) / 2) 0;
70
111
  }
71
112
 
72
113
  &__title {
@@ -74,6 +115,7 @@
74
115
  min-width: 0;
75
116
  margin: 0;
76
117
  font-weight: 700;
118
+ line-height: var(--dialog-header-line-height);
77
119
  color: var(--gd-palette-complementary-8);
78
120
  overflow: hidden;
79
121
  text-overflow: ellipsis;
@@ -81,12 +123,12 @@
81
123
 
82
124
  &--size-default {
83
125
  font-size: 17px;
84
- line-height: 23px;
85
126
  }
86
127
 
87
128
  &--size-large {
88
129
  font-size: 20px;
89
- line-height: 26px;
130
+ // Optical nudge
131
+ transform: translateY(1px);
90
132
  }
91
133
  }
92
134
  }
@@ -101,6 +101,37 @@
101
101
 
102
102
  &__body {
103
103
  padding: 4px 0;
104
+
105
+ &--isFullscreen {
106
+ display: flex;
107
+ flex-direction: column;
108
+ flex: 1 1 auto;
109
+ min-height: 0;
110
+ padding: var(--gd-spacing-15px) var(--gd-spacing-15px) 0;
111
+
112
+ .gd-ui-kit-searchable-select__search {
113
+ padding: 0 0 12px;
114
+ }
115
+
116
+ .gd-ui-kit-listbox {
117
+ box-sizing: border-box;
118
+ flex: 0 1 auto;
119
+ width: auto;
120
+ max-height: none;
121
+ margin: 0 calc(-1 * var(--gd-spacing-15px));
122
+ padding: 0;
123
+ }
124
+
125
+ .gd-ui-kit-listbox__item {
126
+ padding-right: var(--gd-spacing-15px);
127
+ padding-left: var(--gd-spacing-15px);
128
+ }
129
+
130
+ .gd-ui-kit-searchable-select__no-items {
131
+ font-size: 14px;
132
+ padding: 8px 0;
133
+ }
134
+ }
104
135
  }
105
136
 
106
137
  &__search {
@@ -1,5 +1,7 @@
1
1
  // (C) 2026 GoodData Corporation
2
2
 
3
+ @use "../../../styles/scss/variables";
4
+
3
5
  // `UiToast` reuses the existing `--gd-toastMessage-{variant}-*` theme variables
4
6
  // (registered in sdk-ui-theme-provider, defaulted in defaultTheme.scss) so it
5
7
  // matches the look of the legacy `<Message>` overlay and any theme overrides
@@ -30,6 +32,11 @@
30
32
  max-width: 620px;
31
33
  width: 90%;
32
34
 
35
+ @media #{variables.$small-only} {
36
+ width: calc(100% - 2 * var(--gd-spacing-15px));
37
+ align-items: stretch;
38
+ }
39
+
33
40
  &__item {
34
41
  pointer-events: auto;
35
42
  display: inline-flex;
@@ -0,0 +1,111 @@
1
+ /**
2
+ * Fixes the incorrect weight mappings of the (local) Avenir font that ships with macOS and normalizes them
3
+ * across browsers.
4
+ *
5
+ * The problem this patch resolves:
6
+ * On macOS, the local "Avenir" font labels its weights incorrectly. As a result, Chrome and Safari render
7
+ * `font-weight: 700` as "Avenir Black" and `font-weight: 900` as "Avenir Heavy", so `font-weight: 700`
8
+ * renders _bolder_ text than `font-weight: 900`.
9
+ *
10
+ * (The Chrome / Safari rendering then also doesn't match the rendering in Figma.)
11
+ *
12
+ * Firefox ships its own patch for these font weights, but Chrome and Safari don't. See the following links
13
+ * for more information:
14
+ * - https://github.com/mozilla-firefox/firefox/blob/cf103b9362d64aa14c7adc0c0e4b9469ccbf6caa/modules/libpref/init/all.js#L2482-L2486
15
+ * - https://bugzilla.mozilla.org/show_bug.cgi?id=931426#c55
16
+ * - https://bugzilla.mozilla.org/show_bug.cgi?id=931426#c66
17
+ *
18
+ * The patch below normalizes the font-weight behavior across all browsers as follows:
19
+ *
20
+ * | font-weight | Chrome / Safari | Firefox | With this fix (all browsers) |
21
+ * | ----------- | --------------- | ------- | ---------------------------- |
22
+ * | 100 | Light | Book * | Light |
23
+ * | 200 | Light | Book * | Light |
24
+ * | 300 | Light * | Book | Book |
25
+ * | 400 | Book * | Roman | Roman |
26
+ * | 500 | Medium | Medium | Medium |
27
+ * | 600 | Black * | Heavy | Heavy |
28
+ * | 700 | Black * | Heavy | Heavy |
29
+ * | 800 | Black * | Heavy | Heavy |
30
+ * | 900 | Heavy * | Black | Black |
31
+ *
32
+ * Only the installed font is used (the `local()` function), so this is not subject to copyright.
33
+ *
34
+ * Note that the problem described above affects only macOS. Windows doesn't ship Avenir
35
+ * (https://learn.microsoft.com/en-us/typography/fonts/windows_11_font_list), so there the faces don't
36
+ * load and the font stack moves on to the next family, as without them.
37
+ */
38
+ @font-face {
39
+ font-family: "Avenir";
40
+ src: local("Avenir Light"), local("Avenir-Light");
41
+ font-weight: 200;
42
+ font-style: normal;
43
+ }
44
+ @font-face {
45
+ font-family: "Avenir";
46
+ src: local("Avenir Light Oblique"), local("Avenir-LightOblique");
47
+ font-weight: 200;
48
+ font-style: italic;
49
+ }
50
+ @font-face {
51
+ font-family: "Avenir";
52
+ src: local("Avenir Book"), local("Avenir-Book");
53
+ font-weight: 300;
54
+ font-style: normal;
55
+ }
56
+ @font-face {
57
+ font-family: "Avenir";
58
+ src: local("Avenir Book Oblique"), local("Avenir-BookOblique");
59
+ font-weight: 300;
60
+ font-style: italic;
61
+ }
62
+ @font-face {
63
+ font-family: "Avenir";
64
+ src: local("Avenir Roman"), local("Avenir-Roman");
65
+ font-weight: 400;
66
+ font-style: normal;
67
+ }
68
+ @font-face {
69
+ font-family: "Avenir";
70
+ src: local("Avenir Oblique"), local("Avenir-Oblique");
71
+ font-weight: 400;
72
+ font-style: italic;
73
+ }
74
+ @font-face {
75
+ font-family: "Avenir";
76
+ src: local("Avenir Medium"), local("Avenir-Medium");
77
+ font-weight: 500;
78
+ font-style: normal;
79
+ }
80
+ @font-face {
81
+ font-family: "Avenir";
82
+ src: local("Avenir Medium Oblique"), local("Avenir-MediumOblique");
83
+ font-weight: 500;
84
+ font-style: italic;
85
+ }
86
+ @font-face {
87
+ font-family: "Avenir";
88
+ src: local("Avenir Heavy"), local("Avenir-Heavy");
89
+ font-weight: 800;
90
+ font-style: normal;
91
+ }
92
+ @font-face {
93
+ font-family: "Avenir";
94
+ src: local("Avenir Heavy Oblique"), local("Avenir-HeavyOblique");
95
+ font-weight: 800;
96
+ font-style: italic;
97
+ }
98
+ @font-face {
99
+ font-family: "Avenir";
100
+ src: local("Avenir Black"), local("Avenir-Black");
101
+ font-weight: 900;
102
+ font-style: normal;
103
+ }
104
+ @font-face {
105
+ font-family: "Avenir";
106
+ src: local("Avenir Black Oblique"), local("Avenir-BlackOblique");
107
+ font-weight: 900;
108
+ font-style: italic;
109
+ }
110
+
111
+ /*# sourceMappingURL=avenirFontPatch.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sourceRoot":"","sources":["../scss/avenirFontPatch.scss"],"names":[],"mappings":"AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsDI;EACI;EACA;EACA,aApBA;EAqBA,YArBA;;AAiBJ;EACI;EACA;EACA,aApBA;EAqBA,YArBA;;AAiBJ;EACI;EACA;EACA,aApBA;EAqBA,YArBA;;AAiBJ;EACI;EACA;EACA,aApBA;EAqBA,YArBA;;AAiBJ;EACI;EACA;EACA,aApBA;EAqBA,YArBA;;AAiBJ;EACI;EACA;EACA,aApBA;EAqBA,YArBA;;AAiBJ;EACI;EACA;EACA,aApBA;EAqBA,YArBA;;AAiBJ;EACI;EACA;EACA,aApBA;EAqBA,YArBA;;AAiBJ;EACI;EACA;EACA,aApBA;EAqBA,YArBA;;AAiBJ;EACI;EACA;EACA,aApBA;EAqBA,YArBA;;AAiBJ;EACI;EACA;EACA,aApBA;EAqBA,YArBA;;AAiBJ;EACI;EACA;EACA,aApBA;EAqBA,YArBA","file":"avenirFontPatch.css"}