Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/agent/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/editor/editor-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/sdk/app-theme.css";
import "@brainstorm/sdk/composer-context.css";
import "@brainstorm/sdk/empty-state.css";
Expand All @@ -13,6 +14,8 @@ import { AgentI18nProvider } from "./i18n-provider";
import "./styles.css";
import { AgentWidget } from "./widget";

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("Agent: #root not found in index.html");
// Stand up the shared fancy-menus runtime (object / context menus).
Expand Down
3 changes: 3 additions & 0 deletions apps/automations/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/sdk/empty-state.css";
import { AppErrorBoundary } from "@brainstorm/sdk/error-boundary";
import { mountMenuHost } from "@brainstorm/sdk/menus";
Expand All @@ -10,6 +11,8 @@ import { AutomationsI18nProvider } from "./i18n-provider";
import "./styles.css";
import { AutomationsWidget } from "./widget";

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("automations: #root not found in index.html");

Expand Down
3 changes: 3 additions & 0 deletions apps/bookmarks/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import { setEditorHost } from "@brainstorm/editor";
import { AppErrorBoundary } from "@brainstorm/sdk/error-boundary";
import { mountMenuHost } from "@brainstorm/sdk/menus";
Expand All @@ -18,6 +19,8 @@ import { getBrainstorm } from "./storage/runtime";
import { mountBookmarksWidget } from "./widget";
import "./styles.css";

initAnalytics();

// Widget-mode (Stage 7.3): the dashboard launched this bundle as a widget.
// Mount the compact React widget surface (recent-bookmarks glance) instead of
// the full app, and skip the full-app bootstrap below.
Expand Down
3 changes: 3 additions & 0 deletions apps/books/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/sdk/empty-state.css";
import "@brainstorm/editor/editor.css";
import { AppErrorBoundary } from "@brainstorm/sdk/error-boundary";
Expand All @@ -11,6 +12,8 @@ import { BooksI18nProvider } from "./i18n-provider";
import "./styles.css";
import { BooksWidget } from "./widget";

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("books: #root not found in index.html");

Expand Down
3 changes: 3 additions & 0 deletions apps/browser/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import { AppErrorBoundary } from "@brainstorm/sdk/error-boundary";
import { createRoot } from "react-dom/client";
import { BrowserApp } from "./app";
import { BrowserI18nProvider } from "./i18n-provider";
import "./styles.css";

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("Web Browser: #root not found in index.html");
// No <StrictMode> — the dev double-mount races shell-driven view attachment
Expand Down
3 changes: 3 additions & 0 deletions apps/calendar/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/sdk/recurrence-editor.css";
import { AppErrorBoundary } from "@brainstorm/sdk/error-boundary";
import { mountMenuHost } from "@brainstorm/sdk/menus";
Expand All @@ -13,6 +14,8 @@ import "./styles.css";
// through the shared bridge (matches the other React apps' main.tsx).
mountMenuHost();

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("[calendar] #root not found in index.html");

Expand Down
3 changes: 3 additions & 0 deletions apps/chat/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/editor/editor-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/sdk/app-theme.css";
import "@brainstorm/sdk/composer-context.css";
import "@brainstorm/sdk/empty-state.css";
Expand All @@ -11,6 +12,8 @@ import { ChatI18nProvider } from "./i18n-provider";
import "./styles.css";
import { ChatWidget } from "./widget";

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("Chat: #root not found in index.html");
// Stand up the shared fancy-menus runtime (object / context menus).
Expand Down
3 changes: 3 additions & 0 deletions apps/code-editor/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/sdk/empty-state.css";
import { AppErrorBoundary } from "@brainstorm/sdk/error-boundary";
import { mountMenuHost } from "@brainstorm/sdk/menus";
Expand All @@ -8,6 +9,8 @@ import { CodeEditorApp } from "./app";
import { CodeEditorI18nProvider } from "./i18n-provider";
import "./styles.css";

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("code-editor: #root not found in index.html");

Expand Down
3 changes: 3 additions & 0 deletions apps/contacts/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/sdk/empty-state.css";
import "@brainstorm/editor/editor.css";
import "@brainstorm/editor/editor-theme.css";
Expand All @@ -16,6 +17,8 @@ import { ContactsWidget } from "./widget";
// overflow, row right-click) renders through it.
mountMenuHost();

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("Contacts: #root not found in index.html");

