@synopackageland/sdk 0.31.3 → 0.31.5

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 CHANGED
@@ -7,7 +7,7 @@ App's `backend/go.mod`.
7
7
  | Import | Contents |
8
8
  |---|---|
9
9
  | `@synopackageland/sdk` | Headless: `Context` and the other types, `createBackgroundSaveFacade`, `createNasProvider`, `scopedPicker`, `createPortalAccess`, copy catalogs (`uiLocale`, `saveCopy`, …). Never imports Vue. |
10
- | `@synopackageland/sdk/vue` | Everything above plus the components (`AppShell`, `PageActions`, `PageInfo`, `FilesPage`, `NasPicker`, `LoginPage`, `PortalSettings`, `BackgroundPanel`, `ExecutorSettings`, `ExecutorApproval`, `ExecutorNotice`, `DelegatePanel`, `BackgroundSavePanel`, `BackgroundSaveSettings`, `AuthorizationGate`, `AuthorizationSettings`) and composables (`createSession`, `useExecutorSetup`, `ExecutorSetupKey`, `useAuthorization`). |
10
+ | `@synopackageland/sdk/vue` | Everything above plus the components (`AppShell`, `PageActions`, `PageInfo`, `FilesPage`, `NasPicker`, `LoginPage`, `PortalSettings`, `BackgroundPanel`, `ExecutorSettings`, `ExecutorApproval`, `ExecutorNotice`, `UiUpdateNotice`, `DelegatePanel`, `BackgroundSavePanel`, `BackgroundSaveSettings`, `AuthorizationGate`, `AuthorizationSettings`) and composables (`createSession`, `useExecutorSetup`, `ExecutorSetupKey`, `useAuthorization`). |
11
11
  | `@synopackageland/sdk/vue/style.css` | The component stylesheet. Import it once next to `@synopackageland/ui`'s theme in the App entry. |
12
12
  | `@synopackageland/sdk/native` | For a native product with its own pinned root tasks: `ROOT_RUNTIME` (`createRootAccess`) and `AUTHORIZATION_RUNTIME` (`createAuthorizationAccess`), plain ES5 source the product renders into its own DSM window; `AuthorizationGate` shows the result. Generated Apps use the executor instead. Never imports Vue. |
13
13
  | `@synopackageland/sdk/i18n/<capability>/<locale>.json` | Copy in `en`, `zh-TW`, `zh-CN`, `ja`, `ko`, `de`, `fr`, `es`, `it`. |
@@ -462,6 +462,18 @@ whose routes for the approval's reads (`delegate.status`, `bg.browse`)
462
462
  differ provides its adapter there, and the dialog reads as its settings
463
463
  page does.
464
464
 
465
+ A full page, or a window DSM left open, keeps running the UI it loaded across
466
+ a package upgrade until the page reloads (CLI 0.33.2+ windows opened after
467
+ the upgrade load the new UI themselves). The CLI's DSM window (CLI 0.33.2+) gives `ctx.uiUpdate`: its `check()` reads the package's `ui/config`
468
+ without the browser cache and answers whether the installed build replaced
469
+ the window this page loaded. `AppShell` given that `ctx` shows
470
+ `UiUpdateNotice` above every page once it answers yes: one line, Updated.
471
+ Reload the page, with a **Reload** button, and nothing held back. It checks on
472
+ mount, when the window reopens and when the page is shown again (at most once
473
+ a minute). A failed check, or a window without `uiUpdate`, shows nothing. An
474
+ App without `AppShell` places `<UiUpdateNotice :ctx="ctx" :locale="ctx.locale" />`
475
+ above its pages.
476
+
465
477
  The backend's `executor.status` and `executor.control` are the SDK's: a Go
466
478
  App registers `delegate.ExecutorRoutes`, and the bridge runtime serves them
467
479
  with `capabilities.root`.
@@ -605,3 +617,10 @@ Browser permission results never authorize backend writes or grants.
605
617
 
606
618
  See [DSM session transport and App migration](../docs/dsm-session-transport.md).
607
619
  Do not add root/executor access to browser-only Apps such as OpenList.
620
+
621
+ ### DSM service ports
622
+
623
+ `readDsmPorts(ctx)` returns localized PortInfo definitions on demand in the
624
+ current administrator's DSM session. Start it after rendering the App. Refusal,
625
+ missing session and timeout return `[]`; use package-account `dsmservices`
626
+ reading on the backend independently. See [service ports](../docs/dsm-service-ports.md).
@@ -7,5 +7,7 @@
7
7
  "deniedMessage": "Ihr DSM-Konto darf diese App nicht verwenden. Bitten Sie einen Administrator, sie in den DSM-Anwendungsberechtigungen freizugeben.",
