@eightyfourthousand/lib-editing 2026.5.4 → 2026.6.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.
Files changed (99) hide show
  1. package/lib/components/editor/EditorBackMatterPage.js +7 -3
  2. package/lib/components/editor/EditorBackMatterPage.js.map +1 -1
  3. package/lib/components/editor/EditorBodyPage.js +7 -3
  4. package/lib/components/editor/EditorBodyPage.js.map +1 -1
  5. package/lib/components/editor/PaginationProvider.d.ts +2 -1
  6. package/lib/components/editor/PaginationProvider.js +40 -13
  7. package/lib/components/editor/PaginationProvider.js.map +1 -1
  8. package/lib/components/editor/TranslationBuilder.d.ts +1 -1
  9. package/lib/components/editor/TranslationBuilder.js +2 -2
  10. package/lib/components/editor/TranslationBuilder.js.map +1 -1
  11. package/lib/components/editor/extensions/DragHandle/DragHandle.d.ts +1 -1
  12. package/lib/components/editor/extensions/DragHandle/DragHandle.js.map +1 -1
  13. package/lib/components/editor/extensions/EndNoteLink/EndNoteLinkMark.js +131 -1
  14. package/lib/components/editor/extensions/EndNoteLink/EndNoteLinkMark.js.map +1 -1
  15. package/lib/components/editor/extensions/Foreign/Foreign.js +1 -1
  16. package/lib/components/editor/extensions/GlobalConfig.d.ts +3 -1
  17. package/lib/components/editor/extensions/Line/LineNode.d.ts +3 -1
  18. package/lib/components/editor/extensions/Line/LineNode.ssr.d.ts +3 -1
  19. package/lib/components/editor/extensions/LineGroup/LineGroupNode.d.ts +6 -1
  20. package/lib/components/editor/extensions/LineGroup/LineGroupNode.ssr.d.ts +6 -1
  21. package/lib/components/editor/extensions/Mantra/Mantra.js +12 -17
  22. package/lib/components/editor/extensions/Mantra/Mantra.js.map +1 -1
  23. package/lib/components/editor/extensions/Mention/Mention.js +5 -1
  24. package/lib/components/editor/extensions/Mention/Mention.js.map +1 -1
  25. package/lib/components/editor/extensions/Mention/Mention.ssr.js +6 -4
  26. package/lib/components/editor/extensions/Mention/Mention.ssr.js.map +1 -1
  27. package/lib/components/editor/extensions/Passage/Passage.js +1 -1
  28. package/lib/components/editor/extensions/Passage/Passage.js.map +1 -1
  29. package/lib/components/editor/extensions/Passage/PassageNode.js +60 -3
  30. package/lib/components/editor/extensions/Passage/PassageNode.js.map +1 -1
  31. package/lib/components/editor/extensions/PipeNotItalic.d.ts +2 -0
  32. package/lib/components/editor/extensions/PipeNotItalic.js +90 -0
  33. package/lib/components/editor/extensions/PipeNotItalic.js.map +1 -0
  34. package/lib/components/editor/extensions/translationSSRExtensions.js +2 -0
  35. package/lib/components/editor/extensions/translationSSRExtensions.js.map +1 -1
  36. package/lib/components/editor/hooks/useTranslationExtensions.d.ts +10 -1
  37. package/lib/components/editor/hooks/useTranslationExtensions.js +2 -0
  38. package/lib/components/editor/hooks/useTranslationExtensions.js.map +1 -1
  39. package/lib/components/editor/menus/EmptyBubbleMenu.js +6 -2
  40. package/lib/components/editor/menus/EmptyBubbleMenu.js.map +1 -1
  41. package/lib/components/editor/menus/MainBubbleMenu.js +6 -2
  42. package/lib/components/editor/menus/MainBubbleMenu.js.map +1 -1
  43. package/lib/components/editor/menus/TranslationBubbleMenu.js +6 -2
  44. package/lib/components/editor/menus/TranslationBubbleMenu.js.map +1 -1
  45. package/lib/components/editor/menus/index.d.ts +1 -0
  46. package/lib/components/editor/menus/index.js +1 -0
  47. package/lib/components/editor/menus/index.js.map +1 -1
  48. package/lib/components/editor/menus/useDismissBubbleMenu.d.ts +8 -0
  49. package/lib/components/editor/menus/useDismissBubbleMenu.js +35 -0
  50. package/lib/components/editor/menus/useDismissBubbleMenu.js.map +1 -0
  51. package/lib/components/reader/ReaderBackMatterPage.js +2 -2
  52. package/lib/components/reader/ReaderBackMatterPage.js.map +1 -1
  53. package/lib/components/reader/ReaderBackMatterPanel.d.ts +3 -1
  54. package/lib/components/reader/ReaderBackMatterPanel.js +3 -3
  55. package/lib/components/reader/ReaderBackMatterPanel.js.map +1 -1
  56. package/lib/components/reader/ReaderBodyPage.js +5 -4
  57. package/lib/components/reader/ReaderBodyPage.js.map +1 -1
  58. package/lib/components/reader/ReaderBodyPanel.d.ts +5 -2
  59. package/lib/components/reader/ReaderBodyPanel.js +24 -5
  60. package/lib/components/reader/ReaderBodyPanel.js.map +1 -1
  61. package/lib/components/reader/ReaderLayout.d.ts +3 -1
  62. package/lib/components/reader/ReaderLayout.js +2 -3
  63. package/lib/components/reader/ReaderLayout.js.map +1 -1
  64. package/lib/components/reader/TranslationReader.d.ts +1 -1
  65. package/lib/components/reader/TranslationReader.js +2 -2
  66. package/lib/components/reader/TranslationReader.js.map +1 -1
  67. package/lib/components/reader/TranslationSSRContent.js +6 -2
  68. package/lib/components/reader/TranslationSSRContent.js.map +1 -1
  69. package/lib/components/shared/BackMatterPanel.d.ts +3 -1
  70. package/lib/components/shared/BackMatterPanel.js +3 -1
  71. package/lib/components/shared/BackMatterPanel.js.map +1 -1
  72. package/lib/components/shared/BodyPanel.d.ts +5 -3
  73. package/lib/components/shared/BodyPanel.js +17 -25
  74. package/lib/components/shared/BodyPanel.js.map +1 -1
  75. package/lib/components/shared/FocusToggleButton.d.ts +1 -0
  76. package/lib/components/shared/FocusToggleButton.js +13 -0
  77. package/lib/components/shared/FocusToggleButton.js.map +1 -0
  78. package/lib/components/shared/NavigationContext.d.ts +2 -0
  79. package/lib/components/shared/NavigationContext.js +2 -0
  80. package/lib/components/shared/NavigationContext.js.map +1 -1
  81. package/lib/components/shared/NavigationProvider.d.ts +3 -1
  82. package/lib/components/shared/NavigationProvider.js +7 -2
  83. package/lib/components/shared/NavigationProvider.js.map +1 -1
  84. package/lib/components/shared/SourceReader.js +249 -27
  85. package/lib/components/shared/SourceReader.js.map +1 -1
  86. package/lib/components/shared/ThreeColumnRenderer.d.ts +2 -1
  87. package/lib/components/shared/ThreeColumnRenderer.js +6 -5
  88. package/lib/components/shared/ThreeColumnRenderer.js.map +1 -1
  89. package/lib/components/shared/TranslationPlaceholder.d.ts +4 -0
  90. package/lib/components/shared/TranslationPlaceholder.js +13 -0
  91. package/lib/components/shared/TranslationPlaceholder.js.map +1 -0
  92. package/lib/components/shared/index.d.ts +1 -0
  93. package/lib/components/shared/index.js +1 -0
  94. package/lib/components/shared/index.js.map +1 -1
  95. package/lib/components/shared/types.d.ts +14 -0
  96. package/lib/components/shared/types.js.map +1 -1
  97. package/lib/exporters/mantra.js +6 -2
  98. package/lib/exporters/mantra.js.map +1 -1
  99. package/package.json +33 -33
