nuxt-studio 1.3.1 → 1.3.3
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 +5 -5
- package/dist/app/engine-compile-CsVoR5aC.js +47 -0
- package/dist/app/index-BNGZo_v7.js +1 -0
- package/dist/app/{index-DPJS0mlQ.js → index-BemYRVDN.js} +2 -2
- package/dist/app/index-D-57dgKD.js +1 -0
- package/dist/app/index-DHS_I0O0.js +2 -0
- package/dist/app/main-DIc-1QZK.js +44 -0
- package/dist/app/main-PbQDqQ97.js +44 -0
- package/dist/app/main.d.ts +20 -19
- package/dist/app/main.js +1 -1
- package/dist/app/rehype-B5jXSQHB.js +1 -0
- package/dist/app/rehype-C7dZfu6l.js +1 -0
- package/dist/app/service-worker.d.ts +18 -18
- package/dist/app/shared.d.ts +19 -18
- package/dist/app/shiki-B5XDhU_3.js +1 -0
- package/dist/app/shiki-BLgMZ_FB.js +1 -0
- package/dist/app/wasm--yL7jHw-.js +1 -0
- package/dist/module/module.json +1 -1
- package/dist/module/module.mjs +17 -20
- package/dist/module/runtime/host.js +2 -2
- package/dist/module/runtime/server/routes/ai/analyze.post.js +1 -1
- package/dist/module/runtime/server/routes/auth/github.get.js +4 -4
- package/dist/module/runtime/server/routes/auth/gitlab.get.js +4 -4
- package/dist/module/runtime/server/routes/auth/google.get.js +5 -5
- package/dist/module/runtime/server/routes/auth/sso.get.js +5 -5
- package/dist/module/runtime/server/utils/auth.js +2 -2
- package/dist/module/runtime/server/utils/object.d.ts +1 -0
- package/dist/module/runtime/server/utils/object.js +14 -0
- package/dist/module/runtime/utils/document/compare.js +1 -1
- package/dist/module/runtime/utils/document/generate.js +9 -7
- package/dist/module/runtime/utils/document/index.d.ts +1 -1
- package/dist/module/runtime/utils/document/index.js +1 -1
- package/dist/module/runtime/utils/document/schema.d.ts +1 -1
- package/dist/module/runtime/utils/document/schema.js +4 -1
- package/package.json +20 -16
- package/dist/app/index-BR26Sfgr.js +0 -2
- package/dist/app/index-C-y2greB.js +0 -2
- package/dist/app/index-CS_mI4k2.js +0 -2
- package/dist/app/index-Cl-ktQMQ.js +0 -1
- package/dist/app/main--P1Cc3W1.js +0 -90
- package/dist/app/main-BJNMrnKc.js +0 -90
- package/dist/app/main-D38hv2hq.js +0 -90
- package/dist/app/main-DKqH6k_9.js +0 -69
- package/dist/app/shared-Bk3qBOVF.js +0 -1
- package/dist/app/shared-cDYJuGWk.js +0 -1
package/dist/app/main.d.ts
CHANGED
|
@@ -292,6 +292,7 @@ export declare enum ImageFileExtension {
|
|
|
292
292
|
export declare interface MarkdownParsingOptions {
|
|
293
293
|
compress?: boolean;
|
|
294
294
|
collectionType?: CollectionType;
|
|
295
|
+
preserveLinkAttributes?: boolean;
|
|
295
296
|
}
|
|
296
297
|
|
|
297
298
|
export declare type MediaFileExtension = ImageFileExtension | AudioFileExtension | VideoFileExtension;
|
|
@@ -408,7 +409,7 @@ export declare interface StudioHost {
|
|
|
408
409
|
areEqual: (document1: DatabaseItem, document2: DatabaseItem) => boolean;
|
|
409
410
|
isMatchingContent: (content: string, document: DatabaseItem) => Promise<boolean>;
|
|
410
411
|
pickReservedKeys: (document: DatabaseItem) => DatabaseItem;
|
|
411
|
-
|
|
412
|
+
cleanDataKeys: (document: DatabaseItem) => DatabaseItem;
|
|
412
413
|
detectActives: () => Array<{
|
|
413
414
|
fsPath: string;
|
|
414
415
|
title: string;
|
|
@@ -529,10 +530,13 @@ declare module '@tiptap/vue-3' {
|
|
|
529
530
|
}
|
|
530
531
|
|
|
531
532
|
|
|
532
|
-
declare module '@tiptap/
|
|
533
|
+
declare module '@tiptap/core' {
|
|
533
534
|
interface Commands<ReturnType> {
|
|
534
|
-
|
|
535
|
-
|
|
535
|
+
Slot: {
|
|
536
|
+
/**
|
|
537
|
+
* Override backspace command
|
|
538
|
+
*/
|
|
539
|
+
handleSlotBackspace: () => ReturnType;
|
|
536
540
|
};
|
|
537
541
|
}
|
|
538
542
|
}
|
|
@@ -540,11 +544,11 @@ declare module '@tiptap/vue-3' {
|
|
|
540
544
|
|
|
541
545
|
declare module '@tiptap/core' {
|
|
542
546
|
interface Commands<ReturnType> {
|
|
543
|
-
|
|
547
|
+
InlineElement: {
|
|
544
548
|
/**
|
|
545
|
-
*
|
|
549
|
+
* Toggle a InlineElement
|
|
546
550
|
*/
|
|
547
|
-
|
|
551
|
+
setInlineElement: (tag: string) => ReturnType;
|
|
548
552
|
};
|
|
549
553
|
}
|
|
550
554
|
}
|
|
@@ -570,18 +574,6 @@ declare module '@tiptap/core' {
|
|
|
570
574
|
}
|
|
571
575
|
|
|
572
576
|
|
|
573
|
-
declare module '@tiptap/core' {
|
|
574
|
-
interface Commands<ReturnType> {
|
|
575
|
-
InlineElement: {
|
|
576
|
-
/**
|
|
577
|
-
* Toggle a InlineElement
|
|
578
|
-
*/
|
|
579
|
-
setInlineElement: (tag: string) => ReturnType;
|
|
580
|
-
};
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
|
|
585
577
|
declare module '@tiptap/core' {
|
|
586
578
|
interface Commands<ReturnType> {
|
|
587
579
|
Binding: {
|
|
@@ -602,6 +594,15 @@ declare module '@tiptap/core' {
|
|
|
602
594
|
}
|
|
603
595
|
|
|
604
596
|
|
|
597
|
+
declare module '@tiptap/vue-3' {
|
|
598
|
+
interface Commands<ReturnType> {
|
|
599
|
+
videoPicker: {
|
|
600
|
+
insertVideoPicker: () => ReturnType;
|
|
601
|
+
};
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
|
|
605
606
|
declare module '@tiptap/core' {
|
|
606
607
|
interface Commands<ReturnType> {
|
|
607
608
|
completion: {
|
package/dist/app/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as t,a,C as e,D as s,I as i,S as o,
|
|
1
|
+
import{A as t,b as a,C as e,D as s,I as i,S as o,c as n,d,T as u,V as r,m as I}from"./main-PbQDqQ97.js";export{t as AI_LIMITS,a as AudioFileExtension,e as ContentFileExtension,s as DraftStatus,i as ImageFileExtension,o as StudioBranchActionId,n as StudioFeature,d as StudioItemActionId,u as TreeStatus,r as VideoFileExtension,I as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v as e,t}from"./main-DIc-1QZK.js";function r(r){const s=r;return async r=>{const p=[],l=[];e(r,e=>{const t=e;if(!["pre","code"].includes(t.tagName))return!1;const r=void 0!==t.properties?.language&&"text"!==t.properties?.language,i=Boolean(t.properties?.highlights);return r||i},e=>{const r=e,i="string"==typeof r.properties.highlights?r.properties.highlights.split(/[,\s]+/).map(Number):Array.isArray(r.properties.highlights)?r.properties.highlights.map(Number):[],a=s.highlighter(t(e),r.properties.language,s.theme,{highlights:i.filter(Boolean),meta:r.properties.meta}).then(({tree:e,className:t,style:i,inlineStyle:s})=>{r.properties.className=((r.properties.className||"")+" "+t).trim(),r.properties.style=((r.properties.style||"")+" "+s).trim(),"code"===r.children[0]?.tagName?r.children[0].children=e:r.children=e[0].children||e,i&&l.push(i)});p.push(a)}),p.length&&(await Promise.all(p),r.children.push({type:"element",tagName:"style",children:[{type:"text",value:i(l.join(""))}],properties:{}}))}}const i=e=>{const t=e.split("}").filter(e=>Boolean(e.trim())).map(e=>e.trim()+"}");return Array.from(new Set(t)).join("")};export{r as default,r as rehypeHighlight};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v as e,t}from"./main-PbQDqQ97.js";function r(r){const s=r;return async r=>{const p=[],l=[];e(r,e=>{const t=e;if(!["pre","code"].includes(t.tagName))return!1;const r=void 0!==t.properties?.language&&"text"!==t.properties?.language,i=Boolean(t.properties?.highlights);return r||i},e=>{const r=e,i="string"==typeof r.properties.highlights?r.properties.highlights.split(/[,\s]+/).map(Number):Array.isArray(r.properties.highlights)?r.properties.highlights.map(Number):[],a=s.highlighter(t(e),r.properties.language,s.theme,{highlights:i.filter(Boolean),meta:r.properties.meta}).then(({tree:e,className:t,style:i,inlineStyle:s})=>{r.properties.className=((r.properties.className||"")+" "+t).trim(),r.properties.style=((r.properties.style||"")+" "+s).trim(),"code"===r.children[0]?.tagName?r.children[0].children=e:r.children=e[0].children||e,i&&l.push(i)});p.push(a)}),p.length&&(await Promise.all(p),r.children.push({type:"element",tagName:"style",children:[{type:"text",value:i(l.join(""))}],properties:{}}))}}const i=e=>{const t=e.split("}").filter(e=>Boolean(e.trim())).map(e=>e.trim()+"}");return Array.from(new Set(t)).join("")};export{r as default,r as rehypeHighlight};
|
|
@@ -21,10 +21,13 @@ declare module '@tiptap/vue-3' {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
declare module '@tiptap/
|
|
24
|
+
declare module '@tiptap/core' {
|
|
25
25
|
interface Commands<ReturnType> {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
Slot: {
|
|
27
|
+
/**
|
|
28
|
+
* Override backspace command
|
|
29
|
+
*/
|
|
30
|
+
handleSlotBackspace: () => ReturnType;
|
|
28
31
|
};
|
|
29
32
|
}
|
|
30
33
|
}
|
|
@@ -32,11 +35,11 @@ declare module '@tiptap/vue-3' {
|
|
|
32
35
|
|
|
33
36
|
declare module '@tiptap/core' {
|
|
34
37
|
interface Commands<ReturnType> {
|
|
35
|
-
|
|
38
|
+
InlineElement: {
|
|
36
39
|
/**
|
|
37
|
-
*
|
|
40
|
+
* Toggle a InlineElement
|
|
38
41
|
*/
|
|
39
|
-
|
|
42
|
+
setInlineElement: (tag: string) => ReturnType;
|
|
40
43
|
};
|
|
41
44
|
}
|
|
42
45
|
}
|
|
@@ -62,18 +65,6 @@ declare module '@tiptap/core' {
|
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
|
|
65
|
-
declare module '@tiptap/core' {
|
|
66
|
-
interface Commands<ReturnType> {
|
|
67
|
-
InlineElement: {
|
|
68
|
-
/**
|
|
69
|
-
* Toggle a InlineElement
|
|
70
|
-
*/
|
|
71
|
-
setInlineElement: (tag: string) => ReturnType;
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
68
|
declare module '@tiptap/core' {
|
|
78
69
|
interface Commands<ReturnType> {
|
|
79
70
|
Binding: {
|
|
@@ -94,6 +85,15 @@ declare module '@tiptap/core' {
|
|
|
94
85
|
}
|
|
95
86
|
|
|
96
87
|
|
|
88
|
+
declare module '@tiptap/vue-3' {
|
|
89
|
+
interface Commands<ReturnType> {
|
|
90
|
+
videoPicker: {
|
|
91
|
+
insertVideoPicker: () => ReturnType;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
97
|
declare module '@tiptap/core' {
|
|
98
98
|
interface Commands<ReturnType> {
|
|
99
99
|
completion: {
|
package/dist/app/shared.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ export declare type GitProviderType = 'github' | 'gitlab';
|
|
|
79
79
|
export declare interface MarkdownParsingOptions {
|
|
80
80
|
compress?: boolean;
|
|
81
81
|
collectionType?: CollectionType;
|
|
82
|
+
preserveLinkAttributes?: boolean;
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
export declare function remarkEmojiPlugin(): (tree: Nodes) => void;
|
|
@@ -106,10 +107,13 @@ declare module '@tiptap/vue-3' {
|
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
|
|
109
|
-
declare module '@tiptap/
|
|
110
|
+
declare module '@tiptap/core' {
|
|
110
111
|
interface Commands<ReturnType> {
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
Slot: {
|
|
113
|
+
/**
|
|
114
|
+
* Override backspace command
|
|
115
|
+
*/
|
|
116
|
+
handleSlotBackspace: () => ReturnType;
|
|
113
117
|
};
|
|
114
118
|
}
|
|
115
119
|
}
|
|
@@ -117,11 +121,11 @@ declare module '@tiptap/vue-3' {
|
|
|
117
121
|
|
|
118
122
|
declare module '@tiptap/core' {
|
|
119
123
|
interface Commands<ReturnType> {
|
|
120
|
-
|
|
124
|
+
InlineElement: {
|
|
121
125
|
/**
|
|
122
|
-
*
|
|
126
|
+
* Toggle a InlineElement
|
|
123
127
|
*/
|
|
124
|
-
|
|
128
|
+
setInlineElement: (tag: string) => ReturnType;
|
|
125
129
|
};
|
|
126
130
|
}
|
|
127
131
|
}
|
|
@@ -147,18 +151,6 @@ declare module '@tiptap/core' {
|
|
|
147
151
|
}
|
|
148
152
|
|
|
149
153
|
|
|
150
|
-
declare module '@tiptap/core' {
|
|
151
|
-
interface Commands<ReturnType> {
|
|
152
|
-
InlineElement: {
|
|
153
|
-
/**
|
|
154
|
-
* Toggle a InlineElement
|
|
155
|
-
*/
|
|
156
|
-
setInlineElement: (tag: string) => ReturnType;
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
154
|
declare module '@tiptap/core' {
|
|
163
155
|
interface Commands<ReturnType> {
|
|
164
156
|
Binding: {
|
|
@@ -179,6 +171,15 @@ declare module '@tiptap/core' {
|
|
|
179
171
|
}
|
|
180
172
|
|
|
181
173
|
|
|
174
|
+
declare module '@tiptap/vue-3' {
|
|
175
|
+
interface Commands<ReturnType> {
|
|
176
|
+
videoPicker: {
|
|
177
|
+
insertVideoPicker: () => ReturnType;
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
|
|
182
183
|
declare module '@tiptap/core' {
|
|
183
184
|
interface Commands<ReturnType> {
|
|
184
185
|
completion: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e}from"./engine-compile-CsVoR5aC.js";function t({langs:t=[],themes:i=[],bundledLangs:n={},bundledThemes:s={},getMdcConfigs:a,options:r,engine:o}={}){let l,c;async function d(){return l||(l=async function(){const{createHighlighterCore:n,addClassToHast:s,isSpecialLang:a,isSpecialTheme:r}=await import("./index-DHS_I0O0.js"),{transformerNotationDiff:l,transformerNotationErrorLevel:c,transformerNotationFocus:d,transformerNotationHighlight:p}=await import("./index-BJwWKj3q.js"),g=await n({langs:t,themes:i,engine:o||e()});for await(const e of await m())await(e.shiki?.setup?.(g));return{shiki:g,addClassToHast:s,isSpecialLang:a,isSpecialTheme:r,transformers:[l(),c(),d(),p()]}}()),l}async function m(){return c||(c=Promise.resolve(a?.()||[])),c}return async(e,t,i,a={})=>{const{shiki:o,addClassToHast:l,isSpecialLang:c,isSpecialTheme:p,transformers:g}=await d(),f={defaultColor:!1,meta:{__raw:a.meta}};"ts-type"===t||"typescript-type"===t?(t="typescript",f.grammarContextCode="let a:"):"vue-html"!==t&&"vue-template"!==t||(t="vue",f.grammarContextCode="<template>");const u={..."string"==typeof i?{default:i}:i||{}},y=o.getLoadedThemes(),k=o.getLoadedLanguages();"string"!=typeof t||k.includes(t)||c(t)||(n[t]?await o.loadLanguage(n[t]):(process.dev&&console.warn(`[@nuxtjs/mdc] Language "${t}" is not loaded to the Shiki highlighter, fallback to plain text. Add the language to "mdc.highlight.langs" to fix this.`),t="text"));for(const[n,r]of Object.entries(u))"string"!=typeof r||y.includes(r)||p(r)||(s[r]?await o.loadTheme(s[r]):(process.dev&&console.warn(`[@nuxtjs/mdc] Theme "${r}" is not loaded to the Shiki highlighter. Add the theme to "mdc.highlight.themes" to fix this.`),u[n]="none"));const v=/* @__PURE__ */new Map;for(const n of g)v.set(n.name||`transformer:${Math.random()}-${n.constructor.name}`,n);for(const n of await m()){const s="function"==typeof n.shiki?.transformers?await(n.shiki?.transformers(e,t,i,a)):n.shiki?.transformers||[];for(const e of s)v.set(e.name||`transformer:${Math.random()}-${e.constructor.name}`,e)}const w=o.codeToHast(e.trimEnd(),{lang:t,...f,themes:u,transformers:[...v.values(),{name:"mdc:highlight",line(e,t){a.highlights?.includes(t)&&l(e,"highlight"),e.properties.line=t}},{name:"mdc:newline",line(t){if(e?.includes("\n")){if(0===t.children.length||1===t.children.length&&"element"===t.children[0].type&&1===t.children[0].children.length&&"text"===t.children[0].children[0].type&&""===t.children[0].children[0].value)return void(t.children=[{type:"element",tagName:"span",properties:{emptyLinePlaceholder:!0},children:[{type:"text",value:"\n"}]}]);const e=t.children.at(-1);if("element"===e?.type&&"span"===e.tagName){const t=e.children.at(-1);"text"===t?.type&&(t.value+="\n")}}}}]}).children[0],$=w.children[0],x=r?.wrapperStyle;w.properties.style=x?"string"==typeof x?x:w.properties.style:"";const L=[];return Object.keys(u).forEach(e=>{const t="default"!==e?`.${e}`:"";L.push(x?`${t} .shiki,`:"",`html .${e} .shiki span {`,`color: var(--shiki-${e});`,`background: var(--shiki-${e}-bg);`,`font-style: var(--shiki-${e}-font-style);`,`font-weight: var(--shiki-${e}-font-weight);`,`text-decoration: var(--shiki-${e}-text-decoration);`,"}"),L.push(`html${t} .shiki span {`,`color: var(--shiki-${e});`,`background: var(--shiki-${e}-bg);`,`font-style: var(--shiki-${e}-font-style);`,`font-weight: var(--shiki-${e}-font-weight);`,`text-decoration: var(--shiki-${e}-text-decoration);`,"}")}),{tree:$.children,className:Array.isArray(w.properties.class)?w.properties.class.join(" "):w.properties.class,inlineStyle:w.properties.style,style:L.join("")}}}export{t as createShikiHighlighter};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e}from"./engine-compile-CsVoR5aC.js";function t({langs:t=[],themes:i=[],bundledLangs:n={},bundledThemes:s={},getMdcConfigs:a,options:r,engine:o}={}){let l,c;async function d(){return l||(l=async function(){const{createHighlighterCore:n,addClassToHast:s,isSpecialLang:a,isSpecialTheme:r}=await import("./index-BemYRVDN.js"),{transformerNotationDiff:l,transformerNotationErrorLevel:c,transformerNotationFocus:d,transformerNotationHighlight:p}=await import("./index-BJwWKj3q.js"),g=await n({langs:t,themes:i,engine:o||e()});for await(const e of await m())await(e.shiki?.setup?.(g));return{shiki:g,addClassToHast:s,isSpecialLang:a,isSpecialTheme:r,transformers:[l(),c(),d(),p()]}}()),l}async function m(){return c||(c=Promise.resolve(a?.()||[])),c}return async(e,t,i,a={})=>{const{shiki:o,addClassToHast:l,isSpecialLang:c,isSpecialTheme:p,transformers:g}=await d(),f={defaultColor:!1,meta:{__raw:a.meta}};"ts-type"===t||"typescript-type"===t?(t="typescript",f.grammarContextCode="let a:"):"vue-html"!==t&&"vue-template"!==t||(t="vue",f.grammarContextCode="<template>");const u={..."string"==typeof i?{default:i}:i||{}},y=o.getLoadedThemes(),k=o.getLoadedLanguages();"string"!=typeof t||k.includes(t)||c(t)||(n[t]?await o.loadLanguage(n[t]):(process.dev&&console.warn(`[@nuxtjs/mdc] Language "${t}" is not loaded to the Shiki highlighter, fallback to plain text. Add the language to "mdc.highlight.langs" to fix this.`),t="text"));for(const[n,r]of Object.entries(u))"string"!=typeof r||y.includes(r)||p(r)||(s[r]?await o.loadTheme(s[r]):(process.dev&&console.warn(`[@nuxtjs/mdc] Theme "${r}" is not loaded to the Shiki highlighter. Add the theme to "mdc.highlight.themes" to fix this.`),u[n]="none"));const v=/* @__PURE__ */new Map;for(const n of g)v.set(n.name||`transformer:${Math.random()}-${n.constructor.name}`,n);for(const n of await m()){const s="function"==typeof n.shiki?.transformers?await(n.shiki?.transformers(e,t,i,a)):n.shiki?.transformers||[];for(const e of s)v.set(e.name||`transformer:${Math.random()}-${e.constructor.name}`,e)}const w=o.codeToHast(e.trimEnd(),{lang:t,...f,themes:u,transformers:[...v.values(),{name:"mdc:highlight",line(e,t){a.highlights?.includes(t)&&l(e,"highlight"),e.properties.line=t}},{name:"mdc:newline",line(t){if(e?.includes("\n")){if(0===t.children.length||1===t.children.length&&"element"===t.children[0].type&&1===t.children[0].children.length&&"text"===t.children[0].children[0].type&&""===t.children[0].children[0].value)return void(t.children=[{type:"element",tagName:"span",properties:{emptyLinePlaceholder:!0},children:[{type:"text",value:"\n"}]}]);const e=t.children.at(-1);if("element"===e?.type&&"span"===e.tagName){const t=e.children.at(-1);"text"===t?.type&&(t.value+="\n")}}}}]}).children[0],$=w.children[0],x=r?.wrapperStyle;w.properties.style=x?"string"==typeof x?x:w.properties.style:"";const L=[];return Object.keys(u).forEach(e=>{const t="default"!==e?`.${e}`:"";L.push(x?`${t} .shiki,`:"",`html .${e} .shiki span {`,`color: var(--shiki-${e});`,`background: var(--shiki-${e}-bg);`,`font-style: var(--shiki-${e}-font-style);`,`font-weight: var(--shiki-${e}-font-weight);`,`text-decoration: var(--shiki-${e}-text-decoration);`,"}"),L.push(`html${t} .shiki span {`,`color: var(--shiki-${e});`,`background: var(--shiki-${e}-bg);`,`font-style: var(--shiki-${e}-font-style);`,`font-weight: var(--shiki-${e}-font-weight);`,`text-decoration: var(--shiki-${e}-text-decoration);`,"}")}),{tree:$.children,className:Array.isArray(w.properties.class)?w.properties.class.join(" "):w.properties.class,inlineStyle:w.properties.style,style:L.join("")}}}export{t as createShikiHighlighter};
|