@texonom/nreact 1.4.7 → 1.5.1

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 (141) hide show
  1. package/build/_commonjsHelpers-bAxELxBV.js +9 -0
  2. package/build/_commonjsHelpers-bAxELxBV.js.map +1 -0
  3. package/build/asset-wrapper-CmbIDPIw.js +921 -0
  4. package/build/asset-wrapper-CmbIDPIw.js.map +1 -0
  5. package/build/block.d.ts +20 -20
  6. package/build/collection-column-title-l4hmVo49.js +99 -0
  7. package/build/collection-column-title-l4hmVo49.js.map +1 -0
  8. package/build/components/asset-wrapper.d.ts +6 -6
  9. package/build/components/asset.d.ts +7 -7
  10. package/build/components/audio.d.ts +6 -6
  11. package/build/components/checkbox.d.ts +5 -5
  12. package/build/components/eoi.d.ts +7 -7
  13. package/build/components/file.d.ts +6 -6
  14. package/build/components/google-drive.d.ts +6 -6
  15. package/build/components/graceful-image.d.ts +3 -3
  16. package/build/components/header.d.ts +15 -15
  17. package/build/components/lazy-image.d.ts +13 -13
  18. package/build/components/lite-youtube-embed.d.ts +13 -13
  19. package/build/components/page-aside.d.ts +11 -11
  20. package/build/components/page-icon.d.ts +16 -16
  21. package/build/components/page-title.d.ts +12 -12
  22. package/build/components/search-dialog.d.ts +26 -26
  23. package/build/components/search-dialog.d.ts.map +1 -1
  24. package/build/components/sync-pointer-block.d.ts +6 -6
  25. package/build/components/text.d.ts +19 -19
  26. package/build/context.d.ts +64 -64
  27. package/build/context.d.ts.map +1 -1
  28. package/build/icons/check.d.ts +3 -3
  29. package/build/icons/chevron-down-icon.d.ts +2 -2
  30. package/build/icons/clear-icon.d.ts +2 -2
  31. package/build/icons/collection-view-board.d.ts +3 -3
  32. package/build/icons/collection-view-calendar.d.ts +3 -3
  33. package/build/icons/collection-view-gallery.d.ts +3 -3
  34. package/build/icons/collection-view-icon.d.ts +8 -8
  35. package/build/icons/collection-view-list.d.ts +3 -3
  36. package/build/icons/collection-view-table.d.ts +3 -3
  37. package/build/icons/copy.d.ts +3 -3
  38. package/build/icons/default-page-icon.d.ts +2 -2
  39. package/build/icons/empty-icon.d.ts +2 -2
  40. package/build/icons/file-icon.d.ts +2 -2
  41. package/build/icons/link-icon.d.ts +2 -2
  42. package/build/icons/loading-icon.d.ts +2 -2
  43. package/build/icons/property-icon.d.ts +44 -44
  44. package/build/icons/search-icon.d.ts +2 -2
  45. package/build/icons/type-checkbox.d.ts +3 -3
  46. package/build/icons/type-date.d.ts +3 -3
  47. package/build/icons/type-email.d.ts +3 -3
  48. package/build/icons/type-file.d.ts +3 -3
  49. package/build/icons/type-formula.d.ts +3 -3
  50. package/build/icons/type-github.d.ts +3 -3
  51. package/build/icons/type-multi-select.d.ts +3 -3
  52. package/build/icons/type-number.d.ts +3 -3
  53. package/build/icons/type-person-2.d.ts +3 -3
  54. package/build/icons/type-person.d.ts +3 -3
  55. package/build/icons/type-phone-number.d.ts +3 -3
  56. package/build/icons/type-relation.d.ts +3 -3
  57. package/build/icons/type-select.d.ts +3 -3
  58. package/build/icons/type-text.d.ts +3 -3
  59. package/build/icons/type-timestamp.d.ts +3 -3
  60. package/build/icons/type-title.d.ts +3 -3
  61. package/build/icons/type-url.d.ts +3 -3
  62. package/build/index.d.ts +24 -24
  63. package/build/index.js +478 -691
  64. package/build/index.js.map +1 -0
  65. package/build/next.d.ts +1 -1
  66. package/build/renderer.d.ts +50 -50
  67. package/build/third-party/code.d.ts +7 -16
  68. package/build/third-party/code.js +174 -114
  69. package/build/third-party/code.js.map +1 -0
  70. package/build/third-party/collection-card.d.ts +3 -3
  71. package/build/third-party/collection-card.d.ts.map +1 -1
  72. package/build/third-party/collection-column-title.d.ts +5 -5
  73. package/build/third-party/collection-group.d.ts +3 -3
  74. package/build/third-party/collection-row.d.ts +7 -7
  75. package/build/third-party/collection-utils.d.ts +2 -2
  76. package/build/third-party/collection-view-board.d.ts +3 -3
  77. package/build/third-party/collection-view-gallery.d.ts +3 -3
  78. package/build/third-party/collection-view-list.d.ts +3 -3
  79. package/build/third-party/collection-view-table.d.ts +3 -3
  80. package/build/third-party/collection-view.d.ts +4 -4
  81. package/build/third-party/collection.d.ts +14 -14
  82. package/build/third-party/collection.js +2295 -3321
  83. package/build/third-party/collection.js.map +1 -0
  84. package/build/third-party/equation.d.ts +8 -8
  85. package/build/third-party/equation.js +35 -25
  86. package/build/third-party/equation.js.map +1 -0
  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/modal.js +3 -5
  90. package/build/third-party/modal.js.map +1 -0
  91. package/build/third-party/pdf.d.ts +4 -4
  92. package/build/third-party/property.d.ts +21 -21
  93. package/build/types.d.ts +93 -93
  94. package/build/utils.d.ts +6 -6
  95. package/package.json +13 -13
  96. package/readme.md +59 -0
  97. package/LICENSE +0 -21
  98. package/README.md +0 -19
  99. package/build/.tsbuildinfo +0 -1
  100. package/build/chunk-2U7I3XVC.js +0 -157
  101. package/build/chunk-72RHNPWF.js +0 -1307
  102. package/build/chunk-C6BUIPAM.js +0 -83
  103. package/build/chunk-FCO7MUK6.js +0 -83
  104. package/build/chunk-H4QYS6CQ.js +0 -1185
  105. package/build/chunk-IMWLLIUB.js +0 -1182
  106. package/build/chunk-P7HX4BAT.js +0 -156
  107. package/build/chunk-VP33CFNB.js +0 -1358
  108. package/build/chunk-YMM43AZ3.js +0 -1207
  109. package/build/dev/chunk-64UJZ76E.js +0 -1308
  110. package/build/dev/chunk-64UJZ76E.js.map +0 -1
  111. package/build/dev/chunk-ABDRHJEI.js +0 -157
  112. package/build/dev/chunk-ABDRHJEI.js.map +0 -1
  113. package/build/dev/chunk-N6EDMIQD.js +0 -1359
  114. package/build/dev/chunk-N6EDMIQD.js.map +0 -1
  115. package/build/dev/chunk-OAIRL2FN.js +0 -84
  116. package/build/dev/chunk-OAIRL2FN.js.map +0 -1
  117. package/build/dev/chunk-P3V5A3W4.js +0 -1183
  118. package/build/dev/chunk-P3V5A3W4.js.map +0 -1
  119. package/build/dev/chunk-PM5CWL6O.js +0 -158
  120. package/build/dev/chunk-PM5CWL6O.js.map +0 -1
  121. package/build/dev/chunk-Q4G2SZRD.js +0 -84
  122. package/build/dev/chunk-Q4G2SZRD.js.map +0 -1
  123. package/build/dev/chunk-SEA7YL2O.js +0 -1308
  124. package/build/dev/chunk-SEA7YL2O.js.map +0 -1
  125. package/build/dev/chunk-SVHGWLRK.js +0 -1208
  126. package/build/dev/chunk-SVHGWLRK.js.map +0 -1
  127. package/build/dev/chunk-ZJAJPWJX.js +0 -1186
  128. package/build/dev/chunk-ZJAJPWJX.js.map +0 -1
  129. package/build/dev/index.js +0 -890
  130. package/build/dev/index.js.map +0 -1
  131. package/build/dev/third-party/code.js +0 -140
  132. package/build/dev/third-party/code.js.map +0 -1
  133. package/build/dev/third-party/collection.js +0 -4382
  134. package/build/dev/third-party/collection.js.map +0 -1
  135. package/build/dev/third-party/equation.js +0 -35
  136. package/build/dev/third-party/equation.js.map +0 -1
  137. package/build/dev/third-party/modal.js +0 -8
  138. package/build/dev/third-party/modal.js.map +0 -1
  139. package/build/dev/third-party/pdf.js +0 -21
  140. package/build/dev/third-party/pdf.js.map +0 -1
  141. package/build/third-party/pdf.js +0 -20
