react-lib-tools 0.0.29 → 0.0.30

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 (43) hide show
  1. package/dist/CommonQuestionsRoute-CgAJzTXe.js +31 -0
  2. package/dist/{CommonQuestionsRoute-Bc_XQOxV.js.map → CommonQuestionsRoute-CgAJzTXe.js.map} +1 -1
  3. package/dist/CommonQuestionsRoute-n_iD3lwr.cjs +2 -0
  4. package/dist/{CommonQuestionsRoute-BaeYAOSK.cjs.map → CommonQuestionsRoute-n_iD3lwr.cjs.map} +1 -1
  5. package/dist/GettingStartedRoute-BQd7IviG.cjs +2 -0
  6. package/dist/GettingStartedRoute-BQd7IviG.cjs.map +1 -0
  7. package/dist/{GettingStartedRoute-Bo2cbVUj.js → GettingStartedRoute-Dxm39bWR.js} +15 -14
  8. package/dist/GettingStartedRoute-Dxm39bWR.js.map +1 -0
  9. package/dist/{PageNotFound-DaSDuLFe.js → PageNotFound-53YK_X9b.js} +9 -8
  10. package/dist/{PageNotFound-DaSDuLFe.js.map → PageNotFound-53YK_X9b.js.map} +1 -1
  11. package/dist/PageNotFound-CDk6JhhB.cjs +2 -0
  12. package/dist/{PageNotFound-CSaXlfY9.cjs.map → PageNotFound-CDk6JhhB.cjs.map} +1 -1
  13. package/dist/SupportRoute-CubM7tub.cjs +2 -0
  14. package/dist/{SupportRoute-Dp_lOrFo.cjs.map → SupportRoute-CubM7tub.cjs.map} +1 -1
  15. package/dist/{SupportRoute-z6fTrzW6.js → SupportRoute-DqIjoOuN.js} +5 -4
  16. package/dist/{SupportRoute-z6fTrzW6.js.map → SupportRoute-DqIjoOuN.js.map} +1 -1
  17. package/dist/{VersionsRoute-DpavxXiY.js → VersionsRoute-CU6kCScw.js} +18 -17
  18. package/dist/{VersionsRoute-DpavxXiY.js.map → VersionsRoute-CU6kCScw.js.map} +1 -1
  19. package/dist/VersionsRoute-DhLe3vGU.cjs +2 -0
  20. package/dist/{VersionsRoute-DOk3dm3e.cjs.map → VersionsRoute-DhLe3vGU.cjs.map} +1 -1
  21. package/dist/{index-BL-nqm0f.js → index-CmGluDif.js} +513 -518
  22. package/dist/index-CmGluDif.js.map +1 -0
  23. package/dist/{index-ePMHO6oA.cjs → index-CplpUoHk.cjs} +5 -5
  24. package/dist/index-CplpUoHk.cjs.map +1 -0
  25. package/dist/react-lib-tools.cjs +1 -1
  26. package/dist/react-lib-tools.js +6 -6
  27. package/dist/useLibraryContext-BL7MB9JL.cjs +2 -0
  28. package/dist/useLibraryContext-BL7MB9JL.cjs.map +1 -0
  29. package/dist/useLibraryContext-C15B6XV-.js +10 -0
  30. package/dist/useLibraryContext-C15B6XV-.js.map +1 -0
  31. package/package.json +9 -8
  32. package/scripts/compile-examples.ts +3 -1
  33. package/scripts/utils/syntax-highlight.ts +7 -1
  34. package/dist/CommonQuestionsRoute-BaeYAOSK.cjs +0 -2
  35. package/dist/CommonQuestionsRoute-Bc_XQOxV.js +0 -30
  36. package/dist/GettingStartedRoute-Bo2cbVUj.js.map +0 -1
  37. package/dist/GettingStartedRoute-CeEbxuNu.cjs +0 -2
  38. package/dist/GettingStartedRoute-CeEbxuNu.cjs.map +0 -1
  39. package/dist/PageNotFound-CSaXlfY9.cjs +0 -2
  40. package/dist/SupportRoute-Dp_lOrFo.cjs +0 -2
  41. package/dist/VersionsRoute-DOk3dm3e.cjs +0 -2
  42. package/dist/index-BL-nqm0f.js.map +0 -1
  43. package/dist/index-ePMHO6oA.cjs.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-ePMHO6oA.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-CplpUoHk.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-BL-nqm0f.js";
