@manuscripts/body-editor 3.13.12 → 3.13.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/cjs/menus.js CHANGED
@@ -333,42 +333,6 @@ const getEditorMenus = (editor) => {
333
333
  {
334
334
  role: 'separator',
335
335
  },
336
- {
337
- id: 'insert-citation',
338
- label: 'Citation',
339
- shortcut: {
340
- mac: 'Option+CommandOrControl+C',
341
- pc: 'CommandOrControl+Option+C',
342
- },
343
- isEnabled: (0, utils_1.isEditAllowed)(state) &&
344
- isCommandValid((0, commands_1.canInsert)(transform_1.schema.nodes.citation)),
345
- run: doCommand(commands_1.insertInlineCitation),
346
- isHidden: !(0, template_1.templateAllows)(state, transform_1.schema.nodes.citation),
347
- },
348
- {
349
- id: 'insert-cross-reference',
350
- label: 'Cross-reference',
351
- shortcut: {
352
- mac: 'Option+CommandOrControl+R',
353
- pc: 'CommandOrControl+Option+R',
354
- },
355
- isEnabled: (0, utils_1.isEditAllowed)(state) &&
356
- isCommandValid((0, commands_1.canInsert)(transform_1.schema.nodes.cross_reference)),
357
- run: doCommand(commands_1.insertCrossReference),
358
- isHidden: !(0, template_1.templateAllows)(state, transform_1.schema.nodes.cross_reference),
359
- },
360
- {
361
- id: 'insert-footnote',
362
- label: 'Footnote',
363
- shortcut: {
364
- mac: 'Option+CommandOrControl+F',
365
- pc: 'CommandOrControl+Option+F',
366
- },
367
- isEnabled: (0, utils_1.isEditAllowed)(state) &&
368
- isCommandValid((0, commands_1.canInsert)(transform_1.schema.nodes.inline_footnote)),
369
- run: doCommand(commands_1.insertInlineFootnote),
370
- isHidden: !(0, template_1.templateAllows)(state, transform_1.schema.nodes.inline_footnote),
371
- },
372
336
  {
373
337
  id: 'insert-special-character',
374
338
  label: 'Special Characters',
@@ -585,6 +549,49 @@ const getEditorMenus = (editor) => {
585
549
  },
586
550
  ],
587
551
  };
552
+ const references = {
553
+ id: 'references',
554
+ label: 'References',
555
+ isEnabled: true,
556
+ submenu: [
557
+ {
558
+ id: 'insert-citation',
559
+ label: 'Citation',
560
+ shortcut: {
561
+ mac: 'Option+CommandOrControl+C',
562
+ pc: 'CommandOrControl+Option+C',
563
+ },
564
+ isEnabled: (0, utils_1.isEditAllowed)(state) &&
565
+ isCommandValid((0, commands_1.canInsert)(transform_1.schema.nodes.citation)),
566
+ run: doCommand(commands_1.insertInlineCitation),
567
+ isHidden: !(0, template_1.templateAllows)(state, transform_1.schema.nodes.citation),
568
+ },
569
+ {
570
+ id: 'insert-cross-reference',
571
+ label: 'Cross-reference',
572
+ shortcut: {
573
+ mac: 'Option+CommandOrControl+R',
574
+ pc: 'CommandOrControl+Option+R',
575
+ },
576
+ isEnabled: (0, utils_1.isEditAllowed)(state) &&
577
+ isCommandValid((0, commands_1.canInsert)(transform_1.schema.nodes.cross_reference)),
578
+ run: doCommand(commands_1.insertCrossReference),
579
+ isHidden: !(0, template_1.templateAllows)(state, transform_1.schema.nodes.cross_reference),
580
+ },
581
+ {
582
+ id: 'insert-footnote',
583
+ label: 'Footnote',
584
+ shortcut: {
585
+ mac: 'Option+CommandOrControl+F',
586
+ pc: 'CommandOrControl+Option+F',
587
+ },
588
+ isEnabled: (0, utils_1.isEditAllowed)(state) &&
589
+ isCommandValid((0, commands_1.canInsert)(transform_1.schema.nodes.inline_footnote)),
590
+ run: doCommand(commands_1.insertInlineFootnote),
591
+ isHidden: !(0, template_1.templateAllows)(state, transform_1.schema.nodes.inline_footnote),
592
+ },
593
+ ],
594
+ };
588
595
  const help = {
589
596
  id: 'help',
590
597
  label: 'Help',
@@ -602,6 +609,6 @@ const getEditorMenus = (editor) => {
602
609
  },
603
610
  ],
604
611
  };
