@drodil/backstage-plugin-qeta-react 3.58.4 → 3.58.7
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/alpha.d.ts +51 -0
- package/dist/alpha.esm.js +40 -0
- package/dist/alpha.esm.js.map +1 -0
- package/package.json +39 -23
package/dist/alpha.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
3
|
+
import { Pluggable } from 'unified';
|
|
4
|
+
|
|
5
|
+
declare const markdownPlugin: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<Pluggable, "qeta.markdown-plugin", {}>;
|
|
6
|
+
declare const QetaMarkdownRehypePluginBlueprint: _backstage_frontend_plugin_api.ExtensionBlueprint<{
|
|
7
|
+
kind: "markdown-plugin";
|
|
8
|
+
params: {
|
|
9
|
+
plugin: Pluggable;
|
|
10
|
+
};
|
|
11
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<Pluggable, "qeta.markdown-plugin", {}>;
|
|
12
|
+
inputs: {};
|
|
13
|
+
config: {};
|
|
14
|
+
configInput: {};
|
|
15
|
+
dataRefs: never;
|
|
16
|
+
}>;
|
|
17
|
+
declare const QetaMarkdownRemarkPluginBlueprint: _backstage_frontend_plugin_api.ExtensionBlueprint<{
|
|
18
|
+
kind: "markdown-plugin";
|
|
19
|
+
params: {
|
|
20
|
+
plugin: Pluggable;
|
|
21
|
+
};
|
|
22
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<Pluggable, "qeta.markdown-plugin", {}>;
|
|
23
|
+
inputs: {};
|
|
24
|
+
config: {};
|
|
25
|
+
configInput: {};
|
|
26
|
+
dataRefs: never;
|
|
27
|
+
}>;
|
|
28
|
+
declare const QetaPageIntroElementBlueprint: _backstage_frontend_plugin_api.ExtensionBlueprint<{
|
|
29
|
+
kind: "intro-element";
|
|
30
|
+
params: {
|
|
31
|
+
element: JSX.Element;
|
|
32
|
+
};
|
|
33
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}>;
|
|
34
|
+
inputs: {};
|
|
35
|
+
config: {};
|
|
36
|
+
configInput: {};
|
|
37
|
+
dataRefs: never;
|
|
38
|
+
}>;
|
|
39
|
+
declare const QetaPageHeaderElementBlueprint: _backstage_frontend_plugin_api.ExtensionBlueprint<{
|
|
40
|
+
kind: "header-element";
|
|
41
|
+
params: {
|
|
42
|
+
element: JSX.Element;
|
|
43
|
+
};
|
|
44
|
+
output: _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}>;
|
|
45
|
+
inputs: {};
|
|
46
|
+
config: {};
|
|
47
|
+
configInput: {};
|
|
48
|
+
dataRefs: never;
|
|
49
|
+
}>;
|
|
50
|
+
|
|
51
|
+
export { QetaMarkdownRehypePluginBlueprint, QetaMarkdownRemarkPluginBlueprint, QetaPageHeaderElementBlueprint, QetaPageIntroElementBlueprint, markdownPlugin };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { createExtensionDataRef, createExtensionBlueprint, coreExtensionData } from '@backstage/frontend-plugin-api';
|
|
2
|
+
|
|
3
|
+
const markdownPlugin = createExtensionDataRef().with({
|
|
4
|
+
id: "qeta.markdown-plugin"
|
|
5
|
+
});
|
|
6
|
+
const QetaMarkdownRehypePluginBlueprint = createExtensionBlueprint({
|
|
7
|
+
kind: "markdown-plugin",
|
|
8
|
+
attachTo: { id: "api:qeta/addons", input: "rehypePlugins" },
|
|
9
|
+
output: [markdownPlugin],
|
|
10
|
+
factory(params) {
|
|
11
|
+
return [markdownPlugin(params.plugin)];
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const QetaMarkdownRemarkPluginBlueprint = createExtensionBlueprint({
|
|
15
|
+
kind: "markdown-plugin",
|
|
16
|
+
attachTo: { id: "api:qeta/addons", input: "remarkPlugins" },
|
|
17
|
+
output: [markdownPlugin],
|
|
18
|
+
factory(params) {
|
|
19
|
+
return [markdownPlugin(params.plugin)];
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const QetaPageIntroElementBlueprint = createExtensionBlueprint({
|
|
23
|
+
kind: "intro-element",
|
|
24
|
+
attachTo: { id: "page:qeta", input: "introElement" },
|
|
25
|
+
output: [coreExtensionData.reactElement],
|
|
26
|
+
factory(params) {
|
|
27
|
+
return [coreExtensionData.reactElement(params.element)];
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
const QetaPageHeaderElementBlueprint = createExtensionBlueprint({
|
|
31
|
+
kind: "header-element",
|
|
32
|
+
attachTo: { id: "page:qeta", input: "headerElements" },
|
|
33
|
+
output: [coreExtensionData.reactElement],
|
|
34
|
+
factory(params) {
|
|
35
|
+
return [coreExtensionData.reactElement(params.element)];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export { QetaMarkdownRehypePluginBlueprint, QetaMarkdownRemarkPluginBlueprint, QetaPageHeaderElementBlueprint, QetaPageIntroElementBlueprint, markdownPlugin };
|
|
40
|
+
//# sourceMappingURL=alpha.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.tsx"],"sourcesContent":["import { Pluggable } from 'unified';\nimport {\n coreExtensionData,\n createExtensionBlueprint,\n createExtensionDataRef,\n} from '@backstage/frontend-plugin-api';\n\nexport const markdownPlugin = createExtensionDataRef<Pluggable>().with({\n id: 'qeta.markdown-plugin',\n});\n\nexport const QetaMarkdownRehypePluginBlueprint = createExtensionBlueprint({\n kind: 'markdown-plugin',\n attachTo: { id: 'api:qeta/addons', input: 'rehypePlugins' },\n output: [markdownPlugin],\n factory(params: { plugin: Pluggable }) {\n return [markdownPlugin(params.plugin)];\n },\n});\n\nexport const QetaMarkdownRemarkPluginBlueprint = createExtensionBlueprint({\n kind: 'markdown-plugin',\n attachTo: { id: 'api:qeta/addons', input: 'remarkPlugins' },\n output: [markdownPlugin],\n factory(params: { plugin: Pluggable }) {\n return [markdownPlugin(params.plugin)];\n },\n});\n\nexport const QetaPageIntroElementBlueprint = createExtensionBlueprint({\n kind: 'intro-element',\n attachTo: { id: 'page:qeta', input: 'introElement' },\n output: [coreExtensionData.reactElement],\n factory(params: { element: JSX.Element }) {\n return [coreExtensionData.reactElement(params.element)];\n },\n});\n\nexport const QetaPageHeaderElementBlueprint = createExtensionBlueprint({\n kind: 'header-element',\n attachTo: { id: 'page:qeta', input: 'headerElements' },\n output: [coreExtensionData.reactElement],\n factory(params: { element: JSX.Element }) {\n return [coreExtensionData.reactElement(params.element)];\n },\n});\n"],"names":[],"mappings":";;AAOa,MAAA,cAAA,GAAiB,sBAAkC,EAAA,CAAE,IAAK,CAAA;AAAA,EACrE,EAAI,EAAA;AACN,CAAC;AAEM,MAAM,oCAAoC,wBAAyB,CAAA;AAAA,EACxE,IAAM,EAAA,iBAAA;AAAA,EACN,QAAU,EAAA,EAAE,EAAI,EAAA,iBAAA,EAAmB,OAAO,eAAgB,EAAA;AAAA,EAC1D,MAAA,EAAQ,CAAC,cAAc,CAAA;AAAA,EACvB,QAAQ,MAA+B,EAAA;AACrC,IAAA,OAAO,CAAC,cAAA,CAAe,MAAO,CAAA,MAAM,CAAC,CAAA;AAAA;AAEzC,CAAC;AAEM,MAAM,oCAAoC,wBAAyB,CAAA;AAAA,EACxE,IAAM,EAAA,iBAAA;AAAA,EACN,QAAU,EAAA,EAAE,EAAI,EAAA,iBAAA,EAAmB,OAAO,eAAgB,EAAA;AAAA,EAC1D,MAAA,EAAQ,CAAC,cAAc,CAAA;AAAA,EACvB,QAAQ,MAA+B,EAAA;AACrC,IAAA,OAAO,CAAC,cAAA,CAAe,MAAO,CAAA,MAAM,CAAC,CAAA;AAAA;AAEzC,CAAC;AAEM,MAAM,gCAAgC,wBAAyB,CAAA;AAAA,EACpE,IAAM,EAAA,eAAA;AAAA,EACN,QAAU,EAAA,EAAE,EAAI,EAAA,WAAA,EAAa,OAAO,cAAe,EAAA;AAAA,EACnD,MAAA,EAAQ,CAAC,iBAAA,CAAkB,YAAY,CAAA;AAAA,EACvC,QAAQ,MAAkC,EAAA;AACxC,IAAA,OAAO,CAAC,iBAAA,CAAkB,YAAa,CAAA,MAAA,CAAO,OAAO,CAAC,CAAA;AAAA;AAE1D,CAAC;AAEM,MAAM,iCAAiC,wBAAyB,CAAA;AAAA,EACrE,IAAM,EAAA,gBAAA;AAAA,EACN,QAAU,EAAA,EAAE,EAAI,EAAA,WAAA,EAAa,OAAO,gBAAiB,EAAA;AAAA,EACrD,MAAA,EAAQ,CAAC,iBAAA,CAAkB,YAAY,CAAA;AAAA,EACvC,QAAQ,MAAkC,EAAA;AACxC,IAAA,OAAO,CAAC,iBAAA,CAAkB,YAAa,CAAA,MAAA,CAAO,OAAO,CAAC,CAAA;AAAA;AAE1D,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
"frontend",
|
|
8
8
|
"backstage.io"
|
|
9
9
|
],
|
|
10
|
-
"version": "3.58.
|
|
11
|
-
"main": "dist/index.esm.js",
|
|
12
|
-
"types": "dist/index.d.ts",
|
|
10
|
+
"version": "3.58.7",
|
|
11
|
+
"main": "./dist/index.esm.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
13
|
"prepublishOnly": "yarn tsc && yarn build",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"homepage": "https://github.com/drodil/backstage-plugin-qeta",
|
|
@@ -20,10 +20,31 @@
|
|
|
20
20
|
"type": "git",
|
|
21
21
|
"url": "https://github.com/drodil/backstage-plugin-qeta.git"
|
|
22
22
|
},
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"import": "./dist/index.esm.js",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"default": "./dist/index.esm.js"
|
|
28
|
+
},
|
|
29
|
+
"./alpha": {
|
|
30
|
+
"import": "./dist/alpha.esm.js",
|
|
31
|
+
"types": "./dist/alpha.d.ts",
|
|
32
|
+
"default": "./dist/alpha.esm.js"
|
|
33
|
+
},
|
|
34
|
+
"./package.json": "./package.json"
|
|
35
|
+
},
|
|
36
|
+
"typesVersions": {
|
|
37
|
+
"*": {
|
|
38
|
+
"alpha": [
|
|
39
|
+
"dist/alpha.d.ts"
|
|
40
|
+
],
|
|
41
|
+
"package.json": [
|
|
42
|
+
"package.json"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
23
46
|
"publishConfig": {
|
|
24
|
-
"access": "public"
|
|
25
|
-
"main": "dist/index.esm.js",
|
|
26
|
-
"types": "dist/index.d.ts"
|
|
47
|
+
"access": "public"
|
|
27
48
|
},
|
|
28
49
|
"backstage": {
|
|
29
50
|
"role": "web-library",
|
|
@@ -48,16 +69,17 @@
|
|
|
48
69
|
"tsc": "tsc"
|
|
49
70
|
},
|
|
50
71
|
"dependencies": {
|
|
51
|
-
"@backstage/catalog-client": "^1.
|
|
72
|
+
"@backstage/catalog-client": "^1.13.0",
|
|
52
73
|
"@backstage/catalog-model": "^1.7.6",
|
|
53
74
|
"@backstage/config": "^1.3.6",
|
|
54
|
-
"@backstage/core-components": "^0.18.
|
|
55
|
-
"@backstage/core-plugin-api": "^1.12.
|
|
56
|
-
"@backstage/plugin-
|
|
57
|
-
"@backstage/plugin-
|
|
58
|
-
"@backstage/plugin-permission-
|
|
59
|
-
"@backstage/plugin-
|
|
60
|
-
"@
|
|
75
|
+
"@backstage/core-components": "^0.18.7",
|
|
76
|
+
"@backstage/core-plugin-api": "^1.12.3",
|
|
77
|
+
"@backstage/frontend-plugin-api": "^0.14.0",
|
|
78
|
+
"@backstage/plugin-catalog-react": "^2.0.0",
|
|
79
|
+
"@backstage/plugin-permission-common": "^0.9.6",
|
|
80
|
+
"@backstage/plugin-permission-react": "^0.4.40",
|
|
81
|
+
"@backstage/plugin-signals-react": "^0.0.19",
|
|
82
|
+
"@drodil/backstage-plugin-qeta-common": "^3.58.7",
|
|
61
83
|
"@jsdevtools/rehype-toc": "^3.0.2",
|
|
62
84
|
"@material-ui/core": "^4.12.2",
|
|
63
85
|
"@material-ui/icons": "^4.11.3",
|
|
@@ -81,6 +103,7 @@
|
|
|
81
103
|
"recharts": "^2.13.0",
|
|
82
104
|
"rehype-slug": "^6.0.0",
|
|
83
105
|
"remark-gfm": "^4.0.0",
|
|
106
|
+
"unified": "^11.0.5",
|
|
84
107
|
"unist-util-find": "^3.0.0"
|
|
85
108
|
},
|
|
86
109
|
"peerDependencies": {
|
|
@@ -88,8 +111,8 @@
|
|
|
88
111
|
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
89
112
|
},
|
|
90
113
|
"devDependencies": {
|
|
91
|
-
"@backstage/cli": "^0.35.
|
|
92
|
-
"@backstage/test-utils": "^1.7.
|
|
114
|
+
"@backstage/cli": "^0.35.4",
|
|
115
|
+
"@backstage/test-utils": "^1.7.15",
|
|
93
116
|
"@testing-library/dom": "^10.4.0",
|
|
94
117
|
"@testing-library/jest-dom": "^5.10.1",
|
|
95
118
|
"@testing-library/react": "^16.0.1",
|
|
@@ -102,12 +125,5 @@
|
|
|
102
125
|
"files": [
|
|
103
126
|
"dist"
|
|
104
127
|
],
|
|
105
|
-
"typesVersions": {
|
|
106
|
-
"*": {
|
|
107
|
-
"package.json": [
|
|
108
|
-
"package.json"
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
128
|
"module": "./dist/index.esm.js"
|
|
113
129
|
}
|