@rigel-cms/rigel 1.2.0 → 1.2.2
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/package.json
CHANGED
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
{#if docType.shared}
|
|
96
96
|
<p class="shared-badge"><Icon name="info" size={12} /> {$t(docType.demo ? "fields.demoContentNotice" : "fields.sharedContentNotice")}</p>
|
|
97
97
|
{/if}
|
|
98
|
-
<div class:page-properties-header={!docType.shared}>
|
|
99
98
|
{#if seoFields.length}<PropertiesTabs bind:tab />{/if}
|
|
100
|
-
<
|
|
99
|
+
<div id="properties-content" role={seoFields.length ? "tabpanel" : undefined} aria-labelledby={seoFields.length ? "properties-tab-content" : undefined} hidden={tab !== "content"}>
|
|
100
|
+
<section class="document-properties">
|
|
101
101
|
<h3>{$t(docType.shared ? "fields.content" : "fields.pageProperties")}</h3>
|
|
102
102
|
{#if !docType.shared}
|
|
103
103
|
<label><span>{$t("fields.urlSlug")}</span><input type="text" value={String(values.slug ?? docId.slice(docType.name.length + 1))} oninput={(event) => onchange({ ...values, slug: event.currentTarget.value })} onblur={() => { if (Object.hasOwn(values, "slug")) onchange({ ...values, slug: slugify(String(values.slug)) }); }} /></label>
|
|
@@ -109,8 +109,6 @@
|
|
|
109
109
|
</div>
|
|
110
110
|
{/each}
|
|
111
111
|
</section>
|
|
112
|
-
</div>
|
|
113
|
-
<div id="properties-content" role={seoFields.length ? "tabpanel" : undefined} aria-labelledby={seoFields.length ? "properties-tab-content" : undefined} hidden={tab !== "content"}>
|
|
114
112
|
{#if creating}
|
|
115
113
|
<p class="panel-note">{$t("fields.newPageNotice")}</p>
|
|
116
114
|
{/if}
|
package/src/editor/styles.css
CHANGED
|
@@ -1288,7 +1288,10 @@
|
|
|
1288
1288
|
.rigel .select-empty { margin: 0; padding: 0.5rem; color: var(--text-2); }
|
|
1289
1289
|
.rigel .add-section .custom-select { flex: 1; }
|
|
1290
1290
|
@media (max-width: 767px) { .rigel .select-option { min-height: 2.75rem; } }
|
|
1291
|
-
.rigel .
|
|
1291
|
+
.rigel .schema-panel:has(> .panel-tabs) { scroll-padding-top: 4rem; }
|
|
1292
|
+
.rigel .schema-panel .block-editor > .body-toolbar:not(.image-toolbar) { position: static; }
|
|
1293
|
+
.rigel .schema-panel > .panel-tabs { position: sticky; top: 0; z-index: 10; padding-top: 0.5rem; margin-top: -0.5rem; background: var(--panel); }
|
|
1294
|
+
.rigel .schema-panel > .panel-tabs::before { content: ""; position: absolute; inset: -1rem -1rem 0; z-index: -1; background: var(--panel); }
|
|
1292
1295
|
.rigel .panel-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border-control); }
|
|
1293
1296
|
.rigel .panel-tabs button { flex: 1; padding: 0.5rem 0.75rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-2); font: inherit; font-size: 0.8125rem; cursor: pointer; }
|
|
1294
1297
|
.rigel .panel-tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
|
|
@@ -31,7 +31,6 @@ export function navigationKey(target: Selection): string {
|
|
|
31
31
|
export function buildSidebar(manifest: Manifest, message: Translator = systemMessage): SidebarNode[] {
|
|
32
32
|
const link = (target: SidebarTarget, label: string): SidebarLink => ({ kind: "link", target, label });
|
|
33
33
|
const types = manifest.schema?.documents ?? [];
|
|
34
|
-
const pageTypes = types.filter(type => !type.shared);
|
|
35
34
|
const pages = manifest.pages.filter(page => !page.shared);
|
|
36
35
|
const categories = [...new Set(pages.map(page => page.category).filter((category): category is string => !!category))].sort();
|
|
37
36
|
const defaults: SidebarNode[] = [
|
|
@@ -39,7 +38,6 @@ export function buildSidebar(manifest: Manifest, message: Translator = systemMes
|
|
|
39
38
|
link({ kind: "pages" }, message("system.sidebar.pages")),
|
|
40
39
|
...(manifest.collections ?? []).map(collection => link({ kind: "collection", name: collection.name }, collection.label)),
|
|
41
40
|
...categories.map(category => link({ kind: "pages", category }, category)),
|
|
42
|
-
...pageTypes.slice(1).map(type => link({ kind: "documents", type: type.name }, type.title)),
|
|
43
41
|
{ kind: "heading", label: message("system.sidebar.shared") },
|
|
44
42
|
...types.filter(type => type.shared && !type.singleton).map(type => link({ kind: "documents", type: type.name }, type.title)),
|
|
45
43
|
...manifest.pages.filter(page => page.shared).map(page => link({ kind: "page", slug: page.slug }, page.label)),
|