@drodil/backstage-plugin-qeta-common 1.24.2 → 1.24.4
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/dist/index.cjs.js +1 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var pluginPermissionCommon = require('@backstage/plugin-permission-common');
|
|
6
4
|
|
|
7
5
|
const qetaReadPermission = pluginPermissionCommon.createPermission({
|
|
@@ -22,7 +20,7 @@ const qetaPermissions = [
|
|
|
22
20
|
qetaCreateAnswerPermission
|
|
23
21
|
];
|
|
24
22
|
|
|
25
|
-
const TAGS_REGEX = new RegExp("^[a-z0-9+#]+(
|
|
23
|
+
const TAGS_REGEX = new RegExp("^[a-z0-9+#]+((\\-|_)[a-z0-9+#_]+)*$");
|
|
26
24
|
const filterTags = (input) => {
|
|
27
25
|
if (!input) {
|
|
28
26
|
return void 0;
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../src/permissions.ts","../src/tags.ts"],"sourcesContent":["import { createPermission } from '@backstage/plugin-permission-common';\n\nexport const qetaReadPermission = createPermission({\n name: 'qeta.read',\n attributes: { action: 'create' },\n});\n\nexport const qetaCreateQuestionPermission = createPermission({\n name: 'qeta.create.question',\n attributes: { action: 'create' },\n});\n\nexport const qetaCreateAnswerPermission = createPermission({\n name: 'qeta.create.answer',\n attributes: { action: 'create' },\n});\n\nexport const qetaPermissions = [\n qetaReadPermission,\n qetaCreateQuestionPermission,\n qetaCreateAnswerPermission,\n];\n","export const TAGS_REGEX = new RegExp('^[a-z0-9+#]+(
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/permissions.ts","../src/tags.ts"],"sourcesContent":["import { createPermission } from '@backstage/plugin-permission-common';\n\nexport const qetaReadPermission = createPermission({\n name: 'qeta.read',\n attributes: { action: 'create' },\n});\n\nexport const qetaCreateQuestionPermission = createPermission({\n name: 'qeta.create.question',\n attributes: { action: 'create' },\n});\n\nexport const qetaCreateAnswerPermission = createPermission({\n name: 'qeta.create.answer',\n attributes: { action: 'create' },\n});\n\nexport const qetaPermissions = [\n qetaReadPermission,\n qetaCreateQuestionPermission,\n qetaCreateAnswerPermission,\n];\n","export const TAGS_REGEX = new RegExp('^[a-z0-9+#]+((\\\\-|_)[a-z0-9+#_]+)*$');\n\nexport const filterTags = (input?: null | string | string[]) => {\n if (!input) {\n return undefined;\n }\n return (Array.isArray(input) ? input : input.split(',')).filter(\n v => v.length > 0 && v.length < 255 && TAGS_REGEX.test(v),\n );\n};\n"],"names":["createPermission"],"mappings":";;;;AAEO,MAAM,qBAAqBA,uCAAiB,CAAA;AAAA,EACjD,IAAM,EAAA,WAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAS,EAAA;AACjC,CAAC,EAAA;AAEM,MAAM,+BAA+BA,uCAAiB,CAAA;AAAA,EAC3D,IAAM,EAAA,sBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAS,EAAA;AACjC,CAAC,EAAA;AAEM,MAAM,6BAA6BA,uCAAiB,CAAA;AAAA,EACzD,IAAM,EAAA,oBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAS,EAAA;AACjC,CAAC,EAAA;AAEM,MAAM,eAAkB,GAAA;AAAA,EAC7B,kBAAA;AAAA,EACA,4BAAA;AAAA,EACA,0BAAA;AACF;;ACrBa,MAAA,UAAA,GAAa,IAAI,MAAA,CAAO,qCAAqC,EAAA;AAE7D,MAAA,UAAA,GAAa,CAAC,KAAqC,KAAA;AAC9D,EAAA,IAAI,CAAC,KAAO,EAAA;AACV,IAAO,OAAA,KAAA,CAAA,CAAA;AAAA,GACT;AACA,EAAQ,OAAA,CAAA,KAAA,CAAM,QAAQ,KAAK,CAAA,GAAI,QAAQ,KAAM,CAAA,KAAA,CAAM,GAAG,CAAG,EAAA,MAAA;AAAA,IACvD,CAAA,CAAA,KAAK,EAAE,MAAS,GAAA,CAAA,IAAK,EAAE,MAAS,GAAA,GAAA,IAAO,UAAW,CAAA,IAAA,CAAK,CAAC,CAAA;AAAA,GAC1D,CAAA;AACF;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -141,4 +141,4 @@ type QetaSignal = QetaQuestionStatsSignal | QetaAnswerStatsSignal;
|
|
|
141
141
|
declare const TAGS_REGEX: RegExp;
|
|
142
142
|
declare const filterTags: (input?: null | string | string[]) => string[] | undefined;
|
|
143
143
|
|
|
144
|
-
export { Answer, AnswerRequest, AnswerResponse, AnswerResponseBody, Attachment, AttachmentResponseBody, Comment, EntityResponse, QetaAnswerStatsSignal, QetaDocument, QetaEntity, QetaQuestionStatsSignal, QetaSignal, Question, QuestionAnswerEntity, QuestionRequest, QuestionResponse, QuestionResponseBody, QuestionsResponse, QuestionsResponseBody, Statistic, StatisticResponse, StatisticsOptions, StatisticsRequestParameters, TAGS_REGEX, TagResponse, Vote, filterTags, qetaCreateAnswerPermission, qetaCreateQuestionPermission, qetaPermissions, qetaReadPermission };
|
|
144
|
+
export { type Answer, type AnswerRequest, type AnswerResponse, type AnswerResponseBody, type Attachment, type AttachmentResponseBody, type Comment, type EntityResponse, type QetaAnswerStatsSignal, type QetaDocument, type QetaEntity, type QetaQuestionStatsSignal, type QetaSignal, type Question, type QuestionAnswerEntity, type QuestionRequest, type QuestionResponse, type QuestionResponseBody, type QuestionsResponse, type QuestionsResponseBody, type Statistic, type StatisticResponse, type StatisticsOptions, type StatisticsRequestParameters, TAGS_REGEX, type TagResponse, type Vote, filterTags, qetaCreateAnswerPermission, qetaCreateQuestionPermission, qetaPermissions, qetaReadPermission };
|
package/dist/index.esm.js
CHANGED
|
@@ -18,7 +18,7 @@ const qetaPermissions = [
|
|
|
18
18
|
qetaCreateAnswerPermission
|
|
19
19
|
];
|
|
20
20
|
|
|
21
|
-
const TAGS_REGEX = new RegExp("^[a-z0-9+#]+(
|
|
21
|
+
const TAGS_REGEX = new RegExp("^[a-z0-9+#]+((\\-|_)[a-z0-9+#_]+)*$");
|
|
22
22
|
const filterTags = (input) => {
|
|
23
23
|
if (!input) {
|
|
24
24
|
return void 0;
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../src/permissions.ts","../src/tags.ts"],"sourcesContent":["import { createPermission } from '@backstage/plugin-permission-common';\n\nexport const qetaReadPermission = createPermission({\n name: 'qeta.read',\n attributes: { action: 'create' },\n});\n\nexport const qetaCreateQuestionPermission = createPermission({\n name: 'qeta.create.question',\n attributes: { action: 'create' },\n});\n\nexport const qetaCreateAnswerPermission = createPermission({\n name: 'qeta.create.answer',\n attributes: { action: 'create' },\n});\n\nexport const qetaPermissions = [\n qetaReadPermission,\n qetaCreateQuestionPermission,\n qetaCreateAnswerPermission,\n];\n","export const TAGS_REGEX = new RegExp('^[a-z0-9+#]+(
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/permissions.ts","../src/tags.ts"],"sourcesContent":["import { createPermission } from '@backstage/plugin-permission-common';\n\nexport const qetaReadPermission = createPermission({\n name: 'qeta.read',\n attributes: { action: 'create' },\n});\n\nexport const qetaCreateQuestionPermission = createPermission({\n name: 'qeta.create.question',\n attributes: { action: 'create' },\n});\n\nexport const qetaCreateAnswerPermission = createPermission({\n name: 'qeta.create.answer',\n attributes: { action: 'create' },\n});\n\nexport const qetaPermissions = [\n qetaReadPermission,\n qetaCreateQuestionPermission,\n qetaCreateAnswerPermission,\n];\n","export const TAGS_REGEX = new RegExp('^[a-z0-9+#]+((\\\\-|_)[a-z0-9+#_]+)*$');\n\nexport const filterTags = (input?: null | string | string[]) => {\n if (!input) {\n return undefined;\n }\n return (Array.isArray(input) ? input : input.split(',')).filter(\n v => v.length > 0 && v.length < 255 && TAGS_REGEX.test(v),\n );\n};\n"],"names":[],"mappings":";;AAEO,MAAM,qBAAqB,gBAAiB,CAAA;AAAA,EACjD,IAAM,EAAA,WAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAS,EAAA;AACjC,CAAC,EAAA;AAEM,MAAM,+BAA+B,gBAAiB,CAAA;AAAA,EAC3D,IAAM,EAAA,sBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAS,EAAA;AACjC,CAAC,EAAA;AAEM,MAAM,6BAA6B,gBAAiB,CAAA;AAAA,EACzD,IAAM,EAAA,oBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,QAAS,EAAA;AACjC,CAAC,EAAA;AAEM,MAAM,eAAkB,GAAA;AAAA,EAC7B,kBAAA;AAAA,EACA,4BAAA;AAAA,EACA,0BAAA;AACF;;ACrBa,MAAA,UAAA,GAAa,IAAI,MAAA,CAAO,qCAAqC,EAAA;AAE7D,MAAA,UAAA,GAAa,CAAC,KAAqC,KAAA;AAC9D,EAAA,IAAI,CAAC,KAAO,EAAA;AACV,IAAO,OAAA,KAAA,CAAA,CAAA;AAAA,GACT;AACA,EAAQ,OAAA,CAAA,KAAA,CAAM,QAAQ,KAAK,CAAA,GAAI,QAAQ,KAAM,CAAA,KAAA,CAAM,GAAG,CAAG,EAAA,MAAA;AAAA,IACvD,CAAA,CAAA,KAAK,EAAE,MAAS,GAAA,CAAA,IAAK,EAAE,MAAS,GAAA,GAAA,IAAO,UAAW,CAAA,IAAA,CAAK,CAAC,CAAA;AAAA,GAC1D,CAAA;AACF;;;;"}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"frontend",
|
|
8
8
|
"backstage.io"
|
|
9
9
|
],
|
|
10
|
-
"version": "1.24.
|
|
10
|
+
"version": "1.24.4",
|
|
11
11
|
"main": "dist/index.cjs.js",
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
13
|
"prepublishOnly": "yarn tsc && yarn build",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@backstage/catalog-model": "^1.4.5"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@backstage/cli": "^0.26.
|
|
50
|
+
"@backstage/cli": "^0.26.2"
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
53
53
|
"dist"
|