pcm-agents-react 0.0.1
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/components/stencil-generated/components.js +20 -0
- package/dist/components/stencil-generated/components.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/types/components/stencil-generated/components.d.ts +10 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +33 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
3
|
+
import { FloatImage as FloatImageElement, defineCustomElement as defineFloatImage } from "pcm-agents/dist/components/float-image.js";
|
|
4
|
+
import { MyComponent as MyComponentElement, defineCustomElement as defineMyComponent } from "pcm-agents/dist/components/my-component.js";
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export const FloatImage = createComponent({
|
|
7
|
+
tagName: 'float-image',
|
|
8
|
+
elementClass: FloatImageElement,
|
|
9
|
+
react: React,
|
|
10
|
+
events: { onFloatImageClick: 'floatImageClick' },
|
|
11
|
+
defineCustomElement: defineFloatImage
|
|
12
|
+
});
|
|
13
|
+
export const MyComponent = createComponent({
|
|
14
|
+
tagName: 'my-component',
|
|
15
|
+
elementClass: MyComponentElement,
|
|
16
|
+
react: React,
|
|
17
|
+
events: {},
|
|
18
|
+
defineCustomElement: defineMyComponent
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../src/components/stencil-generated/components.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAUb,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,mBAAmB,IAAI,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AACrI,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAAE,mBAAmB,IAAI,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AACzI,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,CAAC,MAAM,UAAU,GAA6E,eAAe,CAAsC;IACrJ,OAAO,EAAE,aAAa;IACtB,YAAY,EAAE,iBAAiB;IAE/B,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,EAAE,iBAAiB,EAAE,iBAAiB,EAAsB;IACpE,mBAAmB,EAAE,gBAAgB;CACxC,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,WAAW,GAA+E,eAAe,CAAwC;IAC1J,OAAO,EAAE,cAAc;IACvB,YAAY,EAAE,kBAAkB;IAEhC,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,EAAuB;IAC/B,mBAAmB,EAAE,iBAAiB;CACzC,CAAC,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
2
|
+
import { FloatImage as FloatImageElement } from "pcm-agents/dist/components/float-image.js";
|
|
3
|
+
import { MyComponent as MyComponentElement } from "pcm-agents/dist/components/my-component.js";
|
|
4
|
+
type FloatImageEvents = {
|
|
5
|
+
onFloatImageClick: EventName<CustomEvent<void>>;
|
|
6
|
+
};
|
|
7
|
+
export declare const FloatImage: StencilReactComponent<FloatImageElement, FloatImageEvents>;
|
|
8
|
+
type MyComponentEvents = NonNullable<unknown>;
|
|
9
|
+
export declare const MyComponent: StencilReactComponent<MyComponentElement, MyComponentEvents>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/stencil-generated/components';
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pcm-agents-react",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "React wrapper components for pcm-agents",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "npm run tsc",
|
|
13
|
+
"tsc": "tsc -p . --outDir ./dist",
|
|
14
|
+
"test": "node ./__tests__/react-library.test.js"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@stencil/react-output-target": "^0.8.2",
|
|
18
|
+
"pcm-agents": "workspace:^"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"react": "^17.0.0 || ^18.0.0",
|
|
22
|
+
"react-dom": "^17.0.0 || ^18.0.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/react": "^18.3.18",
|
|
26
|
+
"react": "^18.3.1",
|
|
27
|
+
"react-dom": "^18.3.1",
|
|
28
|
+
"typescript": "^5.8.2"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
}
|
|
33
|
+
}
|