@brillout/docpress 0.4.0 → 0.4.2

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-OXABOEEC.js");
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() {
package/dist/index.js CHANGED
@@ -267,6 +267,9 @@ var inlang_default = "/assets/inlang-GFRWND6X.png";
267
267
 
268
268
  // src/components/Sponsors/sponsorsList.ts
269
269
  var individuals = [
270
+ {
271
+ username: "Nelie-Taylor"
272
+ },
270
273
  {
271
274
  username: "fortezhuo"
272
275
  },
@@ -1,5 +1,5 @@
1
- import * as vite_plugin_ssr_dist_cjs_node_html_renderHtml from 'vite-plugin-ssr/dist/cjs/node/html/renderHtml';
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<vite_plugin_ssr_dist_cjs_node_html_renderHtml.TemplateWrapped>;
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";
@@ -187,7 +187,7 @@ function Navigation({
187
187
  const currentUrl = pageContext.urlPathname;
188
188
  return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement("div", {
189
189
  id: "navigation-container"
190
- }, /* @__PURE__ */ React3.createElement(NavigationHeader, null), pageContext.detachedPageHeadings && /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(NavigationContent, {
190
+ }, /* @__PURE__ */ React3.createElement(NavigationHeader, null), pageContext.detachedPageHeadings && /* @__PURE__ */ React3.createElement(React3.Fragment, null, pageContext.detachedPageHeadings.length > 1 && /* @__PURE__ */ React3.createElement(NavigationContent, {
191
191
  id: "navigation-content-detached",
192
192
  headings: pageContext.detachedPageHeadings,
193
193
  currentUrl
@@ -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.0",
3
+ "version": "0.4.2",
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.65"
27
+ "vite-plugin-ssr": "^0.4.110"
28
28
  },
29
29
  "type": "module",
30
30
  "exports": {