Expand Down
3 changes: 3 additions & 0 deletions apps/files/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/editor/editor.css";
import { AppErrorBoundary } from "@brainstorm/sdk/error-boundary";
import { mountMenuHost } from "@brainstorm/sdk/menus";
Expand All @@ -23,6 +24,8 @@ applyPersistedPanelWidth({
defaultWidth: 320,
});

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("Files: #root not found in index.html");
// Stand up the fancy-menus runtime so object / context menus open through
Expand Down
3 changes: 3 additions & 0 deletions apps/form-designer/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/sdk/property-ui/cells.css";
import "@brainstorm/sdk/select-menu.css";
import { AppErrorBoundary } from "@brainstorm/sdk/error-boundary";
Expand All @@ -9,6 +10,8 @@ import { FormDesignerApp } from "./app";
import { FormDesignerI18nProvider } from "./i18n-provider";
import "./styles.css";

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("form-designer: #root not found in index.html");

Expand Down
3 changes: 3 additions & 0 deletions apps/graph/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/editor/editor.css";
import { AppErrorBoundary } from "@brainstorm/sdk/error-boundary";
import { applyPersistedPanelWidth } from "@brainstorm/sdk/resizable";
Expand All @@ -16,6 +17,8 @@ applyPersistedPanelWidth({
defaultWidth: 320,
});

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("graph: #root not found in index.html");
createRoot(root).render(
Expand Down
3 changes: 3 additions & 0 deletions apps/journal/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import { AppErrorBoundary } from "@brainstorm/sdk/error-boundary";
import { getWidgetLaunch } from "@brainstorm/sdk/widget";
import { StrictMode } from "react";
Expand All @@ -8,6 +9,8 @@ import "./types";
import "./styles.css";
import { JournalWidget } from "./widget";

initAnalytics();

const root = document.getElementById("journal-root");
if (!root) throw new Error("journal: #journal-root missing");

Expand Down
3 changes: 3 additions & 0 deletions apps/mailbox/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/sdk/count-badge.css";
import "@brainstorm/sdk/empty-state.css";
import { AppErrorBoundary } from "@brainstorm/sdk/error-boundary";
Expand All @@ -14,6 +15,8 @@ import { MailboxWidget } from "./widget";
// through openAnchoredMenu, which is a no-op without a mounted host.
mountMenuHost();

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("Mailbox: #root not found in index.html");
// No <StrictMode>: dev double-mount re-binds @lexical/yjs editors to an
Expand Down
3 changes: 3 additions & 0 deletions apps/notes/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/sdk/empty-state.css";
import "@brainstorm/sdk/share-dialog.css";
import { mountMenuHost } from "@brainstorm/sdk/menus";
Expand All @@ -21,6 +22,8 @@ import { getYDocResolverApi } from "./store/ydoc-resolver";
import { NotesWidget } from "./widget";
import "./styles.css";

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("Notes: #root not found in index.html");

Expand Down
3 changes: 3 additions & 0 deletions apps/preview/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/sdk/empty-state.css";
import "@brainstorm/editor/editor.css";
import { AppErrorBoundary } from "@brainstorm/sdk/error-boundary";
Expand All @@ -10,6 +11,8 @@ import { PreviewI18nProvider } from "./i18n-provider";
import { registerBuiltInPreviewModules } from "./logic/registry";
import "./styles.css";

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("preview: #root not found in index.html");

Expand Down
3 changes: 3 additions & 0 deletions apps/tasks/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/

import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/sdk/empty-state.css";
import "@brainstorm/editor/editor.css";
import "@brainstorm/sdk/recurrence-editor.css";
Expand Down Expand Up @@ -45,6 +46,8 @@ import { getBrainstorm } from "./storage/runtime";
import { mountTasksWidget } from "./widget-mount";
import "./styles.css";

initAnalytics();

// Widget-mode (Stage 7.3a): the dashboard launched this bundle as a widget.
// Mount the compact widget surface (open-tasks glance list) instead of the full
// Tasks app, and skip the full-app bootstrap below.
Expand Down
3 changes: 3 additions & 0 deletions apps/theme-editor/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import "@brainstorm/sdk/color-picker.css";
import { AppErrorBoundary } from "@brainstorm/sdk/error-boundary";
import { mountMenuHost } from "@brainstorm/sdk/menus";
Expand All @@ -8,6 +9,8 @@ import { ThemeEditorApp } from "./app";
import { ThemeEditorI18nProvider } from "./i18n-provider";
import "./styles.css";

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("theme-editor: #root not found in index.html");

Expand Down
3 changes: 3 additions & 0 deletions apps/whiteboard/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import "@brainstorm/sdk/app-theme.css";
import { initAnalytics } from "@brainstorm/sdk/analytics";
import { AppErrorBoundary } from "@brainstorm/sdk/error-boundary";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { WhiteboardApp } from "./app";
import "./styles.css";

initAnalytics();

const root = document.getElementById("root");
if (!root) throw new Error("whiteboard: #root not found in index.html");
createRoot(root).render(
Expand Down
Loading
Loading