dsh-rewind-plugin 0.7.4 → 0.8.0-alpha.1
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.en.md +2 -1
- package/README.md +2 -1
- package/docs/architecture.md +5 -4
- package/docs/compat/audit.md +26 -29
- package/docs/contract/client-contract.md +1 -1
- package/docs/contract/client-contract.zh.md +1 -1
- package/docs/harness-reference.md +3 -4
- package/docs/release/release.md +80 -24
- package/docs/release/release.zh.md +61 -16
- package/lib/client.js +18 -43
- package/lib/index.js +14 -28
- package/lib/types/client/hidden.d.ts +26 -33
- package/lib/types/client/index.d.ts +19 -1
- package/lib/types/client/popover.d.ts +8 -9
- package/lib/types/client/portals.d.ts +27 -38
- package/lib/types/client/settings-card.d.ts +4 -4
- package/lib/types/client/styles.d.ts +1 -1
- package/lib/types/snapshot-cleanup.d.ts +3 -3
- package/package.json +44 -41
- package/lib/types/session-events.d.ts +0 -34
- package/lib/types/settings-locale.d.ts +0 -32
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Version-neutral settings-namespace reading for the host half.
|
|
3
|
-
*
|
|
4
|
-
* DSH rc.2 exposes a `settingsNamespace(value)` brand helper, and `settings.get`
|
|
5
|
-
* is typed to require a branded `SettingsNamespace`. DSH 0.1.2-alpha.2 removed
|
|
6
|
-
* that helper (the `SettingsNamespace` *type* remains) and `settings.get`
|
|
7
|
-
* accepts the raw namespace string. This module collapses both into one runtime
|
|
8
|
-
* call: on rc.2 the brand is a compile-time marker erased at runtime (so
|
|
9
|
-
* `settingsNamespace(ns)` returns `ns`), on 0.1.2-alpha.2 the brand helper is
|
|
10
|
-
* absent and the raw `ns` string is used directly. That is what lets a single
|
|
11
|
-
* compiled host bundle link and run on both harness generations.
|
|
12
|
-
*
|
|
13
|
-
* @module dsh-rewind/settings-locale
|
|
14
|
-
*/
|
|
15
|
-
/** Minimal structural face of the settings provider the host reads from. */
|
|
16
|
-
export interface SettingsProviderLike {
|
|
17
|
-
/**
|
|
18
|
-
* Read one registered settings section by namespace. Accepts whatever the
|
|
19
|
-
* running DSH generation passes: a branded `SettingsNamespace` (rc.2, brand
|
|
20
|
-
* erased) or the raw namespace string (0.1.2-alpha.2).
|
|
21
|
-
*/
|
|
22
|
-
get(ns: string): unknown;
|
|
23
|
-
}
|
|
24
|
-
/** The `settingsNamespace(ns)` brand helper, or `undefined` when removed (0.1.2-alpha.2). */
|
|
25
|
-
export type SettingsNamespaceBrand = ((value: string) => string) | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Read one settings section keyed by `ns`, tolerant of the settings-namespace
|
|
28
|
-
* brand across DSH generations. Pass the brand helper when available (the rc.2
|
|
29
|
-
* path); it is `undefined` on 0.1.2-alpha.2, where the raw `ns` string is used
|
|
30
|
-
* directly. Never throws: an absent section simply returns `undefined`.
|
|
31
|
-
*/
|
|
32
|
-
export declare function readSettingsSection(provider: SettingsProviderLike, ns: string, brand: SettingsNamespaceBrand): unknown;
|