@parhelia/core 0.1.11852 → 0.1.11855

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.
@@ -3264,9 +3264,12 @@ export function EditorShell({ configuration, className, item: loadItemDescriptor
3264
3264
  // can exit cleanly and the editor header updates from "Add Component"
3265
3265
  // to the actual component name after the operation completes.
3266
3266
  setSelectedForInsertion("");
3267
- operations.addComponent(insertOption.typeId, placeholderKey, index, currentItemDescriptorRef.current).then((result) => {
3267
+ operations
3268
+ .addComponent(insertOption.typeId, placeholderKey, index, currentItemDescriptorRef.current)
3269
+ .then((result) => {
3268
3270
  setInserting(undefined);
3269
- }).catch((err) => {
3271
+ })
3272
+ .catch((err) => {
3270
3273
  setInserting(undefined);
3271
3274
  });
3272
3275
  return;
@@ -3274,9 +3277,12 @@ export function EditorShell({ configuration, className, item: loadItemDescriptor
3274
3277
  if (!dragObject)
3275
3278
  return;
3276
3279
  if (dragObject && dragObject.type == "template") {
3277
- operations.addComponent(dragObject.typeId, placeholderKey, index, currentItemDescriptorRef.current).then((result) => {
3280
+ operations
3281
+ .addComponent(dragObject.typeId, placeholderKey, index, currentItemDescriptorRef.current)
3282
+ .then((result) => {
3278
3283
  setInserting(undefined);
3279
- }).catch((err) => {
3284
+ })
3285
+ .catch((err) => {
3280
3286
  setInserting(undefined);
3281
3287
  });
3282
3288
  return;
@@ -4114,6 +4120,6 @@ export function EditorShell({ configuration, className, item: loadItemDescriptor
4114
4120
  : window.location.pathname;
4115
4121
  window.history.replaceState(null, "", newUrl);
4116
4122
  }, configuration: configuration, restoredFromUrl: tourRestoredRef.current })), _jsx(GuidanceOverlay, {}), _jsx(AgentDialogHandler, { sendWebSocketMessage: (type, payload) => sendSocketMessage({ type, payload }) })] }));
4117
- return (_jsx("div", { className: `editor h-full w-full`, children: _jsx(OperationsContextProvider, { value: operationsContext.context, children: _jsx(FieldsEditContextProvider, { value: fieldsEditContext, children: _jsxs(EditContextProvider, { value: editContext, children: [_jsx(DevModeIndicator, {}), editContext.isRefreshing && (_jsx("div", { className: "pointer-events-none fixed right-0 bottom-0 flex h-24 w-24 items-center justify-center text-gray-600 opacity-50 select-none", children: _jsx(Spinner, {}) })), children || editorUi, dialog, _jsx(Toaster, { position: "top-center" }), " ", _jsx(ConfirmationDialog, { ref: confirmationDialogRef }), _jsx(QuickItemSwitcher, { visible: quickSwitcherVisible, entries: navigationHistory.slice(0, 5), selectedIndex: quickSwitcherSelectedIndex, onSelect: handleQuickSwitcherSelect, onClose: () => setQuickSwitcherVisible(false) }), _jsx(EditContextMenu, { ref: contextMenuRef }), _jsx(InlineAiTrigger, {}), media.mediaSelectorVisible && (_jsx(MediaSelector, { language: editContext.currentItemDescriptor.language, visible: media.mediaSelectorVisible, onHide: media.handleHide, onMediaSelected: media.onMediaSelect, selectedIdPath: media.selectedMediaIdPath, mode: media.mediaSelectorMode, initialSearchTerm: media.initialSearchTerm })), _jsx(FieldEditorPopup, { ref: fieldEditorPopupRef })] }) }) }) }));
4123
+ return (_jsx("div", { className: `editor h-full w-full`, children: _jsx(OperationsContextProvider, { value: operationsContext.context, children: _jsx(FieldsEditContextProvider, { value: fieldsEditContext, children: _jsxs(EditContextProvider, { value: editContext, children: [_jsx(DevModeIndicator, {}), startupChecks.state === "loading" && (_jsx("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-white/70 backdrop-blur-[1px]", children: _jsx("div", { className: "flex items-center gap-3 rounded-md border border-gray-200 bg-white px-4 py-3 text-gray-700 shadow-sm", children: _jsx(Spinner, { size: "xl" }) }) })), editContext.isRefreshing && (_jsx("div", { className: "pointer-events-none fixed right-0 bottom-0 flex h-24 w-24 items-center justify-center text-gray-600 opacity-50 select-none", children: _jsx(Spinner, {}) })), children || editorUi, dialog, _jsx(Toaster, { position: "top-center" }), " ", _jsx(ConfirmationDialog, { ref: confirmationDialogRef }), _jsx(QuickItemSwitcher, { visible: quickSwitcherVisible, entries: navigationHistory.slice(0, 5), selectedIndex: quickSwitcherSelectedIndex, onSelect: handleQuickSwitcherSelect, onClose: () => setQuickSwitcherVisible(false) }), _jsx(EditContextMenu, { ref: contextMenuRef }), _jsx(InlineAiTrigger, {}), media.mediaSelectorVisible && (_jsx(MediaSelector, { language: editContext.currentItemDescriptor.language, visible: media.mediaSelectorVisible, onHide: media.handleHide, onMediaSelected: media.onMediaSelect, selectedIdPath: media.selectedMediaIdPath, mode: media.mediaSelectorMode, initialSearchTerm: media.initialSearchTerm })), _jsx(FieldEditorPopup, { ref: fieldEditorPopupRef })] }) }) }) }));
4118
4124
  }
4119
4125
  //# sourceMappingURL=EditorShell.js.map