@changebot/widgets-react 0.0.2
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.
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
3
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4
|
+
*/
|
|
5
|
+
import { ChangebotBadge as ChangebotBadgeElement } from "@changebot/core/dist/components/changebot-badge.js";
|
|
6
|
+
import { ChangebotBanner as ChangebotBannerElement } from "@changebot/core/dist/components/changebot-banner.js";
|
|
7
|
+
import { ChangebotPanel as ChangebotPanelElement } from "@changebot/core/dist/components/changebot-panel.js";
|
|
8
|
+
import { ChangebotProvider as ChangebotProviderElement } from "@changebot/core/dist/components/changebot-provider.js";
|
|
9
|
+
import { ChangebotToast as ChangebotToastElement } from "@changebot/core/dist/components/changebot-toast.js";
|
|
10
|
+
import { MyComponent as MyComponentElement } from "@changebot/core/dist/components/my-component.js";
|
|
11
|
+
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
|
|
12
|
+
export type ChangebotBadgeEvents = NonNullable<unknown>;
|
|
13
|
+
export declare const ChangebotBadge: StencilReactComponent<ChangebotBadgeElement, ChangebotBadgeEvents>;
|
|
14
|
+
export type ChangebotBannerEvents = NonNullable<unknown>;
|
|
15
|
+
export declare const ChangebotBanner: StencilReactComponent<ChangebotBannerElement, ChangebotBannerEvents>;
|
|
16
|
+
export type ChangebotPanelEvents = {
|
|
17
|
+
onChangebotLastViewed: EventName<CustomEvent<{
|
|
18
|
+
scope: string;
|
|
19
|
+
}>>;
|
|
20
|
+
};
|
|
21
|
+
export declare const ChangebotPanel: StencilReactComponent<ChangebotPanelElement, ChangebotPanelEvents>;
|
|
22
|
+
export type ChangebotProviderEvents = NonNullable<unknown>;
|
|
23
|
+
export declare const ChangebotProvider: StencilReactComponent<ChangebotProviderElement, ChangebotProviderEvents>;
|
|
24
|
+
export type ChangebotToastEvents = NonNullable<unknown>;
|
|
25
|
+
export declare const ChangebotToast: StencilReactComponent<ChangebotToastElement, ChangebotToastEvents>;
|
|
26
|
+
export type MyComponentEvents = NonNullable<unknown>;
|
|
27
|
+
export declare const MyComponent: StencilReactComponent<MyComponentElement, MyComponentEvents>;
|
|
28
|
+
//# sourceMappingURL=components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/components/components.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAIH,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAA+C,MAAM,oDAAoD,CAAC;AAC1J,OAAO,EAAE,eAAe,IAAI,sBAAsB,EAAgD,MAAM,qDAAqD,CAAC;AAC9J,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAA+C,MAAM,oDAAoD,CAAC;AAC1J,OAAO,EAAE,iBAAiB,IAAI,wBAAwB,EAAkD,MAAM,uDAAuD,CAAC;AACtK,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAA+C,MAAM,oDAAoD,CAAC;AAC1J,OAAO,EAAE,WAAW,IAAI,kBAAkB,EAA4C,MAAM,iDAAiD,CAAC;AAC9I,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAI7F,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAExD,eAAO,MAAM,cAAc,EAAE,qBAAqB,CAAC,qBAAqB,EAAE,oBAAoB,CAO5F,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAEzD,eAAO,MAAM,eAAe,EAAE,qBAAqB,CAAC,sBAAsB,EAAE,qBAAqB,CAO/F,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG;IAAE,qBAAqB,EAAE,SAAS,CAAC,WAAW,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAA;CAAE,CAAC;AAExG,eAAO,MAAM,cAAc,EAAE,qBAAqB,CAAC,qBAAqB,EAAE,oBAAoB,CAO5F,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAE3D,eAAO,MAAM,iBAAiB,EAAE,qBAAqB,CAAC,wBAAwB,EAAE,uBAAuB,CAOrG,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAExD,eAAO,MAAM,cAAc,EAAE,qBAAqB,CAAC,qBAAqB,EAAE,oBAAoB,CAO5F,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AAErD,eAAO,MAAM,WAAW,EAAE,qBAAqB,CAAC,kBAAkB,EAAE,iBAAiB,CAOnF,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by the Stencil React Output Target.
|
|
4
|
+
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
|
|
5
|
+
*/
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { ChangebotBadge as ChangebotBadgeElement, defineCustomElement as defineChangebotBadge } from "@changebot/core/dist/components/changebot-badge.js";
|
|
8
|
+
import { ChangebotBanner as ChangebotBannerElement, defineCustomElement as defineChangebotBanner } from "@changebot/core/dist/components/changebot-banner.js";
|
|
9
|
+
import { ChangebotPanel as ChangebotPanelElement, defineCustomElement as defineChangebotPanel } from "@changebot/core/dist/components/changebot-panel.js";
|
|
10
|
+
import { ChangebotProvider as ChangebotProviderElement, defineCustomElement as defineChangebotProvider } from "@changebot/core/dist/components/changebot-provider.js";
|
|
11
|
+
import { ChangebotToast as ChangebotToastElement, defineCustomElement as defineChangebotToast } from "@changebot/core/dist/components/changebot-toast.js";
|
|
12
|
+
import { MyComponent as MyComponentElement, defineCustomElement as defineMyComponent } from "@changebot/core/dist/components/my-component.js";
|
|
13
|
+
import { createComponent } from '@stencil/react-output-target/runtime';
|
|
14
|
+
import React from 'react';
|
|
15
|
+
export const ChangebotBadge = /*@__PURE__*/ createComponent({
|
|
16
|
+
tagName: 'changebot-badge',
|
|
17
|
+
elementClass: ChangebotBadgeElement,
|
|
18
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
19
|
+
react: React,
|
|
20
|
+
events: {},
|
|
21
|
+
defineCustomElement: defineChangebotBadge
|
|
22
|
+
});
|
|
23
|
+
export const ChangebotBanner = /*@__PURE__*/ createComponent({
|
|
24
|
+
tagName: 'changebot-banner',
|
|
25
|
+
elementClass: ChangebotBannerElement,
|
|
26
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
27
|
+
react: React,
|
|
28
|
+
events: {},
|
|
29
|
+
defineCustomElement: defineChangebotBanner
|
|
30
|
+
});
|
|
31
|
+
export const ChangebotPanel = /*@__PURE__*/ createComponent({
|
|
32
|
+
tagName: 'changebot-panel',
|
|
33
|
+
elementClass: ChangebotPanelElement,
|
|
34
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
35
|
+
react: React,
|
|
36
|
+
events: { onChangebotLastViewed: 'changebot-last-viewed' },
|
|
37
|
+
defineCustomElement: defineChangebotPanel
|
|
38
|
+
});
|
|
39
|
+
export const ChangebotProvider = /*@__PURE__*/ createComponent({
|
|
40
|
+
tagName: 'changebot-provider',
|
|
41
|
+
elementClass: ChangebotProviderElement,
|
|
42
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
43
|
+
react: React,
|
|
44
|
+
events: {},
|
|
45
|
+
defineCustomElement: defineChangebotProvider
|
|
46
|
+
});
|
|
47
|
+
export const ChangebotToast = /*@__PURE__*/ createComponent({
|
|
48
|
+
tagName: 'changebot-toast',
|
|
49
|
+
elementClass: ChangebotToastElement,
|
|
50
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
51
|
+
react: React,
|
|
52
|
+
events: {},
|
|
53
|
+
defineCustomElement: defineChangebotToast
|
|
54
|
+
});
|
|
55
|
+
export const MyComponent = /*@__PURE__*/ createComponent({
|
|
56
|
+
tagName: 'my-component',
|
|
57
|
+
elementClass: MyComponentElement,
|
|
58
|
+
// @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
|
|
59
|
+
react: React,
|
|
60
|
+
events: {},
|
|
61
|
+
defineCustomElement: defineMyComponent
|
|
62
|
+
});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,yBAAyB,CAAC"}
|
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@changebot/widgets-react",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "React wrapper components for Changebot widgets",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "tsc"
|
|
13
|
+
},
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"react": ">=16.8.0",
|
|
16
|
+
"react-dom": ">=16.8.0"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@changebot/core": "workspace:*",
|
|
20
|
+
"@stencil/react-output-target": "^1.2.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/react": "^18.2.0",
|
|
24
|
+
"@types/react-dom": "^18.2.0",
|
|
25
|
+
"react": "^18.2.0",
|
|
26
|
+
"react-dom": "^18.2.0",
|
|
27
|
+
"typescript": "^5.0.0"
|
|
28
|
+
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "https://github.com/changebot-ai/widgets.git",
|
|
35
|
+
"directory": "packages/react"
|
|
36
|
+
},
|
|
37
|
+
"license": "Apache-2.0"
|
|
38
|
+
}
|