Skip to content

Commit

Permalink
fix(answerConfigurationId): remove internal tag (#4922)
Browse files Browse the repository at this point in the history
https://coveord.atlassian.net/browse/SVCC-4631

As we are releasing the KnowledgeHub and the Answer manager. It is now
legitimate to show this property on the Quantic an Atomic Generate
Answer components.
  • Loading branch information
dmgauthier authored Feb 10, 2025
1 parent e1e1f71 commit c8dd23b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -984,14 +984,14 @@ export declare interface AtomicFormatUnit extends Components.AtomicFormatUnit {}


@ProxyCmp({
inputs: ['collapsible', 'maxCollapsedHeight', 'tabsExcluded', 'tabsIncluded', 'withToggle']
inputs: ['answerConfigurationId', 'collapsible', 'maxCollapsedHeight', 'tabsExcluded', 'tabsIncluded', 'withToggle']
})
@Component({
selector: 'atomic-generated-answer',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['collapsible', 'maxCollapsedHeight', 'tabsExcluded', 'tabsIncluded', 'withToggle'],
inputs: ['answerConfigurationId', 'collapsible', 'maxCollapsedHeight', 'tabsExcluded', 'tabsIncluded', 'withToggle'],
})
export class AtomicGeneratedAnswer {
protected el: HTMLElement;
Expand Down
6 changes: 6 additions & 0 deletions packages/atomic/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,9 @@ export namespace Components {
* For more information, see [About Relevance Generative Answering (RGA)](https://docs.coveo.com/en/n9de0370/)
*/
interface AtomicGeneratedAnswer {
/**
* The unique identifier of the answer configuration to use to generate the answer.
*/
"answerConfigurationId"?: string;
/**
* Whether to allow the answer to be collapsed when the text is taller than the specified `--atomic-crga-collapsed-height` value (16rem by default).
Expand Down Expand Up @@ -7273,6 +7276,9 @@ declare namespace LocalJSX {
* For more information, see [About Relevance Generative Answering (RGA)](https://docs.coveo.com/en/n9de0370/)
*/
interface AtomicGeneratedAnswer {
/**
* The unique identifier of the answer configuration to use to generate the answer.
*/
"answerConfigurationId"?: string;
/**
* Whether to allow the answer to be collapsed when the text is taller than the specified `--atomic-crga-collapsed-height` value (16rem by default).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ export class AtomicGeneratedAnswer implements InitializableComponent {
@Prop() maxCollapsedHeight = this.DEFAULT_COLLAPSED_HEIGHT;

/**
* @internal
* The unique identifier of the answer configuration to use to generate the answer.
*/
@Prop() answerConfigurationId?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export default class QuanticGeneratedAnswer extends LightningElement {
*/
@api withToggle = false;
/**
* @internal
* The unique identifier of the answer configuration to use to generate the answer.
* @api
* @type {string}
*/
@api answerConfigurationId;
Expand Down

0 comments on commit c8dd23b

Please sign in to comment.