605
- return [edit, insert, metadata, format, help];
612
+ return [edit, insert, metadata, references, format, help];
606
613
  };
607
614
  exports.getEditorMenus = getEditorMenus;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MATHJAX_VERSION = exports.VERSION = void 0;
4
- exports.VERSION = '3.13.12';
4
+ exports.VERSION = '3.13.13';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
package/dist/es/menus.js CHANGED
@@ -330,42 +330,6 @@ export const getEditorMenus = (editor) => {
330
330
  {
331
331
  role: 'separator',
332
332
  },
333
- {
334
- id: 'insert-citation',
335
- label: 'Citation',
336
- shortcut: {
337
- mac: 'Option+CommandOrControl+C',
338
- pc: 'CommandOrControl+Option+C',
339
- },
340
- isEnabled: isEditAllowed(state) &&
341
- isCommandValid(canInsert(schema.nodes.citation)),
342
- run: doCommand(insertInlineCitation),
343
- isHidden: !templateAllows(state, schema.nodes.citation),
344
- },
345
- {
346
- id: 'insert-cross-reference',
347
- label: 'Cross-reference',
348
- shortcut: {
349
- mac: 'Option+CommandOrControl+R',
350
- pc: 'CommandOrControl+Option+R',
351
- },
352
- isEnabled: isEditAllowed(state) &&
353
- isCommandValid(canInsert(schema.nodes.cross_reference)),
354
- run: doCommand(insertCrossReference),
355
- isHidden: !templateAllows(state, schema.nodes.cross_reference),
356
- },
357
- {
358
- id: 'insert-footnote',
359
- label: 'Footnote',
360
- shortcut: {
361
- mac: 'Option+CommandOrControl+F',
362
- pc: 'CommandOrControl+Option+F',
363
- },
364
- isEnabled: isEditAllowed(state) &&
365
- isCommandValid(canInsert(schema.nodes.inline_footnote)),
366
- run: doCommand(insertInlineFootnote),
367
- isHidden: !templateAllows(state, schema.nodes.inline_footnote),
368
- },
369
333
  {
370
334
  id: 'insert-special-character',
371
335
  label: 'Special Characters',
@@ -582,6 +546,49 @@ export const getEditorMenus = (editor) => {
582
546
  },
583
547
  ],
584
548
  };
549
+ const references = {
550
+ id: 'references',
551
+ label: 'References',
552
+ isEnabled: true,
553
+ submenu: [
554
+ {
555
+ id: 'insert-citation',
556
+ label: 'Citation',
557
+ shortcut: {
558
+ mac: 'Option+CommandOrControl+C',
559
+ pc: 'CommandOrControl+Option+C',
560
+ },
561
+ isEnabled: isEditAllowed(state) &&
562
+ isCommandValid(canInsert(schema.nodes.citation)),
563
+ run: doCommand(insertInlineCitation),
564
+ isHidden: !templateAllows(state, schema.nodes.citation),
565
+ },
566
+ {
567
+ id: 'insert-cross-reference',
568
+ label: 'Cross-reference',
569
+ shortcut: {
570
+ mac: 'Option+CommandOrControl+R',
571
+ pc: 'CommandOrControl+Option+R',
572
+ },
573
+ isEnabled: isEditAllowed(state) &&
574
+ isCommandValid(canInsert(schema.nodes.cross_reference)),
575
+ run: doCommand(insertCrossReference),
576
+ isHidden: !templateAllows(state, schema.nodes.cross_reference),
577
+ },
578
+ {
579
+ id: 'insert-footnote',
580
+ label: 'Footnote',
581
+ shortcut: {
582
+ mac: 'Option+CommandOrControl+F',
583
+ pc: 'CommandOrControl+Option+F',
584
+ },
585
+ isEnabled: isEditAllowed(state) &&
586
+ isCommandValid(canInsert(schema.nodes.inline_footnote)),
587
+ run: doCommand(insertInlineFootnote),
588
+ isHidden: !templateAllows(state, schema.nodes.inline_footnote),
589
+ },
590
+ ],
591
+ };
585
592
  const help = {
586
593
  id: 'help',
587
594
  label: 'Help',
@@ -599,5 +606,5 @@ export const getEditorMenus = (editor) => {
599
606
  },
600
607
  ],
601
608
  };
602
- return [edit, insert, metadata, format, help];
609
+ return [edit, insert, metadata, references, format, help];
603
610
  };
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.13.12';
1
+ export const VERSION = '3.13.13';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.13.12";
1
+ export declare const VERSION = "3.13.13";
2
2
  export declare const MATHJAX_VERSION = "3.2.2";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/body-editor",
