@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.
Files changed (42) hide show
  1. package/dist/config/config.js +18 -8
  2. package/dist/config/config.js.map +1 -1
  3. package/dist/editor/LinkEditorDialog.js +38 -31
  4. package/dist/editor/LinkEditorDialog.js.map +1 -1
  5. package/dist/editor/client/ui/EditorChrome.js +1 -1
  6. package/dist/editor/client/ui/EditorChrome.js.map +1 -1
  7. package/dist/editor/control-center/ControlCenterMenu.js +6 -0
  8. package/dist/editor/control-center/ControlCenterMenu.js.map +1 -1
  9. package/dist/editor/control-center/Status.js +6 -0
  10. package/dist/editor/control-center/Status.js.map +1 -1
  11. package/dist/editor/control-center/setup-steps/IndexSetupStep.js +2 -1
  12. package/dist/editor/control-center/setup-steps/IndexSetupStep.js.map +1 -1
  13. package/dist/editor/field-types/LinkFieldEditor.js +1 -1
  14. package/dist/editor/field-types/LinkFieldEditor.js.map +1 -1
  15. package/dist/editor/field-types/richtext/components/ReactSlate.js +1 -1
  16. package/dist/editor/field-types/richtext/components/ReactSlate.js.map +1 -1
  17. package/dist/editor/menubar/ApproveAndPublish.js +3 -4
  18. package/dist/editor/menubar/ApproveAndPublish.js.map +1 -1
  19. package/dist/editor/menubar/WorkflowButton.js +2 -1
  20. package/dist/editor/menubar/WorkflowButton.js.map +1 -1
  21. package/dist/editor/page-viewer/EditorForm.js +18 -1
  22. package/dist/editor/page-viewer/EditorForm.js.map +1 -1
  23. package/dist/revision.d.ts +2 -2
  24. package/dist/revision.js +2 -2
  25. package/dist/splash-screen/SplashScreen.js +1 -1
  26. package/dist/splash-screen/SplashScreen.js.map +1 -1
  27. package/dist/styles.css +5 -0
  28. package/package.json +1 -1
  29. package/src/config/config.tsx +18 -7
  30. package/src/editor/LinkEditorDialog.tsx +108 -92
  31. package/src/editor/ai/AgentTerminal.tsx +1 -1
  32. package/src/editor/client/ui/EditorChrome.tsx +1 -1
  33. package/src/editor/control-center/ControlCenterMenu.tsx +7 -0
  34. package/src/editor/control-center/Status.tsx +7 -0
  35. package/src/editor/control-center/setup-steps/IndexSetupStep.tsx +2 -1
  36. package/src/editor/field-types/LinkFieldEditor.tsx +1 -1
  37. package/src/editor/field-types/richtext/components/ReactSlate.tsx +2 -3
  38. package/src/editor/menubar/ApproveAndPublish.tsx +3 -4
  39. package/src/editor/menubar/WorkflowButton.tsx +2 -1
  40. package/src/editor/page-viewer/EditorForm.tsx +23 -1
  41. package/src/revision.ts +2 -2
  42. 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
- if ((hasDatasource && (!fullItem || !item)) || isLoadingComponentItems)
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.4090";
2
- export const buildDate = "2025-09-16 11:49:50";
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 tracking-widest">parhelion</span>
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"