@brillout/docpress 0.4.1 → 0.4.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  determineSectionUrlHash
3
- } from "./chunk-KH64XPM2.js";
3
+ } from "./chunk-OFUQWIQL.js";
4
4
  import {
5
5
  assert
6
6
  } from "./chunk-2ZTPUQGS.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Emoji
3
- } from "./chunk-KH64XPM2.js";
3
+ } from "./chunk-OFUQWIQL.js";
4
4
  import {
5
5
  assert
6
6
  } from "./chunk-2ZTPUQGS.js";
@@ -15,11 +15,16 @@ function filter(obj, predicate) {
15
15
 
16
16
  // src/utils/determineSectionUrlHash.ts
17
17
  function determineSectionUrlHash(title) {
18
- const urlHash = title.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").split(/[^a-z0-9\u4E00-\u9FA5]+/).filter(Boolean).join("-");
18
+ title = title.toLowerCase();
19
+ title = removeAccentsAndDiacritics(title);
20
+ const urlHash = title.split(/[^a-z0-9\u4E00-\u9FA5]+/).filter(Boolean).join("-");
19
21
  if (urlHash === "")
20
22
  return null;
21
23
  return urlHash;
22
24
  }
25
+ function removeAccentsAndDiacritics(str) {
26
+ return str.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
27
+ }
23
28
  function determineSectionTitle(urlWithHash, titleNormalCase) {
24
29
  assert(urlWithHash.includes("#"), { urlWithHash });
25
30
  const urlHash = urlWithHash.split("#")[1];
package/dist/cli/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  vite_config_default
3
- } from "../chunk-Q3E6B5TM.js";
4
- import "../chunk-KH64XPM2.js";
3
+ } from "../chunk-3HBUDECX.js";
4
+ import "../chunk-OFUQWIQL.js";
5
5
  import "../chunk-2ZTPUQGS.js";
6
6
  import "../chunk-3QC7HYIF.js";
7
7
 
@@ -16,7 +16,7 @@ Error.stackTraceLimit = Infinity;
16
16
  cli();
17
17
  async function cli() {
18
18
  if (isDev) {
19
- await import("../devServer-KXRA4OLE.js");
19
+ await import("../devServer-GP7254OE.js");
20
20
  } else if (isBuild) {
21
21
  await build(vite_config_default);
22
22
  await build({ ...vite_config_default, build: { ssr: true } });
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  vite_config_default
3
- } from "./chunk-Q3E6B5TM.js";
4
- import "./chunk-KH64XPM2.js";
3
+ } from "./chunk-3HBUDECX.js";
4
+ import "./chunk-OFUQWIQL.js";
5
5
  import "./chunk-2ZTPUQGS.js";
6
6
  import "./chunk-3QC7HYIF.js";
7
7
 
package/dist/index.d.ts CHANGED
@@ -27,6 +27,7 @@ declare function Emoji({ name, style }: {
27
27
  type HeadingDetachedDefinition = {
28
28
  url: string;
29
29
  title: string | JSX.Element;
30
+ sectionTitles?: string[];
30
31
  };
31
32
  type HeadingDefinition = HeadingBase & (({
32
33
  level: 1;
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  isRepoLink,
5
5
  parseTitle,
6
6
  usePageContext
7
- } from "./chunk-H7GTGR6A.js";
7
+ } from "./chunk-3VVR6QXA.js";
8
8
  import {
9
9
  FeatureList
10
10
  } from "./chunk-NVJING6T.js";
@@ -16,7 +16,7 @@ import {
16
16
  filter,
17
17
  jsxToTextContent,
18
18
  objectAssign
19
- } from "./chunk-KH64XPM2.js";
19
+ } from "./chunk-OFUQWIQL.js";
20
20
  import {
21
21
  assert,
22
22
  assertUsage,
@@ -267,6 +267,12 @@ var inlang_default = "/assets/inlang-GFRWND6X.png";
267
267
 
268
268
  // src/components/Sponsors/sponsorsList.ts
269
269
  var individuals = [
270
+ {
271
+ username: "EJM-Company"
272
+ },
273
+ {
274
+ username: "Nelie-Taylor"
275
+ },
270
276
  {
271
277
  username: "fortezhuo"
272
278
  },
@@ -4,12 +4,12 @@ import {
4
4
  getHeadings,
5
5
  parseTitle,
6
6
  usePageContext
7
- } from "../chunk-H7GTGR6A.js";
7
+ } from "../chunk-3VVR6QXA.js";
8
8
  import {
9
9
  Emoji,
10
10
  jsxToTextContent,
11
11
  objectAssign
12
- } from "../chunk-KH64XPM2.js";
12
+ } from "../chunk-OFUQWIQL.js";
13
13
  import {
14
14
  assert,
15
15
  assertUsage,
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "scripts": {
5
5
  "// Check types while developing": "",
6
6
  "types": "tsc --noEmit --watch",