@constructor-io/constructorio-ui-pia 2.16.1 → 2.17.0

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/README.md CHANGED
@@ -116,19 +116,21 @@ omitting it would quietly put everyone in the test arm with no control group to
116
116
 
117
117
  #### Configuration Options
118
118
 
119
- | Prop | Type | Description |
120
- | ---------------------------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
121
- | `apiKey` | `string` | Your Constructor.io API key (required) |
122
- | `itemId` | `string` | The product item ID (required) |
123
- | `variationId` | `string` | Optional variation ID |
124
- | `threadId` | `string` | Optional thread ID for conversation context (must be a valid UUID) |
125
- | `initialConversationHistory` | `ConversationEntry[]` | A conversation you manage, shown before the first question and read once on mount. Conversation and modal modes only (see [Restoring a conversation](#restoring-a-conversation)) |
126
- | `displayConfigs` | `object` | Display configuration options (see below) |
127
- | `trackingConfigs` | `object` | Tracking configuration options (see below) |
128
- | `callbacks` | `object` | Callback handlers for user interactions |
129
- | `translations` | `object` | UI string translations for internationalization |
130
- | `componentOverrides` | `object` | Custom component overrides |
131
- | `abTest` | `object` | A/B test configuration — test cells for tracking, and a control-group placeholder (see below) |
119
+ | Prop | Type | Description |
120
+ | ---------------------------- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
121
+ | `apiKey` | `string` | Your Constructor.io API key (required) |
122
+ | `itemId` | `string` | The product item ID (required) |
123
+ | `variationId` | `string` | Optional variation ID |
124
+ | `threadId` | `string` | Optional thread ID for conversation context (must be a valid UUID) |
125
+ | `initialConversationHistory` | `ConversationEntry[]` | A conversation you manage, shown before the first question and read once on mount. Conversation and modal modes only (see [Restoring a conversation](#restoring-a-conversation)) |
126
+ | `persistConversation` | `{ enabled: boolean }` | Off by default. Keeps each product's conversation in the browser across page loads. Conversation and modal modes only (see the [Persistent Conversations Guide](https://constructor-io.github.io/constructorio-ui-pia/?path=/docs/general-integration-guide-persistent-conversations-guide--docs)) |
127
+ | `userId` | `string \| null` | Whose persisted conversations these are: the signed-in shopper's id, or `null` for a guest. Change it on login and logout |
128
+ | `displayConfigs` | `object` | Display configuration options (see below) |
129
+ | `trackingConfigs` | `object` | Tracking configuration options (see below) |
130
+ | `callbacks` | `object` | Callback handlers for user interactions |
131
+ | `translations` | `object` | UI string translations for internationalization |
132
+ | `componentOverrides` | `object` | Custom component overrides |
133
+ | `abTest` | `object` | A/B test configuration — test cells for tracking, and a control-group placeholder (see below) |
132
134
 
133
135
  **Display Configs:**
134
136