@backmatter/studio 0.0.20 → 0.0.22
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/chunks/{UiKitApp-C269OA8v.js → UiKitApp-CgGyJiC4.js} +2 -2
- package/dist/chunks/{WorkspaceRoutes-B4B5jjje.js → WorkspaceRoutes-CzCBnhNt.js} +26364 -25362
- package/dist/chunks/dashboard-w-mlsGky.js +1879 -0
- package/dist/chunks/{index-7-TtXaMq.js → index-_XfFuFSU.js} +1 -1
- package/dist/dashboard.js +2 -2
- package/dist/index.js +205 -194
- package/dist/site-widget.css +208 -0
- package/dist/site-widget.js +10495 -9947
- package/dist/studio.css +304 -32
- package/package.json +2 -2
- package/src/App.tsx +7 -1
- package/src/api.ts +106 -13
- package/src/chat/ChatFiles.tsx +261 -0
- package/src/chat/ChatMessage.tsx +5 -0
- package/src/chat/ChatPanel.tsx +218 -14
- package/src/chat/ChatProvider.tsx +72 -22
- package/src/chat/Composer.tsx +83 -6
- package/src/chat/PendingFileRow.tsx +188 -0
- package/src/chat/chat-context.ts +7 -1
- package/src/chat/chat-helpers.ts +49 -0
- package/src/chat/chat-state.ts +17 -6
- package/src/chat/icons.tsx +28 -0
- package/src/chat/model-copy.ts +41 -0
- package/src/chat/pending-files.ts +236 -0
- package/src/chat/side-width.ts +48 -0
- package/src/chrome/AppShell.tsx +9 -1
- package/src/chrome/CommandPalette.tsx +7 -0
- package/src/chrome/ContentExplorerSidebar.tsx +43 -74
- package/src/chrome/folder-create-context.ts +56 -11
- package/src/chrome/hotkeys.ts +8 -0
- package/src/fields/FieldControl.tsx +331 -115
- package/src/fields/LinkFieldInput.tsx +185 -29
- package/src/fields/array-item-title.ts +28 -0
- package/src/fields/field-label.ts +8 -0
- package/src/host-pointer.ts +2 -0
- package/src/install-preview-pointer.ts +1 -0
- package/src/pages/BlockPicker.tsx +362 -0
- package/src/pages/BlocksList.tsx +39 -67
- package/src/pages/CliAuthorizePage.tsx +138 -25
- package/src/pages/DocEditorPage.tsx +95 -18
- package/src/pages/EmbedPublishPage.tsx +40 -2
- package/src/pages/LoginPage.tsx +118 -31
- package/src/pages/MediaFieldInput.tsx +1 -1
- package/src/pages/MediaGalleryPage.tsx +36 -3
- package/src/pages/SettingsSchemaPage.tsx +19 -3
- package/src/pages/WorkspaceLayout.tsx +16 -1
- package/src/pages/block-picker.ts +116 -0
- package/src/pages/editor-grab.ts +61 -13
- package/src/pages/preview-split.ts +24 -0
- package/src/pages/session-preview.ts +1 -0
- package/src/replica/types.ts +2 -0
- package/src/sign-in-link.ts +45 -0
- package/src/site-pointer.ts +14 -1
- package/src/site-widget.tsx +12 -1
- package/src/ui/Field.tsx +26 -0
- package/src/ui/Input.tsx +134 -35
- package/src/workspace/schema-source.tsx +126 -0
- package/dist/chunks/dashboard-DeNgythd.js +0 -1779
- package/src/site-devbar-overlay-inject.ts +0 -15
- package/src/site-publish-menu.tsx +0 -33
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// packages/studio/src/site-devbar-overlay-inject.ts
|
|
2
|
-
// Injected with the widget JS so page/publish menus stay styled when the host
|
|
3
|
-
// loads only `site-widget.js` or the CSS chunk is stale.
|
|
4
|
-
import overlayCss from "./site-devbar-overlay.css?inline";
|
|
5
|
-
|
|
6
|
-
const STYLE_ID = "backmatter-devbar-overlay-styles";
|
|
7
|
-
|
|
8
|
-
export function ensureDevbarOverlayStyles(): void {
|
|
9
|
-
if (typeof document === "undefined") return;
|
|
10
|
-
if (document.getElementById(STYLE_ID)) return;
|
|
11
|
-
const style = document.createElement("style");
|
|
12
|
-
style.id = STYLE_ID;
|
|
13
|
-
style.textContent = overlayCss;
|
|
14
|
-
document.head.appendChild(style);
|
|
15
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// packages/studio/src/site-publish-menu.tsx
|
|
2
|
-
// Publish popover for the on-site bar (StyleX). Loaded on demand so site-bar tests stay StyleX-free.
|
|
3
|
-
import { createPortal } from "react-dom";
|
|
4
|
-
import type { Ref } from "react";
|
|
5
|
-
import { EmbedPublishPage } from "./pages/EmbedPublishPage";
|
|
6
|
-
import { DEVBAR_CLASS, DEVBAR_OVERLAY_CLASS, devbarOverlayRoot } from "./site-bar";
|
|
7
|
-
|
|
8
|
-
export function PublishMenu({
|
|
9
|
-
menuRef,
|
|
10
|
-
workspaceId,
|
|
11
|
-
onStatus,
|
|
12
|
-
onPublished,
|
|
13
|
-
}: {
|
|
14
|
-
menuRef: Ref<HTMLDivElement | null>;
|
|
15
|
-
workspaceId: string;
|
|
16
|
-
onStatus?: (status: { changeCount: number; conflictCount: number }) => void;
|
|
17
|
-
onPublished?: () => void;
|
|
18
|
-
}) {
|
|
19
|
-
const root = devbarOverlayRoot();
|
|
20
|
-
if (!root) return null;
|
|
21
|
-
return createPortal(
|
|
22
|
-
<div
|
|
23
|
-
ref={menuRef}
|
|
24
|
-
role="dialog"
|
|
25
|
-
aria-label="Publish"
|
|
26
|
-
className={`backmatter-studio ${DEVBAR_OVERLAY_CLASS} ${DEVBAR_CLASS}-menu ${DEVBAR_CLASS}-publish-panel`}
|
|
27
|
-
data-backmatter-panel=""
|
|
28
|
-
>
|
|
29
|
-
<EmbedPublishPage workspaceId={workspaceId} onStatus={onStatus} onPublished={onPublished} />
|
|
30
|
-
</div>,
|
|
31
|
-
root,
|
|
32
|
-
);
|
|
33
|
-
}
|