zudoku 0.25.3 → 0.26.0
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/dev/handler.js +2 -2
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/config/validators/common.d.ts +28 -28
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +12 -12
- package/dist/lib/components/navigation/SidebarCategory.js +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +3 -0
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +2 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +2 -2
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +9 -6
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.js +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.d.ts +2 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js +7 -4
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -1
- package/dist/lib/ui/Badge.d.ts +1 -1
- package/dist/lib/ui/Badge.js +1 -0
- package/dist/lib/ui/Badge.js.map +1 -1
- package/dist/vite/config.test.js +5 -1
- package/dist/vite/config.test.js.map +1 -1
- package/lib/{AnchorLink-DFZZbmvr.js → AnchorLink-_Vu02ceN.js} +3 -3
- package/lib/{AnchorLink-DFZZbmvr.js.map → AnchorLink-_Vu02ceN.js.map} +1 -1
- package/lib/{AuthenticationPlugin-D7G3me8L.js → AuthenticationPlugin-DNXBcsVN.js} +4 -4
- package/lib/{AuthenticationPlugin-D7G3me8L.js.map → AuthenticationPlugin-DNXBcsVN.js.map} +1 -1
- package/lib/{Button-DeAoTouo.js → Button-oroWHXAy.js} +3 -3
- package/lib/{Button-DeAoTouo.js.map → Button-oroWHXAy.js.map} +1 -1
- package/lib/{CategoryHeading-CBconmtI.js → CategoryHeading-MYL1u_6K.js} +3 -3
- package/lib/{CategoryHeading-CBconmtI.js.map → CategoryHeading-MYL1u_6K.js.map} +1 -1
- package/lib/{Command-9x_kZHr4.js → Command-D5DE0DD7.js} +136 -136
- package/lib/Command-D5DE0DD7.js.map +1 -0
- package/lib/{Markdown-CZDLNOFc.js → Markdown-BrfrjEk_.js} +1041 -1041
- package/lib/{Markdown-CZDLNOFc.js.map → Markdown-BrfrjEk_.js.map} +1 -1
- package/lib/{MdxPage-DKMbBROv.js → MdxPage-LNZLj_A5.js} +24 -24
- package/lib/{MdxPage-DKMbBROv.js.map → MdxPage-LNZLj_A5.js.map} +1 -1
- package/lib/{OperationList-B8bHMKme.js → OperationList-PCwzTp1r.js} +1489 -1473
- package/lib/OperationList-PCwzTp1r.js.map +1 -0
- package/lib/{Route-DYwKZ_c_.js → Route-Pzk6qwIk.js} +5 -5
- package/lib/{Route-DYwKZ_c_.js.map → Route-Pzk6qwIk.js.map} +1 -1
- package/lib/{Select-B_IxRUUC.js → Select-DkOpAG0c.js} +36 -36
- package/lib/{Select-B_IxRUUC.js.map → Select-DkOpAG0c.js.map} +1 -1
- package/lib/{SlotletProvider-pfc9oejW.js → SlotletProvider-DPbx9KdU.js} +53 -53
- package/lib/{SlotletProvider-pfc9oejW.js.map → SlotletProvider-DPbx9KdU.js.map} +1 -1
- package/lib/{Spinner-DuxJLLNE.js → Spinner-C5gHXrVz.js} +2 -2
- package/lib/{Spinner-DuxJLLNE.js.map → Spinner-C5gHXrVz.js.map} +1 -1
- package/lib/{SyntaxHighlight-Bz-lOJtH.js → SyntaxHighlight-CJCSPG1F.js} +297 -301
- package/lib/{SyntaxHighlight-Bz-lOJtH.js.map → SyntaxHighlight-CJCSPG1F.js.map} +1 -1
- package/lib/{ZudokuContext-hmLMUdf2.js → ZudokuContext-D3ayHjP-.js} +357 -356
- package/lib/ZudokuContext-D3ayHjP-.js.map +1 -0
- package/lib/{chunk-D52XG6IA-Dl7HLe6j.js → chunk-SYFQ2XB5-KWlHsT7t.js} +407 -410
- package/lib/chunk-SYFQ2XB5-KWlHsT7t.js.map +1 -0
- package/lib/context-rwLGh-6_.js +22 -0
- package/lib/{context-h_UkBLvr.js.map → context-rwLGh-6_.js.map} +1 -1
- package/lib/{createServer-BznDkeSA.js → createServer-BcaswoFO.js} +1274 -1286
- package/lib/createServer-BcaswoFO.js.map +1 -0
- package/lib/{hook-CHq7pFyz.js → hook-DUyACbIK.js} +17 -17
- package/lib/{hook-CHq7pFyz.js.map → hook-DUyACbIK.js.map} +1 -1
- package/lib/{index-sD8L1_Dl.js → index-CaILD1AV.js} +132 -132
- package/lib/{index-sD8L1_Dl.js.map → index-CaILD1AV.js.map} +1 -1
- package/lib/index-Djenk2Hj.js +36 -0
- package/lib/{index-CPNSgwSb.js.map → index-Djenk2Hj.js.map} +1 -1
- package/lib/{index-CBXSgjaE.js → index-Dl3Yl0yb.js} +65 -69
- package/lib/index-Dl3Yl0yb.js.map +1 -0
- package/lib/{index.esm-BSV1C092.js → index.esm-9-TF9KQB.js} +52 -52
- package/lib/{index.esm-BSV1C092.js.map → index.esm-9-TF9KQB.js.map} +1 -1
- package/lib/index.esm-CrSoEshU.js +1207 -0
- package/lib/index.esm-CrSoEshU.js.map +1 -0
- package/lib/{jsx-runtime-Dx-03ztt.js → jsx-runtime-Bdg6XQ1m.js} +135 -135
- package/lib/{jsx-runtime-Dx-03ztt.js.map → jsx-runtime-Bdg6XQ1m.js.map} +1 -1
- package/lib/post-processors/removeExtensions.js +3 -3
- package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
- package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
- package/lib/{prism-csharp.min-DUwvItt4.js → prism-csharp.min-bQAo2pmx.js} +33 -33
- package/lib/{prism-csharp.min-DUwvItt4.js.map → prism-csharp.min-bQAo2pmx.js.map} +1 -1
- package/lib/{prism-java.min-BtgBR4yd.js → prism-java.min-BpvsOuIa.js} +12 -12
- package/lib/{prism-java.min-BtgBR4yd.js.map → prism-java.min-BpvsOuIa.js.map} +1 -1
- package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
- package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
- package/lib/{prism-ruby.min-DeDXCp1r.js → prism-ruby.min-Dx9KO9ds.js} +16 -16
- package/lib/{prism-ruby.min-DeDXCp1r.js.map → prism-ruby.min-Dx9KO9ds.js.map} +1 -1
- package/lib/prism-typescript.min-CD7H2IYQ.js.map +1 -1
- package/lib/state-mM7uaXTW.js +202 -0
- package/lib/state-mM7uaXTW.js.map +1 -0
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +3 -3
- package/lib/ui/Alert.js +2 -2
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +3 -2
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +1 -1
- package/lib/ui/Button.js +2 -2
- package/lib/ui/Callout.js +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +3 -3
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +2 -2
- package/lib/ui/Command.js +2 -2
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Drawer.js +520 -519
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/Form.js +2 -2
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Label.js +2 -2
- package/lib/ui/Pagination.js +7 -7
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Select.js +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +2 -2
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Tooltip.js +1 -1
- package/lib/{useExposedProps-DE9lR6MF.js → useExposedProps-BBHR7aLM.js} +2 -2
- package/lib/{useExposedProps-DE9lR6MF.js.map → useExposedProps-BBHR7aLM.js.map} +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-clerk.js +18 -18
- package/lib/zudoku.auth-openid.js +5 -5
- package/lib/zudoku.components.js +492 -477
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +5 -5
- package/lib/zudoku.plugin-api-keys.js +7 -7
- package/lib/zudoku.plugin-custom-pages.js +3 -3
- package/lib/zudoku.plugin-markdown.js +2 -2
- package/lib/zudoku.plugin-openapi.js +5 -5
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +9 -9
- package/package.json +48 -48
- package/src/lib/components/navigation/SidebarCategory.tsx +2 -2
- package/src/lib/plugins/openapi/OperationList.tsx +4 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -5
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +8 -2
- package/src/lib/plugins/openapi/Sidecar.tsx +14 -7
- package/src/lib/plugins/openapi/SidecarBox.tsx +1 -1
- package/src/lib/plugins/openapi/SidecarExamples.tsx +14 -6
- package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +1 -1
- package/src/lib/ui/Badge.tsx +1 -0
- package/lib/Command-9x_kZHr4.js.map +0 -1
- package/lib/OperationList-B8bHMKme.js.map +0 -1
- package/lib/ZudokuContext-hmLMUdf2.js.map +0 -1
- package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +0 -1
- package/lib/context-h_UkBLvr.js +0 -22
- package/lib/createServer-BznDkeSA.js.map +0 -1
- package/lib/index-CBXSgjaE.js.map +0 -1
- package/lib/index-CPNSgwSb.js +0 -36
- package/lib/index.esm-BnnBRKJX.js +0 -1214
- package/lib/index.esm-BnnBRKJX.js.map +0 -1
- package/lib/state-CFQsUZUP.js +0 -202
- package/lib/state-CFQsUZUP.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Djenk2Hj.js","sources":["../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs"],"sourcesContent":["/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n"],"names":["falsyToString","value","cx","clsx","cva","base","config","props","_config_compoundVariants","variants","defaultVariants","getVariantClassNames","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","acc","param","key","getCompoundVariantClassNames","cvClass","cvClassName","compoundVariantOptions"],"mappings":";AAeA,MAAMA,IAAgB,CAACC,MAAQ,OAAOA,KAAU,YAAY,GAAGA,CAAK,KAAKA,MAAU,IAAI,MAAMA,GAChFC,IAAKC,GACLC,IAAM,CAACC,GAAMC,MAAS,CAACC,MAAQ;AACpC,MAAIC;AACJ,OAAKF,KAAW,OAA4B,SAASA,EAAO,aAAa,KAAM,QAAOJ,EAAGG,GAAME,KAAU,OAA2B,SAASA,EAAM,OAAOA,KAAU,OAA2B,SAASA,EAAM,SAAS;AACvN,QAAM,EAAE,UAAAE,GAAU,iBAAAC,EAAe,IAAKJ,GAChCK,IAAuB,OAAO,KAAKF,CAAQ,EAAE,IAAI,CAACG,MAAU;AAC9D,UAAMC,IAAcN,KAAU,OAA2B,SAASA,EAAMK,CAAO,GACzEE,IAAqBJ,KAAoB,OAAqC,SAASA,EAAgBE,CAAO;AACpH,QAAIC,MAAgB,KAAM,QAAO;AACjC,UAAME,IAAaf,EAAca,CAAW,KAAKb,EAAcc,CAAkB;AACjF,WAAOL,EAASG,CAAO,EAAEG,CAAU;AAAA,EAC/C,CAAS,GACKC,IAAwBT,KAAS,OAAO,QAAQA,CAAK,EAAE,OAAO,CAACU,GAAKC,MAAQ;AAC9E,QAAI,CAACC,GAAKlB,CAAK,IAAIiB;AACnB,WAAIjB,MAAU,WAGdgB,EAAIE,CAAG,IAAIlB,IACJgB;AAAA,EACV,GAAE,EAAE,GACCG,IAA+Bd,KAAW,SAAsCE,IAA2BF,EAAO,sBAAsB,QAAQE,MAA6B,SAAvG,SAAyHA,EAAyB,OAAO,CAACS,GAAKC,MAAQ;AAC/O,QAAI,EAAE,OAAOG,GAAS,WAAWC,GAAa,GAAGC,EAAsB,IAAKL;AAC5E,WAAO,OAAO,QAAQK,CAAsB,EAAE,MAAM,CAACL,MAAQ;AACzD,UAAI,CAACC,GAAKlB,CAAK,IAAIiB;AACnB,aAAO,MAAM,QAAQjB,CAAK,IAAIA,EAAM,SAAS;AAAA,QACzC,GAAGS;AAAA,QACH,GAAGM;AAAA,MACvB,EAAkBG,CAAG,CAAC,IAAK;AAAA,QACP,GAAGT;AAAA,QACH,GAAGM;AAAA,MACvB,EAAmBG,CAAG,MAAMlB;AAAA,IAC5B,CAAa,IAAI;AAAA,MACD,GAAGgB;AAAA,MACHI;AAAA,MACAC;AAAA,IAChB,IAAgBL;AAAA,EACP,GAAE,EAAE;AACL,SAAOf,EAAGG,GAAMM,GAAsBS,GAA8Bb,KAAU,OAA2B,SAASA,EAAM,OAAOA,KAAU,OAA2B,SAASA,EAAM,SAAS;AACpM;","x_google_ignoreList":[0]}
|
|
@@ -662,9 +662,9 @@ function Ue(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
|
|
|
662
662
|
else {
|
|
663
663
|
if (N === " " && h && h !== " " && h !== `
|
|
664
664
|
` && h !== " ") {
|
|
665
|
-
const
|
|
666
|
-
|
|
667
|
-
` &&
|
|
665
|
+
const w = s[u + 1];
|
|
666
|
+
w && w !== " " && w !== `
|
|
667
|
+
` && w !== " " && (d = u);
|
|
668
668
|
}
|
|
669
669
|
if (u >= f)
|
|
670
670
|
if (d)
|
|
@@ -672,10 +672,10 @@ function Ue(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
|
|
|
672
672
|
else if (t === Be) {
|
|
673
673
|
for (; h === " " || h === " "; )
|
|
674
674
|
h = N, N = s[u += 1], y = !0;
|
|
675
|
-
const
|
|
676
|
-
if (p[
|
|
675
|
+
const w = u > b + 1 ? u - 2 : m - 1;
|
|
676
|
+
if (p[w])
|
|
677
677
|
return s;
|
|
678
|
-
c.push(
|
|
678
|
+
c.push(w), p[w] = !0, f = w + a, d = void 0;
|
|
679
679
|
} else
|
|
680
680
|
y = !0;
|
|
681
681
|
}
|
|
@@ -684,14 +684,14 @@ function Ue(s, e, t = "flow", { indentAtStart: n, lineWidth: i = 80, minContentW
|
|
|
684
684
|
if (y && l && l(), c.length === 0)
|
|
685
685
|
return s;
|
|
686
686
|
o && o();
|
|
687
|
-
let
|
|
687
|
+
let S = s.slice(0, c[0]);
|
|
688
688
|
for (let N = 0; N < c.length; ++N) {
|
|
689
|
-
const
|
|
690
|
-
|
|
691
|
-
${e}${s.slice(0, k)}` : (t === Be && p[
|
|
692
|
-
${e}${s.slice(
|
|
689
|
+
const w = c[N], k = c[N + 1] || s.length;
|
|
690
|
+
w === 0 ? S = `
|
|
691
|
+
${e}${s.slice(0, k)}` : (t === Be && p[w] && (S += `${s[w]}\\`), S += `
|
|
692
|
+
${e}${s.slice(w + 1, k)}`);
|
|
693
693
|
}
|
|
694
|
-
return
|
|
694
|
+
return S;
|
|
695
695
|
}
|
|
696
696
|
function $t(s, e, t) {
|
|
697
697
|
let n = e, i = e + 1, r = s[i];
|
|
@@ -849,10 +849,10 @@ function Me({ comment: s, type: e, value: t }, n, i, r) {
|
|
|
849
849
|
else
|
|
850
850
|
break;
|
|
851
851
|
}
|
|
852
|
-
let
|
|
853
|
-
|
|
854
|
-
let
|
|
855
|
-
if (s && (
|
|
852
|
+
let S = t.substring(0, b < m ? b + 1 : m);
|
|
853
|
+
S && (t = t.substring(S.length), S = S.replace(/\n+/g, `$&${c}`));
|
|
854
|
+
let w = (u ? c ? "2" : "1" : "") + f;
|
|
855
|
+
if (s && (w += " " + l(s.replace(/ ?[\r\n]+/g, " ")), i && i()), !p) {
|
|
856
856
|
const k = t.replace(/\n+/g, `
|
|
857
857
|
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
|
|
858
858
|
let O = !1;
|
|
@@ -860,13 +860,13 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/
|
|
|
860
860
|
o !== "folded" && e !== A.BLOCK_FOLDED && (I.onOverflow = () => {
|
|
861
861
|
O = !0;
|
|
862
862
|
});
|
|
863
|
-
const g = Ue(`${
|
|
863
|
+
const g = Ue(`${S}${k}${h}`, c, at, I);
|
|
864
864
|
if (!O)
|
|
865
|
-
return `>${
|
|
865
|
+
return `>${w}
|
|
866
866
|
${c}${g}`;
|
|
867
867
|
}
|
|
868
|
-
return t = t.replace(/\n+/g, `$&${c}`), `|${
|
|
869
|
-
${c}${
|
|
868
|
+
return t = t.replace(/\n+/g, `$&${c}`), `|${w}
|
|
869
|
+
${c}${S}${t}${h}`;
|
|
870
870
|
}
|
|
871
871
|
function Fs(s, e, t, n) {
|
|
872
872
|
const { type: i, value: r } = s, { actualString: o, implicitKey: l, indent: a, indentStep: c, inFlow: p } = e;
|
|
@@ -1050,15 +1050,15 @@ function Vs({ key: s, value: e }, t, n, i) {
|
|
|
1050
1050
|
return m = `? ${m}`, d && !y ? m += H(m, t.indent, c(d)) : u && i && i(), m;
|
|
1051
1051
|
y && (d = null), h ? (d && (m += H(m, t.indent, c(d))), m = `? ${m}
|
|
1052
1052
|
${l}:`) : (m = `${m}:`, d && (m += H(m, t.indent, c(d))));
|
|
1053
|
-
let b,
|
|
1054
|
-
$(e) ? (b = !!e.spaceBefore,
|
|
1055
|
-
let
|
|
1056
|
-
const k = fe(e, t, () =>
|
|
1053
|
+
let b, S, N;
|
|
1054
|
+
$(e) ? (b = !!e.spaceBefore, S = e.commentBefore, N = e.comment) : (b = !1, S = null, N = null, e && typeof e == "object" && (e = o.createNode(e))), t.implicitKey = !1, !h && !d && E(e) && (t.indentAtStart = m.length + 1), u = !1, !p && a.length >= 2 && !t.inFlow && !h && pe(e) && !e.flow && !e.tag && !e.anchor && (t.indent = t.indent.substring(2));
|
|
1055
|
+
let w = !1;
|
|
1056
|
+
const k = fe(e, t, () => w = !0, () => u = !0);
|
|
1057
1057
|
let O = " ";
|
|
1058
|
-
if (d || b ||
|
|
1058
|
+
if (d || b || S) {
|
|
1059
1059
|
if (O = b ? `
|
|
1060
|
-
` : "",
|
|
1061
|
-
const I = c(
|
|
1060
|
+
` : "", S) {
|
|
1061
|
+
const I = c(S);
|
|
1062
1062
|
O += `
|
|
1063
1063
|
${U(I, t.indent)}`;
|
|
1064
1064
|
}
|
|
@@ -1081,10 +1081,10 @@ ${t.indent}`);
|
|
|
1081
1081
|
}
|
|
1082
1082
|
} else (k === "" || k[0] === `
|
|
1083
1083
|
`) && (O = "");
|
|
1084
|
-
return m += O + k, t.inFlow ?
|
|
1084
|
+
return m += O + k, t.inFlow ? w && n && n() : N && !w ? m += H(m, t.indent, c(N)) : u && i && i(), m;
|
|
1085
1085
|
}
|
|
1086
1086
|
function zt(s, e) {
|
|
1087
|
-
(s === "debug" || s === "warn") &&
|
|
1087
|
+
(s === "debug" || s === "warn") && console.warn(e);
|
|
1088
1088
|
}
|
|
1089
1089
|
const Te = "<<", V = {
|
|
1090
1090
|
identify: (s) => s === Te || typeof s == "symbol" && s.description === Te,
|
|
@@ -1196,8 +1196,8 @@ function Gs({ comment: s, items: e }, t, { blockItemPrefix: n, flowChars: i, ite
|
|
|
1196
1196
|
if ($(u))
|
|
1197
1197
|
!f && u.spaceBefore && d.push(""), je(t, d, u.commentBefore, f), u.comment && (m = u.comment);
|
|
1198
1198
|
else if (T(u)) {
|
|
1199
|
-
const
|
|
1200
|
-
|
|
1199
|
+
const S = $(u.key) ? u.key : null;
|
|
1200
|
+
S && (!f && S.spaceBefore && d.push(""), je(t, d, S.commentBefore, f));
|
|
1201
1201
|
}
|
|
1202
1202
|
f = !1;
|
|
1203
1203
|
let b = fe(u, p, () => m = null, () => f = !0);
|
|
@@ -1234,10 +1234,10 @@ function Qs({ items: s }, e, { flowChars: t, itemIndent: n }) {
|
|
|
1234
1234
|
if ($(u))
|
|
1235
1235
|
u.spaceBefore && f.push(""), je(e, f, u.commentBefore, !1), u.comment && (m = u.comment);
|
|
1236
1236
|
else if (T(u)) {
|
|
1237
|
-
const
|
|
1238
|
-
|
|
1237
|
+
const S = $(u.key) ? u.key : null;
|
|
1238
|
+
S && (S.spaceBefore && f.push(""), je(e, f, S.commentBefore, !1), S.comment && (c = !0));
|
|
1239
1239
|
const N = $(u.value) ? u.value : null;
|
|
1240
|
-
N ? (N.comment && (m = N.comment), N.commentBefore && (c = !0)) : u.value == null && (
|
|
1240
|
+
N ? (N.comment && (m = N.comment), N.commentBefore && (c = !0)) : u.value == null && (S != null && S.comment) && (m = S.comment);
|
|
1241
1241
|
}
|
|
1242
1242
|
m && (c = !0);
|
|
1243
1243
|
let b = fe(u, a, () => m = null);
|
|
@@ -1652,8 +1652,6 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
|
|
|
1652
1652
|
* document.querySelector('#photo').src = URL.createObjectURL(blob)
|
|
1653
1653
|
*/
|
|
1654
1654
|
resolve(s, e) {
|
|
1655
|
-
if (typeof Buffer == "function")
|
|
1656
|
-
return Buffer.from(s, "base64");
|
|
1657
1655
|
if (typeof atob == "function") {
|
|
1658
1656
|
const t = atob(s.replace(/[\n\r]/g, "")), n = new Uint8Array(t.length);
|
|
1659
1657
|
for (let i = 0; i < t.length; ++i)
|
|
@@ -1665,9 +1663,7 @@ const $e = ({ value: s }) => JSON.stringify(s), Hs = [
|
|
|
1665
1663
|
stringify({ comment: s, type: e, value: t }, n, i, r) {
|
|
1666
1664
|
const o = t;
|
|
1667
1665
|
let l;
|
|
1668
|
-
if (typeof
|
|
1669
|
-
l = o instanceof Buffer ? o.toString("base64") : Buffer.from(o.buffer).toString("base64");
|
|
1670
|
-
else if (typeof btoa == "function") {
|
|
1666
|
+
if (typeof btoa == "function") {
|
|
1671
1667
|
let a = "";
|
|
1672
1668
|
for (let c = 0; c < o.length; ++c)
|
|
1673
1669
|
a += String.fromCharCode(o[c]);
|
|
@@ -2195,7 +2191,7 @@ class ge {
|
|
|
2195
2191
|
if (typeof t == "function")
|
|
2196
2192
|
e = t.call({ "": e }, "", e), i = t;
|
|
2197
2193
|
else if (Array.isArray(t)) {
|
|
2198
|
-
const m = (
|
|
2194
|
+
const m = (S) => typeof S == "number" || S instanceof String || S instanceof Number, b = t.filter(m).map(String);
|
|
2199
2195
|
b.length > 0 && (t = t.concat(b)), i = t;
|
|
2200
2196
|
} else n === void 0 && t && (n = t, t = void 0);
|
|
2201
2197
|
const { aliasDuplicateObjects: r, anchorPrefix: o, flow: l, keepUndefined: a, onTagObj: c, tag: p } = n ?? {}, { onAnchor: f, setAnchors: d, sourceObjects: h } = Ks(
|
|
@@ -2394,7 +2390,7 @@ ${c}
|
|
|
2394
2390
|
}
|
|
2395
2391
|
};
|
|
2396
2392
|
function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIndent: o, startOnNewline: l }) {
|
|
2397
|
-
let a = !1, c = l, p = l, f = "", d = "", h = !1, y = !1, u = null, m = null, b = null,
|
|
2393
|
+
let a = !1, c = l, p = l, f = "", d = "", h = !1, y = !1, u = null, m = null, b = null, S = null, N = null, w = null, k = null;
|
|
2398
2394
|
for (const g of s)
|
|
2399
2395
|
switch (y && (g.type !== "space" && g.type !== "newline" && g.type !== "comma" && r(g.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), y = !1), u && (c && g.type !== "comment" && g.type !== "newline" && r(u, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), u = null), g.type) {
|
|
2400
2396
|
case "space":
|
|
@@ -2407,7 +2403,7 @@ function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
|
|
|
2407
2403
|
break;
|
|
2408
2404
|
}
|
|
2409
2405
|
case "newline":
|
|
2410
|
-
c ? f ? f += g.source : a = !0 : d += g.source, c = !0, h = !0, (m || b) && (
|
|
2406
|
+
c ? f ? f += g.source : (!w || t !== "seq-item-ind") && (a = !0) : d += g.source, c = !0, h = !0, (m || b) && (S = g), p = !0;
|
|
2411
2407
|
break;
|
|
2412
2408
|
case "anchor":
|
|
2413
2409
|
m && r(g, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), g.source.endsWith(":") && r(g.offset + g.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), m = g, k === null && (k = g.offset), c = !1, p = !1, y = !0;
|
|
@@ -2417,7 +2413,7 @@ function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
|
|
|
2417
2413
|
break;
|
|
2418
2414
|
}
|
|
2419
2415
|
case t:
|
|
2420
|
-
(m || b) && r(g, "BAD_PROP_ORDER", `Anchors and tags must be after the ${g.source} indicator`),
|
|
2416
|
+
(m || b) && r(g, "BAD_PROP_ORDER", `Anchors and tags must be after the ${g.source} indicator`), w && r(g, "UNEXPECTED_TOKEN", `Unexpected ${g.source} in ${e ?? "collection"}`), w = g, c = t === "seq-item-ind" || t === "explicit-key-ind", p = !1;
|
|
2421
2417
|
break;
|
|
2422
2418
|
case "comma":
|
|
2423
2419
|
if (e) {
|
|
@@ -2431,13 +2427,13 @@ function ue(s, { flow: e, indicator: t, next: n, offset: i, onError: r, parentIn
|
|
|
2431
2427
|
const O = s[s.length - 1], I = O ? O.offset + O.source.length : i;
|
|
2432
2428
|
return y && n && n.type !== "space" && n.type !== "newline" && n.type !== "comma" && (n.type !== "scalar" || n.source !== "") && r(n.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), u && (c && u.indent <= o || (n == null ? void 0 : n.type) === "block-map" || (n == null ? void 0 : n.type) === "block-seq") && r(u, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
|
|
2433
2429
|
comma: N,
|
|
2434
|
-
found:
|
|
2430
|
+
found: w,
|
|
2435
2431
|
spaceBefore: a,
|
|
2436
2432
|
comment: f,
|
|
2437
2433
|
hasNewline: h,
|
|
2438
2434
|
anchor: m,
|
|
2439
2435
|
tag: b,
|
|
2440
|
-
newlineAfterProp:
|
|
2436
|
+
newlineAfterProp: S,
|
|
2441
2437
|
end: I,
|
|
2442
2438
|
start: k ?? I
|
|
2443
2439
|
};
|
|
@@ -2514,9 +2510,9 @@ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2514
2510
|
(m.newlineAfterProp || Ne(h)) && i(h ?? d[d.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
2515
2511
|
} else ((p = m.found) == null ? void 0 : p.indent) !== n.indent && i(a, "BAD_INDENT", Mt);
|
|
2516
2512
|
t.atKey = !0;
|
|
2517
|
-
const
|
|
2518
|
-
t.schema.compat && ut(n.indent, h, i), t.atKey = !1, gs(t, l.items, N) && i(
|
|
2519
|
-
const
|
|
2513
|
+
const S = m.end, N = h ? s(t, h, m, i) : e(t, S, d, null, m, i);
|
|
2514
|
+
t.schema.compat && ut(n.indent, h, i), t.atKey = !1, gs(t, l.items, N) && i(S, "DUPLICATE_KEY", "Map keys must be unique");
|
|
2515
|
+
const w = ue(y ?? [], {
|
|
2520
2516
|
indicator: "map-value-ind",
|
|
2521
2517
|
next: u,
|
|
2522
2518
|
offset: N.range[2],
|
|
@@ -2524,15 +2520,15 @@ function cn({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2524
2520
|
parentIndent: n.indent,
|
|
2525
2521
|
startOnNewline: !h || h.type === "block-scalar"
|
|
2526
2522
|
});
|
|
2527
|
-
if (a =
|
|
2528
|
-
b && ((u == null ? void 0 : u.type) === "block-map" && !
|
|
2529
|
-
const k = u ? s(t, u,
|
|
2523
|
+
if (a = w.end, w.found) {
|
|
2524
|
+
b && ((u == null ? void 0 : u.type) === "block-map" && !w.hasNewline && i(a, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), t.options.strict && m.start < w.found.offset - 1024 && i(N.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
|
|
2525
|
+
const k = u ? s(t, u, w, i) : e(t, a, y, null, w, i);
|
|
2530
2526
|
t.schema.compat && ut(n.indent, u, i), a = k.range[2];
|
|
2531
2527
|
const O = new v(N, k);
|
|
2532
2528
|
t.options.keepSourceTokens && (O.srcToken = f), l.items.push(O);
|
|
2533
2529
|
} else {
|
|
2534
|
-
b && i(N.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"),
|
|
2535
|
-
` +
|
|
2530
|
+
b && i(N.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), w.comment && (N.comment ? N.comment += `
|
|
2531
|
+
` + w.comment : N.comment = w.comment);
|
|
2536
2532
|
const k = new v(N);
|
|
2537
2533
|
t.options.keepSourceTokens && (k.srcToken = f), l.items.push(k);
|
|
2538
2534
|
}
|
|
@@ -2599,17 +2595,17 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2599
2595
|
p && (t.atRoot = !1), t.atKey && (t.atKey = !1);
|
|
2600
2596
|
let f = n.offset + n.start.source.length;
|
|
2601
2597
|
for (let m = 0; m < n.items.length; ++m) {
|
|
2602
|
-
const b = n.items[m], { start:
|
|
2598
|
+
const b = n.items[m], { start: S, key: N, sep: w, value: k } = b, O = ue(S, {
|
|
2603
2599
|
flow: l,
|
|
2604
2600
|
indicator: "explicit-key-ind",
|
|
2605
|
-
next: N ?? (
|
|
2601
|
+
next: N ?? (w == null ? void 0 : w[0]),
|
|
2606
2602
|
offset: f,
|
|
2607
2603
|
onError: i,
|
|
2608
2604
|
parentIndent: n.indent,
|
|
2609
2605
|
startOnNewline: !1
|
|
2610
2606
|
});
|
|
2611
2607
|
if (!O.found) {
|
|
2612
|
-
if (!O.anchor && !O.tag && !
|
|
2608
|
+
if (!O.anchor && !O.tag && !w && !k) {
|
|
2613
2609
|
m === 0 && O.comma ? i(O.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`) : m < n.items.length - 1 && i(O.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${l}`), O.comment && (c.comment ? c.comment += `
|
|
2614
2610
|
` + O.comment : c.comment = O.comment), f = O.end;
|
|
2615
2611
|
continue;
|
|
@@ -2625,7 +2621,7 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2625
2621
|
O.comma && i(O.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${l}`);
|
|
2626
2622
|
else if (O.comma || i(O.start, "MISSING_CHAR", `Missing , between ${l} items`), O.comment) {
|
|
2627
2623
|
let I = "";
|
|
2628
|
-
e: for (const g of
|
|
2624
|
+
e: for (const g of S)
|
|
2629
2625
|
switch (g.type) {
|
|
2630
2626
|
case "comma":
|
|
2631
2627
|
case "space":
|
|
@@ -2642,14 +2638,14 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2642
2638
|
` + I : g.comment = I, O.comment = O.comment.substring(I.length + 1);
|
|
2643
2639
|
}
|
|
2644
2640
|
}
|
|
2645
|
-
if (!o && !
|
|
2646
|
-
const I = k ? s(t, k, O, i) : e(t, O.end,
|
|
2641
|
+
if (!o && !w && !O.found) {
|
|
2642
|
+
const I = k ? s(t, k, O, i) : e(t, O.end, w, null, O, i);
|
|
2647
2643
|
c.items.push(I), f = I.range[2], nt(k) && i(I.range, "BLOCK_IN_FLOW", st);
|
|
2648
2644
|
} else {
|
|
2649
2645
|
t.atKey = !0;
|
|
2650
|
-
const I = O.end, g = N ? s(t, N, O, i) : e(t, I,
|
|
2646
|
+
const I = O.end, g = N ? s(t, N, O, i) : e(t, I, S, null, O, i);
|
|
2651
2647
|
nt(N) && i(g.range, "BLOCK_IN_FLOW", st), t.atKey = !1;
|
|
2652
|
-
const _ = ue(
|
|
2648
|
+
const _ = ue(w ?? [], {
|
|
2653
2649
|
flow: l,
|
|
2654
2650
|
indicator: "map-value-ind",
|
|
2655
2651
|
next: k,
|
|
@@ -2660,8 +2656,8 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2660
2656
|
});
|
|
2661
2657
|
if (_.found) {
|
|
2662
2658
|
if (!o && !O.found && t.options.strict) {
|
|
2663
|
-
if (
|
|
2664
|
-
for (const C of
|
|
2659
|
+
if (w)
|
|
2660
|
+
for (const C of w) {
|
|
2665
2661
|
if (C === _.found)
|
|
2666
2662
|
break;
|
|
2667
2663
|
if (C.type === "newline") {
|
|
@@ -2672,7 +2668,7 @@ function un({ composeNode: s, composeEmptyNode: e }, t, n, i, r) {
|
|
|
2672
2668
|
O.start < _.found.offset - 1024 && i(_.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
|
|
2673
2669
|
}
|
|
2674
2670
|
} else k && ("source" in k && k.source && k.source[0] === ":" ? i(k, "MISSING_CHAR", `Missing space after : in ${l}`) : i(_.start, "MISSING_CHAR", `Missing , or : between ${l} items`));
|
|
2675
|
-
const J = k ? s(t, k, _, i) : _.found ? e(t, _.end,
|
|
2671
|
+
const J = k ? s(t, k, _, i) : _.found ? e(t, _.end, w, null, _, i) : null;
|
|
2676
2672
|
J ? nt(k) && i(J.range, "BLOCK_IN_FLOW", st) : _.comment && (g.comment ? g.comment += `
|
|
2677
2673
|
` + _.comment : g.comment = _.comment);
|
|
2678
2674
|
const te = new v(g, J);
|
|
@@ -2768,10 +2764,10 @@ function bs(s, e, t) {
|
|
|
2768
2764
|
for (let u = p; u < l; ++u) {
|
|
2769
2765
|
let [m, b] = o[u];
|
|
2770
2766
|
c += m.length + b.length + 1;
|
|
2771
|
-
const
|
|
2772
|
-
if (
|
|
2773
|
-
const
|
|
2774
|
-
t(c - b.length - (
|
|
2767
|
+
const S = b[b.length - 1] === "\r";
|
|
2768
|
+
if (S && (b = b.slice(0, -1)), b && m.length < a) {
|
|
2769
|
+
const w = `Block scalar lines must not be less indented than their ${i.indent ? "explicit indentation indicator" : "first line"}`;
|
|
2770
|
+
t(c - b.length - (S ? 2 : 1), "BAD_INDENT", w), m = "";
|
|
2775
2771
|
}
|
|
2776
2772
|
r === A.BLOCK_LITERAL ? (f += d + m.slice(a) + b, d = `
|
|
2777
2773
|
`) : m.length > a || b[0] === " " ? (d === " " ? d = `
|
|
@@ -4838,4 +4834,4 @@ export {
|
|
|
4838
4834
|
G as visit,
|
|
4839
4835
|
Fe as visitAsync
|
|
4840
4836
|
};
|
|
4841
|
-
//# sourceMappingURL=index-
|
|
4837
|
+
//# sourceMappingURL=index-Dl3Yl0yb.js.map
|