@pb33f/cowboy-components 0.3.5 → 0.5.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/README.md +1 -1
- package/dist/assets/css.worker-CTSQecos.js +84 -0
- package/dist/assets/editor.worker-CYC0jP-p.js +12 -0
- package/dist/assets/equalizer.worker-CdIiiqfH.js +1 -0
- package/dist/assets/html.worker-C1BIaUKh.js +461 -0
- package/dist/assets/json.worker-BCyBlh8h.js +49 -0
- package/dist/assets/rule-documentation.worker-B7xOWY5M.js +1 -0
- package/dist/components/credit-ticker/credit-ticker.css.d.ts +2 -0
- package/dist/components/credit-ticker/credit-ticker.css.js +36 -0
- package/dist/components/credit-ticker/credit-ticker.d.ts +14 -0
- package/dist/components/credit-ticker/credit-ticker.js +88 -0
- package/dist/components/editor/editor-breadcrumb.css.d.ts +2 -0
- package/dist/components/editor/editor-breadcrumb.css.js +49 -0
- package/dist/components/editor/editor-breadcrumb.d.ts +9 -0
- package/dist/components/editor/editor-breadcrumb.js +60 -0
- package/dist/components/editor/editor.css.d.ts +2 -0
- package/dist/components/editor/editor.css.js +62 -0
- package/dist/components/editor/editor.d.ts +25 -4
- package/dist/components/editor/editor.js +412 -76
- package/dist/components/manage-ruleset/manage-ruleset.css.js +5 -0
- package/dist/components/manage-ruleset/manage-ruleset.js +8 -6
- package/dist/components/model-icon/model-icon.d.ts +7 -0
- package/dist/components/model-icon/model-icon.js +56 -7
- package/dist/components/model-renderer/clickable-ref.d.ts +2 -2
- package/dist/components/model-renderer/clickable-ref.js +5 -4
- package/dist/components/model-renderer/header.js +10 -10
- package/dist/components/model-renderer/operation.js +2 -2
- package/dist/components/model-renderer/rendered-node.css.js +1 -1
- package/dist/components/model-renderer/schema.js +1 -1
- package/dist/components/model-tree/tree.css.js +1 -0
- package/dist/components/model-tree/tree.d.ts +8 -0
- package/dist/components/model-tree/tree.js +232 -24
- package/dist/components/paginator/paginator.css.js +6 -2
- package/dist/components/paginator/paginator.d.ts +1 -0
- package/dist/components/paginator/paginator.js +8 -4
- package/dist/components/problem-list/details-drawer.css.js +1 -1
- package/dist/components/problem-list/problem-item.js +6 -3
- package/dist/components/problem-list/problem-label-view-filter.d.ts +2 -1
- package/dist/components/problem-list/problem-label-view-filter.js +1 -0
- package/dist/components/problem-list/problem-list.d.ts +1 -0
- package/dist/components/problem-list/problem-list.js +19 -1
- package/dist/components/problem-list/problem-mainview.css.js +1 -1
- package/dist/components/problem-list/problem-mainview.js +6 -0
- package/dist/components/problem-list/problem-sort-filter.d.ts +2 -1
- package/dist/components/problem-list/problem-sort-filter.js +1 -0
- package/dist/components/problems-overview/diagnostic-evaluation.css.js +14 -4
- package/dist/components/problems-overview/diagnostic-evaluation.js +42 -1
- package/dist/components/problems-overview/problems-overview.css.js +1 -0
- package/dist/components/the-doctor/nuke-workspace.d.ts +13 -0
- package/dist/components/the-doctor/nuke-workspace.js +70 -0
- package/dist/components/the-doctor/sparks.d.ts +1 -0
- package/dist/components/the-doctor/sparks.js +11 -2
- package/dist/components/the-doctor/status-bar.css.js +6 -5
- package/dist/components/the-doctor/the-doctor.css.js +117 -16
- package/dist/components/the-doctor/the-doctor.d.ts +70 -21
- package/dist/components/the-doctor/the-doctor.js +1023 -166
- package/dist/components/the-doctor/upload-archive.css.d.ts +2 -0
- package/dist/components/the-doctor/upload-archive.css.js +98 -0
- package/dist/components/the-doctor/upload-archive.d.ts +33 -0
- package/dist/components/the-doctor/upload-archive.js +281 -0
- package/dist/components/visualizer/equalizer.d.ts +3 -1
- package/dist/components/visualizer/equalizer.js +55 -31
- package/dist/components/visualizer/explorer.js +9 -5
- package/dist/cowboy-components.umd.cjs +1846 -1273
- package/dist/css/hr.css.d.ts +2 -0
- package/dist/css/hr.css.js +12 -0
- package/dist/css/pb33f-theme.css +1 -0
- package/dist/events/doctor.d.ts +19 -1
- package/dist/events/doctor.js +5 -0
- package/dist/model/channels.d.ts +1 -0
- package/dist/model/channels.js +1 -0
- package/dist/model/graph.d.ts +17 -0
- package/dist/model/graph.js +17 -1
- package/dist/model/link.d.ts +8 -0
- package/dist/model/node_type.d.ts +22 -1
- package/dist/model/node_type.js +22 -0
- package/dist/model/panel-state.d.ts +5 -0
- package/dist/model/panel-state.js +1 -0
- package/dist/model/problem.d.ts +3 -1
- package/dist/model/problem.js +4 -2
- package/dist/model/rolodex.d.ts +34 -0
- package/dist/model/rolodex.js +1 -0
- package/dist/services/linting-service.d.ts +1 -1
- package/dist/services/linting-service.js +23 -11
- package/dist/services/model-service.d.ts +8 -1
- package/dist/services/model-service.js +127 -0
- package/dist/style.css +1 -1
- package/dist/workers/equalizer.worker.js +4 -3
- package/dist/workers/rule-documentation.worker.d.ts +2 -2
- package/dist/workers/rule-documentation.worker.js +26 -15
- package/package.json +3 -3
- package/dist/assets/css.worker-B_qZXUzt.js +0 -84
- package/dist/assets/editor.worker-HEmB0D7P.js +0 -11
- package/dist/assets/equalizer.worker-icLzyXQ7.js +0 -1
- package/dist/assets/html.worker-D3WUrk8Q.js +0 -458
- package/dist/assets/json.worker-CAhUaBo4.js +0 -42
- package/dist/assets/rule-documentation.worker-D39NS8Lx.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";var A=(s=>(s.VERSION="version",s.SCHEMA="schema",s.MEDIA_TYPE="mediaType",s.HEADER="header",s.EXAMPLE="example",s.EXAMPLES="examples",s.ENCODING="encoding",s.REQUEST_BODY="requestBody",s.REQUEST_BODIES="requestBodies",s.PARAMETER="parameter",s.PARAMETER_QUERY="query",s.COOKIE="cookie",s.PARAMETERS="parameters",s.LINK="link",s.LINKS="links",s.RESPONSE="response",s.RESPONSES="responses",s.OPERATION="operation",s.OPERATIONS="operations",s.SECURITY_SCHEME="securityScheme",s.SECURITY_SCHEMES="securitySchemes",s.SECURITY="security",s.CALLBACK="callback",s.CALLBACKS="callbacks",s.PATH_ITEM="pathItem",s.PATH_ITEMS="pathItems",s.XML="xml",s.HEADERS="headers",s.SERVER="server",s.SERVERS="servers",s.SERVER_VARIABLE="serverVariable",s.PATHS="paths",s.COMPONENTS="components",s.CONTACT="contact",s.LICENSE="license",s.INFO="info",s.TAG="tag",s.TAGS="tags",s.DOCUMENT="document",s.WEBHOOK="webhook",s.WEBHOOKS="webhooks",s.EXTENSIONS="extensions",s.NO_EXAMPLE="noExample",s.POLYMORPHIC="polymorphic",s.ERROR="error",s.WARNING="warning",s.ROLODEX_FILE="rolodex-file",s.ROLODEX_FOLDER="rolodex-dir",s.OPENAPI="openapi",s.UPLOAD="upload",s.ADD="add",s.UNKNOWN="unknown",s.JS="js",s.GO="go",s.TS="ts",s.CS="cs",s.C="c",s.CPP="cpp",s.PHP="php",s.PY="py",s.HTML="html",s.MD="md",s.JAVA="java",s.RS="rs",s.ZIG="zig",s.RB="rb",s.YAML="yaml",s.JSON="json",s))(A||{});function I(s,P,R,u,E,e,l,c){if(s&&s.sources.length>0)for(let O=0;O<s.sources.length;O++){const o=s.sources[O];if(E.has(o)){const n=E.get(o);if(n){if(n.filtered)return;if(delete n.x,delete n.y,R.has(n.id)||(Object.keys(c).includes(n.type)||(n.dependency=!0),R.set(n.id,n)),!n.processed){const a=l.get(n.id);a&&a.forEach(h=>{delete h.container,delete h.sections,h.dependency=!0,u.set(h.id,h),I(h,n,R,u,E,e,l,c)})}const S=e.get(n.id);S&&S.forEach(a=>{a.targets.includes(P.id)&&(delete a.container,delete a.sections,u.set(a.id,a),I(a,n,R,u,E,e,l,c))}),n.processed=!0}}}}onmessage=function(s){var P,R,u;if(s.data.graphResponse&&s.data.spacing){const E=s.data.objects,e=s.data.references,l=s.data.graphResponse,c={nodes:[],edges:[],nodesRendered:l.nodesRendered,spacing:s.data.spacing,references:s.data.references},O=new Map,o=new Map,n=new Map,S=new Map,a=new Map,h=(t,r)=>{const i=[];for(const f in r)if(f.includes(t+"_filter_")){const[,,M]=f.split("_");i.push(M)}return i};if(!E){postMessage(c);return}(P=l.nodes)==null||P.forEach(t=>{Object.keys(E).includes(t.type)&&n.set(t.id,t),O.set(t.id,t)}),(R=l.nodesRendered)==null||R.forEach(t=>{o.set(t.id,t)});const C=(t,r,i)=>{if(!i.includes(t+"XX")){r.filtered=!0;const f=O.get(r.id);f&&(f.filtered=!0)}};n.forEach(t=>{const r=h(t.type,E);let i=[],f;if(r.length>0)switch(t.type){case A.RESPONSE:i=["1","2","3","4","5"];for(const M of i)t.label.startsWith(M)&&C(M,t,r);break;case A.PARAMETER:i=["cookie","header","path","query"],f=o.get(t.id),f&&f.instance.hasOwnProperty("in")&&(r.includes(f.instance.in)||C(f.instance.in,t,r));break;case A.OPERATION:i=["get","post","put","patch","delete","head","options","trace"],r.includes(t.label.toLowerCase())||C(t.label,t,r);break}}),(u=l.edges)==null||u.forEach(t=>{e&&!e.renderRefs&&t.ref&&t.ref!=""||e&&!e.renderPoly&&t.ref&&t.ref!=""&&t.poly&&t.poly!=""||(t.sources.forEach(r=>{var i;S.has(r)||S.set(r,[]),delete t.container,delete t.sections,(i=S.get(r))==null||i.push(t)}),t.targets.forEach(r=>{var i;a.has(r)||a.set(r,[]),delete t.container,delete t.sections,(i=a.get(r))==null||i.push(t)}))});const L=new Map,b=new Map;n.forEach(t=>{if(Object.keys(E).includes(t.type)){if(delete t.x,delete t.y,t.filtered)return;c.nodes.push(t);const r=a.get(t.id);r&&r.forEach(i=>{I(i,t,L,b,O,S,a,E)})}}),L.forEach(t=>{let r=!1;c.nodes.forEach(i=>{i.id==t.id&&(r=!0)}),r||c.nodes.push(t)}),b.forEach(t=>{let r=!1;c.edges.forEach(i=>{i.id==t.id&&(r=!0)}),r||c.edges.push(t)}),c.rebuild=s.data.rebuild,postMessage(c)}}})();
|