3
3
  "description": "Prosemirror components for editing and viewing manuscripts",
4
- "version": "3.13.12",
4
+ "version": "3.13.13",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",
package/src/menus.tsx CHANGED
@@ -400,45 +400,6 @@ export const getEditorMenus = (
400
400
  {
401
401
  role: 'separator',
402
402
  },
403
- {
404
- id: 'insert-citation',
405
- label: 'Citation',
406
- shortcut: {
407
- mac: 'Option+CommandOrControl+C',
408
- pc: 'CommandOrControl+Option+C',
409
- },
410
- isEnabled:
411
- isEditAllowed(state) &&
412
- isCommandValid(canInsert(schema.nodes.citation)),
413
- run: doCommand(insertInlineCitation),
414
- isHidden: !templateAllows(state, schema.nodes.citation),
415
- },
416
- {
417
- id: 'insert-cross-reference',
418
- label: 'Cross-reference',
419
- shortcut: {
420
- mac: 'Option+CommandOrControl+R',
421
- pc: 'CommandOrControl+Option+R',
422
- },
423
- isEnabled:
424
- isEditAllowed(state) &&
425
- isCommandValid(canInsert(schema.nodes.cross_reference)),
426
- run: doCommand(insertCrossReference),
427
- isHidden: !templateAllows(state, schema.nodes.cross_reference),
428
- },
429
- {
430
- id: 'insert-footnote',
431
- label: 'Footnote',
432
- shortcut: {
433
- mac: 'Option+CommandOrControl+F',
434
- pc: 'CommandOrControl+Option+F',
435
- },
436
- isEnabled:
437
- isEditAllowed(state) &&
438
- isCommandValid(canInsert(schema.nodes.inline_footnote)),
439
- run: doCommand(insertInlineFootnote),
440
- isHidden: !templateAllows(state, schema.nodes.inline_footnote),
441
- },
442
403
  {
443
404
  id: 'insert-special-character',
444
405
  label: 'Special Characters',
@@ -672,6 +633,53 @@ export const getEditorMenus = (
672
633
  ],
673
634
  }
674
635
 
636
+ const references: MenuSpec = {
637
+ id: 'references',
638
+ label: 'References',
639
+ isEnabled: true,
640
+ submenu: [
641
+ {
642
+ id: 'insert-citation',
643
+ label: 'Citation',
644
+ shortcut: {
645
+ mac: 'Option+CommandOrControl+C',
646
+ pc: 'CommandOrControl+Option+C',
647
+ },
648
+ isEnabled:
649
+ isEditAllowed(state) &&
650
+ isCommandValid(canInsert(schema.nodes.citation)),
651
+ run: doCommand(insertInlineCitation),
652
+ isHidden: !templateAllows(state, schema.nodes.citation),
653
+ },
654
+ {
655
+ id: 'insert-cross-reference',
656
+ label: 'Cross-reference',
657
+ shortcut: {
658
+ mac: 'Option+CommandOrControl+R',
659
+ pc: 'CommandOrControl+Option+R',
660
+ },
661
+ isEnabled:
662
+ isEditAllowed(state) &&
663
+ isCommandValid(canInsert(schema.nodes.cross_reference)),
664
+ run: doCommand(insertCrossReference),
665
+ isHidden: !templateAllows(state, schema.nodes.cross_reference),
666
+ },
667
+ {
668
+ id: 'insert-footnote',
669
+ label: 'Footnote',
670
+ shortcut: {
671
+ mac: 'Option+CommandOrControl+F',
672
+ pc: 'CommandOrControl+Option+F',
673
+ },
674
+ isEnabled:
675
+ isEditAllowed(state) &&
676
+ isCommandValid(canInsert(schema.nodes.inline_footnote)),
677
+ run: doCommand(insertInlineFootnote),
678
+ isHidden: !templateAllows(state, schema.nodes.inline_footnote),
679
+ },
680
+ ],
681
+ }
682
+
675
683
  const help: MenuSpec = {
676
684
  id: 'help',
677
685
  label: 'Help',
@@ -690,5 +698,5 @@ export const getEditorMenus = (
690
698
  ],
691
699
  }
692
700
 
693
- return [edit, insert, metadata, format, help]
701
+ return [edit, insert, metadata, references, format, help]
694
702
  }
package/src/versions.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  //THIS FILE WAS GENERATED BY versions.mjs
2
- export const VERSION = '3.13.12';
2
+ export const VERSION = '3.13.13';
3
3
  export const MATHJAX_VERSION = '3.2.2';