@gooddata/sdk-ui-kit 10.25.0-alpha.5 → 10.25.0-alpha.7

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.
@@ -31,6 +31,10 @@ export interface IRichTextProps {
31
31
  * Filters to be used for rendering references.
32
32
  */
33
33
  filters?: IFilter[];
34
+ /**
35
+ * If true, the filters are loading.
36
+ */
37
+ isFiltersLoading?: boolean;
34
38
  /**
35
39
  * Separators to be used for rendering references.
36
40
  */
@@ -1 +1 @@
1
- {"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/RichText/RichText.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAI9D,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC7E,OAAO,EAAiC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAqB5F;;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,GAAG,CAAC,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;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,C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AAC,EAAE,OAAO,EAAE,CAAC;IAEpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;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,KAAK,CAAC,aAAa,CAAC;CAC1C;AAoMD;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAI7C,CAAC"}
@@ -19,7 +19,7 @@ const RICH_TEXT_PLACEHOLDER = `
19
19
  function DefaultLoadingComponent() {
20
20
  return React.createElement(LoadingComponent, null);
21
21
  }
22
- const RichTextCore = ({ value, execConfig, onChange, referencesEnabled, renderMode = "view", editPlaceholder, editRows, emptyElement, className, autoResize, rawContent, filters, separators, onLoadingChanged, onError, LoadingComponent, }) => {
22
+ const RichTextCore = ({ value, execConfig, onChange, referencesEnabled, renderMode = "view", editPlaceholder, editRows, emptyElement, className, autoResize, rawContent, filters, isFiltersLoading, separators, onLoadingChanged, onError, LoadingComponent, }) => {
23
23
  return (React.createElement("div", { className: cx([
24
24
  "gd-rich-text-content",
25
25
  `gd-rich-text-content-${renderMode}`,
@@ -28,7 +28,7 @@ const RichTextCore = ({ value, execConfig, onChange, referencesEnabled, renderMo
28
28
  { "gd-visible-scrollbar": renderMode === "view" },
29
29
  className,
30
30
  ]) },
31
- renderMode === "edit" ? (React.createElement(RichTextEdit, { value: value, onChange: (updatedValue) => onChange?.(updatedValue), placeholder: editPlaceholder, rows: editRows, autoResize: autoResize })) : (React.createElement(RichTextView, { value: value, filters: filters, separators: separators, referencesEnabled: referencesEnabled, LoadingComponent: LoadingComponent, onLoadingChanged: onLoadingChanged, onError: onError, emptyElement: emptyElement, execConfig: execConfig })),
31
+ renderMode === "edit" ? (React.createElement(RichTextEdit, { value: value, onChange: (updatedValue) => onChange?.(updatedValue), placeholder: editPlaceholder, rows: editRows, autoResize: autoResize })) : (React.createElement(RichTextView, { value: value, filters: filters, isFiltersLoading: isFiltersLoading, separators: separators, referencesEnabled: referencesEnabled, LoadingComponent: LoadingComponent, onLoadingChanged: onLoadingChanged, onError: onError, emptyElement: emptyElement, execConfig: execConfig })),
32
32
  rawContent?.show ? React.createElement("input", { type: "hidden", value: value, ...rawContent.dataAttributes }) : null));
33
33
  };
34
34
  const RichTextEdit = ({ value, onChange, placeholder, rows = 10, autoResize = false, }) => {
@@ -62,10 +62,11 @@ const RichTextEdit = ({ value, onChange, placeholder, rows = 10, autoResize = fa
62
62
  };
63
63
  const ImageComponent = (props) => (React.createElement("img", { style: { maxWidth: "100%" }, ...props }));
64
64
  const AnchorComponent = (props) => (React.createElement("a", { target: "_blank", rel: "noopener noreferrer", ...props }));
65
- const RichTextView = ({ value, referencesEnabled, emptyElement, filters, separators, execConfig, onError, onLoadingChanged, LoadingComponent = DefaultLoadingComponent, }) => {
65
+ const RichTextView = ({ value, referencesEnabled, emptyElement, filters, isFiltersLoading, separators, execConfig, onError, onLoadingChanged, LoadingComponent = DefaultLoadingComponent, }) => {
66
66
  const intl = useIntl();
67
67
  const { loading, metrics, isEmptyValue, error } = useEvaluatedReferences(value, filters, {
68
68
  enabled: referencesEnabled,
69
+ isFiltersLoading,
69
70
  ...execConfig,
70
71
  });
71
72
  useEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"RichText.js","sourceRoot":"","sources":["../../src/RichText/RichText.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,WAAW,EAAE,gBAAgB,E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L,UAAU,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC,EAAE,eAAe,EAAE,EACvD,aAAa,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAC5D,aAAa,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAEpF,KAAK,CACC,CACd,CAAC;AACN,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAA6B,CAAC,KAAK,EAAE,EAAE,CAAC,CACzD,oBAAC,WAAW;IACR,oBAAC,YAAY,OAAK,KAAK,GAAI,CACjB,CACjB,CAAC"}
@@ -11,6 +11,7 @@ export type EvaluatedMetric = {
11
11
  };
12
12
  export declare function useEvaluatedMetricsAndAttributes(references: ReferenceMap, filters: IFilter[], config: IExecutionConfig & {
13
13
  enabled: boolean;
14
+ isFiltersLoading?: boolean;
14
15
  }): {
15
16
  loading: boolean;
16
17
  error: any;
@@ -1 +1 @@
1
- {"version":3,"file":"useEvaluatedMetricsAndAttributes.d.ts","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedMetricsAndAttributes.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,SAAS,EAKZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACH,gBAAgB,EAChB,OAAO,EACP,QAAQ,EACR,aAAa,EAIb,MAAM,EACT,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,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,CAAA;CAAE;;;;EAyGlD"}
1
+ {"version":3,"file":"useEvaluatedMetricsAndAttributes.d.ts","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedMetricsAndAttributes.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,SAAS,EAKZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACH,gBAAgB,EAChB,OAAO,EACP,QAAQ,EACR,aAAa,EAIb,MAAM,EACT,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,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,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAAE;;;;EA6G9E"}
@@ -7,16 +7,16 @@ 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, ...execConfig } = config;
10
+ const { enabled, isFiltersLoading, ...execConfig } = config;
11
11
  const { status: executionStatus, result: executionResult, error: executionError, } = useExecutionDataView({
12
- execution: enabled && items.length > 0
12
+ execution: enabled && items.length > 0 && !isFiltersLoading
13
13
  ? backend
14
14
  .workspace(workspace)
15
15
  .execution()
16
16
  .forItems(items, filters)
17
17
  .withExecConfig(execConfig)
18
18
  : null,
19
- }, [execConfig.timestamp, execConfig.dataSamplingPercentage]);
19
+ }, [execConfig.timestamp, execConfig.dataSamplingPercentage, isFiltersLoading]);
20
20
  const { status: loadStatus, result: loadResult, error: loadError, } = useCancelablePromise({
21
21
  promise: async () => {
22
22
  if (!executionResult) {
@@ -69,7 +69,10 @@ export function useEvaluatedMetricsAndAttributes(references, filters, config) {
69
69
  },
70
70
  }, [executionResult]);
71
71
  return {
72
- loading: executionStatus === "loading" || loadStatus === "loading" || loadStatus === "pending",
72
+ loading: isFiltersLoading ||
73
+ executionStatus === "loading" ||
74
+ loadStatus === "loading" ||
75
+ loadStatus === "pending",
73
76
  error: executionError || loadError,
74
77
  result: loadResult,
75
78
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useEvaluatedMetricsAndAttributes.js","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedMetricsAndAttributes.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAEH,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,GACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAKH,mBAAmB,EACnB,YAAY,EACZ,UAAU,GAEb,MAAM,qBAAqB,CAAC;AAa7B,MAAM,UAAU,gCAAgC,CAC5C,UAAwB,EACxB,OAAkB,EAClB,MAA+C;IAE/C,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,MAAM,OAAO,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;IACxC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;IAE5D,MAAM,KAAK,GAAG,CAAC,GAAG,OAAO,EAAE,GAAG,MAAM,CAAC,CAAC;IACtC,MAAM,EAAE,OAAO,EAAE,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C;YACb,CAAC,CAAC;SACL,CAAC;IACN,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACH,QAAQ;QACR,OAAO;KACV,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"useEvaluatedMetricsAndAttributes.js","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedMetricsAndAttributes.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAEH,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,GACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAKH,mBAAmB,EACnB,YAAY,EACZ,UAAU,GAEb,MAAM,qBAAqB,CAAC;AAa7B,MAAM,UAAU,gCAAgC,CAC5C,UAAwB,EACxB,OAAkB,EAClB,MAA2E;IAE3E,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,MAAM,OAAO,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;IACxC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;IAE5D,MAAM,KAAK,GAAG,CAAC,GAAG,OAAO,EAAE,GAAG,MAAM,CAAC,CAAC;IACtC,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,GAAG,UAAU,EAAE,GAAG,MAAM,CAAC;IAE5D,MAAM,EACF,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,cAAc,GACxB,GAAG,oBAAoB,CACpB;QACI,SAAS,EACL,OAAO,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,gBAAgB;YAC5C,CAAC,CAAC,OAAO;iBACF,SAAS,CAAC,SAAS,CAAC;iBACpB,SAAS,EAAE;iBACX,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;iBACxB,cAAc,CAAC,UAAU,CAAC;YACjC,CAAC,CAAC,IAA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AE,CAAC,CAAC,EAAE,EAAE;YAC3B,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YACpB,OAAO,CAAC,CAAC;QACb,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,MAAM,QAAQ,GAA2B,EAAE,CAAC;IAC5C,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,GAAe,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE;QACtD,MAAM,YAAY,GAAG,SAAS,CAAC,EAAE,CAAC;QAClC,MAAM,YAAY,GAAG,WAAW,CAAC,EAAE,CAAC;QAEpC,QAAQ,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC;QACtC,OAAO;YACH,GAAG,GAAG;YACN,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE;gBACzC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;gBACxB,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;gBACrB,OAAO,CAAC,CAAC;YACb,CAAC,CAAC;YACF,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE;gBACzC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;gBACxB,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;gBACvB,OAAO,CAAC,CAAC;YACb,CAAC,CAAC;SACL,CAAC;IACN,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACH,QAAQ;QACR,OAAO;KACV,CAAC;AACN,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { IExecutionConfig, IFilter } from "@gooddata/sdk-model";
2
2
  export declare function useEvaluatedReferences(value: string, filters: IFilter[], config: IExecutionConfig & {
3
3
  enabled: boolean;
4
+ isFiltersLoading?: boolean;
4
5
  }): {
5
6
  isEmptyValue: boolean;
6
7
  loading: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"useEvaluatedReferences.d.ts","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAMhE,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAAE,EAClB,MAAM,EAAE,gBAAgB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE;;;;;EAiBlD"}
1
+ {"version":3,"file":"useEvaluatedReferences.d.ts","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAMhE,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAAE,EAClB,MAAM,EAAE,gBAAgB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAAE;;;;;EAiB9E"}
@@ -1 +1 @@
1
- {"version":3,"file":"useEvaluatedReferences.js","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedReferences.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF,MAAM,UAAU,sBAAsB,CAClC,KAAa,EACb,OAAkB,EAClB,MAA+C;IAE/C,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACxE,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpE,MAAM,EACF,OAAO,EACP,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,YAAY,GACtB,GAAG,gCAAgC,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAElE,OAAO;QACH,YAAY;QACZ,OAAO;QACP,OAAO;QACP,KAAK,EAAE,YAAY;KACtB,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"useEvaluatedReferences.js","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedReferences.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF,MAAM,UAAU,sBAAsB,CAClC,KAAa,EACb,OAAkB,EAClB,MAA2E;IAE3E,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACxE,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpE,MAAM,EACF,OAAO,EACP,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,YAAY,GACtB,GAAG,gCAAgC,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAElE,OAAO;QACH,YAAY;QACZ,OAAO;QACP,OAAO;QACP,KAAK,EAAE,YAAY;KACtB,CAAC;AACN,CAAC"}
@@ -3612,6 +3612,10 @@ export declare interface IRichTextProps {
3612
3612
  * Filters to be used for rendering references.
3613
3613
  */
3614
3614
  filters?: IFilter[];
3615
+ /**
3616
+ * If true, the filters are loading.
3617
+ */
3618
+ isFiltersLoading?: boolean;
3615
3619
  /**
3616
3620
  * Separators to be used for rendering references.
3617
3621
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-kit",
3
- "version": "10.25.0-alpha.5",
3
+ "version": "10.25.0-alpha.7",
4
4
  "description": "GoodData SDK - UI Building Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -68,11 +68,11 @@
68
68
  "tslib": "^2.5.0",
69
69
  "uuid": "^8.3.2",
70
70
  "unified": "^11.0.5",
71
- "@gooddata/sdk-backend-spi": "10.25.0-alpha.5",
72
- "@gooddata/sdk-ui": "10.25.0-alpha.5",
73
- "@gooddata/sdk-model": "10.25.0-alpha.5",
74
- "@gooddata/util": "10.25.0-alpha.5",
75
- "@gooddata/sdk-ui-theme-provider": "10.25.0-alpha.5"
71
+ "@gooddata/sdk-backend-spi": "10.25.0-alpha.7",
72
+ "@gooddata/sdk-model": "10.25.0-alpha.7",
73
+ "@gooddata/sdk-ui": "10.25.0-alpha.7",
74
+ "@gooddata/sdk-ui-theme-provider": "10.25.0-alpha.7",
75
+ "@gooddata/util": "10.25.0-alpha.7"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "react": "^16.10.0 || ^17.0.0 || ^18.0.0",
@@ -131,8 +131,8 @@
131
131
  "typescript": "5.3.3",
132
132
  "vitest": "3.0.8",
133
133
  "vitest-dom": "0.1.1",
134
- "@gooddata/reference-workspace": "10.25.0-alpha.5",
135
- "@gooddata/sdk-backend-mockingbird": "10.25.0-alpha.5"
134
+ "@gooddata/reference-workspace": "10.25.0-alpha.7",
135
+ "@gooddata/sdk-backend-mockingbird": "10.25.0-alpha.7"
136
136
  },
137
137
  "scripts": {
138
138
  "clean": "rm -rf ci dist esm coverage styles/css *.log tsconfig.tsbuildinfo",