@xexr/blog-platform 1.0.14 → 1.0.16
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 +6 -0
- package/dist/app/blog/[slug]/page.d.ts +3 -6
- package/dist/app/blog/[slug]/page.tsx +37 -19
- package/dist/components/ExpandableArticleImage.tsx +29 -1
- package/dist/index-Dr8HaKGm.d.mts +229 -0
- package/dist/index-Dr8HaKGm.d.ts +229 -0
- package/dist/index.d.mts +7 -10
- package/dist/index.d.ts +7 -10
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/dist/lib/related-articles.d.mts +17 -0
- package/dist/lib/related-articles.d.ts +17 -0
- package/dist/lib/related-articles.js +2 -0
- package/dist/lib/related-articles.js.map +1 -0
- package/dist/lib/related-articles.mjs +2 -0
- package/dist/lib/related-articles.mjs.map +1 -0
- package/dist/lib/related-articles.ts +90 -0
- package/dist/{sitemap-BPTdXb9C.d.ts → sitemap-BmCh8BpN.d.ts} +1 -1
- package/dist/{sitemap-Dz9DB7py.d.mts → sitemap-Dbl4CUGI.d.mts} +1 -1
- package/dist/sitemap.d.mts +2 -2
- package/dist/sitemap.d.ts +2 -2
- package/dist/types/contracts.ts +31 -0
- package/dist/types/index.d.mts +1 -205
- package/dist/types/index.d.ts +1 -205
- package/package.json +7 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { PublishedArticle, PublishedSite, PublishedNewsletterSettings, PublishedAuthor, PublishResult, PublishedTopic } from './
|
|
2
|
-
export { PublishPayload, PublishedAuthorSocialLinks } from './
|
|
1
|
+
import { a as PublishedArticle, b as PublishedSite, d as PublishedNewsletterSettings, e as PublishedArticleCta, c as PublishedAuthor, f as PublishResult, P as PublishedTopic } from './index-Dr8HaKGm.mjs';
|
|
2
|
+
export { g as PublishPayload, h as PublishedAuthorSocialLinks } from './index-Dr8HaKGm.mjs';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { CSSProperties, ReactElement } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
8
|
import { ClassValue } from 'clsx';
|
|
9
|
+
export { RelatedArticleCandidate, RelatedFeaturedArticlesOptions, getRelatedFeaturedArticles } from './lib/related-articles.mjs';
|
|
9
10
|
import { NextRequest, NextResponse } from 'next/server';
|
|
10
11
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
11
12
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
12
|
-
import { C as CanonicalUrlOptions } from './sitemap-
|
|
13
|
-
export { B as BlogSitemapConfig, N as NextjsSitemapEntry, S as SitemapChangeFreq, a as SitemapData, b as SitemapEntry, c as SitemapOptions, d as createBlogSitemapRoute, e as createDynamicBlogSitemap, g as generateBlogSitemapEntries, f as generateCanonicalUrl, h as generateCanonicalUrlFromSlug, i as generateSitemap, j as generateSitemapIndex, k as getBaseUrl, l as isValidCanonicalUrl, n as normalizeDomain, m as normalizeSlug, s as sitemapToXml, u as updateArticleCanonicalUrl, v as validateSitemap } from './sitemap-
|
|
13
|
+
import { C as CanonicalUrlOptions } from './sitemap-Dbl4CUGI.mjs';
|
|
14
|
+
export { B as BlogSitemapConfig, N as NextjsSitemapEntry, S as SitemapChangeFreq, a as SitemapData, b as SitemapEntry, c as SitemapOptions, d as createBlogSitemapRoute, e as createDynamicBlogSitemap, g as generateBlogSitemapEntries, f as generateCanonicalUrl, h as generateCanonicalUrlFromSlug, i as generateSitemap, j as generateSitemapIndex, k as getBaseUrl, l as isValidCanonicalUrl, n as normalizeDomain, m as normalizeSlug, s as sitemapToXml, u as updateArticleCanonicalUrl, v as validateSitemap } from './sitemap-Dbl4CUGI.mjs';
|
|
14
15
|
|
|
15
16
|
interface BlogTheme {
|
|
16
17
|
accentColor?: string;
|
|
@@ -118,14 +119,10 @@ interface ArticlePageProps {
|
|
|
118
119
|
};
|
|
119
120
|
basePath?: string;
|
|
120
121
|
theme?: BlogTheme;
|
|
121
|
-
postArticleCta?:
|
|
122
|
-
title: string;
|
|
123
|
-
description?: string;
|
|
124
|
-
href: string;
|
|
125
|
-
label: string;
|
|
126
|
-
};
|
|
122
|
+
postArticleCta?: PublishedArticleCta;
|
|
127
123
|
newsletter?: PublishedNewsletterSettings;
|
|
128
124
|
newsletterPreviewMode?: boolean;
|
|
125
|
+
articles?: PublishedArticle[];
|
|
129
126
|
relatedArticles?: PublishedArticle[];
|
|
130
127
|
showShareLinks?: boolean;
|
|
131
128
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { PublishedArticle, PublishedSite, PublishedNewsletterSettings, PublishedAuthor, PublishResult, PublishedTopic } from './
|
|
2
|
-
export { PublishPayload, PublishedAuthorSocialLinks } from './
|
|
1
|
+
import { a as PublishedArticle, b as PublishedSite, d as PublishedNewsletterSettings, e as PublishedArticleCta, c as PublishedAuthor, f as PublishResult, P as PublishedTopic } from './index-Dr8HaKGm.js';
|
|
2
|
+
export { g as PublishPayload, h as PublishedAuthorSocialLinks } from './index-Dr8HaKGm.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { CSSProperties, ReactElement } from 'react';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
8
|
import { ClassValue } from 'clsx';
|
|
9
|
+
export { RelatedArticleCandidate, RelatedFeaturedArticlesOptions, getRelatedFeaturedArticles } from './lib/related-articles.js';
|
|
9
10
|
import { NextRequest, NextResponse } from 'next/server';
|
|
10
11
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
11
12
|
import { LibSQLDatabase } from 'drizzle-orm/libsql';
|
|
12
|
-
import { C as CanonicalUrlOptions } from './sitemap-
|
|
13
|
-
export { B as BlogSitemapConfig, N as NextjsSitemapEntry, S as SitemapChangeFreq, a as SitemapData, b as SitemapEntry, c as SitemapOptions, d as createBlogSitemapRoute, e as createDynamicBlogSitemap, g as generateBlogSitemapEntries, f as generateCanonicalUrl, h as generateCanonicalUrlFromSlug, i as generateSitemap, j as generateSitemapIndex, k as getBaseUrl, l as isValidCanonicalUrl, n as normalizeDomain, m as normalizeSlug, s as sitemapToXml, u as updateArticleCanonicalUrl, v as validateSitemap } from './sitemap-
|
|
13
|
+
import { C as CanonicalUrlOptions } from './sitemap-BmCh8BpN.js';
|
|
14
|
+
export { B as BlogSitemapConfig, N as NextjsSitemapEntry, S as SitemapChangeFreq, a as SitemapData, b as SitemapEntry, c as SitemapOptions, d as createBlogSitemapRoute, e as createDynamicBlogSitemap, g as generateBlogSitemapEntries, f as generateCanonicalUrl, h as generateCanonicalUrlFromSlug, i as generateSitemap, j as generateSitemapIndex, k as getBaseUrl, l as isValidCanonicalUrl, n as normalizeDomain, m as normalizeSlug, s as sitemapToXml, u as updateArticleCanonicalUrl, v as validateSitemap } from './sitemap-BmCh8BpN.js';
|
|
14
15
|
|
|
15
16
|
interface BlogTheme {
|
|
16
17
|
accentColor?: string;
|
|
@@ -118,14 +119,10 @@ interface ArticlePageProps {
|
|
|
118
119
|
};
|
|
119
120
|
basePath?: string;
|
|
120
121
|
theme?: BlogTheme;
|
|
121
|
-
postArticleCta?:
|
|
122
|
-
title: string;
|
|
123
|
-
description?: string;
|
|
124
|
-
href: string;
|
|
125
|
-
label: string;
|
|
126
|
-
};
|
|
122
|
+
postArticleCta?: PublishedArticleCta;
|
|
127
123
|
newsletter?: PublishedNewsletterSettings;
|
|
128
124
|
newsletterPreviewMode?: boolean;
|
|
125
|
+
articles?: PublishedArticle[];
|
|
129
126
|
relatedArticles?: PublishedArticle[];
|
|
130
127
|
showShareLinks?: boolean;
|
|
131
128
|
}
|