@crombolo/backoffice-host 0.62.0 → 0.64.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.
@@ -2,7 +2,7 @@
2
2
  "$schema": "../../../backoffice-dist/dist/umbraco-package-schema.json",
3
3
  "name": "Crombolo Localizations",
4
4
  "id": "Crombolo.Localizations",
5
- "version": "0.62.0",
5
+ "version": "0.64.0",
6
6
  "allowPublicAccess": true,
7
7
  "extensions": [
8
8
  {
@@ -11,7 +11,15 @@ import { css, html, nothing } from '@umbraco-cms/backoffice/external/lit'
11
11
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element'
12
12
  import { umbOpenModal } from '@umbraco-cms/backoffice/modal'
13
13
  import { UMB_SYSINFO_MODAL, UmbSysinfoRepository } from '@umbraco-cms/backoffice/sysinfo'
14
- import { activityLine, ago, avatarHue, firstName, initials, STATES } from './overview-format.js'
14
+ import {
15
+ activityLine,
16
+ ago,
17
+ avatarHue,
18
+ contentModeOf,
19
+ firstName,
20
+ initials,
21
+ STATES,
22
+ } from './overview-format.js'
15
23
 
16
24
  const base = () =>
17
25
  (document.querySelector('base')?.getAttribute('href') ?? '/umbraco/').replace(/\/$/, '')
@@ -146,8 +154,8 @@ export default class CromboloOverviewDashboardElement extends UmbLitElement {
146
154
  <dl class="system">
147
155
  <dt>Version</dt>
148
156
  <dd>${this._server?.version ?? '…'}</dd>
149
- <dt>Mode</dt>
150
- <dd>${this._server?.runtimeMode ?? '…'}</dd>
157
+ <dt>Content mode</dt>
158
+ <dd>${contentModeOf(this._server?.runtimeMode)}</dd>
151
159
  </dl>
152
160
  <div class="system-links">
153
161
  <a href="https://github.com/kineco-au/crombolo-cms" target="_blank" rel="noopener">
@@ -69,3 +69,16 @@ export function avatarHue(name) {
69
69
  for (const char of String(name ?? '')) hash = (hash * 31 + char.codePointAt(0)) >>> 0
70
70
  return hash % AVATAR_HUES
71
71
  }
72
+
73
+ /**
74
+ * The site's content mode in words (story 343), from the runtime mode the back
75
+ * office is told: Umbraco's `Production` when templates, stylesheets and scripts
76
+ * are locked, development otherwise.
77
+ *
78
+ * @param {string | undefined} runtimeMode
79
+ * @returns {string}
80
+ */
81
+ export function contentModeOf(runtimeMode) {
82
+ if (!runtimeMode) return '…'
83
+ return runtimeMode === 'Production' ? 'Production' : 'Development'
84
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Settings → Schema's calls (story 342): the waiting import, an upload, and
3
+ * applying or discarding it. The cookie carries the session.
4
+ */
5
+
6
+ const base = () =>
7
+ `${(document.querySelector('base')?.getAttribute('href') ?? '/umbraco/').replace(/\/$/, '')}/crombolo/api/schema-transfer`
8
+
9
+ export const exportUrl = () => `${base()}/export`
10
+
11
+ async function call(path, init = {}) {
12
+ const response = await fetch(`${base()}${path}`, {
13
+ credentials: 'include',
14
+ ...init,
15
+ headers: { accept: 'application/json', ...(init.headers ?? {}) },
16
+ })
17
+ const body = await response.json().catch(() => ({}))
18
+ if (!response.ok)
19
+ return {
20
+ ok: false,
21
+ message: body.message ?? `The schema import answered ${response.status}.`,
22
+ problems: body.problems ?? [],
23
+ }
24
+ return { ok: true, ...body }
25
+ }
26
+
27
+ /** The import waiting for approval, if any, and whether this site takes imports. */
28
+ export const fetchPending = () => call('/import')
29
+
30
+ /** Sends a file to be checked and held for approval. */
31
+ export const uploadSchema = (file) =>
32
+ call(`/import?name=${encodeURIComponent(file.name)}`, {
33
+ method: 'POST',
34
+ headers: { 'content-type': 'application/octet-stream' },
35
+ body: file,
36
+ })
37
+
38
+ export const applyImport = () => call('/import/apply', { method: 'POST' })
39
+
40
+ export const discardImport = () => call('/import', { method: 'DELETE' })
@@ -0,0 +1,50 @@
1
+ /**
2
+ * The words of Settings → Schema and of a schema import waiting on the Changes
3
+ * dashboard (story 342). Pure, so the unit tests read it outside a browser.
4
+ */
5
+
6
+ const plural = (count, one, many) => `${count} ${count === 1 ? one : many}`
7
+
8
+ /**
9
+ * What an import brings, in a phrase: "2 new files and 1 changed file".
10
+ *
11
+ * @param {{ added?: string[], changed?: string[] }} change
12
+ * @returns {string}
13
+ */
14
+ export function describeImport({ added = [], changed = [] }) {
15
+ const parts = []
16
+ if (added.length > 0) parts.push(plural(added.length, 'new file', 'new files'))
17
+ if (changed.length > 0) parts.push(plural(changed.length, 'changed file', 'changed files'))
18
+ return parts.join(' and ') || 'no files'
19
+ }
20
+
21
+ /** What a folder in the schema holds, in words, for the list of files an import brings. */
22
+ const FOLDER = {
23
+ 'content-types': 'Document type',
24
+ 'media-types': 'Media type',
25
+ 'member-types': 'Member type',
26
+ 'data-types': 'Data type',
27
+ forms: 'Form',
28
+ workflows: 'Approval workflow',
29
+ 'user-groups': 'User group',
30
+ webhooks: 'Webhook',
31
+ }
32
+
33
+ /**
34
+ * A file an import brings, as what it is and its name.
35
+ *
36
+ * @param {string} path
37
+ * @returns {{ kind: string, name: string }}
38
+ */
39
+ export function describeFile(path) {
40
+ const [folder = '', ...rest] = path.split('/')
41
+ if (rest.length === 0)
42
+ return {
43
+ kind: folder === 'languages.toml' ? 'Languages' : 'Schema version',
44
+ name: folder,
45
+ }
46
+ return { kind: FOLDER[folder] ?? folder, name: rest.join('/').replace(/\.toml$/, '') }
47
+ }
48
+
49
+ /** The files an upload may be. */
50
+ export const ACCEPT = '.zip,.toml'
@@ -0,0 +1,166 @@
1
+ /**
2
+ * Settings → Schema (story 342): the site's types and definitions downloaded
3
+ * as TOML, and schema files uploaded to wait for approval on the Changes
4
+ * dashboard. Administrators only.
5
+ */
6
+
7
+ import { css, html, nothing } from '@umbraco-cms/backoffice/external/lit'
8
+ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element'
9
+ import { downloadFile } from './download.js'
10
+ import { exportUrl, fetchPending, uploadSchema } from './schema-transfer-client.js'
11
+ import { ACCEPT, describeImport } from './schema-transfer-words.js'
12
+
13
+ const changesPath = () =>
14
+ `${(document.querySelector('base')?.getAttribute('href') ?? '/umbraco/').replace(/\/$/, '')}/section/settings/dashboard/changes`
15
+
16
+ export default class CromboloSchemaTransferElement extends UmbLitElement {
17
+ static properties = {
18
+ _state: { state: true },
19
+ _problem: { state: true },
20
+ _problems: { state: true },
21
+ _busy: { state: true },
22
+ }
23
+
24
+ constructor() {
25
+ super()
26
+ this._state = undefined
27
+ this._problem = ''
28
+ this._problems = []
29
+ this._busy = false
30
+ }
31
+
32
+ connectedCallback() {
33
+ super.connectedCallback()
34
+ this.#load()
35
+ }
36
+
37
+ async #load() {
38
+ const result = await fetchPending()
39
+ if (result.ok) this._state = { pending: result.pending, writable: result.writable }
40
+ else {
41
+ this._problem = result.message
42
+ this._state ??= { pending: null, writable: false }
43
+ }
44
+ }
45
+
46
+ async #export() {
47
+ this._problem = ''
48
+ try {
49
+ await downloadFile(exportUrl(), 'schema.zip')
50
+ } catch (error) {
51
+ this._problem = error.message
52
+ }
53
+ }
54
+
55
+ async #upload(event) {
56
+ const file = event.target.files?.[0]
57
+ event.target.value = ''
58
+ if (!file) return
59
+ this._busy = true
60
+ this._problem = ''
61
+ this._problems = []
62
+ try {
63
+ const result = await uploadSchema(file)
64
+ if (!result.ok) {
65
+ this._problem = result.message
66
+ this._problems = result.problems ?? []
67
+ }
68
+ await this.#load()
69
+ } finally {
70
+ this._busy = false
71
+ }
72
+ }
73
+
74
+ #pending() {
75
+ const pending = this._state?.pending
76
+ if (!pending) return nothing
77
+ return html`<div class="pending" role="status">
78
+ <uui-icon name=${pending.blocked ? 'icon-alert' : 'icon-time'}></uui-icon>
79
+ <div>
80
+ <strong>${pending.fileName}</strong> is waiting for approval: ${describeImport(pending)}.
81
+ ${
82
+ pending.blocked
83
+ ? html`Something stops it from being applied.`
84
+ : html`Nothing changes until it is applied.`
85
+ }
86
+ <a href=${changesPath()}>Review it on the Changes dashboard</a>
87
+ </div>
88
+ </div>`
89
+ }
90
+
91
+ render() {
92
+ const state = this._state
93
+ if (!state) return html`<uui-loader></uui-loader>`
94
+ return html`
95
+ <uui-box headline="Export">
96
+ <p>
97
+ Download this site's document, media and member types, data types, languages, forms,
98
+ approval workflows, user groups and webhooks, as the files the site keeps them in.
99
+ </p>
100
+ <uui-button look="primary" label="Download the schema" @click=${() => this.#export()}></uui-button>
101
+ </uui-box>
102
+ <uui-box headline="Import">
103
+ ${
104
+ state.writable
105
+ ? html`<p>
106
+ Upload a schema downloaded from another site, as a zip or a single file. It is
107
+ checked against this site and waits on the Changes dashboard until an administrator
108
+ applies it.
109
+ </p>
110
+ ${this.#pending()}
111
+ <label class="upload">
112
+ <uui-button
113
+ look="secondary"
114
+ label=${state.pending ? 'Upload instead' : 'Upload a schema'}
115
+ ?disabled=${this._busy}
116
+ @click=${() => this.renderRoot.querySelector('input[type=file]')?.click()}
117
+ ></uui-button>
118
+ <input type="file" accept=${ACCEPT} hidden @change=${(event) => this.#upload(event)} />
119
+ </label>
120
+ ${state.pending ? html`<p class="note">A new upload replaces the one waiting.</p>` : nothing}`
121
+ : html`<p class="note">
122
+ This site's schema changes only when the site is deployed, so it can't be imported here.
123
+ </p>`
124
+ }
125
+ ${this._busy ? html`<uui-loader-bar></uui-loader-bar>` : nothing}
126
+ ${this._problem ? html`<p class="problem" role="alert">${this._problem}</p>` : nothing}
127
+ ${
128
+ this._problems.length > 0
129
+ ? html`<ul class="problems">${this._problems.map((p) => html`<li>${p}</li>`)}</ul>`
130
+ : nothing
131
+ }
132
+ </uui-box>
133
+ `
134
+ }
135
+
136
+ static styles = css`
137
+ :host {
138
+ display: grid;
139
+ gap: var(--uui-size-layout-1);
140
+ padding: var(--uui-size-layout-1);
141
+ max-width: 72rem;
142
+ }
143
+ .pending {
144
+ display: flex;
145
+ gap: var(--uui-size-space-3);
146
+ align-items: flex-start;
147
+ padding: var(--uui-size-space-4);
148
+ margin-bottom: var(--uui-size-space-4);
149
+ border-radius: var(--uui-border-radius);
150
+ background: var(--uui-color-surface-alt);
151
+ }
152
+ .note {
153
+ color: var(--uui-color-text-alt);
154
+ }
155
+ .problem {
156
+ color: var(--uui-color-danger);
157
+ }
158
+ .problems {
159
+ margin: 0;
160
+ font-family: var(--uui-font-monospace, monospace);
161
+ font-size: var(--uui-type-small-size);
162
+ }
163
+ `
164
+ }
165
+
166
+ customElements.define('crombolo-schema-transfer', CromboloSchemaTransferElement)
@@ -2,7 +2,7 @@
2
2
  "$schema": "../../../backoffice-dist/dist/umbraco-package-schema.json",
3
3
  "name": "Crombolo Search & sharing",
4
4
  "id": "Crombolo.Seo",
5
- "version": "0.62.0",
5
+ "version": "0.64.0",
6
6
  "allowPublicAccess": false,
7
7
  "extensions": [
8
8
  {
@@ -6,11 +6,17 @@ import { css, html, nothing } from '@umbraco-cms/backoffice/external/lit'
6
6
  import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element'
7
7
 
8
8
  export class CromboloSettingsCardElement extends UmbLitElement {
9
- static properties = { href: {}, heading: {}, description: {} }
9
+ static properties = { href: {}, heading: {}, description: {}, warning: {} }
10
10
 
11
11
  render() {
12
12
  return html`<a href=${this.href}>
13
- <strong>${this.heading}</strong>
13
+ <strong
14
+ >${this.heading}${
15
+ this.warning
16
+ ? html`<uui-icon name="icon-alert" title=${this.warning} aria-label=${this.warning}></uui-icon>`
17
+ : nothing
18
+ }</strong
19
+ >
14
20
  ${this.description ? html`<span>${this.description}</span>` : nothing}
15
21
  </a>`
16
22
  }
@@ -41,11 +47,19 @@ export class CromboloSettingsCardElement extends UmbLitElement {
41
47
  outline-offset: 2px;
42
48
  }
43
49
  strong {
50
+ display: flex;
51
+ align-items: center;
52
+ justify-content: space-between;
53
+ gap: var(--uui-size-space-3);
44
54
  padding: var(--uui-size-space-4) var(--uui-size-space-5);
45
55
  background: var(--crombolo-card-header-background, var(--uui-color-header-surface));
46
56
  color: var(--crombolo-card-header-text, var(--uui-color-header-contrast-emphasis));
47
57
  font-weight: 700;
48
58
  }
59
+ strong uui-icon {
60
+ flex: none;
61
+ color: var(--uui-color-warning-standalone, var(--uui-color-warning));
62
+ }
49
63
  span {
50
64
  padding: var(--uui-size-space-4) var(--uui-size-space-5) var(--uui-size-space-5);
51
65
  color: var(--uui-color-text-alt);
@@ -17,91 +17,92 @@ export const GROUPS = ['Site', 'Health', 'History', 'Developers', 'Extensions',
17
17
 
18
18
  /** Our words for each tool, by the alias of its dashboard or menu item. */
19
19
  export const CARDS = {
20
- 'Crombolo.Dashboard.Seo': {
21
- group: 'Site',
22
- title: 'Search',
23
- description:
24
- 'What pages say in search results and when shared, the robots file, and the search indexes.',
25
- },
26
- 'Crombolo.Dashboard.Addresses': {
20
+ 'Crombolo.Dashboard.ContentSettings': {
27
21
  group: 'Site',
28
- title: 'Page addresses',
29
- description: "Whether the top-level page's name is part of every address below it.",
22
+ title: 'Content settings',
23
+ description: 'Page URL settings, redirects, and content relations',
30
24
  },
31
- 'Umb.Dashboard.RedirectManagement': {
25
+ 'Crombolo.Dashboard.Seo': {
32
26
  group: 'Site',
33
- title: 'Redirects',
34
- description: "Configure the site's redirect rules.",
27
+ title: 'Search',
28
+ description: 'Site and page search index settings',
35
29
  },
36
30
  'Umb.MenuItem.Webhook': {
37
31
  group: 'Site',
38
32
  title: 'Webhooks',
39
- description: 'Tell other systems when content changes.',
33
+ description: 'Tell other systems when content changes',
34
+ },
35
+ 'Crombolo.Dashboard.Email': {
36
+ group: 'Site',
37
+ title: 'E-mail',
38
+ description: 'The site email provider settings',
40
39
  },
41
40
  'Umb.MenuItem.LogViewer': {
42
41
  group: 'Site',
43
42
  title: 'Logs',
44
- description: 'Search and read what the server has logged.',
43
+ description: 'Search and read what the server has logged',
45
44
  },
46
45
  'Crombolo.Dashboard.BackgroundJobs': {
47
46
  group: 'Site',
48
47
  title: 'Background jobs',
49
- description: 'Scheduled and queued work, how far each got, and running a failed one again.',
50
- },
51
- 'Umb.MenuItem.Relations': {
52
- group: 'Site',
53
- title: 'Relations',
54
- description: 'How items point at each other, such as a copy and its original.',
48
+ description: 'View scheduled and queued tasks',
55
49
  },
56
50
  'Umb.Dashboard.HealthCheck': {
57
51
  group: 'Health',
58
- title: 'Health check',
59
- description: "Checks on the site's setup and data, with a fix where there is one.",
52
+ title: 'Service status',
53
+ description: 'Run site service health checks',
60
54
  },
61
55
  'Umb.Dashboard.PublishedStatus': {
62
56
  group: 'Health',
63
- title: 'Published status',
64
- description: 'The published cache visitors are served from, and rebuilding it.',
57
+ title: 'Caching',
58
+ description: 'The published cache visitors are served from, and rebuilding it',
65
59
  },
66
60
  'Crombolo.Dashboard.Changes': {
67
61
  group: 'History',
68
62
  title: 'Changes',
69
- description: 'What an upgrade or an arriving bundle needs from you, and what is resolved.',
63
+ description: 'View or approve system changes',
70
64
  },
71
65
  'Crombolo.Dashboard.AuditLog': {
72
66
  group: 'History',
73
67
  title: 'Audit log',
74
- description: 'Who did what, when and from where.',
68
+ description: 'Who did what, when and from where',
75
69
  },
76
70
  // Story 238: a developer's view of what is loaded, apart from installing bundles.
77
71
  'Umb.MenuItem.Extensions': {
78
72
  group: 'Developers',
79
73
  title: 'Extension insights',
80
- description: 'What the back office has loaded, and from which extension.',
74
+ description: 'What the back office has loaded, and from which extension',
81
75
  },
82
76
  'Crombolo.Dashboard.CiAccess': {
83
77
  group: 'Developers',
84
- title: 'CI access',
85
- description: 'The CI jobs that may pull and push here without a person, and what each may do.',
78
+ title: 'Deployment pipelines',
79
+ description: 'The deployment pipelines trusted to deploy to this site',
86
80
  },
87
81
  'Crombolo.Dashboard.TrustedSigners': {
88
82
  group: 'Developers',
89
83
  title: 'Trusted signers',
90
84
  description:
91
- 'The keys and builds whose site bundles this site applies: yours, other sites, and CI.',
85
+ 'The keys and builds whose site bundles this site applies: yours, other sites, and CI',
92
86
  },
93
- 'Umb.Dashboard.ModelsBuilder': {
87
+ 'Crombolo.Dashboard.Schema': {
94
88
  group: 'Developers',
95
- title: 'Types for code',
96
- description: 'The TypeScript types written from the schema, and whether they are out of date.',
89
+ title: 'Schema',
90
+ description: 'Import or export the model data types',
97
91
  },
98
92
  'Crombolo.Dashboard.Bundles': {
99
93
  group: 'Extensions',
100
94
  title: 'Extensions',
101
- description: 'Find, install and build extensions: what they add, and turning them off.',
95
+ description: 'Find, install and build extensions',
102
96
  },
103
97
  }
104
98
 
99
+ /** Tools shown as tabs of the Content settings card, not as cards of their own. */
100
+ export const IN_CONTENT_SETTINGS = new Set([
101
+ 'Crombolo.Dashboard.Addresses',
102
+ 'Umb.Dashboard.RedirectManagement',
103
+ 'Umb.MenuItem.Relations',
104
+ ])
105
+
105
106
  /**
106
107
  * The landing page's groups, in order, each with its cards in the order above.
107
108
  * `dashboards` are `{ alias, label, description?, bundle?, path }`; `advanced`
@@ -118,7 +119,7 @@ export const CARDS = {
118
119
  */
119
120
  export function settingsCards({ dashboards = [], advanced = [] }) {
120
121
  const found = []
121
- for (const d of dashboards)
122
+ for (const d of dashboards.filter((d) => !IN_CONTENT_SETTINGS.has(d.alias)))
122
123
  found.push({
123
124
  alias: d.alias,
124
125
  label: d.label,
@@ -126,7 +127,7 @@ export function settingsCards({ dashboards = [], advanced = [] }) {
126
127
  bundle: d.bundle,
127
128
  path: d.path,
128
129
  })
129
- for (const item of advanced)
130
+ for (const item of advanced.filter((item) => !IN_CONTENT_SETTINGS.has(item.alias)))
130
131
  found.push({
131
132
  alias: item.alias,
132
133
  label: item.label,
@@ -147,7 +148,7 @@ export function settingsCards({ dashboards = [], advanced = [] }) {
147
148
  group: card.bundle?.name ?? 'Other',
148
149
  bundle: card.bundle,
149
150
  title: card.label ?? card.alias,
150
- description: card.description,
151
+ description: card.description?.replace(/\.$/, ''),
151
152
  }
152
153
  })
153
154
  .sort((a, b) => rank(order, a.alias) - rank(order, b.alias))
@@ -34,6 +34,7 @@ import './breadcrumb.js'
34
34
  import './settings-title.js'
35
35
  import { readOnlyWords } from './definition-tree-model.js'
36
36
  import './settings-card.js'
37
+ import { needsAttention } from './email-settings-words.js'
37
38
 
38
39
  const base = () =>
39
40
  (document.querySelector('base')?.getAttribute('href') ?? '/umbraco/').replace(/\/$/, '')
@@ -420,7 +421,7 @@ export class CromboloSettingsSectionElement extends UmbLitElement {
420
421
  ]
421
422
  }
422
423
 
423
- /** The landing page: a box of cards per group, and e-mail when it is not set up. */
424
+ /** The landing page: a box of cards per group, E-mail's marked while it is not set up. */
424
425
  export class CromboloSettingsLandingElement extends UmbLitElement {
425
426
  static properties = { groups: { attribute: false }, _email: { state: true } }
426
427
 
@@ -435,32 +436,8 @@ export class CromboloSettingsLandingElement extends UmbLitElement {
435
436
  )
436
437
  }
437
438
 
438
- #email() {
439
- const status = this._email
440
- if (!status || status.available) return nothing
441
- return html`<details class="banner" role="status">
442
- <summary>
443
- <uui-icon name="icon-alert"></uui-icon>
444
- <strong>E-mail is not set up.</strong>
445
- <uui-icon class="chevron" name="icon-navigation-right"></uui-icon>
446
- </summary>
447
- <div class="banner-details">
448
- <p>${status.reason}</p>
449
- ${
450
- status.affects?.length > 0
451
- ? html`<p>Until it is, these are unavailable:</p>
452
- <ul class="affected">
453
- ${status.affects.map((feature) => html`<li>${feature}</li>`)}
454
- </ul>`
455
- : nothing
456
- }
457
- </div>
458
- </details>`
459
- }
460
-
461
439
  render() {
462
440
  return html`
463
- ${this.#email()}
464
441
  ${(this.groups ?? []).map(
465
442
  ({ group, bundle, cards }) => html`<section>
466
443
  <h2>
@@ -480,6 +457,11 @@ export class CromboloSettingsLandingElement extends UmbLitElement {
480
457
  href=${`section/settings/${card.path}`}
481
458
  heading=${card.title}
482
459
  description=${card.description ?? ''}
460
+ warning=${
461
+ card.alias === 'Crombolo.Dashboard.Email' && needsAttention(this._email)
462
+ ? 'E-mail is not set up'
463
+ : nothing
464
+ }
483
465
  ></crombolo-settings-card>`,
484
466
  )}
485
467
  </div>
@@ -527,68 +509,6 @@ export class CromboloSettingsLandingElement extends UmbLitElement {
527
509
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
528
510
  gap: var(--uui-size-space-5);
529
511
  }
530
- .banner {
531
- margin-bottom: var(--uui-size-layout-1);
532
- padding: var(--uui-size-space-4) var(--uui-size-space-5);
533
- border: 1px solid color-mix(in srgb, var(--uui-color-warning) 45%, transparent);
534
- border-left-width: 4px;
535
- border-radius: 8px;
536
- background: color-mix(in srgb, var(--uui-color-warning) 12%, var(--uui-color-surface));
537
- color: var(--uui-color-text);
538
- }
539
- .banner summary {
540
- display: flex;
541
- gap: var(--uui-size-space-4);
542
- align-items: center;
543
- cursor: pointer;
544
- list-style: none;
545
- }
546
- .banner summary::-webkit-details-marker {
547
- display: none;
548
- }
549
- .banner summary:focus-visible {
550
- outline: 2px solid var(--uui-color-focus);
551
- outline-offset: 2px;
552
- }
553
- .banner uui-icon {
554
- flex: none;
555
- color: var(--uui-color-warning-standalone, var(--uui-color-warning));
556
- }
557
- .banner .chevron {
558
- margin-left: auto;
559
- transition: transform 120ms;
560
- }
561
- .banner[open] .chevron {
562
- transform: rotate(90deg);
563
- }
564
- .banner-details {
565
- margin-top: var(--uui-size-space-3);
566
- padding-left: calc(1em + var(--uui-size-space-4));
567
- }
568
- .banner p {
569
- margin: 0 0 var(--uui-size-space-2);
570
- line-height: 1.5;
571
- }
572
- .affected {
573
- margin: 0;
574
- padding: 0;
575
- list-style: none;
576
- }
577
- .affected li {
578
- position: relative;
579
- padding-left: var(--uui-size-space-5);
580
- line-height: 1.6;
581
- }
582
- .affected li::before {
583
- content: '';
584
- position: absolute;
585
- left: 0.2em;
586
- top: 0.6em;
587
- width: 0.45em;
588
- height: 0.45em;
589
- border-radius: 50%;
590
- background: var(--uui-color-warning-standalone, var(--uui-color-warning));
591
- }
592
512
  `,
593
513
  ]
594
514
  }
@@ -2,7 +2,7 @@
2
2
  "$schema": "../../../backoffice-dist/dist/umbraco-package-schema.json",
3
3
  "name": "Crombolo Sign-in Dialog",
4
4
  "id": "Crombolo.SignInDialog",
5
- "version": "0.62.0",
5
+ "version": "0.64.0",
6
6
  "allowPublicAccess": true,
7
7
  "extensions": [
8
8
  {