@notionhq/custom-blocks 0.1.13 → 0.1.14
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.
|
@@ -36,7 +36,7 @@ export const initMessageSchema = v.variant("status", [
|
|
|
36
36
|
initializationId: v.string(),
|
|
37
37
|
status: v.literal("success"),
|
|
38
38
|
theme: notionThemeSchema,
|
|
39
|
-
// TODO(custom-blocks): Make this required when
|
|
39
|
+
// TODO(custom-blocks): Make this required when bumping bridge protocol version 4.
|
|
40
40
|
contrastMode: v.optional(notionContrastModeSchema, DEFAULT_CONTRAST_MODE),
|
|
41
41
|
blockId: notionBlockIdSchema,
|
|
42
42
|
parent: notionParentSchema,
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/vite-plugin/index.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ export type NotionCustomBlockPlugin = {
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
+
* Vite plugin for Notion custom blocks.
|
|
7
|
+
*
|
|
6
8
|
* @deprecated This compatibility stub does nothing. Remove it from Vite config when possible.
|
|
9
|
+
*
|
|
10
|
+
* TODO(custom-blocks): Remove this when bumping bridge SDK version to 0.2.0.
|
|
7
11
|
*/
|
|
8
12
|
export function notionCustomBlock(): NotionCustomBlockPlugin
|
package/vite-plugin/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
// Compatibility export for existing blocks.
|
|
2
|
-
// TODO(custom-blocks): Remove the Vite server entirely when bumping bridge protocol version.
|
|
3
1
|
/**
|
|
4
|
-
*
|
|
2
|
+
* Vite plugin for Notion custom blocks.
|
|
3
|
+
*
|
|
4
|
+
* @deprecated This is just a compatibility stub to ensure existing block code can continue to work
|
|
5
|
+
* with the new SDK.
|
|
6
|
+
*
|
|
7
|
+
* TODO(custom-blocks): Remove this when bumping bridge SDK version to 0.2.0.
|
|
5
8
|
*/
|
|
6
9
|
export function notionCustomBlock() {
|
|
7
10
|
return { name: "custom-blocks:legacy-vite-plugin" }
|