@parhelia/core 0.1.12072 → 0.1.12089
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/editor/ai/AgentTerminal.js +0 -8
- package/dist/editor/ai/AgentTerminal.js.map +1 -1
- package/dist/editor/client/EditorShell.js +5 -4
- package/dist/editor/client/EditorShell.js.map +1 -1
- package/dist/editor/client/operations.js +22 -4
- package/dist/editor/client/operations.js.map +1 -1
- package/dist/editor/field-types/richtext/components/ReactSlate.js +1 -1
- package/dist/editor/field-types/richtext/components/ReactSlate.js.map +1 -1
- package/dist/editor/page-viewer/PageViewerFrame.js +70 -50
- package/dist/editor/page-viewer/PageViewerFrame.js.map +1 -1
- package/dist/editor/services/agentService.js +10 -0
- package/dist/editor/services/agentService.js.map +1 -1
- package/dist/editor/services/serviceHelper.js +39 -17
- package/dist/editor/services/serviceHelper.js.map +1 -1
- package/dist/revision.d.ts +2 -2
- package/dist/revision.js +2 -2
- package/package.json +1 -1
|
@@ -1698,13 +1698,14 @@ export function EditorShell({ configuration, className, item: loadItemDescriptor
|
|
|
1698
1698
|
}
|
|
1699
1699
|
}
|
|
1700
1700
|
else if (historyMode !== "global" && currentItemDescriptor) {
|
|
1701
|
+
// Always load immediately for page-centric/current-version/timeline so we don't show
|
|
1702
|
+
// an empty history list for the debounce window (e.g. 600ms). The effect only runs on
|
|
1703
|
+
// mode or item id/lang/version change, not on every keystroke, so this avoids flaky
|
|
1704
|
+
// undo/redo tests and improves UX when switching to page-centric.
|
|
1701
1705
|
if (!historyInitialLoadDoneRef.current) {
|
|
1702
1706
|
historyInitialLoadDoneRef.current = true;
|
|
1703
|
-
refreshHistoryRef.current(historyMode);
|
|
1704
|
-
}
|
|
1705
|
-
else {
|
|
1706
|
-
debouncedRefreshHistoryRef.current(historyMode);
|
|
1707
1707
|
}
|
|
1708
|
+
refreshHistoryRef.current(historyMode);
|
|
1708
1709
|
}
|
|
1709
1710
|
else if (historyMode !== "global" && !currentItemDescriptor) {
|
|
1710
1711
|
// Clear history if no item loaded in page-centric modes
|