miaoda-expo-devkit 0.1.1-beta.127 → 0.1.1-beta.128

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miaoda-expo-devkit",
3
- "version": "0.1.1-beta.127",
3
+ "version": "0.1.1-beta.128",
4
4
  "description": "Expo 应用开发工具集:Sentry DSN 替换 stub、错误/网络捕获、Metro 符号化",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -1209,10 +1209,10 @@ index 0000000..6d47443
1209
1209
  +});
1210
1210
  diff --git a/src/launch/miaodaPromptCopy.ts b/src/launch/miaodaPromptCopy.ts
1211
1211
  new file mode 100644
1212
- index 0000000..3b829e4
1212
+ index 0000000..43ceee2
1213
1213
  --- /dev/null
1214
1214
  +++ b/src/launch/miaodaPromptCopy.ts
1215
- @@ -0,0 +1,41 @@
1215
+ @@ -0,0 +1,44 @@
1216
1216
  +// Development Build 提示文案的唯一事实源(devkit 补丁 JS 侧)。
1217
1217
  +//
1218
1218
  +// 连接问题与能力问题各只有一套文案,所有时机(热更新前、复制错误前、运行中
@@ -1245,13 +1245,16 @@ index 0000000..3b829e4
1245
1245
  + cancelButtonTitle: '取消',
1246
1246
  + copyRetryButtonTitle: '重试',
1247
1247
  +
1248
- + // 能力问题(复制错误前,仅旧客户端回退弹窗使用)。
1249
- + copyConfirmQuestion: '仍要复制错误给智能体修复吗?',
1250
- + copyConfirmButtonTitle: '仍要复制错误',
1248
+ + // 能力问题(复制错误前,仅旧客户端回退弹窗使用)。复制确认专用正文不复用
1249
+ + // incompatibleBody(其「强制加载」只适用于加载前的提示)。
1250
+ + copyIncompatibleBody:
1251
+ + '当前调试包不支持部分新增能力,建议前往电脑端重新构建并安装新的调试包。',
1252
+ + copyConfirmQuestion: '确定还要复制报错吗?',
1253
+ + copyConfirmButtonTitle: '仍要复制',
1251
1254
  +} as const;
1252
1255
  +
1253
1256
  +export const MIAODA_PROMPT_COPY_INCOMPATIBLE_MESSAGE =
1254
- + MIAODA_PROMPT_COPY.incompatibleBody + MIAODA_PROMPT_COPY.copyConfirmQuestion;
1257
+ + MIAODA_PROMPT_COPY.copyIncompatibleBody + MIAODA_PROMPT_COPY.copyConfirmQuestion;
1255
1258
  +export const MIAODA_PROMPT_COPY_UNKNOWN_MESSAGE =
1256
1259
  + MIAODA_PROMPT_COPY.unknownBody + MIAODA_PROMPT_COPY.copyConfirmQuestion;
1257
1260
  diff --git a/src/launch/withDevTools.ios.tsx b/src/launch/withDevTools.ios.tsx
