@gooddata/sdk-ui-catalog 11.60.0-alpha.0 → 11.60.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.
- package/esm/computedAttribute/computedAttributeDescriptor.d.ts.map +1 -1
- package/esm/computedAttribute/computedAttributeDescriptor.js +2 -1
- package/esm/computedAttribute/gate.d.ts +2 -0
- package/esm/computedAttribute/gate.d.ts.map +1 -1
- package/esm/computedAttribute/gate.js +5 -0
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computedAttributeDescriptor.d.ts","sourceRoot":"","sources":["../../src/computedAttribute/computedAttributeDescriptor.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,qBAAqB,CAAC;AAQtF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAwF7E;;GAEG;AACH,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"computedAttributeDescriptor.d.ts","sourceRoot":"","sources":["../../src/computedAttribute/computedAttributeDescriptor.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0CAA0C,EAAE,MAAM,qBAAqB,CAAC;AAQtF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAwF7E;;GAEG;AACH,eAAO,MAAM,2BAA2B,gIAoCtC,CAAC"}
|
|
@@ -9,7 +9,7 @@ import { createCopiedComputedAttribute } from "./computedAttributeCopy.js";
|
|
|
9
9
|
import { createComputedAttributeMutationAdapter, listComputedAttributeReferences, loadComputedAttribute, } from "./computedAttributeMutationPort.js";
|
|
10
10
|
import { serializeComputedAttributeToYaml } from "./computedAttributeSerialization.js";
|
|
11
11
|
import { validateComputedAttributeYaml } from "./computedAttributeValidation.js";
|
|
12
|
-
import { COMPUTED_ATTRIBUTE_FEATURE_FLAG } from "./gate.js";
|
|
12
|
+
import { COMPUTED_ATTRIBUTE_FEATURE_FLAG, useCanCreateComputedAttribute } from "./gate.js";
|
|
13
13
|
const COMPUTED_ATTRIBUTE_DOCS_URL = "https://www.gooddata.ai/docs/cloud/create-metrics/computed-attributes/#yaml-definition";
|
|
14
14
|
const messages = defineMessages({
|
|
15
15
|
createTitle: { id: "analyticsCatalog.computedAttribute.dialog.create.title" },
|
|
@@ -77,6 +77,7 @@ export const computedAttributeDescriptor = defineAsCodeDescriptor({
|
|
|
77
77
|
objectType: ObjectTypes.COMPUTED_ATTRIBUTE,
|
|
78
78
|
docsUrl: COMPUTED_ATTRIBUTE_DOCS_URL,
|
|
79
79
|
featureFlag: COMPUTED_ATTRIBUTE_FEATURE_FLAG,
|
|
80
|
+
useCreateGate: useCanCreateComputedAttribute,
|
|
80
81
|
messages,
|
|
81
82
|
useEditing: useComputedAttributeEditing,
|
|
82
83
|
createMutationPort: createComputedAttributeMutationAdapter,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/** The flag gating catalog computed attributes, referenced by
|
|
2
2
|
* `computedAttributeDescriptor.featureFlag` and `useCatalogEndpoints` `gatedBy`. */
|
|
3
3
|
export declare const COMPUTED_ATTRIBUTE_FEATURE_FLAG = "enableComputedAttributes";
|
|
4
|
+
/** Whether the user may create computed attributes in this workspace. False until the permissions load. */
|
|
5
|
+
export declare function useCanCreateComputedAttribute(): boolean;
|
|
4
6
|
//# sourceMappingURL=gate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gate.d.ts","sourceRoot":"","sources":["../../src/computedAttribute/gate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gate.d.ts","sourceRoot":"","sources":["../../src/computedAttribute/gate.ts"],"names":[],"mappings":"AAIA;qFACqF;AACrF,eAAO,MAAM,+BAA+B,6BAA6B,CAAC;AAE1E,2GAA2G;AAC3G,wBAAgB,6BAA6B,IAAI,OAAO,CAEvD"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
|
+
import { useWorkspacePermission } from "../permission/PermissionsContext.js";
|
|
2
3
|
/** The flag gating catalog computed attributes, referenced by
|
|
3
4
|
* `computedAttributeDescriptor.featureFlag` and `useCatalogEndpoints` `gatedBy`. */
|
|
4
5
|
export const COMPUTED_ATTRIBUTE_FEATURE_FLAG = "enableComputedAttributes";
|
|
6
|
+
/** Whether the user may create computed attributes in this workspace. False until the permissions load. */
|
|
7
|
+
export function useCanCreateComputedAttribute() {
|
|
8
|
+
return useWorkspacePermission("canCreateComputedAttribute");
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-catalog",
|
|
3
|
-
"version": "11.60.0-alpha.
|
|
3
|
+
"version": "11.60.0-alpha.2",
|
|
4
4
|
"description": "GoodData SDK - Analytics Catalog",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"tslib": "2.8.1",
|
|
41
41
|
"yaml": "2.8.3",
|
|
42
42
|
"zod": "4.3.6",
|
|
43
|
-
"@gooddata/sdk-backend-spi": "11.60.0-alpha.
|
|
44
|
-
"@gooddata/sdk-code-schemas": "11.60.0-alpha.
|
|
45
|
-
"@gooddata/sdk-model": "11.60.0-alpha.
|
|
46
|
-
"@gooddata/sdk-ui": "11.60.0-alpha.
|
|
47
|
-
"@gooddata/sdk-ui-ext": "11.60.0-alpha.
|
|
48
|
-
"@gooddata/sdk-ui-kit": "11.60.0-alpha.
|
|
49
|
-
"@gooddata/sdk-ui-
|
|
50
|
-
"@gooddata/sdk-ui-
|
|
51
|
-
"@gooddata/util": "11.60.0-alpha.
|
|
43
|
+
"@gooddata/sdk-backend-spi": "11.60.0-alpha.2",
|
|
44
|
+
"@gooddata/sdk-code-schemas": "11.60.0-alpha.2",
|
|
45
|
+
"@gooddata/sdk-model": "11.60.0-alpha.2",
|
|
46
|
+
"@gooddata/sdk-ui": "11.60.0-alpha.2",
|
|
47
|
+
"@gooddata/sdk-ui-ext": "11.60.0-alpha.2",
|
|
48
|
+
"@gooddata/sdk-ui-kit": "11.60.0-alpha.2",
|
|
49
|
+
"@gooddata/sdk-ui-semantic-search": "11.60.0-alpha.2",
|
|
50
|
+
"@gooddata/sdk-ui-theme-provider": "11.60.0-alpha.2",
|
|
51
|
+
"@gooddata/util": "11.60.0-alpha.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@microsoft/api-documenter": "7.30.16",
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
"typescript": "7.0.2",
|
|
85
85
|
"vitest": "4.1.11",
|
|
86
86
|
"vitest-dom": "0.1.1",
|
|
87
|
-
"@gooddata/eslint-config": "11.60.0-alpha.
|
|
88
|
-
"@gooddata/i18n-toolkit": "11.60.0-alpha.
|
|
89
|
-
"@gooddata/oxlint-config": "11.60.0-alpha.
|
|
90
|
-
"@gooddata/sdk-backend-mockingbird": "11.60.0-alpha.
|
|
91
|
-
"@gooddata/stylelint-config": "11.60.0-alpha.
|
|
87
|
+
"@gooddata/eslint-config": "11.60.0-alpha.2",
|
|
88
|
+
"@gooddata/i18n-toolkit": "11.60.0-alpha.2",
|
|
89
|
+
"@gooddata/oxlint-config": "11.60.0-alpha.2",
|
|
90
|
+
"@gooddata/sdk-backend-mockingbird": "11.60.0-alpha.2",
|
|
91
|
+
"@gooddata/stylelint-config": "11.60.0-alpha.2"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"react": "^18.0.0 || ^19.0.0",
|