@seed-hypermedia/client 0.0.64 → 0.0.65
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/dist/{chunk-VWCXRMDI.mjs → chunk-PDW4T53T.mjs} +12 -3
- package/dist/editor-types.d.ts +2 -1
- package/dist/hm-types.d.ts +246 -52
- package/dist/hm-types.mjs +1 -1
- package/dist/index.mjs +13 -6
- package/package.json +1 -1
|
@@ -28,7 +28,15 @@ var HMEmbedViewSchema = z.union([
|
|
|
28
28
|
z.literal("Comments"),
|
|
29
29
|
z.literal("Link")
|
|
30
30
|
]);
|
|
31
|
-
var HMQueryStyleSchema = z.union([z.literal("Card"), z.literal("List")]);
|
|
31
|
+
var HMQueryStyleSchema = z.union([z.literal("Card"), z.literal("List"), z.literal("Table")]);
|
|
32
|
+
var HMQueryTableColumnSchema = z.object({
|
|
33
|
+
id: z.string(),
|
|
34
|
+
visible: z.boolean(),
|
|
35
|
+
width: z.number().positive().optional()
|
|
36
|
+
});
|
|
37
|
+
var HMQueryTableConfigSchema = z.object({
|
|
38
|
+
columns: z.array(HMQueryTableColumnSchema)
|
|
39
|
+
});
|
|
32
40
|
var baseAnnotationProperties = {
|
|
33
41
|
starts: z.array(z.number()),
|
|
34
42
|
ends: z.array(z.number()),
|
|
@@ -201,7 +209,7 @@ var HMBlockFileSchema = z.object({
|
|
|
201
209
|
...blockBaseProperties,
|
|
202
210
|
attributes: z.object({
|
|
203
211
|
...parentBlockAttributes,
|
|
204
|
-
size: z.number().optional().transform(toNumber),
|
|
212
|
+
size: z.number().optional().transform((value) => value == null ? null : toNumber(value)),
|
|
205
213
|
// number of bytes, as a string
|
|
206
214
|
name: z.string().optional()
|
|
207
215
|
}).optional().default({}),
|
|
@@ -465,7 +473,8 @@ var HMBlockQuerySchema = z.object({
|
|
|
465
473
|
style: HMQueryStyleSchema.optional().default("Card"),
|
|
466
474
|
columnCount: z.number().optional().default(3),
|
|
467
475
|
query: HMQuerySchema,
|
|
468
|
-
banner: z.boolean().optional().default(false)
|
|
476
|
+
banner: z.boolean().optional().default(false),
|
|
477
|
+
table: HMQueryTableConfigSchema.optional()
|
|
469
478
|
})
|
|
470
479
|
}).strict();
|
|
471
480
|
var HMBlockGroupSchema = z.object({
|
package/dist/editor-types.d.ts
CHANGED
|
@@ -106,12 +106,13 @@ export type EditorNostrBlock = EditorBaseBlock & {
|
|
|
106
106
|
export type EditorQueryBlock = EditorBaseBlock & {
|
|
107
107
|
type: 'query';
|
|
108
108
|
props: EditorBlockProps & {
|
|
109
|
-
style: 'Card' | 'List';
|
|
109
|
+
style: 'Card' | 'List' | 'Table';
|
|
110
110
|
columnCount?: '1' | '2' | '3';
|
|
111
111
|
queryLimit?: string;
|
|
112
112
|
queryIncludes?: string;
|
|
113
113
|
querySort?: string;
|
|
114
114
|
banner?: 'true' | 'false';
|
|
115
|
+
tableConfig?: string;
|
|
115
116
|
};
|
|
116
117
|
content: Array<HMInlineContent>;
|
|
117
118
|
};
|
package/dist/hm-types.d.ts
CHANGED
|
@@ -79,8 +79,37 @@ export declare const HMBlockChildrenTypeSchema: z.ZodNullable<z.ZodUnion<[z.ZodL
|
|
|
79
79
|
export type HMBlockChildrenType = z.infer<typeof HMBlockChildrenTypeSchema>;
|
|
80
80
|
export declare const HMEmbedViewSchema: z.ZodUnion<[z.ZodLiteral<"Content">, z.ZodLiteral<"Card">, z.ZodLiteral<"Comments">, z.ZodLiteral<"Link">]>;
|
|
81
81
|
export type HMEmbedView = z.infer<typeof HMEmbedViewSchema>;
|
|
82
|
-
export declare const HMQueryStyleSchema: z.ZodUnion<[z.ZodLiteral<"Card">, z.ZodLiteral<"List">]>;
|
|
82
|
+
export declare const HMQueryStyleSchema: z.ZodUnion<[z.ZodLiteral<"Card">, z.ZodLiteral<"List">, z.ZodLiteral<"Table">]>;
|
|
83
83
|
export type HMQueryStyle = z.infer<typeof HMQueryStyleSchema>;
|
|
84
|
+
declare const HMQueryTableConfigSchema: z.ZodObject<{
|
|
85
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
86
|
+
id: z.ZodString;
|
|
87
|
+
visible: z.ZodBoolean;
|
|
88
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
id: string;
|
|
91
|
+
visible: boolean;
|
|
92
|
+
width?: number | undefined;
|
|
93
|
+
}, {
|
|
94
|
+
id: string;
|
|
95
|
+
visible: boolean;
|
|
96
|
+
width?: number | undefined;
|
|
97
|
+
}>, "many">;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
columns: {
|
|
100
|
+
id: string;
|
|
101
|
+
visible: boolean;
|
|
102
|
+
width?: number | undefined;
|
|
103
|
+
}[];
|
|
104
|
+
}, {
|
|
105
|
+
columns: {
|
|
106
|
+
id: string;
|
|
107
|
+
visible: boolean;
|
|
108
|
+
width?: number | undefined;
|
|
109
|
+
}[];
|
|
110
|
+
}>;
|
|
111
|
+
/** Persisted presentation settings for a Query block's Table view. */
|
|
112
|
+
export type HMQueryTableConfig = z.infer<typeof HMQueryTableConfigSchema>;
|
|
84
113
|
export declare const BoldAnnotationSchema: z.ZodObject<{
|
|
85
114
|
starts: z.ZodArray<z.ZodNumber, "many">;
|
|
86
115
|
ends: z.ZodArray<z.ZodNumber, "many">;
|
|
@@ -1887,14 +1916,14 @@ export declare const HMBlockImageSchema: z.ZodObject<{
|
|
|
1887
1916
|
columnCount: z.ZodOptional<z.ZodNumber>;
|
|
1888
1917
|
}, "strip", z.ZodTypeAny, {
|
|
1889
1918
|
name?: string | undefined;
|
|
1919
|
+
width?: number | undefined;
|
|
1890
1920
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
1891
1921
|
columnCount?: number | undefined;
|
|
1892
|
-
width?: number | undefined;
|
|
1893
1922
|
}, {
|
|
1894
1923
|
name?: string | undefined;
|
|
1924
|
+
width?: number | undefined;
|
|
1895
1925
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
1896
1926
|
columnCount?: number | undefined;
|
|
1897
|
-
width?: number | undefined;
|
|
1898
1927
|
}>>>;
|
|
1899
1928
|
link: z.ZodString;
|
|
1900
1929
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -2164,9 +2193,9 @@ export declare const HMBlockImageSchema: z.ZodObject<{
|
|
|
2164
2193
|
id: string;
|
|
2165
2194
|
attributes: {
|
|
2166
2195
|
name?: string | undefined;
|
|
2196
|
+
width?: number | undefined;
|
|
2167
2197
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
2168
2198
|
columnCount?: number | undefined;
|
|
2169
|
-
width?: number | undefined;
|
|
2170
2199
|
};
|
|
2171
2200
|
text: string;
|
|
2172
2201
|
annotations?: ({
|
|
@@ -2257,9 +2286,9 @@ export declare const HMBlockImageSchema: z.ZodObject<{
|
|
|
2257
2286
|
id: string;
|
|
2258
2287
|
attributes?: {
|
|
2259
2288
|
name?: string | undefined;
|
|
2289
|
+
width?: number | undefined;
|
|
2260
2290
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
2261
2291
|
columnCount?: number | undefined;
|
|
2262
|
-
width?: number | undefined;
|
|
2263
2292
|
} | undefined;
|
|
2264
2293
|
text?: string | undefined;
|
|
2265
2294
|
annotations?: ({
|
|
@@ -2356,17 +2385,17 @@ export declare const HMBlockVideoSchema: z.ZodObject<{
|
|
|
2356
2385
|
columnCount: z.ZodOptional<z.ZodNumber>;
|
|
2357
2386
|
}, "strip", z.ZodTypeAny, {
|
|
2358
2387
|
name?: string | undefined;
|
|
2388
|
+
width?: number | undefined;
|
|
2359
2389
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
2360
2390
|
columnCount?: number | undefined;
|
|
2361
|
-
width?: number | undefined;
|
|
2362
2391
|
autoplay?: boolean | undefined;
|
|
2363
2392
|
loop?: boolean | undefined;
|
|
2364
2393
|
muted?: boolean | undefined;
|
|
2365
2394
|
}, {
|
|
2366
2395
|
name?: string | undefined;
|
|
2396
|
+
width?: number | undefined;
|
|
2367
2397
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
2368
2398
|
columnCount?: number | undefined;
|
|
2369
|
-
width?: number | undefined;
|
|
2370
2399
|
autoplay?: boolean | undefined;
|
|
2371
2400
|
loop?: boolean | undefined;
|
|
2372
2401
|
muted?: boolean | undefined;
|
|
@@ -2383,9 +2412,9 @@ export declare const HMBlockVideoSchema: z.ZodObject<{
|
|
|
2383
2412
|
id: string;
|
|
2384
2413
|
attributes: {
|
|
2385
2414
|
name?: string | undefined;
|
|
2415
|
+
width?: number | undefined;
|
|
2386
2416
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
2387
2417
|
columnCount?: number | undefined;
|
|
2388
|
-
width?: number | undefined;
|
|
2389
2418
|
autoplay?: boolean | undefined;
|
|
2390
2419
|
loop?: boolean | undefined;
|
|
2391
2420
|
muted?: boolean | undefined;
|
|
@@ -2399,9 +2428,9 @@ export declare const HMBlockVideoSchema: z.ZodObject<{
|
|
|
2399
2428
|
id: string;
|
|
2400
2429
|
attributes?: {
|
|
2401
2430
|
name?: string | undefined;
|
|
2431
|
+
width?: number | undefined;
|
|
2402
2432
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
2403
2433
|
columnCount?: number | undefined;
|
|
2404
|
-
width?: number | undefined;
|
|
2405
2434
|
autoplay?: boolean | undefined;
|
|
2406
2435
|
loop?: boolean | undefined;
|
|
2407
2436
|
muted?: boolean | undefined;
|
|
@@ -5917,14 +5946,14 @@ export declare const HMBlockTableColumnSchema: z.ZodObject<{
|
|
|
5917
5946
|
childrenType: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Group">, z.ZodLiteral<"Ordered">, z.ZodLiteral<"Unordered">, z.ZodLiteral<"Blockquote">, z.ZodLiteral<"Grid">]>>>;
|
|
5918
5947
|
columnCount: z.ZodOptional<z.ZodNumber>;
|
|
5919
5948
|
}, "strip", z.ZodTypeAny, {
|
|
5949
|
+
width?: number | undefined;
|
|
5920
5950
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
5921
5951
|
columnCount?: number | undefined;
|
|
5922
|
-
width?: number | undefined;
|
|
5923
5952
|
isHeader?: boolean | undefined;
|
|
5924
5953
|
}, {
|
|
5954
|
+
width?: number | undefined;
|
|
5925
5955
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
5926
5956
|
columnCount?: number | undefined;
|
|
5927
|
-
width?: number | undefined;
|
|
5928
5957
|
isHeader?: boolean | undefined;
|
|
5929
5958
|
}>>>;
|
|
5930
5959
|
id: z.ZodString;
|
|
@@ -5937,9 +5966,9 @@ export declare const HMBlockTableColumnSchema: z.ZodObject<{
|
|
|
5937
5966
|
type: "TableColumn";
|
|
5938
5967
|
id: string;
|
|
5939
5968
|
attributes: {
|
|
5969
|
+
width?: number | undefined;
|
|
5940
5970
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
5941
5971
|
columnCount?: number | undefined;
|
|
5942
|
-
width?: number | undefined;
|
|
5943
5972
|
isHeader?: boolean | undefined;
|
|
5944
5973
|
};
|
|
5945
5974
|
link?: "" | undefined;
|
|
@@ -5951,9 +5980,9 @@ export declare const HMBlockTableColumnSchema: z.ZodObject<{
|
|
|
5951
5980
|
id: string;
|
|
5952
5981
|
link?: "" | undefined;
|
|
5953
5982
|
attributes?: {
|
|
5983
|
+
width?: number | undefined;
|
|
5954
5984
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
5955
5985
|
columnCount?: number | undefined;
|
|
5956
|
-
width?: number | undefined;
|
|
5957
5986
|
isHeader?: boolean | undefined;
|
|
5958
5987
|
} | undefined;
|
|
5959
5988
|
text?: "" | undefined;
|
|
@@ -5962,7 +5991,7 @@ export declare const HMBlockTableColumnSchema: z.ZodObject<{
|
|
|
5962
5991
|
}>;
|
|
5963
5992
|
export declare const HMBlockQuerySchema: z.ZodObject<{
|
|
5964
5993
|
attributes: z.ZodObject<{
|
|
5965
|
-
style: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Card">, z.ZodLiteral<"List">]>>>;
|
|
5994
|
+
style: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Card">, z.ZodLiteral<"List">, z.ZodLiteral<"Table">]>>>;
|
|
5966
5995
|
columnCount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5967
5996
|
query: z.ZodObject<{
|
|
5968
5997
|
includes: z.ZodArray<z.ZodObject<{
|
|
@@ -6013,10 +6042,37 @@ export declare const HMBlockQuerySchema: z.ZodObject<{
|
|
|
6013
6042
|
limit?: unknown;
|
|
6014
6043
|
}>;
|
|
6015
6044
|
banner: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6045
|
+
table: z.ZodOptional<z.ZodObject<{
|
|
6046
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
6047
|
+
id: z.ZodString;
|
|
6048
|
+
visible: z.ZodBoolean;
|
|
6049
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
6050
|
+
}, "strip", z.ZodTypeAny, {
|
|
6051
|
+
id: string;
|
|
6052
|
+
visible: boolean;
|
|
6053
|
+
width?: number | undefined;
|
|
6054
|
+
}, {
|
|
6055
|
+
id: string;
|
|
6056
|
+
visible: boolean;
|
|
6057
|
+
width?: number | undefined;
|
|
6058
|
+
}>, "many">;
|
|
6059
|
+
}, "strip", z.ZodTypeAny, {
|
|
6060
|
+
columns: {
|
|
6061
|
+
id: string;
|
|
6062
|
+
visible: boolean;
|
|
6063
|
+
width?: number | undefined;
|
|
6064
|
+
}[];
|
|
6065
|
+
}, {
|
|
6066
|
+
columns: {
|
|
6067
|
+
id: string;
|
|
6068
|
+
visible: boolean;
|
|
6069
|
+
width?: number | undefined;
|
|
6070
|
+
}[];
|
|
6071
|
+
}>>;
|
|
6016
6072
|
childrenType: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Group">, z.ZodLiteral<"Ordered">, z.ZodLiteral<"Unordered">, z.ZodLiteral<"Blockquote">, z.ZodLiteral<"Grid">]>>>;
|
|
6017
6073
|
}, "strip", z.ZodTypeAny, {
|
|
6018
6074
|
columnCount: number;
|
|
6019
|
-
style: "Card" | "List";
|
|
6075
|
+
style: "Card" | "List" | "Table";
|
|
6020
6076
|
query: {
|
|
6021
6077
|
includes: {
|
|
6022
6078
|
space: string;
|
|
@@ -6031,6 +6087,13 @@ export declare const HMBlockQuerySchema: z.ZodObject<{
|
|
|
6031
6087
|
};
|
|
6032
6088
|
banner: boolean;
|
|
6033
6089
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
6090
|
+
table?: {
|
|
6091
|
+
columns: {
|
|
6092
|
+
id: string;
|
|
6093
|
+
visible: boolean;
|
|
6094
|
+
width?: number | undefined;
|
|
6095
|
+
}[];
|
|
6096
|
+
} | undefined;
|
|
6034
6097
|
}, {
|
|
6035
6098
|
query: {
|
|
6036
6099
|
includes: {
|
|
@@ -6046,8 +6109,15 @@ export declare const HMBlockQuerySchema: z.ZodObject<{
|
|
|
6046
6109
|
};
|
|
6047
6110
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
6048
6111
|
columnCount?: number | undefined;
|
|
6049
|
-
style?: "Card" | "List" | undefined;
|
|
6112
|
+
style?: "Card" | "List" | "Table" | undefined;
|
|
6050
6113
|
banner?: boolean | undefined;
|
|
6114
|
+
table?: {
|
|
6115
|
+
columns: {
|
|
6116
|
+
id: string;
|
|
6117
|
+
visible: boolean;
|
|
6118
|
+
width?: number | undefined;
|
|
6119
|
+
}[];
|
|
6120
|
+
} | undefined;
|
|
6051
6121
|
}>;
|
|
6052
6122
|
id: z.ZodString;
|
|
6053
6123
|
revision: z.ZodOptional<z.ZodString>;
|
|
@@ -6060,7 +6130,7 @@ export declare const HMBlockQuerySchema: z.ZodObject<{
|
|
|
6060
6130
|
id: string;
|
|
6061
6131
|
attributes: {
|
|
6062
6132
|
columnCount: number;
|
|
6063
|
-
style: "Card" | "List";
|
|
6133
|
+
style: "Card" | "List" | "Table";
|
|
6064
6134
|
query: {
|
|
6065
6135
|
includes: {
|
|
6066
6136
|
space: string;
|
|
@@ -6075,6 +6145,13 @@ export declare const HMBlockQuerySchema: z.ZodObject<{
|
|
|
6075
6145
|
};
|
|
6076
6146
|
banner: boolean;
|
|
6077
6147
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
6148
|
+
table?: {
|
|
6149
|
+
columns: {
|
|
6150
|
+
id: string;
|
|
6151
|
+
visible: boolean;
|
|
6152
|
+
width?: number | undefined;
|
|
6153
|
+
}[];
|
|
6154
|
+
} | undefined;
|
|
6078
6155
|
};
|
|
6079
6156
|
link?: "" | undefined;
|
|
6080
6157
|
text?: "" | undefined;
|
|
@@ -6098,8 +6175,15 @@ export declare const HMBlockQuerySchema: z.ZodObject<{
|
|
|
6098
6175
|
};
|
|
6099
6176
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
6100
6177
|
columnCount?: number | undefined;
|
|
6101
|
-
style?: "Card" | "List" | undefined;
|
|
6178
|
+
style?: "Card" | "List" | "Table" | undefined;
|
|
6102
6179
|
banner?: boolean | undefined;
|
|
6180
|
+
table?: {
|
|
6181
|
+
columns: {
|
|
6182
|
+
id: string;
|
|
6183
|
+
visible: boolean;
|
|
6184
|
+
width?: number | undefined;
|
|
6185
|
+
}[];
|
|
6186
|
+
} | undefined;
|
|
6103
6187
|
};
|
|
6104
6188
|
link?: "" | undefined;
|
|
6105
6189
|
text?: "" | undefined;
|
|
@@ -7138,14 +7222,14 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
7138
7222
|
columnCount: z.ZodOptional<z.ZodNumber>;
|
|
7139
7223
|
}, "strip", z.ZodTypeAny, {
|
|
7140
7224
|
name?: string | undefined;
|
|
7225
|
+
width?: number | undefined;
|
|
7141
7226
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
7142
7227
|
columnCount?: number | undefined;
|
|
7143
|
-
width?: number | undefined;
|
|
7144
7228
|
}, {
|
|
7145
7229
|
name?: string | undefined;
|
|
7230
|
+
width?: number | undefined;
|
|
7146
7231
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
7147
7232
|
columnCount?: number | undefined;
|
|
7148
|
-
width?: number | undefined;
|
|
7149
7233
|
}>>>;
|
|
7150
7234
|
link: z.ZodString;
|
|
7151
7235
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -7415,9 +7499,9 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
7415
7499
|
id: string;
|
|
7416
7500
|
attributes: {
|
|
7417
7501
|
name?: string | undefined;
|
|
7502
|
+
width?: number | undefined;
|
|
7418
7503
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
7419
7504
|
columnCount?: number | undefined;
|
|
7420
|
-
width?: number | undefined;
|
|
7421
7505
|
};
|
|
7422
7506
|
text: string;
|
|
7423
7507
|
annotations?: ({
|
|
@@ -7508,9 +7592,9 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
7508
7592
|
id: string;
|
|
7509
7593
|
attributes?: {
|
|
7510
7594
|
name?: string | undefined;
|
|
7595
|
+
width?: number | undefined;
|
|
7511
7596
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
7512
7597
|
columnCount?: number | undefined;
|
|
7513
|
-
width?: number | undefined;
|
|
7514
7598
|
} | undefined;
|
|
7515
7599
|
text?: string | undefined;
|
|
7516
7600
|
annotations?: ({
|
|
@@ -7606,17 +7690,17 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
7606
7690
|
columnCount: z.ZodOptional<z.ZodNumber>;
|
|
7607
7691
|
}, "strip", z.ZodTypeAny, {
|
|
7608
7692
|
name?: string | undefined;
|
|
7693
|
+
width?: number | undefined;
|
|
7609
7694
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
7610
7695
|
columnCount?: number | undefined;
|
|
7611
|
-
width?: number | undefined;
|
|
7612
7696
|
autoplay?: boolean | undefined;
|
|
7613
7697
|
loop?: boolean | undefined;
|
|
7614
7698
|
muted?: boolean | undefined;
|
|
7615
7699
|
}, {
|
|
7616
7700
|
name?: string | undefined;
|
|
7701
|
+
width?: number | undefined;
|
|
7617
7702
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
7618
7703
|
columnCount?: number | undefined;
|
|
7619
|
-
width?: number | undefined;
|
|
7620
7704
|
autoplay?: boolean | undefined;
|
|
7621
7705
|
loop?: boolean | undefined;
|
|
7622
7706
|
muted?: boolean | undefined;
|
|
@@ -7633,9 +7717,9 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
7633
7717
|
id: string;
|
|
7634
7718
|
attributes: {
|
|
7635
7719
|
name?: string | undefined;
|
|
7720
|
+
width?: number | undefined;
|
|
7636
7721
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
7637
7722
|
columnCount?: number | undefined;
|
|
7638
|
-
width?: number | undefined;
|
|
7639
7723
|
autoplay?: boolean | undefined;
|
|
7640
7724
|
loop?: boolean | undefined;
|
|
7641
7725
|
muted?: boolean | undefined;
|
|
@@ -7649,9 +7733,9 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
7649
7733
|
id: string;
|
|
7650
7734
|
attributes?: {
|
|
7651
7735
|
name?: string | undefined;
|
|
7736
|
+
width?: number | undefined;
|
|
7652
7737
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
7653
7738
|
columnCount?: number | undefined;
|
|
7654
|
-
width?: number | undefined;
|
|
7655
7739
|
autoplay?: boolean | undefined;
|
|
7656
7740
|
loop?: boolean | undefined;
|
|
7657
7741
|
muted?: boolean | undefined;
|
|
@@ -7939,14 +8023,14 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
7939
8023
|
childrenType: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Group">, z.ZodLiteral<"Ordered">, z.ZodLiteral<"Unordered">, z.ZodLiteral<"Blockquote">, z.ZodLiteral<"Grid">]>>>;
|
|
7940
8024
|
columnCount: z.ZodOptional<z.ZodNumber>;
|
|
7941
8025
|
}, "strip", z.ZodTypeAny, {
|
|
8026
|
+
width?: number | undefined;
|
|
7942
8027
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
7943
8028
|
columnCount?: number | undefined;
|
|
7944
|
-
width?: number | undefined;
|
|
7945
8029
|
isHeader?: boolean | undefined;
|
|
7946
8030
|
}, {
|
|
8031
|
+
width?: number | undefined;
|
|
7947
8032
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
7948
8033
|
columnCount?: number | undefined;
|
|
7949
|
-
width?: number | undefined;
|
|
7950
8034
|
isHeader?: boolean | undefined;
|
|
7951
8035
|
}>>>;
|
|
7952
8036
|
id: z.ZodString;
|
|
@@ -7959,9 +8043,9 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
7959
8043
|
type: "TableColumn";
|
|
7960
8044
|
id: string;
|
|
7961
8045
|
attributes: {
|
|
8046
|
+
width?: number | undefined;
|
|
7962
8047
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
7963
8048
|
columnCount?: number | undefined;
|
|
7964
|
-
width?: number | undefined;
|
|
7965
8049
|
isHeader?: boolean | undefined;
|
|
7966
8050
|
};
|
|
7967
8051
|
link?: "" | undefined;
|
|
@@ -7973,9 +8057,9 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
7973
8057
|
id: string;
|
|
7974
8058
|
link?: "" | undefined;
|
|
7975
8059
|
attributes?: {
|
|
8060
|
+
width?: number | undefined;
|
|
7976
8061
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
7977
8062
|
columnCount?: number | undefined;
|
|
7978
|
-
width?: number | undefined;
|
|
7979
8063
|
isHeader?: boolean | undefined;
|
|
7980
8064
|
} | undefined;
|
|
7981
8065
|
text?: "" | undefined;
|
|
@@ -7983,7 +8067,7 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
7983
8067
|
revision?: string | undefined;
|
|
7984
8068
|
}>, z.ZodObject<{
|
|
7985
8069
|
attributes: z.ZodObject<{
|
|
7986
|
-
style: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Card">, z.ZodLiteral<"List">]>>>;
|
|
8070
|
+
style: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Card">, z.ZodLiteral<"List">, z.ZodLiteral<"Table">]>>>;
|
|
7987
8071
|
columnCount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7988
8072
|
query: z.ZodObject<{
|
|
7989
8073
|
includes: z.ZodArray<z.ZodObject<{
|
|
@@ -8034,10 +8118,37 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
8034
8118
|
limit?: unknown;
|
|
8035
8119
|
}>;
|
|
8036
8120
|
banner: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8121
|
+
table: z.ZodOptional<z.ZodObject<{
|
|
8122
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
8123
|
+
id: z.ZodString;
|
|
8124
|
+
visible: z.ZodBoolean;
|
|
8125
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
8126
|
+
}, "strip", z.ZodTypeAny, {
|
|
8127
|
+
id: string;
|
|
8128
|
+
visible: boolean;
|
|
8129
|
+
width?: number | undefined;
|
|
8130
|
+
}, {
|
|
8131
|
+
id: string;
|
|
8132
|
+
visible: boolean;
|
|
8133
|
+
width?: number | undefined;
|
|
8134
|
+
}>, "many">;
|
|
8135
|
+
}, "strip", z.ZodTypeAny, {
|
|
8136
|
+
columns: {
|
|
8137
|
+
id: string;
|
|
8138
|
+
visible: boolean;
|
|
8139
|
+
width?: number | undefined;
|
|
8140
|
+
}[];
|
|
8141
|
+
}, {
|
|
8142
|
+
columns: {
|
|
8143
|
+
id: string;
|
|
8144
|
+
visible: boolean;
|
|
8145
|
+
width?: number | undefined;
|
|
8146
|
+
}[];
|
|
8147
|
+
}>>;
|
|
8037
8148
|
childrenType: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Group">, z.ZodLiteral<"Ordered">, z.ZodLiteral<"Unordered">, z.ZodLiteral<"Blockquote">, z.ZodLiteral<"Grid">]>>>;
|
|
8038
8149
|
}, "strip", z.ZodTypeAny, {
|
|
8039
8150
|
columnCount: number;
|
|
8040
|
-
style: "Card" | "List";
|
|
8151
|
+
style: "Card" | "List" | "Table";
|
|
8041
8152
|
query: {
|
|
8042
8153
|
includes: {
|
|
8043
8154
|
space: string;
|
|
@@ -8052,6 +8163,13 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
8052
8163
|
};
|
|
8053
8164
|
banner: boolean;
|
|
8054
8165
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
8166
|
+
table?: {
|
|
8167
|
+
columns: {
|
|
8168
|
+
id: string;
|
|
8169
|
+
visible: boolean;
|
|
8170
|
+
width?: number | undefined;
|
|
8171
|
+
}[];
|
|
8172
|
+
} | undefined;
|
|
8055
8173
|
}, {
|
|
8056
8174
|
query: {
|
|
8057
8175
|
includes: {
|
|
@@ -8067,8 +8185,15 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
8067
8185
|
};
|
|
8068
8186
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
8069
8187
|
columnCount?: number | undefined;
|
|
8070
|
-
style?: "Card" | "List" | undefined;
|
|
8188
|
+
style?: "Card" | "List" | "Table" | undefined;
|
|
8071
8189
|
banner?: boolean | undefined;
|
|
8190
|
+
table?: {
|
|
8191
|
+
columns: {
|
|
8192
|
+
id: string;
|
|
8193
|
+
visible: boolean;
|
|
8194
|
+
width?: number | undefined;
|
|
8195
|
+
}[];
|
|
8196
|
+
} | undefined;
|
|
8072
8197
|
}>;
|
|
8073
8198
|
id: z.ZodString;
|
|
8074
8199
|
revision: z.ZodOptional<z.ZodString>;
|
|
@@ -8081,7 +8206,7 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
8081
8206
|
id: string;
|
|
8082
8207
|
attributes: {
|
|
8083
8208
|
columnCount: number;
|
|
8084
|
-
style: "Card" | "List";
|
|
8209
|
+
style: "Card" | "List" | "Table";
|
|
8085
8210
|
query: {
|
|
8086
8211
|
includes: {
|
|
8087
8212
|
space: string;
|
|
@@ -8096,6 +8221,13 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
8096
8221
|
};
|
|
8097
8222
|
banner: boolean;
|
|
8098
8223
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
8224
|
+
table?: {
|
|
8225
|
+
columns: {
|
|
8226
|
+
id: string;
|
|
8227
|
+
visible: boolean;
|
|
8228
|
+
width?: number | undefined;
|
|
8229
|
+
}[];
|
|
8230
|
+
} | undefined;
|
|
8099
8231
|
};
|
|
8100
8232
|
link?: "" | undefined;
|
|
8101
8233
|
text?: "" | undefined;
|
|
@@ -8119,8 +8251,15 @@ export declare const HMBlockKnownSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
|
|
|
8119
8251
|
};
|
|
8120
8252
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
8121
8253
|
columnCount?: number | undefined;
|
|
8122
|
-
style?: "Card" | "List" | undefined;
|
|
8254
|
+
style?: "Card" | "List" | "Table" | undefined;
|
|
8123
8255
|
banner?: boolean | undefined;
|
|
8256
|
+
table?: {
|
|
8257
|
+
columns: {
|
|
8258
|
+
id: string;
|
|
8259
|
+
visible: boolean;
|
|
8260
|
+
width?: number | undefined;
|
|
8261
|
+
}[];
|
|
8262
|
+
} | undefined;
|
|
8124
8263
|
};
|
|
8125
8264
|
link?: "" | undefined;
|
|
8126
8265
|
text?: "" | undefined;
|
|
@@ -9182,14 +9321,14 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
9182
9321
|
columnCount: z.ZodOptional<z.ZodNumber>;
|
|
9183
9322
|
}, "strip", z.ZodTypeAny, {
|
|
9184
9323
|
name?: string | undefined;
|
|
9324
|
+
width?: number | undefined;
|
|
9185
9325
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
9186
9326
|
columnCount?: number | undefined;
|
|
9187
|
-
width?: number | undefined;
|
|
9188
9327
|
}, {
|
|
9189
9328
|
name?: string | undefined;
|
|
9329
|
+
width?: number | undefined;
|
|
9190
9330
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
9191
9331
|
columnCount?: number | undefined;
|
|
9192
|
-
width?: number | undefined;
|
|
9193
9332
|
}>>>;
|
|
9194
9333
|
link: z.ZodString;
|
|
9195
9334
|
text: z.ZodDefault<z.ZodString>;
|
|
@@ -9459,9 +9598,9 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
9459
9598
|
id: string;
|
|
9460
9599
|
attributes: {
|
|
9461
9600
|
name?: string | undefined;
|
|
9601
|
+
width?: number | undefined;
|
|
9462
9602
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
9463
9603
|
columnCount?: number | undefined;
|
|
9464
|
-
width?: number | undefined;
|
|
9465
9604
|
};
|
|
9466
9605
|
text: string;
|
|
9467
9606
|
annotations?: ({
|
|
@@ -9552,9 +9691,9 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
9552
9691
|
id: string;
|
|
9553
9692
|
attributes?: {
|
|
9554
9693
|
name?: string | undefined;
|
|
9694
|
+
width?: number | undefined;
|
|
9555
9695
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
9556
9696
|
columnCount?: number | undefined;
|
|
9557
|
-
width?: number | undefined;
|
|
9558
9697
|
} | undefined;
|
|
9559
9698
|
text?: string | undefined;
|
|
9560
9699
|
annotations?: ({
|
|
@@ -9650,17 +9789,17 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
9650
9789
|
columnCount: z.ZodOptional<z.ZodNumber>;
|
|
9651
9790
|
}, "strip", z.ZodTypeAny, {
|
|
9652
9791
|
name?: string | undefined;
|
|
9792
|
+
width?: number | undefined;
|
|
9653
9793
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
9654
9794
|
columnCount?: number | undefined;
|
|
9655
|
-
width?: number | undefined;
|
|
9656
9795
|
autoplay?: boolean | undefined;
|
|
9657
9796
|
loop?: boolean | undefined;
|
|
9658
9797
|
muted?: boolean | undefined;
|
|
9659
9798
|
}, {
|
|
9660
9799
|
name?: string | undefined;
|
|
9800
|
+
width?: number | undefined;
|
|
9661
9801
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
9662
9802
|
columnCount?: number | undefined;
|
|
9663
|
-
width?: number | undefined;
|
|
9664
9803
|
autoplay?: boolean | undefined;
|
|
9665
9804
|
loop?: boolean | undefined;
|
|
9666
9805
|
muted?: boolean | undefined;
|
|
@@ -9677,9 +9816,9 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
9677
9816
|
id: string;
|
|
9678
9817
|
attributes: {
|
|
9679
9818
|
name?: string | undefined;
|
|
9819
|
+
width?: number | undefined;
|
|
9680
9820
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
9681
9821
|
columnCount?: number | undefined;
|
|
9682
|
-
width?: number | undefined;
|
|
9683
9822
|
autoplay?: boolean | undefined;
|
|
9684
9823
|
loop?: boolean | undefined;
|
|
9685
9824
|
muted?: boolean | undefined;
|
|
@@ -9693,9 +9832,9 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
9693
9832
|
id: string;
|
|
9694
9833
|
attributes?: {
|
|
9695
9834
|
name?: string | undefined;
|
|
9835
|
+
width?: number | undefined;
|
|
9696
9836
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
9697
9837
|
columnCount?: number | undefined;
|
|
9698
|
-
width?: number | undefined;
|
|
9699
9838
|
autoplay?: boolean | undefined;
|
|
9700
9839
|
loop?: boolean | undefined;
|
|
9701
9840
|
muted?: boolean | undefined;
|
|
@@ -9983,14 +10122,14 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
9983
10122
|
childrenType: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Group">, z.ZodLiteral<"Ordered">, z.ZodLiteral<"Unordered">, z.ZodLiteral<"Blockquote">, z.ZodLiteral<"Grid">]>>>;
|
|
9984
10123
|
columnCount: z.ZodOptional<z.ZodNumber>;
|
|
9985
10124
|
}, "strip", z.ZodTypeAny, {
|
|
10125
|
+
width?: number | undefined;
|
|
9986
10126
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
9987
10127
|
columnCount?: number | undefined;
|
|
9988
|
-
width?: number | undefined;
|
|
9989
10128
|
isHeader?: boolean | undefined;
|
|
9990
10129
|
}, {
|
|
10130
|
+
width?: number | undefined;
|
|
9991
10131
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
9992
10132
|
columnCount?: number | undefined;
|
|
9993
|
-
width?: number | undefined;
|
|
9994
10133
|
isHeader?: boolean | undefined;
|
|
9995
10134
|
}>>>;
|
|
9996
10135
|
id: z.ZodString;
|
|
@@ -10003,9 +10142,9 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
10003
10142
|
type: "TableColumn";
|
|
10004
10143
|
id: string;
|
|
10005
10144
|
attributes: {
|
|
10145
|
+
width?: number | undefined;
|
|
10006
10146
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
10007
10147
|
columnCount?: number | undefined;
|
|
10008
|
-
width?: number | undefined;
|
|
10009
10148
|
isHeader?: boolean | undefined;
|
|
10010
10149
|
};
|
|
10011
10150
|
link?: "" | undefined;
|
|
@@ -10017,9 +10156,9 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
10017
10156
|
id: string;
|
|
10018
10157
|
link?: "" | undefined;
|
|
10019
10158
|
attributes?: {
|
|
10159
|
+
width?: number | undefined;
|
|
10020
10160
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
10021
10161
|
columnCount?: number | undefined;
|
|
10022
|
-
width?: number | undefined;
|
|
10023
10162
|
isHeader?: boolean | undefined;
|
|
10024
10163
|
} | undefined;
|
|
10025
10164
|
text?: "" | undefined;
|
|
@@ -10027,7 +10166,7 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
10027
10166
|
revision?: string | undefined;
|
|
10028
10167
|
}>, z.ZodObject<{
|
|
10029
10168
|
attributes: z.ZodObject<{
|
|
10030
|
-
style: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Card">, z.ZodLiteral<"List">]>>>;
|
|
10169
|
+
style: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Card">, z.ZodLiteral<"List">, z.ZodLiteral<"Table">]>>>;
|
|
10031
10170
|
columnCount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10032
10171
|
query: z.ZodObject<{
|
|
10033
10172
|
includes: z.ZodArray<z.ZodObject<{
|
|
@@ -10078,10 +10217,37 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
10078
10217
|
limit?: unknown;
|
|
10079
10218
|
}>;
|
|
10080
10219
|
banner: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10220
|
+
table: z.ZodOptional<z.ZodObject<{
|
|
10221
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
10222
|
+
id: z.ZodString;
|
|
10223
|
+
visible: z.ZodBoolean;
|
|
10224
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
10225
|
+
}, "strip", z.ZodTypeAny, {
|
|
10226
|
+
id: string;
|
|
10227
|
+
visible: boolean;
|
|
10228
|
+
width?: number | undefined;
|
|
10229
|
+
}, {
|
|
10230
|
+
id: string;
|
|
10231
|
+
visible: boolean;
|
|
10232
|
+
width?: number | undefined;
|
|
10233
|
+
}>, "many">;
|
|
10234
|
+
}, "strip", z.ZodTypeAny, {
|
|
10235
|
+
columns: {
|
|
10236
|
+
id: string;
|
|
10237
|
+
visible: boolean;
|
|
10238
|
+
width?: number | undefined;
|
|
10239
|
+
}[];
|
|
10240
|
+
}, {
|
|
10241
|
+
columns: {
|
|
10242
|
+
id: string;
|
|
10243
|
+
visible: boolean;
|
|
10244
|
+
width?: number | undefined;
|
|
10245
|
+
}[];
|
|
10246
|
+
}>>;
|
|
10081
10247
|
childrenType: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"Group">, z.ZodLiteral<"Ordered">, z.ZodLiteral<"Unordered">, z.ZodLiteral<"Blockquote">, z.ZodLiteral<"Grid">]>>>;
|
|
10082
10248
|
}, "strip", z.ZodTypeAny, {
|
|
10083
10249
|
columnCount: number;
|
|
10084
|
-
style: "Card" | "List";
|
|
10250
|
+
style: "Card" | "List" | "Table";
|
|
10085
10251
|
query: {
|
|
10086
10252
|
includes: {
|
|
10087
10253
|
space: string;
|
|
@@ -10096,6 +10262,13 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
10096
10262
|
};
|
|
10097
10263
|
banner: boolean;
|
|
10098
10264
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
10265
|
+
table?: {
|
|
10266
|
+
columns: {
|
|
10267
|
+
id: string;
|
|
10268
|
+
visible: boolean;
|
|
10269
|
+
width?: number | undefined;
|
|
10270
|
+
}[];
|
|
10271
|
+
} | undefined;
|
|
10099
10272
|
}, {
|
|
10100
10273
|
query: {
|
|
10101
10274
|
includes: {
|
|
@@ -10111,8 +10284,15 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
10111
10284
|
};
|
|
10112
10285
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
10113
10286
|
columnCount?: number | undefined;
|
|
10114
|
-
style?: "Card" | "List" | undefined;
|
|
10287
|
+
style?: "Card" | "List" | "Table" | undefined;
|
|
10115
10288
|
banner?: boolean | undefined;
|
|
10289
|
+
table?: {
|
|
10290
|
+
columns: {
|
|
10291
|
+
id: string;
|
|
10292
|
+
visible: boolean;
|
|
10293
|
+
width?: number | undefined;
|
|
10294
|
+
}[];
|
|
10295
|
+
} | undefined;
|
|
10116
10296
|
}>;
|
|
10117
10297
|
id: z.ZodString;
|
|
10118
10298
|
revision: z.ZodOptional<z.ZodString>;
|
|
@@ -10125,7 +10305,7 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
10125
10305
|
id: string;
|
|
10126
10306
|
attributes: {
|
|
10127
10307
|
columnCount: number;
|
|
10128
|
-
style: "Card" | "List";
|
|
10308
|
+
style: "Card" | "List" | "Table";
|
|
10129
10309
|
query: {
|
|
10130
10310
|
includes: {
|
|
10131
10311
|
space: string;
|
|
@@ -10140,6 +10320,13 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
10140
10320
|
};
|
|
10141
10321
|
banner: boolean;
|
|
10142
10322
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
10323
|
+
table?: {
|
|
10324
|
+
columns: {
|
|
10325
|
+
id: string;
|
|
10326
|
+
visible: boolean;
|
|
10327
|
+
width?: number | undefined;
|
|
10328
|
+
}[];
|
|
10329
|
+
} | undefined;
|
|
10143
10330
|
};
|
|
10144
10331
|
link?: "" | undefined;
|
|
10145
10332
|
text?: "" | undefined;
|
|
@@ -10163,8 +10350,15 @@ export declare const HMBlockSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type",
|
|
|
10163
10350
|
};
|
|
10164
10351
|
childrenType?: "Group" | "Ordered" | "Unordered" | "Blockquote" | "Grid" | null | undefined;
|
|
10165
10352
|
columnCount?: number | undefined;
|
|
10166
|
-
style?: "Card" | "List" | undefined;
|
|
10353
|
+
style?: "Card" | "List" | "Table" | undefined;
|
|
10167
10354
|
banner?: boolean | undefined;
|
|
10355
|
+
table?: {
|
|
10356
|
+
columns: {
|
|
10357
|
+
id: string;
|
|
10358
|
+
visible: boolean;
|
|
10359
|
+
width?: number | undefined;
|
|
10360
|
+
}[];
|
|
10361
|
+
} | undefined;
|
|
10168
10362
|
};
|
|
10169
10363
|
link?: "" | undefined;
|
|
10170
10364
|
text?: "" | undefined;
|
package/dist/hm-types.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
serializeBlockRange,
|
|
17
17
|
toNumber,
|
|
18
18
|
unpackHmId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PDW4T53T.mjs";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_PARAMS,
|
|
22
22
|
decode,
|
|
@@ -4127,6 +4127,7 @@ function toImageWidthNumber(width) {
|
|
|
4127
4127
|
const percentage = Number(width.trim().slice(0, -1));
|
|
4128
4128
|
return Number.isFinite(percentage) && percentage > 0 ? percentage : null;
|
|
4129
4129
|
}
|
|
4130
|
+
if (width == null || width === "") return null;
|
|
4130
4131
|
return toNumber(width);
|
|
4131
4132
|
}
|
|
4132
4133
|
function unknownEditorBlockToHMBlock(editorBlock) {
|
|
@@ -4256,8 +4257,10 @@ function editorBlockToHMBlock(editorBlock) {
|
|
|
4256
4257
|
} else if (editorBlock.props.mediaRef) {
|
|
4257
4258
|
blockVideo.link = "";
|
|
4258
4259
|
}
|
|
4259
|
-
|
|
4260
|
-
|
|
4260
|
+
if (editorBlock.props.width != null && editorBlock.props.width !== "") {
|
|
4261
|
+
const width = toNumber(editorBlock.props.width);
|
|
4262
|
+
if (width) blockVideo.attributes.width = width;
|
|
4263
|
+
}
|
|
4261
4264
|
if (editorBlock.props.name) {
|
|
4262
4265
|
blockVideo.attributes.name = editorBlock.props.name;
|
|
4263
4266
|
}
|
|
@@ -4279,8 +4282,10 @@ function editorBlockToHMBlock(editorBlock) {
|
|
|
4279
4282
|
blockFile.link = "";
|
|
4280
4283
|
}
|
|
4281
4284
|
if (editorBlock.props.name) blockFile.attributes.name = editorBlock.props.name;
|
|
4282
|
-
|
|
4283
|
-
|
|
4285
|
+
if (editorBlock.props.size != null && editorBlock.props.size !== "") {
|
|
4286
|
+
const size = toNumber(editorBlock.props.size);
|
|
4287
|
+
if (size) blockFile.attributes.size = size;
|
|
4288
|
+
}
|
|
4284
4289
|
}
|
|
4285
4290
|
const blockButton = block.type === "Button" ? block : void 0;
|
|
4286
4291
|
if (blockButton && editorBlock.type == "button") {
|
|
@@ -4336,6 +4341,7 @@ function editorBlockToHMBlock(editorBlock) {
|
|
|
4336
4341
|
if (editorBlock.props.queryLimit) query.limit = Number(editorBlock.props.queryLimit);
|
|
4337
4342
|
blockQuery.attributes.query = query;
|
|
4338
4343
|
blockQuery.attributes.banner = editorBlock.props.banner == "true";
|
|
4344
|
+
if (editorBlock.props.tableConfig) blockQuery.attributes.table = JSON.parse(editorBlock.props.tableConfig);
|
|
4339
4345
|
}
|
|
4340
4346
|
const blockParse = HMBlockSchema.safeParse(block);
|
|
4341
4347
|
if (blockParse.success) {
|
|
@@ -4496,7 +4502,7 @@ function hmBlocksToEditorContent(blocks, opts = { level: 1 }) {
|
|
|
4496
4502
|
}).filter((block) => block !== null);
|
|
4497
4503
|
}
|
|
4498
4504
|
function hmBlockToEditorBlock(block) {
|
|
4499
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
4505
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
4500
4506
|
const blockType = toEditorBlockType(block.type);
|
|
4501
4507
|
if (blockType === "unknown") {
|
|
4502
4508
|
return {
|
|
@@ -4593,6 +4599,7 @@ function hmBlockToEditorBlock(block) {
|
|
|
4593
4599
|
queryProps.querySort = JSON.stringify(((_j = (_i = block.attributes) == null ? void 0 : _i.query) == null ? void 0 : _j.sort) || {});
|
|
4594
4600
|
queryProps.banner = ((_k = block.attributes) == null ? void 0 : _k.banner) ? "true" : "false";
|
|
4595
4601
|
queryProps.queryLimit = String(((_m = (_l = block.attributes) == null ? void 0 : _l.query) == null ? void 0 : _m.limit) || "");
|
|
4602
|
+
if ((_n = block.attributes) == null ? void 0 : _n.table) queryProps.tableConfig = JSON.stringify(block.attributes.table);
|
|
4596
4603
|
}
|
|
4597
4604
|
const blockText = block.text || "";
|
|
4598
4605
|
const leaves = out.content;
|