react-lib-tools 0.0.35 → 0.0.37
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/{CommonQuestionsRoute-D9K79upc.js → CommonQuestionsRoute-BwwqUJyI.js} +2 -2
- package/dist/{CommonQuestionsRoute-D9K79upc.js.map → CommonQuestionsRoute-BwwqUJyI.js.map} +1 -1
- package/dist/{CommonQuestionsRoute-CA0eEVPH.cjs → CommonQuestionsRoute-sImKiGx8.cjs} +2 -2
- package/dist/{CommonQuestionsRoute-CA0eEVPH.cjs.map → CommonQuestionsRoute-sImKiGx8.cjs.map} +1 -1
- package/dist/{GettingStartedRoute-rQVjSgEq.js → GettingStartedRoute-ClJU7JcL.js} +2 -2
- package/dist/{GettingStartedRoute-rQVjSgEq.js.map → GettingStartedRoute-ClJU7JcL.js.map} +1 -1
- package/dist/{GettingStartedRoute-B2gmhrI5.cjs → GettingStartedRoute-tyikH6yS.cjs} +2 -2
- package/dist/{GettingStartedRoute-B2gmhrI5.cjs.map → GettingStartedRoute-tyikH6yS.cjs.map} +1 -1
- package/dist/{PageNotFound-YcVoO6YV.cjs → PageNotFound-CSDM7qet.cjs} +2 -2
- package/dist/{PageNotFound-YcVoO6YV.cjs.map → PageNotFound-CSDM7qet.cjs.map} +1 -1
- package/dist/{PageNotFound-CrAUgSnt.js → PageNotFound-ibjIlKwX.js} +2 -2
- package/dist/{PageNotFound-CrAUgSnt.js.map → PageNotFound-ibjIlKwX.js.map} +1 -1
- package/dist/{SupportRoute-C74g_-rm.js → SupportRoute-BWxqeS9G.js} +2 -2
- package/dist/{SupportRoute-C74g_-rm.js.map → SupportRoute-BWxqeS9G.js.map} +1 -1
- package/dist/{SupportRoute-B4AetYXb.cjs → SupportRoute-CaVQtANn.cjs} +2 -2
- package/dist/{SupportRoute-B4AetYXb.cjs.map → SupportRoute-CaVQtANn.cjs.map} +1 -1
- package/dist/{VersionsRoute-CX4l8cMW.js → VersionsRoute-CRPHJWuY.js} +2 -2
- package/dist/{VersionsRoute-CX4l8cMW.js.map → VersionsRoute-CRPHJWuY.js.map} +1 -1
- package/dist/{VersionsRoute-Spk6Sna2.cjs → VersionsRoute-s9kvgKZE.cjs} +2 -2
- package/dist/{VersionsRoute-Spk6Sna2.cjs.map → VersionsRoute-s9kvgKZE.cjs.map} +1 -1
- package/dist/fuse-BvOe6mNx.js +1023 -0
- package/dist/fuse-BvOe6mNx.js.map +1 -0
- package/dist/fuse-CM2wbN_z.cjs +2 -0
- package/dist/fuse-CM2wbN_z.cjs.map +1 -0
- package/dist/index-D_pov2Kn.cjs +8 -0
- package/dist/index-D_pov2Kn.cjs.map +1 -0
- package/dist/{index-Bf43K_g2.js → index-DbkaDE2f.js} +2577 -2286
- package/dist/index-DbkaDE2f.js.map +1 -0
- package/dist/react-lib-tools.cjs +1 -1
- package/dist/react-lib-tools.d.ts +9 -3
- package/dist/react-lib-tools.js +1 -1
- package/lib/types.ts +6 -0
- package/package.json +5 -4
- package/scripts/compile-search-index.ts +39 -0
- package/scripts/utils/search/crawlPage.ts +103 -0
- package/scripts/utils/search/stopWords.ts +129 -0
- package/scripts/utils/search/types.ts +6 -0
- package/dist/index-BB-4-AeJ.cjs +0 -8
- package/dist/index-BB-4-AeJ.cjs.map +0 -1
- package/dist/index-Bf43K_g2.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment as s } from "react";
|
|
3
|
-
import { u as i, B as r, H as m } from "./index-
|
|
3
|
+
import { u as i, B as r, H as m } from "./index-DbkaDE2f.js";
|
|
4
4
|
function a({ children: n }) {
|
|
5
5
|
return /* @__PURE__ */ o("dd", { className: "mb-2 flex flex-col gap-2", children: n });
|
|
6
6
|
}
|
|
@@ -27,4 +27,4 @@ function f() {
|
|
|
27
27
|
export {
|
|
28
28
|
f as default
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=CommonQuestionsRoute-
|
|
30
|
+
//# sourceMappingURL=CommonQuestionsRoute-BwwqUJyI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonQuestionsRoute-
|
|
1
|
+
{"version":3,"file":"CommonQuestionsRoute-BwwqUJyI.js","sources":["../lib/components/app/components/Answer.tsx","../lib/components/app/components/Question.tsx","../lib/components/app/routes/CommonQuestionsRoute.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\n\nexport function Answer({ children }: PropsWithChildren) {\n return <dd className=\"mb-2 flex flex-col gap-2\">{children}</dd>;\n}\n","import type { PropsWithChildren } from \"react\";\n\nexport function Question({ children, id }: PropsWithChildren<{ id: string }>) {\n return (\n <dt className=\"pt-4\" id={id}>\n <a\n className=\"text-lg text-common-question-header! font-bold\"\n href={`#${id}`}\n >\n {children}\n </a>\n </dt>\n );\n}\n","import { Fragment } from \"react\";\nimport { useLibraryContext } from \"../../../hooks/useLibraryContext\";\nimport { Box } from \"../../Box\";\nimport { Header } from \"../../Header\";\nimport { Answer } from \"../components/Answer\";\nimport { Question } from \"../components/Question\";\n\nexport default function CommonQuestionsRoute() {\n const { commonQuestions = [] } = useLibraryContext();\n\n return (\n <Box direction=\"column\" gap={4}>\n <Header title=\"Common questions\" />\n <dl>\n {commonQuestions.map((current) => (\n <Fragment key={current.id}>\n <Question id={current.id}>{current.question}</Question>\n <Answer>{current.answer}</Answer>\n </Fragment>\n ))}\n </dl>\n </Box>\n );\n}\n"],"names":["Answer","children","jsx","Question","id","CommonQuestionsRoute","commonQuestions","useLibraryContext","jsxs","Box","Header","current","Fragment"],"mappings":";;;AAEO,SAASA,EAAO,EAAE,UAAAC,KAA+B;AACtD,SAAO,gBAAAC,EAAC,MAAA,EAAG,WAAU,4BAA4B,UAAAD,EAAA,CAAS;AAC5D;ACFO,SAASE,EAAS,EAAE,UAAAF,GAAU,IAAAG,KAAyC;AAC5E,SACE,gBAAAF,EAAC,MAAA,EAAG,WAAU,QAAO,IAAAE,GACnB,UAAA,gBAAAF;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAU;AAAA,MACV,MAAM,IAAIE,CAAE;AAAA,MAEX,UAAAH;AAAA,IAAA;AAAA,EAAA,GAEL;AAEJ;ACNA,SAAwBI,IAAuB;AAC7C,QAAM,EAAE,iBAAAC,IAAkB,GAAC,IAAMC,EAAA;AAEjC,SACE,gBAAAC,EAACC,GAAA,EAAI,WAAU,UAAS,KAAK,GAC3B,UAAA;AAAA,IAAA,gBAAAP,EAACQ,GAAA,EAAO,OAAM,mBAAA,CAAmB;AAAA,sBAChC,MAAA,EACE,UAAAJ,EAAgB,IAAI,CAACK,wBACnBC,GAAA,EACC,UAAA;AAAA,MAAA,gBAAAV,EAACC,GAAA,EAAS,IAAIQ,EAAQ,IAAK,YAAQ,UAAS;AAAA,MAC5C,gBAAAT,EAACF,GAAA,EAAQ,UAAAW,EAAQ,OAAA,CAAO;AAAA,IAAA,KAFXA,EAAQ,EAGvB,CACD,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),t=require("./index-
|
|
2
|
-
//# sourceMappingURL=CommonQuestionsRoute-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),t=require("./index-D_pov2Kn.cjs");function i({children:s}){return e.jsx("dd",{className:"mb-2 flex flex-col gap-2",children:s})}function r({children:s,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:s})})}function c(){const{commonQuestions:s=[]}=t.useLibraryContext();return e.jsxs(t.Box,{direction:"column",gap:4,children:[e.jsx(t.Header,{title:"Common questions"}),e.jsx("dl",{children:s.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-sImKiGx8.cjs.map
|
package/dist/{CommonQuestionsRoute-CA0eEVPH.cjs.map → CommonQuestionsRoute-sImKiGx8.cjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonQuestionsRoute-
|
|
1
|
+
{"version":3,"file":"CommonQuestionsRoute-sImKiGx8.cjs","sources":["../lib/components/app/components/Answer.tsx","../lib/components/app/components/Question.tsx","../lib/components/app/routes/CommonQuestionsRoute.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\n\nexport function Answer({ children }: PropsWithChildren) {\n return <dd className=\"mb-2 flex flex-col gap-2\">{children}</dd>;\n}\n","import type { PropsWithChildren } from \"react\";\n\nexport function Question({ children, id }: PropsWithChildren<{ id: string }>) {\n return (\n <dt className=\"pt-4\" id={id}>\n <a\n className=\"text-lg text-common-question-header! font-bold\"\n href={`#${id}`}\n >\n {children}\n </a>\n </dt>\n );\n}\n","import { Fragment } from \"react\";\nimport { useLibraryContext } from \"../../../hooks/useLibraryContext\";\nimport { Box } from \"../../Box\";\nimport { Header } from \"../../Header\";\nimport { Answer } from \"../components/Answer\";\nimport { Question } from \"../components/Question\";\n\nexport default function CommonQuestionsRoute() {\n const { commonQuestions = [] } = useLibraryContext();\n\n return (\n <Box direction=\"column\" gap={4}>\n <Header title=\"Common questions\" />\n <dl>\n {commonQuestions.map((current) => (\n <Fragment key={current.id}>\n <Question id={current.id}>{current.question}</Question>\n <Answer>{current.answer}</Answer>\n </Fragment>\n ))}\n </dl>\n </Box>\n );\n}\n"],"names":["Answer","children","jsx","Question","id","CommonQuestionsRoute","commonQuestions","useLibraryContext","jsxs","Box","Header","current","Fragment"],"mappings":"0KAEO,SAASA,EAAO,CAAE,SAAAC,GAA+B,CACtD,OAAOC,EAAAA,IAAC,KAAA,CAAG,UAAU,2BAA4B,SAAAD,CAAA,CAAS,CAC5D,CCFO,SAASE,EAAS,CAAE,SAAAF,EAAU,GAAAG,GAAyC,CAC5E,OACEF,EAAAA,IAAC,KAAA,CAAG,UAAU,OAAO,GAAAE,EACnB,SAAAF,EAAAA,IAAC,IAAA,CACC,UAAU,iDACV,KAAM,IAAIE,CAAE,GAEX,SAAAH,CAAA,CAAA,EAEL,CAEJ,CCNA,SAAwBI,GAAuB,CAC7C,KAAM,CAAE,gBAAAC,EAAkB,EAAC,EAAMC,oBAAA,EAEjC,OACEC,EAAAA,KAACC,EAAAA,IAAA,CAAI,UAAU,SAAS,IAAK,EAC3B,SAAA,CAAAP,EAAAA,IAACQ,EAAAA,OAAA,CAAO,MAAM,kBAAA,CAAmB,QAChC,KAAA,CACE,SAAAJ,EAAgB,IAAKK,UACnBC,WAAA,CACC,SAAA,CAAAV,MAACC,EAAA,CAAS,GAAIQ,EAAQ,GAAK,WAAQ,SAAS,EAC5CT,EAAAA,IAACF,EAAA,CAAQ,SAAAW,EAAQ,MAAA,CAAO,CAAA,GAFXA,EAAQ,EAGvB,CACD,CAAA,CACH,CAAA,EACF,CAEJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { u as n, B as a, H as c, C as o, E as s } from "./index-
|
|
2
|
+
import { u as n, B as a, H as c, C as o, E as s } from "./index-DbkaDE2f.js";
|
|
3
3
|
function p() {
|
|
4
4
|
const { overview: l, packageName: i, showOpenCollectLink: r } = n();
|
|
5
5
|
return /* @__PURE__ */ t(a, { direction: "column", gap: 4, children: [
|
|
@@ -35,4 +35,4 @@ function p() {
|
|
|
35
35
|
export {
|
|
36
36
|
p as default
|
|
37
37
|
};
|
|
38
|
-
//# sourceMappingURL=GettingStartedRoute-
|
|
38
|
+
//# sourceMappingURL=GettingStartedRoute-ClJU7JcL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GettingStartedRoute-
|
|
1
|
+
{"version":3,"file":"GettingStartedRoute-ClJU7JcL.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 with ${packageName}`} />\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,OAAO,wBAAwBN,CAAW,IAAI;AAAA,IACrDD;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 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-
|
|
2
|
-
//# sourceMappingURL=GettingStartedRoute-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-D_pov2Kn.cjs");function n(){const{overview:i,packageName:s,showOpenCollectLink:l}=t.useLibraryContext();return e.jsxs(t.Box,{direction:"column",gap:4,children:[e.jsx(t.Header,{title:`Getting started with ${s}`}),i,i&&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:s})]}),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/${s}#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-tyikH6yS.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GettingStartedRoute-
|
|
1
|
+
{"version":3,"file":"GettingStartedRoute-tyikH6yS.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 with ${packageName}`} />\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,MAAO,wBAAwBN,CAAW,GAAI,EACrDD,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 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("./index-
|
|
2
|
-
//# sourceMappingURL=PageNotFound-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("./index-D_pov2Kn.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-CSDM7qet.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageNotFound-
|
|
1
|
+
{"version":3,"file":"PageNotFound-CSDM7qet.cjs","sources":["../lib/components/app/routes/PageNotFound.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 PageNotFoundRoute() {\n const { packageName } = useLibraryContext();\n\n return (\n <Box direction=\"column\" gap={4}>\n <Header title=\"Page not found\" />\n <Callout intent=\"danger\">\n The URL you requested can't be found. If you think this is an error,{\" \"}\n <ExternalLink\n href={`https://github.com/bvaughn/${packageName}/issues/new`}\n >\n please file a GitHub issue\n </ExternalLink>\n .\n </Callout>\n </Box>\n );\n}\n"],"names":["PageNotFoundRoute","packageName","useLibraryContext","jsxs","Box","jsx","Header","Callout","ExternalLink"],"mappings":"uJAMA,SAAwBA,GAAoB,CAC1C,KAAM,CAAE,YAAAC,CAAA,EAAgBC,oBAAA,EAExB,OACEC,EAAAA,KAACC,EAAAA,IAAA,CAAI,UAAU,SAAS,IAAK,EAC3B,SAAA,CAAAC,EAAAA,IAACC,EAAAA,OAAA,CAAO,MAAM,gBAAA,CAAiB,EAC/BH,EAAAA,KAACI,EAAAA,QAAA,CAAQ,OAAO,SAAS,SAAA,CAAA,uEAC8C,IACrEF,EAAAA,IAACG,EAAAA,aAAA,CACC,KAAM,8BAA8BP,CAAW,cAChD,SAAA,4BAAA,CAAA,EAEc,GAAA,CAAA,CAEjB,CAAA,EACF,CAEJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { u as a, B as o, H as r, C as s, E as i } from "./index-
|
|
2
|
+
import { u as a, B as o, H as r, C as s, E as i } from "./index-DbkaDE2f.js";
|
|
3
3
|
function l() {
|
|
4
4
|
const { packageName: n } = a();
|
|
5
5
|
return /* @__PURE__ */ e(o, { direction: "column", gap: 4, children: [
|
|
@@ -21,4 +21,4 @@ function l() {
|
|
|
21
21
|
export {
|
|
22
22
|
l as default
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=PageNotFound-
|
|
24
|
+
//# sourceMappingURL=PageNotFound-ibjIlKwX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageNotFound-
|
|
1
|
+
{"version":3,"file":"PageNotFound-ibjIlKwX.js","sources":["../lib/components/app/routes/PageNotFound.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 PageNotFoundRoute() {\n const { packageName } = useLibraryContext();\n\n return (\n <Box direction=\"column\" gap={4}>\n <Header title=\"Page not found\" />\n <Callout intent=\"danger\">\n The URL you requested can't be found. If you think this is an error,{\" \"}\n <ExternalLink\n href={`https://github.com/bvaughn/${packageName}/issues/new`}\n >\n please file a GitHub issue\n </ExternalLink>\n .\n </Callout>\n </Box>\n );\n}\n"],"names":["PageNotFoundRoute","packageName","useLibraryContext","jsxs","Box","jsx","Header","Callout","ExternalLink"],"mappings":";;AAMA,SAAwBA,IAAoB;AAC1C,QAAM,EAAE,aAAAC,EAAA,IAAgBC,EAAA;AAExB,SACE,gBAAAC,EAACC,GAAA,EAAI,WAAU,UAAS,KAAK,GAC3B,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAA,EAAO,OAAM,iBAAA,CAAiB;AAAA,IAC/B,gBAAAH,EAACI,GAAA,EAAQ,QAAO,UAAS,UAAA;AAAA,MAAA;AAAA,MAC8C;AAAA,MACrE,gBAAAF;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,MAAM,8BAA8BP,CAAW;AAAA,UAChD,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,MAEc;AAAA,IAAA,EAAA,CAEjB;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { u as o, B as r, H as n, E as t } from "./index-
|
|
2
|
+
import { u as o, B as r, H as n, E as t } from "./index-DbkaDE2f.js";
|
|
3
3
|
function c() {
|
|
4
4
|
const { packageName: s } = o();
|
|
5
5
|
return /* @__PURE__ */ i(r, { direction: "column", gap: 4, children: [
|
|
@@ -41,4 +41,4 @@ function c() {
|
|
|
41
41
|
export {
|
|
42
42
|
c as default
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=SupportRoute-
|
|
44
|
+
//# sourceMappingURL=SupportRoute-BWxqeS9G.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupportRoute-
|
|
1
|
+
{"version":3,"file":"SupportRoute-BWxqeS9G.js","sources":["../lib/components/app/routes/SupportRoute.tsx"],"sourcesContent":["import { useLibraryContext } from \"../../../hooks/useLibraryContext\";\nimport { Box } from \"../../Box\";\nimport { ExternalLink } from \"../../ExternalLink\";\nimport { Header } from \"../../Header\";\n\nexport default function SupportRoute() {\n const { packageName } = useLibraryContext();\n\n return (\n <Box direction=\"column\" gap={4}>\n <Header title=\"Support\" />\n <div>\n <ExternalLink href={`https://github.com/bvaughn/${packageName}`}>\n GitHub\n </ExternalLink>{\" \"}\n is the easiest place to look for help, but it's probably not the\n fastest. This project is maintained by a single developer so there is\n limited bandwidth for answering questions.\n </div>\n <div>\n I recommend asking questions on{\" \"}\n <ExternalLink\n href={`https://stackoverflow.com/search?q=${packageName}`}\n >\n Stack Overflow\n </ExternalLink>{\" \"}\n or{\" \"}\n <ExternalLink href=\"https://reddit.com/r/reactjs\">Reddit</ExternalLink>{\" \"}\n to start with. Both sites have active communities who often respond\n quickly. If you don't find an answer there you can try opening a GitHub\n issue- but please take a moment first to see if your question has{\" \"}\n <ExternalLink\n href={`https://github.com/bvaughn/${packageName}/issues?q=is%3Aissue%20state%3Aclosed`}\n >\n has already been answered\n </ExternalLink>{\" \"}\n before opening a new one.\n </div>\n </Box>\n );\n}\n"],"names":["SupportRoute","packageName","useLibraryContext","jsxs","Box","jsx","Header","ExternalLink"],"mappings":";;AAKA,SAAwBA,IAAe;AACrC,QAAM,EAAE,aAAAC,EAAA,IAAgBC,EAAA;AAExB,SACE,gBAAAC,EAACC,GAAA,EAAI,WAAU,UAAS,KAAK,GAC3B,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAA,EAAO,OAAM,UAAA,CAAU;AAAA,sBACvB,OAAA,EACC,UAAA;AAAA,MAAA,gBAAAD,EAACE,GAAA,EAAa,MAAM,8BAA8BN,CAAW,IAAI,UAAA,UAEjE;AAAA,MAAgB;AAAA,MAAI;AAAA,IAAA,GAItB;AAAA,sBACC,OAAA,EAAI,UAAA;AAAA,MAAA;AAAA,MAC6B;AAAA,MAChC,gBAAAI;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,MAAM,sCAAsCN,CAAW;AAAA,UACxD,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,MAEe;AAAA,MAAI;AAAA,MACjB;AAAA,MACH,gBAAAI,EAACE,GAAA,EAAa,MAAK,gCAA+B,UAAA,UAAM;AAAA,MAAgB;AAAA,MAAI;AAAA,MAGV;AAAA,MAClE,gBAAAF;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,MAAM,8BAA8BN,CAAW;AAAA,UAChD,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,MAEe;AAAA,MAAI;AAAA,IAAA,EAAA,CAEtB;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-
|
|
2
|
-
//# sourceMappingURL=SupportRoute-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-D_pov2Kn.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-CaVQtANn.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupportRoute-
|
|
1
|
+
{"version":3,"file":"SupportRoute-CaVQtANn.cjs","sources":["../lib/components/app/routes/SupportRoute.tsx"],"sourcesContent":["import { useLibraryContext } from \"../../../hooks/useLibraryContext\";\nimport { Box } from \"../../Box\";\nimport { ExternalLink } from \"../../ExternalLink\";\nimport { Header } from \"../../Header\";\n\nexport default function SupportRoute() {\n const { packageName } = useLibraryContext();\n\n return (\n <Box direction=\"column\" gap={4}>\n <Header title=\"Support\" />\n <div>\n <ExternalLink href={`https://github.com/bvaughn/${packageName}`}>\n GitHub\n </ExternalLink>{\" \"}\n is the easiest place to look for help, but it's probably not the\n fastest. This project is maintained by a single developer so there is\n limited bandwidth for answering questions.\n </div>\n <div>\n I recommend asking questions on{\" \"}\n <ExternalLink\n href={`https://stackoverflow.com/search?q=${packageName}`}\n >\n Stack Overflow\n </ExternalLink>{\" \"}\n or{\" \"}\n <ExternalLink href=\"https://reddit.com/r/reactjs\">Reddit</ExternalLink>{\" \"}\n to start with. Both sites have active communities who often respond\n quickly. If you don't find an answer there you can try opening a GitHub\n issue- but please take a moment first to see if your question has{\" \"}\n <ExternalLink\n href={`https://github.com/bvaughn/${packageName}/issues?q=is%3Aissue%20state%3Aclosed`}\n >\n has already been answered\n </ExternalLink>{\" \"}\n before opening a new one.\n </div>\n </Box>\n );\n}\n"],"names":["SupportRoute","packageName","useLibraryContext","jsxs","Box","jsx","Header","ExternalLink"],"mappings":"uJAKA,SAAwBA,GAAe,CACrC,KAAM,CAAE,YAAAC,CAAA,EAAgBC,oBAAA,EAExB,OACEC,EAAAA,KAACC,EAAAA,IAAA,CAAI,UAAU,SAAS,IAAK,EAC3B,SAAA,CAAAC,EAAAA,IAACC,EAAAA,OAAA,CAAO,MAAM,SAAA,CAAU,SACvB,MAAA,CACC,SAAA,CAAAD,MAACE,EAAAA,aAAA,CAAa,KAAM,8BAA8BN,CAAW,GAAI,SAAA,SAEjE,EAAgB,IAAI,mLAAA,EAItB,SACC,MAAA,CAAI,SAAA,CAAA,kCAC6B,IAChCI,EAAAA,IAACE,EAAAA,aAAA,CACC,KAAM,sCAAsCN,CAAW,GACxD,SAAA,gBAAA,CAAA,EAEe,IAAI,KACjB,IACHI,EAAAA,IAACE,EAAAA,aAAA,CAAa,KAAK,+BAA+B,SAAA,SAAM,EAAgB,IAAI,gNAGV,IAClEF,EAAAA,IAACE,EAAAA,aAAA,CACC,KAAM,8BAA8BN,CAAW,wCAChD,SAAA,2BAAA,CAAA,EAEe,IAAI,2BAAA,CAAA,CAEtB,CAAA,EACF,CAEJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as s, jsx as a, Fragment as n } from "react/jsx-runtime";
|
|
2
|
-
import { u as i, E as l, S as c, B as C, H as m } from "./index-
|
|
2
|
+
import { u as i, E as l, S as c, B as C, H as m } from "./index-DbkaDE2f.js";
|
|
3
3
|
import * as o from "react";
|
|
4
4
|
function L(t, e = "Assertion error") {
|
|
5
5
|
if (!t)
|
|
@@ -51,4 +51,4 @@ function f() {
|
|
|
51
51
|
export {
|
|
52
52
|
f as default
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=VersionsRoute-
|
|
54
|
+
//# sourceMappingURL=VersionsRoute-CRPHJWuY.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VersionsRoute-
|
|
1
|
+
{"version":3,"file":"VersionsRoute-CRPHJWuY.js","sources":["../scripts/utils/assert.ts","../public/svgs/globe.svg?react","../lib/components/app/components/VersionLink.tsx","../lib/components/app/routes/VersionsRoute.tsx"],"sourcesContent":["export function assert(\n expectedCondition: unknown,\n message: string = \"Assertion error\"\n): asserts expectedCondition {\n if (!expectedCondition) {\n console.error(message);\n\n throw Error(message);\n }\n}\n","import * as React from \"react\";\nconst SvgGlobe = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 640 640\", fill: \"currentColor\", ...props }, /* @__PURE__ */ React.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\" }));\nexport default SvgGlobe;\n","import GlobeIcon from \"../../../../public/svgs/globe.svg?react\";\nimport TagsIcon from \"../../../../public/svgs/tags.svg?react\";\nimport { useLibraryContext } from \"../../../hooks/useLibraryContext\";\nimport { ExternalLink } from \"../../ExternalLink\";\n\nexport function VersionLink({\n url,\n version\n}: {\n url: string;\n version: string;\n}) {\n const { packageName } = useLibraryContext();\n\n return (\n <li className=\"list-disc\">\n {version.split(\".\").slice(0, 1).join(\".\")}\n <span className=\"text-slate-400\">.x</span>\n {url && (\n <ExternalLink\n aria-label={`Documentation for version ${version}`}\n className=\"ml-4\"\n href={url}\n >\n <GlobeIcon className=\"inline w-4 h-4 text-teal-200\" /> documentation\n </ExternalLink>\n )}\n <ExternalLink\n aria-label={`GitHub tag for version ${version}`}\n className=\"ml-4\"\n href={`https://github.com/bvaughn/${packageName}/releases/tag/${version}`}\n >\n <TagsIcon className=\"inline w-4 h-4 text-teal-200\" /> source code\n </ExternalLink>\n </li>\n );\n}\n","import { Fragment } from \"react/jsx-runtime\";\nimport { assert } from \"../../../../scripts/utils/assert\";\nimport { useLibraryContext } from \"../../../hooks/useLibraryContext\";\nimport { Box } from \"../../Box\";\nimport { Header } from \"../../Header\";\nimport { VersionLink } from \"../components/VersionLink\";\n\n// Major versions only\n\nexport default function VersionsRoute() {\n const { versions } = useLibraryContext();\n assert(versions !== undefined);\n\n return (\n <Box direction=\"column\" gap={2}>\n <Header title=\"Previous releases\" />\n <div>Click below to view documentation for past releases.</div>\n <ul className=\"pl-8\">\n {Object.entries(versions)\n .sort((a, b) => b[0].localeCompare(a[0]))\n .map(([version, url]) => (\n <Fragment key={version}>\n <VersionLink key={version} url={url} version={version} />\n </Fragment>\n ))}\n </ul>\n </Box>\n );\n}\n"],"names":["assert","expectedCondition","message","SvgGlobe","props","React","VersionLink","url","version","packageName","useLibraryContext","jsxs","jsx","ExternalLink","GlobeIcon","TagsIcon","VersionsRoute","versions","Box","Header","a","b","Fragment"],"mappings":";;;AAAO,SAASA,EACdC,GACAC,IAAkB,mBACS;AAC3B,MAAI,CAACD;AACH,kBAAQ,MAAMC,CAAO,GAEf,MAAMA,CAAO;AAEvB;ACRA,MAAMC,IAAW,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,SAAS,eAAe,MAAM,gBAAgB,GAAGD,EAAK,GAAoB,gBAAAC,EAAM,cAAc,QAAQ,EAAE,GAAG,ytCAAwtC,CAAE,CAAC;ACI76C,SAASC,EAAY;AAAA,EAC1B,KAAAC;AAAA,EACA,SAAAC;AACF,GAGG;AACD,QAAM,EAAE,aAAAC,EAAA,IAAgBC,EAAA;AAExB,SACE,gBAAAC,EAAC,MAAA,EAAG,WAAU,aACX,UAAA;AAAA,IAAAH,EAAQ,MAAM,GAAG,EAAE,MAAM,GAAG,CAAC,EAAE,KAAK,GAAG;AAAA,IACxC,gBAAAI,EAAC,QAAA,EAAK,WAAU,kBAAiB,UAAA,MAAE;AAAA,IAClCL,KACC,gBAAAI;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,cAAY,6BAA6BL,CAAO;AAAA,QAChD,WAAU;AAAA,QACV,MAAMD;AAAA,QAEN,UAAA;AAAA,UAAA,gBAAAK,EAACE,GAAA,EAAU,WAAU,+BAAA,CAA+B;AAAA,UAAE;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,IAG1D,gBAAAH;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,cAAY,0BAA0BL,CAAO;AAAA,QAC7C,WAAU;AAAA,QACV,MAAM,8BAA8BC,CAAW,iBAAiBD,CAAO;AAAA,QAEvE,UAAA;AAAA,UAAA,gBAAAI,EAACG,GAAA,EAAS,WAAU,+BAAA,CAA+B;AAAA,UAAE;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACvD,GACF;AAEJ;AC3BA,SAAwBC,IAAgB;AACtC,QAAM,EAAE,UAAAC,EAAA,IAAaP,EAAA;AACrB,SAAAV,EAAOiB,MAAa,MAAS,GAG3B,gBAAAN,EAACO,GAAA,EAAI,WAAU,UAAS,KAAK,GAC3B,UAAA;AAAA,IAAA,gBAAAN,EAACO,GAAA,EAAO,OAAM,oBAAA,CAAoB;AAAA,IAClC,gBAAAP,EAAC,SAAI,UAAA,uDAAA,CAAoD;AAAA,sBACxD,MAAA,EAAG,WAAU,QACX,UAAA,OAAO,QAAQK,CAAQ,EACrB,KAAK,CAACG,GAAGC,MAAMA,EAAE,CAAC,EAAE,cAAcD,EAAE,CAAC,CAAC,CAAC,EACvC,IAAI,CAAC,CAACZ,GAASD,CAAG,MACjB,gBAAAK,EAACU,GAAA,EACC,UAAA,gBAAAV,EAACN,KAA0B,KAAAC,GAAU,SAAAC,EAAA,GAAnBA,CAAqC,EAAA,GAD1CA,CAEf,CACD,EAAA,CACL;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),n=require("./index-
|
|
2
|
-
//# sourceMappingURL=VersionsRoute-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),n=require("./index-D_pov2Kn.cjs"),l=require("react");function i(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const o=i(l);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 C({url:t,version:e}){const{packageName:s}=n.useLibraryContext();return r.jsxs("li",{className:"list-disc",children:[e.split(".").slice(0,1).join("."),r.jsx("span",{className:"text-slate-400",children:".x"}),t&&r.jsxs(n.ExternalLink,{"aria-label":`Documentation for version ${e}`,className:"ml-4",href:t,children:[r.jsx(u,{className:"inline w-4 h-4 text-teal-200"})," documentation"]}),r.jsxs(n.ExternalLink,{"aria-label":`GitHub tag for version ${e}`,className:"ml-4",href:`https://github.com/bvaughn/${s}/releases/tag/${e}`,children:[r.jsx(n.SvgTags,{className:"inline w-4 h-4 text-teal-200"})," source code"]})]})}function d(){const{versions:t}=n.useLibraryContext();return c(t!==void 0),r.jsxs(n.Box,{direction:"column",gap:2,children:[r.jsx(n.Header,{title:"Previous releases"}),r.jsx("div",{children:"Click below to view documentation for past releases."}),r.jsx("ul",{className:"pl-8",children:Object.entries(t).sort((e,s)=>s[0].localeCompare(e[0])).map(([e,s])=>r.jsx(r.Fragment,{children:r.jsx(C,{url:s,version:e},e)},e))})]})}exports.default=d;
|
|
2
|
+
//# sourceMappingURL=VersionsRoute-s9kvgKZE.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VersionsRoute-
|
|
1
|
+
{"version":3,"file":"VersionsRoute-s9kvgKZE.cjs","sources":["../scripts/utils/assert.ts","../public/svgs/globe.svg?react","../lib/components/app/components/VersionLink.tsx","../lib/components/app/routes/VersionsRoute.tsx"],"sourcesContent":["export function assert(\n expectedCondition: unknown,\n message: string = \"Assertion error\"\n): asserts expectedCondition {\n if (!expectedCondition) {\n console.error(message);\n\n throw Error(message);\n }\n}\n","import * as React from \"react\";\nconst SvgGlobe = (props) => /* @__PURE__ */ React.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 640 640\", fill: \"currentColor\", ...props }, /* @__PURE__ */ React.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\" }));\nexport default SvgGlobe;\n","import GlobeIcon from \"../../../../public/svgs/globe.svg?react\";\nimport TagsIcon from \"../../../../public/svgs/tags.svg?react\";\nimport { useLibraryContext } from \"../../../hooks/useLibraryContext\";\nimport { ExternalLink } from \"../../ExternalLink\";\n\nexport function VersionLink({\n url,\n version\n}: {\n url: string;\n version: string;\n}) {\n const { packageName } = useLibraryContext();\n\n return (\n <li className=\"list-disc\">\n {version.split(\".\").slice(0, 1).join(\".\")}\n <span className=\"text-slate-400\">.x</span>\n {url && (\n <ExternalLink\n aria-label={`Documentation for version ${version}`}\n className=\"ml-4\"\n href={url}\n >\n <GlobeIcon className=\"inline w-4 h-4 text-teal-200\" /> documentation\n </ExternalLink>\n )}\n <ExternalLink\n aria-label={`GitHub tag for version ${version}`}\n className=\"ml-4\"\n href={`https://github.com/bvaughn/${packageName}/releases/tag/${version}`}\n >\n <TagsIcon className=\"inline w-4 h-4 text-teal-200\" /> source code\n </ExternalLink>\n </li>\n );\n}\n","import { Fragment } from \"react/jsx-runtime\";\nimport { assert } from \"../../../../scripts/utils/assert\";\nimport { useLibraryContext } from \"../../../hooks/useLibraryContext\";\nimport { Box } from \"../../Box\";\nimport { Header } from \"../../Header\";\nimport { VersionLink } from \"../components/VersionLink\";\n\n// Major versions only\n\nexport default function VersionsRoute() {\n const { versions } = useLibraryContext();\n assert(versions !== undefined);\n\n return (\n <Box direction=\"column\" gap={2}>\n <Header title=\"Previous releases\" />\n <div>Click below to view documentation for past releases.</div>\n <ul className=\"pl-8\">\n {Object.entries(versions)\n .sort((a, b) => b[0].localeCompare(a[0]))\n .map(([version, url]) => (\n <Fragment key={version}>\n <VersionLink key={version} url={url} version={version} />\n </Fragment>\n ))}\n </ul>\n </Box>\n );\n}\n"],"names":["assert","expectedCondition","message","SvgGlobe","props","React","VersionLink","url","version","packageName","useLibraryContext","jsxs","jsx","ExternalLink","GlobeIcon","TagsIcon","VersionsRoute","versions","Box","Header","a","b","Fragment"],"mappings":"ocAAO,SAASA,EACdC,EACAC,EAAkB,kBACS,CAC3B,GAAI,CAACD,EACH,cAAQ,MAAMC,CAAO,EAEf,MAAMA,CAAO,CAEvB,CCRA,MAAMC,EAAYC,GAA0BC,EAAM,cAAc,MAAO,CAAE,MAAO,6BAA8B,QAAS,cAAe,KAAM,eAAgB,GAAGD,CAAK,EAAoBC,EAAM,cAAc,OAAQ,CAAE,EAAG,wtCAAwtC,CAAE,CAAC,ECI76C,SAASC,EAAY,CAC1B,IAAAC,EACA,QAAAC,CACF,EAGG,CACD,KAAM,CAAE,YAAAC,CAAA,EAAgBC,oBAAA,EAExB,OACEC,EAAAA,KAAC,KAAA,CAAG,UAAU,YACX,SAAA,CAAAH,EAAQ,MAAM,GAAG,EAAE,MAAM,EAAG,CAAC,EAAE,KAAK,GAAG,EACxCI,EAAAA,IAAC,OAAA,CAAK,UAAU,iBAAiB,SAAA,KAAE,EAClCL,GACCI,EAAAA,KAACE,EAAAA,aAAA,CACC,aAAY,6BAA6BL,CAAO,GAChD,UAAU,OACV,KAAMD,EAEN,SAAA,CAAAK,EAAAA,IAACE,EAAA,CAAU,UAAU,8BAAA,CAA+B,EAAE,gBAAA,CAAA,CAAA,EAG1DH,EAAAA,KAACE,EAAAA,aAAA,CACC,aAAY,0BAA0BL,CAAO,GAC7C,UAAU,OACV,KAAM,8BAA8BC,CAAW,iBAAiBD,CAAO,GAEvE,SAAA,CAAAI,EAAAA,IAACG,EAAAA,QAAA,CAAS,UAAU,8BAAA,CAA+B,EAAE,cAAA,CAAA,CAAA,CACvD,EACF,CAEJ,CC3BA,SAAwBC,GAAgB,CACtC,KAAM,CAAE,SAAAC,CAAA,EAAaP,oBAAA,EACrB,OAAAV,EAAOiB,IAAa,MAAS,EAG3BN,EAAAA,KAACO,EAAAA,IAAA,CAAI,UAAU,SAAS,IAAK,EAC3B,SAAA,CAAAN,EAAAA,IAACO,EAAAA,OAAA,CAAO,MAAM,mBAAA,CAAoB,EAClCP,EAAAA,IAAC,OAAI,SAAA,sDAAA,CAAoD,QACxD,KAAA,CAAG,UAAU,OACX,SAAA,OAAO,QAAQK,CAAQ,EACrB,KAAK,CAACG,EAAGC,IAAMA,EAAE,CAAC,EAAE,cAAcD,EAAE,CAAC,CAAC,CAAC,EACvC,IAAI,CAAC,CAACZ,EAASD,CAAG,IACjBK,EAAAA,IAACU,EAAAA,SAAA,CACC,SAAAV,EAAAA,IAACN,GAA0B,IAAAC,EAAU,QAAAC,CAAA,EAAnBA,CAAqC,CAAA,EAD1CA,CAEf,CACD,CAAA,CACL,CAAA,EACF,CAEJ"}
|