@ashwin_droid/notion-stream 1.1.3 → 1.2.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.
@@ -37,6 +37,7 @@ export interface MathBlock extends BlockBase {
37
37
  export interface ImageBlock extends BlockBase {
38
38
  type: 'image';
39
39
  content: string;
40
+ alt?: string;
40
41
  }
41
42
  export interface DividerBlock extends BlockBase {
42
43
  type: 'divider';
@@ -102,6 +103,8 @@ export interface NotionStreamRef {
102
103
  level?: number;
103
104
  listType?: ListType;
104
105
  depth?: number;
106
+ src?: string;
107
+ alt?: string;
105
108
  }) => void;
106
109
  indentListItem: (blockId: string) => void;
107
110
  outdentListItem: (blockId: string) => void;
@@ -134,6 +137,8 @@ export type BlockInsert = {
134
137
  } | {
135
138
  type: 'image';
136
139
  content?: string;
140
+ src?: string;
141
+ alt?: string;
137
142
  } | {
138
143
  type: 'table';
139
144
  rows?: number;
@@ -144,6 +149,7 @@ export type BlockInsert = {
144
149
  export interface ParsedBlock {
145
150
  type: BlockType;
146
151
  content: string;
152
+ alt?: string;
147
153
  level?: number;
148
154
  language?: string;
149
155
  listType?: ListType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ashwin_droid/notion-stream",
3
- "version": "1.1.3",
3
+ "version": "1.2.0",
4
4
  "description": "React component that converts streaming markdown into editable Notion-like blocks with real-time rendering",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",