@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.
Files changed (97) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/css.worker-CTSQecos.js +84 -0
  3. package/dist/assets/editor.worker-CYC0jP-p.js +12 -0
  4. package/dist/assets/equalizer.worker-CdIiiqfH.js +1 -0
  5. package/dist/assets/html.worker-C1BIaUKh.js +461 -0
  6. package/dist/assets/json.worker-BCyBlh8h.js +49 -0
  7. package/dist/assets/rule-documentation.worker-B7xOWY5M.js +1 -0
  8. package/dist/components/credit-ticker/credit-ticker.css.d.ts +2 -0
  9. package/dist/components/credit-ticker/credit-ticker.css.js +36 -0
  10. package/dist/components/credit-ticker/credit-ticker.d.ts +14 -0
  11. package/dist/components/credit-ticker/credit-ticker.js +88 -0
  12. package/dist/components/editor/editor-breadcrumb.css.d.ts +2 -0
  13. package/dist/components/editor/editor-breadcrumb.css.js +49 -0
  14. package/dist/components/editor/editor-breadcrumb.d.ts +9 -0
  15. package/dist/components/editor/editor-breadcrumb.js +60 -0
  16. package/dist/components/editor/editor.css.d.ts +2 -0
  17. package/dist/components/editor/editor.css.js +62 -0
  18. package/dist/components/editor/editor.d.ts +25 -4
  19. package/dist/components/editor/editor.js +412 -76
  20. package/dist/components/manage-ruleset/manage-ruleset.css.js +5 -0
  21. package/dist/components/manage-ruleset/manage-ruleset.js +8 -6
  22. package/dist/components/model-icon/model-icon.d.ts +7 -0
  23. package/dist/components/model-icon/model-icon.js +56 -7
  24. package/dist/components/model-renderer/clickable-ref.d.ts +2 -2
  25. package/dist/components/model-renderer/clickable-ref.js +5 -4
  26. package/dist/components/model-renderer/header.js +10 -10
  27. package/dist/components/model-renderer/operation.js +2 -2
  28. package/dist/components/model-renderer/rendered-node.css.js +1 -1
  29. package/dist/components/model-renderer/schema.js +1 -1
  30. package/dist/components/model-tree/tree.css.js +1 -0
  31. package/dist/components/model-tree/tree.d.ts +8 -0
  32. package/dist/components/model-tree/tree.js +232 -24
  33. package/dist/components/paginator/paginator.css.js +6 -2
  34. package/dist/components/paginator/paginator.d.ts +1 -0
  35. package/dist/components/paginator/paginator.js +8 -4
  36. package/dist/components/problem-list/details-drawer.css.js +1 -1
  37. package/dist/components/problem-list/problem-item.js +6 -3
  38. package/dist/components/problem-list/problem-label-view-filter.d.ts +2 -1
  39. package/dist/components/problem-list/problem-label-view-filter.js +1 -0
  40. package/dist/components/problem-list/problem-list.d.ts +1 -0
  41. package/dist/components/problem-list/problem-list.js +19 -1
  42. package/dist/components/problem-list/problem-mainview.css.js +1 -1
  43. package/dist/components/problem-list/problem-mainview.js +6 -0
  44. package/dist/components/problem-list/problem-sort-filter.d.ts +2 -1
  45. package/dist/components/problem-list/problem-sort-filter.js +1 -0
  46. package/dist/components/problems-overview/diagnostic-evaluation.css.js +14 -4
  47. package/dist/components/problems-overview/diagnostic-evaluation.js +42 -1
  48. package/dist/components/problems-overview/problems-overview.css.js +1 -0
  49. package/dist/components/the-doctor/nuke-workspace.d.ts +13 -0
  50. package/dist/components/the-doctor/nuke-workspace.js +70 -0
  51. package/dist/components/the-doctor/sparks.d.ts +1 -0
  52. package/dist/components/the-doctor/sparks.js +11 -2
  53. package/dist/components/the-doctor/status-bar.css.js +6 -5
  54. package/dist/components/the-doctor/the-doctor.css.js +117 -16
  55. package/dist/components/the-doctor/the-doctor.d.ts +70 -21
  56. package/dist/components/the-doctor/the-doctor.js +1023 -166
  57. package/dist/components/the-doctor/upload-archive.css.d.ts +2 -0
  58. package/dist/components/the-doctor/upload-archive.css.js +98 -0
  59. package/dist/components/the-doctor/upload-archive.d.ts +33 -0
  60. package/dist/components/the-doctor/upload-archive.js +281 -0
  61. package/dist/components/visualizer/equalizer.d.ts +3 -1
  62. package/dist/components/visualizer/equalizer.js +55 -31
  63. package/dist/components/visualizer/explorer.js +9 -5
  64. package/dist/cowboy-components.umd.cjs +1846 -1273
  65. package/dist/css/hr.css.d.ts +2 -0
  66. package/dist/css/hr.css.js +12 -0
  67. package/dist/css/pb33f-theme.css +1 -0
  68. package/dist/events/doctor.d.ts +19 -1
  69. package/dist/events/doctor.js +5 -0
  70. package/dist/model/channels.d.ts +1 -0
  71. package/dist/model/channels.js +1 -0
  72. package/dist/model/graph.d.ts +17 -0
  73. package/dist/model/graph.js +17 -1
  74. package/dist/model/link.d.ts +8 -0
  75. package/dist/model/node_type.d.ts +22 -1
  76. package/dist/model/node_type.js +22 -0
  77. package/dist/model/panel-state.d.ts +5 -0
  78. package/dist/model/panel-state.js +1 -0
  79. package/dist/model/problem.d.ts +3 -1
  80. package/dist/model/problem.js +4 -2
  81. package/dist/model/rolodex.d.ts +34 -0
  82. package/dist/model/rolodex.js +1 -0
  83. package/dist/services/linting-service.d.ts +1 -1
  84. package/dist/services/linting-service.js +23 -11
  85. package/dist/services/model-service.d.ts +8 -1
  86. package/dist/services/model-service.js +127 -0
  87. package/dist/style.css +1 -1
  88. package/dist/workers/equalizer.worker.js +4 -3
  89. package/dist/workers/rule-documentation.worker.d.ts +2 -2
  90. package/dist/workers/rule-documentation.worker.js +26 -15
  91. package/package.json +3 -3
  92. package/dist/assets/css.worker-B_qZXUzt.js +0 -84
  93. package/dist/assets/editor.worker-HEmB0D7P.js +0 -11
  94. package/dist/assets/equalizer.worker-icLzyXQ7.js +0 -1
  95. package/dist/assets/html.worker-D3WUrk8Q.js +0 -458
  96. package/dist/assets/json.worker-CAhUaBo4.js +0 -42
  97. package/dist/assets/rule-documentation.worker-D39NS8Lx.js +0 -1
