@supernova-studio/client 0.0.8 → 0.0.10

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.
@@ -0,0 +1,1577 @@
1
+ import * as _supernova_studio_model from '@supernova-studio/model';
2
+ import { PageBlockDefinition, PageBlockDefinitionProperty, PageBlockItemV2, PageBlockDefinitionPropertyType } from '@supernova-studio/model';
3
+ import { z } from 'zod';
4
+ import { Schema } from 'prosemirror-model';
5
+ import * as Y from 'yjs';
6
+
7
+ declare const GetBlockDefinitionsResponse: z.ZodObject<{
8
+ definitions: z.ZodArray<z.ZodObject<{
9
+ id: z.ZodString;
10
+ name: z.ZodString;
11
+ description: z.ZodString;
12
+ category: z.ZodEnum<["Text", "Layout", "Media", "Embed", "Figma", "Code", "Guidelines", "Tokens", "Components", "Assets", "Data", "Other"]>;
13
+ icon: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
14
+ documentationLink: z.ZodOptional<z.ZodString>;
15
+ searchKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
+ item: z.ZodObject<{
17
+ properties: z.ZodArray<z.ZodObject<{
18
+ id: z.ZodString;
19
+ name: z.ZodString;
20
+ type: z.ZodEnum<["RichText", "Text", "Boolean", "Number", "SingleSelect", "MultiSelect", "Image", "Token", "TokenType", "TokenProperty", "Component", "ComponentProperty", "Asset", "AssetProperty", "EmbedURL", "URL", "Markdown", "Code", "CodeSandbox", "Table", "Divider", "Storybook"]>;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ options: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
23
+ richTextStyle: z.ZodOptional<z.ZodEnum<["Title1", "Title2", "Title3", "Title4", "Title5", "Quote", "Callout", "OL", "UL", "Default"]>>;
24
+ textStyle: z.ZodOptional<z.ZodEnum<["Title1", "Title2", "Title3", "Title4", "Title5", "Default", "DefaultBold", "DefaultSemibold", "Small", "SmallBold", "SmallSemibold"]>>;
25
+ placeholder: z.ZodOptional<z.ZodString>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
28
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
29
+ placeholder?: string | undefined;
30
+ }, {
31
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
32
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
33
+ placeholder?: string | undefined;
34
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
35
+ variantOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
36
+ richTextStyle: z.ZodOptional<z.ZodEnum<["Title1", "Title2", "Title3", "Title4", "Title5", "Quote", "Callout", "OL", "UL", "Default"]>>;
37
+ textStyle: z.ZodOptional<z.ZodEnum<["Title1", "Title2", "Title3", "Title4", "Title5", "Default", "DefaultBold", "DefaultSemibold", "Small", "SmallBold", "SmallSemibold"]>>;
38
+ placeholder: z.ZodOptional<z.ZodString>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
41
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
42
+ placeholder?: string | undefined;
43
+ }, {
44
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
45
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
46
+ placeholder?: string | undefined;
47
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>>>>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ id: string;
50
+ type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
51
+ name: string;
52
+ description?: string | undefined;
53
+ options?: ({
54
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
55
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
56
+ placeholder?: string | undefined;
57
+ } & Record<string, any>) | undefined;
58
+ variantOptions?: Record<string, {
59
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
60
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
61
+ placeholder?: string | undefined;
62
+ } & Record<string, any>> | undefined;
63
+ }, {
64
+ id: string;
65
+ type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
66
+ name: string;
67
+ description?: string | undefined;
68
+ options?: ({
69
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
70
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
71
+ placeholder?: string | undefined;
72
+ } & Record<string, any>) | undefined;
73
+ variantOptions?: Record<string, {
74
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
75
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
76
+ placeholder?: string | undefined;
77
+ } & Record<string, any>> | undefined;
78
+ }>, "many">;
79
+ appearance: z.ZodOptional<z.ZodObject<{
80
+ isBordered: z.ZodOptional<z.ZodBoolean>;
81
+ hasBackground: z.ZodOptional<z.ZodBoolean>;
82
+ isEditorPresentationDifferent: z.ZodOptional<z.ZodBoolean>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ isBordered?: boolean | undefined;
85
+ hasBackground?: boolean | undefined;
86
+ isEditorPresentationDifferent?: boolean | undefined;
87
+ }, {
88
+ isBordered?: boolean | undefined;
89
+ hasBackground?: boolean | undefined;
90
+ isEditorPresentationDifferent?: boolean | undefined;
91
+ }>>;
92
+ variants: z.ZodArray<z.ZodObject<{
93
+ id: z.ZodString;
94
+ name: z.ZodString;
95
+ image: z.ZodOptional<z.ZodString>;
96
+ description: z.ZodOptional<z.ZodString>;
97
+ documentationLink: z.ZodOptional<z.ZodString>;
98
+ layout: z.ZodType<_supernova_studio_model.PageBlockDefinitionLayout, z.ZodTypeDef, _supernova_studio_model.PageBlockDefinitionLayout>;
99
+ maxColumns: z.ZodOptional<z.ZodNumber>;
100
+ defaultColumns: z.ZodOptional<z.ZodNumber>;
101
+ appearance: z.ZodOptional<z.ZodObject<{
102
+ isBordered: z.ZodOptional<z.ZodBoolean>;
103
+ hasBackground: z.ZodOptional<z.ZodBoolean>;
104
+ isEditorPresentationDifferent: z.ZodOptional<z.ZodBoolean>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ isBordered?: boolean | undefined;
107
+ hasBackground?: boolean | undefined;
108
+ isEditorPresentationDifferent?: boolean | undefined;
109
+ }, {
110
+ isBordered?: boolean | undefined;
111
+ hasBackground?: boolean | undefined;
112
+ isEditorPresentationDifferent?: boolean | undefined;
113
+ }>>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ id: string;
116
+ name: string;
117
+ layout: {
118
+ type: "Column" | "Row";
119
+ gap?: "None" | "Small" | "Medium" | "Large" | undefined;
120
+ columnAlign?: "Center" | "Start" | "End" | undefined;
121
+ columnResizing?: "Fill" | "Hug" | undefined;
122
+ } & {
123
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
124
+ };
125
+ image?: string | undefined;
126
+ description?: string | undefined;
127
+ documentationLink?: string | undefined;
128
+ maxColumns?: number | undefined;
129
+ defaultColumns?: number | undefined;
130
+ appearance?: {
131
+ isBordered?: boolean | undefined;
132
+ hasBackground?: boolean | undefined;
133
+ isEditorPresentationDifferent?: boolean | undefined;
134
+ } | undefined;
135
+ }, {
136
+ id: string;
137
+ name: string;
138
+ layout: {
139
+ type: "Column" | "Row";
140
+ gap?: "None" | "Small" | "Medium" | "Large" | undefined;
141
+ columnAlign?: "Center" | "Start" | "End" | undefined;
142
+ columnResizing?: "Fill" | "Hug" | undefined;
143
+ } & {
144
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
145
+ };
146
+ image?: string | undefined;
147
+ description?: string | undefined;
148
+ documentationLink?: string | undefined;
149
+ maxColumns?: number | undefined;
150
+ defaultColumns?: number | undefined;
151
+ appearance?: {
152
+ isBordered?: boolean | undefined;
153
+ hasBackground?: boolean | undefined;
154
+ isEditorPresentationDifferent?: boolean | undefined;
155
+ } | undefined;
156
+ }>, "many">;
157
+ defaultVariantKey: z.ZodString;
158
+ }, "strip", z.ZodTypeAny, {
159
+ properties: {
160
+ id: string;
161
+ type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
162
+ name: string;
163
+ description?: string | undefined;
164
+ options?: ({
165
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
166
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
167
+ placeholder?: string | undefined;
168
+ } & Record<string, any>) | undefined;
169
+ variantOptions?: Record<string, {
170
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
171
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
172
+ placeholder?: string | undefined;
173
+ } & Record<string, any>> | undefined;
174
+ }[];
175
+ variants: {
176
+ id: string;
177
+ name: string;
178
+ layout: {
179
+ type: "Column" | "Row";
180
+ gap?: "None" | "Small" | "Medium" | "Large" | undefined;
181
+ columnAlign?: "Center" | "Start" | "End" | undefined;
182
+ columnResizing?: "Fill" | "Hug" | undefined;
183
+ } & {
184
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
185
+ };
186
+ image?: string | undefined;
187
+ description?: string | undefined;
188
+ documentationLink?: string | undefined;
189
+ maxColumns?: number | undefined;
190
+ defaultColumns?: number | undefined;
191
+ appearance?: {
192
+ isBordered?: boolean | undefined;
193
+ hasBackground?: boolean | undefined;
194
+ isEditorPresentationDifferent?: boolean | undefined;
195
+ } | undefined;
196
+ }[];
197
+ defaultVariantKey: string;
198
+ appearance?: {
199
+ isBordered?: boolean | undefined;
200
+ hasBackground?: boolean | undefined;
201
+ isEditorPresentationDifferent?: boolean | undefined;
202
+ } | undefined;
203
+ }, {
204
+ properties: {
205
+ id: string;
206
+ type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
207
+ name: string;
208
+ description?: string | undefined;
209
+ options?: ({
210
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
211
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
212
+ placeholder?: string | undefined;
213
+ } & Record<string, any>) | undefined;
214
+ variantOptions?: Record<string, {
215
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
216
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
217
+ placeholder?: string | undefined;
218
+ } & Record<string, any>> | undefined;
219
+ }[];
220
+ variants: {
221
+ id: string;
222
+ name: string;
223
+ layout: {
224
+ type: "Column" | "Row";
225
+ gap?: "None" | "Small" | "Medium" | "Large" | undefined;
226
+ columnAlign?: "Center" | "Start" | "End" | undefined;
227
+ columnResizing?: "Fill" | "Hug" | undefined;
228
+ } & {
229
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
230
+ };
231
+ image?: string | undefined;
232
+ description?: string | undefined;
233
+ documentationLink?: string | undefined;
234
+ maxColumns?: number | undefined;
235
+ defaultColumns?: number | undefined;
236
+ appearance?: {
237
+ isBordered?: boolean | undefined;
238
+ hasBackground?: boolean | undefined;
239
+ isEditorPresentationDifferent?: boolean | undefined;
240
+ } | undefined;
241
+ }[];
242
+ defaultVariantKey: string;
243
+ appearance?: {
244
+ isBordered?: boolean | undefined;
245
+ hasBackground?: boolean | undefined;
246
+ isEditorPresentationDifferent?: boolean | undefined;
247
+ } | undefined;
248
+ }>;
249
+ behavior: z.ZodObject<{
250
+ dataType: z.ZodEnum<["Item", "Token", "Asset", "Component", "FigmaFrame"]>;
251
+ items: z.ZodOptional<z.ZodObject<{
252
+ numberOfItems: z.ZodNumber;
253
+ allowLinks: z.ZodBoolean;
254
+ }, "strip", z.ZodTypeAny, {
255
+ numberOfItems: number;
256
+ allowLinks: boolean;
257
+ }, {
258
+ numberOfItems: number;
259
+ allowLinks: boolean;
260
+ }>>;
261
+ entities: z.ZodOptional<z.ZodObject<{
262
+ selectionType: z.ZodEnum<["Entity", "Group", "EntityAndGroup"]>;
263
+ maxSelected: z.ZodNumber;
264
+ }, "strip", z.ZodTypeAny, {
265
+ selectionType: "Group" | "Entity" | "EntityAndGroup";
266
+ maxSelected: number;
267
+ }, {
268
+ selectionType: "Group" | "Entity" | "EntityAndGroup";
269
+ maxSelected: number;
270
+ }>>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ dataType: "Component" | "Token" | "Asset" | "Item" | "FigmaFrame";
273
+ items?: {
274
+ numberOfItems: number;
275
+ allowLinks: boolean;
276
+ } | undefined;
277
+ entities?: {
278
+ selectionType: "Group" | "Entity" | "EntityAndGroup";
279
+ maxSelected: number;
280
+ } | undefined;
281
+ }, {
282
+ dataType: "Component" | "Token" | "Asset" | "Item" | "FigmaFrame";
283
+ items?: {
284
+ numberOfItems: number;
285
+ allowLinks: boolean;
286
+ } | undefined;
287
+ entities?: {
288
+ selectionType: "Group" | "Entity" | "EntityAndGroup";
289
+ maxSelected: number;
290
+ } | undefined;
291
+ }>;
292
+ editorOptions: z.ZodObject<{
293
+ onboarding: z.ZodOptional<z.ZodObject<{
294
+ helpText: z.ZodString;
295
+ documentationLink: z.ZodOptional<z.ZodString>;
296
+ }, "strip", z.ZodTypeAny, {
297
+ helpText: string;
298
+ documentationLink?: string | undefined;
299
+ }, {
300
+ helpText: string;
301
+ documentationLink?: string | undefined;
302
+ }>>;
303
+ }, "strip", z.ZodTypeAny, {
304
+ onboarding?: {
305
+ helpText: string;
306
+ documentationLink?: string | undefined;
307
+ } | undefined;
308
+ }, {
309
+ onboarding?: {
310
+ helpText: string;
311
+ documentationLink?: string | undefined;
312
+ } | undefined;
313
+ }>;
314
+ appearance: z.ZodOptional<z.ZodObject<{
315
+ isBordered: z.ZodOptional<z.ZodBoolean>;
316
+ hasBackground: z.ZodOptional<z.ZodBoolean>;
317
+ isEditorPresentationDifferent: z.ZodOptional<z.ZodBoolean>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ isBordered?: boolean | undefined;
320
+ hasBackground?: boolean | undefined;
321
+ isEditorPresentationDifferent?: boolean | undefined;
322
+ }, {
323
+ isBordered?: boolean | undefined;
324
+ hasBackground?: boolean | undefined;
325
+ isEditorPresentationDifferent?: boolean | undefined;
326
+ }>>;
327
+ }, "strip", z.ZodTypeAny, {
328
+ id: string;
329
+ name: string;
330
+ description: string;
331
+ behavior: {
332
+ dataType: "Component" | "Token" | "Asset" | "Item" | "FigmaFrame";
333
+ items?: {
334
+ numberOfItems: number;
335
+ allowLinks: boolean;
336
+ } | undefined;
337
+ entities?: {
338
+ selectionType: "Group" | "Entity" | "EntityAndGroup";
339
+ maxSelected: number;
340
+ } | undefined;
341
+ };
342
+ category: "Text" | "Code" | "Embed" | "Figma" | "Layout" | "Media" | "Guidelines" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
343
+ item: {
344
+ properties: {
345
+ id: string;
346
+ type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
347
+ name: string;
348
+ description?: string | undefined;
349
+ options?: ({
350
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
351
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
352
+ placeholder?: string | undefined;
353
+ } & Record<string, any>) | undefined;
354
+ variantOptions?: Record<string, {
355
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
356
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
357
+ placeholder?: string | undefined;
358
+ } & Record<string, any>> | undefined;
359
+ }[];
360
+ variants: {
361
+ id: string;
362
+ name: string;
363
+ layout: {
364
+ type: "Column" | "Row";
365
+ gap?: "None" | "Small" | "Medium" | "Large" | undefined;
366
+ columnAlign?: "Center" | "Start" | "End" | undefined;
367
+ columnResizing?: "Fill" | "Hug" | undefined;
368
+ } & {
369
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
370
+ };
371
+ image?: string | undefined;
372
+ description?: string | undefined;
373
+ documentationLink?: string | undefined;
374
+ maxColumns?: number | undefined;
375
+ defaultColumns?: number | undefined;
376
+ appearance?: {
377
+ isBordered?: boolean | undefined;
378
+ hasBackground?: boolean | undefined;
379
+ isEditorPresentationDifferent?: boolean | undefined;
380
+ } | undefined;
381
+ }[];
382
+ defaultVariantKey: string;
383
+ appearance?: {
384
+ isBordered?: boolean | undefined;
385
+ hasBackground?: boolean | undefined;
386
+ isEditorPresentationDifferent?: boolean | undefined;
387
+ } | undefined;
388
+ };
389
+ editorOptions: {
390
+ onboarding?: {
391
+ helpText: string;
392
+ documentationLink?: string | undefined;
393
+ } | undefined;
394
+ };
395
+ icon?: {} | undefined;
396
+ documentationLink?: string | undefined;
397
+ searchKeywords?: string[] | undefined;
398
+ appearance?: {
399
+ isBordered?: boolean | undefined;
400
+ hasBackground?: boolean | undefined;
401
+ isEditorPresentationDifferent?: boolean | undefined;
402
+ } | undefined;
403
+ }, {
404
+ id: string;
405
+ name: string;
406
+ description: string;
407
+ behavior: {
408
+ dataType: "Component" | "Token" | "Asset" | "Item" | "FigmaFrame";
409
+ items?: {
410
+ numberOfItems: number;
411
+ allowLinks: boolean;
412
+ } | undefined;
413
+ entities?: {
414
+ selectionType: "Group" | "Entity" | "EntityAndGroup";
415
+ maxSelected: number;
416
+ } | undefined;
417
+ };
418
+ category: "Text" | "Code" | "Embed" | "Figma" | "Layout" | "Media" | "Guidelines" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
419
+ item: {
420
+ properties: {
421
+ id: string;
422
+ type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
423
+ name: string;
424
+ description?: string | undefined;
425
+ options?: ({
426
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
427
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
428
+ placeholder?: string | undefined;
429
+ } & Record<string, any>) | undefined;
430
+ variantOptions?: Record<string, {
431
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
432
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
433
+ placeholder?: string | undefined;
434
+ } & Record<string, any>> | undefined;
435
+ }[];
436
+ variants: {
437
+ id: string;
438
+ name: string;
439
+ layout: {
440
+ type: "Column" | "Row";
441
+ gap?: "None" | "Small" | "Medium" | "Large" | undefined;
442
+ columnAlign?: "Center" | "Start" | "End" | undefined;
443
+ columnResizing?: "Fill" | "Hug" | undefined;
444
+ } & {
445
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
446
+ };
447
+ image?: string | undefined;
448
+ description?: string | undefined;
449
+ documentationLink?: string | undefined;
450
+ maxColumns?: number | undefined;
451
+ defaultColumns?: number | undefined;
452
+ appearance?: {
453
+ isBordered?: boolean | undefined;
454
+ hasBackground?: boolean | undefined;
455
+ isEditorPresentationDifferent?: boolean | undefined;
456
+ } | undefined;
457
+ }[];
458
+ defaultVariantKey: string;
459
+ appearance?: {
460
+ isBordered?: boolean | undefined;
461
+ hasBackground?: boolean | undefined;
462
+ isEditorPresentationDifferent?: boolean | undefined;
463
+ } | undefined;
464
+ };
465
+ editorOptions: {
466
+ onboarding?: {
467
+ helpText: string;
468
+ documentationLink?: string | undefined;
469
+ } | undefined;
470
+ };
471
+ icon?: {} | undefined;
472
+ documentationLink?: string | undefined;
473
+ searchKeywords?: string[] | undefined;
474
+ appearance?: {
475
+ isBordered?: boolean | undefined;
476
+ hasBackground?: boolean | undefined;
477
+ isEditorPresentationDifferent?: boolean | undefined;
478
+ } | undefined;
479
+ }>, "many">;
480
+ }, "strip", z.ZodTypeAny, {
481
+ definitions: {
482
+ id: string;
483
+ name: string;
484
+ description: string;
485
+ behavior: {
486
+ dataType: "Component" | "Token" | "Asset" | "Item" | "FigmaFrame";
487
+ items?: {
488
+ numberOfItems: number;
489
+ allowLinks: boolean;
490
+ } | undefined;
491
+ entities?: {
492
+ selectionType: "Group" | "Entity" | "EntityAndGroup";
493
+ maxSelected: number;
494
+ } | undefined;
495
+ };
496
+ category: "Text" | "Code" | "Embed" | "Figma" | "Layout" | "Media" | "Guidelines" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
497
+ item: {
498
+ properties: {
499
+ id: string;
500
+ type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
501
+ name: string;
502
+ description?: string | undefined;
503
+ options?: ({
504
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
505
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
506
+ placeholder?: string | undefined;
507
+ } & Record<string, any>) | undefined;
508
+ variantOptions?: Record<string, {
509
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
510
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
511
+ placeholder?: string | undefined;
512
+ } & Record<string, any>> | undefined;
513
+ }[];
514
+ variants: {
515
+ id: string;
516
+ name: string;
517
+ layout: {
518
+ type: "Column" | "Row";
519
+ gap?: "None" | "Small" | "Medium" | "Large" | undefined;
520
+ columnAlign?: "Center" | "Start" | "End" | undefined;
521
+ columnResizing?: "Fill" | "Hug" | undefined;
522
+ } & {
523
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
524
+ };
525
+ image?: string | undefined;
526
+ description?: string | undefined;
527
+ documentationLink?: string | undefined;
528
+ maxColumns?: number | undefined;
529
+ defaultColumns?: number | undefined;
530
+ appearance?: {
531
+ isBordered?: boolean | undefined;
532
+ hasBackground?: boolean | undefined;
533
+ isEditorPresentationDifferent?: boolean | undefined;
534
+ } | undefined;
535
+ }[];
536
+ defaultVariantKey: string;
537
+ appearance?: {
538
+ isBordered?: boolean | undefined;
539
+ hasBackground?: boolean | undefined;
540
+ isEditorPresentationDifferent?: boolean | undefined;
541
+ } | undefined;
542
+ };
543
+ editorOptions: {
544
+ onboarding?: {
545
+ helpText: string;
546
+ documentationLink?: string | undefined;
547
+ } | undefined;
548
+ };
549
+ icon?: {} | undefined;
550
+ documentationLink?: string | undefined;
551
+ searchKeywords?: string[] | undefined;
552
+ appearance?: {
553
+ isBordered?: boolean | undefined;
554
+ hasBackground?: boolean | undefined;
555
+ isEditorPresentationDifferent?: boolean | undefined;
556
+ } | undefined;
557
+ }[];
558
+ }, {
559
+ definitions: {
560
+ id: string;
561
+ name: string;
562
+ description: string;
563
+ behavior: {
564
+ dataType: "Component" | "Token" | "Asset" | "Item" | "FigmaFrame";
565
+ items?: {
566
+ numberOfItems: number;
567
+ allowLinks: boolean;
568
+ } | undefined;
569
+ entities?: {
570
+ selectionType: "Group" | "Entity" | "EntityAndGroup";
571
+ maxSelected: number;
572
+ } | undefined;
573
+ };
574
+ category: "Text" | "Code" | "Embed" | "Figma" | "Layout" | "Media" | "Guidelines" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
575
+ item: {
576
+ properties: {
577
+ id: string;
578
+ type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
579
+ name: string;
580
+ description?: string | undefined;
581
+ options?: ({
582
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
583
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
584
+ placeholder?: string | undefined;
585
+ } & Record<string, any>) | undefined;
586
+ variantOptions?: Record<string, {
587
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
588
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
589
+ placeholder?: string | undefined;
590
+ } & Record<string, any>> | undefined;
591
+ }[];
592
+ variants: {
593
+ id: string;
594
+ name: string;
595
+ layout: {
596
+ type: "Column" | "Row";
597
+ gap?: "None" | "Small" | "Medium" | "Large" | undefined;
598
+ columnAlign?: "Center" | "Start" | "End" | undefined;
599
+ columnResizing?: "Fill" | "Hug" | undefined;
600
+ } & {
601
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
602
+ };
603
+ image?: string | undefined;
604
+ description?: string | undefined;
605
+ documentationLink?: string | undefined;
606
+ maxColumns?: number | undefined;
607
+ defaultColumns?: number | undefined;
608
+ appearance?: {
609
+ isBordered?: boolean | undefined;
610
+ hasBackground?: boolean | undefined;
611
+ isEditorPresentationDifferent?: boolean | undefined;
612
+ } | undefined;
613
+ }[];
614
+ defaultVariantKey: string;
615
+ appearance?: {
616
+ isBordered?: boolean | undefined;
617
+ hasBackground?: boolean | undefined;
618
+ isEditorPresentationDifferent?: boolean | undefined;
619
+ } | undefined;
620
+ };
621
+ editorOptions: {
622
+ onboarding?: {
623
+ helpText: string;
624
+ documentationLink?: string | undefined;
625
+ } | undefined;
626
+ };
627
+ icon?: {} | undefined;
628
+ documentationLink?: string | undefined;
629
+ searchKeywords?: string[] | undefined;
630
+ appearance?: {
631
+ isBordered?: boolean | undefined;
632
+ hasBackground?: boolean | undefined;
633
+ isEditorPresentationDifferent?: boolean | undefined;
634
+ } | undefined;
635
+ }[];
636
+ }>;
637
+ type GetBlockDefinitionsResponse = z.infer<typeof GetBlockDefinitionsResponse>;
638
+
639
+ declare const PageBlockEditorModel: z.ZodObject<{
640
+ id: z.ZodString;
641
+ data: z.ZodObject<{
642
+ packageId: z.ZodString;
643
+ variantId: z.ZodOptional<z.ZodString>;
644
+ indentLevel: z.ZodNumber;
645
+ appearance: z.ZodOptional<z.ZodObject<{
646
+ itemBackgroundColor: z.ZodObject<{
647
+ opacity: z.ZodObject<{
648
+ aliasTo: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
649
+ value: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodObject<{
650
+ unit: z.ZodEnum<["Raw", "Pixels"]>;
651
+ measure: z.ZodNumber;
652
+ }, "strip", z.ZodTypeAny, {
653
+ unit: "Pixels" | "Raw";
654
+ measure: number;
655
+ }, {
656
+ unit: "Pixels" | "Raw";
657
+ measure: number;
658
+ }>>>, {
659
+ unit: "Pixels" | "Raw";
660
+ measure: number;
661
+ } | undefined, {
662
+ unit: "Pixels" | "Raw";
663
+ measure: number;
664
+ } | null | undefined>;
665
+ }, "strip", z.ZodTypeAny, {
666
+ aliasTo?: string | undefined;
667
+ value?: {
668
+ unit: "Pixels" | "Raw";
669
+ measure: number;
670
+ } | undefined;
671
+ }, {
672
+ aliasTo?: string | null | undefined;
673
+ value?: {
674
+ unit: "Pixels" | "Raw";
675
+ measure: number;
676
+ } | null | undefined;
677
+ }>;
678
+ color: z.ZodUnion<[z.ZodString, z.ZodObject<{
679
+ aliasTo: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
680
+ }, "strip", z.ZodTypeAny, {
681
+ aliasTo?: string | undefined;
682
+ }, {
683
+ aliasTo?: string | null | undefined;
684
+ }>]>;
685
+ }, "strip", z.ZodTypeAny, {
686
+ opacity: {
687
+ aliasTo?: string | undefined;
688
+ value?: {
689
+ unit: "Pixels" | "Raw";
690
+ measure: number;
691
+ } | undefined;
692
+ };
693
+ color: (string | {
694
+ aliasTo?: string | undefined;
695
+ }) & (string | {
696
+ aliasTo?: string | undefined;
697
+ } | undefined);
698
+ }, {
699
+ opacity: {
700
+ aliasTo?: string | null | undefined;
701
+ value?: {
702
+ unit: "Pixels" | "Raw";
703
+ measure: number;
704
+ } | null | undefined;
705
+ };
706
+ color: (string | {
707
+ aliasTo?: string | null | undefined;
708
+ }) & (string | {
709
+ aliasTo?: string | null | undefined;
710
+ } | undefined);
711
+ }>;
712
+ }, "strip", z.ZodTypeAny, {
713
+ itemBackgroundColor: {
714
+ opacity: {
715
+ aliasTo?: string | undefined;
716
+ value?: {
717
+ unit: "Pixels" | "Raw";
718
+ measure: number;
719
+ } | undefined;
720
+ };
721
+ color: (string | {
722
+ aliasTo?: string | undefined;
723
+ }) & (string | {
724
+ aliasTo?: string | undefined;
725
+ } | undefined);
726
+ };
727
+ }, {
728
+ itemBackgroundColor: {
729
+ opacity: {
730
+ aliasTo?: string | null | undefined;
731
+ value?: {
732
+ unit: "Pixels" | "Raw";
733
+ measure: number;
734
+ } | null | undefined;
735
+ };
736
+ color: (string | {
737
+ aliasTo?: string | null | undefined;
738
+ }) & (string | {
739
+ aliasTo?: string | null | undefined;
740
+ } | undefined);
741
+ };
742
+ }>>;
743
+ items: z.ZodArray<z.ZodObject<{
744
+ id: z.ZodString;
745
+ linksTo: z.ZodOptional<z.ZodObject<{
746
+ type: z.ZodEnum<["Page", "PageHeading", "Group", "Url"]>;
747
+ pageId: z.ZodOptional<z.ZodString>;
748
+ pageHeadingId: z.ZodOptional<z.ZodString>;
749
+ groupId: z.ZodOptional<z.ZodString>;
750
+ url: z.ZodOptional<z.ZodString>;
751
+ openInNewTab: z.ZodOptional<z.ZodBoolean>;
752
+ }, "strip", z.ZodTypeAny, {
753
+ type: "Page" | "PageHeading" | "Group" | "Url";
754
+ pageId?: string | undefined;
755
+ pageHeadingId?: string | undefined;
756
+ groupId?: string | undefined;
757
+ url?: string | undefined;
758
+ openInNewTab?: boolean | undefined;
759
+ }, {
760
+ type: "Page" | "PageHeading" | "Group" | "Url";
761
+ pageId?: string | undefined;
762
+ pageHeadingId?: string | undefined;
763
+ groupId?: string | undefined;
764
+ url?: string | undefined;
765
+ openInNewTab?: boolean | undefined;
766
+ }>>;
767
+ props: z.ZodRecord<z.ZodString, z.ZodObject<{
768
+ value: z.ZodAny;
769
+ calloutType: z.ZodOptional<z.ZodEnum<["Info", "Success", "Warning", "Error"]>>;
770
+ }, "strip", z.ZodTypeAny, {
771
+ value?: any;
772
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
773
+ }, {
774
+ value?: any;
775
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
776
+ }>>;
777
+ }, "strip", z.ZodTypeAny, {
778
+ id: string;
779
+ props: Record<string, {
780
+ value?: any;
781
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
782
+ }>;
783
+ linksTo?: {
784
+ type: "Page" | "PageHeading" | "Group" | "Url";
785
+ pageId?: string | undefined;
786
+ pageHeadingId?: string | undefined;
787
+ groupId?: string | undefined;
788
+ url?: string | undefined;
789
+ openInNewTab?: boolean | undefined;
790
+ } | undefined;
791
+ }, {
792
+ id: string;
793
+ props: Record<string, {
794
+ value?: any;
795
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
796
+ }>;
797
+ linksTo?: {
798
+ type: "Page" | "PageHeading" | "Group" | "Url";
799
+ pageId?: string | undefined;
800
+ pageHeadingId?: string | undefined;
801
+ groupId?: string | undefined;
802
+ url?: string | undefined;
803
+ openInNewTab?: boolean | undefined;
804
+ } | undefined;
805
+ }>, "many">;
806
+ }, "strip", z.ZodTypeAny, {
807
+ packageId: string;
808
+ indentLevel: number;
809
+ items: {
810
+ id: string;
811
+ props: Record<string, {
812
+ value?: any;
813
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
814
+ }>;
815
+ linksTo?: {
816
+ type: "Page" | "PageHeading" | "Group" | "Url";
817
+ pageId?: string | undefined;
818
+ pageHeadingId?: string | undefined;
819
+ groupId?: string | undefined;
820
+ url?: string | undefined;
821
+ openInNewTab?: boolean | undefined;
822
+ } | undefined;
823
+ }[];
824
+ variantId?: string | undefined;
825
+ appearance?: {
826
+ itemBackgroundColor: {
827
+ opacity: {
828
+ aliasTo?: string | undefined;
829
+ value?: {
830
+ unit: "Pixels" | "Raw";
831
+ measure: number;
832
+ } | undefined;
833
+ };
834
+ color: (string | {
835
+ aliasTo?: string | undefined;
836
+ }) & (string | {
837
+ aliasTo?: string | undefined;
838
+ } | undefined);
839
+ };
840
+ } | undefined;
841
+ }, {
842
+ packageId: string;
843
+ indentLevel: number;
844
+ items: {
845
+ id: string;
846
+ props: Record<string, {
847
+ value?: any;
848
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
849
+ }>;
850
+ linksTo?: {
851
+ type: "Page" | "PageHeading" | "Group" | "Url";
852
+ pageId?: string | undefined;
853
+ pageHeadingId?: string | undefined;
854
+ groupId?: string | undefined;
855
+ url?: string | undefined;
856
+ openInNewTab?: boolean | undefined;
857
+ } | undefined;
858
+ }[];
859
+ variantId?: string | undefined;
860
+ appearance?: {
861
+ itemBackgroundColor: {
862
+ opacity: {
863
+ aliasTo?: string | null | undefined;
864
+ value?: {
865
+ unit: "Pixels" | "Raw";
866
+ measure: number;
867
+ } | null | undefined;
868
+ };
869
+ color: (string | {
870
+ aliasTo?: string | null | undefined;
871
+ }) & (string | {
872
+ aliasTo?: string | null | undefined;
873
+ } | undefined);
874
+ };
875
+ } | undefined;
876
+ }>;
877
+ }, "strip", z.ZodTypeAny, {
878
+ id: string;
879
+ data: {
880
+ packageId: string;
881
+ indentLevel: number;
882
+ items: {
883
+ id: string;
884
+ props: Record<string, {
885
+ value?: any;
886
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
887
+ }>;
888
+ linksTo?: {
889
+ type: "Page" | "PageHeading" | "Group" | "Url";
890
+ pageId?: string | undefined;
891
+ pageHeadingId?: string | undefined;
892
+ groupId?: string | undefined;
893
+ url?: string | undefined;
894
+ openInNewTab?: boolean | undefined;
895
+ } | undefined;
896
+ }[];
897
+ variantId?: string | undefined;
898
+ appearance?: {
899
+ itemBackgroundColor: {
900
+ opacity: {
901
+ aliasTo?: string | undefined;
902
+ value?: {
903
+ unit: "Pixels" | "Raw";
904
+ measure: number;
905
+ } | undefined;
906
+ };
907
+ color: (string | {
908
+ aliasTo?: string | undefined;
909
+ }) & (string | {
910
+ aliasTo?: string | undefined;
911
+ } | undefined);
912
+ };
913
+ } | undefined;
914
+ };
915
+ }, {
916
+ id: string;
917
+ data: {
918
+ packageId: string;
919
+ indentLevel: number;
920
+ items: {
921
+ id: string;
922
+ props: Record<string, {
923
+ value?: any;
924
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
925
+ }>;
926
+ linksTo?: {
927
+ type: "Page" | "PageHeading" | "Group" | "Url";
928
+ pageId?: string | undefined;
929
+ pageHeadingId?: string | undefined;
930
+ groupId?: string | undefined;
931
+ url?: string | undefined;
932
+ openInNewTab?: boolean | undefined;
933
+ } | undefined;
934
+ }[];
935
+ variantId?: string | undefined;
936
+ appearance?: {
937
+ itemBackgroundColor: {
938
+ opacity: {
939
+ aliasTo?: string | null | undefined;
940
+ value?: {
941
+ unit: "Pixels" | "Raw";
942
+ measure: number;
943
+ } | null | undefined;
944
+ };
945
+ color: (string | {
946
+ aliasTo?: string | null | undefined;
947
+ }) & (string | {
948
+ aliasTo?: string | null | undefined;
949
+ } | undefined);
950
+ };
951
+ } | undefined;
952
+ };
953
+ }>;
954
+ type PageBlockEditorModel = z.infer<typeof PageBlockEditorModel>;
955
+
956
+ declare const DocumentationPageEditorModel: z.ZodObject<{
957
+ blocks: z.ZodArray<z.ZodObject<{
958
+ id: z.ZodString;
959
+ data: z.ZodObject<{
960
+ packageId: z.ZodString;
961
+ variantId: z.ZodOptional<z.ZodString>;
962
+ indentLevel: z.ZodNumber;
963
+ appearance: z.ZodOptional<z.ZodObject<{
964
+ itemBackgroundColor: z.ZodObject<{
965
+ opacity: z.ZodObject<{
966
+ aliasTo: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
967
+ value: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodObject<{
968
+ unit: z.ZodEnum<["Raw", "Pixels"]>;
969
+ measure: z.ZodNumber;
970
+ }, "strip", z.ZodTypeAny, {
971
+ unit: "Pixels" | "Raw";
972
+ measure: number;
973
+ }, {
974
+ unit: "Pixels" | "Raw";
975
+ measure: number;
976
+ }>>>, {
977
+ unit: "Pixels" | "Raw";
978
+ measure: number;
979
+ } | undefined, {
980
+ unit: "Pixels" | "Raw";
981
+ measure: number;
982
+ } | null | undefined>;
983
+ }, "strip", z.ZodTypeAny, {
984
+ aliasTo?: string | undefined;
985
+ value?: {
986
+ unit: "Pixels" | "Raw";
987
+ measure: number;
988
+ } | undefined;
989
+ }, {
990
+ aliasTo?: string | null | undefined;
991
+ value?: {
992
+ unit: "Pixels" | "Raw";
993
+ measure: number;
994
+ } | null | undefined;
995
+ }>;
996
+ color: z.ZodUnion<[z.ZodString, z.ZodObject<{
997
+ aliasTo: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
998
+ }, "strip", z.ZodTypeAny, {
999
+ aliasTo?: string | undefined;
1000
+ }, {
1001
+ aliasTo?: string | null | undefined;
1002
+ }>]>;
1003
+ }, "strip", z.ZodTypeAny, {
1004
+ opacity: {
1005
+ aliasTo?: string | undefined;
1006
+ value?: {
1007
+ unit: "Pixels" | "Raw";
1008
+ measure: number;
1009
+ } | undefined;
1010
+ };
1011
+ color: (string | {
1012
+ aliasTo?: string | undefined;
1013
+ }) & (string | {
1014
+ aliasTo?: string | undefined;
1015
+ } | undefined);
1016
+ }, {
1017
+ opacity: {
1018
+ aliasTo?: string | null | undefined;
1019
+ value?: {
1020
+ unit: "Pixels" | "Raw";
1021
+ measure: number;
1022
+ } | null | undefined;
1023
+ };
1024
+ color: (string | {
1025
+ aliasTo?: string | null | undefined;
1026
+ }) & (string | {
1027
+ aliasTo?: string | null | undefined;
1028
+ } | undefined);
1029
+ }>;
1030
+ }, "strip", z.ZodTypeAny, {
1031
+ itemBackgroundColor: {
1032
+ opacity: {
1033
+ aliasTo?: string | undefined;
1034
+ value?: {
1035
+ unit: "Pixels" | "Raw";
1036
+ measure: number;
1037
+ } | undefined;
1038
+ };
1039
+ color: (string | {
1040
+ aliasTo?: string | undefined;
1041
+ }) & (string | {
1042
+ aliasTo?: string | undefined;
1043
+ } | undefined);
1044
+ };
1045
+ }, {
1046
+ itemBackgroundColor: {
1047
+ opacity: {
1048
+ aliasTo?: string | null | undefined;
1049
+ value?: {
1050
+ unit: "Pixels" | "Raw";
1051
+ measure: number;
1052
+ } | null | undefined;
1053
+ };
1054
+ color: (string | {
1055
+ aliasTo?: string | null | undefined;
1056
+ }) & (string | {
1057
+ aliasTo?: string | null | undefined;
1058
+ } | undefined);
1059
+ };
1060
+ }>>;
1061
+ items: z.ZodArray<z.ZodObject<{
1062
+ id: z.ZodString;
1063
+ linksTo: z.ZodOptional<z.ZodObject<{
1064
+ type: z.ZodEnum<["Page", "PageHeading", "Group", "Url"]>;
1065
+ pageId: z.ZodOptional<z.ZodString>;
1066
+ pageHeadingId: z.ZodOptional<z.ZodString>;
1067
+ groupId: z.ZodOptional<z.ZodString>;
1068
+ url: z.ZodOptional<z.ZodString>;
1069
+ openInNewTab: z.ZodOptional<z.ZodBoolean>;
1070
+ }, "strip", z.ZodTypeAny, {
1071
+ type: "Page" | "PageHeading" | "Group" | "Url";
1072
+ pageId?: string | undefined;
1073
+ pageHeadingId?: string | undefined;
1074
+ groupId?: string | undefined;
1075
+ url?: string | undefined;
1076
+ openInNewTab?: boolean | undefined;
1077
+ }, {
1078
+ type: "Page" | "PageHeading" | "Group" | "Url";
1079
+ pageId?: string | undefined;
1080
+ pageHeadingId?: string | undefined;
1081
+ groupId?: string | undefined;
1082
+ url?: string | undefined;
1083
+ openInNewTab?: boolean | undefined;
1084
+ }>>;
1085
+ props: z.ZodRecord<z.ZodString, z.ZodObject<{
1086
+ value: z.ZodAny;
1087
+ calloutType: z.ZodOptional<z.ZodEnum<["Info", "Success", "Warning", "Error"]>>;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ value?: any;
1090
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
1091
+ }, {
1092
+ value?: any;
1093
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
1094
+ }>>;
1095
+ }, "strip", z.ZodTypeAny, {
1096
+ id: string;
1097
+ props: Record<string, {
1098
+ value?: any;
1099
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
1100
+ }>;
1101
+ linksTo?: {
1102
+ type: "Page" | "PageHeading" | "Group" | "Url";
1103
+ pageId?: string | undefined;
1104
+ pageHeadingId?: string | undefined;
1105
+ groupId?: string | undefined;
1106
+ url?: string | undefined;
1107
+ openInNewTab?: boolean | undefined;
1108
+ } | undefined;
1109
+ }, {
1110
+ id: string;
1111
+ props: Record<string, {
1112
+ value?: any;
1113
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
1114
+ }>;
1115
+ linksTo?: {
1116
+ type: "Page" | "PageHeading" | "Group" | "Url";
1117
+ pageId?: string | undefined;
1118
+ pageHeadingId?: string | undefined;
1119
+ groupId?: string | undefined;
1120
+ url?: string | undefined;
1121
+ openInNewTab?: boolean | undefined;
1122
+ } | undefined;
1123
+ }>, "many">;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ packageId: string;
1126
+ indentLevel: number;
1127
+ items: {
1128
+ id: string;
1129
+ props: Record<string, {
1130
+ value?: any;
1131
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
1132
+ }>;
1133
+ linksTo?: {
1134
+ type: "Page" | "PageHeading" | "Group" | "Url";
1135
+ pageId?: string | undefined;
1136
+ pageHeadingId?: string | undefined;
1137
+ groupId?: string | undefined;
1138
+ url?: string | undefined;
1139
+ openInNewTab?: boolean | undefined;
1140
+ } | undefined;
1141
+ }[];
1142
+ variantId?: string | undefined;
1143
+ appearance?: {
1144
+ itemBackgroundColor: {
1145
+ opacity: {
1146
+ aliasTo?: string | undefined;
1147
+ value?: {
1148
+ unit: "Pixels" | "Raw";
1149
+ measure: number;
1150
+ } | undefined;
1151
+ };
1152
+ color: (string | {
1153
+ aliasTo?: string | undefined;
1154
+ }) & (string | {
1155
+ aliasTo?: string | undefined;
1156
+ } | undefined);
1157
+ };
1158
+ } | undefined;
1159
+ }, {
1160
+ packageId: string;
1161
+ indentLevel: number;
1162
+ items: {
1163
+ id: string;
1164
+ props: Record<string, {
1165
+ value?: any;
1166
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
1167
+ }>;
1168
+ linksTo?: {
1169
+ type: "Page" | "PageHeading" | "Group" | "Url";
1170
+ pageId?: string | undefined;
1171
+ pageHeadingId?: string | undefined;
1172
+ groupId?: string | undefined;
1173
+ url?: string | undefined;
1174
+ openInNewTab?: boolean | undefined;
1175
+ } | undefined;
1176
+ }[];
1177
+ variantId?: string | undefined;
1178
+ appearance?: {
1179
+ itemBackgroundColor: {
1180
+ opacity: {
1181
+ aliasTo?: string | null | undefined;
1182
+ value?: {
1183
+ unit: "Pixels" | "Raw";
1184
+ measure: number;
1185
+ } | null | undefined;
1186
+ };
1187
+ color: (string | {
1188
+ aliasTo?: string | null | undefined;
1189
+ }) & (string | {
1190
+ aliasTo?: string | null | undefined;
1191
+ } | undefined);
1192
+ };
1193
+ } | undefined;
1194
+ }>;
1195
+ }, "strip", z.ZodTypeAny, {
1196
+ id: string;
1197
+ data: {
1198
+ packageId: string;
1199
+ indentLevel: number;
1200
+ items: {
1201
+ id: string;
1202
+ props: Record<string, {
1203
+ value?: any;
1204
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
1205
+ }>;
1206
+ linksTo?: {
1207
+ type: "Page" | "PageHeading" | "Group" | "Url";
1208
+ pageId?: string | undefined;
1209
+ pageHeadingId?: string | undefined;
1210
+ groupId?: string | undefined;
1211
+ url?: string | undefined;
1212
+ openInNewTab?: boolean | undefined;
1213
+ } | undefined;
1214
+ }[];
1215
+ variantId?: string | undefined;
1216
+ appearance?: {
1217
+ itemBackgroundColor: {
1218
+ opacity: {
1219
+ aliasTo?: string | undefined;
1220
+ value?: {
1221
+ unit: "Pixels" | "Raw";
1222
+ measure: number;
1223
+ } | undefined;
1224
+ };
1225
+ color: (string | {
1226
+ aliasTo?: string | undefined;
1227
+ }) & (string | {
1228
+ aliasTo?: string | undefined;
1229
+ } | undefined);
1230
+ };
1231
+ } | undefined;
1232
+ };
1233
+ }, {
1234
+ id: string;
1235
+ data: {
1236
+ packageId: string;
1237
+ indentLevel: number;
1238
+ items: {
1239
+ id: string;
1240
+ props: Record<string, {
1241
+ value?: any;
1242
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
1243
+ }>;
1244
+ linksTo?: {
1245
+ type: "Page" | "PageHeading" | "Group" | "Url";
1246
+ pageId?: string | undefined;
1247
+ pageHeadingId?: string | undefined;
1248
+ groupId?: string | undefined;
1249
+ url?: string | undefined;
1250
+ openInNewTab?: boolean | undefined;
1251
+ } | undefined;
1252
+ }[];
1253
+ variantId?: string | undefined;
1254
+ appearance?: {
1255
+ itemBackgroundColor: {
1256
+ opacity: {
1257
+ aliasTo?: string | null | undefined;
1258
+ value?: {
1259
+ unit: "Pixels" | "Raw";
1260
+ measure: number;
1261
+ } | null | undefined;
1262
+ };
1263
+ color: (string | {
1264
+ aliasTo?: string | null | undefined;
1265
+ }) & (string | {
1266
+ aliasTo?: string | null | undefined;
1267
+ } | undefined);
1268
+ };
1269
+ } | undefined;
1270
+ };
1271
+ }>, "many">;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ blocks: {
1274
+ id: string;
1275
+ data: {
1276
+ packageId: string;
1277
+ indentLevel: number;
1278
+ items: {
1279
+ id: string;
1280
+ props: Record<string, {
1281
+ value?: any;
1282
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
1283
+ }>;
1284
+ linksTo?: {
1285
+ type: "Page" | "PageHeading" | "Group" | "Url";
1286
+ pageId?: string | undefined;
1287
+ pageHeadingId?: string | undefined;
1288
+ groupId?: string | undefined;
1289
+ url?: string | undefined;
1290
+ openInNewTab?: boolean | undefined;
1291
+ } | undefined;
1292
+ }[];
1293
+ variantId?: string | undefined;
1294
+ appearance?: {
1295
+ itemBackgroundColor: {
1296
+ opacity: {
1297
+ aliasTo?: string | undefined;
1298
+ value?: {
1299
+ unit: "Pixels" | "Raw";
1300
+ measure: number;
1301
+ } | undefined;
1302
+ };
1303
+ color: (string | {
1304
+ aliasTo?: string | undefined;
1305
+ }) & (string | {
1306
+ aliasTo?: string | undefined;
1307
+ } | undefined);
1308
+ };
1309
+ } | undefined;
1310
+ };
1311
+ }[];
1312
+ }, {
1313
+ blocks: {
1314
+ id: string;
1315
+ data: {
1316
+ packageId: string;
1317
+ indentLevel: number;
1318
+ items: {
1319
+ id: string;
1320
+ props: Record<string, {
1321
+ value?: any;
1322
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
1323
+ }>;
1324
+ linksTo?: {
1325
+ type: "Page" | "PageHeading" | "Group" | "Url";
1326
+ pageId?: string | undefined;
1327
+ pageHeadingId?: string | undefined;
1328
+ groupId?: string | undefined;
1329
+ url?: string | undefined;
1330
+ openInNewTab?: boolean | undefined;
1331
+ } | undefined;
1332
+ }[];
1333
+ variantId?: string | undefined;
1334
+ appearance?: {
1335
+ itemBackgroundColor: {
1336
+ opacity: {
1337
+ aliasTo?: string | null | undefined;
1338
+ value?: {
1339
+ unit: "Pixels" | "Raw";
1340
+ measure: number;
1341
+ } | null | undefined;
1342
+ };
1343
+ color: (string | {
1344
+ aliasTo?: string | null | undefined;
1345
+ }) & (string | {
1346
+ aliasTo?: string | null | undefined;
1347
+ } | undefined);
1348
+ };
1349
+ } | undefined;
1350
+ };
1351
+ }[];
1352
+ }>;
1353
+ type DocumentationPageEditorModel = z.infer<typeof DocumentationPageEditorModel>;
1354
+
1355
+ declare const pmSchema: Schema<"image" | "text" | "paragraph" | "reactComponent" | "tableRow" | "table" | "tableCell" | "tableHeader" | "tableContainer" | "codeBlock" | "hardBreak" | "heading" | "listItem" | "orderedList" | "bulletList" | "horizontalRule" | "blockquote" | "plainSection" | "sectionItem" | "tabsSection" | "sectionItemColumn" | "doc" | "callout" | "blockNode", "code" | "link" | "bold" | "italic" | "strike">;
1356
+
1357
+ type ProsemirrorNode = {
1358
+ type: string;
1359
+ text?: string;
1360
+ attrs?: Record<string, any>;
1361
+ marks?: ProsemirrorMark[];
1362
+ content?: ProsemirrorNode[];
1363
+ };
1364
+ type ProsemirrorMark = {
1365
+ type: string;
1366
+ attrs: Record<string, any>;
1367
+ };
1368
+ type ProsemirrorBlockItem = {
1369
+ properties: ProsemirrorBlockItemPropertyValue[];
1370
+ };
1371
+ type ProsemirrorBlockItemPropertyValue = {
1372
+ id: string;
1373
+ data: {
1374
+ value?: string;
1375
+ };
1376
+ };
1377
+
1378
+ type Input = {
1379
+ block: PageBlockEditorModel;
1380
+ definition: PageBlockDefinition;
1381
+ richTextProperty: PageBlockDefinitionProperty;
1382
+ };
1383
+ declare function pageToYXmlFragment(page: DocumentationPageEditorModel, definitions: PageBlockDefinition[], fragment: Y.XmlFragment): Y.XmlFragment;
1384
+ declare function pageToProsemirrorDoc(page: DocumentationPageEditorModel, definitions: PageBlockDefinition[]): ProsemirrorNode;
1385
+ declare function blockDefinitionForBlock(block: PageBlockEditorModel, definitions: PageBlockDefinition[]): {
1386
+ id: string;
1387
+ name: string;
1388
+ description: string;
1389
+ behavior: {
1390
+ dataType: "Component" | "Token" | "Asset" | "Item" | "FigmaFrame";
1391
+ items?: {
1392
+ numberOfItems: number;
1393
+ allowLinks: boolean;
1394
+ } | undefined;
1395
+ entities?: {
1396
+ selectionType: "Group" | "Entity" | "EntityAndGroup";
1397
+ maxSelected: number;
1398
+ } | undefined;
1399
+ };
1400
+ category: "Text" | "Code" | "Embed" | "Figma" | "Layout" | "Media" | "Guidelines" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
1401
+ item: {
1402
+ properties: {
1403
+ id: string;
1404
+ type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
1405
+ name: string;
1406
+ description?: string | undefined;
1407
+ options?: ({
1408
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
1409
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
1410
+ placeholder?: string | undefined;
1411
+ } & Record<string, any>) | undefined;
1412
+ variantOptions?: Record<string, {
1413
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
1414
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
1415
+ placeholder?: string | undefined;
1416
+ } & Record<string, any>> | undefined;
1417
+ }[];
1418
+ variants: {
1419
+ id: string;
1420
+ name: string;
1421
+ layout: {
1422
+ type: "Column" | "Row";
1423
+ gap?: "None" | "Small" | "Medium" | "Large" | undefined;
1424
+ columnAlign?: "Center" | "Start" | "End" | undefined;
1425
+ columnResizing?: "Fill" | "Hug" | undefined;
1426
+ } & {
1427
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
1428
+ };
1429
+ image?: string | undefined;
1430
+ description?: string | undefined;
1431
+ documentationLink?: string | undefined;
1432
+ maxColumns?: number | undefined;
1433
+ defaultColumns?: number | undefined;
1434
+ appearance?: {
1435
+ isBordered?: boolean | undefined;
1436
+ hasBackground?: boolean | undefined;
1437
+ isEditorPresentationDifferent?: boolean | undefined;
1438
+ } | undefined;
1439
+ }[];
1440
+ defaultVariantKey: string;
1441
+ appearance?: {
1442
+ isBordered?: boolean | undefined;
1443
+ hasBackground?: boolean | undefined;
1444
+ isEditorPresentationDifferent?: boolean | undefined;
1445
+ } | undefined;
1446
+ };
1447
+ editorOptions: {
1448
+ onboarding?: {
1449
+ helpText: string;
1450
+ documentationLink?: string | undefined;
1451
+ } | undefined;
1452
+ };
1453
+ icon?: {} | undefined;
1454
+ documentationLink?: string | undefined;
1455
+ searchKeywords?: string[] | undefined;
1456
+ appearance?: {
1457
+ isBordered?: boolean | undefined;
1458
+ hasBackground?: boolean | undefined;
1459
+ isEditorPresentationDifferent?: boolean | undefined;
1460
+ } | undefined;
1461
+ };
1462
+ declare function blockToProsemirrorNode(block: PageBlockEditorModel, definition: PageBlockDefinition): ProsemirrorNode | null;
1463
+ declare function serializeAsRichTextBlock(input: Input): ProsemirrorNode;
1464
+ declare function serializeAsCustomBlock(block: PageBlockEditorModel, definition: PageBlockDefinition): ProsemirrorNode;
1465
+
1466
+ declare function yXmlFragmetToPage(fragment: Y.XmlFragment, definitions: PageBlockDefinition[]): DocumentationPageEditorModel;
1467
+ declare function prosemirrorDocToPage(prosemirrorDoc: ProsemirrorNode, definitions: PageBlockDefinition[]): DocumentationPageEditorModel;
1468
+ declare function prosemirrorNodeToBlock(prosemirrorNode: ProsemirrorNode, definition: PageBlockDefinition): PageBlockEditorModel | null;
1469
+
1470
+ declare const BlockParsingUtils: {
1471
+ singleBlockItem(block: PageBlockEditorModel): {
1472
+ id: string;
1473
+ props: Record<string, {
1474
+ value?: any;
1475
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
1476
+ }>;
1477
+ linksTo?: {
1478
+ type: "Page" | "PageHeading" | "Group" | "Url";
1479
+ pageId?: string | undefined;
1480
+ pageHeadingId?: string | undefined;
1481
+ groupId?: string | undefined;
1482
+ url?: string | undefined;
1483
+ openInNewTab?: boolean | undefined;
1484
+ } | undefined;
1485
+ };
1486
+ richTextPropertyValue(item: PageBlockItemV2, propertyKey: string): {
1487
+ spans: {
1488
+ text: string;
1489
+ attributes: {
1490
+ type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
1491
+ link?: string | undefined;
1492
+ documentationItemId?: string | undefined;
1493
+ openInNewWindow?: boolean | undefined;
1494
+ }[];
1495
+ }[];
1496
+ };
1497
+ objectPropertyValue(item: PageBlockItemV2, propertyKey: string): {
1498
+ value?: any;
1499
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
1500
+ };
1501
+ propertyValue(item: PageBlockItemV2, propertyKey: string): {
1502
+ value?: any;
1503
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
1504
+ };
1505
+ safePropertyValue(item: PageBlockItemV2, propertyKey: string): {
1506
+ value?: any;
1507
+ calloutType?: "Info" | "Success" | "Warning" | "Error" | undefined;
1508
+ };
1509
+ };
1510
+ declare const BlockDefinitionUtils: {
1511
+ firstRichTextProperty(definition: PageBlockDefinition): {
1512
+ id: string;
1513
+ type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
1514
+ name: string;
1515
+ description?: string | undefined;
1516
+ options?: ({
1517
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
1518
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
1519
+ placeholder?: string | undefined;
1520
+ } & Record<string, any>) | undefined;
1521
+ variantOptions?: Record<string, {
1522
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
1523
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
1524
+ placeholder?: string | undefined;
1525
+ } & Record<string, any>> | undefined;
1526
+ } | undefined;
1527
+ firstTableProperty(definition: PageBlockDefinition): {
1528
+ id: string;
1529
+ type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
1530
+ name: string;
1531
+ description?: string | undefined;
1532
+ options?: ({
1533
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
1534
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
1535
+ placeholder?: string | undefined;
1536
+ } & Record<string, any>) | undefined;
1537
+ variantOptions?: Record<string, {
1538
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
1539
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
1540
+ placeholder?: string | undefined;
1541
+ } & Record<string, any>> | undefined;
1542
+ } | undefined;
1543
+ richTextProperty(definition: PageBlockDefinition, propertyKey: string): {
1544
+ id: string;
1545
+ type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
1546
+ name: string;
1547
+ description?: string | undefined;
1548
+ options?: ({
1549
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
1550
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
1551
+ placeholder?: string | undefined;
1552
+ } & Record<string, any>) | undefined;
1553
+ variantOptions?: Record<string, {
1554
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
1555
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
1556
+ placeholder?: string | undefined;
1557
+ } & Record<string, any>> | undefined;
1558
+ };
1559
+ property(definition: PageBlockDefinition, propertyKey: string, expectedPropertyType?: PageBlockDefinitionPropertyType): {
1560
+ id: string;
1561
+ type: "Image" | "Component" | "Token" | "Text" | "Number" | "Boolean" | "URL" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "EmbedURL" | "CodeSandbox" | "Storybook";
1562
+ name: string;
1563
+ description?: string | undefined;
1564
+ options?: ({
1565
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
1566
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
1567
+ placeholder?: string | undefined;
1568
+ } & Record<string, any>) | undefined;
1569
+ variantOptions?: Record<string, {
1570
+ richTextStyle?: "Quote" | "Callout" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "OL" | "UL" | "Default" | undefined;
1571
+ textStyle?: "Small" | "Title1" | "Title2" | "Title3" | "Title4" | "Title5" | "Default" | "DefaultBold" | "DefaultSemibold" | "SmallBold" | "SmallSemibold" | undefined;
1572
+ placeholder?: string | undefined;
1573
+ } & Record<string, any>> | undefined;
1574
+ };
1575
+ };
1576
+
1577
+ export { BlockDefinitionUtils, BlockParsingUtils, DocumentationPageEditorModel, GetBlockDefinitionsResponse, PageBlockEditorModel, type ProsemirrorBlockItem, type ProsemirrorBlockItemPropertyValue, type ProsemirrorMark, type ProsemirrorNode, blockDefinitionForBlock, blockToProsemirrorNode, pageToProsemirrorDoc, pageToYXmlFragment, pmSchema, prosemirrorDocToPage, prosemirrorNodeToBlock, serializeAsCustomBlock, serializeAsRichTextBlock, yXmlFragmetToPage };