@coorax/schema 0.0.0-canary.4 → 0.0.0-canary.5
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.js +28 -38
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -319,7 +319,7 @@ var ContainersUtils = {
|
|
|
319
319
|
var Text = {
|
|
320
320
|
style: {
|
|
321
321
|
width: "100%",
|
|
322
|
-
color: "var(--foreground)",
|
|
322
|
+
color: "var(--corax-foreground)",
|
|
323
323
|
fontSize: "18px",
|
|
324
324
|
minHeight: "32px",
|
|
325
325
|
whiteSpace: "pre-wrap",
|
|
@@ -331,16 +331,15 @@ var Text = {
|
|
|
331
331
|
border: "none",
|
|
332
332
|
fieldSizing: "content",
|
|
333
333
|
cursor: "default",
|
|
334
|
-
paddingInline: 4
|
|
335
|
-
userSelect: "none"
|
|
334
|
+
paddingInline: 4
|
|
336
335
|
},
|
|
337
|
-
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-muted-foreground [&:empty:before]:pointer-events-none"
|
|
336
|
+
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-corax-muted-foreground [&:empty:before]:pointer-events-none"
|
|
338
337
|
};
|
|
339
338
|
var Heading = {
|
|
340
339
|
style: {
|
|
341
340
|
width: "100%",
|
|
342
341
|
maxWidth: "100%",
|
|
343
|
-
color: "var(--foreground)",
|
|
342
|
+
color: "var(--corax-foreground)",
|
|
344
343
|
fontSize: "40px",
|
|
345
344
|
minHeight: "48px",
|
|
346
345
|
fontWeight: 400,
|
|
@@ -351,16 +350,15 @@ var Heading = {
|
|
|
351
350
|
border: "none",
|
|
352
351
|
fieldSizing: "content",
|
|
353
352
|
cursor: "default",
|
|
354
|
-
paddingInline: 4
|
|
355
|
-
userSelect: "none"
|
|
353
|
+
paddingInline: 4
|
|
356
354
|
},
|
|
357
|
-
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-muted-foreground [&:empty:before]:pointer-events-none"
|
|
355
|
+
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-corax-muted-foreground [&:empty:before]:pointer-events-none"
|
|
358
356
|
};
|
|
359
357
|
var SubHeading = {
|
|
360
358
|
style: {
|
|
361
359
|
width: "100%",
|
|
362
360
|
maxWidth: "100%",
|
|
363
|
-
color: "var(--foreground)",
|
|
361
|
+
color: "var(--corax-foreground)",
|
|
364
362
|
fontSize: "28px",
|
|
365
363
|
minHeight: "40px",
|
|
366
364
|
fontWeight: 400,
|
|
@@ -371,10 +369,9 @@ var SubHeading = {
|
|
|
371
369
|
border: "none",
|
|
372
370
|
fieldSizing: "content",
|
|
373
371
|
cursor: "default",
|
|
374
|
-
paddingInline: 4
|
|
375
|
-
userSelect: "none"
|
|
372
|
+
paddingInline: 4
|
|
376
373
|
},
|
|
377
|
-
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-muted-foreground [&:empty:before]:pointer-events-none"
|
|
374
|
+
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-corax-muted-foreground [&:empty:before]:pointer-events-none"
|
|
378
375
|
};
|
|
379
376
|
var Image = {
|
|
380
377
|
style: {
|
|
@@ -386,8 +383,7 @@ var Image = {
|
|
|
386
383
|
outline: "none",
|
|
387
384
|
border: "none",
|
|
388
385
|
fieldSizing: "content",
|
|
389
|
-
cursor: "default"
|
|
390
|
-
userSelect: "none"
|
|
386
|
+
cursor: "default"
|
|
391
387
|
}
|
|
392
388
|
};
|
|
393
389
|
var Video = {
|
|
@@ -399,8 +395,7 @@ var Video = {
|
|
|
399
395
|
outline: "none",
|
|
400
396
|
border: "none",
|
|
401
397
|
fieldSizing: "content",
|
|
402
|
-
cursor: "default"
|
|
403
|
-
userSelect: "none"
|
|
398
|
+
cursor: "default"
|
|
404
399
|
}
|
|
405
400
|
};
|
|
406
401
|
var IFrame = {
|
|
@@ -413,14 +408,13 @@ var IFrame = {
|
|
|
413
408
|
outline: "none",
|
|
414
409
|
border: "none",
|
|
415
410
|
fieldSizing: "content",
|
|
416
|
-
cursor: "default"
|
|
417
|
-
userSelect: "none"
|
|
411
|
+
cursor: "default"
|
|
418
412
|
}
|
|
419
413
|
};
|
|
420
414
|
var Link = {
|
|
421
415
|
style: {
|
|
422
416
|
width: "100%",
|
|
423
|
-
color: "var(--primary)",
|
|
417
|
+
color: "var(--corax-primary)",
|
|
424
418
|
fontSize: "18px",
|
|
425
419
|
minHeight: "32px",
|
|
426
420
|
whiteSpace: "pre-wrap",
|
|
@@ -431,17 +425,16 @@ var Link = {
|
|
|
431
425
|
outline: "none",
|
|
432
426
|
border: "none",
|
|
433
427
|
fieldSizing: "content",
|
|
434
|
-
cursor: "
|
|
435
|
-
paddingInline: 4
|
|
436
|
-
userSelect: "none"
|
|
428
|
+
cursor: "pointer",
|
|
429
|
+
paddingInline: 4
|
|
437
430
|
},
|
|
438
|
-
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-muted-foreground [&:empty:before]:pointer-events-none"
|
|
431
|
+
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-corax-muted-foreground [&:empty:before]:pointer-events-none"
|
|
439
432
|
};
|
|
440
433
|
var Blockquote = {
|
|
441
434
|
style: {
|
|
442
435
|
width: "100%",
|
|
443
436
|
maxWidth: "100%",
|
|
444
|
-
color: "var(--muted-foreground)",
|
|
437
|
+
color: "var(--corax-muted-foreground)",
|
|
445
438
|
fontSize: "18px",
|
|
446
439
|
minHeight: "32px",
|
|
447
440
|
fontWeight: 400,
|
|
@@ -453,17 +446,16 @@ var Blockquote = {
|
|
|
453
446
|
border: "none",
|
|
454
447
|
fieldSizing: "content",
|
|
455
448
|
cursor: "default",
|
|
456
|
-
paddingInline: 4
|
|
457
|
-
userSelect: "none"
|
|
449
|
+
paddingInline: 4
|
|
458
450
|
},
|
|
459
|
-
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-muted-foreground [&:empty:before]:pointer-events-none"
|
|
451
|
+
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-corax-muted-foreground [&:empty:before]:pointer-events-none"
|
|
460
452
|
};
|
|
461
453
|
var Divider = {
|
|
462
454
|
style: {
|
|
463
455
|
width: "100%",
|
|
464
456
|
borderTopWidth: 1,
|
|
465
457
|
borderTopStyle: "solid",
|
|
466
|
-
borderTopColor: "var(--color-muted-foreground)",
|
|
458
|
+
borderTopColor: "var(--color-corax-muted-foreground)",
|
|
467
459
|
marginBlock: 8,
|
|
468
460
|
outline: "none",
|
|
469
461
|
height: 1,
|
|
@@ -488,7 +480,7 @@ var Code = {
|
|
|
488
480
|
style: {
|
|
489
481
|
width: "100%",
|
|
490
482
|
maxWidth: "100%",
|
|
491
|
-
color: "var(--foreground)",
|
|
483
|
+
color: "var(--corax-foreground)",
|
|
492
484
|
fontSize: "14px",
|
|
493
485
|
fontFamily: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace",
|
|
494
486
|
minHeight: "40px",
|
|
@@ -497,19 +489,18 @@ var Code = {
|
|
|
497
489
|
whiteSpace: "pre-wrap",
|
|
498
490
|
display: "block",
|
|
499
491
|
outline: "none",
|
|
500
|
-
border: "1px solid var(--border)",
|
|
492
|
+
border: "1px solid var(--corax-border)",
|
|
501
493
|
fieldSizing: "content",
|
|
502
494
|
cursor: "default",
|
|
503
|
-
padding: 12
|
|
504
|
-
userSelect: "none"
|
|
495
|
+
padding: 12
|
|
505
496
|
},
|
|
506
|
-
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-muted-foreground [&:empty:before]:pointer-events-none bg-foreground dark:bg-transparent"
|
|
497
|
+
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-corax-muted-foreground [&:empty:before]:pointer-events-none bg-corax-foreground dark:bg-transparent"
|
|
507
498
|
};
|
|
508
499
|
var Caption = {
|
|
509
500
|
style: {
|
|
510
501
|
width: "100%",
|
|
511
502
|
maxWidth: "100%",
|
|
512
|
-
color: "var(--muted-foreground)",
|
|
503
|
+
color: "var(--corax-muted-foreground)",
|
|
513
504
|
fontSize: "14px",
|
|
514
505
|
minHeight: "24px",
|
|
515
506
|
fontWeight: 400,
|
|
@@ -522,10 +513,9 @@ var Caption = {
|
|
|
522
513
|
fieldSizing: "content",
|
|
523
514
|
cursor: "default",
|
|
524
515
|
paddingInline: 4,
|
|
525
|
-
paddingBottom: 4
|
|
526
|
-
userSelect: "none"
|
|
516
|
+
paddingBottom: 4
|
|
527
517
|
},
|
|
528
|
-
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-muted-foreground [&:empty:before]:pointer-events-none"
|
|
518
|
+
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-corax-muted-foreground [&:empty:before]:pointer-events-none"
|
|
529
519
|
};
|
|
530
520
|
var DEFAULT_STYLES = {
|
|
531
521
|
text: Text,
|
|
@@ -690,7 +680,7 @@ function NewIFrameField(defaultValue) {
|
|
|
690
680
|
alt: "image",
|
|
691
681
|
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",
|
|
692
682
|
referrerPolicy: "strict-origin-when-cross-origin",
|
|
693
|
-
allowFullScreen:
|
|
683
|
+
allowFullScreen: true,
|
|
694
684
|
frameBorder: 0,
|
|
695
685
|
...DEFAULT_STYLES["iframe"]
|
|
696
686
|
}, defaultProps),
|