@gooddata/sdk-ui-pluggable-host 11.41.0-alpha.1 → 11.41.0-alpha.2

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.
@@ -18,7 +18,8 @@ export interface ISemanticSearchProps {
18
18
  enableUseGenAIChat?: boolean;
19
19
  useHostedMetricEditor?: boolean;
20
20
  useHostedAnalyticalDesigner?: boolean;
21
+ useHostedLdmModeler?: boolean;
21
22
  onAskAiAssistant?: (question: string) => void;
22
23
  onEvent?: (event: SemanticSearchEvent) => void;
23
24
  }
24
- export declare function SemanticSearch({ backend, workspaceId, metadataTimeZone, canManage, canAnalyze, canFullControl, isTrial, enableUseGenAIChat, useHostedMetricEditor, useHostedAnalyticalDesigner, onAskAiAssistant, onEvent }: ISemanticSearchProps): import("react/jsx-runtime").JSX.Element;
25
+ export declare function SemanticSearch({ backend, workspaceId, metadataTimeZone, canManage, canAnalyze, canFullControl, isTrial, enableUseGenAIChat, useHostedMetricEditor, useHostedAnalyticalDesigner, useHostedLdmModeler, onAskAiAssistant, onEvent }: ISemanticSearchProps): import("react/jsx-runtime").JSX.Element;
@@ -4,7 +4,7 @@ import { useCallback, useEffect, useMemo } from "react";
4
4
  import { useIntl } from "react-intl";
5
5
  import { FooterButtonAiAssistant, SearchOverlay, useSearchMetrics, } from "@gooddata/sdk-ui-semantic-search/internal";
6
6
  const RESULTS_LIMIT = 10;
7
- export function SemanticSearch({ backend, workspaceId, metadataTimeZone, canManage = false, canAnalyze = false, canFullControl = false, isTrial = false, enableUseGenAIChat = false, useHostedMetricEditor = false, useHostedAnalyticalDesigner = false, onAskAiAssistant, onEvent, }) {
7
+ export function SemanticSearch({ backend, workspaceId, metadataTimeZone, canManage = false, canAnalyze = false, canFullControl = false, isTrial = false, enableUseGenAIChat = false, useHostedMetricEditor = false, useHostedAnalyticalDesigner = false, useHostedLdmModeler = false, onAskAiAssistant, onEvent, }) {
8
8
  const intl = useIntl();
9
9
  const objectTypes = useMemo(() => {
10
10
  const types = ["dashboard", "visualization"];
@@ -42,5 +42,5 @@ export function SemanticSearch({ backend, workspaceId, metadataTimeZone, canMana
42
42
  onAskAiAssistant?.(intl.formatMessage({ id: "gen-ai.ask-assistant.search" }, { question: props.value }));
43
43
  } }));
44
44
  };
45
- return (_jsx(SearchOverlay, { limit: RESULTS_LIMIT, onSelect: onSelect, onSearch: onSearchMetrics, deepSearch: false, objectTypes: objectTypes, workspace: workspaceId, backend: backend, canManage: canManage, canAnalyze: canAnalyze, canFullControl: canFullControl, metadataTimezone: metadataTimeZone, uiPathOptions: { useHostedMetricEditor, useHostedAnalyticalDesigner }, renderFooter: renderFooter }));
45
+ return (_jsx(SearchOverlay, { limit: RESULTS_LIMIT, onSelect: onSelect, onSearch: onSearchMetrics, deepSearch: false, objectTypes: objectTypes, workspace: workspaceId, backend: backend, canManage: canManage, canAnalyze: canAnalyze, canFullControl: canFullControl, metadataTimezone: metadataTimeZone, uiPathOptions: { useHostedMetricEditor, useHostedAnalyticalDesigner, useHostedLdmModeler }, renderFooter: renderFooter }));
46
46
  }
