@backstage/plugin-catalog-react 0.0.0-nightly-20220910025940 → 0.0.0-nightly-20220913030138
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/CHANGELOG.md +11 -10
- package/alpha/package.json +1 -1
- package/dist/index.alpha.d.ts +6 -1
- package/dist/index.beta.d.ts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.esm.js +8 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20220913030138
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- 817f3196f6: Updated React Router dependencies to be peer dependencies.
|
|
8
|
+
- f6033d1121: humanizeEntityRef function can now be forced to include default namespace
|
|
8
9
|
- c86741a052: Support showing counts in option labels of the `EntityTagPicker`. You can enable this by adding the `showCounts` property
|
|
9
10
|
- 7d47def9c4: Removed dependency on `@types/jest`.
|
|
10
11
|
- a6d551fad9: Properly handle free-text entity filtering in the case of empty tag arrays
|
|
11
12
|
- ef9ab322de: Minor API signatures cleanup
|
|
12
13
|
- Updated dependencies
|
|
13
|
-
- @backstage/core-components@0.0.0-nightly-
|
|
14
|
-
- @backstage/core-plugin-api@0.0.0-nightly-
|
|
15
|
-
- @backstage/plugin-permission-react@0.0.0-nightly-
|
|
16
|
-
- @backstage/integration@0.0.0-nightly-
|
|
17
|
-
- @backstage/catalog-client@0.0.0-nightly-
|
|
18
|
-
- @backstage/catalog-model@0.0.0-nightly-
|
|
19
|
-
- @backstage/errors@0.0.0-nightly-
|
|
20
|
-
- @backstage/plugin-permission-common@0.0.0-nightly-
|
|
21
|
-
- @backstage/plugin-catalog-common@0.0.0-nightly-
|
|
14
|
+
- @backstage/core-components@0.0.0-nightly-20220913030138
|
|
15
|
+
- @backstage/core-plugin-api@0.0.0-nightly-20220913030138
|
|
16
|
+
- @backstage/plugin-permission-react@0.0.0-nightly-20220913030138
|
|
17
|
+
- @backstage/integration@0.0.0-nightly-20220913030138
|
|
18
|
+
- @backstage/catalog-client@0.0.0-nightly-20220913030138
|
|
19
|
+
- @backstage/catalog-model@0.0.0-nightly-20220913030138
|
|
20
|
+
- @backstage/errors@0.0.0-nightly-20220913030138
|
|
21
|
+
- @backstage/plugin-permission-common@0.0.0-nightly-20220913030138
|
|
22
|
+
- @backstage/plugin-catalog-common@0.0.0-nightly-20220913030138
|
|
22
23
|
|
|
23
24
|
## 1.1.4-next.1
|
|
24
25
|
|
package/alpha/package.json
CHANGED
package/dist/index.alpha.d.ts
CHANGED
|
@@ -498,9 +498,14 @@ export declare function getEntityRelations(entity: Entity | undefined, relationT
|
|
|
498
498
|
/** @public */
|
|
499
499
|
export declare function getEntitySourceLocation(entity: Entity, scmIntegrationsApi: ScmIntegrationRegistry): EntitySourceLocation | undefined;
|
|
500
500
|
|
|
501
|
-
/**
|
|
501
|
+
/**
|
|
502
|
+
* @param defaultNamespace - if set to false then namespace is never omitted,
|
|
503
|
+
* if set to string which matches namespace of entity then omitted
|
|
504
|
+
*
|
|
505
|
+
* @public */
|
|
502
506
|
export declare function humanizeEntityRef(entityRef: Entity | CompoundEntityRef, opts?: {
|
|
503
507
|
defaultKind?: string;
|
|
508
|
+
defaultNamespace?: string | false;
|
|
504
509
|
}): string;
|
|
505
510
|
|
|
506
511
|
/**
|
package/dist/index.beta.d.ts
CHANGED
|
@@ -498,9 +498,14 @@ export declare function getEntityRelations(entity: Entity | undefined, relationT
|
|
|
498
498
|
/** @public */
|
|
499
499
|
export declare function getEntitySourceLocation(entity: Entity, scmIntegrationsApi: ScmIntegrationRegistry): EntitySourceLocation | undefined;
|
|
500
500
|
|
|
501
|
-
/**
|
|
501
|
+
/**
|
|
502
|
+
* @param defaultNamespace - if set to false then namespace is never omitted,
|
|
503
|
+
* if set to string which matches namespace of entity then omitted
|
|
504
|
+
*
|
|
505
|
+
* @public */
|
|
502
506
|
export declare function humanizeEntityRef(entityRef: Entity | CompoundEntityRef, opts?: {
|
|
503
507
|
defaultKind?: string;
|
|
508
|
+
defaultNamespace?: string | false;
|
|
504
509
|
}): string;
|
|
505
510
|
|
|
506
511
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -498,9 +498,14 @@ export declare function getEntityRelations(entity: Entity | undefined, relationT
|
|
|
498
498
|
/** @public */
|
|
499
499
|
export declare function getEntitySourceLocation(entity: Entity, scmIntegrationsApi: ScmIntegrationRegistry): EntitySourceLocation | undefined;
|
|
500
500
|
|
|
501
|
-
/**
|
|
501
|
+
/**
|
|
502
|
+
* @param defaultNamespace - if set to false then namespace is never omitted,
|
|
503
|
+
* if set to string which matches namespace of entity then omitted
|
|
504
|
+
*
|
|
505
|
+
* @public */
|
|
502
506
|
export declare function humanizeEntityRef(entityRef: Entity | CompoundEntityRef, opts?: {
|
|
503
507
|
defaultKind?: string;
|
|
508
|
+
defaultNamespace?: string | false;
|
|
504
509
|
}): string;
|
|
505
510
|
|
|
506
511
|
/**
|
package/dist/index.esm.js
CHANGED
|
@@ -371,7 +371,14 @@ function humanizeEntityRef(entityRef, opts) {
|
|
|
371
371
|
namespace = entityRef.namespace;
|
|
372
372
|
name = entityRef.name;
|
|
373
373
|
}
|
|
374
|
-
if (namespace ===
|
|
374
|
+
if (namespace === void 0 || namespace === "") {
|
|
375
|
+
namespace = DEFAULT_NAMESPACE;
|
|
376
|
+
}
|
|
377
|
+
if ((opts == null ? void 0 : opts.defaultNamespace) !== void 0) {
|
|
378
|
+
if ((opts == null ? void 0 : opts.defaultNamespace) === namespace) {
|
|
379
|
+
namespace = void 0;
|
|
380
|
+
}
|
|
381
|
+
} else if (namespace === DEFAULT_NAMESPACE) {
|
|
375
382
|
namespace = void 0;
|
|
376
383
|
}
|
|
377
384
|
kind = kind.toLocaleLowerCase("en-US");
|