@gooddata/sdk-ui-gen-ai 11.67.0 → 11.68.0-alpha.1
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/NOTICE +49 -13
- package/README.md +10 -1
- package/esm/copilot/CopilotHandler.d.ts +3 -0
- package/esm/copilot/CopilotHandler.d.ts.map +1 -1
- package/esm/copilot/CopilotHandler.js +22 -1
- package/esm/copilot/types.d.ts +6 -2
- package/esm/copilot/types.d.ts.map +1 -1
- package/esm/sdk-ui-gen-ai.d.ts +9 -2
- package/package.json +22 -22
package/NOTICE
CHANGED
|
@@ -11,9 +11,9 @@ This product includes a number of subcomponents with separate copyright notices
|
|
|
11
11
|
|
|
12
12
|
The following 3rd-party software packages may be used by or distributed with gooddata-ui-sdk. Any information relevant to third-party vendors listed below are collected using common, reasonable means.
|
|
13
13
|
|
|
14
|
-
Date generated: 2026-11-
|
|
14
|
+
Date generated: 2026-11-5
|
|
15
15
|
|
|
16
|
-
Revision ID:
|
|
16
|
+
Revision ID: e28fc9ee41056ec62021c4000c54031a2d45d175
|
|
17
17
|
|
|
18
18
|
================================================================================
|
|
19
19
|
================================================================================
|
|
@@ -267,7 +267,7 @@ Revision ID: 66165aa316fed09103bbac8a827d970a6afda351
|
|
|
267
267
|
- @swc/helpers (0.5.23) [Apache-2.0]
|
|
268
268
|
- @tanstack/react-virtual (3.14.13) [MIT]
|
|
269
269
|
- @tanstack/virtual-core (3.17.11) [MIT]
|
|
270
|
-
- @ts-morph/common (0.
|
|
270
|
+
- @ts-morph/common (0.29.0) [Apache-2.0, MIT]
|
|
271
271
|
- @types/chai (5.2.3) [MIT]
|
|
272
272
|
- @types/debug (4.1.13) [MIT]
|
|
273
273
|
- @types/deep-eql (4.0.2) [MIT]
|
|
@@ -663,7 +663,7 @@ Revision ID: 66165aa316fed09103bbac8a827d970a6afda351
|
|
|
663
663
|
- minipass (7.1.3) [ISC]
|
|
664
664
|
- minizlib (3.1.0) [MIT]
|
|
665
665
|
- moment (2.31.0) [MIT]
|
|
666
|
-
- moment-timezone (0.5.35) [
|
|
666
|
+
- moment-timezone (0.5.35) [BSD-3-Clause, MIT, public-domain]
|
|
667
667
|
- moo (0.5.3) [BSD-3-Clause]
|
|
668
668
|
- ms (2.1.3) [MIT]
|
|
669
669
|
- murmurhash-js (1.0.0) [MIT]
|
|
@@ -848,7 +848,7 @@ Revision ID: 66165aa316fed09103bbac8a827d970a6afda351
|
|
|
848
848
|
- try (1.0.3) [MIT]
|
|
849
849
|
- ts-invariant (0.10.3) [MIT]
|
|
850
850
|
- ts-invariant (0.7.5) [MIT]
|
|
851
|
-
- ts-morph (
|
|
851
|
+
- ts-morph (28.0.0) [MIT, 0BSD]
|
|
852
852
|
- tslib (2.8.1) [ISC]
|
|
853
853
|
- tss-react (4.9.19) [MIT]
|
|
854
854
|
- type-fest (0.21.3) [Multi-license: CC0-1.0 OR MIT]
|
|
@@ -12266,9 +12266,9 @@ MIT
|
|
|
12266
12266
|
- Copyright (c) 2021 present Tanner Linsley
|
|
12267
12267
|
|
|
12268
12268
|
--------------------------------------------------------------------------------
|
|
12269
|
-
Package Title: @ts-morph/common (0.
|
|
12269
|
+
Package Title: @ts-morph/common (0.29.0)
|
|
12270
12270
|
|
|
12271
|
-
Package Locator: npm+@ts-morph/common$0.
|
|
12271
|
+
Package Locator: npm+@ts-morph/common$0.29.0
|
|
12272
12272
|
|
|
12273
12273
|
Package Depth: Transitive
|
|
12274
12274
|
--------------------------------------------------------------------------------
|
|
@@ -46360,7 +46360,37 @@ Package Depth: Direct
|
|
|
46360
46360
|
--------------------------------------------------------------------------------
|
|
46361
46361
|
|
|
46362
46362
|
* Declared Licenses *
|
|
46363
|
-
|
|
46363
|
+
BSD-3-Clause, MIT
|
|
46364
|
+
|
|
46365
|
+
* BSD-3-Clause *
|
|
46366
|
+
|
|
46367
|
+
* License Header *
|
|
46368
|
+
Copyright (c) <year> <owner> . All rights reserved.
|
|
46369
|
+
|
|
46370
|
+
Redistribution and use in source and binary forms, with or without
|
|
46371
|
+
modification, are permitted provided that the following conditions are met:
|
|
46372
|
+
|
|
46373
|
+
1. Redistributions of source code must retain the above copyright notice,
|
|
46374
|
+
this list of conditions and the following disclaimer.
|
|
46375
|
+
|
|
46376
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
46377
|
+
this list of conditions and the following disclaimer in the documentation
|
|
46378
|
+
and/or other materials provided with the distribution.
|
|
46379
|
+
|
|
46380
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
46381
|
+
contributors may be used to endorse or promote products derived from
|
|
46382
|
+
this software without specific prior written permission.
|
|
46383
|
+
|
|
46384
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
46385
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
46386
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
46387
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
46388
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
46389
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
46390
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
46391
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
46392
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
46393
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
46364
46394
|
|
|
46365
46395
|
* MIT *
|
|
46366
46396
|
|
|
@@ -46384,11 +46414,17 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
46384
46414
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
46385
46415
|
SOFTWARE.
|
|
46386
46416
|
|
|
46387
|
-
* unknown *
|
|
46388
|
-
|
|
46389
46417
|
* Other Licenses *
|
|
46390
46418
|
public-domain
|
|
46391
46419
|
|
|
46420
|
+
* License Header *
|
|
46421
|
+
Unless specified below, all files in the tz code and data (including
|
|
46422
|
+
this LICENSE file) are in the public domain.
|
|
46423
|
+
|
|
46424
|
+
If the files date.c, newstrftime.3, and strftime.c are present, they
|
|
46425
|
+
contain material derived from BSD and use the BSD 3-clause license.
|
|
46426
|
+
|
|
46427
|
+
|
|
46392
46428
|
--------------------------------------------------------------------------------
|
|
46393
46429
|
Package Title: moo (0.5.3)
|
|
46394
46430
|
|
|
@@ -56372,9 +56408,9 @@ MIT
|
|
|
56372
56408
|
- Copyright (c) 2019 Apollo GraphQL
|
|
56373
56409
|
|
|
56374
56410
|
--------------------------------------------------------------------------------
|
|
56375
|
-
Package Title: ts-morph (
|
|
56411
|
+
Package Title: ts-morph (28.0.0)
|
|
56376
56412
|
|
|
56377
|
-
Package Locator: npm+ts-morph$
|
|
56413
|
+
Package Locator: npm+ts-morph$28.0.0
|
|
56378
56414
|
|
|
56379
56415
|
Package Depth: Direct
|
|
56380
56416
|
--------------------------------------------------------------------------------
|
|
@@ -69347,4 +69383,4 @@ MIT
|
|
|
69347
69383
|
--------------------------------------------------------------------------------
|
|
69348
69384
|
--------------------------------------------------------------------------------
|
|
69349
69385
|
|
|
69350
|
-
Report Generated by FOSSA on 2026-11-
|
|
69386
|
+
Report Generated by FOSSA on 2026-11-5
|
package/README.md
CHANGED
|
@@ -37,9 +37,18 @@ supported, with `inputPlaceholder` taking precedence when both are supplied.
|
|
|
37
37
|
## Headless copilot workflow (alpha)
|
|
38
38
|
|
|
39
39
|
`CopilotHandler` owns plain immutable workflow state; it requires no Redux setup.
|
|
40
|
-
Register each build type with its reacting skills, pure definition
|
|
40
|
+
Register each build type with its reacting skills, pure definition target resolver,
|
|
41
41
|
and host application callback. Create one instance per editor/runtime, not a singleton.
|
|
42
42
|
|
|
43
|
+
The handler accepts definitions matching the open builder target, including history replays.
|
|
44
|
+
Other definitions must be live and belong to pending generation, the currently edited object,
|
|
45
|
+
or the open builder's applied conversation. Builder follow-ups may change the draft identifier;
|
|
46
|
+
server thread IDs take precedence over local conversation IDs when both are available.
|
|
47
|
+
|
|
48
|
+
Use `copilot.hasDefinition(target)` to check whether the exact workflow type and object ID have a
|
|
49
|
+
pending or applied definition, independently of the current view or selected conversation. Hosts can
|
|
50
|
+
use this query to restore chat for fresh builder URLs without switching chats after in-session applications.
|
|
51
|
+
|
|
43
52
|
```typescript
|
|
44
53
|
import { CopilotBuildType, CopilotHandler } from "@gooddata/sdk-ui-gen-ai";
|
|
45
54
|
|
|
@@ -50,8 +50,11 @@ export declare class CopilotHandler<TBuild extends string = CopilotBuildType> {
|
|
|
50
50
|
getReasoningTitle: () => string | undefined;
|
|
51
51
|
/** Read the origin associated with the applied object, not the selected chat. */
|
|
52
52
|
getAppliedSource: (target: ICopilotTarget<TBuild>) => ICopilotSource | undefined;
|
|
53
|
+
/** Whether this exact workflow target has a pending or applied definition, regardless of chat selection. */
|
|
54
|
+
hasDefinition: (target: ICopilotTarget<TBuild>) => boolean;
|
|
53
55
|
/** Permanently stop processing and release all listeners. Idempotent. */
|
|
54
56
|
dispose: () => void;
|
|
57
|
+
private shouldApplyDefinition;
|
|
55
58
|
private update;
|
|
56
59
|
}
|
|
57
60
|
//# sourceMappingURL=CopilotHandler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CopilotHandler.d.ts","sourceRoot":"","sources":["../../src/copilot/CopilotHandler.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"CopilotH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AM,KAAG,IAAI,CAErE;IAEF,oDAAoD;IAC7C,WAAW,QAAO,gBAAgB,CAAC,MAAM,CAAC,CAAe;IAEhE,sFAAsF;IAC/E,SAAS,aAAc,MAAM,IAAI,KAAG,CAAC,MAAM,IAAI,CAAC,CAQrD;IAEF,+EAA+E;IACxE,SAAS,UAAW,aAAa,CAAC,MAAM,CAAC,KAAG,aAAa,CACrB;IAE3C,8EAA8E;IACvE,mBAAmB,SAAU,MAAM,KAAG,OAAO,CAAqD;IAEzG,6CAA6C;IACtC,iBAAiB,QAAO,MAAM,GAAG,SAAS,CAA4C;IAE7F,iFAAiF;IAC1E,gBAAgB,WAAY,cAAc,CAAC,MAAM,CAAC,KAAG,cAAc,GAAG,SAAS,CAC1C;IAE5C,4GAA4G;IACrG,aAAa,WAAY,cAAc,CAAC,MAAM,CAAC,KAAG,OAAO,CAG1D;IAEN,yEAAyE;IAClE,OAAO,QAAO,IAAI,CAGvB;IAEF,OAAO,CAAC,qBAAqB;IAwB7B,OAAO,CAAC,MAAM;CAgBjB"}
|
|
@@ -42,7 +42,9 @@ export class CopilotHandler {
|
|
|
42
42
|
if (event.type === "onDefinitionReceived") {
|
|
43
43
|
for (const registration of this.configuration.registrations) {
|
|
44
44
|
const target = registration.resolveDefinition(event, this.state.context, this.state);
|
|
45
|
-
if (!target ||
|
|
45
|
+
if (!target ||
|
|
46
|
+
target.type !== registration.type ||
|
|
47
|
+
!this.shouldApplyDefinition(event, target)) {
|
|
46
48
|
continue;
|
|
47
49
|
}
|
|
48
50
|
const applicationId = this.definitionApplicationStarted({
|
|
@@ -141,11 +143,30 @@ export class CopilotHandler {
|
|
|
141
143
|
getReasoningTitle = () => selectCopilotReasoningTitle(this.state);
|
|
142
144
|
/** Read the origin associated with the applied object, not the selected chat. */
|
|
143
145
|
getAppliedSource = (target) => selectCopilotSource(this.state, target);
|
|
146
|
+
/** Whether this exact workflow target has a pending or applied definition, regardless of chat selection. */
|
|
147
|
+
hasDefinition = (target) => [...this.state.applications, ...this.state.sources].some((entry) => entry.target.type === target.type && entry.target.objectId === target.objectId);
|
|
144
148
|
/** Permanently stop processing and release all listeners. Idempotent. */
|
|
145
149
|
dispose = () => {
|
|
146
150
|
this.disposed = true;
|
|
147
151
|
this.listeners.clear();
|
|
148
152
|
};
|
|
153
|
+
shouldApplyDefinition(event, target) {
|
|
154
|
+
const { context } = this.state;
|
|
155
|
+
const builderTarget = context.builderTarget?.type === target.type ? context.builderTarget : undefined;
|
|
156
|
+
if (builderTarget?.objectId === target.objectId) {
|
|
157
|
+
return true;
|
|
158
|
+
}
|
|
159
|
+
if (event.interactionId) {
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
const source = builderTarget ? this.getAppliedSource(builderTarget) : undefined;
|
|
163
|
+
const isBuilderFollowUp = source?.threadId && event.threadId
|
|
164
|
+
? source.threadId === event.threadId
|
|
165
|
+
: !!source?.conversationId && source.conversationId === event.conversationId;
|
|
166
|
+
return (this.isGenerationPending(target.type) ||
|
|
167
|
+
isBuilderFollowUp ||
|
|
168
|
+
(context.type === target.type && !!context.isEditing && context.objectId === target.objectId));
|
|
169
|
+
}
|
|
149
170
|
update(input) {
|
|
150
171
|
if (this.disposed) {
|
|
151
172
|
return;
|
package/esm/copilot/types.d.ts
CHANGED
|
@@ -129,13 +129,17 @@ export interface ICopilotSnapshot<TBuild extends string = CopilotBuildType> {
|
|
|
129
129
|
/** Monotonic lifecycle revision, not an allocated identifier. */
|
|
130
130
|
readonly revision: number;
|
|
131
131
|
}
|
|
132
|
-
/** Pure
|
|
132
|
+
/** Pure definition target resolver and host effect for one workflow. @alpha */
|
|
133
133
|
export interface ICopilotRegistration<TBuild extends string = CopilotBuildType> {
|
|
134
134
|
/** Workflow activated by these skills. */
|
|
135
135
|
readonly type: TBuild;
|
|
136
136
|
/** Skills that activate this workflow. */
|
|
137
137
|
readonly skills: readonly AgentCustomSkill[];
|
|
138
|
-
/**
|
|
138
|
+
/**
|
|
139
|
+
* Resolve a definition's target; return undefined for unsupported definitions.
|
|
140
|
+
* The handler applies matching builder definitions, or live definitions for pending generation,
|
|
141
|
+
* the builder's applied conversation, or the currently edited object.
|
|
142
|
+
*/
|
|
139
143
|
readonly resolveDefinition: (event: ChatDefinitionReceivedEvent, context: ICopilotContext<TBuild>, snapshot: ICopilotSnapshot<TBuild>) => ICopilotTarget<TBuild> | undefined;
|
|
140
144
|
/** Apply the accepted definition, then explicitly acknowledge its application ID. */
|
|
141
145
|
readonly onApplyDefinition: (event: ChatDefinitionReceivedEvent, applicationId: string, target: ICopilotTarget<TBuild>) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/copilot/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EACH,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,SAAS,EACjB,MAAM,oBAAoB,CAAC;AAE5B,wFAAwF;AACxF,oBAAY,gBAAgB;IACxB,sCAAsC;IACtC,SAAS,cAAc;CAC1B;AAED,0EAA0E;AAC1E,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,GAAG,SAAS,CAAC;AAE3E,yDAAyD;AACzD,MAAM,WAAW,cAAc,CAAC,MAAM,SAAS,MAAM,GAAG,gBAAgB;IACpE,gCAAgC;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8BAA8B;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC7B;AAED,4EAA4E;AAC5E,MAAM,WAAW,eAAe,CAAC,MAAM,SAAS,MAAM,GAAG,gBAAgB;IACrE,oCAAoC;IACpC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,kCAAkC;IAClC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,6DAA6D;IAC7D,QAAQ,CAAC,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+525,11 @@ export declare class CopilotHandler<TBuild extends string = CopilotBuildType> {
|
|
|
525
525
|
getReasoningTitle: () => string | undefined;
|
|
526
526
|
/** Read the origin associated with the applied object, not the selected chat. */
|
|
527
527
|
getAppliedSource: (target: ICopilotTarget<TBuild>) => ICopilotSource | undefined;
|
|
528
|
+
/** Whether this exact workflow target has a pending or applied definition, regardless of chat selection. */
|
|
529
|
+
hasDefinition: (target: ICopilotTarget<TBuild>) => boolean;
|
|
528
530
|
/** Permanently stop processing and release all listeners. Idempotent. */
|
|
529
531
|
dispose: () => void;
|
|
532
|
+
private shouldApplyDefinition;
|
|
530
533
|
private update;
|
|
531
534
|
}
|
|
532
535
|
|
|
@@ -1247,13 +1250,17 @@ export declare interface ICopilotInteractionComposingWithHandlerProps<TBuild ext
|
|
|
1247
1250
|
onReplyInChat?: (threadId?: string) => void;
|
|
1248
1251
|
}
|
|
1249
1252
|
|
|
1250
|
-
/** Pure
|
|
1253
|
+
/** Pure definition target resolver and host effect for one workflow. @alpha */
|
|
1251
1254
|
export declare interface ICopilotRegistration<TBuild extends string = CopilotBuildType> {
|
|
1252
1255
|
/** Workflow activated by these skills. */
|
|
1253
1256
|
readonly type: TBuild;
|
|
1254
1257
|
/** Skills that activate this workflow. */
|
|
1255
1258
|
readonly skills: readonly AgentCustomSkill[];
|
|
1256
|
-
/**
|
|
1259
|
+
/**
|
|
1260
|
+
* Resolve a definition's target; return undefined for unsupported definitions.
|
|
1261
|
+
* The handler applies matching builder definitions, or live definitions for pending generation,
|
|
1262
|
+
* the builder's applied conversation, or the currently edited object.
|
|
1263
|
+
*/
|
|
1257
1264
|
readonly resolveDefinition: (event: ChatDefinitionReceivedEvent, context: ICopilotContext<TBuild>, snapshot: ICopilotSnapshot<TBuild>) => ICopilotTarget<TBuild> | undefined;
|
|
1258
1265
|
/** Apply the accepted definition, then explicitly acknowledge its application ID. */
|
|
1259
1266
|
readonly onApplyDefinition: (event: ChatDefinitionReceivedEvent, applicationId: string, target: ICopilotTarget<TBuild>) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-gen-ai",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.68.0-alpha.1",
|
|
4
4
|
"description": "GoodData GenAI SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -57,21 +57,21 @@
|
|
|
57
57
|
"reselect": "5.1.1",
|
|
58
58
|
"tslib": "2.8.1",
|
|
59
59
|
"uuid": "11.1.1",
|
|
60
|
-
"@gooddata/api-client-tiger": "11.
|
|
61
|
-
"@gooddata/sdk-
|
|
62
|
-
"@gooddata/sdk-
|
|
63
|
-
"@gooddata/sdk-pluggable-application-model": "11.
|
|
64
|
-
"@gooddata/sdk-ui
|
|
65
|
-
"@gooddata/sdk-ui": "11.
|
|
66
|
-
"@gooddata/sdk-ui-dashboard": "11.
|
|
67
|
-
"@gooddata/sdk-ui-ext": "11.
|
|
68
|
-
"@gooddata/sdk-ui-
|
|
69
|
-
"@gooddata/sdk-ui-kit": "11.
|
|
70
|
-
"@gooddata/sdk-ui-
|
|
71
|
-
"@gooddata/sdk-ui-pivot": "11.
|
|
72
|
-
"@gooddata/sdk-ui-semantic-search": "11.
|
|
73
|
-
"@gooddata/sdk-ui-theme-provider": "11.
|
|
74
|
-
"@gooddata/util": "11.
|
|
60
|
+
"@gooddata/api-client-tiger": "11.68.0-alpha.1",
|
|
61
|
+
"@gooddata/sdk-backend-spi": "11.68.0-alpha.1",
|
|
62
|
+
"@gooddata/sdk-model": "11.68.0-alpha.1",
|
|
63
|
+
"@gooddata/sdk-pluggable-application-model": "11.68.0-alpha.1",
|
|
64
|
+
"@gooddata/sdk-ui": "11.68.0-alpha.1",
|
|
65
|
+
"@gooddata/sdk-ui-charts": "11.68.0-alpha.1",
|
|
66
|
+
"@gooddata/sdk-ui-dashboard": "11.68.0-alpha.1",
|
|
67
|
+
"@gooddata/sdk-ui-ext": "11.68.0-alpha.1",
|
|
68
|
+
"@gooddata/sdk-ui-filters": "11.68.0-alpha.1",
|
|
69
|
+
"@gooddata/sdk-ui-kit": "11.68.0-alpha.1",
|
|
70
|
+
"@gooddata/sdk-ui-geo": "11.68.0-alpha.1",
|
|
71
|
+
"@gooddata/sdk-ui-pivot": "11.68.0-alpha.1",
|
|
72
|
+
"@gooddata/sdk-ui-semantic-search": "11.68.0-alpha.1",
|
|
73
|
+
"@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.1",
|
|
74
|
+
"@gooddata/util": "11.68.0-alpha.1"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@microsoft/api-documenter": "7.30.20",
|
|
@@ -110,12 +110,12 @@
|
|
|
110
110
|
"svgo": "2.8.4",
|
|
111
111
|
"typescript": "7.0.2",
|
|
112
112
|
"vitest": "5.0.4",
|
|
113
|
-
"@gooddata/
|
|
114
|
-
"@gooddata/
|
|
115
|
-
"@gooddata/
|
|
116
|
-
"@gooddata/
|
|
117
|
-
"@gooddata/
|
|
118
|
-
"@gooddata/
|
|
113
|
+
"@gooddata/i18n-toolkit": "11.68.0-alpha.1",
|
|
114
|
+
"@gooddata/oxlint-config": "11.68.0-alpha.1",
|
|
115
|
+
"@gooddata/reference-workspace": "11.68.0-alpha.1",
|
|
116
|
+
"@gooddata/eslint-config": "11.68.0-alpha.1",
|
|
117
|
+
"@gooddata/stylelint-config": "11.68.0-alpha.1",
|
|
118
|
+
"@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.1"
|
|
119
119
|
},
|
|
120
120
|
"peerDependencies": {
|
|
121
121
|
"react": "^18.0.0 || ^19.0.0",
|