@cogenta/theme-entreprise 1.4.0 → 1.4.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/dist/src/render/blocks/embed.d.ts.map +1 -1
- package/dist/src/render/blocks/embed.js +3 -3
- package/dist/src/render/blocks/embed.js.map +1 -1
- package/dist/src/render/term-archive.d.ts.map +1 -1
- package/dist/src/render/term-archive.js +2 -2
- package/dist/src/render/term-archive.js.map +1 -1
- package/package.json +4 -4
- package/src/render/blocks/embed.ts +10 -2
- package/src/render/term-archive.ts +2 -1
- package/src/styles/base.css +48 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed.d.ts","sourceRoot":"","sources":["../../../../src/render/blocks/embed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,
|
|
1
|
+
{"version":3,"file":"embed.d.ts","sourceRoot":"","sources":["../../../../src/render/blocks/embed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAGL,KAAK,WAAW,EAEhB,KAAK,aAAa,EAEnB,MAAM,oBAAoB,CAAA;AA4E3B,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,aAAa,GAAG,WAAW,CAyC9E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aspectRatio, h } from '@cogenta/theme-kit';
|
|
1
|
+
import { aspectRatio, embedFrameTitle, h, renderEmbedPreview, } from '@cogenta/theme-kit';
|
|
2
2
|
import { section } from '../layout.js';
|
|
3
3
|
/**
|
|
4
4
|
* Nothing here contacts a third party before the visitor has consented.
|
|
@@ -53,7 +53,7 @@ function frameSource(provider, rawUrl) {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
function consentNotice(block, ctx, reason) {
|
|
56
|
-
return h('div', { class: 'cg-embed__notice' }, h('p', { class: 'cg-embed__provider', 'aria-hidden': 'true' }, block.provider), h('p', { class: 'cg-embed__reason' }, reason), h('a', {
|
|
56
|
+
return h('div', { class: 'cg-embed__notice' }, renderEmbedPreview(ctx, block.url, 'cg-embed'), h('p', { class: 'cg-embed__provider', 'aria-hidden': 'true' }, block.provider), h('p', { class: 'cg-embed__reason' }, reason), h('a', {
|
|
57
57
|
class: 'cg-embed__link',
|
|
58
58
|
href: ctx.link(block.url),
|
|
59
59
|
rel: 'noopener noreferrer nofollow',
|
|
@@ -77,7 +77,7 @@ export function renderEmbed(block, ctx) {
|
|
|
77
77
|
src: source,
|
|
78
78
|
// An iframe with no accessible name is announced as "frame" and
|
|
79
79
|
// nothing else (WCAG 4.1.2).
|
|
80
|
-
title: ctx
|
|
80
|
+
title: embedFrameTitle(ctx, block.provider, block.url),
|
|
81
81
|
loading: 'lazy',
|
|
82
82
|
referrerpolicy: 'strict-origin-when-cross-origin',
|
|
83
83
|
allow: 'accelerometer; clipboard-write; encrypted-media; picture-in-picture; fullscreen',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed.js","sourceRoot":"","sources":["../../../../src/render/blocks/embed.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"embed.js","sourceRoot":"","sources":["../../../../src/render/blocks/embed.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,eAAe,EAEf,CAAC,EAED,kBAAkB,GACnB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC;;;;;;;;;;;;;;GAcG;AAEH,qEAAqE;AACrE,SAAS,WAAW,CAAC,QAAgC,EAAE,MAAc;IACnE,MAAM,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC7B,IAAI,GAAG,KAAK,IAAI;QAAE,OAAO,IAAI,CAAA;IAC7B,MAAM,QAAQ,GAAG,GAAG,CAAC,QAA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qE;IACrE,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAA;IAElD,OAAO,OAAO,CACZ,KAAK,EACL,OAAO,EACP,UAAU,EACV;QACE,eAAe,EAAE,KAAK,CAAC,QAAQ;QAC/B,cAAc,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,cAAc;QACnE,KAAK,EAAE,cAAc,KAAK,EAAE;KAC7B,EACD,KAAK,EACL,CAAC,CACC,KAAK,EACL,EAAE,KAAK,EAAE,qBAAqB,EAAE,EAChC,MAAM,KAAK,IAAI;QACb,CAAC,CAAC,aAAa,CACX,KAAK,EACL,GAAG,EACH,KAAK,CAAC,eAAe;YACnB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,uBAAuB,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;YAC9D,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAC7D;QACH,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;YACV,KAAK,EAAE,iBAAiB;YACxB,GAAG,EAAE,MAAM;YACX,gEAAgE;YAChE,6BAA6B;YAC7B,KAAK,EAAE,eAAe,CAAC,GAAG,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC;YACtD,OAAO,EAAE,MAAM;YACf,cAAc,EAAE,iCAAiC;YACjD,KAAK,EACH,iFAAiF;YACnF,eAAe,EAAE,IAAI;SACtB,CAAC,CACP,CACF,CAAA;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"term-archive.d.ts","sourceRoot":"","sources":["../../../src/render/term-archive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,
|
|
1
|
+
{"version":3,"file":"term-archive.d.ts","sourceRoot":"","sources":["../../../src/render/term-archive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAyB,KAAK,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGnG;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG,WAAW,CAwDtE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from '@cogenta/theme-kit';
|
|
1
|
+
import { h, renderArchiveIntro } from '@cogenta/theme-kit';
|
|
2
2
|
import { monthYear } from './layout.js';
|
|
3
3
|
/**
|
|
4
4
|
* The taxonomy-term archive (contract D `theme@1.3`): an index, set the way a
|
|
@@ -22,7 +22,7 @@ export function renderTermArchive(input) {
|
|
|
22
22
|
});
|
|
23
23
|
return h('main', { class: 'cg-main cg-archive', id: 'cg-main' }, h('div', { class: 'cg-container cg-archive__inner' }, input.ancestors.length === 0
|
|
24
24
|
? null
|
|
25
|
-
: h('nav', { class: 'cg-archive__breadcrumb', 'aria-label': input.labels.breadcrumb }, h('ol', {}, ...input.ancestors.map((link) => h('li', {}, h('a', { href: link.href }, link.label))))), h('h1', { class: 'cg-archive__title' }, input.term.label), input.children.length === 0
|
|
25
|
+
: h('nav', { class: 'cg-archive__breadcrumb', 'aria-label': input.labels.breadcrumb }, h('ol', {}, ...input.ancestors.map((link) => h('li', {}, h('a', { href: link.href }, link.label))))), h('h1', { class: 'cg-archive__title' }, input.term.label), renderArchiveIntro(input), input.children.length === 0
|
|
26
26
|
? null
|
|
27
27
|
: h('ul', { class: 'cg-archive__children', 'aria-label': input.labels.subterms }, ...input.children.map((child) => h('li', {}, h('a', { href: child.href }, child.label)))), rows.length === 0
|
|
28
28
|
? h('p', { class: 'cg-archive__empty' }, input.labels.empty)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"term-archive.js","sourceRoot":"","sources":["../../../src/render/term-archive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,CAAC,EAAyB,MAAM,oBAA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ogenta: an editorial twelve-column grid, Newsreader and Hanken Grotesk, hairlines instead of boxes, a designed dark mode, and zero client JavaScript.",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"directory": "packages/theme-entreprise"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@cogenta/
|
|
40
|
-
"@cogenta/
|
|
41
|
-
"@cogenta/
|
|
39
|
+
"@cogenta/blocks": "1.1.5",
|
|
40
|
+
"@cogenta/theme-kit": "0.7.0",
|
|
41
|
+
"@cogenta/render": "0.4.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"astro": "^7.2.1"
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import type { EmbedBlock } from '@cogenta/blocks'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
aspectRatio,
|
|
4
|
+
embedFrameTitle,
|
|
5
|
+
type HtmlElement,
|
|
6
|
+
h,
|
|
7
|
+
type RenderContext,
|
|
8
|
+
renderEmbedPreview,
|
|
9
|
+
} from '@cogenta/theme-kit'
|
|
3
10
|
import { section } from '../layout.js'
|
|
4
11
|
|
|
5
12
|
/**
|
|
@@ -60,6 +67,7 @@ function consentNotice(block: EmbedBlock, ctx: RenderContext, reason: string): H
|
|
|
60
67
|
return h(
|
|
61
68
|
'div',
|
|
62
69
|
{ class: 'cg-embed__notice' },
|
|
70
|
+
renderEmbedPreview(ctx, block.url, 'cg-embed'),
|
|
63
71
|
h('p', { class: 'cg-embed__provider', 'aria-hidden': 'true' }, block.provider),
|
|
64
72
|
h('p', { class: 'cg-embed__reason' }, reason),
|
|
65
73
|
h(
|
|
@@ -106,7 +114,7 @@ export function renderEmbed(block: EmbedBlock, ctx: RenderContext): HtmlElement
|
|
|
106
114
|
src: source,
|
|
107
115
|
// An iframe with no accessible name is announced as "frame" and
|
|
108
116
|
// nothing else (WCAG 4.1.2).
|
|
109
|
-
title: ctx
|
|
117
|
+
title: embedFrameTitle(ctx, block.provider, block.url),
|
|
110
118
|
loading: 'lazy',
|
|
111
119
|
referrerpolicy: 'strict-origin-when-cross-origin',
|
|
112
120
|
allow:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type HtmlElement, h, type TermArchiveInput } from '@cogenta/theme-kit'
|
|
1
|
+
import { type HtmlElement, h, renderArchiveIntro, type TermArchiveInput } from '@cogenta/theme-kit'
|
|
2
2
|
import { monthYear } from './layout.js'
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -52,6 +52,7 @@ export function renderTermArchive(input: TermArchiveInput): HtmlElement {
|
|
|
52
52
|
),
|
|
53
53
|
),
|
|
54
54
|
h('h1', { class: 'cg-archive__title' }, input.term.label),
|
|
55
|
+
renderArchiveIntro(input),
|
|
55
56
|
input.children.length === 0
|
|
56
57
|
? null
|
|
57
58
|
: h(
|
package/src/styles/base.css
CHANGED
|
@@ -861,7 +861,8 @@ a.cg-search__title:hover {
|
|
|
861
861
|
|
|
862
862
|
.cg-search__error,
|
|
863
863
|
.cg-form__error,
|
|
864
|
-
.cg-form__field-error
|
|
864
|
+
.cg-form__field-error,
|
|
865
|
+
.cg-comments__notice {
|
|
865
866
|
color: var(--cg-ink);
|
|
866
867
|
font-weight: var(--cg-weight-semibold);
|
|
867
868
|
}
|
|
@@ -1020,3 +1021,49 @@ a.cg-search__title:hover {
|
|
|
1020
1021
|
.cg-comment__body {
|
|
1021
1022
|
margin: 0;
|
|
1022
1023
|
}
|
|
1024
|
+
|
|
1025
|
+
/* An author's archive (theme@1.8): their portrait and bio under the title. */
|
|
1026
|
+
.cg-archive__intro {
|
|
1027
|
+
display: flex;
|
|
1028
|
+
align-items: flex-start;
|
|
1029
|
+
gap: 1.25rem;
|
|
1030
|
+
max-inline-size: 42rem;
|
|
1031
|
+
margin-block: 0 2rem;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
.cg-archive__portrait {
|
|
1035
|
+
flex: none;
|
|
1036
|
+
inline-size: 5rem;
|
|
1037
|
+
block-size: 5rem;
|
|
1038
|
+
object-fit: cover;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
.cg-archive__bio {
|
|
1042
|
+
margin: 0;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
/* An embed's preview (theme@1.9): the thumbnail the site serves itself, the
|
|
1046
|
+
title and author its provider gave — shown before consent, safely. */
|
|
1047
|
+
.cg-embed__preview {
|
|
1048
|
+
margin-block-end: 1rem;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
.cg-embed__thumbnail {
|
|
1052
|
+
display: block;
|
|
1053
|
+
inline-size: 100%;
|
|
1054
|
+
max-inline-size: 40rem;
|
|
1055
|
+
block-size: auto;
|
|
1056
|
+
aspect-ratio: 16 / 9;
|
|
1057
|
+
object-fit: cover;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
.cg-embed__title {
|
|
1061
|
+
margin: 0.75rem 0 0;
|
|
1062
|
+
font-weight: 600;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
.cg-embed__author {
|
|
1066
|
+
margin: 0.25rem 0 0;
|
|
1067
|
+
font-size: 0.875rem;
|
|
1068
|
+
color: var(--cg-ink-muted);
|
|
1069
|
+
}
|