@notionhq/custom-blocks 0.3.1 → 0.3.2

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.
Files changed (36) hide show
  1. package/dist/bridge/SandboxBridge.d.ts +469 -15
  2. package/dist/bridge/SandboxBridge.d.ts.map +1 -1
  3. package/dist/bridge/SandboxBridge.js +131 -80
  4. package/dist/bridge/page.d.ts +6 -8
  5. package/dist/bridge/page.d.ts.map +1 -1
  6. package/dist/bridge/page.js +9 -56
  7. package/dist/bridge/sandboxClient.d.ts.map +1 -1
  8. package/dist/bridge/sandboxClient.js +29 -6
  9. package/dist/dataSources.d.ts.map +1 -1
  10. package/dist/dataSources.js +4 -3
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/protocol/dataSources/dateValue.d.ts +2 -2
  14. package/dist/protocol/dataSources/dateValue.js +9 -7
  15. package/dist/protocol/messages/createPage.d.ts +64 -2
  16. package/dist/protocol/messages/createPageResult.d.ts +192 -6
  17. package/dist/protocol/messages/getPage.d.ts +192 -6
  18. package/dist/protocol/messages/hostToSandbox.d.ts +704 -22
  19. package/dist/protocol/messages/queryDataSourceResult.d.ts +128 -4
  20. package/dist/protocol/messages/sandboxToHost.d.ts +128 -4
  21. package/dist/protocol/messages/updatePage.d.ts +64 -2
  22. package/dist/protocol/messages/updatePageResult.d.ts +192 -6
  23. package/dist/protocol/pages/page.d.ts +360 -12
  24. package/dist/protocol/pages/page.js +48 -2
  25. package/dist/types.d.ts +1 -1
  26. package/dist/types.d.ts.map +1 -1
  27. package/dist/version.js +1 -1
  28. package/docs/data-sources.md +9 -8
  29. package/docs/pages.md +10 -7
  30. package/package.json +1 -1
  31. package/src/bridge/SandboxBridge.ts +181 -117
  32. package/src/bridge/page.ts +15 -82
  33. package/src/bridge/sandboxClient.ts +37 -7
  34. package/src/dataSources.ts +7 -9
  35. package/src/index.ts +6 -0
  36. package/src/types.ts +6 -0
@@ -1,8 +1,9 @@
1
- import type { NotionDataSourceId, NotionPageId } from "../protocol/ids.js";
1
+ import type { NotionDataSource } from "../protocol/dataSources/dataSource.js";
2
+ import type { NotionPageId } from "../protocol/ids.js";
2
3
  import { type InitMessage } from "../protocol/messages/init.js";
3
- import type { notionPageDataSchema } from "../protocol/pages/page.js";
4
- import type { InferOutput } from "valibot";
5
- import type { CreatePageArgs, CreatePageResult, DataSourceQueryOptions, GetPageResult, GetUserResult, ListUsersArgs, ListUsersResult, NotionPage, NotionUserId, OpenExternalUrlResult, OpenPageOptions, OpenPageResult } from "../types.js";
4
+ import type { BridgeMessagePayload } from "../protocol/messages/messagePayload.js";
5
+ import type { UpdatePageResultMessage } from "../protocol/messages/updatePageResult.js";
6
+ import type { CreatePageArgs, CreatePageResult, DataSourceQueryOptions, GetPageResult, GetUserResult, ListUsersArgs, ListUsersResult, NotionPage, NotionUserId, OpenExternalUrlResult, OpenPageOptions, OpenPageResult, PageUpdatePayload } from "../types.js";
6
7
  import { type CustomBlockHostState } from "./hostState.js";
7
8
  import type { ManifestLoadResult } from "./loadManifest.js";
8
9
  import type { MessageInterceptor } from "./messageInterceptor.js";
@@ -24,6 +25,7 @@ export type QueryDataSourceArgs = {
24
25
  };
