@gooddata/sdk-ui-catalog 11.43.0 → 11.44.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogItemAccessRow.d.ts","sourceRoot":"","sources":["../../../src/catalogDetail/share/CatalogItemAccessRow.tsx"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"CatalogItemAccessRow.d.ts","sourceRoot":"","sources":["../../../src/catalogDetail/share/CatalogItemAccessRow.tsx"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,mDAqBnC"}
|
|
@@ -23,7 +23,8 @@ export function CatalogItemAccessRow() {
|
|
|
23
23
|
if (summary) {
|
|
24
24
|
return _jsx(CatalogDetailAccessRow, { summary: summary, onOpen: open });
|
|
25
25
|
}
|
|
26
|
-
// Summary not available yet
|
|
27
|
-
//
|
|
26
|
+
// Summary not available yet — still loading. A definitive not-permissionable
|
|
27
|
+
// load failure makes the provider inactive (the row is gone via the guard
|
|
28
|
+
// above), so this placeholder only covers the genuine loading window.
|
|
28
29
|
return (_jsx(CatalogDetailContentRow, { title: _jsx(FormattedMessage, { id: "analyticsCatalog.share.access.row.label" }), content: _jsx(UiSkeleton, { itemWidth: 200, itemHeight: 20 }) }));
|
|
29
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogItemShareProvider.d.ts","sourceRoot":"","sources":["../../../src/catalogDetail/share/CatalogItemShareProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA6D,MAAM,OAAO,CAAC;AAElG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,KAAK,sBAAsB,EAAkB,MAAM,sBAAsB,CAAC;AAEnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;;;GAKG;AACH,UAAU,sBAAsB;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAC/C,MAAM,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,MAAM,EAAE,OAAO,CAAC;IAChB,0EAA0E;IAC1E,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,UAAU,wBAAwB;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB;AAiBD;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C,+FAA+F;IAC/F,aAAa,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAChD,sDAAsD;IACtD,MAAM,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAC7C,mFAAmF;IACnF,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,aAAa,EACb,MAAM,EACN,MAAM,EACN,QAAQ,EACX,EAAE,8BAA8B,
|
|
1
|
+
{"version":3,"file":"CatalogItemShareProvider.d.ts","sourceRoot":"","sources":["../../../src/catalogDetail/share/CatalogItemShareProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAA6D,MAAM,OAAO,CAAC;AAElG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,KAAK,sBAAsB,EAAkB,MAAM,sBAAsB,CAAC;AAEnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;;;GAKG;AACH,UAAU,sBAAsB;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAC/C,MAAM,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,MAAM,EAAE,OAAO,CAAC;IAChB,0EAA0E;IAC1E,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,UAAU,wBAAwB;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACrB;AAiBD;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C,+FAA+F;IAC/F,aAAa,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAChD,sDAAsD;IACtD,MAAM,EAAE,wBAAwB,GAAG,SAAS,CAAC;IAC7C,mFAAmF;IACnF,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,EACrC,aAAa,EACb,MAAM,EACN,MAAM,EACN,QAAQ,EACX,EAAE,8BAA8B,2CA4DhC;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,IAAI,sBAAsB,CAEjE;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,IAAI,wBAAwB,CAErE"}
|
|
@@ -50,7 +50,15 @@ export function CatalogItemShareProvider({ shareableItem, target, labels, childr
|
|
|
50
50
|
setIsOpen(true);
|
|
51
51
|
}, [targetKey]);
|
|
52
52
|
const close = useCallback(() => setIsOpen(false), []);
|
|
53
|
-
|
|
53
|
+
// Sharing is offered only while the access list is reachable. The permissions
|
|
54
|
+
// endpoint is manage-gated, so a user who can only view/analyze the object gets
|
|
55
|
+
// a 404 (surfaced as `accessUnavailable`); we then hide both the Share button and
|
|
56
|
+
// the inline access row — there is nothing they can act on, and the row would
|
|
57
|
+
// otherwise load forever. A transient load error does not set the flag, so a flaky
|
|
58
|
+
// fetch doesn't strip the UI. The access list loads optimistically, so the row and
|
|
59
|
+
// button show until the 404 lands, then disappear.
|
|
60
|
+
const active = Boolean(shareableItem) && !controller.state.accessUnavailable;
|
|
61
|
+
const state = useMemo(() => active && shareableItem
|
|
54
62
|
? {
|
|
55
63
|
active: true,
|
|
56
64
|
controller,
|
|
@@ -59,8 +67,8 @@ export function CatalogItemShareProvider({ shareableItem, target, labels, childr
|
|
|
59
67
|
isOpen,
|
|
60
68
|
labelsLoading: labels.loading,
|
|
61
69
|
}
|
|
62
|
-
: INACTIVE_STATE, [shareableItem, controller, target, isOpen, labels.loading]);
|
|
63
|
-
const actions = useMemo(() => (
|
|
70
|
+
: INACTIVE_STATE, [active, shareableItem, controller, target, isOpen, labels.loading]);
|
|
71
|
+
const actions = useMemo(() => (active ? { active: true, open, close } : INACTIVE_ACTIONS), [active, open, close]);
|
|
64
72
|
return (_jsx(ShareActionsContext.Provider, { value: actions, children: _jsx(ShareStateContext.Provider, { value: state, children: children }) }));
|
|
65
73
|
}
|
|
66
74
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-catalog",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.44.0-alpha.1",
|
|
4
4
|
"description": "GoodData SDK - Analytics Catalog",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"tslib": "2.8.1",
|
|
46
46
|
"yaml": "2.8.3",
|
|
47
47
|
"zod": "4.3.6",
|
|
48
|
-
"@gooddata/sdk-
|
|
49
|
-
"@gooddata/sdk-
|
|
50
|
-
"@gooddata/sdk-ui
|
|
51
|
-
"@gooddata/sdk-ui-
|
|
52
|
-
"@gooddata/sdk-
|
|
53
|
-
"@gooddata/sdk-ui-semantic-search": "11.
|
|
54
|
-
"@gooddata/sdk-ui-theme-provider": "11.
|
|
55
|
-
"@gooddata/util": "11.
|
|
48
|
+
"@gooddata/sdk-backend-spi": "11.44.0-alpha.1",
|
|
49
|
+
"@gooddata/sdk-model": "11.44.0-alpha.1",
|
|
50
|
+
"@gooddata/sdk-ui": "11.44.0-alpha.1",
|
|
51
|
+
"@gooddata/sdk-ui-ext": "11.44.0-alpha.1",
|
|
52
|
+
"@gooddata/sdk-ui-kit": "11.44.0-alpha.1",
|
|
53
|
+
"@gooddata/sdk-ui-semantic-search": "11.44.0-alpha.1",
|
|
54
|
+
"@gooddata/sdk-ui-theme-provider": "11.44.0-alpha.1",
|
|
55
|
+
"@gooddata/util": "11.44.0-alpha.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@microsoft/api-documenter": "^7.17.0",
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
"typescript": "5.9.3",
|
|
93
93
|
"vitest": "4.1.8",
|
|
94
94
|
"vitest-dom": "0.1.1",
|
|
95
|
-
"@gooddata/eslint-config": "11.
|
|
96
|
-
"@gooddata/
|
|
97
|
-
"@gooddata/
|
|
98
|
-
"@gooddata/
|
|
99
|
-
"@gooddata/
|
|
95
|
+
"@gooddata/eslint-config": "11.44.0-alpha.1",
|
|
96
|
+
"@gooddata/oxlint-config": "11.44.0-alpha.1",
|
|
97
|
+
"@gooddata/i18n-toolkit": "11.44.0-alpha.1",
|
|
98
|
+
"@gooddata/sdk-backend-mockingbird": "11.44.0-alpha.1",
|
|
99
|
+
"@gooddata/stylelint-config": "11.44.0-alpha.1"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"react": "^18.0.0 || ^19.0.0",
|