@texonom/nreact 1.4.5 → 1.4.7
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/build/.tsbuildinfo +1 -1
- package/build/block.d.ts +20 -20
- package/build/chunk-2U7I3XVC.js +157 -157
- package/build/chunk-72RHNPWF.js +1307 -1307
- package/build/chunk-FCO7MUK6.js +83 -83
- package/build/chunk-H4QYS6CQ.js +1185 -0
- package/build/chunk-IMWLLIUB.js +1182 -1182
- package/build/chunk-VP33CFNB.js +1358 -1358
- package/build/chunk-YMM43AZ3.js +1207 -0
- package/build/components/asset-wrapper.d.ts +6 -6
- package/build/components/asset.d.ts +7 -7
- package/build/components/audio.d.ts +6 -6
- package/build/components/checkbox.d.ts +5 -5
- package/build/components/eoi.d.ts +7 -7
- package/build/components/file.d.ts +6 -6
- package/build/components/google-drive.d.ts +6 -6
- package/build/components/graceful-image.d.ts +3 -3
- package/build/components/header.d.ts +15 -15
- package/build/components/lazy-image.d.ts +13 -13
- package/build/components/lite-youtube-embed.d.ts +13 -13
- package/build/components/page-aside.d.ts +11 -11
- package/build/components/page-icon.d.ts +16 -16
- package/build/components/page-title.d.ts +12 -12
- package/build/components/search-dialog.d.ts +26 -26
- package/build/components/sync-pointer-block.d.ts +6 -6
- package/build/components/text.d.ts +19 -19
- package/build/context.d.ts +64 -63
- package/build/context.d.ts.map +1 -1
- package/build/dev/chunk-64UJZ76E.js +1307 -1307
- package/build/dev/chunk-N6EDMIQD.js +1358 -1358
- package/build/dev/chunk-P3V5A3W4.js +1182 -1182
- package/build/dev/chunk-PM5CWL6O.js +157 -157
- package/build/dev/chunk-Q4G2SZRD.js +83 -83
- package/build/dev/chunk-SEA7YL2O.js +1307 -1307
- package/build/dev/chunk-SVHGWLRK.js +1208 -0
- package/build/dev/chunk-SVHGWLRK.js.map +1 -0
- package/build/dev/chunk-ZJAJPWJX.js +1186 -0
- package/build/dev/chunk-ZJAJPWJX.js.map +1 -0
- package/build/dev/index.js +4 -1
- package/build/dev/index.js.map +1 -1
- package/build/dev/third-party/code.js +1 -1
- package/build/dev/third-party/collection.js +1 -1
- package/build/dev/third-party/equation.js +1 -1
- package/build/icons/check.d.ts +3 -3
- package/build/icons/chevron-down-icon.d.ts +2 -2
- package/build/icons/clear-icon.d.ts +2 -2
- package/build/icons/collection-view-board.d.ts +3 -3
- package/build/icons/collection-view-calendar.d.ts +3 -3
- package/build/icons/collection-view-gallery.d.ts +3 -3
- package/build/icons/collection-view-icon.d.ts +8 -8
- package/build/icons/collection-view-list.d.ts +3 -3
- package/build/icons/collection-view-table.d.ts +3 -3
- package/build/icons/copy.d.ts +3 -3
- package/build/icons/default-page-icon.d.ts +2 -2
- package/build/icons/empty-icon.d.ts +2 -2
- package/build/icons/file-icon.d.ts +2 -2
- package/build/icons/link-icon.d.ts +2 -2
- package/build/icons/loading-icon.d.ts +2 -2
- package/build/icons/property-icon.d.ts +44 -44
- package/build/icons/search-icon.d.ts +2 -2
- package/build/icons/type-checkbox.d.ts +3 -3
- package/build/icons/type-date.d.ts +3 -3
- package/build/icons/type-email.d.ts +3 -3
- package/build/icons/type-file.d.ts +3 -3
- package/build/icons/type-formula.d.ts +3 -3
- package/build/icons/type-github.d.ts +3 -3
- package/build/icons/type-multi-select.d.ts +3 -3
- package/build/icons/type-number.d.ts +3 -3
- package/build/icons/type-person-2.d.ts +3 -3
- package/build/icons/type-person.d.ts +3 -3
- package/build/icons/type-phone-number.d.ts +3 -3
- package/build/icons/type-relation.d.ts +3 -3
- package/build/icons/type-select.d.ts +3 -3
- package/build/icons/type-text.d.ts +3 -3
- package/build/icons/type-timestamp.d.ts +3 -3
- package/build/icons/type-title.d.ts +3 -3
- package/build/icons/type-url.d.ts +3 -3
- package/build/index.d.ts +24 -24
- package/build/index.js +4 -1
- package/build/next.d.ts.map +1 -1
- package/build/renderer.d.ts +50 -49
- package/build/renderer.d.ts.map +1 -1
- package/build/third-party/code.d.ts +16 -16
- package/build/third-party/code.js +1 -1
- package/build/third-party/collection-card.d.ts +3 -3
- package/build/third-party/collection-column-title.d.ts +5 -5
- package/build/third-party/collection-group.d.ts +3 -3
- package/build/third-party/collection-row.d.ts +7 -7
- package/build/third-party/collection-utils.d.ts +2 -2
- package/build/third-party/collection-view-board.d.ts +3 -3
- package/build/third-party/collection-view-gallery.d.ts +3 -3
- package/build/third-party/collection-view-list.d.ts +3 -3
- package/build/third-party/collection-view-table.d.ts +3 -3
- package/build/third-party/collection-view.d.ts +4 -4
- package/build/third-party/collection.d.ts +14 -14
- package/build/third-party/collection.js +1 -1
- package/build/third-party/equation.d.ts +8 -8
- package/build/third-party/equation.js +1 -1
- package/build/third-party/eval-formula.d.ts +20 -20
- package/build/third-party/modal.d.ts +2 -2
- package/build/third-party/pdf.d.ts +4 -4
- package/build/third-party/property.d.ts +21 -21
- package/build/types.d.ts +93 -93
- package/build/utils.d.ts +6 -6
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { NotionContext } from '../context';
|
|
3
|
-
import { PropertyImplMemo } from './property';
|
|
4
|
-
import type { PageBlock, CollectionViewBlock, CollectionViewPageBlock } from '@texonom/ntypes';
|
|
5
|
-
export declare const Collection: React.FC<{
|
|
6
|
-
block: CollectionViewBlock | CollectionViewPageBlock | PageBlock;
|
|
7
|
-
className?: string;
|
|
8
|
-
ctx: NotionContext;
|
|
9
|
-
}>;
|
|
10
|
-
declare const CollectionViewBlock: React.FC<{
|
|
11
|
-
block: CollectionViewBlock | CollectionViewPageBlock;
|
|
12
|
-
className?: string;
|
|
13
|
-
}>;
|
|
14
|
-
export { PropertyImplMemo as Property };
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NotionContext } from '../context';
|
|
3
|
+
import { PropertyImplMemo } from './property';
|
|
4
|
+
import type { PageBlock, CollectionViewBlock, CollectionViewPageBlock } from '@texonom/ntypes';
|
|
5
|
+
export declare const Collection: React.FC<{
|
|
6
|
+
block: CollectionViewBlock | CollectionViewPageBlock | PageBlock;
|
|
7
|
+
className?: string;
|
|
8
|
+
ctx: NotionContext;
|
|
9
|
+
}>;
|
|
10
|
+
declare const CollectionViewBlock: React.FC<{
|
|
11
|
+
block: CollectionViewBlock | CollectionViewPageBlock;
|
|
12
|
+
className?: string;
|
|
13
|
+
}>;
|
|
14
|
+
export { PropertyImplMemo as Property };
|
|
15
15
|
//# sourceMappingURL=collection.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EquationBlock } from '@texonom/ntypes';
|
|
3
|
-
export declare const Equation: React.FC<{
|
|
4
|
-
block: EquationBlock;
|
|
5
|
-
math?: string;
|
|
6
|
-
inline?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
}>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EquationBlock } from '@texonom/ntypes';
|
|
3
|
+
export declare const Equation: React.FC<{
|
|
4
|
+
block: EquationBlock;
|
|
5
|
+
math?: string;
|
|
6
|
+
inline?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
}>;
|
|
9
9
|
//# sourceMappingURL=equation.d.ts.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type { PropertyMap, CollectionPropertySchemaMap, Formula, FormulaResult } from '@texonom/ntypes';
|
|
2
|
-
export interface EvalFormulaContext {
|
|
3
|
-
properties: PropertyMap;
|
|
4
|
-
schema: CollectionPropertySchemaMap;
|
|
5
|
-
endDate?: boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Evaluates a Notion formula expression to a result value.
|
|
9
|
-
*
|
|
10
|
-
* All built-in functions and operators are supported.
|
|
11
|
-
*
|
|
12
|
-
* NOTE: this needs a lot more testing, especially around covering all the different
|
|
13
|
-
* function types and coercing different property values correctly.
|
|
14
|
-
*
|
|
15
|
-
* It does work for many of our test cases, however.
|
|
16
|
-
*
|
|
17
|
-
* @param formula - Formula to evaluate.
|
|
18
|
-
* @param context - Collection context containing property schema and values.
|
|
19
|
-
*/
|
|
20
|
-
export declare function evalFormula(formula: Formula, context: EvalFormulaContext): FormulaResult;
|
|
1
|
+
import type { PropertyMap, CollectionPropertySchemaMap, Formula, FormulaResult } from '@texonom/ntypes';
|
|
2
|
+
export interface EvalFormulaContext {
|
|
3
|
+
properties: PropertyMap;
|
|
4
|
+
schema: CollectionPropertySchemaMap;
|
|
5
|
+
endDate?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Evaluates a Notion formula expression to a result value.
|
|
9
|
+
*
|
|
10
|
+
* All built-in functions and operators are supported.
|
|
11
|
+
*
|
|
12
|
+
* NOTE: this needs a lot more testing, especially around covering all the different
|
|
13
|
+
* function types and coercing different property values correctly.
|
|
14
|
+
*
|
|
15
|
+
* It does work for many of our test cases, however.
|
|
16
|
+
*
|
|
17
|
+
* @param formula - Formula to evaluate.
|
|
18
|
+
* @param context - Collection context containing property schema and values.
|
|
19
|
+
*/
|
|
20
|
+
export declare function evalFormula(formula: Formula, context: EvalFormulaContext): FormulaResult;
|
|
21
21
|
//# sourceMappingURL=eval-formula.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Modal from 'react-modal';
|
|
2
|
-
export { Modal };
|
|
1
|
+
import Modal from 'react-modal';
|
|
2
|
+
export { Modal };
|
|
3
3
|
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const Pdf: React.FC<{
|
|
3
|
-
file: string;
|
|
4
|
-
}>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Pdf: React.FC<{
|
|
3
|
+
file: string;
|
|
4
|
+
}>;
|
|
5
5
|
//# sourceMappingURL=pdf.d.ts.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { CollectionPropertySchema, Decoration, Block, Collection } from '@texonom/ntypes';
|
|
3
|
-
export interface IPropertyProps {
|
|
4
|
-
propertyId?: string;
|
|
5
|
-
schema?: CollectionPropertySchema;
|
|
6
|
-
data?: Decoration[];
|
|
7
|
-
block?: Block;
|
|
8
|
-
collection?: Collection;
|
|
9
|
-
inline?: boolean;
|
|
10
|
-
linkToTitlePage?: boolean;
|
|
11
|
-
pageHeader?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Renders a single value of structured Notion data according to its schema.
|
|
15
|
-
*
|
|
16
|
-
* This corresponds to rendering the content of a single cell in a table.
|
|
17
|
-
* Property rendering is re-used across all the different types of collection views.
|
|
18
|
-
*/
|
|
19
|
-
export declare const Property: React.FC<IPropertyProps>;
|
|
20
|
-
export declare const PropertyImpl: React.FC<IPropertyProps>;
|
|
21
|
-
export declare const PropertyImplMemo: React.NamedExoticComponent<IPropertyProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CollectionPropertySchema, Decoration, Block, Collection } from '@texonom/ntypes';
|
|
3
|
+
export interface IPropertyProps {
|
|
4
|
+
propertyId?: string;
|
|
5
|
+
schema?: CollectionPropertySchema;
|
|
6
|
+
data?: Decoration[];
|
|
7
|
+
block?: Block;
|
|
8
|
+
collection?: Collection;
|
|
9
|
+
inline?: boolean;
|
|
10
|
+
linkToTitlePage?: boolean;
|
|
11
|
+
pageHeader?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Renders a single value of structured Notion data according to its schema.
|
|
15
|
+
*
|
|
16
|
+
* This corresponds to rendering the content of a single cell in a table.
|
|
17
|
+
* Property rendering is re-used across all the different types of collection views.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Property: React.FC<IPropertyProps>;
|
|
20
|
+
export declare const PropertyImpl: React.FC<IPropertyProps>;
|
|
21
|
+
export declare const PropertyImplMemo: React.NamedExoticComponent<IPropertyProps>;
|
|
22
22
|
//# sourceMappingURL=property.d.ts.map
|
package/build/types.d.ts
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ExtendedRecordMap, Block, SearchParams, SearchResults, CollectionView, CollectionQueryResult, PageBlock, CollectionCardCover, CollectionCardCoverSize, CollectionCardCoverAspect, PropertyID, Collection, CodeBlock } from '@texonom/ntypes';
|
|
3
|
-
export type MapPageUrlFn = (pageId: string, recordMap?: ExtendedRecordMap | undefined) => string;
|
|
4
|
-
export type MapImageUrlFn = (url: string, block: Block) => string;
|
|
5
|
-
export type SearchNotionFn = (params: SearchParams) => Promise<SearchResults>;
|
|
6
|
-
export type ComponentOverrideFn = (props: any, defaultValueFn: () => React.ReactNode) => any;
|
|
7
|
-
export interface NotionComponents {
|
|
8
|
-
Image: React.ComponentType<{
|
|
9
|
-
[prop: string]: unknown;
|
|
10
|
-
}>;
|
|
11
|
-
Link: React.ComponentType<{
|
|
12
|
-
[prop: string]: unknown;
|
|
13
|
-
}>;
|
|
14
|
-
PageLink: React.ComponentType<{
|
|
15
|
-
[prop: string]: unknown;
|
|
16
|
-
}>;
|
|
17
|
-
Checkbox: React.FC<{
|
|
18
|
-
isChecked: boolean;
|
|
19
|
-
blockId: string;
|
|
20
|
-
}>;
|
|
21
|
-
Code: React.ComponentType<{
|
|
22
|
-
block: CodeBlock;
|
|
23
|
-
}>;
|
|
24
|
-
Equation: any;
|
|
25
|
-
Callout?: React.ComponentType<{
|
|
26
|
-
[prop: string]: unknown;
|
|
27
|
-
}>;
|
|
28
|
-
Collection: any;
|
|
29
|
-
Property?: React.ComponentType<{
|
|
30
|
-
[prop: string]: unknown;
|
|
31
|
-
}>;
|
|
32
|
-
propertyTextValue: ComponentOverrideFn;
|
|
33
|
-
propertySelectValue: ComponentOverrideFn;
|
|
34
|
-
propertyRelationValue: ComponentOverrideFn;
|
|
35
|
-
propertyFormulaValue: ComponentOverrideFn;
|
|
36
|
-
propertyTitleValue: ComponentOverrideFn;
|
|
37
|
-
propertyPersonValue: ComponentOverrideFn;
|
|
38
|
-
propertyFileValue: ComponentOverrideFn;
|
|
39
|
-
propertyCheckboxValue: ComponentOverrideFn;
|
|
40
|
-
propertyUrlValue: ComponentOverrideFn;
|
|
41
|
-
propertyEmailValue: ComponentOverrideFn;
|
|
42
|
-
propertyPhoneNumberValue: ComponentOverrideFn;
|
|
43
|
-
propertyNumberValue: ComponentOverrideFn;
|
|
44
|
-
propertyLastEditedTimeValue: ComponentOverrideFn;
|
|
45
|
-
propertyCreatedTimeValue: ComponentOverrideFn;
|
|
46
|
-
propertyDateValue: ComponentOverrideFn;
|
|
47
|
-
Pdf: React.ComponentType<{
|
|
48
|
-
[prop: string]: unknown;
|
|
49
|
-
}>;
|
|
50
|
-
Tweet: React.ComponentType<{
|
|
51
|
-
[prop: string]: unknown;
|
|
52
|
-
}>;
|
|
53
|
-
Modal: React.ComponentType<{
|
|
54
|
-
[prop: string]: unknown;
|
|
55
|
-
}>;
|
|
56
|
-
Embed: React.ComponentType<{
|
|
57
|
-
[prop: string]: unknown;
|
|
58
|
-
}>;
|
|
59
|
-
Header: React.ComponentType<{
|
|
60
|
-
[prop: string]: unknown;
|
|
61
|
-
}>;
|
|
62
|
-
nextImage?: any;
|
|
63
|
-
nextLink?: any;
|
|
64
|
-
}
|
|
65
|
-
export interface CollectionViewProps {
|
|
66
|
-
collection: Collection;
|
|
67
|
-
collectionView: CollectionView;
|
|
68
|
-
collectionData: CollectionQueryResult;
|
|
69
|
-
padding?: number;
|
|
70
|
-
width?: number;
|
|
71
|
-
}
|
|
72
|
-
export interface CollectionCardProps {
|
|
73
|
-
collection: Collection;
|
|
74
|
-
block: PageBlock;
|
|
75
|
-
cover: CollectionCardCover;
|
|
76
|
-
coverSize: CollectionCardCoverSize;
|
|
77
|
-
coverAspect: CollectionCardCoverAspect;
|
|
78
|
-
properties?: Array<{
|
|
79
|
-
property: PropertyID;
|
|
80
|
-
visible: boolean;
|
|
81
|
-
}>;
|
|
82
|
-
className?: string;
|
|
83
|
-
}
|
|
84
|
-
export interface CollectionGroupProps {
|
|
85
|
-
collection: Collection;
|
|
86
|
-
collectionViewComponent: React.ElementType;
|
|
87
|
-
collectionGroup: any;
|
|
88
|
-
hidden: boolean;
|
|
89
|
-
schema: any;
|
|
90
|
-
value: any;
|
|
91
|
-
summaryProps: any;
|
|
92
|
-
detailsProps: any;
|
|
93
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ExtendedRecordMap, Block, SearchParams, SearchResults, CollectionView, CollectionQueryResult, PageBlock, CollectionCardCover, CollectionCardCoverSize, CollectionCardCoverAspect, PropertyID, Collection, CodeBlock } from '@texonom/ntypes';
|
|
3
|
+
export type MapPageUrlFn = (pageId: string, recordMap?: ExtendedRecordMap | undefined) => string;
|
|
4
|
+
export type MapImageUrlFn = (url: string, block: Block) => string;
|
|
5
|
+
export type SearchNotionFn = (params: SearchParams) => Promise<SearchResults>;
|
|
6
|
+
export type ComponentOverrideFn = (props: any, defaultValueFn: () => React.ReactNode) => any;
|
|
7
|
+
export interface NotionComponents {
|
|
8
|
+
Image: React.ComponentType<{
|
|
9
|
+
[prop: string]: unknown;
|
|
10
|
+
}>;
|
|
11
|
+
Link: React.ComponentType<{
|
|
12
|
+
[prop: string]: unknown;
|
|
13
|
+
}>;
|
|
14
|
+
PageLink: React.ComponentType<{
|
|
15
|
+
[prop: string]: unknown;
|
|
16
|
+
}>;
|
|
17
|
+
Checkbox: React.FC<{
|
|
18
|
+
isChecked: boolean;
|
|
19
|
+
blockId: string;
|
|
20
|
+
}>;
|
|
21
|
+
Code: React.ComponentType<{
|
|
22
|
+
block: CodeBlock;
|
|
23
|
+
}>;
|
|
24
|
+
Equation: any;
|
|
25
|
+
Callout?: React.ComponentType<{
|
|
26
|
+
[prop: string]: unknown;
|
|
27
|
+
}>;
|
|
28
|
+
Collection: any;
|
|
29
|
+
Property?: React.ComponentType<{
|
|
30
|
+
[prop: string]: unknown;
|
|
31
|
+
}>;
|
|
32
|
+
propertyTextValue: ComponentOverrideFn;
|
|
33
|
+
propertySelectValue: ComponentOverrideFn;
|
|
34
|
+
propertyRelationValue: ComponentOverrideFn;
|
|
35
|
+
propertyFormulaValue: ComponentOverrideFn;
|
|
36
|
+
propertyTitleValue: ComponentOverrideFn;
|
|
37
|
+
propertyPersonValue: ComponentOverrideFn;
|
|
38
|
+
propertyFileValue: ComponentOverrideFn;
|
|
39
|
+
propertyCheckboxValue: ComponentOverrideFn;
|
|
40
|
+
propertyUrlValue: ComponentOverrideFn;
|
|
41
|
+
propertyEmailValue: ComponentOverrideFn;
|
|
42
|
+
propertyPhoneNumberValue: ComponentOverrideFn;
|
|
43
|
+
propertyNumberValue: ComponentOverrideFn;
|
|
44
|
+
propertyLastEditedTimeValue: ComponentOverrideFn;
|
|
45
|
+
propertyCreatedTimeValue: ComponentOverrideFn;
|
|
46
|
+
propertyDateValue: ComponentOverrideFn;
|
|
47
|
+
Pdf: React.ComponentType<{
|
|
48
|
+
[prop: string]: unknown;
|
|
49
|
+
}>;
|
|
50
|
+
Tweet: React.ComponentType<{
|
|
51
|
+
[prop: string]: unknown;
|
|
52
|
+
}>;
|
|
53
|
+
Modal: React.ComponentType<{
|
|
54
|
+
[prop: string]: unknown;
|
|
55
|
+
}>;
|
|
56
|
+
Embed: React.ComponentType<{
|
|
57
|
+
[prop: string]: unknown;
|
|
58
|
+
}>;
|
|
59
|
+
Header: React.ComponentType<{
|
|
60
|
+
[prop: string]: unknown;
|
|
61
|
+
}>;
|
|
62
|
+
nextImage?: any;
|
|
63
|
+
nextLink?: any;
|
|
64
|
+
}
|
|
65
|
+
export interface CollectionViewProps {
|
|
66
|
+
collection: Collection;
|
|
67
|
+
collectionView: CollectionView;
|
|
68
|
+
collectionData: CollectionQueryResult;
|
|
69
|
+
padding?: number;
|
|
70
|
+
width?: number;
|
|
71
|
+
}
|
|
72
|
+
export interface CollectionCardProps {
|
|
73
|
+
collection: Collection;
|
|
74
|
+
block: PageBlock;
|
|
75
|
+
cover: CollectionCardCover;
|
|
76
|
+
coverSize: CollectionCardCoverSize;
|
|
77
|
+
coverAspect: CollectionCardCoverAspect;
|
|
78
|
+
properties?: Array<{
|
|
79
|
+
property: PropertyID;
|
|
80
|
+
visible: boolean;
|
|
81
|
+
}>;
|
|
82
|
+
className?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface CollectionGroupProps {
|
|
85
|
+
collection: Collection;
|
|
86
|
+
collectionViewComponent: React.ElementType;
|
|
87
|
+
collectionGroup: any;
|
|
88
|
+
hidden: boolean;
|
|
89
|
+
schema: any;
|
|
90
|
+
value: any;
|
|
91
|
+
summaryProps: any;
|
|
92
|
+
detailsProps: any;
|
|
93
|
+
}
|
|
94
94
|
//# sourceMappingURL=types.d.ts.map
|
package/build/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BlockMap } from '@texonom/ntypes';
|
|
2
|
-
export { isUrl, formatDate, formatNotionDateTime } from '@texonom/nutils';
|
|
3
|
-
export declare const getListNumber: (blockId: string, blockMap: BlockMap) => number;
|
|
4
|
-
export declare const getHashFragmentValue: (url: string) => string;
|
|
5
|
-
export declare const isBrowser: boolean;
|
|
6
|
-
export declare const getYoutubeId: (url: string) => string | null;
|
|
1
|
+
import { BlockMap } from '@texonom/ntypes';
|
|
2
|
+
export { isUrl, formatDate, formatNotionDateTime } from '@texonom/nutils';
|
|
3
|
+
export declare const getListNumber: (blockId: string, blockMap: BlockMap) => number;
|
|
4
|
+
export declare const getHashFragmentValue: (url: string) => string;
|
|
5
|
+
export declare const isBrowser: boolean;
|
|
6
|
+
export declare const getYoutubeId: (url: string) => string | null;
|
|
7
7
|
//# sourceMappingURL=utils.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@texonom/nreact",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Fast and accurate React renderer for Notion.",
|
|
6
6
|
"repository": "texonom/notion-node",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"react-modal": "^3.16.3",
|
|
29
29
|
"react-pdf": "^9.2.1",
|
|
30
30
|
"react-use": "^17.6.0",
|
|
31
|
-
"@texonom/ntypes": "^1.4.
|
|
32
|
-
"@texonom/nutils": "^1.4.
|
|
31
|
+
"@texonom/ntypes": "^1.4.7",
|
|
32
|
+
"@texonom/nutils": "^1.4.7"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/lodash.throttle": "^4.1.9",
|