@notionhq/custom-blocks-host 0.1.0 → 0.1.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initErrors.d.ts","sourceRoot":"","sources":["../../src/lifecycle/initErrors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,wBAAwB,EACxB,wBAAwB,EACxB,MAAM,mDAAmD,CAAA;AAK1D;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACxC,MAAM,EAAE,wBAAwB,EAChC,IAAI,GAAE;IACL,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,4BAA4B,CAAC,EAAE,MAAM,CAAA;CAChC,GACJ,wBAAwB,
|
|
1
|
+
{"version":3,"file":"initErrors.d.ts","sourceRoot":"","sources":["../../src/lifecycle/initErrors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,wBAAwB,EACxB,wBAAwB,EACxB,MAAM,mDAAmD,CAAA;AAK1D;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACxC,MAAM,EAAE,wBAAwB,EAChC,IAAI,GAAE;IACL,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,4BAA4B,CAAC,EAAE,MAAM,CAAA;CAChC,GACJ,wBAAwB,CAgJ1B"}
|
|
@@ -130,7 +130,7 @@ export function initErrorForFailureReason(reason, data = {}) {
|
|
|
130
130
|
case "init_timeout":
|
|
131
131
|
return {
|
|
132
132
|
code: reason,
|
|
133
|
-
message: "Host did not respond to
|
|
133
|
+
message: "Host did not respond to the `connect` message before the timeout.",
|
|
134
134
|
isRetryable: true,
|
|
135
135
|
};
|
|
136
136
|
case "unknown_error":
|
|
@@ -47,6 +47,5 @@ export const createPageMessageSchema = v.object({
|
|
|
47
47
|
* those keys before it sends this message.
|
|
48
48
|
*/
|
|
49
49
|
properties: notionPagePropertyWriteMapSchema,
|
|
50
|
-
// TODO(custom-blocks): Add icon and cover once the Notion host supports them for page creation.
|
|
51
50
|
position: v.optional(notionCreatePagePositionSchema),
|
|
52
51
|
});
|
|
@@ -42,7 +42,6 @@ export const notionHostedFileSchema = v.object({
|
|
|
42
42
|
expiry_time: v.optional(v.string()),
|
|
43
43
|
}),
|
|
44
44
|
});
|
|
45
|
-
// TODO(custom-blocks): Add file upload support.
|
|
46
45
|
export const notionPageIconSchema = v.variant("type", [
|
|
47
46
|
notionEmojiIconSchema,
|
|
48
47
|
notionCustomEmojiIconSchema,
|
package/package.json
CHANGED
|
@@ -143,7 +143,8 @@ export function initErrorForFailureReason(
|
|
|
143
143
|
case "init_timeout":
|
|
144
144
|
return {
|
|
145
145
|
code: reason,
|
|
146
|
-
message:
|
|
146
|
+
message:
|
|
147
|
+
"Host did not respond to the `connect` message before the timeout.",
|
|
147
148
|
isRetryable: true,
|
|
148
149
|
}
|
|
149
150
|
case "unknown_error":
|