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.
- package/dist/ui/cjs/index.js +9 -4
- package/dist/ui/cjs/index.js.map +1 -1
- package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.d.ts +2 -1
- package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +6 -0
- package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/index.d.ts +2 -2
- package/dist/ui/esm/index.js +9 -5
- package/dist/ui/esm/index.js.map +1 -1
- package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.d.ts +2 -1
- package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +6 -0
- package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/index.d.ts +2 -2
- package/dist/ui/types.d.ts +8 -1
- package/dist/ui/umd/index.js +9 -4
- package/dist/ui/umd/index.js.map +1 -1
- package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.d.ts +2 -1
- package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +6 -0
- package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/ui/cjs/index.js
CHANGED
|
@@ -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
|
|
19346
|
-
var
|
|
19347
|
-
var max =
|
|
19348
|
-
return (React.createElement("div", { className: "notionate-blocks-breadcrumb" },
|
|
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;
|