@kyro-cms/admin 0.9.5 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +659 -684
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +54 -51
- package/dist/index.css.map +1 -1
- package/dist/index.js +660 -685
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/ActionBar.tsx +172 -292
- package/src/components/Admin.tsx +7 -1
- package/src/components/AutoForm.tsx +573 -367
- package/src/components/DetailView.tsx +22 -47
- package/src/components/GraphQLPlayground.tsx +473 -223
- package/src/components/ListView.tsx +1 -1
- package/src/components/MediaGallery.tsx +2 -2
- package/src/components/RestPlayground.tsx +482 -519
- package/src/components/blocks/AccordionBlock.tsx +1 -1
- package/src/components/blocks/ArrayBlock.tsx +1 -1
- package/src/components/blocks/ChildBlocksTree.tsx +6 -6
- package/src/components/blocks/CodeBlock.tsx +1 -1
- package/src/components/blocks/FileBlock.tsx +1 -1
- package/src/components/blocks/HeroBlock.tsx +1 -1
- package/src/components/blocks/ListBlock.tsx +1 -1
- package/src/components/blocks/RelationshipBlock.tsx +1 -1
- package/src/components/blocks/RichTextBlock.tsx +1 -1
- package/src/components/blocks/VideoBlock.tsx +1 -1
- package/src/components/fields/BlocksField.tsx +5 -5
- package/src/components/fields/RichTextField.tsx +3 -1
- package/src/components/ui/SplitButton.tsx +1 -1
- package/src/components/ui/Toast.tsx +2 -1
- package/src/layouts/AdminLayout.astro +16 -1
- package/src/pages/graphql-explorer.astro +7 -51
- package/src/pages/graphql.astro +7 -119
- package/src/pages/index.astro +4 -63
- package/src/pages/rest-playground.astro +3 -29
- package/src/styles/main.css +53 -43
|
@@ -292,57 +292,32 @@ export function DetailView({
|
|
|
292
292
|
]}
|
|
293
293
|
/>
|
|
294
294
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
updatedAt={updatedAt}
|
|
316
|
-
/>
|
|
317
|
-
</div>
|
|
318
|
-
) : (
|
|
319
|
-
<ActionBar
|
|
320
|
-
status={status}
|
|
321
|
-
saveStatus={saveStatus}
|
|
322
|
-
hasChanges={hasChanges}
|
|
323
|
-
onSave={() => handleSave(false)}
|
|
324
|
-
onPublish={handlePublish}
|
|
325
|
-
onUnpublish={status === "published" ? handleUnpublish : undefined}
|
|
326
|
-
onDuplicate={handleDuplicate}
|
|
327
|
-
onViewHistory={() => {
|
|
328
|
-
window.dispatchEvent(new CustomEvent('kyro:show-version-history'));
|
|
329
|
-
}}
|
|
330
|
-
onPreview={() =>
|
|
331
|
-
window.open(`/preview/${slug}/${documentId}`, "_blank")
|
|
332
|
-
}
|
|
333
|
-
onDelete={handleDeleteTrigger}
|
|
334
|
-
onBack={onBack}
|
|
335
|
-
onToggleSidebar={() => window.dispatchEvent(new CustomEvent("toggle-sidebar"))}
|
|
336
|
-
publishedAt={publishedAt}
|
|
337
|
-
updatedAt={updatedAt}
|
|
338
|
-
/>
|
|
339
|
-
)}
|
|
295
|
+
<ActionBar
|
|
296
|
+
status={status}
|
|
297
|
+
saveStatus={saveStatus}
|
|
298
|
+
hasChanges={hasChanges}
|
|
299
|
+
onSave={() => handleSave(false)}
|
|
300
|
+
onPublish={handlePublish}
|
|
301
|
+
onUnpublish={status === "published" ? handleUnpublish : undefined}
|
|
302
|
+
onDuplicate={handleDuplicate}
|
|
303
|
+
onViewHistory={() => {
|
|
304
|
+
window.dispatchEvent(new CustomEvent('kyro:show-version-history'));
|
|
305
|
+
}}
|
|
306
|
+
onPreview={() =>
|
|
307
|
+
window.open(`/preview/${slug}/${documentId}`, "_blank")
|
|
308
|
+
}
|
|
309
|
+
onDelete={handleDeleteTrigger}
|
|
310
|
+
onBack={onBack}
|
|
311
|
+
onToggleSidebar={() => window.dispatchEvent(new CustomEvent("toggle-sidebar"))}
|
|
312
|
+
publishedAt={publishedAt}
|
|
313
|
+
updatedAt={updatedAt}
|
|
314
|
+
/>
|
|
340
315
|
|
|
341
316
|
<div
|
|
342
317
|
className={
|
|
343
318
|
isSingleLayout
|
|
344
|
-
? "w-full
|
|
345
|
-
: "w-full mx-auto grid grid-cols-1 lg:grid-cols-[1fr_360px] gap-4 md:gap-8 pt-4 md:pt-0
|
|
319
|
+
? "w-full pt-4 md:pt-8"
|
|
320
|
+
: "w-full mx-auto grid grid-cols-1 lg:grid-cols-[1fr_360px] gap-4 md:gap-8 pt-4 md:pt-0"
|
|
346
321
|
}
|
|
347
322
|
>
|
|
348
323
|
<div className="space-y-4 md:space-y-8 min-w-0">
|