@feedlog-ai/react 0.0.42 → 0.0.44

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.
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,oDAAoD,CAAC;AAC5D,OAAO,qDAAqD,CAAC;AAC7D,OAAO,mDAAmD,CAAC;AAC3D,OAAO,oDAAoD,CAAC;AAC5D,OAAO,qDAAqD,CAAC;AAC7D,OAAO,4DAA4D,CAAC;AACpE,OAAO,0DAA0D,CAAC;AAElE,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,eAAO,MAAM,YAAY,GAAI,wBAG1B,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAR,MAAM;WACF,CAAC;AAExD,eAAO,MAAM,aAAa,GAAI,wBAG3B,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAC/B,CAAC"}
package/dist/server.js CHANGED
@@ -1,12 +1,14 @@
1
1
  import React from 'react';
2
- // Import custom elements so the browser bundle still registers them for hydration.
2
+ /**
3
+ * SSR entry for `@feedlog-ai/react/ssr-components` (Badge, Button, Card only).
4
+ * Import only these custom elements so the server bundle does not pull in
5
+ * issues/DOMPurify code that references the browser global `self` (breaks Node SSR).
6
+ * Other wrappers live in `./index` and load in Client Components.
7
+ */
8
+ import '@feedlog-ai/core/ssr-globals';
3
9
  import '@feedlog-ai/webcomponents/components/feedlog-badge';
4
10
  import '@feedlog-ai/webcomponents/components/feedlog-button';
5
11
  import '@feedlog-ai/webcomponents/components/feedlog-card';
6
- import '@feedlog-ai/webcomponents/components/feedlog-issue';
7
- import '@feedlog-ai/webcomponents/components/feedlog-issues';
8
- import '@feedlog-ai/webcomponents/components/feedlog-issues-client';
9
- import '@feedlog-ai/webcomponents/components/feedlog-issues-list';
10
12
  export const FeedlogBadge = ({ children, ...props }) => React.createElement('feedlog-badge', props, children);
11
13
  export const FeedlogButton = ({ children, ...props }) => React.createElement('feedlog-button', props, children);
12
14
  export const FeedlogCard = ({ children, ...props }) => React.createElement('feedlog-card', props, children);
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,mFAAmF;AACnF,OAAO,oDAAoD,CAAC;AAC5D,OAAO,qDAAqD,CAAC;AAC7D,OAAO,mDAAmD,CAAC;AAC3D,OAAO,oDAAoD,CAAC;AAC5D,OAAO,qDAAqD,CAAC;AAC7D,OAAO,4DAA4D,CAAC;AACpE,OAAO,0DAA0D,CAAC;AAIlE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,QAAQ,EACR,GAAG,KAAK,EACiD,EAAE,EAAE,CAC7D,KAAK,CAAC,aAAa,CAAC,eAAe,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,QAAQ,EACR,GAAG,KAAK,EAMT,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,gBAAgB,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AAE7D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAqC,EAAE,EAAE,CACvF,KAAK,CAAC,aAAa,CAAC,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;GAKG;AACH,OAAO,8BAA8B,CAAC;AACtC,OAAO,oDAAoD,CAAC;AAC5D,OAAO,qDAAqD,CAAC;AAC7D,OAAO,mDAAmD,CAAC;AAI3D,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,QAAQ,EACR,GAAG,KAAK,EACiD,EAAE,EAAE,CAC7D,KAAK,CAAC,aAAa,CAAC,eAAe,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AAExD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,QAAQ,EACR,GAAG,KAAK,EAMT,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,gBAAgB,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;AAE7D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAqC,EAAE,EAAE,CACvF,KAAK,CAAC,aAAa,CAAC,cAAc,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC"}
@@ -3,6 +3,10 @@
3
3
  * Use this entry point for @stencil/ssr to avoid serializing dynamic props
4
4
  * (e.g. apiKey) as their identifier names. Components with complex/runtime
5
5
  * props (FeedlogIssuesClient, FeedlogIssueComponent, etc.) are excluded.
6
+ *
7
+ * Exports hook-free `React.createElement` wrappers from `./server` — not from `./index`,
8
+ * which uses `useEffect` / `useRef` and must only load in Client Components.
6
9
  */
7
- export { FeedlogBadge, FeedlogButton, FeedlogCard } from './index.js';
10
+ export { FeedlogBadge, FeedlogButton, FeedlogCard } from './server.js';
11
+ export type { FeedlogIssue } from './server.js';
8
12
  //# 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,YAAY,CAAC"}