@@ -252,10 +252,10 @@ index 2ce92e0..671733a 100644
252
252
  if (newLogs.length !== logs.size) {
253
253
  diff --git a/Libraries/LogBox/Data/LogBoxPromptCopy.js b/Libraries/LogBox/Data/LogBoxPromptCopy.js
254
254
  new file mode 100644
255
- index 0000000..19105cb
255
+ index 0000000..280c2d5
256
256
  --- /dev/null
257
257
  +++ b/Libraries/LogBox/Data/LogBoxPromptCopy.js
258
- @@ -0,0 +1,28 @@
258
+ @@ -0,0 +1,35 @@
259
259
  +/**
260
260
  + * Development Build 提示文案的唯一事实源(react-native 补丁 JS 侧,LogBox 复制链路)。
261
261
  + *
@@ -280,10 +280,17 @@ index 0000000..19105cb
280
280
  + cancelButtonTitle: '取消',
281
281
  + copyRetryButtonTitle: '重试',
282
282
  +
283
- + // 复制确认。
284
- + copyConfirmQuestion: '仍要复制错误给智能体修复吗?',
285
- + copyConfirmButtonTitle: '仍要复制错误',
283
+ + // 复制确认:点击「复制错误给智能体修复」且能力不兼容时的系统弹窗专用正文,
284
+ + // 不复用 incompatibleBody(其「强制加载」只适用于加载前的提示)。
285
+ + copyIncompatibleBody:
286
+ + '当前调试包不支持部分新增能力,建议前往电脑端重新构建并安装新的调试包。',
287
+ + copyConfirmQuestion: '确定还要复制报错吗?',
288
+ + copyConfirmButtonTitle: '仍要复制',
286
289
  +};
290
+ +
291
+ +// 复制确认弹窗正文:专用正文 + 提问,不追加缺失模块等原因列表。
292
+ +export const LOGBOX_COPY_INCOMPATIBLE_MESSAGE: string =
293
+ + LOGBOX_PROMPT_COPY.copyIncompatibleBody + LOGBOX_PROMPT_COPY.copyConfirmQuestion;
287
294
  diff --git a/Libraries/LogBox/LogBoxInspectorContainer.js b/Libraries/LogBox/LogBoxInspectorContainer.js
288
295
  index 3ccf93a..26ca59f 100644
289
296
  --- a/Libraries/LogBox/LogBoxInspectorContainer.js
@@ -323,10 +330,10 @@ index a3fa687..309f2d5 100644
323
330
  );
324
331
  return (
325
332
  diff --git a/Libraries/LogBox/UI/LogBoxInspector.js b/Libraries/LogBox/UI/LogBoxInspector.js
326
- index be889b0..854c1cf 100644
333
+ index be889b0..d5633f6 100644
327
334
  --- a/Libraries/LogBox/UI/LogBoxInspector.js
328
335
  +++ b/Libraries/LogBox/UI/LogBoxInspector.js
329
- @@ -8,6 +8,11 @@
336
+ @@ -8,6 +8,14 @@
330
337
  * @format
331
338
  */
332
339
 
@@ -334,11 +341,14 @@ index be889b0..854c1cf 100644
334
341
  +
335
342
  +import Alert from '../../Alert/Alert';
336
343
  +import {createLogBoxCopyController} from '../Data/LogBoxCopy';
337
- +import {LOGBOX_PROMPT_COPY} from '../Data/LogBoxPromptCopy';
344
+ +import {
345
+ + LOGBOX_COPY_INCOMPATIBLE_MESSAGE,
346
+ + LOGBOX_PROMPT_COPY,
347
+ +} from '../Data/LogBoxPromptCopy';
338
348
  import Keyboard from '../../Components/Keyboard/Keyboard';
339
349
  import View from '../../Components/View/View';
340
350
  import StyleSheet from '../../StyleSheet/StyleSheet';
341
- @@ -18,7 +23,97 @@ import LogBoxInspectorFooter from './LogBoxInspectorFooter';
351
+ @@ -18,7 +26,97 @@ import LogBoxInspectorFooter from './LogBoxInspectorFooter';
342
352
  import LogBoxInspectorHeader from './LogBoxInspectorHeader';
343
353
  import * as LogBoxStyle from './LogBoxStyle';
344
354
  import * as React from 'react';
@@ -437,7 +447,7 @@ index be889b0..854c1cf 100644
437
447
 
438
448
  type Props = $ReadOnly<{
439
449
  onDismiss: () => void,
440
- @@ -32,6 +127,10 @@ type Props = $ReadOnly<{
450
+ @@ -32,6 +130,10 @@ type Props = $ReadOnly<{
441
451
  export default function LogBoxInspector(props: Props): React.Node {
442
452
  const {logs, selectedIndex} = props;
443
453
  let log = logs[selectedIndex];
@@ -448,7 +458,7 @@ index be889b0..854c1cf 100644
448
458
 
449
459
  useEffect(() => {
450
460
  if (log) {
451
- @@ -55,10 +154,85 @@ export default function LogBoxInspector(props: Props): React.Node {
461
+ @@ -55,10 +157,87 @@ export default function LogBoxInspector(props: Props): React.Node {
452
462
  Keyboard.dismiss();
453
463
  }, []);
454
464
 
@@ -488,19 +498,21 @@ index be889b0..854c1cf 100644
488
498
  + {cancelable: true}
489
499
  + );
490
500
  + },
491
- + reason => new Promise(resolve => {
501
+ + // 缺失模块等原因列表对用户没有行动价值,弹窗只展示统一的复制确认文案。
502
+ + () => new Promise(resolve => {
492
503
  + if (currentLog.current !== log) {
493
504
  + resolve(false);
494
505
  + return;
495
506
  + }
496
507
  + Alert.alert(
497
508
  + LOGBOX_PROMPT_COPY.incompatibleTitle,
498
- + `${LOGBOX_PROMPT_COPY.incompatibleBody}${
499
- + reason ? '\n' + reason : ''
500
- + }${LOGBOX_PROMPT_COPY.copyConfirmQuestion}`,
509
+ + LOGBOX_COPY_INCOMPATIBLE_MESSAGE,
510
+ + // 「仍要复制」在左、「取消」在右。Android 按「中性、否定、肯定」从左到右排列,
511
+ + // iOS 会把 cancel 样式的按钮固定在左侧,所以这里不设 style: 'cancel',
512
+ + // 两端都按数组顺序展示;返回键与点外部仍由 onDismiss 视为取消。
501
513
  + [
502
- + {text: LOGBOX_PROMPT_COPY.cancelButtonTitle, style: 'cancel', onPress: () => resolve(false)},
503
514
  + {text: LOGBOX_PROMPT_COPY.copyConfirmButtonTitle, onPress: () => resolve(true)},
515
+ + {text: LOGBOX_PROMPT_COPY.cancelButtonTitle, onPress: () => resolve(false)},
504
516
  + ],
505
517
  + {cancelable: true, onDismiss: () => resolve(false)}
506
518
  + );
@@ -534,7 +546,7 @@ index be889b0..854c1cf 100644
534
546
  if (log == null) {
535
547
  return null;
536
548
  }
537
- @@ -73,6 +247,8 @@ export default function LogBoxInspector(props: Props): React.Node {
549
+ @@ -73,6 +252,8 @@ export default function LogBoxInspector(props: Props): React.Node {
538
550
  />
539
551
  <LogBoxInspectorBody log={log} onRetry={_handleRetry} />
540
552
  <LogBoxInspectorFooter
package/pnpmfile.cjs CHANGED
@@ -11,6 +11,7 @@ const managedPatches = {
11
11
  [REACT_NATIVE_PATCH_SELECTOR]: {
12
12
  filename: 'react-native@0.83.2.patch',
13
13
  legacyHashes: new Set([
14
+ '8d2725c46977a73050e59f9dda17db4b819cd691a32f5a970fe832dcae480e8f',
14
15
  '7c80a1caedd1c4397c7d3a8cf253b76a5d93c25779150c5cbadcac1a270f0312',
15
16
  '5506d130966fbe0539c3a7de1b4b0dac4f39fe21efde52307bb3c4b99837c01c',
16
17
  'd7f25406e993a4d0f2a0f0ee508769ffc630e293456348492f5a1ffa000271d0',
@@ -63,6 +64,7 @@ const managedPatches = {
63
64
  'expo@55.0.6': {
64
65
  filename: 'expo@55.0.6.patch',
65
66
  legacyHashes: new Set([
67
+ '461da64df53d44e7ddf87725838bb3d18e6d7206e3b40ae288641f5072296ff8',
66
68
  '573ac35a3a68be0d5eefd1e958929082bcfcf3efc233b6e18e7466b4f33fadbb',
67
69
  '4f93951e5181dd109fb84a1a0549cf26aee37e0a8077e77bb4df82f674ff6da9',
68
70
  '53974f8fd1e682b4da10cbcf0f395996c3734eae2372a9516dee067a3c5ade48',