@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/dist/index.d.mts CHANGED
@@ -1,16 +1,17 @@
1
- import { PublishedArticle, PublishedSite, PublishedNewsletterSettings, PublishedAuthor, PublishResult, PublishedTopic } from './types/index.mjs';
2
- export { PublishPayload, PublishedAuthorSocialLinks } from './types/index.mjs';
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-Dz9DB7py.mjs';
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-Dz9DB7py.mjs';
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 './types/index.js';
2
- export { PublishPayload, PublishedAuthorSocialLinks } from './types/index.js';
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-BPTdXb9C.js';
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-BPTdXb9C.js';
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
  }