@sarimarcus/content-sites-core 0.46.0 → 0.47.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/CHANGELOG.md +4 -0
- package/dist/articles/formats.js +2 -2
- package/package.json +1 -1
- package/src/articles/formats.ts +2 -2
package/CHANGELOG.md
CHANGED
package/dist/articles/formats.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// legacy shape (article-craft §1 / discover-mode.md). Pure: no Node APIs, it runs in the Astro build.
|
|
4
4
|
import { isObject } from "../internal/guards.js";
|
|
5
5
|
const DISCOVER = { sections: [3, 6], faqs: [0, 3], words: [700, 1600] };
|
|
6
|
-
const EXPLAINER = { sections: [4, 6], faqs: [5, 9], words: [
|
|
6
|
+
const EXPLAINER = { sections: [4, 6], faqs: [5, 9], words: [950, 2100] };
|
|
7
7
|
export const LEGACY_SHAPE = {
|
|
8
8
|
evergreen: { sections: EXPLAINER.sections, faqs: EXPLAINER.faqs, keyFacts: [3, 3] },
|
|
9
9
|
discover: { sections: DISCOVER.sections, faqs: DISCOVER.faqs, keyFacts: [3, 3] },
|
|
@@ -20,7 +20,7 @@ export const ARTICLE_FORMATS = [
|
|
|
20
20
|
export const FORMATS = {
|
|
21
21
|
'direct-answer': card([4, 5], [5, 9], [900, 1400]),
|
|
22
22
|
explainer: card(EXPLAINER.sections, EXPLAINER.faqs, EXPLAINER.words, {}),
|
|
23
|
-
'narrative-profile': card([4, 6], [5, 9], [
|
|
23
|
+
'narrative-profile': card([4, 6], [5, 9], [950, 2100], {}),
|
|
24
24
|
'claim-check': card([3, 5], [3, 9], [900, 1400], { sections: [3, 5], words: [700, 1400] }),
|
|
25
25
|
roundup: card([4, 6], [3, 9], [1500, 2100]),
|
|
26
26
|
'how-to': card([4, 6], [5, 9], [1500, 2100]),
|
package/package.json
CHANGED
package/src/articles/formats.ts
CHANGED
|
@@ -29,7 +29,7 @@ export interface ArticleShape extends ShapeRanges {
|
|
|
29
29
|
export type ShapeIssue = FieldIssue;
|
|
30
30
|
|
|
31
31
|
const DISCOVER = { sections: [3, 6], faqs: [0, 3], words: [700, 1600] } as const satisfies { sections: Range; faqs: Range; words: Range };
|
|
32
|
-
const EXPLAINER = { sections: [4, 6], faqs: [5, 9], words: [
|
|
32
|
+
const EXPLAINER = { sections: [4, 6], faqs: [5, 9], words: [950, 2100] } as const satisfies { sections: Range; faqs: Range; words: Range };
|
|
33
33
|
|
|
34
34
|
export const LEGACY_SHAPE: Record<ArticleMode, ShapeRanges> = {
|
|
35
35
|
evergreen: { sections: EXPLAINER.sections, faqs: EXPLAINER.faqs, keyFacts: [3, 3] },
|
|
@@ -57,7 +57,7 @@ export type ArticleFormat = (typeof ARTICLE_FORMATS)[number];
|
|
|
57
57
|
export const FORMATS: Record<ArticleFormat, FormatCard> = {
|
|
58
58
|
'direct-answer': card([4, 5], [5, 9], [900, 1400]),
|
|
59
59
|
explainer: card(EXPLAINER.sections, EXPLAINER.faqs, EXPLAINER.words, {}),
|
|
60
|
-
'narrative-profile': card([4, 6], [5, 9], [
|
|
60
|
+
'narrative-profile': card([4, 6], [5, 9], [950, 2100], {}),
|
|
61
61
|
'claim-check': card([3, 5], [3, 9], [900, 1400], { sections: [3, 5], words: [700, 1400] }),
|
|
62
62
|
roundup: card([4, 6], [3, 9], [1500, 2100]),
|
|
63
63
|
'how-to': card([4, 6], [5, 9], [1500, 2100]),
|