@redocly/portal-plugin-soap-api 0.23.0-next.9 → 0.24.0-next.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 +152 -0
- package/lib/.tsbuildinfo +1 -1
- package/lib/plugin.d.ts +1 -1
- package/lib/realm-plus/plugin.d.ts +1 -1
- package/lib/realm-plus/plugin.js +1 -1
- package/lib/realm-plus/plugin.js.map +1 -1
- package/package.json +12 -12
package/lib/plugin.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ExternalPlugin } from '@redocly/realm/dist/server/types';
|
|
2
|
-
import type { ContentPlugin, ProjectPluginFactoryOptions } from '@redocly/
|
|
2
|
+
import type { ContentPlugin, ProjectPluginFactoryOptions } from '@redocly/framework/plugin';
|
|
3
3
|
export default function soapPlugin(options?: Partial<ProjectPluginFactoryOptions>): ExternalPlugin | Promise<ContentPlugin>;
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* and one page with a request example for each endpoint of the first binding. The service
|
|
4
4
|
* sidebar lists the operations.
|
|
5
5
|
*/
|
|
6
|
-
declare const _default: import("@redocly/
|
|
6
|
+
declare const _default: import("@redocly/framework/plugin").ContentPlugin;
|
|
7
7
|
export default _default;
|
package/lib/realm-plus/plugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=function(o,a,n,i){function p(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(t){try{e(i.next(t))}catch(r){l(r)}}function u(t){try{e(i.throw(t))}catch(r){l(r)}}function e(t){t.done?s(t.value):p(t.value).then(c,u)}e((i=i.apply(o,a||[])).next())})};import{createRequire as _}from"node:module";import{join as b,posix as w}from"node:path";import S from"xml-formatter";import{createEntityLoader as P,createInlineEntity as f,createPluginScopedId as E,defineContentPlugin as O,runtimeFile as $,runtimeTemplate as A}from"@redocly/
|
|
1
|
+
var m=function(o,a,n,i){function p(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function c(t){try{e(i.next(t))}catch(r){l(r)}}function u(t){try{e(i.throw(t))}catch(r){l(r)}}function e(t){t.done?s(t.value):p(t.value).then(c,u)}e((i=i.apply(o,a||[])).next())})};import{createRequire as _}from"node:module";import{join as b,posix as w}from"node:path";import S from"xml-formatter";import{createEntityLoader as P,createInlineEntity as f,createPluginScopedId as E,defineContentPlugin as O,runtimeFile as $,runtimeTemplate as A}from"@redocly/framework/plugin";import{describeWsdl as I,generateRequestExample as x,slugFromEndpoint as j}from"../wsdl.js";import{SOAP_PAGE_DEP_KEY as g}from"./shared.js";const h="redocly.soap",d="soap-docs",{version:q}=_(import.meta.url)("../../package.json"),v=P(E(h,"service"),o=>m(void 0,void 0,void 0,function*(){const a=yield o.io.readFile(o.file.absolutePath);return{value:{title:o.args.title,wsdl:S(a,{indentation:" "})}}}));var H=O({id:h,version:q,loaders:[v],templates:{[d]:A($("./template.tsx",import.meta.url))},content:{filter:{extensions:[".wsdl"]},extractFile(o,a){return m(this,void 0,void 0,function*(){const{endpoints:n,serviceName:i,info:p}=yield I(yield a.io.readFile(o.path),b(a.contentDir,o.path),{importRoot:a.contentDir}),s={warn:e=>a.logger.warn(e,{path:o.path})},l=[],c=[],u=new Set([""]);for(const e of Object.keys(n??{})){const t=j(e);if(u.has(t)){c.push({code:"soap/operation-slug-conflict",severity:"warning",message:`Operation "${e}" has no page: its slug "${t}" is already used by the service or another operation.`});continue}try{const r=yield x(e,p,n[e].input,s);u.add(t),l.push({name:e,slug:t,request:r})}catch(r){const y=r instanceof Error?r.message:String(r);c.push({code:"soap/request-example-failed",severity:"warning",message:`Operation "${e}" has no page: cannot make its request example: ${y}`})}}return{problems:c,routes:[{routeId:"service",slugHint:o.pathSlug,template:d,metadata:Object.assign({type:"soap",title:i,description:"",tags:["SOAP"]},D(a.config,o.path)),sidebarSubtree:f([{label:i,slugSuffix:""},{label:"Operations",items:l.map(({name:e,slug:t})=>({label:e,slugSuffix:`/${t}`}))}]),deps:{[g]:v.withArgs({filePath:o.path,title:i})}},...l.map(({name:e,slug:t,request:r})=>({routeId:`operation:${e}`,slugHint:`${o.pathSlug}/${t}`,template:d,metadata:{title:e},deps:{[g]:f({title:e,request:r})}}))]}})}}});function D(o,a){var n,i,p;return(p=(n=Object.values((i=o.apis)!==null&&i!==void 0?i:{}).find(s=>w.normalize(s.root)===a))===null||n===void 0?void 0:n.metadata)!==null&&p!==void 0?p:{}}export{H as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["../../src/realm-plus/plugin.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,WAAW,EACX,eAAe,GAGhB,MAAM,
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["../../src/realm-plus/plugin.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,WAAW,EACX,eAAe,GAGhB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAsB,MAAM,aAAa,CAAC;AAEpE,MAAM,cAAc,GAAG,cAAc,CAAC;AACtC,MAAM,gBAAgB,GAAG,WAAW,CAAC;AACrC,6EAA6E;AAC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4BAC1B,QAAQ,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;4BACzB,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,EAAE,kBAAkB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE;yBAC5E,CAAC,CAAC;qBACJ;iBACF,CAAC;YACJ,CAAC;SAAA;KACF;CACF,CAAC,CAAC;AAEH,wEAAwE;AACxE,SAAS,kBAAkB,CACzB,MAAgC,EAChC,QAAgB;;;IAEhB,OAAO,OACL,MAAA,MAAM,CAAC,MAAM,OAAC,MAAM,CAAC,IAAI,mCAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,QAAQ,CAAC,0CACtF,QAAQ,mCAAI,EAAE,CACnB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/portal-plugin-soap-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0-next.0",
|
|
4
4
|
"description": "SOAP API plugin for Redocly products",
|
|
5
5
|
"author": "team@redocly.com",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -26,33 +26,33 @@
|
|
|
26
26
|
"xml-formatter": "3.6.3",
|
|
27
27
|
"file-saver": "2.0.5",
|
|
28
28
|
"styled-components": "^6.4.2",
|
|
29
|
-
"@redocly/config": "0.
|
|
29
|
+
"@redocly/config": "0.72.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"esbuild-minify-dir": "^0.0.1",
|
|
33
33
|
"@types/node": "24.1.0",
|
|
34
34
|
"@types/react": "^19.2.7",
|
|
35
35
|
"@types/file-saver": "2.0.7",
|
|
36
|
-
"@redocly/
|
|
36
|
+
"@redocly/framework": "1.0.0-next.1",
|
|
37
37
|
"@vitest/coverage-v8": "4.1.11",
|
|
38
38
|
"rimraf": "5.0.7",
|
|
39
39
|
"vitest": "4.1.11"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@redocly/
|
|
43
|
-
"@redocly/realm
|
|
44
|
-
"@redocly/redoc": "0.
|
|
45
|
-
"@redocly/redoc-reef": "0.
|
|
46
|
-
"@redocly/redoc-revel": "0.
|
|
47
|
-
"@redocly/theme": "0.72.0
|
|
42
|
+
"@redocly/framework": "^1.0.0-next.1",
|
|
43
|
+
"@redocly/realm": "0.141.0-next.0",
|
|
44
|
+
"@redocly/redoc": "0.141.0-next.0",
|
|
45
|
+
"@redocly/redoc-reef": "0.141.0-next.0",
|
|
46
|
+
"@redocly/redoc-revel": "0.141.0-next.0",
|
|
47
|
+
"@redocly/theme": "0.72.0",
|
|
48
48
|
"react": "^19.2.7",
|
|
49
49
|
"react-dom": "^19.2.7"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
52
|
-
"@redocly/
|
|
52
|
+
"@redocly/framework": {
|
|
53
53
|
"optional": true
|
|
54
54
|
},
|
|
55
|
-
"@redocly/realm
|
|
55
|
+
"@redocly/realm": {
|
|
56
56
|
"optional": true
|
|
57
57
|
},
|
|
58
58
|
"@redocly/redoc": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"nx": {
|
|
69
69
|
"implicitDependencies": [
|
|
70
|
-
"@redocly/
|
|
70
|
+
"@redocly/framework"
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|