@pactor-app/runtime 1.47.0 → 1.48.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/dist/index.d.cts CHANGED
@@ -286,6 +286,12 @@ interface RuntimeContext {
286
286
  locale: string;
287
287
  /** i18n 上下文:提供 `t(key, params?)` 翻译函数 */
288
288
  i18n: I18nContext;
289
+ /**
290
+ * 子运行时指回创建它的宿主运行时上下文(如 OverlayHost 为 page
291
+ * 类型弹层创建的子 PageRuntime)。交互归属(overlay 在哪个宿主的
292
+ * OverlayHost 渲染)沿此链上溯到根运行时;普通页面运行时不设置。
293
+ */
294
+ parentRuntime?: RuntimeContext;
289
295
  }
290
296
  interface CreateRuntimeContextOptions {
291
297
  app?: Record<string, unknown>;
package/dist/index.d.ts CHANGED
@@ -286,6 +286,12 @@ interface RuntimeContext {
286
286
  locale: string;
287
287
  /** i18n 上下文:提供 `t(key, params?)` 翻译函数 */
288
288
  i18n: I18nContext;
289
+ /**
290
+ * 子运行时指回创建它的宿主运行时上下文(如 OverlayHost 为 page
291
+ * 类型弹层创建的子 PageRuntime)。交互归属(overlay 在哪个宿主的
292
+ * OverlayHost 渲染)沿此链上溯到根运行时;普通页面运行时不设置。
293
+ */
294
+ parentRuntime?: RuntimeContext;
289
295
  }
290
296
  interface CreateRuntimeContextOptions {
291
297
  app?: Record<string, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pactor-app/runtime",
3
- "version": "1.47.0",
3
+ "version": "1.48.0",
4
4
  "description": "Pactor runtime: RuntimeContext, StateStore, DataSource runtime, action engine, React renderer and page runtime",
5
5
  "keywords": [
6
6
  "pactor",
@@ -45,9 +45,9 @@
45
45
  "access": "public"
46
46
  },
47
47
  "dependencies": {
48
- "@pactor-app/core": "1.47.0",
49
- "@pactor-app/schema": "1.47.0",
50
- "@pactor-app/expression": "1.47.0"
48
+ "@pactor-app/core": "1.48.0",
49
+ "@pactor-app/schema": "1.48.0",
50
+ "@pactor-app/expression": "1.48.0"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": ">=18"