@ox-content/vite-plugin 2.71.0 → 2.72.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/dist/index.cjs +18 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +7 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +15 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -3247,10 +3247,22 @@ function createFrameworkMarkdownOptions(options) {
|
|
|
3247
3247
|
};
|
|
3248
3248
|
}
|
|
3249
3249
|
function renderHtmlToReactCreateElement(html, islands = []) {
|
|
3250
|
-
return
|
|
3250
|
+
return renderHtmlToFrameworkCode(html, "react", "expression", islands);
|
|
3251
3251
|
}
|
|
3252
3252
|
function renderHtmlToVueH(html, islands = []) {
|
|
3253
|
-
return
|
|
3253
|
+
return renderHtmlToFrameworkCode(html, "vue", "expression", islands);
|
|
3254
|
+
}
|
|
3255
|
+
function renderHtmlToFrameworkCode(html, target, mode, islands = []) {
|
|
3256
|
+
return require_napi.importNapiModuleSync().renderFrameworkComponentCode(html, target, toNapiIslands(islands), mode);
|
|
3257
|
+
}
|
|
3258
|
+
function renderHtmlToReactComponent(html, islands = []) {
|
|
3259
|
+
return renderHtmlToFrameworkCode(html, "react", "component", islands);
|
|
3260
|
+
}
|
|
3261
|
+
function renderHtmlToVueComponent(html, islands = []) {
|
|
3262
|
+
return renderHtmlToFrameworkCode(html, "vue", "component", islands);
|
|
3263
|
+
}
|
|
3264
|
+
function renderHtmlToSvelteComponent(html) {
|
|
3265
|
+
return renderHtmlToFrameworkCode(html, "svelte", "component");
|
|
3254
3266
|
}
|
|
3255
3267
|
function escapeSvelteMarkup(html) {
|
|
3256
3268
|
return require_napi.importNapiModuleSync().escapeSvelteMarkup(html);
|
|
@@ -5076,7 +5088,11 @@ exports.prefetchGitHubSources = require_github.prefetchGitHubSources;
|
|
|
5076
5088
|
exports.prefetchOgpData = require_ogp.prefetchOgpData;
|
|
5077
5089
|
exports.raw = raw;
|
|
5078
5090
|
exports.renderAllPages = renderAllPages;
|
|
5091
|
+
exports.renderHtmlToFrameworkCode = renderHtmlToFrameworkCode;
|
|
5092
|
+
exports.renderHtmlToReactComponent = renderHtmlToReactComponent;
|
|
5079
5093
|
exports.renderHtmlToReactCreateElement = renderHtmlToReactCreateElement;
|
|
5094
|
+
exports.renderHtmlToSvelteComponent = renderHtmlToSvelteComponent;
|
|
5095
|
+
exports.renderHtmlToVueComponent = renderHtmlToVueComponent;
|
|
5080
5096
|
exports.renderHtmlToVueH = renderHtmlToVueH;
|
|
5081
5097
|
exports.renderMarkdownStream = renderMarkdownStream;
|
|
5082
5098
|
exports.renderPage = renderPage;
|