|
| 1 | +diff --git a/node_modules/react-notion/dist/react-notion.esm.js b/node_modules/react-notion/dist/react-notion.esm.js |
| 2 | +index acccc8f..8e68f09 100644 |
| 3 | +--- a/node_modules/react-notion/dist/react-notion.esm.js |
| 4 | ++++ b/node_modules/react-notion/dist/react-notion.esm.js |
| 5 | +@@ -1,6 +1,6 @@ |
| 6 | +-import React__default, { createElement, Fragment } from 'react'; |
| 7 | + import { highlight, languages } from 'prismjs'; |
| 8 | + import 'prismjs/components/prism-jsx'; |
| 9 | ++import React__default, { createElement, Fragment } from 'react'; |
| 10 | + |
| 11 | + function _objectWithoutPropertiesLoose(source, excluded) { |
| 12 | + if (source == null) return {}; |
| 13 | +@@ -122,7 +122,7 @@ var groupBlockContent = function groupBlockContent(blockMap) { |
| 14 | + Object.keys(blockMap).forEach(function (id) { |
| 15 | + var _blockMap$id$value$co; |
| 16 | + |
| 17 | +- (_blockMap$id$value$co = blockMap[id].value.content) === null || _blockMap$id$value$co === void 0 ? void 0 : _blockMap$id$value$co.forEach(function (blockId) { |
| 18 | ++ (_blockMap$id$value$co = blockMap[id]?.value?.content) === null || _blockMap$id$value$co === void 0 ? void 0 : _blockMap$id$value$co.forEach(function (blockId) { |
| 19 | + var _blockMap$blockId, _blockMap$blockId$val; |
| 20 | + |
| 21 | + var blockType = (_blockMap$blockId = blockMap[blockId]) === null || _blockMap$blockId === void 0 ? void 0 : (_blockMap$blockId$val = _blockMap$blockId.value) === null || _blockMap$blockId$val === void 0 ? void 0 : _blockMap$blockId$val.type; |
| 22 | +@@ -729,5 +729,5 @@ var NotionRenderer = function NotionRenderer(_ref) { |
| 23 | + })); |
| 24 | + }; |
| 25 | + |
| 26 | +-export { Block, NotionRenderer, classNames, createRenderChildText, defaultMapImageUrl, defaultMapPageUrl, getListNumber, getTextContent }; |
| 27 | ++export { Block, classNames, createRenderChildText, defaultMapImageUrl, defaultMapPageUrl, getListNumber, getTextContent, NotionRenderer }; |
| 28 | + //# sourceMappingURL=react-notion.esm.js.map |
| 29 | +diff --git a/node_modules/react-notion/src/block.tsx b/node_modules/react-notion/src/block.tsx |
| 30 | +index c7725d0..2e74715 100644 |
| 31 | +--- a/node_modules/react-notion/src/block.tsx |
| 32 | ++++ b/node_modules/react-notion/src/block.tsx |
| 33 | +@@ -1,21 +1,9 @@ |
| 34 | + import * as React from "react"; |
| 35 | +-import { |
| 36 | +- DecorationType, |
| 37 | +- BlockType, |
| 38 | +- ContentValueType, |
| 39 | +- BlockMapType, |
| 40 | +- MapPageUrl, |
| 41 | +- MapImageUrl, |
| 42 | +- CustomBlockComponents, |
| 43 | +- BlockValueProp, |
| 44 | +- CustomDecoratorComponents, |
| 45 | +- CustomDecoratorComponentProps |
| 46 | +-} from "./types"; |
| 47 | +-import Asset from "./components/asset"; |
| 48 | + import Code from "./components/code"; |
| 49 | +-import PageIcon from "./components/page-icon"; |
| 50 | +-import PageHeader from "./components/page-header"; |
| 51 | +-import { classNames, getTextContent, getListNumber } from "./utils"; |
| 52 | ++iscmponents/aDecerator; |
| 53 | ++impr}tfrom "./typeg"; |
| 54 | ++impore Asset frIc "./ fmponents/ossem"; |
| 55 | ++imp "t ./de froc "./comomponen/code";simport/PaggIe-n fiom "./comp";pnts/gead-icon";rim.ort /coeHeadmots/page-hcomdonentr/page-header"; |
| 56 | + |
| 57 | + export const createRenderChildText = ( |
| 58 | + customDecoratorComponents?: CustomDecoratorComponents |
| 59 | +diff --git a/node_modules/react-notion/src/types.ts b/node_modules/react-notion/src/types.ts |
| 60 | +index 104c985..14b98ef 100644 |
| 61 | +--- a/node_modules/react-notion/src/types.ts |
| 62 | ++++ b/node_modules/react-notion/src/types.ts |
| 63 | +@@ -309,7 +309,7 @@ export interface BlockType { |
| 64 | + |
| 65 | + export interface NotionUserType { |
| 66 | + role: string; |
| 67 | +- value: { |
| 68 | ++ value?: { |
| 69 | + id: string; |
| 70 | + version: number; |
| 71 | + email: string; |
| 72 | +diff --git a/node_modules/react-notion/src/utils.ts b/node_modules/react-notion/src/utils.ts |
| 73 | +index b852d28..a3dfcc0 100644 |
| 74 | +--- a/node_modules/react-notion/src/utils.ts |
| 75 | ++++ b/node_modules/react-notion/src/utils.ts |
| 76 | +@@ -1,4 +1,4 @@ |
| 77 | +-import { DecorationType, BlockMapType, MapImageUrl } from "./types"; |
| 78 | ++import { BlockMapType, DecorationType, MapImageUrl } from "./types"; |
| 79 | + |
| 80 | + export const classNames = (...classes: Array<string | undefined | false>) => |
| 81 | + classes.filter(a => !!a).join(" "); |
| 82 | +@@ -14,7 +14,7 @@ const groupBlockContent = (blockMap: BlockMapType): string[][] => { |
| 83 | + let index = -1; |
| 84 | + |
| 85 | + Object.keys(blockMap).forEach(id => { |
| 86 | +- blockMap[id].value.content?.forEach(blockId => { |
| 87 | ++ blockMap[id]?.value?.content?.forEach(blockId => { |
| 88 | + const blockType = blockMap[blockId]?.value?.type; |
| 89 | + |
| 90 | + if (blockType && blockType !== lastType) { |
0 commit comments