@feedlog-ai/react 0.0.38 → 0.0.39
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/ssr-components.d.ts +1 -1
- package/dist/ssr-components.d.ts.map +1 -1
- package/dist/ssr-components.js +1 -1
- package/dist/ssr-components.js.map +1 -1
- package/dist/ssr-safe-components.d.ts +21 -0
- package/dist/ssr-safe-components.d.ts.map +1 -0
- package/dist/ssr-safe-components.js +31 -0
- package/dist/ssr-safe-components.js.map +1 -0
- package/package.json +3 -2
package/dist/ssr-components.d.ts
CHANGED
|
@@ -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 './
|
|
7
|
+
export { FeedlogBadge, FeedlogButton, FeedlogCard } from './ssr-safe-components.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,
|
|
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"}
|
package/dist/ssr-components.js
CHANGED
|
@@ -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 './
|
|
7
|
+
export { FeedlogBadge, FeedlogButton, FeedlogCard } from './ssr-safe-components.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,
|
|
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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SSR-only subset of Stencil-generated wrappers: Badge, Button, Card.
|
|
3
|
+
* Kept separate from `components/stencil-generated/components.ts` so importing
|
|
4
|
+
* `@feedlog-ai/react/ssr-components` does not evaluate browser-heavy modules
|
|
5
|
+
* (e.g. feedlog-issues-client). When `components.ts` is regenerated, align the
|
|
6
|
+
* three exports below with the corresponding blocks there.
|
|
7
|
+
*/
|
|
8
|
+
import { type FeedlogButtonCustomEvent } from '@feedlog-ai/webcomponents';
|
|
9
|
+
import { FeedlogBadge as FeedlogBadgeElement } from '@feedlog-ai/webcomponents/dist/components/feedlog-badge.js';
|
|
10
|
+
import { FeedlogButton as FeedlogButtonElement } from '@feedlog-ai/webcomponents/dist/components/feedlog-button.js';
|
|
11
|
+
import { FeedlogCard as FeedlogCardElement } from '@feedlog-ai/webcomponents/dist/components/feedlog-card.js';
|
|
12
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
13
|
+
export type FeedlogBadgeEvents = NonNullable<unknown>;
|
|
14
|
+
export declare const FeedlogBadge: StencilReactComponent<FeedlogBadgeElement, FeedlogBadgeEvents>;
|
|
15
|
+
export type FeedlogButtonEvents = {
|
|
16
|
+
onFeedlogClick: EventName<FeedlogButtonCustomEvent<MouseEvent>>;
|
|
17
|
+
};
|
|
18
|
+
export declare const FeedlogButton: StencilReactComponent<FeedlogButtonElement, FeedlogButtonEvents>;
|
|
19
|
+
export type FeedlogCardEvents = NonNullable<unknown>;
|
|
20
|
+
export declare const FeedlogCard: StencilReactComponent<FeedlogCardElement, FeedlogCardEvents>;
|
|
21
|
+
//# sourceMappingURL=ssr-safe-components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ssr-safe-components.d.ts","sourceRoot":"","sources":["../src/ssr-safe-components.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAIH,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAA6C,MAAM,4DAA4D,CAAC;AAC5J,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAA8C,MAAM,6DAA6D,CAAC;AAChK,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAA4C,MAAM,2DAA2D,CAAC;AACxJ,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAI7F,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY,EAAE,qBAAqB,CAAC,mBAAmB,EAAE,kBAAkB,CAUtF,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG;IAAE,cAAc,EAAE,SAAS,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC,CAAA;CAAE,CAAC;AAEtG,eAAO,MAAM,aAAa,EAAE,qBAAqB,CAAC,oBAAoB,EAAE,mBAAmB,CAUzF,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAErD,eAAO,MAAM,WAAW,EAAE,qBAAqB,CAAC,kBAAkB,EAAE,iBAAiB,CAUnF,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { FeedlogBadge as FeedlogBadgeElement, defineCustomElement as defineFeedlogBadge } from '@feedlog-ai/webcomponents/dist/components/feedlog-badge.js';
|
|
3
|
+
import { FeedlogButton as FeedlogButtonElement, defineCustomElement as defineFeedlogButton } from '@feedlog-ai/webcomponents/dist/components/feedlog-button.js';
|
|
4
|
+
import { FeedlogCard as FeedlogCardElement, defineCustomElement as defineFeedlogCard } from '@feedlog-ai/webcomponents/dist/components/feedlog-card.js';
|
|
5
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
export const FeedlogBadge = /*@__PURE__*/ createComponent({
|
|
8
|
+
tagName: 'feedlog-badge',
|
|
9
|
+
elementClass: FeedlogBadgeElement,
|
|
10
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
11
|
+
react: React,
|
|
12
|
+
events: {},
|
|
13
|
+
defineCustomElement: defineFeedlogBadge,
|
|
14
|
+
});
|
|
15
|
+
export const FeedlogButton = /*@__PURE__*/ createComponent({
|
|
16
|
+
tagName: 'feedlog-button',
|
|
17
|
+
elementClass: FeedlogButtonElement,
|
|
18
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
19
|
+
react: React,
|
|
20
|
+
events: { onFeedlogClick: 'feedlogClick' },
|
|
21
|
+
defineCustomElement: defineFeedlogButton,
|
|
22
|
+
});
|
|
23
|
+
export const FeedlogCard = /*@__PURE__*/ createComponent({
|
|
24
|
+
tagName: 'feedlog-card',
|
|
25
|
+
elementClass: FeedlogCardElement,
|
|
26
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
27
|
+
react: React,
|
|
28
|
+
events: {},
|
|
29
|
+
defineCustomElement: defineFeedlogCard,
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=ssr-safe-components.js.map
|
|
@@ -0,0 +1 @@
|
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
|
2
2
|
"name": "@feedlog-ai/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.39",
|
|
4
4
|
"description": "React bindings for Feedlog Toolkit Web Components",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
"react-dom": ">=17.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@feedlog-ai/webcomponents": "^0.0.
|
|
51
|
+
"@feedlog-ai/webcomponents": "^0.0.39",
|
|
52
|
+
"@stencil/react-output-target": "^1.4.0"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"@jest/test-sequencer": "^29.7.0",
|