@texonom/nreact 1.1.1 → 1.1.3

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.
Files changed (97) hide show
  1. package/build/.tsbuildinfo +1 -1
  2. package/build/block.d.ts +20 -20
  3. package/build/chunk-N3C4YBY7.js +1378 -0
  4. package/build/components/asset-wrapper.d.ts +6 -6
  5. package/build/components/asset.d.ts +7 -7
  6. package/build/components/audio.d.ts +6 -6
  7. package/build/components/checkbox.d.ts +5 -5
  8. package/build/components/eoi.d.ts +7 -7
  9. package/build/components/file.d.ts +6 -6
  10. package/build/components/google-drive.d.ts +6 -6
  11. package/build/components/graceful-image.d.ts +3 -3
  12. package/build/components/header.d.ts +15 -15
  13. package/build/components/lazy-image.d.ts +13 -13
  14. package/build/components/lite-youtube-embed.d.ts +13 -13
  15. package/build/components/page-aside.d.ts +11 -11
  16. package/build/components/page-icon.d.ts +16 -16
  17. package/build/components/page-title.d.ts +12 -12
  18. package/build/components/search-dialog.d.ts +25 -25
  19. package/build/components/sync-pointer-block.d.ts +6 -6
  20. package/build/components/text.d.ts +17 -17
  21. package/build/context.d.ts +62 -61
  22. package/build/context.d.ts.map +1 -1
  23. package/build/dev/chunk-XOMF4TSV.js +1379 -0
  24. package/build/dev/chunk-XOMF4TSV.js.map +1 -0
  25. package/build/dev/index.js +697 -3
  26. package/build/dev/index.js.map +1 -1
  27. package/build/dev/third-party/code.js +1 -1
  28. package/build/dev/third-party/collection.js +1 -1
  29. package/build/dev/third-party/collection.js.map +1 -1
  30. package/build/dev/third-party/equation.js +1 -1
  31. package/build/icons/check.d.ts +3 -3
  32. package/build/icons/chevron-down-icon.d.ts +2 -2
  33. package/build/icons/clear-icon.d.ts +2 -2
  34. package/build/icons/collection-view-board.d.ts +3 -3
  35. package/build/icons/collection-view-calendar.d.ts +3 -3
  36. package/build/icons/collection-view-gallery.d.ts +3 -3
  37. package/build/icons/collection-view-icon.d.ts +8 -8
  38. package/build/icons/collection-view-list.d.ts +3 -3
  39. package/build/icons/collection-view-table.d.ts +3 -3
  40. package/build/icons/copy.d.ts +3 -3
  41. package/build/icons/default-page-icon.d.ts +2 -2
  42. package/build/icons/empty-icon.d.ts +2 -2
  43. package/build/icons/file-icon.d.ts +2 -2
  44. package/build/icons/link-icon.d.ts +2 -2
  45. package/build/icons/loading-icon.d.ts +2 -2
  46. package/build/icons/property-icon.d.ts +8 -8
  47. package/build/icons/search-icon.d.ts +2 -2
  48. package/build/icons/type-checkbox.d.ts +3 -3
  49. package/build/icons/type-date.d.ts +3 -3
  50. package/build/icons/type-email.d.ts +3 -3
  51. package/build/icons/type-file.d.ts +3 -3
  52. package/build/icons/type-formula.d.ts +3 -3
  53. package/build/icons/type-github.d.ts +3 -3
  54. package/build/icons/type-multi-select.d.ts +3 -3
  55. package/build/icons/type-number.d.ts +3 -3
  56. package/build/icons/type-person-2.d.ts +3 -3
  57. package/build/icons/type-person.d.ts +3 -3
  58. package/build/icons/type-phone-number.d.ts +3 -3
  59. package/build/icons/type-relation.d.ts +3 -3
  60. package/build/icons/type-select.d.ts +3 -3
  61. package/build/icons/type-text.d.ts +3 -3
  62. package/build/icons/type-timestamp.d.ts +3 -3
  63. package/build/icons/type-title.d.ts +3 -3
  64. package/build/icons/type-url.d.ts +3 -3
  65. package/build/index.d.ts +7 -7
  66. package/build/index.js +697 -3
  67. package/build/map-image-url.d.ts +2 -2
  68. package/build/map-page-url.d.ts +1 -1
  69. package/build/next.d.ts +3 -3
  70. package/build/renderer.d.ts +49 -49
  71. package/build/third-party/code.d.ts +16 -16
  72. package/build/third-party/code.js +1 -1
  73. package/build/third-party/collection-card.d.ts +3 -3
  74. package/build/third-party/collection-column-title.d.ts +5 -5
  75. package/build/third-party/collection-group.d.ts +3 -3
  76. package/build/third-party/collection-row.d.ts +7 -7
  77. package/build/third-party/collection-utils.d.ts +1 -1
  78. package/build/third-party/collection-view-board.d.ts +3 -3
  79. package/build/third-party/collection-view-gallery.d.ts +3 -3
  80. package/build/third-party/collection-view-list.d.ts +3 -3
  81. package/build/third-party/collection-view-table.d.ts +3 -3
  82. package/build/third-party/collection-view.d.ts +4 -4
  83. package/build/third-party/collection.d.ts +10 -10
  84. package/build/third-party/collection.js +1 -1
  85. package/build/third-party/equation.d.ts +8 -8
  86. package/build/third-party/equation.js +1 -1
  87. package/build/third-party/eval-formula.d.ts +20 -20
  88. package/build/third-party/modal.d.ts +2 -2
  89. package/build/third-party/pdf.d.ts +4 -4
  90. package/build/third-party/property.d.ts +21 -21
  91. package/build/types.d.ts +71 -71
  92. package/build/utils.d.ts +9 -9
  93. package/package.json +9 -9
  94. package/readme.md +3 -3
  95. package/build/chunk-RGP7M4NM.js +0 -2064
  96. package/build/dev/chunk-HLFRY3QP.js +0 -2065
  97. package/build/dev/chunk-HLFRY3QP.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { Block } from '@texonom/ntypes';