@@ -1,14 +1,14 @@
1
- import 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 { default 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 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 { default 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 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 { default 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 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 { default 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 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 { default 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,27 +1,27 @@
1
- import React from 'react';
2
- import type { SearchParams, SearchResults } from '@texonom/ntypes';
3
- export declare class SearchDialog extends React.Component<{
4
- isOpen: boolean;
5
- rootBlockId: string;
6
- rootSpaceId: string;
7
- onClose: () => void;
8
- searchNotion: (params: SearchParams) => Promise<SearchResults>;
9
- }> {
10
- constructor(props: any);
11
- state: {
12
- isLoading: boolean;
13
- query: string;
14
- searchResult: any;
15
- searchError: any;
16
- };
17
- _inputRef: any;
18
- _search: any;
19
- componentDidMount(): void;
20
- render(): React.JSX.Element;
21
- _onAfterOpen: () => void;
22
- _onChangeQuery: (e: any) => void;
23
- _onClearQuery: () => void;
24
- _warmupSearch: () => Promise<void>;
25
- _searchImpl: () => Promise<void>;
26
- }
1
+ import { default as React } from 'react';
2
+ import { SearchParams, SearchResults } from '@texonom/ntypes';
3
+ export declare class SearchDialog extends React.Component<{
4
+ isOpen: boolean;
5
+ rootBlockId: string;
6
+ rootSpaceId: string;
7
+ onClose: () => void;
8
+ searchNotion: (params: SearchParams) => Promise<SearchResults>;
9
+ }> {
10
+ constructor(props: any);
11
+ state: {
12
+ isLoading: boolean;
13
+ query: string;
14
+ searchResult: any;
15
+ searchError: any;
16
+ };
17
+ _inputRef: any;
18
+ _search: any;
19
+ componentDidMount(): void;
20
+ render(): React.JSX.Element;
21
+ _onAfterOpen: () => void;
22
+ _onChangeQuery: (e: any) => void;
23
+ _onClearQuery: () => void;
24
+ _warmupSearch: () => Promise<void>;
25
+ _searchImpl: () => Promise<void>;
26
+ }
27
27
  //# sourceMappingURL=search-dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"search-dialog.d.ts","sourceRoot":"","sources":["../../src/components/search-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAY,MAAM,iBAAiB,CAAA;AAY5E,qBAAa,YAAa,SAAQ,KAAK,CAAC,SAAS,CAAC;IAChD,MAAM,EAAE,OAAO,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,YAAY,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,OAAO,CAAC,aAAa,CAAC,CAAA;CAC/D,CAAC;gBACY,KAAK,KAAA;IAKjB,KAAK;;;;;MAKJ;IAED,SAAS,EAAE,GAAG,CAAA;IACd,OAAO,EAAE,GAAG,CAAA;IAEZ,iBAAiB;IAMjB,MAAM;IA4FN,YAAY,aAEX;IAED,cAAc,GAAG,MAAC,UAUjB;IAED,aAAa,aAEZ;IAED,aAAa,sBAiBZ;IAED,WAAW,sBAqEV;CACF"}
1
+ {"version":3,"file":"search-dialog.d.ts","sourceRoot":"","sources":["../../src/components/search-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAY,MAAM,iBAAiB,CAAA;AAa5E,qBAAa,YAAa,SAAQ,KAAK,CAAC,SAAS,CAAC;IAChD,MAAM,EAAE,OAAO,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,YAAY,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,OAAO,CAAC,aAAa,CAAC,CAAA;CAC/D,CAAC;gBACY,KAAK,KAAA;IAKjB,KAAK;;;;;MAKJ;IAED,SAAS,EAAE,GAAG,CAAA;IACd,OAAO,EAAE,GAAG,CAAA;IAEZ,iBAAiB;IAMjB,MAAM;IA4FN,YAAY,aAEX;IAED,cAAc,GAAG,MAAC,UAUjB;IAED,aAAa,aAEZ;IAED,aAAa,sBAiBZ;IAED,WAAW,sBAqEV;CACF"}
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- import type { Block as BlockType } from '@texonom/ntypes';
3
- export declare const SyncPointerBlock: React.FC<{
4
- block: BlockType;
5
- level: number;
6
- }>;
1
+ import { default 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,20 +1,20 @@
1
- import React from 'react';
2
- import type { 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?: {
15
- [key: string]: unknown;
16
- };
17
- linkProtocol?: string;
18
- inline?: boolean;
19
- }>;
1
+ import { default 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?: {
15
+ [key: string]: unknown;
16
+ };
17
+ linkProtocol?: string;
18
+ inline?: boolean;
19
+ }>;
20
20
  //# sourceMappingURL=text.d.ts.map
@@ -1,65 +1,65 @@
1
- import React from 'react';
2
- import { MapImageUrlFn, MapPageUrlFn, NotionComponents, SearchNotionFn } from './types';
3
- import type { ExtendedRecordMap } from '@texonom/ntypes';
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
- rootSpaceId?: string;
15
- fullPage: boolean;
16
- darkMode: boolean;
17
- previewImages: boolean;
18
- forceCustomImages: boolean;
19
- showCollectionViewDropdown: boolean;
20
- showTableOfContents: boolean;
21
- minTableOfContentsItems: number;
22
- linkTableTitleProperties: boolean;
23
- isLinkCollectionToUrlProperty: boolean;
24
- defaultPageIcon?: string;
25
- defaultPageCover?: string;
26
- defaultPageCoverPosition?: number;
27
- zoom: any;
28
- }
29
- export interface PartialNotionContext {
30
- children?: React.ReactNode;
31
- recordMap?: ExtendedRecordMap;
32
- components?: Partial<NotionComponents>;
33
- mapPageUrl?: MapPageUrlFn;
34
- mapImageUrl?: MapImageUrlFn;
35
- searchNotion?: SearchNotionFn;
36
- isShowingSearch?: boolean;
37
- onHideSearch?: () => void;
38
- rootPageId?: string;
39
- rootDomain?: string;
40
- rootSpaceId?: string;
41
- fullPage?: boolean;
42
- darkMode?: boolean;
43
- previewImages?: boolean;
44
- forceCustomImages?: boolean;
45
- showCollectionViewDropdown?: boolean;
46
- linkTableTitleProperties?: boolean;
47
- isLinkCollectionToUrlProperty?: boolean;
48
- showTableOfContents?: boolean;
49
- minTableOfContentsItems?: number;
50
- defaultPageIcon?: string;
51
- defaultPageCover?: string;
52
- defaultPageCoverPosition?: number;
53
- zoom?: any;
54
- }
55
- export declare const dummyLink: ({ href, rel, target, title, ...rest }: {
56
- [x: string]: any;
57
- href: any;
58
- rel: any;
59
- target: any;
60
- title: any;
61
- }) => React.JSX.Element;
62
- export declare const NotionContextProvider: React.FC<PartialNotionContext>;
63
- export declare const NotionContextConsumer: React.Consumer<NotionContext>;
64
- export declare const useNotionContext: () => NotionContext;
1
+ import { default as React } from 'react';
2
+ import { MapImageUrlFn, MapPageUrlFn, NotionComponents, SearchNotionFn } from './types';
3
+ import { ExtendedRecordMap } from '@texonom/ntypes';
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
+ rootSpaceId?: string;
15
+ fullPage: boolean;
16
+ darkMode: boolean;
17
+ previewImages: boolean;
18
+ forceCustomImages: boolean;
19
+ showCollectionViewDropdown: boolean;
20
+ showTableOfContents: boolean;
21
+ minTableOfContentsItems: number;
22
+ linkTableTitleProperties: boolean;
23
+ isLinkCollectionToUrlProperty: boolean;
24
+ defaultPageIcon?: string;
25
+ defaultPageCover?: string;
26
+ defaultPageCoverPosition?: number;
27
+ zoom: any;
28
+ }
29
+ export interface PartialNotionContext {
30
+ children?: React.ReactNode;
31
+ recordMap?: ExtendedRecordMap;
32
+ components?: Partial<NotionComponents>;
33
+ mapPageUrl?: MapPageUrlFn;
34
+ mapImageUrl?: MapImageUrlFn;
35
+ searchNotion?: SearchNotionFn;
36
+ isShowingSearch?: boolean;
37
+ onHideSearch?: () => void;
38
+ rootPageId?: string;
39
+ rootDomain?: string;
40
+ rootSpaceId?: string;
41
+ fullPage?: boolean;
42
+ darkMode?: boolean;
43
+ previewImages?: boolean;
44
+ forceCustomImages?: boolean;
45
+ showCollectionViewDropdown?: boolean;
46
+ linkTableTitleProperties?: boolean;
47
+ isLinkCollectionToUrlProperty?: boolean;
48
+ showTableOfContents?: boolean;
49
+ minTableOfContentsItems?: number;
50
+ defaultPageIcon?: string;
51
+ defaultPageCover?: string;
52
+ defaultPageCoverPosition?: number;
53
+ zoom?: any;
54
+ }
55
+ export declare const dummyLink: ({ href, rel, target, title, ...rest }: {
56
+ [x: string]: any;
57
+ href: any;
58
+ rel: any;
59
+ target: any;
60
+ title: any;
61
+ }) => React.JSX.Element;
62
+ export declare const NotionContextProvider: React.FC<PartialNotionContext>;
63
+ export declare const NotionContextConsumer: React.Consumer<NotionContext>;
64
+ export declare const useNotionContext: () => NotionContext;
65
65
  //# sourceMappingURL=context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAEvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACxD,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,iBAAiB,CAAA;IAC5B,UAAU,EAAE,gBAAgB,CAAA;IAE5B,UAAU,EAAE,YAAY,CAAA;IACxB,WAAW,EAAE,aAAa,CA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AmB,CAAC,EAAE,OAAO,CAAA;IAC7B,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAEhC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAA;IAEjC,IAAI,CAAC,EAAE,GAAG,CAAA;CACX;AA0BD,eAAO,MAAM,SAAS,GAAI;;;;;;CAAqC,sBAAuB,CAAA;AAuFtF,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA2ChE,CAAA;AAED,eAAO,MAAM,qBAAqB,+BAAe,CAAA;AAEjD,eAAO,MAAM,gBAAgB,QAAO,aAEnC,CAAA"}
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- declare function SvgCheck(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
- export default SvgCheck;
1
+ import { default as React } from 'react';
2
+ declare function SvgCheck(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
+ export default SvgCheck;
4
4
  //# sourceMappingURL=check.d.ts.map
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- export declare const ChevronDownIcon: (props: any) => React.JSX.Element;
1
+ import { default as React } from 'react';
2
+ export declare const ChevronDownIcon: (props: any) => React.JSX.Element;
3
3
  //# sourceMappingURL=chevron-down-icon.d.ts.map
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- export declare const ClearIcon: (props: any) => React.JSX.Element;
1
+ import { default as React } from 'react';
2
+ export declare const ClearIcon: (props: any) => React.JSX.Element;
3
3
  //# sourceMappingURL=clear-icon.d.ts.map
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- declare function SvgCollectionViewBoard(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
- export default SvgCollectionViewBoard;
1
+ import { default as React } from 'react';
2
+ declare function SvgCollectionViewBoard(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
+ export default SvgCollectionViewBoard;
4
4
  //# sourceMappingURL=collection-view-board.d.ts.map
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- declare function SvgCollectionViewCalendar(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
- export default SvgCollectionViewCalendar;
1
+ import { default as React } from 'react';
2
+ declare function SvgCollectionViewCalendar(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
+ export default SvgCollectionViewCalendar;
4
4
  //# sourceMappingURL=collection-view-calendar.d.ts.map
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- declare function SvgCollectionViewGallery(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
- export default SvgCollectionViewGallery;
1
+ import { default as React } from 'react';
2
+ declare function SvgCollectionViewGallery(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
+ export default SvgCollectionViewGallery;
4
4
  //# sourceMappingURL=collection-view-gallery.d.ts.map
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- import { CollectionViewType } from '@texonom/ntypes';
3
- interface CollectionViewIconProps {
4
- className?: string;
5
- type: CollectionViewType;
6
- }
7
- export declare const CollectionViewIcon: React.FC<CollectionViewIconProps>;
8
- export {};
1
+ import { default as React } from 'react';
2
+ import { CollectionViewType } from '@texonom/ntypes';
3
+ interface CollectionViewIconProps {
4
+ className?: string;
5
+ type: CollectionViewType;
6
+ }
7
+ export declare const CollectionViewIcon: React.FC<CollectionViewIconProps>;
8
+ export {};
9
9
  //# sourceMappingURL=collection-view-icon.d.ts.map
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- declare function SvgCollectionViewList(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
- export default SvgCollectionViewList;
1
+ import { default as React } from 'react';
2
+ declare function SvgCollectionViewList(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
+ export default SvgCollectionViewList;
4
4
  //# sourceMappingURL=collection-view-list.d.ts.map
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- declare function SvgCollectionViewTable(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
- export default SvgCollectionViewTable;
1
+ import { default as React } from 'react';
2
+ declare function SvgCollectionViewTable(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
+ export default SvgCollectionViewTable;
4
4
  //# sourceMappingURL=collection-view-table.d.ts.map
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- declare function SvgCopy(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
- export default SvgCopy;
1
+ import { default as React } from 'react';
2
+ declare function SvgCopy(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
+ export default SvgCopy;
4
4
  //# sourceMappingURL=copy.d.ts.map
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- export declare const DefaultPageIcon: (props: any) => React.JSX.Element;
1
+ import { default as React } from 'react';
2
+ export declare const DefaultPageIcon: (props: any) => React.JSX.Element;
3
3
  //# sourceMappingURL=default-page-icon.d.ts.map
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- export declare const EmptyIcon: (props: any) => React.JSX.Element;
1
+ import { default as React } from 'react';
2
+ export declare const EmptyIcon: (props: any) => React.JSX.Element;
3
3
  //# sourceMappingURL=empty-icon.d.ts.map
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- export declare const FileIcon: (props: any) => React.JSX.Element;
1
+ import { default as React } from 'react';
2
+ export declare const FileIcon: (props: any) => React.JSX.Element;
3
3
  //# sourceMappingURL=file-icon.d.ts.map
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- export declare const LinkIcon: (props: any) => React.JSX.Element;
1
+ import { default as React } from 'react';
2
+ export declare const LinkIcon: (props: any) => React.JSX.Element;
3
3
  //# sourceMappingURL=link-icon.d.ts.map
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- export declare const LoadingIcon: (props: any) => React.JSX.Element;
1
+ import { default as React } from 'react';
2
+ export declare const LoadingIcon: (props: any) => React.JSX.Element;
3
3
  //# sourceMappingURL=loading-icon.d.ts.map
@@ -1,45 +1,45 @@
1
- import React from 'react';
2
- import { PropertyType } from '@texonom/ntypes';
3
- import CheckboxIcon from './type-checkbox';
4
- import DateIcon from './type-date';
5
- import EmailIcon from './type-email';
6
- import FileIcon from './type-file';
7
- import FormulaIcon from './type-formula';
8
- import MultiSelectIcon from './type-multi-select';
9
- import NumberIcon from './type-number';
10
- import PersonIcon from './type-person';
11
- import Person2Icon from './type-person-2';
12
- import PhoneNumberIcon from './type-phone-number';
13
- import RelationIcon from './type-relation';
14
- import SelectIcon from './type-select';
15
- import TextIcon from './type-text';
16
- import TimestampIcon from './type-timestamp';
17
- import TitleIcon from './type-title';
18
- import UrlIcon from './type-url';
19
- interface PropertyIconProps {
20
- className?: string;
21
- type: PropertyType;
22
- }
23
- export declare const iconMap: {
24
- title: typeof TitleIcon;
25
- text: typeof TextIcon;
26
- number: typeof NumberIcon;
27
- select: typeof SelectIcon;
28
- multi_select: typeof MultiSelectIcon;
29
- date: typeof DateIcon;
30
- person: typeof PersonIcon;
31
- file: typeof FileIcon;
32
- checkbox: typeof CheckboxIcon;
33
- url: typeof UrlIcon;
34
- email: typeof EmailIcon;
35
- phone_number: typeof PhoneNumberIcon;
36
- formula: typeof FormulaIcon;
37
- relation: typeof RelationIcon;
38
- created_time: typeof TimestampIcon;
39
- last_edited_time: typeof TimestampIcon;
40
- created_by: typeof Person2Icon;
41
- last_edited_by: typeof Person2Icon;
42
- };
43
- export declare const PropertyIcon: React.FC<PropertyIconProps>;
44
- export {};
1
+ import { default as React } from 'react';
2
+ import { PropertyType } from '@texonom/ntypes';
3
+ import { default as CheckboxIcon } from './type-checkbox';
4
+ import { default as DateIcon } from './type-date';
5
+ import { default as EmailIcon } from './type-email';
6
+ import { default as FileIcon } from './type-file';
7
+ import { default as FormulaIcon } from './type-formula';
8
+ import { default as MultiSelectIcon } from './type-multi-select';
9
+ import { default as NumberIcon } from './type-number';
10
+ import { default as PersonIcon } from './type-person';
11
+ import { default as Person2Icon } from './type-person-2';
12
+ import { default as PhoneNumberIcon } from './type-phone-number';
13
+ import { default as RelationIcon } from './type-relation';
14
+ import { default as SelectIcon } from './type-select';
15
+ import { default as TextIcon } from './type-text';
16
+ import { default as TimestampIcon } from './type-timestamp';
17
+ import { default as TitleIcon } from './type-title';
18
+ import { default as UrlIcon } from './type-url';
19
+ interface PropertyIconProps {
20
+ className?: string;
21
+ type: PropertyType;
22
+ }
23
+ export declare const iconMap: {
24
+ title: typeof TitleIcon;
25
+ text: typeof TextIcon;
26
+ number: typeof NumberIcon;
27
+ select: typeof SelectIcon;
28
+ multi_select: typeof MultiSelectIcon;
29
+ date: typeof DateIcon;
30
+ person: typeof PersonIcon;
31
+ file: typeof FileIcon;
32
+ checkbox: typeof CheckboxIcon;
33
+ url: typeof UrlIcon;
34
+ email: typeof EmailIcon;
35
+ phone_number: typeof PhoneNumberIcon;
36
+ formula: typeof FormulaIcon;
37
+ relation: typeof RelationIcon;
38
+ created_time: typeof TimestampIcon;
39
+ last_edited_time: typeof TimestampIcon;
40
+ created_by: typeof Person2Icon;
41
+ last_edited_by: typeof Person2Icon;
42
+ };
43
+ export declare const PropertyIcon: React.FC<PropertyIconProps>;
44
+ export {};
45
45
  //# sourceMappingURL=property-icon.d.ts.map
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- export declare const SearchIcon: (props: any) => React.JSX.Element;
1
+ import { default as React } from 'react';
2
+ export declare const SearchIcon: (props: any) => React.JSX.Element;
3
3
  //# sourceMappingURL=search-icon.d.ts.map