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.
@@ -19342,16 +19342,20 @@ var BreadcrumbLink = function (_a) {
19342
19342
  }
19343
19343
  return (React.createElement("span", { className: "notionate-blocks-breadcrumb-a" }, children));
19344
19344
  };
19345
- var BreadcrumbBlock = function (_a) {
19346
- var block = _a.block, link = _a.link, hrefs = _a.hrefs, query = _a.query;
19347
- var max = block.list.length;
19348
- return (React.createElement("div", { className: "notionate-blocks-breadcrumb" }, block.list.map(function (v, i) { return (React.createElement("span", { key: "crumb-".concat(i) },
19345
+ var Breadcrumbs = function (_a) {
19346
+ var list = _a.list, link = _a.link, hrefs = _a.hrefs, query = _a.query;
19347
+ var max = list.length;
19348
+ return (React.createElement("div", { className: "notionate-blocks-breadcrumb" }, list.map(function (v, i) { return (React.createElement("span", { key: "crumb-".concat(i) },
19349
19349
  React.createElement(BreadcrumbLink, { breadcrumb: v, href: hrefs === undefined ? undefined : hrefs[i], link: link, query: query },
19350
19350
  v.icon.type === 'emoji' && React.createElement("span", { className: "notionate-blocks-breadcrumb-emoji" }, v.icon.emoji),
19351
19351
  v.icon.type !== 'emoji' && React.createElement("img", { className: "notionate-blocks-breadcrumb-icon", src: v.icon.src, width: 20, height: 20, alt: v.name }),
19352
19352
  React.createElement("span", { className: "notionate-blocks-breadcrumb-title" }, v.name)),
19353
19353
  i + 1 < max && React.createElement("span", { className: "notionate-blocks-breadcrumb-slash" }, "/"))); })));
19354
19354
  };
19355
+ var BreadcrumbBlock = function (_a) {
19356
+ var block = _a.block, link = _a.link, hrefs = _a.hrefs, query = _a.query;
19357
+ return React.createElement(Breadcrumbs, { list: block.list, link: link, hrefs: hrefs, query: query });
19358
+ };
19355
19359
 
19356
19360
  var BulletedListBlocks = function (_a) {
19357
19361
  var _b;
@@ -19982,6 +19986,7 @@ var Page = function (_a) {
19982
19986
 
19983
19987
  exports.BookmarkBlock = BookmarkBlock;
19984
19988
  exports.BreadcrumbBlock = BreadcrumbBlock;
19989
+ exports.Breadcrumbs = Breadcrumbs;
19985
19990
  exports.BuildPlainTextByPage = BuildPlainTextByPage;
19986
19991
  exports.BulletedListBlocks = BulletedListBlocks;
19987
19992
  exports.CalloutBlock = CalloutBlock;