@feedlog-ai/webcomponents 0.0.8 → 0.0.10

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.
Files changed (39) hide show
  1. package/dist/cjs/feedlog-badge_3.cjs.entry.js +14 -15
  2. package/dist/cjs/feedlog-github-issues-client.cjs.entry.js +1 -1
  3. package/dist/cjs/feedlog-github-issues.cjs.entry.js +5 -2
  4. package/dist/cjs/feedlog-toolkit.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/collection/collection-manifest.json +1 -1
  7. package/dist/collection/components/feedlog-github-issues/feedlog-github-issues.css +36 -1
  8. package/dist/collection/components/feedlog-github-issues/feedlog-github-issues.js +7 -4
  9. package/dist/collection/components/feedlog-github-issues-client/feedlog-github-issues-client.js +1 -1
  10. package/dist/collection/components/{feedlog-issues-list/feedlog-issues-list.css → feedlog-issue/feedlog-issue.css} +0 -13
  11. package/dist/collection/components/{feedlog-issues-list/feedlog-issues-list.js → feedlog-issue/feedlog-issue.js} +24 -26
  12. package/dist/collection/components/feedlog-issue/feedlog-issue.stories.js +113 -0
  13. package/dist/collection/components/index.js +1 -1
  14. package/dist/components/feedlog-github-issues-client.js +1 -1
  15. package/dist/components/feedlog-github-issues.js +1 -1
  16. package/dist/components/{feedlog-issues-list.d.ts → feedlog-issue.d.ts} +4 -4
  17. package/dist/components/feedlog-issue.js +1 -0
  18. package/dist/components/p-5qPAHrMz.js +1 -0
  19. package/dist/components/p-DaNa3wCt.js +1 -0
  20. package/dist/esm/feedlog-badge_3.entry.js +14 -15
  21. package/dist/esm/feedlog-github-issues-client.entry.js +1 -1
  22. package/dist/esm/feedlog-github-issues.entry.js +5 -2
  23. package/dist/esm/feedlog-toolkit.js +1 -1
  24. package/dist/esm/loader.js +1 -1
  25. package/dist/feedlog-toolkit/feedlog-toolkit.esm.js +1 -1
  26. package/dist/feedlog-toolkit/{p-964cfcd8.entry.js → p-8c5e3a0b.entry.js} +1 -1
  27. package/dist/feedlog-toolkit/p-95fea2f4.entry.js +1 -0
  28. package/dist/feedlog-toolkit/{p-125595a1.entry.js → p-bbb8c3b6.entry.js} +1 -1
  29. package/dist/types/components/feedlog-github-issues/feedlog-github-issues.d.ts +4 -3
  30. package/dist/types/components/feedlog-github-issues-client/feedlog-github-issues-client.d.ts +2 -2
  31. package/dist/types/components/{feedlog-issues-list/feedlog-issues-list.d.ts → feedlog-issue/feedlog-issue.d.ts} +8 -8
  32. package/dist/types/components/feedlog-issue/feedlog-issue.stories.d.ts +12 -0
  33. package/dist/types/components/index.d.ts +1 -1
  34. package/dist/types/components.d.ts +36 -38
  35. package/package.json +2 -2
  36. package/dist/components/feedlog-issues-list.js +0 -1
  37. package/dist/components/p-BVUX_uVS.js +0 -1
  38. package/dist/components/p-DdMGlfRg.js +0 -1
  39. package/dist/feedlog-toolkit/p-f16f2491.entry.js +0 -1
