@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 next bumping the protocol version.
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
@@ -4,4 +4,4 @@
4
4
  *
5
5
  * WARNING: Generated during SDK publish. Do not edit in the published package.
6
6
  */
7
- export const CUSTOM_BLOCKS_SDK_VERSION = "0.1.13"
7
+ export const CUSTOM_BLOCKS_SDK_VERSION = "0.1.14"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notionhq/custom-blocks",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -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
@@ -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
- * @deprecated This compatibility stub does nothing. Remove it from Vite config when possible.
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" }