Skip to content

Commit

Permalink
build: update build files
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceoq committed Nov 29, 2023
1 parent 14136a4 commit 8003cab
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions dist/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7218,7 +7218,7 @@ var SidebarElements = ({ slugPrefix, items, subItemLevel }) => {
endpoint,
children
}) => {
const localizedName = typeof name === "string" ? name : name[`${locale}`];
const localizedName = typeof name === "string" ? name : name[locale];
const isExpandable = children.length > 0;
const pathSuffix = method ? `#${method.toLowerCase()}-${endpoint}` : "";
const activeItem = method ? `${slug}${pathSuffix}` : slug;
Expand Down Expand Up @@ -7267,7 +7267,7 @@ var SidebarElements = ({ slugPrefix, items, subItemLevel }) => {
}
) : checkDocumentationType(sidebarDataMaster, slug, "link") ? /* @__PURE__ */ jsxs12(Link3, { href: slug, target: "_blank", sx: styles_default11.elementText, children: [
/* @__PURE__ */ jsx17(IconExternalLink, { size: 16, sx: { marginRight: "10px" } }),
name
localizedName
] }) : /* @__PURE__ */ jsxs12(
Box10,
{
Expand Down Expand Up @@ -7444,7 +7444,8 @@ var SidebarSection = ({
isEditorPreview,
sidebarSectionHidden,
setSidebarSectionHidden,
sidebarSections
sidebarSections,
locale
} = useContext5(LibraryContext);
const [methodFilterList, setMethodFilterList] = useState6([
{ name: "POST", active: false },
Expand All @@ -7456,7 +7457,6 @@ var SidebarSection = ({
const filterStatus = methodFilterList.some(
(methodFilter) => methodFilter.active
);
const { locale } = useContext5(LibraryContext);
const filteredResult = useMemo(() => {
if (!filterStatus && searchValue === "")
return categories;
Expand All @@ -7467,12 +7467,12 @@ var SidebarSection = ({
const hasMethodFilter = !filterStatus || methodFilterList.find(
(methodFilter) => methodFilter.name === endpoint.method
)?.active;
const hasInputFilter = searchValue === "" || endpoint.name.toLowerCase().includes(searchValue.toLowerCase());
const hasInputFilter = searchValue === "" || (typeof endpoint.name === "string" ? endpoint.name : endpoint.name[locale]).toLowerCase().includes(searchValue.toLowerCase());
return hasMethodFilter && hasInputFilter;
});
return subcategory;
}).filter(
(subcategory) => subcategory.children.length > 0 || subcategory.type === "markdown" && subcategory.name.toLowerCase().includes(searchValue.toLowerCase())
(subcategory) => subcategory.children.length > 0 || subcategory.type === "markdown" && (typeof subcategory.name === "string" ? subcategory.name : subcategory.name[locale]).toLowerCase().includes(searchValue.toLowerCase())
);
return category2;
}).filter((category2) => category2.children.length > 0);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

0 comments on commit 8003cab

Please sign in to comment.