@umbraco-cms/backoffice 14.0.0--preview005-a87dc391 → 14.0.0--preview005-6531679d
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-cms/custom-elements.json +4 -4
- package/dist-cms/external/marked/index.js +1 -1
- package/dist-cms/external/uui/index.js +455 -913
- package/dist-cms/packages/core/components/dropdown/dropdown.element.d.ts +3 -3
- package/dist-cms/packages/core/components/dropdown/dropdown.element.js +1 -1
- package/dist-cms/packages/core/extension-registry/models/workspace-action.model.d.ts +3 -3
- package/dist-cms/packages/log-viewer/workspace/views/search/components/log-viewer-level-tag.element.d.ts +3 -3
- package/dist-cms/packages/user/utils.d.ts +3 -3
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -1267,12 +1267,12 @@
|
|
|
1267
1267
|
},
|
|
1268
1268
|
{
|
|
1269
1269
|
"name": "look",
|
|
1270
|
-
"type": "
|
|
1270
|
+
"type": "UUIInterfaceLook",
|
|
1271
1271
|
"default": "\"default\""
|
|
1272
1272
|
},
|
|
1273
1273
|
{
|
|
1274
1274
|
"name": "color",
|
|
1275
|
-
"type": "
|
|
1275
|
+
"type": "UUIInterfaceColor",
|
|
1276
1276
|
"default": "\"default\""
|
|
1277
1277
|
},
|
|
1278
1278
|
{
|
|
@@ -1310,13 +1310,13 @@
|
|
|
1310
1310
|
{
|
|
1311
1311
|
"name": "look",
|
|
1312
1312
|
"attribute": "look",
|
|
1313
|
-
"type": "
|
|
1313
|
+
"type": "UUIInterfaceLook",
|
|
1314
1314
|
"default": "\"default\""
|
|
1315
1315
|
},
|
|
1316
1316
|
{
|
|
1317
1317
|
"name": "color",
|
|
1318
1318
|
"attribute": "color",
|
|
1319
|
-
"type": "
|
|
1319
|
+
"type": "UUIInterfaceColor",
|
|
1320
1320
|
"default": "\"default\""
|
|
1321
1321
|
},
|
|
1322
1322
|
{
|
|
@@ -41,5 +41,5 @@ ${n}</blockquote>
|
|
|
41
41
|
${n}</tr>
|
|
42
42
|
`}tablecell(n,e){const t=e.header?"th":"td";return(e.align?`<${t} align="${e.align}">`:`<${t}>`)+n+`</${t}>
|
|
43
43
|
`}strong(n){return`<strong>${n}</strong>`}em(n){return`<em>${n}</em>`}codespan(n){return`<code>${n}</code>`}br(){return"<br>"}del(n){return`<del>${n}</del>`}link(n,e,t){const r=V(n);if(r===null)return t;n=r;let i='<a href="'+n+'"';return e&&(i+=' title="'+e+'"'),i+=">"+t+"</a>",i}image(n,e,t){const r=V(n);if(r===null)return t;n=r;let i=`<img src="${n}" alt="${t}"`;return e&&(i+=` title="${e}"`),i+=">",i}text(n){return n}}class q{strong(n){return n}em(n){return n}codespan(n){return n}del(n){return n}html(n){return n}text(n){return n}link(n,e,t){return""+t}image(n,e,t){return""+t}br(){return""}}class m{options;renderer;textRenderer;constructor(n){this.options=n||y,this.options.renderer=this.options.renderer||new A,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new q}static parse(n,e){return new m(e).parse(n)}static parseInline(n,e){return new m(e).parseInline(n)}parse(n,e=!0){let t="";for(let r=0;r<n.length;r++){const i=n[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const s=i,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){t+=l||"";continue}}switch(i.type){case"space":continue;case"hr":{t+=this.renderer.hr();continue}case"heading":{const s=i;t+=this.renderer.heading(this.parseInline(s.tokens),s.depth,ge(this.parseInline(s.tokens,this.textRenderer)));continue}case"code":{const s=i;t+=this.renderer.code(s.text,s.lang,!!s.escaped);continue}case"table":{const s=i;let l="",o="";for(let a=0;a<s.header.length;a++)o+=this.renderer.tablecell(this.parseInline(s.header[a].tokens),{header:!0,align:s.align[a]});l+=this.renderer.tablerow(o);let p="";for(let a=0;a<s.rows.length;a++){const u=s.rows[a];o="";for(let h=0;h<u.length;h++)o+=this.renderer.tablecell(this.parseInline(u[h].tokens),{header:!1,align:s.align[h]});p+=this.renderer.tablerow(o)}t+=this.renderer.table(l,p);continue}case"blockquote":{const s=i,l=this.parse(s.tokens);t+=this.renderer.blockquote(l);continue}case"list":{const s=i,l=s.ordered,o=s.start,p=s.loose;let a="";for(let u=0;u<s.items.length;u++){const h=s.items[u],g=h.checked,w=h.task;let x="";if(h.task){const $=this.renderer.checkbox(!!g);p?h.tokens.length>0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=$+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=$+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:$+" "}):x+=$+" "}x+=this.parse(h.tokens,p),a+=this.renderer.listitem(x,w,!!g)}t+=this.renderer.list(a,l,o);continue}case"html":{const s=i;t+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=i;t+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=i,l=s.tokens?this.parseInline(s.tokens):s.text;for(;r+1<n.length&&n[r+1].type==="text";)s=n[++r],l+=`
|
|
44
|
-
`+(s.tokens?this.parseInline(s.tokens):s.text);t+=e?this.renderer.paragraph(l):l;continue}default:{const s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return t}parseInline(n,e){e=e||this.renderer;let t="";for(let r=0;r<n.length;r++){const i=n[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const s=this.options.extensions.renderers[i.type].call({parser:this},i);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){t+=s||"";continue}}switch(i.type){case"escape":{const s=i;t+=e.text(s.text);break}case"html":{const s=i;t+=e.html(s.text);break}case"link":{const s=i;t+=e.link(s.href,s.title,this.parseInline(s.tokens,e));break}case"image":{const s=i;t+=e.image(s.href,s.title,s.text);break}case"strong":{const s=i;t+=e.strong(this.parseInline(s.tokens,e));break}case"em":{const s=i;t+=e.em(this.parseInline(s.tokens,e));break}case"codespan":{const s=i;t+=e.codespan(s.text);break}case"br":{t+=e.br();break}case"del":{const s=i;t+=e.del(this.parseInline(s.tokens,e));break}case"text":{const s=i;t+=e.text(s.text);break}default:{const s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return t}}class E{options;constructor(n){this.options=n||y}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}}class ce{defaults=L();options=this.setOptions;parse=this.#e(b.lex,m.parse);parseInline=this.#e(b.lexInline,m.parseInline);Parser=m;Renderer=A;TextRenderer=q;Lexer=b;Tokenizer=R;Hooks=E;constructor(...n){this.use(...n)}walkTokens(n,e){let t=[];for(const r of n)switch(t=t.concat(e.call(this,r)),r.type){case"table":{const i=r;for(const s of i.header)t=t.concat(this.walkTokens(s.tokens,e));for(const s of i.rows)for(const l of s)t=t.concat(this.walkTokens(l.tokens,e));break}case"list":{const i=r;t=t.concat(this.walkTokens(i.items,e));break}default:{const i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(s=>{t=t.concat(this.walkTokens(
|
|
44
|
+
`+(s.tokens?this.parseInline(s.tokens):s.text);t+=e?this.renderer.paragraph(l):l;continue}default:{const s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return t}parseInline(n,e){e=e||this.renderer;let t="";for(let r=0;r<n.length;r++){const i=n[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const s=this.options.extensions.renderers[i.type].call({parser:this},i);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){t+=s||"";continue}}switch(i.type){case"escape":{const s=i;t+=e.text(s.text);break}case"html":{const s=i;t+=e.html(s.text);break}case"link":{const s=i;t+=e.link(s.href,s.title,this.parseInline(s.tokens,e));break}case"image":{const s=i;t+=e.image(s.href,s.title,s.text);break}case"strong":{const s=i;t+=e.strong(this.parseInline(s.tokens,e));break}case"em":{const s=i;t+=e.em(this.parseInline(s.tokens,e));break}case"codespan":{const s=i;t+=e.codespan(s.text);break}case"br":{t+=e.br();break}case"del":{const s=i;t+=e.del(this.parseInline(s.tokens,e));break}case"text":{const s=i;t+=e.text(s.text);break}default:{const s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return t}}class E{options;constructor(n){this.options=n||y}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}}class ce{defaults=L();options=this.setOptions;parse=this.#e(b.lex,m.parse);parseInline=this.#e(b.lexInline,m.parseInline);Parser=m;Renderer=A;TextRenderer=q;Lexer=b;Tokenizer=R;Hooks=E;constructor(...n){this.use(...n)}walkTokens(n,e){let t=[];for(const r of n)switch(t=t.concat(e.call(this,r)),r.type){case"table":{const i=r;for(const s of i.header)t=t.concat(this.walkTokens(s.tokens,e));for(const s of i.rows)for(const l of s)t=t.concat(this.walkTokens(l.tokens,e));break}case"list":{const i=r;t=t.concat(this.walkTokens(i.items,e));break}default:{const i=r;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(s=>{const l=i[s].flat(1/0);t=t.concat(this.walkTokens(l,e))}):i.tokens&&(t=t.concat(this.walkTokens(i.tokens,e)))}}return t}use(...n){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(t=>{const r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const s=e.renderers[i.name];s?e.renderers[i.name]=function(...l){let o=i.renderer.apply(this,l);return o===!1&&(o=s.apply(this,l)),o}:e.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=e[i.level];s?s.unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),r.extensions=e),t.renderer){const i=this.defaults.renderer||new A(this.defaults);for(const s in t.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(s==="options")continue;const l=s,o=t.renderer[l],p=i[l];i[l]=(...a)=>{let u=o.apply(i,a);return u===!1&&(u=p.apply(i,a)),u||""}}r.renderer=i}if(t.tokenizer){const i=this.defaults.tokenizer||new R(this.defaults);for(const s in t.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=s,o=t.tokenizer[l],p=i[l];i[l]=(...a)=>{let u=o.apply(i,a);return u===!1&&(u=p.apply(i,a)),u}}r.tokenizer=i}if(t.hooks){const i=this.defaults.hooks||new E;for(const s in t.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(s==="options")continue;const l=s,o=t.hooks[l],p=i[l];E.passThroughHooks.has(s)?i[l]=a=>{if(this.defaults.async)return Promise.resolve(o.call(i,a)).then(h=>p.call(i,h));const u=o.call(i,a);return p.call(i,u)}:i[l]=(...a)=>{let u=o.apply(i,a);return u===!1&&(u=p.apply(i,a)),u}}r.hooks=i}if(t.walkTokens){const i=this.defaults.walkTokens,s=t.walkTokens;r.walkTokens=function(l){let o=[];return o.push(s.call(this,l)),i&&(o=o.concat(i.call(this,l))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,e){return b.lex(n,e??this.defaults)}parser(n,e){return m.parse(n,e??this.defaults)}#e(n,e){return(t,r)=>{const i={...r},s={...this.defaults,...i};this.defaults.async===!0&&i.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const l=this.#t(!!s.silent,!!s.async);if(typeof t>"u"||t===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(t):t).then(o=>n(o,s)).then(o=>s.hooks?s.hooks.processAllTokens(o):o).then(o=>s.walkTokens?Promise.all(this.walkTokens(o,s.walkTokens)).then(()=>o):o).then(o=>e(o,s)).then(o=>s.hooks?s.hooks.postprocess(o):o).catch(l);try{s.hooks&&(t=s.hooks.preprocess(t));let o=n(t,s);s.hooks&&(o=s.hooks.processAllTokens(o)),s.walkTokens&&this.walkTokens(o,s.walkTokens);let p=e(o,s);return s.hooks&&(p=s.hooks.postprocess(p)),p}catch(o){return l(o)}}}#t(n,e){return t=>{if(t.message+=`
|
|
45
45
|
Please report this to https://github.com/markedjs/marked.`,n){const r="<p>An error occurred:</p><pre>"+d(t.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(t);throw t}}}const T=new ce;function f(c,n){return T.parse(c,n)}f.options=f.setOptions=function(c){return T.setOptions(c),f.defaults=T.defaults,G(f.defaults),f},f.getDefaults=L,f.defaults=y,f.use=function(...c){return T.use(...c),f.defaults=T.defaults,G(f.defaults),f},f.walkTokens=function(c,n){return T.walkTokens(c,n)},f.parseInline=T.parseInline,f.Parser=m,f.parser=m.parse,f.Renderer=A,f.TextRenderer=q,f.Lexer=b,f.lexer=b.lex,f.Tokenizer=R,f.Hooks=E,f.parse=f;const Ne=f.options,Fe=f.setOptions,Ue=f.use,Xe=f.walkTokens,Ge=f.parseInline,We=f,Je=m.parse,Ke=b.lex;export{E as Hooks,b as Lexer,ce as Marked,m as Parser,A as Renderer,q as TextRenderer,R as Tokenizer,y as defaults,L as getDefaults,Ke as lexer,f as marked,Ne as options,We as parse,Ge as parseInline,Je as parser,Fe as setOptions,Ue as use,Xe as walkTokens};
|