@webx-ui/module-blog 0.6.3 → 0.7.0

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/module.d.ts CHANGED
@@ -4,15 +4,16 @@ export interface BlogOptions {
4
4
  path?: string;
5
5
  }
6
6
  /**
7
- * The blog as sections of the panel: articles, rubrics and tags.
7
+ * The blog as sections of the panel: articles, rubrics, tags — and authors, where the site has
8
+ * author pages.
8
9
  *
9
- * Three modules rather than one, because the navigation is one entry per module and the blog
10
- * wants three of them; the server puts all three in the `blog` group, which is what draws them
11
- * under one heading. Each is returned separately so a panel can leave one out.
10
+ * Several modules rather than one, because the navigation is one entry per module and the blog
11
+ * wants several; the server puts them all in the `blog` group, which is what draws them under
12
+ * one heading. Each is returned separately so a panel can leave one out.
12
13
  *
13
14
  * A section whose server half is not installed never appears — the entry is built from the
14
15
  * manifest — and so does one whose front end is missing. That is what makes it safe to return
15
- * all three from one call: a panel that installed only part of the blog gets only that part.
16
+ * them all from one call: a panel that installed only part of the blog gets only that part.
16
17
  */
17
18
  /**
18
19
  * The rubrics as the panel's shared categories see them: where they answer, what they are edited
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .wx-article-editor[data-v-49f5a61d]{display:flex;flex-direction:column;gap:var(--wx-gap, var(--wx-space-16));height:100%;min-height:0;container-type:inline-size}.wx-article-editor__ghost[data-v-49f5a61d]{max-width:420px}.wx-article-editor__screen[data-v-49f5a61d]{display:flex;flex-direction:column;flex:1;min-height:0}.wx-article-editor__screen[data-v-49f5a61d] .wx-screen-host,.wx-article-editor__screen[data-v-49f5a61d] .wx-screen,.wx-article-editor__screen[data-v-49f5a61d] .wx-tabs,.wx-article-editor__screen[data-v-49f5a61d] .wx-tabs__layout,.wx-article-editor__screen[data-v-49f5a61d] .wx-tabs__panels,.wx-article-editor__screen[data-v-49f5a61d] .wx-tab:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0}.wx-article-history-tab[data-v-0052c4f9]{display:flex;flex-direction:column;gap:var(--wx-space-24)}.wx-article-history[data-v-0052c4f9]{display:flex;flex-direction:column;border:1px solid var(--wx-border-default);border-radius:var(--wx-radius-md);background:var(--wx-bg-surface);overflow:hidden}.wx-article-history__ghost[data-v-0052c4f9]{padding:var(--wx-space-10) var(--wx-space-12)}.wx-article-history__row[data-v-0052c4f9]{display:flex;align-items:center;gap:var(--wx-space-12);padding:var(--wx-space-10) var(--wx-space-12);border-block-end:1px solid var(--wx-border-default);flex-wrap:wrap}.wx-article-history__row[data-v-0052c4f9]:last-child{border-block-end:0}.wx-article-history__number[data-v-0052c4f9]{width:40px;font-family:var(--wx-font-family-mono);font-size:var(--wx-font-size-sm);color:var(--wx-text-muted)}.wx-article-history__who[data-v-0052c4f9]{display:flex;flex-direction:column;flex:1;min-width:160px}.wx-article-related[data-v-164e86fe]{display:flex;flex-direction:column;gap:var(--wx-space-8)}.wx-article-related__name[data-v-164e86fe]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wx-article-slug[data-v-5da20e5e]{display:flex;flex-direction:column;gap:var(--wx-space-8)}.wx-article-slug__prefix[data-v-5da20e5e],.wx-article-slug[data-v-5da20e5e] .wx-input__inner{font-family:var(--wx-font-family-mono)}.wx-article-slug__prefix[data-v-5da20e5e]{color:var(--wx-text-muted)}.wx-article-tags[data-v-faf5adec]{display:flex;flex-direction:column;gap:var(--wx-space-8)}.wx-article-tags__chips[data-v-faf5adec]{display:flex;flex-wrap:wrap;gap:var(--wx-space-6)}.wx-article-tags__pick[data-v-faf5adec]{display:flex;align-items:center;gap:var(--wx-space-8);flex-wrap:wrap}.wx-article-tags__pick[data-v-faf5adec]>.wx-select{flex:1 1 220px;min-width:0}.wx-article-unpublish[data-v-c311cff2] .wx-button{align-self:flex-start}.wx-articles[data-v-5dfe798a]{min-width:0}.wx-articles__cover[data-v-5dfe798a]{display:flex;align-items:center;justify-content:center;width:44px;height:32px;overflow:hidden;border-radius:var(--wx-radius-xs);background:var(--wx-bg-subtle);color:var(--wx-text-muted)}.wx-articles__cover.is-empty[data-v-5dfe798a]{border:1px dashed var(--wx-border-default);background:var(--wx-bg-surface)}.wx-articles__cover img[data-v-5dfe798a]{width:100%;height:100%;min-width:0;object-fit:cover}.wx-articles__name[data-v-5dfe798a]{display:flex;align-items:center;gap:var(--wx-space-8);min-width:0}.wx-articles__name-text[data-v-5dfe798a]{display:flex;flex-direction:column;min-width:0}.wx-articles__pin[data-v-5dfe798a]{flex:none;color:var(--wx-color-primary)}.wx-articles__title[data-v-5dfe798a]{overflow:hidden;font-weight:var(--wx-font-weight-medium);white-space:nowrap;text-overflow:ellipsis}.wx-articles__address[data-v-5dfe798a]{overflow:hidden;color:var(--wx-text-muted);font-family:var(--wx-font-family-mono);font-size:var(--wx-font-size-xs);white-space:nowrap;text-overflow:ellipsis}.wx-articles__chips[data-v-5dfe798a],.wx-articles__state[data-v-5dfe798a]{display:flex;align-items:center;gap:var(--wx-space-4);min-width:0;overflow:hidden}.wx-articles[data-v-5dfe798a] .wx-articles__when{white-space:nowrap}.wx-tag-merge[data-v-aa68b3a8]{display:flex;flex-direction:column;gap:var(--wx-space-12)}.wx-tag-merge__chips[data-v-aa68b3a8]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--wx-space-6);min-width:0}.wx-tag-merge__redirect[data-v-aa68b3a8]{display:flex;flex-direction:column;gap:var(--wx-space-2)}.wx-tags[data-v-d9b8d73d]{display:flex;flex-direction:column;gap:var(--wx-space-12);min-width:0}.wx-tags__rename[data-v-d9b8d73d]{display:block;min-width:0}.wx-tags__sort[data-v-d9b8d73d]{display:flex;gap:var(--wx-space-4);min-width:0}.wx-tags__name[data-v-d9b8d73d]{max-width:100%;overflow:hidden;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:start;text-overflow:ellipsis;white-space:nowrap;cursor:text}.wx-tags__name[data-v-d9b8d73d]:hover{text-decoration:underline;text-decoration-style:dotted}.wx-tags__bar[data-v-d9b8d73d] .wx-action-bar__state{flex:0 1 auto}
1
+ .wx-article-author[data-v-4b275a4c]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--wx-space-6);min-width:0}.wx-article-author[data-v-4b275a4c]>:first-child{align-self:stretch}.wx-article-author__profile[data-v-4b275a4c]{color:var(--wx-color-primary);font-size:var(--wx-font-size-sm)}.wx-article-editor[data-v-49f5a61d]{display:flex;flex-direction:column;gap:var(--wx-gap, var(--wx-space-16));height:100%;min-height:0;container-type:inline-size}.wx-article-editor__ghost[data-v-49f5a61d]{max-width:420px}.wx-article-editor__screen[data-v-49f5a61d]{display:flex;flex-direction:column;flex:1;min-height:0}.wx-article-editor__screen[data-v-49f5a61d] .wx-screen-host,.wx-article-editor__screen[data-v-49f5a61d] .wx-screen,.wx-article-editor__screen[data-v-49f5a61d] .wx-tabs,.wx-article-editor__screen[data-v-49f5a61d] .wx-tabs__layout,.wx-article-editor__screen[data-v-49f5a61d] .wx-tabs__panels,.wx-article-editor__screen[data-v-49f5a61d] .wx-tab:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0}.wx-article-history-tab[data-v-0052c4f9]{display:flex;flex-direction:column;gap:var(--wx-space-24)}.wx-article-history[data-v-0052c4f9]{display:flex;flex-direction:column;border:1px solid var(--wx-border-default);border-radius:var(--wx-radius-md);background:var(--wx-bg-surface);overflow:hidden}.wx-article-history__ghost[data-v-0052c4f9]{padding:var(--wx-space-10) var(--wx-space-12)}.wx-article-history__row[data-v-0052c4f9]{display:flex;align-items:center;gap:var(--wx-space-12);padding:var(--wx-space-10) var(--wx-space-12);border-block-end:1px solid var(--wx-border-default);flex-wrap:wrap}.wx-article-history__row[data-v-0052c4f9]:last-child{border-block-end:0}.wx-article-history__number[data-v-0052c4f9]{width:40px;font-family:var(--wx-font-family-mono);font-size:var(--wx-font-size-sm);color:var(--wx-text-muted)}.wx-article-history__who[data-v-0052c4f9]{display:flex;flex-direction:column;flex:1;min-width:160px}.wx-article-related[data-v-164e86fe]{display:flex;flex-direction:column;gap:var(--wx-space-8)}.wx-article-related__name[data-v-164e86fe]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wx-article-slug[data-v-5da20e5e]{display:flex;flex-direction:column;gap:var(--wx-space-8)}.wx-article-slug__prefix[data-v-5da20e5e],.wx-article-slug[data-v-5da20e5e] .wx-input__inner{font-family:var(--wx-font-family-mono)}.wx-article-slug__prefix[data-v-5da20e5e]{color:var(--wx-text-muted)}.wx-article-tags[data-v-faf5adec]{display:flex;flex-direction:column;gap:var(--wx-space-8)}.wx-article-tags__chips[data-v-faf5adec]{display:flex;flex-wrap:wrap;gap:var(--wx-space-6)}.wx-article-tags__pick[data-v-faf5adec]{display:flex;align-items:center;gap:var(--wx-space-8);flex-wrap:wrap}.wx-article-tags__pick[data-v-faf5adec]>.wx-select{flex:1 1 220px;min-width:0}.wx-article-unpublish[data-v-c311cff2] .wx-button{align-self:flex-start}.wx-articles[data-v-5dfe798a]{min-width:0}.wx-articles__cover[data-v-5dfe798a]{display:flex;align-items:center;justify-content:center;width:44px;height:32px;overflow:hidden;border-radius:var(--wx-radius-xs);background:var(--wx-bg-subtle);color:var(--wx-text-muted)}.wx-articles__cover.is-empty[data-v-5dfe798a]{border:1px dashed var(--wx-border-default);background:var(--wx-bg-surface)}.wx-articles__cover img[data-v-5dfe798a]{width:100%;height:100%;min-width:0;object-fit:cover}.wx-articles__name[data-v-5dfe798a]{display:flex;align-items:center;gap:var(--wx-space-8);min-width:0}.wx-articles__name-text[data-v-5dfe798a]{display:flex;flex-direction:column;min-width:0}.wx-articles__pin[data-v-5dfe798a]{flex:none;color:var(--wx-color-primary)}.wx-articles__title[data-v-5dfe798a]{overflow:hidden;font-weight:var(--wx-font-weight-medium);white-space:nowrap;text-overflow:ellipsis}.wx-articles__address[data-v-5dfe798a]{overflow:hidden;color:var(--wx-text-muted);font-family:var(--wx-font-family-mono);font-size:var(--wx-font-size-xs);white-space:nowrap;text-overflow:ellipsis}.wx-articles__chips[data-v-5dfe798a],.wx-articles__state[data-v-5dfe798a]{display:flex;align-items:center;gap:var(--wx-space-4);min-width:0;overflow:hidden}.wx-articles[data-v-5dfe798a] .wx-articles__when{white-space:nowrap}.wx-author[data-v-60f7aa2e]{display:flex;flex-direction:column;gap:var(--wx-gap, var(--wx-space-16));min-width:0;padding:var(--wx-gap, var(--wx-space-16));container-type:inline-size}.wx-author__ghost[data-v-60f7aa2e]{max-width:480px}.wx-author__account[data-v-60f7aa2e]{margin:0;color:var(--wx-text-muted);font-size:var(--wx-font-size-sm)}.wx-authors>.wx-card__body{display:flex;flex-direction:column;overflow:clip;border-radius:inherit}.wx-authors__bar[data-v-b0022a2f]{display:flex;gap:var(--wx-space-8);padding:var(--wx-space-12) var(--wx-space-12) var(--wx-space-8)}.wx-authors__search[data-v-b0022a2f]{flex:1 1 180px;min-width:0}.wx-authors__new[data-v-b0022a2f]{display:flex;align-items:center;gap:var(--wx-space-8);width:calc(100% - 2 * var(--wx-space-8));margin:0 var(--wx-space-8) var(--wx-space-4);padding:var(--wx-space-8);border:1px dashed var(--wx-border-default);border-radius:var(--wx-radius-sm);background:none;font:inherit;color:var(--wx-color-primary);text-align:start;cursor:pointer}.wx-authors__new[data-v-b0022a2f]:hover,.wx-authors__new.is-current[data-v-b0022a2f]{background:var(--wx-bg-subtle)}.wx-authors__loading[data-v-b0022a2f]{padding:var(--wx-space-12)}.wx-authors__list[data-v-b0022a2f]{margin:0;padding:0 var(--wx-space-8) var(--wx-space-8);list-style:none}.wx-authors__list.is-loading[data-v-b0022a2f]{opacity:.6}.wx-author-row[data-v-b0022a2f]{display:flex;align-items:flex-start;gap:var(--wx-space-10);width:100%;min-width:0;padding:var(--wx-space-8) var(--wx-space-4);border:0;border-radius:var(--wx-radius-sm);background:none;font:inherit;color:inherit;text-align:start;cursor:pointer}.wx-author-row[data-v-b0022a2f]:hover,.wx-author-row.is-current[data-v-b0022a2f]{background:var(--wx-bg-subtle)}.wx-author-row__photo[data-v-b0022a2f]{flex:none}.wx-author-row__body[data-v-b0022a2f]{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--wx-space-2);min-width:0}.wx-author-row__name[data-v-b0022a2f]{min-width:0;overflow:hidden;font-weight:var(--wx-font-weight-medium);text-overflow:ellipsis;white-space:nowrap}.wx-author-row.is-current .wx-author-row__name[data-v-b0022a2f]{color:var(--wx-color-primary)}.wx-author-row__meta[data-v-b0022a2f]{display:flex;flex-wrap:wrap;gap:var(--wx-space-2) var(--wx-space-8);color:var(--wx-text-muted);font-size:var(--wx-font-size-sm)}.wx-author-row__facts[data-v-b0022a2f]{display:flex;margin-top:var(--wx-space-2)}.wx-tag-merge[data-v-aa68b3a8]{display:flex;flex-direction:column;gap:var(--wx-space-12)}.wx-tag-merge__chips[data-v-aa68b3a8]{display:flex;flex-wrap:wrap;align-items:center;gap:var(--wx-space-6);min-width:0}.wx-tag-merge__redirect[data-v-aa68b3a8]{display:flex;flex-direction:column;gap:var(--wx-space-2)}.wx-tags[data-v-d9b8d73d]{display:flex;flex-direction:column;gap:var(--wx-space-12);min-width:0}.wx-tags__rename[data-v-d9b8d73d]{display:block;min-width:0}.wx-tags__sort[data-v-d9b8d73d]{display:flex;gap:var(--wx-space-4);min-width:0}.wx-tags__name[data-v-d9b8d73d]{max-width:100%;overflow:hidden;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:start;text-overflow:ellipsis;white-space:nowrap;cursor:text}.wx-tags__name[data-v-d9b8d73d]:hover{text-decoration:underline;text-decoration-style:dotted}.wx-tags__bar[data-v-d9b8d73d] .wx-action-bar__state{flex:0 1 auto}
package/dist/types.d.ts CHANGED
@@ -134,6 +134,8 @@ export interface ArticleVersion {
134
134
  export interface ArticleOption {
135
135
  id: number;
136
136
  title: string;
137
+ /** An administrator's author profile, where the site has author pages (§19.5). */
138
+ profile?: number | null;
137
139
  }
138
140
  /** A tag as the article form offers it, with the number of articles filed under it (§10). */
139
141
  export interface BlogTag {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webx-ui/module-blog",
3
- "version": "0.6.3",
3
+ "version": "0.7.0",
4
4
  "description": "Blog for the WebX UI admin panel: articles made of blocks, rubrics and tags, scheduled publication.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -43,10 +43,10 @@
43
43
  "vue-router": "^4.5.0"
44
44
  },
45
45
  "dependencies": {
46
- "@webx-ui/core": "^0.40.2",
47
- "@webx-ui/module-admin": "^0.26.0",
48
- "@webx-ui/module-blocks": "^0.15.0",
49
- "@webx-ui/schema": "^0.9.0"
46
+ "@webx-ui/core": "^0.41.0",
47
+ "@webx-ui/module-admin": "^0.26.1",
48
+ "@webx-ui/module-blocks": "^0.16.0",
49
+ "@webx-ui/schema": "^0.9.1"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/node": "^24.10.1",