Format
This commit is contained in:
@@ -329,9 +329,7 @@ export function MarketplacePluginDetail({
|
||||
<h3 className="text-sm font-semibold mb-2">Version</h3>
|
||||
<div className="space-y-1 text-xs text-kumo-subtle">
|
||||
<div>v{latest.version}</div>
|
||||
{latest.minEmDashVersion && (
|
||||
<div>Requires EmDash {latest.minEmDashVersion}</div>
|
||||
)}
|
||||
{latest.minEmDashVersion && <div>Requires EmDash {latest.minEmDashVersion}</div>}
|
||||
<div>Published {new Date(latest.publishedAt).toLocaleDateString()}</div>
|
||||
{latest.bundleSize > 0 && <div>{formatBytes(latest.bundleSize)}</div>}
|
||||
</div>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
|
||||
import { Button, Dialog, Input } from "@cloudflare/kumo";
|
||||
import type { Element } from "@emdash-cms/blocks";
|
||||
import { useFloating, offset, flip, shift, autoUpdate } from "@floating-ui/react";
|
||||
import {
|
||||
TextB,
|
||||
@@ -41,7 +42,6 @@ import {
|
||||
type Icon,
|
||||
} from "@phosphor-icons/react";
|
||||
import { X } from "@phosphor-icons/react";
|
||||
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";
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
* interactions to the plugin's admin route and renders the returned blocks.
|
||||
*/
|
||||
|
||||
import { CircleNotch, WarningCircle } from "@phosphor-icons/react";
|
||||
import { BlockRenderer } from "@emdash-cms/blocks";
|
||||
import type { Block, BlockInteraction, BlockResponse } from "@emdash-cms/blocks";
|
||||
import { CircleNotch, WarningCircle } from "@phosphor-icons/react";
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
|
||||
import { apiFetch, API_BASE } from "../lib/api/client.js";
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
* interaction with page="widget:<widgetId>" to the plugin's admin route.
|
||||
*/
|
||||
|
||||
import { CircleNotch } from "@phosphor-icons/react";
|
||||
import { BlockRenderer } from "@emdash-cms/blocks";
|
||||
import type { Block, BlockInteraction, BlockResponse } from "@emdash-cms/blocks";
|
||||
import { CircleNotch } from "@phosphor-icons/react";
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
|
||||
import { apiFetch, API_BASE } from "../lib/api/client.js";
|
||||
|
||||
@@ -720,9 +720,7 @@ export function WordPressImport() {
|
||||
<div className="rounded-lg border bg-kumo-base p-12 text-center">
|
||||
<Loader />
|
||||
<p className="mt-4 text-kumo-subtle">Analyzing WordPress site...</p>
|
||||
<p className="text-sm text-kumo-subtle">
|
||||
Fetching content from the EmDash Exporter API.
|
||||
</p>
|
||||
<p className="text-sm text-kumo-subtle">Fetching content from the EmDash Exporter API.</p>
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
*/
|
||||
|
||||
import { Button, Input } from "@cloudflare/kumo";
|
||||
import type { Element } from "@emdash-cms/blocks";
|
||||
import {
|
||||
DotsSixVertical,
|
||||
Trash,
|
||||
@@ -24,7 +25,6 @@ import {
|
||||
Cube,
|
||||
ListBullets,
|
||||
} from "@phosphor-icons/react";
|
||||
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";
|
||||
|
||||
Reference in New Issue
Block a user