@@ -1 +0,0 @@
1
- (function(){"use strict";var i=(t=>(t.RULE="rule",t.FUNCTION="function",t))(i||{});onmessage=function(t){if(t.data.start){const o=[u(t.data.endpoint),d(t.data.endpoint)];Promise.all(o).then(n=>{postMessage(n.flat())}).catch(()=>{console.error("documentation cannot be fetched")})}};async function u(t){return new Promise(async(o,n)=>{try{const r=(await m(t)).map(c=>f(c.ruleId,t).then(a=>(a.body&&(c.body=a.body),c.type=i.RULE,c))),s=await Promise.all(r);o(s)}catch(e){console.error("documentation service is down"),n(e)}})}async function d(t){return new Promise(async(o,n)=>{try{const r=(await y(t)).map(c=>h(c.functionId,t).then(a=>(a.body&&(c.body=a.body),c.type=i.FUNCTION,c))),s=await Promise.all(r);o(s)}catch(e){console.error("documentation service is down"),n(e)}})}async function m(t){try{const n=await(await fetch(t+"/rules/documentation",{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}})).json();return n?n!=null&&n.error?new Promise(async(e,r)=>{r(n.error)}):n:new Promise(async(e,r)=>{r("nothing returned")})}catch(o){return new Promise(async(n,e)=>{e(o)})}}async function y(t){try{const n=await(await fetch(t+"/functions/documentation",{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}})).json();return n?n!=null&&n.error?new Promise(async(e,r)=>{r(n.error)}):n:new Promise(async(e,r)=>{r("nothing returned")})}catch(o){return new Promise(async(n,e)=>{e(o)})}}async function f(t,o){try{const e=await(await fetch(o+`/rules/documentation/${t}`,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}})).json();return e?e!=null&&e.error?new Promise(async(r,s)=>{s(e.error)}):e:new Promise(async(r,s)=>{s("nothing returned")})}catch(n){return new Promise(async(e,r)=>{r(n)})}}async function h(t,o){try{const e=await(await fetch(o+`/functions/documentation/${t}`,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}})).json();return e?e!=null&&e.error?new Promise(async(r,s)=>{s(e.error)}):e:new Promise(async(r,s)=>{s("nothing returned")})}catch(n){return new Promise(async(e,r)=>{r(n)})}}})();