@manuscripts/body-editor 3.17.1 → 3.17.2

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,41 +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) && isCommandValid(commands_1.canInsertCrossReference),
356
- run: doCommand(commands_1.insertCrossReference),
357
- isHidden: !(0, template_1.templateAllows)(state, transform_1.schema.nodes.cross_reference),
358
- },
359
- {
360
- id: 'insert-footnote',
361
- label: 'Footnote',
362
- shortcut: {
363
- mac: 'Option+CommandOrControl+F',
364
- pc: 'CommandOrControl+Option+F',
365
- },
366
- isEnabled: (0, utils_1.isEditAllowed)(state) &&
367
- isCommandValid((0, commands_1.canInsert)(transform_1.schema.nodes.inline_footnote)),
368
- run: doCommand(commands_1.insertInlineFootnote),
369
- isHidden: !(0, template_1.templateAllows)(state, transform_1.schema.nodes.inline_footnote),
370
- },
371
336
  {
372
337
  id: 'insert-special-character',
373
338
  label: 'Special Characters',
@@ -608,8 +573,7 @@ const getEditorMenus = (editor) => {
608
573
  mac: 'Option+CommandOrControl+R',
609
574
  pc: 'CommandOrControl+Option+R',
610
575
  },
611
- isEnabled: (0, utils_1.isEditAllowed)(state) &&
612
- isCommandValid((0, commands_1.canInsert)(transform_1.schema.nodes.cross_reference)),
576
+ isEnabled: (0, utils_1.isEditAllowed)(state) && isCommandValid(commands_1.canInsertCrossReference),
613
577
  run: doCommand(commands_1.insertCrossReference),
614
578
  isHidden: !(0, template_1.templateAllows)(state, transform_1.schema.nodes.cross_reference),
615
579
  },
@@ -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.17.1';
4
+ exports.VERSION = '3.17.2';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
package/dist/es/menus.js CHANGED
@@ -330,41 +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) && isCommandValid(canInsertCrossReference),
353
- run: doCommand(insertCrossReference),
354
- isHidden: !templateAllows(state, schema.nodes.cross_reference),
355
- },
356
- {
357
- id: 'insert-footnote',
358
- label: 'Footnote',
359
- shortcut: {
360
- mac: 'Option+CommandOrControl+F',
361
- pc: 'CommandOrControl+Option+F',
362
- },
363
- isEnabled: isEditAllowed(state) &&
364
- isCommandValid(canInsert(schema.nodes.inline_footnote)),
365
- run: doCommand(insertInlineFootnote),
366
- isHidden: !templateAllows(state, schema.nodes.inline_footnote),
367
- },
368
333
  {
369
334
  id: 'insert-special-character',
370
335
  label: 'Special Characters',
@@ -605,8 +570,7 @@ export const getEditorMenus = (editor) => {
605
570
  mac: 'Option+CommandOrControl+R',
606
571
  pc: 'CommandOrControl+Option+R',
607
572
  },
608
- isEnabled: isEditAllowed(state) &&
609
- isCommandValid(canInsert(schema.nodes.cross_reference)),
573
+ isEnabled: isEditAllowed(state) && isCommandValid(canInsertCrossReference),
610
574
  run: doCommand(insertCrossReference),
611
575
  isHidden: !templateAllows(state, schema.nodes.cross_reference),
612
576
  },
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.17.1';
1
+ export const VERSION = '3.17.2';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.17.1";
1
+ export declare const VERSION = "3.17.2";
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.17.1",
4
+ "version": "3.17.2",
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
@@ -401,44 +401,6 @@ export const getEditorMenus = (
401
401
  {
402
402
  role: 'separator',
403
403
  },
404
- {
405
- id: 'insert-citation',
406
- label: 'Citation',
407
- shortcut: {
408
- mac: 'Option+CommandOrControl+C',
409
- pc: 'CommandOrControl+Option+C',
410
- },
411
- isEnabled:
412
- isEditAllowed(state) &&
413
- isCommandValid(canInsert(schema.nodes.citation)),
414
- run: doCommand(insertInlineCitation),
415
- isHidden: !templateAllows(state, schema.nodes.citation),
416
- },
417
- {
418
- id: 'insert-cross-reference',
419
- label: 'Cross-reference',
420
- shortcut: {
421
- mac: 'Option+CommandOrControl+R',
422
- pc: 'CommandOrControl+Option+R',
423
- },
424
- isEnabled:
425
- isEditAllowed(state) && isCommandValid(canInsertCrossReference),
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
404
  {
443
405
  id: 'insert-special-character',
444
406
  label: 'Special Characters',
@@ -698,8 +660,7 @@ export const getEditorMenus = (
698
660
  pc: 'CommandOrControl+Option+R',
699
661
  },
700
662
  isEnabled:
701
- isEditAllowed(state) &&
702
- isCommandValid(canInsert(schema.nodes.cross_reference)),
663
+ isEditAllowed(state) && isCommandValid(canInsertCrossReference),
703
664
  run: doCommand(insertCrossReference),
704
665
  isHidden: !templateAllows(state, schema.nodes.cross_reference),
705
666
  },
package/src/versions.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  //THIS FILE WAS GENERATED BY versions.mjs
2
- export const VERSION = '3.17.1';
2
+ export const VERSION = '3.17.2';
3
3
  export const MATHJAX_VERSION = '3.2.2';