@feedlog-ai/react 0.0.39 → 0.0.41

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.ts CHANGED
@@ -5,6 +5,82 @@
5
5
  * Components properly handle complex props (objects/arrays) by setting them
6
6
  * as DOM properties rather than HTML attributes.
7
7
  */
8
+ import React from 'react';
9
+ import type { FeedlogIssue as FeedlogIssueType } from '@feedlog-ai/core';
10
+ import '@feedlog-ai/webcomponents/components/feedlog-issues-client';
11
+ import '@feedlog-ai/webcomponents/components/feedlog-issues';
12
+ import '@feedlog-ai/webcomponents/components/feedlog-issue';
13
+ import '@feedlog-ai/webcomponents/components/feedlog-issues-list';
14
+ import '@feedlog-ai/webcomponents/components/feedlog-badge';
15
+ import '@feedlog-ai/webcomponents/components/feedlog-button';
16
+ import '@feedlog-ai/webcomponents/components/feedlog-card';
8
17
  export type { FeedlogIssue } from '@feedlog-ai/core';
9
- export * from './components/stencil-generated/components.js';
18
+ export declare const FeedlogBadge: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
19
+ variant?: string;
20
+ } & React.RefAttributes<HTMLElement>>;
21
+ export declare const FeedlogButton: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
22
+ size?: string;
23
+ variant?: string;
24
+ disabled?: boolean;
25
+ type?: string;
26
+ onFeedlogClick?: (event: CustomEvent<MouseEvent>) => void;
27
+ } & React.RefAttributes<HTMLElement>>;
28
+ export declare const FeedlogCard: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
29
+ export interface FeedlogIssuesProps extends React.HTMLAttributes<HTMLElement> {
30
+ issues?: FeedlogIssueType[];
31
+ maxWidth?: string;
32
+ theme?: 'light' | 'dark';
33
+ heading?: string;
34
+ subtitle?: string;
35
+ loading?: boolean;
36
+ error?: string | null;
37
+ hasMore?: boolean;
38
+ isLoadingMore?: boolean;
39
+ onFeedlogUpvote?: (event: CustomEvent<{
40
+ issueId: string;
41
+ currentUpvoted: boolean;
42
+ currentCount: number;
43
+ }>) => void;
44
+ onFeedlogLoadMore?: (event: CustomEvent<void>) => void;
45
+ }
46
+ export declare const FeedlogIssues: React.ForwardRefExoticComponent<FeedlogIssuesProps & React.RefAttributes<HTMLElement>>;
47
+ export interface FeedlogIssuesClientProps extends React.HTMLAttributes<HTMLElement> {
48
+ apiKey: string;
49
+ endpoint?: string;
50
+ type?: 'bug' | 'enhancement';
51
+ limit?: number;
52
+ maxWidth?: string;
53
+ theme?: 'light' | 'dark';
54
+ heading?: string;
55
+ subtitle?: string;
56
+ onFeedlogUpvote?: (event: CustomEvent<{
57
+ issueId: string;
58
+ upvoted: boolean;
59
+ upvoteCount: number;
60
+ }>) => void;
61
+ onFeedlogError?: (event: CustomEvent<{
62
+ error: string;
63
+ code?: number;
64
+ }>) => void;
65
+ }
66
+ export declare const FeedlogIssuesClient: React.ForwardRefExoticComponent<FeedlogIssuesClientProps & React.RefAttributes<HTMLElement>>;
67
+ export interface FeedlogIssuesListProps extends React.HTMLAttributes<HTMLElement> {
68
+ issues?: FeedlogIssueType[];
69
+ onFeedlogUpvote?: (event: CustomEvent<{
70
+ issueId: string;
71
+ currentUpvoted: boolean;
72
+ currentCount: number;
73
+ }>) => void;
74
+ }
75
+ export declare const FeedlogIssuesList: React.ForwardRefExoticComponent<FeedlogIssuesListProps & React.RefAttributes<HTMLElement>>;
76
+ export interface FeedlogIssueProps extends React.HTMLAttributes<HTMLElement> {
77
+ issue: FeedlogIssueType;
78
+ theme?: 'light' | 'dark';
79
+ onFeedlogUpvote?: (event: CustomEvent<{
80
+ issueId: string;
81
+ currentUpvoted: boolean;
82
+ currentCount: number;
83
+ }>) => void;
84
+ }
85
+ export declare const FeedlogIssueComponent: React.ForwardRefExoticComponent<FeedlogIssueProps & React.RefAttributes<HTMLElement>>;
10
86
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sour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B,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,EAAE,OAAO,CAAC;QACxB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC,KACC,IAAI,CAAC;CACX;AAED,eAAO,MAAM,iBAAiB,4FAiB7B,CAAC;AAGF,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC1E,KAAK,EAAE,gBAAgB,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,CAChB,KAAK,EAAE,WAAW,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,cAAc,EAAE,OAAO,CAAC;QACxB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC,KACC,IAAI,CAAC;CACX;AAED,eAAO,MAAM,qBAAqB,uFAiBjC,CAAC"}
package/dist/index.js CHANGED
@@ -5,5 +5,204 @@
5
5
  * Components properly handle complex props (objects/arrays) by setting them
