-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add generated content after npm run build
- Loading branch information
1 parent
82bb745
commit be76e73
Showing
6 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { RasaRating as RasaRatingElement } from "@rasahq/chat-widget-ui/dist/components/rasa-rating.js"; | ||
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime'; | ||
type RasaRatingEvents = { | ||
onRatingSelected: EventName<CustomEvent<{ | ||
value: string; | ||
}>>; | ||
}; | ||
declare const RasaRating: StencilReactComponent<RasaRatingElement, RasaRatingEvents>; | ||
export default RasaRating; |
25 changes: 25 additions & 0 deletions
25
packages/react/lib/components/stencil-generated/RasaRating.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
'use client'; | ||
|
||
/** | ||
* This file was automatically generated by the Stencil React Output Target. | ||
* Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. | ||
*/ | ||
|
||
/* eslint-disable */ | ||
|
||
import { RasaRating as RasaRatingElement, defineCustomElement as defineRasaRating } from "@rasahq/chat-widget-ui/dist/components/rasa-rating.js"; | ||
import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime'; | ||
import { createComponent } from '@stencil/react-output-target/runtime'; | ||
import React from 'react'; | ||
|
||
type RasaRatingEvents = { onRatingSelected: EventName<CustomEvent<{ value: string }>> }; | ||
|
||
const RasaRating: StencilReactComponent<RasaRatingElement, RasaRatingEvents> = /*@__PURE__*/ createComponent<RasaRatingElement, RasaRatingEvents>({ | ||
tagName: 'rasa-rating', | ||
elementClass: RasaRatingElement, | ||
react: React, | ||
events: { onRatingSelected: 'ratingSelected' } as RasaRatingEvents, | ||
defineCustomElement: defineRasaRating | ||
}); | ||
|
||
export default RasaRating; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# rasa-rating | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
## Properties | ||
|
||
| Property | Attribute | Description | Type | Default | | ||
| --------- | --------- | ----------------------------------------------------------------- | --------------------------------------------------- | ----------- | | ||
| `options` | -- | List of rating options, each containing a value, icon, and label. | `{ value: string; icon: string; label: string; }[]` | `undefined` | | ||
| `text` | `text` | Instructional text displayed above the rating options. | `string` | `undefined` | | ||
|
||
|
||
## Events | ||
|
||
| Event | Description | Type | | ||
| ---------------- | ----------------------------------------------- | --------------------------------- | | ||
| `ratingSelected` | Event emitted when a rating option is selected. | `CustomEvent<{ value: string; }>` | | ||
|
||
|
||
---------------------------------------------- | ||
|
||
*Built with [StencilJS](https://stenciljs.com/)* |