8
8
  "notes": "Hinweise",
9
9
  "notesCount": "Hinweise ({count})",
10
- "loading": "Wird geladen…"
10
+ "loading": "Wird geladen…",
11
+ "uiUpdated": "Aktualisiert. Laden Sie die Seite neu",
12
+ "uiReload": "Neu laden"
11
13
  }
@@ -7,5 +7,7 @@
7
7
  "deniedMessage": "Your DSM account is not allowed to use this app. Ask an administrator to allow it in DSM Application Privileges.",
8
8
  "notes": "Notes",
9
9
  "notesCount": "Notes ({count})",
10
- "loading": "Loading…"
10
+ "loading": "Loading…",
11
+ "uiUpdated": "Updated. Reload the page",
12
+ "uiReload": "Reload"
11
13
  }
@@ -7,5 +7,7 @@
7
7
  "deniedMessage": "Su cuenta de DSM no tiene permiso para usar esta aplicación. Pida a un administrador que la permita en los privilegios de aplicaciones de DSM.",
8
8
  "notes": "Notas",
9
9
  "notesCount": "Notas ({count})",
10
- "loading": "Cargando…"
10
+ "loading": "Cargando…",
11
+ "uiUpdated": "Actualizado. Vuelva a cargar la página",
12
+ "uiReload": "Volver a cargar"
11
13
  }
@@ -7,5 +7,7 @@
7
7
  "deniedMessage": "Votre compte DSM n’est pas autorisé à utiliser cette application. Demandez à un administrateur de l’autoriser dans les privilèges d’application de DSM.",
8
8
  "notes": "Remarques",
9
9
  "notesCount": "Remarques ({count})",
10
- "loading": "Chargement…"
10
+ "loading": "Chargement…",
11
+ "uiUpdated": "Mis à jour. Rechargez la page",
12
+ "uiReload": "Recharger"
11
13
  }
@@ -7,5 +7,7 @@
7
7
  "deniedMessage": "L’account DSM non è autorizzato a usare questa app. Chiedere a un amministratore di consentirlo nei privilegi delle applicazioni DSM.",
8
8
  "notes": "Note",
9
9
  "notesCount": "Note ({count})",
10
- "loading": "Caricamento…"
10
+ "loading": "Caricamento…",
11
+ "uiUpdated": "Aggiornato. Ricarica la pagina",
12
+ "uiReload": "Ricarica"
11
13
  }
@@ -7,5 +7,7 @@
7
7
  "deniedMessage": "この DSM アカウントにはこのアプリを使用する権限がありません。DSM のアプリケーション権限で許可するよう管理者に依頼してください。",
8
8
  "notes": "注記",
9
9
  "notesCount": "注記({count})",
10
- "loading": "読み込み中…"
10
+ "loading": "読み込み中…",
11
+ "uiUpdated": "更新されました。ページを再読み込みしてください",
12
+ "uiReload": "再読み込み"
11
13
  }
@@ -7,5 +7,7 @@
7
7
  "deniedMessage": "이 DSM 계정에는 이 앱을 사용할 권한이 없습니다. 관리자에게 DSM 응용 프로그램 권한에서 허용하도록 요청하십시오.",
8
8
  "notes": "참고",
9
9
  "notesCount": "참고 ({count})",
10
- "loading": "불러오는 중…"
10
+ "loading": "불러오는 중…",
11
+ "uiUpdated": "업데이트되었습니다. 페이지를 새로 고치십시오",
12
+ "uiReload": "새로 고침"
11
13
  }
@@ -7,5 +7,7 @@
7
7
  "deniedMessage": "你的 DSM 账号无权使用此应用程序。请管理员在 DSM 的应用程序权限中开放给你。",
8
8
  "notes": "附注",
9
9
  "notesCount": "附注({count})",
10
- "loading": "正在加载…"
10
+ "loading": "正在加载…",
11
+ "uiUpdated": "已更新,请刷新页面",
12
+ "uiReload": "刷新"
11
13
  }
@@ -7,5 +7,7 @@
7
7
  "deniedMessage": "你的 DSM 帳號無權使用此應用程式。請管理員在 DSM 的應用程式權限中開放給你。",
8
8
  "notes": "附註",
9
9
  "notesCount": "附註({count})",
10
- "loading": "載入中…"
10
+ "loading": "載入中…",
11
+ "uiUpdated": "已更新,請重新整理頁面",
12
+ "uiReload": "重新整理"
11
13
  }