3
- export declare const AssetWrapper: React.FC<{
4
- blockId: string;
5
- block: Block;
6
- }>;
1
+ import * as React from 'react';
2
+ import { Block } from '@texonom/ntypes';
3
+ export declare const AssetWrapper: React.FC<{
4
+ blockId: string;
5
+ block: Block;
6
+ }>;
7
7
  //# sourceMappingURL=asset-wrapper.d.ts.map
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- import { BaseContentBlock } from '@texonom/ntypes';
3
- export declare const Asset: React.FC<{
4
- block: BaseContentBlock;
5
- children: any;
6
- zoomable?: boolean;
7
- }>;
1
+ import * as React from 'react';
2
+ import { BaseContentBlock } from '@texonom/ntypes';
3
+ export declare const Asset: React.FC<{
4
+ block: BaseContentBlock;
5
+ children: any;
6
+ zoomable?: boolean;
7
+ }>;
8
8
  //# sourceMappingURL=asset.d.ts.map
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { AudioBlock } from '@texonom/ntypes';
3
- export declare const Audio: React.FC<{
4
- block: AudioBlock;
5
- className?: string;
6
- }>;
1
+ import * as React from 'react';
2
+ import { AudioBlock } from '@texonom/ntypes';
3
+ export declare const Audio: React.FC<{
4
+ block: AudioBlock;
5
+ className?: string;
6
+ }>;
7
7
  //# sourceMappingURL=audio.d.ts.map
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
- export declare const Checkbox: React.FC<{
3
- isChecked: boolean;
4
- blockId: string | undefined;
5
- }>;
1
+ import * as React from 'react';
2
+ export declare const Checkbox: React.FC<{
3
+ isChecked: boolean;
4
+ blockId: string | undefined;
5
+ }>;
6
6
  //# sourceMappingURL=checkbox.d.ts.map
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- import { Block } from '@texonom/ntypes';
3
- export declare const EOI: React.FC<{
4
- block: Block;
5
- inline?: boolean;
6
- className?: string;
7
- }>;
1
+ import * as React from 'react';
2
+ import { Block } from '@texonom/ntypes';
3
+ export declare const EOI: React.FC<{
4
+ block: Block;
5
+ inline?: boolean;
6
+ className?: string;
7
+ }>;
8
8
  //# sourceMappingURL=eoi.d.ts.map
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { FileBlock } from '@texonom/ntypes';
3
- export declare const File: React.FC<{
4
- block: FileBlock;
5
- className?: string;
6
- }>;
1
+ import * as React from 'react';
2
+ import { FileBlock } from '@texonom/ntypes';
3
+ export declare const File: React.FC<{
4
+ block: FileBlock;
5
+ className?: string;
6
+ }>;
7
7
  //# sourceMappingURL=file.d.ts.map
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { GoogleDriveBlock } from '@texonom/ntypes';
3
- export declare const GoogleDrive: React.FC<{
4
- block: GoogleDriveBlock;
5
- className?: string;
6
- }>;
1
+ import * as React from 'react';
2
+ import { GoogleDriveBlock } from '@texonom/ntypes';
3
+ export declare const GoogleDrive: React.FC<{
4
+ block: GoogleDriveBlock;
5
+ className?: string;
6
+ }>;
7
7
  //# sourceMappingURL=google-drive.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
