@backstage-community/plugin-linguist-common 0.21.0 → 0.23.0

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @backstage-community/plugin-linguist-common
2
2
 
3
+ ## 0.23.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0deb115: Added Actions Registry actions (`get-entity-languages`, `process-entities`) with permission-gated access via new `linguist.entities.read` and `linguist.entities.process` permissions.
8
+
9
+ ## 0.22.0
10
+
11
+ ### Minor Changes
12
+
13
+ - bd381be: Backstage version bump to v1.53.0
14
+
3
15
  ## 0.21.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.cjs.js CHANGED
@@ -1,8 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var constants = require('./constants.cjs.js');
4
+ var permissions = require('./permissions.cjs.js');
4
5
 
5
6
 
6
7
 
7
8
  exports.LINGUIST_ANNOTATION = constants.LINGUIST_ANNOTATION;
9
+ exports.linguistPermissions = permissions.linguistPermissions;
10
+ exports.linguistProcessPermission = permissions.linguistProcessPermission;
11
+ exports.linguistReadPermission = permissions.linguistReadPermission;
8
12
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import * as _backstage_plugin_permission_common from '@backstage/plugin-permission-common';
2
+
1
3
  /** @public */
2
4
  type EntityResults = {
3
5
  entityRef: string;
@@ -37,4 +39,20 @@ type EntitiesOverview = {
37
39
  /** @public */
38
40
  declare const LINGUIST_ANNOTATION = "backstage.io/linguist";
39
41
 
40
- export { type EntitiesOverview, type EntityResults, LINGUIST_ANNOTATION, type Language, type LanguageType, type Languages, type ProcessedEntity };
42
+ /**
43
+ * Permission to read entity language breakdowns.
44
+ * @public
45
+ */
46
+ declare const linguistReadPermission: _backstage_plugin_permission_common.BasicPermission;
47
+ /**
48
+ * Permission to trigger entity processing.
49
+ * @public
50
+ */
51
+ declare const linguistProcessPermission: _backstage_plugin_permission_common.BasicPermission;
52
+ /**
53
+ * List of all Linguist permissions.
54
+ * @public
55
+ */
56
+ declare const linguistPermissions: _backstage_plugin_permission_common.BasicPermission[];
57
+
58
+ export { type EntitiesOverview, type EntityResults, LINGUIST_ANNOTATION, type Language, type LanguageType, type Languages, type ProcessedEntity, linguistPermissions, linguistProcessPermission, linguistReadPermission };
package/dist/index.esm.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export { LINGUIST_ANNOTATION } from './constants.esm.js';
2
+ export { linguistPermissions, linguistProcessPermission, linguistReadPermission } from './permissions.esm.js';
2
3
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ var pluginPermissionCommon = require('@backstage/plugin-permission-common');
4
+
5
+ const linguistReadPermission = pluginPermissionCommon.createPermission({
6
+ name: "linguist.entities.read",
7
+ attributes: {
8
+ action: "read"
9
+ }
10
+ });
11
+ const linguistProcessPermission = pluginPermissionCommon.createPermission({
12
+ name: "linguist.entities.process",
13
+ attributes: {
14
+ action: "update"
15
+ }
16
+ });
17
+ const linguistPermissions = [
18
+ linguistReadPermission,
19
+ linguistProcessPermission
20
+ ];
21
+
22
+ exports.linguistPermissions = linguistPermissions;
23
+ exports.linguistProcessPermission = linguistProcessPermission;
24
+ exports.linguistReadPermission = linguistReadPermission;
25
+ //# sourceMappingURL=permissions.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissions.cjs.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2026 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createPermission } from '@backstage/plugin-permission-common';\n\n/**\n * Permission to read entity language breakdowns.\n * @public\n */\nexport const linguistReadPermission = createPermission({\n name: 'linguist.entities.read',\n attributes: {\n action: 'read',\n },\n});\n\n/**\n * Permission to trigger entity processing.\n * @public\n */\nexport const linguistProcessPermission = createPermission({\n name: 'linguist.entities.process',\n attributes: {\n action: 'update',\n },\n});\n\n/**\n * List of all Linguist permissions.\n * @public\n */\nexport const linguistPermissions = [\n linguistReadPermission,\n linguistProcessPermission,\n];\n"],"names":["createPermission"],"mappings":";;;;AAqBO,MAAM,yBAAyBA,uCAAA,CAAiB;AAAA,EACrD,IAAA,EAAM,wBAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAMM,MAAM,4BAA4BA,uCAAA,CAAiB;AAAA,EACxD,IAAA,EAAM,2BAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAMM,MAAM,mBAAA,GAAsB;AAAA,EACjC,sBAAA;AAAA,EACA;AACF;;;;;;"}
@@ -0,0 +1,21 @@
1
+ import { createPermission } from '@backstage/plugin-permission-common';
2
+
3
+ const linguistReadPermission = createPermission({
4
+ name: "linguist.entities.read",
5
+ attributes: {
6
+ action: "read"
7
+ }
8
+ });
9
+ const linguistProcessPermission = createPermission({
10
+ name: "linguist.entities.process",
11
+ attributes: {
12
+ action: "update"
13
+ }
14
+ });
15
+ const linguistPermissions = [
16
+ linguistReadPermission,
17
+ linguistProcessPermission
18
+ ];
19
+
20
+ export { linguistPermissions, linguistProcessPermission, linguistReadPermission };
21
+ //# sourceMappingURL=permissions.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissions.esm.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2026 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createPermission } from '@backstage/plugin-permission-common';\n\n/**\n * Permission to read entity language breakdowns.\n * @public\n */\nexport const linguistReadPermission = createPermission({\n name: 'linguist.entities.read',\n attributes: {\n action: 'read',\n },\n});\n\n/**\n * Permission to trigger entity processing.\n * @public\n */\nexport const linguistProcessPermission = createPermission({\n name: 'linguist.entities.process',\n attributes: {\n action: 'update',\n },\n});\n\n/**\n * List of all Linguist permissions.\n * @public\n */\nexport const linguistPermissions = [\n linguistReadPermission,\n linguistProcessPermission,\n];\n"],"names":[],"mappings":";;AAqBO,MAAM,yBAAyB,gBAAA,CAAiB;AAAA,EACrD,IAAA,EAAM,wBAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAMM,MAAM,4BAA4B,gBAAA,CAAiB;AAAA,EACxD,IAAA,EAAM,2BAAA;AAAA,EACN,UAAA,EAAY;AAAA,IACV,MAAA,EAAQ;AAAA;AAEZ,CAAC;AAMM,MAAM,mBAAA,GAAsB;AAAA,EACjC,sBAAA;AAAA,EACA;AACF;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-linguist-common",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "description": "Common functionalities for the linguist plugin",
5
5
  "backstage": {
6
6
  "role": "common-library",
@@ -38,8 +38,11 @@
38
38
  "postpack": "backstage-cli package postpack",
39
39
  "test": "backstage-cli package test"
40
40
  },
41
+ "dependencies": {
42
+ "@backstage/plugin-permission-common": "^0.9.9"
43
+ },
41
44
  "devDependencies": {
42
- "@backstage/cli": "^0.36.3"
45
+ "@backstage/cli": "^0.36.4"
43
46
  },
44
47
  "typesVersions": {
45
48
  "*": {