Skip to content

Commit 34956d3

Browse files
💔
1 parent d7b9033 commit 34956d3

File tree

9 files changed

+30
-10
lines changed

9 files changed

+30
-10
lines changed

examples/full/lib/notion.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import { Client } from '@notionhq/client'
22
import { NotionAPI } from 'notion-client'
33
import { NotionCompatAPI } from 'notion-compat'
4-
import { type ExtendedRecordMap, type SearchParams, type SearchResults } from 'notion-types'
4+
import {
5+
type ExtendedRecordMap,
6+
type SearchParams,
7+
type SearchResults
8+
} from 'notion-types'
59

610
import { previewImagesEnabled, useOfficialNotionAPI } from './config'
711
import { getPreviewImageMap } from './preview-images'

examples/full/lib/preview-images.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import got from 'got'
22
import lqip from 'lqip-modern'
3-
import { type ExtendedRecordMap, type PreviewImage, type PreviewImageMap } from 'notion-types'
3+
import {
4+
type ExtendedRecordMap,
5+
type PreviewImage,
6+
type PreviewImageMap
7+
} from 'notion-types'
48
import { getPageImageUrls } from 'notion-utils'
59
import pMap from 'p-map'
610
import pMemoize from 'p-memoize'

examples/full/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"notion-client": "workspace:*",
2424
"notion-compat": "workspace:*",
2525
"notion-utils": "workspace:*",
26+
"notion-types": "workspace:*",
2627
"p-map": "^7.0.2",
2728
"p-memoize": "^7.1.1",
2829
"react": "^18.3.1",

examples/minimal/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"next": "^15.0.2",
1616
"notion-client": "workspace:*",
1717
"notion-utils": "workspace:*",
18+
"notion-types": "workspace:*",
1819
"react": "^18.3.1",
1920
"react-dom": "^18.3.1",
2021
"react-notion-x": "workspace:*"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"node": ">=18"
1212
},
1313
"scripts": {
14-
"build": "turbo build",
14+
"build": "turbo build --filter='./packages/*'",
1515
"dev": "turbo dev --concurrency 50 --continue",
1616
"clean": "turbo clean",
1717
"test": "turbo test",

packages/notion-utils/src/estimate-page-read-time.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { type Block, type ExtendedRecordMap, type PageBlock } from 'notion-types'
1+
import {
2+
type Block,
3+
type ExtendedRecordMap,
4+
type PageBlock
5+
} from 'notion-types'
26

37
import { getBlockTitle } from './get-block-title'
48
import { getPageTableOfContents } from './get-page-table-of-contents'

packages/notion-utils/src/get-block-icon.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { type Block, type ExtendedRecordMap, type PageBlock } from 'notion-types'
1+
import {
2+
type Block,
3+
type ExtendedRecordMap,
4+
type PageBlock
5+
} from 'notion-types'
26

37
import { getBlockCollectionId } from './get-block-collection-id'
48

packages/notion-utils/src/is-url.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
2-
3-
4-
5-
export {default as isUrl} from 'is-url-superb'
1+
export { default as isUrl } from 'is-url-superb'

pnpm-lock.yaml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)