create-ncblock 0.0.14 → 0.0.15
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/package.json
CHANGED
package/sdk-version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.0.
|
|
1
|
+
{"version":"0.0.13"}
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
type NotionPage,
|
|
8
8
|
type NotionPageId,
|
|
9
9
|
pages,
|
|
10
|
+
useCurrentUser,
|
|
10
11
|
useCustomBlockContext,
|
|
11
12
|
useDataSourceDefinitions,
|
|
12
13
|
useTheme,
|
|
@@ -47,6 +48,7 @@ const metaTextClass =
|
|
|
47
48
|
|
|
48
49
|
function App() {
|
|
49
50
|
const ctx = useCustomBlockContext()
|
|
51
|
+
const currentUser = useCurrentUser()
|
|
50
52
|
const hostThemeValue = useTheme()
|
|
51
53
|
const dataSources = useDataSourceDefinitions()
|
|
52
54
|
const [isPaused, setIsPaused] = useState(false)
|
|
@@ -78,6 +80,7 @@ function App() {
|
|
|
78
80
|
customBlockId: ctx?.customBlockId,
|
|
79
81
|
parent: ctx?.parent,
|
|
80
82
|
page: ctx?.page,
|
|
83
|
+
currentUser,
|
|
81
84
|
dataSources,
|
|
82
85
|
}
|
|
83
86
|
|
|
@@ -93,6 +96,9 @@ function App() {
|
|
|
93
96
|
["viewport", `${viewport.innerWidth} \u00d7 ${viewport.innerHeight}`],
|
|
94
97
|
["contentHeight", `${viewport.scrollHeight}px`],
|
|
95
98
|
["devicePixelRatio", String(viewport.devicePixelRatio)],
|
|
99
|
+
["currentUser.id", currentUser.id],
|
|
100
|
+
["currentUser.name", currentUser.name ?? ""],
|
|
101
|
+
["currentUser.email", currentUser.person.email],
|
|
96
102
|
]
|
|
97
103
|
|
|
98
104
|
return (
|
|
@@ -856,7 +862,7 @@ function FilterMenu({
|
|
|
856
862
|
</IconButton>
|
|
857
863
|
{open && (
|
|
858
864
|
<div className="absolute right-0 top-full z-10 mt-1 w-56 rounded-lg border border-(--border) bg-(--card-bg) p-2 shadow-(--toast-shadow)">
|
|
859
|
-
<div className="mb-1 px-1 text-[10px] font-semibold uppercase tracking-
|
|
865
|
+
<div className="mb-1 px-1 text-[10px] font-semibold uppercase tracking-wider opacity-40">
|
|
860
866
|
Direction
|
|
861
867
|
</div>
|
|
862
868
|
{directions.map(direction => (
|
|
@@ -875,7 +881,7 @@ function FilterMenu({
|
|
|
875
881
|
}}
|
|
876
882
|
/>
|
|
877
883
|
))}
|
|
878
|
-
<div className="mt-2 mb-1 px-1 text-[10px] font-semibold uppercase tracking-
|
|
884
|
+
<div className="mt-2 mb-1 px-1 text-[10px] font-semibold uppercase tracking-wider opacity-40">
|
|
879
885
|
Types
|
|
880
886
|
</div>
|
|
881
887
|
{availableTypes.length === 0 ? (
|