@@ -13,6 +13,6 @@ export function useHostChromeSearch({ features, isTrial, onAskAiAssistant, telem
13
13
  const handleSearchEvent = useCallback((event) => {
14
14
  telemetry?.trackEvent(event.name, event.payload);
15
15
  }, [telemetry]);
16
- const element = features.showSearch && features.workspaceId ? (_jsx(SemanticSearch, { backend: getBackend(), workspaceId: features.workspaceId, canManage: features.canManageProject, canAnalyze: features.canCreateVisualization, canFullControl: features.canFullControl, metadataTimeZone: features.settings.metadataTimeZone, isTrial: isTrial, enableUseGenAIChat: features.showChat, useHostedMetricEditor: Boolean(features.settings.enableShellApplication_metricEditor), useHostedAnalyticalDesigner: Boolean(features.settings.enableShellApplication_analyticalDesigner), onAskAiAssistant: onAskAiAssistant, onEvent: handleSearchEvent })) : null;
16
+ const element = features.showSearch && features.workspaceId ? (_jsx(SemanticSearch, { backend: getBackend(), workspaceId: features.workspaceId, canManage: features.canManageProject, canAnalyze: features.canCreateVisualization, canFullControl: features.canFullControl, metadataTimeZone: features.settings.metadataTimeZone, isTrial: isTrial, enableUseGenAIChat: features.showChat, useHostedMetricEditor: Boolean(features.settings.enableShellApplication_metricEditor), useHostedAnalyticalDesigner: Boolean(features.settings.enableShellApplication_analyticalDesigner), useHostedLdmModeler: Boolean(features.settings.enableShellApplication_ldmModeler), onAskAiAssistant: onAskAiAssistant, onEvent: handleSearchEvent })) : null;
17
17
  return { element };
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-pluggable-host",
3
- "version": "11.41.0-alpha.1",
3
+ "version": "11.41.0-alpha.2",
4
4
  "description": "GoodData SDK runtime for hosting pluggable applications — registry, loader, routing, platform context, default UI chrome",
5
5
  "license": "MIT",
6
6
  "author": "GoodData Corporation",
@@ -29,20 +29,20 @@
29
29
  "dependencies": {
30
30
  "@module-federation/runtime": "2.3.1",
31
31
  "lodash-es": "^4.17.23",
32
- "@gooddata/sdk-backend-base": "11.41.0-alpha.1",
33
- "@gooddata/sdk-backend-spi": "11.41.0-alpha.1",
34
- "@gooddata/sdk-backend-tiger": "11.41.0-alpha.1",
35
- "@gooddata/sdk-embedding": "11.41.0-alpha.1",
36
- "@gooddata/sdk-model": "11.41.0-alpha.1",
37
- "@gooddata/sdk-pluggable-application-model": "11.41.0-alpha.1",
38
- "@gooddata/sdk-ui": "11.41.0-alpha.1",
39
- "@gooddata/sdk-ui-application-header": "11.41.0-alpha.1",
40
- "@gooddata/sdk-ui-ext": "11.41.0-alpha.1",
41
- "@gooddata/sdk-ui-gen-ai": "11.41.0-alpha.1",
42
- "@gooddata/sdk-ui-kit": "11.41.0-alpha.1",
43
- "@gooddata/sdk-ui-semantic-search": "11.41.0-alpha.1",
44
- "@gooddata/sdk-ui-theme-provider": "11.41.0-alpha.1",
45
- "@gooddata/util": "11.41.0-alpha.1"
32
+ "@gooddata/sdk-backend-base": "11.41.0-alpha.2",
33
+ "@gooddata/sdk-backend-spi": "11.41.0-alpha.2",
34
+ "@gooddata/sdk-backend-tiger": "11.41.0-alpha.2",
35
+ "@gooddata/sdk-embedding": "11.41.0-alpha.2",
36
+ "@gooddata/sdk-pluggable-application-model": "11.41.0-alpha.2",
37
+ "@gooddata/sdk-model": "11.41.0-alpha.2",
38
+ "@gooddata/sdk-ui": "11.41.0-alpha.2",
39
+ "@gooddata/sdk-ui-application-header": "11.41.0-alpha.2",
40
+ "@gooddata/sdk-ui-ext": "11.41.0-alpha.2",
41
+ "@gooddata/sdk-ui-kit": "11.41.0-alpha.2",
42
+ "@gooddata/sdk-ui-gen-ai": "11.41.0-alpha.2",
43
+ "@gooddata/sdk-ui-semantic-search": "11.41.0-alpha.2",
44
+ "@gooddata/sdk-ui-theme-provider": "11.41.0-alpha.2",
45
+ "@gooddata/util": "11.41.0-alpha.2"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@microsoft/api-documenter": "^7.17.0",
@@ -85,8 +85,8 @@
85
85
  "vite": "8.0.16",
86
86
  "vitest": "4.1.8",
87
87
  "vitest-dom": "0.1.1",
88
- "@gooddata/eslint-config": "11.41.0-alpha.1",
89
- "@gooddata/oxlint-config": "11.41.0-alpha.1"
88
+ "@gooddata/eslint-config": "11.41.0-alpha.2",
89
+ "@gooddata/oxlint-config": "11.41.0-alpha.2"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "react": ">=18.3.1",