@pubwave/editor 0.3.0 → 0.5.0

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.ts CHANGED
@@ -43,7 +43,7 @@ export declare interface BlockHandleProps {
43
43
  /**
44
44
  * Supported block types in the editor
45
45
  */
46
- export declare type BlockType = 'paragraph' | 'heading' | 'bulletList' | 'orderedList' | 'taskList' | 'blockquote' | 'codeBlock' | 'horizontalRule' | 'image';
46
+ export declare type BlockType = 'paragraph' | 'heading' | 'bulletList' | 'orderedList' | 'taskList' | 'blockquote' | 'codeBlock' | 'horizontalRule' | 'image' | 'chart';
47
47
 
48
48
  /**
49
49
  * BubbleToolbar - Selection-driven floating toolbar
@@ -380,6 +380,7 @@ declare interface EditorLocale_2 {
380
380
  list: string;
381
381
  media: string;
382
382
  advanced: string;
383
+ layout?: string;
383
384
  };
384
385
  commands: {
385
386
  paragraph: {
@@ -426,6 +427,14 @@ declare interface EditorLocale_2 {
426
427
  title: string;
427
428
  description: string;
428
429
  };
430
+ layoutTwoColumn?: {
431
+ title: string;
432
+ description: string;
433
+ };
434
+ layoutThreeColumn?: {
435
+ title: string;
436
+ description: string;
437
+ };
429
438
  };
430
439
  };
431
440
  toolbar: {
@@ -486,6 +495,49 @@ declare interface EditorLocale_2 {
486
495
  };
487
496
  placeholder: string;
488
497
  linkPlaceholder: string;
498
+ chart?: {
499
+ modal: {
500
+ title: string;
501
+ close: string;
502
+ save: string;
503
+ cancel: string;
504
+ fields: {
505
+ chartType: string;
506
+ title: string;
507
+ titlePlaceholder: string;
508
+ showLegend: string;
509
+ legendPosition: string;
510
+ position: {
511
+ top: string;
512
+ bottom: string;
513
+ left: string;
514
+ right: string;
515
+ };
516
+ labels: string;
517
+ labelsPlaceholder: string;
518
+ datasets: {
519
+ title: string;
520
+ add: string;
521
+ remove: string;
522
+ datasetLabel: string;
523
+ datasetLabelPlaceholder: string;
524
+ data: string;
525
+ dataPlaceholder: string;
526
+ };
527
+ };
528
+ };
529
+ chartTypes: {
530
+ bar: string;
531
+ line: string;
532
+ pie: string;
533
+ doughnut: string;
534
+ radar: string;
535
+ polarArea: string;
536
+ };
537
+ errors?: {
538
+ invalidData: string;
539
+ };
540
+ };
489
541
  }
490
542
 
491
543
  /**
@@ -1118,7 +1170,7 @@ export declare interface SlashCommand {
1118
1170
  description: string;
1119
1171
  icon: default_2.ReactNode;
1120
1172
  aliases?: string[];
1121
- group: 'basic' | 'list' | 'media' | 'advanced';
1173
+ group: 'basic' | 'list' | 'media' | 'advanced' | 'layout';
1122
1174
  action: (editor: Editor_2) => void;
1123
1175
  }
1124
1176