@ansible/ansible-ui-framework 2.4.2575 → 2.4.2576

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -43474,7 +43474,7 @@ function P2e(e, t, n) {
43474
43474
  return Array.isArray(t) ? t.includes(d) : t === d;
43475
43475
  }, a = async (f) => {
43476
43476
  const d = f.getVersionId(), h = await n.provideMarkerData(f);
43477
- d === f.getVersionId() && !f.isDisposed() && i(f) && e.editor.setModelMarkers(f, n.owner, h ?? []);
43477
+ !f.isDisposed() && d === f.getVersionId() && i(f) && e.editor.setModelMarkers(f, n.owner, h ?? []);
43478
43478
  }, o = (f) => {
43479
43479
  if (!i(f))
43480
43480
  return;
package/index.umd.cjs CHANGED
@@ -501,7 +501,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
501
501
  `+e.slice(o+1):l+=e.slice(i),l.slice(1)}function dxe(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=Fu(e,i),r=cn[n],!r&&Nu(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||rxe(n);return t}function hxe(e,t,n){var r="",i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1)s=n[a],e.replacer&&(s=e.replacer.call(n,String(a),s)),(Wi(e,t,s,!1,!1)||typeof s>"u"&&Wi(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function sj(e,t,n,r){var i="",a=e.tag,o,s,l;for(o=0,s=n.length;o<s;o+=1)l=n[o],e.replacer&&(l=e.replacer.call(n,String(o),l)),(Wi(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&Wi(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=kb(e,t)),e.dump&&Mu===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=a,e.dump=i||"[]"}function pxe(e,t,n){var r="",i=e.tag,a=Object.keys(n),o,s,l,u,c;for(o=0,s=a.length;o<s;o+=1)c="",r!==""&&(c+=", "),e.condenseFlow&&(c+='"'),l=a[o],u=n[l],e.replacer&&(u=e.replacer.call(n,l,u)),Wi(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Wi(e,t,u,!1,!1)&&(c+=e.dump,r+=c));e.tag=i,e.dump="{"+r+"}"}function gxe(e,t,n,r){var i="",a=e.tag,o=Object.keys(n),s,l,u,c,f,d;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new _n("sortKeys must be a boolean or a function");for(s=0,l=o.length;s<l;s+=1)d="",(!r||i!=="")&&(d+=kb(e,t)),u=o[s],c=n[u],e.replacer&&(c=e.replacer.call(n,u,c)),Wi(e,t+1,u,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Mu===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,f&&(d+=kb(e,t)),Wi(e,t+1,c,!0,f)&&(e.dump&&Mu===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,i+=d));e.tag=a,e.dump=i||"{}"}function lj(e,t,n){var r,i,a,o,s,l;for(i=n?e.explicitTypes:e.implicitTypes,a=0,o=i.length;a<o;a+=1)if(s=i[a],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t=="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(l=e.styleMap[s.tag]||s.defaultStyle,UP.call(s.represent)==="[object Function]")r=s.represent(t,l);else if(HP.call(s.represent,l))r=s.represent[l](t,l);else throw new _n("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function Wi(e,t,n,r,i,a,o){e.tag=null,e.dump=n,lj(e,n,!1)||lj(e,n,!0);var s=UP.call(e.dump),l=r,u;r&&(r=e.flowLevel<0||e.flowLevel>t);var c=s==="[object Object]"||s==="[object Array]",f,d;if(c&&(f=e.duplicates.indexOf(n),d=f!==-1),(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&t>0)&&(i=!1),d&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(c&&d&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),s==="[object Object]")r&&Object.keys(e.dump).length!==0?(gxe(e,t,e.dump,i),d&&(e.dump="&ref_"+f+e.dump)):(pxe(e,t,e.dump),d&&(e.dump="&ref_"+f+" "+e.dump));else if(s==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?sj(e,t-1,e.dump,i):sj(e,t,e.dump,i),d&&(e.dump="&ref_"+f+e.dump)):(hxe(e,t,e.dump),d&&(e.dump="&ref_"+f+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&cxe(e,e.dump,t,a,l);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new _n("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function mxe(e,t){var n=[],r=[],i,a;for(Pb(e,n,r),i=0,a=r.length;i<a;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(a)}function Pb(e,t,n){var r,i,a;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,a=e.length;i<a;i+=1)Pb(e[i],t,n);else for(r=Object.keys(e),i=0,a=r.length;i<a;i+=1)Pb(e[r[i]],t,n)}function vxe(e,t){t=t||{};var n=new axe(t);n.noRefs||mxe(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Wi(n,0,r,!0,!0)?n.dump+`
502
502
  `:""}var yxe=vxe,bxe={dump:yxe};function jb(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var xxe=en,_xe=cP,wxe=pP,Sxe=bP,Oxe=xP,Cxe=wb,Exe=VP.load,Txe=VP.loadAll,kxe=bxe.dump,Db=_n,Axe={binary:CP,float:yP,map:hP,null:gP,pairs:TP,set:kP,timestamp:SP,bool:mP,int:vP,merge:OP,omap:EP,seq:dP,str:fP},Pxe=jb("safeLoad","load"),jxe=jb("safeLoadAll","loadAll"),Dxe=jb("safeDump","dump"),uj={Type:xxe,Schema:_xe,FAILSAFE_SCHEMA:wxe,JSON_SCHEMA:Sxe,CORE_SCHEMA:Oxe,DEFAULT_SCHEMA:Cxe,load:Exe,loadAll:Txe,dump:kxe,YAMLException:Db,types:Axe,safeLoad:Pxe,safeLoadAll:jxe,safeDump:Dxe},cj;(()=>{var e={470:i=>{function a(l){if(typeof l!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(l))}function o(l,u){for(var c,f="",d=0,h=-1,p=0,m=0;m<=l.length;++m){if(m<l.length)c=l.charCodeAt(m);else{if(c===47)break;c=47}if(c===47){if(!(h===m-1||p===1))if(h!==m-1&&p===2){if(f.length<2||d!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var v=f.lastIndexOf("/");if(v!==f.length-1){v===-1?(f="",d=0):d=(f=f.slice(0,v)).length-1-f.lastIndexOf("/"),h=m,p=0;continue}}else if(f.length===2||f.length===1){f="",d=0,h=m,p=0;continue}}u&&(f.length>0?f+="/..":f="..",d=2)}else f.length>0?f+="/"+l.slice(h+1,m):f=l.slice(h+1,m),d=m-h-1;h=m,p=0}else c===46&&p!==-1?++p:p=-1}return f}var s={resolve:function(){for(var l,u="",c=!1,f=arguments.length-1;f>=-1&&!c;f--){var d;f>=0?d=arguments[f]:(l===void 0&&(l=process.cwd()),d=l),a(d),d.length!==0&&(u=d+"/"+u,c=d.charCodeAt(0)===47)}return u=o(u,!c),c?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(l){if(a(l),l.length===0)return".";var u=l.charCodeAt(0)===47,c=l.charCodeAt(l.length-1)===47;return(l=o(l,!u)).length!==0||u||(l="."),l.length>0&&c&&(l+="/"),u?"/"+l:l},isAbsolute:function(l){return a(l),l.length>0&&l.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var l,u=0;u<arguments.length;++u){var c=arguments[u];a(c),c.length>0&&(l===void 0?l=c:l+="/"+c)}return l===void 0?".":s.normalize(l)},relative:function(l,u){if(a(l),a(u),l===u||(l=s.resolve(l))===(u=s.resolve(u)))return"";for(var c=1;c<l.length&&l.charCodeAt(c)===47;++c);for(var f=l.length,d=f-c,h=1;h<u.length&&u.charCodeAt(h)===47;++h);for(var p=u.length-h,m=d<p?d:p,v=-1,y=0;y<=m;++y){if(y===m){if(p>m){if(u.charCodeAt(h+y)===47)return u.slice(h+y+1);if(y===0)return u.slice(h+y)}else d>m&&(l.charCodeAt(c+y)===47?v=y:y===0&&(v=0));break}var b=l.charCodeAt(c+y);if(b!==u.charCodeAt(h+y))break;b===47&&(v=y)}var _="";for(y=c+v+1;y<=f;++y)y!==f&&l.charCodeAt(y)!==47||(_.length===0?_+="..":_+="/..");return _.length>0?_+u.slice(h+v):(h+=v,u.charCodeAt(h)===47&&++h,u.slice(h))},_makeLong:function(l){return l},dirname:function(l){if(a(l),l.length===0)return".";for(var u=l.charCodeAt(0),c=u===47,f=-1,d=!0,h=l.length-1;h>=1;--h)if((u=l.charCodeAt(h))===47){if(!d){f=h;break}}else d=!1;return f===-1?c?"/":".":c&&f===1?"//":l.slice(0,f)},basename:function(l,u){if(u!==void 0&&typeof u!="string")throw new TypeError('"ext" argument must be a string');a(l);var c,f=0,d=-1,h=!0;if(u!==void 0&&u.length>0&&u.length<=l.length){if(u.length===l.length&&u===l)return"";var p=u.length-1,m=-1;for(c=l.length-1;c>=0;--c){var v=l.charCodeAt(c);if(v===47){if(!h){f=c+1;break}}else m===-1&&(h=!1,m=c+1),p>=0&&(v===u.charCodeAt(p)?--p==-1&&(d=c):(p=-1,d=m))}return f===d?d=m:d===-1&&(d=l.length),l.slice(f,d)}for(c=l.length-1;c>=0;--c)if(l.charCodeAt(c)===47){if(!h){f=c+1;break}}else d===-1&&(h=!1,d=c+1);return d===-1?"":l.slice(f,d)},extname:function(l){a(l);for(var u=-1,c=0,f=-1,d=!0,h=0,p=l.length-1;p>=0;--p){var m=l.charCodeAt(p);if(m!==47)f===-1&&(d=!1,f=p+1),m===46?u===-1?u=p:h!==1&&(h=1):u!==-1&&(h=-1);else if(!d){c=p+1;break}}return u===-1||f===-1||h===0||h===1&&u===f-1&&u===c+1?"":l.slice(u,f)},format:function(l){if(l===null||typeof l!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof l);return function(u,c){var f=c.dir||c.root,d=c.base||(c.name||"")+(c.ext||"");return f?f===c.root?f+d:f+"/"+d:d}(0,l)},parse:function(l){a(l);var u={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return u;var c,f=l.charCodeAt(0),d=f===47;d?(u.root="/",c=1):c=0;for(var h=-1,p=0,m=-1,v=!0,y=l.length-1,b=0;y>=c;--y)if((f=l.charCodeAt(y))!==47)m===-1&&(v=!1,m=y+1),f===46?h===-1?h=y:b!==1&&(b=1):h!==-1&&(b=-1);else if(!v){p=y+1;break}return h===-1||m===-1||b===0||b===1&&h===m-1&&h===p+1?m!==-1&&(u.base=u.name=p===0&&d?l.slice(1,m):l.slice(p,m)):(p===0&&d?(u.name=l.slice(1,h),u.base=l.slice(1,m)):(u.name=l.slice(p,h),u.base=l.slice(p,m)),u.ext=l.slice(h,m)),p>0?u.dir=l.slice(0,p-1):d&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,i.exports=s}},t={};function n(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.d=(i,a)=>{for(var o in a)n.o(a,o)&&!n.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:a[o]})},n.o=(i,a)=>Object.prototype.hasOwnProperty.call(i,a),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>d,Utils:()=>I}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const a=/^\w[\w\d+.-]*$/,o=/^\//,s=/^\/\//;function l(A,j){if(!A.scheme&&j)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${A.authority}", path: "${A.path}", query: "${A.query}", fragment: "${A.fragment}"}`);if(A.scheme&&!a.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!o.test(A.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}const u="",c="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{constructor(j,P,$,M,B,R=!1){li(this,"scheme");li(this,"authority");li(this,"path");li(this,"query");li(this,"fragment");typeof j=="object"?(this.scheme=j.scheme||u,this.authority=j.authority||u,this.path=j.path||u,this.query=j.query||u,this.fragment=j.fragment||u):(this.scheme=function(W,V){return W||V?W:"file"}(j,R),this.authority=P||u,this.path=function(W,V){switch(W){case"https":case"http":case"file":V?V[0]!==c&&(V=c+V):V=c}return V}(this.scheme,$||u),this.query=M||u,this.fragment=B||u,l(this,R))}static isUri(j){return j instanceof d||!!j&&typeof j.authority=="string"&&typeof j.fragment=="string"&&typeof j.path=="string"&&typeof j.query=="string"&&typeof j.scheme=="string"&&typeof j.fsPath=="string"&&typeof j.with=="function"&&typeof j.toString=="function"}get fsPath(){return b(this)}with(j){if(!j)return this;let{scheme:P,authority:$,path:M,query:B,fragment:R}=j;return P===void 0?P=this.scheme:P===null&&(P=u),$===void 0?$=this.authority:$===null&&($=u),M===void 0?M=this.path:M===null&&(M=u),B===void 0?B=this.query:B===null&&(B=u),R===void 0?R=this.fragment:R===null&&(R=u),P===this.scheme&&$===this.authority&&M===this.path&&B===this.query&&R===this.fragment?this:new p(P,$,M,B,R)}static parse(j,P=!1){const $=f.exec(j);return $?new p($[2]||u,O($[4]||u),O($[5]||u),O($[7]||u),O($[9]||u),P):new p(u,u,u,u,u)}static file(j){let P=u;if(i&&(j=j.replace(/\\/g,c)),j[0]===c&&j[1]===c){const $=j.indexOf(c,2);$===-1?(P=j.substring(2),j=c):(P=j.substring(2,$),j=j.substring($)||c)}return new p("file",P,j,u,u)}static from(j){const P=new p(j.scheme,j.authority,j.path,j.query,j.fragment);return l(P,!0),P}toString(j=!1){return _(this,j)}toJSON(){return this}static revive(j){if(j){if(j instanceof d)return j;{const P=new p(j);return P._formatted=j.external,P._fsPath=j._sep===h?j.fsPath:null,P}}return j}}const h=i?1:void 0;class p extends d{constructor(){super(...arguments);li(this,"_formatted",null);li(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=b(this)),this._fsPath}toString(P=!1){return P?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const P={$mid:1};return this._fsPath&&(P.fsPath=this._fsPath,P._sep=h),this._formatted&&(P.external=this._formatted),this.path&&(P.path=this.path),this.scheme&&(P.scheme=this.scheme),this.authority&&(P.authority=this.authority),this.query&&(P.query=this.query),this.fragment&&(P.fragment=this.fragment),P}}const m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function v(A,j,P){let $,M=-1;for(let B=0;B<A.length;B++){const R=A.charCodeAt(B);if(R>=97&&R<=122||R>=65&&R<=90||R>=48&&R<=57||R===45||R===46||R===95||R===126||j&&R===47||P&&R===91||P&&R===93||P&&R===58)M!==-1&&($+=encodeURIComponent(A.substring(M,B)),M=-1),$!==void 0&&($+=A.charAt(B));else{$===void 0&&($=A.substr(0,B));const W=m[R];W!==void 0?(M!==-1&&($+=encodeURIComponent(A.substring(M,B)),M=-1),$+=W):M===-1&&(M=B)}}return M!==-1&&($+=encodeURIComponent(A.substring(M))),$!==void 0?$:A}function y(A){let j;for(let P=0;P<A.length;P++){const $=A.charCodeAt(P);$===35||$===63?(j===void 0&&(j=A.substr(0,P)),j+=m[$]):j!==void 0&&(j+=A[P])}return j!==void 0?j:A}function b(A,j){let P;return P=A.authority&&A.path.length>1&&A.scheme==="file"?`//${A.authority}${A.path}`:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?A.path[1].toLowerCase()+A.path.substr(2):A.path,i&&(P=P.replace(/\//g,"\\")),P}function _(A,j){const P=j?y:v;let $="",{scheme:M,authority:B,path:R,query:W,fragment:V}=A;if(M&&($+=M,$+=":"),(B||M==="file")&&($+=c,$+=c),B){let F=B.indexOf("@");if(F!==-1){const H=B.substr(0,F);B=B.substr(F+1),F=H.lastIndexOf(":"),F===-1?$+=P(H,!1,!1):($+=P(H.substr(0,F),!1,!1),$+=":",$+=P(H.substr(F+1),!1,!0)),$+="@"}B=B.toLowerCase(),F=B.lastIndexOf(":"),F===-1?$+=P(B,!1,!0):($+=P(B.substr(0,F),!1,!0),$+=B.substr(F))}if(R){if(R.length>=3&&R.charCodeAt(0)===47&&R.charCodeAt(2)===58){const F=R.charCodeAt(1);F>=65&&F<=90&&(R=`/${String.fromCharCode(F+32)}:${R.substr(3)}`)}else if(R.length>=2&&R.charCodeAt(1)===58){const F=R.charCodeAt(0);F>=65&&F<=90&&(R=`${String.fromCharCode(F+32)}:${R.substr(2)}`)}$+=P(R,!0,!1)}return W&&($+="?",$+=P(W,!1,!1)),V&&($+="#",$+=j?V:v(V,!1,!1)),$}function S(A){try{return decodeURIComponent(A)}catch{return A.length>3?A.substr(0,3)+S(A.substr(3)):A}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function O(A){return A.match(w)?A.replace(w,j=>S(j)):A}var C=n(470);const k=C.posix||C,D="/";var I;(function(A){A.joinPath=function(j,...P){return j.with({path:k.join(j.path,...P)})},A.resolvePath=function(j,...P){let $=j.path,M=!1;$[0]!==D&&($=D+$,M=!0);let B=k.resolve($,...P);return M&&B[0]===D&&!j.authority&&(B=B.substring(1)),j.with({path:B})},A.dirname=function(j){if(j.path.length===0||j.path===D)return j;let P=k.dirname(j.path);return P.length===1&&P.charCodeAt(0)===46&&(P=""),j.with({path:P})},A.basename=function(j){return k.basename(j.path)},A.extname=function(j){return k.extname(j.path)}})(I||(I={}))})(),cj=r})();const{URI:Vi,Utils:Mwe}=cj;function $xe(e){return e===8?1:e===4?2:e===2?3:4}function Ixe(e){return e===1?8:e===2?4:e===3?2:1}function Mxe(e){return e}function Lxe(e){return e}function $b(e){return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function fn(e){return{startLineNumber:e.start.line+1,startColumn:e.start.character+1,endLineNumber:e.end.line+1,endColumn:e.end.character+1}}function Nxe(e){return{location:{range:$b(e),uri:String(e.resource)},message:e.message}}function Fxe(e){return{...fn(e.location.range),message:e.message,resource:Vi.parse(e.location.uri)}}function Rxe(e){const t={message:e.message,range:$b(e),severity:$xe(e.severity)};return typeof e.code=="string"?t.code=e.code:e.code!=null&&(t.code=e.code.value,t.codeDescription={href:String(e.code.target)}),e.relatedInformation&&(t.relatedInformation=e.relatedInformation.map(Nxe)),e.tags&&(t.tags=e.tags.map(Mxe)),e.source!=null&&(t.source=e.source),t}function fj(e,t){var n;const r={...fn(e.range),message:e.message,severity:e.severity?Ixe(e.severity):(n=void 0)!==null&&n!==void 0?n:8};return e.code!=null&&(r.code=e.codeDescription==null?String(e.code):{value:String(e.code),target:Vi.parse(e.codeDescription.href)}),e.relatedInformation&&(r.relatedInformation=e.relatedInformation.map(Fxe)),e.tags&&(r.tags=e.tags.map(Lxe)),e.source!=null&&(r.source=e.source),r}function Ib(e){return{range:fn(e.range),text:e.newText}}function Bxe(e){const t={};return e.ignoreIfExists!=null&&(t.ignoreIfExists=e.ignoreIfExists),e.ignoreIfNotExists!=null&&(t.ignoreIfNotExists=e.ignoreIfNotExists),e.overwrite!=null&&(t.overwrite=e.overwrite),e.recursive!=null&&(t.recursive=e.recursive),t}function zxe(e){const t=e.kind==="create"?{newResource:Vi.parse(e.uri)}:e.kind==="delete"?{oldResource:Vi.parse(e.uri)}:{oldResource:Vi.parse(e.oldUri),newResource:Vi.parse(e.newUri)};return e.options&&(t.options=Bxe(e.options)),t}function dj(e,t,n){return{resource:Vi.parse(t),versionId:n,textEdit:Ib(e)}}function Wxe(e){var t;const n=[];if(e.changes)for(const[r,i]of Object.entries(e.changes))for(const a of i)n.push(dj(a,r));if(e.documentChanges)for(const r of e.documentChanges)if("textDocument"in r)for(const i of r.edits)n.push(dj(i,r.textDocument.uri,(t=r.textDocument.version)!==null&&t!==void 0?t:void 0));else n.push(zxe(r));return{edits:n}}function Vxe(e,t){const n={title:e.title,isPreferred:e.isPreferred};return e.diagnostics&&(n.diagnostics=e.diagnostics.map(r=>fj(r))),e.disabled&&(n.disabled=e.disabled.reason),e.edit&&(n.edit=Wxe(e.edit)),e.isPreferred!=null&&(n.isPreferred=e.isPreferred),e.kind&&(n.kind=e.kind),n}function Lwe(e){return e}function Uxe(e){const t={diagnostics:e.markers.map(Rxe),triggerKind:e.trigger};return e.only!=null&&(t.only=[e.only]),t}function Hxe(e){const t={title:e.title,id:e.command};return e.arguments&&(t.arguments=e.arguments),t}function Gxe(e){return e===1?18:e===2?0:e===3?1:e===4?2:e===5?3:e===6?4:e===7?5:e===8?7:e===9?8:e===10?9:e===11?12:e===12?13:e===13?15:e===14?17:e===15?27:e===16?19:e===17?20:e===18?21:e===19?23:e===20?16:e===21?14:e===22?6:e===23?10:e===24?11:24}function qxe(e){return e}function hj(e){return{value:e.value}}function Yxe(e){return{range:fn(e.range),text:e.newText}}function Kxe(e){return"range"in e?fn(e.range):"insert"in e&&"replace"in e?{insert:fn(e.insert),replace:fn(e.replace)}:fn(e)}function Xxe(e,t){var n,r,i,a,o;const s=(n=t.itemDefaults)!==null&&n!==void 0?n:{},l=(r=e.textEdit)!==null&&r!==void 0?r:s.editRange,u=(i=e.commitCharacters)!==null&&i!==void 0?i:s.commitCharacters,c=(a=e.insertTextFormat)!==null&&a!==void 0?a:s.insertTextFormat,f=(o=e.insertTextMode)!==null&&o!==void 0?o:s.insertTextMode;let d=e.insertText,h;l?(h=Kxe(l),"newText"in l&&(d=l.newText)):h={...t.range};const p={insertText:d??e.label,kind:e.kind==null?18:Gxe(e.kind),label:e.label,range:h};return e.additionalTextEdits&&(p.additionalTextEdits=e.additionalTextEdits.map(Yxe)),e.command&&(p.command=Hxe(e.command)),u&&(p.commitCharacters=u),e.detail!=null&&(p.detail=e.detail),typeof e.documentation=="string"?p.documentation=e.documentation:e.documentation&&(p.documentation=hj(e.documentation)),e.filterText!=null&&(p.filterText=e.filterText),c===2?p.insertTextRules=4:f===2&&(p.insertTextRules=1),e.preselect!=null&&(p.preselect=e.preselect),e.sortText!=null&&(p.sortText=e.sortText),e.tags&&(p.tags=e.tags.map(qxe)),p}function Zxe(e,t){return{incomplete:!!e.isIncomplete,suggestions:e.items.map(n=>Xxe(n,{range:t.range,itemDefaults:e.itemDefaults}))}}function Jxe(e){return e===1?0:e===2?1:e===3?2:e===4?3:e===5?4:e===6?5:e===7?6:e===8?7:e===9?8:e===10?9:e===11?10:e===12?11:e===13?12:e===14?13:e===15?14:e===16?15:e===17?16:e===18?17:e===19?18:e===20?19:e===21?20:e===22?21:e===23?22:e===24?23:e===25?24:25}function Qxe(e){return e}function pj(e){var t,n,r;const i={detail:(t=e.detail)!==null&&t!==void 0?t:"",kind:Jxe(e.kind),name:e.name,range:fn(e.range),selectionRange:fn(e.selectionRange),tags:(r=(n=e.tags)===null||n===void 0?void 0:n.map(Qxe))!==null&&r!==void 0?r:[]};return e.children&&(i.children=e.children.map(pj)),i}function e5e(e){const t={start:e.startLine+1,end:e.endLine+1};return e.kind!=null&&(t.kind={value:e.kind}),t}function t5e(e){return{insertSpaces:e.insertSpaces,tabSize:e.tabSize}}function gj(e){return typeof e=="string"?{value:e}:{value:`\`\`\`${e.language}
503
503
  ${e.value}
504
- \`\`\``}}function n5e(e){return typeof e=="string"||"language"in e?[gj(e)]:Array.isArray(e)?e.map(gj):[hj(e)]}function r5e(e){const t={contents:n5e(e.contents)};return e.range&&(t.range=fn(e.range)),t}function Ru(e){return{character:e.column-1,line:e.lineNumber-1}}function i5e(e){const t={range:fn(e.range)};return e.tooltip!=null&&(t.tooltip=e.tooltip),e.target!=null&&(t.url=Vi.parse(e.target)),t}function a5e(e){const t={range:fn(e.targetRange),targetSelectionRange:fn(e.targetSelectionRange),uri:Vi.parse(e.targetUri)};return e.originSelectionRange&&(t.originSelectionRange=fn(e.originSelectionRange)),t}function o5e(e){const t=[];let n=e;for(;n;)t.push({range:fn(n.range)}),n=n.parent;return t}function s5e(e,t,n){const r=new Map,i=f=>{const d=f.getLanguageId();return Array.isArray(t)?t.includes(d):t===d},a=async f=>{const d=f.getVersionId(),h=await n.provideMarkerData(f);d===f.getVersionId()&&!f.isDisposed()&&i(f)&&e.editor.setModelMarkers(f,n.owner,h??[])},o=f=>{if(!i(f))return;let d;const h=f.onDidChangeContent(()=>{clearTimeout(d),d=setTimeout(()=>{a(f)},500)});r.set(f,{dispose(){clearTimeout(d),h.dispose()}}),a(f)},s=f=>{e.editor.setModelMarkers(f,n.owner,[]);const d=r.get(f);d&&(d.dispose(),r.delete(f))},l=e.editor.onDidCreateModel(o),u=e.editor.onWillDisposeModel(f=>{var d;s(f),(d=n.doReset)==null||d.call(n,f)}),c=e.editor.onDidChangeModelLanguage(({model:f})=>{var d;s(f),o(f),(d=n.doReset)==null||d.call(n,f)});for(const f of e.editor.getModels())o(f);return{dispose(){for(const f of r.keys())s(f);l.dispose(),u.dispose(),c.dispose()},async revalidate(){await Promise.all(e.editor.getModels().map(a))}}}function l5e(e,t){let{createData:n,interval:r=3e4,label:i,moduleId:a,stopWhenIdleFor:o=12e4}=t,s,l=0,u=!1;const c=()=>{s&&(s.dispose(),s=void 0)},f=setInterval(()=>{if(!s)return;Date.now()-l>o&&c()},r);return{dispose(){u=!0,clearInterval(f),c()},getWorker(...d){if(u)throw new Error("Worker manager has been disposed");return l=Date.now(),s||(s=e.editor.createWebWorker({createData:n,label:i,moduleId:a})),s.withSyncedResources(d)},updateCreateData(d){n=d,c()}}}function u5e(e,t){const n={completion:!0,customTags:[],enableSchemaRequest:!1,format:!0,isKubernetes:!1,hover:!0,schemas:[],validate:!0,yamlVersion:"1.2",...t};e.languages.register({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"]});const r=l5e(e,{label:"yaml",moduleId:"monaco-yaml/yaml.worker",createData:n}),i=s5e(e,"yaml",{owner:"yaml",async provideMarkerData(o){const l=await(await r.getWorker(o.uri)).doValidation(String(o.uri));return l==null?void 0:l.map(u=>fj(u))},async doReset(o){await(await r.getWorker(o.uri)).resetSchema(String(o.uri))}}),a=[r,i,e.languages.registerCompletionItemProvider("yaml",{triggerCharacters:[" ",":"],async provideCompletionItems(o,s){const l=o.getWordUntilPosition(s),c=await(await r.getWorker(o.uri)).doComplete(String(o.uri),Ru(s));if(c)return Zxe(c,{range:{startLineNumber:s.lineNumber,startColumn:l.startColumn,endLineNumber:s.lineNumber,endColumn:l.endColumn}})}}),e.languages.registerHoverProvider("yaml",{async provideHover(o,s){const u=await(await r.getWorker(o.uri)).doHover(String(o.uri),Ru(s));if(u)return r5e(u)}}),e.languages.registerDefinitionProvider("yaml",{async provideDefinition(o,s){const u=await(await r.getWorker(o.uri)).doDefinition(String(o.uri),Ru(s));return u==null?void 0:u.map(a5e)}}),e.languages.registerDocumentSymbolProvider("yaml",{displayName:"yaml",async provideDocumentSymbols(o){const l=await(await r.getWorker(o.uri)).findDocumentSymbols(String(o.uri));return l==null?void 0:l.map(pj)}}),e.languages.registerDocumentFormattingEditProvider("yaml",{displayName:"yaml",async provideDocumentFormattingEdits(o){const l=await(await r.getWorker(o.uri)).format(String(o.uri));return l==null?void 0:l.map(Ib)}}),e.languages.registerLinkProvider("yaml",{async provideLinks(o){const l=await(await r.getWorker(o.uri)).findLinks(String(o.uri));if(l)return{links:l.map(i5e)}}}),e.languages.registerCodeActionProvider("yaml",{async provideCodeActions(o,s,l){const c=await(await r.getWorker(o.uri)).getCodeAction(String(o.uri),$b(s),Uxe(l));if(c)return{actions:c.map(f=>Vxe(f)),dispose(){}}}}),e.languages.registerFoldingRangeProvider("yaml",{async provideFoldingRanges(o){const l=await(await r.getWorker(o.uri)).getFoldingRanges(String(o.uri));return l==null?void 0:l.map(e5e)}}),e.languages.setLanguageConfiguration("yaml",{comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]}),e.languages.registerOnTypeFormattingEditProvider("yaml",{autoFormatTriggerCharacters:[`
504
+ \`\`\``}}function n5e(e){return typeof e=="string"||"language"in e?[gj(e)]:Array.isArray(e)?e.map(gj):[hj(e)]}function r5e(e){const t={contents:n5e(e.contents)};return e.range&&(t.range=fn(e.range)),t}function Ru(e){return{character:e.column-1,line:e.lineNumber-1}}function i5e(e){const t={range:fn(e.range)};return e.tooltip!=null&&(t.tooltip=e.tooltip),e.target!=null&&(t.url=Vi.parse(e.target)),t}function a5e(e){const t={range:fn(e.targetRange),targetSelectionRange:fn(e.targetSelectionRange),uri:Vi.parse(e.targetUri)};return e.originSelectionRange&&(t.originSelectionRange=fn(e.originSelectionRange)),t}function o5e(e){const t=[];let n=e;for(;n;)t.push({range:fn(n.range)}),n=n.parent;return t}function s5e(e,t,n){const r=new Map,i=f=>{const d=f.getLanguageId();return Array.isArray(t)?t.includes(d):t===d},a=async f=>{const d=f.getVersionId(),h=await n.provideMarkerData(f);!f.isDisposed()&&d===f.getVersionId()&&i(f)&&e.editor.setModelMarkers(f,n.owner,h??[])},o=f=>{if(!i(f))return;let d;const h=f.onDidChangeContent(()=>{clearTimeout(d),d=setTimeout(()=>{a(f)},500)});r.set(f,{dispose(){clearTimeout(d),h.dispose()}}),a(f)},s=f=>{e.editor.setModelMarkers(f,n.owner,[]);const d=r.get(f);d&&(d.dispose(),r.delete(f))},l=e.editor.onDidCreateModel(o),u=e.editor.onWillDisposeModel(f=>{var d;s(f),(d=n.doReset)==null||d.call(n,f)}),c=e.editor.onDidChangeModelLanguage(({model:f})=>{var d;s(f),o(f),(d=n.doReset)==null||d.call(n,f)});for(const f of e.editor.getModels())o(f);return{dispose(){for(const f of r.keys())s(f);l.dispose(),u.dispose(),c.dispose()},async revalidate(){await Promise.all(e.editor.getModels().map(a))}}}function l5e(e,t){let{createData:n,interval:r=3e4,label:i,moduleId:a,stopWhenIdleFor:o=12e4}=t,s,l=0,u=!1;const c=()=>{s&&(s.dispose(),s=void 0)},f=setInterval(()=>{if(!s)return;Date.now()-l>o&&c()},r);return{dispose(){u=!0,clearInterval(f),c()},getWorker(...d){if(u)throw new Error("Worker manager has been disposed");return l=Date.now(),s||(s=e.editor.createWebWorker({createData:n,label:i,moduleId:a})),s.withSyncedResources(d)},updateCreateData(d){n=d,c()}}}function u5e(e,t){const n={completion:!0,customTags:[],enableSchemaRequest:!1,format:!0,isKubernetes:!1,hover:!0,schemas:[],validate:!0,yamlVersion:"1.2",...t};e.languages.register({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"]});const r=l5e(e,{label:"yaml",moduleId:"monaco-yaml/yaml.worker",createData:n}),i=s5e(e,"yaml",{owner:"yaml",async provideMarkerData(o){const l=await(await r.getWorker(o.uri)).doValidation(String(o.uri));return l==null?void 0:l.map(u=>fj(u))},async doReset(o){await(await r.getWorker(o.uri)).resetSchema(String(o.uri))}}),a=[r,i,e.languages.registerCompletionItemProvider("yaml",{triggerCharacters:[" ",":"],async provideCompletionItems(o,s){const l=o.getWordUntilPosition(s),c=await(await r.getWorker(o.uri)).doComplete(String(o.uri),Ru(s));if(c)return Zxe(c,{range:{startLineNumber:s.lineNumber,startColumn:l.startColumn,endLineNumber:s.lineNumber,endColumn:l.endColumn}})}}),e.languages.registerHoverProvider("yaml",{async provideHover(o,s){const u=await(await r.getWorker(o.uri)).doHover(String(o.uri),Ru(s));if(u)return r5e(u)}}),e.languages.registerDefinitionProvider("yaml",{async provideDefinition(o,s){const u=await(await r.getWorker(o.uri)).doDefinition(String(o.uri),Ru(s));return u==null?void 0:u.map(a5e)}}),e.languages.registerDocumentSymbolProvider("yaml",{displayName:"yaml",async provideDocumentSymbols(o){const l=await(await r.getWorker(o.uri)).findDocumentSymbols(String(o.uri));return l==null?void 0:l.map(pj)}}),e.languages.registerDocumentFormattingEditProvider("yaml",{displayName:"yaml",async provideDocumentFormattingEdits(o){const l=await(await r.getWorker(o.uri)).format(String(o.uri));return l==null?void 0:l.map(Ib)}}),e.languages.registerLinkProvider("yaml",{async provideLinks(o){const l=await(await r.getWorker(o.uri)).findLinks(String(o.uri));if(l)return{links:l.map(i5e)}}}),e.languages.registerCodeActionProvider("yaml",{async provideCodeActions(o,s,l){const c=await(await r.getWorker(o.uri)).getCodeAction(String(o.uri),$b(s),Uxe(l));if(c)return{actions:c.map(f=>Vxe(f)),dispose(){}}}}),e.languages.registerFoldingRangeProvider("yaml",{async provideFoldingRanges(o){const l=await(await r.getWorker(o.uri)).getFoldingRanges(String(o.uri));return l==null?void 0:l.map(e5e)}}),e.languages.setLanguageConfiguration("yaml",{comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]}),e.languages.registerOnTypeFormattingEditProvider("yaml",{autoFormatTriggerCharacters:[`
505
505
  `],async provideOnTypeFormattingEdits(o,s,l,u){const f=await(await r.getWorker(o.uri)).doDocumentOnTypeFormatting(String(o.uri),Ru(s),l,t5e(u));return f==null?void 0:f.map(Ib)}}),e.languages.registerSelectionRangeProvider("yaml",{async provideSelectionRanges(o,s){const u=await(await r.getWorker(o.uri)).getSelectionRanges(String(o.uri),s.map(Ru));return u==null?void 0:u.map(o5e)}})];return{dispose(){for(const o of a)o.dispose()},async update(o){r.updateCreateData(Object.assign(n,o)),await i.revalidate()}}}function c5e(e){const t=di(e),{onFocus:n,onBlur:r,language:i,value:a,onChange:o,setError:s,isReadOnly:l}=e,[u,c]=x.useState(!1),f=x.useRef(null),d=x.useRef(null),h=x.useCallback(b=>{if(!f.current)return;f.current.style.minHeight=`${mj+bj}px`;const _=b.split(`
506
506
  `).length;f.current.style.height=`${_*mj+bj}px`},[]),p=x.useRef({});x.useEffect(()=>{if(d.current){const b=Ki.editor.create(d.current,{lineNumbers:e.lineNumbers?"on":"off",lineDecorationsWidth:e.lineNumbers?void 0:0,theme:"data-editor-dark",padding:{top:vj,bottom:yj},fontSize:14,fontFamily:"RedHatMono",scrollBeyondLastLine:!1,minimap:{enabled:!1},renderLineHighlightOnlyWhenFocus:!0,scrollbar:{alwaysConsumeMouseWheel:!1}});return p.current.editor=b,()=>b.dispose()}},[e.lineNumbers]),x.useEffect(()=>{var _;const b=(_=p==null?void 0:p.current)==null?void 0:_.editor;b&&(b.onDidFocusEditorText(()=>n==null?void 0:n()),b.onDidBlurEditorText(()=>r==null?void 0:r()))},[n,r]),x.useEffect(()=>{var w;const b=(w=p==null?void 0:p.current)==null?void 0:w.editor;if(!b)return;const _=b.getModel();if(!_)return;const S=_.onDidChangeContent(()=>{const O=b.getValue()??"";o(O),h(O)});return()=>S.dispose()},[o,h]),x.useEffect(()=>{var _;const b=(_=p==null?void 0:p.current)==null?void 0:_.editor;b&&b.getValue()!==a&&(b.setValue(a),h(a))},[a,h]),x.useEffect(()=>{var _;const b=(_=p==null?void 0:p.current)==null?void 0:_.editor;b&&b.updateOptions({readOnly:l})},[l]);const[m,v]=x.useState(!1);x.useEffect(()=>{var w;const b=(w=p==null?void 0:p.current)==null?void 0:w.editor;if(!b)return;const _=b.getModel();if(!_)return;Ki.editor.setModelLanguage(_,i);const S=Ki.editor.onDidChangeMarkers(()=>{const O=Ki.editor.getModelMarkers({owner:_.getLanguageId(),resource:_.uri});v(O.length>0),s(O.length>0?O.map(C=>C.message).join(`
507
507
  `):void 0)});return()=>S.dispose()},[i,s]),Wo(d,()=>{var _;const b=(_=p==null?void 0:p.current)==null?void 0:_.editor;b&&(b.layout(),c(!0))});const y=Ra();return x.useEffect(()=>{var _;const b=(_=p==null?void 0:p.current)==null?void 0:_.editor;b&&b.updateOptions({theme:y.activeTheme==="dark"?"data-editor-dark":"data-editor-light"})},[y.activeTheme]),g.jsx(f5e,{className:e.className,"aria-invalid":m?"true":void 0,ref:f,children:g.jsx(d5e,{id:t,"data-cy":t,ref:d,className:"data-editor","aria-disabled":u?"false":"true"})})}const f5e=ke.div`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ansible/ansible-ui-framework",
3
3
  "description": "A framework for building applications using PatternFly.",
4
- "version": "2.4.2575",
4
+ "version": "2.4.2576",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",