> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/component-libraries-explained.md).

# コンポーネントライブラリの解説

コンポーネントは、ヒーロー画像やタスクカードのような個々の構成要素で、ウィジェットやマイクロサイトを形作ります。現在のテンプレートはすべて、Mint と Bedrock のコンポーネントライブラリによって提供されています。

<details>

<summary>Mint コンポーネント</summary>

Mint コンポーネントで作成されたウィジェットとマイクロサイトは、顧客アドボケートに最新の Advocate エクスペリエンスを提供します。現在のテンプレートのほとんどは Mint コンポーネントを使用しています。現在のコンポーネントライブラリを使用しているかどうかわからない場合は、手動で確認し、必要に応じてライブラリを更新できます。

あなたの〜を Mint コンポーネントにアップグレードするには **プログラムウィジェット**:

1. 左側のナビゲーションメニューから、 ![](/files/7ddd72d8e69e7055d9408cf4847c5c54abf9f71d) **\[Engage] → コンテンツ**.
2. を選択 **ウィジェットを編集** 次の *ウィジェット* カード。
3. 編集したいウィジェットの名前を選択します。
4. 左側のサイドバーメニューで、 **パッケージ**.
5. を選択 ![](/files/8557be98c1130cb55554497dd16810fe8e173d9e) **パッケージを追加**.
6. を選択 **追加** 次の *Mint コンポーネント* カード。

あなたの〜を Mint コンポーネントにアップグレードするには **マイクロサイト**:

1. 左側のナビゲーションメニューから、 ![](/files/7ddd72d8e69e7055d9408cf4847c5c54abf9f71d) **\[Engage] → コンテンツ。**
2. を選択します **設定を編集** のボタン *マイクロサイト* カード。
3. の下で *サイトホスティング* 見出しの下で、 *パッケージ* セクションを入力します。
4. を選択 ![](/files/8557be98c1130cb55554497dd16810fe8e173d9e) **パッケージを追加**.
5. を選択 **追加** 次の *Mint コンポーネント* カード。
6. を選択 **保存**.

</details>

<details>

<summary>Bedrock コンポーネント</summary>

Mint コンポーネントによって提供されるすべてのテンプレートには、Bedrock コンポーネントパッケージもインストールされています。Bedrock コンポーネントは参加者には表示されませんが、デザインに高度なロジックを追加できます。ほかのコンポーネントを条件付きで表示したり、コンポーネントがどのプログラムからデータを取得するかを定義したりできます。Bedrock コンポーネントパッケージは、 *高度なコンポーネント* のセクション内の *追加* ウィジェットまたはマイクロサイトエディターのタブ

Bedrock コンポーネントパッケージには 2 つのコンポーネントがあります:

**条件付きセクション**

この *条件付きセクション* コンポーネントを使用すると、参加者のメール、国、セグメント、またはカスタムフィールドに基づいて条件付きコンテンツを含めることができます。〜に JSONata 式を挿入してください *条件* 表示条件を設定するボックス。次に、特定の参加者グループに表示したいコンテンツを条件付きセクション内に移動します。

**プログラムセクション**

この *プログラムセクション* コンポーネントを使用すると、子コンポーネントのプログラム ID を上書きできます。特定のプログラムにリンクされていないコンテンツを表示するために使用します。〜コンポーネントは *プログラムセクション* ほとんどのウィジェットおよびマイクロサイトテンプレートにデフォルトで含まれています。

</details>

<details>

<summary>カスタムコンポーネントライブラリ</summary>

独自のコンポーネントパッケージを作成して使用し、Advocate エクスペリエンスをさらにカスタマイズできます。これらのコンポーネントはどのテンプレートにも追加でき、Advocate 提供のコンポーネントと併用できます。

Advocate のウィジェットは標準の HTML と [Web コンポーネント](https://www.webcomponents.org/) です。ウィジェットエディターで独自のコンポーネントを使用するには、Web コンポーネントとして作成する必要があります。

カスタムコンポーネントでウィジェットの作成を始めるには、カスタムパッケージをインストールします:

1. 左側のナビゲーションメニューから、 ![](/files/7ddd72d8e69e7055d9408cf4847c5c54abf9f71d) **\[Engage] → コンテンツ**.
2. を選択 **ウィジェットを編集** ウィジェットカードの
3. 編集したいウィジェットの名前を選択します。
4. 左側のサイドバーメニューで、 **パッケージ**.
5. を選択 ![](/files/8557be98c1130cb55554497dd16810fe8e173d9e) **パッケージを追加**.
6. を選択 ![](/files/8557be98c1130cb55554497dd16810fe8e173d9e) **NPM から追加**.
7. パッケージを入力 *名前*, *バージョン* を *ファイルパス*.
8. を選択 **追加**.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.impact.com/brand/ja/what-would-you-like-to-learn-about/advocate-program/manage-advocate-participant-experiences/component-libraries-explained.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