2
- import { ImgProps } from 'react-image';
3
- export declare const GracefulImage: (props: ImgProps) => React.JSX.Element;
1
+ import * as React from 'react';
2
+ import { ImgProps } from 'react-image';
3
+ export declare const GracefulImage: (props: ImgProps) => React.JSX.Element;
4
4
  //# sourceMappingURL=graceful-image.d.ts.map
@@ -1,16 +1,16 @@
1
- import * as React from 'react';
2
- import * as types from '@texonom/ntypes';
3
- import { SearchNotionFn } from '../types';
4
- export declare const Header: React.FC<{
5
- block: types.CollectionViewPageBlock | types.PageBlock;
6
- }>;
7
- export declare const Breadcrumbs: React.FC<{
8
- block: types.Block;
9
- rootOnly?: boolean;
10
- }>;
11
- export declare const Search: React.FC<{
12
- block: types.Block;
13
- search?: SearchNotionFn;
14
- title?: React.ReactNode;
15
- }>;
1
+ import * as React from 'react';
2
+ import * as types from '@texonom/ntypes';
3
+ import { SearchNotionFn } from '../types';
4
+ export declare const Header: React.FC<{
5
+ block: types.CollectionViewPageBlock | types.PageBlock;
6
+ }>;
7
+ export declare const Breadcrumbs: React.FC<{
8
+ block: types.Block;
9
+ rootOnly?: boolean;
10
+ }>;
11
+ export declare const Search: React.FC<{
12
+ block: types.Block;
13
+ search?: SearchNotionFn;
14
+ title?: React.ReactNode;
15
+ }>;
16
16
  //# sourceMappingURL=header.d.ts.map
@@ -1,14 +1,14 @@
1
- import * as React from 'react';
2
- /**
3
- * Progressive, lazy images modeled after Medium's LQIP technique.
4
- */
5
- export declare const LazyImage: React.FC<{
6
- src?: string;
7
- alt?: string;
8
- className?: string;
9
- style?: React.CSSProperties;
10
- height?: number;
11
- zoomable?: boolean;
12
- priority?: boolean;
13
- }>;
1
+ import * as React from 'react';
2
+ /**
3
+ * Progressive, lazy images modeled after Medium's LQIP technique.
4
+ */
5
+ export declare const LazyImage: React.FC<{
6
+ src?: string;
7
+ alt?: string;
8
+ className?: string;
9
+ style?: React.CSSProperties;
10
+ height?: number;
11
+ zoomable?: boolean;
12
+ priority?: boolean;
13
+ }>;
14
14
  //# sourceMappingURL=lazy-image.d.ts.map
@@ -1,14 +1,14 @@
1
- import * as React from 'react';
2
- export declare const LiteYouTubeEmbed: React.FC<{
3
- id: string;
4
- defaultPlay?: boolean;
5
- mute?: boolean;
6
- lazyImage?: boolean;
7
- iframeTitle?: string;
8
- alt?: string;
9
- params?: Record<string, string>;
10
- adLinksPreconnect?: boolean;
11
- style?: React.CSSProperties;
12
- className?: string;
13
- }>;
1
+ import * as React from 'react';
2
+ export declare const LiteYouTubeEmbed: React.FC<{
3
+ id: string;
4
+ defaultPlay?: boolean;
5
+ mute?: boolean;
6
+ lazyImage?: boolean;
7
+ iframeTitle?: string;
8
+ alt?: string;
9
+ params?: Record<string, string>;
10
+ adLinksPreconnect?: boolean;
11
+ style?: React.CSSProperties;
12
+ className?: string;
13
+ }>;
14
14
  //# sourceMappingURL=lite-youtube-embed.d.ts.map
