@supernova-studio/client 0.0.12 → 0.0.13
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/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1366 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1365 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/docs-editor/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -4124,6 +4124,1370 @@ function nonNullFilter(item) {
|
|
|
4124
4124
|
return !!item;
|
|
4125
4125
|
}
|
|
4126
4126
|
|
|
4127
|
+
// src/docs-editor/mock.ts
|
|
4128
|
+
async function getMockPageBlockDefinitions() {
|
|
4129
|
+
return blocks;
|
|
4130
|
+
}
|
|
4131
|
+
var blocks = [
|
|
4132
|
+
{
|
|
4133
|
+
id: "io.supernova.block.rich-text",
|
|
4134
|
+
name: "Text",
|
|
4135
|
+
description: "Plain text",
|
|
4136
|
+
category: "Text",
|
|
4137
|
+
searchKeywords: ["paragraph", "rich text"],
|
|
4138
|
+
item: {
|
|
4139
|
+
properties: [
|
|
4140
|
+
{
|
|
4141
|
+
id: "text",
|
|
4142
|
+
name: "Text",
|
|
4143
|
+
type: "RichText",
|
|
4144
|
+
description: void 0,
|
|
4145
|
+
options: {
|
|
4146
|
+
placeholder: "Start writing with plain text",
|
|
4147
|
+
style: "Default"
|
|
4148
|
+
},
|
|
4149
|
+
variantOptions: void 0
|
|
4150
|
+
}
|
|
4151
|
+
],
|
|
4152
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4153
|
+
variants: [
|
|
4154
|
+
{
|
|
4155
|
+
id: "default",
|
|
4156
|
+
name: "Default",
|
|
4157
|
+
image: void 0,
|
|
4158
|
+
description: void 0,
|
|
4159
|
+
documentationLink: void 0,
|
|
4160
|
+
layout: { type: "Column", children: ["text"] },
|
|
4161
|
+
maxColumns: 1,
|
|
4162
|
+
defaultColumns: 1,
|
|
4163
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4164
|
+
}
|
|
4165
|
+
],
|
|
4166
|
+
defaultVariantKey: "default"
|
|
4167
|
+
},
|
|
4168
|
+
behavior: {
|
|
4169
|
+
dataType: "Item",
|
|
4170
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
4171
|
+
entities: void 0
|
|
4172
|
+
},
|
|
4173
|
+
editorOptions: {
|
|
4174
|
+
onboarding: {
|
|
4175
|
+
helpText: "Use rich text block to write text and add additional formatting to it.",
|
|
4176
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/text-HxZ9ssJR"
|
|
4177
|
+
}
|
|
4178
|
+
},
|
|
4179
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4180
|
+
},
|
|
4181
|
+
{
|
|
4182
|
+
id: "io.supernova.block.title1",
|
|
4183
|
+
name: "Title 1",
|
|
4184
|
+
description: "Main sections within the page",
|
|
4185
|
+
category: "Text",
|
|
4186
|
+
searchKeywords: ["heading"],
|
|
4187
|
+
item: {
|
|
4188
|
+
properties: [
|
|
4189
|
+
{
|
|
4190
|
+
id: "text",
|
|
4191
|
+
name: "Text",
|
|
4192
|
+
type: "RichText",
|
|
4193
|
+
options: { placeholder: "Title 1", style: "Title1" }
|
|
4194
|
+
}
|
|
4195
|
+
],
|
|
4196
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4197
|
+
variants: [
|
|
4198
|
+
{
|
|
4199
|
+
id: "default",
|
|
4200
|
+
name: "Default",
|
|
4201
|
+
documentationLink: void 0,
|
|
4202
|
+
layout: { type: "Column", children: ["text"] },
|
|
4203
|
+
maxColumns: 1,
|
|
4204
|
+
defaultColumns: 1,
|
|
4205
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4206
|
+
}
|
|
4207
|
+
],
|
|
4208
|
+
defaultVariantKey: "default"
|
|
4209
|
+
},
|
|
4210
|
+
behavior: {
|
|
4211
|
+
dataType: "Item",
|
|
4212
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
4213
|
+
entities: void 0
|
|
4214
|
+
},
|
|
4215
|
+
editorOptions: {
|
|
4216
|
+
onboarding: {
|
|
4217
|
+
helpText: "Use for main sections within the page, introducing broad topics or themes.",
|
|
4218
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
|
|
4219
|
+
}
|
|
4220
|
+
},
|
|
4221
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4222
|
+
},
|
|
4223
|
+
{
|
|
4224
|
+
id: "io.supernova.block.title2",
|
|
4225
|
+
name: "Title 2",
|
|
4226
|
+
description: "Section subheadings",
|
|
4227
|
+
category: "Text",
|
|
4228
|
+
icon: void 0,
|
|
4229
|
+
documentationLink: void 0,
|
|
4230
|
+
searchKeywords: ["heading"],
|
|
4231
|
+
item: {
|
|
4232
|
+
properties: [
|
|
4233
|
+
{
|
|
4234
|
+
id: "text",
|
|
4235
|
+
name: "Text",
|
|
4236
|
+
type: "RichText",
|
|
4237
|
+
description: void 0,
|
|
4238
|
+
options: { placeholder: "Title 2", style: "Title2" },
|
|
4239
|
+
variantOptions: void 0
|
|
4240
|
+
}
|
|
4241
|
+
],
|
|
4242
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4243
|
+
variants: [
|
|
4244
|
+
{
|
|
4245
|
+
id: "default",
|
|
4246
|
+
name: "Default",
|
|
4247
|
+
image: void 0,
|
|
4248
|
+
description: void 0,
|
|
4249
|
+
documentationLink: void 0,
|
|
4250
|
+
layout: { type: "Column", children: ["text"] },
|
|
4251
|
+
maxColumns: 1,
|
|
4252
|
+
defaultColumns: 1,
|
|
4253
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4254
|
+
}
|
|
4255
|
+
],
|
|
4256
|
+
defaultVariantKey: "default"
|
|
4257
|
+
},
|
|
4258
|
+
behavior: {
|
|
4259
|
+
dataType: "Item",
|
|
4260
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
4261
|
+
entities: void 0
|
|
4262
|
+
},
|
|
4263
|
+
editorOptions: {
|
|
4264
|
+
onboarding: {
|
|
4265
|
+
helpText: "Use for subheadings, indicating major subsections under the main sections.",
|
|
4266
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
|
|
4267
|
+
}
|
|
4268
|
+
},
|
|
4269
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4270
|
+
},
|
|
4271
|
+
{
|
|
4272
|
+
id: "io.supernova.block.title3",
|
|
4273
|
+
name: "Title 3",
|
|
4274
|
+
description: "Further subsections",
|
|
4275
|
+
category: "Text",
|
|
4276
|
+
icon: void 0,
|
|
4277
|
+
documentationLink: void 0,
|
|
4278
|
+
searchKeywords: ["heading"],
|
|
4279
|
+
item: {
|
|
4280
|
+
properties: [
|
|
4281
|
+
{
|
|
4282
|
+
id: "text",
|
|
4283
|
+
name: "Text",
|
|
4284
|
+
type: "RichText",
|
|
4285
|
+
description: void 0,
|
|
4286
|
+
options: { placeholder: "Title 3", style: "Title3" },
|
|
4287
|
+
variantOptions: void 0
|
|
4288
|
+
}
|
|
4289
|
+
],
|
|
4290
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4291
|
+
variants: [
|
|
4292
|
+
{
|
|
4293
|
+
id: "default",
|
|
4294
|
+
name: "Default",
|
|
4295
|
+
image: void 0,
|
|
4296
|
+
description: void 0,
|
|
4297
|
+
documentationLink: void 0,
|
|
4298
|
+
layout: { type: "Column", children: ["text"] },
|
|
4299
|
+
maxColumns: 1,
|
|
4300
|
+
defaultColumns: 1,
|
|
4301
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4302
|
+
}
|
|
4303
|
+
],
|
|
4304
|
+
defaultVariantKey: "default"
|
|
4305
|
+
},
|
|
4306
|
+
behavior: {
|
|
4307
|
+
dataType: "Item",
|
|
4308
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
4309
|
+
entities: void 0
|
|
4310
|
+
},
|
|
4311
|
+
editorOptions: {
|
|
4312
|
+
onboarding: {
|
|
4313
|
+
helpText: "Use for further subsections, detailing specific topics within the major subsections.",
|
|
4314
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
|
|
4315
|
+
}
|
|
4316
|
+
},
|
|
4317
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4318
|
+
},
|
|
4319
|
+
{
|
|
4320
|
+
id: "io.supernova.block.title4",
|
|
4321
|
+
name: "Title 4",
|
|
4322
|
+
description: "Details in subsections",
|
|
4323
|
+
category: "Text",
|
|
4324
|
+
icon: void 0,
|
|
4325
|
+
documentationLink: void 0,
|
|
4326
|
+
searchKeywords: ["heading"],
|
|
4327
|
+
item: {
|
|
4328
|
+
properties: [
|
|
4329
|
+
{
|
|
4330
|
+
id: "text",
|
|
4331
|
+
name: "Text",
|
|
4332
|
+
type: "RichText",
|
|
4333
|
+
description: void 0,
|
|
4334
|
+
options: { placeholder: "Title 4", style: "Title4" },
|
|
4335
|
+
variantOptions: void 0
|
|
4336
|
+
}
|
|
4337
|
+
],
|
|
4338
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4339
|
+
variants: [
|
|
4340
|
+
{
|
|
4341
|
+
id: "default",
|
|
4342
|
+
name: "Default",
|
|
4343
|
+
image: void 0,
|
|
4344
|
+
description: void 0,
|
|
4345
|
+
documentationLink: void 0,
|
|
4346
|
+
layout: { type: "Column", children: ["text"] },
|
|
4347
|
+
maxColumns: 1,
|
|
4348
|
+
defaultColumns: 1,
|
|
4349
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4350
|
+
}
|
|
4351
|
+
],
|
|
4352
|
+
defaultVariantKey: "default"
|
|
4353
|
+
},
|
|
4354
|
+
behavior: {
|
|
4355
|
+
dataType: "Item",
|
|
4356
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
4357
|
+
entities: void 0
|
|
4358
|
+
},
|
|
4359
|
+
editorOptions: {
|
|
4360
|
+
onboarding: {
|
|
4361
|
+
helpText: "Use for sub-divisions, elaborating on details within the subsections.",
|
|
4362
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
|
|
4363
|
+
}
|
|
4364
|
+
},
|
|
4365
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4366
|
+
},
|
|
4367
|
+
{
|
|
4368
|
+
id: "io.supernova.block.title5",
|
|
4369
|
+
name: "Title 5",
|
|
4370
|
+
description: "Nuanced details or sub-points",
|
|
4371
|
+
category: "Text",
|
|
4372
|
+
icon: void 0,
|
|
4373
|
+
documentationLink: void 0,
|
|
4374
|
+
searchKeywords: ["heading"],
|
|
4375
|
+
item: {
|
|
4376
|
+
properties: [
|
|
4377
|
+
{
|
|
4378
|
+
id: "text",
|
|
4379
|
+
name: "Text",
|
|
4380
|
+
type: "RichText",
|
|
4381
|
+
description: void 0,
|
|
4382
|
+
options: { placeholder: "Title 5", style: "Title5" },
|
|
4383
|
+
variantOptions: void 0
|
|
4384
|
+
}
|
|
4385
|
+
],
|
|
4386
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4387
|
+
variants: [
|
|
4388
|
+
{
|
|
4389
|
+
id: "default",
|
|
4390
|
+
name: "Default",
|
|
4391
|
+
image: void 0,
|
|
4392
|
+
description: void 0,
|
|
4393
|
+
documentationLink: void 0,
|
|
4394
|
+
layout: { type: "Column", children: ["text"] },
|
|
4395
|
+
maxColumns: 1,
|
|
4396
|
+
defaultColumns: 1,
|
|
4397
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4398
|
+
}
|
|
4399
|
+
],
|
|
4400
|
+
defaultVariantKey: "default"
|
|
4401
|
+
},
|
|
4402
|
+
behavior: {
|
|
4403
|
+
dataType: "Item",
|
|
4404
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
4405
|
+
entities: void 0
|
|
4406
|
+
},
|
|
4407
|
+
editorOptions: {
|
|
4408
|
+
onboarding: {
|
|
4409
|
+
helpText: "Use for nuanced details or specific sub-points within sub-divisions.",
|
|
4410
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/heading-MUKlJ7dY"
|
|
4411
|
+
}
|
|
4412
|
+
},
|
|
4413
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4414
|
+
},
|
|
4415
|
+
{
|
|
4416
|
+
id: "io.supernova.block.ordered-list",
|
|
4417
|
+
name: "Ordered list",
|
|
4418
|
+
description: "A list with numbers",
|
|
4419
|
+
category: "Text",
|
|
4420
|
+
icon: void 0,
|
|
4421
|
+
documentationLink: void 0,
|
|
4422
|
+
searchKeywords: ["ol"],
|
|
4423
|
+
item: {
|
|
4424
|
+
properties: [
|
|
4425
|
+
{
|
|
4426
|
+
id: "text",
|
|
4427
|
+
name: "Text",
|
|
4428
|
+
type: "RichText",
|
|
4429
|
+
description: void 0,
|
|
4430
|
+
options: { style: "OL" },
|
|
4431
|
+
variantOptions: void 0
|
|
4432
|
+
}
|
|
4433
|
+
],
|
|
4434
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4435
|
+
variants: [
|
|
4436
|
+
{
|
|
4437
|
+
id: "default",
|
|
4438
|
+
name: "Default",
|
|
4439
|
+
image: void 0,
|
|
4440
|
+
description: void 0,
|
|
4441
|
+
documentationLink: void 0,
|
|
4442
|
+
layout: { type: "Column", children: ["text"] },
|
|
4443
|
+
maxColumns: 1,
|
|
4444
|
+
defaultColumns: 1,
|
|
4445
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4446
|
+
}
|
|
4447
|
+
],
|
|
4448
|
+
defaultVariantKey: "default"
|
|
4449
|
+
},
|
|
4450
|
+
behavior: {
|
|
4451
|
+
dataType: "Item",
|
|
4452
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
4453
|
+
entities: void 0
|
|
4454
|
+
},
|
|
4455
|
+
editorOptions: {
|
|
4456
|
+
onboarding: {
|
|
4457
|
+
helpText: "Display a sequence of numbers or letters to indicate order.",
|
|
4458
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK"
|
|
4459
|
+
}
|
|
4460
|
+
},
|
|
4461
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4462
|
+
},
|
|
4463
|
+
{
|
|
4464
|
+
id: "io.supernova.block.unordered-list",
|
|
4465
|
+
name: "Unordered list",
|
|
4466
|
+
description: "A list with bullet points",
|
|
4467
|
+
category: "Text",
|
|
4468
|
+
icon: void 0,
|
|
4469
|
+
documentationLink: void 0,
|
|
4470
|
+
searchKeywords: ["ul"],
|
|
4471
|
+
item: {
|
|
4472
|
+
properties: [
|
|
4473
|
+
{
|
|
4474
|
+
id: "text",
|
|
4475
|
+
name: "Text",
|
|
4476
|
+
type: "RichText",
|
|
4477
|
+
description: void 0,
|
|
4478
|
+
options: { style: "UL" },
|
|
4479
|
+
variantOptions: void 0
|
|
4480
|
+
}
|
|
4481
|
+
],
|
|
4482
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4483
|
+
variants: [
|
|
4484
|
+
{
|
|
4485
|
+
id: "default",
|
|
4486
|
+
name: "Default",
|
|
4487
|
+
image: void 0,
|
|
4488
|
+
description: void 0,
|
|
4489
|
+
documentationLink: void 0,
|
|
4490
|
+
layout: { type: "Column", children: ["text"] },
|
|
4491
|
+
maxColumns: 1,
|
|
4492
|
+
defaultColumns: 1,
|
|
4493
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4494
|
+
}
|
|
4495
|
+
],
|
|
4496
|
+
defaultVariantKey: "default"
|
|
4497
|
+
},
|
|
4498
|
+
behavior: {
|
|
4499
|
+
dataType: "Item",
|
|
4500
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
4501
|
+
entities: void 0
|
|
4502
|
+
},
|
|
4503
|
+
editorOptions: {
|
|
4504
|
+
onboarding: {
|
|
4505
|
+
helpText: "A list of items displayed with bullet points without a specific sequence.",
|
|
4506
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/list-UC5iPZLK"
|
|
4507
|
+
}
|
|
4508
|
+
},
|
|
4509
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4510
|
+
},
|
|
4511
|
+
{
|
|
4512
|
+
id: "io.supernova.block.divider",
|
|
4513
|
+
name: "Divider",
|
|
4514
|
+
description: "A section divider",
|
|
4515
|
+
category: "Layout",
|
|
4516
|
+
icon: void 0,
|
|
4517
|
+
documentationLink: void 0,
|
|
4518
|
+
searchKeywords: ["hr", "line", "rule", "separator"],
|
|
4519
|
+
item: {
|
|
4520
|
+
properties: [
|
|
4521
|
+
{
|
|
4522
|
+
id: "divider",
|
|
4523
|
+
name: "Divider",
|
|
4524
|
+
type: "Divider",
|
|
4525
|
+
description: void 0,
|
|
4526
|
+
options: {},
|
|
4527
|
+
variantOptions: void 0
|
|
4528
|
+
}
|
|
4529
|
+
],
|
|
4530
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4531
|
+
variants: [
|
|
4532
|
+
{
|
|
4533
|
+
id: "default",
|
|
4534
|
+
name: "Default",
|
|
4535
|
+
image: void 0,
|
|
4536
|
+
description: void 0,
|
|
4537
|
+
documentationLink: void 0,
|
|
4538
|
+
layout: { type: "Column", children: ["divider"] },
|
|
4539
|
+
maxColumns: 1,
|
|
4540
|
+
defaultColumns: 1,
|
|
4541
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4542
|
+
}
|
|
4543
|
+
],
|
|
4544
|
+
defaultVariantKey: "default"
|
|
4545
|
+
},
|
|
4546
|
+
behavior: {
|
|
4547
|
+
dataType: "Item",
|
|
4548
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
4549
|
+
entities: void 0
|
|
4550
|
+
},
|
|
4551
|
+
editorOptions: {
|
|
4552
|
+
onboarding: {
|
|
4553
|
+
helpText: "A thematic break or horizontal rule, often used to separate content or define a change in topic.",
|
|
4554
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/divider-tLuxooLH"
|
|
4555
|
+
}
|
|
4556
|
+
},
|
|
4557
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4558
|
+
},
|
|
4559
|
+
{
|
|
4560
|
+
id: "io.supernova.block.blockquote",
|
|
4561
|
+
name: "Blockquote",
|
|
4562
|
+
description: "Display a quotation",
|
|
4563
|
+
category: "Text",
|
|
4564
|
+
icon: void 0,
|
|
4565
|
+
documentationLink: void 0,
|
|
4566
|
+
searchKeywords: ["cite"],
|
|
4567
|
+
item: {
|
|
4568
|
+
properties: [
|
|
4569
|
+
{
|
|
4570
|
+
id: "text",
|
|
4571
|
+
name: "Text",
|
|
4572
|
+
type: "RichText",
|
|
4573
|
+
description: void 0,
|
|
4574
|
+
options: { placeholder: "Empty quote", style: "Quote" },
|
|
4575
|
+
variantOptions: void 0
|
|
4576
|
+
}
|
|
4577
|
+
],
|
|
4578
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4579
|
+
variants: [
|
|
4580
|
+
{
|
|
4581
|
+
id: "default",
|
|
4582
|
+
name: "Default",
|
|
4583
|
+
image: void 0,
|
|
4584
|
+
description: void 0,
|
|
4585
|
+
documentationLink: void 0,
|
|
4586
|
+
layout: { type: "Column", children: ["text"] },
|
|
4587
|
+
maxColumns: 1,
|
|
4588
|
+
defaultColumns: 1,
|
|
4589
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4590
|
+
}
|
|
4591
|
+
],
|
|
4592
|
+
defaultVariantKey: "default"
|
|
4593
|
+
},
|
|
4594
|
+
behavior: {
|
|
4595
|
+
dataType: "Item",
|
|
4596
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
4597
|
+
entities: void 0
|
|
4598
|
+
},
|
|
4599
|
+
editorOptions: {
|
|
4600
|
+
onboarding: {
|
|
4601
|
+
helpText: "Use a blockquote to set off a quotation or cited content from the main text.",
|
|
4602
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/blockquote-zYWAsb6X"
|
|
4603
|
+
}
|
|
4604
|
+
},
|
|
4605
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4606
|
+
},
|
|
4607
|
+
{
|
|
4608
|
+
id: "io.supernova.block.callout",
|
|
4609
|
+
name: "Callout",
|
|
4610
|
+
description: "Highlight a section of text",
|
|
4611
|
+
category: "Text",
|
|
4612
|
+
icon: void 0,
|
|
4613
|
+
documentationLink: void 0,
|
|
4614
|
+
searchKeywords: ["banner", "alert", "note", "tip", "warning"],
|
|
4615
|
+
item: {
|
|
4616
|
+
properties: [
|
|
4617
|
+
{
|
|
4618
|
+
id: "text",
|
|
4619
|
+
name: "Text",
|
|
4620
|
+
type: "RichText",
|
|
4621
|
+
description: void 0,
|
|
4622
|
+
options: { style: "Callout" },
|
|
4623
|
+
variantOptions: void 0
|
|
4624
|
+
}
|
|
4625
|
+
],
|
|
4626
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4627
|
+
variants: [
|
|
4628
|
+
{
|
|
4629
|
+
id: "default",
|
|
4630
|
+
name: "Default",
|
|
4631
|
+
image: void 0,
|
|
4632
|
+
description: void 0,
|
|
4633
|
+
documentationLink: void 0,
|
|
4634
|
+
layout: { type: "Column", children: ["text"] },
|
|
4635
|
+
maxColumns: 1,
|
|
4636
|
+
defaultColumns: 1,
|
|
4637
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4638
|
+
}
|
|
4639
|
+
],
|
|
4640
|
+
defaultVariantKey: "default"
|
|
4641
|
+
},
|
|
4642
|
+
behavior: {
|
|
4643
|
+
dataType: "Item",
|
|
4644
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
4645
|
+
entities: void 0
|
|
4646
|
+
},
|
|
4647
|
+
editorOptions: {
|
|
4648
|
+
onboarding: {
|
|
4649
|
+
helpText: "Use to highlight a section of text.",
|
|
4650
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/text/callout-ZPlZObD1"
|
|
4651
|
+
}
|
|
4652
|
+
},
|
|
4653
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4654
|
+
},
|
|
4655
|
+
{
|
|
4656
|
+
id: "io.supernova.block.image",
|
|
4657
|
+
name: "Image",
|
|
4658
|
+
description: "Display an image or Figma frame",
|
|
4659
|
+
category: "Media",
|
|
4660
|
+
icon: void 0,
|
|
4661
|
+
documentationLink: void 0,
|
|
4662
|
+
searchKeywords: ["image", "figma", "frame", "picture", "photo"],
|
|
4663
|
+
item: {
|
|
4664
|
+
properties: [
|
|
4665
|
+
{
|
|
4666
|
+
id: "image",
|
|
4667
|
+
name: "Image",
|
|
4668
|
+
type: "Image",
|
|
4669
|
+
description: void 0,
|
|
4670
|
+
options: { allowCaption: true },
|
|
4671
|
+
variantOptions: void 0
|
|
4672
|
+
}
|
|
4673
|
+
],
|
|
4674
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4675
|
+
variants: [
|
|
4676
|
+
{
|
|
4677
|
+
id: "default",
|
|
4678
|
+
name: "Default",
|
|
4679
|
+
image: void 0,
|
|
4680
|
+
description: void 0,
|
|
4681
|
+
documentationLink: void 0,
|
|
4682
|
+
layout: { type: "Column", children: ["image"] },
|
|
4683
|
+
maxColumns: 1,
|
|
4684
|
+
defaultColumns: 1,
|
|
4685
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4686
|
+
}
|
|
4687
|
+
],
|
|
4688
|
+
defaultVariantKey: "default"
|
|
4689
|
+
},
|
|
4690
|
+
behavior: {
|
|
4691
|
+
dataType: "Item",
|
|
4692
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
4693
|
+
entities: void 0
|
|
4694
|
+
},
|
|
4695
|
+
editorOptions: {
|
|
4696
|
+
onboarding: {
|
|
4697
|
+
helpText: "Use to display an image or Figma frame.",
|
|
4698
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/image-Ue8VdT8B"
|
|
4699
|
+
}
|
|
4700
|
+
},
|
|
4701
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4702
|
+
},
|
|
4703
|
+
{
|
|
4704
|
+
id: "io.supernova.block.shortcut-links",
|
|
4705
|
+
name: "Shortcut links",
|
|
4706
|
+
description: "Link to a page or external URL",
|
|
4707
|
+
category: "Media",
|
|
4708
|
+
icon: void 0,
|
|
4709
|
+
documentationLink: void 0,
|
|
4710
|
+
searchKeywords: [],
|
|
4711
|
+
item: {
|
|
4712
|
+
properties: [
|
|
4713
|
+
{
|
|
4714
|
+
id: "block.links.property.title",
|
|
4715
|
+
name: "Title",
|
|
4716
|
+
type: "RichText",
|
|
4717
|
+
description: void 0,
|
|
4718
|
+
options: { style: "Title5" },
|
|
4719
|
+
variantOptions: void 0
|
|
4720
|
+
},
|
|
4721
|
+
{
|
|
4722
|
+
id: "block.links.property.description",
|
|
4723
|
+
name: "Short description",
|
|
4724
|
+
type: "RichText",
|
|
4725
|
+
description: void 0,
|
|
4726
|
+
options: { style: "Default", color: "NeutralFaded" },
|
|
4727
|
+
variantOptions: void 0
|
|
4728
|
+
},
|
|
4729
|
+
{
|
|
4730
|
+
id: "block.links.property.image",
|
|
4731
|
+
name: "Image",
|
|
4732
|
+
type: "Image",
|
|
4733
|
+
description: void 0,
|
|
4734
|
+
options: { width: "Medium", aspectRatio: "Landscape", allowCaption: false },
|
|
4735
|
+
variantOptions: {
|
|
4736
|
+
iconOnTop: { width: "Icon", aspectRatio: "Square" },
|
|
4737
|
+
iconOnLeft: { width: "Icon", aspectRatio: "Square" }
|
|
4738
|
+
}
|
|
4739
|
+
}
|
|
4740
|
+
],
|
|
4741
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4742
|
+
variants: [
|
|
4743
|
+
{
|
|
4744
|
+
id: "imageOnTop",
|
|
4745
|
+
name: "Image on top",
|
|
4746
|
+
image: "assets/variant-image-on-top.png",
|
|
4747
|
+
description: void 0,
|
|
4748
|
+
documentationLink: void 0,
|
|
4749
|
+
layout: {
|
|
4750
|
+
type: "Column",
|
|
4751
|
+
children: ["block.links.property.image", "block.links.property.title", "block.links.property.description"]
|
|
4752
|
+
},
|
|
4753
|
+
maxColumns: 4,
|
|
4754
|
+
defaultColumns: 1,
|
|
4755
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4756
|
+
},
|
|
4757
|
+
{
|
|
4758
|
+
id: "imageOnLeft",
|
|
4759
|
+
name: "Image on left",
|
|
4760
|
+
image: "assets/variant-image-on-left.png",
|
|
4761
|
+
description: void 0,
|
|
4762
|
+
documentationLink: void 0,
|
|
4763
|
+
layout: {
|
|
4764
|
+
type: "Row",
|
|
4765
|
+
children: [
|
|
4766
|
+
{
|
|
4767
|
+
type: "Column",
|
|
4768
|
+
columnResizing: "Hug",
|
|
4769
|
+
children: ["block.links.property.image"]
|
|
4770
|
+
},
|
|
4771
|
+
{
|
|
4772
|
+
type: "Column",
|
|
4773
|
+
gap: "Small",
|
|
4774
|
+
children: ["block.links.property.title", "block.links.property.description"]
|
|
4775
|
+
}
|
|
4776
|
+
]
|
|
4777
|
+
},
|
|
4778
|
+
maxColumns: 1,
|
|
4779
|
+
defaultColumns: 1,
|
|
4780
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4781
|
+
},
|
|
4782
|
+
{
|
|
4783
|
+
id: "iconOnTop",
|
|
4784
|
+
name: "Icon on top",
|
|
4785
|
+
image: "assets/variant-icon-on-top.png",
|
|
4786
|
+
description: void 0,
|
|
4787
|
+
documentationLink: void 0,
|
|
4788
|
+
layout: {
|
|
4789
|
+
type: "Column",
|
|
4790
|
+
children: ["block.links.property.image", "block.links.property.title", "block.links.property.description"]
|
|
4791
|
+
},
|
|
4792
|
+
maxColumns: 4,
|
|
4793
|
+
defaultColumns: 1,
|
|
4794
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4795
|
+
},
|
|
4796
|
+
{
|
|
4797
|
+
id: "iconOnLeft",
|
|
4798
|
+
name: "Icon on left",
|
|
4799
|
+
image: "assets/variant-icon-on-left.png",
|
|
4800
|
+
description: void 0,
|
|
4801
|
+
documentationLink: void 0,
|
|
4802
|
+
layout: {
|
|
4803
|
+
type: "Row",
|
|
4804
|
+
children: [
|
|
4805
|
+
{
|
|
4806
|
+
type: "Column",
|
|
4807
|
+
columnResizing: "Hug",
|
|
4808
|
+
children: ["block.links.property.image"]
|
|
4809
|
+
},
|
|
4810
|
+
{
|
|
4811
|
+
type: "Column",
|
|
4812
|
+
gap: "Small",
|
|
4813
|
+
children: ["block.links.property.title", "block.links.property.description"]
|
|
4814
|
+
}
|
|
4815
|
+
]
|
|
4816
|
+
},
|
|
4817
|
+
maxColumns: 2,
|
|
4818
|
+
defaultColumns: 1,
|
|
4819
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4820
|
+
}
|
|
4821
|
+
],
|
|
4822
|
+
defaultVariantKey: "imageOnTop"
|
|
4823
|
+
},
|
|
4824
|
+
behavior: {
|
|
4825
|
+
dataType: "Item",
|
|
4826
|
+
items: { numberOfItems: -1, allowLinks: true },
|
|
4827
|
+
entities: void 0
|
|
4828
|
+
},
|
|
4829
|
+
editorOptions: {
|
|
4830
|
+
onboarding: {
|
|
4831
|
+
helpText: "Use link block to create single or multiple links to places in or out of your documentation.",
|
|
4832
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/links/shortcuts/general-jVfNifo4"
|
|
4833
|
+
}
|
|
4834
|
+
},
|
|
4835
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4836
|
+
},
|
|
4837
|
+
{
|
|
4838
|
+
id: "io.supernova.block.color-accessibility-grid",
|
|
4839
|
+
name: "Accessibility Color Grid",
|
|
4840
|
+
description: "Visualize accessibility of your color tokens.",
|
|
4841
|
+
category: "Tokens",
|
|
4842
|
+
icon: void 0,
|
|
4843
|
+
documentationLink: void 0,
|
|
4844
|
+
searchKeywords: ["color", "accessibility", "grid", "contrast", "blind", "impairment"],
|
|
4845
|
+
item: {
|
|
4846
|
+
properties: [
|
|
4847
|
+
{
|
|
4848
|
+
id: "tokens",
|
|
4849
|
+
name: "Tokens",
|
|
4850
|
+
type: "Token",
|
|
4851
|
+
description: void 0,
|
|
4852
|
+
options: { allowedTypes: ["Color"], allowPropertySelection: false, allowThemeSelection: false },
|
|
4853
|
+
variantOptions: void 0
|
|
4854
|
+
}
|
|
4855
|
+
],
|
|
4856
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4857
|
+
variants: [
|
|
4858
|
+
{
|
|
4859
|
+
id: "default",
|
|
4860
|
+
name: "Default",
|
|
4861
|
+
image: void 0,
|
|
4862
|
+
description: void 0,
|
|
4863
|
+
documentationLink: void 0,
|
|
4864
|
+
layout: { type: "Column", children: ["tokens"] },
|
|
4865
|
+
maxColumns: 1,
|
|
4866
|
+
defaultColumns: 1,
|
|
4867
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4868
|
+
}
|
|
4869
|
+
],
|
|
4870
|
+
defaultVariantKey: "default"
|
|
4871
|
+
},
|
|
4872
|
+
behavior: {
|
|
4873
|
+
dataType: "Token",
|
|
4874
|
+
items: void 0,
|
|
4875
|
+
entities: { selectionType: "Group", maxSelected: 2 }
|
|
4876
|
+
},
|
|
4877
|
+
editorOptions: {
|
|
4878
|
+
onboarding: {
|
|
4879
|
+
helpText: "Visualize accessibility of your colors and compare token groups to one another.",
|
|
4880
|
+
documentationLink: "https://learn.supernova.io"
|
|
4881
|
+
}
|
|
4882
|
+
},
|
|
4883
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4884
|
+
},
|
|
4885
|
+
{
|
|
4886
|
+
id: "io.supernova.block.embed",
|
|
4887
|
+
name: "Embed",
|
|
4888
|
+
description: "Embed a generic URL",
|
|
4889
|
+
category: "Media",
|
|
4890
|
+
icon: void 0,
|
|
4891
|
+
documentationLink: void 0,
|
|
4892
|
+
searchKeywords: ["embed", "url", "iframe", "site", "import"],
|
|
4893
|
+
item: {
|
|
4894
|
+
properties: [
|
|
4895
|
+
{
|
|
4896
|
+
id: "embedUrl",
|
|
4897
|
+
name: "Embed URL",
|
|
4898
|
+
type: "EmbedURL",
|
|
4899
|
+
description: void 0,
|
|
4900
|
+
options: {
|
|
4901
|
+
allowCaption: true,
|
|
4902
|
+
allowResize: true,
|
|
4903
|
+
defaultHeight: 400,
|
|
4904
|
+
urlValidationRegex: "^(https?://)?(www.)?.+$"
|
|
4905
|
+
},
|
|
4906
|
+
variantOptions: void 0
|
|
4907
|
+
}
|
|
4908
|
+
],
|
|
4909
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4910
|
+
variants: [
|
|
4911
|
+
{
|
|
4912
|
+
id: "default",
|
|
4913
|
+
name: "Default",
|
|
4914
|
+
image: void 0,
|
|
4915
|
+
description: void 0,
|
|
4916
|
+
documentationLink: void 0,
|
|
4917
|
+
layout: { type: "Column", children: ["embedUrl"] },
|
|
4918
|
+
maxColumns: 1,
|
|
4919
|
+
defaultColumns: 1,
|
|
4920
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4921
|
+
}
|
|
4922
|
+
],
|
|
4923
|
+
defaultVariantKey: "default"
|
|
4924
|
+
},
|
|
4925
|
+
behavior: {
|
|
4926
|
+
dataType: "Item",
|
|
4927
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
4928
|
+
entities: void 0
|
|
4929
|
+
},
|
|
4930
|
+
editorOptions: {
|
|
4931
|
+
onboarding: {
|
|
4932
|
+
helpText: "Embed any page to your documentation as an iframe.",
|
|
4933
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/embed/public-url-2ZeRQ332"
|
|
4934
|
+
}
|
|
4935
|
+
},
|
|
4936
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4937
|
+
},
|
|
4938
|
+
{
|
|
4939
|
+
id: "io.supernova.block.embed-youtube",
|
|
4940
|
+
name: "YouTube",
|
|
4941
|
+
description: "Embed a Youtube video",
|
|
4942
|
+
category: "Media",
|
|
4943
|
+
icon: void 0,
|
|
4944
|
+
documentationLink: void 0,
|
|
4945
|
+
searchKeywords: ["embed", "video", "player", "upload"],
|
|
4946
|
+
item: {
|
|
4947
|
+
properties: [
|
|
4948
|
+
{
|
|
4949
|
+
id: "embed",
|
|
4950
|
+
name: "Youtube URL",
|
|
4951
|
+
type: "EmbedURL",
|
|
4952
|
+
description: void 0,
|
|
4953
|
+
options: {
|
|
4954
|
+
allowCaption: false,
|
|
4955
|
+
allowResize: false,
|
|
4956
|
+
defaultHeight: 400,
|
|
4957
|
+
urlValidationRegex: "^(https?://)?(www.)?(youtube.com|youtu.?be)/.+$"
|
|
4958
|
+
},
|
|
4959
|
+
variantOptions: void 0
|
|
4960
|
+
}
|
|
4961
|
+
],
|
|
4962
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
4963
|
+
variants: [
|
|
4964
|
+
{
|
|
4965
|
+
id: "default",
|
|
4966
|
+
name: "Default",
|
|
4967
|
+
image: void 0,
|
|
4968
|
+
description: void 0,
|
|
4969
|
+
documentationLink: void 0,
|
|
4970
|
+
layout: { type: "Column", children: ["embed"] },
|
|
4971
|
+
maxColumns: 1,
|
|
4972
|
+
defaultColumns: 1,
|
|
4973
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4974
|
+
}
|
|
4975
|
+
],
|
|
4976
|
+
defaultVariantKey: "default"
|
|
4977
|
+
},
|
|
4978
|
+
behavior: {
|
|
4979
|
+
dataType: "Item",
|
|
4980
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
4981
|
+
entities: void 0
|
|
4982
|
+
},
|
|
4983
|
+
editorOptions: {
|
|
4984
|
+
onboarding: {
|
|
4985
|
+
helpText: "Embed a YouTube video to your documentation.",
|
|
4986
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/youtube-Gh8VUrSF"
|
|
4987
|
+
}
|
|
4988
|
+
},
|
|
4989
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
4990
|
+
},
|
|
4991
|
+
{
|
|
4992
|
+
id: "io.supernova.block.embed-lottie",
|
|
4993
|
+
name: "Lottie animation",
|
|
4994
|
+
description: "Preview a Lottie animation",
|
|
4995
|
+
category: "Media",
|
|
4996
|
+
icon: void 0,
|
|
4997
|
+
documentationLink: void 0,
|
|
4998
|
+
searchKeywords: ["embed", "lottie", "animation", "rive", "json"],
|
|
4999
|
+
item: {
|
|
5000
|
+
properties: [
|
|
5001
|
+
{
|
|
5002
|
+
id: "embed",
|
|
5003
|
+
name: "Lottie URL",
|
|
5004
|
+
type: "EmbedURL",
|
|
5005
|
+
description: void 0,
|
|
5006
|
+
options: {
|
|
5007
|
+
allowCaption: false,
|
|
5008
|
+
allowResize: true,
|
|
5009
|
+
defaultHeight: 400,
|
|
5010
|
+
urlValidationRegex: "^(https?:\\/\\/)?([\\w\\d\\-\\.]+)\\.([\\w]+)(\\/[\\w\\d_\\-\\.\\/]*)?(\\.json|\\.lottie)$\n"
|
|
5011
|
+
},
|
|
5012
|
+
variantOptions: void 0
|
|
5013
|
+
},
|
|
5014
|
+
{
|
|
5015
|
+
id: "autoplay",
|
|
5016
|
+
name: "Autoplay",
|
|
5017
|
+
type: "Boolean",
|
|
5018
|
+
description: void 0,
|
|
5019
|
+
options: { defaultValue: true },
|
|
5020
|
+
variantOptions: void 0
|
|
5021
|
+
},
|
|
5022
|
+
{
|
|
5023
|
+
id: "loop",
|
|
5024
|
+
name: "Loop",
|
|
5025
|
+
type: "Boolean",
|
|
5026
|
+
description: void 0,
|
|
5027
|
+
options: { defaultValue: true },
|
|
5028
|
+
variantOptions: void 0
|
|
5029
|
+
}
|
|
5030
|
+
],
|
|
5031
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
5032
|
+
variants: [
|
|
5033
|
+
{
|
|
5034
|
+
id: "default",
|
|
5035
|
+
name: "Default",
|
|
5036
|
+
image: void 0,
|
|
5037
|
+
description: void 0,
|
|
5038
|
+
documentationLink: void 0,
|
|
5039
|
+
layout: { type: "Column", children: ["embed", "autoplay", "loop"] },
|
|
5040
|
+
maxColumns: 1,
|
|
5041
|
+
defaultColumns: 1,
|
|
5042
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5043
|
+
}
|
|
5044
|
+
],
|
|
5045
|
+
defaultVariantKey: "default"
|
|
5046
|
+
},
|
|
5047
|
+
behavior: {
|
|
5048
|
+
dataType: "Item",
|
|
5049
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
5050
|
+
entities: void 0
|
|
5051
|
+
},
|
|
5052
|
+
editorOptions: {
|
|
5053
|
+
onboarding: {
|
|
5054
|
+
helpText: "Embed a Lottie animation to your documentation.",
|
|
5055
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/media-and-assets/lottie-preview-7CqFdGv9"
|
|
5056
|
+
}
|
|
5057
|
+
},
|
|
5058
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5059
|
+
},
|
|
5060
|
+
{
|
|
5061
|
+
id: "io.supernova.block.storybook",
|
|
5062
|
+
name: "Storybook",
|
|
5063
|
+
description: "Embed Storybook canvas",
|
|
5064
|
+
category: "Media",
|
|
5065
|
+
icon: void 0,
|
|
5066
|
+
documentationLink: void 0,
|
|
5067
|
+
searchKeywords: ["storybook", "story", "stories", "example", "preview", "code", "react"],
|
|
5068
|
+
item: {
|
|
5069
|
+
properties: [
|
|
5070
|
+
{
|
|
5071
|
+
id: "embed",
|
|
5072
|
+
name: "Storybook URL",
|
|
5073
|
+
type: "Storybook",
|
|
5074
|
+
description: void 0,
|
|
5075
|
+
options: {},
|
|
5076
|
+
variantOptions: void 0
|
|
5077
|
+
}
|
|
5078
|
+
],
|
|
5079
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
5080
|
+
variants: [
|
|
5081
|
+
{
|
|
5082
|
+
id: "default",
|
|
5083
|
+
name: "Default",
|
|
5084
|
+
image: void 0,
|
|
5085
|
+
description: void 0,
|
|
5086
|
+
documentationLink: void 0,
|
|
5087
|
+
layout: { type: "Column", children: ["embed"] },
|
|
5088
|
+
maxColumns: 1,
|
|
5089
|
+
defaultColumns: 1,
|
|
5090
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5091
|
+
}
|
|
5092
|
+
],
|
|
5093
|
+
defaultVariantKey: "default"
|
|
5094
|
+
},
|
|
5095
|
+
behavior: {
|
|
5096
|
+
dataType: "Item",
|
|
5097
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
5098
|
+
entities: void 0
|
|
5099
|
+
},
|
|
5100
|
+
editorOptions: {
|
|
5101
|
+
onboarding: {
|
|
5102
|
+
helpText: "Embed a Storybook story to your documentation.",
|
|
5103
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/code/storybook-1EGPhwBl"
|
|
5104
|
+
}
|
|
5105
|
+
},
|
|
5106
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5107
|
+
},
|
|
5108
|
+
{
|
|
5109
|
+
id: "io.supernova.block.embed-figma",
|
|
5110
|
+
name: "Figma embed",
|
|
5111
|
+
description: "Embed a Figma canvas or prototype",
|
|
5112
|
+
category: "Media",
|
|
5113
|
+
icon: void 0,
|
|
5114
|
+
documentationLink: void 0,
|
|
5115
|
+
searchKeywords: ["embed", "figma", "design", "prototype", "canvas"],
|
|
5116
|
+
item: {
|
|
5117
|
+
properties: [
|
|
5118
|
+
{
|
|
5119
|
+
id: "embed",
|
|
5120
|
+
name: "Figma URl",
|
|
5121
|
+
type: "EmbedURL",
|
|
5122
|
+
description: void 0,
|
|
5123
|
+
options: {
|
|
5124
|
+
allowCaption: false,
|
|
5125
|
+
allowResize: true,
|
|
5126
|
+
defaultHeight: 400,
|
|
5127
|
+
urlValidationRegex: "^(https?://)?(www.)?(figma.com)/.+$"
|
|
5128
|
+
},
|
|
5129
|
+
variantOptions: void 0
|
|
5130
|
+
}
|
|
5131
|
+
],
|
|
5132
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
5133
|
+
variants: [
|
|
5134
|
+
{
|
|
5135
|
+
id: "default",
|
|
5136
|
+
name: "Default",
|
|
5137
|
+
image: void 0,
|
|
5138
|
+
description: void 0,
|
|
5139
|
+
documentationLink: void 0,
|
|
5140
|
+
layout: { type: "Column", children: ["embed"] },
|
|
5141
|
+
maxColumns: 1,
|
|
5142
|
+
defaultColumns: 1,
|
|
5143
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5144
|
+
}
|
|
5145
|
+
],
|
|
5146
|
+
defaultVariantKey: "default"
|
|
5147
|
+
},
|
|
5148
|
+
behavior: {
|
|
5149
|
+
dataType: "Item",
|
|
5150
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
5151
|
+
entities: void 0
|
|
5152
|
+
},
|
|
5153
|
+
editorOptions: {
|
|
5154
|
+
onboarding: {
|
|
5155
|
+
helpText: "Embed a Figma canvas or prototype to your documentation.",
|
|
5156
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/figma/embed-figma-GPNJsT8A"
|
|
5157
|
+
}
|
|
5158
|
+
},
|
|
5159
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5160
|
+
},
|
|
5161
|
+
{
|
|
5162
|
+
id: "io.supernova.block.markdown",
|
|
5163
|
+
name: "Markdown",
|
|
5164
|
+
description: "Render Markdown URL",
|
|
5165
|
+
category: "Other",
|
|
5166
|
+
icon: void 0,
|
|
5167
|
+
documentationLink: void 0,
|
|
5168
|
+
searchKeywords: ["md", "embed", "api", "table", "mdx"],
|
|
5169
|
+
item: {
|
|
5170
|
+
properties: [
|
|
5171
|
+
{
|
|
5172
|
+
id: "markdownUrl",
|
|
5173
|
+
name: "Markdown URL",
|
|
5174
|
+
type: "Markdown",
|
|
5175
|
+
description: void 0,
|
|
5176
|
+
options: {},
|
|
5177
|
+
variantOptions: void 0
|
|
5178
|
+
}
|
|
5179
|
+
],
|
|
5180
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
5181
|
+
variants: [
|
|
5182
|
+
{
|
|
5183
|
+
id: "default",
|
|
5184
|
+
name: "Default",
|
|
5185
|
+
image: void 0,
|
|
5186
|
+
description: void 0,
|
|
5187
|
+
documentationLink: void 0,
|
|
5188
|
+
layout: { type: "Column", children: ["markdownUrl"] },
|
|
5189
|
+
maxColumns: 1,
|
|
5190
|
+
defaultColumns: 1,
|
|
5191
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5192
|
+
}
|
|
5193
|
+
],
|
|
5194
|
+
defaultVariantKey: "default"
|
|
5195
|
+
},
|
|
5196
|
+
behavior: {
|
|
5197
|
+
dataType: "Item",
|
|
5198
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
5199
|
+
entities: void 0
|
|
5200
|
+
},
|
|
5201
|
+
editorOptions: {
|
|
5202
|
+
onboarding: {
|
|
5203
|
+
helpText: "Embed and process markdown from URL.",
|
|
5204
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/code/markdown/general-B8wQVOem"
|
|
5205
|
+
}
|
|
5206
|
+
},
|
|
5207
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5208
|
+
},
|
|
5209
|
+
{
|
|
5210
|
+
id: "io.supernova.block.table",
|
|
5211
|
+
name: "Table",
|
|
5212
|
+
description: "Display a simple table",
|
|
5213
|
+
category: "Layout",
|
|
5214
|
+
icon: void 0,
|
|
5215
|
+
documentationLink: void 0,
|
|
5216
|
+
searchKeywords: ["grid", "data", "spreadsheet", "api"],
|
|
5217
|
+
item: {
|
|
5218
|
+
properties: [
|
|
5219
|
+
{
|
|
5220
|
+
id: "table",
|
|
5221
|
+
name: "Table",
|
|
5222
|
+
type: "Table",
|
|
5223
|
+
description: void 0,
|
|
5224
|
+
options: {},
|
|
5225
|
+
variantOptions: void 0
|
|
5226
|
+
}
|
|
5227
|
+
],
|
|
5228
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
5229
|
+
variants: [
|
|
5230
|
+
{
|
|
5231
|
+
id: "default",
|
|
5232
|
+
name: "Default",
|
|
5233
|
+
image: void 0,
|
|
5234
|
+
description: void 0,
|
|
5235
|
+
documentationLink: void 0,
|
|
5236
|
+
layout: { type: "Column", children: ["table"] },
|
|
5237
|
+
maxColumns: 1,
|
|
5238
|
+
defaultColumns: 1,
|
|
5239
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5240
|
+
}
|
|
5241
|
+
],
|
|
5242
|
+
defaultVariantKey: "default"
|
|
5243
|
+
},
|
|
5244
|
+
behavior: {
|
|
5245
|
+
dataType: "Item",
|
|
5246
|
+
items: { numberOfItems: 1, allowLinks: false },
|
|
5247
|
+
entities: void 0
|
|
5248
|
+
},
|
|
5249
|
+
editorOptions: {
|
|
5250
|
+
onboarding: {
|
|
5251
|
+
helpText: "Use for displaying data in a tabular format.",
|
|
5252
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/layout/table-R8KGnxej"
|
|
5253
|
+
}
|
|
5254
|
+
},
|
|
5255
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5256
|
+
},
|
|
5257
|
+
{
|
|
5258
|
+
id: "io.supernova.block.token-detail",
|
|
5259
|
+
name: "Token detail",
|
|
5260
|
+
description: "Show a single design tokens",
|
|
5261
|
+
category: "Tokens",
|
|
5262
|
+
icon: void 0,
|
|
5263
|
+
documentationLink: void 0,
|
|
5264
|
+
searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme"],
|
|
5265
|
+
item: {
|
|
5266
|
+
properties: [
|
|
5267
|
+
{
|
|
5268
|
+
id: "tokens",
|
|
5269
|
+
name: "Tokens",
|
|
5270
|
+
type: "Token",
|
|
5271
|
+
description: void 0,
|
|
5272
|
+
options: {},
|
|
5273
|
+
variantOptions: void 0
|
|
5274
|
+
}
|
|
5275
|
+
],
|
|
5276
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
5277
|
+
variants: [
|
|
5278
|
+
{
|
|
5279
|
+
id: "table",
|
|
5280
|
+
name: "Table Row",
|
|
5281
|
+
image: "assets/variant-table.png",
|
|
5282
|
+
description: void 0,
|
|
5283
|
+
documentationLink: void 0,
|
|
5284
|
+
layout: { type: "Column", children: ["tokens"] },
|
|
5285
|
+
maxColumns: 1,
|
|
5286
|
+
defaultColumns: 1,
|
|
5287
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5288
|
+
},
|
|
5289
|
+
{
|
|
5290
|
+
id: "grid",
|
|
5291
|
+
name: "Grid Item",
|
|
5292
|
+
image: "assets/variant-grid.png",
|
|
5293
|
+
description: void 0,
|
|
5294
|
+
documentationLink: void 0,
|
|
5295
|
+
layout: { type: "Column", children: ["tokens"] },
|
|
5296
|
+
maxColumns: 1,
|
|
5297
|
+
defaultColumns: 1,
|
|
5298
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5299
|
+
},
|
|
5300
|
+
{
|
|
5301
|
+
id: "color-stack",
|
|
5302
|
+
name: "Color stack item",
|
|
5303
|
+
image: "assets/variant-color-stack.png",
|
|
5304
|
+
description: void 0,
|
|
5305
|
+
documentationLink: void 0,
|
|
5306
|
+
layout: { type: "Column", children: ["tokens"] },
|
|
5307
|
+
maxColumns: 1,
|
|
5308
|
+
defaultColumns: 1,
|
|
5309
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5310
|
+
}
|
|
5311
|
+
],
|
|
5312
|
+
defaultVariantKey: "table"
|
|
5313
|
+
},
|
|
5314
|
+
behavior: {
|
|
5315
|
+
dataType: "Token",
|
|
5316
|
+
items: void 0,
|
|
5317
|
+
entities: { selectionType: "Entity", maxSelected: 1 }
|
|
5318
|
+
},
|
|
5319
|
+
editorOptions: {
|
|
5320
|
+
onboarding: {
|
|
5321
|
+
helpText: "Show a single design token.",
|
|
5322
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-detail-04"
|
|
5323
|
+
}
|
|
5324
|
+
},
|
|
5325
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5326
|
+
},
|
|
5327
|
+
{
|
|
5328
|
+
id: "io.supernova.block.token-list",
|
|
5329
|
+
name: "Token list",
|
|
5330
|
+
description: "Show a list of design tokens",
|
|
5331
|
+
category: "Tokens",
|
|
5332
|
+
icon: void 0,
|
|
5333
|
+
documentationLink: void 0,
|
|
5334
|
+
searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme", "accessibility", "contrast"],
|
|
5335
|
+
item: {
|
|
5336
|
+
properties: [
|
|
5337
|
+
{
|
|
5338
|
+
id: "tokens",
|
|
5339
|
+
name: "Tokens",
|
|
5340
|
+
type: "Token",
|
|
5341
|
+
description: void 0,
|
|
5342
|
+
options: {},
|
|
5343
|
+
variantOptions: void 0
|
|
5344
|
+
}
|
|
5345
|
+
],
|
|
5346
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
5347
|
+
variants: [
|
|
5348
|
+
{
|
|
5349
|
+
id: "table",
|
|
5350
|
+
name: "Table",
|
|
5351
|
+
image: "assets/variant-table.png",
|
|
5352
|
+
description: void 0,
|
|
5353
|
+
documentationLink: void 0,
|
|
5354
|
+
layout: { type: "Column", children: ["tokens"] },
|
|
5355
|
+
maxColumns: 1,
|
|
5356
|
+
defaultColumns: 1,
|
|
5357
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5358
|
+
},
|
|
5359
|
+
{
|
|
5360
|
+
id: "grid",
|
|
5361
|
+
name: "Grid",
|
|
5362
|
+
image: "assets/variant-grid.png",
|
|
5363
|
+
description: void 0,
|
|
5364
|
+
documentationLink: void 0,
|
|
5365
|
+
layout: { type: "Column", children: ["tokens"] },
|
|
5366
|
+
maxColumns: 4,
|
|
5367
|
+
defaultColumns: 1,
|
|
5368
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5369
|
+
},
|
|
5370
|
+
{
|
|
5371
|
+
id: "color-stack",
|
|
5372
|
+
name: "Color stack",
|
|
5373
|
+
image: "assets/variant-color-stack.png",
|
|
5374
|
+
description: void 0,
|
|
5375
|
+
documentationLink: void 0,
|
|
5376
|
+
layout: { type: "Column", children: ["tokens"] },
|
|
5377
|
+
maxColumns: 1,
|
|
5378
|
+
defaultColumns: 1,
|
|
5379
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5380
|
+
},
|
|
5381
|
+
{
|
|
5382
|
+
id: "color-contrast-grid",
|
|
5383
|
+
name: "Color contrast grid",
|
|
5384
|
+
image: "assets/variant-color-contrast-grid.png",
|
|
5385
|
+
description: void 0,
|
|
5386
|
+
documentationLink: void 0,
|
|
5387
|
+
layout: { type: "Column", children: ["tokens"] },
|
|
5388
|
+
maxColumns: 1,
|
|
5389
|
+
defaultColumns: 1,
|
|
5390
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5391
|
+
}
|
|
5392
|
+
],
|
|
5393
|
+
defaultVariantKey: "table"
|
|
5394
|
+
},
|
|
5395
|
+
behavior: {
|
|
5396
|
+
dataType: "Token",
|
|
5397
|
+
items: void 0,
|
|
5398
|
+
entities: { selectionType: "Entity", maxSelected: 0 }
|
|
5399
|
+
},
|
|
5400
|
+
editorOptions: {
|
|
5401
|
+
onboarding: {
|
|
5402
|
+
helpText: "Show a list of design tokens. You can use this block to create a list of colors, typography, spacing, grid, or any other token type.",
|
|
5403
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-list-06"
|
|
5404
|
+
}
|
|
5405
|
+
},
|
|
5406
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5407
|
+
},
|
|
5408
|
+
{
|
|
5409
|
+
id: "io.supernova.block.token-group",
|
|
5410
|
+
name: "Token group",
|
|
5411
|
+
description: "Show a group of design tokens",
|
|
5412
|
+
category: "Tokens",
|
|
5413
|
+
icon: void 0,
|
|
5414
|
+
documentationLink: void 0,
|
|
5415
|
+
searchKeywords: ["color", "typography", "spacing", "grid", "material", "theme", "accessibility", "contrast"],
|
|
5416
|
+
item: {
|
|
5417
|
+
properties: [
|
|
5418
|
+
{
|
|
5419
|
+
id: "tokens",
|
|
5420
|
+
name: "Tokens",
|
|
5421
|
+
type: "Token",
|
|
5422
|
+
description: void 0,
|
|
5423
|
+
options: {},
|
|
5424
|
+
variantOptions: void 0
|
|
5425
|
+
}
|
|
5426
|
+
],
|
|
5427
|
+
appearance: { isBordered: false, hasBackground: false },
|
|
5428
|
+
variants: [
|
|
5429
|
+
{
|
|
5430
|
+
id: "table",
|
|
5431
|
+
name: "Table",
|
|
5432
|
+
image: "assets/variant-table.png",
|
|
5433
|
+
description: void 0,
|
|
5434
|
+
documentationLink: void 0,
|
|
5435
|
+
layout: { type: "Column", children: ["tokens"] },
|
|
5436
|
+
maxColumns: 1,
|
|
5437
|
+
defaultColumns: 1,
|
|
5438
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5439
|
+
},
|
|
5440
|
+
{
|
|
5441
|
+
id: "grid",
|
|
5442
|
+
name: "Grid",
|
|
5443
|
+
image: "assets/variant-grid.png",
|
|
5444
|
+
description: void 0,
|
|
5445
|
+
documentationLink: void 0,
|
|
5446
|
+
layout: { type: "Column", children: ["tokens"] },
|
|
5447
|
+
maxColumns: 4,
|
|
5448
|
+
defaultColumns: 1,
|
|
5449
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5450
|
+
},
|
|
5451
|
+
{
|
|
5452
|
+
id: "color-stack",
|
|
5453
|
+
name: "Color stack",
|
|
5454
|
+
image: "assets/variant-color-stack.png",
|
|
5455
|
+
description: void 0,
|
|
5456
|
+
documentationLink: void 0,
|
|
5457
|
+
layout: { type: "Column", children: ["tokens"] },
|
|
5458
|
+
maxColumns: 2,
|
|
5459
|
+
defaultColumns: 1,
|
|
5460
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5461
|
+
},
|
|
5462
|
+
{
|
|
5463
|
+
id: "color-contrast-grid",
|
|
5464
|
+
name: "Color contrast grid",
|
|
5465
|
+
image: "assets/variant-color-contrast-grid.png",
|
|
5466
|
+
description: void 0,
|
|
5467
|
+
documentationLink: void 0,
|
|
5468
|
+
layout: { type: "Column", children: ["tokens"] },
|
|
5469
|
+
maxColumns: 1,
|
|
5470
|
+
defaultColumns: 1,
|
|
5471
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5472
|
+
}
|
|
5473
|
+
],
|
|
5474
|
+
defaultVariantKey: "table"
|
|
5475
|
+
},
|
|
5476
|
+
behavior: {
|
|
5477
|
+
dataType: "Token",
|
|
5478
|
+
items: void 0,
|
|
5479
|
+
entities: { selectionType: "Group", maxSelected: 1 }
|
|
5480
|
+
},
|
|
5481
|
+
editorOptions: {
|
|
5482
|
+
onboarding: {
|
|
5483
|
+
helpText: "Show a group of design tokens. You can use this block to create a list of colors, typography, spacing, grid, or any other token type.",
|
|
5484
|
+
documentationLink: "https://learn.supernova.io/latest/documentation/types-of-blocks/token/tokens/general-84NRgxGl#section-token-group-09"
|
|
5485
|
+
}
|
|
5486
|
+
},
|
|
5487
|
+
appearance: { isBordered: false, hasBackground: false }
|
|
5488
|
+
}
|
|
5489
|
+
];
|
|
5490
|
+
|
|
4127
5491
|
// src/docs-editor/prosemirror-to-blocks.ts
|
|
4128
5492
|
|
|
4129
5493
|
function yXmlFragmetToPage(fragment, definitions) {
|
|
@@ -4251,5 +5615,6 @@ function mapByUnique(items, keyFn) {
|
|
|
4251
5615
|
|
|
4252
5616
|
|
|
4253
5617
|
|
|
4254
|
-
|
|
5618
|
+
|
|
5619
|
+
exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.GetBlockDefinitionsResponse = GetBlockDefinitionsResponse; exports.PageBlockEditorModel = PageBlockEditorModel; exports.blockDefinitionForBlock = blockDefinitionForBlock; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToBlock = prosemirrorNodeToBlock; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.serializeAsRichTextBlock = serializeAsRichTextBlock; exports.yXmlFragmetToPage = yXmlFragmetToPage;
|
|
4255
5620
|
//# sourceMappingURL=index.js.map
|