Fix scope
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@emdashcms/plugin-ai-moderation",
|
||||
"name": "@emdash-cms/plugin-ai-moderation",
|
||||
"version": "0.0.1",
|
||||
"description": "AI-powered comment moderation plugin for EmDash CMS using Cloudflare Workers AI (Llama Guard)",
|
||||
"type": "module",
|
||||
|
||||
@@ -24,9 +24,9 @@ export function aiModerationPlugin(
|
||||
return {
|
||||
id: "ai-moderation",
|
||||
version: "0.1.0",
|
||||
entrypoint: "@emdashcms/plugin-ai-moderation/plugin",
|
||||
entrypoint: "@emdash-cms/plugin-ai-moderation/plugin",
|
||||
options,
|
||||
adminEntry: "@emdashcms/plugin-ai-moderation/admin",
|
||||
adminEntry: "@emdash-cms/plugin-ai-moderation/admin",
|
||||
adminPages: [{ path: "/settings", label: "AI Moderation", icon: "shield" }],
|
||||
adminWidgets: [{ id: "status", title: "AI Moderation", size: "third" }],
|
||||
};
|
||||
|
||||
@@ -56,7 +56,7 @@ export function createPlugin(options: AIModerationOptions = {}): ResolvedPlugin
|
||||
allowedHosts: [],
|
||||
|
||||
admin: {
|
||||
entry: "@emdashcms/plugin-ai-moderation/admin",
|
||||
entry: "@emdash-cms/plugin-ai-moderation/admin",
|
||||
pages: [{ path: "/settings", label: "AI Moderation", icon: "shield" }],
|
||||
widgets: [{ id: "status", title: "AI Moderation", size: "third" }],
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@emdashcms/plugin-api-test",
|
||||
"name": "@emdash-cms/plugin-api-test",
|
||||
"private": true,
|
||||
"version": "0.0.1",
|
||||
"description": "Test plugin that exercises all EmDash plugin APIs",
|
||||
|
||||
@@ -50,9 +50,9 @@ export function apiTestPlugin(
|
||||
return {
|
||||
id: "api-test",
|
||||
version: "0.0.1",
|
||||
entrypoint: "@emdashcms/plugin-api-test",
|
||||
entrypoint: "@emdash-cms/plugin-api-test",
|
||||
options,
|
||||
adminEntry: "@emdashcms/plugin-api-test/admin",
|
||||
adminEntry: "@emdash-cms/plugin-api-test/admin",
|
||||
adminPages: [{ path: "/test", label: "API Tests", icon: "code" }],
|
||||
adminWidgets: [{ id: "api-status", title: "API Status", size: "half" }],
|
||||
};
|
||||
@@ -84,7 +84,7 @@ export function createPlugin(_options: ApiTestPluginOptions = {}): ResolvedPlugi
|
||||
|
||||
// Admin configuration
|
||||
admin: {
|
||||
entry: "@emdashcms/plugin-api-test/admin",
|
||||
entry: "@emdash-cms/plugin-api-test/admin",
|
||||
pages: [{ path: "/test", label: "API Tests", icon: "code" }],
|
||||
widgets: [{ id: "api-status", title: "API Status", size: "half" }],
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@emdashcms/plugin-atproto",
|
||||
"name": "@emdash-cms/plugin-atproto",
|
||||
"version": "0.0.1",
|
||||
"description": "AT Protocol / standard.site syndication plugin for EmDash CMS",
|
||||
"type": "module",
|
||||
|
||||
@@ -30,7 +30,7 @@ export function atprotoPlugin(): PluginDescriptor {
|
||||
id: "atproto",
|
||||
version: "0.1.0",
|
||||
format: "standard",
|
||||
entrypoint: "@emdashcms/plugin-atproto/sandbox",
|
||||
entrypoint: "@emdash-cms/plugin-atproto/sandbox",
|
||||
capabilities: ["read:content", "network:fetch:any"],
|
||||
storage: {
|
||||
publications: { indexes: ["contentId", "platform", "publishedAt"] },
|
||||
|
||||
@@ -7,7 +7,7 @@ describe("atprotoPlugin descriptor", () => {
|
||||
const descriptor = atprotoPlugin();
|
||||
expect(descriptor.id).toBe("atproto");
|
||||
expect(descriptor.version).toBe("0.1.0");
|
||||
expect(descriptor.entrypoint).toBe("@emdashcms/plugin-atproto");
|
||||
expect(descriptor.entrypoint).toBe("@emdash-cms/plugin-atproto");
|
||||
expect(descriptor.adminPages).toHaveLength(1);
|
||||
expect(descriptor.adminWidgets).toHaveLength(1);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@emdashcms/plugin-audit-log",
|
||||
"name": "@emdash-cms/plugin-audit-log",
|
||||
"version": "0.0.1",
|
||||
"description": "Audit logging plugin for EmDash CMS - tracks content changes",
|
||||
"type": "module",
|
||||
|
||||
@@ -42,7 +42,7 @@ export function auditLogPlugin(): PluginDescriptor {
|
||||
id: "audit-log",
|
||||
version: "0.1.0",
|
||||
format: "standard",
|
||||
entrypoint: "@emdashcms/plugin-audit-log/sandbox",
|
||||
entrypoint: "@emdash-cms/plugin-audit-log/sandbox",
|
||||
capabilities: ["read:content"],
|
||||
storage: {
|
||||
entries: { indexes: ["timestamp", "action", "resourceType", "collection"] },
|
||||
|
||||
@@ -203,7 +203,7 @@ export default definePlugin({
|
||||
},
|
||||
|
||||
routes: {
|
||||
// Block Kit admin handler -- returns plain block objects (no @emdashcms/blocks import needed)
|
||||
// Block Kit admin handler -- returns plain block objects (no @emdash-cms/blocks import needed)
|
||||
admin: {
|
||||
handler: async (
|
||||
routeCtx: { input: unknown; request: { url: string } },
|
||||
@@ -288,7 +288,7 @@ export default definePlugin({
|
||||
},
|
||||
});
|
||||
|
||||
// ── Block Kit helpers (plain objects, no @emdashcms/blocks import) ──
|
||||
// ── Block Kit helpers (plain objects, no @emdash-cms/blocks import) ──
|
||||
|
||||
async function buildHistoryBlocks(ctx: PluginContext, cursor?: string) {
|
||||
try {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@emdashcms/plugin-color",
|
||||
"name": "@emdash-cms/plugin-color",
|
||||
"version": "0.0.1",
|
||||
"description": "Color picker field widget for EmDash CMS",
|
||||
"type": "module",
|
||||
|
||||
@@ -26,7 +26,7 @@ export function createPlugin() {
|
||||
version: "0.0.1",
|
||||
|
||||
admin: {
|
||||
entry: "@emdashcms/plugin-color/admin",
|
||||
entry: "@emdash-cms/plugin-color/admin",
|
||||
fieldWidgets: [
|
||||
{
|
||||
name: "picker",
|
||||
@@ -47,8 +47,8 @@ export function colorPlugin(): PluginDescriptor {
|
||||
return {
|
||||
id: "color",
|
||||
version: "0.0.1",
|
||||
entrypoint: "@emdashcms/plugin-color",
|
||||
entrypoint: "@emdash-cms/plugin-color",
|
||||
options: {},
|
||||
adminEntry: "@emdashcms/plugin-color/admin",
|
||||
adminEntry: "@emdash-cms/plugin-color/admin",
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@emdashcms/plugin-embeds",
|
||||
"name": "@emdash-cms/plugin-embeds",
|
||||
"version": "0.0.1",
|
||||
"description": "Embed blocks for EmDash CMS - YouTube, Vimeo, Twitter, Bluesky, Mastodon, and more",
|
||||
"type": "module",
|
||||
@@ -28,7 +28,7 @@
|
||||
"emdash": "workspace:*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@emdashcms/blocks": "workspace:*",
|
||||
"@emdash-cms/blocks": "workspace:*",
|
||||
"astro-embed": "^0.12.0"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* @example Direct usage (if you need to customize)
|
||||
* ```astro
|
||||
* ---
|
||||
* import { YouTube } from "@emdashcms/plugin-embeds/astro";
|
||||
* import { YouTube } from "@emdash-cms/plugin-embeds/astro";
|
||||
* ---
|
||||
* <YouTube value={{ id: "dQw4w9WgXcQ", _type: "youtube", _key: "1" }} />
|
||||
* ```
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* @example
|
||||
* ```typescript
|
||||
* // live.config.ts
|
||||
* import { embedsPlugin } from "@emdashcms/plugin-embeds";
|
||||
* import { embedsPlugin } from "@emdash-cms/plugin-embeds";
|
||||
*
|
||||
* export default defineConfig({
|
||||
* plugins: [embedsPlugin()],
|
||||
@@ -40,7 +40,7 @@
|
||||
* ```
|
||||
*/
|
||||
|
||||
import type { Element } from "@emdashcms/blocks";
|
||||
import type { Element } from "@emdash-cms/blocks";
|
||||
import type { PluginDescriptor, ResolvedPlugin } from "emdash";
|
||||
import { definePlugin } from "emdash";
|
||||
|
||||
@@ -139,8 +139,8 @@ export function embedsPlugin(
|
||||
return {
|
||||
id: "embeds",
|
||||
version: "0.0.1",
|
||||
entrypoint: "@emdashcms/plugin-embeds",
|
||||
componentsEntry: "@emdashcms/plugin-embeds/astro",
|
||||
entrypoint: "@emdash-cms/plugin-embeds",
|
||||
componentsEntry: "@emdash-cms/plugin-embeds/astro",
|
||||
options,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@emdashcms/plugin-forms",
|
||||
"name": "@emdash-cms/plugin-forms",
|
||||
"version": "0.0.1",
|
||||
"description": "Forms plugin for EmDash CMS - build forms, collect submissions, send notifications",
|
||||
"type": "module",
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @example
|
||||
* ```astro
|
||||
* ---
|
||||
* import { Form } from "@emdashcms/plugin-forms/ui";
|
||||
* import { Form } from "@emdash-cms/plugin-forms/ui";
|
||||
* ---
|
||||
*
|
||||
* <Form id="contact-form" />
|
||||
|
||||
@@ -296,6 +296,6 @@ function fieldId(name: string): string {
|
||||
</form>
|
||||
|
||||
<script>
|
||||
import { initForms } from "@emdashcms/plugin-forms/client";
|
||||
import { initForms } from "@emdash-cms/plugin-forms/client";
|
||||
initForms();
|
||||
</script>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* @example
|
||||
* ```typescript
|
||||
* // live.config.ts
|
||||
* import { formsPlugin } from "@emdashcms/plugin-forms";
|
||||
* import { formsPlugin } from "@emdash-cms/plugin-forms";
|
||||
*
|
||||
* export default defineConfig({
|
||||
* plugins: [formsPlugin()],
|
||||
@@ -67,9 +67,9 @@ export function formsPlugin(
|
||||
return {
|
||||
id: "emdash-forms",
|
||||
version: "0.0.1",
|
||||
entrypoint: "@emdashcms/plugin-forms",
|
||||
adminEntry: "@emdashcms/plugin-forms/admin",
|
||||
componentsEntry: "@emdashcms/plugin-forms/astro",
|
||||
entrypoint: "@emdash-cms/plugin-forms",
|
||||
adminEntry: "@emdash-cms/plugin-forms/admin",
|
||||
componentsEntry: "@emdash-cms/plugin-forms/astro",
|
||||
options,
|
||||
capabilities: ["email:send", "write:media", "network:fetch"],
|
||||
allowedHosts: ["*"],
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Uses CSS custom properties for theming.
|
||||
* Import this stylesheet in your site to get basic form styling:
|
||||
*
|
||||
* import "@emdashcms/plugin-forms/styles";
|
||||
* import "@emdash-cms/plugin-forms/styles";
|
||||
*/
|
||||
|
||||
.ec-form {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@emdashcms/plugin-marketplace-test",
|
||||
"name": "@emdash-cms/plugin-marketplace-test",
|
||||
"private": true,
|
||||
"version": "0.1.0",
|
||||
"description": "Test plugin for end-to-end marketplace publishing and audit workflow testing",
|
||||
|
||||
@@ -22,7 +22,7 @@ export function marketplaceTestPlugin(): PluginDescriptor {
|
||||
id: "marketplace-test",
|
||||
version: "0.1.0",
|
||||
format: "standard",
|
||||
entrypoint: "@emdashcms/plugin-marketplace-test/sandbox",
|
||||
entrypoint: "@emdash-cms/plugin-marketplace-test/sandbox",
|
||||
capabilities: ["read:content", "write:content"],
|
||||
allowedHosts: [],
|
||||
storage: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@emdashcms/plugin-sandboxed-test",
|
||||
"name": "@emdash-cms/plugin-sandboxed-test",
|
||||
"private": true,
|
||||
"version": "0.0.1",
|
||||
"description": "Test plugin for sandboxed plugin system",
|
||||
|
||||
@@ -15,7 +15,7 @@ export function sandboxedTestPlugin(): PluginDescriptor {
|
||||
id: "sandboxed-test",
|
||||
version: "0.0.1",
|
||||
format: "standard",
|
||||
entrypoint: "@emdashcms/plugin-sandboxed-test/sandbox",
|
||||
entrypoint: "@emdash-cms/plugin-sandboxed-test/sandbox",
|
||||
|
||||
adminPages: [{ path: "/sandbox", label: "Sandbox Tests", icon: "shield" }],
|
||||
adminWidgets: [{ id: "sandbox-status", title: "Sandbox Status", size: "half" }],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@emdashcms/plugin-webhook-notifier",
|
||||
"name": "@emdash-cms/plugin-webhook-notifier",
|
||||
"version": "0.0.1",
|
||||
"description": "Webhook notification plugin for EmDash CMS - posts to external URLs on content changes",
|
||||
"type": "module",
|
||||
|
||||
@@ -39,7 +39,7 @@ export function webhookNotifierPlugin(): PluginDescriptor {
|
||||
id: "webhook-notifier",
|
||||
version: "0.1.0",
|
||||
format: "standard",
|
||||
entrypoint: "@emdashcms/plugin-webhook-notifier/sandbox",
|
||||
entrypoint: "@emdash-cms/plugin-webhook-notifier/sandbox",
|
||||
capabilities: ["network:fetch:any"],
|
||||
storage: {
|
||||
deliveries: { indexes: ["timestamp", "webhookUrl", "status"] },
|
||||
|
||||
Reference in New Issue
Block a user