@brillout/docpress 0.4.0 → 0.4.1
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/cli/index.js
CHANGED
|
@@ -16,7 +16,7 @@ Error.stackTraceLimit = Infinity;
|
|
|
16
16
|
cli();
|
|
17
17
|
async function cli() {
|
|
18
18
|
if (isDev) {
|
|
19
|
-
await import("../devServer-
|
|
19
|
+
await import("../devServer-KXRA4OLE.js");
|
|
20
20
|
} else if (isBuild) {
|
|
21
21
|
await build(vite_config_default);
|
|
22
22
|
await build({ ...vite_config_default, build: { ssr: true } });
|
|
@@ -8,7 +8,7 @@ import "./chunk-3QC7HYIF.js";
|
|
|
8
8
|
// src/cli/devServer.ts
|
|
9
9
|
import express from "express";
|
|
10
10
|
import * as vite from "vite";
|
|
11
|
-
import { renderPage } from "vite-plugin-ssr";
|
|
11
|
+
import { renderPage } from "vite-plugin-ssr/server";
|
|
12
12
|
var viteVersion = vite.version || "2.?.?";
|
|
13
13
|
startServer();
|
|
14
14
|
async function startServer() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { PageContextBuiltIn } from 'vite-plugin-ssr';
|
|
1
|
+
import * as vite_plugin_ssr_dist_cjs_node_runtime_html_renderHtml from 'vite-plugin-ssr/dist/cjs/node/runtime/html/renderHtml';
|
|
2
|
+
import { PageContextBuiltIn } from 'vite-plugin-ssr/types';
|
|
3
3
|
|
|
4
4
|
type MarkdownHeading = {
|
|
5
5
|
title: string;
|
|
@@ -17,6 +17,6 @@ type PageContextOriginal = PageContextBuiltIn & {
|
|
|
17
17
|
exports: Exports;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
declare function render(pageContextOriginal: PageContextOriginal): Promise<
|
|
20
|
+
declare function render(pageContextOriginal: PageContextOriginal): Promise<vite_plugin_ssr_dist_cjs_node_runtime_html_renderHtml.TemplateWrapped>;
|
|
21
21
|
|
|
22
22
|
export { render };
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
// src/renderer/_default.page.server.tsx
|
|
23
23
|
import ReactDOMServer from "react-dom/server";
|
|
24
24
|
import React7 from "react";
|
|
25
|
-
import { escapeInject as escapeInject2, dangerouslySkipEscape as dangerouslySkipEscape2 } from "vite-plugin-ssr";
|
|
25
|
+
import { escapeInject as escapeInject2, dangerouslySkipEscape as dangerouslySkipEscape2 } from "vite-plugin-ssr/server";
|
|
26
26
|
|
|
27
27
|
// src/PageLayout.tsx
|
|
28
28
|
import React6 from "react";
|
|
@@ -559,7 +559,7 @@ function getPageHeadings(pageContext, currentHeading) {
|
|
|
559
559
|
}
|
|
560
560
|
|
|
561
561
|
// src/algolia/DocSearch.ts
|
|
562
|
-
import { dangerouslySkipEscape, escapeInject } from "vite-plugin-ssr";
|
|
562
|
+
import { dangerouslySkipEscape, escapeInject } from "vite-plugin-ssr/server";
|
|
563
563
|
function getDocSearchCSS(pageContext) {
|
|
564
564
|
const docSearchCSS = !pageContext.meta.algolia ? "" : escapeInject`
|
|
565
565
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@alpha" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brillout/docpress",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"// Check types while developing": "",
|
|
6
6
|
"types": "tsc --noEmit --watch",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"shiki": "^0.10.1",
|
|
25
25
|
"twemoji": "^13.1.0",
|
|
26
26
|
"vite": "npm:@brillout/vite@4.0.1-fix",
|
|
27
|
-
"vite-plugin-ssr": "^0.4.
|
|
27
|
+
"vite-plugin-ssr": "^0.4.110"
|
|
28
28
|
},
|
|
29
29
|
"type": "module",
|
|
30
30
|
"exports": {
|