@feedlog-ai/webcomponents 0.0.19 → 0.0.21
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/README.md +20 -5
- package/dist/cjs/feedlog-badge.cjs.entry.js +3 -3
- package/dist/cjs/feedlog-button_2.cjs.entry.js +1547 -8
- package/dist/cjs/feedlog-card.cjs.entry.js +1 -1
- package/dist/cjs/feedlog-github-issues-client.cjs.entry.js +23 -17
- package/dist/cjs/feedlog-github-issues.cjs.entry.js +7 -4
- package/dist/cjs/feedlog-issues-list.cjs.entry.js +8 -37
- package/dist/cjs/feedlog-toolkit.cjs.js +2 -2
- package/dist/cjs/{index-5lluu_3h.js → index-DnsqTPII.js} +0 -37
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/feedlog-badge/feedlog-badge.css +15 -3
- package/dist/collection/components/feedlog-badge/feedlog-badge.js +3 -3
- package/dist/collection/components/feedlog-github-issues/feedlog-github-issues.css +5 -5
- package/dist/collection/components/feedlog-github-issues/feedlog-github-issues.js +28 -2
- package/dist/collection/components/feedlog-github-issues/feedlog-github-issues.stories.js +41 -5
- package/dist/collection/components/feedlog-github-issues-client/feedlog-github-issues-client.js +24 -1
- package/dist/collection/components/feedlog-issue/feedlog-issue.css +196 -46
- package/dist/collection/components/feedlog-issue/feedlog-issue.js +71 -6
- package/dist/collection/components/feedlog-issue/feedlog-issue.stories.js +115 -3
- package/dist/collection/components/feedlog-issues-list/feedlog-issues-list.css +3 -209
- package/dist/collection/components/feedlog-issues-list/feedlog-issues-list.js +29 -35
- package/dist/collection/utils/markdown.js +48 -0
- package/dist/components/feedlog-badge.js +1 -1
- package/dist/components/feedlog-github-issues-client.js +1 -1
- package/dist/components/feedlog-github-issues.js +1 -1
- package/dist/components/feedlog-issue.js +1 -1
- package/dist/components/feedlog-issues-list.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-BBPFf6g7.js +3 -0
- package/dist/components/p-Chc3XZ5Y.js +1 -0
- package/dist/components/p-CyaPkQyN.js +1 -0
- package/dist/esm/feedlog-badge.entry.js +3 -3
- package/dist/esm/feedlog-button_2.entry.js +1547 -8
- package/dist/esm/feedlog-card.entry.js +1 -1
- package/dist/esm/feedlog-github-issues-client.entry.js +23 -17
- package/dist/esm/feedlog-github-issues.entry.js +7 -4
- package/dist/esm/feedlog-issues-list.entry.js +8 -37
- package/dist/esm/feedlog-toolkit.js +3 -3
- package/dist/esm/{index-CkB6Yzeb.js → index-rs_66Oq4.js} +0 -37
- package/dist/esm/loader.js +3 -3
- package/dist/feedlog-toolkit/feedlog-toolkit.esm.js +1 -1
- package/dist/feedlog-toolkit/p-3154bc80.entry.js +1 -0
- package/dist/feedlog-toolkit/{p-cdb2b098.entry.js → p-4e90285c.entry.js} +1 -1
- package/dist/feedlog-toolkit/p-5688651c.entry.js +1 -0
- package/dist/feedlog-toolkit/p-70bf31c4.entry.js +1 -0
- package/dist/feedlog-toolkit/p-da51c7fd.entry.js +1 -0
- package/dist/feedlog-toolkit/p-dad7b157.entry.js +3 -0
- package/dist/feedlog-toolkit/p-rs_66Oq4.js +2 -0
- package/dist/types/components/feedlog-badge/feedlog-badge.d.ts +1 -1
- package/dist/types/components/feedlog-github-issues/feedlog-github-issues.d.ts +6 -1
- package/dist/types/components/feedlog-github-issues/feedlog-github-issues.stories.d.ts +1 -0
- package/dist/types/components/feedlog-github-issues-client/feedlog-github-issues-client.d.ts +6 -1
- package/dist/types/components/feedlog-issue/feedlog-issue.d.ts +19 -2
- package/dist/types/components/feedlog-issue/feedlog-issue.stories.d.ts +10 -0
- package/dist/types/components/feedlog-issues-list/feedlog-issues-list.d.ts +5 -5
- package/dist/types/components.d.ts +36 -4
- package/dist/types/utils/markdown.d.ts +5 -0
- package/package.json +4 -2
- package/dist/components/p-Bu_AsIay.js +0 -1
- package/dist/components/p-CHtSMTyP.js +0 -1
- package/dist/components/p-Cp7B8xwh.js +0 -1
- package/dist/feedlog-toolkit/p-2401f510.entry.js +0 -1
- package/dist/feedlog-toolkit/p-5df44120.entry.js +0 -1
- package/dist/feedlog-toolkit/p-95fea2f4.entry.js +0 -1
- package/dist/feedlog-toolkit/p-CkB6Yzeb.js +0 -2
- package/dist/feedlog-toolkit/p-b4b631f3.entry.js +0 -1
- package/dist/feedlog-toolkit/p-c19a4d1b.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DnsqTPII.js');
|
|
4
4
|
|
|
5
5
|
const feedlogCardCss = () => `:host{display:block;font-family:ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;--feedlog-card:#ffffff;--feedlog-card-foreground:oklch(0.145 0 0);--feedlog-border:rgba(0, 0, 0, 0.1);--feedlog-radius:0.625rem;--feedlog-card-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);--feedlog-card-hover-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)}:host(.dark){--feedlog-card:oklch(0.145 0 0);--feedlog-card-foreground:oklch(0.985 0 0);--feedlog-border:oklch(0.269 0 0);--feedlog-card-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);--feedlog-card-hover-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3)}.feedlog-card{background-color:var(--feedlog-card);color:var(--feedlog-card-foreground);border:1px solid var(--feedlog-border);border-radius:var(--feedlog-radius);box-shadow:var(--feedlog-card-shadow);transition:box-shadow 0.15s ease;position:relative}.feedlog-card:hover{box-shadow:var(--feedlog-card-hover-shadow)}::slotted([slot="header"]){display:block}::slotted([slot="content"]){display:block}::slotted([slot="footer"]){display:block}`;
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DnsqTPII.js');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* HTML and XSS sanitization utilities
|
|
@@ -260,29 +260,35 @@ class FeedlogSDK {
|
|
|
260
260
|
if (typeof issue.id !== 'string') {
|
|
261
261
|
throw new FeedlogValidationError('Invalid issue: id is required and must be a string');
|
|
262
262
|
}
|
|
263
|
-
if (typeof issue.title !== 'string') {
|
|
264
|
-
throw new FeedlogValidationError('Invalid issue: title is required and must be a string');
|
|
265
|
-
}
|
|
266
263
|
if (!['bug', 'enhancement'].includes(String(issue.type))) {
|
|
267
264
|
throw new FeedlogValidationError('Invalid issue: type must be "bug" or "enhancement"');
|
|
268
265
|
}
|
|
269
|
-
if (!['open', 'closed'].includes(String(issue.status))) {
|
|
270
|
-
throw new FeedlogValidationError('Invalid issue: status must be "open" or "closed"');
|
|
266
|
+
if (!['open', 'in_progress', 'closed'].includes(String(issue.status))) {
|
|
267
|
+
throw new FeedlogValidationError('Invalid issue: status must be "open", "in_progress", or "closed"');
|
|
271
268
|
}
|
|
272
269
|
if (!issue.repository || typeof issue.repository !== 'object') {
|
|
273
270
|
throw new FeedlogValidationError('Invalid issue: repository is required');
|
|
274
271
|
}
|
|
275
272
|
const repo = issue.repository;
|
|
276
|
-
if (typeof repo.id !== 'string'
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
273
|
+
if (typeof repo.id !== 'string') {
|
|
274
|
+
throw new FeedlogValidationError('Invalid issue: repository must have id');
|
|
275
|
+
}
|
|
276
|
+
// githubIssueLink: string | null (null for private repos)
|
|
277
|
+
const githubIssueLink = issue.githubIssueLink !== null && typeof issue.githubIssueLink === 'string'
|
|
278
|
+
? String(issue.githubIssueLink)
|
|
279
|
+
: null;
|
|
280
|
+
// Sanitize string fields to prevent XSS (handle null)
|
|
281
|
+
const rawTitle = issue.title;
|
|
282
|
+
const sanitizedTitle = rawTitle != null && rawTitle !== '' ? sanitizeHtml(String(rawTitle)) : null;
|
|
283
|
+
const rawBody = issue.body;
|
|
284
|
+
const sanitizedBody = rawBody != null && rawBody !== '' ? sanitizeHtml(String(rawBody)) : null;
|
|
285
|
+
const rawRepoName = repo.name;
|
|
286
|
+
const repoName = rawRepoName != null && rawRepoName !== '' ? String(rawRepoName) : null;
|
|
287
|
+
const rawRepoDesc = repo.description;
|
|
288
|
+
const repoDescription = rawRepoDesc != null && rawRepoDesc !== '' ? sanitizeHtml(String(rawRepoDesc)) : null;
|
|
284
289
|
return {
|
|
285
290
|
id: String(issue.id),
|
|
291
|
+
githubIssueLink,
|
|
286
292
|
type: issue.type || 'bug',
|
|
287
293
|
status: issue.status || 'open',
|
|
288
294
|
pinnedAt: issue.pinnedAt ? String(issue.pinnedAt) : null,
|
|
@@ -291,8 +297,8 @@ class FeedlogSDK {
|
|
|
291
297
|
body: sanitizedBody,
|
|
292
298
|
repository: {
|
|
293
299
|
id: String(repo.id),
|
|
294
|
-
name:
|
|
295
|
-
|
|
300
|
+
name: repoName,
|
|
301
|
+
description: repoDescription,
|
|
296
302
|
},
|
|
297
303
|
updatedAt: String(issue.updatedAt) || new Date().toISOString(),
|
|
298
304
|
createdAt: String(issue.createdAt) || new Date().toISOString(),
|
|
@@ -547,7 +553,7 @@ const FeedlogGithubIssuesClient = class {
|
|
|
547
553
|
}
|
|
548
554
|
}
|
|
549
555
|
render() {
|
|
550
|
-
return (index.h("feedlog-github-issues", { key: '
|
|
556
|
+
return (index.h("feedlog-github-issues", { key: '5d5bbd34f21c89b18ecb78f2411cfb825ff78d12', issues: this.issues, maxWidth: this.maxWidth, theme: this.theme, heading: this.heading, subtitle: this.subtitle, getIssueUrl: this.getIssueUrl, loading: this.loading, error: this.error, hasMore: this.hasMore, isLoadingMore: this.isLoadingMore, onFeedlogUpvote: this.handleUpvote, onFeedlogLoadMore: async () => this.loadMore() }));
|
|
551
557
|
}
|
|
552
558
|
};
|
|
553
559
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DnsqTPII.js');
|
|
4
4
|
|
|
5
|
-
const feedlogGithubIssuesCss = () => `:host{display:block;font-family:ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;--feedlog-background:#ffffff;--feedlog-foreground:oklch(0.145 0 0);--feedlog-card:#ffffff;--feedlog-card-foreground:oklch(0.145 0 0);--feedlog-muted:#ececf0;--feedlog-muted-foreground:#717182;--feedlog-border:rgba(0, 0, 0, 0.1);--feedlog-accent-color:#2563eb;--feedlog-destructive:#d4183d;--feedlog-blue-400:oklch(0.707 0.165 254.624);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-blue-100:oklch(0.932 0.032 255.585);--feedlog-red-100:#fce7f3;--feedlog-red-400:#f472b6;--feedlog-red-600:#db2777;--feedlog-radius:0.625rem;--feedlog-gap:0.5rem;--feedlog-padding:2rem}:host(.dark){--feedlog-background:oklch(0.
|
|
5
|
+
const feedlogGithubIssuesCss = () => `:host{display:block;font-family:ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;--feedlog-background:#ffffff;--feedlog-foreground:oklch(0.145 0 0);--feedlog-card:#ffffff;--feedlog-card-foreground:oklch(0.145 0 0);--feedlog-muted:#ececf0;--feedlog-muted-foreground:#717182;--feedlog-border:rgba(0, 0, 0, 0.1);--feedlog-accent-color:#2563eb;--feedlog-destructive:#d4183d;--feedlog-blue-400:oklch(0.707 0.165 254.624);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-blue-100:oklch(0.932 0.032 255.585);--feedlog-red-100:#fce7f3;--feedlog-red-400:#f472b6;--feedlog-red-600:#db2777;--feedlog-radius:0.625rem;--feedlog-gap:0.5rem;--feedlog-padding:2rem}:host(.dark){--feedlog-background:oklch(0.18 0.01 260);--feedlog-foreground:oklch(0.985 0 0);--feedlog-card:oklch(0.24 0.01 260);--feedlog-card-foreground:oklch(0.985 0 0);--feedlog-muted:oklch(0.32 0.01 260);--feedlog-muted-foreground:oklch(0.72 0.02 260);--feedlog-border:oklch(0.34 0.01 260);--feedlog-accent-color:#3b82f6;--feedlog-destructive:oklch(0.396 0.141 25.723);--feedlog-blue-400:oklch(0.707 0.165 254.624);--feedlog-blue-600:oklch(0.546 0.245 262.881);--feedlog-blue-900-30:color-mix(in oklab, oklch(0.379 0.146 265.522) 30%, transparent);--feedlog-red-900-30:color-mix(in oklab, oklch(0.396 0.141 25.723) 30%, transparent)}.github-issues-container{min-height:100vh;background-color:var(--feedlog-background);padding:var(--feedlog-padding);margin:0 auto}.issues-header{margin-bottom:1.5rem;display:flex;align-items:flex-start;justify-content:space-between}.header-content{flex:1}.issues-title{color:var(--feedlog-foreground);margin:0 0 0.25rem 0;font-size:1.5rem;font-weight:500;line-height:1.5}.issues-subtitle{color:var(--feedlog-muted-foreground);font-size:0.875rem;margin:0}.loading-state,.error-state{padding:2rem;text-align:center;color:var(--feedlog-muted-foreground)}.error-state{color:var(--feedlog-destructive)}.issues-list{display:flex;flex-direction:column;gap:var(--feedlog-gap)}.empty-state{text-align:center;padding:3rem 1.5rem;color:var(--feedlog-muted-foreground);font-size:0.875rem}.load-more-container{display:flex;justify-content:center;padding:2rem 0;gap:1rem}`;
|
|
6
6
|
|
|
7
7
|
const FeedlogGithubIssues = class {
|
|
8
8
|
constructor(hostRef) {
|
|
@@ -53,13 +53,16 @@ const FeedlogGithubIssues = class {
|
|
|
53
53
|
this.currentTheme = this.theme;
|
|
54
54
|
}
|
|
55
55
|
renderIssuesList() {
|
|
56
|
-
return (index.h("div", { class: "issues-list" }, this.issues.length === 0 ? (index.h("div", { class: "empty-state" }, index.h("p", null, "No issues found"))) : (this.issues.map(issue =>
|
|
56
|
+
return (index.h("div", { class: "issues-list" }, this.issues.length === 0 ? (index.h("div", { class: "empty-state" }, index.h("p", null, "No issues found"))) : (this.issues.map(issue => {
|
|
57
|
+
var _a, _b;
|
|
58
|
+
return (index.h("feedlog-issue", { key: issue.id, issue: issue, issueUrl: (_b = (_a = this.getIssueUrl) === null || _a === void 0 ? void 0 : _a.call(this, issue)) !== null && _b !== void 0 ? _b : undefined, theme: this.currentTheme, onFeedlogUpvote: (e) => this.handleUpvote(e) }));
|
|
59
|
+
}))));
|
|
57
60
|
}
|
|
58
61
|
render() {
|
|
59
62
|
const containerStyle = {
|
|
60
63
|
maxWidth: this.maxWidth,
|
|
61
64
|
};
|
|
62
|
-
return (index.h(index.Host, { key: '
|
|
65
|
+
return (index.h(index.Host, { key: '8d371971cf80542020ff10d09e49b1e86cbd1170', class: this.currentTheme === 'dark' ? 'dark' : '' }, index.h("div", { key: '6a46103b04afbd473ca02a5f16125192a00f2e9b', class: "github-issues-container", style: containerStyle }, (this.heading || this.subtitle) && (index.h("header", { key: '55b481d2ea993566769670aeef1959aa76cc422e', class: "issues-header" }, index.h("div", { key: 'c80a94733595b2fc74f9e670b8ebe92498e762f5', class: "header-content" }, this.heading && index.h("h1", { key: '16cb4c7cf71d1d91b52dede91f900a79f9a66458', class: "issues-title" }, this.heading), this.subtitle && index.h("p", { key: 'ee0d7a228dc935b2fa88a03133e79888a60853df', class: "issues-subtitle" }, this.subtitle)))), this.loading && (index.h("div", { key: '3830120b4883517f73133bb3b51f26a3cd2c0503', class: "loading-state" }, index.h("p", { key: '13a5c0d3f466092c77b3cc6b8d3af448c44b4f48' }, "Loading issues..."))), this.error && (index.h("div", { key: '84b1c7407a0b3c858598663feb8d4a782ec1bff2', class: "error-state" }, index.h("p", { key: 'd846f63028dc9134a28270853d1af08cf3b75ef5' }, "Error: ", this.error))), !this.loading && !this.error && (index.h("div", { key: 'e9676a45008da5976db58180d72275e3080a51a1' }, this.renderIssuesList(), this.hasMore && (index.h("div", { key: '85ef1768fbcc1636bbeeaa2a74afaa552455d05e', class: "load-more-container" }, index.h("feedlog-button", { key: 'd408617ab69f6d70acbb9dfc360d3a09c79279b1', onFeedlogClick: this.handleLoadMore, disabled: this.isLoadingMore, variant: "outline" }, this.isLoadingMore ? 'Loading...' : 'Load More Issues'))))))));
|
|
63
66
|
}
|
|
64
67
|
};
|
|
65
68
|
FeedlogGithubIssues.style = feedlogGithubIssuesCss();
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DnsqTPII.js');
|
|
4
4
|
|
|
5
|
-
const feedlogIssuesListCss = () => `:host{display:block
|
|
5
|
+
const feedlogIssuesListCss = () => `:host{display:block;--feedlog-muted-foreground:#64748b}:host(.dark){--feedlog-muted-foreground:oklch(0.72 0.02 260)}.issues-list{display:flex;flex-direction:column;gap:0.5rem}.empty-state{text-align:center;padding:3rem 1.5rem;color:var(--feedlog-muted-foreground);font-size:0.875rem}`;
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* Heart icon SVG component - renders filled or outline based on prop
|
|
9
|
-
*/
|
|
10
|
-
const HeartIcon = ({ filled }) => (index.h("svg", { class: `upvote-icon ${filled ? 'filled' : 'outline'}`, xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: filled ? 'currentColor' : 'none', stroke: filled ? 'none' : 'currentColor', "stroke-width": filled ? undefined : '2', "stroke-linecap": filled ? undefined : 'round', "stroke-linejoin": filled ? undefined : 'round' }, index.h("path", { d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" })));
|
|
11
7
|
const FeedlogIssuesList = class {
|
|
12
8
|
constructor(hostRef) {
|
|
13
9
|
index.registerInstance(this, hostRef);
|
|
@@ -20,41 +16,16 @@ const FeedlogIssuesList = class {
|
|
|
20
16
|
* Theme variant: 'light' or 'dark'
|
|
21
17
|
*/
|
|
22
18
|
this.theme = 'light';
|
|
23
|
-
this.handleUpvote = (event
|
|
19
|
+
this.handleUpvote = (event) => {
|
|
24
20
|
event.stopPropagation();
|
|
25
|
-
this.feedlogUpvote.emit(
|
|
26
|
-
issueId: issue.id,
|
|
27
|
-
currentUpvoted: issue.hasUpvoted,
|
|
28
|
-
currentCount: issue.upvoteCount,
|
|
29
|
-
});
|
|
21
|
+
this.feedlogUpvote.emit(event.detail);
|
|
30
22
|
};
|
|
31
23
|
}
|
|
32
|
-
/**
|
|
33
|
-
* Format an ISO date string to a relative time string
|
|
34
|
-
*/
|
|
35
|
-
formatDate(dateString) {
|
|
36
|
-
try {
|
|
37
|
-
const date = new Date(dateString);
|
|
38
|
-
const now = new Date();
|
|
39
|
-
const seconds = Math.floor((now.getTime() - date.getTime()) / 1000);
|
|
40
|
-
if (seconds < 60)
|
|
41
|
-
return 'just now';
|
|
42
|
-
if (seconds < 3600)
|
|
43
|
-
return `${Math.floor(seconds / 60)}m ago`;
|
|
44
|
-
if (seconds < 86400)
|
|
45
|
-
return `${Math.floor(seconds / 3600)}h ago`;
|
|
46
|
-
if (seconds < 604800)
|
|
47
|
-
return `${Math.floor(seconds / 86400)}d ago`;
|
|
48
|
-
if (seconds < 2592000)
|
|
49
|
-
return `${Math.floor(seconds / 604800)}w ago`;
|
|
50
|
-
return date.toLocaleDateString();
|
|
51
|
-
}
|
|
52
|
-
catch (_a) {
|
|
53
|
-
return 'unknown date';
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
24
|
render() {
|
|
57
|
-
return (index.h(index.Host, { key: '
|
|
25
|
+
return (index.h(index.Host, { key: '118e81e7928ecdc097c2a29a2a8f5a7cbf9c321f', class: this.theme === 'dark' ? 'dark' : '' }, index.h("div", { key: 'ae6d2cdb78e153640b080fd6c634d7ce00a2c082', class: "issues-list" }, this.issues.length === 0 ? (index.h("div", { class: "empty-state" }, index.h("p", null, "No issues found"))) : (this.issues.map(issue => {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
return (index.h("feedlog-issue", { key: issue.id, issue: issue, issueUrl: (_b = (_a = this.getIssueUrl) === null || _a === void 0 ? void 0 : _a.call(this, issue)) !== null && _b !== void 0 ? _b : undefined, theme: this.theme, onFeedlogUpvote: (e) => this.handleUpvote(e) }));
|
|
28
|
+
})))));
|
|
58
29
|
}
|
|
59
30
|
};
|
|
60
31
|
FeedlogIssuesList.style = feedlogIssuesListCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DnsqTPII.js');
|
|
4
4
|
|
|
5
5
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
6
6
|
/*
|
|
@@ -18,7 +18,7 @@ var patchBrowser = () => {
|
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(async (options) => {
|
|
20
20
|
await index.globalScripts();
|
|
21
|
-
return index.bootstrapLazy([["feedlog-issues-list.cjs",[[1,"feedlog-issues-list",{"issues":[16],"theme":[1]}]]],["feedlog-card.cjs",[[257,"feedlog-card"]]],["feedlog-badge.cjs",[[257,"feedlog-badge",{"variant":[1]}]]],["feedlog-button_2.cjs",[[
|
|
21
|
+
return index.bootstrapLazy([["feedlog-issues-list.cjs",[[1,"feedlog-issues-list",{"issues":[16],"theme":[1],"getIssueUrl":[16]}]]],["feedlog-card.cjs",[[257,"feedlog-card"]]],["feedlog-badge.cjs",[[257,"feedlog-badge",{"variant":[1]}]]],["feedlog-button_2.cjs",[[257,"feedlog-button",{"variant":[1],"size":[1],"disabled":[4],"type":[1]}],[257,"feedlog-issue",{"issue":[16],"issueUrl":[1,"issue-url"],"theme":[1]}]]],["feedlog-github-issues.cjs",[[1,"feedlog-github-issues",{"issues":[16],"maxWidth":[1,"max-width"],"theme":[1025],"heading":[1],"subtitle":[1],"loading":[4],"error":[1],"hasMore":[4,"has-more"],"isLoadingMore":[4,"is-loading-more"],"getIssueUrl":[16],"currentTheme":[32]}]]],["feedlog-github-issues-client.cjs",[[1,"feedlog-github-issues-client",{"apiKey":[1,"api-key"],"type":[1],"limit":[2],"sortBy":[1,"sort-by"],"endpoint":[1],"maxWidth":[1,"max-width"],"theme":[1],"heading":[1],"subtitle":[1],"getIssueUrl":[16],"issues":[32],"loading":[32],"error":[32],"cursor":[32],"hasMore":[32],"isLoadingMore":[32]}]]]], options);
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
exports.setNonce = index.setNonce;
|
|
@@ -2042,13 +2042,6 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
2042
2042
|
}
|
|
2043
2043
|
}
|
|
2044
2044
|
}
|
|
2045
|
-
if (typeof nodeName === "function") {
|
|
2046
|
-
return nodeName(
|
|
2047
|
-
vnodeData === null ? {} : vnodeData,
|
|
2048
|
-
vNodeChildren,
|
|
2049
|
-
vdomFnUtils
|
|
2050
|
-
);
|
|
2051
|
-
}
|
|
2052
2045
|
const vnode = newVNode(nodeName, null);
|
|
2053
2046
|
vnode.$attrs$ = vnodeData;
|
|
2054
2047
|
if (vNodeChildren.length > 0) {
|
|
@@ -2077,36 +2070,6 @@ var newVNode = (tag, text) => {
|
|
|
2077
2070
|
};
|
|
2078
2071
|
var Host = {};
|
|
2079
2072
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
2080
|
-
var vdomFnUtils = {
|
|
2081
|
-
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
2082
|
-
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
|
|
2083
|
-
};
|
|
2084
|
-
var convertToPublic = (node) => ({
|
|
2085
|
-
vattrs: node.$attrs$,
|
|
2086
|
-
vchildren: node.$children$,
|
|
2087
|
-
vkey: node.$key$,
|
|
2088
|
-
vname: node.$name$,
|
|
2089
|
-
vtag: node.$tag$,
|
|
2090
|
-
vtext: node.$text$
|
|
2091
|
-
});
|
|
2092
|
-
var convertToPrivate = (node) => {
|
|
2093
|
-
if (typeof node.vtag === "function") {
|
|
2094
|
-
const vnodeData = { ...node.vattrs };
|
|
2095
|
-
if (node.vkey) {
|
|
2096
|
-
vnodeData.key = node.vkey;
|
|
2097
|
-
}
|
|
2098
|
-
if (node.vname) {
|
|
2099
|
-
vnodeData.name = node.vname;
|
|
2100
|
-
}
|
|
2101
|
-
return h(node.vtag, vnodeData, ...node.vchildren || []);
|
|
2102
|
-
}
|
|
2103
|
-
const vnode = newVNode(node.vtag, node.vtext);
|
|
2104
|
-
vnode.$attrs$ = node.vattrs;
|
|
2105
|
-
vnode.$children$ = node.vchildren;
|
|
2106
|
-
vnode.$key$ = node.vkey;
|
|
2107
|
-
vnode.$name$ = node.vname;
|
|
2108
|
-
return vnode;
|
|
2109
|
-
};
|
|
2110
2073
|
var createSupportsRuleRe = (selector) => {
|
|
2111
2074
|
const safeSelector2 = escapeRegExpSpecialCharacters(selector);
|
|
2112
2075
|
return new RegExp(
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DnsqTPII.js');
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await index.globalScripts();
|
|
8
|
-
return index.bootstrapLazy([["feedlog-issues-list.cjs",[[1,"feedlog-issues-list",{"issues":[16],"theme":[1]}]]],["feedlog-card.cjs",[[257,"feedlog-card"]]],["feedlog-badge.cjs",[[257,"feedlog-badge",{"variant":[1]}]]],["feedlog-button_2.cjs",[[
|
|
8
|
+
return index.bootstrapLazy([["feedlog-issues-list.cjs",[[1,"feedlog-issues-list",{"issues":[16],"theme":[1],"getIssueUrl":[16]}]]],["feedlog-card.cjs",[[257,"feedlog-card"]]],["feedlog-badge.cjs",[[257,"feedlog-badge",{"variant":[1]}]]],["feedlog-button_2.cjs",[[257,"feedlog-button",{"variant":[1],"size":[1],"disabled":[4],"type":[1]}],[257,"feedlog-issue",{"issue":[16],"issueUrl":[1,"issue-url"],"theme":[1]}]]],["feedlog-github-issues.cjs",[[1,"feedlog-github-issues",{"issues":[16],"maxWidth":[1,"max-width"],"theme":[1025],"heading":[1],"subtitle":[1],"loading":[4],"error":[1],"hasMore":[4,"has-more"],"isLoadingMore":[4,"is-loading-more"],"getIssueUrl":[16],"currentTheme":[32]}]]],["feedlog-github-issues-client.cjs",[[1,"feedlog-github-issues-client",{"apiKey":[1,"api-key"],"type":[1],"limit":[2],"sortBy":[1,"sort-by"],"endpoint":[1],"maxWidth":[1,"max-width"],"theme":[1],"heading":[1],"subtitle":[1],"getIssueUrl":[16],"issues":[32],"loading":[32],"error":[32],"cursor":[32],"hasMore":[32],"isLoadingMore":[32]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
exports.setNonce = index.setNonce;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
display: inline-block;
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
/* Light theme defaults */
|
|
5
5
|
--feedlog-badge-font-size: 0.75rem;
|
|
6
6
|
--feedlog-badge-font-weight: 500;
|
|
7
7
|
--feedlog-badge-padding-x: 0.5rem;
|
|
8
8
|
--feedlog-badge-padding-y: 0.125rem;
|
|
9
9
|
--feedlog-badge-border-radius: calc(0.625rem - 2px);
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
/* Default/Enhancement variant colors */
|
|
12
12
|
--feedlog-blue-500: oklch(0.623 0.214 259.815);
|
|
13
13
|
--feedlog-blue-600: oklch(0.546 0.245 262.881);
|
|
14
14
|
--feedlog-blue-700: oklch(0.488 0.243 264.376);
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
/* Destructive variant colors */
|
|
17
17
|
--feedlog-destructive: #d4183d;
|
|
18
18
|
--feedlog-destructive-hover: #b91c1c;
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
display: inline-flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
|
+
gap: 0.25rem;
|
|
33
34
|
font-size: var(--feedlog-badge-font-size);
|
|
34
35
|
font-weight: var(--feedlog-badge-font-weight);
|
|
35
36
|
padding: var(--feedlog-badge-padding-y) var(--feedlog-badge-padding-x);
|
|
@@ -84,3 +85,14 @@
|
|
|
84
85
|
.badge-destructive:hover {
|
|
85
86
|
background-color: var(--feedlog-destructive-hover);
|
|
86
87
|
}
|
|
88
|
+
|
|
89
|
+
/* Secondary variant - muted styling for status badges */
|
|
90
|
+
.badge-secondary {
|
|
91
|
+
background-color: var(--feedlog-muted, #f1f5f9);
|
|
92
|
+
color: var(--feedlog-muted-foreground, #64748b);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:host(.dark) .badge-secondary {
|
|
96
|
+
background-color: var(--feedlog-muted, oklch(0.32 0.01 260));
|
|
97
|
+
color: var(--feedlog-muted-foreground, oklch(0.72 0.02 260));
|
|
98
|
+
}
|
|
@@ -12,7 +12,7 @@ export class FeedlogBadge {
|
|
|
12
12
|
this.variant = 'default';
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h("span", { key: '
|
|
15
|
+
return (h("span", { key: '22e5d49e033459b4e3e409ffa0e76641457ad740', class: `badge badge-${this.variant}` }, h("slot", { key: '8f986c5150aa39034f090a258231e45363f9cac9' })));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "feedlog-badge"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -32,8 +32,8 @@ export class FeedlogBadge {
|
|
|
32
32
|
"type": "string",
|
|
33
33
|
"mutable": false,
|
|
34
34
|
"complexType": {
|
|
35
|
-
"original": "'default' | 'destructive' | 'enhancement'",
|
|
36
|
-
"resolved": "\"default\" | \"destructive\" | \"enhancement\"",
|
|
35
|
+
"original": "'default' | 'destructive' | 'enhancement' | 'secondary'",
|
|
36
|
+
"resolved": "\"default\" | \"destructive\" | \"enhancement\" | \"secondary\"",
|
|
37
37
|
"references": {}
|
|
38
38
|
},
|
|
39
39
|
"required": false,
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
|
|
26
26
|
:host(.dark) {
|
|
27
27
|
/* Dark theme values */
|
|
28
|
-
--feedlog-background: oklch(0.
|
|
28
|
+
--feedlog-background: oklch(0.18 0.01 260);
|
|
29
29
|
--feedlog-foreground: oklch(0.985 0 0);
|
|
30
|
-
--feedlog-card: oklch(0.
|
|
30
|
+
--feedlog-card: oklch(0.24 0.01 260);
|
|
31
31
|
--feedlog-card-foreground: oklch(0.985 0 0);
|
|
32
|
-
--feedlog-muted: oklch(0.
|
|
33
|
-
--feedlog-muted-foreground: oklch(0.
|
|
34
|
-
--feedlog-border: oklch(0.
|
|
32
|
+
--feedlog-muted: oklch(0.32 0.01 260);
|
|
33
|
+
--feedlog-muted-foreground: oklch(0.72 0.02 260);
|
|
34
|
+
--feedlog-border: oklch(0.34 0.01 260);
|
|
35
35
|
--feedlog-accent-color: #3b82f6;
|
|
36
36
|
--feedlog-destructive: oklch(0.396 0.141 25.723);
|
|
37
37
|
--feedlog-blue-400: oklch(0.707 0.165 254.624);
|
|
@@ -51,13 +51,16 @@ export class FeedlogGithubIssues {
|
|
|
51
51
|
this.currentTheme = this.theme;
|
|
52
52
|
}
|
|
53
53
|
renderIssuesList() {
|
|
54
|
-
return (h("div", { class: "issues-list" }, this.issues.length === 0 ? (h("div", { class: "empty-state" }, h("p", null, "No issues found"))) : (this.issues.map(issue =>
|
|
54
|
+
return (h("div", { class: "issues-list" }, this.issues.length === 0 ? (h("div", { class: "empty-state" }, h("p", null, "No issues found"))) : (this.issues.map(issue => {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
return (h("feedlog-issue", { key: issue.id, issue: issue, issueUrl: (_b = (_a = this.getIssueUrl) === null || _a === void 0 ? void 0 : _a.call(this, issue)) !== null && _b !== void 0 ? _b : undefined, theme: this.currentTheme, onFeedlogUpvote: (e) => this.handleUpvote(e) }));
|
|
57
|
+
}))));
|
|
55
58
|
}
|
|
56
59
|
render() {
|
|
57
60
|
const containerStyle = {
|
|
58
61
|
maxWidth: this.maxWidth,
|
|
59
62
|
};
|
|
60
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: '8d371971cf80542020ff10d09e49b1e86cbd1170', class: this.currentTheme === 'dark' ? 'dark' : '' }, h("div", { key: '6a46103b04afbd473ca02a5f16125192a00f2e9b', class: "github-issues-container", style: containerStyle }, (this.heading || this.subtitle) && (h("header", { key: '55b481d2ea993566769670aeef1959aa76cc422e', class: "issues-header" }, h("div", { key: 'c80a94733595b2fc74f9e670b8ebe92498e762f5', class: "header-content" }, this.heading && h("h1", { key: '16cb4c7cf71d1d91b52dede91f900a79f9a66458', class: "issues-title" }, this.heading), this.subtitle && h("p", { key: 'ee0d7a228dc935b2fa88a03133e79888a60853df', class: "issues-subtitle" }, this.subtitle)))), this.loading && (h("div", { key: '3830120b4883517f73133bb3b51f26a3cd2c0503', class: "loading-state" }, h("p", { key: '13a5c0d3f466092c77b3cc6b8d3af448c44b4f48' }, "Loading issues..."))), this.error && (h("div", { key: '84b1c7407a0b3c858598663feb8d4a782ec1bff2', class: "error-state" }, h("p", { key: 'd846f63028dc9134a28270853d1af08cf3b75ef5' }, "Error: ", this.error))), !this.loading && !this.error && (h("div", { key: 'e9676a45008da5976db58180d72275e3080a51a1' }, this.renderIssuesList(), this.hasMore && (h("div", { key: '85ef1768fbcc1636bbeeaa2a74afaa552455d05e', class: "load-more-container" }, h("feedlog-button", { key: 'd408617ab69f6d70acbb9dfc360d3a09c79279b1', onFeedlogClick: this.handleLoadMore, disabled: this.isLoadingMore, variant: "outline" }, this.isLoadingMore ? 'Loading...' : 'Load More Issues'))))))));
|
|
61
64
|
}
|
|
62
65
|
static get is() { return "feedlog-github-issues"; }
|
|
63
66
|
static get encapsulation() { return "shadow"; }
|
|
@@ -254,6 +257,29 @@ export class FeedlogGithubIssues {
|
|
|
254
257
|
"reflect": false,
|
|
255
258
|
"attribute": "is-loading-more",
|
|
256
259
|
"defaultValue": "false"
|
|
260
|
+
},
|
|
261
|
+
"getIssueUrl": {
|
|
262
|
+
"type": "unknown",
|
|
263
|
+
"mutable": false,
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "GetIssueUrlFn",
|
|
266
|
+
"resolved": "((issue: FeedlogIssue) => string | null | undefined) | undefined",
|
|
267
|
+
"references": {
|
|
268
|
+
"GetIssueUrlFn": {
|
|
269
|
+
"location": "import",
|
|
270
|
+
"path": "@feedlog-ai/core",
|
|
271
|
+
"id": "../core/dist/index.d.ts::GetIssueUrlFn"
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"required": false,
|
|
276
|
+
"optional": true,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": "Optional callback to resolve GitHub issue URL when githubIssueLink is not available.\nRequired because repository.owner was removed from the API for privacy."
|
|
280
|
+
},
|
|
281
|
+
"getter": false,
|
|
282
|
+
"setter": false
|
|
257
283
|
}
|
|
258
284
|
};
|
|
259
285
|
}
|
|
@@ -2,6 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
const sampleIssues = [
|
|
3
3
|
{
|
|
4
4
|
id: 'issue-1',
|
|
5
|
+
githubIssueLink: 'https://github.com/feedlog/feedlog-toolkit/issues/24',
|
|
5
6
|
title: 'Add dark mode support',
|
|
6
7
|
body: 'It would be great to have a dark mode option for the dashboard.',
|
|
7
8
|
type: 'enhancement',
|
|
@@ -11,7 +12,7 @@ const sampleIssues = [
|
|
|
11
12
|
repository: {
|
|
12
13
|
id: 'repo-1',
|
|
13
14
|
name: 'feedlog-toolkit',
|
|
14
|
-
|
|
15
|
+
description: 'Monorepo for Feedlog Toolkit',
|
|
15
16
|
},
|
|
16
17
|
updatedAt: new Date(Date.now() - 2 * 60 * 60 * 1000).toISOString(), // 2 hours ago
|
|
17
18
|
createdAt: new Date(Date.now() - 2 * 60 * 60 * 1000).toISOString(),
|
|
@@ -20,6 +21,7 @@ const sampleIssues = [
|
|
|
20
21
|
},
|
|
21
22
|
{
|
|
22
23
|
id: 'issue-2',
|
|
24
|
+
githubIssueLink: 'https://github.com/feedlog/feedlog-toolkit/issues/15',
|
|
23
25
|
title: 'Charts not rendering on mobile',
|
|
24
26
|
body: 'The chart components are not properly responsive on smaller screens.',
|
|
25
27
|
type: 'bug',
|
|
@@ -29,7 +31,7 @@ const sampleIssues = [
|
|
|
29
31
|
repository: {
|
|
30
32
|
id: 'repo-1',
|
|
31
33
|
name: 'feedlog-toolkit',
|
|
32
|
-
|
|
34
|
+
description: 'Monorepo for Feedlog Toolkit',
|
|
33
35
|
},
|
|
34
36
|
updatedAt: new Date(Date.now() - 5 * 60 * 60 * 1000).toISOString(), // 5 hours ago
|
|
35
37
|
createdAt: new Date(Date.now() - 5 * 60 * 60 * 1000).toISOString(),
|
|
@@ -38,6 +40,7 @@ const sampleIssues = [
|
|
|
38
40
|
},
|
|
39
41
|
{
|
|
40
42
|
id: 'issue-3',
|
|
43
|
+
githubIssueLink: 'https://github.com/feedlog/feedlog-toolkit/issues/8',
|
|
41
44
|
title: 'Export data to CSV',
|
|
42
45
|
body: 'Add functionality to export chart data as CSV files.',
|
|
43
46
|
type: 'enhancement',
|
|
@@ -47,7 +50,7 @@ const sampleIssues = [
|
|
|
47
50
|
repository: {
|
|
48
51
|
id: 'repo-1',
|
|
49
52
|
name: 'feedlog-toolkit',
|
|
50
|
-
|
|
53
|
+
description: 'Monorepo for Feedlog Toolkit',
|
|
51
54
|
},
|
|
52
55
|
updatedAt: new Date(Date.now() - 24 * 60 * 60 * 1000).toISOString(), // 1 day ago
|
|
53
56
|
createdAt: new Date(Date.now() - 24 * 60 * 60 * 1000).toISOString(),
|
|
@@ -56,6 +59,7 @@ const sampleIssues = [
|
|
|
56
59
|
},
|
|
57
60
|
{
|
|
58
61
|
id: 'issue-4',
|
|
62
|
+
githubIssueLink: 'https://github.com/feedlog/feedlog-toolkit/issues/12',
|
|
59
63
|
title: 'Memory leak in real-time updates',
|
|
60
64
|
body: 'When leaving the dashboard open for extended periods, memory usage increases significantly.',
|
|
61
65
|
type: 'bug',
|
|
@@ -65,7 +69,7 @@ const sampleIssues = [
|
|
|
65
69
|
repository: {
|
|
66
70
|
id: 'repo-1',
|
|
67
71
|
name: 'feedlog-toolkit',
|
|
68
|
-
|
|
72
|
+
description: 'Monorepo for Feedlog Toolkit',
|
|
69
73
|
},
|
|
70
74
|
updatedAt: new Date(Date.now() - 2 * 24 * 60 * 60 * 1000).toISOString(), // 2 days ago
|
|
71
75
|
createdAt: new Date(Date.now() - 2 * 24 * 60 * 60 * 1000).toISOString(),
|
|
@@ -74,6 +78,7 @@ const sampleIssues = [
|
|
|
74
78
|
},
|
|
75
79
|
{
|
|
76
80
|
id: 'issue-5',
|
|
81
|
+
githubIssueLink: null,
|
|
77
82
|
title: 'Custom color themes',
|
|
78
83
|
body: 'Allow users to customize the color palette for charts and UI elements.',
|
|
79
84
|
type: 'enhancement',
|
|
@@ -83,7 +88,7 @@ const sampleIssues = [
|
|
|
83
88
|
repository: {
|
|
84
89
|
id: 'repo-1',
|
|
85
90
|
name: 'feedlog-toolkit',
|
|
86
|
-
|
|
91
|
+
description: 'Monorepo for Feedlog Toolkit',
|
|
87
92
|
},
|
|
88
93
|
updatedAt: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString(), // 1 week ago
|
|
89
94
|
createdAt: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString(),
|
|
@@ -208,3 +213,34 @@ export const NarrowWidth = {
|
|
|
208
213
|
}
|
|
209
214
|
},
|
|
210
215
|
};
|
|
216
|
+
export const CustomCSSVars = {
|
|
217
|
+
args: {
|
|
218
|
+
issues: sampleIssues,
|
|
219
|
+
},
|
|
220
|
+
render: (props) => (h("feedlog-github-issues", Object.assign({}, props, { style: {
|
|
221
|
+
fontFamily: "'Georgia', 'Times New Roman', serif",
|
|
222
|
+
/* Card */
|
|
223
|
+
'--feedlog-card-padding': '1.5rem',
|
|
224
|
+
'--feedlog-card-accent-width': '5px',
|
|
225
|
+
'--feedlog-radius': '0.875rem',
|
|
226
|
+
'--feedlog-shadow': '0 2px 8px 0 rgba(0, 0, 0, 0.12), 0 1px 3px -1px rgba(0, 0, 0, 0.1)',
|
|
227
|
+
'--feedlog-shadow-hover': '0 8px 24px -4px rgba(0, 0, 0, 0.15), 0 4px 8px -2px rgba(0, 0, 0, 0.1)',
|
|
228
|
+
/* Typography */
|
|
229
|
+
'--feedlog-title-font-size': '1.0625rem',
|
|
230
|
+
'--feedlog-title-font-weight': '700',
|
|
231
|
+
'--feedlog-body-font-size': '0.875rem',
|
|
232
|
+
'--feedlog-body-line-height': '1.6',
|
|
233
|
+
'--feedlog-timestamp-font-size': '0.75rem',
|
|
234
|
+
/* Colors */
|
|
235
|
+
'--feedlog-accent-color': '#059669',
|
|
236
|
+
'--feedlog-muted': '#ecfdf5',
|
|
237
|
+
'--feedlog-muted-foreground': '#047857',
|
|
238
|
+
'--feedlog-border': 'rgba(5, 150, 105, 0.2)',
|
|
239
|
+
} }))),
|
|
240
|
+
play: async ({ canvasElement, args }) => {
|
|
241
|
+
const element = canvasElement.querySelector('feedlog-github-issues');
|
|
242
|
+
if (element && args.issues) {
|
|
243
|
+
element.issues = args.issues;
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
};
|
package/dist/collection/components/feedlog-github-issues-client/feedlog-github-issues-client.js
CHANGED
|
@@ -213,7 +213,7 @@ export class FeedlogGithubIssuesClient {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
render() {
|
|
216
|
-
return (h("feedlog-github-issues", { key: '
|
|
216
|
+
return (h("feedlog-github-issues", { key: '5d5bbd34f21c89b18ecb78f2411cfb825ff78d12', issues: this.issues, maxWidth: this.maxWidth, theme: this.theme, heading: this.heading, subtitle: this.subtitle, getIssueUrl: this.getIssueUrl, loading: this.loading, error: this.error, hasMore: this.hasMore, isLoadingMore: this.isLoadingMore, onFeedlogUpvote: this.handleUpvote, onFeedlogLoadMore: async () => this.loadMore() }));
|
|
217
217
|
}
|
|
218
218
|
static get is() { return "feedlog-github-issues-client"; }
|
|
219
219
|
static get encapsulation() { return "shadow"; }
|
|
@@ -397,6 +397,29 @@ export class FeedlogGithubIssuesClient {
|
|
|
397
397
|
"setter": false,
|
|
398
398
|
"reflect": false,
|
|
399
399
|
"attribute": "subtitle"
|
|
400
|
+
},
|
|
401
|
+
"getIssueUrl": {
|
|
402
|
+
"type": "unknown",
|
|
403
|
+
"mutable": false,
|
|
404
|
+
"complexType": {
|
|
405
|
+
"original": "GetIssueUrlFn",
|
|
406
|
+
"resolved": "((issue: FeedlogIssue) => string | null | undefined) | undefined",
|
|
407
|
+
"references": {
|
|
408
|
+
"GetIssueUrlFn": {
|
|
409
|
+
"location": "import",
|
|
410
|
+
"path": "@feedlog-ai/core",
|
|
411
|
+
"id": "../core/dist/index.d.ts::GetIssueUrlFn"
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"required": false,
|
|
416
|
+
"optional": true,
|
|
417
|
+
"docs": {
|
|
418
|
+
"tags": [],
|
|
419
|
+
"text": "Optional callback to resolve GitHub issue URL when githubIssueLink is not available.\nRequired because repository.owner was removed from the API for privacy."
|
|
420
|
+
},
|
|
421
|
+
"getter": false,
|
|
422
|
+
"setter": false
|
|
400
423
|
}
|
|
401
424
|
};
|
|
402
425
|
}
|