react-lib-tools 0.0.39 → 0.0.40

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.
Files changed (29) hide show
  1. package/dist/{CommonQuestionsRoute-DKgVI5bf.cjs → CommonQuestionsRoute-BaUo7C5J.cjs} +2 -2
  2. package/dist/{CommonQuestionsRoute-DKgVI5bf.cjs.map → CommonQuestionsRoute-BaUo7C5J.cjs.map} +1 -1
  3. package/dist/{CommonQuestionsRoute-XeGPl1Yz.js → CommonQuestionsRoute-xnhbeLos.js} +2 -2
  4. package/dist/{CommonQuestionsRoute-XeGPl1Yz.js.map → CommonQuestionsRoute-xnhbeLos.js.map} +1 -1
  5. package/dist/{GettingStartedRoute-Dj9vAFwF.cjs → GettingStartedRoute-Caqc6Q58.cjs} +2 -2
  6. package/dist/{GettingStartedRoute-Dj9vAFwF.cjs.map → GettingStartedRoute-Caqc6Q58.cjs.map} +1 -1
  7. package/dist/{GettingStartedRoute-B1_jfqKR.js → GettingStartedRoute-Cp6EFnMw.js} +2 -2
  8. package/dist/{GettingStartedRoute-B1_jfqKR.js.map → GettingStartedRoute-Cp6EFnMw.js.map} +1 -1
  9. package/dist/{PageNotFound-pPQgf0wT.cjs → PageNotFound-7zWg_AHz.cjs} +2 -2
  10. package/dist/{PageNotFound-pPQgf0wT.cjs.map → PageNotFound-7zWg_AHz.cjs.map} +1 -1
  11. package/dist/{PageNotFound-BcpV_MGp.js → PageNotFound-CB141q5L.js} +2 -2
  12. package/dist/{PageNotFound-BcpV_MGp.js.map → PageNotFound-CB141q5L.js.map} +1 -1
  13. package/dist/{SupportRoute-CxxAV1Mo.js → SupportRoute-BdQqhjzf.js} +2 -2
  14. package/dist/{SupportRoute-CxxAV1Mo.js.map → SupportRoute-BdQqhjzf.js.map} +1 -1
  15. package/dist/{SupportRoute-BbSurNA_.cjs → SupportRoute-CIsa-DtE.cjs} +2 -2
  16. package/dist/{SupportRoute-BbSurNA_.cjs.map → SupportRoute-CIsa-DtE.cjs.map} +1 -1
  17. package/dist/{VersionsRoute-DpDr0_Rf.cjs → VersionsRoute-5s8sUTHm.cjs} +2 -2
  18. package/dist/{VersionsRoute-DpDr0_Rf.cjs.map → VersionsRoute-5s8sUTHm.cjs.map} +1 -1
  19. package/dist/{VersionsRoute-CeLRC38k.js → VersionsRoute-BuGTWWLr.js} +2 -2
  20. package/dist/{VersionsRoute-CeLRC38k.js.map → VersionsRoute-BuGTWWLr.js.map} +1 -1
  21. package/dist/{index-5mMRCwy2.js → index-Cpw2WkF7.js} +7 -7
  22. package/dist/{index-5mMRCwy2.js.map → index-Cpw2WkF7.js.map} +1 -1
  23. package/dist/{index-BWhTJgvX.cjs → index-rOOr2GGh.cjs} +2 -2
  24. package/dist/{index-BWhTJgvX.cjs.map → index-rOOr2GGh.cjs.map} +1 -1
  25. package/dist/react-lib-tools.cjs +1 -1
  26. package/dist/react-lib-tools.js +1 -1
  27. package/package.json +1 -2
  28. package/scripts/compile-search-index.ts +0 -10
  29. package/scripts/utils/search/crawlPage.ts +11 -3
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-BWhTJgvX.cjs");exports.AppRoot=o.AppRoot;exports.Block=o.Block;exports.Box=o.Box;exports.Button=o.Button;exports.Callout=o.Callout;exports.Checkbox=o.Checkbox;exports.Code=o.Code;exports.ComponentProps=o.ComponentProps;exports.ComponentPropsSection=o.ComponentPropsSection;exports.DocsSection=o.DocsSection;exports.ErrorBoundary=o.ErrorBoundary;exports.ExternalLink=o.ExternalLink;exports.Header=o.Header;exports.ImperativeHandle=o.ImperativeHandle;exports.Input=o.Input;exports.Link=o.Link;exports.LoadingSpinner=o.LoadingSpinner;exports.NavLink=o.NavLink;exports.NavSection=o.NavSection;exports.Radio=o.Radio;exports.Select=o.Select;exports.Tooltip=o.Tooltip;exports.assert=o.assert;exports.cn=o.cn;exports.getIntentClassNames=o.getIntentClassNames;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-rOOr2GGh.cjs");exports.AppRoot=o.AppRoot;exports.Block=o.Block;exports.Box=o.Box;exports.Button=o.Button;exports.Callout=o.Callout;exports.Checkbox=o.Checkbox;exports.Code=o.Code;exports.ComponentProps=o.ComponentProps;exports.ComponentPropsSection=o.ComponentPropsSection;exports.DocsSection=o.DocsSection;exports.ErrorBoundary=o.ErrorBoundary;exports.ExternalLink=o.ExternalLink;exports.Header=o.Header;exports.ImperativeHandle=o.ImperativeHandle;exports.Input=o.Input;exports.Link=o.Link;exports.LoadingSpinner=o.LoadingSpinner;exports.NavLink=o.NavLink;exports.NavSection=o.NavSection;exports.Radio=o.Radio;exports.Select=o.Select;exports.Tooltip=o.Tooltip;exports.assert=o.assert;exports.cn=o.cn;exports.getIntentClassNames=o.getIntentClassNames;
2
2
  //# sourceMappingURL=react-lib-tools.cjs.map
