@alpaca-editor/core 1.0.4090 → 1.0.4092
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/config/config.js +18 -8
- package/dist/config/config.js.map +1 -1
- package/dist/editor/LinkEditorDialog.js +38 -31
- package/dist/editor/LinkEditorDialog.js.map +1 -1
- package/dist/editor/client/ui/EditorChrome.js +1 -1
- package/dist/editor/client/ui/EditorChrome.js.map +1 -1
- package/dist/editor/control-center/ControlCenterMenu.js +6 -0
- package/dist/editor/control-center/ControlCenterMenu.js.map +1 -1
- package/dist/editor/control-center/Status.js +6 -0
- package/dist/editor/control-center/Status.js.map +1 -1
- package/dist/editor/control-center/setup-steps/IndexSetupStep.js +2 -1
- package/dist/editor/control-center/setup-steps/IndexSetupStep.js.map +1 -1
- package/dist/editor/field-types/LinkFieldEditor.js +1 -1
- package/dist/editor/field-types/LinkFieldEditor.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/menubar/ApproveAndPublish.js +3 -4
- package/dist/editor/menubar/ApproveAndPublish.js.map +1 -1
- package/dist/editor/menubar/WorkflowButton.js +2 -1
- package/dist/editor/menubar/WorkflowButton.js.map +1 -1
- package/dist/editor/page-viewer/EditorForm.js +18 -1
- package/dist/editor/page-viewer/EditorForm.js.map +1 -1
- package/dist/revision.d.ts +2 -2
- package/dist/revision.js +2 -2
- package/dist/splash-screen/SplashScreen.js +1 -1
- package/dist/splash-screen/SplashScreen.js.map +1 -1
- package/dist/styles.css +5 -0
- package/package.json +1 -1
- package/src/config/config.tsx +18 -7
- package/src/editor/LinkEditorDialog.tsx +108 -92
- package/src/editor/ai/AgentTerminal.tsx +1 -1
- package/src/editor/client/ui/EditorChrome.tsx +1 -1
- package/src/editor/control-center/ControlCenterMenu.tsx +7 -0
- package/src/editor/control-center/Status.tsx +7 -0
- package/src/editor/control-center/setup-steps/IndexSetupStep.tsx +2 -1
- package/src/editor/field-types/LinkFieldEditor.tsx +1 -1
- package/src/editor/field-types/richtext/components/ReactSlate.tsx +2 -3
- package/src/editor/menubar/ApproveAndPublish.tsx +3 -4
- package/src/editor/menubar/WorkflowButton.tsx +2 -1
- package/src/editor/page-viewer/EditorForm.tsx +23 -1
- package/src/revision.ts +2 -2
- package/src/splash-screen/SplashScreen.tsx +3 -1
|
@@ -144,6 +144,14 @@ export function EditorForm({
|
|
|
144
144
|
setHasDatasource(hasItemDatasource);
|
|
145
145
|
|
|
146
146
|
if (hasItemDatasource) {
|
|
147
|
+
// Clear previous full item to avoid showing stale content while loading the new item
|
|
148
|
+
if (
|
|
149
|
+
newSelectedItem?.id !== item?.id ||
|
|
150
|
+
newSelectedItem?.language !== item?.language ||
|
|
151
|
+
newSelectedItem?.version !== item?.version
|
|
152
|
+
) {
|
|
153
|
+
setFullItem(undefined);
|
|
154
|
+
}
|
|
147
155
|
setItem(newSelectedItem);
|
|
148
156
|
} else {
|
|
149
157
|
// No datasource item, clear the item state
|
|
@@ -164,7 +172,21 @@ export function EditorForm({
|
|
|
164
172
|
const isLoadingComponentItems =
|
|
165
173
|
hasComponentItemsToLoad && componentItemsFullData.size === 0;
|
|
166
174
|
|
|
167
|
-
|
|
175
|
+
// Only treat the full item as loaded when it matches the selected item
|
|
176
|
+
const fullItemMatchesSelection =
|
|
177
|
+
!!fullItem &&
|
|
178
|
+
!!item &&
|
|
179
|
+
fullItem.id === item.id &&
|
|
180
|
+
fullItem.language === item.language &&
|
|
181
|
+
fullItem.version === item.version;
|
|
182
|
+
|
|
183
|
+
// While the new full item is loading, render nothing to avoid showing stale content
|
|
184
|
+
if (hasDatasource && (!item || !fullItemMatchesSelection)) {
|
|
185
|
+
return <div className="h-full w-full"></div>;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Keep showing a spinner only when loading additional component items
|
|
189
|
+
if (isLoadingComponentItems)
|
|
168
190
|
return (
|
|
169
191
|
<div className="grid h-full w-full items-center justify-center">
|
|
170
192
|
<Spinner />
|
package/src/revision.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = "1.0.
|
|
2
|
-
export const buildDate = "2025-09-
|
|
1
|
+
export const version = "1.0.4092";
|
|
2
|
+
export const buildDate = "2025-09-17 10:19:19";
|
|
@@ -139,7 +139,9 @@ export function SplashScreen() {
|
|
|
139
139
|
<div className="flex h-full w-full gap-2 bg-gray-100 md:items-center md:justify-center">
|
|
140
140
|
<div className="z-10 flex flex-1 flex-col items-stretch gap-4 p-4 md:min-h-[40vh] md:max-w-screen-xl md:flex-row">
|
|
141
141
|
<Card
|
|
142
|
-
title=<span className="text-2xl
|
|
142
|
+
title=<span className="tracking-wides text-2xl font-extralight">
|
|
143
|
+
parhelion
|
|
144
|
+
</span>
|
|
143
145
|
description="The easiest way to create and manage your content"
|
|
144
146
|
icon={<AnimatedSunIcon />}
|
|
145
147
|
className="flex-1"
|