openxiangda 1.0.96 → 1.0.97

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/lib/cli.js CHANGED
@@ -4073,7 +4073,7 @@ async function commands(args) {
4073
4073
  resourceNotes: [
4074
4074
  'For formal multi-resource development, prefer src/resources/** + openxiangda resource validate|plan|publish.',
4075
4075
  'Use first-class route/public-access/auth-config/function/connector/notification/data-view/menu/permission commands for discovery, diagnosis, dry-run, and small live fixes.',
4076
- 'public-access is the new React SPA public policy resource for /view/:appType/public/* routes.',
4076
+ 'public-access is the new React SPA public policy resource for /view/:appType/public/* routes; page code should use PublicAccessGate, and Page SDK hooks must stay inside OpenXiangdaProvider + OpenXiangdaPageProvider.',
4077
4077
  'settings public-access is legacy form public-access compatibility/repair and should not be used for new React SPA apps.',
4078
4078
  'Direct live mutation commands should use --dry-run first and --write-manifest when the repository should remain source of truth.',
4079
4079
  ],
@@ -95,7 +95,7 @@ const DESIGN_GATE_TOPICS = [
95
95
  '是否需要限流、过期时间、审计字段和回收策略',
96
96
  ],
97
97
  recommendedDefaults: [
98
- '新 React SPA 仅使用 /view/:appType/public/* + routes + public-access policy',
98
+ '新 React SPA 仅使用 /view/:appType/public/* + routes + public-access policy + PublicAccessGate',
99
99
  '普通公开页用 scoped public session;敏感页用 ticket 模式',
100
100
  '未显式 grant 的 form/dataView/function/connector 一律拒绝',
101
101
  ],
@@ -357,7 +357,7 @@ function renderDesignTemplate(topicCode) {
357
357
  '## 2. 推荐方案',
358
358
  '- Runtime:React SPA',
359
359
  '- 资源发布:src/resources/** + openxiangda resource plan/publish',
360
- '- 公开访问:仅使用 /view/:appType/public/* + routes + public-access policy',
360
+ '- 公开访问:仅使用 /view/:appType/public/* + routes + public-access policy + PublicAccessGate',
361
361
  '',
362
362
  '## 3. 待确认问题',
363
363
  ];
@@ -422,6 +422,7 @@ const RESOURCE_EXPLAINS = {
422
422
  'openxiangda public-access upsert --json-file src/resources/public-access/public_register.json',
423
423
  'openxiangda public-access session-test public_register --path /view/APP_XXX/public/register',
424
424
  'openxiangda public-access grant-check public_register --form-code customer',
425
+ 'React 页面侧使用 PublicAccessGate;如果使用 Page SDK hooks,放在 OpenXiangdaProvider + OpenXiangdaPageProvider 内',
425
426
  ],
426
427
  },
427
428
  'auth-config': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openxiangda",
3
- "version": "1.0.96",
3
+ "version": "1.0.97",
4
4
  "description": "OpenXiangda CLI, workspace build tools, runtime SDK, and form components.",
5
5
  "private": false,
6
6
  "bin": {