@gooddata/sdk-ui-ext 11.57.0-alpha.5 → 11.57.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.
- package/NOTICE +43441 -43441
- package/esm/insightPicker/InsightPickerCore.d.ts.map +1 -1
- package/esm/insightPicker/InsightPickerCore.js +49 -21
- package/esm/insightPicker/useInsightPickerHybridSearch.d.ts +1 -1
- package/esm/insightPicker/useInsightPickerHybridSearch.d.ts.map +1 -1
- package/esm/insightPicker/useInsightPickerHybridSearch.js +10 -3
- package/esm/internal/components/insightList/useInsightPagedList.d.ts +8 -1
- package/esm/internal/components/insightList/useInsightPagedList.d.ts.map +1 -1
- package/esm/internal/components/insightList/useInsightPagedList.js +19 -12
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.d.ts +1 -0
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/PluggablePivotTableNext.js +64 -11
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/totalsHelpers.d.ts +18 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/totalsHelpers.d.ts.map +1 -1
- package/esm/internal/components/pluggableVisualizations/pivotTableNext/totalsHelpers.js +51 -2
- package/esm/internal/constants/supportedProperties.d.ts.map +1 -1
- package/esm/internal/constants/supportedProperties.js +1 -0
- package/esm/internal/translations/de-DE.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/de-DE.localization-bundle.js +11 -2
- package/esm/internal/translations/en-AU.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-AU.localization-bundle.js +11 -2
- package/esm/internal/translations/en-GB.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/en-GB.localization-bundle.js +11 -2
- package/esm/internal/translations/es-419.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/es-419.localization-bundle.js +11 -2
- package/esm/internal/translations/es-ES.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/es-ES.localization-bundle.js +11 -2
- package/esm/internal/translations/fi-FI.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/fi-FI.localization-bundle.js +11 -2
- package/esm/internal/translations/fr-CA.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/fr-CA.localization-bundle.js +11 -2
- package/esm/internal/translations/fr-FR.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/fr-FR.localization-bundle.js +11 -2
- package/esm/internal/translations/id-ID.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/id-ID.localization-bundle.js +11 -2
- package/esm/internal/translations/it-IT.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/it-IT.localization-bundle.js +11 -2
- package/esm/internal/translations/ja-JP.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/ja-JP.localization-bundle.js +11 -2
- package/esm/internal/translations/ko-KR.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/ko-KR.localization-bundle.js +11 -2
- package/esm/internal/translations/nl-NL.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/nl-NL.localization-bundle.js +11 -2
- package/esm/internal/translations/pl-PL.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/pl-PL.localization-bundle.js +11 -2
- package/esm/internal/translations/pt-BR.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/pt-BR.localization-bundle.js +11 -2
- package/esm/internal/translations/pt-PT.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/pt-PT.localization-bundle.js +11 -2
- package/esm/internal/translations/ru-RU.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/ru-RU.localization-bundle.js +11 -2
- package/esm/internal/translations/sl-SI.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/sl-SI.localization-bundle.js +11 -2
- package/esm/internal/translations/th-TH.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/th-TH.localization-bundle.js +11 -2
- package/esm/internal/translations/tr-TR.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/tr-TR.localization-bundle.js +11 -2
- package/esm/internal/translations/uk-UA.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/uk-UA.localization-bundle.js +11 -2
- package/esm/internal/translations/vi-VN.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/vi-VN.localization-bundle.js +11 -2
- package/esm/internal/translations/zh-HK.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/zh-HK.localization-bundle.js +11 -2
- package/esm/internal/translations/zh-Hans.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/zh-Hans.localization-bundle.js +11 -2
- package/esm/internal/translations/zh-Hant.localization-bundle.d.ts +11 -2
- package/esm/internal/translations/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/internal/translations/zh-Hant.localization-bundle.js +11 -2
- package/esm/internal/utils/propertiesHelper.d.ts +10 -1
- package/esm/internal/utils/propertiesHelper.d.ts.map +1 -1
- package/esm/internal/utils/propertiesHelper.js +7 -0
- package/esm/sdk-ui-ext.d.ts +19 -7
- package/esm/share/accessErrors.d.ts +6 -5
- package/esm/share/accessErrors.d.ts.map +1 -1
- package/esm/share/accessErrors.js +7 -6
- package/esm/share/objectShareController.helpers.d.ts +5 -1
- package/esm/share/objectShareController.helpers.d.ts.map +1 -1
- package/esm/share/objectShareController.helpers.js +1 -1
- package/esm/share/useLabelScope.js +4 -4
- package/package.json +24 -24
package/esm/sdk-ui-ext.d.ts
CHANGED
|
@@ -1877,11 +1877,12 @@ export declare const isPercentFormat: (format: string | undefined) => boolean;
|
|
|
1877
1877
|
|
|
1878
1878
|
/**
|
|
1879
1879
|
* Whether an access-list error means object-level permissions aren't available to
|
|
1880
|
-
* the caller
|
|
1881
|
-
* (or label)
|
|
1882
|
-
*
|
|
1883
|
-
*
|
|
1884
|
-
*
|
|
1880
|
+
* the caller. The permissions endpoint is manage-gated and denies a caller who can't
|
|
1881
|
+
* manage the object (or label) with **403**; it answers **404** when the object is not
|
|
1882
|
+
* visible to the caller at all. Both are definitive: the caller has nothing to act on.
|
|
1883
|
+
* We match those two statuses and nothing else — a transient failure (5xx / network)
|
|
1884
|
+
* may still resolve, so it must not be read as a permanent "no". If the backend ever
|
|
1885
|
+
* signals this differently, widen here deliberately, in coordination with the backend.
|
|
1885
1886
|
*
|
|
1886
1887
|
* @internal
|
|
1887
1888
|
*/
|
|
@@ -1980,6 +1981,13 @@ export declare interface IUsePagedDropdownConfig {
|
|
|
1980
1981
|
* Only used by the enhanced insight picker — other consumers should leave this off.
|
|
1981
1982
|
*/
|
|
1982
1983
|
includeAuthorInfo?: boolean;
|
|
1984
|
+
/**
|
|
1985
|
+
* Search term owned by the caller. It replaces the hook's own search state, so that every page
|
|
1986
|
+
* the hook fetches is already narrowed by the server instead of by the caller afterwards. It is
|
|
1987
|
+
* matched across title, identifier, description and tags, unlike the tab-based term, which the
|
|
1988
|
+
* backend matches against the title alone.
|
|
1989
|
+
*/
|
|
1990
|
+
searchTerm?: string;
|
|
1983
1991
|
}
|
|
1984
1992
|
|
|
1985
1993
|
/**
|
|
@@ -2229,7 +2237,11 @@ export declare const semanticRuleFor: (option: ITargetOption, semantic: ISemanti
|
|
|
2229
2237
|
*
|
|
2230
2238
|
* @internal
|
|
2231
2239
|
*/
|
|
2232
|
-
export declare function sortShareableLabels
|
|
2240
|
+
export declare function sortShareableLabels<T extends {
|
|
2241
|
+
id: string;
|
|
2242
|
+
title: string;
|
|
2243
|
+
isPrimary?: boolean;
|
|
2244
|
+
}>(labels: readonly T[]): T[];
|
|
2233
2245
|
|
|
2234
2246
|
/**
|
|
2235
2247
|
* Explicit grantees other than the caller.
|
|
@@ -2311,7 +2323,7 @@ export declare function useCopyObjectPermissions(): (from: IObjectPermissionsObj
|
|
|
2311
2323
|
*
|
|
2312
2324
|
* @internal
|
|
2313
2325
|
*/
|
|
2314
|
-
export declare function useInsightPagedList({ backend, workspaceId, author, tabsIds, tags, excludeTags, sortBy, sortDirection, createdByFilter, includeAuthorInfo, }: IUsePagedDropdownConfig): IUsePagedDropdownResult;
|
|
2326
|
+
export declare function useInsightPagedList({ backend, workspaceId, author, tabsIds, tags, excludeTags, sortBy, sortDirection, createdByFilter, includeAuthorInfo, searchTerm, }: IUsePagedDropdownConfig): IUsePagedDropdownResult;
|
|
2315
2327
|
|
|
2316
2328
|
/**
|
|
2317
2329
|
* Managed state for the InsightPicker component.
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Whether an access-list error means object-level permissions aren't available to
|
|
3
|
-
* the caller
|
|
4
|
-
* (or label)
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
3
|
+
* the caller. The permissions endpoint is manage-gated and denies a caller who can't
|
|
4
|
+
* manage the object (or label) with **403**; it answers **404** when the object is not
|
|
5
|
+
* visible to the caller at all. Both are definitive: the caller has nothing to act on.
|
|
6
|
+
* We match those two statuses and nothing else — a transient failure (5xx / network)
|
|
7
|
+
* may still resolve, so it must not be read as a permanent "no". If the backend ever
|
|
8
|
+
* signals this differently, widen here deliberately, in coordination with the backend.
|
|
8
9
|
*
|
|
9
10
|
* @internal
|
|
10
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessErrors.d.ts","sourceRoot":"","sources":["../../src/share/accessErrors.ts"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"accessErrors.d.ts","sourceRoot":"","sources":["../../src/share/accessErrors.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEjE"}
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
import { isUnexpectedResponseError } from "@gooddata/sdk-backend-spi";
|
|
3
3
|
/**
|
|
4
4
|
* Whether an access-list error means object-level permissions aren't available to
|
|
5
|
-
* the caller
|
|
6
|
-
* (or label)
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
5
|
+
* the caller. The permissions endpoint is manage-gated and denies a caller who can't
|
|
6
|
+
* manage the object (or label) with **403**; it answers **404** when the object is not
|
|
7
|
+
* visible to the caller at all. Both are definitive: the caller has nothing to act on.
|
|
8
|
+
* We match those two statuses and nothing else — a transient failure (5xx / network)
|
|
9
|
+
* may still resolve, so it must not be read as a permanent "no". If the backend ever
|
|
10
|
+
* signals this differently, widen here deliberately, in coordination with the backend.
|
|
10
11
|
*
|
|
11
12
|
* @internal
|
|
12
13
|
*/
|
|
13
14
|
export function isPermissionsNotAvailable(error) {
|
|
14
|
-
return isUnexpectedResponseError(error) && error.httpStatus === 404;
|
|
15
|
+
return isUnexpectedResponseError(error) && (error.httpStatus === 403 || error.httpStatus === 404);
|
|
15
16
|
}
|
|
@@ -49,7 +49,11 @@ export declare function sortGrantees(grantees: readonly IObjectShareGrantee[]):
|
|
|
49
49
|
*
|
|
50
50
|
* @internal
|
|
51
51
|
*/
|
|
52
|
-
export declare function sortShareableLabels
|
|
52
|
+
export declare function sortShareableLabels<T extends {
|
|
53
|
+
id: string;
|
|
54
|
+
title: string;
|
|
55
|
+
isPrimary?: boolean;
|
|
56
|
+
}>(labels: readonly T[]): T[];
|
|
53
57
|
/** Case-insensitive match of an assignee against the picker query (name, or email for users). */
|
|
54
58
|
export declare function assigneeMatchesQuery(assignee: IAvailableAccessGrantee, query: string): boolean;
|
|
55
59
|
/** The strongest permission level present, or undefined when none. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectShareController.helpers.d.ts","sourceRoot":"","sources":["../../src/share/objectShareController.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mBAAmB,EAExB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,KAAK,EACV,KAAK,MAAM,EAKd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EACR,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,0BAA0B,EAC7B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,6FAA6F;AAC7F,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAErE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM,CAElD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC7B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,KAAK,EAAE,MAAM,GAAG,SAAS,GAC1B,qBAAqB,CAKvB;AAED,kHAAkH;AAClH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAGvF;AAED,kHAAkH;AAClH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,uBAAuB,GAAG,qBAAqB,CAI9F;AAED,0FAA0F;AAC1F,wBAAgB,eAAe,CAC3B,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EAAE,MAAM,GACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAQlC;AAED,sGAAsG;AACtG,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAMjG;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,SAAS,mBAAmB,EAAE,GAAG,mBAAmB,EAAE,CAY5F;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"objectShareController.helpers.d.ts","sourceRoot":"","sources":["../../src/share/objectShareController.helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,mBAAmB,EAExB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,KAAK,EACV,KAAK,MAAM,EAKd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EACR,WAAW,EACX,qBAAq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AAED,sFAAsF;AACtF,eAAO,MAAM,SAAS,EAAE,iBAAiB,EAAO,CAAC;AAEjD,0DAA0D;AAC1D,eAAO,MAAM,SAAS,EAAE,WAAW,CAAC,MAAM,CAAqB,CAAC;AAEhE;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAC1B,IAAI,EAAE,iBAAiB,EACvB,EAAE,EAAE,MAAM,GACX;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAcrD"}
|
|
@@ -86,7 +86,7 @@ export function sortGrantees(grantees) {
|
|
|
86
86
|
*/
|
|
87
87
|
export function sortShareableLabels(labels) {
|
|
88
88
|
return labels.slice().sort((a, b) => {
|
|
89
|
-
if (a.isPrimary !== b.isPrimary) {
|
|
89
|
+
if (!!a.isPrimary !== !!b.isPrimary) {
|
|
90
90
|
return a.isPrimary ? -1 : 1;
|
|
91
91
|
}
|
|
92
92
|
const byTitle = a.title.localeCompare(b.title, undefined, { sensitivity: "base" });
|
|
@@ -102,9 +102,9 @@ export function useLabelScope(target, labels, hasList, committedGranteeIds, labe
|
|
|
102
102
|
setSelectedLabelIdsByGrantee({});
|
|
103
103
|
setDirectLabelIdsByGrantee({});
|
|
104
104
|
}
|
|
105
|
-
// Probe each label's access list to learn which are permissionable (some 404) and
|
|
105
|
+
// Probe each label's access list to learn which are permissionable (some 403/404) and
|
|
106
106
|
// which each grantee holds. `hasList` gates it: a list with no named grantees keeps
|
|
107
|
-
// `granteeIdsKey` empty, but the permissionable set (404 filtering) must still resolve.
|
|
107
|
+
// `granteeIdsKey` empty, but the permissionable set (403/404 filtering) must still resolve.
|
|
108
108
|
const { result: labelLists } = useCancelablePromise({
|
|
109
109
|
promise: target && labels.length > 0 && hasList
|
|
110
110
|
? () => Promise.all(labels.map((label) => backend
|
|
@@ -112,7 +112,7 @@ export function useLabelScope(target, labels, hasList, committedGranteeIds, labe
|
|
|
112
112
|
.objectPermissions()
|
|
113
113
|
.getAccessList({ kind: "label", ref: label.ref })
|
|
114
114
|
.then((list) => ({ label, list }))
|
|
115
|
-
// Only a definitive 404 means the label can't take a
|
|
115
|
+
// Only a definitive 403/404 means the label can't take a
|
|
116
116
|
// grant; a transient failure must NOT drop a real label.
|
|
117
117
|
.catch((error) => ({
|
|
118
118
|
label,
|
|
@@ -158,7 +158,7 @@ export function useLabelScope(target, labels, hasList, committedGranteeIds, labe
|
|
|
158
158
|
}
|
|
159
159
|
const permissionable = new Set();
|
|
160
160
|
for (const result of labelLists) {
|
|
161
|
-
// Keep transiently-failed labels permissionable; skip definitive 404s.
|
|
161
|
+
// Keep transiently-failed labels permissionable; skip definitive 403/404s.
|
|
162
162
|
if ("transient" in result) {
|
|
163
163
|
if (result.transient) {
|
|
164
164
|
permissionable.add(result.label.id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-ext",
|
|
3
|
-
"version": "11.57.0-alpha.
|
|
3
|
+
"version": "11.57.0-alpha.7",
|
|
4
4
|
"description": "GoodData.UI SDK - Extensions",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -63,20 +63,20 @@
|
|
|
63
63
|
"ts-invariant": "0.10.3",
|
|
64
64
|
"tslib": "2.8.1",
|
|
65
65
|
"uuid": "11.1.1",
|
|
66
|
-
"@gooddata/sdk-backend-base": "11.57.0-alpha.
|
|
67
|
-
"@gooddata/sdk-backend-spi": "11.57.0-alpha.
|
|
68
|
-
"@gooddata/sdk-
|
|
69
|
-
"@gooddata/sdk-
|
|
70
|
-
"@gooddata/sdk-ui": "11.57.0-alpha.
|
|
71
|
-
"@gooddata/sdk-ui-charts": "11.57.0-alpha.
|
|
72
|
-
"@gooddata/sdk-ui-filters": "11.57.0-alpha.
|
|
73
|
-
"@gooddata/sdk-ui-
|
|
74
|
-
"@gooddata/sdk-ui-
|
|
75
|
-
"@gooddata/sdk-ui-
|
|
76
|
-
"@gooddata/sdk-ui-
|
|
77
|
-
"@gooddata/sdk-ui-
|
|
78
|
-
"@gooddata/sdk-ui-
|
|
79
|
-
"@gooddata/util": "11.57.0-alpha.
|
|
66
|
+
"@gooddata/sdk-backend-base": "11.57.0-alpha.7",
|
|
67
|
+
"@gooddata/sdk-backend-spi": "11.57.0-alpha.7",
|
|
68
|
+
"@gooddata/sdk-model": "11.57.0-alpha.7",
|
|
69
|
+
"@gooddata/sdk-embedding": "11.57.0-alpha.7",
|
|
70
|
+
"@gooddata/sdk-ui": "11.57.0-alpha.7",
|
|
71
|
+
"@gooddata/sdk-ui-charts": "11.57.0-alpha.7",
|
|
72
|
+
"@gooddata/sdk-ui-filters": "11.57.0-alpha.7",
|
|
73
|
+
"@gooddata/sdk-ui-kit": "11.57.0-alpha.7",
|
|
74
|
+
"@gooddata/sdk-ui-geo": "11.57.0-alpha.7",
|
|
75
|
+
"@gooddata/sdk-ui-semantic-search": "11.57.0-alpha.7",
|
|
76
|
+
"@gooddata/sdk-ui-pivot": "11.57.0-alpha.7",
|
|
77
|
+
"@gooddata/sdk-ui-vis-commons": "11.57.0-alpha.7",
|
|
78
|
+
"@gooddata/sdk-ui-theme-provider": "11.57.0-alpha.7",
|
|
79
|
+
"@gooddata/util": "11.57.0-alpha.7"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@microsoft/api-documenter": "7.30.10",
|
|
@@ -107,25 +107,25 @@
|
|
|
107
107
|
"full-icu": "1.6.0",
|
|
108
108
|
"happy-dom": "20.12.0",
|
|
109
109
|
"npm-run-all": "4.1.5",
|
|
110
|
-
"oxfmt": "0.
|
|
111
|
-
"oxlint": "1.
|
|
110
|
+
"oxfmt": "0.68.0",
|
|
111
|
+
"oxlint": "1.83.0",
|
|
112
112
|
"oxlint-plugin-eslint": "1.82.0",
|
|
113
113
|
"oxlint-tsgolint": "7.0.2001",
|
|
114
114
|
"raf": "3.4.1",
|
|
115
115
|
"react": "19.1.1",
|
|
116
116
|
"react-dom": "19.1.1",
|
|
117
|
-
"sass": "1.104.
|
|
117
|
+
"sass": "1.104.1",
|
|
118
118
|
"stylelint": "16.26.1",
|
|
119
119
|
"svgo": "2.8.3",
|
|
120
120
|
"typescript": "7.0.2",
|
|
121
121
|
"vitest": "4.1.8",
|
|
122
122
|
"vitest-dom": "0.1.1",
|
|
123
|
-
"@gooddata/
|
|
124
|
-
"@gooddata/
|
|
125
|
-
"@gooddata/oxlint-config": "11.57.0-alpha.
|
|
126
|
-
"@gooddata/reference-workspace": "11.57.0-alpha.
|
|
127
|
-
"@gooddata/sdk-backend-mockingbird": "11.57.0-alpha.
|
|
128
|
-
"@gooddata/stylelint-config": "11.57.0-alpha.
|
|
123
|
+
"@gooddata/i18n-toolkit": "11.57.0-alpha.7",
|
|
124
|
+
"@gooddata/eslint-config": "11.57.0-alpha.7",
|
|
125
|
+
"@gooddata/oxlint-config": "11.57.0-alpha.7",
|
|
126
|
+
"@gooddata/reference-workspace": "11.57.0-alpha.7",
|
|
127
|
+
"@gooddata/sdk-backend-mockingbird": "11.57.0-alpha.7",
|
|
128
|
+
"@gooddata/stylelint-config": "11.57.0-alpha.7"
|
|
129
129
|
},
|
|
130
130
|
"peerDependencies": {
|
|
131
131
|
"react": "^18.0.0 || ^19.0.0",
|