camox 0.58.1 → 0.60.2
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/core/createBlock.js +1 -1
- package/dist/core/editing/createEditableBlock.js +2 -2
- package/dist/core/lib/recordScope.js +1 -1
- package/dist/features/canvas/CamoxCanvas.js +2 -2
- package/dist/features/canvas/CanvasOverlays.js +1 -1
- package/dist/features/canvas/sidebar/LayoutPageSeo.js +1 -1
- package/dist/features/canvas/sidebar/PageInspector.js +1 -1
- package/dist/features/content/CamoxContent.js +1 -1
- package/dist/features/content/components/MissingFromLocale.js +1 -1
- package/dist/features/page/CuratedPageContent.js +1 -1
- package/dist/features/preview/CamoxPreview.js +3 -3
- package/dist/features/preview/components/AddBlockSheet.js +1 -1
- package/dist/features/preview/components/AssetLightbox.js +1 -1
- package/dist/features/preview/components/BlockActionsPopover.js +1 -1
- package/dist/features/preview/components/CreatePageModal.js +2 -2
- package/dist/features/preview/components/FieldOverlayStyles.js +1 -1
- package/dist/features/preview/components/MobilePreviewDrawer.js +1 -1
- package/dist/features/preview/components/Overlays.js +1 -1
- package/dist/features/preview/components/PageInfo.js +1 -1
- package/dist/features/preview/components/PagePicker.js +1 -1
- package/dist/features/preview/components/PageTree.js +1 -1
- package/dist/features/preview/components/PreviewPanel.js +1 -1
- package/dist/features/preview/components/PreviewToolbar.js +1 -1
- package/dist/features/preview/components/SelectionEditor.js +2 -2
- package/dist/features/preview/components/StudioEditingFallback.js +1 -1
- package/dist/features/provider/AuthenticatedCamoxProvider.js +1 -1
- package/dist/features/provider/CamoxProvider.js +1 -1
- package/dist/features/provider/CoreCamoxProvider.js +3 -3
- package/dist/features/provider/components/CommandPalette.js +1 -1
- package/dist/features/renderer/RendererApp.js +187 -103
- package/dist/features/renderer/rendererHost.js +3 -7
- package/dist/features/routes/pageRuntime.d.ts +2 -5
- package/dist/features/routes/pageRuntime.js +1 -2
- package/dist/features/runtime/RuntimeChrome.js +1 -1
- package/dist/features/runtime/loopbackFetch.d.ts +8 -0
- package/dist/features/runtime/navigationTarget.js +1 -2
- package/dist/features/runtime/pageApp.js +1 -1
- package/dist/features/runtime/publicCache.d.ts +21 -0
- package/dist/features/runtime/publishingDraft.d.ts +4 -0
- package/dist/features/runtime/rendererClient.js +1 -1
- package/dist/features/runtime/runtime.d.ts +0 -5
- package/dist/features/runtime/runtime.js +80 -33
- package/dist/features/runtime/worker.js +4 -7
- package/dist/features/runtime/workerRequest.d.ts +8 -0
- package/dist/features/runtime/workerRuntime.d.ts +5 -0
- package/dist/features/runtime/workerRuntime.js +6 -0
- package/dist/features/sdkBundle/buildSdkBundle.d.ts +40 -0
- package/dist/features/sdkBundle/buildSdkBundle.js +323 -0
- package/dist/features/sdkBundle/localSdkBundle.d.ts +44 -0
- package/dist/features/sdkBundle/localSdkBundle.js +162 -0
- package/dist/features/sdkBundle/sdkBundle.d.ts +3 -0
- package/dist/features/sdkBundle/sdkBundle.js +4 -0
- package/dist/features/sdkBundle/sdkBundleName.d.ts +59 -0
- package/dist/features/sdkBundle/sdkBundleName.js +164 -0
- package/dist/features/sdkBundle/specifiers.d.ts +34 -0
- package/dist/features/sdkBundle/specifiers.js +146 -0
- package/dist/features/settings/FaviconSettings.js +1 -1
- package/dist/features/settings/SocialProfilesSettings.js +284 -151
- package/dist/features/studio/CamoxStudio.js +1 -1
- package/dist/features/studio/FollowAgentProvider.js +72 -13
- package/dist/features/studio/components/ChatWidget.js +86 -44
- package/dist/features/studio/components/DraftsControl.js +232 -201
- package/dist/features/studio/components/LocalePicker.js +2 -2
- package/dist/features/studio/components/Navbar.js +3 -3
- package/dist/features/studio/components/Patrol.js +312 -209
- package/dist/features/studio/components/ProjectMenu.js +2 -2
- package/dist/features/studio/components/ReviewDraftSheet.js +9 -15
- package/dist/features/studio/components/Squareling.js +164 -66
- package/dist/features/studio/components/ThreadComposer.js +139 -69
- package/dist/features/studio/components/ThreadMessages.js +216 -64
- package/dist/features/studio/components/UserButton.js +2 -2
- package/dist/features/studio/draftLabel.js +1 -2
- package/dist/features/studio/draftNotice.js +0 -1
- package/dist/features/studio/editorWhereContext.js +11 -0
- package/dist/features/studio/showInCanvas.js +1 -1
- package/dist/features/studio/useEditorSelection.js +135 -0
- package/dist/features/vite/definitionsSync.js +14 -60
- package/dist/features/vite/devSignIn.js +1 -1
- package/dist/features/vite/hostedChecks.js +1 -1
- package/dist/features/vite/runtimeDev.js +2 -2
- package/dist/features/vite/sdkBundleBuild.js +74 -0
- package/dist/features/vite/staticAssetHeaders.js +7 -4
- package/dist/features/vite/vite.d.ts +8 -7
- package/dist/features/vite/vite.js +67 -28
- package/dist/lib/api-client-server.js +25 -8
- package/dist/lib/api-client.js +2 -6
- package/dist/lib/auth.js +25 -59
- package/dist/lib/draft-scope.js +5 -25
- package/dist/lib/preview-handoff.js +1 -1
- package/dist/lib/server-auth-cookie.js +23 -11
- package/dist/lib/stored-auth-cookies.js +76 -0
- package/dist/lib/studio-reads.js +1 -1
- package/dist/lib/use-thread.js +40 -40
- package/dist/package.js +1 -1
- package/dist/studio.css +1 -1
- package/package.json +17 -4
- package/skills/camox/references/block-definitions.md +1 -1
- package/dist/features/vite/publishSeededContent.js +0 -30
- package/skills/camox-cli/SKILL.md +0 -15
- package/skills/camox-cli/references/cli-common.md +0 -58
- package/skills/camox-cli/references/cli-content.md +0 -181
- package/skills/camox-cli/references/cli-publishing.md +0 -26
package/dist/core/createBlock.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { artifactFrameProps, artifactStandInProps, isArtifactSource, isArtifactSourceReference } from "./lib/artifact.js";
|
|
2
2
|
import { artifactData } from "./lib/artifactData.js";
|
|
3
3
|
import { resolveBlockFields, resolveToMarkdown, resolveToStructuredData, resolveToTitle } from "./lib/contentType.js";
|
|
4
|
-
import { useProjectUuid } from "../lib/auth.js";
|
|
5
4
|
import { useLocation, useNavigate } from "../features/navigation/navigation.js";
|
|
6
5
|
import { useOptionalCamoxApp } from "../features/provider/components/CamoxAppContext.js";
|
|
6
|
+
import { useProjectUuid } from "../lib/auth.js";
|
|
7
7
|
import { isItemMarker, queryResultIds, resolveAssetValue, useNormalizedData } from "../lib/normalized-data.js";
|
|
8
8
|
import { useLinkPages } from "../lib/link-pages.js";
|
|
9
9
|
import { useBlockEditingRuntime } from "./editing/BlockEditingRuntime.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { artifactFrameProps, artifactPlaceholderProps, artifactStandInProps, isArtifactSource } from "../lib/artifact.js";
|
|
2
2
|
import { artifactData } from "../lib/artifactData.js";
|
|
3
3
|
import { resolveBlockFields, resolveToMarkdown, resolveToStructuredData, resolveToTitle } from "../lib/contentType.js";
|
|
4
|
-
import { useProjectUuid } from "../../lib/auth.js";
|
|
5
4
|
import { useLocation, useNavigate } from "../../features/navigation/navigation.js";
|
|
6
5
|
import { useOptionalCamoxApp } from "../../features/provider/components/CamoxAppContext.js";
|
|
6
|
+
import { useProjectUuid } from "../../lib/auth.js";
|
|
7
7
|
import { LinkedRecordsProvider, isItemMarker, queryResultIds, resolveAssetValue, useNormalizedData } from "../../lib/normalized-data.js";
|
|
8
8
|
import { useLinkPages } from "../../lib/link-pages.js";
|
|
9
9
|
import { ArtifactsRunContext, useArtifactHost, useInitialArtifactData } from "../hooks/useArtifactHost.js";
|
|
@@ -863,7 +863,7 @@ function createEditableBlock(options) {
|
|
|
863
863
|
style: {
|
|
864
864
|
position: "absolute",
|
|
865
865
|
inset: 0,
|
|
866
|
-
cursor: "
|
|
866
|
+
cursor: "default"
|
|
867
867
|
}
|
|
868
868
|
});
|
|
869
869
|
$[42] = isContentEditable;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useProjectUuid } from "../../lib/auth.js";
|
|
2
1
|
import { useLocation } from "../../features/navigation/navigation.js";
|
|
2
|
+
import { useProjectUuid } from "../../lib/auth.js";
|
|
3
3
|
import { resolveAssetValue, useNormalizedData } from "../../lib/normalized-data.js";
|
|
4
4
|
import { useLinkPages } from "../../lib/link-pages.js";
|
|
5
5
|
import { renderImagePlaceholder } from "./imagePlaceholder.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useAuthContext, useProjectUuid } from "../../lib/auth.js";
|
|
2
1
|
import { parseLocalePath } from "../../lib/locale-path.js";
|
|
3
2
|
import { useOptionalDraftScope } from "../../lib/draft-scope.js";
|
|
4
3
|
import { useViewLocale } from "../../lib/view-locale-context.js";
|
|
5
4
|
import { NavigationProvider, useLocation, useNavigate } from "../navigation/navigation.js";
|
|
5
|
+
import { useAuthContext, useProjectUuid } from "../../lib/auth.js";
|
|
6
6
|
import { reads, useReadQuery, useStudioCache } from "../../lib/studio-reads.js";
|
|
7
7
|
import { pageMutations } from "../../lib/queries.js";
|
|
8
8
|
import { useRoutableLayouts } from "../../lib/studio-definitions.js";
|
|
@@ -35,8 +35,8 @@ import { useCanvasNearness } from "./useCanvasNearness.js";
|
|
|
35
35
|
import { useDiscoveredPreviewPaths } from "./useDiscoveredPreviewPaths.js";
|
|
36
36
|
import { c } from "react/compiler-runtime";
|
|
37
37
|
import * as React from "react";
|
|
38
|
-
import { useSelector } from "@xstate/store-react";
|
|
39
38
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
39
|
+
import { useSelector } from "@xstate/store-react";
|
|
40
40
|
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
41
41
|
import { createStore as createStore$1 } from "@xstate/store";
|
|
42
42
|
|
|
@@ -6,8 +6,8 @@ import { canvasInsertionSeams } from "./canvasInsertionSeams.js";
|
|
|
6
6
|
import { observeCanvasOverlays } from "./canvasOverlayGeometry.js";
|
|
7
7
|
import { c } from "react/compiler-runtime";
|
|
8
8
|
import * as React from "react";
|
|
9
|
-
import { useSelector } from "@xstate/store-react";
|
|
10
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { useSelector } from "@xstate/store-react";
|
|
11
11
|
import { Button } from "@camox/ui/button";
|
|
12
12
|
import { PlusIcon } from "lucide-react";
|
|
13
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useProjectUuid } from "../../../lib/auth.js";
|
|
2
1
|
import { useOptionalDraftScope } from "../../../lib/draft-scope.js";
|
|
3
2
|
import { useLocation } from "../../navigation/navigation.js";
|
|
3
|
+
import { useProjectUuid } from "../../../lib/auth.js";
|
|
4
4
|
import { reads, useReadQuery } from "../../../lib/studio-reads.js";
|
|
5
5
|
import { pageImageUrl } from "../../og/pageImage.js";
|
|
6
6
|
import { ShikiMarkdown } from "../../preview/components/ShikiMarkdown.js";
|
|
@@ -9,8 +9,8 @@ import { DerivedPageInspector } from "./DerivedPageInspector.js";
|
|
|
9
9
|
import { SingletonPageInspector } from "./SingletonPageInspector.js";
|
|
10
10
|
import { c } from "react/compiler-runtime";
|
|
11
11
|
import * as React from "react";
|
|
12
|
-
import { useSelector } from "@xstate/store-react";
|
|
13
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useSelector } from "@xstate/store-react";
|
|
14
14
|
import { File } from "lucide-react";
|
|
15
15
|
|
|
16
16
|
//#region src/features/canvas/sidebar/PageInspector.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useProjectUuid } from "../../lib/auth.js";
|
|
2
1
|
import { Navigate, useNavigate } from "../navigation/navigation.js";
|
|
2
|
+
import { useProjectUuid } from "../../lib/auth.js";
|
|
3
3
|
import { reads, useReadQuery } from "../../lib/studio-reads.js";
|
|
4
4
|
import { CollectionItemSheetProvider } from "./CollectionItemSheetContext.js";
|
|
5
5
|
import { ContentCollection, ContentCollectionItemSheet } from "./ContentCollection.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useProjectUuid } from "../../../lib/auth.js";
|
|
2
1
|
import { useViewLocale } from "../../../lib/view-locale-context.js";
|
|
2
|
+
import { useProjectUuid } from "../../../lib/auth.js";
|
|
3
3
|
import { reads, useReadQuery, useStudioCache } from "../../../lib/studio-reads.js";
|
|
4
4
|
import { localeMutations } from "../../../lib/queries.js";
|
|
5
5
|
import { ContentSidebarGroup } from "./ContentSidebarGroup.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useProjectUuid } from "../../lib/auth.js";
|
|
2
1
|
import { useViewLocale } from "../../lib/view-locale-context.js";
|
|
3
2
|
import { useCamoxApp } from "../provider/components/CamoxAppContext.js";
|
|
3
|
+
import { useProjectUuid } from "../../lib/auth.js";
|
|
4
4
|
import { NormalizedDataProvider, usePageBlocks } from "../../lib/normalized-data.js";
|
|
5
5
|
import { reads, useRead } from "../../lib/studio-reads.js";
|
|
6
6
|
import { BlockErrorBoundary } from "../preview/components/BlockErrorBoundary.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { actionsStore } from "../provider/actionsStore.js";
|
|
2
|
-
import { useIsAuthenticated, useProjectUuid } from "../../lib/auth.js";
|
|
3
1
|
import { parseLocalePath } from "../../lib/locale-path.js";
|
|
4
2
|
import { useCurrentDraftId, withoutDraft } from "../../lib/draft-scope.js";
|
|
5
3
|
import { useViewLocale } from "../../lib/view-locale-context.js";
|
|
6
4
|
import { useLocation, useNavigate } from "../navigation/navigation.js";
|
|
5
|
+
import { actionsStore } from "../provider/actionsStore.js";
|
|
6
|
+
import { useIsAuthenticated, useProjectUuid } from "../../lib/auth.js";
|
|
7
7
|
import { reads, useRead, useStudioCache } from "../../lib/studio-reads.js";
|
|
8
8
|
import { CollectionItemSheetProvider } from "../content/CollectionItemSheetContext.js";
|
|
9
9
|
import { cn } from "../../lib/utils.js";
|
|
@@ -29,8 +29,8 @@ import { PAGE_LOADING_LABEL } from "./components/StudioEditingFallback.js";
|
|
|
29
29
|
import { usePreviewViewportActions } from "./usePreviewViewportActions.js";
|
|
30
30
|
import { c } from "react/compiler-runtime";
|
|
31
31
|
import * as React from "react";
|
|
32
|
-
import { useSelector } from "@xstate/store-react";
|
|
33
32
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
33
|
+
import { useSelector } from "@xstate/store-react";
|
|
34
34
|
import { useQueryClient } from "@tanstack/react-query";
|
|
35
35
|
|
|
36
36
|
//#region src/features/preview/CamoxPreview.tsx
|
|
@@ -12,8 +12,8 @@ import { usePreviewedPage } from "../CamoxPreview.js";
|
|
|
12
12
|
import * as React from "react";
|
|
13
13
|
import { generateUuidv7 } from "@camox/api-contract/ids";
|
|
14
14
|
import { generateKeyBetween } from "fractional-indexing";
|
|
15
|
-
import { useSelector } from "@xstate/store-react";
|
|
16
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { useSelector } from "@xstate/store-react";
|
|
17
17
|
import { useMutation } from "@tanstack/react-query";
|
|
18
18
|
import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from "@camox/ui/sheet";
|
|
19
19
|
import { Badge } from "@camox/ui/badge";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getAuthCookieHeader, getAuthRequestCredentials } from "../../../lib/auth.js";
|
|
2
|
-
import { getApiUrl, getContentWriteHeaders } from "../../../lib/api-client.js";
|
|
3
2
|
import { reads, useReadQuery } from "../../../lib/studio-reads.js";
|
|
4
3
|
import { isRasterImage, transformImageUrl } from "../../../core/lib/imageTransform.js";
|
|
5
4
|
import { UploadDropZone } from "../../content/components/UploadDropZone.js";
|
|
5
|
+
import { getApiUrl, getContentWriteHeaders } from "../../../lib/api-client.js";
|
|
6
6
|
import { fileMutations } from "../../../lib/queries.js";
|
|
7
7
|
import { DebouncedFieldEditor } from "./DebouncedFieldEditor.js";
|
|
8
8
|
import { Metadata, MetadataRow, formatRelativeTime } from "./Metadata.js";
|
|
@@ -8,8 +8,8 @@ import { useUpdateBlockPosition } from "./useUpdateBlockPosition.js";
|
|
|
8
8
|
import { usePreviewedPage } from "../CamoxPreview.js";
|
|
9
9
|
import { c } from "react/compiler-runtime";
|
|
10
10
|
import * as React from "react";
|
|
11
|
-
import { useSelector } from "@xstate/store-react";
|
|
12
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { useSelector } from "@xstate/store-react";
|
|
13
13
|
import { useMutation } from "@tanstack/react-query";
|
|
14
14
|
import { Copy, Trash2 } from "lucide-react";
|
|
15
15
|
import { toast } from "@camox/ui/toaster";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useProjectUuid } from "../../../lib/auth.js";
|
|
2
1
|
import { useNavigate } from "../../navigation/navigation.js";
|
|
2
|
+
import { useProjectUuid } from "../../../lib/auth.js";
|
|
3
3
|
import { reads, useReadQuery } from "../../../lib/studio-reads.js";
|
|
4
4
|
import { pageMutations } from "../../../lib/queries.js";
|
|
5
5
|
import { useLayoutDefinitions } from "../../../lib/studio-definitions.js";
|
|
@@ -9,8 +9,8 @@ import { PageLocationFieldset } from "./PageLocationFieldset.js";
|
|
|
9
9
|
import { PageNicknameField } from "./PageNicknameField.js";
|
|
10
10
|
import { c } from "react/compiler-runtime";
|
|
11
11
|
import { useEffect } from "react";
|
|
12
|
-
import { useSelector } from "@xstate/store-react";
|
|
13
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useSelector } from "@xstate/store-react";
|
|
14
14
|
import { useMutation } from "@tanstack/react-query";
|
|
15
15
|
import { Button } from "@camox/ui/button";
|
|
16
16
|
import { Label } from "@camox/ui/label";
|
|
@@ -2,8 +2,8 @@ import { previewStore, selectIsCanvasShown } from "../previewStore.js";
|
|
|
2
2
|
import { useFrame } from "./Frame.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useLayoutEffect } from "react";
|
|
5
|
-
import { useSelector } from "@xstate/store-react";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { useSelector } from "@xstate/store-react";
|
|
7
7
|
import overlayStyles from "virtual:camox-overlay-css";
|
|
8
8
|
|
|
9
9
|
//#region src/features/preview/components/FieldOverlayStyles.tsx
|
|
@@ -10,8 +10,8 @@ import { PageTree } from "./PageTree.js";
|
|
|
10
10
|
import { SelectionEditor } from "./SelectionEditor.js";
|
|
11
11
|
import { c } from "react/compiler-runtime";
|
|
12
12
|
import * as React from "react";
|
|
13
|
-
import { useSelector } from "@xstate/store-react";
|
|
14
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { useSelector } from "@xstate/store-react";
|
|
15
15
|
import { ArrowLeft, FileText, Info, Layers, Search, Settings } from "lucide-react";
|
|
16
16
|
|
|
17
17
|
//#region src/features/preview/components/MobilePreviewDrawer.tsx
|
|
@@ -5,8 +5,8 @@ import { isOverlayMessage, overlayFieldId, recordFieldId } from "../overlayMessa
|
|
|
5
5
|
import { usePreviewedPage } from "../CamoxPreview.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import * as React from "react";
|
|
8
|
-
import { useSelector } from "@xstate/store-react";
|
|
9
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { useSelector } from "@xstate/store-react";
|
|
10
10
|
|
|
11
11
|
//#region src/features/preview/components/Overlays.tsx
|
|
12
12
|
function CuratedAddBlockListener(t0) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useProjectUuid } from "../../../lib/auth.js";
|
|
2
1
|
import { useOptionalDraftScope } from "../../../lib/draft-scope.js";
|
|
3
2
|
import { useViewLocale } from "../../../lib/view-locale-context.js";
|
|
4
3
|
import { useNavigate } from "../../navigation/navigation.js";
|
|
4
|
+
import { useProjectUuid } from "../../../lib/auth.js";
|
|
5
5
|
import { reads, useReadQuery, useStudioCache } from "../../../lib/studio-reads.js";
|
|
6
6
|
import { cn } from "../../../lib/utils.js";
|
|
7
7
|
import { UploadDropZone } from "../../content/components/UploadDropZone.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useProjectUuid } from "../../../lib/auth.js";
|
|
2
1
|
import { useNavigate } from "../../navigation/navigation.js";
|
|
2
|
+
import { useProjectUuid } from "../../../lib/auth.js";
|
|
3
3
|
import { reads, useReadQuery } from "../../../lib/studio-reads.js";
|
|
4
4
|
import { cn } from "../../../lib/utils.js";
|
|
5
5
|
import { pageMutations } from "../../../lib/queries.js";
|
|
@@ -10,8 +10,8 @@ import { BlockActionsPopover } from "./BlockActionsPopover.js";
|
|
|
10
10
|
import { usePreviewedPage } from "../CamoxPreview.js";
|
|
11
11
|
import { c } from "react/compiler-runtime";
|
|
12
12
|
import * as React from "react";
|
|
13
|
-
import { useSelector } from "@xstate/store-react";
|
|
14
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { useSelector } from "@xstate/store-react";
|
|
15
15
|
import { Button } from "@camox/ui/button";
|
|
16
16
|
import { Label } from "@camox/ui/label";
|
|
17
17
|
import { ChevronsUpDown, Ellipsis, GripVertical, LayoutTemplate, Plus } from "lucide-react";
|
|
@@ -18,8 +18,8 @@ import { Overlays } from "./Overlays.js";
|
|
|
18
18
|
import { OverlayTracker } from "./OverlayTracker.js";
|
|
19
19
|
import { c } from "react/compiler-runtime";
|
|
20
20
|
import * as React from "react";
|
|
21
|
-
import { useSelector } from "@xstate/store-react";
|
|
22
21
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { useSelector } from "@xstate/store-react";
|
|
23
23
|
import { PanelContent } from "@camox/ui/panel";
|
|
24
24
|
import { flushSync } from "react-dom";
|
|
25
25
|
|
|
@@ -4,8 +4,8 @@ import { TOGGLE_CANVAS_SHORTCUT } from "../previewConstants.js";
|
|
|
4
4
|
import { prefetchCanvas } from "./CanvasPreview.js";
|
|
5
5
|
import { DeviceSelector } from "../../../components/DeviceSelector.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
|
-
import { useSelector } from "@xstate/store-react";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { useSelector } from "@xstate/store-react";
|
|
9
9
|
import { Button } from "@camox/ui/button";
|
|
10
10
|
import { Label } from "@camox/ui/label";
|
|
11
11
|
import { Switch } from "@camox/ui/switch";
|
|
@@ -21,8 +21,8 @@ import { useFieldWriter } from "./useFieldWriter.js";
|
|
|
21
21
|
import { useRecordView } from "./useRecordView.js";
|
|
22
22
|
import { c } from "react/compiler-runtime";
|
|
23
23
|
import * as React from "react";
|
|
24
|
-
import { useSelector } from "@xstate/store-react";
|
|
25
24
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
25
|
+
import { useSelector } from "@xstate/store-react";
|
|
26
26
|
import { useMutation } from "@tanstack/react-query";
|
|
27
27
|
import { Button } from "@camox/ui/button";
|
|
28
28
|
import { Label } from "@camox/ui/label";
|
|
@@ -999,4 +999,4 @@ function _temp6(item) {
|
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
1001
|
//#endregion
|
|
1002
|
-
export { SelectionEditor };
|
|
1002
|
+
export { SelectionEditor, getSchemaForItem };
|
|
@@ -2,8 +2,8 @@ import { CanvasLoadingScreen } from "../../canvas/CanvasLoadingScreen.js";
|
|
|
2
2
|
import { previewStore, selectIsCanvasShown } from "../previewStore.js";
|
|
3
3
|
import { ContentSidebarSkeleton } from "../../canvas/sidebar/ContentSidebarSkeleton.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
|
-
import { useSelector } from "@xstate/store-react";
|
|
6
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { useSelector } from "@xstate/store-react";
|
|
7
7
|
|
|
8
8
|
//#region src/features/preview/components/StudioEditingFallback.tsx
|
|
9
9
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuthContext, useAuthActions } from "../../lib/auth.js";
|
|
2
1
|
import { useDraftScope } from "../../lib/draft-scope.js";
|
|
2
|
+
import { AuthContext, useAuthActions } from "../../lib/auth.js";
|
|
3
3
|
import { reads, useReadQuery, useStudioCache } from "../../lib/studio-reads.js";
|
|
4
4
|
import { RevisionsContext, createRevisions } from "../../lib/revisions.js";
|
|
5
5
|
import { useAdminShortcuts } from "./useAdminShortcuts.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useSignInRedirect } from "../../lib/auth.js";
|
|
2
1
|
import { useLocation } from "../navigation/navigation.js";
|
|
2
|
+
import { useSignInRedirect } from "../../lib/auth.js";
|
|
3
3
|
import { useSignInShortcut } from "./signInShortcut.js";
|
|
4
4
|
import { STUDIO_BASE_PATH } from "../studio/routes.js";
|
|
5
5
|
import { AuthGate } from "../../components/AuthGate.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AuthContext, createCamoxAuthClient, useProcessOtt } from "../../lib/auth.js";
|
|
2
|
-
import { getDraftReadClient, initApiClient } from "../../lib/api-client.js";
|
|
3
1
|
import { DraftScopeContext, createDraftScope, followUrl } from "../../lib/draft-scope.js";
|
|
4
2
|
import { CamoxAppProvider } from "./components/CamoxAppContext.js";
|
|
3
|
+
import { AuthContext, createCamoxAuthClient, useProcessOtt } from "../../lib/auth.js";
|
|
5
4
|
import { StudioCacheContext, createStudioCache, reads } from "../../lib/studio-reads.js";
|
|
5
|
+
import { getDraftReadClient, initApiClient } from "../../lib/api-client.js";
|
|
6
6
|
import { PreviewSignInPage } from "./PreviewSignInPage.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -63,7 +63,7 @@ function CoreCamoxProvider({ apiUrl, authenticationUrl, camoxApp, children, proj
|
|
|
63
63
|
}, []);
|
|
64
64
|
if (error) return /* @__PURE__ */ jsx(PreviewSignInPage, { error });
|
|
65
65
|
if (isPreviewHandoff && !ready) return /* @__PURE__ */ jsx(PreviewSignInPage, {});
|
|
66
|
-
if (isPreviewHandoff && !initialAuthenticated) return /* @__PURE__ */ jsx(PreviewSignInPage, { error: "
|
|
66
|
+
if (isPreviewHandoff && !initialAuthenticated) return /* @__PURE__ */ jsx(PreviewSignInPage, { error: "This sign-in link didn't sign you in. Restart the dev server for a fresh link." });
|
|
67
67
|
return /* @__PURE__ */ jsx(DraftScopeContext.Provider, {
|
|
68
68
|
value: draftScope,
|
|
69
69
|
children: /* @__PURE__ */ jsx(StudioCacheContext.Provider, {
|
|
@@ -3,8 +3,8 @@ import { formatShortcut } from "../../../lib/shortcuts.js";
|
|
|
3
3
|
import { studioStore } from "../../studio/studioStore.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import { useSelector } from "@xstate/store-react";
|
|
7
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { useSelector } from "@xstate/store-react";
|
|
8
8
|
import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandShortcut } from "@camox/ui/command";
|
|
9
9
|
|
|
10
10
|
//#region src/features/provider/components/CommandPalette.tsx
|