@gooddata/sdk-ui-kit 11.58.0-alpha.4 → 11.58.0-alpha.6
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/esm/DescriptionPanel/DescriptionPanel.d.ts +2 -0
- package/esm/DescriptionPanel/DescriptionPanel.d.ts.map +1 -1
- package/esm/DescriptionPanel/DescriptionPanel.js +2 -2
- package/esm/RichText/RichText.d.ts +7 -2
- package/esm/RichText/RichText.d.ts.map +1 -1
- package/esm/RichText/RichText.js +15 -5
- package/esm/RichText/RichTextWithTooltip.d.ts.map +1 -1
- package/esm/RichText/RichTextWithTooltip.js +4 -35
- package/esm/RichText/helpers/references.js +2 -0
- package/esm/RichText/hooks/useEvaluatedMetricsAndAttributes.d.ts +5 -1
- package/esm/RichText/hooks/useEvaluatedMetricsAndAttributes.d.ts.map +1 -1
- package/esm/RichText/hooks/useEvaluatedMetricsAndAttributes.js +9 -5
- package/esm/RichText/hooks/useEvaluatedReferences.d.ts +1 -1
- package/esm/RichText/hooks/useEvaluatedReferences.d.ts.map +1 -1
- package/esm/RichText/hooks/useEvaluatedReferences.js +1 -6
- package/esm/RichText/plugins/rehype-references.d.ts +8 -1
- package/esm/RichText/plugins/rehype-references.d.ts.map +1 -1
- package/esm/RichText/plugins/rehype-references.js +32 -2
- package/esm/RichText/plugins/types.d.ts.map +1 -1
- package/esm/RichText/plugins/types.js +2 -2
- package/esm/sdk-ui-kit.d.ts +9 -2
- package/package.json +11 -11
|
@@ -44,9 +44,11 @@ export interface IDescriptionPanelProps {
|
|
|
44
44
|
useReferences?: boolean;
|
|
45
45
|
LoadingComponent?: ComponentType;
|
|
46
46
|
filters?: IFilter[];
|
|
47
|
+
isExecutionInputLoading?: boolean;
|
|
47
48
|
separators?: ISeparators;
|
|
48
49
|
/** References the current user is not allowed to read; each renders as a marker in place of its value. */
|
|
49
50
|
restrictedReferences?: ObjRef[];
|
|
51
|
+
parameterDisplayValues?: ReadonlyMap<string, string>;
|
|
50
52
|
execConfig?: IExecutionConfig;
|
|
51
53
|
id?: string;
|
|
52
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptionPanel.d.ts","sourceRoot":"","sources":["../../src/DescriptionPanel/DescriptionPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAMzG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKzD;;GAEG;AACH,eAAO,MAAM,8BAA8B;;GAgB1C,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,+BAA+B;IACxC,OAAO;IACP,OAAO;IACP,OAAO;IAEP,OAAO;IACP,OAAO;IACP,OAAO;IAEP,OAAO;IACP,OAAO;IACP,OAAO;IAEP,OAAO;IACP,OAAO;IACP,OAAO;CACV,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AAEH,MAAM,WAAW,sBAAsB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,0GAA0G;IAC1G,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,sBAAsB,2CAM7D;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,sBAAsB,2CAMpE;AACD;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,EAAE,wBAAwB,2CAgBtE"}
|
|
1
|
+
{"version":3,"file":"DescriptionPanel.d.ts","sourceRoot":"","sources":["../../src/DescriptionPanel/DescriptionPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAK3C,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAMzG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKzD;;GAEG;AACH,eAAO,MAAM,8BAA8B;;GAgB1C,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,+BAA+B;IACxC,OAAO;IACP,OAAO;IACP,OAAO;IAEP,OAAO;IACP,OAAO;IACP,OAAO;IAEP,OAAO;IACP,OAAO;IACP,OAAO;IAEP,OAAO;IACP,OAAO;IACP,OAAO;CACV,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AAEH,MAAM,WAAW,sBAAsB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,0GAA0G;IAC1G,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,sBAAsB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrD,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,sBAAsB,2CAM7D;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,sBAAsB,2CAMpE;AACD;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,EAAE,wBAAwB,2CAgBtE"}
|
|
@@ -68,10 +68,10 @@ function DescriptionPanelCore(props) {
|
|
|
68
68
|
const { arrowOffsets = DESCRIPTION_PANEL_ARROW_OFFSETS } = props;
|
|
69
69
|
return (_jsxs(BubbleHoverTrigger, { onBubbleOpen: props.onBubbleOpen, showDelay: 0, eventsOnBubble: true, children: [_jsx(DescriptionIcon, { className: props.className }), _jsx(Bubble, { className: "bubble-light gd-description-panel-bubble", alignPoints: DESCRIPTION_PANEL_ALIGN_POINTS, arrowOffsets: arrowOffsets, arrowStyle: { display: "none" }, ensureVisibility: true, children: _jsx(DescriptionPanelContentCore, { ...props }) })] }));
|
|
70
70
|
}
|
|
71
|
-
function DescriptionPanelContentCore({ title, description, isLocked, useReferences = false, LoadingComponent, filters, separators, restrictedReferences, execConfig, id, }) {
|
|
71
|
+
function DescriptionPanelContentCore({ title, description, isLocked, useReferences = false, LoadingComponent, filters, isExecutionInputLoading, separators, restrictedReferences, parameterDisplayValues, execConfig, id, }) {
|
|
72
72
|
const isZoomed = useIsZoomed(ZOOM_THRESHOLD); // ignore slight zoom in
|
|
73
73
|
const className = cx("gd-description-panel s-gd-description-panel", {
|
|
74
74
|
zoomed: isZoomed,
|
|
75
75
|
});
|
|
76
|
-
return (_jsxs("div", { className: className, id: id, children: [!isEmpty(title) && (_jsxs("div", { className: "gd-description-panel-title", children: [isLocked ? _jsx(UiIcon, { type: "lock", size: 16, color: "complementary-6" }) : null, title] })), !isEmpty(description) && (_jsx("div", { className: "gd-description-panel-content", children: _jsx(RichText, { value: description ?? "", renderMode: "view", referencesEnabled: useReferences, filters: filters, separators: separators, restrictedReferences: restrictedReferences, LoadingComponent: LoadingComponent, execConfig: execConfig }) }))] }));
|
|
76
|
+
return (_jsxs("div", { className: className, id: id, children: [!isEmpty(title) && (_jsxs("div", { className: "gd-description-panel-title", children: [isLocked ? _jsx(UiIcon, { type: "lock", size: 16, color: "complementary-6" }) : null, title] })), !isEmpty(description) && (_jsx("div", { className: "gd-description-panel-content", children: _jsx(RichText, { value: description ?? "", renderMode: "view", referencesEnabled: useReferences, filters: filters, isExecutionInputLoading: isExecutionInputLoading, separators: separators, restrictedReferences: restrictedReferences, parameterDisplayValues: parameterDisplayValues, LoadingComponent: LoadingComponent, execConfig: execConfig }) }))] }));
|
|
77
77
|
}
|
|
@@ -54,9 +54,14 @@ export interface IRichTextProps {
|
|
|
54
54
|
*/
|
|
55
55
|
restrictedReferences?: ObjRef[];
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* The display text of every parameter the text may name, by parameter identifier. Without it a
|
|
58
|
+
* `{parameter/<id>}` token stays as it was typed.
|
|
58
59
|
*/
|
|
59
|
-
|
|
60
|
+
parameterDisplayValues?: ReadonlyMap<string, string>;
|
|
61
|
+
/**
|
|
62
|
+
* The reference execution waits while the filters, or the parameters they use, load.
|
|
63
|
+
*/
|
|
64
|
+
isExecutionInputLoading?: boolean;
|
|
60
65
|
/**
|
|
61
66
|
* Separators to be used for rendering references.
|
|
62
67
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/RichText/RichText.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,aAAa,EAGlB,KAAK,YAAY,EAIpB,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACzG,OAAO,EAAiC,KAAK,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAItG,OAAO,EAAE,KAAK,eAAe,EAA0B,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/RichText/RichText.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,aAAa,EAGlB,KAAK,YAAY,EAIpB,MAAM,OAAO,CAAC;AAMf,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACzG,OAAO,EAAiC,KAAK,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAItG,OAAO,EAAE,KAAK,eAAe,EAA0B,MAAM,uCAAuC,CAAC;AAwBrG;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;;;;;;;;;;;OAaG;IACH,eAAe,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IAC7C;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE;QACT,IAAI,EAAE,OAAO,CAAC;QACd,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC3C,CAAC;IAEF;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IAEpB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAErD;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC;IAEzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,gBAAgB,CAAC,EAAE,aAAa,CAAC;CACpC;AA0OD;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,cAAc,2CAM7C"}
|
package/esm/RichText/RichText.js
CHANGED
|
@@ -22,11 +22,12 @@ const RICH_TEXT_PLACEHOLDER = `
|
|
|
22
22
|
{metric/metric_id}
|
|
23
23
|
{label/label_id}
|
|
24
24
|
{computed_attribute/computed_attribute_id}
|
|
25
|
+
{parameter/parameter_id}
|
|
25
26
|
`;
|
|
26
27
|
function DefaultLoadingComponent() {
|
|
27
28
|
return _jsx(LoadingComponent, {});
|
|
28
29
|
}
|
|
29
|
-
function RichTextCore({ value, execConfig, onChange, referencesEnabled, allowedMarkdown, renderMode = "view", editPlaceholder, editRows, emptyElement, className, autoResize, rawContent, filters,
|
|
30
|
+
function RichTextCore({ value, execConfig, onChange, referencesEnabled, allowedMarkdown, renderMode = "view", editPlaceholder, editRows, emptyElement, className, autoResize, rawContent, filters, isExecutionInputLoading, separators, restrictedReferences, parameterDisplayValues, onLoadingChanged, onError, LoadingComponent, }) {
|
|
30
31
|
return (_jsxs("div", { className: cx([
|
|
31
32
|
"gd-rich-text-content",
|
|
32
33
|
`gd-rich-text-content-${renderMode}`,
|
|
@@ -34,7 +35,7 @@ function RichTextCore({ value, execConfig, onChange, referencesEnabled, allowedM
|
|
|
34
35
|
`s-rich-text-${renderMode}`,
|
|
35
36
|
{ "gd-visible-scrollbar": renderMode === "view" },
|
|
36
37
|
className,
|
|
37
|
-
]), children: [renderMode === "edit" ? (_jsx(RichTextEdit, { value: value, onChange: (updatedValue) => onChange?.(updatedValue), placeholder: editPlaceholder, rows: editRows, autoResize: autoResize })) : (_jsx(RichTextView, { value: value, filters: filters,
|
|
38
|
+
]), children: [renderMode === "edit" ? (_jsx(RichTextEdit, { value: value, onChange: (updatedValue) => onChange?.(updatedValue), placeholder: editPlaceholder, rows: editRows, autoResize: autoResize })) : (_jsx(RichTextView, { value: value, filters: filters, isExecutionInputLoading: isExecutionInputLoading, separators: separators, restrictedReferences: restrictedReferences, parameterDisplayValues: parameterDisplayValues, referencesEnabled: referencesEnabled, allowedMarkdown: allowedMarkdown, LoadingComponent: LoadingComponent, onLoadingChanged: onLoadingChanged, onError: onError, emptyElement: emptyElement, execConfig: execConfig })), rawContent?.show ? _jsx("input", { type: "hidden", value: value, ...rawContent.dataAttributes }) : null] }));
|
|
38
39
|
}
|
|
39
40
|
function RichTextEdit({ value, onChange, placeholder, rows = 10, autoResize = false }) {
|
|
40
41
|
const textareaRef = useRef(null);
|
|
@@ -75,11 +76,11 @@ function ImageComponent(props) {
|
|
|
75
76
|
function AnchorComponent(props) {
|
|
76
77
|
return _jsx("a", { target: "_blank", rel: "noopener noreferrer", ...props });
|
|
77
78
|
}
|
|
78
|
-
function RichTextView({ value, referencesEnabled, allowedMarkdown, emptyElement, filters,
|
|
79
|
+
function RichTextView({ value, referencesEnabled, allowedMarkdown, emptyElement, filters, isExecutionInputLoading, separators, restrictedReferences, parameterDisplayValues, execConfig, onError, onLoadingChanged, LoadingComponent = DefaultLoadingComponent, }) {
|
|
79
80
|
const intl = useIntl();
|
|
80
81
|
const { loading, metrics, isEmptyValue, error } = useEvaluatedReferences(value, filters ?? [], {
|
|
81
82
|
enabled: referencesEnabled ?? false,
|
|
82
|
-
|
|
83
|
+
isExecutionInputLoading,
|
|
83
84
|
...execConfig,
|
|
84
85
|
}, restrictedReferences);
|
|
85
86
|
useEffect(() => {
|
|
@@ -108,7 +109,16 @@ function RichTextView({ value, referencesEnabled, allowedMarkdown, emptyElement,
|
|
|
108
109
|
return (_jsx(Markdown, { components: components, remarkPlugins: [
|
|
109
110
|
...(allowedMarkdown === undefined ? [] : [remarkMarkdownFeatures(allowedMarkdown)]),
|
|
110
111
|
...(referencesEnabled ? [remarkReferences()] : []),
|
|
111
|
-
], rehypePlugins: referencesEnabled
|
|
112
|
+
], rehypePlugins: referencesEnabled
|
|
113
|
+
? [
|
|
114
|
+
rehypeReferences(intl, {
|
|
115
|
+
metrics,
|
|
116
|
+
separators,
|
|
117
|
+
restrictedReferences,
|
|
118
|
+
parameterDisplayValues,
|
|
119
|
+
}),
|
|
120
|
+
]
|
|
121
|
+
: [], children: value }));
|
|
112
122
|
}
|
|
113
123
|
/**
|
|
114
124
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichTextWithTooltip.d.ts","sourceRoot":"","sources":["../../src/RichText/RichTextWithTooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"RichTextWithTooltip.d.ts","sourceRoot":"","sources":["../../src/RichText/RichTextWithTooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAQ1C,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAE,KAAK,cAAc,EAAY,MAAM,eAAe,CAAC;AAsB9D;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC7D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,WAAW,EAAE,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,YAAY,CAAC;CAClC;AAiCD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,yBAAyB,2CAMnE"}
|
|
@@ -1,49 +1,18 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// (C) 2024-2026 GoodData Corporation
|
|
3
|
-
import { useMemo } from "react";
|
|
4
2
|
import { useIntl } from "react-intl";
|
|
5
3
|
import { IntlWrapper } from "@gooddata/sdk-ui";
|
|
6
4
|
import { Bubble } from "../Bubble/Bubble.js";
|
|
7
5
|
import { BubbleHoverTrigger } from "../Bubble/BubbleHoverTrigger.js";
|
|
8
6
|
import { RichText } from "./RichText.js";
|
|
9
7
|
const alignPoints = [{ align: "bc tc" }, { align: "tc bc" }];
|
|
10
|
-
const descriptionMarkdown = (_jsxs(_Fragment, { children: [_jsx("br", {}), "# Heading 1", _jsx("br", {}), "**Bold**", _jsx("br", {}), "* List", _jsx("br", {}), "[link](http://thisisalink.com)", _jsx("br", {}), "", _jsx("br", {}), "{metric/metric_id}", _jsx("br", {}), "{label/label_id}"] }));
|
|
11
|
-
function RichTextWithTooltipCore({
|
|
8
|
+
const descriptionMarkdown = (_jsxs(_Fragment, { children: [_jsx("br", {}), "# Heading 1", _jsx("br", {}), "**Bold**", _jsx("br", {}), "* List", _jsx("br", {}), "[link](http://thisisalink.com)", _jsx("br", {}), "", _jsx("br", {}), "{metric/metric_id}", _jsx("br", {}), "{label/label_id}", _jsx("br", {}), "{parameter/parameter_id}"] }));
|
|
9
|
+
function RichTextWithTooltipCore({ showTooltip = true, tooltipAlignPoints = alignPoints, tooltipDescription, tooltipMarkdown = descriptionMarkdown, ...richTextProps }) {
|
|
12
10
|
const intl = useIntl();
|
|
13
11
|
const description = tooltipDescription ?? intl.formatMessage({ id: "richText.tooltip" });
|
|
14
|
-
const Component = useMemo(() => {
|
|
15
|
-
return (_jsx(RichText, { value: value, onChange: onChange, renderMode: renderMode, editPlaceholder: editPlaceholder, editRows: editRows, emptyElement: emptyElement, className: className, autoResize: autoResize, referencesEnabled: referencesEnabled, allowedMarkdown: allowedMarkdown, filters: filters, separators: separators, restrictedReferences: restrictedReferences, LoadingComponent: LoadingComponent, onLoadingChanged: onLoadingChanged, onError: onError, rawContent: rawContent, execConfig: {
|
|
16
|
-
timestamp: execConfig?.timestamp,
|
|
17
|
-
dataSamplingPercentage: execConfig?.dataSamplingPercentage,
|
|
18
|
-
// omit when undefined so it does not bust the execution's defFingerprint
|
|
19
|
-
...(execConfig?.timezone ? { timezone: execConfig.timezone } : {}),
|
|
20
|
-
} }));
|
|
21
|
-
}, [
|
|
22
|
-
value,
|
|
23
|
-
onChange,
|
|
24
|
-
renderMode,
|
|
25
|
-
editPlaceholder,
|
|
26
|
-
editRows,
|
|
27
|
-
emptyElement,
|
|
28
|
-
className,
|
|
29
|
-
autoResize,
|
|
30
|
-
referencesEnabled,
|
|
31
|
-
allowedMarkdown,
|
|
32
|
-
filters,
|
|
33
|
-
restrictedReferences,
|
|
34
|
-
LoadingComponent,
|
|
35
|
-
onLoadingChanged,
|
|
36
|
-
onError,
|
|
37
|
-
rawContent,
|
|
38
|
-
separators,
|
|
39
|
-
execConfig?.timestamp,
|
|
40
|
-
execConfig?.dataSamplingPercentage,
|
|
41
|
-
execConfig?.timezone,
|
|
42
|
-
]);
|
|
43
12
|
if (!showTooltip) {
|
|
44
|
-
return
|
|
13
|
+
return _jsx(RichText, { ...richTextProps });
|
|
45
14
|
}
|
|
46
|
-
return (_jsxs(BubbleHoverTrigger, { showDelay: 0, hideDelay: 0, openOnInit: true, children: [
|
|
15
|
+
return (_jsxs(BubbleHoverTrigger, { showDelay: 0, hideDelay: 0, openOnInit: true, children: [_jsx(RichText, { ...richTextProps }), showTooltip ? (_jsxs(Bubble, { alignPoints: tooltipAlignPoints, className: "bubble-primary bubble-small", overlayClassName: "rich-text-tooltip", children: [description, tooltipMarkdown] })) : null] }));
|
|
47
16
|
}
|
|
48
17
|
/**
|
|
49
18
|
* @internal
|
|
@@ -11,12 +11,16 @@ export type EvaluatedMetric = {
|
|
|
11
11
|
};
|
|
12
12
|
export declare function useEvaluatedMetricsAndAttributes(references: ReferenceMap, filters: IFilter[], config: IExecutionConfig & {
|
|
13
13
|
enabled: boolean;
|
|
14
|
-
|
|
14
|
+
isExecutionInputLoading?: boolean;
|
|
15
15
|
}): {
|
|
16
16
|
loading: boolean;
|
|
17
17
|
error: any;
|
|
18
18
|
result: EvaluatedMetric[] | undefined;
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare function getMeasures(references: ReferenceMap): IMeasure<import("@gooddata/sdk-model").IMeasureDefinition>[];
|
|
20
24
|
/**
|
|
21
25
|
* The measures resolving attribute-shaped references: `max` for the value, and `count` alongside it
|
|
22
26
|
* to tell a single value from several.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEvaluatedMetricsAndAttributes.d.ts","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedMetricsAndAttributes.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,KAAK,SAAS,EAKjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,MAAM,eAAe,GAAG;IAC1B,GAAG,EAAE,QAAQ,CAAC;IACd,MAAM,EAAE,aAAa,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,gCAAgC,CAC5C,UAAU,EAAE,YAAY,EACxB,OAAO,EAAE,OAAO,EAAE,EAClB,MAAM,EAAE,gBAAgB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,
|
|
1
|
+
{"version":3,"file":"useEvaluatedMetricsAndAttributes.d.ts","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedMetricsAndAttributes.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,KAAK,SAAS,EAKjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,MAAM,MAAM,eAAe,GAAG;IAC1B,GAAG,EAAE,QAAQ,CAAC;IACd,MAAM,EAAE,aAAa,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,gCAAgC,CAC5C,UAAU,EAAE,YAAY,EACxB,OAAO,EAAE,OAAO,EAAE,EAClB,MAAM,EAAE,gBAAgB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAAE;IAsG9E,OAAO;IAKP,KAAK;IACL,MAAM;EAEb;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,YAAY,gEAWnD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,UAAU,EAAE,YAAY;;;EAuCjD"}
|
|
@@ -7,16 +7,17 @@ export function useEvaluatedMetricsAndAttributes(references, filters, config) {
|
|
|
7
7
|
const metrics = getMeasures(references);
|
|
8
8
|
const { metrics: labels, countMap } = getLabels(references);
|
|
9
9
|
const items = [...metrics, ...labels];
|
|
10
|
-
const { enabled,
|
|
10
|
+
const { enabled, isExecutionInputLoading, ...execConfig } = config;
|
|
11
|
+
const isWaitingForInput = items.length > 0 && !!isExecutionInputLoading;
|
|
11
12
|
const { status: executionStatus, result: executionResult, error: executionError, } = useExecutionDataView({
|
|
12
|
-
execution: enabled && items.length > 0 && !
|
|
13
|
+
execution: enabled && items.length > 0 && !isWaitingForInput && backend && workspace
|
|
13
14
|
? backend
|
|
14
15
|
.workspace(workspace)
|
|
15
16
|
.execution()
|
|
16
17
|
.forItems(items, filters)
|
|
17
18
|
.withExecConfig(execConfig)
|
|
18
19
|
: undefined,
|
|
19
|
-
}, [execConfig.timestamp, execConfig.dataSamplingPercentage, execConfig.timezone,
|
|
20
|
+
}, [execConfig.timestamp, execConfig.dataSamplingPercentage, execConfig.timezone, isWaitingForInput]);
|
|
20
21
|
const { status: loadStatus, result: loadResult, error: loadError, } = useCancelablePromise({
|
|
21
22
|
promise: async () => {
|
|
22
23
|
if (!executionResult) {
|
|
@@ -69,7 +70,7 @@ export function useEvaluatedMetricsAndAttributes(references, filters, config) {
|
|
|
69
70
|
},
|
|
70
71
|
}, [executionResult]);
|
|
71
72
|
return {
|
|
72
|
-
loading:
|
|
73
|
+
loading: isWaitingForInput ||
|
|
73
74
|
executionStatus === "loading" ||
|
|
74
75
|
loadStatus === "loading" ||
|
|
75
76
|
loadStatus === "pending",
|
|
@@ -77,7 +78,10 @@ export function useEvaluatedMetricsAndAttributes(references, filters, config) {
|
|
|
77
78
|
result: loadResult,
|
|
78
79
|
};
|
|
79
80
|
}
|
|
80
|
-
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
export function getMeasures(references) {
|
|
81
85
|
const metrics = Object.values(references)
|
|
82
86
|
.map(({ type, ref }) => (type === "measure" ? ref : null))
|
|
83
87
|
.filter(Boolean);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type IExecutionConfig, type IFilter, type ObjRef } from "@gooddata/sdk-model";
|
|
2
2
|
export declare function useEvaluatedReferences(value: string, filters: IFilter[], config: IExecutionConfig & {
|
|
3
3
|
enabled: boolean;
|
|
4
|
-
|
|
4
|
+
isExecutionInputLoading?: boolean;
|
|
5
5
|
}, restrictedReferences?: ObjRef[]): {
|
|
6
6
|
isEmptyValue: boolean;
|
|
7
7
|
loading: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEvaluatedReferences.d.ts","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedReferences.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AASvF,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAAE,EAClB,MAAM,EAAE,gBAAgB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,
|
|
1
|
+
{"version":3,"file":"useEvaluatedReferences.d.ts","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedReferences.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AASvF,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAAE,EAClB,MAAM,EAAE,gBAAgB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAAE,EAClF,oBAAoB,GAAE,MAAM,EAA6B;;;;;EAoB5D"}
|
|
@@ -7,12 +7,7 @@ const NO_RESTRICTED_REFERENCES = [];
|
|
|
7
7
|
export function useEvaluatedReferences(value, filters, config, restrictedReferences = NO_RESTRICTED_REFERENCES) {
|
|
8
8
|
const isEmptyValue = useMemo(() => !value?.replace(/\s/g, ""), [value]);
|
|
9
9
|
const references = useMemo(() => excludeReferences(collectReferences(value), restrictedReferences), [value, restrictedReferences]);
|
|
10
|
-
const { loading, result: metrics, error: metricsError, } = useEvaluatedMetricsAndAttributes(references, filters,
|
|
11
|
-
...config,
|
|
12
|
-
// Mark filters as loaded when there are no references to resolve to speed up loading.
|
|
13
|
-
// The query that sets this value runs no matter if there are references or not.
|
|
14
|
-
isFiltersLoading: Object.keys(references).length > 0 && !!config.isFiltersLoading,
|
|
15
|
-
});
|
|
10
|
+
const { loading, result: metrics, error: metricsError, } = useEvaluatedMetricsAndAttributes(references, filters, config);
|
|
16
11
|
return {
|
|
17
12
|
isEmptyValue,
|
|
18
13
|
loading,
|
|
@@ -2,5 +2,12 @@ import { type Root } from "mdast";
|
|
|
2
2
|
import { type IntlShape } from "react-intl";
|
|
3
3
|
import { type ISeparators, type ObjRef } from "@gooddata/sdk-model";
|
|
4
4
|
import { type EvaluatedMetric } from "../hooks/useEvaluatedMetricsAndAttributes.js";
|
|
5
|
-
|
|
5
|
+
interface IRehypeReferencesOptions {
|
|
6
|
+
metrics?: EvaluatedMetric[];
|
|
7
|
+
separators?: ISeparators;
|
|
8
|
+
restrictedReferences?: ObjRef[];
|
|
9
|
+
parameterDisplayValues?: ReadonlyMap<string, string>;
|
|
10
|
+
}
|
|
11
|
+
export declare function rehypeReferences(intl: IntlShape, options?: IRehypeReferencesOptions): () => (tree: Root) => Root;
|
|
12
|
+
export {};
|
|
6
13
|
//# sourceMappingURL=rehype-references.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rehype-references.d.ts","sourceRoot":"","sources":["../../../src/RichText/plugins/rehype-references.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAI5C,OAAO,EAAE,KAAK,WAAW,EAAsB,KAAK,MAAM,EAAmB,MAAM,qBAAqB,CAAC;AAGzG,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAUpF,
|
|
1
|
+
{"version":3,"file":"rehype-references.d.ts","sourceRoot":"","sources":["../../../src/RichText/plugins/rehype-references.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAI5C,OAAO,EAAE,KAAK,WAAW,EAAsB,KAAK,MAAM,EAAmB,MAAM,qBAAqB,CAAC;AAGzG,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAUpF,UAAU,wBAAwB;IAC9B,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,sBAAsB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,GAAE,wBAA6B,gBAOzD,IAAI,UAiClC"}
|
|
@@ -4,12 +4,18 @@ import { ClientFormatterFacade } from "@gooddata/number-formatter";
|
|
|
4
4
|
import { areObjRefsEqual } from "@gooddata/sdk-model";
|
|
5
5
|
import { createReference } from "../helpers/references.js";
|
|
6
6
|
import { REFERENCE_REGEX_MATCH, REFERENCE_REGEX_SPLIT, RESTRICTED_MARKER_TAG, } from "./types.js";
|
|
7
|
-
export function rehypeReferences(intl,
|
|
7
|
+
export function rehypeReferences(intl, options = {}) {
|
|
8
|
+
const { metrics, separators, restrictedReferences, parameterDisplayValues } = options;
|
|
8
9
|
const isRestricted = (ref) => !!restrictedReferences?.some((restricted) => areObjRefsEqual(restricted, ref));
|
|
9
10
|
return function () {
|
|
10
11
|
return function (tree) {
|
|
11
12
|
iterateTree(tree, {
|
|
12
13
|
onTextNodeReference: (text, ref) => {
|
|
14
|
+
if (ref.type === "parameter") {
|
|
15
|
+
return parameterDisplayValues
|
|
16
|
+
? [createParameterValue(intl, text, parameterDisplayValues.get(ref.identifier))]
|
|
17
|
+
: [text];
|
|
18
|
+
}
|
|
13
19
|
if (isRestricted(ref)) {
|
|
14
20
|
return [createRestrictedMarker(intl, text)];
|
|
15
21
|
}
|
|
@@ -17,7 +23,12 @@ export function rehypeReferences(intl, metrics, separators, restrictedReferences
|
|
|
17
23
|
const { metricDef } = createMetricValue(intl, text, metric, separators);
|
|
18
24
|
return [metricDef];
|
|
19
25
|
},
|
|
20
|
-
onTextRawReference: (ref) => {
|
|
26
|
+
onTextRawReference: (ref, id) => {
|
|
27
|
+
if (ref.type === "parameter") {
|
|
28
|
+
return parameterDisplayValues
|
|
29
|
+
? (parameterDisplayValues.get(ref.identifier) ?? unknownParameterText(intl))
|
|
30
|
+
: `{${id}}`;
|
|
31
|
+
}
|
|
21
32
|
// markup cannot be nested in a URL or an alt text, so the marker is its word alone
|
|
22
33
|
if (isRestricted(ref)) {
|
|
23
34
|
return intl.formatMessage({ id: "richText.restricted" });
|
|
@@ -31,6 +42,25 @@ export function rehypeReferences(intl, metrics, separators, restrictedReferences
|
|
|
31
42
|
};
|
|
32
43
|
};
|
|
33
44
|
}
|
|
45
|
+
function createParameterValue(intl, text, value) {
|
|
46
|
+
return {
|
|
47
|
+
type: "element",
|
|
48
|
+
tagName: "span",
|
|
49
|
+
properties: {
|
|
50
|
+
className: "gd-rich-text-parameter",
|
|
51
|
+
},
|
|
52
|
+
position: text?.position ?? undefined,
|
|
53
|
+
children: [
|
|
54
|
+
{
|
|
55
|
+
type: "text",
|
|
56
|
+
value: value ?? unknownParameterText(intl),
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function unknownParameterText(intl) {
|
|
62
|
+
return `(${intl.formatMessage({ id: "richText.unknown_parameter" })})`;
|
|
63
|
+
}
|
|
34
64
|
/**
|
|
35
65
|
* Stands in for a reference the user is not allowed to read. It never names the object, because the
|
|
36
66
|
* reference is the object's identifier; the rest of the text keeps its own values.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/RichText/plugins/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,OAAO,CAAC;AAEpC,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/RichText/plugins/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,OAAO,CAAC;AAEpC,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,QAAwE,CAAC;AAE3G;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,QAA0E,CAAC;AAE7G;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,4BAA4B,CAAC"}
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
14
|
-
export const REFERENCE_REGEX_SPLIT = /(\{(?:label|metric|computed_attribute)\/[a-z0-9._-]*\})/gi;
|
|
14
|
+
export const REFERENCE_REGEX_SPLIT = /(\{(?:label|metric|computed_attribute|parameter)\/[a-z0-9._-]*\})/gi;
|
|
15
15
|
/**
|
|
16
16
|
* Capture groups, relied on by every consumer: 1 = the whole `{…}`, 2 = `prefix/identifier`,
|
|
17
17
|
* 3 = the prefix, 4 = the identifier. Keep the group structure when adding a prefix.
|
|
18
18
|
*
|
|
19
19
|
* @internal
|
|
20
20
|
*/
|
|
21
|
-
export const REFERENCE_REGEX_MATCH = /(\{((label|metric|computed_attribute)\/([a-z0-9._-]*))\})/gi;
|
|
21
|
+
export const REFERENCE_REGEX_MATCH = /(\{((label|metric|computed_attribute|parameter)\/([a-z0-9._-]*))\})/gi;
|
|
22
22
|
/**
|
|
23
23
|
* The element the reference plugin leaves in place of a value the user may not read. It has a tag
|
|
24
24
|
* of its own, so the renderer maps it to a component by name rather than telling it apart from
|
package/esm/sdk-ui-kit.d.ts
CHANGED
|
@@ -2965,9 +2965,11 @@ export declare interface IDescriptionPanelProps {
|
|
|
2965
2965
|
useReferences?: boolean;
|
|
2966
2966
|
LoadingComponent?: ComponentType;
|
|
2967
2967
|
filters?: IFilter[];
|
|
2968
|
+
isExecutionInputLoading?: boolean;
|
|
2968
2969
|
separators?: ISeparators_3;
|
|
2969
2970
|
/** References the current user is not allowed to read; each renders as a marker in place of its value. */
|
|
2970
2971
|
restrictedReferences?: ObjRef[];
|
|
2972
|
+
parameterDisplayValues?: ReadonlyMap<string, string>;
|
|
2971
2973
|
execConfig?: IExecutionConfig;
|
|
2972
2974
|
id?: string;
|
|
2973
2975
|
}
|
|
@@ -5604,9 +5606,14 @@ export declare interface IRichTextProps {
|
|
|
5604
5606
|
*/
|
|
5605
5607
|
restrictedReferences?: ObjRef[];
|
|
5606
5608
|
/**
|
|
5607
|
-
*
|
|
5609
|
+
* The display text of every parameter the text may name, by parameter identifier. Without it a
|
|
5610
|
+
* `{parameter/<id>}` token stays as it was typed.
|
|
5608
5611
|
*/
|
|
5609
|
-
|
|
5612
|
+
parameterDisplayValues?: ReadonlyMap<string, string>;
|
|
5613
|
+
/**
|
|
5614
|
+
* The reference execution waits while the filters, or the parameters they use, load.
|
|
5615
|
+
*/
|
|
5616
|
+
isExecutionInputLoading?: boolean;
|
|
5610
5617
|
/**
|
|
5611
5618
|
* Separators to be used for rendering references.
|
|
5612
5619
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-kit",
|
|
3
|
-
"version": "11.58.0-alpha.
|
|
3
|
+
"version": "11.58.0-alpha.6",
|
|
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.8.3",
|
|
82
|
-
"@gooddata/sdk-backend-spi": "11.58.0-alpha.
|
|
83
|
-
"@gooddata/sdk-
|
|
84
|
-
"@gooddata/sdk-
|
|
85
|
-
"@gooddata/sdk-ui": "11.58.0-alpha.
|
|
86
|
-
"@gooddata/util": "11.58.0-alpha.
|
|
82
|
+
"@gooddata/sdk-backend-spi": "11.58.0-alpha.6",
|
|
83
|
+
"@gooddata/sdk-ui": "11.58.0-alpha.6",
|
|
84
|
+
"@gooddata/sdk-model": "11.58.0-alpha.6",
|
|
85
|
+
"@gooddata/sdk-ui-theme-provider": "11.58.0-alpha.6",
|
|
86
|
+
"@gooddata/util": "11.58.0-alpha.6"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@microsoft/api-documenter": "7.30.10",
|
|
@@ -128,11 +128,11 @@
|
|
|
128
128
|
"typescript": "7.0.2",
|
|
129
129
|
"vitest": "4.1.11",
|
|
130
130
|
"vitest-dom": "0.1.1",
|
|
131
|
-
"@gooddata/eslint-config": "11.58.0-alpha.
|
|
132
|
-
"@gooddata/oxlint-config": "11.58.0-alpha.
|
|
133
|
-
"@gooddata/reference-workspace": "11.58.0-alpha.
|
|
134
|
-
"@gooddata/sdk-backend-mockingbird": "11.58.0-alpha.
|
|
135
|
-
"@gooddata/stylelint-config": "11.58.0-alpha.
|
|
131
|
+
"@gooddata/eslint-config": "11.58.0-alpha.6",
|
|
132
|
+
"@gooddata/oxlint-config": "11.58.0-alpha.6",
|
|
133
|
+
"@gooddata/reference-workspace": "11.58.0-alpha.6",
|
|
134
|
+
"@gooddata/sdk-backend-mockingbird": "11.58.0-alpha.6",
|
|
135
|
+
"@gooddata/stylelint-config": "11.58.0-alpha.6"
|
|
136
136
|
},
|
|
137
137
|
"peerDependencies": {
|
|
138
138
|
"react": "^18.0.0 || ^19.0.0",
|