@paymanai/payman-ask-sdk 1.2.23 → 1.2.24
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 +30 -0
- package/dist/index.d.mts +89 -173
- package/dist/index.d.ts +89 -173
- package/dist/index.js +2407 -278
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2397 -283
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.js +16 -47
- package/dist/index.native.js.map +1 -1
- package/dist/styles.css +2002 -0
- package/dist/styles.css.map +1 -1
- package/package.json +2 -2
package/dist/index.native.js
CHANGED
|
@@ -9,32 +9,12 @@ var Animated2 = require('react-native-reanimated');
|
|
|
9
9
|
var Markdown = require('react-native-markdown-display');
|
|
10
10
|
var clsx = require('clsx');
|
|
11
11
|
var tailwindMerge = require('tailwind-merge');
|
|
12
|
-
var Sentry = require('@sentry/react');
|
|
13
12
|
|
|
14
13
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
14
|
|
|
16
|
-
function _interopNamespace(e) {
|
|
17
|
-
if (e && e.__esModule) return e;
|
|
18
|
-
var n = Object.create(null);
|
|
19
|
-
if (e) {
|
|
20
|
-
Object.keys(e).forEach(function (k) {
|
|
21
|
-
if (k !== 'default') {
|
|
22
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
23
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return e[k]; }
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
n.default = e;
|
|
31
|
-
return Object.freeze(n);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
15
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
35
16
|
var Animated2__default = /*#__PURE__*/_interopDefault(Animated2);
|
|
36
17
|
var Markdown__default = /*#__PURE__*/_interopDefault(Markdown);
|
|
37
|
-
var Sentry__namespace = /*#__PURE__*/_interopNamespace(Sentry);
|
|
38
18
|
|
|
39
19
|
// src/components/PaymanChat/index.native.tsx
|
|
40
20
|
var PaymanChatContext = React.createContext(void 0);
|
|
@@ -1146,32 +1126,6 @@ function formatDate(timestamp) {
|
|
|
1146
1126
|
year: date.getFullYear() !== now.getFullYear() ? "numeric" : void 0
|
|
1147
1127
|
});
|
|
1148
1128
|
}
|
|
1149
|
-
function captureSentryError(error, context) {
|
|
1150
|
-
if (!Sentry__namespace.getClient()) return;
|
|
1151
|
-
const tags = {};
|
|
1152
|
-
if (context.executionId) tags.executionId = context.executionId;
|
|
1153
|
-
if (context.sessionId) tags.sessionId = context.sessionId;
|
|
1154
|
-
if (context.route) tags.route = context.route;
|
|
1155
|
-
if (context.cfRay) tags.cfRay = context.cfRay;
|
|
1156
|
-
if (context.customerId) tags.customerId = context.customerId;
|
|
1157
|
-
if (context.customerEmail) tags.customerEmail = context.customerEmail;
|
|
1158
|
-
const contexts = {
|
|
1159
|
-
chat_session: {
|
|
1160
|
-
sessionId: context.sessionId ?? null,
|
|
1161
|
-
sessionOwnerId: context.sessionOwnerId ?? null,
|
|
1162
|
-
executionId: context.executionId ?? null,
|
|
1163
|
-
workflowName: context.workflowName ?? null,
|
|
1164
|
-
cfRay: context.cfRay ?? null,
|
|
1165
|
-
customerId: context.customerId ?? null,
|
|
1166
|
-
customerEmail: context.customerEmail ?? null
|
|
1167
|
-
}
|
|
1168
|
-
};
|
|
1169
|
-
if (typeof error === "string") {
|
|
1170
|
-
Sentry__namespace.captureMessage(error, { level: "error", tags, contexts });
|
|
1171
|
-
} else {
|
|
1172
|
-
Sentry__namespace.captureException(error, { tags, contexts });
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
1129
|
function UserMessage({
|
|
1176
1130
|
message,
|
|
1177
1131
|
animated = false,
|
|
@@ -2431,14 +2385,26 @@ var s8 = reactNative.StyleSheet.create({
|
|
|
2431
2385
|
disabledText: { fontSize: 14, color: "#9CA3AF", textAlign: "center" }
|
|
2432
2386
|
});
|
|
2433
2387
|
|
|
2388
|
+
Object.defineProperty(exports, "buildFormattedThinking", {
|
|
2389
|
+
enumerable: true,
|
|
2390
|
+
get: function () { return paymanTypescriptAskSdk.buildFormattedThinking; }
|
|
2391
|
+
});
|
|
2434
2392
|
Object.defineProperty(exports, "cancelUserAction", {
|
|
2435
2393
|
enumerable: true,
|
|
2436
2394
|
get: function () { return paymanTypescriptAskSdk.cancelUserAction; }
|
|
2437
2395
|
});
|
|
2396
|
+
Object.defineProperty(exports, "createInitialV2State", {
|
|
2397
|
+
enumerable: true,
|
|
2398
|
+
get: function () { return paymanTypescriptAskSdk.createInitialV2State; }
|
|
2399
|
+
});
|
|
2438
2400
|
Object.defineProperty(exports, "generateId", {
|
|
2439
2401
|
enumerable: true,
|
|
2440
2402
|
get: function () { return paymanTypescriptAskSdk.generateId; }
|
|
2441
2403
|
});
|
|
2404
|
+
Object.defineProperty(exports, "processStreamEventV2", {
|
|
2405
|
+
enumerable: true,
|
|
2406
|
+
get: function () { return paymanTypescriptAskSdk.processStreamEventV2; }
|
|
2407
|
+
});
|
|
2442
2408
|
Object.defineProperty(exports, "resendUserAction", {
|
|
2443
2409
|
enumerable: true,
|
|
2444
2410
|
get: function () { return paymanTypescriptAskSdk.resendUserAction; }
|
|
@@ -2455,13 +2421,16 @@ Object.defineProperty(exports, "useChat", {
|
|
|
2455
2421
|
enumerable: true,
|
|
2456
2422
|
get: function () { return paymanTypescriptAskSdk.useChat; }
|
|
2457
2423
|
});
|
|
2424
|
+
Object.defineProperty(exports, "useChatV2", {
|
|
2425
|
+
enumerable: true,
|
|
2426
|
+
get: function () { return paymanTypescriptAskSdk.useChatV2; }
|
|
2427
|
+
});
|
|
2458
2428
|
Object.defineProperty(exports, "useVoice", {
|
|
2459
2429
|
enumerable: true,
|
|
2460
2430
|
get: function () { return paymanTypescriptAskSdk.useVoice; }
|
|
2461
2431
|
});
|
|
2462
2432
|
exports.PaymanChat = PaymanChat;
|
|
2463
2433
|
exports.PaymanChatContext = PaymanChatContext;
|
|
2464
|
-
exports.captureSentryError = captureSentryError;
|
|
2465
2434
|
exports.cn = cn;
|
|
2466
2435
|
exports.formatDate = formatDate;
|
|
2467
2436
|
exports.usePaymanChat = usePaymanChat;
|