Fix scope
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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:",
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Block } from "@emdashcms/blocks";
|
||||
import type { Block } from "@emdash-cms/blocks";
|
||||
|
||||
interface BlockCatalogEntry {
|
||||
type: Block["type"];
|
||||
|
||||
@@ -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" },
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user