@paymanai/payman-ask-sdk 2.0.6 → 4.0.1
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 +2 -6
- package/dist/index.d.mts +379 -239
- package/dist/index.d.ts +379 -239
- package/dist/index.js +3346 -4752
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3348 -4737
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +202 -821
- package/dist/styles.css.map +1 -1
- package/package.json +6 -33
- package/dist/index.native.js +0 -4869
- package/dist/index.native.js.map +0 -1
package/README.md
CHANGED
|
@@ -167,7 +167,7 @@ Turn features on with booleans, and only reach for the full object form when you
|
|
|
167
167
|
|
|
168
168
|
Use `ui.emptyState.suggestions` when an app wants SDK-rendered prompt shortcuts on the first screen. Apps own the content; the SDK owns rendering, accessibility, click handling, responsive layout, and styling.
|
|
169
169
|
|
|
170
|
-
The SDK renders categories as compact bubbles first. Clicking a category reveals that category's prompts below it; clicking a prompt sends the prompt text verbatim. On narrow screens
|
|
170
|
+
The SDK renders categories as compact bubbles first. Clicking a category reveals that category's prompts below it; clicking a prompt sends the prompt text verbatim. On narrow screens, categories become a horizontal touch scroller so the empty state stays compact.
|
|
171
171
|
|
|
172
172
|
```tsx
|
|
173
173
|
const isProd = process.env.NEXT_PUBLIC_ENV === "production";
|
|
@@ -203,7 +203,7 @@ const suggestions = {
|
|
|
203
203
|
|
|
204
204
|
`icon` is optional. When omitted, the SDK chooses a small built-in glyph from the category label for common labels like payments, accounts, insights, and products.
|
|
205
205
|
|
|
206
|
-
Suggested prompts use the same `--payman-v2-*` CSS variables as the rest of the chat surface, so app-level theme overrides automatically apply to bubble background, text, border, hover, radius, and focus states.
|
|
206
|
+
Suggested prompts use the same `--payman-v2-*` CSS variables as the rest of the chat surface, so app-level theme overrides automatically apply to bubble background, text, border, hover, radius, and focus states.
|
|
207
207
|
|
|
208
208
|
## Session history
|
|
209
209
|
|
|
@@ -309,10 +309,6 @@ type ChatCallbacks = {
|
|
|
309
309
|
- `listSessions` / `listConversations` REST helpers (from the core SDK).
|
|
310
310
|
- `buildScopeKey(config)` — compose the client-side state-scope key from `session.userId + workflow.id + workflow.version + workflow.stage`.
|
|
311
311
|
|
|
312
|
-
## React Native
|
|
313
|
-
|
|
314
|
-
v2 ships web-only for the moment. `PaymanChat` on React Native renders a placeholder — pin `@paymanai/payman-ask-sdk@^1` if you need the v1 native renderer while the v2 RN rewrite lands.
|
|
315
|
-
|
|
316
312
|
## License
|
|
317
313
|
|
|
318
314
|
MIT
|