Fix scope
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@emdashcms/admin",
|
||||
"name": "@emdash-cms/admin",
|
||||
"version": "0.0.0",
|
||||
"description": "Admin UI for EmDash CMS",
|
||||
"type": "module",
|
||||
@@ -27,7 +27,7 @@
|
||||
"@dnd-kit/core": "^6.3.1",
|
||||
"@dnd-kit/sortable": "^10.0.0",
|
||||
"@dnd-kit/utilities": "^3.2.2",
|
||||
"@emdashcms/blocks": "workspace:*",
|
||||
"@emdash-cms/blocks": "workspace:*",
|
||||
"@floating-ui/react": "^0.27.16",
|
||||
"@phosphor-icons/react": "catalog:",
|
||||
"@tanstack/react-query": "catalog:",
|
||||
|
||||
@@ -28,7 +28,7 @@ import { useHotkeys } from "react-hotkeys-hook";
|
||||
import { apiFetch } from "../lib/api/client";
|
||||
import { useCurrentUser } from "../lib/api/current-user";
|
||||
|
||||
// Role levels (matching @emdashcms/auth)
|
||||
// Role levels (matching @emdash-cms/auth)
|
||||
const ROLE_ADMIN = 50;
|
||||
const ROLE_EDITOR = 40;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Input, Switch } from "@cloudflare/kumo";
|
||||
import type { Element } from "@emdashcms/blocks";
|
||||
import type { Element } from "@emdash-cms/blocks";
|
||||
import * as React from "react";
|
||||
|
||||
interface BlockKitFieldWidgetProps {
|
||||
|
||||
@@ -69,7 +69,7 @@ import { SaveButton } from "./SaveButton";
|
||||
import { SeoPanel } from "./SeoPanel";
|
||||
import { TaxonomySidebar } from "./TaxonomySidebar";
|
||||
|
||||
// Editor role level (40) from @emdashcms/auth
|
||||
// Editor role level (40) from @emdash-cms/auth
|
||||
const ROLE_EDITOR = 40;
|
||||
|
||||
export interface FieldDescriptor {
|
||||
|
||||
@@ -41,7 +41,7 @@ import {
|
||||
type Icon,
|
||||
} from "@phosphor-icons/react";
|
||||
import { X } from "@phosphor-icons/react";
|
||||
import type { Element } from "@emdashcms/blocks";
|
||||
import type { Element } from "@emdash-cms/blocks";
|
||||
import { Extension, type Range } from "@tiptap/core";
|
||||
import CharacterCount from "@tiptap/extension-character-count";
|
||||
import Focus from "@tiptap/extension-focus";
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
*/
|
||||
|
||||
import { CircleNotch, WarningCircle } from "@phosphor-icons/react";
|
||||
import { BlockRenderer } from "@emdashcms/blocks";
|
||||
import type { Block, BlockInteraction, BlockResponse } from "@emdashcms/blocks";
|
||||
import { BlockRenderer } from "@emdash-cms/blocks";
|
||||
import type { Block, BlockInteraction, BlockResponse } from "@emdash-cms/blocks";
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
|
||||
import { apiFetch, API_BASE } from "../lib/api/client.js";
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
*/
|
||||
|
||||
import { CircleNotch } from "@phosphor-icons/react";
|
||||
import { BlockRenderer } from "@emdashcms/blocks";
|
||||
import type { Block, BlockInteraction, BlockResponse } from "@emdashcms/blocks";
|
||||
import { BlockRenderer } from "@emdash-cms/blocks";
|
||||
import type { Block, BlockInteraction, BlockResponse } from "@emdash-cms/blocks";
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
|
||||
import { apiFetch, API_BASE } from "../lib/api/client.js";
|
||||
|
||||
@@ -28,7 +28,7 @@ import { cn } from "../lib/utils";
|
||||
// Re-export for Shell.tsx and Header.tsx
|
||||
export { KumoSidebar as Sidebar, useSidebar };
|
||||
|
||||
// Role levels (matching @emdashcms/auth)
|
||||
// Role levels (matching @emdash-cms/auth)
|
||||
const ROLE_ADMIN = 50;
|
||||
const ROLE_EDITOR = 40;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
Cube,
|
||||
ListBullets,
|
||||
} from "@phosphor-icons/react";
|
||||
import type { Element } from "@emdashcms/blocks";
|
||||
import type { Element } from "@emdash-cms/blocks";
|
||||
import { Node, mergeAttributes } from "@tiptap/core";
|
||||
import type { NodeViewProps } from "@tiptap/react";
|
||||
import { ReactNodeViewRenderer, NodeViewWrapper } from "@tiptap/react";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* Base API client configuration and shared types
|
||||
*/
|
||||
|
||||
import type { Element } from "@emdashcms/blocks";
|
||||
import type { Element } from "@emdash-cms/blocks";
|
||||
|
||||
export const API_BASE = "/_emdash/api";
|
||||
|
||||
@@ -72,7 +72,7 @@ export interface AdminManifest {
|
||||
{
|
||||
name?: string;
|
||||
version?: string;
|
||||
/** Package name for dynamic import (e.g., "@emdashcms/plugin-audit-log") */
|
||||
/** Package name for dynamic import (e.g., "@emdash-cms/plugin-audit-log") */
|
||||
package?: string;
|
||||
/** Whether the plugin is enabled */
|
||||
enabled?: boolean;
|
||||
@@ -97,7 +97,7 @@ export interface AdminManifest {
|
||||
name: string;
|
||||
label: string;
|
||||
fieldTypes: string[];
|
||||
elements?: import("@emdashcms/blocks").Element[];
|
||||
elements?: import("@emdash-cms/blocks").Element[];
|
||||
}>;
|
||||
/** Block types for Portable Text editor */
|
||||
portableTextBlocks?: Array<{
|
||||
|
||||
@@ -469,7 +469,7 @@ const contentEditRoute = createRoute({
|
||||
component: ContentEditPage,
|
||||
});
|
||||
|
||||
// Editor role level from @emdashcms/auth
|
||||
// Editor role level from @emdash-cms/auth
|
||||
const ROLE_EDITOR = 40;
|
||||
|
||||
function ContentEditPage() {
|
||||
@@ -889,7 +889,7 @@ const commentsRoute = createRoute({
|
||||
component: CommentsPage,
|
||||
});
|
||||
|
||||
// Admin role level from @emdashcms/auth
|
||||
// Admin role level from @emdash-cms/auth
|
||||
const ROLE_ADMIN = 50;
|
||||
|
||||
function CommentsPage() {
|
||||
|
||||
Reference in New Issue
Block a user