@@ -1,4 +1,4 @@
1
- import { A as o, a as e, B as n, b as t, C as r, c as i, d as p, i as c, j as l, D as d, e as C, E as k, H as m, I as B, f as L, L as S, g as u, N as x, h as I, R as N, k as g, T as v, l as E, m as H, n as R } from "./index-5mMRCwy2.js";
1
+ import { A as o, a as e, B as n, b as t, C as r, c as i, d as p, i as c, j as l, D as d, e as C, E as k, H as m, I as B, f as L, L as S, g as u, N as x, h as I, R as N, k as g, T as v, l as E, m as H, n as R } from "./index-Cpw2WkF7.js";
2
2
  export {
3
3
  o as AppRoot,
4
4
  e as Block,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-lib-tools",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "type": "module",
5
5
  "author": "Brian Vaughn <brian.david.vaughn@gmail.com> (https://github.com/bvaughn/)",
6
6
  "contributors": [
@@ -62,7 +62,6 @@
62
62
  "@headlessui/react": "^2.2.4",
63
63
  "@headlessui/tailwindcss": "^0.2.2",
64
64
  "@heroicons/react": "^2.2.0",
65
- "@puppeteer/browsers": "^2.13.0",
66
65
  "@tailwindcss/vite": "^4.1.11",
67
66
  "@tailwindplus/elements": "^1.0.5",
68
67
  "@testing-library/jest-dom": "^6.6.4",
@@ -1,4 +1,3 @@
1
- import { Browser, BrowserPlatform, install } from "@puppeteer/browsers";
2
1
  import Fuse from "fuse.js";
3
2
  import { writeFile } from "node:fs/promises";
4
3
  import { join } from "node:path";
@@ -17,15 +16,6 @@ export async function compileSearchIndex({
17
16
  } = {}) {
18
17
  const recordsMap: Record<string, SiteSearchPage> = {};
19
18
 
20
- console.log("Installing browsers ...");
21
-
22
- await install({
23
- browser: Browser.CHROME,
24
- buildId: "120.0.6099.109",
25
- platform: BrowserPlatform.LINUX,
26
- cacheDir: "/tmp/puppeteer-cache"
27
- });
28
-
29
19
  await crawlPage({
30
20
  filterSelector,
31
21
  host,
@@ -15,9 +15,17 @@ export async function crawlPage({
15
15
  }) {
16
16
  console.log(`Crawling ${host}${path} ...`);
17
17
 
18
- const browser = await puppeteer.launch({
19
- headless: true
20
- });
18
+ const executablePath = process.env.CHROME_PATH;
19
+ const browser = await puppeteer.launch(
20
+ executablePath
21
+ ? {
22
+ executablePath,
23
+ headless: true
24
+ }
25
+ : {
26
+ headless: true
27
+ }
28
+ );
21
29
 
22
30
  const page = await browser.newPage();
23
31