@coorax/schema 0.0.0-canary.4 → 0.0.0-canary.6
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 +27 -33
- 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: {
|
|
@@ -420,7 +417,7 @@ var IFrame = {
|
|
|
420
417
|
var Link = {
|
|
421
418
|
style: {
|
|
422
419
|
width: "100%",
|
|
423
|
-
color: "var(--primary)",
|
|
420
|
+
color: "var(--corax-primary)",
|
|
424
421
|
fontSize: "18px",
|
|
425
422
|
minHeight: "32px",
|
|
426
423
|
whiteSpace: "pre-wrap",
|
|
@@ -431,17 +428,16 @@ var Link = {
|
|
|
431
428
|
outline: "none",
|
|
432
429
|
border: "none",
|
|
433
430
|
fieldSizing: "content",
|
|
434
|
-
cursor: "
|
|
435
|
-
paddingInline: 4
|
|
436
|
-
userSelect: "none"
|
|
431
|
+
cursor: "pointer",
|
|
432
|
+
paddingInline: 4
|
|
437
433
|
},
|
|
438
|
-
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-muted-foreground [&:empty:before]:pointer-events-none"
|
|
434
|
+
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-corax-muted-foreground [&:empty:before]:pointer-events-none"
|
|
439
435
|
};
|
|
440
436
|
var Blockquote = {
|
|
441
437
|
style: {
|
|
442
438
|
width: "100%",
|
|
443
439
|
maxWidth: "100%",
|
|
444
|
-
color: "var(--muted-foreground)",
|
|
440
|
+
color: "var(--corax-muted-foreground)",
|
|
445
441
|
fontSize: "18px",
|
|
446
442
|
minHeight: "32px",
|
|
447
443
|
fontWeight: 400,
|
|
@@ -453,22 +449,22 @@ var Blockquote = {
|
|
|
453
449
|
border: "none",
|
|
454
450
|
fieldSizing: "content",
|
|
455
451
|
cursor: "default",
|
|
456
|
-
paddingInline: 4
|
|
457
|
-
userSelect: "none"
|
|
452
|
+
paddingInline: 4
|
|
458
453
|
},
|
|
459
|
-
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-muted-foreground [&:empty:before]:pointer-events-none"
|
|
454
|
+
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-corax-muted-foreground [&:empty:before]:pointer-events-none"
|
|
460
455
|
};
|
|
461
456
|
var Divider = {
|
|
462
457
|
style: {
|
|
463
458
|
width: "100%",
|
|
464
459
|
borderTopWidth: 1,
|
|
465
460
|
borderTopStyle: "solid",
|
|
466
|
-
borderTopColor: "var(--color-muted-foreground)",
|
|
461
|
+
borderTopColor: "var(--color-corax-muted-foreground)",
|
|
467
462
|
marginBlock: 8,
|
|
468
463
|
outline: "none",
|
|
469
464
|
height: 1,
|
|
470
465
|
position: "relative",
|
|
471
|
-
overflow: "visible"
|
|
466
|
+
overflow: "visible",
|
|
467
|
+
userSelect: "none"
|
|
472
468
|
},
|
|
473
469
|
pseudoStyle: {
|
|
474
470
|
":before": {
|
|
@@ -488,7 +484,7 @@ var Code = {
|
|
|
488
484
|
style: {
|
|
489
485
|
width: "100%",
|
|
490
486
|
maxWidth: "100%",
|
|
491
|
-
color: "var(--foreground)",
|
|
487
|
+
color: "var(--corax-foreground)",
|
|
492
488
|
fontSize: "14px",
|
|
493
489
|
fontFamily: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace",
|
|
494
490
|
minHeight: "40px",
|
|
@@ -497,19 +493,18 @@ var Code = {
|
|
|
497
493
|
whiteSpace: "pre-wrap",
|
|
498
494
|
display: "block",
|
|
499
495
|
outline: "none",
|
|
500
|
-
border: "1px solid var(--border)",
|
|
496
|
+
border: "1px solid var(--corax-border)",
|
|
501
497
|
fieldSizing: "content",
|
|
502
498
|
cursor: "default",
|
|
503
|
-
padding: 12
|
|
504
|
-
userSelect: "none"
|
|
499
|
+
padding: 12
|
|
505
500
|
},
|
|
506
|
-
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-muted-foreground [&:empty:before]:pointer-events-none bg-foreground dark:bg-transparent"
|
|
501
|
+
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
502
|
};
|
|
508
503
|
var Caption = {
|
|
509
504
|
style: {
|
|
510
505
|
width: "100%",
|
|
511
506
|
maxWidth: "100%",
|
|
512
|
-
color: "var(--muted-foreground)",
|
|
507
|
+
color: "var(--corax-muted-foreground)",
|
|
513
508
|
fontSize: "14px",
|
|
514
509
|
minHeight: "24px",
|
|
515
510
|
fontWeight: 400,
|
|
@@ -522,10 +517,9 @@ var Caption = {
|
|
|
522
517
|
fieldSizing: "content",
|
|
523
518
|
cursor: "default",
|
|
524
519
|
paddingInline: 4,
|
|
525
|
-
paddingBottom: 4
|
|
526
|
-
userSelect: "none"
|
|
520
|
+
paddingBottom: 4
|
|
527
521
|
},
|
|
528
|
-
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-muted-foreground [&:empty:before]:pointer-events-none"
|
|
522
|
+
className: "[&:empty:before]:content-[attr(data-placeholder)] [&:empty:before]:text-corax-muted-foreground [&:empty:before]:pointer-events-none"
|
|
529
523
|
};
|
|
530
524
|
var DEFAULT_STYLES = {
|
|
531
525
|
text: Text,
|
|
@@ -690,7 +684,7 @@ function NewIFrameField(defaultValue) {
|
|
|
690
684
|
alt: "image",
|
|
691
685
|
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",
|
|
692
686
|
referrerPolicy: "strict-origin-when-cross-origin",
|
|
693
|
-
allowFullScreen:
|
|
687
|
+
allowFullScreen: true,
|
|
694
688
|
frameBorder: 0,
|
|
695
689
|
...DEFAULT_STYLES["iframe"]
|
|
696
690
|
}, defaultProps),
|