Fix scope

This commit is contained in:
Matt Kane
2026-04-01 10:58:32 +01:00
parent 482a442f60
commit 2e863566b3
264 changed files with 578 additions and 578 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "@emdashcms/blocks",
"name": "@emdash-cms/blocks",
"version": "0.0.0",
"description": "Declarative plugin UI blocks for EmDash CMS",
"type": "module",

View File

@@ -1,5 +1,5 @@
{
"name": "@emdashcms/blocks-playground",
"name": "@emdash-cms/blocks-playground",
"version": "0.0.0",
"private": true,
"type": "module",
@@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"@emdashcms/blocks": "workspace:*",
"@emdash-cms/blocks": "workspace:*",
"@cloudflare/kumo": "^1.1.0",
"@phosphor-icons/react": "catalog:",
"react": "catalog:",

View File

@@ -1,6 +1,6 @@
import { Sun, Moon, Share, Check, Trash, CaretDown, Warning, Plus } from "@phosphor-icons/react";
import { BlockRenderer, validateBlocks } from "@emdashcms/blocks";
import type { Block, BlockInteraction } from "@emdashcms/blocks";
import { BlockRenderer, validateBlocks } from "@emdash-cms/blocks";
import type { Block, BlockInteraction } from "@emdash-cms/blocks";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { blockCatalog } from "./block-defaults";

View File

@@ -1,4 +1,4 @@
import type { Block } from "@emdashcms/blocks";
import type { Block } from "@emdash-cms/blocks";
interface BlockCatalogEntry {
type: Block["type"];

View File

@@ -1,4 +1,4 @@
import type { Block, ChartSeries } from "@emdashcms/blocks";
import type { Block, ChartSeries } from "@emdash-cms/blocks";
export interface Template {
name: string;
@@ -508,7 +508,7 @@ export const templates: Template[] = [
},
{
type: "code",
code: 'import { blocks } from "@emdashcms/blocks";\n\nconst page = [\n\tblocks.header("Hello"),\n\tblocks.section("Welcome to EmDash."),\n];',
code: 'import { blocks } from "@emdash-cms/blocks";\n\nconst page = [\n\tblocks.header("Hello"),\n\tblocks.section("Welcome to EmDash."),\n];',
language: "ts",
},
{ type: "divider" },

View File

@@ -6,8 +6,8 @@ export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
// Resolve @emdashcms/blocks from source for HMR
"@emdashcms/blocks": new URL("../src/index.ts", import.meta.url).pathname,
// Resolve @emdash-cms/blocks from source for HMR
"@emdash-cms/blocks": new URL("../src/index.ts", import.meta.url).pathname,
},
},
});

View File

@@ -1,5 +1,5 @@
/**
* Server-safe exports for @emdashcms/blocks.
* Server-safe exports for @emdash-cms/blocks.
*
* Use this entry point in plugin route handlers and other server-side code
* that doesn't have React available. Provides builders, validation, and types