@gooddata/sdk-ui-pluggable-application 11.53.0-alpha.2 → 11.53.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.
- package/esm/ai.d.ts +8 -0
- package/esm/ai.d.ts.map +1 -0
- package/esm/ai.js +18 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/sdk-ui-pluggable-application.d.ts +8 -0
- package/package.json +9 -9
package/esm/ai.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IPluggableApplicationMountOptions } from "@gooddata/sdk-pluggable-application-model";
|
|
2
|
+
/**
|
|
3
|
+
* @alpha
|
|
4
|
+
*
|
|
5
|
+
* Default implementation of the AI assistant subscription.
|
|
6
|
+
*/
|
|
7
|
+
export declare function subscribeAiAssistantDefault(options: IPluggableApplicationMountOptions): () => void;
|
|
8
|
+
//# sourceMappingURL=ai.d.ts.map
|
package/esm/ai.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../src/ai.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,iCAAiC,EAEzC,MAAM,2CAA2C,CAAC;AAEnD;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,iCAAiC,GAAG,MAAM,IAAI,CAYlG"}
|
package/esm/ai.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// (C) 2026 GoodData Corporation
|
|
2
|
+
import { aiAssistantContextChanged, } from "@gooddata/sdk-pluggable-application-model";
|
|
3
|
+
/**
|
|
4
|
+
* @alpha
|
|
5
|
+
*
|
|
6
|
+
* Default implementation of the AI assistant subscription.
|
|
7
|
+
*/
|
|
8
|
+
export function subscribeAiAssistantDefault(options) {
|
|
9
|
+
let initialized = false;
|
|
10
|
+
const report = () => {
|
|
11
|
+
if (!initialized) {
|
|
12
|
+
options.onEvent?.(aiAssistantContextChanged({ disabled: false }));
|
|
13
|
+
}
|
|
14
|
+
initialized = true;
|
|
15
|
+
};
|
|
16
|
+
report();
|
|
17
|
+
return () => void 0;
|
|
18
|
+
}
|
package/esm/index.d.ts
CHANGED
|
@@ -8,4 +8,5 @@ export { createBackendForModule, type ICreateBackendForModuleOptions } from "./b
|
|
|
8
8
|
export { AppProviders, type IAppProvidersProps } from "./AppProviders.js";
|
|
9
9
|
export { type IPluggableAppEventsContextValue, type IPluggableAppEventsProviderProps, PluggableAppEventsProvider, usePluggableAppEvents, } from "./events.js";
|
|
10
10
|
export { type IModuleTelemetryMetadata, type IPluggableAppTelemetryProviderProps, enrichTelemetryCallbacks, PluggableAppTelemetryProvider, usePluggableAppTelemetry, } from "./telemetry.js";
|
|
11
|
+
export { subscribeAiAssistantDefault } from "./ai.js";
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AAEH,OAAO,EACH,KAAK,sBAAsB,EAC3B,uBAAuB,EACvB,KAAK,6BAA6B,EAClC,kBAAkB,EAClB,wBAAwB,GAC3B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,sBAAsB,EAAE,KAAK,8BAA8B,EAAE,MAAM,cAAc,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EACH,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,0BAA0B,EAC1B,qBAAqB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,EACxC,wBAAwB,EACxB,6BAA6B,EAC7B,wBAAwB,GAC3B,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AAEH,OAAO,EACH,KAAK,sBAAsB,EAC3B,uBAAuB,EACvB,KAAK,6BAA6B,EAClC,kBAAkB,EAClB,wBAAwB,GAC3B,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,sBAAsB,EAAE,KAAK,8BAA8B,EAAE,MAAM,cAAc,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EACH,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,0BAA0B,EAC1B,qBAAqB,GACxB,MAAM,aAAa,CAAC;AACrB,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,mCAAmC,EACxC,wBAAwB,EACxB,6BAA6B,EAC7B,wBAAwB,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC"}
|
package/esm/index.js
CHANGED
|
@@ -10,3 +10,4 @@ export { createBackendForModule } from "./backend.js";
|
|
|
10
10
|
export { AppProviders } from "./AppProviders.js";
|
|
11
11
|
export { PluggableAppEventsProvider, usePluggableAppEvents, } from "./events.js";
|
|
12
12
|
export { enrichTelemetryCallbacks, PluggableAppTelemetryProvider, usePluggableAppTelemetry, } from "./telemetry.js";
|
|
13
|
+
export { subscribeAiAssistantDefault } from "./ai.js";
|
|
@@ -9,6 +9,7 @@ import { IAuthCredentials } from '@gooddata/sdk-pluggable-application-model';
|
|
|
9
9
|
import { ILocale } from '@gooddata/sdk-model';
|
|
10
10
|
import { IPlatformContext } from '@gooddata/sdk-pluggable-application-model';
|
|
11
11
|
import { IPluggableAppEvent } from '@gooddata/sdk-pluggable-application-model';
|
|
12
|
+
import { IPluggableApplicationMountOptions } from '@gooddata/sdk-pluggable-application-model';
|
|
12
13
|
import { IPluggableAppTelemetryCallbacks } from '@gooddata/sdk-pluggable-application-model';
|
|
13
14
|
import { ITranslations } from '@gooddata/sdk-ui';
|
|
14
15
|
import { JSX } from 'react/jsx-runtime';
|
|
@@ -266,6 +267,13 @@ export declare function PluggableAppEventsProvider({ onEvent, children }: IPlugg
|
|
|
266
267
|
*/
|
|
267
268
|
export declare function PluggableAppTelemetryProvider({ onTelemetryEvent, moduleReactVersion, moduleSdkVersion, children }: IPluggableAppTelemetryProviderProps): JSX.Element;
|
|
268
269
|
|
|
270
|
+
/**
|
|
271
|
+
* @alpha
|
|
272
|
+
*
|
|
273
|
+
* Default implementation of the AI assistant subscription.
|
|
274
|
+
*/
|
|
275
|
+
export declare function subscribeAiAssistantDefault(options: IPluggableApplicationMountOptions): () => void;
|
|
276
|
+
|
|
269
277
|
/**
|
|
270
278
|
* Returns client platform context snapshot (or undefined if not available yet).
|
|
271
279
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-pluggable-application",
|
|
3
|
-
"version": "11.53.0-alpha.
|
|
3
|
+
"version": "11.53.0-alpha.4",
|
|
4
4
|
"description": "GoodData SDK React helpers for pluggable applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"react-intl": "7.1.11",
|
|
25
25
|
"ts-invariant": "0.10.3",
|
|
26
26
|
"tslib": "2.8.1",
|
|
27
|
-
"@gooddata/sdk-backend-
|
|
28
|
-
"@gooddata/sdk-backend-
|
|
29
|
-
"@gooddata/sdk-model": "11.53.0-alpha.
|
|
30
|
-
"@gooddata/sdk-
|
|
31
|
-
"@gooddata/sdk-
|
|
32
|
-
"@gooddata/sdk-ui": "11.53.0-alpha.
|
|
27
|
+
"@gooddata/sdk-backend-base": "11.53.0-alpha.4",
|
|
28
|
+
"@gooddata/sdk-backend-spi": "11.53.0-alpha.4",
|
|
29
|
+
"@gooddata/sdk-model": "11.53.0-alpha.4",
|
|
30
|
+
"@gooddata/sdk-backend-tiger": "11.53.0-alpha.4",
|
|
31
|
+
"@gooddata/sdk-pluggable-application-model": "11.53.0-alpha.4",
|
|
32
|
+
"@gooddata/sdk-ui": "11.53.0-alpha.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@microsoft/api-documenter": "^7.17.0",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"react-dom": "19.1.1",
|
|
62
62
|
"typescript": "5.9.3",
|
|
63
63
|
"vitest": "4.1.8",
|
|
64
|
-
"@gooddata/eslint-config": "11.53.0-alpha.
|
|
65
|
-
"@gooddata/oxlint-config": "11.53.0-alpha.
|
|
64
|
+
"@gooddata/eslint-config": "11.53.0-alpha.4",
|
|
65
|
+
"@gooddata/oxlint-config": "11.53.0-alpha.4"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0 || ^19.0.0",
|