25
26
  export declare class SandboxBridge {
26
27
  private hostState;
28
+ private pendingPageUpdates;
27
29
  private listeners;
28
30
  private messageInterceptors;
29
31
  private messageLog;
@@ -76,21 +78,473 @@ export declare class SandboxBridge {
76
78
  private setDataSourceQueryError;
77
79
  releaseDataSourceSubscription(subscriptionId: string): void;
78
80
  postResize(height: number): void;
79
- createPage(createPageArgs: CreatePageArgs, dataSourceId: NotionDataSourceId | undefined): Promise<CreatePageResult>;
80
- getPage(pageId: NotionPageId, dataSourceId: NotionDataSourceId | undefined): Promise<GetPageResult>;
81
+ createPage(args: {
82
+ parent: CreatePageArgs["parent"];
83
+ properties: CreatePageArgs["properties"];
84
+ position?: CreatePageArgs["position"];
85
+ dataSource: NotionDataSource | undefined;
86
+ }): Promise<CreatePageResult>;
87
+ getPage(args: {
88
+ pageId: NotionPageId;
89
+ dataSource: NotionDataSource | undefined;
90
+ }): Promise<GetPageResult>;
81
91
  openPage(pageId: NotionPageId, options: OpenPageOptions): Promise<OpenPageResult>;
82
92
  openExternalUrl(url: string): Promise<OpenExternalUrlResult>;
83
93
  getUser(userId: NotionUserId): Promise<GetUserResult>;
84
94
  listUsers(args?: ListUsersArgs): Promise<ListUsersResult>;
85
- private updatePage;
86
- /**
87
- * Builds an SDK page object from loaded page data and wires its methods to the bridge.
88
- * Unlike `pages.create`, this does not send a create request or create a page in Notion.
89
- */
90
- buildNotionPage(args: {
91
- page: InferOutput<typeof notionPageDataSchema>;
92
- dataSourceId: NotionDataSourceId | undefined;
93
- }): NotionPage;
95
+ getPropertyById(args: {
96
+ page: NotionPage;
97
+ propertyId: string;
98
+ }): {
99
+ id: string;
100
+ type: "title";
101
+ title: {
102
+ [x: string]: unknown;
103
+ }[];
104
+ } | {
105
+ id: string;
106
+ type: "rich_text";
107
+ rich_text: {
108
+ [x: string]: unknown;
109
+ }[];
110
+ } | {
111
+ id: string;
112
+ type: "number";
113
+ number: number | null;
114
+ } | {
115
+ id: string;
116
+ type: "url";
117
+ url: string | null;
118
+ } | {
119
+ id: string;
120
+ type: "email";
121
+ email: string | null;
122
+ } | {
123
+ id: string;
124
+ type: "phone_number";
125
+ phone_number: string | null;
126
+ } | {
127
+ id: string;
128
+ type: "checkbox";
129
+ checkbox: boolean;
130
+ } | {
131
+ id: string;
132
+ type: "select";
133
+ select: {
134
+ id: string;
135
+ name?: string | undefined;
136
+ color?: string | undefined;
137
+ description?: string | null | undefined;
138
+ } | {
139
+ name: string;
140
+ id?: string | undefined;
141
+ color?: string | undefined;
142
+ description?: string | null | undefined;
143
+ } | null;
144
+ } | {
145
+ id: string;
146
+ type: "status";
147
+ status: {
148
+ id: string;
149
+ name?: string | undefined;
150
+ color?: string | undefined;
151
+ description?: string | null | undefined;
152
+ } | {
153
+ name: string;
154
+ id?: string | undefined;
155
+ color?: string | undefined;
156
+ description?: string | null | undefined;
157
+ } | null;
158
+ } | {
159
+ id: string;
160
+ type: "multi_select";
161
+ multi_select: ({
162
+ id: string;
163
+ name?: string | undefined;
164
+ color?: string | undefined;
165
+ description?: string | null | undefined;
166
+ } | {
167
+ name: string;
168
+ id?: string | undefined;
169
+ color?: string | undefined;
170
+ description?: string | null | undefined;
171
+ })[];
172
+ } | {
173
+ id: string;
174
+ type: "date";
175
+ date: {
176
+ end?: string | null | undefined;
177
+ time_zone?: string | null | undefined;
178
+ reminder?: {
179
+ unit: "day" | "month" | "week" | "year";
180
+ value: number;
181
+ time: string;
182
+ defaultTimeZone?: string | undefined;
183
+ } | {
184
+ unit: "hour" | "minute";
185
+ value: number;
186
+ } | {
187
+ unit: "none";
188
+ } | undefined;
189
+ start: string;
190
+ } | {
191
+ start: string;
192
+ end?: string | null | undefined;
193
+ reminder?: {
194
+ unit: "day" | "month" | "week" | "year";
195
+ value: number;
196
+ time: string;
197
+ defaultTimeZone?: string | undefined;
198
+ } | {
199
+ unit: "hour" | "minute";
200
+ value: number;
201
+ } | {
202
+ unit: "none";
203
+ } | undefined;
204
+ time_zone: string;
205
+ } | {
206
+ start: string;
207
+ end?: string | null | undefined;
208
+ time_zone?: string | null | undefined;
209
+ reminder?: {
210
+ unit: "day" | "month" | "week" | "year";
211
+ value: number;
212
+ time: string;
213
+ defaultTimeZone?: string | undefined;
214
+ } | {
215
+ unit: "none";
216
+ } | undefined;
217
+ } | null;
218
+ } | {
219
+ id: string;
220
+ type: "people";
221
+ people: ({
222
+ object?: "user" | undefined;
223
+ id: string;
224
+ } | {
225
+ object: "group";
226
+ id: string;
227
+ name?: string | null | undefined;
228
+ })[];
229
+ } | {
230
+ id: string;
231
+ type: "relation";
232
+ has_more?: boolean | undefined;
233
+ relation: {
234
+ id: string;
235
+ }[];
236
+ } | {
237
+ id: string;
238
+ type: "files";
239
+ files: ({
240
+ type: "external";
241
+ name: string;
242
+ external: {
243
+ url: string;
244
+ };
245
+ } | {
246
+ type: "file";
247
+ name: string;
248
+ file: {
249
+ url: string;
250
+ expiry_time?: string | undefined;
251
+ };
252
+ })[];
253
+ } | {
254
+ id: string;
255
+ type: "place";
256
+ place: {
257
+ lat: number;
258
+ lon: number;
259
+ name?: string | null | undefined;
260
+ address?: string | null | undefined;
261
+ aws_place_id?: string | null | undefined;
262
+ google_place_id?: string | null | undefined;
263
+ } | null;
264
+ } | {
265
+ id: string;
266
+ type: "created_time";
267
+ created_time: string | null;
268
+ } | {
269
+ id: string;
270
+ type: "last_edited_time";
271
+ last_edited_time: string | null;
272
+ } | {
273
+ id: string;
274
+ type: "created_by";
275
+ created_by: {
276
+ id: string;
277
+ table: "bot" | "notion_user" | "organization_bot";
278
+ spaceId?: string | undefined;
279
+ } | null;
280
+ } | {
281
+ id: string;
282
+ type: "last_edited_by";
283
+ last_edited_by: {
284
+ id: string;
285
+ table: "bot" | "notion_user" | "organization_bot";
286
+ spaceId?: string | undefined;
287
+ } | null;
288
+ } | {
289
+ id: string;
290
+ type: "last_visited_time";
291
+ last_visited_time: string | null;
292
+ } | {
293
+ id: string;
294
+ type: "unique_id";
295
+ unique_id: string;
296
+ } | {
297
+ id: string;
298
+ type: "button";
299
+ button: string;
300
+ } | {
301
+ id: string;
302
+ type: "formula";
303
+ formula: string;
304
+ } | {
305
+ id: string;
306
+ type: "location";
307
+ location: string;
308
+ } | {
309
+ id: string;
310
+ type: "rollup";
311
+ rollup: string;
312
+ } | {
313
+ id: string;
314
+ type: "verification";
315
+ verification: string;
316
+ } | null;
317
+ getPropertyByKey(args: {
318
+ page: NotionPage;
319
+ dataSource: NotionDataSource | undefined;
320
+ propertyKey: string;
321
+ }): {
322
+ id: string;
323
+ type: "title";
324
+ title: {
325
+ [x: string]: unknown;
326
+ }[];
327
+ } | {
328
+ id: string;
329
+ type: "rich_text";
330
+ rich_text: {
331
+ [x: string]: unknown;
332
+ }[];
333
+ } | {
334
+ id: string;
335
+ type: "number";
336
+ number: number | null;
337
+ } | {
338
+ id: string;
339
+ type: "url";
340
+ url: string | null;
341
+ } | {
342
+ id: string;
343
+ type: "email";
344
+ email: string | null;
345
+ } | {
346
+ id: string;
347
+ type: "phone_number";
348
+ phone_number: string | null;
349
+ } | {
350
+ id: string;
351
+ type: "checkbox";
352
+ checkbox: boolean;
353
+ } | {
354
+ id: string;
355
+ type: "select";
356
+ select: {
357
+ id: string;
358
+ name?: string | undefined;
359
+ color?: string | undefined;
360
+ description?: string | null | undefined;
361
+ } | {
362
+ name: string;
363
+ id?: string | undefined;
364
+ color?: string | undefined;
365
+ description?: string | null | undefined;
366
+ } | null;
367
+ } | {
368
+ id: string;
369
+ type: "status";
370
+ status: {
371
+ id: string;
372
+ name?: string | undefined;
373
+ color?: string | undefined;
374
+ description?: string | null | undefined;
375
+ } | {
376
+ name: string;
377
+ id?: string | undefined;
378
+ color?: string | undefined;
379
+ description?: string | null | undefined;
380
+ } | null;
381
+ } | {
382
+ id: string;
383
+ type: "multi_select";
384
+ multi_select: ({
385
+ id: string;
386
+ name?: string | undefined;
387
+ color?: string | undefined;
388
+ description?: string | null | undefined;
389
+ } | {
390
+ name: string;
391
+ id?: string | undefined;
392
+ color?: string | undefined;
393
+ description?: string | null | undefined;
394
+ })[];
395
+ } | {
396
+ id: string;
397
+ type: "date";
398
+ date: {
399
+ end?: string | null | undefined;
400
+ time_zone?: string | null | undefined;
401
+ reminder?: {
402
+ unit: "day" | "month" | "week" | "year";
403
+ value: number;
404
+ time: string;
405
+ defaultTimeZone?: string | undefined;
406
+ } | {
407
+ unit: "hour" | "minute";
408
+ value: number;
409
+ } | {
410
+ unit: "none";
411
+ } | undefined;
412
+ start: string;
413
+ } | {
414
+ start: string;
415
+ end?: string | null | undefined;
416
+ reminder?: {
417
+ unit: "day" | "month" | "week" | "year";
418
+ value: number;
419
+ time: string;
420
+ defaultTimeZone?: string | undefined;
421
+ } | {
422
+ unit: "hour" | "minute";
423
+ value: number;
424
+ } | {
425
+ unit: "none";
426
+ } | undefined;
427
+ time_zone: string;
428
+ } | {
429
+ start: string;
430
+ end?: string | null | undefined;
431
+ time_zone?: string | null | undefined;
432
+ reminder?: {
433
+ unit: "day" | "month" | "week" | "year";
434
+ value: number;
435
+ time: string;
436
+ defaultTimeZone?: string | undefined;
437
+ } | {
438
+ unit: "none";
439
+ } | undefined;
440
+ } | null;
441
+ } | {
442
+ id: string;
443
+ type: "people";
444
+ people: ({
445
+ object?: "user" | undefined;
446
+ id: string;
447
+ } | {
448
+ object: "group";
449
+ id: string;
450
+ name?: string | null | undefined;
451
+ })[];
452
+ } | {
453
+ id: string;
454
+ type: "relation";
455
+ has_more?: boolean | undefined;
456
+ relation: {
457
+ id: string;
458
+ }[];
459
+ } | {
460
+ id: string;
461
+ type: "files";
462
+ files: ({
463
+ type: "external";
464
+ name: string;
465
+ external: {
466
+ url: string;
467
+ };
468
+ } | {
469
+ type: "file";
470
+ name: string;
471
+ file: {
472
+ url: string;
473
+ expiry_time?: string | undefined;
474
+ };
475
+ })[];
476
+ } | {
477
+ id: string;
478
+ type: "place";
479
+ place: {
480
+ lat: number;
481
+ lon: number;
482
+ name?: string | null | undefined;
483
+ address?: string | null | undefined;
484
+ aws_place_id?: string | null | undefined;
485
+ google_place_id?: string | null | undefined;
486
+ } | null;
487
+ } | {
488
+ id: string;
489
+ type: "created_time";
490
+ created_time: string | null;
491
+ } | {
492
+ id: string;
493
+ type: "last_edited_time";
494
+ last_edited_time: string | null;
495
+ } | {
496
+ id: string;
497
+ type: "created_by";
498
+ created_by: {
499
+ id: string;
500
+ table: "bot" | "notion_user" | "organization_bot";
501
+ spaceId?: string | undefined;
502
+ } | null;
503
+ } | {
504
+ id: string;
505
+ type: "last_edited_by";
506
+ last_edited_by: {
507
+ id: string;
508
+ table: "bot" | "notion_user" | "organization_bot";
509
+ spaceId?: string | undefined;
510
+ } | null;
511
+ } | {
512
+ id: string;
513
+ type: "last_visited_time";
514
+ last_visited_time: string | null;
515
+ } | {
516
+ id: string;
517
+ type: "unique_id";
518
+ unique_id: string;
519
+ } | {
520
+ id: string;
521
+ type: "button";
522
+ button: string;
523
+ } | {
524
+ id: string;
525
+ type: "formula";
526
+ formula: string;
527
+ } | {
528
+ id: string;
529
+ type: "location";
530
+ location: string;
531
+ } | {
532
+ id: string;
533
+ type: "rollup";
534
+ rollup: string;
535
+ } | {
536
+ id: string;
537
+ type: "verification";
538
+ verification: string;
539
+ } | null;
540
+ updatePage(args: {
541
+ pageId: NotionPageId;
542
+ properties?: PageUpdatePayload["properties"];
543
+ icon?: PageUpdatePayload["icon"];
544
+ cover?: PageUpdatePayload["cover"];
545
+ is_archived?: PageUpdatePayload["is_archived"];
546
+ dataSource: NotionDataSource | undefined;
547
+ }): Promise<BridgeMessagePayload<UpdatePageResultMessage>>;
94
548
  /**
95
549
  * Translates the public `CreatePageArgs["parent"]` into the bridge-native
96
550
  * `CreatePageMessageParent`. The `data_source_key` variant is resolved sandbox-side against the
@@ -1 +1 @@
1
- {"version":3,"file":"SandboxBridge.d.ts","sourceRoot":"","sources":["../../src/bridge/SandboxBridge.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACX,kBAAkB,EAClB,YAAY,EACZ,MAAM,yCAAyC,CAAA;AAiBhD,OAAO,EACN,KAAK,WAAW,EAEhB,MAAM,mDAAmD,CAAA;AAc1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAA;AAE1F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C,OAAO,KAAK,EACX,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,aAAa,EACb,aAAa,EACb,aAAa,EACb,eAAe,EACf,UAAU,EACV,YAAY,EACZ,qBAAqB,EACrB,eAAe,EACf,cAAc,EAEd,MAAM,aAAa,CAAA;AASpB,OAAO,EACN,KAAK,oBAAoB,EAGzB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA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