@notionhq/custom-blocks 0.1.37 → 0.1.39
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/README.md +5 -0
- package/bin/notion-custom-blocks/build.d.ts +23 -0
- package/bin/notion-custom-blocks/bundle.d.ts +4 -0
- package/bin/notion-custom-blocks/bundle.js +2 -0
- package/bin/notion-custom-blocks/cli.d.ts +8 -0
- package/bin/notion-custom-blocks/tar.d.ts +11 -0
- package/bin/notion-custom-blocks/upload.d.ts +14 -0
- package/bin/notion-custom-blocks/upload.js +14 -0
- package/bin/notion-custom-blocks/upload.test.d.ts +1 -0
- package/bin/notion-custom-blocks/upload.test.js +35 -0
- package/dist/bridge/SandboxBridge.d.ts.map +1 -1
- package/dist/bridge/pendingRequests.d.ts.map +1 -1
- package/dist/bridge/sandboxClient.d.ts.map +1 -1
- package/dist/init.d.ts.map +1 -1
- package/dist/protocol/dataSources/dataSource.d.ts +135 -135
- package/dist/protocol/dataSources/propertySchema.d.ts +27 -27
- package/dist/protocol/messages/createPage.d.ts +15 -15
- package/dist/protocol/messages/createPageResult.d.ts +17 -15
- package/dist/protocol/messages/dataSourcesChanged.d.ts +27 -27
- package/dist/protocol/messages/getPage.d.ts +17 -15
- package/dist/protocol/messages/hostToSandbox.d.ts +114 -100
- package/dist/protocol/messages/init.d.ts +32 -28
- package/dist/protocol/messages/pageChanged.d.ts +2 -0
- package/dist/protocol/messages/parentChanged.d.ts +2 -0
- package/dist/protocol/messages/sandboxToHost.d.ts +30 -30
- package/dist/protocol/messages/updatePage.d.ts +15 -15
- package/dist/protocol/messages/updatePageResult.d.ts +17 -15
- package/dist/protocol/pages/page.d.ts +49 -45
- package/dist/protocol/parent.d.ts +5 -1
- package/dist/protocol/parent.js +1 -0
- package/dist/react/DebugMessageLog.d.ts +1 -1
- package/dist/react/DebugMessageLog.d.ts.map +1 -1
- package/dist/react/NotionCustomBlock.d.ts +1 -1
- package/dist/react/NotionCustomBlock.d.ts.map +1 -1
- package/dist/react/NotionCustomBlock.js +1 -1
- package/dist/react/NotionTokenScope.d.ts +1 -1
- package/dist/react/NotionTokenScope.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/docs/block-location.md +13 -1
- package/docs/deployment.md +15 -0
- package/docs/pages.md +1 -1
- package/package.json +16 -12
|
@@ -39,36 +39,39 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
|
|
|
39
39
|
}, undefined>, v.ObjectSchema<{
|
|
40
40
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
41
41
|
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
42
|
+
}, undefined>, v.ObjectSchema<{
|
|
43
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
42
44
|
}, undefined>], undefined>;
|
|
43
45
|
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
46
|
+
readonly id: v.StringSchema<undefined>;
|
|
44
47
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
45
48
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
46
|
-
readonly id: v.StringSchema<undefined>;
|
|
47
49
|
}, undefined>, v.ObjectSchema<{
|
|
50
|
+
readonly id: v.StringSchema<undefined>;
|
|
48
51
|
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
49
52
|
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
50
|
-
readonly id: v.StringSchema<undefined>;
|
|
51
53
|
}, undefined>, v.ObjectSchema<{
|
|
54
|
+
readonly id: v.StringSchema<undefined>;
|
|
52
55
|
readonly type: v.LiteralSchema<"number", undefined>;
|
|
53
56
|
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
54
|
-
readonly id: v.StringSchema<undefined>;
|
|
55
57
|
}, undefined>, v.ObjectSchema<{
|
|
58
|
+
readonly id: v.StringSchema<undefined>;
|
|
56
59
|
readonly type: v.LiteralSchema<"url", undefined>;
|
|
57
60
|
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
58
|
-
readonly id: v.StringSchema<undefined>;
|
|
59
61
|
}, undefined>, v.ObjectSchema<{
|
|
62
|
+
readonly id: v.StringSchema<undefined>;
|
|
60
63
|
readonly type: v.LiteralSchema<"email", undefined>;
|
|
61
64
|
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
62
|
-
readonly id: v.StringSchema<undefined>;
|
|
63
65
|
}, undefined>, v.ObjectSchema<{
|
|
66
|
+
readonly id: v.StringSchema<undefined>;
|
|
64
67
|
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
65
68
|
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
66
|
-
readonly id: v.StringSchema<undefined>;
|
|
67
69
|
}, undefined>, v.ObjectSchema<{
|
|
70
|
+
readonly id: v.StringSchema<undefined>;
|
|
68
71
|
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
69
72
|
readonly checkbox: v.BooleanSchema<undefined>;
|
|
70
|
-
readonly id: v.StringSchema<undefined>;
|
|
71
73
|
}, undefined>, v.ObjectSchema<{
|
|
74
|
+
readonly id: v.StringSchema<undefined>;
|
|
72
75
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
73
76
|
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
74
77
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -81,8 +84,8 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
|
|
|
81
84
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
82
85
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
83
86
|
}, undefined>], undefined>, undefined>;
|
|
84
|
-
readonly id: v.StringSchema<undefined>;
|
|
85
87
|
}, undefined>, v.ObjectSchema<{
|
|
88
|
+
readonly id: v.StringSchema<undefined>;
|
|
86
89
|
readonly type: v.LiteralSchema<"status", undefined>;
|
|
87
90
|
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
88
91
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -95,8 +98,8 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
|
|
|
95
98
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
96
99
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
97
100
|
}, undefined>], undefined>, undefined>;
|
|
98
|
-
readonly id: v.StringSchema<undefined>;
|
|
99
101
|
}, undefined>, v.ObjectSchema<{
|
|
102
|
+
readonly id: v.StringSchema<undefined>;
|
|
100
103
|
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
101
104
|
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
102
105
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -109,16 +112,16 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
|
|
|
109
112
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
110
113
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
111
114
|
}, undefined>], undefined>, undefined>;
|
|
112
|
-
readonly id: v.StringSchema<undefined>;
|
|
113
115
|
}, undefined>, v.ObjectSchema<{
|
|
116
|
+
readonly id: v.StringSchema<undefined>;
|
|
114
117
|
readonly type: v.LiteralSchema<"date", undefined>;
|
|
115
118
|
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
116
119
|
readonly start: v.StringSchema<undefined>;
|
|
117
120
|
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
118
121
|
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
119
122
|
}, undefined>, undefined>;
|
|
120
|
-
readonly id: v.StringSchema<undefined>;
|
|
121
123
|
}, undefined>, v.ObjectSchema<{
|
|
124
|
+
readonly id: v.StringSchema<undefined>;
|
|
122
125
|
readonly type: v.LiteralSchema<"people", undefined>;
|
|
123
126
|
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
124
127
|
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
@@ -128,15 +131,15 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
|
|
|
128
131
|
readonly id: v.StringSchema<undefined>;
|
|
129
132
|
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
130
133
|
}, undefined>], undefined>, undefined>;
|
|
131
|
-
readonly id: v.StringSchema<undefined>;
|
|
132
134
|
}, undefined>, v.ObjectSchema<{
|
|
135
|
+
readonly id: v.StringSchema<undefined>;
|
|
133
136
|
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
134
137
|
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
135
138
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
136
139
|
readonly id: v.StringSchema<undefined>;
|
|
137
140
|
}, undefined>, undefined>;
|
|
138
|
-
readonly id: v.StringSchema<undefined>;
|
|
139
141
|
}, undefined>, v.ObjectSchema<{
|
|
142
|
+
readonly id: v.StringSchema<undefined>;
|
|
140
143
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
141
144
|
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
142
145
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
@@ -152,8 +155,8 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
|
|
|
152
155
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
153
156
|
}, undefined>;
|
|
154
157
|
}, undefined>], undefined>, undefined>;
|
|
155
|
-
readonly id: v.StringSchema<undefined>;
|
|
156
158
|
}, undefined>, v.ObjectSchema<{
|
|
159
|
+
readonly id: v.StringSchema<undefined>;
|
|
157
160
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
158
161
|
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
159
162
|
readonly lat: v.NumberSchema<undefined>;
|
|
@@ -163,7 +166,6 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
|
|
|
163
166
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
164
167
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
165
168
|
}, undefined>, undefined>;
|
|
166
|
-
readonly id: v.StringSchema<undefined>;
|
|
167
169
|
}, undefined>], undefined>, undefined>;
|
|
168
170
|
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
169
171
|
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|