@@ -1,12 +1,12 @@
1
- import * as React from 'react';
2
- import { TableOfContentsEntry } from '@texonom/nutils';
3
- export declare const PageAside: React.FC<{
4
- toc: Array<TableOfContentsEntry>;
5
- activeSection: string | null;
6
- setActiveSection: (activeSection: string | null) => unknown;
7
- hasToc: boolean;
8
- hasAside: boolean;
9
- pageAside?: React.ReactNode;
10
- className?: string;
11
- }>;
1
+ import * as React from 'react';
2
+ import { TableOfContentsEntry } from '@texonom/nutils';
3
+ export declare const PageAside: React.FC<{
4
+ toc: Array<TableOfContentsEntry>;
5
+ activeSection: string | null;
6
+ setActiveSection: (activeSection: string | null) => unknown;
7
+ hasToc: boolean;
8
+ hasAside: boolean;
9
+ pageAside?: React.ReactNode;
10
+ className?: string;
11
+ }>;
12
12
  //# sourceMappingURL=page-aside.d.ts.map
@@ -1,17 +1,17 @@
1
- import * as React from 'react';
2
- import { Block } from '@texonom/ntypes';
3
- export declare const PageIconImpl: React.FC<{
4
- block: Block;
5
- className?: string;
6
- inline?: boolean;
7
- hideDefaultIcon?: boolean;
8
- defaultIcon?: string;
9
- }>;
10
- export declare const PageIcon: React.NamedExoticComponent<{
11
- block: Block;
12
- className?: string;
13
- inline?: boolean;
14
- hideDefaultIcon?: boolean;
15
- defaultIcon?: string;
16
- }>;
1
+ import * as React from 'react';
2
+ import { Block } from '@texonom/ntypes';
3
+ export declare const PageIconImpl: React.FC<{
4
+ block: Block;
5
+ className?: string;
6
+ inline?: boolean;
7
+ hideDefaultIcon?: boolean;
8
+ defaultIcon?: string;
9
+ }>;
10
+ export declare const PageIcon: React.NamedExoticComponent<{
11
+ block: Block;
12
+ className?: string;
13
+ inline?: boolean;
14
+ hideDefaultIcon?: boolean;
15
+ defaultIcon?: string;
16
+ }>;
17
17
  //# sourceMappingURL=page-icon.d.ts.map
@@ -1,13 +1,13 @@
1
- import * as React from 'react';
2
- import { Block } from '@texonom/ntypes';
3
- export declare const PageTitleImpl: React.FC<{
4
- block: Block;
5
- className?: string;
6
- defaultIcon?: string;
7
- }>;
8
- export declare const PageTitle: React.NamedExoticComponent<{
9
- block: Block;
10
- className?: string;
11
- defaultIcon?: string;
12
- }>;
1
+ import * as React from 'react';
2
+ import { Block } from '@texonom/ntypes';
3
+ export declare const PageTitleImpl: React.FC<{
4
+ block: Block;
5
+ className?: string;
6
+ defaultIcon?: string;
7
+ }>;
8
+ export declare const PageTitle: React.NamedExoticComponent<{
9
+ block: Block;
10
+ className?: string;
11
+ defaultIcon?: string;
12
+ }>;
13
13
  //# sourceMappingURL=page-title.d.ts.map