@@ -5,8 +5,8 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
- import { FeedlogIssue } from "@feedlog-ai/core";
9
- export { FeedlogIssue } from "@feedlog-ai/core";
8
+ import { FeedlogIssue as FeedlogIssueType } from "@feedlog-ai/core";
9
+ export { FeedlogIssue as FeedlogIssueType } from "@feedlog-ai/core";
10
10
  export namespace Components {
11
11
  /**
12
12
  * Feedlog Badge Component
@@ -54,7 +54,7 @@ export namespace Components {
54
54
  /**
55
55
  * Feedlog GitHub Issues Component
56
56
  * Component for displaying GitHub issues with support for bugs and enhancements.
57
- * This component handles the UI rendering and delegates to feedlog-issues-list for the actual list.
57
+ * Includes full list rendering, loading/error states, and pagination support.
58
58
  */
59
59
  interface FeedlogGithubIssues {
60
60
  /**
@@ -80,7 +80,7 @@ export namespace Components {
80
80
  * Array of issues to display
81
81
  * @default []
82
82
  */
83
- "issues": FeedlogIssue[];
83
+ "issues": FeedlogIssueType[];
84
84
  /**
85
85
  * Loading state - shows loading indicator when true
86
86
  * @default false
@@ -143,15 +143,14 @@ export namespace Components {
143
143
  "type"?: 'bug' | 'enhancement';
144
144
  }
145
145
  /**
146
- * Feedlog Issues List Component
147
- * A component for displaying a list of GitHub issues with support for bugs and enhancements.
146
+ * Feedlog Issue Component
147
+ * A component for displaying a single GitHub issue.
148
148
  */
149
- interface FeedlogIssuesList {
149
+ interface FeedlogIssue {
150
150
  /**
151
- * Array of issues to display
152
- * @default []
151
+ * The issue to display
153
152
  */
154
- "issues": FeedlogIssue[];
153
+ "issue": FeedlogIssueType;
155
154
  /**
156
155
  * Theme variant: 'light' or 'dark'
157
156
  * @default 'light'
@@ -171,9 +170,9 @@ export interface FeedlogGithubIssuesClientCustomEvent<T> extends CustomEvent<T>
171
170
  detail: T;
172
171
  target: HTMLFeedlogGithubIssuesClientElement;
173
172
  }
174
- export interface FeedlogIssuesListCustomEvent<T> extends CustomEvent<T> {
173
+ export interface FeedlogIssueCustomEvent<T> extends CustomEvent<T> {
175
174
  detail: T;
176
- target: HTMLFeedlogIssuesListElement;
175
+ target: HTMLFeedlogIssueElement;
177
176
  }
178
177
  declare global {
179
178
  /**
@@ -228,7 +227,7 @@ declare global {
228
227
  /**
229
228
  * Feedlog GitHub Issues Component
230
229
  * Component for displaying GitHub issues with support for bugs and enhancements.
231
- * This component handles the UI rendering and delegates to feedlog-issues-list for the actual list.
230
+ * Includes full list rendering, loading/error states, and pagination support.
232
231
  */
233
232
  interface HTMLFeedlogGithubIssuesElement extends Components.FeedlogGithubIssues, HTMLStencilElement {
234
233
  addEventListener<K extends keyof HTMLFeedlogGithubIssuesElementEventMap>(type: K, listener: (this: HTMLFeedlogGithubIssuesElement, ev: FeedlogGithubIssuesCustomEvent<HTMLFeedlogGithubIssuesElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -267,7 +266,7 @@ declare global {
267
266
  prototype: HTMLFeedlogGithubIssuesClientElement;
268
267
  new (): HTMLFeedlogGithubIssuesClientElement;
269
268
  };
270
- interface HTMLFeedlogIssuesListElementEventMap {
269
+ interface HTMLFeedlogIssueElementEventMap {
271
270
  "feedlogUpvote": {
272
271
  issueId: string;
273
272
  currentUpvoted: boolean;
@@ -275,22 +274,22 @@ declare global {
275
274
  };
276
275
  }
277
276
  /**
278
- * Feedlog Issues List Component
279
- * A component for displaying a list of GitHub issues with support for bugs and enhancements.
277
+ * Feedlog Issue Component
278
+ * A component for displaying a single GitHub issue.
280
279
  */
281
- interface HTMLFeedlogIssuesListElement extends Components.FeedlogIssuesList, HTMLStencilElement {
282
- addEventListener<K extends keyof HTMLFeedlogIssuesListElementEventMap>(type: K, listener: (this: HTMLFeedlogIssuesListElement, ev: FeedlogIssuesListCustomEvent<HTMLFeedlogIssuesListElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
280
+ interface HTMLFeedlogIssueElement extends Components.FeedlogIssue, HTMLStencilElement {
281
+ addEventListener<K extends keyof HTMLFeedlogIssueElementEventMap>(type: K, listener: (this: HTMLFeedlogIssueElement, ev: FeedlogIssueCustomEvent<HTMLFeedlogIssueElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
283
282
  addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
284
283
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
285
284
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
286
- removeEventListener<K extends keyof HTMLFeedlogIssuesListElementEventMap>(type: K, listener: (this: HTMLFeedlogIssuesListElement, ev: FeedlogIssuesListCustomEvent<HTMLFeedlogIssuesListElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
285
+ removeEventListener<K extends keyof HTMLFeedlogIssueElementEventMap>(type: K, listener: (this: HTMLFeedlogIssueElement, ev: FeedlogIssueCustomEvent<HTMLFeedlogIssueElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
287
286
  removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
288
287
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
289
288
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
290
289
  }
291
- var HTMLFeedlogIssuesListElement: {
292
- prototype: HTMLFeedlogIssuesListElement;
293
- new (): HTMLFeedlogIssuesListElement;
290
+ var HTMLFeedlogIssueElement: {
291
+ prototype: HTMLFeedlogIssueElement;
292
+ new (): HTMLFeedlogIssueElement;
294
293
  };
295
294
  interface HTMLElementTagNameMap {
296
295
  "feedlog-badge": HTMLFeedlogBadgeElement;
@@ -298,7 +297,7 @@ declare global {
298
297
  "feedlog-card": HTMLFeedlogCardElement;
299
298
  "feedlog-github-issues": HTMLFeedlogGithubIssuesElement;
300
299
  "feedlog-github-issues-client": HTMLFeedlogGithubIssuesClientElement;
301
- "feedlog-issues-list": HTMLFeedlogIssuesListElement;
300
+ "feedlog-issue": HTMLFeedlogIssueElement;
302
301
  }
303
302
  }
304
303
  declare namespace LocalJSX {
@@ -352,7 +351,7 @@ declare namespace LocalJSX {
352
351
  /**
353
352
  * Feedlog GitHub Issues Component
354
353
  * Component for displaying GitHub issues with support for bugs and enhancements.
355
- * This component handles the UI rendering and delegates to feedlog-issues-list for the actual list.
354
+ * Includes full list rendering, loading/error states, and pagination support.
356
355
  */
357
356
  interface FeedlogGithubIssues {
358
357
  /**
@@ -378,7 +377,7 @@ declare namespace LocalJSX {
378
377
  * Array of issues to display
379
378
  * @default []
380
379
  */
381
- "issues"?: FeedlogIssue[];
380
+ "issues"?: FeedlogIssueType[];
382
381
  /**
383
382
  * Loading state - shows loading indicator when true
384
383
  * @default false
@@ -461,19 +460,18 @@ declare namespace LocalJSX {
461
460
  "type"?: 'bug' | 'enhancement';
462
461
  }
463
462
  /**
464
- * Feedlog Issues List Component
465
- * A component for displaying a list of GitHub issues with support for bugs and enhancements.
463
+ * Feedlog Issue Component
464
+ * A component for displaying a single GitHub issue.
466
465
  */
467
- interface FeedlogIssuesList {
466
+ interface FeedlogIssue {
468
467
  /**
469
- * Array of issues to display
470
- * @default []
468
+ * The issue to display
471
469
  */
472
- "issues"?: FeedlogIssue[];
470
+ "issue": FeedlogIssueType;
473
471
  /**
474
- * Event emitted when an issue is upvoted
472
+ * Event emitted when the issue is upvoted
475
473
  */
476
- "onFeedlogUpvote"?: (event: FeedlogIssuesListCustomEvent<{
474
+ "onFeedlogUpvote"?: (event: FeedlogIssueCustomEvent<{
477
475
  issueId: string;
478
476
  currentUpvoted: boolean;
479
477
  currentCount: number;
@@ -490,7 +488,7 @@ declare namespace LocalJSX {
490
488
  "feedlog-card": FeedlogCard;
491
489
  "feedlog-github-issues": FeedlogGithubIssues;
492
490
  "feedlog-github-issues-client": FeedlogGithubIssuesClient;
493
- "feedlog-issues-list": FeedlogIssuesList;
491
+ "feedlog-issue": FeedlogIssue;
494
492
  }
495
493
  }
496
494
  export { LocalJSX as JSX };
@@ -515,7 +513,7 @@ declare module "@stencil/core" {
515
513
  /**
516
514
  * Feedlog GitHub Issues Component
517
515
  * Component for displaying GitHub issues with support for bugs and enhancements.
518
- * This component handles the UI rendering and delegates to feedlog-issues-list for the actual list.
516
+ * Includes full list rendering, loading/error states, and pagination support.
519
517
  */
520
518
  "feedlog-github-issues": LocalJSX.FeedlogGithubIssues & JSXBase.HTMLAttributes<HTMLFeedlogGithubIssuesElement>;
521
519
  /**
@@ -525,10 +523,10 @@ declare module "@stencil/core" {
525
523
  */
526
524
  "feedlog-github-issues-client": LocalJSX.FeedlogGithubIssuesClient & JSXBase.HTMLAttributes<HTMLFeedlogGithubIssuesClientElement>;
527
525
  /**
528
- * Feedlog Issues List Component
529
- * A component for displaying a list of GitHub issues with support for bugs and enhancements.
526
+ * Feedlog Issue Component
527
+ * A component for displaying a single GitHub issue.
530
528
  */
531
- "feedlog-issues-list": LocalJSX.FeedlogIssuesList & JSXBase.HTMLAttributes<HTMLFeedlogIssuesListElement>;
529
+ "feedlog-issue": LocalJSX.FeedlogIssue & JSXBase.HTMLAttributes<HTMLFeedlogIssueElement>;
532
530
  }
533
531
  }
534
532
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedlog-ai/webcomponents",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Stencil web components for Feedlog Toolkit - Data visualization components",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "clean": "rm -rf dist loader"
25
25
  },
26
26
  "dependencies": {
27
- "@feedlog-ai/core": "^0.0.8"
27
+ "@feedlog-ai/core": "^0.0.10"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@stencil/core": "^4.0.0",
@@ -1 +0,0 @@
1
- import{F as o,d as s}from"./p-BVUX_uVS.js";const p=o,r=s;export{p as FeedlogIssuesList,r as defineCustomElement}
@@ -1 +0,0 @@
1
- import{t as e,p as o,H as r,c as t,h as s,a as d}from"./index.js";import{d as l}from"./p-CHtSMTyP.js";const a=()=>s("svg",{class:"upvote-icon filled",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"},s("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"})),i=()=>s("svg",{class:"upvote-icon outline",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},s("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"})),n=o(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.feedlogUpvote=t(this,"feedlogUpvote"),this.issues=[],this.theme="light",this.handleUpvote=(e,o)=>{e.stopPropagation(),this.feedlogUpvote.emit({issueId:o.id,currentUpvoted:o.hasUpvoted,currentCount:o.upvoteCount})}}render(){return s(d,{key:"81b2b973309388f09d20629da416b92545567618",class:"dark"===this.theme?"dark":""},s("div",{key:"ed22c88736ee13621f39b3095f71c361b0d04b44",class:"issues-list"},0===this.issues.length?s("div",{class:"empty-state"},s("p",null,"No issues found")):this.issues.map((e=>s("div",{key:e.id,class:"issue-card"},s("div",{class:"issue-content"},s("div",{class:"issue-header"},s("div",{class:"issue-type-badge"},"bug"===e.type?s("feedlog-badge",{variant:"destructive"},"Bug"):s("feedlog-badge",{variant:"enhancement"},"Enhancement")),e.pinnedAt&&s("div",{class:"pinned-indicator",title:"Pinned issue"},"📌")),s("div",{class:"issue-main"},s("div",{class:"issue-details"},s("h3",{class:"issue-title"},e.title),s("p",{class:"issue-body"},e.body),s("div",{class:"issue-repository"},s("span",{class:"repo-name"},e.repository.owner,"/",e.repository.name))),s("button",{class:"upvote-button "+(e.hasUpvoted?"upvoted":""),onClick:o=>this.handleUpvote(o,e),title:e.hasUpvoted?"Remove upvote":"Upvote this issue"},s(e.hasUpvoted?a:i,null),s("span",{class:"upvote-count"},e.upvoteCount))),s("div",{class:"issue-footer"},s("span",{class:"issue-date",title:`Updated: ${e.updatedAt}`},"Updated ",this.formatDate(e.updatedAt)),s("span",{class:"issue-date",title:`Created: ${e.createdAt}`},"Created ",this.formatDate(e.createdAt)))))))))}formatDate(e){try{const o=new Date(e),r=new Date,t=Math.floor((r.getTime()-o.getTime())/1e3);return t<60?"just now":t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:t<604800?`${Math.floor(t/86400)}d ago`:t<2592e3?`${Math.floor(t/604800)}w ago`:o.toLocaleDateString()}catch(e){return"unknown date"}}static get style(){return":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}:host(.dark){--feedlog-background:oklch(0.145 0 0);--feedlog-foreground:oklch(0.985 0 0);--feedlog-card:oklch(0.145 0 0);--feedlog-card-foreground:oklch(0.985 0 0);--feedlog-muted:oklch(0.269 0 0);--feedlog-muted-foreground:oklch(0.708 0 0);--feedlog-border:oklch(0.269 0 0);--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)}.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}.issue-card{background-color:var(--feedlog-card);border:1px solid var(--feedlog-border);border-radius:var(--feedlog-radius);box-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);transition:box-shadow 0.15s ease;position:relative}.issue-card:hover{box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)}.issue-content{padding:1.5rem;display:flex;flex-direction:column;gap:1rem}.issue-header{display:flex;align-items:center;gap:0.5rem;justify-content:space-between}.issue-type-badge{width:fit-content}.pinned-indicator{font-size:1rem;opacity:0.7}.issue-main{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.issue-details{flex:1;min-width:0}.issue-title{color:var(--feedlog-card-foreground);font-size:0.875rem;font-weight:600;margin:0 0 0.375rem 0;line-height:1.4;word-break:break-word}.issue-body{color:var(--feedlog-muted-foreground);font-size:0.75rem;line-height:1.625;margin:0 0 0.75rem 0;word-break:break-word;white-space:pre-wrap}.issue-repository{display:flex;align-items:center;gap:0.5rem;font-size:0.75rem;color:var(--feedlog-muted-foreground);margin-bottom:0.5rem}.repo-name{font-weight:500}.github-number{color:var(--feedlog-blue-600);font-weight:600}:host(.dark) .github-number{color:var(--feedlog-blue-400)}.upvote-button{display:flex;flex-direction:column;align-items:center;gap:0.125rem;padding:0.5rem 0.75rem;border-radius:0.5rem;background-color:var(--feedlog-muted);border:1px solid transparent;cursor:pointer;transition:all 0.15s ease;flex-shrink:0;font-size:0.75rem;font-weight:600}.upvote-button:hover{background-color:var(--feedlog-blue-100);border-color:var(--feedlog-blue-400)}.upvote-button.upvoted{background-color:var(--feedlog-red-100);border-color:var(--feedlog-red-400)}.upvote-button.upvoted:hover{background-color:var(--feedlog-red-100);border-color:var(--feedlog-red-600)}:host(.dark) .upvote-button:hover{background-color:var(--feedlog-blue-900-30);border-color:var(--feedlog-blue-600)}:host(.dark) .upvote-button.upvoted{background-color:var(--feedlog-red-900-30);border-color:var(--feedlog-red-600)}.upvote-icon{width:1rem;height:1rem;stroke-width:2}.upvote-icon.filled{color:var(--feedlog-red-600)}.upvote-icon.outline{color:var(--feedlog-blue-600)}:host(.dark) .upvote-icon.outline{color:var(--feedlog-blue-400)}.upvote-count{font-size:0.75rem;font-weight:600;color:var(--feedlog-card-foreground)}.issue-footer{display:flex;flex-direction:column;gap:0.25rem;font-size:0.75rem}.issue-date{color:var(--feedlog-muted-foreground);cursor:help}"}},[1,"feedlog-issues-list",{issues:[16],theme:[1]}]);function u(){"undefined"!=typeof customElements&&["feedlog-issues-list","feedlog-badge"].forEach((o=>{switch(o){case"feedlog-issues-list":customElements.get(e(o))||customElements.define(e(o),n);break;case"feedlog-badge":customElements.get(e(o))||l()}}))}u();export{n as F,u as d}
@@ -1 +0,0 @@
1
- import{t as e,p as s,H as t,c as o,h as d,a as i}from"./index.js";import{d as a}from"./p-CHtSMTyP.js";import{d as r}from"./p-DMdb-G26.js";import{d as c}from"./p-BVUX_uVS.js";const l=s(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.feedlogUpvote=o(this,"feedlogUpvote"),this.feedlogLoadMore=o(this,"feedlogLoadMore"),this.issues=[],this.maxWidth="42rem",this.theme="light",this.loading=!1,this.error=null,this.hasMore=!1,this.isLoadingMore=!1,this.currentTheme="light",this.handleUpvote=e=>{e.stopPropagation(),this.feedlogUpvote.emit(e.detail)},this.handleLoadMore=()=>{this.feedlogLoadMore.emit()}}componentWillLoad(){this.currentTheme=this.theme}render(){return d(i,{key:"57a57d901c1c45d66e6fe3658b3fbcbce6282018",class:"dark"===this.currentTheme?"dark":""},d("div",{key:"7ffe5de2a145065f0e58f5d1525aee5e5770806c",class:"github-issues-container",style:{maxWidth:this.maxWidth}},(this.heading||this.subtitle)&&d("header",{key:"413bf7d4c519f94f411ac9fc09e6776c14806871",class:"issues-header"},d("div",{key:"481b2feb7b34089e9cd69e602d5a8a1dc4ce88ec",class:"header-content"},this.heading&&d("h1",{key:"267a0cde7d18ad560c59c2a80150b9a0d5b613d5",class:"issues-title"},this.heading),this.subtitle&&d("p",{key:"6f71de0f4ac2b7c0b89cd24b24196e9a9a6576b3",class:"issues-subtitle"},this.subtitle))),this.loading&&d("div",{key:"6f9c52861aca5b5bd2137cf0ad929b13e7d74539",class:"loading-state"},d("p",{key:"d2a82cb61df5595fd74c5c9f6bbae825a4b2397c"},"Loading issues...")),this.error&&d("div",{key:"cd7ceea5eb432edc239ebf394661f659f04545d4",class:"error-state"},d("p",{key:"09657cce843d286cee8bdcf5c05aa5ffc35267f6"},"Error: ",this.error)),!this.loading&&!this.error&&d("div",{key:"73310effa8344b29e21b473b8cb64fee053eae26"},d("feedlog-issues-list",{key:"17183fa9301d1cdecaed3dcf9c21addd8871111b",issues:this.issues,theme:this.currentTheme,onFeedlogUpvote:this.handleUpvote}),this.hasMore&&d("div",{key:"9c7ef450db1b12f933f1ed83c6a5e7b8275b35b1",class:"load-more-container"},d("feedlog-button",{key:"77d0bf2d339aaaabf8233752c923a224c120ae9d",onFeedlogClick:this.handleLoadMore,disabled:this.isLoadingMore,variant:"outline"},this.isLoadingMore?"Loading...":"Load More Issues")))))}static get style(){return":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-muted-foreground:#717182;--feedlog-destructive:#d4183d;--feedlog-padding:2rem}:host(.dark){--feedlog-background:oklch(0.145 0 0);--feedlog-foreground:oklch(0.985 0 0);--feedlog-muted-foreground:oklch(0.708 0 0);--feedlog-destructive:oklch(0.637 0.237 25.331)}.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)}.load-more-container{display:flex;justify-content:center;padding:2rem 0;gap:1rem}"}},[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"],currentTheme:[32]}]);function f(){"undefined"!=typeof customElements&&["feedlog-github-issues","feedlog-badge","feedlog-button","feedlog-issues-list"].forEach((s=>{switch(s){case"feedlog-github-issues":customElements.get(e(s))||customElements.define(e(s),l);break;case"feedlog-badge":customElements.get(e(s))||a();break;case"feedlog-button":customElements.get(e(s))||r();break;case"feedlog-issues-list":customElements.get(e(s))||c()}}))}f();export{l as F,f as d}
@@ -1 +0,0 @@
1
- import{r as e,c as s,h as t,H as d}from"./p-CkB6Yzeb.js";const o=class{constructor(t){e(this,t),this.feedlogUpvote=s(this,"feedlogUpvote"),this.feedlogLoadMore=s(this,"feedlogLoadMore"),this.issues=[],this.maxWidth="42rem",this.theme="light",this.loading=!1,this.error=null,this.hasMore=!1,this.isLoadingMore=!1,this.currentTheme="light",this.handleUpvote=e=>{e.stopPropagation(),this.feedlogUpvote.emit(e.detail)},this.handleLoadMore=()=>{this.feedlogLoadMore.emit()}}componentWillLoad(){this.currentTheme=this.theme}render(){return t(d,{key:"57a57d901c1c45d66e6fe3658b3fbcbce6282018",class:"dark"===this.currentTheme?"dark":""},t("div",{key:"7ffe5de2a145065f0e58f5d1525aee5e5770806c",class:"github-issues-container",style:{maxWidth:this.maxWidth}},(this.heading||this.subtitle)&&t("header",{key:"413bf7d4c519f94f411ac9fc09e6776c14806871",class:"issues-header"},t("div",{key:"481b2feb7b34089e9cd69e602d5a8a1dc4ce88ec",class:"header-content"},this.heading&&t("h1",{key:"267a0cde7d18ad560c59c2a80150b9a0d5b613d5",class:"issues-title"},this.heading),this.subtitle&&t("p",{key:"6f71de0f4ac2b7c0b89cd24b24196e9a9a6576b3",class:"issues-subtitle"},this.subtitle))),this.loading&&t("div",{key:"6f9c52861aca5b5bd2137cf0ad929b13e7d74539",class:"loading-state"},t("p",{key:"d2a82cb61df5595fd74c5c9f6bbae825a4b2397c"},"Loading issues...")),this.error&&t("div",{key:"cd7ceea5eb432edc239ebf394661f659f04545d4",class:"error-state"},t("p",{key:"09657cce843d286cee8bdcf5c05aa5ffc35267f6"},"Error: ",this.error)),!this.loading&&!this.error&&t("div",{key:"73310effa8344b29e21b473b8cb64fee053eae26"},t("feedlog-issues-list",{key:"17183fa9301d1cdecaed3dcf9c21addd8871111b",issues:this.issues,theme:this.currentTheme,onFeedlogUpvote:this.handleUpvote}),this.hasMore&&t("div",{key:"9c7ef450db1b12f933f1ed83c6a5e7b8275b35b1",class:"load-more-container"},t("feedlog-button",{key:"77d0bf2d339aaaabf8233752c923a224c120ae9d",onFeedlogClick:this.handleLoadMore,disabled:this.isLoadingMore,variant:"outline"},this.isLoadingMore?"Loading...":"Load More Issues")))))}};o.style=":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-muted-foreground:#717182;--feedlog-destructive:#d4183d;--feedlog-padding:2rem}:host(.dark){--feedlog-background:oklch(0.145 0 0);--feedlog-foreground:oklch(0.985 0 0);--feedlog-muted-foreground:oklch(0.708 0 0);--feedlog-destructive:oklch(0.637 0.237 25.331)}.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)}.load-more-container{display:flex;justify-content:center;padding:2rem 0;gap:1rem}";export{o as feedlog_github_issues}