rotion 1.7.0 → 1.9.0
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/dist/ui/cjs/index.js +1 -1
- package/dist/ui/cjs/index.js.map +1 -1
- package/dist/ui/cjs/types/ui/components/Gallery/Gallery.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Gallery/GalleryCard/GalleryLinkedCard.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Gallery/GallerySelectField/LinkedTag.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/List/List.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/List/ListHandler.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/List/ListSelectField/LinkedTagIfLinked.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Page/BulletedListBlock/BulletedListBlock.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Page/CalloutBlock/CalloutBlock.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.types.d.ts +0 -2
- package/dist/ui/cjs/types/ui/components/Page/ChildPageBlock/ChildPageBlock.types.d.ts +0 -2
- package/dist/ui/cjs/types/ui/components/Page/ColumnListBlock/ColumnListBlock.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Page/ListBlocks/ListBlocks.types.d.ts +0 -2
- package/dist/ui/cjs/types/ui/components/Page/NumberedListBlock/NumberedListBlock.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Page/Page.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Page/PageHandler.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Page/PdfBlock/Pdf.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Table/Table.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Table/TableHandler.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.types.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/lib.d.ts +0 -1
- package/dist/ui/cjs/types/ui/components/types.d.ts +0 -1
- package/dist/ui/esm/index.js +1 -1
- package/dist/ui/esm/index.js.map +1 -1
- package/dist/ui/esm/types/ui/components/Gallery/Gallery.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Gallery/GalleryCard/GalleryLinkedCard.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Gallery/GallerySelectField/LinkedTag.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/List/List.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/List/ListHandler.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/List/ListSelectField/LinkedTagIfLinked.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Page/BulletedListBlock/BulletedListBlock.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Page/CalloutBlock/CalloutBlock.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.types.d.ts +0 -2
- package/dist/ui/esm/types/ui/components/Page/ChildPageBlock/ChildPageBlock.types.d.ts +0 -2
- package/dist/ui/esm/types/ui/components/Page/ColumnListBlock/ColumnListBlock.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Page/ListBlocks/ListBlocks.types.d.ts +0 -2
- package/dist/ui/esm/types/ui/components/Page/NumberedListBlock/NumberedListBlock.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Page/Page.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Page/PageHandler.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Page/PdfBlock/Pdf.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Table/Table.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Table/TableHandler.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.types.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/lib.d.ts +0 -1
- package/dist/ui/esm/types/ui/components/types.d.ts +0 -1
- package/dist/ui/types.d.ts +1 -1
- package/dist/ui/umd/index.js +1 -1
- package/dist/ui/umd/index.js.map +1 -1
- package/dist/ui/umd/types/ui/components/Gallery/Gallery.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Gallery/GalleryCard/GalleryHandler.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Gallery/GalleryCard/GalleryLinkedCard.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Gallery/GalleryMultiSelectField/LinkedTag.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Gallery/GallerySelectField/LinkedTag.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/List/List.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/List/ListHandler.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/List/ListMultiSelectField/LinkedTagIfLinked.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/List/ListSelectField/LinkedTagIfLinked.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/BreadcrumbBlock.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/Breadcrumbs.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Page/BreadcrumbBlock/LinkedBreadcrumbIfLinked.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Page/BulletedListBlock/BulletedListBlock.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Page/CalloutBlock/CalloutBlock.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Page/ChildDatabaseBlock/ChildDatabaseBlock.types.d.ts +0 -2
- package/dist/ui/umd/types/ui/components/Page/ChildPageBlock/ChildPageBlock.types.d.ts +0 -2
- package/dist/ui/umd/types/ui/components/Page/ColumnListBlock/ColumnListBlock.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Page/ListBlocks/ListBlocks.types.d.ts +0 -2
- package/dist/ui/umd/types/ui/components/Page/NumberedListBlock/NumberedListBlock.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Page/Page.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Page/PageHandler.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Page/PdfBlock/Pdf.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Page/TextBlock/TextBlock.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Table/Table.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Table/TableHandler.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Table/TableMultiSelectField/LinkedTagIfLinked.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/Table/TableSelectField/LinkedTagIfLinked.types.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/lib.d.ts +0 -1
- package/dist/ui/umd/types/ui/components/types.d.ts +0 -1
- package/package.json +45 -43
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { ParagraphBlockObjectResponseEx, Heading1BlockObjectResponse, Heading2BlockObjectResponse, Heading3BlockObjectResponse, QuoteBlockObjectResponse, DividerBlockObjectResponse } from '../../../../exporter';
|
|
3
2
|
export interface TextBlockProps {
|
|
4
3
|
tag: keyof JSX.IntrinsicElements;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rotion",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "linyows/rotion",
|
|
6
6
|
"description": "This is react components that uses the notion API to display the notion's database and page.",
|
|
@@ -48,77 +48,79 @@
|
|
|
48
48
|
"ui:build": "npm run ui:lint && npm run ui:typecheck && npm run ui:rollup",
|
|
49
49
|
"ui:rollup": "rollup --config rollup.config.ts --configPlugin typescript",
|
|
50
50
|
"ui:typecheck": "tsc -p src/ui/tsconfig.typecheck.json",
|
|
51
|
-
"ui:lint": "eslint ./src/ui/components
|
|
51
|
+
"ui:lint": "eslint ./src/ui/components -c ./src/ui/eslint.config.mjs",
|
|
52
52
|
"ui:fixtures": "jq '.' website/.cache/notion.databases.query-* | sed 's/?.*\",/\",/g' > src/ui/fixtures/fetch_database_response.json",
|
|
53
53
|
"story": "storybook dev -p 6006 --ci",
|
|
54
54
|
"build-story": "storybook build",
|
|
55
55
|
"prepublishOnly": "npm install && npm run test && npm run build"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"react": "^17.0.2 || ^18.0.0-0",
|
|
59
|
-
"react-dom": "^17.0.2 || ^18.0.0-0"
|
|
58
|
+
"react": "^17.0.2 || ^18.0.0-0 || ^19.0.0-0",
|
|
59
|
+
"react-dom": "^17.0.2 || ^18.0.0-0 || ^19.0.0-0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@notionhq/client": "^2.2.14",
|
|
63
63
|
"cdate": "^0.0.7",
|
|
64
64
|
"cdate-relative": "^0.1.0",
|
|
65
|
-
"file-type": "^
|
|
65
|
+
"file-type": "^20.1.0",
|
|
66
66
|
"katex": "^0.16.9",
|
|
67
|
-
"mermaid": "^
|
|
68
|
-
"pdfjs-dist": "^4.
|
|
67
|
+
"mermaid": "^11.4.1",
|
|
68
|
+
"pdfjs-dist": "^4.10.38",
|
|
69
69
|
"prismjs": "^1.25.0",
|
|
70
70
|
"replace-ext": "^2.0.0",
|
|
71
|
-
"sharp": "^0.33.
|
|
71
|
+
"sharp": "^0.33.5"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@chromatic-com/storybook": "^
|
|
75
|
-
"@
|
|
74
|
+
"@chromatic-com/storybook": "^3.2.4",
|
|
75
|
+
"@eslint/eslintrc": "^3.2.0",
|
|
76
|
+
"@eslint/js": "^9.20.0",
|
|
77
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
76
78
|
"@rollup/plugin-json": "^6.1.0",
|
|
77
|
-
"@rollup/plugin-node-resolve": "^
|
|
79
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
78
80
|
"@rollup/plugin-terser": "^0.4.4",
|
|
79
|
-
"@rollup/plugin-typescript": "^11.1.
|
|
80
|
-
"@storybook/addon-essentials": "^8.
|
|
81
|
-
"@storybook/addon-interactions": "^8.
|
|
82
|
-
"@storybook/addon-links": "^8.
|
|
83
|
-
"@storybook/addon-mdx-gfm": "^8.
|
|
84
|
-
"@storybook/addon-onboarding": "^8.
|
|
85
|
-
"@storybook/blocks": "^8.
|
|
86
|
-
"@storybook/react": "^8.
|
|
87
|
-
"@storybook/react-vite": "^8.
|
|
88
|
-
"@storybook/test": "^8.
|
|
89
|
-
"@storybook/theming": "^8.
|
|
81
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
82
|
+
"@storybook/addon-essentials": "^8.5.3",
|
|
83
|
+
"@storybook/addon-interactions": "^8.5.3",
|
|
84
|
+
"@storybook/addon-links": "^8.5.3",
|
|
85
|
+
"@storybook/addon-mdx-gfm": "^8.5.3",
|
|
86
|
+
"@storybook/addon-onboarding": "^8.5.3",
|
|
87
|
+
"@storybook/blocks": "^8.5.3",
|
|
88
|
+
"@storybook/react": "^8.5.3",
|
|
89
|
+
"@storybook/react-vite": "^8.5.3",
|
|
90
|
+
"@storybook/test": "^8.5.3",
|
|
91
|
+
"@storybook/theming": "^8.5.3",
|
|
90
92
|
"@tsconfig/node-lts-strictest-esm": "^18.12.1",
|
|
91
|
-
"@types/imagemin": "^
|
|
93
|
+
"@types/imagemin": "^9.0.1",
|
|
92
94
|
"@types/imagemin-webp": "^7.0.3",
|
|
93
95
|
"@types/katex": "^0.16.7",
|
|
94
|
-
"@types/node": "^
|
|
95
|
-
"@types/prismjs": "^1.26.
|
|
96
|
+
"@types/node": "^22.13.1",
|
|
97
|
+
"@types/prismjs": "^1.26.5",
|
|
96
98
|
"@types/react": "^18.2.45",
|
|
97
99
|
"@types/react-dom": "^18.2.18",
|
|
98
100
|
"@types/replace-ext": "^2.0.2",
|
|
99
101
|
"@types/rollup-plugin-peer-deps-external": "^2.2.4",
|
|
100
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
101
|
-
"@typescript-eslint/parser": "^
|
|
102
|
-
"eslint": "^
|
|
103
|
-
"eslint-
|
|
104
|
-
"eslint-plugin-import": "^2.29.1",
|
|
102
|
+
"@typescript-eslint/eslint-plugin": "^8.23.0",
|
|
103
|
+
"@typescript-eslint/parser": "^8.23.0",
|
|
104
|
+
"eslint": "^9.20.0",
|
|
105
|
+
"eslint-plugin-import": "^2.31.0",
|
|
105
106
|
"eslint-plugin-node": "^11.1.0",
|
|
106
|
-
"eslint-plugin-promise": "^
|
|
107
|
-
"eslint-plugin-react": "^7.
|
|
108
|
-
"eslint-plugin-storybook": "^0.
|
|
109
|
-
"
|
|
110
|
-
"react
|
|
111
|
-
"
|
|
112
|
-
"rollup
|
|
113
|
-
"rollup-plugin-
|
|
107
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
108
|
+
"eslint-plugin-react": "^7.37.4",
|
|
109
|
+
"eslint-plugin-storybook": "^0.11.2",
|
|
110
|
+
"globals": "^15.14.0",
|
|
111
|
+
"react": "^19.0.0",
|
|
112
|
+
"react-dom": "^19.0.0",
|
|
113
|
+
"rollup": "^4.34.6",
|
|
114
|
+
"rollup-plugin-delete": "^2.1.0",
|
|
115
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
114
116
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
115
117
|
"rollup-plugin-postcss": "^4.0.2",
|
|
116
|
-
"storybook": "^8.
|
|
117
|
-
"storybook-dark-mode": "^4.0.
|
|
118
|
+
"storybook": "^8.5.3",
|
|
119
|
+
"storybook-dark-mode": "^4.0.2",
|
|
118
120
|
"testdouble": "^3.20.1",
|
|
119
|
-
"tslib": "^2.
|
|
120
|
-
"tsx": "^4.
|
|
121
|
-
"typescript": "^5.
|
|
121
|
+
"tslib": "^2.8.1",
|
|
122
|
+
"tsx": "^4.19.2",
|
|
123
|
+
"typescript": "^5.7.3",
|
|
122
124
|
"uvu": "^0.5.6"
|
|
123
125
|
},
|
|
124
126
|
"extends": "@tsconfig/node-lts-strictest-esm"
|