@@ -1,26 +1,26 @@
1
- import * as React from 'react';
2
- import * as types from '@texonom/ntypes';
3
- export declare class SearchDialog extends React.Component<{
4
- isOpen: boolean;
5
- rootBlockId: string;
6
- onClose: () => void;
7
- searchNotion: (params: types.SearchParams) => Promise<types.SearchResults>;
8
- }> {
9
- constructor(props: any);
10
- state: {
11
- isLoading: boolean;
12
- query: string;
13
- searchResult: any;
14
- searchError: any;
15
- };
16
- _inputRef: any;
17
- _search: any;
18
- componentDidMount(): void;
19
- render(): React.JSX.Element;
20
- _onAfterOpen: () => void;
21
- _onChangeQuery: (e: any) => void;
22
- _onClearQuery: () => void;
23
- _warmupSearch: () => Promise<void>;
24
- _searchImpl: () => Promise<void>;
25
- }
1
+ import * as React from 'react';
2
+ import * as types from '@texonom/ntypes';
3
+ export declare class SearchDialog extends React.Component<{
4
+ isOpen: boolean;
5
+ rootBlockId: string;
6
+ onClose: () => void;
7
+ searchNotion: (params: types.SearchParams) => Promise<types.SearchResults>;
8
+ }> {
9
+ constructor(props: any);
10
+ state: {
11
+ isLoading: boolean;
12
+ query: string;
13
+ searchResult: any;
14
+ searchError: any;
15
+ };
16
+ _inputRef: any;
17
+ _search: any;
18
+ componentDidMount(): void;
19
+ render(): React.JSX.Element;
20
+ _onAfterOpen: () => void;
21
+ _onChangeQuery: (e: any) => void;
22
+ _onClearQuery: () => void;
23
+ _warmupSearch: () => Promise<void>;
24
+ _searchImpl: () => Promise<void>;
25
+ }
26
26
  //# sourceMappingURL=search-dialog.d.ts.map
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { Block as BlockType } from '@texonom/ntypes';
3
- export declare const SyncPointerBlock: React.FC<{
4
- block: BlockType;
5
- level: number;
6
- }>;
1
+ import * as React from 'react';
2
+ import { Block as BlockType } from '@texonom/ntypes';
3
+ export declare const SyncPointerBlock: React.FC<{
4
+ block: BlockType;
5
+ level: number;
6
+ }>;
7
7
  //# sourceMappingURL=sync-pointer-block.d.ts.map
@@ -1,18 +1,18 @@
1
- import * as React from 'react';
2
- import { Block, Decoration } from '@texonom/ntypes';
3
- /**
4
- * Renders a single piece of Notion text, including basic rich text formatting.
5
- *
6
- * These represent the innermost leaf nodes of a Notion subtree.
7
- *
8
- * TODO: I think this implementation would be more correct if the reduce just added
9
- * attributes to the final element's style.
10
- */
11
- export declare const Text: React.FC<{
12
- value: Decoration[];
13
- block: Block;
14
- linkProps?: any;
15
- linkProtocol?: string;
16
- inline?: boolean;
17
- }>;
1
+ import * as React from 'react';
2
+ import { Block, Decoration } from '@texonom/ntypes';
3
+ /**
4
+ * Renders a single piece of Notion text, including basic rich text formatting.
5
+ *
6
+ * These represent the innermost leaf nodes of a Notion subtree.
7
+ *
8
+ * TODO: I think this implementation would be more correct if the reduce just added
9
+ * attributes to the final element's style.
10
+ */
11
+ export declare const Text: React.FC<{
12
+ value: Decoration[];
13
+ block: Block;
14
+ linkProps?: any;
15
+ linkProtocol?: string;
16
+ inline?: boolean;
17
+ }>;
18
18
  //# sourceMappingURL=text.d.ts.map