6
6
  * as DOM properties rather than HTML attributes.
7
7
  */
8
- export * from './components/stencil-generated/components.js';
8
+ import React, { useEffect, useRef } from 'react';
9
+ // Import custom element components - each import auto-registers the component
10
+ // and its dependencies. This uses the dist-custom-elements output which works
11
+ // correctly with modern bundlers (Vite, webpack, etc.), unlike the lazy-loading
12
+ // defineCustomElements() approach that causes 404s in production builds.
13
+ import '@feedlog-ai/webcomponents/components/feedlog-issues-client';
14
+ import '@feedlog-ai/webcomponents/components/feedlog-issues';
15
+ import '@feedlog-ai/webcomponents/components/feedlog-issue';
16
+ import '@feedlog-ai/webcomponents/components/feedlog-issues-list';
17
+ import '@feedlog-ai/webcomponents/components/feedlog-badge';
18
+ import '@feedlog-ai/webcomponents/components/feedlog-button';
19
+ import '@feedlog-ai/webcomponents/components/feedlog-card';
20
+ /**
21
+ * Helper to merge refs
22
+ */
23
+ function mergeRefs(...refs) {
24
+ return (value) => {
25
+ refs.forEach(ref => {
26
+ if (typeof ref === 'function') {
27
+ ref(value);
28
+ }
29
+ else if (ref && typeof ref === 'object') {
30
+ ref.current = value;
31
+ }
32
+ });
33
+ };
34
+ }
35
+ /**
36
+ * Converts camelCase prop names to kebab-case for custom element HTML attributes.
37
+ * Stencil SSR outputs kebab-case attributes; React uses camelCase. This ensures
38
+ * server and client output match for hydration.
39
+ */
40
+ function toKebabCase(str) {
41
+ return str.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
42
+ }
43
+ /**
44
+ * Converts primitive props to kebab-case attribute names for custom elements.
45
+ * Preserves ref, style, className, children, and suppressHydrationWarning as-is.
46
+ */
47
+ function primitivePropsToAttributes(props) {
48
+ const passthrough = new Set([
49
+ 'ref',
50
+ 'style',
51
+ 'className',
52
+ 'children',
53
+ 'suppressHydrationWarning',
54
+ ]);
55
+ const result = {};
56
+ for (const [key, value] of Object.entries(props)) {
57
+ if (value === undefined)
58
+ continue;
59
+ const attrName = passthrough.has(key) ? key : toKebabCase(key);
60
+ result[attrName] = value;
61
+ }
62
+ return result;
63
+ }
64
+ /**
65
+ * Helper to separate primitive props (strings, booleans, numbers) from complex props.
66
+ * Primitive props can be passed as HTML attributes, complex props must be set as DOM properties.
67
+ */
68
+ function separateProps(props) {
69
+ const primitiveProps = {};
70
+ const complexProps = {};
71
+ const eventProps = {};
72
+ Object.entries(props).forEach(([key, value]) => {
73
+ if (key === 'children' ||
74
+ key === 'ref' ||
75
+ key === 'style' ||
76
+ key === 'className' ||
77
+ key === 'suppressHydrationWarning') {
78
+ primitiveProps[key] = value;
79
+ }
80
+ else if (key.startsWith('on') && key[2] === key[2].toUpperCase()) {
81
+ // Event handlers
82
+ eventProps[key] = value;
83
+ }
84
+ else {
85
+ const type = typeof value;
86
+ if (type === 'string' || type === 'boolean' || type === 'number' || value === undefined) {
87
+ primitiveProps[key] = value;
88
+ }
89
+ else {
90
+ // Objects, arrays, functions
91
+ complexProps[key] = value;
92
+ }
93
+ }
94
+ });
95
+ return { primitiveProps, complexProps, eventProps };
96
+ }
97
+ /**
98
+ * Hook to sync complex props and events to a web component element
99
+ */
100
+ function useWebComponentProps(elementRef, complexProps, eventProps) {
101
+ // Track registered event listeners for cleanup
102
+ const eventListenersRef = useRef(new Map());
103
+ useEffect(() => {
104
+ const element = elementRef.current;
105
+ if (!element)
106
+ return;
107
+ // Set complex props as DOM properties
108
+ Object.entries(complexProps).forEach(([key, value]) => {
109
+ element[key] = value;
110
+ });
111
+ // eslint-disable-next-line react-hooks/exhaustive-deps
112
+ }, [complexProps]);
113
+ useEffect(() => {
114
+ const element = elementRef.current;
115
+ if (!element)
116
+ return;
117
+ const currentListeners = eventListenersRef.current;
118
+ // Remove old listeners
119
+ currentListeners.forEach((listener, eventName) => {
120
+ element.removeEventListener(eventName, listener);
121
+ });
122
+ currentListeners.clear();
123
+ // Add new listeners
124
+ Object.entries(eventProps).forEach(([key, handler]) => {
125
+ if (typeof handler === 'function') {
126
+ // Convert onFeedlogUpvote -> feedlogUpvote
127
+ const eventName = key.substring(2);
128
+ const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
129
+ const listener = handler;
130
+ element.addEventListener(eventNameLc, listener);
131
+ currentListeners.set(eventNameLc, listener);
132
+ }
133
+ });
134
+ return () => {
135
+ currentListeners.forEach((listener, eventName) => {
136
+ element.removeEventListener(eventName, listener);
137
+ });
138
+ currentListeners.clear();
139
+ };
140
+ // eslint-disable-next-line react-hooks/exhaustive-deps
141
+ }, [eventProps]);
142
+ }
143
+ // Simple React wrappers for web components that only have primitive props
144
+ export const FeedlogBadge = React.forwardRef(({ children, ...props }, ref) => React.createElement('feedlog-badge', { ...props, ref }, children));
145
+ FeedlogBadge.displayName = 'FeedlogBadge';
146
+ export const FeedlogButton = React.forwardRef(({ children, onFeedlogClick, ...props }, ref) => {
147
+ const internalRef = useRef(null);
148
+ useEffect(() => {
149
+ const element = internalRef.current;
150
+ if (!element || !onFeedlogClick)
151
+ return;
152
+ const handler = onFeedlogClick;
153
+ element.addEventListener('feedlogClick', handler);
154
+ return () => element.removeEventListener('feedlogClick', handler);
155
+ }, [onFeedlogClick]);
156
+ return React.createElement('feedlog-button', { ...props, ref: mergeRefs(ref, internalRef) }, children);
157
+ });
158
+ FeedlogButton.displayName = 'FeedlogButton';
159
+ export const FeedlogCard = React.forwardRef(({ children, ...props }, ref) => React.createElement('feedlog-card', { ...props, ref }, children));
160
+ FeedlogCard.displayName = 'FeedlogCard';
161
+ export const FeedlogIssues = React.forwardRef(({ children, ...props }, ref) => {
162
+ const internalRef = useRef(null);
163
+ const { primitiveProps, complexProps, eventProps } = separateProps(props);
164
+ useWebComponentProps(internalRef, complexProps, eventProps);
165
+ return React.createElement('feedlog-issues', {
166
+ ...primitivePropsToAttributes(primitiveProps),
167
+ ref: mergeRefs(ref, internalRef),
168
+ suppressHydrationWarning: true,
169
+ }, children);
170
+ });
171
+ FeedlogIssues.displayName = 'FeedlogIssues';
172
+ export const FeedlogIssuesClient = React.forwardRef(({ children, ...props }, ref) => {
173
+ const internalRef = useRef(null);
174
+ const { primitiveProps, complexProps, eventProps } = separateProps(props);
175
+ useWebComponentProps(internalRef, complexProps, eventProps);
176
+ return React.createElement('feedlog-issues-client', {
177
+ ...primitivePropsToAttributes(primitiveProps),
178
+ ref: mergeRefs(ref, internalRef),
179
+ suppressHydrationWarning: true,
180
+ }, children);
181
+ });
182
+ FeedlogIssuesClient.displayName = 'FeedlogIssuesClient';
183
+ export const FeedlogIssuesList = React.forwardRef(({ children, ...props }, ref) => {
184
+ const internalRef = useRef(null);
185
+ const { primitiveProps, complexProps, eventProps } = separateProps(props);
186
+ useWebComponentProps(internalRef, complexProps, eventProps);
187
+ return React.createElement('feedlog-issues-list', {
188
+ ...primitivePropsToAttributes(primitiveProps),
189
+ ref: mergeRefs(ref, internalRef),
190
+ suppressHydrationWarning: true,
191
+ }, children);
192
+ });
193
+ FeedlogIssuesList.displayName = 'FeedlogIssuesList';
194
+ export const FeedlogIssueComponent = React.forwardRef(({ children, ...props }, ref) => {
195
+ const internalRef = useRef(null);
196
+ const { primitiveProps, complexProps, eventProps } = separateProps(props);
197
+ useWebComponentProps(internalRef, complexProps, eventProps);
198
+ return React.createElement('feedlog-issue', {
199
+ ...primitivePropsToAttributes(primitiveProps),
200
+ ref: mergeRefs(ref, internalRef),
201
+ suppressHydrationWarning: true,
202
+ }, children);
203
+ });
204
+ FeedlogIssueComponent.displayName = 'FeedlogIssue';
205
+ // Custom elements are auto-defined via the import of '@feedlog-ai/webcomponents/custom-elements' above.
206
+ // No need for defineCustomElements() - the dist-custom-elements bundle handles registration
207
+ // automatically when imported, and works correctly with modern bundlers like Vite.
9
208
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,cAAc,8CAA8C,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAGjD,8EAA8E;AAC9E,8EAA8E;AAC9E,gFAAgF;AAChF,yEAAyE;AACzE,OAAO,4DAA4D,CAAC;AACpE,OAAO,qDAAqD,CAAC;AAC7D,OAAO,oDAAoD,CAAC;AAC5D,OAAO,0DAA0D,CAAC;AAClE,OAAO,oDAAoD,CAAC;AAC5D,OAAO,qDAAqD,CAAC;AAC7D,OAAO,mDAAmD,CAAC;AAK3D;;GAEG;AACH,SAAS,SAAS,CAAI,GAAG,IAAkC;IACzD,OAAO,CAAC,KAAQ,EAAE,EAAE;QAClB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACjB,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE,CAAC;gBAC9B,GAAG,CAAC,KAAK,CAAC,CAAC;YACb,CAAC;iBAAM,IAAI,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;gBACzC,G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,CAAC;QAChC,wBAAwB,EAAE,IAAI;KACM,EACtC,QAAQ,CACT,CAAC;AACJ,CAAC,CACF,CAAC;AACF,qBAAqB,CAAC,WAAW,GAAG,cAAc,CAAC;AAEnD,wGAAwG;AACxG,4FAA4F;AAC5F,mFAAmF"}
@@ -4,5 +4,5 @@
4
4
  * (e.g. apiKey) as their identifier names. Components with complex/runtime