1
+ {"version":3,"file":"ssr-components.d.ts","sourceRoot":"","sources":["../src/ssr-components.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
@@ -3,6 +3,9 @@
3
3
  * Use this entry point for @stencil/ssr to avoid serializing dynamic props
4
4
  * (e.g. apiKey) as their identifier names. Components with complex/runtime
5
5
  * props (FeedlogIssuesClient, FeedlogIssueComponent, etc.) are excluded.
6
+ *
7
+ * Exports hook-free `React.createElement` wrappers from `./server` — not from `./index`,
8
+ * which uses `useEffect` / `useRef` and must only load in Client Components.
6
9
  */
7
- export { FeedlogBadge, FeedlogButton, FeedlogCard } from './index.js';
10
+ export { FeedlogBadge, FeedlogButton, FeedlogCard } from './server.js';
8
11
  //# 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,YAAY,CAAC"}
1
+ {"version":3,"file":"ssr-components.js","sourceRoot":"","sources":["../src/ssr-components.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
package/dist/start.d.ts CHANGED
@@ -1,7 +1,2 @@
1
- export declare const feedlogSSR: () => {
2
- name: string;
3
- transform: (this: any, code: string, id: string, options?: {
4
- ssr?: boolean;
5
- }) => Promise<string | undefined>;
6
- };
1
+ export { feedlogSSR } from './vite';
7
2
  //# sourceMappingURL=start.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;4DAKI,CAAC;WAAe,CAAC;;CACxC,CAAC"}
1
+ {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC"}
package/dist/start.js CHANGED
@@ -1,8 +1,2 @@
1
- import { stencilSSR } from '@stencil/ssr';
2
- export const feedlogSSR = () => stencilSSR({
3
- module: import('@feedlog-ai/react/ssr-components'),
4
- from: '@feedlog-ai/react',
5
- hydrateModule: import('@feedlog-ai/webcomponents/hydrate'),
6
- serializeShadowRoot: { default: 'declarative-shadow-dom' },
7
- });
1
+ export { feedlogSSR } from './vite';
8
2
  //# sourceMappingURL=start.js.map
package/dist/start.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"start.js","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,EAAE,CAC7B,UAAU,CAAC;IACT,MAAM,EAAE,MAAM,CAAC,kCAAkC,CAAC;IAClD,IAAI,EAAE,mBAAmB;IACzB,aAAa,EAAE,MAAM,CAAC,mCAAmC,CAAC;IAC1D,mBAAmB,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE;CAC3D,CAAC,CAAC"}
1
+ {"version":3,"file":"start.js","sourceRoot":"","sources":["../src/start.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedlog-ai/react",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "description": "React bindings for Feedlog Toolkit Web Components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -35,6 +35,7 @@
35
35
  "files": [
36
36
  "dist"
37
37
  ],
38
+ "sideEffects": false,
38
39
  "scripts": {
39
40
  "build": "tsc",
40
41
  "dev": "tsc --watch",
@@ -45,13 +46,20 @@
45
46
  },
46
47
  "peerDependencies": {
47
48
  "react": ">=17.0.0",
48
- "react-dom": ">=17.0.0"
49
+ "react-dom": ">=17.0.0",
50
+ "next": ">=13.0.0"
51
+ },
52
+ "peerDependenciesMeta": {
53
+ "next": {
54
+ "optional": true
55
+ }
49
56
  },
50
57
  "dependencies": {
51
- "@feedlog-ai/webcomponents": "^0.0.42"
58
+ "@feedlog-ai/webcomponents": "^0.0.44"
52
59
  },
53
60
  "devDependencies": {
54
61
  "@jest/test-sequencer": "^29.7.0",
62
+ "next": "^15.0.0",
55
63
  "@stencil/ssr": "^0.3.0",
56
64
  "@testing-library/jest-dom": "^5.16.5",
57
65
  "@testing-library/react": "^14.0.0",
@@ -64,7 +72,8 @@
64
72
  "react": "^18.2.0",
65
73
  "react-dom": "^18.2.0",
66
74
  "ts-jest": "^29.1.1",
67
- "typescript": "^5.3.3"
75
+ "typescript": "^5.3.3",
76
+ "webpack": "^5.97.1"
68
77
  },
69
78
  "keywords": [
70
79
  "feedlog",