@@ -1,62 +1,63 @@
1
- import * as React from 'react';
2
- import { ExtendedRecordMap } from '@texonom/ntypes';
3
- import { MapImageUrlFn, MapPageUrlFn, NotionComponents, SearchNotionFn } from './types';
4
- export interface NotionContext {
5
- recordMap: ExtendedRecordMap;
6
- components: NotionComponents;
7
- mapPageUrl: MapPageUrlFn;
8
- mapImageUrl: MapImageUrlFn;
9
- searchNotion?: SearchNotionFn;
10
- isShowingSearch?: boolean;
11
- onHideSearch?: () => void;
12
- rootPageId?: string;
13
- rootDomain?: string;
14
- fullPage: boolean;
15
- darkMode: boolean;
16
- previewImages: boolean;
17
- forceCustomImages: boolean;
18
- showCollectionViewDropdown: boolean;
19
- showTableOfContents: boolean;
20
- minTableOfContentsItems: number;
21
- linkTableTitleProperties: boolean;
22
- isLinkCollectionToUrlProperty: boolean;
23
- defaultPageIcon?: string;
24
- defaultPageCover?: string;
25
- defaultPageCoverPosition?: number;
26
- zoom: any;
27
- }
28
- export interface PartialNotionContext {
29
- recordMap?: ExtendedRecordMap;
30
- components?: Partial<NotionComponents>;
31
- mapPageUrl?: MapPageUrlFn;
32
- mapImageUrl?: MapImageUrlFn;
33
- searchNotion?: SearchNotionFn;
34
- isShowingSearch?: boolean;
35
- onHideSearch?: () => void;
36
- rootPageId?: string;
37
- rootDomain?: string;
38
- fullPage?: boolean;
39
- darkMode?: boolean;
40
- previewImages?: boolean;
41
- forceCustomImages?: boolean;
42
- showCollectionViewDropdown?: boolean;
43
- linkTableTitleProperties?: boolean;
44
- isLinkCollectionToUrlProperty?: boolean;
45
- showTableOfContents?: boolean;
46
- minTableOfContentsItems?: number;
47
- defaultPageIcon?: string;
48
- defaultPageCover?: string;
49
- defaultPageCoverPosition?: number;
50
- zoom?: any;
51
- }
52
- export declare const dummyLink: ({ href, rel, target, title, ...rest }: {
53
- [x: string]: any;
54
- href: any;
55
- rel: any;
56
- target: any;
57
- title: any;
58
- }) => React.JSX.Element;
59
- export declare const NotionContextProvider: React.FC<PartialNotionContext>;
60
- export declare const NotionContextConsumer: React.Consumer<NotionContext>;
61
- export declare const useNotionContext: () => NotionContext;
1
+ import * as React from 'react';
2
+ import { ExtendedRecordMap } from '@texonom/ntypes';
3
+ import { MapImageUrlFn, MapPageUrlFn, NotionComponents, SearchNotionFn } from './types';
4
+ export interface NotionContext {
5
+ recordMap: ExtendedRecordMap;
6
+ components: NotionComponents;
7
+ mapPageUrl: MapPageUrlFn;
8
+ mapImageUrl: MapImageUrlFn;
9
+ searchNotion?: SearchNotionFn;
10
+ isShowingSearch?: boolean;
11
+ onHideSearch?: () => void;
12
+ rootPageId?: string;
13
+ rootDomain?: string;
14
+ fullPage: boolean;
15
+ darkMode: boolean;
16
+ previewImages: boolean;
17
+ forceCustomImages: boolean;
18
+ showCollectionViewDropdown: boolean;
19
+ showTableOfContents: boolean;
20
+ minTableOfContentsItems: number;
21
+ linkTableTitleProperties: boolean;
22
+ isLinkCollectionToUrlProperty: boolean;
23
+ defaultPageIcon?: string;
24
+ defaultPageCover?: string;
25
+ defaultPageCoverPosition?: number;
26
+ zoom: any;
27
+ }
28
+ export interface PartialNotionContext {
29
+ children?: React.ReactNode;
30
+ recordMap?: ExtendedRecordMap;
31
+ components?: Partial<NotionComponents>;
32
+ mapPageUrl?: MapPageUrlFn;
33
+ mapImageUrl?: MapImageUrlFn;
34
+ searchNotion?: SearchNotionFn;
35
+ isShowingSearch?: boolean;
36
+ onHideSearch?: () => void;
37
+ rootPageId?: string;
38
+ rootDomain?: string;
39
+ fullPage?: boolean;
40
+ darkMode?: boolean;
41
+ previewImages?: boolean;
42
+ forceCustomImages?: boolean;
43
+ showCollectionViewDropdown?: boolean;
44
+ linkTableTitleProperties?: boolean;
45
+ isLinkCollectionToUrlProperty?: boolean;
46
+ showTableOfContents?: boolean;
47
+ minTableOfContentsItems?: number;
48
+ defaultPageIcon?: string;
49
+ defaultPageCover?: string;
50
+ defaultPageCoverPosition?: number;
51
+ zoom?: any;
52
+ }
53
+ export declare const dummyLink: ({ href, rel, target, title, ...rest }: {
54
+ [x: string]: any;
55
+ href: any;
56
+ rel: any;
57
+ target: any;
58
+ title: any;
59
+ }) => React.JSX.Element;
60
+ export declare const NotionContextProvider: React.FC<PartialNotionContext>;
61
+ export declare const NotionContextConsumer: React.Consumer<NotionContext>;
62
+ export declare const useNotionContext: () => NotionContext;
62
63
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAMnD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAGvF,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,iBAAiB,CAAA;IAC5B,UAAU,EAAE,gBAAgB,CAAA;IAE5B,UAAU,EAAE,YAAY,CAAA;IACxB,WAAW,EAAE,aAAa,CAAA;IAC1B,YAAY,CAAC,EAAE,cAAc,CAAA;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAA;IAEzB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,OAAO,CAAA;IACtB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,0BAA0B,EAAE,OAAO,CAAA;IACnC,mBAAmB,EAAE,OAAO,C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