1
+ import { A as o, b as e, B as n, c as t, C as r, d as i, e as p, k as c, l, D as d, f as C, E as k, H as m, I as B, g as S, h as u, i as x, N as I, j as L, R as N, m as g, T as v, a as E, n as H, o as R } from "./index-CmGluDif.js";
2
2
  export {
3
3
  o as AppRoot,
4
4
  e as Block,
@@ -14,11 +14,11 @@ export {
14
14
  k as ExternalLink,
15
15
  m as Header,
16
16
  B as ImperativeHandle,
17
- L as Input,
18
- S as Link,
19
- u as LoadingSpinner,
20
- x as NavLink,
21
- I as NavSection,
17
+ S as Input,
18
+ u as Link,
19
+ x as LoadingSpinner,
20
+ I as NavLink,
21
+ L as NavSection,
22
22
  N as Radio,
23
23
  g as Select,
24
24
  v as Tooltip,
@@ -0,0 +1,2 @@
1
+ "use strict";const r=require("react"),t=require("./index-CplpUoHk.cjs");function n(){const e=r.useContext(t.LibraryContext);return t.assert(e,"App must be rendered within a LibraryContextProvider"),e}exports.useLibraryContext=n;
2
+ //# sourceMappingURL=useLibraryContext-BL7MB9JL.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLibraryContext-BL7MB9JL.cjs","sources":["../lib/hooks/useLibraryContext.ts"],"sourcesContent":["import { useContext } from \"react\";\nimport { LibraryContext } from \"../contexts/LibraryContext\";\nimport { assert } from \"../utils/assert\";\n\nexport function useLibraryContext() {\n const context = useContext(LibraryContext);\n assert(context, \"App must be rendered within a LibraryContextProvider\");\n\n return context;\n}\n"],"names":["useLibraryContext","context","useContext","LibraryContext","assert"],"mappings":"wEAIO,SAASA,GAAoB,CAClC,MAAMC,EAAUC,EAAAA,WAAWC,gBAAc,EACzCC,OAAAA,EAAAA,OAAOH,EAAS,sDAAsD,EAE/DA,CACT"}
@@ -0,0 +1,10 @@
1
+ import { useContext as r } from "react";
2
+ import { L as e, a as o } from "./index-CmGluDif.js";
3
+ function i() {
4
+ const t = r(e);
5
+ return o(t, "App must be rendered within a LibraryContextProvider"), t;
6
+ }
7
+ export {
8
+ i as u
9
+ };
10
+ //# sourceMappingURL=useLibraryContext-C15B6XV-.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLibraryContext-C15B6XV-.js","sources":["../lib/hooks/useLibraryContext.ts"],"sourcesContent":["import { useContext } from \"react\";\nimport { LibraryContext } from \"../contexts/LibraryContext\";\nimport { assert } from \"../utils/assert\";\n\nexport function useLibraryContext() {\n const context = useContext(LibraryContext);\n assert(context, \"App must be rendered within a LibraryContextProvider\");\n\n return context;\n}\n"],"names":["useLibraryContext","context","useContext","LibraryContext","assert"],"mappings":";;AAIO,SAASA,IAAoB;AAClC,QAAMC,IAAUC,EAAWC,CAAc;AACzC,SAAAC,EAAOH,GAAS,sDAAsD,GAE/DA;AACT;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-lib-tools",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "type": "module",
5
5
  "author": "Brian Vaughn <brian.david.vaughn@gmail.com> (https://github.com/bvaughn/)",
6
6
  "contributors": [
@@ -43,13 +43,14 @@
43
43
  "react-dom": "^18.0.0 || ^19.0.0"
44
44
  },
45
45
  "dependencies": {
46
- "@codemirror/lang-css": "latest",
47
- "@codemirror/lang-html": "latest",
48
- "@codemirror/lang-javascript": "latest",
49
- "@codemirror/lang-markdown": "latest",
50
- "@codemirror/language": "latest",
51
- "@codemirror/state": "latest",
52
- "@lezer/highlight": "latest",
46
+ "@codemirror/lang-css": "^6.3.1",
47
+ "@codemirror/lang-html": "^6.4.11",
48
+ "@codemirror/lang-javascript": "^6.2.4",
49
+ "@codemirror/lang-json": "^6.0.2",
50
+ "@codemirror/lang-markdown": "^6.5.0",
51
+ "@codemirror/language": "^6.12.1",
52
+ "@codemirror/state": "^6.5.3",
53
+ "@lezer/highlight": "^1.2.3",
53
54
  "@ts-ast-parser/core": "^0.8.0"
54
55
  },
55
56
  "devDependencies": {
@@ -8,7 +8,7 @@ import { syntaxHighlight } from "./utils/syntax-highlight.ts";
8
8
  * Compile example snippets into syntax-highlighted HTML that can be rendered by the `Code` component.
9
9
  */
10
10
  export async function compileExamples({
11
- fileExtensions = [".css", ".html", ".js", ".jsx", ".ts", ".tsx"],
11
+ fileExtensions = [".css", ".html", ".json", ".js", ".jsx", ".ts", ".tsx"],
12
12
  inputPath = ["src", "routes"],
13
13
  outputPath = ["public", "generated", "examples"]
14
14
  }: {
@@ -71,6 +71,8 @@ export async function compileExamples({
71
71
  rawText,
72
72
  file.endsWith("jsx") ? "JSX" : "JS"
73
73
  );
74
+ } else if (file.endsWith(".json")) {
75
+ html = await syntaxHighlight(rawText, "JSON");
74
76
  } else if (file.endsWith(".ts") || file.endsWith(".tsx")) {
75
77
  html = await syntaxHighlight(
76
78
  rawText,
@@ -1,4 +1,5 @@
1
1
  import { cssLanguage } from "@codemirror/lang-css";
2
+ import { jsonLanguage } from "@codemirror/lang-json";
2
3
  import { htmlLanguage } from "@codemirror/lang-html";
3
4
  import {
4
5
  jsxLanguage,
@@ -17,7 +18,7 @@ type Token = {
17
18
  value: string;
18
19
  };
19
20
 
20
- export type Language = "CSS" | "HTML" | "JS" | "JSX" | "TS" | "TSX";
21
+ export type Language = "CSS" | "HTML" | "JS" | "JSON" | "JSX" | "TS" | "TSX";
21
22
 
22
23
  type State = {
23
24
  parsedTokens: Token[];
@@ -47,6 +48,11 @@ export async function syntaxHighlight(code: string, language: Language) {
47
48
  prettierParser = "babel";
48
49
  break;
49
50
  }
51
+ case "JSON": {
52
+ extension = jsonLanguage;
53
+ prettierParser = "json";
54
+ break;
55
+ }
50
56
  case "TS": {
51
57
  extension = typescriptLanguage;
52
58
  prettierParser = "typescript";
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),s=require("./index-ePMHO6oA.cjs");function i({children:t}){return e.jsx("dd",{className:"mt-2 flex flex-col gap-2",children:t})}function r({children:t,id:n}){return e.jsx("dt",{className:"pt-4",id:n,children:e.jsx("a",{className:"text-lg text-common-question-header! font-bold",href:`#${n}`,children:t})})}function c(){const{commonQuestions:t=[]}=s.useLibraryContext();return e.jsxs(s.Box,{direction:"column",gap:4,children:[e.jsx(s.Header,{title:"Common questions"}),e.jsx("dl",{children:t.map(n=>e.jsxs(o.Fragment,{children:[e.jsx(r,{id:n.id,children:n.question}),e.jsx(i,{children:n.answer})]},n.id))})]})}exports.default=c;
2
- //# sourceMappingURL=CommonQuestionsRoute-BaeYAOSK.cjs.map
@@ -1,30 +0,0 @@
1
- import { jsx as o, jsxs as t } from "react/jsx-runtime";
2
- import { Fragment as s } from "react";
3
- import { u as i, B as r, H as m } from "./index-BL-nqm0f.js";
4
- function a({ children: n }) {
5
- return /* @__PURE__ */ o("dd", { className: "mt-2 flex flex-col gap-2", children: n });
6
- }
7
- function l({ children: n, id: e }) {
8
- return /* @__PURE__ */ o("dt", { className: "pt-4", id: e, children: /* @__PURE__ */ o(
9
- "a",
10
- {
11
- className: "text-lg text-common-question-header! font-bold",
12
- href: `#${e}`,
13
- children: n
14
- }
15
- ) });
16
- }
17
- function f() {
18
- const { commonQuestions: n = [] } = i();
19
- return /* @__PURE__ */ t(r, { direction: "column", gap: 4, children: [
20
- /* @__PURE__ */ o(m, { title: "Common questions" }),
21
- /* @__PURE__ */ o("dl", { children: n.map((e) => /* @__PURE__ */ t(s, { children: [
22
- /* @__PURE__ */ o(l, { id: e.id, children: e.question }),
23
- /* @__PURE__ */ o(a, { children: e.answer })
24
- ] }, e.id)) })
25
- ] });
26
- }
27
- export {
28
- f as default
29
- };
30
- //# sourceMappingURL=CommonQuestionsRoute-Bc_XQOxV.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GettingStartedRoute-Bo2cbVUj.js","sources":["../lib/components/app/routes/GettingStartedRoute.tsx"],"sourcesContent":["import { useLibraryContext } from \"../../../hooks/useLibraryContext\";\nimport { Box } from \"../../Box\";\nimport { Callout } from \"../../Callout\";\nimport { ExternalLink } from \"../../ExternalLink\";\nimport { Header } from \"../../Header\";\n\nexport default function GettingStartedRoute() {\n const { overview, packageName, showOpenCollectLink } = useLibraryContext();\n\n return (\n <Box direction=\"column\" gap={4}>\n <Header title=\"Getting started\" />\n {overview}\n {overview && <div className=\"text-xl mt-4\">Installation</div>}\n <div>Begin by installing the library from NPM:</div>\n <code className=\"grow text-xs md:text-sm block text-left whitespace-pre-wrap rounded-md p-3 bg-black text-white!\">\n npm install <span className=\"tok-keyword\">{packageName}</span>\n </code>\n <Callout intent=\"primary\">\n TypeScript definitions are included within the published{\" \"}\n <code>dist</code> folder.\n </Callout>\n <div className=\"text-xl mt-4\">Support</div>\n <div>Here are some ways to support this project:</div>\n <ul className=\"pl-8\">\n <li className=\"list-disc\">\n <ExternalLink href=\"https://github.com/sponsors/bvaughn/\">\n Become a GitHub sponsor\n </ExternalLink>\n </li>\n {showOpenCollectLink && (\n <li className=\"list-disc\">\n <ExternalLink\n href={`https://opencollective.com/${packageName}#sponsor`}\n >\n Become an Open Collective sponsor\n </ExternalLink>\n </li>\n )}\n <li className=\"list-disc\">\n <ExternalLink href=\"http://givebrian.coffee/\">\n Buy me a coffee\n </ExternalLink>\n </li>\n </ul>\n </Box>\n );\n}\n"],"names":["GettingStartedRoute","overview","packageName","showOpenCollectLink","useLibraryContext","jsxs","Box","jsx","Header","Callout","ExternalLink"],"mappings":";;AAMA,SAAwBA,IAAsB;AAC5C,QAAM,EAAE,UAAAC,GAAU,aAAAC,GAAa,qBAAAC,EAAA,IAAwBC,EAAA;AAEvD,SACE,gBAAAC,EAACC,GAAA,EAAI,WAAU,UAAS,KAAK,GAC3B,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAA,EAAO,OAAM,kBAAA,CAAkB;AAAA,IAC/BP;AAAA,IACAA,KAAY,gBAAAM,EAAC,OAAA,EAAI,WAAU,gBAAe,UAAA,gBAAY;AAAA,IACvD,gBAAAA,EAAC,SAAI,UAAA,4CAAA,CAAyC;AAAA,IAC9C,gBAAAF,EAAC,QAAA,EAAK,WAAU,mGAAkG,UAAA;AAAA,MAAA;AAAA,MACpG,gBAAAE,EAAC,QAAA,EAAK,WAAU,eAAe,UAAAL,EAAA,CAAY;AAAA,IAAA,GACzD;AAAA,IACA,gBAAAG,EAACI,GAAA,EAAQ,QAAO,WAAU,UAAA;AAAA,MAAA;AAAA,MACiC;AAAA,MACzD,gBAAAF,EAAC,UAAK,UAAA,OAAA,CAAI;AAAA,MAAO;AAAA,IAAA,GACnB;AAAA,IACA,gBAAAA,EAAC,OAAA,EAAI,WAAU,gBAAe,UAAA,WAAO;AAAA,IACrC,gBAAAA,EAAC,SAAI,UAAA,8CAAA,CAA2C;AAAA,IAChD,gBAAAF,EAAC,MAAA,EAAG,WAAU,QACZ,UAAA;AAAA,MAAA,gBAAAE,EAAC,MAAA,EAAG,WAAU,aACZ,UAAA,gBAAAA,EAACG,KAAa,MAAK,wCAAuC,qCAE1D,EAAA,CACF;AAAA,MACCP,KACC,gBAAAI,EAAC,MAAA,EAAG,WAAU,aACZ,UAAA,gBAAAA;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,MAAM,8BAA8BR,CAAW;AAAA,UAChD,UAAA;AAAA,QAAA;AAAA,MAAA,GAGH;AAAA,MAEF,gBAAAK,EAAC,QAAG,WAAU,aACZ,4BAACG,GAAA,EAAa,MAAK,4BAA2B,UAAA,kBAAA,CAE9C,EAAA,CACF;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-ePMHO6oA.cjs");function n(){const{overview:s,packageName:i,showOpenCollectLink:l}=t.useLibraryContext();return e.jsxs(t.Box,{direction:"column",gap:4,children:[e.jsx(t.Header,{title:"Getting started"}),s,s&&e.jsx("div",{className:"text-xl mt-4",children:"Installation"}),e.jsx("div",{children:"Begin by installing the library from NPM:"}),e.jsxs("code",{className:"grow text-xs md:text-sm block text-left whitespace-pre-wrap rounded-md p-3 bg-black text-white!",children:["npm install ",e.jsx("span",{className:"tok-keyword",children:i})]}),e.jsxs(t.Callout,{intent:"primary",children:["TypeScript definitions are included within the published"," ",e.jsx("code",{children:"dist"})," folder."]}),e.jsx("div",{className:"text-xl mt-4",children:"Support"}),e.jsx("div",{children:"Here are some ways to support this project:"}),e.jsxs("ul",{className:"pl-8",children:[e.jsx("li",{className:"list-disc",children:e.jsx(t.ExternalLink,{href:"https://github.com/sponsors/bvaughn/",children:"Become a GitHub sponsor"})}),l&&e.jsx("li",{className:"list-disc",children:e.jsx(t.ExternalLink,{href:`https://opencollective.com/${i}#sponsor`,children:"Become an Open Collective sponsor"})}),e.jsx("li",{className:"list-disc",children:e.jsx(t.ExternalLink,{href:"http://givebrian.coffee/",children:"Buy me a coffee"})})]})]})}exports.default=n;
2
- //# sourceMappingURL=GettingStartedRoute-CeEbxuNu.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GettingStartedRoute-CeEbxuNu.cjs","sources":["../lib/components/app/routes/GettingStartedRoute.tsx"],"sourcesContent":["import { useLibraryContext } from \"../../../hooks/useLibraryContext\";\nimport { Box } from \"../../Box\";\nimport { Callout } from \"../../Callout\";\nimport { ExternalLink } from \"../../ExternalLink\";\nimport { Header } from \"../../Header\";\n\nexport default function GettingStartedRoute() {\n const { overview, packageName, showOpenCollectLink } = useLibraryContext();\n\n return (\n <Box direction=\"column\" gap={4}>\n <Header title=\"Getting started\" />\n {overview}\n {overview && <div className=\"text-xl mt-4\">Installation</div>}\n <div>Begin by installing the library from NPM:</div>\n <code className=\"grow text-xs md:text-sm block text-left whitespace-pre-wrap rounded-md p-3 bg-black text-white!\">\n npm install <span className=\"tok-keyword\">{packageName}</span>\n </code>\n <Callout intent=\"primary\">\n TypeScript definitions are included within the published{\" \"}\n <code>dist</code> folder.\n </Callout>\n <div className=\"text-xl mt-4\">Support</div>\n <div>Here are some ways to support this project:</div>\n <ul className=\"pl-8\">\n <li className=\"list-disc\">\n <ExternalLink href=\"https://github.com/sponsors/bvaughn/\">\n Become a GitHub sponsor\n </ExternalLink>\n </li>\n {showOpenCollectLink && (\n <li className=\"list-disc\">\n <ExternalLink\n href={`https://opencollective.com/${packageName}#sponsor`}\n >\n Become an Open Collective sponsor\n </ExternalLink>\n </li>\n )}\n <li className=\"list-disc\">\n <ExternalLink href=\"http://givebrian.coffee/\">\n Buy me a coffee\n </ExternalLink>\n </li>\n </ul>\n </Box>\n );\n}\n"],"names":["GettingStartedRoute","overview","packageName","showOpenCollectLink","useLibraryContext","jsxs","Box","jsx","Header","Callout","ExternalLink"],"mappings":"uJAMA,SAAwBA,GAAsB,CAC5C,KAAM,CAAE,SAAAC,EAAU,YAAAC,EAAa,oBAAAC,CAAA,EAAwBC,EAAAA,kBAAA,EAEvD,OACEC,EAAAA,KAACC,EAAAA,IAAA,CAAI,UAAU,SAAS,IAAK,EAC3B,SAAA,CAAAC,EAAAA,IAACC,EAAAA,OAAA,CAAO,MAAM,iBAAA,CAAkB,EAC/BP,EACAA,GAAYM,EAAAA,IAAC,MAAA,CAAI,UAAU,eAAe,SAAA,eAAY,EACvDA,EAAAA,IAAC,OAAI,SAAA,2CAAA,CAAyC,EAC9CF,EAAAA,KAAC,OAAA,CAAK,UAAU,kGAAkG,SAAA,CAAA,eACpGE,EAAAA,IAAC,OAAA,CAAK,UAAU,cAAe,SAAAL,CAAA,CAAY,CAAA,EACzD,EACAG,EAAAA,KAACI,EAAAA,QAAA,CAAQ,OAAO,UAAU,SAAA,CAAA,2DACiC,IACzDF,EAAAA,IAAC,QAAK,SAAA,MAAA,CAAI,EAAO,UAAA,EACnB,EACAA,EAAAA,IAAC,MAAA,CAAI,UAAU,eAAe,SAAA,UAAO,EACrCA,EAAAA,IAAC,OAAI,SAAA,6CAAA,CAA2C,EAChDF,EAAAA,KAAC,KAAA,CAAG,UAAU,OACZ,SAAA,CAAAE,EAAAA,IAAC,KAAA,CAAG,UAAU,YACZ,SAAAA,EAAAA,IAACG,gBAAa,KAAK,uCAAuC,mCAE1D,CAAA,CACF,EACCP,GACCI,EAAAA,IAAC,KAAA,CAAG,UAAU,YACZ,SAAAA,EAAAA,IAACG,EAAAA,aAAA,CACC,KAAM,8BAA8BR,CAAW,WAChD,SAAA,mCAAA,CAAA,EAGH,EAEFK,EAAAA,IAAC,MAAG,UAAU,YACZ,eAACG,EAAAA,aAAA,CAAa,KAAK,2BAA2B,SAAA,iBAAA,CAE9C,CAAA,CACF,CAAA,CAAA,CACF,CAAA,EACF,CAEJ"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("./index-ePMHO6oA.cjs");function i(){const{packageName:n}=e.useLibraryContext();return t.jsxs(e.Box,{direction:"column",gap:4,children:[t.jsx(e.Header,{title:"Page not found"}),t.jsxs(e.Callout,{intent:"danger",children:["The URL you requested can't be found. If you think this is an error,"," ",t.jsx(e.ExternalLink,{href:`https://github.com/bvaughn/${n}/issues/new`,children:"please file a GitHub issue"}),"."]})]})}exports.default=i;
2
- //# sourceMappingURL=PageNotFound-CSaXlfY9.cjs.map
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-ePMHO6oA.cjs");function i(){const{packageName:s}=t.useLibraryContext();return e.jsxs(t.Box,{direction:"column",gap:4,children:[e.jsx(t.Header,{title:"Support"}),e.jsxs("div",{children:[e.jsx(t.ExternalLink,{href:`https://github.com/bvaughn/${s}`,children:"GitHub"})," ","is the easiest place to look for help, but it's probably not the fastest. This project is maintained by a single developer so there is limited bandwidth for answering questions."]}),e.jsxs("div",{children:["I recommend asking questions on"," ",e.jsx(t.ExternalLink,{href:`https://stackoverflow.com/search?q=${s}`,children:"Stack Overflow"})," ","or"," ",e.jsx(t.ExternalLink,{href:"https://reddit.com/r/reactjs",children:"Reddit"})," ","to start with. Both sites have active communities who often respond quickly. If you don't find an answer there you can try opening a GitHub issue- but please take a moment first to see if your question has"," ",e.jsx(t.ExternalLink,{href:`https://github.com/bvaughn/${s}/issues?q=is%3Aissue%20state%3Aclosed`,children:"has already been answered"})," ","before opening a new one."]})]})}exports.default=i;
2
- //# sourceMappingURL=SupportRoute-Dp_lOrFo.cjs.map
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-ePMHO6oA.cjs"),i=require("react");function c(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const o=c(i);function C(t,e="Assertion error"){if(!t)throw console.error(e),Error(e)}const u=t=>o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 640",fill:"currentColor",...t},o.createElement("path",{d:"M119.7 263.7L150.6 294.6C156.6 300.6 164.7 304 173.2 304L194.7 304C203.2 304 211.3 307.4 217.3 313.4L246.6 342.7C252.6 348.7 256 356.8 256 365.3L256 402.8C256 411.3 259.4 419.4 265.4 425.4L278.7 438.7C284.7 444.7 288.1 452.8 288.1 461.3L288.1 480C288.1 497.7 302.4 512 320.1 512C337.8 512 352.1 497.7 352.1 480L352.1 477.3C352.1 468.8 355.5 460.7 361.5 454.7L406.8 409.4C412.8 403.4 416.2 395.3 416.2 386.8L416.2 352.1C416.2 334.4 401.9 320.1 384.2 320.1L301.5 320.1C293 320.1 284.9 316.7 278.9 310.7L262.9 294.7C258.7 290.5 256.3 284.7 256.3 278.7C256.3 266.2 266.4 256.1 278.9 256.1L313.6 256.1C326.1 256.1 336.2 246 336.2 233.5C336.2 227.5 333.8 221.7 329.6 217.5L309.9 197.8C306 194 304 189.1 304 184C304 178.9 306 174 309.7 170.3L327 153C332.8 147.2 336.1 139.3 336.1 131.1C336.1 123.9 333.7 117.4 329.7 112.2C326.5 112.1 323.3 112 320.1 112C224.7 112 144.4 176.2 119.8 263.7zM528 320C528 285.4 519.6 252.8 504.6 224.2C498.2 225.1 491.9 228.1 486.7 233.3L473.3 246.7C467.3 252.7 463.9 260.8 463.9 269.3L463.9 304C463.9 321.7 478.2 336 495.9 336L520 336C522.5 336 525 335.7 527.3 335.2C527.7 330.2 527.8 325.1 527.8 320zM64 320C64 178.6 178.6 64 320 64C461.4 64 576 178.6 576 320C576 461.4 461.4 576 320 576C178.6 576 64 461.4 64 320z"}));function m({url:t,version:e}){const{packageName:r}=a.useLibraryContext();return s.jsxs("li",{className:"list-disc",children:[e.split(".").slice(0,2).join("."),s.jsx("span",{className:"text-slate-400",children:".x"}),t&&s.jsxs(a.ExternalLink,{"aria-label":`Documentation for version ${e}`,className:"ml-4",href:t,children:[s.jsx(u,{className:"inline w-4 h-4 text-teal-200"})," documentation"]}),s.jsxs(a.ExternalLink,{"aria-label":`GitHub tag for version ${e}`,className:"ml-4",href:`https://github.com/bvaughn/${r}/releases/tag/${e}`,children:[s.jsx(a.SvgTags,{className:"inline w-4 h-4 text-teal-200"})," source code"]})]})}function d(){const{versions:t}=a.useLibraryContext();return C(t!==void 0),s.jsxs(a.Box,{direction:"column",gap:2,children:[s.jsx(a.Header,{title:"Previous releases"}),s.jsx("div",{children:"Click below to view documentation for past releases."}),Object.entries(t).sort((e,r)=>r[0].localeCompare(e[0])).map(([e,r])=>s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"text-lg mt-2",children:["Version ",e]}),s.jsx("ul",{className:"pl-8",children:Object.entries(r).sort((n,l)=>l[0].localeCompare(n[0])).map(([n,l])=>s.jsx(m,{url:l,version:n},n))})]},e))]})}exports.default=d;
2
- //# sourceMappingURL=VersionsRoute-DOk3dm3e.cjs.map