rotion 0.0.7 → 0.0.8

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.
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
- import type { BreadcrumbBlockProps } from './BreadcrumbBlock.types';
2
+ import type { BreadcrumbBlockProps, BreadcrumbsProps } from './BreadcrumbBlock.types';
3
+ export declare const Breadcrumbs: ({ list, link, hrefs, query }: BreadcrumbsProps) => React.JSX.Element;
3
4
  declare const BreadcrumbBlock: ({ block, link, hrefs, query }: BreadcrumbBlockProps) => React.JSX.Element;
4
5
  export default BreadcrumbBlock;
@@ -10,6 +10,12 @@ export interface BreadcrumbLinkProps {
10
10
  query?: ParsedUrlQueryInput;
11
11
  children?: ReactNode;
12
12
  }
13
+ export interface BreadcrumbsProps {
14
+ list: Breadcrumb[];
15
+ link?: Link;
16
+ hrefs?: string[];
17
+ query?: ParsedUrlQueryInput;
18
+ }
13
19
  export interface BreadcrumbBlockProps {
14
20
  block: BreadcrumbBlockObjectResponseEx;
15
21
  link?: Link;
@@ -1,2 +1,2 @@
1
- import BreadcrumbBlock from './BreadcrumbBlock';
2
- export { BreadcrumbBlock };
1
+ import BreadcrumbBlock, { Breadcrumbs } from './BreadcrumbBlock';
2
+ export { BreadcrumbBlock, Breadcrumbs };
@@ -19340,16 +19340,20 @@ var BreadcrumbLink = function (_a) {
19340
19340
  }
19341
19341
  return (React.createElement("span", { className: "notionate-blocks-breadcrumb-a" }, children));
19342
19342
  };
19343
- var BreadcrumbBlock = function (_a) {
19344
- var block = _a.block, link = _a.link, hrefs = _a.hrefs, query = _a.query;
19345
- var max = block.list.length;
19346
- return (React.createElement("div", { className: "notionate-blocks-breadcrumb" }, block.list.map(function (v, i) { return (React.createElement("span", { key: "crumb-".concat(i) },
19343
+ var Breadcrumbs = function (_a) {
19344
+ var list = _a.list, link = _a.link, hrefs = _a.hrefs, query = _a.query;
19345
+ var max = list.length;
19346
+ return (React.createElement("div", { className: "notionate-blocks-breadcrumb" }, list.map(function (v, i) { return (React.createElement("span", { key: "crumb-".concat(i) },
19347
19347
  React.createElement(BreadcrumbLink, { breadcrumb: v, href: hrefs === undefined ? undefined : hrefs[i], link: link, query: query },
19348
19348
  v.icon.type === 'emoji' && React.createElement("span", { className: "notionate-blocks-breadcrumb-emoji" }, v.icon.emoji),
19349
19349
  v.icon.type !== 'emoji' && React.createElement("img", { className: "notionate-blocks-breadcrumb-icon", src: v.icon.src, width: 20, height: 20, alt: v.name }),
19350
19350
  React.createElement("span", { className: "notionate-blocks-breadcrumb-title" }, v.name)),
19351
19351
  i + 1 < max && React.createElement("span", { className: "notionate-blocks-breadcrumb-slash" }, "/"))); })));
19352
19352
  };
19353
+ var BreadcrumbBlock = function (_a) {
19354
+ var block = _a.block, link = _a.link, hrefs = _a.hrefs, query = _a.query;
19355
+ return React.createElement(Breadcrumbs, { list: block.list, link: link, hrefs: hrefs, query: query });
19356
+ };
19353
19357
 
19354
19358
  var BulletedListBlocks = function (_a) {
19355
19359
  var _b;
@@ -19978,5 +19982,5 @@ var Page = function (_a) {
19978
19982
  return (React.createElement("div", { className: "notionate-blocks" }, children));
19979
19983
  };
19980
19984
 
19981
- export { BookmarkBlock, BreadcrumbBlock, BuildPlainTextByPage, BulletedListBlocks, CalloutBlock, ChildDatabaseBlock, ChildPageBlock, CodeBlock, ColumnListBlock, EmbedBlock, EquationBlock, FileBlock, Gallery, GalleryCard, GalleryCheckboxField, GalleryDateField, GalleryMultiSelectField, GalleryNumberField, GalleryRichTextField, GalleryTitleField, GalleryUrlField, ImageBlock, LinkPreviewBlock, List, ListBlock, ListCheckboxField, ListDateField, ListMultiSelectField, ListNumberField, ListRichTextField, ListTitleField, ListUrlField, NumberedListBlocks, Page, PageIcon, PdfBlock, RichText, SyncedBlock, Table, TableBlock, TableCheckboxField, TableDateField, TableIcon, TableMultiSelectField, TableNumberField, TableOfContentsBlock, TableRichTextField, TableSelectField, TableTitleField, TableUrlField, TemplateBlock, TextBlock, ToDoBlock, ToggleBlock, UsePagination, VideoBlock, getLinkPathAndLinkKey, pathBasename, queryToString };
19985
+ export { BookmarkBlock, BreadcrumbBlock, Breadcrumbs, BuildPlainTextByPage, BulletedListBlocks, CalloutBlock, ChildDatabaseBlock, ChildPageBlock, CodeBlock, ColumnListBlock, EmbedBlock, EquationBlock, FileBlock, Gallery, GalleryCard, GalleryCheckboxField, GalleryDateField, GalleryMultiSelectField, GalleryNumberField, GalleryRichTextField, GalleryTitleField, GalleryUrlField, ImageBlock, LinkPreviewBlock, List, ListBlock, ListCheckboxField, ListDateField, ListMultiSelectField, ListNumberField, ListRichTextField, ListTitleField, ListUrlField, NumberedListBlocks, Page, PageIcon, PdfBlock, RichText, SyncedBlock, Table, TableBlock, TableCheckboxField, TableDateField, TableIcon, TableMultiSelectField, TableNumberField, TableOfContentsBlock, TableRichTextField, TableSelectField, TableTitleField, TableUrlField, TemplateBlock, TextBlock, ToDoBlock, ToggleBlock, UsePagination, VideoBlock, getLinkPathAndLinkKey, pathBasename, queryToString };
19982
19986
  //# sourceMappingURL=index.js.map