5
5
  * props (FeedlogIssuesClient, FeedlogIssueComponent, etc.) are excluded.
6
6
  */
7
- export { FeedlogBadge, FeedlogButton, FeedlogCard } from './ssr-safe-components.js';
7
+ export { FeedlogBadge, FeedlogButton, FeedlogCard } from './index.js';
8
8
  //# sourceMappingURL=ssr-components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ssr-components.d.ts","sourceRoot":"","sources":["../src/ssr-components.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"ssr-components.d.ts","sourceRoot":"","sources":["../src/ssr-components.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
@@ -4,5 +4,5 @@
4
4
  * (e.g. apiKey) as their identifier names. Components with complex/runtime
5
5
  * props (FeedlogIssuesClient, FeedlogIssueComponent, etc.) are excluded.
6
6
  */
7
- export { FeedlogBadge, FeedlogButton, FeedlogCard } from './ssr-safe-components.js';
7
+ export { FeedlogBadge, FeedlogButton, FeedlogCard } from './index.js';
8
8
  //# sourceMappingURL=ssr-components.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ssr-components.js","sourceRoot":"","sources":["../src/ssr-components.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"ssr-components.js","sourceRoot":"","sources":["../src/ssr-components.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedlog-ai/react",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "description": "React bindings for Feedlog Toolkit Web Components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -48,8 +48,7 @@
48
48
  "react-dom": ">=17.0.0"
49
49
  },
50
50
  "dependencies": {
51
- "@feedlog-ai/webcomponents": "^0.0.39",
52
- "@stencil/react-output-target": "^1.4.0"
51
+ "@feedlog-ai/webcomponents": "^0.0.41"
53
52
  },
54
53
  "devDependencies": {
55
54
  "@jest/test-sequencer": "^29.7.0",