@startsimpli/ui 0.4.38 → 0.4.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startsimpli/ui",
3
- "version": "0.4.38",
3
+ "version": "0.4.40",
4
4
  "description": "Shared UI components package for StartSimpli applications",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -15,6 +15,7 @@
15
15
  "./theme": "./src/theme/index.ts",
16
16
  "./theme/contract": "./theme/contract.css",
17
17
  "./blog": "./src/components/blog/index.ts",
18
+ "./blog/resolve": "./src/components/blog/resolveArticle.ts",
18
19
  "./email-editor": "./src/components/email-editor/index.ts",
19
20
  "./workflows": "./src/components/workflows/index.ts",
20
21
  "./workflows/styles": "./src/components/workflows/workflows.css",
@@ -33,7 +34,7 @@
33
34
  "next": "^14.0.0 || ^15.0.0 || ^16.0.0",
34
35
  "react": "^18.0.0 || ^19.0.0",
35
36
  "react-dom": "^18.0.0 || ^19.0.0",
36
- "@startsimpli/api": "0.5.36",
37
+ "@startsimpli/api": "0.5.39",
37
38
  "@startsimpli/auth": "0.4.29"
38
39
  },
39
40
  "peerDependenciesMeta": {
@@ -12,8 +12,9 @@ export { ArticleCard, type ArticleCardProps } from './ArticleCard'
12
12
  export { BlogIndex, type BlogIndexProps } from './BlogIndex'
13
13
  export { BlogPost, type BlogPostProps } from './BlogPost'
14
14
  export { TableOfContents, extractToc, type TableOfContentsProps, type TocItem } from './TableOfContents'
15
- export {
16
- resolveArticleOrFallback,
17
- type ArticleSlugFetcher,
18
- type ResolveArticleOptions,
19
- } from './resolveArticle'
15
+ // NOTE: `resolveArticleOrFallback` is intentionally NOT re-exported here.
16
+ // This barrel pulls in 'use client' components (MarkdownRenderer, …); importing
17
+ // a server-only util through it makes the named export resolve to `undefined`
18
+ // in standalone production builds (TypeError: … is not a function). Import the
19
+ // helper from its dedicated client-free subpath instead:
20
+ // import { resolveArticleOrFallback } from '@startsimpli/ui/blog/resolve'
@@ -328,7 +328,9 @@ export function DataTableCore<TData>({
328
328
  }
329
329
 
330
330
  return (
331
- <div className={cn('rounded-md border', className)}>
331
+ // overflow-x-auto: a wide table scrolls horizontally inside its own border
332
+ // instead of overflowing the page to the right (startsim column-overflow).
333
+ <div className={cn('rounded-md border overflow-x-auto', className)}>
332
334
  <Table>
333
335
  {renderColumnHeaders()}
334
336