@@ -1,17 +1,18 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { ThreeColumns } from '@eightyfourthousand/design-system';
4
4
  import { useMemo } from 'react';
5
5
  import { useNavigation } from './NavigationProvider';
6
6
  import { cn } from '@eightyfourthousand/lib-utils';
7
7
  import { TranslationHeader } from './TranslationHeader';
8
8
  import { ReaderSearchButton } from './ReaderSearchButton';
9
+ import { FocusToggleButton } from './FocusToggleButton';
9
10
  import { GatedFeature } from '@eightyfourthousand/lib-instr';
10
- export const ThreeColumnRenderer = ({ withHeader = false, children, }) => {
11
- const { panels, updatePanel, hasTranslationContent } = useNavigation();
11
+ export const ThreeColumnRenderer = ({ withHeader = false, withFocusToggle = false, children, }) => {
12
+ const { panels, updatePanel, hasTranslationContent, focusMode } = useNavigation();
12
13
  const rightPanelEnabled = hasTranslationContent;
13
- const searchButton = useMemo(() => _jsx(ReaderSearchButton, {}), []);
14
- return (_jsxs("div", { className: cn('fixed flex flex-col size-full p-2 bg-canvas', withHeader ? 'pb-20' : ''), children: [_jsx(GatedFeature, { flag: 'show-reader-header', children: _jsx("div", { className: "pb-2.5", children: _jsx(TranslationHeader, { className: "rounded-full shadow-lg" }) }) }), _jsx(ThreeColumns, { leftPanelOpen: panels.left.open, rightPanelOpen: rightPanelEnabled ? panels.right.open : false, rightPanelEnabled: rightPanelEnabled, mainPanelActions: searchButton, onLeftPanelOpenChange: (open) => {
14
+ const mainPanelActions = useMemo(() => (_jsxs(_Fragment, { children: [_jsx(ReaderSearchButton, {}), withFocusToggle && _jsx(FocusToggleButton, {})] })), [withFocusToggle]);
15
+ return (_jsxs("div", { className: cn('fixed flex flex-col size-full p-2 bg-canvas', withHeader ? 'pb-20' : '', withFocusToggle && focusMode && 'focus-mode'), children: [_jsx(GatedFeature, { flag: "show-reader-header", children: _jsx("div", { className: "pb-2.5", children: _jsx(TranslationHeader, { className: "rounded-full shadow-lg" }) }) }), _jsx(ThreeColumns, { leftPanelOpen: panels.left.open, rightPanelOpen: rightPanelEnabled ? panels.right.open : false, rightPanelEnabled: rightPanelEnabled, mainPanelActions: mainPanelActions, onLeftPanelOpenChange: (open) => {
15
16
  updatePanel({
16
17
  name: 'left',
17
18
  state: { open, tab: panels.left.tab },
@@ -1 +1 @@
1
- {"version":3,"file":"ThreeColumnRenderer.js","sourceRoot":"","sources":["../../../../../../libs/lib-editing/src/lib/components/shared/ThreeColumnRenderer.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAa,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,UAAU,GAAG,KAAK,EAClB,QAAQ,GAIT,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,GAAG,aAAa,EAAE,CAAC;IACvE,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;IAEhD,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,KAAC,kBAAkB,KAAG,EAAE,EAAE,CAAC,CAAC;IAE/D,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,6CAA6C,EAC7C,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAC1B,aAED,KAAC,YAAY,IAAC,IAAI,EAAC,oBAAoB,YACrC,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,iBAAiB,IAAC,SAAS,EAAC,wBAAwB,GAAG,GACpD,GACO,EACf,KAAC,YAAY,IACX,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,EAC/B,cAAc,EAAE,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAC7D,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EAAE,YAAY,EAC9B,qBAAqB,EAAE,CAAC,IAAI,EAAE,EAAE;oBAC9B,WAAW,CAAC;wBACV,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;qBACtC,CAAC,CAAC;gBACL,CAAC,EACD,sBAAsB,EACpB,iBAAiB;oBACf,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE;wBACT,WAAW,CAAC;4BACV,IAAI,EAAE,OAAO;4BACb,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE;yBACvC,CAAC,CAAC;oBACL,CAAC;oBACD,CAAC,CAAC,SAAS,YAGd,QAAQ,GACI,IACX,CACP,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"ThreeColumnRenderer.js","sourceRoot":"","sources":["../../../../../../libs/lib-editing/src/lib/components/shared/ThreeColumnRenderer.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAa,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,EAAE,EAAE,MAAM,+BAA+B,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,UAAU,GAAG,KAAK,EAClB,eAAe,GAAG,KAAK,EACvB,QAAQ,GAKT,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,SAAS,EAAE,GAC7D,aAAa,EAAE,CAAC;IAClB,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;IAEhD,MAAM,gBAAgB,GAAG,OAAO,CAC9B,GAAG,EAAE,CAAC,CACJ,8BACE,KAAC,kBAAkB,KAAG,EACrB,eAAe,IAAI,KAAC,iBAAiB,KAAG,IACxC,CACJ,EACD,CAAC,eAAe,CAAC,CAClB,CAAC;IAEF,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,6CAA6C,EAC7C,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EACzB,eAAe,IAAI,SAAS,IAAI,YAAY,CAC7C,aAED,KAAC,YAAY,IAAC,IAAI,EAAC,oBAAoB,YACrC,cAAK,SAAS,EAAC,QAAQ,YACrB,KAAC,iBAAiB,IAAC,SAAS,EAAC,wBAAwB,GAAG,GACpD,GACO,EACf,KAAC,YAAY,IACX,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,EAC/B,cAAc,EAAE,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAC7D,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EAAE,gBAAgB,EAClC,qBAAqB,EAAE,CAAC,IAAI,EAAE,EAAE;oBAC9B,WAAW,CAAC;wBACV,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;qBACtC,CAAC,CAAC;gBACL,CAAC,EACD,sBAAsB,EACpB,iBAAiB;oBACf,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE;wBACP,WAAW,CAAC;4BACV,IAAI,EAAE,OAAO;4BACb,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE;yBACvC,CAAC,CAAC;oBACL,CAAC;oBACH,CAAC,CAAC,SAAS,YAGd,QAAQ,GACI,IACX,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { TranslationState } from './types';
2
+ export declare const TranslationPlaceholder: ({ state, }: {
3
+ state: TranslationState;
4
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Lead, LotusPond } from '@eightyfourthousand/design-system';
3
+ const MESSAGES = {
4
+ unpublished: 'This translation is not yet published. Check again soon.',
5
+ empty: 'No translation content...',
6
+ };
7
+ export const TranslationPlaceholder = ({ state, }) => {
8
+ if (state === 'content') {
9
+ return null;
10
+ }
11
+ return (_jsxs("div", { className: "w-full max-w-readable mx-auto mt-24 text-center", children: [_jsx(Lead, { className: "italic", children: MESSAGES[state] }), _jsx("div", { className: "w-full pt-16 pb-6", children: _jsx(LotusPond, { className: "mx-auto w-96" }) })] }));
12
+ };
13
+ //# sourceMappingURL=TranslationPlaceholder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TranslationPlaceholder.js","sourceRoot":"","sources":["../../../../../../libs/lib-editing/src/lib/components/shared/TranslationPlaceholder.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAGpE,MAAM,QAAQ,GAAyD;IACrE,WAAW,EAAE,0DAA0D;IACvE,KAAK,EAAE,2BAA2B;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACrC,KAAK,GAGN,EAAE,EAAE;IACH,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,eAAK,SAAS,EAAC,iDAAiD,aAC9D,KAAC,IAAI,IAAC,SAAS,EAAC,QAAQ,YAAE,QAAQ,CAAC,KAAK,CAAC,GAAQ,EACjD,cAAK,SAAS,EAAC,mBAAmB,YAChC,KAAC,SAAS,IAAC,SAAS,EAAC,cAAc,GAAG,GAClC,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './AiSummarizerPage';
2
+ export * from './FocusToggleButton';
2
3
  export * from './NavigationProvider';
3
4
  export * from './LabeledElement';
4
5
  export * from './SuggestRevisionForm';
@@ -1,4 +1,5 @@
1
1
  export * from './AiSummarizerPage';
2
+ export * from './FocusToggleButton';
2
3
  export * from './NavigationProvider';
3
4
  export * from './LabeledElement';
4
5
  export * from './SuggestRevisionForm';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/lib-editing/src/lib/components/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/lib-editing/src/lib/components/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -6,6 +6,13 @@ export type EditorMenuItemType = EditorBuilderType | EditorToolsType;
6
6
  export declare const PANEL_NAMES: readonly ["left", "right", "main"];
7
7
  export type PanelName = (typeof PANEL_NAMES)[number];
8
8
  export type TabName = 'toc' | 'front' | 'translation' | 'source' | 'compare' | 'endnotes' | 'bibliography' | 'glossary' | 'abbreviations';
9
+ /**
10
+ * Display state for the translation tab body:
11
+ * - `content`: render the translation passages
12
+ * - `unpublished`: work is pre-1.0 and the viewer (a reader) may not view it yet
13
+ * - `empty`: viewer may see content, but there are no body passages
14
+ */
15
+ export type TranslationState = 'content' | 'unpublished' | 'empty';
9
16
  export interface TitlesRenderer {
10
17
  titles: Titles;
11
18
  imprint?: Imprint;
@@ -17,6 +24,13 @@ export interface TranslationRenderer {
17
24
  className?: string;
18
25
  filter?: PanelFilter;
19
26
  panel: PanelName;
27
+ /**
28
+ * Whether more passages exist after the initial `content` window. When
29
+ * `false`, pagination starts with no end cursor so the bottom loading
30
+ * skeleton isn't shown for fully-loaded short texts. Omitted/undefined
31
+ * preserves the legacy behavior (treat as "maybe more").
32
+ */
33
+ hasMoreAfter?: boolean;
20
34
  }
21
35
  export declare const TAB_FOR_SECTION: Record<string, TabName>;
22
36
  export declare const PANEL_FOR_SECTION: Record<string, PanelName>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../libs/lib-editing/src/lib/components/shared/types.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAU,CAAC;AA2B9D,MAAM,CAAC,MAAM,eAAe,GAA4B;IACtD,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,OAAO;IACvB,QAAQ,EAAE,aAAa;IACvB,YAAY,EAAE,cAAc;IAC5B,QAAQ,EAAE,aAAa;IACvB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,aAAa;IACrB,OAAO,EAAE,OAAO;IAChB,YAAY,EAAE,OAAO;IACrB,OAAO,EAAE,aAAa;IACtB,QAAQ,EAAE,aAAa;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAA8B;IAC1D,aAAa,EAAE,OAAO;IACtB,cAAc,EAAE,MAAM;IACtB,QAAQ,EAAE,MAAM;IAChB,YAAY,EAAE,OAAO;IACrB,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,OAAO;IACjB,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,MAAM;IACf,YAAY,EAAE,MAAM;IACpB,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,MAAM;IACf,WAAW,EAAE,MAAM;CACpB,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../libs/lib-editing/src/lib/components/shared/types.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAU,CAAC;AA0C9D,MAAM,CAAC,MAAM,eAAe,GAA4B;IACtD,aAAa,EAAE,eAAe;IAC9B,cAAc,EAAE,OAAO;IACvB,QAAQ,EAAE,aAAa;IACvB,YAAY,EAAE,cAAc;IAC5B,QAAQ,EAAE,aAAa;IACvB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,aAAa;IACrB,OAAO,EAAE,OAAO;IAChB,YAAY,EAAE,OAAO;IACrB,OAAO,EAAE,aAAa;IACtB,QAAQ,EAAE,aAAa;IACvB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAA8B;IAC1D,aAAa,EAAE,OAAO;IACtB,cAAc,EAAE,MAAM;IACtB,QAAQ,EAAE,MAAM;IAChB,YAAY,EAAE,OAAO;IACrB,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,OAAO;IACjB,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,MAAM;IACf,YAAY,EAAE,MAAM;IACpB,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,MAAM;IACf,WAAW,EAAE,MAAM;CACpB,CAAC"}
@@ -1,5 +1,9 @@
1
- export const mantra = ({ node, start, passageUuid, }) => {
2
- const { uuid, lang } = node.attrs;
1
+ export const mantra = ({ mark, node, start, passageUuid, }) => {
2
+ if (!mark) {
3
+ console.warn('Mantra exporter called without mark');
4
+ return undefined;
5
+ }
6
+ const { uuid, lang } = mark.attrs;
3
7
  const textContent = node.textContent || '';
4
8
  if (!textContent) {
5
9
  console.warn(`Mantra ${uuid} is empty`);
@@ -1 +1 @@
1
- {"version":3,"file":"mantra.js","sourceRoot":"","sources":["../../../../../libs/lib-editing/src/lib/exporters/mantra.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,MAAM,GAA+B,CAAC,EACjD,IAAI,EACJ,KAAK,EACL,WAAW,GACZ,EAAgC,EAAE;IACjC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;IAElC,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC;IAC3C,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,CAAC,IAAI,CAAC,UAAU,IAAI,WAAW,CAAC,CAAC;QACxC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,IAAI;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI;QACJ,WAAW;QACX,KAAK;QACL,GAAG,EAAE,KAAK,GAAG,WAAW,CAAC,MAAM;KAChC,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"mantra.js","sourceRoot":"","sources":["../../../../../libs/lib-editing/src/lib/exporters/mantra.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,MAAM,GAA+B,CAAC,EACjD,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,WAAW,GACZ,EAAgC,EAAE;IACjC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,CAAC,IAAI,CAAC,qCAAqC,CAAC,CAAC;QACpD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;IAElC,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC;IAC3C,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,CAAC,IAAI,CAAC,UAAU,IAAI,WAAW,CAAC,CAAC;QACxC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,IAAI;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI;QACJ,WAAW;QACX,KAAK;QACL,GAAG,EAAE,KAAK,GAAG,WAAW,CAAC,MAAM;KAChC,CAAC;AACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eightyfourthousand/lib-editing",
3
- "version": "2026.5.4",
3
+ "version": "2026.6.0",
4
4
  "description": "Shared editing and reader components for 84000 translation workflows.",
5
5
  "private": false,
6
6
  "repository": {
@@ -17,42 +17,42 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
- "@eightyfourthousand/client-graphql": "^2026.5.4",
21
- "@eightyfourthousand/data-access": "^2026.5.4",
22
- "@eightyfourthousand/design-system": "^2026.5.4",
23
- "@eightyfourthousand/lib-instr": "^2026.5.4",
24
- "@eightyfourthousand/lib-search": "^2026.5.4",
25
- "@eightyfourthousand/lib-utils": "^2026.5.4",
26
- "@floating-ui/react": "^0.27.16",
20
+ "@eightyfourthousand/client-graphql": "^2026.5.5",
21
+ "@eightyfourthousand/data-access": "^2026.5.5",
22
+ "@eightyfourthousand/design-system": "^2026.5.5",
23
+ "@eightyfourthousand/lib-instr": "^2026.5.5",
24
+ "@eightyfourthousand/lib-search": "^2026.5.5",
25
+ "@eightyfourthousand/lib-utils": "^2026.5.5",
26
+ "@floating-ui/react": "^0.27.19",
27
27
  "@tanstack/react-table": "^8.21.2",
28
- "@tiptap/core": "^3.13.0",
29
- "@tiptap/extension-bold": "^3.13.0",
30
- "@tiptap/extension-collaboration": "^3.13.0",
31
- "@tiptap/extension-document": "^3.13.0",
32
- "@tiptap/extension-heading": "^3.13.0",
33
- "@tiptap/extension-image": "^3.13.0",
34
- "@tiptap/extension-italic": "^3.13.0",
35
- "@tiptap/extension-link": "^3.13.0",
36
- "@tiptap/extension-list": "^3.13.0",
37
- "@tiptap/extension-paragraph": "^3.13.0",
38
- "@tiptap/extension-subscript": "^3.13.0",
39
- "@tiptap/extension-superscript": "^3.13.0",
40
- "@tiptap/extension-table": "^3.13.0",
41
- "@tiptap/extension-text-align": "^3.13.0",
42
- "@tiptap/extension-underline": "^3.13.0",
43
- "@tiptap/extensions": "^3.13.0",
44
- "@tiptap/pm": "^3.13.0",
45
- "@tiptap/react": "^3.13.0",
46
- "@tiptap/starter-kit": "^3.13.0",
47
- "@tiptap/static-renderer": "^3.13.0",
48
- "@tiptap/suggestion": "^3.13.0",
28
+ "@tiptap/core": "^3.23.6",
29
+ "@tiptap/extension-bold": "^3.23.6",
30
+ "@tiptap/extension-collaboration": "^3.23.6",
31
+ "@tiptap/extension-document": "^3.23.6",
32
+ "@tiptap/extension-heading": "^3.23.6",
33
+ "@tiptap/extension-image": "^3.23.6",
34
+ "@tiptap/extension-italic": "^3.23.6",
35
+ "@tiptap/extension-link": "^3.23.6",
36
+ "@tiptap/extension-list": "^3.23.6",
37
+ "@tiptap/extension-paragraph": "^3.23.6",
38
+ "@tiptap/extension-subscript": "^3.23.6",
39
+ "@tiptap/extension-superscript": "^3.23.6",
40
+ "@tiptap/extension-table": "^3.23.6",
41
+ "@tiptap/extension-text-align": "^3.23.6",
42
+ "@tiptap/extension-underline": "^3.23.6",
43
+ "@tiptap/extensions": "^3.23.6",
44
+ "@tiptap/pm": "^3.23.6",
45
+ "@tiptap/react": "^3.23.6",
46
+ "@tiptap/starter-kit": "^3.23.6",
47
+ "@tiptap/static-renderer": "^3.23.6",
48
+ "@tiptap/suggestion": "^3.23.6",
49
49
  "class-variance-authority": "^0.7.1",
50
50
  "graphql-request": "^7.1.2",
51
- "lucide-react": "^0.477.0",
52
- "motion": "^12.23.24",
51
+ "lucide-react": "^1.16.0",
52
+ "motion": "^12.40.0",
53
53
  "tippy.js": "^6.3.7",
54
- "uuid": "^11.1.0",
55
- "yjs": "13.6.27"
54
+ "uuid": "^14.0.0",
55
+ "yjs": "13.6.30"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "next": "^16.0.0",