@bbearai/react-native 0.2.1 → 0.2.3

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/dist/index.js CHANGED
@@ -12315,6 +12315,7 @@ var BugBearClient = class {
12315
12315
  thread_id: threadId,
12316
12316
  sender_type: "tester",
12317
12317
  sender_tester_id: testerInfo.id,
12318
+ sender_name: testerInfo.name || testerInfo.email,
12318
12319
  content
12319
12320
  });
12320
12321
  if (error) {
@@ -12392,6 +12393,7 @@ var BugBearClient = class {
12392
12393
  thread_id: thread.id,
12393
12394
  sender_type: "tester",
12394
12395
  sender_tester_id: testerInfo.id,
12396
+ sender_name: testerInfo.name || testerInfo.email,
12395
12397
  content: options.message
12396
12398
  });
12397
12399
  if (messageError) {
@@ -13117,6 +13119,8 @@ function BugBearButton({
13117
13119
  const [profilePlatforms, setProfilePlatforms] = (0, import_react2.useState)([]);
13118
13120
  const [savingProfile, setSavingProfile] = (0, import_react2.useState)(false);
13119
13121
  const [profileSaved, setProfileSaved] = (0, import_react2.useState)(false);
13122
+ const [testFilter, setTestFilter] = (0, import_react2.useState)("all");
13123
+ const [messageSendError, setMessageSendError] = (0, import_react2.useState)(false);
13120
13124
  const getInitialPosition = () => {
13121
13125
  const buttonSize = 56;
13122
13126
  const margin = 16;
@@ -13321,7 +13325,6 @@ function BugBearButton({
13321
13325
  const inProgressCount = assignments.filter((a) => a.status === "in_progress").length;
13322
13326
  const passedCount = assignments.filter((a) => a.status === "passed").length;
13323
13327
  const failedCount = assignments.filter((a) => a.status === "failed").length;
13324
- const [testFilter, setTestFilter] = (0, import_react2.useState)("all");
13325
13328
  const handleNextTest = () => {
13326
13329
  const nextTest = assignments.find(
13327
13330
  (a) => a.id !== displayedAssignment?.id && (a.status === "pending" || a.status === "in_progress")
@@ -13474,7 +13477,6 @@ function BugBearButton({
13474
13477
  await markAsRead(thread.id);
13475
13478
  }
13476
13479
  };
13477
- const [messageSendError, setMessageSendError] = (0, import_react2.useState)(false);
13478
13480
  const handleSendReply = async () => {
13479
13481
  if (!selectedThread || !replyText.trim()) return;
13480
13482
  setSendingReply(true);
package/dist/index.mjs CHANGED
@@ -12277,6 +12277,7 @@ var BugBearClient = class {
12277
12277
  thread_id: threadId,
12278
12278
  sender_type: "tester",
12279
12279
  sender_tester_id: testerInfo.id,
12280
+ sender_name: testerInfo.name || testerInfo.email,
12280
12281
  content
12281
12282
  });
12282
12283
  if (error) {
@@ -12354,6 +12355,7 @@ var BugBearClient = class {
12354
12355
  thread_id: thread.id,
12355
12356
  sender_type: "tester",
12356
12357
  sender_tester_id: testerInfo.id,
12358
+ sender_name: testerInfo.name || testerInfo.email,
12357
12359
  content: options.message
12358
12360
  });
12359
12361
  if (messageError) {
@@ -13092,6 +13094,8 @@ function BugBearButton({
13092
13094
  const [profilePlatforms, setProfilePlatforms] = useState2([]);
13093
13095
  const [savingProfile, setSavingProfile] = useState2(false);
13094
13096
  const [profileSaved, setProfileSaved] = useState2(false);
13097
+ const [testFilter, setTestFilter] = useState2("all");
13098
+ const [messageSendError, setMessageSendError] = useState2(false);
13095
13099
  const getInitialPosition = () => {
13096
13100
  const buttonSize = 56;
13097
13101
  const margin = 16;
@@ -13296,7 +13300,6 @@ function BugBearButton({
13296
13300
  const inProgressCount = assignments.filter((a) => a.status === "in_progress").length;
13297
13301
  const passedCount = assignments.filter((a) => a.status === "passed").length;
13298
13302
  const failedCount = assignments.filter((a) => a.status === "failed").length;
13299
- const [testFilter, setTestFilter] = useState2("all");
13300
13303
  const handleNextTest = () => {
13301
13304
  const nextTest = assignments.find(
13302
13305
  (a) => a.id !== displayedAssignment?.id && (a.status === "pending" || a.status === "in_progress")
@@ -13449,7 +13452,6 @@ function BugBearButton({
13449
13452
  await markAsRead(thread.id);
13450
13453
  }
13451
13454
  };
13452
- const [messageSendError, setMessageSendError] = useState2(false);
13453
13455
  const handleSendReply = async () => {
13454
13456
  if (!selectedThread || !replyText.trim()) return;
13455
13457
  setSendingReply(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbearai/react-native",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "BugBear React Native components for mobile apps",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -36,7 +36,7 @@
36
36
  "build": "tsup --config tsup.config.ts",
37
37
  "dev": "tsup --config tsup.config.ts --watch",
38
38
  "lint": "eslint src/",
39
- "prepublishOnly": "npm run build"
39
+ "prepublishOnly": "npm run lint && npm run build"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": "^18.0.0 || ^19.0.0",
@@ -44,10 +44,14 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "@bbearai/core": "^0.2.0",
47
+ "@eslint/js": "^9.39.2",
47
48
  "@types/react": "^18.2.0",
49
+ "eslint": "^9.39.2",
50
+ "eslint-plugin-react-hooks": "^7.0.1",
48
51
  "react": "^18.2.0",
49
52
  "react-native": "^0.73.0",
50
53
  "tsup": "^8.0.0",
51
- "typescript": "^5.3.0"
54
+ "typescript": "^5.3.0",
55
+ "typescript-eslint": "^8.54.0"
52
56
  }
53
57
  }