Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix(portal): repair weekly HTML publish imports (#19433)

AmAzing-f339e4834821
diff --git a/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.ts b/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.ts
index 974f2bc6a71..401c839b42b 100644
--- a/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.ts
+++ b/src/features/Portal/LocalFile/useBlockedWorkspaceHtmlPublish.ts
@@ -1,4 +1,9 @@
-import type { GatheredWorkspaceHtmlResource } from '@lobechat/html-artifact';
+import type {
+ GatheredWorkspaceHtmlResource,
+ WorkspaceHtmlArtifactPublisher,
+ WorkspaceHtmlArtifactPublishResult,
+} from '@lobechat/html-artifact';
+import { isPathInsideWorkspace } from '@lobechat/html-artifact';
import { confirmModal, toast } from '@lobehub/ui/base-ui';
import debug from 'debug';
import { useEffect, useRef, useState } from 'react';
@@ -13,11 +18,6 @@ import {
type WorkspaceHtmlPublishPlan,
} from './prepareWorkspaceHtmlPublish';
import { openWorkspaceHtmlPublishConfirm } from './PublishHtmlArtifactConfirm';
-import type {
- WorkspaceHtmlArtifactPublisher,
- WorkspaceHtmlArtifactPublishResult,
-} from './workspaceHtmlArtifact';
-import { isPathInsideWorkspace } from './workspaceHtmlPath';
type OutsideWorkspacePlan = Extract<WorkspaceHtmlPublishPlan, { blocked: 'outside-workspace' }>;
type ResourceSource = 'nested' | 'workspace';